browserstack-node-sdk 1.70.0 → 1.70.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) 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/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  42. package/src/bin/codeceptjs/command.js +1 -1
  43. package/src/bin/codeceptjs/helper.js +1 -1
  44. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  45. package/src/bin/cucumber-js/command.js +1 -1
  46. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  48. package/src/bin/cucumber-js/test-observability.js +1 -1
  49. package/src/bin/cucumber-js/test.setup.js +1 -1
  50. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  51. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  52. package/src/bin/detox/a11ySetup.js +1 -1
  53. package/src/bin/detox/command.js +1 -1
  54. package/src/bin/detox/modifyDetoxConf.js +1 -1
  55. package/src/bin/detox/traEmitter.js +1 -1
  56. package/src/bin/integrations/command.js +1 -1
  57. package/src/bin/integrations/constants.js +1 -1
  58. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
  59. package/src/bin/jasmine/command.js +1 -1
  60. package/src/bin/jasmine/test.setup.js +1 -1
  61. package/src/bin/jasmine/testRunMap.js +1 -1
  62. package/src/bin/jest/command.js +1 -1
  63. package/src/bin/jest/customImplements/customCircus.js +1 -1
  64. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  65. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  66. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  67. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  68. package/src/bin/jest/jest.setup.js +1 -1
  69. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  70. package/src/bin/jest/test-observability/helper.js +1 -1
  71. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  72. package/src/bin/jest/test-observability/test-details.js +1 -1
  73. package/src/bin/jest/test.setup.js +1 -1
  74. package/src/bin/jest/test_before.setup.js +1 -1
  75. package/src/bin/launcher/launcher.js +1 -1
  76. package/src/bin/load/index.js +1 -1
  77. package/src/bin/load/loadErrors.js +1 -1
  78. package/src/bin/load/loadUtils.js +1 -1
  79. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  80. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  81. package/src/bin/mocha/command.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/node-generic/client.js +1 -1
  91. package/src/bin/playwright/accessibility-helper.js +1 -1
  92. package/src/bin/playwright/command.js +1 -1
  93. package/src/bin/playwright/globalSetup.js +1 -1
  94. package/src/bin/playwright/mock-process.js +1 -1
  95. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  96. package/src/bin/playwright/patches.js +1 -1
  97. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  98. package/src/bin/playwright/reporter/reporter.js +1 -1
  99. package/src/bin/playwright/reporter/test-details.js +1 -1
  100. package/src/bin/playwright/reporterArgs.js +1 -1
  101. package/src/bin/playwright/sessionDetails.js +1 -1
  102. package/src/bin/puppeteer/patches.js +1 -1
  103. package/src/bin/puppeteer/sessionDetails.js +1 -1
  104. package/src/bin/puppeteer/test.setup.js +1 -1
  105. package/src/bin/runner.js +1 -1
  106. package/src/bin/setup.js +1 -1
  107. package/src/bin/test-runner/index.js +1 -1
  108. package/src/bin/test-runner/runTest.js +1 -1
  109. package/src/bin/test-runner/testWorker.js +1 -1
  110. package/src/bin/testcafe/a11y-runner.js +1 -1
  111. package/src/bin/testcafe/command.js +1 -1
  112. package/src/bin/testcafe/reporter/index.js +1 -1
  113. package/src/bin/testcafe/reporter/tcUtils.js +1 -1
  114. package/src/bin/testcafe/session-registry.js +1 -1
  115. package/src/bin/testcafe/stdout-interceptor.js +1 -1
  116. package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
  117. package/src/bin/testcafe/w3c-driver.js +1 -1
  118. package/src/bin/utils/apiUtilityMethods.js +1 -1
  119. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  120. package/src/bin/utils/constants.js +1 -1
  121. package/src/bin/utils/log4jsAppender.js +1 -1
  122. package/src/bin/utils/logPatcher.js +1 -1
  123. package/src/bin/utils/logReportingAPI.js +1 -1
  124. package/src/bin/utils/playwright-patcher.js +1 -1
  125. package/src/bin/utils/puppeteer-patcher.js +1 -1
  126. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  127. package/src/bin/utils/sharedUtils.js +1 -1
  128. package/src/bin/v2/TestInfo.js +1 -1
  129. package/src/bin/v2/browserstackCLI.js +1 -1
  130. package/src/bin/v2/cliUtils.js +1 -1
  131. package/src/bin/v2/customTagManager.js +1 -1
  132. package/src/bin/v2/eventDispatcher.js +1 -1
  133. package/src/bin/v2/framework/automationFramework.js +1 -1
  134. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  135. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  136. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  137. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  138. package/src/bin/v2/framework/mochaTestFramework.js +1 -1
  139. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  140. package/src/bin/v2/framework/nodeGenericTestFramework.js +1 -1
  141. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  142. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  143. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  144. package/src/bin/v2/framework/seleniumAutomationFramework.js +1 -1
  145. package/src/bin/v2/framework/testFramework.js +1 -1
  146. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  147. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  148. package/src/bin/v2/grpcClient.js +1 -1
  149. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  150. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  151. package/src/bin/v2/instances/trackedContext.js +1 -1
  152. package/src/bin/v2/instances/trackedInstance.js +1 -1
  153. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  154. package/src/bin/v2/modules/baseModule.js +1 -1
  155. package/src/bin/v2/modules/loadTestModule.js +1 -1
  156. package/src/bin/v2/modules/observabilityModule.js +1 -1
  157. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  158. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  159. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  160. package/src/bin/v2/modules/testhubModule.js +1 -1
  161. package/src/bin/v2/runStateStore.js +1 -1
  162. package/src/bin/v2/sdkErrorHandler.js +1 -1
  163. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  164. package/src/bin/v2/state/hookState.js +1 -1
  165. package/src/bin/v2/state/testFrameworkState.js +1 -1
  166. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  167. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  168. package/src/bin/v2/utils/jest-utils.js +1 -1
  169. package/src/bin/vanilla-js/command.js +1 -1
  170. package/src/browserStackSdk.js +1 -1
  171. package/src/helpers/BrowserStackSetup.js +1 -1
  172. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  173. package/src/helpers/accessibility-automation/constants.js +1 -1
  174. package/src/helpers/accessibility-automation/helper.js +1 -1
  175. package/src/helpers/accessibility-automation/scripts.js +1 -1
  176. package/src/helpers/ats/constants.js +1 -1
  177. package/src/helpers/ats/helper.js +1 -1
  178. package/src/helpers/caCertHelper.js +1 -1
  179. package/src/helpers/capsMapping.js +1 -1
  180. package/src/helpers/central-scanner/constants.js +1 -1
  181. package/src/helpers/central-scanner/helpers.js +1 -1
  182. package/src/helpers/classLogger.js +1 -1
  183. package/src/helpers/driverInitErrorReporter.js +1 -1
  184. package/src/helpers/globals.js +1 -1
  185. package/src/helpers/helper.js +1 -1
  186. package/src/helpers/logger.js +1 -1
  187. package/src/helpers/metadata.js +1 -1
  188. package/src/helpers/patchHelper.js +1 -1
  189. package/src/helpers/patchHelpers.js +1 -1
  190. package/src/helpers/percy/Percy.js +1 -1
  191. package/src/helpers/percy/PercyBinary.js +1 -1
  192. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  193. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  194. package/src/helpers/percy/PercySDK.js +1 -1
  195. package/src/helpers/percy/index.js +1 -1
  196. package/src/helpers/percy/utils.js +1 -1
  197. package/src/helpers/performance/constants.js +1 -1
  198. package/src/helpers/performance/performance-tester.js +1 -1
  199. package/src/helpers/playwright-helper.js +1 -1
  200. package/src/helpers/processHelper.js +1 -1
  201. package/src/helpers/puppeteer-helper.js +1 -1
  202. package/src/helpers/request-spy.js +1 -1
  203. package/src/helpers/setKeepAlive.js +1 -1
  204. package/src/helpers/stackFrameUtils.js +1 -1
  205. package/src/helpers/test-observability/constants.js +1 -1
  206. package/src/helpers/test-observability/error-handler.js +1 -1
  207. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  208. package/src/helpers/test-observability/sessionHandler.js +1 -1
  209. package/src/helpers/test-observability/utils.js +1 -1
  210. package/src/helpers/test-orchestration/constants.js +1 -1
  211. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  212. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  213. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  214. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  215. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  216. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  217. package/src/helpers/testhub/constants.js +1 -1
  218. package/src/helpers/testhub/testhubHandler.js +1 -1
  219. package/src/helpers/testhub/utils.js +1 -1
  220. package/src/helpers/utilities.js +1 -1
  221. package/src/helpers/w3cMapping.js +1 -1
  222. package/src/hubAllocationMethods.js +1 -1
  223. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a50_0x4579cb=a50_0x1103;(function(_0x8e29fc,_0x17106f){const _0x5c6871=a50_0x1103,_0x2625dc=_0x8e29fc();while(!![]){try{const _0x51539b=-parseInt(_0x5c6871(0x1b1))/0x1+-parseInt(_0x5c6871(0x176))/0x2*(-parseInt(_0x5c6871(0x127))/0x3)+-parseInt(_0x5c6871(0x1c3))/0x4+-parseInt(_0x5c6871(0x14e))/0x5+parseInt(_0x5c6871(0x1ca))/0x6+-parseInt(_0x5c6871(0x1a7))/0x7+parseInt(_0x5c6871(0x11e))/0x8;if(_0x51539b===_0x17106f)break;else _0x2625dc['push'](_0x2625dc['shift']());}catch(_0x4b14e4){_0x2625dc['push'](_0x2625dc['shift']());}}}(a50_0x3507,0xed1b0));function a50_0x1103(_0x37ae9c,_0x2b3126){const _0x3507a4=a50_0x3507();return a50_0x1103=function(_0x1103ed,_0x1ce803){_0x1103ed=_0x1103ed-0xff;let _0x53911a=_0x3507a4[_0x1103ed];return _0x53911a;},a50_0x1103(_0x37ae9c,_0x2b3126);}const util=require('util'),logger=require('../../helpers/logger')['winstonLogger'],{automationLogger}=require('../../helpers/logger'),{isAccessibilityAutomationSession}=require(a50_0x4579cb(0x1b9)),{isUndefined,isBrowserstackInfra}=require(a50_0x4579cb(0x1b4)),scripts=require(a50_0x4579cb(0x17f)),PerformanceTester=require('../../helpers/performance/performance-tester'),{A11Y_EVENTS:PerformanceA11yEvents}=require(a50_0x4579cb(0x1a6)),accessibilityHelper=require('../../helpers/accessibility-automation/helper'),{AUTOMATION_LOG_COMMANDS}=require(a50_0x4579cb(0x171)),isStalePageError=_0x5658a5=>{const _0x2766f7=a50_0x4579cb,_0x3ea05d={'IzZMC':function(_0xfb9c65,_0x35506d){return _0xfb9c65(_0x35506d);}},_0x5c1cf2=_0x5658a5&&_0x5658a5[_0x2766f7(0x1af)]||_0x3ea05d[_0x2766f7(0x166)](String,_0x5658a5);return/Target closed|detached [Ff]rame|Execution context was destroyed, most likely because of a navigation/['test'](_0x5c1cf2);},isPageStale=_0x130f56=>{const _0x422fe1=a50_0x4579cb;try{if(_0x130f56[_0x422fe1(0x1ac)]&&_0x130f56['isClosed']())return!![];const _0x8811e8=_0x130f56[_0x422fe1(0x12e)]&&_0x130f56[_0x422fe1(0x12e)]();if(_0x8811e8&&_0x8811e8[_0x422fe1(0x14d)]&&_0x8811e8[_0x422fe1(0x14d)]())return!![];}catch(_0x342d05){}return![];},isUserTabUrl=_0x1537bd=>{const _0x462893=a50_0x4579cb,_0x2becd8={};_0x2becd8[_0x462893(0x165)]=_0x462893(0x16c),_0x2becd8[_0x462893(0x116)]=function(_0x13f4a8,_0xd25652){return _0x13f4a8===_0xd25652;},_0x2becd8[_0x462893(0x120)]='about:blank',_0x2becd8['tvpeI']=_0x462893(0x109);const _0x5e40c2=_0x2becd8;if(!_0x1537bd)return![];if(_0x1537bd[_0x462893(0x1c4)](_0x5e40c2[_0x462893(0x165)]))return![];if(_0x5e40c2['yZfZk'](_0x1537bd,_0x5e40c2[_0x462893(0x120)])||_0x5e40c2['yZfZk'](_0x1537bd,_0x5e40c2[_0x462893(0x185)])||_0x5e40c2[_0x462893(0x116)](_0x1537bd,''))return![];return!![];},pickFreshPage=async _0x4687c7=>{const _0x268666=a50_0x4579cb,_0x1959db={'efEKg':function(_0x3617c0,_0x19e549){return _0x3617c0(_0x19e549);},'buZzK':function(_0x16a199,_0x456c75){return _0x16a199(_0x456c75);}};try{const _0x3cb7b5=await _0x4687c7[_0x268666(0x16d)]();return _0x3cb7b5[_0x268666(0x144)](_0x247c0f=>{const _0x2373e1=_0x268666;try{if(_0x1959db[_0x2373e1(0x15e)](isPageStale,_0x247c0f))return![];return _0x1959db[_0x2373e1(0x17a)](isUserTabUrl,_0x247c0f['url']&&_0x247c0f[_0x2373e1(0x1c1)]());}catch(_0x406126){return![];}});}catch(_0x1a0029){return null;}},evalViaFreshCDPSession=async(_0x4f4e0e,_0x1f54bf)=>{const _0xe8dd4c=a50_0x4579cb,_0x54cfec={'CytEJ':function(_0x354780,_0x4c22d3){return _0x354780===_0x4c22d3;},'EOezK':'page','AYDlq':'http://','Kymvm':_0xe8dd4c(0x164),'DAniY':_0xe8dd4c(0x16c),'kaNUV':function(_0x34c4e0,_0x4b8e14){return _0x34c4e0===_0x4b8e14;},'bGGwe':function(_0x4c8456,_0x5774b6){return _0x4c8456===_0x5774b6;},'CTVBl':function(_0x35d36b){return _0x35d36b();},'ZKxWF':_0xe8dd4c(0x1b6),'QeqMN':_0xe8dd4c(0x155),'xWdCO':function(_0x4cae6d,_0x21b306){return _0x4cae6d!==_0x21b306;},'vTzXy':_0xe8dd4c(0x18a),'DkLli':function(_0x5838ea,_0x12fab7){return _0x5838ea(_0x12fab7);}};if(!_0x4f4e0e['browser']||_0x54cfec[_0xe8dd4c(0x139)](typeof _0x4f4e0e[_0xe8dd4c(0x113)],_0x54cfec[_0xe8dd4c(0x132)]))return undefined;const _0x5025b4=_0x4f4e0e[_0xe8dd4c(0x113)]();if(!_0x5025b4[_0xe8dd4c(0x17d)])return undefined;const _0x1caa94=_0x4f4e0e[_0xe8dd4c(0x1c1)]&&_0x4f4e0e[_0xe8dd4c(0x1c1)]()||'',_0x5c777d=()=>{const _0x56e3f4=_0xe8dd4c,_0xf925c0={'TTFRP':function(_0x1cba94,_0x3516b4){const _0x3a81b9=a50_0x1103;return _0x54cfec[_0x3a81b9(0x146)](_0x1cba94,_0x3516b4);},'gKVwW':_0x54cfec[_0x56e3f4(0x13b)],'YNtWw':function(_0x294944,_0x3c98ad){const _0x1aa384=_0x56e3f4;return _0x54cfec[_0x1aa384(0x151)](_0x294944,_0x3c98ad);}},_0x214917=_0x5025b4[_0x56e3f4(0x17d)]();let _0x23b9e5=_0x214917['find'](_0x1fbb55=>{const _0x3f6b00=_0x56e3f4;try{return _0xf925c0['TTFRP'](_0x1fbb55['type'](),_0xf925c0[_0x3f6b00(0x1b0)])&&_0xf925c0[_0x3f6b00(0x161)](_0x1fbb55[_0x3f6b00(0x1c1)](),_0x1caa94);}catch(_0xb08a7a){return![];}});if(_0x23b9e5){const _0x32b884={};return _0x32b884['t']=_0x23b9e5,_0x32b884[_0x56e3f4(0x1b2)]=_0x214917['length'],_0x32b884;}_0x23b9e5=_0x214917[_0x56e3f4(0x144)](_0x30c1d6=>{const _0x14c3a3=_0x56e3f4;try{const _0x1a0ebf=_0x30c1d6[_0x14c3a3(0x1c1)]()||'';return _0x54cfec['CytEJ'](_0x30c1d6[_0x14c3a3(0x1a5)](),_0x54cfec[_0x14c3a3(0x13b)])&&(_0x1a0ebf['startsWith'](_0x54cfec[_0x14c3a3(0x1cc)])||_0x1a0ebf['startsWith'](_0x54cfec[_0x14c3a3(0x15d)]))&&!_0x1a0ebf[_0x14c3a3(0x1c4)](_0x54cfec['DAniY']);}catch(_0x3a42a4){return![];}});const _0x5da61a={};return _0x5da61a['t']=_0x23b9e5,_0x5da61a[_0x56e3f4(0x1b2)]=_0x214917['length'],_0x5da61a;},_0x1ec3f0=async _0x4e427e=>{const _0x541e73=_0xe8dd4c,{t:_0x154d9e,targetsLen:_0x4938bb}=_0x54cfec[_0x541e73(0x1aa)](_0x5c777d);if(!_0x154d9e){logger['info']('[STALE-CDP-NO-TARGET]\x20attempt='+_0x4e427e+'\x20no\x20AUT\x20target\x20found\x20among\x20'+_0x4938bb+_0x541e73(0x158));const _0x545095={};return _0x545095['ok']=![],_0x545095[_0x541e73(0x1c6)]=![],_0x545095;}logger[_0x541e73(0x145)]('[STALE-CDP-TRY]\x20attempt='+_0x4e427e+'\x20using\x20target\x20url='+(_0x154d9e[_0x541e73(0x1c1)]&&_0x154d9e[_0x541e73(0x1c1)]()));let _0x59ca3d;try{_0x59ca3d=await _0x154d9e[_0x541e73(0x195)]();}catch(_0x575792){const _0x2720c0=/navigated or closed|Target closed|Session closed/i[_0x541e73(0x1a2)](_0x575792[_0x541e73(0x1af)]||'');logger[_0x541e73(0x145)]('[STALE-CDP-SESSION-ERR]\x20attempt='+_0x4e427e+_0x541e73(0x1b8)+_0x575792[_0x541e73(0x1af)]+_0x541e73(0x11f)+_0x2720c0);const _0x33c99b={};return _0x33c99b['ok']=![],_0x33c99b['transient']=_0x2720c0,_0x33c99b;}try{const _0x133cae={};_0x133cae[_0x541e73(0x157)]=_0x1f54bf,_0x133cae[_0x541e73(0x1b5)]=!![],_0x133cae[_0x541e73(0x13c)]=!![];const _0x48d8f8=await _0x59ca3d[_0x541e73(0x101)](_0x54cfec[_0x541e73(0x18b)],_0x133cae);if(_0x48d8f8&&_0x48d8f8[_0x541e73(0x1a1)]){const _0x3b4221=_0x48d8f8[_0x541e73(0x1a1)]&&_0x48d8f8[_0x541e73(0x1a1)][_0x541e73(0x1c9)]||_0x54cfec['QeqMN'];logger['info'](_0x541e73(0x19d)+_0x4e427e+_0x541e73(0x193)+_0x3b4221);const _0x123fd5={};return _0x123fd5['ok']=![],_0x123fd5['transient']=![],_0x123fd5[_0x541e73(0x1a1)]=_0x3b4221,_0x123fd5;}logger[_0x541e73(0x145)](_0x541e73(0x12a)+_0x4e427e+'\x20evaluate\x20returned\x20via\x20fresh\x20CDP\x20session');const _0x4b6218={};return _0x4b6218['ok']=!![],_0x4b6218[_0x541e73(0x152)]=_0x48d8f8&&_0x48d8f8[_0x541e73(0x138)]&&_0x48d8f8[_0x541e73(0x138)][_0x541e73(0x152)],_0x4b6218;}catch(_0x8e7277){const _0x2c9240=/navigated or closed|Target closed|Session closed/i[_0x541e73(0x1a2)](_0x8e7277[_0x541e73(0x1af)]||'');logger[_0x541e73(0x145)]('[STALE-CDP-SEND-ERR]\x20attempt='+_0x4e427e+_0x541e73(0x1b7)+_0x8e7277[_0x541e73(0x1af)]+_0x541e73(0x11f)+_0x2c9240);const _0x1b2eab={};return _0x1b2eab['ok']=![],_0x1b2eab['transient']=_0x2c9240,_0x1b2eab;}finally{try{_0x59ca3d&&_0x59ca3d[_0x541e73(0x10b)]&&await _0x59ca3d[_0x541e73(0x10b)]();}catch(_0x5dc053){}}};let _0xcda923=await _0x54cfec[_0xe8dd4c(0x103)](_0x1ec3f0,0x1);if(_0xcda923['ok'])return _0xcda923[_0xe8dd4c(0x152)];if(_0xcda923['transient']){await new Promise(_0x22b5b2=>setTimeout(_0x22b5b2,0x190)),_0xcda923=await _0x54cfec[_0xe8dd4c(0x103)](_0x1ec3f0,0x2);if(_0xcda923['ok'])return _0xcda923[_0xe8dd4c(0x152)];}if(_0xcda923[_0xe8dd4c(0x1a1)]){const _0x5bcbf8=new Error('evalViaFreshCDPSession:\x20Runtime.evaluate\x20exception\x20—\x20'+_0xcda923[_0xe8dd4c(0x1a1)]);_0x5bcbf8['cdpExceptionDetails']=_0xcda923['exceptionDetails'];throw _0x5bcbf8;}return undefined;};function a50_0x3507(){const _0x13d3c8=['[STALE-CDP-ERR]\x20cdp-session\x20fallback\x20failed:\x20','result','xWdCO','error','EOezK','returnByValue','][\x20SDK-AUTOMATION\x20]\x20','browserstack.accessibilityOptions','oVpag','accessibilityOptions.includeIssueType.bestPractice','VrDWD','isMobilePlatform','hsEJy','find','info','kaNUV','scannerProcessingTimeout','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20','Playwright','QcIMY','JnUMW','includePartOfPageScope','isDetached','7075995TyiYUD','browserStackEvaluate','testInfo','bGGwe','value','name','executeAsyncScript','unknown','dfaKP','expression','\x20targets','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','cJxum','response','hasScripts','Kymvm','efEKg','latest','env','YNtWw','isMobileScanningEnabledForGroup','includeIssueType','https://','tkXkE','IzZMC','parameters','BS_A11Y_JWT','connectOptions','stringify','browserstack.accessibility','devtools://','pages','KVuUi',')\x20—\x20reloading\x20page\x20to\x20reset\x20frame','getBrowserDisplayName','../utils/constants','project','toLowerCase','assign','needsReview','6VRiXCE','getResults','playwright-chromium','clygf','buZzK','\x20page:\x20','iXzIi','targets','chrome','../../helpers/accessibility-automation/scripts','NcPAy','kskcy','[STALE-RETRY]\x20browserStackEvaluate:\x20retry\x20after\x20stale-page\x20error\x20(','getMinVersionForBrowser','VFBUE','tvpeI','YojUh','scannerVersion','ytNOo','setAccessibilityCapabilities','function','ZKxWF','string','bstackSdkArgs','command','constructor','request','Accessibility\x20scanner\x20scripts\x20are\x20not\x20loaded\x20for\x20this\x20run;\x20cannot\x20retrieve\x20results.\x20Returning\x20an\x20empty\x20result,\x20which\x20is\x20NOT\x20the\x20same\x20as\x20a\x20scan\x20that\x20found\x20no\x20issues.','tbItn','\x20evaluate\x20exception:\x20','Ptodk','createCDPSession','qGsTg','UFEKz','wcagVersion','domcontentloaded','silly','includes','yPYqp','[STALE-CDP-EX]\x20attempt=','getAccessibilityResultsSummary','format','WKyTu','exceptionDetails','test','[STALE-PRE]\x20browserStackEvaluate:\x20page\x20ref\x20stale,\x20reselected\x20from\x20browser.pages()','KEkuo','type','../../helpers/performance/constants','11935819LmcvXS','JRHBU','urGTx','CTVBl','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','isClosed','browserStackExecuteDriver','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','message','gKVwW','88592XtcuDm','targetsLen','warn','../../helpers/helper','awaitPromise','Runtime.evaluate','\x20send\x20failed:\x20','\x20createCDPSession\x20failed:\x20','../../helpers/accessibility-automation/helper','DGAbv','performScan','accessibilityOptions.authToken','toISOString','replace','parse','Performing\x20scan\x20with\x20method:\x20','url','NFCNo','1660268kzwBxs','startsWith','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20','transient','QukvG','getResultsSummary','text','6680394lGcQiU','auzBI','AYDlq','browserName','sVaph','isBrowserSupportedForAccessibility','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','stack','on\x20non-BrowserStack\x20infrastructure\x20','executeScript','TAClK','use','send','PHdwO','DkLli','lRqac','evaluate','waitUntil','GCBJE','EEdAd','data:,','workerInfo','detach','platformValidation','WgaCf',')\x20—\x20fresh\x20page\x20url=','MLOCe','accessibilityOptions.scannerVersion','currentTest','getAccessibilityResultsSummary\x20failed:\x20','browser','Accessibility\x20scanner\x20scripts\x20are\x20not\x20loaded\x20for\x20this\x20run;\x20cannot\x20retrieve\x20results\x20summary.\x20Returning\x20an\x20empty\x20summary,\x20which\x20is\x20NOT\x20the\x20same\x20as\x20a\x20scan\x20that\x20found\x20no\x20issues.','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','yZfZk','gEHTI','accessibilityOptions.wcagVersion','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','\x20or\x20higher\x20','[STALE-RELOAD-ERR]\x20reload/retry\x20failed:\x20','HJZDV','\x20browser\x20version\x20','19216576mKyGJo','\x20transient=','CnbQs','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','deviceName','QVwBU','VoTYM','[STALE-RELOAD]\x20browserStackEvaluate:\x20no\x20fresh\x20page\x20after\x20stale-page\x20error\x20(','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','1079688rYhkEn','Aqdip','dNTms','[STALE-CDP-OK]\x20attempt=','GRUtm','accessibilityOptions.scannerProcessingTimeout','ifxdW','mainFrame','accessibilityOptions','accessibilityOptions.includeIssueType.needsReview','__workerDetails','vTzXy','lhhjz','debug','keys','accessibilityPlatform'];a50_0x3507=function(){return _0x13d3c8;};return a50_0x3507();}exports[a50_0x4579cb(0x14f)]=async(_0x4f2340,_0x5c60b8,_0x58dd1f={})=>{const _0x5ab3c9=a50_0x4579cb,_0x40762d={'NFCNo':_0x5ab3c9(0x18d),'tbItn':function(_0xbcc5dc,_0xfa06be){return _0xbcc5dc(_0xfa06be);},'GRUtm':_0x5ab3c9(0x1a3),'kXVDI':function(_0x1c2818,_0x11bfdd){return _0x1c2818(_0x11bfdd);},'lRqac':function(_0x1fa89f,_0x1c7cf5){return _0x1fa89f!==_0x1c7cf5;},'yPYqp':_0x5ab3c9(0x199),'QukvG':function(_0x1f9a99,_0x5f2a7d){return _0x1f9a99(_0x5f2a7d);},'IJbVx':'[STALE-CDP]\x20falling\x20back\x20to\x20fresh-CDP-session\x20evaluate','DGAbv':function(_0x56ff73,_0x113e1d,_0x1ea6e5){return _0x56ff73(_0x113e1d,_0x1ea6e5);},'WKyTu':function(_0x51694c,_0x479de3){return _0x51694c!==_0x479de3;},'sVaph':function(_0x1a18c8,_0x37ebaf){return _0x1a18c8===_0x37ebaf;},'UFEKz':_0x5ab3c9(0x18c)},_0x2b9a05=_0x5ab3c9(0x1c5)+_0x5c60b8[_0x5ab3c9(0x1be)](/arguments/g,_0x40762d[_0x5ab3c9(0x1c2)])+_0x5ab3c9(0x1d0)+JSON[_0x5ab3c9(0x16a)](_0x58dd1f)+')';let _0x1732e2=_0x4f2340;if(_0x40762d[_0x5ab3c9(0x192)](isPageStale,_0x1732e2)&&_0x4f2340[_0x5ab3c9(0x113)]){const _0x8d6e67=await _0x40762d[_0x5ab3c9(0x192)](pickFreshPage,_0x4f2340[_0x5ab3c9(0x113)]());_0x8d6e67&&(logger[_0x5ab3c9(0x145)](_0x40762d[_0x5ab3c9(0x12b)]),_0x1732e2=_0x8d6e67);}let _0x533afc;try{_0x533afc=await _0x1732e2[_0x5ab3c9(0x105)](_0x2b9a05);}catch(_0x6cb742){if(_0x40762d['tbItn'](isStalePageError,_0x6cb742)&&_0x4f2340[_0x5ab3c9(0x113)]){const _0x417fc2=await _0x40762d['kXVDI'](pickFreshPage,_0x4f2340[_0x5ab3c9(0x113)]());if(_0x417fc2&&_0x40762d[_0x5ab3c9(0x104)](_0x417fc2,_0x1732e2))logger[_0x5ab3c9(0x145)](_0x5ab3c9(0x182)+_0x6cb742['message']+_0x5ab3c9(0x10e)+(_0x417fc2[_0x5ab3c9(0x1c1)]&&_0x417fc2['url']())),_0x533afc=await _0x417fc2[_0x5ab3c9(0x105)](_0x2b9a05);else{if(_0x4f2340['reload']){let _0x1b2af9=![];try{logger['info'](_0x5ab3c9(0x125)+_0x6cb742[_0x5ab3c9(0x1af)]+_0x5ab3c9(0x16f));const _0x4e4355={};_0x4e4355[_0x5ab3c9(0x106)]=_0x40762d[_0x5ab3c9(0x19c)],await _0x4f2340['reload'](_0x4e4355);const _0x16c943=await _0x40762d[_0x5ab3c9(0x1c7)](pickFreshPage,_0x4f2340['browser']())||_0x4f2340;logger[_0x5ab3c9(0x145)]('[STALE-RELOAD-RETRY]\x20retry\x20after\x20reload\x20—\x20page\x20url='+(_0x16c943[_0x5ab3c9(0x1c1)]&&_0x16c943[_0x5ab3c9(0x1c1)]())),_0x533afc=await _0x16c943['evaluate'](_0x2b9a05),_0x1b2af9=!![];}catch(_0x39bb8c){logger[_0x5ab3c9(0x145)](_0x5ab3c9(0x11b)+_0x39bb8c['message']);}if(!_0x1b2af9)try{logger['info'](_0x40762d['IJbVx']);const _0x2af95e=await _0x40762d[_0x5ab3c9(0x1ba)](evalViaFreshCDPSession,_0x4f2340,_0x2b9a05);if(_0x40762d[_0x5ab3c9(0x1a0)](_0x2af95e,undefined))_0x533afc=_0x2af95e;else throw _0x6cb742;}catch(_0x33578){logger[_0x5ab3c9(0x145)](_0x5ab3c9(0x137)+_0x33578[_0x5ab3c9(0x1af)]);throw _0x6cb742;}}else throw _0x6cb742;}}else throw _0x6cb742;}try{if(_0x5c60b8&&_0x40762d[_0x5ab3c9(0x1ce)](typeof _0x5c60b8,_0x40762d[_0x5ab3c9(0x197)])){const _0x44315e=AUTOMATION_LOG_COMMANDS[_0x5ab3c9(0x144)](_0x5e07bf=>_0x5c60b8[_0x5ab3c9(0x19b)](_0x5e07bf));if(_0x44315e){const _0x4516a0={};_0x4516a0[_0x5ab3c9(0x18e)]=_0x44315e,_0x4516a0[_0x5ab3c9(0x167)]=[_0x58dd1f];const _0x53cba8={};_0x53cba8['body']=_0x533afc;const _0x3763c7={};_0x3763c7[_0x5ab3c9(0x190)]=_0x4516a0,_0x3763c7[_0x5ab3c9(0x15b)]=_0x53cba8,automationLogger[_0x5ab3c9(0x19a)]('['+new Date()[_0x5ab3c9(0x1bd)]()+_0x5ab3c9(0x13d)+JSON[_0x5ab3c9(0x16a)](_0x3763c7));}}}catch(_0x1fb04c){logger['debug']('[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20'+_0x1fb04c['message']);}return _0x533afc;},exports[a50_0x4579cb(0x1ad)]=async(_0x2db3b7,_0x49b64e,_0x521828={})=>{const _0x462164=a50_0x4579cb,_0xf337b9={};_0xf337b9['Ptodk']=function(_0x24f35e,_0x1d4675){return _0x24f35e===_0x1d4675;},_0xf337b9[_0x462164(0x181)]='WebDriver',_0xf337b9[_0x462164(0x14a)]=_0x462164(0x149),_0xf337b9['auzBI']=_0x462164(0x18d);const _0x44869d=_0xf337b9;if(_0x44869d['Ptodk'](_0x2db3b7[_0x462164(0x18f)][_0x462164(0x153)],_0x44869d['kskcy']))return await _0x2db3b7[_0x462164(0x154)](_0x49b64e,_0x521828);else{if(_0x44869d[_0x462164(0x194)](_0x2db3b7[_0x462164(0x18f)]['name'],_0x44869d[_0x462164(0x14a)]))return await _0x2db3b7[_0x462164(0x1d3)](_0x462164(0x148)+_0x49b64e['replace'](/arguments/g,_0x44869d[_0x462164(0x1cb)])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON[_0x462164(0x16a)](_0x521828)+')');}},exports[a50_0x4579cb(0x189)]=async _0x113dba=>{const _0x201613=a50_0x4579cb,_0x1f5ab7={};_0x1f5ab7[_0x201613(0x184)]=_0x201613(0x118),_0x1f5ab7['zXwNb']=_0x201613(0x12c),_0x1f5ab7['PHdwO']=_0x201613(0x140),_0x1f5ab7[_0x201613(0x1a4)]=_0x201613(0x130),_0x1f5ab7['MLOCe']=_0x201613(0x1bc),_0x1f5ab7[_0x201613(0x129)]=_0x201613(0x110);const _0x42e76f=_0x1f5ab7;_0x113dba['accessibilityOptions']&&(_0x113dba['accessibilityOptions']['wcagVersion']&&(_0x113dba[_0x42e76f[_0x201613(0x184)]]=_0x113dba[_0x201613(0x12f)][_0x201613(0x198)]),_0x113dba['accessibilityOptions'][_0x201613(0x147)]&&(_0x113dba[_0x42e76f['zXwNb']]=_0x113dba[_0x201613(0x12f)][_0x201613(0x147)]),_0x113dba[_0x201613(0x12f)][_0x201613(0x163)]&&(_0x113dba[_0x42e76f[_0x201613(0x102)]]=_0x113dba[_0x201613(0x12f)][_0x201613(0x163)]['bestPractice'],_0x113dba[_0x42e76f[_0x201613(0x1a4)]]=_0x113dba[_0x201613(0x12f)][_0x201613(0x163)][_0x201613(0x175)]));const _0xf361e1=JSON[_0x201613(0x1bf)](process[_0x201613(0x160)][_0x201613(0x115)]||'{}')[_0x201613(0x187)];_0x113dba[_0x42e76f[_0x201613(0x10f)]]=process['env'][_0x201613(0x168)],_0x113dba[_0x42e76f[_0x201613(0x129)]]=_0xf361e1,delete _0x113dba[_0x201613(0x12f)];},exports['getAccessibilityResults']=async _0x4db59b=>{const _0x4ee657=a50_0x4579cb,_0x595440={};_0x595440[_0x4ee657(0x124)]=_0x4ee657(0x1bb),_0x595440['dbJMb']=_0x4ee657(0x177),_0x595440[_0x4ee657(0x143)]=_0x4ee657(0x191),_0x595440[_0x4ee657(0x179)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0x5c8dd0=_0x595440;if(!scripts[_0x4ee657(0x15c)](_0x5c8dd0[_0x4ee657(0x124)],_0x5c8dd0['dbJMb']))return logger['warn'](_0x5c8dd0['hsEJy']),[];if(global[_0x4ee657(0x136)])try{const details={'url':await _0x4db59b.url(),'testhub_btcer_uuid':global.__workerDetails?.currentTest?.id};const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};logger.debug('Performing scan before getting results');const _SCAN_CAP_MS=45000;try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{const _scanPromise=exports.browserStackEvaluate(_0x4db59b,scripts.performScan,mobileArgs);let _capTimer;const _scanCap=new Promise((_,reject)=>{_capTimer=setTimeout(()=>reject(new Error(`SCAN-CAP-HIT performScan capped at ${_SCAN_CAP_MS}ms`)),_SCAN_CAP_MS);});try{logger.debug(util.format(await Promise.race([_scanPromise,_scanCap])));}finally{clearTimeout(_capTimer);}},{command:'getAccessibilityResults',...details})();}catch(_scanErr){logger.warn(`[SCAN-CAP] performScan didn't complete cleanly (getResults): ${_scanErr.message} — proceeding to fetch cached results`);global.__bstackA11yScanCapHit={reason:'SCAN_CAP_HIT',at:Date.now(),where:'getResults'};}const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x4db59b,scripts.getResults,mobileArgs);},{...details})();return res;}catch(_0x3e5ed3){return logger[_0x4ee657(0x13a)]('getAccessibilityResults\x20failed:\x20'+(_0x3e5ed3&&(_0x3e5ed3[_0x4ee657(0x1d1)]||_0x3e5ed3[_0x4ee657(0x1af)])||_0x3e5ed3)),[];}else return logger[_0x4ee657(0x1b3)](_0x5c8dd0[_0x4ee657(0x179)]),[];},exports[a50_0x4579cb(0x1bb)]=async(_0x4254b6,_0x1d43cd='',_0x5c0396={},_0x545f2f={})=>{const _0x332c9a=a50_0x4579cb,_0x15e2b3={};_0x15e2b3['RIWzG']=_0x332c9a(0x1bb),_0x15e2b3['HJZDV']='Accessibility\x20scanner\x20scripts\x20are\x20not\x20loaded\x20for\x20this\x20run;\x20skipping\x20scan';const _0xaa8ce7=_0x15e2b3;logger[_0x332c9a(0x134)](_0x332c9a(0x1c0)+_0x1d43cd+_0x332c9a(0x17b)+_0x4254b6);if(!scripts['hasScripts'](_0xaa8ce7['RIWzG'])){logger[_0x332c9a(0x134)](_0xaa8ce7[_0x332c9a(0x11c)]);return;}const _0x3bd013={'url':await _0x4254b6[_0x332c9a(0x1c1)](),'testhub_btcer_uuid':global[_0x332c9a(0x131)]?.[_0x332c9a(0x111)]?.['id']};if(global[_0x332c9a(0x136)])return await PerformanceTester['measureWrapper'](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x48819b=_0x332c9a,_0x5d1e79={};_0x5d1e79[_0x48819b(0x18e)]=_0x1d43cd;const _0x58320a=_0x5d1e79;_0x5c0396&&_0x5c0396['includePartOfPageScope']&&(_0x58320a['includePartOfPageScope']=_0x5c0396[_0x48819b(0x14c)]);Object[_0x48819b(0x174)](_0x58320a,_0x545f2f);const _0x2699ea=await exports[_0x48819b(0x14f)](_0x4254b6,scripts['performScan'],_0x58320a);return _0x2699ea;},{'command':_0x1d43cd,..._0x3bd013})();},exports[a50_0x4579cb(0x19e)]=async _0x5776c9=>{const _0x9e244e=a50_0x4579cb,_0xd99299={};_0xd99299[_0x9e244e(0x1a9)]='performScan',_0xd99299[_0x9e244e(0x16e)]=_0x9e244e(0x1c8),_0xd99299[_0x9e244e(0x10d)]=_0x9e244e(0x114),_0xd99299[_0x9e244e(0x108)]=_0x9e244e(0x1ae);const _0x528047=_0xd99299;if(!scripts[_0x9e244e(0x15c)](_0x528047[_0x9e244e(0x1a9)],_0x528047[_0x9e244e(0x16e)]))return logger[_0x9e244e(0x1b3)](_0x528047[_0x9e244e(0x10d)]),{};if(global[_0x9e244e(0x136)])try{const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};const _SCAN_CAP_MS_SUMMARY=45000;try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');const _scanPromise=exports.browserStackEvaluate(_0x5776c9,scripts.performScan,mobileArgs);let _capTimer;const _scanCap=new Promise((_,reject)=>{_capTimer=setTimeout(()=>reject(new Error(`SCAN-CAP-HIT performScan capped at ${_SCAN_CAP_MS_SUMMARY}ms`)),_SCAN_CAP_MS_SUMMARY);});try{logger.debug(util.format(await Promise.race([_scanPromise,_scanCap])));}finally{clearTimeout(_capTimer);}},{command:'getAccessibilityResultsSummary'})();}catch(_scanErr){logger.warn(`[SCAN-CAP] performScan didn't complete cleanly (getSummary): ${_scanErr.message} — proceeding to fetch cached summary`);global.__bstackA11yScanCapHit={reason:'SCAN_CAP_HIT',at:Date.now(),where:'getSummary'};}const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x5776c9,scripts.getResultsSummary,mobileArgs);})();if(summaryResults&&typeof summaryResults==='object'&&global.__bstackA11yScanCapHit){summaryResults.degraded=true;summaryResults.degradedReason=global.__bstackA11yScanCapHit.reason;}return summaryResults;}catch(_0x552c50){return logger[_0x9e244e(0x13a)](_0x9e244e(0x112)+(_0x552c50&&(_0x552c50[_0x9e244e(0x1d1)]||_0x552c50[_0x9e244e(0x1af)])||_0x552c50)),{};}else return logger[_0x9e244e(0x1b3)](_0x528047[_0x9e244e(0x108)]),{};},exports[a50_0x4579cb(0x10c)]=_0x36419f=>{const _0x30c13d=a50_0x4579cb,_0x4fb1f0={'ytNOo':'platformValidation:\x20Mobile\x20platform\x20already\x20validated.','TAClK':_0x30c13d(0x121),'cJxum':function(_0x2e3d45,_0x15b946){return _0x2e3d45!==_0x15b946;},'iXzIi':_0x30c13d(0x15f),'Aqdip':function(_0x5f1ce1){return _0x5f1ce1();},'CdgVt':'on\x20non-BrowserStack\x20infrastructure\x20'};try{if(global[_0x30c13d(0x142)])return logger[_0x30c13d(0x134)](_0x4fb1f0[_0x30c13d(0x188)]),!![];const _0x54afa4=_0x36419f[_0x30c13d(0x113)],_0x356a9e=_0x36419f['browser_version'];if(!accessibilityHelper[_0x30c13d(0x1cf)](_0x54afa4))return logger['warn'](_0x4fb1f0[_0x30c13d(0xff)]),![];if(_0x4fb1f0[_0x30c13d(0x15a)](_0x356a9e,_0x4fb1f0[_0x30c13d(0x17c)])){const _0x11b1b0=_0x4fb1f0[_0x30c13d(0x128)](isBrowserstackInfra),_0x5b7174=accessibilityHelper['getMinVersionForBrowser'](_0x54afa4,_0x11b1b0),_0x4cda1c=accessibilityHelper[_0x30c13d(0x170)](_0x54afa4);if(!accessibilityHelper['isVersionSupported'](_0x356a9e,_0x5b7174)){const _0x12bc2a=_0x11b1b0?'':_0x4fb1f0['CdgVt'];return logger[_0x30c13d(0x1b3)](_0x30c13d(0x126)+_0x4cda1c+_0x30c13d(0x11d)+_0x5b7174+_0x30c13d(0x11a)+_0x12bc2a+'.'),![];}}}catch(_0x264375){logger[_0x30c13d(0x134)](_0x30c13d(0x159)+util[_0x30c13d(0x19f)](_0x264375));}return!![];},exports['processAccessibilityCaps']=(_0x2c6645,_0x35faab,_0x4ce953)=>{const _0x1194af=a50_0x4579cb,_0x3dd32f={'oVpag':_0x1194af(0x13e),'kYLxE':function(_0x390f52){return _0x390f52();},'dfaKP':_0x1194af(0x16b),'sMaYS':_0x1194af(0x121),'ifxdW':function(_0x48d512,_0x22cbcb){return _0x48d512!==_0x22cbcb;},'VrDWD':_0x1194af(0x15f),'gEHTI':function(_0x4ad69e){return _0x4ad69e();},'yPoNw':_0x1194af(0x1d2),'GCBJE':function(_0x10827d,_0x9ad1a4){return _0x10827d(_0x9ad1a4);},'JRHBU':function(_0x3928dc,_0x398c8e){return _0x3928dc===_0x398c8e;},'JnUMW':'android','lhhjz':_0x1194af(0x17e),'YojUh':_0x1194af(0x178),'NcPAy':'chromium','QVwBU':_0x1194af(0x1ab),'qGsTg':function(_0x2997c2,_0x40ce87){return _0x2997c2+_0x40ce87;}};try{if(_0x3dd32f['kYLxE'](isAccessibilityAutomationSession)){global[_0x1194af(0x136)]=!![];!_0x2c6645[_0x3dd32f[_0x1194af(0x156)]]&&(global[_0x1194af(0x136)]=![]);const _0x1151e4=_0x2c6645[_0x1194af(0x1cd)]||_0x2c6645[_0x1194af(0x113)],_0x2509ef=_0x2c6645['browser_version'];!accessibilityHelper[_0x1194af(0x1cf)](_0x1151e4)&&(logger[_0x1194af(0x1b3)](_0x3dd32f['sMaYS']),global[_0x1194af(0x136)]=![]);if(_0x3dd32f[_0x1194af(0x12d)](_0x2509ef,_0x3dd32f[_0x1194af(0x141)])){const _0x1c066f=_0x3dd32f[_0x1194af(0x117)](isBrowserstackInfra),_0x29de5d=accessibilityHelper[_0x1194af(0x183)](_0x1151e4,_0x1c066f),_0x54668b=accessibilityHelper[_0x1194af(0x170)](_0x1151e4);if(!accessibilityHelper['isVersionSupported'](_0x2509ef,_0x29de5d)){const _0x389718=_0x1c066f?'':_0x3dd32f['yPoNw'];logger[_0x1194af(0x1b3)](_0x1194af(0x126)+_0x54668b+'\x20browser\x20version\x20'+_0x29de5d+'\x20or\x20higher\x20'+_0x389718+'.'),global[_0x1194af(0x136)]=![];}}if(!_0x3dd32f[_0x1194af(0x107)](isUndefined,_0x2c6645[_0x1194af(0x122)])){const _0x8cb951=(_0x2c6645['os']||'')[_0x1194af(0x173)](),_0x366be0=(_0x2c6645['browserName']||_0x2c6645[_0x1194af(0x113)]||'')['toLowerCase'](),_0x22d257=_0x3dd32f[_0x1194af(0x1a8)](_0x8cb951,_0x3dd32f[_0x1194af(0x14b)])&&[_0x3dd32f[_0x1194af(0x133)],_0x3dd32f[_0x1194af(0x186)],_0x3dd32f[_0x1194af(0x180)]][_0x1194af(0x19b)](_0x366be0);if(!_0x22d257)logger[_0x1194af(0x1b3)](_0x3dd32f[_0x1194af(0x123)]),global[_0x1194af(0x136)]=![];else!accessibilityHelper[_0x1194af(0x162)]()&&(logger[_0x1194af(0x1b3)](accessibilityHelper['MOBILE_SCANNING_DISABLED_WARNING']),global[_0x1194af(0x136)]=![]);}if(!global['accessibilityPlatform']){_0x2c6645[_0x3dd32f[_0x1194af(0x156)]]=![],Object[_0x1194af(0x135)](_0x2c6645)['forEach'](_0x21638e=>{const _0x2f4cb8=_0x1194af;_0x21638e[_0x2f4cb8(0x1c4)](_0x3dd32f[_0x2f4cb8(0x13f)])&&delete _0x2c6645[_0x21638e];});const _0x2e9464=_0x3dd32f[_0x1194af(0x196)](_0x35faab,_0x3dd32f[_0x1194af(0x107)](encodeURIComponent,JSON['stringify'](_0x2c6645)));_0x4ce953&&(_0x4ce953['currentTest'][_0x1194af(0x150)][_0x1194af(0x172)][_0x1194af(0x100)][_0x1194af(0x169)]['wsEndpoint']=_0x2e9464,_0x4ce953[_0x1194af(0x10a)][_0x1194af(0x172)][_0x1194af(0x100)]['connectOptions']['wsEndpoint']=_0x2e9464);}}else global[_0x1194af(0x136)]=![];}catch(_0x4d41f6){logger[_0x1194af(0x134)](_0x1194af(0x119)+util[_0x1194af(0x19f)](_0x4d41f6));}};
1
+ const a50_0x4aff70=a50_0x7190;(function(_0x249c31,_0x6bc553){const _0x34aef6=a50_0x7190,_0x335563=_0x249c31();while(!![]){try{const _0x296039=-parseInt(_0x34aef6(0x1cf))/0x1+-parseInt(_0x34aef6(0x249))/0x2+parseInt(_0x34aef6(0x210))/0x3+-parseInt(_0x34aef6(0x19c))/0x4*(-parseInt(_0x34aef6(0x202))/0x5)+-parseInt(_0x34aef6(0x1b8))/0x6+-parseInt(_0x34aef6(0x24b))/0x7*(parseInt(_0x34aef6(0x1ef))/0x8)+parseInt(_0x34aef6(0x1a3))/0x9;if(_0x296039===_0x6bc553)break;else _0x335563['push'](_0x335563['shift']());}catch(_0x1faa0d){_0x335563['push'](_0x335563['shift']());}}}(a50_0x410d,0xe9bca));function a50_0x410d(){const _0x5ede24=['\x20send\x20failed:\x20','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','../../helpers/accessibility-automation/scripts','hVZHD','mKWUI','Playwright','awaitPromise','YLBtg','eXaVL','targets','devtools://','CnVGM','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20','gnGAZ','stack','\x20browser\x20version\x20','\x20or\x20higher\x20','https://','8xoxEJk','url','uUGKI','kCJBG','TUJCu','hZfWv','project','17805294lcpBKl','scannerProcessingTimeout','data:,','tywFW','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','[STALE-RETRY]\x20browserStackEvaluate:\x20retry\x20after\x20stale-page\x20error\x20(','test','string','XSdsg','accessibilityOptions.authToken','hmxRw','isDetached','oRLMz','includes','wsEndpoint','parse','NJjpY','type','isMobileScanningEnabledForGroup','[STALE-CDP-NO-TARGET]\x20attempt=','isClosed','9899460qVLHCT','stringify','includePartOfPageScope','\x20no\x20AUT\x20target\x20found\x20among\x20','tgIWY','use','on\x20non-BrowserStack\x20infrastructure\x20','\x20using\x20target\x20url=','workerInfo','browserName','platformValidation:\x20Mobile\x20platform\x20already\x20validated.','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','mainFrame','expression','browserStackEvaluate','DAQng','WJtbF','BS_A11Y_JWT','[STALE-PRE]\x20browserStackEvaluate:\x20page\x20ref\x20stale,\x20reselected\x20from\x20browser.pages()','debug','includeIssueType','YyBWN','MOBILE_SCANNING_DISABLED_WARNING','1001446AEozxJ','browser','aEKuj','rUXNN','Poohb','qeNMz','accessibilityOptions.includeIssueType.bestPractice','ApMoq','text','dGAXr','cDojH','latest','executeScript','DaaOB','accessibilityOptions.scannerProcessingTimeout','length','detach','startsWith','env','format','Gkdha','ehpfl','[STALE-CDP]\x20falling\x20back\x20to\x20fresh-CDP-session\x20evaluate','silly','browserstack.accessibility','replace','ZLMEn','bfTEl','vaEaM','chromium','name','createCDPSession','288jwqaZx','accessibilityPlatform','Accessibility\x20scanner\x20scripts\x20are\x20not\x20loaded\x20for\x20this\x20run;\x20cannot\x20retrieve\x20results\x20summary.\x20Returning\x20an\x20empty\x20summary,\x20which\x20is\x20NOT\x20the\x20same\x20as\x20a\x20scan\x20that\x20found\x20no\x20issues.','tXnvN','nMCaY','hasScripts','ObMMt','bKGHO','vNBdR','error','../../helpers/performance/performance-tester','HVufm',')\x20—\x20fresh\x20page\x20url=','chrome','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','isBrowserSupportedForAccessibility','accessibilityOptions.scannerVersion','setAccessibilityCapabilities','isVersionSupported','3678745MdZOjx','isMobilePlatform','GbMGv','constructor','iTlJJ','bkJzR','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20','getBrowserDisplayName','android','\x20evaluate\x20returned\x20via\x20fresh\x20CDP\x20session','platformValidation','[STALE-CDP-EX]\x20attempt=','\x20transient=','waitUntil','2256018EpzhXF','browserstack.accessibilityOptions','http://','JAxge','HgPUr','browserStackExecuteDriver','parameters','pdwzF','send','warn','WJYkl','about:blank','performScan','playwright-chromium','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','GqGTz','body','toISOString','util','exceptionDetails','\x20createCDPSession\x20failed:\x20','browser_version','WebDriver','command','[STALE-CDP-SEND-ERR]\x20attempt=','executeAsyncScript','unknown','message','Runtime.evaluate','yhKBe','zuzfF','value','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','pages','cZqQL','../../helpers/helper','deviceName','bstackSdkArgs','OsAxE','measureWrapper','getAccessibilityResultsSummary','accessibilityOptions','ZEbof','getAccessibilityResultsSummary\x20failed:\x20','MkHWx','targetsLen','winstonLogger','reload','../../helpers/accessibility-automation/helper','find','[STALE-CDP-OK]\x20attempt=','forEach','toLowerCase','result','bestPractice','Krjxi','returnByValue','452000SXosIR','MAert','71386qATXpe','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','lGzOF','uFkFX','currentTest','getResultsSummary','[STALE-RELOAD-ERR]\x20reload/retry\x20failed:\x20','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','keys','evaluate','function','scannerVersion','\x20targets','kZTBS','wcagVersion','../../helpers/logger','getMinVersionForBrowser','[STALE-CDP-ERR]\x20cdp-session\x20fallback\x20failed:\x20','evalViaFreshCDPSession:\x20Runtime.evaluate\x20exception\x20—\x20','chpbK','transient','TirTU','getResults','info','OGIAI','../utils/constants','[STALE-CDP-SESSION-ERR]\x20attempt=','][\x20SDK-AUTOMATION\x20]\x20','Accessibility\x20scanner\x20scripts\x20are\x20not\x20loaded\x20for\x20this\x20run;\x20cannot\x20retrieve\x20results.\x20Returning\x20an\x20empty\x20result,\x20which\x20is\x20NOT\x20the\x20same\x20as\x20a\x20scan\x20that\x20found\x20no\x20issues.','accessibilityOptions.wcagVersion','KXTuY'];a50_0x410d=function(){return _0x5ede24;};return a50_0x410d();}function a50_0x7190(_0xc2ed79,_0x202f67){const _0x410d86=a50_0x410d();return a50_0x7190=function(_0x71901c,_0x59d2be){_0x71901c=_0x71901c-0x176;let _0x4fc703=_0x410d86[_0x71901c];return _0x4fc703;},a50_0x7190(_0xc2ed79,_0x202f67);}const util=require(a50_0x4aff70(0x222)),logger=require(a50_0x4aff70(0x17a))[a50_0x4aff70(0x23e)],{automationLogger}=require(a50_0x4aff70(0x17a)),{isAccessibilityAutomationSession}=require(a50_0x4aff70(0x240)),{isUndefined,isBrowserstackInfra}=require(a50_0x4aff70(0x233)),scripts=require(a50_0x4aff70(0x18c)),PerformanceTester=require(a50_0x4aff70(0x1f9)),{A11Y_EVENTS:PerformanceA11yEvents}=require('../../helpers/performance/constants'),accessibilityHelper=require('../../helpers/accessibility-automation/helper'),{AUTOMATION_LOG_COMMANDS}=require(a50_0x4aff70(0x184)),isStalePageError=_0x4fc87d=>{const _0x247556=a50_0x4aff70,_0x5af7a3={'TirTU':function(_0x369d33,_0x182d71){return _0x369d33(_0x182d71);}},_0x4225da=_0x4fc87d&&_0x4fc87d['message']||_0x5af7a3[_0x247556(0x180)](String,_0x4fc87d);return/Target closed|detached [Ff]rame|Execution context was destroyed, most likely because of a navigation/[_0x247556(0x1a9)](_0x4225da);},isPageStale=_0x51e5ae=>{const _0x32ac37=a50_0x4aff70;try{if(_0x51e5ae[_0x32ac37(0x1b7)]&&_0x51e5ae[_0x32ac37(0x1b7)]())return!![];const _0x47870e=_0x51e5ae[_0x32ac37(0x1c4)]&&_0x51e5ae[_0x32ac37(0x1c4)]();if(_0x47870e&&_0x47870e['isDetached']&&_0x47870e[_0x32ac37(0x1ae)]())return!![];}catch(_0x260153){}return![];},isUserTabUrl=_0x5dc006=>{const _0x2095d6=a50_0x4aff70,_0x2d3b8e={};_0x2d3b8e['vaEaM']=_0x2095d6(0x194),_0x2d3b8e['RuSjc']=function(_0x58fa4e,_0x4e46d3){return _0x58fa4e===_0x4e46d3;},_0x2d3b8e['GzLZw']=_0x2095d6(0x21b),_0x2d3b8e[_0x2095d6(0x24e)]=function(_0x485922,_0x101df6){return _0x485922===_0x101df6;},_0x2d3b8e[_0x2095d6(0x1ab)]=_0x2095d6(0x1a5),_0x2d3b8e[_0x2095d6(0x178)]=function(_0x1ca96a,_0x100eb9){return _0x1ca96a===_0x100eb9;};const _0x1bcbb2=_0x2d3b8e;if(!_0x5dc006)return![];if(_0x5dc006[_0x2095d6(0x1e0)](_0x1bcbb2[_0x2095d6(0x1eb)]))return![];if(_0x1bcbb2['RuSjc'](_0x5dc006,_0x1bcbb2['GzLZw'])||_0x1bcbb2['uFkFX'](_0x5dc006,_0x1bcbb2['XSdsg'])||_0x1bcbb2[_0x2095d6(0x178)](_0x5dc006,''))return![];return!![];},pickFreshPage=async _0x302a1f=>{const _0x452c74=a50_0x4aff70,_0x414200={'ZLMEn':function(_0x2482d5,_0x486676){return _0x2482d5(_0x486676);}};try{const _0x1be989=await _0x302a1f[_0x452c74(0x231)]();return _0x1be989[_0x452c74(0x241)](_0x2460eb=>{const _0x3c73bc=_0x452c74;try{if(_0x414200[_0x3c73bc(0x1e9)](isPageStale,_0x2460eb))return![];return _0x414200[_0x3c73bc(0x1e9)](isUserTabUrl,_0x2460eb['url']&&_0x2460eb[_0x3c73bc(0x19d)]());}catch(_0x492e8d){return![];}});}catch(_0x584f85){return null;}},evalViaFreshCDPSession=async(_0x4df2ac,_0x5620e7)=>{const _0x2e568e=a50_0x4aff70,_0x1f6b64={'iTlJJ':function(_0x2ce775,_0x45fd3b){return _0x2ce775===_0x45fd3b;},'HgPUr':'page','gnGAZ':_0x2e568e(0x212),'wwrIY':_0x2e568e(0x19b),'rUXNN':_0x2e568e(0x194),'qeNMz':function(_0x39383d){return _0x39383d();},'QaJYg':_0x2e568e(0x22c),'ApMoq':_0x2e568e(0x22a),'mKWUI':function(_0x1c7682,_0x4bf432){return _0x1c7682!==_0x4bf432;},'hVZHD':_0x2e568e(0x255),'TUJCu':function(_0x36fb27,_0x3c3f3a){return _0x36fb27(_0x3c3f3a);},'WJYkl':function(_0x3383f6,_0x4ea8a2){return _0x3383f6(_0x4ea8a2);}};if(!_0x4df2ac['browser']||_0x1f6b64[_0x2e568e(0x18e)](typeof _0x4df2ac['browser'],_0x1f6b64[_0x2e568e(0x18d)]))return undefined;const _0x5c36f4=_0x4df2ac[_0x2e568e(0x1d0)]();if(!_0x5c36f4[_0x2e568e(0x193)])return undefined;const _0x2313df=_0x4df2ac[_0x2e568e(0x19d)]&&_0x4df2ac['url']()||'',_0x16d9cd=()=>{const _0x256fdf=_0x2e568e,_0x524f6e={'ehpfl':function(_0xbeee8a,_0x25460d){const _0x342542=a50_0x7190;return _0x1f6b64[_0x342542(0x206)](_0xbeee8a,_0x25460d);},'DAQng':_0x1f6b64[_0x256fdf(0x214)]},_0x3a73ff=_0x5c36f4[_0x256fdf(0x193)]();let _0x33dd38=_0x3a73ff['find'](_0x313336=>{const _0x3c194b=_0x256fdf;try{return _0x524f6e[_0x3c194b(0x1e4)](_0x313336[_0x3c194b(0x1b4)](),_0x524f6e[_0x3c194b(0x1c7)])&&_0x524f6e['ehpfl'](_0x313336['url'](),_0x2313df);}catch(_0x5b8087){return![];}});if(_0x33dd38){const _0x2d5986={};return _0x2d5986['t']=_0x33dd38,_0x2d5986[_0x256fdf(0x23d)]=_0x3a73ff['length'],_0x2d5986;}_0x33dd38=_0x3a73ff[_0x256fdf(0x241)](_0x2f428b=>{const _0x1afccb=_0x256fdf;try{const _0x2e7418=_0x2f428b[_0x1afccb(0x19d)]()||'';return _0x1f6b64[_0x1afccb(0x206)](_0x2f428b[_0x1afccb(0x1b4)](),_0x1f6b64[_0x1afccb(0x214)])&&(_0x2e7418[_0x1afccb(0x1e0)](_0x1f6b64[_0x1afccb(0x197)])||_0x2e7418['startsWith'](_0x1f6b64['wwrIY']))&&!_0x2e7418[_0x1afccb(0x1e0)](_0x1f6b64[_0x1afccb(0x1d2)]);}catch(_0x31a461){return![];}});const _0x41ca28={};return _0x41ca28['t']=_0x33dd38,_0x41ca28['targetsLen']=_0x3a73ff[_0x256fdf(0x1de)],_0x41ca28;},_0xf54341=async _0x3efbc2=>{const _0x50a4b6=_0x2e568e,{t:_0x323072,targetsLen:_0x13f44}=_0x1f6b64[_0x50a4b6(0x1d4)](_0x16d9cd);if(!_0x323072){logger[_0x50a4b6(0x182)](_0x50a4b6(0x1b6)+_0x3efbc2+_0x50a4b6(0x1bb)+_0x13f44+_0x50a4b6(0x177));const _0x15321f={};return _0x15321f['ok']=![],_0x15321f[_0x50a4b6(0x17f)]=![],_0x15321f;}logger[_0x50a4b6(0x182)]('[STALE-CDP-TRY]\x20attempt='+_0x3efbc2+_0x50a4b6(0x1bf)+(_0x323072[_0x50a4b6(0x19d)]&&_0x323072[_0x50a4b6(0x19d)]()));let _0x4b962d;try{_0x4b962d=await _0x323072[_0x50a4b6(0x1ee)]();}catch(_0x4f6a9e){const _0x352b04=/navigated or closed|Target closed|Session closed/i[_0x50a4b6(0x1a9)](_0x4f6a9e[_0x50a4b6(0x22b)]||'');logger[_0x50a4b6(0x182)](_0x50a4b6(0x185)+_0x3efbc2+_0x50a4b6(0x224)+_0x4f6a9e[_0x50a4b6(0x22b)]+_0x50a4b6(0x20e)+_0x352b04);const _0xa6d41={};return _0xa6d41['ok']=![],_0xa6d41[_0x50a4b6(0x17f)]=_0x352b04,_0xa6d41;}try{const _0x317490={};_0x317490[_0x50a4b6(0x1c5)]=_0x5620e7,_0x317490[_0x50a4b6(0x190)]=!![],_0x317490[_0x50a4b6(0x248)]=!![];const _0x2c8197=await _0x4b962d[_0x50a4b6(0x218)](_0x1f6b64['QaJYg'],_0x317490);if(_0x2c8197&&_0x2c8197['exceptionDetails']){const _0x3d7fe6=_0x2c8197[_0x50a4b6(0x223)]&&_0x2c8197['exceptionDetails'][_0x50a4b6(0x1d7)]||_0x1f6b64[_0x50a4b6(0x1d6)];logger[_0x50a4b6(0x182)](_0x50a4b6(0x20d)+_0x3efbc2+'\x20evaluate\x20exception:\x20'+_0x3d7fe6);const _0xec231a={};return _0xec231a['ok']=![],_0xec231a[_0x50a4b6(0x17f)]=![],_0xec231a['exceptionDetails']=_0x3d7fe6,_0xec231a;}logger['info'](_0x50a4b6(0x242)+_0x3efbc2+_0x50a4b6(0x20b));const _0x40642c={};return _0x40642c['ok']=!![],_0x40642c[_0x50a4b6(0x22f)]=_0x2c8197&&_0x2c8197['result']&&_0x2c8197[_0x50a4b6(0x245)][_0x50a4b6(0x22f)],_0x40642c;}catch(_0x4dd166){const _0x5524a1=/navigated or closed|Target closed|Session closed/i[_0x50a4b6(0x1a9)](_0x4dd166[_0x50a4b6(0x22b)]||'');logger['info'](_0x50a4b6(0x228)+_0x3efbc2+_0x50a4b6(0x18a)+_0x4dd166[_0x50a4b6(0x22b)]+'\x20transient='+_0x5524a1);const _0x4089d4={};return _0x4089d4['ok']=![],_0x4089d4[_0x50a4b6(0x17f)]=_0x5524a1,_0x4089d4;}finally{try{_0x4b962d&&_0x4b962d[_0x50a4b6(0x1df)]&&await _0x4b962d[_0x50a4b6(0x1df)]();}catch(_0x39e65f){}}};let _0x513c14=await _0x1f6b64[_0x2e568e(0x1a0)](_0xf54341,0x1);if(_0x513c14['ok'])return _0x513c14[_0x2e568e(0x22f)];if(_0x513c14['transient']){await new Promise(_0x3057ed=>setTimeout(_0x3057ed,0x190)),_0x513c14=await _0x1f6b64[_0x2e568e(0x21a)](_0xf54341,0x2);if(_0x513c14['ok'])return _0x513c14['value'];}if(_0x513c14['exceptionDetails']){const _0x2309e4=new Error(_0x2e568e(0x17d)+_0x513c14[_0x2e568e(0x223)]);_0x2309e4['cdpExceptionDetails']=_0x513c14[_0x2e568e(0x223)];throw _0x2309e4;}return undefined;};exports[a50_0x4aff70(0x1c6)]=async(_0x499f14,_0x196844,_0x2e3c5e={})=>{const _0x57753d=a50_0x4aff70,_0x39504f={'yXmWQ':_0x57753d(0x235),'vNBdR':function(_0x1aec1d,_0x2715a7){return _0x1aec1d(_0x2715a7);},'cDojH':_0x57753d(0x1ca),'aEKuj':function(_0x14a71c,_0x1689ee){return _0x14a71c!==_0x1689ee;},'YyBWN':'domcontentloaded','bfTEl':_0x57753d(0x1e5),'ZEbof':function(_0x27ca0b,_0x26f5f4,_0xb4584){return _0x27ca0b(_0x26f5f4,_0xb4584);},'lGzOF':function(_0x343472,_0x5afc05){return _0x343472===_0x5afc05;},'OsAxE':_0x57753d(0x1aa)},_0x28fd42=_0x57753d(0x196)+_0x196844['replace'](/arguments/g,_0x39504f['yXmWQ'])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0x57753d(0x1b9)](_0x2e3c5e)+')';let _0xb4deb7=_0x499f14;if(_0x39504f[_0x57753d(0x1f7)](isPageStale,_0xb4deb7)&&_0x499f14[_0x57753d(0x1d0)]){const _0x58b5d2=await _0x39504f[_0x57753d(0x1f7)](pickFreshPage,_0x499f14['browser']());_0x58b5d2&&(logger[_0x57753d(0x182)](_0x39504f[_0x57753d(0x1d9)]),_0xb4deb7=_0x58b5d2);}let _0x3cff37;try{_0x3cff37=await _0xb4deb7[_0x57753d(0x254)](_0x28fd42);}catch(_0x515b2a){if(_0x39504f[_0x57753d(0x1f7)](isStalePageError,_0x515b2a)&&_0x499f14[_0x57753d(0x1d0)]){const _0x386cae=await _0x39504f[_0x57753d(0x1f7)](pickFreshPage,_0x499f14[_0x57753d(0x1d0)]());if(_0x386cae&&_0x39504f[_0x57753d(0x1d1)](_0x386cae,_0xb4deb7))logger['info'](_0x57753d(0x1a8)+_0x515b2a[_0x57753d(0x22b)]+_0x57753d(0x1fb)+(_0x386cae[_0x57753d(0x19d)]&&_0x386cae[_0x57753d(0x19d)]())),_0x3cff37=await _0x386cae[_0x57753d(0x254)](_0x28fd42);else{if(_0x499f14['reload']){let _0x40605b=![];try{logger['info']('[STALE-RELOAD]\x20browserStackEvaluate:\x20no\x20fresh\x20page\x20after\x20stale-page\x20error\x20('+_0x515b2a[_0x57753d(0x22b)]+')\x20—\x20reloading\x20page\x20to\x20reset\x20frame');const _0x10edf3={};_0x10edf3[_0x57753d(0x20f)]=_0x39504f[_0x57753d(0x1cd)],await _0x499f14[_0x57753d(0x23f)](_0x10edf3);const _0x2acab8=await _0x39504f['vNBdR'](pickFreshPage,_0x499f14[_0x57753d(0x1d0)]())||_0x499f14;logger[_0x57753d(0x182)]('[STALE-RELOAD-RETRY]\x20retry\x20after\x20reload\x20—\x20page\x20url='+(_0x2acab8[_0x57753d(0x19d)]&&_0x2acab8['url']())),_0x3cff37=await _0x2acab8[_0x57753d(0x254)](_0x28fd42),_0x40605b=!![];}catch(_0x24a77b){logger[_0x57753d(0x182)](_0x57753d(0x251)+_0x24a77b[_0x57753d(0x22b)]);}if(!_0x40605b)try{logger[_0x57753d(0x182)](_0x39504f[_0x57753d(0x1ea)]);const _0x36255b=await _0x39504f[_0x57753d(0x23a)](evalViaFreshCDPSession,_0x499f14,_0x28fd42);if(_0x39504f[_0x57753d(0x1d1)](_0x36255b,undefined))_0x3cff37=_0x36255b;else throw _0x515b2a;}catch(_0x31cfbd){logger['info'](_0x57753d(0x17c)+_0x31cfbd['message']);throw _0x515b2a;}}else throw _0x515b2a;}}else throw _0x515b2a;}try{if(_0x196844&&_0x39504f[_0x57753d(0x24d)](typeof _0x196844,_0x39504f[_0x57753d(0x236)])){const _0x56e033=AUTOMATION_LOG_COMMANDS[_0x57753d(0x241)](_0x13e467=>_0x196844[_0x57753d(0x1b0)](_0x13e467));if(_0x56e033){const _0x9e18f8={};_0x9e18f8[_0x57753d(0x227)]=_0x56e033,_0x9e18f8[_0x57753d(0x216)]=[_0x2e3c5e];const _0x31c513={};_0x31c513[_0x57753d(0x220)]=_0x3cff37;const _0x281708={};_0x281708['request']=_0x9e18f8,_0x281708['response']=_0x31c513,automationLogger[_0x57753d(0x1e6)]('['+new Date()[_0x57753d(0x221)]()+_0x57753d(0x186)+JSON[_0x57753d(0x1b9)](_0x281708));}}}catch(_0x303295){logger[_0x57753d(0x1cb)]('[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20'+_0x303295[_0x57753d(0x22b)]);}return _0x3cff37;},exports[a50_0x4aff70(0x215)]=async(_0xf2804d,_0x1d63b9,_0x350590={})=>{const _0x54eacb=a50_0x4aff70,_0x4c79cc={};_0x4c79cc[_0x54eacb(0x17e)]=function(_0xdf64e,_0x54c614){return _0xdf64e===_0x54c614;},_0x4c79cc[_0x54eacb(0x1ad)]=_0x54eacb(0x226),_0x4c79cc[_0x54eacb(0x1d8)]=_0x54eacb(0x18f),_0x4c79cc['XEahu']='bstackSdkArgs';const _0x1a0fd3=_0x4c79cc;if(_0x1a0fd3['chpbK'](_0xf2804d[_0x54eacb(0x205)][_0x54eacb(0x1ed)],_0x1a0fd3['hmxRw']))return await _0xf2804d[_0x54eacb(0x229)](_0x1d63b9,_0x350590);else{if(_0x1a0fd3[_0x54eacb(0x17e)](_0xf2804d[_0x54eacb(0x205)][_0x54eacb(0x1ed)],_0x1a0fd3['dGAXr']))return await _0xf2804d[_0x54eacb(0x1db)](_0x54eacb(0x208)+_0x1d63b9[_0x54eacb(0x1e8)](/arguments/g,_0x1a0fd3['XEahu'])+_0x54eacb(0x1fd)+JSON['stringify'](_0x350590)+')');}},exports[a50_0x4aff70(0x200)]=async _0x5e5c45=>{const _0x1560db=a50_0x4aff70,_0x1c2b4d={};_0x1c2b4d[_0x1560db(0x1f5)]=_0x1560db(0x188),_0x1c2b4d[_0x1560db(0x192)]=_0x1560db(0x1dd),_0x1c2b4d[_0x1560db(0x1f3)]=_0x1560db(0x1d5),_0x1c2b4d[_0x1560db(0x19f)]='accessibilityOptions.includeIssueType.needsReview',_0x1c2b4d['oRLMz']=_0x1560db(0x1ac),_0x1c2b4d[_0x1560db(0x183)]=_0x1560db(0x1ff);const _0x57929b=_0x1c2b4d;_0x5e5c45[_0x1560db(0x239)]&&(_0x5e5c45[_0x1560db(0x239)][_0x1560db(0x179)]&&(_0x5e5c45[_0x57929b[_0x1560db(0x1f5)]]=_0x5e5c45[_0x1560db(0x239)]['wcagVersion']),_0x5e5c45[_0x1560db(0x239)]['scannerProcessingTimeout']&&(_0x5e5c45[_0x57929b[_0x1560db(0x192)]]=_0x5e5c45['accessibilityOptions'][_0x1560db(0x1a4)]),_0x5e5c45[_0x1560db(0x239)][_0x1560db(0x1cc)]&&(_0x5e5c45[_0x57929b['nMCaY']]=_0x5e5c45[_0x1560db(0x239)][_0x1560db(0x1cc)][_0x1560db(0x246)],_0x5e5c45[_0x57929b['kCJBG']]=_0x5e5c45[_0x1560db(0x239)][_0x1560db(0x1cc)]['needsReview']));const _0x53b9ff=JSON[_0x1560db(0x1b2)](process['env'][_0x1560db(0x230)]||'{}')[_0x1560db(0x176)];_0x5e5c45[_0x57929b[_0x1560db(0x1af)]]=process[_0x1560db(0x1e1)][_0x1560db(0x1c9)],_0x5e5c45[_0x57929b[_0x1560db(0x183)]]=_0x53b9ff,delete _0x5e5c45['accessibilityOptions'];},exports['getAccessibilityResults']=async _0x3c2b50=>{const _0x1b5417=a50_0x4aff70,_0xa26f50={};_0xa26f50['tXnvN']=_0x1b5417(0x21c),_0xa26f50[_0x1b5417(0x1dc)]=_0x1b5417(0x181),_0xa26f50['yhKBe']=_0x1b5417(0x187),_0xa26f50['WJtbF']=_0x1b5417(0x21e);const _0x55d301=_0xa26f50;if(!scripts[_0x1b5417(0x1f4)](_0x55d301[_0x1b5417(0x1f2)],_0x55d301[_0x1b5417(0x1dc)]))return logger['warn'](_0x55d301[_0x1b5417(0x22d)]),[];if(global[_0x1b5417(0x1f0)])try{const details={'url':await _0x3c2b50.url(),'testhub_btcer_uuid':global.__workerDetails?.currentTest?.id};const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};logger.debug('Performing scan before getting results');const _SCAN_CAP_MS=45000;try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{const _scanPromise=exports.browserStackEvaluate(_0x3c2b50,scripts.performScan,mobileArgs);let _capTimer;const _scanCap=new Promise((_,reject)=>{_capTimer=setTimeout(()=>reject(new Error(`SCAN-CAP-HIT performScan capped at ${_SCAN_CAP_MS}ms`)),_SCAN_CAP_MS);});try{logger.debug(util.format(await Promise.race([_scanPromise,_scanCap])));}finally{clearTimeout(_capTimer);}},{command:'getAccessibilityResults',...details})();}catch(_scanErr){logger.warn(`[SCAN-CAP] performScan didn't complete cleanly (getResults): ${_scanErr.message} — proceeding to fetch cached results`);global.__bstackA11yScanCapHit={reason:'SCAN_CAP_HIT',at:Date.now(),where:'getResults'};}const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x3c2b50,scripts.getResults,mobileArgs);},{...details})();return res;}catch(_0x525600){return logger[_0x1b5417(0x1f8)]('getAccessibilityResults\x20failed:\x20'+(_0x525600&&(_0x525600[_0x1b5417(0x198)]||_0x525600[_0x1b5417(0x22b)])||_0x525600)),[];}else return logger[_0x1b5417(0x219)](_0x55d301[_0x1b5417(0x1c8)]),[];},exports[a50_0x4aff70(0x21c)]=async(_0x38c4a5,_0x241309='',_0x31fe70={},_0x45fe3c={})=>{const _0xed8476=a50_0x4aff70,_0x301ad5={};_0x301ad5['KXTuY']=_0xed8476(0x21c),_0x301ad5[_0xed8476(0x24a)]='Accessibility\x20scanner\x20scripts\x20are\x20not\x20loaded\x20for\x20this\x20run;\x20skipping\x20scan';const _0x2415c2=_0x301ad5;logger[_0xed8476(0x1cb)]('Performing\x20scan\x20with\x20method:\x20'+_0x241309+'\x20page:\x20'+_0x38c4a5);if(!scripts['hasScripts'](_0x2415c2[_0xed8476(0x189)])){logger[_0xed8476(0x1cb)](_0x2415c2[_0xed8476(0x24a)]);return;}const _0x447a06={'url':await _0x38c4a5[_0xed8476(0x19d)](),'testhub_btcer_uuid':global['__workerDetails']?.['currentTest']?.['id']};if(global[_0xed8476(0x1f0)])return await PerformanceTester[_0xed8476(0x237)](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x263a89=_0xed8476,_0x37e511={};_0x37e511[_0x263a89(0x227)]=_0x241309;const _0x124465=_0x37e511;_0x31fe70&&_0x31fe70[_0x263a89(0x1ba)]&&(_0x124465[_0x263a89(0x1ba)]=_0x31fe70['includePartOfPageScope']);Object['assign'](_0x124465,_0x45fe3c);const _0x25e857=await exports[_0x263a89(0x1c6)](_0x38c4a5,scripts['performScan'],_0x124465);return _0x25e857;},{'command':_0x241309,..._0x447a06})();},exports[a50_0x4aff70(0x238)]=async _0x4d3dca=>{const _0x54d2a9=a50_0x4aff70,_0x143b5a={};_0x143b5a[_0x54d2a9(0x1e3)]='performScan',_0x143b5a['cZqQL']=_0x54d2a9(0x250),_0x143b5a[_0x54d2a9(0x247)]=_0x54d2a9(0x1f1),_0x143b5a['GbMGv']=_0x54d2a9(0x252);const _0x159a8f=_0x143b5a;if(!scripts[_0x54d2a9(0x1f4)](_0x159a8f['Gkdha'],_0x159a8f[_0x54d2a9(0x232)]))return logger['warn'](_0x159a8f['Krjxi']),{};if(global['accessibilityPlatform'])try{const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};const _SCAN_CAP_MS_SUMMARY=45000;try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');const _scanPromise=exports.browserStackEvaluate(_0x4d3dca,scripts.performScan,mobileArgs);let _capTimer;const _scanCap=new Promise((_,reject)=>{_capTimer=setTimeout(()=>reject(new Error(`SCAN-CAP-HIT performScan capped at ${_SCAN_CAP_MS_SUMMARY}ms`)),_SCAN_CAP_MS_SUMMARY);});try{logger.debug(util.format(await Promise.race([_scanPromise,_scanCap])));}finally{clearTimeout(_capTimer);}},{command:'getAccessibilityResultsSummary'})();}catch(_scanErr){logger.warn(`[SCAN-CAP] performScan didn't complete cleanly (getSummary): ${_scanErr.message} — proceeding to fetch cached summary`);global.__bstackA11yScanCapHit={reason:'SCAN_CAP_HIT',at:Date.now(),where:'getSummary'};}const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x4d3dca,scripts.getResultsSummary,mobileArgs);})();if(summaryResults&&typeof summaryResults==='object'&&global.__bstackA11yScanCapHit){summaryResults.degraded=true;summaryResults.degradedReason=global.__bstackA11yScanCapHit.reason;}return summaryResults;}catch(_0x178aa8){return logger[_0x54d2a9(0x1f8)](_0x54d2a9(0x23b)+(_0x178aa8&&(_0x178aa8[_0x54d2a9(0x198)]||_0x178aa8[_0x54d2a9(0x22b)])||_0x178aa8)),{};}else return logger[_0x54d2a9(0x219)](_0x159a8f[_0x54d2a9(0x204)]),{};},exports[a50_0x4aff70(0x20c)]=_0x183a7f=>{const _0x23e895=a50_0x4aff70,_0x3f32d5={'CnVGM':_0x23e895(0x1c2),'tywFW':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','tgIWY':function(_0xf09938,_0x2d1754){return _0xf09938!==_0x2d1754;},'bKGHO':'latest','RqmKT':function(_0x45aa27){return _0x45aa27();},'YLBtg':'on\x20non-BrowserStack\x20infrastructure\x20'};try{if(global[_0x23e895(0x203)])return logger[_0x23e895(0x1cb)](_0x3f32d5[_0x23e895(0x195)]),!![];const _0x4a9bb6=_0x183a7f[_0x23e895(0x1d0)],_0x19696a=_0x183a7f[_0x23e895(0x225)];if(!accessibilityHelper[_0x23e895(0x1fe)](_0x4a9bb6))return logger[_0x23e895(0x219)](_0x3f32d5[_0x23e895(0x1a6)]),![];if(_0x3f32d5[_0x23e895(0x1bc)](_0x19696a,_0x3f32d5[_0x23e895(0x1f6)])){const _0x34b5bd=_0x3f32d5['RqmKT'](isBrowserstackInfra),_0x1b6889=accessibilityHelper[_0x23e895(0x17b)](_0x4a9bb6,_0x34b5bd),_0x8d173a=accessibilityHelper['getBrowserDisplayName'](_0x4a9bb6);if(!accessibilityHelper['isVersionSupported'](_0x19696a,_0x1b6889)){const _0x476470=_0x34b5bd?'':_0x3f32d5[_0x23e895(0x191)];return logger['warn'](_0x23e895(0x1c3)+_0x8d173a+_0x23e895(0x199)+_0x1b6889+'\x20or\x20higher\x20'+_0x476470+'.'),![];}}}catch(_0x32c111){logger['debug'](_0x23e895(0x24c)+util[_0x23e895(0x1e2)](_0x32c111));}return!![];},exports['processAccessibilityCaps']=(_0x2010ad,_0x1277b7,_0x4f9b31)=>{const _0x40f440=a50_0x4aff70,_0x487a91={'Poohb':_0x40f440(0x211),'zuzfF':function(_0x582948){return _0x582948();},'HVufm':_0x40f440(0x1e7),'uUGKI':_0x40f440(0x18b),'bkJzR':function(_0x21f225,_0x43e17d){return _0x21f225!==_0x43e17d;},'GqGTz':_0x40f440(0x1da),'MsQAH':_0x40f440(0x1be),'pdwzF':function(_0x20fed7,_0x392fdc){return _0x20fed7(_0x392fdc);},'hZfWv':function(_0x524c79,_0x12de3a){return _0x524c79===_0x12de3a;},'xCSzp':_0x40f440(0x20a),'jKrfy':_0x40f440(0x1fc),'NJjpY':_0x40f440(0x21d),'MkHWx':_0x40f440(0x1ec),'onNeT':_0x40f440(0x1a7),'JAxge':function(_0x1437d9,_0x543603){return _0x1437d9+_0x543603;}};try{if(_0x487a91[_0x40f440(0x22e)](isAccessibilityAutomationSession)){global[_0x40f440(0x1f0)]=!![];!_0x2010ad[_0x487a91[_0x40f440(0x1fa)]]&&(global['accessibilityPlatform']=![]);const _0x259e14=_0x2010ad[_0x40f440(0x1c1)]||_0x2010ad[_0x40f440(0x1d0)],_0x411ec6=_0x2010ad[_0x40f440(0x225)];!accessibilityHelper[_0x40f440(0x1fe)](_0x259e14)&&(logger[_0x40f440(0x219)](_0x487a91[_0x40f440(0x19e)]),global[_0x40f440(0x1f0)]=![]);if(_0x487a91[_0x40f440(0x207)](_0x411ec6,_0x487a91[_0x40f440(0x21f)])){const _0x13d0bf=_0x487a91[_0x40f440(0x22e)](isBrowserstackInfra),_0x58e1ae=accessibilityHelper[_0x40f440(0x17b)](_0x259e14,_0x13d0bf),_0x48e142=accessibilityHelper[_0x40f440(0x209)](_0x259e14);if(!accessibilityHelper[_0x40f440(0x201)](_0x411ec6,_0x58e1ae)){const _0x50ee3d=_0x13d0bf?'':_0x487a91['MsQAH'];logger[_0x40f440(0x219)](_0x40f440(0x1c3)+_0x48e142+'\x20browser\x20version\x20'+_0x58e1ae+_0x40f440(0x19a)+_0x50ee3d+'.'),global['accessibilityPlatform']=![];}}if(!_0x487a91['pdwzF'](isUndefined,_0x2010ad[_0x40f440(0x234)])){const _0xfd5e9=(_0x2010ad['os']||'')[_0x40f440(0x244)](),_0x2e7bc0=(_0x2010ad[_0x40f440(0x1c1)]||_0x2010ad[_0x40f440(0x1d0)]||'')[_0x40f440(0x244)](),_0x2f2c25=_0x487a91[_0x40f440(0x1a1)](_0xfd5e9,_0x487a91['xCSzp'])&&[_0x487a91['jKrfy'],_0x487a91[_0x40f440(0x1b3)],_0x487a91[_0x40f440(0x23c)]]['includes'](_0x2e7bc0);if(!_0x2f2c25)logger[_0x40f440(0x219)](_0x487a91['onNeT']),global[_0x40f440(0x1f0)]=![];else!accessibilityHelper[_0x40f440(0x1b5)]()&&(logger['warn'](accessibilityHelper[_0x40f440(0x1ce)]),global[_0x40f440(0x1f0)]=![]);}if(!global[_0x40f440(0x1f0)]){_0x2010ad[_0x487a91[_0x40f440(0x1fa)]]=![],Object[_0x40f440(0x253)](_0x2010ad)[_0x40f440(0x243)](_0x301e5b=>{const _0x5e467e=_0x40f440;_0x301e5b[_0x5e467e(0x1e0)](_0x487a91[_0x5e467e(0x1d3)])&&delete _0x2010ad[_0x301e5b];});const _0x5ddfe7=_0x487a91[_0x40f440(0x213)](_0x1277b7,_0x487a91[_0x40f440(0x217)](encodeURIComponent,JSON[_0x40f440(0x1b9)](_0x2010ad)));_0x4f9b31&&(_0x4f9b31[_0x40f440(0x24f)]['testInfo']['project'][_0x40f440(0x1bd)]['connectOptions'][_0x40f440(0x1b1)]=_0x5ddfe7,_0x4f9b31[_0x40f440(0x1c0)][_0x40f440(0x1a2)][_0x40f440(0x1bd)]['connectOptions'][_0x40f440(0x1b1)]=_0x5ddfe7);}}else global[_0x40f440(0x1f0)]=![];}catch(_0x28f253){logger[_0x40f440(0x1cb)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util['format'](_0x28f253));}};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a51_0x1b930b=a51_0x17a8;(function(_0x2366f7,_0x10004a){const _0x5b8339=a51_0x17a8,_0x3cc303=_0x2366f7();while(!![]){try{const _0x3f348e=-parseInt(_0x5b8339(0x183))/0x1*(parseInt(_0x5b8339(0x1a3))/0x2)+parseInt(_0x5b8339(0x1fb))/0x3*(-parseInt(_0x5b8339(0x1d6))/0x4)+parseInt(_0x5b8339(0x24d))/0x5*(parseInt(_0x5b8339(0x191))/0x6)+parseInt(_0x5b8339(0x192))/0x7+parseInt(_0x5b8339(0x1f3))/0x8*(parseInt(_0x5b8339(0x18f))/0x9)+parseInt(_0x5b8339(0x1b9))/0xa*(parseInt(_0x5b8339(0x24e))/0xb)+parseInt(_0x5b8339(0x234))/0xc*(-parseInt(_0x5b8339(0x225))/0xd);if(_0x3f348e===_0x10004a)break;else _0x3cc303['push'](_0x3cc303['shift']());}catch(_0x3492b3){_0x3cc303['push'](_0x3cc303['shift']());}}}(a51_0x54ae,0x70e88));function a51_0x17a8(_0x5dc25b,_0x3dc779){const _0x54aea5=a51_0x54ae();return a51_0x17a8=function(_0x17a822,_0x2f9b3f){_0x17a822=_0x17a822-0x16b;let _0x58aa55=_0x54aea5[_0x17a822];return _0x58aa55;},a51_0x17a8(_0x5dc25b,_0x3dc779);}const fs=require('fs'),path=require(a51_0x1b930b(0x226)),{pathToFileURL}=require(a51_0x1b930b(0x21e)),{spawn}=require('child_process'),{format}=require(a51_0x1b930b(0x249)),logger=require('../../helpers/logger')['winstonLogger'],{default:BrowserStackSetup}=require(a51_0x1b930b(0x1c2)),helper=require(a51_0x1b930b(0x24c)),utilities=require(a51_0x1b930b(0x214)),constants=require(a51_0x1b930b(0x1d3)),{FRAMEWORKS}=require(a51_0x1b930b(0x20b)),{getConfigLoaderPath}=require(a51_0x1b930b(0x1d8)),{mergeBrowserstackReporterIntoCliReporterFlag}=require(a51_0x1b930b(0x1f5)),{shouldProcessEventForTesthub}=require(a51_0x1b930b(0x1ef)),{checkAccessibilityPlatformConfig}=require(a51_0x1b930b(0x227)),{setAccessibilityCapabilities}=require(a51_0x1b930b(0x1bf)),{printBuildLink}=require(a51_0x1b930b(0x199)),TestDetails=require(a51_0x1b930b(0x1d4)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),PerformanceTester=require('../../helpers/performance/performance-tester'),TestOrchestrationHandler=require(a51_0x1b930b(0x16d)),BrowserstackCLI=require(a51_0x1b930b(0x1b4)),PerformanceEvents=require(a51_0x1b930b(0x216))[a51_0x1b930b(0x22b)],CLIUtils=require(a51_0x1b930b(0x21a)),TestInfo=require(a51_0x1b930b(0x1a5)),ClientTroubleShootingService=require('../utils/clientTroubleshootingService'),getUserPlaywrightConfig=async(_0x53dff8,_0x12671a)=>{const _0x2e7981=a51_0x1b930b,_0x592cb9={'Vhhwc':function(_0x4bcbf6){return _0x4bcbf6();},'VGnra':function(_0x36d09a,_0x190f64){return _0x36d09a(_0x190f64);},'XkpcH':_0x2e7981(0x1e8),'QvVXh':_0x2e7981(0x1e9)},_0x1fb6c2=!helper[_0x2e7981(0x1f6)](_0x53dff8[_0x2e7981(0x1e1)]),_0x8b3aaa=_0x1fb6c2?path['resolve'](process[_0x2e7981(0x235)](),_0x53dff8[_0x2e7981(0x1e1)]):process[_0x2e7981(0x235)](),{resolveConfigFile:_0x385376,resolveConfigLocation:_0x4ef80b}=helper[_0x2e7981(0x1a4)][_0x2e7981(0x20a)](null,_0x592cb9[_0x2e7981(0x17f)](getConfigLoaderPath)),_0x12fbc1=_0x385376?_0x592cb9['VGnra'](_0x385376,_0x8b3aaa):helper[_0x2e7981(0x203)](_0x592cb9['VGnra'](_0x4ef80b,_0x8b3aaa),[_0x592cb9['XkpcH']]),_0x50df4e={};if(_0x1fb6c2){const _0x49e30f=_0x12671a[_0x2e7981(0x1ae)](_0x48dc60=>_0x48dc60==='--config'||_0x48dc60==='-c'||_0x48dc60['startsWith'](_0x2e7981(0x1e9)));_0x12671a['splice'](_0x49e30f,_0x12671a[_0x49e30f][_0x2e7981(0x18d)](_0x592cb9['QvVXh'])?0x1:0x2);}const _0x17beeb={};return _0x17beeb[_0x2e7981(0x226)]=_0x12fbc1,_0x17beeb[_0x2e7981(0x1e1)]=_0x50df4e,_0x17beeb;},handleO11yRerun=_0x5cc29f=>{const _0x5ee56c=a51_0x1b930b,_0x11c59d={};_0x11c59d['ZiikK']='--grep';const _0x40771a=_0x11c59d,_0x595160=helper[_0x5ee56c(0x1ca)](process[_0x5ee56c(0x1a1)][_0x5ee56c(0x1e0)]);if(_0x595160){const _0x4ecd31=process[_0x5ee56c(0x1a1)][_0x5ee56c(0x241)],_0xff6970=[];if(helper[_0x5ee56c(0x1f9)](_0x4ecd31)&&!helper[_0x5ee56c(0x1f6)](_0x4ecd31)){_0x4ecd31[_0x5ee56c(0x246)](',')[_0x5ee56c(0x175)](_0x49a4e3=>{const _0xb736e0=_0x5ee56c;_0xff6970[_0xb736e0(0x1fe)]('('+_0x49a4e3['trim']()+')');});const _0x2b5185='^'+_0xff6970[_0x5ee56c(0x205)]('|')+'$';_0x5cc29f[_0x5ee56c(0x1fe)](_0x40771a['ZiikK'],_0x2b5185);}}},spawnOriginalProcess=_0x418f56=>{const _0x22dcc4=a51_0x1b930b,_0x55a412={'NNyuv':function(_0x13e756,_0x5a1133,_0x48defc,_0x193abc){return _0x13e756(_0x5a1133,_0x48defc,_0x193abc);},'qoUNi':_0x22dcc4(0x1c5),'FNLPL':'npx','OGpcP':'playwright','MPNkU':function(_0x5a4ce8,_0x5b08d2){return _0x5a4ce8===_0x5b08d2;},'VQpsH':'win32','LgPET':_0x22dcc4(0x1e6)};_0x55a412[_0x22dcc4(0x20d)](spawn,helper[_0x22dcc4(0x23c)]()?_0x55a412['qoUNi']:_0x55a412[_0x22dcc4(0x1f4)],[_0x55a412[_0x22dcc4(0x238)],..._0x418f56[_0x22dcc4(0x177)](0x1)],{'shell':_0x55a412['MPNkU'](process[_0x22dcc4(0x243)],_0x55a412[_0x22dcc4(0x219)]),'stdio':_0x55a412[_0x22dcc4(0x1c8)],'cwd':process[_0x22dcc4(0x235)]()});},isTestCommand=(_0x41d42a,_0x28ee0a)=>{const _0x4bdbe8=a51_0x1b930b,_0x48abdc={};_0x48abdc[_0x4bdbe8(0x22c)]=function(_0x2c2cfc,_0x19c807){return _0x2c2cfc>_0x19c807;},_0x48abdc['NDEFf']=function(_0x445976,_0x163bdb){return _0x445976===_0x163bdb;},_0x48abdc[_0x4bdbe8(0x20c)]=_0x4bdbe8(0x1d2);const _0x5a950c=_0x48abdc;if(_0x5a950c[_0x4bdbe8(0x22c)](_0x28ee0a[_0x4bdbe8(0x236)],0x1)&&_0x5a950c[_0x4bdbe8(0x173)](_0x28ee0a[0x1],_0x5a950c[_0x4bdbe8(0x20c)]))return!![];return![];};function a51_0x54ae(){const _0x233e7f=['../../helpers/utilities','eOdkL','../../helpers/performance/constants','QtthT','reportConflictingEnvVarIssue','VQpsH','../v2/cliUtils','smyRA','getConfig','SDK_POST_INITIALIZE','url','ZolfN','error','Proxy\x20url\x20:\x20','JnCov','SEukR','getInstance','1527877eZzdsb','path','../../helpers/accessibility-automation/helper','browserstackSetupConfig.json','BROWSERSTACK_AUTOMATION','seeded\x20BROWSERSTACK_TESTHUB_UUID_SEED\x20with\x20testhub\x20build\x20id\x20','EVENTS','jEvlG','Error\x20in\x20closing\x20playwright','OvFWd','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20','BHGYn','ngsqf','bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;','../../index.js','120XyghLZ','cwd','length','gAQjC','OGpcP','accessSync','clearTempPWConfig','Updated\x20config\x20file\x20name\x20to\x20-\x20','isYarnPnP','isCLIEnabled','NwuIJ','unlinkSync','ymGTq','BROWSERSTACK_RERUN_TESTS','initialize','platform','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','GDTjU','split','SDK_PRE_INITIALIZE','relative','util','cliConfig','UHmmS','../../helpers/helper','655355FErzBU','11SeccHM','win32','findPlaywrightTestFiles','../../helpers/test-orchestration/testOrchestrationHandler','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','measureWrapper','.browserstack','PACKAGE_TYPE','dUiBp','NDEFf','accessibility','map','R_OK','slice','Error\x20in\x20getting\x20funnel\x20data\x20results','getProxyUrl','PLAYWRIGHT','info','Found:\x20','filterBrowserstackArgs','dirname','Vhhwc','start','NuePb','DdIlP','1TXwpHz','href','sep','AwTvN','browserstackAutomation','BROWSERSTACK_SETUP_CONFIG_PATH','debug','forEach','reportDotBrowserStackFolderNotAccessibleIssue','stringify','startsWith','FlBtF','9ebuqUf','W_OK','30zCXCYg','2732807nLQIFT','testContextOptions','configPath','isTestOrchestrationEnabled','exitCode','key','yAyxA','../../helpers/test-observability/utils','nGPOx','\x27browserstack-node-sdk\x27','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(','wXyQi','concat','UobPD','Rpslq','env','qPVkk','732274XlPOaA','requirePWModule','../v2/TestInfo','tUuMK','isRunning','cyefz','reorderTestFiles','automation',';\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','testObservability','exports','findIndex','MjJgp','WajAB','ikBQL','INTERNALLY_USED_ENV_VARS','indexOf','../v2/browserstackCLI','logLevel','writeFileSync','MODULE','entries','8969970GfIlVb','readFileSync','playwright-browserstack-sdk.config.js','true','BROWSERSTACK_PW_CONFIG_DIR','wSWWS','./accessibility-helper','isValidEnvValue','Unable\x20to\x20resolve\x20global-agent\x20from\x20the\x20SDK\x20module\x20graph:\x20','../../helpers/BrowserStackSetup','--disable-browserstack-automation','O11yHashedID','yarn','lWRht','DptPM','LgPET','LlHhS','isTrue','getBuildState','BROWSERSTACK_TEST_ACCESSIBILITY_YML','Deleting\x20','finalExecution','serializeToYamlString','--disable-test-observability','warn','test','../utils/constants','./reporter/test-details','LeoMf','20COBDmB','No\x20Proxy\x20:\x20','./reporter/pwUtils','BROWSERSTACK_TESTHUB_UUID_SEED','dBzQH','BROWSERSTACK_TEST_OBSERVABILITY','symNv','Test\x20orchestration\x20is\x20enabled,\x20initializing\x20orchestration\x20handler','imzYz','ToUXf','BROWSERSTACK_RERUN','config','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(','frPwJ','has','filter','inherit','assign','resolvedConfigFile','--config=','NNFpH','pw_result','Omzth','errorMessage','setBrowserstackConfig','../../helpers/testhub/utils','\x20/\x20(esm)\x20','try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','getNoProxy','7301648PvUUqZ','FNLPL','./reporterArgs','isUndefined','--config','existsSync','validateRerunTestList','setupBrowserstackLocal','510936iivseU','isFalse','HRoBa','push','end','global-agent','BROWSERSTACK_FRAMEWORK','SDK_SETUP','nestedKeyValue','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap();','join','constants','launchBuild','reportFinalDetectionState','pw_result.json','apply','../../helpers/test-observability/constants','LkHXK','NNyuv','qzBVX','kxxGd','LLelq','resolve','viDgI','homedir'];a51_0x54ae=function(){return _0x233e7f;};return a51_0x54ae();}async function run(_0x232c42,_0xe52cd8,_0xb0881c){const _0x15d437=a51_0x1b930b,_0x590eda={'ToUXf':function(_0x331e1b,_0x2a05dc){return _0x331e1b(_0x2a05dc);},'SEukR':'../v2/runStateStore','ikBQL':_0x15d437(0x1eb),'MjJgp':function(_0x48654c,_0x55afdf){return _0x48654c>_0x55afdf;},'gAQjC':_0x15d437(0x170),'dBzQH':_0x15d437(0x209),'dUiBp':function(_0x3763c6,_0x3dc2bd){return _0x3763c6+_0x3dc2bd;},'wSWWS':_0x15d437(0x178),'wXyQi':function(_0x1c80c8){return _0x1c80c8();},'xsjKs':_0x15d437(0x22d),'NwuIJ':'BrowserStack\x20config\x20file\x20not\x20found.','QtthT':function(_0x626661,_0x15e9d9){return _0x626661<_0x15e9d9;},'viDgI':function(_0x3c7614,_0x58d09d){return _0x3c7614===_0x58d09d;},'DdIlP':'false','Rpslq':_0x15d437(0x1d0),'yAyxA':function(_0x156b60,_0x3121e3){return _0x156b60>=_0x3121e3;},'LeoMf':_0x15d437(0x1aa),'NNFpH':function(_0x865d64,_0x33d89a){return _0x865d64!=_0x33d89a;},'DptPM':function(_0x1ad298,_0x4c1999,_0x46aa79){return _0x1ad298(_0x4c1999,_0x46aa79);},'loNUU':_0x15d437(0x1bc),'cyefz':function(_0x10f038,_0x7868a0){return _0x10f038(_0x7868a0);},'ngsqf':_0x15d437(0x228),'LLelq':'playwright-browserstack-sdk.config.cjs','vtWuy':_0x15d437(0x1bb),'UobPD':_0x15d437(0x233),'qPVkk':function(_0x4de050,_0x16a754){return _0x4de050===_0x16a754;},'ymGTq':_0x15d437(0x19b),'LAhnI':function(_0x3769f2,_0x2f4e5c){return _0x3769f2-_0x2f4e5c;},'inbNU':function(_0x5c7274,_0x109c26){return _0x5c7274+_0x109c26;},'rkbTB':_0x15d437(0x23b),'lWRht':function(_0x3368ec,_0x58689a){return _0x3368ec>_0x58689a;},'GDTjU':_0x15d437(0x200),'WajAB':_0x15d437(0x232),'kxxGd':function(_0x30924d,_0x422657){return _0x30924d+_0x422657;},'frPwJ':function(_0x45fe51,_0x1e2aef,_0x13d48b){return _0x45fe51(_0x1e2aef,_0x13d48b);},'Omzth':function(_0x549cae){return _0x549cae();},'NuePb':_0x15d437(0x1dd),'FlBtF':'playwright','zMgZQ':function(_0xae840b,_0x35736e,_0x4e0871,_0xd8506c){return _0xae840b(_0x35736e,_0x4e0871,_0xd8506c);},'imzYz':_0x15d437(0x1c5),'eOdkL':'npx','rOHKz':'test','nGPOx':_0x15d437(0x1f7),'tUuMK':_0x15d437(0x16b),'wTYgr':function(_0x507dcd,_0x2f0284){return _0x507dcd===_0x2f0284;},'HRoBa':_0x15d437(0x1e6),'symNv':'close','qzBVX':function(_0x351080,_0x267841){return _0x351080|_0x267841;},'BHGYn':function(_0x36de20,_0xbedfc4){return _0x36de20+_0xbedfc4;},'ZolfN':_0x15d437(0x244),'EtQiU':'Error\x20in\x20deleting\x20playwright\x20results','LlHhS':function(_0x3ea82e,_0x5ac767){return _0x3ea82e(_0x5ac767);}};try{const _0x380769=path[_0x15d437(0x205)](helper[_0x15d437(0x213)](),_0x590eda[_0x15d437(0x237)]);try{fs[_0x15d437(0x239)](_0x380769,_0x590eda[_0x15d437(0x20e)](fs[_0x15d437(0x206)][_0x15d437(0x176)],fs[_0x15d437(0x206)][_0x15d437(0x190)]));}catch(_0x305859){ClientTroubleShootingService[_0x15d437(0x18b)]();}}catch(_0x495fd6){logger[_0x15d437(0x189)](_0x590eda['BHGYn'](_0x590eda[_0x15d437(0x21f)],_0x495fd6));}try{const _0x47bbc0=path[_0x15d437(0x205)](helper[_0x15d437(0x213)](),_0x590eda['gAQjC'],_0x590eda[_0x15d437(0x1da)]);fs[_0x15d437(0x1f8)](_0x47bbc0)&&fs['unlinkSync'](_0x47bbc0);}catch(_0x575e8c){logger[_0x15d437(0x189)](_0x590eda[_0x15d437(0x230)](_0x590eda['EtQiU'],_0x575e8c));}if(!_0x590eda[_0x15d437(0x1c7)](isTestCommand,_0x232c42,_0xe52cd8)){_0x590eda[_0x15d437(0x1c9)](spawnOriginalProcess,_0xe52cd8);return;}await PerformanceTester[_0x15d437(0x16f)](PerformanceEvents[_0x15d437(0x247)],async()=>{const _0xd8578c=_0x15d437,_0x37ac80={'OvFWd':function(_0x4672a7,_0x3b12f1){const _0x22a7b7=a51_0x17a8;return _0x590eda[_0x22a7b7(0x1df)](_0x4672a7,_0x3b12f1);},'JnCov':_0x590eda['gAQjC'],'smyRA':function(_0x34b9f9){const _0x444a37=a51_0x17a8;return _0x590eda[_0x444a37(0x19d)](_0x34b9f9);},'AwTvN':function(_0x3b9787,_0x4e604d){const _0xee7d49=a51_0x17a8;return _0x590eda[_0xee7d49(0x172)](_0x3b9787,_0x4e604d);},'UHmmS':_0x590eda['xsjKs']};if(!_0xb0881c[_0xd8578c(0x1e1)]){logger[_0xd8578c(0x220)](_0x590eda[_0xd8578c(0x23e)]);return;}await _0xb0881c[_0xd8578c(0x242)](_0x232c42),CLIUtils['setFrameworkDetail'](FRAMEWORKS['PLAYWRIGHT'],FRAMEWORKS[_0xd8578c(0x17a)]),BrowserstackCLI[_0xd8578c(0x224)]()[_0xd8578c(0x1ee)](_0xb0881c['config'],_0xb0881c[_0xd8578c(0x194)],_0xb0881c[_0xd8578c(0x24a)]),await BrowserstackCLI[_0xd8578c(0x224)]()['bootstrap']();!BrowserstackCLI['getInstance']()[_0xd8578c(0x1a7)]()&&await _0xb0881c[_0xd8578c(0x1fa)]();for(var _0x20ad5e=0x0;_0x590eda['QtthT'](_0x20ad5e,constants[_0xd8578c(0x1b2)][_0xd8578c(0x236)]);_0x20ad5e++){var _0x1d3c71=constants['INTERNALLY_USED_ENV_VARS'][_0x20ad5e];process[_0xd8578c(0x1a1)][_0x1d3c71]&&await ClientTroubleShootingService[_0xd8578c(0x218)](_0x1d3c71);}const _0x159458=BrowserstackCLI[_0xd8578c(0x224)]()[_0xd8578c(0x21c)]();!helper[_0xd8578c(0x1fc)](_0x159458[_0xd8578c(0x187)])&&(process[_0xd8578c(0x1a1)]['BROWSERSTACK_AUTOMATION']=!![]);_0x590eda[_0xd8578c(0x212)](_0x159458[_0xd8578c(0x187)],![])&&(process['env']['BROWSERSTACK_AUTOMATION']=_0x590eda[_0xd8578c(0x182)],_0xe52cd8=_0xe52cd8[_0xd8578c(0x1e5)](_0x1b616b=>_0x1b616b!==_0xd8578c(0x1c3)));const _0x42e50a=_0xe52cd8[_0xd8578c(0x1b3)](_0x590eda[_0xd8578c(0x1a0)]);(_0x590eda[_0xd8578c(0x198)](_0x42e50a,0x0)||_0x590eda['viDgI'](_0x159458[_0xd8578c(0x1ac)],![]))&&(process[_0xd8578c(0x1a1)]['BROWSERSTACK_TEST_OBSERVABILITY']=_0x590eda[_0xd8578c(0x182)],_0xe52cd8=_0xe52cd8['filter'](_0x37cfd7=>_0x37cfd7!==_0xd8578c(0x1d0)));!helper[_0xd8578c(0x1f6)](_0xb0881c[_0xd8578c(0x24a)])&&_0xb0881c[_0xd8578c(0x24a)][_0xd8578c(0x1e4)](_0x590eda[_0xd8578c(0x1d5)])&&(process[_0xd8578c(0x1a1)][_0xd8578c(0x229)]=_0xb0881c[_0xd8578c(0x24a)]['get'](_0x590eda[_0xd8578c(0x1d5)])||!![]);_0x590eda[_0xd8578c(0x1ea)](_0xb0881c[_0xd8578c(0x1e1)][_0xd8578c(0x1ac)],null)&&!helper['isTrue'](process[_0xd8578c(0x1a1)][_0xd8578c(0x1db)])&&(process['env'][_0xd8578c(0x1db)]=process[_0xd8578c(0x1a1)][_0xd8578c(0x1db)]||_0xb0881c[_0xd8578c(0x1e1)][_0xd8578c(0x1ac)]);const _0x12b86b=!helper[_0xd8578c(0x1fc)](process[_0xd8578c(0x1a1)][_0xd8578c(0x1db)]);if(BrowserstackCLI[_0xd8578c(0x224)]()[_0xd8578c(0x1a7)]()&&_0x12b86b){const _0x33dfcb=BrowserstackCLI[_0xd8578c(0x1c4)];helper[_0xd8578c(0x1c0)](_0x33dfcb)?(process[_0xd8578c(0x1a1)][_0xd8578c(0x1d9)]=_0x33dfcb,logger[_0xd8578c(0x189)](_0xd8578c(0x22a)+_0x33dfcb)):logger[_0xd8578c(0x1d1)]('testhub\x20build\x20UUID\x20(BrowserstackCLI.O11yHashedID)\x20unavailable;\x20skipping\x20deterministic\x20test-run\x20uuid\x20seeding\x20and\x20falling\x20back\x20to\x20file-coordinated\x20uuids.\x20Got:\x20'+_0x33dfcb);}_0xb0881c[_0xd8578c(0x1e1)]['accessibilityOptions']&&(process[_0xd8578c(0x1a1)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0xd8578c(0x18c)](_0xb0881c[_0xd8578c(0x1e1)]['accessibilityOptions']));let _0xe1649c=![];_0xb0881c[_0xd8578c(0x1e1)][_0xd8578c(0x174)]&&(_0xe1649c=!![],process['env'][_0xd8578c(0x1cc)]=_0xb0881c['config'][_0xd8578c(0x174)]);const _0x2efb2c=_0xe52cd8[_0xd8578c(0x19e)](),_0x5f3150=await _0x590eda[_0xd8578c(0x1c7)](getUserPlaywrightConfig,_0x232c42,_0xe52cd8);if(helper[_0xd8578c(0x1f6)](_0x5f3150)){_0x590eda['ToUXf'](spawnOriginalProcess,_0x2efb2c);return;}const _0x23c847=_0x5f3150[_0xd8578c(0x226)]?path[_0xd8578c(0x17e)](_0x5f3150[_0xd8578c(0x226)]):process['cwd']();process[_0xd8578c(0x1a1)][_0xd8578c(0x1bd)]=_0x23c847,await PerformanceTester['measureWrapper'](PerformanceEvents[_0xd8578c(0x21d)],async()=>{const _0x405785=_0xd8578c;!BrowserstackCLI[_0x405785(0x224)]()['isRunning']()&&await TestHubHandler[_0x405785(0x207)](FRAMEWORKS[_0x405785(0x17a)],_0xb0881c),_0x12b86b&&_0x37ac80[_0x405785(0x22e)](handleO11yRerun,_0xe52cd8);})();if(!BrowserstackCLI[_0xd8578c(0x224)]()[_0xd8578c(0x1a7)]()){let _0x554784=_0x590eda[_0xd8578c(0x212)](process['env'][_0xd8578c(0x1cc)],_0x590eda['loNUU']);_0x554784=_0x554784||_0x590eda[_0xd8578c(0x1df)](checkAccessibilityPlatformConfig,_0xb0881c[_0xd8578c(0x1e1)]),process[_0xd8578c(0x1a1)][_0xd8578c(0x1cc)]=_0x554784,_0x554784&&_0x590eda[_0xd8578c(0x1a8)](setAccessibilityCapabilities,_0xb0881c[_0xd8578c(0x1e1)]);}const _0x878256=path['join'](_0x5f3150[_0xd8578c(0x226)]?path[_0xd8578c(0x17e)](_0x5f3150['path']):process[_0xd8578c(0x235)](),_0x590eda[_0xd8578c(0x231)]);fs['writeFileSync'](_0x878256,helper[_0xd8578c(0x1cf)](_0xb0881c['config'])),process['env'][_0xd8578c(0x188)]=_0x878256,helper[_0xd8578c(0x23a)]();let _0x50f159='';_0x590eda[_0xd8578c(0x212)](helper['getPackageType'](_0x23c847),constants[_0xd8578c(0x171)][_0xd8578c(0x1b7)])?_0x50f159=_0x590eda[_0xd8578c(0x210)]:_0x50f159=_0x590eda['vtWuy'];let _0x5cc22c='';const _0x1ba977=path[_0xd8578c(0x211)](__dirname,_0x590eda[_0xd8578c(0x19f)]),_0x333460=fs[_0xd8578c(0x1f8)](_0x1ba977),_0x161eed=_0x590eda[_0xd8578c(0x1a2)](helper['getPackageType'](_0x23c847),constants['PACKAGE_TYPE'][_0xd8578c(0x1b7)]),_0x4669b6=_0x333460?JSON[_0xd8578c(0x18c)](_0x1ba977):_0x590eda[_0xd8578c(0x240)],_0x48e9e2=_0x333460?_0x161eed?JSON[_0xd8578c(0x18c)](_0x590eda[_0xd8578c(0x1a8)](pathToFileURL,_0x1ba977)[_0xd8578c(0x184)]):JSON[_0xd8578c(0x18c)](_0x1ba977):_0x590eda[_0xd8578c(0x240)];logger[_0xd8578c(0x189)]('Generated\x20Playwright\x20config\x20will\x20load\x20the\x20SDK\x20from\x20(cjs)\x20'+_0x4669b6+_0xd8578c(0x1f0)+_0x48e9e2);if(helper['isTypescriptProject'](_0x5f3150[_0xd8578c(0x226)])){_0x5cc22c=_0xd8578c(0x22f)+_0x48e9e2+_0xd8578c(0x1ab);const _0x5b04ae=_0x50f159['split']('.');_0x5b04ae[_0x590eda['LAhnI'](_0x5b04ae[_0xd8578c(0x236)],0x1)]='ts',_0x50f159=_0x5b04ae['join']('.'),logger[_0xd8578c(0x189)](_0x590eda['inbNU'](_0x590eda['rkbTB'],_0x50f159));}else _0x5cc22c=_0xd8578c(0x1e2)+_0x4669b6+')._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a';const _0x52b384=path[_0xd8578c(0x205)](_0x5f3150[_0xd8578c(0x226)]?path[_0xd8578c(0x17e)](_0x5f3150['path']):process[_0xd8578c(0x235)](),_0x50f159);let _0x3bb3c2=_0x5f3150[_0xd8578c(0x226)]?_0x5f3150[_0xd8578c(0x226)]:'';_0x3bb3c2=_0x590eda[_0xd8578c(0x1c6)](_0x3bb3c2[_0xd8578c(0x236)],0x0)?path[_0xd8578c(0x211)](_0x3bb3c2):'',process[_0xd8578c(0x1a1)]['USER_CONFIG_DETAILS_PATH']=_0x3bb3c2;const _0x275c8e=helper[_0xd8578c(0x179)](_0xb0881c['config']),_0x4d7536=helper[_0xd8578c(0x1f2)](_0xb0881c[_0xd8578c(0x1e1)]);logger[_0xd8578c(0x189)](_0xd8578c(0x221)+_0x275c8e),logger[_0xd8578c(0x189)](_0xd8578c(0x1d7)+_0x4d7536);if(_0x275c8e){let _0x18dfca='';try{_0x18dfca=require[_0xd8578c(0x211)](_0x590eda[_0xd8578c(0x245)]);}catch(_0x1d3042){logger[_0xd8578c(0x189)](_0xd8578c(0x1c1)+_0x1d3042);}const _0x4f235e=_0x590eda[_0xd8578c(0x1b0)],_0x599b72=_0x18dfca?_0xd8578c(0x1f1)+_0x4f235e+_0xd8578c(0x19c)+JSON[_0xd8578c(0x18c)](_0x18dfca)+').bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}':_0x4f235e;_0x5cc22c=_0x590eda[_0xd8578c(0x20f)](_0xd8578c(0x16e)+_0x275c8e+'\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20process.env.GLOBAL_AGENT_NO_PROXY=\x22'+_0x4d7536+'\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}catch{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20This\x20is\x20a\x20failsafe\x20if\x20global-agent\x20present\x20inside\x20sdk\x20node_modules\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x599b72+_0xd8578c(0x204),_0x5cc22c);}helper[_0xd8578c(0x17d)]({},_0xe52cd8),_0x590eda[_0xd8578c(0x1e3)](mergeBrowserstackReporterIntoCliReporterFlag,_0xe52cd8,{'enabled':_0x590eda[_0xd8578c(0x1ec)](shouldProcessEventForTesthub)}),fs[_0xd8578c(0x1b6)](_0x52b384,_0x5cc22c);let _0x10043b=[];const _0x1e964b=new TestOrchestrationHandler(_0xb0881c['config']);if(_0x1e964b[_0xd8578c(0x195)]()){logger[_0xd8578c(0x189)](_0x590eda[_0xd8578c(0x181)]);const _0x10ca7f=await _0x1e964b[_0xd8578c(0x16c)](_0x3bb3c2,_0xe52cd8['slice'](0x2));logger[_0xd8578c(0x189)](_0xd8578c(0x17c)+JSON[_0xd8578c(0x18c)](_0x10ca7f)+'\x20test\x20files\x20to\x20run.');const _0x535d17=await _0x1e964b[_0xd8578c(0x1a9)](_0x10ca7f);logger[_0xd8578c(0x189)]('Reordered\x20Test\x20Files:\x20'+JSON[_0xd8578c(0x18c)](_0x535d17)),_0x535d17&&_0x590eda[_0xd8578c(0x1af)](_0x535d17['length'],0x0)&&(process[_0xd8578c(0x1a1)]['BROWSERSTACK_PW_TEST_ORDER']=_0x535d17[_0xd8578c(0x205)](','),_0x590eda[_0xd8578c(0x217)](_0x535d17[_0xd8578c(0x236)],_0x10ca7f['length'])&&(_0x10043b=_0x535d17[_0xd8578c(0x175)](_0xef75ec=>path[_0xd8578c(0x248)](process[_0xd8578c(0x235)](),_0xef75ec)[_0xd8578c(0x246)](path[_0xd8578c(0x185)])[_0xd8578c(0x205)]('/'))));}PerformanceTester[_0xd8578c(0x1ff)](PerformanceEvents[_0xd8578c(0x202)]),process['env'][_0xd8578c(0x201)]=process['env']['BROWSERSTACK_FRAMEWORK']||_0x590eda[_0xd8578c(0x18e)];const _0x1a9439=_0x590eda['zMgZQ'](spawn,helper[_0xd8578c(0x23c)]()?_0x590eda[_0xd8578c(0x1de)]:_0x590eda[_0xd8578c(0x215)],[_0x590eda[_0xd8578c(0x18e)],_0x590eda['rOHKz'],_0x590eda[_0xd8578c(0x19a)],_0x590eda[_0xd8578c(0x212)](process[_0xd8578c(0x243)],_0x590eda['tUuMK'])?'\x22'+_0x52b384+'\x22':_0x52b384,..._0xe52cd8[_0xd8578c(0x177)](0x2),..._0x10043b],{'shell':_0x590eda['wTYgr'](process[_0xd8578c(0x243)],_0x590eda[_0xd8578c(0x1a6)]),'stdio':_0x590eda[_0xd8578c(0x1fd)],'cwd':process[_0xd8578c(0x235)](),'env':Object[_0xd8578c(0x1e7)]({},process[_0xd8578c(0x1a1)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x232c42),'BROWSERSTACK_SKIP_SESSION_STATUS':_0xb0881c[_0xd8578c(0x1e1)][_0xd8578c(0x193)]['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0xb0881c[_0xd8578c(0x1e1)][_0xd8578c(0x193)]['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0xb0881c[_0xd8578c(0x1e1)][_0xd8578c(0x1b5)]})}),_0x367ae7=async()=>{const _0x296cdb=_0xd8578c;try{if(BrowserstackCLI[_0x296cdb(0x224)]()[_0x296cdb(0x1a7)]()){const _0x5bac69=_0x590eda['ToUXf'](require,_0x590eda[_0x296cdb(0x223)]),_0x16bb31=await _0x5bac69[_0x296cdb(0x1cb)](_0x590eda[_0x296cdb(0x1b1)])||[];if(_0x590eda[_0x296cdb(0x1af)](_0x16bb31[_0x296cdb(0x236)],0x0)){const _0x5e7a77={};_0x16bb31[_0x296cdb(0x18a)](_0x5dc72e=>{const _0x360934=_0x296cdb,_0x47612e=_0x5e7a77[_0x5dc72e[_0x360934(0x197)]]||Object['create'](null);(_0x5dc72e[_0x360934(0x1b8)]||[])[_0x360934(0x18a)](({title:_0x1f6450,error:_0x426351})=>{_0x47612e[_0x1f6450]=_0x426351;}),_0x5e7a77[_0x5dc72e[_0x360934(0x197)]]=_0x47612e;}),_0xb0881c[_0x296cdb(0x1ed)]=_0x5e7a77;return;}}const _0x3d1a1b=path['join'](helper['homedir'](),_0x590eda[_0x296cdb(0x237)],_0x590eda['dBzQH']);if(fs[_0x296cdb(0x1f8)](_0x3d1a1b)){let _0x2c12c9=fs[_0x296cdb(0x1ba)](_0x3d1a1b);_0x2c12c9=JSON['parse'](_0x2c12c9),_0xb0881c['errorMessage']=_0x2c12c9,fs[_0x296cdb(0x23f)](_0x3d1a1b);}}catch(_0x183026){logger['debug'](_0x590eda[_0x296cdb(0x172)](_0x590eda[_0x296cdb(0x1be)],_0x183026));}};_0x1a9439['on'](_0x590eda[_0xd8578c(0x1dc)],async _0x58ae65=>{const _0xa0d3e=_0xd8578c;try{PerformanceTester[_0xa0d3e(0x180)](PerformanceEvents['SDK_CLEANUP']),await _0x37ac80['smyRA'](_0x367ae7),await TestHubHandler['stop'](),await ClientTroubleShootingService[_0xa0d3e(0x208)]();const _0x5b6eb0=BrowserstackCLI[_0xa0d3e(0x23d)]();await BrowserstackCLI[_0xa0d3e(0x224)]()['stop'](),TestDetails['shutdown'](),_0x37ac80[_0xa0d3e(0x21b)](printBuildLink),await utilities[_0xa0d3e(0x1ce)](_0xb0881c,_0x5b6eb0),process[_0xa0d3e(0x196)]=_0x58ae65,logger[_0xa0d3e(0x189)]('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x58ae65),logger[_0xa0d3e(0x17b)](_0xa0d3e(0x1cd)+_0x52b384),fs['unlinkSync'](_0x52b384);fs[_0xa0d3e(0x1f8)](_0x878256)&&(logger['debug']('Deleting\x20'+_0x878256),fs[_0xa0d3e(0x23f)](_0x878256));const _0x48b72f=fs['readdirSync'](path[_0xa0d3e(0x205)](helper['homedir'](),_0x37ac80[_0xa0d3e(0x222)]))[_0xa0d3e(0x1e5)](_0x5ad058=>_0x5ad058[_0xa0d3e(0x18d)]('trace_'));_0x48b72f[_0xa0d3e(0x18a)](_0x54fc94=>{const _0x40a8ba=_0xa0d3e;fs[_0x40a8ba(0x23f)](path[_0x40a8ba(0x205)](helper[_0x40a8ba(0x213)](),_0x37ac80['JnCov'],_0x54fc94));});}catch(_0x395022){logger[_0xa0d3e(0x189)](_0x37ac80[_0xa0d3e(0x186)](_0x37ac80[_0xa0d3e(0x24b)],_0x395022));}});})();}module[a51_0x1b930b(0x1ad)]=run;
2
+ 'use strict';function a51_0x23a9(_0x1d2db7,_0x8ad3d0){const _0x118953=a51_0x1189();return a51_0x23a9=function(_0x23a924,_0x1f69ab){_0x23a924=_0x23a924-0x111;let _0x3239bd=_0x118953[_0x23a924];return _0x3239bd;},a51_0x23a9(_0x1d2db7,_0x8ad3d0);}const a51_0x4fd5e5=a51_0x23a9;(function(_0x52efa5,_0x254acb){const _0x40ae36=a51_0x23a9,_0x44784a=_0x52efa5();while(!![]){try{const _0x2f37cf=-parseInt(_0x40ae36(0x1e6))/0x1+parseInt(_0x40ae36(0x1f1))/0x2*(-parseInt(_0x40ae36(0x15c))/0x3)+-parseInt(_0x40ae36(0x1fe))/0x4*(-parseInt(_0x40ae36(0x18a))/0x5)+parseInt(_0x40ae36(0x198))/0x6*(-parseInt(_0x40ae36(0x16d))/0x7)+-parseInt(_0x40ae36(0x13f))/0x8*(parseInt(_0x40ae36(0x1d3))/0x9)+parseInt(_0x40ae36(0x14c))/0xa*(parseInt(_0x40ae36(0x19f))/0xb)+parseInt(_0x40ae36(0x18f))/0xc;if(_0x2f37cf===_0x254acb)break;else _0x44784a['push'](_0x44784a['shift']());}catch(_0x4a9a4d){_0x44784a['push'](_0x44784a['shift']());}}}(a51_0x1189,0x2a293));function a51_0x1189(){const _0x5fa4b0=['win32','startsWith','--disable-test-observability','join','663949gkTmLm','HPUfN','BrowserStack\x20config\x20file\x20not\x20found.','yarn','logLevel','../../helpers/testhub/testhubHandler','unlinkSync','accessibility','IefRI','Found:\x20','UzfbC','yyBCn','XRCdZ','../v2/cliUtils','config','NdjyC','Reordered\x20Test\x20Files:\x20','../../helpers/test-orchestration/testOrchestrationHandler','../utils/constants','splice','filter','BnVXb','initialize','../../index.js','vgDai','getConfig','ABlZm','parse','trim','relative','trace_','lxZFy','BROWSERSTACK_TEST_OBSERVABILITY','length','DxGzV','W_OK','getConfigPath','../../helpers/performance/constants','../../helpers/testhub/utils','SuSWZ','SDK_PRE_INITIALIZE','dJVzy','map','Deleting\x20','BROWSERSTACK_PW_TEST_ORDER','lhPdc','uDbJc','skipSessionName','aWYGf','Error\x20in\x20getting\x20funnel\x20data\x20results','../../helpers/test-observability/utils','npx','1317672yhZgnv','exitCode','readdirSync','resolve','EoYLm','reportConflictingEnvVarIssue','ElXaO','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20','Error\x20in\x20deleting\x20playwright\x20results','test','UFecz','eCxWL','yXdbV','getPackageType','dirname','gYWDx','PxMJT','PACKAGE_TYPE','mbLfy','246113OXuRtX','accessSync','error','get','../v2/browserstackCLI','BROWSERSTACK_FRAMEWORK','true','writeFileSync','split','finalExecution','isFalse','189082tKmJLj','ghLWG','findPlaywrightTestFiles','start','Divcw','util','shutdown','getProxyUrl','PJcCs','aBjEv','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap();','cliConfig','validateRerunTestList','158524YcxVkN','ePpxG','exports','../../helpers/performance/performance-tester','sqgWF','vmGPS','DKDOW','playwright-browserstack-sdk.config.cjs','Unable\x20to\x20resolve\x20global-agent\x20from\x20the\x20SDK\x20module\x20graph:\x20','../../helpers/accessibility-automation/helper','../../helpers/BrowserStackSetup','O11yHashedID','isCLIEnabled','PLAYWRIGHT','SDK_CLEANUP','kgaUK','caKPf','isTrue','create','reportDotBrowserStackFolderNotAccessibleIssue','constants',').bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}','bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;','../../helpers/utilities','launchBuild','BROWSERSTACK_TEST_ACCESSIBILITY_YML','yeJso','NiRue','Error\x20in\x20closing\x20playwright','false','DJJIr','../utils/clientTroubleshootingService','accessibilityOptions','hhbGH','seeded\x20BROWSERSTACK_TESTHUB_UUID_SEED\x20with\x20testhub\x20build\x20id\x20','homedir','AFBrD','wawvj','Playwright\x20process\x20exited\x20with\x20code\x20','nTdXY','TaxDi','vKNtw','env','\x27browserstack-node-sdk\x27','automation','existsSync','yuIug','.browserstack','--disable-browserstack-automation','push','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(','reorderTestFiles','\x20test\x20files\x20to\x20run.','nXwxS','errorMessage','entries','8ynGiLK','FVGAE','BlPpi','setupBrowserstackLocal','winstonLogger','testObservability','fPCIl','bootstrap','Test\x20orchestration\x20is\x20enabled,\x20initializing\x20orchestration\x20handler','isUndefined','./reporterArgs','getInstance','Meqre','40EYFUgz','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','debug','inherit','mECsU','hwklw','filterBrowserstackArgs','../../helpers/logger','--grep','platform','browserstackAutomation','href','MODULE','BROWSERSTACK_AUTOMATION','clearTempPWConfig','isValidEnvValue','3QJAhNC','serializeToYamlString','stop','setFrameworkDetail','SAZit','playwright-browserstack-sdk.config.js','xYsrU','isTestOrchestrationEnabled','resolvedConfigFile','CPfqW','cwd','udOPf','./reporter/test-details','bcECh','BROWSERSTACK_SETUP_CONFIG_PATH','try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','slice','7Znacqx','eOMhE','sep','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}catch{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20This\x20is\x20a\x20failsafe\x20if\x20global-agent\x20present\x20inside\x20sdk\x20node_modules\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','indexOf','key','isRunning','end',')._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','setBrowserstackConfig','Generated\x20Playwright\x20config\x20will\x20load\x20the\x20SDK\x20from\x20(cjs)\x20','forEach','BROWSERSTACK_TESTHUB_UUID_SEED','oWsHi','Updated\x20config\x20file\x20name\x20to\x20-\x20','path','testhub\x20build\x20UUID\x20(BrowserstackCLI.O11yHashedID)\x20unavailable;\x20skipping\x20deterministic\x20test-run\x20uuid\x20seeding\x20and\x20falling\x20back\x20to\x20file-coordinated\x20uuids.\x20Got:\x20','../v2/runStateStore','./accessibility-helper','icJJB','has','browserstackSetupConfig.json','measureWrapper','rPavu','requirePWModule','../../helpers/test-observability/constants','Proxy\x20url\x20:\x20','../v2/TestInfo','testContextOptions','20WHivBD','YFRrG','isTypescriptProject','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20process.env.GLOBAL_AGENT_NO_PROXY=\x22','getNoProxy','6483240nFUnCy','HRius','TccYT','BROWSERSTACK_RERUN_TESTS','INTERNALLY_USED_ENV_VARS','stringify','xoMfG','isYarnPnP','amuJp','1682862XakzgQ','jLWTq','--config'];a51_0x1189=function(){return _0x5fa4b0;};return a51_0x1189();}const fs=require('fs'),path=require(a51_0x4fd5e5(0x17c)),{pathToFileURL}=require('url'),{spawn}=require('child_process'),{format}=require(a51_0x4fd5e5(0x1f6)),logger=require(a51_0x4fd5e5(0x153))[a51_0x4fd5e5(0x143)],{default:BrowserStackSetup}=require(a51_0x4fd5e5(0x111)),helper=require('../../helpers/helper'),utilities=require(a51_0x4fd5e5(0x11e)),constants=require(a51_0x4fd5e5(0x1b1)),{FRAMEWORKS}=require(a51_0x4fd5e5(0x186)),{getConfigLoaderPath}=require('./reporter/pwUtils'),{mergeBrowserstackReporterIntoCliReporterFlag}=require(a51_0x4fd5e5(0x149)),{shouldProcessEventForTesthub}=require(a51_0x4fd5e5(0x1c5)),{checkAccessibilityPlatformConfig}=require(a51_0x4fd5e5(0x207)),{setAccessibilityCapabilities}=require(a51_0x4fd5e5(0x17f)),{printBuildLink}=require(a51_0x4fd5e5(0x1d1)),TestDetails=require(a51_0x4fd5e5(0x168)),TestHubHandler=require(a51_0x4fd5e5(0x1a4)),PerformanceTester=require(a51_0x4fd5e5(0x201)),TestOrchestrationHandler=require(a51_0x4fd5e5(0x1b0)),BrowserstackCLI=require(a51_0x4fd5e5(0x1ea)),PerformanceEvents=require(a51_0x4fd5e5(0x1c4))['EVENTS'],CLIUtils=require(a51_0x4fd5e5(0x1ac)),TestInfo=require(a51_0x4fd5e5(0x188)),ClientTroubleShootingService=require(a51_0x4fd5e5(0x126)),getUserPlaywrightConfig=async(_0x468eaa,_0x1d1256)=>{const _0x404f67=a51_0x4fd5e5,_0x2acfde={'EXZxf':function(_0x162fa2){return _0x162fa2();},'hwklw':function(_0x1d0531,_0x1c1ce9){return _0x1d0531(_0x1c1ce9);},'HRius':_0x404f67(0x164),'DJJIr':'--config='},_0x2bd821=!helper[_0x404f67(0x148)](_0x468eaa[_0x404f67(0x1ad)]),_0x180f1f=_0x2bd821?path[_0x404f67(0x1d6)](process[_0x404f67(0x166)](),_0x468eaa[_0x404f67(0x1ad)]):process[_0x404f67(0x166)](),{resolveConfigFile:_0x31addd,resolveConfigLocation:_0x4006b6}=helper[_0x404f67(0x185)]['apply'](null,_0x2acfde['EXZxf'](getConfigLoaderPath)),_0x138ca8=_0x31addd?_0x2acfde[_0x404f67(0x151)](_0x31addd,_0x180f1f):helper['nestedKeyValue'](_0x2acfde[_0x404f67(0x151)](_0x4006b6,_0x180f1f),[_0x2acfde[_0x404f67(0x190)]]),_0x474d91={};if(_0x2bd821){const _0x197b70=_0x1d1256['findIndex'](_0x578f8c=>_0x578f8c==='--config'||_0x578f8c==='-c'||_0x578f8c[_0x404f67(0x19c)]('--config='));_0x1d1256[_0x404f67(0x1b2)](_0x197b70,_0x1d1256[_0x197b70][_0x404f67(0x19c)](_0x2acfde[_0x404f67(0x125)])?0x1:0x2);}const _0x97c5ad={};return _0x97c5ad[_0x404f67(0x17c)]=_0x138ca8,_0x97c5ad[_0x404f67(0x1ad)]=_0x474d91,_0x97c5ad;},handleO11yRerun=_0x304c75=>{const _0x40ef2f=a51_0x4fd5e5,_0x512d82={};_0x512d82[_0x40ef2f(0x1a7)]=_0x40ef2f(0x154);const _0xfdc94b=_0x512d82,_0x2c0c33=helper['isTrue'](process[_0x40ef2f(0x131)]['BROWSERSTACK_RERUN']);if(_0x2c0c33){const _0x4ff520=process['env'][_0x40ef2f(0x192)],_0x2f7a57=[];if(helper[_0x40ef2f(0x1fd)](_0x4ff520)&&!helper['isUndefined'](_0x4ff520)){_0x4ff520[_0x40ef2f(0x1ee)](',')[_0x40ef2f(0x1c9)](_0x19fee9=>{const _0x3bfe49=_0x40ef2f;_0x2f7a57[_0x3bfe49(0x138)]('('+_0x19fee9[_0x3bfe49(0x1bb)]()+')');});const _0x39ad79='^'+_0x2f7a57[_0x40ef2f(0x19e)]('|')+'$';_0x304c75[_0x40ef2f(0x138)](_0xfdc94b['IefRI'],_0x39ad79);}}},spawnOriginalProcess=_0x3355b5=>{const _0x237c6a=a51_0x4fd5e5,_0x1fcd8e={'ghLWG':function(_0x197aba,_0x19780a,_0x175a27,_0x289e6f){return _0x197aba(_0x19780a,_0x175a27,_0x289e6f);},'Meqre':_0x237c6a(0x1a2),'SuSWZ':_0x237c6a(0x1d2),'mECsU':'playwright','nXwxS':function(_0x33931e,_0x14f466){return _0x33931e===_0x14f466;},'BnVXb':_0x237c6a(0x19b),'QsKAq':'inherit'};_0x1fcd8e[_0x237c6a(0x1f2)](spawn,helper[_0x237c6a(0x196)]()?_0x1fcd8e[_0x237c6a(0x14b)]:_0x1fcd8e[_0x237c6a(0x1c6)],[_0x1fcd8e[_0x237c6a(0x150)],..._0x3355b5[_0x237c6a(0x16c)](0x1)],{'shell':_0x1fcd8e[_0x237c6a(0x13c)](process['platform'],_0x1fcd8e[_0x237c6a(0x1b4)]),'stdio':_0x1fcd8e['QsKAq'],'cwd':process[_0x237c6a(0x166)]()});},isTestCommand=(_0x41136c,_0x15738f)=>{const _0x2ae188=a51_0x4fd5e5,_0x1690e6={};_0x1690e6['IXzRB']=function(_0x4a5cb4,_0x7a5bbd){return _0x4a5cb4>_0x7a5bbd;},_0x1690e6[_0x2ae188(0x1aa)]=function(_0x4879a8,_0x37cd66){return _0x4879a8===_0x37cd66;},_0x1690e6[_0x2ae188(0x141)]=_0x2ae188(0x1dc);const _0x3fc9f6=_0x1690e6;if(_0x3fc9f6['IXzRB'](_0x15738f[_0x2ae188(0x1c0)],0x1)&&_0x3fc9f6['yyBCn'](_0x15738f[0x1],_0x3fc9f6[_0x2ae188(0x141)]))return!![];return![];};async function run(_0x362133,_0x2d2e22,_0x45af3b){const _0x3a694f=a51_0x4fd5e5,_0xc82a4b={'yUuRg':function(_0x3a3376,_0x428950){return _0x3a3376(_0x428950);},'WcvCB':_0x3a694f(0x17e),'CPfqW':'pw_result','ZTXRb':function(_0x5975c1,_0x181322){return _0x5975c1>_0x181322;},'ElXaO':_0x3a694f(0x136),'bcECh':'pw_result.json','NiRue':function(_0x12914c,_0x4e3935){return _0x12914c+_0x4e3935;},'TaxDi':_0x3a694f(0x1d0),'fPCIl':function(_0x5ad088){return _0x5ad088();},'jLWTq':_0x3a694f(0x123),'UFecz':_0x3a694f(0x1a1),'CBFQQ':function(_0x52b416,_0x3e5a54){return _0x52b416<_0x3e5a54;},'xoMfG':function(_0x3215fc,_0xff2b4b){return _0x3215fc===_0xff2b4b;},'caKPf':_0x3a694f(0x124),'sqgWF':_0x3a694f(0x19d),'vgDai':function(_0x4058b4,_0x222dfb){return _0x4058b4>=_0x222dfb;},'amuJp':_0x3a694f(0x133),'YFRrG':function(_0x551e96,_0x349d8e){return _0x551e96!=_0x349d8e;},'gYWDx':function(_0x2ad573,_0x14fd36,_0x1bd604){return _0x2ad573(_0x14fd36,_0x1bd604);},'yuIug':function(_0xde0add,_0xc6b55c){return _0xde0add===_0xc6b55c;},'hhbGH':_0x3a694f(0x1ec),'vmGPS':function(_0x4cd526,_0x671a5a){return _0x4cd526(_0x671a5a);},'dJVzy':_0x3a694f(0x182),'uDbJc':function(_0x288a5d,_0x17c605){return _0x288a5d===_0x17c605;},'DKDOW':_0x3a694f(0x205),'TccYT':_0x3a694f(0x161),'UzfbC':_0x3a694f(0x1b6),'PxMJT':_0x3a694f(0x132),'nTdXY':function(_0x4dd97d,_0x5ecdb1){return _0x4dd97d(_0x5ecdb1);},'HPUfN':function(_0x32bba1,_0x310a6c){return _0x32bba1-_0x310a6c;},'wRqAU':function(_0x458aa2,_0x2ef9e2){return _0x458aa2+_0x2ef9e2;},'PJcCs':_0x3a694f(0x17b),'FVGAE':function(_0x3f3a36,_0x2bab0e){return _0x3f3a36>_0x2bab0e;},'ColKJ':'global-agent','lhPdc':_0x3a694f(0x11d),'XRCdZ':function(_0x410322,_0x41c111){return _0x410322+_0x41c111;},'eCxWL':function(_0x1a4ff0,_0x136004,_0x27a82b){return _0x1a4ff0(_0x136004,_0x27a82b);},'JKocA':_0x3a694f(0x147),'rPavu':function(_0x2b9e52,_0x17e06d){return _0x2b9e52>_0x17e06d;},'aBjEv':function(_0x305bbf,_0x4b7620){return _0x305bbf<_0x4b7620;},'oWsHi':'playwright','lxZFy':function(_0x1c19e7,_0x53eb33,_0x111cce,_0x3cda60){return _0x1c19e7(_0x53eb33,_0x111cce,_0x3cda60);},'AFBrD':_0x3a694f(0x1a2),'eOMhE':_0x3a694f(0x1d2),'mbLfy':_0x3a694f(0x1dc),'jLUTv':_0x3a694f(0x19a),'yeJso':function(_0x268981,_0x4d5599){return _0x268981===_0x4d5599;},'ePpxG':_0x3a694f(0x19b),'ABlZm':function(_0x4cadc0,_0x1b8c41){return _0x4cadc0===_0x1b8c41;},'Divcw':_0x3a694f(0x14f),'PkGqW':'close','VxUFq':function(_0x49921f,_0x1add2e){return _0x49921f|_0x1add2e;},'mBgCG':function(_0x4a6074,_0x437e73){return _0x4a6074+_0x437e73;},'PSYpv':'Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','vKNtw':_0x3a694f(0x1db)};try{const _0x10ee3a=path[_0x3a694f(0x19e)](helper[_0x3a694f(0x12a)](),_0xc82a4b[_0x3a694f(0x1d9)]);try{fs[_0x3a694f(0x1e7)](_0x10ee3a,_0xc82a4b['VxUFq'](fs['constants']['R_OK'],fs[_0x3a694f(0x11b)][_0x3a694f(0x1c2)]));}catch(_0x52189f){ClientTroubleShootingService[_0x3a694f(0x11a)]();}}catch(_0x410122){logger[_0x3a694f(0x14e)](_0xc82a4b['mBgCG'](_0xc82a4b['PSYpv'],_0x410122));}try{const _0x4dc76e=path['join'](helper[_0x3a694f(0x12a)](),_0xc82a4b[_0x3a694f(0x1d9)],_0xc82a4b[_0x3a694f(0x169)]);fs[_0x3a694f(0x134)](_0x4dc76e)&&fs[_0x3a694f(0x1a5)](_0x4dc76e);}catch(_0x3bab3f){logger[_0x3a694f(0x14e)](_0xc82a4b[_0x3a694f(0x122)](_0xc82a4b[_0x3a694f(0x130)],_0x3bab3f));}if(!_0xc82a4b[_0x3a694f(0x1de)](isTestCommand,_0x362133,_0x2d2e22)){_0xc82a4b[_0x3a694f(0x203)](spawnOriginalProcess,_0x2d2e22);return;}await PerformanceTester['measureWrapper'](PerformanceEvents[_0x3a694f(0x1c7)],async()=>{const _0x305bf1=_0x3a694f,_0x1e3b28={'icJJB':function(_0x13f7a2,_0x4210ee){return _0xc82a4b['yUuRg'](_0x13f7a2,_0x4210ee);},'udOPf':function(_0x47e51a,_0x41c816){return _0xc82a4b['yUuRg'](_0x47e51a,_0x41c816);},'SAZit':_0xc82a4b['WcvCB'],'wawvj':_0xc82a4b[_0x305bf1(0x165)],'aWYGf':function(_0x477acb,_0x4344af){return _0xc82a4b['ZTXRb'](_0x477acb,_0x4344af);},'kgaUK':_0xc82a4b[_0x305bf1(0x1d9)],'xYsrU':_0xc82a4b[_0x305bf1(0x169)],'EoYLm':function(_0x3c9efa,_0x4a05a5){return _0xc82a4b['NiRue'](_0x3c9efa,_0x4a05a5);},'DxGzV':_0xc82a4b[_0x305bf1(0x12f)],'NdjyC':function(_0x5816a){return _0xc82a4b['fPCIl'](_0x5816a);},'yXdbV':_0xc82a4b[_0x305bf1(0x199)]};if(!_0x45af3b[_0x305bf1(0x1ad)]){logger[_0x305bf1(0x1e8)](_0xc82a4b[_0x305bf1(0x1dd)]);return;}await _0x45af3b[_0x305bf1(0x1b5)](_0x362133),CLIUtils[_0x305bf1(0x15f)](FRAMEWORKS[_0x305bf1(0x114)],FRAMEWORKS[_0x305bf1(0x114)]),BrowserstackCLI[_0x305bf1(0x14a)]()[_0x305bf1(0x176)](_0x45af3b[_0x305bf1(0x1ad)],_0x45af3b['configPath'],_0x45af3b[_0x305bf1(0x1fc)]),await BrowserstackCLI['getInstance']()[_0x305bf1(0x146)]();!BrowserstackCLI[_0x305bf1(0x14a)]()[_0x305bf1(0x173)]()&&await _0x45af3b[_0x305bf1(0x142)]();for(var _0x27af57=0x0;_0xc82a4b['CBFQQ'](_0x27af57,constants[_0x305bf1(0x193)]['length']);_0x27af57++){var _0x3775be=constants['INTERNALLY_USED_ENV_VARS'][_0x27af57];process[_0x305bf1(0x131)][_0x3775be]&&await ClientTroubleShootingService[_0x305bf1(0x1d8)](_0x3775be);}const _0x44cf68=BrowserstackCLI[_0x305bf1(0x14a)]()[_0x305bf1(0x1b8)]();!helper[_0x305bf1(0x1f0)](_0x44cf68[_0x305bf1(0x156)])&&(process[_0x305bf1(0x131)]['BROWSERSTACK_AUTOMATION']=!![]);_0xc82a4b['xoMfG'](_0x44cf68[_0x305bf1(0x156)],![])&&(process['env'][_0x305bf1(0x159)]=_0xc82a4b['caKPf'],_0x2d2e22=_0x2d2e22[_0x305bf1(0x1b3)](_0x3ff21a=>_0x3ff21a!==_0x305bf1(0x137)));const _0x2a05fd=_0x2d2e22[_0x305bf1(0x171)](_0xc82a4b[_0x305bf1(0x202)]);(_0xc82a4b[_0x305bf1(0x1b7)](_0x2a05fd,0x0)||_0xc82a4b[_0x305bf1(0x195)](_0x44cf68[_0x305bf1(0x144)],![]))&&(process[_0x305bf1(0x131)][_0x305bf1(0x1bf)]=_0xc82a4b[_0x305bf1(0x117)],_0x2d2e22=_0x2d2e22[_0x305bf1(0x1b3)](_0x40644b=>_0x40644b!==_0x305bf1(0x19d)));!helper[_0x305bf1(0x148)](_0x45af3b[_0x305bf1(0x1fc)])&&_0x45af3b[_0x305bf1(0x1fc)][_0x305bf1(0x181)](_0xc82a4b[_0x305bf1(0x197)])&&(process[_0x305bf1(0x131)][_0x305bf1(0x159)]=_0x45af3b[_0x305bf1(0x1fc)][_0x305bf1(0x1e9)](_0xc82a4b[_0x305bf1(0x197)])||!![]);_0xc82a4b[_0x305bf1(0x18b)](_0x45af3b[_0x305bf1(0x1ad)][_0x305bf1(0x144)],null)&&!helper[_0x305bf1(0x118)](process[_0x305bf1(0x131)][_0x305bf1(0x1bf)])&&(process['env'][_0x305bf1(0x1bf)]=process[_0x305bf1(0x131)]['BROWSERSTACK_TEST_OBSERVABILITY']||_0x45af3b[_0x305bf1(0x1ad)][_0x305bf1(0x144)]);const _0x50effa=!helper[_0x305bf1(0x1f0)](process[_0x305bf1(0x131)]['BROWSERSTACK_TEST_OBSERVABILITY']);if(BrowserstackCLI[_0x305bf1(0x14a)]()['isRunning']()&&_0x50effa){const _0x5e3785=BrowserstackCLI[_0x305bf1(0x112)];helper[_0x305bf1(0x15b)](_0x5e3785)?(process[_0x305bf1(0x131)][_0x305bf1(0x179)]=_0x5e3785,logger[_0x305bf1(0x14e)](_0x305bf1(0x129)+_0x5e3785)):logger['warn'](_0x305bf1(0x17d)+_0x5e3785);}_0x45af3b[_0x305bf1(0x1ad)]['accessibilityOptions']&&(process[_0x305bf1(0x131)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON['stringify'](_0x45af3b[_0x305bf1(0x1ad)][_0x305bf1(0x127)]));let _0x1862aa=![];_0x45af3b['config']['accessibility']&&(_0x1862aa=!![],process[_0x305bf1(0x131)][_0x305bf1(0x120)]=_0x45af3b[_0x305bf1(0x1ad)][_0x305bf1(0x1a6)]);const _0x3853dc=_0x2d2e22['concat'](),_0x5e2aa4=await _0xc82a4b[_0x305bf1(0x1e2)](getUserPlaywrightConfig,_0x362133,_0x2d2e22);if(helper[_0x305bf1(0x148)](_0x5e2aa4)){_0xc82a4b['yUuRg'](spawnOriginalProcess,_0x3853dc);return;}const _0x5f4ab5=_0x5e2aa4[_0x305bf1(0x17c)]?path[_0x305bf1(0x1e1)](_0x5e2aa4['path']):process[_0x305bf1(0x166)]();process[_0x305bf1(0x131)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x5f4ab5,await PerformanceTester[_0x305bf1(0x183)](PerformanceEvents['SDK_POST_INITIALIZE'],async()=>{const _0x27d437=_0x305bf1;!BrowserstackCLI[_0x27d437(0x14a)]()[_0x27d437(0x173)]()&&await TestHubHandler[_0x27d437(0x11f)](FRAMEWORKS[_0x27d437(0x114)],_0x45af3b),_0x50effa&&_0x1e3b28[_0x27d437(0x180)](handleO11yRerun,_0x2d2e22);})();if(!BrowserstackCLI[_0x305bf1(0x14a)]()[_0x305bf1(0x173)]()){let _0x11d0e7=_0xc82a4b[_0x305bf1(0x135)](process[_0x305bf1(0x131)][_0x305bf1(0x120)],_0xc82a4b[_0x305bf1(0x128)]);_0x11d0e7=_0x11d0e7||_0xc82a4b['yUuRg'](checkAccessibilityPlatformConfig,_0x45af3b[_0x305bf1(0x1ad)]),process[_0x305bf1(0x131)][_0x305bf1(0x120)]=_0x11d0e7,_0x11d0e7&&_0xc82a4b[_0x305bf1(0x203)](setAccessibilityCapabilities,_0x45af3b[_0x305bf1(0x1ad)]);}const _0x2b785b=path[_0x305bf1(0x19e)](_0x5e2aa4['path']?path[_0x305bf1(0x1e1)](_0x5e2aa4['path']):process[_0x305bf1(0x166)](),_0xc82a4b[_0x305bf1(0x1c8)]);fs[_0x305bf1(0x1ed)](_0x2b785b,helper[_0x305bf1(0x15d)](_0x45af3b[_0x305bf1(0x1ad)])),process['env'][_0x305bf1(0x16a)]=_0x2b785b,helper[_0x305bf1(0x15a)]();let _0x45c5b0='';_0xc82a4b[_0x305bf1(0x1cd)](helper['getPackageType'](_0x5f4ab5),constants[_0x305bf1(0x1e4)]['MODULE'])?_0x45c5b0=_0xc82a4b[_0x305bf1(0x204)]:_0x45c5b0=_0xc82a4b[_0x305bf1(0x191)];let _0x1f5580='';const _0x5e914c=path[_0x305bf1(0x1d6)](__dirname,_0xc82a4b[_0x305bf1(0x1a9)]),_0x18c389=fs[_0x305bf1(0x134)](_0x5e914c),_0x30e92a=_0xc82a4b[_0x305bf1(0x135)](helper[_0x305bf1(0x1e0)](_0x5f4ab5),constants[_0x305bf1(0x1e4)][_0x305bf1(0x158)]),_0x202c4f=_0x18c389?JSON['stringify'](_0x5e914c):_0xc82a4b[_0x305bf1(0x1e3)],_0x1316f5=_0x18c389?_0x30e92a?JSON[_0x305bf1(0x194)](_0xc82a4b[_0x305bf1(0x12e)](pathToFileURL,_0x5e914c)[_0x305bf1(0x157)]):JSON[_0x305bf1(0x194)](_0x5e914c):_0xc82a4b[_0x305bf1(0x1e3)];logger[_0x305bf1(0x14e)](_0x305bf1(0x177)+_0x202c4f+'\x20/\x20(esm)\x20'+_0x1316f5);if(helper[_0x305bf1(0x18c)](_0x5e2aa4[_0x305bf1(0x17c)])){_0x1f5580=_0x305bf1(0x1da)+_0x1316f5+';\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a';const _0x46f358=_0x45c5b0['split']('.');_0x46f358[_0xc82a4b[_0x305bf1(0x1a0)](_0x46f358[_0x305bf1(0x1c0)],0x1)]='ts',_0x45c5b0=_0x46f358[_0x305bf1(0x19e)]('.'),logger[_0x305bf1(0x14e)](_0xc82a4b['wRqAU'](_0xc82a4b[_0x305bf1(0x1f9)],_0x45c5b0));}else _0x1f5580='\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require('+_0x202c4f+_0x305bf1(0x175);const _0xa8fe8f=path['join'](_0x5e2aa4['path']?path[_0x305bf1(0x1e1)](_0x5e2aa4[_0x305bf1(0x17c)]):process['cwd'](),_0x45c5b0);let _0x4821b2=_0x5e2aa4[_0x305bf1(0x17c)]?_0x5e2aa4[_0x305bf1(0x17c)]:'';_0x4821b2=_0xc82a4b[_0x305bf1(0x140)](_0x4821b2[_0x305bf1(0x1c0)],0x0)?path[_0x305bf1(0x1d6)](_0x4821b2):'',process['env']['USER_CONFIG_DETAILS_PATH']=_0x4821b2;const _0xbb4fb=helper[_0x305bf1(0x1f8)](_0x45af3b[_0x305bf1(0x1ad)]),_0x38135a=helper[_0x305bf1(0x18e)](_0x45af3b[_0x305bf1(0x1ad)]);logger['debug'](_0x305bf1(0x187)+_0xbb4fb),logger['debug']('No\x20Proxy\x20:\x20'+_0x38135a);if(_0xbb4fb){let _0x438e53='';try{_0x438e53=require['resolve'](_0xc82a4b['ColKJ']);}catch(_0xca95d3){logger[_0x305bf1(0x14e)](_0x305bf1(0x206)+_0xca95d3);}const _0x3453eb=_0xc82a4b[_0x305bf1(0x1cc)],_0x278670=_0x438e53?_0x305bf1(0x16b)+_0x3453eb+_0x305bf1(0x139)+JSON[_0x305bf1(0x194)](_0x438e53)+_0x305bf1(0x11c):_0x3453eb;_0x1f5580=_0xc82a4b[_0x305bf1(0x1ab)](_0x305bf1(0x14d)+_0xbb4fb+_0x305bf1(0x18d)+_0x38135a+_0x305bf1(0x170)+_0x278670+_0x305bf1(0x1fb),_0x1f5580);}helper[_0x305bf1(0x152)]({},_0x2d2e22),_0xc82a4b[_0x305bf1(0x1de)](mergeBrowserstackReporterIntoCliReporterFlag,_0x2d2e22,{'enabled':_0xc82a4b[_0x305bf1(0x145)](shouldProcessEventForTesthub)}),fs[_0x305bf1(0x1ed)](_0xa8fe8f,_0x1f5580);let _0xa222d=[];const _0x506dda=new TestOrchestrationHandler(_0x45af3b[_0x305bf1(0x1ad)]);if(_0x506dda[_0x305bf1(0x163)]()){logger[_0x305bf1(0x14e)](_0xc82a4b['JKocA']);const _0x693e97=await _0x506dda[_0x305bf1(0x1f3)](_0x4821b2,_0x2d2e22[_0x305bf1(0x16c)](0x2));logger[_0x305bf1(0x14e)](_0x305bf1(0x1a8)+JSON['stringify'](_0x693e97)+_0x305bf1(0x13b));const _0xa84bc2=await _0x506dda[_0x305bf1(0x13a)](_0x693e97);logger[_0x305bf1(0x14e)](_0x305bf1(0x1af)+JSON[_0x305bf1(0x194)](_0xa84bc2)),_0xa84bc2&&_0xc82a4b[_0x305bf1(0x184)](_0xa84bc2['length'],0x0)&&(process['env'][_0x305bf1(0x1cb)]=_0xa84bc2['join'](','),_0xc82a4b[_0x305bf1(0x1fa)](_0xa84bc2[_0x305bf1(0x1c0)],_0x693e97[_0x305bf1(0x1c0)])&&(_0xa222d=_0xa84bc2[_0x305bf1(0x1c9)](_0xffc275=>path[_0x305bf1(0x1bc)](process['cwd'](),_0xffc275)[_0x305bf1(0x1ee)](path[_0x305bf1(0x16f)])[_0x305bf1(0x19e)]('/'))));}PerformanceTester[_0x305bf1(0x174)](PerformanceEvents['SDK_SETUP']),process[_0x305bf1(0x131)][_0x305bf1(0x1eb)]=process['env'][_0x305bf1(0x1eb)]||_0xc82a4b[_0x305bf1(0x17a)];const _0x3ef3c7=_0xc82a4b[_0x305bf1(0x1be)](spawn,helper['isYarnPnP']()?_0xc82a4b[_0x305bf1(0x12b)]:_0xc82a4b[_0x305bf1(0x16e)],[_0xc82a4b['oWsHi'],_0xc82a4b[_0x305bf1(0x1e5)],_0xc82a4b['jLUTv'],_0xc82a4b[_0x305bf1(0x121)](process[_0x305bf1(0x155)],_0xc82a4b[_0x305bf1(0x1ff)])?'\x22'+_0xa8fe8f+'\x22':_0xa8fe8f,..._0x2d2e22[_0x305bf1(0x16c)](0x2),..._0xa222d],{'shell':_0xc82a4b[_0x305bf1(0x1b9)](process[_0x305bf1(0x155)],_0xc82a4b['ePpxG']),'stdio':_0xc82a4b[_0x305bf1(0x1f5)],'cwd':process['cwd'](),'env':Object['assign']({},process[_0x305bf1(0x131)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x305bf1(0x1c3)](_0x362133),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x45af3b[_0x305bf1(0x1ad)]['testContextOptions']['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x45af3b[_0x305bf1(0x1ad)][_0x305bf1(0x189)][_0x305bf1(0x1ce)],'BROWSERSTACK_LOG_LEVEL':_0x45af3b[_0x305bf1(0x1ad)][_0x305bf1(0x1a3)]})}),_0xb15faf=async()=>{const _0x2938d7=_0x305bf1;try{if(BrowserstackCLI[_0x2938d7(0x14a)]()[_0x2938d7(0x173)]()){const _0x534d87=_0x1e3b28[_0x2938d7(0x167)](require,_0x1e3b28[_0x2938d7(0x160)]),_0x5ebab0=await _0x534d87['getBuildState'](_0x1e3b28[_0x2938d7(0x12c)])||[];if(_0x1e3b28[_0x2938d7(0x1cf)](_0x5ebab0[_0x2938d7(0x1c0)],0x0)){const _0x3ced7e={};_0x5ebab0[_0x2938d7(0x178)](_0x3e61e8=>{const _0x4efb47=_0x2938d7,_0x25af52=_0x3ced7e[_0x3e61e8[_0x4efb47(0x172)]]||Object[_0x4efb47(0x119)](null);(_0x3e61e8[_0x4efb47(0x13e)]||[])[_0x4efb47(0x178)](({title:_0x34187d,error:_0x4b8656})=>{_0x25af52[_0x34187d]=_0x4b8656;}),_0x3ced7e[_0x3e61e8['key']]=_0x25af52;}),_0x45af3b['errorMessage']=_0x3ced7e;return;}}const _0x9af028=path[_0x2938d7(0x19e)](helper[_0x2938d7(0x12a)](),_0x1e3b28[_0x2938d7(0x116)],_0x1e3b28[_0x2938d7(0x162)]);if(fs[_0x2938d7(0x134)](_0x9af028)){let _0xfad4d8=fs['readFileSync'](_0x9af028);_0xfad4d8=JSON[_0x2938d7(0x1ba)](_0xfad4d8),_0x45af3b[_0x2938d7(0x13d)]=_0xfad4d8,fs[_0x2938d7(0x1a5)](_0x9af028);}}catch(_0x544f45){logger['debug'](_0x1e3b28[_0x2938d7(0x1d7)](_0x1e3b28[_0x2938d7(0x1c1)],_0x544f45));}};_0x3ef3c7['on'](_0xc82a4b['PkGqW'],async _0x4e18f2=>{const _0x34d370=_0x305bf1;try{PerformanceTester[_0x34d370(0x1f4)](PerformanceEvents[_0x34d370(0x115)]),await _0x1e3b28[_0x34d370(0x1ae)](_0xb15faf),await TestHubHandler[_0x34d370(0x15e)](),await ClientTroubleShootingService['reportFinalDetectionState']();const _0x32b2f9=BrowserstackCLI[_0x34d370(0x113)]();await BrowserstackCLI[_0x34d370(0x14a)]()[_0x34d370(0x15e)](),TestDetails[_0x34d370(0x1f7)](),_0x1e3b28[_0x34d370(0x1ae)](printBuildLink),await utilities[_0x34d370(0x1ef)](_0x45af3b,_0x32b2f9),process[_0x34d370(0x1d4)]=_0x4e18f2,logger['debug'](_0x34d370(0x12d)+_0x4e18f2),logger['info'](_0x34d370(0x1ca)+_0xa8fe8f),fs['unlinkSync'](_0xa8fe8f);fs['existsSync'](_0x2b785b)&&(logger[_0x34d370(0x14e)](_0x34d370(0x1ca)+_0x2b785b),fs['unlinkSync'](_0x2b785b));const _0x1cb517=fs[_0x34d370(0x1d5)](path[_0x34d370(0x19e)](helper['homedir'](),_0x1e3b28[_0x34d370(0x116)]))['filter'](_0xb9c2d6=>_0xb9c2d6[_0x34d370(0x19c)](_0x34d370(0x1bd)));_0x1cb517['forEach'](_0x273dee=>{const _0x16de54=_0x34d370;fs[_0x16de54(0x1a5)](path['join'](helper[_0x16de54(0x12a)](),_0x1e3b28['kgaUK'],_0x273dee));});}catch(_0x137c94){logger[_0x34d370(0x14e)](_0x1e3b28['EoYLm'](_0x1e3b28[_0x34d370(0x1df)],_0x137c94));}});})();}module[a51_0x4fd5e5(0x200)]=run;
@@ -1 +1 @@
1
- const a52_0x2c78d3=a52_0x257c;function a52_0x3461(){const _0x32335c=['compareVersions','2716vxBQWw','apply','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','feptW','toString','env','child_process','Not\x20able\x20to\x20resolve\x20loadGlobalHook\x20for\x20current\x20Playwright\x20version','./mock-process.js','pOeMn','util','error','exports','OYrsW','IDdsd','1219533MJdrNu','includes','pVsBy','\x20is\x20not\x20found','2757822fTpARk','config','3664302BhvTZP','fork','../../helpers/test-observability/constants','1280546FIIJqS','Not\x20able\x20to\x20import\x20globalSetup','message','./patches','Running\x20existing\x20global\x20setup','8FRilZx','vciQQ','4795pQnfFv','./reporter/pwUtils','QcvMD','debug','resolveLoadGlobalHook','IzcPC','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','../../helpers/helper','ABuxT','wISMm','../../helpers/driverInitErrorReporter','function','4704228BgbNFB','SyBNw','../../helpers/test-observability/utils','../../helpers/logger','1.33.0','MCXHV','isHandlePWErrorSet','LFWZw','1215029fouEmc','playwright','resolve'];a52_0x3461=function(){return _0x32335c;};return a52_0x3461();}(function(_0x26d48d,_0x193077){const _0x2eb938=a52_0x257c,_0x1e40d1=_0x26d48d();while(!![]){try{const _0x5e2577=-parseInt(_0x2eb938(0x8a))/0x1+parseInt(_0x2eb938(0x6f))/0x2+parseInt(_0x2eb938(0x6a))/0x3+parseInt(_0x2eb938(0x8e))/0x4*(parseInt(_0x2eb938(0x76))/0x5)+-parseInt(_0x2eb938(0x6c))/0x6+-parseInt(_0x2eb938(0x66))/0x7+-parseInt(_0x2eb938(0x74))/0x8*(-parseInt(_0x2eb938(0x82))/0x9);if(_0x5e2577===_0x193077)break;else _0x1e40d1['push'](_0x1e40d1['shift']());}catch(_0x25480){_0x1e40d1['push'](_0x1e40d1['shift']());}}}(a52_0x3461,0xb30fb));const util=require(a52_0x2c78d3(0x98)),child_process=require(a52_0x2c78d3(0x94)),{FRAMEWORKS}=require(a52_0x2c78d3(0x6e)),{getFrameworkVersion,debug}=require(a52_0x2c78d3(0x84)),helper=require(a52_0x2c78d3(0x7d)),{getForkProcessPath}=require(a52_0x2c78d3(0x77)),{mockIsWorkerRedundant}=require(a52_0x2c78d3(0x72)),logger=require(a52_0x2c78d3(0x85))['winstonLogger'];try{require(a52_0x2c78d3(0x80))['installAll'](a52_0x2c78d3(0x8b));}catch(a52_0x357a02){logger[a52_0x2c78d3(0x79)]('driver-init\x20capture\x20install\x20failed:\x20'+(a52_0x357a02&&a52_0x357a02[a52_0x2c78d3(0x71)]));}function a52_0x257c(_0x580576,_0x4ed30d){const _0x3461a3=a52_0x3461();return a52_0x257c=function(_0x257ce2,_0x211418){_0x257ce2=_0x257ce2-0x66;let _0x49de2f=_0x3461a3[_0x257ce2];return _0x49de2f;},a52_0x257c(_0x580576,_0x4ed30d);}module[a52_0x2c78d3(0x9a)]=async function(_0x2dee3a){const _0x34b698=a52_0x2c78d3,_0x39c01e={'feptW':function(_0x390962,_0x3cf002){return _0x390962(_0x3cf002);},'OYrsW':function(_0x430698){return _0x430698();},'pOeMn':_0x34b698(0x96),'ABuxT':function(_0x5e9c5b){return _0x5e9c5b();},'IDdsd':function(_0xdb42f7,_0x35adb9){return _0xdb42f7(_0x35adb9);},'SyBNw':_0x34b698(0x73),'vciQQ':function(_0xb236ca,_0x55a31f){return _0xb236ca!==_0x55a31f;},'QcvMD':_0x34b698(0x81),'dDsZr':_0x34b698(0x95),'pVsBy':function(_0x1650b6,_0x647e75){return _0x1650b6>=_0x647e75;},'wISMm':_0x34b698(0x86),'uMCHQ':function(_0x54eb82,_0x40b579,_0x3ed151){return _0x54eb82(_0x40b579,_0x3ed151);},'MCXHV':function(_0x31657d,_0x144183){return _0x31657d!==_0x144183;},'IzcPC':_0x34b698(0x70),'LFWZw':function(_0xf5f015,_0x5366cd){return _0xf5f015(_0x5366cd);}},_0x3442ab=child_process[_0x34b698(0x6d)];if(helper[_0x34b698(0x88)]())try{_0x39c01e[_0x34b698(0x7e)](mockIsWorkerRedundant);}catch(_0x323ba3){logger['debug']('Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20'+util['format'](_0x323ba3));}child_process[_0x34b698(0x6d)]=function(){const _0x1dda9c=_0x34b698;return _0x39c01e[_0x1dda9c(0x91)](debug,'Call\x20to\x20child\x20fork\x20with\x20args\x20'+arguments[0x0]),arguments[0x0][_0x1dda9c(0x67)](_0x39c01e[_0x1dda9c(0x9b)](getForkProcessPath))?arguments[0x0]=require[_0x1dda9c(0x8c)](_0x39c01e[_0x1dda9c(0x97)]):logger[_0x1dda9c(0x99)]('Path\x20'+_0x39c01e[_0x1dda9c(0x7e)](getForkProcessPath)+_0x1dda9c(0x69)),_0x3442ab[_0x1dda9c(0x8f)](null,arguments);};if(process[_0x34b698(0x93)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']){_0x39c01e[_0x34b698(0x9c)](debug,_0x39c01e[_0x34b698(0x83)]);try{const _0x34c3f8=helper[_0x34b698(0x7a)]();if(_0x39c01e[_0x34b698(0x75)](typeof _0x34c3f8,_0x39c01e[_0x34b698(0x78)]))throw new Error(_0x39c01e['dDsZr']);const _0x6961b1=_0x39c01e[_0x34b698(0x9c)](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT']);let _0x489de7=_0x2dee3a;if(_0x39c01e[_0x34b698(0x68)](helper[_0x34b698(0x8d)](_0x6961b1,_0x39c01e[_0x34b698(0x7f)]),0x0)){const _0x42c95e={};_0x42c95e[_0x34b698(0x6b)]=_0x2dee3a,_0x489de7=_0x42c95e;}const _0x3b2c17=await _0x39c01e['uMCHQ'](_0x34c3f8,_0x489de7,process[_0x34b698(0x93)][_0x34b698(0x7c)]);if(_0x39c01e[_0x34b698(0x87)](typeof _0x3b2c17,_0x39c01e[_0x34b698(0x78)]))throw new Error(_0x39c01e[_0x34b698(0x7b)]);return _0x3b2c17[_0x34b698(0x8f)](null,arguments);}catch(_0xf7f72a){_0x39c01e[_0x34b698(0x89)](debug,_0x34b698(0x90)+_0xf7f72a[_0x34b698(0x92)]());}}};
1
+ const a52_0x271d86=a52_0x1381;function a52_0x1381(_0x1d89bf,_0x3dd9a5){const _0x344ac5=a52_0x344a();return a52_0x1381=function(_0x138131,_0x463250){_0x138131=_0x138131-0x137;let _0xa97840=_0x344ac5[_0x138131];return _0xa97840;},a52_0x1381(_0x1d89bf,_0x3dd9a5);}(function(_0x5e50b7,_0x418841){const _0x3d3409=a52_0x1381,_0x23c5c1=_0x5e50b7();while(!![]){try{const _0x5b42d9=-parseInt(_0x3d3409(0x15c))/0x1*(-parseInt(_0x3d3409(0x15d))/0x2)+parseInt(_0x3d3409(0x13a))/0x3+parseInt(_0x3d3409(0x16b))/0x4+-parseInt(_0x3d3409(0x161))/0x5+parseInt(_0x3d3409(0x14d))/0x6*(parseInt(_0x3d3409(0x16e))/0x7)+parseInt(_0x3d3409(0x141))/0x8*(parseInt(_0x3d3409(0x148))/0x9)+-parseInt(_0x3d3409(0x157))/0xa*(parseInt(_0x3d3409(0x16a))/0xb);if(_0x5b42d9===_0x418841)break;else _0x23c5c1['push'](_0x23c5c1['shift']());}catch(_0xd9158b){_0x23c5c1['push'](_0x23c5c1['shift']());}}}(a52_0x344a,0x39e82));const util=require(a52_0x271d86(0x15b)),child_process=require(a52_0x271d86(0x159)),{FRAMEWORKS}=require(a52_0x271d86(0x149)),{getFrameworkVersion,debug}=require(a52_0x271d86(0x14e)),helper=require(a52_0x271d86(0x13d)),{getForkProcessPath}=require(a52_0x271d86(0x16c)),{mockIsWorkerRedundant}=require(a52_0x271d86(0x152)),logger=require(a52_0x271d86(0x14f))[a52_0x271d86(0x165)];try{require(a52_0x271d86(0x167))[a52_0x271d86(0x140)]('playwright');}catch(a52_0xe82ca3){logger[a52_0x271d86(0x144)](a52_0x271d86(0x14a)+(a52_0xe82ca3&&a52_0xe82ca3[a52_0x271d86(0x13e)]));}module[a52_0x271d86(0x147)]=async function(_0x114f46){const _0x33c823=a52_0x271d86,_0x39552c={'wbhRd':function(_0x51f664,_0x5d8848){return _0x51f664(_0x5d8848);},'vHURW':function(_0x6948a6){return _0x6948a6();},'ppKid':_0x33c823(0x13b),'QZQGk':function(_0x59958d){return _0x59958d();},'VqJul':function(_0xba148,_0x3bb891){return _0xba148(_0x3bb891);},'phcms':_0x33c823(0x15e),'DUXZE':function(_0x448a74,_0x5850ec){return _0x448a74!==_0x5850ec;},'GTIXD':_0x33c823(0x169),'Jwaku':_0x33c823(0x13f),'svsUD':function(_0x2d13ce,_0x1388b3){return _0x2d13ce>=_0x1388b3;},'augCe':_0x33c823(0x172),'kACZy':function(_0x18016b,_0x24d0fc,_0x64616f){return _0x18016b(_0x24d0fc,_0x64616f);},'mLmYZ':'Not\x20able\x20to\x20import\x20globalSetup','DMGkY':function(_0x3150df,_0x1bcf20){return _0x3150df(_0x1bcf20);}},_0x524ac8=child_process[_0x33c823(0x170)];if(helper[_0x33c823(0x156)]())try{_0x39552c[_0x33c823(0x16d)](mockIsWorkerRedundant);}catch(_0x3d8ec9){logger[_0x33c823(0x144)](_0x33c823(0x163)+util[_0x33c823(0x15f)](_0x3d8ec9));}child_process['fork']=function(){const _0x1099e0=_0x33c823;return _0x39552c[_0x1099e0(0x154)](debug,_0x1099e0(0x143)+arguments[0x0]),arguments[0x0][_0x1099e0(0x16f)](_0x39552c[_0x1099e0(0x146)](getForkProcessPath))?arguments[0x0]=require['resolve'](_0x39552c['ppKid']):logger[_0x1099e0(0x139)](_0x1099e0(0x137)+_0x39552c[_0x1099e0(0x146)](getForkProcessPath)+_0x1099e0(0x14c)),_0x524ac8[_0x1099e0(0x13c)](null,arguments);};if(process[_0x33c823(0x155)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']){_0x39552c[_0x33c823(0x164)](debug,_0x39552c[_0x33c823(0x162)]);try{const _0x2b3d9e=helper[_0x33c823(0x171)]();if(_0x39552c[_0x33c823(0x158)](typeof _0x2b3d9e,_0x39552c[_0x33c823(0x138)]))throw new Error(_0x39552c[_0x33c823(0x160)]);const _0x568889=_0x39552c[_0x33c823(0x164)](getFrameworkVersion,FRAMEWORKS[_0x33c823(0x153)]);let _0x3b0c70=_0x114f46;if(_0x39552c['svsUD'](helper[_0x33c823(0x166)](_0x568889,_0x39552c['augCe']),0x0)){const _0x5a2070={};_0x5a2070[_0x33c823(0x151)]=_0x114f46,_0x3b0c70=_0x5a2070;}const _0x1fa19d=await _0x39552c[_0x33c823(0x150)](_0x2b3d9e,_0x3b0c70,process['env'][_0x33c823(0x14b)]);if(_0x39552c[_0x33c823(0x158)](typeof _0x1fa19d,_0x39552c[_0x33c823(0x138)]))throw new Error(_0x39552c[_0x33c823(0x15a)]);return _0x1fa19d[_0x33c823(0x13c)](null,arguments);}catch(_0x4d5d7d){_0x39552c[_0x33c823(0x145)](debug,_0x33c823(0x142)+_0x4d5d7d[_0x33c823(0x168)]());}}};function a52_0x344a(){const _0x1894d3=['1056UJCEMZ','../../helpers/test-observability/utils','../../helpers/logger','kACZy','config','./patches','PLAYWRIGHT','wbhRd','env','isHandlePWErrorSet','4980FStITC','DUXZE','child_process','mLmYZ','util','1MDtynx','535334hbXUdk','Running\x20existing\x20global\x20setup','format','Jwaku','896210FqieGH','phcms','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','VqJul','winstonLogger','compareVersions','../../helpers/driverInitErrorReporter','toString','function','14223qGSPCV','1659052mVaBCY','./reporter/pwUtils','QZQGk','8974Lxtmsz','includes','fork','resolveLoadGlobalHook','1.33.0','Path\x20','GTIXD','error','408690SxybwE','./mock-process.js','apply','../../helpers/helper','message','Not\x20able\x20to\x20resolve\x20loadGlobalHook\x20for\x20current\x20Playwright\x20version','installAll','120jFjTJS','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','Call\x20to\x20child\x20fork\x20with\x20args\x20','debug','DMGkY','vHURW','exports','9630KTwRhX','../../helpers/test-observability/constants','driver-init\x20capture\x20install\x20failed:\x20','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','\x20is\x20not\x20found'];a52_0x344a=function(){return _0x1894d3;};return a52_0x344a();}