browserstack-node-sdk 1.70.2 → 1.71.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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_0x274e13=a50_0x1619;(function(_0x2ace99,_0x8b8c31){const _0x3becb0=a50_0x1619,_0x469cd4=_0x2ace99();while(!![]){try{const _0x5363fd=parseInt(_0x3becb0(0x264))/0x1+parseInt(_0x3becb0(0x1c1))/0x2*(-parseInt(_0x3becb0(0x1b0))/0x3)+-parseInt(_0x3becb0(0x1de))/0x4+-parseInt(_0x3becb0(0x23b))/0x5+-parseInt(_0x3becb0(0x24f))/0x6+-parseInt(_0x3becb0(0x251))/0x7*(-parseInt(_0x3becb0(0x1ad))/0x8)+parseInt(_0x3becb0(0x1f2))/0x9;if(_0x5363fd===_0x8b8c31)break;else _0x469cd4['push'](_0x469cd4['shift']());}catch(_0x332abb){_0x469cd4['push'](_0x469cd4['shift']());}}}(a50_0x53b8,0xae294));const util=require('util'),logger=require('../../helpers/logger')[a50_0x274e13(0x1cc)],{automationLogger}=require(a50_0x274e13(0x232)),{isAccessibilityAutomationSession}=require(a50_0x274e13(0x21e)),{isUndefined,isBrowserstackInfra}=require(a50_0x274e13(0x246)),scripts=require(a50_0x274e13(0x23c)),PerformanceTester=require('../../helpers/performance/performance-tester'),{A11Y_EVENTS:PerformanceA11yEvents}=require('../../helpers/performance/constants'),accessibilityHelper=require(a50_0x274e13(0x21e)),{AUTOMATION_LOG_COMMANDS}=require(a50_0x274e13(0x272)),isStalePageError=_0x1301c0=>{const _0x2464e1=a50_0x274e13,_0x46a9bc={'McuiO':function(_0x562c61,_0x54901f){return _0x562c61(_0x54901f);}},_0x23bb4=_0x1301c0&&_0x1301c0[_0x2464e1(0x1b7)]||_0x46a9bc[_0x2464e1(0x1b5)](String,_0x1301c0);return/Target closed|detached [Ff]rame|Execution context was destroyed, most likely because of a navigation/[_0x2464e1(0x234)](_0x23bb4);},isPageStale=_0x590b65=>{const _0x23164a=a50_0x274e13;try{if(_0x590b65[_0x23164a(0x1aa)]&&_0x590b65[_0x23164a(0x1aa)]())return!![];const _0x52ce19=_0x590b65[_0x23164a(0x23a)]&&_0x590b65[_0x23164a(0x23a)]();if(_0x52ce19&&_0x52ce19[_0x23164a(0x223)]&&_0x52ce19[_0x23164a(0x223)]())return!![];}catch(_0x26a9e0){}return![];},isUserTabUrl=_0x7069fe=>{const _0x5a85b0=a50_0x274e13,_0xc4cc92={};_0xc4cc92[_0x5a85b0(0x212)]=_0x5a85b0(0x25c),_0xc4cc92[_0x5a85b0(0x207)]=function(_0x190ab9,_0x12f9bf){return _0x190ab9===_0x12f9bf;},_0xc4cc92[_0x5a85b0(0x1da)]='about:blank',_0xc4cc92[_0x5a85b0(0x236)]=_0x5a85b0(0x224);const _0x13ac88=_0xc4cc92;if(!_0x7069fe)return![];if(_0x7069fe[_0x5a85b0(0x22a)](_0x13ac88[_0x5a85b0(0x212)]))return![];if(_0x13ac88[_0x5a85b0(0x207)](_0x7069fe,_0x13ac88[_0x5a85b0(0x1da)])||_0x13ac88[_0x5a85b0(0x207)](_0x7069fe,_0x13ac88['UfiGK'])||_0x13ac88['kPqYI'](_0x7069fe,''))return![];return!![];},pickFreshPage=async _0x2460ac=>{const _0x3fb524=a50_0x274e13,_0x12ed88={'zqWWz':function(_0x5bf998,_0x27f273){return _0x5bf998(_0x27f273);}};try{const _0x4e86f0=await _0x2460ac['pages']();return _0x4e86f0[_0x3fb524(0x265)](_0x433654=>{const _0x38415c=_0x3fb524;try{if(_0x12ed88['zqWWz'](isPageStale,_0x433654))return![];return _0x12ed88[_0x38415c(0x20f)](isUserTabUrl,_0x433654[_0x38415c(0x25e)]&&_0x433654[_0x38415c(0x25e)]());}catch(_0x3f88ff){return![];}});}catch(_0x3cc9ed){return null;}},evalViaFreshCDPSession=async(_0x24f0f1,_0x1e7bf4)=>{const _0x5832db=a50_0x274e13,_0x5c690a={'ifiRs':function(_0x1e6558,_0x245c99){return _0x1e6558===_0x245c99;},'mPUcE':_0x5832db(0x19a),'MCTSv':function(_0x12bd6d,_0x16265d){return _0x12bd6d===_0x16265d;},'LFGer':function(_0xee56ab,_0x2d6d21){return _0xee56ab===_0x2d6d21;},'OwChV':_0x5832db(0x1ff),'kMPEw':_0x5832db(0x258),'vpnjK':_0x5832db(0x25c),'DNIkA':function(_0x4493cb){return _0x4493cb();},'YxbPy':'Runtime.evaluate','oRtRo':_0x5832db(0x22f),'ktwvb':function(_0x14db40,_0x4fa789){return _0x14db40!==_0x4fa789;},'rKsHQ':'function','fIelZ':function(_0x351b36,_0x11e9bb){return _0x351b36(_0x11e9bb);}};if(!_0x24f0f1['browser']||_0x5c690a[_0x5832db(0x25f)](typeof _0x24f0f1[_0x5832db(0x1b2)],_0x5c690a['rKsHQ']))return undefined;const _0x5addc4=_0x24f0f1[_0x5832db(0x1b2)]();if(!_0x5addc4[_0x5832db(0x1a3)])return undefined;const _0x221be4=_0x24f0f1[_0x5832db(0x25e)]&&_0x24f0f1[_0x5832db(0x25e)]()||'',_0x6c194f=()=>{const _0x346a8e=_0x5832db,_0x207df0={'SBgBY':function(_0x431b88,_0x31bd42){const _0x305e93=a50_0x1619;return _0x5c690a[_0x305e93(0x20b)](_0x431b88,_0x31bd42);},'qxFwg':_0x5c690a[_0x346a8e(0x1e2)],'COuCh':_0x5c690a[_0x346a8e(0x1dc)],'vEaKE':_0x5c690a[_0x346a8e(0x21c)],'KtaSU':_0x5c690a[_0x346a8e(0x237)]},_0x275b0a=_0x5addc4[_0x346a8e(0x1a3)]();let _0xda0639=_0x275b0a[_0x346a8e(0x265)](_0x3f91a5=>{const _0x5b8267=_0x346a8e;try{return _0x5c690a['ifiRs'](_0x3f91a5[_0x5b8267(0x229)](),_0x5c690a[_0x5b8267(0x1e2)])&&_0x5c690a[_0x5b8267(0x204)](_0x3f91a5[_0x5b8267(0x25e)](),_0x221be4);}catch(_0x916fb0){return![];}});if(_0xda0639){const _0x4d916b={};return _0x4d916b['t']=_0xda0639,_0x4d916b['targetsLen']=_0x275b0a[_0x346a8e(0x226)],_0x4d916b;}_0xda0639=_0x275b0a[_0x346a8e(0x265)](_0x18be78=>{const _0xee4baa=_0x346a8e;try{const _0x335100=_0x18be78[_0xee4baa(0x25e)]()||'';return _0x207df0['SBgBY'](_0x18be78[_0xee4baa(0x229)](),_0x207df0[_0xee4baa(0x1e1)])&&(_0x335100['startsWith'](_0x207df0[_0xee4baa(0x1bc)])||_0x335100['startsWith'](_0x207df0[_0xee4baa(0x255)]))&&!_0x335100[_0xee4baa(0x22a)](_0x207df0[_0xee4baa(0x228)]);}catch(_0x299c96){return![];}});const _0x4011ef={};return _0x4011ef['t']=_0xda0639,_0x4011ef[_0x346a8e(0x241)]=_0x275b0a['length'],_0x4011ef;},_0x2366f0=async _0x54e98b=>{const _0x48ff0a=_0x5832db,{t:_0x723d7,targetsLen:_0x6fcab9}=_0x5c690a['DNIkA'](_0x6c194f);if(!_0x723d7){logger['info'](_0x48ff0a(0x1b6)+_0x54e98b+_0x48ff0a(0x269)+_0x6fcab9+'\x20targets');const _0x475aaf={};return _0x475aaf['ok']=![],_0x475aaf[_0x48ff0a(0x238)]=![],_0x475aaf;}logger[_0x48ff0a(0x261)](_0x48ff0a(0x1c9)+_0x54e98b+_0x48ff0a(0x1e8)+(_0x723d7[_0x48ff0a(0x25e)]&&_0x723d7['url']()));let _0x390ad7;try{_0x390ad7=await _0x723d7['createCDPSession']();}catch(_0x1d872d){const _0x25bdb3=/navigated or closed|Target closed|Session closed/i[_0x48ff0a(0x234)](_0x1d872d[_0x48ff0a(0x1b7)]||'');logger[_0x48ff0a(0x261)](_0x48ff0a(0x1f3)+_0x54e98b+_0x48ff0a(0x215)+_0x1d872d[_0x48ff0a(0x1b7)]+_0x48ff0a(0x1ec)+_0x25bdb3);const _0x4f2f09={};return _0x4f2f09['ok']=![],_0x4f2f09[_0x48ff0a(0x238)]=_0x25bdb3,_0x4f2f09;}try{const _0x3a779c={};_0x3a779c[_0x48ff0a(0x23e)]=_0x1e7bf4,_0x3a779c['awaitPromise']=!![],_0x3a779c['returnByValue']=!![];const _0x26fb70=await _0x390ad7[_0x48ff0a(0x214)](_0x5c690a[_0x48ff0a(0x201)],_0x3a779c);if(_0x26fb70&&_0x26fb70[_0x48ff0a(0x1e5)]){const _0x44e31f=_0x26fb70['exceptionDetails']&&_0x26fb70['exceptionDetails'][_0x48ff0a(0x21b)]||_0x5c690a[_0x48ff0a(0x1ac)];logger['info'](_0x48ff0a(0x1ca)+_0x54e98b+_0x48ff0a(0x208)+_0x44e31f);const _0xdab47b={};return _0xdab47b['ok']=![],_0xdab47b[_0x48ff0a(0x238)]=![],_0xdab47b['exceptionDetails']=_0x44e31f,_0xdab47b;}logger[_0x48ff0a(0x261)]('[STALE-CDP-OK]\x20attempt='+_0x54e98b+_0x48ff0a(0x1f7));const _0x3e47e2={};return _0x3e47e2['ok']=!![],_0x3e47e2[_0x48ff0a(0x274)]=_0x26fb70&&_0x26fb70['result']&&_0x26fb70[_0x48ff0a(0x1fb)][_0x48ff0a(0x274)],_0x3e47e2;}catch(_0x444a24){const _0x1d9bf1=/navigated or closed|Target closed|Session closed/i[_0x48ff0a(0x234)](_0x444a24[_0x48ff0a(0x1b7)]||'');logger['info'](_0x48ff0a(0x1e6)+_0x54e98b+_0x48ff0a(0x231)+_0x444a24['message']+_0x48ff0a(0x1ec)+_0x1d9bf1);const _0x1c1c1c={};return _0x1c1c1c['ok']=![],_0x1c1c1c[_0x48ff0a(0x238)]=_0x1d9bf1,_0x1c1c1c;}finally{try{_0x390ad7&&_0x390ad7[_0x48ff0a(0x1f5)]&&await _0x390ad7['detach']();}catch(_0x2e3b92){}}};let _0x4d087e=await _0x5c690a[_0x5832db(0x250)](_0x2366f0,0x1);if(_0x4d087e['ok'])return _0x4d087e['value'];if(_0x4d087e[_0x5832db(0x238)]){await new Promise(_0x9b0b36=>setTimeout(_0x9b0b36,0x190)),_0x4d087e=await _0x5c690a['fIelZ'](_0x2366f0,0x2);if(_0x4d087e['ok'])return _0x4d087e[_0x5832db(0x274)];}if(_0x4d087e['exceptionDetails']){const _0x486735=new Error(_0x5832db(0x24b)+_0x4d087e[_0x5832db(0x1e5)]);_0x486735[_0x5832db(0x1af)]=_0x4d087e['exceptionDetails'];throw _0x486735;}return undefined;};function a50_0x53b8(){const _0x254059=['alQDn','parse','uuDjA','NGqRw','text','kMPEw','rGpfz','../../helpers/accessibility-automation/helper','deviceName','[STALE-PRE]\x20browserStackEvaluate:\x20page\x20ref\x20stale,\x20reselected\x20from\x20browser.pages()','CxXdx','performScan','isDetached','data:,','string','length','chromium','KtaSU','type','startsWith','on\x20non-BrowserStack\x20infrastructure\x20','EtAty','command','includeIssueType','unknown','JbMHj','\x20send\x20failed:\x20','../../helpers/logger','isBrowserSupportedForAccessibility','test','request','UfiGK','vpnjK','transient','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','mainFrame','5368630JEWHXJ','../../helpers/accessibility-automation/scripts','keys','expression','browserStackEvaluate','waitUntil','targetsLen','getAccessibilityResultsSummary\x20failed:\x20','\x20page:\x20','hasScripts','rEprx','../../helpers/helper','(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','[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20','VofWZ','OsLEf','evalViaFreshCDPSession:\x20Runtime.evaluate\x20exception\x20—\x20','UwugU','RJuZM','executeAsyncScript','6954366mDOdzz','fIelZ','32053NpwRmZ','accessibilityOptions.scannerVersion','scannerProcessingTimeout','domcontentloaded','vEaKE','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','BS_A11Y_JWT','https://','[STALE-RELOAD-RETRY]\x20retry\x20after\x20reload\x20—\x20page\x20url=','browserName','setAccessibilityCapabilities','devtools://','bestPractice','url','ktwvb','measureWrapper','info','workerInfo','stack','474728jyHjtj','find','getBrowserDisplayName','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','format','\x20no\x20AUT\x20target\x20found\x20among\x20','mHRJh','assign','includes','CoDBF','dZNEm','FwuGF','reload','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','../utils/constants','browserstack.accessibility','value','currentTest','accessibilityOptions.scannerProcessingTimeout','WebDriver','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','XAhXT','page','error','[STALE-CDP-ERR]\x20cdp-session\x20fallback\x20failed:\x20','forEach','kCiAv','playwright-chromium','platformValidation','stringify','xOzwj','targets','accessibilityPlatform','SmSfG','Pbukm','YkHZp','connectOptions','bstackSdkArgs','isClosed','getAccessibilityResults\x20failed:\x20','oRtRo','944VoQtNv','bUhPV','cdpExceptionDetails','34152CfKSvD','dWIhX','browser','__workerDetails','hPwKc','McuiO','[STALE-CDP-NO-TARGET]\x20attempt=','message','env','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','[STALE-RELOAD-ERR]\x20reload/retry\x20failed:\x20','COuCh','isVersionSupported','body','yxyWN','testInfo','220aDzxCd','needsReview','FIJdN','gpfhE','use','platformValidation:\x20Mobile\x20platform\x20already\x20validated.','browser_version','bKNPy','[STALE-CDP-TRY]\x20attempt=','[STALE-CDP-EX]\x20attempt=','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','winstonLogger','scannerVersion','getResultsSummary','warn','HxhhO','wsEndpoint','rPxqM','wzyrm','latest','includePartOfPageScope','accessibilityOptions','project','debug','hsmyj','gimOo','xvvHQ','OwChV','sJZrm','464380FJeFXk','getAccessibilityResultsSummary','jFoTI','qxFwg','mPUcE','browserstack.accessibilityOptions','accessibilityOptions.authToken','exceptionDetails','[STALE-CDP-SEND-ERR]\x20attempt=','lGXAx','\x20using\x20target\x20url=','][\x20SDK-AUTOMATION\x20]\x20','(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','accessibilityOptions.wcagVersion','\x20transient=','IQfem','silly','android','executeScript','evaluate','29694924RqKTXG','[STALE-CDP-SESSION-ERR]\x20attempt=','sxfWU','detach','Klxau','\x20evaluate\x20returned\x20via\x20fresh\x20CDP\x20session','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.','[STALE-RETRY]\x20browserStackEvaluate:\x20retry\x20after\x20stale-page\x20error\x20(','getMinVersionForBrowser','result','RNktP','\x20browser\x20version\x20','getResults','http://','Performing\x20scan\x20with\x20method:\x20','YxbPy','wcagVersion','accessibilityOptions.includeIssueType.needsReview','MCTSv','HRciM','replace','kPqYI','\x20evaluate\x20exception:\x20','ZMKDL','hWhZc','LFGer','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','DrnMu','zqWWz','response','toLowerCase','NNeQX','name','send','\x20createCDPSession\x20failed:\x20','getAccessibilityResults'];a50_0x53b8=function(){return _0x254059;};return a50_0x53b8();}function a50_0x1619(_0x3c452f,_0x1dc855){const _0x53b8c2=a50_0x53b8();return a50_0x1619=function(_0x1619c3,_0x270774){_0x1619c3=_0x1619c3-0x198;let _0x4a3eee=_0x53b8c2[_0x1619c3];return _0x4a3eee;},a50_0x1619(_0x3c452f,_0x1dc855);}exports['browserStackEvaluate']=async(_0x91b792,_0x1e7325,_0x3d955e={})=>{const _0x135d4d=a50_0x274e13,_0x5d572c={'NtNhR':'bstackSdkArgs','OsLEf':function(_0x333295,_0x52952a){return _0x333295(_0x52952a);},'gpfhE':function(_0x3d8644,_0x5b720f){return _0x3d8644(_0x5b720f);},'lGXAx':_0x135d4d(0x220),'rGpfz':function(_0x240d94,_0x43267a){return _0x240d94(_0x43267a);},'EtAty':function(_0xd60e91,_0x344b0e){return _0xd60e91!==_0x344b0e;},'rPxqM':_0x135d4d(0x254),'bKNPy':function(_0x408c57,_0x549f21){return _0x408c57(_0x549f21);},'rEprx':'[STALE-CDP]\x20falling\x20back\x20to\x20fresh-CDP-session\x20evaluate','EqeQo':function(_0x2d73ff,_0x1db4d6,_0x4caf75){return _0x2d73ff(_0x1db4d6,_0x4caf75);},'kFEgc':function(_0x32d9da,_0x24c196){return _0x32d9da!==_0x24c196;},'DrnMu':function(_0x42fb0c,_0x51b64c){return _0x42fb0c===_0x51b64c;},'jFoTI':_0x135d4d(0x225)},_0x4fa418=_0x135d4d(0x1ea)+_0x1e7325['replace'](/arguments/g,_0x5d572c['NtNhR'])+_0x135d4d(0x20c)+JSON['stringify'](_0x3d955e)+')';let _0x365f73=_0x91b792;if(_0x5d572c[_0x135d4d(0x24a)](isPageStale,_0x365f73)&&_0x91b792[_0x135d4d(0x1b2)]){const _0x499d34=await _0x5d572c[_0x135d4d(0x1c4)](pickFreshPage,_0x91b792[_0x135d4d(0x1b2)]());_0x499d34&&(logger[_0x135d4d(0x261)](_0x5d572c[_0x135d4d(0x1e7)]),_0x365f73=_0x499d34);}let _0x3a0566;try{_0x3a0566=await _0x365f73[_0x135d4d(0x1f1)](_0x4fa418);}catch(_0x205e73){if(_0x5d572c[_0x135d4d(0x24a)](isStalePageError,_0x205e73)&&_0x91b792[_0x135d4d(0x1b2)]){const _0x8d579d=await _0x5d572c[_0x135d4d(0x21d)](pickFreshPage,_0x91b792[_0x135d4d(0x1b2)]());if(_0x8d579d&&_0x5d572c[_0x135d4d(0x22c)](_0x8d579d,_0x365f73))logger[_0x135d4d(0x261)](_0x135d4d(0x1f9)+_0x205e73[_0x135d4d(0x1b7)]+')\x20—\x20fresh\x20page\x20url='+(_0x8d579d[_0x135d4d(0x25e)]&&_0x8d579d[_0x135d4d(0x25e)]())),_0x3a0566=await _0x8d579d[_0x135d4d(0x1f1)](_0x4fa418);else{if(_0x91b792[_0x135d4d(0x270)]){let _0x853f91=![];try{logger[_0x135d4d(0x261)]('[STALE-RELOAD]\x20browserStackEvaluate:\x20no\x20fresh\x20page\x20after\x20stale-page\x20error\x20('+_0x205e73[_0x135d4d(0x1b7)]+')\x20—\x20reloading\x20page\x20to\x20reset\x20frame');const _0x3821ee={};_0x3821ee[_0x135d4d(0x240)]=_0x5d572c[_0x135d4d(0x1d2)],await _0x91b792[_0x135d4d(0x270)](_0x3821ee);const _0x1aac0c=await _0x5d572c[_0x135d4d(0x1c8)](pickFreshPage,_0x91b792[_0x135d4d(0x1b2)]())||_0x91b792;logger[_0x135d4d(0x261)](_0x135d4d(0x259)+(_0x1aac0c[_0x135d4d(0x25e)]&&_0x1aac0c['url']())),_0x3a0566=await _0x1aac0c[_0x135d4d(0x1f1)](_0x4fa418),_0x853f91=!![];}catch(_0x564b8b){logger[_0x135d4d(0x261)](_0x135d4d(0x1bb)+_0x564b8b['message']);}if(!_0x853f91)try{logger['info'](_0x5d572c[_0x135d4d(0x245)]);const _0x5345e0=await _0x5d572c['EqeQo'](evalViaFreshCDPSession,_0x91b792,_0x4fa418);if(_0x5d572c['kFEgc'](_0x5345e0,undefined))_0x3a0566=_0x5345e0;else throw _0x205e73;}catch(_0x519ac1){logger[_0x135d4d(0x261)](_0x135d4d(0x19c)+_0x519ac1['message']);throw _0x205e73;}}else throw _0x205e73;}}else throw _0x205e73;}try{if(_0x1e7325&&_0x5d572c[_0x135d4d(0x20e)](typeof _0x1e7325,_0x5d572c[_0x135d4d(0x1e0)])){const _0x11bb98=AUTOMATION_LOG_COMMANDS['find'](_0x2ebbda=>_0x1e7325['includes'](_0x2ebbda));if(_0x11bb98){const _0x2b7944={};_0x2b7944[_0x135d4d(0x22d)]=_0x11bb98,_0x2b7944['parameters']=[_0x3d955e];const _0x317a1c={};_0x317a1c[_0x135d4d(0x1be)]=_0x3a0566;const _0x13a19a={};_0x13a19a[_0x135d4d(0x235)]=_0x2b7944,_0x13a19a[_0x135d4d(0x210)]=_0x317a1c,automationLogger[_0x135d4d(0x1ee)]('['+new Date()['toISOString']()+_0x135d4d(0x1e9)+JSON[_0x135d4d(0x1a1)](_0x13a19a));}}}catch(_0x2473dc){logger[_0x135d4d(0x1d8)](_0x135d4d(0x248)+_0x2473dc[_0x135d4d(0x1b7)]);}return _0x3a0566;},exports['browserStackExecuteDriver']=async(_0x4096c8,_0x37ff7b,_0x57e566={})=>{const _0x4228b9=a50_0x274e13,_0x5935e1={};_0x5935e1[_0x4228b9(0x1f6)]=function(_0x43adac,_0xb388){return _0x43adac===_0xb388;},_0x5935e1[_0x4228b9(0x1b4)]=_0x4228b9(0x277),_0x5935e1[_0x4228b9(0x209)]='Playwright',_0x5935e1[_0x4228b9(0x1db)]=_0x4228b9(0x1a9);const _0x16f7c1=_0x5935e1;if(_0x16f7c1[_0x4228b9(0x1f6)](_0x4096c8['constructor'][_0x4228b9(0x213)],_0x16f7c1[_0x4228b9(0x1b4)]))return await _0x4096c8[_0x4228b9(0x24e)](_0x37ff7b,_0x57e566);else{if(_0x16f7c1['Klxau'](_0x4096c8['constructor'][_0x4228b9(0x213)],_0x16f7c1[_0x4228b9(0x209)]))return await _0x4096c8[_0x4228b9(0x1f0)](_0x4228b9(0x247)+_0x37ff7b[_0x4228b9(0x206)](/arguments/g,_0x16f7c1[_0x4228b9(0x1db)])+_0x4228b9(0x1b9)+JSON['stringify'](_0x57e566)+')');}},exports[a50_0x274e13(0x25b)]=async _0x41440c=>{const _0x667533=a50_0x274e13,_0x203759={};_0x203759[_0x667533(0x1ed)]=_0x667533(0x1eb),_0x203759['kCiAv']=_0x667533(0x276),_0x203759[_0x667533(0x199)]='accessibilityOptions.includeIssueType.bestPractice',_0x203759[_0x667533(0x24d)]=_0x667533(0x203),_0x203759[_0x667533(0x1d3)]=_0x667533(0x1e4),_0x203759[_0x667533(0x26a)]=_0x667533(0x252);const _0x256e24=_0x203759;_0x41440c[_0x667533(0x1d6)]&&(_0x41440c['accessibilityOptions']['wcagVersion']&&(_0x41440c[_0x256e24['IQfem']]=_0x41440c[_0x667533(0x1d6)][_0x667533(0x202)]),_0x41440c['accessibilityOptions'][_0x667533(0x253)]&&(_0x41440c[_0x256e24[_0x667533(0x19e)]]=_0x41440c[_0x667533(0x1d6)]['scannerProcessingTimeout']),_0x41440c[_0x667533(0x1d6)][_0x667533(0x22e)]&&(_0x41440c[_0x256e24['XAhXT']]=_0x41440c[_0x667533(0x1d6)]['includeIssueType'][_0x667533(0x25d)],_0x41440c[_0x256e24[_0x667533(0x24d)]]=_0x41440c[_0x667533(0x1d6)]['includeIssueType'][_0x667533(0x1c2)]));const _0x14ff94=JSON[_0x667533(0x218)](process[_0x667533(0x1b8)][_0x667533(0x198)]||'{}')[_0x667533(0x1cd)];_0x41440c[_0x256e24[_0x667533(0x1d3)]]=process['env'][_0x667533(0x257)],_0x41440c[_0x256e24[_0x667533(0x26a)]]=_0x14ff94,delete _0x41440c[_0x667533(0x1d6)];},exports[a50_0x274e13(0x216)]=async _0x460331=>{const _0x3fd53d=a50_0x274e13,_0x1fafc4={};_0x1fafc4[_0x3fd53d(0x1d0)]=_0x3fd53d(0x222),_0x1fafc4[_0x3fd53d(0x1ae)]=_0x3fd53d(0x1fe),_0x1fafc4[_0x3fd53d(0x1a6)]='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.',_0x1fafc4[_0x3fd53d(0x221)]=_0x3fd53d(0x1cb);const _0x3f6b7b=_0x1fafc4;if(!scripts['hasScripts'](_0x3f6b7b[_0x3fd53d(0x1d0)],_0x3f6b7b[_0x3fd53d(0x1ae)]))return logger[_0x3fd53d(0x1cf)](_0x3f6b7b[_0x3fd53d(0x1a6)]),[];if(global[_0x3fd53d(0x1a4)])try{const details={'url':await _0x460331.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(_0x460331,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(_0x460331,scripts.getResults,mobileArgs);},{...details})();return res;}catch(_0x4bcd4b){return logger[_0x3fd53d(0x19b)](_0x3fd53d(0x1ab)+(_0x4bcd4b&&(_0x4bcd4b[_0x3fd53d(0x263)]||_0x4bcd4b[_0x3fd53d(0x1b7)])||_0x4bcd4b)),[];}else return logger[_0x3fd53d(0x1cf)](_0x3f6b7b[_0x3fd53d(0x221)]),[];},exports[a50_0x274e13(0x222)]=async(_0x36fcf8,_0x5f344b='',_0x40cedf={},_0x3208d7={})=>{const _0x114d7c=a50_0x274e13,_0x2689d9={};_0x2689d9[_0x114d7c(0x21a)]=_0x114d7c(0x222),_0x2689d9[_0x114d7c(0x1fc)]='Accessibility\x20scanner\x20scripts\x20are\x20not\x20loaded\x20for\x20this\x20run;\x20skipping\x20scan';const _0x20ab31=_0x2689d9;logger[_0x114d7c(0x1d8)](_0x114d7c(0x200)+_0x5f344b+_0x114d7c(0x243)+_0x36fcf8);if(!scripts['hasScripts'](_0x20ab31[_0x114d7c(0x21a)])){logger[_0x114d7c(0x1d8)](_0x20ab31[_0x114d7c(0x1fc)]);return;}const _0x476a6d={'url':await _0x36fcf8[_0x114d7c(0x25e)](),'testhub_btcer_uuid':global[_0x114d7c(0x1b3)]?.[_0x114d7c(0x275)]?.['id']};if(global[_0x114d7c(0x1a4)])return await PerformanceTester[_0x114d7c(0x260)](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x2e9183=_0x114d7c,_0x14aa7c={};_0x14aa7c[_0x2e9183(0x22d)]=_0x5f344b;const _0x1d7fdc=_0x14aa7c;_0x40cedf&&_0x40cedf[_0x2e9183(0x1d5)]&&(_0x1d7fdc['includePartOfPageScope']=_0x40cedf[_0x2e9183(0x1d5)]);Object[_0x2e9183(0x26b)](_0x1d7fdc,_0x3208d7);const _0x5b6e1a=await exports[_0x2e9183(0x23f)](_0x36fcf8,scripts[_0x2e9183(0x222)],_0x1d7fdc);return _0x5b6e1a;},{'command':_0x5f344b,..._0x476a6d})();},exports[a50_0x274e13(0x1df)]=async _0x15c810=>{const _0x330b38=a50_0x274e13,_0x1f23ed={};_0x1f23ed[_0x330b38(0x1f4)]=_0x330b38(0x222),_0x1f23ed['wNbbb']=_0x330b38(0x1ce),_0x1f23ed[_0x330b38(0x205)]=_0x330b38(0x1f8),_0x1f23ed[_0x330b38(0x1dd)]=_0x330b38(0x239);const _0x2ade8a=_0x1f23ed;if(!scripts[_0x330b38(0x244)](_0x2ade8a[_0x330b38(0x1f4)],_0x2ade8a['wNbbb']))return logger[_0x330b38(0x1cf)](_0x2ade8a[_0x330b38(0x205)]),{};if(global[_0x330b38(0x1a4)])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(_0x15c810,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(_0x15c810,scripts.getResultsSummary,mobileArgs);})();if(summaryResults&&typeof summaryResults==='object'&&global.__bstackA11yScanCapHit){summaryResults.degraded=true;summaryResults.degradedReason=global.__bstackA11yScanCapHit.reason;}return summaryResults;}catch(_0x117a82){return logger[_0x330b38(0x19b)](_0x330b38(0x242)+(_0x117a82&&(_0x117a82[_0x330b38(0x263)]||_0x117a82[_0x330b38(0x1b7)])||_0x117a82)),{};}else return logger['warn'](_0x2ade8a[_0x330b38(0x1dd)]),{};},exports[a50_0x274e13(0x1a0)]=_0x49886f=>{const _0x58bfd3=a50_0x274e13,_0x16afe2={'FIJdN':_0x58bfd3(0x1c6),'alQDn':_0x58bfd3(0x267),'JbMHj':function(_0x7f9066,_0x580e52){return _0x7f9066!==_0x580e52;},'yxyWN':_0x58bfd3(0x1d4),'VofWZ':function(_0x2b890c){return _0x2b890c();},'dZNEm':_0x58bfd3(0x22b)};try{if(global['isMobilePlatform'])return logger[_0x58bfd3(0x1d8)](_0x16afe2[_0x58bfd3(0x1c3)]),!![];const _0x54636b=_0x49886f[_0x58bfd3(0x1b2)],_0x3de826=_0x49886f[_0x58bfd3(0x1c7)];if(!accessibilityHelper[_0x58bfd3(0x233)](_0x54636b))return logger[_0x58bfd3(0x1cf)](_0x16afe2[_0x58bfd3(0x217)]),![];if(_0x16afe2[_0x58bfd3(0x230)](_0x3de826,_0x16afe2[_0x58bfd3(0x1bf)])){const _0x47747b=_0x16afe2[_0x58bfd3(0x249)](isBrowserstackInfra),_0x4a60e0=accessibilityHelper[_0x58bfd3(0x1fa)](_0x54636b,_0x47747b),_0x2af9ce=accessibilityHelper['getBrowserDisplayName'](_0x54636b);if(!accessibilityHelper[_0x58bfd3(0x1bd)](_0x3de826,_0x4a60e0)){const _0x1f1334=_0x47747b?'':_0x16afe2[_0x58bfd3(0x26e)];return logger[_0x58bfd3(0x1cf)](_0x58bfd3(0x271)+_0x2af9ce+_0x58bfd3(0x1fd)+_0x4a60e0+'\x20or\x20higher\x20'+_0x1f1334+'.'),![];}}}catch(_0x13a0db){logger['debug'](_0x58bfd3(0x20d)+util[_0x58bfd3(0x268)](_0x13a0db));}return!![];},exports['processAccessibilityCaps']=(_0x25bb53,_0x5f2f2b,_0x30b17d)=>{const _0x476fb8=a50_0x274e13,_0x372b06={'RwhlN':_0x476fb8(0x1e3),'YkHZp':function(_0x389c99){return _0x389c99();},'UwugU':_0x476fb8(0x273),'jQwzH':_0x476fb8(0x267),'SmSfG':function(_0x49db4d,_0x1132d3){return _0x49db4d!==_0x1132d3;},'lGuoj':_0x476fb8(0x1d4),'ESBdP':_0x476fb8(0x22b),'uuDjA':function(_0x4b83d5,_0x4ffb4e){return _0x4b83d5(_0x4ffb4e);},'xOzwj':function(_0x1d3e04,_0x168d2a){return _0x1d3e04===_0x168d2a;},'fwBCS':_0x476fb8(0x1ef),'hsmyj':'chrome','FwuGF':_0x476fb8(0x19f),'hWhZc':_0x476fb8(0x227),'dWIhX':_0x476fb8(0x1ba),'CoDBF':function(_0x571413,_0x5171be){return _0x571413+_0x5171be;}};try{if(_0x372b06[_0x476fb8(0x1a7)](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x25bb53[_0x372b06[_0x476fb8(0x24c)]]&&(global['accessibilityPlatform']=![]);const _0x658f19=_0x25bb53[_0x476fb8(0x25a)]||_0x25bb53[_0x476fb8(0x1b2)],_0x186d42=_0x25bb53[_0x476fb8(0x1c7)];!accessibilityHelper[_0x476fb8(0x233)](_0x658f19)&&(logger[_0x476fb8(0x1cf)](_0x372b06['jQwzH']),global[_0x476fb8(0x1a4)]=![]);if(_0x372b06[_0x476fb8(0x1a5)](_0x186d42,_0x372b06['lGuoj'])){const _0x49f6a7=_0x372b06[_0x476fb8(0x1a7)](isBrowserstackInfra),_0x1ec3b8=accessibilityHelper[_0x476fb8(0x1fa)](_0x658f19,_0x49f6a7),_0x28bfde=accessibilityHelper[_0x476fb8(0x266)](_0x658f19);if(!accessibilityHelper[_0x476fb8(0x1bd)](_0x186d42,_0x1ec3b8)){const _0x3d8921=_0x49f6a7?'':_0x372b06['ESBdP'];logger[_0x476fb8(0x1cf)](_0x476fb8(0x271)+_0x28bfde+_0x476fb8(0x1fd)+_0x1ec3b8+'\x20or\x20higher\x20'+_0x3d8921+'.'),global[_0x476fb8(0x1a4)]=![];}}if(!_0x372b06[_0x476fb8(0x219)](isUndefined,_0x25bb53[_0x476fb8(0x21f)])){const _0x172cfe=(_0x25bb53['os']||'')[_0x476fb8(0x211)](),_0x3117db=(_0x25bb53[_0x476fb8(0x25a)]||_0x25bb53[_0x476fb8(0x1b2)]||'')[_0x476fb8(0x211)](),_0x13d5fd=_0x372b06[_0x476fb8(0x1a2)](_0x172cfe,_0x372b06['fwBCS'])&&[_0x372b06[_0x476fb8(0x1d9)],_0x372b06[_0x476fb8(0x26f)],_0x372b06[_0x476fb8(0x20a)]][_0x476fb8(0x26c)](_0x3117db);if(!_0x13d5fd)logger[_0x476fb8(0x1cf)](_0x372b06[_0x476fb8(0x1b1)]),global['accessibilityPlatform']=![];else!accessibilityHelper['isMobileScanningEnabledForGroup']()&&(logger[_0x476fb8(0x1cf)](accessibilityHelper['MOBILE_SCANNING_DISABLED_WARNING']),global[_0x476fb8(0x1a4)]=![]);}if(!global[_0x476fb8(0x1a4)]){_0x25bb53[_0x372b06[_0x476fb8(0x24c)]]=![],Object[_0x476fb8(0x23d)](_0x25bb53)[_0x476fb8(0x19d)](_0x34dc83=>{const _0x4ae999=_0x476fb8;_0x34dc83[_0x4ae999(0x22a)](_0x372b06['RwhlN'])&&delete _0x25bb53[_0x34dc83];});const _0x144ee3=_0x372b06[_0x476fb8(0x26d)](_0x5f2f2b,_0x372b06[_0x476fb8(0x219)](encodeURIComponent,JSON[_0x476fb8(0x1a1)](_0x25bb53)));_0x30b17d&&(_0x30b17d[_0x476fb8(0x275)][_0x476fb8(0x1c0)][_0x476fb8(0x1d7)][_0x476fb8(0x1c5)][_0x476fb8(0x1a8)][_0x476fb8(0x1d1)]=_0x144ee3,_0x30b17d[_0x476fb8(0x262)][_0x476fb8(0x1d7)][_0x476fb8(0x1c5)][_0x476fb8(0x1a8)][_0x476fb8(0x1d1)]=_0x144ee3);}}else global[_0x476fb8(0x1a4)]=![];}catch(_0x258046){logger[_0x476fb8(0x1d8)](_0x476fb8(0x256)+util[_0x476fb8(0x268)](_0x258046));}};
1
+ const a50_0xfa96e0=a50_0x1b06;(function(_0x239c91,_0x5043e1){const _0x9045c5=a50_0x1b06,_0x4d6a82=_0x239c91();while(!![]){try{const _0x2d177a=parseInt(_0x9045c5(0x168))/0x1+parseInt(_0x9045c5(0x1a9))/0x2+-parseInt(_0x9045c5(0x187))/0x3+parseInt(_0x9045c5(0x204))/0x4*(-parseInt(_0x9045c5(0x227))/0x5)+-parseInt(_0x9045c5(0x195))/0x6+parseInt(_0x9045c5(0x1af))/0x7+-parseInt(_0x9045c5(0x1d1))/0x8*(-parseInt(_0x9045c5(0x1cc))/0x9);if(_0x2d177a===_0x5043e1)break;else _0x4d6a82['push'](_0x4d6a82['shift']());}catch(_0x3323cb){_0x4d6a82['push'](_0x4d6a82['shift']());}}}(a50_0x4f1e,0x8114e));const util=require(a50_0xfa96e0(0x1c6)),logger=require('../../helpers/logger')[a50_0xfa96e0(0x1ad)],{automationLogger}=require(a50_0xfa96e0(0x17c)),{isAccessibilityAutomationSession}=require(a50_0xfa96e0(0x193)),{isUndefined,isBrowserstackInfra}=require(a50_0xfa96e0(0x153)),scripts=require(a50_0xfa96e0(0x1fe)),PerformanceTester=require(a50_0xfa96e0(0x1f3)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a50_0xfa96e0(0x206)),accessibilityHelper=require(a50_0xfa96e0(0x193)),{AUTOMATION_LOG_COMMANDS}=require(a50_0xfa96e0(0x200)),isStalePageError=_0x1a196c=>{const _0x1fb736=a50_0xfa96e0,_0x13d8aa={'KsxGN':function(_0xd0a08,_0x41db98){return _0xd0a08(_0x41db98);}},_0x12e6e7=_0x1a196c&&_0x1a196c[_0x1fb736(0x1cd)]||_0x13d8aa[_0x1fb736(0x1c1)](String,_0x1a196c);return/Target closed|detached [Ff]rame|Execution context was destroyed, most likely because of a navigation/[_0x1fb736(0x1fd)](_0x12e6e7);},isPageStale=_0x602bc5=>{const _0x3af706=a50_0xfa96e0;try{if(_0x602bc5[_0x3af706(0x1ec)]&&_0x602bc5[_0x3af706(0x1ec)]())return!![];const _0x351b36=_0x602bc5[_0x3af706(0x201)]&&_0x602bc5[_0x3af706(0x201)]();if(_0x351b36&&_0x351b36[_0x3af706(0x188)]&&_0x351b36[_0x3af706(0x188)]())return!![];}catch(_0x106b28){}return![];},isUserTabUrl=_0x5c2b79=>{const _0x16cdd4=a50_0xfa96e0,_0x352149={};_0x352149[_0x16cdd4(0x216)]=_0x16cdd4(0x17d),_0x352149[_0x16cdd4(0x16c)]=function(_0x1601fb,_0x46295f){return _0x1601fb===_0x46295f;},_0x352149[_0x16cdd4(0x21c)]=_0x16cdd4(0x1fb),_0x352149[_0x16cdd4(0x1de)]=_0x16cdd4(0x22a),_0x352149[_0x16cdd4(0x22b)]=function(_0xd75f44,_0x51c38b){return _0xd75f44===_0x51c38b;};const _0x339592=_0x352149;if(!_0x5c2b79)return![];if(_0x5c2b79[_0x16cdd4(0x1c5)](_0x339592['TfoYo']))return![];if(_0x339592[_0x16cdd4(0x16c)](_0x5c2b79,_0x339592[_0x16cdd4(0x21c)])||_0x339592['VChTu'](_0x5c2b79,_0x339592[_0x16cdd4(0x1de)])||_0x339592[_0x16cdd4(0x22b)](_0x5c2b79,''))return![];return!![];},pickFreshPage=async _0xb0995f=>{const _0x4af530=a50_0xfa96e0,_0x10ef00={'mOibF':function(_0x15476d,_0x45ca7b){return _0x15476d(_0x45ca7b);}};try{const _0x43bd9c=await _0xb0995f[_0x4af530(0x16e)]();return _0x43bd9c[_0x4af530(0x1ea)](_0x1244a3=>{const _0x4fb6c5=_0x4af530;try{if(_0x10ef00[_0x4fb6c5(0x1ee)](isPageStale,_0x1244a3))return![];return _0x10ef00[_0x4fb6c5(0x1ee)](isUserTabUrl,_0x1244a3['url']&&_0x1244a3[_0x4fb6c5(0x1e5)]());}catch(_0x383e41){return![];}});}catch(_0x36f8b0){return null;}},evalViaFreshCDPSession=async(_0x26cb2b,_0x48f318)=>{const _0x2f3a44=a50_0xfa96e0,_0x1a897a={'WrtfG':function(_0x3bb669,_0x1daefa){return _0x3bb669===_0x1daefa;},'POVRi':_0x2f3a44(0x1f5),'DjWwC':_0x2f3a44(0x1b1),'fIIhu':_0x2f3a44(0x164),'sOBNA':_0x2f3a44(0x17d),'HKKac':function(_0x51ea4e,_0x324105){return _0x51ea4e===_0x324105;},'AiAif':function(_0x48f21b){return _0x48f21b();},'WfhvE':'Runtime.evaluate','fWkyz':_0x2f3a44(0x22c),'oMENm':function(_0x4f9159,_0x91545c){return _0x4f9159!==_0x91545c;},'EbvHK':_0x2f3a44(0x199),'etEZA':function(_0x2f1d31,_0x58e766){return _0x2f1d31(_0x58e766);},'JGejf':function(_0x18d82e,_0x381c8f){return _0x18d82e(_0x381c8f);}};if(!_0x26cb2b['browser']||_0x1a897a[_0x2f3a44(0x1df)](typeof _0x26cb2b[_0x2f3a44(0x19c)],_0x1a897a[_0x2f3a44(0x1bf)]))return undefined;const _0x23b0df=_0x26cb2b['browser']();if(!_0x23b0df[_0x2f3a44(0x22d)])return undefined;const _0x2a5259=_0x26cb2b['url']&&_0x26cb2b['url']()||'',_0x4122d8=()=>{const _0x35da22=_0x2f3a44,_0x4b5bfc={'YxCqh':function(_0x5f599d,_0x322606){const _0x315a0e=a50_0x1b06;return _0x1a897a[_0x315a0e(0x19b)](_0x5f599d,_0x322606);},'OJfLP':_0x1a897a[_0x35da22(0x1d3)]},_0x39b260=_0x23b0df[_0x35da22(0x22d)]();let _0x18b881=_0x39b260['find'](_0x1ca6ed=>{const _0xf4bd77=_0x35da22;try{return _0x4b5bfc[_0xf4bd77(0x1d9)](_0x1ca6ed[_0xf4bd77(0x228)](),_0x4b5bfc[_0xf4bd77(0x17a)])&&_0x4b5bfc[_0xf4bd77(0x1d9)](_0x1ca6ed[_0xf4bd77(0x1e5)](),_0x2a5259);}catch(_0x4216ac){return![];}});if(_0x18b881){const _0x2dd14d={};return _0x2dd14d['t']=_0x18b881,_0x2dd14d[_0x35da22(0x17b)]=_0x39b260['length'],_0x2dd14d;}_0x18b881=_0x39b260[_0x35da22(0x1ea)](_0x39b81f=>{const _0x4c5968=_0x35da22;try{const _0x51751e=_0x39b81f[_0x4c5968(0x1e5)]()||'';return _0x1a897a[_0x4c5968(0x185)](_0x39b81f[_0x4c5968(0x228)](),_0x1a897a[_0x4c5968(0x1d3)])&&(_0x51751e['startsWith'](_0x1a897a[_0x4c5968(0x226)])||_0x51751e['startsWith'](_0x1a897a[_0x4c5968(0x179)]))&&!_0x51751e[_0x4c5968(0x1c5)](_0x1a897a[_0x4c5968(0x183)]);}catch(_0x502d81){return![];}});const _0x23cf6c={};return _0x23cf6c['t']=_0x18b881,_0x23cf6c[_0x35da22(0x17b)]=_0x39b260['length'],_0x23cf6c;},_0x39a27f=async _0x3f47dd=>{const _0x1097e4=_0x2f3a44,{t:_0x3185ba,targetsLen:_0x46247c}=_0x1a897a[_0x1097e4(0x1b8)](_0x4122d8);if(!_0x3185ba){logger['info'](_0x1097e4(0x1e3)+_0x3f47dd+_0x1097e4(0x209)+_0x46247c+'\x20targets');const _0x25c062={};return _0x25c062['ok']=![],_0x25c062[_0x1097e4(0x203)]=![],_0x25c062;}logger[_0x1097e4(0x15f)](_0x1097e4(0x1fc)+_0x3f47dd+'\x20using\x20target\x20url='+(_0x3185ba['url']&&_0x3185ba[_0x1097e4(0x1e5)]()));let _0x1c1596;try{_0x1c1596=await _0x3185ba[_0x1097e4(0x1ae)]();}catch(_0x4be5f8){const _0x307d8f=/navigated or closed|Target closed|Session closed/i[_0x1097e4(0x1fd)](_0x4be5f8['message']||'');logger[_0x1097e4(0x15f)](_0x1097e4(0x196)+_0x3f47dd+_0x1097e4(0x182)+_0x4be5f8[_0x1097e4(0x1cd)]+_0x1097e4(0x20a)+_0x307d8f);const _0x38f6c6={};return _0x38f6c6['ok']=![],_0x38f6c6[_0x1097e4(0x203)]=_0x307d8f,_0x38f6c6;}try{const _0x3aca66={};_0x3aca66['expression']=_0x48f318,_0x3aca66['awaitPromise']=!![],_0x3aca66[_0x1097e4(0x219)]=!![];const _0xdfa786=await _0x1c1596[_0x1097e4(0x1b3)](_0x1a897a[_0x1097e4(0x1a0)],_0x3aca66);if(_0xdfa786&&_0xdfa786[_0x1097e4(0x1e8)]){const _0x986e82=_0xdfa786[_0x1097e4(0x1e8)]&&_0xdfa786[_0x1097e4(0x1e8)][_0x1097e4(0x20b)]||_0x1a897a['fWkyz'];logger[_0x1097e4(0x15f)](_0x1097e4(0x1ef)+_0x3f47dd+'\x20evaluate\x20exception:\x20'+_0x986e82);const _0x524d1d={};return _0x524d1d['ok']=![],_0x524d1d[_0x1097e4(0x203)]=![],_0x524d1d['exceptionDetails']=_0x986e82,_0x524d1d;}logger[_0x1097e4(0x15f)](_0x1097e4(0x1b4)+_0x3f47dd+'\x20evaluate\x20returned\x20via\x20fresh\x20CDP\x20session');const _0x5e518a={};return _0x5e518a['ok']=!![],_0x5e518a[_0x1097e4(0x184)]=_0xdfa786&&_0xdfa786[_0x1097e4(0x1dc)]&&_0xdfa786['result'][_0x1097e4(0x184)],_0x5e518a;}catch(_0x5652ee){const _0x554330=/navigated or closed|Target closed|Session closed/i[_0x1097e4(0x1fd)](_0x5652ee[_0x1097e4(0x1cd)]||'');logger['info'](_0x1097e4(0x198)+_0x3f47dd+_0x1097e4(0x19a)+_0x5652ee[_0x1097e4(0x1cd)]+_0x1097e4(0x20a)+_0x554330);const _0x26ec05={};return _0x26ec05['ok']=![],_0x26ec05[_0x1097e4(0x203)]=_0x554330,_0x26ec05;}finally{try{_0x1c1596&&_0x1c1596[_0x1097e4(0x1a5)]&&await _0x1c1596[_0x1097e4(0x1a5)]();}catch(_0x180fbd){}}};let _0x4c6f41=await _0x1a897a[_0x2f3a44(0x16d)](_0x39a27f,0x1);if(_0x4c6f41['ok'])return _0x4c6f41[_0x2f3a44(0x184)];if(_0x4c6f41[_0x2f3a44(0x203)]){await new Promise(_0x22a01a=>setTimeout(_0x22a01a,0x190)),_0x4c6f41=await _0x1a897a[_0x2f3a44(0x224)](_0x39a27f,0x2);if(_0x4c6f41['ok'])return _0x4c6f41[_0x2f3a44(0x184)];}if(_0x4c6f41[_0x2f3a44(0x1e8)]){const _0x265cad=new Error('evalViaFreshCDPSession:\x20Runtime.evaluate\x20exception\x20—\x20'+_0x4c6f41[_0x2f3a44(0x1e8)]);_0x265cad[_0x2f3a44(0x19f)]=_0x4c6f41[_0x2f3a44(0x1e8)];throw _0x265cad;}return undefined;};function a50_0x1b06(_0x2542fa,_0x4bc3de){const _0x4f1e19=a50_0x4f1e();return a50_0x1b06=function(_0x1b0697,_0x23afcb){_0x1b0697=_0x1b0697-0x152;let _0x5d7734=_0x4f1e19[_0x1b0697];return _0x5d7734;},a50_0x1b06(_0x2542fa,_0x4bc3de);}function a50_0x4f1e(){const _0x251d54=['4bHwLCv','hasScripts','../../helpers/performance/constants','rlBdy','ylvsY','\x20no\x20AUT\x20target\x20found\x20among\x20','\x20transient=','text','[STALE-RELOAD]\x20browserStackEvaluate:\x20no\x20fresh\x20page\x20after\x20stale-page\x20error\x20(','platformValidation:\x20Mobile\x20platform\x20already\x20validated.','[STALE-RELOAD-ERR]\x20reload/retry\x20failed:\x20','\x20browser\x20version\x20','browserName','dHRMs','browserstack.accessibility','toLowerCase','workerInfo','bestPractice','TfoYo','\x20or\x20higher\x20','ZVjWO','returnByValue','accessibilityOptions.authToken','executeAsyncScript','lrSAg','setAccessibilityCapabilities','QBgFb','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','includeIssueType','SKZiy','getAccessibilityResults\x20failed:\x20','sgOuE','JGejf','foDty','DjWwC','1939345OLSlTx','type','getAccessibilityResultsSummary\x20failed:\x20','data:,','sNxAA','unknown','targets','platformValidation','reload','../../helpers/helper','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.','getMinVersionForBrowser','error','VtAaK','includePartOfPageScope','testInfo','includes','isBrowserSupportedForAccessibility','tVgeo','toISOString','accessibilityOptions.includeIssueType.needsReview','info','string','bstackSdkArgs','getBrowserDisplayName','PJUko','https://','chromium','response','diFYO','185222wVkjnH','isVersionSupported','stringify','keys','VChTu','etEZA','pages','project','yjBmD','(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','ZQrFB','stack','IfrBv','gaXpi','QSSiH','android','name','fIIhu','OJfLP','targetsLen','../../helpers/logger','devtools://','assign','[STALE-RETRY]\x20browserStackEvaluate:\x20retry\x20after\x20stale-page\x20error\x20(','qtJDa','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','\x20createCDPSession\x20failed:\x20','sOBNA','value','WrtfG','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','1060869FtbhLU','isDetached','processAccessibilityCaps','measureWrapper','browser_version','nfDig','scannerProcessingTimeout','Accessibility\x20scanner\x20scripts\x20are\x20not\x20loaded\x20for\x20this\x20run;\x20skipping\x20scan','parse','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','TXlfg','IXNEi','../../helpers/accessibility-automation/helper','wiWWQ','2081100DeGUwv','[STALE-CDP-SESSION-ERR]\x20attempt=','format','[STALE-CDP-SEND-ERR]\x20attempt=','function','\x20send\x20failed:\x20','HKKac','browser','BS_A11Y_JWT','chrome','cdpExceptionDetails','WfhvE','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','MOBILE_SCANNING_DISABLED_WARNING','ZOcRz','IMRnG','detach','PYaMy','HchDK','DDJee','1680884NPQGAX','pDGnt','currentTest','[STALE-CDP]\x20falling\x20back\x20to\x20fresh-CDP-session\x20evaluate','winstonLogger','createCDPSession','1079120XlPJHM','replace','http://','accessibilityOptions.scannerProcessingTimeout','send','[STALE-CDP-OK]\x20attempt=','scannerVersion','browserstack.accessibilityOptions','body','AiAif','connectOptions','command','Performing\x20scan\x20with\x20method:\x20','accessibilityOptions.includeIssueType.bestPractice','UcJou','(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','EbvHK','evaluate','KsxGN','silly','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','wsEndpoint','startsWith','util','accessibilityOptions.wcagVersion','feaha','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.','warn','getAccessibilityResultsSummary','3501RgSwuL','message','EtIRu','debug','latest','8992PpnAkB','EKnUE','POVRi','[STALE-CDP-ERR]\x20cdp-session\x20fallback\x20failed:\x20','performScan',')\x20—\x20fresh\x20page\x20url=','alnll','zwGOR','YxCqh','constructor','[STALE-PRE]\x20browserStackEvaluate:\x20page\x20ref\x20stale,\x20reselected\x20from\x20browser.pages()','result','accessibilityOptions','gVwdF','oMENm','[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20','yCcbl','JIjfu','[STALE-CDP-NO-TARGET]\x20attempt=','VCKGo','url','PERFORM_SCAN','hMJqc','exceptionDetails','env','find','executeScript','isClosed','use','mOibF','[STALE-CDP-EX]\x20attempt=','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','browserStackEvaluate','getResultsSummary','../../helpers/performance/performance-tester','request','page','\x20page:\x20','MuaqZ','accessibilityPlatform','deviceName','on\x20non-BrowserStack\x20infrastructure\x20','about:blank','[STALE-CDP-TRY]\x20attempt=','test','../../helpers/accessibility-automation/scripts','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','../utils/constants','mainFrame',')\x20—\x20reloading\x20page\x20to\x20reset\x20frame','transient'];a50_0x4f1e=function(){return _0x251d54;};return a50_0x4f1e();}exports['browserStackEvaluate']=async(_0x550dbc,_0x5b7e04,_0x4b7deb={})=>{const _0x1a2daf=a50_0xfa96e0,_0x1a1d65={'IfrBv':'bstackSdkArgs','ZVjWO':function(_0x1c68b7,_0x486263){return _0x1c68b7(_0x486263);},'JIjfu':function(_0x2fa0c8,_0x4e8249){return _0x2fa0c8(_0x4e8249);},'rlBdy':_0x1a2daf(0x1db),'QSSiH':function(_0x8c9b20,_0x3869f1){return _0x8c9b20(_0x3869f1);},'yCcbl':function(_0x19ce20,_0x1db151){return _0x19ce20!==_0x1db151;},'PYaMy':'domcontentloaded','phOrZ':_0x1a2daf(0x1ac),'laqDb':function(_0x1a5f33,_0x1f3a92,_0x53f1e0){return _0x1a5f33(_0x1f3a92,_0x53f1e0);},'zwGOR':function(_0x4939f7,_0x4b14a8){return _0x4939f7===_0x4b14a8;},'ylvsY':_0x1a2daf(0x160)},_0x37626c=_0x1a2daf(0x171)+_0x5b7e04[_0x1a2daf(0x1b0)](/arguments/g,_0x1a1d65[_0x1a2daf(0x174)])+_0x1a2daf(0x190)+JSON[_0x1a2daf(0x16a)](_0x4b7deb)+')';let _0x529a17=_0x550dbc;if(_0x1a1d65[_0x1a2daf(0x218)](isPageStale,_0x529a17)&&_0x550dbc['browser']){const _0x3c086d=await _0x1a1d65[_0x1a2daf(0x1e2)](pickFreshPage,_0x550dbc['browser']());_0x3c086d&&(logger[_0x1a2daf(0x15f)](_0x1a1d65[_0x1a2daf(0x207)]),_0x529a17=_0x3c086d);}let _0x1a92e5;try{_0x1a92e5=await _0x529a17[_0x1a2daf(0x1c0)](_0x37626c);}catch(_0x2e9dd3){if(_0x1a1d65['QSSiH'](isStalePageError,_0x2e9dd3)&&_0x550dbc['browser']){const _0x161219=await _0x1a1d65[_0x1a2daf(0x176)](pickFreshPage,_0x550dbc[_0x1a2daf(0x19c)]());if(_0x161219&&_0x1a1d65[_0x1a2daf(0x1e1)](_0x161219,_0x529a17))logger[_0x1a2daf(0x15f)](_0x1a2daf(0x17f)+_0x2e9dd3[_0x1a2daf(0x1cd)]+_0x1a2daf(0x1d6)+(_0x161219[_0x1a2daf(0x1e5)]&&_0x161219[_0x1a2daf(0x1e5)]())),_0x1a92e5=await _0x161219[_0x1a2daf(0x1c0)](_0x37626c);else{if(_0x550dbc['reload']){let _0x480e00=![];try{logger[_0x1a2daf(0x15f)](_0x1a2daf(0x20c)+_0x2e9dd3[_0x1a2daf(0x1cd)]+_0x1a2daf(0x202));const _0x467583={};_0x467583['waitUntil']=_0x1a1d65[_0x1a2daf(0x1a6)],await _0x550dbc[_0x1a2daf(0x152)](_0x467583);const _0x46b118=await _0x1a1d65[_0x1a2daf(0x1e2)](pickFreshPage,_0x550dbc[_0x1a2daf(0x19c)]())||_0x550dbc;logger[_0x1a2daf(0x15f)]('[STALE-RELOAD-RETRY]\x20retry\x20after\x20reload\x20—\x20page\x20url='+(_0x46b118[_0x1a2daf(0x1e5)]&&_0x46b118[_0x1a2daf(0x1e5)]())),_0x1a92e5=await _0x46b118['evaluate'](_0x37626c),_0x480e00=!![];}catch(_0x2e0046){logger[_0x1a2daf(0x15f)](_0x1a2daf(0x20e)+_0x2e0046[_0x1a2daf(0x1cd)]);}if(!_0x480e00)try{logger[_0x1a2daf(0x15f)](_0x1a1d65['phOrZ']);const _0x3d4427=await _0x1a1d65['laqDb'](evalViaFreshCDPSession,_0x550dbc,_0x37626c);if(_0x1a1d65['yCcbl'](_0x3d4427,undefined))_0x1a92e5=_0x3d4427;else throw _0x2e9dd3;}catch(_0x15b1c0){logger[_0x1a2daf(0x15f)](_0x1a2daf(0x1d4)+_0x15b1c0[_0x1a2daf(0x1cd)]);throw _0x2e9dd3;}}else throw _0x2e9dd3;}}else throw _0x2e9dd3;}try{if(_0x5b7e04&&_0x1a1d65[_0x1a2daf(0x1d8)](typeof _0x5b7e04,_0x1a1d65[_0x1a2daf(0x208)])){const _0x5c8ba6=AUTOMATION_LOG_COMMANDS['find'](_0x3145f4=>_0x5b7e04[_0x1a2daf(0x15a)](_0x3145f4));if(_0x5c8ba6){const _0xc76b6={};_0xc76b6[_0x1a2daf(0x1ba)]=_0x5c8ba6,_0xc76b6['parameters']=[_0x4b7deb];const _0x1ae6db={};_0x1ae6db[_0x1a2daf(0x1b7)]=_0x1a92e5;const _0x36b309={};_0x36b309[_0x1a2daf(0x1f4)]=_0xc76b6,_0x36b309[_0x1a2daf(0x166)]=_0x1ae6db,automationLogger[_0x1a2daf(0x1c2)]('['+new Date()[_0x1a2daf(0x15d)]()+'][\x20SDK-AUTOMATION\x20]\x20'+JSON[_0x1a2daf(0x16a)](_0x36b309));}}}catch(_0x1c2c21){logger[_0x1a2daf(0x1cf)](_0x1a2daf(0x1e0)+_0x1c2c21[_0x1a2daf(0x1cd)]);}return _0x1a92e5;},exports['browserStackExecuteDriver']=async(_0xda1c2b,_0x5d04fb,_0xc6059e={})=>{const _0x8d647a=a50_0xfa96e0,_0x42685d={};_0x42685d[_0x8d647a(0x163)]=function(_0x365702,_0x24b161){return _0x365702===_0x24b161;},_0x42685d[_0x8d647a(0x1aa)]='WebDriver',_0x42685d[_0x8d647a(0x223)]=function(_0x363134,_0x1054ce){return _0x363134===_0x1054ce;},_0x42685d['diFYO']='Playwright',_0x42685d['hMJqc']=_0x8d647a(0x161);const _0x2e8aee=_0x42685d;if(_0x2e8aee[_0x8d647a(0x163)](_0xda1c2b[_0x8d647a(0x1da)]['name'],_0x2e8aee[_0x8d647a(0x1aa)]))return await _0xda1c2b[_0x8d647a(0x21b)](_0x5d04fb,_0xc6059e);else{if(_0x2e8aee[_0x8d647a(0x223)](_0xda1c2b[_0x8d647a(0x1da)][_0x8d647a(0x178)],_0x2e8aee[_0x8d647a(0x167)]))return await _0xda1c2b[_0x8d647a(0x1eb)](_0x8d647a(0x1be)+_0x5d04fb['replace'](/arguments/g,_0x2e8aee[_0x8d647a(0x1e7)])+_0x8d647a(0x1ff)+JSON[_0x8d647a(0x16a)](_0xc6059e)+')');}},exports[a50_0xfa96e0(0x21d)]=async _0x3229f3=>{const _0x3e98a2=a50_0xfa96e0,_0x54dda2={};_0x54dda2[_0x3e98a2(0x1d2)]=_0x3e98a2(0x1c7),_0x54dda2[_0x3e98a2(0x1ce)]=_0x3e98a2(0x1b2),_0x54dda2[_0x3e98a2(0x192)]=_0x3e98a2(0x1bc),_0x54dda2[_0x3e98a2(0x211)]=_0x3e98a2(0x15e),_0x54dda2[_0x3e98a2(0x1a7)]=_0x3e98a2(0x21a),_0x54dda2[_0x3e98a2(0x157)]='accessibilityOptions.scannerVersion';const _0x17735a=_0x54dda2;_0x3229f3['accessibilityOptions']&&(_0x3229f3[_0x3e98a2(0x1dd)]['wcagVersion']&&(_0x3229f3[_0x17735a['EKnUE']]=_0x3229f3['accessibilityOptions']['wcagVersion']),_0x3229f3[_0x3e98a2(0x1dd)][_0x3e98a2(0x18d)]&&(_0x3229f3[_0x17735a[_0x3e98a2(0x1ce)]]=_0x3229f3['accessibilityOptions'][_0x3e98a2(0x18d)]),_0x3229f3[_0x3e98a2(0x1dd)][_0x3e98a2(0x220)]&&(_0x3229f3[_0x17735a[_0x3e98a2(0x192)]]=_0x3229f3['accessibilityOptions'][_0x3e98a2(0x220)][_0x3e98a2(0x215)],_0x3229f3[_0x17735a['dHRMs']]=_0x3229f3[_0x3e98a2(0x1dd)][_0x3e98a2(0x220)]['needsReview']));const _0x5eaf3f=JSON[_0x3e98a2(0x18f)](process[_0x3e98a2(0x1e9)][_0x3e98a2(0x21f)]||'{}')[_0x3e98a2(0x1b5)];_0x3229f3[_0x17735a[_0x3e98a2(0x1a7)]]=process[_0x3e98a2(0x1e9)][_0x3e98a2(0x19d)],_0x3229f3[_0x17735a[_0x3e98a2(0x157)]]=_0x5eaf3f,delete _0x3229f3[_0x3e98a2(0x1dd)];},exports['getAccessibilityResults']=async _0x2e26fb=>{const _0x5e7dde=a50_0xfa96e0,_0x5df6e0={};_0x5df6e0[_0x5e7dde(0x1bd)]=_0x5e7dde(0x1d5),_0x5df6e0[_0x5e7dde(0x1f7)]='getResults',_0x5df6e0[_0x5e7dde(0x1d7)]=_0x5e7dde(0x154),_0x5df6e0['cyYhB']=_0x5e7dde(0x1a1);const _0x35d458=_0x5df6e0;if(!scripts['hasScripts'](_0x35d458[_0x5e7dde(0x1bd)],_0x35d458[_0x5e7dde(0x1f7)]))return logger[_0x5e7dde(0x1ca)](_0x35d458[_0x5e7dde(0x1d7)]),[];if(global[_0x5e7dde(0x1f8)])try{const details={'url':await _0x2e26fb.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(_0x2e26fb,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(_0x2e26fb,scripts.getResults,mobileArgs);},{...details})();return res;}catch(_0x1ffc05){return logger['error'](_0x5e7dde(0x222)+(_0x1ffc05&&(_0x1ffc05[_0x5e7dde(0x173)]||_0x1ffc05[_0x5e7dde(0x1cd)])||_0x1ffc05)),[];}else return logger[_0x5e7dde(0x1ca)](_0x35d458['cyYhB']),[];},exports[a50_0xfa96e0(0x1d5)]=async(_0x4af367,_0x38cd03='',_0x39899e={},_0x6a2e1c={})=>{const _0x24c230=a50_0xfa96e0,_0x18bbf3={};_0x18bbf3[_0x24c230(0x180)]=_0x24c230(0x1d5),_0x18bbf3[_0x24c230(0x172)]=_0x24c230(0x18e);const _0x40d3fb=_0x18bbf3;logger[_0x24c230(0x1cf)](_0x24c230(0x1bb)+_0x38cd03+_0x24c230(0x1f6)+_0x4af367);if(!scripts[_0x24c230(0x205)](_0x40d3fb[_0x24c230(0x180)])){logger[_0x24c230(0x1cf)](_0x40d3fb[_0x24c230(0x172)]);return;}const _0x2ab247={'url':await _0x4af367['url'](),'testhub_btcer_uuid':global['__workerDetails']?.[_0x24c230(0x1ab)]?.['id']};if(global[_0x24c230(0x1f8)])return await PerformanceTester[_0x24c230(0x18a)](PerformanceA11yEvents[_0x24c230(0x1e6)],async()=>{const _0x3ff9a4=_0x24c230,_0x2ec307={};_0x2ec307['command']=_0x38cd03;const _0x1bb17e=_0x2ec307;_0x39899e&&_0x39899e[_0x3ff9a4(0x158)]&&(_0x1bb17e[_0x3ff9a4(0x158)]=_0x39899e[_0x3ff9a4(0x158)]);Object[_0x3ff9a4(0x17e)](_0x1bb17e,_0x6a2e1c);const _0x34263a=await exports[_0x3ff9a4(0x1f1)](_0x4af367,scripts[_0x3ff9a4(0x1d5)],_0x1bb17e);return _0x34263a;},{'command':_0x38cd03,..._0x2ab247})();},exports[a50_0xfa96e0(0x1cb)]=async _0x217457=>{const _0x276aa6=a50_0xfa96e0,_0x5d9371={};_0x5d9371[_0x276aa6(0x1e4)]=_0x276aa6(0x1d5),_0x5d9371[_0x276aa6(0x1a8)]=_0x276aa6(0x1f2),_0x5d9371[_0x276aa6(0x18c)]=_0x276aa6(0x1c9),_0x5d9371['Ydedj']=_0x276aa6(0x1c3);const _0x17029d=_0x5d9371;if(!scripts[_0x276aa6(0x205)](_0x17029d[_0x276aa6(0x1e4)],_0x17029d[_0x276aa6(0x1a8)]))return logger['warn'](_0x17029d['nfDig']),{};if(global[_0x276aa6(0x1f8)])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(_0x217457,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(_0x217457,scripts.getResultsSummary,mobileArgs);})();if(summaryResults&&typeof summaryResults==='object'&&global.__bstackA11yScanCapHit){summaryResults.degraded=true;summaryResults.degradedReason=global.__bstackA11yScanCapHit.reason;}return summaryResults;}catch(_0x26a6dc){return logger[_0x276aa6(0x156)](_0x276aa6(0x229)+(_0x26a6dc&&(_0x26a6dc[_0x276aa6(0x173)]||_0x26a6dc[_0x276aa6(0x1cd)])||_0x26a6dc)),{};}else return logger[_0x276aa6(0x1ca)](_0x17029d['Ydedj']),{};},exports[a50_0xfa96e0(0x22e)]=_0x3ac7eb=>{const _0x161a04=a50_0xfa96e0,_0x553aee={'iIkRj':_0x161a04(0x20d),'uYszF':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','ZOcRz':function(_0x227232,_0x10b02a){return _0x227232!==_0x10b02a;},'gaXpi':'latest','TXlfg':function(_0x18a1fd){return _0x18a1fd();},'KCRKC':'on\x20non-BrowserStack\x20infrastructure\x20'};try{if(global['isMobilePlatform'])return logger[_0x161a04(0x1cf)](_0x553aee['iIkRj']),!![];const _0x536d32=_0x3ac7eb['browser'],_0x37daff=_0x3ac7eb[_0x161a04(0x18b)];if(!accessibilityHelper[_0x161a04(0x15b)](_0x536d32))return logger[_0x161a04(0x1ca)](_0x553aee['uYszF']),![];if(_0x553aee[_0x161a04(0x1a3)](_0x37daff,_0x553aee[_0x161a04(0x175)])){const _0xb48cb2=_0x553aee[_0x161a04(0x191)](isBrowserstackInfra),_0x5b1f98=accessibilityHelper[_0x161a04(0x155)](_0x536d32,_0xb48cb2),_0x1c8809=accessibilityHelper['getBrowserDisplayName'](_0x536d32);if(!accessibilityHelper['isVersionSupported'](_0x37daff,_0x5b1f98)){const _0x45f0ef=_0xb48cb2?'':_0x553aee['KCRKC'];return logger[_0x161a04(0x1ca)]('Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20'+_0x1c8809+'\x20browser\x20version\x20'+_0x5b1f98+_0x161a04(0x217)+_0x45f0ef+'.'),![];}}}catch(_0x56ec34){logger[_0x161a04(0x1cf)](_0x161a04(0x181)+util[_0x161a04(0x197)](_0x56ec34));}return!![];},exports[a50_0xfa96e0(0x189)]=(_0x10ef77,_0x39ddc3,_0x227d4d)=>{const _0x4772a8=a50_0xfa96e0,_0xdfa1e1={'IMRnG':_0x4772a8(0x1b6),'yjBmD':function(_0x54ef55){return _0x54ef55();},'foDty':_0x4772a8(0x212),'NWfSb':_0x4772a8(0x186),'OVkkP':function(_0x4431a0,_0x477133){return _0x4431a0!==_0x477133;},'SKZiy':_0x4772a8(0x1d0),'tVgeo':function(_0x8b24e0){return _0x8b24e0();},'pfzcw':_0x4772a8(0x1fa),'QBgFb':function(_0x2d4355,_0x2aafbb){return _0x2d4355(_0x2aafbb);},'lOdys':function(_0x36f0ca,_0x50d376){return _0x36f0ca===_0x50d376;},'vrMGs':_0x4772a8(0x177),'VDSeF':_0x4772a8(0x19e),'zFrvZ':'playwright-chromium','fFsEk':_0x4772a8(0x165),'feaha':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','wiWWQ':function(_0x76c12e,_0xaff04c){return _0x76c12e+_0xaff04c;},'aVzpb':function(_0x12ac8d,_0xa25731){return _0x12ac8d(_0xa25731);}};try{if(_0xdfa1e1[_0x4772a8(0x170)](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x10ef77[_0xdfa1e1[_0x4772a8(0x225)]]&&(global[_0x4772a8(0x1f8)]=![]);const _0x4ca811=_0x10ef77[_0x4772a8(0x210)]||_0x10ef77[_0x4772a8(0x19c)],_0x4e7683=_0x10ef77[_0x4772a8(0x18b)];!accessibilityHelper['isBrowserSupportedForAccessibility'](_0x4ca811)&&(logger['warn'](_0xdfa1e1['NWfSb']),global[_0x4772a8(0x1f8)]=![]);if(_0xdfa1e1['OVkkP'](_0x4e7683,_0xdfa1e1[_0x4772a8(0x221)])){const _0x11c754=_0xdfa1e1[_0x4772a8(0x15c)](isBrowserstackInfra),_0xeb0ee7=accessibilityHelper[_0x4772a8(0x155)](_0x4ca811,_0x11c754),_0xafa0c5=accessibilityHelper[_0x4772a8(0x162)](_0x4ca811);if(!accessibilityHelper[_0x4772a8(0x169)](_0x4e7683,_0xeb0ee7)){const _0x52689b=_0x11c754?'':_0xdfa1e1['pfzcw'];logger[_0x4772a8(0x1ca)]('Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20'+_0xafa0c5+_0x4772a8(0x20f)+_0xeb0ee7+_0x4772a8(0x217)+_0x52689b+'.'),global[_0x4772a8(0x1f8)]=![];}}if(!_0xdfa1e1[_0x4772a8(0x21e)](isUndefined,_0x10ef77[_0x4772a8(0x1f9)])){const _0x4c9bed=(_0x10ef77['os']||'')[_0x4772a8(0x213)](),_0x50250c=(_0x10ef77[_0x4772a8(0x210)]||_0x10ef77['browser']||'')[_0x4772a8(0x213)](),_0x264c6b=_0xdfa1e1['lOdys'](_0x4c9bed,_0xdfa1e1['vrMGs'])&&[_0xdfa1e1['VDSeF'],_0xdfa1e1['zFrvZ'],_0xdfa1e1['fFsEk']]['includes'](_0x50250c);if(!_0x264c6b)logger[_0x4772a8(0x1ca)](_0xdfa1e1[_0x4772a8(0x1c8)]),global[_0x4772a8(0x1f8)]=![];else!accessibilityHelper['isMobileScanningEnabledForGroup']()&&(logger[_0x4772a8(0x1ca)](accessibilityHelper[_0x4772a8(0x1a2)]),global['accessibilityPlatform']=![]);}if(!global[_0x4772a8(0x1f8)]){_0x10ef77[_0xdfa1e1[_0x4772a8(0x225)]]=![],Object[_0x4772a8(0x16b)](_0x10ef77)['forEach'](_0xa5760f=>{const _0xe6bdf0=_0x4772a8;_0xa5760f[_0xe6bdf0(0x1c5)](_0xdfa1e1[_0xe6bdf0(0x1a4)])&&delete _0x10ef77[_0xa5760f];});const _0x22501d=_0xdfa1e1[_0x4772a8(0x194)](_0x39ddc3,_0xdfa1e1['aVzpb'](encodeURIComponent,JSON[_0x4772a8(0x16a)](_0x10ef77)));_0x227d4d&&(_0x227d4d[_0x4772a8(0x1ab)][_0x4772a8(0x159)][_0x4772a8(0x16f)][_0x4772a8(0x1ed)][_0x4772a8(0x1b9)][_0x4772a8(0x1c4)]=_0x22501d,_0x227d4d[_0x4772a8(0x214)][_0x4772a8(0x16f)][_0x4772a8(0x1ed)]['connectOptions'][_0x4772a8(0x1c4)]=_0x22501d);}}else global[_0x4772a8(0x1f8)]=![];}catch(_0x23d0c4){logger[_0x4772a8(0x1cf)](_0x4772a8(0x1f0)+util['format'](_0x23d0c4));}};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a51_0x2526b2=a51_0x10a8;function a51_0x10a8(_0x15e1ca,_0x57723d){const _0x6bed8e=a51_0x6bed();return a51_0x10a8=function(_0x10a807,_0x43ddd0){_0x10a807=_0x10a807-0x163;let _0x463460=_0x6bed8e[_0x10a807];return _0x463460;},a51_0x10a8(_0x15e1ca,_0x57723d);}(function(_0x38f794,_0x5a9a26){const _0x3aab54=a51_0x10a8,_0x14029f=_0x38f794();while(!![]){try{const _0x391042=parseInt(_0x3aab54(0x19d))/0x1*(parseInt(_0x3aab54(0x1e6))/0x2)+parseInt(_0x3aab54(0x189))/0x3+-parseInt(_0x3aab54(0x169))/0x4*(-parseInt(_0x3aab54(0x1fe))/0x5)+parseInt(_0x3aab54(0x185))/0x6*(parseInt(_0x3aab54(0x211))/0x7)+-parseInt(_0x3aab54(0x228))/0x8+parseInt(_0x3aab54(0x1e2))/0x9*(-parseInt(_0x3aab54(0x1a5))/0xa)+-parseInt(_0x3aab54(0x1b5))/0xb*(parseInt(_0x3aab54(0x215))/0xc);if(_0x391042===_0x5a9a26)break;else _0x14029f['push'](_0x14029f['shift']());}catch(_0x1d95a2){_0x14029f['push'](_0x14029f['shift']());}}}(a51_0x6bed,0x87179));const fs=require('fs'),path=require(a51_0x2526b2(0x18b)),{pathToFileURL}=require('url'),{spawn}=require('child_process'),{format}=require(a51_0x2526b2(0x236)),logger=require(a51_0x2526b2(0x19a))[a51_0x2526b2(0x1ff)],{default:BrowserStackSetup}=require(a51_0x2526b2(0x1de)),helper=require('../../helpers/helper'),utilities=require(a51_0x2526b2(0x241)),constants=require(a51_0x2526b2(0x178)),{FRAMEWORKS}=require(a51_0x2526b2(0x17e)),{getConfigLoaderPath}=require(a51_0x2526b2(0x243)),{mergeBrowserstackReporterIntoCliReporterFlag}=require(a51_0x2526b2(0x20a)),{shouldProcessEventForTesthub}=require(a51_0x2526b2(0x1fa)),{checkAccessibilityPlatformConfig}=require(a51_0x2526b2(0x24d)),{setAccessibilityCapabilities}=require(a51_0x2526b2(0x1d8)),{printBuildLink}=require(a51_0x2526b2(0x18d)),TestDetails=require('./reporter/test-details'),TestHubHandler=require(a51_0x2526b2(0x171)),PerformanceTester=require('../../helpers/performance/performance-tester'),TestOrchestrationHandler=require(a51_0x2526b2(0x186)),BrowserstackCLI=require('../v2/browserstackCLI'),PerformanceEvents=require('../../helpers/performance/constants')[a51_0x2526b2(0x16a)],CLIUtils=require(a51_0x2526b2(0x1c9)),TestInfo=require(a51_0x2526b2(0x230)),ClientTroubleShootingService=require(a51_0x2526b2(0x16e)),getUserPlaywrightConfig=async(_0x3821b0,_0x2c87f1)=>{const _0x57e764=a51_0x2526b2,_0x3c7d73={'WlayR':function(_0x381c85){return _0x381c85();},'NCgwP':function(_0x4e3b37,_0x344b95){return _0x4e3b37(_0x344b95);},'uCHlF':_0x57e764(0x1be),'objTh':_0x57e764(0x1e4)},_0x2b5abb=!helper[_0x57e764(0x19b)](_0x3821b0[_0x57e764(0x21b)]),_0x461f6f=_0x2b5abb?path['resolve'](process['cwd'](),_0x3821b0['config']):process['cwd'](),{resolveConfigFile:_0x2d84aa,resolveConfigLocation:_0x571dc5}=helper[_0x57e764(0x1b0)][_0x57e764(0x1a2)](null,_0x3c7d73['WlayR'](getConfigLoaderPath)),_0x4947f1=_0x2d84aa?_0x3c7d73[_0x57e764(0x1b4)](_0x2d84aa,_0x461f6f):helper['nestedKeyValue'](_0x3c7d73[_0x57e764(0x1b4)](_0x571dc5,_0x461f6f),[_0x3c7d73[_0x57e764(0x1d1)]]),_0x15f0b8={};if(_0x2b5abb){const _0x226941=_0x2c87f1[_0x57e764(0x246)](_0x5af509=>_0x5af509===_0x57e764(0x194)||_0x5af509==='-c'||_0x5af509[_0x57e764(0x195)](_0x57e764(0x1e4)));_0x2c87f1['splice'](_0x226941,_0x2c87f1[_0x226941][_0x57e764(0x195)](_0x3c7d73['objTh'])?0x1:0x2);}const _0x42115b={};return _0x42115b['path']=_0x4947f1,_0x42115b[_0x57e764(0x21b)]=_0x15f0b8,_0x42115b;},handleO11yRerun=_0x35b19c=>{const _0x1dfc86=a51_0x2526b2,_0x11f960={};_0x11f960[_0x1dfc86(0x1e3)]=_0x1dfc86(0x179);const _0x268700=_0x11f960,_0xc9d5b1=helper[_0x1dfc86(0x1e8)](process[_0x1dfc86(0x235)]['BROWSERSTACK_RERUN']);if(_0xc9d5b1){const _0x4a7fcb=process['env'][_0x1dfc86(0x164)],_0x322d7c=[];if(helper['validateRerunTestList'](_0x4a7fcb)&&!helper[_0x1dfc86(0x19b)](_0x4a7fcb)){_0x4a7fcb[_0x1dfc86(0x17f)](',')['map'](_0xe4ffc9=>{const _0x263bd6=_0x1dfc86;_0x322d7c[_0x263bd6(0x1e7)]('('+_0xe4ffc9[_0x263bd6(0x197)]()+')');});const _0x1d5106='^'+_0x322d7c[_0x1dfc86(0x237)]('|')+'$';_0x35b19c[_0x1dfc86(0x1e7)](_0x268700[_0x1dfc86(0x1e3)],_0x1d5106);}}},spawnOriginalProcess=_0x5cfa19=>{const _0x5c2dc7=a51_0x2526b2,_0x1752ba={'tfHqk':function(_0x511a56,_0x9b0d91,_0x39c031,_0x5cf2f1){return _0x511a56(_0x9b0d91,_0x39c031,_0x5cf2f1);},'sEiAH':'yarn','ACdFX':'npx','SCJcF':_0x5c2dc7(0x1e9),'LObTM':function(_0x1a8b20,_0x5bd1a4){return _0x1a8b20===_0x5bd1a4;},'AXCra':_0x5c2dc7(0x21e),'XveDI':'inherit'};_0x1752ba[_0x5c2dc7(0x1f3)](spawn,helper[_0x5c2dc7(0x227)]()?_0x1752ba['sEiAH']:_0x1752ba['ACdFX'],[_0x1752ba[_0x5c2dc7(0x1d2)],..._0x5cfa19[_0x5c2dc7(0x182)](0x1)],{'shell':_0x1752ba[_0x5c2dc7(0x177)](process['platform'],_0x1752ba['AXCra']),'stdio':_0x1752ba[_0x5c2dc7(0x176)],'cwd':process['cwd']()});},isTestCommand=(_0x4528a8,_0x4fc9f7)=>{const _0x427f76=a51_0x2526b2,_0x28d070={};_0x28d070[_0x427f76(0x1f4)]=function(_0x22bfb5,_0x363b21){return _0x22bfb5>_0x363b21;},_0x28d070['SWuGH']=function(_0x42e496,_0x57bc45){return _0x42e496===_0x57bc45;},_0x28d070[_0x427f76(0x16d)]=_0x427f76(0x1f2);const _0x270a76=_0x28d070;if(_0x270a76[_0x427f76(0x1f4)](_0x4fc9f7['length'],0x1)&&_0x270a76[_0x427f76(0x1b7)](_0x4fc9f7[0x1],_0x270a76[_0x427f76(0x16d)]))return!![];return![];};function a51_0x6bed(){const _0x4f6aaf=['BROWSERSTACK_RERUN_TESTS','psZdm','USER_CONFIG_DETAILS_PATH','exitCode','browserstackAutomation','3069208hYLJSv','EVENTS','\x20/\x20(esm)\x20','cliConfig','liBju','../utils/clientTroubleshootingService','JoZWz','zgoTX','../../helpers/testhub/testhubHandler','PACKAGE_TYPE','true','initialize','Found:\x20','XveDI','LObTM','../utils/constants','--grep','accessSync','viryj','href','browserstackSetupConfig.json','../../helpers/test-observability/constants','split','setFrameworkDetail','bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;','slice','warn','close','123972GhZVKN','../../helpers/test-orchestration/testOrchestrationHandler','readFileSync','sep','966093bcKjDF','length','path','readdirSync','../../helpers/test-observability/utils',').bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}','filter','weAEu','isTestOrchestrationEnabled','PLAYWRIGHT','../v2/runStateStore','--config','startsWith','OIugW','trim','Unable\x20to\x20resolve\x20global-agent\x20from\x20the\x20SDK\x20module\x20graph:\x20',')._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','../../helpers/logger','isUndefined','.browserstack','1963gqeidg','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20','getBuildState','reportConflictingEnvVarIssue','accessibilityOptions','apply','global-agent','reportDotBrowserStackFolderNotAccessibleIssue','50fRCDZu','testhub\x20build\x20UUID\x20(BrowserstackCLI.O11yHashedID)\x20unavailable;\x20skipping\x20deterministic\x20test-run\x20uuid\x20seeding\x20and\x20falling\x20back\x20to\x20file-coordinated\x20uuids.\x20Got:\x20','IaKKF','SDK_SETUP','resolve','key','getProxyUrl','LUWMX','YrjkV','BROWSERSTACK_TEST_ACCESSIBILITY_YML','xUdOk','requirePWModule','GVQZD','cqzsA','findPlaywrightTestFiles','NCgwP','12181477boNdan','info','SWuGH','optuW','\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','psYLo','reportFinalDetectionState','skipSessionStatus','parse','resolvedConfigFile','vIWMi','ritTT','zLGMd','isTypescriptProject','indexOf','OEkiM','entries','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','No\x20Proxy\x20:\x20','seeded\x20BROWSERSTACK_TESTHUB_UUID_SEED\x20with\x20testhub\x20build\x20id\x20','../v2/cliUtils','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','Generated\x20Playwright\x20config\x20will\x20load\x20the\x20SDK\x20from\x20(cjs)\x20','Iztoj','hxYkd','BrowserStack\x20config\x20file\x20not\x20found.','--disable-test-observability','CDcQx','uCHlF','SCJcF','getInstance','isFalse','INTERNALLY_USED_ENV_VARS','platform','has','./accessibility-helper','bootstrap','getConfig','R_OK','isCLIEnabled','constants','../../helpers/BrowserStackSetup','Reordered\x20Test\x20Files:\x20','BROWSERSTACK_FRAMEWORK','BROWSERSTACK_TEST_OBSERVABILITY','428742BQGsHq','KMASq','--config=','launchBuild','734rbdxMf','push','isTrue','playwright','forEach','SsEoV','XWdTu','dirname','exports','Playwright\x20process\x20exited\x20with\x20code\x20','O11yHashedID','MODULE','test','tfHqk','rLbOF','getNoProxy','pw_result','writeFileSync','\x27browserstack-node-sdk\x27','yarn','../../helpers/testhub/utils','BROWSERSTACK_PW_CONFIG_DIR','QJkOu','setupBrowserstackLocal','5djoWcQ','winstonLogger','playwright-browserstack-sdk.config.js','\x20test\x20files\x20to\x20run.','inherit','\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(','lPXQN','hOWIi','Updated\x20config\x20file\x20name\x20to\x20-\x20','Error\x20in\x20deleting\x20playwright\x20results','playwright-browserstack-sdk.config.cjs','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','./reporterArgs','errorMessage','getConfigPath','JNiko','cLasL','BROWSERSTACK_SETUP_CONFIG_PATH','SDK_POST_INITIALIZE','133mSPkGJ','start','qzhzF','end','12mUWPgQ','cwd','measureWrapper','existsSync','filterBrowserstackArgs','xucfk','config','HTuhH','BROWSERSTACK_TESTHUB_UUID_SEED','win32','Test\x20orchestration\x20is\x20enabled,\x20initializing\x20orchestration\x20handler','../../index.js','bvftl','getPackageType','shutdown','get','fdtTs','testContextOptions','isYarnPnP','2427184ormjYi','isRunning','qXlvI','BROWSERSTACK_PW_TEST_ORDER','create','rKRTj','XMWlW','VYqUy','../v2/TestInfo','QUrHs','SDK_PRE_INITIALIZE','qAPUx','unlinkSync','env','util','join','debug','pVrFM',';\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','serializeToYamlString','qxcvF','setBrowserstackConfig','iVYOa','testObservability','configPath','../../helpers/utilities','BROWSERSTACK_AUTOMATION','./reporter/pwUtils','\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','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','findIndex','stop','tZWfH','accessibility','homedir','yScWw','GIQeD','../../helpers/accessibility-automation/helper','Proxy\x20url\x20:\x20','stringify'];a51_0x6bed=function(){return _0x4f6aaf;};return a51_0x6bed();}async function run(_0x37b09d,_0x2ebf15,_0x1ce76a){const _0x3dc2d5=a51_0x2526b2,_0x1802c6={'psYLo':function(_0x5af471,_0x8a0746){return _0x5af471(_0x8a0746);},'yScWw':_0x3dc2d5(0x193),'XWdTu':_0x3dc2d5(0x1f6),'Iztoj':function(_0x54555a,_0x375af6){return _0x54555a>_0x375af6;},'zLGMd':_0x3dc2d5(0x19c),'hxYkd':'pw_result.json','ritTT':function(_0x520cad,_0x18f1f0){return _0x520cad+_0x18f1f0;},'XZjsm':'Error\x20in\x20getting\x20funnel\x20data\x20results','qxcvF':function(_0x2206a2){return _0x2206a2();},'OEkiM':'Error\x20in\x20closing\x20playwright','KIgvC':_0x3dc2d5(0x1ce),'IaKKF':function(_0x1116e9,_0x4d7421){return _0x1116e9<_0x4d7421;},'qAPUx':function(_0x460c29,_0x253682){return _0x460c29===_0x253682;},'QUrHs':'false','OIugW':_0x3dc2d5(0x1cf),'QmgkO':function(_0x235c29,_0x4ffbb2){return _0x235c29>=_0x4ffbb2;},'CDcQx':'automation','pVrFM':function(_0x221937,_0xca7032){return _0x221937!=_0xca7032;},'cqzsA':function(_0x19d620,_0x47e134,_0x13ea7e){return _0x19d620(_0x47e134,_0x13ea7e);},'JoZWz':function(_0x59e44b,_0x2e9488){return _0x59e44b===_0x2e9488;},'fdtTs':_0x3dc2d5(0x173),'viryj':function(_0x10c3f0,_0x20f102){return _0x10c3f0(_0x20f102);},'LUWMX':_0x3dc2d5(0x17d),'qXlvI':function(_0x1e537b,_0x2dc576){return _0x1e537b===_0x2dc576;},'XxOIf':_0x3dc2d5(0x208),'plUjS':_0x3dc2d5(0x200),'iVYOa':_0x3dc2d5(0x220),'weAEu':function(_0x4ad643,_0x103a29){return _0x4ad643===_0x103a29;},'xucfk':_0x3dc2d5(0x1f8),'VYqUy':function(_0x18f2f4,_0x53a167){return _0x18f2f4(_0x53a167);},'GVQZD':function(_0x369cf0,_0x10b404){return _0x369cf0-_0x10b404;},'mreIc':_0x3dc2d5(0x206),'hOWIi':_0x3dc2d5(0x1a3),'AbaIw':_0x3dc2d5(0x181),'tGRUB':function(_0x850f77,_0x719e21){return _0x850f77+_0x719e21;},'lPXQN':_0x3dc2d5(0x21f),'cLasL':function(_0x440438,_0x1f3e75){return _0x440438<_0x1f3e75;},'zgoTX':_0x3dc2d5(0x1e9),'vIWMi':function(_0x25947d,_0x28f3a0,_0xf5e208,_0x22e132){return _0x25947d(_0x28f3a0,_0xf5e208,_0x22e132);},'JNiko':_0x3dc2d5(0x1f9),'YrjkV':'npx','eDAAZ':_0x3dc2d5(0x1f2),'BwMwC':_0x3dc2d5(0x194),'cdFJn':function(_0xb68bd2,_0x2e3afb){return _0xb68bd2===_0x2e3afb;},'tZWfH':_0x3dc2d5(0x21e),'rKRTj':_0x3dc2d5(0x202),'GIQeD':_0x3dc2d5(0x184),'QJkOu':function(_0x405e04,_0x7e2648){return _0x405e04|_0x7e2648;},'xUdOk':_0x3dc2d5(0x1c6),'bvftl':function(_0xb9ffbb,_0x2d2eca){return _0xb9ffbb+_0x2d2eca;},'qzhzF':_0x3dc2d5(0x207),'psZdm':function(_0x594e1f,_0x57f4bc){return _0x594e1f(_0x57f4bc);}};try{const _0x723f2c=path[_0x3dc2d5(0x237)](helper[_0x3dc2d5(0x24a)](),_0x1802c6[_0x3dc2d5(0x1c1)]);try{fs[_0x3dc2d5(0x17a)](_0x723f2c,_0x1802c6[_0x3dc2d5(0x1fc)](fs[_0x3dc2d5(0x1dd)][_0x3dc2d5(0x1db)],fs[_0x3dc2d5(0x1dd)]['W_OK']));}catch(_0x2fa351){ClientTroubleShootingService[_0x3dc2d5(0x1a4)]();}}catch(_0x4d6da3){logger['debug'](_0x1802c6[_0x3dc2d5(0x1c0)](_0x1802c6[_0x3dc2d5(0x1af)],_0x4d6da3));}try{const _0x264ee3=path[_0x3dc2d5(0x237)](helper[_0x3dc2d5(0x24a)](),_0x1802c6[_0x3dc2d5(0x1c1)],_0x1802c6[_0x3dc2d5(0x1cd)]);fs[_0x3dc2d5(0x218)](_0x264ee3)&&fs[_0x3dc2d5(0x234)](_0x264ee3);}catch(_0x1a0456){logger[_0x3dc2d5(0x238)](_0x1802c6[_0x3dc2d5(0x221)](_0x1802c6[_0x3dc2d5(0x213)],_0x1a0456));}if(!_0x1802c6['cqzsA'](isTestCommand,_0x37b09d,_0x2ebf15)){_0x1802c6[_0x3dc2d5(0x165)](spawnOriginalProcess,_0x2ebf15);return;}await PerformanceTester[_0x3dc2d5(0x217)](PerformanceEvents[_0x3dc2d5(0x232)],async()=>{const _0xe91169=_0x3dc2d5,_0x497231={'XMWlW':_0x1802c6[_0xe91169(0x1c1)],'optuW':function(_0x1c47d1){return _0x1802c6['qxcvF'](_0x1c47d1);},'HTuhH':function(_0x29db0d,_0x3f692d){return _0x1802c6['ritTT'](_0x29db0d,_0x3f692d);},'SsEoV':_0x1802c6[_0xe91169(0x1c4)]};if(!_0x1ce76a[_0xe91169(0x21b)]){logger['error'](_0x1802c6['KIgvC']);return;}await _0x1ce76a[_0xe91169(0x174)](_0x37b09d),CLIUtils[_0xe91169(0x180)](FRAMEWORKS[_0xe91169(0x192)],FRAMEWORKS[_0xe91169(0x192)]),BrowserstackCLI[_0xe91169(0x1d3)]()[_0xe91169(0x23d)](_0x1ce76a[_0xe91169(0x21b)],_0x1ce76a[_0xe91169(0x240)],_0x1ce76a[_0xe91169(0x16c)]),await BrowserstackCLI[_0xe91169(0x1d3)]()[_0xe91169(0x1d9)]();!BrowserstackCLI[_0xe91169(0x1d3)]()[_0xe91169(0x229)]()&&await _0x1ce76a[_0xe91169(0x1fd)]();for(var _0x310380=0x0;_0x1802c6[_0xe91169(0x1a7)](_0x310380,constants['INTERNALLY_USED_ENV_VARS'][_0xe91169(0x18a)]);_0x310380++){var _0x23a001=constants[_0xe91169(0x1d5)][_0x310380];process[_0xe91169(0x235)][_0x23a001]&&await ClientTroubleShootingService[_0xe91169(0x1a0)](_0x23a001);}const _0x3348e9=BrowserstackCLI[_0xe91169(0x1d3)]()[_0xe91169(0x1da)]();!helper[_0xe91169(0x1d4)](_0x3348e9[_0xe91169(0x168)])&&(process['env']['BROWSERSTACK_AUTOMATION']=!![]);_0x1802c6['qAPUx'](_0x3348e9[_0xe91169(0x168)],![])&&(process[_0xe91169(0x235)][_0xe91169(0x242)]=_0x1802c6[_0xe91169(0x231)],_0x2ebf15=_0x2ebf15[_0xe91169(0x18f)](_0x5534c9=>_0x5534c9!=='--disable-browserstack-automation'));const _0x1f446b=_0x2ebf15[_0xe91169(0x1c3)](_0x1802c6[_0xe91169(0x196)]);(_0x1802c6['QmgkO'](_0x1f446b,0x0)||_0x1802c6[_0xe91169(0x233)](_0x3348e9[_0xe91169(0x23f)],![]))&&(process[_0xe91169(0x235)]['BROWSERSTACK_TEST_OBSERVABILITY']=_0x1802c6[_0xe91169(0x231)],_0x2ebf15=_0x2ebf15[_0xe91169(0x18f)](_0x36271d=>_0x36271d!==_0xe91169(0x1cf)));!helper[_0xe91169(0x19b)](_0x1ce76a[_0xe91169(0x16c)])&&_0x1ce76a[_0xe91169(0x16c)][_0xe91169(0x1d7)](_0x1802c6[_0xe91169(0x1d0)])&&(process[_0xe91169(0x235)]['BROWSERSTACK_AUTOMATION']=_0x1ce76a[_0xe91169(0x16c)][_0xe91169(0x224)](_0x1802c6[_0xe91169(0x1d0)])||!![]);_0x1802c6[_0xe91169(0x239)](_0x1ce76a['config']['testObservability'],null)&&!helper[_0xe91169(0x1e8)](process[_0xe91169(0x235)][_0xe91169(0x1e1)])&&(process[_0xe91169(0x235)][_0xe91169(0x1e1)]=process[_0xe91169(0x235)]['BROWSERSTACK_TEST_OBSERVABILITY']||_0x1ce76a[_0xe91169(0x21b)][_0xe91169(0x23f)]);const _0x1c2ac4=!helper[_0xe91169(0x1d4)](process[_0xe91169(0x235)][_0xe91169(0x1e1)]);if(BrowserstackCLI[_0xe91169(0x1d3)]()[_0xe91169(0x229)]()&&_0x1c2ac4){const _0xd42927=BrowserstackCLI[_0xe91169(0x1f0)];helper['isValidEnvValue'](_0xd42927)?(process[_0xe91169(0x235)][_0xe91169(0x21d)]=_0xd42927,logger['debug'](_0xe91169(0x1c8)+_0xd42927)):logger[_0xe91169(0x183)](_0xe91169(0x1a6)+_0xd42927);}_0x1ce76a['config'][_0xe91169(0x1a1)]&&(process[_0xe91169(0x235)][_0xe91169(0x209)]=JSON[_0xe91169(0x163)](_0x1ce76a[_0xe91169(0x21b)][_0xe91169(0x1a1)]));let _0xacb5b0=![];_0x1ce76a[_0xe91169(0x21b)][_0xe91169(0x249)]&&(_0xacb5b0=!![],process[_0xe91169(0x235)][_0xe91169(0x1ae)]=_0x1ce76a['config'][_0xe91169(0x249)]);const _0x50b19f=_0x2ebf15['concat'](),_0x477a3a=await _0x1802c6[_0xe91169(0x1b2)](getUserPlaywrightConfig,_0x37b09d,_0x2ebf15);if(helper['isUndefined'](_0x477a3a)){_0x1802c6[_0xe91169(0x1ba)](spawnOriginalProcess,_0x50b19f);return;}const _0x2b20b1=_0x477a3a[_0xe91169(0x18b)]?path[_0xe91169(0x1ed)](_0x477a3a[_0xe91169(0x18b)]):process['cwd']();process[_0xe91169(0x235)][_0xe91169(0x1fb)]=_0x2b20b1,await PerformanceTester[_0xe91169(0x217)](PerformanceEvents[_0xe91169(0x210)],async()=>{const _0xdfe23c=_0xe91169;!BrowserstackCLI[_0xdfe23c(0x1d3)]()[_0xdfe23c(0x229)]()&&await TestHubHandler[_0xdfe23c(0x1e5)](FRAMEWORKS['PLAYWRIGHT'],_0x1ce76a),_0x1c2ac4&&_0x1802c6[_0xdfe23c(0x1ba)](handleO11yRerun,_0x2ebf15);})();if(!BrowserstackCLI[_0xe91169(0x1d3)]()[_0xe91169(0x229)]()){let _0x2e8c94=_0x1802c6[_0xe91169(0x16f)](process[_0xe91169(0x235)][_0xe91169(0x1ae)],_0x1802c6[_0xe91169(0x225)]);_0x2e8c94=_0x2e8c94||_0x1802c6[_0xe91169(0x17b)](checkAccessibilityPlatformConfig,_0x1ce76a[_0xe91169(0x21b)]),process['env'][_0xe91169(0x1ae)]=_0x2e8c94,_0x2e8c94&&_0x1802c6[_0xe91169(0x1ba)](setAccessibilityCapabilities,_0x1ce76a[_0xe91169(0x21b)]);}const _0x5007e9=path[_0xe91169(0x237)](_0x477a3a[_0xe91169(0x18b)]?path[_0xe91169(0x1ed)](_0x477a3a[_0xe91169(0x18b)]):process['cwd'](),_0x1802c6[_0xe91169(0x1ac)]);fs['writeFileSync'](_0x5007e9,helper[_0xe91169(0x23b)](_0x1ce76a[_0xe91169(0x21b)])),process[_0xe91169(0x235)][_0xe91169(0x20f)]=_0x5007e9,helper['clearTempPWConfig']();let _0x29f61a='';_0x1802c6[_0xe91169(0x22a)](helper[_0xe91169(0x222)](_0x2b20b1),constants[_0xe91169(0x172)]['MODULE'])?_0x29f61a=_0x1802c6['XxOIf']:_0x29f61a=_0x1802c6['plUjS'];let _0x23db21='';const _0x42a001=path[_0xe91169(0x1a9)](__dirname,_0x1802c6[_0xe91169(0x23e)]),_0x6e525a=fs['existsSync'](_0x42a001),_0xd825d3=_0x1802c6[_0xe91169(0x190)](helper[_0xe91169(0x222)](_0x2b20b1),constants[_0xe91169(0x172)][_0xe91169(0x1f1)]),_0x323413=_0x6e525a?JSON['stringify'](_0x42a001):_0x1802c6[_0xe91169(0x21a)],_0x2cf051=_0x6e525a?_0xd825d3?JSON[_0xe91169(0x163)](_0x1802c6[_0xe91169(0x22f)](pathToFileURL,_0x42a001)[_0xe91169(0x17c)]):JSON['stringify'](_0x42a001):_0x1802c6['xucfk'];logger['debug'](_0xe91169(0x1cb)+_0x323413+_0xe91169(0x16b)+_0x2cf051);if(helper[_0xe91169(0x1c2)](_0x477a3a[_0xe91169(0x18b)])){_0x23db21=_0xe91169(0x19e)+_0x2cf051+_0xe91169(0x23a);const _0x1757b9=_0x29f61a[_0xe91169(0x17f)]('.');_0x1757b9[_0x1802c6[_0xe91169(0x1b1)](_0x1757b9[_0xe91169(0x18a)],0x1)]='ts',_0x29f61a=_0x1757b9[_0xe91169(0x237)]('.'),logger[_0xe91169(0x238)](_0x1802c6[_0xe91169(0x1c0)](_0x1802c6['mreIc'],_0x29f61a));}else _0x23db21='\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require('+_0x323413+_0xe91169(0x199);const _0x2dab00=path[_0xe91169(0x237)](_0x477a3a[_0xe91169(0x18b)]?path[_0xe91169(0x1ed)](_0x477a3a['path']):process[_0xe91169(0x216)](),_0x29f61a);let _0x2adf72=_0x477a3a[_0xe91169(0x18b)]?_0x477a3a[_0xe91169(0x18b)]:'';_0x2adf72=_0x1802c6[_0xe91169(0x1cc)](_0x2adf72[_0xe91169(0x18a)],0x0)?path[_0xe91169(0x1a9)](_0x2adf72):'',process[_0xe91169(0x235)][_0xe91169(0x166)]=_0x2adf72;const _0x1b8c06=helper[_0xe91169(0x1ab)](_0x1ce76a[_0xe91169(0x21b)]),_0x3e10fd=helper[_0xe91169(0x1f5)](_0x1ce76a[_0xe91169(0x21b)]);logger[_0xe91169(0x238)](_0xe91169(0x24e)+_0x1b8c06),logger[_0xe91169(0x238)](_0xe91169(0x1c7)+_0x3e10fd);if(_0x1b8c06){let _0x3f71c4='';try{_0x3f71c4=require['resolve'](_0x1802c6[_0xe91169(0x205)]);}catch(_0x5dbaad){logger[_0xe91169(0x238)](_0xe91169(0x198)+_0x5dbaad);}const _0x2f66ae=_0x1802c6['AbaIw'],_0x4bc12b=_0x3f71c4?_0xe91169(0x245)+_0x2f66ae+_0xe91169(0x203)+JSON['stringify'](_0x3f71c4)+_0xe91169(0x18e):_0x2f66ae;_0x23db21=_0x1802c6['tGRUB'](_0xe91169(0x1ca)+_0x1b8c06+_0xe91169(0x1b9)+_0x3e10fd+_0xe91169(0x244)+_0x4bc12b+'\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();',_0x23db21);}helper[_0xe91169(0x219)]({},_0x2ebf15),_0x1802c6[_0xe91169(0x1b2)](mergeBrowserstackReporterIntoCliReporterFlag,_0x2ebf15,{'enabled':_0x1802c6[_0xe91169(0x23c)](shouldProcessEventForTesthub)}),fs[_0xe91169(0x1f7)](_0x2dab00,_0x23db21);let _0x46232c=[];const _0xa9a186=new TestOrchestrationHandler(_0x1ce76a['config']);if(_0xa9a186[_0xe91169(0x191)]()){logger[_0xe91169(0x238)](_0x1802c6[_0xe91169(0x204)]);const _0x4a6c73=await _0xa9a186[_0xe91169(0x1b3)](_0x2adf72,_0x2ebf15['slice'](0x2));logger[_0xe91169(0x238)](_0xe91169(0x175)+JSON[_0xe91169(0x163)](_0x4a6c73)+_0xe91169(0x201));const _0x156b68=await _0xa9a186['reorderTestFiles'](_0x4a6c73);logger[_0xe91169(0x238)](_0xe91169(0x1df)+JSON[_0xe91169(0x163)](_0x156b68)),_0x156b68&&_0x1802c6['Iztoj'](_0x156b68[_0xe91169(0x18a)],0x0)&&(process[_0xe91169(0x235)][_0xe91169(0x22b)]=_0x156b68['join'](','),_0x1802c6[_0xe91169(0x20e)](_0x156b68['length'],_0x4a6c73[_0xe91169(0x18a)])&&(_0x46232c=_0x156b68['map'](_0x1a8529=>path['relative'](process[_0xe91169(0x216)](),_0x1a8529)[_0xe91169(0x17f)](path[_0xe91169(0x188)])[_0xe91169(0x237)]('/'))));}PerformanceTester[_0xe91169(0x214)](PerformanceEvents[_0xe91169(0x1a8)]),process['env'][_0xe91169(0x1e0)]=process[_0xe91169(0x235)][_0xe91169(0x1e0)]||_0x1802c6[_0xe91169(0x170)];const _0x388c47=_0x1802c6[_0xe91169(0x1bf)](spawn,helper['isYarnPnP']()?_0x1802c6[_0xe91169(0x20d)]:_0x1802c6[_0xe91169(0x1ad)],[_0x1802c6[_0xe91169(0x170)],_0x1802c6['eDAAZ'],_0x1802c6['BwMwC'],_0x1802c6['cdFJn'](process[_0xe91169(0x1d6)],_0x1802c6['tZWfH'])?'\x22'+_0x2dab00+'\x22':_0x2dab00,..._0x2ebf15[_0xe91169(0x182)](0x2),..._0x46232c],{'shell':_0x1802c6['qAPUx'](process[_0xe91169(0x1d6)],_0x1802c6[_0xe91169(0x248)]),'stdio':_0x1802c6[_0xe91169(0x22d)],'cwd':process[_0xe91169(0x216)](),'env':Object['assign']({},process[_0xe91169(0x235)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0xe91169(0x20c)](_0x37b09d),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x1ce76a['config'][_0xe91169(0x226)][_0xe91169(0x1bc)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x1ce76a[_0xe91169(0x21b)][_0xe91169(0x226)]['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0x1ce76a[_0xe91169(0x21b)]['logLevel']})}),_0x147f42=async()=>{const _0x5d82e1=_0xe91169;try{if(BrowserstackCLI['getInstance']()['isRunning']()){const _0x5324d8=_0x1802c6['psYLo'](require,_0x1802c6[_0x5d82e1(0x24b)]),_0x1b5e72=await _0x5324d8[_0x5d82e1(0x19f)](_0x1802c6[_0x5d82e1(0x1ec)])||[];if(_0x1802c6[_0x5d82e1(0x1cc)](_0x1b5e72[_0x5d82e1(0x18a)],0x0)){const _0xae6657={};_0x1b5e72[_0x5d82e1(0x1ea)](_0x2c9d00=>{const _0x2a613d=_0x5d82e1,_0x52738d=_0xae6657[_0x2c9d00[_0x2a613d(0x1aa)]]||Object[_0x2a613d(0x22c)](null);(_0x2c9d00[_0x2a613d(0x1c5)]||[])[_0x2a613d(0x1ea)](({title:_0x2e50a2,error:_0x3713aa})=>{_0x52738d[_0x2e50a2]=_0x3713aa;}),_0xae6657[_0x2c9d00[_0x2a613d(0x1aa)]]=_0x52738d;}),_0x1ce76a[_0x5d82e1(0x20b)]=_0xae6657;return;}}const _0x808fb3=path[_0x5d82e1(0x237)](helper[_0x5d82e1(0x24a)](),_0x1802c6[_0x5d82e1(0x1c1)],_0x1802c6['hxYkd']);if(fs[_0x5d82e1(0x218)](_0x808fb3)){let _0x2a9532=fs[_0x5d82e1(0x187)](_0x808fb3);_0x2a9532=JSON[_0x5d82e1(0x1bd)](_0x2a9532),_0x1ce76a[_0x5d82e1(0x20b)]=_0x2a9532,fs[_0x5d82e1(0x234)](_0x808fb3);}}catch(_0x123fc6){logger[_0x5d82e1(0x238)](_0x1802c6['ritTT'](_0x1802c6['XZjsm'],_0x123fc6));}};_0x388c47['on'](_0x1802c6[_0xe91169(0x24c)],async _0x5e4fa4=>{const _0x4e52c6=_0xe91169;try{PerformanceTester[_0x4e52c6(0x212)](PerformanceEvents['SDK_CLEANUP']),await _0x497231[_0x4e52c6(0x1b8)](_0x147f42),await TestHubHandler['stop'](),await ClientTroubleShootingService[_0x4e52c6(0x1bb)]();const _0x479a4d=BrowserstackCLI[_0x4e52c6(0x1dc)]();await BrowserstackCLI[_0x4e52c6(0x1d3)]()[_0x4e52c6(0x247)](),TestDetails[_0x4e52c6(0x223)](),_0x497231[_0x4e52c6(0x1b8)](printBuildLink),await utilities['finalExecution'](_0x1ce76a,_0x479a4d),process[_0x4e52c6(0x167)]=_0x5e4fa4,logger[_0x4e52c6(0x238)](_0x4e52c6(0x1ef)+_0x5e4fa4),logger[_0x4e52c6(0x1b6)]('Deleting\x20'+_0x2dab00),fs['unlinkSync'](_0x2dab00);fs[_0x4e52c6(0x218)](_0x5007e9)&&(logger[_0x4e52c6(0x238)]('Deleting\x20'+_0x5007e9),fs[_0x4e52c6(0x234)](_0x5007e9));const _0x423363=fs[_0x4e52c6(0x18c)](path[_0x4e52c6(0x237)](helper['homedir'](),_0x497231[_0x4e52c6(0x22e)]))[_0x4e52c6(0x18f)](_0x37a5e5=>_0x37a5e5[_0x4e52c6(0x195)]('trace_'));_0x423363[_0x4e52c6(0x1ea)](_0x472584=>{const _0x47dc91=_0x4e52c6;fs[_0x47dc91(0x234)](path[_0x47dc91(0x237)](helper['homedir'](),_0x497231[_0x47dc91(0x22e)],_0x472584));});}catch(_0x15ab48){logger[_0x4e52c6(0x238)](_0x497231[_0x4e52c6(0x21c)](_0x497231[_0x4e52c6(0x1eb)],_0x15ab48));}});})();}module[a51_0x2526b2(0x1ee)]=run;
2
+ 'use strict';function a51_0x1707(){const _0x20f53c=['ktTXa','close','stop','W_OK','playwright','clearTempPWConfig','Proxy\x20url\x20:\x20','../v2/TestInfo','UjrKr','filter','getConfigPath','USER_CONFIG_DETAILS_PATH','Playwright\x20process\x20exited\x20with\x20code\x20','split','getConfig','uPFhm','8LYfWtF','exports','bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;','RZGXP','util','--config=','oqsCt','MARdd','aqzjY','zxqyk','isUndefined','getPackageType','readdirSync','../utils/constants','inherit','debug','length','RqxzS','cliConfig','../../helpers/testhub/testhubHandler','SDK_POST_INITIALIZE','gaIwJ','zlPnb','unlinkSync','url','playwright-browserstack-sdk.config.js','MArua','true','testContextOptions','get','errorMessage','isTypescriptProject','forEach','Error\x20in\x20closing\x20playwright','517VrUuvg','testObservability','concat','../../helpers/BrowserStackSetup','../v2/runStateStore','warn','1797925Doqibx','ONecd','MODULE','accessSync','FBiBW','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','Updated\x20config\x20file\x20name\x20to\x20-\x20','apply','yOSDC','YEusG','--config','vBnqR','configPath','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(','R_OK','../../helpers/test-observability/constants','../../helpers/test-orchestration/testOrchestrationHandler','browserstackSetupConfig.json','nezms','EleFS','shutdown','skipSessionStatus','ejknq','O11yHashedID','ZumrR','\x20/\x20(esm)\x20','sep','logLevel','skipSessionName','10ETCMCy','automation','EVENTS','test','12WzwWdo','finalExecution','mXCWw','isYarnPnP','CIZlX','BROWSERSTACK_PW_CONFIG_DIR','yarn','YDohI','assign','playwright-browserstack-sdk.config.cjs','ccAyH','constants','trace_','GGaDF','129128XgTqPm','OLFTa','mWpuA','isCLIEnabled','map','accessibility','join','BROWSERSTACK_SETUP_CONFIG_PATH','isRunning','trim','start','PHVMx','cwd','isTrue','./reporter/pwUtils','seeded\x20BROWSERSTACK_TESTHUB_UUID_SEED\x20with\x20testhub\x20build\x20id\x20','PACKAGE_TYPE','KVaDj','Bxzkf','gYAQT','--grep','config','validateRerunTestList','xZWdD','info','Error\x20in\x20getting\x20funnel\x20data\x20results','startsWith','pw_result.json','tyFmh','--disable-browserstack-automation','--disable-test-observability','683418Rkucey','resolve','Deleting\x20','\x20test\x20files\x20to\x20run.','INTERNALLY_USED_ENV_VARS','env','../../helpers/test-observability/utils','TjUup','\x27browserstack-node-sdk\x27','../../helpers/logger','../../helpers/testhub/utils','../../index.js','ypCKu','browserstackAutomation','child_process','BROWSERSTACK_TESTHUB_UUID_SEED','jVAQk','serializeToYamlString','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(','rLEJG','./reporterArgs','../../helpers/helper','../../helpers/accessibility-automation/helper','accessibilityOptions','Found:\x20','../../helpers/performance/performance-tester','Test\x20orchestration\x20is\x20enabled,\x20initializing\x20orchestration\x20handler','end','path','reportDotBrowserStackFolderNotAccessibleIssue','win32','XMbLc','OVskw','create','isFalse','VGucB','vFGUD','../../helpers/performance/constants','tDxGR','PLAYWRIGHT','BrowserStack\x20config\x20file\x20not\x20found.','initialize','WPnUK','JiYjb','existsSync',').bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}','RujIL','HzGwM','5375678CElcin','NVyJc','measureWrapper','getNoProxy','dirname','isTestOrchestrationEnabled','writeFileSync','qqOJM','RtJYe','SDK_SETUP','splice','setFrameworkDetail','SDK_CLEANUP','homedir','isValidEnvValue','global-agent','setBrowserstackConfig','\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','\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();','104012zCpYoZ','platform','../v2/browserstackCLI','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','fiJUm','../../helpers/utilities','vdFTX','../v2/cliUtils','EYdXW','EqkEU','3986154hlIIAc','123020mTPOdA','slice','launchBuild','readFileSync','BROWSERSTACK_TEST_OBSERVABILITY','BROWSERSTACK_TEST_ACCESSIBILITY_YML','cwJZU','exitCode','npx','resolvedConfigFile','getInstance','stringify','BROWSERSTACK_AUTOMATION','ojdkQ','filterBrowserstackArgs','reportConflictingEnvVarIssue','ArTqy','YHzri','setupBrowserstackLocal','reorderTestFiles'];a51_0x1707=function(){return _0x20f53c;};return a51_0x1707();}const a51_0xd15637=a51_0x79ff;(function(_0x3fffc9,_0x418179){const _0x28e9e6=a51_0x79ff,_0x378093=_0x3fffc9();while(!![]){try{const _0x40ad34=-parseInt(_0x28e9e6(0x2b7))/0x1*(parseInt(_0x28e9e6(0x243))/0x2)+-parseInt(_0x28e9e6(0x247))/0x3*(parseInt(_0x28e9e6(0x255))/0x4)+parseInt(_0x28e9e6(0x225))/0x5+parseInt(_0x28e9e6(0x274))/0x6+parseInt(_0x28e9e6(0x2a4))/0x7+-parseInt(_0x28e9e6(0x1fd))/0x8*(-parseInt(_0x28e9e6(0x2c1))/0x9)+parseInt(_0x28e9e6(0x2c2))/0xa*(-parseInt(_0x28e9e6(0x21f))/0xb);if(_0x40ad34===_0x418179)break;else _0x378093['push'](_0x378093['shift']());}catch(_0x2fe13e){_0x378093['push'](_0x378093['shift']());}}}(a51_0x1707,0x6f906));const fs=require('fs'),path=require(a51_0xd15637(0x290)),{pathToFileURL}=require(a51_0xd15637(0x215)),{spawn}=require(a51_0xd15637(0x282)),{format}=require(a51_0xd15637(0x201)),logger=require(a51_0xd15637(0x27d))['winstonLogger'],{default:BrowserStackSetup}=require(a51_0xd15637(0x222)),helper=require(a51_0xd15637(0x289)),utilities=require(a51_0xd15637(0x2bc)),constants=require(a51_0xd15637(0x20a)),{FRAMEWORKS}=require(a51_0xd15637(0x235)),{getConfigLoaderPath}=require(a51_0xd15637(0x263)),{mergeBrowserstackReporterIntoCliReporterFlag}=require(a51_0xd15637(0x288)),{shouldProcessEventForTesthub}=require(a51_0xd15637(0x27e)),{checkAccessibilityPlatformConfig}=require(a51_0xd15637(0x28a)),{setAccessibilityCapabilities}=require('./accessibility-helper'),{printBuildLink}=require(a51_0xd15637(0x27a)),TestDetails=require('./reporter/test-details'),TestHubHandler=require(a51_0xd15637(0x210)),PerformanceTester=require(a51_0xd15637(0x28d)),TestOrchestrationHandler=require(a51_0xd15637(0x236)),BrowserstackCLI=require(a51_0xd15637(0x2b9)),PerformanceEvents=require(a51_0xd15637(0x299))[a51_0xd15637(0x245)],CLIUtils=require(a51_0xd15637(0x2be)),TestInfo=require(a51_0xd15637(0x1f4)),ClientTroubleShootingService=require('../utils/clientTroubleshootingService'),getUserPlaywrightConfig=async(_0x5bfb9d,_0x33c805)=>{const _0x14e67e=a51_0xd15637,_0x670c4a={'MSdxh':function(_0x5dab77){return _0x5dab77();},'FBiBW':function(_0x18f6f9,_0x1c3421){return _0x18f6f9(_0x1c3421);},'nTCJX':function(_0x347c6b,_0x2bc6bd){return _0x347c6b(_0x2bc6bd);},'RSvTR':_0x14e67e(0x2cb),'ktTXa':_0x14e67e(0x202)},_0x330bc9=!helper['isUndefined'](_0x5bfb9d['config']),_0x2ce99e=_0x330bc9?path[_0x14e67e(0x275)](process[_0x14e67e(0x261)](),_0x5bfb9d[_0x14e67e(0x26a)]):process[_0x14e67e(0x261)](),{resolveConfigFile:_0x28f881,resolveConfigLocation:_0x2bfc2e}=helper['requirePWModule'][_0x14e67e(0x22c)](null,_0x670c4a['MSdxh'](getConfigLoaderPath)),_0x1e4321=_0x28f881?_0x670c4a[_0x14e67e(0x229)](_0x28f881,_0x2ce99e):helper['nestedKeyValue'](_0x670c4a['nTCJX'](_0x2bfc2e,_0x2ce99e),[_0x670c4a['RSvTR']]),_0x4b4b52={};if(_0x330bc9){const _0x49b476=_0x33c805['findIndex'](_0x1b060e=>_0x1b060e===_0x14e67e(0x22f)||_0x1b060e==='-c'||_0x1b060e[_0x14e67e(0x26f)](_0x14e67e(0x202)));_0x33c805[_0x14e67e(0x2ae)](_0x49b476,_0x33c805[_0x49b476][_0x14e67e(0x26f)](_0x670c4a[_0x14e67e(0x1ed)])?0x1:0x2);}const _0x2fb2b8={};return _0x2fb2b8[_0x14e67e(0x290)]=_0x1e4321,_0x2fb2b8[_0x14e67e(0x26a)]=_0x4b4b52,_0x2fb2b8;},handleO11yRerun=_0x1f7c27=>{const _0x46eed8=a51_0xd15637,_0x1f5aee={};_0x1f5aee[_0x46eed8(0x29a)]=_0x46eed8(0x269);const _0x285399=_0x1f5aee,_0x1def64=helper[_0x46eed8(0x262)](process['env']['BROWSERSTACK_RERUN']);if(_0x1def64){const _0x4e2ad5=process[_0x46eed8(0x279)]['BROWSERSTACK_RERUN_TESTS'],_0x3500a6=[];if(helper[_0x46eed8(0x26b)](_0x4e2ad5)&&!helper[_0x46eed8(0x207)](_0x4e2ad5)){_0x4e2ad5[_0x46eed8(0x1fa)](',')[_0x46eed8(0x259)](_0x5835d1=>{const _0x551ec5=_0x46eed8;_0x3500a6[_0x551ec5(0x232)]('('+_0x5835d1[_0x551ec5(0x25e)]()+')');});const _0x20f250='^'+_0x3500a6['join']('|')+'$';_0x1f7c27['push'](_0x285399[_0x46eed8(0x29a)],_0x20f250);}}},spawnOriginalProcess=_0x50d143=>{const _0x39f2f7=a51_0xd15637,_0xa35211={'WPnUK':function(_0x20051f,_0x1372aa,_0x32750c,_0x3c39aa){return _0x20051f(_0x1372aa,_0x32750c,_0x3c39aa);},'qqOJM':'yarn','yOSDC':_0x39f2f7(0x2ca),'RhZwJ':'playwright','EqkEU':function(_0x27d4b3,_0x1e7855){return _0x27d4b3===_0x1e7855;},'oqUuU':_0x39f2f7(0x292),'nydnU':_0x39f2f7(0x20b)};_0xa35211[_0x39f2f7(0x29e)](spawn,helper[_0x39f2f7(0x24a)]()?_0xa35211[_0x39f2f7(0x2ab)]:_0xa35211[_0x39f2f7(0x22d)],[_0xa35211['RhZwJ'],..._0x50d143['slice'](0x1)],{'shell':_0xa35211[_0x39f2f7(0x2c0)](process['platform'],_0xa35211['oqUuU']),'stdio':_0xa35211['nydnU'],'cwd':process[_0x39f2f7(0x261)]()});},isTestCommand=(_0x495f53,_0x103deb)=>{const _0x5985ec=a51_0xd15637,_0x168ec4={};_0x168ec4[_0x5985ec(0x203)]=function(_0x470e8e,_0x3e298c){return _0x470e8e>_0x3e298c;},_0x168ec4['ekqsR']=function(_0x3e97a6,_0x31ebcc){return _0x3e97a6===_0x31ebcc;},_0x168ec4[_0x5985ec(0x254)]=_0x5985ec(0x246);const _0x3a1459=_0x168ec4;if(_0x3a1459[_0x5985ec(0x203)](_0x103deb['length'],0x1)&&_0x3a1459['ekqsR'](_0x103deb[0x1],_0x3a1459[_0x5985ec(0x254)]))return!![];return![];};function a51_0x79ff(_0x2fcd07,_0x7c64e0){const _0x17077d=a51_0x1707();return a51_0x79ff=function(_0x79ffae,_0x261997){_0x79ffae=_0x79ffae-0x1e3;let _0x4ed7b9=_0x17077d[_0x79ffae];return _0x4ed7b9;},a51_0x79ff(_0x2fcd07,_0x7c64e0);}async function run(_0x116670,_0x3f1094,_0xa94d18){const _0x3e8bd2=a51_0xd15637,_0x5aab17={'CIZlX':function(_0x434144,_0x17441d){return _0x434144(_0x17441d);},'xXPDs':_0x3e8bd2(0x223),'RtJYe':'pw_result','YDohI':function(_0x25c233,_0x1c6285){return _0x25c233>_0x1c6285;},'KVaDj':'.browserstack','RZGXP':_0x3e8bd2(0x270),'zlPnb':function(_0x445bae,_0x22cd70){return _0x445bae+_0x22cd70;},'MARdd':_0x3e8bd2(0x26e),'hLXHF':function(_0x48ecd4){return _0x48ecd4();},'VGucB':function(_0x509c1b){return _0x509c1b();},'YEusG':function(_0x2e32c5,_0x2a5c60){return _0x2e32c5+_0x2a5c60;},'qpUCu':_0x3e8bd2(0x21e),'nezms':_0x3e8bd2(0x29c),'JiYjb':function(_0x3da96a,_0x416eb1){return _0x3da96a<_0x416eb1;},'MArua':function(_0x5c69cf,_0x3dac39){return _0x5c69cf===_0x3dac39;},'RqxzS':'false','XMbLc':_0x3e8bd2(0x273),'ejknq':function(_0x54d80b,_0x2d096d){return _0x54d80b>=_0x2d096d;},'HzGwM':function(_0xbd385e,_0x56e089){return _0xbd385e===_0x56e089;},'zxqyk':_0x3e8bd2(0x244),'ojdkQ':function(_0x591295,_0x3db362){return _0x591295!=_0x3db362;},'uPFhm':function(_0x297e0c,_0xd2feba,_0x3c87e0){return _0x297e0c(_0xd2feba,_0x3c87e0);},'fiJUm':function(_0xe9e63,_0x59bc38){return _0xe9e63(_0x59bc38);},'EoroJ':_0x3e8bd2(0x218),'rLEJG':function(_0x4718f2,_0x122408){return _0x4718f2(_0x122408);},'vFGUD':_0x3e8bd2(0x237),'ArTqy':_0x3e8bd2(0x250),'xrYCW':_0x3e8bd2(0x216),'DAUgy':_0x3e8bd2(0x27f),'NVyJc':function(_0x31e12b,_0x33345f){return _0x31e12b===_0x33345f;},'ZumrR':_0x3e8bd2(0x27c),'YHzri':function(_0x1e44b3,_0x15192c){return _0x1e44b3-_0x15192c;},'mWpuA':function(_0x317a26,_0x5bb4ca){return _0x317a26+_0x5bb4ca;},'ypCKu':_0x3e8bd2(0x22b),'PHVMx':function(_0x287824,_0x67f130){return _0x287824>_0x67f130;},'ccAyH':_0x3e8bd2(0x2b3),'UjrKr':_0x3e8bd2(0x1ff),'EleFS':function(_0x37a952){return _0x37a952();},'gaIwJ':_0x3e8bd2(0x28e),'DEtDX':function(_0x309554,_0x11944e){return _0x309554<_0x11944e;},'ONecd':_0x3e8bd2(0x1f1),'EYdXW':function(_0x1b8d3c,_0x4915b0,_0x1c10c8,_0x2e72e6){return _0x1b8d3c(_0x4915b0,_0x1c10c8,_0x2e72e6);},'gYAQT':_0x3e8bd2(0x24d),'tyFmh':'npx','PxzDl':_0x3e8bd2(0x246),'RujIL':_0x3e8bd2(0x22f),'jVAQk':_0x3e8bd2(0x292),'OLFTa':_0x3e8bd2(0x20b),'xZWdD':_0x3e8bd2(0x1ee),'cwJZU':function(_0xe74048,_0x567a8d){return _0xe74048|_0x567a8d;},'TjUup':'Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','vBnqR':'Error\x20in\x20deleting\x20playwright\x20results','UqteY':function(_0x29724a,_0x465980){return _0x29724a(_0x465980);}};try{const _0x31cc89=path[_0x3e8bd2(0x25b)](helper[_0x3e8bd2(0x2b1)](),_0x5aab17[_0x3e8bd2(0x266)]);try{fs[_0x3e8bd2(0x228)](_0x31cc89,_0x5aab17[_0x3e8bd2(0x2c8)](fs[_0x3e8bd2(0x252)][_0x3e8bd2(0x234)],fs[_0x3e8bd2(0x252)][_0x3e8bd2(0x1f0)]));}catch(_0x1aabb7){ClientTroubleShootingService[_0x3e8bd2(0x291)]();}}catch(_0x133683){logger[_0x3e8bd2(0x20c)](_0x5aab17[_0x3e8bd2(0x22e)](_0x5aab17[_0x3e8bd2(0x27b)],_0x133683));}try{const _0x35c0e6=path['join'](helper['homedir'](),_0x5aab17[_0x3e8bd2(0x266)],_0x5aab17[_0x3e8bd2(0x200)]);fs[_0x3e8bd2(0x2a0)](_0x35c0e6)&&fs[_0x3e8bd2(0x214)](_0x35c0e6);}catch(_0x5721b5){logger[_0x3e8bd2(0x20c)](_0x5aab17[_0x3e8bd2(0x257)](_0x5aab17[_0x3e8bd2(0x230)],_0x5721b5));}if(!_0x5aab17['uPFhm'](isTestCommand,_0x116670,_0x3f1094)){_0x5aab17['UqteY'](spawnOriginalProcess,_0x3f1094);return;}await PerformanceTester[_0x3e8bd2(0x2a6)](PerformanceEvents['SDK_PRE_INITIALIZE'],async()=>{const _0x315ccc=_0x3e8bd2,_0x47e518={'OVskw':function(_0x3f9882,_0x4a0917){const _0x490253=a51_0x79ff;return _0x5aab17[_0x490253(0x24b)](_0x3f9882,_0x4a0917);},'mXCWw':_0x5aab17[_0x315ccc(0x266)],'vdFTX':function(_0x466662){return _0x5aab17['hLXHF'](_0x466662);},'Bxzkf':function(_0x2b4dc6){const _0x3aac27=_0x315ccc;return _0x5aab17[_0x3aac27(0x297)](_0x2b4dc6);},'VLSCk':function(_0x36feff,_0x52a9cb){return _0x5aab17['YEusG'](_0x36feff,_0x52a9cb);},'FKbWd':_0x5aab17['qpUCu']};if(!_0xa94d18[_0x315ccc(0x26a)]){logger['error'](_0x5aab17[_0x315ccc(0x238)]);return;}await _0xa94d18[_0x315ccc(0x29d)](_0x116670),CLIUtils[_0x315ccc(0x2af)](FRAMEWORKS[_0x315ccc(0x29b)],FRAMEWORKS[_0x315ccc(0x29b)]),BrowserstackCLI[_0x315ccc(0x1e3)]()[_0x315ccc(0x2b4)](_0xa94d18[_0x315ccc(0x26a)],_0xa94d18[_0x315ccc(0x231)],_0xa94d18[_0x315ccc(0x20f)]),await BrowserstackCLI[_0x315ccc(0x1e3)]()['bootstrap']();!BrowserstackCLI[_0x315ccc(0x1e3)]()['isRunning']()&&await _0xa94d18[_0x315ccc(0x1eb)]();for(var _0x5a5a2=0x0;_0x5aab17[_0x315ccc(0x29f)](_0x5a5a2,constants[_0x315ccc(0x278)][_0x315ccc(0x20d)]);_0x5a5a2++){var _0x4ed92a=constants[_0x315ccc(0x278)][_0x5a5a2];process[_0x315ccc(0x279)][_0x4ed92a]&&await ClientTroubleShootingService[_0x315ccc(0x1e8)](_0x4ed92a);}const _0x1fd9c8=BrowserstackCLI['getInstance']()[_0x315ccc(0x1fb)]();!helper['isFalse'](_0x1fd9c8[_0x315ccc(0x281)])&&(process['env'][_0x315ccc(0x1e5)]=!![]);_0x5aab17[_0x315ccc(0x217)](_0x1fd9c8[_0x315ccc(0x281)],![])&&(process[_0x315ccc(0x279)]['BROWSERSTACK_AUTOMATION']=_0x5aab17[_0x315ccc(0x20e)],_0x3f1094=_0x3f1094['filter'](_0x11b379=>_0x11b379!==_0x315ccc(0x272)));const _0x3fbe31=_0x3f1094['indexOf'](_0x5aab17[_0x315ccc(0x293)]);(_0x5aab17[_0x315ccc(0x23c)](_0x3fbe31,0x0)||_0x5aab17['HzGwM'](_0x1fd9c8[_0x315ccc(0x220)],![]))&&(process[_0x315ccc(0x279)][_0x315ccc(0x2c6)]=_0x5aab17[_0x315ccc(0x20e)],_0x3f1094=_0x3f1094[_0x315ccc(0x1f6)](_0x16b2a7=>_0x16b2a7!=='--disable-test-observability'));!helper[_0x315ccc(0x207)](_0xa94d18['cliConfig'])&&_0xa94d18['cliConfig']['has'](_0x5aab17[_0x315ccc(0x206)])&&(process[_0x315ccc(0x279)]['BROWSERSTACK_AUTOMATION']=_0xa94d18[_0x315ccc(0x20f)][_0x315ccc(0x21a)](_0x5aab17[_0x315ccc(0x206)])||!![]);_0x5aab17[_0x315ccc(0x1e6)](_0xa94d18['config']['testObservability'],null)&&!helper[_0x315ccc(0x262)](process[_0x315ccc(0x279)][_0x315ccc(0x2c6)])&&(process[_0x315ccc(0x279)]['BROWSERSTACK_TEST_OBSERVABILITY']=process[_0x315ccc(0x279)][_0x315ccc(0x2c6)]||_0xa94d18[_0x315ccc(0x26a)][_0x315ccc(0x220)]);const _0x4f62d7=!helper[_0x315ccc(0x296)](process[_0x315ccc(0x279)]['BROWSERSTACK_TEST_OBSERVABILITY']);if(BrowserstackCLI[_0x315ccc(0x1e3)]()[_0x315ccc(0x25d)]()&&_0x4f62d7){const _0x7f7f89=BrowserstackCLI[_0x315ccc(0x23d)];helper[_0x315ccc(0x2b2)](_0x7f7f89)?(process[_0x315ccc(0x279)][_0x315ccc(0x283)]=_0x7f7f89,logger[_0x315ccc(0x20c)](_0x315ccc(0x264)+_0x7f7f89)):logger[_0x315ccc(0x224)]('testhub\x20build\x20UUID\x20(BrowserstackCLI.O11yHashedID)\x20unavailable;\x20skipping\x20deterministic\x20test-run\x20uuid\x20seeding\x20and\x20falling\x20back\x20to\x20file-coordinated\x20uuids.\x20Got:\x20'+_0x7f7f89);}_0xa94d18['config'][_0x315ccc(0x28b)]&&(process['env'][_0x315ccc(0x22a)]=JSON['stringify'](_0xa94d18['config'][_0x315ccc(0x28b)]));let _0x18a936=![];_0xa94d18[_0x315ccc(0x26a)][_0x315ccc(0x25a)]&&(_0x18a936=!![],process[_0x315ccc(0x279)][_0x315ccc(0x2c7)]=_0xa94d18[_0x315ccc(0x26a)][_0x315ccc(0x25a)]);const _0xd61237=_0x3f1094[_0x315ccc(0x221)](),_0x2c5fc9=await _0x5aab17['uPFhm'](getUserPlaywrightConfig,_0x116670,_0x3f1094);if(helper[_0x315ccc(0x207)](_0x2c5fc9)){_0x5aab17[_0x315ccc(0x2bb)](spawnOriginalProcess,_0xd61237);return;}const _0x16b0c9=_0x2c5fc9[_0x315ccc(0x290)]?path[_0x315ccc(0x2a8)](_0x2c5fc9[_0x315ccc(0x290)]):process[_0x315ccc(0x261)]();process['env'][_0x315ccc(0x24c)]=_0x16b0c9,await PerformanceTester[_0x315ccc(0x2a6)](PerformanceEvents[_0x315ccc(0x211)],async()=>{const _0x5b1216=_0x315ccc;!BrowserstackCLI[_0x5b1216(0x1e3)]()[_0x5b1216(0x25d)]()&&await TestHubHandler[_0x5b1216(0x2c4)](FRAMEWORKS[_0x5b1216(0x29b)],_0xa94d18),_0x4f62d7&&_0x47e518[_0x5b1216(0x294)](handleO11yRerun,_0x3f1094);})();if(!BrowserstackCLI[_0x315ccc(0x1e3)]()[_0x315ccc(0x25d)]()){let _0x271a46=_0x5aab17['MArua'](process['env'][_0x315ccc(0x2c7)],_0x5aab17['EoroJ']);_0x271a46=_0x271a46||_0x5aab17[_0x315ccc(0x287)](checkAccessibilityPlatformConfig,_0xa94d18[_0x315ccc(0x26a)]),process[_0x315ccc(0x279)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x271a46,_0x271a46&&_0x5aab17['CIZlX'](setAccessibilityCapabilities,_0xa94d18[_0x315ccc(0x26a)]);}const _0x3bbc4d=path[_0x315ccc(0x25b)](_0x2c5fc9['path']?path[_0x315ccc(0x2a8)](_0x2c5fc9[_0x315ccc(0x290)]):process[_0x315ccc(0x261)](),_0x5aab17[_0x315ccc(0x298)]);fs[_0x315ccc(0x2aa)](_0x3bbc4d,helper[_0x315ccc(0x285)](_0xa94d18['config'])),process['env'][_0x315ccc(0x25c)]=_0x3bbc4d,helper[_0x315ccc(0x1f2)]();let _0x5017d3='';_0x5aab17[_0x315ccc(0x217)](helper[_0x315ccc(0x208)](_0x16b0c9),constants[_0x315ccc(0x265)][_0x315ccc(0x227)])?_0x5017d3=_0x5aab17[_0x315ccc(0x1e9)]:_0x5017d3=_0x5aab17['xrYCW'];let _0x4d1214='';const _0x5383c3=path[_0x315ccc(0x275)](__dirname,_0x5aab17['DAUgy']),_0x4071c7=fs['existsSync'](_0x5383c3),_0x39da2c=_0x5aab17[_0x315ccc(0x2a5)](helper[_0x315ccc(0x208)](_0x16b0c9),constants['PACKAGE_TYPE'][_0x315ccc(0x227)]),_0x354a00=_0x4071c7?JSON[_0x315ccc(0x1e4)](_0x5383c3):_0x5aab17['ZumrR'],_0x2301ac=_0x4071c7?_0x39da2c?JSON[_0x315ccc(0x1e4)](_0x5aab17[_0x315ccc(0x287)](pathToFileURL,_0x5383c3)['href']):JSON[_0x315ccc(0x1e4)](_0x5383c3):_0x5aab17[_0x315ccc(0x23e)];logger[_0x315ccc(0x20c)]('Generated\x20Playwright\x20config\x20will\x20load\x20the\x20SDK\x20from\x20(cjs)\x20'+_0x354a00+_0x315ccc(0x23f)+_0x2301ac);if(helper[_0x315ccc(0x21c)](_0x2c5fc9['path'])){_0x4d1214='\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20'+_0x2301ac+';\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a';const _0x4776ae=_0x5017d3[_0x315ccc(0x1fa)]('.');_0x4776ae[_0x5aab17[_0x315ccc(0x1ea)](_0x4776ae['length'],0x1)]='ts',_0x5017d3=_0x4776ae['join']('.'),logger['debug'](_0x5aab17['mWpuA'](_0x5aab17[_0x315ccc(0x280)],_0x5017d3));}else _0x4d1214=_0x315ccc(0x286)+_0x354a00+')._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a';const _0x5c4985=path['join'](_0x2c5fc9[_0x315ccc(0x290)]?path['dirname'](_0x2c5fc9[_0x315ccc(0x290)]):process['cwd'](),_0x5017d3);let _0xef1d6=_0x2c5fc9[_0x315ccc(0x290)]?_0x2c5fc9[_0x315ccc(0x290)]:'';_0xef1d6=_0x5aab17['PHVMx'](_0xef1d6['length'],0x0)?path[_0x315ccc(0x275)](_0xef1d6):'',process[_0x315ccc(0x279)][_0x315ccc(0x1f8)]=_0xef1d6;const _0x4b6c45=helper['getProxyUrl'](_0xa94d18[_0x315ccc(0x26a)]),_0x2dd6ae=helper[_0x315ccc(0x2a7)](_0xa94d18['config']);logger[_0x315ccc(0x20c)](_0x315ccc(0x1f3)+_0x4b6c45),logger[_0x315ccc(0x20c)]('No\x20Proxy\x20:\x20'+_0x2dd6ae);if(_0x4b6c45){let _0x19b923='';try{_0x19b923=require[_0x315ccc(0x275)](_0x5aab17[_0x315ccc(0x251)]);}catch(_0x21ca27){logger[_0x315ccc(0x20c)]('Unable\x20to\x20resolve\x20global-agent\x20from\x20the\x20SDK\x20module\x20graph:\x20'+_0x21ca27);}const _0x1c3bcd=_0x5aab17[_0x315ccc(0x1f5)],_0xc10e61=_0x19b923?_0x315ccc(0x2ba)+_0x1c3bcd+_0x315ccc(0x233)+JSON[_0x315ccc(0x1e4)](_0x19b923)+_0x315ccc(0x2a1):_0x1c3bcd;_0x4d1214=_0x5aab17[_0x315ccc(0x22e)]('process.env.GLOBAL_AGENT_HTTP_PROXY=\x22'+_0x4b6c45+_0x315ccc(0x2b5)+_0x2dd6ae+'\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'+_0xc10e61+_0x315ccc(0x2b6),_0x4d1214);}helper[_0x315ccc(0x1e7)]({},_0x3f1094),_0x5aab17[_0x315ccc(0x1fc)](mergeBrowserstackReporterIntoCliReporterFlag,_0x3f1094,{'enabled':_0x5aab17[_0x315ccc(0x239)](shouldProcessEventForTesthub)}),fs[_0x315ccc(0x2aa)](_0x5c4985,_0x4d1214);let _0x1afaac=[];const _0x44642d=new TestOrchestrationHandler(_0xa94d18['config']);if(_0x44642d[_0x315ccc(0x2a9)]()){logger['debug'](_0x5aab17[_0x315ccc(0x212)]);const _0x2151fd=await _0x44642d['findPlaywrightTestFiles'](_0xef1d6,_0x3f1094[_0x315ccc(0x2c3)](0x2));logger['debug'](_0x315ccc(0x28c)+JSON[_0x315ccc(0x1e4)](_0x2151fd)+_0x315ccc(0x277));const _0x3e6e16=await _0x44642d[_0x315ccc(0x1ec)](_0x2151fd);logger['debug']('Reordered\x20Test\x20Files:\x20'+JSON[_0x315ccc(0x1e4)](_0x3e6e16)),_0x3e6e16&&_0x5aab17[_0x315ccc(0x260)](_0x3e6e16[_0x315ccc(0x20d)],0x0)&&(process[_0x315ccc(0x279)]['BROWSERSTACK_PW_TEST_ORDER']=_0x3e6e16[_0x315ccc(0x25b)](','),_0x5aab17['DEtDX'](_0x3e6e16[_0x315ccc(0x20d)],_0x2151fd[_0x315ccc(0x20d)])&&(_0x1afaac=_0x3e6e16[_0x315ccc(0x259)](_0x3bb661=>path['relative'](process[_0x315ccc(0x261)](),_0x3bb661)[_0x315ccc(0x1fa)](path[_0x315ccc(0x240)])['join']('/'))));}PerformanceTester[_0x315ccc(0x28f)](PerformanceEvents[_0x315ccc(0x2ad)]),process[_0x315ccc(0x279)]['BROWSERSTACK_FRAMEWORK']=process['env']['BROWSERSTACK_FRAMEWORK']||_0x5aab17[_0x315ccc(0x226)];const _0x487b07=_0x5aab17[_0x315ccc(0x2bf)](spawn,helper['isYarnPnP']()?_0x5aab17[_0x315ccc(0x268)]:_0x5aab17[_0x315ccc(0x271)],[_0x5aab17[_0x315ccc(0x226)],_0x5aab17['PxzDl'],_0x5aab17[_0x315ccc(0x2a2)],_0x5aab17[_0x315ccc(0x2a3)](process[_0x315ccc(0x2b8)],_0x5aab17[_0x315ccc(0x284)])?'\x22'+_0x5c4985+'\x22':_0x5c4985,..._0x3f1094['slice'](0x2),..._0x1afaac],{'shell':_0x5aab17['HzGwM'](process[_0x315ccc(0x2b8)],_0x5aab17[_0x315ccc(0x284)]),'stdio':_0x5aab17[_0x315ccc(0x256)],'cwd':process[_0x315ccc(0x261)](),'env':Object[_0x315ccc(0x24f)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x315ccc(0x1f7)](_0x116670),'BROWSERSTACK_SKIP_SESSION_STATUS':_0xa94d18[_0x315ccc(0x26a)][_0x315ccc(0x219)][_0x315ccc(0x23b)],'BROWSERSTACK_SKIP_SESSION_NAME':_0xa94d18[_0x315ccc(0x26a)][_0x315ccc(0x219)][_0x315ccc(0x242)],'BROWSERSTACK_LOG_LEVEL':_0xa94d18['config'][_0x315ccc(0x241)]})}),_0x1416bb=async()=>{const _0x23c0b3=_0x315ccc;try{if(BrowserstackCLI[_0x23c0b3(0x1e3)]()[_0x23c0b3(0x25d)]()){const _0x2c131a=_0x5aab17[_0x23c0b3(0x24b)](require,_0x5aab17['xXPDs']),_0x5c4df0=await _0x2c131a['getBuildState'](_0x5aab17[_0x23c0b3(0x2ac)])||[];if(_0x5aab17[_0x23c0b3(0x24e)](_0x5c4df0[_0x23c0b3(0x20d)],0x0)){const _0x43a2bf={};_0x5c4df0['forEach'](_0x3b82b7=>{const _0x296bc2=_0x23c0b3,_0x4a58f1=_0x43a2bf[_0x3b82b7['key']]||Object[_0x296bc2(0x295)](null);(_0x3b82b7['entries']||[])[_0x296bc2(0x21d)](({title:_0x1ae902,error:_0x3b28e0})=>{_0x4a58f1[_0x1ae902]=_0x3b28e0;}),_0x43a2bf[_0x3b82b7['key']]=_0x4a58f1;}),_0xa94d18[_0x23c0b3(0x21b)]=_0x43a2bf;return;}}const _0xe9dc2c=path[_0x23c0b3(0x25b)](helper[_0x23c0b3(0x2b1)](),_0x5aab17[_0x23c0b3(0x266)],_0x5aab17[_0x23c0b3(0x200)]);if(fs['existsSync'](_0xe9dc2c)){let _0xd820ba=fs[_0x23c0b3(0x2c5)](_0xe9dc2c);_0xd820ba=JSON['parse'](_0xd820ba),_0xa94d18['errorMessage']=_0xd820ba,fs['unlinkSync'](_0xe9dc2c);}}catch(_0x5f478d){logger[_0x23c0b3(0x20c)](_0x5aab17[_0x23c0b3(0x213)](_0x5aab17[_0x23c0b3(0x204)],_0x5f478d));}};_0x487b07['on'](_0x5aab17[_0x315ccc(0x26c)],async _0x3c048e=>{const _0x1edcab=_0x315ccc,_0x3f24de={};_0x3f24de[_0x1edcab(0x205)]=_0x47e518['mXCWw'];const _0x588981=_0x3f24de;try{PerformanceTester[_0x1edcab(0x25f)](PerformanceEvents[_0x1edcab(0x2b0)]),await _0x47e518[_0x1edcab(0x2bd)](_0x1416bb),await TestHubHandler['stop'](),await ClientTroubleShootingService['reportFinalDetectionState']();const _0x1177d1=BrowserstackCLI[_0x1edcab(0x258)]();await BrowserstackCLI[_0x1edcab(0x1e3)]()[_0x1edcab(0x1ef)](),TestDetails[_0x1edcab(0x23a)](),_0x47e518[_0x1edcab(0x267)](printBuildLink),await utilities[_0x1edcab(0x248)](_0xa94d18,_0x1177d1),process[_0x1edcab(0x2c9)]=_0x3c048e,logger[_0x1edcab(0x20c)](_0x1edcab(0x1f9)+_0x3c048e),logger[_0x1edcab(0x26d)](_0x1edcab(0x276)+_0x5c4985),fs[_0x1edcab(0x214)](_0x5c4985);fs['existsSync'](_0x3bbc4d)&&(logger['debug'](_0x1edcab(0x276)+_0x3bbc4d),fs[_0x1edcab(0x214)](_0x3bbc4d));const _0x4912a9=fs[_0x1edcab(0x209)](path[_0x1edcab(0x25b)](helper[_0x1edcab(0x2b1)](),_0x47e518[_0x1edcab(0x249)]))[_0x1edcab(0x1f6)](_0x3c431d=>_0x3c431d['startsWith'](_0x1edcab(0x253)));_0x4912a9[_0x1edcab(0x21d)](_0x2f9337=>{const _0x110110=_0x1edcab;fs['unlinkSync'](path[_0x110110(0x25b)](helper[_0x110110(0x2b1)](),_0x588981[_0x110110(0x205)],_0x2f9337));});}catch(_0x10c24d){logger[_0x1edcab(0x20c)](_0x47e518['VLSCk'](_0x47e518['FKbWd'],_0x10c24d));}});})();}module[a51_0xd15637(0x1fe)]=run;
@@ -1 +1 @@
1
- const a52_0x480d18=a52_0x4d22;(function(_0x52b650,_0x5554e1){const _0x43dd81=a52_0x4d22,_0x52e778=_0x52b650();while(!![]){try{const _0x1b1a7d=parseInt(_0x43dd81(0x11b))/0x1+-parseInt(_0x43dd81(0x11d))/0x2*(parseInt(_0x43dd81(0x11e))/0x3)+-parseInt(_0x43dd81(0x114))/0x4*(-parseInt(_0x43dd81(0x120))/0x5)+-parseInt(_0x43dd81(0xf8))/0x6*(-parseInt(_0x43dd81(0x124))/0x7)+parseInt(_0x43dd81(0x122))/0x8*(-parseInt(_0x43dd81(0xf4))/0x9)+-parseInt(_0x43dd81(0x119))/0xa*(parseInt(_0x43dd81(0x10e))/0xb)+parseInt(_0x43dd81(0x11a))/0xc;if(_0x1b1a7d===_0x5554e1)break;else _0x52e778['push'](_0x52e778['shift']());}catch(_0x1a2861){_0x52e778['push'](_0x52e778['shift']());}}}(a52_0x1204,0x3a711));function a52_0x1204(){const _0x3dfb82=['error','fLgoU','Not\x20able\x20to\x20resolve\x20loadGlobalHook\x20for\x20current\x20Playwright\x20version','356BVTqxn','cBPXQ','Tnczz','ouUaS','BgcES','131210ITphBV','8173956gJaObR','77950IrxHDG','apply','2Ugfztn','1330521PaSwTu','../../helpers/driverInitErrorReporter','12970PhuKJy','mAmpM','1568NwmIXC','playwright','139153pvTAiD','7893kqfVwR','resolve','format','IjZaf','78HVhOEX','hjeCj','env','../../helpers/test-observability/constants','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','toString','../../helpers/test-observability/utils','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','../../helpers/logger','./reporter/pwUtils','resolveLoadGlobalHook','sadFl','PLAYWRIGHT','debug','fork','1.33.0','../../helpers/helper','Path\x20','pDloX','includes','child_process','config','330cQfeGx','Not\x20able\x20to\x20import\x20globalSetup','\x20is\x20not\x20found'];a52_0x1204=function(){return _0x3dfb82;};return a52_0x1204();}function a52_0x4d22(_0x251b69,_0x2a3c3e){const _0x12041c=a52_0x1204();return a52_0x4d22=function(_0x4d2232,_0x5375be){_0x4d2232=_0x4d2232-0xf4;let _0x262d7c=_0x12041c[_0x4d2232];return _0x262d7c;},a52_0x4d22(_0x251b69,_0x2a3c3e);}const util=require('util'),child_process=require(a52_0x480d18(0x10c)),{FRAMEWORKS}=require(a52_0x480d18(0xfb)),{getFrameworkVersion,debug}=require(a52_0x480d18(0xfe)),helper=require(a52_0x480d18(0x108)),{getForkProcessPath}=require(a52_0x480d18(0x101)),{mockIsWorkerRedundant}=require('./patches'),logger=require(a52_0x480d18(0x100))['winstonLogger'];try{require(a52_0x480d18(0x11f))['installAll'](a52_0x480d18(0x123));}catch(a52_0x3a3f75){logger[a52_0x480d18(0x105)]('driver-init\x20capture\x20install\x20failed:\x20'+(a52_0x3a3f75&&a52_0x3a3f75['message']));}module['exports']=async function(_0x422d50){const _0x2fd0ff=a52_0x480d18,_0x1250fa={'BgcES':function(_0x3b0921,_0x554cbd){return _0x3b0921(_0x554cbd);},'IjZaf':function(_0x26648e){return _0x26648e();},'RJBrg':'./mock-process.js','pDloX':function(_0xa8d9ff){return _0xa8d9ff();},'fLgoU':'Running\x20existing\x20global\x20setup','Tnczz':function(_0x1cd14f,_0x49d914){return _0x1cd14f!==_0x49d914;},'cBPXQ':'function','mCeNg':_0x2fd0ff(0x113),'mAmpM':function(_0x9f675d,_0x5ce64b){return _0x9f675d(_0x5ce64b);},'sadFl':function(_0x251096,_0x4613cd){return _0x251096>=_0x4613cd;},'hjeCj':_0x2fd0ff(0x107),'IeIrl':function(_0x78dbeb,_0x19f281,_0xfda763){return _0x78dbeb(_0x19f281,_0xfda763);},'ouUaS':_0x2fd0ff(0x10f),'tAUUr':function(_0x2aa0b6,_0xa90e00){return _0x2aa0b6(_0xa90e00);}},_0x39877d=child_process['fork'];if(helper['isHandlePWErrorSet']())try{_0x1250fa[_0x2fd0ff(0x10a)](mockIsWorkerRedundant);}catch(_0x4f5484){logger['debug'](_0x2fd0ff(0xff)+util[_0x2fd0ff(0xf6)](_0x4f5484));}child_process[_0x2fd0ff(0x106)]=function(){const _0x588a91=_0x2fd0ff;return _0x1250fa[_0x588a91(0x118)](debug,'Call\x20to\x20child\x20fork\x20with\x20args\x20'+arguments[0x0]),arguments[0x0][_0x588a91(0x10b)](_0x1250fa['IjZaf'](getForkProcessPath))?arguments[0x0]=require[_0x588a91(0xf5)](_0x1250fa['RJBrg']):logger[_0x588a91(0x111)](_0x588a91(0x109)+_0x1250fa[_0x588a91(0xf7)](getForkProcessPath)+_0x588a91(0x110)),_0x39877d['apply'](null,arguments);};if(process[_0x2fd0ff(0xfa)][_0x2fd0ff(0xfc)]){_0x1250fa[_0x2fd0ff(0x118)](debug,_0x1250fa[_0x2fd0ff(0x112)]);try{const _0x44323a=helper[_0x2fd0ff(0x102)]();if(_0x1250fa[_0x2fd0ff(0x116)](typeof _0x44323a,_0x1250fa[_0x2fd0ff(0x115)]))throw new Error(_0x1250fa['mCeNg']);const _0x55f3aa=_0x1250fa[_0x2fd0ff(0x121)](getFrameworkVersion,FRAMEWORKS[_0x2fd0ff(0x104)]);let _0x353369=_0x422d50;if(_0x1250fa[_0x2fd0ff(0x103)](helper['compareVersions'](_0x55f3aa,_0x1250fa[_0x2fd0ff(0xf9)]),0x0)){const _0x5d99c6={};_0x5d99c6[_0x2fd0ff(0x10d)]=_0x422d50,_0x353369=_0x5d99c6;}const _0x397602=await _0x1250fa['IeIrl'](_0x44323a,_0x353369,process['env'][_0x2fd0ff(0xfc)]);if(_0x1250fa['Tnczz'](typeof _0x397602,_0x1250fa[_0x2fd0ff(0x115)]))throw new Error(_0x1250fa[_0x2fd0ff(0x117)]);return _0x397602[_0x2fd0ff(0x11c)](null,arguments);}catch(_0x3364bc){_0x1250fa['tAUUr'](debug,'Error\x20in\x20calling\x20existing\x20global\x20setup:\x20'+_0x3364bc[_0x2fd0ff(0xfd)]());}}};
1
+ const a52_0x5c1e47=a52_0x194f;function a52_0x194f(_0x50a476,_0x11b503){const _0x53336d=a52_0x5333();return a52_0x194f=function(_0x194f40,_0x56e615){_0x194f40=_0x194f40-0xe0;let _0x3c780f=_0x53336d[_0x194f40];return _0x3c780f;},a52_0x194f(_0x50a476,_0x11b503);}(function(_0x2a606d,_0x264d03){const _0x4e0cc6=a52_0x194f,_0x3a0b5f=_0x2a606d();while(!![]){try{const _0x3ba7d9=-parseInt(_0x4e0cc6(0xe2))/0x1+parseInt(_0x4e0cc6(0xfd))/0x2*(-parseInt(_0x4e0cc6(0x114))/0x3)+parseInt(_0x4e0cc6(0x111))/0x4*(-parseInt(_0x4e0cc6(0xe9))/0x5)+-parseInt(_0x4e0cc6(0xec))/0x6*(-parseInt(_0x4e0cc6(0x101))/0x7)+parseInt(_0x4e0cc6(0xe0))/0x8*(parseInt(_0x4e0cc6(0xf4))/0x9)+parseInt(_0x4e0cc6(0xf3))/0xa+parseInt(_0x4e0cc6(0xeb))/0xb;if(_0x3ba7d9===_0x264d03)break;else _0x3a0b5f['push'](_0x3a0b5f['shift']());}catch(_0x196dc6){_0x3a0b5f['push'](_0x3a0b5f['shift']());}}}(a52_0x5333,0x9c580));const util=require(a52_0x5c1e47(0x110)),child_process=require(a52_0x5c1e47(0x109)),{FRAMEWORKS}=require(a52_0x5c1e47(0xfb)),{getFrameworkVersion,debug}=require(a52_0x5c1e47(0xe3)),helper=require('../../helpers/helper'),{getForkProcessPath}=require(a52_0x5c1e47(0x10c)),{mockIsWorkerRedundant}=require(a52_0x5c1e47(0x104)),logger=require(a52_0x5c1e47(0x10d))['winstonLogger'];try{require(a52_0x5c1e47(0x103))[a52_0x5c1e47(0x10b)]('playwright');}catch(a52_0x2d8880){logger['debug'](a52_0x5c1e47(0xf0)+(a52_0x2d8880&&a52_0x2d8880['message']));}function a52_0x5333(){const _0x4e68fb=['1.33.0','error','exports','1549995daHYIF','PLAYWRIGHT','32810833MNMBUq','426YlEpdy','kEdOf','Running\x20existing\x20global\x20setup','ZwtZZ','driver-init\x20capture\x20install\x20failed:\x20','LDtmx','compareVersions','5388220PoYhHh','1121571UmmBhZ','ijvlC','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','tugqu','isHandlePWErrorSet','\x20is\x20not\x20found','toString','../../helpers/test-observability/constants','function','2355244vWryXG','apply','Not\x20able\x20to\x20import\x20globalSetup','eRkSI','35357WsuvtT','Not\x20able\x20to\x20resolve\x20loadGlobalHook\x20for\x20current\x20Playwright\x20version','../../helpers/driverInitErrorReporter','./patches','vDBmL','Call\x20to\x20child\x20fork\x20with\x20args\x20','Path\x20','format','child_process','resolveLoadGlobalHook','installAll','./reporter/pwUtils','../../helpers/logger','env','OPWyS','util','12QCddJv','./mock-process.js','fork','3QSXOIk','8sAwZpH','SkQhj','1256862hyVFDC','../../helpers/test-observability/utils','debug','IitiO'];a52_0x5333=function(){return _0x4e68fb;};return a52_0x5333();}module[a52_0x5c1e47(0xe8)]=async function(_0x4f0809){const _0x2c0337=a52_0x5c1e47,_0x1a6d80={'ZwtZZ':function(_0x474585,_0x190cc1){return _0x474585(_0x190cc1);},'ijvlC':function(_0x5b6cea){return _0x5b6cea();},'bVZRn':_0x2c0337(0x112),'SkQhj':function(_0x3a7b2d){return _0x3a7b2d();},'OPWyS':function(_0x2a4db5,_0x1551d2){return _0x2a4db5(_0x1551d2);},'RiMBy':_0x2c0337(0xee),'tugqu':function(_0x28e31c,_0x14f796){return _0x28e31c!==_0x14f796;},'LDtmx':_0x2c0337(0xfc),'IitiO':_0x2c0337(0x102),'auKdj':function(_0x5c0609,_0x168054){return _0x5c0609(_0x168054);},'GyOIW':function(_0xac75cd,_0x5e6747){return _0xac75cd>=_0x5e6747;},'vDBmL':_0x2c0337(0xe6),'kEdOf':function(_0x585144,_0x2cda10,_0x436009){return _0x585144(_0x2cda10,_0x436009);},'eRkSI':function(_0x5e4ff4,_0x5f44de){return _0x5e4ff4!==_0x5f44de;},'ZzIEp':_0x2c0337(0xff)},_0x136b55=child_process['fork'];if(helper[_0x2c0337(0xf8)]())try{_0x1a6d80[_0x2c0337(0xe1)](mockIsWorkerRedundant);}catch(_0x54d6dc){logger[_0x2c0337(0xe4)]('Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20'+util[_0x2c0337(0x108)](_0x54d6dc));}child_process[_0x2c0337(0x113)]=function(){const _0x58e2fe=_0x2c0337;return _0x1a6d80[_0x58e2fe(0xef)](debug,_0x58e2fe(0x106)+arguments[0x0]),arguments[0x0]['includes'](_0x1a6d80[_0x58e2fe(0xf5)](getForkProcessPath))?arguments[0x0]=require['resolve'](_0x1a6d80['bVZRn']):logger[_0x58e2fe(0xe7)](_0x58e2fe(0x107)+_0x1a6d80['SkQhj'](getForkProcessPath)+_0x58e2fe(0xf9)),_0x136b55[_0x58e2fe(0xfe)](null,arguments);};if(process['env']['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']){_0x1a6d80[_0x2c0337(0x10f)](debug,_0x1a6d80['RiMBy']);try{const _0x510cf5=helper[_0x2c0337(0x10a)]();if(_0x1a6d80[_0x2c0337(0xf7)](typeof _0x510cf5,_0x1a6d80['LDtmx']))throw new Error(_0x1a6d80[_0x2c0337(0xe5)]);const _0x4f00f4=_0x1a6d80['auKdj'](getFrameworkVersion,FRAMEWORKS[_0x2c0337(0xea)]);let _0x592582=_0x4f0809;if(_0x1a6d80['GyOIW'](helper[_0x2c0337(0xf2)](_0x4f00f4,_0x1a6d80[_0x2c0337(0x105)]),0x0)){const _0x1bfe49={};_0x1bfe49['config']=_0x4f0809,_0x592582=_0x1bfe49;}const _0x4e4f8e=await _0x1a6d80[_0x2c0337(0xed)](_0x510cf5,_0x592582,process[_0x2c0337(0x10e)][_0x2c0337(0xf6)]);if(_0x1a6d80[_0x2c0337(0x100)](typeof _0x4e4f8e,_0x1a6d80[_0x2c0337(0xf1)]))throw new Error(_0x1a6d80['ZzIEp']);return _0x4e4f8e[_0x2c0337(0xfe)](null,arguments);}catch(_0x2a6bb4){_0x1a6d80[_0x2c0337(0xef)](debug,'Error\x20in\x20calling\x20existing\x20global\x20setup:\x20'+_0x2a6bb4[_0x2c0337(0xfa)]());}}};