browserstack-node-sdk 1.53.3 → 1.53.5

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 (193) 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/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/nightwatch/command.js +1 -1
  79. package/src/bin/playwright/accessibility-helper.js +1 -1
  80. package/src/bin/playwright/command.js +1 -1
  81. package/src/bin/playwright/globalSetup.js +1 -1
  82. package/src/bin/playwright/mock-process.js +1 -1
  83. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  84. package/src/bin/playwright/patches.js +1 -1
  85. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  86. package/src/bin/playwright/reporter/reporter.js +1 -1
  87. package/src/bin/playwright/reporter/test-details.js +1 -1
  88. package/src/bin/playwright/sessionDetails.js +1 -1
  89. package/src/bin/puppeteer/patches.js +1 -1
  90. package/src/bin/puppeteer/sessionDetails.js +1 -1
  91. package/src/bin/puppeteer/test.setup.js +1 -1
  92. package/src/bin/runner.js +1 -1
  93. package/src/bin/setup.js +1 -1
  94. package/src/bin/test-runner/index.js +1 -1
  95. package/src/bin/test-runner/runTest.js +1 -1
  96. package/src/bin/test-runner/testWorker.js +1 -1
  97. package/src/bin/utils/apiUtilityMethods.js +1 -1
  98. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  99. package/src/bin/utils/constants.js +1 -1
  100. package/src/bin/utils/log4jsAppender.js +1 -1
  101. package/src/bin/utils/logPatcher.js +1 -1
  102. package/src/bin/utils/logReportingAPI.js +1 -1
  103. package/src/bin/utils/playwright-patcher.js +1 -1
  104. package/src/bin/utils/puppeteer-patcher.js +1 -1
  105. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  106. package/src/bin/utils/sharedUtils.js +1 -1
  107. package/src/bin/v2/TestInfo.js +1 -1
  108. package/src/bin/v2/browserstackCLI.js +1 -1
  109. package/src/bin/v2/cliUtils.js +1 -1
  110. package/src/bin/v2/customTagManager.js +1 -1
  111. package/src/bin/v2/eventDispatcher.js +1 -1
  112. package/src/bin/v2/framework/automationFramework.js +1 -1
  113. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  114. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  115. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  116. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  117. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  118. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  119. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  120. package/src/bin/v2/framework/testFramework.js +1 -1
  121. package/src/bin/v2/grpcClient.js +1 -1
  122. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  123. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  124. package/src/bin/v2/instances/trackedContext.js +1 -1
  125. package/src/bin/v2/instances/trackedInstance.js +1 -1
  126. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  127. package/src/bin/v2/modules/baseModule.js +1 -1
  128. package/src/bin/v2/modules/loadTestModule.js +1 -1
  129. package/src/bin/v2/modules/observabilityModule.js +1 -1
  130. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  131. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  132. package/src/bin/v2/modules/testhubModule.js +1 -1
  133. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  134. package/src/bin/v2/state/hookState.js +1 -1
  135. package/src/bin/v2/state/testFrameworkState.js +1 -1
  136. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  137. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  138. package/src/bin/v2/utils/jest-utils.js +1 -1
  139. package/src/bin/vanilla-js/command.js +1 -1
  140. package/src/browserStackSdk.js +1 -1
  141. package/src/helpers/BrowserStackSetup.js +1 -1
  142. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  143. package/src/helpers/accessibility-automation/constants.js +1 -1
  144. package/src/helpers/accessibility-automation/helper.js +1 -1
  145. package/src/helpers/accessibility-automation/scripts.js +1 -1
  146. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  147. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  148. package/src/helpers/ats/constants.js +1 -1
  149. package/src/helpers/ats/helper.js +1 -1
  150. package/src/helpers/capsMapping.js +1 -1
  151. package/src/helpers/central-scanner/constants.js +1 -1
  152. package/src/helpers/central-scanner/helpers.js +1 -1
  153. package/src/helpers/classLogger.js +1 -1
  154. package/src/helpers/globals.js +1 -1
  155. package/src/helpers/helper.js +1 -1
  156. package/src/helpers/logger.js +1 -1
  157. package/src/helpers/metadata.js +1 -1
  158. package/src/helpers/patchHelper.js +1 -1
  159. package/src/helpers/patchHelpers.js +1 -1
  160. package/src/helpers/percy/Percy.js +1 -1
  161. package/src/helpers/percy/PercyBinary.js +1 -1
  162. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  163. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  164. package/src/helpers/percy/PercySDK.js +1 -1
  165. package/src/helpers/percy/index.js +1 -1
  166. package/src/helpers/percy/utils.js +1 -1
  167. package/src/helpers/performance/constants.js +1 -1
  168. package/src/helpers/performance/performance-tester.js +1 -1
  169. package/src/helpers/playwright-helper.js +1 -1
  170. package/src/helpers/processHelper.js +1 -1
  171. package/src/helpers/puppeteer-helper.js +1 -1
  172. package/src/helpers/request-spy.js +1 -1
  173. package/src/helpers/setKeepAlive.js +1 -1
  174. package/src/helpers/test-observability/constants.js +1 -1
  175. package/src/helpers/test-observability/error-handler.js +1 -1
  176. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  177. package/src/helpers/test-observability/sessionHandler.js +1 -1
  178. package/src/helpers/test-observability/utils.js +1 -1
  179. package/src/helpers/test-orchestration/constants.js +1 -1
  180. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  181. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  182. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  183. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  184. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  185. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  186. package/src/helpers/testhub/constants.js +1 -1
  187. package/src/helpers/testhub/testhubHandler.js +1 -1
  188. package/src/helpers/testhub/utils.js +1 -1
  189. package/src/helpers/timeoutPromise.js +1 -1
  190. package/src/helpers/utilities.js +1 -1
  191. package/src/helpers/w3cMapping.js +1 -1
  192. package/src/hubAllocationMethods.js +1 -1
  193. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a38_0x483973=a38_0x5523;function a38_0x5523(_0x5d3077,_0x84527e){const _0x4452a2=a38_0x4452();return a38_0x5523=function(_0x552367,_0x2dc1fc){_0x552367=_0x552367-0x194;let _0x13cb8a=_0x4452a2[_0x552367];return _0x13cb8a;},a38_0x5523(_0x5d3077,_0x84527e);}(function(_0x13ef03,_0x22372f){const _0x329a97=a38_0x5523,_0x5a7aac=_0x13ef03();while(!![]){try{const _0x5584d9=parseInt(_0x329a97(0x203))/0x1*(-parseInt(_0x329a97(0x1b3))/0x2)+parseInt(_0x329a97(0x197))/0x3*(parseInt(_0x329a97(0x1a2))/0x4)+-parseInt(_0x329a97(0x1b5))/0x5+parseInt(_0x329a97(0x1c2))/0x6+-parseInt(_0x329a97(0x215))/0x7*(-parseInt(_0x329a97(0x1a6))/0x8)+parseInt(_0x329a97(0x221))/0x9*(parseInt(_0x329a97(0x1ac))/0xa)+-parseInt(_0x329a97(0x19e))/0xb;if(_0x5584d9===_0x22372f)break;else _0x5a7aac['push'](_0x5a7aac['shift']());}catch(_0x43bbc3){_0x5a7aac['push'](_0x5a7aac['shift']());}}}(a38_0x4452,0x55248));const util=require(a38_0x483973(0x1fb)),logger=require('../../helpers/logger')['winstonLogger'],{automationLogger}=require(a38_0x483973(0x226)),{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined,isBrowserstackInfra}=require(a38_0x483973(0x1e1)),scripts=require(a38_0x483973(0x1dc)),PerformanceTester=require(a38_0x483973(0x1aa)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a38_0x483973(0x1bc)),accessibilityHelper=require(a38_0x483973(0x1da)),{AUTOMATION_LOG_COMMANDS}=require(a38_0x483973(0x1ff));exports['browserStackEvaluate']=async(_0x211a89,_0x55ce1d,_0x15d55f={})=>{const _0x2a55c0=a38_0x483973,_0xc31577={};_0xc31577[_0x2a55c0(0x1d7)]=_0x2a55c0(0x1b0),_0xc31577[_0x2a55c0(0x1d6)]=function(_0x4620cd,_0xfd81df){return _0x4620cd===_0xfd81df;},_0xc31577[_0x2a55c0(0x20c)]=_0x2a55c0(0x19d);const _0x5284ba=_0xc31577,_0x225487=await _0x211a89[_0x2a55c0(0x1c6)](_0x2a55c0(0x1f2)+_0x55ce1d[_0x2a55c0(0x1c8)](/arguments/g,_0x5284ba[_0x2a55c0(0x1d7)])+_0x2a55c0(0x223)+JSON['stringify'](_0x15d55f)+')');try{if(_0x55ce1d&&_0x5284ba[_0x2a55c0(0x1d6)](typeof _0x55ce1d,_0x5284ba[_0x2a55c0(0x20c)])){const _0x568aea=AUTOMATION_LOG_COMMANDS[_0x2a55c0(0x194)](_0x1201fd=>_0x55ce1d[_0x2a55c0(0x1b1)](_0x1201fd));if(_0x568aea){const _0x2722c5={};_0x2722c5[_0x2a55c0(0x1d1)]=_0x568aea,_0x2722c5['parameters']=[_0x15d55f];const _0x38895f={};_0x38895f[_0x2a55c0(0x1e7)]=_0x225487;const _0x4d9568={};_0x4d9568[_0x2a55c0(0x20e)]=_0x2722c5,_0x4d9568['response']=_0x38895f,automationLogger['silly']('['+new Date()[_0x2a55c0(0x1ae)]()+_0x2a55c0(0x1c0)+JSON[_0x2a55c0(0x199)](_0x4d9568));}}}catch(_0xf0a3f4){logger[_0x2a55c0(0x217)](_0x2a55c0(0x21b)+_0xf0a3f4[_0x2a55c0(0x1b2)]);}return _0x225487;},exports[a38_0x483973(0x1b7)]=async(_0x4ca56f,_0x4be57b,_0x1dbb4={})=>{const _0x1dd0b1=a38_0x483973,_0x376b55={};_0x376b55[_0x1dd0b1(0x1cc)]=function(_0x438eea,_0x4538a2){return _0x438eea===_0x4538a2;},_0x376b55[_0x1dd0b1(0x1f1)]=_0x1dd0b1(0x1df),_0x376b55['soXII']=function(_0x23f2d8,_0x3b5a48){return _0x23f2d8===_0x3b5a48;},_0x376b55[_0x1dd0b1(0x1e4)]=_0x1dd0b1(0x1af),_0x376b55[_0x1dd0b1(0x1e6)]=_0x1dd0b1(0x1b0);const _0x201984=_0x376b55;if(_0x201984[_0x1dd0b1(0x1cc)](_0x4ca56f[_0x1dd0b1(0x1c1)]['name'],_0x201984[_0x1dd0b1(0x1f1)]))return await _0x4ca56f[_0x1dd0b1(0x1dd)](_0x4be57b,_0x1dbb4);else{if(_0x201984[_0x1dd0b1(0x1ab)](_0x4ca56f['constructor'][_0x1dd0b1(0x227)],_0x201984[_0x1dd0b1(0x1e4)]))return await _0x4ca56f[_0x1dd0b1(0x1e8)](_0x1dd0b1(0x213)+_0x4be57b['replace'](/arguments/g,_0x201984[_0x1dd0b1(0x1e6)])+_0x1dd0b1(0x201)+JSON['stringify'](_0x1dbb4)+')');}},exports[a38_0x483973(0x1ce)]=async _0x3ddb01=>{const _0x2c4c2c=a38_0x483973,_0x58d9c6={};_0x58d9c6['ySzDG']='accessibilityOptions.wcagVersion',_0x58d9c6[_0x2c4c2c(0x19a)]=_0x2c4c2c(0x198),_0x58d9c6[_0x2c4c2c(0x224)]=_0x2c4c2c(0x21c),_0x58d9c6[_0x2c4c2c(0x19b)]=_0x2c4c2c(0x20d),_0x58d9c6[_0x2c4c2c(0x21a)]=_0x2c4c2c(0x1b8),_0x58d9c6[_0x2c4c2c(0x1f3)]=_0x2c4c2c(0x196);const _0x5bdc55=_0x58d9c6;_0x3ddb01[_0x2c4c2c(0x222)]&&(_0x3ddb01[_0x2c4c2c(0x222)]['wcagVersion']&&(_0x3ddb01[_0x5bdc55[_0x2c4c2c(0x1a0)]]=_0x3ddb01['accessibilityOptions'][_0x2c4c2c(0x1f4)]),_0x3ddb01[_0x2c4c2c(0x222)][_0x2c4c2c(0x195)]&&(_0x3ddb01[_0x5bdc55[_0x2c4c2c(0x19a)]]=_0x3ddb01['accessibilityOptions'][_0x2c4c2c(0x195)]),_0x3ddb01[_0x2c4c2c(0x222)]['includeIssueType']&&(_0x3ddb01[_0x5bdc55['ZjIVI']]=_0x3ddb01[_0x2c4c2c(0x222)][_0x2c4c2c(0x1db)][_0x2c4c2c(0x200)],_0x3ddb01[_0x5bdc55['gENNc']]=_0x3ddb01[_0x2c4c2c(0x222)][_0x2c4c2c(0x1db)]['needsReview']));const _0x5ad4fc=JSON[_0x2c4c2c(0x1d0)](process[_0x2c4c2c(0x219)][_0x2c4c2c(0x21f)])[_0x2c4c2c(0x1fa)];_0x3ddb01[_0x5bdc55[_0x2c4c2c(0x21a)]]=process[_0x2c4c2c(0x219)]['BS_A11Y_JWT'],_0x3ddb01[_0x5bdc55['jRdif']]=_0x5ad4fc,delete _0x3ddb01[_0x2c4c2c(0x222)];},exports['getAccessibilityResults']=async _0x414508=>{const _0x3a0be0=a38_0x483973,_0x521832={};_0x521832[_0x3a0be0(0x1b4)]=_0x3a0be0(0x1e2),_0x521832[_0x3a0be0(0x1ef)]=_0x3a0be0(0x1be);const _0x17f8d3=_0x521832;if(global[_0x3a0be0(0x210)])try{const details={'url':await _0x414508.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');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x414508,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x414508,scripts.getResults,mobileArgs);},{...details})();return res;}catch{return logger[_0x3a0be0(0x1a7)](_0x17f8d3[_0x3a0be0(0x1b4)]),[];}else return logger[_0x3a0be0(0x1c3)](_0x17f8d3[_0x3a0be0(0x1ef)]),[];},exports[a38_0x483973(0x1cd)]=async(_0x419604,_0x3497b1='',_0x149b33={},_0x51a098={})=>{const _0x2c07cf=a38_0x483973;logger[_0x2c07cf(0x217)]('Performing\x20scan\x20with\x20method:\x20'+_0x3497b1+_0x2c07cf(0x206)+_0x419604);const _0x5b57a8={'url':await _0x419604[_0x2c07cf(0x21d)](),'testhub_btcer_uuid':global['__workerDetails']?.[_0x2c07cf(0x1d3)]?.['id']};if(global['accessibilityPlatform'])return await PerformanceTester[_0x2c07cf(0x1f7)](PerformanceA11yEvents[_0x2c07cf(0x1a9)],async()=>{const _0x2cfab6=_0x2c07cf,_0x58ddb4={};_0x58ddb4['command']=_0x3497b1;const _0x33926f=_0x58ddb4;_0x149b33&&_0x149b33[_0x2cfab6(0x1e3)]&&(_0x33926f[_0x2cfab6(0x1e3)]=_0x149b33[_0x2cfab6(0x1e3)]);Object[_0x2cfab6(0x208)](_0x33926f,_0x51a098);const _0xc5edde=await exports[_0x2cfab6(0x1ec)](_0x419604,scripts[_0x2cfab6(0x1cd)],_0x33926f);return _0xc5edde;},{'command':_0x3497b1,..._0x5b57a8})();},exports[a38_0x483973(0x1a4)]=async _0x54876b=>{const _0x5e3428=a38_0x483973,_0x25a49b={};_0x25a49b['IJpXC']=_0x5e3428(0x1b9),_0x25a49b[_0x5e3428(0x1bb)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.';const _0x15323b=_0x25a49b;if(global[_0x5e3428(0x210)])try{const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x54876b,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x54876b,scripts.getResultsSummary,mobileArgs);})();return summaryResults;}catch{return logger[_0x5e3428(0x217)](_0x15323b[_0x5e3428(0x1fe)]),{};}else return logger[_0x5e3428(0x1c3)](_0x15323b[_0x5e3428(0x1bb)]),{};},exports[a38_0x483973(0x1fd)]=_0x56d2f8=>{const _0x9047b3=a38_0x483973,_0x37ce85={'fdHnE':_0x9047b3(0x1f5),'yclag':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','yYDXI':function(_0x289734,_0x77f118){return _0x289734!==_0x77f118;},'aNcMU':'latest','Fmbmn':function(_0x86a712){return _0x86a712();},'oHAqd':'on\x20non-BrowserStack\x20infrastructure\x20'};try{if(global[_0x9047b3(0x209)])return logger[_0x9047b3(0x217)](_0x37ce85['fdHnE']),!![];const _0x4ed5ee=_0x56d2f8[_0x9047b3(0x1d5)],_0x41d5c6=_0x56d2f8[_0x9047b3(0x1d9)];if(!accessibilityHelper[_0x9047b3(0x1e0)](_0x4ed5ee))return logger[_0x9047b3(0x1c3)](_0x37ce85[_0x9047b3(0x1b6)]),![];if(_0x37ce85['yYDXI'](_0x41d5c6,_0x37ce85[_0x9047b3(0x202)])){const _0x2129d3=_0x37ce85[_0x9047b3(0x1fc)](isBrowserstackInfra),_0x3bb3dd=accessibilityHelper[_0x9047b3(0x205)](_0x4ed5ee,_0x2129d3),_0xe4e562=accessibilityHelper[_0x9047b3(0x212)](_0x4ed5ee);if(!accessibilityHelper[_0x9047b3(0x1eb)](_0x41d5c6,_0x3bb3dd)){const _0x1e121a=_0x2129d3?'':_0x37ce85[_0x9047b3(0x1c5)];return logger[_0x9047b3(0x1c3)](_0x9047b3(0x1c4)+_0xe4e562+_0x9047b3(0x1e5)+_0x3bb3dd+_0x9047b3(0x1d2)+_0x1e121a+'.'),![];}}}catch(_0x3ad16d){logger[_0x9047b3(0x217)](_0x9047b3(0x20b)+util[_0x9047b3(0x1f0)](_0x3ad16d));}return!![];},exports[a38_0x483973(0x1c7)]=(_0x55fd2e,_0x55bb65,_0x777261)=>{const _0x21dd4a=a38_0x483973,_0x5acb3c={'LlFiu':_0x21dd4a(0x211),'GKCxd':function(_0x288d80){return _0x288d80();},'mkpBN':_0x21dd4a(0x1f8),'oIPEn':_0x21dd4a(0x20f),'yHBKG':function(_0x48f5a9,_0x2a9291){return _0x48f5a9!==_0x2a9291;},'zHMtI':_0x21dd4a(0x21e),'nykZz':function(_0x2c928c){return _0x2c928c();},'nQwmV':'on\x20non-BrowserStack\x20infrastructure\x20','MoMZt':function(_0x2e6931,_0x46406f){return _0x2e6931(_0x46406f);},'BbfzN':function(_0x274db3,_0x3cb23f){return _0x274db3===_0x3cb23f;},'GjUkF':_0x21dd4a(0x1de),'OtsEi':_0x21dd4a(0x1a1),'AJKSN':_0x21dd4a(0x214),'HhxvV':_0x21dd4a(0x220),'wxjXe':_0x21dd4a(0x1a8),'OLfHt':function(_0x1e9821,_0x37712f){return _0x1e9821+_0x37712f;}};try{if(_0x5acb3c[_0x21dd4a(0x1e9)](isAccessibilityAutomationSession)){global[_0x21dd4a(0x210)]=!![];!_0x55fd2e[_0x5acb3c[_0x21dd4a(0x1a3)]]&&(global[_0x21dd4a(0x210)]=![]);const _0xec2576=_0x55fd2e[_0x21dd4a(0x1cb)]||_0x55fd2e[_0x21dd4a(0x1d5)],_0x461bce=_0x55fd2e[_0x21dd4a(0x1d9)];!accessibilityHelper['isBrowserSupportedForAccessibility'](_0xec2576)&&(logger[_0x21dd4a(0x1c3)](_0x5acb3c[_0x21dd4a(0x218)]),global[_0x21dd4a(0x210)]=![]);if(_0x5acb3c[_0x21dd4a(0x1cf)](_0x461bce,_0x5acb3c['zHMtI'])){const _0x360e44=_0x5acb3c[_0x21dd4a(0x1ca)](isBrowserstackInfra),_0x5806c6=accessibilityHelper[_0x21dd4a(0x205)](_0xec2576,_0x360e44),_0xa24bed=accessibilityHelper['getBrowserDisplayName'](_0xec2576);if(!accessibilityHelper['isVersionSupported'](_0x461bce,_0x5806c6)){const _0x209cee=_0x360e44?'':_0x5acb3c[_0x21dd4a(0x225)];logger[_0x21dd4a(0x1c3)]('Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20'+_0xa24bed+_0x21dd4a(0x1e5)+_0x5806c6+'\x20or\x20higher\x20'+_0x209cee+'.'),global[_0x21dd4a(0x210)]=![];}}if(!_0x5acb3c[_0x21dd4a(0x207)](isUndefined,_0x55fd2e[_0x21dd4a(0x1ea)])){const _0x48ce80=(_0x55fd2e['os']||'')['toLowerCase'](),_0x45557a=(_0x55fd2e[_0x21dd4a(0x1cb)]||_0x55fd2e[_0x21dd4a(0x1d5)]||'')['toLowerCase'](),_0x2a4a06=_0x5acb3c[_0x21dd4a(0x216)](_0x48ce80,_0x5acb3c[_0x21dd4a(0x1ee)])&&[_0x5acb3c[_0x21dd4a(0x1bf)],_0x5acb3c[_0x21dd4a(0x1c9)],_0x5acb3c[_0x21dd4a(0x19c)]][_0x21dd4a(0x1b1)](_0x45557a);if(!_0x2a4a06)logger[_0x21dd4a(0x1c3)](_0x5acb3c[_0x21dd4a(0x1f9)]),global[_0x21dd4a(0x210)]=![];else!accessibilityHelper[_0x21dd4a(0x19f)]()&&(logger[_0x21dd4a(0x1c3)](accessibilityHelper[_0x21dd4a(0x1ed)]),global[_0x21dd4a(0x210)]=![]);}if(!global[_0x21dd4a(0x210)]){_0x55fd2e[_0x5acb3c['mkpBN']]=![],Object[_0x21dd4a(0x1d8)](_0x55fd2e)[_0x21dd4a(0x1d4)](_0x398a70=>{const _0x5158d8=_0x21dd4a;_0x398a70[_0x5158d8(0x204)](_0x5acb3c[_0x5158d8(0x1bd)])&&delete _0x55fd2e[_0x398a70];});const _0x471710=_0x5acb3c[_0x21dd4a(0x229)](_0x55bb65,_0x5acb3c[_0x21dd4a(0x207)](encodeURIComponent,JSON[_0x21dd4a(0x199)](_0x55fd2e)));_0x777261&&(_0x777261[_0x21dd4a(0x1d3)][_0x21dd4a(0x1a5)][_0x21dd4a(0x20a)][_0x21dd4a(0x1ad)][_0x21dd4a(0x1f6)][_0x21dd4a(0x1ba)]=_0x471710,_0x777261['workerInfo'][_0x21dd4a(0x20a)][_0x21dd4a(0x1ad)][_0x21dd4a(0x1f6)][_0x21dd4a(0x1ba)]=_0x471710);}}else global[_0x21dd4a(0x210)]=![];}catch(_0x4d218b){logger['debug'](_0x21dd4a(0x228)+util[_0x21dd4a(0x1f0)](_0x4d218b));}};function a38_0x4452(){const _0x23e319=['keys','browser_version','../../helpers/accessibility-automation/helper','includeIssueType','../../helpers/accessibility-automation/scripts','executeAsyncScript','android','WebDriver','isBrowserSupportedForAccessibility','../../helpers/helper','No\x20accessibility\x20results\x20were\x20found.','includePartOfPageScope','udyXS','\x20browser\x20version\x20','lSqkO','body','executeScript','GKCxd','deviceName','isVersionSupported','browserStackEvaluate','MOBILE_SCANNING_DISABLED_WARNING','GjUkF','eZNNt','format','hvPls','(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','jRdif','wcagVersion','platformValidation:\x20Mobile\x20platform\x20already\x20validated.','connectOptions','measureWrapper','browserstack.accessibility','wxjXe','scannerVersion','util','Fmbmn','platformValidation','IJpXC','../utils/constants','bestPractice','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','aNcMU','4754bitcvS','startsWith','getMinVersionForBrowser','\x20page:\x20','MoMZt','assign','isMobilePlatform','project','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','PdHXe','accessibilityOptions.includeIssueType.needsReview','request','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','accessibilityPlatform','browserstack.accessibilityOptions','getBrowserDisplayName','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20','playwright-chromium','14966PklHuc','BbfzN','debug','oIPEn','env','OiglY','[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20','accessibilityOptions.includeIssueType.bestPractice','url','latest','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','chromium','1215hgspbv','accessibilityOptions','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','ZjIVI','nQwmV','../../helpers/logger','name','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','OLfHt','find','scannerProcessingTimeout','accessibilityOptions.scannerVersion','33QKYaZu','accessibilityOptions.scannerProcessingTimeout','stringify','GEOpR','gENNc','HhxvV','string','8633570hxwmqh','isMobileScanningEnabledForGroup','ySzDG','chrome','26924HPYsOl','mkpBN','getAccessibilityResultsSummary','testInfo','2192QpuHXv','error','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','PERFORM_SCAN','../../helpers/performance/performance-tester','soXII','26470jJNzzo','use','toISOString','Playwright','bstackSdkArgs','includes','message','52xVAhhB','xVbSI','1905805kNaVgr','yclag','browserStackExecuteDriver','accessibilityOptions.authToken','No\x20summaryResults\x20found.','wsEndpoint','caPry','../../helpers/performance/constants','LlFiu','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','OtsEi','][\x20SDK-AUTOMATION\x20]\x20','constructor','3727086IMAzdh','warn','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','oHAqd','evaluate','processAccessibilityCaps','replace','AJKSN','nykZz','browserName','LitRb','performScan','setAccessibilityCapabilities','yHBKG','parse','command','\x20or\x20higher\x20','currentTest','forEach','browser','mPMZO','owJAJ'];a38_0x4452=function(){return _0x23e319;};return a38_0x4452();}
1
+ const a38_0xed53c8=a38_0x3bf9;function a38_0x3bf9(_0x4cebc2,_0x3b92dd){const _0x2da270=a38_0x2da2();return a38_0x3bf9=function(_0x3bf9a0,_0x419266){_0x3bf9a0=_0x3bf9a0-0x68;let _0x5427dd=_0x2da270[_0x3bf9a0];return _0x5427dd;},a38_0x3bf9(_0x4cebc2,_0x3b92dd);}(function(_0x5f9b53,_0x332fa2){const _0x1fda13=a38_0x3bf9,_0x1baea8=_0x5f9b53();while(!![]){try{const _0x51e76e=-parseInt(_0x1fda13(0x79))/0x1+parseInt(_0x1fda13(0xa2))/0x2+parseInt(_0x1fda13(0xeb))/0x3*(parseInt(_0x1fda13(0x99))/0x4)+parseInt(_0x1fda13(0xef))/0x5*(-parseInt(_0x1fda13(0xb1))/0x6)+-parseInt(_0x1fda13(0x7f))/0x7*(-parseInt(_0x1fda13(0x8e))/0x8)+parseInt(_0x1fda13(0xf3))/0x9*(parseInt(_0x1fda13(0xd7))/0xa)+-parseInt(_0x1fda13(0x95))/0xb;if(_0x51e76e===_0x332fa2)break;else _0x1baea8['push'](_0x1baea8['shift']());}catch(_0xaf3889){_0x1baea8['push'](_0x1baea8['shift']());}}}(a38_0x2da2,0x9b2c7));const util=require(a38_0xed53c8(0x9e)),logger=require('../../helpers/logger')[a38_0xed53c8(0xb9)],{automationLogger}=require(a38_0xed53c8(0x84)),{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined,isBrowserstackInfra}=require('../../helpers/helper'),scripts=require(a38_0xed53c8(0xb2)),PerformanceTester=require('../../helpers/performance/performance-tester'),{A11Y_EVENTS:PerformanceA11yEvents}=require(a38_0xed53c8(0xd5)),accessibilityHelper=require('../../helpers/accessibility-automation/helper'),{AUTOMATION_LOG_COMMANDS}=require(a38_0xed53c8(0x6e));function a38_0x2da2(){const _0x408852=['bestPractice','replace','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','8944BrAaRR','platformValidation:\x20Mobile\x20platform\x20already\x20validated.','ZfkRa','qgFrh','pyiJN','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','wFGYU','11112321URJaLN','getMinVersionForBrowser','CFRTh','workerInfo','16VAQqfi','PRfaW','Performing\x20scan\x20with\x20method:\x20','platformValidation','GgFQs','util','accessibilityOptions','isMobileScanningEnabledForGroup','NrRJB','1829652zoRwSK','deviceName','error','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','OtbKE','env','(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','bstackSdkArgs','][\x20SDK-AUTOMATION\x20]\x20','ijjvk','connectOptions','rkQRU','keys','kPHgs','(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','4566rXSnwO','../../helpers/accessibility-automation/scripts','performScan','accessibilityOptions.authToken','bHZWD','GPhMo','accessibilityOptions.scannerVersion','latest','winstonLogger','measureWrapper','\x20browser\x20version\x20','TxBSu','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','bIOLS','PERFORM_SCAN','isMobilePlatform','MOBILE_SCANNING_DISABLED_WARNING','find','browserStackEvaluate','PfyMJ','accessibilityPlatform','stringify','chromium','ubKwL','accessibilityOptions.scannerProcessingTimeout','forEach','project','getAccessibilityResults','debug','assign','browserstack.accessibility','testInfo','No\x20accessibility\x20results\x20were\x20found.','scannerProcessingTimeout','BS_A11Y_JWT','name','../../helpers/performance/constants','accessibilityOptions.includeIssueType.needsReview','2739130ofQcKl','No\x20summaryResults\x20found.','ULiEx','KdKPM','format','browserName','on\x20non-BrowserStack\x20infrastructure\x20','wsEndpoint','parameters','includePartOfPageScope','xhTBm','response','SFTNK','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','ipfzA','needsReview','use','currentTest','Dxjqw','fiiZw','239964vNZrWD','accessibilityOptions.includeIssueType.bestPractice','getBrowserDisplayName','GwpOB','6645GbchKd','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','command','chrome','18viKxsn','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','pCCQq','startsWith','__workerDetails','LguJz','wcagVersion','warn','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','../utils/constants','parse','vlZkw','request','android','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','toLowerCase','body','browserstack.accessibilityOptions','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','Eewil','216601ropcxL','RUuRf','browser','browser_version','includeIssueType','isBrowserSupportedForAccessibility','6832IEqAco','LgjyW','constructor','scannerVersion','JIaIA','../../helpers/logger','processAccessibilityCaps','\x20or\x20higher\x20','Mekuo','isVersionSupported','FYdDG','lyKJi'];a38_0x2da2=function(){return _0x408852;};return a38_0x2da2();}exports[a38_0xed53c8(0xc3)]=async(_0x4c96d3,_0x3d68a5,_0x591b1d={})=>{const _0x40427f=a38_0xed53c8,_0x41f54d={};_0x41f54d[_0x40427f(0x9d)]='bstackSdkArgs',_0x41f54d[_0x40427f(0xb6)]=function(_0x3b4131,_0x526981){return _0x3b4131===_0x526981;},_0x41f54d[_0x40427f(0x89)]='string';const _0x510d64=_0x41f54d,_0xfae5b5=await _0x4c96d3['evaluate'](_0x40427f(0xb0)+_0x3d68a5['replace'](/arguments/g,_0x510d64['GgFQs'])+_0x40427f(0xa5)+JSON['stringify'](_0x591b1d)+')');try{if(_0x3d68a5&&_0x510d64[_0x40427f(0xb6)](typeof _0x3d68a5,_0x510d64[_0x40427f(0x89)])){const _0x546ded=AUTOMATION_LOG_COMMANDS[_0x40427f(0xc2)](_0x4faa0c=>_0x3d68a5['includes'](_0x4faa0c));if(_0x546ded){const _0x439a5c={};_0x439a5c[_0x40427f(0xf1)]=_0x546ded,_0x439a5c[_0x40427f(0xdf)]=[_0x591b1d];const _0x706d44={};_0x706d44[_0x40427f(0x75)]=_0xfae5b5;const _0x13ccf8={};_0x13ccf8[_0x40427f(0x71)]=_0x439a5c,_0x13ccf8[_0x40427f(0xe2)]=_0x706d44,automationLogger['silly']('['+new Date()['toISOString']()+_0x40427f(0xaa)+JSON[_0x40427f(0xc6)](_0x13ccf8));}}}catch(_0x5e464e){logger[_0x40427f(0xcd)]('[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20'+_0x5e464e['message']);}return _0xfae5b5;},exports['browserStackExecuteDriver']=async(_0x273ae6,_0x860a3f,_0x1c11e6={})=>{const _0x1e4ad4=a38_0xed53c8,_0x1e5558={};_0x1e5558[_0x1e4ad4(0xda)]=function(_0x21777e,_0x9e990d){return _0x21777e===_0x9e990d;},_0x1e5558[_0x1e4ad4(0xa6)]='WebDriver',_0x1e5558[_0x1e4ad4(0x92)]=function(_0x256f4f,_0x45a7df){return _0x256f4f===_0x45a7df;},_0x1e5558[_0x1e4ad4(0xc4)]='Playwright',_0x1e5558[_0x1e4ad4(0x78)]=_0x1e4ad4(0xa9);const _0x39f7e0=_0x1e5558;if(_0x39f7e0[_0x1e4ad4(0xda)](_0x273ae6[_0x1e4ad4(0x81)]['name'],_0x39f7e0[_0x1e4ad4(0xa6)]))return await _0x273ae6['executeAsyncScript'](_0x860a3f,_0x1c11e6);else{if(_0x39f7e0[_0x1e4ad4(0x92)](_0x273ae6[_0x1e4ad4(0x81)][_0x1e4ad4(0xd4)],_0x39f7e0[_0x1e4ad4(0xc4)]))return await _0x273ae6['executeScript'](_0x1e4ad4(0xa8)+_0x860a3f[_0x1e4ad4(0x8c)](/arguments/g,_0x39f7e0[_0x1e4ad4(0x78)])+_0x1e4ad4(0xf0)+JSON[_0x1e4ad4(0xc6)](_0x1c11e6)+')');}},exports['setAccessibilityCapabilities']=async _0x23b5f7=>{const _0x548f79=a38_0xed53c8,_0x33d2f0={};_0x33d2f0[_0x548f79(0xe3)]='accessibilityOptions.wcagVersion',_0x33d2f0[_0x548f79(0xe9)]=_0x548f79(0xc9),_0x33d2f0[_0x548f79(0x90)]=_0x548f79(0xec),_0x33d2f0['ijjvk']=_0x548f79(0xd6),_0x33d2f0['wFGYU']=_0x548f79(0xb4),_0x33d2f0[_0x548f79(0xa1)]=_0x548f79(0xb7);const _0x412fcd=_0x33d2f0;_0x23b5f7[_0x548f79(0x9f)]&&(_0x23b5f7[_0x548f79(0x9f)]['wcagVersion']&&(_0x23b5f7[_0x412fcd[_0x548f79(0xe3)]]=_0x23b5f7[_0x548f79(0x9f)][_0x548f79(0x6b)]),_0x23b5f7[_0x548f79(0x9f)][_0x548f79(0xd2)]&&(_0x23b5f7[_0x412fcd[_0x548f79(0xe9)]]=_0x23b5f7[_0x548f79(0x9f)][_0x548f79(0xd2)]),_0x23b5f7[_0x548f79(0x9f)][_0x548f79(0x7d)]&&(_0x23b5f7[_0x412fcd[_0x548f79(0x90)]]=_0x23b5f7['accessibilityOptions'][_0x548f79(0x7d)][_0x548f79(0x8b)],_0x23b5f7[_0x412fcd[_0x548f79(0xab)]]=_0x23b5f7['accessibilityOptions']['includeIssueType'][_0x548f79(0xe6)]));const _0x3da285=JSON[_0x548f79(0x6f)](process[_0x548f79(0xa7)][_0x548f79(0xbd)])[_0x548f79(0x82)];_0x23b5f7[_0x412fcd[_0x548f79(0x94)]]=process['env'][_0x548f79(0xd3)],_0x23b5f7[_0x412fcd[_0x548f79(0xa1)]]=_0x3da285,delete _0x23b5f7[_0x548f79(0x9f)];},exports[a38_0xed53c8(0xcc)]=async _0x40640b=>{const _0x33845f=a38_0xed53c8,_0x374916={};_0x374916[_0x33845f(0xe1)]=_0x33845f(0xd1),_0x374916[_0x33845f(0x70)]=_0x33845f(0x77);const _0x1db6d1=_0x374916;if(global[_0x33845f(0xc5)])try{const details={'url':await _0x40640b.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');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x40640b,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x40640b,scripts.getResults,mobileArgs);},{...details})();return res;}catch{return logger[_0x33845f(0xa4)](_0x1db6d1[_0x33845f(0xe1)]),[];}else return logger[_0x33845f(0x6c)](_0x1db6d1[_0x33845f(0x70)]),[];},exports['performScan']=async(_0x13f2d1,_0x37b2a3='',_0x1b371c={},_0xfcfe7c={})=>{const _0x2a519d=a38_0xed53c8;logger['debug'](_0x2a519d(0x9b)+_0x37b2a3+'\x20page:\x20'+_0x13f2d1);const _0x5b66bd={'url':await _0x13f2d1['url'](),'testhub_btcer_uuid':global[_0x2a519d(0x69)]?.[_0x2a519d(0xe8)]?.['id']};if(global[_0x2a519d(0xc5)])return await PerformanceTester[_0x2a519d(0xba)](PerformanceA11yEvents[_0x2a519d(0xbf)],async()=>{const _0x17d2a5=_0x2a519d,_0x11072f={};_0x11072f[_0x17d2a5(0xf1)]=_0x37b2a3;const _0x4d6189=_0x11072f;_0x1b371c&&_0x1b371c[_0x17d2a5(0xe0)]&&(_0x4d6189[_0x17d2a5(0xe0)]=_0x1b371c[_0x17d2a5(0xe0)]);Object[_0x17d2a5(0xce)](_0x4d6189,_0xfcfe7c);const _0x72ee35=await exports[_0x17d2a5(0xc3)](_0x13f2d1,scripts[_0x17d2a5(0xb3)],_0x4d6189);return _0x72ee35;},{'command':_0x37b2a3,..._0x5b66bd})();},exports['getAccessibilityResultsSummary']=async _0x4eb897=>{const _0x46f3ee=a38_0xed53c8,_0x49f158={};_0x49f158[_0x46f3ee(0xea)]=_0x46f3ee(0xd8),_0x49f158[_0x46f3ee(0xad)]=_0x46f3ee(0x93);const _0x238eda=_0x49f158;if(global[_0x46f3ee(0xc5)])try{const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x4eb897,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x4eb897,scripts.getResultsSummary,mobileArgs);})();return summaryResults;}catch{return logger[_0x46f3ee(0xcd)](_0x238eda[_0x46f3ee(0xea)]),{};}else return logger[_0x46f3ee(0x6c)](_0x238eda[_0x46f3ee(0xad)]),{};},exports[a38_0xed53c8(0x9c)]=_0x2fcfe2=>{const _0x1468fe=a38_0xed53c8,_0x3c6dc4={'LguJz':_0x1468fe(0x8f),'bIOLS':_0x1468fe(0x6d),'RUuRf':function(_0x2e6583,_0x218d4d){return _0x2e6583!==_0x218d4d;},'ohXjf':_0x1468fe(0xb8),'bHZWD':function(_0x10243b){return _0x10243b();},'ULiEx':_0x1468fe(0xdd)};try{if(global[_0x1468fe(0xc0)])return logger[_0x1468fe(0xcd)](_0x3c6dc4[_0x1468fe(0x6a)]),!![];const _0x496782=_0x2fcfe2[_0x1468fe(0x7b)],_0x30cceb=_0x2fcfe2[_0x1468fe(0x7c)];if(!accessibilityHelper[_0x1468fe(0x7e)](_0x496782))return logger[_0x1468fe(0x6c)](_0x3c6dc4[_0x1468fe(0xbe)]),![];if(_0x3c6dc4[_0x1468fe(0x7a)](_0x30cceb,_0x3c6dc4['ohXjf'])){const _0x3e5cbc=_0x3c6dc4[_0x1468fe(0xb5)](isBrowserstackInfra),_0x27ca2c=accessibilityHelper[_0x1468fe(0x96)](_0x496782,_0x3e5cbc),_0x3fd8a9=accessibilityHelper[_0x1468fe(0xed)](_0x496782);if(!accessibilityHelper[_0x1468fe(0x88)](_0x30cceb,_0x27ca2c)){const _0x3d3b75=_0x3e5cbc?'':_0x3c6dc4[_0x1468fe(0xd9)];return logger[_0x1468fe(0x6c)](_0x1468fe(0x73)+_0x3fd8a9+_0x1468fe(0xbb)+_0x27ca2c+_0x1468fe(0x86)+_0x3d3b75+'.'),![];}}}catch(_0x371588){logger[_0x1468fe(0xcd)](_0x1468fe(0xf4)+util[_0x1468fe(0xdb)](_0x371588));}return!![];},exports[a38_0xed53c8(0x85)]=(_0x5e7002,_0x415972,_0x1ea040)=>{const _0x211bd2=a38_0xed53c8,_0x1672f9={'TxBSu':_0x211bd2(0x76),'XUaWc':function(_0x78a42a){return _0x78a42a();},'JIaIA':_0x211bd2(0xcf),'kPHgs':_0x211bd2(0x6d),'zhTox':function(_0x4b93c4,_0x2bc07f){return _0x4b93c4!==_0x2bc07f;},'ipfzA':_0x211bd2(0xb8),'ubKwL':function(_0x3a902b){return _0x3a902b();},'LgjyW':'on\x20non-BrowserStack\x20infrastructure\x20','CFRTh':function(_0x39289b,_0x31ad22){return _0x39289b(_0x31ad22);},'PRfaW':function(_0x343256,_0x1c83d1){return _0x343256===_0x1c83d1;},'GwpOB':_0x211bd2(0x72),'qgFrh':_0x211bd2(0xf2),'iwasE':'playwright-chromium','Mekuo':_0x211bd2(0xc7),'lyKJi':_0x211bd2(0x8d),'pCCQq':function(_0x28fcba,_0x4db22f){return _0x28fcba+_0x4db22f;}};try{if(_0x1672f9['XUaWc'](isAccessibilityAutomationSession)){global[_0x211bd2(0xc5)]=!![];!_0x5e7002[_0x1672f9[_0x211bd2(0x83)]]&&(global[_0x211bd2(0xc5)]=![]);const _0x4b5885=_0x5e7002[_0x211bd2(0xdc)]||_0x5e7002['browser'],_0x2e22c4=_0x5e7002[_0x211bd2(0x7c)];!accessibilityHelper[_0x211bd2(0x7e)](_0x4b5885)&&(logger['warn'](_0x1672f9[_0x211bd2(0xaf)]),global[_0x211bd2(0xc5)]=![]);if(_0x1672f9['zhTox'](_0x2e22c4,_0x1672f9[_0x211bd2(0xe5)])){const _0x15275d=_0x1672f9[_0x211bd2(0xc8)](isBrowserstackInfra),_0x14da9b=accessibilityHelper[_0x211bd2(0x96)](_0x4b5885,_0x15275d),_0x1ff13c=accessibilityHelper[_0x211bd2(0xed)](_0x4b5885);if(!accessibilityHelper['isVersionSupported'](_0x2e22c4,_0x14da9b)){const _0x54c65e=_0x15275d?'':_0x1672f9[_0x211bd2(0x80)];logger['warn'](_0x211bd2(0x73)+_0x1ff13c+_0x211bd2(0xbb)+_0x14da9b+_0x211bd2(0x86)+_0x54c65e+'.'),global[_0x211bd2(0xc5)]=![];}}if(!_0x1672f9[_0x211bd2(0x97)](isUndefined,_0x5e7002[_0x211bd2(0xa3)])){const _0x207799=(_0x5e7002['os']||'')[_0x211bd2(0x74)](),_0x39dc58=(_0x5e7002['browserName']||_0x5e7002[_0x211bd2(0x7b)]||'')['toLowerCase'](),_0x2b40ad=_0x1672f9[_0x211bd2(0x9a)](_0x207799,_0x1672f9[_0x211bd2(0xee)])&&[_0x1672f9[_0x211bd2(0x91)],_0x1672f9['iwasE'],_0x1672f9[_0x211bd2(0x87)]]['includes'](_0x39dc58);if(!_0x2b40ad)logger['warn'](_0x1672f9[_0x211bd2(0x8a)]),global[_0x211bd2(0xc5)]=![];else!accessibilityHelper[_0x211bd2(0xa0)]()&&(logger[_0x211bd2(0x6c)](accessibilityHelper[_0x211bd2(0xc1)]),global[_0x211bd2(0xc5)]=![]);}if(!global[_0x211bd2(0xc5)]){_0x5e7002[_0x1672f9[_0x211bd2(0x83)]]=![],Object[_0x211bd2(0xae)](_0x5e7002)[_0x211bd2(0xca)](_0x4a3bff=>{const _0x5e29ad=_0x211bd2;_0x4a3bff[_0x5e29ad(0x68)](_0x1672f9[_0x5e29ad(0xbc)])&&delete _0x5e7002[_0x4a3bff];});const _0x2f57e2=_0x1672f9[_0x211bd2(0xf5)](_0x415972,_0x1672f9[_0x211bd2(0x97)](encodeURIComponent,JSON[_0x211bd2(0xc6)](_0x5e7002)));_0x1ea040&&(_0x1ea040[_0x211bd2(0xe8)][_0x211bd2(0xd0)][_0x211bd2(0xcb)][_0x211bd2(0xe7)][_0x211bd2(0xac)][_0x211bd2(0xde)]=_0x2f57e2,_0x1ea040[_0x211bd2(0x98)]['project'][_0x211bd2(0xe7)]['connectOptions'][_0x211bd2(0xde)]=_0x2f57e2);}}else global[_0x211bd2(0xc5)]=![];}catch(_0x3388a3){logger[_0x211bd2(0xcd)](_0x211bd2(0xe4)+util[_0x211bd2(0xdb)](_0x3388a3));}};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a39_0x9783da=a39_0x227c;(function(_0x1c9cde,_0x54b37c){const _0x4f8c5a=a39_0x227c,_0x2b0ed2=_0x1c9cde();while(!![]){try{const _0x27fb8c=-parseInt(_0x4f8c5a(0x1df))/0x1+parseInt(_0x4f8c5a(0x1be))/0x2+parseInt(_0x4f8c5a(0x13d))/0x3*(-parseInt(_0x4f8c5a(0x1d2))/0x4)+-parseInt(_0x4f8c5a(0x189))/0x5*(-parseInt(_0x4f8c5a(0x191))/0x6)+-parseInt(_0x4f8c5a(0x19c))/0x7+-parseInt(_0x4f8c5a(0x15d))/0x8*(parseInt(_0x4f8c5a(0x150))/0x9)+parseInt(_0x4f8c5a(0x1e0))/0xa;if(_0x27fb8c===_0x54b37c)break;else _0x2b0ed2['push'](_0x2b0ed2['shift']());}catch(_0x3bb0bd){_0x2b0ed2['push'](_0x2b0ed2['shift']());}}}(a39_0x27b2,0xda64f));function a39_0x227c(_0x57da8f,_0x53148f){const _0x27b235=a39_0x27b2();return a39_0x227c=function(_0x227cc5,_0x3bd5d5){_0x227cc5=_0x227cc5-0x13b;let _0x5449cb=_0x27b235[_0x227cc5];return _0x5449cb;},a39_0x227c(_0x57da8f,_0x53148f);}const fs=require('fs'),path=require(a39_0x9783da(0x144)),{spawn}=require('child_process'),{format}=require(a39_0x9783da(0x1b5)),logger=require('../../helpers/logger')[a39_0x9783da(0x1f7)],{default:BrowserStackSetup}=require(a39_0x9783da(0x1c5)),helper=require('../../helpers/helper'),utilities=require(a39_0x9783da(0x19b)),constants=require(a39_0x9783da(0x1d5)),{FRAMEWORKS}=require(a39_0x9783da(0x17a)),{getConfigLoaderPath}=require(a39_0x9783da(0x17b)),{checkAccessibilityPlatformConfig}=require(a39_0x9783da(0x196)),{setAccessibilityCapabilities}=require(a39_0x9783da(0x172)),{printBuildLink}=require('../../helpers/test-observability/utils'),TestDetails=require(a39_0x9783da(0x14b)),TestHubHandler=require(a39_0x9783da(0x1bd)),PerformanceTester=require(a39_0x9783da(0x16f)),BrowserstackCLI=require(a39_0x9783da(0x142)),PerformanceEvents=require(a39_0x9783da(0x145))[a39_0x9783da(0x198)],CLIUtils=require('../v2/cliUtils'),TestInfo=require(a39_0x9783da(0x15f)),ClientTroubleShootingService=require(a39_0x9783da(0x15c)),getUserPlaywrightConfig=async(_0x19b754,_0x47885c)=>{const _0x9a7027=a39_0x9783da,_0x2b5221={'MLDJP':function(_0x3376e6){return _0x3376e6();},'BByRi':function(_0x543f46,_0x5911d0){return _0x543f46(_0x5911d0);},'qYUqz':function(_0x36800c,_0x26e963){return _0x36800c(_0x26e963);},'fjXLH':_0x9a7027(0x184),'qpTqY':_0x9a7027(0x201)},_0x1f6ee9=!helper['isUndefined'](_0x19b754[_0x9a7027(0x1e8)]),_0x73ef7e=_0x1f6ee9?path['resolve'](process[_0x9a7027(0x1ad)](),_0x19b754[_0x9a7027(0x1e8)]):process[_0x9a7027(0x1ad)](),{resolveConfigFile:_0x34e7c5,resolveConfigLocation:_0x2a9805}=helper[_0x9a7027(0x1c0)]()?helper['requireConfigLoaderYarnPnP'](..._0x2b5221[_0x9a7027(0x202)](getConfigLoaderPath)):helper[_0x9a7027(0x182)][_0x9a7027(0x185)](null,_0x2b5221['MLDJP'](getConfigLoaderPath)),_0x2b49d1=_0x34e7c5?_0x2b5221[_0x9a7027(0x1cd)](_0x34e7c5,_0x73ef7e):helper[_0x9a7027(0x15b)](_0x2b5221[_0x9a7027(0x153)](_0x2a9805,_0x73ef7e),[_0x2b5221['fjXLH']]),_0x89ce92={};if(_0x1f6ee9){const _0x519c6a=_0x47885c[_0x9a7027(0x154)](_0x394719=>_0x394719==='--config'||_0x394719==='-c'||_0x394719['startsWith'](_0x9a7027(0x201)));_0x47885c[_0x9a7027(0x18c)](_0x519c6a,_0x47885c[_0x519c6a][_0x9a7027(0x16b)](_0x2b5221[_0x9a7027(0x141)])?0x1:0x2);}const _0x629b51={};return _0x629b51[_0x9a7027(0x144)]=_0x2b49d1,_0x629b51[_0x9a7027(0x1e8)]=_0x89ce92,_0x629b51;},handleO11yRerun=_0x20133e=>{const _0x2b35d8=a39_0x9783da,_0x19ec3e={};_0x19ec3e['xqxbI']=_0x2b35d8(0x1b2);const _0x5f4e31=_0x19ec3e,_0x59ac62=helper[_0x2b35d8(0x179)](process[_0x2b35d8(0x1c8)][_0x2b35d8(0x19f)]);if(_0x59ac62){const _0x5b1cbd=process[_0x2b35d8(0x1c8)]['BROWSERSTACK_RERUN_TESTS'],_0x5384df=[];if(helper[_0x2b35d8(0x1cf)](_0x5b1cbd)&&!helper[_0x2b35d8(0x158)](_0x5b1cbd)){_0x5b1cbd[_0x2b35d8(0x1a7)](',')[_0x2b35d8(0x1d7)](_0x5e0446=>{const _0x29b93f=_0x2b35d8;_0x5384df[_0x29b93f(0x18e)]('('+_0x5e0446[_0x29b93f(0x1e5)]()+')');});const _0x1f7938='^'+_0x5384df[_0x2b35d8(0x19a)]('|')+'$';_0x20133e[_0x2b35d8(0x18e)](_0x5f4e31[_0x2b35d8(0x195)],_0x1f7938);}}},spawnOriginalProcess=_0x13f484=>{const _0x40fa83=a39_0x9783da,_0x51e535={'YQMwq':function(_0x11bcbb,_0x53bbf4,_0x57d724,_0x5e3a82){return _0x11bcbb(_0x53bbf4,_0x57d724,_0x5e3a82);},'yxlug':_0x40fa83(0x183),'Ufnra':'npx','PQdjg':_0x40fa83(0x1cb),'HnEoV':function(_0x48cffa,_0x3365b6){return _0x48cffa===_0x3365b6;},'eYRpJ':_0x40fa83(0x147),'FEWpP':_0x40fa83(0x1e2)};_0x51e535[_0x40fa83(0x1eb)](spawn,helper[_0x40fa83(0x1c0)]()?_0x51e535[_0x40fa83(0x186)]:_0x51e535[_0x40fa83(0x1e9)],[_0x51e535[_0x40fa83(0x13e)],..._0x13f484[_0x40fa83(0x1c2)](0x1)],{'shell':_0x51e535[_0x40fa83(0x1fa)](process[_0x40fa83(0x1cc)],_0x51e535[_0x40fa83(0x1f9)]),'stdio':_0x51e535[_0x40fa83(0x148)],'cwd':process[_0x40fa83(0x1ad)]()});},isTestCommand=(_0x3b037e,_0xaa6945)=>{const _0x43d900=a39_0x9783da,_0x549500={};_0x549500[_0x43d900(0x1bf)]=function(_0x4577c6,_0x571951){return _0x4577c6>_0x571951;},_0x549500[_0x43d900(0x1ed)]=function(_0x490d29,_0x26413d){return _0x490d29===_0x26413d;},_0x549500[_0x43d900(0x1fc)]=_0x43d900(0x187);const _0x2a5cf7=_0x549500;if(_0x2a5cf7[_0x43d900(0x1bf)](_0xaa6945[_0x43d900(0x14d)],0x1)&&_0x2a5cf7[_0x43d900(0x1ed)](_0xaa6945[0x1],_0x2a5cf7[_0x43d900(0x1fc)]))return!![];return![];};function a39_0x27b2(){const _0x533bc2=['validateRerunTestList','Gliuw','launchBuild','248WzFJbW','BROWSERSTACK_TEST_ACCESSIBILITY_YML','testContextOptions','../utils/constants','vmHHN','map','filterBrowserstackArgs','DqcHo','--disable-test-observability','exitCode','bEsRO','trace_','Error\x20in\x20getting\x20funnel\x20data\x20results','1213279oaTVpv','18560230yttmtA','SoWhx','inherit','PLAYWRIGHT','SgspS','trim','fLiUE','homedir','config','Ufnra','playwright-browserstack-sdk.config.js','YQMwq','debug','UlnHQ','ruVDd','bootstrap','Error\x20in\x20closing\x20playwright','W_OK','get','getProxyUrl','stop','initialize','reportDotBrowserStackFolderNotAccessibleIssue','winstonLogger','getPackageType','eYRpJ','HnEoV','setBrowserstackConfig','TKkiX','FhdFO','spHKk','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','end','--config=','MLDJP','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','chOpf','mNkEK','--disable-browserstack-automation','19164bUZkET','PQdjg','writeFileSync','koncO','qpTqY','../v2/browserstackCLI','BROWSERSTACK_AUTOMATION','path','../../helpers/performance/constants','RaMMQ','win32','FEWpP','SDK_POST_INITIALIZE','zWdAF','./reporter/test-details','iHlUQ','length','INTERNALLY_USED_ENV_VARS','MODULE','50733qHjYNU','Mbovt','VcdJK','qYUqz','findIndex','browserstackSetupConfig.json','Deleting\x20','forEach','isUndefined','\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();','KJlPr','nestedKeyValue','../utils/clientTroubleshootingService','40lGutjG','BROWSERSTACK_SETUP_CONFIG_PATH','../v2/TestInfo','isFalse','cliConfig','EclLA','browserstackAutomation','readFileSync','isTypescriptProject','wonlW','pw_result.json','accessibilityOptions','unlinkSync','clearTempPWConfig','startsWith','BROWSERSTACK_TEST_OBSERVABILITY','measureWrapper','Playwright\x20process\x20exited\x20with\x20code\x20','../../helpers/performance/performance-tester','serializeToYamlString','skipSessionStatus','./accessibility-helper','getNoProxy','ZRguh','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','accessSync','shutdown','BrowserStack\x20config\x20file\x20not\x20found.','isTrue','../../helpers/test-observability/constants','./reporter/pwUtils','setFrameworkDetail','getConfig','assign','true','concat','MYdoy','requirePWModule','yarn','resolvedConfigFile','apply','yxlug','test','tmvyS','208305KPZznZ','TTGit','npx','splice','aNogM','push','pWGuT','judgq','96FkkPii','isRunning','getConfigPath','stringify','xqxbI','../../helpers/accessibility-automation/helper','R_OK','EVENTS','SMNme','join','../../helpers/utilities','10938403BlASgl','close','HbDnw','BROWSERSTACK_RERUN','dirname','resolve','SDK_CLEANUP','start','existsSync','ygvXI','constants','split','Error\x20in\x20deleting\x20playwright\x20results','hNSTJ','bxHzt','TXAbB','BROWSERSTACK_PW_CONFIG_DIR','cwd','PACKAGE_TYPE','automation','VOOOh','skipSessionName','--grep','reportConflictingEnvVarIssue','configPath','util','SDK_SETUP','JrXfb','isCLIEnabled','PnbDG','filter','testObservability','Proxy\x20url\x20:\x20','../../helpers/testhub/testhubHandler','3144186fswEKL','XtrUQ','isYarnPnP','No\x20Proxy\x20:\x20','slice','playwright-browserstack-sdk.config.cjs','reportFinalDetectionState','../../helpers/BrowserStackSetup','govWi','getInstance','env','\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','info','playwright','platform','BByRi','SnVht'];a39_0x27b2=function(){return _0x533bc2;};return a39_0x27b2();}async function run(_0x5f09d3,_0xba11b3,_0xd6d092){const _0x1495e5=a39_0x9783da,_0xef7a62={'JrXfb':function(_0x34e22c,_0xc89a18){return _0x34e22c(_0xc89a18);},'MYdoy':'.browserstack','TXAbB':_0x1495e5(0x167),'ygvXI':function(_0x19fb8d,_0x3da2f6){return _0x19fb8d+_0x3da2f6;},'fLiUE':_0x1495e5(0x1de),'DqcHo':function(_0xc89e8a){return _0xc89e8a();},'TdUow':_0x1495e5(0x1f0),'RaMMQ':_0x1495e5(0x178),'SMNme':function(_0x2b181d,_0x33e19a){return _0x2b181d<_0x33e19a;},'ZRguh':function(_0x399150,_0x2d11cb){return _0x399150===_0x2d11cb;},'aNogM':'false','hnGbo':_0x1495e5(0x1da),'wonlW':function(_0x1e668a,_0x1f4e97){return _0x1e668a>=_0x1f4e97;},'FhdFO':_0x1495e5(0x1af),'mkoWK':function(_0x2097c9,_0x4c9247){return _0x2097c9!=_0x4c9247;},'SgspS':function(_0x41a4c1,_0xc0ef84,_0xcef202){return _0x41a4c1(_0xc0ef84,_0xcef202);},'bxHzt':_0x1495e5(0x17f),'govWi':function(_0x5eb91d,_0x5b7c83){return _0x5eb91d(_0x5b7c83);},'TTGit':_0x1495e5(0x155),'KeWUf':function(_0x1feb65,_0x167e6c){return _0x1feb65===_0x167e6c;},'Mbovt':_0x1495e5(0x1c3),'XaPjs':_0x1495e5(0x1ea),'KJlPr':function(_0x42d3fb,_0x12f813){return _0x42d3fb-_0x12f813;},'pWGuT':function(_0x1dd87b,_0x27ecef){return _0x1dd87b+_0x27ecef;},'tmvyS':'Updated\x20config\x20file\x20name\x20to\x20-\x20','iHlUQ':function(_0x124b4c,_0x469eee){return _0x124b4c>_0x469eee;},'SoWhx':function(_0x3cfab8,_0x1097bb){return _0x3cfab8+_0x1097bb;},'bEsRO':function(_0x3da29e,_0x18e663,_0xc63fbe,_0x146b88){return _0x3da29e(_0x18e663,_0xc63fbe,_0x146b88);},'CHgwC':_0x1495e5(0x183),'spHKk':_0x1495e5(0x18b),'zWdAF':_0x1495e5(0x1cb),'chOpf':_0x1495e5(0x187),'HbDnw':'--config','koncO':_0x1495e5(0x147),'hNSTJ':function(_0x42925d,_0x2d3020){return _0x42925d===_0x2d3020;},'zMxIF':_0x1495e5(0x1e2),'ruVDd':_0x1495e5(0x19d),'VOOOh':function(_0x18b190,_0x444db1){return _0x18b190|_0x444db1;},'judgq':function(_0x4d5a4a,_0x1cc82c){return _0x4d5a4a+_0x1cc82c;},'VcdJK':_0x1495e5(0x1ff),'SnVht':_0x1495e5(0x1a8),'Gliuw':function(_0x433ffd,_0x214fcd){return _0x433ffd(_0x214fcd);}};try{const _0x5d7a29=path[_0x1495e5(0x19a)](helper[_0x1495e5(0x1e7)](),_0xef7a62[_0x1495e5(0x181)]);try{fs[_0x1495e5(0x176)](_0x5d7a29,_0xef7a62[_0x1495e5(0x1b0)](fs[_0x1495e5(0x1a6)][_0x1495e5(0x197)],fs[_0x1495e5(0x1a6)][_0x1495e5(0x1f1)]));}catch(_0xc8e12a){ClientTroubleShootingService[_0x1495e5(0x1f6)]();}}catch(_0x238963){logger[_0x1495e5(0x1ec)](_0xef7a62[_0x1495e5(0x190)](_0xef7a62[_0x1495e5(0x152)],_0x238963));}try{const _0x5947b9=path['join'](helper[_0x1495e5(0x1e7)](),_0xef7a62['MYdoy'],_0xef7a62[_0x1495e5(0x1ab)]);fs['existsSync'](_0x5947b9)&&fs[_0x1495e5(0x169)](_0x5947b9);}catch(_0xbda16d){logger['debug'](_0xef7a62[_0x1495e5(0x1e1)](_0xef7a62[_0x1495e5(0x1ce)],_0xbda16d));}if(!_0xef7a62[_0x1495e5(0x1e4)](isTestCommand,_0x5f09d3,_0xba11b3)){_0xef7a62[_0x1495e5(0x1d0)](spawnOriginalProcess,_0xba11b3);return;}await PerformanceTester[_0x1495e5(0x16d)](PerformanceEvents['SDK_PRE_INITIALIZE'],async()=>{const _0x2a33d4=_0x1495e5,_0x5a957f={'EclLA':_0xef7a62['MYdoy'],'vmHHN':function(_0x3a1a5a){const _0xae12fd=a39_0x227c;return _0xef7a62[_0xae12fd(0x1d9)](_0x3a1a5a);},'PnbDG':function(_0x3dcfea){const _0xbe8f78=a39_0x227c;return _0xef7a62[_0xbe8f78(0x1d9)](_0x3dcfea);},'IBCBF':function(_0x20e542,_0x3548ec){const _0x1173a5=a39_0x227c;return _0xef7a62[_0x1173a5(0x1a5)](_0x20e542,_0x3548ec);},'mNkEK':_0xef7a62['TdUow']};if(!_0xd6d092[_0x2a33d4(0x1e8)]){logger['error'](_0xef7a62[_0x2a33d4(0x146)]);return;}await _0xd6d092[_0x2a33d4(0x1f5)](_0x5f09d3),CLIUtils[_0x2a33d4(0x17c)](FRAMEWORKS[_0x2a33d4(0x1e3)],FRAMEWORKS[_0x2a33d4(0x1e3)]),BrowserstackCLI['getInstance']()[_0x2a33d4(0x1fb)](_0xd6d092[_0x2a33d4(0x1e8)],_0xd6d092[_0x2a33d4(0x1b4)],_0xd6d092[_0x2a33d4(0x161)]),await BrowserstackCLI[_0x2a33d4(0x1c7)]()[_0x2a33d4(0x1ef)]();for(var _0x32e1d6=0x0;_0xef7a62[_0x2a33d4(0x199)](_0x32e1d6,constants['INTERNALLY_USED_ENV_VARS']['length']);_0x32e1d6++){var _0x5a2e55=constants[_0x2a33d4(0x14e)][_0x32e1d6];process['env'][_0x5a2e55]&&await ClientTroubleShootingService[_0x2a33d4(0x1b3)](_0x5a2e55);}const _0x5f199a=BrowserstackCLI['getInstance']()[_0x2a33d4(0x17d)]();!helper[_0x2a33d4(0x160)](_0x5f199a[_0x2a33d4(0x163)])&&(process['env'][_0x2a33d4(0x143)]=!![]);_0xef7a62[_0x2a33d4(0x174)](_0x5f199a[_0x2a33d4(0x163)],![])&&(process[_0x2a33d4(0x1c8)]['BROWSERSTACK_AUTOMATION']=_0xef7a62[_0x2a33d4(0x18d)],_0xba11b3=_0xba11b3[_0x2a33d4(0x1ba)](_0x22a59b=>_0x22a59b!==_0x2a33d4(0x13c)));const _0x683bff=_0xba11b3['indexOf'](_0xef7a62['hnGbo']);(_0xef7a62[_0x2a33d4(0x166)](_0x683bff,0x0)||_0xef7a62['ZRguh'](_0x5f199a[_0x2a33d4(0x1bb)],![]))&&(process[_0x2a33d4(0x1c8)][_0x2a33d4(0x16c)]=_0xef7a62[_0x2a33d4(0x18d)],_0xba11b3=_0xba11b3[_0x2a33d4(0x1ba)](_0x2f0a6c=>_0x2f0a6c!==_0x2a33d4(0x1da)));!helper[_0x2a33d4(0x158)](_0xd6d092[_0x2a33d4(0x161)])&&_0xd6d092[_0x2a33d4(0x161)]['has'](_0xef7a62[_0x2a33d4(0x1fd)])&&(process[_0x2a33d4(0x1c8)]['BROWSERSTACK_AUTOMATION']=_0xd6d092[_0x2a33d4(0x161)][_0x2a33d4(0x1f2)](_0xef7a62['FhdFO'])||!![]);_0xef7a62['mkoWK'](_0xd6d092['config'][_0x2a33d4(0x1bb)],null)&&!helper[_0x2a33d4(0x179)](process['env'][_0x2a33d4(0x16c)])&&(process[_0x2a33d4(0x1c8)][_0x2a33d4(0x16c)]=process[_0x2a33d4(0x1c8)][_0x2a33d4(0x16c)]||_0xd6d092[_0x2a33d4(0x1e8)][_0x2a33d4(0x1bb)]);const _0x35eb93=!helper['isFalse'](process['env'][_0x2a33d4(0x16c)]);_0xd6d092[_0x2a33d4(0x1e8)][_0x2a33d4(0x168)]&&(process[_0x2a33d4(0x1c8)][_0x2a33d4(0x175)]=JSON[_0x2a33d4(0x194)](_0xd6d092[_0x2a33d4(0x1e8)]['accessibilityOptions']));let _0x231831=![];_0xd6d092[_0x2a33d4(0x1e8)]['accessibility']&&(_0x231831=!![],process[_0x2a33d4(0x1c8)][_0x2a33d4(0x1d3)]=_0xd6d092['config']['accessibility']);const _0x526c16=_0xba11b3[_0x2a33d4(0x180)](),_0x503f03=await _0xef7a62['SgspS'](getUserPlaywrightConfig,_0x5f09d3,_0xba11b3);if(helper[_0x2a33d4(0x158)](_0x503f03)){_0xef7a62[_0x2a33d4(0x1b7)](spawnOriginalProcess,_0x526c16);return;}const _0x5a990f=_0x503f03[_0x2a33d4(0x144)]?path['dirname'](_0x503f03[_0x2a33d4(0x144)]):process['cwd']();process[_0x2a33d4(0x1c8)][_0x2a33d4(0x1ac)]=_0x5a990f,await PerformanceTester[_0x2a33d4(0x16d)](PerformanceEvents[_0x2a33d4(0x149)],async()=>{const _0x2ef281=_0x2a33d4;!BrowserstackCLI[_0x2ef281(0x1c7)]()['isRunning']()&&await TestHubHandler[_0x2ef281(0x1d1)](FRAMEWORKS[_0x2ef281(0x1e3)],_0xd6d092),_0x35eb93&&_0xef7a62[_0x2ef281(0x1b7)](handleO11yRerun,_0xba11b3);})();if(!BrowserstackCLI[_0x2a33d4(0x1c7)]()[_0x2a33d4(0x192)]()){let _0x33c08d=_0xef7a62['ZRguh'](process[_0x2a33d4(0x1c8)][_0x2a33d4(0x1d3)],_0xef7a62[_0x2a33d4(0x1aa)]);_0x33c08d=_0x33c08d||_0xef7a62[_0x2a33d4(0x1c6)](checkAccessibilityPlatformConfig,_0xd6d092[_0x2a33d4(0x1e8)]),process[_0x2a33d4(0x1c8)][_0x2a33d4(0x1d3)]=_0x33c08d,_0x33c08d&&_0xef7a62[_0x2a33d4(0x1c6)](setAccessibilityCapabilities,_0xd6d092[_0x2a33d4(0x1e8)]);}const _0x487fd3=path[_0x2a33d4(0x19a)](_0x503f03[_0x2a33d4(0x144)]?path['dirname'](_0x503f03['path']):process['cwd'](),_0xef7a62[_0x2a33d4(0x18a)]);fs[_0x2a33d4(0x13f)](_0x487fd3,helper[_0x2a33d4(0x170)](_0xd6d092['config'])),process[_0x2a33d4(0x1c8)][_0x2a33d4(0x15e)]=_0x487fd3,helper[_0x2a33d4(0x16a)]();let _0x9e329c='';_0xef7a62['KeWUf'](helper[_0x2a33d4(0x1f8)](),constants[_0x2a33d4(0x1ae)][_0x2a33d4(0x14f)])?_0x9e329c=_0xef7a62[_0x2a33d4(0x151)]:_0x9e329c=_0xef7a62['XaPjs'];let _0x3c1a47='';if(helper[_0x2a33d4(0x165)](_0x503f03[_0x2a33d4(0x144)])){_0x3c1a47='\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a';const _0x47629d=_0x9e329c['split']('.');_0x47629d[_0xef7a62[_0x2a33d4(0x15a)](_0x47629d[_0x2a33d4(0x14d)],0x1)]='ts',_0x9e329c=_0x47629d[_0x2a33d4(0x19a)]('.'),logger[_0x2a33d4(0x1ec)](_0xef7a62[_0x2a33d4(0x18f)](_0xef7a62[_0x2a33d4(0x188)],_0x9e329c));}else _0x3c1a47='\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a';const _0x2d3eb9=path['join'](_0x503f03[_0x2a33d4(0x144)]?path[_0x2a33d4(0x1a0)](_0x503f03['path']):process[_0x2a33d4(0x1ad)](),_0x9e329c);let _0x5cadd2=_0x503f03['path']?_0x503f03['path']:'';_0x5cadd2=_0xef7a62[_0x2a33d4(0x14c)](_0x5cadd2[_0x2a33d4(0x14d)],0x0)?path[_0x2a33d4(0x1a1)](_0x5cadd2):'',process[_0x2a33d4(0x1c8)]['USER_CONFIG_DETAILS_PATH']=_0x5cadd2;const _0x4431ac=helper[_0x2a33d4(0x1f3)](_0xd6d092[_0x2a33d4(0x1e8)]),_0x2e8acb=helper[_0x2a33d4(0x173)](_0xd6d092[_0x2a33d4(0x1e8)]);logger[_0x2a33d4(0x1ec)](_0x2a33d4(0x1bc)+_0x4431ac),logger['debug'](_0x2a33d4(0x1c1)+_0x2e8acb);_0x4431ac&&(_0x3c1a47=_0xef7a62['SoWhx'](_0x2a33d4(0x203)+_0x4431ac+_0x2a33d4(0x1c9)+_0x2e8acb+_0x2a33d4(0x159),_0x3c1a47));helper[_0x2a33d4(0x1d8)]({},_0xba11b3),fs[_0x2a33d4(0x13f)](_0x2d3eb9,_0x3c1a47),PerformanceTester[_0x2a33d4(0x200)](PerformanceEvents[_0x2a33d4(0x1b6)]);const _0x505b33=_0xef7a62[_0x2a33d4(0x1dc)](spawn,helper[_0x2a33d4(0x1c0)]()?_0xef7a62['CHgwC']:_0xef7a62[_0x2a33d4(0x1fe)],[_0xef7a62[_0x2a33d4(0x14a)],_0xef7a62[_0x2a33d4(0x204)],_0xef7a62[_0x2a33d4(0x19e)],_0xef7a62['KeWUf'](process[_0x2a33d4(0x1cc)],_0xef7a62['koncO'])?'\x22'+_0x2d3eb9+'\x22':_0x2d3eb9,..._0xba11b3[_0x2a33d4(0x1c2)](0x2)],{'shell':_0xef7a62[_0x2a33d4(0x1a9)](process['platform'],_0xef7a62[_0x2a33d4(0x140)]),'stdio':_0xef7a62['zMxIF'],'cwd':process[_0x2a33d4(0x1ad)](),'env':Object[_0x2a33d4(0x17e)]({},process[_0x2a33d4(0x1c8)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x2a33d4(0x193)](_0x5f09d3),'BROWSERSTACK_SKIP_SESSION_STATUS':_0xd6d092[_0x2a33d4(0x1e8)][_0x2a33d4(0x1d4)][_0x2a33d4(0x171)],'BROWSERSTACK_SKIP_SESSION_NAME':_0xd6d092[_0x2a33d4(0x1e8)][_0x2a33d4(0x1d4)][_0x2a33d4(0x1b1)],'BROWSERSTACK_LOG_LEVEL':_0xd6d092[_0x2a33d4(0x1e8)]['logLevel']})}),_0x4e2b1e=()=>{const _0xfc4b20=_0x2a33d4;try{const _0x5cd32b=path['join'](helper[_0xfc4b20(0x1e7)](),_0xef7a62['MYdoy'],_0xef7a62['TXAbB']);if(fs[_0xfc4b20(0x1a4)](_0x5cd32b)){let _0x43e979=fs[_0xfc4b20(0x164)](_0x5cd32b);_0x43e979=JSON['parse'](_0x43e979),_0xd6d092['errorMessage']=_0x43e979,fs[_0xfc4b20(0x169)](_0x5cd32b);}}catch(_0x4f85c9){logger[_0xfc4b20(0x1ec)](_0xef7a62[_0xfc4b20(0x1a5)](_0xef7a62[_0xfc4b20(0x1e6)],_0x4f85c9));}};_0x505b33['on'](_0xef7a62[_0x2a33d4(0x1ee)],async _0x447c94=>{const _0x18f01f=_0x2a33d4;try{PerformanceTester[_0x18f01f(0x1a3)](PerformanceEvents[_0x18f01f(0x1a2)]),_0x5a957f[_0x18f01f(0x1d6)](_0x4e2b1e),await TestHubHandler['stop'](),await ClientTroubleShootingService[_0x18f01f(0x1c4)]();const _0x13091d=BrowserstackCLI[_0x18f01f(0x1b8)]();await BrowserstackCLI['getInstance']()[_0x18f01f(0x1f4)](),TestDetails[_0x18f01f(0x177)](),_0x5a957f[_0x18f01f(0x1b9)](printBuildLink),await utilities['finalExecution'](_0xd6d092,_0x13091d),process[_0x18f01f(0x1db)]=_0x447c94,logger[_0x18f01f(0x1ec)](_0x18f01f(0x16e)+_0x447c94),logger[_0x18f01f(0x1ca)](_0x18f01f(0x156)+_0x2d3eb9),fs[_0x18f01f(0x169)](_0x2d3eb9);fs[_0x18f01f(0x1a4)](_0x487fd3)&&(logger[_0x18f01f(0x1ec)](_0x18f01f(0x156)+_0x487fd3),fs[_0x18f01f(0x169)](_0x487fd3));const _0x397a1f=fs['readdirSync'](path['join'](helper[_0x18f01f(0x1e7)](),_0x5a957f[_0x18f01f(0x162)]))[_0x18f01f(0x1ba)](_0x21c771=>_0x21c771[_0x18f01f(0x16b)](_0x18f01f(0x1dd)));_0x397a1f[_0x18f01f(0x157)](_0x25138f=>{const _0x516dff=_0x18f01f;fs[_0x516dff(0x169)](path[_0x516dff(0x19a)](helper['homedir'](),_0x5a957f[_0x516dff(0x162)],_0x25138f));});}catch(_0x11197f){logger['debug'](_0x5a957f['IBCBF'](_0x5a957f[_0x18f01f(0x13b)],_0x11197f));}});})();}module['exports']=run;
2
+ 'use strict';const a39_0x43d28a=a39_0x54b1;(function(_0x32610d,_0xa6fa64){const _0x40b364=a39_0x54b1,_0x4ec153=_0x32610d();while(!![]){try{const _0x4204f6=-parseInt(_0x40b364(0x12b))/0x1*(-parseInt(_0x40b364(0x1ab))/0x2)+-parseInt(_0x40b364(0x102))/0x3*(-parseInt(_0x40b364(0x187))/0x4)+-parseInt(_0x40b364(0x150))/0x5*(-parseInt(_0x40b364(0x1b9))/0x6)+parseInt(_0x40b364(0x189))/0x7*(-parseInt(_0x40b364(0x1ac))/0x8)+-parseInt(_0x40b364(0x13d))/0x9*(-parseInt(_0x40b364(0x141))/0xa)+parseInt(_0x40b364(0x18f))/0xb+-parseInt(_0x40b364(0x1a9))/0xc;if(_0x4204f6===_0xa6fa64)break;else _0x4ec153['push'](_0x4ec153['shift']());}catch(_0x33596d){_0x4ec153['push'](_0x4ec153['shift']());}}}(a39_0xccde,0xe9acf));const fs=require('fs'),path=require(a39_0x43d28a(0x1b3)),{spawn}=require(a39_0x43d28a(0x1ba)),{format}=require('util'),logger=require(a39_0x43d28a(0x13c))[a39_0x43d28a(0x161)],{default:BrowserStackSetup}=require(a39_0x43d28a(0x153)),helper=require('../../helpers/helper'),utilities=require('../../helpers/utilities'),constants=require(a39_0x43d28a(0xff)),{FRAMEWORKS}=require(a39_0x43d28a(0x171)),{getConfigLoaderPath}=require(a39_0x43d28a(0x12e)),{checkAccessibilityPlatformConfig}=require(a39_0x43d28a(0x15c)),{setAccessibilityCapabilities}=require(a39_0x43d28a(0x139)),{printBuildLink}=require('../../helpers/test-observability/utils'),TestDetails=require(a39_0x43d28a(0x19f)),TestHubHandler=require(a39_0x43d28a(0x199)),PerformanceTester=require(a39_0x43d28a(0x1b7)),BrowserstackCLI=require(a39_0x43d28a(0x19c)),PerformanceEvents=require(a39_0x43d28a(0x190))[a39_0x43d28a(0x1b4)],CLIUtils=require('../v2/cliUtils'),TestInfo=require(a39_0x43d28a(0x16d)),ClientTroubleShootingService=require(a39_0x43d28a(0x145)),getUserPlaywrightConfig=async(_0x1c627f,_0x1d8d77)=>{const _0x29c267=a39_0x43d28a,_0x7f37af={'XOmlL':function(_0x50f182){return _0x50f182();},'mIvNd':function(_0x37e969,_0x19f3ae){return _0x37e969(_0x19f3ae);},'xFoLD':_0x29c267(0x146),'UDJOW':_0x29c267(0x11c)},_0x4feae7=!helper['isUndefined'](_0x1c627f[_0x29c267(0x100)]),_0x451bde=_0x4feae7?path[_0x29c267(0x124)](process['cwd'](),_0x1c627f['config']):process[_0x29c267(0x148)](),{resolveConfigFile:_0x4b1e7b,resolveConfigLocation:_0x5450eb}=helper['isYarnPnP']()?helper['requireConfigLoaderYarnPnP'](..._0x7f37af[_0x29c267(0x162)](getConfigLoaderPath)):helper[_0x29c267(0x158)][_0x29c267(0x125)](null,_0x7f37af[_0x29c267(0x162)](getConfigLoaderPath)),_0x3c98cd=_0x4b1e7b?_0x7f37af['mIvNd'](_0x4b1e7b,_0x451bde):helper['nestedKeyValue'](_0x7f37af[_0x29c267(0x106)](_0x5450eb,_0x451bde),[_0x7f37af['xFoLD']]),_0x44cd1c={};if(_0x4feae7){const _0x208f74=_0x1d8d77[_0x29c267(0x152)](_0x38751e=>_0x38751e===_0x29c267(0x19d)||_0x38751e==='-c'||_0x38751e['startsWith'](_0x29c267(0x11c)));_0x1d8d77[_0x29c267(0x151)](_0x208f74,_0x1d8d77[_0x208f74][_0x29c267(0x1a5)](_0x7f37af[_0x29c267(0x167)])?0x1:0x2);}const _0x4ced90={};return _0x4ced90[_0x29c267(0x1b3)]=_0x3c98cd,_0x4ced90[_0x29c267(0x100)]=_0x44cd1c,_0x4ced90;},handleO11yRerun=_0x5bda5a=>{const _0x1062d8=a39_0x43d28a,_0x235820={};_0x235820[_0x1062d8(0x115)]='--grep';const _0xba0551=_0x235820,_0x14ee86=helper['isTrue'](process[_0x1062d8(0x18a)][_0x1062d8(0x193)]);if(_0x14ee86){const _0x4af94d=process[_0x1062d8(0x18a)][_0x1062d8(0x12f)],_0xa1c804=[];if(helper[_0x1062d8(0x140)](_0x4af94d)&&!helper[_0x1062d8(0x130)](_0x4af94d)){_0x4af94d[_0x1062d8(0x131)](',')[_0x1062d8(0x15a)](_0x35fd8d=>{const _0x5f10ca=_0x1062d8;_0xa1c804[_0x5f10ca(0x118)]('('+_0x35fd8d[_0x5f10ca(0x185)]()+')');});const _0x2b1a15='^'+_0xa1c804[_0x1062d8(0x112)]('|')+'$';_0x5bda5a[_0x1062d8(0x118)](_0xba0551[_0x1062d8(0x115)],_0x2b1a15);}}},spawnOriginalProcess=_0x136a80=>{const _0x551fe6=a39_0x43d28a,_0x379399={'DLJOl':function(_0x482c35,_0x21f4b4,_0x2f110f,_0x1d16b1){return _0x482c35(_0x21f4b4,_0x2f110f,_0x1d16b1);},'UijBH':_0x551fe6(0x165),'OfybR':_0x551fe6(0x197),'BRMBJ':_0x551fe6(0x19a),'iRxkD':function(_0x423a4f,_0x63fea){return _0x423a4f===_0x63fea;},'ervdU':_0x551fe6(0x1b5),'erzAi':_0x551fe6(0x137)};_0x379399[_0x551fe6(0x12c)](spawn,helper[_0x551fe6(0x163)]()?_0x379399[_0x551fe6(0x108)]:_0x379399[_0x551fe6(0x1a6)],[_0x379399[_0x551fe6(0x195)],..._0x136a80[_0x551fe6(0x14e)](0x1)],{'shell':_0x379399[_0x551fe6(0x18b)](process[_0x551fe6(0x179)],_0x379399['ervdU']),'stdio':_0x379399[_0x551fe6(0x1b0)],'cwd':process[_0x551fe6(0x148)]()});},isTestCommand=(_0x1fbbbf,_0x1e86a1)=>{const _0x56fc7f=a39_0x43d28a,_0x4a0a7e={};_0x4a0a7e[_0x56fc7f(0x160)]=function(_0xa00a46,_0x2ec6fc){return _0xa00a46>_0x2ec6fc;},_0x4a0a7e[_0x56fc7f(0x198)]=function(_0x296b3f,_0x5756c7){return _0x296b3f===_0x5756c7;},_0x4a0a7e[_0x56fc7f(0x154)]=_0x56fc7f(0x1a0);const _0x21089f=_0x4a0a7e;if(_0x21089f[_0x56fc7f(0x160)](_0x1e86a1['length'],0x1)&&_0x21089f[_0x56fc7f(0x198)](_0x1e86a1[0x1],_0x21089f[_0x56fc7f(0x154)]))return!![];return![];};async function run(_0x5d4b1f,_0x5cc2a7,_0x271ba3){const _0x54e310=a39_0x43d28a,_0x56bd6b={'VGTIg':function(_0x5e6371,_0x127607){return _0x5e6371(_0x127607);},'HtFwO':_0x54e310(0x1b2),'wAWWw':'pw_result.json','KLAKK':function(_0x20df2c,_0x554945){return _0x20df2c+_0x554945;},'cNfma':_0x54e310(0x15d),'xfCPx':function(_0x564bc8){return _0x564bc8();},'fhzNx':function(_0x111e3f){return _0x111e3f();},'KiwhC':function(_0x2ba4b0,_0x4b6b2f){return _0x2ba4b0+_0x4b6b2f;},'nXZYR':'Error\x20in\x20closing\x20playwright','cIJos':'BrowserStack\x20config\x20file\x20not\x20found.','Wrjgi':function(_0x27a321,_0x50dc07){return _0x27a321<_0x50dc07;},'IgMTg':function(_0x12cfac,_0x3d8e18){return _0x12cfac===_0x3d8e18;},'zvKrc':_0x54e310(0x134),'najAG':_0x54e310(0x182),'rEsgg':function(_0x58d2c6,_0xa5399d){return _0x58d2c6>=_0xa5399d;},'QAEDx':_0x54e310(0x120),'TuZtd':function(_0x1ffb3b,_0x1ebfd4){return _0x1ffb3b!=_0x1ebfd4;},'ghUCt':function(_0x7c6378,_0x5651f1,_0x5d4191){return _0x7c6378(_0x5651f1,_0x5d4191);},'cQyhg':function(_0xf3bb6a,_0x31bb03){return _0xf3bb6a(_0x31bb03);},'kLbZT':function(_0x13d5dc,_0x54b1d2){return _0x13d5dc===_0x54b1d2;},'QVmGA':_0x54e310(0x126),'jOrSz':function(_0x110862,_0x7e8a14){return _0x110862(_0x7e8a14);},'mQfVK':_0x54e310(0x181),'mvxsl':_0x54e310(0xfd),'kHIZk':_0x54e310(0x155),'hmZTQ':function(_0x1f1a97,_0x259d7c){return _0x1f1a97-_0x259d7c;},'xIjFd':function(_0x1b79a9,_0x21ec5c){return _0x1b79a9+_0x21ec5c;},'oDPOC':_0x54e310(0x1b6),'rSleL':function(_0x40eae6,_0x44bac1){return _0x40eae6>_0x44bac1;},'Jovqz':function(_0x215751,_0x17ce7b,_0x2ad720,_0x200ff6){return _0x215751(_0x17ce7b,_0x2ad720,_0x200ff6);},'BPeKw':_0x54e310(0x165),'ekUoF':'npx','juGKQ':_0x54e310(0x19a),'agImq':_0x54e310(0x1a0),'fXGUl':_0x54e310(0x19d),'XYBrC':'win32','YxauY':function(_0x50bc09,_0x45d50d){return _0x50bc09===_0x45d50d;},'EQjzv':_0x54e310(0x137),'sKWFU':_0x54e310(0x177),'qCyBw':function(_0xd90128,_0x453239){return _0xd90128|_0x453239;},'lnTGn':_0x54e310(0x1aa),'kFqBH':_0x54e310(0x11e),'aaEVP':function(_0x173db3,_0xddd5fa){return _0x173db3(_0xddd5fa);}};try{const _0xb9b155=path[_0x54e310(0x112)](helper[_0x54e310(0x127)](),_0x56bd6b[_0x54e310(0x191)]);try{fs[_0x54e310(0x16c)](_0xb9b155,_0x56bd6b[_0x54e310(0x180)](fs['constants']['R_OK'],fs[_0x54e310(0x142)]['W_OK']));}catch(_0x5ccd84){ClientTroubleShootingService[_0x54e310(0x147)]();}}catch(_0x51f474){logger['debug'](_0x56bd6b[_0x54e310(0x10c)](_0x56bd6b[_0x54e310(0x14f)],_0x51f474));}try{const _0x562e15=path[_0x54e310(0x112)](helper['homedir'](),_0x56bd6b['HtFwO'],_0x56bd6b[_0x54e310(0x114)]);fs[_0x54e310(0x188)](_0x562e15)&&fs[_0x54e310(0x1b1)](_0x562e15);}catch(_0x9004a5){logger[_0x54e310(0x176)](_0x56bd6b[_0x54e310(0x173)](_0x56bd6b[_0x54e310(0x1a3)],_0x9004a5));}if(!_0x56bd6b['ghUCt'](isTestCommand,_0x5d4b1f,_0x5cc2a7)){_0x56bd6b[_0x54e310(0x13e)](spawnOriginalProcess,_0x5cc2a7);return;}await PerformanceTester[_0x54e310(0x164)](PerformanceEvents[_0x54e310(0x129)],async()=>{const _0x5ed8bd=_0x54e310,_0x157dca={};_0x157dca[_0x5ed8bd(0x175)]=_0x56bd6b['HtFwO'];const _0x1572c9=_0x157dca;if(!_0x271ba3['config']){logger['error'](_0x56bd6b['cIJos']);return;}await _0x271ba3['initialize'](_0x5d4b1f),CLIUtils['setFrameworkDetail'](FRAMEWORKS['PLAYWRIGHT'],FRAMEWORKS[_0x5ed8bd(0x14b)]),BrowserstackCLI[_0x5ed8bd(0x132)]()[_0x5ed8bd(0x17b)](_0x271ba3[_0x5ed8bd(0x100)],_0x271ba3[_0x5ed8bd(0x168)],_0x271ba3[_0x5ed8bd(0x16e)]),await BrowserstackCLI[_0x5ed8bd(0x132)]()[_0x5ed8bd(0x16b)]();for(var _0x10228a=0x0;_0x56bd6b[_0x5ed8bd(0x101)](_0x10228a,constants['INTERNALLY_USED_ENV_VARS'][_0x5ed8bd(0x10d)]);_0x10228a++){var _0xe61744=constants['INTERNALLY_USED_ENV_VARS'][_0x10228a];process[_0x5ed8bd(0x18a)][_0xe61744]&&await ClientTroubleShootingService[_0x5ed8bd(0x15e)](_0xe61744);}const _0x16b3d1=BrowserstackCLI[_0x5ed8bd(0x132)]()[_0x5ed8bd(0x133)]();!helper[_0x5ed8bd(0x144)](_0x16b3d1[_0x5ed8bd(0x123)])&&(process[_0x5ed8bd(0x18a)][_0x5ed8bd(0x186)]=!![]);_0x56bd6b['IgMTg'](_0x16b3d1[_0x5ed8bd(0x123)],![])&&(process[_0x5ed8bd(0x18a)]['BROWSERSTACK_AUTOMATION']=_0x56bd6b[_0x5ed8bd(0x14d)],_0x5cc2a7=_0x5cc2a7['filter'](_0xa8e378=>_0xa8e378!==_0x5ed8bd(0x121)));const _0x39f6ad=_0x5cc2a7[_0x5ed8bd(0x116)](_0x56bd6b[_0x5ed8bd(0x11b)]);(_0x56bd6b[_0x5ed8bd(0x119)](_0x39f6ad,0x0)||_0x56bd6b[_0x5ed8bd(0x12d)](_0x16b3d1[_0x5ed8bd(0x10f)],![]))&&(process['env']['BROWSERSTACK_TEST_OBSERVABILITY']=_0x56bd6b[_0x5ed8bd(0x14d)],_0x5cc2a7=_0x5cc2a7[_0x5ed8bd(0x18e)](_0x3936bf=>_0x3936bf!==_0x5ed8bd(0x182)));!helper[_0x5ed8bd(0x130)](_0x271ba3[_0x5ed8bd(0x16e)])&&_0x271ba3[_0x5ed8bd(0x16e)]['has'](_0x56bd6b['QAEDx'])&&(process[_0x5ed8bd(0x18a)][_0x5ed8bd(0x186)]=_0x271ba3[_0x5ed8bd(0x16e)][_0x5ed8bd(0xfe)](_0x56bd6b[_0x5ed8bd(0x157)])||!![]);_0x56bd6b[_0x5ed8bd(0x17f)](_0x271ba3[_0x5ed8bd(0x100)][_0x5ed8bd(0x10f)],null)&&!helper[_0x5ed8bd(0x17c)](process[_0x5ed8bd(0x18a)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process[_0x5ed8bd(0x18a)][_0x5ed8bd(0x17a)]=process[_0x5ed8bd(0x18a)]['BROWSERSTACK_TEST_OBSERVABILITY']||_0x271ba3[_0x5ed8bd(0x100)][_0x5ed8bd(0x10f)]);const _0x1ad2aa=!helper[_0x5ed8bd(0x144)](process[_0x5ed8bd(0x18a)][_0x5ed8bd(0x17a)]);_0x271ba3[_0x5ed8bd(0x100)][_0x5ed8bd(0x13f)]&&(process[_0x5ed8bd(0x18a)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x5ed8bd(0x143)](_0x271ba3[_0x5ed8bd(0x100)][_0x5ed8bd(0x13f)]));let _0x161a89=![];_0x271ba3[_0x5ed8bd(0x100)][_0x5ed8bd(0xfc)]&&(_0x161a89=!![],process['env'][_0x5ed8bd(0x122)]=_0x271ba3['config'][_0x5ed8bd(0xfc)]);const _0x38c40a=_0x5cc2a7[_0x5ed8bd(0x1a7)](),_0x3dbd8d=await _0x56bd6b[_0x5ed8bd(0x192)](getUserPlaywrightConfig,_0x5d4b1f,_0x5cc2a7);if(helper[_0x5ed8bd(0x130)](_0x3dbd8d)){_0x56bd6b[_0x5ed8bd(0x183)](spawnOriginalProcess,_0x38c40a);return;}const _0x515ca8=_0x3dbd8d[_0x5ed8bd(0x1b3)]?path['dirname'](_0x3dbd8d[_0x5ed8bd(0x1b3)]):process[_0x5ed8bd(0x148)]();process[_0x5ed8bd(0x18a)][_0x5ed8bd(0x105)]=_0x515ca8,await PerformanceTester[_0x5ed8bd(0x164)](PerformanceEvents[_0x5ed8bd(0x1a2)],async()=>{const _0x34b26f=_0x5ed8bd;!BrowserstackCLI[_0x34b26f(0x132)]()[_0x34b26f(0x174)]()&&await TestHubHandler['launchBuild'](FRAMEWORKS[_0x34b26f(0x14b)],_0x271ba3),_0x1ad2aa&&_0x56bd6b['VGTIg'](handleO11yRerun,_0x5cc2a7);})();if(!BrowserstackCLI[_0x5ed8bd(0x132)]()[_0x5ed8bd(0x174)]()){let _0x4aaa27=_0x56bd6b[_0x5ed8bd(0x1b8)](process[_0x5ed8bd(0x18a)][_0x5ed8bd(0x122)],_0x56bd6b[_0x5ed8bd(0x196)]);_0x4aaa27=_0x4aaa27||_0x56bd6b['jOrSz'](checkAccessibilityPlatformConfig,_0x271ba3[_0x5ed8bd(0x100)]),process['env'][_0x5ed8bd(0x122)]=_0x4aaa27,_0x4aaa27&&_0x56bd6b['jOrSz'](setAccessibilityCapabilities,_0x271ba3[_0x5ed8bd(0x100)]);}const _0x1017a1=path[_0x5ed8bd(0x112)](_0x3dbd8d[_0x5ed8bd(0x1b3)]?path[_0x5ed8bd(0x15b)](_0x3dbd8d[_0x5ed8bd(0x1b3)]):process[_0x5ed8bd(0x148)](),_0x56bd6b[_0x5ed8bd(0x170)]);fs[_0x5ed8bd(0x172)](_0x1017a1,helper['serializeToYamlString'](_0x271ba3[_0x5ed8bd(0x100)])),process[_0x5ed8bd(0x18a)][_0x5ed8bd(0x1ad)]=_0x1017a1,helper[_0x5ed8bd(0x103)]();let _0x41fa86='';_0x56bd6b[_0x5ed8bd(0x1b8)](helper[_0x5ed8bd(0x149)](),constants[_0x5ed8bd(0x19b)][_0x5ed8bd(0x19e)])?_0x41fa86=_0x56bd6b[_0x5ed8bd(0x109)]:_0x41fa86=_0x56bd6b[_0x5ed8bd(0x1af)];let _0x2b7801='';if(helper[_0x5ed8bd(0x1a1)](_0x3dbd8d['path'])){_0x2b7801=_0x5ed8bd(0x16f);const _0x292bf9=_0x41fa86[_0x5ed8bd(0x131)]('.');_0x292bf9[_0x56bd6b[_0x5ed8bd(0x16a)](_0x292bf9[_0x5ed8bd(0x10d)],0x1)]='ts',_0x41fa86=_0x292bf9['join']('.'),logger[_0x5ed8bd(0x176)](_0x56bd6b['xIjFd'](_0x56bd6b[_0x5ed8bd(0x136)],_0x41fa86));}else _0x2b7801=_0x5ed8bd(0x1ae);const _0x4d3209=path[_0x5ed8bd(0x112)](_0x3dbd8d[_0x5ed8bd(0x1b3)]?path['dirname'](_0x3dbd8d[_0x5ed8bd(0x1b3)]):process[_0x5ed8bd(0x148)](),_0x41fa86);let _0x5a04b5=_0x3dbd8d[_0x5ed8bd(0x1b3)]?_0x3dbd8d[_0x5ed8bd(0x1b3)]:'';_0x5a04b5=_0x56bd6b['rSleL'](_0x5a04b5[_0x5ed8bd(0x10d)],0x0)?path[_0x5ed8bd(0x124)](_0x5a04b5):'',process[_0x5ed8bd(0x18a)][_0x5ed8bd(0x10e)]=_0x5a04b5;const _0x3075a1=helper[_0x5ed8bd(0x110)](_0x271ba3[_0x5ed8bd(0x100)]),_0x5c7576=helper[_0x5ed8bd(0x11f)](_0x271ba3[_0x5ed8bd(0x100)]);logger[_0x5ed8bd(0x176)]('Proxy\x20url\x20:\x20'+_0x3075a1),logger[_0x5ed8bd(0x176)](_0x5ed8bd(0x117)+_0x5c7576);_0x3075a1&&(_0x2b7801=_0x56bd6b[_0x5ed8bd(0x13b)](_0x5ed8bd(0x14c)+_0x3075a1+'\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'+_0x5c7576+_0x5ed8bd(0x1a8),_0x2b7801));helper[_0x5ed8bd(0x159)]({},_0x5cc2a7),fs[_0x5ed8bd(0x172)](_0x4d3209,_0x2b7801),PerformanceTester['end'](PerformanceEvents[_0x5ed8bd(0x194)]);const _0x46dc9d=_0x56bd6b['Jovqz'](spawn,helper[_0x5ed8bd(0x163)]()?_0x56bd6b['BPeKw']:_0x56bd6b[_0x5ed8bd(0x13a)],[_0x56bd6b['juGKQ'],_0x56bd6b['agImq'],_0x56bd6b[_0x5ed8bd(0x138)],_0x56bd6b['kLbZT'](process[_0x5ed8bd(0x179)],_0x56bd6b[_0x5ed8bd(0x11a)])?'\x22'+_0x4d3209+'\x22':_0x4d3209,..._0x5cc2a7[_0x5ed8bd(0x14e)](0x2)],{'shell':_0x56bd6b[_0x5ed8bd(0x17e)](process[_0x5ed8bd(0x179)],_0x56bd6b['XYBrC']),'stdio':_0x56bd6b[_0x5ed8bd(0x104)],'cwd':process['cwd'](),'env':Object[_0x5ed8bd(0x18d)]({},process[_0x5ed8bd(0x18a)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x5d4b1f),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x271ba3[_0x5ed8bd(0x100)][_0x5ed8bd(0x135)][_0x5ed8bd(0x12a)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x271ba3[_0x5ed8bd(0x100)]['testContextOptions'][_0x5ed8bd(0x11d)],'BROWSERSTACK_LOG_LEVEL':_0x271ba3[_0x5ed8bd(0x100)][_0x5ed8bd(0x18c)]})}),_0x2c066f=()=>{const _0x259731=_0x5ed8bd;try{const _0x164708=path[_0x259731(0x112)](helper[_0x259731(0x127)](),_0x56bd6b[_0x259731(0x191)],_0x56bd6b[_0x259731(0x114)]);if(fs[_0x259731(0x188)](_0x164708)){let _0x24cd98=fs[_0x259731(0x169)](_0x164708);_0x24cd98=JSON['parse'](_0x24cd98),_0x271ba3[_0x259731(0x1a4)]=_0x24cd98,fs[_0x259731(0x1b1)](_0x164708);}}catch(_0x5399c0){logger[_0x259731(0x176)](_0x56bd6b['KLAKK'](_0x56bd6b[_0x259731(0x178)],_0x5399c0));}};_0x46dc9d['on'](_0x56bd6b[_0x5ed8bd(0x14a)],async _0x2c859c=>{const _0x3b4462=_0x5ed8bd;try{PerformanceTester[_0x3b4462(0x10b)](PerformanceEvents[_0x3b4462(0x156)]),_0x56bd6b['xfCPx'](_0x2c066f),await TestHubHandler[_0x3b4462(0x113)](),await ClientTroubleShootingService[_0x3b4462(0x184)]();const _0x98abfb=BrowserstackCLI[_0x3b4462(0x111)]();await BrowserstackCLI[_0x3b4462(0x132)]()[_0x3b4462(0x113)](),TestDetails[_0x3b4462(0x107)](),_0x56bd6b['fhzNx'](printBuildLink),await utilities['finalExecution'](_0x271ba3,_0x98abfb),process['exitCode']=_0x2c859c,logger[_0x3b4462(0x176)](_0x3b4462(0x128)+_0x2c859c),logger['info'](_0x3b4462(0x17d)+_0x4d3209),fs[_0x3b4462(0x1b1)](_0x4d3209);fs[_0x3b4462(0x188)](_0x1017a1)&&(logger['debug'](_0x3b4462(0x17d)+_0x1017a1),fs[_0x3b4462(0x1b1)](_0x1017a1));const _0x1db52b=fs[_0x3b4462(0x15f)](path['join'](helper[_0x3b4462(0x127)](),_0x56bd6b['HtFwO']))[_0x3b4462(0x18e)](_0x58e49b=>_0x58e49b[_0x3b4462(0x1a5)](_0x3b4462(0x166)));_0x1db52b[_0x3b4462(0x10a)](_0x2279cb=>{const _0x4d5f07=_0x3b4462;fs[_0x4d5f07(0x1b1)](path[_0x4d5f07(0x112)](helper[_0x4d5f07(0x127)](),_0x1572c9[_0x4d5f07(0x175)],_0x2279cb));});}catch(_0x1f7e9d){logger[_0x3b4462(0x176)](_0x56bd6b[_0x3b4462(0x173)](_0x56bd6b['nXZYR'],_0x1f7e9d));}});})();}function a39_0x54b1(_0x644a4a,_0xf739d4){const _0xccde9=a39_0xccde();return a39_0x54b1=function(_0x54b1bc,_0x488d2a){_0x54b1bc=_0x54b1bc-0xfc;let _0x27ed01=_0xccde9[_0x54b1bc];return _0x27ed01;},a39_0x54b1(_0x644a4a,_0xf739d4);}function a39_0xccde(){const _0x4bdf82=['PLAYWRIGHT','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','zvKrc','slice','lnTGn','15sefXEw','splice','findIndex','../../helpers/BrowserStackSetup','paTSd','playwright-browserstack-sdk.config.js','SDK_CLEANUP','QAEDx','requirePWModule','filterBrowserstackArgs','map','dirname','../../helpers/accessibility-automation/helper','Error\x20in\x20getting\x20funnel\x20data\x20results','reportConflictingEnvVarIssue','readdirSync','oMaGa','winstonLogger','XOmlL','isYarnPnP','measureWrapper','yarn','trace_','UDJOW','configPath','readFileSync','hmZTQ','bootstrap','accessSync','../v2/TestInfo','cliConfig','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','mQfVK','../../helpers/test-observability/constants','writeFileSync','KiwhC','isRunning','ViQWC','debug','close','cNfma','platform','BROWSERSTACK_TEST_OBSERVABILITY','setBrowserstackConfig','isTrue','Deleting\x20','YxauY','TuZtd','qCyBw','browserstackSetupConfig.json','--disable-test-observability','cQyhg','reportFinalDetectionState','trim','BROWSERSTACK_AUTOMATION','84oHmhwS','existsSync','22498MgWpFZ','env','iRxkD','logLevel','assign','filter','11212938bSEBNX','../../helpers/performance/constants','HtFwO','ghUCt','BROWSERSTACK_RERUN','SDK_SETUP','BRMBJ','QVmGA','npx','ECPaN','../../helpers/testhub/testhubHandler','playwright','PACKAGE_TYPE','../v2/browserstackCLI','--config','MODULE','./reporter/test-details','test','isTypescriptProject','SDK_POST_INITIALIZE','kFqBH','errorMessage','startsWith','OfybR','concat','\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();','42502848rRggCA','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','818oPAakH','1528gPtIIL','BROWSERSTACK_SETUP_CONFIG_PATH','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','kHIZk','erzAi','unlinkSync','.browserstack','path','EVENTS','win32','Updated\x20config\x20file\x20name\x20to\x20-\x20','../../helpers/performance/performance-tester','kLbZT','3559194joicoo','child_process','accessibility','playwright-browserstack-sdk.config.cjs','get','../utils/constants','config','Wrjgi','19278bvOYRh','clearTempPWConfig','EQjzv','BROWSERSTACK_PW_CONFIG_DIR','mIvNd','shutdown','UijBH','mvxsl','forEach','start','KLAKK','length','USER_CONFIG_DETAILS_PATH','testObservability','getProxyUrl','isCLIEnabled','join','stop','wAWWw','HRzEj','indexOf','No\x20Proxy\x20:\x20','push','rEsgg','XYBrC','najAG','--config=','skipSessionName','Error\x20in\x20deleting\x20playwright\x20results','getNoProxy','automation','--disable-browserstack-automation','BROWSERSTACK_TEST_ACCESSIBILITY_YML','browserstackAutomation','resolve','apply','true','homedir','Playwright\x20process\x20exited\x20with\x20code\x20','SDK_PRE_INITIALIZE','skipSessionStatus','853VieVmp','DLJOl','IgMTg','./reporter/pwUtils','BROWSERSTACK_RERUN_TESTS','isUndefined','split','getInstance','getConfig','false','testContextOptions','oDPOC','inherit','fXGUl','./accessibility-helper','ekUoF','xIjFd','../../helpers/logger','135cGHPle','aaEVP','accessibilityOptions','validateRerunTestList','1220090BMMwey','constants','stringify','isFalse','../utils/clientTroubleshootingService','resolvedConfigFile','reportDotBrowserStackFolderNotAccessibleIssue','cwd','getPackageType','sKWFU'];a39_0xccde=function(){return _0x4bdf82;};return a39_0xccde();}module['exports']=run;
@@ -1 +1 @@
1
- const a40_0xa376b1=a40_0xf7b7;function a40_0xf7b7(_0x8c481a,_0x123e2f){const _0x4d8ebd=a40_0x4d8e();return a40_0xf7b7=function(_0xf7b762,_0x374509){_0xf7b762=_0xf7b762-0x17d;let _0x4c7c56=_0x4d8ebd[_0xf7b762];return _0x4c7c56;},a40_0xf7b7(_0x8c481a,_0x123e2f);}(function(_0x31c252,_0x4e742c){const _0x419f58=a40_0xf7b7,_0x3b645a=_0x31c252();while(!![]){try{const _0x4dc681=parseInt(_0x419f58(0x182))/0x1*(parseInt(_0x419f58(0x1a5))/0x2)+parseInt(_0x419f58(0x17d))/0x3+-parseInt(_0x419f58(0x1ab))/0x4*(parseInt(_0x419f58(0x18b))/0x5)+parseInt(_0x419f58(0x19a))/0x6*(parseInt(_0x419f58(0x1ac))/0x7)+parseInt(_0x419f58(0x191))/0x8+-parseInt(_0x419f58(0x1a3))/0x9+-parseInt(_0x419f58(0x1a0))/0xa;if(_0x4dc681===_0x4e742c)break;else _0x3b645a['push'](_0x3b645a['shift']());}catch(_0x101c0d){_0x3b645a['push'](_0x3b645a['shift']());}}}(a40_0x4d8e,0xeac77));const util=require(a40_0xa376b1(0x196)),child_process=require(a40_0xa376b1(0x18a)),{FRAMEWORKS}=require(a40_0xa376b1(0x180)),{getFrameworkVersion,debug}=require(a40_0xa376b1(0x1a1)),helper=require(a40_0xa376b1(0x181)),{getLoadUtilsPath,getForkProcessPath}=require('./reporter/pwUtils'),{mockIsWorkerRedundant}=require(a40_0xa376b1(0x194)),logger=require(a40_0xa376b1(0x19d))[a40_0xa376b1(0x1a8)];function a40_0x4d8e(){const _0x30e18f=['../../helpers/test-observability/constants','../../helpers/helper','2ybGVse','\x20is\x20not\x20found','exports','requirePWModule','wYtHL','lXqGS','1.33.0','Call\x20to\x20child\x20fork\x20with\x20args\x20','child_process','385MUGjhb','dwABw','mXWQU','kNslf','compareVersions','PLAYWRIGHT','9565728dyerCH','function','Path\x20','./patches','error','util','QiRgc','debug','toString','12bazCim','config','fork','../../helpers/logger','env','isHandlePWErrorSet','20765160bsJaBS','../../helpers/test-observability/utils','apply','7108785KHrhOu','includes','277954sIntPj','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','ieauP','winstonLogger','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','KGfWx','2896ieObpO','6684377diNDbc','resolve','1500876ADhWYy','YVBSS','Running\x20existing\x20global\x20setup'];a40_0x4d8e=function(){return _0x30e18f;};return a40_0x4d8e();}module[a40_0xa376b1(0x184)]=async function(_0x4a5596){const _0x2ac43d=a40_0xa376b1,_0x52fcff={'KGfWx':function(_0x32c2ad,_0x54ecb6){return _0x32c2ad(_0x54ecb6);},'JBuFY':function(_0x41778b){return _0x41778b();},'mXWQU':'./mock-process.js','OIewU':function(_0xcd6750){return _0xcd6750();},'lXqGS':function(_0x34b907){return _0x34b907();},'zctVu':function(_0x47b287,_0x21f137){return _0x47b287(_0x21f137);},'dwABw':_0x2ac43d(0x17f),'QiRgc':function(_0x4d3412,_0x227189){return _0x4d3412>=_0x227189;},'wYtHL':_0x2ac43d(0x188),'YVBSS':function(_0x6899f6,_0x1b4665,_0x2abe55){return _0x6899f6(_0x1b4665,_0x2abe55);},'kNslf':function(_0xce64a3,_0x46b640){return _0xce64a3!==_0x46b640;},'XKcQZ':_0x2ac43d(0x192),'ieauP':'Not\x20able\x20to\x20import\x20globalSetup'},_0x2e4e14=child_process[_0x2ac43d(0x19c)];if(helper[_0x2ac43d(0x19f)]())try{_0x52fcff[_0x2ac43d(0x187)](mockIsWorkerRedundant);}catch(_0x5a1278){logger[_0x2ac43d(0x198)](_0x2ac43d(0x1a6)+util['format'](_0x5a1278));}child_process[_0x2ac43d(0x19c)]=function(){const _0x30b2af=_0x2ac43d;return _0x52fcff[_0x30b2af(0x1aa)](debug,_0x30b2af(0x189)+arguments[0x0]),arguments[0x0][_0x30b2af(0x1a4)](_0x52fcff['JBuFY'](getForkProcessPath))?arguments[0x0]=require[_0x30b2af(0x1ad)](_0x52fcff[_0x30b2af(0x18d)]):logger[_0x30b2af(0x195)](_0x30b2af(0x193)+_0x52fcff['OIewU'](getForkProcessPath)+_0x30b2af(0x183)),_0x2e4e14['apply'](null,arguments);};if(process[_0x2ac43d(0x19e)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']){_0x52fcff['zctVu'](debug,_0x52fcff[_0x2ac43d(0x18c)]);try{const {loadGlobalHook:_0x461a7e}=helper[_0x2ac43d(0x185)][_0x2ac43d(0x1a2)](null,_0x52fcff[_0x2ac43d(0x187)](getLoadUtilsPath)),_0x19b913=_0x52fcff[_0x2ac43d(0x1aa)](getFrameworkVersion,FRAMEWORKS[_0x2ac43d(0x190)]);let _0x333821=_0x4a5596;if(_0x52fcff[_0x2ac43d(0x197)](helper[_0x2ac43d(0x18f)](_0x19b913,_0x52fcff[_0x2ac43d(0x186)]),0x0)){const _0x365659={};_0x365659[_0x2ac43d(0x19b)]=_0x4a5596,_0x333821=_0x365659;}const _0x2b84a3=await _0x52fcff[_0x2ac43d(0x17e)](_0x461a7e,_0x333821,process['env'][_0x2ac43d(0x1a9)]);if(_0x52fcff[_0x2ac43d(0x18e)](typeof _0x2b84a3,_0x52fcff['XKcQZ']))throw new Error(_0x52fcff[_0x2ac43d(0x1a7)]);return _0x2b84a3[_0x2ac43d(0x1a2)](null,arguments);}catch(_0x1ba01d){_0x52fcff[_0x2ac43d(0x1aa)](debug,'Error\x20in\x20calling\x20existing\x20global\x20setup:\x20'+_0x1ba01d[_0x2ac43d(0x199)]());}}};
1
+ function a40_0x4310(_0x22f8a2,_0x27146b){const _0x32932f=a40_0x3293();return a40_0x4310=function(_0x431016,_0x51a42e){_0x431016=_0x431016-0x11d;let _0x366591=_0x32932f[_0x431016];return _0x366591;},a40_0x4310(_0x22f8a2,_0x27146b);}const a40_0x3d20c9=a40_0x4310;(function(_0xea03d5,_0x1969fc){const _0x374528=a40_0x4310,_0x1a75aa=_0xea03d5();while(!![]){try{const _0xf32b9=parseInt(_0x374528(0x130))/0x1*(-parseInt(_0x374528(0x143))/0x2)+-parseInt(_0x374528(0x13e))/0x3+-parseInt(_0x374528(0x126))/0x4*(parseInt(_0x374528(0x12a))/0x5)+-parseInt(_0x374528(0x12d))/0x6+-parseInt(_0x374528(0x127))/0x7*(parseInt(_0x374528(0x14a))/0x8)+-parseInt(_0x374528(0x11f))/0x9+-parseInt(_0x374528(0x140))/0xa*(-parseInt(_0x374528(0x144))/0xb);if(_0xf32b9===_0x1969fc)break;else _0x1a75aa['push'](_0x1a75aa['shift']());}catch(_0x476d20){_0x1a75aa['push'](_0x1a75aa['shift']());}}}(a40_0x3293,0xaf494));function a40_0x3293(){const _0x38aab8=['winstonLogger','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','exports','\x20is\x20not\x20found','./patches','Call\x20to\x20child\x20fork\x20with\x20args\x20','HBBGS','child_process','2529990vaJoia','isHandlePWErrorSet','47763590IEaYCH','mImcc','format','358858DFirev','11IccuLp','config','ywzAW','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','YNOEv','../../helpers/test-observability/constants','168CetXDe','KnTfj','includes','./mock-process.js','Path\x20','BIIYD','apply','9324513DwcakF','requirePWModule','NSGwm','../../helpers/test-observability/utils','resolve','PLAYWRIGHT','lHBug','28khGVWv','310282fCHwyX','Running\x20existing\x20global\x20setup','../../helpers/logger','132190IShXnM','error','fork','4225380nIKATu','compareVersions','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','2PKYbEz','bFxep','Not\x20able\x20to\x20import\x20globalSetup','IyEKh','env','../../helpers/helper'];a40_0x3293=function(){return _0x38aab8;};return a40_0x3293();}const util=require('util'),child_process=require(a40_0x3d20c9(0x13d)),{FRAMEWORKS}=require(a40_0x3d20c9(0x149)),{getFrameworkVersion,debug}=require(a40_0x3d20c9(0x122)),helper=require(a40_0x3d20c9(0x135)),{getLoadUtilsPath,getForkProcessPath}=require('./reporter/pwUtils'),{mockIsWorkerRedundant}=require(a40_0x3d20c9(0x13a)),logger=require(a40_0x3d20c9(0x129))[a40_0x3d20c9(0x136)];module[a40_0x3d20c9(0x138)]=async function(_0x21952a){const _0x3afd45=a40_0x3d20c9,_0x1cdc5a={'HBBGS':function(_0x54872f,_0x39e4b6){return _0x54872f(_0x39e4b6);},'YNOEv':function(_0x1f13b0){return _0x1f13b0();},'ywzAW':_0x3afd45(0x14d),'VAZBA':function(_0x593f23){return _0x593f23();},'mImcc':function(_0x2bb680,_0x25c081){return _0x2bb680(_0x25c081);},'NSGwm':_0x3afd45(0x128),'RZRTs':function(_0x1c829f,_0x16a3f8){return _0x1c829f(_0x16a3f8);},'bFxep':function(_0x53da12,_0x5bb43a){return _0x53da12>=_0x5bb43a;},'lHBug':'1.33.0','BIIYD':function(_0x537b73,_0x15993f,_0x2bcffd){return _0x537b73(_0x15993f,_0x2bcffd);},'IyEKh':function(_0x236153,_0x1a9ae4){return _0x236153!==_0x1a9ae4;},'DIrvC':'function','KnTfj':_0x3afd45(0x132)},_0x4b632c=child_process[_0x3afd45(0x12c)];if(helper[_0x3afd45(0x13f)]())try{_0x1cdc5a['VAZBA'](mockIsWorkerRedundant);}catch(_0x122937){logger['debug'](_0x3afd45(0x137)+util[_0x3afd45(0x142)](_0x122937));}child_process[_0x3afd45(0x12c)]=function(){const _0x5963f7=_0x3afd45;return _0x1cdc5a[_0x5963f7(0x13c)](debug,_0x5963f7(0x13b)+arguments[0x0]),arguments[0x0][_0x5963f7(0x14c)](_0x1cdc5a[_0x5963f7(0x148)](getForkProcessPath))?arguments[0x0]=require[_0x5963f7(0x123)](_0x1cdc5a[_0x5963f7(0x146)]):logger[_0x5963f7(0x12b)](_0x5963f7(0x14e)+_0x1cdc5a[_0x5963f7(0x148)](getForkProcessPath)+_0x5963f7(0x139)),_0x4b632c['apply'](null,arguments);};if(process[_0x3afd45(0x134)][_0x3afd45(0x12f)]){_0x1cdc5a[_0x3afd45(0x141)](debug,_0x1cdc5a[_0x3afd45(0x121)]);try{const {loadGlobalHook:_0x26878a}=helper[_0x3afd45(0x120)][_0x3afd45(0x11e)](null,_0x1cdc5a[_0x3afd45(0x148)](getLoadUtilsPath)),_0x102980=_0x1cdc5a['RZRTs'](getFrameworkVersion,FRAMEWORKS[_0x3afd45(0x124)]);let _0x1fcb17=_0x21952a;if(_0x1cdc5a[_0x3afd45(0x131)](helper[_0x3afd45(0x12e)](_0x102980,_0x1cdc5a[_0x3afd45(0x125)]),0x0)){const _0x3e9b10={};_0x3e9b10[_0x3afd45(0x145)]=_0x21952a,_0x1fcb17=_0x3e9b10;}const _0x177240=await _0x1cdc5a[_0x3afd45(0x11d)](_0x26878a,_0x1fcb17,process['env'][_0x3afd45(0x12f)]);if(_0x1cdc5a[_0x3afd45(0x133)](typeof _0x177240,_0x1cdc5a['DIrvC']))throw new Error(_0x1cdc5a[_0x3afd45(0x14b)]);return _0x177240[_0x3afd45(0x11e)](null,arguments);}catch(_0x4d89e5){_0x1cdc5a[_0x3afd45(0x141)](debug,_0x3afd45(0x147)+_0x4d89e5['toString']());}}};