browserstack-node-sdk 1.52.0 → 1.52.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +4 -3
  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_0x5d202d=a38_0xf490;(function(_0x350c1a,_0x444c04){const _0x31ea1d=a38_0xf490,_0xbd582=_0x350c1a();while(!![]){try{const _0x560508=parseInt(_0x31ea1d(0x233))/0x1*(-parseInt(_0x31ea1d(0x245))/0x2)+-parseInt(_0x31ea1d(0x1f0))/0x3*(-parseInt(_0x31ea1d(0x1ee))/0x4)+parseInt(_0x31ea1d(0x1fa))/0x5*(parseInt(_0x31ea1d(0x23f))/0x6)+-parseInt(_0x31ea1d(0x1d1))/0x7+parseInt(_0x31ea1d(0x1e3))/0x8*(parseInt(_0x31ea1d(0x209))/0x9)+-parseInt(_0x31ea1d(0x215))/0xa+parseInt(_0x31ea1d(0x243))/0xb*(parseInt(_0x31ea1d(0x210))/0xc);if(_0x560508===_0x444c04)break;else _0xbd582['push'](_0xbd582['shift']());}catch(_0x436179){_0xbd582['push'](_0xbd582['shift']());}}}(a38_0x4af4,0xaafbb));function a38_0xf490(_0x525ca3,_0x37261f){const _0x4af488=a38_0x4af4();return a38_0xf490=function(_0xf4902e,_0x44917d){_0xf4902e=_0xf4902e-0x1d1;let _0x102017=_0x4af488[_0xf4902e];return _0x102017;},a38_0xf490(_0x525ca3,_0x37261f);}function a38_0x4af4(){const _0xaf1538=['evaluate','keys','aPzoR','133176oCeMCV','on\x20non-BrowserStack\x20infrastructure\x20','warn','setAccessibilityCapabilities','isBrowserSupportedForAccessibility','3746650Ldoppn','includePartOfPageScope','dsbha','xQXZN','browserName','parse','pmfcE','WxArm','Rxozb','No\x20summaryResults\x20found.','constructor','../../helpers/logger','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','find','../../helpers/performance/constants','isVersionSupported','PERFORM_SCAN','../../helpers/accessibility-automation/helper','includeIssueType','latest','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','../../helpers/accessibility-automation/scripts','AbxYP','testInfo','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','name','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','getAccessibilityResultsSummary','][\x20SDK-AUTOMATION\x20]\x20','BtuWN','1hkQOkK','\x20page:\x20','accessibilityOptions.scannerProcessingTimeout','WebDriver','QJuJR','(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','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','\x20or\x20higher\x20','bestPractice','(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','MiBhZ','scannerProcessingTimeout','138jxnIBm','silly','browser_version','replace','1078UxHuqv','message','1734074MhYCkq','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','WNsCC','accessibilityOptions.scannerVersion','browserstack.accessibility','\x20browser\x20version\x20','response','yAHKK','scannerVersion','lnRwh','getBrowserDisplayName','project','startsWith','request','pLnEU','vCLeS','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','utSFN','uzZMD','YPjLj','7551642blxoGn','giiSo','../../helpers/performance/performance-tester','performScan','debug','yAvtL','platformValidation','XxuFz','winstonLogger','atONv','nsXmM','WPYsw','frhtP','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','body','KIIhX','ejXRv','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','7220240SkASQN','string','gQCmM','XPnGF','wcagVersion','deviceName','CAITJ','util','url','executeScript','workerInfo','143628wGiYhv','env','51etrkjq','wsEndpoint','error','browserstack.accessibilityOptions','../utils/constants','getMinVersionForBrowser','executeAsyncScript','command','accessibilityOptions.includeIssueType.needsReview','forEach','91370jrFdNR','iCqNp','accessibilityOptions','connectOptions','Performing\x20scan\x20with\x20method:\x20','No\x20accessibility\x20results\x20were\x20found.','tZuxe','accessibilityPlatform','fgLIl','format','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','stringify','BS_A11Y_JWT','pWZGw','use','9DFEuMc','WdkPU','measureWrapper','[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20'];a38_0x4af4=function(){return _0xaf1538;};return a38_0x4af4();}const util=require(a38_0x5d202d(0x1ea)),logger=require(a38_0x5d202d(0x220))[a38_0x5d202d(0x1d9)],{automationLogger}=require(a38_0x5d202d(0x220)),{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined,isBrowserstackInfra}=require('../../helpers/helper'),scripts=require(a38_0x5d202d(0x22a)),PerformanceTester=require(a38_0x5d202d(0x1d3)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a38_0x5d202d(0x223)),accessibilityHelper=require(a38_0x5d202d(0x226)),{AUTOMATION_LOG_COMMANDS}=require(a38_0x5d202d(0x1f4));exports['browserStackEvaluate']=async(_0x883bd2,_0x165f9e,_0x41746e={})=>{const _0x217cbe=a38_0x5d202d,_0x3cf130={};_0x3cf130['pmfcE']='bstackSdkArgs',_0x3cf130['WdkPU']=function(_0x21991d,_0x2fa7d1){return _0x21991d===_0x2fa7d1;},_0x3cf130['gQCmM']=_0x217cbe(0x1e4);const _0x271783=_0x3cf130,_0x39903c=await _0x883bd2[_0x217cbe(0x20d)](_0x217cbe(0x238)+_0x165f9e[_0x217cbe(0x242)](/arguments/g,_0x271783[_0x217cbe(0x21b)])+_0x217cbe(0x1e2)+JSON['stringify'](_0x41746e)+')');try{if(_0x165f9e&&_0x271783[_0x217cbe(0x20a)](typeof _0x165f9e,_0x271783[_0x217cbe(0x1e5)])){const _0x320c4c=AUTOMATION_LOG_COMMANDS[_0x217cbe(0x222)](_0x2e1241=>_0x165f9e['includes'](_0x2e1241));if(_0x320c4c){const _0x33affd={};_0x33affd[_0x217cbe(0x1f7)]=_0x320c4c,_0x33affd['parameters']=[_0x41746e];const _0x4602ba={};_0x4602ba[_0x217cbe(0x1df)]=_0x39903c;const _0x250ca2={};_0x250ca2[_0x217cbe(0x252)]=_0x33affd,_0x250ca2[_0x217cbe(0x24b)]=_0x4602ba,automationLogger[_0x217cbe(0x240)]('['+new Date()['toISOString']()+_0x217cbe(0x231)+JSON[_0x217cbe(0x205)](_0x250ca2));}}}catch(_0x4f4fc8){logger[_0x217cbe(0x1d5)](_0x217cbe(0x20c)+_0x4f4fc8[_0x217cbe(0x244)]);}return _0x39903c;},exports['browserStackExecuteDriver']=async(_0x205267,_0x5b227d,_0x168983={})=>{const _0x1a457f=a38_0x5d202d,_0x31fc09={};_0x31fc09[_0x1a457f(0x237)]=function(_0x1fa4b7,_0x396e9f){return _0x1fa4b7===_0x396e9f;},_0x31fc09['XxuFz']=_0x1a457f(0x236),_0x31fc09['dsbha']=function(_0x461ed2,_0x5b5938){return _0x461ed2===_0x5b5938;},_0x31fc09[_0x1a457f(0x22b)]='Playwright',_0x31fc09[_0x1a457f(0x1d2)]='bstackSdkArgs';const _0x174820=_0x31fc09;if(_0x174820[_0x1a457f(0x237)](_0x205267[_0x1a457f(0x21f)][_0x1a457f(0x22e)],_0x174820[_0x1a457f(0x1d8)]))return await _0x205267[_0x1a457f(0x1f6)](_0x5b227d,_0x168983);else{if(_0x174820[_0x1a457f(0x217)](_0x205267['constructor']['name'],_0x174820[_0x1a457f(0x22b)]))return await _0x205267[_0x1a457f(0x1ec)](_0x1a457f(0x23c)+_0x5b227d[_0x1a457f(0x242)](/arguments/g,_0x174820['giiSo'])+_0x1a457f(0x1de)+JSON['stringify'](_0x168983)+')');}},exports[a38_0x5d202d(0x213)]=async _0x4410e6=>{const _0xd2b68e=a38_0x5d202d,_0x492d3c={};_0x492d3c[_0xd2b68e(0x258)]='accessibilityOptions.wcagVersion',_0x492d3c['aPzoR']=_0xd2b68e(0x235),_0x492d3c[_0xd2b68e(0x21c)]='accessibilityOptions.includeIssueType.bestPractice',_0x492d3c['tZuxe']=_0xd2b68e(0x1f8),_0x492d3c[_0xd2b68e(0x1e9)]='accessibilityOptions.authToken',_0x492d3c['yAvtL']=_0xd2b68e(0x248);const _0x50dafd=_0x492d3c;_0x4410e6[_0xd2b68e(0x1fc)]&&(_0x4410e6[_0xd2b68e(0x1fc)][_0xd2b68e(0x1e7)]&&(_0x4410e6[_0x50dafd[_0xd2b68e(0x258)]]=_0x4410e6[_0xd2b68e(0x1fc)][_0xd2b68e(0x1e7)]),_0x4410e6[_0xd2b68e(0x1fc)][_0xd2b68e(0x23e)]&&(_0x4410e6[_0x50dafd[_0xd2b68e(0x20f)]]=_0x4410e6['accessibilityOptions'][_0xd2b68e(0x23e)]),_0x4410e6['accessibilityOptions']['includeIssueType']&&(_0x4410e6[_0x50dafd[_0xd2b68e(0x21c)]]=_0x4410e6[_0xd2b68e(0x1fc)]['includeIssueType'][_0xd2b68e(0x23b)],_0x4410e6[_0x50dafd[_0xd2b68e(0x200)]]=_0x4410e6[_0xd2b68e(0x1fc)][_0xd2b68e(0x227)]['needsReview']));const _0x47bd7a=JSON[_0xd2b68e(0x21a)](process['env'][_0xd2b68e(0x229)])[_0xd2b68e(0x24d)];_0x4410e6[_0x50dafd[_0xd2b68e(0x1e9)]]=process[_0xd2b68e(0x1ef)][_0xd2b68e(0x206)],_0x4410e6[_0x50dafd[_0xd2b68e(0x1d6)]]=_0x47bd7a,delete _0x4410e6[_0xd2b68e(0x1fc)];},exports['getAccessibilityResults']=async _0x168d1e=>{const _0x1cffc5=a38_0x5d202d,_0x5477ae={};_0x5477ae[_0x1cffc5(0x23d)]=_0x1cffc5(0x1ff),_0x5477ae[_0x1cffc5(0x21d)]=_0x1cffc5(0x255);const _0x590dd3=_0x5477ae;if(global['accessibilityPlatform'])try{const details={'url':await _0x168d1e.url(),'testhub_btcer_uuid':global.__workerDetails?.currentTest?.id};logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x168d1e,scripts.performScan)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x168d1e,scripts.getResults);},{...details})();return res;}catch{return logger[_0x1cffc5(0x1f2)](_0x590dd3[_0x1cffc5(0x23d)]),[];}else return logger[_0x1cffc5(0x212)](_0x590dd3[_0x1cffc5(0x21d)]),[];},exports[a38_0x5d202d(0x1d4)]=async(_0x4f4f81,_0x4bc6e3='',_0x365a9a={})=>{const _0x1720c8=a38_0x5d202d;logger[_0x1720c8(0x1d5)](_0x1720c8(0x1fe)+_0x4bc6e3+_0x1720c8(0x234)+_0x4f4f81);const _0x3a3ba1={'url':await _0x4f4f81[_0x1720c8(0x1eb)](),'testhub_btcer_uuid':global['__workerDetails']?.['currentTest']?.['id']};if(global[_0x1720c8(0x201)])return await PerformanceTester[_0x1720c8(0x20b)](PerformanceA11yEvents[_0x1720c8(0x225)],async()=>{const _0x24bf65=_0x1720c8,_0x137763={};_0x137763[_0x24bf65(0x1f7)]=_0x4bc6e3;const _0x49e30b=_0x137763;_0x365a9a&&_0x365a9a[_0x24bf65(0x216)]&&(_0x49e30b['includePartOfPageScope']=_0x365a9a[_0x24bf65(0x216)]);const _0x4f89bf=await exports['browserStackEvaluate'](_0x4f4f81,scripts['performScan'],_0x49e30b);return _0x4f89bf;},{'command':_0x4bc6e3,..._0x3a3ba1})();},exports[a38_0x5d202d(0x230)]=async _0x99e7c8=>{const _0x2e5d63=a38_0x5d202d,_0x562ac8={};_0x562ac8[_0x2e5d63(0x202)]=_0x2e5d63(0x21e),_0x562ac8[_0x2e5d63(0x256)]=_0x2e5d63(0x22d);const _0x329a0f=_0x562ac8;if(global[_0x2e5d63(0x201)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x99e7c8,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x99e7c8,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x2e5d63(0x1d5)](_0x329a0f[_0x2e5d63(0x202)]),{};}else return logger['warn'](_0x329a0f[_0x2e5d63(0x256)]),{};},exports[a38_0x5d202d(0x1d7)]=_0x311967=>{const _0x58b714=a38_0x5d202d,_0x489542={'KIIhX':function(_0x3a37e8,_0x42cff5){return _0x3a37e8!==_0x42cff5;},'nsXmM':_0x58b714(0x246),'pWZGw':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','XPnGF':function(_0x475b3b,_0x5f4ff1){return _0x475b3b!==_0x5f4ff1;},'cTFEe':'latest','uzZMD':function(_0x1d2094){return _0x1d2094();},'vCLeS':'on\x20non-BrowserStack\x20infrastructure\x20'};try{if(!_0x489542[_0x58b714(0x1e0)](_0x311967[_0x58b714(0x1e8)],''))return logger[_0x58b714(0x212)](_0x489542[_0x58b714(0x1db)]),![];const _0x24ff01=_0x311967['browser'],_0x20df8c=_0x311967[_0x58b714(0x241)];if(!accessibilityHelper[_0x58b714(0x214)](_0x24ff01))return logger[_0x58b714(0x212)](_0x489542[_0x58b714(0x207)]),![];if(_0x489542[_0x58b714(0x1e6)](_0x20df8c,_0x489542['cTFEe'])){const _0x5c9659=_0x489542[_0x58b714(0x257)](isBrowserstackInfra),_0x5c9dd9=accessibilityHelper[_0x58b714(0x1f5)](_0x24ff01,_0x5c9659),_0x392300=accessibilityHelper[_0x58b714(0x24f)](_0x24ff01);if(!accessibilityHelper[_0x58b714(0x224)](_0x20df8c,_0x5c9dd9)){const _0x132afa=_0x5c9659?'':_0x489542[_0x58b714(0x254)];return logger[_0x58b714(0x212)]('Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20'+_0x392300+_0x58b714(0x24a)+_0x5c9dd9+_0x58b714(0x23a)+_0x132afa+'.'),![];}}}catch(_0x43f5fc){logger['debug'](_0x58b714(0x239)+util[_0x58b714(0x203)](_0x43f5fc));}return!![];},exports['processAccessibilityCaps']=(_0x2b7cf9,_0x2af436,_0xb337bb)=>{const _0x38af75=a38_0x5d202d,_0x23986d={'iCqNp':_0x38af75(0x1f3),'WNsCC':function(_0x5bd904){return _0x5bd904();},'yAHKK':_0x38af75(0x249),'BtuWN':_0x38af75(0x221),'atONv':function(_0x213ddb,_0x5354d7){return _0x213ddb!==_0x5354d7;},'pLnEU':_0x38af75(0x228),'lnRwh':function(_0x31eb9d){return _0x31eb9d();},'xQXZN':_0x38af75(0x211),'frhtP':function(_0xe35c75,_0x4eba31){return _0xe35c75(_0x4eba31);},'WPYsw':_0x38af75(0x246),'ejXRv':function(_0x59ee41,_0x19199a){return _0x59ee41+_0x19199a;}};try{if(_0x23986d[_0x38af75(0x247)](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x2b7cf9[_0x23986d[_0x38af75(0x24c)]]&&(global[_0x38af75(0x201)]=![]);const _0x18a54f=_0x2b7cf9[_0x38af75(0x219)]||_0x2b7cf9['browser'],_0x5654ca=_0x2b7cf9[_0x38af75(0x241)];!accessibilityHelper[_0x38af75(0x214)](_0x18a54f)&&(logger[_0x38af75(0x212)](_0x23986d[_0x38af75(0x232)]),global[_0x38af75(0x201)]=![]);if(_0x23986d[_0x38af75(0x1da)](_0x5654ca,_0x23986d[_0x38af75(0x253)])){const _0x437d7c=_0x23986d[_0x38af75(0x24e)](isBrowserstackInfra),_0x5e831d=accessibilityHelper['getMinVersionForBrowser'](_0x18a54f,_0x437d7c),_0x48ebec=accessibilityHelper['getBrowserDisplayName'](_0x18a54f);if(!accessibilityHelper['isVersionSupported'](_0x5654ca,_0x5e831d)){const _0x508711=_0x437d7c?'':_0x23986d[_0x38af75(0x218)];logger[_0x38af75(0x212)](_0x38af75(0x204)+_0x48ebec+_0x38af75(0x24a)+_0x5e831d+'\x20or\x20higher\x20'+_0x508711+'.'),global[_0x38af75(0x201)]=![];}}!_0x23986d[_0x38af75(0x1dd)](isUndefined,_0x2b7cf9[_0x38af75(0x1e8)])&&(logger[_0x38af75(0x212)](_0x23986d[_0x38af75(0x1dc)]),global['accessibilityPlatform']=![]);if(!global[_0x38af75(0x201)]){_0x2b7cf9[_0x23986d[_0x38af75(0x24c)]]=![],Object[_0x38af75(0x20e)](_0x2b7cf9)[_0x38af75(0x1f9)](_0x29a7df=>{const _0x185ac3=_0x38af75;_0x29a7df[_0x185ac3(0x251)](_0x23986d[_0x185ac3(0x1fb)])&&delete _0x2b7cf9[_0x29a7df];});const _0x292421=_0x23986d[_0x38af75(0x1e1)](_0x2af436,_0x23986d[_0x38af75(0x1dd)](encodeURIComponent,JSON[_0x38af75(0x205)](_0x2b7cf9)));_0xb337bb&&(_0xb337bb['currentTest'][_0x38af75(0x22c)]['project']['use'][_0x38af75(0x1fd)][_0x38af75(0x1f1)]=_0x292421,_0xb337bb[_0x38af75(0x1ed)][_0x38af75(0x250)][_0x38af75(0x208)][_0x38af75(0x1fd)][_0x38af75(0x1f1)]=_0x292421);}}else global[_0x38af75(0x201)]=![];}catch(_0x29229d){logger['debug'](_0x38af75(0x22f)+util[_0x38af75(0x203)](_0x29229d));}};
1
+ const a38_0x2479da=a38_0x3502;function a38_0x3502(_0x196420,_0x5f00fe){const _0x2fc3fe=a38_0x2fc3();return a38_0x3502=function(_0x35020f,_0x12f1e3){_0x35020f=_0x35020f-0x89;let _0x2536c4=_0x2fc3fe[_0x35020f];return _0x2536c4;},a38_0x3502(_0x196420,_0x5f00fe);}(function(_0x5d9d73,_0x13d500){const _0x426d8e=a38_0x3502,_0x5e7f68=_0x5d9d73();while(!![]){try{const _0x335941=-parseInt(_0x426d8e(0xbd))/0x1*(-parseInt(_0x426d8e(0x102))/0x2)+parseInt(_0x426d8e(0xb2))/0x3*(parseInt(_0x426d8e(0xaa))/0x4)+parseInt(_0x426d8e(0xfb))/0x5+parseInt(_0x426d8e(0x8f))/0x6*(-parseInt(_0x426d8e(0xcf))/0x7)+-parseInt(_0x426d8e(0xa8))/0x8*(parseInt(_0x426d8e(0xdd))/0x9)+-parseInt(_0x426d8e(0x101))/0xa+-parseInt(_0x426d8e(0xc9))/0xb*(-parseInt(_0x426d8e(0xdc))/0xc);if(_0x335941===_0x13d500)break;else _0x5e7f68['push'](_0x5e7f68['shift']());}catch(_0x5df17b){_0x5e7f68['push'](_0x5e7f68['shift']());}}}(a38_0x2fc3,0x57902));const util=require(a38_0x2479da(0xb3)),logger=require(a38_0x2479da(0xe5))[a38_0x2479da(0x100)],{automationLogger}=require(a38_0x2479da(0xe5)),{isAccessibilityAutomationSession}=require(a38_0x2479da(0xaf)),{isUndefined,isBrowserstackInfra}=require(a38_0x2479da(0xa5)),scripts=require(a38_0x2479da(0xba)),PerformanceTester=require(a38_0x2479da(0xd4)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a38_0x2479da(0xd8)),accessibilityHelper=require(a38_0x2479da(0xaf)),{AUTOMATION_LOG_COMMANDS}=require(a38_0x2479da(0xd9));function a38_0x2fc3(){const _0x227645=['bDhVH','VzRXH','TtTGv','accessibilityPlatform','\x20browser\x20version\x20','SloPG','IdYuk','BDQNM','processAccessibilityCaps','on\x20non-BrowserStack\x20infrastructure\x20','isBrowserSupportedForAccessibility','isVersionSupported','../../helpers/helper','][\x20SDK-AUTOMATION\x20]\x20','testInfo','8wgwszy','Pmqrj','382444CtdQJY','bzCgw','connectOptions','alwXg','mEOjv','../../helpers/accessibility-automation/helper','AUPRc','(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','12tpoMQK','util','performScan','includeIssueType','CyUSC','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','getAccessibilityResults','accessibilityOptions.includeIssueType.needsReview','../../helpers/accessibility-automation/scripts','body','xyoZj','19qvAXWI','debug','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','deviceName','\x20page:\x20','cThpb','accessibilityOptions','getMinVersionForBrowser','workerInfo','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','\x20or\x20higher\x20','[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20','276067lLtORv','command','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','needsReview','__workerDetails','(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','2120545gwYKJT','getBrowserDisplayName','Dnlqt','url','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','../../helpers/performance/performance-tester','stringify','sNyzV','JsLnl','../../helpers/performance/constants','../utils/constants','project','env','444usAkZU','3154698bEnAhq','bestPractice','parameters','response','browser','ZWawI','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','parse','../../helpers/logger','xGEXo','OlqvW','getAccessibilityResultsSummary','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','browserstack.accessibility','wcagVersion','executeAsyncScript','accessibilityOptions.includeIssueType.bestPractice','replace','browser_version','Ijabh','njVYn','executeScript','bstackSdkArgs','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','wsEndpoint','includePartOfPageScope','currentTest','latest','keys','silly','2207190wNmYzh','warn','accessibilityOptions.wcagVersion','browserstack.accessibilityOptions','yVtqX','winstonLogger','6787780RYOGzG','25406KRpSWK','name','browserName','mfxvA','constructor','format','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','WRiWQ','evaluate','12lyEkgZ','accessibilityOptions.authToken','startsWith','HRYDr','Npgrj','ETXeM','setAccessibilityCapabilities','pDMVm','Performing\x20scan\x20with\x20method:\x20','error'];a38_0x2fc3=function(){return _0x227645;};return a38_0x2fc3();}exports['browserStackEvaluate']=async(_0xc4f0e4,_0x2c3ebc,_0x3e4a85={})=>{const _0x4a2d4c=a38_0x2479da,_0x1f1155={};_0x1f1155[_0x4a2d4c(0xf0)]='bstackSdkArgs',_0x1f1155[_0x4a2d4c(0x8d)]=function(_0x12a7e5,_0x1c8a03){return _0x12a7e5===_0x1c8a03;},_0x1f1155[_0x4a2d4c(0xd1)]='string';const _0x22383f=_0x1f1155,_0x540470=await _0xc4f0e4[_0x4a2d4c(0x8e)](_0x4a2d4c(0xb1)+_0x2c3ebc[_0x4a2d4c(0xee)](/arguments/g,_0x22383f['Ijabh'])+_0x4a2d4c(0xd3)+JSON[_0x4a2d4c(0xd5)](_0x3e4a85)+')');try{if(_0x2c3ebc&&_0x22383f[_0x4a2d4c(0x8d)](typeof _0x2c3ebc,_0x22383f[_0x4a2d4c(0xd1)])){const _0x291391=AUTOMATION_LOG_COMMANDS['find'](_0x1950f4=>_0x2c3ebc['includes'](_0x1950f4));if(_0x291391){const _0x9f0b94={};_0x9f0b94[_0x4a2d4c(0xca)]=_0x291391,_0x9f0b94[_0x4a2d4c(0xdf)]=[_0x3e4a85];const _0xa4d232={};_0xa4d232[_0x4a2d4c(0xbb)]=_0x540470;const _0x4c5bec={};_0x4c5bec['request']=_0x9f0b94,_0x4c5bec[_0x4a2d4c(0xe0)]=_0xa4d232,automationLogger[_0x4a2d4c(0xfa)]('['+new Date()['toISOString']()+_0x4a2d4c(0xa6)+JSON['stringify'](_0x4c5bec));}}}catch(_0x57ffcc){logger[_0x4a2d4c(0xbe)](_0x4a2d4c(0xc8)+_0x57ffcc['message']);}return _0x540470;},exports['browserStackExecuteDriver']=async(_0x594aa9,_0x140290,_0x3c508b={})=>{const _0x3a953b=a38_0x2479da,_0x189f52={};_0x189f52[_0x3a953b(0xb0)]=function(_0x36ced3,_0x3e5fad){return _0x36ced3===_0x3e5fad;},_0x189f52[_0x3a953b(0xe6)]='WebDriver',_0x189f52[_0x3a953b(0x89)]=function(_0x18b7d5,_0x1e4cd4){return _0x18b7d5===_0x1e4cd4;},_0x189f52[_0x3a953b(0x96)]='Playwright',_0x189f52[_0x3a953b(0xa0)]=_0x3a953b(0xf3);const _0x35c3a7=_0x189f52;if(_0x35c3a7['AUPRc'](_0x594aa9[_0x3a953b(0x8a)][_0x3a953b(0x103)],_0x35c3a7['xGEXo']))return await _0x594aa9[_0x3a953b(0xec)](_0x140290,_0x3c508b);else{if(_0x35c3a7[_0x3a953b(0x89)](_0x594aa9['constructor'][_0x3a953b(0x103)],_0x35c3a7[_0x3a953b(0x96)]))return await _0x594aa9[_0x3a953b(0xf2)](_0x3a953b(0xce)+_0x140290['replace'](/arguments/g,_0x35c3a7['BDQNM'])+_0x3a953b(0x8c)+JSON[_0x3a953b(0xd5)](_0x3c508b)+')');}},exports[a38_0x2479da(0x95)]=async _0x24a988=>{const _0x3644ec=a38_0x2479da,_0x4cb4d0={};_0x4cb4d0['hxzGs']=_0x3644ec(0xfd),_0x4cb4d0[_0x3644ec(0xbc)]='accessibilityOptions.scannerProcessingTimeout',_0x4cb4d0['ETXeM']=_0x3644ec(0xed),_0x4cb4d0[_0x3644ec(0xc2)]=_0x3644ec(0xb9),_0x4cb4d0[_0x3644ec(0xff)]=_0x3644ec(0x90),_0x4cb4d0[_0x3644ec(0xe2)]='accessibilityOptions.scannerVersion';const _0x4771b6=_0x4cb4d0;_0x24a988[_0x3644ec(0xc3)]&&(_0x24a988['accessibilityOptions'][_0x3644ec(0xeb)]&&(_0x24a988[_0x4771b6['hxzGs']]=_0x24a988[_0x3644ec(0xc3)][_0x3644ec(0xeb)]),_0x24a988[_0x3644ec(0xc3)]['scannerProcessingTimeout']&&(_0x24a988[_0x4771b6[_0x3644ec(0xbc)]]=_0x24a988['accessibilityOptions']['scannerProcessingTimeout']),_0x24a988[_0x3644ec(0xc3)]['includeIssueType']&&(_0x24a988[_0x4771b6[_0x3644ec(0x94)]]=_0x24a988[_0x3644ec(0xc3)][_0x3644ec(0xb5)][_0x3644ec(0xde)],_0x24a988[_0x4771b6[_0x3644ec(0xc2)]]=_0x24a988['accessibilityOptions'][_0x3644ec(0xb5)][_0x3644ec(0xcc)]));const _0x59cd96=JSON[_0x3644ec(0xe4)](process[_0x3644ec(0xdb)][_0x3644ec(0xbf)])['scannerVersion'];_0x24a988[_0x4771b6['yVtqX']]=process[_0x3644ec(0xdb)]['BS_A11Y_JWT'],_0x24a988[_0x4771b6[_0x3644ec(0xe2)]]=_0x59cd96,delete _0x24a988['accessibilityOptions'];},exports[a38_0x2479da(0xb8)]=async _0x5bf209=>{const _0x37462a=a38_0x2479da,_0x38adf6={};_0x38adf6[_0x37462a(0xad)]='No\x20accessibility\x20results\x20were\x20found.',_0x38adf6['njVYn']=_0x37462a(0xcb);const _0x33764e=_0x38adf6;if(global[_0x37462a(0x9c)])try{const details={'url':await _0x5bf209.url(),'testhub_btcer_uuid':global.__workerDetails?.currentTest?.id};logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x5bf209,scripts.performScan)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x5bf209,scripts.getResults);},{...details})();return res;}catch{return logger[_0x37462a(0x98)](_0x33764e['alwXg']),[];}else return logger[_0x37462a(0xfc)](_0x33764e[_0x37462a(0xf1)]),[];},exports[a38_0x2479da(0xb4)]=async(_0x114e7e,_0x375dd1='',_0x493aeb={})=>{const _0x2bba3b=a38_0x2479da;logger[_0x2bba3b(0xbe)](_0x2bba3b(0x97)+_0x375dd1+_0x2bba3b(0xc1)+_0x114e7e);const _0x352682={'url':await _0x114e7e[_0x2bba3b(0xd2)](),'testhub_btcer_uuid':global[_0x2bba3b(0xcd)]?.['currentTest']?.['id']};if(global['accessibilityPlatform'])return await PerformanceTester['measureWrapper'](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x228a7c=_0x2bba3b,_0x3da23f={};_0x3da23f['command']=_0x375dd1;const _0x4b05a9=_0x3da23f;_0x493aeb&&_0x493aeb[_0x228a7c(0xf6)]&&(_0x4b05a9[_0x228a7c(0xf6)]=_0x493aeb[_0x228a7c(0xf6)]);const _0x546b1c=await exports['browserStackEvaluate'](_0x114e7e,scripts[_0x228a7c(0xb4)],_0x4b05a9);return _0x546b1c;},{'command':_0x375dd1,..._0x352682})();},exports[a38_0x2479da(0xe8)]=async _0x6cc828=>{const _0x51ce0b=a38_0x2479da,_0x2b1741={};_0x2b1741[_0x51ce0b(0x9b)]='No\x20summaryResults\x20found.',_0x2b1741['OlqvW']=_0x51ce0b(0xf4);const _0x39d6fb=_0x2b1741;if(global['accessibilityPlatform'])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x6cc828,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x6cc828,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x51ce0b(0xbe)](_0x39d6fb[_0x51ce0b(0x9b)]),{};}else return logger['warn'](_0x39d6fb[_0x51ce0b(0xe7)]),{};},exports['platformValidation']=_0x23d2ef=>{const _0x2dae82=a38_0x2479da,_0x344d5b={'CyUSC':function(_0x579f8b,_0x41bfca){return _0x579f8b!==_0x41bfca;},'VzRXH':_0x2dae82(0xb7),'JsLnl':_0x2dae82(0xc6),'bDhVH':function(_0x2713f1,_0x157010){return _0x2713f1!==_0x157010;},'sNyzV':_0x2dae82(0xf8),'glfRa':function(_0x4fd851){return _0x4fd851();},'IdYuk':_0x2dae82(0xa2)};try{if(!_0x344d5b[_0x2dae82(0xb6)](_0x23d2ef[_0x2dae82(0xc0)],''))return logger[_0x2dae82(0xfc)](_0x344d5b[_0x2dae82(0x9a)]),![];const _0x22607a=_0x23d2ef[_0x2dae82(0xe1)],_0x57d9aa=_0x23d2ef['browser_version'];if(!accessibilityHelper[_0x2dae82(0xa3)](_0x22607a))return logger[_0x2dae82(0xfc)](_0x344d5b[_0x2dae82(0xd7)]),![];if(_0x344d5b[_0x2dae82(0x99)](_0x57d9aa,_0x344d5b[_0x2dae82(0xd6)])){const _0x29a31a=_0x344d5b['glfRa'](isBrowserstackInfra),_0x355bac=accessibilityHelper[_0x2dae82(0xc4)](_0x22607a,_0x29a31a),_0x14fb6a=accessibilityHelper[_0x2dae82(0xd0)](_0x22607a);if(!accessibilityHelper[_0x2dae82(0xa4)](_0x57d9aa,_0x355bac)){const _0xd72df1=_0x29a31a?'':_0x344d5b[_0x2dae82(0x9f)];return logger[_0x2dae82(0xfc)](_0x2dae82(0xe3)+_0x14fb6a+_0x2dae82(0x9d)+_0x355bac+_0x2dae82(0xc7)+_0xd72df1+'.'),![];}}}catch(_0x201cb6){logger[_0x2dae82(0xbe)](_0x2dae82(0xe9)+util[_0x2dae82(0x8b)](_0x201cb6));}return!![];},exports[a38_0x2479da(0xa1)]=(_0x29a5dd,_0x5705c5,_0x2f6261)=>{const _0x1a9c19=a38_0x2479da,_0x27465c={'ypYZC':_0x1a9c19(0xfe),'bzCgw':function(_0x3ac9b8){return _0x3ac9b8();},'Pmqrj':_0x1a9c19(0xea),'moAJz':_0x1a9c19(0xc6),'CgSVo':function(_0x22d40e,_0x382363){return _0x22d40e!==_0x382363;},'mEOjv':_0x1a9c19(0xf8),'kyQPF':_0x1a9c19(0xa2),'mypZO':function(_0x24ec0f,_0x1323e2){return _0x24ec0f(_0x1323e2);},'SloPG':_0x1a9c19(0xb7),'HRYDr':function(_0x309fdd,_0x48a9d2){return _0x309fdd+_0x48a9d2;},'Npgrj':function(_0x38a775,_0xbed2e1){return _0x38a775(_0xbed2e1);}};try{if(_0x27465c['bzCgw'](isAccessibilityAutomationSession)){global[_0x1a9c19(0x9c)]=!![];!_0x29a5dd[_0x27465c[_0x1a9c19(0xa9)]]&&(global[_0x1a9c19(0x9c)]=![]);const _0xc23508=_0x29a5dd[_0x1a9c19(0x104)]||_0x29a5dd[_0x1a9c19(0xe1)],_0x314080=_0x29a5dd[_0x1a9c19(0xef)];!accessibilityHelper[_0x1a9c19(0xa3)](_0xc23508)&&(logger[_0x1a9c19(0xfc)](_0x27465c['moAJz']),global['accessibilityPlatform']=![]);if(_0x27465c['CgSVo'](_0x314080,_0x27465c[_0x1a9c19(0xae)])){const _0x3d8456=_0x27465c[_0x1a9c19(0xab)](isBrowserstackInfra),_0x141d03=accessibilityHelper[_0x1a9c19(0xc4)](_0xc23508,_0x3d8456),_0x3336cc=accessibilityHelper[_0x1a9c19(0xd0)](_0xc23508);if(!accessibilityHelper['isVersionSupported'](_0x314080,_0x141d03)){const _0x157b5f=_0x3d8456?'':_0x27465c['kyQPF'];logger['warn']('Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20'+_0x3336cc+'\x20browser\x20version\x20'+_0x141d03+_0x1a9c19(0xc7)+_0x157b5f+'.'),global[_0x1a9c19(0x9c)]=![];}}!_0x27465c['mypZO'](isUndefined,_0x29a5dd[_0x1a9c19(0xc0)])&&(logger[_0x1a9c19(0xfc)](_0x27465c[_0x1a9c19(0x9e)]),global['accessibilityPlatform']=![]);if(!global['accessibilityPlatform']){_0x29a5dd[_0x27465c['Pmqrj']]=![],Object[_0x1a9c19(0xf9)](_0x29a5dd)['forEach'](_0x4ed1ee=>{const _0x2ee287=_0x1a9c19;_0x4ed1ee[_0x2ee287(0x91)](_0x27465c['ypYZC'])&&delete _0x29a5dd[_0x4ed1ee];});const _0xc4f034=_0x27465c[_0x1a9c19(0x92)](_0x5705c5,_0x27465c[_0x1a9c19(0x93)](encodeURIComponent,JSON[_0x1a9c19(0xd5)](_0x29a5dd)));_0x2f6261&&(_0x2f6261[_0x1a9c19(0xf7)][_0x1a9c19(0xa7)][_0x1a9c19(0xda)]['use'][_0x1a9c19(0xac)][_0x1a9c19(0xf5)]=_0xc4f034,_0x2f6261[_0x1a9c19(0xc5)][_0x1a9c19(0xda)]['use'][_0x1a9c19(0xac)][_0x1a9c19(0xf5)]=_0xc4f034);}}else global[_0x1a9c19(0x9c)]=![];}catch(_0x1b15fc){logger[_0x1a9c19(0xbe)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util['format'](_0x1b15fc));}};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';function a39_0x44f1(_0xd1c05,_0x24f79e){const _0x51b8ca=a39_0x51b8();return a39_0x44f1=function(_0x44f1ba,_0x3ed41d){_0x44f1ba=_0x44f1ba-0x1ed;let _0x17b55d=_0x51b8ca[_0x44f1ba];return _0x17b55d;},a39_0x44f1(_0xd1c05,_0x24f79e);}const a39_0xe6a64e=a39_0x44f1;function a39_0x51b8(){const _0x1a6a5c=['SMORo','SDK_CLEANUP','RKJxn','nYekG','XVwos','Error\x20in\x20closing\x20playwright','start','vyzIT','isFalse','USER_CONFIG_DETAILS_PATH','AEqbi','apply','--disable-browserstack-automation','automation','--grep','env','--disable-test-observability','win32','length','nestedKeyValue','npx','serializeToYamlString','hmqMA','pw_result.json','XjDRD','stop','BROWSERSTACK_PW_CONFIG_DIR','INTERNALLY_USED_ENV_VARS','isRunning','../v2/cliUtils','7977673XTjesi','\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','xEKOp','7610790FuZqPW','../../helpers/BrowserStackSetup','yarn','initialize','Hyjjx','end','12zIyNim','../../helpers/helper','1365832yoGuvD','ixkgi','push','TpKIw','NZvDG','homedir','yELNq','skipSessionStatus','trace_','unlinkSync','wVGqh','parse','launchBuild','W_OK','vjjsP','BROWSERSTACK_SETUP_CONFIG_PATH','RpBqM','has','MODULE','wLaWw','isUndefined','3736TPePsp','IBesx','bootstrap','playwright-browserstack-sdk.config.js','BrowserStack\x20config\x20file\x20not\x20found.','5AdkLoG','false','isCLIEnabled','true','\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();','info','getConfig','iKTJq','XarRE','69633eNqbYh','cwd','testObservability','PACKAGE_TYPE','.browserstack','../../helpers/performance/performance-tester','concat','VyaNr','reportConflictingEnvVarIssue','logLevel','platform','9275fbSUTN','BROWSERSTACK_RERUN','shutdown','WMUnD','hRsvK','slice','cPjrN','./reporter/pwUtils','exitCode','axqSv','ZrRJf','EVENTS','winstonLogger','isYarnPnP','cliConfig','eSvuO','VcArb','getProxyUrl','Updated\x20config\x20file\x20name\x20to\x20-\x20','--config','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','--config=','getInstance','PqxzH','141XYKIZM','PLAYWRIGHT','split','LKFjU','QFtQX','isTypescriptProject','playwright-browserstack-sdk.config.cjs','BROWSERSTACK_TEST_OBSERVABILITY','Error\x20in\x20getting\x20funnel\x20data\x20results','HSVsv','join','accessSync','XATwD','debug','reportFinalDetectionState','filter','path','resolvedConfigFile','../../helpers/accessibility-automation/helper','TbLzV','1583868RxSVpn','playwright','browserstackAutomation','getConfigPath','accessibilityOptions','forEach','configPath','OlRIO','FvzZk','nWric','eetQr','constants','get','clearTempPWConfig','splice','readFileSync','BROWSERSTACK_TEST_ACCESSIBILITY_YML','../../helpers/test-observability/utils','measureWrapper','GKhbS','close','writeFileSync','test','inherit','validateRerunTestList','indexOf','370skAwVQ','startsWith','existsSync','readdirSync','../../helpers/testhub/testhubHandler','browserstackSetupConfig.json','oLTts','EQeMc','Deleting\x20','qZvrp','OwGyK','resolve','108668OepfeC','GyeMl','finalExecution','setBrowserstackConfig','Error\x20in\x20deleting\x20playwright\x20results','isTrue','child_process','setFrameworkDetail','PttFK','testContextOptions','errorMessage','BROWSERSTACK_AUTOMATION','R_OK','config','bxMYm','wjfPh','dirname','accessibility','iyNFD','error','../utils/constants','ZCwhq','requireConfigLoaderYarnPnP'];a39_0x51b8=function(){return _0x1a6a5c;};return a39_0x51b8();}(function(_0x5d7c2f,_0x7b8325){const _0x15cc05=a39_0x44f1,_0x40d9ae=_0x5d7c2f();while(!![]){try{const _0xa16aa4=parseInt(_0x15cc05(0x279))/0x1+-parseInt(_0x15cc05(0x213))/0x2+parseInt(_0x15cc05(0x1ff))/0x3*(parseInt(_0x15cc05(0x239))/0x4)+parseInt(_0x15cc05(0x293))/0x5*(-parseInt(_0x15cc05(0x271))/0x6)+-parseInt(_0x15cc05(0x2a7))/0x7*(-parseInt(_0x15cc05(0x28e))/0x8)+parseInt(_0x15cc05(0x29c))/0x9*(parseInt(_0x15cc05(0x22d))/0xa)+parseInt(_0x15cc05(0x26e))/0xb*(-parseInt(_0x15cc05(0x277))/0xc);if(_0xa16aa4===_0x7b8325)break;else _0x40d9ae['push'](_0x40d9ae['shift']());}catch(_0x17b2bb){_0x40d9ae['push'](_0x40d9ae['shift']());}}}(a39_0x51b8,0xba0e3));const fs=require('fs'),path=require(a39_0xe6a64e(0x20f)),{spawn}=require(a39_0xe6a64e(0x23f)),{format}=require('util'),logger=require('../../helpers/logger')[a39_0xe6a64e(0x1f2)],{default:BrowserStackSetup}=require(a39_0xe6a64e(0x272)),helper=require(a39_0xe6a64e(0x278)),utilities=require('../../helpers/utilities'),constants=require(a39_0xe6a64e(0x24d)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getConfigLoaderPath}=require(a39_0xe6a64e(0x1ed)),{checkAccessibilityPlatformConfig}=require(a39_0xe6a64e(0x211)),{setAccessibilityCapabilities}=require('./accessibility-helper'),{printBuildLink}=require(a39_0xe6a64e(0x224)),TestDetails=require('./reporter/test-details'),TestHubHandler=require(a39_0xe6a64e(0x231)),PerformanceTester=require(a39_0xe6a64e(0x2a1)),BrowserstackCLI=require('../v2/browserstackCLI'),PerformanceEvents=require('../../helpers/performance/constants')[a39_0xe6a64e(0x1f1)],CLIUtils=require(a39_0xe6a64e(0x26d)),TestInfo=require('../v2/TestInfo'),ClientTroubleShootingService=require('../utils/clientTroubleshootingService'),getUserPlaywrightConfig=async(_0x475616,_0x2f4d7d)=>{const _0x554290=a39_0xe6a64e,_0x9394c5={'RpBqM':function(_0x30cdbc){return _0x30cdbc();},'ZrRJf':function(_0x4eae4b){return _0x4eae4b();},'bxMYm':function(_0x5e5de2,_0x3e3921){return _0x5e5de2(_0x3e3921);},'qZvrp':_0x554290(0x210),'wVGqh':_0x554290(0x1fc)},_0x3ae509=!helper[_0x554290(0x28d)](_0x475616[_0x554290(0x246)]),_0x8afa38=_0x3ae509?path[_0x554290(0x238)](process[_0x554290(0x29d)](),_0x475616[_0x554290(0x246)]):process[_0x554290(0x29d)](),{resolveConfigFile:_0x41f9a6,resolveConfigLocation:_0xb2127e}=helper[_0x554290(0x1f3)]()?helper[_0x554290(0x24f)](..._0x9394c5[_0x554290(0x289)](getConfigLoaderPath)):helper['requirePWModule'][_0x554290(0x25b)](null,_0x9394c5[_0x554290(0x1f0)](getConfigLoaderPath)),_0x23e662=_0x41f9a6?_0x9394c5[_0x554290(0x247)](_0x41f9a6,_0x8afa38):helper[_0x554290(0x263)](_0x9394c5['bxMYm'](_0xb2127e,_0x8afa38),[_0x9394c5[_0x554290(0x236)]]),_0x21e3b3={};if(_0x3ae509){const _0x34ea5b=_0x2f4d7d['findIndex'](_0x5ee8ba=>_0x5ee8ba===_0x554290(0x1f9)||_0x5ee8ba==='-c'||_0x5ee8ba[_0x554290(0x22e)](_0x554290(0x1fc)));_0x2f4d7d[_0x554290(0x221)](_0x34ea5b,_0x2f4d7d[_0x34ea5b][_0x554290(0x22e)](_0x9394c5[_0x554290(0x283)])?0x1:0x2);}const _0x39cf6a={};return _0x39cf6a[_0x554290(0x20f)]=_0x23e662,_0x39cf6a['config']=_0x21e3b3,_0x39cf6a;},handleO11yRerun=_0x19aa4a=>{const _0x29d666=a39_0xe6a64e,_0x85fc9f={};_0x85fc9f['wjfPh']=_0x29d666(0x25e);const _0x514118=_0x85fc9f,_0x1d96de=helper[_0x29d666(0x23e)](process[_0x29d666(0x25f)][_0x29d666(0x2a8)]);if(_0x1d96de){const _0x2e628c=process[_0x29d666(0x25f)]['BROWSERSTACK_RERUN_TESTS'],_0x37a22f=[];if(helper[_0x29d666(0x22b)](_0x2e628c)&&!helper[_0x29d666(0x28d)](_0x2e628c)){_0x2e628c['split'](',')['map'](_0x2a9cb2=>{const _0x1dd602=_0x29d666;_0x37a22f[_0x1dd602(0x27b)]('('+_0x2a9cb2['trim']()+')');});const _0x5a6717='^'+_0x37a22f['join']('|')+'$';_0x19aa4a[_0x29d666(0x27b)](_0x514118[_0x29d666(0x248)],_0x5a6717);}}},spawnOriginalProcess=_0x493142=>{const _0xe41444=a39_0xe6a64e,_0x32f54c={'AEqbi':function(_0xcd8722,_0x284d97,_0x20e997,_0x37eb30){return _0xcd8722(_0x284d97,_0x20e997,_0x37eb30);},'OlRIO':_0xe41444(0x273),'IBesx':_0xe41444(0x264),'OwGyK':_0xe41444(0x214),'HSVsv':function(_0x4e6b6b,_0x2336aa){return _0x4e6b6b===_0x2336aa;},'LKFjU':'win32','iyNFD':_0xe41444(0x22a)};_0x32f54c[_0xe41444(0x25a)](spawn,helper[_0xe41444(0x1f3)]()?_0x32f54c[_0xe41444(0x21a)]:_0x32f54c[_0xe41444(0x28f)],[_0x32f54c[_0xe41444(0x237)],..._0x493142[_0xe41444(0x2ac)](0x1)],{'shell':_0x32f54c[_0xe41444(0x208)](process[_0xe41444(0x2a6)],_0x32f54c[_0xe41444(0x202)]),'stdio':_0x32f54c[_0xe41444(0x24b)],'cwd':process[_0xe41444(0x29d)]()});},isTestCommand=(_0x2ffc6c,_0x3e49ed)=>{const _0x1e6045=a39_0xe6a64e,_0x377872={};_0x377872[_0x1e6045(0x2aa)]=function(_0x36910b,_0x1b21cd){return _0x36910b>_0x1b21cd;},_0x377872[_0x1e6045(0x2a3)]=function(_0x41a744,_0x5b46c4){return _0x41a744===_0x5b46c4;},_0x377872[_0x1e6045(0x1ef)]=_0x1e6045(0x229);const _0x4650b7=_0x377872;if(_0x4650b7[_0x1e6045(0x2aa)](_0x3e49ed[_0x1e6045(0x262)],0x1)&&_0x4650b7[_0x1e6045(0x2a3)](_0x3e49ed[0x1],_0x4650b7[_0x1e6045(0x1ef)]))return!![];return![];};async function run(_0x5b8e27,_0x294ae2,_0x32d8e7){const _0x9fb95f=a39_0xe6a64e,_0x135c52={'XjDRD':_0x9fb95f(0x2a0),'hRsvK':_0x9fb95f(0x267),'QFtQX':function(_0x1a4852,_0x5b1d37){return _0x1a4852+_0x5b1d37;},'xEKOp':_0x9fb95f(0x207),'PqxzH':function(_0x24b44f){return _0x24b44f();},'UmIyg':_0x9fb95f(0x255),'ZCwhq':function(_0x402eb7,_0x1abbc8){return _0x402eb7(_0x1abbc8);},'GyeMl':_0x9fb95f(0x292),'XVwos':function(_0x38dd0d,_0x30de29){return _0x38dd0d<_0x30de29;},'XATwD':function(_0x3acb0b,_0x3a6727){return _0x3acb0b===_0x3a6727;},'eSvuO':_0x9fb95f(0x294),'oLTts':_0x9fb95f(0x260),'vyzIT':function(_0x39c754,_0x4e690b){return _0x39c754>=_0x4e690b;},'SMORo':_0x9fb95f(0x25d),'Hyjjx':function(_0x5d0dfc,_0x434f69){return _0x5d0dfc!=_0x434f69;},'DPWsy':function(_0x321dc5,_0x50c737,_0x4460ff){return _0x321dc5(_0x50c737,_0x4460ff);},'nYekG':_0x9fb95f(0x296),'TbLzV':_0x9fb95f(0x232),'PttFK':function(_0xf85e4,_0xfc6109){return _0xf85e4===_0xfc6109;},'ixkgi':_0x9fb95f(0x205),'hmqMA':_0x9fb95f(0x291),'FGGEl':function(_0x1edd29,_0x27ffc2){return _0x1edd29-_0x27ffc2;},'wLaWw':_0x9fb95f(0x1f8),'FvzZk':function(_0x1425d9,_0xf8b9a4){return _0x1425d9>_0xf8b9a4;},'iKTJq':function(_0x36c769,_0x319298){return _0x36c769+_0x319298;},'YDQmu':function(_0x3738ba,_0x1b21ef,_0xaaf241,_0x146ec1){return _0x3738ba(_0x1b21ef,_0xaaf241,_0x146ec1);},'NHFkC':_0x9fb95f(0x273),'vjjsP':_0x9fb95f(0x264),'TpKIw':_0x9fb95f(0x214),'BmMwJ':_0x9fb95f(0x229),'NZvDG':'--config','EQeMc':_0x9fb95f(0x261),'qJsbO':_0x9fb95f(0x22a),'RKJxn':_0x9fb95f(0x227),'GKhbS':function(_0x2a58a6,_0x29b244){return _0x2a58a6|_0x29b244;},'XarRE':'Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','eetQr':function(_0x518248,_0x5d6e22){return _0x518248+_0x5d6e22;},'nWric':_0x9fb95f(0x23d),'yELNq':function(_0x4a0758,_0x498cac,_0x392324){return _0x4a0758(_0x498cac,_0x392324);}};try{const _0x363bf2=path[_0x9fb95f(0x209)](helper[_0x9fb95f(0x27e)](),_0x135c52[_0x9fb95f(0x268)]);try{fs[_0x9fb95f(0x20a)](_0x363bf2,_0x135c52[_0x9fb95f(0x226)](fs[_0x9fb95f(0x21e)][_0x9fb95f(0x245)],fs['constants'][_0x9fb95f(0x286)]));}catch(_0xfba35c){ClientTroubleShootingService['reportDotBrowserStackFolderNotAccessibleIssue']();}}catch(_0x40e946){logger['debug'](_0x135c52[_0x9fb95f(0x203)](_0x135c52[_0x9fb95f(0x29b)],_0x40e946));}try{const _0x2a5f8f=path['join'](helper[_0x9fb95f(0x27e)](),_0x135c52['XjDRD'],_0x135c52[_0x9fb95f(0x2ab)]);fs[_0x9fb95f(0x22f)](_0x2a5f8f)&&fs[_0x9fb95f(0x282)](_0x2a5f8f);}catch(_0x4cd467){logger[_0x9fb95f(0x20c)](_0x135c52[_0x9fb95f(0x21d)](_0x135c52[_0x9fb95f(0x21c)],_0x4cd467));}if(!_0x135c52[_0x9fb95f(0x27f)](isTestCommand,_0x5b8e27,_0x294ae2)){_0x135c52[_0x9fb95f(0x24e)](spawnOriginalProcess,_0x294ae2);return;}await PerformanceTester[_0x9fb95f(0x225)](PerformanceEvents['SDK_PRE_INITIALIZE'],async()=>{const _0xbf8381=_0x9fb95f,_0xdecb4={'VcArb':function(_0x1a1551,_0x307c4b){return _0x135c52['ZCwhq'](_0x1a1551,_0x307c4b);}};if(!_0x32d8e7[_0xbf8381(0x246)]){logger[_0xbf8381(0x24c)](_0x135c52[_0xbf8381(0x23a)]);return;}await _0x32d8e7[_0xbf8381(0x274)](_0x5b8e27),CLIUtils[_0xbf8381(0x240)](FRAMEWORKS[_0xbf8381(0x200)],FRAMEWORKS['PLAYWRIGHT']),BrowserstackCLI[_0xbf8381(0x1fd)]()[_0xbf8381(0x23c)](_0x32d8e7[_0xbf8381(0x246)],_0x32d8e7[_0xbf8381(0x219)],_0x32d8e7['cliConfig']),await BrowserstackCLI[_0xbf8381(0x1fd)]()[_0xbf8381(0x290)]();for(var _0x1d9f9f=0x0;_0x135c52[_0xbf8381(0x254)](_0x1d9f9f,constants[_0xbf8381(0x26b)][_0xbf8381(0x262)]);_0x1d9f9f++){var _0x26e9b0=constants['INTERNALLY_USED_ENV_VARS'][_0x1d9f9f];process['env'][_0x26e9b0]&&await ClientTroubleShootingService[_0xbf8381(0x2a4)](_0x26e9b0);}const _0x37ab0a=BrowserstackCLI[_0xbf8381(0x1fd)]()[_0xbf8381(0x299)]();!helper[_0xbf8381(0x258)](_0x37ab0a[_0xbf8381(0x215)])&&(process[_0xbf8381(0x25f)]['BROWSERSTACK_AUTOMATION']=!![]);_0x135c52[_0xbf8381(0x20b)](_0x37ab0a['browserstackAutomation'],![])&&(process[_0xbf8381(0x25f)][_0xbf8381(0x244)]=_0x135c52[_0xbf8381(0x1f5)],_0x294ae2=_0x294ae2[_0xbf8381(0x20e)](_0x5ee770=>_0x5ee770!==_0xbf8381(0x25c)));const _0x3f1f16=_0x294ae2[_0xbf8381(0x22c)](_0x135c52[_0xbf8381(0x233)]);(_0x135c52[_0xbf8381(0x257)](_0x3f1f16,0x0)||_0x135c52[_0xbf8381(0x20b)](_0x37ab0a[_0xbf8381(0x29e)],![]))&&(process[_0xbf8381(0x25f)][_0xbf8381(0x206)]=_0x135c52['eSvuO'],_0x294ae2=_0x294ae2['filter'](_0x55cbf0=>_0x55cbf0!==_0xbf8381(0x260)));!helper[_0xbf8381(0x28d)](_0x32d8e7[_0xbf8381(0x1f4)])&&_0x32d8e7['cliConfig'][_0xbf8381(0x28a)](_0x135c52[_0xbf8381(0x250)])&&(process[_0xbf8381(0x25f)][_0xbf8381(0x244)]=_0x32d8e7[_0xbf8381(0x1f4)][_0xbf8381(0x21f)](_0x135c52[_0xbf8381(0x250)])||!![]);_0x135c52[_0xbf8381(0x275)](_0x32d8e7[_0xbf8381(0x246)][_0xbf8381(0x29e)],null)&&!helper[_0xbf8381(0x23e)](process[_0xbf8381(0x25f)][_0xbf8381(0x206)])&&(process[_0xbf8381(0x25f)]['BROWSERSTACK_TEST_OBSERVABILITY']=process['env'][_0xbf8381(0x206)]||_0x32d8e7[_0xbf8381(0x246)][_0xbf8381(0x29e)]);const _0x49465d=!helper[_0xbf8381(0x258)](process['env'][_0xbf8381(0x206)]);_0x32d8e7['config'][_0xbf8381(0x217)]&&(process[_0xbf8381(0x25f)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON['stringify'](_0x32d8e7[_0xbf8381(0x246)][_0xbf8381(0x217)]));let _0xacea91=![];_0x32d8e7[_0xbf8381(0x246)][_0xbf8381(0x24a)]&&(_0xacea91=!![],process[_0xbf8381(0x25f)][_0xbf8381(0x223)]=_0x32d8e7['config'][_0xbf8381(0x24a)]);const _0x4cb9a3=_0x294ae2[_0xbf8381(0x2a2)](),_0x2c9f23=await _0x135c52['DPWsy'](getUserPlaywrightConfig,_0x5b8e27,_0x294ae2);if(helper[_0xbf8381(0x28d)](_0x2c9f23)){_0x135c52['ZCwhq'](spawnOriginalProcess,_0x4cb9a3);return;}const _0x17dd1c=_0x2c9f23[_0xbf8381(0x20f)]?path[_0xbf8381(0x249)](_0x2c9f23[_0xbf8381(0x20f)]):process[_0xbf8381(0x29d)]();process[_0xbf8381(0x25f)][_0xbf8381(0x26a)]=_0x17dd1c,await PerformanceTester[_0xbf8381(0x225)](PerformanceEvents['SDK_POST_INITIALIZE'],async()=>{const _0x152f9a=_0xbf8381;!BrowserstackCLI[_0x152f9a(0x1fd)]()[_0x152f9a(0x26c)]()&&await TestHubHandler[_0x152f9a(0x285)](FRAMEWORKS[_0x152f9a(0x200)],_0x32d8e7),_0x49465d&&_0xdecb4[_0x152f9a(0x1f6)](handleO11yRerun,_0x294ae2);})();if(!BrowserstackCLI[_0xbf8381(0x1fd)]()['isRunning']()){let _0x1f164c=_0x135c52[_0xbf8381(0x20b)](process[_0xbf8381(0x25f)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x135c52[_0xbf8381(0x253)]);_0x1f164c=_0x1f164c||_0x135c52[_0xbf8381(0x24e)](checkAccessibilityPlatformConfig,_0x32d8e7[_0xbf8381(0x246)]),process['env'][_0xbf8381(0x223)]=_0x1f164c,_0x1f164c&&_0x135c52[_0xbf8381(0x24e)](setAccessibilityCapabilities,_0x32d8e7[_0xbf8381(0x246)]);}const _0x1507fc=path[_0xbf8381(0x209)](_0x2c9f23[_0xbf8381(0x20f)]?path['dirname'](_0x2c9f23[_0xbf8381(0x20f)]):process[_0xbf8381(0x29d)](),_0x135c52[_0xbf8381(0x212)]);fs[_0xbf8381(0x228)](_0x1507fc,helper[_0xbf8381(0x265)](_0x32d8e7[_0xbf8381(0x246)])),process[_0xbf8381(0x25f)][_0xbf8381(0x288)]=_0x1507fc,helper[_0xbf8381(0x220)]();let _0x14b98c='';_0x135c52[_0xbf8381(0x241)](helper['getPackageType'](),constants[_0xbf8381(0x29f)][_0xbf8381(0x28b)])?_0x14b98c=_0x135c52[_0xbf8381(0x27a)]:_0x14b98c=_0x135c52[_0xbf8381(0x266)];let _0x5bfa9c='';if(helper[_0xbf8381(0x204)](_0x2c9f23[_0xbf8381(0x20f)])){_0x5bfa9c=_0xbf8381(0x1fa);const _0x351f74=_0x14b98c[_0xbf8381(0x201)]('.');_0x351f74[_0x135c52['FGGEl'](_0x351f74['length'],0x1)]='ts',_0x14b98c=_0x351f74[_0xbf8381(0x209)]('.'),logger[_0xbf8381(0x20c)](_0x135c52[_0xbf8381(0x203)](_0x135c52[_0xbf8381(0x28c)],_0x14b98c));}else _0x5bfa9c='\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 _0x442bc8=path['join'](_0x2c9f23[_0xbf8381(0x20f)]?path[_0xbf8381(0x249)](_0x2c9f23[_0xbf8381(0x20f)]):process[_0xbf8381(0x29d)](),_0x14b98c);let _0x7723d2=_0x2c9f23[_0xbf8381(0x20f)]?_0x2c9f23[_0xbf8381(0x20f)]:'';_0x7723d2=_0x135c52[_0xbf8381(0x21b)](_0x7723d2[_0xbf8381(0x262)],0x0)?path[_0xbf8381(0x238)](_0x7723d2):'',process['env'][_0xbf8381(0x259)]=_0x7723d2;const _0x2b2d84=helper[_0xbf8381(0x1f7)](_0x32d8e7[_0xbf8381(0x246)]),_0xa7dcd0=helper['getNoProxy'](_0x32d8e7[_0xbf8381(0x246)]);logger[_0xbf8381(0x20c)]('Proxy\x20url\x20:\x20'+_0x2b2d84),logger[_0xbf8381(0x20c)]('No\x20Proxy\x20:\x20'+_0xa7dcd0);_0x2b2d84&&(_0x5bfa9c=_0x135c52[_0xbf8381(0x29a)](_0xbf8381(0x1fb)+_0x2b2d84+_0xbf8381(0x26f)+_0xa7dcd0+_0xbf8381(0x297),_0x5bfa9c));helper['filterBrowserstackArgs']({},_0x294ae2),fs[_0xbf8381(0x228)](_0x442bc8,_0x5bfa9c),PerformanceTester[_0xbf8381(0x276)](PerformanceEvents['SDK_SETUP']);const _0x913121=_0x135c52['YDQmu'](spawn,helper[_0xbf8381(0x1f3)]()?_0x135c52['NHFkC']:_0x135c52[_0xbf8381(0x287)],[_0x135c52[_0xbf8381(0x27c)],_0x135c52['BmMwJ'],_0x135c52[_0xbf8381(0x27d)],_0x135c52[_0xbf8381(0x20b)](process[_0xbf8381(0x2a6)],_0x135c52[_0xbf8381(0x234)])?'\x22'+_0x442bc8+'\x22':_0x442bc8,..._0x294ae2[_0xbf8381(0x2ac)](0x2)],{'shell':_0x135c52[_0xbf8381(0x241)](process['platform'],_0x135c52[_0xbf8381(0x234)]),'stdio':_0x135c52['qJsbO'],'cwd':process['cwd'](),'env':Object['assign']({},process[_0xbf8381(0x25f)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0xbf8381(0x216)](_0x5b8e27),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x32d8e7[_0xbf8381(0x246)][_0xbf8381(0x242)][_0xbf8381(0x280)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x32d8e7[_0xbf8381(0x246)][_0xbf8381(0x242)]['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0x32d8e7[_0xbf8381(0x246)][_0xbf8381(0x2a5)]})}),_0x3ff7c2=()=>{const _0x5b50eb=_0xbf8381;try{const _0x450cad=path['join'](helper[_0x5b50eb(0x27e)](),_0x135c52[_0x5b50eb(0x268)],_0x135c52[_0x5b50eb(0x2ab)]);if(fs[_0x5b50eb(0x22f)](_0x450cad)){let _0x12258e=fs[_0x5b50eb(0x222)](_0x450cad);_0x12258e=JSON[_0x5b50eb(0x284)](_0x12258e),_0x32d8e7[_0x5b50eb(0x243)]=_0x12258e,fs['unlinkSync'](_0x450cad);}}catch(_0x4c3cbd){logger['debug'](_0x135c52['QFtQX'](_0x135c52[_0x5b50eb(0x270)],_0x4c3cbd));}};_0x913121['on'](_0x135c52[_0xbf8381(0x252)],async _0x5ddaa4=>{const _0x237398=_0xbf8381,_0x5dd07f={};_0x5dd07f[_0x237398(0x2ad)]=_0x135c52[_0x237398(0x268)];const _0x493a64=_0x5dd07f;try{PerformanceTester[_0x237398(0x256)](PerformanceEvents[_0x237398(0x251)]),_0x135c52[_0x237398(0x1fe)](_0x3ff7c2),await TestHubHandler[_0x237398(0x269)](),await ClientTroubleShootingService[_0x237398(0x20d)]();const _0x2229f9=BrowserstackCLI[_0x237398(0x295)]();await BrowserstackCLI[_0x237398(0x1fd)]()[_0x237398(0x269)](),TestDetails[_0x237398(0x2a9)](),_0x135c52[_0x237398(0x1fe)](printBuildLink),await utilities[_0x237398(0x23b)](_0x32d8e7,_0x2229f9),process[_0x237398(0x1ee)]=_0x5ddaa4,logger[_0x237398(0x20c)]('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x5ddaa4),logger[_0x237398(0x298)]('Deleting\x20'+_0x442bc8),fs[_0x237398(0x282)](_0x442bc8);fs[_0x237398(0x22f)](_0x1507fc)&&(logger[_0x237398(0x20c)](_0x237398(0x235)+_0x1507fc),fs[_0x237398(0x282)](_0x1507fc));const _0x487a56=fs[_0x237398(0x230)](path[_0x237398(0x209)](helper[_0x237398(0x27e)](),_0x135c52[_0x237398(0x268)]))[_0x237398(0x20e)](_0x37f65d=>_0x37f65d[_0x237398(0x22e)](_0x237398(0x281)));_0x487a56[_0x237398(0x218)](_0x3db935=>{const _0x36289b=_0x237398;fs[_0x36289b(0x282)](path['join'](helper['homedir'](),_0x493a64[_0x36289b(0x2ad)],_0x3db935));});}catch(_0x53bcb0){logger[_0x237398(0x20c)](_0x135c52[_0x237398(0x203)](_0x135c52['UmIyg'],_0x53bcb0));}});})();}module['exports']=run;
2
+ 'use strict';const a39_0x274f6b=a39_0x4064;(function(_0x2c7e21,_0x2de818){const _0x10fe8f=a39_0x4064,_0x413730=_0x2c7e21();while(!![]){try{const _0x1dd684=parseInt(_0x10fe8f(0x144))/0x1*(-parseInt(_0x10fe8f(0xf2))/0x2)+-parseInt(_0x10fe8f(0xee))/0x3+-parseInt(_0x10fe8f(0x11c))/0x4*(parseInt(_0x10fe8f(0x174))/0x5)+parseInt(_0x10fe8f(0x12f))/0x6*(parseInt(_0x10fe8f(0xec))/0x7)+parseInt(_0x10fe8f(0x15e))/0x8*(parseInt(_0x10fe8f(0x139))/0x9)+parseInt(_0x10fe8f(0x16f))/0xa+parseInt(_0x10fe8f(0xfc))/0xb;if(_0x1dd684===_0x2de818)break;else _0x413730['push'](_0x413730['shift']());}catch(_0x10b0f0){_0x413730['push'](_0x413730['shift']());}}}(a39_0x68fb,0x8f782));const fs=require('fs'),path=require(a39_0x274f6b(0x18e)),{spawn}=require(a39_0x274f6b(0x115)),{format}=require(a39_0x274f6b(0x13a)),logger=require(a39_0x274f6b(0xeb))[a39_0x274f6b(0x10a)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require('../../helpers/helper'),utilities=require(a39_0x274f6b(0x18f)),constants=require(a39_0x274f6b(0x134)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getConfigLoaderPath}=require(a39_0x274f6b(0x14e)),{checkAccessibilityPlatformConfig}=require(a39_0x274f6b(0xda)),{setAccessibilityCapabilities}=require('./accessibility-helper'),{printBuildLink}=require(a39_0x274f6b(0x103)),TestDetails=require(a39_0x274f6b(0x119)),TestHubHandler=require(a39_0x274f6b(0x167)),PerformanceTester=require(a39_0x274f6b(0x107)),BrowserstackCLI=require(a39_0x274f6b(0x109)),PerformanceEvents=require(a39_0x274f6b(0xd5))[a39_0x274f6b(0x11b)],CLIUtils=require('../v2/cliUtils'),TestInfo=require('../v2/TestInfo'),ClientTroubleShootingService=require(a39_0x274f6b(0x11a)),getUserPlaywrightConfig=async(_0x20353c,_0x30c4dd)=>{const _0x53a18f=a39_0x274f6b,_0x5e9901={'YYwcZ':function(_0x39cd3f){return _0x39cd3f();},'lxaYN':function(_0x121caa){return _0x121caa();},'xwjhO':function(_0x445df9,_0xd04e86){return _0x445df9(_0xd04e86);},'iQuRU':function(_0x5cd71f,_0x430224){return _0x5cd71f(_0x430224);},'IBHsO':'resolvedConfigFile','nOPDK':_0x53a18f(0x128)},_0x2ee94b=!helper[_0x53a18f(0x196)](_0x20353c[_0x53a18f(0xe0)]),_0x3a70bc=_0x2ee94b?path[_0x53a18f(0x193)](process[_0x53a18f(0x12a)](),_0x20353c[_0x53a18f(0xe0)]):process[_0x53a18f(0x12a)](),{resolveConfigFile:_0x15ff7c,resolveConfigLocation:_0x54fd21}=helper[_0x53a18f(0x161)]()?helper[_0x53a18f(0xe5)](..._0x5e9901[_0x53a18f(0x118)](getConfigLoaderPath)):helper[_0x53a18f(0x16b)]['apply'](null,_0x5e9901['lxaYN'](getConfigLoaderPath)),_0x5e6399=_0x15ff7c?_0x5e9901[_0x53a18f(0xe7)](_0x15ff7c,_0x3a70bc):helper['nestedKeyValue'](_0x5e9901[_0x53a18f(0xf4)](_0x54fd21,_0x3a70bc),[_0x5e9901[_0x53a18f(0x157)]]),_0x3d1374={};if(_0x2ee94b){const _0x2f234a=_0x30c4dd[_0x53a18f(0x146)](_0x381add=>_0x381add===_0x53a18f(0x125)||_0x381add==='-c'||_0x381add[_0x53a18f(0x130)](_0x53a18f(0x128)));_0x30c4dd['splice'](_0x2f234a,_0x30c4dd[_0x2f234a][_0x53a18f(0x130)](_0x5e9901[_0x53a18f(0x117)])?0x1:0x2);}const _0x28f51a={};return _0x28f51a[_0x53a18f(0x18e)]=_0x5e6399,_0x28f51a[_0x53a18f(0xe0)]=_0x3d1374,_0x28f51a;},handleO11yRerun=_0x2868ff=>{const _0x83374a=a39_0x274f6b,_0x38f450={};_0x38f450[_0x83374a(0xdd)]=_0x83374a(0x19a);const _0x166aaa=_0x38f450,_0x408497=helper[_0x83374a(0xe6)](process[_0x83374a(0xfb)][_0x83374a(0x18b)]);if(_0x408497){const _0x2c6d39=process[_0x83374a(0xfb)]['BROWSERSTACK_RERUN_TESTS'],_0x31f9fe=[];if(helper[_0x83374a(0x148)](_0x2c6d39)&&!helper[_0x83374a(0x196)](_0x2c6d39)){_0x2c6d39[_0x83374a(0x112)](',')['map'](_0x37a510=>{const _0x441e72=_0x83374a;_0x31f9fe['push']('('+_0x37a510[_0x441e72(0x114)]()+')');});const _0x5b4e55='^'+_0x31f9fe['join']('|')+'$';_0x2868ff[_0x83374a(0xed)](_0x166aaa[_0x83374a(0xdd)],_0x5b4e55);}}},spawnOriginalProcess=_0x5c050b=>{const _0x71cbba=a39_0x274f6b,_0x2d7ab3={'xvvZB':function(_0x1e9e44,_0x4d722a,_0x31a42f,_0x4af5f4){return _0x1e9e44(_0x4d722a,_0x31a42f,_0x4af5f4);},'HfHtf':_0x71cbba(0x192),'Sgcol':_0x71cbba(0x189),'laMjP':_0x71cbba(0x160),'VdDyf':function(_0x15df64,_0x3ced1f){return _0x15df64===_0x3ced1f;},'jFNVH':_0x71cbba(0x116),'ShZzy':_0x71cbba(0x127)};_0x2d7ab3['xvvZB'](spawn,helper[_0x71cbba(0x161)]()?_0x2d7ab3[_0x71cbba(0x132)]:_0x2d7ab3[_0x71cbba(0x12e)],[_0x2d7ab3['laMjP'],..._0x5c050b[_0x71cbba(0x105)](0x1)],{'shell':_0x2d7ab3['VdDyf'](process[_0x71cbba(0xfa)],_0x2d7ab3[_0x71cbba(0xd8)]),'stdio':_0x2d7ab3[_0x71cbba(0xea)],'cwd':process[_0x71cbba(0x12a)]()});},isTestCommand=(_0x27fd60,_0x56ef8e)=>{const _0x2a284c=a39_0x274f6b,_0x1e884e={};_0x1e884e[_0x2a284c(0x16c)]=function(_0x394171,_0x28f8a6){return _0x394171>_0x28f8a6;},_0x1e884e[_0x2a284c(0xfe)]=function(_0x5bd38d,_0x4728fe){return _0x5bd38d===_0x4728fe;},_0x1e884e['gyyLS']=_0x2a284c(0x197);const _0x3d7f0e=_0x1e884e;if(_0x3d7f0e['hXdCw'](_0x56ef8e[_0x2a284c(0xe9)],0x1)&&_0x3d7f0e[_0x2a284c(0xfe)](_0x56ef8e[0x1],_0x3d7f0e[_0x2a284c(0x10e)]))return!![];return![];};async function run(_0x405c68,_0x34d615,_0x5e469b){const _0x26eada=a39_0x274f6b,_0x3e4f3b={'VfGmG':function(_0x26993a,_0x2e3c8d){return _0x26993a(_0x2e3c8d);},'XLeaJ':_0x26eada(0x124),'diTXy':_0x26eada(0xe2),'fDYGb':function(_0x161a1b,_0x573551){return _0x161a1b+_0x573551;},'BhfzM':_0x26eada(0x137),'jLBGx':function(_0x1f656e){return _0x1f656e();},'HbubJ':_0x26eada(0x158),'Efyff':'BrowserStack\x20config\x20file\x20not\x20found.','acxVT':function(_0xb9eacd,_0x159642){return _0xb9eacd<_0x159642;},'LSnAa':function(_0x5bf2b7,_0x5f3394){return _0x5bf2b7===_0x5f3394;},'mpWXV':_0x26eada(0x13e),'KbjAV':_0x26eada(0x156),'wqeoh':function(_0x2ee9a8,_0xe4f72a){return _0x2ee9a8>=_0xe4f72a;},'gnMMP':'automation','gtbgj':function(_0x2f290b,_0xfbc747){return _0x2f290b!=_0xfbc747;},'TkLAe':function(_0x16032e,_0x2685b1,_0x46bc6d){return _0x16032e(_0x2685b1,_0x46bc6d);},'IgenO':'true','GYhpa':_0x26eada(0x17e),'pAguT':function(_0x566ada,_0xa2021){return _0x566ada===_0xa2021;},'tfhCQ':_0x26eada(0x163),'qHiUx':_0x26eada(0x194),'AOFDo':function(_0x13c45e,_0x3b9572){return _0x13c45e-_0x3b9572;},'GrEiM':_0x26eada(0x13f),'PXSKW':function(_0x3e22ce,_0x3259f3){return _0x3e22ce>_0x3259f3;},'HKoFJ':function(_0x5b0a18,_0x5cf1da){return _0x5b0a18+_0x5cf1da;},'mFaQQ':function(_0x6d00e2,_0x1d009c,_0x4788ec,_0x3103fd){return _0x6d00e2(_0x1d009c,_0x4788ec,_0x3103fd);},'HVBsj':_0x26eada(0x192),'vrgGZ':_0x26eada(0x189),'AKMZc':_0x26eada(0x160),'Jxudz':_0x26eada(0x197),'FVNpc':_0x26eada(0x125),'ftqMY':_0x26eada(0x116),'KxYpC':_0x26eada(0x127),'mMzsj':_0x26eada(0x11e),'eGTUU':function(_0x952136,_0x28fca6){return _0x952136|_0x28fca6;},'cFFvA':_0x26eada(0x111),'wWtTD':function(_0x53da21,_0x34e10b){return _0x53da21+_0x34e10b;},'jHmxE':_0x26eada(0x12c),'eBXZL':function(_0x15b1f9,_0x41211c,_0x405b97){return _0x15b1f9(_0x41211c,_0x405b97);}};try{const _0xd8e85b=path[_0x26eada(0x104)](helper[_0x26eada(0xff)](),_0x3e4f3b[_0x26eada(0x171)]);try{fs[_0x26eada(0x152)](_0xd8e85b,_0x3e4f3b[_0x26eada(0x151)](fs[_0x26eada(0xf8)][_0x26eada(0x180)],fs[_0x26eada(0xf8)][_0x26eada(0x190)]));}catch(_0x50c2a7){ClientTroubleShootingService[_0x26eada(0x101)]();}}catch(_0x1d5476){logger['debug'](_0x3e4f3b[_0x26eada(0x162)](_0x3e4f3b[_0x26eada(0x15b)],_0x1d5476));}try{const _0x220754=path['join'](helper[_0x26eada(0xff)](),_0x3e4f3b[_0x26eada(0x171)],_0x3e4f3b[_0x26eada(0x10c)]);fs[_0x26eada(0x147)](_0x220754)&&fs[_0x26eada(0x170)](_0x220754);}catch(_0x13091f){logger['debug'](_0x3e4f3b[_0x26eada(0x177)](_0x3e4f3b['jHmxE'],_0x13091f));}if(!_0x3e4f3b[_0x26eada(0x108)](isTestCommand,_0x405c68,_0x34d615)){_0x3e4f3b[_0x26eada(0x100)](spawnOriginalProcess,_0x34d615);return;}await PerformanceTester['measureWrapper'](PerformanceEvents['SDK_PRE_INITIALIZE'],async()=>{const _0x3e29ed=_0x26eada,_0x4abd28={'qyLYJ':function(_0x10d0b3,_0x40a795){const _0xea3a6e=a39_0x4064;return _0x3e4f3b[_0xea3a6e(0x100)](_0x10d0b3,_0x40a795);},'HTVOK':_0x3e4f3b[_0x3e29ed(0x171)],'GeJvc':_0x3e4f3b[_0x3e29ed(0x10c)],'KMTwP':function(_0x228cbd,_0x4d5cb3){const _0x87f5ab=_0x3e29ed;return _0x3e4f3b[_0x87f5ab(0x162)](_0x228cbd,_0x4d5cb3);},'SduKk':_0x3e4f3b['BhfzM'],'rQBYA':function(_0x506b06){return _0x3e4f3b['jLBGx'](_0x506b06);},'vfLrG':_0x3e4f3b[_0x3e29ed(0x178)]};if(!_0x5e469b[_0x3e29ed(0xe0)]){logger[_0x3e29ed(0x141)](_0x3e4f3b[_0x3e29ed(0x153)]);return;}await _0x5e469b[_0x3e29ed(0x17f)](_0x405c68),CLIUtils[_0x3e29ed(0x14b)](FRAMEWORKS[_0x3e29ed(0x164)],FRAMEWORKS['PLAYWRIGHT']),BrowserstackCLI[_0x3e29ed(0x17d)]()[_0x3e29ed(0x12b)](_0x5e469b[_0x3e29ed(0xe0)],_0x5e469b['configPath'],_0x5e469b[_0x3e29ed(0x126)]),await BrowserstackCLI[_0x3e29ed(0x17d)]()[_0x3e29ed(0x17c)]();for(var _0x37ba81=0x0;_0x3e4f3b[_0x3e29ed(0x155)](_0x37ba81,constants[_0x3e29ed(0x175)][_0x3e29ed(0xe9)]);_0x37ba81++){var _0x3fabb6=constants[_0x3e29ed(0x175)][_0x37ba81];process[_0x3e29ed(0xfb)][_0x3fabb6]&&await ClientTroubleShootingService[_0x3e29ed(0x17a)](_0x3fabb6);}const _0x41509f=BrowserstackCLI[_0x3e29ed(0x17d)]()[_0x3e29ed(0x149)]();!helper[_0x3e29ed(0x169)](_0x41509f[_0x3e29ed(0x159)])&&(process['env'][_0x3e29ed(0x123)]=!![]);_0x3e4f3b['LSnAa'](_0x41509f['browserstackAutomation'],![])&&(process[_0x3e29ed(0xfb)]['BROWSERSTACK_AUTOMATION']=_0x3e4f3b[_0x3e29ed(0x145)],_0x34d615=_0x34d615['filter'](_0x2a5625=>_0x2a5625!==_0x3e29ed(0x14d)));const _0xccb3ce=_0x34d615[_0x3e29ed(0x183)](_0x3e4f3b[_0x3e29ed(0x122)]);(_0x3e4f3b[_0x3e29ed(0xf7)](_0xccb3ce,0x0)||_0x3e4f3b['LSnAa'](_0x41509f[_0x3e29ed(0x184)],![]))&&(process[_0x3e29ed(0xfb)][_0x3e29ed(0x185)]=_0x3e4f3b[_0x3e29ed(0x145)],_0x34d615=_0x34d615[_0x3e29ed(0x15f)](_0x368196=>_0x368196!=='--disable-test-observability'));!helper['isUndefined'](_0x5e469b[_0x3e29ed(0x126)])&&_0x5e469b[_0x3e29ed(0x126)][_0x3e29ed(0x198)](_0x3e4f3b[_0x3e29ed(0xdc)])&&(process['env']['BROWSERSTACK_AUTOMATION']=_0x5e469b['cliConfig'][_0x3e29ed(0x102)](_0x3e4f3b[_0x3e29ed(0xdc)])||!![]);_0x3e4f3b[_0x3e29ed(0x13c)](_0x5e469b[_0x3e29ed(0xe0)][_0x3e29ed(0x184)],null)&&!helper['isTrue'](process[_0x3e29ed(0xfb)][_0x3e29ed(0x185)])&&(process[_0x3e29ed(0xfb)][_0x3e29ed(0x185)]=process[_0x3e29ed(0xfb)][_0x3e29ed(0x185)]||_0x5e469b[_0x3e29ed(0xe0)]['testObservability']);const _0x349192=!helper[_0x3e29ed(0x169)](process['env'][_0x3e29ed(0x185)]);_0x5e469b[_0x3e29ed(0xe0)][_0x3e29ed(0xdf)]&&(process['env'][_0x3e29ed(0x10f)]=JSON[_0x3e29ed(0x121)](_0x5e469b[_0x3e29ed(0xe0)]['accessibilityOptions']));let _0x503d00=![];_0x5e469b[_0x3e29ed(0xe0)][_0x3e29ed(0x11d)]&&(_0x503d00=!![],process[_0x3e29ed(0xfb)][_0x3e29ed(0xf5)]=_0x5e469b[_0x3e29ed(0xe0)][_0x3e29ed(0x11d)]);const _0x32d250=_0x34d615[_0x3e29ed(0x166)](),_0x417c0a=await _0x3e4f3b[_0x3e29ed(0xe3)](getUserPlaywrightConfig,_0x405c68,_0x34d615);if(helper[_0x3e29ed(0x196)](_0x417c0a)){_0x3e4f3b[_0x3e29ed(0x100)](spawnOriginalProcess,_0x32d250);return;}const _0x30d513=_0x417c0a['path']?path[_0x3e29ed(0x129)](_0x417c0a[_0x3e29ed(0x18e)]):process[_0x3e29ed(0x12a)]();process['env'][_0x3e29ed(0x181)]=_0x30d513,await PerformanceTester[_0x3e29ed(0x14f)](PerformanceEvents[_0x3e29ed(0xd6)],async()=>{const _0x2596f9=_0x3e29ed;!BrowserstackCLI[_0x2596f9(0x17d)]()[_0x2596f9(0xf9)]()&&await TestHubHandler[_0x2596f9(0x16a)](FRAMEWORKS[_0x2596f9(0x164)],_0x5e469b),_0x349192&&_0x4abd28[_0x2596f9(0x15c)](handleO11yRerun,_0x34d615);})();if(!BrowserstackCLI[_0x3e29ed(0x17d)]()[_0x3e29ed(0xf9)]()){let _0x344378=_0x3e4f3b['LSnAa'](process['env'][_0x3e29ed(0xf5)],_0x3e4f3b['IgenO']);_0x344378=_0x344378||_0x3e4f3b[_0x3e29ed(0x100)](checkAccessibilityPlatformConfig,_0x5e469b[_0x3e29ed(0xe0)]),process['env'][_0x3e29ed(0xf5)]=_0x344378,_0x344378&&_0x3e4f3b[_0x3e29ed(0x100)](setAccessibilityCapabilities,_0x5e469b[_0x3e29ed(0xe0)]);}const _0x172478=path[_0x3e29ed(0x104)](_0x417c0a['path']?path[_0x3e29ed(0x129)](_0x417c0a[_0x3e29ed(0x18e)]):process['cwd'](),_0x3e4f3b[_0x3e29ed(0x154)]);fs['writeFileSync'](_0x172478,helper[_0x3e29ed(0x186)](_0x5e469b[_0x3e29ed(0xe0)])),process['env'][_0x3e29ed(0x182)]=_0x172478,helper[_0x3e29ed(0x140)]();let _0x5a3080='';_0x3e4f3b[_0x3e29ed(0xde)](helper[_0x3e29ed(0xdb)](),constants[_0x3e29ed(0x12d)][_0x3e29ed(0x14a)])?_0x5a3080=_0x3e4f3b[_0x3e29ed(0x135)]:_0x5a3080=_0x3e4f3b[_0x3e29ed(0xf3)];let _0x1eeb39='';if(helper['isTypescriptProject'](_0x417c0a[_0x3e29ed(0x18e)])){_0x1eeb39=_0x3e29ed(0xef);const _0xe0eadf=_0x5a3080['split']('.');_0xe0eadf[_0x3e4f3b['AOFDo'](_0xe0eadf[_0x3e29ed(0xe9)],0x1)]='ts',_0x5a3080=_0xe0eadf[_0x3e29ed(0x104)]('.'),logger[_0x3e29ed(0x16d)](_0x3e4f3b[_0x3e29ed(0x162)](_0x3e4f3b[_0x3e29ed(0x176)],_0x5a3080));}else _0x1eeb39=_0x3e29ed(0x10b);const _0x1452f0=path[_0x3e29ed(0x104)](_0x417c0a['path']?path[_0x3e29ed(0x129)](_0x417c0a[_0x3e29ed(0x18e)]):process['cwd'](),_0x5a3080);let _0x19e558=_0x417c0a[_0x3e29ed(0x18e)]?_0x417c0a['path']:'';_0x19e558=_0x3e4f3b[_0x3e29ed(0x16e)](_0x19e558[_0x3e29ed(0xe9)],0x0)?path['resolve'](_0x19e558):'',process[_0x3e29ed(0xfb)][_0x3e29ed(0x191)]=_0x19e558;const _0x369a97=helper[_0x3e29ed(0x13d)](_0x5e469b[_0x3e29ed(0xe0)]),_0x35d356=helper[_0x3e29ed(0x179)](_0x5e469b[_0x3e29ed(0xe0)]);logger[_0x3e29ed(0x16d)](_0x3e29ed(0x133)+_0x369a97),logger[_0x3e29ed(0x16d)](_0x3e29ed(0x173)+_0x35d356);_0x369a97&&(_0x1eeb39=_0x3e4f3b['HKoFJ'](_0x3e29ed(0x110)+_0x369a97+_0x3e29ed(0xe1)+_0x35d356+'\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();',_0x1eeb39));helper[_0x3e29ed(0x113)]({},_0x34d615),fs['writeFileSync'](_0x1452f0,_0x1eeb39),PerformanceTester[_0x3e29ed(0x11f)](PerformanceEvents[_0x3e29ed(0xf0)]);const _0x3ac5d7=_0x3e4f3b['mFaQQ'](spawn,helper[_0x3e29ed(0x161)]()?_0x3e4f3b[_0x3e29ed(0x187)]:_0x3e4f3b['vrgGZ'],[_0x3e4f3b['AKMZc'],_0x3e4f3b['Jxudz'],_0x3e4f3b[_0x3e29ed(0x136)],_0x3e4f3b[_0x3e29ed(0xde)](process[_0x3e29ed(0xfa)],_0x3e4f3b[_0x3e29ed(0x142)])?'\x22'+_0x1452f0+'\x22':_0x1452f0,..._0x34d615[_0x3e29ed(0x105)](0x2)],{'shell':_0x3e4f3b['pAguT'](process[_0x3e29ed(0xfa)],_0x3e4f3b[_0x3e29ed(0x142)]),'stdio':_0x3e4f3b[_0x3e29ed(0x165)],'cwd':process[_0x3e29ed(0x12a)](),'env':Object['assign']({},process[_0x3e29ed(0xfb)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x3e29ed(0x18c)](_0x405c68),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x5e469b[_0x3e29ed(0xe0)][_0x3e29ed(0xd7)][_0x3e29ed(0x106)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x5e469b[_0x3e29ed(0xe0)]['testContextOptions'][_0x3e29ed(0x150)],'BROWSERSTACK_LOG_LEVEL':_0x5e469b[_0x3e29ed(0xe0)]['logLevel']})}),_0x166f9d=()=>{const _0x57aceb=_0x3e29ed;try{const _0x29ccc0=path[_0x57aceb(0x104)](helper[_0x57aceb(0xff)](),_0x4abd28[_0x57aceb(0x143)],_0x4abd28['GeJvc']);if(fs[_0x57aceb(0x147)](_0x29ccc0)){let _0x222e7d=fs[_0x57aceb(0x131)](_0x29ccc0);_0x222e7d=JSON[_0x57aceb(0x13b)](_0x222e7d),_0x5e469b[_0x57aceb(0x15d)]=_0x222e7d,fs['unlinkSync'](_0x29ccc0);}}catch(_0xe3d4fb){logger[_0x57aceb(0x16d)](_0x4abd28[_0x57aceb(0x188)](_0x4abd28[_0x57aceb(0xd9)],_0xe3d4fb));}};_0x3ac5d7['on'](_0x3e4f3b[_0x3e29ed(0x172)],async _0xe864b5=>{const _0x3a2fd2=_0x3e29ed;try{PerformanceTester['start'](PerformanceEvents[_0x3a2fd2(0x10d)]),_0x4abd28[_0x3a2fd2(0x18d)](_0x166f9d),await TestHubHandler[_0x3a2fd2(0x14c)](),await ClientTroubleShootingService[_0x3a2fd2(0xf1)]();const _0x5218a4=BrowserstackCLI[_0x3a2fd2(0x120)]();await BrowserstackCLI[_0x3a2fd2(0x17d)]()[_0x3a2fd2(0x14c)](),TestDetails[_0x3a2fd2(0x199)](),_0x4abd28[_0x3a2fd2(0x18d)](printBuildLink),await utilities[_0x3a2fd2(0x168)](_0x5e469b,_0x5218a4),process[_0x3a2fd2(0x195)]=_0xe864b5,logger['debug'](_0x3a2fd2(0xfd)+_0xe864b5),logger[_0x3a2fd2(0x18a)](_0x3a2fd2(0x15a)+_0x1452f0),fs[_0x3a2fd2(0x170)](_0x1452f0);fs[_0x3a2fd2(0x147)](_0x172478)&&(logger[_0x3a2fd2(0x16d)](_0x3a2fd2(0x15a)+_0x172478),fs['unlinkSync'](_0x172478));const _0x5e9200=fs[_0x3a2fd2(0x17b)](path['join'](helper['homedir'](),_0x4abd28[_0x3a2fd2(0x143)]))[_0x3a2fd2(0x15f)](_0xc5404f=>_0xc5404f[_0x3a2fd2(0x130)](_0x3a2fd2(0x138)));_0x5e9200[_0x3a2fd2(0xe8)](_0x15510d=>{const _0x8b13d9=_0x3a2fd2;fs[_0x8b13d9(0x170)](path[_0x8b13d9(0x104)](helper[_0x8b13d9(0xff)](),_0x4abd28[_0x8b13d9(0x143)],_0x15510d));});}catch(_0x36ae70){logger[_0x3a2fd2(0x16d)](_0x4abd28[_0x3a2fd2(0x188)](_0x4abd28[_0x3a2fd2(0xf6)],_0x36ae70));}});})();}module[a39_0x274f6b(0xe4)]=run;function a39_0x4064(_0x183b98,_0x211ae2){const _0x68fbce=a39_0x68fb();return a39_0x4064=function(_0x406458,_0x370357){_0x406458=_0x406458-0xd5;let _0x2c687d=_0x68fbce[_0x406458];return _0x2c687d;},a39_0x4064(_0x183b98,_0x211ae2);}function a39_0x68fb(){const _0x184c4a=['Efyff','GYhpa','acxVT','--disable-test-observability','IBHsO','Error\x20in\x20closing\x20playwright','browserstackAutomation','Deleting\x20','cFFvA','qyLYJ','errorMessage','1941832rUjnmR','filter','playwright','isYarnPnP','fDYGb','playwright-browserstack-sdk.config.cjs','PLAYWRIGHT','KxYpC','concat','../../helpers/testhub/testhubHandler','finalExecution','isFalse','launchBuild','requirePWModule','hXdCw','debug','PXSKW','7753990tdDGKR','unlinkSync','XLeaJ','mMzsj','No\x20Proxy\x20:\x20','61165TRdwHB','INTERNALLY_USED_ENV_VARS','GrEiM','wWtTD','HbubJ','getNoProxy','reportConflictingEnvVarIssue','readdirSync','bootstrap','getInstance','browserstackSetupConfig.json','initialize','R_OK','BROWSERSTACK_PW_CONFIG_DIR','BROWSERSTACK_SETUP_CONFIG_PATH','indexOf','testObservability','BROWSERSTACK_TEST_OBSERVABILITY','serializeToYamlString','HVBsj','KMTwP','npx','info','BROWSERSTACK_RERUN','getConfigPath','rQBYA','path','../../helpers/utilities','W_OK','USER_CONFIG_DETAILS_PATH','yarn','resolve','playwright-browserstack-sdk.config.js','exitCode','isUndefined','test','has','shutdown','--grep','../../helpers/performance/constants','SDK_POST_INITIALIZE','testContextOptions','jFNVH','SduKk','../../helpers/accessibility-automation/helper','getPackageType','gnMMP','EuJrw','pAguT','accessibilityOptions','config','\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','pw_result.json','TkLAe','exports','requireConfigLoaderYarnPnP','isTrue','xwjhO','forEach','length','ShZzy','../../helpers/logger','4095749iSRwhP','push','1555143frzKks','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','SDK_SETUP','reportFinalDetectionState','20edUkPM','qHiUx','iQuRU','BROWSERSTACK_TEST_ACCESSIBILITY_YML','vfLrG','wqeoh','constants','isRunning','platform','env','8644361RBTKtX','Playwright\x20process\x20exited\x20with\x20code\x20','gnjqs','homedir','VfGmG','reportDotBrowserStackFolderNotAccessibleIssue','get','../../helpers/test-observability/utils','join','slice','skipSessionStatus','../../helpers/performance/performance-tester','eBXZL','../v2/browserstackCLI','winstonLogger','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','diTXy','SDK_CLEANUP','gyyLS','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','split','filterBrowserstackArgs','trim','child_process','win32','nOPDK','YYwcZ','./reporter/test-details','../utils/clientTroubleshootingService','EVENTS','256gwqUHc','accessibility','close','end','isCLIEnabled','stringify','KbjAV','BROWSERSTACK_AUTOMATION','.browserstack','--config','cliConfig','inherit','--config=','dirname','cwd','setBrowserstackConfig','Error\x20in\x20deleting\x20playwright\x20results','PACKAGE_TYPE','Sgcol','12UGOmBj','startsWith','readFileSync','HfHtf','Proxy\x20url\x20:\x20','../utils/constants','tfhCQ','FVNpc','Error\x20in\x20getting\x20funnel\x20data\x20results','trace_','9uXooXy','util','parse','gtbgj','getProxyUrl','false','Updated\x20config\x20file\x20name\x20to\x20-\x20','clearTempPWConfig','error','ftqMY','HTVOK','108525RIovqd','mpWXV','findIndex','existsSync','validateRerunTestList','getConfig','MODULE','setFrameworkDetail','stop','--disable-browserstack-automation','./reporter/pwUtils','measureWrapper','skipSessionName','eGTUU','accessSync'];a39_0x68fb=function(){return _0x184c4a;};return a39_0x68fb();}
@@ -1 +1 @@
1
- const a40_0xd25df2=a40_0x53f2;function a40_0x5108(){const _0x32dcc7=['compareVersions','76640SnauQG','Running\x20existing\x20global\x20setup','./reporter/pwUtils','config','apply','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','../../helpers/helper','./patches','sedmz','Call\x20to\x20child\x20fork\x20with\x20args\x20','PLAYWRIGHT','winstonLogger','ZpVTb','11lZhJfu','Path\x20','child_process','836192wwlmZd','10fuXuFm','18047748zQUNyo','FsUoS','26456HdemZy','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','nSlob','util','10gVrQYA','error','includes','VbQlD','../../helpers/logger','../../helpers/test-observability/constants','\x20is\x20not\x20found','env','format','exports','1482438ZXuEjr','cyquS','1.33.0','function','645180UuBfGQ','81CSquPL','487640qJjrWD','debug','SQUql','ZOjuM','fork','18fJHJPs','UQSYG'];a40_0x5108=function(){return _0x32dcc7;};return a40_0x5108();}(function(_0xdd18e2,_0x1e871b){const _0x2282be=a40_0x53f2,_0x399baa=_0xdd18e2();while(!![]){try{const _0x5ede88=parseInt(_0x2282be(0xa7))/0x1*(-parseInt(_0x2282be(0x7a))/0x2)+parseInt(_0x2282be(0x8d))/0x3*(-parseInt(_0x2282be(0x96))/0x4)+parseInt(_0x2282be(0x7e))/0x5*(-parseInt(_0x2282be(0x88))/0x6)+parseInt(_0x2282be(0xa6))/0x7+-parseInt(_0x2282be(0x8e))/0x8*(parseInt(_0x2282be(0x93))/0x9)+parseInt(_0x2282be(0x8c))/0xa*(-parseInt(_0x2282be(0xa3))/0xb)+parseInt(_0x2282be(0x78))/0xc;if(_0x5ede88===_0x1e871b)break;else _0x399baa['push'](_0x399baa['shift']());}catch(_0x1515dd){_0x399baa['push'](_0x399baa['shift']());}}}(a40_0x5108,0x4798d));const util=require(a40_0xd25df2(0x7d)),child_process=require(a40_0xd25df2(0xa5)),{FRAMEWORKS}=require(a40_0xd25df2(0x83)),{getFrameworkVersion,debug}=require('../../helpers/test-observability/utils'),helper=require(a40_0xd25df2(0x9c)),{getLoadUtilsPath,getForkProcessPath}=require(a40_0xd25df2(0x98)),{mockIsWorkerRedundant}=require(a40_0xd25df2(0x9d)),logger=require(a40_0xd25df2(0x82))[a40_0xd25df2(0xa1)];function a40_0x53f2(_0x1c8c69,_0x247de0){const _0x510838=a40_0x5108();return a40_0x53f2=function(_0x53f26a,_0x426044){_0x53f26a=_0x53f26a-0x78;let _0x263e66=_0x510838[_0x53f26a];return _0x263e66;},a40_0x53f2(_0x1c8c69,_0x247de0);}module[a40_0xd25df2(0x87)]=async function(_0x447860){const _0x318a62=a40_0xd25df2,_0x3fbb6f={'VbQlD':function(_0x366299,_0x2d34a3){return _0x366299(_0x2d34a3);},'ZpVTb':function(_0x1ce613){return _0x1ce613();},'SQUql':'./mock-process.js','UQSYG':function(_0x32ba9f){return _0x32ba9f();},'ZOjuM':_0x318a62(0x97),'FsUoS':function(_0x33054b,_0x244d65){return _0x33054b>=_0x244d65;},'UMhQh':_0x318a62(0x8a),'sedmz':function(_0x16f8b7,_0x5963c6,_0x5511ae){return _0x16f8b7(_0x5963c6,_0x5511ae);},'cyquS':function(_0x4b30b7,_0x3c0cbc){return _0x4b30b7!==_0x3c0cbc;},'GRxsa':_0x318a62(0x8b),'nSlob':'Not\x20able\x20to\x20import\x20globalSetup'},_0x582c1a=child_process[_0x318a62(0x92)];if(helper['isHandlePWErrorSet']())try{_0x3fbb6f[_0x318a62(0x94)](mockIsWorkerRedundant);}catch(_0x53fe48){logger[_0x318a62(0x8f)]('Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20'+util[_0x318a62(0x86)](_0x53fe48));}child_process[_0x318a62(0x92)]=function(){const _0x59c56d=_0x318a62;return _0x3fbb6f[_0x59c56d(0x81)](debug,_0x59c56d(0x9f)+arguments[0x0]),arguments[0x0][_0x59c56d(0x80)](_0x3fbb6f['ZpVTb'](getForkProcessPath))?arguments[0x0]=require['resolve'](_0x3fbb6f[_0x59c56d(0x90)]):logger[_0x59c56d(0x7f)](_0x59c56d(0xa4)+_0x3fbb6f['ZpVTb'](getForkProcessPath)+_0x59c56d(0x84)),_0x582c1a[_0x59c56d(0x9a)](null,arguments);};if(process[_0x318a62(0x85)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']){_0x3fbb6f[_0x318a62(0x81)](debug,_0x3fbb6f[_0x318a62(0x91)]);try{const {loadGlobalHook:_0x1cef02}=helper['requirePWModule'][_0x318a62(0x9a)](null,_0x3fbb6f[_0x318a62(0xa2)](getLoadUtilsPath)),_0x44a982=_0x3fbb6f[_0x318a62(0x81)](getFrameworkVersion,FRAMEWORKS[_0x318a62(0xa0)]);let _0x5a78fe=_0x447860;if(_0x3fbb6f[_0x318a62(0x79)](helper[_0x318a62(0x95)](_0x44a982,_0x3fbb6f['UMhQh']),0x0)){const _0x5e5a5c={};_0x5e5a5c[_0x318a62(0x99)]=_0x447860,_0x5a78fe=_0x5e5a5c;}const _0x2bd5c0=await _0x3fbb6f[_0x318a62(0x9e)](_0x1cef02,_0x5a78fe,process['env'][_0x318a62(0x7b)]);if(_0x3fbb6f[_0x318a62(0x89)](typeof _0x2bd5c0,_0x3fbb6f['GRxsa']))throw new Error(_0x3fbb6f[_0x318a62(0x7c)]);return _0x2bd5c0[_0x318a62(0x9a)](null,arguments);}catch(_0x541f88){_0x3fbb6f[_0x318a62(0x81)](debug,_0x318a62(0x9b)+_0x541f88['toString']());}}};
1
+ function a40_0x14fa(){const _0x3bd9fd=['15737211kPodZU','Txnom','180xcNmVD','4710eCFlFu','4aYDlzd','PLAYWRIGHT','iXzzL','wHZkF','util','debug','Call\x20to\x20child\x20fork\x20with\x20args\x20','NhOgF','Running\x20existing\x20global\x20setup','format','isHandlePWErrorSet','JKQpg','23702030iCLvNx','Path\x20','1665936HumVcd','../../helpers/test-observability/constants','pdyIX','fork','includes','1.33.0','function','config','8kelUoV','exports','./mock-process.js','JwWnb','NvKhJ','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','kPYNu','354712ibEwTl','4491813YKyVmn','WqJIH','winstonLogger','./reporter/pwUtils','env','../../helpers/logger','apply','../../helpers/test-observability/utils','Rjttd','resolve','7332409ygULcc','error','../../helpers/helper','toString'];a40_0x14fa=function(){return _0x3bd9fd;};return a40_0x14fa();}const a40_0x7a1b9b=a40_0x1ac1;function a40_0x1ac1(_0x5897a2,_0x57a2ba){const _0x14fa33=a40_0x14fa();return a40_0x1ac1=function(_0x1ac1cd,_0x379421){_0x1ac1cd=_0x1ac1cd-0x1df;let _0x200498=_0x14fa33[_0x1ac1cd];return _0x200498;},a40_0x1ac1(_0x5897a2,_0x57a2ba);}(function(_0x40b716,_0x1d5db5){const _0x3e248e=a40_0x1ac1,_0x3eee34=_0x40b716();while(!![]){try{const _0x346751=-parseInt(_0x3e248e(0x1f9))/0x1*(-parseInt(_0x3e248e(0x1e6))/0x2)+parseInt(_0x3e248e(0x1e7))/0x3+parseInt(_0x3e248e(0x207))/0x4+parseInt(_0x3e248e(0x1f8))/0x5*(-parseInt(_0x3e248e(0x1f7))/0x6)+-parseInt(_0x3e248e(0x1f1))/0x7+parseInt(_0x3e248e(0x1df))/0x8*(parseInt(_0x3e248e(0x1f5))/0x9)+-parseInt(_0x3e248e(0x205))/0xa;if(_0x346751===_0x1d5db5)break;else _0x3eee34['push'](_0x3eee34['shift']());}catch(_0x51560a){_0x3eee34['push'](_0x3eee34['shift']());}}}(a40_0x14fa,0xe2070));const util=require(a40_0x7a1b9b(0x1fd)),child_process=require('child_process'),{FRAMEWORKS}=require(a40_0x7a1b9b(0x208)),{getFrameworkVersion,debug}=require(a40_0x7a1b9b(0x1ee)),helper=require(a40_0x7a1b9b(0x1f3)),{getLoadUtilsPath,getForkProcessPath}=require(a40_0x7a1b9b(0x1ea)),{mockIsWorkerRedundant}=require('./patches'),logger=require(a40_0x7a1b9b(0x1ec))[a40_0x7a1b9b(0x1e9)];module[a40_0x7a1b9b(0x1e0)]=async function(_0x29d2d1){const _0x4252fd=a40_0x7a1b9b,_0x5cc00d={'Rjttd':function(_0x16847c,_0xb9ac4e){return _0x16847c(_0xb9ac4e);},'wHZkF':function(_0x4ed48d){return _0x4ed48d();},'JwWnb':_0x4252fd(0x1e1),'Txnom':_0x4252fd(0x201),'OejpC':function(_0x4a64fb,_0x176db7){return _0x4a64fb(_0x176db7);},'pdyIX':function(_0x5146f4,_0x53b574){return _0x5146f4>=_0x53b574;},'kPYNu':_0x4252fd(0x20c),'WqJIH':function(_0x59c1b7,_0x26d411,_0x554972){return _0x59c1b7(_0x26d411,_0x554972);},'iXzzL':function(_0x203654,_0x58c65e){return _0x203654!==_0x58c65e;},'JKQpg':_0x4252fd(0x20d),'NvKhJ':'Not\x20able\x20to\x20import\x20globalSetup','NhOgF':function(_0x2a6aec,_0x2bba78){return _0x2a6aec(_0x2bba78);}},_0x244bf7=child_process[_0x4252fd(0x20a)];if(helper[_0x4252fd(0x203)]())try{_0x5cc00d[_0x4252fd(0x1fc)](mockIsWorkerRedundant);}catch(_0x1b15f6){logger[_0x4252fd(0x1fe)]('Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20'+util[_0x4252fd(0x202)](_0x1b15f6));}child_process[_0x4252fd(0x20a)]=function(){const _0x38afdc=_0x4252fd;return _0x5cc00d[_0x38afdc(0x1ef)](debug,_0x38afdc(0x1ff)+arguments[0x0]),arguments[0x0][_0x38afdc(0x20b)](_0x5cc00d[_0x38afdc(0x1fc)](getForkProcessPath))?arguments[0x0]=require[_0x38afdc(0x1f0)](_0x5cc00d[_0x38afdc(0x1e2)]):logger[_0x38afdc(0x1f2)](_0x38afdc(0x206)+_0x5cc00d[_0x38afdc(0x1fc)](getForkProcessPath)+'\x20is\x20not\x20found'),_0x244bf7['apply'](null,arguments);};if(process['env'][_0x4252fd(0x1e4)]){_0x5cc00d[_0x4252fd(0x1ef)](debug,_0x5cc00d[_0x4252fd(0x1f6)]);try{const {loadGlobalHook:_0xfe2c84}=helper['requirePWModule'][_0x4252fd(0x1ed)](null,_0x5cc00d[_0x4252fd(0x1fc)](getLoadUtilsPath)),_0x183068=_0x5cc00d['OejpC'](getFrameworkVersion,FRAMEWORKS[_0x4252fd(0x1fa)]);let _0x52ff8b=_0x29d2d1;if(_0x5cc00d[_0x4252fd(0x209)](helper['compareVersions'](_0x183068,_0x5cc00d[_0x4252fd(0x1e5)]),0x0)){const _0x42c931={};_0x42c931[_0x4252fd(0x20e)]=_0x29d2d1,_0x52ff8b=_0x42c931;}const _0x25aeb4=await _0x5cc00d[_0x4252fd(0x1e8)](_0xfe2c84,_0x52ff8b,process[_0x4252fd(0x1eb)][_0x4252fd(0x1e4)]);if(_0x5cc00d[_0x4252fd(0x1fb)](typeof _0x25aeb4,_0x5cc00d[_0x4252fd(0x204)]))throw new Error(_0x5cc00d[_0x4252fd(0x1e3)]);return _0x25aeb4[_0x4252fd(0x1ed)](null,arguments);}catch(_0x3b89af){_0x5cc00d[_0x4252fd(0x200)](debug,'Error\x20in\x20calling\x20existing\x20global\x20setup:\x20'+_0x3b89af[_0x4252fd(0x1f4)]());}}};