browserstack-node-sdk 1.56.2 → 1.57.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) 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 +3 -2
  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/caCertHelper.js +1 -1
  156. package/src/helpers/capsMapping.js +1 -1
  157. package/src/helpers/central-scanner/constants.js +1 -1
  158. package/src/helpers/central-scanner/helpers.js +1 -1
  159. package/src/helpers/classLogger.js +1 -1
  160. package/src/helpers/driverInitErrorReporter.js +1 -1
  161. package/src/helpers/globals.js +1 -1
  162. package/src/helpers/helper.js +1 -1
  163. package/src/helpers/logger.js +1 -1
  164. package/src/helpers/metadata.js +1 -1
  165. package/src/helpers/patchHelper.js +1 -1
  166. package/src/helpers/patchHelpers.js +1 -1
  167. package/src/helpers/percy/Percy.js +1 -1
  168. package/src/helpers/percy/PercyBinary.js +1 -1
  169. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  170. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  171. package/src/helpers/percy/PercySDK.js +1 -1
  172. package/src/helpers/percy/index.js +1 -1
  173. package/src/helpers/percy/utils.js +1 -1
  174. package/src/helpers/performance/constants.js +1 -1
  175. package/src/helpers/performance/performance-tester.js +1 -1
  176. package/src/helpers/playwright-helper.js +1 -1
  177. package/src/helpers/processHelper.js +1 -1
  178. package/src/helpers/puppeteer-helper.js +1 -1
  179. package/src/helpers/request-spy.js +1 -1
  180. package/src/helpers/setKeepAlive.js +1 -1
  181. package/src/helpers/stackFrameUtils.js +1 -1
  182. package/src/helpers/test-observability/constants.js +1 -1
  183. package/src/helpers/test-observability/error-handler.js +1 -1
  184. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  185. package/src/helpers/test-observability/sessionHandler.js +1 -1
  186. package/src/helpers/test-observability/utils.js +1 -1
  187. package/src/helpers/test-orchestration/constants.js +1 -1
  188. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  189. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  190. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  191. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  192. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  193. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  194. package/src/helpers/testhub/constants.js +1 -1
  195. package/src/helpers/testhub/testhubHandler.js +1 -1
  196. package/src/helpers/testhub/utils.js +1 -1
  197. package/src/helpers/timeoutPromise.js +1 -1
  198. package/src/helpers/utilities.js +1 -1
  199. package/src/helpers/w3cMapping.js +1 -1
  200. package/src/hubAllocationMethods.js +1 -1
  201. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a53_0x2d288c=a53_0x1e59;(function(_0x34f758,_0x2ffa2f){const _0x5a15af=a53_0x1e59,_0x53521c=_0x34f758();while(!![]){try{const _0x3e1663=parseInt(_0x5a15af(0x81))/0x1*(-parseInt(_0x5a15af(0xa4))/0x2)+-parseInt(_0x5a15af(0xb0))/0x3+parseInt(_0x5a15af(0x87))/0x4*(parseInt(_0x5a15af(0xc2))/0x5)+-parseInt(_0x5a15af(0x85))/0x6+parseInt(_0x5a15af(0xc5))/0x7*(-parseInt(_0x5a15af(0xc3))/0x8)+-parseInt(_0x5a15af(0x75))/0x9+parseInt(_0x5a15af(0xb6))/0xa*(parseInt(_0x5a15af(0x9b))/0xb);if(_0x3e1663===_0x2ffa2f)break;else _0x53521c['push'](_0x53521c['shift']());}catch(_0x3c2967){_0x53521c['push'](_0x53521c['shift']());}}}(a53_0x25e0,0x3ba61));const path=require('path'),url=require('url'),util=require(a53_0x2d288c(0xca)),{nestedKeyValue,isFalse}=require(a53_0x2d288c(0x9a)),{debug,getPlatformDetails}=require('../../helpers/test-observability/utils'),logger=require(a53_0x2d288c(0xa8))[a53_0x2d288c(0x8b)],constants=require(a53_0x2d288c(0x7c)),BrowserstackCLI=require(a53_0x2d288c(0x84)),AutomationFrameworkState=require(a53_0x2d288c(0x90)),HookState=require(a53_0x2d288c(0x7e)),getBrowserFromWSEndpoint=_0x4e737b=>{const _0x3b590f=a53_0x2d288c,_0x12796a={'aaFrP':_0x3b590f(0x97),'CIUCo':function(_0x1ca07b,_0x4e2671){return _0x1ca07b(_0x4e2671);}};try{const _0x2189fb=url[_0x3b590f(0x77)](_0x4e737b),_0x2cf13a=new URLSearchParams(_0x2189fb[_0x3b590f(0xaa)]),_0x30b775=Object[_0x3b590f(0xd0)](_0x2cf13a['entries']()),_0x4c845a=JSON['parse'](_0x30b775[_0x3b590f(0xa0)]);if(_0x4c845a&&(_0x4c845a['browser']||_0x4c845a[_0x3b590f(0xc4)]))return _0x4c845a[_0x3b590f(0x94)]||_0x4c845a[_0x3b590f(0xc4)];return _0x12796a[_0x3b590f(0xbd)];}catch(_0x562ce5){_0x12796a[_0x3b590f(0x83)](debug,_0x3b590f(0xc7)+_0x562ce5[_0x3b590f(0xbe)]());}},getCloudProviderFromWsEndpoint=_0x54f349=>{const _0x23154b=a53_0x2d288c,_0x2af675={};_0x2af675[_0x23154b(0x8e)]=_0x23154b(0xbb),_0x2af675['vbxOM']=_0x23154b(0xc0);const _0x263f7a=_0x2af675;if(_0x54f349['includes'](constants[_0x23154b(0x82)])||_0x54f349[_0x23154b(0xa7)](constants[_0x23154b(0xcb)]))return _0x263f7a['lkHYO'];return _0x263f7a[_0x23154b(0x8d)];},a53_0x5397d8={};function a53_0x25e0(){const _0x15fedb=['currentSessionDetails','winstonLogger','result','vbxOM','lkHYO','Error\x20extracting\x20bsParams\x20from\x20CDP\x20message:\x20','../v2/state/automationFrameworkState.js','platformName','turboscale','qAlxN','browser','test','sessionId','chrome','product','string','../../helpers/helper','14796529JDBRgk','cloudProvider','bsParams','ilyTi','patchConnection','caps','Error\x20in\x20patchConnection:\x20','EbqyB','PLAYWRIGHT_DISPATCH','726TvbQGJ','qAwPb','UQAcf','includes','../../helpers/logger','version','query','bStackParams','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','TXuHi','function','Error\x20in\x20setupBrowserDetails:\x20','985779VEbISX','getAutomationFramework','QPGoG','local_grid','wJKnr','capabilities','10HCBXOZ','_connection','platformVersion','KzETP','getDetails','browserstack','bmNob','aaFrP','toString','exports','unknown_grid','sessionError','340yEesDH','383832acNJDT','browserName','63vJaNSq','IyCva','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','bsSessionId','Setting\x20session\x20id\x20received\x20from\x20BS\x20','util','BSTACK_ATS_URL','gvfVy','apply','format','ylZPD','fromEntries','ZReBa','assign','VULkK','4267710TfFlvn','platform','parse','connection','params','_bstackPatched','AlfMT','../utils/constants','isRunning','../v2/state/hookState.js','platform_version','ATS_WSS_URL_REGEX','695ahYstZ','BSTACK_URL','CIUCo','../v2/browserstackCLI','275250aGsfNY','automate','25408AaTCKc','platformDetails','message'];a53_0x25e0=function(){return _0x15fedb;};return a53_0x25e0();}function a53_0x1e59(_0x41bb1b,_0x4d252f){const _0x25e022=a53_0x25e0();return a53_0x1e59=function(_0x1e59f7,_0x2a6760){_0x1e59f7=_0x1e59f7-0x72;let _0x50e858=_0x25e022[_0x1e59f7];return _0x50e858;},a53_0x1e59(_0x41bb1b,_0x4d252f);}a53_0x5397d8['cloudProvider']=undefined,a53_0x5397d8[a53_0x2d288c(0xc8)]=undefined,a53_0x5397d8[a53_0x2d288c(0x94)]=undefined,a53_0x5397d8['browser_version']=undefined,a53_0x5397d8[a53_0x2d288c(0x76)]=undefined,a53_0x5397d8[a53_0x2d288c(0x7f)]=undefined,a53_0x5397d8[a53_0x2d288c(0x98)]=undefined,a53_0x5397d8[a53_0x2d288c(0xb5)]={};class PuppeteerSessionDetails{static ['currentSessionDetails']=a53_0x5397d8;constructor(){const _0x7c9f52=a53_0x2d288c,_0x51e06d={};_0x51e06d[_0x7c9f52(0x72)]=_0x7c9f52(0xac);const _0x595c38=_0x51e06d;throw new Error(_0x595c38[_0x7c9f52(0x72)]);}static [a53_0x2d288c(0xc1)]=null;static async['setupBrowserDetails'](_0x661f4a,_0xda63c8){const _0x43822b=a53_0x2d288c,_0x55b097={'wJKnr':_0x43822b(0x97),'AlfMT':function(_0x29cde9,_0x383a0c){return _0x29cde9===_0x383a0c;},'gvfVy':_0x43822b(0xae),'PfqpV':_0x43822b(0xb3),'KzETP':function(_0x302645,_0x1b12df){return _0x302645(_0x1b12df);},'ilyTi':function(_0x167fab,_0x4c53cc){return _0x167fab===_0x4c53cc;},'ylZPD':'browserstack','IyCva':_0x43822b(0x92),'bmNob':_0x43822b(0x86),'EbqyB':function(_0x55a7fb,_0x2fa361){return _0x55a7fb(_0x2fa361);},'UQAcf':function(_0x5d69d2){return _0x5d69d2();}};try{let _0x3935a1=_0x55b097[_0x43822b(0xb4)],_0x4b2416=null;_0x661f4a&&_0x55b097[_0x43822b(0x7b)](typeof _0x661f4a['version'],_0x55b097[_0x43822b(0xcc)])&&(_0x4b2416=await _0x661f4a[_0x43822b(0xa9)]());let _0x33d9c5=null,_0x37ce89=null,_0x5052b1=null,_0x5bf016=_0x55b097['PfqpV'];if(_0xda63c8){_0x5bf016=_0x55b097[_0x43822b(0xb9)](getCloudProviderFromWsEndpoint,_0xda63c8);if(_0x55b097[_0x43822b(0x9e)](_0x5bf016,_0x55b097[_0x43822b(0xcf)]))_0x5052b1=constants[_0x43822b(0x80)]?constants[_0x43822b(0x80)][_0x43822b(0x95)](_0xda63c8)?_0x55b097[_0x43822b(0xc6)]:_0x55b097[_0x43822b(0xbc)]:_0x55b097[_0x43822b(0xbc)],_0x3935a1=_0x55b097[_0x43822b(0xa2)](getBrowserFromWSEndpoint,_0xda63c8)||_0x3935a1,_0x33d9c5=this[_0x43822b(0x8a)][_0x43822b(0x76)],_0x37ce89=this[_0x43822b(0x8a)][_0x43822b(0x7f)];else{const _0x689017=await _0x55b097['UQAcf'](getPlatformDetails);_0x33d9c5=_0x689017[_0x43822b(0x91)],_0x37ce89=_0x689017[_0x43822b(0xb8)];}}else{const _0x861cdf=await _0x55b097[_0x43822b(0xa6)](getPlatformDetails);_0x33d9c5=_0x861cdf[_0x43822b(0x91)],_0x37ce89=_0x861cdf[_0x43822b(0xb8)];}const _0x47437c={};_0x47437c['browser']=_0x3935a1,_0x47437c['browser_version']=_0x4b2416,_0x47437c[_0x43822b(0xb5)]={},_0x47437c[_0x43822b(0x76)]=_0x33d9c5,_0x47437c['platform_version']=_0x37ce89,_0x47437c[_0x43822b(0x98)]=_0x5052b1;const _0x1d9ea1=_0x47437c,_0x1b2070={};_0x1b2070[_0x43822b(0x9c)]=_0x5bf016,this['currentSessionDetails']=Object[_0x43822b(0x73)]({},this['currentSessionDetails'],_0x1b2070,_0x1d9ea1);}catch(_0x4fd432){_0x55b097[_0x43822b(0xb9)](debug,_0x43822b(0xaf)+util[_0x43822b(0xce)](_0x4fd432)),this['sessionError']=_0x4fd432['toString']();}}static[a53_0x2d288c(0x9f)](_0x8ddc3){const _0xd1090e=a53_0x2d288c,_0x5204d1={'QPGoG':function(_0x583bac,_0xb3b37){return _0x583bac===_0xb3b37;},'VULkK':_0xd1090e(0x99),'bYIrG':function(_0x5c4802,_0x4aebfa){return _0x5c4802(_0x4aebfa);},'qAwPb':function(_0x46885b,_0x59856b){return _0x46885b===_0x59856b;},'qAlxN':function(_0x436f17,_0x1f1e60){return _0x436f17(_0x1f1e60);},'TXuHi':'[PuppeteerSessionDetails]\x20Connection\x20patched\x20for\x20session\x20capture'},_0x1a607b=this;try{const _0x97aae4=_0x8ddc3[_0xd1090e(0xb7)]||_0x8ddc3[_0xd1090e(0x78)];if(!_0x97aae4||_0x97aae4[_0xd1090e(0x7a)])return;const _0x1e3192=_0x97aae4['onmessage'];_0x97aae4['onmessage']=function(_0x37324a){const _0x10115d=_0xd1090e;try{const _0x18b988=_0x5204d1[_0x10115d(0xb2)](typeof _0x37324a,_0x5204d1[_0x10115d(0x74)])?JSON[_0x10115d(0x77)](_0x37324a):_0x37324a,_0x23ccab=_0x18b988?.[_0x10115d(0xab)]||_0x18b988?.[_0x10115d(0x9d)]||_0x18b988?.[_0x10115d(0x79)]?.[_0x10115d(0x9d)]||_0x18b988?.['params']?.[_0x10115d(0xab)]||_0x18b988?.[_0x10115d(0x8c)]?.[_0x10115d(0x9d)]||_0x18b988?.[_0x10115d(0x8c)]?.[_0x10115d(0xab)];if(_0x23ccab){if(BrowserstackCLI['getInstance']()[_0x10115d(0x7d)]()){const _0x4f260a={};_0x4f260a[_0x10115d(0x89)]=_0x18b988,BrowserstackCLI['getInstance']()[_0x10115d(0xb1)]()['trackEvent'](AutomationFrameworkState[_0x10115d(0xa3)],HookState['POST'],_0x4f260a);}else{const _0x1723af=_0x23ccab[_0x10115d(0x96)],_0x190f28=_0x23ccab[_0x10115d(0x88)];_0x190f28&&(_0x5204d1['bYIrG'](debug,'Setting\x20platform\x20details\x20received\x20from\x20BS:\x20'+JSON['stringify'](_0x190f28)),_0x1a607b[_0x10115d(0x8a)][_0x10115d(0x76)]=_0x190f28['platformName'],_0x1a607b[_0x10115d(0x8a)][_0x10115d(0x7f)]=_0x190f28['platformVersion']),_0x1723af&&(_0x5204d1['bYIrG'](debug,_0x10115d(0xc9)+_0x1723af),_0x1a607b[_0x10115d(0x8a)][_0x10115d(0xc8)]=_0x1723af);}_0x5204d1[_0x10115d(0xa5)](typeof _0x37324a,_0x5204d1[_0x10115d(0x74)])&&(delete _0x18b988[_0x10115d(0xab)],delete _0x18b988[_0x10115d(0x9d)],_0x18b988[_0x10115d(0x79)]&&(delete _0x18b988[_0x10115d(0x79)][_0x10115d(0x9d)],delete _0x18b988[_0x10115d(0x79)][_0x10115d(0xab)]),_0x18b988[_0x10115d(0x8c)]&&(delete _0x18b988[_0x10115d(0x8c)][_0x10115d(0x9d)],delete _0x18b988['result']['bStackParams']));}}catch(_0x49f299){_0x5204d1[_0x10115d(0x93)](debug,_0x10115d(0x8f)+_0x49f299[_0x10115d(0x89)]);}return _0x1e3192?.[_0x10115d(0xcd)](this,arguments);},_0x97aae4[_0xd1090e(0x7a)]=!![],logger['debug'](_0x5204d1[_0xd1090e(0xad)]);}catch(_0x5b83cc){_0x5204d1[_0xd1090e(0x93)](debug,_0xd1090e(0xa1)+util[_0xd1090e(0xce)](_0x5b83cc)),_0x1a607b[_0xd1090e(0xc1)]=_0x5b83cc[_0xd1090e(0xbe)]();}}static[a53_0x2d288c(0xba)](){const _0x4da5c7=a53_0x2d288c;return this[_0x4da5c7(0x8a)];}}module[a53_0x2d288c(0xbf)]=PuppeteerSessionDetails;
1
+ const a53_0x32a1b2=a53_0x1c15;(function(_0x55dcdc,_0x4589d1){const _0x352c69=a53_0x1c15,_0x16ee5b=_0x55dcdc();while(!![]){try{const _0x310e6b=parseInt(_0x352c69(0xcb))/0x1*(parseInt(_0x352c69(0xc4))/0x2)+-parseInt(_0x352c69(0xdb))/0x3*(parseInt(_0x352c69(0xa6))/0x4)+parseInt(_0x352c69(0xd5))/0x5+-parseInt(_0x352c69(0x98))/0x6*(-parseInt(_0x352c69(0xb7))/0x7)+parseInt(_0x352c69(0xac))/0x8+parseInt(_0x352c69(0xc1))/0x9+-parseInt(_0x352c69(0xc8))/0xa*(parseInt(_0x352c69(0xcc))/0xb);if(_0x310e6b===_0x4589d1)break;else _0x16ee5b['push'](_0x16ee5b['shift']());}catch(_0x4c9241){_0x16ee5b['push'](_0x16ee5b['shift']());}}}(a53_0x2bab,0x81c06));const path=require(a53_0x32a1b2(0xb9)),url=require(a53_0x32a1b2(0xd3)),util=require('util'),{nestedKeyValue,isFalse}=require(a53_0x32a1b2(0x97)),{debug,getPlatformDetails}=require(a53_0x32a1b2(0xc7)),logger=require(a53_0x32a1b2(0xd0))[a53_0x32a1b2(0xb0)],constants=require('../utils/constants'),BrowserstackCLI=require(a53_0x32a1b2(0xde)),AutomationFrameworkState=require(a53_0x32a1b2(0xda)),HookState=require(a53_0x32a1b2(0xe8)),getBrowserFromWSEndpoint=_0x376f55=>{const _0x1a24c0=a53_0x32a1b2,_0x43613f={'oDEZL':'chrome','QheEz':function(_0x2abab2,_0x528e3f){return _0x2abab2(_0x528e3f);}};try{const _0x2bd4f3=url['parse'](_0x376f55),_0x3b21aa=new URLSearchParams(_0x2bd4f3[_0x1a24c0(0x93)]),_0x2bd87d=Object['fromEntries'](_0x3b21aa[_0x1a24c0(0xb3)]()),_0xf53357=JSON[_0x1a24c0(0xd1)](_0x2bd87d[_0x1a24c0(0xd6)]);if(_0xf53357&&(_0xf53357['browser']||_0xf53357[_0x1a24c0(0xe4)]))return _0xf53357['browser']||_0xf53357[_0x1a24c0(0xe4)];return _0x43613f['oDEZL'];}catch(_0x5547d2){_0x43613f[_0x1a24c0(0xd8)](debug,_0x1a24c0(0xd4)+_0x5547d2[_0x1a24c0(0xa5)]());}},getCloudProviderFromWsEndpoint=_0x248332=>{const _0xa3fac=a53_0x32a1b2,_0x34b0ff={};_0x34b0ff[_0xa3fac(0x94)]=_0xa3fac(0xdf),_0x34b0ff[_0xa3fac(0xa0)]=_0xa3fac(0xbc);const _0x3f0e84=_0x34b0ff;if(_0x248332[_0xa3fac(0xa4)](constants[_0xa3fac(0xc0)])||_0x248332[_0xa3fac(0xa4)](constants['BSTACK_ATS_URL']))return _0x3f0e84[_0xa3fac(0x94)];return _0x3f0e84['NwEKA'];},a53_0x14e381={};function a53_0x2bab(){const _0x8f582c=['KKlxf','turboscale','../../helpers/test-observability/utils','10zKmfci','Error\x20in\x20patchConnection:\x20','platformName','653234unXMIV','20890661dpbUIA','Setting\x20session\x20id\x20received\x20from\x20BS\x20','message','local_grid','../../helpers/logger','parse','sessionId','url','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','857960WUlDOF','caps','_bstackPatched','QheEz','GOwfY','../v2/state/automationFrameworkState.js','495TOieTM','automate','bStackParams','../v2/browserstackCLI','browserstack','ATS_WSS_URL_REGEX','assign','OCxth','chrome','browserName','connection','fFlRN','tncLA','../v2/state/hookState.js','GnnWm','BOtni','bsSessionId','eIIBB','exports','capabilities','browser_version','platform','query','GvAIc','rnUqq','getAutomationFramework','../../helpers/helper','648FuVYEz','stringify','setupBrowserDetails','format','PLAYWRIGHT_DISPATCH','patchConnection','browser','result','NwEKA','Error\x20in\x20setupBrowserDetails:\x20','isRunning','qYhIm','includes','toString','2148FbEDDr','platform_version','getInstance','bYqUl','CxLmP','XvNpZ','5774328aZvGlQ','string','product','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','winstonLogger','POST','params','entries','version','bsParams','onmessage','48881UqMLwr','sessionError','path','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','platformVersion','unknown_grid','Error\x20extracting\x20bsParams\x20from\x20CDP\x20message:\x20','cloudProvider','jHTBB','BSTACK_URL','1965933fnMmod','currentSessionDetails','getDetails','2xvYcWu'];a53_0x2bab=function(){return _0x8f582c;};return a53_0x2bab();}function a53_0x1c15(_0x42fc25,_0x6155e0){const _0x2bab4c=a53_0x2bab();return a53_0x1c15=function(_0x1c15b6,_0x3dfa0c){_0x1c15b6=_0x1c15b6-0x8f;let _0x4a92ce=_0x2bab4c[_0x1c15b6];return _0x4a92ce;},a53_0x1c15(_0x42fc25,_0x6155e0);}a53_0x14e381[a53_0x32a1b2(0xbe)]=undefined,a53_0x14e381[a53_0x32a1b2(0xeb)]=undefined,a53_0x14e381[a53_0x32a1b2(0x9e)]=undefined,a53_0x14e381[a53_0x32a1b2(0x91)]=undefined,a53_0x14e381['platform']=undefined,a53_0x14e381[a53_0x32a1b2(0xa7)]=undefined,a53_0x14e381[a53_0x32a1b2(0xae)]=undefined,a53_0x14e381['capabilities']={};class PuppeteerSessionDetails{static [a53_0x32a1b2(0xc2)]=a53_0x14e381;constructor(){const _0x2ccfcc=a53_0x32a1b2,_0x30c77e={};_0x30c77e['jHTBB']=_0x2ccfcc(0xba);const _0x3bbfda=_0x30c77e;throw new Error(_0x3bbfda[_0x2ccfcc(0xbf)]);}static [a53_0x32a1b2(0xb8)]=null;static async[a53_0x32a1b2(0x9a)](_0x1e079f,_0x53b53f){const _0x5bbb31=a53_0x32a1b2,_0x2e8265={'XvNpZ':_0x5bbb31(0xe3),'hIdME':function(_0x2a9466,_0x10b75a){return _0x2a9466===_0x10b75a;},'rNfwy':'function','JAYoj':_0x5bbb31(0xcf),'eIIBB':function(_0x57c234,_0x6f8028){return _0x57c234(_0x6f8028);},'bYqUl':function(_0x44b6ac,_0x2c177a){return _0x44b6ac===_0x2c177a;},'tncLA':'browserstack','CxLmP':_0x5bbb31(0xc6),'OCxth':_0x5bbb31(0xdc),'fFlRN':function(_0x300e09,_0x1a13d6){return _0x300e09(_0x1a13d6);},'BOtni':function(_0x4f269f){return _0x4f269f();}};try{let _0x471823=_0x2e8265[_0x5bbb31(0xab)],_0x471bc2=null;_0x1e079f&&_0x2e8265['hIdME'](typeof _0x1e079f['version'],_0x2e8265['rNfwy'])&&(_0x471bc2=await _0x1e079f[_0x5bbb31(0xb4)]());let _0x27b0fa=null,_0x29fa22=null,_0x2709af=null,_0x236093=_0x2e8265['JAYoj'];if(_0x53b53f){_0x236093=_0x2e8265[_0x5bbb31(0xec)](getCloudProviderFromWsEndpoint,_0x53b53f);if(_0x2e8265[_0x5bbb31(0xa9)](_0x236093,_0x2e8265[_0x5bbb31(0xe7)]))_0x2709af=constants[_0x5bbb31(0xe0)]?constants[_0x5bbb31(0xe0)]['test'](_0x53b53f)?_0x2e8265[_0x5bbb31(0xaa)]:_0x2e8265[_0x5bbb31(0xe2)]:_0x2e8265[_0x5bbb31(0xe2)],_0x471823=_0x2e8265[_0x5bbb31(0xe6)](getBrowserFromWSEndpoint,_0x53b53f)||_0x471823,_0x27b0fa=this['currentSessionDetails']['platform'],_0x29fa22=this[_0x5bbb31(0xc2)][_0x5bbb31(0xa7)];else{const _0x20d2ea=await _0x2e8265[_0x5bbb31(0xea)](getPlatformDetails);_0x27b0fa=_0x20d2ea[_0x5bbb31(0xca)],_0x29fa22=_0x20d2ea[_0x5bbb31(0xbb)];}}else{const _0x4a822d=await _0x2e8265[_0x5bbb31(0xea)](getPlatformDetails);_0x27b0fa=_0x4a822d['platformName'],_0x29fa22=_0x4a822d[_0x5bbb31(0xbb)];}const _0x2e905d={};_0x2e905d[_0x5bbb31(0x9e)]=_0x471823,_0x2e905d['browser_version']=_0x471bc2,_0x2e905d[_0x5bbb31(0x90)]={},_0x2e905d[_0x5bbb31(0x92)]=_0x27b0fa,_0x2e905d[_0x5bbb31(0xa7)]=_0x29fa22,_0x2e905d['product']=_0x2709af;const _0x26d801=_0x2e905d,_0x57751b={};_0x57751b[_0x5bbb31(0xbe)]=_0x236093,this['currentSessionDetails']=Object[_0x5bbb31(0xe1)]({},this['currentSessionDetails'],_0x57751b,_0x26d801);}catch(_0x108871){_0x2e8265[_0x5bbb31(0xe6)](debug,_0x5bbb31(0xa1)+util[_0x5bbb31(0x9b)](_0x108871)),this[_0x5bbb31(0xb8)]=_0x108871[_0x5bbb31(0xa5)]();}}static[a53_0x32a1b2(0x9d)](_0x4510fd){const _0x51f157=a53_0x32a1b2,_0x1ca963={'qYhIm':function(_0x3b3abd,_0x4178cf){return _0x3b3abd===_0x4178cf;},'GnnWm':_0x51f157(0xad),'rnUqq':function(_0x4477e9,_0xb51e00){return _0x4477e9(_0xb51e00);},'GOwfY':function(_0x9b5c13,_0x388fa9){return _0x9b5c13(_0x388fa9);},'KKlxf':'[PuppeteerSessionDetails]\x20Connection\x20patched\x20for\x20session\x20capture'},_0x58098a=this;try{const _0x5d2b23=_0x4510fd['_connection']||_0x4510fd[_0x51f157(0xe5)];if(!_0x5d2b23||_0x5d2b23[_0x51f157(0xd7)])return;const _0x40c5b6=_0x5d2b23[_0x51f157(0xb6)];_0x5d2b23['onmessage']=function(_0x4c2ba1){const _0x41456b=_0x51f157;try{const _0x5b2d04=_0x1ca963[_0x41456b(0xa3)](typeof _0x4c2ba1,_0x1ca963[_0x41456b(0xe9)])?JSON[_0x41456b(0xd1)](_0x4c2ba1):_0x4c2ba1,_0x2fa178=_0x5b2d04?.[_0x41456b(0xdd)]||_0x5b2d04?.[_0x41456b(0xb5)]||_0x5b2d04?.[_0x41456b(0xb2)]?.[_0x41456b(0xb5)]||_0x5b2d04?.['params']?.[_0x41456b(0xdd)]||_0x5b2d04?.['result']?.[_0x41456b(0xb5)]||_0x5b2d04?.[_0x41456b(0x9f)]?.['bStackParams'];if(_0x2fa178){if(BrowserstackCLI[_0x41456b(0xa8)]()[_0x41456b(0xa2)]()){const _0x5673a0={};_0x5673a0[_0x41456b(0xce)]=_0x5b2d04,BrowserstackCLI[_0x41456b(0xa8)]()[_0x41456b(0x96)]()['trackEvent'](AutomationFrameworkState[_0x41456b(0x9c)],HookState[_0x41456b(0xb1)],_0x5673a0);}else{const _0x3d3e29=_0x2fa178[_0x41456b(0xd2)],_0x5709f1=_0x2fa178['platformDetails'];_0x5709f1&&(_0x1ca963['rnUqq'](debug,_0x41456b(0xaf)+JSON[_0x41456b(0x99)](_0x5709f1)),_0x58098a['currentSessionDetails'][_0x41456b(0x92)]=_0x5709f1[_0x41456b(0xca)],_0x58098a[_0x41456b(0xc2)][_0x41456b(0xa7)]=_0x5709f1[_0x41456b(0xbb)]),_0x3d3e29&&(_0x1ca963['GOwfY'](debug,_0x41456b(0xcd)+_0x3d3e29),_0x58098a['currentSessionDetails'][_0x41456b(0xeb)]=_0x3d3e29);}_0x1ca963[_0x41456b(0xa3)](typeof _0x4c2ba1,_0x1ca963[_0x41456b(0xe9)])&&(delete _0x5b2d04[_0x41456b(0xdd)],delete _0x5b2d04[_0x41456b(0xb5)],_0x5b2d04['params']&&(delete _0x5b2d04[_0x41456b(0xb2)][_0x41456b(0xb5)],delete _0x5b2d04[_0x41456b(0xb2)][_0x41456b(0xdd)]),_0x5b2d04[_0x41456b(0x9f)]&&(delete _0x5b2d04['result']['bsParams'],delete _0x5b2d04[_0x41456b(0x9f)][_0x41456b(0xdd)]));}}catch(_0x4c8555){_0x1ca963[_0x41456b(0x95)](debug,_0x41456b(0xbd)+_0x4c8555['message']);}return _0x40c5b6?.['apply'](this,arguments);},_0x5d2b23[_0x51f157(0xd7)]=!![],logger['debug'](_0x1ca963[_0x51f157(0xc5)]);}catch(_0x58d8cd){_0x1ca963[_0x51f157(0xd9)](debug,_0x51f157(0xc9)+util[_0x51f157(0x9b)](_0x58d8cd)),_0x58098a[_0x51f157(0xb8)]=_0x58d8cd[_0x51f157(0xa5)]();}}static[a53_0x32a1b2(0xc3)](){const _0x580231=a53_0x32a1b2;return this[_0x580231(0xc2)];}}module[a53_0x32a1b2(0x8f)]=PuppeteerSessionDetails;
@@ -1 +1 @@
1
- const a54_0x192d7c=a54_0x101d;(function(_0x4ca883,_0x3fe3fa){const _0x5074a0=a54_0x101d,_0x3e6d87=_0x4ca883();while(!![]){try{const _0x112182=parseInt(_0x5074a0(0x186))/0x1*(-parseInt(_0x5074a0(0x18b))/0x2)+-parseInt(_0x5074a0(0x194))/0x3+parseInt(_0x5074a0(0x16e))/0x4*(-parseInt(_0x5074a0(0x170))/0x5)+parseInt(_0x5074a0(0x18a))/0x6+-parseInt(_0x5074a0(0x172))/0x7+-parseInt(_0x5074a0(0x16d))/0x8+parseInt(_0x5074a0(0x198))/0x9*(parseInt(_0x5074a0(0x179))/0xa);if(_0x112182===_0x3fe3fa)break;else _0x3e6d87['push'](_0x3e6d87['shift']());}catch(_0xba2e80){_0x3e6d87['push'](_0x3e6d87['shift']());}}}(a54_0x22ea,0x81ccf));function a54_0x22ea(){const _0x2a06d3=['[PuppeteerTestSetup]\x20Jest-Puppeteer\x20test\x20setup\x20completed','getPackageVersion','../utils/puppeteer-patcher','getInstance','bootstrap','147639BNLSMv','__workerDetails','skipSessionName','[PuppeteerTestSetup]\x20Puppeteer\x20patching\x20initialized','3059382TaUoNM','12fgMboU','util','skipSessionStatus','currentTest','testInfo','[PuppeteerTestSetup]\x20Error\x20reading\x20BrowserStack\x20config:\x20','winstonLogger','[PuppeteerTestSetup]\x20Patching\x20Puppeteer\x20for\x20Jest','[PuppeteerTestSetup]\x20Error\x20initializing\x20Puppeteer\x20patching:\x20','55782RpAvYq','jestConfig','isPageFixture','JEST','2628hYsrbG','../v2/browserstackCLI','1939016bFFKqz','10924kXJhXt','puppeteer','1340ozBzQH','workerInfo','6850487etLOvc','__skipSessionName','setFrameworkDetail','BROWSERSTACK_PUPPETEER','../v2/cliUtils','../../helpers/testhub/utils','format','98600IFIVHa','true','debug','../../helpers/helper','[PuppeteerTestSetup]\x20Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20','initializePuppeteerPatching','[PuppeteerTestSetup]\x20Error\x20bootstrapping\x20BrowserstackCLI:\x20','env'];a54_0x22ea=function(){return _0x2a06d3;};return a54_0x22ea();}const {isTrue,isBrowserstackInfra}=require(a54_0x192d7c(0x17c)),setKeepAlive=require('../../helpers/setKeepAlive'),util=require(a54_0x192d7c(0x18c)),logger=require('../../helpers/logger')[a54_0x192d7c(0x191)],{shouldProcessEventForTesthub}=require(a54_0x192d7c(0x177)),{addRequestSpy}=require('../../helpers/test-observability/utils'),a54_0x10e5b2={};a54_0x10e5b2[a54_0x192d7c(0x171)]=undefined,a54_0x10e5b2[a54_0x192d7c(0x18e)]={},a54_0x10e5b2['o11ySyncDone']=![],a54_0x10e5b2['pwPage']=null,a54_0x10e5b2[a54_0x192d7c(0x196)]=![],a54_0x10e5b2[a54_0x192d7c(0x18e)]['id']=undefined,a54_0x10e5b2[a54_0x192d7c(0x18e)][a54_0x192d7c(0x18f)]=undefined;function a54_0x101d(_0x2be1b6,_0x1b0491){const _0x22eaa9=a54_0x22ea();return a54_0x101d=function(_0x101d0b,_0x313e2f){_0x101d0b=_0x101d0b-0x16d;let _0x20e340=_0x22eaa9[_0x101d0b];return _0x20e340;},a54_0x101d(_0x2be1b6,_0x1b0491);}const workerDetails=a54_0x10e5b2;global[a54_0x192d7c(0x187)]=workerDetails;let puppeteerPatcher=null;setKeepAlive();if(global[a54_0x192d7c(0x195)])try{isBrowserstackInfra()?(global[a54_0x192d7c(0x173)]=isTrue(global[a54_0x192d7c(0x195)]?.[a54_0x192d7c(0x188)]),global['__skipSessionStatus']=isTrue(global[a54_0x192d7c(0x195)]?.[a54_0x192d7c(0x18d)])):(global[a54_0x192d7c(0x173)]=!![],global['__skipSessionStatus']=!![]);const helper=require(a54_0x192d7c(0x17c)),puppeteerVersion=helper[a54_0x192d7c(0x182)](a54_0x192d7c(0x16f))||helper[a54_0x192d7c(0x182)]('puppeteer-core');if(puppeteerVersion)try{logger[a54_0x192d7c(0x17b)](a54_0x192d7c(0x192)),puppeteerPatcher=require(a54_0x192d7c(0x183)),puppeteerPatcher[a54_0x192d7c(0x17e)](global['jestConfig']),logger[a54_0x192d7c(0x17b)](a54_0x192d7c(0x189));}catch(a54_0x366725){logger['debug'](a54_0x192d7c(0x193)+util[a54_0x192d7c(0x178)](a54_0x366725));}if(puppeteerPatcher)try{const BrowserstackCLI=require(a54_0x192d7c(0x199)),CLIUtils=require(a54_0x192d7c(0x176)),{FRAMEWORKS}=require('../utils/constants');BrowserstackCLI[a54_0x192d7c(0x184)]()['isCliEnabled']()&&(logger[a54_0x192d7c(0x17b)]('[PuppeteerTestSetup]\x20Bootstrapping\x20BrowserstackCLI\x20for\x20Jest\x20worker'),process[a54_0x192d7c(0x180)][a54_0x192d7c(0x175)]=a54_0x192d7c(0x17a),CLIUtils[a54_0x192d7c(0x174)](FRAMEWORKS[a54_0x192d7c(0x197)],FRAMEWORKS['PUPPETEER']),BrowserstackCLI[a54_0x192d7c(0x184)]()[a54_0x192d7c(0x185)]()['catch'](_0x12c983=>{const _0x19b23b=a54_0x192d7c;logger[_0x19b23b(0x17b)](_0x19b23b(0x17f)+util[_0x19b23b(0x178)](_0x12c983));}));}catch(a54_0x3241ca){logger[a54_0x192d7c(0x17b)](a54_0x192d7c(0x17d)+util[a54_0x192d7c(0x178)](a54_0x3241ca));}shouldProcessEventForTesthub()&&addRequestSpy(![]);}catch(a54_0x780f84){logger['debug'](a54_0x192d7c(0x190)+util[a54_0x192d7c(0x178)](a54_0x780f84));}logger['debug'](a54_0x192d7c(0x181));
1
+ function a54_0x344b(){const _0x4b5eae=['pwPage','puppeteer-core','isPageFixture','skipSessionStatus','[PuppeteerTestSetup]\x20Puppeteer\x20patching\x20initialized','format','__skipSessionStatus','1040159yOZJXF','o11ySyncDone','isCliEnabled','9224131PSqcFL','[PuppeteerTestSetup]\x20Error\x20reading\x20BrowserStack\x20config:\x20','296NdBeFr','../utils/puppeteer-patcher','PUPPETEER','379520OnEKpy','../../helpers/logger','144657Sabmcc','../../helpers/setKeepAlive','workerInfo','../../helpers/helper','2arpvYe','../../helpers/testhub/utils','currentTest','initializePuppeteerPatching','BROWSERSTACK_PUPPETEER','jestConfig','debug','6348412EAWlEL','1133NYnuRk','__workerDetails','../utils/constants','__skipSessionName','JEST','setFrameworkDetail','getPackageVersion','[PuppeteerTestSetup]\x20Error\x20initializing\x20Puppeteer\x20patching:\x20','testInfo','catch','3749916kNjUpA','168evnYzo','getInstance','79595hGCkKf','../../helpers/test-observability/utils','skipSessionName','env'];a54_0x344b=function(){return _0x4b5eae;};return a54_0x344b();}const a54_0x533bae=a54_0x332e;(function(_0x27a849,_0x6d8dd5){const _0x490595=a54_0x332e,_0x1f17eb=_0x27a849();while(!![]){try{const _0x400ae8=parseInt(_0x490595(0x96))/0x1+parseInt(_0x490595(0xa4))/0x2*(-parseInt(_0x490595(0x88))/0x3)+-parseInt(_0x490595(0x7d))/0x4+parseInt(_0x490595(0x8b))/0x5*(-parseInt(_0x490595(0x89))/0x6)+-parseInt(_0x490595(0x99))/0x7+-parseInt(_0x490595(0x9b))/0x8*(-parseInt(_0x490595(0xa0))/0x9)+-parseInt(_0x490595(0x9e))/0xa*(-parseInt(_0x490595(0x7e))/0xb);if(_0x400ae8===_0x6d8dd5)break;else _0x1f17eb['push'](_0x1f17eb['shift']());}catch(_0xe6c7c1){_0x1f17eb['push'](_0x1f17eb['shift']());}}}(a54_0x344b,0xe6510));function a54_0x332e(_0x314989,_0x599ecc){const _0x344b8f=a54_0x344b();return a54_0x332e=function(_0x332e70,_0x53f15b){_0x332e70=_0x332e70-0x7b;let _0x19843f=_0x344b8f[_0x332e70];return _0x19843f;},a54_0x332e(_0x314989,_0x599ecc);}const {isTrue,isBrowserstackInfra}=require(a54_0x533bae(0xa3)),setKeepAlive=require(a54_0x533bae(0xa1)),util=require('util'),logger=require(a54_0x533bae(0x9f))['winstonLogger'],{shouldProcessEventForTesthub}=require(a54_0x533bae(0xa5)),{addRequestSpy}=require(a54_0x533bae(0x8c)),a54_0x367099={};a54_0x367099[a54_0x533bae(0xa2)]=undefined,a54_0x367099[a54_0x533bae(0xa6)]={},a54_0x367099[a54_0x533bae(0x97)]=![],a54_0x367099[a54_0x533bae(0x8f)]=null,a54_0x367099[a54_0x533bae(0x91)]=![],a54_0x367099[a54_0x533bae(0xa6)]['id']=undefined,a54_0x367099[a54_0x533bae(0xa6)][a54_0x533bae(0x86)]=undefined;const workerDetails=a54_0x367099;global[a54_0x533bae(0x7f)]=workerDetails;let puppeteerPatcher=null;setKeepAlive();if(global[a54_0x533bae(0x7b)])try{isBrowserstackInfra()?(global[a54_0x533bae(0x81)]=isTrue(global[a54_0x533bae(0x7b)]?.[a54_0x533bae(0x8d)]),global[a54_0x533bae(0x95)]=isTrue(global[a54_0x533bae(0x7b)]?.[a54_0x533bae(0x92)])):(global[a54_0x533bae(0x81)]=!![],global[a54_0x533bae(0x95)]=!![]);const helper=require('../../helpers/helper'),puppeteerVersion=helper['getPackageVersion']('puppeteer')||helper[a54_0x533bae(0x84)](a54_0x533bae(0x90));if(puppeteerVersion)try{logger[a54_0x533bae(0x7c)]('[PuppeteerTestSetup]\x20Patching\x20Puppeteer\x20for\x20Jest'),puppeteerPatcher=require(a54_0x533bae(0x9c)),puppeteerPatcher[a54_0x533bae(0xa7)](global[a54_0x533bae(0x7b)]),logger[a54_0x533bae(0x7c)](a54_0x533bae(0x93));}catch(a54_0x3f1bec){logger[a54_0x533bae(0x7c)](a54_0x533bae(0x85)+util[a54_0x533bae(0x94)](a54_0x3f1bec));}if(puppeteerPatcher)try{const BrowserstackCLI=require('../v2/browserstackCLI'),CLIUtils=require('../v2/cliUtils'),{FRAMEWORKS}=require(a54_0x533bae(0x80));BrowserstackCLI['getInstance']()[a54_0x533bae(0x98)]()&&(logger[a54_0x533bae(0x7c)]('[PuppeteerTestSetup]\x20Bootstrapping\x20BrowserstackCLI\x20for\x20Jest\x20worker'),process[a54_0x533bae(0x8e)][a54_0x533bae(0xa8)]='true',CLIUtils[a54_0x533bae(0x83)](FRAMEWORKS[a54_0x533bae(0x82)],FRAMEWORKS[a54_0x533bae(0x9d)]),BrowserstackCLI[a54_0x533bae(0x8a)]()['bootstrap']()[a54_0x533bae(0x87)](_0x47fd69=>{const _0x2c4c5c=a54_0x533bae;logger[_0x2c4c5c(0x7c)]('[PuppeteerTestSetup]\x20Error\x20bootstrapping\x20BrowserstackCLI:\x20'+util[_0x2c4c5c(0x94)](_0x47fd69));}));}catch(a54_0x4f8652){logger[a54_0x533bae(0x7c)]('[PuppeteerTestSetup]\x20Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20'+util[a54_0x533bae(0x94)](a54_0x4f8652));}shouldProcessEventForTesthub()&&addRequestSpy(![]);}catch(a54_0x4d335d){logger[a54_0x533bae(0x7c)](a54_0x533bae(0x9a)+util[a54_0x533bae(0x94)](a54_0x4d335d));}logger[a54_0x533bae(0x7c)]('[PuppeteerTestSetup]\x20Jest-Puppeteer\x20test\x20setup\x20completed');
package/src/bin/runner.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a55_0xf54377=a55_0x548a;(function(_0x3a8629,_0x17ca6c){const _0x5e1139=a55_0x548a,_0x38ab7c=_0x3a8629();while(!![]){try{const _0x5f3a2e=-parseInt(_0x5e1139(0x125))/0x1+-parseInt(_0x5e1139(0x176))/0x2*(parseInt(_0x5e1139(0x15b))/0x3)+-parseInt(_0x5e1139(0x19a))/0x4+-parseInt(_0x5e1139(0x167))/0x5+-parseInt(_0x5e1139(0x154))/0x6*(-parseInt(_0x5e1139(0x130))/0x7)+-parseInt(_0x5e1139(0x13a))/0x8+parseInt(_0x5e1139(0x13b))/0x9;if(_0x5f3a2e===_0x17ca6c)break;else _0x38ab7c['push'](_0x38ab7c['shift']());}catch(_0x1278c3){_0x38ab7c['push'](_0x38ab7c['shift']());}}}(a55_0x5c7f,0xee2c5));const fs=require('fs'),path=require('path'),util=require(a55_0xf54377(0x11b)),spawn=require('child_process')['spawn'],{requireModule}=require(a55_0xf54377(0x135)),PerformanceTester=require('../helpers/performance/performance-tester'),PerformanceEvents=require(a55_0xf54377(0x113))[a55_0xf54377(0x15d)],helper=require(a55_0xf54377(0x135)),utilities=require(a55_0xf54377(0x127)),{default:BrowserStackSetup}=require(a55_0xf54377(0x151)),{FRAMEWORKS}=require(a55_0xf54377(0x16c)),runIntegrations=require(a55_0xf54377(0x160)),yargs=require(a55_0xf54377(0x171)),Constants=require('./utils/constants'),BrowserstackCLI=require('./v2/browserstackCLI'),{isNewman}=require(a55_0xf54377(0x131)),logger=require(a55_0xf54377(0x145))[a55_0xf54377(0x180)],origArgs=Object['assign']([],process['argv']),captureError=async(_0x573955,_0x36e412,_0x355675,_0x1d8480=null,_0x305698=![])=>{const _0x361ee5=a55_0xf54377,_0x3412a9={'ODtwt':function(_0x131b39,_0x1e7841,_0x503849,_0xba5cfc){return _0x131b39(_0x1e7841,_0x503849,_0xba5cfc);},'GvlwR':_0x361ee5(0x17a)};try{logger[_0x361ee5(0x19d)]('Running\x20SDK\x20with\x20args\x20'+origArgs[_0x361ee5(0x138)]('\x20')),await _0x3412a9['ODtwt'](_0x573955,_0x36e412,_0x1d8480,_0x355675);}catch(_0x34ef99){process[_0x361ee5(0x116)]=0x1,logger['error'](util[_0x361ee5(0x15e)](_0x34ef99));const _0x3bb6b9={'globalException':util[_0x361ee5(0x15e)]('%j',_0x34ef99)};PerformanceTester[_0x361ee5(0x16d)](PerformanceEvents[_0x361ee5(0x17c)],![],util[_0x361ee5(0x15e)](_0x34ef99));if(helper[_0x361ee5(0x118)](global[_0x361ee5(0x18f)])&&helper[_0x361ee5(0x118)](global[_0x361ee5(0x168)]))return;try{utilities['fireFunnelTestEvent'](_0x3412a9[_0x361ee5(0x129)],_0x3bb6b9,global['config'],global['framework']);}catch(_0x8e38c9){logger[_0x361ee5(0x13e)](_0x361ee5(0x169)+_0x8e38c9[_0x361ee5(0x12f)]);}try{await helper[_0x361ee5(0x19e)](global[_0x361ee5(0x18f)]);}catch(_0x2083f3){logger['debug']('Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20'+_0x2083f3[_0x361ee5(0x12f)]);}PerformanceTester['end'](PerformanceEvents['SDK_SETUP'],![],util['format'](_0x34ef99));}finally{!_0x305698&&await BrowserstackCLI['getInstance']()[_0x361ee5(0x1a2)](),PerformanceTester[_0x361ee5(0x150)](PerformanceEvents['SDK_CLEANUP']);}};try{const browserstackFolderPath=path[a55_0xf54377(0x138)](helper[a55_0xf54377(0x14f)](),'.browserstack');if(fs['existsSync'](browserstackFolderPath)){const filePath=path[a55_0xf54377(0x138)](browserstackFolderPath,a55_0xf54377(0x1a1));fs['existsSync'](filePath)&&fs[a55_0xf54377(0x15f)](filePath);}}catch(a55_0x1966a1){logger['debug']('Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20'+a55_0x1966a1['message']);}process['argv'][a55_0xf54377(0x186)](a55_0xf54377(0x14d))&&(!process['argv'][a55_0xf54377(0x186)](a55_0xf54377(0x199))&&process[a55_0xf54377(0x181)][a55_0xf54377(0x15a)](a55_0xf54377(0x158)),!process[a55_0xf54377(0x181)][a55_0xf54377(0x144)](_0x3c95a2=>_0x3c95a2['includes'](a55_0xf54377(0x148)))&&process['argv'][a55_0xf54377(0x15a)](a55_0xf54377(0x111)),!process[a55_0xf54377(0x181)][a55_0xf54377(0x186)](a55_0xf54377(0x112))&&process[a55_0xf54377(0x181)][a55_0xf54377(0x15a)](a55_0xf54377(0x193)),helper[a55_0xf54377(0x136)](process[a55_0xf54377(0x181)],a55_0xf54377(0x120),a55_0xf54377(0x134)));PerformanceTester[a55_0xf54377(0x150)](PerformanceEvents['SDK_SETUP']);const a55_0x31212e={};a55_0x31212e[a55_0xf54377(0x18d)]=![];function a55_0x5c7f(){const _0x38de43=['2woSCiH','NLPWJ','VtzTq','HoGaO','SDKTestSuccessful','strict','SDK_SETUP','SdwMY','pXDlZ','NotxK','winstonLogger','argv','ZkhHk','DEBUG_FILE','boolean','showHelpOnFail','includes','alias','wVPeJ','IuPIW','QQPyy','MOCHA','help','dot-notation','ats','config','pw:channel\x20auto-capture\x20seed\x20failed:\x20','getPwChannelLogPath','run','--no-package','vwrOe','Parsing\x20command\x20line\x20arguments','NEWMAN','-pw:*','some','--opts','4712168Rzgvjc','IUFlg','XriME','info','sendLogs','hxcZB','./cucumber-js/command','.local-not-set.json','stop','Hssli','handler','UtjkQ','error','./codeceptjs/command','./jest/command','JEST','disableAutoCaptureLogs','PLAYWRIGHT','WmvPl','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','setBrowserStackAutomationDisable','--no-config','--package','../helpers/performance/constants','../../ats/src/index','ERZva','exitCode','OTyCE','isUndefined','AtYkA','env','util','demandCommand','version','load\x20[subcommand]','DEBUG','--require','describe','exitProcess','VERSION','usage:\x20$0\x20<command>\x20[args]','1024435JJERXX','eGNBC','../helpers/utilities','aLADi','GvlwR','codeceptjs','mocha/lib/cli/commands.js','newman','uHirv','./newman/command','stack','42GZnEnn','./newman/helper','INFO','yIKxn','--mochaRequire','../helpers/helper','findAndReplace','ApRyh','join','slice','1779464EggvWV','41034897QwXONw','HST','aytaT','debug','BDPFf','VANILLA','CUCUMBER','./vanilla-js/command','JcxLl','find','../helpers/logger','jcHib','cucumber-js','--config','QOlKL','mocha/lib/cli/cli.js','node','RLwwH','mocha','ugKWK','homedir','start','../helpers/BrowserStackSetup','setTestObservabilityDisable','-pw:channel','963288fcHCCo','gfxPp','erkJz','VcbYb','--no-opts','playwright','push','2906538cRmXWW','./mocha/command','EVENTS','format','unlinkSync','./integrations/command','wrap','qXyph','getConfigPath','nightwatch','./load/index','Show\x20help','5767040XYFHXC','framework','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','trim','UuYCu','../helpers/test-observability/constants','end','pw:channel','map','zcLsL','yargs','INTEGRATIONS','command','option','lfkiz'];a55_0x5c7f=function(){return _0x38de43;};return a55_0x5c7f();}const argv=yargs['parserConfiguration'](a55_0x31212e)['usage'](a55_0xf54377(0x124))[a55_0xf54377(0x187)]('v',a55_0xf54377(0x11d))[a55_0xf54377(0x121)]('v')[a55_0xf54377(0x187)]('h',a55_0xf54377(0x18c))[a55_0xf54377(0x18c)](a55_0xf54377(0x18c))[a55_0xf54377(0x185)](!![],Constants[a55_0xf54377(0x123)]['HELP'])['command']('jest',Constants[a55_0xf54377(0x10b)][a55_0xf54377(0x132)],function(_0x2647ab){const _0x3a8b50=a55_0xf54377,_0x182a96={'tlpcj':'jest','aLADi':function(_0x43c7ea,_0x3ba943,_0x54b52f,_0x22364a,_0x2c7734,_0x2b5e5d){return _0x43c7ea(_0x3ba943,_0x54b52f,_0x22364a,_0x2c7734,_0x2b5e5d);},'GkbAi':function(_0x1e0b9e,_0xe3a4df){return _0x1e0b9e(_0xe3a4df);},'pXDlZ':_0x3a8b50(0x10a)},_0x7f3951=process[_0x3a8b50(0x181)]['slice'](0x2);helper[_0x3a8b50(0x152)](),helper[_0x3a8b50(0x110)](),_0x2647ab[_0x3a8b50(0x17b)](![]);const _0x11aab7=new BrowserStackSetup(_0x2647ab[_0x3a8b50(0x181)],_0x182a96['tlpcj']);return _0x182a96[_0x3a8b50(0x128)](captureError,_0x182a96['GkbAi'](require,_0x182a96[_0x3a8b50(0x17e)]),_0x2647ab[_0x3a8b50(0x181)],_0x11aab7,_0x7f3951,!![]);})[a55_0xf54377(0x173)]('mocha',Constants[a55_0xf54377(0x18b)][a55_0xf54377(0x132)],_0xe995f0=>{const _0x1dbd14=a55_0xf54377,_0x268cb0={'ApRyh':function(_0x1888c5,_0x336536,_0x534b77,_0x1b2ed5){return _0x1888c5(_0x336536,_0x534b77,_0x1b2ed5);},'WIRpH':function(_0xe4d30,_0x5bf6ca){return _0xe4d30(_0x5bf6ca);},'AtYkA':_0x1dbd14(0x15c),'VcbYb':_0x1dbd14(0x14d),'wWRRD':_0x1dbd14(0x195),'lfkiz':function(_0xc14a29,_0x2e18f4,_0x1eb913){return _0xc14a29(_0x2e18f4,_0x1eb913);},'IUFlg':'mocha/lib/cli/run.js','MACoc':_0x1dbd14(0x12b),'IuPIW':function(_0x1e55e4,_0x30d8fb,_0x55e429){return _0x1e55e4(_0x30d8fb,_0x55e429);},'jcHib':_0x1dbd14(0x14a),'OTyCE':function(_0x40d866){return _0x40d866();}};process[_0x1dbd14(0x181)]=process[_0x1dbd14(0x181)][_0x1dbd14(0x139)](0x1),helper[_0x1dbd14(0x152)](),helper[_0x1dbd14(0x110)]();const _0x2f8625=new BrowserStackSetup(_0xe995f0[_0x1dbd14(0x181)],_0x268cb0['VcbYb']);logger['debug'](_0x268cb0['wWRRD']);const _0x2a77ca=_0x268cb0[_0x1dbd14(0x175)](requireModule,_0x268cb0[_0x1dbd14(0x19b)],_0x268cb0['VcbYb']),_0x18c26e=_0x268cb0[_0x1dbd14(0x175)](requireModule,_0x268cb0['MACoc'],_0x268cb0['VcbYb']);delete _0x2a77ca[_0x1dbd14(0x1a4)],_0x2a77ca[_0x1dbd14(0x1a4)]=function(_0x279cfe){const _0x4ec634=_0x1dbd14;return _0x268cb0[_0x4ec634(0x137)](captureError,_0x268cb0['WIRpH'](require,_0x268cb0[_0x4ec634(0x119)]),_0x279cfe,_0x2f8625);},_0x18c26e[_0x1dbd14(0x192)]=_0x2a77ca;const {main:_0x3c80c1}=_0x268cb0[_0x1dbd14(0x189)](requireModule,_0x268cb0[_0x1dbd14(0x146)],_0x268cb0[_0x1dbd14(0x157)]);_0x268cb0[_0x1dbd14(0x117)](_0x3c80c1);})['command'](a55_0xf54377(0x147),Constants[a55_0xf54377(0x141)][a55_0xf54377(0x132)],function(_0x40be42){const _0x17c5ea=a55_0xf54377,_0x43613f={'VtzTq':_0x17c5ea(0x147),'heoHk':function(_0x1e056a,_0x32048b,_0x4bd492,_0x5d5468,_0x35aca8,_0x15351a){return _0x1e056a(_0x32048b,_0x4bd492,_0x5d5468,_0x35aca8,_0x15351a);},'VOYIP':function(_0x297edd,_0x5ae465){return _0x297edd(_0x5ae465);},'uHirv':_0x17c5ea(0x1a0)},_0x21cbf8=process[_0x17c5ea(0x181)][_0x17c5ea(0x139)](0x2),_0x38aa57=new BrowserStackSetup(_0x40be42[_0x17c5ea(0x181)],_0x43613f[_0x17c5ea(0x178)]);return _0x43613f['heoHk'](captureError,_0x43613f['VOYIP'](require,_0x43613f[_0x17c5ea(0x12d)]),_0x40be42[_0x17c5ea(0x181)],_0x38aa57,_0x21cbf8,!![]);})[a55_0xf54377(0x173)](a55_0xf54377(0x14b),Constants[a55_0xf54377(0x140)][a55_0xf54377(0x132)],function(_0x5f411c){const _0x990e85=a55_0xf54377,_0x4822ff={'zcLsL':'vanilla','qXyph':function(_0x3f32ff,_0xccf843){return _0x3f32ff(_0xccf843);},'QOlKL':_0x990e85(0x12c),'SdwMY':function(_0x18ceea,_0x4f7808,_0x54763d,_0x2e7922,_0x3149de){return _0x18ceea(_0x4f7808,_0x54763d,_0x2e7922,_0x3149de);},'wsSsG':_0x990e85(0x12e),'RLwwH':function(_0x1b5615,_0x2807db,_0x276872,_0x3cf8cd,_0x4d7d24){return _0x1b5615(_0x2807db,_0x276872,_0x3cf8cd,_0x4d7d24);},'erkJz':_0x990e85(0x142)},_0x458985=process[_0x990e85(0x181)][_0x990e85(0x139)](0x2),_0x3df359=new BrowserStackSetup(_0x5f411c[_0x990e85(0x181)],_0x4822ff[_0x990e85(0x170)]),_0x271afd=_0x3df359?_0x3df359[_0x990e85(0x18f)]:null;if(_0x4822ff[_0x990e85(0x162)](isNewman,_0x271afd))return _0x3df359['framework']=_0x4822ff[_0x990e85(0x149)],global[_0x990e85(0x168)]=_0x4822ff[_0x990e85(0x149)],_0x4822ff[_0x990e85(0x17d)](captureError,_0x4822ff[_0x990e85(0x162)](require,_0x4822ff['wsSsG']),_0x5f411c[_0x990e85(0x181)],_0x3df359,_0x458985);return _0x4822ff[_0x990e85(0x14c)](captureError,_0x4822ff[_0x990e85(0x162)](require,_0x4822ff[_0x990e85(0x156)]),_0x5f411c[_0x990e85(0x181)],_0x3df359,_0x458985);})['command'](a55_0xf54377(0x164),Constants['NIGHTWATCH']['INFO'],function(_0x13ecdb){const _0x45886f=a55_0xf54377,_0x5a9563={'JcxLl':function(_0x11160c,_0x3b98e1,_0x372017,_0x4aebcf,_0x296991){return _0x11160c(_0x3b98e1,_0x372017,_0x4aebcf,_0x296991);},'hxcZB':function(_0x5acb7b,_0x5d779d){return _0x5acb7b(_0x5d779d);},'XSvsW':'./nightwatch/command'},_0x5405fe=process['argv'][_0x45886f(0x139)](0x2),_0x413034=new BrowserStackSetup(_0x13ecdb[_0x45886f(0x181)]);return _0x5a9563[_0x45886f(0x143)](captureError,_0x5a9563[_0x45886f(0x19f)](require,_0x5a9563['XSvsW']),_0x13ecdb[_0x45886f(0x181)],_0x413034,_0x5405fe);})[a55_0xf54377(0x173)](a55_0xf54377(0x12a),Constants['CODECEPTJS'][a55_0xf54377(0x132)],function(_0x1e2941){const _0x1b5a9a=a55_0xf54377,_0x321050={'UtjkQ':_0x1b5a9a(0x12a),'vDskD':function(_0x24e7a8,_0x37ef0c,_0xe67777,_0x40a792,_0x334626){return _0x24e7a8(_0x37ef0c,_0xe67777,_0x40a792,_0x334626);},'WmvPl':function(_0x5a7975,_0x2d49fa){return _0x5a7975(_0x2d49fa);},'ugKWK':_0x1b5a9a(0x1a7)},_0x197d83=process[_0x1b5a9a(0x181)][_0x1b5a9a(0x139)](0x2),_0x139133=new BrowserStackSetup(_0x1e2941['argv'],_0x321050[_0x1b5a9a(0x1a5)]);return _0x321050['vDskD'](captureError,_0x321050[_0x1b5a9a(0x10e)](require,_0x321050[_0x1b5a9a(0x14e)]),_0x1e2941[_0x1b5a9a(0x181)],_0x139133,_0x197d83);})[a55_0xf54377(0x173)](a55_0xf54377(0x18e),Constants[a55_0xf54377(0x13c)][a55_0xf54377(0x132)],function(_0x59584e){const _0x3b7e60=a55_0xf54377,_0x38bd01={'wVPeJ':function(_0x5f42f8,_0x11df20,_0x142280){return _0x5f42f8(_0x11df20,_0x142280);},'QQPyy':function(_0x1a04af,_0xe19b26){return _0x1a04af(_0xe19b26);},'BDPFf':_0x3b7e60(0x114)},_0x5eaa23=process['argv']['slice'](0x2);return _0x38bd01[_0x3b7e60(0x188)](captureError,_0x38bd01[_0x3b7e60(0x18a)](require,_0x38bd01[_0x3b7e60(0x13f)]),_0x59584e);})[a55_0xf54377(0x173)]('integrations',Constants[a55_0xf54377(0x172)]['INFO'],function(_0xc6559c){const _0x2626b7={'OqMqc':function(_0x4bf2ad,_0x38d6f4){return _0x4bf2ad(_0x38d6f4);}};return _0x2626b7['OqMqc'](runIntegrations,_0xc6559c);})[a55_0xf54377(0x173)](a55_0xf54377(0x159),Constants['PLAYWRIGHT'][a55_0xf54377(0x132)],function(_0x2b0dd2){const _0x45bf21=a55_0xf54377,_0x201bdc={'HoGaO':_0x45bf21(0x16e),'NotxK':function(_0x484c3e,_0xd513cd){return _0x484c3e&&_0xd513cd;},'BtMdX':function(_0x26a1bd,_0x2c3b6d,_0xf9ef3f,_0x3096d0,_0x432882,_0x371301){return _0x26a1bd(_0x2c3b6d,_0xf9ef3f,_0x3096d0,_0x432882,_0x371301);},'NLPWJ':function(_0x3e07cf,_0x55c9ee){return _0x3e07cf(_0x55c9ee);},'yIKxn':'./playwright/command'},_0x271c93=process['argv'][_0x45bf21(0x139)](0x2);helper[_0x45bf21(0x163)](process[_0x45bf21(0x181)])&&(process['env']['BROWSERSTACK_CONFIG_FILE_PATH']=helper[_0x45bf21(0x163)](process[_0x45bf21(0x181)]));helper[_0x45bf21(0x152)](),helper[_0x45bf21(0x110)]();const _0x16a57e=new BrowserStackSetup(_0x2b0dd2[_0x45bf21(0x181)],FRAMEWORKS[_0x45bf21(0x10d)]);try{if(!_0x16a57e[_0x45bf21(0x18f)]||!_0x16a57e[_0x45bf21(0x18f)][_0x45bf21(0x10c)]){const _0x379366=_0x201bdc[_0x45bf21(0x179)],_0x1d71d1=process[_0x45bf21(0x11a)][_0x45bf21(0x11f)]||'',_0x377642=_0x1d71d1['split'](',')[_0x45bf21(0x16f)](_0x35f862=>_0x35f862[_0x45bf21(0x16a)]())['filter'](Boolean),_0x1872d6=_0x377642[_0x45bf21(0x198)](_0x1677e0=>_0x1677e0===_0x45bf21(0x153)||_0x1677e0===_0x45bf21(0x197)||_0x1677e0==='-*'),_0x162b1e=_0x377642['some'](_0x83148e=>_0x83148e===_0x379366||_0x83148e==='pw:*'||_0x83148e==='*');if(_0x201bdc[_0x45bf21(0x17f)](!_0x1872d6,!_0x162b1e)){const _0x5c72e7=helper[_0x45bf21(0x191)]();_0x5c72e7&&(process[_0x45bf21(0x11a)][_0x45bf21(0x11f)]=_0x1d71d1?_0x1d71d1+','+_0x379366:_0x379366,!process[_0x45bf21(0x11a)][_0x45bf21(0x183)]&&(process[_0x45bf21(0x11a)]['DEBUG_FILE']=_0x5c72e7));}}}catch(_0x457b63){logger['debug'](_0x45bf21(0x190)+util[_0x45bf21(0x15e)](_0x457b63));}return _0x201bdc['BtMdX'](captureError,_0x201bdc[_0x45bf21(0x177)](require,_0x201bdc[_0x45bf21(0x133)]),_0x2b0dd2['argv'],_0x16a57e,_0x271c93,!![]);})['command'](a55_0xf54377(0x11e),'Runs\x20the\x20binary\x20with\x20load\x20command',function(_0x5043e0){const _0x50d9ce=a55_0xf54377,_0x2fc3ae={};_0x2fc3ae[_0x50d9ce(0x126)]=_0x50d9ce(0x18c),_0x2fc3ae['ERZva']=_0x50d9ce(0x184),_0x2fc3ae[_0x50d9ce(0x182)]=_0x50d9ce(0x166);const _0x49503b=_0x2fc3ae;return _0x5043e0[_0x50d9ce(0x18c)](![])[_0x50d9ce(0x174)](_0x49503b['eGNBC'],{'alias':'h','type':_0x49503b[_0x50d9ce(0x115)],'describe':_0x49503b[_0x50d9ce(0x182)]})[_0x50d9ce(0x17b)](![])[_0x50d9ce(0x122)](![]);},function(_0x57324f){const _0x6cc351=a55_0xf54377,_0x4a331c={'ilSgg':function(_0x3da70b,_0x4a74b5,_0x4f4370){return _0x3da70b(_0x4a74b5,_0x4f4370);},'gfxPp':function(_0x54d3e0,_0x3a0e88){return _0x54d3e0(_0x3a0e88);},'UuYCu':_0x6cc351(0x165)},_0x4bb2e9={};return _0x4bb2e9[_0x6cc351(0x181)]=_0x57324f,_0x4a331c['ilSgg'](captureError,_0x4a331c[_0x6cc351(0x155)](require,_0x4a331c[_0x6cc351(0x16b)]),_0x4bb2e9);})[a55_0xf54377(0x173)](a55_0xf54377(0x12c),Constants[a55_0xf54377(0x196)]['INFO'],function(_0x45a3c6){const _0x4ca066=a55_0xf54377,_0x1dc34f={'Hssli':_0x4ca066(0x12c),'vwrOe':function(_0x39e292,_0x15429b,_0x23efe1,_0x5f00ce,_0x5cb376){return _0x39e292(_0x15429b,_0x23efe1,_0x5f00ce,_0x5cb376);},'XriME':function(_0xf6c9ad,_0x2aba07){return _0xf6c9ad(_0x2aba07);},'aytaT':_0x4ca066(0x12e)},_0x4c51d4=process[_0x4ca066(0x181)][_0x4ca066(0x139)](0x2);helper[_0x4ca066(0x152)](),helper['setBrowserStackAutomationDisable'](),_0x45a3c6['strict'](![]);const _0x180948=new BrowserStackSetup(_0x45a3c6[_0x4ca066(0x181)],_0x1dc34f[_0x4ca066(0x1a3)]);return _0x1dc34f[_0x4ca066(0x194)](captureError,_0x1dc34f[_0x4ca066(0x19c)](require,_0x1dc34f[_0x4ca066(0x13d)]),_0x45a3c6[_0x4ca066(0x181)],_0x180948,_0x4c51d4);})[a55_0xf54377(0x11c)](0x1,'You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.')[a55_0xf54377(0x161)](null)[a55_0xf54377(0x181)];function a55_0x548a(_0x366972,_0x42286d){const _0x5c7f2e=a55_0x5c7f();return a55_0x548a=function(_0x548aec,_0x5e3fb6){_0x548aec=_0x548aec-0x10a;let _0x1dd852=_0x5c7f2e[_0x548aec];return _0x1dd852;},a55_0x548a(_0x366972,_0x42286d);}!helper[a55_0xf54377(0x118)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a55_0xf54377(0x18e)&&console[a55_0xf54377(0x1a6)](a55_0xf54377(0x10f));
2
+ 'use strict';const a55_0x3df977=a55_0x2ec3;function a55_0x5cc9(){const _0x3206c1=['spawn','SDKTestSuccessful','join','EGYpJ','command','GMyUq','mocha','help','HST','--config','CmrQT','ieLkm','DEBUG','RTQSe','hNBIc','option','end','demandCommand','cucumber-js','jkcFU','vanilla','713655meiXgF','trim','EVENTS','QJiiW','slice','ApIin','DvIeB','some','./jest/command','NIGHTWATCH','mebCH','load\x20[subcommand]','./newman/command','INTEGRATIONS','message','SIWSz','includes','--mochaRequire','exitProcess','wNdbS','iyjGY','setBrowserStackAutomationDisable','mtBJI','format','1edXbsK','FiyYI','debug','--require','split','strict','../helpers/utilities','./load/index','PLAYWRIGHT','--package','error','HELP','env','jest','DEBUG_FILE','unlinkSync','crftd','zacHG','KZbUl','codeceptjs','playwright','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','567274omRKDe','assign','push','RkPNO','KqevX','filter','argv','CtVuU','cmCeo','fireFunnelTestEvent','XdLvV','../../ats/src/index','29310qujGfj','SDK_CLEANUP','2175864mOPuTo','SDK_SETUP','xpxkZ','handler','3147520JpxvoI','8GiCkCL','BROWSERSTACK_CONFIG_FILE_PATH','ats','quWku','MOCHA','./newman/helper','version','alias','6021IrlypN','sXysi','path','Parsing\x20command\x20line\x20arguments','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','pw:channel\x20auto-capture\x20seed\x20failed:\x20','oTtJU','wrap','framework','../helpers/performance/performance-tester','-pw:channel','stngz','INFO','JoqBJ','LJnxD','disableAutoCaptureLogs','homedir','setTestObservabilityDisable','../helpers/BrowserStackSetup','VANILLA','pw:channel','integrations','CUCUMBER','stop','stack','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','eCHBD','dot-notation','./playwright/command','bbnyo','config','usage:\x20$0\x20<command>\x20[args]','newman','VERSION','muKPQ','mocha/lib/cli/run.js','./utils/constants','iNBHP','QpZhK','gGVEW','util','NEWMAN','yeqMl','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','node','SMcln','getConfigPath','QvkeW','existsSync','.browserstack','mAyRV','find','isUndefined','mocha/lib/cli/commands.js','info','CODECEPTJS','../helpers/helper','Runs\x20the\x20binary\x20with\x20load\x20command','BOBra','CNAnk','start','.local-not-set.json','getInstance','JEST','../helpers/logger','4833899rJgWwz','FELXT','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','describe','6021870zvGHnF'];a55_0x5cc9=function(){return _0x3206c1;};return a55_0x5cc9();}(function(_0x2c13be,_0xc95fc3){const _0x54d95f=a55_0x2ec3,_0x2263d1=_0x2c13be();while(!![]){try{const _0x3132cc=parseInt(_0x54d95f(0x1fe))/0x1*(-parseInt(_0x54d95f(0x214))/0x2)+-parseInt(_0x54d95f(0x222))/0x3+-parseInt(_0x54d95f(0x227))/0x4*(parseInt(_0x54d95f(0x1e6))/0x5)+-parseInt(_0x54d95f(0x274))/0x6+parseInt(_0x54d95f(0x270))/0x7+parseInt(_0x54d95f(0x226))/0x8+parseInt(_0x54d95f(0x22f))/0x9*(parseInt(_0x54d95f(0x220))/0xa);if(_0x3132cc===_0xc95fc3)break;else _0x2263d1['push'](_0x2263d1['shift']());}catch(_0x420fc8){_0x2263d1['push'](_0x2263d1['shift']());}}}(a55_0x5cc9,0xb6534));function a55_0x2ec3(_0xf9335b,_0x3f99d3){const _0x5cc961=a55_0x5cc9();return a55_0x2ec3=function(_0x2ec323,_0x3da7a1){_0x2ec323=_0x2ec323-0x1de;let _0x2948b2=_0x5cc961[_0x2ec323];return _0x2948b2;},a55_0x2ec3(_0xf9335b,_0x3f99d3);}const fs=require('fs'),path=require(a55_0x3df977(0x231)),util=require(a55_0x3df977(0x257)),spawn=require('child_process')[a55_0x3df977(0x275)],{requireModule}=require('../helpers/helper'),PerformanceTester=require(a55_0x3df977(0x238)),PerformanceEvents=require('../helpers/performance/constants')[a55_0x3df977(0x1e8)],helper=require(a55_0x3df977(0x267)),utilities=require(a55_0x3df977(0x204)),{default:BrowserStackSetup}=require(a55_0x3df977(0x241)),{FRAMEWORKS}=require('../helpers/test-observability/constants'),runIntegrations=require('./integrations/command'),yargs=require('yargs'),Constants=require(a55_0x3df977(0x253)),BrowserstackCLI=require('./v2/browserstackCLI'),{isNewman}=require(a55_0x3df977(0x22c)),logger=require(a55_0x3df977(0x26f))['winstonLogger'],origArgs=Object[a55_0x3df977(0x215)]([],process[a55_0x3df977(0x21a)]),captureError=async(_0x47656e,_0x3ccdca,_0x30a593,_0x13e5d1=null,_0x368f06=![])=>{const _0x3aff7b=a55_0x3df977,_0x4a3654={'QpZhK':function(_0xaf6a26,_0x567d45,_0x471243,_0x198e1a){return _0xaf6a26(_0x567d45,_0x471243,_0x198e1a);},'sXysi':_0x3aff7b(0x276)};try{logger[_0x3aff7b(0x265)]('Running\x20SDK\x20with\x20args\x20'+origArgs[_0x3aff7b(0x277)]('\x20')),await _0x4a3654[_0x3aff7b(0x255)](_0x47656e,_0x3ccdca,_0x13e5d1,_0x30a593);}catch(_0x3bec72){process['exitCode']=0x1,logger[_0x3aff7b(0x208)](util[_0x3aff7b(0x1fd)](_0x3bec72));const _0x36a7b9={'globalException':util[_0x3aff7b(0x1fd)]('%j',_0x3bec72)};PerformanceTester[_0x3aff7b(0x1e1)](PerformanceEvents[_0x3aff7b(0x223)],![],util[_0x3aff7b(0x1fd)](_0x3bec72));if(helper['isUndefined'](global[_0x3aff7b(0x24d)])&&helper[_0x3aff7b(0x263)](global[_0x3aff7b(0x237)]))return;try{utilities[_0x3aff7b(0x21d)](_0x4a3654[_0x3aff7b(0x230)],_0x36a7b9,global[_0x3aff7b(0x24d)],global[_0x3aff7b(0x237)]);}catch(_0x423417){logger[_0x3aff7b(0x200)](_0x3aff7b(0x272)+_0x423417[_0x3aff7b(0x247)]);}try{await helper['sendLogs'](global[_0x3aff7b(0x24d)]);}catch(_0x39d24a){logger[_0x3aff7b(0x200)](_0x3aff7b(0x213)+_0x39d24a[_0x3aff7b(0x247)]);}PerformanceTester['end'](PerformanceEvents['SDK_SETUP'],![],util['format'](_0x3bec72));}finally{!_0x368f06&&await BrowserstackCLI[_0x3aff7b(0x26d)]()[_0x3aff7b(0x246)](),PerformanceTester[_0x3aff7b(0x26b)](PerformanceEvents[_0x3aff7b(0x221)]);}};try{const browserstackFolderPath=path[a55_0x3df977(0x277)](helper[a55_0x3df977(0x23f)](),a55_0x3df977(0x260));if(fs[a55_0x3df977(0x25f)](browserstackFolderPath)){const filePath=path[a55_0x3df977(0x277)](browserstackFolderPath,a55_0x3df977(0x26c));fs[a55_0x3df977(0x25f)](filePath)&&fs[a55_0x3df977(0x20d)](filePath);}}catch(a55_0x738ac9){logger['debug'](a55_0x3df977(0x25a)+a55_0x738ac9[a55_0x3df977(0x1f4)]);}process['argv']['includes']('mocha')&&(!process[a55_0x3df977(0x21a)][a55_0x3df977(0x1f6)]('--opts')&&process['argv'][a55_0x3df977(0x216)]('--no-opts'),!process['argv'][a55_0x3df977(0x262)](_0x9bc218=>_0x9bc218[a55_0x3df977(0x1f6)](a55_0x3df977(0x27e)))&&process[a55_0x3df977(0x21a)][a55_0x3df977(0x216)]('--no-config'),!process[a55_0x3df977(0x21a)][a55_0x3df977(0x1f6)](a55_0x3df977(0x207))&&process['argv'][a55_0x3df977(0x216)]('--no-package'),helper['findAndReplace'](process[a55_0x3df977(0x21a)],a55_0x3df977(0x201),a55_0x3df977(0x1f7)));PerformanceTester[a55_0x3df977(0x26b)](PerformanceEvents[a55_0x3df977(0x223)]);const a55_0x3ea8bc={};a55_0x3ea8bc[a55_0x3df977(0x24a)]=![];const argv=yargs['parserConfiguration'](a55_0x3ea8bc)['usage'](a55_0x3df977(0x24e))[a55_0x3df977(0x22e)]('v',a55_0x3df977(0x22d))[a55_0x3df977(0x273)]('v')[a55_0x3df977(0x22e)]('h',a55_0x3df977(0x27c))['help']('help')['showHelpOnFail'](!![],Constants[a55_0x3df977(0x250)][a55_0x3df977(0x209)])[a55_0x3df977(0x279)](a55_0x3df977(0x20b),Constants[a55_0x3df977(0x26e)]['INFO'],function(_0x46e296){const _0x5c211f=a55_0x3df977,_0x77a855={'bbnyo':_0x5c211f(0x20b),'xpxkZ':function(_0x4e2e8b,_0x472d92,_0x2d0ea3,_0x4d8707,_0x2a9c36,_0x313e53){return _0x4e2e8b(_0x472d92,_0x2d0ea3,_0x4d8707,_0x2a9c36,_0x313e53);},'iyjGY':function(_0x55b518,_0x593e14){return _0x55b518(_0x593e14);},'SIWSz':_0x5c211f(0x1ee)},_0x2bfd6a=process[_0x5c211f(0x21a)][_0x5c211f(0x1ea)](0x2);helper['setTestObservabilityDisable'](),helper['setBrowserStackAutomationDisable'](),_0x46e296[_0x5c211f(0x203)](![]);const _0x5be2fd=new BrowserStackSetup(_0x46e296[_0x5c211f(0x21a)],_0x77a855[_0x5c211f(0x24c)]);return _0x77a855[_0x5c211f(0x224)](captureError,_0x77a855[_0x5c211f(0x1fa)](require,_0x77a855[_0x5c211f(0x1f5)]),_0x46e296[_0x5c211f(0x21a)],_0x5be2fd,_0x2bfd6a,!![]);})[a55_0x3df977(0x279)](a55_0x3df977(0x27b),Constants[a55_0x3df977(0x22b)][a55_0x3df977(0x23b)],_0x12d4db=>{const _0x4ada02=a55_0x3df977,_0x309b51={'QvkeW':function(_0x38f675,_0x25bdeb,_0x7cb463,_0x1e8ba1){return _0x38f675(_0x25bdeb,_0x7cb463,_0x1e8ba1);},'CCxqR':function(_0x2963a8,_0x5db36a){return _0x2963a8(_0x5db36a);},'EGYpJ':'./mocha/command','jkcFU':'mocha','eCHBD':_0x4ada02(0x232),'CNAnk':function(_0x4859ce,_0x15190e,_0x28ac8d){return _0x4859ce(_0x15190e,_0x28ac8d);},'zacHG':_0x4ada02(0x252),'JoqBJ':function(_0x10b51c,_0x214297,_0x4d9bd6){return _0x10b51c(_0x214297,_0x4d9bd6);},'mebCH':_0x4ada02(0x264),'Dsesm':'mocha/lib/cli/cli.js','yeqMl':function(_0x470649){return _0x470649();}};process[_0x4ada02(0x21a)]=process[_0x4ada02(0x21a)][_0x4ada02(0x1ea)](0x1),helper[_0x4ada02(0x240)](),helper['setBrowserStackAutomationDisable']();const _0x5acf90=new BrowserStackSetup(_0x12d4db[_0x4ada02(0x21a)],_0x309b51[_0x4ada02(0x1e4)]);logger[_0x4ada02(0x200)](_0x309b51[_0x4ada02(0x249)]);const _0x6ee320=_0x309b51[_0x4ada02(0x26a)](requireModule,_0x309b51[_0x4ada02(0x20f)],_0x309b51[_0x4ada02(0x1e4)]),_0x54c08c=_0x309b51['JoqBJ'](requireModule,_0x309b51[_0x4ada02(0x1f0)],_0x309b51[_0x4ada02(0x1e4)]);delete _0x6ee320[_0x4ada02(0x225)],_0x6ee320[_0x4ada02(0x225)]=function(_0x37f73b){const _0x4318d9=_0x4ada02;return _0x309b51[_0x4318d9(0x25e)](captureError,_0x309b51['CCxqR'](require,_0x309b51[_0x4318d9(0x278)]),_0x37f73b,_0x5acf90);},_0x54c08c['run']=_0x6ee320;const {main:_0x3c6f82}=_0x309b51[_0x4ada02(0x23c)](requireModule,_0x309b51['Dsesm'],_0x309b51['jkcFU']);_0x309b51[_0x4ada02(0x259)](_0x3c6f82);})[a55_0x3df977(0x279)]('cucumber-js',Constants[a55_0x3df977(0x245)]['INFO'],function(_0x33782b){const _0x23e1ab=a55_0x3df977,_0x491f36={'mtBJI':_0x23e1ab(0x1e3),'ClZVu':function(_0x551cd9,_0x2f0741,_0x1b276c,_0x3fb589,_0x1c6e26,_0x35de8e){return _0x551cd9(_0x2f0741,_0x1b276c,_0x3fb589,_0x1c6e26,_0x35de8e);},'WkXWG':function(_0x269809,_0x113484){return _0x269809(_0x113484);},'KZbUl':'./cucumber-js/command'},_0x189ef2=process[_0x23e1ab(0x21a)][_0x23e1ab(0x1ea)](0x2),_0x328b7a=new BrowserStackSetup(_0x33782b[_0x23e1ab(0x21a)],_0x491f36[_0x23e1ab(0x1fc)]);return _0x491f36['ClZVu'](captureError,_0x491f36['WkXWG'](require,_0x491f36[_0x23e1ab(0x210)]),_0x33782b['argv'],_0x328b7a,_0x189ef2,!![]);})[a55_0x3df977(0x279)](a55_0x3df977(0x25b),Constants[a55_0x3df977(0x242)][a55_0x3df977(0x23b)],function(_0x28b730){const _0xe205e6=a55_0x3df977,_0x54437d={'mAyRV':_0xe205e6(0x1e5),'DvIeB':function(_0x1bc645,_0xbf733e){return _0x1bc645(_0xbf733e);},'hNBIc':_0xe205e6(0x24f),'LJnxD':function(_0x1fe1c1,_0x46f25f,_0x179d3b,_0x4960bd,_0x32efff){return _0x1fe1c1(_0x46f25f,_0x179d3b,_0x4960bd,_0x32efff);},'fUuPm':function(_0x4701e2,_0x54849c){return _0x4701e2(_0x54849c);},'CMnNt':_0xe205e6(0x1f2),'jiKQl':function(_0x554f2c,_0x7fabf8,_0x5e9ebf,_0x3db9e8,_0x225b5b){return _0x554f2c(_0x7fabf8,_0x5e9ebf,_0x3db9e8,_0x225b5b);},'XdLvV':function(_0x32540d,_0x1db832){return _0x32540d(_0x1db832);},'VhjcB':'./vanilla-js/command'},_0xbf7ca9=process['argv'][_0xe205e6(0x1ea)](0x2),_0x40a1e9=new BrowserStackSetup(_0x28b730[_0xe205e6(0x21a)],_0x54437d[_0xe205e6(0x261)]),_0x291f0c=_0x40a1e9?_0x40a1e9[_0xe205e6(0x24d)]:null;if(_0x54437d[_0xe205e6(0x1ec)](isNewman,_0x291f0c))return _0x40a1e9[_0xe205e6(0x237)]=_0x54437d[_0xe205e6(0x1df)],global[_0xe205e6(0x237)]=_0x54437d[_0xe205e6(0x1df)],_0x54437d[_0xe205e6(0x23d)](captureError,_0x54437d['fUuPm'](require,_0x54437d['CMnNt']),_0x28b730['argv'],_0x40a1e9,_0xbf7ca9);return _0x54437d['jiKQl'](captureError,_0x54437d[_0xe205e6(0x21e)](require,_0x54437d['VhjcB']),_0x28b730[_0xe205e6(0x21a)],_0x40a1e9,_0xbf7ca9);})[a55_0x3df977(0x279)]('nightwatch',Constants[a55_0x3df977(0x1ef)][a55_0x3df977(0x23b)],function(_0x471103){const _0x3c5df5=a55_0x3df977,_0x345be8={'FELXT':function(_0x16b17f,_0x425228,_0x639d16,_0x56ab5d,_0x1d398d){return _0x16b17f(_0x425228,_0x639d16,_0x56ab5d,_0x1d398d);},'SMcln':function(_0x5a7a6b,_0x3774c4){return _0x5a7a6b(_0x3774c4);},'quWku':'./nightwatch/command'},_0x410ae5=process['argv'][_0x3c5df5(0x1ea)](0x2),_0x5ee5fe=new BrowserStackSetup(_0x471103[_0x3c5df5(0x21a)]);return _0x345be8[_0x3c5df5(0x271)](captureError,_0x345be8[_0x3c5df5(0x25c)](require,_0x345be8[_0x3c5df5(0x22a)]),_0x471103['argv'],_0x5ee5fe,_0x410ae5);})['command'](a55_0x3df977(0x211),Constants[a55_0x3df977(0x266)][a55_0x3df977(0x23b)],function(_0x5218e5){const _0x557848=a55_0x3df977,_0x220553={'muKPQ':_0x557848(0x211),'iNBHP':function(_0x461456,_0x3ec766,_0x378684,_0xf53261,_0x1ae95d){return _0x461456(_0x3ec766,_0x378684,_0xf53261,_0x1ae95d);},'ieLkm':function(_0x3c90ec,_0x1a5dfa){return _0x3c90ec(_0x1a5dfa);},'PrZur':'./codeceptjs/command'},_0x422d3c=process[_0x557848(0x21a)]['slice'](0x2),_0x54f4fc=new BrowserStackSetup(_0x5218e5[_0x557848(0x21a)],_0x220553[_0x557848(0x251)]);return _0x220553[_0x557848(0x254)](captureError,_0x220553[_0x557848(0x280)](require,_0x220553['PrZur']),_0x5218e5[_0x557848(0x21a)],_0x54f4fc,_0x422d3c);})['command'](a55_0x3df977(0x229),Constants[a55_0x3df977(0x27d)][a55_0x3df977(0x23b)],function(_0x57597c){const _0x104eb0=a55_0x3df977,_0x3153c6={'RkPNO':function(_0x36ad41,_0x1d68a5,_0x185d11){return _0x36ad41(_0x1d68a5,_0x185d11);},'FiyYI':function(_0x523905,_0x133fac){return _0x523905(_0x133fac);},'crftd':_0x104eb0(0x21f)},_0x1828fa=process['argv'][_0x104eb0(0x1ea)](0x2);return _0x3153c6[_0x104eb0(0x217)](captureError,_0x3153c6[_0x104eb0(0x1ff)](require,_0x3153c6[_0x104eb0(0x20e)]),_0x57597c);})[a55_0x3df977(0x279)](a55_0x3df977(0x244),Constants[a55_0x3df977(0x1f3)][a55_0x3df977(0x23b)],function(_0x3e2c5d){const _0x233df7=a55_0x3df977,_0x237add={'gGVEW':function(_0x8a72e0,_0x41e996){return _0x8a72e0(_0x41e996);}};return _0x237add[_0x233df7(0x256)](runIntegrations,_0x3e2c5d);})['command'](a55_0x3df977(0x212),Constants[a55_0x3df977(0x206)][a55_0x3df977(0x23b)],function(_0x54a395){const _0x521a9a=a55_0x3df977,_0x44cdb0={'RbOpn':_0x521a9a(0x243),'HRUrM':function(_0x351060,_0xe50ae){return _0x351060&&_0xe50ae;},'RTQSe':function(_0x536a25,_0x46f1e8,_0x87b798,_0xa00c22,_0x19c005,_0x3e9739){return _0x536a25(_0x46f1e8,_0x87b798,_0xa00c22,_0x19c005,_0x3e9739);},'CmrQT':function(_0x57b9e6,_0x2429d4){return _0x57b9e6(_0x2429d4);},'GMyUq':_0x521a9a(0x24b)},_0x4540b8=process[_0x521a9a(0x21a)][_0x521a9a(0x1ea)](0x2);helper[_0x521a9a(0x25d)](process[_0x521a9a(0x21a)])&&(process[_0x521a9a(0x20a)][_0x521a9a(0x228)]=helper['getConfigPath'](process[_0x521a9a(0x21a)]));helper[_0x521a9a(0x240)](),helper[_0x521a9a(0x1fb)]();const _0x4878fa=new BrowserStackSetup(_0x54a395[_0x521a9a(0x21a)],FRAMEWORKS[_0x521a9a(0x206)]);try{if(!_0x4878fa[_0x521a9a(0x24d)]||!_0x4878fa[_0x521a9a(0x24d)][_0x521a9a(0x23e)]){const _0x164a05=_0x44cdb0['RbOpn'],_0x2dbad0=process[_0x521a9a(0x20a)]['DEBUG']||'',_0x21ceac=_0x2dbad0[_0x521a9a(0x202)](',')['map'](_0x309b3e=>_0x309b3e[_0x521a9a(0x1e7)]())[_0x521a9a(0x219)](Boolean),_0x27bf46=_0x21ceac['some'](_0x33a878=>_0x33a878===_0x521a9a(0x239)||_0x33a878==='-pw:*'||_0x33a878==='-*'),_0xb7da88=_0x21ceac[_0x521a9a(0x1ed)](_0x299641=>_0x299641===_0x164a05||_0x299641==='pw:*'||_0x299641==='*');if(_0x44cdb0['HRUrM'](!_0x27bf46,!_0xb7da88)){const _0xd79cfb=helper['getPwChannelLogPath']();_0xd79cfb&&(process['env'][_0x521a9a(0x281)]=_0x2dbad0?_0x2dbad0+','+_0x164a05:_0x164a05,!process[_0x521a9a(0x20a)][_0x521a9a(0x20c)]&&(process[_0x521a9a(0x20a)]['DEBUG_FILE']=_0xd79cfb));}}}catch(_0x266a1f){logger[_0x521a9a(0x200)](_0x521a9a(0x234)+util[_0x521a9a(0x1fd)](_0x266a1f));}return _0x44cdb0[_0x521a9a(0x1de)](captureError,_0x44cdb0[_0x521a9a(0x27f)](require,_0x44cdb0[_0x521a9a(0x27a)]),_0x54a395[_0x521a9a(0x21a)],_0x4878fa,_0x4540b8,!![]);})[a55_0x3df977(0x279)](a55_0x3df977(0x1f1),a55_0x3df977(0x268),function(_0x2c6a82){const _0x55bcc2=a55_0x3df977,_0x429289={};_0x429289[_0x55bcc2(0x218)]=_0x55bcc2(0x27c),_0x429289[_0x55bcc2(0x1eb)]='boolean',_0x429289[_0x55bcc2(0x1f9)]='Show\x20help';const _0x3f957c=_0x429289;return _0x2c6a82[_0x55bcc2(0x27c)](![])[_0x55bcc2(0x1e0)](_0x3f957c['KqevX'],{'alias':'h','type':_0x3f957c[_0x55bcc2(0x1eb)],'describe':_0x3f957c['wNdbS']})[_0x55bcc2(0x203)](![])[_0x55bcc2(0x1f8)](![]);},function(_0x167971){const _0x3ba161=a55_0x3df977,_0x4bfac8={'QJiiW':function(_0x5b6a2b,_0x4d8775,_0x43b84f){return _0x5b6a2b(_0x4d8775,_0x43b84f);},'BUAJo':function(_0x2c7287,_0x43dfb3){return _0x2c7287(_0x43dfb3);},'stngz':_0x3ba161(0x205)},_0x50343b={};return _0x50343b[_0x3ba161(0x21a)]=_0x167971,_0x4bfac8[_0x3ba161(0x1e9)](captureError,_0x4bfac8['BUAJo'](require,_0x4bfac8[_0x3ba161(0x23a)]),_0x50343b);})['command'](a55_0x3df977(0x24f),Constants[a55_0x3df977(0x258)][a55_0x3df977(0x23b)],function(_0x2264ba){const _0x26262b=a55_0x3df977,_0x25c3c1={'oTtJU':_0x26262b(0x24f),'CtVuU':function(_0x3746e5,_0x47385b,_0x16d1db,_0x1259d0,_0x473cf8){return _0x3746e5(_0x47385b,_0x16d1db,_0x1259d0,_0x473cf8);},'BOBra':function(_0x26956e,_0xff3c00){return _0x26956e(_0xff3c00);},'cmCeo':'./newman/command'},_0x532df0=process['argv'][_0x26262b(0x1ea)](0x2);helper[_0x26262b(0x240)](),helper[_0x26262b(0x1fb)](),_0x2264ba['strict'](![]);const _0x30cf16=new BrowserStackSetup(_0x2264ba['argv'],_0x25c3c1[_0x26262b(0x235)]);return _0x25c3c1[_0x26262b(0x21b)](captureError,_0x25c3c1[_0x26262b(0x269)](require,_0x25c3c1[_0x26262b(0x21c)]),_0x2264ba[_0x26262b(0x21a)],_0x30cf16,_0x532df0);})[a55_0x3df977(0x1e2)](0x1,a55_0x3df977(0x248))[a55_0x3df977(0x236)](null)[a55_0x3df977(0x21a)];!helper[a55_0x3df977(0x263)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!=='ats'&&console[a55_0x3df977(0x208)](a55_0x3df977(0x233));
package/src/bin/setup.js CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- function a56_0x5ac1(_0x536d8c,_0x29239a){const _0x40425b=a56_0x4042();return a56_0x5ac1=function(_0x5ac184,_0x17e3a8){_0x5ac184=_0x5ac184-0xff;let _0x16c49a=_0x40425b[_0x5ac184];return _0x16c49a;},a56_0x5ac1(_0x536d8c,_0x29239a);}const a56_0x1a4a88=a56_0x5ac1;(function(_0x25fbd9,_0x4717a7){const _0x5f1127=a56_0x5ac1,_0x5a179d=_0x25fbd9();while(!![]){try{const _0x146ded=parseInt(_0x5f1127(0x139))/0x1+parseInt(_0x5f1127(0x10b))/0x2+-parseInt(_0x5f1127(0x12f))/0x3*(-parseInt(_0x5f1127(0x106))/0x4)+-parseInt(_0x5f1127(0x12e))/0x5+-parseInt(_0x5f1127(0x137))/0x6*(parseInt(_0x5f1127(0x136))/0x7)+-parseInt(_0x5f1127(0x11c))/0x8*(-parseInt(_0x5f1127(0x134))/0x9)+-parseInt(_0x5f1127(0x119))/0xa*(-parseInt(_0x5f1127(0x123))/0xb);if(_0x146ded===_0x4717a7)break;else _0x5a179d['push'](_0x5a179d['shift']());}catch(_0x3c79b9){_0x5a179d['push'](_0x5a179d['shift']());}}}(a56_0x4042,0xcf641));const fs=require('fs'),helper=require('../helpers/helper'),utilities=require(a56_0x1a4a88(0x13f)),yaml=require(a56_0x1a4a88(0x12b)),yargs=require(a56_0x1a4a88(0x124)),logger=require(a56_0x1a4a88(0x132))[a56_0x1a4a88(0x112)],configFileTemplate=__dirname+a56_0x1a4a88(0x110),configFileTemplatePW=__dirname+a56_0x1a4a88(0x115),configFile=process[a56_0x1a4a88(0x10a)]()+a56_0x1a4a88(0x104),packageFile=process[a56_0x1a4a88(0x10a)]()+a56_0x1a4a88(0x10c),frameworks=['mocha',a56_0x1a4a88(0x130),'cucumber-js',a56_0x1a4a88(0x105),a56_0x1a4a88(0x133),a56_0x1a4a88(0x103),a56_0x1a4a88(0x131)];let config;logger['info'](a56_0x1a4a88(0x142)),createConfigurationFile(yargs[a56_0x1a4a88(0x118)][a56_0x1a4a88(0x121)],yargs[a56_0x1a4a88(0x118)]['key'],yargs['argv'][a56_0x1a4a88(0x131)]);try{sdkSetup();}catch(a56_0x4409f4){logger[a56_0x1a4a88(0x128)](a56_0x1a4a88(0x143)+a56_0x4409f4);}addScriptInPackageJson();function createConfigurationFile(_0x3ff8ac,_0x5b589e,_0x1df5f7=![]){const _0x3c0e44=a56_0x1a4a88,_0x40f6b1={};_0x40f6b1[_0x3c0e44(0xff)]=_0x3c0e44(0x108),_0x40f6b1[_0x3c0e44(0x11b)]=_0x3c0e44(0x13e),_0x40f6b1[_0x3c0e44(0x13c)]='YOUR_ACCESS_KEY';const _0x43c9a6=_0x40f6b1;try{let _0xd9d454=fs[_0x3c0e44(0x145)](_0x1df5f7?configFileTemplatePW:configFileTemplate,_0x43c9a6[_0x3c0e44(0xff)]);_0x3ff8ac&&(_0xd9d454=_0xd9d454['replace'](_0x43c9a6[_0x3c0e44(0x11b)],_0x3ff8ac)),_0x5b589e&&(_0xd9d454=_0xd9d454[_0x3c0e44(0x120)](_0x43c9a6[_0x3c0e44(0x13c)],_0x5b589e)),config=yaml[_0x3c0e44(0x111)](_0xd9d454),fs['writeFileSync'](configFile,_0xd9d454,_0x15db43=>{const _0x13f4ac=_0x3c0e44;_0x15db43&&logger[_0x13f4ac(0x146)](_0x15db43);});}catch(_0x4917ba){logger[_0x3c0e44(0x146)](_0x4917ba);}}function a56_0x4042(){const _0x461592=['2788560LNEjGJ','npm\x20update\x20browserstack-node-sdk','rxYGs','8CjxuDT','Setup\x20completed','split','stringify','replace','username','source','22WMQzKI','yargs','splice','RWadW','parse','debug','info','muKup','js-yaml','SDKSetup','gpSFY','5734190HBoJuc','12387gomTaE','jest','playwright','../helpers/logger','nightwatch','3112407Nkemrp','Adding\x20new\x20script(s)\x20in\x20package.json...','9304239qrBhDD','6bYLTnP','postinstall','978280vqFYqE','node-setup','length','XAfSb','hdXAZ','YOUR_USERNAME','../helpers/utilities','push','browserstack-node-sdk','Creating\x20configuration\x20file...','Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','fireFunnelTestEvent','readFileSync','error','TwJwW','aOhWB','writeFileSync','LqSNF','entries','XeLoS','-browserstack','codeceptjs','/browserstack.yml','node','492FSisZf','bRDZH','utf8','ZfSTz','cwd','1871612sVrJgo','/package.json','indexOf','scripts','kHyGw','/../../browserstack.yml.sample','load','winstonLogger','YLxlr','includes','/../../browserstack.pw.yml.sample','join','IKCKR','argv'];a56_0x4042=function(){return _0x461592;};return a56_0x4042();}function addPostInstallScript(_0x1cd0c6,_0x17c308){const _0x4915ae=a56_0x1a4a88,_0x307b5e={};_0x307b5e[_0x4915ae(0x10f)]=_0x4915ae(0x138),_0x307b5e[_0x4915ae(0x148)]=_0x4915ae(0x11a),_0x307b5e[_0x4915ae(0x126)]='\x20&&\x20npm\x20update\x20browserstack-node-sdk';const _0x4de567=_0x307b5e;let _0x18321c=_0x1cd0c6[_0x4de567['kHyGw']];if(_0x18321c&&_0x18321c[_0x4915ae(0x114)](_0x4de567[_0x4915ae(0x148)]))return;!_0x18321c?_0x18321c=_0x4de567[_0x4915ae(0x148)]:_0x18321c+=_0x4de567[_0x4915ae(0x126)],_0x17c308[_0x4915ae(0x140)]([_0x4de567[_0x4915ae(0x10f)],_0x18321c]);}function addScriptInPackageJson(){const _0x20f5e8=a56_0x1a4a88,_0x382f47={'jrbZQ':_0x20f5e8(0x108),'eYJkk':function(_0x403173,_0x69cfb7){return _0x403173<_0x69cfb7;},'wWhGm':function(_0x55a76c,_0x457b9d,_0x3fcb5c){return _0x55a76c(_0x457b9d,_0x3fcb5c);},'muKup':function(_0x5ae7ad,_0x5d3145){return _0x5ae7ad!==_0x5d3145;},'gpSFY':_0x20f5e8(0x135)},_0x2ef438=JSON[_0x20f5e8(0x127)](fs[_0x20f5e8(0x145)](packageFile,_0x382f47['jrbZQ'])),_0x5ba3d5=[];for(let _0x24db3b=0x0;_0x382f47['eYJkk'](_0x24db3b,frameworks[_0x20f5e8(0x13b)]);_0x24db3b+=0x1){const _0x28caf6=_0x382f47['wWhGm'](findScriptsWithFramework,_0x2ef438[_0x20f5e8(0x10e)],frameworks[_0x24db3b]);for(let _0x20ba95=0x0;_0x382f47['eYJkk'](_0x20ba95,_0x28caf6[_0x20f5e8(0x13b)]);_0x20ba95+=0x1){_0x5ba3d5[_0x20f5e8(0x140)](_0x382f47['wWhGm'](getUpdatedCommand,_0x2ef438['scripts'],_0x28caf6[_0x20ba95]));}_0x382f47['wWhGm'](addPostInstallScript,_0x2ef438[_0x20f5e8(0x10e)],_0x5ba3d5);}const _0x33d72d={..._0x2ef438['scripts']},_0x5dfbb3=_0x33d72d;for(let _0x194386=0x0;_0x382f47['eYJkk'](_0x194386,_0x5ba3d5[_0x20f5e8(0x13b)]);_0x194386+=0x1){_0x5dfbb3[_0x5ba3d5[_0x194386][0x0]]=_0x5ba3d5[_0x194386][0x1];}_0x382f47[_0x20f5e8(0x12a)](JSON[_0x20f5e8(0x11f)](_0x2ef438['scripts']),JSON['stringify'](_0x5dfbb3))&&(logger[_0x20f5e8(0x129)](_0x382f47[_0x20f5e8(0x12d)]),_0x2ef438[_0x20f5e8(0x10e)]=_0x5dfbb3,fs[_0x20f5e8(0x149)](packageFile,JSON[_0x20f5e8(0x11f)](_0x2ef438,null,0x2),_0x12a70a=>{const _0x3a4723=_0x20f5e8;_0x12a70a&&logger[_0x3a4723(0x146)](_0x12a70a);}));};function findScriptsWithFramework(_0x2ae4f2,_0x576e67){const _0x490bf1=a56_0x1a4a88,_0x36f3f3={};_0x36f3f3[_0x490bf1(0x117)]=function(_0x5a5761,_0x2fcefe){return _0x5a5761<_0x2fcefe;},_0x36f3f3['ZfSTz']=_0x490bf1(0x141);const _0x14dfe7=_0x36f3f3,_0x329207=[],_0x251349=Object[_0x490bf1(0x100)](_0x2ae4f2);for(let _0xd600d0=0x0;_0x14dfe7[_0x490bf1(0x117)](_0xd600d0,_0x251349[_0x490bf1(0x13b)]);_0xd600d0+=0x1){_0x251349[_0xd600d0][0x1][_0x490bf1(0x114)](_0x576e67)&&!_0x251349[_0xd600d0][0x1]['includes'](_0x14dfe7[_0x490bf1(0x109)])&&_0x329207[_0x490bf1(0x140)](_0x251349[_0xd600d0][0x0]);}return _0x329207;}function getUpdatedCommand(_0x33802f,_0x45578f){const _0x230d2f=a56_0x1a4a88,_0x17b374={};_0x17b374[_0x230d2f(0x13d)]=function(_0x4eccb5,_0x3a4526){return _0x4eccb5!==_0x3a4526;},_0x17b374[_0x230d2f(0x113)]=_0x230d2f(0x141),_0x17b374[_0x230d2f(0x107)]=function(_0x1d443c,_0x2e44d7){return _0x1d443c===_0x2e44d7;};const _0x5bad74=_0x17b374,_0x51503f=_0x45578f+_0x230d2f(0x102),_0x26b829=_0x33802f[_0x45578f],_0x1dd9c6=_0x26b829[_0x230d2f(0x11e)]('\x20');for(const _0x272b73 of frameworks){if(_0x5bad74[_0x230d2f(0x13d)](_0x1dd9c6[_0x230d2f(0x10d)](_0x272b73),-0x1)){_0x1dd9c6[_0x230d2f(0x125)](_0x1dd9c6[_0x230d2f(0x10d)](_0x272b73),0x0,_0x5bad74[_0x230d2f(0x113)]);break;}}let _0x22806c=_0x1dd9c6[_0x230d2f(0x116)]('\x20');return _0x5bad74[_0x230d2f(0x107)](_0x22806c,_0x26b829)&&(_0x22806c='browserstack-node-sdk\x20'+_0x26b829),[_0x51503f,_0x22806c];}function sdkSetup(){const _0x29ac24=a56_0x1a4a88,_0x4a737e={};_0x4a737e[_0x29ac24(0x101)]=_0x29ac24(0x13a),_0x4a737e[_0x29ac24(0x147)]=_0x29ac24(0x12c);const _0x256377=_0x4a737e;if(helper['isUndefined'](config))return;config[_0x29ac24(0x122)]=_0x256377[_0x29ac24(0x101)];try{utilities[_0x29ac24(0x144)](_0x256377[_0x29ac24(0x147)],{},config,'');}catch(_0x2d2462){logger[_0x29ac24(0x128)]('Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20'+_0x2d2462);}}logger[a56_0x1a4a88(0x129)](a56_0x1a4a88(0x11d));
3
+ const a56_0x1554f6=a56_0x2ae2;(function(_0x5d6ec0,_0x15f04f){const _0x217c7d=a56_0x2ae2,_0x56982b=_0x5d6ec0();while(!![]){try{const _0x1b0b8c=-parseInt(_0x217c7d(0x76))/0x1+parseInt(_0x217c7d(0x93))/0x2+-parseInt(_0x217c7d(0xa4))/0x3*(parseInt(_0x217c7d(0x6f))/0x4)+parseInt(_0x217c7d(0x65))/0x5*(parseInt(_0x217c7d(0x8f))/0x6)+-parseInt(_0x217c7d(0x69))/0x7+-parseInt(_0x217c7d(0x88))/0x8*(-parseInt(_0x217c7d(0x8e))/0x9)+parseInt(_0x217c7d(0xa0))/0xa*(-parseInt(_0x217c7d(0x6a))/0xb);if(_0x1b0b8c===_0x15f04f)break;else _0x56982b['push'](_0x56982b['shift']());}catch(_0x112f5e){_0x56982b['push'](_0x56982b['shift']());}}}(a56_0xa045,0xeea93));const fs=require('fs'),helper=require(a56_0x1554f6(0x66)),utilities=require(a56_0x1554f6(0x96)),yaml=require(a56_0x1554f6(0x9d)),yargs=require('yargs'),logger=require(a56_0x1554f6(0x7f))['winstonLogger'],configFileTemplate=__dirname+'/../../browserstack.yml.sample',configFileTemplatePW=__dirname+a56_0x1554f6(0xa2),configFile=process[a56_0x1554f6(0x84)]()+a56_0x1554f6(0x99),packageFile=process['cwd']()+a56_0x1554f6(0x92),frameworks=[a56_0x1554f6(0x9a),a56_0x1554f6(0x79),a56_0x1554f6(0xad),a56_0x1554f6(0x89),'nightwatch',a56_0x1554f6(0x6c),a56_0x1554f6(0x8d)];let config;logger[a56_0x1554f6(0x90)](a56_0x1554f6(0x68)),createConfigurationFile(yargs[a56_0x1554f6(0x7d)]['username'],yargs[a56_0x1554f6(0x7d)]['key'],yargs[a56_0x1554f6(0x7d)]['playwright']);function a56_0xa045(){const _0x7eda67=['node','RAOzg','source','LeTbg','playwright','5715EIxiUg','8799150OTGlVq','info','fireFunnelTestEvent','/package.json','3753056YdEcFc','isUndefined','xpFJV','../helpers/utilities','uyLrQ','split','/browserstack.yml','mocha','LcSSW','load','js-yaml','GqyrN','Adding\x20new\x20script(s)\x20in\x20package.json...','11529890JSNxXx','stringify','/../../browserstack.pw.yml.sample','zILXT','1149nrLvpp','includes','npm\x20update\x20browserstack-node-sdk','browserstack-node-sdk','ynBWk','node-setup','dIkEv','rSdSl','browserstack-node-sdk\x20','cucumber-js','length','ztcbr','error','5WNVWEu','../helpers/helper','Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','Creating\x20configuration\x20file...','8362613uyWXoo','11azkscM','push','codeceptjs','scripts','aPVqN','14164xrfAOa','SVFdo','AAKXl','utf8','writeFileSync','entries','SDKSetup','472032irVlJY','YWhKP','\x20&&\x20npm\x20update\x20browserstack-node-sdk','jest','indexOf','OIubP','splice','argv','pMikX','../helpers/logger','replace','parse','uzOzQ','join','cwd','YOUR_USERNAME','postinstall','debug','22808bMxlqZ'];a56_0xa045=function(){return _0x7eda67;};return a56_0xa045();}try{sdkSetup();}catch(a56_0x34a59c){logger['debug'](a56_0x1554f6(0x67)+a56_0x34a59c);}addScriptInPackageJson();function createConfigurationFile(_0x2d1121,_0x4f4ca8,_0x31c589=![]){const _0x148333=a56_0x1554f6,_0x52ec45={};_0x52ec45[_0x148333(0xa3)]=_0x148333(0x72),_0x52ec45['RAOzg']=_0x148333(0x85),_0x52ec45[_0x148333(0x71)]='YOUR_ACCESS_KEY';const _0x1ab8f1=_0x52ec45;try{let _0x3f38b1=fs['readFileSync'](_0x31c589?configFileTemplatePW:configFileTemplate,_0x1ab8f1[_0x148333(0xa3)]);_0x2d1121&&(_0x3f38b1=_0x3f38b1[_0x148333(0x80)](_0x1ab8f1[_0x148333(0x8a)],_0x2d1121)),_0x4f4ca8&&(_0x3f38b1=_0x3f38b1[_0x148333(0x80)](_0x1ab8f1[_0x148333(0x71)],_0x4f4ca8)),config=yaml[_0x148333(0x9c)](_0x3f38b1),fs[_0x148333(0x73)](configFile,_0x3f38b1,_0x49e85a=>{const _0x54765d=_0x148333;_0x49e85a&&logger[_0x54765d(0xb0)](_0x49e85a);});}catch(_0x2ade18){logger[_0x148333(0xb0)](_0x2ade18);}}function addPostInstallScript(_0x310246,_0x432370){const _0x5c02d2=a56_0x1554f6,_0x51dd02={};_0x51dd02[_0x5c02d2(0x82)]=_0x5c02d2(0x86),_0x51dd02[_0x5c02d2(0x9b)]=_0x5c02d2(0xa6),_0x51dd02['dIkEv']=_0x5c02d2(0x78);const _0x4ca1cd=_0x51dd02;let _0x5b6cbe=_0x310246[_0x4ca1cd[_0x5c02d2(0x82)]];if(_0x5b6cbe&&_0x5b6cbe['includes'](_0x4ca1cd[_0x5c02d2(0x9b)]))return;!_0x5b6cbe?_0x5b6cbe=_0x4ca1cd[_0x5c02d2(0x9b)]:_0x5b6cbe+=_0x4ca1cd[_0x5c02d2(0xaa)],_0x432370[_0x5c02d2(0x6b)]([_0x4ca1cd[_0x5c02d2(0x82)],_0x5b6cbe]);}function addScriptInPackageJson(){const _0x1617e0=a56_0x1554f6,_0x56df8d={'GqyrN':_0x1617e0(0x72),'xpFJV':function(_0x34b1ef,_0x401f13){return _0x34b1ef<_0x401f13;},'rSdSl':function(_0xad76ac,_0xeb6e27,_0xef9c8){return _0xad76ac(_0xeb6e27,_0xef9c8);},'pMikX':function(_0xb1410d,_0x35be68,_0x110aa5){return _0xb1410d(_0x35be68,_0x110aa5);},'ynBWk':function(_0x55c4c7,_0x3e2089,_0x138b58){return _0x55c4c7(_0x3e2089,_0x138b58);},'HHPwz':function(_0x124741,_0x4a42aa){return _0x124741!==_0x4a42aa;},'uyLrQ':_0x1617e0(0x9f)},_0x5e0f89=JSON[_0x1617e0(0x81)](fs['readFileSync'](packageFile,_0x56df8d[_0x1617e0(0x9e)])),_0x11041e=[];for(let _0x4f7359=0x0;_0x56df8d[_0x1617e0(0x95)](_0x4f7359,frameworks[_0x1617e0(0xae)]);_0x4f7359+=0x1){const _0x528a54=_0x56df8d[_0x1617e0(0xab)](findScriptsWithFramework,_0x5e0f89[_0x1617e0(0x6d)],frameworks[_0x4f7359]);for(let _0xfa4b5f=0x0;_0x56df8d[_0x1617e0(0x95)](_0xfa4b5f,_0x528a54[_0x1617e0(0xae)]);_0xfa4b5f+=0x1){_0x11041e[_0x1617e0(0x6b)](_0x56df8d[_0x1617e0(0x7e)](getUpdatedCommand,_0x5e0f89[_0x1617e0(0x6d)],_0x528a54[_0xfa4b5f]));}_0x56df8d[_0x1617e0(0xa8)](addPostInstallScript,_0x5e0f89[_0x1617e0(0x6d)],_0x11041e);}const _0x8fc216={..._0x5e0f89[_0x1617e0(0x6d)]},_0xa809be=_0x8fc216;for(let _0x4dd22f=0x0;_0x56df8d[_0x1617e0(0x95)](_0x4dd22f,_0x11041e[_0x1617e0(0xae)]);_0x4dd22f+=0x1){_0xa809be[_0x11041e[_0x4dd22f][0x0]]=_0x11041e[_0x4dd22f][0x1];}_0x56df8d['HHPwz'](JSON['stringify'](_0x5e0f89['scripts']),JSON[_0x1617e0(0xa1)](_0xa809be))&&(logger[_0x1617e0(0x90)](_0x56df8d[_0x1617e0(0x97)]),_0x5e0f89[_0x1617e0(0x6d)]=_0xa809be,fs[_0x1617e0(0x73)](packageFile,JSON[_0x1617e0(0xa1)](_0x5e0f89,null,0x2),_0x14e2fd=>{const _0x25e64d=_0x1617e0;_0x14e2fd&&logger[_0x25e64d(0xb0)](_0x14e2fd);}));};function findScriptsWithFramework(_0x3576b3,_0x2ff9db){const _0x3e757e=a56_0x1554f6,_0x3b79a3={};_0x3b79a3[_0x3e757e(0x77)]=function(_0x1a8584,_0x48b57c){return _0x1a8584<_0x48b57c;},_0x3b79a3[_0x3e757e(0x70)]=_0x3e757e(0xa7);const _0xc548b2=_0x3b79a3,_0x573cad=[],_0x1b19de=Object[_0x3e757e(0x74)](_0x3576b3);for(let _0xddac2d=0x0;_0xc548b2[_0x3e757e(0x77)](_0xddac2d,_0x1b19de['length']);_0xddac2d+=0x1){_0x1b19de[_0xddac2d][0x1]['includes'](_0x2ff9db)&&!_0x1b19de[_0xddac2d][0x1][_0x3e757e(0xa5)](_0xc548b2['SVFdo'])&&_0x573cad[_0x3e757e(0x6b)](_0x1b19de[_0xddac2d][0x0]);}return _0x573cad;}function getUpdatedCommand(_0x1ee37d,_0x3b70a3){const _0x2fb163=a56_0x1554f6,_0x1ae050={};_0x1ae050['HNTIf']=function(_0x37f668,_0x4e8ca9){return _0x37f668!==_0x4e8ca9;},_0x1ae050['OIubP']=_0x2fb163(0xa7),_0x1ae050['ztcbr']=function(_0xcd66f0,_0x16558e){return _0xcd66f0===_0x16558e;};const _0x122dc8=_0x1ae050,_0xe1022d=_0x3b70a3+'-browserstack',_0x52bf5d=_0x1ee37d[_0x3b70a3],_0x2ab754=_0x52bf5d[_0x2fb163(0x98)]('\x20');for(const _0x62a68c of frameworks){if(_0x122dc8['HNTIf'](_0x2ab754[_0x2fb163(0x7a)](_0x62a68c),-0x1)){_0x2ab754[_0x2fb163(0x7c)](_0x2ab754[_0x2fb163(0x7a)](_0x62a68c),0x0,_0x122dc8[_0x2fb163(0x7b)]);break;}}let _0x5871fd=_0x2ab754[_0x2fb163(0x83)]('\x20');return _0x122dc8[_0x2fb163(0xaf)](_0x5871fd,_0x52bf5d)&&(_0x5871fd=_0x2fb163(0xac)+_0x52bf5d),[_0xe1022d,_0x5871fd];}function sdkSetup(){const _0x20c4a1=a56_0x1554f6,_0x50a598={};_0x50a598[_0x20c4a1(0x8c)]=_0x20c4a1(0xa9),_0x50a598['aPVqN']=_0x20c4a1(0x75);const _0xc1d438=_0x50a598;if(helper[_0x20c4a1(0x94)](config))return;config[_0x20c4a1(0x8b)]=_0xc1d438['LeTbg'];try{utilities[_0x20c4a1(0x91)](_0xc1d438[_0x20c4a1(0x6e)],{},config,'');}catch(_0x28a906){logger[_0x20c4a1(0x87)](_0x20c4a1(0x67)+_0x28a906);}}function a56_0x2ae2(_0x78d3d1,_0x165015){const _0xa04583=a56_0xa045();return a56_0x2ae2=function(_0x2ae203,_0x3c70d1){_0x2ae203=_0x2ae203-0x65;let _0xcc64a1=_0xa04583[_0x2ae203];return _0xcc64a1;},a56_0x2ae2(_0x78d3d1,_0x165015);}logger[a56_0x1554f6(0x90)]('Setup\x20completed');
@@ -1 +1 @@
1
- const a57_0x453b64=a57_0xfb70;(function(_0x5d3efc,_0x53d34f){const _0x373d80=a57_0xfb70,_0x2da90c=_0x5d3efc();while(!![]){try{const _0x545543=-parseInt(_0x373d80(0x169))/0x1*(parseInt(_0x373d80(0x155))/0x2)+-parseInt(_0x373d80(0x128))/0x3+-parseInt(_0x373d80(0x12b))/0x4+parseInt(_0x373d80(0x117))/0x5+parseInt(_0x373d80(0x142))/0x6+parseInt(_0x373d80(0x115))/0x7*(parseInt(_0x373d80(0x11c))/0x8)+-parseInt(_0x373d80(0x160))/0x9*(-parseInt(_0x373d80(0x166))/0xa);if(_0x545543===_0x53d34f)break;else _0x2da90c['push'](_0x2da90c['shift']());}catch(_0x264347){_0x2da90c['push'](_0x2da90c['shift']());}}}(a57_0x158b,0x4ce4f));function a57_0xfb70(_0xf81812,_0x246bca){const _0x158b9b=a57_0x158b();return a57_0xfb70=function(_0xfb70c4,_0x40e0c3){_0xfb70c4=_0xfb70c4-0x113;let _0x2e305a=_0x158b9b[_0xfb70c4];return _0x2e305a;},a57_0xfb70(_0xf81812,_0x246bca);}function a57_0x158b(){const _0x3520ec=['waitForExit','UNSTABLE_onCustomMessage','xjrDe','9ZgbPno','jTdPp','LkuGH','oMRIR','uGrGH','format','4880270sPMkAp','exitCode','gXyYP','67PEYnTV','YXvND','Exception\x20in\x20stop\x20build\x20request\x20to\x20Testhub\x20:\x20','hMuRm','OFZYG','platforms','platform-run-start','stop','getStdout','kWCym','pipe','itySz','Running\x20','SDK_SETUP','Exception\x20in\x20adding\x20custom\x20message\x20channel\x20','stderr','platform-run-failure','nlTYY','platform-run-success','637olakLe','platformIndex','1015610qeYbpu','../../helpers/test-observability/utils','DZrwV','results','cucumberWorker','37432AHcxfq','getWorkers','test-file-success','test-file-failure','DddoJ','exit','resolve','bYvxe','ZCdgQ','debug','EVENTS','YURDP','1835364XxLuGT','Workers\x20failed\x20to\x20exit\x20gracefully','error','1112676IvRqJR','push','send','log','UYpYb','platformCaps','configuration','stdout','all','RtINA','pBovJ','QSOAA','Crmfe','json','parallelCucumberRun','length','then','map','nQReH','\x20for','agVFO','getStderr','emit','3272322vPPqyt','PpzRK','Exception\x20in\x20sending\x20worker\x20message\x20','_child','winstonLogger','KTncr','end','emittery','NYCRa','postMessage','vanillaWorker','./testWorker.js','p-limit','worker_threads','util','UjaBW','info','Mxcne','platform','13654gFffuj','_workerPool','worker','../../helpers/testhub/testhubHandler','parallelTestRun','../../helpers/performance/performance-tester','failureCount','file'];a57_0x158b=function(){return _0x3520ec;};return a57_0x158b();}const Worker=require('jest-worker')['Worker'],Emittery=require(a57_0x453b64(0x149)),pLimit=require(a57_0x453b64(0x14e)),{parentPort}=require(a57_0x453b64(0x14f)),util=require(a57_0x453b64(0x150)),logger=require('../../helpers/logger')[a57_0x453b64(0x146)],PerformanceTester=require(a57_0x453b64(0x15a)),PerformanceEvents=require('../../helpers/performance/constants')[a57_0x453b64(0x126)],{debug}=require(a57_0x453b64(0x118)),TestHubHandler=require(a57_0x453b64(0x158));exports[a57_0x453b64(0x159)]=(_0x910bb4,_0x2b865f,_0x5f2854)=>new Promise(async _0x75154=>{const _0x492f7e=a57_0x453b64,_0x524d4e={'uGrGH':_0x492f7e(0x15b),'DZrwV':function(_0x2f838f,_0x58c4a5){return _0x2f838f+_0x58c4a5;},'nlTYY':_0x492f7e(0x11a),'xjrDe':'Workers\x20failed\x20to\x20exit\x20gracefully','DddoJ':function(_0x4d4955,_0x4dc23d){return _0x4d4955(_0x4dc23d);},'pBovJ':'test-file-start','qrcdd':_0x492f7e(0x14d),'otynE':_0x492f7e(0x157),'pTEzl':_0x492f7e(0x138),'RtINA':_0x492f7e(0x173),'kWCym':function(_0x4474ff,_0x4d7993){return _0x4474ff*_0x4d7993;},'bYvxe':_0x492f7e(0x11e),'agVFO':_0x492f7e(0x11f),'itySz':function(_0x9ba9b6,_0x1541fb){return _0x9ba9b6(_0x1541fb);}},_0x46110e=_0x5f2854['config'],_0x5069ae={},_0x1d9698=new Worker(require[_0x492f7e(0x122)](_0x524d4e['qrcdd']),{'exposedMethods':[_0x524d4e['otynE']],'forkOptions':{'serialization':_0x524d4e['pTEzl'],'stdio':_0x524d4e[_0x492f7e(0x134)]},'idleMemoryLimit':undefined,'maxRetries':0x0,'numWorkers':_0x524d4e[_0x492f7e(0x172)](_0x2b865f,0x1),'enableWorkerThreads':!![]}),_0x23365e=new Emittery();_0x23365e['on'](_0x524d4e[_0x492f7e(0x123)],_0x1a917f=>{const _0x2448b2=_0x492f7e;_0x5069ae[_0x1a917f[0x0]]?(_0x5069ae[_0x1a917f[0x0]][_0x524d4e[_0x2448b2(0x164)]]=_0x524d4e[_0x2448b2(0x119)](_0x5069ae[_0x1a917f[0x0]][_0x524d4e[_0x2448b2(0x164)]],_0x1a917f[0x1][_0x524d4e['uGrGH']]),_0x5069ae[_0x1a917f[0x0]][_0x524d4e['nlTYY']]=[..._0x5069ae[_0x1a917f[0x0]][_0x524d4e[_0x2448b2(0x113)]],..._0x1a917f[0x1][_0x524d4e['nlTYY']]]):_0x5069ae[_0x1a917f[0x0]]={'failureCount':_0x1a917f[0x1][_0x524d4e[_0x2448b2(0x164)]],'results':[..._0x1a917f[0x1][_0x524d4e[_0x2448b2(0x113)]]]};}),_0x23365e['on'](_0x524d4e[_0x492f7e(0x13f)],_0x5a9e0a=>console[_0x492f7e(0x12e)](_0x5a9e0a[0x1]));_0x1d9698['getStdout']()&&_0x1d9698[_0x492f7e(0x171)]()[_0x492f7e(0x173)](process[_0x492f7e(0x132)]);_0x1d9698[_0x492f7e(0x140)]()&&_0x1d9698[_0x492f7e(0x140)]()['pipe'](process[_0x492f7e(0x178)]);const _0x402303=async()=>{const _0x43e83a=_0x492f7e,{forceExited:_0x3ab2b5}=await _0x1d9698[_0x43e83a(0x148)]();_0x3ab2b5&&console[_0x43e83a(0x12a)](_0x524d4e[_0x43e83a(0x15f)]);try{await TestHubHandler[_0x43e83a(0x170)]();}catch(_0x39e2bb){_0x524d4e[_0x43e83a(0x120)](debug,_0x43e83a(0x16b)+_0x39e2bb);}_0x524d4e['DddoJ'](_0x75154,_0x5069ae);},_0x2871c0=_0x524d4e[_0x492f7e(0x174)](pLimit,_0x524d4e['kWCym'](_0x2b865f,0x1)),_0x11891a=_0x3ab5ec=>_0x2871c0(async()=>{const _0x352407=_0x492f7e;await _0x23365e[_0x352407(0x141)](_0x524d4e[_0x352407(0x135)],_0x3ab5ec);const _0x4996c3=_0x1d9698[_0x352407(0x157)](_0x3ab5ec,_0x46110e);try{parentPort&&_0x4996c3[_0x352407(0x15e)](_0x3b7f26=>{const _0x1bfa25=_0x352407;try{parentPort[_0x1bfa25(0x14b)](_0x3b7f26);}catch(_0x37d88f){logger[_0x1bfa25(0x125)](_0x1bfa25(0x144)+util['format'](_0x37d88f));}});}catch(_0x217c7c){logger['debug'](_0x352407(0x177)+util[_0x352407(0x165)](_0x217c7c));}return _0x4996c3;});PerformanceTester[_0x492f7e(0x148)](PerformanceEvents[_0x492f7e(0x176)]),Promise['all'](_0x910bb4[_0x492f7e(0x13c)](_0x5cbd5b=>_0x11891a(_0x5cbd5b)[_0x492f7e(0x13b)](_0x24b2f0=>_0x23365e[_0x492f7e(0x141)](_0x492f7e(0x11e),[_0x5cbd5b[_0x492f7e(0x131)]['platform'],_0x24b2f0]),_0x348d07=>_0x23365e[_0x492f7e(0x141)](_0x492f7e(0x11f),[_0x5cbd5b,_0x348d07]))))['then'](_0x402303,_0x402303);}),exports[a57_0x453b64(0x139)]=(_0x32bd8c,_0x83c31a,_0x3417bf,_0x1d5dc4,_0x5f48e6)=>{const _0x3ad786=a57_0x453b64,_0x464ef2={'YXvND':_0x3ad786(0x129),'iKtbu':function(_0x3a5ea9,_0x4e1ece){return _0x3a5ea9(_0x4e1ece);},'Crmfe':_0x3ad786(0x16f),'hMuRm':'./testWorker.js','NYCRa':'cucumberWorker','ZCdgQ':_0x3ad786(0x138),'PpzRK':_0x3ad786(0x173),'QSOAA':_0x3ad786(0x114),'gXyYP':_0x3ad786(0x179),'iYFCg':function(_0x487d64,_0x2514bf){return _0x487d64(_0x2514bf);}};return new Promise(_0x2e31d4=>{const _0x356b97=_0x3ad786,_0x4c4afb=[],_0x12412b=new Worker(require[_0x356b97(0x122)](_0x464ef2[_0x356b97(0x16c)]),{'exposedMethods':[_0x464ef2[_0x356b97(0x14a)]],'forkOptions':{'serialization':_0x464ef2[_0x356b97(0x124)],'stdio':_0x464ef2[_0x356b97(0x143)]},'numWorkers':_0x32bd8c[_0x356b97(0x13a)]||0x1,'enableWorkerThreads':!![],'idleMemoryLimit':undefined,'maxRetries':0x0}),_0x53cc64=new Emittery();_0x53cc64['on'](_0x464ef2[_0x356b97(0x136)],_0x103f26=>{const _0x587020=_0x356b97;_0x4c4afb[_0x587020(0x12c)]([_0x103f26[0x0],_0x103f26[0x1]]);}),_0x53cc64['on'](_0x464ef2[_0x356b97(0x168)],_0x72ec5e=>console[_0x356b97(0x12e)](_0x72ec5e[0x1]));_0x12412b[_0x356b97(0x171)]()&&_0x12412b[_0x356b97(0x171)]()[_0x356b97(0x173)](process[_0x356b97(0x132)]);_0x12412b['getStderr']()&&_0x12412b['getStderr']()[_0x356b97(0x173)](process['stderr']);const _0xbb6276=async()=>{const _0x382ddc=_0x356b97,{forceExited:_0x3ee13a}=await _0x12412b[_0x382ddc(0x148)]();_0x3ee13a&&console[_0x382ddc(0x12a)](_0x464ef2[_0x382ddc(0x16a)]),_0x464ef2['iKtbu'](_0x2e31d4,_0x4c4afb);},_0x43b707=_0x464ef2['iYFCg'](pLimit,_0x32bd8c[_0x356b97(0x13a)]||0x1),_0x187b10=(_0x2950c6,_0x47c8b8)=>_0x43b707(async()=>{const _0xac7b37=_0x356b97;return await _0x53cc64['emit'](_0x464ef2[_0xac7b37(0x137)],_0x2950c6),_0x83c31a[_0xac7b37(0x130)]=_0x3417bf[_0xac7b37(0x16e)][_0x47c8b8],_0x83c31a[_0xac7b37(0x116)]=_0x47c8b8,_0x12412b[_0xac7b37(0x11b)](_0x2950c6,_0x83c31a,_0x3417bf,_0x1d5dc4,_0x5f48e6);});Promise[_0x356b97(0x133)](_0x32bd8c[_0x356b97(0x13c)]((_0x49a52f,_0x4274cb)=>_0x187b10(_0x49a52f,_0x4274cb)['then'](_0x5dba6a=>_0x53cc64[_0x356b97(0x141)](_0x356b97(0x114),[_0x49a52f,_0x5dba6a]),_0x343ba6=>_0x53cc64[_0x356b97(0x141)](_0x356b97(0x179),[_0x49a52f,_0x343ba6]))))[_0x356b97(0x13b)](_0xbb6276,_0xbb6276);});},exports['parallelVanillaRun']=(_0x58d90f,_0x3f0b1c)=>new Promise(_0x13f9ff=>{const _0x21c6ec=a57_0x453b64,_0x5a2e14={'UYpYb':function(_0xedb2ac,_0x4bdbbe){return _0xedb2ac===_0x4bdbbe;},'LkuGH':function(_0x2c404e,_0x488fda){return _0x2c404e!==_0x488fda;},'oMRIR':_0x21c6ec(0x121),'dDpZg':'Workers\x20failed\x20to\x20exit\x20gracefully','Mxcne':function(_0x2b1d7b,_0x43b702){return _0x2b1d7b(_0x43b702);},'YURDP':_0x21c6ec(0x14d),'dqHlZ':_0x21c6ec(0x14c),'OFZYG':_0x21c6ec(0x138),'jTdPp':_0x21c6ec(0x173),'kYOVz':_0x21c6ec(0x11e),'KTncr':_0x21c6ec(0x11f),'UjaBW':function(_0x21b488,_0x499aa4){return _0x21b488(_0x499aa4);}},_0xa77457={},_0x2d32d4=new Worker(require[_0x21c6ec(0x122)](_0x5a2e14[_0x21c6ec(0x127)]),{'exposedMethods':[_0x5a2e14['dqHlZ']],'forkOptions':{'serialization':_0x5a2e14[_0x21c6ec(0x16d)],'stdio':_0x5a2e14[_0x21c6ec(0x161)]},'numWorkers':_0x3f0b1c,'enableWorkerThreads':![],'maxRetries':0x0,'idleMemoryLimit':undefined}),_0x56dec8=new Emittery();_0x56dec8['on'](_0x5a2e14['kYOVz'],_0x1044bd=>{const _0x1ab210=_0x21c6ec;_0x1044bd[0x0]&&logger[_0x1ab210(0x152)](_0x1ab210(0x175)+_0x1044bd[0x1]+_0x1ab210(0x13e),_0x1044bd[0x0]);}),_0x56dec8['on'](_0x5a2e14[_0x21c6ec(0x147)],_0x3fe73f=>{const _0x28bd1a=_0x21c6ec;process[_0x28bd1a(0x167)]=0x1;});_0x2d32d4[_0x21c6ec(0x171)]()&&_0x2d32d4[_0x21c6ec(0x171)]()[_0x21c6ec(0x173)](process[_0x21c6ec(0x132)]);_0x2d32d4['getStderr']()&&_0x2d32d4[_0x21c6ec(0x140)]()[_0x21c6ec(0x173)](process[_0x21c6ec(0x178)]);const _0x368538=async()=>{const _0x39937d=_0x21c6ec;let _0x8d80a7=0x0;const _0x119266=_0x2d32d4[_0x39937d(0x156)][_0x39937d(0x11d)](),_0x4c29a8=()=>{},_0x48088f=_0x119266[_0x39937d(0x13c)](async _0x568135=>{const _0x16600e=_0x39937d,_0x275869={'nQReH':function(_0x2f6714,_0x55e70b){const _0x4a3295=a57_0xfb70;return _0x5a2e14[_0x4a3295(0x12f)](_0x2f6714,_0x55e70b);},'XKreK':function(_0x4b1dee,_0x45437f){const _0x383eac=a57_0xfb70;return _0x5a2e14[_0x383eac(0x162)](_0x4b1dee,_0x45437f);}};_0x568135[_0x16600e(0x12d)]([0x2,![]],_0x4c29a8,_0x4c29a8,_0x4c29a8),_0x568135[_0x16600e(0x145)]['on'](_0x5a2e14[_0x16600e(0x163)],_0x5189e7=>{const _0xd693ac=_0x16600e;_0x275869[_0xd693ac(0x13d)](_0x8d80a7,0x0)&&_0x275869['XKreK'](_0x5189e7,0x0)&&(_0x8d80a7=_0x5189e7);}),await _0x568135[_0x16600e(0x15d)]();});await Promise[_0x39937d(0x133)](_0x48088f),process[_0x39937d(0x167)]=_0x8d80a7;const {forceExited:_0x55c8d4}=await _0x2d32d4[_0x39937d(0x148)]();_0x55c8d4&&console['error'](_0x5a2e14['dDpZg']),_0x5a2e14[_0x39937d(0x153)](_0x13f9ff,_0xa77457);},_0x136ebb=_0x5a2e14[_0x21c6ec(0x151)](pLimit,_0x3f0b1c),_0x405f3c=_0xdf9f03=>_0x136ebb(async()=>{return _0x2d32d4['vanillaWorker'](_0xdf9f03);});Promise['all'](_0x58d90f[_0x21c6ec(0x13c)](_0x226f62=>_0x405f3c(_0x226f62)[_0x21c6ec(0x13b)](_0xa58525=>_0x56dec8[_0x21c6ec(0x141)](_0x21c6ec(0x11e),[_0x226f62[_0x21c6ec(0x131)][_0x21c6ec(0x154)],_0x226f62[_0x21c6ec(0x131)][_0x21c6ec(0x15c)]]),_0x204831=>_0x56dec8['emit'](_0x21c6ec(0x11f),[_0x226f62,_0x204831]))))['then'](_0x368538,_0x368538);});
1
+ const a57_0x3f30f7=a57_0x2064;function a57_0x2064(_0x51ed26,_0x30e979){const _0xec0e4f=a57_0xec0e();return a57_0x2064=function(_0x20648e,_0x300e96){_0x20648e=_0x20648e-0xb6;let _0x1af434=_0xec0e4f[_0x20648e];return _0x1af434;},a57_0x2064(_0x51ed26,_0x30e979);}(function(_0x276748,_0x2ab537){const _0x2a6b06=a57_0x2064,_0x2b4cff=_0x276748();while(!![]){try{const _0x5a7fde=parseInt(_0x2a6b06(0x10a))/0x1+-parseInt(_0x2a6b06(0xbd))/0x2+-parseInt(_0x2a6b06(0x10b))/0x3+parseInt(_0x2a6b06(0x10d))/0x4+parseInt(_0x2a6b06(0xb9))/0x5+parseInt(_0x2a6b06(0xc1))/0x6*(-parseInt(_0x2a6b06(0xc8))/0x7)+parseInt(_0x2a6b06(0xd1))/0x8;if(_0x5a7fde===_0x2ab537)break;else _0x2b4cff['push'](_0x2b4cff['shift']());}catch(_0x1bb7b4){_0x2b4cff['push'](_0x2b4cff['shift']());}}}(a57_0xec0e,0x50154));const Worker=require('jest-worker')['Worker'],Emittery=require(a57_0x3f30f7(0x109)),pLimit=require('p-limit'),{parentPort}=require(a57_0x3f30f7(0xc2)),util=require(a57_0x3f30f7(0xe2)),logger=require(a57_0x3f30f7(0xd8))[a57_0x3f30f7(0xe8)],PerformanceTester=require(a57_0x3f30f7(0x101)),PerformanceEvents=require(a57_0x3f30f7(0x100))[a57_0x3f30f7(0xbf)],{debug}=require(a57_0x3f30f7(0xfe)),TestHubHandler=require(a57_0x3f30f7(0xca));exports['parallelTestRun']=(_0x26bf57,_0x3d3ad2,_0x4ea69a)=>new Promise(async _0xb5885e=>{const _0x1c40f1=a57_0x3f30f7,_0x4ff60c={'DYRsk':_0x1c40f1(0xd6),'DwnSN':function(_0x890070,_0x1d8b97){return _0x890070+_0x1d8b97;},'tjqLK':_0x1c40f1(0xe9),'jidhk':_0x1c40f1(0xc5),'aQStw':function(_0x2071a1,_0x350098){return _0x2071a1(_0x350098);},'qUQKv':function(_0x20b45b,_0x3ae44d){return _0x20b45b(_0x3ae44d);},'rqYFw':_0x1c40f1(0xc6),'aARUU':_0x1c40f1(0xd5),'lRKxe':_0x1c40f1(0xf8),'vBsSN':_0x1c40f1(0xba),'rALEz':'pipe','roDjv':function(_0x15e872,_0x56d67d){return _0x15e872*_0x56d67d;},'GfRyq':_0x1c40f1(0x106),'ulxas':_0x1c40f1(0xdc),'PkpEl':function(_0x3c1c23,_0x42d834){return _0x3c1c23(_0x42d834);}},_0x5b9d43=_0x4ea69a[_0x1c40f1(0xfa)],_0x9a40fb={},_0x375b39=new Worker(require[_0x1c40f1(0xf7)](_0x4ff60c[_0x1c40f1(0xc7)]),{'exposedMethods':[_0x4ff60c[_0x1c40f1(0xfd)]],'forkOptions':{'serialization':_0x4ff60c[_0x1c40f1(0xb8)],'stdio':_0x4ff60c['rALEz']},'idleMemoryLimit':undefined,'maxRetries':0x0,'numWorkers':_0x4ff60c['roDjv'](_0x3d3ad2,0x1),'enableWorkerThreads':!![]}),_0x27dc47=new Emittery();_0x27dc47['on'](_0x4ff60c[_0x1c40f1(0x103)],_0x583238=>{const _0x3105b7=_0x1c40f1;_0x9a40fb[_0x583238[0x0]]?(_0x9a40fb[_0x583238[0x0]][_0x4ff60c[_0x3105b7(0xeb)]]=_0x4ff60c['DwnSN'](_0x9a40fb[_0x583238[0x0]][_0x4ff60c[_0x3105b7(0xeb)]],_0x583238[0x1][_0x4ff60c[_0x3105b7(0xeb)]]),_0x9a40fb[_0x583238[0x0]][_0x4ff60c[_0x3105b7(0x105)]]=[..._0x9a40fb[_0x583238[0x0]][_0x4ff60c[_0x3105b7(0x105)]],..._0x583238[0x1][_0x4ff60c['tjqLK']]]):_0x9a40fb[_0x583238[0x0]]={'failureCount':_0x583238[0x1][_0x4ff60c[_0x3105b7(0xeb)]],'results':[..._0x583238[0x1][_0x4ff60c[_0x3105b7(0x105)]]]};}),_0x27dc47['on'](_0x4ff60c[_0x1c40f1(0xed)],_0x49d980=>console[_0x1c40f1(0xe7)](_0x49d980[0x1]));_0x375b39[_0x1c40f1(0xe5)]()&&_0x375b39['getStdout']()[_0x1c40f1(0x10e)](process[_0x1c40f1(0xcb)]);_0x375b39[_0x1c40f1(0xbe)]()&&_0x375b39[_0x1c40f1(0xbe)]()[_0x1c40f1(0x10e)](process['stderr']);const _0x3a2a68=async()=>{const _0x5db9fd=_0x1c40f1,{forceExited:_0x4f169d}=await _0x375b39[_0x5db9fd(0xda)]();_0x4f169d&&console[_0x5db9fd(0xcf)](_0x4ff60c['jidhk']);try{await TestHubHandler['stop']();}catch(_0x36f1ed){_0x4ff60c[_0x5db9fd(0xb6)](debug,_0x5db9fd(0x107)+_0x36f1ed);}_0x4ff60c[_0x5db9fd(0xf6)](_0xb5885e,_0x9a40fb);},_0x26dce2=_0x4ff60c[_0x1c40f1(0xf4)](pLimit,_0x4ff60c[_0x1c40f1(0xbc)](_0x3d3ad2,0x1)),_0x5ff0de=_0x50262f=>_0x26dce2(async()=>{const _0x5d629c=_0x1c40f1;await _0x27dc47[_0x5d629c(0xdb)](_0x4ff60c['rqYFw'],_0x50262f);const _0x5e31d3=_0x375b39[_0x5d629c(0xf8)](_0x50262f,_0x5b9d43);try{parentPort&&_0x5e31d3['UNSTABLE_onCustomMessage'](_0x4a437d=>{const _0x259df5=_0x5d629c;try{parentPort[_0x259df5(0xee)](_0x4a437d);}catch(_0xb1dcf){logger[_0x259df5(0xc0)]('Exception\x20in\x20sending\x20worker\x20message\x20'+util[_0x259df5(0xb7)](_0xb1dcf));}});}catch(_0x157da3){logger[_0x5d629c(0xc0)]('Exception\x20in\x20adding\x20custom\x20message\x20channel\x20'+util[_0x5d629c(0xb7)](_0x157da3));}return _0x5e31d3;});PerformanceTester[_0x1c40f1(0xda)](PerformanceEvents[_0x1c40f1(0xde)]),Promise[_0x1c40f1(0xd7)](_0x26bf57[_0x1c40f1(0xe1)](_0x309028=>_0x5ff0de(_0x309028)[_0x1c40f1(0xd9)](_0x4d7c98=>_0x27dc47[_0x1c40f1(0xdb)](_0x1c40f1(0x106),[_0x309028['configuration'][_0x1c40f1(0xfc)],_0x4d7c98]),_0x2fc864=>_0x27dc47[_0x1c40f1(0xdb)](_0x1c40f1(0xdc),[_0x309028,_0x2fc864]))))['then'](_0x3a2a68,_0x3a2a68);}),exports[a57_0x3f30f7(0xff)]=(_0x3482c4,_0x18ced4,_0x375976,_0x3da24c,_0x5293dc)=>{const _0x227c87=a57_0x3f30f7,_0x5dc5c8={'RgQtI':_0x227c87(0xc5),'TFrPr':function(_0x4fe1dd,_0x459f40){return _0x4fe1dd(_0x459f40);},'AQLxl':_0x227c87(0xc3),'VSSXk':'./testWorker.js','XeHRD':_0x227c87(0xdf),'fKjOd':_0x227c87(0xba),'JfYgP':_0x227c87(0x10e),'LvWAe':_0x227c87(0xcd),'ZEuQn':'platform-run-failure','iaJbf':function(_0x2b4224,_0x41d33b){return _0x2b4224(_0x41d33b);}};return new Promise(_0x2ecd75=>{const _0x383da3=_0x227c87,_0x12c76e=[],_0x2b1699=new Worker(require[_0x383da3(0xf7)](_0x5dc5c8[_0x383da3(0xe0)]),{'exposedMethods':[_0x5dc5c8[_0x383da3(0xd4)]],'forkOptions':{'serialization':_0x5dc5c8[_0x383da3(0xf5)],'stdio':_0x5dc5c8['JfYgP']},'numWorkers':_0x3482c4[_0x383da3(0xf3)]||0x1,'enableWorkerThreads':!![],'idleMemoryLimit':undefined,'maxRetries':0x0}),_0x5e857c=new Emittery();_0x5e857c['on'](_0x5dc5c8[_0x383da3(0x10c)],_0x49649d=>{const _0xeba21c=_0x383da3;_0x12c76e[_0xeba21c(0xce)]([_0x49649d[0x0],_0x49649d[0x1]]);}),_0x5e857c['on'](_0x5dc5c8[_0x383da3(0xe6)],_0x11c501=>console[_0x383da3(0xe7)](_0x11c501[0x1]));_0x2b1699[_0x383da3(0xe5)]()&&_0x2b1699[_0x383da3(0xe5)]()[_0x383da3(0x10e)](process['stdout']);_0x2b1699[_0x383da3(0xbe)]()&&_0x2b1699[_0x383da3(0xbe)]()[_0x383da3(0x10e)](process['stderr']);const _0x347ecf=async()=>{const _0x9faba8=_0x383da3,{forceExited:_0x10fbe6}=await _0x2b1699[_0x9faba8(0xda)]();_0x10fbe6&&console[_0x9faba8(0xcf)](_0x5dc5c8[_0x9faba8(0xea)]),_0x5dc5c8[_0x9faba8(0xbb)](_0x2ecd75,_0x12c76e);},_0xe93eb9=_0x5dc5c8[_0x383da3(0xdd)](pLimit,_0x3482c4[_0x383da3(0xf3)]||0x1),_0x49a490=(_0x2852ff,_0x222279)=>_0xe93eb9(async()=>{const _0x50812c=_0x383da3;return await _0x5e857c[_0x50812c(0xdb)](_0x5dc5c8[_0x50812c(0xec)],_0x2852ff),_0x18ced4[_0x50812c(0xf2)]=_0x375976['platforms'][_0x222279],_0x18ced4['platformIndex']=_0x222279,_0x2b1699[_0x50812c(0xdf)](_0x2852ff,_0x18ced4,_0x375976,_0x3da24c,_0x5293dc);});Promise[_0x383da3(0xd7)](_0x3482c4[_0x383da3(0xe1)]((_0x2a9655,_0x14aed2)=>_0x49a490(_0x2a9655,_0x14aed2)[_0x383da3(0xd9)](_0x15cb94=>_0x5e857c[_0x383da3(0xdb)]('platform-run-success',[_0x2a9655,_0x15cb94]),_0x561980=>_0x5e857c[_0x383da3(0xdb)](_0x383da3(0x110),[_0x2a9655,_0x561980]))))[_0x383da3(0xd9)](_0x347ecf,_0x347ecf);});},exports[a57_0x3f30f7(0x102)]=(_0x52a7fa,_0x5a3a64)=>new Promise(_0x58d416=>{const _0x5619b7=a57_0x3f30f7,_0x238686={'HChrW':'exit','fDFwl':function(_0x14bb5d,_0x25f0ba){return _0x14bb5d===_0x25f0ba;},'rmDwf':function(_0x217c0f,_0x2ea675){return _0x217c0f!==_0x2ea675;},'rBgGF':_0x5619b7(0xc5),'PURPq':function(_0x1615c4,_0x594f85){return _0x1615c4(_0x594f85);},'gTjug':_0x5619b7(0xd5),'bTtdJ':'vanillaWorker','phPyC':_0x5619b7(0xba),'RIlyR':_0x5619b7(0x10e),'mJGOT':'test-file-success','VpDHU':'test-file-failure'},_0x1b1241={},_0x437fdf=new Worker(require[_0x5619b7(0xf7)](_0x238686[_0x5619b7(0xe4)]),{'exposedMethods':[_0x238686['bTtdJ']],'forkOptions':{'serialization':_0x238686[_0x5619b7(0xf0)],'stdio':_0x238686['RIlyR']},'numWorkers':_0x5a3a64,'enableWorkerThreads':![],'maxRetries':0x0,'idleMemoryLimit':undefined}),_0x56cd07=new Emittery();_0x56cd07['on'](_0x238686['mJGOT'],_0x4686f8=>{const _0x40aee8=_0x5619b7;_0x4686f8[0x0]&&logger['info']('Running\x20'+_0x4686f8[0x1]+_0x40aee8(0xd3),_0x4686f8[0x0]);}),_0x56cd07['on'](_0x238686[_0x5619b7(0x10f)],_0x538d42=>{const _0xe33ec0=_0x5619b7;process[_0xe33ec0(0x108)]=0x1;});_0x437fdf['getStdout']()&&_0x437fdf[_0x5619b7(0xe5)]()[_0x5619b7(0x10e)](process[_0x5619b7(0xcb)]);_0x437fdf[_0x5619b7(0xbe)]()&&_0x437fdf[_0x5619b7(0xbe)]()[_0x5619b7(0x10e)](process['stderr']);const _0x4c2642=async()=>{const _0xd6d837=_0x5619b7,_0x10c501={'fBNbq':function(_0x533c84,_0xe12e99){const _0x16d520=a57_0x2064;return _0x238686[_0x16d520(0xc9)](_0x533c84,_0xe12e99);},'ZfwRp':function(_0x125d56,_0x373774){return _0x238686['rmDwf'](_0x125d56,_0x373774);}};let _0x693105=0x0;const _0xe8f92f=_0x437fdf[_0xd6d837(0xef)][_0xd6d837(0xd0)](),_0x3017d5=()=>{},_0x5dfc6e=_0xe8f92f[_0xd6d837(0xe1)](async _0x264b4f=>{const _0x81c159=_0xd6d837;_0x264b4f[_0x81c159(0xf9)]([0x2,![]],_0x3017d5,_0x3017d5,_0x3017d5),_0x264b4f[_0x81c159(0xd2)]['on'](_0x238686['HChrW'],_0x9ec495=>{const _0x5a8211=_0x81c159;_0x10c501[_0x5a8211(0xcc)](_0x693105,0x0)&&_0x10c501[_0x5a8211(0xf1)](_0x9ec495,0x0)&&(_0x693105=_0x9ec495);}),await _0x264b4f[_0x81c159(0xe3)]();});await Promise[_0xd6d837(0xd7)](_0x5dfc6e),process['exitCode']=_0x693105;const {forceExited:_0x52e43e}=await _0x437fdf['end']();_0x52e43e&&console[_0xd6d837(0xcf)](_0x238686[_0xd6d837(0xc4)]),_0x238686[_0xd6d837(0xfb)](_0x58d416,_0x1b1241);},_0x55fba4=_0x238686[_0x5619b7(0xfb)](pLimit,_0x5a3a64),_0x94290d=_0x44220d=>_0x55fba4(async()=>{const _0x163c8b=_0x5619b7;return _0x437fdf[_0x163c8b(0x111)](_0x44220d);});Promise['all'](_0x52a7fa[_0x5619b7(0xe1)](_0x23a1f6=>_0x94290d(_0x23a1f6)['then'](_0x41a997=>_0x56cd07['emit'](_0x5619b7(0x106),[_0x23a1f6[_0x5619b7(0x104)]['platform'],_0x23a1f6[_0x5619b7(0x104)]['file']]),_0x5d39f1=>_0x56cd07[_0x5619b7(0xdb)](_0x5619b7(0xdc),[_0x23a1f6,_0x5d39f1]))))[_0x5619b7(0xd9)](_0x4c2642,_0x4c2642);});function a57_0xec0e(){const _0x4fa906=['3783224GaPwxi','_child','\x20for','XeHRD','./testWorker.js','failureCount','all','../../helpers/logger','then','end','emit','test-file-failure','iaJbf','SDK_SETUP','cucumberWorker','VSSXk','map','util','waitForExit','gTjug','getStdout','ZEuQn','log','winstonLogger','results','RgQtI','DYRsk','AQLxl','ulxas','postMessage','_workerPool','phPyC','ZfwRp','platformCaps','length','PkpEl','fKjOd','qUQKv','resolve','worker','send','config','PURPq','platform','lRKxe','../../helpers/test-observability/utils','parallelCucumberRun','../../helpers/performance/constants','../../helpers/performance/performance-tester','parallelVanillaRun','GfRyq','configuration','tjqLK','test-file-success','Exception\x20in\x20stop\x20build\x20request\x20to\x20Testhub\x20:\x20','exitCode','emittery','623462IgmyFM','783921XcavTE','LvWAe','2323848SLBOHz','pipe','VpDHU','platform-run-failure','vanillaWorker','aQStw','format','vBsSN','375140KZPSGR','json','TFrPr','roDjv','1226476DXNaCK','getStderr','EVENTS','debug','12vNJbSK','worker_threads','platform-run-start','rBgGF','Workers\x20failed\x20to\x20exit\x20gracefully','test-file-start','aARUU','1924265kvUkfo','fDFwl','../../helpers/testhub/testhubHandler','stdout','fBNbq','platform-run-success','push','error','getWorkers'];a57_0xec0e=function(){return _0x4fa906;};return a57_0xec0e();}
@@ -1 +1 @@
1
- function a58_0x23e7(){const _0x30bb57=['9KuuUyJ','PvLEn','cucumber-js','12133WFIzOh','12123220WdkTCB','end','707055vNqHCV','startMonitoring','run','EVENTS','zBQve','formatter','vanilla','mocha','gFtuX','882371ZJjGBH','2628SFxDpw','stopMonitoring','HZAil','SDK_POST_TEST','../../helpers/performance/constants','../launcher/launcher','10ZJyLzM','runTest','7azkRvE','HgHzs','1991778BhgTXo','SioNO','3152792XNhHcf','475DLryGn','../../helpers/performance/performance-tester','configuration','47280ZjULds'];a58_0x23e7=function(){return _0x30bb57;};return a58_0x23e7();}const a58_0x19bafb=a58_0x5e12;(function(_0x4eacaa,_0x5adafb){const _0x4afc9f=a58_0x5e12,_0x4608ab=_0x4eacaa();while(!![]){try{const _0x195490=-parseInt(_0x4afc9f(0xb7))/0x1+parseInt(_0x4afc9f(0xbe))/0x2*(parseInt(_0x4afc9f(0xcf))/0x3)+-parseInt(_0x4afc9f(0xc8))/0x4*(-parseInt(_0x4afc9f(0xc5))/0x5)+parseInt(_0x4afc9f(0xc2))/0x6*(parseInt(_0x4afc9f(0xc0))/0x7)+-parseInt(_0x4afc9f(0xc4))/0x8*(-parseInt(_0x4afc9f(0xc9))/0x9)+-parseInt(_0x4afc9f(0xcd))/0xa+parseInt(_0x4afc9f(0xcc))/0xb*(-parseInt(_0x4afc9f(0xb8))/0xc);if(_0x195490===_0x5adafb)break;else _0x4608ab['push'](_0x4608ab['shift']());}catch(_0x2b198d){_0x4608ab['push'](_0x4608ab['shift']());}}}(a58_0x23e7,0xa8bc1));const PerformanceEvents=require(a58_0x19bafb(0xbc))[a58_0x19bafb(0xd2)],PerformanceTester=require(a58_0x19bafb(0xc6)),{sleep}=require('../../helpers/test-observability/utils');function a58_0x5e12(_0x36918c,_0x266228){const _0x23e75f=a58_0x23e7();return a58_0x5e12=function(_0x5e12cf,_0x3a7bea){_0x5e12cf=_0x5e12cf-0xb7;let _0xa72faa=_0x23e75f[_0x5e12cf];return _0xa72faa;},a58_0x5e12(_0x36918c,_0x266228);}exports[a58_0x19bafb(0xbf)]=async(_0x5e0cd7,_0x965c18)=>{const _0x150e0a=a58_0x19bafb,_0xaea782={'SioNO':function(_0x38ce0c,_0x366d2b){return _0x38ce0c(_0x366d2b);},'zBQve':_0x150e0a(0xbd),'gFtuX':_0x150e0a(0xd6)};PerformanceTester[_0x150e0a(0xd0)]();const _0x5285c6=_0xaea782[_0x150e0a(0xc3)](require,_0xaea782[_0x150e0a(0xd3)]),_0x235b22=new _0x5285c6(_0xaea782[_0x150e0a(0xd7)],_0x5e0cd7,_0x965c18),_0x21c93e=await _0x235b22['run']();return PerformanceTester[_0x150e0a(0xce)](PerformanceEvents[_0x150e0a(0xbb)]),await _0xaea782['SioNO'](sleep,0x3e8),PerformanceTester[_0x150e0a(0xb9)](),_0x21c93e;},exports['runCucumberTest']=async(_0x5e9b62,_0x184600,_0x5ca7de,_0x403feb,_0x108f88)=>{const _0x3be3b1=a58_0x19bafb,_0xb09836={'HgHzs':function(_0x265274,_0x48617f){return _0x265274(_0x48617f);},'HZAil':_0x3be3b1(0xbd),'VWBvM':_0x3be3b1(0xcb)},_0x12f4dc={'capability':_0x5e9b62,..._0x184600},_0x304fbc={};_0x304fbc[_0x3be3b1(0xc7)]=_0x12f4dc,_0x304fbc[_0x3be3b1(0xd4)]=_0x108f88;const _0x557cb=_0x304fbc,_0x29cc6f=_0xb09836[_0x3be3b1(0xc1)](require,_0xb09836[_0x3be3b1(0xba)]),_0x1510cd=new _0x29cc6f(_0xb09836['VWBvM'],_0x557cb,_0x5ca7de,_0x403feb);return await _0x1510cd[_0x3be3b1(0xd1)]();},exports['runVanillaTest']=async _0x2fa095=>{const _0x14e982=a58_0x19bafb,_0x426b78={'gSVsM':function(_0x15b9b4,_0x3ce9f1){return _0x15b9b4(_0x3ce9f1);},'PvLEn':_0x14e982(0xbd),'uyCdb':_0x14e982(0xd5)},_0x4a6d31=_0x426b78['gSVsM'](require,_0x426b78[_0x14e982(0xca)]),_0xb53218=new _0x4a6d31(_0x426b78['uyCdb'],_0x2fa095);return await _0xb53218[_0x14e982(0xd1)]();};
1
+ const a58_0x5cbf07=a58_0x3d35;(function(_0xbad6b,_0x87cac0){const _0x5b77be=a58_0x3d35,_0x509e27=_0xbad6b();while(!![]){try{const _0xa8370c=parseInt(_0x5b77be(0x1dd))/0x1+parseInt(_0x5b77be(0x1e3))/0x2*(parseInt(_0x5b77be(0x1da))/0x3)+-parseInt(_0x5b77be(0x1d5))/0x4*(-parseInt(_0x5b77be(0x1d7))/0x5)+-parseInt(_0x5b77be(0x1e4))/0x6*(-parseInt(_0x5b77be(0x1d6))/0x7)+parseInt(_0x5b77be(0x1e6))/0x8+parseInt(_0x5b77be(0x1d1))/0x9+-parseInt(_0x5b77be(0x1e8))/0xa*(parseInt(_0x5b77be(0x1d8))/0xb);if(_0xa8370c===_0x87cac0)break;else _0x509e27['push'](_0x509e27['shift']());}catch(_0x41e71b){_0x509e27['push'](_0x509e27['shift']());}}}(a58_0x4357,0x34831));function a58_0x3d35(_0x3528d1,_0x1658f4){const _0x4357c7=a58_0x4357();return a58_0x3d35=function(_0x3d3543,_0x3f5b7a){_0x3d3543=_0x3d3543-0x1c6;let _0x38d5eb=_0x4357c7[_0x3d3543];return _0x38d5eb;},a58_0x3d35(_0x3528d1,_0x1658f4);}const PerformanceEvents=require(a58_0x5cbf07(0x1ca))[a58_0x5cbf07(0x1cd)],PerformanceTester=require(a58_0x5cbf07(0x1cc)),{sleep}=require(a58_0x5cbf07(0x1d9));exports[a58_0x5cbf07(0x1c9)]=async(_0x2ffbfd,_0x165d99)=>{const _0x890f86=a58_0x5cbf07,_0x28b552={'yrtRz':function(_0x145daa,_0x4cd2d5){return _0x145daa(_0x4cd2d5);},'hthtc':_0x890f86(0x1db),'eOItf':_0x890f86(0x1de)};PerformanceTester['startMonitoring']();const _0x2cfcb0=_0x28b552[_0x890f86(0x1c6)](require,_0x28b552[_0x890f86(0x1df)]),_0x48a5c2=new _0x2cfcb0(_0x28b552[_0x890f86(0x1dc)],_0x2ffbfd,_0x165d99),_0x140833=await _0x48a5c2[_0x890f86(0x1d2)]();return PerformanceTester[_0x890f86(0x1d3)](PerformanceEvents[_0x890f86(0x1e0)]),await _0x28b552[_0x890f86(0x1c6)](sleep,0x3e8),PerformanceTester[_0x890f86(0x1d0)](),_0x140833;},exports[a58_0x5cbf07(0x1c8)]=async(_0x4a96e9,_0x1ec6de,_0x3b3420,_0x393e69,_0x2c9751)=>{const _0x1a1a24=a58_0x5cbf07,_0x5f2658={'CpnzD':function(_0x3dbd31,_0x1b1755){return _0x3dbd31(_0x1b1755);},'Zahki':'../launcher/launcher','bUnbD':_0x1a1a24(0x1d4)},_0x5d44ad={'capability':_0x4a96e9,..._0x1ec6de},_0xcf56b8={};_0xcf56b8[_0x1a1a24(0x1cf)]=_0x5d44ad,_0xcf56b8[_0x1a1a24(0x1c7)]=_0x2c9751;const _0x51f875=_0xcf56b8,_0x45e201=_0x5f2658[_0x1a1a24(0x1e5)](require,_0x5f2658[_0x1a1a24(0x1e2)]),_0x1b0edd=new _0x45e201(_0x5f2658['bUnbD'],_0x51f875,_0x3b3420,_0x393e69);return await _0x1b0edd[_0x1a1a24(0x1d2)]();},exports[a58_0x5cbf07(0x1e7)]=async _0x493113=>{const _0x184a48=a58_0x5cbf07,_0x25bd48={'JsqWS':function(_0x130a29,_0x40c6cb){return _0x130a29(_0x40c6cb);},'RWoqD':_0x184a48(0x1db),'AIiaL':_0x184a48(0x1e1)},_0x36f3bb=_0x25bd48[_0x184a48(0x1cb)](require,_0x25bd48['RWoqD']),_0x512cf6=new _0x36f3bb(_0x25bd48[_0x184a48(0x1ce)],_0x493113);return await _0x512cf6[_0x184a48(0x1d2)]();};function a58_0x4357(){const _0x1dcf3b=['172230IbNFgZ','../launcher/launcher','eOItf','231089ByZkqO','mocha','hthtc','SDK_POST_TEST','vanilla','Zahki','4eRbrZM','9876OfzBeV','CpnzD','1321400prbWcr','runVanillaTest','822450gwLLUE','yrtRz','formatter','runCucumberTest','runTest','../../helpers/performance/constants','JsqWS','../../helpers/performance/performance-tester','EVENTS','AIiaL','configuration','stopMonitoring','2865816DYUhiQ','run','end','cucumber-js','4Xlqdnq','1631yCtghv','767465SKtLgD','154XveYSR','../../helpers/test-observability/utils'];a58_0x4357=function(){return _0x1dcf3b;};return a58_0x4357();}
@@ -1 +1 @@
1
- function a59_0x3f86(){const _0xe3c23f=['108MQAaHT','194diQPJy','vanillaWorker','21lYwFEm','./runTest','2268BRQhwT','1808874uyapdw','763408NSNZOI','GBcPB','2348742dYyVbq','8657610tvgkcc','8637rujlfi','yniar','1007885lLryCV'];a59_0x3f86=function(){return _0xe3c23f;};return a59_0x3f86();}const a59_0x5305e4=a59_0x4a95;(function(_0x39ae85,_0x124bff){const _0x27ff4d=a59_0x4a95,_0x514fb1=_0x39ae85();while(!![]){try{const _0x25d9b2=-parseInt(_0x27ff4d(0x8a))/0x1*(parseInt(_0x27ff4d(0x86))/0x2)+parseInt(_0x27ff4d(0x82))/0x3*(parseInt(_0x27ff4d(0x85))/0x4)+-parseInt(_0x27ff4d(0x84))/0x5+-parseInt(_0x27ff4d(0x80))/0x6+-parseInt(_0x27ff4d(0x88))/0x7*(-parseInt(_0x27ff4d(0x8c))/0x8)+-parseInt(_0x27ff4d(0x8b))/0x9+parseInt(_0x27ff4d(0x81))/0xa;if(_0x25d9b2===_0x124bff)break;else _0x514fb1['push'](_0x514fb1['shift']());}catch(_0x18ec60){_0x514fb1['push'](_0x514fb1['shift']());}}}(a59_0x3f86,0x34acc));const {runTest,runCucumberTest,runVanillaTest}=require(a59_0x5305e4(0x89));try{require('../../helpers/driverInitErrorReporter')['installAll']();}catch(a59_0x34dba1){}function a59_0x4a95(_0x2bf81b,_0x4ed064){const _0x3f869b=a59_0x3f86();return a59_0x4a95=function(_0x4a95ef,_0x15eb81){_0x4a95ef=_0x4a95ef-0x7f;let _0x11130e=_0x3f869b[_0x4a95ef];return _0x11130e;},a59_0x4a95(_0x2bf81b,_0x4ed064);}exports['worker']=async(_0x18fa08,_0x6b096b)=>{const _0x2dc5c5=a59_0x5305e4,_0x409740={'GBcPB':function(_0x549d03,_0x436676,_0x3f2847){return _0x549d03(_0x436676,_0x3f2847);}};return await _0x409740[_0x2dc5c5(0x7f)](runTest,_0x18fa08,_0x6b096b);},exports['cucumberWorker']=async(_0x3c45c1,_0x264621,_0x5d5c89,_0x14caf9,_0x4d7459)=>{const _0x2760f2=a59_0x5305e4,_0x269f39={'yniar':function(_0x4612b7,_0x55011,_0x421382,_0x4bc64d,_0x3e0397,_0x4aeb1e){return _0x4612b7(_0x55011,_0x421382,_0x4bc64d,_0x3e0397,_0x4aeb1e);}};return await _0x269f39[_0x2760f2(0x83)](runCucumberTest,_0x3c45c1,_0x264621,_0x5d5c89,_0x14caf9,_0x4d7459);},exports[a59_0x5305e4(0x87)]=async _0x272ce4=>{const _0x250954={'WidbC':function(_0xdb44eb,_0x254817){return _0xdb44eb(_0x254817);}};return await _0x250954['WidbC'](runVanillaTest,_0x272ce4);};
1
+ const a59_0x346e6c=a59_0x8b10;(function(_0x66f116,_0x411fb3){const _0x6bea4e=a59_0x8b10,_0x3d230a=_0x66f116();while(!![]){try{const _0x4cd233=parseInt(_0x6bea4e(0x117))/0x1*(-parseInt(_0x6bea4e(0x10c))/0x2)+-parseInt(_0x6bea4e(0x109))/0x3*(-parseInt(_0x6bea4e(0x113))/0x4)+-parseInt(_0x6bea4e(0x10f))/0x5+-parseInt(_0x6bea4e(0x111))/0x6*(parseInt(_0x6bea4e(0x116))/0x7)+-parseInt(_0x6bea4e(0x115))/0x8+-parseInt(_0x6bea4e(0x110))/0x9+parseInt(_0x6bea4e(0x107))/0xa;if(_0x4cd233===_0x411fb3)break;else _0x3d230a['push'](_0x3d230a['shift']());}catch(_0x1f3228){_0x3d230a['push'](_0x3d230a['shift']());}}}(a59_0x5eda,0xaaf46));function a59_0x8b10(_0x458bd6,_0x4fbe5a){const _0x5eda92=a59_0x5eda();return a59_0x8b10=function(_0x8b10ae,_0x324695){_0x8b10ae=_0x8b10ae-0x107;let _0x4d96d6=_0x5eda92[_0x8b10ae];return _0x4d96d6;},a59_0x8b10(_0x458bd6,_0x4fbe5a);}const {runTest,runCucumberTest,runVanillaTest}=require(a59_0x346e6c(0x108));try{require(a59_0x346e6c(0x10d))['installAll']();}catch(a59_0x246f81){}exports[a59_0x346e6c(0x10e)]=async(_0x32b06c,_0x189b0b)=>{const _0x4fc57d={'OmCrU':function(_0x4b523f,_0x217488,_0x1a8245){return _0x4b523f(_0x217488,_0x1a8245);}};return await _0x4fc57d['OmCrU'](runTest,_0x32b06c,_0x189b0b);},exports[a59_0x346e6c(0x10b)]=async(_0x12ceca,_0x57671d,_0x4aff1f,_0x3e3ffe,_0x34ea12)=>{const _0x104b72=a59_0x346e6c,_0x2fee18={'bvbKT':function(_0x3a8be0,_0x5e70e5,_0x1e1850,_0x23e2bf,_0x37c7a9,_0xf11f43){return _0x3a8be0(_0x5e70e5,_0x1e1850,_0x23e2bf,_0x37c7a9,_0xf11f43);}};return await _0x2fee18[_0x104b72(0x112)](runCucumberTest,_0x12ceca,_0x57671d,_0x4aff1f,_0x3e3ffe,_0x34ea12);},exports[a59_0x346e6c(0x10a)]=async _0x4fedb8=>{const _0x38b3ec=a59_0x346e6c,_0x4a0e37={'uHiVc':function(_0x55afd7,_0x5af45f){return _0x55afd7(_0x5af45f);}};return await _0x4a0e37[_0x38b3ec(0x114)](runVanillaTest,_0x4fedb8);};function a59_0x5eda(){const _0x5d32fe=['uHiVc','6911408iUToJS','133MFDOlK','639558csKUZm','35201410aCEvUv','./runTest','1364757XqnIoR','vanillaWorker','cucumberWorker','2oKEcAD','../../helpers/driverInitErrorReporter','worker','1728670EoBAym','10136574cnDNRB','94524SrCiEP','bvbKT','4IMTEQv'];a59_0x5eda=function(){return _0x5d32fe;};return a59_0x5eda();}
@@ -1 +1 @@
1
- const a60_0x13e3fa=a60_0x192c;function a60_0x35e9(){const _0x54e303=['zeJFN','nOlcd','FWBQp','automate','getConfig','12LJmzTv','329288tBsDjp','/puppeteer?caps=','udodZ','SoHcJ','glwNE','APP_UPLOAD_URL','cMMUD','801774ZdChQG','bOObL','exports','Enuuh','GDphT','268455sERfwt','toString','getAppAutomateSessionNameAPIUrl','OBSERVABILITY_UPLOAD_URL','ghMdt','irYHy','endsWith','dDLrR','upload','PUPPETEER_HUB_URL','getPuppeteerHubUrl','XAZmW','HEzvZ','rnUGd','niEfo','./constants','getBStackAPIUrl','cdp','fbjfA','IrRBd','PoDtf','NzhIy','/playwright?caps=','getInstance','edsInstrumentation','getAppAutomateSessionStatusAPIUrl','apis','2MvwyEJ','wTOXZ','./sharedUtils','xMMhm','ijnlj','AoRjv','getAppAutomateSessionsListAPIUrl','iUrUI','BMmSh','SQvBD','xECHD','210062SoZPea','VJJYs','getAutoCaptureLogsAPIUrl','zPBnA','YmKub','fpaKS','huJcY','getAutomateSessionNameAPIUrl','90WAeTaa','getPlaywrightHubUrl','lLeGB','rlXUI','JyBAo','goTBt','QXSDz','ORXGe','434560VHMSit','VgBaM','PRPvV','LetZJ','flJsN','ISmio','NxXmX','lFzDy','wtoBB','MeOBH','gpZvr','48QoWWpD','api','fcNAr','ugEXF','wss:','gdLjQ','getAutomateSessionsListAPIUrl','getAutomateSessionStatusAPIUrl','QtwXF','replace','BROWSERSTACK_API_URL','getEdsInstrumentationAPIUrl','NAOlo','21114269JdMeTD','qUdkU','mhucn','jhYuu','Mpzdw','2711884wFWCfC','KxlzF','oGUhA','appAutomate'];a60_0x35e9=function(){return _0x54e303;};return a60_0x35e9();}(function(_0x3df34e,_0x165a9a){const _0x4c125c=a60_0x192c,_0x5e24ed=_0x3df34e();while(!![]){try{const _0x5d5d7a=-parseInt(_0x4c125c(0x103))/0x1*(parseInt(_0x4c125c(0xf8))/0x2)+parseInt(_0x4c125c(0xd0))/0x3*(-parseInt(_0x4c125c(0xd1))/0x4)+parseInt(_0x4c125c(0xdd))/0x5*(-parseInt(_0x4c125c(0xa2))/0x6)+parseInt(_0x4c125c(0xc7))/0x7+parseInt(_0x4c125c(0xb5))/0x8*(-parseInt(_0x4c125c(0xd8))/0x9)+parseInt(_0x4c125c(0xaa))/0xa+parseInt(_0x4c125c(0xc2))/0xb;if(_0x5d5d7a===_0x165a9a)break;else _0x5e24ed['push'](_0x5e24ed['shift']());}catch(_0x178744){_0x5e24ed['push'](_0x5e24ed['shift']());}}}(a60_0x35e9,0x7304c));const constants=require(a60_0x13e3fa(0xec)),{nestedKeyValue}=require(a60_0x13e3fa(0xfa)),getBrowserstackCLI=()=>{const _0xcc36c8=a60_0x13e3fa,_0x10aab0={'zPBnA':function(_0x35dcaa,_0x2f9ad0){return _0x35dcaa(_0x2f9ad0);},'gpZvr':'../v2/browserstackCLI'};return _0x10aab0[_0xcc36c8(0x9d)](require,_0x10aab0[_0xcc36c8(0xb4)]);};class APIUtilityMethods{static[a60_0x13e3fa(0xed)](_0x1491ee){const _0x137ccf=a60_0x13e3fa,_0x574166={'ZGafb':function(_0x381796){return _0x381796();},'flJsN':function(_0x5e57a2,_0x10e006,_0x2c33e1){return _0x5e57a2(_0x10e006,_0x2c33e1);},'xMMhm':_0x137ccf(0xf7),'goTBt':'automate','TJDmP':_0x137ccf(0xb6),'ghHUL':function(_0x5a449a,_0x5ea676){return _0x5a449a===_0x5ea676;},'QXSDz':function(_0x871954,_0x383123){return _0x871954+_0x383123;}},_0x3865d2=_0x574166['ZGafb'](getBrowserstackCLI),_0x168489=_0x574166[_0x137ccf(0xae)](nestedKeyValue,_0x3865d2[_0x137ccf(0xf4)]()[_0x137ccf(0xcf)](),[_0x574166[_0x137ccf(0xfb)],_0x574166[_0x137ccf(0xa7)],_0x574166['TJDmP']])||constants['BROWSERSTACK_API_URL'];if(!_0x1491ee||_0x574166['ghHUL'](_0x1491ee,''))return _0x168489;const _0x2e87ab=_0x168489[_0x137ccf(0xe3)]('/')?_0x168489:_0x574166[_0x137ccf(0xa8)](_0x168489,'/');return new URL(_0x1491ee,_0x2e87ab)[_0x137ccf(0xde)]();}static[a60_0x13e3fa(0xc0)](_0x565118){const _0x33aa8e=a60_0x13e3fa,_0xb04a9c={'lFzDy':function(_0x3bdbe2){return _0x3bdbe2();},'MeOBH':function(_0x56d64b,_0x41faad,_0x16a1c5){return _0x56d64b(_0x41faad,_0x16a1c5);},'irYHy':_0x33aa8e(0xf7),'ghMdt':_0x33aa8e(0xf5),'Rfxmd':_0x33aa8e(0xb6),'AsuzH':function(_0x2e7d16,_0x131d01){return _0x2e7d16===_0x131d01;},'SoHcJ':function(_0x1f2044,_0x21a8f8){return _0x1f2044+_0x21a8f8;}},_0x31b486=_0xb04a9c[_0x33aa8e(0xb1)](getBrowserstackCLI),_0x3afb28=_0xb04a9c[_0x33aa8e(0xb3)](nestedKeyValue,_0x31b486[_0x33aa8e(0xf4)]()['getConfig'](),[_0xb04a9c[_0x33aa8e(0xe2)],_0xb04a9c[_0x33aa8e(0xe1)],_0xb04a9c['Rfxmd']])||constants['EDS_URL'];if(!_0x565118||_0xb04a9c['AsuzH'](_0x565118,''))return _0x3afb28;const _0x200b9e=_0x3afb28[_0x33aa8e(0xe3)]('/')?_0x3afb28:_0xb04a9c[_0x33aa8e(0xd4)](_0x3afb28,'/');return new URL(_0x565118,_0x200b9e)[_0x33aa8e(0xde)]();}static[a60_0x13e3fa(0xbc)](_0x4fbfab){const _0x190fa6=a60_0x13e3fa,_0x490f1d={'gdLjQ':function(_0x2838d8){return _0x2838d8();},'NAOlo':function(_0x5a4f6f,_0x1fedbf,_0x2c8563){return _0x5a4f6f(_0x1fedbf,_0x2c8563);},'wTOXZ':_0x190fa6(0xf7),'fpaKS':_0x190fa6(0xce),'sjxMA':'api','glwNE':function(_0x23c781,_0x277ebb){return _0x23c781===_0x277ebb;},'PoDtf':function(_0x2f7e77,_0x2d74af){return _0x2f7e77+_0x2d74af;}},_0x26fb9b=_0x490f1d[_0x190fa6(0xba)](getBrowserstackCLI),_0x1d201b=_0x490f1d[_0x190fa6(0xc1)](nestedKeyValue,_0x26fb9b[_0x190fa6(0xf4)]()[_0x190fa6(0xcf)](),[_0x490f1d[_0x190fa6(0xf9)],_0x490f1d[_0x190fa6(0x9f)],_0x490f1d['sjxMA']])||constants['BROWSERSTACK_API_URL'];if(!_0x4fbfab||_0x490f1d[_0x190fa6(0xd5)](_0x4fbfab,''))return _0x1d201b;const _0x29d09f=_0x1d201b['endsWith']('/')?_0x1d201b:_0x490f1d[_0x190fa6(0xf1)](_0x1d201b,'/');return new URL(_0x4fbfab,_0x29d09f)[_0x190fa6(0xde)]();}static[a60_0x13e3fa(0xf6)](_0x4e6ac0){const _0x5e7355=a60_0x13e3fa,_0x5088f1={'Mpzdw':function(_0x26651c){return _0x26651c();},'IrRBd':function(_0x3d14ef,_0x4a11ab,_0x235f9d){return _0x3d14ef(_0x4a11ab,_0x235f9d);},'uFoHG':_0x5e7355(0xf7),'TfzNq':_0x5e7355(0xca),'dycAy':_0x5e7355(0xb6),'iHDpk':function(_0x5baaf6,_0x4df08d){return _0x5baaf6===_0x4df08d;},'NxXmX':function(_0x105c93,_0x19793d){return _0x105c93+_0x19793d;}},_0x1bc1e1=_0x5088f1[_0x5e7355(0xc6)](getBrowserstackCLI),_0x50645c=_0x5088f1[_0x5e7355(0xf0)](nestedKeyValue,_0x1bc1e1['getInstance']()['getConfig'](),[_0x5088f1['uFoHG'],_0x5088f1['TfzNq'],_0x5088f1['dycAy']])||constants[_0x5e7355(0xbf)];if(!_0x4e6ac0||_0x5088f1['iHDpk'](_0x4e6ac0,''))return _0x50645c;const _0x2c8fb6=_0x50645c[_0x5e7355(0xe3)]('/')?_0x50645c:_0x5088f1[_0x5e7355(0xb0)](_0x50645c,'/');return new URL(_0x4e6ac0,_0x2c8fb6)['toString']();}static[a60_0x13e3fa(0xa1)](_0x48760c){const _0x2e034c=a60_0x13e3fa,_0x86f08a={'rnUGd':function(_0x2b9635){return _0x2b9635();},'nNFXP':function(_0x3ffbf0,_0xe63bc1,_0x3d1ef1){return _0x3ffbf0(_0xe63bc1,_0x3d1ef1);},'AoRjv':_0x2e034c(0xf7),'bxqpy':'automate','QtwXF':_0x2e034c(0xb6),'LetZJ':function(_0x24b098,_0x1fcf08){return _0x24b098===_0x1fcf08;},'BsujB':function(_0x2edd5b,_0x36921d){return _0x2edd5b+_0x36921d;}},_0x58dc12=_0x86f08a[_0x2e034c(0xea)](getBrowserstackCLI),_0x11fa6d=_0x86f08a['nNFXP'](nestedKeyValue,_0x58dc12[_0x2e034c(0xf4)]()[_0x2e034c(0xcf)](),[_0x86f08a[_0x2e034c(0xfd)],_0x86f08a['bxqpy'],_0x86f08a[_0x2e034c(0xbd)]])||constants[_0x2e034c(0xbf)];if(!_0x48760c||_0x86f08a[_0x2e034c(0xad)](_0x48760c,''))return _0x11fa6d;const _0x171966=_0x11fa6d['endsWith']('/')?_0x11fa6d:_0x86f08a['BsujB'](_0x11fa6d,'/');return new URL(_0x48760c,_0x171966)[_0x2e034c(0xde)]();}static[a60_0x13e3fa(0xdf)](_0x2c3e9c){const _0x510778=a60_0x13e3fa,_0x24ed67={'qUdkU':function(_0x5d2cc4){return _0x5d2cc4();},'XfqlO':function(_0x1ea287,_0x2295bb,_0x5ad92d){return _0x1ea287(_0x2295bb,_0x5ad92d);},'FWBQp':_0x510778(0xf7),'dDLrR':_0x510778(0xca),'fcNAr':_0x510778(0xb6),'niEfo':function(_0x12eebd,_0x8cafc2){return _0x12eebd===_0x8cafc2;},'KGiUr':function(_0x4acaf5,_0xd27541){return _0x4acaf5+_0xd27541;}},_0x1103e3=_0x24ed67[_0x510778(0xc3)](getBrowserstackCLI),_0x5d1973=_0x24ed67['XfqlO'](nestedKeyValue,_0x1103e3[_0x510778(0xf4)]()[_0x510778(0xcf)](),[_0x24ed67[_0x510778(0xcd)],_0x24ed67[_0x510778(0xe4)],_0x24ed67[_0x510778(0xb7)]])||constants[_0x510778(0xbf)];if(!_0x2c3e9c||_0x24ed67[_0x510778(0xeb)](_0x2c3e9c,''))return _0x5d1973;const _0x27298e=_0x5d1973['endsWith']('/')?_0x5d1973:_0x24ed67['KGiUr'](_0x5d1973,'/');return new URL(_0x2c3e9c,_0x27298e)[_0x510778(0xde)]();}static[a60_0x13e3fa(0xbb)](_0x514e38){const _0x2c17ec=a60_0x13e3fa,_0x3d0b78={'xECHD':function(_0x29a092){return _0x29a092();},'udodZ':function(_0x521844,_0x52e0a9,_0x332f92){return _0x521844(_0x52e0a9,_0x332f92);},'rlXUI':'apis','oGUhA':'automate','iUrUI':_0x2c17ec(0xb6),'HEzvZ':function(_0x2fe8ff,_0x582f82){return _0x2fe8ff===_0x582f82;},'GDphT':function(_0x1e5d63,_0xd71c71){return _0x1e5d63+_0xd71c71;}},_0x22840a=_0x3d0b78[_0x2c17ec(0x102)](getBrowserstackCLI),_0x51a430=_0x3d0b78[_0x2c17ec(0xd3)](nestedKeyValue,_0x22840a['getInstance']()[_0x2c17ec(0xcf)](),[_0x3d0b78[_0x2c17ec(0xa5)],_0x3d0b78[_0x2c17ec(0xc9)],_0x3d0b78[_0x2c17ec(0xff)]])||constants['BROWSERSTACK_API_URL'];if(!_0x514e38||_0x3d0b78[_0x2c17ec(0xe9)](_0x514e38,''))return _0x51a430;const _0x2150b9=_0x51a430[_0x2c17ec(0xe3)]('/')?_0x51a430:_0x3d0b78[_0x2c17ec(0xdc)](_0x51a430,'/');return new URL(_0x514e38,_0x2150b9)[_0x2c17ec(0xde)]()[_0x2c17ec(0xbe)](/^https?:\/\//,'');}static[a60_0x13e3fa(0xfe)](_0xb0186){const _0x4ab728=a60_0x13e3fa,_0x37056d={'ISmio':function(_0x104b58){return _0x104b58();},'AowFk':function(_0x202af8,_0x14db41,_0xed167a){return _0x202af8(_0x14db41,_0xed167a);},'ijnlj':_0x4ab728(0xf7),'wtoBB':'appAutomate','ugEXF':'api','bOObL':function(_0x4b7dcc,_0x207193){return _0x4b7dcc===_0x207193;},'Enuuh':function(_0x26214c,_0x2d4c07){return _0x26214c+_0x2d4c07;}},_0x59ba5f=_0x37056d[_0x4ab728(0xaf)](getBrowserstackCLI),_0x5b05ee=_0x37056d['AowFk'](nestedKeyValue,_0x59ba5f[_0x4ab728(0xf4)]()[_0x4ab728(0xcf)](),[_0x37056d[_0x4ab728(0xfc)],_0x37056d[_0x4ab728(0xb2)],_0x37056d[_0x4ab728(0xb8)]])||constants[_0x4ab728(0xd6)];if(!_0xb0186||_0x37056d[_0x4ab728(0xd9)](_0xb0186,''))return _0x5b05ee;const _0x57de93=_0x5b05ee[_0x4ab728(0xe3)]('/')?_0x5b05ee:_0x37056d[_0x4ab728(0xdb)](_0x5b05ee,'/');return new URL(_0xb0186,_0x57de93)[_0x4ab728(0xde)]()[_0x4ab728(0xbe)](/^https?:\/\//,'');}static[a60_0x13e3fa(0x105)](_0x4e8e80){const _0x4b82d6=a60_0x13e3fa,_0xccb65d={'XAZmW':function(_0x1dde60){return _0x1dde60();},'jhYuu':function(_0x13630d,_0x90f209,_0x5b8f37){return _0x13630d(_0x90f209,_0x5b8f37);},'qhvuf':'apis','JyBAo':'observability','feWkH':_0x4b82d6(0xe5),'PRPvV':function(_0x2a5e49,_0x10a701){return _0x2a5e49===_0x10a701;},'IcCBL':function(_0x51448b,_0x6492dd){return _0x51448b+_0x6492dd;}},_0x3450e1=_0xccb65d[_0x4b82d6(0xe8)](getBrowserstackCLI),_0x696728=_0xccb65d[_0x4b82d6(0xc5)](nestedKeyValue,_0x3450e1[_0x4b82d6(0xf4)]()['getConfig'](),[_0xccb65d['qhvuf'],_0xccb65d[_0x4b82d6(0xa6)],_0xccb65d['feWkH']])||constants[_0x4b82d6(0xe0)];if(!_0x4e8e80||_0xccb65d[_0x4b82d6(0xac)](_0x4e8e80,''))return _0x696728;const _0xf019d5=_0x696728[_0x4b82d6(0xe3)]('/')?_0x696728:_0xccb65d['IcCBL'](_0x696728,'/');return new URL(_0x4e8e80,_0xf019d5)[_0x4b82d6(0xde)]();}static[a60_0x13e3fa(0xa3)](_0x334b15){const _0x58b239=a60_0x13e3fa,_0x5552e4={'nOlcd':function(_0x2dd5ee){return _0x2dd5ee();},'GQVvP':function(_0x2edac9,_0xf3cef5,_0x4c183b){return _0x2edac9(_0xf3cef5,_0x4c183b);},'ORXGe':_0x58b239(0xf7),'lLeGB':_0x58b239(0xce),'SQvBD':_0x58b239(0xee),'mhucn':_0x58b239(0xb9),'VJJYs':function(_0x296f33,_0xf3a2dc){return _0x296f33===_0xf3a2dc;},'YmKub':function(_0x2cc341,_0x5ea248){return _0x2cc341+_0x5ea248;},'NzhIy':_0x58b239(0xf3)},_0x368401=_0x5552e4[_0x58b239(0xcc)](getBrowserstackCLI),_0x231b1c=_0x5552e4['GQVvP'](nestedKeyValue,_0x368401[_0x58b239(0xf4)]()[_0x58b239(0xcf)](),[_0x5552e4[_0x58b239(0xa9)],_0x5552e4[_0x58b239(0xa4)],_0x5552e4[_0x58b239(0x101)]]),_0x422b46=(_0x231b1c?_0x231b1c[_0x58b239(0xbe)](/^https:/,_0x5552e4[_0x58b239(0xc4)]):null)||constants['PLAYWRIGHT_HUB_URL'];let _0x7cc352;if(!_0x334b15||_0x5552e4[_0x58b239(0x104)](_0x334b15,''))_0x7cc352=_0x422b46;else{const _0x514c76=_0x422b46[_0x58b239(0xe3)]('/')?_0x422b46:_0x5552e4[_0x58b239(0x9e)](_0x422b46,'/');_0x7cc352=new URL(_0x334b15,_0x514c76)[_0x58b239(0xde)]();}return!_0x7cc352[_0x58b239(0xe3)](_0x5552e4[_0x58b239(0xf2)])&&(_0x7cc352+=_0x5552e4[_0x58b239(0xf2)]),_0x7cc352;}static[a60_0x13e3fa(0xe7)](_0x3a392a){const _0x108867=a60_0x13e3fa,_0x371f45={'zeJFN':function(_0x5ea81a){return _0x5ea81a();},'huJcY':function(_0x4a41ae,_0x56d35b,_0x49b6cd){return _0x4a41ae(_0x56d35b,_0x49b6cd);},'hTPsZ':_0x108867(0xf7),'cMMUD':'automate','qhryS':_0x108867(0xee),'BMmSh':'wss:','KxlzF':function(_0x4297ad,_0x11ab70){return _0x4297ad===_0x11ab70;},'fbjfA':function(_0x30631b,_0x45d6f5){return _0x30631b+_0x45d6f5;},'VgBaM':_0x108867(0xd2)},_0x433cf2=_0x371f45[_0x108867(0xcb)](getBrowserstackCLI),_0x44d103=_0x371f45[_0x108867(0xa0)](nestedKeyValue,_0x433cf2[_0x108867(0xf4)]()[_0x108867(0xcf)](),[_0x371f45['hTPsZ'],_0x371f45[_0x108867(0xd7)],_0x371f45['qhryS']]),_0x268346=(_0x44d103?_0x44d103['replace'](/^https:/,_0x371f45[_0x108867(0x100)]):null)||constants[_0x108867(0xe6)];let _0x2fd6c5;if(!_0x3a392a||_0x371f45[_0x108867(0xc8)](_0x3a392a,''))_0x2fd6c5=_0x268346;else{const _0x236d79=_0x268346[_0x108867(0xe3)]('/')?_0x268346:_0x371f45[_0x108867(0xef)](_0x268346,'/');_0x2fd6c5=new URL(_0x3a392a,_0x236d79)[_0x108867(0xde)]();}return!_0x2fd6c5[_0x108867(0xe3)](_0x371f45[_0x108867(0xab)])&&(_0x2fd6c5+=_0x371f45['VgBaM']),_0x2fd6c5;}}function a60_0x192c(_0x3f24e7,_0x39e9f7){const _0x35e96e=a60_0x35e9();return a60_0x192c=function(_0x192c95,_0x4cf1bb){_0x192c95=_0x192c95-0x9d;let _0x4aaf7a=_0x35e96e[_0x192c95];return _0x4aaf7a;},a60_0x192c(_0x3f24e7,_0x39e9f7);}module[a60_0x13e3fa(0xda)]=APIUtilityMethods;
1
+ const a60_0x469b2c=a60_0x3087;function a60_0x4bf8(){const _0x139fb=['upload','qLbgO','iBMZS','getInstance','JIiWz','WRsGY','TXjaB','UZyYM','bTIya','caFUD','getConfig','uCIOA','fPPuW','exports','ZjfAi','OksSp','aTCVh','kYinO','yUcBv','8075550ipIPER','uOwBw','BROWSERSTACK_API_URL','4LbyPcW','dJVye','IZark','afFFs','PUPPETEER_HUB_URL','CClLE','xVQpu','hTJLI','getAppAutomateSessionStatusAPIUrl','LxPtF','OBSERVABILITY_UPLOAD_URL','EDS_URL','BMdHt','cdp','3430419MXiNgN','443799TXeRbt','toString','APP_UPLOAD_URL','NCpHu','qsixx','GKKBM','HlclG','../v2/browserstackCLI','ICQSq','getPlaywrightHubUrl','mkoye','5765406wqSQjL','TDCJR','qBSev','getAutomateSessionNameAPIUrl','qewfe','getPuppeteerHubUrl','CniLH','nVYve','1935535uBktJq','getAutomateSessionStatusAPIUrl','/playwright?caps=','jBBqZ','apis','uJnHl','GHJXm','OcSot','FujeF','qSAbN','observability','EdcWx','api','VrOMi','wss:','27sgKpUw','endsWith','dkWQV','lpjiR','910964OhAEkF','ezKqc','getAutoCaptureLogsAPIUrl','BjUKQ','CQIwd','rRFhe','PLAYWRIGHT_HUB_URL','appAutomate','edsInstrumentation','rtGoB','htivf','eAcKF','Clumz','automate','DVHEW','getAppAutomateSessionNameAPIUrl','./constants','zrVQJ','replace','./sharedUtils','5661520HWLdzR'];a60_0x4bf8=function(){return _0x139fb;};return a60_0x4bf8();}(function(_0x202f9d,_0x24895f){const _0x4902e7=a60_0x3087,_0x4c02a1=_0x202f9d();while(!![]){try{const _0x436270=-parseInt(_0x4902e7(0xc5))/0x1+-parseInt(_0x4902e7(0xeb))/0x2+-parseInt(_0x4902e7(0xc4))/0x3+-parseInt(_0x4902e7(0xb6))/0x4*(-parseInt(_0x4902e7(0xd8))/0x5)+-parseInt(_0x4902e7(0xd0))/0x6+parseInt(_0x4902e7(0xb3))/0x7+-parseInt(_0x4902e7(0x9f))/0x8*(-parseInt(_0x4902e7(0xe7))/0x9);if(_0x436270===_0x24895f)break;else _0x4c02a1['push'](_0x4c02a1['shift']());}catch(_0x5541e5){_0x4c02a1['push'](_0x4c02a1['shift']());}}}(a60_0x4bf8,0xa12cc));const constants=require(a60_0x469b2c(0x9b)),{nestedKeyValue}=require(a60_0x469b2c(0x9e)),getBrowserstackCLI=()=>{const _0x1f547b=a60_0x469b2c,_0x5e4108={'alvlh':function(_0x5137fb,_0x7c2c4c){return _0x5137fb(_0x7c2c4c);},'dpASG':_0x1f547b(0xcc)};return _0x5e4108['alvlh'](require,_0x5e4108['dpASG']);};class APIUtilityMethods{static['getBStackAPIUrl'](_0x200659){const _0x308e90=a60_0x469b2c,_0x42d38b={'xVQpu':function(_0x44d6be){return _0x44d6be();},'Clumz':function(_0x2b1851,_0x4a5af5,_0x160dac){return _0x2b1851(_0x4a5af5,_0x160dac);},'jxTNU':'apis','NafEI':'automate','qsixx':_0x308e90(0xe4),'kYinO':function(_0x11c631,_0x557c6c){return _0x11c631===_0x557c6c;},'aTCVh':function(_0xa990f2,_0x1d0d81){return _0xa990f2+_0x1d0d81;}},_0x127f42=_0x42d38b[_0x308e90(0xbc)](getBrowserstackCLI),_0x2f20dc=_0x42d38b[_0x308e90(0xf7)](nestedKeyValue,_0x127f42[_0x308e90(0xa3)]()[_0x308e90(0xaa)](),[_0x42d38b['jxTNU'],_0x42d38b['NafEI'],_0x42d38b[_0x308e90(0xc9)]])||constants[_0x308e90(0xb5)];if(!_0x200659||_0x42d38b[_0x308e90(0xb1)](_0x200659,''))return _0x2f20dc;const _0x197fc6=_0x2f20dc[_0x308e90(0xe8)]('/')?_0x2f20dc:_0x42d38b[_0x308e90(0xb0)](_0x2f20dc,'/');return new URL(_0x200659,_0x197fc6)[_0x308e90(0xc6)]();}static['getEdsInstrumentationAPIUrl'](_0x377a2b){const _0x57b7ee=a60_0x469b2c,_0x1a30da={'iBMZS':function(_0x1f268a){return _0x1f268a();},'ADGNy':function(_0xe2411e,_0x185df2,_0xdb1b0b){return _0xe2411e(_0x185df2,_0xdb1b0b);},'qLbgO':_0x57b7ee(0xdc),'NCpHu':_0x57b7ee(0xf3),'uJnHl':_0x57b7ee(0xe4),'FujeF':function(_0x50b3d9,_0x2aeffa){return _0x50b3d9===_0x2aeffa;},'JBUAp':function(_0x349e46,_0x2985aa){return _0x349e46+_0x2985aa;}},_0x2bbd33=_0x1a30da[_0x57b7ee(0xa2)](getBrowserstackCLI),_0x4c5470=_0x1a30da['ADGNy'](nestedKeyValue,_0x2bbd33['getInstance']()['getConfig'](),[_0x1a30da[_0x57b7ee(0xa1)],_0x1a30da[_0x57b7ee(0xc8)],_0x1a30da[_0x57b7ee(0xdd)]])||constants[_0x57b7ee(0xc1)];if(!_0x377a2b||_0x1a30da[_0x57b7ee(0xe0)](_0x377a2b,''))return _0x4c5470;const _0x280c5a=_0x4c5470[_0x57b7ee(0xe8)]('/')?_0x4c5470:_0x1a30da['JBUAp'](_0x4c5470,'/');return new URL(_0x377a2b,_0x280c5a)[_0x57b7ee(0xc6)]();}static[a60_0x469b2c(0xd9)](_0x81b6ca){const _0x411934=a60_0x469b2c,_0x1e74ed={'CQIwd':function(_0x1edb39){return _0x1edb39();},'uKvHb':function(_0x5bf4f4,_0x1b5bfa,_0x18b6fd){return _0x5bf4f4(_0x1b5bfa,_0x18b6fd);},'IZark':_0x411934(0xdc),'plNmY':_0x411934(0xf8),'vzYrb':_0x411934(0xe4),'zrVQJ':function(_0x1313db,_0x5ee170){return _0x1313db===_0x5ee170;},'qSAbN':function(_0x1d2d0f,_0x2ca560){return _0x1d2d0f+_0x2ca560;}},_0xb5d19a=_0x1e74ed[_0x411934(0xef)](getBrowserstackCLI),_0x211239=_0x1e74ed['uKvHb'](nestedKeyValue,_0xb5d19a[_0x411934(0xa3)]()['getConfig'](),[_0x1e74ed[_0x411934(0xb8)],_0x1e74ed['plNmY'],_0x1e74ed['vzYrb']])||constants[_0x411934(0xb5)];if(!_0x81b6ca||_0x1e74ed[_0x411934(0x9c)](_0x81b6ca,''))return _0x211239;const _0x38fdd7=_0x211239[_0x411934(0xe8)]('/')?_0x211239:_0x1e74ed[_0x411934(0xe1)](_0x211239,'/');return new URL(_0x81b6ca,_0x38fdd7)[_0x411934(0xc6)]();}static[a60_0x469b2c(0xbe)](_0x2e888b){const _0x31de94=a60_0x469b2c,_0x136375={'ICQSq':function(_0xbdeb0b){return _0xbdeb0b();},'hTJLI':function(_0x30ee78,_0x12df16,_0xaa1c08){return _0x30ee78(_0x12df16,_0xaa1c08);},'uCIOA':'apis','afFFs':_0x31de94(0xf2),'SRMiA':_0x31de94(0xe4),'fPPuW':function(_0x5698c9,_0x5872b3){return _0x5698c9===_0x5872b3;},'mkoye':function(_0x2efa05,_0x1592a5){return _0x2efa05+_0x1592a5;}},_0x5c2651=_0x136375[_0x31de94(0xcd)](getBrowserstackCLI),_0x33988c=_0x136375[_0x31de94(0xbd)](nestedKeyValue,_0x5c2651['getInstance']()[_0x31de94(0xaa)](),[_0x136375[_0x31de94(0xab)],_0x136375[_0x31de94(0xb9)],_0x136375['SRMiA']])||constants[_0x31de94(0xb5)];if(!_0x2e888b||_0x136375[_0x31de94(0xac)](_0x2e888b,''))return _0x33988c;const _0x4f8f1b=_0x33988c[_0x31de94(0xe8)]('/')?_0x33988c:_0x136375[_0x31de94(0xcf)](_0x33988c,'/');return new URL(_0x2e888b,_0x4f8f1b)['toString']();}static[a60_0x469b2c(0xd3)](_0x5a06c8){const _0x485e9c=a60_0x469b2c,_0x49bf75={'TDCJR':function(_0x4bd214){return _0x4bd214();},'eflXd':function(_0x6a153a,_0x2a1d0f,_0x5f59b0){return _0x6a153a(_0x2a1d0f,_0x5f59b0);},'UZyYM':'apis','ezKqc':_0x485e9c(0xf8),'OcSot':'api','CniLH':function(_0x2f063e,_0x234d39){return _0x2f063e===_0x234d39;},'BjUKQ':function(_0x92c688,_0x445f8c){return _0x92c688+_0x445f8c;}},_0x539e65=_0x49bf75[_0x485e9c(0xd1)](getBrowserstackCLI),_0x4d9d88=_0x49bf75['eflXd'](nestedKeyValue,_0x539e65[_0x485e9c(0xa3)]()[_0x485e9c(0xaa)](),[_0x49bf75[_0x485e9c(0xa7)],_0x49bf75[_0x485e9c(0xec)],_0x49bf75[_0x485e9c(0xdf)]])||constants[_0x485e9c(0xb5)];if(!_0x5a06c8||_0x49bf75[_0x485e9c(0xd6)](_0x5a06c8,''))return _0x4d9d88;const _0x2101c1=_0x4d9d88['endsWith']('/')?_0x4d9d88:_0x49bf75[_0x485e9c(0xee)](_0x4d9d88,'/');return new URL(_0x5a06c8,_0x2101c1)['toString']();}static[a60_0x469b2c(0x9a)](_0x5ca932){const _0x288358=a60_0x469b2c,_0x94c16b={'caFUD':function(_0x20352b){return _0x20352b();},'gugmY':function(_0x11f3c8,_0x3d1436,_0x47d21e){return _0x11f3c8(_0x3d1436,_0x47d21e);},'HlclG':_0x288358(0xdc),'ZjfAi':_0x288358(0xf2),'yUcBv':'api','rtGoB':function(_0x3f3262,_0x731384){return _0x3f3262===_0x731384;},'jBBqZ':function(_0x5d6a4b,_0x1cd41e){return _0x5d6a4b+_0x1cd41e;}},_0xddbb58=_0x94c16b[_0x288358(0xa9)](getBrowserstackCLI),_0x292763=_0x94c16b['gugmY'](nestedKeyValue,_0xddbb58[_0x288358(0xa3)]()['getConfig'](),[_0x94c16b[_0x288358(0xcb)],_0x94c16b[_0x288358(0xae)],_0x94c16b[_0x288358(0xb2)]])||constants[_0x288358(0xb5)];if(!_0x5ca932||_0x94c16b[_0x288358(0xf4)](_0x5ca932,''))return _0x292763;const _0x57c1db=_0x292763['endsWith']('/')?_0x292763:_0x94c16b[_0x288358(0xdb)](_0x292763,'/');return new URL(_0x5ca932,_0x57c1db)[_0x288358(0xc6)]();}static['getAutomateSessionsListAPIUrl'](_0x27a320){const _0x5a5796=a60_0x469b2c,_0x34b667={'EdcWx':function(_0x354b87){return _0x354b87();},'bTIya':function(_0x2304ff,_0x1a2643,_0x432748){return _0x2304ff(_0x1a2643,_0x432748);},'DVHEW':_0x5a5796(0xdc),'LxPtF':_0x5a5796(0xf8),'GFknZ':_0x5a5796(0xe4),'JIiWz':function(_0x35aa99,_0x3a4638){return _0x35aa99===_0x3a4638;},'dorSJ':function(_0x19690f,_0x4a12ff){return _0x19690f+_0x4a12ff;}},_0x2f9661=_0x34b667[_0x5a5796(0xe3)](getBrowserstackCLI),_0xdd16ca=_0x34b667[_0x5a5796(0xa8)](nestedKeyValue,_0x2f9661[_0x5a5796(0xa3)]()[_0x5a5796(0xaa)](),[_0x34b667[_0x5a5796(0x99)],_0x34b667[_0x5a5796(0xbf)],_0x34b667['GFknZ']])||constants[_0x5a5796(0xb5)];if(!_0x27a320||_0x34b667[_0x5a5796(0xa4)](_0x27a320,''))return _0xdd16ca;const _0x48104e=_0xdd16ca[_0x5a5796(0xe8)]('/')?_0xdd16ca:_0x34b667['dorSJ'](_0xdd16ca,'/');return new URL(_0x27a320,_0x48104e)[_0x5a5796(0xc6)]()[_0x5a5796(0x9d)](/^https?:\/\//,'');}static['getAppAutomateSessionsListAPIUrl'](_0x19481e){const _0x167318=a60_0x469b2c,_0x37ddde={'XIDdi':function(_0xa1b88f){return _0xa1b88f();},'enMNi':function(_0x46e2fb,_0x42dc23,_0xabb68c){return _0x46e2fb(_0x42dc23,_0xabb68c);},'pCMEy':_0x167318(0xdc),'EXQfD':_0x167318(0xf2),'bcqkR':_0x167318(0xe4),'gLPBK':function(_0x57191a,_0x5b927e){return _0x57191a===_0x5b927e;},'dJVye':function(_0x58bccf,_0x1a989d){return _0x58bccf+_0x1a989d;}},_0x421778=_0x37ddde['XIDdi'](getBrowserstackCLI),_0x5d4c23=_0x37ddde['enMNi'](nestedKeyValue,_0x421778[_0x167318(0xa3)]()[_0x167318(0xaa)](),[_0x37ddde['pCMEy'],_0x37ddde['EXQfD'],_0x37ddde['bcqkR']])||constants[_0x167318(0xc7)];if(!_0x19481e||_0x37ddde['gLPBK'](_0x19481e,''))return _0x5d4c23;const _0x226f55=_0x5d4c23['endsWith']('/')?_0x5d4c23:_0x37ddde[_0x167318(0xb7)](_0x5d4c23,'/');return new URL(_0x19481e,_0x226f55)['toString']()['replace'](/^https?:\/\//,'');}static[a60_0x469b2c(0xed)](_0x17c554){const _0xb5ee40=a60_0x469b2c,_0x431098={'GKKBM':function(_0x3c3006){return _0x3c3006();},'GnTIq':function(_0x58c50a,_0x3d1e9b,_0x44d030){return _0x58c50a(_0x3d1e9b,_0x44d030);},'eAcKF':_0xb5ee40(0xdc),'ACNtM':_0xb5ee40(0xe2),'rRFhe':_0xb5ee40(0xa0),'iqTwR':function(_0x5452b,_0x4501a5){return _0x5452b===_0x4501a5;},'BMdHt':function(_0x1ae37f,_0x42b484){return _0x1ae37f+_0x42b484;}},_0x5cd6a5=_0x431098[_0xb5ee40(0xca)](getBrowserstackCLI),_0x5e11da=_0x431098['GnTIq'](nestedKeyValue,_0x5cd6a5[_0xb5ee40(0xa3)]()[_0xb5ee40(0xaa)](),[_0x431098[_0xb5ee40(0xf6)],_0x431098['ACNtM'],_0x431098[_0xb5ee40(0xf0)]])||constants[_0xb5ee40(0xc0)];if(!_0x17c554||_0x431098['iqTwR'](_0x17c554,''))return _0x5e11da;const _0x3d0b7c=_0x5e11da[_0xb5ee40(0xe8)]('/')?_0x5e11da:_0x431098[_0xb5ee40(0xc2)](_0x5e11da,'/');return new URL(_0x17c554,_0x3d0b7c)[_0xb5ee40(0xc6)]();}static[a60_0x469b2c(0xce)](_0x91aa02){const _0x50d2c5=a60_0x469b2c,_0x3bc40f={'GHJXm':function(_0xce3d1e){return _0xce3d1e();},'TXjaB':function(_0x17e0fc,_0xc58d7,_0x367445){return _0x17e0fc(_0xc58d7,_0x367445);},'zbQOc':_0x50d2c5(0xdc),'CClLE':_0x50d2c5(0xf8),'dkWQV':_0x50d2c5(0xc3),'qBSev':_0x50d2c5(0xe6),'PAikg':function(_0x33d7a3,_0x3bfe75){return _0x33d7a3===_0x3bfe75;},'VrOMi':function(_0x3a0fab,_0x254a83){return _0x3a0fab+_0x254a83;},'lpjiR':_0x50d2c5(0xda)},_0xfbc3a9=_0x3bc40f[_0x50d2c5(0xde)](getBrowserstackCLI),_0x5766c6=_0x3bc40f[_0x50d2c5(0xa6)](nestedKeyValue,_0xfbc3a9[_0x50d2c5(0xa3)]()['getConfig'](),[_0x3bc40f['zbQOc'],_0x3bc40f[_0x50d2c5(0xbb)],_0x3bc40f[_0x50d2c5(0xe9)]]),_0x1e0b64=(_0x5766c6?_0x5766c6['replace'](/^https:/,_0x3bc40f[_0x50d2c5(0xd2)]):null)||constants[_0x50d2c5(0xf1)];let _0x3ae9ea;if(!_0x91aa02||_0x3bc40f['PAikg'](_0x91aa02,''))_0x3ae9ea=_0x1e0b64;else{const _0x41e9a0=_0x1e0b64[_0x50d2c5(0xe8)]('/')?_0x1e0b64:_0x3bc40f[_0x50d2c5(0xe5)](_0x1e0b64,'/');_0x3ae9ea=new URL(_0x91aa02,_0x41e9a0)[_0x50d2c5(0xc6)]();}return!_0x3ae9ea[_0x50d2c5(0xe8)](_0x3bc40f[_0x50d2c5(0xea)])&&(_0x3ae9ea+=_0x3bc40f[_0x50d2c5(0xea)]),_0x3ae9ea;}static[a60_0x469b2c(0xd5)](_0x2863c8){const _0x215068=a60_0x469b2c,_0x57e984={'nVYve':function(_0x15fb2f){return _0x15fb2f();},'uOwBw':function(_0x532b06,_0x42f00d,_0x543b98){return _0x532b06(_0x42f00d,_0x543b98);},'pkqTy':_0x215068(0xdc),'WRsGY':_0x215068(0xf8),'htivf':_0x215068(0xc3),'dTMbf':_0x215068(0xe6),'Rtqdq':function(_0x2377b0,_0x564a0a){return _0x2377b0===_0x564a0a;},'OksSp':function(_0x2f7fd9,_0x3b21af){return _0x2f7fd9+_0x3b21af;},'qewfe':'/puppeteer?caps='},_0x5529c0=_0x57e984[_0x215068(0xd7)](getBrowserstackCLI),_0x2a2605=_0x57e984[_0x215068(0xb4)](nestedKeyValue,_0x5529c0[_0x215068(0xa3)]()[_0x215068(0xaa)](),[_0x57e984['pkqTy'],_0x57e984[_0x215068(0xa5)],_0x57e984[_0x215068(0xf5)]]),_0x45e50c=(_0x2a2605?_0x2a2605[_0x215068(0x9d)](/^https:/,_0x57e984['dTMbf']):null)||constants[_0x215068(0xba)];let _0x111204;if(!_0x2863c8||_0x57e984['Rtqdq'](_0x2863c8,''))_0x111204=_0x45e50c;else{const _0x30a0c2=_0x45e50c[_0x215068(0xe8)]('/')?_0x45e50c:_0x57e984[_0x215068(0xaf)](_0x45e50c,'/');_0x111204=new URL(_0x2863c8,_0x30a0c2)[_0x215068(0xc6)]();}return!_0x111204[_0x215068(0xe8)](_0x57e984[_0x215068(0xd4)])&&(_0x111204+=_0x57e984[_0x215068(0xd4)]),_0x111204;}}function a60_0x3087(_0x37b0f8,_0x2ac700){const _0x4bf893=a60_0x4bf8();return a60_0x3087=function(_0x3087c0,_0x43f73b){_0x3087c0=_0x3087c0-0x99;let _0x23f831=_0x4bf893[_0x3087c0];return _0x23f831;},a60_0x3087(_0x37b0f8,_0x2ac700);}module[a60_0x469b2c(0xad)]=APIUtilityMethods;
@@ -1 +1 @@
1
- const a61_0x5371d1=a61_0x5113;function a61_0x1f87(){const _0x22ef84=['winstonLogger','logSituation','{SIGNAL}','scPWo','./constants','errorCodes','185034AYJfcD','MmlUb','Process\x20Interruption','hbFdX','finalErrorMessage','1799448EYqzbs','bhhfz','base64','Error\x20in\x20getting\x20error\x20details\x20for\x20','.browserstack\x20folder\x20not\x20accessible','conflicting\x20env\x20var\x20detected','1250808TwczNH','getErrorCodes','getErrorDetails','size','CTdKr','keys','errorCode','stringify','{ERROR_CODES}','CLIENT_TROUBLESHOOTING_HASH','errorCodesOccurredInCLI','ZXhUn','getAggregatedClientTroubleshootingErrors','Gvjek','NYVVY','Connectivity\x20Issue\x20details\x20not\x20found','Error\x20in\x20getting\x20aggregated\x20error\x20codes:','getFinalErrorMessage','GzFDe','replace','lqCkt','toString','reportDotBrowserStackFolderNotAccessibleIssue','logError','add','aqCEk','errorMessage','eYOOq','DaJMB','PaONt','MjWAi','zOqNk','Session\x20Linking\x20Issue\x20details\x20not\x20found','browserstack\x20cloud\x20not\x20reachable','ZfHhs','Session\x20Linking\x20Issue','Rnbod','sMhsG','checkForErrorsOccuredInCLI','warn','reportSSLCertIssue','kRJjj','isRunning','.browserstack\x20Folder\x20Not\x20Accessible\x20details\x20not\x20found','reportProcessInterruptionSituation','../v2/browserstackCLI','BDYIy','UQkrv','cachedErrorCodes','reportFinalDetectionState','getDocumentationLink','reportSessionLinkingIssue','9yLRwLb','gYNbK','errorCodesOccurredWhenCLINotRunning','reportClientTroubleshootingError','OhkaK','getErrorCodesOccurredInCli','length','XbiCi','getAggregatedErrorCodes','1923910iQVIoy','from','error','sXfLJ','421413jfOJsZ','LJWzE','documentationLink','reportConnectivityIssue','jdgyS','getErrorMessage','getInstance','brUhM','2050764YXseYo','parse','92QtbJFD','getSuccess','[ClientTroubleShootingService]\x20','6515GkNFPs','../../helpers/logger','2BzRkDZ'];a61_0x1f87=function(){return _0x22ef84;};return a61_0x1f87();}(function(_0x217f70,_0x4d7525){const _0x4c30eb=a61_0x5113,_0x2501f7=_0x217f70();while(!![]){try{const _0x5900fc=-parseInt(_0x4c30eb(0x1e5))/0x1*(parseInt(_0x4c30eb(0x1ec))/0x2)+-parseInt(_0x4c30eb(0x1d6))/0x3+parseInt(_0x4c30eb(0x1e0))/0x4*(-parseInt(_0x4c30eb(0x1e3))/0x5)+parseInt(_0x4c30eb(0x1de))/0x6+parseInt(_0x4c30eb(0x1f1))/0x7+parseInt(_0x4c30eb(0x1f7))/0x8+-parseInt(_0x4c30eb(0x1c9))/0x9*(parseInt(_0x4c30eb(0x1d2))/0xa);if(_0x5900fc===_0x4d7525)break;else _0x2501f7['push'](_0x2501f7['shift']());}catch(_0x112c93){_0x2501f7['push'](_0x2501f7['shift']());}}}(a61_0x1f87,0x329f0));const logger=require(a61_0x5371d1(0x1e4))[a61_0x5371d1(0x1e6)],BrowserstackCLI=require(a61_0x5371d1(0x1c2)),GrpcClient=require('../v2/grpcClient'),constants=require(a61_0x5371d1(0x1ea));class ClientTroubleShootingService{static [a61_0x5371d1(0x1c5)]=null;static [a61_0x5371d1(0x1cb)]=new Set();static async['getErrorDetails'](_0xd93696){const _0x14dcb6=a61_0x5371d1,_0x433359={};_0x433359[_0x14dcb6(0x1a9)]=function(_0x1bb55a,_0x4ad8de){return _0x1bb55a!==_0x4ad8de;};const _0x3a7caf=_0x433359;try{if(BrowserstackCLI[_0x14dcb6(0x1dc)]()[_0x14dcb6(0x1bf)]()){const _0xe0e441=await GrpcClient[_0x14dcb6(0x1dc)]()[_0x14dcb6(0x1cc)](_0xd93696);if(_0x3a7caf[_0x14dcb6(0x1a9)](_0xe0e441,null)&&_0xe0e441[_0x14dcb6(0x1e1)]())return{'errorCode':_0xe0e441['getErrorCode'](),'errorMessage':_0xe0e441[_0x14dcb6(0x1db)]()};return{};}return{};}catch(_0x21fc31){return this['logError'](_0x14dcb6(0x1f4)+_0xd93696+':',_0x21fc31),{};}}static async[a61_0x5371d1(0x1d1)](){const _0x3b9892=a61_0x5371d1,_0x81c1e5={};_0x81c1e5[_0x3b9892(0x1da)]=function(_0x3f66c5,_0x457acd){return _0x3f66c5!==_0x457acd;},_0x81c1e5[_0x3b9892(0x1ca)]=_0x3b9892(0x1f3),_0x81c1e5[_0x3b9892(0x1c3)]=_0x3b9892(0x1a5);const _0x33bd3b=_0x81c1e5;try{if(BrowserstackCLI[_0x3b9892(0x1dc)]()[_0x3b9892(0x1bf)]()){const _0x479e42=await GrpcClient[_0x3b9892(0x1dc)]()[_0x3b9892(0x203)]();if(_0x33bd3b['jdgyS'](_0x479e42,null)&&_0x479e42[_0x3b9892(0x1e1)]()){const _0x37d6bc=Buffer['from'](_0x479e42[_0x3b9892(0x1f8)](),_0x33bd3b[_0x3b9892(0x1ca)])[_0x3b9892(0x1aa)](),_0x1e88c7=_0x37d6bc?JSON[_0x3b9892(0x1df)](_0x37d6bc):[],_0x28696c=_0x479e42[_0x3b9892(0x1c7)](),_0x14c3c7=_0x479e42[_0x3b9892(0x1a6)](),_0x166345=Buffer[_0x3b9892(0x1d3)](_0x479e42[_0x3b9892(0x1ce)](),_0x33bd3b[_0x3b9892(0x1ca)])[_0x3b9892(0x1aa)](),_0x206e26=_0x166345?JSON[_0x3b9892(0x1df)](_0x166345):[],_0x24b92f={};return _0x24b92f['errorCodes']=_0x1e88c7,_0x24b92f[_0x3b9892(0x1d8)]=_0x28696c,_0x24b92f[_0x3b9892(0x1f0)]=_0x14c3c7,_0x24b92f[_0x3b9892(0x201)]=_0x206e26,_0x24b92f;}const _0x31f313={};return _0x31f313[_0x3b9892(0x1eb)]=[],_0x31f313[_0x3b9892(0x1d8)]='',_0x31f313['finalErrorMessage']='',_0x31f313[_0x3b9892(0x201)]=[],_0x31f313;}const _0x22bb45={};return _0x22bb45[_0x3b9892(0x1eb)]=[],_0x22bb45[_0x3b9892(0x1d8)]='',_0x22bb45[_0x3b9892(0x1f0)]='',_0x22bb45[_0x3b9892(0x201)]=[],_0x22bb45;}catch(_0x350f8a){this[_0x3b9892(0x1ac)](_0x33bd3b[_0x3b9892(0x1c3)],_0x350f8a);const _0x5bfe4a={};return _0x5bfe4a['errorCodes']=[],_0x5bfe4a[_0x3b9892(0x1d8)]='',_0x5bfe4a['finalErrorMessage']='',_0x5bfe4a[_0x3b9892(0x201)]=[],_0x5bfe4a;}}static['logSituation'](_0x2abd1e,_0x11cb66){const _0x1e3dc5=a61_0x5371d1;logger[_0x1e3dc5(0x1bc)](_0x2abd1e+':\x20'+_0x11cb66);}static[a61_0x5371d1(0x1bb)](_0x2c46ee){const _0x58cdb2=a61_0x5371d1,_0x5de452={};_0x5de452[_0x58cdb2(0x1b7)]=function(_0x535870,_0x26056a){return _0x535870!=_0x26056a;},_0x5de452[_0x58cdb2(0x1d0)]=function(_0xdd317a,_0x4df11a){return _0xdd317a>_0x4df11a;};const _0xf2d479=_0x5de452,_0xfc7311=[];if(_0xf2d479['ZfHhs'](_0x2c46ee,null)&&_0xf2d479[_0x58cdb2(0x1b7)](_0x2c46ee['errorCodesOccurredInCLI'],null)&&_0xf2d479[_0x58cdb2(0x1d0)](_0x2c46ee[_0x58cdb2(0x201)][_0x58cdb2(0x1cf)],0x0))for(const _0x11c76c of _0x2c46ee['errorCodesOccurredInCLI']){_0xf2d479['ZfHhs'](_0x11c76c['errorCode'],null)&&_0xf2d479[_0x58cdb2(0x1b7)](_0x11c76c[_0x58cdb2(0x1af)],null)&&(_0xfc7311['push'](_0x11c76c[_0x58cdb2(0x1fd)]),this[_0x58cdb2(0x1e7)](_0x11c76c[_0x58cdb2(0x1fd)],_0x11c76c[_0x58cdb2(0x1af)]));}return _0xfc7311;}static['getCachedErrorCodes'](){return this['cachedErrorCodes'];}static['logError'](_0x5cfc2b,_0x493aba){const _0x366817=a61_0x5371d1,_0x382b79={};_0x382b79[_0x366817(0x1fb)]=function(_0x1ba028,_0x399989){return _0x1ba028===_0x399989;},_0x382b79[_0x366817(0x1cd)]='object';const _0xc90044=_0x382b79;if(_0xc90044[_0x366817(0x1fb)](typeof _0x493aba,_0xc90044['OhkaK']))try{logger['error']('[ClientTroubleShootingService]\x20'+_0x5cfc2b+'\x20'+JSON[_0x366817(0x1fe)](_0x493aba));}catch(_0x3d090f){logger[_0x366817(0x1d4)]('[ClientTroubleShootingService]\x20'+_0x5cfc2b+'\x20'+_0x493aba);}else logger[_0x366817(0x1d4)](_0x366817(0x1e2)+_0x5cfc2b+'\x20'+_0x493aba);}static async[a61_0x5371d1(0x1c1)](_0x47e68d){const _0x3c0634=a61_0x5371d1,_0x2db4d1={};_0x2db4d1['vBrkG']=_0x3c0634(0x1ee),_0x2db4d1[_0x3c0634(0x1e9)]=function(_0x4204f6,_0x2be5c1){return _0x4204f6===_0x2be5c1;},_0x2db4d1[_0x3c0634(0x1d5)]='Process\x20Interruption\x20details\x20not\x20found:',_0x2db4d1['Gvjek']=_0x3c0634(0x1e8);const _0x5744f6=_0x2db4d1,_0x484330=await this[_0x3c0634(0x1f9)](_0x5744f6['vBrkG']);if(!_0x484330||_0x5744f6[_0x3c0634(0x1e9)](Object[_0x3c0634(0x1fc)](_0x484330)[_0x3c0634(0x1cf)],0x0)){this[_0x3c0634(0x1ac)](_0x5744f6['sXfLJ'],_0x484330);return;}this[_0x3c0634(0x1e7)](_0x484330[_0x3c0634(0x1fd)],_0x484330[_0x3c0634(0x1af)]['replace'](_0x5744f6[_0x3c0634(0x204)],_0x47e68d));}static async[a61_0x5371d1(0x1c8)](){const _0x5a65d6=a61_0x5371d1,_0x42c042={};_0x42c042[_0x5a65d6(0x1dd)]=_0x5a65d6(0x1b8),_0x42c042['PaONt']=function(_0x5edd12,_0x183919){return _0x5edd12===_0x183919;},_0x42c042['aqCEk']=_0x5a65d6(0x1b5);const _0x1b661c=_0x42c042,_0x420781=await this['getErrorDetails'](_0x1b661c[_0x5a65d6(0x1dd)]);if(!_0x420781||_0x1b661c[_0x5a65d6(0x1b2)](Object['keys'](_0x420781)['length'],0x0)){this[_0x5a65d6(0x1ac)](_0x1b661c[_0x5a65d6(0x1ae)],_0x420781);return;}this[_0x5a65d6(0x1e7)](_0x420781[_0x5a65d6(0x1fd)],_0x420781['errorMessage']);}static async[a61_0x5371d1(0x1d9)](){const _0xa4d9b0=a61_0x5371d1,_0x41610f={};_0x41610f[_0xa4d9b0(0x1ed)]=_0xa4d9b0(0x1b6),_0x41610f[_0xa4d9b0(0x1ef)]=function(_0x22d694,_0x5904de){return _0x22d694===_0x5904de;},_0x41610f[_0xa4d9b0(0x1ba)]=_0xa4d9b0(0x1a4);const _0x35e787=_0x41610f,_0x46a1d0=await this['getErrorDetails'](_0x35e787[_0xa4d9b0(0x1ed)]);if(!_0x46a1d0||_0x35e787[_0xa4d9b0(0x1ef)](Object['keys'](_0x46a1d0)[_0xa4d9b0(0x1cf)],0x0)){this[_0xa4d9b0(0x1ac)](_0x35e787['sMhsG'],_0x46a1d0);return;}this[_0xa4d9b0(0x1e7)](_0x46a1d0[_0xa4d9b0(0x1fd)],_0x46a1d0[_0xa4d9b0(0x1af)]);}static async[a61_0x5371d1(0x1bd)](){const _0x7f0a45=a61_0x5371d1,_0x37526c={};_0x37526c[_0x7f0a45(0x1a7)]='ssl\x20cert\x20issue',_0x37526c[_0x7f0a45(0x1c4)]=function(_0x40b331,_0x2d2a95){return _0x40b331===_0x2d2a95;},_0x37526c[_0x7f0a45(0x1b4)]='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 _0x1049ff=_0x37526c,_0x4b2a16=await this[_0x7f0a45(0x1f9)](_0x1049ff['GzFDe']);if(!_0x4b2a16||_0x1049ff[_0x7f0a45(0x1c4)](Object[_0x7f0a45(0x1fc)](_0x4b2a16)[_0x7f0a45(0x1cf)],0x0)){this[_0x7f0a45(0x1ac)](_0x1049ff[_0x7f0a45(0x1b4)],_0x4b2a16);return;}this['logSituation'](_0x4b2a16[_0x7f0a45(0x1fd)],_0x4b2a16[_0x7f0a45(0x1af)]);}static[a61_0x5371d1(0x1ab)](){const _0x2c4cf8=a61_0x5371d1,_0x581dc7={};_0x581dc7[_0x2c4cf8(0x1b1)]=_0x2c4cf8(0x1f5),_0x581dc7[_0x2c4cf8(0x205)]=function(_0x12978e,_0x50d484){return _0x12978e===_0x50d484;},_0x581dc7['yiQrn']=_0x2c4cf8(0x1c0);const _0x47fc1c=_0x581dc7,_0x1fead9=constants[_0x2c4cf8(0x200)][_0x47fc1c[_0x2c4cf8(0x1b1)]];if(!_0x1fead9||_0x47fc1c[_0x2c4cf8(0x205)](Object[_0x2c4cf8(0x1fc)](_0x1fead9)['length'],0x0)){this[_0x2c4cf8(0x1ac)](_0x47fc1c['yiQrn'],_0x1fead9);return;}this[_0x2c4cf8(0x1cb)][_0x2c4cf8(0x1ad)](_0x1fead9[0x0]),this['logSituation'](_0x1fead9[0x0],_0x1fead9[0x1]);}static async['reportConflictingEnvVarIssue'](_0x8af921){const _0xb6702b=a61_0x5371d1,_0xde2655={};_0xde2655[_0xb6702b(0x1b3)]=_0xb6702b(0x1f6),_0xde2655[_0xb6702b(0x202)]=function(_0x38dc22,_0x33492e){return _0x38dc22===_0x33492e;},_0xde2655[_0xb6702b(0x1d7)]='Conflicting\x20Env\x20Var\x20details\x20not\x20found',_0xde2655[_0xb6702b(0x1be)]='{ENV_VAR}';const _0x514b42=_0xde2655,_0x23021e=await this['getErrorDetails'](_0x514b42[_0xb6702b(0x1b3)]);if(!_0x23021e||_0x514b42['ZXhUn'](Object[_0xb6702b(0x1fc)](_0x23021e)[_0xb6702b(0x1cf)],0x0)){this[_0xb6702b(0x1ac)](_0x514b42[_0xb6702b(0x1d7)],_0x23021e);return;}const _0x1a5c80=_0x23021e[_0xb6702b(0x1af)][_0xb6702b(0x1a8)](_0x514b42[_0xb6702b(0x1be)],_0x8af921);this[_0xb6702b(0x1e7)](_0x23021e[_0xb6702b(0x1fd)],_0x1a5c80);}static async[a61_0x5371d1(0x1c6)](){const _0x425727=a61_0x5371d1,_0x438130={};_0x438130['Rnbod']=function(_0x59a8ff,_0x2e40ad){return _0x59a8ff>_0x2e40ad;},_0x438130[_0x425727(0x1f2)]=_0x425727(0x1ff),_0x438130[_0x425727(0x1b0)]='{CLIENT_TROUBLESHOOTING_DOCUMENTATION}';const _0x31d845=_0x438130,_0x33909a=await this[_0x425727(0x1d1)](),_0x2995be=this[_0x425727(0x1bb)](_0x33909a),_0x2a761d=Array['isArray'](_0x33909a['errorCodes'])?_0x33909a['errorCodes']:[],_0x483208=_0x31d845['Rnbod'](this[_0x425727(0x1cb)][_0x425727(0x1fa)],0x0)?Array['from'](this['errorCodesOccurredWhenCLINotRunning']):[],_0x1ff296=new Set([..._0x2a761d,..._0x2995be,..._0x483208]),_0x5e32d5=Array[_0x425727(0x1d3)](_0x1ff296);if(_0x31d845[_0x425727(0x1b9)](_0x5e32d5[_0x425727(0x1cf)],0x0)){const _0x4f3261=_0x33909a[_0x425727(0x1f0)][_0x425727(0x1a8)](_0x31d845[_0x425727(0x1f2)],_0x5e32d5['join'](',\x20'))[_0x425727(0x1a8)](_0x31d845[_0x425727(0x1b0)],_0x33909a[_0x425727(0x1d8)]);logger['warn'](_0x4f3261),this['cachedErrorCodes']=_0x5e32d5;}}}function a61_0x5113(_0x535265,_0x37f94f){const _0x1f87d2=a61_0x1f87();return a61_0x5113=function(_0x5113ba,_0x12d9e9){_0x5113ba=_0x5113ba-0x1a4;let _0x4eab6c=_0x1f87d2[_0x5113ba];return _0x4eab6c;},a61_0x5113(_0x535265,_0x37f94f);}module['exports']=ClientTroubleShootingService;
1
+ function a61_0x28fb(_0x358d98,_0x74bdf6){const _0x3f19f6=a61_0x3f19();return a61_0x28fb=function(_0x28fba1,_0x1c87e9){_0x28fba1=_0x28fba1-0xc1;let _0x5c9f77=_0x3f19f6[_0x28fba1];return _0x5c9f77;},a61_0x28fb(_0x358d98,_0x74bdf6);}const a61_0x4b561e=a61_0x28fb;(function(_0x5bd7de,_0xe73a50){const _0x423cf8=a61_0x28fb,_0x5a8efe=_0x5bd7de();while(!![]){try{const _0x26fc94=-parseInt(_0x423cf8(0x106))/0x1*(parseInt(_0x423cf8(0xc2))/0x2)+-parseInt(_0x423cf8(0x110))/0x3+parseInt(_0x423cf8(0xeb))/0x4*(parseInt(_0x423cf8(0xec))/0x5)+-parseInt(_0x423cf8(0xe4))/0x6*(-parseInt(_0x423cf8(0xc3))/0x7)+-parseInt(_0x423cf8(0xfa))/0x8*(-parseInt(_0x423cf8(0xf9))/0x9)+-parseInt(_0x423cf8(0xcc))/0xa+-parseInt(_0x423cf8(0x112))/0xb*(-parseInt(_0x423cf8(0xfc))/0xc);if(_0x26fc94===_0xe73a50)break;else _0x5a8efe['push'](_0x5a8efe['shift']());}catch(_0x14b2b2){_0x5a8efe['push'](_0x5a8efe['shift']());}}}(a61_0x3f19,0xd89ae));const logger=require(a61_0x4b561e(0xea))[a61_0x4b561e(0xf4)],BrowserstackCLI=require(a61_0x4b561e(0x103)),GrpcClient=require('../v2/grpcClient'),constants=require(a61_0x4b561e(0x109));class ClientTroubleShootingService{static [a61_0x4b561e(0xd8)]=null;static [a61_0x4b561e(0x121)]=new Set();static async[a61_0x4b561e(0x129)](_0x225027){const _0x1e9749=a61_0x4b561e,_0x4b760b={};_0x4b760b[_0x1e9749(0x11f)]=function(_0x347732,_0x8ede99){return _0x347732!==_0x8ede99;};const _0x5dc4fc=_0x4b760b;try{if(BrowserstackCLI['getInstance']()['isRunning']()){const _0x23322a=await GrpcClient[_0x1e9749(0xf6)]()[_0x1e9749(0x102)](_0x225027);if(_0x5dc4fc['Ujzrc'](_0x23322a,null)&&_0x23322a[_0x1e9749(0x123)]())return{'errorCode':_0x23322a[_0x1e9749(0xe8)](),'errorMessage':_0x23322a[_0x1e9749(0xd4)]()};return{};}return{};}catch(_0x51e578){return this[_0x1e9749(0x108)](_0x1e9749(0xdc)+_0x225027+':',_0x51e578),{};}}static async[a61_0x4b561e(0x11d)](){const _0x1cc202=a61_0x4b561e,_0x24126c={};_0x24126c['aICta']=function(_0x1050a6,_0x5db384){return _0x1050a6!==_0x5db384;},_0x24126c[_0x1cc202(0x118)]=_0x1cc202(0xcf),_0x24126c[_0x1cc202(0xed)]=_0x1cc202(0x12a);const _0x1b0741=_0x24126c;try{if(BrowserstackCLI[_0x1cc202(0xf6)]()[_0x1cc202(0x114)]()){const _0x2d70a4=await GrpcClient[_0x1cc202(0xf6)]()[_0x1cc202(0xef)]();if(_0x1b0741[_0x1cc202(0xe2)](_0x2d70a4,null)&&_0x2d70a4[_0x1cc202(0x123)]()){const _0xb1369a=Buffer[_0x1cc202(0xf7)](_0x2d70a4[_0x1cc202(0x104)](),_0x1b0741[_0x1cc202(0x118)])[_0x1cc202(0xfd)](),_0x238edc=_0xb1369a?JSON[_0x1cc202(0xc4)](_0xb1369a):[],_0x5afe32=_0x2d70a4['getDocumentationLink'](),_0x1ecde4=_0x2d70a4[_0x1cc202(0xc6)](),_0x578285=Buffer['from'](_0x2d70a4[_0x1cc202(0xfe)](),_0x1b0741[_0x1cc202(0x118)])[_0x1cc202(0xfd)](),_0xf90ec9=_0x578285?JSON['parse'](_0x578285):[],_0x5656ad={};return _0x5656ad['errorCodes']=_0x238edc,_0x5656ad['documentationLink']=_0x5afe32,_0x5656ad[_0x1cc202(0x10c)]=_0x1ecde4,_0x5656ad[_0x1cc202(0xd3)]=_0xf90ec9,_0x5656ad;}const _0x541da0={};return _0x541da0['errorCodes']=[],_0x541da0[_0x1cc202(0x116)]='',_0x541da0[_0x1cc202(0x10c)]='',_0x541da0[_0x1cc202(0xd3)]=[],_0x541da0;}const _0x227d9a={};return _0x227d9a['errorCodes']=[],_0x227d9a[_0x1cc202(0x116)]='',_0x227d9a[_0x1cc202(0x10c)]='',_0x227d9a['errorCodesOccurredInCLI']=[],_0x227d9a;}catch(_0x1498aa){this[_0x1cc202(0x108)](_0x1b0741[_0x1cc202(0xed)],_0x1498aa);const _0x271be1={};return _0x271be1['errorCodes']=[],_0x271be1[_0x1cc202(0x116)]='',_0x271be1[_0x1cc202(0x10c)]='',_0x271be1[_0x1cc202(0xd3)]=[],_0x271be1;}}static[a61_0x4b561e(0xc9)](_0x4f53d9,_0xaa08a4){const _0x156d38=a61_0x4b561e;logger[_0x156d38(0xd7)](_0x4f53d9+':\x20'+_0xaa08a4);}static[a61_0x4b561e(0x11c)](_0x5245f3){const _0x259393=a61_0x4b561e,_0x5e2245={};_0x5e2245[_0x259393(0xe9)]=function(_0x483638,_0xe75e70){return _0x483638!=_0xe75e70;},_0x5e2245['SYLLP']=function(_0x21da27,_0x6f061d){return _0x21da27!=_0x6f061d;},_0x5e2245[_0x259393(0x10d)]=function(_0x1df6b3,_0x229b4f){return _0x1df6b3>_0x229b4f;},_0x5e2245['hKJVC']=function(_0x575a6c,_0x573ac0){return _0x575a6c!=_0x573ac0;};const _0x44b9ec=_0x5e2245,_0x419ab3=[];if(_0x44b9ec['YBqpf'](_0x5245f3,null)&&_0x44b9ec[_0x259393(0xe7)](_0x5245f3[_0x259393(0xd3)],null)&&_0x44b9ec[_0x259393(0x10d)](_0x5245f3[_0x259393(0xd3)][_0x259393(0x12b)],0x0))for(const _0x1d0437 of _0x5245f3[_0x259393(0xd3)]){_0x44b9ec[_0x259393(0x10e)](_0x1d0437[_0x259393(0xfb)],null)&&_0x44b9ec[_0x259393(0xe7)](_0x1d0437[_0x259393(0xc8)],null)&&(_0x419ab3[_0x259393(0xd1)](_0x1d0437[_0x259393(0xfb)]),this[_0x259393(0xc9)](_0x1d0437['errorCode'],_0x1d0437[_0x259393(0xc8)]));}return _0x419ab3;}static['getCachedErrorCodes'](){const _0x4d6e91=a61_0x4b561e;return this[_0x4d6e91(0xd8)];}static[a61_0x4b561e(0x108)](_0x1fd910,_0x401825){const _0x3a00b4=a61_0x4b561e,_0x5e2ebb={};_0x5e2ebb[_0x3a00b4(0x125)]=function(_0x20320a,_0x21b0fa){return _0x20320a===_0x21b0fa;},_0x5e2ebb[_0x3a00b4(0xce)]=_0x3a00b4(0xde);const _0x4d4b37=_0x5e2ebb;if(_0x4d4b37[_0x3a00b4(0x125)](typeof _0x401825,_0x4d4b37['AxTWo']))try{logger[_0x3a00b4(0x122)]('[ClientTroubleShootingService]\x20'+_0x1fd910+'\x20'+JSON[_0x3a00b4(0x11a)](_0x401825));}catch(_0x57a28d){logger[_0x3a00b4(0x122)](_0x3a00b4(0xca)+_0x1fd910+'\x20'+_0x401825);}else logger[_0x3a00b4(0x122)](_0x3a00b4(0xca)+_0x1fd910+'\x20'+_0x401825);}static async[a61_0x4b561e(0xe0)](_0x185061){const _0x49b6b4=a61_0x4b561e,_0x330c69={};_0x330c69[_0x49b6b4(0x107)]=_0x49b6b4(0x11e),_0x330c69[_0x49b6b4(0xe5)]=function(_0x41a005,_0xd9d5f7){return _0x41a005===_0xd9d5f7;},_0x330c69[_0x49b6b4(0x113)]=_0x49b6b4(0xcd),_0x330c69[_0x49b6b4(0xd5)]=_0x49b6b4(0xe3);const _0x2bf5e7=_0x330c69,_0x4ed6f6=await this[_0x49b6b4(0x129)](_0x2bf5e7[_0x49b6b4(0x107)]);if(!_0x4ed6f6||_0x2bf5e7['udZHK'](Object[_0x49b6b4(0x100)](_0x4ed6f6)[_0x49b6b4(0x12b)],0x0)){this[_0x49b6b4(0x108)](_0x2bf5e7[_0x49b6b4(0x113)],_0x4ed6f6);return;}this[_0x49b6b4(0xc9)](_0x4ed6f6[_0x49b6b4(0xfb)],_0x4ed6f6[_0x49b6b4(0xc8)]['replace'](_0x2bf5e7[_0x49b6b4(0xd5)],_0x185061));}static async[a61_0x4b561e(0xd6)](){const _0x134ca3=a61_0x4b561e,_0x2080d6={};_0x2080d6['tQOiU']=_0x134ca3(0x105),_0x2080d6[_0x134ca3(0x117)]=function(_0x74573e,_0x5840dc){return _0x74573e===_0x5840dc;},_0x2080d6[_0x134ca3(0xda)]='Session\x20Linking\x20Issue\x20details\x20not\x20found';const _0x31ea8a=_0x2080d6,_0x25a14f=await this['getErrorDetails'](_0x31ea8a[_0x134ca3(0x10f)]);if(!_0x25a14f||_0x31ea8a[_0x134ca3(0x117)](Object[_0x134ca3(0x100)](_0x25a14f)[_0x134ca3(0x12b)],0x0)){this[_0x134ca3(0x108)](_0x31ea8a[_0x134ca3(0xda)],_0x25a14f);return;}this[_0x134ca3(0xc9)](_0x25a14f[_0x134ca3(0xfb)],_0x25a14f['errorMessage']);}static async['reportConnectivityIssue'](){const _0x491b90=a61_0x4b561e,_0x4d39b4={};_0x4d39b4[_0x491b90(0xd0)]=_0x491b90(0xe6),_0x4d39b4[_0x491b90(0xc1)]=function(_0x33ee36,_0x312bc8){return _0x33ee36===_0x312bc8;},_0x4d39b4[_0x491b90(0xc7)]=_0x491b90(0x111);const _0x293835=_0x4d39b4,_0x104e96=await this[_0x491b90(0x129)](_0x293835[_0x491b90(0xd0)]);if(!_0x104e96||_0x293835['euons'](Object[_0x491b90(0x100)](_0x104e96)['length'],0x0)){this[_0x491b90(0x108)](_0x293835[_0x491b90(0xc7)],_0x104e96);return;}this['logSituation'](_0x104e96['errorCode'],_0x104e96[_0x491b90(0xc8)]);}static async[a61_0x4b561e(0x120)](){const _0x2c70ec=a61_0x4b561e,_0xd4ed8f={};_0xd4ed8f[_0x2c70ec(0x10b)]='ssl\x20cert\x20issue',_0xd4ed8f[_0x2c70ec(0xd2)]=function(_0x32e33e,_0x54893f){return _0x32e33e===_0x54893f;},_0xd4ed8f[_0x2c70ec(0x126)]=_0x2c70ec(0xe1);const _0x5dce1f=_0xd4ed8f,_0x44d3fe=await this[_0x2c70ec(0x129)](_0x5dce1f[_0x2c70ec(0x10b)]);if(!_0x44d3fe||_0x5dce1f[_0x2c70ec(0xd2)](Object[_0x2c70ec(0x100)](_0x44d3fe)[_0x2c70ec(0x12b)],0x0)){this[_0x2c70ec(0x108)](_0x5dce1f[_0x2c70ec(0x126)],_0x44d3fe);return;}this[_0x2c70ec(0xc9)](_0x44d3fe[_0x2c70ec(0xfb)],_0x44d3fe[_0x2c70ec(0xc8)]);}static[a61_0x4b561e(0x10a)](){const _0x4e7869=a61_0x4b561e,_0xb1b373={};_0xb1b373[_0x4e7869(0xf3)]='.browserstack\x20folder\x20not\x20accessible',_0xb1b373[_0x4e7869(0xc5)]=function(_0x3062b3,_0x9230ad){return _0x3062b3===_0x9230ad;},_0xb1b373[_0x4e7869(0xdb)]=_0x4e7869(0xd9);const _0x418fbd=_0xb1b373,_0x234f6a=constants[_0x4e7869(0x127)][_0x418fbd[_0x4e7869(0xf3)]];if(!_0x234f6a||_0x418fbd[_0x4e7869(0xc5)](Object[_0x4e7869(0x100)](_0x234f6a)[_0x4e7869(0x12b)],0x0)){this[_0x4e7869(0x108)](_0x418fbd[_0x4e7869(0xdb)],_0x234f6a);return;}this[_0x4e7869(0x121)][_0x4e7869(0xee)](_0x234f6a[0x0]),this[_0x4e7869(0xc9)](_0x234f6a[0x0],_0x234f6a[0x1]);}static async['reportConflictingEnvVarIssue'](_0x62ee22){const _0x1ca05d=a61_0x4b561e,_0x81897a={};_0x81897a['jEHlG']=_0x1ca05d(0xf5),_0x81897a[_0x1ca05d(0x11b)]=function(_0x4c5daa,_0x6090b2){return _0x4c5daa===_0x6090b2;},_0x81897a['cpqIU']=_0x1ca05d(0x101),_0x81897a['lMDAj']=_0x1ca05d(0xdf);const _0x337da6=_0x81897a,_0x1c31f7=await this[_0x1ca05d(0x129)](_0x337da6[_0x1ca05d(0xf0)]);if(!_0x1c31f7||_0x337da6[_0x1ca05d(0x11b)](Object[_0x1ca05d(0x100)](_0x1c31f7)[_0x1ca05d(0x12b)],0x0)){this[_0x1ca05d(0x108)](_0x337da6[_0x1ca05d(0x128)],_0x1c31f7);return;}const _0x2b3527=_0x1c31f7['errorMessage'][_0x1ca05d(0xf1)](_0x337da6['lMDAj'],_0x62ee22);this[_0x1ca05d(0xc9)](_0x1c31f7[_0x1ca05d(0xfb)],_0x2b3527);}static async[a61_0x4b561e(0x124)](){const _0x3d61a3=a61_0x4b561e,_0x2fcf54={};_0x2fcf54[_0x3d61a3(0x119)]=function(_0x5c04dd,_0x14aab7){return _0x5c04dd>_0x14aab7;},_0x2fcf54[_0x3d61a3(0xf2)]='{ERROR_CODES}',_0x2fcf54[_0x3d61a3(0xf8)]=_0x3d61a3(0xff);const _0x11afd9=_0x2fcf54,_0xff8e77=await this[_0x3d61a3(0x11d)](),_0x1a135a=this[_0x3d61a3(0x11c)](_0xff8e77),_0x37db75=Array['isArray'](_0xff8e77[_0x3d61a3(0x115)])?_0xff8e77[_0x3d61a3(0x115)]:[],_0x1c4faa=_0x11afd9['veIJc'](this[_0x3d61a3(0x121)][_0x3d61a3(0xdd)],0x0)?Array['from'](this[_0x3d61a3(0x121)]):[],_0x4d7922=new Set([..._0x37db75,..._0x1a135a,..._0x1c4faa]),_0x4332d9=Array['from'](_0x4d7922);if(_0x11afd9[_0x3d61a3(0x119)](_0x4332d9[_0x3d61a3(0x12b)],0x0)){const _0x1579e5=_0xff8e77[_0x3d61a3(0x10c)]['replace'](_0x11afd9['ynLHa'],_0x4332d9[_0x3d61a3(0xcb)](',\x20'))[_0x3d61a3(0xf1)](_0x11afd9[_0x3d61a3(0xf8)],_0xff8e77['documentationLink']);logger['warn'](_0x1579e5),this['cachedErrorCodes']=_0x4332d9;}}}function a61_0x3f19(){const _0x5bb47e=['from','snHEq','15788763bniMlk','8rnIaWI','errorCode','731916jInLwd','toString','getErrorCodesOccurredInCli','{CLIENT_TROUBLESHOOTING_DOCUMENTATION}','keys','Conflicting\x20Env\x20Var\x20details\x20not\x20found','reportClientTroubleshootingError','../v2/browserstackCLI','getErrorCodes','Session\x20Linking\x20Issue','8kpVdcr','nwwUp','logError','./constants','reportDotBrowserStackFolderNotAccessibleIssue','oRGwQ','finalErrorMessage','yWEKM','hKJVC','tQOiU','803529TnCwgs','Connectivity\x20Issue\x20details\x20not\x20found','77DVBCBC','UyqEI','isRunning','errorCodes','documentationLink','UULui','krATn','veIJc','stringify','DOLKi','checkForErrorsOccuredInCLI','getAggregatedErrorCodes','Process\x20Interruption','Ujzrc','reportSSLCertIssue','errorCodesOccurredWhenCLINotRunning','error','getSuccess','reportFinalDetectionState','LZgAg','pRQQf','CLIENT_TROUBLESHOOTING_HASH','cpqIU','getErrorDetails','Error\x20in\x20getting\x20aggregated\x20error\x20codes:','length','euons','364942GjFZXx','7yAVvQQ','parse','xVxGv','getFinalErrorMessage','CLmLX','errorMessage','logSituation','[ClientTroubleShootingService]\x20','join','4239910HpeMEi','Process\x20Interruption\x20details\x20not\x20found:','AxTWo','base64','BbCyS','push','tvAPc','errorCodesOccurredInCLI','getErrorMessage','fftcX','reportSessionLinkingIssue','warn','cachedErrorCodes','.browserstack\x20Folder\x20Not\x20Accessible\x20details\x20not\x20found','CUCEW','wRYTI','Error\x20in\x20getting\x20error\x20details\x20for\x20','size','object','{ENV_VAR}','reportProcessInterruptionSituation','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.','aICta','{SIGNAL}','2800554yikvMh','udZHK','browserstack\x20cloud\x20not\x20reachable','SYLLP','getErrorCode','YBqpf','../../helpers/logger','1563196rmtzcE','5sQanXj','JvnBx','add','getAggregatedClientTroubleshootingErrors','jEHlG','replace','ynLHa','TzpsT','winstonLogger','conflicting\x20env\x20var\x20detected','getInstance'];a61_0x3f19=function(){return _0x5bb47e;};return a61_0x3f19();}module['exports']=ClientTroubleShootingService;