browserstack-node-sdk 1.50.11 → 1.52.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (195) 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/generated/sdk-messages_pb.d.ts +12 -0
  41. package/generated/sdk-messages_pb.js +97 -1
  42. package/package.json +1 -1
  43. package/src/ai-sdk-node/bundle.js +1 -1
  44. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  45. package/src/bin/codeceptjs/command.js +1 -1
  46. package/src/bin/codeceptjs/helper.js +1 -1
  47. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  48. package/src/bin/cucumber-js/command.js +1 -1
  49. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  50. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  51. package/src/bin/cucumber-js/test-observability.js +1 -1
  52. package/src/bin/cucumber-js/test.setup.js +1 -1
  53. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  54. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  55. package/src/bin/integrations/command.js +1 -1
  56. package/src/bin/integrations/constants.js +1 -1
  57. package/src/bin/jest/command.js +1 -1
  58. package/src/bin/jest/customImplements/customCircus.js +1 -1
  59. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  60. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  61. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  62. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  63. package/src/bin/jest/jest.setup.js +1 -1
  64. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  65. package/src/bin/jest/test-observability/helper.js +1 -1
  66. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  67. package/src/bin/jest/test-observability/test-details.js +1 -1
  68. package/src/bin/jest/test.setup.js +1 -1
  69. package/src/bin/jest/test_before.setup.js +1 -1
  70. package/src/bin/launcher/launcher.js +1 -1
  71. package/src/bin/load/index.js +1 -1
  72. package/src/bin/load/loadUtils.js +1 -1
  73. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  74. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  75. package/src/bin/mocha/command.js +1 -1
  76. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  77. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  78. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  79. package/src/bin/mocha/test.setup.js +1 -1
  80. package/src/bin/nightwatch/command.js +1 -1
  81. package/src/bin/playwright/accessibility-helper.js +1 -1
  82. package/src/bin/playwright/command.js +1 -1
  83. package/src/bin/playwright/globalSetup.js +1 -1
  84. package/src/bin/playwright/mock-process.js +1 -1
  85. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  86. package/src/bin/playwright/patches.js +1 -1
  87. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  88. package/src/bin/playwright/reporter/reporter.js +1 -1
  89. package/src/bin/playwright/reporter/test-details.js +1 -1
  90. package/src/bin/playwright/sessionDetails.js +1 -1
  91. package/src/bin/puppeteer/patches.js +1 -0
  92. package/src/bin/puppeteer/sessionDetails.js +1 -0
  93. package/src/bin/puppeteer/test.setup.js +1 -0
  94. package/src/bin/runner.js +1 -1
  95. package/src/bin/setup.js +1 -1
  96. package/src/bin/test-runner/index.js +1 -1
  97. package/src/bin/test-runner/runTest.js +1 -1
  98. package/src/bin/test-runner/testWorker.js +1 -1
  99. package/src/bin/utils/apiUtilityMethods.js +1 -1
  100. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  101. package/src/bin/utils/constants.js +1 -1
  102. package/src/bin/utils/log4jsAppender.js +1 -1
  103. package/src/bin/utils/logPatcher.js +1 -1
  104. package/src/bin/utils/logReportingAPI.js +1 -1
  105. package/src/bin/utils/playwright-patcher.js +1 -1
  106. package/src/bin/utils/puppeteer-patcher.js +1 -0
  107. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  108. package/src/bin/utils/sharedUtils.js +1 -1
  109. package/src/bin/v2/TestInfo.js +1 -1
  110. package/src/bin/v2/browserstackCLI.js +1 -1
  111. package/src/bin/v2/cliUtils.js +1 -1
  112. package/src/bin/v2/customTagManager.js +1 -1
  113. package/src/bin/v2/eventDispatcher.js +1 -1
  114. package/src/bin/v2/framework/automationFramework.js +1 -1
  115. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  116. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  117. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  118. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  119. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  120. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  121. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -0
  122. package/src/bin/v2/framework/testFramework.js +1 -1
  123. package/src/bin/v2/grpcClient.js +1 -1
  124. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  125. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  126. package/src/bin/v2/instances/trackedContext.js +1 -1
  127. package/src/bin/v2/instances/trackedInstance.js +1 -1
  128. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  129. package/src/bin/v2/modules/baseModule.js +1 -1
  130. package/src/bin/v2/modules/loadTestModule.js +1 -1
  131. package/src/bin/v2/modules/observabilityModule.js +1 -1
  132. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  133. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -0
  134. package/src/bin/v2/modules/testhubModule.js +1 -1
  135. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  136. package/src/bin/v2/state/hookState.js +1 -1
  137. package/src/bin/v2/state/testFrameworkState.js +1 -1
  138. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  139. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  140. package/src/bin/v2/utils/jest-utils.js +1 -1
  141. package/src/bin/vanilla-js/command.js +1 -1
  142. package/src/browserStackSdk.js +1 -1
  143. package/src/helpers/BrowserStackSetup.js +1 -1
  144. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  145. package/src/helpers/accessibility-automation/constants.js +1 -1
  146. package/src/helpers/accessibility-automation/helper.js +1 -1
  147. package/src/helpers/accessibility-automation/scripts.js +1 -1
  148. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  149. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  150. package/src/helpers/ats/constants.js +1 -1
  151. package/src/helpers/ats/helper.js +1 -1
  152. package/src/helpers/capsMapping.js +1 -1
  153. package/src/helpers/central-scanner/constants.js +1 -1
  154. package/src/helpers/central-scanner/helpers.js +1 -1
  155. package/src/helpers/classLogger.js +1 -1
  156. package/src/helpers/globals.js +1 -1
  157. package/src/helpers/helper.js +1 -1
  158. package/src/helpers/logger.js +1 -1
  159. package/src/helpers/metadata.js +1 -1
  160. package/src/helpers/patchHelper.js +1 -1
  161. package/src/helpers/patchHelpers.js +1 -1
  162. package/src/helpers/percy/Percy.js +1 -1
  163. package/src/helpers/percy/PercyBinary.js +1 -1
  164. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  165. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  166. package/src/helpers/percy/PercySDK.js +1 -1
  167. package/src/helpers/percy/index.js +1 -1
  168. package/src/helpers/percy/utils.js +1 -1
  169. package/src/helpers/performance/constants.js +1 -1
  170. package/src/helpers/performance/performance-tester.js +1 -1
  171. package/src/helpers/playwright-helper.js +1 -1
  172. package/src/helpers/processHelper.js +1 -1
  173. package/src/helpers/puppeteer-helper.js +1 -0
  174. package/src/helpers/request-spy.js +1 -1
  175. package/src/helpers/setKeepAlive.js +1 -1
  176. package/src/helpers/test-observability/constants.js +1 -1
  177. package/src/helpers/test-observability/error-handler.js +1 -1
  178. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  179. package/src/helpers/test-observability/sessionHandler.js +1 -1
  180. package/src/helpers/test-observability/utils.js +1 -1
  181. package/src/helpers/test-orchestration/constants.js +1 -1
  182. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  183. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  184. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  185. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  186. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  187. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  188. package/src/helpers/testhub/constants.js +1 -1
  189. package/src/helpers/testhub/testhubHandler.js +1 -1
  190. package/src/helpers/testhub/utils.js +1 -1
  191. package/src/helpers/timeoutPromise.js +1 -1
  192. package/src/helpers/utilities.js +1 -1
  193. package/src/helpers/w3cMapping.js +1 -1
  194. package/src/hubAllocationMethods.js +1 -1
  195. package/src/index.js +1 -1
@@ -0,0 +1 @@
1
+ const a63_0x24d03b=a63_0x1d21;(function(_0x3bea38,_0x21848b){const _0x11757e=a63_0x1d21,_0x2606ff=_0x3bea38();while(!![]){try{const _0x202bd0=-parseInt(_0x11757e(0x1b9))/0x1*(parseInt(_0x11757e(0x210))/0x2)+-parseInt(_0x11757e(0x32e))/0x3+parseInt(_0x11757e(0x216))/0x4+parseInt(_0x11757e(0x26a))/0x5*(-parseInt(_0x11757e(0x283))/0x6)+parseInt(_0x11757e(0x302))/0x7+parseInt(_0x11757e(0x257))/0x8*(-parseInt(_0x11757e(0x1fe))/0x9)+-parseInt(_0x11757e(0x228))/0xa*(-parseInt(_0x11757e(0x352))/0xb);if(_0x202bd0===_0x21848b)break;else _0x2606ff['push'](_0x2606ff['shift']());}catch(_0x23db72){_0x2606ff['push'](_0x2606ff['shift']());}}}(a63_0x5676,0x96258));function a63_0x1d21(_0x45cc38,_0x1aec33){const _0x56768a=a63_0x5676();return a63_0x1d21=function(_0x1d21cb,_0x5708a7){_0x1d21cb=_0x1d21cb-0x178;let _0x4f1ff2=_0x56768a[_0x1d21cb];return _0x4f1ff2;},a63_0x1d21(_0x45cc38,_0x1aec33);}const util=require(a63_0x24d03b(0x2f6)),logger=require(a63_0x24d03b(0x1e5))[a63_0x24d03b(0x321)],helper=require('../../helpers/helper'),puppeteerHelper=require(a63_0x24d03b(0x3a0)),constants=require(a63_0x24d03b(0x2f7)),BrowserstackCLI=require(a63_0x24d03b(0x2b3)),AutomationFrameworkState=require('../v2/state/automationFrameworkState'),HookState=require(a63_0x24d03b(0x272)),AutomationFramework=require(a63_0x24d03b(0x17a)),PlaywrightDriverModule=require(a63_0x24d03b(0x236)),PuppeteerDriverModule=require('../v2/modules/puppeteerDriverModule'),{isFalse}=require('../../helpers/helper'),{FRAMEWORKS}=require(a63_0x24d03b(0x1a7)),PerformanceTester=require(a63_0x24d03b(0x395)),{O11y_EVENTS:PerformanceO11yEvents}=require('../../helpers/performance/constants'),{isAccessibilityAutomationSession}=require(a63_0x24d03b(0x1d2)),{performScanWithRetry}=require(a63_0x24d03b(0x2fe)),JestUtils=require(a63_0x24d03b(0x197));let storedConfiguration=null,detectedModuleName=null,_lastTestName=null,_lastTestStatus=null,_lastTestFailureReason=null;const getWorkerDetails=()=>{const _0x66ae97=a63_0x24d03b,_0x39b85a={};return _0x39b85a[_0x66ae97(0x327)]=undefined,_0x39b85a[_0x66ae97(0x2d7)]={},_0x39b85a[_0x66ae97(0x251)]=![],_0x39b85a[_0x66ae97(0x19b)]=null,_0x39b85a[_0x66ae97(0x26c)]=![],_0x39b85a[_0x66ae97(0x2d7)]['id']=undefined,_0x39b85a[_0x66ae97(0x2d7)][_0x66ae97(0x1ce)]=undefined,global[_0x66ae97(0x369)]||_0x39b85a;},setLastTestInfo=(_0x4ad60e,_0x359553,_0x4a8f55)=>{const _0x593ada=a63_0x24d03b,_0xb99e0a={};_0xb99e0a[_0x593ada(0x37b)]=function(_0x5099fb,_0x33b3bc){return _0x5099fb!==_0x33b3bc;},_0xb99e0a[_0x593ada(0x30c)]=function(_0xbe32ab,_0x13ae6f){return _0xbe32ab!==_0x13ae6f;};const _0x43e992=_0xb99e0a;_0x43e992[_0x593ada(0x37b)](_0x4ad60e,undefined)&&(_lastTestName=_0x4ad60e),_0x43e992['XxuEs'](_0x359553,undefined)&&(_lastTestStatus=_0x359553),_0x43e992[_0x593ada(0x30c)](_0x4a8f55,undefined)&&(_lastTestFailureReason=_0x4a8f55);},closeTracker={'pages':new Map(),'browsers':new Map(),'safetyTimeouts':new Map(),'trackPage'(_0x12c82c){const _0x153843=a63_0x24d03b;if(!this[_0x153843(0x326)][_0x153843(0x390)](_0x12c82c)){const _0x229e7d={};_0x229e7d[_0x153843(0x242)]=![],_0x229e7d[_0x153843(0x25c)]=null,_0x229e7d[_0x153843(0x18e)]=null,_0x229e7d[_0x153843(0x263)]=[],this[_0x153843(0x326)][_0x153843(0x2b0)](_0x12c82c,_0x229e7d);}},'markPageCloseRequested'(_0x5abc33){const _0x121919=a63_0x24d03b,_0x305974={'vBwVq':'[PuppeteerPatcher]\x20Safety\x20timeout\x20triggered\x20for\x20deferred\x20page\x20close','Mtjim':'[PuppeteerPatcher]\x20Page\x20close\x20requested\x20and\x20deferred','htFwY':function(_0x5b9f9b,_0x2884bd,_0x37748c){return _0x5b9f9b(_0x2884bd,_0x37748c);}};this[_0x121919(0x326)]['set'](_0x5abc33,{'closeRequested':!![],'timestamp':Date['now'](),'originalClose':(this[_0x121919(0x326)][_0x121919(0x2eb)](_0x5abc33)||{})[_0x121919(0x18e)]||null,'args':(this[_0x121919(0x326)]['get'](_0x5abc33)||{})[_0x121919(0x263)]||[]}),logger[_0x121919(0x19c)](_0x305974['Mtjim']);const _0x3232d8=_0x305974[_0x121919(0x2df)](setTimeout,async()=>{const _0x239da1=_0x121919;logger[_0x239da1(0x19c)](_0x305974[_0x239da1(0x304)]);try{await closeTracker[_0x239da1(0x1aa)](_0x5abc33);}catch(_0x2954e5){logger[_0x239da1(0x19c)](_0x239da1(0x25a)+util[_0x239da1(0x32a)](_0x2954e5));}},0x2710);this[_0x121919(0x3a7)][_0x121919(0x2b0)](_0x5abc33,_0x3232d8);},'markBrowserCloseRequested'(_0x57403c){const _0x36f142=a63_0x24d03b,_0x30b181={};_0x30b181[_0x36f142(0x373)]=_0x36f142(0x240);const _0x4f76f4=_0x30b181;this['browsers'][_0x36f142(0x2b0)](_0x57403c,{'closeRequested':!![],'timestamp':Date['now'](),'originalClose':(this[_0x36f142(0x25f)]['get'](_0x57403c)||{})['originalClose']||null,'args':(this['browsers'][_0x36f142(0x2eb)](_0x57403c)||{})[_0x36f142(0x263)]||[]}),logger['debug'](_0x4f76f4[_0x36f142(0x373)]);},'wasCloseRequested'(_0x4bb53e){const _0x2cfc2a=a63_0x24d03b,_0x48f6e5=this[_0x2cfc2a(0x326)][_0x2cfc2a(0x2eb)](_0x4bb53e);return _0x48f6e5?_0x48f6e5['closeRequested']:![];},async 'executePageClose'(_0x4f813b){const _0x5cb538=a63_0x24d03b,_0x52a824={'rCSEl':'[PuppeteerPatcher]\x20Executing\x20deferred\x20page\x20close','HWAFC':function(_0x5e9d48,_0x112023){return _0x5e9d48(_0x112023);}},_0x8e3fdb=this[_0x5cb538(0x326)]['get'](_0x4f813b);if(_0x8e3fdb&&_0x8e3fdb[_0x5cb538(0x18e)]){logger[_0x5cb538(0x19c)](_0x52a824[_0x5cb538(0x2f8)]);const _0x104dc1=this[_0x5cb538(0x3a7)][_0x5cb538(0x2eb)](_0x4f813b);_0x104dc1&&(_0x52a824[_0x5cb538(0x343)](clearTimeout,_0x104dc1),this[_0x5cb538(0x3a7)][_0x5cb538(0x239)](_0x4f813b));this[_0x5cb538(0x326)][_0x5cb538(0x239)](_0x4f813b);try{return await _0x8e3fdb[_0x5cb538(0x18e)][_0x5cb538(0x300)](_0x4f813b,_0x8e3fdb[_0x5cb538(0x263)]||[]);}catch(_0x5b4596){logger[_0x5cb538(0x19c)]('[PuppeteerPatcher]\x20Error\x20in\x20deferred\x20page\x20close:\x20'+util[_0x5cb538(0x32a)](_0x5b4596));}}},async 'executeBrowserClose'(_0xf08fbc){const _0x2b424f=a63_0x24d03b,_0x2c4c97={};_0x2c4c97[_0x2b424f(0x191)]=_0x2b424f(0x18d);const _0x4da5fe=_0x2c4c97,_0x27cc6f=this[_0x2b424f(0x25f)][_0x2b424f(0x2eb)](_0xf08fbc);if(_0x27cc6f&&_0x27cc6f['originalClose']){logger['debug'](_0x4da5fe[_0x2b424f(0x191)]),this[_0x2b424f(0x25f)][_0x2b424f(0x239)](_0xf08fbc);try{return await _0x27cc6f['originalClose'][_0x2b424f(0x300)](_0xf08fbc,_0x27cc6f[_0x2b424f(0x263)]||[]);}catch(_0x45a1c5){logger[_0x2b424f(0x19c)](_0x2b424f(0x391)+util[_0x2b424f(0x32a)](_0x45a1c5));}}},'cleanup'(){const _0x2cc643=a63_0x24d03b,_0x5087e7={'DjfhN':function(_0x28afdc,_0x516887){return _0x28afdc(_0x516887);}};for(const _0x5e510d of this[_0x2cc643(0x3a7)][_0x2cc643(0x297)]()){_0x5087e7[_0x2cc643(0x290)](clearTimeout,_0x5e510d);}this['safetyTimeouts'][_0x2cc643(0x394)](),this[_0x2cc643(0x326)]['clear'](),this['browsers'][_0x2cc643(0x394)]();}},getPuppeteerMajorVersion=_0x1d4635=>{const _0x2e31b8=a63_0x24d03b,_0x6916f2={'JvYxr':function(_0x2e89d4,_0x45defa){return _0x2e89d4(_0x45defa);},'lTxiO':function(_0xf3fb7e,_0x524596,_0x1a753c){return _0xf3fb7e(_0x524596,_0x1a753c);}};try{const _0x1fd0ad=require[_0x2e31b8(0x319)](_0x1d4635+_0x2e31b8(0x3c2)),_0x2e730e=_0x6916f2['JvYxr'](require,_0x1fd0ad),_0x3c031c=_0x2e730e[_0x2e31b8(0x2e4)]||'',_0x32a1e0=_0x6916f2[_0x2e31b8(0x316)](parseInt,_0x3c031c[_0x2e31b8(0x398)]('.')[0x0],0xa);return logger[_0x2e31b8(0x19c)](_0x2e31b8(0x1a5)+_0x1d4635+_0x2e31b8(0x2ba)+_0x3c031c+_0x2e31b8(0x3d1)+_0x32a1e0+')'),_0x6916f2['JvYxr'](isNaN,_0x32a1e0)?null:_0x32a1e0;}catch(_0x2bb29f){return logger[_0x2e31b8(0x19c)](_0x2e31b8(0x3a2)+_0x1d4635+_0x2e31b8(0x2ba)+_0x2bb29f['message']),null;}},patchPuppeteerModule=_0x2b1c25=>{const _0x1fb482=a63_0x24d03b,_0x373143={'tOUGg':function(_0xaa10cf,_0xcf3455,_0x3ad067,_0x174eba){return _0xaa10cf(_0xcf3455,_0x3ad067,_0x174eba);},'eRBNA':function(_0x1ba5b4,_0x2f4bef,_0x1abdb9){return _0x1ba5b4(_0x2f4bef,_0x1abdb9);},'FZXWr':function(_0x1855bf,_0x839bc0){return _0x1855bf(_0x839bc0);},'QkAsE':function(_0x1cdd80){return _0x1cdd80();}};try{require['resolve'](_0x2b1c25);}catch(_0x4dc2d3){return logger[_0x1fb482(0x19c)](_0x1fb482(0x1a5)+_0x2b1c25+_0x1fb482(0x1f9)),![];}try{const _0x506b75=_0x373143[_0x1fb482(0x2ca)](require,_0x2b1c25);if(!_0x506b75)return logger[_0x1fb482(0x19c)](_0x1fb482(0x1a5)+_0x2b1c25+'\x20loaded\x20but\x20is\x20null/undefined'),![];detectedModuleName=_0x2b1c25;const _0x4b6873=_0x373143[_0x1fb482(0x2ca)](getPuppeteerMajorVersion,_0x2b1c25);logger[_0x1fb482(0x19c)](_0x1fb482(0x3ad)+_0x2b1c25+_0x1fb482(0x2c4)+_0x4b6873+')'),_0x373143[_0x1fb482(0x337)](patchConnectionPrototype);const _0x224fc4=_0x506b75['launch']?_0x506b75[_0x1fb482(0x2cc)][_0x1fb482(0x1bf)](_0x506b75):null,_0x45b382=_0x506b75[_0x1fb482(0x292)]?_0x506b75[_0x1fb482(0x292)][_0x1fb482(0x1bf)](_0x506b75):null;if(!_0x45b382)return logger[_0x1fb482(0x19c)](_0x1fb482(0x1a5)+_0x2b1c25+'\x20has\x20no\x20connect()\x20method,\x20cannot\x20patch'),![];return _0x224fc4&&(_0x506b75['launch']=async function _0x400de3(_0x3f571b={}){const _0x10c855=_0x1fb482;return _0x373143[_0x10c855(0x1bd)](_patchedLaunch,_0x45b382,_0x224fc4,_0x3f571b);}),_0x506b75['connect']=async function _0x170640(_0x1aded3={}){const _0x1cb438=_0x1fb482;return _0x373143[_0x1cb438(0x22e)](_patchedConnect,_0x45b382,_0x1aded3);},logger['info']('[PuppeteerPatcher]\x20Successfully\x20patched\x20'+_0x2b1c25),!![];}catch(_0x21d384){return logger['debug'](_0x1fb482(0x35b)+_0x2b1c25+':\x20'+util[_0x1fb482(0x32a)](_0x21d384)),![];}},isBrowserStackEndpoint=_0x3f4be4=>{const _0x211dfc=a63_0x24d03b,_0x5d9d3b={};_0x5d9d3b[_0x211dfc(0x301)]=function(_0x5505bb,_0x2a8559){return _0x5505bb!==_0x2a8559;},_0x5d9d3b[_0x211dfc(0x1b4)]=_0x211dfc(0x23f);const _0x1c9651=_0x5d9d3b;if(!_0x3f4be4||_0x1c9651[_0x211dfc(0x301)](typeof _0x3f4be4,_0x1c9651[_0x211dfc(0x1b4)]))return![];return _0x3f4be4[_0x211dfc(0x2ea)](constants[_0x211dfc(0x338)])||_0x3f4be4[_0x211dfc(0x2ea)](constants[_0x211dfc(0x26b)]);},buildCdpEndpointUrl=(_0x5af618,_0x40dd7e)=>{const _0x22019d=a63_0x24d03b,_0x156ee7={};_0x156ee7[_0x22019d(0x3cc)]=function(_0x2a7d7,_0x4cb964){return _0x2a7d7&&_0x4cb964;},_0x156ee7[_0x22019d(0x350)]=function(_0x52fc12,_0x3a4e70){return _0x52fc12>_0x3a4e70;},_0x156ee7[_0x22019d(0x317)]=function(_0x423db1,_0x42505b){return _0x423db1===_0x42505b;},_0x156ee7[_0x22019d(0x282)]='number',_0x156ee7[_0x22019d(0x3b7)]=function(_0xfdff10,_0x4cb6bc){return _0xfdff10||_0x4cb6bc;};const _0x3f755f=_0x156ee7;try{const _0x11e285={};_0x11e285[_0x22019d(0x2a6)]=storedConfiguration?storedConfiguration[_0x22019d(0x2a6)]:undefined,_0x11e285['turboScaleUrl']=storedConfiguration?storedConfiguration[_0x22019d(0x199)]:undefined;const _0x34f0bc=_0x11e285;let _0xe69950=_0x5af618;if(_0x3f755f[_0x22019d(0x3cc)](!_0xe69950,storedConfiguration)){if(storedConfiguration[_0x22019d(0x340)]&&_0x3f755f['piXnZ'](Object[_0x22019d(0x1ad)](storedConfiguration['capability'])['length'],0x0))_0xe69950=storedConfiguration['capability'];else{const _0xbf188f=storedConfiguration['capabilities']||[],_0x2cb36c=_0x3f755f[_0x22019d(0x317)](typeof _0x40dd7e,_0x3f755f[_0x22019d(0x282)])?_0x40dd7e:0x0;_0xe69950=Array[_0x22019d(0x271)](_0xbf188f)&&_0x3f755f[_0x22019d(0x350)](_0xbf188f[_0x22019d(0x377)],_0x2cb36c)?_0xbf188f[_0x2cb36c]:_0xbf188f[0x0]||{};}}const _0x930aea=puppeteerHelper[_0x22019d(0x287)](_0x34f0bc,_0x3f755f[_0x22019d(0x3b7)](_0xe69950,{}));return logger['debug'](_0x22019d(0x348)+_0x930aea['length']+')'),_0x930aea;}catch(_0x3e69a2){return logger[_0x22019d(0x19c)](_0x22019d(0x314)+util['format'](_0x3e69a2)),null;}},safeEvaluate=async(_0x308734,_0x4adb1e)=>{const _0x3e6244=a63_0x24d03b,_0x3e4d50={};_0x3e4d50[_0x3e6244(0x2a5)]=_0x3e6244(0x389),_0x3e4d50[_0x3e6244(0x23e)]=_0x3e6244(0x2db),_0x3e4d50['kRgew']=_0x3e6244(0x382),_0x3e4d50['xmkGs']='Protocol\x20error',_0x3e4d50[_0x3e6244(0x274)]='Execution\x20context\x20was\x20destroyed';const _0x330122=_0x3e4d50;try{return await _0x308734[_0x3e6244(0x35a)](_0x4bca59=>{},_0x4adb1e);}catch(_0x906dc2){const _0x3b2530=_0x906dc2[_0x3e6244(0x179)]||'';if(_0x3b2530[_0x3e6244(0x2ea)](_0x330122[_0x3e6244(0x2a5)])||_0x3b2530[_0x3e6244(0x2ea)](_0x330122['CCFYu'])||_0x3b2530[_0x3e6244(0x2ea)](_0x330122[_0x3e6244(0x2cd)])||_0x3b2530[_0x3e6244(0x2ea)](_0x330122['xmkGs'])||_0x3b2530['includes'](_0x330122[_0x3e6244(0x274)]))return logger[_0x3e6244(0x19c)]('[PuppeteerPatcher]\x20Safe\x20evaluate\x20-\x20session\x20dead:\x20'+_0x3b2530),null;return logger['debug'](_0x3e6244(0x349)+util[_0x3e6244(0x32a)](_0x906dc2)),null;}},markSessionName=async(_0x19031a,_0x3dd973)=>{const _0x36bc73=a63_0x24d03b,_0x49e0e3={'HZeRx':function(_0x551b30,_0x42882e){return _0x551b30||_0x42882e;},'CKIVH':function(_0xd72ceb,_0x4f249e,_0x16bad6){return _0xd72ceb(_0x4f249e,_0x16bad6);},'Ajndp':_0x36bc73(0x1c6)};if(_0x49e0e3[_0x36bc73(0x206)](!_0x19031a,!_0x3dd973))return;if(global['__skipSessionName'])return;try{const _0x6dfbb1={};_0x6dfbb1[_0x36bc73(0x21b)]=_0x3dd973,await _0x49e0e3[_0x36bc73(0x35c)](safeEvaluate,_0x19031a,_0x36bc73(0x3cd)+JSON[_0x36bc73(0x2b8)]({'action':_0x49e0e3[_0x36bc73(0x22b)],'arguments':_0x6dfbb1})),logger[_0x36bc73(0x380)](_0x36bc73(0x1ba)+_0x3dd973);}catch(_0x30f382){logger[_0x36bc73(0x380)]('[PuppeteerPatcher]\x20Error\x20marking\x20session\x20name:\x20'+_0x30f382[_0x36bc73(0x179)]);}},markSessionStatus=async(_0x3e45b1,_0x3efa28,_0x99b20d)=>{const _0x365e5a=a63_0x24d03b,_0x3806f3={'UyYtm':function(_0x3d490f,_0x447574,_0x3715fc){return _0x3d490f(_0x447574,_0x3715fc);},'isWOP':_0x365e5a(0x2cb)};if(!_0x3e45b1)return;if(global[_0x365e5a(0x375)])return;try{const _0x47e37f={};_0x47e37f[_0x365e5a(0x397)]=_0x3efa28;const _0x307ff3=_0x47e37f;_0x99b20d&&(_0x307ff3[_0x365e5a(0x2c1)]=_0x99b20d),await _0x3806f3['UyYtm'](safeEvaluate,_0x3e45b1,'browserstack_executor:\x20'+JSON[_0x365e5a(0x2b8)]({'action':_0x3806f3[_0x365e5a(0x25b)],'arguments':_0x307ff3})),logger[_0x365e5a(0x380)](_0x365e5a(0x3cb)+_0x3efa28);}catch(_0x2e1cc2){logger['info']('[PuppeteerPatcher]\x20Error\x20marking\x20session\x20status:\x20'+_0x2e1cc2['message']);}},getPageFromAutomationFramework=()=>{const _0x2830d9=a63_0x24d03b;try{const _0x4a1d42=AutomationFramework[_0x2830d9(0x2a8)]();if(_0x4a1d42)return AutomationFramework[_0x2830d9(0x2f2)](_0x4a1d42,PuppeteerDriverModule[_0x2830d9(0x254)]);}catch(_0x4020ba){logger['debug'](_0x2830d9(0x38f)+util[_0x2830d9(0x32a)](_0x4020ba));}return null;},patchConnectionPrototype=()=>{const _0x4cab25=a63_0x24d03b,_0x17e669={'RglSl':function(_0x5bbdc3,_0x4e9168){return _0x5bbdc3===_0x4e9168;},'pLlDg':_0x4cab25(0x23f),'lbOQb':function(_0x39712f,_0x3f5837){return _0x39712f(_0x3f5837);},'SbTHa':_0x4cab25(0x2d2),'VzkYQ':'path','YOavO':_0x4cab25(0x238),'SqbGe':function(_0x381d75,_0x11c1de){return _0x381d75(_0x11c1de);},'bNNEj':_0x4cab25(0x1cf),'CFcIX':_0x4cab25(0x28c),'atJPz':_0x4cab25(0x33f),'Wjfxi':_0x4cab25(0x320),'oopzf':_0x4cab25(0x355),'ZJnFV':function(_0x51761c,_0x5e6962){return _0x51761c(_0x5e6962);},'wphOb':'common','ckjUl':function(_0x452a68,_0xc508c6){return _0x452a68(_0xc508c6);},'fBUYz':_0x4cab25(0x193),'mgZAV':_0x4cab25(0x35e),'uGnHd':_0x4cab25(0x30f),'maAoV':_0x4cab25(0x17c),'kmUVM':'_onMessage','oyJtT':function(_0xd90c5,_0x52127f){return _0xd90c5!==_0x52127f;}};try{const _0x5ea102=_0x17e669[_0x4cab25(0x181)](require,_0x17e669['VzkYQ'])[_0x4cab25(0x20c)](require[_0x4cab25(0x319)](_0x17e669[_0x4cab25(0x2ae)]));let _0x250f71;const _0x45c8eb=_0x17e669[_0x4cab25(0x23c)](require,_0x17e669['VzkYQ'])[_0x4cab25(0x208)](_0x5ea102,_0x17e669[_0x4cab25(0x38d)],_0x17e669[_0x4cab25(0x368)],_0x17e669[_0x4cab25(0x37f)],_0x17e669[_0x4cab25(0x296)],_0x17e669[_0x4cab25(0x1c5)]),_0x32ba1e=_0x17e669[_0x4cab25(0x318)](require,_0x17e669['VzkYQ'])[_0x4cab25(0x208)](_0x5ea102,_0x17e669[_0x4cab25(0x38d)],_0x17e669[_0x4cab25(0x368)],_0x17e669[_0x4cab25(0x37f)],_0x17e669[_0x4cab25(0x21f)],_0x17e669[_0x4cab25(0x1c5)]);try{_0x250f71=_0x17e669[_0x4cab25(0x23c)](require,_0x45c8eb)[_0x4cab25(0x2e1)];}catch(_0x2d1083){try{_0x250f71=_0x17e669['ckjUl'](require,_0x32ba1e)['Connection'];}catch(_0x5c0e5f){logger['debug'](_0x17e669[_0x4cab25(0x2a4)]);return;}}if(!_0x250f71){logger[_0x4cab25(0x19c)](_0x17e669[_0x4cab25(0x30a)]);return;}const _0x45642f=_0x17e669[_0x4cab25(0x332)](typeof _0x250f71[_0x4cab25(0x354)][_0x4cab25(0x17c)],_0x17e669['uGnHd'])?_0x17e669[_0x4cab25(0x194)]:_0x17e669['kmUVM'];if(_0x17e669[_0x4cab25(0x362)](typeof _0x250f71[_0x4cab25(0x354)][_0x45642f],_0x17e669[_0x4cab25(0x2fa)])){logger['debug'](_0x4cab25(0x241)+_0x45642f+'\x20method');return;}const _0x160c96=_0x250f71[_0x4cab25(0x354)][_0x45642f];_0x250f71[_0x4cab25(0x354)][_0x45642f]=async function(_0x2e1ab6){const _0x2381b2=_0x4cab25;try{const _0x7bbc32=_0x17e669['RglSl'](typeof _0x2e1ab6,_0x17e669['pLlDg'])?JSON[_0x2381b2(0x372)](_0x2e1ab6):_0x2e1ab6,_0x43433f=_0x7bbc32?.['bStackParams']||_0x7bbc32?.[_0x2381b2(0x27e)]||_0x7bbc32?.[_0x2381b2(0x249)]?.[_0x2381b2(0x27e)]||_0x7bbc32?.[_0x2381b2(0x249)]?.[_0x2381b2(0x376)];!this[_0x2381b2(0x26d)]&&(this[_0x2381b2(0x26d)]=0x0);this[_0x2381b2(0x26d)]++;if(_0x43433f){const _0x1d0356=_0x43433f[_0x2381b2(0x217)],_0x9ece2f=_0x43433f['platformDetails'];if(_0x1d0356){global[_0x2381b2(0x38b)]=_0x1d0356,global['__bstackPlatformDetails']=_0x9ece2f,logger[_0x2381b2(0x380)](_0x2381b2(0x2bb)+_0x1d0356);try{const _0x40e9d3=AutomationFramework[_0x2381b2(0x2a8)]();if(_0x40e9d3){const _0x520d63=_0x17e669[_0x2381b2(0x181)](require,_0x17e669['SbTHa']);AutomationFramework['setState'](_0x40e9d3,_0x520d63[_0x2381b2(0x286)],_0x1d0356),_0x9ece2f&&AutomationFramework[_0x2381b2(0x1e7)](_0x40e9d3,_0x520d63[_0x2381b2(0x1bc)],_0x9ece2f);}}catch(_0x3fefb9){}}_0x17e669[_0x2381b2(0x332)](typeof _0x2e1ab6,_0x17e669[_0x2381b2(0x2dc)])&&(delete _0x7bbc32['bStackParams'],delete _0x7bbc32[_0x2381b2(0x27e)],_0x7bbc32[_0x2381b2(0x249)]&&(delete _0x7bbc32[_0x2381b2(0x249)][_0x2381b2(0x27e)],delete _0x7bbc32[_0x2381b2(0x249)][_0x2381b2(0x376)]),_0x2e1ab6=JSON[_0x2381b2(0x2b8)](_0x7bbc32));}}catch(_0x25a3b9){}return _0x160c96[_0x2381b2(0x3c8)](this,_0x2e1ab6);},logger[_0x4cab25(0x380)](_0x4cab25(0x353)+_0x45642f+'\x20for\x20session\x20ID\x20extraction');}catch(_0x408084){logger[_0x4cab25(0x19c)](_0x4cab25(0x3ce)+util['format'](_0x408084));}},_interceptCdpMessage=_0x39654e=>{const _0x36bba2=a63_0x24d03b,_0x180d0f={'qWpUt':function(_0x18e87d,_0x37d7a4){return _0x18e87d===_0x37d7a4;},'ocCxC':'string','ntJxe':_0x36bba2(0x2f4),'OSrFA':function(_0x413278,_0x25d885){return _0x413278(_0x25d885);},'lsZnD':_0x36bba2(0x2d2)};try{const _0x3fb3db=_0x180d0f['qWpUt'](typeof _0x39654e,_0x180d0f[_0x36bba2(0x1e3)])?JSON[_0x36bba2(0x372)](_0x39654e):_0x39654e;logger['debug'](_0x36bba2(0x2ef)+(_0x3fb3db[_0x36bba2(0x26f)]||_0x180d0f[_0x36bba2(0x24c)]));if(_0x3fb3db&&_0x3fb3db[_0x36bba2(0x376)]){const {sessionId:_0x10584d,platformDetails:_0x182cdf}=_0x3fb3db['bStackParams'];logger[_0x36bba2(0x380)](_0x36bba2(0x37e)+_0x10584d);try{const _0x4cf039=AutomationFramework['getTrackedInstance']();if(_0x4cf039){const _0x9ab6f2=_0x180d0f['OSrFA'](require,_0x180d0f[_0x36bba2(0x3c7)]);_0x10584d&&(AutomationFramework[_0x36bba2(0x1e7)](_0x4cf039,PlaywrightDriverModule[_0x36bba2(0x286)],_0x10584d),AutomationFramework[_0x36bba2(0x1e7)](_0x4cf039,_0x9ab6f2[_0x36bba2(0x286)],_0x10584d)),_0x182cdf&&(AutomationFramework[_0x36bba2(0x1e7)](_0x4cf039,PlaywrightDriverModule['KEY_PLATFORM_DETAILS'],_0x182cdf),AutomationFramework[_0x36bba2(0x1e7)](_0x4cf039,_0x9ab6f2[_0x36bba2(0x1bc)],_0x182cdf));}}catch(_0x21b76d){logger[_0x36bba2(0x19c)](_0x36bba2(0x1ef)+util[_0x36bba2(0x32a)](_0x21b76d));}global['__bstackSessionId']=_0x10584d,global[_0x36bba2(0x2b2)]=_0x182cdf;}}catch(_0x4f6671){}},patchPageForAccessibility=_0x1c5a4d=>{const _0x429108=a63_0x24d03b,_0x37e1c5={'cTwNl':'[PuppeteerPatcher]\x20getAccessibilityResults:\x20AccessibilityModule\x20not\x20available','QsnRT':_0x429108(0x1b0),'ptdQs':function(_0x566d06,_0xcc9241,_0x8df31,_0x335bb4,_0x384a32,_0x6fa2fd){return _0x566d06(_0xcc9241,_0x8df31,_0x335bb4,_0x384a32,_0x6fa2fd);},'Riwfw':function(_0x27641,..._0x53ced2){return _0x27641(..._0x53ced2);},'cZudO':function(_0x435574){return _0x435574();},'ZTLQZ':_0x429108(0x2a7),'HWteL':_0x429108(0x3ab),'HExNa':_0x429108(0x2f1),'rjLou':_0x429108(0x1ca),'ZjaHO':function(_0x2cd9d4,_0x1d3915){return _0x2cd9d4<_0x1d3915;},'UyIOv':function(_0x49ae40,_0x32d0b6){return _0x49ae40-_0x32d0b6;},'hnjgJ':function(_0x231252,_0xec888e){return _0x231252-_0xec888e;},'xpIYX':function(_0x1455e8,_0x2b1b4b){return _0x1455e8!==_0x2b1b4b;},'kqzpV':_0x429108(0x30f),'bgcob':_0x429108(0x37a),'BCreX':_0x429108(0x220),'FFAOo':_0x429108(0x2d4),'Uwnkg':_0x429108(0x2a0),'uIQqs':_0x429108(0x243),'mqDBu':function(_0x390992,_0x192f5e){return _0x390992||_0x192f5e;},'tioBa':function(_0x245b79,_0x4c0162){return _0x245b79<_0x4c0162;},'yvHfb':function(_0x4d499d,_0x19983a){return _0x4d499d-_0x19983a;},'yUsMy':function(_0x15cbd1,_0x55da8a){return _0x15cbd1-_0x55da8a;},'ddKAb':function(_0x1f5e9b,_0x223d0d){return _0x1f5e9b===_0x223d0d;},'fuiLq':_0x429108(0x1b8)};if(!_0x1c5a4d||_0x1c5a4d[_0x429108(0x1c8)])return;try{if(!_0x37e1c5[_0x429108(0x202)](isAccessibilityAutomationSession)){logger['debug'](_0x37e1c5[_0x429108(0x215)]);return;}if(!BrowserstackCLI['getInstance']()['isRunning']()){logger[_0x429108(0x19c)](_0x37e1c5['HWteL']);return;}const _0x10bd72=BrowserstackCLI[_0x429108(0x305)]()[_0x429108(0x279)]();_0x1c5a4d['getAccessibilityResults']=async()=>{const _0x47eaca=_0x429108;try{if(_0x10bd72)return await _0x10bd72[_0x47eaca(0x363)](_0x1c5a4d);return logger[_0x47eaca(0x1b2)](_0x37e1c5[_0x47eaca(0x17e)]),[];}catch(_0xf31b5e){return logger[_0x47eaca(0x19c)](_0x47eaca(0x1fc)+util[_0x47eaca(0x32a)](_0xf31b5e)),[];}},_0x1c5a4d['getAccessibilityResultsSummary']=async()=>{const _0x4e3a1b=_0x429108;try{if(_0x10bd72)return await _0x10bd72['getAccessibilityResultsSummary'](_0x1c5a4d);return logger[_0x4e3a1b(0x1b2)](_0x37e1c5[_0x4e3a1b(0x396)]),{};}catch(_0x180e06){return logger[_0x4e3a1b(0x19c)]('[PuppeteerPatcher]\x20getAccessibilityResultsSummary\x20error:\x20'+util[_0x4e3a1b(0x32a)](_0x180e06)),{};}},_0x1c5a4d[_0x429108(0x1f3)]=async _0x5b2237=>{const _0x23a814=_0x429108;try{return await _0x37e1c5[_0x23a814(0x306)](performScanWithRetry,_0x1c5a4d,null,null,!![],_0x5b2237);}catch(_0x245f5d){return logger[_0x23a814(0x19c)](_0x23a814(0x1da)+util['format'](_0x245f5d)),![];}},logger[_0x429108(0x19c)](_0x37e1c5[_0x429108(0x224)]);if(!_0x10bd72){logger[_0x429108(0x19c)](_0x37e1c5[_0x429108(0x2e0)]),_0x1c5a4d[_0x429108(0x1c8)]=!![];return;}const _0x5ac4b4=_0x10bd72['accessibilityConfig']?.[_0x429108(0x2b7)]?.[_0x429108(0x1a6)]?.[_0x429108(0x1ed)]||[];logger[_0x429108(0x19c)](_0x429108(0x253)+_0x5ac4b4['length']+'\x20commands\x20to\x20wrap\x20from\x20AccessibilityModule');for(const _0x2e4161 of _0x5ac4b4){const _0x2ae358=_0x2e4161[_0x429108(0x21b)],_0x828bf7=_0x2e4161[_0x429108(0x26f)];logger['debug']('[PuppeteerPatcher]\x20Processing\x20command\x20for\x20auto-scan\x20wrapping:\x20'+_0x2ae358+',\x20method:\x20'+_0x828bf7);const _0x4034fc=_0x828bf7['split']('.')[_0x429108(0x36c)](_0x175eb1=>_0x175eb1);let _0x4f532b=_0x1c5a4d;for(let _0x2dddad=0x0;_0x37e1c5[_0x429108(0x366)](_0x2dddad,_0x37e1c5[_0x429108(0x30d)](_0x4034fc[_0x429108(0x377)],0x1));_0x2dddad++){_0x4f532b=_0x4f532b&&_0x4f532b[_0x4034fc[_0x2dddad]];}let _0x795776=_0x4034fc[_0x37e1c5['hnjgJ'](_0x4034fc[_0x429108(0x377)],0x1)];if(!_0x4f532b||_0x37e1c5[_0x429108(0x378)](typeof _0x4f532b[_0x795776],_0x37e1c5[_0x429108(0x29f)])){const _0x16c6b2={};_0x16c6b2[_0x429108(0x37a)]=_0x37e1c5[_0x429108(0x1df)],_0x16c6b2[_0x429108(0x211)]=_0x37e1c5[_0x429108(0x1df)],_0x16c6b2[_0x429108(0x32b)]=_0x37e1c5[_0x429108(0x333)],_0x16c6b2[_0x429108(0x28b)]=_0x37e1c5[_0x429108(0x333)],_0x16c6b2['mouse_down']=_0x37e1c5[_0x429108(0x2ad)],_0x16c6b2[_0x429108(0x260)]=_0x37e1c5[_0x429108(0x33c)],_0x16c6b2[_0x429108(0x370)]=_0x37e1c5[_0x429108(0x31a)],_0x16c6b2[_0x429108(0x31c)]=_0x37e1c5[_0x429108(0x31a)];const _0x4de9fe=_0x16c6b2,_0x2811f9=(_0x2e4161[_0x429108(0x21b)]||_0x828bf7||'')['toString']()[_0x429108(0x31e)](),_0x163c82=_0x4de9fe[_0x2811f9]||_0x4de9fe[_0x37e1c5[_0x429108(0x178)](_0x828bf7,'')[_0x429108(0x31e)]()];if(_0x163c82){const _0x136701=_0x163c82[_0x429108(0x398)]('.')[_0x429108(0x36c)](_0x47a57e=>_0x47a57e);let _0x5666a9=_0x1c5a4d;for(let _0x566429=0x0;_0x37e1c5['tioBa'](_0x566429,_0x37e1c5[_0x429108(0x38c)](_0x136701[_0x429108(0x377)],0x1));_0x566429++){_0x5666a9=_0x5666a9&&_0x5666a9[_0x136701[_0x566429]];}const _0xd8814c=_0x136701[_0x37e1c5[_0x429108(0x34b)](_0x136701[_0x429108(0x377)],0x1)];if(_0x5666a9&&_0x37e1c5[_0x429108(0x212)](typeof _0x5666a9[_0xd8814c],_0x37e1c5[_0x429108(0x29f)]))_0x4f532b=_0x5666a9,_0x795776=_0xd8814c;else continue;}else{logger[_0x429108(0x19c)]('[PuppeteerPatcher]\x20Auto-scan\x20skip:\x20'+_0x828bf7+_0x429108(0x192));continue;}}const _0xb94ec2=_0x4f532b[_0x795776][_0x429108(0x1bf)](_0x4f532b);_0x4f532b[_0x795776]=async function _0x4484e0(..._0x513935){const _0x547c2d=_0x429108,_0x41bd0b=await _0x37e1c5['Riwfw'](_0xb94ec2,..._0x513935);logger[_0x547c2d(0x19c)](_0x547c2d(0x374)+_0x828bf7+_0x547c2d(0x24d)+_0x2ae358);try{if(global['bstackPerformA11yScan'])return _0x41bd0b;global['bstackPerformA11yScan']=!![];const _0x42f37f=_0x37e1c5[_0x547c2d(0x202)](getWorkerDetails),_0x1bd3f2=new JestUtils(),_0x18735f=_0x1bd3f2[_0x547c2d(0x1c7)](_0x42f37f),_0x4b419b=_0x18735f?Object[_0x547c2d(0x2b1)]({},_0x42f37f?.[_0x547c2d(0x2d7)]?.[_0x547c2d(0x1ce)]||{},{'testAnalyticsId':_0x18735f,'id':_0x18735f}):null,_0x286acf={};_0x286acf[_0x547c2d(0x2ce)]=()=>_0x2ae358,_0x286acf['name']=_0x2ae358;const _0x234d48={};_0x234d48[_0x547c2d(0x2d8)]=_0x286acf,_0x234d48[_0x547c2d(0x3bb)]=_0x1c5a4d,_0x234d48[_0x547c2d(0x303)]=_0x2ae358,_0x234d48[_0x547c2d(0x1c3)]=FRAMEWORKS[_0x547c2d(0x3b2)],_0x234d48[_0x547c2d(0x1ce)]=_0x4b419b,await BrowserstackCLI[_0x547c2d(0x305)]()[_0x547c2d(0x229)]()[_0x547c2d(0x218)](AutomationFrameworkState[_0x547c2d(0x1a2)],HookState[_0x547c2d(0x315)],_0x234d48),logger[_0x547c2d(0x19c)]('[PuppeteerPatcher]\x20A11y\x20auto-scan\x20EXECUTE\x20PRE\x20fired\x20for\x20'+_0x828bf7+_0x547c2d(0x245)+_0x2ae358);}catch(_0x14718c){logger[_0x547c2d(0x19c)](_0x547c2d(0x347)+_0x828bf7+':\x20'+_0x14718c[_0x547c2d(0x179)]);}finally{global[_0x547c2d(0x331)]=![];}return _0x41bd0b;},logger[_0x429108(0x19c)]('[PuppeteerPatcher]\x20Auto-scan\x20wrapped\x20'+_0x828bf7+_0x429108(0x245)+_0x2ae358);}_0x1c5a4d[_0x429108(0x1c8)]=!![],logger[_0x429108(0x19c)](_0x37e1c5[_0x429108(0x36a)]);}catch(_0x14d24c){logger['debug'](_0x429108(0x3b9)+util[_0x429108(0x32a)](_0x14d24c));}},patchPage=(_0x422020,_0x513435)=>{const _0x39b54b=a63_0x24d03b,_0x4ce429={'slxin':function(_0x28123c,_0x3d9e3e,_0x3a97ef){return _0x28123c(_0x3d9e3e,_0x3a97ef);},'XDpBM':function(_0x4cebc0){return _0x4cebc0();},'DyYmn':function(_0x19f5a8,_0x3d398d){return _0x19f5a8(_0x3d398d);},'iTNuK':function(_0x5de5ab,_0x1b282e){return _0x5de5ab(_0x1b282e);},'bcurL':_0x39b54b(0x335)};try{if(!_0x422020||_0x422020[_0x39b54b(0x2f9)])return;const _0x39e1d4=_0x4ce429[_0x39b54b(0x268)](getWorkerDetails);_0x39e1d4['pwPage']=_0x422020,_0x422020[_0x39b54b(0x243)]=async(_0x17cafc,_0x11f6e3={})=>{const _0x1e5f9a=_0x39b54b;try{const _0x203e4b={};_0x203e4b[_0x1e5f9a(0x29a)]=_0x17cafc,_0x203e4b['arguments']=_0x11f6e3;const _0x3b29c8=JSON[_0x1e5f9a(0x2b8)](_0x203e4b);return await _0x4ce429[_0x1e5f9a(0x3bd)](safeEvaluate,_0x422020,'browserstack_executor:\x20'+_0x3b29c8);}catch(_0x3840d9){return logger[_0x1e5f9a(0x19c)](_0x1e5f9a(0x324)+util[_0x1e5f9a(0x32a)](_0x3840d9)),null;}},_0x4ce429[_0x39b54b(0x29b)](patchPageClose,_0x422020),_0x4ce429[_0x39b54b(0x29b)](patchPageScreenshot,_0x422020),_0x4ce429[_0x39b54b(0x1b3)](patchPageForAccessibility,_0x422020),_0x422020[_0x39b54b(0x2f9)]=!![],logger[_0x39b54b(0x19c)](_0x4ce429[_0x39b54b(0x28a)]);}catch(_0x2eb29c){logger[_0x39b54b(0x19c)](_0x39b54b(0x264)+util[_0x39b54b(0x32a)](_0x2eb29c));}},patchPageClose=_0x21309f=>{const _0x11053e=a63_0x24d03b,_0x49b7bb={'XRFex':'[PuppeteerPatcher]\x20page.close()\x20intercepted\x20and\x20deferred','CgYCk':function(_0x102970){return _0x102970();},'IXitf':function(_0x33ef70){return _0x33ef70();},'LgfGZ':function(_0x19093a,_0x522f35){return _0x19093a===_0x522f35;},'MKZKG':function(_0x16ca29,_0x3a6856){return _0x16ca29===_0x3a6856;},'oEWKA':_0x11053e(0x39e)};try{if(!_0x21309f||_0x21309f[_0x11053e(0x195)])return;const _0x192ed3=_0x21309f[_0x11053e(0x3b3)];_0x21309f[_0x11053e(0x3b3)]=async function(..._0x319ad3){const _0x40fe0d=_0x11053e;logger[_0x40fe0d(0x19c)](_0x49b7bb[_0x40fe0d(0x27c)]);const _0x19546c=_0x49b7bb[_0x40fe0d(0x399)](getWorkerDetails),_0x5a1fda=_0x49b7bb['IXitf'](getPageFromAutomationFramework),_0x2598bc=_0x49b7bb['LgfGZ'](_0x19546c[_0x40fe0d(0x19b)],this)||_0x49b7bb[_0x40fe0d(0x234)](_0x5a1fda,this);if(_0x2598bc){closeTracker[_0x40fe0d(0x357)](this);const _0x5ad763=closeTracker[_0x40fe0d(0x326)][_0x40fe0d(0x2eb)](this);return _0x5ad763&&(_0x5ad763[_0x40fe0d(0x18e)]=_0x192ed3,_0x5ad763['args']=_0x319ad3),Promise[_0x40fe0d(0x319)]();}return await _0x192ed3[_0x40fe0d(0x300)](this,_0x319ad3);},_0x21309f[_0x11053e(0x195)]=!![],logger['debug'](_0x49b7bb[_0x11053e(0x341)]);}catch(_0x5d29e4){logger['debug']('[PuppeteerPatcher]\x20Error\x20patching\x20page\x20close:\x20'+util[_0x11053e(0x32a)](_0x5d29e4));}},patchPageScreenshot=_0x355bbb=>{const _0x38be9d=a63_0x24d03b,_0x51b24d={'hnMQl':_0x38be9d(0x23d),'ZrPcd':function(_0x3dbe73,_0xbfa887){return _0x3dbe73===_0xbfa887;},'CGPZo':'string','uhQXb':_0x38be9d(0x270),'qDqXU':_0x38be9d(0x2b4),'GSQqi':function(_0x189847,_0x4198d1,_0x58b413){return _0x189847(_0x4198d1,_0x58b413);},'cGRst':function(_0x530660,_0x4f0251){return _0x530660!==_0x4f0251;},'fKEWc':_0x38be9d(0x30f),'dGFdz':_0x38be9d(0x31f),'tbAdj':_0x38be9d(0x284)};try{if(!_0x355bbb)return;const _0x1481c5=Object[_0x38be9d(0x281)](_0x355bbb);if(!_0x1481c5||_0x1481c5[_0x38be9d(0x359)])return;const _0xfb0c02=_0x1481c5['screenshot'];if(_0x51b24d[_0x38be9d(0x1f6)](typeof _0xfb0c02,_0x51b24d[_0x38be9d(0x2d9)])){logger['debug'](_0x51b24d[_0x38be9d(0x2d1)]);return;}_0x1481c5['screenshot']=async function(..._0x275ffd){const _0x2c9732=_0x38be9d,_0x4fcbea=await _0xfb0c02[_0x2c9732(0x300)](this,_0x275ffd);logger[_0x2c9732(0x380)](_0x51b24d['hnMQl']);try{if(_0x4fcbea){const _0xc60c5f=_0x51b24d['ZrPcd'](typeof _0x4fcbea,_0x51b24d[_0x2c9732(0x38e)])?_0x4fcbea:Buffer['from'](_0x4fcbea)[_0x2c9732(0x1a9)](_0x51b24d[_0x2c9732(0x1ff)]);logger[_0x2c9732(0x19c)](_0x51b24d['qDqXU']),await _0x51b24d['GSQqi'](processPageScreenshot,_0xc60c5f,null);}}catch(_0x34d235){logger['debug'](_0x2c9732(0x2c6)+util[_0x2c9732(0x32a)](_0x34d235));}return _0x4fcbea;},_0x1481c5['_bstackScreenshotPatchApplied']=!![],logger['info'](_0x51b24d[_0x38be9d(0x280)]);}catch(_0x5296c6){logger['debug'](_0x38be9d(0x2d3)+util[_0x38be9d(0x32a)](_0x5296c6));}},patchBrowser=(_0x26048b,_0x2a3cef)=>{const _0x19f469=a63_0x24d03b,_0x1e17a3={'KRIBU':_0x19f469(0x3a1),'WhaFa':function(_0x4889ef,..._0x5ef7b2){return _0x4889ef(..._0x5ef7b2);},'AGmwi':function(_0x47f1c1,_0x4a2e66,_0x172373){return _0x47f1c1(_0x4a2e66,_0x172373);},'XqeCd':_0x19f469(0x25d),'Arjey':function(_0x192b6a,..._0xb789b0){return _0x192b6a(..._0xb789b0);},'OgQus':function(_0x53f85d,_0x56bf49,_0x1fc552){return _0x53f85d(_0x56bf49,_0x1fc552);},'OlozM':_0x19f469(0x32d),'cTXqk':function(_0x199b94,_0x40465f){return _0x199b94===_0x40465f;},'Dpjtu':_0x19f469(0x3bb),'npCFh':function(_0x31c199,_0x52a9f5,_0x5a819e){return _0x31c199(_0x52a9f5,_0x5a819e);},'VappE':'[PuppeteerPatcher]\x20Patched\x20page\x20from\x20targetcreated\x20event','YlDEh':function(_0x17b35b){return _0x17b35b();},'tYlip':function(_0x2f55c7,_0x33ccda){return _0x2f55c7>_0x33ccda;},'NILnu':'function','sDSOw':function(_0x3280d8,_0x3012f1){return _0x3280d8===_0x3012f1;},'zTbFr':function(_0x16ac7e,_0x4cdf81){return _0x16ac7e===_0x4cdf81;},'tYhbo':'[PuppeteerPatcher]\x20browser.pages()\x20overridden\x20to\x20patch\x20returned\x20pages','vFvxp':function(_0x468ca1,_0x50e144){return _0x468ca1===_0x50e144;},'MCFAq':'targetcreated','MjkYy':_0x19f469(0x3aa),'watCL':function(_0x581660,_0x46a95d){return _0x581660(_0x46a95d);},'FGPDk':'[PuppeteerPatcher]\x20Browser\x20patched\x20successfully'};try{if(!_0x26048b||_0x26048b[_0x19f469(0x2f9)])return;if(_0x1e17a3[_0x19f469(0x1c9)](typeof _0x26048b['newPage'],_0x1e17a3[_0x19f469(0x33d)])){const _0x31d750=_0x26048b['newPage'][_0x19f469(0x1bf)](_0x26048b);_0x26048b['newPage']=async function(..._0x49e895){const _0x52f3b8=_0x19f469;logger[_0x52f3b8(0x19c)](_0x1e17a3[_0x52f3b8(0x311)]);const _0xa744e4=await _0x1e17a3[_0x52f3b8(0x190)](_0x31d750,..._0x49e895);return _0x1e17a3[_0x52f3b8(0x2a9)](patchPage,_0xa744e4,_0x26048b),_0xa744e4;};}if(_0x1e17a3[_0x19f469(0x1c9)](typeof _0x26048b[_0x19f469(0x258)],_0x1e17a3['NILnu'])){const _0x145679=_0x26048b[_0x19f469(0x258)]['bind'](_0x26048b);_0x26048b[_0x19f469(0x258)]=async function(..._0x4a82cd){const _0x4e008f=_0x19f469;logger[_0x4e008f(0x19c)](_0x1e17a3[_0x4e008f(0x1ea)]);const _0x33c36f=await _0x1e17a3['Arjey'](_0x145679,..._0x4a82cd);return _0x1e17a3[_0x4e008f(0x392)](patchContext,_0x33c36f,_0x26048b),_0x33c36f;};}if(_0x1e17a3[_0x19f469(0x1bb)](typeof _0x26048b[_0x19f469(0x1ec)],_0x1e17a3['NILnu'])){const _0x5931c1=_0x26048b['createIncognitoBrowserContext'][_0x19f469(0x1bf)](_0x26048b);_0x26048b[_0x19f469(0x1ec)]=async function(..._0x225c76){const _0x1a360c=_0x19f469;logger[_0x1a360c(0x19c)](_0x1e17a3[_0x1a360c(0x295)]);const _0x3cf51d=await _0x1e17a3[_0x1a360c(0x312)](_0x5931c1,..._0x225c76);return _0x1e17a3['OgQus'](patchContext,_0x3cf51d,_0x26048b),_0x3cf51d;};}let _0x2176ea=null;_0x1e17a3[_0x19f469(0x299)](typeof _0x26048b[_0x19f469(0x326)],_0x1e17a3[_0x19f469(0x33d)])&&(_0x2176ea=_0x26048b[_0x19f469(0x326)]['bind'](_0x26048b),_0x26048b[_0x19f469(0x326)]=async function(..._0x369a3c){const _0x14022e=_0x19f469,_0x13756e=await _0x1e17a3['WhaFa'](_0x2176ea,..._0x369a3c);return Array[_0x14022e(0x271)](_0x13756e)&&_0x13756e[_0x14022e(0x30e)](_0x177bc8=>patchPage(_0x177bc8,_0x26048b)),_0x13756e;},logger[_0x19f469(0x19c)](_0x1e17a3[_0x19f469(0x342)])),_0x1e17a3[_0x19f469(0x235)](typeof _0x26048b['on'],_0x1e17a3[_0x19f469(0x33d)])&&(_0x26048b['on'](_0x1e17a3[_0x19f469(0x35d)],async _0x51b1d8=>{const _0x60be0a=_0x19f469;try{if(_0x1e17a3['cTXqk'](_0x51b1d8[_0x60be0a(0x37a)](),_0x1e17a3['Dpjtu'])){const _0xb7d28e=await _0x51b1d8['page']();_0xb7d28e&&(_0x1e17a3[_0x60be0a(0x1ab)](patchPage,_0xb7d28e,_0x26048b),logger[_0x60be0a(0x19c)](_0x1e17a3[_0x60be0a(0x1ac)]));}}catch(_0x580e1b){logger[_0x60be0a(0x19c)](_0x60be0a(0x1a0)+util[_0x60be0a(0x32a)](_0x580e1b));}}),logger[_0x19f469(0x19c)](_0x1e17a3[_0x19f469(0x248)])),_0x2176ea&&((async()=>{const _0x3834a5=_0x19f469;try{const _0x15a65e=await _0x1e17a3[_0x3834a5(0x188)](_0x2176ea);Array['isArray'](_0x15a65e)&&_0x1e17a3[_0x3834a5(0x381)](_0x15a65e[_0x3834a5(0x377)],0x0)&&(_0x15a65e[_0x3834a5(0x30e)](_0x29197d=>patchPageScreenshot(_0x29197d)),logger[_0x3834a5(0x19c)]('[PuppeteerPatcher]\x20Applied\x20screenshot\x20patch\x20to\x20'+_0x15a65e[_0x3834a5(0x377)]+_0x3834a5(0x36f)));}catch(_0xf7902a){logger[_0x3834a5(0x19c)]('[PuppeteerPatcher]\x20Error\x20eagerly\x20patching\x20existing\x20pages:\x20'+_0xf7902a['message']);}})()),_0x1e17a3[_0x19f469(0x269)](patchBrowserClose,_0x26048b),_0x26048b[_0x19f469(0x2f9)]=!![],logger[_0x19f469(0x19c)](_0x1e17a3[_0x19f469(0x184)]);}catch(_0xd75fa1){logger[_0x19f469(0x19c)](_0x19f469(0x329)+util[_0x19f469(0x32a)](_0xd75fa1));}},patchContext=(_0x1ebdd6,_0x2f2cef)=>{const _0x4c64b1=a63_0x24d03b,_0x4cb20e={'KbHHf':'[PuppeteerPatcher]\x20context.newPage()\x20intercepted','ofzib':function(_0x1dfd0d,..._0x3e3335){return _0x1dfd0d(..._0x3e3335);},'iQOzt':function(_0x1b5b5a,_0x2a5855,_0x25a1e0){return _0x1b5b5a(_0x2a5855,_0x25a1e0);},'GYuyU':'[PuppeteerPatcher]\x20context.close()\x20intercepted\x20—\x20delegating','CTzHP':function(_0x56dda2,..._0x2dab1d){return _0x56dda2(..._0x2dab1d);},'XIVok':function(_0x26df59,_0x425575){return _0x26df59===_0x425575;},'QQiOn':_0x4c64b1(0x30f),'gScBQ':function(_0x8abc13,_0x3ade71){return _0x8abc13===_0x3ade71;},'sppuV':function(_0x5a8c11,_0xb94b5d){return _0x5a8c11===_0xb94b5d;},'AmALV':_0x4c64b1(0x207)};try{if(!_0x1ebdd6||_0x1ebdd6[_0x4c64b1(0x2f9)])return;if(_0x4cb20e[_0x4c64b1(0x3bf)](typeof _0x1ebdd6[_0x4c64b1(0x345)],_0x4cb20e[_0x4c64b1(0x39b)])){const _0x2c029d=_0x1ebdd6[_0x4c64b1(0x345)]['bind'](_0x1ebdd6);_0x1ebdd6[_0x4c64b1(0x345)]=async function(..._0x5d2cf7){const _0x3ca36d=_0x4c64b1;logger['debug'](_0x4cb20e[_0x3ca36d(0x1e9)]);const _0x86262b=await _0x4cb20e[_0x3ca36d(0x1cc)](_0x2c029d,..._0x5d2cf7);return _0x4cb20e['iQOzt'](patchPage,_0x86262b,_0x2f2cef),_0x86262b;};}if(_0x4cb20e[_0x4c64b1(0x3bf)](typeof _0x1ebdd6['pages'],_0x4cb20e[_0x4c64b1(0x39b)]))try{const _0x5efd6f=_0x1ebdd6[_0x4c64b1(0x326)]();if(_0x5efd6f&&_0x4cb20e['gScBQ'](typeof _0x5efd6f[_0x4c64b1(0x3ae)],_0x4cb20e[_0x4c64b1(0x39b)]))_0x5efd6f['then'](_0x539f68=>{const _0x1dcc0c=_0x4c64b1;Array[_0x1dcc0c(0x271)](_0x539f68)&&_0x539f68[_0x1dcc0c(0x30e)](_0x2c334e=>patchPageScreenshot(_0x2c334e));})[_0x4c64b1(0x231)](_0x2becb3=>{const _0x1adc36=_0x4c64b1;logger[_0x1adc36(0x19c)](_0x1adc36(0x1b1)+_0x2becb3[_0x1adc36(0x179)]);});else Array[_0x4c64b1(0x271)](_0x5efd6f)&&_0x5efd6f[_0x4c64b1(0x30e)](_0x2384e5=>patchPageScreenshot(_0x2384e5));}catch(_0x41d492){logger[_0x4c64b1(0x19c)](_0x4c64b1(0x285)+_0x41d492['message']);}if(_0x4cb20e[_0x4c64b1(0x187)](typeof _0x1ebdd6[_0x4c64b1(0x3b3)],_0x4cb20e[_0x4c64b1(0x39b)])){const _0x1647c6=_0x1ebdd6[_0x4c64b1(0x3b3)][_0x4c64b1(0x1bf)](_0x1ebdd6);_0x1ebdd6[_0x4c64b1(0x3b3)]=async function(..._0x57596a){const _0x17450a=_0x4c64b1;return logger[_0x17450a(0x19c)](_0x4cb20e[_0x17450a(0x37d)]),await _0x4cb20e[_0x17450a(0x3af)](_0x1647c6,..._0x57596a);};}_0x1ebdd6['_bstackPatchApplied']=!![],logger[_0x4c64b1(0x19c)](_0x4cb20e[_0x4c64b1(0x2bc)]);}catch(_0x47e918){logger[_0x4c64b1(0x19c)](_0x4c64b1(0x2c8)+util['format'](_0x47e918));}},patchBrowserClose=_0x33e98e=>{const _0x23c566=a63_0x24d03b,_0x2ebf23={};_0x2ebf23['SfDZQ']=_0x23c566(0x2ee),_0x2ebf23[_0x23c566(0x23a)]='[PuppeteerPatcher]\x20Applied\x20close\x20patch\x20to\x20browser';const _0x25135e=_0x2ebf23;try{if(!_0x33e98e||_0x33e98e[_0x23c566(0x22d)])return;const _0x581d47=_0x33e98e[_0x23c566(0x3b3)][_0x23c566(0x1bf)](_0x33e98e);_0x33e98e[_0x23c566(0x3b3)]=async function(..._0x4be3f7){const _0xbba3e8=_0x23c566;logger[_0xbba3e8(0x19c)](_0x25135e['SfDZQ']),closeTracker['markBrowserCloseRequested'](_0x33e98e);const _0x178624=closeTracker[_0xbba3e8(0x25f)][_0xbba3e8(0x2eb)](_0x33e98e);return _0x178624&&(_0x178624[_0xbba3e8(0x18e)]=_0x581d47,_0x178624[_0xbba3e8(0x263)]=_0x4be3f7),Promise['resolve']();},_0x33e98e['_bstackBrowserClosePatchApplied']=!![],logger['debug'](_0x25135e[_0x23c566(0x23a)]);}catch(_0x473bd3){logger['debug'](_0x23c566(0x310)+util[_0x23c566(0x32a)](_0x473bd3));}},_patchedLaunch=async(_0x2d68ac,_0x5ef9df,_0x31a2d4={})=>{const _0x35ef8e=a63_0x24d03b,_0xbe9abd={'tzwTS':function(_0x2bd3ac,_0x5ae9de){return _0x2bd3ac+_0x5ae9de;},'EglJt':'[PuppeteerPatcher]\x20_patchedLaunch\x20called\x20with\x20options:\x20','LKyAD':function(_0x4a7e37,_0x3814e9){return _0x4a7e37(_0x3814e9);},'nKVzw':_0x35ef8e(0x1d9),'vgHdo':function(_0x394297,_0x4918d1){return _0x394297<_0x4918d1;},'gVqdV':_0x35ef8e(0x19d),'uOqMU':_0x35ef8e(0x1b5),'xojpY':function(_0x1fa82d,_0x241e02){return _0x1fa82d(_0x241e02);},'hlVmx':function(_0x43ecec,_0x3f4cf2){return _0x43ecec(_0x3f4cf2);},'eQpmO':function(_0x4093e3,_0x26858f,_0xb7c0c3){return _0x4093e3(_0x26858f,_0xb7c0c3);},'YFLoP':function(_0x4eadba,_0x309699){return _0x4eadba>_0x309699;},'xItMk':function(_0x2dde62,_0x5343bb,_0x2e11f2){return _0x2dde62(_0x5343bb,_0x2e11f2);},'FwMLJ':function(_0x314791){return _0x314791();},'nNexO':'unknown','OcvoB':_0x35ef8e(0x2ff),'VMsrD':function(_0xef7cfa,_0x6b453b,_0x3a6050){return _0xef7cfa(_0x6b453b,_0x3a6050);},'ncXcx':_0x35ef8e(0x29c),'orfuq':'BrowserStack\x20SDK:\x20Could\x20not\x20build\x20CDP\x20endpoint\x20URL.\x20Ensure\x20browserstack.yml\x20has\x20valid\x20platforms\x20configured.','wQNif':function(_0x1287ba,_0x277cd8){return _0x1287ba!==_0x277cd8;},'vXGfS':function(_0x45d0e6,_0x55e9a0){return _0x45d0e6!==_0x55e9a0;},'ABScW':function(_0x198bc7,_0x2d6d7b){return _0x198bc7!==_0x2d6d7b;},'CObkX':_0x35ef8e(0x3c0),'XjFvc':function(_0x51406d,_0x30468a){return _0x51406d(_0x30468a);},'XuRav':function(_0x5a1253,_0x13da8e,_0x1f6e5d){return _0x5a1253(_0x13da8e,_0x1f6e5d);},'AtdMq':function(_0x56de9f,_0x5eb9eb,_0x51771d){return _0x56de9f(_0x5eb9eb,_0x51771d);},'RFEal':function(_0x24348e){return _0x24348e();},'IpZPV':_0x35ef8e(0x233),'MNFUg':function(_0x44408b,_0x281fdd){return _0x44408b(_0x281fdd);}};logger['info'](_0xbe9abd[_0x35ef8e(0x2fd)](_0xbe9abd['EglJt'],JSON['stringify'](_0x31a2d4)));try{const _0x4b8164=_0x31a2d4['browserWSEndpoint']||'',[_0x329e94,_0x3ff753]=_0x4b8164?_0xbe9abd[_0x35ef8e(0x1f8)](parseCapabilitiesFromWsEndpoint,_0x4b8164):[null,null],_0x3d8e8f=_0x329e94||_0x31a2d4[_0x35ef8e(0x340)]||(Array[_0x35ef8e(0x271)](_0x31a2d4['capabilities'])?_0x31a2d4[_0x35ef8e(0x246)][global[_0x35ef8e(0x1dd)]||0x0]:_0x31a2d4[_0x35ef8e(0x246)])||_0x31a2d4||null;logger[_0x35ef8e(0x19c)]('[PuppeteerPatcher]\x20Parsed\x20capabilities\x20from\x20options:\x20'+JSON[_0x35ef8e(0x2b8)](_0x3d8e8f));_0x3d8e8f&&(global[_0x35ef8e(0x25e)]=_0x3d8e8f);logger[_0x35ef8e(0x19c)]('[PuppeteerPatcher]\x20Resolved\x20platformCaps:\x20'+JSON[_0x35ef8e(0x2b8)](global[_0x35ef8e(0x25e)])),logger['debug'](_0x35ef8e(0x1d4)+_0x3ff753),logger[_0x35ef8e(0x19c)](_0x35ef8e(0x1d3)+_0x4b8164);let _0x3f3a8b=global['__platformCaps'];const _0x99cc54=0x0;try{if(BrowserstackCLI[_0x35ef8e(0x305)]()[_0x35ef8e(0x330)]()&&!BrowserstackCLI[_0x35ef8e(0x305)]()[_0x35ef8e(0x29e)]()){logger[_0x35ef8e(0x19c)](_0xbe9abd[_0x35ef8e(0x21c)]);for(let _0x54383c=0x0;_0xbe9abd['vgHdo'](_0x54383c,0x32);_0x54383c++){await new Promise(_0x301dd4=>setTimeout(_0x301dd4,0x64));if(BrowserstackCLI[_0x35ef8e(0x305)]()[_0x35ef8e(0x29e)]())break;}logger['debug'](_0x35ef8e(0x1c1)+BrowserstackCLI[_0x35ef8e(0x305)]()[_0x35ef8e(0x29e)]());}if(BrowserstackCLI[_0x35ef8e(0x305)]()['isCliEnabled']()&&BrowserstackCLI[_0x35ef8e(0x305)]()[_0x35ef8e(0x29e)]()){const _0x9fbf72=_0xbe9abd[_0x35ef8e(0x2dd)][_0x35ef8e(0x398)]('|');let _0x276c10=0x0;while(!![]){switch(_0x9fbf72[_0x276c10++]){case'0':logger[_0x35ef8e(0x19c)](_0x35ef8e(0x36d)+JSON[_0x35ef8e(0x2b8)](global[_0x35ef8e(0x1c0)])+_0x35ef8e(0x1fd)+JSON['stringify'](_0x3f3a8b));continue;case'1':_0x3f3a8b=global[_0x35ef8e(0x1c0)]||{};continue;case'2':logger[_0x35ef8e(0x19c)](_0x35ef8e(0x1a1)+_0x99cc54);continue;case'3':logger['debug'](_0x35ef8e(0x3a6)+JSON[_0x35ef8e(0x2b8)](global[_0x35ef8e(0x1c0)]));continue;case'4':await BrowserstackCLI[_0x35ef8e(0x305)]()[_0x35ef8e(0x229)]()[_0x35ef8e(0x218)](AutomationFrameworkState[_0x35ef8e(0x3a8)],HookState[_0x35ef8e(0x315)],{'launchcaps':global['__platformCaps']||{},'hubUrl':_0x3ff753||BrowserstackCLI[_0x35ef8e(0x305)]()[_0x35ef8e(0x3c5)]()?.[_0x35ef8e(0x183)]||''});continue;}break;}}}catch(_0xdb45fc){logger['debug']('[PuppeteerPatcher]\x20Error\x20in\x20CREATE\x20PRE\x20event:\x20'+util[_0x35ef8e(0x32a)](_0xdb45fc));}logger[_0x35ef8e(0x19c)](_0x35ef8e(0x1f2)+helper['isBrowserstackUrl'](_0x3ff753));if(!helper[_0x35ef8e(0x291)]()&&!helper[_0x35ef8e(0x1f1)](_0x3ff753)){logger[_0x35ef8e(0x19c)](_0xbe9abd['uOqMU']);const _0x398ef6=await _0xbe9abd[_0x35ef8e(0x1fa)](_0x5ef9df,_0x31a2d4);await _0xbe9abd[_0x35ef8e(0x17d)](getPlatformDetails,_0x398ef6),_0xbe9abd[_0x35ef8e(0x3cf)](patchBrowser,_0x398ef6,_0x31a2d4);try{if(BrowserstackCLI['getInstance']()['isCliEnabled']()&&BrowserstackCLI['getInstance']()[_0x35ef8e(0x29e)]()){let _0xe170d3=null;try{const _0x2bb7b1=await _0x398ef6[_0x35ef8e(0x326)]();_0x2bb7b1&&_0xbe9abd[_0x35ef8e(0x34c)](_0x2bb7b1[_0x35ef8e(0x377)],0x0)&&(_0xe170d3=_0x2bb7b1[0x0],_0xbe9abd[_0x35ef8e(0x255)](patchPage,_0xe170d3,_0x398ef6));}catch(_0x57770b){logger['debug'](_0x35ef8e(0x3c4)+_0x57770b[_0x35ef8e(0x179)]);}const _0x4c216c=_0xbe9abd[_0x35ef8e(0x361)](getWorkerDetails)[_0x35ef8e(0x2d7)]?.['testInfo']||global['__currentTestInfo'],_0x407139={};_0x407139['browser']=_0x31a2d4[_0x35ef8e(0x1be)]||_0x3f3a8b[_0x35ef8e(0x186)]||_0x3f3a8b[_0x35ef8e(0x223)]||_0xbe9abd[_0x35ef8e(0x3b1)],_0x407139[_0x35ef8e(0x189)]=_0x3f3a8b['browserVersion']||_0x3f3a8b[_0x35ef8e(0x2e4)]||_0xbe9abd[_0x35ef8e(0x3b1)],_0x407139['os']=_0x3f3a8b['os']||_0x3f3a8b[_0x35ef8e(0x358)]||_0xbe9abd[_0x35ef8e(0x3b1)],_0x407139['os_version']=_0x3f3a8b['os_version']||_0x3f3a8b[_0x35ef8e(0x294)]||_0xbe9abd['nNexO'],global['__platformCaps']=_0x407139,global[_0x35ef8e(0x1c0)]=global[_0x35ef8e(0x25e)];const _0x28902e={};_0x28902e[_0x35ef8e(0x3bb)]=_0xe170d3,_0x28902e[_0x35ef8e(0x1be)]=_0x398ef6,_0x28902e[_0x35ef8e(0x1ce)]=_0x4c216c,_0x28902e[_0x35ef8e(0x1c3)]=FRAMEWORKS[_0x35ef8e(0x3b2)],_0x28902e[_0x35ef8e(0x289)]=global[_0x35ef8e(0x1c0)],_0x28902e[_0x35ef8e(0x31b)]=global[_0x35ef8e(0x25e)],await BrowserstackCLI[_0x35ef8e(0x305)]()[_0x35ef8e(0x229)]()[_0x35ef8e(0x218)](AutomationFrameworkState[_0x35ef8e(0x3a8)],HookState[_0x35ef8e(0x221)],_0x28902e),logger['debug'](_0xbe9abd[_0x35ef8e(0x19e)]);}}catch(_0x27aab6){logger[_0x35ef8e(0x19c)](_0x35ef8e(0x226)+util[_0x35ef8e(0x32a)](_0x27aab6));}return _0x398ef6;}const _0x1397bc=_0xbe9abd['VMsrD'](buildCdpEndpointUrl,_0x3f3a8b,_0x99cc54);logger['debug']('[PuppeteerPatcher]\x20Built\x20CDP\x20endpoint\x20URL:\x20'+_0x1397bc);if(!_0x1397bc){logger[_0x35ef8e(0x1af)](_0xbe9abd[_0x35ef8e(0x2c9)]);throw new Error(_0xbe9abd['orfuq']);}const _0x2d9def={};_0x2d9def['browserWSEndpoint']=_0x1397bc;const _0x1b5a46=_0x2d9def;_0xbe9abd[_0x35ef8e(0x3a5)](_0x31a2d4[_0x35ef8e(0x201)],undefined)&&(_0x1b5a46[_0x35ef8e(0x201)]=_0x31a2d4['defaultViewport']);_0xbe9abd['vXGfS'](_0x31a2d4[_0x35ef8e(0x2c7)],undefined)&&(_0x1b5a46['slowMo']=_0x31a2d4[_0x35ef8e(0x2c7)]);_0xbe9abd[_0x35ef8e(0x259)](_0x31a2d4[_0x35ef8e(0x3d0)],undefined)&&(_0x1b5a46[_0x35ef8e(0x3d0)]=_0x31a2d4[_0x35ef8e(0x3d0)]);logger[_0x35ef8e(0x19c)](_0xbe9abd[_0x35ef8e(0x35f)]);const _0x3796ec=await _0xbe9abd['LKyAD'](_0x2d68ac,_0x1b5a46);await _0xbe9abd[_0x35ef8e(0x385)](getPlatformDetails,_0x3796ec),_0xbe9abd[_0x35ef8e(0x2e9)](patchBrowser,_0x3796ec,_0x31a2d4);try{if(BrowserstackCLI[_0x35ef8e(0x305)]()[_0x35ef8e(0x330)]()&&BrowserstackCLI['getInstance']()[_0x35ef8e(0x3be)]()){let _0x30170a=null;try{const _0xde7261=await _0x3796ec[_0x35ef8e(0x326)]();_0xde7261&&_0xbe9abd[_0x35ef8e(0x34c)](_0xde7261[_0x35ef8e(0x377)],0x0)&&(_0x30170a=_0xde7261[0x0],_0xbe9abd[_0x35ef8e(0x3ca)](patchPage,_0x30170a,_0x3796ec));}catch(_0xadd7f6){logger[_0x35ef8e(0x19c)](_0x35ef8e(0x3a3)+_0xadd7f6['message']);}const _0x44f34a=_0xbe9abd[_0x35ef8e(0x34d)](getWorkerDetails),_0x4e2107=_0x44f34a[_0x35ef8e(0x2d7)]?.['testInfo']||global['__currentTestInfo'],_0x53f37a={};_0x53f37a['page']=_0x30170a,_0x53f37a[_0x35ef8e(0x1be)]=_0x3796ec,_0x53f37a[_0x35ef8e(0x1ce)]=_0x4e2107,_0x53f37a[_0x35ef8e(0x1c3)]=FRAMEWORKS['JEST'],_0x53f37a['launchCaps']=global['__launchCaps'],_0x53f37a['platformCaps']=global[_0x35ef8e(0x25e)],await BrowserstackCLI[_0x35ef8e(0x305)]()[_0x35ef8e(0x229)]()[_0x35ef8e(0x218)](AutomationFrameworkState[_0x35ef8e(0x3a8)],HookState[_0x35ef8e(0x221)],_0x53f37a),logger[_0x35ef8e(0x19c)](_0xbe9abd[_0x35ef8e(0x351)]);}}catch(_0x5b7058){logger[_0x35ef8e(0x19c)](_0x35ef8e(0x22f)+util[_0x35ef8e(0x32a)](_0x5b7058));}return _0x3796ec;}catch(_0x496be6){return logger[_0x35ef8e(0x19c)](_0x35ef8e(0x307)+util[_0x35ef8e(0x32a)](_0x496be6)),await _0xbe9abd[_0x35ef8e(0x28d)](_0x5ef9df,_0x31a2d4);}},getPlatformDetails=async _0x243cb4=>{const _0x389bd2=a63_0x24d03b,_0x4a470d={};_0x4a470d['YPveE']=function(_0x58be79,_0xd4484b){return _0x58be79+_0xd4484b;},_0x4a470d[_0x389bd2(0x18f)]=function(_0x4f486a,_0x450b66){return _0x4f486a+_0x450b66;};const _0x203979=_0x4a470d;try{const _0x1ebe0f=await _0x243cb4[_0x389bd2(0x2e4)](),_0x5434e3=_0x1ebe0f['indexOf']('/');global[_0x389bd2(0x25e)]={'browser':_0x1ebe0f[_0x389bd2(0x322)](0x0,_0x5434e3),'browser_version':_0x1ebe0f[_0x389bd2(0x322)](_0x203979['YPveE'](_0x5434e3,0x1)),'os':global['__bstackPlatformDetails']?.[_0x389bd2(0x358)],'os_version':global[_0x389bd2(0x2b2)]?.['platformVersion']},global[_0x389bd2(0x1c0)]={...global[_0x389bd2(0x1c0)],'browser':_0x1ebe0f[_0x389bd2(0x322)](0x0,_0x5434e3),'browser_version':_0x1ebe0f[_0x389bd2(0x322)](_0x203979[_0x389bd2(0x18f)](_0x5434e3,0x1)),'os':global[_0x389bd2(0x2b2)]?.[_0x389bd2(0x358)],'os_version':global[_0x389bd2(0x2b2)]?.[_0x389bd2(0x294)]},logger[_0x389bd2(0x19c)]('[PuppeteerPatcher]\x20Session\x20details:\x20'+JSON['stringify'](global[_0x389bd2(0x25e)]));}catch(_0x63f977){logger['debug'](_0x389bd2(0x1a4)+_0x63f977['message']);}},parseCapabilitiesFromWsEndpoint=_0xf29090=>{const _0xee1bca=a63_0x24d03b,_0x210a68={'cWLUH':_0xee1bca(0x1ae),'INuMi':_0xee1bca(0x205),'RLbJk':function(_0x146ee7,_0x2b7c84){return _0x146ee7(_0x2b7c84);}};try{const _0x3f9710=new URL(_0xf29090),_0x518676=_0x3f9710[_0xee1bca(0x1cd)][_0xee1bca(0x2eb)](_0x210a68[_0xee1bca(0x29d)]),_0x2307c3=_0x3f9710[_0xee1bca(0x3b6)]||_0x3f9710['searchParams'][_0xee1bca(0x2eb)](_0x210a68[_0xee1bca(0x20a)]);if(_0x518676){const _0x1b733e=_0x210a68[_0xee1bca(0x2d0)](decodeURIComponent,_0x518676);return[JSON['parse'](_0x1b733e),_0x2307c3];}}catch(_0x440a23){logger[_0xee1bca(0x19c)](_0xee1bca(0x278)+util[_0xee1bca(0x32a)](_0x440a23));}return[null,null];},_patchedConnect=async(_0x41562a,_0x320a40={})=>{const _0x410877=a63_0x24d03b,_0x456fa0={'eAXoK':function(_0x409a32,_0x1503b6){return _0x409a32(_0x1503b6);},'oRDds':'[PuppeteerPatcher]\x20CLI\x20not\x20fully\x20bootstrapped\x20yet,\x20waiting...','vvoGz':function(_0x1415be,_0x24fb9a){return _0x1415be<_0x24fb9a;},'NhwEq':function(_0x5cd452,_0x5333c7){return _0x5cd452||_0x5333c7;},'rSLiJ':_0x410877(0x1b5),'YgWhF':function(_0x232b87,_0x14df68,_0x5ded6a){return _0x232b87(_0x14df68,_0x5ded6a);},'qgmxL':function(_0x5807e2,_0x2ea87c){return _0x5807e2>_0x2ea87c;},'TRLVz':function(_0x3360fd){return _0x3360fd();},'BIsfs':'[PuppeteerPatcher]\x20CREATE\x20POST\x20event\x20completed\x20for\x20local\x20browser','mmcof':_0x410877(0x346),'GfbCn':function(_0x439379,_0x5df3b1){return _0x439379(_0x5df3b1);},'mTPmp':_0x410877(0x2e2),'aGKvq':function(_0xa9130b,_0x23b0da){return _0xa9130b>_0x23b0da;},'wcukk':function(_0x80d9ab,_0x278a56,_0x526422){return _0x80d9ab(_0x278a56,_0x526422);},'CjeVV':_0x410877(0x20d),'nyPFQ':function(_0x24c872,_0x580ae1){return _0x24c872(_0x580ae1);}};logger[_0x410877(0x380)](_0x410877(0x334)+JSON[_0x410877(0x2b8)](_0x320a40));const _0x3e677b={..._0x320a40},_0x23ed9b=_0x3e677b;try{const _0x45402f=_0x320a40[_0x410877(0x356)]||'',[_0x24200c,_0x14a163]=_0x45402f?_0x456fa0['eAXoK'](parseCapabilitiesFromWsEndpoint,_0x45402f):[null,null],_0x3478d0=_0x24200c||_0x320a40[_0x410877(0x340)]||(Array['isArray'](_0x320a40[_0x410877(0x246)])?_0x320a40['capabilities'][global['__bstackPlatformIndex']||0x0]:_0x320a40[_0x410877(0x246)])||null;_0x3478d0&&(global[_0x410877(0x25e)]=_0x3478d0);logger['info'](_0x410877(0x33a)+JSON[_0x410877(0x2b8)](global[_0x410877(0x25e)])),logger[_0x410877(0x380)](_0x410877(0x1d4)+_0x14a163),logger[_0x410877(0x19c)](_0x410877(0x1d3)+_0x45402f);let _0x4c0d75=global[_0x410877(0x25e)];const _0x1a5fa6=0x0;try{if(BrowserstackCLI[_0x410877(0x305)]()[_0x410877(0x330)]()&&!BrowserstackCLI[_0x410877(0x305)]()[_0x410877(0x29e)]()){logger[_0x410877(0x19c)](_0x456fa0[_0x410877(0x232)]);for(let _0x310dba=0x0;_0x456fa0[_0x410877(0x24b)](_0x310dba,0x32);_0x310dba++){await new Promise(_0x475a11=>setTimeout(_0x475a11,0x64));if(BrowserstackCLI[_0x410877(0x305)]()[_0x410877(0x29e)]())break;}logger[_0x410877(0x19c)]('[PuppeteerPatcher]\x20CLI\x20bootstrapped\x20after\x20wait:\x20'+BrowserstackCLI[_0x410877(0x305)]()[_0x410877(0x29e)]());}BrowserstackCLI[_0x410877(0x305)]()['isCliEnabled']()&&BrowserstackCLI[_0x410877(0x305)]()['isBootstrapped']()&&(await BrowserstackCLI[_0x410877(0x305)]()[_0x410877(0x229)]()[_0x410877(0x218)](AutomationFrameworkState[_0x410877(0x3a8)],HookState[_0x410877(0x315)],{'launchcaps':_0x456fa0['NhwEq'](_0x4c0d75,{}),'hubUrl':_0x14a163||BrowserstackCLI[_0x410877(0x305)]()[_0x410877(0x3c5)]()?.[_0x410877(0x183)]||''}),_0x4c0d75=global[_0x410877(0x1c0)]||{},logger[_0x410877(0x19c)]('[PuppeteerPatcher]\x20CREATE\x20PRE\x20event\x20completed,\x20platformIndex='+_0x1a5fa6));}catch(_0x100b50){logger[_0x410877(0x19c)](_0x410877(0x3b5)+util[_0x410877(0x32a)](_0x100b50));}logger['debug'](_0x410877(0x1f2)+_0x14a163+'\x20'+helper[_0x410877(0x1f1)](_0x14a163));if(!helper[_0x410877(0x291)]()&&!helper[_0x410877(0x1f1)](_0x14a163)){logger[_0x410877(0x19c)](_0x456fa0[_0x410877(0x309)]);const _0x5c9bf3=await _0x456fa0['eAXoK'](_0x41562a,_0x320a40);await _0x456fa0[_0x410877(0x367)](getPlatformDetails,_0x5c9bf3),_0x456fa0['YgWhF'](patchBrowser,_0x5c9bf3,_0x320a40);try{if(BrowserstackCLI[_0x410877(0x305)]()[_0x410877(0x330)]()&&BrowserstackCLI[_0x410877(0x305)]()['isBootstrapped']()){let _0x339de3=null;try{const _0xe3bb6=await _0x5c9bf3['pages']();_0xe3bb6&&_0x456fa0[_0x410877(0x38a)](_0xe3bb6[_0x410877(0x377)],0x0)&&(_0x339de3=_0xe3bb6[0x0],_0x456fa0[_0x410877(0x1e2)](patchPage,_0x339de3,_0x5c9bf3));}catch(_0x2171f1){logger[_0x410877(0x19c)]('[PuppeteerPatcher]\x20Could\x20not\x20get\x20initial\x20pages\x20for\x20local\x20browser:\x20'+_0x2171f1[_0x410877(0x179)]);}const _0x4eecf6=_0x456fa0[_0x410877(0x20e)](getWorkerDetails)[_0x410877(0x2d7)]?.[_0x410877(0x1ce)]||global['__currentTestInfo'],_0x492c2b={};_0x492c2b[_0x410877(0x3bb)]=_0x339de3,_0x492c2b[_0x410877(0x1be)]=_0x5c9bf3,_0x492c2b[_0x410877(0x1ce)]=_0x4eecf6,_0x492c2b[_0x410877(0x1c3)]=FRAMEWORKS[_0x410877(0x3b2)],_0x492c2b['launchCaps']=global[_0x410877(0x1c0)],_0x492c2b[_0x410877(0x31b)]=global['__platformCaps'],await BrowserstackCLI[_0x410877(0x305)]()[_0x410877(0x229)]()['trackEvent'](AutomationFrameworkState[_0x410877(0x3a8)],HookState[_0x410877(0x221)],_0x492c2b),logger[_0x410877(0x19c)](_0x456fa0['BIsfs']);}}catch(_0x465497){logger[_0x410877(0x19c)](_0x410877(0x226)+util[_0x410877(0x32a)](_0x465497));}return _0x5c9bf3;}const _0x45f946=_0x456fa0['YgWhF'](buildCdpEndpointUrl,_0x4c0d75,_0x1a5fa6);if(!_0x45f946)return logger[_0x410877(0x19c)](_0x456fa0[_0x410877(0x2e7)]),await _0x456fa0[_0x410877(0x2a1)](_0x41562a,_0x23ed9b);logger[_0x410877(0x380)](_0x410877(0x1a3)+_0x45f946);const _0x4a375c={..._0x23ed9b};_0x4a375c['browserWSEndpoint']=_0x45f946;const _0x3316b9=_0x4a375c;logger[_0x410877(0x19c)](_0x456fa0[_0x410877(0x26e)]);const _0x4a1a33=await _0x456fa0['GfbCn'](_0x41562a,_0x3316b9);await _0x456fa0[_0x410877(0x2a1)](getPlatformDetails,_0x4a1a33),_0x456fa0['YgWhF'](patchBrowser,_0x4a1a33,_0x320a40);try{if(BrowserstackCLI[_0x410877(0x305)]()['isCliEnabled']()&&BrowserstackCLI[_0x410877(0x305)]()[_0x410877(0x3be)]()){let _0x5f5b49=null;try{const _0x405749=await _0x4a1a33[_0x410877(0x326)]();_0x405749&&_0x456fa0[_0x410877(0x39a)](_0x405749[_0x410877(0x377)],0x0)&&(_0x5f5b49=_0x405749[0x0],_0x456fa0[_0x410877(0x24a)](patchPage,_0x5f5b49,_0x4a1a33));}catch(_0x13ab3c){logger[_0x410877(0x19c)](_0x410877(0x3a3)+_0x13ab3c['message']);}const _0x25313c=_0x456fa0[_0x410877(0x20e)](getWorkerDetails),_0x2ab53b=_0x25313c[_0x410877(0x2d7)]?.[_0x410877(0x1ce)]||global['__currentTestInfo'],_0x2cd06a={};_0x2cd06a[_0x410877(0x3bb)]=_0x5f5b49,_0x2cd06a['browser']=_0x4a1a33,_0x2cd06a[_0x410877(0x1ce)]=_0x2ab53b,_0x2cd06a[_0x410877(0x1c3)]=FRAMEWORKS[_0x410877(0x3b2)],_0x2cd06a['launchCaps']=global['__launchCaps'],_0x2cd06a[_0x410877(0x31b)]=global['__platformCaps'],await BrowserstackCLI['getInstance']()[_0x410877(0x229)]()['trackEvent'](AutomationFrameworkState[_0x410877(0x3a8)],HookState['POST'],_0x2cd06a),logger[_0x410877(0x19c)](_0x456fa0[_0x410877(0x256)]);}}catch(_0x4c5908){logger[_0x410877(0x19c)](_0x410877(0x22f)+util['format'](_0x4c5908));}return _0x4a1a33;}catch(_0x2ec92e){return logger[_0x410877(0x19c)](_0x410877(0x2c2)+util[_0x410877(0x32a)](_0x2ec92e)),await _0x456fa0[_0x410877(0x2c0)](_0x41562a,_0x23ed9b);}},markSessionOnBrowserStack=async()=>{const _0x28dd56=a63_0x24d03b,_0x270917={'BrzaN':function(_0x487b73,_0x146371){return _0x487b73===_0x146371;},'ZcgPT':_0x28dd56(0x30f),'AMTpE':function(_0x1fe45b,_0xf155a7){return _0x1fe45b>_0xf155a7;},'ncuap':function(_0x43a134){return _0x43a134();},'vBqAa':_0x28dd56(0x227),'SvWKS':function(_0x32043d){return _0x32043d();},'GlyNj':function(_0x49616c,_0x273f9c,_0x5015ff){return _0x49616c(_0x273f9c,_0x5015ff);},'SPsJV':_0x28dd56(0x2f3),'gjUOg':_0x28dd56(0x1b7),'sCMsI':_0x28dd56(0x1f5),'emkAy':function(_0x58d440,_0x40b3ca){return _0x58d440!==_0x40b3ca;},'gQslO':_0x28dd56(0x230),'KozPV':function(_0x4622ce,_0x303b6b){return _0x4622ce===_0x303b6b;},'XRfpZ':function(_0x234ee5,_0x3c9b10){return _0x234ee5===_0x3c9b10;},'lgOLL':function(_0x2682cd,_0x5356b0){return _0x2682cd===_0x5356b0;},'ebIIR':_0x28dd56(0x383),'yxrsI':function(_0xf62b2,_0x294d1d){return _0xf62b2===_0x294d1d;},'ExZLy':_0x28dd56(0x1e1),'rJtWS':function(_0x429d15,_0x2a4032,_0x574627,_0x453cb8){return _0x429d15(_0x2a4032,_0x574627,_0x453cb8);},'nXrGw':function(_0xae2e6c,_0x399686){return _0xae2e6c||_0x399686;},'liseM':function(_0x14ac1f,_0x2036fc){return _0x14ac1f+_0x2036fc;},'hEifx':_0x28dd56(0x24e)};try{let _0x5586af=null;for(const [_0x35a0ea]of closeTracker[_0x28dd56(0x326)]){if(_0x35a0ea&&_0x270917[_0x28dd56(0x32f)](typeof _0x35a0ea[_0x28dd56(0x19a)],_0x270917[_0x28dd56(0x200)])&&!_0x35a0ea[_0x28dd56(0x19a)]()){_0x5586af=_0x35a0ea;break;}}if(!_0x5586af)for(const [_0x26e8bd]of closeTracker[_0x28dd56(0x25f)]){try{const _0xb5c721=await _0x26e8bd['pages']();if(_0xb5c721&&_0x270917[_0x28dd56(0x1d8)](_0xb5c721[_0x28dd56(0x377)],0x0)){_0x5586af=_0xb5c721[_0x28dd56(0x1e4)](_0x296894=>typeof _0x296894[_0x28dd56(0x19a)]===_0x28dd56(0x30f)&&!_0x296894[_0x28dd56(0x19a)]())||_0xb5c721[0x0];if(_0x5586af)break;}}catch(_0xc21511){logger[_0x28dd56(0x19c)](_0x28dd56(0x2cf)+_0xc21511['message']);}}!_0x5586af&&(_0x5586af=_0x270917[_0x28dd56(0x344)](getPageFromAutomationFramework));if(!_0x5586af){logger[_0x28dd56(0x19c)](_0x270917[_0x28dd56(0x2b5)]);return;}const _0x5f052f=_0x270917[_0x28dd56(0x2d6)](getWorkerDetails),_0x392add=process[_0x28dd56(0x2da)]||_lastTestName||_0x5f052f?.[_0x28dd56(0x2d7)]?.[_0x28dd56(0x1ce)]?.['title']||global[_0x28dd56(0x2fc)];logger['debug'](_0x28dd56(0x250)+_0x392add+'\x22,\x20process._bstackTestName=\x22'+process['_bstackTestName']+'\x22'),await _0x270917[_0x28dd56(0x293)](markSessionName,_0x5586af,_0x392add);let _0x174307=process[_0x28dd56(0x388)]||_lastTestStatus||_0x270917[_0x28dd56(0x336)],_0x7dd7d5=process['_bstackTestFailureReason']||_lastTestFailureReason||'';try{_0x270917[_0x28dd56(0x32f)](_0x174307,_0x270917[_0x28dd56(0x336)])&&global[_0x28dd56(0x196)]&&global[_0x28dd56(0x196)][_0x28dd56(0x3a4)]&&_0x270917[_0x28dd56(0x1d8)](global[_0x28dd56(0x196)][_0x28dd56(0x3a4)][_0x28dd56(0x377)],0x0)&&(_0x174307=_0x270917[_0x28dd56(0x30b)],_0x7dd7d5=global[_0x28dd56(0x196)][_0x28dd56(0x3a4)]['map'](_0x44803f=>_0x44803f&&_0x44803f[_0x28dd56(0x179)]||String(_0x44803f))[_0x28dd56(0x208)](';\x20'));global[_0x28dd56(0x34a)]&&(_0x174307=_0x270917[_0x28dd56(0x30b)],_0x7dd7d5=global['__test_failure_reason']||_0x270917[_0x28dd56(0x1f7)]);try{if(_0x270917[_0x28dd56(0x387)](typeof expect,_0x270917[_0x28dd56(0x33e)])&&_0x270917[_0x28dd56(0x198)](typeof expect[_0x28dd56(0x2f2)],_0x270917['ZcgPT'])){const _0x5d83dd=expect[_0x28dd56(0x2f2)]();_0x5d83dd&&_0x270917[_0x28dd56(0x1d8)](_0x5d83dd[_0x28dd56(0x1e6)],0x0)&&(_0x174307=_0x270917[_0x28dd56(0x30b)],_0x7dd7d5=_0x7dd7d5||_0x5d83dd['numFailingAsserts']+'\x20assertion(s)\x20failed');}}catch(_0x887e06){}const _0x3e3a33=_0x5f052f?.['currentTest']?.['testInfo'];if(_0x3e3a33){if(_0x270917[_0x28dd56(0x3b0)](_0x3e3a33[_0x28dd56(0x397)],_0x270917[_0x28dd56(0x30b)])||_0x270917[_0x28dd56(0x2e6)](_0x3e3a33[_0x28dd56(0x397)],_0x270917[_0x28dd56(0x213)])||_0x270917[_0x28dd56(0x203)](_0x3e3a33['status'],_0x270917[_0x28dd56(0x247)]))_0x174307=_0x270917[_0x28dd56(0x30b)],_0x7dd7d5=_0x7dd7d5||_0x3e3a33['failureMessage']||_0x3e3a33[_0x28dd56(0x1af)]?.[_0x28dd56(0x179)]||_0x270917[_0x28dd56(0x1f7)];else _0x270917[_0x28dd56(0x2e6)](_0x3e3a33['status'],_0x270917[_0x28dd56(0x336)])&&(_0x270917['emkAy'](_0x174307,_0x270917[_0x28dd56(0x30b)])&&(_0x174307=_0x270917[_0x28dd56(0x336)]));}}catch(_0x2a8257){logger[_0x28dd56(0x19c)](_0x28dd56(0x2d5)+_0x2a8257[_0x28dd56(0x179)]);}await _0x270917[_0x28dd56(0x288)](markSessionStatus,_0x5586af,_0x174307,_0x270917[_0x28dd56(0x2bf)](_0x7dd7d5,undefined)),logger[_0x28dd56(0x380)]('[PuppeteerPatcher]\x20Marked\x20session:\x20name=\x22'+_0x392add+_0x28dd56(0x39c)+_0x174307+'\x22'+(_0x7dd7d5?_0x270917['liseM'](_0x270917[_0x28dd56(0x3b4)](_0x270917['hEifx'],_0x7dd7d5),'\x22'):''));}catch(_0x1da3a9){logger[_0x28dd56(0x19c)](_0x28dd56(0x1e8)+(_0x1da3a9[_0x28dd56(0x179)]||_0x1da3a9));}},processPageScreenshot=async function processPageScreenshot(_0x1c1be2,_0x22b0f8){const _0x5c7af0=a63_0x24d03b,_0x22cb12={'arXLq':'processPageScreenshot:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Puppeteer,\x20skipping\x20screenshot\x20event.\x20This\x20may\x20occur\x20if\x20screenshot\x20is\x20taken\x20outside\x20test\x20context.','BXZOW':_0x5c7af0(0x1a8),'ZeRds':_0x5c7af0(0x2e3),'YPnKx':_0x5c7af0(0x209),'YOtZC':function(_0x21dec8){return _0x21dec8();},'BtVUD':function(_0x5e1ace,_0x50f630){return _0x5e1ace(_0x50f630);},'htygg':_0x5c7af0(0x273),'nYHSV':function(_0x2eac5a,_0x4137ff){return _0x2eac5a(_0x4137ff);},'AhliV':_0x5c7af0(0x1fb),'xWqEf':function(_0x36a871,_0x351150){return _0x36a871===_0x351150;},'rDBYA':'function','hPCaf':_0x5c7af0(0x2ab)};return await PerformanceTester['measureWrapper'](PerformanceO11yEvents[_0x5c7af0(0x275)],async()=>{const _0x117f0c=_0x5c7af0;try{if(BrowserstackCLI[_0x117f0c(0x305)]()['isRunning']()){let _0x467abe=global[_0x117f0c(0x276)];if(!_0x467abe){const _0x32a1f6=AutomationFramework[_0x117f0c(0x2a8)]();_0x467abe=AutomationFramework[_0x117f0c(0x2f2)](_0x32a1f6,PuppeteerDriverModule[_0x117f0c(0x3bc)],'');}if(!_0x467abe){logger[_0x117f0c(0x19c)](_0x22cb12[_0x117f0c(0x313)]);return;}if(!_0x467abe['includes'](_0x22cb12[_0x117f0c(0x21e)])){logger['warn']('processPageScreenshot:\x20Invalid\x20testIdentifier\x20format:\x20'+_0x467abe+',\x20skipping\x20screenshot\x20event.\x20Expected\x20format:\x20'+process[_0x117f0c(0x18c)]+_0x117f0c(0x262));return;}const _0x115be7={'test_identifier':_0x467abe,'test_run_uuid':_0x467abe,'timestamp':new Date()[_0x117f0c(0x34f)](),'kind':_0x22cb12[_0x117f0c(0x360)],'message':_0x1c1be2},_0x4cb0c7=BrowserstackCLI[_0x117f0c(0x305)]()['getTestFramework']();if(!_0x4cb0c7){logger[_0x117f0c(0x19c)](_0x22cb12['YPnKx']);return;}const _0x51b2e9=_0x22cb12[_0x117f0c(0x3c9)](getWorkerDetails);_0x51b2e9?.[_0x117f0c(0x21a)]?.[_0x117f0c(0x34e)]&&(_0x115be7[_0x117f0c(0x1c4)]=_0x51b2e9[_0x117f0c(0x21a)][_0x117f0c(0x34e)],logger['debug']('processPageScreenshot:\x20Screenshot\x20taken\x20during\x20hook\x20-\x20hookUUID='+_0x115be7['hook_run_uuid']+_0x117f0c(0x2f0)+_0x467abe));if(!_0x115be7[_0x117f0c(0x1c4)]&&_0x4cb0c7){const _0x59ac9d=_0x4cb0c7[_0x117f0c(0x2c3)]?_0x4cb0c7[_0x117f0c(0x2c3)](_0x467abe):null;_0x59ac9d&&(_0x115be7[_0x117f0c(0x1c4)]=_0x59ac9d['hookUUID'],logger[_0x117f0c(0x19c)]('processPageScreenshot:\x20Screenshot\x20taken\x20during\x20hook\x20(from\x20activeHooks)\x20-\x20hookUUID='+_0x115be7[_0x117f0c(0x1c4)]+_0x117f0c(0x2f0)+_0x467abe));}const _0x4587db=_0x22cb12[_0x117f0c(0x1ee)](require,_0x22cb12[_0x117f0c(0x204)]),_0x51c07b=_0x22cb12[_0x117f0c(0x2ec)](require,_0x22cb12[_0x117f0c(0x325)]),_0x7d211b=_0x4cb0c7[_0x117f0c(0x1db)](_0x4587db[_0x117f0c(0x219)],HookState[_0x117f0c(0x221)]);if(_0x7d211b&&_0x22cb12['xWqEf'](typeof _0x7d211b['addMultipleEntries'],_0x22cb12[_0x117f0c(0x1d1)])){const _0x267558=_0x7d211b[_0x117f0c(0x2aa)]()[_0x117f0c(0x2eb)](_0x467abe)||{},_0x4549ef=_0x267558[_0x51c07b[_0x117f0c(0x364)]]||[],_0xd7b923=[..._0x4549ef,_0x115be7];logger['debug'](_0x117f0c(0x32c)+_0x467abe+_0x117f0c(0x2ac)+_0x4549ef['length']+',\x20Updated\x20logs\x20count:\x20'+_0xd7b923[_0x117f0c(0x377)]);const _0xb0d144={[_0x51c07b[_0x117f0c(0x364)]]:_0xd7b923},_0x4b50c6={};_0x4b50c6[_0x467abe]=_0xb0d144,_0x7d211b[_0x117f0c(0x252)](_0x4b50c6),logger['debug'](_0x117f0c(0x27b)+_0x467abe+_0x117f0c(0x31d)+_0xd7b923[_0x117f0c(0x377)]);return;}logger[_0x117f0c(0x19c)](_0x22cb12['hPCaf']);}}catch(_0xbed1cd){logger[_0x117f0c(0x19c)](_0x117f0c(0x1dc)+util['format'](_0xbed1cd));}})();},executeDeferredCloses=async(_0x3489ab=![])=>{const _0x5a2c85=a63_0x24d03b,_0x21920f={'EAreO':function(_0xed61bb,_0x4eb869){return _0xed61bb+_0x4eb869;},'mZLod':function(_0x141f05,_0x1d3cdf){return _0x141f05+_0x1d3cdf;},'sUydW':_0x5a2c85(0x1f0),'HYFOt':function(_0x536d4f){return _0x536d4f();},'MNWih':'[PuppeteerPatcher]\x20Waiting\x203s\x20for\x20session\x20status\x20propagation','FpCPY':function(_0x1743a9,_0x212c54){return _0x1743a9>_0x212c54;},'oUXQj':_0x5a2c85(0x2a3),'WkCsI':function(_0x4f5802,_0x321591){return _0x4f5802>_0x321591;},'ZxVFU':'[PuppeteerPatcher]\x20Deferred\x20browser\x20close\x20completed','CIckU':_0x5a2c85(0x386)};try{logger[_0x5a2c85(0x19c)](_0x21920f['EAreO'](_0x21920f[_0x5a2c85(0x36e)](_0x21920f[_0x5a2c85(0x2e5)],_0x5a2c85(0x182)+closeTracker['pages']['size']+_0x5a2c85(0x28e)+closeTracker[_0x5a2c85(0x25f)][_0x5a2c85(0x371)]+',\x20'),_0x5a2c85(0x244)+_0x3489ab)),await _0x21920f[_0x5a2c85(0x298)](markSessionOnBrowserStack);!_0x3489ab&&(logger[_0x5a2c85(0x19c)](_0x21920f[_0x5a2c85(0x20b)]),await new Promise(_0xc7f017=>setTimeout(_0xc7f017,0xbb8)));if(_0x21920f[_0x5a2c85(0x2f5)](closeTracker[_0x5a2c85(0x326)]['size'],0x0)){logger[_0x5a2c85(0x19c)]('[PuppeteerPatcher]\x20Executing\x20'+closeTracker['pages'][_0x5a2c85(0x371)]+_0x5a2c85(0x308));const _0x30e9b6=Array[_0x5a2c85(0x3c6)](closeTracker['pages'][_0x5a2c85(0x1ad)]());for(const _0x379666 of _0x30e9b6){try{await closeTracker[_0x5a2c85(0x1aa)](_0x379666),logger[_0x5a2c85(0x19c)](_0x21920f['oUXQj']);}catch(_0x29e81c){logger[_0x5a2c85(0x19c)](_0x5a2c85(0x39d)+util[_0x5a2c85(0x32a)](_0x29e81c));}}}if(_0x21920f[_0x5a2c85(0x2ed)](closeTracker['browsers'][_0x5a2c85(0x371)],0x0)){logger['debug']('[PuppeteerPatcher]\x20Executing\x20'+closeTracker[_0x5a2c85(0x25f)][_0x5a2c85(0x371)]+'\x20deferred\x20browser\x20closes');const _0x2fd1cc=Array[_0x5a2c85(0x3c6)](closeTracker[_0x5a2c85(0x25f)][_0x5a2c85(0x1ad)]());for(const _0x1dfac9 of _0x2fd1cc){try{await Promise[_0x5a2c85(0x39f)]([closeTracker[_0x5a2c85(0x2b6)](_0x1dfac9),new Promise((_0x2d22ff,_0x259971)=>setTimeout(()=>_0x259971(new Error(_0x5a2c85(0x3ac))),0x2710))]),logger['debug'](_0x21920f[_0x5a2c85(0x1c2)]);}catch(_0x54f498){logger[_0x5a2c85(0x19c)](_0x5a2c85(0x185)+util[_0x5a2c85(0x32a)](_0x54f498));}}}logger[_0x5a2c85(0x19c)](_0x21920f['CIckU']);}catch(_0x4e186e){logger[_0x5a2c85(0x19c)](_0x5a2c85(0x1f4)+util[_0x5a2c85(0x32a)](_0x4e186e));}},isPageAvailableForSession=_0x1d868a=>{const _0x45adcf=a63_0x24d03b,_0x1699c7={};_0x1699c7[_0x45adcf(0x266)]=_0x45adcf(0x17f),_0x1699c7[_0x45adcf(0x1d5)]=_0x45adcf(0x328),_0x1699c7[_0x45adcf(0x1b6)]=function(_0xe43364,_0x1326e9){return _0xe43364===_0x1326e9;},_0x1699c7['YNHOH']=_0x45adcf(0x30f);const _0x4b8300=_0x1699c7;if(!_0x1d868a)return logger[_0x45adcf(0x19c)](_0x4b8300['wnGeI']),![];try{if(closeTracker['wasCloseRequested'](_0x1d868a))return logger['debug'](_0x4b8300['OwxUV']),!![];const _0x178ec3=_0x4b8300['tgoYd'](typeof _0x1d868a[_0x45adcf(0x19a)],_0x4b8300[_0x45adcf(0x2bd)])?_0x1d868a[_0x45adcf(0x19a)]():![];return logger[_0x45adcf(0x19c)](_0x45adcf(0x2be)+_0x178ec3),!_0x178ec3;}catch(_0x25a278){return logger['debug'](_0x45adcf(0x379)+util['format'](_0x25a278)),![];}},beforeTestHook=async _0x3ea5f5=>{const _0x500941=a63_0x24d03b,_0x4f8c5a={'hKfij':_0x500941(0x2e8),'eFXsQ':function(_0xbe593d){return _0xbe593d();},'aYOVU':_0x500941(0x180)};try{logger[_0x500941(0x19c)](_0x4f8c5a[_0x500941(0x27f)]);const _0x49df94=_0x4f8c5a['eFXsQ'](getWorkerDetails);_0x49df94[_0x500941(0x2d7)][_0x500941(0x1ce)]=_0x3ea5f5,_0x49df94['isPageFixture']=![],logger[_0x500941(0x19c)]('[PuppeteerPatcher]\x20Before\x20test\x20hook\x20executed:\x20'+(_0x3ea5f5?.['title']||_0x4f8c5a[_0x500941(0x2c5)])+_0x500941(0x277)+_0x49df94[_0x500941(0x2d7)]['id']);}catch(_0x4898de){logger[_0x500941(0x19c)](_0x500941(0x1d0)+util[_0x500941(0x32a)](_0x4898de));}},afterTestHook=async(_0x3323ee,_0x297d52=a63_0x24d03b(0x2f3),_0x135abb=null)=>{const _0x360287=a63_0x24d03b,_0x25d644={'GLjTq':function(_0x85e088){return _0x85e088();},'JWirR':function(_0x11d7e7,_0x138ed9){return _0x11d7e7&&_0x138ed9;},'BKDsU':function(_0x18b121,_0x201df2){return _0x18b121(_0x201df2);},'qAcYJ':function(_0x56bcc1,_0xaa2e7c){return _0x56bcc1(_0xaa2e7c);},'PjJco':_0x360287(0x339),'vLnyT':_0x360287(0x237),'FvrEJ':function(_0x19a889){return _0x19a889();},'rEesQ':_0x360287(0x365),'SYUpe':'[PuppeteerPatcher]\x20Page\x20close\x20NOT\x20requested,\x20preserving\x20page\x20for\x20next\x20test','dCaaK':_0x360287(0x180)};try{const _0x4f40bc=_0x25d644[_0x360287(0x36b)](getPageFromAutomationFramework);if(_0x25d644['JWirR'](_0x4f40bc,_0x3323ee)&&!_0x25d644[_0x360287(0x20f)](isFalse,helper[_0x360287(0x291)]())){if(!_0x25d644[_0x360287(0x261)](isFalse,BrowserstackCLI['getInstance']()[_0x360287(0x3be)]()))try{const _0x2979fb=_0x25d644['GLjTq'](getWorkerDetails),_0x3159ee={'title':_0x3323ee[_0x360287(0x1cb)]||_0x25d644[_0x360287(0x384)],'titlePath':[_0x3323ee[_0x360287(0x1cb)]||_0x25d644[_0x360287(0x384)]],'id':_0x2979fb['currentTest'][_0x360287(0x27a)]||_0x2979fb['currentTest']['id']||_0x25d644['vLnyT'],'testAnalyticsId':_0x2979fb[_0x360287(0x2d7)][_0x360287(0x27a)],'status':_0x297d52,'error':_0x135abb?{'message':_0x135abb}:null,'testPath':_0x3323ee[_0x360287(0x21d)],..._0x3323ee},_0x5eaadb=_0x3159ee,_0x597655={};_0x597655[_0x360287(0x3bb)]=_0x4f40bc,_0x597655[_0x360287(0x1ce)]=_0x5eaadb,_0x597655[_0x360287(0x1c3)]=FRAMEWORKS[_0x360287(0x3b2)],await BrowserstackCLI[_0x360287(0x305)]()[_0x360287(0x229)]()['trackEvent'](AutomationFrameworkState[_0x360287(0x1a2)],HookState['POST'],_0x597655),logger[_0x360287(0x19c)](_0x360287(0x18a)+_0x5eaadb['title']);}catch(_0x524856){logger[_0x360287(0x19c)](_0x360287(0x2b9)+util[_0x360287(0x32a)](_0x524856));}}const _0x12abe8=_0x25d644['FvrEJ'](getWorkerDetails),_0x5c368e={};_0x5c368e['id']=undefined,_0x5c368e['testInfo']=undefined,_0x12abe8[_0x360287(0x2d7)]=_0x5c368e;if(_0x4f40bc&&closeTracker[_0x360287(0x2fb)](_0x4f40bc)){logger[_0x360287(0x19c)](_0x25d644['rEesQ']),_0x12abe8[_0x360287(0x19b)]=null,_0x12abe8['isPageFixture']=![];try{const _0x52857e=AutomationFramework[_0x360287(0x2a8)]();_0x52857e&&AutomationFramework['setState'](_0x52857e,PuppeteerDriverModule[_0x360287(0x254)],null);}catch(_0x5dc61c){logger[_0x360287(0x19c)]('[PuppeteerPatcher]\x20Error\x20clearing\x20page\x20from\x20AF:\x20'+util['format'](_0x5dc61c));}}else logger[_0x360287(0x19c)](_0x25d644[_0x360287(0x214)]);logger[_0x360287(0x19c)](_0x360287(0x1e0)+(_0x3323ee?.[_0x360287(0x1cb)]||_0x25d644[_0x360287(0x3c3)]));}catch(_0x269014){logger[_0x360287(0x19c)]('[PuppeteerPatcher]\x20Error\x20in\x20afterTestHook:\x20'+util[_0x360287(0x32a)](_0x269014));}},initializePuppeteerPatching=_0x36d8f6=>{const _0x2f9936=a63_0x24d03b,_0x20ebe0={'GrFiX':_0x2f9936(0x222),'zwqiC':_0x2f9936(0x37c),'EIixJ':'[PuppeteerPatcher]\x20Initializing\x20Puppeteer\x20patching','JeLLV':function(_0xbaa469,_0x34a89b){return _0xbaa469(_0x34a89b);},'QjtDU':_0x2f9936(0x17b),'oCmtn':_0x2f9936(0x33f),'xAutw':function(_0x1bc986,_0x444512){return _0x1bc986&&_0x444512;},'WMtQP':_0x2f9936(0x27d)};if(detectedModuleName){logger[_0x2f9936(0x19c)](_0x20ebe0[_0x2f9936(0x19f)]);return;}try{if(!_0x36d8f6){logger['debug'](_0x20ebe0['zwqiC']);return;}storedConfiguration=_0x36d8f6,logger[_0x2f9936(0x19c)](_0x20ebe0[_0x2f9936(0x265)]);const _0x391c8e=_0x20ebe0['JeLLV'](patchPuppeteerModule,_0x20ebe0['QjtDU']),_0x19593f=_0x20ebe0['JeLLV'](patchPuppeteerModule,_0x20ebe0['oCmtn']);if(_0x20ebe0[_0x2f9936(0x28f)](!_0x391c8e,!_0x19593f)){logger['debug'](_0x20ebe0[_0x2f9936(0x323)]);return;}logger[_0x2f9936(0x380)](_0x2f9936(0x18b)+detectedModuleName+')');}catch(_0x784809){logger['debug'](_0x2f9936(0x3c1)+util['format'](_0x784809));}},handleProcessExit=async()=>{const _0x135cb6=a63_0x24d03b,_0x28d821={'XZbtW':_0x135cb6(0x1d6),'CJxUS':function(_0x1ccd4b,_0x2c695d){return _0x1ccd4b(_0x2c695d);}};logger[_0x135cb6(0x19c)](_0x28d821[_0x135cb6(0x33b)]);try{await _0x28d821[_0x135cb6(0x225)](executeDeferredCloses,!![]);}catch(_0xb93ab8){logger['debug'](_0x135cb6(0x22a)+util['format'](_0xb93ab8));}};process['on'](a63_0x24d03b(0x2de),handleProcessExit),process['on']('SIGINT',handleProcessExit),process['on'](a63_0x24d03b(0x22c),handleProcessExit);const a63_0x392606={};a63_0x392606[a63_0x24d03b(0x2a2)]=initializePuppeteerPatching,a63_0x392606[a63_0x24d03b(0x3b8)]=beforeTestHook,a63_0x392606[a63_0x24d03b(0x1eb)]=afterTestHook,a63_0x392606['executeDeferredCloses']=executeDeferredCloses,a63_0x392606[a63_0x24d03b(0x23b)]=isPageAvailableForSession,a63_0x392606[a63_0x24d03b(0x3a9)]=closeTracker,a63_0x392606[a63_0x24d03b(0x1de)]=getPageFromAutomationFramework,a63_0x392606['markSessionName']=markSessionName,a63_0x392606[a63_0x24d03b(0x267)]=markSessionStatus,a63_0x392606['markSessionOnBrowserStack']=markSessionOnBrowserStack,a63_0x392606['setLastTestInfo']=setLastTestInfo,a63_0x392606[a63_0x24d03b(0x2af)]=safeEvaluate,a63_0x392606[a63_0x24d03b(0x393)]=getWorkerDetails,a63_0x392606[a63_0x24d03b(0x24f)]=processPageScreenshot,a63_0x392606[a63_0x24d03b(0x3ba)]=isBrowserStackEndpoint,a63_0x392606['buildCdpEndpointUrl']=buildCdpEndpointUrl,module[a63_0x24d03b(0x1d7)]=a63_0x392606;function a63_0x5676(){const _0xba733a=['CJxUS','[PuppeteerPatcher]\x20Error\x20in\x20CREATE\x20POST\x20event\x20for\x20local\x20browser:\x20','[PuppeteerPatcher]\x20markSessionOnBrowserStack:\x20No\x20open\x20page\x20found,\x20skipping','440lZFffv','getAutomationFramework','[PuppeteerPatcher]\x20Error\x20in\x20process\x20exit\x20handler:\x20','Ajndp','SIGTERM','_bstackBrowserClosePatchApplied','eRBNA','[PuppeteerPatcher]\x20Error\x20in\x20CREATE\x20POST\x20event:\x20','undefined','catch','oRDds','[PuppeteerPatcher]\x20CREATE\x20POST\x20event\x20completed','MKZKG','vFvxp','../v2/modules/playwrightDriverModule','jest-test','puppeteer-core/package.json','delete','ysRcO','isPageAvailableForSession','SqbGe','[PuppeteerPatcher]\x20Intercepted\x20page.screenshot()\x20call','CCFYu','string','[PuppeteerPatcher]\x20Browser\x20close\x20requested\x20and\x20deferred','[PuppeteerPatcher]\x20Connection.prototype\x20has\x20no\x20','closeRequested','bstackExec','forceClose:\x20','\x20→\x20command=','capabilities','ExZLy','MjkYy','params','wcukk','vvoGz','ntJxe','\x20executed,\x20triggering\x20accessibility\x20auto-scan\x20→\x20command=',',\x20reason=\x22','processPageScreenshot','[PuppeteerPatcher]\x20markSessionOnBrowserStack:\x20testName=\x22','o11ySyncDone','addMultipleEntries','[PuppeteerPatcher]\x20Auto-scan:\x20','KEY_PAGE_OBJECT','xItMk','CjeVV','8303136uUmlHP','createBrowserContext','ABScW','[PuppeteerPatcher]\x20Error\x20in\x20safety\x20timeout\x20execution:\x20','isWOP','timestamp','[PuppeteerPatcher]\x20browser.createBrowserContext()\x20intercepted','__platformCaps','browsers','mouse_up','qAcYJ',':jest-<hash>','args','[PuppeteerPatcher]\x20Error\x20patching\x20page:\x20','EIixJ','wnGeI','markSessionStatus','XDpBM','watCL','390rOGwqI','BSTACK_ATS_URL','isPageFixture','_bstackMsgCount','mTPmp','method','base64','isArray','../v2/state/hookState','../v2/state/testFrameworkState','EkMsH','TAKE_SCREENSHOT','__jestCurrentTestIdentifier',',\x20ID:\x20','[PuppeteerPatcher]\x20Error\x20parsing\x20capabilities\x20from\x20wsEndpoint:\x20','getAccessibilityModule','testAnalyticsId','processPageScreenshot:\x20Stored\x20screenshot\x20log\x20in\x20instance.data[KEY_LOGS]\x20for\x20testIdentifier:\x20','XRFex','[PuppeteerPatcher]\x20Neither\x20puppeteer\x20nor\x20puppeteer-core\x20could\x20be\x20patched','bsParams','hKfij','tbAdj','getPrototypeOf','LIFVH','70104UQlhYi','[PuppeteerPatcher]\x20Applied\x20screenshot\x20patch\x20to\x20Page.prototype','[PuppeteerPatcher]\x20Error\x20calling\x20context.pages():\x20','KEY_SESSION_ID','generatePuppeteerUrl','rJtWS','launchCaps','bcurL','mouse_move','cjs','MNFUg',',\x20Browsers\x20tracked:\x20','xAutw','DjfhN','isBrowserstackInfra','connect','GlyNj','platformVersion','OlozM','Wjfxi','values','HYFOt','zTbFr','action','DyYmn','[PuppeteerPatcher]\x20Could\x20not\x20build\x20CDP\x20URL\x20—\x20check\x20browserstack.yml\x20platforms\x20config','cWLUH','isBootstrapped','kqzpV','mouse.up','GfbCn','initializePuppeteerPatching','[PuppeteerPatcher]\x20Deferred\x20page\x20close\x20completed','fBUYz','lAmIl','server','[PuppeteerPatcher]\x20Skipping\x20accessibility\x20patch\x20—\x20not\x20an\x20accessibility\x20session','getTrackedInstance','AGmwi','getAllData','processPageScreenshot:\x20Instance\x20not\x20available\x20or\x20addMultipleEntries\x20not\x20available\x20for\x20Jest+Puppeteer\x20screenshot\x20log','.\x20Existing\x20logs\x20count:\x20','FFAOo','YOavO','safeEvaluate','set','assign','__bstackPlatformDetails','../v2/browserstackCLI','[PuppeteerPatcher]\x20Forwarding\x20screenshot\x20to\x20BrowserStack\x20observability','vBqAa','executeBrowserClose','options','stringify','[PuppeteerPatcher]\x20Error\x20in\x20event\x20system\x20session\x20handling:\x20','\x20version:\x20','[PuppeteerPatcher]\x20Extracted\x20sessionId\x20from\x20CDP:\x20','AmALV','YNHOH','[PuppeteerPatcher]\x20Page\x20closed\x20status:\x20','nXrGw','nyPFQ','reason','[PuppeteerPatcher]\x20Error\x20in\x20patchedConnect:\x20','getActiveHook','\x20(major\x20version:\x20','aYOVU','[PuppeteerPatcher]\x20Error\x20in\x20screenshot\x20interception:\x20','slowMo','[PuppeteerPatcher]\x20Error\x20patching\x20context:\x20','ncXcx','FZXWr','setSessionStatus','launch','kRgew','getName','[PuppeteerPatcher]\x20Could\x20not\x20get\x20pages\x20from\x20browser:\x20','RLbJk','dGFdz','../v2/modules/puppeteerDriverModule','[PuppeteerPatcher]\x20Error\x20patching\x20page\x20screenshot:\x20','mouse.down','[PuppeteerPatcher]\x20Error\x20determining\x20test\x20status:\x20','SvWKS','currentTest','command','fKEWc','_bstackTestName','Target\x20closed','pLlDg','gVqdV','exit','htFwY','rjLou','Connection','[PuppeteerPatcher]\x20Replaced\x20browserWSEndpoint\x20with\x20BrowserStack\x20URL','TEST_SCREENSHOT','version','sUydW','lgOLL','mmcof','[PuppeteerPatcher]\x20Executing\x20before\x20test\x20hook','XuRav','includes','get','nYHSV','WkCsI','[PuppeteerPatcher]\x20browser.close()\x20intercepted\x20and\x20deferred','[PuppeteerPatcher]\x20Received\x20CDP\x20message:\x20',',\x20testIdentifier=','[PuppeteerPatcher]\x20Injected\x20accessibility\x20manual\x20API\x20onto\x20page','getState','passed','unknown\x20method','FpCPY','util','./constants','rCSEl','_bstackPatchApplied','uGnHd','wasCloseRequested','browserstackTestName','tzwTS','../../helpers/accessibility-automation/accessibilityRetryHelper','[PuppeteerPatcher]\x20CREATE\x20POST\x20event\x20completed\x20for\x20local\x20browser','apply','cEFtY','667520HPddaa','commandName','vBwVq','getInstance','ptdQs','[PuppeteerPatcher]\x20Error\x20in\x20patchedLaunch,\x20falling\x20back\x20to\x20original:\x20','\x20deferred\x20page\x20closes','rSLiJ','mgZAV','gjUOg','XxuEs','UyIOv','forEach','function','[PuppeteerPatcher]\x20Error\x20patching\x20browser\x20close:\x20','KRIBU','Arjey','arXLq','[PuppeteerPatcher]\x20Error\x20building\x20CDP\x20URL:\x20','PRE','lTxiO','RMDst','ZJnFV','resolve','uIQqs','platformCaps','exec',',\x20totalLogs:\x20','toLowerCase','[PuppeteerPatcher]\x20screenshot\x20not\x20found\x20on\x20Page\x20prototype,\x20skipping\x20screenshot\x20patch','cdp','winstonLogger','substring','WMtQP','[PuppeteerPatcher]\x20bstackExec\x20error:\x20','AhliV','pages','workerInfo','[PuppeteerPatcher]\x20Page\x20close\x20deferred,\x20still\x20available\x20for\x20session\x20ops','[PuppeteerPatcher]\x20Error\x20patching\x20browser:\x20','format','mouse_drag','processPageScreenshot:\x20Adding\x20screenshot\x20log\x20to\x20instance.data\x20for\x20testIdentifier:\x20','[PuppeteerPatcher]\x20browser.createIncognitoBrowserContext()\x20intercepted','3349125HUeofX','BrzaN','isCliEnabled','bstackPerformA11yScan','RglSl','BCreX','[PuppeteerPatcher]\x20Intercepted\x20puppeteer.connect()\x20call\x20','[PuppeteerPatcher]\x20Page\x20patched\x20successfully','SPsJV','QkAsE','BSTACK_URL','Unknown\x20Test','[PuppeteerPatcher]\x20Resolved\x20platformCaps:\x20','XZbtW','Uwnkg','NILnu','gQslO','puppeteer','capability','oEWKA','tYhbo','HWAFC','ncuap','newPage','[PuppeteerPatcher]\x20Could\x20not\x20build\x20CDP\x20URL,\x20using\x20original\x20connect','[PuppeteerPatcher]\x20A11y\x20auto-scan\x20error\x20for\x20page.','[PuppeteerPatcher]\x20Built\x20CDP\x20endpoint\x20URL\x20(length:\x20','[PuppeteerPatcher]\x20Safe\x20evaluate\x20error:\x20','__test_failure','yUsMy','YFLoP','RFEal','hookUUID','toISOString','piXnZ','IpZPV','884873MbJmxj','[PuppeteerPatcher]\x20Patched\x20Connection.prototype.','prototype','Connection.js','browserWSEndpoint','markPageCloseRequested','platformName','_bstackScreenshotPatchApplied','evaluate','[PuppeteerPatcher]\x20Error\x20patching\x20','CKIVH','MCFAq','[PuppeteerPatcher]\x20Connection\x20class\x20is\x20null','CObkX','ZeRds','FwMLJ','oyJtT','getAccessibilityResults','KEY_LOGS','[PuppeteerPatcher]\x20Page\x20close\x20was\x20requested,\x20clearing\x20page\x20references','ZjaHO','eAXoK','CFcIX','__workerDetails','fuiLq','GLjTq','filter','[PuppeteerPatcher]\x20Extracted\x20capabilities\x20from\x20CREATE\x20PRE\x20result:\x20','mZLod','\x20pre-existing\x20page(s)','execute','size','parse','Fvclz','[PuppeteerPatcher]\x20page.','__skipSessionStatus','bStackParams','length','xpIYX','[PuppeteerPatcher]\x20Error\x20checking\x20page\x20availability:\x20','type','CPLBc','[PuppeteerPatcher]\x20No\x20configuration\x20provided,\x20skipping','GYuyU','[PuppeteerPatcher]\x20Received\x20bStackParams:\x20sessionId=','atJPz','info','tYlip','Session\x20closed','timedout','PjJco','XjFvc','[PuppeteerPatcher]\x20Completed\x20execution\x20of\x20all\x20deferred\x20close\x20operations','emkAy','_bstackTestStatus','Connection\x20closed','qgmxL','__bstackSessionId','yvHfb','bNNEj','CGPZo','[PuppeteerPatcher]\x20Error\x20getting\x20page\x20from\x20AutomationFramework:\x20','has','[PuppeteerPatcher]\x20Error\x20in\x20deferred\x20browser\x20close:\x20','OgQus','getWorkerDetails','clear','../../helpers/performance/performance-tester','QsnRT','status','split','CgYCk','aGKvq','QQiOn','\x22,\x20status=\x22','[PuppeteerPatcher]\x20Error\x20executing\x20deferred\x20page\x20close:\x20','[PuppeteerPatcher]\x20Applied\x20close\x20patch\x20to\x20page','race','../../helpers/puppeteer-helper','[PuppeteerPatcher]\x20browser.newPage()\x20intercepted','[PuppeteerPatcher]\x20Could\x20not\x20read\x20','[PuppeteerPatcher]\x20Could\x20not\x20get\x20initial\x20pages:\x20','errors','wQNif','[PuppeteerPatcher]\x20CREATE\x20PRE\x20event\x20fired,\x20received\x20global.__launchCaps:\x20','safetyTimeouts','CREATE','closeTracker','[PuppeteerPatcher]\x20Registered\x20targetcreated\x20listener\x20for\x20page\x20patching','[PuppeteerPatcher]\x20Skipping\x20accessibility\x20patch\x20—\x20CLI\x20not\x20running','Browser\x20close\x20timeout\x20(10s)','[PuppeteerPatcher]\x20Patching\x20','then','CTzHP','XRfpZ','nNexO','JEST','close','liseM','[PuppeteerPatcher]\x20Error\x20in\x20CREATE\x20PRE\x20event:\x20','hostname','qzoCF','beforeTestHook','[PuppeteerPatcher]\x20Error\x20in\x20patchPageForAccessibility:\x20','isBrowserStackEndpoint','page','KEY_TEST_ID','slxin','isRunning','XIVok','[PuppeteerPatcher]\x20Connecting\x20to\x20BrowserStack\x20CDP\x20endpoint','[PuppeteerPatcher]\x20Error\x20initializing\x20patching:\x20','/package.json','dCaaK','[PuppeteerPatcher]\x20Could\x20not\x20get\x20initial\x20pages\x20for\x20local\x20browser:\x20','getConfig','from','lsZnD','call','YOtZC','AtdMq','[PuppeteerPatcher]\x20Marked\x20session\x20status:\x20','QaVTv','browserstack_executor:\x20','[PuppeteerPatcher]\x20Error\x20patching\x20Connection\x20prototype:\x20','eQpmO','protocolTimeout','\x20(major:\x20','mqDBu','message','../v2/framework/automationFramework','puppeteer-core','onMessage','hlVmx','cTwNl','[PuppeteerPatcher]\x20Page\x20is\x20null/undefined,\x20not\x20available','Unknown','lbOQb','Pages\x20tracked:\x20','hubUrl','FGPDk','[PuppeteerPatcher]\x20Error\x20executing\x20deferred\x20browser\x20close:\x20','browserName','sppuV','YlDEh','browser_version','[PuppeteerPatcher]\x20EXECUTE\x20POST\x20event\x20completed\x20for\x20test:\x20','[PuppeteerPatcher]\x20Puppeteer\x20patching\x20initialized\x20(module:\x20','pid','[PuppeteerPatcher]\x20Executing\x20deferred\x20browser\x20close','originalClose','qGGxc','WhaFa','dloZM','\x20not\x20a\x20function\x20on\x20page','[PuppeteerPatcher]\x20Could\x20not\x20find\x20Connection\x20class','maAoV','_bstackClosePatchApplied','testContext','../v2/utils/jest-utils','KozPV','turboScaleUrl','isClosed','pwPage','debug','4|3|1|0|2','OcvoB','GrFiX','[PuppeteerPatcher]\x20Error\x20patching\x20targetcreated\x20page:\x20','[PuppeteerPatcher]\x20CREATE\x20PRE\x20event\x20completed,\x20platformIndex=','EXECUTE','[PuppeteerPatcher]\x20Built\x20CDP\x20URL:\x20','[PuppeteerPatcher]\x20Could\x20not\x20get\x20browser\x20version:\x20','[PuppeteerPatcher]\x20','commandsToWrap','../../helpers/test-observability/constants',':jest-','toString','executePageClose','npCFh','VappE','keys','caps','error','[PuppeteerPatcher]\x20getAccessibilityResultsSummary:\x20AccessibilityModule\x20not\x20available','[PuppeteerPatcher]\x20Error\x20patching\x20context\x20pages\x20(async):\x20','warn','iTNuK','dCzOP','[PuppeteerPatcher]\x20browserstackAutomation:\x20false\x20—\x20launching\x20locally,\x20skipping\x20BrowserStack\x20CDP','tgoYd','failed','[PuppeteerPatcher]\x20Accessibility\x20patch\x20applied\x20to\x20page\x20(manual\x20API\x20+\x20auto-scan)','376617apyUZw','[PuppeteerPatcher]\x20Marked\x20session\x20name:\x20','sDSOw','KEY_PLATFORM_DETAILS','tOUGg','browser','bind','__launchCaps','[PuppeteerPatcher]\x20CLI\x20bootstrapped\x20after\x20wait:\x20','ZxVFU','testFramework','hook_run_uuid','oopzf','setSessionName','getTestIdentifier','_bstackA11yPatchApplied','cTXqk','[PuppeteerPatcher]\x20Auto-scan\x20skipped\x20—\x20no\x20AccessibilityModule','title','ofzib','searchParams','testInfo','lib','[PuppeteerPatcher]\x20Error\x20in\x20beforeTestHook:\x20','rDBYA','../../helpers/accessibility-automation/helper','[PuppeteerPatcher]\x20Injecting\x20BrowserStack\x20CDP\x20URL\x20into\x20connect()\x20','[PuppeteerPatcher]\x20Parsed\x20host\x20from\x20wsEndpoint:\x20','OwxUV','[PuppeteerPatcher]\x20Process\x20exit\x20handler\x20—\x20executing\x20remaining\x20deferred\x20closes','exports','AMTpE','[PuppeteerPatcher]\x20CLI\x20not\x20fully\x20bootstrapped\x20yet,\x20waiting...','[PuppeteerPatcher]\x20performScan\x20error:\x20','resolveInstance','processPageScreenshot:\x20Error\x20storing\x20screenshot\x20log\x20event:\x20','__bstackPlatformIndex','getPageFromAutomationFramework','bgcob','[PuppeteerPatcher]\x20After\x20test\x20hook\x20executed\x20for:\x20','timedOut','YgWhF','ocCxC','find','../../helpers/logger','numFailingAsserts','setState','[PuppeteerPatcher]\x20Error\x20in\x20markSessionOnBrowserStack:\x20','KbHHf','XqeCd','afterTestHook','createIncognitoBrowserContext','commandsList','BtVUD','[PuppeteerPatcher]\x20Error\x20storing\x20session\x20details\x20in\x20AF\x20state:\x20','[PuppeteerPatcher]\x20Starting\x20deferred\x20close\x20execution.\x20','isBrowserstackUrl','[PuppeteerPatcher]\x20Checking\x20if\x20running\x20against\x20BrowserStack\x20infrastructure\x20or\x20URL:\x20','performScan','[PuppeteerPatcher]\x20Error\x20executing\x20deferred\x20closes:\x20','Test\x20failed','cGRst','sCMsI','LKyAD','\x20not\x20installed,\x20skipping','xojpY','../v2/framework/constants/testFrameworkConstants','[PuppeteerPatcher]\x20getAccessibilityResults\x20error:\x20',',\x20capabilities:\x20','9NGvTjs','uhQXb','ZcgPT','defaultViewport','cZudO','yxrsI','htygg','host','HZeRx','[PuppeteerPatcher]\x20Context\x20patched','join','processPageScreenshot:\x20TestFramework\x20not\x20available,\x20cannot\x20store\x20screenshot\x20log\x20for\x20Jest+Puppeteer','INuMi','MNWih','dirname','[PuppeteerPatcher]\x20CREATE\x20POST\x20event\x20completed\x20for\x20connect()','TRLVz','BKDsU','2kKLhcX','sendkeys','ddKAb','ebIIR','SYUpe','ZTLQZ','1689536fbjvVp','sessionId','trackEvent','TEST','currentHook','name','nKVzw','testPath','BXZOW','wphOb','mouse.move','POST','[PuppeteerPatcher]\x20Already\x20initialized,\x20skipping','channel','HExNa'];a63_0x5676=function(){return _0xba733a;};return a63_0x5676();}
@@ -1 +1 @@
1
- const a60_0x54a736=a60_0x1f86;(function(_0x3710c9,_0x180a6e){const _0x49dc62=a60_0x1f86,_0x6feb1c=_0x3710c9();while(!![]){try{const _0x35dc1f=-parseInt(_0x49dc62(0xd6))/0x1*(parseInt(_0x49dc62(0x18c))/0x2)+-parseInt(_0x49dc62(0xc3))/0x3*(-parseInt(_0x49dc62(0x127))/0x4)+-parseInt(_0x49dc62(0xd9))/0x5+-parseInt(_0x49dc62(0x174))/0x6+-parseInt(_0x49dc62(0x143))/0x7+parseInt(_0x49dc62(0x17b))/0x8+parseInt(_0x49dc62(0x16c))/0x9;if(_0x35dc1f===_0x180a6e)break;else _0x6feb1c['push'](_0x6feb1c['shift']());}catch(_0x412e4e){_0x6feb1c['push'](_0x6feb1c['shift']());}}}(a60_0xfbcd,0xa992b));const path=require(a60_0x54a736(0xd1)),url=require(a60_0x54a736(0x170)),util=require(a60_0x54a736(0x16d)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule,isBrowserstackInfra}=require(a60_0x54a736(0x15c)),{o11yErrorHandler}=require(a60_0x54a736(0x18a)),{debug,getPlatformDetails}=require(a60_0x54a736(0xff)),logger=require(a60_0x54a736(0xe9))['winstonLogger'],constants=require(a60_0x54a736(0x107)),AutomationFramework=require(a60_0x54a736(0x115)),BrowserstackCLI=require(a60_0x54a736(0xef)),AutomationFrameworkState=require(a60_0x54a736(0x17e)),HookState=require(a60_0x54a736(0x14d)),{platform}=require('os'),getBrowserNameFromChannel=_0x4fd98f=>{const _0x52ce72=a60_0x54a736,_0x17b9c5={};_0x17b9c5[_0x52ce72(0x10b)]='2|4|1|3|0|5',_0x17b9c5[_0x52ce72(0xd2)]=_0x52ce72(0xe1),_0x17b9c5['pENAn']=_0x52ce72(0x122),_0x17b9c5[_0x52ce72(0x148)]=_0x52ce72(0x132),_0x17b9c5[_0x52ce72(0x158)]=_0x52ce72(0x191),_0x17b9c5[_0x52ce72(0x150)]=_0x52ce72(0x145),_0x17b9c5[_0x52ce72(0xe7)]=function(_0x265d86,_0x308c6a){return _0x265d86===_0x308c6a;},_0x17b9c5[_0x52ce72(0x147)]=_0x52ce72(0x141);const _0xbfe60d=_0x17b9c5,_0x43917d=_0xbfe60d[_0x52ce72(0x10b)]['split']('|');let _0x2dbdd3=0x0;while(!![]){switch(_0x43917d[_0x2dbdd3++]){case'0':if(_0x4fd98f[_0x52ce72(0xcf)](_0xbfe60d['EDCcb']))return _0xbfe60d[_0x52ce72(0xd2)];continue;case'1':if(_0x4fd98f[_0x52ce72(0xcf)](_0xbfe60d['pENAn']))return _0xbfe60d[_0x52ce72(0x17a)];continue;case'2':if(_0x4fd98f[_0x52ce72(0xcf)](_0xbfe60d[_0x52ce72(0x148)]))return _0xbfe60d[_0x52ce72(0x148)];continue;case'3':if(_0x4fd98f[_0x52ce72(0xcf)](_0xbfe60d[_0x52ce72(0x158)]))return _0xbfe60d[_0x52ce72(0x158)];continue;case'4':if(_0x4fd98f[_0x52ce72(0xcf)](_0xbfe60d[_0x52ce72(0x150)]))return _0xbfe60d[_0x52ce72(0x150)];continue;case'5':if(_0xbfe60d['Ojjty'](_0x4fd98f,_0xbfe60d[_0x52ce72(0x147)]))return _0xbfe60d['EnPGO'];continue;}break;}},getBrowserFromWSEndpoint=_0x41c85d=>{const _0x192c4b=a60_0x54a736,_0x2e002d={'yzTTQ':'bstack:options','goTby':function(_0x3f6ec3,_0x122dd5){return _0x3f6ec3(_0x122dd5);},'sAOyR':_0x192c4b(0x122),'gJbZe':_0x192c4b(0x123),'EELfS':_0x192c4b(0x191),'fqwHp':_0x192c4b(0x196),'gRAnx':_0x192c4b(0xe1),'cTCFp':'webkit','Cbdpe':_0x192c4b(0x145),'sZvhP':function(_0x2299d1,_0x43f260){return _0x2299d1(_0x43f260);}};try{const _0xdd15b5=url['parse'](_0x41c85d),_0x1b322e=new URLSearchParams(_0xdd15b5[_0x192c4b(0x15d)]),_0x7be160=Object['fromEntries'](_0x1b322e[_0x192c4b(0x13c)]()),_0x1bad21=[_0x7be160[_0x192c4b(0x139)],_0x7be160[_0x192c4b(0xd5)],_0x7be160[_0x192c4b(0x18e)],_0x7be160[_0x192c4b(0x159)]];for(const _0x1ae672 of _0x1bad21){if(_0x1ae672)try{const _0x29b5cf=JSON[_0x192c4b(0x11f)](_0x1ae672),_0xeefb50=_0x29b5cf['browserName']||_0x29b5cf[_0x192c4b(0x126)]||_0x29b5cf[_0x2e002d[_0x192c4b(0x199)]]?.[_0x192c4b(0xbe)];if(_0xeefb50)return _0x2e002d[_0x192c4b(0xfe)](debug,_0x192c4b(0x156)+_0xeefb50),_0xeefb50[_0x192c4b(0xc1)]();}catch(_0x4ba454){_0x2e002d[_0x192c4b(0xfe)](debug,_0x192c4b(0x10f)+_0x4ba454[_0x192c4b(0x10c)]);}}if(_0x41c85d[_0x192c4b(0xcf)](_0x2e002d['sAOyR'])||_0x41c85d['includes'](_0x2e002d[_0x192c4b(0x112)]))return _0x2e002d[_0x192c4b(0x19a)];if(_0x41c85d[_0x192c4b(0xcf)](_0x2e002d[_0x192c4b(0xe4)])||_0x41c85d[_0x192c4b(0xcf)](_0x2e002d[_0x192c4b(0xdc)]))return _0x2e002d[_0x192c4b(0xe4)];if(_0x41c85d[_0x192c4b(0xcf)](_0x2e002d[_0x192c4b(0x186)])||_0x41c85d['includes'](_0x2e002d[_0x192c4b(0xf5)]))return _0x2e002d[_0x192c4b(0x186)];return _0x2e002d[_0x192c4b(0xe6)];}catch(_0x3f0bdc){return _0x2e002d[_0x192c4b(0x136)](debug,_0x192c4b(0x154)+_0x3f0bdc[_0x192c4b(0x172)]()),_0x2e002d['Cbdpe'];}},getCloudProviderFromWsEndpoint=_0x2e77d6=>{const _0x5c3a14=a60_0x54a736,_0x27da44={};_0x27da44[_0x5c3a14(0x192)]=_0x5c3a14(0x14c),_0x27da44[_0x5c3a14(0xf6)]=_0x5c3a14(0x161);const _0x2f597f=_0x27da44;if(_0x2e77d6[_0x5c3a14(0xcf)](constants[_0x5c3a14(0x12e)])||_0x2e77d6['includes'](constants['BSTACK_ATS_URL']))return _0x2f597f[_0x5c3a14(0x192)];return _0x2f597f['wySuN'];},a60_0x47e161={};a60_0x47e161[a60_0x54a736(0xdf)]=undefined,a60_0x47e161[a60_0x54a736(0x131)]=undefined,a60_0x47e161[a60_0x54a736(0x126)]=undefined,a60_0x47e161[a60_0x54a736(0x155)]=undefined,a60_0x47e161[a60_0x54a736(0x19b)]=undefined,a60_0x47e161['platform_version']=undefined,a60_0x47e161['product']=undefined,a60_0x47e161[a60_0x54a736(0xd5)]={};class SharedPlaywrightSessionDetails{static ['currentSessionDetails']=a60_0x47e161;constructor(){const _0x5adcde=a60_0x54a736,_0x594ad9={};_0x594ad9[_0x5adcde(0x11e)]=_0x5adcde(0xea);const _0x534ca3=_0x594ad9;throw new Error(_0x534ca3['JQYia']);}static [a60_0x54a736(0x134)]=null;static[a60_0x54a736(0x17d)](_0x21c86e,_0xd34edd,_0xb8cd16=null){const _0x847f1a=a60_0x54a736,_0x336812={'ScFsR':function(_0xd1f090,_0xef4f26){return _0xd1f090===_0xef4f26;},'uTJnZ':'function','uUSZW':_0x847f1a(0x15e),'uMYjV':function(_0x393654,_0x5affe5){return _0x393654===_0x5affe5;},'DCNLQ':_0x847f1a(0x179),'RGYzB':_0x847f1a(0x19c),'vYsRe':function(_0x59d5b9,_0x387a9c,_0x4d1884){return _0x59d5b9(_0x387a9c,_0x4d1884);},'BoQko':_0x847f1a(0x17c),'azxTP':_0x847f1a(0x16a),'DeeNt':_0x847f1a(0x182),'xapds':_0x847f1a(0x137),'AnZCI':_0x847f1a(0x14a),'yungG':function(_0x17db11,_0x3b6476){return _0x17db11(_0x3b6476);},'ikGvW':'browserstack','qybNF':_0x847f1a(0x14e),'ZSbSE':_0x847f1a(0x138),'PjJQU':function(_0x4aa42e,_0x27d17d){return _0x4aa42e===_0x27d17d;},'PsMym':_0x847f1a(0x132),'uKLQW':function(_0x458357){return _0x458357();},'InlOT':function(_0x3721a2,_0x2aacdb){return _0x3721a2&&_0x2aacdb;},'vSDls':function(_0x3acce1,_0x27a8b4){return _0x3acce1(_0x27a8b4);},'wburY':function(_0x3aa12b,_0x5da7bc){return _0x3aa12b+_0x5da7bc;},'EiybV':_0x847f1a(0x183),'jFTfX':function(_0x4f4ee3){return _0x4f4ee3();},'RJfVa':_0x847f1a(0x17d)},_0x2c3137=this;return _0x336812[_0x847f1a(0xcb)](o11yErrorHandler,async function _0xfc7de1(_0x5309a5,_0x152deb,_0x1d13ce=null){const _0x182d44=_0x847f1a;let _0x3cc8bf=_0x5309a5[_0x182d44(0x173)],_0xb5708a=null;_0x5309a5&&_0x336812[_0x182d44(0x194)](typeof _0x5309a5['version'],_0x336812['uTJnZ'])?_0xb5708a=_0x5309a5['version']():logger[_0x182d44(0x152)](_0x336812[_0x182d44(0x142)]);let _0x210f18=null;_0x5309a5&&_0x336812['uMYjV'](typeof _0x5309a5[_0x182d44(0xc0)],_0x336812[_0x182d44(0xd8)])?_0x210f18=_0x5309a5[_0x182d44(0xc0)]():logger['debug'](_0x336812[_0x182d44(0x12a)]);let _0x1aff71=null,_0x479148=null,_0x1f4545=null,_0x1cbe64=_0x336812['RGYzB'];if(_0x5309a5[_0x182d44(0x175)][_0x182d44(0xfb)]()||global[_0x182d44(0x15f)]){let _0x173259=null;_0x336812[_0x182d44(0xcb)](nestedKeyValue,_0x5309a5,[_0x336812[_0x182d44(0x165)],_0x336812[_0x182d44(0x15a)]])?_0x173259=_0x5309a5[_0x182d44(0x17c)][_0x182d44(0x16a)]:_0x173259=_0x336812[_0x182d44(0xcb)](nestedKeyValue,_0x152deb,[_0x336812[_0x182d44(0x124)],_0x336812[_0x182d44(0x10e)],_0x336812[_0x182d44(0xbd)]]);const _0x34a61c=_0x1d13ce||_0x173259&&_0x173259[_0x182d44(0x135)];if(_0x34a61c){_0x1cbe64=_0x336812['yungG'](getCloudProviderFromWsEndpoint,_0x34a61c);if(_0x336812[_0x182d44(0x177)](_0x1cbe64,_0x336812[_0x182d44(0x11c)])){_0x1f4545=constants[_0x182d44(0x129)]['test'](_0x34a61c)?_0x336812[_0x182d44(0xd0)]:_0x336812[_0x182d44(0x16b)];const _0x2dd9b1=_0x336812[_0x182d44(0x117)](getBrowserFromWSEndpoint,_0x34a61c);if(_0x2dd9b1&&(!_0x3cc8bf||_0x336812['PjJQU'](_0x3cc8bf,_0x336812[_0x182d44(0xf7)])))_0x3cc8bf=_0x2dd9b1,logger[_0x182d44(0x152)](_0x182d44(0x149)+_0x3cc8bf);else _0x3cc8bf&&logger[_0x182d44(0x152)]('Using\x20browser\x20name\x20from\x20browser\x20object:\x20'+_0x3cc8bf);_0x1aff71=_0x2c3137[_0x182d44(0x12f)][_0x182d44(0x19b)],_0x479148=_0x2c3137['currentSessionDetails'][_0x182d44(0xca)];}else{const _0x500ade=await _0x336812[_0x182d44(0x12b)](getPlatformDetails);_0x1aff71=_0x500ade['platformName'],_0x479148=_0x500ade[_0x182d44(0x105)];}}if(_0x336812[_0x182d44(0x12d)](!_0x1aff71,!_0x479148)&&!_0x336812['uKLQW'](isBrowserstackInfra)){const _0x123da6=await _0x336812[_0x182d44(0x12b)](getPlatformDetails);_0x1aff71=_0x123da6[_0x182d44(0x168)],_0x479148=_0x123da6[_0x182d44(0x105)];}}else{_0x152deb&&_0x152deb[_0x182d44(0x182)]&&_0x152deb['project'][_0x182d44(0x137)]&&_0x152deb[_0x182d44(0x182)]['use']['channel']?_0x3cc8bf=_0x336812[_0x182d44(0x102)](getBrowserNameFromChannel,_0x152deb[_0x182d44(0x182)][_0x182d44(0x137)][_0x182d44(0x151)]):_0x3cc8bf=_0x336812[_0x182d44(0x184)](_0x336812['EiybV'],_0x3cc8bf[_0x182d44(0xc1)]());const _0x3914fc=await _0x336812[_0x182d44(0x10d)](getPlatformDetails);_0x1aff71=_0x3914fc[_0x182d44(0x168)],_0x479148=_0x3914fc[_0x182d44(0x105)];}const _0x1e84a8={};_0x1e84a8['browser']=_0x3cc8bf,_0x1e84a8[_0x182d44(0x155)]=_0xb5708a,_0x1e84a8[_0x182d44(0xd5)]={},_0x1e84a8[_0x182d44(0x19b)]=_0x1aff71,_0x1e84a8[_0x182d44(0xca)]=_0x479148,_0x1e84a8[_0x182d44(0x119)]=_0x1f4545;const _0x556d88=_0x1e84a8;_0x210f18&&(_0x556d88[_0x182d44(0xd5)][_0x182d44(0x118)]=_0x210f18);const _0x56eb40={};_0x56eb40[_0x182d44(0xdf)]=_0x1cbe64,_0x2c3137[_0x182d44(0x12f)]=Object[_0x182d44(0x169)]({},_0x2c3137[_0x182d44(0x12f)],_0x56eb40,_0x556d88);const _0x19c778={};_0x19c778[_0x182d44(0x126)]=_0x2c3137[_0x182d44(0x12f)][_0x182d44(0x126)],_0x19c778[_0x182d44(0xec)]=_0x2c3137[_0x182d44(0x12f)][_0x182d44(0x155)],_0x19c778['platform']=_0x2c3137[_0x182d44(0x12f)]['platform'],_0x19c778['platformVersion']=_0x2c3137[_0x182d44(0x12f)][_0x182d44(0xca)],_0x19c778[_0x182d44(0xdf)]=_0x2c3137[_0x182d44(0x12f)][_0x182d44(0xdf)],_0x19c778[_0x182d44(0x119)]=_0x2c3137[_0x182d44(0x12f)]['product'],logger[_0x182d44(0x152)]('Session\x20details\x20setup\x20complete:\x20'+JSON[_0x182d44(0x17f)](_0x19c778));},_0x336812['RJfVa'])(_0x21c86e,_0xd34edd,_0xb8cd16);}static[a60_0x54a736(0x109)](){const _0x5ce95b=a60_0x54a736;this[_0x5ce95b(0xdb)](),this[_0x5ce95b(0x160)]();}static['patchConnection'](){const _0x2f39a4=a60_0x54a736,_0x41ffba={'fSqcr':function(_0x482110,_0x246bac){return _0x482110(_0x246bac);},'fPQNn':_0x2f39a4(0x133),'gMHqB':_0x2f39a4(0xf4),'nLrEm':_0x2f39a4(0x125),'TCSgX':function(_0xaf14f0,_0x42bfc7){return _0xaf14f0(_0x42bfc7);},'QpbgI':function(_0x529c64,_0xdd6cdc){return _0x529c64(_0xdd6cdc);},'wYyRm':'Not\x20able\x20to\x20import\x20Connection\x20class\x20from\x20any\x20path','VCKgj':function(_0x24374d,_0x47b618){return _0x24374d!=_0x47b618;},'buJlX':_0x2f39a4(0x185),'FCgSW':_0x2f39a4(0x178),'Jagld':_0x2f39a4(0x101),'LvBiW':function(_0x40e40f,_0x380546){return _0x40e40f(_0x380546);}},_0x29bb00=this;if(!this[_0x2f39a4(0xe8)])try{const _0x33232c=[path['join'](_0x41ffba['fPQNn'],_0x41ffba[_0x2f39a4(0xde)],_0x41ffba[_0x2f39a4(0xfa)]),path[_0x2f39a4(0x16f)](_0x41ffba[_0x2f39a4(0x181)],_0x41ffba[_0x2f39a4(0xfa)]),path[_0x2f39a4(0x16f)](_0x41ffba[_0x2f39a4(0xde)],_0x41ffba['nLrEm'])];for(const _0x294b6a of _0x33232c){try{const _0x4c3e3f=_0x41ffba[_0x2f39a4(0x14f)](importFileFromPWCore,_0x294b6a);if(_0x4c3e3f&&_0x4c3e3f[_0x2f39a4(0xe8)]){this[_0x2f39a4(0xe8)]=_0x4c3e3f[_0x2f39a4(0xe8)],logger['debug'](_0x2f39a4(0x108)+_0x294b6a);break;}}catch(_0x563269){_0x41ffba[_0x2f39a4(0x14f)](debug,_0x2f39a4(0x116)+_0x294b6a+':\x20'+_0x563269['toString']());}}if(!this[_0x2f39a4(0xe8)]){_0x41ffba[_0x2f39a4(0x164)](debug,_0x41ffba[_0x2f39a4(0x153)]);return;}}catch(_0x53ac44){_0x41ffba[_0x2f39a4(0x14f)](debug,_0x2f39a4(0x103)+_0x53ac44[_0x2f39a4(0x172)]());return;}const _0x340ccf=this['Connection'];try{if(_0x41ffba[_0x2f39a4(0x171)](_0x340ccf,null)){const _0x562e34=_0x340ccf[_0x2f39a4(0xe2)][_0x2f39a4(0x178)];if(!_0x41ffba[_0x2f39a4(0x14f)](isFalse,process[_0x2f39a4(0x140)][_0x2f39a4(0xf1)])){if(_0x340ccf[_0x2f39a4(0xe2)]['_bstackDispatchPatched']){logger['debug'](_0x41ffba[_0x2f39a4(0xd7)]);return;}Object[_0x2f39a4(0x146)](_0x340ccf[_0x2f39a4(0xe2)],_0x41ffba[_0x2f39a4(0x157)],{'get':function(){const _0x4eb7cd={'UeALm':function(_0x1daf29,_0x5e7bf2){return _0x41ffba['fSqcr'](_0x1daf29,_0x5e7bf2);},'lZMIY':function(_0x53421c,_0x46671c){const _0xb4b634=a60_0x1f86;return _0x41ffba[_0xb4b634(0x190)](_0x53421c,_0x46671c);}};return async function _0xadb2be(_0x17a414){const _0x171846=a60_0x1f86;if(BrowserstackCLI[_0x171846(0xdd)]()[_0x171846(0x15b)]()){const _0x2e6945={};_0x2e6945[_0x171846(0x10c)]=_0x17a414,await BrowserstackCLI[_0x171846(0xdd)]()[_0x171846(0x130)]()[_0x171846(0xb9)](AutomationFrameworkState['PLAYWRIGHT_DISPATCH'],HookState[_0x171846(0xfc)],_0x2e6945);}else{const _0x55d925=_0x17a414&&_0x17a414[_0x171846(0x176)]&&_0x17a414[_0x171846(0x176)][_0x171846(0xee)];if(_0x55d925){const _0x14cc8d=_0x55d925[_0x171846(0x13b)],_0x2faf7e=_0x55d925[_0x171846(0xf9)];_0x2faf7e&&(_0x4eb7cd[_0x171846(0x120)](debug,_0x171846(0xed)+_0x2faf7e[_0x171846(0x172)]()),_0x29bb00[_0x171846(0x12f)]['platform']=_0x2faf7e['platformName'],_0x29bb00[_0x171846(0x12f)][_0x171846(0xca)]=_0x2faf7e[_0x171846(0x105)]),_0x14cc8d&&(_0x4eb7cd[_0x171846(0x18d)](debug,_0x171846(0x166)+_0x14cc8d),_0x29bb00[_0x171846(0x12f)][_0x171846(0x131)]=_0x14cc8d);}}return _0x562e34[_0x171846(0xf2)](this,arguments);};}}),_0x340ccf[_0x2f39a4(0xe2)][_0x2f39a4(0xc9)]=!![],logger[_0x2f39a4(0x152)](_0x41ffba[_0x2f39a4(0xba)]);}}}catch(_0xfc96a1){_0x41ffba[_0x2f39a4(0x11b)](debug,_0x2f39a4(0x193)+_0xfc96a1),_0x29bb00['sessionError']=_0xfc96a1[_0x2f39a4(0x172)]();}}static[a60_0x54a736(0x160)](){const _0x213df0=a60_0x54a736,_0x4a8331={'ryAhd':function(_0xa00051,_0x2fa3ed){return _0xa00051(_0x2fa3ed);},'hUojM':function(_0xb61229,_0x4d4905){return _0xb61229(_0x4d4905);},'jZRue':_0x213df0(0x133),'YruMS':_0x213df0(0x197),'tgQSK':'chromium','lRRPo':'crConnection.js','Unmhl':function(_0x9f33c6,_0x2fe5e3){return _0x9f33c6(_0x2fe5e3);},'HhVLT':_0x213df0(0x189),'EfHGI':function(_0x39c4ac,_0x198c3d){return _0x39c4ac(_0x198c3d);},'ehkKO':_0x213df0(0x111),'wIHer':function(_0x4232fb,_0x4bfd1c){return _0x4232fb!=_0x4bfd1c;},'XxQTz':_0x213df0(0x163),'HKiwG':_0x213df0(0x113),'YUwIl':_0x213df0(0x198)},_0xaba1f4=this;let _0x4bee51=null;try{const _0x486241=path['join'](_0x4a8331['jZRue'],_0x4a8331[_0x213df0(0xc4)],_0x4a8331[_0x213df0(0xbb)],_0x4a8331[_0x213df0(0x14b)]),_0x59646d=_0x4a8331[_0x213df0(0xf0)](importFileFromPWCore,_0x486241);!_0x59646d?_0x4a8331[_0x213df0(0x195)](debug,_0x4a8331[_0x213df0(0x13a)]):_0x4bee51=_0x59646d[_0x213df0(0x13d)];}catch(_0xc0297b){_0x4a8331[_0x213df0(0xfd)](debug,_0x4a8331[_0x213df0(0x187)]);}try{if(_0x4a8331[_0x213df0(0x167)](_0x4bee51,null)){const _0x22f67b=_0x4bee51['prototype'][_0x213df0(0x113)];if(_0x4bee51[_0x213df0(0xe2)]['_bstackCRPatched']){logger[_0x213df0(0x152)](_0x4a8331[_0x213df0(0x144)]);return;}Object[_0x213df0(0x146)](_0x4bee51[_0x213df0(0xe2)],_0x4a8331[_0x213df0(0x18b)],{'get':function(){const _0x22c0a5={'yHrbI':function(_0x291c64,_0x303875){const _0x33c923=a60_0x1f86;return _0x4a8331[_0x33c923(0xf0)](_0x291c64,_0x303875);},'UdikS':function(_0x3c83b4,_0xf85adf){const _0x4c8f7b=a60_0x1f86;return _0x4a8331[_0x4c8f7b(0x180)](_0x3c83b4,_0xf85adf);}};return async function _0x8f5516(_0x19bcaf){const _0x2a8adb=a60_0x1f86;try{if(BrowserstackCLI[_0x2a8adb(0xdd)]()[_0x2a8adb(0x15b)]()){const _0x2189d0={};_0x2189d0[_0x2a8adb(0x10c)]=_0x19bcaf,await BrowserstackCLI[_0x2a8adb(0xdd)]()['getAutomationFramework']()[_0x2a8adb(0xb9)](AutomationFrameworkState[_0x2a8adb(0xbf)],HookState['POST'],_0x2189d0),delete _0x19bcaf['bStackParams'];}else{const _0x1d20c2=_0x19bcaf[_0x2a8adb(0xcd)];if(_0x1d20c2){delete _0x19bcaf[_0x2a8adb(0xcd)];const _0x1c5e37=_0x1d20c2[_0x2a8adb(0x13b)],_0x415a25=_0x1d20c2[_0x2a8adb(0xf9)];_0x415a25&&(_0x22c0a5[_0x2a8adb(0xc5)](debug,'Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20'+_0x415a25['toString']()),_0xaba1f4[_0x2a8adb(0x12f)][_0x2a8adb(0x19b)]=_0x415a25[_0x2a8adb(0x168)],_0xaba1f4[_0x2a8adb(0x12f)][_0x2a8adb(0xca)]=_0x415a25[_0x2a8adb(0x105)]),_0x1c5e37&&(_0x22c0a5[_0x2a8adb(0xc5)](debug,_0x2a8adb(0x106)+_0x1c5e37),_0xaba1f4[_0x2a8adb(0x12f)][_0x2a8adb(0x131)]=_0x1c5e37);}}}catch(_0xbf878b){_0x22c0a5[_0x2a8adb(0xeb)](debug,_0x2a8adb(0x162)+_0xbf878b[_0x2a8adb(0x172)]());}return _0x22f67b[_0x2a8adb(0xf2)](this,arguments);};}}),_0x4bee51['prototype'][_0x213df0(0xc6)]=!![],logger['debug'](_0x4a8331[_0x213df0(0x18f)]);}}catch(_0x41e031){_0x4a8331[_0x213df0(0x195)](debug,_0x213df0(0x11a)+_0x41e031),_0xaba1f4[_0x213df0(0x134)]=_0x41e031[_0x213df0(0x172)]();}}static[a60_0x54a736(0x121)](_0xa5d98,_0x29e300){const _0x434eb2=a60_0x54a736,_0x58bf6a={'ySikB':_0x434eb2(0xce),'BzVVZ':function(_0x33aed5,_0x53dbda){return _0x33aed5||_0x53dbda;},'wfdhW':function(_0x15bba8,_0x22100d){return _0x15bba8===_0x22100d;},'pQgxO':_0x434eb2(0x110),'jNeYp':_0x434eb2(0xc8),'uXYqI':function(_0x462a6a,_0x12b3a7){return _0x462a6a(_0x12b3a7);},'vVyxC':function(_0x305d23,_0x382086){return _0x305d23(_0x382086);},'XCRQh':function(_0xceb8fa,_0x1c796d){return _0xceb8fa(_0x1c796d);}};let _0x5aa15d=null,_0x79ab20=null;try{const _0x4968ea=[_0x29e300,global[_0x434eb2(0xd4)],global['capabilties']];for(const _0x5ebbd5 of _0x4968ea){if(_0x5ebbd5&&(!_0x79ab20||!_0x79ab20[_0x434eb2(0x13b)])){const _0x485de6=_0x5ebbd5[_0x434eb2(0x13b)]||_0x5ebbd5[_0x58bf6a[_0x434eb2(0xc7)]]?.['sessionId'],_0xb0e852=_0x5ebbd5[_0x434eb2(0xbe)]||_0x5ebbd5['browser']||_0x5ebbd5[_0x58bf6a[_0x434eb2(0xc7)]]?.[_0x434eb2(0xbe)],_0x19a89d=_0x5ebbd5[_0x434eb2(0xec)]||_0x5ebbd5['browser_version']||_0x5ebbd5[_0x58bf6a['ySikB']]?.[_0x434eb2(0xec)],_0x1bb046=_0x5ebbd5['os']||_0x5ebbd5[_0x434eb2(0x19b)]||_0x5ebbd5[_0x58bf6a[_0x434eb2(0xc7)]]?.['os'],_0x35b141=_0x5ebbd5[_0x434eb2(0x104)]||_0x5ebbd5['os_version']||_0x5ebbd5[_0x58bf6a[_0x434eb2(0xc7)]]?.[_0x434eb2(0x104)];if(_0x58bf6a[_0x434eb2(0xbc)](_0x485de6,_0xb0e852)||_0x1bb046){const _0x52f877={};_0x52f877[_0x434eb2(0xbe)]=_0xb0e852,_0x52f877[_0x434eb2(0xec)]=_0x19a89d,_0x52f877['os']=_0x1bb046,_0x52f877['osVersion']=_0x35b141,_0x52f877[_0x434eb2(0x168)]=_0x5ebbd5[_0x434eb2(0x168)]||_0x1bb046,_0x52f877[_0x434eb2(0x105)]=_0x5ebbd5['platformVersion']||_0x35b141;const _0x3784d8={};_0x3784d8[_0x434eb2(0x13b)]=_0x485de6,_0x3784d8[_0x434eb2(0xf9)]=_0x52f877,_0x79ab20=_0x3784d8;if(_0x58bf6a[_0x434eb2(0xbc)](_0x485de6,_0xb0e852)){logger[_0x434eb2(0x152)](_0x434eb2(0x128)+_0xb0e852+_0x434eb2(0xc2)+_0x1bb046);break;}}}}if(_0xa5d98&&_0x58bf6a[_0x434eb2(0xf3)](typeof _0xa5d98,_0x58bf6a[_0x434eb2(0xd3)]))try{const _0x47e153=url['parse'](_0xa5d98),_0x543f2e=new URLSearchParams(_0x47e153[_0x434eb2(0x15d)]),_0x15eeb9=Object['fromEntries'](_0x543f2e[_0x434eb2(0x13c)]()),_0x559aeb=[_0x15eeb9['caps'],_0x15eeb9[_0x434eb2(0xd5)],_0x15eeb9[_0x434eb2(0x18e)]];for(const _0x487516 of _0x559aeb){if(_0x487516&&(!_0x5aa15d||!_0x5aa15d[_0x434eb2(0x13b)]))try{const _0x4309ef=JSON[_0x434eb2(0x11f)](_0x487516),_0x1534f7={};_0x1534f7[_0x434eb2(0x13b)]=_0x4309ef[_0x434eb2(0x13b)]||_0x4309ef[_0x58bf6a['ySikB']]?.['sessionId'],_0x1534f7[_0x434eb2(0xf9)]={},_0x1534f7[_0x434eb2(0xf9)][_0x434eb2(0xbe)]=_0x4309ef[_0x434eb2(0xbe)]||_0x4309ef[_0x434eb2(0x126)],_0x1534f7[_0x434eb2(0xf9)]['browserVersion']=_0x4309ef[_0x434eb2(0xec)]||_0x4309ef['browser_version'],_0x1534f7[_0x434eb2(0xf9)]['os']=_0x4309ef['os']||_0x4309ef[_0x434eb2(0x19b)],_0x1534f7[_0x434eb2(0xf9)][_0x434eb2(0x104)]=_0x4309ef[_0x434eb2(0x104)]||_0x4309ef[_0x434eb2(0x10a)],_0x1534f7[_0x434eb2(0xf9)][_0x434eb2(0x168)]=_0x4309ef[_0x434eb2(0x168)]||_0x4309ef['os']||_0x4309ef[_0x434eb2(0x19b)],_0x1534f7[_0x434eb2(0xf9)]['platformVersion']=_0x4309ef[_0x434eb2(0x105)]||_0x4309ef[_0x434eb2(0x104)]||_0x4309ef['os_version'],_0x5aa15d=_0x1534f7;if(_0x5aa15d['sessionId']||_0x5aa15d[_0x434eb2(0xf9)][_0x434eb2(0xbe)]){logger['debug'](_0x58bf6a['jNeYp']);break;}}catch(_0x48dc32){_0x58bf6a['uXYqI'](debug,_0x434eb2(0xf8)+_0x48dc32[_0x434eb2(0x172)]());}}}catch(_0x20b2db){_0x58bf6a[_0x434eb2(0x11d)](debug,_0x434eb2(0xe5)+_0x20b2db[_0x434eb2(0x172)]());}}catch(_0x253a60){_0x58bf6a[_0x434eb2(0x100)](debug,_0x434eb2(0x114)+util[_0x434eb2(0xda)](_0x253a60));}const _0x4a19a6={};return _0x4a19a6['bsParams']=_0x5aa15d,_0x4a19a6[_0x434eb2(0xcd)]=_0x79ab20,_0x4a19a6;}static async[a60_0x54a736(0x13f)](_0x207e3d,_0x2a7521){const _0x30220b=a60_0x54a736,_0x2d5e1e={'UazNh':function(_0x53c517,_0x556862){return _0x53c517||_0x556862;},'ddQbM':'Triggering\x20PLAYWRIGHT_DISPATCH\x20event','ubeBi':function(_0x40dffa,_0x1e8592){return _0x40dffa||_0x1e8592;},'EWinw':function(_0x364d2f,_0x28c89c){return _0x364d2f(_0x28c89c);}};try{if(!BrowserstackCLI['getInstance']()[_0x30220b(0x15b)]())return;if(_0x2d5e1e['UazNh'](_0x207e3d,_0x2a7521)){logger['debug'](_0x2d5e1e[_0x30220b(0xe3)]);const _0x3c7d46={'params':_0x207e3d?{'bsParams':_0x207e3d}:null,'bStackParams':_0x2d5e1e['ubeBi'](_0x2a7521,null)},_0x5250d3=AutomationFramework[_0x30220b(0xcc)](),_0x273503={};_0x273503[_0x30220b(0x10c)]=_0x3c7d46,_0x273503[_0x30220b(0xe0)]=_0x5250d3,await BrowserstackCLI[_0x30220b(0xdd)]()[_0x30220b(0x130)]()[_0x30220b(0xb9)](AutomationFrameworkState[_0x30220b(0xbf)],HookState[_0x30220b(0xfc)],_0x273503);}}catch(_0x9964fa){_0x2d5e1e[_0x30220b(0x16e)](debug,_0x30220b(0x12c)+util[_0x30220b(0xda)](_0x9964fa));}}static[a60_0x54a736(0x188)](){const _0x48d3db=a60_0x54a736;return this[_0x48d3db(0x12f)];}}function a60_0x1f86(_0x3d7555,_0x16597b){const _0xfbcdb7=a60_0xfbcd();return a60_0x1f86=function(_0x1f86fb,_0x20ddb6){_0x1f86fb=_0x1f86fb-0xb9;let _0x4bfcbd=_0xfbcdb7[_0x1f86fb];return _0x4bfcbd;},a60_0x1f86(_0x3d7555,_0x16597b);}function a60_0xfbcd(){const _0x1feb09=['trackEvent','Jagld','tgQSK','BzVVZ','AnZCI','browserName','PLAYWRIGHT_DISPATCH','model','toLowerCase',',\x20os=','1329OjQzWG','YruMS','yHrbI','_bstackCRPatched','ySikB','BrowserStack\x20params\x20extracted\x20from\x20WebSocket\x20endpoint','_bstackDispatchPatched','platform_version','vYsRe','getTrackedInstance','bStackParams','bstack:options','includes','qybNF','path','EDCcb','pQgxO','__platformCaps','capabilities','7PtrzCn','buJlX','uTJnZ','4126215TELkOB','format','patchConnection','fqwHp','getInstance','gMHqB','cloudProvider','instance','safari','prototype','ddQbM','EELfS','Error\x20parsing\x20WebSocket\x20endpoint:\x20','Cbdpe','Ojjty','Connection','../../helpers/logger','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','UdikS','browserVersion','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','bsParams','../v2/browserstackCLI','ryAhd','BROWSERSTACK_TEST_OBSERVABILITY','apply','wfdhW','client','cTCFp','wySuN','PsMym','Failed\x20to\x20parse\x20capabilities\x20from\x20WebSocket:\x20','platformDetails','nLrEm','isRemote','POST','EfHGI','goTby','../../helpers/test-observability/utils','XCRQh','Successfully\x20patched\x20Connection.dispatch','vSDls','Error\x20in\x20importing\x20connection\x20','osVersion','platformVersion','Setting\x20session\x20id\x20received\x20from\x20browserstack\x20','./constants','Found\x20Connection\x20class\x20at:\x20','patch','os_version','YQIEN','message','jFTfX','xapds','Failed\x20to\x20parse\x20caps\x20from\x20WebSocket:\x20','string','Error\x20in\x20importing\x20crConnection','gJbZe','_onMessage','Error\x20extracting\x20BrowserStack\x20parameters:\x20','../v2/framework/automationFramework','Failed\x20to\x20import\x20connection\x20from\x20','yungG','deviceModel','product','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','LvBiW','ikGvW','vVyxC','JQYia','parse','UeALm','extractBrowserStackParams','edge','msedge','DeeNt','connection.js','browser','3940LEdbHO','BrowserStack\x20params\x20extracted\x20from\x20capabilities:\x20browser=','ATS_WSS_URL_REGEX','DCNLQ','uKLQW','Error\x20triggering\x20PLAYWRIGHT_DISPATCH\x20event:\x20','InlOT','BSTACK_URL','currentSessionDetails','getAutomationFramework','bsSessionId','chromium','lib','sessionError','wsEndpoint','sZvhP','use','automate','caps','HhVLT','sessionId','entries','CRConnection','exports','triggerPlaywrightDispatchEvent','env','webkit','uUSZW','7336455TRNknY','XxQTz','chrome','defineProperty','EnPGO','dWMhJ','Browser\x20name\x20overridden\x20from\x20WebSocket\x20endpoint:\x20','connectOptions','lRRPo','browserstack','../v2/state/hookState.js','turboscale','TCSgX','jtLEi','channel','debug','wYyRm','Error\x20in\x20getting\x20browser\x20from\x20WebSocket\x20endpoint:\x20','browser_version','Browser\x20found\x20in\x20WebSocket\x20caps:\x20','FCgSW','ZWyyF','browserstack_capabilities','azxTP','isRunning','../../helpers/helper','query','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','accessibilityPlatform','patchCRConnection','unknown_grid','Error\x20in\x20finding\x20platform\x20details\x20','CRConnection\x20already\x20patched','QpbgI','BoQko','Setting\x20session\x20id\x20received\x20from\x20BS\x20','wIHer','platformName','assign','_defaultConnectOptions','ZSbSE','24344946KxhcBe','util','EWinw','join','url','VCKgj','toString','_name','7485096DXHYVX','_connection','params','uMYjV','dispatch','Device\x20Model\x20is\x20not\x20available','pENAn','11079112xojyUW','_browserType','setupBrowserDetails','../v2/state/automationFrameworkState.js','stringify','hUojM','fPQNn','project','playwright-','wburY','Connection\x20dispatch\x20already\x20patched','gRAnx','ehkKO','getDetails','Not\x20able\x20to\x20import\x20crConnection','../../helpers/test-observability/error-handler','HKiwG','203098DKjJbn','lZMIY','desiredCapabilities','YUwIl','fSqcr','firefox','OHSrZ','Error\x20in\x20applying\x20Connection\x20patch\x20','ScFsR','Unmhl','gecko','server','Successfully\x20patched\x20CRConnection._onMessage','yzTTQ','sAOyR','platform','local_grid'];a60_0xfbcd=function(){return _0x1feb09;};return a60_0xfbcd();}module[a60_0x54a736(0x13e)]=SharedPlaywrightSessionDetails;
1
+ const a64_0x24ec81=a64_0x576a;(function(_0x35a09c,_0x1c9eb2){const _0x12c64e=a64_0x576a,_0x413ffd=_0x35a09c();while(!![]){try{const _0x2adbdb=-parseInt(_0x12c64e(0x279))/0x1+-parseInt(_0x12c64e(0x262))/0x2+-parseInt(_0x12c64e(0x200))/0x3+parseInt(_0x12c64e(0x269))/0x4*(-parseInt(_0x12c64e(0x1bd))/0x5)+parseInt(_0x12c64e(0x24a))/0x6+parseInt(_0x12c64e(0x1fc))/0x7*(parseInt(_0x12c64e(0x250))/0x8)+parseInt(_0x12c64e(0x20b))/0x9;if(_0x2adbdb===_0x1c9eb2)break;else _0x413ffd['push'](_0x413ffd['shift']());}catch(_0x26d114){_0x413ffd['push'](_0x413ffd['shift']());}}}(a64_0x4c93,0x96550));const path=require(a64_0x24ec81(0x237)),url=require(a64_0x24ec81(0x25c)),util=require(a64_0x24ec81(0x20c)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule,isBrowserstackInfra}=require(a64_0x24ec81(0x22b)),{o11yErrorHandler}=require(a64_0x24ec81(0x1c8)),{debug,getPlatformDetails}=require(a64_0x24ec81(0x1d5)),logger=require('../../helpers/logger')[a64_0x24ec81(0x1c3)],constants=require('./constants'),AutomationFramework=require(a64_0x24ec81(0x280)),BrowserstackCLI=require(a64_0x24ec81(0x268)),AutomationFrameworkState=require(a64_0x24ec81(0x227)),HookState=require(a64_0x24ec81(0x1ac)),{platform}=require('os'),getBrowserNameFromChannel=_0x1cbdf8=>{const _0xc0e255=a64_0x24ec81,_0x6290ef={};_0x6290ef[_0xc0e255(0x1df)]=_0xc0e255(0x21a),_0x6290ef[_0xc0e255(0x20a)]='edge',_0x6290ef['klyWn']=_0xc0e255(0x22d),_0x6290ef[_0xc0e255(0x206)]=_0xc0e255(0x1c6),_0x6290ef[_0xc0e255(0x23e)]=_0xc0e255(0x20f),_0x6290ef['EKkuX']=_0xc0e255(0x1f3),_0x6290ef['vPyyS']=function(_0x504c5a,_0x43f3ad){return _0x504c5a===_0x43f3ad;},_0x6290ef[_0xc0e255(0x23d)]=_0xc0e255(0x26b);const _0xe14c90=_0x6290ef,_0x440db2=_0xe14c90[_0xc0e255(0x1df)][_0xc0e255(0x1d3)]('|');let _0x245945=0x0;while(!![]){switch(_0x440db2[_0x245945++]){case'0':if(_0x1cbdf8[_0xc0e255(0x20e)](_0xe14c90['haRNy']))return _0xe14c90['haRNy'];continue;case'1':if(_0x1cbdf8[_0xc0e255(0x20e)](_0xe14c90[_0xc0e255(0x27f)]))return _0xe14c90[_0xc0e255(0x27f)];continue;case'2':if(_0x1cbdf8[_0xc0e255(0x20e)](_0xe14c90['MbDiM']))return _0xe14c90[_0xc0e255(0x206)];continue;case'3':if(_0x1cbdf8[_0xc0e255(0x20e)](_0xe14c90[_0xc0e255(0x23e)]))return _0xe14c90[_0xc0e255(0x23e)];continue;case'4':if(_0x1cbdf8[_0xc0e255(0x20e)](_0xe14c90[_0xc0e255(0x201)]))return _0xe14c90['EKkuX'];continue;case'5':if(_0xe14c90[_0xc0e255(0x1e6)](_0x1cbdf8,_0xe14c90[_0xc0e255(0x23d)]))return _0xe14c90['hBYlw'];continue;}break;}},getBrowserFromWSEndpoint=_0x1f88f0=>{const _0x9a9297=a64_0x24ec81,_0x5d1602={'QlRtK':_0x9a9297(0x1ae),'KVBMD':function(_0x2f3803,_0x2ba35e){return _0x2f3803(_0x2ba35e);},'RVItN':_0x9a9297(0x27b),'zPpOY':'msedge','IPGBP':_0x9a9297(0x1c6),'KKIEX':_0x9a9297(0x233),'fcISR':_0x9a9297(0x22d),'utiyt':'webkit','HowYC':_0x9a9297(0x1f3)};try{const _0x5f0c4a=url[_0x9a9297(0x23c)](_0x1f88f0),_0x27fd86=new URLSearchParams(_0x5f0c4a[_0x9a9297(0x1f5)]),_0x120589=Object['fromEntries'](_0x27fd86[_0x9a9297(0x1f2)]()),_0x21e72a=[_0x120589[_0x9a9297(0x1cb)],_0x120589[_0x9a9297(0x1dd)],_0x120589[_0x9a9297(0x22a)],_0x120589[_0x9a9297(0x205)]];for(const _0x556afc of _0x21e72a){if(_0x556afc)try{const _0x52059d=JSON['parse'](_0x556afc),_0x26066a=_0x52059d[_0x9a9297(0x1fe)]||_0x52059d[_0x9a9297(0x21e)]||_0x52059d[_0x5d1602[_0x9a9297(0x1b4)]]?.[_0x9a9297(0x1fe)];if(_0x26066a)return _0x5d1602['KVBMD'](debug,_0x9a9297(0x254)+_0x26066a),_0x26066a[_0x9a9297(0x1cf)]();}catch(_0x5cbf69){_0x5d1602['KVBMD'](debug,_0x9a9297(0x1f7)+_0x5cbf69[_0x9a9297(0x1be)]);}}if(_0x1f88f0[_0x9a9297(0x20e)](_0x5d1602[_0x9a9297(0x1ca)])||_0x1f88f0[_0x9a9297(0x20e)](_0x5d1602[_0x9a9297(0x1fb)]))return _0x5d1602[_0x9a9297(0x1ca)];if(_0x1f88f0[_0x9a9297(0x20e)](_0x5d1602[_0x9a9297(0x244)])||_0x1f88f0['includes'](_0x5d1602['KKIEX']))return _0x5d1602[_0x9a9297(0x244)];if(_0x1f88f0[_0x9a9297(0x20e)](_0x5d1602[_0x9a9297(0x273)])||_0x1f88f0['includes'](_0x5d1602[_0x9a9297(0x203)]))return _0x5d1602[_0x9a9297(0x273)];return _0x5d1602[_0x9a9297(0x236)];}catch(_0x327d8e){return _0x5d1602[_0x9a9297(0x20d)](debug,_0x9a9297(0x225)+_0x327d8e[_0x9a9297(0x1d4)]()),_0x5d1602[_0x9a9297(0x236)];}},getCloudProviderFromWsEndpoint=_0x5c2163=>{const _0xdf9789=a64_0x24ec81,_0x53fa34={};_0x53fa34[_0xdf9789(0x214)]=_0xdf9789(0x1ad),_0x53fa34[_0xdf9789(0x258)]=_0xdf9789(0x1fa);const _0x2f6db9=_0x53fa34;if(_0x5c2163[_0xdf9789(0x20e)](constants[_0xdf9789(0x26e)])||_0x5c2163[_0xdf9789(0x20e)](constants[_0xdf9789(0x1f8)]))return _0x2f6db9[_0xdf9789(0x214)];return _0x2f6db9[_0xdf9789(0x258)];},a64_0x308dca={};function a64_0x576a(_0xa2af59,_0x371fd6){const _0x4c935a=a64_0x4c93();return a64_0x576a=function(_0x576abf,_0x16fc6f){_0x576abf=_0x576abf-0x1ab;let _0x147a21=_0x4c935a[_0x576abf];return _0x147a21;},a64_0x576a(_0xa2af59,_0x371fd6);}a64_0x308dca['cloudProvider']=undefined,a64_0x308dca[a64_0x24ec81(0x249)]=undefined,a64_0x308dca[a64_0x24ec81(0x21e)]=undefined,a64_0x308dca[a64_0x24ec81(0x24b)]=undefined,a64_0x308dca[a64_0x24ec81(0x232)]=undefined,a64_0x308dca[a64_0x24ec81(0x27a)]=undefined,a64_0x308dca[a64_0x24ec81(0x220)]=undefined,a64_0x308dca[a64_0x24ec81(0x1dd)]={};function a64_0x4c93(){const _0xaa86f2=['AgdRa','klyWn','../v2/framework/automationFramework','oMnCj','../v2/state/hookState.js','browserstack','bstack:options','sjZfX','pqvsF','_defaultConnectOptions','Browser\x20name\x20overridden\x20from\x20WebSocket\x20endpoint:\x20','BROWSERSTACK_TEST_OBSERVABILITY','QlRtK','Error\x20extracting\x20BrowserStack\x20parameters:\x20','CnqOh','prototype','patch','PMIIh','os_version','params','getInstance','40OgFbKE','message','turboscale','project','Error\x20in\x20applying\x20Connection\x20patch\x20','fromEntries','winstonLogger','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','getDetails','firefox','automate','../../helpers/test-observability/error-handler','bsParams','RVItN','caps','CRConnection\x20already\x20patched','Triggering\x20PLAYWRIGHT_DISPATCH\x20event','browserVersion','toLowerCase','PeOpX','tDoXj','Session\x20details\x20setup\x20complete:\x20','split','toString','../../helpers/test-observability/utils','test','oTTmq','lib','Device\x20Model\x20is\x20not\x20available','_bstackCRPatched','bWGla','JWOGG','capabilities','platformVersion','HolBR','AsxPw','Failed\x20to\x20parse\x20capabilities\x20from\x20WebSocket:\x20','rUZad','use','trackEvent','__platformCaps','vPyyS','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','wlTfG','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','PxQkn','ERXvN','StpsW','Successfully\x20patched\x20Connection.dispatch','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','model','local_grid','_bstackDispatchPatched','entries','chrome','function','query','extractBrowserStackParams','Failed\x20to\x20parse\x20caps\x20from\x20WebSocket:\x20','BSTACK_ATS_URL','Not\x20able\x20to\x20import\x20crConnection','unknown_grid','zPpOY','16996kojIir','YjryI','browserName','Error\x20in\x20importing\x20crConnection','1769958VEfwVF','EKkuX','getTrackedInstance','utiyt','yIxCW','browserstack_capabilities','MbDiM','jwolr','SCqHb','AYbIV','haRNy','13455909mqkPVh','util','KVBMD','includes','chromium','NSXYq','UijBU','apply','triggerPlaywrightDispatchEvent','UcpQT','mCKoa','jSDoX','tQyAA','Connection','Not\x20able\x20to\x20import\x20Connection\x20class\x20from\x20any\x20path','3|4|0|2|1|5','setupBrowserDetails','getAutomationFramework','debug','browser','env','product','_browserType','POST','nPsbg','LybOX','Error\x20in\x20getting\x20browser\x20from\x20WebSocket\x20endpoint:\x20','Setting\x20session\x20id\x20received\x20from\x20BS\x20','../v2/state/automationFrameworkState.js','wsEndpoint','vDsXB','desiredCapabilities','../../helpers/helper','deviceModel','safari','join','playwright-','_onMessage','connection.js','platform','gecko','ywBaC','ESvps','HowYC','path','LYyHx','QSpKD','sessionError','isRunning','parse','hBYlw','UDvYN','Using\x20browser\x20name\x20from\x20browser\x20object:\x20','format','efzpE','channel','_connection','IPGBP','isRemote','dispatch','Found\x20Connection\x20class\x20at:\x20','patchCRConnection','bsSessionId','7112208llmFvI','browser_version','version','capabilties','AdHMJ','defineProperty','2544ivbZos','CRConnection','tRhCA','patchConnection','Browser\x20found\x20in\x20WebSocket\x20caps:\x20','EuhZO','PLAYWRIGHT_DISPATCH','crConnection.js','wKbEi','BrowserStack\x20params\x20extracted\x20from\x20WebSocket\x20endpoint','Failed\x20to\x20import\x20connection\x20from\x20','Error\x20parsing\x20WebSocket\x20endpoint:\x20','url','QujCH','platformDetails','Error\x20in\x20finding\x20platform\x20details\x20','string','osVersion','2173330xQOxez','platformName','cloudProvider','fZEeT','phGik','UXMXG','../v2/browserstackCLI','484012DMXrKp','THDTo','webkit','RXhRw','stringify','BSTACK_URL','Setting\x20session\x20id\x20received\x20from\x20browserstack\x20','bStackParams','sessionId','vZmWg','fcISR','Connection\x20dispatch\x20already\x20patched','XRMED','currentSessionDetails','CEyVj','QjzmN','192138zRZkKK','platform_version','edge',',\x20os=','aleTW'];a64_0x4c93=function(){return _0xaa86f2;};return a64_0x4c93();}class SharedPlaywrightSessionDetails{static [a64_0x24ec81(0x276)]=a64_0x308dca;constructor(){const _0x4c8ca6=a64_0x24ec81,_0x216dc8={};_0x216dc8['COdLa']=_0x4c8ca6(0x1c4);const _0x281456=_0x216dc8;throw new Error(_0x281456['COdLa']);}static [a64_0x24ec81(0x23a)]=null;static[a64_0x24ec81(0x21b)](_0x3c13b2,_0x386240,_0x57aca6=null){const _0x48cb08=a64_0x24ec81,_0x5c64f7={'phGik':function(_0x4a8014,_0x4f7016){return _0x4a8014===_0x4f7016;},'THDTo':_0x48cb08(0x1f4),'QjzmN':_0x48cb08(0x1e9),'StpsW':function(_0x2285c1,_0x49f031){return _0x2285c1===_0x49f031;},'XRMED':_0x48cb08(0x1d9),'pqvsF':_0x48cb08(0x1f0),'PMIIh':function(_0x3b85b3,_0x19d957,_0x4ae1fa){return _0x3b85b3(_0x19d957,_0x4ae1fa);},'CEyVj':_0x48cb08(0x221),'PMzkj':_0x48cb08(0x1b1),'GVMjy':_0x48cb08(0x1c0),'jPsDl':_0x48cb08(0x1e3),'tPqdn':'connectOptions','ywBaC':function(_0x5674ce,_0x197648){return _0x5674ce(_0x197648);},'SuxsU':_0x48cb08(0x1ad),'PxQkn':_0x48cb08(0x1bf),'jwolr':_0x48cb08(0x1c7),'oMnCj':function(_0x3682e0,_0x15bd9e){return _0x3682e0===_0x15bd9e;},'SCqHb':_0x48cb08(0x20f),'vZmWg':function(_0x2c82db){return _0x2c82db();},'hgaPV':function(_0x54bcae,_0x26991a){return _0x54bcae&&_0x26991a;},'UXMXG':function(_0x4624ee){return _0x4624ee();},'fLrIO':function(_0x297cd8){return _0x297cd8();},'MdGSL':function(_0x3c260f,_0x5ba0df){return _0x3c260f(_0x5ba0df);},'rUZad':function(_0x51cabc,_0x1df023){return _0x51cabc+_0x1df023;},'CnqOh':_0x48cb08(0x22f),'AgdRa':'setupBrowserDetails'},_0x1f64df=this;return _0x5c64f7[_0x48cb08(0x1b9)](o11yErrorHandler,async function _0x1b09d8(_0x1663de,_0x413bb6,_0x52a2a6=null){const _0xa6f3c3=_0x48cb08;let _0x1a1d3a=_0x1663de['_name'],_0x335f7c=null;_0x1663de&&_0x5c64f7['phGik'](typeof _0x1663de[_0xa6f3c3(0x24c)],_0x5c64f7[_0xa6f3c3(0x26a)])?_0x335f7c=_0x1663de[_0xa6f3c3(0x24c)]():logger[_0xa6f3c3(0x21d)](_0x5c64f7[_0xa6f3c3(0x278)]);let _0x4be48b=null;_0x1663de&&_0x5c64f7[_0xa6f3c3(0x1ec)](typeof _0x1663de[_0xa6f3c3(0x1ef)],_0x5c64f7[_0xa6f3c3(0x26a)])?_0x4be48b=_0x1663de[_0xa6f3c3(0x1ef)]():logger['debug'](_0x5c64f7[_0xa6f3c3(0x275)]);let _0x188212=null,_0x55b502=null,_0x6ba52=null,_0x4c9d5d=_0x5c64f7[_0xa6f3c3(0x1b0)];if(_0x1663de[_0xa6f3c3(0x243)][_0xa6f3c3(0x245)]()||global['accessibilityPlatform']){let _0x5085a0=null;_0x5c64f7[_0xa6f3c3(0x1b9)](nestedKeyValue,_0x1663de,[_0x5c64f7[_0xa6f3c3(0x277)],_0x5c64f7['PMzkj']])?_0x5085a0=_0x1663de[_0xa6f3c3(0x221)]['_defaultConnectOptions']:_0x5085a0=_0x5c64f7[_0xa6f3c3(0x1b9)](nestedKeyValue,_0x413bb6,[_0x5c64f7['GVMjy'],_0x5c64f7['jPsDl'],_0x5c64f7['tPqdn']]);const _0x28051e=_0x52a2a6||_0x5085a0&&_0x5085a0[_0xa6f3c3(0x228)];if(_0x28051e){_0x4c9d5d=_0x5c64f7['ywBaC'](getCloudProviderFromWsEndpoint,_0x28051e);if(_0x5c64f7[_0xa6f3c3(0x266)](_0x4c9d5d,_0x5c64f7['SuxsU'])){_0x6ba52=constants['ATS_WSS_URL_REGEX'][_0xa6f3c3(0x1d6)](_0x28051e)?_0x5c64f7[_0xa6f3c3(0x1ea)]:_0x5c64f7[_0xa6f3c3(0x207)];const _0x55ad5b=_0x5c64f7[_0xa6f3c3(0x234)](getBrowserFromWSEndpoint,_0x28051e);if(_0x55ad5b&&(!_0x1a1d3a||_0x5c64f7[_0xa6f3c3(0x1ab)](_0x1a1d3a,_0x5c64f7[_0xa6f3c3(0x208)])))_0x1a1d3a=_0x55ad5b,logger['debug'](_0xa6f3c3(0x1b2)+_0x1a1d3a);else _0x1a1d3a&&logger[_0xa6f3c3(0x21d)](_0xa6f3c3(0x23f)+_0x1a1d3a);_0x188212=_0x1f64df[_0xa6f3c3(0x276)][_0xa6f3c3(0x232)],_0x55b502=_0x1f64df[_0xa6f3c3(0x276)][_0xa6f3c3(0x27a)];}else{const _0x4e5f47=await _0x5c64f7[_0xa6f3c3(0x272)](getPlatformDetails);_0x188212=_0x4e5f47['platformName'],_0x55b502=_0x4e5f47['platformVersion'];}}if(_0x5c64f7['hgaPV'](!_0x188212,!_0x55b502)&&!_0x5c64f7[_0xa6f3c3(0x267)](isBrowserstackInfra)){const _0x45cccd=await _0x5c64f7['fLrIO'](getPlatformDetails);_0x188212=_0x45cccd['platformName'],_0x55b502=_0x45cccd[_0xa6f3c3(0x1de)];}}else{_0x413bb6&&_0x413bb6[_0xa6f3c3(0x1c0)]&&_0x413bb6['project']['use']&&_0x413bb6[_0xa6f3c3(0x1c0)][_0xa6f3c3(0x1e3)][_0xa6f3c3(0x242)]?_0x1a1d3a=_0x5c64f7['MdGSL'](getBrowserNameFromChannel,_0x413bb6[_0xa6f3c3(0x1c0)][_0xa6f3c3(0x1e3)]['channel']):_0x1a1d3a=_0x5c64f7[_0xa6f3c3(0x1e2)](_0x5c64f7[_0xa6f3c3(0x1b6)],_0x1a1d3a[_0xa6f3c3(0x1cf)]());const _0x49e75c=await _0x5c64f7[_0xa6f3c3(0x272)](getPlatformDetails);_0x188212=_0x49e75c[_0xa6f3c3(0x263)],_0x55b502=_0x49e75c['platformVersion'];}const _0x23c65e={};_0x23c65e[_0xa6f3c3(0x21e)]=_0x1a1d3a,_0x23c65e[_0xa6f3c3(0x24b)]=_0x335f7c,_0x23c65e[_0xa6f3c3(0x1dd)]={},_0x23c65e[_0xa6f3c3(0x232)]=_0x188212,_0x23c65e['platform_version']=_0x55b502,_0x23c65e['product']=_0x6ba52;const _0x1ddac1=_0x23c65e;_0x4be48b&&(_0x1ddac1['capabilities'][_0xa6f3c3(0x22c)]=_0x4be48b);const _0x3a5b31={};_0x3a5b31[_0xa6f3c3(0x264)]=_0x4c9d5d,_0x1f64df[_0xa6f3c3(0x276)]=Object['assign']({},_0x1f64df[_0xa6f3c3(0x276)],_0x3a5b31,_0x1ddac1);const _0x3a42ee={};_0x3a42ee[_0xa6f3c3(0x21e)]=_0x1f64df[_0xa6f3c3(0x276)][_0xa6f3c3(0x21e)],_0x3a42ee['browserVersion']=_0x1f64df['currentSessionDetails']['browser_version'],_0x3a42ee[_0xa6f3c3(0x232)]=_0x1f64df[_0xa6f3c3(0x276)][_0xa6f3c3(0x232)],_0x3a42ee[_0xa6f3c3(0x1de)]=_0x1f64df[_0xa6f3c3(0x276)][_0xa6f3c3(0x27a)],_0x3a42ee[_0xa6f3c3(0x264)]=_0x1f64df[_0xa6f3c3(0x276)]['cloudProvider'],_0x3a42ee['product']=_0x1f64df['currentSessionDetails'][_0xa6f3c3(0x220)],logger[_0xa6f3c3(0x21d)](_0xa6f3c3(0x1d2)+JSON[_0xa6f3c3(0x26d)](_0x3a42ee));},_0x5c64f7[_0x48cb08(0x27e)])(_0x3c13b2,_0x386240,_0x57aca6);}static[a64_0x24ec81(0x1b8)](){const _0x13c64a=a64_0x24ec81;this[_0x13c64a(0x253)](),this[_0x13c64a(0x248)]();}static[a64_0x24ec81(0x253)](){const _0x2020c1=a64_0x24ec81,_0x3b0839={'NSXYq':function(_0x50100c,_0x41bc7b){return _0x50100c(_0x41bc7b);},'ESvps':function(_0xece86f,_0x588713){return _0xece86f(_0x588713);},'AdHMJ':_0x2020c1(0x1d8),'efzpE':'client','LYyHx':_0x2020c1(0x231),'wJzpi':function(_0x4268c6,_0x1a5f27){return _0x4268c6(_0x1a5f27);},'AsxPw':function(_0x1d58e2,_0x3882d3){return _0x1d58e2(_0x3882d3);},'nfvLm':_0x2020c1(0x219),'AYbIV':function(_0x1fca8a,_0x4b81f4){return _0x1fca8a(_0x4b81f4);},'iHubn':function(_0x8563ca,_0x231976){return _0x8563ca!=_0x231976;},'bWGla':function(_0x2ee86c,_0x5a74a0){return _0x2ee86c(_0x5a74a0);},'CJsIw':_0x2020c1(0x274),'mCKoa':_0x2020c1(0x246),'JWOGG':_0x2020c1(0x1ed),'UijBU':function(_0x54891d,_0x2fb9c1){return _0x54891d(_0x2fb9c1);}},_0x2602ec=this;if(!this[_0x2020c1(0x218)])try{const _0x16f036=[path[_0x2020c1(0x22e)](_0x3b0839[_0x2020c1(0x24e)],_0x3b0839[_0x2020c1(0x241)],_0x3b0839['LYyHx']),path[_0x2020c1(0x22e)](_0x3b0839[_0x2020c1(0x24e)],_0x3b0839[_0x2020c1(0x238)]),path['join'](_0x3b0839[_0x2020c1(0x241)],_0x3b0839[_0x2020c1(0x238)])];for(const _0x3a5dcf of _0x16f036){try{const _0x2fd80b=_0x3b0839['NSXYq'](importFileFromPWCore,_0x3a5dcf);if(_0x2fd80b&&_0x2fd80b[_0x2020c1(0x218)]){this[_0x2020c1(0x218)]=_0x2fd80b['Connection'],logger[_0x2020c1(0x21d)](_0x2020c1(0x247)+_0x3a5dcf);break;}}catch(_0x1890e8){_0x3b0839['wJzpi'](debug,_0x2020c1(0x25a)+_0x3a5dcf+':\x20'+_0x1890e8['toString']());}}if(!this['Connection']){_0x3b0839[_0x2020c1(0x1e0)](debug,_0x3b0839['nfvLm']);return;}}catch(_0x465605){_0x3b0839[_0x2020c1(0x209)](debug,'Error\x20in\x20importing\x20connection\x20'+_0x465605[_0x2020c1(0x1d4)]());return;}const _0x22a09c=this[_0x2020c1(0x218)];try{if(_0x3b0839['iHubn'](_0x22a09c,null)){const _0x59fc1b=_0x22a09c[_0x2020c1(0x1b7)]['dispatch'];if(!_0x3b0839[_0x2020c1(0x1db)](isFalse,process[_0x2020c1(0x21f)][_0x2020c1(0x1b3)])){if(_0x22a09c['prototype'][_0x2020c1(0x1f1)]){logger[_0x2020c1(0x21d)](_0x3b0839['CJsIw']);return;}Object[_0x2020c1(0x24f)](_0x22a09c['prototype'],_0x3b0839[_0x2020c1(0x215)],{'get':function(){return async function _0x3df47c(_0x18752c){const _0x19a4ac=a64_0x576a;if(BrowserstackCLI[_0x19a4ac(0x1bc)]()[_0x19a4ac(0x23b)]()){const _0x2d3bed={};_0x2d3bed[_0x19a4ac(0x1be)]=_0x18752c,await BrowserstackCLI[_0x19a4ac(0x1bc)]()[_0x19a4ac(0x21c)]()[_0x19a4ac(0x1e4)](AutomationFrameworkState[_0x19a4ac(0x256)],HookState[_0x19a4ac(0x222)],_0x2d3bed);}else{const _0xdfffaa=_0x18752c&&_0x18752c[_0x19a4ac(0x1bb)]&&_0x18752c[_0x19a4ac(0x1bb)][_0x19a4ac(0x1c9)];if(_0xdfffaa){const _0x5d498a=_0xdfffaa[_0x19a4ac(0x271)],_0x3aa50b=_0xdfffaa[_0x19a4ac(0x25e)];_0x3aa50b&&(_0x3b0839[_0x19a4ac(0x210)](debug,_0x19a4ac(0x1e7)+_0x3aa50b['toString']()),_0x2602ec[_0x19a4ac(0x276)]['platform']=_0x3aa50b[_0x19a4ac(0x263)],_0x2602ec[_0x19a4ac(0x276)]['platform_version']=_0x3aa50b['platformVersion']),_0x5d498a&&(_0x3b0839[_0x19a4ac(0x235)](debug,_0x19a4ac(0x226)+_0x5d498a),_0x2602ec[_0x19a4ac(0x276)][_0x19a4ac(0x249)]=_0x5d498a);}}return _0x59fc1b[_0x19a4ac(0x212)](this,arguments);};}}),_0x22a09c[_0x2020c1(0x1b7)][_0x2020c1(0x1f1)]=!![],logger[_0x2020c1(0x21d)](_0x3b0839[_0x2020c1(0x1dc)]);}}}catch(_0x33fc95){_0x3b0839[_0x2020c1(0x211)](debug,_0x2020c1(0x1c1)+_0x33fc95),_0x2602ec[_0x2020c1(0x23a)]=_0x33fc95['toString']();}}static[a64_0x24ec81(0x248)](){const _0x1cada5=a64_0x24ec81,_0x53929e={'RXhRw':function(_0x2bc764,_0x4a8f4d){return _0x2bc764(_0x4a8f4d);},'QujCH':_0x1cada5(0x1d8),'WzDBO':'server','hnYkJ':_0x1cada5(0x20f),'fZEeT':_0x1cada5(0x257),'LybOX':function(_0x27165e,_0xc66c1b){return _0x27165e(_0xc66c1b);},'tRhCA':function(_0x19bdca,_0x1252bd){return _0x19bdca(_0x1252bd);},'EuhZO':_0x1cada5(0x1f9),'pbZzm':_0x1cada5(0x1ff),'jSDoX':function(_0x188b96,_0x42d88b){return _0x188b96!=_0x42d88b;},'tDoXj':_0x1cada5(0x1cc),'aleTW':_0x1cada5(0x230),'QSpKD':'Successfully\x20patched\x20CRConnection._onMessage'},_0x436aee=this;let _0x387bad=null;try{const _0x4daba9=path[_0x1cada5(0x22e)](_0x53929e[_0x1cada5(0x25d)],_0x53929e['WzDBO'],_0x53929e['hnYkJ'],_0x53929e[_0x1cada5(0x265)]),_0x105b52=_0x53929e[_0x1cada5(0x224)](importFileFromPWCore,_0x4daba9);!_0x105b52?_0x53929e[_0x1cada5(0x252)](debug,_0x53929e[_0x1cada5(0x255)]):_0x387bad=_0x105b52[_0x1cada5(0x251)];}catch(_0x43dcb7){_0x53929e['tRhCA'](debug,_0x53929e['pbZzm']);}try{if(_0x53929e[_0x1cada5(0x216)](_0x387bad,null)){const _0x4dbc0b=_0x387bad[_0x1cada5(0x1b7)]['_onMessage'];if(_0x387bad[_0x1cada5(0x1b7)][_0x1cada5(0x1da)]){logger['debug'](_0x53929e[_0x1cada5(0x1d1)]);return;}Object['defineProperty'](_0x387bad[_0x1cada5(0x1b7)],_0x53929e[_0x1cada5(0x27d)],{'get':function(){return async function _0x5e5105(_0x1b7a0f){const _0x4f20b4=a64_0x576a;try{if(BrowserstackCLI[_0x4f20b4(0x1bc)]()[_0x4f20b4(0x23b)]()){const _0x2d0af8={};_0x2d0af8[_0x4f20b4(0x1be)]=_0x1b7a0f,await BrowserstackCLI[_0x4f20b4(0x1bc)]()['getAutomationFramework']()['trackEvent'](AutomationFrameworkState[_0x4f20b4(0x256)],HookState[_0x4f20b4(0x222)],_0x2d0af8),delete _0x1b7a0f[_0x4f20b4(0x270)];}else{const _0x113fba=_0x1b7a0f['bStackParams'];if(_0x113fba){delete _0x1b7a0f[_0x4f20b4(0x270)];const _0xfef6f7=_0x113fba['sessionId'],_0x12bda0=_0x113fba[_0x4f20b4(0x25e)];_0x12bda0&&(_0x53929e['RXhRw'](debug,_0x4f20b4(0x1ee)+_0x12bda0[_0x4f20b4(0x1d4)]()),_0x436aee[_0x4f20b4(0x276)][_0x4f20b4(0x232)]=_0x12bda0[_0x4f20b4(0x263)],_0x436aee[_0x4f20b4(0x276)][_0x4f20b4(0x27a)]=_0x12bda0[_0x4f20b4(0x1de)]),_0xfef6f7&&(_0x53929e['RXhRw'](debug,_0x4f20b4(0x26f)+_0xfef6f7),_0x436aee[_0x4f20b4(0x276)][_0x4f20b4(0x249)]=_0xfef6f7);}}}catch(_0x440f4f){_0x53929e[_0x4f20b4(0x26c)](debug,_0x4f20b4(0x25f)+_0x440f4f[_0x4f20b4(0x1d4)]());}return _0x4dbc0b['apply'](this,arguments);};}}),_0x387bad[_0x1cada5(0x1b7)]['_bstackCRPatched']=!![],logger[_0x1cada5(0x21d)](_0x53929e[_0x1cada5(0x239)]);}}catch(_0x3d12a5){_0x53929e[_0x1cada5(0x224)](debug,'Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20'+_0x3d12a5),_0x436aee['sessionError']=_0x3d12a5[_0x1cada5(0x1d4)]();}}static[a64_0x24ec81(0x1f6)](_0x301ef1,_0x21d44c){const _0x4bb126=a64_0x24ec81,_0x3d66cd={'yIxCW':_0x4bb126(0x1ae),'PeOpX':function(_0x4608ff,_0x52dce6){return _0x4608ff||_0x52dce6;},'YjryI':function(_0x4ad062,_0x288f15){return _0x4ad062===_0x288f15;},'sjZfX':_0x4bb126(0x260),'ymjXL':_0x4bb126(0x259),'ERXvN':function(_0x3b5f70,_0x138d0b){return _0x3b5f70(_0x138d0b);},'oTTmq':function(_0xab5ea3,_0x511902){return _0xab5ea3(_0x511902);}};let _0x1e0162=null,_0x146812=null;try{const _0x3814ed=[_0x21d44c,global[_0x4bb126(0x1e5)],global[_0x4bb126(0x24d)]];for(const _0x5ddb5f of _0x3814ed){if(_0x5ddb5f&&(!_0x146812||!_0x146812[_0x4bb126(0x271)])){const _0x466889=_0x5ddb5f[_0x4bb126(0x271)]||_0x5ddb5f[_0x3d66cd[_0x4bb126(0x204)]]?.['sessionId'],_0xbbc8dc=_0x5ddb5f[_0x4bb126(0x1fe)]||_0x5ddb5f[_0x4bb126(0x21e)]||_0x5ddb5f[_0x3d66cd['yIxCW']]?.[_0x4bb126(0x1fe)],_0x586f78=_0x5ddb5f[_0x4bb126(0x1ce)]||_0x5ddb5f['browser_version']||_0x5ddb5f[_0x3d66cd[_0x4bb126(0x204)]]?.[_0x4bb126(0x1ce)],_0x4f10f4=_0x5ddb5f['os']||_0x5ddb5f[_0x4bb126(0x232)]||_0x5ddb5f[_0x3d66cd[_0x4bb126(0x204)]]?.['os'],_0x9075be=_0x5ddb5f[_0x4bb126(0x261)]||_0x5ddb5f[_0x4bb126(0x1ba)]||_0x5ddb5f[_0x3d66cd[_0x4bb126(0x204)]]?.[_0x4bb126(0x261)];if(_0x3d66cd[_0x4bb126(0x1d0)](_0x466889,_0xbbc8dc)||_0x4f10f4){const _0x32aa4e={};_0x32aa4e[_0x4bb126(0x1fe)]=_0xbbc8dc,_0x32aa4e[_0x4bb126(0x1ce)]=_0x586f78,_0x32aa4e['os']=_0x4f10f4,_0x32aa4e['osVersion']=_0x9075be,_0x32aa4e[_0x4bb126(0x263)]=_0x5ddb5f[_0x4bb126(0x263)]||_0x4f10f4,_0x32aa4e['platformVersion']=_0x5ddb5f[_0x4bb126(0x1de)]||_0x9075be;const _0x690bf9={};_0x690bf9[_0x4bb126(0x271)]=_0x466889,_0x690bf9[_0x4bb126(0x25e)]=_0x32aa4e,_0x146812=_0x690bf9;if(_0x3d66cd[_0x4bb126(0x1d0)](_0x466889,_0xbbc8dc)){logger['debug']('BrowserStack\x20params\x20extracted\x20from\x20capabilities:\x20browser='+_0xbbc8dc+_0x4bb126(0x27c)+_0x4f10f4);break;}}}}if(_0x301ef1&&_0x3d66cd[_0x4bb126(0x1fd)](typeof _0x301ef1,_0x3d66cd[_0x4bb126(0x1af)]))try{const _0xdb2778=url[_0x4bb126(0x23c)](_0x301ef1),_0x4a8045=new URLSearchParams(_0xdb2778[_0x4bb126(0x1f5)]),_0x255861=Object[_0x4bb126(0x1c2)](_0x4a8045['entries']()),_0x28bf67=[_0x255861['caps'],_0x255861[_0x4bb126(0x1dd)],_0x255861[_0x4bb126(0x22a)]];for(const _0x5ffd6c of _0x28bf67){if(_0x5ffd6c&&(!_0x1e0162||!_0x1e0162[_0x4bb126(0x271)]))try{const _0x2ffa76=JSON[_0x4bb126(0x23c)](_0x5ffd6c),_0x40c7eb={};_0x40c7eb['sessionId']=_0x2ffa76[_0x4bb126(0x271)]||_0x2ffa76[_0x3d66cd['yIxCW']]?.['sessionId'],_0x40c7eb[_0x4bb126(0x25e)]={},_0x40c7eb[_0x4bb126(0x25e)][_0x4bb126(0x1fe)]=_0x2ffa76[_0x4bb126(0x1fe)]||_0x2ffa76['browser'],_0x40c7eb[_0x4bb126(0x25e)][_0x4bb126(0x1ce)]=_0x2ffa76[_0x4bb126(0x1ce)]||_0x2ffa76['browser_version'],_0x40c7eb[_0x4bb126(0x25e)]['os']=_0x2ffa76['os']||_0x2ffa76['platform'],_0x40c7eb[_0x4bb126(0x25e)][_0x4bb126(0x261)]=_0x2ffa76[_0x4bb126(0x261)]||_0x2ffa76['os_version'],_0x40c7eb[_0x4bb126(0x25e)][_0x4bb126(0x263)]=_0x2ffa76[_0x4bb126(0x263)]||_0x2ffa76['os']||_0x2ffa76[_0x4bb126(0x232)],_0x40c7eb[_0x4bb126(0x25e)]['platformVersion']=_0x2ffa76[_0x4bb126(0x1de)]||_0x2ffa76[_0x4bb126(0x261)]||_0x2ffa76[_0x4bb126(0x1ba)],_0x1e0162=_0x40c7eb;if(_0x1e0162[_0x4bb126(0x271)]||_0x1e0162[_0x4bb126(0x25e)]['browserName']){logger[_0x4bb126(0x21d)](_0x3d66cd['ymjXL']);break;}}catch(_0x13b44){_0x3d66cd[_0x4bb126(0x1eb)](debug,_0x4bb126(0x1e1)+_0x13b44[_0x4bb126(0x1d4)]());}}}catch(_0x56f746){_0x3d66cd['ERXvN'](debug,_0x4bb126(0x25b)+_0x56f746['toString']());}}catch(_0x35bb1f){_0x3d66cd[_0x4bb126(0x1d7)](debug,_0x4bb126(0x1b5)+util['format'](_0x35bb1f));}const _0x16983e={};return _0x16983e['bsParams']=_0x1e0162,_0x16983e[_0x4bb126(0x270)]=_0x146812,_0x16983e;}static async[a64_0x24ec81(0x213)](_0xc916c5,_0x5d23cc){const _0x5a349d=a64_0x24ec81,_0xf073cc={'wlTfG':function(_0x61c1c1,_0x3887ab){return _0x61c1c1||_0x3887ab;},'tQyAA':_0x5a349d(0x1cd),'vDsXB':function(_0x13832d,_0x4960e0){return _0x13832d||_0x4960e0;},'nPsbg':function(_0x4aab65,_0x446b48){return _0x4aab65(_0x446b48);}};try{if(!BrowserstackCLI[_0x5a349d(0x1bc)]()[_0x5a349d(0x23b)]())return;if(_0xf073cc[_0x5a349d(0x1e8)](_0xc916c5,_0x5d23cc)){logger['debug'](_0xf073cc[_0x5a349d(0x217)]);const _0x333b13={'params':_0xc916c5?{'bsParams':_0xc916c5}:null,'bStackParams':_0xf073cc[_0x5a349d(0x229)](_0x5d23cc,null)},_0x6e2d47=AutomationFramework[_0x5a349d(0x202)](),_0x30fc0d={};_0x30fc0d['message']=_0x333b13,_0x30fc0d['instance']=_0x6e2d47,await BrowserstackCLI[_0x5a349d(0x1bc)]()[_0x5a349d(0x21c)]()[_0x5a349d(0x1e4)](AutomationFrameworkState[_0x5a349d(0x256)],HookState[_0x5a349d(0x222)],_0x30fc0d);}}catch(_0x35fc85){_0xf073cc[_0x5a349d(0x223)](debug,'Error\x20triggering\x20PLAYWRIGHT_DISPATCH\x20event:\x20'+util[_0x5a349d(0x240)](_0x35fc85));}}static[a64_0x24ec81(0x1c5)](){const _0x223181=a64_0x24ec81;return this[_0x223181(0x276)];}}module['exports']=SharedPlaywrightSessionDetails;
@@ -1 +1 @@
1
- const a61_0x36b6e7=a61_0x6993;(function(_0x40cacc,_0x2d0a3e){const _0x2f29fe=a61_0x6993,_0x30d6b6=_0x40cacc();while(!![]){try{const _0x40992c=parseInt(_0x2f29fe(0x105))/0x1+parseInt(_0x2f29fe(0x100))/0x2+parseInt(_0x2f29fe(0xf2))/0x3*(parseInt(_0x2f29fe(0xfe))/0x4)+-parseInt(_0x2f29fe(0xfd))/0x5+-parseInt(_0x2f29fe(0xfc))/0x6+parseInt(_0x2f29fe(0xf7))/0x7*(-parseInt(_0x2f29fe(0xf9))/0x8)+-parseInt(_0x2f29fe(0x107))/0x9*(-parseInt(_0x2f29fe(0xf8))/0xa);if(_0x40992c===_0x2d0a3e)break;else _0x30d6b6['push'](_0x30d6b6['shift']());}catch(_0xafb159){_0x30d6b6['push'](_0x30d6b6['shift']());}}}(a61_0xc0a5,0x2a467));const isHash=_0x11cfcd=>Boolean(_0x11cfcd&&typeof _0x11cfcd===a61_0x36b6e7(0xf6)&&!Array[a61_0x36b6e7(0xfa)](_0x11cfcd)),nestedKeyValue=(_0x198c0c,_0x123d1a)=>{const _0x1c41ed=a61_0x36b6e7,_0x222488={'UJGBo':function(_0x5e5515,_0x438a48){return _0x5e5515===_0x438a48;},'IbGPX':function(_0x55fb58,_0x407c41){return _0x55fb58===_0x407c41;},'mOdDR':function(_0x33234c,_0x4cefdd){return _0x33234c===_0x4cefdd;},'otJnu':_0x1c41ed(0xfb),'JDosU':function(_0x53f7cd,_0x734fbd){return _0x53f7cd(_0x734fbd);}};return _0x123d1a[_0x1c41ed(0x101)]((_0x5d00ec,_0x320c72)=>{const _0x532264=_0x1c41ed;if(_0x222488[_0x532264(0x106)](_0x5d00ec,undefined)||_0x222488[_0x532264(0xf4)](_0x5d00ec,null))return undefined;if(_0x5d00ec&&_0x222488[_0x532264(0x103)](typeof _0x5d00ec[_0x532264(0x104)],_0x222488[_0x532264(0x108)]))return _0x5d00ec['get'](_0x320c72);if(_0x222488[_0x532264(0xff)](isHash,_0x5d00ec))return _0x5d00ec[_0x320c72];return undefined;},_0x198c0c);},a61_0x3e84ae={};function a61_0x6993(_0x61ceb5,_0x331b61){const _0xc0a54=a61_0xc0a5();return a61_0x6993=function(_0x6993dc,_0x2eebf0){_0x6993dc=_0x6993dc-0xf2;let _0x50b863=_0xc0a54[_0x6993dc];return _0x50b863;},a61_0x6993(_0x61ceb5,_0x331b61);}a61_0x3e84ae[a61_0x36b6e7(0xf3)]=isHash,a61_0x3e84ae[a61_0x36b6e7(0xf5)]=nestedKeyValue,module[a61_0x36b6e7(0x102)]=a61_0x3e84ae;function a61_0xc0a5(){const _0x3ae167=['function','880086GqYzYi','711985IIyDzT','88632DHboUB','JDosU','288242fLpXsu','reduce','exports','mOdDR','get','202124Epjgci','UJGBo','8361EGkZnF','otJnu','39ZRuDil','isHash','IbGPX','nestedKeyValue','object','557977MKzeHY','1580MwUihu','32yonVXz','isArray'];a61_0xc0a5=function(){return _0x3ae167;};return a61_0xc0a5();}
1
+ const a65_0x2f92e5=a65_0x1c1f;function a65_0x2d8e(){const _0x2262ad=['XLRFD','60035wsyqiI','1285191AUaGpD','exports','132MClsKx','nestedKeyValue','reduce','object','1CetsTs','232736feWGEi','AdOYS','571430RfoiJU','function','1100YKeVWJ','10YCAUvT','get','isArray','1698907TBxTPh','uWWqp','7720812HLlasa','CNqQG','2148SPJRln','isHash'];a65_0x2d8e=function(){return _0x2262ad;};return a65_0x2d8e();}(function(_0x3b0f78,_0xf2e8af){const _0x54b737=a65_0x1c1f,_0x1992f7=_0x3b0f78();while(!![]){try{const _0x8b3140=parseInt(_0x54b737(0x1ca))/0x1*(parseInt(_0x54b737(0x1cd))/0x2)+-parseInt(_0x54b737(0x1c0))/0x3*(parseInt(_0x54b737(0x1cf))/0x4)+-parseInt(_0x54b737(0x1c3))/0x5*(parseInt(_0x54b737(0x1c6))/0x6)+-parseInt(_0x54b737(0x1bc))/0x7+parseInt(_0x54b737(0x1cb))/0x8+parseInt(_0x54b737(0x1c4))/0x9*(-parseInt(_0x54b737(0x1d0))/0xa)+parseInt(_0x54b737(0x1be))/0xb;if(_0x8b3140===_0xf2e8af)break;else _0x1992f7['push'](_0x1992f7['shift']());}catch(_0x9d6666){_0x1992f7['push'](_0x1992f7['shift']());}}}(a65_0x2d8e,0x298a1));function a65_0x1c1f(_0xacfeb3,_0x3cd663){const _0x2d8ec0=a65_0x2d8e();return a65_0x1c1f=function(_0x1c1f79,_0x1a5226){_0x1c1f79=_0x1c1f79-0x1bb;let _0x141e0d=_0x2d8ec0[_0x1c1f79];return _0x141e0d;},a65_0x1c1f(_0xacfeb3,_0x3cd663);}const isHash=_0x5266b3=>Boolean(_0x5266b3&&typeof _0x5266b3===a65_0x2f92e5(0x1c9)&&!Array[a65_0x2f92e5(0x1bb)](_0x5266b3)),nestedKeyValue=(_0x464d50,_0x426188)=>{const _0x2202ec=a65_0x2f92e5,_0x5eb9e1={'uWWqp':function(_0x5e5745,_0x35398b){return _0x5e5745===_0x35398b;},'XLRFD':function(_0x4ab4ac,_0x5737ca){return _0x4ab4ac===_0x5737ca;},'CNqQG':_0x2202ec(0x1ce),'AdOYS':function(_0x3e2445,_0x3abbe3){return _0x3e2445(_0x3abbe3);}};return _0x426188[_0x2202ec(0x1c8)]((_0x544130,_0xd10177)=>{const _0x4eefe0=_0x2202ec;if(_0x5eb9e1[_0x4eefe0(0x1bd)](_0x544130,undefined)||_0x5eb9e1[_0x4eefe0(0x1c2)](_0x544130,null))return undefined;if(_0x544130&&_0x5eb9e1['uWWqp'](typeof _0x544130[_0x4eefe0(0x1d1)],_0x5eb9e1[_0x4eefe0(0x1bf)]))return _0x544130[_0x4eefe0(0x1d1)](_0xd10177);if(_0x5eb9e1[_0x4eefe0(0x1cc)](isHash,_0x544130))return _0x544130[_0xd10177];return undefined;},_0x464d50);},a65_0xf0a649={};a65_0xf0a649[a65_0x2f92e5(0x1c1)]=isHash,a65_0xf0a649[a65_0x2f92e5(0x1c7)]=nestedKeyValue,module[a65_0x2f92e5(0x1c5)]=a65_0xf0a649;
@@ -1 +1 @@
1
- function a62_0x9fb8(_0x25d5e4,_0x36c4d1){const _0xf866a4=a62_0xf866();return a62_0x9fb8=function(_0x9fb891,_0x4395ab){_0x9fb891=_0x9fb891-0xd5;let _0x3b960c=_0xf866a4[_0x9fb891];return _0x3b960c;},a62_0x9fb8(_0x25d5e4,_0x36c4d1);}function a62_0xf866(){const _0xa7439d=['getStoreDirPath','RbZyQ','getFilePath','odRFS','message','lockSync','uxtBM','getTestDetails','Error\x20handling\x20trace\x20file\x20paths:\x20%O','existsSync','QncrW','stringify','default','join','LuVlq','resolve','.browserstack','readLogObjects:\x20No\x20logObjects\x20object\x20found\x20for\x20testId:\x20','.\x20Returning\x20empty\x20test\x20details.','uuid','_traceZipPaths.json','1664605HNeZKm','storeLogObjects:\x20processId:\x20','CLzdd','path','env','getStoreDirName','error','yhDCJ','writeFileSync','\x20Setting\x20test\x20details\x20for\x20','shutdown','getAccessibilityPlatformValidation','recursive','push','QmIYM','info','1|4|6|2|5|3|0','appendToTracePaths','DCKgY','readLogObjects:\x20No\x20log\x20objects\x20found\x20for\x20testId:\x20','Failed\x20to\x20acquire\x20lock\x20for\x20','bzwFf','readFileSync','dBFIB','getTestIdFromTestInfo','.\x20Unable\x20to\x20retrieve\x20log\x20objects.','getTestRunIdFromTestInfo','EccqD','TalBv','624456UhxqoO','retry','Error\x20while\x20getting\x20test\x20UUID\x20for\x20','parse','winstonLogger','.\x20Unable\x20to\x20set\x20test\x20details.','getProjectIdFromTestInfo','oZTNu','dirname','testFramework','CrJvK','rmSync','_platformDetails.json','../../helpers/helper','format','setup','2893740ZMraEQ','testId','exports','\x20Retrieving\x20logs\x20for\x20','\x20with\x20details:\x20','469426xwBsWC','addTraceFilePath','ZkWsR','Error\x20reading\x20trace\x20file\x20paths:\x20%O','pZXcX','ZRopS','trace_','.json','\x20Adding\x20console\x20log\x20for\x20','giunx','logObjects','getTraceFilePaths','some','../../helpers/logger','force','pid','../../helpers/test-observability/constants','split','.\x20Unable\x20to\x20add\x20console\x20log.','project','util','mkdirSync','getTestIdentifierFromTestInfo','logger','vitmZ','qZfcT','toString','BS_TESTOPS_BUILD_HASHED_ID','forEach','935388BaelUi','ltrFq','traceZipPaths','sRIEh','vskix','object','[setTestDetails]\x20processId:\x20','_projectId','traceZipDir','yWItI','rUbIg','storeLogObjects','endsWith','ZHFMj','appendFileSync','.txt','values','tests','filePath','lxBJf','getTestUUID','_test','dirPath','isArray','Error\x20writing\x20trace\x20file:\x20%O','mHuFb','202962dgyqqr','readLogObjects','debug','1799637VFrAnh','IzZLL','esfRQ','rckkm','ZrxSF','length','qkYhM','../../helpers/classLogger.js'];a62_0xf866=function(){return _0xa7439d;};return a62_0xf866();}const a62_0x11aa70=a62_0x9fb8;(function(_0xd8ba5,_0xabc082){const _0x2db26a=a62_0x9fb8,_0x426629=_0xd8ba5();while(!![]){try{const _0x15aa45=parseInt(_0x2db26a(0xe9))/0x1+parseInt(_0x2db26a(0x13b))/0x2+parseInt(_0x2db26a(0x158))/0x3+-parseInt(_0x2db26a(0x126))/0x4+-parseInt(_0x2db26a(0x109))/0x5+parseInt(_0x2db26a(0x136))/0x6+-parseInt(_0x2db26a(0xec))/0x7;if(_0x15aa45===_0xabc082)break;else _0x426629['push'](_0x426629['shift']());}catch(_0x5e57ca){_0x426629['push'](_0x426629['shift']());}}}(a62_0xf866,0x76903));const fs=require('fs'),path=require(a62_0x11aa70(0x10c)),{TEMP_STORE_DIR_NAME}=require(a62_0x11aa70(0x14b)),{nestedKeyValue}=require(a62_0x11aa70(0x133)),logger=require(a62_0x11aa70(0x148))[a62_0x11aa70(0x12a)],util=require(a62_0x11aa70(0x14f)),helper=require(a62_0x11aa70(0x133)),{createClassLogger}=require(a62_0x11aa70(0xf3)),lockfile=require('proper-lockfile'),{v4:uuidv4}=require(a62_0x11aa70(0x107));class TestInfo{static ['tests']={};static ['dirPath']=TestInfo[a62_0x11aa70(0x10e)]();static ['traceZipDir']=path[a62_0x11aa70(0x101)](TestInfo['dirPath'],'traceZipPaths');static ['testFramework']=null;[a62_0x11aa70(0x152)]=createClassLogger('TestInfo');static[a62_0x11aa70(0x135)](_0x2d680b){const _0x1e8972=a62_0x11aa70,_0x1f8b72={};_0x1f8b72[_0x1e8972(0xe8)]=_0x1e8972(0x119),_0x1f8b72[_0x1e8972(0x12d)]='traceZipPaths';const _0x23d8f0=_0x1f8b72,_0x17c340=_0x23d8f0[_0x1e8972(0xe8)][_0x1e8972(0x14c)]('|');let _0x454412=0x0;while(!![]){switch(_0x17c340[_0x454412++]){case'0':logger[_0x1e8972(0x118)]('Setting\x20up\x20TestInfo\x20directory\x20at\x20'+this[_0x1e8972(0xe5)]);continue;case'1':this[_0x1e8972(0xe5)]=TestInfo[_0x1e8972(0x10e)]();continue;case'2':this['shutdown']();continue;case'3':const _0x33e191={};_0x33e191[_0x1e8972(0x115)]=!![],fs['mkdirSync'](this[_0x1e8972(0xd7)],_0x33e191);continue;case'4':this[_0x1e8972(0xd7)]=path[_0x1e8972(0x101)](this[_0x1e8972(0xe5)],_0x23d8f0[_0x1e8972(0x12d)]);continue;case'5':const _0x2ac7af={};_0x2ac7af[_0x1e8972(0x115)]=!![],fs[_0x1e8972(0x150)](this[_0x1e8972(0xe5)],_0x2ac7af);continue;case'6':this[_0x1e8972(0x12f)]=_0x2d680b;continue;}break;}}static['getStoreDirName'](){const _0x44f1c5=a62_0x11aa70,_0xe5f606={};_0xe5f606['uxtBM']=function(_0x3268f8,_0x5c6f7f){return _0x3268f8+_0x5c6f7f;},_0xe5f606[_0x44f1c5(0xd8)]=_0x44f1c5(0x100);const _0x281e68=_0xe5f606;return _0x281e68[_0x44f1c5(0xfa)](_0x281e68[_0x44f1c5(0xfa)](TEMP_STORE_DIR_NAME,'-'),process[_0x44f1c5(0x10d)]['BS_TESTOPS_BUILD_HASHED_ID']||_0x281e68[_0x44f1c5(0xd8)]);}static[a62_0x11aa70(0xf4)](){const _0x128eaf=a62_0x11aa70,_0x2dd578={};_0x2dd578[_0x128eaf(0x140)]=function(_0x2a353a,_0x1e7281){return _0x2a353a+_0x1e7281;},_0x2dd578['ZHFMj']=function(_0x22bf38,_0x1f882b){return _0x22bf38+_0x1f882b;},_0x2dd578[_0x128eaf(0x11e)]=_0x128eaf(0x100);const _0xeb79c8=_0x2dd578;return path['join'](_0xeb79c8[_0x128eaf(0x140)](_0xeb79c8[_0x128eaf(0xdc)](TEMP_STORE_DIR_NAME,'-'),process['env'][_0x128eaf(0x156)]||_0xeb79c8['bzwFf']));}static['getTraceZipDir'](){const _0x4a3224=a62_0x11aa70,_0x458844={};_0x458844['pZXcX']=_0x4a3224(0x15a);const _0x990adb=_0x458844;return path[_0x4a3224(0x101)](this[_0x4a3224(0xf4)](),_0x990adb[_0x4a3224(0x13f)]);}static[a62_0x11aa70(0xf6)](_0x3a0ea3){const _0x16f1a8=a62_0x11aa70,_0x8113da={};_0x8113da[_0x16f1a8(0xed)]=function(_0xc65e2c,_0x517712){return _0xc65e2c+_0x517712;},_0x8113da[_0x16f1a8(0xf7)]=_0x16f1a8(0x142);const _0x3e4567=_0x8113da;return path[_0x16f1a8(0x101)](this[_0x16f1a8(0xe5)],_0x3e4567['IzZLL'](_0x3a0ea3,_0x3e4567[_0x16f1a8(0xf7)]));}static[a62_0x11aa70(0x123)](_0x2b2aef){const _0x4662e2=a62_0x11aa70,_0x1783a9={};_0x1783a9['sRIEh']=function(_0x5efb7b,_0x47a9d3){return _0x5efb7b+_0x47a9d3;};const _0x17789e=_0x1783a9;return _0x17789e[_0x4662e2(0x15b)](_0x17789e[_0x4662e2(0x15b)](_0x17789e[_0x4662e2(0x15b)](_0x17789e[_0x4662e2(0x15b)](this[_0x4662e2(0x12c)](_0x2b2aef),'-'),this[_0x4662e2(0x121)](_0x2b2aef)),'-'),_0x2b2aef[_0x4662e2(0x127)]);}static[a62_0x11aa70(0x12c)](_0x214c93){const _0x44a8c8=a62_0x11aa70,_0x2009c7={'yhDCJ':function(_0xeeaa9,_0x1c96ef,_0x2eadf8){return _0xeeaa9(_0x1c96ef,_0x2eadf8);},'ZkWsR':_0x44a8c8(0xe4),'DFBbe':_0x44a8c8(0xd6),'ZrxSF':function(_0x22e7c4,_0x112444,_0x2bfe38){return _0x22e7c4(_0x112444,_0x2bfe38);},'ltrFq':_0x44a8c8(0x14e),'vitmZ':'__projectId'};return _0x2009c7[_0x44a8c8(0x110)](nestedKeyValue,_0x214c93,[_0x2009c7[_0x44a8c8(0x13d)],_0x2009c7['DFBbe']])||_0x2009c7[_0x44a8c8(0xf0)](nestedKeyValue,_0x214c93,[_0x2009c7[_0x44a8c8(0x159)],_0x2009c7[_0x44a8c8(0x153)]]);}static[a62_0x11aa70(0x121)](_0x3c1bc6){const _0x578546=a62_0x11aa70,_0x4fdfff={'dBFIB':function(_0x22d4c1,_0x4187af,_0x4dd163){return _0x22d4c1(_0x4187af,_0x4dd163);},'EccqD':'_test'};return _0x4fdfff[_0x578546(0x120)](nestedKeyValue,_0x3c1bc6,[_0x4fdfff[_0x578546(0x124)],'id'])||_0x3c1bc6[_0x578546(0x137)];}static[a62_0x11aa70(0x151)](_0x1712e5,_0x322b68){const _0x417ea1=a62_0x11aa70,_0xa858ff={};_0xa858ff[_0x417ea1(0x102)]=function(_0x2035e8,_0x459ddc){return _0x2035e8+_0x459ddc;};const _0x23168a=_0xa858ff;return _0x23168a[_0x417ea1(0x102)](_0x23168a[_0x417ea1(0x102)](this[_0x417ea1(0x121)](_0x1712e5),'-'),_0x322b68);}static[a62_0x11aa70(0xe3)](_0xc0b0fe){const _0x3a39ec=a62_0x11aa70,_0x46c432={'mivAV':function(_0x4ff2da,_0x423b35){return _0x4ff2da===_0x423b35;},'DCKgY':'string','giunx':function(_0x57ed25){return _0x57ed25();}};try{if(this[_0x3a39ec(0xe0)][_0xc0b0fe]&&_0x46c432['mivAV'](typeof this[_0x3a39ec(0xe0)][_0xc0b0fe][_0x3a39ec(0x107)],_0x46c432[_0x3a39ec(0x11b)]))return this['tests'][_0xc0b0fe][_0x3a39ec(0x107)];const _0x195c3e=this[_0x3a39ec(0xf6)](_0xc0b0fe),_0x121c6b=path[_0x3a39ec(0x103)](_0x195c3e);if(fs['existsSync'](_0x121c6b)){const _0x291c9a=JSON[_0x3a39ec(0x129)](fs[_0x3a39ec(0x11f)](_0x195c3e)[_0x3a39ec(0x155)]());return this[_0x3a39ec(0xe0)][_0xc0b0fe]=_0x291c9a,this['tests'][_0xc0b0fe]['uuid'];}this['tests'][_0xc0b0fe]={'uuid':_0x46c432[_0x3a39ec(0x144)](uuidv4)};try{fs[_0x3a39ec(0x111)](_0x195c3e,JSON[_0x3a39ec(0xff)](this['tests'][_0xc0b0fe]));}catch(_0x3ec0c5){logger[_0x3a39ec(0x10f)]('Error\x20writing\x20test\x20details\x20to\x20file\x20for\x20'+_0xc0b0fe+':\x20'+_0x3ec0c5['message']);}return this[_0x3a39ec(0xe0)][_0xc0b0fe][_0x3a39ec(0x107)];}catch(_0x416489){return logger[_0x3a39ec(0x10f)](_0x3a39ec(0x128)+_0xc0b0fe+':\x20'+_0x416489[_0x3a39ec(0xf8)]),null;}}static[a62_0x11aa70(0x114)](_0x65d0ab){const _0x488285=a62_0x11aa70,_0x7fd182=path[_0x488285(0x101)](this['dirPath'],_0x65d0ab+_0x488285(0x132));if(fs[_0x488285(0xfd)](_0x7fd182))return fs[_0x488285(0x11f)](_0x7fd182)['toString']();}static['setAccessibilityPlatformValidation'](_0x5511c9,_0x322c03){const _0x1ca6e6=a62_0x11aa70,_0x2058f6=path[_0x1ca6e6(0x101)](this['dirPath'],_0x322c03+'_platformDetails.json');fs[_0x1ca6e6(0x111)](_0x2058f6,_0x5511c9[_0x1ca6e6(0x155)]());}static[a62_0x11aa70(0x113)](){const _0x2d28b3=a62_0x11aa70,_0x2114c6={};_0x2114c6['recursive']=!![],_0x2114c6[_0x2d28b3(0x149)]=!![],fs[_0x2d28b3(0x131)](this['dirPath'],_0x2114c6);}static[a62_0x11aa70(0xfb)](_0x1c4d2c){const _0x3235c0=a62_0x11aa70,_0x10d690=this[_0x3235c0(0xf6)](_0x1c4d2c);if(fs['existsSync'](_0x10d690))try{const _0x181cb6=JSON[_0x3235c0(0x129)](fs[_0x3235c0(0x11f)](_0x10d690)['toString']());return this[_0x3235c0(0xe0)][_0x1c4d2c]=_0x181cb6,_0x181cb6;}catch(_0x4e5e52){return logger[_0x3235c0(0xeb)]('Failed\x20to\x20acquire\x20lock\x20for\x20'+_0x10d690+':\x20'+util[_0x3235c0(0x134)](_0x4e5e52)+_0x3235c0(0x106)),{};}return{};}static['setTestDetails'](_0x5276f4,_0x3d2f3a,_0x48d47b=![]){const _0x4be405=a62_0x11aa70,_0x43ad1e={'RbZyQ':function(_0x59f4e5){return _0x59f4e5();}};logger['debug'](_0x4be405(0xd5)+process['pid']+_0x4be405(0x112)+_0x5276f4+_0x4be405(0x13a)+JSON[_0x4be405(0xff)](_0x3d2f3a));const _0x5d1a3a=this[_0x4be405(0xf6)](_0x5276f4);if(fs[_0x4be405(0xfd)](_0x5d1a3a))try{const _0x3f3fd3=lockfile[_0x4be405(0xf9)](_0x5d1a3a),_0x2fa42b=JSON[_0x4be405(0x129)](fs[_0x4be405(0x11f)](_0x5d1a3a)[_0x4be405(0x155)]());if(_0x48d47b)this[_0x4be405(0xe0)][_0x5276f4]=helper['mergeDeep'](_0x2fa42b,_0x3d2f3a);else{const _0x47d6d8={..._0x2fa42b,..._0x3d2f3a};this[_0x4be405(0xe0)][_0x5276f4]=_0x47d6d8;}fs['writeFileSync'](_0x5d1a3a,JSON[_0x4be405(0xff)](this['tests'][_0x5276f4])),_0x43ad1e[_0x4be405(0xf5)](_0x3f3fd3);}catch(_0xf33b62){logger[_0x4be405(0xeb)]('Failed\x20to\x20acquire\x20lock\x20for\x20'+_0x5d1a3a+':\x20'+util['format'](_0xf33b62)+_0x4be405(0x12b));}}static[a62_0x11aa70(0xda)](_0x5255cb,_0x20370d){const _0xb0d27d=a62_0x11aa70,_0x1787b1={'vskix':function(_0xc31029,_0x36cab1){return _0xc31029!==_0x36cab1;},'TalBv':_0xb0d27d(0x15d),'mDLcH':function(_0x34c10f){return _0x34c10f();}};logger[_0xb0d27d(0xeb)](_0xb0d27d(0x10a)+process[_0xb0d27d(0x14a)]+_0xb0d27d(0x143)+_0x5255cb+'}');const _0x3596ff=this[_0xb0d27d(0xf6)](_0x5255cb);try{let _0x1affe0={};if(fs[_0xb0d27d(0xfd)](_0x3596ff)){const _0x4812af=lockfile[_0xb0d27d(0xf9)](_0x3596ff);_0x1affe0=JSON[_0xb0d27d(0x129)](fs[_0xb0d27d(0x11f)](_0x3596ff)[_0xb0d27d(0x155)]()),(!_0x1affe0[_0xb0d27d(0x145)]||_0x1787b1[_0xb0d27d(0x15c)](typeof _0x1affe0[_0xb0d27d(0x145)],_0x1787b1[_0xb0d27d(0x125)]))&&(_0x1affe0[_0xb0d27d(0x145)]={}),(!_0x1affe0['logObjects'][_0x5255cb]||!Array[_0xb0d27d(0xe6)](_0x1affe0['logObjects'][_0x5255cb]))&&(_0x1affe0['logObjects'][_0x5255cb]=[]),_0x1affe0[_0xb0d27d(0x145)][_0x5255cb][_0xb0d27d(0x116)](_0x20370d),this['tests'][_0x5255cb]=_0x1affe0,fs['writeFileSync'](_0x3596ff,JSON[_0xb0d27d(0xff)](this[_0xb0d27d(0xe0)][_0x5255cb])),_0x1787b1['mDLcH'](_0x4812af);}else{const _0x2a60ca={};_0x2a60ca['uuid']=_0x5255cb,_0x2a60ca[_0xb0d27d(0x145)]={},_0x2a60ca[_0xb0d27d(0x145)][_0x5255cb]=[_0x20370d],_0x1affe0=_0x2a60ca,this[_0xb0d27d(0xe0)][_0x5255cb]=_0x1affe0,fs[_0xb0d27d(0x111)](_0x3596ff,JSON[_0xb0d27d(0xff)](this[_0xb0d27d(0xe0)][_0x5255cb]));}}catch(_0x37d2bd){logger[_0xb0d27d(0xeb)](_0xb0d27d(0x11d)+_0x3596ff+':\x20'+util[_0xb0d27d(0x134)](_0x37d2bd)+_0xb0d27d(0x14d));}}static[a62_0x11aa70(0xea)](_0x3dbb9a){const _0x103203=a62_0x11aa70,_0x19c877={'CLzdd':function(_0x12f93a,_0x57c53b){return _0x12f93a!==_0x57c53b;},'QmIYM':'object','rUbIg':function(_0x4795ac){return _0x4795ac();},'rckkm':function(_0x2a52cb,_0x422e41){return _0x2a52cb===_0x422e41;},'HRPFL':function(_0xac1751){return _0xac1751();}};logger[_0x103203(0xeb)]('readLogObjects:\x20processId:\x20'+process['pid']+_0x103203(0x139)+_0x3dbb9a);const _0x12eea3=this[_0x103203(0xf6)](_0x3dbb9a);try{if(!fs[_0x103203(0xfd)](_0x12eea3))return logger['debug']('readLogObjects:\x20No\x20file\x20found\x20for\x20testId:\x20'+_0x3dbb9a),[];const _0xa2323b=lockfile[_0x103203(0xf9)](_0x12eea3),_0x486100=JSON[_0x103203(0x129)](fs[_0x103203(0x11f)](_0x12eea3)['toString']());if(!_0x486100['logObjects']||_0x19c877[_0x103203(0x10b)](typeof _0x486100['logObjects'],_0x19c877[_0x103203(0x117)]))return logger[_0x103203(0xeb)](_0x103203(0x105)+_0x3dbb9a),_0x19c877[_0x103203(0xd9)](_0xa2323b),[];if(!_0x486100[_0x103203(0x145)][_0x3dbb9a]||!Array['isArray'](_0x486100[_0x103203(0x145)][_0x3dbb9a])||_0x19c877[_0x103203(0xef)](_0x486100[_0x103203(0x145)][_0x3dbb9a]['length'],0x0))return logger[_0x103203(0xeb)](_0x103203(0x11c)+_0x3dbb9a),_0x19c877[_0x103203(0xd9)](_0xa2323b),[];const _0x2e0f0f=[..._0x486100[_0x103203(0x145)][_0x3dbb9a]];return logger['debug']('readLogObjects:\x20Retrieved\x20'+_0x2e0f0f[_0x103203(0xf1)]+'\x20log\x20objects\x20for\x20testId:\x20'+_0x3dbb9a),_0x486100[_0x103203(0x145)][_0x3dbb9a]=[],this[_0x103203(0xe0)][_0x3dbb9a]=_0x486100,fs[_0x103203(0x111)](_0x12eea3,JSON['stringify'](this['tests'][_0x3dbb9a])),_0x19c877['HRPFL'](_0xa2323b),_0x2e0f0f;}catch(_0x573c4f){return logger['debug']('Failed\x20to\x20acquire\x20lock\x20for\x20'+_0x12eea3+':\x20'+util[_0x103203(0x134)](_0x573c4f)+_0x103203(0x122)),[];}}static[a62_0x11aa70(0x13c)](_0x576284){const _0x58f356=a62_0x11aa70,_0x8220fe={};_0x8220fe[_0x58f356(0xe2)]=_0x58f356(0xfc);const _0x41aaaa=_0x8220fe;try{const _0x3f62d1=process['pid'],_0x3453d5=path[_0x58f356(0x101)](TestInfo['getTraceZipDir'](),_0x3f62d1+_0x58f356(0x108));let _0x17a1f2=[];fs[_0x58f356(0xfd)](_0x3453d5)&&(_0x17a1f2=JSON[_0x58f356(0x129)](fs[_0x58f356(0x11f)](_0x3453d5)[_0x58f356(0x155)]()));if(!_0x17a1f2[_0x58f356(0x147)](_0x55b7e2=>_0x55b7e2[_0x58f356(0xe1)]===_0x576284[_0x58f356(0xe1)])){_0x17a1f2[_0x58f356(0x116)](_0x576284);const _0x360ab5=path[_0x58f356(0x12e)](_0x3453d5);if(!fs[_0x58f356(0xfd)](_0x360ab5)){const _0x4fc3d9={};_0x4fc3d9[_0x58f356(0x115)]=!![],fs[_0x58f356(0x150)](_0x360ab5,_0x4fc3d9);}fs[_0x58f356(0x111)](_0x3453d5,JSON[_0x58f356(0xff)](_0x17a1f2));}}catch(_0x10fb0a){logger[_0x58f356(0x10f)](util[_0x58f356(0x134)](_0x41aaaa[_0x58f356(0xe2)],_0x10fb0a));}}static[a62_0x11aa70(0x146)](){const _0x5a5479=a62_0x11aa70,_0x92919d={};_0x92919d[_0x5a5479(0xfe)]=_0x5a5479(0x108),_0x92919d[_0x5a5479(0x130)]=_0x5a5479(0x13e);const _0xe06568=_0x92919d,_0x2c349e=[];try{const _0x125747=TestInfo['getTraceZipDir']();if(!fs[_0x5a5479(0xfd)](_0x125747))return _0x2c349e;const _0x3494e6=fs['readdirSync'](_0x125747);_0x3494e6[_0x5a5479(0x157)](_0x47f6eb=>{const _0x3971f0=_0x5a5479;if(_0x47f6eb[_0x3971f0(0xdb)](_0xe06568[_0x3971f0(0xfe)])){const _0x4c42d6=JSON[_0x3971f0(0x129)](fs[_0x3971f0(0x11f)](path[_0x3971f0(0x101)](_0x125747,_0x47f6eb))[_0x3971f0(0x155)]());_0x2c349e[_0x3971f0(0x116)](..._0x4c42d6);}});}catch(_0x327c37){logger[_0x5a5479(0x10f)](util[_0x5a5479(0x134)](_0xe06568[_0x5a5479(0x130)],_0x327c37));}const _0x2e647b={};return _0x2c349e[_0x5a5479(0x157)](_0x4bc0c5=>{const _0x395db1=_0x5a5479;_0x2e647b[_0x4bc0c5[_0x395db1(0xe1)]]=_0x4bc0c5;}),Object[_0x5a5479(0xdf)](_0x2e647b);}static[a62_0x11aa70(0x11a)](_0x1a7d09,_0x580bef){const _0x590d8e=a62_0x11aa70,_0x3b0188={};_0x3b0188[_0x590d8e(0xf2)]=_0x590d8e(0x104),_0x3b0188['qZfcT']='utf8',_0x3b0188['esfRQ']=_0x590d8e(0xe7);const _0xb559a0=_0x3b0188;try{const _0x5160b9=path[_0x590d8e(0x101)](helper['homedir'](),_0xb559a0[_0x590d8e(0xf2)]);if(!fs['existsSync'](_0x5160b9)){const _0x6cb78b={};_0x6cb78b[_0x590d8e(0x115)]=!![],fs[_0x590d8e(0x150)](_0x5160b9,_0x6cb78b);}fs[_0x590d8e(0xdd)](path[_0x590d8e(0x101)](_0x5160b9,_0x590d8e(0x141)+_0x580bef+_0x590d8e(0xde)),_0x1a7d09+'\x0a',_0xb559a0[_0x590d8e(0x154)]);}catch(_0x4d4ae2){logger['error'](util[_0x590d8e(0x134)](_0xb559a0[_0x590d8e(0xee)],_0x4d4ae2));}}}module[a62_0x11aa70(0x138)]=TestInfo;
1
+ function a66_0x111e(){const _0x2077ca=['getTestIdFromTestInfo','object','Error\x20while\x20getting\x20test\x20UUID\x20for\x20','usqex','.\x20Unable\x20to\x20add\x20console\x20log.','trace_','3158705UJAOPB','2OSjlVB','setTestDetails','omdnH','readLogObjects:\x20processId:\x20','3596136wcgkrS','length','testFramework','env','proper-lockfile','1263888WgcnFd','mergeDeep','error','Error\x20writing\x20trace\x20file:\x20%O','cAcVd','getStoreDirPath','keOUG','traceZipDir','[setTestDetails]\x20processId:\x20','getTestRunIdFromTestInfo','shutdown','_traceZipPaths.json','__projectId','readdirSync','YgABW','6699VMKjDD','getFilePath','dirPath','dirname','hWAds','qeCjI','getStoreDirName','testId','rmSync','getTestIdentifierFromTestInfo','tests','212994IiNMsU','zpMul','goKvc','xLZHS','ZumfG','forEach','push','readFileSync','../../helpers/helper','PBnah','\x20Retrieving\x20logs\x20for\x20','message','IkJPn','join','getTraceFilePaths','../../helpers/classLogger.js','../../helpers/test-observability/constants','lockSync','zvhNu','path','sWkjy','Error\x20writing\x20test\x20details\x20to\x20file\x20for\x20','some','200nycnnI','logObjects','6186AjqScg','zxyRX','retry','default','getTraceZipDir','GXEwu','existsSync','EWBlh','TOjnr','format','filePath','136RbYKbK','string','readLogObjects:\x20No\x20file\x20found\x20for\x20testId:\x20','split','appendFileSync','getProjectIdFromTestInfo','project','exports','pid','Failed\x20to\x20acquire\x20lock\x20for\x20','kKOTV','values','KAJsN','parse','logger','uuid','aFbsH','Setting\x20up\x20TestInfo\x20directory\x20at\x20','../../helpers/logger','storeLogObjects','stringify','1217313ZlZXNs','bVRJQ','recursive','_platformDetails.json','2|5|6|4|0|3|1','storeLogObjects:\x20processId:\x20','uwblw','etYiS','setup','readLogObjects','dyTUo','rKHAh','writeFileSync','utf8','mkdirSync','572759pBoaRG','Lmsbx','traceZipPaths','isArray','readLogObjects:\x20No\x20log\x20objects\x20found\x20for\x20testId:\x20','.\x20Returning\x20empty\x20test\x20details.','.txt','RCwxY','.json','Error\x20handling\x20trace\x20file\x20paths:\x20%O','ZKVXS','force','getTestUUID','\x20Adding\x20console\x20log\x20for\x20','debug','BS_TESTOPS_BUILD_HASHED_ID','_test','TestInfo','tQDzj','toString','qtWgE','hBSPA','appendToTracePaths','UZfYM','SMXnU'];a66_0x111e=function(){return _0x2077ca;};return a66_0x111e();}const a66_0x19fffd=a66_0x2430;function a66_0x2430(_0x119c7f,_0x271bec){const _0x111ebe=a66_0x111e();return a66_0x2430=function(_0x24301c,_0x2eb655){_0x24301c=_0x24301c-0x1b5;let _0x15b35b=_0x111ebe[_0x24301c];return _0x15b35b;},a66_0x2430(_0x119c7f,_0x271bec);}(function(_0x38337e,_0x5f0502){const _0xdb8dd2=a66_0x2430,_0xda28a6=_0x38337e();while(!![]){try{const _0x38199f=parseInt(_0xdb8dd2(0x1eb))/0x1+parseInt(_0xdb8dd2(0x21a))/0x2*(parseInt(_0xdb8dd2(0x223))/0x3)+parseInt(_0xdb8dd2(0x21e))/0x4+parseInt(_0xdb8dd2(0x219))/0x5+-parseInt(_0xdb8dd2(0x1cb))/0x6*(parseInt(_0xdb8dd2(0x232))/0x7)+parseInt(_0xdb8dd2(0x1d6))/0x8*(-parseInt(_0xdb8dd2(0x23d))/0x9)+parseInt(_0xdb8dd2(0x1c9))/0xa*(-parseInt(_0xdb8dd2(0x1fa))/0xb);if(_0x38199f===_0x5f0502)break;else _0xda28a6['push'](_0xda28a6['shift']());}catch(_0x2b7736){_0xda28a6['push'](_0xda28a6['shift']());}}}(a66_0x111e,0xb46c7));const fs=require('fs'),path=require(a66_0x19fffd(0x1c5)),{TEMP_STORE_DIR_NAME}=require(a66_0x19fffd(0x1c2)),{nestedKeyValue}=require(a66_0x19fffd(0x1ba)),logger=require(a66_0x19fffd(0x1e8))['winstonLogger'],util=require('util'),helper=require(a66_0x19fffd(0x1ba)),{createClassLogger}=require(a66_0x19fffd(0x1c1)),lockfile=require(a66_0x19fffd(0x222)),{v4:uuidv4}=require('uuid');class TestInfo{static [a66_0x19fffd(0x23c)]={};static [a66_0x19fffd(0x234)]=TestInfo['getStoreDirName']();static [a66_0x19fffd(0x22a)]=path[a66_0x19fffd(0x1bf)](TestInfo[a66_0x19fffd(0x234)],'traceZipPaths');static [a66_0x19fffd(0x220)]=null;[a66_0x19fffd(0x1e4)]=createClassLogger(a66_0x19fffd(0x20b));static[a66_0x19fffd(0x1f3)](_0x57380e){const _0x4118c4=a66_0x19fffd,_0x328bae={};_0x328bae['uwblw']=_0x4118c4(0x1ef),_0x328bae['rKHAh']=_0x4118c4(0x1fc);const _0x5ab5ec=_0x328bae,_0x3e1699=_0x5ab5ec[_0x4118c4(0x1f1)][_0x4118c4(0x1d9)]('|');let _0x108642=0x0;while(!![]){switch(_0x3e1699[_0x108642++]){case'0':const _0x5eba27={};_0x5eba27[_0x4118c4(0x1ed)]=!![],fs['mkdirSync'](this[_0x4118c4(0x234)],_0x5eba27);continue;case'1':logger['info'](_0x4118c4(0x1e7)+this[_0x4118c4(0x234)]);continue;case'2':this[_0x4118c4(0x234)]=TestInfo[_0x4118c4(0x238)]();continue;case'3':const _0x30f50a={};_0x30f50a[_0x4118c4(0x1ed)]=!![],fs[_0x4118c4(0x1f9)](this[_0x4118c4(0x22a)],_0x30f50a);continue;case'4':this['shutdown']();continue;case'5':this[_0x4118c4(0x22a)]=path[_0x4118c4(0x1bf)](this['dirPath'],_0x5ab5ec[_0x4118c4(0x1f6)]);continue;case'6':this[_0x4118c4(0x220)]=_0x57380e;continue;}break;}}static[a66_0x19fffd(0x238)](){const _0x4129a0=a66_0x19fffd,_0x102c8b={};_0x102c8b[_0x4129a0(0x236)]=function(_0x21372a,_0x24ac9a){return _0x21372a+_0x24ac9a;},_0x102c8b[_0x4129a0(0x1e2)]=function(_0x1ef1ba,_0x697f8b){return _0x1ef1ba+_0x697f8b;},_0x102c8b[_0x4129a0(0x1f2)]='default';const _0x1d3804=_0x102c8b;return _0x1d3804[_0x4129a0(0x236)](_0x1d3804[_0x4129a0(0x1e2)](TEMP_STORE_DIR_NAME,'-'),process[_0x4129a0(0x221)][_0x4129a0(0x209)]||_0x1d3804[_0x4129a0(0x1f2)]);}static[a66_0x19fffd(0x228)](){const _0x192d92=a66_0x19fffd,_0x2bd06b={};_0x2bd06b[_0x192d92(0x20e)]=function(_0x2383ff,_0x282e75){return _0x2383ff+_0x282e75;},_0x2bd06b['SMXnU']=_0x192d92(0x1ce);const _0xed34be=_0x2bd06b;return path[_0x192d92(0x1bf)](_0xed34be['qtWgE'](_0xed34be[_0x192d92(0x20e)](TEMP_STORE_DIR_NAME,'-'),process[_0x192d92(0x221)][_0x192d92(0x209)]||_0xed34be[_0x192d92(0x212)]));}static['getTraceZipDir'](){const _0x4fba26=a66_0x19fffd,_0x244624={};_0x244624[_0x4fba26(0x211)]=_0x4fba26(0x1fc);const _0xa9fe6=_0x244624;return path[_0x4fba26(0x1bf)](this[_0x4fba26(0x228)](),_0xa9fe6['UZfYM']);}static[a66_0x19fffd(0x233)](_0x101b32){const _0x54689d=a66_0x19fffd,_0x4406d4={};_0x4406d4['zvhNu']=function(_0x2370e0,_0x554bf1){return _0x2370e0+_0x554bf1;},_0x4406d4[_0x54689d(0x23f)]=_0x54689d(0x202);const _0x35dfc9=_0x4406d4;return path[_0x54689d(0x1bf)](this[_0x54689d(0x234)],_0x35dfc9[_0x54689d(0x1c4)](_0x101b32,_0x35dfc9[_0x54689d(0x23f)]));}static[a66_0x19fffd(0x22c)](_0x136578){const _0x4bae1f=a66_0x19fffd,_0x43fcf7={};_0x43fcf7[_0x4bae1f(0x1d0)]=function(_0x4572e1,_0x179347){return _0x4572e1+_0x179347;},_0x43fcf7['cAcVd']=function(_0x2234a7,_0x3053f7){return _0x2234a7+_0x3053f7;},_0x43fcf7['xLZHS']=function(_0x4d8c80,_0x300289){return _0x4d8c80+_0x300289;};const _0x52c879=_0x43fcf7;return _0x52c879['GXEwu'](_0x52c879[_0x4bae1f(0x227)](_0x52c879[_0x4bae1f(0x1b5)](_0x52c879[_0x4bae1f(0x1b5)](this[_0x4bae1f(0x1db)](_0x136578),'-'),this[_0x4bae1f(0x213)](_0x136578)),'-'),_0x136578[_0x4bae1f(0x1cd)]);}static[a66_0x19fffd(0x1db)](_0x393d7c){const _0x3d0f1b=a66_0x19fffd,_0x5a6fa4={'EWBlh':function(_0x46c702,_0x2ccd76,_0x23bb82){return _0x46c702(_0x2ccd76,_0x23bb82);},'ZumfG':_0x3d0f1b(0x20a),'hBSPA':'_projectId','sWkjy':_0x3d0f1b(0x1dc),'mtyUI':_0x3d0f1b(0x22f)};return _0x5a6fa4[_0x3d0f1b(0x1d2)](nestedKeyValue,_0x393d7c,[_0x5a6fa4[_0x3d0f1b(0x1b6)],_0x5a6fa4[_0x3d0f1b(0x20f)]])||_0x5a6fa4[_0x3d0f1b(0x1d2)](nestedKeyValue,_0x393d7c,[_0x5a6fa4[_0x3d0f1b(0x1c6)],_0x5a6fa4['mtyUI']]);}static[a66_0x19fffd(0x213)](_0x11c34e){const _0x2bde4b=a66_0x19fffd,_0x8d9687={'RCwxY':function(_0x167106,_0x34562e,_0x18a088){return _0x167106(_0x34562e,_0x18a088);},'Lmsbx':'_test'};return _0x8d9687[_0x2bde4b(0x201)](nestedKeyValue,_0x11c34e,[_0x8d9687[_0x2bde4b(0x1fb)],'id'])||_0x11c34e[_0x2bde4b(0x239)];}static[a66_0x19fffd(0x23b)](_0x130be5,_0x225f95){const _0x4791a7=a66_0x19fffd,_0x5c0da1={};_0x5c0da1['bVRJQ']=function(_0x59e96d,_0x2ada71){return _0x59e96d+_0x2ada71;},_0x5c0da1['TOjnr']=function(_0x19242c,_0x9307d1){return _0x19242c+_0x9307d1;};const _0x32254a=_0x5c0da1;return _0x32254a[_0x4791a7(0x1ec)](_0x32254a[_0x4791a7(0x1d3)](this[_0x4791a7(0x213)](_0x130be5),'-'),_0x225f95);}static[a66_0x19fffd(0x206)](_0x2e1095){const _0x4ef0f7=a66_0x19fffd,_0x2cf396={'aFbsH':function(_0x5c7060,_0x90a63c){return _0x5c7060===_0x90a63c;},'zxyRX':_0x4ef0f7(0x1d7),'tQDzj':function(_0x29df21){return _0x29df21();}};try{if(this[_0x4ef0f7(0x23c)][_0x2e1095]&&_0x2cf396[_0x4ef0f7(0x1e6)](typeof this[_0x4ef0f7(0x23c)][_0x2e1095][_0x4ef0f7(0x1e5)],_0x2cf396[_0x4ef0f7(0x1cc)]))return this['tests'][_0x2e1095]['uuid'];const _0x5967a8=this[_0x4ef0f7(0x233)](_0x2e1095),_0x5a1834=path['resolve'](_0x5967a8);if(fs[_0x4ef0f7(0x1d1)](_0x5a1834)){const _0x4f7a7b=JSON[_0x4ef0f7(0x1e3)](fs[_0x4ef0f7(0x1b9)](_0x5967a8)[_0x4ef0f7(0x20d)]());return this[_0x4ef0f7(0x23c)][_0x2e1095]=_0x4f7a7b,this[_0x4ef0f7(0x23c)][_0x2e1095]['uuid'];}this[_0x4ef0f7(0x23c)][_0x2e1095]={'uuid':_0x2cf396[_0x4ef0f7(0x20c)](uuidv4)};try{fs[_0x4ef0f7(0x1f7)](_0x5967a8,JSON[_0x4ef0f7(0x1ea)](this['tests'][_0x2e1095]));}catch(_0x37b19c){logger[_0x4ef0f7(0x225)](_0x4ef0f7(0x1c7)+_0x2e1095+':\x20'+_0x37b19c[_0x4ef0f7(0x1bd)]);}return this[_0x4ef0f7(0x23c)][_0x2e1095]['uuid'];}catch(_0x2a174f){return logger['error'](_0x4ef0f7(0x215)+_0x2e1095+':\x20'+_0x2a174f[_0x4ef0f7(0x1bd)]),null;}}static['getAccessibilityPlatformValidation'](_0x5cb6cc){const _0x31291e=a66_0x19fffd,_0x247447=path[_0x31291e(0x1bf)](this['dirPath'],_0x5cb6cc+_0x31291e(0x1ee));if(fs[_0x31291e(0x1d1)](_0x247447))return fs[_0x31291e(0x1b9)](_0x247447)['toString']();}static['setAccessibilityPlatformValidation'](_0x514811,_0x660ae2){const _0x28df5d=a66_0x19fffd,_0x337c22=path[_0x28df5d(0x1bf)](this[_0x28df5d(0x234)],_0x660ae2+'_platformDetails.json');fs[_0x28df5d(0x1f7)](_0x337c22,_0x514811[_0x28df5d(0x20d)]());}static[a66_0x19fffd(0x22d)](){const _0x24396d=a66_0x19fffd,_0x256493={};_0x256493[_0x24396d(0x1ed)]=!![],_0x256493[_0x24396d(0x205)]=!![],fs[_0x24396d(0x23a)](this[_0x24396d(0x234)],_0x256493);}static['getTestDetails'](_0xde68fe){const _0x4996a4=a66_0x19fffd,_0x3b1e90=this['getFilePath'](_0xde68fe);if(fs[_0x4996a4(0x1d1)](_0x3b1e90))try{const _0xc51060=JSON[_0x4996a4(0x1e3)](fs[_0x4996a4(0x1b9)](_0x3b1e90)[_0x4996a4(0x20d)]());return this[_0x4996a4(0x23c)][_0xde68fe]=_0xc51060,_0xc51060;}catch(_0x5c43e4){return logger[_0x4996a4(0x208)](_0x4996a4(0x1df)+_0x3b1e90+':\x20'+util[_0x4996a4(0x1d4)](_0x5c43e4)+_0x4996a4(0x1ff)),{};}return{};}static[a66_0x19fffd(0x21b)](_0x2736d4,_0x10a92f,_0x154693=![]){const _0x53c3af=a66_0x19fffd,_0x136d40={'dyTUo':function(_0x2455ef){return _0x2455ef();}};logger[_0x53c3af(0x208)](_0x53c3af(0x22b)+process['pid']+'\x20Setting\x20test\x20details\x20for\x20'+_0x2736d4+'\x20with\x20details:\x20'+JSON[_0x53c3af(0x1ea)](_0x10a92f));const _0x3956c2=this['getFilePath'](_0x2736d4);if(fs[_0x53c3af(0x1d1)](_0x3956c2))try{const _0xaa2700=lockfile['lockSync'](_0x3956c2),_0x223fd6=JSON[_0x53c3af(0x1e3)](fs['readFileSync'](_0x3956c2)[_0x53c3af(0x20d)]());if(_0x154693)this[_0x53c3af(0x23c)][_0x2736d4]=helper[_0x53c3af(0x224)](_0x223fd6,_0x10a92f);else{const _0x550a8d={..._0x223fd6,..._0x10a92f};this[_0x53c3af(0x23c)][_0x2736d4]=_0x550a8d;}fs[_0x53c3af(0x1f7)](_0x3956c2,JSON[_0x53c3af(0x1ea)](this[_0x53c3af(0x23c)][_0x2736d4])),_0x136d40[_0x53c3af(0x1f5)](_0xaa2700);}catch(_0x58b22c){logger[_0x53c3af(0x208)](_0x53c3af(0x1df)+_0x3956c2+':\x20'+util[_0x53c3af(0x1d4)](_0x58b22c)+'.\x20Unable\x20to\x20set\x20test\x20details.');}}static[a66_0x19fffd(0x1e9)](_0x2e5899,_0x18dd99){const _0x3ea2d6=a66_0x19fffd,_0xae7a3c={'qeCjI':function(_0x1914b0,_0x47efcd){return _0x1914b0!==_0x47efcd;},'YgABW':_0x3ea2d6(0x214),'ZKVXS':function(_0xe4818d){return _0xe4818d();}};logger[_0x3ea2d6(0x208)](_0x3ea2d6(0x1f0)+process[_0x3ea2d6(0x1de)]+_0x3ea2d6(0x207)+_0x2e5899+'}');const _0xe2f97=this[_0x3ea2d6(0x233)](_0x2e5899);try{let _0x4deb0f={};if(fs[_0x3ea2d6(0x1d1)](_0xe2f97)){const _0x5d64c0=lockfile[_0x3ea2d6(0x1c3)](_0xe2f97);_0x4deb0f=JSON[_0x3ea2d6(0x1e3)](fs['readFileSync'](_0xe2f97)[_0x3ea2d6(0x20d)]()),(!_0x4deb0f[_0x3ea2d6(0x1ca)]||_0xae7a3c[_0x3ea2d6(0x237)](typeof _0x4deb0f[_0x3ea2d6(0x1ca)],_0xae7a3c[_0x3ea2d6(0x231)]))&&(_0x4deb0f[_0x3ea2d6(0x1ca)]={}),(!_0x4deb0f[_0x3ea2d6(0x1ca)][_0x2e5899]||!Array[_0x3ea2d6(0x1fd)](_0x4deb0f[_0x3ea2d6(0x1ca)][_0x2e5899]))&&(_0x4deb0f[_0x3ea2d6(0x1ca)][_0x2e5899]=[]),_0x4deb0f[_0x3ea2d6(0x1ca)][_0x2e5899][_0x3ea2d6(0x1b8)](_0x18dd99),this[_0x3ea2d6(0x23c)][_0x2e5899]=_0x4deb0f,fs['writeFileSync'](_0xe2f97,JSON[_0x3ea2d6(0x1ea)](this['tests'][_0x2e5899])),_0xae7a3c[_0x3ea2d6(0x204)](_0x5d64c0);}else{const _0x2d865d={};_0x2d865d['uuid']=_0x2e5899,_0x2d865d[_0x3ea2d6(0x1ca)]={},_0x2d865d[_0x3ea2d6(0x1ca)][_0x2e5899]=[_0x18dd99],_0x4deb0f=_0x2d865d,this[_0x3ea2d6(0x23c)][_0x2e5899]=_0x4deb0f,fs[_0x3ea2d6(0x1f7)](_0xe2f97,JSON[_0x3ea2d6(0x1ea)](this['tests'][_0x2e5899]));}}catch(_0x238fcf){logger['debug'](_0x3ea2d6(0x1df)+_0xe2f97+':\x20'+util[_0x3ea2d6(0x1d4)](_0x238fcf)+_0x3ea2d6(0x217));}}static[a66_0x19fffd(0x1f4)](_0x94473c){const _0x14a078=a66_0x19fffd,_0x31cf46={'tcwKl':function(_0x37b430,_0x56f734){return _0x37b430!==_0x56f734;},'IkJPn':_0x14a078(0x214),'usqex':function(_0x3ee3b5){return _0x3ee3b5();},'keOUG':function(_0x53526c,_0x2c07f4){return _0x53526c===_0x2c07f4;}};logger['debug'](_0x14a078(0x21d)+process[_0x14a078(0x1de)]+_0x14a078(0x1bc)+_0x94473c);const _0xac5989=this[_0x14a078(0x233)](_0x94473c);try{if(!fs['existsSync'](_0xac5989))return logger[_0x14a078(0x208)](_0x14a078(0x1d8)+_0x94473c),[];const _0x446acc=lockfile['lockSync'](_0xac5989),_0xc3d933=JSON['parse'](fs[_0x14a078(0x1b9)](_0xac5989)[_0x14a078(0x20d)]());if(!_0xc3d933[_0x14a078(0x1ca)]||_0x31cf46['tcwKl'](typeof _0xc3d933[_0x14a078(0x1ca)],_0x31cf46[_0x14a078(0x1be)]))return logger[_0x14a078(0x208)]('readLogObjects:\x20No\x20logObjects\x20object\x20found\x20for\x20testId:\x20'+_0x94473c),_0x31cf46['usqex'](_0x446acc),[];if(!_0xc3d933[_0x14a078(0x1ca)][_0x94473c]||!Array[_0x14a078(0x1fd)](_0xc3d933[_0x14a078(0x1ca)][_0x94473c])||_0x31cf46[_0x14a078(0x229)](_0xc3d933[_0x14a078(0x1ca)][_0x94473c][_0x14a078(0x21f)],0x0))return logger[_0x14a078(0x208)](_0x14a078(0x1fe)+_0x94473c),_0x31cf46[_0x14a078(0x216)](_0x446acc),[];const _0x5b8346=[..._0xc3d933[_0x14a078(0x1ca)][_0x94473c]];return logger[_0x14a078(0x208)]('readLogObjects:\x20Retrieved\x20'+_0x5b8346[_0x14a078(0x21f)]+'\x20log\x20objects\x20for\x20testId:\x20'+_0x94473c),_0xc3d933['logObjects'][_0x94473c]=[],this['tests'][_0x94473c]=_0xc3d933,fs['writeFileSync'](_0xac5989,JSON[_0x14a078(0x1ea)](this[_0x14a078(0x23c)][_0x94473c])),_0x31cf46[_0x14a078(0x216)](_0x446acc),_0x5b8346;}catch(_0x4dd371){return logger[_0x14a078(0x208)](_0x14a078(0x1df)+_0xac5989+':\x20'+util[_0x14a078(0x1d4)](_0x4dd371)+'.\x20Unable\x20to\x20retrieve\x20log\x20objects.'),[];}}static['addTraceFilePath'](_0x223d2c){const _0x4f99a3=a66_0x19fffd,_0x471dd0={};_0x471dd0[_0x4f99a3(0x23e)]=_0x4f99a3(0x203);const _0x4a379a=_0x471dd0;try{const _0x4a69da=process['pid'],_0x5c52f7=path['join'](TestInfo[_0x4f99a3(0x1cf)](),_0x4a69da+'_traceZipPaths.json');let _0x381b73=[];fs['existsSync'](_0x5c52f7)&&(_0x381b73=JSON[_0x4f99a3(0x1e3)](fs['readFileSync'](_0x5c52f7)[_0x4f99a3(0x20d)]()));if(!_0x381b73[_0x4f99a3(0x1c8)](_0x201795=>_0x201795['filePath']===_0x223d2c[_0x4f99a3(0x1d5)])){_0x381b73[_0x4f99a3(0x1b8)](_0x223d2c);const _0x3887c6=path[_0x4f99a3(0x235)](_0x5c52f7);if(!fs[_0x4f99a3(0x1d1)](_0x3887c6)){const _0x95a6ea={};_0x95a6ea[_0x4f99a3(0x1ed)]=!![],fs['mkdirSync'](_0x3887c6,_0x95a6ea);}fs[_0x4f99a3(0x1f7)](_0x5c52f7,JSON[_0x4f99a3(0x1ea)](_0x381b73));}}catch(_0x54ac06){logger['error'](util['format'](_0x4a379a[_0x4f99a3(0x23e)],_0x54ac06));}}static[a66_0x19fffd(0x1c0)](){const _0x23037a=a66_0x19fffd,_0x6e222c={};_0x6e222c['zTofu']=_0x23037a(0x22e),_0x6e222c['gAQHt']='Error\x20reading\x20trace\x20file\x20paths:\x20%O';const _0x28a61e=_0x6e222c,_0x562450=[];try{const _0x57d868=TestInfo['getTraceZipDir']();if(!fs[_0x23037a(0x1d1)](_0x57d868))return _0x562450;const _0x3a1111=fs[_0x23037a(0x230)](_0x57d868);_0x3a1111['forEach'](_0x5b51c4=>{const _0x260fc4=_0x23037a;if(_0x5b51c4['endsWith'](_0x28a61e['zTofu'])){const _0x1c9336=JSON[_0x260fc4(0x1e3)](fs['readFileSync'](path[_0x260fc4(0x1bf)](_0x57d868,_0x5b51c4))[_0x260fc4(0x20d)]());_0x562450[_0x260fc4(0x1b8)](..._0x1c9336);}});}catch(_0x358b0d){logger[_0x23037a(0x225)](util[_0x23037a(0x1d4)](_0x28a61e['gAQHt'],_0x358b0d));}const _0x1a7588={};return _0x562450[_0x23037a(0x1b7)](_0x16b88e=>{const _0x4217dc=_0x23037a;_0x1a7588[_0x16b88e[_0x4217dc(0x1d5)]]=_0x16b88e;}),Object[_0x23037a(0x1e1)](_0x1a7588);}static[a66_0x19fffd(0x210)](_0x4a34c4,_0x2fe303){const _0x1245ff=a66_0x19fffd,_0x21e860={};_0x21e860['kKOTV']='.browserstack',_0x21e860[_0x1245ff(0x21c)]=_0x1245ff(0x1f8),_0x21e860[_0x1245ff(0x1bb)]=_0x1245ff(0x226);const _0x1b2bbb=_0x21e860;try{const _0x53a0be=path['join'](helper['homedir'](),_0x1b2bbb[_0x1245ff(0x1e0)]);if(!fs[_0x1245ff(0x1d1)](_0x53a0be)){const _0x42c6ec={};_0x42c6ec[_0x1245ff(0x1ed)]=!![],fs[_0x1245ff(0x1f9)](_0x53a0be,_0x42c6ec);}fs[_0x1245ff(0x1da)](path[_0x1245ff(0x1bf)](_0x53a0be,_0x1245ff(0x218)+_0x2fe303+_0x1245ff(0x200)),_0x4a34c4+'\x0a',_0x1b2bbb[_0x1245ff(0x21c)]);}catch(_0x3e8e90){logger['error'](util['format'](_0x1b2bbb[_0x1245ff(0x1bb)],_0x3e8e90));}}}module[a66_0x19fffd(0x1dd)]=TestInfo;