browserstack-node-sdk 1.62.0 → 1.63.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 (220) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
  56. package/src/bin/jasmine/command.js +1 -1
  57. package/src/bin/jasmine/test.setup.js +1 -1
  58. package/src/bin/jasmine/testRunMap.js +1 -1
  59. package/src/bin/jest/command.js +1 -1
  60. package/src/bin/jest/customImplements/customCircus.js +1 -1
  61. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  62. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  63. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  64. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  65. package/src/bin/jest/jest.setup.js +1 -1
  66. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  67. package/src/bin/jest/test-observability/helper.js +1 -1
  68. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  69. package/src/bin/jest/test-observability/test-details.js +1 -1
  70. package/src/bin/jest/test.setup.js +1 -1
  71. package/src/bin/jest/test_before.setup.js +1 -1
  72. package/src/bin/launcher/launcher.js +1 -1
  73. package/src/bin/load/index.js +1 -1
  74. package/src/bin/load/load/index.js +193 -12
  75. package/src/bin/load/load/loadErrors.js +248 -0
  76. package/src/bin/load/loadErrors.js +1 -0
  77. package/src/bin/load/loadUtils.js +1 -1
  78. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  79. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  80. package/src/bin/mocha/command.js +1 -1
  81. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  82. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  83. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  84. package/src/bin/mocha/test.setup.js +1 -1
  85. package/src/bin/newman/command.js +1 -1
  86. package/src/bin/newman/helper.js +1 -1
  87. package/src/bin/newman/reporter/index.js +1 -1
  88. package/src/bin/newman/scriptRunner.js +1 -1
  89. package/src/bin/nightwatch/command.js +1 -1
  90. package/src/bin/playwright/accessibility-helper.js +1 -1
  91. package/src/bin/playwright/command.js +1 -1
  92. package/src/bin/playwright/globalSetup.js +1 -1
  93. package/src/bin/playwright/mock-process.js +1 -1
  94. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  95. package/src/bin/playwright/patches.js +1 -1
  96. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  97. package/src/bin/playwright/reporter/reporter.js +1 -1
  98. package/src/bin/playwright/reporter/test-details.js +1 -1
  99. package/src/bin/playwright/sessionDetails.js +1 -1
  100. package/src/bin/puppeteer/patches.js +1 -1
  101. package/src/bin/puppeteer/sessionDetails.js +1 -1
  102. package/src/bin/puppeteer/test.setup.js +1 -1
  103. package/src/bin/runner.js +1 -1
  104. package/src/bin/setup.js +1 -1
  105. package/src/bin/test-runner/index.js +1 -1
  106. package/src/bin/test-runner/runTest.js +1 -1
  107. package/src/bin/test-runner/testWorker.js +1 -1
  108. package/src/bin/testcafe/a11y-runner.js +1 -1
  109. package/src/bin/testcafe/command.js +1 -1
  110. package/src/bin/testcafe/reporter/index.js +1 -1
  111. package/src/bin/testcafe/reporter/tcUtils.js +1 -1
  112. package/src/bin/testcafe/session-registry.js +1 -1
  113. package/src/bin/testcafe/stdout-interceptor.js +1 -1
  114. package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
  115. package/src/bin/testcafe/w3c-driver.js +1 -1
  116. package/src/bin/utils/apiUtilityMethods.js +1 -1
  117. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  118. package/src/bin/utils/constants.js +1 -1
  119. package/src/bin/utils/log4jsAppender.js +1 -1
  120. package/src/bin/utils/logPatcher.js +1 -1
  121. package/src/bin/utils/logReportingAPI.js +1 -1
  122. package/src/bin/utils/playwright-patcher.js +1 -1
  123. package/src/bin/utils/puppeteer-patcher.js +1 -1
  124. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  125. package/src/bin/utils/sharedUtils.js +1 -1
  126. package/src/bin/v2/TestInfo.js +1 -1
  127. package/src/bin/v2/browserstackCLI.js +1 -1
  128. package/src/bin/v2/cliUtils.js +1 -1
  129. package/src/bin/v2/customTagManager.js +1 -1
  130. package/src/bin/v2/eventDispatcher.js +1 -1
  131. package/src/bin/v2/framework/automationFramework.js +1 -1
  132. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  133. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  134. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  135. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  136. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  137. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  138. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  139. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  140. package/src/bin/v2/framework/testFramework.js +1 -1
  141. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  142. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  143. package/src/bin/v2/grpcClient.js +1 -1
  144. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  145. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  146. package/src/bin/v2/instances/trackedContext.js +1 -1
  147. package/src/bin/v2/instances/trackedInstance.js +1 -1
  148. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  149. package/src/bin/v2/modules/baseModule.js +1 -1
  150. package/src/bin/v2/modules/loadTestModule.js +1 -1
  151. package/src/bin/v2/modules/observabilityModule.js +1 -1
  152. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  153. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  154. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  155. package/src/bin/v2/modules/testhubModule.js +1 -1
  156. package/src/bin/v2/sdkErrorHandler.js +1 -0
  157. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  158. package/src/bin/v2/state/hookState.js +1 -1
  159. package/src/bin/v2/state/testFrameworkState.js +1 -1
  160. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  161. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  162. package/src/bin/v2/utils/jest-utils.js +1 -1
  163. package/src/bin/vanilla-js/command.js +1 -1
  164. package/src/browserStackSdk.js +1 -1
  165. package/src/helpers/BrowserStackSetup.js +1 -1
  166. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  167. package/src/helpers/accessibility-automation/constants.js +1 -1
  168. package/src/helpers/accessibility-automation/helper.js +1 -1
  169. package/src/helpers/accessibility-automation/scripts.js +1 -1
  170. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  171. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  172. package/src/helpers/ats/constants.js +1 -1
  173. package/src/helpers/ats/helper.js +1 -1
  174. package/src/helpers/caCertHelper.js +1 -1
  175. package/src/helpers/capsMapping.js +1 -1
  176. package/src/helpers/central-scanner/constants.js +1 -1
  177. package/src/helpers/central-scanner/helpers.js +1 -1
  178. package/src/helpers/classLogger.js +1 -1
  179. package/src/helpers/driverInitErrorReporter.js +1 -1
  180. package/src/helpers/globals.js +1 -1
  181. package/src/helpers/helper.js +1 -1
  182. package/src/helpers/logger.js +1 -1
  183. package/src/helpers/metadata.js +1 -1
  184. package/src/helpers/patchHelper.js +1 -1
  185. package/src/helpers/patchHelpers.js +1 -1
  186. package/src/helpers/percy/Percy.js +1 -1
  187. package/src/helpers/percy/PercyBinary.js +1 -1
  188. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  189. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  190. package/src/helpers/percy/PercySDK.js +1 -1
  191. package/src/helpers/percy/index.js +1 -1
  192. package/src/helpers/percy/utils.js +1 -1
  193. package/src/helpers/performance/constants.js +1 -1
  194. package/src/helpers/performance/performance-tester.js +1 -1
  195. package/src/helpers/playwright-helper.js +1 -1
  196. package/src/helpers/processHelper.js +1 -1
  197. package/src/helpers/puppeteer-helper.js +1 -1
  198. package/src/helpers/request-spy.js +1 -1
  199. package/src/helpers/setKeepAlive.js +1 -1
  200. package/src/helpers/stackFrameUtils.js +1 -1
  201. package/src/helpers/test-observability/constants.js +1 -1
  202. package/src/helpers/test-observability/error-handler.js +1 -1
  203. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  204. package/src/helpers/test-observability/sessionHandler.js +1 -1
  205. package/src/helpers/test-observability/utils.js +1 -1
  206. package/src/helpers/test-orchestration/constants.js +1 -1
  207. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  208. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  209. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  210. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  211. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  212. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  213. package/src/helpers/testhub/constants.js +1 -1
  214. package/src/helpers/testhub/testhubHandler.js +1 -1
  215. package/src/helpers/testhub/utils.js +1 -1
  216. package/src/helpers/timeoutPromise.js +1 -1
  217. package/src/helpers/utilities.js +1 -1
  218. package/src/helpers/w3cMapping.js +1 -1
  219. package/src/hubAllocationMethods.js +1 -1
  220. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a54_0x36d2bf=a54_0x188e;function a54_0x2321(){const _0x17ca35=['_platformDetails.json','udTaU','setIntegrations','getAccessibilityPlatformValidation','../../../helpers/helper','filePath','uLGZV','sNiOA','getIntegrations','678080Hmojtw','KPAPN','path','Error\x20handling\x20trace\x20file\x20paths:\x20','151807hwGmIp','.json','getStoreDirName','bSYie','parse','2348577LwNaUr','setAccessibilityPlatformValidation','recursive','join','rmSync','995928xAeBxo','string','PmpyV','_test','some','getTestIdFromTestInfo','values','getTestUUID','wSTHk','BS_TESTOPS_BUILD_HASHED_ID','appendFileSync','stringify','oeKZK','message','yvChG','tests','getDirPath','existsSync','gYsnK','setTestDetails','pid','endsWith','Error\x20writing\x20trace\x20file:\x20','../../../helpers/logger','xRnRx','forEach','homedir','env','shutdown','error','Failed\x20to\x20parse\x20integrations\x20file\x20for\x20test\x20','_traceZipPaths.json','Failed\x20to\x20write\x20integrations\x20file\x20for\x20test\x20','.browserstack','55075WCeJjP','getFilePath','getStoreDirPath','.txt','readdirSync','exports','debug','force','HUJcb','mkdirSync','getTestDetails','28aEuukI','8847432EZExAO','retry','GtxyH','MHrJO','format','IcDoI','285723nQAclO','hlMtM','trBps','uuid','vEIff','readFileSync','traceZipPaths','SDXTp','setup','DtCfH','writeFileSync','toString','UzBmt','push','OdCjN','_integrations.json','utf8','util','getTraceZipDir'];a54_0x2321=function(){return _0x17ca35;};return a54_0x2321();}(function(_0x203d78,_0x2f5c50){const _0x414c86=a54_0x188e,_0x39fdbc=_0x203d78();while(!![]){try{const _0x28b85a=parseInt(_0x414c86(0xd2))/0x1+-parseInt(_0x414c86(0xce))/0x2+-parseInt(_0x414c86(0x110))/0x3+parseInt(_0x414c86(0x109))/0x4*(-parseInt(_0x414c86(0xfe))/0x5)+-parseInt(_0x414c86(0xdc))/0x6+-parseInt(_0x414c86(0xd7))/0x7+parseInt(_0x414c86(0x10a))/0x8;if(_0x28b85a===_0x2f5c50)break;else _0x39fdbc['push'](_0x39fdbc['shift']());}catch(_0x11330a){_0x39fdbc['push'](_0x39fdbc['shift']());}}}(a54_0x2321,0x3bc73));const fs=require('fs'),path=require(a54_0x36d2bf(0xd0)),{v4:uuidv4}=require(a54_0x36d2bf(0x113)),{TEMP_STORE_DIR_NAME}=require('../../../helpers/test-observability/constants'),{nestedKeyValue}=require(a54_0x36d2bf(0xc9)),logger=require('../../../helpers/logger')['winstonLogger'],{getLogDir}=require(a54_0x36d2bf(0xf3)),util=require(a54_0x36d2bf(0x121)),helper=require('../../../helpers/helper');function a54_0x188e(_0x484587,_0x56c6d5){const _0x2321df=a54_0x2321();return a54_0x188e=function(_0x188e42,_0x40998f){_0x188e42=_0x188e42-0xc5;let _0x1f18ab=_0x2321df[_0x188e42];return _0x1f18ab;},a54_0x188e(_0x484587,_0x56c6d5);}class TestDetails{static [a54_0x36d2bf(0xeb)]={};static[a54_0x36d2bf(0x118)](){const _0x47b2b9=a54_0x36d2bf;this['shutdown']();const _0x209c0c={};_0x209c0c['recursive']=!![],fs[_0x47b2b9(0x107)](this['getDirPath'](),_0x209c0c);const _0x56836f={};_0x56836f[_0x47b2b9(0xd9)]=!![],fs['mkdirSync'](this[_0x47b2b9(0x122)](),_0x56836f);}static[a54_0x36d2bf(0xd4)](){const _0x4244eb=a54_0x36d2bf,_0x209054={};_0x209054['bSYie']=function(_0x2dac45,_0x250767){return _0x2dac45+_0x250767;};const _0x2a9713=_0x209054;return _0x2a9713['bSYie'](_0x2a9713[_0x4244eb(0xd5)](TEMP_STORE_DIR_NAME,'-'),process['env']['BS_TESTOPS_BUILD_HASHED_ID']);}static['getStoreDirPath'](){const _0x376b16=a54_0x36d2bf,_0x25c3ad={};_0x25c3ad[_0x376b16(0x11e)]=function(_0x208f5c,_0x3e0a54){return _0x208f5c+_0x3e0a54;},_0x25c3ad[_0x376b16(0x111)]='default';const _0x52eca2=_0x25c3ad;return path[_0x376b16(0xda)](_0x52eca2[_0x376b16(0x11e)](_0x52eca2['OdCjN'](TEMP_STORE_DIR_NAME,'-'),process[_0x376b16(0xf7)][_0x376b16(0xe5)]||_0x52eca2[_0x376b16(0x111)]));}static[a54_0x36d2bf(0x122)](){const _0x460aaa=a54_0x36d2bf,_0x18994e={};_0x18994e['UzBmt']=_0x460aaa(0x116);const _0x432c5f=_0x18994e;return path[_0x460aaa(0xda)](this[_0x460aaa(0x100)](),_0x432c5f[_0x460aaa(0x11c)]);}static[a54_0x36d2bf(0xec)](){const _0xcd25ac=a54_0x36d2bf;return TestDetails[_0xcd25ac(0xd4)]();}static[a54_0x36d2bf(0xff)](_0x236b76){const _0x3805b2=a54_0x36d2bf,_0x4cade8={};_0x4cade8[_0x3805b2(0x10d)]=function(_0x3bcce9,_0x57267a){return _0x3bcce9+_0x57267a;},_0x4cade8[_0x3805b2(0xcc)]=_0x3805b2(0xd3);const _0x30731d=_0x4cade8;return path[_0x3805b2(0xda)](this[_0x3805b2(0xec)](),_0x30731d[_0x3805b2(0x10d)](_0x236b76,_0x30731d[_0x3805b2(0xcc)]));}static['getTestRunIdFromTestInfo'](_0x343b80){const _0x4989f3=a54_0x36d2bf,_0x3ce727={};_0x3ce727[_0x4989f3(0xee)]=function(_0x373454,_0x8ef049){return _0x373454+_0x8ef049;},_0x3ce727['xRnRx']=function(_0x38c4f8,_0x3a5d91){return _0x38c4f8+_0x3a5d91;};const _0x420bef=_0x3ce727;return _0x420bef['gYsnK'](_0x420bef[_0x4989f3(0xf4)](this[_0x4989f3(0xe1)](_0x343b80),'-'),_0x343b80[_0x4989f3(0x10b)]);}static['getProjectIdFromTestInfo'](_0x17ce9){const _0x4eca3b=a54_0x36d2bf,_0x60df94={'PmpyV':function(_0x5a8e60,_0x58dce5,_0x304820){return _0x5a8e60(_0x58dce5,_0x304820);},'OstCQ':'_test','SDXTp':'_projectId','oeKZK':function(_0x1e4c63,_0x18b291,_0x4af5a6){return _0x1e4c63(_0x18b291,_0x4af5a6);},'udTaU':'project','qqgPE':'__projectId'};return _0x60df94[_0x4eca3b(0xde)](nestedKeyValue,_0x17ce9,[_0x60df94['OstCQ'],_0x60df94[_0x4eca3b(0x117)]])||_0x60df94[_0x4eca3b(0xe8)](nestedKeyValue,_0x17ce9,[_0x60df94[_0x4eca3b(0xc6)],_0x60df94['qqgPE']]);}static[a54_0x36d2bf(0xe1)](_0x164e35){const _0x21c736=a54_0x36d2bf,_0x56e833={'DtCfH':function(_0xb0adf,_0x450e0a,_0x1b3d01){return _0xb0adf(_0x450e0a,_0x1b3d01);},'KPAPN':_0x21c736(0xdf)};return _0x56e833[_0x21c736(0x119)](nestedKeyValue,_0x164e35,[_0x56e833[_0x21c736(0xcf)],'id'])||_0x164e35['testId'];}static[a54_0x36d2bf(0xe3)](_0x25a77e){const _0x2bd9da=a54_0x36d2bf,_0x3326bb={'yvChG':function(_0x53eaea,_0x3b7bea){return _0x53eaea===_0x3b7bea;},'uLGZV':_0x2bd9da(0xdd),'IcDoI':function(_0x1f15cd){return _0x1f15cd();}};if(this['tests'][_0x25a77e]&&_0x3326bb[_0x2bd9da(0xea)](typeof this['tests'][_0x25a77e][_0x2bd9da(0x113)],_0x3326bb[_0x2bd9da(0xcb)]))return this['tests'][_0x25a77e][_0x2bd9da(0x113)];const _0x5769fe=this[_0x2bd9da(0xff)](_0x25a77e);if(_0x5769fe&&fs[_0x2bd9da(0xed)](_0x5769fe)){const _0x39e61b=JSON[_0x2bd9da(0xd6)](fs[_0x2bd9da(0x115)](_0x5769fe)[_0x2bd9da(0x11b)]());return this[_0x2bd9da(0xeb)][_0x25a77e]=_0x39e61b,this[_0x2bd9da(0xeb)][_0x25a77e][_0x2bd9da(0x113)];}return this[_0x2bd9da(0xeb)][_0x25a77e]={'uuid':_0x3326bb[_0x2bd9da(0x10f)](uuidv4)},fs[_0x2bd9da(0x11a)](_0x5769fe,JSON['stringify'](this[_0x2bd9da(0xeb)][_0x25a77e])),this[_0x2bd9da(0xeb)][_0x25a77e][_0x2bd9da(0x113)];}static[a54_0x36d2bf(0xc8)](_0x1213bb){const _0x593507=a54_0x36d2bf,_0x2cff25=path[_0x593507(0xda)](this[_0x593507(0xec)](),_0x1213bb+_0x593507(0xc5));if(_0x2cff25&&fs[_0x593507(0xed)](_0x2cff25))return fs[_0x593507(0x115)](_0x2cff25)[_0x593507(0x11b)]();}static[a54_0x36d2bf(0xd8)](_0x71f6f6,_0x34b942){const _0x332c18=a54_0x36d2bf,_0x2b994c=path[_0x332c18(0xda)](this[_0x332c18(0xec)](),_0x34b942+_0x332c18(0xc5));fs['writeFileSync'](_0x2b994c,_0x71f6f6[_0x332c18(0x11b)]());}static[a54_0x36d2bf(0xcd)](_0x40a7b6){const _0x40a338=a54_0x36d2bf,_0x33ab0b=path['join'](this[_0x40a338(0xec)](),_0x40a7b6+_0x40a338(0x11f));if(_0x33ab0b&&fs[_0x40a338(0xed)](_0x33ab0b))try{return JSON[_0x40a338(0xd6)](fs[_0x40a338(0x115)](_0x33ab0b)[_0x40a338(0x11b)]());}catch(_0x36e5bd){return logger[_0x40a338(0x104)](_0x40a338(0xfa)+_0x40a7b6+':\x20'+(_0x36e5bd&&_0x36e5bd[_0x40a338(0xe9)])),null;}return null;}static[a54_0x36d2bf(0xc7)](_0x344e6b,_0x579713){const _0x16b894=a54_0x36d2bf,_0x31270e={};_0x31270e['YKPfO']=function(_0x2d62ef,_0x57223a){return _0x2d62ef||_0x57223a;};const _0x219fd1=_0x31270e;if(_0x219fd1['YKPfO'](!_0x344e6b,!_0x579713))return;try{const _0x43f023=this[_0x16b894(0xec)](),_0x33e1e5={};_0x33e1e5[_0x16b894(0xd9)]=!![],fs['mkdirSync'](_0x43f023,_0x33e1e5);const _0x543619=path[_0x16b894(0xda)](_0x43f023,_0x344e6b+_0x16b894(0x11f));fs[_0x16b894(0x11a)](_0x543619,JSON[_0x16b894(0xe7)](_0x579713));}catch(_0xcf16fa){logger[_0x16b894(0x104)](_0x16b894(0xfc)+_0x344e6b+':\x20'+(_0xcf16fa&&_0xcf16fa[_0x16b894(0xe9)]));}}static[a54_0x36d2bf(0xf8)](){const _0x6436e=a54_0x36d2bf,_0x3290c3={};_0x3290c3[_0x6436e(0xd9)]=!![],_0x3290c3[_0x6436e(0x105)]=!![],fs[_0x6436e(0xdb)](this[_0x6436e(0xec)](),_0x3290c3);}static[a54_0x36d2bf(0x108)](_0x3dd5fc){const _0x5b9f48=a54_0x36d2bf;if(this[_0x5b9f48(0xeb)][_0x3dd5fc])return this['tests'][_0x3dd5fc];const _0x32535c=this[_0x5b9f48(0xff)](_0x3dd5fc);if(_0x32535c&&fs[_0x5b9f48(0xed)](_0x32535c)){const _0x813da2=JSON[_0x5b9f48(0xd6)](fs[_0x5b9f48(0x115)](_0x32535c)[_0x5b9f48(0x11b)]());return this[_0x5b9f48(0xeb)][_0x3dd5fc]=_0x813da2,_0x813da2;}return{};}static[a54_0x36d2bf(0xef)](_0x3b5a5f,_0x543d42){const _0x4f62cb=a54_0x36d2bf,_0x28b019=this[_0x4f62cb(0xff)](_0x3b5a5f);if(_0x28b019&&fs[_0x4f62cb(0xed)](_0x28b019)){const _0x4e0e93=JSON[_0x4f62cb(0xd6)](fs[_0x4f62cb(0x115)](_0x28b019)[_0x4f62cb(0x11b)]()),_0x5b40d1={..._0x4e0e93,..._0x543d42};this['tests'][_0x3b5a5f]=_0x5b40d1;}else this[_0x4f62cb(0xeb)][_0x3b5a5f]=_0x543d42;fs['writeFileSync'](_0x28b019,this[_0x4f62cb(0xeb)][_0x3b5a5f]);}static['addTraceFilePath'](_0x3cbe61){const _0x2ca147=a54_0x36d2bf,_0x1237ee={};_0x1237ee[_0x2ca147(0x10c)]=_0x2ca147(0xd1);const _0x143bd0=_0x1237ee;try{const _0x392116=process[_0x2ca147(0xf0)],_0x588fe6=path[_0x2ca147(0xda)](TestDetails[_0x2ca147(0x122)](),_0x392116+_0x2ca147(0xfb));let _0x4874b7=[];_0x588fe6&&fs[_0x2ca147(0xed)](_0x588fe6)&&(_0x4874b7=JSON[_0x2ca147(0xd6)](fs[_0x2ca147(0x115)](_0x588fe6)[_0x2ca147(0x11b)]())),!_0x4874b7[_0x2ca147(0xe0)](_0x1ce1a0=>_0x1ce1a0[_0x2ca147(0xca)]===_0x3cbe61['filePath'])&&(_0x4874b7['push'](_0x3cbe61),fs['writeFileSync'](_0x588fe6,JSON[_0x2ca147(0xe7)](_0x4874b7)));}catch(_0x1a5378){logger[_0x2ca147(0xf9)](_0x143bd0[_0x2ca147(0x10c)],_0x1a5378);}}static['getTraceFilePaths'](){const _0x1b3f54=a54_0x36d2bf,_0x406589={};_0x406589[_0x1b3f54(0x106)]='_traceZipPaths.json',_0x406589['trBps']='Error\x20reading\x20trace\x20file\x20paths:\x20%s';const _0x401885=_0x406589,_0x2fb8ad=[];try{const _0x410896=TestDetails['getTraceZipDir']();if(_0x410896&&!fs[_0x1b3f54(0xed)](_0x410896))return _0x2fb8ad;const _0x426d64=fs[_0x1b3f54(0x102)](_0x410896);_0x426d64[_0x1b3f54(0xf5)](_0x1c82e1=>{const _0x313d3f=_0x1b3f54;if(_0x1c82e1&&_0x1c82e1[_0x313d3f(0xf1)](_0x401885['HUJcb'])){const _0x36b495=JSON[_0x313d3f(0xd6)](fs[_0x313d3f(0x115)](path[_0x313d3f(0xda)](_0x410896,_0x1c82e1))[_0x313d3f(0x11b)]());_0x2fb8ad[_0x313d3f(0x11d)](..._0x36b495);}});}catch(_0x58e13c){logger[_0x1b3f54(0xf9)](util[_0x1b3f54(0x10e)](_0x401885[_0x1b3f54(0x112)],_0x58e13c));}const _0x43b0ab={};return _0x2fb8ad['forEach'](_0x48ddf9=>{_0x43b0ab[_0x48ddf9['filePath']]=_0x48ddf9;}),Object[_0x1b3f54(0xe2)](_0x43b0ab);}static['appendToTracePaths'](_0xb06522,_0x2f9ad6){const _0x2df917=a54_0x36d2bf,_0x1eaeee={};_0x1eaeee[_0x2df917(0xe4)]=_0x2df917(0xfd),_0x1eaeee[_0x2df917(0x114)]=_0x2df917(0x120);const _0x11bf77=_0x1eaeee;try{const _0x157cb8=path[_0x2df917(0xda)](helper[_0x2df917(0xf6)](),_0x11bf77['wSTHk']);if(!fs[_0x2df917(0xed)](_0x157cb8)){const _0x3ea53e={};_0x3ea53e[_0x2df917(0xd9)]=!![],fs['mkdirSync'](_0x157cb8,_0x3ea53e);}fs[_0x2df917(0xe6)](path[_0x2df917(0xda)](_0x157cb8,'trace_'+_0x2f9ad6+_0x2df917(0x101)),_0xb06522+'\x0a',_0x11bf77[_0x2df917(0x114)]);}catch(_0xca0763){console[_0x2df917(0xf9)](_0x2df917(0xf2)+_0xca0763[_0x2df917(0xe9)]);}}}module[a54_0x36d2bf(0x103)]=TestDetails;
1
+ const a55_0x4b38d6=a55_0x24b9;(function(_0x13e3a8,_0x5200ed){const _0x4146b7=a55_0x24b9,_0x102c65=_0x13e3a8();while(!![]){try{const _0x5ae73a=parseInt(_0x4146b7(0x194))/0x1*(-parseInt(_0x4146b7(0x188))/0x2)+-parseInt(_0x4146b7(0x1c0))/0x3+-parseInt(_0x4146b7(0x179))/0x4+parseInt(_0x4146b7(0x19f))/0x5*(parseInt(_0x4146b7(0x164))/0x6)+parseInt(_0x4146b7(0x1ac))/0x7+parseInt(_0x4146b7(0x1ad))/0x8*(parseInt(_0x4146b7(0x1a1))/0x9)+-parseInt(_0x4146b7(0x168))/0xa*(-parseInt(_0x4146b7(0x16b))/0xb);if(_0x5ae73a===_0x5200ed)break;else _0x102c65['push'](_0x102c65['shift']());}catch(_0x340748){_0x102c65['push'](_0x102c65['shift']());}}}(a55_0x6302,0x6e03c));const fs=require('fs'),path=require(a55_0x4b38d6(0x1a4)),{v4:uuidv4}=require(a55_0x4b38d6(0x17a)),{TEMP_STORE_DIR_NAME}=require(a55_0x4b38d6(0x17b)),{nestedKeyValue}=require(a55_0x4b38d6(0x172)),logger=require(a55_0x4b38d6(0x1aa))[a55_0x4b38d6(0x165)],{getLogDir}=require(a55_0x4b38d6(0x1aa)),util=require(a55_0x4b38d6(0x19a)),helper=require(a55_0x4b38d6(0x172));function a55_0x24b9(_0x4766d3,_0x30c738){const _0x630275=a55_0x6302();return a55_0x24b9=function(_0x24b94c,_0x29227f){_0x24b94c=_0x24b94c-0x163;let _0xc207b6=_0x630275[_0x24b94c];return _0xc207b6;},a55_0x24b9(_0x4766d3,_0x30c738);}class TestDetails{static [a55_0x4b38d6(0x17c)]={};static[a55_0x4b38d6(0x195)](){const _0x295299=a55_0x4b38d6;this[_0x295299(0x186)]();const _0x1e4269={};_0x1e4269[_0x295299(0x178)]=!![],fs[_0x295299(0x1a9)](this[_0x295299(0x184)](),_0x1e4269);const _0x185230={};_0x185230[_0x295299(0x178)]=!![],fs['mkdirSync'](this[_0x295299(0x1bb)](),_0x185230);}static[a55_0x4b38d6(0x18c)](){const _0x26ac7f=a55_0x4b38d6,_0x4f1dad={};_0x4f1dad[_0x26ac7f(0x1b9)]=function(_0x3228f3,_0x50a8f8){return _0x3228f3+_0x50a8f8;};const _0x5489a2=_0x4f1dad;return _0x5489a2[_0x26ac7f(0x1b9)](_0x5489a2[_0x26ac7f(0x1b9)](TEMP_STORE_DIR_NAME,'-'),process[_0x26ac7f(0x169)]['BS_TESTOPS_BUILD_HASHED_ID']);}static['getStoreDirPath'](){const _0xdb6c07=a55_0x4b38d6,_0x19ae07={};_0x19ae07['zVUDY']=function(_0x5a943e,_0x1b0710){return _0x5a943e+_0x1b0710;},_0x19ae07[_0xdb6c07(0x176)]=_0xdb6c07(0x17e);const _0x3d8776=_0x19ae07;return path[_0xdb6c07(0x18f)](_0x3d8776[_0xdb6c07(0x174)](_0x3d8776['zVUDY'](TEMP_STORE_DIR_NAME,'-'),process[_0xdb6c07(0x169)]['BS_TESTOPS_BUILD_HASHED_ID']||_0x3d8776[_0xdb6c07(0x176)]));}static[a55_0x4b38d6(0x1bb)](){const _0x4caa82=a55_0x4b38d6,_0x2e5e01={};_0x2e5e01[_0x4caa82(0x182)]='traceZipPaths';const _0xf35a12=_0x2e5e01;return path[_0x4caa82(0x18f)](this[_0x4caa82(0x1ae)](),_0xf35a12[_0x4caa82(0x182)]);}static[a55_0x4b38d6(0x184)](){const _0x14d940=a55_0x4b38d6;return TestDetails[_0x14d940(0x18c)]();}static[a55_0x4b38d6(0x1be)](_0x577699){const _0x1d26d5=a55_0x4b38d6,_0x1a9e66={};_0x1a9e66[_0x1d26d5(0x1af)]=function(_0x271530,_0x369533){return _0x271530+_0x369533;},_0x1a9e66[_0x1d26d5(0x1b7)]=_0x1d26d5(0x180);const _0x3cb796=_0x1a9e66;return path[_0x1d26d5(0x18f)](this['getDirPath'](),_0x3cb796[_0x1d26d5(0x1af)](_0x577699,_0x3cb796[_0x1d26d5(0x1b7)]));}static[a55_0x4b38d6(0x193)](_0xa389f){const _0x291034=a55_0x4b38d6,_0x5190c1={};_0x5190c1[_0x291034(0x170)]=function(_0x1c7421,_0x57da33){return _0x1c7421+_0x57da33;},_0x5190c1[_0x291034(0x1bf)]=function(_0x1144c0,_0x2441e1){return _0x1144c0+_0x2441e1;};const _0x1fb770=_0x5190c1;return _0x1fb770[_0x291034(0x170)](_0x1fb770[_0x291034(0x1bf)](this[_0x291034(0x1bc)](_0xa389f),'-'),_0xa389f['retry']);}static[a55_0x4b38d6(0x1ab)](_0x5288f6){const _0x1dddbd=a55_0x4b38d6,_0x11169d={'AAPLA':function(_0x3b8d7c,_0x2fe665,_0x3b6fae){return _0x3b8d7c(_0x2fe665,_0x3b6fae);},'lRMYc':_0x1dddbd(0x187),'fTalS':_0x1dddbd(0x198),'mnGck':function(_0x4ecd99,_0x573976,_0x3d44cb){return _0x4ecd99(_0x573976,_0x3d44cb);},'IhMda':_0x1dddbd(0x18d),'PyQar':_0x1dddbd(0x16a)};return _0x11169d[_0x1dddbd(0x1c3)](nestedKeyValue,_0x5288f6,[_0x11169d[_0x1dddbd(0x17f)],_0x11169d[_0x1dddbd(0x1a7)]])||_0x11169d[_0x1dddbd(0x173)](nestedKeyValue,_0x5288f6,[_0x11169d['IhMda'],_0x11169d[_0x1dddbd(0x1b6)]]);}static[a55_0x4b38d6(0x1bc)](_0x248960){const _0x5761f1=a55_0x4b38d6,_0x587f9e={'zJyCP':function(_0x1cf8b5,_0x58f594,_0x3807f1){return _0x1cf8b5(_0x58f594,_0x3807f1);},'hxgCo':_0x5761f1(0x187)};return _0x587f9e[_0x5761f1(0x19c)](nestedKeyValue,_0x248960,[_0x587f9e[_0x5761f1(0x18b)],'id'])||_0x248960[_0x5761f1(0x18e)];}static[a55_0x4b38d6(0x191)](_0x401f4b){const _0x213854=a55_0x4b38d6,_0x3e9bef={'rjtAD':function(_0x14fdc7,_0x5b4754){return _0x14fdc7===_0x5b4754;},'yfQhu':_0x213854(0x192),'KzzTC':function(_0x187ffa){return _0x187ffa();}};if(this[_0x213854(0x17c)][_0x401f4b]&&_0x3e9bef[_0x213854(0x163)](typeof this[_0x213854(0x17c)][_0x401f4b][_0x213854(0x17a)],_0x3e9bef['yfQhu']))return this[_0x213854(0x17c)][_0x401f4b][_0x213854(0x17a)];const _0x3a3780=this[_0x213854(0x1be)](_0x401f4b);if(_0x3a3780&&fs[_0x213854(0x1c5)](_0x3a3780)){const _0xc1d7dd=JSON['parse'](fs[_0x213854(0x166)](_0x3a3780)[_0x213854(0x1c1)]());return this[_0x213854(0x17c)][_0x401f4b]=_0xc1d7dd,this[_0x213854(0x17c)][_0x401f4b][_0x213854(0x17a)];}return this[_0x213854(0x17c)][_0x401f4b]={'uuid':_0x3e9bef['KzzTC'](uuidv4)},fs['writeFileSync'](_0x3a3780,JSON[_0x213854(0x1b4)](this[_0x213854(0x17c)][_0x401f4b])),this[_0x213854(0x17c)][_0x401f4b][_0x213854(0x17a)];}static[a55_0x4b38d6(0x16f)](_0x4bb17b){const _0x1ec0b3=a55_0x4b38d6,_0x433ea7=path['join'](this[_0x1ec0b3(0x184)](),_0x4bb17b+_0x1ec0b3(0x1ba));if(_0x433ea7&&fs[_0x1ec0b3(0x1c5)](_0x433ea7))return fs[_0x1ec0b3(0x166)](_0x433ea7)[_0x1ec0b3(0x1c1)]();}static[a55_0x4b38d6(0x171)](_0x3275d4,_0x2f4fff){const _0x4b3ff5=a55_0x4b38d6,_0x16c90c=path[_0x4b3ff5(0x18f)](this[_0x4b3ff5(0x184)](),_0x2f4fff+_0x4b3ff5(0x1ba));fs[_0x4b3ff5(0x175)](_0x16c90c,_0x3275d4[_0x4b3ff5(0x1c1)]());}static['getIntegrations'](_0x5c22e6){const _0x18e51d=a55_0x4b38d6,_0x15353b=path[_0x18e51d(0x18f)](this[_0x18e51d(0x184)](),_0x5c22e6+'_integrations.json');if(_0x15353b&&fs['existsSync'](_0x15353b))try{return JSON[_0x18e51d(0x1b2)](fs[_0x18e51d(0x166)](_0x15353b)[_0x18e51d(0x1c1)]());}catch(_0x38ffac){return logger[_0x18e51d(0x1a5)](_0x18e51d(0x197)+_0x5c22e6+':\x20'+(_0x38ffac&&_0x38ffac[_0x18e51d(0x183)])),null;}return null;}static[a55_0x4b38d6(0x1a2)](_0x30d0e0,_0x50853b){const _0x248093=a55_0x4b38d6,_0x2c7c53={};_0x2c7c53[_0x248093(0x19d)]=function(_0x1dd5af,_0x542414){return _0x1dd5af||_0x542414;};const _0x376db8=_0x2c7c53;if(_0x376db8[_0x248093(0x19d)](!_0x30d0e0,!_0x50853b))return;try{const _0x48029a=this[_0x248093(0x184)](),_0x37e4f1={};_0x37e4f1['recursive']=!![],fs[_0x248093(0x1a9)](_0x48029a,_0x37e4f1);const _0x25cd9a=path[_0x248093(0x18f)](_0x48029a,_0x30d0e0+'_integrations.json');fs['writeFileSync'](_0x25cd9a,JSON[_0x248093(0x1b4)](_0x50853b));}catch(_0x3ce279){logger['debug'](_0x248093(0x1a6)+_0x30d0e0+':\x20'+(_0x3ce279&&_0x3ce279['message']));}}static[a55_0x4b38d6(0x186)](){const _0x265b5b=a55_0x4b38d6,_0x2268a7={};_0x2268a7[_0x265b5b(0x178)]=!![],_0x2268a7[_0x265b5b(0x167)]=!![],fs['rmSync'](this[_0x265b5b(0x184)](),_0x2268a7);}static['getTestDetails'](_0x3afed9){const _0x3a4263=a55_0x4b38d6;if(this['tests'][_0x3afed9])return this[_0x3a4263(0x17c)][_0x3afed9];const _0x8f1725=this['getFilePath'](_0x3afed9);if(_0x8f1725&&fs[_0x3a4263(0x1c5)](_0x8f1725)){const _0x6cebdd=JSON[_0x3a4263(0x1b2)](fs[_0x3a4263(0x166)](_0x8f1725)[_0x3a4263(0x1c1)]());return this[_0x3a4263(0x17c)][_0x3afed9]=_0x6cebdd,_0x6cebdd;}return{};}static[a55_0x4b38d6(0x190)](_0x35a87a,_0xd19e80){const _0x298c01=a55_0x4b38d6,_0x7eb297=this[_0x298c01(0x1be)](_0x35a87a);if(_0x7eb297&&fs[_0x298c01(0x1c5)](_0x7eb297)){const _0x8ee5d0=JSON[_0x298c01(0x1b2)](fs[_0x298c01(0x166)](_0x7eb297)['toString']()),_0x5cb5f5={..._0x8ee5d0,..._0xd19e80};this[_0x298c01(0x17c)][_0x35a87a]=_0x5cb5f5;}else this[_0x298c01(0x17c)][_0x35a87a]=_0xd19e80;fs['writeFileSync'](_0x7eb297,this[_0x298c01(0x17c)][_0x35a87a]);}static[a55_0x4b38d6(0x196)](_0x502dd8){const _0x40c0ba=a55_0x4b38d6,_0x314f4e={};_0x314f4e[_0x40c0ba(0x16d)]='Error\x20handling\x20trace\x20file\x20paths:\x20';const _0x45d729=_0x314f4e;try{const _0x5ffa93=process[_0x40c0ba(0x1a8)],_0x714b50=path[_0x40c0ba(0x18f)](TestDetails[_0x40c0ba(0x1bb)](),_0x5ffa93+_0x40c0ba(0x189));let _0xed5737=[];_0x714b50&&fs[_0x40c0ba(0x1c5)](_0x714b50)&&(_0xed5737=JSON['parse'](fs[_0x40c0ba(0x166)](_0x714b50)['toString']())),!_0xed5737[_0x40c0ba(0x19e)](_0x3701e4=>_0x3701e4['filePath']===_0x502dd8[_0x40c0ba(0x16c)])&&(_0xed5737['push'](_0x502dd8),fs[_0x40c0ba(0x175)](_0x714b50,JSON[_0x40c0ba(0x1b4)](_0xed5737)));}catch(_0x327330){logger[_0x40c0ba(0x18a)](_0x45d729['DqCOB'],_0x327330);}}static[a55_0x4b38d6(0x17d)](){const _0x4baa0d=a55_0x4b38d6,_0x275bd1={};_0x275bd1[_0x4baa0d(0x1a0)]=_0x4baa0d(0x189),_0x275bd1[_0x4baa0d(0x199)]=_0x4baa0d(0x1b5);const _0x37fa95=_0x275bd1,_0x1590d0=[];try{const _0x57c56f=TestDetails['getTraceZipDir']();if(_0x57c56f&&!fs[_0x4baa0d(0x1c5)](_0x57c56f))return _0x1590d0;const _0x581e63=fs[_0x4baa0d(0x19b)](_0x57c56f);_0x581e63[_0x4baa0d(0x1b1)](_0x553c64=>{const _0x3703d8=_0x4baa0d;if(_0x553c64&&_0x553c64[_0x3703d8(0x1b8)](_0x37fa95[_0x3703d8(0x1a0)])){const _0x41f92d=JSON[_0x3703d8(0x1b2)](fs[_0x3703d8(0x166)](path[_0x3703d8(0x18f)](_0x57c56f,_0x553c64))[_0x3703d8(0x1c1)]());_0x1590d0[_0x3703d8(0x1b3)](..._0x41f92d);}});}catch(_0x4f55a2){logger[_0x4baa0d(0x18a)](util[_0x4baa0d(0x181)](_0x37fa95[_0x4baa0d(0x199)],_0x4f55a2));}const _0x1937ed={};return _0x1590d0[_0x4baa0d(0x1b1)](_0x3b04a7=>{const _0x245aeb=_0x4baa0d;_0x1937ed[_0x3b04a7[_0x245aeb(0x16c)]]=_0x3b04a7;}),Object[_0x4baa0d(0x1c2)](_0x1937ed);}static['appendToTracePaths'](_0xc9e649,_0xc56cc1){const _0x3ad9e2=a55_0x4b38d6,_0x4ba7a1={};_0x4ba7a1[_0x3ad9e2(0x16e)]=_0x3ad9e2(0x1b0),_0x4ba7a1[_0x3ad9e2(0x1a3)]='utf8';const _0x333088=_0x4ba7a1;try{const _0x4d03ff=path[_0x3ad9e2(0x18f)](helper['homedir'](),_0x333088[_0x3ad9e2(0x16e)]);if(!fs['existsSync'](_0x4d03ff)){const _0x517b9={};_0x517b9['recursive']=!![],fs[_0x3ad9e2(0x1a9)](_0x4d03ff,_0x517b9);}fs[_0x3ad9e2(0x1c4)](path[_0x3ad9e2(0x18f)](_0x4d03ff,_0x3ad9e2(0x1bd)+_0xc56cc1+_0x3ad9e2(0x177)),_0xc9e649+'\x0a',_0x333088[_0x3ad9e2(0x1a3)]);}catch(_0x53071c){console['error'](_0x3ad9e2(0x185)+_0x53071c[_0x3ad9e2(0x183)]);}}}function a55_0x6302(){const _0x4060e6=['getStoreDirName','project','testId','join','setTestDetails','getTestUUID','string','getTestRunIdFromTestInfo','23FJtdYD','setup','addTraceFilePath','Failed\x20to\x20parse\x20integrations\x20file\x20for\x20test\x20','_projectId','Ykkju','util','readdirSync','zJyCP','hNGGt','some','5feezLd','VNxGk','9BbQAoI','setIntegrations','mDlad','path','debug','Failed\x20to\x20write\x20integrations\x20file\x20for\x20test\x20','fTalS','pid','mkdirSync','../../../helpers/logger','getProjectIdFromTestInfo','1912274udXCDz','5044504TkfQDS','getStoreDirPath','wchRH','.browserstack','forEach','parse','push','stringify','Error\x20reading\x20trace\x20file\x20paths:\x20%s','PyQar','pHYhA','endsWith','YAGte','_platformDetails.json','getTraceZipDir','getTestIdFromTestInfo','trace_','getFilePath','fXkkH','943767YMRvpe','toString','values','AAPLA','appendFileSync','existsSync','rjtAD','2537292xOWtUY','winstonLogger','readFileSync','force','10ivzcCd','env','__projectId','7608381XetXMo','filePath','DqCOB','zaePb','getAccessibilityPlatformValidation','XjXRq','setAccessibilityPlatformValidation','../../../helpers/helper','mnGck','zVUDY','writeFileSync','BpgrF','.txt','recursive','2291916dTFEwJ','uuid','../../../helpers/test-observability/constants','tests','getTraceFilePaths','default','lRMYc','.json','format','zumwJ','message','getDirPath','Error\x20writing\x20trace\x20file:\x20','shutdown','_test','59140JQWqev','_traceZipPaths.json','error','hxgCo'];a55_0x6302=function(){return _0x4060e6;};return a55_0x6302();}module['exports']=TestDetails;
@@ -1 +1 @@
1
- const a55_0x1ec1e3=a55_0x5956;(function(_0x13eba6,_0x13abb3){const _0x3742cd=a55_0x5956,_0x4fe286=_0x13eba6();while(!![]){try{const _0x824f3d=-parseInt(_0x3742cd(0x208))/0x1+-parseInt(_0x3742cd(0x231))/0x2*(-parseInt(_0x3742cd(0x23c))/0x3)+-parseInt(_0x3742cd(0x269))/0x4+-parseInt(_0x3742cd(0x240))/0x5+parseInt(_0x3742cd(0x26c))/0x6+parseInt(_0x3742cd(0x268))/0x7*(parseInt(_0x3742cd(0x1fa))/0x8)+parseInt(_0x3742cd(0x1ec))/0x9;if(_0x824f3d===_0x13abb3)break;else _0x4fe286['push'](_0x4fe286['shift']());}catch(_0xf8a599){_0x4fe286['push'](_0x4fe286['shift']());}}}(a55_0x5df7,0xf3a97));const path=require(a55_0x1ec1e3(0x1e2)),url=require(a55_0x1ec1e3(0x229)),util=require('util'),helper=require('../../helpers/helper'),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule,isBrowserstackInfra}=require(a55_0x1ec1e3(0x248)),{o11yErrorHandler}=require(a55_0x1ec1e3(0x27d)),{debug,getPlatformDetails}=require(a55_0x1ec1e3(0x28d)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a55_0x1ec1e3(0x220)),{FRAMEWORKS}=require(a55_0x1ec1e3(0x29d)),logger=require('../../helpers/logger')[a55_0x1ec1e3(0x242)],scripts=require('../../helpers/accessibility-automation/scripts'),{browserStackExecuteDriver}=require(a55_0x1ec1e3(0x24c)),AccessibilityHelper=require(a55_0x1ec1e3(0x28a)),constants=require(a55_0x1ec1e3(0x1e7)),BrowserstackCLI=require('../v2/browserstackCLI'),AutomationFrameworkState=require('../v2/state/automationFrameworkState.js'),HookState=require(a55_0x1ec1e3(0x2ae)),{performScanWithRetry}=require(a55_0x1ec1e3(0x1ff)),ClientTroubleShootingService=require(a55_0x1ec1e3(0x25c)),getBrowserNameFromChannel=_0x1c9217=>{const _0x372bcc=a55_0x1ec1e3,_0x23a529={};_0x23a529[_0x372bcc(0x1ed)]=_0x372bcc(0x259),_0x23a529[_0x372bcc(0x222)]='chrome',_0x23a529[_0x372bcc(0x226)]=_0x372bcc(0x243),_0x23a529[_0x372bcc(0x244)]=function(_0x3c8603,_0x5918d8){return _0x3c8603===_0x5918d8;},_0x23a529[_0x372bcc(0x253)]=_0x372bcc(0x24f),_0x23a529[_0x372bcc(0x283)]='safari',_0x23a529[_0x372bcc(0x254)]=_0x372bcc(0x2ab),_0x23a529[_0x372bcc(0x20c)]=_0x372bcc(0x234);const _0x3e5254=_0x23a529,_0x8dc7f0=_0x3e5254[_0x372bcc(0x1ed)]['split']('|');let _0x449750=0x0;while(!![]){switch(_0x8dc7f0[_0x449750++]){case'0':if(_0x1c9217['includes'](_0x3e5254[_0x372bcc(0x222)]))return _0x3e5254[_0x372bcc(0x222)];continue;case'1':if(_0x1c9217[_0x372bcc(0x23a)](_0x3e5254[_0x372bcc(0x226)]))return _0x3e5254[_0x372bcc(0x226)];continue;case'2':if(_0x3e5254[_0x372bcc(0x244)](_0x1c9217,_0x3e5254[_0x372bcc(0x253)]))return _0x3e5254[_0x372bcc(0x253)];continue;case'3':if(_0x1c9217[_0x372bcc(0x23a)](_0x3e5254[_0x372bcc(0x283)]))return _0x3e5254[_0x372bcc(0x283)];continue;case'4':if(_0x1c9217[_0x372bcc(0x23a)](_0x3e5254[_0x372bcc(0x254)]))return _0x3e5254['RbnlH'];continue;case'5':if(_0x1c9217[_0x372bcc(0x23a)](_0x3e5254[_0x372bcc(0x20c)]))return _0x3e5254[_0x372bcc(0x20c)];continue;}break;}},getBrowserFromWSEndpoint=_0x47ba32=>{const _0x2aa132=a55_0x1ec1e3,_0x282fa5={'Ijpks':'chrome','YEaVG':function(_0x481d3b,_0x59756b){return _0x481d3b(_0x59756b);}};try{const _0x24fb8f=url[_0x2aa132(0x1ee)](_0x47ba32),_0x1857fe=new URLSearchParams(_0x24fb8f[_0x2aa132(0x282)]),_0x2c9b8c=Object[_0x2aa132(0x20d)](_0x1857fe[_0x2aa132(0x232)]()),_0x301679=JSON[_0x2aa132(0x1ee)](_0x2c9b8c['caps']);if(_0x301679&&(_0x301679[_0x2aa132(0x274)]||_0x301679[_0x2aa132(0x21f)]))return _0x301679[_0x2aa132(0x274)]||_0x301679[_0x2aa132(0x21f)];return _0x282fa5['Ijpks'];}catch(_0x5a59fc){_0x282fa5[_0x2aa132(0x252)](debug,'Error\x20in\x20getting\x20browser\x20from\x20caps:\x20'+_0x5a59fc[_0x2aa132(0x276)]());}},getCloudProviderFromWsEndpoint=_0x10c687=>{const _0xa5104c=a55_0x1ec1e3,_0x112c55={};_0x112c55[_0xa5104c(0x28f)]=_0xa5104c(0x246),_0x112c55[_0xa5104c(0x27b)]=_0xa5104c(0x218);const _0x144d80=_0x112c55;if(_0x10c687[_0xa5104c(0x23a)](constants[_0xa5104c(0x219)])||_0x10c687[_0xa5104c(0x23a)](constants['BSTACK_ATS_URL']))return _0x144d80['RyTkt'];return _0x144d80['ETUsb'];},a55_0x3e4c96={};a55_0x3e4c96['cloudProvider']=undefined,a55_0x3e4c96['bsSessionId']=undefined,a55_0x3e4c96['browser']=undefined,a55_0x3e4c96[a55_0x1ec1e3(0x216)]=undefined,a55_0x3e4c96[a55_0x1ec1e3(0x286)]=undefined,a55_0x3e4c96[a55_0x1ec1e3(0x212)]=undefined,a55_0x3e4c96[a55_0x1ec1e3(0x250)]=undefined,a55_0x3e4c96['capabilities']={};class PlaywrightSessionDetails{static [a55_0x1ec1e3(0x280)]=a55_0x3e4c96;constructor(){const _0x75d196=a55_0x1ec1e3,_0x5c7d88={};_0x5c7d88[_0x75d196(0x23f)]='Invalid\x20constructor,\x20please\x20use\x20static\x20methods';const _0x39853c=_0x5c7d88;throw new Error(_0x39853c[_0x75d196(0x23f)]);}static [a55_0x1ec1e3(0x299)]=null;static['setupBrowserDetails'](_0x1d68c7,_0x3e0ed2,_0xec61bd=null){const _0x259150=a55_0x1ec1e3,_0x527ad0={'EfimI':function(_0xfc1f1,_0x2c74c6){return _0xfc1f1===_0x2c74c6;},'JCsUu':_0x259150(0x20f),'IxGvd':'Browser\x20is\x20not\x20defined\x20or\x20not\x20available','aIQoa':function(_0x17fa2f,_0x51d6f6){return _0x17fa2f===_0x51d6f6;},'zQxXm':_0x259150(0x294),'gSuLF':'local_grid','tcyrX':function(_0x59eb82,_0x355974,_0xc7555){return _0x59eb82(_0x355974,_0xc7555);},'jVfVP':'_browserType','ZLdNr':'_defaultConnectOptions','pHiJC':_0x259150(0x247),'vUhJR':_0x259150(0x214),'DiSwj':'connectOptions','qQCBq':function(_0x24fa78,_0x56484){return _0x24fa78(_0x56484);},'SsDjc':function(_0x75e675,_0x15c970){return _0x75e675===_0x15c970;},'MxQdz':_0x259150(0x246),'uMdmE':'turboscale','eCgkt':_0x259150(0x293),'iccQN':function(_0x1cdf07){return _0x1cdf07();},'meaLm':function(_0x2a4b3b,_0x185c1e){return _0x2a4b3b&&_0x185c1e;},'MqXYh':function(_0x1c3971){return _0x1c3971();},'VyJGf':function(_0x2c1b88){return _0x2c1b88();},'AGlCG':function(_0xd03cc8,_0x37897e){return _0xd03cc8+_0x37897e;},'pPeaE':_0x259150(0x25b),'enNmE':function(_0x4b9f70){return _0x4b9f70();},'crdmt':function(_0x556149,_0x1a67f9,_0x840ed6){return _0x556149(_0x1a67f9,_0x840ed6);},'TKPYn':_0x259150(0x28b)},_0x4b685c=this;return _0x527ad0[_0x259150(0x25a)](o11yErrorHandler,async function _0x1deb08(_0x1f76f5,_0x3204b7,_0x12e8a1=null){const _0x24cd7d=_0x259150;let _0x15e5a6=_0x1f76f5[_0x24cd7d(0x23e)],_0x50a566=null;_0x1f76f5&&_0x527ad0[_0x24cd7d(0x20b)](typeof _0x1f76f5[_0x24cd7d(0x275)],_0x527ad0[_0x24cd7d(0x23b)])?_0x50a566=_0x1f76f5[_0x24cd7d(0x275)]():logger[_0x24cd7d(0x1fc)](_0x527ad0[_0x24cd7d(0x1f5)]);let _0x34a332=null;_0x1f76f5&&_0x527ad0[_0x24cd7d(0x270)](typeof _0x1f76f5[_0x24cd7d(0x1f3)],_0x527ad0[_0x24cd7d(0x23b)])?_0x34a332=_0x1f76f5[_0x24cd7d(0x1f3)]():logger[_0x24cd7d(0x1fc)](_0x527ad0[_0x24cd7d(0x228)]);let _0x8f07f5=null,_0x7694c1=null,_0x19fff8=null,_0x4d5f08=_0x527ad0[_0x24cd7d(0x2aa)];if(_0x1f76f5[_0x24cd7d(0x2a9)][_0x24cd7d(0x1ef)]()||global['accessibilityPlatform']&&!process[_0x24cd7d(0x1eb)][_0x24cd7d(0x1e4)]){let _0x4a9eae=null;_0x527ad0[_0x24cd7d(0x239)](nestedKeyValue,_0x1f76f5,[_0x527ad0[_0x24cd7d(0x2a1)],_0x527ad0['ZLdNr']])?_0x4a9eae=_0x1f76f5[_0x24cd7d(0x24d)][_0x24cd7d(0x26e)]:_0x4a9eae=_0x527ad0[_0x24cd7d(0x239)](nestedKeyValue,_0x3204b7,[_0x527ad0[_0x24cd7d(0x258)],_0x527ad0['vUhJR'],_0x527ad0[_0x24cd7d(0x1fd)]]);const _0x47165e=_0x12e8a1||_0x4a9eae&&_0x4a9eae[_0x24cd7d(0x1e6)];if(_0x47165e){_0x4d5f08=_0x527ad0[_0x24cd7d(0x1e3)](getCloudProviderFromWsEndpoint,_0x47165e);if(_0x527ad0['SsDjc'](_0x4d5f08,_0x527ad0[_0x24cd7d(0x262)]))_0x19fff8=constants[_0x24cd7d(0x22f)][_0x24cd7d(0x2ad)](_0x47165e)?_0x527ad0[_0x24cd7d(0x285)]:_0x527ad0[_0x24cd7d(0x225)],_0x15e5a6=_0x527ad0[_0x24cd7d(0x1e3)](getBrowserFromWSEndpoint,_0x47165e)||_0x15e5a6,_0x8f07f5=_0x4b685c[_0x24cd7d(0x280)][_0x24cd7d(0x286)],_0x7694c1=_0x4b685c[_0x24cd7d(0x280)][_0x24cd7d(0x212)];else{const _0xcf42e9=await _0x527ad0[_0x24cd7d(0x25f)](getPlatformDetails);_0x8f07f5=_0xcf42e9['platformName'],_0x7694c1=_0xcf42e9[_0x24cd7d(0x22c)];}}if(_0x527ad0[_0x24cd7d(0x290)](!_0x8f07f5,!_0x7694c1)&&!_0x527ad0[_0x24cd7d(0x202)](isBrowserstackInfra)){const _0x53246d=await _0x527ad0[_0x24cd7d(0x2a2)](getPlatformDetails);_0x8f07f5=_0x53246d[_0x24cd7d(0x21a)],_0x7694c1=_0x53246d[_0x24cd7d(0x22c)];}}else{_0x3204b7&&_0x3204b7[_0x24cd7d(0x247)]['use'][_0x24cd7d(0x1e8)]?_0x15e5a6=_0x527ad0[_0x24cd7d(0x1e3)](getBrowserNameFromChannel,_0x3204b7[_0x24cd7d(0x247)]['use'][_0x24cd7d(0x1e8)]):_0x15e5a6=_0x527ad0['AGlCG'](_0x527ad0[_0x24cd7d(0x21d)],_0x15e5a6[_0x24cd7d(0x264)]());const _0x199862=await _0x527ad0[_0x24cd7d(0x249)](getPlatformDetails);_0x8f07f5=_0x199862['platformName'],_0x7694c1=_0x199862[_0x24cd7d(0x22c)];}const _0xc95608={};_0xc95608['browser']=_0x15e5a6,_0xc95608[_0x24cd7d(0x216)]=_0x50a566,_0xc95608[_0x24cd7d(0x298)]={},_0xc95608[_0x24cd7d(0x286)]=_0x8f07f5,_0xc95608[_0x24cd7d(0x212)]=_0x7694c1,_0xc95608[_0x24cd7d(0x250)]=_0x19fff8;const _0x55f169=_0xc95608;_0x34a332&&(_0x55f169['capabilities'][_0x24cd7d(0x263)]=_0x34a332);const _0x18bf35={};_0x18bf35[_0x24cd7d(0x205)]=_0x4d5f08,_0x4b685c[_0x24cd7d(0x280)]=Object[_0x24cd7d(0x251)]({},_0x4b685c['currentSessionDetails'],_0x18bf35,_0x55f169);},_0x527ad0[_0x259150(0x210)])(_0x1d68c7,_0x3e0ed2,_0xec61bd);}static[a55_0x1ec1e3(0x241)](){const _0x409a47=a55_0x1ec1e3;this[_0x409a47(0x21b)](),this[_0x409a47(0x2a4)]();}static['patchConnection'](){const _0x1913e2=a55_0x1ec1e3,_0x579b93={'wfgIe':function(_0x1573a9,_0x4dd8c6,_0x1a7105){return _0x1573a9(_0x4dd8c6,_0x1a7105);},'FvWQj':'currentTest','hzISS':'testInfo','Acfir':_0x1913e2(0x29a),'amyia':function(_0x3942a4,_0xeb6472,_0x1d528a){return _0x3942a4(_0xeb6472,_0x1d528a);},'VLSUv':function(_0x2a303a,_0xe2e7f7,_0x45d5a8){return _0x2a303a(_0xe2e7f7,_0x45d5a8);},'pkzLL':_0x1913e2(0x1f9),'EvTbX':_0x1913e2(0x236),'HakQp':function(_0xb4113f,_0x40a559){return _0xb4113f===_0x40a559;},'nCUZS':_0x1913e2(0x28c),'fhVCd':function(_0x2c4f20,_0x59d709,_0x3a6d46,_0x4a682c){return _0x2c4f20(_0x59d709,_0x3a6d46,_0x4a682c);},'xlSYS':function(_0x178974,_0x56c2f9){return _0x178974||_0x56c2f9;},'fYmEA':function(_0x26cb53,_0x17d03e){return _0x26cb53(_0x17d03e);},'QZrRy':_0x1913e2(0x281),'ygMNS':function(_0x2572b4,_0x566906){return _0x2572b4!=_0x566906;},'wfgGx':function(_0x55c0b2,_0x4c1f5e){return _0x55c0b2!=_0x4c1f5e;},'QxYVk':function(_0x10ab14){return _0x10ab14();},'ZzYEo':_0x1913e2(0x277),'wCeYf':function(_0x5dda24,_0x5c3369){return _0x5dda24(_0x5c3369);},'JapSZ':_0x1913e2(0x1f7),'HRUaf':_0x1913e2(0x1f2),'LaPvL':function(_0x4fd63a,_0x3b8267){return _0x4fd63a(_0x3b8267);}},_0x14f9c5=this;!this[_0x1913e2(0x266)]&&(this['Connection']=helper[_0x1913e2(0x201)](),!this['Connection']&&_0x579b93[_0x1913e2(0x29b)](debug,_0x579b93[_0x1913e2(0x204)]));const _0xd18673=this[_0x1913e2(0x266)];if(_0x579b93[_0x1913e2(0x1fb)](_0xd18673,null)&&_0xd18673[_0x1913e2(0x2a3)][_0x1913e2(0x265)])return;try{if(_0x579b93[_0x1913e2(0x291)](_0xd18673,null)){const _0x3633fc=_0xd18673['prototype'][_0x1913e2(0x1f7)],_0x2b202f=_0xd18673[_0x1913e2(0x2a3)]['sendMessageToServer'];_0x579b93[_0x1913e2(0x213)](isAccessibilityAutomationSession)&&Object[_0x1913e2(0x237)](_0xd18673[_0x1913e2(0x2a3)],_0x579b93[_0x1913e2(0x1fe)],{'get':function(){const _0xa95c2d=_0x1913e2,_0x282203={'mCbcO':function(_0x51af12,_0x4b5936,_0x5258f2){const _0x245e38=a55_0x5956;return _0x579b93[_0x245e38(0x24e)](_0x51af12,_0x4b5936,_0x5258f2);},'ytaIs':_0x579b93[_0xa95c2d(0x1f6)],'ocRoW':_0x579b93[_0xa95c2d(0x20e)],'QGGNp':_0x579b93[_0xa95c2d(0x2a8)],'IbqAg':function(_0x1a6a15,_0x29b8f6,_0x5390c8){const _0x5db65f=_0xa95c2d;return _0x579b93[_0x5db65f(0x27c)](_0x1a6a15,_0x29b8f6,_0x5390c8);},'fmELH':function(_0x2994e7,_0x32879b,_0x5c6a16){const _0x4a328c=_0xa95c2d;return _0x579b93[_0x4a328c(0x221)](_0x2994e7,_0x32879b,_0x5c6a16);},'CTxwg':_0x579b93['pkzLL'],'tOlev':_0x579b93[_0xa95c2d(0x1f8)],'jELjI':function(_0x34b263,_0x29f0a2){const _0x4f4bbd=_0xa95c2d;return _0x579b93[_0x4f4bbd(0x1f0)](_0x34b263,_0x29f0a2);},'pVTTn':_0x579b93[_0xa95c2d(0x26b)],'XtMOI':function(_0xe2154c,_0x2706ea,_0x21521e,_0x2f4c83){return _0x579b93['fhVCd'](_0xe2154c,_0x2706ea,_0x21521e,_0x2f4c83);}};return async function(){const _0x38e959=_0xa95c2d;try{if(!global[_0x38e959(0x26a)]&&global['accessibilityPlatform']&&_0x282203[_0x38e959(0x257)](nestedKeyValue,global[_0x38e959(0x1f9)],[_0x282203[_0x38e959(0x1e5)],_0x282203['ocRoW'],_0x282203[_0x38e959(0x22e)]])&&_0x282203[_0x38e959(0x200)](shouldScanTestForAccessibility,global[_0x38e959(0x1f9)]['currentTest']['testInfo'][_0x38e959(0x29a)],!![])&&scripts['shouldWrapCommand'](arguments[0x1])){logger[_0x38e959(0x1fc)](_0x38e959(0x209)+arguments[0x1]),global[_0x38e959(0x26a)]=!![];const _0x5786cc=_0x282203[_0x38e959(0x27f)](nestedKeyValue,global,[_0x282203['CTxwg'],_0x282203[_0x38e959(0x29f)]]);_0x5786cc&&logger[_0x38e959(0x24a)](_0x38e959(0x261)+util['format'](await _0x282203['fmELH'](performScanWithRetry,_0x5786cc,arguments[0x1]))),_0x282203[_0x38e959(0x230)](arguments[0x0][_0x38e959(0x235)],_0x282203[_0x38e959(0x245)])&&global[_0x38e959(0x2a5)]&&logger[_0x38e959(0x24a)](_0x38e959(0x25e)+util[_0x38e959(0x1f4)](await _0x282203[_0x38e959(0x20a)](performScanWithRetry,global[_0x38e959(0x2a5)],arguments[0x1],scripts[_0x38e959(0x26d)])));}}catch(_0x22bf02){logger['debug'](_0x38e959(0x211)+util[_0x38e959(0x1f4)](_0x22bf02));}return global[_0x38e959(0x26a)]=![],_0x2b202f[_0x38e959(0x2a0)](this,arguments);};}}),!_0x579b93[_0x1913e2(0x22b)](isFalse,process[_0x1913e2(0x1eb)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&Object[_0x1913e2(0x237)](_0xd18673['prototype'],_0x579b93[_0x1913e2(0x29c)],{'get':function(){const _0x4359f2={'YwBzJ':function(_0x19829f,_0x2ed580){const _0x33798d=a55_0x5956;return _0x579b93[_0x33798d(0x256)](_0x19829f,_0x2ed580);},'HukGz':function(_0x4b1547,_0x1a5bf7){return _0x579b93['fYmEA'](_0x4b1547,_0x1a5bf7);}};return async function _0x57b4a5(_0x1e32a6){const _0x5222fe=a55_0x5956;if(BrowserstackCLI[_0x5222fe(0x1f1)]()[_0x5222fe(0x215)]()){const _0x1e0e3e={};_0x1e0e3e[_0x5222fe(0x206)]=_0x1e32a6,await BrowserstackCLI[_0x5222fe(0x1f1)]()[_0x5222fe(0x272)]()[_0x5222fe(0x23d)](AutomationFrameworkState[_0x5222fe(0x297)],HookState[_0x5222fe(0x288)],_0x1e0e3e);}else{const _0x468a3d=_0x1e32a6&&_0x1e32a6[_0x5222fe(0x267)]&&_0x1e32a6['params']['bsParams'];if(_0x468a3d){const _0x539c37=_0x468a3d[_0x5222fe(0x217)],_0x5df03e=_0x468a3d[_0x5222fe(0x29e)];_0x4359f2[_0x5222fe(0x1e9)](!_0x539c37,!_0x5df03e)&&await ClientTroubleShootingService[_0x5222fe(0x273)](),_0x5df03e&&(_0x4359f2[_0x5222fe(0x238)](debug,_0x5222fe(0x2a6)+_0x5df03e['toString']()),_0x14f9c5[_0x5222fe(0x280)][_0x5222fe(0x286)]=_0x5df03e[_0x5222fe(0x21a)],_0x14f9c5[_0x5222fe(0x280)][_0x5222fe(0x212)]=_0x5df03e[_0x5222fe(0x22c)]),_0x539c37&&(_0x4359f2[_0x5222fe(0x238)](debug,'Setting\x20session\x20id\x20received\x20from\x20BS\x20'+_0x539c37),_0x14f9c5[_0x5222fe(0x280)][_0x5222fe(0x2ac)]=_0x539c37);}}return _0x3633fc[_0x5222fe(0x2a0)](this,arguments);};}}),_0xd18673[_0x1913e2(0x2a3)]['_bstackDispatchPatched']=!![],logger['debug'](_0x579b93[_0x1913e2(0x28e)]);}}catch(_0xd3d166){_0x579b93['LaPvL'](debug,_0x1913e2(0x207)+_0xd3d166),_0x14f9c5[_0x1913e2(0x299)]=_0xd3d166[_0x1913e2(0x276)]();}}static[a55_0x1ec1e3(0x2a4)](){const _0x324118=a55_0x1ec1e3,_0x2060e0={'FonUR':function(_0x89e985,_0x5bae13){return _0x89e985(_0x5bae13);},'yfMCY':function(_0x28a34b,_0x145a66){return _0x28a34b(_0x145a66);},'ZsrQZ':function(_0x2de8dd){return _0x2de8dd();},'rCKDz':function(_0x231b95,_0x4cd66e){return _0x231b95>=_0x4cd66e;},'sRfLe':_0x324118(0x21e),'CcPuo':function(_0x1a91db,_0x1b52b6){return _0x1a91db(_0x1b52b6);},'AsdmA':_0x324118(0x284),'OQwTv':'lib','vPyTc':_0x324118(0x227),'IdOGu':_0x324118(0x243),'gzIII':_0x324118(0x292),'LjQGf':_0x324118(0x1ea),'msWYO':'Error\x20in\x20importing\x20crConnection','zKtgt':function(_0x345b3c,_0x24265b){return _0x345b3c!=_0x24265b;},'Dyiea':'_onMessage'},_0x1c3b89=this;if(_0x2060e0[_0x324118(0x22d)](isAccessibilityAutomationSession)){let _0x5248b7=null,_0x480d76=![];try{const _0x4c3b91=helper[_0x324118(0x289)](FRAMEWORKS[_0x324118(0x2a7)]);_0x480d76=_0x2060e0[_0x324118(0x223)](helper[_0x324118(0x224)](_0x4c3b91,_0x2060e0['sRfLe']),0x0);}catch(_0x9939aa){_0x2060e0[_0x324118(0x22a)](debug,'Error\x20evaluating\x20Playwright\x20version\x20for\x20CRConnection\x20patch:\x20'+_0x9939aa['toString']());}if(_0x480d76)_0x2060e0['CcPuo'](debug,_0x2060e0['AsdmA']);else try{const _0x152f26=path['join'](_0x2060e0['OQwTv'],_0x2060e0[_0x324118(0x25d)],_0x2060e0[_0x324118(0x21c)],_0x2060e0[_0x324118(0x27a)]),_0x15e565=_0x2060e0[_0x324118(0x22a)](importFileFromPWCore,_0x152f26);!_0x15e565?_0x2060e0['CcPuo'](debug,_0x2060e0[_0x324118(0x233)]):_0x5248b7=_0x15e565[_0x324118(0x296)];}catch(_0x2a7915){_0x2060e0[_0x324118(0x26f)](debug,_0x2060e0[_0x324118(0x279)]);}try{if(_0x2060e0[_0x324118(0x271)](_0x5248b7,null)){const _0x25a0ef=_0x5248b7[_0x324118(0x2a3)][_0x324118(0x287)];Object[_0x324118(0x237)](_0x5248b7[_0x324118(0x2a3)],_0x2060e0[_0x324118(0x255)],{'get':function(){return async function _0x29cf2e(_0xde8d5c){const _0x53b83b=a55_0x5956;try{if(BrowserstackCLI[_0x53b83b(0x1f1)]()[_0x53b83b(0x215)]()){const _0x1d0442={};_0x1d0442[_0x53b83b(0x206)]=_0xde8d5c,await BrowserstackCLI['getInstance']()['getAutomationFramework']()['trackEvent'](AutomationFrameworkState[_0x53b83b(0x297)],HookState['POST'],_0x1d0442),delete _0xde8d5c[_0x53b83b(0x24b)];}else{const _0x322c8f=_0xde8d5c['bStackParams'];if(_0x322c8f){delete _0xde8d5c[_0x53b83b(0x24b)];const _0x2f3ff1=_0x322c8f[_0x53b83b(0x217)],_0x742e77=_0x322c8f[_0x53b83b(0x29e)];_0x742e77&&(_0x2060e0[_0x53b83b(0x203)](debug,_0x53b83b(0x27e)+_0x742e77['toString']()),_0x1c3b89['currentSessionDetails'][_0x53b83b(0x286)]=_0x742e77[_0x53b83b(0x21a)],_0x1c3b89[_0x53b83b(0x280)][_0x53b83b(0x212)]=_0x742e77[_0x53b83b(0x22c)]),_0x2f3ff1&&(_0x2060e0[_0x53b83b(0x203)](debug,'Setting\x20session\x20id\x20received\x20from\x20browserstack\x20'+_0x2f3ff1),_0x1c3b89['currentSessionDetails'][_0x53b83b(0x2ac)]=_0x2f3ff1);}}}catch(_0x3f7981){_0x2060e0[_0x53b83b(0x26f)](debug,_0x53b83b(0x278)+_0x3f7981[_0x53b83b(0x276)]());}return _0x25a0ef['apply'](this,arguments);};}});}}catch(_0x294624){_0x2060e0[_0x324118(0x203)](debug,_0x324118(0x295)+_0x294624),_0x1c3b89[_0x324118(0x299)]=_0x294624[_0x324118(0x276)]();}}}static[a55_0x1ec1e3(0x260)](){const _0x3f48ed=a55_0x1ec1e3;return this[_0x3f48ed(0x280)];}}function a55_0x5df7(){const _0x49d613=['webkit','product','assign','YEaVG','jHfyF','RbnlH','Dyiea','xlSYS','mCbcO','pHiJC','1|0|5|4|3|2','crdmt','playwright-','../utils/clientTroubleshootingService.js','vPyTc','Driver\x20Scan\x20result=','iccQN','getDetails','Page\x20Scan\x20result=','MxQdz','deviceModel','toLowerCase','_bstackDispatchPatched','Connection','params','12243otLSbz','1786004bTPBmL','bstackPerformA11yScan','nCUZS','1812522Evtyki','performScan','_defaultConnectOptions','yfMCY','aIQoa','zKtgt','getAutomationFramework','reportSessionLinkingIssue','browser','version','toString','sendMessageToServer','Error\x20in\x20finding\x20platform\x20details\x20','msWYO','gzIII','ETUsb','amyia','../../helpers/test-observability/error-handler','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','fmELH','currentSessionDetails','Not\x20able\x20to\x20resolve\x20Connection\x20class','query','nDYqj','CRConnection\x20patch\x20unavailable\x20on\x20PW>=1.60\x20(server-side\x20class\x20not\x20reachable\x20in\x20SDK\x20process);\x20platform/sessionId\x20capture\x20continues\x20via\x20Connection.dispatch','uMdmE','platform','_onMessage','POST','getFrameworkVersion','./accessibility-helper','setupBrowserDetails','Page','../../helpers/test-observability/utils','HRUaf','RyTkt','meaLm','wfgGx','crConnection.js','automate','Device\x20Model\x20is\x20not\x20available','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','CRConnection','PLAYWRIGHT_DISPATCH','capabilities','sessionError','titlePath','fYmEA','JapSZ','../../helpers/test-observability/constants','platformDetails','tOlev','apply','jVfVP','VyJGf','prototype','patchCRConnection','__driver','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','PLAYWRIGHT','Acfir','_connection','gSuLF','firefox','bsSessionId','test','../v2/state/hookState.js','path','qQCBq','BS_A11Y_SKIP_CDP_CONNECT_OVERRIDE','ytaIs','wsEndpoint','../utils/constants','channel','YwBzJ','Not\x20able\x20to\x20import\x20crConnection','env','30263166knrsaE','ZYgYK','parse','isRemote','HakQp','getInstance','Successfully\x20patched\x20Connection\x20(sendMessageToServer\x20for\x20a11y,\x20dispatch\x20for\x20o11y)','model','format','IxGvd','FvWQj','dispatch','EvTbX','__workerDetails','1552jtgIXC','ygMNS','debug','DiSwj','ZzYEo','../../helpers/accessibility-automation/accessibilityRetryHelper.js','IbqAg','resolveConnectionClass','MqXYh','FonUR','QZrRy','cloudProvider','message','Error\x20in\x20getting\x20applying\x20Connection\x20patch\x20','1471498HOMfsu','Performing\x20scan\x20for\x20','XtMOI','EfimI','jLddn','fromEntries','hzISS','function','TKPYn','Failed\x20to\x20perform\x20scan\x20','platform_version','QxYVk','use','isRunning','browser_version','sessionId','unknown_grid','BSTACK_URL','platformName','patchConnection','IdOGu','pPeaE','1.60.0','browserName','../../helpers/accessibility-automation/helper','VLSUv','msrdH','rCKDz','compareVersions','eCgkt','EktFc','server','zQxXm','url','CcPuo','wCeYf','platformVersion','ZsrQZ','QGGNp','ATS_WSS_URL_REGEX','jELjI','234278OEefLm','entries','LjQGf','edge','_type','pwPage','defineProperty','HukGz','tcyrX','includes','JCsUu','3HaAaTg','trackEvent','_name','IOYQk','6025340okbqee','patch','winstonLogger','chromium','ZDksA','pVTTn','browserstack','project','../../helpers/helper','enNmE','info','bStackParams','../../bin/playwright/accessibility-helper','_browserType','wfgIe'];a55_0x5df7=function(){return _0x49d613;};return a55_0x5df7();}function a55_0x5956(_0xe0ec7f,_0x3bd9c9){const _0x5df7a8=a55_0x5df7();return a55_0x5956=function(_0x595681,_0x2b54af){_0x595681=_0x595681-0x1e2;let _0x5242fc=_0x5df7a8[_0x595681];return _0x5242fc;},a55_0x5956(_0xe0ec7f,_0x3bd9c9);}module['exports']=PlaywrightSessionDetails;
1
+ function a56_0x2a9f(_0x186a60,_0x192683){const _0x38b629=a56_0x38b6();return a56_0x2a9f=function(_0x2a9fe9,_0x1f0fa3){_0x2a9fe9=_0x2a9fe9-0x158;let _0x5b5eaa=_0x38b629[_0x2a9fe9];return _0x5b5eaa;},a56_0x2a9f(_0x186a60,_0x192683);}const a56_0x804b85=a56_0x2a9f;(function(_0x399cec,_0x4a3f64){const _0x5146b9=a56_0x2a9f,_0xd97e75=_0x399cec();while(!![]){try{const _0x16fa5e=parseInt(_0x5146b9(0x195))/0x1*(parseInt(_0x5146b9(0x1d3))/0x2)+parseInt(_0x5146b9(0x1e8))/0x3*(parseInt(_0x5146b9(0x19b))/0x4)+-parseInt(_0x5146b9(0x1d2))/0x5+parseInt(_0x5146b9(0x1dd))/0x6*(parseInt(_0x5146b9(0x1ff))/0x7)+parseInt(_0x5146b9(0x1b2))/0x8*(-parseInt(_0x5146b9(0x1a2))/0x9)+-parseInt(_0x5146b9(0x19e))/0xa+parseInt(_0x5146b9(0x1c4))/0xb*(parseInt(_0x5146b9(0x221))/0xc);if(_0x16fa5e===_0x4a3f64)break;else _0xd97e75['push'](_0xd97e75['shift']());}catch(_0x12ce8c){_0xd97e75['push'](_0xd97e75['shift']());}}}(a56_0x38b6,0xe296c));const path=require(a56_0x804b85(0x16c)),url=require(a56_0x804b85(0x20f)),util=require(a56_0x804b85(0x18d)),helper=require(a56_0x804b85(0x201)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule,isBrowserstackInfra}=require(a56_0x804b85(0x201)),{o11yErrorHandler}=require(a56_0x804b85(0x1c3)),{debug,getPlatformDetails}=require(a56_0x804b85(0x162)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a56_0x804b85(0x219)),{FRAMEWORKS}=require(a56_0x804b85(0x1b8)),logger=require('../../helpers/logger')['winstonLogger'],scripts=require(a56_0x804b85(0x218)),{browserStackExecuteDriver}=require(a56_0x804b85(0x1d0)),AccessibilityHelper=require(a56_0x804b85(0x1fc)),constants=require(a56_0x804b85(0x1bc)),BrowserstackCLI=require('../v2/browserstackCLI'),AutomationFrameworkState=require(a56_0x804b85(0x18b)),HookState=require(a56_0x804b85(0x1a5)),{performScanWithRetry}=require(a56_0x804b85(0x188)),ClientTroubleShootingService=require('../utils/clientTroubleshootingService.js'),getBrowserNameFromChannel=_0x4f564f=>{const _0x4f4e64=a56_0x804b85,_0x15de70={};_0x15de70['DQPYS']=_0x4f4e64(0x1c2),_0x15de70[_0x4f4e64(0x1f0)]=_0x4f4e64(0x199),_0x15de70[_0x4f4e64(0x1ba)]=_0x4f4e64(0x187),_0x15de70[_0x4f4e64(0x197)]=_0x4f4e64(0x1c7),_0x15de70[_0x4f4e64(0x203)]=function(_0x45302d,_0x2c7e7f){return _0x45302d===_0x2c7e7f;},_0x15de70['bLENc']=_0x4f4e64(0x1b6),_0x15de70['vmWhM']=_0x4f4e64(0x1a7),_0x15de70[_0x4f4e64(0x17b)]=_0x4f4e64(0x1a3);const _0x281ae1=_0x15de70,_0x36a50f=_0x281ae1[_0x4f4e64(0x168)][_0x4f4e64(0x186)]('|');let _0x5c00ea=0x0;while(!![]){switch(_0x36a50f[_0x5c00ea++]){case'0':if(_0x4f564f[_0x4f4e64(0x16f)](_0x281ae1[_0x4f4e64(0x1f0)]))return _0x281ae1[_0x4f4e64(0x1f0)];continue;case'1':if(_0x4f564f[_0x4f4e64(0x16f)](_0x281ae1['xLXVT']))return _0x281ae1[_0x4f4e64(0x1ba)];continue;case'2':if(_0x4f564f['includes'](_0x281ae1[_0x4f4e64(0x197)]))return _0x281ae1['KkrDi'];continue;case'3':if(_0x281ae1['ZIMQZ'](_0x4f564f,_0x281ae1[_0x4f4e64(0x160)]))return _0x281ae1[_0x4f4e64(0x160)];continue;case'4':if(_0x4f564f[_0x4f4e64(0x16f)](_0x281ae1[_0x4f4e64(0x1c1)]))return _0x281ae1[_0x4f4e64(0x1c1)];continue;case'5':if(_0x4f564f[_0x4f4e64(0x16f)](_0x281ae1['QuVdh']))return _0x281ae1['QuVdh'];continue;}break;}},getBrowserFromWSEndpoint=_0x5a8708=>{const _0x21b406=a56_0x804b85,_0x19f775={'iVyLa':_0x21b406(0x187),'cAkMf':function(_0x55e6a9,_0x297bfb){return _0x55e6a9(_0x297bfb);}};try{const _0x1d0284=url[_0x21b406(0x1cd)](_0x5a8708),_0x3e4707=new URLSearchParams(_0x1d0284[_0x21b406(0x1a0)]),_0x2b4e2e=Object[_0x21b406(0x1a8)](_0x3e4707[_0x21b406(0x1b5)]()),_0x59381f=JSON[_0x21b406(0x1cd)](_0x2b4e2e['caps']);if(_0x59381f&&(_0x59381f[_0x21b406(0x20d)]||_0x59381f[_0x21b406(0x1d8)]))return _0x59381f['browser']||_0x59381f[_0x21b406(0x1d8)];return _0x19f775[_0x21b406(0x200)];}catch(_0x1b813d){_0x19f775[_0x21b406(0x1ab)](debug,'Error\x20in\x20getting\x20browser\x20from\x20caps:\x20'+_0x1b813d[_0x21b406(0x1d5)]());}},getCloudProviderFromWsEndpoint=_0x5f08fd=>{const _0x7e06=a56_0x804b85,_0x1ab78f={};_0x1ab78f[_0x7e06(0x19d)]=_0x7e06(0x19c),_0x1ab78f[_0x7e06(0x192)]='unknown_grid';const _0x346dd7=_0x1ab78f;if(_0x5f08fd[_0x7e06(0x16f)](constants[_0x7e06(0x17f)])||_0x5f08fd[_0x7e06(0x16f)](constants[_0x7e06(0x15c)]))return _0x346dd7['WZBnE'];return _0x346dd7[_0x7e06(0x192)];},a56_0x3174eb={};a56_0x3174eb[a56_0x804b85(0x178)]=undefined,a56_0x3174eb['bsSessionId']=undefined,a56_0x3174eb[a56_0x804b85(0x20d)]=undefined,a56_0x3174eb[a56_0x804b85(0x216)]=undefined,a56_0x3174eb['platform']=undefined,a56_0x3174eb[a56_0x804b85(0x1fe)]=undefined,a56_0x3174eb['product']=undefined,a56_0x3174eb['capabilities']={};class PlaywrightSessionDetails{static ['currentSessionDetails']=a56_0x3174eb;constructor(){const _0x180381=a56_0x804b85,_0x5ecdf6={};_0x5ecdf6[_0x180381(0x17e)]=_0x180381(0x1e7);const _0x457aaf=_0x5ecdf6;throw new Error(_0x457aaf[_0x180381(0x17e)]);}static [a56_0x804b85(0x1ad)]=null;static[a56_0x804b85(0x211)](_0x160758,_0xde4986,_0x233678=null){const _0x2b5c1f=a56_0x804b85,_0x1a83b3={'jusED':function(_0x2317a6,_0xaa139c){return _0x2317a6===_0xaa139c;},'vXzcd':_0x2b5c1f(0x1e6),'MfrUZ':_0x2b5c1f(0x191),'IgBVF':'Device\x20Model\x20is\x20not\x20available','iJTYa':_0x2b5c1f(0x1a4),'oggkT':function(_0x323a55,_0x3c7c05,_0x4c1173){return _0x323a55(_0x3c7c05,_0x4c1173);},'KSDwy':_0x2b5c1f(0x20b),'AiQDj':_0x2b5c1f(0x174),'honKl':function(_0x48e23a,_0x4d376e,_0x15266f){return _0x48e23a(_0x4d376e,_0x15266f);},'Pjhie':_0x2b5c1f(0x19f),'xuugZ':_0x2b5c1f(0x204),'tfUkj':_0x2b5c1f(0x207),'GWYXT':function(_0x2fe07b,_0x433693){return _0x2fe07b(_0x433693);},'ixUPf':function(_0x221b4d,_0x40b239){return _0x221b4d===_0x40b239;},'NFgFH':_0x2b5c1f(0x19c),'LqpbV':'turboscale','bxYhz':_0x2b5c1f(0x163),'Xwlpf':function(_0x5e1243){return _0x5e1243();},'GlZNw':function(_0x281ee5,_0x59da9c){return _0x281ee5&&_0x59da9c;},'NQlxy':function(_0x53df16){return _0x53df16();},'ZwWaC':function(_0x535154){return _0x535154();},'duehn':function(_0x153d10,_0x3ae896){return _0x153d10(_0x3ae896);},'UIPuK':function(_0x5090a4,_0x508894){return _0x5090a4+_0x508894;},'vpbvR':_0x2b5c1f(0x1f5),'uIrbb':function(_0x1ec420){return _0x1ec420();},'frXnz':_0x2b5c1f(0x211)},_0x17499b=this;return _0x1a83b3[_0x2b5c1f(0x172)](o11yErrorHandler,async function _0x3a5243(_0x65c049,_0x19e152,_0x56c018=null){const _0x42424e=_0x2b5c1f;let _0x4a0207=_0x65c049[_0x42424e(0x1b0)],_0x2f581d=null;_0x65c049&&_0x1a83b3['jusED'](typeof _0x65c049['version'],_0x1a83b3[_0x42424e(0x1ee)])?_0x2f581d=_0x65c049['version']():logger[_0x42424e(0x158)](_0x1a83b3['MfrUZ']);let _0x29e0dc=null;_0x65c049&&_0x1a83b3[_0x42424e(0x208)](typeof _0x65c049[_0x42424e(0x1cf)],_0x1a83b3['vXzcd'])?_0x29e0dc=_0x65c049[_0x42424e(0x1cf)]():logger[_0x42424e(0x158)](_0x1a83b3['IgBVF']);let _0x40762b=null,_0x31c866=null,_0x28c151=null,_0x1ebb78=_0x1a83b3[_0x42424e(0x184)];if(_0x65c049['_connection']['isRemote']()||global[_0x42424e(0x171)]&&!process['env'][_0x42424e(0x16b)]){let _0x2befb4=null;_0x1a83b3[_0x42424e(0x21f)](nestedKeyValue,_0x65c049,[_0x1a83b3['KSDwy'],_0x1a83b3['AiQDj']])?_0x2befb4=_0x65c049['_browserType'][_0x42424e(0x174)]:_0x2befb4=_0x1a83b3[_0x42424e(0x172)](nestedKeyValue,_0x19e152,[_0x1a83b3[_0x42424e(0x175)],_0x1a83b3[_0x42424e(0x1e2)],_0x1a83b3[_0x42424e(0x1db)]]);const _0x2e0b14=_0x56c018||_0x2befb4&&_0x2befb4[_0x42424e(0x1b9)];if(_0x2e0b14){_0x1ebb78=_0x1a83b3[_0x42424e(0x15e)](getCloudProviderFromWsEndpoint,_0x2e0b14);if(_0x1a83b3[_0x42424e(0x1f1)](_0x1ebb78,_0x1a83b3['NFgFH']))_0x28c151=constants['ATS_WSS_URL_REGEX'][_0x42424e(0x213)](_0x2e0b14)?_0x1a83b3[_0x42424e(0x1c9)]:_0x1a83b3[_0x42424e(0x1df)],_0x4a0207=_0x1a83b3['GWYXT'](getBrowserFromWSEndpoint,_0x2e0b14)||_0x4a0207,_0x40762b=_0x17499b[_0x42424e(0x1bd)][_0x42424e(0x1cc)],_0x31c866=_0x17499b[_0x42424e(0x1bd)]['platform_version'];else{const _0x16a2ce=await _0x1a83b3[_0x42424e(0x161)](getPlatformDetails);_0x40762b=_0x16a2ce[_0x42424e(0x1da)],_0x31c866=_0x16a2ce[_0x42424e(0x1d6)];}}if(_0x1a83b3[_0x42424e(0x21a)](!_0x40762b,!_0x31c866)&&!_0x1a83b3[_0x42424e(0x1e0)](isBrowserstackInfra)){const _0x42102a=await _0x1a83b3[_0x42424e(0x17c)](getPlatformDetails);_0x40762b=_0x42102a[_0x42424e(0x1da)],_0x31c866=_0x42102a[_0x42424e(0x1d6)];}}else{_0x19e152&&_0x19e152[_0x42424e(0x19f)]['use'][_0x42424e(0x1c6)]?_0x4a0207=_0x1a83b3[_0x42424e(0x1ef)](getBrowserNameFromChannel,_0x19e152['project'][_0x42424e(0x204)][_0x42424e(0x1c6)]):_0x4a0207=_0x1a83b3['UIPuK'](_0x1a83b3[_0x42424e(0x1ae)],_0x4a0207['toLowerCase']());const _0x516765=await _0x1a83b3[_0x42424e(0x18e)](getPlatformDetails);_0x40762b=_0x516765[_0x42424e(0x1da)],_0x31c866=_0x516765[_0x42424e(0x1d6)];}const _0x3cc17d={};_0x3cc17d[_0x42424e(0x20d)]=_0x4a0207,_0x3cc17d[_0x42424e(0x216)]=_0x2f581d,_0x3cc17d[_0x42424e(0x1ce)]={},_0x3cc17d[_0x42424e(0x1cc)]=_0x40762b,_0x3cc17d['platform_version']=_0x31c866,_0x3cc17d[_0x42424e(0x1be)]=_0x28c151;const _0x50def1=_0x3cc17d;_0x29e0dc&&(_0x50def1[_0x42424e(0x1ce)]['deviceModel']=_0x29e0dc);const _0x6165fb={};_0x6165fb[_0x42424e(0x178)]=_0x1ebb78,_0x17499b[_0x42424e(0x1bd)]=Object['assign']({},_0x17499b[_0x42424e(0x1bd)],_0x6165fb,_0x50def1);},_0x1a83b3[_0x2b5c1f(0x166)])(_0x160758,_0xde4986,_0x233678);}static[a56_0x804b85(0x206)](){this['patchConnection'](),this['patchCRConnection']();}static['patchConnection'](){const _0x1b5064=a56_0x804b85,_0x530e95={'QzREv':function(_0xa006fd,_0x1d9db2,_0x3e3ed6){return _0xa006fd(_0x1d9db2,_0x3e3ed6);},'aFzDN':'currentTest','IidnR':_0x1b5064(0x215),'aCcBJ':'titlePath','oiwVo':function(_0x3b5b11,_0xf42cae,_0x29afea){return _0x3b5b11(_0xf42cae,_0x29afea);},'wQHaJ':_0x1b5064(0x194),'ywIOm':'pwPage','BwhPz':function(_0x3441e8,_0x2c263d,_0x3caf4e){return _0x3441e8(_0x2c263d,_0x3caf4e);},'TADKh':function(_0x3376dd,_0x6f740a){return _0x3376dd===_0x6f740a;},'XtFqP':_0x1b5064(0x159),'nvDwA':function(_0x473091,_0x4f6fcf,_0x1ebe6a,_0x1b63d8){return _0x473091(_0x4f6fcf,_0x1ebe6a,_0x1b63d8);},'jkIst':function(_0x2776f8,_0x4caa3c){return _0x2776f8||_0x4caa3c;},'EOgqM':function(_0x271c28,_0x18de40){return _0x271c28(_0x18de40);},'RQqRf':_0x1b5064(0x20e),'oBsOO':function(_0x225f84,_0x1421ff){return _0x225f84!=_0x1421ff;},'gDfbA':function(_0x155fce){return _0x155fce();},'YDjVI':_0x1b5064(0x1b1),'jdwpF':function(_0xc2cef9,_0x3b979b){return _0xc2cef9(_0x3b979b);},'HujBD':_0x1b5064(0x1d1),'oTpdm':_0x1b5064(0x1c5),'yalxE':function(_0x1b3c0d,_0x16fd13){return _0x1b3c0d(_0x16fd13);}},_0x45111e=this;!this[_0x1b5064(0x16e)]&&(this[_0x1b5064(0x16e)]=helper[_0x1b5064(0x190)](),!this['Connection']&&_0x530e95[_0x1b5064(0x17a)](debug,_0x530e95[_0x1b5064(0x1d9)]));const _0x2934a6=this[_0x1b5064(0x16e)];if(_0x530e95[_0x1b5064(0x177)](_0x2934a6,null)&&_0x2934a6[_0x1b5064(0x1ed)][_0x1b5064(0x1eb)])return;try{if(_0x530e95['oBsOO'](_0x2934a6,null)){const _0x59b214=_0x2934a6[_0x1b5064(0x1ed)]['dispatch'],_0x4eb2ef=_0x2934a6[_0x1b5064(0x1ed)]['sendMessageToServer'];_0x530e95[_0x1b5064(0x1fd)](isAccessibilityAutomationSession)&&Object['defineProperty'](_0x2934a6[_0x1b5064(0x1ed)],_0x530e95[_0x1b5064(0x173)],{'get':function(){return async function(){const _0x188f3c=a56_0x2a9f;try{if(!global['bstackPerformA11yScan']&&global[_0x188f3c(0x171)]&&_0x530e95['QzREv'](nestedKeyValue,global[_0x188f3c(0x194)],[_0x530e95[_0x188f3c(0x179)],_0x530e95['IidnR'],_0x530e95[_0x188f3c(0x169)]])&&_0x530e95['oiwVo'](shouldScanTestForAccessibility,global[_0x188f3c(0x194)][_0x188f3c(0x1ea)][_0x188f3c(0x215)]['titlePath'],!![])&&scripts[_0x188f3c(0x1b3)](arguments[0x1])){logger[_0x188f3c(0x158)](_0x188f3c(0x181)+arguments[0x1]),global[_0x188f3c(0x217)]=!![];const _0x1d9f14=_0x530e95[_0x188f3c(0x1fa)](nestedKeyValue,global,[_0x530e95['wQHaJ'],_0x530e95[_0x188f3c(0x183)]]);_0x1d9f14&&logger[_0x188f3c(0x1f8)](_0x188f3c(0x1af)+util[_0x188f3c(0x15f)](await _0x530e95['BwhPz'](performScanWithRetry,_0x1d9f14,arguments[0x1]))),_0x530e95[_0x188f3c(0x1f3)](arguments[0x0][_0x188f3c(0x1e1)],_0x530e95[_0x188f3c(0x18c)])&&global[_0x188f3c(0x15d)]&&logger['info'](_0x188f3c(0x1f6)+util['format'](await _0x530e95[_0x188f3c(0x1ca)](performScanWithRetry,global[_0x188f3c(0x15d)],arguments[0x1],scripts[_0x188f3c(0x16d)])));}}catch(_0x432a0a){logger[_0x188f3c(0x158)](_0x188f3c(0x1a9)+util['format'](_0x432a0a));}return global[_0x188f3c(0x217)]=![],_0x4eb2ef[_0x188f3c(0x1a1)](this,arguments);};}}),!_0x530e95[_0x1b5064(0x1e5)](isFalse,process[_0x1b5064(0x193)][_0x1b5064(0x180)])&&Object[_0x1b5064(0x21b)](_0x2934a6['prototype'],_0x530e95[_0x1b5064(0x1a6)],{'get':function(){return async function _0x4928fc(_0x334b6e){const _0x411f83=a56_0x2a9f;if(BrowserstackCLI[_0x411f83(0x167)]()[_0x411f83(0x196)]()){const _0x5eb91e={};_0x5eb91e[_0x411f83(0x1d4)]=_0x334b6e,await BrowserstackCLI[_0x411f83(0x167)]()[_0x411f83(0x164)]()[_0x411f83(0x1fb)](AutomationFrameworkState[_0x411f83(0x1cb)],HookState[_0x411f83(0x1c8)],_0x5eb91e);}else{const _0x4eaaa9=_0x334b6e&&_0x334b6e[_0x411f83(0x1f7)]&&_0x334b6e[_0x411f83(0x1f7)][_0x411f83(0x165)];if(_0x4eaaa9){const _0x480648=_0x4eaaa9['sessionId'],_0x5b7feb=_0x4eaaa9[_0x411f83(0x18a)];_0x530e95[_0x411f83(0x20a)](!_0x480648,!_0x5b7feb)&&await ClientTroubleShootingService['reportSessionLinkingIssue'](),_0x5b7feb&&(_0x530e95[_0x411f83(0x17a)](debug,_0x411f83(0x17d)+_0x5b7feb[_0x411f83(0x1d5)]()),_0x45111e['currentSessionDetails'][_0x411f83(0x1cc)]=_0x5b7feb[_0x411f83(0x1da)],_0x45111e[_0x411f83(0x1bd)][_0x411f83(0x1fe)]=_0x5b7feb[_0x411f83(0x1d6)]),_0x480648&&(_0x530e95[_0x411f83(0x17a)](debug,'Setting\x20session\x20id\x20received\x20from\x20BS\x20'+_0x480648),_0x45111e[_0x411f83(0x1bd)][_0x411f83(0x19a)]=_0x480648);}}return _0x59b214[_0x411f83(0x1a1)](this,arguments);};}}),_0x2934a6['prototype'][_0x1b5064(0x1eb)]=!![],logger[_0x1b5064(0x158)](_0x530e95[_0x1b5064(0x1b4)]);}}catch(_0x2da841){_0x530e95[_0x1b5064(0x1c0)](debug,_0x1b5064(0x220)+_0x2da841),_0x45111e['sessionError']=_0x2da841['toString']();}}static[a56_0x804b85(0x1d7)](){const _0x1aa556=a56_0x804b85,_0x190a3e={'AJQia':function(_0x3ba894,_0x1782ff){return _0x3ba894(_0x1782ff);},'bSATE':function(_0xca1ad1,_0x217257){return _0xca1ad1(_0x217257);},'NPpzZ':function(_0x9adecc,_0x567004){return _0x9adecc(_0x567004);},'CYBsc':function(_0x2f86bf){return _0x2f86bf();},'nFdDT':function(_0x5b752a,_0xc75db8){return _0x5b752a>=_0xc75db8;},'YQdJG':_0x1aa556(0x210),'ofrQE':function(_0x38b6ab,_0x649544){return _0x38b6ab(_0x649544);},'LntDu':function(_0x4d0c21,_0x28b0aa){return _0x4d0c21(_0x28b0aa);},'vRtTX':_0x1aa556(0x21c),'EdSZi':_0x1aa556(0x1bf),'LiOZH':_0x1aa556(0x1e4),'FFqsV':_0x1aa556(0x1a3),'DsuUA':'crConnection.js','ZNRQB':'Not\x20able\x20to\x20import\x20crConnection','GUOtz':function(_0x3d4b4f,_0x43a919){return _0x3d4b4f(_0x43a919);},'eYjZI':_0x1aa556(0x1e9),'IBUXY':function(_0x2f373f,_0x1a884d){return _0x2f373f!=_0x1a884d;},'YzzvX':_0x1aa556(0x1b7),'dvZnu':function(_0x50d1df,_0xd096f4){return _0x50d1df(_0xd096f4);}},_0x371aaf=this;if(_0x190a3e['CYBsc'](isAccessibilityAutomationSession)){let _0x39b6d8=null,_0x417b4e=![];try{const _0x2f7eaf=helper[_0x1aa556(0x1f2)](FRAMEWORKS[_0x1aa556(0x170)]);_0x417b4e=_0x190a3e[_0x1aa556(0x1dc)](helper['compareVersions'](_0x2f7eaf,_0x190a3e[_0x1aa556(0x198)]),0x0);}catch(_0x9fdc0b){_0x190a3e[_0x1aa556(0x15a)](debug,_0x1aa556(0x189)+_0x9fdc0b[_0x1aa556(0x1d5)]());}if(_0x417b4e)_0x190a3e['LntDu'](debug,_0x190a3e[_0x1aa556(0x1ec)]);else try{const _0x164611=path['join'](_0x190a3e[_0x1aa556(0x214)],_0x190a3e[_0x1aa556(0x202)],_0x190a3e[_0x1aa556(0x20c)],_0x190a3e[_0x1aa556(0x176)]),_0x393320=_0x190a3e[_0x1aa556(0x21d)](importFileFromPWCore,_0x164611);!_0x393320?_0x190a3e[_0x1aa556(0x1de)](debug,_0x190a3e['ZNRQB']):_0x39b6d8=_0x393320[_0x1aa556(0x15b)];}catch(_0x1394b4){_0x190a3e[_0x1aa556(0x1e3)](debug,_0x190a3e[_0x1aa556(0x1f9)]);}try{if(_0x190a3e[_0x1aa556(0x205)](_0x39b6d8,null)){const _0x13c654=_0x39b6d8[_0x1aa556(0x1ed)][_0x1aa556(0x1b7)];Object[_0x1aa556(0x21b)](_0x39b6d8[_0x1aa556(0x1ed)],_0x190a3e[_0x1aa556(0x1bb)],{'get':function(){const _0x468871={'MdLFg':function(_0x5133bb,_0x26c6bf){const _0x293b8b=a56_0x2a9f;return _0x190a3e[_0x293b8b(0x21d)](_0x5133bb,_0x26c6bf);},'pZuyh':function(_0x33cbeb,_0x15086b){return _0x190a3e['bSATE'](_0x33cbeb,_0x15086b);},'rCVoR':function(_0x1654dc,_0x1073b5){const _0x18f100=a56_0x2a9f;return _0x190a3e[_0x18f100(0x212)](_0x1654dc,_0x1073b5);}};return async function _0x3de047(_0x291113){const _0x46e618=a56_0x2a9f;try{if(BrowserstackCLI[_0x46e618(0x167)]()['isRunning']()){const _0x193742={};_0x193742['message']=_0x291113,await BrowserstackCLI[_0x46e618(0x167)]()[_0x46e618(0x164)]()[_0x46e618(0x1fb)](AutomationFrameworkState[_0x46e618(0x1cb)],HookState[_0x46e618(0x1c8)],_0x193742),delete _0x291113[_0x46e618(0x185)];}else{const _0x15894a=_0x291113[_0x46e618(0x185)];if(_0x15894a){delete _0x291113[_0x46e618(0x185)];const _0x388729=_0x15894a[_0x46e618(0x182)],_0x3bf6c0=_0x15894a[_0x46e618(0x18a)];_0x3bf6c0&&(_0x468871[_0x46e618(0x16a)](debug,_0x46e618(0x18f)+_0x3bf6c0[_0x46e618(0x1d5)]()),_0x371aaf[_0x46e618(0x1bd)][_0x46e618(0x1cc)]=_0x3bf6c0[_0x46e618(0x1da)],_0x371aaf['currentSessionDetails'][_0x46e618(0x1fe)]=_0x3bf6c0[_0x46e618(0x1d6)]),_0x388729&&(_0x468871[_0x46e618(0x1ac)](debug,'Setting\x20session\x20id\x20received\x20from\x20browserstack\x20'+_0x388729),_0x371aaf['currentSessionDetails'][_0x46e618(0x19a)]=_0x388729);}}}catch(_0x4bfc51){_0x468871['rCVoR'](debug,_0x46e618(0x1f4)+_0x4bfc51[_0x46e618(0x1d5)]());}return _0x13c654[_0x46e618(0x1a1)](this,arguments);};}});}}catch(_0x37e74a){_0x190a3e['dvZnu'](debug,_0x1aa556(0x1aa)+_0x37e74a),_0x371aaf[_0x1aa556(0x1ad)]=_0x37e74a[_0x1aa556(0x1d5)]();}}}static[a56_0x804b85(0x21e)](){return this['currentSessionDetails'];}}module[a56_0x804b85(0x209)]=PlaywrightSessionDetails;function a56_0x38b6(){const _0x5ee069=['fromEntries','Failed\x20to\x20perform\x20scan\x20','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','cAkMf','pZuyh','sessionError','vpbvR','Page\x20Scan\x20result=','_name','sendMessageToServer','12122104bqCStb','shouldWrapCommand','oTpdm','entries','webkit','_onMessage','../../helpers/test-observability/constants','wsEndpoint','xLXVT','YzzvX','../utils/constants','currentSessionDetails','product','lib','yalxE','vmWhM','5|1|2|4|0|3','../../helpers/test-observability/error-handler','23452319JAFNXt','Successfully\x20patched\x20Connection\x20(sendMessageToServer\x20for\x20a11y,\x20dispatch\x20for\x20o11y)','channel','edge','POST','LqpbV','nvDwA','PLAYWRIGHT_DISPATCH','platform','parse','capabilities','model','../../bin/playwright/accessibility-helper','dispatch','9127895SumzCO','2aEyzIF','message','toString','platformVersion','patchCRConnection','browserName','RQqRf','platformName','tfUkj','nFdDT','5082942oaEUqH','bSATE','bxYhz','NQlxy','_type','xuugZ','GUOtz','server','jdwpF','function','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','9VZohyi','Error\x20in\x20importing\x20crConnection','currentTest','_bstackDispatchPatched','vRtTX','prototype','vXzcd','duehn','aYdYL','ixUPf','getFrameworkVersion','TADKh','Error\x20in\x20finding\x20platform\x20details\x20','playwright-','Driver\x20Scan\x20result=','params','info','eYjZI','oiwVo','trackEvent','./accessibility-helper','gDfbA','platform_version','14UpYfFd','iVyLa','../../helpers/helper','LiOZH','ZIMQZ','use','IBUXY','patch','connectOptions','jusED','exports','jkIst','_browserType','FFqsV','browser','Not\x20able\x20to\x20resolve\x20Connection\x20class','url','1.60.0','setupBrowserDetails','NPpzZ','test','EdSZi','testInfo','browser_version','bstackPerformA11yScan','../../helpers/accessibility-automation/scripts','../../helpers/accessibility-automation/helper','GlZNw','defineProperty','CRConnection\x20patch\x20unavailable\x20on\x20PW>=1.60\x20(server-side\x20class\x20not\x20reachable\x20in\x20SDK\x20process);\x20platform/sessionId\x20capture\x20continues\x20via\x20Connection.dispatch','AJQia','getDetails','oggkT','Error\x20in\x20getting\x20applying\x20Connection\x20patch\x20','12DSfxEr','debug','Page','ofrQE','CRConnection','BSTACK_ATS_URL','__driver','GWYXT','format','bLENc','Xwlpf','../../helpers/test-observability/utils','automate','getAutomationFramework','bsParams','frXnz','getInstance','DQPYS','aCcBJ','MdLFg','BS_A11Y_SKIP_CDP_CONNECT_OVERRIDE','path','performScan','Connection','includes','PLAYWRIGHT','accessibilityPlatform','honKl','YDjVI','_defaultConnectOptions','Pjhie','DsuUA','oBsOO','cloudProvider','aFzDN','EOgqM','QuVdh','ZwWaC','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','hqwDw','BSTACK_URL','BROWSERSTACK_TEST_OBSERVABILITY','Performing\x20scan\x20for\x20','sessionId','ywIOm','iJTYa','bStackParams','split','chrome','../../helpers/accessibility-automation/accessibilityRetryHelper.js','Error\x20evaluating\x20Playwright\x20version\x20for\x20CRConnection\x20patch:\x20','platformDetails','../v2/state/automationFrameworkState.js','XtFqP','util','uIrbb','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','resolveConnectionClass','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','Axjtm','env','__workerDetails','729896iQuaGW','isRunning','KkrDi','YQdJG','safari','bsSessionId','824884ZaKzrW','browserstack','WZBnE','9059520nHYfcd','project','query','apply','9tGoyyg','chromium','local_grid','../v2/state/hookState.js','HujBD','firefox'];a56_0x38b6=function(){return _0x5ee069;};return a56_0x38b6();}
@@ -1 +1 @@
1
- const a56_0x24414c=a56_0x31ee;function a56_0x1f93(){const _0x4722fb=['1807918QPpbOw','16QXcEbq','isRunning','uploadAttachments','98492FVPDRD','evaluate','562144ZuGspv','lpMhH','nOZvS','mBEWa','measureWrapper','wfaQS','592704DVZOQV','857520KvfnXD','bind','pgatb','../../helpers/performance/performance-tester','1940BHnmGN','getInstance','__workerDetails','patchBrowserNewPage','debug','newPage','BROWSERSTACK_TEST_OBSERVABILITY','setCustomTags','apply','253LjzIOA','pWzqz','stringify','o11ySyncDone','../v2/uploadAttachmentsManager','410268AfbiCI','util','../../helpers/test-observability/error-handler','env','20qZhcKT','5928aAOuId','9zoVMeM','browserstack_executor:\x20','_bstackNewPagePatched','annotate','../v2/browserstackCLI','../v2/customTagManager'];a56_0x1f93=function(){return _0x4722fb;};return a56_0x1f93();}function a56_0x31ee(_0x471fd8,_0x4be313){const _0x1f93d5=a56_0x1f93();return a56_0x31ee=function(_0x31ee55,_0x395fb4){_0x31ee55=_0x31ee55-0x155;let _0x1d843e=_0x1f93d5[_0x31ee55];return _0x1d843e;},a56_0x31ee(_0x471fd8,_0x4be313);}(function(_0x462aed,_0x397218){const _0x49f42f=a56_0x31ee,_0x405c2d=_0x462aed();while(!![]){try{const _0x1986b4=-parseInt(_0x49f42f(0x15d))/0x1+parseInt(_0x49f42f(0x164))/0x2+-parseInt(_0x49f42f(0x17c))/0x3*(parseInt(_0x49f42f(0x15b))/0x4)+-parseInt(_0x49f42f(0x168))/0x5*(-parseInt(_0x49f42f(0x17b))/0x6)+-parseInt(_0x49f42f(0x157))/0x7*(parseInt(_0x49f42f(0x158))/0x8)+-parseInt(_0x49f42f(0x163))/0x9*(parseInt(_0x49f42f(0x17a))/0xa)+-parseInt(_0x49f42f(0x171))/0xb*(-parseInt(_0x49f42f(0x176))/0xc);if(_0x1986b4===_0x397218)break;else _0x405c2d['push'](_0x405c2d['shift']());}catch(_0x319375){_0x405c2d['push'](_0x405c2d['shift']());}}}(a56_0x1f93,0x4cb42));const util=require(a56_0x24414c(0x177)),logger=require('../../helpers/logger'),{nestedKeyValue,isFalse}=require('../../helpers/helper'),{o11yErrorHandler}=require(a56_0x24414c(0x178)),PerformanceTester=require(a56_0x24414c(0x167)),{O11y_EVENTS:PerformanceO11yEvents}=require('../../helpers/performance/constants'),BrowserstackCLI=require(a56_0x24414c(0x155)),CustomTagManager=require(a56_0x24414c(0x156)),uploadAttachmentsManager=require(a56_0x24414c(0x175)),doo11ySync=PerformanceTester[a56_0x24414c(0x161)](PerformanceO11yEvents['SYNC'],o11yErrorHandler(async function doo11ySync(_0x43ea46){const _0x25cf69=a56_0x24414c,_0x18e643={'pWzqz':function(_0x2b8154,_0x5541d6,_0x25e7f0){return _0x2b8154(_0x5541d6,_0x25e7f0);},'UCszH':_0x25cf69(0x16a),'nOZvS':'o11ySyncDone','pgatb':_0x25cf69(0x17f),'lpMhH':_0x25cf69(0x16c)};if(_0x18e643[_0x25cf69(0x172)](nestedKeyValue,global,[_0x18e643['UCszH'],_0x18e643[_0x25cf69(0x15f)]]))return;await _0x43ea46[_0x25cf69(0x15c)](_0x5cca4a=>{},_0x25cf69(0x17d)+JSON[_0x25cf69(0x173)]({'action':_0x18e643[_0x25cf69(0x166)],'arguments':{'data':'ObservabilitySync:'+Date['now'](),'level':_0x18e643[_0x25cf69(0x15e)]}})),global['__workerDetails'][_0x25cf69(0x174)]=!![];},'doo11ySync'));exports[a56_0x24414c(0x16b)]=_0x330e70=>{const _0x130d83=a56_0x24414c,_0x339bc5={'mBEWa':function(_0x3759d5,_0x8b50b7){return _0x3759d5(_0x8b50b7);},'wfaQS':function(_0x3ec4cb,_0x2e2d7a,_0x4512aa){return _0x3ec4cb(_0x2e2d7a,_0x4512aa);},'Faioj':_0x130d83(0x16a)};if(!_0x330e70||_0x330e70['_bstackNewPagePatched'])return;const _0x152d6c=_0x330e70[_0x130d83(0x16d)][_0x130d83(0x165)](_0x330e70);_0x330e70['newPage']=async function _0x7c4d9b(){const _0x58d4cc=_0x130d83,_0x4b91f0=await _0x152d6c[_0x58d4cc(0x170)](_0x330e70,arguments);try{!BrowserstackCLI[_0x58d4cc(0x169)]()[_0x58d4cc(0x159)]()&&!_0x339bc5[_0x58d4cc(0x160)](isFalse,process[_0x58d4cc(0x179)][_0x58d4cc(0x16e)])&&await _0x339bc5[_0x58d4cc(0x160)](doo11ySync,_0x4b91f0),BrowserstackCLI[_0x58d4cc(0x169)]()['isRunning']()&&(_0x4b91f0[_0x58d4cc(0x16f)]=async(_0x78bcbb,_0x45ba89,_0x1f0a9b=![])=>{await CustomTagManager['setCustomTags'](_0x78bcbb,_0x45ba89,_0x1f0a9b);},_0x4b91f0['uploadAttachment']=async(_0x372701,_0x3fed2a=![])=>{const _0x29f754=_0x58d4cc;await uploadAttachmentsManager[_0x29f754(0x15a)](_0x372701,_0x3fed2a);});}catch(_0x3fd138){logger[_0x58d4cc(0x16c)]('Error\x20during\x20syncing\x20o11y\x20with\x20automate\x20'+util['format'](_0x3fd138));}return _0x339bc5[_0x58d4cc(0x162)](nestedKeyValue,global,[_0x339bc5['Faioj']])&&(global['__workerDetails']['pwPage']=_0x4b91f0),_0x4b91f0;},_0x330e70[_0x130d83(0x17e)]=!![];};
1
+ const a57_0x2246e3=a57_0x277c;(function(_0xd67a5e,_0x395546){const _0x585959=a57_0x277c,_0x1b2e14=_0xd67a5e();while(!![]){try{const _0x38ecfb=parseInt(_0x585959(0x14b))/0x1*(-parseInt(_0x585959(0x15d))/0x2)+-parseInt(_0x585959(0x146))/0x3*(parseInt(_0x585959(0x14f))/0x4)+parseInt(_0x585959(0x154))/0x5+parseInt(_0x585959(0x14e))/0x6+-parseInt(_0x585959(0x144))/0x7+-parseInt(_0x585959(0x150))/0x8*(parseInt(_0x585959(0x143))/0x9)+parseInt(_0x585959(0x155))/0xa;if(_0x38ecfb===_0x395546)break;else _0x1b2e14['push'](_0x1b2e14['shift']());}catch(_0x10b3dd){_0x1b2e14['push'](_0x1b2e14['shift']());}}}(a57_0x4d5e,0xe867b));function a57_0x277c(_0x122cf2,_0x5f4fcf){const _0x4d5e14=a57_0x4d5e();return a57_0x277c=function(_0x277ca7,_0x569ffd){_0x277ca7=_0x277ca7-0x136;let _0x129f05=_0x4d5e14[_0x277ca7];return _0x129f05;},a57_0x277c(_0x122cf2,_0x5f4fcf);}function a57_0x4d5e(){const _0x149ac5=['bsNfv','XvWOP','../../helpers/helper','getInstance','isRunning','BROWSERSTACK_TEST_OBSERVABILITY','116jvuRMQ','../../helpers/performance/performance-tester','../v2/browserstackCLI','Error\x20during\x20syncing\x20o11y\x20with\x20automate\x20','../v2/uploadAttachmentsManager','env','../v2/customTagManager','now','doo11ySync','format','bind','__workerDetails','evaluate','setCustomTags','Bbxaa','kWkRK','9YgBfCU','424515FCLFFw','util','1076487xgEaPO','_bstackNewPagePatched','debug','SYNC','WVyYn','10429DhBbUm','browserstack_executor:\x20','newPage','9433374hKLFKG','20GxhtRt','5000768XtKGMz','../../helpers/logger','uploadAttachment','uploadAttachments','3173855JqKzAb','18296990ExZOvA','o11ySyncDone'];a57_0x4d5e=function(){return _0x149ac5;};return a57_0x4d5e();}const util=require(a57_0x2246e3(0x145)),logger=require(a57_0x2246e3(0x151)),{nestedKeyValue,isFalse}=require(a57_0x2246e3(0x159)),{o11yErrorHandler}=require('../../helpers/test-observability/error-handler'),PerformanceTester=require(a57_0x2246e3(0x15e)),{O11y_EVENTS:PerformanceO11yEvents}=require('../../helpers/performance/constants'),BrowserstackCLI=require(a57_0x2246e3(0x15f)),CustomTagManager=require(a57_0x2246e3(0x139)),uploadAttachmentsManager=require(a57_0x2246e3(0x137)),doo11ySync=PerformanceTester['measureWrapper'](PerformanceO11yEvents[a57_0x2246e3(0x149)],o11yErrorHandler(async function doo11ySync(_0x40c114){const _0x50627c=a57_0x2246e3,_0xde4324={'XvWOP':function(_0x139b63,_0x3f39e3,_0x5d1b18){return _0x139b63(_0x3f39e3,_0x5d1b18);},'bsNfv':_0x50627c(0x13e),'bgsSz':_0x50627c(0x156),'WVyYn':'annotate','kWkRK':'debug'};if(_0xde4324[_0x50627c(0x158)](nestedKeyValue,global,[_0xde4324[_0x50627c(0x157)],_0xde4324['bgsSz']]))return;await _0x40c114[_0x50627c(0x13f)](_0x84133d=>{},_0x50627c(0x14c)+JSON['stringify']({'action':_0xde4324[_0x50627c(0x14a)],'arguments':{'data':'ObservabilitySync:'+Date[_0x50627c(0x13a)](),'level':_0xde4324[_0x50627c(0x142)]}})),global['__workerDetails']['o11ySyncDone']=!![];},a57_0x2246e3(0x13b)));exports['patchBrowserNewPage']=_0x19c8fc=>{const _0x22eb39=a57_0x2246e3,_0xa4e7a1={'Bbxaa':function(_0x41c66f,_0x43dd43){return _0x41c66f(_0x43dd43);},'Yanmv':function(_0x5cb871,_0x355310){return _0x5cb871(_0x355310);},'AvJMy':function(_0x214221,_0x2b5c6d,_0x4909ca){return _0x214221(_0x2b5c6d,_0x4909ca);},'KbktC':'__workerDetails'};if(!_0x19c8fc||_0x19c8fc[_0x22eb39(0x147)])return;const _0x30676e=_0x19c8fc[_0x22eb39(0x14d)][_0x22eb39(0x13d)](_0x19c8fc);_0x19c8fc['newPage']=async function _0x252857(){const _0xc09c0d=_0x22eb39,_0x309ef9=await _0x30676e['apply'](_0x19c8fc,arguments);try{!BrowserstackCLI[_0xc09c0d(0x15a)]()[_0xc09c0d(0x15b)]()&&!_0xa4e7a1[_0xc09c0d(0x141)](isFalse,process[_0xc09c0d(0x138)][_0xc09c0d(0x15c)])&&await _0xa4e7a1['Yanmv'](doo11ySync,_0x309ef9),BrowserstackCLI[_0xc09c0d(0x15a)]()[_0xc09c0d(0x15b)]()&&(_0x309ef9[_0xc09c0d(0x140)]=async(_0x3945e7,_0x1ec87d,_0x4936a2=![])=>{const _0x42e7b4=_0xc09c0d;await CustomTagManager[_0x42e7b4(0x140)](_0x3945e7,_0x1ec87d,_0x4936a2);},_0x309ef9[_0xc09c0d(0x152)]=async(_0x3babb4,_0x2029ca=![])=>{const _0x52fd8c=_0xc09c0d;await uploadAttachmentsManager[_0x52fd8c(0x153)](_0x3babb4,_0x2029ca);});}catch(_0x4378f5){logger[_0xc09c0d(0x148)](_0xc09c0d(0x136)+util[_0xc09c0d(0x13c)](_0x4378f5));}return _0xa4e7a1['AvJMy'](nestedKeyValue,global,[_0xa4e7a1['KbktC']])&&(global[_0xc09c0d(0x13e)]['pwPage']=_0x309ef9),_0x309ef9;},_0x19c8fc[_0x22eb39(0x147)]=!![];};
@@ -1 +1 @@
1
- const a57_0xa4cbaa=a57_0x54a0;(function(_0x40be7e,_0x7fb20a){const _0x45f6da=a57_0x54a0,_0x3e97b2=_0x40be7e();while(!![]){try{const _0x32fa6b=parseInt(_0x45f6da(0x11d))/0x1*(-parseInt(_0x45f6da(0xc8))/0x2)+-parseInt(_0x45f6da(0x10b))/0x3+parseInt(_0x45f6da(0xf2))/0x4+parseInt(_0x45f6da(0x10a))/0x5*(-parseInt(_0x45f6da(0xcc))/0x6)+parseInt(_0x45f6da(0x115))/0x7+-parseInt(_0x45f6da(0x104))/0x8*(parseInt(_0x45f6da(0xfc))/0x9)+parseInt(_0x45f6da(0xe9))/0xa*(parseInt(_0x45f6da(0xdd))/0xb);if(_0x32fa6b===_0x7fb20a)break;else _0x3e97b2['push'](_0x3e97b2['shift']());}catch(_0x55191c){_0x3e97b2['push'](_0x3e97b2['shift']());}}}(a57_0x3e25,0x3e46a));const path=require(a57_0xa4cbaa(0xfd)),url=require(a57_0xa4cbaa(0xca)),util=require(a57_0xa4cbaa(0xe1)),{nestedKeyValue,isFalse}=require('../../helpers/helper'),{debug,getPlatformDetails}=require(a57_0xa4cbaa(0xc3)),logger=require('../../helpers/logger')[a57_0xa4cbaa(0xea)],constants=require(a57_0xa4cbaa(0xe3)),BrowserstackCLI=require(a57_0xa4cbaa(0x10d)),AutomationFrameworkState=require(a57_0xa4cbaa(0xc1)),HookState=require(a57_0xa4cbaa(0xf5)),getBrowserFromWSEndpoint=_0x3b0f7f=>{const _0x373af6=a57_0xa4cbaa,_0x3da76d={'AROzH':_0x373af6(0xfa),'pjZMf':function(_0x5ebe68,_0x370a05){return _0x5ebe68(_0x370a05);}};try{const _0xce9ca6=url[_0x373af6(0xf9)](_0x3b0f7f),_0x55e0bf=new URLSearchParams(_0xce9ca6[_0x373af6(0x117)]),_0x22fa31=Object[_0x373af6(0x11c)](_0x55e0bf['entries']()),_0x2cf3c0=JSON[_0x373af6(0xf9)](_0x22fa31['caps']);if(_0x2cf3c0&&(_0x2cf3c0[_0x373af6(0xd5)]||_0x2cf3c0[_0x373af6(0xf8)]))return _0x2cf3c0[_0x373af6(0xd5)]||_0x2cf3c0[_0x373af6(0xf8)];return _0x3da76d[_0x373af6(0xee)];}catch(_0x2da224){_0x3da76d[_0x373af6(0xf6)](debug,'Error\x20in\x20getting\x20browser\x20from\x20caps:\x20'+_0x2da224[_0x373af6(0x11e)]());}},getCloudProviderFromWsEndpoint=_0x18e1d0=>{const _0x51ed12=a57_0xa4cbaa,_0x1277e1={};_0x1277e1[_0x51ed12(0x116)]=_0x51ed12(0xc5),_0x1277e1['mgXwr']=_0x51ed12(0xd7);const _0x645965=_0x1277e1;if(_0x18e1d0[_0x51ed12(0xc2)](constants[_0x51ed12(0xd3)])||_0x18e1d0[_0x51ed12(0xc2)](constants[_0x51ed12(0xf7)]))return _0x645965['jzwZX'];return _0x645965[_0x51ed12(0x113)];},a57_0x23d325={};function a57_0x3e25(){const _0x14a991=['test','mgXwr','ENFqV','2211615GUHFXx','jzwZX','query','version','getInstance','platform','RhXLX','fromEntries','3iPiwjP','toString','turboscale','POST','../v2/state/automationFrameworkState.js','includes','../../helpers/test-observability/utils','connection','browserstack','platform_version','getDetails','228838tVPmXh','onmessage','url','format','36BeDWMf','debug','ZlrBl','capabilities','stringify','bStackParams','[PuppeteerSessionDetails]\x20Connection\x20patched\x20for\x20session\x20capture','BSTACK_URL','exports','browser','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','unknown_grid','_bstackPatched','result','product','platformVersion','platformName','479809hpGHTz','trackEvent','sHznv','ATS_WSS_URL_REGEX','util','message','../utils/constants','currentSessionDetails','UknHY','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','Setting\x20session\x20id\x20received\x20from\x20BS\x20','patchConnection','90kkAiyd','winstonLogger','NjIhN','PLAYWRIGHT_DISPATCH','SDUwp','AROzH','cloudProvider','DXinQ','MTsHJ','1077596OtaFCq','apply','lhAlQ','../v2/state/hookState.js','pjZMf','BSTACK_ATS_URL','browserName','parse','chrome','function','9sbsTYa','path','sessionError','setupBrowserDetails','GrZRp','Error\x20in\x20setupBrowserDetails:\x20','bsSessionId','xKPVm','1169760zHgHaP','params','GWSjq','getAutomationFramework','_connection','Qobsu','40sJVPUf','699924FyBNYx','bsParams','../v2/browserstackCLI','automate','platformDetails','Eqmep','assign'];a57_0x3e25=function(){return _0x14a991;};return a57_0x3e25();}a57_0x23d325[a57_0xa4cbaa(0xef)]=undefined,a57_0x23d325[a57_0xa4cbaa(0x102)]=undefined,a57_0x23d325[a57_0xa4cbaa(0xd5)]=undefined,a57_0x23d325['browser_version']=undefined,a57_0x23d325['platform']=undefined,a57_0x23d325[a57_0xa4cbaa(0xc6)]=undefined,a57_0x23d325[a57_0xa4cbaa(0xda)]=undefined,a57_0x23d325[a57_0xa4cbaa(0xcf)]={};class PuppeteerSessionDetails{static [a57_0xa4cbaa(0xe4)]=a57_0x23d325;constructor(){const _0x30d7b6=a57_0xa4cbaa,_0x183d8c={};_0x183d8c[_0x30d7b6(0x103)]=_0x30d7b6(0xd6);const _0x5d0dc0=_0x183d8c;throw new Error(_0x5d0dc0[_0x30d7b6(0x103)]);}static [a57_0xa4cbaa(0xfe)]=null;static async[a57_0xa4cbaa(0xff)](_0x2610a9,_0xb01b3b){const _0x534045=a57_0xa4cbaa,_0x217374={'DXinQ':'chrome','OjAmM':function(_0x3d207,_0x56ec7f){return _0x3d207===_0x56ec7f;},'NjIhN':_0x534045(0xfb),'ZlrBl':'local_grid','MTsHJ':function(_0x38663b,_0x4d47db){return _0x38663b(_0x4d47db);},'lhAlQ':'browserstack','Eqmep':_0x534045(0x11f),'GWSjq':_0x534045(0x10e),'GrZRp':function(_0x57d3df,_0x55c5c0){return _0x57d3df(_0x55c5c0);},'xryVO':function(_0x4c429d){return _0x4c429d();},'UknHY':function(_0x94dd41){return _0x94dd41();}};try{let _0x90d8d6=_0x217374[_0x534045(0xf0)],_0x10d3dd=null;_0x2610a9&&_0x217374['OjAmM'](typeof _0x2610a9['version'],_0x217374[_0x534045(0xeb)])&&(_0x10d3dd=await _0x2610a9[_0x534045(0x118)]());let _0xed7861=null,_0x11b147=null,_0x17b426=null,_0x3fb432=_0x217374[_0x534045(0xce)];if(_0xb01b3b){_0x3fb432=_0x217374[_0x534045(0xf1)](getCloudProviderFromWsEndpoint,_0xb01b3b);if(_0x217374['OjAmM'](_0x3fb432,_0x217374[_0x534045(0xf4)]))_0x17b426=constants['ATS_WSS_URL_REGEX']?constants[_0x534045(0xe0)][_0x534045(0x112)](_0xb01b3b)?_0x217374[_0x534045(0x110)]:_0x217374[_0x534045(0x106)]:_0x217374[_0x534045(0x106)],_0x90d8d6=_0x217374[_0x534045(0x100)](getBrowserFromWSEndpoint,_0xb01b3b)||_0x90d8d6,_0xed7861=this['currentSessionDetails'][_0x534045(0x11a)],_0x11b147=this[_0x534045(0xe4)]['platform_version'];else{const _0x5488de=await _0x217374['xryVO'](getPlatformDetails);_0xed7861=_0x5488de[_0x534045(0xdc)],_0x11b147=_0x5488de[_0x534045(0xdb)];}}else{const _0xf7ca48=await _0x217374[_0x534045(0xe5)](getPlatformDetails);_0xed7861=_0xf7ca48[_0x534045(0xdc)],_0x11b147=_0xf7ca48[_0x534045(0xdb)];}const _0x210734={};_0x210734[_0x534045(0xd5)]=_0x90d8d6,_0x210734['browser_version']=_0x10d3dd,_0x210734[_0x534045(0xcf)]={},_0x210734['platform']=_0xed7861,_0x210734[_0x534045(0xc6)]=_0x11b147,_0x210734[_0x534045(0xda)]=_0x17b426;const _0xbf53af=_0x210734,_0x1273e5={};_0x1273e5[_0x534045(0xef)]=_0x3fb432,this['currentSessionDetails']=Object[_0x534045(0x111)]({},this['currentSessionDetails'],_0x1273e5,_0xbf53af);}catch(_0x589bab){_0x217374[_0x534045(0x100)](debug,_0x534045(0x101)+util[_0x534045(0xcb)](_0x589bab)),this[_0x534045(0xfe)]=_0x589bab[_0x534045(0x11e)]();}}static[a57_0xa4cbaa(0xe8)](_0x116411){const _0x34f229=a57_0xa4cbaa,_0x8f051e={'ENFqV':function(_0x1015f2,_0x36fbf2){return _0x1015f2===_0x36fbf2;},'SDUwp':'string','Qobsu':function(_0x1b8ce6,_0x187fca){return _0x1b8ce6(_0x187fca);},'sHznv':function(_0x4c695b,_0x160c3a){return _0x4c695b(_0x160c3a);},'qJSHV':function(_0x15b102,_0x10aaff){return _0x15b102===_0x10aaff;},'ABfQs':function(_0x13b42e,_0x32167f){return _0x13b42e(_0x32167f);},'RhXLX':_0x34f229(0xd2),'huglD':function(_0x5754d8,_0x1f0041){return _0x5754d8(_0x1f0041);}},_0x2e10a4=this;try{const _0x59c744=_0x116411[_0x34f229(0x108)]||_0x116411[_0x34f229(0xc4)];if(!_0x59c744||_0x59c744[_0x34f229(0xd8)])return;const _0x58964a=_0x59c744[_0x34f229(0xc9)];_0x59c744[_0x34f229(0xc9)]=function(_0xb1531c){const _0x3f7620=_0x34f229;try{const _0x2114ff=_0x8f051e[_0x3f7620(0x114)](typeof _0xb1531c,_0x8f051e[_0x3f7620(0xed)])?JSON[_0x3f7620(0xf9)](_0xb1531c):_0xb1531c,_0x23eada=_0x2114ff?.['bStackParams']||_0x2114ff?.[_0x3f7620(0x10c)]||_0x2114ff?.['params']?.[_0x3f7620(0x10c)]||_0x2114ff?.[_0x3f7620(0x105)]?.['bStackParams']||_0x2114ff?.[_0x3f7620(0xd9)]?.[_0x3f7620(0x10c)]||_0x2114ff?.['result']?.[_0x3f7620(0xd1)];if(_0x23eada){if(BrowserstackCLI['getInstance']()['isRunning']()){const _0x1e255f={};_0x1e255f[_0x3f7620(0xe2)]=_0x2114ff,BrowserstackCLI[_0x3f7620(0x119)]()[_0x3f7620(0x107)]()[_0x3f7620(0xde)](AutomationFrameworkState[_0x3f7620(0xec)],HookState[_0x3f7620(0x120)],_0x1e255f);}else{const _0x5a198f=_0x23eada['sessionId'],_0x5edabf=_0x23eada[_0x3f7620(0x10f)];_0x5edabf&&(_0x8f051e[_0x3f7620(0x109)](debug,_0x3f7620(0xe6)+JSON[_0x3f7620(0xd0)](_0x5edabf)),_0x2e10a4[_0x3f7620(0xe4)][_0x3f7620(0x11a)]=_0x5edabf[_0x3f7620(0xdc)],_0x2e10a4[_0x3f7620(0xe4)][_0x3f7620(0xc6)]=_0x5edabf[_0x3f7620(0xdb)]),_0x5a198f&&(_0x8f051e[_0x3f7620(0xdf)](debug,_0x3f7620(0xe7)+_0x5a198f),_0x2e10a4[_0x3f7620(0xe4)]['bsSessionId']=_0x5a198f);}_0x8f051e['qJSHV'](typeof _0xb1531c,_0x8f051e[_0x3f7620(0xed)])&&(delete _0x2114ff[_0x3f7620(0xd1)],delete _0x2114ff[_0x3f7620(0x10c)],_0x2114ff[_0x3f7620(0x105)]&&(delete _0x2114ff[_0x3f7620(0x105)][_0x3f7620(0x10c)],delete _0x2114ff['params'][_0x3f7620(0xd1)]),_0x2114ff[_0x3f7620(0xd9)]&&(delete _0x2114ff[_0x3f7620(0xd9)][_0x3f7620(0x10c)],delete _0x2114ff[_0x3f7620(0xd9)][_0x3f7620(0xd1)]));}}catch(_0x1490ad){_0x8f051e['ABfQs'](debug,'Error\x20extracting\x20bsParams\x20from\x20CDP\x20message:\x20'+_0x1490ad[_0x3f7620(0xe2)]);}return _0x58964a?.[_0x3f7620(0xf3)](this,arguments);},_0x59c744[_0x34f229(0xd8)]=!![],logger[_0x34f229(0xcd)](_0x8f051e[_0x34f229(0x11b)]);}catch(_0x1bb740){_0x8f051e['huglD'](debug,'Error\x20in\x20patchConnection:\x20'+util[_0x34f229(0xcb)](_0x1bb740)),_0x2e10a4[_0x34f229(0xfe)]=_0x1bb740[_0x34f229(0x11e)]();}}static[a57_0xa4cbaa(0xc7)](){const _0xf7d978=a57_0xa4cbaa;return this[_0xf7d978(0xe4)];}}function a57_0x54a0(_0x4593a3,_0xb3106d){const _0x3e2555=a57_0x3e25();return a57_0x54a0=function(_0x54a0f3,_0x2387e0){_0x54a0f3=_0x54a0f3-0xc1;let _0x1718f1=_0x3e2555[_0x54a0f3];return _0x1718f1;},a57_0x54a0(_0x4593a3,_0xb3106d);}module[a57_0xa4cbaa(0xd4)]=PuppeteerSessionDetails;
1
+ function a58_0x3c46(_0x510052,_0x3185d6){const _0x1b695b=a58_0x1b69();return a58_0x3c46=function(_0x3c46b3,_0x220a29){_0x3c46b3=_0x3c46b3-0x160;let _0x7d70c3=_0x1b695b[_0x3c46b3];return _0x7d70c3;},a58_0x3c46(_0x510052,_0x3185d6);}const a58_0x545e12=a58_0x3c46;(function(_0x322396,_0x41b2bc){const _0x1a24ff=a58_0x3c46,_0x191502=_0x322396();while(!![]){try{const _0x14327e=-parseInt(_0x1a24ff(0x187))/0x1+-parseInt(_0x1a24ff(0x1a4))/0x2*(-parseInt(_0x1a24ff(0x1b1))/0x3)+parseInt(_0x1a24ff(0x195))/0x4+parseInt(_0x1a24ff(0x179))/0x5+parseInt(_0x1a24ff(0x171))/0x6+parseInt(_0x1a24ff(0x17e))/0x7*(parseInt(_0x1a24ff(0x1a0))/0x8)+-parseInt(_0x1a24ff(0x1b9))/0x9;if(_0x14327e===_0x41b2bc)break;else _0x191502['push'](_0x191502['shift']());}catch(_0x2e1de3){_0x191502['push'](_0x191502['shift']());}}}(a58_0x1b69,0xb211b));const path=require(a58_0x545e12(0x18d)),url=require(a58_0x545e12(0x164)),util=require('util'),{nestedKeyValue,isFalse}=require(a58_0x545e12(0x162)),{debug,getPlatformDetails}=require(a58_0x545e12(0x17d)),logger=require(a58_0x545e12(0x1a2))[a58_0x545e12(0x193)],constants=require(a58_0x545e12(0x16f)),BrowserstackCLI=require(a58_0x545e12(0x1aa)),AutomationFrameworkState=require('../v2/state/automationFrameworkState.js'),HookState=require(a58_0x545e12(0x19f)),getBrowserFromWSEndpoint=_0x33c8b3=>{const _0x1ef2dc=a58_0x545e12,_0x4e2a18={'NnPVv':_0x1ef2dc(0x170),'ckVlY':function(_0x4a15b6,_0x1f3df5){return _0x4a15b6(_0x1f3df5);}};try{const _0x4d69ff=url[_0x1ef2dc(0x1ad)](_0x33c8b3),_0x3df9a7=new URLSearchParams(_0x4d69ff[_0x1ef2dc(0x16b)]),_0x24f2b8=Object['fromEntries'](_0x3df9a7[_0x1ef2dc(0x172)]()),_0x47f6e2=JSON['parse'](_0x24f2b8[_0x1ef2dc(0x1a8)]);if(_0x47f6e2&&(_0x47f6e2[_0x1ef2dc(0x16e)]||_0x47f6e2['browserName']))return _0x47f6e2[_0x1ef2dc(0x16e)]||_0x47f6e2[_0x1ef2dc(0x178)];return _0x4e2a18[_0x1ef2dc(0x1b2)];}catch(_0x41ccff){_0x4e2a18['ckVlY'](debug,_0x1ef2dc(0x174)+_0x41ccff[_0x1ef2dc(0x19e)]());}},getCloudProviderFromWsEndpoint=_0xe3814f=>{const _0x28a1d7=a58_0x545e12,_0x20cce2={};_0x20cce2[_0x28a1d7(0x1a1)]='browserstack',_0x20cce2[_0x28a1d7(0x184)]=_0x28a1d7(0x1a6);const _0x55ac7e=_0x20cce2;if(_0xe3814f['includes'](constants['BSTACK_URL'])||_0xe3814f[_0x28a1d7(0x1a3)](constants['BSTACK_ATS_URL']))return _0x55ac7e[_0x28a1d7(0x1a1)];return _0x55ac7e[_0x28a1d7(0x184)];},a58_0x542bc4={};function a58_0x1b69(){const _0x2427ee=['winstonLogger','sHmSJ','2460564pSjjjU','platformName','product','result','PLAYWRIGHT_DISPATCH','RWxmB','Setting\x20session\x20id\x20received\x20from\x20BS\x20','QEcof','platformVersion','toString','../v2/state/hookState.js','1712ZHeemr','IbZuF','../../helpers/logger','includes','4EvLwHL','test','unknown_grid','sessionError','caps','bsParams','../v2/browserstackCLI','onmessage','capabilities','parse','getAutomationFramework','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','rbHUS','843117GhDmJT','NnPVv','_bstackPatched','turboscale','iPWFX','sessionId','platform','ATS_WSS_URL_REGEX','20367504JgCXpv','ELoLt','cloudProvider','bStackParams','../../helpers/helper','patchConnection','url','message','getDetails','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','currentSessionDetails','function','exports','query','gnKXA','POST','browser','../utils/constants','chrome','4606962SaepcV','entries','string','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','_connection','platform_version','JgNVU','browserName','4183540TMVphl','JeRRx','assign','yYRRi','../../helpers/test-observability/utils','29141ZwIPGd','params','connection','Error\x20in\x20patchConnection:\x20','format','browser_version','GlVnv','yhBDh','apply','680209eqxqqU','SEqpe','evEPU','platformDetails','[PuppeteerSessionDetails]\x20Connection\x20patched\x20for\x20session\x20capture','automate','path','debug','stringify','local_grid','version','getInstance'];a58_0x1b69=function(){return _0x2427ee;};return a58_0x1b69();}a58_0x542bc4[a58_0x545e12(0x160)]=undefined,a58_0x542bc4['bsSessionId']=undefined,a58_0x542bc4[a58_0x545e12(0x16e)]=undefined,a58_0x542bc4[a58_0x545e12(0x183)]=undefined,a58_0x542bc4['platform']=undefined,a58_0x542bc4['platform_version']=undefined,a58_0x542bc4[a58_0x545e12(0x197)]=undefined,a58_0x542bc4[a58_0x545e12(0x1ac)]={};class PuppeteerSessionDetails{static [a58_0x545e12(0x168)]=a58_0x542bc4;constructor(){const _0x48dc19=a58_0x545e12,_0xe1328f={};_0xe1328f[_0x48dc19(0x1b5)]=_0x48dc19(0x1af);const _0xbe7f64=_0xe1328f;throw new Error(_0xbe7f64[_0x48dc19(0x1b5)]);}static ['sessionError']=null;static async['setupBrowserDetails'](_0x132a2b,_0xde0678){const _0x2a8ba5=a58_0x545e12,_0x67d4e1={'evEPU':_0x2a8ba5(0x170),'yhBDh':function(_0x13ab25,_0x324f22){return _0x13ab25===_0x324f22;},'RWxmB':_0x2a8ba5(0x169),'yYRRi':_0x2a8ba5(0x190),'gnKXA':function(_0xad6d3,_0x35c3af){return _0xad6d3(_0x35c3af);},'rQCCl':'browserstack','sHmSJ':_0x2a8ba5(0x1b4),'SEqpe':_0x2a8ba5(0x18c),'AdMPW':function(_0x567ea5,_0x40fafc){return _0x567ea5(_0x40fafc);},'ypxzH':function(_0x6a34cb){return _0x6a34cb();},'JeRRx':function(_0x309a86){return _0x309a86();},'LZbvF':function(_0x4c76c0,_0x1e459f){return _0x4c76c0(_0x1e459f);}};try{let _0x306ebd=_0x67d4e1[_0x2a8ba5(0x189)],_0x251e62=null;_0x132a2b&&_0x67d4e1[_0x2a8ba5(0x185)](typeof _0x132a2b[_0x2a8ba5(0x191)],_0x67d4e1[_0x2a8ba5(0x19a)])&&(_0x251e62=await _0x132a2b[_0x2a8ba5(0x191)]());let _0x33a8eb=null,_0x2fead4=null,_0x389ce2=null,_0x12574c=_0x67d4e1[_0x2a8ba5(0x17c)];if(_0xde0678){_0x12574c=_0x67d4e1[_0x2a8ba5(0x16c)](getCloudProviderFromWsEndpoint,_0xde0678);if(_0x67d4e1['yhBDh'](_0x12574c,_0x67d4e1['rQCCl']))_0x389ce2=constants['ATS_WSS_URL_REGEX']?constants[_0x2a8ba5(0x1b8)][_0x2a8ba5(0x1a5)](_0xde0678)?_0x67d4e1[_0x2a8ba5(0x194)]:_0x67d4e1['SEqpe']:_0x67d4e1[_0x2a8ba5(0x188)],_0x306ebd=_0x67d4e1['AdMPW'](getBrowserFromWSEndpoint,_0xde0678)||_0x306ebd,_0x33a8eb=this['currentSessionDetails']['platform'],_0x2fead4=this[_0x2a8ba5(0x168)][_0x2a8ba5(0x176)];else{const _0x24a4a6=await _0x67d4e1['ypxzH'](getPlatformDetails);_0x33a8eb=_0x24a4a6['platformName'],_0x2fead4=_0x24a4a6[_0x2a8ba5(0x19d)];}}else{const _0x534834=await _0x67d4e1[_0x2a8ba5(0x17a)](getPlatformDetails);_0x33a8eb=_0x534834[_0x2a8ba5(0x196)],_0x2fead4=_0x534834[_0x2a8ba5(0x19d)];}const _0x22a5ff={};_0x22a5ff[_0x2a8ba5(0x16e)]=_0x306ebd,_0x22a5ff['browser_version']=_0x251e62,_0x22a5ff[_0x2a8ba5(0x1ac)]={},_0x22a5ff[_0x2a8ba5(0x1b7)]=_0x33a8eb,_0x22a5ff[_0x2a8ba5(0x176)]=_0x2fead4,_0x22a5ff[_0x2a8ba5(0x197)]=_0x389ce2;const _0x775e6c=_0x22a5ff,_0x25e3ea={};_0x25e3ea['cloudProvider']=_0x12574c,this[_0x2a8ba5(0x168)]=Object[_0x2a8ba5(0x17b)]({},this[_0x2a8ba5(0x168)],_0x25e3ea,_0x775e6c);}catch(_0x29cf32){_0x67d4e1['LZbvF'](debug,'Error\x20in\x20setupBrowserDetails:\x20'+util[_0x2a8ba5(0x182)](_0x29cf32)),this[_0x2a8ba5(0x1a7)]=_0x29cf32[_0x2a8ba5(0x19e)]();}}static[a58_0x545e12(0x163)](_0x25061b){const _0x232f99=a58_0x545e12,_0x4436b0={'QEcof':function(_0x16ae3a,_0xe5f741){return _0x16ae3a===_0xe5f741;},'ELoLt':_0x232f99(0x173),'JgNVU':function(_0x469bb7,_0xacf07c){return _0x469bb7(_0xacf07c);},'ISojM':function(_0x8f0653,_0x2eb572){return _0x8f0653===_0x2eb572;},'rbHUS':_0x232f99(0x18b)},_0x4217b7=this;try{const _0x187c56=_0x25061b[_0x232f99(0x175)]||_0x25061b[_0x232f99(0x180)];if(!_0x187c56||_0x187c56[_0x232f99(0x1b3)])return;const _0x14acd7=_0x187c56['onmessage'];_0x187c56[_0x232f99(0x1ab)]=function(_0x53155a){const _0x257892=_0x232f99;try{const _0x3b1016=_0x4436b0[_0x257892(0x19c)](typeof _0x53155a,_0x4436b0[_0x257892(0x1ba)])?JSON['parse'](_0x53155a):_0x53155a,_0x5cf5c6=_0x3b1016?.[_0x257892(0x161)]||_0x3b1016?.['bsParams']||_0x3b1016?.[_0x257892(0x17f)]?.['bsParams']||_0x3b1016?.[_0x257892(0x17f)]?.[_0x257892(0x161)]||_0x3b1016?.[_0x257892(0x198)]?.[_0x257892(0x1a9)]||_0x3b1016?.['result']?.[_0x257892(0x161)];if(_0x5cf5c6){if(BrowserstackCLI[_0x257892(0x192)]()['isRunning']()){const _0x39feb8={};_0x39feb8[_0x257892(0x165)]=_0x3b1016,BrowserstackCLI['getInstance']()[_0x257892(0x1ae)]()['trackEvent'](AutomationFrameworkState[_0x257892(0x199)],HookState[_0x257892(0x16d)],_0x39feb8);}else{const _0x4a9a11=_0x5cf5c6[_0x257892(0x1b6)],_0x3254fc=_0x5cf5c6[_0x257892(0x18a)];_0x3254fc&&(_0x4436b0[_0x257892(0x177)](debug,_0x257892(0x167)+JSON[_0x257892(0x18f)](_0x3254fc)),_0x4217b7[_0x257892(0x168)][_0x257892(0x1b7)]=_0x3254fc[_0x257892(0x196)],_0x4217b7['currentSessionDetails']['platform_version']=_0x3254fc[_0x257892(0x19d)]),_0x4a9a11&&(_0x4436b0[_0x257892(0x177)](debug,_0x257892(0x19b)+_0x4a9a11),_0x4217b7[_0x257892(0x168)]['bsSessionId']=_0x4a9a11);}_0x4436b0['ISojM'](typeof _0x53155a,_0x4436b0['ELoLt'])&&(delete _0x3b1016[_0x257892(0x161)],delete _0x3b1016[_0x257892(0x1a9)],_0x3b1016[_0x257892(0x17f)]&&(delete _0x3b1016[_0x257892(0x17f)][_0x257892(0x1a9)],delete _0x3b1016['params']['bStackParams']),_0x3b1016[_0x257892(0x198)]&&(delete _0x3b1016['result'][_0x257892(0x1a9)],delete _0x3b1016['result'][_0x257892(0x161)]));}}catch(_0x5736e6){_0x4436b0['JgNVU'](debug,'Error\x20extracting\x20bsParams\x20from\x20CDP\x20message:\x20'+_0x5736e6[_0x257892(0x165)]);}return _0x14acd7?.[_0x257892(0x186)](this,arguments);},_0x187c56[_0x232f99(0x1b3)]=!![],logger[_0x232f99(0x18e)](_0x4436b0[_0x232f99(0x1b0)]);}catch(_0x4fe54b){_0x4436b0['JgNVU'](debug,_0x232f99(0x181)+util[_0x232f99(0x182)](_0x4fe54b)),_0x4217b7[_0x232f99(0x1a7)]=_0x4fe54b['toString']();}}static[a58_0x545e12(0x166)](){const _0x20565d=a58_0x545e12;return this[_0x20565d(0x168)];}}module[a58_0x545e12(0x16a)]=PuppeteerSessionDetails;
@@ -1 +1 @@
1
- const a58_0x3171ab=a58_0x46cc;(function(_0x15b447,_0x506b54){const _0x2173be=a58_0x46cc,_0x3913af=_0x15b447();while(!![]){try{const _0x465a0e=-parseInt(_0x2173be(0x191))/0x1*(parseInt(_0x2173be(0x19c))/0x2)+-parseInt(_0x2173be(0x195))/0x3*(parseInt(_0x2173be(0x1b0))/0x4)+parseInt(_0x2173be(0x1b2))/0x5*(-parseInt(_0x2173be(0x189))/0x6)+-parseInt(_0x2173be(0x1a9))/0x7*(parseInt(_0x2173be(0x1ac))/0x8)+parseInt(_0x2173be(0x18a))/0x9*(-parseInt(_0x2173be(0x1a3))/0xa)+parseInt(_0x2173be(0x19f))/0xb+parseInt(_0x2173be(0x1a4))/0xc*(parseInt(_0x2173be(0x1a2))/0xd);if(_0x465a0e===_0x506b54)break;else _0x3913af['push'](_0x3913af['shift']());}catch(_0x11cc8a){_0x3913af['push'](_0x3913af['shift']());}}}(a58_0x1ef1,0xea28b));const {isTrue,isBrowserstackInfra}=require(a58_0x3171ab(0x18c)),setKeepAlive=require(a58_0x3171ab(0x1ad)),util=require(a58_0x3171ab(0x1af)),logger=require(a58_0x3171ab(0x1b9))[a58_0x3171ab(0x1b8)],{shouldProcessEventForTesthub}=require(a58_0x3171ab(0x1a0)),{addRequestSpy}=require(a58_0x3171ab(0x19b)),a58_0x3943a9={};a58_0x3943a9[a58_0x3171ab(0x197)]=undefined,a58_0x3943a9[a58_0x3171ab(0x1b7)]={},a58_0x3943a9[a58_0x3171ab(0x194)]=![],a58_0x3943a9['pwPage']=null,a58_0x3943a9[a58_0x3171ab(0x199)]=![],a58_0x3943a9[a58_0x3171ab(0x1b7)]['id']=undefined,a58_0x3943a9[a58_0x3171ab(0x1b7)][a58_0x3171ab(0x19d)]=undefined;const workerDetails=a58_0x3943a9;global[a58_0x3171ab(0x192)]=workerDetails;function a58_0x1ef1(){const _0x4dbb7b=['../../helpers/logger','puppeteer-core','getPackageVersion','78MRTvaC','6993207eeVIlk','format','../../helpers/helper','debug','skipSessionStatus','[PuppeteerTestSetup]\x20Error\x20reading\x20BrowserStack\x20config:\x20','BROWSERSTACK_PUPPETEER','1KOqaFd','__workerDetails','env','o11ySyncDone','3hdtuAW','jestConfig','workerInfo','__skipSessionName','isPageFixture','[PuppeteerTestSetup]\x20Error\x20bootstrapping\x20BrowserstackCLI:\x20','../../helpers/test-observability/utils','2313194YWVyXJ','testInfo','../v2/browserstackCLI','3173456UwThhm','../../helpers/testhub/utils','true','13cpdFfv','10uRtOHc','68794776yNjDEy','[PuppeteerTestSetup]\x20Error\x20initializing\x20Puppeteer\x20patching:\x20','puppeteer','__skipSessionStatus','getInstance','7zCJFQO','skipSessionName','../utils/puppeteer-patcher','10791656YBJFde','../../helpers/setKeepAlive','../v2/cliUtils','util','2421388NXXAvX','[PuppeteerTestSetup]\x20Patching\x20Puppeteer\x20for\x20Jest','451675McOZMT','bootstrap','[PuppeteerTestSetup]\x20Jest-Puppeteer\x20test\x20setup\x20completed','initializePuppeteerPatching','[PuppeteerTestSetup]\x20Bootstrapping\x20BrowserstackCLI\x20for\x20Jest\x20worker','currentTest','winstonLogger'];a58_0x1ef1=function(){return _0x4dbb7b;};return a58_0x1ef1();}let puppeteerPatcher=null;setKeepAlive();function a58_0x46cc(_0x5368a9,_0x2b7f48){const _0x1ef1c3=a58_0x1ef1();return a58_0x46cc=function(_0x46cc8e,_0x869538){_0x46cc8e=_0x46cc8e-0x188;let _0x25d58c=_0x1ef1c3[_0x46cc8e];return _0x25d58c;},a58_0x46cc(_0x5368a9,_0x2b7f48);}if(global[a58_0x3171ab(0x196)])try{isBrowserstackInfra()?(global['__skipSessionName']=isTrue(global[a58_0x3171ab(0x196)]?.[a58_0x3171ab(0x1aa)]),global['__skipSessionStatus']=isTrue(global[a58_0x3171ab(0x196)]?.[a58_0x3171ab(0x18e)])):(global[a58_0x3171ab(0x198)]=!![],global[a58_0x3171ab(0x1a7)]=!![]);const helper=require('../../helpers/helper'),puppeteerVersion=helper['getPackageVersion'](a58_0x3171ab(0x1a6))||helper[a58_0x3171ab(0x188)](a58_0x3171ab(0x1ba));if(puppeteerVersion)try{logger[a58_0x3171ab(0x18d)](a58_0x3171ab(0x1b1)),puppeteerPatcher=require(a58_0x3171ab(0x1ab)),puppeteerPatcher[a58_0x3171ab(0x1b5)](global[a58_0x3171ab(0x196)]),logger[a58_0x3171ab(0x18d)]('[PuppeteerTestSetup]\x20Puppeteer\x20patching\x20initialized');}catch(a58_0x585f72){logger[a58_0x3171ab(0x18d)](a58_0x3171ab(0x1a5)+util['format'](a58_0x585f72));}if(puppeteerPatcher)try{const BrowserstackCLI=require(a58_0x3171ab(0x19e)),CLIUtils=require(a58_0x3171ab(0x1ae)),{FRAMEWORKS}=require('../utils/constants');BrowserstackCLI['getInstance']()['isCliEnabled']()&&(logger[a58_0x3171ab(0x18d)](a58_0x3171ab(0x1b6)),process[a58_0x3171ab(0x193)][a58_0x3171ab(0x190)]=a58_0x3171ab(0x1a1),CLIUtils['setFrameworkDetail'](FRAMEWORKS['JEST'],FRAMEWORKS['PUPPETEER']),BrowserstackCLI[a58_0x3171ab(0x1a8)]()[a58_0x3171ab(0x1b3)]()['catch'](_0x4ea0d1=>{const _0x396665=a58_0x3171ab;logger[_0x396665(0x18d)](_0x396665(0x19a)+util['format'](_0x4ea0d1));}));}catch(a58_0x5c7469){logger[a58_0x3171ab(0x18d)]('[PuppeteerTestSetup]\x20Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20'+util[a58_0x3171ab(0x18b)](a58_0x5c7469));}shouldProcessEventForTesthub()&&addRequestSpy(![]);}catch(a58_0x2bc0d9){logger['debug'](a58_0x3171ab(0x18f)+util[a58_0x3171ab(0x18b)](a58_0x2bc0d9));}logger[a58_0x3171ab(0x18d)](a58_0x3171ab(0x1b4));
1
+ const a59_0x31f9c=a59_0x582a;(function(_0xd09e82,_0x1ea037){const _0x37b1d8=a59_0x582a,_0x370310=_0xd09e82();while(!![]){try{const _0x499b63=-parseInt(_0x37b1d8(0x1e6))/0x1+-parseInt(_0x37b1d8(0x1c1))/0x2+parseInt(_0x37b1d8(0x1f0))/0x3*(-parseInt(_0x37b1d8(0x1ed))/0x4)+parseInt(_0x37b1d8(0x1c5))/0x5+-parseInt(_0x37b1d8(0x1e5))/0x6+parseInt(_0x37b1d8(0x1d2))/0x7*(-parseInt(_0x37b1d8(0x1d9))/0x8)+parseInt(_0x37b1d8(0x1ce))/0x9;if(_0x499b63===_0x1ea037)break;else _0x370310['push'](_0x370310['shift']());}catch(_0x173e1d){_0x370310['push'](_0x370310['shift']());}}}(a59_0x448c,0x35f1f));const {isTrue,isBrowserstackInfra}=require(a59_0x31f9c(0x1d6)),setKeepAlive=require('../../helpers/setKeepAlive'),util=require('util'),logger=require('../../helpers/logger')['winstonLogger'],{shouldProcessEventForTesthub}=require(a59_0x31f9c(0x1da)),{addRequestSpy}=require(a59_0x31f9c(0x1e1)),a59_0x52a942={};a59_0x52a942['workerInfo']=undefined,a59_0x52a942[a59_0x31f9c(0x1e9)]={},a59_0x52a942[a59_0x31f9c(0x1ca)]=![],a59_0x52a942[a59_0x31f9c(0x1c7)]=null,a59_0x52a942[a59_0x31f9c(0x1d5)]=![],a59_0x52a942[a59_0x31f9c(0x1e9)]['id']=undefined,a59_0x52a942[a59_0x31f9c(0x1e9)][a59_0x31f9c(0x1de)]=undefined;function a59_0x582a(_0x4dc02e,_0x1f65f8){const _0x448c80=a59_0x448c();return a59_0x582a=function(_0x582af3,_0x222cc2){_0x582af3=_0x582af3-0x1c1;let _0x374a59=_0x448c80[_0x582af3];return _0x374a59;},a59_0x582a(_0x4dc02e,_0x1f65f8);}const workerDetails=a59_0x52a942;global[a59_0x31f9c(0x1dc)]=workerDetails;let puppeteerPatcher=null;setKeepAlive();function a59_0x448c(){const _0x3cc530=['../v2/browserstackCLI','13453470cTDAQC','setFrameworkDetail','bootstrap','[PuppeteerTestSetup]\x20Error\x20bootstrapping\x20BrowserstackCLI:\x20','1162WsaBVQ','format','[PuppeteerTestSetup]\x20Bootstrapping\x20BrowserstackCLI\x20for\x20Jest\x20worker','isPageFixture','../../helpers/helper','BROWSERSTACK_PUPPETEER','env','20376dcxDZm','../../helpers/testhub/utils','skipSessionStatus','__workerDetails','isCliEnabled','testInfo','skipSessionName','[PuppeteerTestSetup]\x20Jest-Puppeteer\x20test\x20setup\x20completed','../../helpers/test-observability/utils','puppeteer-core','debug','../utils/constants','897072PjCVGR','29684WvYXLl','[PuppeteerTestSetup]\x20Patching\x20Puppeteer\x20for\x20Jest','__skipSessionStatus','currentTest','jestConfig','initializePuppeteerPatching','JEST','7564kEcpCo','[PuppeteerTestSetup]\x20Error\x20reading\x20BrowserStack\x20config:\x20','[PuppeteerTestSetup]\x20Error\x20initializing\x20Puppeteer\x20patching:\x20','657lLyRyc','getInstance','__skipSessionName','748824EfwbYB','true','[PuppeteerTestSetup]\x20Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20','getPackageVersion','583340AoDZmx','../v2/cliUtils','pwPage','../utils/puppeteer-patcher','puppeteer','o11ySyncDone','[PuppeteerTestSetup]\x20Puppeteer\x20patching\x20initialized','PUPPETEER'];a59_0x448c=function(){return _0x3cc530;};return a59_0x448c();}if(global[a59_0x31f9c(0x1ea)])try{isBrowserstackInfra()?(global[a59_0x31f9c(0x1f2)]=isTrue(global[a59_0x31f9c(0x1ea)]?.[a59_0x31f9c(0x1df)]),global[a59_0x31f9c(0x1e8)]=isTrue(global[a59_0x31f9c(0x1ea)]?.[a59_0x31f9c(0x1db)])):(global[a59_0x31f9c(0x1f2)]=!![],global['__skipSessionStatus']=!![]);const helper=require('../../helpers/helper'),puppeteerVersion=helper[a59_0x31f9c(0x1c4)](a59_0x31f9c(0x1c9))||helper[a59_0x31f9c(0x1c4)](a59_0x31f9c(0x1e2));if(puppeteerVersion)try{logger[a59_0x31f9c(0x1e3)](a59_0x31f9c(0x1e7)),puppeteerPatcher=require(a59_0x31f9c(0x1c8)),puppeteerPatcher[a59_0x31f9c(0x1eb)](global[a59_0x31f9c(0x1ea)]),logger['debug'](a59_0x31f9c(0x1cb));}catch(a59_0x27990d){logger[a59_0x31f9c(0x1e3)](a59_0x31f9c(0x1ef)+util[a59_0x31f9c(0x1d3)](a59_0x27990d));}if(puppeteerPatcher)try{const BrowserstackCLI=require(a59_0x31f9c(0x1cd)),CLIUtils=require(a59_0x31f9c(0x1c6)),{FRAMEWORKS}=require(a59_0x31f9c(0x1e4));BrowserstackCLI[a59_0x31f9c(0x1f1)]()[a59_0x31f9c(0x1dd)]()&&(logger[a59_0x31f9c(0x1e3)](a59_0x31f9c(0x1d4)),process[a59_0x31f9c(0x1d8)][a59_0x31f9c(0x1d7)]=a59_0x31f9c(0x1c2),CLIUtils[a59_0x31f9c(0x1cf)](FRAMEWORKS[a59_0x31f9c(0x1ec)],FRAMEWORKS[a59_0x31f9c(0x1cc)]),BrowserstackCLI['getInstance']()[a59_0x31f9c(0x1d0)]()['catch'](_0x4cfd88=>{const _0x25ca19=a59_0x31f9c;logger[_0x25ca19(0x1e3)](_0x25ca19(0x1d1)+util[_0x25ca19(0x1d3)](_0x4cfd88));}));}catch(a59_0x49f220){logger[a59_0x31f9c(0x1e3)](a59_0x31f9c(0x1c3)+util[a59_0x31f9c(0x1d3)](a59_0x49f220));}shouldProcessEventForTesthub()&&addRequestSpy(![]);}catch(a59_0x4cc069){logger[a59_0x31f9c(0x1e3)](a59_0x31f9c(0x1ee)+util['format'](a59_0x4cc069));}logger[a59_0x31f9c(0x1e3)](a59_0x31f9c(0x1e0));
package/src/bin/runner.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a59_0x57e62f=a59_0x322a;function a59_0x322a(_0x25a764,_0x10f3d6){const _0xd8b098=a59_0xd8b0();return a59_0x322a=function(_0x322a8b,_0x4e53bc){_0x322a8b=_0x322a8b-0x15b;let _0x514111=_0xd8b098[_0x322a8b];return _0x514111;},a59_0x322a(_0x25a764,_0x10f3d6);}(function(_0x5b6a95,_0x2c88f1){const _0x5695f1=a59_0x322a,_0x2a7f1a=_0x5b6a95();while(!![]){try{const _0x1a112d=-parseInt(_0x5695f1(0x171))/0x1+-parseInt(_0x5695f1(0x1c4))/0x2+parseInt(_0x5695f1(0x181))/0x3+-parseInt(_0x5695f1(0x16e))/0x4+parseInt(_0x5695f1(0x1eb))/0x5+-parseInt(_0x5695f1(0x166))/0x6+parseInt(_0x5695f1(0x1b3))/0x7*(parseInt(_0x5695f1(0x160))/0x8);if(_0x1a112d===_0x2c88f1)break;else _0x2a7f1a['push'](_0x2a7f1a['shift']());}catch(_0x1d46d0){_0x2a7f1a['push'](_0x2a7f1a['shift']());}}}(a59_0xd8b0,0xee973));const fs=require('fs'),path=require(a59_0x57e62f(0x1f9)),util=require(a59_0x57e62f(0x18c)),spawn=require(a59_0x57e62f(0x210))[a59_0x57e62f(0x182)],{requireModule}=require(a59_0x57e62f(0x1cc)),PerformanceTester=require(a59_0x57e62f(0x1ca)),PerformanceEvents=require('../helpers/performance/constants')[a59_0x57e62f(0x184)],helper=require(a59_0x57e62f(0x1cc)),utilities=require('../helpers/utilities'),{default:BrowserStackSetup}=require(a59_0x57e62f(0x1e0)),{FRAMEWORKS}=require('../helpers/test-observability/constants'),runIntegrations=require('./integrations/command'),yargs=require(a59_0x57e62f(0x1a2)),Constants=require(a59_0x57e62f(0x194)),BrowserstackCLI=require(a59_0x57e62f(0x207)),{isNewman}=require(a59_0x57e62f(0x1d7)),logger=require(a59_0x57e62f(0x1c9))[a59_0x57e62f(0x19d)],origArgs=Object[a59_0x57e62f(0x190)]([],process[a59_0x57e62f(0x211)]),captureError=async(_0xb67b08,_0x4139ac,_0x2556db,_0x4bc42d=null,_0x554569=![])=>{const _0x1ac1e6=a59_0x57e62f,_0x1fb0e7={'aFaEJ':function(_0x497e2e,_0x589883,_0x55057e,_0xd8eb8a){return _0x497e2e(_0x589883,_0x55057e,_0xd8eb8a);},'upWpo':_0x1ac1e6(0x20a)};try{logger[_0x1ac1e6(0x1cb)]('Running\x20SDK\x20with\x20args\x20'+origArgs[_0x1ac1e6(0x1bd)]('\x20')),await _0x1fb0e7[_0x1ac1e6(0x1a0)](_0xb67b08,_0x4139ac,_0x4bc42d,_0x2556db);}catch(_0x22ca3c){process[_0x1ac1e6(0x16c)]=0x1,logger['error'](util[_0x1ac1e6(0x1d6)](_0x22ca3c));const _0x29db3b={'globalException':util['format']('%j',_0x22ca3c)};PerformanceTester[_0x1ac1e6(0x163)](PerformanceEvents['SDK_SETUP'],![],util['format'](_0x22ca3c));if(helper[_0x1ac1e6(0x204)](global[_0x1ac1e6(0x20d)])&&helper[_0x1ac1e6(0x204)](global[_0x1ac1e6(0x1ab)]))return;try{utilities[_0x1ac1e6(0x20b)](_0x1fb0e7[_0x1ac1e6(0x1ed)],_0x29db3b,global['config'],global[_0x1ac1e6(0x1ab)]);}catch(_0x299b74){logger[_0x1ac1e6(0x1a3)]('Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20'+_0x299b74[_0x1ac1e6(0x1f7)]);}try{await helper[_0x1ac1e6(0x186)](global[_0x1ac1e6(0x20d)]);}catch(_0x26fb64){logger[_0x1ac1e6(0x1a3)](_0x1ac1e6(0x197)+_0x26fb64['stack']);}PerformanceTester[_0x1ac1e6(0x163)](PerformanceEvents[_0x1ac1e6(0x1d0)],![],util[_0x1ac1e6(0x1d6)](_0x22ca3c));}finally{!_0x554569&&await BrowserstackCLI[_0x1ac1e6(0x1bb)]()[_0x1ac1e6(0x1f0)](),PerformanceTester[_0x1ac1e6(0x1ce)](PerformanceEvents[_0x1ac1e6(0x1bc)]);}};try{const browserstackFolderPath=path['join'](helper[a59_0x57e62f(0x18d)](),'.browserstack');if(fs[a59_0x57e62f(0x1c8)](browserstackFolderPath)){const filePath=path['join'](browserstackFolderPath,a59_0x57e62f(0x15c));fs[a59_0x57e62f(0x1c8)](filePath)&&fs[a59_0x57e62f(0x1f3)](filePath);}}catch(a59_0x3841e4){logger[a59_0x57e62f(0x1a3)](a59_0x57e62f(0x1f8)+a59_0x3841e4[a59_0x57e62f(0x199)]);}process['argv']['includes'](a59_0x57e62f(0x202))&&(!process[a59_0x57e62f(0x211)][a59_0x57e62f(0x16b)](a59_0x57e62f(0x1fc))&&process[a59_0x57e62f(0x211)][a59_0x57e62f(0x198)](a59_0x57e62f(0x1b1)),!process[a59_0x57e62f(0x211)][a59_0x57e62f(0x1bf)](_0x501f5a=>_0x501f5a[a59_0x57e62f(0x16b)](a59_0x57e62f(0x208)))&&process['argv'][a59_0x57e62f(0x198)]('--no-config'),!process[a59_0x57e62f(0x211)]['includes'](a59_0x57e62f(0x196))&&process[a59_0x57e62f(0x211)][a59_0x57e62f(0x198)](a59_0x57e62f(0x1b8)),helper['findAndReplace'](process[a59_0x57e62f(0x211)],'--require',a59_0x57e62f(0x16f)));PerformanceTester[a59_0x57e62f(0x1ce)](PerformanceEvents['SDK_SETUP']);const a59_0x3b9171={};function a59_0xd8b0(){const _0x5bca1e=['testcafe','framework','DEBUG','IcODR','ZOpZo','slice','kHWGf','--no-opts','HELP','98YboTYn','JEST','HsIxN','setTestObservabilityDisable','dlXJx','--no-package','OregM','eQxSi','getInstance','SDK_CLEANUP','join','szRVA','find','SLdgO','newman','playwright','wrap','980214JpKUHF','AkFMJ','dPqUk','VANILLA','existsSync','../helpers/logger','../helpers/performance/performance-tester','info','../helpers/helper','INFO','start','error','SDK_SETUP','lKfxv','bDint','env','parserConfiguration','ENtvz','format','./newman/helper','jest','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','tYuDY','TUSZH','HST','BROWSERSTACK_CONFIG_FILE_PATH','run','filter','../helpers/BrowserStackSetup','Bvelq','setBrowserStackAutomationDisable','./jest/command','-pw:*','BvqeE','jasmine','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','pw:channel','ats','FYFPl','5253175zqbASx','PLAYWRIGHT','upWpo','handler','./vanilla-js/command','stop','Pfgmq','pw:channel\x20auto-capture\x20seed\x20failed:\x20','unlinkSync','AUpKK','option','NONaE','stack','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','path','strict','usage:\x20$0\x20<command>\x20[args]','--opts','FTRsC','-pw:channel','INTEGRATIONS','boolean','XDDqr','mocha','VQOCM','isUndefined','lWGxK','disableAutoCaptureLogs','./v2/browserstackCLI','--config','zAkzm','SDKTestSuccessful','fireFunnelTestEvent','split','config','uLxrf','sdNbH','child_process','argv','CUCUMBER','.local-not-set.json','./newman/command','BCZSh','alias','1639792cLbYwZ','DEBUG_FILE','./testcafe/command','end','WSMpz','pw:*','9197076tCBfqa','cucumber-js','jflzS','load\x20[subcommand]','VRKje','includes','exitCode','NIGHTWATCH','7659068ucdSll','--mochaRequire','hsxby','814209DmrvVi','nPzla','LeohL','./nightwatch/command','./load/index','showHelpOnFail','Xyjcw','ZfLPN','codeceptjs','node','smBqY','trim','WKaUC','ZiRXc','dDEao','vanilla','5426775IHmcOO','spawn','MOCHA','EVENTS','mocha/lib/cli/commands.js','sendLogs','Ngwjc','Show\x20help','map','sBRfW','mocha/lib/cli/cli.js','util','homedir','BpAAf','TESTCAFE','assign','help','usage','exitProcess','./utils/constants','demandCommand','--package','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','push','message','Nlvvn','Parsing\x20command\x20line\x20arguments','sWznA','winstonLogger','integrations','CqzSS','aFaEJ','JASMINE','yargs','debug','command','EgYYh','OsIjp','gqyfB','getConfigPath','BvAaT'];a59_0xd8b0=function(){return _0x5bca1e;};return a59_0xd8b0();}a59_0x3b9171['dot-notation']=![];const argv=yargs[a59_0x57e62f(0x1d4)](a59_0x3b9171)[a59_0x57e62f(0x192)](a59_0x57e62f(0x1fb))['alias']('v','version')['describe']('v')[a59_0x57e62f(0x15f)]('h',a59_0x57e62f(0x191))[a59_0x57e62f(0x191)](a59_0x57e62f(0x191))[a59_0x57e62f(0x176)](!![],Constants['VERSION'][a59_0x57e62f(0x1b2)])[a59_0x57e62f(0x1a4)](a59_0x57e62f(0x1d8),Constants[a59_0x57e62f(0x1b4)][a59_0x57e62f(0x1cd)],function(_0x12cb02){const _0x1b08d2=a59_0x57e62f,_0x11e040={'kHWGf':'jest','AUpKK':function(_0xa035cd,_0x145d31,_0x48f9d7,_0x1cd088,_0x37f298,_0x2c94ed){return _0xa035cd(_0x145d31,_0x48f9d7,_0x1cd088,_0x37f298,_0x2c94ed);},'FbDSU':function(_0x5846e4,_0x66163b){return _0x5846e4(_0x66163b);},'sdNbH':_0x1b08d2(0x1e3)},_0x2dc3f4=process[_0x1b08d2(0x211)][_0x1b08d2(0x1af)](0x2);helper[_0x1b08d2(0x1b6)](),helper[_0x1b08d2(0x1e2)](),_0x12cb02[_0x1b08d2(0x1fa)](![]);const _0x1e3b22=new BrowserStackSetup(_0x12cb02[_0x1b08d2(0x211)],_0x11e040[_0x1b08d2(0x1b0)]);return _0x11e040[_0x1b08d2(0x1f4)](captureError,_0x11e040['FbDSU'](require,_0x11e040[_0x1b08d2(0x20f)]),_0x12cb02[_0x1b08d2(0x211)],_0x1e3b22,_0x2dc3f4,!![]);})[a59_0x57e62f(0x1a4)](a59_0x57e62f(0x1e6),Constants[a59_0x57e62f(0x1a1)][a59_0x57e62f(0x1cd)],function(_0x349012){const _0x2069de=a59_0x57e62f,_0x2001c4={'BvqeE':_0x2069de(0x1e6),'DiuVM':function(_0x545d25,_0x46c04e,_0xeced65,_0x1ee773,_0x348642,_0x1f9a6a){return _0x545d25(_0x46c04e,_0xeced65,_0x1ee773,_0x348642,_0x1f9a6a);},'smBqY':function(_0x42d408,_0x155efb){return _0x42d408(_0x155efb);},'dlXJx':'./jasmine/command'},_0x40c4b2=process[_0x2069de(0x211)][_0x2069de(0x1af)](0x2);helper[_0x2069de(0x1b6)](),helper[_0x2069de(0x1e2)](),_0x349012[_0x2069de(0x1fa)](![]);const _0x29f6b3=new BrowserStackSetup(_0x349012['argv'],_0x2001c4[_0x2069de(0x1e5)]);return _0x2001c4['DiuVM'](captureError,_0x2001c4[_0x2069de(0x17b)](require,_0x2001c4[_0x2069de(0x1b7)]),_0x349012[_0x2069de(0x211)],_0x29f6b3,_0x40c4b2,!![]);})['command'](a59_0x57e62f(0x202),Constants[a59_0x57e62f(0x183)][a59_0x57e62f(0x1cd)],_0x57e23b=>{const _0x5217b6=a59_0x57e62f,_0x301ba6={'MCvdG':function(_0x254362,_0x1249d6,_0x3e97c5,_0x33f4a8){return _0x254362(_0x1249d6,_0x3e97c5,_0x33f4a8);},'WSMpz':function(_0x238fdc,_0x13143e){return _0x238fdc(_0x13143e);},'eQxSi':'./mocha/command','uLxrf':'mocha','hsxby':_0x5217b6(0x19b),'HsIxN':function(_0x2abf3a,_0x338da7,_0x330c3a){return _0x2abf3a(_0x338da7,_0x330c3a);},'SLdgO':'mocha/lib/cli/run.js','BpAAf':function(_0x438c21,_0x5e3d7a,_0xf9984d){return _0x438c21(_0x5e3d7a,_0xf9984d);},'dPqUk':_0x5217b6(0x185),'lKfxv':function(_0x45885f,_0x5729b4,_0x240303){return _0x45885f(_0x5729b4,_0x240303);},'BCZSh':_0x5217b6(0x18b),'LwbBk':function(_0x1454e4){return _0x1454e4();}};process[_0x5217b6(0x211)]=process[_0x5217b6(0x211)]['slice'](0x1),helper['setTestObservabilityDisable'](),helper['setBrowserStackAutomationDisable']();const _0x3586eb=new BrowserStackSetup(_0x57e23b[_0x5217b6(0x211)],_0x301ba6[_0x5217b6(0x20e)]);logger[_0x5217b6(0x1a3)](_0x301ba6[_0x5217b6(0x170)]);const _0x102d6e=_0x301ba6[_0x5217b6(0x1b5)](requireModule,_0x301ba6[_0x5217b6(0x1c0)],_0x301ba6[_0x5217b6(0x20e)]),_0x91e03b=_0x301ba6[_0x5217b6(0x18e)](requireModule,_0x301ba6[_0x5217b6(0x1c6)],_0x301ba6['uLxrf']);delete _0x102d6e[_0x5217b6(0x1ee)],_0x102d6e[_0x5217b6(0x1ee)]=function(_0x56862f){const _0x3f521d=_0x5217b6;return _0x301ba6['MCvdG'](captureError,_0x301ba6[_0x3f521d(0x164)](require,_0x301ba6[_0x3f521d(0x1ba)]),_0x56862f,_0x3586eb);},_0x91e03b[_0x5217b6(0x1de)]=_0x102d6e;const {main:_0x585bae}=_0x301ba6[_0x5217b6(0x1d1)](requireModule,_0x301ba6[_0x5217b6(0x15e)],_0x301ba6[_0x5217b6(0x20e)]);_0x301ba6['LwbBk'](_0x585bae);})[a59_0x57e62f(0x1a4)](a59_0x57e62f(0x167),Constants[a59_0x57e62f(0x15b)][a59_0x57e62f(0x1cd)],function(_0x1f5058){const _0x44ea8d=a59_0x57e62f,_0x147d46={'NONaE':_0x44ea8d(0x167),'FYFPl':function(_0x148c2c,_0x2517de,_0x2904db,_0xda10a0,_0x2af4e7,_0x2d8217){return _0x148c2c(_0x2517de,_0x2904db,_0xda10a0,_0x2af4e7,_0x2d8217);},'nPzla':function(_0x35f503,_0x155a45){return _0x35f503(_0x155a45);},'zAkzm':'./cucumber-js/command'},_0x27eb73=process[_0x44ea8d(0x211)]['slice'](0x2),_0x341a1b=new BrowserStackSetup(_0x1f5058[_0x44ea8d(0x211)],_0x147d46[_0x44ea8d(0x1f6)]);return _0x147d46[_0x44ea8d(0x1ea)](captureError,_0x147d46[_0x44ea8d(0x172)](require,_0x147d46[_0x44ea8d(0x209)]),_0x1f5058[_0x44ea8d(0x211)],_0x341a1b,_0x27eb73,!![]);})['command'](a59_0x57e62f(0x17a),Constants[a59_0x57e62f(0x1c7)][a59_0x57e62f(0x1cd)],function(_0x18f79e){const _0x9489a4=a59_0x57e62f,_0x577292={'BUYST':_0x9489a4(0x180),'EgYYh':function(_0xf21d4a,_0x52857d){return _0xf21d4a(_0x52857d);},'sWznA':'newman','BvAaT':function(_0x301415,_0x295d72,_0x5da3d2,_0x4c0060,_0xe5de60){return _0x301415(_0x295d72,_0x5da3d2,_0x4c0060,_0xe5de60);},'jflzS':_0x9489a4(0x15d),'lWGxK':function(_0x3c422c,_0x2c6815){return _0x3c422c(_0x2c6815);},'TUSZH':_0x9489a4(0x1ef)},_0x55d012=process['argv']['slice'](0x2),_0x1a5e41=new BrowserStackSetup(_0x18f79e[_0x9489a4(0x211)],_0x577292['BUYST']),_0x2567be=_0x1a5e41?_0x1a5e41[_0x9489a4(0x20d)]:null;if(_0x577292['EgYYh'](isNewman,_0x2567be))return _0x1a5e41['framework']=_0x577292[_0x9489a4(0x19c)],global['framework']=_0x577292[_0x9489a4(0x19c)],_0x577292['BvAaT'](captureError,_0x577292[_0x9489a4(0x1a5)](require,_0x577292[_0x9489a4(0x168)]),_0x18f79e[_0x9489a4(0x211)],_0x1a5e41,_0x55d012);return _0x577292[_0x9489a4(0x1a9)](captureError,_0x577292[_0x9489a4(0x205)](require,_0x577292[_0x9489a4(0x1db)]),_0x18f79e['argv'],_0x1a5e41,_0x55d012);})['command']('nightwatch',Constants[a59_0x57e62f(0x16d)][a59_0x57e62f(0x1cd)],function(_0x1e937a){const _0x3c00d9=a59_0x57e62f,_0x567539={'tYuDY':'nightwatch','Ngwjc':function(_0xe423a1,_0x59ddd9,_0x39a94b,_0x4173e3,_0x4ee198){return _0xe423a1(_0x59ddd9,_0x39a94b,_0x4173e3,_0x4ee198);},'wzzRL':function(_0x49038c,_0x3a6fb2){return _0x49038c(_0x3a6fb2);},'bDint':_0x3c00d9(0x174)},_0xf6763a=process[_0x3c00d9(0x211)]['slice'](0x2),_0xdc00fc=new BrowserStackSetup(_0x1e937a[_0x3c00d9(0x211)],_0x567539[_0x3c00d9(0x1da)]);return _0x567539[_0x3c00d9(0x187)](captureError,_0x567539['wzzRL'](require,_0x567539[_0x3c00d9(0x1d2)]),_0x1e937a[_0x3c00d9(0x211)],_0xdc00fc,_0xf6763a);})[a59_0x57e62f(0x1a4)](a59_0x57e62f(0x179),Constants['CODECEPTJS'][a59_0x57e62f(0x1cd)],function(_0x2171d8){const _0x1c3009=a59_0x57e62f,_0x508d92={'ZfLPN':_0x1c3009(0x179),'WKaUC':function(_0x221f36,_0x525895,_0xddb7a8,_0x6cd7c8,_0x588c72){return _0x221f36(_0x525895,_0xddb7a8,_0x6cd7c8,_0x588c72);},'sBRfW':function(_0x18d2fd,_0x399dad){return _0x18d2fd(_0x399dad);},'Nlvvn':'./codeceptjs/command'},_0xa8c4d3=process[_0x1c3009(0x211)]['slice'](0x2),_0x419690=new BrowserStackSetup(_0x2171d8['argv'],_0x508d92[_0x1c3009(0x178)]);return _0x508d92[_0x1c3009(0x17d)](captureError,_0x508d92[_0x1c3009(0x18a)](require,_0x508d92[_0x1c3009(0x19a)]),_0x2171d8['argv'],_0x419690,_0xa8c4d3);})['command']('ats',Constants[a59_0x57e62f(0x1dc)][a59_0x57e62f(0x1cd)],function(_0x1da9e2){const _0xa95c8b=a59_0x57e62f,_0x3f7012={'VQOCM':function(_0x5ef238,_0x180b75,_0x4a77d5){return _0x5ef238(_0x180b75,_0x4a77d5);},'IcODR':function(_0x2662fc,_0x53da8b){return _0x2662fc(_0x53da8b);},'dDEao':'../../ats/src/index'},_0x55dc2f=process[_0xa95c8b(0x211)][_0xa95c8b(0x1af)](0x2);return _0x3f7012[_0xa95c8b(0x203)](captureError,_0x3f7012[_0xa95c8b(0x1ad)](require,_0x3f7012[_0xa95c8b(0x17f)]),_0x1da9e2);})[a59_0x57e62f(0x1a4)](a59_0x57e62f(0x19e),Constants[a59_0x57e62f(0x1ff)][a59_0x57e62f(0x1cd)],function(_0x560c56){const _0x43dcd9=a59_0x57e62f,_0x54210d={'OregM':function(_0xc805b4,_0x30bea1){return _0xc805b4(_0x30bea1);}};return _0x54210d[_0x43dcd9(0x1b9)](runIntegrations,_0x560c56);})['command'](a59_0x57e62f(0x1c2),Constants['PLAYWRIGHT']['INFO'],function(_0x5a03db){const _0x49396c=a59_0x57e62f,_0x1cba15={'Bvelq':_0x49396c(0x1e8),'Xyjcw':function(_0x224cad,_0x197441){return _0x224cad&&_0x197441;},'LeohL':function(_0x72720e,_0x2d7086,_0x18074d,_0x43fbd0,_0x34e856,_0x3e56f0){return _0x72720e(_0x2d7086,_0x18074d,_0x43fbd0,_0x34e856,_0x3e56f0);},'KOUlU':function(_0x197e3b,_0x55f599){return _0x197e3b(_0x55f599);},'ZiRXc':'./playwright/command'},_0x5de27e=process[_0x49396c(0x211)][_0x49396c(0x1af)](0x2);helper[_0x49396c(0x1a8)](process[_0x49396c(0x211)])&&(process['env'][_0x49396c(0x1dd)]=helper['getConfigPath'](process['argv']));helper[_0x49396c(0x1b6)](),helper[_0x49396c(0x1e2)]();const _0x12d5b2=new BrowserStackSetup(_0x5a03db[_0x49396c(0x211)],FRAMEWORKS[_0x49396c(0x1ec)]);try{if(!_0x12d5b2[_0x49396c(0x20d)]||!_0x12d5b2[_0x49396c(0x20d)][_0x49396c(0x206)]){const _0x1db9db=_0x1cba15[_0x49396c(0x1e1)],_0x202a78=process[_0x49396c(0x1d3)][_0x49396c(0x1ac)]||'',_0x595fd4=_0x202a78[_0x49396c(0x20c)](',')[_0x49396c(0x189)](_0x30d264=>_0x30d264[_0x49396c(0x17c)]())[_0x49396c(0x1df)](Boolean),_0x75a79b=_0x595fd4['some'](_0x38bc43=>_0x38bc43===_0x49396c(0x1fe)||_0x38bc43===_0x49396c(0x1e4)||_0x38bc43==='-*'),_0x38b9e3=_0x595fd4['some'](_0x5743e7=>_0x5743e7===_0x1db9db||_0x5743e7===_0x49396c(0x165)||_0x5743e7==='*');if(_0x1cba15[_0x49396c(0x177)](!_0x75a79b,!_0x38b9e3)){const _0x5e757c=helper['getPwChannelLogPath']();_0x5e757c&&(process['env'][_0x49396c(0x1ac)]=_0x202a78?_0x202a78+','+_0x1db9db:_0x1db9db,!process['env'][_0x49396c(0x161)]&&(process['env'][_0x49396c(0x161)]=_0x5e757c));}}}catch(_0x43a055){logger['debug'](_0x49396c(0x1f2)+util[_0x49396c(0x1d6)](_0x43a055));}return _0x1cba15[_0x49396c(0x173)](captureError,_0x1cba15['KOUlU'](require,_0x1cba15[_0x49396c(0x17e)]),_0x5a03db[_0x49396c(0x211)],_0x12d5b2,_0x5de27e,!![]);})[a59_0x57e62f(0x1a4)](a59_0x57e62f(0x1aa),Constants[a59_0x57e62f(0x18f)][a59_0x57e62f(0x1cd)],function(_0x322bab){const _0x403ed8=a59_0x57e62f,_0x1d7bb3={'AkFMJ':_0x403ed8(0x1aa),'XDDqr':function(_0x281c05,_0x2d9465,_0x31897e,_0x4e0ea6,_0xc33741,_0x35974a){return _0x281c05(_0x2d9465,_0x31897e,_0x4e0ea6,_0xc33741,_0x35974a);},'VRKje':function(_0x3698cb,_0x3e92b9){return _0x3698cb(_0x3e92b9);},'jKvxG':_0x403ed8(0x162)},_0x1fcdd6=process[_0x403ed8(0x211)][_0x403ed8(0x1af)](0x2),_0x20d023=new BrowserStackSetup(_0x322bab[_0x403ed8(0x211)],_0x1d7bb3[_0x403ed8(0x1c5)]);return _0x1d7bb3[_0x403ed8(0x201)](captureError,_0x1d7bb3[_0x403ed8(0x16a)](require,_0x1d7bb3['jKvxG']),_0x322bab[_0x403ed8(0x211)],_0x20d023,_0x1fcdd6,!![]);})[a59_0x57e62f(0x1a4)](a59_0x57e62f(0x169),'Runs\x20the\x20binary\x20with\x20load\x20command',function(_0x54bf65){const _0x27cc72=a59_0x57e62f,_0x4b9cfa={};_0x4b9cfa[_0x27cc72(0x1be)]='help',_0x4b9cfa[_0x27cc72(0x19f)]=_0x27cc72(0x200),_0x4b9cfa[_0x27cc72(0x1a7)]=_0x27cc72(0x188);const _0x53042e=_0x4b9cfa;return _0x54bf65[_0x27cc72(0x191)](![])[_0x27cc72(0x1f5)](_0x53042e[_0x27cc72(0x1be)],{'alias':'h','type':_0x53042e[_0x27cc72(0x19f)],'describe':_0x53042e[_0x27cc72(0x1a7)]})[_0x27cc72(0x1fa)](![])[_0x27cc72(0x193)](![]);},function(_0x1e9090){const _0x5a2f46=a59_0x57e62f,_0xe15ff0={'diquA':function(_0xa71665,_0x35dac3,_0x19c21b){return _0xa71665(_0x35dac3,_0x19c21b);},'ENtvz':function(_0x4f149c,_0x198539){return _0x4f149c(_0x198539);},'Pfgmq':_0x5a2f46(0x175)},_0x43c58b={};return _0x43c58b[_0x5a2f46(0x211)]=_0x1e9090,_0xe15ff0['diquA'](captureError,_0xe15ff0[_0x5a2f46(0x1d5)](require,_0xe15ff0[_0x5a2f46(0x1f1)]),_0x43c58b);})[a59_0x57e62f(0x1a4)](a59_0x57e62f(0x1c1),Constants['NEWMAN']['INFO'],function(_0xe77bd5){const _0x8b1082=a59_0x57e62f,_0x50f839={'FTRsC':'newman','OsIjp':function(_0x1e841c,_0x10a5c8,_0x557d54,_0x5858e3,_0x5b6cf4){return _0x1e841c(_0x10a5c8,_0x557d54,_0x5858e3,_0x5b6cf4);},'ZOpZo':function(_0x1449cc,_0x563168){return _0x1449cc(_0x563168);},'DleQA':_0x8b1082(0x15d)},_0x5377cc=process[_0x8b1082(0x211)][_0x8b1082(0x1af)](0x2);helper[_0x8b1082(0x1b6)](),helper['setBrowserStackAutomationDisable'](),_0xe77bd5['strict'](![]);const _0x2462c8=new BrowserStackSetup(_0xe77bd5['argv'],_0x50f839[_0x8b1082(0x1fd)]);return _0x50f839[_0x8b1082(0x1a6)](captureError,_0x50f839[_0x8b1082(0x1ae)](require,_0x50f839['DleQA']),_0xe77bd5['argv'],_0x2462c8,_0x5377cc);})[a59_0x57e62f(0x195)](0x1,a59_0x57e62f(0x1e7))[a59_0x57e62f(0x1c3)](null)[a59_0x57e62f(0x211)];!helper[a59_0x57e62f(0x204)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a59_0x57e62f(0x1e9)&&console[a59_0x57e62f(0x1cf)](a59_0x57e62f(0x1d9));
2
+ 'use strict';const a60_0x11aa08=a60_0x1d01;(function(_0x29b4e1,_0xf0f35f){const _0x2b21cb=a60_0x1d01,_0x3587ba=_0x29b4e1();while(!![]){try{const _0x296b2e=parseInt(_0x2b21cb(0x1fd))/0x1*(-parseInt(_0x2b21cb(0x208))/0x2)+-parseInt(_0x2b21cb(0x20c))/0x3+parseInt(_0x2b21cb(0x254))/0x4+parseInt(_0x2b21cb(0x22e))/0x5*(parseInt(_0x2b21cb(0x210))/0x6)+parseInt(_0x2b21cb(0x253))/0x7*(-parseInt(_0x2b21cb(0x1ef))/0x8)+parseInt(_0x2b21cb(0x246))/0x9*(parseInt(_0x2b21cb(0x1d7))/0xa)+parseInt(_0x2b21cb(0x24c))/0xb;if(_0x296b2e===_0xf0f35f)break;else _0x3587ba['push'](_0x3587ba['shift']());}catch(_0x1957cf){_0x3587ba['push'](_0x3587ba['shift']());}}}(a60_0x39a3,0x7f4ba));const fs=require('fs'),path=require(a60_0x11aa08(0x269)),util=require(a60_0x11aa08(0x264)),spawn=require(a60_0x11aa08(0x25a))[a60_0x11aa08(0x1eb)],{requireModule}=require('../helpers/helper'),PerformanceTester=require('../helpers/performance/performance-tester'),PerformanceEvents=require(a60_0x11aa08(0x24b))[a60_0x11aa08(0x267)],helper=require(a60_0x11aa08(0x1fa)),utilities=require(a60_0x11aa08(0x218)),{default:BrowserStackSetup}=require(a60_0x11aa08(0x1d8)),{FRAMEWORKS}=require(a60_0x11aa08(0x230)),runIntegrations=require(a60_0x11aa08(0x1ec)),yargs=require(a60_0x11aa08(0x239)),Constants=require('./utils/constants'),BrowserstackCLI=require(a60_0x11aa08(0x1fe)),{isNewman}=require('./newman/helper'),logger=require('../helpers/logger')[a60_0x11aa08(0x220)],origArgs=Object[a60_0x11aa08(0x219)]([],process[a60_0x11aa08(0x247)]),captureError=async(_0x2543ef,_0x5304c6,_0xa75649,_0x230883=null,_0x12041a=![])=>{const _0x1b9780=a60_0x11aa08,_0x2eabf3={'vYskJ':function(_0x2eee26,_0x216e63,_0x83ac2c,_0x5efc5c){return _0x2eee26(_0x216e63,_0x83ac2c,_0x5efc5c);},'hIMhd':_0x1b9780(0x20f)};try{logger[_0x1b9780(0x26d)](_0x1b9780(0x259)+origArgs[_0x1b9780(0x242)]('\x20')),await _0x2eabf3[_0x1b9780(0x1f3)](_0x2543ef,_0x5304c6,_0x230883,_0xa75649);}catch(_0x2cb4fb){process[_0x1b9780(0x1f4)]=0x1,logger[_0x1b9780(0x21c)](util[_0x1b9780(0x215)](_0x2cb4fb));const _0x542f00={'globalException':util['format']('%j',_0x2cb4fb)};PerformanceTester[_0x1b9780(0x1e6)](PerformanceEvents[_0x1b9780(0x271)],![],util[_0x1b9780(0x215)](_0x2cb4fb));if(helper['isUndefined'](global['config'])&&helper[_0x1b9780(0x276)](global[_0x1b9780(0x270)]))return;try{utilities['fireFunnelTestEvent'](_0x2eabf3['hIMhd'],_0x542f00,global[_0x1b9780(0x211)],global[_0x1b9780(0x270)]);}catch(_0x4262f6){logger[_0x1b9780(0x27a)]('Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20'+_0x4262f6[_0x1b9780(0x280)]);}try{await helper[_0x1b9780(0x27c)](global[_0x1b9780(0x211)]);}catch(_0x3dcc95){logger[_0x1b9780(0x27a)](_0x1b9780(0x1dd)+_0x3dcc95[_0x1b9780(0x280)]);}PerformanceTester[_0x1b9780(0x1e6)](PerformanceEvents[_0x1b9780(0x271)],![],util[_0x1b9780(0x215)](_0x2cb4fb));}finally{!_0x12041a&&await BrowserstackCLI[_0x1b9780(0x227)]()['stop'](),PerformanceTester[_0x1b9780(0x277)](PerformanceEvents[_0x1b9780(0x209)]);}};try{const browserstackFolderPath=path['join'](helper[a60_0x11aa08(0x238)](),a60_0x11aa08(0x275));if(fs['existsSync'](browserstackFolderPath)){const filePath=path[a60_0x11aa08(0x242)](browserstackFolderPath,a60_0x11aa08(0x1ff));fs[a60_0x11aa08(0x1fb)](filePath)&&fs[a60_0x11aa08(0x260)](filePath);}}catch(a60_0x4b1a5c){logger[a60_0x11aa08(0x27a)]('Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20'+a60_0x4b1a5c[a60_0x11aa08(0x1e7)]);}function a60_0x1d01(_0x10236d,_0x49e2a7){const _0x39a31=a60_0x39a3();return a60_0x1d01=function(_0x1d015c,_0x3f6352){_0x1d015c=_0x1d015c-0x1d7;let _0x5d523d=_0x39a31[_0x1d015c];return _0x5d523d;},a60_0x1d01(_0x10236d,_0x49e2a7);}process[a60_0x11aa08(0x247)][a60_0x11aa08(0x26f)](a60_0x11aa08(0x236))&&(!process[a60_0x11aa08(0x247)][a60_0x11aa08(0x26f)](a60_0x11aa08(0x1f0))&&process[a60_0x11aa08(0x247)][a60_0x11aa08(0x1f1)](a60_0x11aa08(0x1e2)),!process[a60_0x11aa08(0x247)][a60_0x11aa08(0x25c)](_0x12fd0e=>_0x12fd0e[a60_0x11aa08(0x26f)](a60_0x11aa08(0x25f)))&&process[a60_0x11aa08(0x247)][a60_0x11aa08(0x1f1)](a60_0x11aa08(0x226)),!process[a60_0x11aa08(0x247)][a60_0x11aa08(0x26f)](a60_0x11aa08(0x1da))&&process[a60_0x11aa08(0x247)][a60_0x11aa08(0x1f1)](a60_0x11aa08(0x240)),helper['findAndReplace'](process[a60_0x11aa08(0x247)],'--require',a60_0x11aa08(0x1f5)));PerformanceTester[a60_0x11aa08(0x277)](PerformanceEvents[a60_0x11aa08(0x271)]);const a60_0xa74459={};a60_0xa74459[a60_0x11aa08(0x251)]=![];const argv=yargs[a60_0x11aa08(0x1e5)](a60_0xa74459)['usage']('usage:\x20$0\x20<command>\x20[args]')['alias']('v',a60_0x11aa08(0x257))['describe']('v')[a60_0x11aa08(0x266)]('h',a60_0x11aa08(0x207))[a60_0x11aa08(0x207)]('help')['showHelpOnFail'](!![],Constants[a60_0x11aa08(0x258)][a60_0x11aa08(0x23c)])[a60_0x11aa08(0x228)](a60_0x11aa08(0x231),Constants[a60_0x11aa08(0x22c)]['INFO'],function(_0x451dc6){const _0x53ce37=a60_0x11aa08,_0x8b700d={'Ntvde':'jest','Sauef':function(_0x43bd26,_0x515249,_0x3a55cd,_0x30170c,_0x49a5fd,_0x12a02c){return _0x43bd26(_0x515249,_0x3a55cd,_0x30170c,_0x49a5fd,_0x12a02c);},'AmKyI':function(_0x320813,_0x265a92){return _0x320813(_0x265a92);},'TBiJe':'./jest/command'},_0x275f43=process[_0x53ce37(0x247)][_0x53ce37(0x221)](0x2);helper[_0x53ce37(0x225)](),helper[_0x53ce37(0x1f6)](),_0x451dc6['strict'](![]);const _0x45efd5=new BrowserStackSetup(_0x451dc6['argv'],_0x8b700d[_0x53ce37(0x222)]);return _0x8b700d[_0x53ce37(0x273)](captureError,_0x8b700d['AmKyI'](require,_0x8b700d['TBiJe']),_0x451dc6[_0x53ce37(0x247)],_0x45efd5,_0x275f43,!![]);})[a60_0x11aa08(0x228)](a60_0x11aa08(0x1e1),Constants[a60_0x11aa08(0x26b)][a60_0x11aa08(0x278)],function(_0x3abd10){const _0x3dc24a=a60_0x11aa08,_0x251fdc={'qgDnY':_0x3dc24a(0x1e1),'KKhye':function(_0xa86152,_0x596c03,_0x4db11b,_0x4c9bcb,_0x27f214,_0x4c03bd){return _0xa86152(_0x596c03,_0x4db11b,_0x4c9bcb,_0x27f214,_0x4c03bd);},'ZEKjZ':function(_0x1d1b1a,_0x2268ed){return _0x1d1b1a(_0x2268ed);},'VcOnn':_0x3dc24a(0x22d)},_0x392d9e=process['argv'][_0x3dc24a(0x221)](0x2);helper[_0x3dc24a(0x225)](),helper[_0x3dc24a(0x1f6)](),_0x3abd10[_0x3dc24a(0x213)](![]);const _0x5600f1=new BrowserStackSetup(_0x3abd10[_0x3dc24a(0x247)],_0x251fdc[_0x3dc24a(0x23f)]);return _0x251fdc[_0x3dc24a(0x1d9)](captureError,_0x251fdc[_0x3dc24a(0x1ea)](require,_0x251fdc[_0x3dc24a(0x26c)]),_0x3abd10[_0x3dc24a(0x247)],_0x5600f1,_0x392d9e,!![]);})[a60_0x11aa08(0x228)](a60_0x11aa08(0x236),Constants[a60_0x11aa08(0x255)][a60_0x11aa08(0x278)],_0x49ccb9=>{const _0x5c7265=a60_0x11aa08,_0x44d426={'GEplw':function(_0x1da8b1,_0x356085,_0x133991,_0x1ee667){return _0x1da8b1(_0x356085,_0x133991,_0x1ee667);},'tsPRl':function(_0x5851d4,_0x87d03b){return _0x5851d4(_0x87d03b);},'qECjh':_0x5c7265(0x243),'egjGJ':_0x5c7265(0x236),'bEKum':_0x5c7265(0x214),'kRWMV':function(_0x3f8c89,_0x2661ba,_0x5aadd8){return _0x3f8c89(_0x2661ba,_0x5aadd8);},'zSUdr':_0x5c7265(0x26a),'OJXzC':_0x5c7265(0x249),'JdpRp':function(_0xf0cd56,_0x41c015,_0x4c15c6){return _0xf0cd56(_0x41c015,_0x4c15c6);},'hnXNi':'mocha/lib/cli/cli.js','FcfRQ':function(_0x21a941){return _0x21a941();}};process[_0x5c7265(0x247)]=process[_0x5c7265(0x247)][_0x5c7265(0x221)](0x1),helper['setTestObservabilityDisable'](),helper[_0x5c7265(0x1f6)]();const _0x241c11=new BrowserStackSetup(_0x49ccb9[_0x5c7265(0x247)],_0x44d426['egjGJ']);logger[_0x5c7265(0x27a)](_0x44d426[_0x5c7265(0x1f2)]);const _0x51b4a8=_0x44d426[_0x5c7265(0x223)](requireModule,_0x44d426[_0x5c7265(0x27f)],_0x44d426[_0x5c7265(0x21a)]),_0x1c748f=_0x44d426[_0x5c7265(0x223)](requireModule,_0x44d426['OJXzC'],_0x44d426[_0x5c7265(0x21a)]);delete _0x51b4a8['handler'],_0x51b4a8[_0x5c7265(0x272)]=function(_0x188184){const _0x3c540b=_0x5c7265;return _0x44d426[_0x3c540b(0x25d)](captureError,_0x44d426[_0x3c540b(0x24a)](require,_0x44d426[_0x3c540b(0x202)]),_0x188184,_0x241c11);},_0x1c748f['run']=_0x51b4a8;const {main:_0x314b37}=_0x44d426[_0x5c7265(0x27d)](requireModule,_0x44d426[_0x5c7265(0x22a)],_0x44d426[_0x5c7265(0x21a)]);_0x44d426['FcfRQ'](_0x314b37);})['command']('cucumber-js',Constants[a60_0x11aa08(0x22f)][a60_0x11aa08(0x278)],function(_0xedea6e){const _0x121b03=a60_0x11aa08,_0x57f90e={'vMJHQ':'cucumber-js','bXovU':function(_0x541ffd,_0x58a601,_0x31d36d,_0x4f40b1,_0x1d62d9,_0x32176e){return _0x541ffd(_0x58a601,_0x31d36d,_0x4f40b1,_0x1d62d9,_0x32176e);},'TLgZL':function(_0x301d4c,_0x586aa8){return _0x301d4c(_0x586aa8);},'QmoWr':_0x121b03(0x1de)},_0x39beaf=process[_0x121b03(0x247)][_0x121b03(0x221)](0x2),_0x187af2=new BrowserStackSetup(_0xedea6e[_0x121b03(0x247)],_0x57f90e[_0x121b03(0x244)]);return _0x57f90e['bXovU'](captureError,_0x57f90e['TLgZL'](require,_0x57f90e[_0x121b03(0x233)]),_0xedea6e[_0x121b03(0x247)],_0x187af2,_0x39beaf,!![]);})['command'](a60_0x11aa08(0x261),Constants[a60_0x11aa08(0x1e3)]['INFO'],function(_0x15b68e){const _0x37abdc=a60_0x11aa08,_0x1b342b={'azoQG':_0x37abdc(0x27b),'sfrDz':function(_0x11419b,_0x5c76a8){return _0x11419b(_0x5c76a8);},'YrfOh':'newman','DHqet':function(_0x54a0bd,_0x1fcecd,_0x3385e2,_0x24296b,_0x3fdbc7){return _0x54a0bd(_0x1fcecd,_0x3385e2,_0x24296b,_0x3fdbc7);},'vXVZL':function(_0x21cdb,_0x47bd23){return _0x21cdb(_0x47bd23);},'nTJqU':_0x37abdc(0x201),'ZYZNz':function(_0x5544dc,_0x49d5b1){return _0x5544dc(_0x49d5b1);},'jOXWU':_0x37abdc(0x23e)},_0x2b53fb=process[_0x37abdc(0x247)][_0x37abdc(0x221)](0x2),_0x1104d3=new BrowserStackSetup(_0x15b68e[_0x37abdc(0x247)],_0x1b342b[_0x37abdc(0x23a)]),_0xcb78f1=_0x1104d3?_0x1104d3[_0x37abdc(0x211)]:null;if(_0x1b342b[_0x37abdc(0x212)](isNewman,_0xcb78f1))return _0x1104d3[_0x37abdc(0x270)]=_0x1b342b[_0x37abdc(0x25e)],global[_0x37abdc(0x270)]=_0x1b342b[_0x37abdc(0x25e)],_0x1b342b['DHqet'](captureError,_0x1b342b['vXVZL'](require,_0x1b342b['nTJqU']),_0x15b68e[_0x37abdc(0x247)],_0x1104d3,_0x2b53fb);return _0x1b342b['DHqet'](captureError,_0x1b342b['ZYZNz'](require,_0x1b342b[_0x37abdc(0x1ed)]),_0x15b68e[_0x37abdc(0x247)],_0x1104d3,_0x2b53fb);})[a60_0x11aa08(0x228)](a60_0x11aa08(0x268),Constants[a60_0x11aa08(0x1df)][a60_0x11aa08(0x278)],function(_0x378da3){const _0x1cdba9=a60_0x11aa08,_0x205117={'OtnEc':_0x1cdba9(0x268),'AoRQM':function(_0x99ccf5,_0x106aa0,_0x44314f,_0x65f360,_0x502e77){return _0x99ccf5(_0x106aa0,_0x44314f,_0x65f360,_0x502e77);},'jNYMC':function(_0x2a4cbe,_0xd50816){return _0x2a4cbe(_0xd50816);},'GDpjJ':'./nightwatch/command'},_0x3ef34d=process[_0x1cdba9(0x247)][_0x1cdba9(0x221)](0x2),_0xfd749b=new BrowserStackSetup(_0x378da3[_0x1cdba9(0x247)],_0x205117[_0x1cdba9(0x232)]);return _0x205117['AoRQM'](captureError,_0x205117['jNYMC'](require,_0x205117['GDpjJ']),_0x378da3[_0x1cdba9(0x247)],_0xfd749b,_0x3ef34d);})[a60_0x11aa08(0x228)](a60_0x11aa08(0x23b),Constants[a60_0x11aa08(0x23d)][a60_0x11aa08(0x278)],function(_0x327a72){const _0xce8d43=a60_0x11aa08,_0x1e2877={'wukZS':_0xce8d43(0x23b),'yskwj':function(_0x21fafa,_0x45d175,_0x409835,_0x26df18,_0x52f652){return _0x21fafa(_0x45d175,_0x409835,_0x26df18,_0x52f652);},'ijQlx':function(_0x5f65fc,_0x3dd07d){return _0x5f65fc(_0x3dd07d);},'ylCzE':_0xce8d43(0x256)},_0x4da1e6=process[_0xce8d43(0x247)][_0xce8d43(0x221)](0x2),_0x4367ed=new BrowserStackSetup(_0x327a72[_0xce8d43(0x247)],_0x1e2877[_0xce8d43(0x20d)]);return _0x1e2877[_0xce8d43(0x1f7)](captureError,_0x1e2877['ijQlx'](require,_0x1e2877[_0xce8d43(0x274)]),_0x327a72[_0xce8d43(0x247)],_0x4367ed,_0x4da1e6);})[a60_0x11aa08(0x228)](a60_0x11aa08(0x25b),Constants[a60_0x11aa08(0x252)][a60_0x11aa08(0x278)],function(_0x45bd49){const _0x45ec78=a60_0x11aa08,_0x3d76b8={'StLXI':function(_0x3336ef,_0x2ceb84,_0x257501){return _0x3336ef(_0x2ceb84,_0x257501);},'GlTkb':function(_0x787144,_0x44a336){return _0x787144(_0x44a336);},'kxERS':'../../ats/src/index'},_0x3c261f=process[_0x45ec78(0x247)][_0x45ec78(0x221)](0x2);return _0x3d76b8['StLXI'](captureError,_0x3d76b8[_0x45ec78(0x237)](require,_0x3d76b8[_0x45ec78(0x1dc)]),_0x45bd49);})['command'](a60_0x11aa08(0x206),Constants['INTEGRATIONS'][a60_0x11aa08(0x278)],function(_0x11baae){const _0x1dbb5d={'zgbdp':function(_0x5c998f,_0xd97a20){return _0x5c998f(_0xd97a20);}};return _0x1dbb5d['zgbdp'](runIntegrations,_0x11baae);})[a60_0x11aa08(0x228)](a60_0x11aa08(0x234),Constants[a60_0x11aa08(0x250)][a60_0x11aa08(0x278)],function(_0x2163bc){const _0xa6343f=a60_0x11aa08,_0x58e6ba={'GqaYV':_0xa6343f(0x21e),'mNXDm':function(_0x49b9b9,_0x14473d){return _0x49b9b9&&_0x14473d;},'YjirM':function(_0x3f11ed,_0x3ebc62,_0x30f4f0,_0x5bd047,_0x2b29b4,_0x4af6fe){return _0x3f11ed(_0x3ebc62,_0x30f4f0,_0x5bd047,_0x2b29b4,_0x4af6fe);},'kmHQH':function(_0x541931,_0x34b6f0){return _0x541931(_0x34b6f0);},'pFxyc':_0xa6343f(0x1e4)},_0x2c9d85=process[_0xa6343f(0x247)][_0xa6343f(0x221)](0x2);helper[_0xa6343f(0x27e)](process[_0xa6343f(0x247)])&&(process[_0xa6343f(0x217)][_0xa6343f(0x224)]=helper[_0xa6343f(0x27e)](process[_0xa6343f(0x247)]));helper['setTestObservabilityDisable'](),helper['setBrowserStackAutomationDisable']();const _0x448140=new BrowserStackSetup(_0x2163bc[_0xa6343f(0x247)],FRAMEWORKS[_0xa6343f(0x250)]);try{if(!_0x448140[_0xa6343f(0x211)]||!_0x448140[_0xa6343f(0x211)][_0xa6343f(0x1e9)]){const _0x101f41=_0x58e6ba[_0xa6343f(0x200)],_0x33f38f=process[_0xa6343f(0x217)][_0xa6343f(0x1e8)]||'',_0xbe7089=_0x33f38f['split'](',')['map'](_0x114df4=>_0x114df4['trim']())[_0xa6343f(0x203)](Boolean),_0x3826b7=_0xbe7089['some'](_0x57db0c=>_0x57db0c===_0xa6343f(0x1db)||_0x57db0c===_0xa6343f(0x22b)||_0x57db0c==='-*'),_0x2a0d30=_0xbe7089['some'](_0x40271d=>_0x40271d===_0x101f41||_0x40271d===_0xa6343f(0x262)||_0x40271d==='*');if(_0x58e6ba[_0xa6343f(0x21d)](!_0x3826b7,!_0x2a0d30)){const _0x4dcb94=helper['getPwChannelLogPath']();_0x4dcb94&&(process['env']['DEBUG']=_0x33f38f?_0x33f38f+','+_0x101f41:_0x101f41,!process[_0xa6343f(0x217)][_0xa6343f(0x204)]&&(process[_0xa6343f(0x217)][_0xa6343f(0x204)]=_0x4dcb94));}}}catch(_0x19d8d6){logger['debug'](_0xa6343f(0x245)+util[_0xa6343f(0x215)](_0x19d8d6));}return _0x58e6ba['YjirM'](captureError,_0x58e6ba[_0xa6343f(0x205)](require,_0x58e6ba['pFxyc']),_0x2163bc['argv'],_0x448140,_0x2c9d85,!![]);})[a60_0x11aa08(0x228)](a60_0x11aa08(0x1ee),Constants['TESTCAFE'][a60_0x11aa08(0x278)],function(_0x20eec7){const _0x111bd5=a60_0x11aa08,_0x454d7d={'rHtOV':'testcafe','sptAM':function(_0x56235e,_0x5c43e9,_0x228619,_0xbd38d8,_0xcd2339,_0x2ef4ce){return _0x56235e(_0x5c43e9,_0x228619,_0xbd38d8,_0xcd2339,_0x2ef4ce);},'oXeEe':function(_0xd35b8c,_0x5e12fb){return _0xd35b8c(_0x5e12fb);},'ZlUQF':'./testcafe/command'},_0x4242e7=process[_0x111bd5(0x247)]['slice'](0x2),_0x17a21c=new BrowserStackSetup(_0x20eec7[_0x111bd5(0x247)],_0x454d7d[_0x111bd5(0x20b)]);return _0x454d7d[_0x111bd5(0x235)](captureError,_0x454d7d['oXeEe'](require,_0x454d7d[_0x111bd5(0x279)]),_0x20eec7['argv'],_0x17a21c,_0x4242e7,!![]);})[a60_0x11aa08(0x228)](a60_0x11aa08(0x1f8),a60_0x11aa08(0x1e0),function(_0x13e543){const _0x2266fd=a60_0x11aa08,_0x2709f1={};_0x2709f1[_0x2266fd(0x216)]=_0x2266fd(0x207),_0x2709f1['vupMZ']=_0x2266fd(0x26e),_0x2709f1[_0x2266fd(0x21f)]=_0x2266fd(0x20a);const _0x6e99a4=_0x2709f1;return _0x13e543[_0x2266fd(0x207)](![])[_0x2266fd(0x1fc)](_0x6e99a4[_0x2266fd(0x216)],{'alias':'h','type':_0x6e99a4[_0x2266fd(0x1f9)],'describe':_0x6e99a4[_0x2266fd(0x21f)]})[_0x2266fd(0x213)](![])[_0x2266fd(0x241)](![]);},function(_0x290b37){const _0x5b5b78=a60_0x11aa08,_0x2af561={'rkaQe':function(_0x330f6f,_0x31299c,_0x99c993){return _0x330f6f(_0x31299c,_0x99c993);},'DrLqr':function(_0x308c2b,_0x199a51){return _0x308c2b(_0x199a51);},'HXPLm':_0x5b5b78(0x24d)},_0x2da727={};return _0x2da727[_0x5b5b78(0x247)]=_0x290b37,_0x2af561[_0x5b5b78(0x21b)](captureError,_0x2af561['DrLqr'](require,_0x2af561['HXPLm']),_0x2da727);})['command'](a60_0x11aa08(0x263),Constants[a60_0x11aa08(0x24f)][a60_0x11aa08(0x278)],function(_0x1f3d4e){const _0xf7f3ab=a60_0x11aa08,_0x7778cc={'AJENP':_0xf7f3ab(0x263),'RrIEh':function(_0x37ddad,_0x57c1ee,_0x396512,_0x190008,_0x40ad33){return _0x37ddad(_0x57c1ee,_0x396512,_0x190008,_0x40ad33);},'ZncEW':function(_0x1c50b6,_0x3f143d){return _0x1c50b6(_0x3f143d);},'ejIsi':'./newman/command'},_0x4ee0b2=process[_0xf7f3ab(0x247)][_0xf7f3ab(0x221)](0x2);helper[_0xf7f3ab(0x225)](),helper[_0xf7f3ab(0x1f6)](),_0x1f3d4e[_0xf7f3ab(0x213)](![]);const _0x231ea3=new BrowserStackSetup(_0x1f3d4e[_0xf7f3ab(0x247)],_0x7778cc[_0xf7f3ab(0x265)]);return _0x7778cc['RrIEh'](captureError,_0x7778cc[_0xf7f3ab(0x229)](require,_0x7778cc[_0xf7f3ab(0x24e)]),_0x1f3d4e[_0xf7f3ab(0x247)],_0x231ea3,_0x4ee0b2);})['demandCommand'](0x1,'You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.')[a60_0x11aa08(0x20e)](null)[a60_0x11aa08(0x247)];function a60_0x39a3(){const _0xfedae1=['pw:*','newman','util','AJENP','alias','EVENTS','nightwatch','path','mocha/lib/cli/run.js','JASMINE','VcOnn','info','boolean','includes','framework','SDK_SETUP','handler','Sauef','ylCzE','.browserstack','isUndefined','start','INFO','ZlUQF','debug','vanilla','sendLogs','JdpRp','getConfigPath','zSUdr','stack','10VECalx','../helpers/BrowserStackSetup','KKhye','--package','-pw:channel','kxERS','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','./cucumber-js/command','NIGHTWATCH','Runs\x20the\x20binary\x20with\x20load\x20command','jasmine','--no-opts','VANILLA','./playwright/command','parserConfiguration','end','message','DEBUG','disableAutoCaptureLogs','ZEKjZ','spawn','./integrations/command','jOXWU','testcafe','2712616XjwuKk','--opts','push','bEKum','vYskJ','exitCode','--mochaRequire','setBrowserStackAutomationDisable','yskwj','load\x20[subcommand]','vupMZ','../helpers/helper','existsSync','option','514103jNYPdp','./v2/browserstackCLI','.local-not-set.json','GqaYV','./newman/command','qECjh','filter','DEBUG_FILE','kmHQH','integrations','help','2irKcQb','SDK_CLEANUP','Show\x20help','rHtOV','1296459bRIhZi','wukZS','wrap','SDKTestSuccessful','1938ngVByf','config','sfrDz','strict','Parsing\x20command\x20line\x20arguments','format','tbVYq','env','../helpers/utilities','assign','egjGJ','rkaQe','error','mNXDm','pw:channel','WNxHk','winstonLogger','slice','Ntvde','kRWMV','BROWSERSTACK_CONFIG_FILE_PATH','setTestObservabilityDisable','--no-config','getInstance','command','ZncEW','hnXNi','-pw:*','JEST','./jasmine/command','13765AqGnXU','CUCUMBER','../helpers/test-observability/constants','jest','OtnEc','QmoWr','playwright','sptAM','mocha','GlTkb','homedir','yargs','azoQG','codeceptjs','HELP','CODECEPTJS','./vanilla-js/command','qgDnY','--no-package','exitProcess','join','./mocha/command','vMJHQ','pw:channel\x20auto-capture\x20seed\x20failed:\x20','7742853SyKcIf','argv','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','mocha/lib/cli/commands.js','tsPRl','../helpers/performance/constants','7128473SqiOUh','./load/index','ejIsi','NEWMAN','PLAYWRIGHT','dot-notation','HST','21enrHzs','349240cdopWa','MOCHA','./codeceptjs/command','version','VERSION','Running\x20SDK\x20with\x20args\x20','child_process','ats','find','GEplw','YrfOh','--config','unlinkSync','node'];a60_0x39a3=function(){return _0xfedae1;};return a60_0x39a3();}!helper[a60_0x11aa08(0x276)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a60_0x11aa08(0x25b)&&console[a60_0x11aa08(0x21c)](a60_0x11aa08(0x248));
package/src/bin/setup.js CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- const a60_0x2c2e74=a60_0x111f;(function(_0xa56e7a,_0x10f4db){const _0x1348ce=a60_0x111f,_0x5dd130=_0xa56e7a();while(!![]){try{const _0x4b7b06=-parseInt(_0x1348ce(0x1b2))/0x1*(parseInt(_0x1348ce(0x1ca))/0x2)+-parseInt(_0x1348ce(0x190))/0x3+parseInt(_0x1348ce(0x1a8))/0x4*(parseInt(_0x1348ce(0x1b8))/0x5)+-parseInt(_0x1348ce(0x1a2))/0x6*(parseInt(_0x1348ce(0x1a9))/0x7)+-parseInt(_0x1348ce(0x1c0))/0x8+parseInt(_0x1348ce(0x189))/0x9*(parseInt(_0x1348ce(0x1a6))/0xa)+parseInt(_0x1348ce(0x1c5))/0xb;if(_0x4b7b06===_0x10f4db)break;else _0x5dd130['push'](_0x5dd130['shift']());}catch(_0x674946){_0x5dd130['push'](_0x5dd130['shift']());}}}(a60_0x9fec,0x2a128));function a60_0x9fec(){const _0x4597b2=['node-setup','8948XFMlLM','21QMBgOr','mocha','join','postinstall','mNVJI','vGAWU','SDKSetup','LCceT','-browserstack','5178LhVJHJ','zkuPY','debug','writeFileSync','MMznP','cwd','335vYoEdS','winstonLogger','../helpers/utilities','bhivo','info','parse','FFIHJ','js-yaml','1740448eOUQJX','Teucp','nightwatch','fireFunnelTestEvent','browserstack-node-sdk\x20','5199920vEUpXE','scripts','load','/package.json','replace','4uwJhCx','yargs','WtarB','UJmEm','eckfD','entries','error','sCSzQ','stringify','isUndefined','165069aKqTRA','cucumber-js','Setup\x20completed','Adding\x20new\x20script(s)\x20in\x20package.json...','/../../browserstack.pw.yml.sample','browserstack-node-sdk','jest','681996cDZTHu','ndrak','indexOf','readFileSync','GUAhn','/../../browserstack.yml.sample','YOUR_USERNAME','key','Creating\x20configuration\x20file...','playwright','includes','push','vGWVX','/browserstack.yml','UKSoY','length','argv','splice','136782CMvtJp','DgAQo','codeceptjs','kXfAZ','40KYZYsZ'];a60_0x9fec=function(){return _0x4597b2;};return a60_0x9fec();}const fs=require('fs'),helper=require('../helpers/helper'),utilities=require(a60_0x2c2e74(0x1ba)),yaml=require(a60_0x2c2e74(0x1bf)),yargs=require(a60_0x2c2e74(0x180)),logger=require('../helpers/logger')[a60_0x2c2e74(0x1b9)],configFileTemplate=__dirname+a60_0x2c2e74(0x195),configFileTemplatePW=__dirname+a60_0x2c2e74(0x18d),configFile=process['cwd']()+a60_0x2c2e74(0x19d),packageFile=process[a60_0x2c2e74(0x1b7)]()+a60_0x2c2e74(0x1c8),frameworks=[a60_0x2c2e74(0x1aa),a60_0x2c2e74(0x18f),a60_0x2c2e74(0x18a),'node',a60_0x2c2e74(0x1c2),a60_0x2c2e74(0x1a4),a60_0x2c2e74(0x199)];let config;logger[a60_0x2c2e74(0x1bc)](a60_0x2c2e74(0x198)),createConfigurationFile(yargs['argv']['username'],yargs[a60_0x2c2e74(0x1a0)][a60_0x2c2e74(0x197)],yargs[a60_0x2c2e74(0x1a0)][a60_0x2c2e74(0x199)]);try{sdkSetup();}catch(a60_0x1ff1b9){logger[a60_0x2c2e74(0x1b4)]('Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20'+a60_0x1ff1b9);}function a60_0x111f(_0x2db2db,_0xe47436){const _0x9fec80=a60_0x9fec();return a60_0x111f=function(_0x111f3a,_0x23a46d){_0x111f3a=_0x111f3a-0x180;let _0x3b7fac=_0x9fec80[_0x111f3a];return _0x3b7fac;},a60_0x111f(_0x2db2db,_0xe47436);}addScriptInPackageJson();function createConfigurationFile(_0x5d9a02,_0x3806ea,_0x445e63=![]){const _0x255dfd=a60_0x2c2e74,_0x395766={};_0x395766[_0x255dfd(0x1ae)]='utf8',_0x395766['ndrak']=_0x255dfd(0x196),_0x395766[_0x255dfd(0x182)]='YOUR_ACCESS_KEY';const _0x19cb48=_0x395766;try{let _0x333263=fs[_0x255dfd(0x193)](_0x445e63?configFileTemplatePW:configFileTemplate,_0x19cb48['vGAWU']);_0x5d9a02&&(_0x333263=_0x333263[_0x255dfd(0x1c9)](_0x19cb48[_0x255dfd(0x191)],_0x5d9a02)),_0x3806ea&&(_0x333263=_0x333263['replace'](_0x19cb48[_0x255dfd(0x182)],_0x3806ea)),config=yaml[_0x255dfd(0x1c7)](_0x333263),fs[_0x255dfd(0x1b5)](configFile,_0x333263,_0x16b565=>{const _0x2ba8eb=_0x255dfd;_0x16b565&&logger[_0x2ba8eb(0x185)](_0x16b565);});}catch(_0x14f8f8){logger['error'](_0x14f8f8);}}function addPostInstallScript(_0xcaef34,_0x25dab0){const _0x24355f=a60_0x2c2e74,_0x1213c3={};_0x1213c3[_0x24355f(0x183)]=_0x24355f(0x1ac),_0x1213c3[_0x24355f(0x186)]='npm\x20update\x20browserstack-node-sdk',_0x1213c3[_0x24355f(0x1be)]='\x20&&\x20npm\x20update\x20browserstack-node-sdk';const _0x41dd32=_0x1213c3;let _0x2d198e=_0xcaef34[_0x41dd32['eckfD']];if(_0x2d198e&&_0x2d198e[_0x24355f(0x19a)](_0x41dd32[_0x24355f(0x186)]))return;!_0x2d198e?_0x2d198e=_0x41dd32[_0x24355f(0x186)]:_0x2d198e+=_0x41dd32[_0x24355f(0x1be)],_0x25dab0[_0x24355f(0x19b)]([_0x41dd32[_0x24355f(0x183)],_0x2d198e]);}function addScriptInPackageJson(){const _0x469512=a60_0x2c2e74,_0x5c8745={'UKSoY':'utf8','kXfAZ':function(_0x176fd0,_0x5a632f){return _0x176fd0<_0x5a632f;},'LCceT':function(_0x441a3b,_0x2f897b,_0x2dd85d){return _0x441a3b(_0x2f897b,_0x2dd85d);},'zkuPY':function(_0x404f8c,_0x4ef44c,_0x55a3d0){return _0x404f8c(_0x4ef44c,_0x55a3d0);},'WtarB':function(_0x35625a,_0x43fb83){return _0x35625a!==_0x43fb83;},'DgAQo':_0x469512(0x18c)},_0x2a4194=JSON[_0x469512(0x1bd)](fs[_0x469512(0x193)](packageFile,_0x5c8745[_0x469512(0x19e)])),_0x4446f9=[];for(let _0x3a94c5=0x0;_0x5c8745['kXfAZ'](_0x3a94c5,frameworks[_0x469512(0x19f)]);_0x3a94c5+=0x1){const _0x2f4406=_0x5c8745[_0x469512(0x1b0)](findScriptsWithFramework,_0x2a4194['scripts'],frameworks[_0x3a94c5]);for(let _0x13510e=0x0;_0x5c8745[_0x469512(0x1a5)](_0x13510e,_0x2f4406[_0x469512(0x19f)]);_0x13510e+=0x1){_0x4446f9[_0x469512(0x19b)](_0x5c8745['LCceT'](getUpdatedCommand,_0x2a4194['scripts'],_0x2f4406[_0x13510e]));}_0x5c8745[_0x469512(0x1b3)](addPostInstallScript,_0x2a4194['scripts'],_0x4446f9);}const _0x25aca0={..._0x2a4194['scripts']},_0x4adebe=_0x25aca0;for(let _0x3e50f8=0x0;_0x5c8745[_0x469512(0x1a5)](_0x3e50f8,_0x4446f9['length']);_0x3e50f8+=0x1){_0x4adebe[_0x4446f9[_0x3e50f8][0x0]]=_0x4446f9[_0x3e50f8][0x1];}_0x5c8745[_0x469512(0x181)](JSON['stringify'](_0x2a4194[_0x469512(0x1c6)]),JSON['stringify'](_0x4adebe))&&(logger[_0x469512(0x1bc)](_0x5c8745[_0x469512(0x1a3)]),_0x2a4194[_0x469512(0x1c6)]=_0x4adebe,fs[_0x469512(0x1b5)](packageFile,JSON[_0x469512(0x187)](_0x2a4194,null,0x2),_0x2e6633=>{const _0x5acda4=_0x469512;_0x2e6633&&logger[_0x5acda4(0x185)](_0x2e6633);}));};function findScriptsWithFramework(_0x569f10,_0x2ff4c0){const _0x590b36=a60_0x2c2e74,_0x4282de={};_0x4282de['iRoBR']=function(_0xf9f1a,_0x1e87cd){return _0xf9f1a<_0x1e87cd;},_0x4282de['mNVJI']=_0x590b36(0x18e);const _0xc236b=_0x4282de,_0x13c91d=[],_0x566321=Object[_0x590b36(0x184)](_0x569f10);for(let _0x5de2ab=0x0;_0xc236b['iRoBR'](_0x5de2ab,_0x566321[_0x590b36(0x19f)]);_0x5de2ab+=0x1){_0x566321[_0x5de2ab][0x1][_0x590b36(0x19a)](_0x2ff4c0)&&!_0x566321[_0x5de2ab][0x1][_0x590b36(0x19a)](_0xc236b[_0x590b36(0x1ad)])&&_0x13c91d[_0x590b36(0x19b)](_0x566321[_0x5de2ab][0x0]);}return _0x13c91d;}function getUpdatedCommand(_0x4f0926,_0x5a81c7){const _0x25af87=a60_0x2c2e74,_0x54992c={};_0x54992c[_0x25af87(0x1c1)]=function(_0x39dfd1,_0x3b22fb){return _0x39dfd1!==_0x3b22fb;},_0x54992c[_0x25af87(0x19c)]=_0x25af87(0x18e),_0x54992c[_0x25af87(0x1bb)]=function(_0x31dbe0,_0x665bd){return _0x31dbe0===_0x665bd;};const _0x5c0bf2=_0x54992c,_0x322e5b=_0x5a81c7+_0x25af87(0x1b1),_0x11902a=_0x4f0926[_0x5a81c7],_0x31f834=_0x11902a['split']('\x20');for(const _0x3bcf98 of frameworks){if(_0x5c0bf2['Teucp'](_0x31f834[_0x25af87(0x192)](_0x3bcf98),-0x1)){_0x31f834[_0x25af87(0x1a1)](_0x31f834[_0x25af87(0x192)](_0x3bcf98),0x0,_0x5c0bf2[_0x25af87(0x19c)]);break;}}let _0x34a140=_0x31f834[_0x25af87(0x1ab)]('\x20');return _0x5c0bf2['bhivo'](_0x34a140,_0x11902a)&&(_0x34a140=_0x25af87(0x1c4)+_0x11902a),[_0x322e5b,_0x34a140];}function sdkSetup(){const _0x3d5e01=a60_0x2c2e74,_0x1a1b59={};_0x1a1b59[_0x3d5e01(0x1b6)]=_0x3d5e01(0x1a7),_0x1a1b59['GUAhn']=_0x3d5e01(0x1af);const _0x44f604=_0x1a1b59;if(helper[_0x3d5e01(0x188)](config))return;config['source']=_0x44f604[_0x3d5e01(0x1b6)];try{utilities[_0x3d5e01(0x1c3)](_0x44f604[_0x3d5e01(0x194)],{},config,'');}catch(_0x2fbe7d){logger[_0x3d5e01(0x1b4)]('Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20'+_0x2fbe7d);}}logger[a60_0x2c2e74(0x1bc)](a60_0x2c2e74(0x18b));
3
+ const a61_0x2e0803=a61_0x192a;(function(_0x4fa7a2,_0x1852e8){const _0x5519d3=a61_0x192a,_0x4dc686=_0x4fa7a2();while(!![]){try{const _0x29d4b1=parseInt(_0x5519d3(0x8d))/0x1*(parseInt(_0x5519d3(0xa6))/0x2)+parseInt(_0x5519d3(0xb7))/0x3+parseInt(_0x5519d3(0xb6))/0x4+-parseInt(_0x5519d3(0xbd))/0x5*(-parseInt(_0x5519d3(0x8a))/0x6)+-parseInt(_0x5519d3(0xa1))/0x7+parseInt(_0x5519d3(0xa0))/0x8+parseInt(_0x5519d3(0xb4))/0x9*(-parseInt(_0x5519d3(0xac))/0xa);if(_0x29d4b1===_0x1852e8)break;else _0x4dc686['push'](_0x4dc686['shift']());}catch(_0xbab254){_0x4dc686['push'](_0x4dc686['shift']());}}}(a61_0x4a95,0x1b3cd));const fs=require('fs'),helper=require(a61_0x2e0803(0xba)),utilities=require(a61_0x2e0803(0xc1)),yaml=require(a61_0x2e0803(0x8b)),yargs=require(a61_0x2e0803(0xc4)),logger=require(a61_0x2e0803(0x83))[a61_0x2e0803(0xbe)],configFileTemplate=__dirname+'/../../browserstack.yml.sample',configFileTemplatePW=__dirname+a61_0x2e0803(0x80),configFile=process[a61_0x2e0803(0xbc)]()+a61_0x2e0803(0xa5),packageFile=process[a61_0x2e0803(0xbc)]()+'/package.json',frameworks=['mocha','jest',a61_0x2e0803(0x8e),a61_0x2e0803(0x93),a61_0x2e0803(0xa2),a61_0x2e0803(0xaf),'playwright'];let config;logger[a61_0x2e0803(0x97)](a61_0x2e0803(0xa8)),createConfigurationFile(yargs['argv'][a61_0x2e0803(0x9f)],yargs[a61_0x2e0803(0xb9)]['key'],yargs[a61_0x2e0803(0xb9)]['playwright']);try{sdkSetup();}catch(a61_0x1a8d1f){logger[a61_0x2e0803(0xbb)](a61_0x2e0803(0xb0)+a61_0x1a8d1f);}function a61_0x192a(_0xd1bc97,_0x391fb3){const _0x4a9597=a61_0x4a95();return a61_0x192a=function(_0x192aec,_0x307fda){_0x192aec=_0x192aec-0x7e;let _0x185d29=_0x4a9597[_0x192aec];return _0x185d29;},a61_0x192a(_0xd1bc97,_0x391fb3);}addScriptInPackageJson();function createConfigurationFile(_0x37bb04,_0x58334e,_0x45d0d1=![]){const _0x573601=a61_0x2e0803,_0x9f8732={};_0x9f8732[_0x573601(0x90)]='utf8',_0x9f8732[_0x573601(0x9c)]=_0x573601(0x98),_0x9f8732[_0x573601(0xb8)]=_0x573601(0xbf);const _0x34b62b=_0x9f8732;try{let _0x4869ea=fs[_0x573601(0x95)](_0x45d0d1?configFileTemplatePW:configFileTemplate,_0x34b62b[_0x573601(0x90)]);_0x37bb04&&(_0x4869ea=_0x4869ea['replace'](_0x34b62b[_0x573601(0x9c)],_0x37bb04)),_0x58334e&&(_0x4869ea=_0x4869ea[_0x573601(0x96)](_0x34b62b[_0x573601(0xb8)],_0x58334e)),config=yaml[_0x573601(0x88)](_0x4869ea),fs[_0x573601(0xa7)](configFile,_0x4869ea,_0xf3aa05=>{const _0x176490=_0x573601;_0xf3aa05&&logger[_0x176490(0x7f)](_0xf3aa05);});}catch(_0x5dda0c){logger[_0x573601(0x7f)](_0x5dda0c);}}function addPostInstallScript(_0x545f7b,_0xedc550){const _0x162625=a61_0x2e0803,_0x597c44={};_0x597c44[_0x162625(0xae)]=_0x162625(0xb5),_0x597c44[_0x162625(0xc5)]=_0x162625(0xc2),_0x597c44[_0x162625(0x9d)]='\x20&&\x20npm\x20update\x20browserstack-node-sdk';const _0x5603d5=_0x597c44;let _0x16d127=_0x545f7b[_0x5603d5[_0x162625(0xae)]];if(_0x16d127&&_0x16d127[_0x162625(0x81)](_0x5603d5['XAwhs']))return;!_0x16d127?_0x16d127=_0x5603d5[_0x162625(0xc5)]:_0x16d127+=_0x5603d5['bQnsY'],_0xedc550[_0x162625(0xaa)]([_0x5603d5[_0x162625(0xae)],_0x16d127]);}function addScriptInPackageJson(){const _0x1de049=a61_0x2e0803,_0x4f96e9={'MrLGK':_0x1de049(0xb2),'crQOt':function(_0x253c46,_0x4922fa){return _0x253c46<_0x4922fa;},'scfJe':function(_0x2133f0,_0x37e0e6,_0x1cbd8c){return _0x2133f0(_0x37e0e6,_0x1cbd8c);},'dwqrq':function(_0x3e5a87,_0x3576c5){return _0x3e5a87!==_0x3576c5;},'fZYZe':_0x1de049(0x85)},_0x131c1c=JSON[_0x1de049(0x82)](fs['readFileSync'](packageFile,_0x4f96e9[_0x1de049(0xc6)])),_0x5c29b6=[];for(let _0x3ad1e2=0x0;_0x4f96e9[_0x1de049(0x91)](_0x3ad1e2,frameworks[_0x1de049(0xad)]);_0x3ad1e2+=0x1){const _0x1a92d2=_0x4f96e9[_0x1de049(0x8f)](findScriptsWithFramework,_0x131c1c['scripts'],frameworks[_0x3ad1e2]);for(let _0x277b43=0x0;_0x4f96e9[_0x1de049(0x91)](_0x277b43,_0x1a92d2['length']);_0x277b43+=0x1){_0x5c29b6[_0x1de049(0xaa)](_0x4f96e9[_0x1de049(0x8f)](getUpdatedCommand,_0x131c1c[_0x1de049(0x7e)],_0x1a92d2[_0x277b43]));}_0x4f96e9[_0x1de049(0x8f)](addPostInstallScript,_0x131c1c[_0x1de049(0x7e)],_0x5c29b6);}const _0x5b719c={..._0x131c1c['scripts']},_0x94315=_0x5b719c;for(let _0x23ad3c=0x0;_0x4f96e9[_0x1de049(0x91)](_0x23ad3c,_0x5c29b6[_0x1de049(0xad)]);_0x23ad3c+=0x1){_0x94315[_0x5c29b6[_0x23ad3c][0x0]]=_0x5c29b6[_0x23ad3c][0x1];}_0x4f96e9['dwqrq'](JSON['stringify'](_0x131c1c[_0x1de049(0x7e)]),JSON[_0x1de049(0xa3)](_0x94315))&&(logger[_0x1de049(0x97)](_0x4f96e9[_0x1de049(0xc0)]),_0x131c1c[_0x1de049(0x7e)]=_0x94315,fs[_0x1de049(0xa7)](packageFile,JSON[_0x1de049(0xa3)](_0x131c1c,null,0x2),_0x5c42bf=>{const _0x357ad2=_0x1de049;_0x5c42bf&&logger[_0x357ad2(0x7f)](_0x5c42bf);}));};function findScriptsWithFramework(_0x486d25,_0x265016){const _0x3db94e=a61_0x2e0803,_0x2cc4a6={};_0x2cc4a6[_0x3db94e(0x92)]=function(_0x2f0748,_0x54aeef){return _0x2f0748<_0x54aeef;},_0x2cc4a6[_0x3db94e(0x87)]='browserstack-node-sdk';const _0x269f10=_0x2cc4a6,_0x349183=[],_0x311d0f=Object[_0x3db94e(0x89)](_0x486d25);for(let _0x10ce82=0x0;_0x269f10[_0x3db94e(0x92)](_0x10ce82,_0x311d0f[_0x3db94e(0xad)]);_0x10ce82+=0x1){_0x311d0f[_0x10ce82][0x1][_0x3db94e(0x81)](_0x265016)&&!_0x311d0f[_0x10ce82][0x1][_0x3db94e(0x81)](_0x269f10[_0x3db94e(0x87)])&&_0x349183[_0x3db94e(0xaa)](_0x311d0f[_0x10ce82][0x0]);}return _0x349183;}function getUpdatedCommand(_0x3254a2,_0x3cf98a){const _0x4d77d3=a61_0x2e0803,_0x257757={};_0x257757[_0x4d77d3(0x9a)]=function(_0x124046,_0x568dd6){return _0x124046!==_0x568dd6;},_0x257757[_0x4d77d3(0xc3)]=_0x4d77d3(0x84),_0x257757[_0x4d77d3(0xb1)]=function(_0x16ab6c,_0x54359e){return _0x16ab6c===_0x54359e;};const _0x769420=_0x257757,_0x2b189e=_0x3cf98a+'-browserstack',_0x4f5d94=_0x3254a2[_0x3cf98a],_0x4d9a19=_0x4f5d94[_0x4d77d3(0x8c)]('\x20');for(const _0x14a3e0 of frameworks){if(_0x769420[_0x4d77d3(0x9a)](_0x4d9a19[_0x4d77d3(0xa9)](_0x14a3e0),-0x1)){_0x4d9a19[_0x4d77d3(0xab)](_0x4d9a19[_0x4d77d3(0xa9)](_0x14a3e0),0x0,_0x769420[_0x4d77d3(0xc3)]);break;}}let _0x55dfdb=_0x4d9a19['join']('\x20');return _0x769420[_0x4d77d3(0xb1)](_0x55dfdb,_0x4f5d94)&&(_0x55dfdb=_0x4d77d3(0xb3)+_0x4f5d94),[_0x2b189e,_0x55dfdb];}function sdkSetup(){const _0x48ca64=a61_0x2e0803,_0x5eb8aa={};_0x5eb8aa['gUnUi']='node-setup',_0x5eb8aa['QxRMt']=_0x48ca64(0x86);const _0x2a20be=_0x5eb8aa;if(helper[_0x48ca64(0xa4)](config))return;config[_0x48ca64(0x99)]=_0x2a20be[_0x48ca64(0x9e)];try{utilities[_0x48ca64(0x94)](_0x2a20be['QxRMt'],{},config,'');}catch(_0x274e54){logger[_0x48ca64(0xbb)]('Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20'+_0x274e54);}}function a61_0x4a95(){const _0x33333a=['scfJe','QEzOm','crQOt','nKihD','node','fireFunnelTestEvent','readFileSync','replace','info','YOUR_USERNAME','source','RxOpD','Setup\x20completed','wZvmU','bQnsY','gUnUi','username','126672zhWAsy','1268078yfLfAu','nightwatch','stringify','isUndefined','/browserstack.yml','52310ektcRX','writeFileSync','Creating\x20configuration\x20file...','indexOf','push','splice','40lLoJaG','length','GhjNo','codeceptjs','Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','BiuhR','utf8','browserstack-node-sdk\x20','756972PVzcRx','postinstall','332644buWQSd','537777wokPsx','yiZcy','argv','../helpers/helper','debug','cwd','5ZqDWxE','winstonLogger','YOUR_ACCESS_KEY','fZYZe','../helpers/utilities','npm\x20update\x20browserstack-node-sdk','jDMhK','yargs','XAwhs','MrLGK','scripts','error','/../../browserstack.pw.yml.sample','includes','parse','../helpers/logger','browserstack-node-sdk','Adding\x20new\x20script(s)\x20in\x20package.json...','SDKSetup','egURT','load','entries','1163802tgiEDY','js-yaml','split','6JcfAIP','cucumber-js'];a61_0x4a95=function(){return _0x33333a;};return a61_0x4a95();}logger[a61_0x2e0803(0x97)](a61_0x2e0803(0x9b));