browserstack-node-sdk 1.64.1 → 1.64.2

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 (218) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
  56. package/src/bin/jasmine/command.js +1 -1
  57. package/src/bin/jasmine/test.setup.js +1 -1
  58. package/src/bin/jasmine/testRunMap.js +1 -1
  59. package/src/bin/jest/command.js +1 -1
  60. package/src/bin/jest/customImplements/customCircus.js +1 -1
  61. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  62. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  63. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  64. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  65. package/src/bin/jest/jest.setup.js +1 -1
  66. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  67. package/src/bin/jest/test-observability/helper.js +1 -1
  68. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  69. package/src/bin/jest/test-observability/test-details.js +1 -1
  70. package/src/bin/jest/test.setup.js +1 -1
  71. package/src/bin/jest/test_before.setup.js +1 -1
  72. package/src/bin/launcher/launcher.js +1 -1
  73. package/src/bin/load/index.js +1 -1
  74. package/src/bin/load/loadErrors.js +1 -1
  75. package/src/bin/load/loadUtils.js +1 -1
  76. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  77. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  78. package/src/bin/mocha/command.js +1 -1
  79. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  80. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  81. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  82. package/src/bin/mocha/test.setup.js +1 -1
  83. package/src/bin/newman/command.js +1 -1
  84. package/src/bin/newman/helper.js +1 -1
  85. package/src/bin/newman/reporter/index.js +1 -1
  86. package/src/bin/newman/scriptRunner.js +1 -1
  87. package/src/bin/nightwatch/command.js +1 -1
  88. package/src/bin/playwright/accessibility-helper.js +1 -1
  89. package/src/bin/playwright/command.js +1 -1
  90. package/src/bin/playwright/globalSetup.js +1 -1
  91. package/src/bin/playwright/mock-process.js +1 -1
  92. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  93. package/src/bin/playwright/patches.js +1 -1
  94. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  95. package/src/bin/playwright/reporter/reporter.js +1 -1
  96. package/src/bin/playwright/reporter/test-details.js +1 -1
  97. package/src/bin/playwright/sessionDetails.js +1 -1
  98. package/src/bin/puppeteer/patches.js +1 -1
  99. package/src/bin/puppeteer/sessionDetails.js +1 -1
  100. package/src/bin/puppeteer/test.setup.js +1 -1
  101. package/src/bin/runner.js +1 -1
  102. package/src/bin/setup.js +1 -1
  103. package/src/bin/test-runner/index.js +1 -1
  104. package/src/bin/test-runner/runTest.js +1 -1
  105. package/src/bin/test-runner/testWorker.js +1 -1
  106. package/src/bin/testcafe/a11y-runner.js +1 -1
  107. package/src/bin/testcafe/command.js +1 -1
  108. package/src/bin/testcafe/reporter/index.js +1 -1
  109. package/src/bin/testcafe/reporter/tcUtils.js +1 -1
  110. package/src/bin/testcafe/session-registry.js +1 -1
  111. package/src/bin/testcafe/stdout-interceptor.js +1 -1
  112. package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
  113. package/src/bin/testcafe/w3c-driver.js +1 -1
  114. package/src/bin/utils/apiUtilityMethods.js +1 -1
  115. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  116. package/src/bin/utils/constants.js +1 -1
  117. package/src/bin/utils/log4jsAppender.js +1 -1
  118. package/src/bin/utils/logPatcher.js +1 -1
  119. package/src/bin/utils/logReportingAPI.js +1 -1
  120. package/src/bin/utils/playwright-patcher.js +1 -1
  121. package/src/bin/utils/puppeteer-patcher.js +1 -1
  122. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  123. package/src/bin/utils/sharedUtils.js +1 -1
  124. package/src/bin/v2/TestInfo.js +1 -1
  125. package/src/bin/v2/browserstackCLI.js +1 -1
  126. package/src/bin/v2/cliUtils.js +1 -1
  127. package/src/bin/v2/customTagManager.js +1 -1
  128. package/src/bin/v2/eventDispatcher.js +1 -1
  129. package/src/bin/v2/framework/automationFramework.js +1 -1
  130. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  131. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  132. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  133. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  134. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  135. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  136. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  137. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  138. package/src/bin/v2/framework/testFramework.js +1 -1
  139. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  140. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  141. package/src/bin/v2/grpcClient.js +1 -1
  142. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  143. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  144. package/src/bin/v2/instances/trackedContext.js +1 -1
  145. package/src/bin/v2/instances/trackedInstance.js +1 -1
  146. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  147. package/src/bin/v2/modules/baseModule.js +1 -1
  148. package/src/bin/v2/modules/loadTestModule.js +1 -1
  149. package/src/bin/v2/modules/observabilityModule.js +1 -1
  150. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  151. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  152. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  153. package/src/bin/v2/modules/testhubModule.js +1 -1
  154. package/src/bin/v2/sdkErrorHandler.js +1 -1
  155. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  156. package/src/bin/v2/state/hookState.js +1 -1
  157. package/src/bin/v2/state/testFrameworkState.js +1 -1
  158. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  159. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  160. package/src/bin/v2/utils/jest-utils.js +1 -1
  161. package/src/bin/vanilla-js/command.js +1 -1
  162. package/src/browserStackSdk.js +1 -1
  163. package/src/helpers/BrowserStackSetup.js +1 -1
  164. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  165. package/src/helpers/accessibility-automation/constants.js +1 -1
  166. package/src/helpers/accessibility-automation/helper.js +1 -1
  167. package/src/helpers/accessibility-automation/scripts.js +1 -1
  168. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  169. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  170. package/src/helpers/ats/constants.js +1 -1
  171. package/src/helpers/ats/helper.js +1 -1
  172. package/src/helpers/caCertHelper.js +1 -1
  173. package/src/helpers/capsMapping.js +1 -1
  174. package/src/helpers/central-scanner/constants.js +1 -1
  175. package/src/helpers/central-scanner/helpers.js +1 -1
  176. package/src/helpers/classLogger.js +1 -1
  177. package/src/helpers/driverInitErrorReporter.js +1 -1
  178. package/src/helpers/globals.js +1 -1
  179. package/src/helpers/helper.js +1 -1
  180. package/src/helpers/logger.js +1 -1
  181. package/src/helpers/metadata.js +1 -1
  182. package/src/helpers/patchHelper.js +1 -1
  183. package/src/helpers/patchHelpers.js +1 -1
  184. package/src/helpers/percy/Percy.js +1 -1
  185. package/src/helpers/percy/PercyBinary.js +1 -1
  186. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  187. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  188. package/src/helpers/percy/PercySDK.js +1 -1
  189. package/src/helpers/percy/index.js +1 -1
  190. package/src/helpers/percy/utils.js +1 -1
  191. package/src/helpers/performance/constants.js +1 -1
  192. package/src/helpers/performance/performance-tester.js +1 -1
  193. package/src/helpers/playwright-helper.js +1 -1
  194. package/src/helpers/processHelper.js +1 -1
  195. package/src/helpers/puppeteer-helper.js +1 -1
  196. package/src/helpers/request-spy.js +1 -1
  197. package/src/helpers/setKeepAlive.js +1 -1
  198. package/src/helpers/stackFrameUtils.js +1 -1
  199. package/src/helpers/test-observability/constants.js +1 -1
  200. package/src/helpers/test-observability/error-handler.js +1 -1
  201. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  202. package/src/helpers/test-observability/sessionHandler.js +1 -1
  203. package/src/helpers/test-observability/utils.js +1 -1
  204. package/src/helpers/test-orchestration/constants.js +1 -1
  205. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  206. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  207. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  208. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  209. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  210. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  211. package/src/helpers/testhub/constants.js +1 -1
  212. package/src/helpers/testhub/testhubHandler.js +1 -1
  213. package/src/helpers/testhub/utils.js +1 -1
  214. package/src/helpers/timeoutPromise.js +1 -1
  215. package/src/helpers/utilities.js +1 -1
  216. package/src/helpers/w3cMapping.js +1 -1
  217. package/src/hubAllocationMethods.js +1 -1
  218. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a47_0x3735bc=a47_0x333c;(function(_0x30f462,_0xcbc231){const _0x5e2148=a47_0x333c,_0x4f3a24=_0x30f462();while(!![]){try{const _0x4ec7dd=-parseInt(_0x5e2148(0xb2))/0x1+-parseInt(_0x5e2148(0x13b))/0x2+-parseInt(_0x5e2148(0xf9))/0x3+-parseInt(_0x5e2148(0x12d))/0x4+parseInt(_0x5e2148(0xb1))/0x5+parseInt(_0x5e2148(0x123))/0x6*(-parseInt(_0x5e2148(0x9f))/0x7)+parseInt(_0x5e2148(0xb4))/0x8*(parseInt(_0x5e2148(0x136))/0x9);if(_0x4ec7dd===_0xcbc231)break;else _0x4f3a24['push'](_0x4f3a24['shift']());}catch(_0x340570){_0x4f3a24['push'](_0x4f3a24['shift']());}}}(a47_0x2642,0x7c619));function a47_0x333c(_0x3ac38f,_0xfe2d2d){const _0x264212=a47_0x2642();return a47_0x333c=function(_0x333c95,_0x2c1957){_0x333c95=_0x333c95-0x92;let _0x29eac1=_0x264212[_0x333c95];return _0x29eac1;},a47_0x333c(_0x3ac38f,_0xfe2d2d);}const util=require(a47_0x3735bc(0xf2)),logger=require(a47_0x3735bc(0xb6))[a47_0x3735bc(0xbc)],{automationLogger}=require(a47_0x3735bc(0xb6)),{isAccessibilityAutomationSession}=require(a47_0x3735bc(0x99)),{isUndefined,isBrowserstackInfra}=require(a47_0x3735bc(0xce)),scripts=require(a47_0x3735bc(0xe2)),PerformanceTester=require('../../helpers/performance/performance-tester'),{A11Y_EVENTS:PerformanceA11yEvents}=require(a47_0x3735bc(0x116)),accessibilityHelper=require('../../helpers/accessibility-automation/helper'),{AUTOMATION_LOG_COMMANDS}=require('../utils/constants'),isStalePageError=_0x5650e3=>{const _0x5afd38=a47_0x3735bc,_0x4e018f={'RJqSG':function(_0x2f587f,_0x501027){return _0x2f587f(_0x501027);}},_0x5c1def=_0x5650e3&&_0x5650e3[_0x5afd38(0xc9)]||_0x4e018f[_0x5afd38(0x15a)](String,_0x5650e3);return/Target closed|detached [Ff]rame|Execution context was destroyed, most likely because of a navigation/['test'](_0x5c1def);},isPageStale=_0x313293=>{const _0x4ec08c=a47_0x3735bc;try{if(_0x313293['isClosed']&&_0x313293['isClosed']())return!![];const _0x30495b=_0x313293['mainFrame']&&_0x313293['mainFrame']();if(_0x30495b&&_0x30495b['isDetached']&&_0x30495b[_0x4ec08c(0x112)]())return!![];}catch(_0x35a695){}return![];},isUserTabUrl=_0x153469=>{const _0x4a12d0=a47_0x3735bc,_0x3150cd={};_0x3150cd[_0x4a12d0(0xe4)]=_0x4a12d0(0xd3),_0x3150cd[_0x4a12d0(0x130)]=function(_0x3f8a24,_0x433dbd){return _0x3f8a24===_0x433dbd;},_0x3150cd[_0x4a12d0(0xb8)]=_0x4a12d0(0xe5),_0x3150cd['CngpK']=_0x4a12d0(0xbf),_0x3150cd[_0x4a12d0(0xad)]=function(_0x34026f,_0x56d055){return _0x34026f===_0x56d055;};const _0x28cac3=_0x3150cd;if(!_0x153469)return![];if(_0x153469[_0x4a12d0(0xc2)](_0x28cac3[_0x4a12d0(0xe4)]))return![];if(_0x28cac3['xHJjd'](_0x153469,_0x28cac3[_0x4a12d0(0xb8)])||_0x28cac3['xHJjd'](_0x153469,_0x28cac3[_0x4a12d0(0x140)])||_0x28cac3[_0x4a12d0(0xad)](_0x153469,''))return![];return!![];},pickFreshPage=async _0x26fc52=>{const _0x53275e=a47_0x3735bc,_0xa2a710={'wcDRf':function(_0x4ee7b1,_0xcc161){return _0x4ee7b1(_0xcc161);}};try{const _0x5a7683=await _0x26fc52[_0x53275e(0xf7)]();return _0x5a7683[_0x53275e(0x127)](_0x57f170=>{const _0xc3b655=_0x53275e;try{if(_0xa2a710[_0xc3b655(0xe3)](isPageStale,_0x57f170))return![];return _0xa2a710[_0xc3b655(0xe3)](isUserTabUrl,_0x57f170['url']&&_0x57f170[_0xc3b655(0x131)]());}catch(_0x1a5dcd){return![];}});}catch(_0x130978){return null;}},evalViaFreshCDPSession=async(_0x9ec1c,_0x5d410d)=>{const _0x2012bd=a47_0x3735bc,_0x39b46c={'NKbNw':function(_0x3e88fe,_0x1e758d){return _0x3e88fe===_0x1e758d;},'bQDjm':_0x2012bd(0x12f),'WmfQA':function(_0x23854a,_0xa06946){return _0x23854a===_0xa06946;},'EUPBp':_0x2012bd(0xa2),'YSiTa':_0x2012bd(0x114),'QvAAF':_0x2012bd(0xd3),'sxXYz':function(_0x5ea9b1){return _0x5ea9b1();},'CjIQB':_0x2012bd(0x10a),'wFYkX':_0x2012bd(0x156),'BHADE':function(_0x4b9afc,_0x59d5dc){return _0x4b9afc!==_0x59d5dc;},'zEhNs':_0x2012bd(0xa3),'qeUyV':function(_0x1d8609,_0x4791a0){return _0x1d8609(_0x4791a0);},'fizVQ':function(_0xc4ff2f,_0x2b6504){return _0xc4ff2f(_0x2b6504);}};if(!_0x9ec1c[_0x2012bd(0xfb)]||_0x39b46c[_0x2012bd(0x151)](typeof _0x9ec1c[_0x2012bd(0xfb)],_0x39b46c[_0x2012bd(0x109)]))return undefined;const _0xe84c63=_0x9ec1c[_0x2012bd(0xfb)]();if(!_0xe84c63['targets'])return undefined;const _0x3613c7=_0x9ec1c[_0x2012bd(0x131)]&&_0x9ec1c[_0x2012bd(0x131)]()||'',_0x18ab08=()=>{const _0xbc42d4=_0x2012bd,_0x2e87b7=_0xe84c63[_0xbc42d4(0xca)]();let _0x101c20=_0x2e87b7['find'](_0x223b65=>{const _0x4a5231=_0xbc42d4;try{return _0x39b46c[_0x4a5231(0xd9)](_0x223b65['type'](),_0x39b46c[_0x4a5231(0x9d)])&&_0x39b46c['NKbNw'](_0x223b65[_0x4a5231(0x131)](),_0x3613c7);}catch(_0x4ee9c2){return![];}});if(_0x101c20){const _0x4c2467={};return _0x4c2467['t']=_0x101c20,_0x4c2467[_0xbc42d4(0x147)]=_0x2e87b7[_0xbc42d4(0xb0)],_0x4c2467;}_0x101c20=_0x2e87b7[_0xbc42d4(0x127)](_0x270a48=>{const _0x2bd1a5=_0xbc42d4;try{const _0x9c02ca=_0x270a48['url']()||'';return _0x39b46c[_0x2bd1a5(0xb5)](_0x270a48[_0x2bd1a5(0x13e)](),_0x39b46c[_0x2bd1a5(0x9d)])&&(_0x9c02ca['startsWith'](_0x39b46c[_0x2bd1a5(0x12e)])||_0x9c02ca[_0x2bd1a5(0xc2)](_0x39b46c['YSiTa']))&&!_0x9c02ca['startsWith'](_0x39b46c[_0x2bd1a5(0x129)]);}catch(_0xc777b7){return![];}});const _0x2b1f1b={};return _0x2b1f1b['t']=_0x101c20,_0x2b1f1b[_0xbc42d4(0x147)]=_0x2e87b7[_0xbc42d4(0xb0)],_0x2b1f1b;},_0x4b42cb=async _0x19320b=>{const _0x3e60c4=_0x2012bd,{t:_0x4c1ea6,targetsLen:_0x23530b}=_0x39b46c['sxXYz'](_0x18ab08);if(!_0x4c1ea6){logger[_0x3e60c4(0x9e)](_0x3e60c4(0xe7)+_0x19320b+_0x3e60c4(0x96)+_0x23530b+'\x20targets');const _0x14ce0c={};return _0x14ce0c['ok']=![],_0x14ce0c['transient']=![],_0x14ce0c;}logger[_0x3e60c4(0x9e)]('[STALE-CDP-TRY]\x20attempt='+_0x19320b+_0x3e60c4(0xbb)+(_0x4c1ea6[_0x3e60c4(0x131)]&&_0x4c1ea6[_0x3e60c4(0x131)]()));let _0x301518;try{_0x301518=await _0x4c1ea6[_0x3e60c4(0xae)]();}catch(_0x57dfb5){const _0x2cd367=/navigated or closed|Target closed|Session closed/i[_0x3e60c4(0xde)](_0x57dfb5['message']||'');logger[_0x3e60c4(0x9e)](_0x3e60c4(0x133)+_0x19320b+_0x3e60c4(0xfe)+_0x57dfb5[_0x3e60c4(0xc9)]+'\x20transient='+_0x2cd367);const _0x1948ff={};return _0x1948ff['ok']=![],_0x1948ff[_0x3e60c4(0x10f)]=_0x2cd367,_0x1948ff;}try{const _0xd5a25e={};_0xd5a25e['expression']=_0x5d410d,_0xd5a25e[_0x3e60c4(0xe8)]=!![],_0xd5a25e[_0x3e60c4(0x115)]=!![];const _0x18c7d9=await _0x301518['send'](_0x39b46c[_0x3e60c4(0xdd)],_0xd5a25e);if(_0x18c7d9&&_0x18c7d9[_0x3e60c4(0x143)]){const _0x11c202=_0x18c7d9[_0x3e60c4(0x143)]&&_0x18c7d9[_0x3e60c4(0x143)][_0x3e60c4(0xe6)]||_0x39b46c[_0x3e60c4(0x10d)];logger[_0x3e60c4(0x9e)](_0x3e60c4(0x148)+_0x19320b+'\x20evaluate\x20exception:\x20'+_0x11c202);const _0x4cbaa3={};return _0x4cbaa3['ok']=![],_0x4cbaa3[_0x3e60c4(0x10f)]=![],_0x4cbaa3[_0x3e60c4(0x143)]=_0x11c202,_0x4cbaa3;}logger[_0x3e60c4(0x9e)](_0x3e60c4(0xa5)+_0x19320b+_0x3e60c4(0xab));const _0x5399ea={};return _0x5399ea['ok']=!![],_0x5399ea[_0x3e60c4(0x118)]=_0x18c7d9&&_0x18c7d9[_0x3e60c4(0xd2)]&&_0x18c7d9['result'][_0x3e60c4(0x118)],_0x5399ea;}catch(_0x5235ae){const _0xb7030a=/navigated or closed|Target closed|Session closed/i[_0x3e60c4(0xde)](_0x5235ae[_0x3e60c4(0xc9)]||'');logger[_0x3e60c4(0x9e)]('[STALE-CDP-SEND-ERR]\x20attempt='+_0x19320b+_0x3e60c4(0xbd)+_0x5235ae['message']+'\x20transient='+_0xb7030a);const _0x5db387={};return _0x5db387['ok']=![],_0x5db387[_0x3e60c4(0x10f)]=_0xb7030a,_0x5db387;}finally{try{_0x301518&&_0x301518[_0x3e60c4(0xba)]&&await _0x301518[_0x3e60c4(0xba)]();}catch(_0x569141){}}};let _0x1e2e3c=await _0x39b46c[_0x2012bd(0x11e)](_0x4b42cb,0x1);if(_0x1e2e3c['ok'])return _0x1e2e3c[_0x2012bd(0x118)];if(_0x1e2e3c['transient']){await new Promise(_0x393978=>setTimeout(_0x393978,0x190)),_0x1e2e3c=await _0x39b46c['fizVQ'](_0x4b42cb,0x2);if(_0x1e2e3c['ok'])return _0x1e2e3c[_0x2012bd(0x118)];}if(_0x1e2e3c[_0x2012bd(0x143)]){const _0x1f765c=new Error(_0x2012bd(0x14b)+_0x1e2e3c[_0x2012bd(0x143)]);_0x1f765c[_0x2012bd(0xbe)]=_0x1e2e3c['exceptionDetails'];throw _0x1f765c;}return undefined;};exports[a47_0x3735bc(0x11b)]=async(_0x48f017,_0x12af02,_0x41c663={})=>{const _0x3cb92c=a47_0x3735bc,_0x37a129={'ZnVdO':_0x3cb92c(0x11c),'IoPSW':function(_0x41d15a,_0xe18f30){return _0x41d15a(_0xe18f30);},'lTOCn':'[STALE-PRE]\x20browserStackEvaluate:\x20page\x20ref\x20stale,\x20reselected\x20from\x20browser.pages()','nrAUM':function(_0x3afca5,_0xc9e75a){return _0x3afca5(_0xc9e75a);},'GUFVO':function(_0x131259,_0x5bdfa3){return _0x131259(_0x5bdfa3);},'riuVF':function(_0x5f1a2a,_0x4439fe){return _0x5f1a2a!==_0x4439fe;},'iBqHy':_0x3cb92c(0xf0),'QoDrB':function(_0x54e9fb,_0x50249e){return _0x54e9fb(_0x50249e);},'UPEiZ':_0x3cb92c(0x9c),'TYHnB':function(_0x436050,_0x5dea28,_0x306e1a){return _0x436050(_0x5dea28,_0x306e1a);},'hHhBQ':function(_0xb73a72,_0x29f7f3){return _0xb73a72!==_0x29f7f3;},'okNOj':function(_0xa9c5d7,_0x522ce7){return _0xa9c5d7===_0x522ce7;},'hSgMN':_0x3cb92c(0x158)},_0x4bce98=_0x3cb92c(0xd0)+_0x12af02[_0x3cb92c(0xe0)](/arguments/g,_0x37a129[_0x3cb92c(0x14f)])+_0x3cb92c(0x150)+JSON[_0x3cb92c(0xa0)](_0x41c663)+')';let _0x2d1e55=_0x48f017;if(_0x37a129['IoPSW'](isPageStale,_0x2d1e55)&&_0x48f017[_0x3cb92c(0xfb)]){const _0x1405fd=await _0x37a129[_0x3cb92c(0x106)](pickFreshPage,_0x48f017['browser']());_0x1405fd&&(logger[_0x3cb92c(0x9e)](_0x37a129[_0x3cb92c(0xf1)]),_0x2d1e55=_0x1405fd);}let _0x75aa09;try{_0x75aa09=await _0x2d1e55[_0x3cb92c(0xec)](_0x4bce98);}catch(_0x11bd48){if(_0x37a129[_0x3cb92c(0x104)](isStalePageError,_0x11bd48)&&_0x48f017[_0x3cb92c(0xfb)]){const _0x39c058=await _0x37a129[_0x3cb92c(0x15b)](pickFreshPage,_0x48f017[_0x3cb92c(0xfb)]());if(_0x39c058&&_0x37a129[_0x3cb92c(0x12c)](_0x39c058,_0x2d1e55))logger[_0x3cb92c(0x9e)]('[STALE-RETRY]\x20browserStackEvaluate:\x20retry\x20after\x20stale-page\x20error\x20('+_0x11bd48[_0x3cb92c(0xc9)]+_0x3cb92c(0x9b)+(_0x39c058[_0x3cb92c(0x131)]&&_0x39c058[_0x3cb92c(0x131)]())),_0x75aa09=await _0x39c058[_0x3cb92c(0xec)](_0x4bce98);else{if(_0x48f017[_0x3cb92c(0x14d)]){let _0x455cc8=![];try{logger[_0x3cb92c(0x9e)]('[STALE-RELOAD]\x20browserStackEvaluate:\x20no\x20fresh\x20page\x20after\x20stale-page\x20error\x20('+_0x11bd48['message']+_0x3cb92c(0x13c));const _0x385161={};_0x385161[_0x3cb92c(0x105)]=_0x37a129['iBqHy'],await _0x48f017['reload'](_0x385161);const _0xa9e13=await _0x37a129[_0x3cb92c(0x146)](pickFreshPage,_0x48f017[_0x3cb92c(0xfb)]())||_0x48f017;logger[_0x3cb92c(0x9e)](_0x3cb92c(0xb7)+(_0xa9e13[_0x3cb92c(0x131)]&&_0xa9e13[_0x3cb92c(0x131)]())),_0x75aa09=await _0xa9e13[_0x3cb92c(0xec)](_0x4bce98),_0x455cc8=!![];}catch(_0x90d597){logger[_0x3cb92c(0x9e)](_0x3cb92c(0xf4)+_0x90d597['message']);}if(!_0x455cc8)try{logger[_0x3cb92c(0x9e)](_0x37a129[_0x3cb92c(0x13d)]);const _0x16d6eb=await _0x37a129[_0x3cb92c(0xcc)](evalViaFreshCDPSession,_0x48f017,_0x4bce98);if(_0x37a129['hHhBQ'](_0x16d6eb,undefined))_0x75aa09=_0x16d6eb;else throw _0x11bd48;}catch(_0x28df76){logger[_0x3cb92c(0x9e)](_0x3cb92c(0xa7)+_0x28df76[_0x3cb92c(0xc9)]);throw _0x11bd48;}}else throw _0x11bd48;}}else throw _0x11bd48;}try{if(_0x12af02&&_0x37a129['okNOj'](typeof _0x12af02,_0x37a129[_0x3cb92c(0x108)])){const _0x22f4b1=AUTOMATION_LOG_COMMANDS[_0x3cb92c(0x127)](_0x2e24f9=>_0x12af02[_0x3cb92c(0xa4)](_0x2e24f9));if(_0x22f4b1){const _0x5e3a4d={};_0x5e3a4d[_0x3cb92c(0x9a)]=_0x22f4b1,_0x5e3a4d[_0x3cb92c(0xd1)]=[_0x41c663];const _0x26bc2c={};_0x26bc2c['body']=_0x75aa09;const _0x5814f1={};_0x5814f1[_0x3cb92c(0xd5)]=_0x5e3a4d,_0x5814f1['response']=_0x26bc2c,automationLogger['silly']('['+new Date()['toISOString']()+_0x3cb92c(0xed)+JSON[_0x3cb92c(0xa0)](_0x5814f1));}}}catch(_0x2efd05){logger[_0x3cb92c(0x113)](_0x3cb92c(0x11a)+_0x2efd05['message']);}return _0x75aa09;},exports[a47_0x3735bc(0x144)]=async(_0x3be868,_0x3f8b2c,_0x2af5c3={})=>{const _0x9c4ba2=a47_0x3735bc,_0x55eeab={};_0x55eeab['pRYro']=function(_0x5a52d1,_0x13c02e){return _0x5a52d1===_0x13c02e;},_0x55eeab[_0x9c4ba2(0xff)]=_0x9c4ba2(0x153),_0x55eeab[_0x9c4ba2(0x135)]=_0x9c4ba2(0xf8),_0x55eeab[_0x9c4ba2(0xa1)]=_0x9c4ba2(0x11c);const _0x501f0e=_0x55eeab;if(_0x501f0e['pRYro'](_0x3be868['constructor']['name'],_0x501f0e[_0x9c4ba2(0xff)]))return await _0x3be868[_0x9c4ba2(0x101)](_0x3f8b2c,_0x2af5c3);else{if(_0x501f0e[_0x9c4ba2(0xf5)](_0x3be868[_0x9c4ba2(0x95)][_0x9c4ba2(0xe9)],_0x501f0e[_0x9c4ba2(0x135)]))return await _0x3be868[_0x9c4ba2(0xeb)](_0x9c4ba2(0x13f)+_0x3f8b2c[_0x9c4ba2(0xe0)](/arguments/g,_0x501f0e[_0x9c4ba2(0xa1)])+_0x9c4ba2(0xc3)+JSON['stringify'](_0x2af5c3)+')');}},exports['setAccessibilityCapabilities']=async _0x4f2e50=>{const _0x1e3661=a47_0x3735bc,_0x206c60={};_0x206c60['oDNYS']=_0x1e3661(0x10b),_0x206c60[_0x1e3661(0x125)]=_0x1e3661(0x94),_0x206c60[_0x1e3661(0x107)]=_0x1e3661(0x92),_0x206c60[_0x1e3661(0xa6)]='accessibilityOptions.includeIssueType.needsReview',_0x206c60[_0x1e3661(0x134)]='accessibilityOptions.authToken',_0x206c60[_0x1e3661(0xb9)]=_0x1e3661(0xcf);const _0x3c66b5=_0x206c60;_0x4f2e50[_0x1e3661(0xfc)]&&(_0x4f2e50[_0x1e3661(0xfc)][_0x1e3661(0x117)]&&(_0x4f2e50[_0x3c66b5[_0x1e3661(0xee)]]=_0x4f2e50['accessibilityOptions']['wcagVersion']),_0x4f2e50[_0x1e3661(0xfc)]['scannerProcessingTimeout']&&(_0x4f2e50[_0x3c66b5[_0x1e3661(0x125)]]=_0x4f2e50['accessibilityOptions'][_0x1e3661(0x124)]),_0x4f2e50[_0x1e3661(0xfc)][_0x1e3661(0x137)]&&(_0x4f2e50[_0x3c66b5['BbCXJ']]=_0x4f2e50[_0x1e3661(0xfc)][_0x1e3661(0x137)][_0x1e3661(0x120)],_0x4f2e50[_0x3c66b5[_0x1e3661(0xa6)]]=_0x4f2e50['accessibilityOptions'][_0x1e3661(0x137)][_0x1e3661(0x110)]));const _0x325179=JSON['parse'](process[_0x1e3661(0xdc)][_0x1e3661(0xd7)]||'{}')['scannerVersion'];_0x4f2e50[_0x3c66b5[_0x1e3661(0x134)]]=process[_0x1e3661(0xdc)][_0x1e3661(0xe1)],_0x4f2e50[_0x3c66b5['gekHW']]=_0x325179,delete _0x4f2e50[_0x1e3661(0xfc)];},exports[a47_0x3735bc(0x122)]=async _0x40dfc7=>{const _0x5357e4=a47_0x3735bc,_0x19904a={};_0x19904a['ZGmeN']=_0x5357e4(0xdf);const _0x56c9d5=_0x19904a;if(global[_0x5357e4(0x145)])try{const details={'url':await _0x40dfc7.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(_0x40dfc7,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(_0x40dfc7,scripts.getResults,mobileArgs);},{...details})();return res;}catch(_0x45947a){return logger[_0x5357e4(0x138)]('getAccessibilityResults\x20failed:\x20'+(_0x45947a&&(_0x45947a[_0x5357e4(0xc1)]||_0x45947a[_0x5357e4(0xc9)])||_0x45947a)),[];}else return logger[_0x5357e4(0x139)](_0x56c9d5['ZGmeN']),[];},exports[a47_0x3735bc(0x11f)]=async(_0x4c40a9,_0x15c12e='',_0x320f76={},_0x30c751={})=>{const _0x47719d=a47_0x3735bc;logger[_0x47719d(0x113)](_0x47719d(0xac)+_0x15c12e+'\x20page:\x20'+_0x4c40a9);const _0x571c39={'url':await _0x4c40a9[_0x47719d(0x131)](),'testhub_btcer_uuid':global[_0x47719d(0x14c)]?.[_0x47719d(0xef)]?.['id']};if(global['accessibilityPlatform'])return await PerformanceTester[_0x47719d(0x149)](PerformanceA11yEvents[_0x47719d(0xc7)],async()=>{const _0xbc4f83=_0x47719d,_0x2c8505={};_0x2c8505[_0xbc4f83(0x9a)]=_0x15c12e;const _0x402362=_0x2c8505;_0x320f76&&_0x320f76[_0xbc4f83(0x12a)]&&(_0x402362[_0xbc4f83(0x12a)]=_0x320f76['includePartOfPageScope']);Object['assign'](_0x402362,_0x30c751);const _0x193848=await exports[_0xbc4f83(0x11b)](_0x4c40a9,scripts[_0xbc4f83(0x11f)],_0x402362);return _0x193848;},{'command':_0x15c12e,..._0x571c39})();},exports[a47_0x3735bc(0xcb)]=async _0x288b60=>{const _0x29eadc=a47_0x3735bc,_0x5cb4d5={};_0x5cb4d5[_0x29eadc(0xdb)]=_0x29eadc(0xaf);const _0x5949af=_0x5cb4d5;if(global['accessibilityPlatform'])try{const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};const _SCAN_CAP_MS_SUMMARY=45000;try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');const _scanPromise=exports.browserStackEvaluate(_0x288b60,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(_0x288b60,scripts.getResultsSummary,mobileArgs);})();if(summaryResults&&typeof summaryResults==='object'&&global.__bstackA11yScanCapHit){summaryResults.degraded=true;summaryResults.degradedReason=global.__bstackA11yScanCapHit.reason;}return summaryResults;}catch(_0xf1c724){return logger[_0x29eadc(0x138)]('getAccessibilityResultsSummary\x20failed:\x20'+(_0xf1c724&&(_0xf1c724[_0x29eadc(0xc1)]||_0xf1c724[_0x29eadc(0xc9)])||_0xf1c724)),{};}else return logger['warn'](_0x5949af[_0x29eadc(0xdb)]),{};},exports[a47_0x3735bc(0xcd)]=_0xfb6db2=>{const _0x365c5b=a47_0x3735bc,_0x53d6a0={'cntOn':_0x365c5b(0xd8),'qkunX':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','TGgUe':function(_0x353dd1,_0x297a34){return _0x353dd1!==_0x297a34;},'JBLKN':_0x365c5b(0xea),'STwnh':function(_0xdcdae9){return _0xdcdae9();},'MpxwL':_0x365c5b(0xaa)};try{if(global[_0x365c5b(0xb3)])return logger[_0x365c5b(0x113)](_0x53d6a0[_0x365c5b(0x102)]),!![];const _0x48ec04=_0xfb6db2[_0x365c5b(0xfb)],_0xf86c5b=_0xfb6db2[_0x365c5b(0xa8)];if(!accessibilityHelper[_0x365c5b(0x11d)](_0x48ec04))return logger['warn'](_0x53d6a0[_0x365c5b(0x121)]),![];if(_0x53d6a0['TGgUe'](_0xf86c5b,_0x53d6a0[_0x365c5b(0x142)])){const _0x3a0016=_0x53d6a0['STwnh'](isBrowserstackInfra),_0x1a6fb1=accessibilityHelper[_0x365c5b(0xc8)](_0x48ec04,_0x3a0016),_0x4758b4=accessibilityHelper['getBrowserDisplayName'](_0x48ec04);if(!accessibilityHelper['isVersionSupported'](_0xf86c5b,_0x1a6fb1)){const _0x5c56ba=_0x3a0016?'':_0x53d6a0[_0x365c5b(0x97)];return logger[_0x365c5b(0x139)](_0x365c5b(0x126)+_0x4758b4+_0x365c5b(0xc6)+_0x1a6fb1+'\x20or\x20higher\x20'+_0x5c56ba+'.'),![];}}}catch(_0x29c864){logger[_0x365c5b(0x113)](_0x365c5b(0xd4)+util['format'](_0x29c864));}return!![];},exports['processAccessibilityCaps']=(_0x148810,_0x2f782c,_0x440780)=>{const _0x5d32fa=a47_0x3735bc,_0x340209={'JCxge':_0x5d32fa(0x13a),'DsklR':function(_0x1992c3){return _0x1992c3();},'SvlUk':_0x5d32fa(0x12b),'DJkzo':_0x5d32fa(0x100),'guAwl':function(_0x225738,_0x2bb0f0){return _0x225738!==_0x2bb0f0;},'bWVQF':_0x5d32fa(0xea),'OygcO':_0x5d32fa(0xaa),'iLwuS':function(_0xd47811,_0x549dd2){return _0xd47811(_0x549dd2);},'omDLA':function(_0x2561d4,_0x11951b){return _0x2561d4===_0x11951b;},'WUrrN':_0x5d32fa(0xa9),'EBQoL':_0x5d32fa(0x14a),'VGJjI':_0x5d32fa(0x154),'sIYfz':_0x5d32fa(0xc0),'BBNpw':_0x5d32fa(0xc4),'wvwxk':function(_0x5f3545,_0x128ac7){return _0x5f3545+_0x128ac7;}};try{if(_0x340209['DsklR'](isAccessibilityAutomationSession)){global[_0x5d32fa(0x145)]=!![];!_0x148810[_0x340209[_0x5d32fa(0x10c)]]&&(global[_0x5d32fa(0x145)]=![]);const _0x4443a3=_0x148810[_0x5d32fa(0xd6)]||_0x148810['browser'],_0x3187e0=_0x148810['browser_version'];!accessibilityHelper[_0x5d32fa(0x11d)](_0x4443a3)&&(logger[_0x5d32fa(0x139)](_0x340209['DJkzo']),global[_0x5d32fa(0x145)]=![]);if(_0x340209[_0x5d32fa(0x111)](_0x3187e0,_0x340209['bWVQF'])){const _0x1497c7=_0x340209[_0x5d32fa(0x141)](isBrowserstackInfra),_0x1e16d7=accessibilityHelper[_0x5d32fa(0xc8)](_0x4443a3,_0x1497c7),_0x311db9=accessibilityHelper[_0x5d32fa(0x93)](_0x4443a3);if(!accessibilityHelper[_0x5d32fa(0x14e)](_0x3187e0,_0x1e16d7)){const _0x3b1916=_0x1497c7?'':_0x340209[_0x5d32fa(0x10e)];logger[_0x5d32fa(0x139)](_0x5d32fa(0x126)+_0x311db9+'\x20browser\x20version\x20'+_0x1e16d7+_0x5d32fa(0x152)+_0x3b1916+'.'),global[_0x5d32fa(0x145)]=![];}}if(!_0x340209[_0x5d32fa(0x157)](isUndefined,_0x148810['deviceName'])){const _0x30c8a2=(_0x148810['os']||'')['toLowerCase'](),_0x1c24a5=(_0x148810[_0x5d32fa(0xd6)]||_0x148810[_0x5d32fa(0xfb)]||'')['toLowerCase'](),_0x47004c=_0x340209['omDLA'](_0x30c8a2,_0x340209['WUrrN'])&&[_0x340209['EBQoL'],_0x340209[_0x5d32fa(0x103)],_0x340209['sIYfz']][_0x5d32fa(0xa4)](_0x1c24a5);if(!_0x47004c)logger[_0x5d32fa(0x139)](_0x340209['BBNpw']),global[_0x5d32fa(0x145)]=![];else!accessibilityHelper['isMobileScanningEnabledForGroup']()&&(logger[_0x5d32fa(0x139)](accessibilityHelper[_0x5d32fa(0x155)]),global['accessibilityPlatform']=![]);}if(!global[_0x5d32fa(0x145)]){_0x148810[_0x340209[_0x5d32fa(0x10c)]]=![],Object[_0x5d32fa(0x98)](_0x148810)[_0x5d32fa(0xda)](_0x1dde80=>{const _0x272fb7=_0x5d32fa;_0x1dde80[_0x272fb7(0xc2)](_0x340209[_0x272fb7(0xf3)])&&delete _0x148810[_0x1dde80];});const _0x2c7858=_0x340209[_0x5d32fa(0xfa)](_0x2f782c,_0x340209[_0x5d32fa(0x157)](encodeURIComponent,JSON['stringify'](_0x148810)));_0x440780&&(_0x440780['currentTest']['testInfo']['project']['use']['connectOptions']['wsEndpoint']=_0x2c7858,_0x440780[_0x5d32fa(0x159)][_0x5d32fa(0x119)][_0x5d32fa(0x132)][_0x5d32fa(0xf6)][_0x5d32fa(0xc5)]=_0x2c7858);}}else global['accessibilityPlatform']=![];}catch(_0x1f39d9){logger[_0x5d32fa(0x113)](_0x5d32fa(0x128)+util[_0x5d32fa(0xfd)](_0x1f39d9));}};function a47_0x2642(){const _0x14a4b9=['accessibilityOptions.scannerVersion','(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','parameters','result','devtools://','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','request','browserName','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','platformValidation:\x20Mobile\x20platform\x20already\x20validated.','NKbNw','forEach','tzFTS','env','CjIQB','test','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','replace','BS_A11Y_JWT','../../helpers/accessibility-automation/scripts','wcDRf','DbSjZ','about:blank','text','[STALE-CDP-NO-TARGET]\x20attempt=','awaitPromise','name','latest','executeScript','evaluate','][\x20SDK-AUTOMATION\x20]\x20','oDNYS','currentTest','domcontentloaded','lTOCn','util','JCxge','[STALE-RELOAD-ERR]\x20reload/retry\x20failed:\x20','pRYro','connectOptions','pages','Playwright','2834574wbqtgF','wvwxk','browser','accessibilityOptions','format','\x20createCDPSession\x20failed:\x20','ZktgM','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','executeAsyncScript','cntOn','VGJjI','nrAUM','waitUntil','IoPSW','BbCXJ','hSgMN','zEhNs','Runtime.evaluate','accessibilityOptions.wcagVersion','SvlUk','wFYkX','OygcO','transient','needsReview','guAwl','isDetached','debug','https://','returnByValue','../../helpers/performance/constants','wcagVersion','value','project','[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20','browserStackEvaluate','bstackSdkArgs','isBrowserSupportedForAccessibility','qeUyV','performScan','bestPractice','qkunX','getAccessibilityResults','456IrvMWh','scannerProcessingTimeout','gpkgJ','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','find','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','QvAAF','includePartOfPageScope','browserstack.accessibility','riuVF','2149800ovEwOc','EUPBp','page','xHJjd','url','use','[STALE-CDP-SESSION-ERR]\x20attempt=','icsKa','PvodP','164115oRsaCn','includeIssueType','error','warn','browserstack.accessibilityOptions','1744624lfIAaG',')\x20—\x20reloading\x20page\x20to\x20reset\x20frame','UPEiZ','type','(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','CngpK','DsklR','JBLKN','exceptionDetails','browserStackExecuteDriver','accessibilityPlatform','QoDrB','targetsLen','[STALE-CDP-EX]\x20attempt=','measureWrapper','chrome','evalViaFreshCDPSession:\x20Runtime.evaluate\x20exception\x20—\x20','__workerDetails','reload','isVersionSupported','ZnVdO','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','BHADE','\x20or\x20higher\x20','WebDriver','playwright-chromium','MOBILE_SCANNING_DISABLED_WARNING','unknown','iLwuS','string','workerInfo','RJqSG','GUFVO','accessibilityOptions.includeIssueType.bestPractice','getBrowserDisplayName','accessibilityOptions.scannerProcessingTimeout','constructor','\x20no\x20AUT\x20target\x20found\x20among\x20','MpxwL','keys','../../helpers/accessibility-automation/helper','command',')\x20—\x20fresh\x20page\x20url=','[STALE-CDP]\x20falling\x20back\x20to\x20fresh-CDP-session\x20evaluate','bQDjm','info','41678ofiquN','stringify','tQxGj','http://','function','includes','[STALE-CDP-OK]\x20attempt=','MSFXc','[STALE-CDP-ERR]\x20cdp-session\x20fallback\x20failed:\x20','browser_version','android','on\x20non-BrowserStack\x20infrastructure\x20','\x20evaluate\x20returned\x20via\x20fresh\x20CDP\x20session','Performing\x20scan\x20with\x20method:\x20','JVzyA','createCDPSession','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','length','2924670tvsxmq','21830KhGHMW','isMobilePlatform','1208GjjPzV','WmfQA','../../helpers/logger','[STALE-RELOAD-RETRY]\x20retry\x20after\x20reload\x20—\x20page\x20url=','nqFfQ','gekHW','detach','\x20using\x20target\x20url=','winstonLogger','\x20send\x20failed:\x20','cdpExceptionDetails','data:,','chromium','stack','startsWith','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','wsEndpoint','\x20browser\x20version\x20','PERFORM_SCAN','getMinVersionForBrowser','message','targets','getAccessibilityResultsSummary','TYHnB','platformValidation','../../helpers/helper'];a47_0x2642=function(){return _0x14a4b9;};return a47_0x2642();}
1
+ function a47_0xb2d3(_0x1def96,_0x4f35f2){const _0x1ac911=a47_0x1ac9();return a47_0xb2d3=function(_0xb2d34f,_0x1bb8e6){_0xb2d34f=_0xb2d34f-0x106;let _0xd39ff9=_0x1ac911[_0xb2d34f];return _0xd39ff9;},a47_0xb2d3(_0x1def96,_0x4f35f2);}const a47_0x3f45c5=a47_0xb2d3;(function(_0x59a9d3,_0x11d8d0){const _0x4db648=a47_0xb2d3,_0x4a73a0=_0x59a9d3();while(!![]){try{const _0x2c4022=-parseInt(_0x4db648(0x17c))/0x1+-parseInt(_0x4db648(0x162))/0x2*(parseInt(_0x4db648(0x16a))/0x3)+-parseInt(_0x4db648(0x1c6))/0x4*(-parseInt(_0x4db648(0x1c8))/0x5)+parseInt(_0x4db648(0x10f))/0x6*(-parseInt(_0x4db648(0x174))/0x7)+parseInt(_0x4db648(0x1d8))/0x8*(parseInt(_0x4db648(0x1c3))/0x9)+parseInt(_0x4db648(0x1c1))/0xa+-parseInt(_0x4db648(0x1b7))/0xb*(parseInt(_0x4db648(0x1c0))/0xc);if(_0x2c4022===_0x11d8d0)break;else _0x4a73a0['push'](_0x4a73a0['shift']());}catch(_0x14d4fe){_0x4a73a0['push'](_0x4a73a0['shift']());}}}(a47_0x1ac9,0x3b75f));function a47_0x1ac9(){const _0x309b2b=['wbkmw','884448BIRRQC','stringify','../../helpers/performance/constants','8qVSaxU','winstonLogger','1180090HQxWyu','waitUntil','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','platformValidation','pfxCB','info','HHOJj','BFRIl','project','browserStackExecuteDriver','needsReview','https://','length','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','nLMBp','stack','24vloxLT','bstackSdkArgs','ZYWvU','string','accessibilityOptions.wcagVersion','cPgFu','browser','includePartOfPageScope','[STALE-CDP-ERR]\x20cdp-session\x20fallback\x20failed:\x20','accessibilityPlatform','detach','parse','util','isBrowserSupportedForAccessibility','reload','6gkSWpk','body','DOmfd','zWQJV','qMEeC','OopKf','platformValidation:\x20Mobile\x20platform\x20already\x20validated.','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','on\x20non-BrowserStack\x20infrastructure\x20','pYlIo','Runtime.evaluate','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','startsWith','][\x20SDK-AUTOMATION\x20]\x20','use','LpZJx','parameters','accessibilityOptions.scannerVersion','devtools://','playwright-chromium','\x20targets','exceptionDetails','OQRLU','kpfgc',')\x20—\x20fresh\x20page\x20url=','includeIssueType','testInfo','\x20evaluate\x20exception:\x20','chromium','value','ZZUSv','processAccessibilityCaps','getAccessibilityResults','\x20browser\x20version\x20','UYuNa','function','isVersionSupported','isClosed','accessibilityOptions.scannerProcessingTimeout','pHjTd','targetsLen','browserName','replace','targets','../../helpers/logger','Dtqlr','debug','accessibilityOptions.includeIssueType.needsReview','latest','qMMkR','LnySS','isMobilePlatform','CDSgJ','zOVkP','createCDPSession','command','\x20or\x20higher\x20','(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','message','rlOjw','MOBILE_SCANNING_DISABLED_WARNING','browserstack.accessibility','ohmip','../../helpers/helper','wcagVersion','measureWrapper','../../helpers/accessibility-automation/helper','[STALE-RELOAD]\x20browserStackEvaluate:\x20no\x20fresh\x20page\x20after\x20stale-page\x20error\x20(','TBceY','chrome','JdtdF','\x20page:\x20','RIxOH','scannerVersion','page','\x20send\x20failed:\x20','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','fwJdy','url','__workerDetails','browserStackEvaluate','KXXoJ','[STALE-RETRY]\x20browserStackEvaluate:\x20retry\x20after\x20stale-page\x20error\x20(','3852mKSFfl','awaitPromise','setAccessibilityCapabilities','format','QbqUE','GVSko','yYuGt','eWNsq','18YiaibE','browserstack.accessibilityOptions','ldYlp','jgWKV','constructor','accessibilityOptions','HOPKr','wsEndpoint','zsgJi','\x20evaluate\x20returned\x20via\x20fresh\x20CDP\x20session','2068227MAGiQO','wsPqt','../../helpers/accessibility-automation/scripts','\x20no\x20AUT\x20target\x20found\x20among\x20','currentTest','PERFORM_SCAN','env','http://','150379hBmEci','find','ZwQIe',')\x20—\x20reloading\x20page\x20to\x20reset\x20frame','warn','result','keys','getBrowserDisplayName','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','[STALE-RELOAD-RETRY]\x20retry\x20after\x20reload\x20—\x20page\x20url=','(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','zEvNX','pages','BS_A11Y_JWT','isDetached','forEach','getAccessibilityResultsSummary\x20failed:\x20','OezXm','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','mainFrame','evaluate','android','workerInfo','[STALE-CDP-NO-TARGET]\x20attempt=','[STALE-CDP-TRY]\x20attempt=','cEmQh','bestPractice','test','[STALE-CDP-SEND-ERR]\x20attempt=','name','RPLWP','JrNgE','nflNg','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','JufXa','unknown','VtwbV','about:blank','toLowerCase','transient','type','performScan','\x20using\x20target\x20url=','Heejb','[STALE-CDP]\x20falling\x20back\x20to\x20fresh-CDP-session\x20evaluate','request','KOmVj','executeScript','silly','cygcS','getMinVersionForBrowser','zOmRi','oEsIP','SMEDb','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','iPWHD','IeVUN','scannerProcessingTimeout','Playwright','11SEBMyY','includes','CtbFt','ROTlo','browser_version','[STALE-CDP-EX]\x20attempt=','LjXnH','WebDriver','EpVwN','3903972QbRVVA','2594260clwxZm'];a47_0x1ac9=function(){return _0x309b2b;};return a47_0x1ac9();}const util=require(a47_0x3f45c5(0x10c)),logger=require(a47_0x3f45c5(0x13b))[a47_0x3f45c5(0x1c7)],{automationLogger}=require(a47_0x3f45c5(0x13b)),{isAccessibilityAutomationSession}=require(a47_0x3f45c5(0x151)),{isUndefined,isBrowserstackInfra}=require(a47_0x3f45c5(0x14e)),scripts=require(a47_0x3f45c5(0x176)),PerformanceTester=require('../../helpers/performance/performance-tester'),{A11Y_EVENTS:PerformanceA11yEvents}=require(a47_0x3f45c5(0x1c5)),accessibilityHelper=require(a47_0x3f45c5(0x151)),{AUTOMATION_LOG_COMMANDS}=require('../utils/constants'),isStalePageError=_0x403d16=>{const _0xacc06a=a47_0x3f45c5,_0x2cb83d={'VtwbV':function(_0x1dae68,_0x4aa42b){return _0x1dae68(_0x4aa42b);}},_0x19021c=_0x403d16&&_0x403d16['message']||_0x2cb83d[_0xacc06a(0x1a0)](String,_0x403d16);return/Target closed|detached [Ff]rame|Execution context was destroyed, most likely because of a navigation/[_0xacc06a(0x197)](_0x19021c);},isPageStale=_0x6bf746=>{const _0x317a09=a47_0x3f45c5;try{if(_0x6bf746[_0x317a09(0x134)]&&_0x6bf746['isClosed']())return!![];const _0x1cefd0=_0x6bf746['mainFrame']&&_0x6bf746[_0x317a09(0x18f)]();if(_0x1cefd0&&_0x1cefd0['isDetached']&&_0x1cefd0[_0x317a09(0x18a)]())return!![];}catch(_0x3f257c){}return![];},isUserTabUrl=_0x4d99f1=>{const _0x57d2b9=a47_0x3f45c5,_0x5150cd={};_0x5150cd[_0x57d2b9(0x1b0)]=_0x57d2b9(0x121),_0x5150cd[_0x57d2b9(0x13c)]=function(_0x16af74,_0xa43708){return _0x16af74===_0xa43708;},_0x5150cd['QbqUE']=_0x57d2b9(0x1a1),_0x5150cd[_0x57d2b9(0x1bd)]='data:,';const _0x57d2df=_0x5150cd;if(!_0x4d99f1)return![];if(_0x4d99f1[_0x57d2b9(0x11b)](_0x57d2df[_0x57d2b9(0x1b0)]))return![];if(_0x57d2df['Dtqlr'](_0x4d99f1,_0x57d2df[_0x57d2b9(0x166)])||_0x57d2df[_0x57d2b9(0x13c)](_0x4d99f1,_0x57d2df[_0x57d2b9(0x1bd)])||_0x57d2df[_0x57d2b9(0x13c)](_0x4d99f1,''))return![];return!![];},pickFreshPage=async _0xda4cb=>{const _0x3b4636=a47_0x3f45c5,_0x2e9bbd={'zWQJV':function(_0x3768d7,_0x5f1a5e){return _0x3768d7(_0x5f1a5e);},'EpVwN':function(_0x23de6b,_0x1ca8f){return _0x23de6b(_0x1ca8f);}};try{const _0x2ccbf1=await _0xda4cb[_0x3b4636(0x188)]();return _0x2ccbf1['find'](_0x40c598=>{const _0x12744e=_0x3b4636;try{if(_0x2e9bbd[_0x12744e(0x112)](isPageStale,_0x40c598))return![];return _0x2e9bbd[_0x12744e(0x1bf)](isUserTabUrl,_0x40c598[_0x12744e(0x15d)]&&_0x40c598['url']());}catch(_0x2e4a79){return![];}});}catch(_0x2407df){return null;}},evalViaFreshCDPSession=async(_0x1cc739,_0x70524f)=>{const _0x177039=a47_0x3f45c5,_0x8d71e={'LpZJx':function(_0x11d767,_0xd56bd6){return _0x11d767===_0xd56bd6;},'yYuGt':_0x177039(0x159),'OezXm':_0x177039(0x17b),'pHjTd':_0x177039(0x1d3),'ZZUSv':_0x177039(0x121),'nLMBp':function(_0x434e40){return _0x434e40();},'OopKf':_0x177039(0x119),'eaQbd':_0x177039(0x19f),'HOPKr':function(_0x4319c4,_0x5ae7ce){return _0x4319c4!==_0x5ae7ce;},'CDSgJ':_0x177039(0x132),'cygcS':function(_0x125e89,_0x20c7b5){return _0x125e89(_0x20c7b5);}};if(!_0x1cc739[_0x177039(0x106)]||_0x8d71e[_0x177039(0x170)](typeof _0x1cc739[_0x177039(0x106)],_0x8d71e[_0x177039(0x143)]))return undefined;const _0x53fd48=_0x1cc739[_0x177039(0x106)]();if(!_0x53fd48[_0x177039(0x13a)])return undefined;const _0x3cc86e=_0x1cc739[_0x177039(0x15d)]&&_0x1cc739['url']()||'',_0x2271e3=()=>{const _0x28483d=_0x177039,_0xcb48a7=_0x53fd48['targets']();let _0x4a49cf=_0xcb48a7['find'](_0x43de5b=>{const _0x580d24=a47_0xb2d3;try{return _0x8d71e['LpZJx'](_0x43de5b[_0x580d24(0x1a4)](),_0x8d71e[_0x580d24(0x168)])&&_0x8d71e[_0x580d24(0x11e)](_0x43de5b[_0x580d24(0x15d)](),_0x3cc86e);}catch(_0x42c96b){return![];}});if(_0x4a49cf){const _0x1ca4cd={};return _0x1ca4cd['t']=_0x4a49cf,_0x1ca4cd[_0x28483d(0x137)]=_0xcb48a7[_0x28483d(0x1d4)],_0x1ca4cd;}_0x4a49cf=_0xcb48a7[_0x28483d(0x17d)](_0x139280=>{const _0x4668c7=_0x28483d;try{const _0x17e4df=_0x139280[_0x4668c7(0x15d)]()||'';return _0x8d71e[_0x4668c7(0x11e)](_0x139280[_0x4668c7(0x1a4)](),_0x8d71e[_0x4668c7(0x168)])&&(_0x17e4df[_0x4668c7(0x11b)](_0x8d71e[_0x4668c7(0x18d)])||_0x17e4df[_0x4668c7(0x11b)](_0x8d71e[_0x4668c7(0x136)]))&&!_0x17e4df[_0x4668c7(0x11b)](_0x8d71e[_0x4668c7(0x12d)]);}catch(_0x3ff62c){return![];}});const _0x52a73b={};return _0x52a73b['t']=_0x4a49cf,_0x52a73b[_0x28483d(0x137)]=_0xcb48a7['length'],_0x52a73b;},_0x3c24f5=async _0x36cc39=>{const _0x2fc635=_0x177039,{t:_0x4bf8d5,targetsLen:_0x3f3930}=_0x8d71e[_0x2fc635(0x1d6)](_0x2271e3);if(!_0x4bf8d5){logger[_0x2fc635(0x1cd)](_0x2fc635(0x193)+_0x36cc39+_0x2fc635(0x177)+_0x3f3930+_0x2fc635(0x123));const _0x35652c={};return _0x35652c['ok']=![],_0x35652c[_0x2fc635(0x1a3)]=![],_0x35652c;}logger[_0x2fc635(0x1cd)](_0x2fc635(0x194)+_0x36cc39+_0x2fc635(0x1a6)+(_0x4bf8d5['url']&&_0x4bf8d5[_0x2fc635(0x15d)]()));let _0x115cf5;try{_0x115cf5=await _0x4bf8d5[_0x2fc635(0x145)]();}catch(_0xe469a4){const _0x2d7c23=/navigated or closed|Target closed|Session closed/i['test'](_0xe469a4[_0x2fc635(0x149)]||'');logger[_0x2fc635(0x1cd)]('[STALE-CDP-SESSION-ERR]\x20attempt='+_0x36cc39+'\x20createCDPSession\x20failed:\x20'+_0xe469a4[_0x2fc635(0x149)]+'\x20transient='+_0x2d7c23);const _0x44e4c4={};return _0x44e4c4['ok']=![],_0x44e4c4[_0x2fc635(0x1a3)]=_0x2d7c23,_0x44e4c4;}try{const _0x1bd5ec={};_0x1bd5ec['expression']=_0x70524f,_0x1bd5ec[_0x2fc635(0x163)]=!![],_0x1bd5ec['returnByValue']=!![];const _0x692960=await _0x115cf5['send'](_0x8d71e[_0x2fc635(0x114)],_0x1bd5ec);if(_0x692960&&_0x692960[_0x2fc635(0x124)]){const _0x5273dc=_0x692960['exceptionDetails']&&_0x692960[_0x2fc635(0x124)]['text']||_0x8d71e['eaQbd'];logger[_0x2fc635(0x1cd)](_0x2fc635(0x1bc)+_0x36cc39+_0x2fc635(0x12a)+_0x5273dc);const _0x172f3b={};return _0x172f3b['ok']=![],_0x172f3b['transient']=![],_0x172f3b['exceptionDetails']=_0x5273dc,_0x172f3b;}logger[_0x2fc635(0x1cd)]('[STALE-CDP-OK]\x20attempt='+_0x36cc39+_0x2fc635(0x173));const _0x1af1c1={};return _0x1af1c1['ok']=!![],_0x1af1c1[_0x2fc635(0x12c)]=_0x692960&&_0x692960[_0x2fc635(0x181)]&&_0x692960['result'][_0x2fc635(0x12c)],_0x1af1c1;}catch(_0x27f815){const _0x328c1d=/navigated or closed|Target closed|Session closed/i['test'](_0x27f815[_0x2fc635(0x149)]||'');logger['info'](_0x2fc635(0x198)+_0x36cc39+_0x2fc635(0x15a)+_0x27f815['message']+'\x20transient='+_0x328c1d);const _0x53512c={};return _0x53512c['ok']=![],_0x53512c[_0x2fc635(0x1a3)]=_0x328c1d,_0x53512c;}finally{try{_0x115cf5&&_0x115cf5['detach']&&await _0x115cf5[_0x2fc635(0x10a)]();}catch(_0x15ecd8){}}};let _0x22120e=await _0x8d71e[_0x177039(0x1ad)](_0x3c24f5,0x1);if(_0x22120e['ok'])return _0x22120e[_0x177039(0x12c)];if(_0x22120e[_0x177039(0x1a3)]){await new Promise(_0x1d92ab=>setTimeout(_0x1d92ab,0x190)),_0x22120e=await _0x8d71e[_0x177039(0x1ad)](_0x3c24f5,0x2);if(_0x22120e['ok'])return _0x22120e[_0x177039(0x12c)];}if(_0x22120e[_0x177039(0x124)]){const _0x315fe6=new Error('evalViaFreshCDPSession:\x20Runtime.evaluate\x20exception\x20—\x20'+_0x22120e[_0x177039(0x124)]);_0x315fe6['cdpExceptionDetails']=_0x22120e[_0x177039(0x124)];throw _0x315fe6;}return undefined;};exports['browserStackEvaluate']=async(_0x277629,_0x1b5c0f,_0x138891={})=>{const _0x595db1=a47_0x3f45c5,_0x2a6468={'KXXoJ':_0x595db1(0x1d9),'RmHKq':function(_0x3df91f,_0x575ebe){return _0x3df91f(_0x575ebe);},'rlOjw':function(_0x5a8eb9,_0x3a8b2a){return _0x5a8eb9(_0x3a8b2a);},'qtuAQ':'[STALE-PRE]\x20browserStackEvaluate:\x20page\x20ref\x20stale,\x20reselected\x20from\x20browser.pages()','wbkmw':function(_0x9d176e,_0x386eea){return _0x9d176e(_0x386eea);},'BFRIl':function(_0x35cedf,_0x335f56){return _0x35cedf(_0x335f56);},'iPWHD':function(_0x117bfe,_0x4a663e){return _0x117bfe!==_0x4a663e;},'JufXa':'domcontentloaded','UYuNa':function(_0x1700d9,_0x5f565f){return _0x1700d9(_0x5f565f);},'DOmfd':_0x595db1(0x1a8),'AtQGJ':function(_0x2c29c8,_0x30d2ad,_0x1b571e){return _0x2c29c8(_0x30d2ad,_0x1b571e);},'eWNsq':function(_0x43b178,_0x770ec){return _0x43b178===_0x770ec;},'Heejb':_0x595db1(0x1db)},_0x3576f8=_0x595db1(0x186)+_0x1b5c0f[_0x595db1(0x139)](/arguments/g,_0x2a6468[_0x595db1(0x160)])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0x595db1(0x1c4)](_0x138891)+')';let _0x61e3e4=_0x277629;if(_0x2a6468['RmHKq'](isPageStale,_0x61e3e4)&&_0x277629['browser']){const _0xe4e75d=await _0x2a6468[_0x595db1(0x14a)](pickFreshPage,_0x277629[_0x595db1(0x106)]());_0xe4e75d&&(logger['info'](_0x2a6468['qtuAQ']),_0x61e3e4=_0xe4e75d);}let _0x763d89;try{_0x763d89=await _0x61e3e4[_0x595db1(0x190)](_0x3576f8);}catch(_0x22fb18){if(_0x2a6468[_0x595db1(0x1c2)](isStalePageError,_0x22fb18)&&_0x277629[_0x595db1(0x106)]){const _0x40fd72=await _0x2a6468[_0x595db1(0x1cf)](pickFreshPage,_0x277629[_0x595db1(0x106)]());if(_0x40fd72&&_0x2a6468[_0x595db1(0x1b3)](_0x40fd72,_0x61e3e4))logger[_0x595db1(0x1cd)](_0x595db1(0x161)+_0x22fb18[_0x595db1(0x149)]+_0x595db1(0x127)+(_0x40fd72[_0x595db1(0x15d)]&&_0x40fd72[_0x595db1(0x15d)]())),_0x763d89=await _0x40fd72['evaluate'](_0x3576f8);else{if(_0x277629[_0x595db1(0x10e)]){let _0x49bc34=![];try{logger[_0x595db1(0x1cd)](_0x595db1(0x152)+_0x22fb18[_0x595db1(0x149)]+_0x595db1(0x17f));const _0x247f41={};_0x247f41[_0x595db1(0x1c9)]=_0x2a6468[_0x595db1(0x19e)],await _0x277629[_0x595db1(0x10e)](_0x247f41);const _0x3acc66=await _0x2a6468[_0x595db1(0x131)](pickFreshPage,_0x277629['browser']())||_0x277629;logger['info'](_0x595db1(0x185)+(_0x3acc66[_0x595db1(0x15d)]&&_0x3acc66[_0x595db1(0x15d)]())),_0x763d89=await _0x3acc66[_0x595db1(0x190)](_0x3576f8),_0x49bc34=!![];}catch(_0x3ee4d6){logger['info']('[STALE-RELOAD-ERR]\x20reload/retry\x20failed:\x20'+_0x3ee4d6[_0x595db1(0x149)]);}if(!_0x49bc34)try{logger['info'](_0x2a6468[_0x595db1(0x111)]);const _0x73041=await _0x2a6468['AtQGJ'](evalViaFreshCDPSession,_0x277629,_0x3576f8);if(_0x2a6468[_0x595db1(0x1b3)](_0x73041,undefined))_0x763d89=_0x73041;else throw _0x22fb18;}catch(_0x38514c){logger[_0x595db1(0x1cd)](_0x595db1(0x108)+_0x38514c[_0x595db1(0x149)]);throw _0x22fb18;}}else throw _0x22fb18;}}else throw _0x22fb18;}try{if(_0x1b5c0f&&_0x2a6468[_0x595db1(0x169)](typeof _0x1b5c0f,_0x2a6468[_0x595db1(0x1a7)])){const _0x19c40c=AUTOMATION_LOG_COMMANDS[_0x595db1(0x17d)](_0x53b7e9=>_0x1b5c0f['includes'](_0x53b7e9));if(_0x19c40c){const _0x1c683c={};_0x1c683c[_0x595db1(0x146)]=_0x19c40c,_0x1c683c[_0x595db1(0x11f)]=[_0x138891];const _0x28f888={};_0x28f888[_0x595db1(0x110)]=_0x763d89;const _0x5a8a3a={};_0x5a8a3a[_0x595db1(0x1a9)]=_0x1c683c,_0x5a8a3a['response']=_0x28f888,automationLogger[_0x595db1(0x1ac)]('['+new Date()['toISOString']()+_0x595db1(0x11c)+JSON[_0x595db1(0x1c4)](_0x5a8a3a));}}}catch(_0xaba0f1){logger[_0x595db1(0x13d)]('[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20'+_0xaba0f1['message']);}return _0x763d89;},exports[a47_0x3f45c5(0x1d1)]=async(_0x4b02e6,_0x51514f,_0x16d8dc={})=>{const _0x106452=a47_0x3f45c5,_0x4ebe62={};_0x4ebe62[_0x106452(0x16d)]=function(_0x92407d,_0x366e12){return _0x92407d===_0x366e12;},_0x4ebe62[_0x106452(0x1af)]=_0x106452(0x1be),_0x4ebe62['cPgFu']=function(_0x128e13,_0x46bf84){return _0x128e13===_0x46bf84;},_0x4ebe62[_0x106452(0x19a)]=_0x106452(0x1b6),_0x4ebe62[_0x106452(0x144)]=_0x106452(0x1d9);const _0x18b358=_0x4ebe62;if(_0x18b358[_0x106452(0x16d)](_0x4b02e6[_0x106452(0x16e)][_0x106452(0x199)],_0x18b358[_0x106452(0x1af)]))return await _0x4b02e6['executeAsyncScript'](_0x51514f,_0x16d8dc);else{if(_0x18b358[_0x106452(0x1dd)](_0x4b02e6['constructor'][_0x106452(0x199)],_0x18b358[_0x106452(0x19a)]))return await _0x4b02e6[_0x106452(0x1ab)](_0x106452(0x148)+_0x51514f['replace'](/arguments/g,_0x18b358['zOVkP'])+_0x106452(0x184)+JSON[_0x106452(0x1c4)](_0x16d8dc)+')');}},exports[a47_0x3f45c5(0x164)]=async _0x2e3af7=>{const _0x3b666b=a47_0x3f45c5,_0x5c8a30={};_0x5c8a30[_0x3b666b(0x113)]=_0x3b666b(0x1dc),_0x5c8a30[_0x3b666b(0x15c)]=_0x3b666b(0x135),_0x5c8a30['CtbFt']='accessibilityOptions.includeIssueType.bestPractice',_0x5c8a30[_0x3b666b(0x19b)]=_0x3b666b(0x13e),_0x5c8a30['KOmVj']='accessibilityOptions.authToken',_0x5c8a30[_0x3b666b(0x167)]=_0x3b666b(0x120);const _0x4ca33e=_0x5c8a30;_0x2e3af7[_0x3b666b(0x16f)]&&(_0x2e3af7[_0x3b666b(0x16f)]['wcagVersion']&&(_0x2e3af7[_0x4ca33e[_0x3b666b(0x113)]]=_0x2e3af7['accessibilityOptions'][_0x3b666b(0x14f)]),_0x2e3af7['accessibilityOptions'][_0x3b666b(0x1b5)]&&(_0x2e3af7[_0x4ca33e[_0x3b666b(0x15c)]]=_0x2e3af7[_0x3b666b(0x16f)][_0x3b666b(0x1b5)]),_0x2e3af7[_0x3b666b(0x16f)][_0x3b666b(0x128)]&&(_0x2e3af7[_0x4ca33e[_0x3b666b(0x1b9)]]=_0x2e3af7[_0x3b666b(0x16f)]['includeIssueType'][_0x3b666b(0x196)],_0x2e3af7[_0x4ca33e[_0x3b666b(0x19b)]]=_0x2e3af7[_0x3b666b(0x16f)][_0x3b666b(0x128)][_0x3b666b(0x1d2)]));const _0x556b4b=JSON[_0x3b666b(0x10b)](process[_0x3b666b(0x17a)][_0x3b666b(0x11a)]||'{}')[_0x3b666b(0x158)];_0x2e3af7[_0x4ca33e[_0x3b666b(0x1aa)]]=process['env'][_0x3b666b(0x189)],_0x2e3af7[_0x4ca33e[_0x3b666b(0x167)]]=_0x556b4b,delete _0x2e3af7[_0x3b666b(0x16f)];},exports[a47_0x3f45c5(0x12f)]=async _0x42dd5e=>{const _0x3c9c71=a47_0x3f45c5,_0x3c4439={};_0x3c4439['cEmQh']=_0x3c9c71(0x1ca);const _0x5873ca=_0x3c4439;if(global['accessibilityPlatform'])try{const details={'url':await _0x42dd5e.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(_0x42dd5e,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(_0x42dd5e,scripts.getResults,mobileArgs);},{...details})();return res;}catch(_0x1b6b21){return logger['error']('getAccessibilityResults\x20failed:\x20'+(_0x1b6b21&&(_0x1b6b21[_0x3c9c71(0x1d7)]||_0x1b6b21[_0x3c9c71(0x149)])||_0x1b6b21)),[];}else return logger[_0x3c9c71(0x180)](_0x5873ca[_0x3c9c71(0x195)]),[];},exports[a47_0x3f45c5(0x1a5)]=async(_0x4ff1d7,_0x61039='',_0xc120b={},_0x2146e8={})=>{const _0x3e61e3=a47_0x3f45c5;logger[_0x3e61e3(0x13d)]('Performing\x20scan\x20with\x20method:\x20'+_0x61039+_0x3e61e3(0x156)+_0x4ff1d7);const _0x301443={'url':await _0x4ff1d7[_0x3e61e3(0x15d)](),'testhub_btcer_uuid':global[_0x3e61e3(0x15e)]?.[_0x3e61e3(0x178)]?.['id']};if(global[_0x3e61e3(0x109)])return await PerformanceTester[_0x3e61e3(0x150)](PerformanceA11yEvents[_0x3e61e3(0x179)],async()=>{const _0xdfcb17=_0x3e61e3,_0x303b7a={};_0x303b7a[_0xdfcb17(0x146)]=_0x61039;const _0x53291d=_0x303b7a;_0xc120b&&_0xc120b[_0xdfcb17(0x107)]&&(_0x53291d[_0xdfcb17(0x107)]=_0xc120b[_0xdfcb17(0x107)]);Object['assign'](_0x53291d,_0x2146e8);const _0x29356c=await exports[_0xdfcb17(0x15f)](_0x4ff1d7,scripts['performScan'],_0x53291d);return _0x29356c;},{'command':_0x61039,..._0x301443})();},exports['getAccessibilityResultsSummary']=async _0x3d4799=>{const _0x229a61=a47_0x3f45c5,_0x3a8a87={};_0x3a8a87[_0x229a61(0x14d)]=_0x229a61(0x15b);const _0x23969e=_0x3a8a87;if(global[_0x229a61(0x109)])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(_0x3d4799,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(_0x3d4799,scripts.getResultsSummary,mobileArgs);})();if(summaryResults&&typeof summaryResults==='object'&&global.__bstackA11yScanCapHit){summaryResults.degraded=true;summaryResults.degradedReason=global.__bstackA11yScanCapHit.reason;}return summaryResults;}catch(_0x40e423){return logger['error'](_0x229a61(0x18c)+(_0x40e423&&(_0x40e423[_0x229a61(0x1d7)]||_0x40e423[_0x229a61(0x149)])||_0x40e423)),{};}else return logger['warn'](_0x23969e[_0x229a61(0x14d)]),{};},exports[a47_0x3f45c5(0x1cb)]=_0x49413c=>{const _0x4ce940=a47_0x3f45c5,_0xd1737b={'qMMkR':_0x4ce940(0x115),'LAhpI':_0x4ce940(0x18e),'zEvNX':function(_0x4e3712,_0x3d7715){return _0x4e3712!==_0x3d7715;},'IeVUN':'latest','RIxOH':function(_0x1e8e32){return _0x1e8e32();},'kpfgc':_0x4ce940(0x117)};try{if(global[_0x4ce940(0x142)])return logger[_0x4ce940(0x13d)](_0xd1737b[_0x4ce940(0x140)]),!![];const _0x132c0d=_0x49413c[_0x4ce940(0x106)],_0x367c0b=_0x49413c[_0x4ce940(0x1bb)];if(!accessibilityHelper['isBrowserSupportedForAccessibility'](_0x132c0d))return logger['warn'](_0xd1737b['LAhpI']),![];if(_0xd1737b[_0x4ce940(0x187)](_0x367c0b,_0xd1737b[_0x4ce940(0x1b4)])){const _0x3290f3=_0xd1737b[_0x4ce940(0x157)](isBrowserstackInfra),_0x268492=accessibilityHelper[_0x4ce940(0x1ae)](_0x132c0d,_0x3290f3),_0x2d30d0=accessibilityHelper['getBrowserDisplayName'](_0x132c0d);if(!accessibilityHelper[_0x4ce940(0x133)](_0x367c0b,_0x268492)){const _0x43d71d=_0x3290f3?'':_0xd1737b[_0x4ce940(0x126)];return logger[_0x4ce940(0x180)](_0x4ce940(0x116)+_0x2d30d0+_0x4ce940(0x130)+_0x268492+_0x4ce940(0x147)+_0x43d71d+'.'),![];}}}catch(_0x4fa745){logger[_0x4ce940(0x13d)](_0x4ce940(0x19d)+util['format'](_0x4fa745));}return!![];},exports[a47_0x3f45c5(0x12e)]=(_0xeef3cd,_0x2a16ed,_0x3561b1)=>{const _0x35f69e=a47_0x3f45c5,_0x46f07d={'nflNg':_0x35f69e(0x16b),'SMEDb':function(_0x17f9cd){return _0x17f9cd();},'OQRLU':_0x35f69e(0x14c),'TBceY':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','ZYWvU':function(_0x138d04,_0x2b2f75){return _0x138d04!==_0x2b2f75;},'pYlIo':_0x35f69e(0x13f),'LnySS':_0x35f69e(0x117),'HHOJj':function(_0x5d0a00,_0x3c6f18){return _0x5d0a00(_0x3c6f18);},'lofYG':function(_0x1dbda8,_0x12819b){return _0x1dbda8===_0x12819b;},'ldYlp':_0x35f69e(0x191),'ROTlo':_0x35f69e(0x154),'JdtdF':_0x35f69e(0x122),'zsgJi':_0x35f69e(0x12b),'ZwQIe':_0x35f69e(0x1b2),'pfxCB':function(_0x2f4123,_0x4f1cfa){return _0x2f4123+_0x4f1cfa;},'wsPqt':function(_0x34dff0,_0x425879){return _0x34dff0(_0x425879);}};try{if(_0x46f07d[_0x35f69e(0x1b1)](isAccessibilityAutomationSession)){global[_0x35f69e(0x109)]=!![];!_0xeef3cd[_0x46f07d[_0x35f69e(0x125)]]&&(global[_0x35f69e(0x109)]=![]);const _0x1dc2c6=_0xeef3cd[_0x35f69e(0x138)]||_0xeef3cd[_0x35f69e(0x106)],_0x14eac8=_0xeef3cd[_0x35f69e(0x1bb)];!accessibilityHelper[_0x35f69e(0x10d)](_0x1dc2c6)&&(logger['warn'](_0x46f07d[_0x35f69e(0x153)]),global[_0x35f69e(0x109)]=![]);if(_0x46f07d[_0x35f69e(0x1da)](_0x14eac8,_0x46f07d[_0x35f69e(0x118)])){const _0x3f4c92=_0x46f07d[_0x35f69e(0x1b1)](isBrowserstackInfra),_0x34d032=accessibilityHelper['getMinVersionForBrowser'](_0x1dc2c6,_0x3f4c92),_0x3a749e=accessibilityHelper[_0x35f69e(0x183)](_0x1dc2c6);if(!accessibilityHelper[_0x35f69e(0x133)](_0x14eac8,_0x34d032)){const _0x4ffee8=_0x3f4c92?'':_0x46f07d[_0x35f69e(0x141)];logger[_0x35f69e(0x180)](_0x35f69e(0x116)+_0x3a749e+'\x20browser\x20version\x20'+_0x34d032+_0x35f69e(0x147)+_0x4ffee8+'.'),global[_0x35f69e(0x109)]=![];}}if(!_0x46f07d[_0x35f69e(0x1ce)](isUndefined,_0xeef3cd['deviceName'])){const _0x17e975=(_0xeef3cd['os']||'')[_0x35f69e(0x1a2)](),_0x13c8ca=(_0xeef3cd[_0x35f69e(0x138)]||_0xeef3cd[_0x35f69e(0x106)]||'')['toLowerCase'](),_0xb6a21c=_0x46f07d['lofYG'](_0x17e975,_0x46f07d[_0x35f69e(0x16c)])&&[_0x46f07d[_0x35f69e(0x1ba)],_0x46f07d[_0x35f69e(0x155)],_0x46f07d[_0x35f69e(0x172)]][_0x35f69e(0x1b8)](_0x13c8ca);if(!_0xb6a21c)logger[_0x35f69e(0x180)](_0x46f07d[_0x35f69e(0x17e)]),global[_0x35f69e(0x109)]=![];else!accessibilityHelper['isMobileScanningEnabledForGroup']()&&(logger[_0x35f69e(0x180)](accessibilityHelper[_0x35f69e(0x14b)]),global[_0x35f69e(0x109)]=![]);}if(!global[_0x35f69e(0x109)]){_0xeef3cd[_0x46f07d[_0x35f69e(0x125)]]=![],Object[_0x35f69e(0x182)](_0xeef3cd)[_0x35f69e(0x18b)](_0x343e21=>{const _0x15f9fe=_0x35f69e;_0x343e21[_0x15f9fe(0x11b)](_0x46f07d[_0x15f9fe(0x19c)])&&delete _0xeef3cd[_0x343e21];});const _0x45aab3=_0x46f07d[_0x35f69e(0x1cc)](_0x2a16ed,_0x46f07d[_0x35f69e(0x175)](encodeURIComponent,JSON['stringify'](_0xeef3cd)));_0x3561b1&&(_0x3561b1['currentTest'][_0x35f69e(0x129)]['project'][_0x35f69e(0x11d)]['connectOptions'][_0x35f69e(0x171)]=_0x45aab3,_0x3561b1[_0x35f69e(0x192)][_0x35f69e(0x1d0)][_0x35f69e(0x11d)]['connectOptions']['wsEndpoint']=_0x45aab3);}}else global['accessibilityPlatform']=![];}catch(_0x47d405){logger[_0x35f69e(0x13d)](_0x35f69e(0x1d5)+util[_0x35f69e(0x165)](_0x47d405));}};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';function a48_0x1c12(_0x4272e3,_0x544d28){const _0x4a88f4=a48_0x4a88();return a48_0x1c12=function(_0x1c12b1,_0x1cf586){_0x1c12b1=_0x1c12b1-0xbb;let _0x1ed193=_0x4a88f4[_0x1c12b1];return _0x1ed193;},a48_0x1c12(_0x4272e3,_0x544d28);}const a48_0x2eb1cf=a48_0x1c12;function a48_0x4a88(){const _0x2c33c4=['test','../../helpers/utilities','filterBrowserstackArgs','finalExecution','config','close','splice','cwd','VOjse','Updated\x20config\x20file\x20name\x20to\x20-\x20','isTrue','accessibilityOptions','launchBuild','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','rlbej','sep','CEQCz','4102dkaIDv','has','kZbrm','MkKQS','../../helpers/logger','get','BROWSERSTACK_RERUN_TESTS','clearTempPWConfig','util','dirname','jqBVh','xkcoB','Error\x20in\x20getting\x20funnel\x20data\x20results','883218rCnbPh','win32','join','logLevel','lKfBn','isUndefined','jawok','nvqhR','./reporter/pwUtils','testContextOptions','sVppu','BROWSERSTACK_PW_TEST_ORDER','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','platform','hRhoa','getNoProxy','tchbz','qmpRJ','sjgEl','--disable-browserstack-automation','NuqdD','17140GqfkXy','MODULE','tRQIT','Test\x20orchestration\x20is\x20enabled,\x20initializing\x20orchestration\x20handler','debug','indexOf','assign','\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','nZtBE','measureWrapper','../utils/clientTroubleshootingService','env','false','skipSessionName','QzmbA','split','zrpIt','concat','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','NfHMS','cliConfig','ADmcO','PleLg','OCtPr','skipSessionStatus','relative','resolve','../../helpers/performance/constants','getPackageType','XGCEi','QYPpC','info','VDzBB','1422855GqFhNQ','push','kMiNr','AxUQV','../../helpers/helper','testObservability','W_OK','true','TSvac','mIMYP','No\x20Proxy\x20:\x20','playwright-browserstack-sdk.config.cjs','SDK_PRE_INITIALIZE','browserstackAutomation','BROWSERSTACK_TEST_ACCESSIBILITY_YML','MxPMK','912QNSrwg','../../helpers/test-observability/utils','cLbkQ','getConfigPath','.browserstack','isCLIEnabled','path','readFileSync','startsWith','getInstance','Nvmoi','./reporter/test-details','exitCode','stop','--config','start','isYarnPnP','112ZEWALF','eCUAK','reorderTestFiles','../utils/constants','playwright-browserstack-sdk.config.js','USER_CONFIG_DETAILS_PATH','reportConflictingEnvVarIssue','BROWSERSTACK_FRAMEWORK','playwright','limNx','SDK_SETUP','RCWFH','RTFDR','UORuh','BROWSERSTACK_AUTOMATION','gobpT','BROWSERSTACK_TEST_OBSERVABILITY','npx','yiFUr','SbNtN','writeFileSync','accessibility','bootstrap','xQZzH','IwfKK','reportDotBrowserStackFolderNotAccessibleIssue','74000yYXyaE','errorMessage','LvpmS','Proxy\x20url\x20:\x20','validateRerunTestList','CKchP','../../helpers/testhub/testhubHandler','apply','EVENTS','wcBjB','Error\x20in\x20deleting\x20playwright\x20results','--disable-test-observability','accessSync','ipNyP','--grep','LIZAf','requirePWModule','pw_result.json','AAhis','existsSync','homedir','EhobZ','unlinkSync','reportFinalDetectionState','SDK_POST_INITIALIZE','uSUjV','gnQoF','../v2/TestInfo','fBhuC','filter','339024VkvoqA','BROWSERSTACK_SETUP_CONFIG_PATH','browserstackSetupConfig.json','../../helpers/performance/performance-tester','ZuOsG','FKlOU','isFalse','configPath','67zkbiGk','map','requireConfigLoaderYarnPnP','serializeToYamlString','BROWSERSTACK_RERUN','winstonLogger','yarn','../../helpers/test-observability/constants','PLAYWRIGHT','inherit','error','3670yPpGBW','../../helpers/test-orchestration/testOrchestrationHandler','setBrowserstackConfig','getProxyUrl','BROWSERSTACK_PW_CONFIG_DIR','shutdown','JwNgL','stringify','forEach','aIFsE','resolvedConfigFile','dcwwr','slice','INTERNALLY_USED_ENV_VARS','parse','isRunning','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','LtDQW','length','Deleting\x20','vtPUh'];a48_0x4a88=function(){return _0x2c33c4;};return a48_0x4a88();}(function(_0xb6618b,_0x262962){const _0x546d26=a48_0x1c12,_0x1ad457=_0xb6618b();while(!![]){try{const _0x25735c=-parseInt(_0x546d26(0x163))/0x1*(parseInt(_0x546d26(0x16e))/0x2)+parseInt(_0x546d26(0x15b))/0x3+-parseInt(_0x546d26(0x123))/0x4*(parseInt(_0x546d26(0xe1))/0x5)+parseInt(_0x546d26(0xcc))/0x6+parseInt(_0x546d26(0xbf))/0x7*(-parseInt(_0x546d26(0x112))/0x8)+parseInt(_0x546d26(0x102))/0x9+-parseInt(_0x546d26(0x13d))/0xa;if(_0x25735c===_0x262962)break;else _0x1ad457['push'](_0x1ad457['shift']());}catch(_0x571c26){_0x1ad457['push'](_0x1ad457['shift']());}}}(a48_0x4a88,0x1e8f5));const fs=require('fs'),path=require('path'),{spawn}=require('child_process'),{format}=require(a48_0x2eb1cf(0xc7)),logger=require(a48_0x2eb1cf(0xc3))[a48_0x2eb1cf(0x168)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a48_0x2eb1cf(0x106)),utilities=require(a48_0x2eb1cf(0x184)),constants=require(a48_0x2eb1cf(0x126)),{FRAMEWORKS}=require(a48_0x2eb1cf(0x16a)),{getConfigLoaderPath}=require(a48_0x2eb1cf(0xd4)),{checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require('./accessibility-helper'),{printBuildLink}=require(a48_0x2eb1cf(0x113)),TestDetails=require(a48_0x2eb1cf(0x11d)),TestHubHandler=require(a48_0x2eb1cf(0x143)),PerformanceTester=require(a48_0x2eb1cf(0x15e)),TestOrchestrationHandler=require(a48_0x2eb1cf(0x16f)),BrowserstackCLI=require('../v2/browserstackCLI'),PerformanceEvents=require(a48_0x2eb1cf(0xfc))[a48_0x2eb1cf(0x145)],CLIUtils=require('../v2/cliUtils'),TestInfo=require(a48_0x2eb1cf(0x158)),ClientTroubleShootingService=require(a48_0x2eb1cf(0xeb)),getUserPlaywrightConfig=async(_0x482f02,_0x3655d1)=>{const _0x1456ec=a48_0x2eb1cf,_0x5b7627={'NuqdD':function(_0x312609){return _0x312609();},'rlbej':function(_0x16bfae){return _0x16bfae();},'ipNyP':function(_0x3e83ee,_0x56f11d){return _0x3e83ee(_0x56f11d);},'PleLg':_0x1456ec(0x178),'gobpT':'--config='},_0x2a29dd=!helper['isUndefined'](_0x482f02[_0x1456ec(0x187)]),_0x5e1afd=_0x2a29dd?path[_0x1456ec(0xfb)](process['cwd'](),_0x482f02[_0x1456ec(0x187)]):process[_0x1456ec(0x18a)](),{resolveConfigFile:_0x12449a,resolveConfigLocation:_0x502378}=helper[_0x1456ec(0x122)]()?helper[_0x1456ec(0x165)](..._0x5b7627[_0x1456ec(0xe0)](getConfigLoaderPath)):helper[_0x1456ec(0x14d)][_0x1456ec(0x144)](null,_0x5b7627[_0x1456ec(0xbc)](getConfigLoaderPath)),_0x45fd92=_0x12449a?_0x5b7627[_0x1456ec(0x14a)](_0x12449a,_0x5e1afd):helper['nestedKeyValue'](_0x5b7627['ipNyP'](_0x502378,_0x5e1afd),[_0x5b7627[_0x1456ec(0xf7)]]),_0x36a58b={};if(_0x2a29dd){const _0x382ead=_0x3655d1['findIndex'](_0x20cf9e=>_0x20cf9e===_0x1456ec(0x120)||_0x20cf9e==='-c'||_0x20cf9e[_0x1456ec(0x11a)]('--config='));_0x3655d1[_0x1456ec(0x189)](_0x382ead,_0x3655d1[_0x382ead]['startsWith'](_0x5b7627[_0x1456ec(0x132)])?0x1:0x2);}const _0x369c26={};return _0x369c26['path']=_0x45fd92,_0x369c26[_0x1456ec(0x187)]=_0x36a58b,_0x369c26;},handleO11yRerun=_0x57eb35=>{const _0x274d26=a48_0x2eb1cf,_0x282b7a={};_0x282b7a[_0x274d26(0x157)]=_0x274d26(0x14b);const _0x3a1e0d=_0x282b7a,_0x420189=helper[_0x274d26(0x18d)](process['env'][_0x274d26(0x167)]);if(_0x420189){const _0x49e441=process[_0x274d26(0xec)][_0x274d26(0xc5)],_0x39fe22=[];if(helper[_0x274d26(0x141)](_0x49e441)&&!helper[_0x274d26(0xd1)](_0x49e441)){_0x49e441[_0x274d26(0xf0)](',')[_0x274d26(0x164)](_0x322f82=>{const _0x1d8a76=_0x274d26;_0x39fe22[_0x1d8a76(0x103)]('('+_0x322f82['trim']()+')');});const _0x2e34bd='^'+_0x39fe22['join']('|')+'$';_0x57eb35[_0x274d26(0x103)](_0x3a1e0d[_0x274d26(0x157)],_0x2e34bd);}}},spawnOriginalProcess=_0x4b6b50=>{const _0x17b299=a48_0x2eb1cf,_0x67bca1={'CKchP':function(_0x8cf093,_0x384e34,_0x28046f,_0xb575e){return _0x8cf093(_0x384e34,_0x28046f,_0xb575e);},'SbNtN':_0x17b299(0x169),'limNx':_0x17b299(0x134),'nZtBE':_0x17b299(0x12b),'OCtPr':function(_0x1eca21,_0x5b446f){return _0x1eca21===_0x5b446f;},'sVppu':_0x17b299(0xcd),'MkKQS':_0x17b299(0x16c)};_0x67bca1[_0x17b299(0x142)](spawn,helper[_0x17b299(0x122)]()?_0x67bca1[_0x17b299(0x136)]:_0x67bca1[_0x17b299(0x12c)],[_0x67bca1[_0x17b299(0xe9)],..._0x4b6b50[_0x17b299(0x17a)](0x1)],{'shell':_0x67bca1[_0x17b299(0xf8)](process['platform'],_0x67bca1[_0x17b299(0xd6)]),'stdio':_0x67bca1[_0x17b299(0xc2)],'cwd':process[_0x17b299(0x18a)]()});},isTestCommand=(_0x5433d6,_0x13e0fa)=>{const _0x290f32=a48_0x2eb1cf,_0x205213={};_0x205213[_0x290f32(0x159)]=function(_0x1987f5,_0x1ca929){return _0x1987f5>_0x1ca929;},_0x205213['biRDn']=function(_0x651d4a,_0x2705c8){return _0x651d4a===_0x2705c8;},_0x205213[_0x290f32(0xbe)]=_0x290f32(0x183);const _0x2e930f=_0x205213;if(_0x2e930f[_0x290f32(0x159)](_0x13e0fa[_0x290f32(0x180)],0x1)&&_0x2e930f['biRDn'](_0x13e0fa[0x1],_0x2e930f[_0x290f32(0xbe)]))return!![];return![];};async function run(_0xa99880,_0xba1d63,_0x5b1826){const _0x352793=a48_0x2eb1cf,_0x8ba392={'kZbrm':function(_0x4cd216,_0x213ea1){return _0x4cd216(_0x213ea1);},'yiFUr':_0x352793(0x116),'hRhoa':_0x352793(0x14e),'dcwwr':function(_0x29d3dd,_0x548dde){return _0x29d3dd+_0x548dde;},'MxPMK':_0x352793(0xcb),'jqBVh':function(_0x2691d0){return _0x2691d0();},'sjgEl':'Error\x20in\x20closing\x20playwright','VOjse':'BrowserStack\x20config\x20file\x20not\x20found.','ZuOsG':function(_0x789f55,_0xb62f2e){return _0x789f55<_0xb62f2e;},'zrpIt':function(_0x3c622e,_0x303fca){return _0x3c622e===_0x303fca;},'RTFDR':_0x352793(0xed),'FKlOU':'--disable-test-observability','mIMYP':function(_0x18ba7c,_0x5288cf){return _0x18ba7c>=_0x5288cf;},'tchbz':function(_0x440d99,_0x5d04a9){return _0x440d99===_0x5d04a9;},'AAhis':'automation','aIFsE':function(_0x52a311,_0x12435a){return _0x52a311!=_0x12435a;},'wcBjB':function(_0xac3cb5,_0x4e4277,_0x22b0c5){return _0xac3cb5(_0x4e4277,_0x22b0c5);},'AxUQV':function(_0x284a28,_0x2696f5){return _0x284a28(_0x2696f5);},'QzmbA':function(_0x546964,_0xb7db88){return _0x546964===_0xb7db88;},'VDzBB':_0x352793(0x109),'eCUAK':function(_0x231982,_0x43e694){return _0x231982(_0x43e694);},'IwfKK':_0x352793(0x15d),'EhobZ':function(_0x39fd5a,_0x31da53){return _0x39fd5a===_0x31da53;},'QYPpC':_0x352793(0x10d),'lKfBn':_0x352793(0x127),'VBAWY':function(_0x3ae717,_0x53c679){return _0x3ae717-_0x53c679;},'cLbkQ':function(_0x31efc1,_0x349b4d){return _0x31efc1+_0x349b4d;},'LIZAf':_0x352793(0x18c),'kMiNr':function(_0x204ed8,_0xe1fa4e){return _0x204ed8>_0xe1fa4e;},'nvqhR':_0x352793(0xe4),'PFKdk':_0x352793(0x12b),'xQZzH':function(_0x1df409,_0x3eb635,_0x4cb044,_0x4fff84){return _0x1df409(_0x3eb635,_0x4cb044,_0x4fff84);},'NfHMS':'yarn','Nvmoi':_0x352793(0x134),'vtPUh':_0x352793(0x183),'xkcoB':'--config','XGCEi':function(_0x31cb2e,_0x2dab54){return _0x31cb2e===_0x2dab54;},'uSUjV':_0x352793(0xcd),'tRQIT':_0x352793(0x16c),'lVReY':_0x352793(0x188),'LtDQW':function(_0x1b6321,_0x588994){return _0x1b6321|_0x588994;},'uBgNL':function(_0x2deb74,_0x22e0b1){return _0x2deb74+_0x22e0b1;},'UORuh':_0x352793(0xbb),'JwNgL':function(_0x3371cd,_0x20153b){return _0x3371cd+_0x20153b;},'TSvac':_0x352793(0x147),'GnYRQ':function(_0xd5b9c8,_0x208937,_0x1f9de3){return _0xd5b9c8(_0x208937,_0x1f9de3);},'RCWFH':function(_0x279762,_0x167da3){return _0x279762(_0x167da3);}};try{const _0x3f477a=path[_0x352793(0xce)](helper[_0x352793(0x151)](),_0x8ba392['yiFUr']);try{fs[_0x352793(0x149)](_0x3f477a,_0x8ba392[_0x352793(0x17f)](fs['constants']['R_OK'],fs['constants'][_0x352793(0x108)]));}catch(_0x49dfd4){ClientTroubleShootingService[_0x352793(0x13c)]();}}catch(_0x5318a1){logger[_0x352793(0xe5)](_0x8ba392['uBgNL'](_0x8ba392[_0x352793(0x130)],_0x5318a1));}try{const _0xd0a30b=path[_0x352793(0xce)](helper[_0x352793(0x151)](),_0x8ba392[_0x352793(0x135)],_0x8ba392[_0x352793(0xda)]);fs['existsSync'](_0xd0a30b)&&fs[_0x352793(0x153)](_0xd0a30b);}catch(_0x3245b9){logger['debug'](_0x8ba392[_0x352793(0x174)](_0x8ba392[_0x352793(0x10a)],_0x3245b9));}if(!_0x8ba392['GnYRQ'](isTestCommand,_0xa99880,_0xba1d63)){_0x8ba392[_0x352793(0x12e)](spawnOriginalProcess,_0xba1d63);return;}await PerformanceTester[_0x352793(0xea)](PerformanceEvents[_0x352793(0x10e)],async()=>{const _0x23c902=_0x352793,_0x351585={'LvpmS':_0x8ba392[_0x23c902(0x135)],'qmpRJ':function(_0x99bbc3){return _0x8ba392['jqBVh'](_0x99bbc3);},'ADmcO':function(_0x276999){const _0x4c7fe2=_0x23c902;return _0x8ba392[_0x4c7fe2(0xc9)](_0x276999);},'jawok':function(_0x12b759,_0x24179e){const _0x59e5cc=_0x23c902;return _0x8ba392[_0x59e5cc(0x179)](_0x12b759,_0x24179e);},'lMoRt':_0x8ba392[_0x23c902(0xde)]};if(!_0x5b1826[_0x23c902(0x187)]){logger[_0x23c902(0x16d)](_0x8ba392[_0x23c902(0x18b)]);return;}await _0x5b1826['initialize'](_0xa99880),CLIUtils['setFrameworkDetail'](FRAMEWORKS[_0x23c902(0x16b)],FRAMEWORKS[_0x23c902(0x16b)]),BrowserstackCLI['getInstance']()[_0x23c902(0x170)](_0x5b1826[_0x23c902(0x187)],_0x5b1826[_0x23c902(0x162)],_0x5b1826[_0x23c902(0xf5)]),await BrowserstackCLI['getInstance']()[_0x23c902(0x139)]();!BrowserstackCLI['getInstance']()['isRunning']()&&await _0x5b1826['setupBrowserstackLocal']();for(var _0x4a3cd1=0x0;_0x8ba392[_0x23c902(0x15f)](_0x4a3cd1,constants[_0x23c902(0x17b)][_0x23c902(0x180)]);_0x4a3cd1++){var _0x15a85a=constants['INTERNALLY_USED_ENV_VARS'][_0x4a3cd1];process[_0x23c902(0xec)][_0x15a85a]&&await ClientTroubleShootingService[_0x23c902(0x129)](_0x15a85a);}const _0x466645=BrowserstackCLI[_0x23c902(0x11b)]()['getConfig']();!helper[_0x23c902(0x161)](_0x466645[_0x23c902(0x10f)])&&(process['env'][_0x23c902(0x131)]=!![]);_0x8ba392[_0x23c902(0xf1)](_0x466645[_0x23c902(0x10f)],![])&&(process[_0x23c902(0xec)]['BROWSERSTACK_AUTOMATION']=_0x8ba392['RTFDR'],_0xba1d63=_0xba1d63[_0x23c902(0x15a)](_0x5cde88=>_0x5cde88!==_0x23c902(0xdf)));const _0x28352f=_0xba1d63[_0x23c902(0xe6)](_0x8ba392[_0x23c902(0x160)]);(_0x8ba392[_0x23c902(0x10b)](_0x28352f,0x0)||_0x8ba392[_0x23c902(0xdc)](_0x466645['testObservability'],![]))&&(process['env'][_0x23c902(0x133)]=_0x8ba392[_0x23c902(0x12f)],_0xba1d63=_0xba1d63[_0x23c902(0x15a)](_0x1ed27c=>_0x1ed27c!==_0x23c902(0x148)));!helper[_0x23c902(0xd1)](_0x5b1826[_0x23c902(0xf5)])&&_0x5b1826[_0x23c902(0xf5)][_0x23c902(0xc0)](_0x8ba392[_0x23c902(0x14f)])&&(process[_0x23c902(0xec)]['BROWSERSTACK_AUTOMATION']=_0x5b1826[_0x23c902(0xf5)][_0x23c902(0xc4)](_0x8ba392[_0x23c902(0x14f)])||!![]);_0x8ba392[_0x23c902(0x177)](_0x5b1826[_0x23c902(0x187)][_0x23c902(0x107)],null)&&!helper[_0x23c902(0x18d)](process[_0x23c902(0xec)][_0x23c902(0x133)])&&(process[_0x23c902(0xec)][_0x23c902(0x133)]=process[_0x23c902(0xec)][_0x23c902(0x133)]||_0x5b1826[_0x23c902(0x187)][_0x23c902(0x107)]);const _0x2fbf70=!helper[_0x23c902(0x161)](process['env']['BROWSERSTACK_TEST_OBSERVABILITY']);_0x5b1826[_0x23c902(0x187)][_0x23c902(0x18e)]&&(process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x23c902(0x175)](_0x5b1826[_0x23c902(0x187)][_0x23c902(0x18e)]));let _0xfd4b1c=![];_0x5b1826['config'][_0x23c902(0x138)]&&(_0xfd4b1c=!![],process[_0x23c902(0xec)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x5b1826['config'][_0x23c902(0x138)]);const _0x2610ad=_0xba1d63[_0x23c902(0xf2)](),_0xe8ad60=await _0x8ba392[_0x23c902(0x146)](getUserPlaywrightConfig,_0xa99880,_0xba1d63);if(helper[_0x23c902(0xd1)](_0xe8ad60)){_0x8ba392[_0x23c902(0x105)](spawnOriginalProcess,_0x2610ad);return;}const _0x434c71=_0xe8ad60[_0x23c902(0x118)]?path['dirname'](_0xe8ad60[_0x23c902(0x118)]):process[_0x23c902(0x18a)]();process[_0x23c902(0xec)][_0x23c902(0x172)]=_0x434c71,await PerformanceTester['measureWrapper'](PerformanceEvents[_0x23c902(0x155)],async()=>{const _0x3f9a24=_0x23c902;!BrowserstackCLI[_0x3f9a24(0x11b)]()[_0x3f9a24(0x17d)]()&&await TestHubHandler[_0x3f9a24(0x18f)](FRAMEWORKS[_0x3f9a24(0x16b)],_0x5b1826),_0x2fbf70&&_0x8ba392[_0x3f9a24(0xc1)](handleO11yRerun,_0xba1d63);})();if(!BrowserstackCLI[_0x23c902(0x11b)]()[_0x23c902(0x17d)]()){let _0x1e76bc=_0x8ba392[_0x23c902(0xef)](process[_0x23c902(0xec)][_0x23c902(0x110)],_0x8ba392[_0x23c902(0x101)]);_0x1e76bc=_0x1e76bc||_0x8ba392[_0x23c902(0xc1)](checkAccessibilityPlatformConfig,_0x5b1826[_0x23c902(0x187)]),process[_0x23c902(0xec)][_0x23c902(0x110)]=_0x1e76bc,_0x1e76bc&&_0x8ba392[_0x23c902(0x124)](setAccessibilityCapabilities,_0x5b1826[_0x23c902(0x187)]);}const _0x40c585=path['join'](_0xe8ad60[_0x23c902(0x118)]?path[_0x23c902(0xc8)](_0xe8ad60[_0x23c902(0x118)]):process[_0x23c902(0x18a)](),_0x8ba392[_0x23c902(0x13b)]);fs[_0x23c902(0x137)](_0x40c585,helper[_0x23c902(0x166)](_0x5b1826[_0x23c902(0x187)])),process[_0x23c902(0xec)][_0x23c902(0x15c)]=_0x40c585,helper[_0x23c902(0xc6)]();let _0x2c9c98='';_0x8ba392[_0x23c902(0x152)](helper[_0x23c902(0xfd)](),constants['PACKAGE_TYPE'][_0x23c902(0xe2)])?_0x2c9c98=_0x8ba392[_0x23c902(0xff)]:_0x2c9c98=_0x8ba392[_0x23c902(0xd0)];let _0x2c152f='';if(helper['isTypescriptProject'](_0xe8ad60[_0x23c902(0x118)])){_0x2c152f=_0x23c902(0xd8);const _0x5f1131=_0x2c9c98['split']('.');_0x5f1131[_0x8ba392['VBAWY'](_0x5f1131['length'],0x1)]='ts',_0x2c9c98=_0x5f1131['join']('.'),logger[_0x23c902(0xe5)](_0x8ba392[_0x23c902(0x114)](_0x8ba392[_0x23c902(0x14c)],_0x2c9c98));}else _0x2c152f=_0x23c902(0xf3);const _0x1ea958=path['join'](_0xe8ad60[_0x23c902(0x118)]?path[_0x23c902(0xc8)](_0xe8ad60[_0x23c902(0x118)]):process['cwd'](),_0x2c9c98);let _0x517c3a=_0xe8ad60[_0x23c902(0x118)]?_0xe8ad60[_0x23c902(0x118)]:'';_0x517c3a=_0x8ba392[_0x23c902(0x104)](_0x517c3a[_0x23c902(0x180)],0x0)?path[_0x23c902(0xfb)](_0x517c3a):'',process[_0x23c902(0xec)][_0x23c902(0x128)]=_0x517c3a;const _0x7fb239=helper[_0x23c902(0x171)](_0x5b1826[_0x23c902(0x187)]),_0x184352=helper[_0x23c902(0xdb)](_0x5b1826[_0x23c902(0x187)]);logger['debug'](_0x23c902(0x140)+_0x7fb239),logger[_0x23c902(0xe5)](_0x23c902(0x10c)+_0x184352);_0x7fb239&&(_0x2c152f=_0x8ba392[_0x23c902(0x179)](_0x23c902(0x17e)+_0x7fb239+_0x23c902(0xe8)+_0x184352+'\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\x20bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;\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();',_0x2c152f));helper[_0x23c902(0x185)]({},_0xba1d63),fs[_0x23c902(0x137)](_0x1ea958,_0x2c152f);let _0x1f6104=[];const _0x391c89=new TestOrchestrationHandler(_0x5b1826['config']);if(_0x391c89['isTestOrchestrationEnabled']()){logger['debug'](_0x8ba392[_0x23c902(0xd3)]);const _0x4afdfa=await _0x391c89['findPlaywrightTestFiles'](_0x517c3a,_0xba1d63[_0x23c902(0x17a)](0x2));logger[_0x23c902(0xe5)]('Found:\x20'+JSON[_0x23c902(0x175)](_0x4afdfa)+'\x20test\x20files\x20to\x20run.');const _0x1e9421=await _0x391c89[_0x23c902(0x125)](_0x4afdfa);logger[_0x23c902(0xe5)]('Reordered\x20Test\x20Files:\x20'+JSON[_0x23c902(0x175)](_0x1e9421)),_0x1e9421&&_0x8ba392[_0x23c902(0x104)](_0x1e9421[_0x23c902(0x180)],0x0)&&(process[_0x23c902(0xec)][_0x23c902(0xd7)]=_0x1e9421[_0x23c902(0xce)](','),_0x8ba392[_0x23c902(0x15f)](_0x1e9421[_0x23c902(0x180)],_0x4afdfa[_0x23c902(0x180)])&&(_0x1f6104=_0x1e9421[_0x23c902(0x164)](_0x1a3f5a=>path[_0x23c902(0xfa)](process['cwd'](),_0x1a3f5a)['split'](path[_0x23c902(0xbd)])[_0x23c902(0xce)]('/'))));}PerformanceTester['end'](PerformanceEvents[_0x23c902(0x12d)]),process[_0x23c902(0xec)][_0x23c902(0x12a)]=process[_0x23c902(0xec)][_0x23c902(0x12a)]||_0x8ba392['PFKdk'];const _0x467ad5=_0x8ba392[_0x23c902(0x13a)](spawn,helper[_0x23c902(0x122)]()?_0x8ba392[_0x23c902(0xf4)]:_0x8ba392[_0x23c902(0x11c)],[_0x8ba392['PFKdk'],_0x8ba392[_0x23c902(0x182)],_0x8ba392[_0x23c902(0xca)],_0x8ba392[_0x23c902(0xfe)](process[_0x23c902(0xd9)],_0x8ba392['uSUjV'])?'\x22'+_0x1ea958+'\x22':_0x1ea958,..._0xba1d63['slice'](0x2),..._0x1f6104],{'shell':_0x8ba392[_0x23c902(0xf1)](process[_0x23c902(0xd9)],_0x8ba392[_0x23c902(0x156)]),'stdio':_0x8ba392[_0x23c902(0xe3)],'cwd':process[_0x23c902(0x18a)](),'env':Object[_0x23c902(0xe7)]({},process[_0x23c902(0xec)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x23c902(0x115)](_0xa99880),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x5b1826[_0x23c902(0x187)][_0x23c902(0xd5)][_0x23c902(0xf9)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x5b1826[_0x23c902(0x187)]['testContextOptions'][_0x23c902(0xee)],'BROWSERSTACK_LOG_LEVEL':_0x5b1826['config'][_0x23c902(0xcf)]})}),_0x1c29be=()=>{const _0x36a9f3=_0x23c902;try{const _0x3f8c4b=path[_0x36a9f3(0xce)](helper[_0x36a9f3(0x151)](),_0x8ba392['yiFUr'],_0x8ba392['hRhoa']);if(fs['existsSync'](_0x3f8c4b)){let _0x251c6c=fs[_0x36a9f3(0x119)](_0x3f8c4b);_0x251c6c=JSON[_0x36a9f3(0x17c)](_0x251c6c),_0x5b1826[_0x36a9f3(0x13e)]=_0x251c6c,fs['unlinkSync'](_0x3f8c4b);}}catch(_0x3fd757){logger[_0x36a9f3(0xe5)](_0x8ba392[_0x36a9f3(0x179)](_0x8ba392[_0x36a9f3(0x111)],_0x3fd757));}};_0x467ad5['on'](_0x8ba392['lVReY'],async _0x388e8a=>{const _0x562ead=_0x23c902,_0x35417f={};_0x35417f['EpeRZ']=_0x351585[_0x562ead(0x13f)];const _0x3c274a=_0x35417f;try{PerformanceTester[_0x562ead(0x121)](PerformanceEvents['SDK_CLEANUP']),_0x351585[_0x562ead(0xdd)](_0x1c29be),await TestHubHandler[_0x562ead(0x11f)](),await ClientTroubleShootingService[_0x562ead(0x154)]();const _0x5384e6=BrowserstackCLI[_0x562ead(0x117)]();await BrowserstackCLI[_0x562ead(0x11b)]()[_0x562ead(0x11f)](),TestDetails[_0x562ead(0x173)](),_0x351585[_0x562ead(0xf6)](printBuildLink),await utilities[_0x562ead(0x186)](_0x5b1826,_0x5384e6),process[_0x562ead(0x11e)]=_0x388e8a,logger['debug']('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x388e8a),logger[_0x562ead(0x100)](_0x562ead(0x181)+_0x1ea958),fs[_0x562ead(0x153)](_0x1ea958);fs[_0x562ead(0x150)](_0x40c585)&&(logger['debug']('Deleting\x20'+_0x40c585),fs[_0x562ead(0x153)](_0x40c585));const _0x36dc48=fs['readdirSync'](path['join'](helper[_0x562ead(0x151)](),_0x351585[_0x562ead(0x13f)]))[_0x562ead(0x15a)](_0x33e6a7=>_0x33e6a7[_0x562ead(0x11a)]('trace_'));_0x36dc48[_0x562ead(0x176)](_0x6e0303=>{const _0x259633=_0x562ead;fs[_0x259633(0x153)](path[_0x259633(0xce)](helper[_0x259633(0x151)](),_0x3c274a['EpeRZ'],_0x6e0303));});}catch(_0x58e74e){logger[_0x562ead(0xe5)](_0x351585[_0x562ead(0xd2)](_0x351585['lMoRt'],_0x58e74e));}});})();}module['exports']=run;
2
+ 'use strict';const a48_0x4aa41c=a48_0x514d;(function(_0x4d4d63,_0x530e9b){const _0x46cd4c=a48_0x514d,_0x556b67=_0x4d4d63();while(!![]){try{const _0x1d20d3=-parseInt(_0x46cd4c(0xc2))/0x1*(-parseInt(_0x46cd4c(0x84))/0x2)+-parseInt(_0x46cd4c(0x123))/0x3+parseInt(_0x46cd4c(0x68))/0x4*(parseInt(_0x46cd4c(0x70))/0x5)+parseInt(_0x46cd4c(0x12a))/0x6*(parseInt(_0x46cd4c(0xa9))/0x7)+-parseInt(_0x46cd4c(0x8d))/0x8*(parseInt(_0x46cd4c(0x9a))/0x9)+parseInt(_0x46cd4c(0x9b))/0xa+-parseInt(_0x46cd4c(0xc7))/0xb;if(_0x1d20d3===_0x530e9b)break;else _0x556b67['push'](_0x556b67['shift']());}catch(_0x543a9b){_0x556b67['push'](_0x556b67['shift']());}}}(a48_0x51c0,0x37470));function a48_0x514d(_0x3d9ced,_0x3e3dfc){const _0x51c0d2=a48_0x51c0();return a48_0x514d=function(_0x514d5a,_0x36ecea){_0x514d5a=_0x514d5a-0x66;let _0x4e13f2=_0x51c0d2[_0x514d5a];return _0x4e13f2;},a48_0x514d(_0x3d9ced,_0x3e3dfc);}const fs=require('fs'),path=require('path'),{spawn}=require(a48_0x4aa41c(0x90)),{format}=require(a48_0x4aa41c(0xcc)),logger=require(a48_0x4aa41c(0x129))[a48_0x4aa41c(0x118)],{default:BrowserStackSetup}=require(a48_0x4aa41c(0x115)),helper=require(a48_0x4aa41c(0xb7)),utilities=require(a48_0x4aa41c(0xd8)),constants=require(a48_0x4aa41c(0xd3)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getConfigLoaderPath}=require(a48_0x4aa41c(0xa6)),{checkAccessibilityPlatformConfig}=require(a48_0x4aa41c(0xbc)),{setAccessibilityCapabilities}=require(a48_0x4aa41c(0x9c)),{printBuildLink}=require(a48_0x4aa41c(0x6b)),TestDetails=require(a48_0x4aa41c(0x113)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),PerformanceTester=require(a48_0x4aa41c(0x7e)),TestOrchestrationHandler=require(a48_0x4aa41c(0x127)),BrowserstackCLI=require(a48_0x4aa41c(0xf7)),PerformanceEvents=require(a48_0x4aa41c(0xd2))['EVENTS'],CLIUtils=require(a48_0x4aa41c(0x11d)),TestInfo=require('../v2/TestInfo'),ClientTroubleShootingService=require(a48_0x4aa41c(0xe6)),getUserPlaywrightConfig=async(_0x315c38,_0x26fd35)=>{const _0xdd3bd0=a48_0x4aa41c,_0x269e48={'nKqaP':function(_0x19219e){return _0x19219e();},'uwznz':function(_0x30dca6,_0x2d77cb){return _0x30dca6(_0x2d77cb);},'sPBxv':_0xdd3bd0(0xd6),'hOShY':_0xdd3bd0(0x112)},_0x4054fd=!helper[_0xdd3bd0(0x116)](_0x315c38[_0xdd3bd0(0xab)]),_0x4450e9=_0x4054fd?path[_0xdd3bd0(0x66)](process[_0xdd3bd0(0xb2)](),_0x315c38[_0xdd3bd0(0xab)]):process[_0xdd3bd0(0xb2)](),{resolveConfigFile:_0x2ba7fb,resolveConfigLocation:_0x5cd829}=helper[_0xdd3bd0(0x11f)]()?helper['requireConfigLoaderYarnPnP'](..._0x269e48[_0xdd3bd0(0xfa)](getConfigLoaderPath)):helper[_0xdd3bd0(0xd1)][_0xdd3bd0(0x6f)](null,_0x269e48[_0xdd3bd0(0xfa)](getConfigLoaderPath)),_0x1aee9c=_0x2ba7fb?_0x269e48['uwznz'](_0x2ba7fb,_0x4450e9):helper['nestedKeyValue'](_0x269e48[_0xdd3bd0(0xda)](_0x5cd829,_0x4450e9),[_0x269e48['sPBxv']]),_0x5dad1a={};if(_0x4054fd){const _0x3f1dc9=_0x26fd35[_0xdd3bd0(0xb5)](_0xd3ee23=>_0xd3ee23==='--config'||_0xd3ee23==='-c'||_0xd3ee23[_0xdd3bd0(0x103)](_0xdd3bd0(0x112)));_0x26fd35[_0xdd3bd0(0x111)](_0x3f1dc9,_0x26fd35[_0x3f1dc9][_0xdd3bd0(0x103)](_0x269e48[_0xdd3bd0(0xbf)])?0x1:0x2);}const _0x53b6f5={};return _0x53b6f5[_0xdd3bd0(0xce)]=_0x1aee9c,_0x53b6f5[_0xdd3bd0(0xab)]=_0x5dad1a,_0x53b6f5;},handleO11yRerun=_0x159585=>{const _0x32ccaa=a48_0x4aa41c,_0x5e736c={};_0x5e736c[_0x32ccaa(0x75)]=_0x32ccaa(0xdf);const _0x2737ba=_0x5e736c,_0x58c19c=helper['isTrue'](process['env'][_0x32ccaa(0x106)]);if(_0x58c19c){const _0x2305f5=process[_0x32ccaa(0xc8)]['BROWSERSTACK_RERUN_TESTS'],_0x1b8047=[];if(helper[_0x32ccaa(0x105)](_0x2305f5)&&!helper['isUndefined'](_0x2305f5)){_0x2305f5['split'](',')['map'](_0x34673d=>{const _0x2b8afc=_0x32ccaa;_0x1b8047[_0x2b8afc(0x122)]('('+_0x34673d['trim']()+')');});const _0xb2842c='^'+_0x1b8047['join']('|')+'$';_0x159585[_0x32ccaa(0x122)](_0x2737ba[_0x32ccaa(0x75)],_0xb2842c);}}},spawnOriginalProcess=_0x570974=>{const _0x158096=a48_0x4aa41c,_0x4f4d37={'yOOsP':function(_0x426a66,_0xdb5e4a,_0x4be2de,_0x57d72b){return _0x426a66(_0xdb5e4a,_0x4be2de,_0x57d72b);},'nwBdA':_0x158096(0x89),'GQBRq':_0x158096(0x6a),'DIzlQ':'playwright','vLEFf':function(_0x2ed647,_0x15269c){return _0x2ed647===_0x15269c;},'zWXAn':_0x158096(0x79),'JzwMo':_0x158096(0xe8)};_0x4f4d37[_0x158096(0x12d)](spawn,helper[_0x158096(0x11f)]()?_0x4f4d37[_0x158096(0x96)]:_0x4f4d37[_0x158096(0x71)],[_0x4f4d37[_0x158096(0x7a)],..._0x570974[_0x158096(0x124)](0x1)],{'shell':_0x4f4d37[_0x158096(0xb1)](process[_0x158096(0x8e)],_0x4f4d37['zWXAn']),'stdio':_0x4f4d37[_0x158096(0x10e)],'cwd':process['cwd']()});},isTestCommand=(_0xccc3c,_0x53ae2c)=>{const _0x1ad8e8=a48_0x4aa41c,_0x42fa13={};_0x42fa13['JLcYS']=function(_0x447819,_0x780422){return _0x447819>_0x780422;},_0x42fa13[_0x1ad8e8(0xeb)]=function(_0x567489,_0xce3e5){return _0x567489===_0xce3e5;},_0x42fa13['PcqWW']=_0x1ad8e8(0xaa);const _0x4c3561=_0x42fa13;if(_0x4c3561[_0x1ad8e8(0xf5)](_0x53ae2c['length'],0x1)&&_0x4c3561[_0x1ad8e8(0xeb)](_0x53ae2c[0x1],_0x4c3561[_0x1ad8e8(0xdd)]))return!![];return![];};async function run(_0xb9fa48,_0x4a15c9,_0x28d6f8){const _0x217379=a48_0x4aa41c,_0x100766={'PjObx':function(_0x284ee4,_0x1df887){return _0x284ee4(_0x1df887);},'KqsRl':function(_0x4f9907){return _0x4f9907();},'Srphi':function(_0xab61bc){return _0xab61bc();},'mRYxJ':_0x217379(0xfc),'VmhcK':function(_0x2e0b5c,_0x4a6ffc){return _0x2e0b5c+_0x4a6ffc;},'GpBcC':_0x217379(0xef),'uLoOb':_0x217379(0xe7),'pcnDu':function(_0x2f59d9,_0x1ffa07){return _0x2f59d9+_0x1ffa07;},'REKjz':_0x217379(0x12c),'xbMtt':_0x217379(0x72),'GeORs':function(_0xe006f0,_0x17fbb6){return _0xe006f0<_0x17fbb6;},'YreuD':function(_0x4da969,_0x48d1a7){return _0x4da969===_0x48d1a7;},'AZhdE':_0x217379(0x88),'WNtJZ':_0x217379(0x9e),'QFcFc':function(_0x39d800,_0x4b2896){return _0x39d800>=_0x4b2896;},'kgskr':function(_0x128b14,_0x1794d6){return _0x128b14===_0x1794d6;},'iDenS':'automation','WsOKB':function(_0x23d8a4,_0x4aba6c){return _0x23d8a4!=_0x4aba6c;},'DKxdZ':function(_0x56dfc4,_0x59deda,_0x597328){return _0x56dfc4(_0x59deda,_0x597328);},'gfLlH':function(_0x209731,_0x112f80){return _0x209731===_0x112f80;},'alVmj':_0x217379(0xc1),'yAeZG':_0x217379(0xdb),'iVViO':_0x217379(0xee),'eXHjz':'playwright-browserstack-sdk.config.js','SFwKC':function(_0x45c73d,_0xd4f003){return _0x45c73d-_0xd4f003;},'monyU':'Updated\x20config\x20file\x20name\x20to\x20-\x20','AxapV':function(_0x30cf2f,_0x55f87c){return _0x30cf2f>_0x55f87c;},'OsKlE':'Test\x20orchestration\x20is\x20enabled,\x20initializing\x20orchestration\x20handler','oSahb':function(_0x50aef7,_0x3b1c3b){return _0x50aef7>_0x3b1c3b;},'yUpwI':function(_0xcb7497,_0x3a0a11){return _0xcb7497<_0x3a0a11;},'DKZaT':_0x217379(0xa4),'xvVWY':function(_0x40ca82,_0x3738e2,_0x499b4a,_0x1dd31f){return _0x40ca82(_0x3738e2,_0x499b4a,_0x1dd31f);},'XYOTn':_0x217379(0x89),'HZZvh':_0x217379(0x6a),'NMgLK':_0x217379(0xaa),'rZwOs':_0x217379(0xfe),'RyAKS':function(_0x58d7bb,_0x4db91e){return _0x58d7bb===_0x4db91e;},'Jpbvt':_0x217379(0x79),'emzzK':function(_0x4cbf22,_0x307fbb){return _0x4cbf22===_0x307fbb;},'exGat':'inherit','yVSKf':_0x217379(0x110),'kzRRd':function(_0x21bf5d,_0x4ed60b){return _0x21bf5d|_0x4ed60b;},'merRS':function(_0x1b6ab4,_0x55152b){return _0x1b6ab4+_0x55152b;},'QvLYL':_0x217379(0xbd),'hhVyT':_0x217379(0xae)};try{const _0x2336ae=path[_0x217379(0x104)](helper[_0x217379(0x67)](),_0x100766[_0x217379(0xad)]);try{fs[_0x217379(0x94)](_0x2336ae,_0x100766['kzRRd'](fs[_0x217379(0x6d)][_0x217379(0xba)],fs[_0x217379(0x6d)][_0x217379(0xc5)]));}catch(_0xafed88){ClientTroubleShootingService[_0x217379(0xa8)]();}}catch(_0x38a6ac){logger[_0x217379(0xcf)](_0x100766[_0x217379(0xb9)](_0x100766[_0x217379(0x108)],_0x38a6ac));}try{const _0x54a987=path[_0x217379(0x104)](helper['homedir'](),_0x100766[_0x217379(0xad)],_0x100766[_0x217379(0x10f)]);fs[_0x217379(0xd4)](_0x54a987)&&fs[_0x217379(0xd5)](_0x54a987);}catch(_0x1900b7){logger['debug'](_0x100766[_0x217379(0x10a)](_0x100766[_0x217379(0xcd)],_0x1900b7));}if(!_0x100766['DKxdZ'](isTestCommand,_0xb9fa48,_0x4a15c9)){_0x100766[_0x217379(0xb8)](spawnOriginalProcess,_0x4a15c9);return;}await PerformanceTester[_0x217379(0xb3)](PerformanceEvents[_0x217379(0xf2)],async()=>{const _0x5419a0=_0x217379,_0x44f498={'oCDem':_0x100766[_0x5419a0(0xad)],'pWFke':_0x100766[_0x5419a0(0x10f)],'BWLAn':function(_0x2c8438,_0x53e9d2){const _0x3cf859=_0x5419a0;return _0x100766[_0x3cf859(0xf8)](_0x2c8438,_0x53e9d2);},'QUzyG':_0x100766[_0x5419a0(0x117)]};if(!_0x28d6f8[_0x5419a0(0xab)]){logger[_0x5419a0(0xe5)](_0x100766[_0x5419a0(0xd7)]);return;}await _0x28d6f8['initialize'](_0xb9fa48),CLIUtils[_0x5419a0(0x130)](FRAMEWORKS[_0x5419a0(0x131)],FRAMEWORKS['PLAYWRIGHT']),BrowserstackCLI[_0x5419a0(0x11e)]()[_0x5419a0(0x83)](_0x28d6f8[_0x5419a0(0xab)],_0x28d6f8[_0x5419a0(0xa3)],_0x28d6f8['cliConfig']),await BrowserstackCLI['getInstance']()[_0x5419a0(0x78)]();!BrowserstackCLI[_0x5419a0(0x11e)]()[_0x5419a0(0xea)]()&&await _0x28d6f8[_0x5419a0(0x100)]();for(var _0x5e7f09=0x0;_0x100766['GeORs'](_0x5e7f09,constants[_0x5419a0(0xbe)][_0x5419a0(0xcb)]);_0x5e7f09++){var _0xadf140=constants[_0x5419a0(0xbe)][_0x5e7f09];process['env'][_0xadf140]&&await ClientTroubleShootingService[_0x5419a0(0x91)](_0xadf140);}const _0x1c46d9=BrowserstackCLI[_0x5419a0(0x11e)]()['getConfig']();!helper[_0x5419a0(0x11a)](_0x1c46d9[_0x5419a0(0xaf)])&&(process[_0x5419a0(0xc8)]['BROWSERSTACK_AUTOMATION']=!![]);_0x100766[_0x5419a0(0xde)](_0x1c46d9[_0x5419a0(0xaf)],![])&&(process[_0x5419a0(0xc8)][_0x5419a0(0xa1)]=_0x100766[_0x5419a0(0x87)],_0x4a15c9=_0x4a15c9[_0x5419a0(0x80)](_0x2e8e0d=>_0x2e8e0d!==_0x5419a0(0xa7)));const _0xc71ff2=_0x4a15c9[_0x5419a0(0x77)](_0x100766['WNtJZ']);(_0x100766['QFcFc'](_0xc71ff2,0x0)||_0x100766['kgskr'](_0x1c46d9[_0x5419a0(0x107)],![]))&&(process['env'][_0x5419a0(0x92)]=_0x100766['AZhdE'],_0x4a15c9=_0x4a15c9['filter'](_0x13ccfe=>_0x13ccfe!==_0x5419a0(0x9e)));!helper[_0x5419a0(0x116)](_0x28d6f8[_0x5419a0(0x82)])&&_0x28d6f8[_0x5419a0(0x82)][_0x5419a0(0x7b)](_0x100766['iDenS'])&&(process[_0x5419a0(0xc8)]['BROWSERSTACK_AUTOMATION']=_0x28d6f8['cliConfig']['get'](_0x100766[_0x5419a0(0xac)])||!![]);_0x100766['WsOKB'](_0x28d6f8[_0x5419a0(0xab)]['testObservability'],null)&&!helper[_0x5419a0(0xe1)](process['env'][_0x5419a0(0x92)])&&(process['env']['BROWSERSTACK_TEST_OBSERVABILITY']=process[_0x5419a0(0xc8)][_0x5419a0(0x92)]||_0x28d6f8[_0x5419a0(0xab)][_0x5419a0(0x107)]);const _0x4fe261=!helper[_0x5419a0(0x11a)](process[_0x5419a0(0xc8)]['BROWSERSTACK_TEST_OBSERVABILITY']);_0x28d6f8[_0x5419a0(0xab)]['accessibilityOptions']&&(process[_0x5419a0(0xc8)][_0x5419a0(0x11b)]=JSON[_0x5419a0(0x73)](_0x28d6f8[_0x5419a0(0xab)][_0x5419a0(0x12e)]));let _0x1f52f9=![];_0x28d6f8['config']['accessibility']&&(_0x1f52f9=!![],process['env'][_0x5419a0(0xe0)]=_0x28d6f8[_0x5419a0(0xab)]['accessibility']);const _0x45e117=_0x4a15c9[_0x5419a0(0xff)](),_0x37ffd2=await _0x100766[_0x5419a0(0x86)](getUserPlaywrightConfig,_0xb9fa48,_0x4a15c9);if(helper['isUndefined'](_0x37ffd2)){_0x100766[_0x5419a0(0xb8)](spawnOriginalProcess,_0x45e117);return;}const _0x2aff26=_0x37ffd2[_0x5419a0(0xce)]?path['dirname'](_0x37ffd2[_0x5419a0(0xce)]):process[_0x5419a0(0xb2)]();process[_0x5419a0(0xc8)][_0x5419a0(0xf6)]=_0x2aff26,await PerformanceTester[_0x5419a0(0xb3)](PerformanceEvents[_0x5419a0(0x126)],async()=>{const _0x47be32=_0x5419a0;!BrowserstackCLI[_0x47be32(0x11e)]()[_0x47be32(0xea)]()&&await TestHubHandler['launchBuild'](FRAMEWORKS['PLAYWRIGHT'],_0x28d6f8),_0x4fe261&&_0x100766[_0x47be32(0xb8)](handleO11yRerun,_0x4a15c9);})();if(!BrowserstackCLI['getInstance']()['isRunning']()){let _0x5096d8=_0x100766[_0x5419a0(0x81)](process[_0x5419a0(0xc8)][_0x5419a0(0xe0)],_0x100766[_0x5419a0(0xed)]);_0x5096d8=_0x5096d8||_0x100766['PjObx'](checkAccessibilityPlatformConfig,_0x28d6f8[_0x5419a0(0xab)]),process['env'][_0x5419a0(0xe0)]=_0x5096d8,_0x5096d8&&_0x100766[_0x5419a0(0xb8)](setAccessibilityCapabilities,_0x28d6f8[_0x5419a0(0xab)]);}const _0x11ddb5=path[_0x5419a0(0x104)](_0x37ffd2[_0x5419a0(0xce)]?path['dirname'](_0x37ffd2['path']):process['cwd'](),_0x100766['yAeZG']);fs['writeFileSync'](_0x11ddb5,helper[_0x5419a0(0x11c)](_0x28d6f8[_0x5419a0(0xab)])),process[_0x5419a0(0xc8)][_0x5419a0(0x10c)]=_0x11ddb5,helper[_0x5419a0(0xf9)]();let _0x48edd7='';_0x100766[_0x5419a0(0xec)](helper[_0x5419a0(0xc9)](),constants['PACKAGE_TYPE'][_0x5419a0(0xca)])?_0x48edd7=_0x100766[_0x5419a0(0x119)]:_0x48edd7=_0x100766[_0x5419a0(0xfb)];let _0x241c25='';if(helper[_0x5419a0(0xfd)](_0x37ffd2[_0x5419a0(0xce)])){_0x241c25=_0x5419a0(0xb4);const _0x527e23=_0x48edd7['split']('.');_0x527e23[_0x100766[_0x5419a0(0x128)](_0x527e23['length'],0x1)]='ts',_0x48edd7=_0x527e23[_0x5419a0(0x104)]('.'),logger[_0x5419a0(0xcf)](_0x100766[_0x5419a0(0x10a)](_0x100766[_0x5419a0(0xf3)],_0x48edd7));}else _0x241c25=_0x5419a0(0x93);const _0xa5dca=path['join'](_0x37ffd2[_0x5419a0(0xce)]?path[_0x5419a0(0x101)](_0x37ffd2['path']):process[_0x5419a0(0xb2)](),_0x48edd7);let _0x534e46=_0x37ffd2['path']?_0x37ffd2['path']:'';_0x534e46=_0x100766[_0x5419a0(0xa0)](_0x534e46[_0x5419a0(0xcb)],0x0)?path[_0x5419a0(0x66)](_0x534e46):'',process[_0x5419a0(0xc8)]['USER_CONFIG_DETAILS_PATH']=_0x534e46;const _0x3f909f=helper[_0x5419a0(0x76)](_0x28d6f8[_0x5419a0(0xab)]),_0x4c4bea=helper['getNoProxy'](_0x28d6f8[_0x5419a0(0xab)]);logger['debug'](_0x5419a0(0x99)+_0x3f909f),logger['debug']('No\x20Proxy\x20:\x20'+_0x4c4bea);_0x3f909f&&(_0x241c25=_0x100766['VmhcK'](_0x5419a0(0x6e)+_0x3f909f+_0x5419a0(0x8a)+_0x4c4bea+_0x5419a0(0x98),_0x241c25));helper[_0x5419a0(0x10d)]({},_0x4a15c9),fs[_0x5419a0(0x120)](_0xa5dca,_0x241c25);let _0x126e9a=[];const _0x1df812=new TestOrchestrationHandler(_0x28d6f8['config']);if(_0x1df812[_0x5419a0(0xd9)]()){logger['debug'](_0x100766[_0x5419a0(0xc4)]);const _0x41fc6a=await _0x1df812[_0x5419a0(0x8b)](_0x534e46,_0x4a15c9['slice'](0x2));logger[_0x5419a0(0xcf)](_0x5419a0(0x12b)+JSON[_0x5419a0(0x73)](_0x41fc6a)+_0x5419a0(0xa2));const _0x5447bd=await _0x1df812[_0x5419a0(0x97)](_0x41fc6a);logger[_0x5419a0(0xcf)](_0x5419a0(0x9d)+JSON[_0x5419a0(0x73)](_0x5447bd)),_0x5447bd&&_0x100766[_0x5419a0(0x125)](_0x5447bd[_0x5419a0(0xcb)],0x0)&&(process[_0x5419a0(0xc8)][_0x5419a0(0x12f)]=_0x5447bd[_0x5419a0(0x104)](','),_0x100766[_0x5419a0(0xb6)](_0x5447bd[_0x5419a0(0xcb)],_0x41fc6a[_0x5419a0(0xcb)])&&(_0x126e9a=_0x5447bd[_0x5419a0(0xd0)](_0x215036=>path[_0x5419a0(0x10b)](process['cwd'](),_0x215036)[_0x5419a0(0x109)](path[_0x5419a0(0x95)])[_0x5419a0(0x104)]('/'))));}PerformanceTester[_0x5419a0(0xe2)](PerformanceEvents[_0x5419a0(0x114)]),process['env'][_0x5419a0(0xe9)]=process[_0x5419a0(0xc8)][_0x5419a0(0xe9)]||_0x100766[_0x5419a0(0xbb)];const _0x5a3ef9=_0x100766[_0x5419a0(0x7d)](spawn,helper['isYarnPnP']()?_0x100766[_0x5419a0(0xe3)]:_0x100766[_0x5419a0(0x102)],[_0x100766['DKZaT'],_0x100766['NMgLK'],_0x100766['rZwOs'],_0x100766[_0x5419a0(0x69)](process[_0x5419a0(0x8e)],_0x100766['Jpbvt'])?'\x22'+_0xa5dca+'\x22':_0xa5dca,..._0x4a15c9[_0x5419a0(0x124)](0x2),..._0x126e9a],{'shell':_0x100766[_0x5419a0(0xf4)](process[_0x5419a0(0x8e)],_0x100766['Jpbvt']),'stdio':_0x100766['exGat'],'cwd':process[_0x5419a0(0xb2)](),'env':Object[_0x5419a0(0xf0)]({},process[_0x5419a0(0xc8)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x5419a0(0x6c)](_0xb9fa48),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x28d6f8[_0x5419a0(0xab)][_0x5419a0(0x7c)][_0x5419a0(0xe4)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x28d6f8['config']['testContextOptions'][_0x5419a0(0xc3)],'BROWSERSTACK_LOG_LEVEL':_0x28d6f8[_0x5419a0(0xab)][_0x5419a0(0x7f)]})}),_0x3e6f2d=()=>{const _0x7c2b57=_0x5419a0;try{const _0x527093=path[_0x7c2b57(0x104)](helper[_0x7c2b57(0x67)](),_0x44f498[_0x7c2b57(0xc0)],_0x44f498['pWFke']);if(fs['existsSync'](_0x527093)){let _0x25c603=fs[_0x7c2b57(0x74)](_0x527093);_0x25c603=JSON[_0x7c2b57(0xdc)](_0x25c603),_0x28d6f8['errorMessage']=_0x25c603,fs[_0x7c2b57(0xd5)](_0x527093);}}catch(_0x4fcc20){logger[_0x7c2b57(0xcf)](_0x44f498['BWLAn'](_0x44f498[_0x7c2b57(0x8c)],_0x4fcc20));}};_0x5a3ef9['on'](_0x100766[_0x5419a0(0x132)],async _0x309e0e=>{const _0x363fe3=_0x5419a0;try{PerformanceTester['start'](PerformanceEvents[_0x363fe3(0x85)]),_0x100766[_0x363fe3(0xc6)](_0x3e6f2d),await TestHubHandler['stop'](),await ClientTroubleShootingService['reportFinalDetectionState']();const _0x4bb23a=BrowserstackCLI[_0x363fe3(0xb0)]();await BrowserstackCLI['getInstance']()['stop'](),TestDetails[_0x363fe3(0xf1)](),_0x100766['Srphi'](printBuildLink),await utilities[_0x363fe3(0x133)](_0x28d6f8,_0x4bb23a),process['exitCode']=_0x309e0e,logger[_0x363fe3(0xcf)](_0x363fe3(0x121)+_0x309e0e),logger['info'](_0x363fe3(0xa5)+_0xa5dca),fs[_0x363fe3(0xd5)](_0xa5dca);fs[_0x363fe3(0xd4)](_0x11ddb5)&&(logger[_0x363fe3(0xcf)](_0x363fe3(0xa5)+_0x11ddb5),fs[_0x363fe3(0xd5)](_0x11ddb5));const _0x33a12c=fs[_0x363fe3(0x9f)](path['join'](helper[_0x363fe3(0x67)](),_0x100766[_0x363fe3(0xad)]))[_0x363fe3(0x80)](_0x3b2389=>_0x3b2389[_0x363fe3(0x103)]('trace_'));_0x33a12c[_0x363fe3(0x8f)](_0x1ebb14=>{const _0x83b114=_0x363fe3;fs['unlinkSync'](path[_0x83b114(0x104)](helper['homedir'](),_0x44f498[_0x83b114(0xc0)],_0x1ebb14));});}catch(_0x337d38){logger[_0x363fe3(0xcf)](_0x100766[_0x363fe3(0x10a)](_0x100766['GpBcC'],_0x337d38));}});})();}module['exports']=run;function a48_0x51c0(){const _0x3e64c4=['npx','../../helpers/test-observability/utils','getConfigPath','constants','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','apply','135355XoiYDu','GQBRq','BrowserStack\x20config\x20file\x20not\x20found.','stringify','readFileSync','jOxms','getProxyUrl','indexOf','bootstrap','win32','DIzlQ','has','testContextOptions','xvVWY','../../helpers/performance/performance-tester','logLevel','filter','gfLlH','cliConfig','setBrowserstackConfig','16SxvYMz','SDK_CLEANUP','DKxdZ','AZhdE','false','yarn','\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','findPlaywrightTestFiles','QUzyG','37624feuaxe','platform','forEach','child_process','reportConflictingEnvVarIssue','BROWSERSTACK_TEST_OBSERVABILITY','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','accessSync','sep','nwBdA','reorderTestFiles','\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\x20bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;\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();','Proxy\x20url\x20:\x20','9kdklCl','4394320AlsIpi','./accessibility-helper','Reordered\x20Test\x20Files:\x20','--disable-test-observability','readdirSync','AxapV','BROWSERSTACK_AUTOMATION','\x20test\x20files\x20to\x20run.','configPath','playwright','Deleting\x20','./reporter/pwUtils','--disable-browserstack-automation','reportDotBrowserStackFolderNotAccessibleIssue','7QbFVLc','test','config','iDenS','mRYxJ','Error\x20in\x20deleting\x20playwright\x20results','browserstackAutomation','isCLIEnabled','vLEFf','cwd','measureWrapper','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','findIndex','yUpwI','../../helpers/helper','PjObx','merRS','R_OK','DKZaT','../../helpers/accessibility-automation/helper','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','INTERNALLY_USED_ENV_VARS','hOShY','oCDem','true','29800tFropw','skipSessionName','OsKlE','W_OK','KqsRl','6396797dIUQpK','env','getPackageType','MODULE','length','util','hhVyT','path','debug','map','requirePWModule','../../helpers/performance/constants','../utils/constants','existsSync','unlinkSync','resolvedConfigFile','xbMtt','../../helpers/utilities','isTestOrchestrationEnabled','uwznz','browserstackSetupConfig.json','parse','PcqWW','YreuD','--grep','BROWSERSTACK_TEST_ACCESSIBILITY_YML','isTrue','end','XYOTn','skipSessionStatus','error','../utils/clientTroubleshootingService','pw_result.json','inherit','BROWSERSTACK_FRAMEWORK','isRunning','dQrcV','kgskr','alVmj','playwright-browserstack-sdk.config.cjs','Error\x20in\x20closing\x20playwright','assign','shutdown','SDK_PRE_INITIALIZE','monyU','emzzK','JLcYS','BROWSERSTACK_PW_CONFIG_DIR','../v2/browserstackCLI','pcnDu','clearTempPWConfig','nKqaP','eXHjz','.browserstack','isTypescriptProject','--config','concat','setupBrowserstackLocal','dirname','HZZvh','startsWith','join','validateRerunTestList','BROWSERSTACK_RERUN','testObservability','QvLYL','split','VmhcK','relative','BROWSERSTACK_SETUP_CONFIG_PATH','filterBrowserstackArgs','JzwMo','uLoOb','close','splice','--config=','./reporter/test-details','SDK_SETUP','../../helpers/BrowserStackSetup','isUndefined','REKjz','winstonLogger','iVViO','isFalse','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','serializeToYamlString','../v2/cliUtils','getInstance','isYarnPnP','writeFileSync','Playwright\x20process\x20exited\x20with\x20code\x20','push','614328blnKli','slice','oSahb','SDK_POST_INITIALIZE','../../helpers/test-orchestration/testOrchestrationHandler','SFwKC','../../helpers/logger','250854UVALYB','Found:\x20','Error\x20in\x20getting\x20funnel\x20data\x20results','yOOsP','accessibilityOptions','BROWSERSTACK_PW_TEST_ORDER','setFrameworkDetail','PLAYWRIGHT','yVSKf','finalExecution','resolve','homedir','44AOejyK','RyAKS'];a48_0x51c0=function(){return _0x3e64c4;};return a48_0x51c0();}
@@ -1 +1 @@
1
- const a49_0x33977f=a49_0x2901;(function(_0x40f27b,_0x417c5a){const _0x47b424=a49_0x2901,_0x376747=_0x40f27b();while(!![]){try{const _0x5cd01a=-parseInt(_0x47b424(0x16c))/0x1+parseInt(_0x47b424(0x17b))/0x2+parseInt(_0x47b424(0x168))/0x3*(-parseInt(_0x47b424(0x177))/0x4)+parseInt(_0x47b424(0x188))/0x5*(-parseInt(_0x47b424(0x194))/0x6)+-parseInt(_0x47b424(0x172))/0x7*(-parseInt(_0x47b424(0x175))/0x8)+parseInt(_0x47b424(0x18f))/0x9+parseInt(_0x47b424(0x187))/0xa;if(_0x5cd01a===_0x417c5a)break;else _0x376747['push'](_0x376747['shift']());}catch(_0x475727){_0x376747['push'](_0x376747['shift']());}}}(a49_0x2eed,0x86230));const util=require(a49_0x33977f(0x16e)),child_process=require(a49_0x33977f(0x174)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getFrameworkVersion,debug}=require(a49_0x33977f(0x17a)),helper=require(a49_0x33977f(0x183)),{getForkProcessPath}=require(a49_0x33977f(0x18e)),{mockIsWorkerRedundant}=require(a49_0x33977f(0x16a)),logger=require(a49_0x33977f(0x193))[a49_0x33977f(0x17d)];function a49_0x2eed(){const _0x373f9d=['debug','apply','iPDix','../../helpers/helper','1.33.0','AInPx','includes','2423460dyrlJw','15qydCFo','pEzZh','installAll','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','Not\x20able\x20to\x20resolve\x20loadGlobalHook\x20for\x20current\x20Playwright\x20version','yumEy','./reporter/pwUtils','5172831eLAVaG','fork','ZSaVh','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','../../helpers/logger','859926fhPhSP','Running\x20existing\x20global\x20setup','fYJzD','MNVGY','egSEu','resolve','57aSZLwe','error','./patches','OmUVq','197511SancRu','Call\x20to\x20child\x20fork\x20with\x20args\x20','util','playwright','../../helpers/driverInitErrorReporter','Path\x20','14spQYUS','isHandlePWErrorSet','child_process','2111856MvEiFV','compareVersions','53124TgPJZJ','DyoyM','message','../../helpers/test-observability/utils','168336IyiZra','PLAYWRIGHT','winstonLogger','driver-init\x20capture\x20install\x20failed:\x20','env'];a49_0x2eed=function(){return _0x373f9d;};return a49_0x2eed();}function a49_0x2901(_0x1e4433,_0x38d3bc){const _0x2eed26=a49_0x2eed();return a49_0x2901=function(_0x29016d,_0x57a53e){_0x29016d=_0x29016d-0x168;let _0x3e8d98=_0x2eed26[_0x29016d];return _0x3e8d98;},a49_0x2901(_0x1e4433,_0x38d3bc);}try{require(a49_0x33977f(0x170))[a49_0x33977f(0x18a)](a49_0x33977f(0x16f));}catch(a49_0xb0a880){logger[a49_0x33977f(0x180)](a49_0x33977f(0x17e)+(a49_0xb0a880&&a49_0xb0a880[a49_0x33977f(0x179)]));}module['exports']=async function(_0x2c513d){const _0x3e55fd=a49_0x33977f,_0x565f3c={'egSEu':function(_0x74e259,_0x563823){return _0x74e259(_0x563823);},'AInPx':function(_0x55b31f){return _0x55b31f();},'iPDix':'./mock-process.js','mAXcs':function(_0x3d5714){return _0x3d5714();},'OmUVq':_0x3e55fd(0x195),'ZSaVh':function(_0x2eb900,_0x5e1c10){return _0x2eb900!==_0x5e1c10;},'pEzZh':'function','UYlhr':_0x3e55fd(0x18c),'DyoyM':function(_0x143860,_0x8b27f1){return _0x143860(_0x8b27f1);},'MNVGY':function(_0x5b39e7,_0x2c4e19){return _0x5b39e7>=_0x2c4e19;},'XfQNG':_0x3e55fd(0x184),'aNDdo':function(_0x59aeaa,_0x284787,_0x34b1ad){return _0x59aeaa(_0x284787,_0x34b1ad);},'yumEy':'Not\x20able\x20to\x20import\x20globalSetup','fYJzD':function(_0xb31efd,_0x1661fd){return _0xb31efd(_0x1661fd);}},_0x8f7537=child_process[_0x3e55fd(0x190)];if(helper[_0x3e55fd(0x173)]())try{_0x565f3c['mAXcs'](mockIsWorkerRedundant);}catch(_0x2e4794){logger['debug'](_0x3e55fd(0x192)+util['format'](_0x2e4794));}child_process[_0x3e55fd(0x190)]=function(){const _0x19e5e7=_0x3e55fd;return _0x565f3c[_0x19e5e7(0x198)](debug,_0x19e5e7(0x16d)+arguments[0x0]),arguments[0x0][_0x19e5e7(0x186)](_0x565f3c[_0x19e5e7(0x185)](getForkProcessPath))?arguments[0x0]=require[_0x19e5e7(0x199)](_0x565f3c[_0x19e5e7(0x182)]):logger[_0x19e5e7(0x169)](_0x19e5e7(0x171)+_0x565f3c[_0x19e5e7(0x185)](getForkProcessPath)+'\x20is\x20not\x20found'),_0x8f7537[_0x19e5e7(0x181)](null,arguments);};if(process[_0x3e55fd(0x17f)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']){_0x565f3c['egSEu'](debug,_0x565f3c[_0x3e55fd(0x16b)]);try{const _0xa92ad1=helper['resolveLoadGlobalHook']();if(_0x565f3c[_0x3e55fd(0x191)](typeof _0xa92ad1,_0x565f3c[_0x3e55fd(0x189)]))throw new Error(_0x565f3c['UYlhr']);const _0x10b780=_0x565f3c[_0x3e55fd(0x178)](getFrameworkVersion,FRAMEWORKS[_0x3e55fd(0x17c)]);let _0x39a178=_0x2c513d;if(_0x565f3c[_0x3e55fd(0x197)](helper[_0x3e55fd(0x176)](_0x10b780,_0x565f3c['XfQNG']),0x0)){const _0x465512={};_0x465512['config']=_0x2c513d,_0x39a178=_0x465512;}const _0x3897c6=await _0x565f3c['aNDdo'](_0xa92ad1,_0x39a178,process[_0x3e55fd(0x17f)][_0x3e55fd(0x18b)]);if(_0x565f3c[_0x3e55fd(0x191)](typeof _0x3897c6,_0x565f3c['pEzZh']))throw new Error(_0x565f3c[_0x3e55fd(0x18d)]);return _0x3897c6[_0x3e55fd(0x181)](null,arguments);}catch(_0x5be3ba){_0x565f3c[_0x3e55fd(0x196)](debug,'Error\x20in\x20calling\x20existing\x20global\x20setup:\x20'+_0x5be3ba['toString']());}}};
1
+ function a49_0x455e(_0x195d35,_0x506ece){const _0x26cffa=a49_0x26cf();return a49_0x455e=function(_0x455e1f,_0x3bc287){_0x455e1f=_0x455e1f-0x137;let _0x19bef4=_0x26cffa[_0x455e1f];return _0x19bef4;},a49_0x455e(_0x195d35,_0x506ece);}function a49_0x26cf(){const _0x37f2ba=['env','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','22108RWucee','13134SZDEEv','1981212AePiiD','../../helpers/logger','655svLPia','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','../../helpers/test-observability/constants','includes','cmyYq','6330QxwyQf','NRjPV','aabCN','format','OQALk','YJejK','resolve','isHandlePWErrorSet','13JJPJtq','winstonLogger','HrTWW','child_process','6072372XvmWeE','installAll','ToaVm','../../helpers/helper','PLAYWRIGHT','Not\x20able\x20to\x20resolve\x20loadGlobalHook\x20for\x20current\x20Playwright\x20version','util','resolveLoadGlobalHook','driver-init\x20capture\x20install\x20failed:\x20','Call\x20to\x20child\x20fork\x20with\x20args\x20','woCCC','./patches','32888oALWJD','compareVersions','debug','693CJHERj','Gctux','../../helpers/driverInitErrorReporter','playwright','function','qnrHE','KRplG','./reporter/pwUtils','53koNQwd','497124oWaQTR','error','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','63rBBaIh','vfvvm','\x20is\x20not\x20found','7586vgwvNW','Running\x20existing\x20global\x20setup','toString','fork'];a49_0x26cf=function(){return _0x37f2ba;};return a49_0x26cf();}const a49_0x36e3fb=a49_0x455e;(function(_0x18af3c,_0x263787){const _0x24a3d1=a49_0x455e,_0x3fa1f7=_0x18af3c();while(!![]){try{const _0x24c933=parseInt(_0x24a3d1(0x168))/0x1*(parseInt(_0x24a3d1(0x16f))/0x2)+-parseInt(_0x24a3d1(0x13e))/0x3+-parseInt(_0x24a3d1(0x13c))/0x4*(-parseInt(_0x24a3d1(0x140))/0x5)+parseInt(_0x24a3d1(0x169))/0x6*(-parseInt(_0x24a3d1(0x16c))/0x7)+-parseInt(_0x24a3d1(0x15d))/0x8*(parseInt(_0x24a3d1(0x160))/0x9)+parseInt(_0x24a3d1(0x145))/0xa*(parseInt(_0x24a3d1(0x13d))/0xb)+-parseInt(_0x24a3d1(0x151))/0xc*(-parseInt(_0x24a3d1(0x14d))/0xd);if(_0x24c933===_0x263787)break;else _0x3fa1f7['push'](_0x3fa1f7['shift']());}catch(_0x2870de){_0x3fa1f7['push'](_0x3fa1f7['shift']());}}}(a49_0x26cf,0x71586));const util=require(a49_0x36e3fb(0x157)),child_process=require(a49_0x36e3fb(0x150)),{FRAMEWORKS}=require(a49_0x36e3fb(0x142)),{getFrameworkVersion,debug}=require('../../helpers/test-observability/utils'),helper=require(a49_0x36e3fb(0x154)),{getForkProcessPath}=require(a49_0x36e3fb(0x167)),{mockIsWorkerRedundant}=require(a49_0x36e3fb(0x15c)),logger=require(a49_0x36e3fb(0x13f))[a49_0x36e3fb(0x14e)];try{require(a49_0x36e3fb(0x162))[a49_0x36e3fb(0x152)](a49_0x36e3fb(0x163));}catch(a49_0x2b6915){logger['debug'](a49_0x36e3fb(0x159)+(a49_0x2b6915&&a49_0x2b6915['message']));}module['exports']=async function(_0x2dc438){const _0x4f2943=a49_0x36e3fb,_0x160790={'YJejK':function(_0x36078c,_0x4f5927){return _0x36078c(_0x4f5927);},'NRjPV':function(_0x31b6a3){return _0x31b6a3();},'QIGYX':'./mock-process.js','aabCN':function(_0x1c497c){return _0x1c497c();},'LTFTg':function(_0x263db5,_0x56f918){return _0x263db5(_0x56f918);},'KRplG':_0x4f2943(0x137),'OQALk':function(_0x2ae74f,_0x2df8c7){return _0x2ae74f!==_0x2df8c7;},'woCCC':_0x4f2943(0x164),'vfvvm':_0x4f2943(0x156),'HrTWW':function(_0x1e5aa6,_0x1d21e0){return _0x1e5aa6>=_0x1d21e0;},'qnrHE':'1.33.0','Gctux':function(_0xfed0dc,_0x2851ff,_0x48658f){return _0xfed0dc(_0x2851ff,_0x48658f);},'cmyYq':'Not\x20able\x20to\x20import\x20globalSetup','ToaVm':function(_0x3093b2,_0x547fd4){return _0x3093b2(_0x547fd4);}},_0x4fa12a=child_process[_0x4f2943(0x139)];if(helper[_0x4f2943(0x14c)]())try{_0x160790[_0x4f2943(0x147)](mockIsWorkerRedundant);}catch(_0x32ddb2){logger[_0x4f2943(0x15f)](_0x4f2943(0x16b)+util[_0x4f2943(0x148)](_0x32ddb2));}child_process[_0x4f2943(0x139)]=function(){const _0x5a4be2=_0x4f2943;return _0x160790[_0x5a4be2(0x14a)](debug,_0x5a4be2(0x15a)+arguments[0x0]),arguments[0x0][_0x5a4be2(0x143)](_0x160790['NRjPV'](getForkProcessPath))?arguments[0x0]=require[_0x5a4be2(0x14b)](_0x160790['QIGYX']):logger[_0x5a4be2(0x16a)]('Path\x20'+_0x160790[_0x5a4be2(0x146)](getForkProcessPath)+_0x5a4be2(0x16e)),_0x4fa12a['apply'](null,arguments);};if(process['env'][_0x4f2943(0x141)]){_0x160790['LTFTg'](debug,_0x160790[_0x4f2943(0x166)]);try{const _0x336a95=helper[_0x4f2943(0x158)]();if(_0x160790[_0x4f2943(0x149)](typeof _0x336a95,_0x160790[_0x4f2943(0x15b)]))throw new Error(_0x160790[_0x4f2943(0x16d)]);const _0xf61456=_0x160790['LTFTg'](getFrameworkVersion,FRAMEWORKS[_0x4f2943(0x155)]);let _0x27b2a6=_0x2dc438;if(_0x160790[_0x4f2943(0x14f)](helper[_0x4f2943(0x15e)](_0xf61456,_0x160790[_0x4f2943(0x165)]),0x0)){const _0x4bf32b={};_0x4bf32b['config']=_0x2dc438,_0x27b2a6=_0x4bf32b;}const _0x432763=await _0x160790[_0x4f2943(0x161)](_0x336a95,_0x27b2a6,process[_0x4f2943(0x13a)][_0x4f2943(0x141)]);if(_0x160790[_0x4f2943(0x149)](typeof _0x432763,_0x160790[_0x4f2943(0x15b)]))throw new Error(_0x160790[_0x4f2943(0x144)]);return _0x432763['apply'](null,arguments);}catch(_0x4b0456){_0x160790[_0x4f2943(0x153)](debug,_0x4f2943(0x13b)+_0x4b0456[_0x4f2943(0x138)]());}}};