browserstack-node-sdk 1.56.0 → 1.56.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/newman/command.js +1 -1
  79. package/src/bin/newman/helper.js +1 -1
  80. package/src/bin/newman/reporter/index.js +1 -1
  81. package/src/bin/newman/scriptRunner.js +1 -1
  82. package/src/bin/nightwatch/command.js +1 -1
  83. package/src/bin/playwright/accessibility-helper.js +1 -1
  84. package/src/bin/playwright/command.js +1 -1
  85. package/src/bin/playwright/globalSetup.js +1 -1
  86. package/src/bin/playwright/mock-process.js +1 -1
  87. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  88. package/src/bin/playwright/patches.js +1 -1
  89. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  90. package/src/bin/playwright/reporter/reporter.js +1 -1
  91. package/src/bin/playwright/reporter/test-details.js +1 -1
  92. package/src/bin/playwright/sessionDetails.js +1 -1
  93. package/src/bin/puppeteer/patches.js +1 -1
  94. package/src/bin/puppeteer/sessionDetails.js +1 -1
  95. package/src/bin/puppeteer/test.setup.js +1 -1
  96. package/src/bin/runner.js +1 -1
  97. package/src/bin/setup.js +1 -1
  98. package/src/bin/test-runner/index.js +1 -1
  99. package/src/bin/test-runner/runTest.js +1 -1
  100. package/src/bin/test-runner/testWorker.js +1 -1
  101. package/src/bin/utils/apiUtilityMethods.js +1 -1
  102. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  103. package/src/bin/utils/constants.js +1 -1
  104. package/src/bin/utils/log4jsAppender.js +1 -1
  105. package/src/bin/utils/logPatcher.js +1 -1
  106. package/src/bin/utils/logReportingAPI.js +1 -1
  107. package/src/bin/utils/playwright-patcher.js +1 -1
  108. package/src/bin/utils/puppeteer-patcher.js +1 -1
  109. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  110. package/src/bin/utils/sharedUtils.js +1 -1
  111. package/src/bin/v2/TestInfo.js +1 -1
  112. package/src/bin/v2/browserstackCLI.js +1 -1
  113. package/src/bin/v2/cliUtils.js +1 -1
  114. package/src/bin/v2/customTagManager.js +1 -1
  115. package/src/bin/v2/eventDispatcher.js +1 -1
  116. package/src/bin/v2/framework/automationFramework.js +1 -1
  117. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  118. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  119. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  120. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  121. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  122. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  123. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  124. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  125. package/src/bin/v2/framework/testFramework.js +1 -1
  126. package/src/bin/v2/grpcClient.js +1 -1
  127. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  128. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  129. package/src/bin/v2/instances/trackedContext.js +1 -1
  130. package/src/bin/v2/instances/trackedInstance.js +1 -1
  131. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  132. package/src/bin/v2/modules/baseModule.js +1 -1
  133. package/src/bin/v2/modules/loadTestModule.js +1 -1
  134. package/src/bin/v2/modules/observabilityModule.js +1 -1
  135. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  136. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  137. package/src/bin/v2/modules/testhubModule.js +1 -1
  138. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  139. package/src/bin/v2/state/hookState.js +1 -1
  140. package/src/bin/v2/state/testFrameworkState.js +1 -1
  141. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  142. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  143. package/src/bin/v2/utils/jest-utils.js +1 -1
  144. package/src/bin/vanilla-js/command.js +1 -1
  145. package/src/browserStackSdk.js +1 -1
  146. package/src/helpers/BrowserStackSetup.js +1 -1
  147. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  148. package/src/helpers/accessibility-automation/constants.js +1 -1
  149. package/src/helpers/accessibility-automation/helper.js +1 -1
  150. package/src/helpers/accessibility-automation/scripts.js +1 -1
  151. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  152. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  153. package/src/helpers/ats/constants.js +1 -1
  154. package/src/helpers/ats/helper.js +1 -1
  155. package/src/helpers/caCertHelper.js +1 -1
  156. package/src/helpers/capsMapping.js +1 -1
  157. package/src/helpers/central-scanner/constants.js +1 -1
  158. package/src/helpers/central-scanner/helpers.js +1 -1
  159. package/src/helpers/classLogger.js +1 -1
  160. package/src/helpers/driverInitErrorReporter.js +1 -0
  161. package/src/helpers/globals.js +1 -1
  162. package/src/helpers/helper.js +1 -1
  163. package/src/helpers/logger.js +1 -1
  164. package/src/helpers/metadata.js +1 -1
  165. package/src/helpers/patchHelper.js +1 -1
  166. package/src/helpers/patchHelpers.js +1 -1
  167. package/src/helpers/percy/Percy.js +1 -1
  168. package/src/helpers/percy/PercyBinary.js +1 -1
  169. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  170. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  171. package/src/helpers/percy/PercySDK.js +1 -1
  172. package/src/helpers/percy/index.js +1 -1
  173. package/src/helpers/percy/utils.js +1 -1
  174. package/src/helpers/performance/constants.js +1 -1
  175. package/src/helpers/performance/performance-tester.js +1 -1
  176. package/src/helpers/playwright-helper.js +1 -1
  177. package/src/helpers/processHelper.js +1 -1
  178. package/src/helpers/puppeteer-helper.js +1 -1
  179. package/src/helpers/request-spy.js +1 -1
  180. package/src/helpers/setKeepAlive.js +1 -1
  181. package/src/helpers/stackFrameUtils.js +1 -1
  182. package/src/helpers/test-observability/constants.js +1 -1
  183. package/src/helpers/test-observability/error-handler.js +1 -1
  184. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  185. package/src/helpers/test-observability/sessionHandler.js +1 -1
  186. package/src/helpers/test-observability/utils.js +1 -1
  187. package/src/helpers/test-orchestration/constants.js +1 -1
  188. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  189. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  190. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  191. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  192. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  193. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  194. package/src/helpers/testhub/constants.js +1 -1
  195. package/src/helpers/testhub/testhubHandler.js +1 -1
  196. package/src/helpers/testhub/utils.js +1 -1
  197. package/src/helpers/timeoutPromise.js +1 -1
  198. package/src/helpers/utilities.js +1 -1
  199. package/src/helpers/w3cMapping.js +1 -1
  200. package/src/hubAllocationMethods.js +1 -1
  201. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a68_0x1a7c7b=a68_0x4827;(function(_0x1e23e4,_0x2a3fb5){const _0xb2268b=a68_0x4827,_0x5be3b3=_0x1e23e4();while(!![]){try{const _0x115238=-parseInt(_0xb2268b(0x1e8))/0x1*(parseInt(_0xb2268b(0x20a))/0x2)+parseInt(_0xb2268b(0x239))/0x3*(parseInt(_0xb2268b(0x216))/0x4)+parseInt(_0xb2268b(0x22b))/0x5*(-parseInt(_0xb2268b(0x1df))/0x6)+-parseInt(_0xb2268b(0x1ec))/0x7+-parseInt(_0xb2268b(0x23e))/0x8*(-parseInt(_0xb2268b(0x270))/0x9)+-parseInt(_0xb2268b(0x21b))/0xa*(-parseInt(_0xb2268b(0x214))/0xb)+-parseInt(_0xb2268b(0x1d3))/0xc*(-parseInt(_0xb2268b(0x1c4))/0xd);if(_0x115238===_0x2a3fb5)break;else _0x5be3b3['push'](_0x5be3b3['shift']());}catch(_0x26a563){_0x5be3b3['push'](_0x5be3b3['shift']());}}}(a68_0x1946,0xa33df));function a68_0x4827(_0x58e944,_0x36c67f){const _0x1946e4=a68_0x1946();return a68_0x4827=function(_0x482764,_0x5cf46d){_0x482764=_0x482764-0x1bd;let _0x35f190=_0x1946e4[_0x482764];return _0x35f190;},a68_0x4827(_0x58e944,_0x36c67f);}const path=require('path'),url=require(a68_0x1a7c7b(0x281)),util=require(a68_0x1a7c7b(0x1f5)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule,isBrowserstackInfra}=require(a68_0x1a7c7b(0x231)),{o11yErrorHandler}=require(a68_0x1a7c7b(0x276)),{debug,getPlatformDetails}=require(a68_0x1a7c7b(0x1de)),logger=require(a68_0x1a7c7b(0x262))[a68_0x1a7c7b(0x1c5)],constants=require(a68_0x1a7c7b(0x20c)),AutomationFramework=require('../v2/framework/automationFramework'),BrowserstackCLI=require('../v2/browserstackCLI'),AutomationFrameworkState=require(a68_0x1a7c7b(0x26f)),HookState=require(a68_0x1a7c7b(0x1c2)),{platform}=require('os'),getBrowserNameFromChannel=_0x41e568=>{const _0xdcefec=a68_0x1a7c7b,_0x213af4={};_0x213af4[_0xdcefec(0x27f)]='2|1|5|4|0|3',_0x213af4[_0xdcefec(0x1f3)]='safari',_0x213af4[_0xdcefec(0x1d1)]=_0xdcefec(0x277),_0x213af4[_0xdcefec(0x238)]=_0xdcefec(0x1c3),_0x213af4[_0xdcefec(0x232)]=function(_0x4fbe21,_0xd570db){return _0x4fbe21===_0xd570db;},_0x213af4[_0xdcefec(0x273)]=_0xdcefec(0x27c),_0x213af4[_0xdcefec(0x1e3)]=_0xdcefec(0x1f4),_0x213af4[_0xdcefec(0x24b)]='edge';const _0xd22dca=_0x213af4,_0x298780=_0xd22dca[_0xdcefec(0x27f)][_0xdcefec(0x279)]('|');let _0xfde1b5=0x0;while(!![]){switch(_0x298780[_0xfde1b5++]){case'0':if(_0x41e568[_0xdcefec(0x27a)](_0xd22dca[_0xdcefec(0x1f3)]))return _0xd22dca[_0xdcefec(0x1f3)];continue;case'1':if(_0x41e568[_0xdcefec(0x27a)](_0xd22dca['WjGvl']))return _0xd22dca['WjGvl'];continue;case'2':if(_0x41e568[_0xdcefec(0x27a)](_0xd22dca[_0xdcefec(0x238)]))return _0xd22dca[_0xdcefec(0x238)];continue;case'3':if(_0xd22dca[_0xdcefec(0x232)](_0x41e568,_0xd22dca['Loanw']))return _0xd22dca['Loanw'];continue;case'4':if(_0x41e568[_0xdcefec(0x27a)](_0xd22dca['SudTL']))return _0xd22dca['SudTL'];continue;case'5':if(_0x41e568[_0xdcefec(0x27a)](_0xd22dca[_0xdcefec(0x24b)]))return _0xd22dca[_0xdcefec(0x24b)];continue;}break;}},getBrowserFromWSEndpoint=_0x2e06bd=>{const _0x5a5bbb=a68_0x1a7c7b,_0x4f53ef={'XWenQ':_0x5a5bbb(0x22e),'FuNWY':function(_0x1d8bf1,_0x4ffc0d){return _0x1d8bf1(_0x4ffc0d);},'FNagI':_0x5a5bbb(0x233),'qGamu':_0x5a5bbb(0x1bf),'ZuSDG':_0x5a5bbb(0x1f4),'pkvuk':'gecko','uAigw':_0x5a5bbb(0x247),'MdnvN':'webkit','xsdpM':_0x5a5bbb(0x277),'CUZic':function(_0x5c0c7c,_0x11bf56){return _0x5c0c7c(_0x11bf56);}};try{const _0x1bcaaa=url['parse'](_0x2e06bd),_0x107e74=new URLSearchParams(_0x1bcaaa[_0x5a5bbb(0x282)]),_0x490eea=Object['fromEntries'](_0x107e74[_0x5a5bbb(0x1e0)]()),_0x58f7b8=[_0x490eea[_0x5a5bbb(0x28c)],_0x490eea[_0x5a5bbb(0x229)],_0x490eea[_0x5a5bbb(0x240)],_0x490eea['browserstack_capabilities']];for(const _0x1321c2 of _0x58f7b8){if(_0x1321c2)try{const _0x463943=JSON['parse'](_0x1321c2),_0x5de422=_0x463943[_0x5a5bbb(0x272)]||_0x463943[_0x5a5bbb(0x1ed)]||_0x463943[_0x4f53ef[_0x5a5bbb(0x244)]]?.[_0x5a5bbb(0x272)];if(_0x5de422)return _0x4f53ef['FuNWY'](debug,_0x5a5bbb(0x246)+_0x5de422),_0x5de422['toLowerCase']();}catch(_0x21d8c7){_0x4f53ef['FuNWY'](debug,_0x5a5bbb(0x26b)+_0x21d8c7[_0x5a5bbb(0x1ef)]);}}if(_0x2e06bd[_0x5a5bbb(0x27a)](_0x4f53ef[_0x5a5bbb(0x218)])||_0x2e06bd['includes'](_0x4f53ef['qGamu']))return _0x4f53ef['FNagI'];if(_0x2e06bd['includes'](_0x4f53ef['ZuSDG'])||_0x2e06bd[_0x5a5bbb(0x27a)](_0x4f53ef[_0x5a5bbb(0x1da)]))return _0x4f53ef[_0x5a5bbb(0x228)];if(_0x2e06bd['includes'](_0x4f53ef['uAigw'])||_0x2e06bd['includes'](_0x4f53ef[_0x5a5bbb(0x261)]))return _0x4f53ef[_0x5a5bbb(0x24d)];return _0x4f53ef[_0x5a5bbb(0x206)];}catch(_0x94905b){return _0x4f53ef[_0x5a5bbb(0x23f)](debug,'Error\x20in\x20getting\x20browser\x20from\x20WebSocket\x20endpoint:\x20'+_0x94905b['toString']()),_0x4f53ef['xsdpM'];}},getCloudProviderFromWsEndpoint=_0x346e6a=>{const _0x24f3fc=a68_0x1a7c7b,_0x253dd5={};_0x253dd5[_0x24f3fc(0x25c)]=_0x24f3fc(0x1c9),_0x253dd5[_0x24f3fc(0x1d5)]='unknown_grid';const _0x1c9e20=_0x253dd5;if(_0x346e6a[_0x24f3fc(0x27a)](constants[_0x24f3fc(0x1e6)])||_0x346e6a[_0x24f3fc(0x27a)](constants[_0x24f3fc(0x1fb)]))return _0x1c9e20[_0x24f3fc(0x25c)];return _0x1c9e20['qEUZq'];},a68_0x5038db={};a68_0x5038db['cloudProvider']=undefined,a68_0x5038db['bsSessionId']=undefined,a68_0x5038db['browser']=undefined,a68_0x5038db['browser_version']=undefined,a68_0x5038db[a68_0x1a7c7b(0x236)]=undefined,a68_0x5038db['platform_version']=undefined,a68_0x5038db[a68_0x1a7c7b(0x1f2)]=undefined,a68_0x5038db[a68_0x1a7c7b(0x229)]={};class SharedPlaywrightSessionDetails{static ['currentSessionDetails']=a68_0x5038db;constructor(){const _0x14f65e=a68_0x1a7c7b,_0x129b22={};_0x129b22[_0x14f65e(0x200)]=_0x14f65e(0x243);const _0x918595=_0x129b22;throw new Error(_0x918595['hfGHk']);}static [a68_0x1a7c7b(0x288)]=null;static[a68_0x1a7c7b(0x209)](_0xe9a345,_0xf4a0f3,_0x4cc091=null){const _0x2831a8=a68_0x1a7c7b,_0x4ccef5={'TNaap':function(_0x89e61c,_0x1d749c){return _0x89e61c===_0x1d749c;},'SaMtY':_0x2831a8(0x220),'MIRwX':_0x2831a8(0x28b),'zpJYi':_0x2831a8(0x252),'kJyYG':_0x2831a8(0x222),'PkDwJ':function(_0x597dd1,_0x4d2484,_0x3b8997){return _0x597dd1(_0x4d2484,_0x3b8997);},'QNyzp':'_browserType','EAOie':'_defaultConnectOptions','iyRYr':function(_0x2b41c2,_0x101b62,_0x4474a1){return _0x2b41c2(_0x101b62,_0x4474a1);},'zYIXX':_0x2831a8(0x1e1),'xRgcw':_0x2831a8(0x1cb),'RGmEk':_0x2831a8(0x21e),'npRch':function(_0x5cc896,_0xdc44a9){return _0x5cc896(_0xdc44a9);},'KRBtH':function(_0x44000e,_0x367c6e){return _0x44000e===_0x367c6e;},'WTteh':'browserstack','geNmH':_0x2831a8(0x1cc),'zBxiW':_0x2831a8(0x1bd),'QklMx':_0x2831a8(0x1c3),'eodtA':function(_0x59779e){return _0x59779e();},'boKzx':function(_0x1b2db5,_0x59924a){return _0x1b2db5&&_0x59924a;},'muOmp':function(_0x5aa601){return _0x5aa601();},'SqaNC':function(_0x57ed24,_0x5540b6){return _0x57ed24+_0x5540b6;},'aPRIR':_0x2831a8(0x1d6),'duRYQ':function(_0x3acb88){return _0x3acb88();},'tVuFp':function(_0x3d350a,_0x240b80,_0x4ac059){return _0x3d350a(_0x240b80,_0x4ac059);},'IogrO':_0x2831a8(0x209)},_0x2294e8=this;return _0x4ccef5[_0x2831a8(0x258)](o11yErrorHandler,async function _0x127815(_0x2bac1f,_0x175a9c,_0x2faf75=null){const _0x16f5ce=_0x2831a8;let _0x178b6b=_0x2bac1f[_0x16f5ce(0x22d)],_0x136621=null;_0x2bac1f&&_0x4ccef5['TNaap'](typeof _0x2bac1f['version'],_0x4ccef5[_0x16f5ce(0x21c)])?_0x136621=_0x2bac1f[_0x16f5ce(0x20b)]():logger[_0x16f5ce(0x24c)](_0x4ccef5['MIRwX']);let _0x27d349=null;_0x2bac1f&&_0x4ccef5[_0x16f5ce(0x22a)](typeof _0x2bac1f[_0x16f5ce(0x223)],_0x4ccef5[_0x16f5ce(0x21c)])?_0x27d349=_0x2bac1f['model']():logger['debug'](_0x4ccef5[_0x16f5ce(0x280)]);let _0x3e6de7=null,_0xd5df60=null,_0x5ef4cc=null,_0x671d99=_0x4ccef5[_0x16f5ce(0x201)];if(_0x2bac1f[_0x16f5ce(0x24a)][_0x16f5ce(0x224)]()||global[_0x16f5ce(0x1f1)]){let _0x367c7f=null;_0x4ccef5['PkDwJ'](nestedKeyValue,_0x2bac1f,[_0x4ccef5[_0x16f5ce(0x202)],_0x4ccef5[_0x16f5ce(0x242)]])?_0x367c7f=_0x2bac1f[_0x16f5ce(0x1e4)][_0x16f5ce(0x241)]:_0x367c7f=_0x4ccef5[_0x16f5ce(0x20e)](nestedKeyValue,_0x175a9c,[_0x4ccef5['zYIXX'],_0x4ccef5[_0x16f5ce(0x25d)],_0x4ccef5[_0x16f5ce(0x1dd)]]);const _0x306b35=_0x2faf75||_0x367c7f&&_0x367c7f[_0x16f5ce(0x213)];if(_0x306b35){_0x671d99=_0x4ccef5[_0x16f5ce(0x221)](getCloudProviderFromWsEndpoint,_0x306b35);if(_0x4ccef5['KRBtH'](_0x671d99,_0x4ccef5[_0x16f5ce(0x1fd)])){_0x5ef4cc=constants[_0x16f5ce(0x215)]['test'](_0x306b35)?_0x4ccef5[_0x16f5ce(0x254)]:_0x4ccef5[_0x16f5ce(0x25a)];const _0x4c22db=_0x4ccef5[_0x16f5ce(0x221)](getBrowserFromWSEndpoint,_0x306b35);if(_0x4c22db&&(!_0x178b6b||_0x4ccef5[_0x16f5ce(0x22a)](_0x178b6b,_0x4ccef5[_0x16f5ce(0x271)])))_0x178b6b=_0x4c22db,logger[_0x16f5ce(0x24c)]('Browser\x20name\x20overridden\x20from\x20WebSocket\x20endpoint:\x20'+_0x178b6b);else _0x178b6b&&logger[_0x16f5ce(0x24c)](_0x16f5ce(0x21a)+_0x178b6b);_0x3e6de7=_0x2294e8[_0x16f5ce(0x225)][_0x16f5ce(0x236)],_0xd5df60=_0x2294e8['currentSessionDetails']['platform_version'];}else{const _0x5cbac5=await _0x4ccef5[_0x16f5ce(0x1f7)](getPlatformDetails);_0x3e6de7=_0x5cbac5[_0x16f5ce(0x284)],_0xd5df60=_0x5cbac5[_0x16f5ce(0x256)];}}if(_0x4ccef5[_0x16f5ce(0x251)](!_0x3e6de7,!_0xd5df60)&&!_0x4ccef5[_0x16f5ce(0x253)](isBrowserstackInfra)){const _0x321ce6=await _0x4ccef5[_0x16f5ce(0x253)](getPlatformDetails);_0x3e6de7=_0x321ce6['platformName'],_0xd5df60=_0x321ce6[_0x16f5ce(0x256)];}}else{_0x175a9c&&_0x175a9c[_0x16f5ce(0x1e1)]&&_0x175a9c[_0x16f5ce(0x1e1)]['use']&&_0x175a9c[_0x16f5ce(0x1e1)][_0x16f5ce(0x1cb)][_0x16f5ce(0x227)]?_0x178b6b=_0x4ccef5[_0x16f5ce(0x221)](getBrowserNameFromChannel,_0x175a9c[_0x16f5ce(0x1e1)][_0x16f5ce(0x1cb)]['channel']):_0x178b6b=_0x4ccef5[_0x16f5ce(0x207)](_0x4ccef5[_0x16f5ce(0x1e5)],_0x178b6b['toLowerCase']());const _0x3b73aa=await _0x4ccef5[_0x16f5ce(0x28a)](getPlatformDetails);_0x3e6de7=_0x3b73aa[_0x16f5ce(0x284)],_0xd5df60=_0x3b73aa[_0x16f5ce(0x256)];}const _0x405ae5={};_0x405ae5['browser']=_0x178b6b,_0x405ae5[_0x16f5ce(0x1cd)]=_0x136621,_0x405ae5[_0x16f5ce(0x229)]={},_0x405ae5['platform']=_0x3e6de7,_0x405ae5[_0x16f5ce(0x1dc)]=_0xd5df60,_0x405ae5[_0x16f5ce(0x1f2)]=_0x5ef4cc;const _0x502ad6=_0x405ae5;_0x27d349&&(_0x502ad6[_0x16f5ce(0x229)]['deviceModel']=_0x27d349);const _0x5f09f0={};_0x5f09f0[_0x16f5ce(0x1ff)]=_0x671d99,_0x2294e8[_0x16f5ce(0x225)]=Object['assign']({},_0x2294e8[_0x16f5ce(0x225)],_0x5f09f0,_0x502ad6);const _0xfa446a={};_0xfa446a[_0x16f5ce(0x1ed)]=_0x2294e8['currentSessionDetails'][_0x16f5ce(0x1ed)],_0xfa446a[_0x16f5ce(0x1eb)]=_0x2294e8['currentSessionDetails'][_0x16f5ce(0x1cd)],_0xfa446a[_0x16f5ce(0x236)]=_0x2294e8[_0x16f5ce(0x225)]['platform'],_0xfa446a[_0x16f5ce(0x256)]=_0x2294e8['currentSessionDetails']['platform_version'],_0xfa446a[_0x16f5ce(0x1ff)]=_0x2294e8['currentSessionDetails']['cloudProvider'],_0xfa446a[_0x16f5ce(0x1f2)]=_0x2294e8[_0x16f5ce(0x225)][_0x16f5ce(0x1f2)],logger[_0x16f5ce(0x24c)](_0x16f5ce(0x21f)+JSON['stringify'](_0xfa446a));},_0x4ccef5[_0x2831a8(0x1ee)])(_0xe9a345,_0xf4a0f3,_0x4cc091);}static['patch'](){const _0x55899d=a68_0x1a7c7b;this[_0x55899d(0x1cf)](),this[_0x55899d(0x264)]();}static[a68_0x1a7c7b(0x1cf)](){const _0x593903=a68_0x1a7c7b,_0x4f1361={'CMerh':function(_0x5b66f1,_0xfcf9a7){return _0x5b66f1(_0xfcf9a7);},'ZoRic':_0x593903(0x1f9),'mBnxX':_0x593903(0x27d),'pNNSA':_0x593903(0x1f0),'JFjwi':function(_0x4272d6,_0x388d75){return _0x4272d6(_0x388d75);},'bssDg':'Not\x20able\x20to\x20import\x20Connection\x20class\x20from\x20any\x20path','eoIMt':function(_0x2b85e0,_0x47c3fa){return _0x2b85e0!=_0x47c3fa;},'JGXGi':_0x593903(0x23b),'BUPSb':_0x593903(0x27e),'VkyeJ':_0x593903(0x230),'pTndv':function(_0x14fd0a,_0x29983a){return _0x14fd0a(_0x29983a);}},_0x599fce=this;if(!this[_0x593903(0x1c7)])try{const _0x4ddaef=[path['join'](_0x4f1361[_0x593903(0x266)],_0x4f1361['mBnxX'],_0x4f1361[_0x593903(0x265)]),path[_0x593903(0x278)](_0x4f1361[_0x593903(0x266)],_0x4f1361['pNNSA']),path[_0x593903(0x278)](_0x4f1361[_0x593903(0x212)],_0x4f1361[_0x593903(0x265)])];for(const _0x2ef65b of _0x4ddaef){try{const _0x2b11d4=_0x4f1361[_0x593903(0x1d9)](importFileFromPWCore,_0x2ef65b);if(_0x2b11d4&&_0x2b11d4[_0x593903(0x1c7)]){this[_0x593903(0x1c7)]=_0x2b11d4['Connection'],logger[_0x593903(0x24c)](_0x593903(0x285)+_0x2ef65b);break;}}catch(_0x332c88){_0x4f1361[_0x593903(0x20f)](debug,'Failed\x20to\x20import\x20connection\x20from\x20'+_0x2ef65b+':\x20'+_0x332c88[_0x593903(0x249)]());}}if(!this[_0x593903(0x1c7)]){_0x4f1361['CMerh'](debug,_0x4f1361['bssDg']);return;}}catch(_0xe0dae){_0x4f1361[_0x593903(0x20f)](debug,_0x593903(0x263)+_0xe0dae['toString']());return;}const _0x541d25=this[_0x593903(0x1c7)];try{if(_0x4f1361[_0x593903(0x1c1)](_0x541d25,null)){const _0x593fc0=_0x541d25[_0x593903(0x1f8)][_0x593903(0x27e)];if(!_0x4f1361['JFjwi'](isFalse,process[_0x593903(0x208)]['BROWSERSTACK_TEST_OBSERVABILITY'])){if(_0x541d25[_0x593903(0x1f8)]['_bstackDispatchPatched']){logger[_0x593903(0x24c)](_0x4f1361['JGXGi']);return;}Object[_0x593903(0x24e)](_0x541d25[_0x593903(0x1f8)],_0x4f1361['BUPSb'],{'get':function(){const _0x285d76={'hlKQX':function(_0x55245a,_0x5f352a){const _0x110d43=a68_0x4827;return _0x4f1361[_0x110d43(0x1d9)](_0x55245a,_0x5f352a);},'cXEIs':function(_0x472829,_0x141649){const _0x442b4a=a68_0x4827;return _0x4f1361[_0x442b4a(0x1d9)](_0x472829,_0x141649);}};return async function _0x354d05(_0x8a3e30){const _0x57a9cc=a68_0x4827;if(BrowserstackCLI[_0x57a9cc(0x23a)]()[_0x57a9cc(0x1e2)]()){const _0x35b4bc={};_0x35b4bc[_0x57a9cc(0x1ef)]=_0x8a3e30,await BrowserstackCLI[_0x57a9cc(0x23a)]()[_0x57a9cc(0x260)]()[_0x57a9cc(0x286)](AutomationFrameworkState[_0x57a9cc(0x1d0)],HookState[_0x57a9cc(0x250)],_0x35b4bc);}else{const _0x52494b=_0x8a3e30&&_0x8a3e30[_0x57a9cc(0x1fa)]&&_0x8a3e30[_0x57a9cc(0x1fa)]['bsParams'];if(_0x52494b){const _0x12401f=_0x52494b[_0x57a9cc(0x235)],_0x621865=_0x52494b[_0x57a9cc(0x205)];_0x621865&&(_0x285d76['hlKQX'](debug,_0x57a9cc(0x21d)+_0x621865[_0x57a9cc(0x249)]()),_0x599fce['currentSessionDetails'][_0x57a9cc(0x236)]=_0x621865[_0x57a9cc(0x284)],_0x599fce[_0x57a9cc(0x225)]['platform_version']=_0x621865[_0x57a9cc(0x256)]),_0x12401f&&(_0x285d76[_0x57a9cc(0x234)](debug,_0x57a9cc(0x210)+_0x12401f),_0x599fce[_0x57a9cc(0x225)][_0x57a9cc(0x275)]=_0x12401f);}}return _0x593fc0[_0x57a9cc(0x20d)](this,arguments);};}}),_0x541d25[_0x593903(0x1f8)]['_bstackDispatchPatched']=!![],logger['debug'](_0x4f1361[_0x593903(0x1c8)]);}}}catch(_0x289b5c){_0x4f1361['pTndv'](debug,'Error\x20in\x20applying\x20Connection\x20patch\x20'+_0x289b5c),_0x599fce['sessionError']=_0x289b5c[_0x593903(0x249)]();}}static[a68_0x1a7c7b(0x264)](){const _0x26c96d=a68_0x1a7c7b,_0x11365a={'UNNtS':function(_0x55bc31,_0x4a6760){return _0x55bc31(_0x4a6760);},'VVLhY':function(_0x27a8ef,_0x24ff3b){return _0x27a8ef(_0x24ff3b);},'rCHTS':_0x26c96d(0x1f9),'XVelg':_0x26c96d(0x203),'HTWdf':_0x26c96d(0x1c3),'KpuyD':_0x26c96d(0x22f),'SNNQW':'Not\x20able\x20to\x20import\x20crConnection','SBlJP':function(_0x8a0296,_0x5309aa){return _0x8a0296(_0x5309aa);},'zLuyJ':_0x26c96d(0x269),'yzDbo':function(_0x143ec5,_0x307a74){return _0x143ec5!=_0x307a74;},'gYOOB':_0x26c96d(0x274),'RJIUk':_0x26c96d(0x26c),'SlzPM':'Successfully\x20patched\x20CRConnection._onMessage'},_0x3c2ea2=this;let _0x158dc8=null;try{const _0xf00009=path[_0x26c96d(0x278)](_0x11365a[_0x26c96d(0x1fe)],_0x11365a[_0x26c96d(0x1be)],_0x11365a[_0x26c96d(0x24f)],_0x11365a['KpuyD']),_0x1c400f=_0x11365a[_0x26c96d(0x1d8)](importFileFromPWCore,_0xf00009);!_0x1c400f?_0x11365a['VVLhY'](debug,_0x11365a['SNNQW']):_0x158dc8=_0x1c400f['CRConnection'];}catch(_0x42e852){_0x11365a[_0x26c96d(0x1f6)](debug,_0x11365a[_0x26c96d(0x204)]);}try{if(_0x11365a['yzDbo'](_0x158dc8,null)){const _0xb28eee=_0x158dc8['prototype'][_0x26c96d(0x26c)];if(_0x158dc8[_0x26c96d(0x1f8)][_0x26c96d(0x268)]){logger[_0x26c96d(0x24c)](_0x11365a[_0x26c96d(0x27b)]);return;}Object[_0x26c96d(0x24e)](_0x158dc8[_0x26c96d(0x1f8)],_0x11365a[_0x26c96d(0x23c)],{'get':function(){return async function _0x6735cc(_0x2944b4){const _0x391583=a68_0x4827;try{if(BrowserstackCLI[_0x391583(0x23a)]()[_0x391583(0x1e2)]()){const _0x4e1a39={};_0x4e1a39['message']=_0x2944b4,await BrowserstackCLI[_0x391583(0x23a)]()['getAutomationFramework']()[_0x391583(0x286)](AutomationFrameworkState[_0x391583(0x1d0)],HookState[_0x391583(0x250)],_0x4e1a39),delete _0x2944b4[_0x391583(0x283)];}else{const _0x1ab79b=_0x2944b4[_0x391583(0x283)];if(_0x1ab79b){delete _0x2944b4[_0x391583(0x283)];const _0x265b94=_0x1ab79b[_0x391583(0x235)],_0x25b290=_0x1ab79b['platformDetails'];_0x25b290&&(_0x11365a[_0x391583(0x257)](debug,_0x391583(0x226)+_0x25b290['toString']()),_0x3c2ea2['currentSessionDetails'][_0x391583(0x236)]=_0x25b290[_0x391583(0x284)],_0x3c2ea2['currentSessionDetails'][_0x391583(0x1dc)]=_0x25b290[_0x391583(0x256)]),_0x265b94&&(_0x11365a[_0x391583(0x1d8)](debug,_0x391583(0x1c6)+_0x265b94),_0x3c2ea2[_0x391583(0x225)][_0x391583(0x275)]=_0x265b94);}}}catch(_0x25f742){_0x11365a[_0x391583(0x1d8)](debug,'Error\x20in\x20finding\x20platform\x20details\x20'+_0x25f742[_0x391583(0x249)]());}return _0xb28eee[_0x391583(0x20d)](this,arguments);};}}),_0x158dc8[_0x26c96d(0x1f8)]['_bstackCRPatched']=!![],logger[_0x26c96d(0x24c)](_0x11365a[_0x26c96d(0x289)]);}}catch(_0x12b558){_0x11365a['UNNtS'](debug,'Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20'+_0x12b558),_0x3c2ea2[_0x26c96d(0x288)]=_0x12b558[_0x26c96d(0x249)]();}}static['extractBrowserStackParams'](_0x5c5a59,_0x311dea){const _0xfd4def=a68_0x1a7c7b,_0x1983d0={'vVZrK':_0xfd4def(0x22e),'xrlzd':function(_0x197820,_0x902c9){return _0x197820||_0x902c9;},'gMtUv':function(_0x1535c6,_0x2d1e04){return _0x1535c6===_0x2d1e04;},'IAIuA':_0xfd4def(0x245),'CQckh':_0xfd4def(0x1c0),'tJeQA':function(_0x2bf794,_0x45174f){return _0x2bf794(_0x45174f);},'rvHXc':function(_0x32d3ef,_0x6e90e){return _0x32d3ef(_0x6e90e);}};let _0x177160=null,_0x250050=null;try{const _0x330fa5=[_0x311dea,global[_0xfd4def(0x1d4)],global[_0xfd4def(0x237)]];for(const _0x4e87c9 of _0x330fa5){if(_0x4e87c9&&(!_0x250050||!_0x250050[_0xfd4def(0x235)])){const _0x17c77a=_0x4e87c9[_0xfd4def(0x235)]||_0x4e87c9[_0x1983d0[_0xfd4def(0x23d)]]?.[_0xfd4def(0x235)],_0x1cd7b2=_0x4e87c9[_0xfd4def(0x272)]||_0x4e87c9[_0xfd4def(0x1ed)]||_0x4e87c9[_0x1983d0['vVZrK']]?.[_0xfd4def(0x272)],_0x2e06b9=_0x4e87c9[_0xfd4def(0x1eb)]||_0x4e87c9['browser_version']||_0x4e87c9[_0x1983d0[_0xfd4def(0x23d)]]?.[_0xfd4def(0x1eb)],_0x1fa44c=_0x4e87c9['os']||_0x4e87c9[_0xfd4def(0x236)]||_0x4e87c9[_0x1983d0[_0xfd4def(0x23d)]]?.['os'],_0x3d118a=_0x4e87c9[_0xfd4def(0x255)]||_0x4e87c9[_0xfd4def(0x1db)]||_0x4e87c9[_0x1983d0[_0xfd4def(0x23d)]]?.[_0xfd4def(0x255)];if(_0x1983d0[_0xfd4def(0x219)](_0x17c77a,_0x1cd7b2)||_0x1fa44c){const _0x4da61b={};_0x4da61b['browserName']=_0x1cd7b2,_0x4da61b[_0xfd4def(0x1eb)]=_0x2e06b9,_0x4da61b['os']=_0x1fa44c,_0x4da61b[_0xfd4def(0x255)]=_0x3d118a,_0x4da61b['platformName']=_0x4e87c9[_0xfd4def(0x284)]||_0x1fa44c,_0x4da61b[_0xfd4def(0x256)]=_0x4e87c9[_0xfd4def(0x256)]||_0x3d118a;const _0x4c0419={};_0x4c0419[_0xfd4def(0x235)]=_0x17c77a,_0x4c0419[_0xfd4def(0x205)]=_0x4da61b,_0x250050=_0x4c0419;if(_0x1983d0[_0xfd4def(0x219)](_0x17c77a,_0x1cd7b2)){logger[_0xfd4def(0x24c)]('BrowserStack\x20params\x20extracted\x20from\x20capabilities:\x20browser='+_0x1cd7b2+_0xfd4def(0x1e9)+_0x1fa44c);break;}}}}if(_0x5c5a59&&_0x1983d0[_0xfd4def(0x1d2)](typeof _0x5c5a59,_0x1983d0[_0xfd4def(0x1ca)]))try{const _0x2a8bc5=url[_0xfd4def(0x25e)](_0x5c5a59),_0x4dd91f=new URLSearchParams(_0x2a8bc5[_0xfd4def(0x282)]),_0x67781f=Object[_0xfd4def(0x248)](_0x4dd91f[_0xfd4def(0x1e0)]()),_0x26e065=[_0x67781f['caps'],_0x67781f[_0xfd4def(0x229)],_0x67781f[_0xfd4def(0x240)]];for(const _0x1450cb of _0x26e065){if(_0x1450cb&&(!_0x177160||!_0x177160[_0xfd4def(0x235)]))try{const _0xe41e8c=JSON['parse'](_0x1450cb),_0x5d36a3={};_0x5d36a3[_0xfd4def(0x235)]=_0xe41e8c['sessionId']||_0xe41e8c[_0x1983d0[_0xfd4def(0x23d)]]?.[_0xfd4def(0x235)],_0x5d36a3[_0xfd4def(0x205)]={},_0x5d36a3[_0xfd4def(0x205)][_0xfd4def(0x272)]=_0xe41e8c[_0xfd4def(0x272)]||_0xe41e8c['browser'],_0x5d36a3[_0xfd4def(0x205)][_0xfd4def(0x1eb)]=_0xe41e8c['browserVersion']||_0xe41e8c[_0xfd4def(0x1cd)],_0x5d36a3[_0xfd4def(0x205)]['os']=_0xe41e8c['os']||_0xe41e8c['platform'],_0x5d36a3[_0xfd4def(0x205)]['osVersion']=_0xe41e8c[_0xfd4def(0x255)]||_0xe41e8c['os_version'],_0x5d36a3[_0xfd4def(0x205)][_0xfd4def(0x284)]=_0xe41e8c[_0xfd4def(0x284)]||_0xe41e8c['os']||_0xe41e8c[_0xfd4def(0x236)],_0x5d36a3[_0xfd4def(0x205)][_0xfd4def(0x256)]=_0xe41e8c[_0xfd4def(0x256)]||_0xe41e8c[_0xfd4def(0x255)]||_0xe41e8c['os_version'],_0x177160=_0x5d36a3;if(_0x177160[_0xfd4def(0x235)]||_0x177160[_0xfd4def(0x205)][_0xfd4def(0x272)]){logger['debug'](_0x1983d0[_0xfd4def(0x26a)]);break;}}catch(_0x1ec844){_0x1983d0['tJeQA'](debug,_0xfd4def(0x259)+_0x1ec844[_0xfd4def(0x249)]());}}}catch(_0x1c077b){_0x1983d0[_0xfd4def(0x1d7)](debug,_0xfd4def(0x1e7)+_0x1c077b['toString']());}}catch(_0xae7343){_0x1983d0[_0xfd4def(0x25b)](debug,_0xfd4def(0x25f)+util[_0xfd4def(0x267)](_0xae7343));}const _0x4e8a40={};return _0x4e8a40[_0xfd4def(0x287)]=_0x177160,_0x4e8a40[_0xfd4def(0x283)]=_0x250050,_0x4e8a40;}static async[a68_0x1a7c7b(0x211)](_0x5b5c5e,_0x3fe2d0){const _0x484b2d=a68_0x1a7c7b,_0x20f5a3={'QDTze':function(_0x3cf53a,_0x1b2467){return _0x3cf53a||_0x1b2467;},'NSuRP':'Triggering\x20PLAYWRIGHT_DISPATCH\x20event','SvBQV':function(_0xba0435,_0x463551){return _0xba0435(_0x463551);}};try{if(!BrowserstackCLI[_0x484b2d(0x23a)]()[_0x484b2d(0x1e2)]())return;if(_0x20f5a3[_0x484b2d(0x1ce)](_0x5b5c5e,_0x3fe2d0)){logger[_0x484b2d(0x24c)](_0x20f5a3[_0x484b2d(0x1ea)]);const _0x391438={'params':_0x5b5c5e?{'bsParams':_0x5b5c5e}:null,'bStackParams':_0x20f5a3[_0x484b2d(0x1ce)](_0x3fe2d0,null)},_0x55da77=AutomationFramework[_0x484b2d(0x22c)](),_0x30632b={};_0x30632b[_0x484b2d(0x1ef)]=_0x391438,_0x30632b[_0x484b2d(0x26e)]=_0x55da77,await BrowserstackCLI['getInstance']()[_0x484b2d(0x260)]()[_0x484b2d(0x286)](AutomationFrameworkState['PLAYWRIGHT_DISPATCH'],HookState[_0x484b2d(0x250)],_0x30632b);}}catch(_0x58b081){_0x20f5a3[_0x484b2d(0x1fc)](debug,_0x484b2d(0x217)+util[_0x484b2d(0x267)](_0x58b081));}}static[a68_0x1a7c7b(0x26d)](){const _0x578be5=a68_0x1a7c7b;return this[_0x578be5(0x225)];}}module['exports']=SharedPlaywrightSessionDetails;function a68_0x1946(){const _0x475d64=['35RjvHtp','getTrackedInstance','_name','bstack:options','crConnection.js','Successfully\x20patched\x20Connection.dispatch','../../helpers/helper','SFwKU','edge','cXEIs','sessionId','platform','capabilties','jbQRe','3sHTjhj','getInstance','Connection\x20dispatch\x20already\x20patched','RJIUk','vVZrK','24KIKGwB','CUZic','desiredCapabilities','_defaultConnectOptions','EAOie','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','XWenQ','string','Browser\x20found\x20in\x20WebSocket\x20caps:\x20','safari','fromEntries','toString','_connection','aQVVM','debug','uAigw','defineProperty','HTWdf','POST','boKzx','Device\x20Model\x20is\x20not\x20available','muOmp','geNmH','osVersion','platformVersion','UNNtS','tVuFp','Failed\x20to\x20parse\x20capabilities\x20from\x20WebSocket:\x20','zBxiW','rvHXc','sXZgQ','xRgcw','parse','Error\x20extracting\x20BrowserStack\x20parameters:\x20','getAutomationFramework','MdnvN','../../helpers/logger','Error\x20in\x20importing\x20connection\x20','patchCRConnection','pNNSA','ZoRic','format','_bstackCRPatched','Error\x20in\x20importing\x20crConnection','CQckh','Failed\x20to\x20parse\x20caps\x20from\x20WebSocket:\x20','_onMessage','getDetails','instance','../v2/state/automationFrameworkState.js','3869991PsWoSp','QklMx','browserName','Loanw','CRConnection\x20already\x20patched','bsSessionId','../../helpers/test-observability/error-handler','chrome','join','split','includes','gYOOB','webkit','client','dispatch','qELhJ','zpJYi','url','query','bStackParams','platformName','Found\x20Connection\x20class\x20at:\x20','trackEvent','bsParams','sessionError','SlzPM','duRYQ','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','caps','automate','XVelg','msedge','BrowserStack\x20params\x20extracted\x20from\x20WebSocket\x20endpoint','eoIMt','../v2/state/hookState.js','chromium','4745481RumhPj','winstonLogger','Setting\x20session\x20id\x20received\x20from\x20browserstack\x20','Connection','VkyeJ','browserstack','IAIuA','use','turboscale','browser_version','QDTze','patchConnection','PLAYWRIGHT_DISPATCH','WjGvl','gMtUv','12XFaeHU','__platformCaps','qEUZq','playwright-','tJeQA','VVLhY','CMerh','pkvuk','os_version','platform_version','RGmEk','../../helpers/test-observability/utils','1058646vwzxcM','entries','project','isRunning','SudTL','_browserType','aPRIR','BSTACK_URL','Error\x20parsing\x20WebSocket\x20endpoint:\x20','1svmnxc',',\x20os=','NSuRP','browserVersion','5152644fwHhjg','browser','IogrO','message','connection.js','accessibilityPlatform','product','oQPAe','firefox','util','SBlJP','eodtA','prototype','lib','params','BSTACK_ATS_URL','SvBQV','WTteh','rCHTS','cloudProvider','hfGHk','kJyYG','QNyzp','server','zLuyJ','platformDetails','xsdpM','SqaNC','env','setupBrowserDetails','326870XcBGHL','version','./constants','apply','iyRYr','JFjwi','Setting\x20session\x20id\x20received\x20from\x20BS\x20','triggerPlaywrightDispatchEvent','mBnxX','wsEndpoint','2190155RUkkCf','ATS_WSS_URL_REGEX','3796456XQHyrr','Error\x20triggering\x20PLAYWRIGHT_DISPATCH\x20event:\x20','FNagI','xrlzd','Using\x20browser\x20name\x20from\x20browser\x20object:\x20','10CeULIv','SaMtY','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','connectOptions','Session\x20details\x20setup\x20complete:\x20','function','npRch','local_grid','model','isRemote','currentSessionDetails','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','channel','ZuSDG','capabilities','TNaap'];a68_0x1946=function(){return _0x475d64;};return a68_0x1946();}
1
+ const a68_0x1b4900=a68_0x3442;(function(_0x39a979,_0x473ac6){const _0xedc79c=a68_0x3442,_0xdc8376=_0x39a979();while(!![]){try{const _0x346366=parseInt(_0xedc79c(0x11b))/0x1*(-parseInt(_0xedc79c(0xf7))/0x2)+parseInt(_0xedc79c(0x16b))/0x3*(-parseInt(_0xedc79c(0x171))/0x4)+-parseInt(_0xedc79c(0x139))/0x5*(parseInt(_0xedc79c(0x137))/0x6)+parseInt(_0xedc79c(0x15e))/0x7+parseInt(_0xedc79c(0x114))/0x8*(-parseInt(_0xedc79c(0x16f))/0x9)+-parseInt(_0xedc79c(0x10b))/0xa*(parseInt(_0xedc79c(0x11c))/0xb)+parseInt(_0xedc79c(0xe8))/0xc;if(_0x346366===_0x473ac6)break;else _0xdc8376['push'](_0xdc8376['shift']());}catch(_0x2727ed){_0xdc8376['push'](_0xdc8376['shift']());}}}(a68_0x450a,0x92c12));const path=require('path'),url=require(a68_0x1b4900(0x168)),util=require(a68_0x1b4900(0xd7)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule,isBrowserstackInfra}=require(a68_0x1b4900(0xe6)),{o11yErrorHandler}=require(a68_0x1b4900(0x193)),{debug,getPlatformDetails}=require('../../helpers/test-observability/utils'),logger=require('../../helpers/logger')[a68_0x1b4900(0xf6)],constants=require(a68_0x1b4900(0x186)),AutomationFramework=require(a68_0x1b4900(0xf1)),BrowserstackCLI=require(a68_0x1b4900(0x119)),AutomationFrameworkState=require(a68_0x1b4900(0x136)),HookState=require(a68_0x1b4900(0x185)),{platform}=require('os'),getBrowserNameFromChannel=_0x47717d=>{const _0x34242e=a68_0x1b4900,_0x35b967={};_0x35b967[_0x34242e(0x141)]=_0x34242e(0x18a),_0x35b967['ZqoAF']=_0x34242e(0x167),_0x35b967[_0x34242e(0x192)]=_0x34242e(0xed),_0x35b967['UFSdC']='safari',_0x35b967['FCUaa']=function(_0x5227a2,_0x55f4b6){return _0x5227a2===_0x55f4b6;},_0x35b967['uhodm']=_0x34242e(0xec),_0x35b967[_0x34242e(0x151)]=_0x34242e(0x157),_0x35b967['xJbJb']=_0x34242e(0x180);const _0x479199=_0x35b967,_0x57164c=_0x479199[_0x34242e(0x141)][_0x34242e(0xe7)]('|');let _0x154ea0=0x0;while(!![]){switch(_0x57164c[_0x154ea0++]){case'0':if(_0x47717d['includes'](_0x479199[_0x34242e(0x169)]))return _0x479199['ZqoAF'];continue;case'1':if(_0x47717d[_0x34242e(0x14f)](_0x479199[_0x34242e(0x192)]))return _0x479199[_0x34242e(0x192)];continue;case'2':if(_0x47717d[_0x34242e(0x14f)](_0x479199['UFSdC']))return _0x479199[_0x34242e(0x172)];continue;case'3':if(_0x479199[_0x34242e(0x10e)](_0x47717d,_0x479199[_0x34242e(0x112)]))return _0x479199[_0x34242e(0x112)];continue;case'4':if(_0x47717d[_0x34242e(0x14f)](_0x479199[_0x34242e(0x151)]))return _0x479199['pgGxn'];continue;case'5':if(_0x47717d['includes'](_0x479199[_0x34242e(0x17d)]))return _0x479199['xJbJb'];continue;}break;}},getBrowserFromWSEndpoint=_0x4b43d9=>{const _0x310006=a68_0x1b4900,_0x160e1f={'FGGJF':_0x310006(0x183),'uJedA':function(_0x4acb38,_0x4096ba){return _0x4acb38(_0x4096ba);},'fmfGa':function(_0x205076,_0x3b1682){return _0x205076(_0x3b1682);},'YcQLu':_0x310006(0xed),'NGDRF':_0x310006(0xcf),'jcVkV':_0x310006(0x180),'eWBeq':_0x310006(0x191),'wdFev':_0x310006(0x196),'NulzE':_0x310006(0xec),'tuTfv':_0x310006(0x167)};try{const _0x11b43a=url[_0x310006(0x170)](_0x4b43d9),_0x287430=new URLSearchParams(_0x11b43a['query']),_0x3f551b=Object[_0x310006(0x130)](_0x287430[_0x310006(0x108)]()),_0xdd40cd=[_0x3f551b['caps'],_0x3f551b[_0x310006(0x173)],_0x3f551b[_0x310006(0x13e)],_0x3f551b[_0x310006(0x14c)]];for(const _0x3567e9 of _0xdd40cd){if(_0x3567e9)try{const _0x19e27e=JSON[_0x310006(0x170)](_0x3567e9),_0x98d1=_0x19e27e['browserName']||_0x19e27e[_0x310006(0xdb)]||_0x19e27e[_0x160e1f[_0x310006(0x13c)]]?.[_0x310006(0xf0)];if(_0x98d1)return _0x160e1f[_0x310006(0x133)](debug,'Browser\x20found\x20in\x20WebSocket\x20caps:\x20'+_0x98d1),_0x98d1['toLowerCase']();}catch(_0x21c323){_0x160e1f[_0x310006(0x15a)](debug,'Failed\x20to\x20parse\x20caps\x20from\x20WebSocket:\x20'+_0x21c323[_0x310006(0xd6)]);}}if(_0x4b43d9['includes'](_0x160e1f[_0x310006(0x162)])||_0x4b43d9[_0x310006(0x14f)](_0x160e1f[_0x310006(0x154)]))return _0x160e1f[_0x310006(0x162)];if(_0x4b43d9['includes'](_0x160e1f['jcVkV'])||_0x4b43d9['includes'](_0x160e1f[_0x310006(0x123)]))return _0x160e1f['jcVkV'];if(_0x4b43d9[_0x310006(0x14f)](_0x160e1f[_0x310006(0x140)])||_0x4b43d9[_0x310006(0x14f)](_0x160e1f[_0x310006(0xf2)]))return _0x160e1f[_0x310006(0x140)];return _0x160e1f['tuTfv'];}catch(_0x130f89){return _0x160e1f[_0x310006(0x15a)](debug,_0x310006(0x17c)+_0x130f89[_0x310006(0x12a)]()),_0x160e1f[_0x310006(0x12c)];}},getCloudProviderFromWsEndpoint=_0x57736a=>{const _0x15f1b9=a68_0x1b4900,_0x10f5a9={};_0x10f5a9['YaDOX']=_0x15f1b9(0xf5),_0x10f5a9[_0x15f1b9(0x176)]='unknown_grid';const _0x12de91=_0x10f5a9;if(_0x57736a[_0x15f1b9(0x14f)](constants[_0x15f1b9(0x153)])||_0x57736a[_0x15f1b9(0x14f)](constants[_0x15f1b9(0x148)]))return _0x12de91[_0x15f1b9(0x199)];return _0x12de91['yZMUP'];},a68_0x52972f={};a68_0x52972f[a68_0x1b4900(0xc9)]=undefined,a68_0x52972f[a68_0x1b4900(0xda)]=undefined,a68_0x52972f[a68_0x1b4900(0xdb)]=undefined,a68_0x52972f['browser_version']=undefined,a68_0x52972f['platform']=undefined,a68_0x52972f['platform_version']=undefined,a68_0x52972f[a68_0x1b4900(0xce)]=undefined,a68_0x52972f[a68_0x1b4900(0x173)]={};function a68_0x450a(){const _0x3a96b9=['client','platform_version','coGeQ','cloudProvider','trackEvent','TeSIy','XwlRk','mQfGM','product','msedge','IdipU','Not\x20able\x20to\x20import\x20crConnection','Xsgnd','wJklZ','rzSkM','WYmfH','message','util','Error\x20in\x20importing\x20crConnection','sessionId','bsSessionId','browser','DSCoJ','Failed\x20to\x20parse\x20capabilities\x20from\x20WebSocket:\x20','browserVersion','_name','uMwlA','patchConnection','osVersion','Found\x20Connection\x20class\x20at:\x20','dxYcJ','yEzHQ','../../helpers/helper','split','33204840oqJaih','setupBrowserDetails','crConnection.js','lib','webkit','edge','wsEndpoint','connection.js','browserName','../v2/framework/automationFramework','NulzE','platformDetails','Error\x20parsing\x20WebSocket\x20endpoint:\x20','browserstack','winstonLogger','612710DtlDUV','EEQHy','platformVersion','PLAYWRIGHT_DISPATCH','Triggering\x20PLAYWRIGHT_DISPATCH\x20event','test','_bstackCRPatched','Using\x20browser\x20name\x20from\x20browser\x20object:\x20','automate','GhozG','GEDFO','vhsbW','platform','sessionError','defineProperty','query','PFVGo','entries','eRxqP','dPDnA','7409030MZkCKQ','patch','wisGx','FCUaa','getInstance','Connection','use','uhodm','debug','8ZmEbPt','DntsG','triggerPlaywrightDispatchEvent','FpwhS','playwright-','../v2/browserstackCLI','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','1kqhMKv','11qBbXbE','Gaufv','pPUPK','getAutomationFramework','BrowserStack\x20params\x20extracted\x20from\x20WebSocket\x20endpoint','Setting\x20session\x20id\x20received\x20from\x20browserstack\x20','UksOR','eWBeq','dispatch','Setting\x20session\x20id\x20received\x20from\x20BS\x20','wZQTs','platformName','params','tJTXJ','toString','extractBrowserStackParams','tuTfv','HtnUn','RCEEJ','Melvx','fromEntries','DtVNq','join','uJedA','XRZWL','exports','../v2/state/automationFrameworkState.js','1405596PErbLh','OjrKC','5xyiFAz','Not\x20able\x20to\x20import\x20Connection\x20class\x20from\x20any\x20path','dtCmv','FGGJF','Session\x20details\x20setup\x20complete:\x20','desiredCapabilities','format','wdFev','exsXU','VPKcT','OXVfr','stringify','currentSessionDetails','MwWUn','patchCRConnection','BSTACK_ATS_URL','_onMessage','NLZKq','model','browserstack_capabilities','env','XwpJp','includes','yzivr','pgGxn','channel','BSTACK_URL','NGDRF','isRunning','string','chromium','SsLWh','KfgST','fmfGa','Successfully\x20patched\x20CRConnection._onMessage','apply','prototype','399749SRkoNG','_defaultConnectOptions','Failed\x20to\x20import\x20connection\x20from\x20','Device\x20Model\x20is\x20not\x20available','YcQLu','Error\x20extracting\x20BrowserStack\x20parameters:\x20','MPtTT','BROWSERSTACK_TEST_OBSERVABILITY','_browserType','chrome','url','ZqoAF','KFVFl','386097KqSkjI','KnIVB','project','pwymA','365886BWdZrj','parse','28zYfkOH','UFSdC','capabilities','ncxuj','pshfN','yZMUP','hzJPy','tVDlM','zrhkM','local_grid','browser_version','Error\x20in\x20getting\x20browser\x20from\x20WebSocket\x20endpoint:\x20','xJbJb','accessibilityPlatform','Lpwvd','firefox','getDetails','deviceModel','bstack:options','__platformCaps','../v2/state/hookState.js','./constants','dkgzb','Error\x20triggering\x20PLAYWRIGHT_DISPATCH\x20event:\x20','connectOptions','4|0|1|5|2|3','XMLiv','lPtAM','bStackParams','XyePn','server','instance','gecko','LvKfA','../../helpers/test-observability/error-handler','IaSUD','turboscale','safari','AubgM','toLowerCase','YaDOX','version','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','Connection\x20dispatch\x20already\x20patched'];a68_0x450a=function(){return _0x3a96b9;};return a68_0x450a();}function a68_0x3442(_0x440979,_0x216ded){const _0x450a02=a68_0x450a();return a68_0x3442=function(_0x3442e2,_0xc48c3d){_0x3442e2=_0x3442e2-0xc9;let _0x5c880d=_0x450a02[_0x3442e2];return _0x5c880d;},a68_0x3442(_0x440979,_0x216ded);}class SharedPlaywrightSessionDetails{static [a68_0x1b4900(0x145)]=a68_0x52972f;constructor(){const _0x38e0b8=a68_0x1b4900,_0x2e59dc={};_0x2e59dc[_0x38e0b8(0x129)]='Invalid\x20constructor,\x20please\x20use\x20static\x20methods';const _0x11d299=_0x2e59dc;throw new Error(_0x11d299[_0x38e0b8(0x129)]);}static ['sessionError']=null;static[a68_0x1b4900(0xe9)](_0x5e7173,_0xdf89c7,_0x1076ac=null){const _0x2cba3a=a68_0x1b4900,_0x29ce0d={'XwpJp':function(_0x2ad74b,_0x460a4b){return _0x2ad74b===_0x460a4b;},'DSCoJ':'function','FotQZ':'Browser\x20is\x20not\x20defined\x20or\x20not\x20available','hGdjo':_0x2cba3a(0x161),'XRZWL':_0x2cba3a(0x17a),'UksOR':function(_0x41c8d9,_0x14214c,_0x40afd7){return _0x41c8d9(_0x14214c,_0x40afd7);},'RCEEJ':_0x2cba3a(0x166),'GhozG':_0x2cba3a(0x15f),'Melvx':function(_0x5e4d4d,_0xccb2c9,_0xb0c69){return _0x5e4d4d(_0xccb2c9,_0xb0c69);},'INlzE':_0x2cba3a(0x16d),'TeSIy':'use','XyePn':_0x2cba3a(0x189),'lPtAM':function(_0x47340a,_0x33692e){return _0x47340a(_0x33692e);},'coGeQ':function(_0x3d35a5,_0x36cf76){return _0x3d35a5===_0x36cf76;},'uMlad':'browserstack','DtVNq':_0x2cba3a(0x195),'tVDlM':_0x2cba3a(0xff),'pPUPK':function(_0x2cdc96,_0x1da252){return _0x2cdc96(_0x1da252);},'IdipU':'chromium','KnIVB':function(_0x5f3079){return _0x5f3079();},'uMwlA':function(_0x563677,_0x225f80){return _0x563677&&_0x225f80;},'wisGx':function(_0x7c84cd){return _0x7c84cd();},'MwWUn':function(_0x5ea863,_0x4813fe){return _0x5ea863(_0x4813fe);},'GEDFO':function(_0x50a73a,_0x14d203){return _0x50a73a+_0x14d203;},'PFVGo':_0x2cba3a(0x118),'gwSmR':function(_0x190fd0){return _0x190fd0();},'ncxuj':function(_0x4345fa,_0x33a137,_0x4e6b54){return _0x4345fa(_0x33a137,_0x4e6b54);},'jbYQB':_0x2cba3a(0xe9)},_0x59ddcd=this;return _0x29ce0d[_0x2cba3a(0x174)](o11yErrorHandler,async function _0x3f22bc(_0x469ad3,_0x152523,_0x16ecc6=null){const _0x54d76e=_0x2cba3a;let _0x3d29f3=_0x469ad3[_0x54d76e(0xdf)],_0x171683=null;_0x469ad3&&_0x29ce0d[_0x54d76e(0x14e)](typeof _0x469ad3['version'],_0x29ce0d['DSCoJ'])?_0x171683=_0x469ad3[_0x54d76e(0x19a)]():logger[_0x54d76e(0x113)](_0x29ce0d['FotQZ']);let _0x566080=null;_0x469ad3&&_0x29ce0d[_0x54d76e(0x14e)](typeof _0x469ad3[_0x54d76e(0x14b)],_0x29ce0d[_0x54d76e(0xdc)])?_0x566080=_0x469ad3[_0x54d76e(0x14b)]():logger['debug'](_0x29ce0d['hGdjo']);let _0x12b539=null,_0x5ec2cc=null,_0x47f85f=null,_0x36675d=_0x29ce0d[_0x54d76e(0x134)];if(_0x469ad3['_connection']['isRemote']()||global[_0x54d76e(0x17e)]){let _0x4ae4f4=null;_0x29ce0d[_0x54d76e(0x122)](nestedKeyValue,_0x469ad3,[_0x29ce0d[_0x54d76e(0x12e)],_0x29ce0d[_0x54d76e(0x100)]])?_0x4ae4f4=_0x469ad3[_0x54d76e(0x166)]['_defaultConnectOptions']:_0x4ae4f4=_0x29ce0d[_0x54d76e(0x12f)](nestedKeyValue,_0x152523,[_0x29ce0d['INlzE'],_0x29ce0d[_0x54d76e(0xcb)],_0x29ce0d[_0x54d76e(0x18e)]]);const _0x2024a9=_0x16ecc6||_0x4ae4f4&&_0x4ae4f4[_0x54d76e(0xee)];if(_0x2024a9){_0x36675d=_0x29ce0d[_0x54d76e(0x18c)](getCloudProviderFromWsEndpoint,_0x2024a9);if(_0x29ce0d[_0x54d76e(0x19f)](_0x36675d,_0x29ce0d['uMlad'])){_0x47f85f=constants['ATS_WSS_URL_REGEX'][_0x54d76e(0xfc)](_0x2024a9)?_0x29ce0d[_0x54d76e(0x131)]:_0x29ce0d[_0x54d76e(0x178)];const _0x2325d5=_0x29ce0d[_0x54d76e(0x11e)](getBrowserFromWSEndpoint,_0x2024a9);if(_0x2325d5&&(!_0x3d29f3||_0x29ce0d[_0x54d76e(0x14e)](_0x3d29f3,_0x29ce0d[_0x54d76e(0xd0)])))_0x3d29f3=_0x2325d5,logger[_0x54d76e(0x113)]('Browser\x20name\x20overridden\x20from\x20WebSocket\x20endpoint:\x20'+_0x3d29f3);else _0x3d29f3&&logger['debug'](_0x54d76e(0xfe)+_0x3d29f3);_0x12b539=_0x59ddcd['currentSessionDetails'][_0x54d76e(0x103)],_0x5ec2cc=_0x59ddcd[_0x54d76e(0x145)][_0x54d76e(0x19e)];}else{const _0x4d2a37=await _0x29ce0d[_0x54d76e(0x16c)](getPlatformDetails);_0x12b539=_0x4d2a37['platformName'],_0x5ec2cc=_0x4d2a37[_0x54d76e(0xf9)];}}if(_0x29ce0d[_0x54d76e(0xe0)](!_0x12b539,!_0x5ec2cc)&&!_0x29ce0d[_0x54d76e(0x10d)](isBrowserstackInfra)){const _0x4761f4=await _0x29ce0d['KnIVB'](getPlatformDetails);_0x12b539=_0x4761f4['platformName'],_0x5ec2cc=_0x4761f4[_0x54d76e(0xf9)];}}else{_0x152523&&_0x152523[_0x54d76e(0x16d)]&&_0x152523[_0x54d76e(0x16d)][_0x54d76e(0x111)]&&_0x152523[_0x54d76e(0x16d)][_0x54d76e(0x111)][_0x54d76e(0x152)]?_0x3d29f3=_0x29ce0d[_0x54d76e(0x146)](getBrowserNameFromChannel,_0x152523[_0x54d76e(0x16d)][_0x54d76e(0x111)][_0x54d76e(0x152)]):_0x3d29f3=_0x29ce0d[_0x54d76e(0x101)](_0x29ce0d[_0x54d76e(0x107)],_0x3d29f3[_0x54d76e(0x198)]());const _0x2d5687=await _0x29ce0d['gwSmR'](getPlatformDetails);_0x12b539=_0x2d5687[_0x54d76e(0x127)],_0x5ec2cc=_0x2d5687[_0x54d76e(0xf9)];}const _0x56995e={};_0x56995e['browser']=_0x3d29f3,_0x56995e[_0x54d76e(0x17b)]=_0x171683,_0x56995e['capabilities']={},_0x56995e[_0x54d76e(0x103)]=_0x12b539,_0x56995e[_0x54d76e(0x19e)]=_0x5ec2cc,_0x56995e['product']=_0x47f85f;const _0x40bb49=_0x56995e;_0x566080&&(_0x40bb49[_0x54d76e(0x173)][_0x54d76e(0x182)]=_0x566080);const _0x1bc6db={};_0x1bc6db[_0x54d76e(0xc9)]=_0x36675d,_0x59ddcd[_0x54d76e(0x145)]=Object['assign']({},_0x59ddcd['currentSessionDetails'],_0x1bc6db,_0x40bb49);const _0x2efd8a={};_0x2efd8a[_0x54d76e(0xdb)]=_0x59ddcd[_0x54d76e(0x145)][_0x54d76e(0xdb)],_0x2efd8a[_0x54d76e(0xde)]=_0x59ddcd[_0x54d76e(0x145)][_0x54d76e(0x17b)],_0x2efd8a[_0x54d76e(0x103)]=_0x59ddcd['currentSessionDetails'][_0x54d76e(0x103)],_0x2efd8a[_0x54d76e(0xf9)]=_0x59ddcd[_0x54d76e(0x145)][_0x54d76e(0x19e)],_0x2efd8a[_0x54d76e(0xc9)]=_0x59ddcd['currentSessionDetails']['cloudProvider'],_0x2efd8a[_0x54d76e(0xce)]=_0x59ddcd[_0x54d76e(0x145)][_0x54d76e(0xce)],logger['debug'](_0x54d76e(0x13d)+JSON[_0x54d76e(0x144)](_0x2efd8a));},_0x29ce0d['jbYQB'])(_0x5e7173,_0xdf89c7,_0x1076ac);}static[a68_0x1b4900(0x10c)](){const _0x2fb7e6=a68_0x1b4900;this[_0x2fb7e6(0xe1)](),this['patchCRConnection']();}static['patchConnection'](){const _0x1ca553=a68_0x1b4900,_0x32094e={'dPDnA':function(_0x3a4552,_0x3d0150){return _0x3a4552(_0x3d0150);},'IaSUD':function(_0x4e249b,_0x807f14){return _0x4e249b(_0x807f14);},'SsLWh':_0x1ca553(0xeb),'pwymA':_0x1ca553(0x19d),'VPKcT':_0x1ca553(0xef),'wZQTs':function(_0x78406a,_0x35bb36){return _0x78406a(_0x35bb36);},'MPtTT':function(_0x3a3601,_0x1d82a0){return _0x3a3601(_0x1d82a0);},'eRxqP':function(_0x48684c,_0x1a34e5){return _0x48684c(_0x1a34e5);},'DntsG':_0x1ca553(0x13a),'fFKxg':function(_0x575b2e,_0x5206ef){return _0x575b2e!=_0x5206ef;},'vhsbW':_0x1ca553(0x19c),'BVxVP':_0x1ca553(0x124),'yEzHQ':'Successfully\x20patched\x20Connection.dispatch'},_0x414e0b=this;if(!this[_0x1ca553(0x110)])try{const _0x2528aa=[path['join'](_0x32094e[_0x1ca553(0x158)],_0x32094e[_0x1ca553(0x16e)],_0x32094e['VPKcT']),path[_0x1ca553(0x132)](_0x32094e[_0x1ca553(0x158)],_0x32094e[_0x1ca553(0x142)]),path['join'](_0x32094e[_0x1ca553(0x16e)],_0x32094e[_0x1ca553(0x142)])];for(const _0x1262c3 of _0x2528aa){try{const _0x4c246d=_0x32094e[_0x1ca553(0x126)](importFileFromPWCore,_0x1262c3);if(_0x4c246d&&_0x4c246d[_0x1ca553(0x110)]){this['Connection']=_0x4c246d[_0x1ca553(0x110)],logger[_0x1ca553(0x113)](_0x1ca553(0xe3)+_0x1262c3);break;}}catch(_0x5a825b){_0x32094e[_0x1ca553(0x164)](debug,_0x1ca553(0x160)+_0x1262c3+':\x20'+_0x5a825b[_0x1ca553(0x12a)]());}}if(!this['Connection']){_0x32094e[_0x1ca553(0x109)](debug,_0x32094e[_0x1ca553(0x115)]);return;}}catch(_0xfea63e){_0x32094e['dPDnA'](debug,'Error\x20in\x20importing\x20connection\x20'+_0xfea63e['toString']());return;}const _0x124282=this[_0x1ca553(0x110)];try{if(_0x32094e['fFKxg'](_0x124282,null)){const _0x2048ac=_0x124282[_0x1ca553(0x15d)][_0x1ca553(0x124)];if(!_0x32094e[_0x1ca553(0x164)](isFalse,process[_0x1ca553(0x14d)][_0x1ca553(0x165)])){if(_0x124282[_0x1ca553(0x15d)]['_bstackDispatchPatched']){logger[_0x1ca553(0x113)](_0x32094e[_0x1ca553(0x102)]);return;}Object[_0x1ca553(0x105)](_0x124282[_0x1ca553(0x15d)],_0x32094e['BVxVP'],{'get':function(){const _0x389663={'rzSkM':function(_0x45cc18,_0xee3cf7){const _0x3688d2=a68_0x3442;return _0x32094e[_0x3688d2(0x10a)](_0x45cc18,_0xee3cf7);},'AubgM':function(_0x959c3b,_0x345878){const _0x419367=a68_0x3442;return _0x32094e[_0x419367(0x194)](_0x959c3b,_0x345878);}};return async function _0x3bc9d5(_0x1c2fb6){const _0x10969=a68_0x3442;if(BrowserstackCLI[_0x10969(0x10f)]()[_0x10969(0x155)]()){const _0x3c76c7={};_0x3c76c7[_0x10969(0xd6)]=_0x1c2fb6,await BrowserstackCLI[_0x10969(0x10f)]()[_0x10969(0x11f)]()[_0x10969(0xca)](AutomationFrameworkState[_0x10969(0xfa)],HookState['POST'],_0x3c76c7);}else{const _0x5e1eff=_0x1c2fb6&&_0x1c2fb6[_0x10969(0x128)]&&_0x1c2fb6['params']['bsParams'];if(_0x5e1eff){const _0x22d1f8=_0x5e1eff[_0x10969(0xd9)],_0x5b4b0b=_0x5e1eff[_0x10969(0xf3)];_0x5b4b0b&&(_0x389663[_0x10969(0xd4)](debug,'Setting\x20platform\x20details\x20received\x20from\x20BS:\x20'+_0x5b4b0b[_0x10969(0x12a)]()),_0x414e0b[_0x10969(0x145)]['platform']=_0x5b4b0b['platformName'],_0x414e0b[_0x10969(0x145)][_0x10969(0x19e)]=_0x5b4b0b['platformVersion']),_0x22d1f8&&(_0x389663[_0x10969(0x197)](debug,_0x10969(0x125)+_0x22d1f8),_0x414e0b[_0x10969(0x145)]['bsSessionId']=_0x22d1f8);}}return _0x2048ac[_0x10969(0x15c)](this,arguments);};}}),_0x124282[_0x1ca553(0x15d)]['_bstackDispatchPatched']=!![],logger[_0x1ca553(0x113)](_0x32094e[_0x1ca553(0xe5)]);}}}catch(_0x2e28d0){_0x32094e[_0x1ca553(0x10a)](debug,'Error\x20in\x20applying\x20Connection\x20patch\x20'+_0x2e28d0),_0x414e0b[_0x1ca553(0x104)]=_0x2e28d0[_0x1ca553(0x12a)]();}}static[a68_0x1b4900(0x147)](){const _0x267302=a68_0x1b4900,_0xb8408d={'NLZKq':function(_0x4a801c,_0x2eca63){return _0x4a801c(_0x2eca63);},'OXVfr':function(_0x30c472,_0x3b0bfb){return _0x30c472(_0x3b0bfb);},'wJklZ':'lib','dtCmv':_0x267302(0x18f),'WYmfH':'chromium','FpwhS':_0x267302(0xea),'Lpwvd':function(_0x2e91b2,_0x5ecaba){return _0x2e91b2(_0x5ecaba);},'mQfGM':_0x267302(0xd1),'pqqzL':_0x267302(0xd8),'Gaufv':function(_0x28d138,_0x348a04){return _0x28d138!=_0x348a04;},'HtnUn':'CRConnection\x20already\x20patched','XwlRk':_0x267302(0x149),'OjrKC':_0x267302(0x15b)},_0x5863eb=this;let _0x30430c=null;try{const _0x25ae3e=path[_0x267302(0x132)](_0xb8408d[_0x267302(0xd3)],_0xb8408d[_0x267302(0x13b)],_0xb8408d[_0x267302(0xd5)],_0xb8408d[_0x267302(0x117)]),_0x4d791b=_0xb8408d[_0x267302(0x14a)](importFileFromPWCore,_0x25ae3e);!_0x4d791b?_0xb8408d[_0x267302(0x17f)](debug,_0xb8408d[_0x267302(0xcd)]):_0x30430c=_0x4d791b['CRConnection'];}catch(_0x481a1a){_0xb8408d['OXVfr'](debug,_0xb8408d['pqqzL']);}try{if(_0xb8408d[_0x267302(0x11d)](_0x30430c,null)){const _0x2f6382=_0x30430c[_0x267302(0x15d)][_0x267302(0x149)];if(_0x30430c[_0x267302(0x15d)][_0x267302(0xfd)]){logger[_0x267302(0x113)](_0xb8408d[_0x267302(0x12d)]);return;}Object[_0x267302(0x105)](_0x30430c[_0x267302(0x15d)],_0xb8408d[_0x267302(0xcc)],{'get':function(){return async function _0x55e2b7(_0x3cdf10){const _0x41d7e1=a68_0x3442;try{if(BrowserstackCLI[_0x41d7e1(0x10f)]()[_0x41d7e1(0x155)]()){const _0x427ab2={};_0x427ab2[_0x41d7e1(0xd6)]=_0x3cdf10,await BrowserstackCLI[_0x41d7e1(0x10f)]()[_0x41d7e1(0x11f)]()['trackEvent'](AutomationFrameworkState[_0x41d7e1(0xfa)],HookState['POST'],_0x427ab2),delete _0x3cdf10[_0x41d7e1(0x18d)];}else{const _0xe532e8=_0x3cdf10['bStackParams'];if(_0xe532e8){delete _0x3cdf10[_0x41d7e1(0x18d)];const _0x2e82b7=_0xe532e8[_0x41d7e1(0xd9)],_0x2f9531=_0xe532e8[_0x41d7e1(0xf3)];_0x2f9531&&(_0xb8408d[_0x41d7e1(0x14a)](debug,_0x41d7e1(0x11a)+_0x2f9531[_0x41d7e1(0x12a)]()),_0x5863eb[_0x41d7e1(0x145)][_0x41d7e1(0x103)]=_0x2f9531[_0x41d7e1(0x127)],_0x5863eb['currentSessionDetails'][_0x41d7e1(0x19e)]=_0x2f9531['platformVersion']),_0x2e82b7&&(_0xb8408d[_0x41d7e1(0x143)](debug,_0x41d7e1(0x121)+_0x2e82b7),_0x5863eb[_0x41d7e1(0x145)]['bsSessionId']=_0x2e82b7);}}}catch(_0x5530b4){_0xb8408d['NLZKq'](debug,'Error\x20in\x20finding\x20platform\x20details\x20'+_0x5530b4[_0x41d7e1(0x12a)]());}return _0x2f6382[_0x41d7e1(0x15c)](this,arguments);};}}),_0x30430c[_0x267302(0x15d)][_0x267302(0xfd)]=!![],logger[_0x267302(0x113)](_0xb8408d[_0x267302(0x138)]);}}catch(_0x2f02a1){_0xb8408d[_0x267302(0x17f)](debug,_0x267302(0x19b)+_0x2f02a1),_0x5863eb[_0x267302(0x104)]=_0x2f02a1['toString']();}}static[a68_0x1b4900(0x12b)](_0x15a06b,_0x9cbd08){const _0x5bc160=a68_0x1b4900,_0x218bd2={'EEQHy':_0x5bc160(0x183),'zrhkM':function(_0x4bf120,_0x1456b9){return _0x4bf120||_0x1456b9;},'KFVFl':function(_0x585b70,_0x58afa1){return _0x585b70===_0x58afa1;},'dkgzb':_0x5bc160(0x156),'KfgST':_0x5bc160(0x120),'hcHdK':function(_0x579ca2,_0x11afe3){return _0x579ca2(_0x11afe3);},'dxYcJ':function(_0x472292,_0x3d2bfe){return _0x472292(_0x3d2bfe);},'yzivr':function(_0x35148e,_0x3b9ec4){return _0x35148e(_0x3b9ec4);}};let _0x4666bc=null,_0x44e603=null;try{const _0x5aa233=[_0x9cbd08,global[_0x5bc160(0x184)],global['capabilties']];for(const _0x40f149 of _0x5aa233){if(_0x40f149&&(!_0x44e603||!_0x44e603[_0x5bc160(0xd9)])){const _0x204429=_0x40f149[_0x5bc160(0xd9)]||_0x40f149[_0x218bd2[_0x5bc160(0xf8)]]?.['sessionId'],_0x53c00e=_0x40f149[_0x5bc160(0xf0)]||_0x40f149['browser']||_0x40f149[_0x218bd2['EEQHy']]?.[_0x5bc160(0xf0)],_0x4b0520=_0x40f149[_0x5bc160(0xde)]||_0x40f149[_0x5bc160(0x17b)]||_0x40f149[_0x218bd2[_0x5bc160(0xf8)]]?.['browserVersion'],_0x3cfaa7=_0x40f149['os']||_0x40f149[_0x5bc160(0x103)]||_0x40f149[_0x218bd2[_0x5bc160(0xf8)]]?.['os'],_0x36d66f=_0x40f149['osVersion']||_0x40f149['os_version']||_0x40f149[_0x218bd2[_0x5bc160(0xf8)]]?.[_0x5bc160(0xe2)];if(_0x218bd2[_0x5bc160(0x179)](_0x204429,_0x53c00e)||_0x3cfaa7){const _0x366d21={};_0x366d21[_0x5bc160(0xf0)]=_0x53c00e,_0x366d21['browserVersion']=_0x4b0520,_0x366d21['os']=_0x3cfaa7,_0x366d21[_0x5bc160(0xe2)]=_0x36d66f,_0x366d21[_0x5bc160(0x127)]=_0x40f149['platformName']||_0x3cfaa7,_0x366d21[_0x5bc160(0xf9)]=_0x40f149['platformVersion']||_0x36d66f;const _0x4dd008={};_0x4dd008[_0x5bc160(0xd9)]=_0x204429,_0x4dd008[_0x5bc160(0xf3)]=_0x366d21,_0x44e603=_0x4dd008;if(_0x218bd2[_0x5bc160(0x179)](_0x204429,_0x53c00e)){logger[_0x5bc160(0x113)]('BrowserStack\x20params\x20extracted\x20from\x20capabilities:\x20browser='+_0x53c00e+',\x20os='+_0x3cfaa7);break;}}}}if(_0x15a06b&&_0x218bd2[_0x5bc160(0x16a)](typeof _0x15a06b,_0x218bd2[_0x5bc160(0x187)]))try{const _0x53e54e=url[_0x5bc160(0x170)](_0x15a06b),_0x69b070=new URLSearchParams(_0x53e54e[_0x5bc160(0x106)]),_0x4f1d83=Object[_0x5bc160(0x130)](_0x69b070[_0x5bc160(0x108)]()),_0x38d720=[_0x4f1d83['caps'],_0x4f1d83['capabilities'],_0x4f1d83['desiredCapabilities']];for(const _0x5bf5c9 of _0x38d720){if(_0x5bf5c9&&(!_0x4666bc||!_0x4666bc[_0x5bc160(0xd9)]))try{const _0x492852=JSON[_0x5bc160(0x170)](_0x5bf5c9),_0x51aa63={};_0x51aa63[_0x5bc160(0xd9)]=_0x492852[_0x5bc160(0xd9)]||_0x492852[_0x218bd2['EEQHy']]?.['sessionId'],_0x51aa63[_0x5bc160(0xf3)]={},_0x51aa63[_0x5bc160(0xf3)][_0x5bc160(0xf0)]=_0x492852[_0x5bc160(0xf0)]||_0x492852['browser'],_0x51aa63[_0x5bc160(0xf3)][_0x5bc160(0xde)]=_0x492852[_0x5bc160(0xde)]||_0x492852[_0x5bc160(0x17b)],_0x51aa63[_0x5bc160(0xf3)]['os']=_0x492852['os']||_0x492852[_0x5bc160(0x103)],_0x51aa63[_0x5bc160(0xf3)][_0x5bc160(0xe2)]=_0x492852['osVersion']||_0x492852['os_version'],_0x51aa63[_0x5bc160(0xf3)][_0x5bc160(0x127)]=_0x492852[_0x5bc160(0x127)]||_0x492852['os']||_0x492852['platform'],_0x51aa63[_0x5bc160(0xf3)]['platformVersion']=_0x492852['platformVersion']||_0x492852[_0x5bc160(0xe2)]||_0x492852['os_version'],_0x4666bc=_0x51aa63;if(_0x4666bc[_0x5bc160(0xd9)]||_0x4666bc[_0x5bc160(0xf3)]['browserName']){logger[_0x5bc160(0x113)](_0x218bd2[_0x5bc160(0x159)]);break;}}catch(_0x577f33){_0x218bd2['hcHdK'](debug,_0x5bc160(0xdd)+_0x577f33[_0x5bc160(0x12a)]());}}}catch(_0x25154d){_0x218bd2[_0x5bc160(0xe4)](debug,_0x5bc160(0xf4)+_0x25154d[_0x5bc160(0x12a)]());}}catch(_0xa8f31d){_0x218bd2[_0x5bc160(0x150)](debug,_0x5bc160(0x163)+util[_0x5bc160(0x13f)](_0xa8f31d));}const _0x43c4b9={};return _0x43c4b9['bsParams']=_0x4666bc,_0x43c4b9[_0x5bc160(0x18d)]=_0x44e603,_0x43c4b9;}static async[a68_0x1b4900(0x116)](_0x2d5d3c,_0x34ddc9){const _0x2c1faa=a68_0x1b4900,_0x54d2a9={'hzJPy':function(_0x19e827,_0x57b346){return _0x19e827||_0x57b346;},'Xsgnd':_0x2c1faa(0xfb),'pshfN':function(_0x2b0ffc,_0x358840){return _0x2b0ffc||_0x358840;},'XMLiv':function(_0x44e5dc,_0x3b002d){return _0x44e5dc(_0x3b002d);}};try{if(!BrowserstackCLI[_0x2c1faa(0x10f)]()['isRunning']())return;if(_0x54d2a9[_0x2c1faa(0x177)](_0x2d5d3c,_0x34ddc9)){logger[_0x2c1faa(0x113)](_0x54d2a9[_0x2c1faa(0xd2)]);const _0x177977={'params':_0x2d5d3c?{'bsParams':_0x2d5d3c}:null,'bStackParams':_0x54d2a9[_0x2c1faa(0x175)](_0x34ddc9,null)},_0x4caaaf=AutomationFramework['getTrackedInstance'](),_0x22c712={};_0x22c712[_0x2c1faa(0xd6)]=_0x177977,_0x22c712[_0x2c1faa(0x190)]=_0x4caaaf,await BrowserstackCLI[_0x2c1faa(0x10f)]()[_0x2c1faa(0x11f)]()[_0x2c1faa(0xca)](AutomationFrameworkState[_0x2c1faa(0xfa)],HookState['POST'],_0x22c712);}}catch(_0x3c0a43){_0x54d2a9[_0x2c1faa(0x18b)](debug,_0x2c1faa(0x188)+util[_0x2c1faa(0x13f)](_0x3c0a43));}}static[a68_0x1b4900(0x181)](){return this['currentSessionDetails'];}}module[a68_0x1b4900(0x135)]=SharedPlaywrightSessionDetails;
@@ -1 +1 @@
1
- const a69_0x435a1d=a69_0x52e7;function a69_0x52e7(_0x15d7ec,_0x242a6f){const _0x4a34dc=a69_0x4a34();return a69_0x52e7=function(_0x52e763,_0x4e305c){_0x52e763=_0x52e763-0x7d;let _0x34ac66=_0x4a34dc[_0x52e763];return _0x34ac66;},a69_0x52e7(_0x15d7ec,_0x242a6f);}(function(_0x1038dd,_0x122135){const _0x447701=a69_0x52e7,_0x350d15=_0x1038dd();while(!![]){try{const _0x8dd5f=parseInt(_0x447701(0x89))/0x1+parseInt(_0x447701(0x82))/0x2*(-parseInt(_0x447701(0x84))/0x3)+parseInt(_0x447701(0x7e))/0x4+-parseInt(_0x447701(0x8f))/0x5*(-parseInt(_0x447701(0x7d))/0x6)+-parseInt(_0x447701(0x90))/0x7*(parseInt(_0x447701(0x91))/0x8)+parseInt(_0x447701(0x80))/0x9*(parseInt(_0x447701(0x8c))/0xa)+parseInt(_0x447701(0x81))/0xb*(-parseInt(_0x447701(0x93))/0xc);if(_0x8dd5f===_0x122135)break;else _0x350d15['push'](_0x350d15['shift']());}catch(_0xdfcdaa){_0x350d15['push'](_0x350d15['shift']());}}}(a69_0x4a34,0x97949));const isHash=_0x3d6134=>Boolean(_0x3d6134&&typeof _0x3d6134===a69_0x435a1d(0x83)&&!Array[a69_0x435a1d(0x8e)](_0x3d6134)),nestedKeyValue=(_0x15d5cc,_0x1e4d5b)=>{const _0x2dc384=a69_0x435a1d,_0x3b5820={'pfUxP':function(_0xb8c007,_0x311560){return _0xb8c007===_0x311560;},'rAXOq':function(_0x4eeba9,_0x11fb29){return _0x4eeba9===_0x11fb29;},'DRNjd':_0x2dc384(0x8a),'PQEBo':function(_0x1e1f12,_0x4d8548){return _0x1e1f12(_0x4d8548);}};return _0x1e4d5b['reduce']((_0x1d6849,_0x2ad8a0)=>{const _0x4edcb0=_0x2dc384;if(_0x3b5820[_0x4edcb0(0x88)](_0x1d6849,undefined)||_0x3b5820[_0x4edcb0(0x85)](_0x1d6849,null))return undefined;if(_0x1d6849&&_0x3b5820[_0x4edcb0(0x88)](typeof _0x1d6849[_0x4edcb0(0x8d)],_0x3b5820[_0x4edcb0(0x86)]))return _0x1d6849[_0x4edcb0(0x8d)](_0x2ad8a0);if(_0x3b5820[_0x4edcb0(0x87)](isHash,_0x1d6849))return _0x1d6849[_0x2ad8a0];return undefined;},_0x15d5cc);},a69_0x70474d={};a69_0x70474d[a69_0x435a1d(0x92)]=isHash,a69_0x70474d[a69_0x435a1d(0x8b)]=nestedKeyValue,module[a69_0x435a1d(0x7f)]=a69_0x70474d;function a69_0x4a34(){const _0x203936=['1611tRZUMZ','60104bJMDgx','4Iscjdg','object','689772fFHlTS','rAXOq','DRNjd','PQEBo','pfUxP','735570sapJYh','function','nestedKeyValue','25750ctyeiV','get','isArray','65CfRbBH','10493UazQsu','1848nAnWVb','isHash','2568SMCEQM','269502JtLEbs','3263480CRMTxS','exports'];a69_0x4a34=function(){return _0x203936;};return a69_0x4a34();}
1
+ function a69_0x4aa8(_0x2c657d,_0x5a3a71){const _0x298d71=a69_0x298d();return a69_0x4aa8=function(_0x4aa844,_0xdb8bad){_0x4aa844=_0x4aa844-0x1d5;let _0x3a9fdc=_0x298d71[_0x4aa844];return _0x3a9fdc;},a69_0x4aa8(_0x2c657d,_0x5a3a71);}const a69_0x34c53a=a69_0x4aa8;function a69_0x298d(){const _0x4a1090=['XHetq','2107640YgQhYk','xybls','wLuyQ','get','2453118mkkhIr','exports','823610ZiwolX','jjFbI','7dhlGHl','tFGkA','nestedKeyValue','1085140PeGSjF','993984aWJCWg','401118KnRkEJ','reduce','218724DoOiqL'];a69_0x298d=function(){return _0x4a1090;};return a69_0x298d();}(function(_0x5715dc,_0x454b71){const _0x93555c=a69_0x4aa8,_0x2c1276=_0x5715dc();while(!![]){try{const _0x27d132=-parseInt(_0x93555c(0x1e5))/0x1+parseInt(_0x93555c(0x1dc))/0x2+-parseInt(_0x93555c(0x1e3))/0x3+parseInt(_0x93555c(0x1e1))/0x4+parseInt(_0x93555c(0x1d6))/0x5+parseInt(_0x93555c(0x1da))/0x6*(-parseInt(_0x93555c(0x1de))/0x7)+-parseInt(_0x93555c(0x1e2))/0x8;if(_0x27d132===_0x454b71)break;else _0x2c1276['push'](_0x2c1276['shift']());}catch(_0x41bb58){_0x2c1276['push'](_0x2c1276['shift']());}}}(a69_0x298d,0x357cf));const isHash=_0x1afad4=>Boolean(_0x1afad4&&typeof _0x1afad4==='object'&&!Array['isArray'](_0x1afad4)),nestedKeyValue=(_0x106f7c,_0x541314)=>{const _0x2d0438=a69_0x4aa8,_0x3e5a23={'xybls':function(_0x126513,_0x448197){return _0x126513===_0x448197;},'tFGkA':function(_0x274f64,_0x270210){return _0x274f64===_0x270210;},'XHetq':function(_0x13888c,_0x56eb01){return _0x13888c===_0x56eb01;},'jjFbI':'function','wLuyQ':function(_0x16b91c,_0x4edcb4){return _0x16b91c(_0x4edcb4);}};return _0x541314[_0x2d0438(0x1e4)]((_0x3b29ab,_0x55d7a9)=>{const _0x330fc6=_0x2d0438;if(_0x3e5a23[_0x330fc6(0x1d7)](_0x3b29ab,undefined)||_0x3e5a23[_0x330fc6(0x1df)](_0x3b29ab,null))return undefined;if(_0x3b29ab&&_0x3e5a23[_0x330fc6(0x1d5)](typeof _0x3b29ab[_0x330fc6(0x1d9)],_0x3e5a23[_0x330fc6(0x1dd)]))return _0x3b29ab[_0x330fc6(0x1d9)](_0x55d7a9);if(_0x3e5a23[_0x330fc6(0x1d8)](isHash,_0x3b29ab))return _0x3b29ab[_0x55d7a9];return undefined;},_0x106f7c);},a69_0x37d7b0={};a69_0x37d7b0['isHash']=isHash,a69_0x37d7b0[a69_0x34c53a(0x1e0)]=nestedKeyValue,module[a69_0x34c53a(0x1db)]=a69_0x37d7b0;
@@ -1 +1 @@
1
- const a70_0x5ed6f8=a70_0x1a09;function a70_0x1a09(_0x139c6b,_0x2a3a93){const _0x436484=a70_0x4364();return a70_0x1a09=function(_0x1a091,_0x54dae4){_0x1a091=_0x1a091-0x15b;let _0xb25eaf=_0x436484[_0x1a091];return _0xb25eaf;},a70_0x1a09(_0x139c6b,_0x2a3a93);}(function(_0x21b319,_0x491147){const _0x152a0b=a70_0x1a09,_0x4798df=_0x21b319();while(!![]){try{const _0x3daa27=-parseInt(_0x152a0b(0x15f))/0x1+-parseInt(_0x152a0b(0x18c))/0x2+parseInt(_0x152a0b(0x1b6))/0x3+-parseInt(_0x152a0b(0x1e2))/0x4+parseInt(_0x152a0b(0x18b))/0x5+parseInt(_0x152a0b(0x1df))/0x6*(parseInt(_0x152a0b(0x166))/0x7)+-parseInt(_0x152a0b(0x18e))/0x8*(parseInt(_0x152a0b(0x174))/0x9);if(_0x3daa27===_0x491147)break;else _0x4798df['push'](_0x4798df['shift']());}catch(_0x554430){_0x4798df['push'](_0x4798df['shift']());}}}(a70_0x4364,0xc9f98));function a70_0x4364(){const _0x51933a=['appendToTracePaths','JZvSk','Error\x20reading\x20trace\x20file\x20paths:\x20%O','9XYqEMW','mkdirSync','../../helpers/logger','string','.\x20Unable\x20to\x20set\x20test\x20details.','object','hIvHv','HWTHd','.\x20Unable\x20to\x20retrieve\x20log\x20objects.','[setTestDetails]\x20processId:\x20','Setting\x20up\x20TestInfo\x20directory\x20at\x20','_traceZipPaths.json','XFIJn','BS_TESTOPS_BUILD_HASHED_ID','getStoreDirPath','jyfNo','readLogObjects','setup','Failed\x20to\x20acquire\x20lock\x20for\x20','VJhht','HhZGN','Error\x20writing\x20test\x20details\x20to\x20file\x20for\x20','split','4514235BGPxdm','1888120sgIzZf','util','2052072NmrTUn','testId','existsSync','CtHDb','NLnUI','join','readFileSync','Error\x20while\x20getting\x20test\x20UUID\x20for\x20','forEach','env','BWBnz','\x20Retrieving\x20logs\x20for\x20','OMfXn','mytJR','readdirSync','.txt','.\x20Unable\x20to\x20add\x20console\x20log.','EjmQT','\x20with\x20details:\x20','../../helpers/helper','traceZipPaths','tests','qeEvX','utf8','readLogObjects:\x20No\x20logObjects\x20object\x20found\x20for\x20testId:\x20','getTestRunIdFromTestInfo','traceZipDir','_test','nUcED','shutdown','dirPath','writeFileSync','info','DQQXd','default','format','Xrpfl','../../helpers/classLogger.js','tNnNF','some','3445818qNXsrt','getTestUUID','stringify','UnGvD','homedir','_projectId','.\x20Returning\x20empty\x20test\x20details.','logObjects','getFilePath','getStoreDirName','push','UeaSe','FXzSP','getAccessibilityPlatformValidation','EqFwx','isArray','rmSync','_platformDetails.json','yiwzl','oKXXt','appendFileSync','getProjectIdFromTestInfo','retry','readLogObjects:\x20Retrieved\x20','acCPW','\x20log\x20objects\x20for\x20testId:\x20','readLogObjects:\x20processId:\x20','trace_','filePath','setAccessibilityPlatformValidation','nkJJC','error','jtRGO','debug','getTraceZipDir','VDZsO','GsLEc','../../helpers/test-observability/constants','KvOWn','resolve','dirname','6WrGAHw','proper-lockfile','hNGEh','5158824hiPzDl','TestInfo','pid','setTestDetails','readLogObjects:\x20No\x20log\x20objects\x20found\x20for\x20testId:\x20','uuid','lRBHm','parse','toString','213548PmyDbI','getTestIdFromTestInfo','WxgCZ','length','LbUcc','wyXyG','__projectId','10357606vqvhBN','addTraceFilePath','message','5|1|2|6|4|3|0','lockSync','project','storeLogObjects','getTestIdentifierFromTestInfo','recursive','endsWith','\x20Adding\x20console\x20log\x20for\x20'];a70_0x4364=function(){return _0x51933a;};return a70_0x4364();}const fs=require('fs'),path=require('path'),{TEMP_STORE_DIR_NAME}=require(a70_0x5ed6f8(0x1db)),{nestedKeyValue}=require(a70_0x5ed6f8(0x1a1)),logger=require(a70_0x5ed6f8(0x176))['winstonLogger'],util=require(a70_0x5ed6f8(0x18d)),helper=require(a70_0x5ed6f8(0x1a1)),{createClassLogger}=require(a70_0x5ed6f8(0x1b3)),lockfile=require(a70_0x5ed6f8(0x1e0)),{v4:uuidv4}=require('uuid');class TestInfo{static [a70_0x5ed6f8(0x1a3)]={};static ['dirPath']=TestInfo[a70_0x5ed6f8(0x1bf)]();static [a70_0x5ed6f8(0x1a8)]=path[a70_0x5ed6f8(0x193)](TestInfo['dirPath'],'traceZipPaths');static ['testFramework']=null;['logger']=createClassLogger(a70_0x5ed6f8(0x1e3));static[a70_0x5ed6f8(0x185)](_0x260f3f){const _0x299cab=a70_0x5ed6f8,_0x56aa2d={};_0x56aa2d[_0x299cab(0x191)]=_0x299cab(0x169),_0x56aa2d['GsLEc']=_0x299cab(0x1a2);const _0xb4de51=_0x56aa2d,_0x4ad09f=_0xb4de51[_0x299cab(0x191)][_0x299cab(0x18a)]('|');let _0x31da81=0x0;while(!![]){switch(_0x4ad09f[_0x31da81++]){case'0':logger[_0x299cab(0x1ae)](_0x299cab(0x17e)+this[_0x299cab(0x1ac)]);continue;case'1':this[_0x299cab(0x1a8)]=path['join'](this[_0x299cab(0x1ac)],_0xb4de51[_0x299cab(0x1da)]);continue;case'2':this['testFramework']=_0x260f3f;continue;case'3':const _0x3e3b0f={};_0x3e3b0f[_0x299cab(0x16e)]=!![],fs[_0x299cab(0x175)](this['traceZipDir'],_0x3e3b0f);continue;case'4':const _0x17f20a={};_0x17f20a[_0x299cab(0x16e)]=!![],fs[_0x299cab(0x175)](this[_0x299cab(0x1ac)],_0x17f20a);continue;case'5':this[_0x299cab(0x1ac)]=TestInfo[_0x299cab(0x1bf)]();continue;case'6':this[_0x299cab(0x1ab)]();continue;}break;}}static[a70_0x5ed6f8(0x1bf)](){const _0x13b0b1=a70_0x5ed6f8,_0x2c798d={};_0x2c798d[_0x13b0b1(0x198)]=function(_0x4b71a2,_0x5ed8a0){return _0x4b71a2+_0x5ed8a0;},_0x2c798d[_0x13b0b1(0x1d6)]=function(_0x7f56bc,_0x1f0d62){return _0x7f56bc+_0x1f0d62;},_0x2c798d[_0x13b0b1(0x192)]=_0x13b0b1(0x1b0);const _0x21e227=_0x2c798d;return _0x21e227[_0x13b0b1(0x198)](_0x21e227[_0x13b0b1(0x1d6)](TEMP_STORE_DIR_NAME,'-'),process[_0x13b0b1(0x197)]['BS_TESTOPS_BUILD_HASHED_ID']||_0x21e227[_0x13b0b1(0x192)]);}static['getStoreDirPath'](){const _0x16e1b9=a70_0x5ed6f8,_0x2705cf={};_0x2705cf[_0x16e1b9(0x1c2)]=function(_0x42e0e8,_0xb94f89){return _0x42e0e8+_0xb94f89;},_0x2705cf['sUlvP']='default';const _0x443f13=_0x2705cf;return path[_0x16e1b9(0x193)](_0x443f13[_0x16e1b9(0x1c2)](_0x443f13['FXzSP'](TEMP_STORE_DIR_NAME,'-'),process[_0x16e1b9(0x197)][_0x16e1b9(0x181)]||_0x443f13['sUlvP']));}static['getTraceZipDir'](){const _0x468a9a=a70_0x5ed6f8,_0x3f9056={};_0x3f9056['wyXyG']=_0x468a9a(0x1a2);const _0x366b1d=_0x3f9056;return path[_0x468a9a(0x193)](this[_0x468a9a(0x182)](),_0x366b1d[_0x468a9a(0x164)]);}static[a70_0x5ed6f8(0x1be)](_0x1c3d01){const _0x5b3f0a=a70_0x5ed6f8,_0x33c974={};_0x33c974[_0x5b3f0a(0x172)]=function(_0x37f0f8,_0x9beeb7){return _0x37f0f8+_0x9beeb7;},_0x33c974['HUAeS']='.json';const _0x2e6422=_0x33c974;return path['join'](this[_0x5b3f0a(0x1ac)],_0x2e6422['JZvSk'](_0x1c3d01,_0x2e6422['HUAeS']));}static[a70_0x5ed6f8(0x1a7)](_0x26958c){const _0x2dda97=a70_0x5ed6f8,_0x16dee8={};_0x16dee8[_0x2dda97(0x1c9)]=function(_0x5b989a,_0x1a8116){return _0x5b989a+_0x1a8116;},_0x16dee8[_0x2dda97(0x1dc)]=function(_0x1bb2f8,_0x4e84eb){return _0x1bb2f8+_0x4e84eb;},_0x16dee8['WxgCZ']=function(_0xc019ab,_0x47878a){return _0xc019ab+_0x47878a;};const _0xcb1299=_0x16dee8;return _0xcb1299[_0x2dda97(0x1c9)](_0xcb1299['KvOWn'](_0xcb1299[_0x2dda97(0x161)](_0xcb1299[_0x2dda97(0x1c9)](this['getProjectIdFromTestInfo'](_0x26958c),'-'),this[_0x2dda97(0x160)](_0x26958c)),'-'),_0x26958c[_0x2dda97(0x1cc)]);}static[a70_0x5ed6f8(0x1cb)](_0x53ee71){const _0x23b62a=a70_0x5ed6f8,_0x4c188a={'VDZsO':function(_0x426f60,_0x1bfc80,_0x2853cb){return _0x426f60(_0x1bfc80,_0x2853cb);},'yiwzl':_0x23b62a(0x1a9),'rflOc':_0x23b62a(0x1bb),'lRBHm':function(_0x459a4d,_0x221c55,_0x9a9f8a){return _0x459a4d(_0x221c55,_0x9a9f8a);},'Xrpfl':_0x23b62a(0x16b),'nUcED':_0x23b62a(0x165)};return _0x4c188a[_0x23b62a(0x1d9)](nestedKeyValue,_0x53ee71,[_0x4c188a[_0x23b62a(0x1c8)],_0x4c188a['rflOc']])||_0x4c188a[_0x23b62a(0x15c)](nestedKeyValue,_0x53ee71,[_0x4c188a[_0x23b62a(0x1b2)],_0x4c188a[_0x23b62a(0x1aa)]]);}static[a70_0x5ed6f8(0x160)](_0x37745b){const _0x3abb0a=a70_0x5ed6f8,_0xebc038={'DQQXd':function(_0x131448,_0x35ab29,_0x2dea0d){return _0x131448(_0x35ab29,_0x2dea0d);},'XFIJn':_0x3abb0a(0x1a9)};return _0xebc038[_0x3abb0a(0x1af)](nestedKeyValue,_0x37745b,[_0xebc038[_0x3abb0a(0x180)],'id'])||_0x37745b[_0x3abb0a(0x18f)];}static[a70_0x5ed6f8(0x16d)](_0xb2f5c9,_0x5da6cf){const _0x1ade93=a70_0x5ed6f8,_0x3ab037={};_0x3ab037[_0x1ade93(0x187)]=function(_0x33b19a,_0x20f030){return _0x33b19a+_0x20f030;},_0x3ab037[_0x1ade93(0x17a)]=function(_0x4d97da,_0x2456c6){return _0x4d97da+_0x2456c6;};const _0x2e189c=_0x3ab037;return _0x2e189c['VJhht'](_0x2e189c['hIvHv'](this['getTestIdFromTestInfo'](_0xb2f5c9),'-'),_0x5da6cf);}static[a70_0x5ed6f8(0x1b7)](_0x5f546e){const _0x3a3238=a70_0x5ed6f8,_0x3b3dd0={'EqFwx':function(_0x296658,_0x60adf4){return _0x296658===_0x60adf4;},'HhZGN':_0x3a3238(0x177),'EjmQT':function(_0x54c1c4){return _0x54c1c4();}};try{if(this['tests'][_0x5f546e]&&_0x3b3dd0[_0x3a3238(0x1c4)](typeof this[_0x3a3238(0x1a3)][_0x5f546e][_0x3a3238(0x15b)],_0x3b3dd0[_0x3a3238(0x188)]))return this[_0x3a3238(0x1a3)][_0x5f546e][_0x3a3238(0x15b)];const _0x288a41=this[_0x3a3238(0x1be)](_0x5f546e),_0x3929c3=path[_0x3a3238(0x1dd)](_0x288a41);if(fs['existsSync'](_0x3929c3)){const _0x595cd7=JSON[_0x3a3238(0x15d)](fs['readFileSync'](_0x288a41)[_0x3a3238(0x15e)]());return this['tests'][_0x5f546e]=_0x595cd7,this[_0x3a3238(0x1a3)][_0x5f546e][_0x3a3238(0x15b)];}this['tests'][_0x5f546e]={'uuid':_0x3b3dd0[_0x3a3238(0x19f)](uuidv4)};try{fs[_0x3a3238(0x1ad)](_0x288a41,JSON[_0x3a3238(0x1b8)](this[_0x3a3238(0x1a3)][_0x5f546e]));}catch(_0x5e699c){logger[_0x3a3238(0x1d5)](_0x3a3238(0x189)+_0x5f546e+':\x20'+_0x5e699c[_0x3a3238(0x168)]);}return this[_0x3a3238(0x1a3)][_0x5f546e][_0x3a3238(0x15b)];}catch(_0x595abe){return logger['error'](_0x3a3238(0x195)+_0x5f546e+':\x20'+_0x595abe['message']),null;}}static[a70_0x5ed6f8(0x1c3)](_0x22ffc7){const _0x2915bf=a70_0x5ed6f8,_0x3e378b=path[_0x2915bf(0x193)](this[_0x2915bf(0x1ac)],_0x22ffc7+_0x2915bf(0x1c7));if(fs[_0x2915bf(0x190)](_0x3e378b))return fs[_0x2915bf(0x194)](_0x3e378b)[_0x2915bf(0x15e)]();}static[a70_0x5ed6f8(0x1d3)](_0x538854,_0x2393ca){const _0x4c36ec=a70_0x5ed6f8,_0x18c1ae=path[_0x4c36ec(0x193)](this[_0x4c36ec(0x1ac)],_0x2393ca+_0x4c36ec(0x1c7));fs[_0x4c36ec(0x1ad)](_0x18c1ae,_0x538854['toString']());}static[a70_0x5ed6f8(0x1ab)](){const _0x264304=a70_0x5ed6f8,_0x5f019b={};_0x5f019b[_0x264304(0x16e)]=!![],_0x5f019b['force']=!![],fs[_0x264304(0x1c6)](this[_0x264304(0x1ac)],_0x5f019b);}static['getTestDetails'](_0x480e12){const _0x120fd5=a70_0x5ed6f8,_0x141740=this['getFilePath'](_0x480e12);if(fs[_0x120fd5(0x190)](_0x141740))try{const _0x9f9bbf=JSON[_0x120fd5(0x15d)](fs[_0x120fd5(0x194)](_0x141740)['toString']());return this[_0x120fd5(0x1a3)][_0x480e12]=_0x9f9bbf,_0x9f9bbf;}catch(_0x304731){return logger[_0x120fd5(0x1d7)](_0x120fd5(0x186)+_0x141740+':\x20'+util['format'](_0x304731)+_0x120fd5(0x1bc)),{};}return{};}static[a70_0x5ed6f8(0x1e5)](_0x1d20e5,_0x5cc384,_0xede797=![]){const _0x4a3f01=a70_0x5ed6f8,_0x3aea0f={'jyfNo':function(_0x53651f){return _0x53651f();}};logger[_0x4a3f01(0x1d7)](_0x4a3f01(0x17d)+process['pid']+'\x20Setting\x20test\x20details\x20for\x20'+_0x1d20e5+_0x4a3f01(0x1a0)+JSON[_0x4a3f01(0x1b8)](_0x5cc384));const _0x45f877=this[_0x4a3f01(0x1be)](_0x1d20e5);if(fs[_0x4a3f01(0x190)](_0x45f877))try{const _0x5528dd=lockfile[_0x4a3f01(0x16a)](_0x45f877),_0x1d3f81=JSON['parse'](fs[_0x4a3f01(0x194)](_0x45f877)[_0x4a3f01(0x15e)]());if(_0xede797)this['tests'][_0x1d20e5]=helper['mergeDeep'](_0x1d3f81,_0x5cc384);else{const _0x5908aa={..._0x1d3f81,..._0x5cc384};this['tests'][_0x1d20e5]=_0x5908aa;}fs[_0x4a3f01(0x1ad)](_0x45f877,JSON[_0x4a3f01(0x1b8)](this['tests'][_0x1d20e5])),_0x3aea0f[_0x4a3f01(0x183)](_0x5528dd);}catch(_0x3780c7){logger[_0x4a3f01(0x1d7)](_0x4a3f01(0x186)+_0x45f877+':\x20'+util[_0x4a3f01(0x1b1)](_0x3780c7)+_0x4a3f01(0x178));}}static[a70_0x5ed6f8(0x16c)](_0x457f2b,_0x2041fb){const _0x92a598=a70_0x5ed6f8,_0x494708={'UeaSe':function(_0x5f3ae4,_0x5a776c){return _0x5f3ae4!==_0x5a776c;},'mytJR':_0x92a598(0x179),'vCfNi':function(_0x1f11c8){return _0x1f11c8();}};logger[_0x92a598(0x1d7)]('storeLogObjects:\x20processId:\x20'+process[_0x92a598(0x1e4)]+_0x92a598(0x170)+_0x457f2b+'}');const _0x861582=this['getFilePath'](_0x457f2b);try{let _0x14417d={};if(fs[_0x92a598(0x190)](_0x861582)){const _0x134dfd=lockfile['lockSync'](_0x861582);_0x14417d=JSON['parse'](fs[_0x92a598(0x194)](_0x861582)[_0x92a598(0x15e)]()),(!_0x14417d['logObjects']||_0x494708[_0x92a598(0x1c1)](typeof _0x14417d[_0x92a598(0x1bd)],_0x494708[_0x92a598(0x19b)]))&&(_0x14417d[_0x92a598(0x1bd)]={}),(!_0x14417d[_0x92a598(0x1bd)][_0x457f2b]||!Array['isArray'](_0x14417d[_0x92a598(0x1bd)][_0x457f2b]))&&(_0x14417d[_0x92a598(0x1bd)][_0x457f2b]=[]),_0x14417d[_0x92a598(0x1bd)][_0x457f2b][_0x92a598(0x1c0)](_0x2041fb),this[_0x92a598(0x1a3)][_0x457f2b]=_0x14417d,fs[_0x92a598(0x1ad)](_0x861582,JSON[_0x92a598(0x1b8)](this[_0x92a598(0x1a3)][_0x457f2b])),_0x494708['vCfNi'](_0x134dfd);}else{const _0x4a54b2={};_0x4a54b2[_0x92a598(0x15b)]=_0x457f2b,_0x4a54b2[_0x92a598(0x1bd)]={},_0x4a54b2[_0x92a598(0x1bd)][_0x457f2b]=[_0x2041fb],_0x14417d=_0x4a54b2,this[_0x92a598(0x1a3)][_0x457f2b]=_0x14417d,fs['writeFileSync'](_0x861582,JSON[_0x92a598(0x1b8)](this[_0x92a598(0x1a3)][_0x457f2b]));}}catch(_0x36bf75){logger[_0x92a598(0x1d7)](_0x92a598(0x186)+_0x861582+':\x20'+util[_0x92a598(0x1b1)](_0x36bf75)+_0x92a598(0x19e));}}static[a70_0x5ed6f8(0x184)](_0x5273bf){const _0x3e1cb5=a70_0x5ed6f8,_0xc2324f={'Izlvw':function(_0x309e18,_0x5c2739){return _0x309e18!==_0x5c2739;},'UnGvD':_0x3e1cb5(0x179),'nkJJC':function(_0x13ffea){return _0x13ffea();},'hNGEh':function(_0x246d75,_0xf59d7){return _0x246d75===_0xf59d7;},'LbUcc':function(_0x200deb){return _0x200deb();},'gTYkh':function(_0xe9ffa5){return _0xe9ffa5();}};logger[_0x3e1cb5(0x1d7)](_0x3e1cb5(0x1d0)+process[_0x3e1cb5(0x1e4)]+_0x3e1cb5(0x199)+_0x5273bf);const _0x1eb255=this[_0x3e1cb5(0x1be)](_0x5273bf);try{if(!fs['existsSync'](_0x1eb255))return logger[_0x3e1cb5(0x1d7)]('readLogObjects:\x20No\x20file\x20found\x20for\x20testId:\x20'+_0x5273bf),[];const _0x125f53=lockfile['lockSync'](_0x1eb255),_0x3d8c82=JSON[_0x3e1cb5(0x15d)](fs['readFileSync'](_0x1eb255)['toString']());if(!_0x3d8c82[_0x3e1cb5(0x1bd)]||_0xc2324f['Izlvw'](typeof _0x3d8c82['logObjects'],_0xc2324f[_0x3e1cb5(0x1b9)]))return logger[_0x3e1cb5(0x1d7)](_0x3e1cb5(0x1a6)+_0x5273bf),_0xc2324f[_0x3e1cb5(0x1d4)](_0x125f53),[];if(!_0x3d8c82[_0x3e1cb5(0x1bd)][_0x5273bf]||!Array[_0x3e1cb5(0x1c5)](_0x3d8c82[_0x3e1cb5(0x1bd)][_0x5273bf])||_0xc2324f[_0x3e1cb5(0x1e1)](_0x3d8c82[_0x3e1cb5(0x1bd)][_0x5273bf]['length'],0x0))return logger[_0x3e1cb5(0x1d7)](_0x3e1cb5(0x1e6)+_0x5273bf),_0xc2324f[_0x3e1cb5(0x163)](_0x125f53),[];const _0x58eb8c=[..._0x3d8c82[_0x3e1cb5(0x1bd)][_0x5273bf]];return logger[_0x3e1cb5(0x1d7)](_0x3e1cb5(0x1cd)+_0x58eb8c[_0x3e1cb5(0x162)]+_0x3e1cb5(0x1cf)+_0x5273bf),_0x3d8c82[_0x3e1cb5(0x1bd)][_0x5273bf]=[],this[_0x3e1cb5(0x1a3)][_0x5273bf]=_0x3d8c82,fs[_0x3e1cb5(0x1ad)](_0x1eb255,JSON[_0x3e1cb5(0x1b8)](this[_0x3e1cb5(0x1a3)][_0x5273bf])),_0xc2324f['gTYkh'](_0x125f53),_0x58eb8c;}catch(_0x40b5da){return logger[_0x3e1cb5(0x1d7)](_0x3e1cb5(0x186)+_0x1eb255+':\x20'+util[_0x3e1cb5(0x1b1)](_0x40b5da)+_0x3e1cb5(0x17c)),[];}}static[a70_0x5ed6f8(0x167)](_0x1e9cc3){const _0x39b88a=a70_0x5ed6f8,_0x51e75a={};_0x51e75a[_0x39b88a(0x1b4)]='Error\x20handling\x20trace\x20file\x20paths:\x20%O';const _0x4de399=_0x51e75a;try{const _0x3e15e3=process[_0x39b88a(0x1e4)],_0x43caaa=path[_0x39b88a(0x193)](TestInfo[_0x39b88a(0x1d8)](),_0x3e15e3+_0x39b88a(0x17f));let _0x41b96a=[];fs[_0x39b88a(0x190)](_0x43caaa)&&(_0x41b96a=JSON['parse'](fs[_0x39b88a(0x194)](_0x43caaa)[_0x39b88a(0x15e)]()));if(!_0x41b96a[_0x39b88a(0x1b5)](_0x4c5d2c=>_0x4c5d2c[_0x39b88a(0x1d2)]===_0x1e9cc3[_0x39b88a(0x1d2)])){_0x41b96a['push'](_0x1e9cc3);const _0x137b7c=path[_0x39b88a(0x1de)](_0x43caaa);if(!fs[_0x39b88a(0x190)](_0x137b7c)){const _0x2e3005={};_0x2e3005[_0x39b88a(0x16e)]=!![],fs[_0x39b88a(0x175)](_0x137b7c,_0x2e3005);}fs[_0x39b88a(0x1ad)](_0x43caaa,JSON[_0x39b88a(0x1b8)](_0x41b96a));}}catch(_0x2e04a8){logger[_0x39b88a(0x1d5)](util[_0x39b88a(0x1b1)](_0x4de399[_0x39b88a(0x1b4)],_0x2e04a8));}}static['getTraceFilePaths'](){const _0x2c7810=a70_0x5ed6f8,_0x3e86aa={};_0x3e86aa[_0x2c7810(0x1a4)]=_0x2c7810(0x17f),_0x3e86aa[_0x2c7810(0x17b)]=_0x2c7810(0x173);const _0x8302fc=_0x3e86aa,_0x2cada7=[];try{const _0x173821=TestInfo[_0x2c7810(0x1d8)]();if(!fs[_0x2c7810(0x190)](_0x173821))return _0x2cada7;const _0x14007c=fs[_0x2c7810(0x19c)](_0x173821);_0x14007c[_0x2c7810(0x196)](_0xa7e771=>{const _0x3794fd=_0x2c7810;if(_0xa7e771[_0x3794fd(0x16f)](_0x8302fc[_0x3794fd(0x1a4)])){const _0x5f32be=JSON['parse'](fs[_0x3794fd(0x194)](path['join'](_0x173821,_0xa7e771))[_0x3794fd(0x15e)]());_0x2cada7['push'](..._0x5f32be);}});}catch(_0x36cd04){logger['error'](util[_0x2c7810(0x1b1)](_0x8302fc[_0x2c7810(0x17b)],_0x36cd04));}const _0x15cdc1={};return _0x2cada7[_0x2c7810(0x196)](_0x517b86=>{const _0x10117a=_0x2c7810;_0x15cdc1[_0x517b86[_0x10117a(0x1d2)]]=_0x517b86;}),Object['values'](_0x15cdc1);}static[a70_0x5ed6f8(0x171)](_0x5defb4,_0x4d29ef){const _0x9fe587=a70_0x5ed6f8,_0x7b9818={};_0x7b9818['kQRIZ']='.browserstack',_0x7b9818[_0x9fe587(0x19a)]=_0x9fe587(0x1a5),_0x7b9818['acCPW']='Error\x20writing\x20trace\x20file:\x20%O';const _0x559c04=_0x7b9818;try{const _0x422aaa=path['join'](helper[_0x9fe587(0x1ba)](),_0x559c04['kQRIZ']);if(!fs[_0x9fe587(0x190)](_0x422aaa)){const _0x278c2b={};_0x278c2b[_0x9fe587(0x16e)]=!![],fs['mkdirSync'](_0x422aaa,_0x278c2b);}fs[_0x9fe587(0x1ca)](path[_0x9fe587(0x193)](_0x422aaa,_0x9fe587(0x1d1)+_0x4d29ef+_0x9fe587(0x19d)),_0x5defb4+'\x0a',_0x559c04[_0x9fe587(0x19a)]);}catch(_0x2fe02d){logger[_0x9fe587(0x1d5)](util[_0x9fe587(0x1b1)](_0x559c04[_0x9fe587(0x1ce)],_0x2fe02d));}}}module['exports']=TestInfo;
1
+ const a70_0x5b4609=a70_0x5d67;(function(_0x112735,_0x5d33e0){const _0x12df3f=a70_0x5d67,_0x5ebbaa=_0x112735();while(!![]){try{const _0x505ef1=parseInt(_0x12df3f(0xd8))/0x1+parseInt(_0x12df3f(0x98))/0x2*(parseInt(_0x12df3f(0xab))/0x3)+parseInt(_0x12df3f(0x106))/0x4+-parseInt(_0x12df3f(0xb8))/0x5*(-parseInt(_0x12df3f(0xf2))/0x6)+-parseInt(_0x12df3f(0xf4))/0x7+-parseInt(_0x12df3f(0xee))/0x8+-parseInt(_0x12df3f(0x10d))/0x9*(parseInt(_0x12df3f(0xf8))/0xa);if(_0x505ef1===_0x5d33e0)break;else _0x5ebbaa['push'](_0x5ebbaa['shift']());}catch(_0x2dde45){_0x5ebbaa['push'](_0x5ebbaa['shift']());}}}(a70_0x46de,0x632f1));function a70_0x46de(){const _0x2b1d24=['CRxrl','2795408zzYSik','trace_','.browserstack','readLogObjects','jIOgQ','readFileSync','appendToTracePaths','79443nofPwg','lockSync','TestInfo','getStoreDirName','rfoPt','util','_test','Failed\x20to\x20acquire\x20lock\x20for\x20','logger','getFilePath','dirname','force','ISMaI','getAccessibilityPlatformValidation','exports','traceZipDir','.\x20Unable\x20to\x20set\x20test\x20details.','shutdown','[setTestDetails]\x20processId:\x20','cmYiE','retry','values','readLogObjects:\x20Retrieved\x20','Oxkpg','error','.\x20Returning\x20empty\x20test\x20details.','2gAKZVN','logObjects','gHAbE','debug','join','env','dirPath','forEach','NgFWZ','storeLogObjects','readLogObjects:\x20No\x20file\x20found\x20for\x20testId:\x20','setAccessibilityPlatformValidation','readdirSync','mTrsf','FayYX','tests','toString','Error\x20writing\x20test\x20details\x20to\x20file\x20for\x20','QiJSG','1853151xiwwMj','filePath','readLogObjects:\x20No\x20logObjects\x20object\x20found\x20for\x20testId:\x20','.json','getStoreDirPath','EorDX','length','\x20Setting\x20test\x20details\x20for\x20','getTestIdFromTestInfo','QAgQY','storeLogObjects:\x20processId:\x20','_platformDetails.json','Error\x20reading\x20trace\x20file\x20paths:\x20%O','758590BOfbHE','message','push','AZuhU','../../helpers/logger','pid','Error\x20writing\x20trace\x20file:\x20%O','GwuRo','LLyhy','Error\x20handling\x20trace\x20file\x20paths:\x20%O','testFramework','Error\x20while\x20getting\x20test\x20UUID\x20for\x20','proper-lockfile','uuid','endsWith','split','nOVAD','stringify','traceZipPaths','BS_TESTOPS_BUILD_HASHED_ID','DEsGa','appendFileSync','recursive','fLGng','ApDXP','format','existsSync','eYTTu','JzTlI','asNHl','getProjectIdFromTestInfo','../../helpers/helper','512299DlyFno','KHdzw','testId','zVGvi','dJecU','default','\x20Adding\x20console\x20log\x20for\x20','THJrZ','getTestUUID','parse','getTestDetails','getTestIdentifierFromTestInfo','_projectId','__projectId','\x20with\x20details:\x20','.\x20Unable\x20to\x20retrieve\x20log\x20objects.','rmSync','isArray','Dwkfu','\x20Retrieving\x20logs\x20for\x20','some','writeFileSync','3803912eTCrrw','.\x20Unable\x20to\x20add\x20console\x20log.','LIvmf','setup','6aGHage','UqehE','1265824gLKLlD','_traceZipPaths.json','QzRlK','addTraceFilePath','1040CwvNKM','path','KKIBh','FjAVH','Setting\x20up\x20TestInfo\x20directory\x20at\x20','object','mkdirSync','wLtpo','2|4|1|0|3|6|5','readLogObjects:\x20processId:\x20','setTestDetails','MItdD','project'];a70_0x46de=function(){return _0x2b1d24;};return a70_0x46de();}function a70_0x5d67(_0x3df839,_0x5d85f0){const _0x46de83=a70_0x46de();return a70_0x5d67=function(_0x5d67da,_0x1c407b){_0x5d67da=_0x5d67da-0x87;let _0xf38ff0=_0x46de83[_0x5d67da];return _0xf38ff0;},a70_0x5d67(_0x3df839,_0x5d85f0);}const fs=require('fs'),path=require(a70_0x5b4609(0xf9)),{TEMP_STORE_DIR_NAME}=require('../../helpers/test-observability/constants'),{nestedKeyValue}=require(a70_0x5b4609(0xd7)),logger=require(a70_0x5b4609(0xbc))['winstonLogger'],util=require(a70_0x5b4609(0x112)),helper=require(a70_0x5b4609(0xd7)),{createClassLogger}=require('../../helpers/classLogger.js'),lockfile=require(a70_0x5b4609(0xc4)),{v4:uuidv4}=require(a70_0x5b4609(0xc5));class TestInfo{static [a70_0x5b4609(0xa7)]={};static [a70_0x5b4609(0x9e)]=TestInfo[a70_0x5b4609(0x110)]();static [a70_0x5b4609(0x8d)]=path[a70_0x5b4609(0x9c)](TestInfo[a70_0x5b4609(0x9e)],a70_0x5b4609(0xca));static [a70_0x5b4609(0xc2)]=null;[a70_0x5b4609(0x115)]=createClassLogger(a70_0x5b4609(0x10f));static[a70_0x5b4609(0xf1)](_0x443ce6){const _0x2c836b=a70_0x5b4609,_0x5cb701={};_0x5cb701[_0x2c836b(0xb0)]=_0x2c836b(0x100),_0x5cb701[_0x2c836b(0xcf)]=_0x2c836b(0xca);const _0x1611f1=_0x5cb701,_0x42a518=_0x1611f1[_0x2c836b(0xb0)][_0x2c836b(0xc7)]('|');let _0x48116b=0x0;while(!![]){switch(_0x42a518[_0x48116b++]){case'0':this[_0x2c836b(0x8f)]();continue;case'1':this[_0x2c836b(0xc2)]=_0x443ce6;continue;case'2':this[_0x2c836b(0x9e)]=TestInfo[_0x2c836b(0x110)]();continue;case'3':const _0xbca461={};_0xbca461['recursive']=!![],fs[_0x2c836b(0xfe)](this['dirPath'],_0xbca461);continue;case'4':this[_0x2c836b(0x8d)]=path[_0x2c836b(0x9c)](this['dirPath'],_0x1611f1[_0x2c836b(0xcf)]);continue;case'5':logger['info'](_0x2c836b(0xfc)+this['dirPath']);continue;case'6':const _0x248fd5={};_0x248fd5[_0x2c836b(0xce)]=!![],fs[_0x2c836b(0xfe)](this['traceZipDir'],_0x248fd5);continue;}break;}}static[a70_0x5b4609(0x110)](){const _0x3e29ab=a70_0x5b4609,_0x571022={};_0x571022[_0x3e29ab(0xd0)]=function(_0x3d5e4e,_0x414e08){return _0x3d5e4e+_0x414e08;},_0x571022[_0x3e29ab(0xc8)]=function(_0x9cd7e2,_0x3b90ba){return _0x9cd7e2+_0x3b90ba;},_0x571022[_0x3e29ab(0xbf)]=_0x3e29ab(0xdd);const _0x29fb65=_0x571022;return _0x29fb65[_0x3e29ab(0xd0)](_0x29fb65['nOVAD'](TEMP_STORE_DIR_NAME,'-'),process[_0x3e29ab(0x9d)][_0x3e29ab(0xcb)]||_0x29fb65[_0x3e29ab(0xbf)]);}static[a70_0x5b4609(0xaf)](){const _0x32530a=a70_0x5b4609,_0x445875={};_0x445875[_0x32530a(0xf0)]=function(_0x2e328f,_0x431258){return _0x2e328f+_0x431258;},_0x445875[_0x32530a(0xdc)]=_0x32530a(0xdd);const _0x48abc4=_0x445875;return path[_0x32530a(0x9c)](_0x48abc4[_0x32530a(0xf0)](_0x48abc4[_0x32530a(0xf0)](TEMP_STORE_DIR_NAME,'-'),process['env'][_0x32530a(0xcb)]||_0x48abc4[_0x32530a(0xdc)]));}static['getTraceZipDir'](){const _0x32327a=a70_0x5b4609,_0x4e970e={};_0x4e970e[_0x32327a(0xd4)]=_0x32327a(0xca);const _0x5aa881=_0x4e970e;return path[_0x32327a(0x9c)](this[_0x32327a(0xaf)](),_0x5aa881[_0x32327a(0xd4)]);}static[a70_0x5b4609(0x87)](_0x232709){const _0x3be46b=a70_0x5b4609,_0x16881f={};_0x16881f[_0x3be46b(0xd9)]=function(_0x8e8c4,_0x2a6dad){return _0x8e8c4+_0x2a6dad;},_0x16881f[_0x3be46b(0x8a)]=_0x3be46b(0xae);const _0x15dfc1=_0x16881f;return path[_0x3be46b(0x9c)](this['dirPath'],_0x15dfc1['KHdzw'](_0x232709,_0x15dfc1[_0x3be46b(0x8a)]));}static['getTestRunIdFromTestInfo'](_0x2d9b1d){const _0x555006=a70_0x5b4609,_0x1c4777={};_0x1c4777[_0x555006(0x105)]=function(_0x28520e,_0x506f4d){return _0x28520e+_0x506f4d;},_0x1c4777[_0x555006(0xa0)]=function(_0x397db5,_0x4a262a){return _0x397db5+_0x4a262a;},_0x1c4777[_0x555006(0x9a)]=function(_0x130ef2,_0x43f0f9){return _0x130ef2+_0x43f0f9;};const _0x197198=_0x1c4777;return _0x197198[_0x555006(0x105)](_0x197198[_0x555006(0xa0)](_0x197198['gHAbE'](_0x197198[_0x555006(0x9a)](this[_0x555006(0xd6)](_0x2d9b1d),'-'),this[_0x555006(0xb3)](_0x2d9b1d)),'-'),_0x2d9b1d[_0x555006(0x92)]);}static[a70_0x5b4609(0xd6)](_0x308735){const _0x4b3df2=a70_0x5b4609,_0x45dc11={'QiJSG':function(_0xd274e8,_0x19efa7,_0x532ffb){return _0xd274e8(_0x19efa7,_0x532ffb);},'DEsGa':_0x4b3df2(0x113),'Dwkfu':_0x4b3df2(0xe4),'jqcDR':_0x4b3df2(0x104),'QAgQY':_0x4b3df2(0xe5)};return _0x45dc11[_0x4b3df2(0xaa)](nestedKeyValue,_0x308735,[_0x45dc11[_0x4b3df2(0xcc)],_0x45dc11[_0x4b3df2(0xea)]])||_0x45dc11[_0x4b3df2(0xaa)](nestedKeyValue,_0x308735,[_0x45dc11['jqcDR'],_0x45dc11[_0x4b3df2(0xb4)]]);}static[a70_0x5b4609(0xb3)](_0x132b73){const _0x3d5845=a70_0x5b4609,_0x242af={'OmRMW':function(_0x1c7501,_0x3288e8,_0x2cca43){return _0x1c7501(_0x3288e8,_0x2cca43);},'rsdln':'_test'};return _0x242af['OmRMW'](nestedKeyValue,_0x132b73,[_0x242af['rsdln'],'id'])||_0x132b73[_0x3d5845(0xda)];}static[a70_0x5b4609(0xe3)](_0x45e1a3,_0x5c5307){const _0x306197=a70_0x5b4609,_0x39db3f={};_0x39db3f[_0x306197(0xbb)]=function(_0x817210,_0x30d2e8){return _0x817210+_0x30d2e8;};const _0x627145=_0x39db3f;return _0x627145['AZuhU'](_0x627145[_0x306197(0xbb)](this['getTestIdFromTestInfo'](_0x45e1a3),'-'),_0x5c5307);}static[a70_0x5b4609(0xe0)](_0x163a1c){const _0xac2c02=a70_0x5b4609,_0x4fb6cd={'THJrZ':function(_0x4d0bf1,_0x101a35){return _0x4d0bf1===_0x101a35;},'rfoPt':'string','Oxkpg':function(_0x5a8a33){return _0x5a8a33();}};try{if(this['tests'][_0x163a1c]&&_0x4fb6cd[_0xac2c02(0xdf)](typeof this['tests'][_0x163a1c][_0xac2c02(0xc5)],_0x4fb6cd[_0xac2c02(0x111)]))return this[_0xac2c02(0xa7)][_0x163a1c][_0xac2c02(0xc5)];const _0x1458f5=this[_0xac2c02(0x87)](_0x163a1c),_0xff890b=path['resolve'](_0x1458f5);if(fs[_0xac2c02(0xd2)](_0xff890b)){const _0x3b935d=JSON[_0xac2c02(0xe1)](fs[_0xac2c02(0x10b)](_0x1458f5)[_0xac2c02(0xa8)]());return this[_0xac2c02(0xa7)][_0x163a1c]=_0x3b935d,this[_0xac2c02(0xa7)][_0x163a1c][_0xac2c02(0xc5)];}this[_0xac2c02(0xa7)][_0x163a1c]={'uuid':_0x4fb6cd[_0xac2c02(0x95)](uuidv4)};try{fs[_0xac2c02(0xed)](_0x1458f5,JSON['stringify'](this[_0xac2c02(0xa7)][_0x163a1c]));}catch(_0x4c2ada){logger[_0xac2c02(0x96)](_0xac2c02(0xa9)+_0x163a1c+':\x20'+_0x4c2ada[_0xac2c02(0xb9)]);}return this[_0xac2c02(0xa7)][_0x163a1c][_0xac2c02(0xc5)];}catch(_0x5c1c8b){return logger[_0xac2c02(0x96)](_0xac2c02(0xc3)+_0x163a1c+':\x20'+_0x5c1c8b['message']),null;}}static[a70_0x5b4609(0x8b)](_0x199d30){const _0xfee5e4=a70_0x5b4609,_0x3b64c1=path[_0xfee5e4(0x9c)](this[_0xfee5e4(0x9e)],_0x199d30+_0xfee5e4(0xb6));if(fs['existsSync'](_0x3b64c1))return fs[_0xfee5e4(0x10b)](_0x3b64c1)[_0xfee5e4(0xa8)]();}static[a70_0x5b4609(0xa3)](_0x1e657,_0x33094f){const _0x21b569=a70_0x5b4609,_0x41e794=path[_0x21b569(0x9c)](this[_0x21b569(0x9e)],_0x33094f+_0x21b569(0xb6));fs[_0x21b569(0xed)](_0x41e794,_0x1e657[_0x21b569(0xa8)]());}static[a70_0x5b4609(0x8f)](){const _0x11cb22=a70_0x5b4609,_0x59aeed={};_0x59aeed['recursive']=!![],_0x59aeed[_0x11cb22(0x89)]=!![],fs[_0x11cb22(0xe8)](this[_0x11cb22(0x9e)],_0x59aeed);}static[a70_0x5b4609(0xe2)](_0x3432f5){const _0x2abef1=a70_0x5b4609,_0x43fc31=this[_0x2abef1(0x87)](_0x3432f5);if(fs[_0x2abef1(0xd2)](_0x43fc31))try{const _0x3dd070=JSON[_0x2abef1(0xe1)](fs[_0x2abef1(0x10b)](_0x43fc31)[_0x2abef1(0xa8)]());return this[_0x2abef1(0xa7)][_0x3432f5]=_0x3dd070,_0x3dd070;}catch(_0x55f584){return logger[_0x2abef1(0x9b)](_0x2abef1(0x114)+_0x43fc31+':\x20'+util[_0x2abef1(0xd1)](_0x55f584)+_0x2abef1(0x97)),{};}return{};}static[a70_0x5b4609(0x102)](_0x45bd4d,_0x5c4809,_0x5c4bbb=![]){const _0x238184=a70_0x5b4609,_0x4169f7={'mTrsf':function(_0x138dcb){return _0x138dcb();}};logger[_0x238184(0x9b)](_0x238184(0x90)+process[_0x238184(0xbd)]+_0x238184(0xb2)+_0x45bd4d+_0x238184(0xe6)+JSON['stringify'](_0x5c4809));const _0x4e62a5=this[_0x238184(0x87)](_0x45bd4d);if(fs[_0x238184(0xd2)](_0x4e62a5))try{const _0x57ce51=lockfile[_0x238184(0x10e)](_0x4e62a5),_0x26b266=JSON[_0x238184(0xe1)](fs['readFileSync'](_0x4e62a5)[_0x238184(0xa8)]());if(_0x5c4bbb)this[_0x238184(0xa7)][_0x45bd4d]=helper['mergeDeep'](_0x26b266,_0x5c4809);else{const _0x3e95c7={..._0x26b266,..._0x5c4809};this[_0x238184(0xa7)][_0x45bd4d]=_0x3e95c7;}fs[_0x238184(0xed)](_0x4e62a5,JSON[_0x238184(0xc9)](this[_0x238184(0xa7)][_0x45bd4d])),_0x4169f7[_0x238184(0xa5)](_0x57ce51);}catch(_0x4f0e14){logger[_0x238184(0x9b)](_0x238184(0x114)+_0x4e62a5+':\x20'+util['format'](_0x4f0e14)+_0x238184(0x8e));}}static[a70_0x5b4609(0xa1)](_0x552343,_0x35f400){const _0x282e54=a70_0x5b4609,_0x2d79ab={'jIOgQ':function(_0x307ca9,_0x5b7b83){return _0x307ca9!==_0x5b7b83;},'zVGvi':_0x282e54(0xfd),'FayYX':function(_0x299c73){return _0x299c73();}};logger[_0x282e54(0x9b)](_0x282e54(0xb5)+process[_0x282e54(0xbd)]+_0x282e54(0xde)+_0x552343+'}');const _0x5e2a47=this[_0x282e54(0x87)](_0x552343);try{let _0x5db35a={};if(fs['existsSync'](_0x5e2a47)){const _0x3087f1=lockfile[_0x282e54(0x10e)](_0x5e2a47);_0x5db35a=JSON[_0x282e54(0xe1)](fs[_0x282e54(0x10b)](_0x5e2a47)[_0x282e54(0xa8)]()),(!_0x5db35a[_0x282e54(0x99)]||_0x2d79ab[_0x282e54(0x10a)](typeof _0x5db35a[_0x282e54(0x99)],_0x2d79ab[_0x282e54(0xdb)]))&&(_0x5db35a[_0x282e54(0x99)]={}),(!_0x5db35a[_0x282e54(0x99)][_0x552343]||!Array[_0x282e54(0xe9)](_0x5db35a['logObjects'][_0x552343]))&&(_0x5db35a[_0x282e54(0x99)][_0x552343]=[]),_0x5db35a['logObjects'][_0x552343]['push'](_0x35f400),this['tests'][_0x552343]=_0x5db35a,fs[_0x282e54(0xed)](_0x5e2a47,JSON[_0x282e54(0xc9)](this[_0x282e54(0xa7)][_0x552343])),_0x2d79ab[_0x282e54(0xa6)](_0x3087f1);}else{const _0x27c607={};_0x27c607[_0x282e54(0xc5)]=_0x552343,_0x27c607[_0x282e54(0x99)]={},_0x27c607[_0x282e54(0x99)][_0x552343]=[_0x35f400],_0x5db35a=_0x27c607,this[_0x282e54(0xa7)][_0x552343]=_0x5db35a,fs[_0x282e54(0xed)](_0x5e2a47,JSON[_0x282e54(0xc9)](this['tests'][_0x552343]));}}catch(_0x3a588a){logger[_0x282e54(0x9b)](_0x282e54(0x114)+_0x5e2a47+':\x20'+util[_0x282e54(0xd1)](_0x3a588a)+_0x282e54(0xef));}}static[a70_0x5b4609(0x109)](_0x3e2046){const _0x56c580=a70_0x5b4609,_0x6a3d03={'MItdD':function(_0x51ee36,_0x44336b){return _0x51ee36!==_0x44336b;},'asNHl':_0x56c580(0xfd),'LLyhy':function(_0xd2482){return _0xd2482();},'cNpID':function(_0x30b595,_0x21e96f){return _0x30b595===_0x21e96f;},'wLtpo':function(_0x5ba578){return _0x5ba578();}};logger[_0x56c580(0x9b)](_0x56c580(0x101)+process['pid']+_0x56c580(0xeb)+_0x3e2046);const _0x677dca=this[_0x56c580(0x87)](_0x3e2046);try{if(!fs[_0x56c580(0xd2)](_0x677dca))return logger[_0x56c580(0x9b)](_0x56c580(0xa2)+_0x3e2046),[];const _0x1135d6=lockfile[_0x56c580(0x10e)](_0x677dca),_0x3faeeb=JSON[_0x56c580(0xe1)](fs[_0x56c580(0x10b)](_0x677dca)['toString']());if(!_0x3faeeb['logObjects']||_0x6a3d03[_0x56c580(0x103)](typeof _0x3faeeb[_0x56c580(0x99)],_0x6a3d03[_0x56c580(0xd5)]))return logger[_0x56c580(0x9b)](_0x56c580(0xad)+_0x3e2046),_0x6a3d03[_0x56c580(0xc0)](_0x1135d6),[];if(!_0x3faeeb['logObjects'][_0x3e2046]||!Array['isArray'](_0x3faeeb[_0x56c580(0x99)][_0x3e2046])||_0x6a3d03['cNpID'](_0x3faeeb['logObjects'][_0x3e2046]['length'],0x0))return logger['debug']('readLogObjects:\x20No\x20log\x20objects\x20found\x20for\x20testId:\x20'+_0x3e2046),_0x6a3d03[_0x56c580(0xff)](_0x1135d6),[];const _0x17fd01=[..._0x3faeeb['logObjects'][_0x3e2046]];return logger[_0x56c580(0x9b)](_0x56c580(0x94)+_0x17fd01[_0x56c580(0xb1)]+'\x20log\x20objects\x20for\x20testId:\x20'+_0x3e2046),_0x3faeeb['logObjects'][_0x3e2046]=[],this[_0x56c580(0xa7)][_0x3e2046]=_0x3faeeb,fs['writeFileSync'](_0x677dca,JSON[_0x56c580(0xc9)](this[_0x56c580(0xa7)][_0x3e2046])),_0x6a3d03[_0x56c580(0xff)](_0x1135d6),_0x17fd01;}catch(_0x55b007){return logger[_0x56c580(0x9b)](_0x56c580(0x114)+_0x677dca+':\x20'+util[_0x56c580(0xd1)](_0x55b007)+_0x56c580(0xe7)),[];}}static[a70_0x5b4609(0xf7)](_0x47b83c){const _0x2c9382=a70_0x5b4609,_0x20969d={};_0x20969d[_0x2c9382(0xfb)]=_0x2c9382(0xc1);const _0x5b96fa=_0x20969d;try{const _0x34cf16=process[_0x2c9382(0xbd)],_0x4879ff=path[_0x2c9382(0x9c)](TestInfo['getTraceZipDir'](),_0x34cf16+_0x2c9382(0xf5));let _0x270e50=[];fs[_0x2c9382(0xd2)](_0x4879ff)&&(_0x270e50=JSON[_0x2c9382(0xe1)](fs[_0x2c9382(0x10b)](_0x4879ff)[_0x2c9382(0xa8)]()));if(!_0x270e50[_0x2c9382(0xec)](_0x33e088=>_0x33e088['filePath']===_0x47b83c['filePath'])){_0x270e50[_0x2c9382(0xba)](_0x47b83c);const _0x472efe=path[_0x2c9382(0x88)](_0x4879ff);if(!fs[_0x2c9382(0xd2)](_0x472efe)){const _0x263a65={};_0x263a65['recursive']=!![],fs['mkdirSync'](_0x472efe,_0x263a65);}fs['writeFileSync'](_0x4879ff,JSON[_0x2c9382(0xc9)](_0x270e50));}}catch(_0x145534){logger['error'](util[_0x2c9382(0xd1)](_0x5b96fa[_0x2c9382(0xfb)],_0x145534));}}static['getTraceFilePaths'](){const _0x31fd63=a70_0x5b4609,_0x55a0c5={};_0x55a0c5[_0x31fd63(0xd3)]=_0x31fd63(0xf5),_0x55a0c5[_0x31fd63(0xfa)]=_0x31fd63(0xb7);const _0x589002=_0x55a0c5,_0x20e6a9=[];try{const _0x33f0e3=TestInfo['getTraceZipDir']();if(!fs[_0x31fd63(0xd2)](_0x33f0e3))return _0x20e6a9;const _0x494dd7=fs[_0x31fd63(0xa4)](_0x33f0e3);_0x494dd7[_0x31fd63(0x9f)](_0x53054c=>{const _0x2295b0=_0x31fd63;if(_0x53054c[_0x2295b0(0xc6)](_0x589002[_0x2295b0(0xd3)])){const _0x4f085a=JSON[_0x2295b0(0xe1)](fs[_0x2295b0(0x10b)](path[_0x2295b0(0x9c)](_0x33f0e3,_0x53054c))[_0x2295b0(0xa8)]());_0x20e6a9['push'](..._0x4f085a);}});}catch(_0x47655e){logger[_0x31fd63(0x96)](util['format'](_0x589002[_0x31fd63(0xfa)],_0x47655e));}const _0x9c362e={};return _0x20e6a9[_0x31fd63(0x9f)](_0x15e774=>{const _0x44d5e5=_0x31fd63;_0x9c362e[_0x15e774[_0x44d5e5(0xac)]]=_0x15e774;}),Object[_0x31fd63(0x93)](_0x9c362e);}static[a70_0x5b4609(0x10c)](_0x56dedc,_0xd6e261){const _0x4cb885=a70_0x5b4609,_0x1e3036={};_0x1e3036[_0x4cb885(0xf6)]=_0x4cb885(0x108),_0x1e3036[_0x4cb885(0x91)]='utf8',_0x1e3036[_0x4cb885(0xf3)]=_0x4cb885(0xbe);const _0x5d01ad=_0x1e3036;try{const _0x4b25ef=path['join'](helper['homedir'](),_0x5d01ad[_0x4cb885(0xf6)]);if(!fs['existsSync'](_0x4b25ef)){const _0x3ab60f={};_0x3ab60f[_0x4cb885(0xce)]=!![],fs['mkdirSync'](_0x4b25ef,_0x3ab60f);}fs[_0x4cb885(0xcd)](path[_0x4cb885(0x9c)](_0x4b25ef,_0x4cb885(0x107)+_0xd6e261+'.txt'),_0x56dedc+'\x0a',_0x5d01ad[_0x4cb885(0x91)]);}catch(_0x132393){logger[_0x4cb885(0x96)](util[_0x4cb885(0xd1)](_0x5d01ad[_0x4cb885(0xf3)],_0x132393));}}}module[a70_0x5b4609(0x8c)]=TestInfo;
@@ -1 +1 @@
1
- const a71_0x3107eb=a71_0x36ad;(function(_0x23c6e3,_0xcfff7e){const _0xf1e82b=a71_0x36ad,_0x4ebeb=_0x23c6e3();while(!![]){try{const _0x5012f3=-parseInt(_0xf1e82b(0x214))/0x1*(-parseInt(_0xf1e82b(0x1d2))/0x2)+parseInt(_0xf1e82b(0x249))/0x3+parseInt(_0xf1e82b(0x248))/0x4+parseInt(_0xf1e82b(0x27c))/0x5*(-parseInt(_0xf1e82b(0x29c))/0x6)+-parseInt(_0xf1e82b(0x23d))/0x7*(-parseInt(_0xf1e82b(0x1da))/0x8)+-parseInt(_0xf1e82b(0x20f))/0x9*(-parseInt(_0xf1e82b(0x205))/0xa)+-parseInt(_0xf1e82b(0x239))/0xb*(parseInt(_0xf1e82b(0x27e))/0xc);if(_0x5012f3===_0xcfff7e)break;else _0x4ebeb['push'](_0x4ebeb['shift']());}catch(_0x5b28ea){_0x4ebeb['push'](_0x4ebeb['shift']());}}}(a71_0x2d5a,0x66a6c));const {spawn}=require('child_process'),GrpcClient=require(a71_0x3107eb(0x27a)),util=require(a71_0x3107eb(0x2a2)),CLIUtils=require(a71_0x3107eb(0x266)),PlaywrightAutomationFramework=require(a71_0x3107eb(0x1d7)),PuppeteerAutomationFramework=require(a71_0x3107eb(0x20a)),PlaywrightTestFramework=require(a71_0x3107eb(0x1f5)),CucumberTestFramework=require('./framework/cucumberTestFramework.js'),JestTestFramework=require(a71_0x3107eb(0x2dc)),{createClassLogger}=require(a71_0x3107eb(0x1e5)),PerformanceTester=require(a71_0x3107eb(0x1c9)),{EVENTS:PerformanceEvents}=require(a71_0x3107eb(0x20e)),AccessibilityModule=require(a71_0x3107eb(0x269)),{CLI_SUPPORTED_FRAMEWORKS,FRAMEWORKS,BINARY_BUSY_ERROR_CODES,MAX_SPAWN_RETRIES,SPAWN_RETRY_DELAY_MS}=require('../utils/constants.js'),helper=require('../../helpers/helper.js'),TestFrameworkConstants=require(a71_0x3107eb(0x22b)),buildLogger=require(a71_0x3107eb(0x268))[a71_0x3107eb(0x1d9)],LoadTestModule=require('./modules/loadTestModule.js'),TestInfo=require(a71_0x3107eb(0x1e6));let _fallbackWarningEmitted=![];function a71_0x36ad(_0x290915,_0x5dddc5){const _0x2d5ab0=a71_0x2d5a();return a71_0x36ad=function(_0x36ad2b,_0x250642){_0x36ad2b=_0x36ad2b-0x1ba;let _0x325eec=_0x2d5ab0[_0x36ad2b];return _0x325eec;},a71_0x36ad(_0x290915,_0x5dddc5);}function a71_0x2d5a(){const _0x49908d=['2046185bFhrEt','qeJhU','516KeCQGh','MODULE_NAME','exit','getClient','getTestDetails','testFramework','getInstance','join','Setting\x20up\x20CLI\x20binary\x20path...','exports','syncAccessibilityConfig','hQWPI','TEQBH','PUPPETEER','BaCtT','OEtDa','wavus','SDK_CLI_BIN_PATH','getAccessibility','stop:\x20shutting\x20down\x20CLI','isMainConnected','kJZLX','========================================================================','getTestFramework','CLIUtils.setupCliPath\x20returned\x20null','JpSpF','unConfigureModules','accessibilityOptions','isFalse','vUYOK','12nSLmJe','loadModules:\x20skipping\x20driver\x20module\x20for\x20observability-only\x20framework','startMain:\x20Starting\x20main\x20process','testhubConfig','_spawnAndAwaitReady','QkEHm','util','startBinSession','MSCiN','length','JyTFc','hEnKP','isLTSSession','loading\x20Modules.','Error\x20Trace\x20ID:\x20','init','isCliEnabled','):\x20','\x20hashed_id=','ZmAOK','startMain:\x20main-process\x20started','O11yHashedID','IRjCK','./modules/puppeteerDriverModule.js','dVrds','CLI\x20params\x20loaded:\x20','browserstackCliConfig','ms...','trim','binSessionId','errorTraceId','loadCliParams','sIjoT','toLowerCase','stop:\x20stopBinSession\x20build_link=','lTbvZ','stop','pGqsm','stack','stop:\x20CLI\x20is\x20not\x20running,\x20skipping\x20stop','bjSCU','kwHOT','TestHubModule','sufNE','\x20o11y_uuid=','JEST','getConfig','cliParams','getAutomationFrameworkDetail','isClosed','shutdown','MNDCH','mRXGq','NEWMAN','setConfig:\x20error=','fMvwK','BROWSERSTACK_CLI_ENABLED','binary\x20spawn\x20failed','PLAYWRIGHT','setCliArgs:\x20error=','gRPC\x20client\x20is\x20not\x20initialized.\x20Cannot\x20perform\x20test\x20orchestration.','getBrowserstackConfigPath','./modules/playwrightDriverModule.js','ijOyG','./framework/jestTestFramework.js','BROWSERSTACK_CLI_BIN_SESSION_ID','KHUqj','hubUrl','setConfig','awklj','sdk','exbon','SDK_CLI_ON_STOP','Osupi','isRunning','dqdsQ','toString','modules','errorsList','stringify','getChannel','testOrchestration','gWJfA','JnUTE','\x20msg=','stop:\x20CLI\x20stop\x20triggered','getAutomateBuildlink','getBrowserstackCliConfig','isUndefined','BIfRV','getTestFrameworkDetail','key','child\x20connect\x20to\x20binary\x20failed','error','Starting\x20as\x20child\x20process\x20with\x20session\x20ID:\x20','VLJYK','env','../../helpers/performance/performance-tester.js','warn','loadModules:\x20binSessionId=','connected','iyYLP','ZcnvW','stop:\x20error\x20in\x20stop\x20session\x20exception=','ready','getTesthub','2zvhtOB','dqCEE','SDK_CLI_ON_BOOTSTRAP','browserstackConfig','ufvXz','./framework/playwrightAutomationFramework.js','stderr','buildLogger','384dUUhNB','stdout','setConfig:\x20Using\x20browserstackConfig\x20as\x20fallback','spawn\x20succeeded\x20on\x20attempt\x20','setConfig:\x20No\x20fallback\x20config\x20available,\x20using\x20empty\x20object',',\x20retrying\x20in\x20','XaWrT','SlQCl','\x20after\x20ready\x20—\x20gRPC\x20calls\x20will\x20fail','connectBinSession','BuildLink','../../helpers/classLogger.js','./TestInfo.js','message','sVUuw','CLI\x20binary\x20path\x20resolved\x20to:\x20','wDlGT','browserstackConfigPath','setLTSSessionId','kVcZJ','getAutomationFramework','config','iwYVW','configureModules','getCliBinPath','caPmL','info','./framework/playwrightTestFramework.js','configure','setBrowserstackConfig','CLI\x20process\x20exited\x20with\x20code\x20','Accessibility\x20success=','isDevelopmentEnv','CLI\x20stderr:\x20','xftMz','iyGqc','twGVe','kill','process','apEzW','setupAutomationFramework','removeAllListeners','uUWqo','105730esVpUo','end','Disabling\x20CLI.','./uploadAttachmentsManager.js','KvMrf','./framework/puppeteerAutomationFramework.js','YmCTn','Error\x20in\x20setupCliPath:\x20','gqedc','../../helpers/performance/constants','531LRgpnC','includes','jGLlT','aZrUw','setCliArgs','191506PhWytm','GxWxq','SDK_CONNECT_BIN_SESSION','startChild:\x20client\x20and\x20channel\x20already\x20exist,\x20stopping\x20here','QJjuP','getAccessibilityModule','Error\x20reading\x20accessibility\x20success\x20value:\x20','./modules/testhubModule.js','Error\x20in\x20start\x20(code=','version','Error:\x20[','Failed\x20to\x20start\x20as\x20child\x20process:\x20','MlGji','bTonk','client','setupTestFramework','BrowserstackCLI','syncAccessibilityConfig:\x20browserstackConfig\x20not\x20set,\x20skipping\x20sync','SIGKILL','getCliArgs','spawn\x20','setCliArgs:\x20cliArgs=','WJdze','./framework/constants/testFrameworkConstants.js','toObject','setupCliPath','buildHashedId','QGwSE','startMain','afulp','isBootstrapped','parse','A11yEnabled','isChildConnected','cLQRR','BROWSERSTACK_TURBOSCALE','SDK_CLI_START','235994hDoFjW','entlp','name','debug','120372wuHFmd','rqdsp','automationFramework','testOrchestrationSession','split','BROWSERSTACK_CLI_ENV','keys','ByMhn','WARNING:\x20Binary\x20CLI\x20failed\x20to\x20start\x20—\x20running\x20in\x20direct\x20flow.','start','0|7|4|3|6|2|5|1','1338852EbWOfB','558066nlXpFi','bootstrap','lseYn','startChild','loadModules','format','app','MuwFT','logger','write','accessibility','Unconfiguring\x20modules','clearAttachments','failed\x20to\x20start\x20CLI,\x20no\x20PID\x20found','resolve','OfnTs','stop:\x20process\x20exit\x20timeout,\x20forcing\x20kill','Reason:\x20','server','exitCode','JpDYv','sioRV','YTPft','HashedID','code','_modulesLoaded','push','UVyXf','setConfig:\x20Using\x20browserstackConfig\x20after\x20parse\x20error','./cliUtils.js','cliArgs','../../helpers/logger.js','./modules/accessibilityModule.js','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','\x20errors:','pid','DNOVn','qEtxQ','bootstrap:\x20failed\x20to\x20bootstrap=','jcWwu','fcgLo','getSuccess','mqIUs','getHashedId','FRxOr','VAtWt','OXOVC','data','test','./grpcClient.js','ikocI'];a71_0x2d5a=function(){return _0x49908d;};return a71_0x2d5a();}function emitFallbackWarningOnce(_0x9af4ad,_0x3daf2b){const _0x33501f=a71_0x3107eb,_0x9a822d={};_0x9a822d[_0x33501f(0x26e)]=_0x33501f(0x294),_0x9a822d[_0x33501f(0x293)]=_0x33501f(0x245),_0x9a822d[_0x33501f(0x25e)]='If\x20sdk-assets.browserstack.com\x20is\x20blocked\x20by\x20your\x20firewall,\x20whitelist\x20it.',_0x9a822d[_0x33501f(0x1d3)]=function(_0x40fd03,_0x522cf0){return _0x40fd03+_0x522cf0;};const _0x5c2d84=_0x9a822d;if(_fallbackWarningEmitted)return;_fallbackWarningEmitted=!![];const _0x24efad=['',_0x5c2d84[_0x33501f(0x26e)],_0x5c2d84['kJZLX'],_0x5c2d84[_0x33501f(0x25e)]];_0x9af4ad&&_0x24efad[_0x33501f(0x263)](_0x33501f(0x25a)+_0x9af4ad);_0x3daf2b&&_0x24efad[_0x33501f(0x263)]('Cause:\x20'+(_0x3daf2b&&_0x3daf2b[_0x33501f(0x2c2)]||util[_0x33501f(0x24e)](_0x3daf2b)));_0x24efad[_0x33501f(0x263)](_0x5c2d84[_0x33501f(0x26e)]);const _0x378f87=_0x24efad[_0x33501f(0x285)]('\x0a');try{process['stderr'][_0x33501f(0x252)](_0x5c2d84[_0x33501f(0x1d3)](_0x378f87,'\x0a'));}catch(_0x369fdd){}}class BrowserstackCLI{static #instance=null;static [a71_0x3107eb(0x1e4)]=null;static [a71_0x3107eb(0x260)]=null;static [a71_0x3107eb(0x2b1)]=null;static [a71_0x3107eb(0x234)]=![];[a71_0x3107eb(0x200)]=null;[a71_0x3107eb(0x292)]=![];[a71_0x3107eb(0x235)]=![];['_modulesLoaded']=![];[a71_0x3107eb(0x2b9)]=null;['modules']={};[a71_0x3107eb(0x283)]=null;[a71_0x3107eb(0x23f)]=null;['logger']=createClassLogger(a71_0x3107eb(0x224));constructor(){const _0x3f9fb7=a71_0x3107eb;this['initialized']=![],this[_0x3f9fb7(0x1ef)]={},this[_0x3f9fb7(0x267)]={},this[_0x3f9fb7(0x1d5)]={};}static['getInstance'](){return!BrowserstackCLI.#instance&&(BrowserstackCLI.#instance=new BrowserstackCLI()),BrowserstackCLI.#instance;}async[a71_0x3107eb(0x24a)](){const _0x43a757=a71_0x3107eb,_0x2568c4={'QkEHm':_0x43a757(0x207),'JpEkk':function(_0x5cf072,_0x4b5607,_0x22a3fe){return _0x5cf072(_0x4b5607,_0x22a3fe);},'apEzW':'binary\x20bootstrap\x20failed'};if(helper[_0x43a757(0x29a)](process[_0x43a757(0x1c8)][_0x43a757(0x2d4)])){this[_0x43a757(0x251)]['info'](_0x2568c4[_0x43a757(0x2a1)]);return;}PerformanceTester[_0x43a757(0x246)](PerformanceEvents[_0x43a757(0x1d4)]);try{const _0x523051=process[_0x43a757(0x1c8)][_0x43a757(0x2dd)]||null;this[_0x43a757(0x202)](),this[_0x43a757(0x223)]();if(_0x523051){await this[_0x43a757(0x24c)](_0x523051),PerformanceTester[_0x43a757(0x206)](PerformanceEvents[_0x43a757(0x1d4)]);return;}await this[_0x43a757(0x230)]();}catch(_0xb2f52f){this[_0x43a757(0x251)]['error'](_0x43a757(0x26f)+(_0xb2f52f[_0x43a757(0x2c2)]||_0xb2f52f)),_0x2568c4['JpEkk'](emitFallbackWarningOnce,_0x2568c4[_0x43a757(0x201)],_0xb2f52f),await this['stop'](),PerformanceTester['end'](PerformanceEvents['SDK_CLI_ON_BOOTSTRAP'],![],util['format'](_0xb2f52f));}}async[a71_0x3107eb(0x230)](){const _0x3b2aef=a71_0x3107eb,_0x212cb3={};_0x212cb3['xftMz']=_0x3b2aef(0x29e),_0x212cb3['IRjCK']=_0x3b2aef(0x2b0);const _0x27fc98=_0x212cb3;this[_0x3b2aef(0x251)][_0x3b2aef(0x1f4)](_0x27fc98[_0x3b2aef(0x1fc)]),await this['start'](),this[_0x3b2aef(0x251)]['debug'](_0x27fc98[_0x3b2aef(0x2b2)]);const _0x253b72=await GrpcClient['getInstance']()[_0x3b2aef(0x2a3)]();this[_0x3b2aef(0x292)]=!![],this[_0x3b2aef(0x24d)](_0x253b72);}['loadModules'](_0x221418){const _0x30e1f3=a71_0x3107eb,_0xdeb369={'pGqsm':function(_0x4dc7b2,_0x48eff9){return _0x4dc7b2(_0x48eff9);},'JpSpF':_0x30e1f3(0x2da),'kVcZJ':function(_0x15e9e7,_0x579797){return _0x15e9e7(_0x579797);},'gWJfA':_0x30e1f3(0x21b),'wavus':'./modules/observabilityModule.js','lxASx':'loadModules:\x20Loading\x20modules','vUYOK':'getObservability','ufvXz':_0x30e1f3(0x290),'gqedc':_0x30e1f3(0x272),'rhrPV':function(_0x5d29c2,_0x2d1e85){return _0x5d29c2||_0x2d1e85;},'aZrUw':function(_0xfc8787,_0x609b68){return _0xfc8787!==_0x609b68;},'uTacz':function(_0x25a1f0,_0x1d8044){return _0x25a1f0!==_0x1d8044;},'uUWqo':function(_0x2875f4,_0x93e60e){return _0x2875f4===_0x93e60e;},'OEtDa':'function','VQHpO':function(_0x5a277d,_0x178ae3){return _0x5a277d&&_0x178ae3;},'JnUTE':function(_0x2f211b,_0x2a376b){return _0x2f211b===_0x2a376b;},'VLJYK':_0x30e1f3(0x29d),'AQHBB':_0x30e1f3(0x2b3)},_0x5bb8e0=_0xdeb369[_0x30e1f3(0x2c1)](require,_0xdeb369[_0x30e1f3(0x297)]),_0xc1fcee=_0xdeb369['kVcZJ'](require,_0xdeb369[_0x30e1f3(0x1ba)]),_0x4c4d8f=_0xdeb369[_0x30e1f3(0x1ed)](require,_0xdeb369[_0x30e1f3(0x28e)]);this['logger'][_0x30e1f3(0x1f4)](_0xdeb369['lxASx']),this[_0x30e1f3(0x2b9)]=_0x221418['getBinSessionId'](),this[_0x30e1f3(0x251)]['info'](_0x30e1f3(0x1cb)+this[_0x30e1f3(0x2b9)]),this[_0x30e1f3(0x2e0)](_0x221418),this[_0x30e1f3(0x288)]();!this[_0x30e1f3(0x235)]&&this[_0x30e1f3(0x213)](_0x221418);const _0x56d498=_0xdeb369[_0x30e1f3(0x29b)],_0x3d4ef5=_0xdeb369[_0x30e1f3(0x1d6)],_0x563cae=_0xdeb369[_0x30e1f3(0x20d)],_0x50b53e=_0x221418[_0x56d498]()&&_0x221418[_0x56d498]()[_0x563cae](),_0x5e48e8=_0x221418[_0x3d4ef5]()&&_0x221418[_0x3d4ef5]()[_0x563cae](),_0x3138e2=process[_0x30e1f3(0x1c8)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']&&JSON[_0x30e1f3(0x233)](process[_0x30e1f3(0x1c8)][_0x30e1f3(0x26a)]);_0xdeb369['rhrPV'](_0x50b53e,_0x5e48e8)&&(this['modules'][_0xc1fcee[_0x30e1f3(0x27f)]]=new _0xc1fcee(_0x221418[_0x30e1f3(0x1d1)](),_0x3138e2));_0x50b53e&&(this[_0x30e1f3(0x2e9)][_0x4c4d8f[_0x30e1f3(0x27f)]]=new _0x4c4d8f(_0x221418[_0x56d498]()));if(_0x5e48e8){this[_0x30e1f3(0x2e9)][AccessibilityModule[_0x30e1f3(0x27f)]]=new AccessibilityModule(_0x221418[_0x3d4ef5]());const _0x1095bb=this[_0x30e1f3(0x1ef)]&&_0xdeb369[_0x30e1f3(0x212)](this[_0x30e1f3(0x1ef)][_0x30e1f3(0x24f)],undefined)&&_0xdeb369['uTacz'](this[_0x30e1f3(0x1ef)][_0x30e1f3(0x24f)],null);BrowserstackCLI[_0x30e1f3(0x234)]=!_0x1095bb;}else try{const _0x1f2f3c=_0x221418[_0x3d4ef5](),_0x2ad5a0=_0x1f2f3c&&_0xdeb369[_0x30e1f3(0x204)](typeof _0x1f2f3c[_0x563cae],_0xdeb369[_0x30e1f3(0x28d)])?!!_0x1f2f3c[_0x563cae]():![];this['logger'][_0x30e1f3(0x1f4)](_0x30e1f3(0x1f9)+_0x2ad5a0);if(_0xdeb369['VQHpO'](!_0x2ad5a0,_0x1f2f3c)){const _0x1171c6=_0x1f2f3c[_0x30e1f3(0x22c)]?_0x1f2f3c[_0x30e1f3(0x22c)]():_0x1f2f3c;_0x1171c6[_0x30e1f3(0x2ea)]&&Array['isArray'](_0x1171c6['errorsList'])&&(this['logger'][_0x30e1f3(0x1c5)]('Accessibility\x20initialization\x20failed\x20with\x20'+_0x1171c6[_0x30e1f3(0x2ea)][_0x30e1f3(0x2a5)]+_0x30e1f3(0x26b)),_0x1171c6[_0x30e1f3(0x2ea)]['forEach']((_0x50d9fa,_0x3dcc05)=>{const _0x5db2b7=_0x30e1f3;this['logger'][_0x5db2b7(0x1c5)](_0x5db2b7(0x21e)+_0x50d9fa[_0x5db2b7(0x1c3)]+']\x20'+_0x50d9fa[_0x5db2b7(0x1e7)]);}),_0x1171c6[_0x30e1f3(0x2ba)]&&this[_0x30e1f3(0x251)][_0x30e1f3(0x1c5)](_0x30e1f3(0x2aa)+_0x1171c6['errorTraceId']),_0x1171c6[_0x30e1f3(0x261)]&&this[_0x30e1f3(0x251)][_0x30e1f3(0x1c5)]('Error\x20Code:\x20'+_0x1171c6[_0x30e1f3(0x261)]));}}catch(_0x3d4d70){this[_0x30e1f3(0x251)][_0x30e1f3(0x1c5)](_0x30e1f3(0x21a)+_0x3d4d70);}const _0xc32c1c=CLIUtils[_0x30e1f3(0x2cc)]();if(_0xdeb369[_0x30e1f3(0x1bb)](_0xc32c1c[_0x30e1f3(0x23b)][_0x30e1f3(0x2bd)](),FRAMEWORKS['NEWMAN'][_0x30e1f3(0x2bd)]()))this['logger'][_0x30e1f3(0x1f4)](_0xdeb369[_0x30e1f3(0x1c7)]);else{if(_0xdeb369['uUWqo'](_0xc32c1c[_0x30e1f3(0x23b)][_0x30e1f3(0x2bd)](),FRAMEWORKS[_0x30e1f3(0x28b)]['toLowerCase']())){const _0xe89974=_0xdeb369[_0x30e1f3(0x1ed)](require,_0xdeb369['AQHBB']);this[_0x30e1f3(0x2e9)][_0xe89974[_0x30e1f3(0x27f)]]=new _0xe89974(_0x3138e2);}else this[_0x30e1f3(0x2e9)][_0x5bb8e0[_0x30e1f3(0x27f)]]=new _0x5bb8e0(_0x3138e2);}this[_0x30e1f3(0x262)]=!![],this[_0x30e1f3(0x1f1)]();}[a71_0x3107eb(0x219)](){const _0x1ad9f4=a71_0x3107eb;return this[_0x1ad9f4(0x2e9)][AccessibilityModule['MODULE_NAME']];}async[a71_0x3107eb(0x1f1)](){const _0x293b4e=a71_0x3107eb;for(const _0x5bc342 in this[_0x293b4e(0x2e9)]){const _0x5e6f22=this[_0x293b4e(0x2e9)][_0x5bc342];await _0x5e6f22[_0x293b4e(0x1f6)](this['binSessionId'],0x0,GrpcClient['getInstance']()[_0x293b4e(0x222)],this['config']);}}async[a71_0x3107eb(0x246)](){const _0x155a0=a71_0x3107eb,_0x3c95c8={'zxtGl':'Failed\x20to\x20get\x20CLI\x20binary\x20path.\x20CLI\x20setup\x20failed.','twGVe':_0x155a0(0x2e2),'sIjoT':function(_0x927eea,_0x558b64){return _0x927eea<=_0x558b64;},'iHYWd':function(_0x17fed6,_0x3d07e1){return _0x17fed6>_0x3d07e1;},'KvMrf':function(_0x225276,_0x3fdea0){return _0x225276<_0x3fdea0;},'WJdze':_0x155a0(0x226),'sexlK':function(_0xbdf128,_0x3688e8,_0x3ede8d){return _0xbdf128(_0x3688e8,_0x3ede8d);},'ByMhn':_0x155a0(0x2d5)};PerformanceTester[_0x155a0(0x246)](PerformanceEvents['SDK_CLI_START']);if(CLIUtils['isDevelopmentEnv']())return this[_0x155a0(0x2bb)](CLIUtils['getCLIParamsForDevEnv']()),PerformanceTester['end'](PerformanceEvents[_0x155a0(0x238)]),Promise['resolve']();if(this[_0x155a0(0x200)]&&this['process'][_0x155a0(0x1cc)])return PerformanceTester[_0x155a0(0x206)](PerformanceEvents['SDK_CLI_START']),Promise[_0x155a0(0x257)]();const _0x329482=await this['getCliBinPath']();if(!_0x329482)throw new Error(_0x3c95c8['zxtGl']);const _0x2c2582=[_0x329482,_0x3c95c8[_0x155a0(0x1fe)]];this[_0x155a0(0x251)][_0x155a0(0x1f4)]('spawning\x20command=\x27'+_0x2c2582+'\x27');for(let _0x4cf169=0x1;_0x3c95c8[_0x155a0(0x2bc)](_0x4cf169,MAX_SPAWN_RETRIES);_0x4cf169++){try{await this[_0x155a0(0x2a0)](_0x2c2582);_0x3c95c8['iHYWd'](_0x4cf169,0x1)&&this[_0x155a0(0x251)][_0x155a0(0x1f4)](_0x155a0(0x1dd)+_0x4cf169+'/'+MAX_SPAWN_RETRIES);break;}catch(_0x54686c){if(BINARY_BUSY_ERROR_CODES[_0x155a0(0x210)](_0x54686c[_0x155a0(0x261)])&&_0x3c95c8[_0x155a0(0x209)](_0x4cf169,MAX_SPAWN_RETRIES))this['logger'][_0x155a0(0x1ca)](_0x155a0(0x228)+_0x54686c['code']+'\x20on\x20attempt\x20'+_0x4cf169+'/'+MAX_SPAWN_RETRIES+_0x155a0(0x1df)+SPAWN_RETRY_DELAY_MS+_0x155a0(0x2b7)),this[_0x155a0(0x200)]&&(this[_0x155a0(0x200)][_0x155a0(0x203)](),!this[_0x155a0(0x200)]['killed']&&this['process']['kill'](_0x3c95c8[_0x155a0(0x22a)]),this[_0x155a0(0x200)]=null),await new Promise(_0x6b9aa2=>setTimeout(_0x6b9aa2,SPAWN_RETRY_DELAY_MS));else{_0x3c95c8['sexlK'](emitFallbackWarningOnce,_0x3c95c8[_0x155a0(0x244)],_0x54686c);throw _0x54686c;}}}}[a71_0x3107eb(0x2a0)](_0x599565){const _0x3ac1b7=a71_0x3107eb,_0x6543ee={'JpDYv':function(_0x26dfb4,_0x410183){return _0x26dfb4!==_0x410183;},'iyYLP':_0x3ac1b7(0x1d0),'QGwSE':_0x3ac1b7(0x247),'bjSCU':'close','YmCTn':_0x3ac1b7(0x1c5),'UVyXf':function(_0xe81f36){return _0xe81f36();},'OXOVC':function(_0x58e712,_0xa891b1){return _0x58e712(_0xa891b1);},'BIfRV':function(_0x3dac4d,_0x2d5116){return _0x3dac4d(_0x2d5116);},'cLQRR':function(_0x335c19,_0x2dd1e2,_0x2df170,_0x15d96d){return _0x335c19(_0x2dd1e2,_0x2df170,_0x15d96d);},'fcgLo':_0x3ac1b7(0x256),'hEnKP':_0x3ac1b7(0x278)};return new Promise((_0x12c02f,_0x13e315)=>{const _0x197b4a=_0x3ac1b7,_0x57cb52={'SlQCl':function(_0x1d72b9,_0x5a7faa){const _0x5c074c=a71_0x36ad;return _0x6543ee[_0x5c074c(0x277)](_0x1d72b9,_0x5a7faa);},'VAtWt':function(_0x3d6ee8,_0x1d78ad){return _0x6543ee['JpDYv'](_0x3d6ee8,_0x1d78ad);},'DNOVn':function(_0x2f5c70,_0x478239){const _0x256c90=a71_0x36ad;return _0x6543ee[_0x256c90(0x1c1)](_0x2f5c70,_0x478239);}},_0x163415={};_0x163415['env']=process['env'],this[_0x197b4a(0x200)]=_0x6543ee[_0x197b4a(0x236)](spawn,_0x599565[0x0],_0x599565['slice'](0x1),_0x163415);if(!this['process']||!this[_0x197b4a(0x200)][_0x197b4a(0x26c)]){_0x6543ee[_0x197b4a(0x277)](_0x13e315,new Error(_0x6543ee[_0x197b4a(0x271)]));return;}const _0x1b4eba={};this[_0x197b4a(0x200)][_0x197b4a(0x1db)]['on'](_0x6543ee['hEnKP'],_0xa03fc6=>{const _0x254a05=_0x197b4a,_0x196f85={'bTonk':function(_0x2eaf1f,_0x9c13ab){const _0x31dc87=a71_0x36ad;return _0x6543ee[_0x31dc87(0x25d)](_0x2eaf1f,_0x9c13ab);}},_0x11a9ac=_0xa03fc6[_0x254a05(0x2e8)]()['trim']()[_0x254a05(0x241)]('\x0a');for(const _0xbc600f of _0x11a9ac){if(/^(id|listen|port)=.*$/[_0x254a05(0x279)](_0xbc600f)){const [_0x378e75,_0x3bdefb]=_0xbc600f[_0x254a05(0x241)]('=',0x2);_0x6543ee['JpDYv'](_0x3bdefb,undefined)&&(_0x1b4eba[_0x378e75]=_0x3bdefb);}if(_0xbc600f[_0x254a05(0x2bd)]()['includes'](_0x6543ee[_0x254a05(0x1cd)])){const _0x473f9d=_0x6543ee[_0x254a05(0x22f)]['split']('|');let _0xdf53d8=0x0;while(!![]){switch(_0x473f9d[_0xdf53d8++]){case'0':this[_0x254a05(0x2bb)](_0x1b4eba);continue;case'1':return;case'2':this[_0x254a05(0x200)]['on'](_0x6543ee[_0x254a05(0x2c4)],_0x8ef038=>{const _0x27fb73=_0x254a05;_0x196f85[_0x27fb73(0x221)](_0x8ef038,0x0)&&this[_0x27fb73(0x251)]['error'](_0x27fb73(0x1f8)+_0x8ef038+_0x27fb73(0x1e2));});continue;case'3':this[_0x254a05(0x200)][_0x254a05(0x203)](_0x6543ee[_0x254a05(0x2c4)]);continue;case'4':this['process']['removeAllListeners'](_0x6543ee[_0x254a05(0x20b)]);continue;case'5':_0x6543ee[_0x254a05(0x264)](_0x12c02f);continue;case'6':this[_0x254a05(0x200)]['on'](_0x6543ee[_0x254a05(0x20b)],_0x219581=>{const _0x3d9581=_0x254a05;this['logger'][_0x3d9581(0x1c5)]('CLI\x20runtime\x20error\x20after\x20ready:\x20code='+_0x219581[_0x3d9581(0x261)]+_0x3d9581(0x1bc)+_0x219581[_0x3d9581(0x1e7)]);});continue;case'7':PerformanceTester[_0x254a05(0x206)](PerformanceEvents['SDK_CLI_START']);continue;}break;}}}}),this[_0x197b4a(0x200)][_0x197b4a(0x1d8)]['on'](_0x6543ee[_0x197b4a(0x2a7)],_0xfc2960=>{const _0x2e3cb2=_0x197b4a;this[_0x2e3cb2(0x251)][_0x2e3cb2(0x1c5)](_0x2e3cb2(0x1fb)+_0xfc2960[_0x2e3cb2(0x2e8)]()[_0x2e3cb2(0x2b8)]());}),this['process']['on'](_0x6543ee['YmCTn'],_0x439933=>{const _0x3a7180=_0x197b4a;_0x1b4eba[_0x3a7180(0x1c5)]=_0x3a7180(0x21c)+_0x439933['code']+_0x3a7180(0x2ad)+_0x439933[_0x3a7180(0x1e7)],PerformanceTester['end'](PerformanceEvents['SDK_CLI_START'],![],_0x439933),_0x57cb52[_0x3a7180(0x1e1)](_0x13e315,_0x439933);}),this[_0x197b4a(0x200)]['on'](_0x6543ee[_0x197b4a(0x2c4)],_0x42979f=>{const _0x28fb0d=_0x197b4a;_0x57cb52[_0x28fb0d(0x276)](_0x42979f,0x0)&&_0x57cb52[_0x28fb0d(0x26d)](_0x13e315,new Error(_0x28fb0d(0x1f8)+_0x42979f));});});}async[a71_0x3107eb(0x2c0)](_0x55b6b7=null){const _0x2f7bc3=a71_0x3107eb,_0x1cf30b={'HIvyZ':'stop:\x20CLI\x20process\x20exited','dVrds':function(_0x3345e2){return _0x3345e2();},'FRxOr':_0x2f7bc3(0x259),'entlp':_0x2f7bc3(0x226),'wDlGT':_0x2f7bc3(0x280),'mRXGq':function(_0x4b3bf1,_0x1d1fc5,_0x15ff35){return _0x4b3bf1(_0x1d1fc5,_0x15ff35);},'MlGji':_0x2f7bc3(0x2c3),'GxWxq':_0x2f7bc3(0x1bd),'TEQBH':function(_0xe55d72,_0x315ea3){return _0xe55d72(_0x315ea3);},'awklj':_0x2f7bc3(0x208),'exbon':'stop:\x20channel\x20closed','rqdsp':'stop:\x20error\x20in\x20closing\x20channel:\x20%s','OfnTs':_0x2f7bc3(0x291)};if(!this[_0x2f7bc3(0x2e6)]()){this[_0x2f7bc3(0x251)][_0x2f7bc3(0x1f4)](_0x1cf30b[_0x2f7bc3(0x220)]);return;}PerformanceTester[_0x2f7bc3(0x246)](PerformanceEvents['SDK_CLI_ON_STOP']),this[_0x2f7bc3(0x251)][_0x2f7bc3(0x1f4)](_0x1cf30b[_0x2f7bc3(0x215)]);try{if(this[_0x2f7bc3(0x292)]){const _0x115067=_0x1cf30b[_0x2f7bc3(0x28a)](require,_0x1cf30b[_0x2f7bc3(0x2e1)]),_0x1c97b0=this[_0x2f7bc3(0x2e9)][_0x2f7bc3(0x2c6)]?.[_0x2f7bc3(0x29f)]?.['toObject']()?.[_0x2f7bc3(0x22e)],_0x399347=TestInfo[_0x2f7bc3(0x282)](_0x1c97b0),_0x27ea47=_0x399347[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{},_0x40d808=await GrpcClient[_0x2f7bc3(0x284)]()['stopBinSession'](JSON[_0x2f7bc3(0x2eb)](_0x27ea47),_0x55b6b7);_0x40d808&&_0x40d808[_0x2f7bc3(0x272)]()&&_0x40d808['getAutomateBuildlink']()&&(BrowserstackCLI[_0x2f7bc3(0x1e4)]=_0x40d808[_0x2f7bc3(0x1be)](),BrowserstackCLI[_0x2f7bc3(0x260)]=_0x40d808[_0x2f7bc3(0x274)]()),await _0x115067[_0x2f7bc3(0x255)](),TestInfo[_0x2f7bc3(0x2ce)](),buildLogger['info'](_0x2f7bc3(0x2be)+BrowserstackCLI['BuildLink']+_0x2f7bc3(0x2ae)+BrowserstackCLI[_0x2f7bc3(0x260)]+_0x2f7bc3(0x2c8)+BrowserstackCLI[_0x2f7bc3(0x2b1)]);}await this[_0x2f7bc3(0x298)]();const _0x206db7=GrpcClient[_0x2f7bc3(0x284)]()[_0x2f7bc3(0x2ec)]();if(_0x206db7){try{_0x206db7['close'](),this[_0x2f7bc3(0x251)]['info'](_0x1cf30b[_0x2f7bc3(0x2e3)]);}catch(_0x5782c0){this[_0x2f7bc3(0x251)][_0x2f7bc3(0x1c5)](util[_0x2f7bc3(0x24e)](_0x1cf30b[_0x2f7bc3(0x23e)],_0x5782c0));}await new Promise(_0x4780dc=>setTimeout(_0x4780dc,0x1388));}this['process']&&this[_0x2f7bc3(0x200)][_0x2f7bc3(0x26c)]&&(this['logger'][_0x2f7bc3(0x1f4)](_0x1cf30b[_0x2f7bc3(0x258)]),this['process'][_0x2f7bc3(0x1ff)](),await new Promise(_0x20367a=>{const _0x582e87=_0x2f7bc3;let _0xf95fee=![];this[_0x582e87(0x200)]['on'](_0x1cf30b[_0x582e87(0x1ea)],()=>{const _0x3ce07c=_0x582e87;this['logger']['info'](_0x1cf30b['HIvyZ']),_0xf95fee=!![],PerformanceTester['end'](PerformanceEvents['SDK_CLI_ON_STOP']),_0x1cf30b[_0x3ce07c(0x2b4)](_0x20367a);}),_0x1cf30b[_0x582e87(0x2d0)](setTimeout,()=>{const _0x5de018=_0x582e87;!_0xf95fee&&(this[_0x5de018(0x251)][_0x5de018(0x1ca)](_0x1cf30b[_0x5de018(0x275)]),this[_0x5de018(0x200)]['kill'](_0x1cf30b[_0x5de018(0x23a)]),PerformanceTester[_0x5de018(0x206)](PerformanceEvents[_0x5de018(0x2e4)]),_0x1cf30b[_0x5de018(0x2b4)](_0x20367a));},0xbb8);}));}catch(_0x112341){PerformanceTester[_0x2f7bc3(0x206)](PerformanceEvents['SDK_CLI_ON_STOP'],![],util[_0x2f7bc3(0x24e)](_0x112341)),this[_0x2f7bc3(0x251)]['error'](_0x2f7bc3(0x1cf)+(_0x112341[_0x2f7bc3(0x2c2)]||_0x112341));}_0x55b6b7?this[_0x2f7bc3(0x200)][_0x2f7bc3(0x25c)]=0x1:this[_0x2f7bc3(0x200)][_0x2f7bc3(0x25c)]=0x0,this[_0x2f7bc3(0x235)]=![],this[_0x2f7bc3(0x292)]=![],process['env'][_0x2f7bc3(0x242)]=null;}async['unConfigureModules'](){const _0xfe9339=a71_0x3107eb,_0x1d0e46={};_0x1d0e46[_0xfe9339(0x289)]=_0xfe9339(0x254);const _0x3c07f6=_0x1d0e46;this[_0xfe9339(0x251)][_0xfe9339(0x1f4)](_0x3c07f6[_0xfe9339(0x289)]);}[a71_0x3107eb(0x2bb)](_0x2a08c9){const _0x21a10c=a71_0x3107eb;this[_0x21a10c(0x251)][_0x21a10c(0x1f4)](_0x21a10c(0x2b5)+JSON[_0x21a10c(0x2eb)](_0x2a08c9)),this[_0x21a10c(0x2cb)]=_0x2a08c9,GrpcClient['getInstance']()[_0x21a10c(0x2ab)](_0x2a08c9);}async[a71_0x3107eb(0x24c)](_0x5a6789){const _0x430c6e=a71_0x3107eb,_0x4e3629={'kwHOT':_0x430c6e(0x217),'fMvwK':function(_0x173204,_0x3a737f,_0x14d8a3){return _0x173204(_0x3a737f,_0x14d8a3);},'MNDCH':_0x430c6e(0x1c4)};PerformanceTester[_0x430c6e(0x246)](PerformanceEvents[_0x430c6e(0x216)]);try{this[_0x430c6e(0x251)][_0x430c6e(0x1f4)](_0x430c6e(0x1c6)+_0x5a6789);const _0x1544d0=GrpcClient[_0x430c6e(0x284)]();if(_0x1544d0&&_0x1544d0['getClient']()&&_0x1544d0[_0x430c6e(0x2ec)]()){this[_0x430c6e(0x251)][_0x430c6e(0x1f4)](_0x4e3629[_0x430c6e(0x2c5)]);return;}GrpcClient['getInstance']()['connect']();const _0x38fba7=await GrpcClient[_0x430c6e(0x284)]()[_0x430c6e(0x1e3)]();this[_0x430c6e(0x235)]=!![],this[_0x430c6e(0x24d)](_0x38fba7),PerformanceTester[_0x430c6e(0x206)](PerformanceEvents[_0x430c6e(0x216)]);}catch(_0x135d46){PerformanceTester[_0x430c6e(0x206)](PerformanceEvents[_0x430c6e(0x216)],![],util[_0x430c6e(0x24e)](_0x135d46)),this[_0x430c6e(0x251)][_0x430c6e(0x1c5)](_0x430c6e(0x21f)+util[_0x430c6e(0x24e)](_0x135d46)),_0x4e3629[_0x430c6e(0x2d3)](emitFallbackWarningOnce,_0x4e3629[_0x430c6e(0x2cf)],_0x135d46);}}static['isCLIEnabled'](){const _0x311e58=a71_0x3107eb;try{return BrowserstackCLI[_0x311e58(0x284)]()[_0x311e58(0x2e6)]();}catch(_0xb10c4d){return![];}}[a71_0x3107eb(0x2e6)](){const _0x1659ae=a71_0x3107eb,_0x102cb8={};_0x102cb8[_0x1659ae(0x1f3)]=function(_0x44d03a,_0x17eabb){return _0x44d03a!==_0x17eabb;},_0x102cb8[_0x1659ae(0x218)]=function(_0x28d996,_0x4e03c0){return _0x28d996===_0x4e03c0;},_0x102cb8[_0x1659ae(0x1e0)]=function(_0x4f0fd6,_0x1f1c67){return _0x4f0fd6!==_0x1f1c67;};const _0x18aebd=_0x102cb8;return CLIUtils[_0x1659ae(0x1fa)]()||this[_0x1659ae(0x292)]&&_0x18aebd[_0x1659ae(0x1f3)](this[_0x1659ae(0x200)],null)&&_0x18aebd[_0x1659ae(0x218)](this[_0x1659ae(0x200)][_0x1659ae(0x25c)],null)&&_0x18aebd[_0x1659ae(0x1f3)](GrpcClient[_0x1659ae(0x284)]()[_0x1659ae(0x281)](),null)&&!GrpcClient[_0x1659ae(0x284)]()['getChannel']()[_0x1659ae(0x2cd)]||this['isChildConnected']&&_0x18aebd['XaWrT'](GrpcClient[_0x1659ae(0x284)]()['getChannel'](),null)&&!GrpcClient[_0x1659ae(0x284)]()[_0x1659ae(0x2ec)]()['isClosed'];}[a71_0x3107eb(0x232)](){const _0x2cb4cc=a71_0x3107eb;return this[_0x2cb4cc(0x2e6)]()&&this[_0x2cb4cc(0x262)];}['getBrowserstackConfig'](){const _0x355eb3=a71_0x3107eb;return this[_0x355eb3(0x1d5)];}[a71_0x3107eb(0x1f7)](_0x51a20e,_0x1619ad,_0x2fd68e=null){const _0x58a6bb=a71_0x3107eb,_0x1f82a6={};_0x1f82a6[_0x58a6bb(0x25f)]=function(_0x4fdf63,_0x28b902){return _0x4fdf63||_0x28b902;},_0x1f82a6[_0x58a6bb(0x2db)]=function(_0x1d991b,_0x59b541){return _0x1d991b===_0x59b541;},_0x1f82a6[_0x58a6bb(0x273)]=function(_0x3b5389,_0x377630){return _0x3b5389||_0x377630;};const _0x582af6=_0x1f82a6;this['browserstackConfig']=_0x582af6['YTPft'](_0x51a20e,{}),this[_0x58a6bb(0x1eb)]=_0x1619ad,this[_0x58a6bb(0x2b6)]=_0x2fd68e,process[_0x58a6bb(0x1c8)][_0x58a6bb(0x237)]=this[_0x58a6bb(0x1d5)]?.['turboScale']||![];const _0x320c57=CLIUtils['getTestFrameworkDetail'](),_0x1d2df9=CLIUtils[_0x58a6bb(0x2cc)]();LoadTestModule[_0x58a6bb(0x2a8)](this[_0x58a6bb(0x1d5)])&&LoadTestModule[_0x58a6bb(0x1ec)](this[_0x58a6bb(0x1d5)]||{});const _0x2b4a23=_0x582af6[_0x58a6bb(0x2db)](_0x320c57[_0x58a6bb(0x23b)][_0x58a6bb(0x2bd)](),FRAMEWORKS['NEWMAN'][_0x58a6bb(0x2bd)]()),_0x37328b=CLI_SUPPORTED_FRAMEWORKS[_0x58a6bb(0x210)](_0x320c57[_0x58a6bb(0x23b)][_0x58a6bb(0x2bd)]()),_0x259df8=CLI_SUPPORTED_FRAMEWORKS['includes'](_0x1d2df9[_0x58a6bb(0x23b)][_0x58a6bb(0x2bd)]());helper['isTrue'](process['env'][_0x58a6bb(0x237)])||!(_0x37328b&&_0x582af6[_0x58a6bb(0x273)](_0x259df8,_0x2b4a23))?process[_0x58a6bb(0x1c8)][_0x58a6bb(0x2d4)]=![]:process[_0x58a6bb(0x1c8)][_0x58a6bb(0x2d4)]=!![];}async[a71_0x3107eb(0x1f2)](){const _0x2ff7c2=a71_0x3107eb,_0x51eed5={};_0x51eed5[_0x2ff7c2(0x2e5)]=_0x2ff7c2(0x286),_0x51eed5[_0x2ff7c2(0x27d)]=_0x2ff7c2(0x296);const _0x4f4df9=_0x51eed5;if(!this[_0x2ff7c2(0x28f)])try{this[_0x2ff7c2(0x251)]['debug'](_0x4f4df9[_0x2ff7c2(0x2e5)]),this['SDK_CLI_BIN_PATH']=await CLIUtils[_0x2ff7c2(0x22d)](this[_0x2ff7c2(0x1d5)]),!this[_0x2ff7c2(0x28f)]?this[_0x2ff7c2(0x251)][_0x2ff7c2(0x1c5)](_0x4f4df9['qeJhU']):this[_0x2ff7c2(0x251)][_0x2ff7c2(0x23c)](_0x2ff7c2(0x1e9)+this['SDK_CLI_BIN_PATH']);}catch(_0x2b60cf){this[_0x2ff7c2(0x251)][_0x2ff7c2(0x1c5)](_0x2ff7c2(0x20c)+_0x2b60cf[_0x2ff7c2(0x1e7)]),this[_0x2ff7c2(0x28f)]=null;}return this[_0x2ff7c2(0x28f)];}[a71_0x3107eb(0x2ac)](){const _0x54b27b=a71_0x3107eb;return helper['isTrue'](process['env'][_0x54b27b(0x2d4)]);}[a71_0x3107eb(0x2ca)](){return this['config'];}[a71_0x3107eb(0x2e0)](_0x27938a){const _0x356053=a71_0x3107eb,_0x4ff96b={};_0x4ff96b[_0x356053(0x2a6)]=function(_0x418094,_0xe91e19){return _0x418094===_0xe91e19;},_0x4ff96b[_0x356053(0x1ce)]='setConfig:\x20Empty\x20or\x20missing\x20config\x20string\x20from\x20response',_0x4ff96b[_0x356053(0x2de)]=function(_0x4c11a2,_0xe807c2){return _0x4c11a2>_0xe807c2;},_0x4ff96b['FxsjM']=_0x356053(0x1dc),_0x4ff96b[_0x356053(0x27b)]=_0x356053(0x1de),_0x4ff96b[_0x356053(0x270)]=_0x356053(0x2a9),_0x4ff96b[_0x356053(0x2e7)]=function(_0x5469e2,_0x19b75e){return _0x5469e2>_0x19b75e;},_0x4ff96b[_0x356053(0x2a4)]=_0x356053(0x265);const _0x4bf6c0=_0x4ff96b;try{const _0x3634c4=_0x27938a[_0x356053(0x2ca)]?_0x27938a[_0x356053(0x2ca)]():'';if(!_0x3634c4||_0x4bf6c0[_0x356053(0x2a6)](_0x3634c4[_0x356053(0x2b8)](),'')){this[_0x356053(0x251)][_0x356053(0x23c)](_0x4bf6c0['ZcnvW']);this[_0x356053(0x1d5)]&&_0x4bf6c0[_0x356053(0x2de)](Object[_0x356053(0x243)](this[_0x356053(0x1d5)])[_0x356053(0x2a5)],0x0)?(this[_0x356053(0x251)][_0x356053(0x23c)](_0x4bf6c0['FxsjM']),this[_0x356053(0x1ef)]={'server':this['browserstackConfig'][_0x356053(0x25b)],'hubUrl':this[_0x356053(0x1d5)][_0x356053(0x2df)],'accessibility':this[_0x356053(0x1d5)][_0x356053(0x253)]||![]}):(this[_0x356053(0x251)][_0x356053(0x23c)](_0x4bf6c0['ikocI']),this[_0x356053(0x1ef)]={});return;}this[_0x356053(0x1ef)]=JSON['parse'](_0x3634c4),this[_0x356053(0x251)][_0x356053(0x1f4)](_0x4bf6c0[_0x356053(0x270)]);}catch(_0x3b506f){this[_0x356053(0x251)][_0x356053(0x1c5)](_0x356053(0x2d2)+util[_0x356053(0x24e)](_0x3b506f)),this[_0x356053(0x1d5)]&&_0x4bf6c0['dqdsQ'](Object[_0x356053(0x243)](this[_0x356053(0x1d5)])['length'],0x0)?(this[_0x356053(0x251)][_0x356053(0x23c)](_0x4bf6c0['MSCiN']),this[_0x356053(0x1ef)]={'server':this[_0x356053(0x1d5)]['server'],'hubUrl':this[_0x356053(0x1d5)][_0x356053(0x2df)],'accessibility':this['browserstackConfig'][_0x356053(0x253)]||![]}):this[_0x356053(0x1ef)]={};}}['syncAccessibilityConfig'](){const _0x5afed0=a71_0x3107eb,_0x470521={};_0x470521[_0x5afed0(0x1f0)]=_0x5afed0(0x225),_0x470521[_0x5afed0(0x1e8)]='syncAccessibilityConfig:\x20CLI\x20config\x20not\x20available,\x20skipping\x20sync',_0x470521[_0x5afed0(0x2af)]='syncAccessibilityConfig:\x20Updated\x20browserstackConfig.accessibilityOptions\x20from\x20CLI\x20response';const _0x441820=_0x470521;try{if(!this[_0x5afed0(0x1d5)]){this[_0x5afed0(0x251)]['debug'](_0x441820['iwYVW']);return;}const _0x34c8bb=this[_0x5afed0(0x2ca)]();if(!_0x34c8bb){this[_0x5afed0(0x251)][_0x5afed0(0x23c)](_0x441820[_0x5afed0(0x1e8)]);return;}!helper[_0x5afed0(0x1c0)](_0x34c8bb[_0x5afed0(0x253)])&&(this['browserstackConfig']['accessibility']=_0x34c8bb[_0x5afed0(0x253)],this['logger'][_0x5afed0(0x23c)]('syncAccessibilityConfig:\x20Updated\x20browserstackConfig.accessibility\x20from\x20CLI\x20response:\x20'+_0x34c8bb[_0x5afed0(0x253)])),!helper['isUndefined'](_0x34c8bb['accessibilityOptions'])&&(this[_0x5afed0(0x1d5)][_0x5afed0(0x299)]=_0x34c8bb['accessibilityOptions'],this['logger'][_0x5afed0(0x23c)](_0x441820[_0x5afed0(0x2af)]));}catch(_0x29d04a){this[_0x5afed0(0x251)][_0x5afed0(0x1c5)]('syncAccessibilityConfig:\x20error='+util[_0x5afed0(0x24e)](_0x29d04a));}}[a71_0x3107eb(0x213)](_0x489922){const _0x4b1d7d=a71_0x3107eb;try{this[_0x4b1d7d(0x267)]=_0x489922[_0x4b1d7d(0x227)]()[_0x4b1d7d(0x241)](','),this[_0x4b1d7d(0x251)][_0x4b1d7d(0x1f4)](_0x4b1d7d(0x229)+JSON[_0x4b1d7d(0x2eb)](this[_0x4b1d7d(0x267)]));}catch(_0x3f1be2){this[_0x4b1d7d(0x251)][_0x4b1d7d(0x1c5)](_0x4b1d7d(0x2d7)+util[_0x4b1d7d(0x24e)](_0x3f1be2));}}[a71_0x3107eb(0x227)](){return this['cliArgs'];}[a71_0x3107eb(0x223)](){const _0x33072e=a71_0x3107eb,_0x19f450={'sufNE':function(_0x11a064,_0x411609){return _0x11a064===_0x411609;},'jGLlT':function(_0x4ff613,_0x3a3618){return _0x4ff613===_0x3a3618;},'afulp':function(_0x31f852,_0x308cec){return _0x31f852===_0x308cec;},'lTbvZ':function(_0x48c097,_0x4994cf){return _0x48c097(_0x4994cf);},'iyGqc':'./framework/newmanTestFramework.js'},_0x22d512=CLIUtils[_0x33072e(0x1c2)]();if(_0x19f450[_0x33072e(0x2c7)](_0x22d512['name'][_0x33072e(0x2bd)](),FRAMEWORKS['PLAYWRIGHT'][_0x33072e(0x2bd)]()))this[_0x33072e(0x283)]=new PlaywrightTestFramework([_0x22d512[_0x33072e(0x23b)]],_0x22d512[_0x33072e(0x21d)]);else{if(_0x19f450[_0x33072e(0x211)](_0x22d512[_0x33072e(0x23b)]['toLowerCase'](),FRAMEWORKS['CUCUMBER'][_0x33072e(0x2bd)]()))this[_0x33072e(0x283)]=new CucumberTestFramework([_0x22d512[_0x33072e(0x23b)]],_0x22d512[_0x33072e(0x21d)]);else{if(_0x19f450['sufNE'](_0x22d512[_0x33072e(0x23b)][_0x33072e(0x2bd)](),FRAMEWORKS[_0x33072e(0x2c9)][_0x33072e(0x2bd)]()))this['testFramework']=new JestTestFramework([_0x22d512[_0x33072e(0x23b)]],_0x22d512[_0x33072e(0x21d)]);else{if(_0x19f450[_0x33072e(0x231)](_0x22d512[_0x33072e(0x23b)]['toLowerCase'](),FRAMEWORKS[_0x33072e(0x2d1)][_0x33072e(0x2bd)]())){const _0x48e9f6=_0x19f450[_0x33072e(0x2bf)](require,_0x19f450[_0x33072e(0x1fd)]);this[_0x33072e(0x283)]=new _0x48e9f6([_0x22d512[_0x33072e(0x23b)]],_0x22d512['version']);}}}}}[a71_0x3107eb(0x202)](){const _0x5a4ebb=a71_0x3107eb,_0x590e2c={};_0x590e2c[_0x5a4ebb(0x24b)]=function(_0x3d79ef,_0x18ca2f){return _0x3d79ef===_0x18ca2f;};const _0x58f27c=_0x590e2c,_0x5dfae2=CLIUtils['getAutomationFrameworkDetail']();if(_0x58f27c[_0x5a4ebb(0x24b)](_0x5dfae2[_0x5a4ebb(0x23b)]['toLowerCase'](),FRAMEWORKS[_0x5a4ebb(0x2d6)][_0x5a4ebb(0x2bd)]()))this[_0x5a4ebb(0x23f)]=new PlaywrightAutomationFramework(_0x5dfae2['name'],_0x5dfae2[_0x5a4ebb(0x21d)]);else _0x58f27c[_0x5a4ebb(0x24b)](_0x5dfae2['name'][_0x5a4ebb(0x2bd)](),FRAMEWORKS[_0x5a4ebb(0x28b)]['toLowerCase']())&&(this[_0x5a4ebb(0x23f)]=new PuppeteerAutomationFramework(_0x5dfae2[_0x5a4ebb(0x23b)],_0x5dfae2[_0x5a4ebb(0x21d)]));}[a71_0x3107eb(0x295)](){const _0x5e8a19=a71_0x3107eb;return this[_0x5e8a19(0x283)];}[a71_0x3107eb(0x1ee)](){const _0x2f65a3=a71_0x3107eb;return this[_0x2f65a3(0x23f)];}[a71_0x3107eb(0x1bf)](){const _0x43a627=a71_0x3107eb;return this[_0x43a627(0x2b6)];}async[a71_0x3107eb(0x240)](_0x114fca,_0x561446=null,_0x2194ef=null){const _0x50c1ca=a71_0x3107eb,_0xe51c66={};_0xe51c66[_0x50c1ca(0x250)]='binSessionId\x20is\x20not\x20initialized.\x20Cannot\x20perform\x20test\x20orchestration.',_0xe51c66['BaCtT']=_0x50c1ca(0x2d8);const _0x2c0e=_0xe51c66;try{if(!this[_0x50c1ca(0x2b9)])return this[_0x50c1ca(0x251)][_0x50c1ca(0x1c5)](_0x2c0e[_0x50c1ca(0x250)]),null;if(GrpcClient&&!GrpcClient[_0x50c1ca(0x284)]()['client'])return this['logger'][_0x50c1ca(0x1c5)](_0x2c0e[_0x50c1ca(0x28c)]),null;const _0x55fc78=await GrpcClient['getInstance']()[_0x50c1ca(0x2ed)](_0x114fca,_0x561446,_0x2194ef);return _0x55fc78;}catch(_0x1d4dfb){return this['logger'][_0x50c1ca(0x1c5)]('Error\x20during\x20test\x20orchestration:\x20'+util['format'](_0x1d4dfb)),null;}}[a71_0x3107eb(0x2d9)](){const _0xfd4b71=a71_0x3107eb;return this[_0xfd4b71(0x1eb)];}}module[a71_0x3107eb(0x287)]=BrowserstackCLI;
1
+ const a71_0x5916ff=a71_0x2bb5;(function(_0x3caac8,_0x704cc1){const _0x1258cd=a71_0x2bb5,_0x23081d=_0x3caac8();while(!![]){try{const _0x2bbf42=-parseInt(_0x1258cd(0x28b))/0x1*(-parseInt(_0x1258cd(0x279))/0x2)+-parseInt(_0x1258cd(0x290))/0x3*(parseInt(_0x1258cd(0x22e))/0x4)+parseInt(_0x1258cd(0x1a9))/0x5+-parseInt(_0x1258cd(0x281))/0x6*(parseInt(_0x1258cd(0x2d7))/0x7)+-parseInt(_0x1258cd(0x2b1))/0x8*(-parseInt(_0x1258cd(0x24f))/0x9)+-parseInt(_0x1258cd(0x1af))/0xa+parseInt(_0x1258cd(0x1f1))/0xb*(parseInt(_0x1258cd(0x233))/0xc);if(_0x2bbf42===_0x704cc1)break;else _0x23081d['push'](_0x23081d['shift']());}catch(_0x4f660b){_0x23081d['push'](_0x23081d['shift']());}}}(a71_0x2a39,0x27c4f));function a71_0x2a39(){const _0x4fc47a=['loadModules:\x20skipping\x20driver\x20module\x20for\x20observability-only\x20framework','7149UQaeae','slice','process','isRunning','exitCode','connectBinSession','logger','GPICo','LqcUB','browserstackConfig','KareA','../../helpers/logger.js','FQSwY','jykmY','getHashedId','failed\x20to\x20start\x20CLI,\x20no\x20PID\x20found','Starting\x20as\x20child\x20process\x20with\x20session\x20ID:\x20','CLI\x20params\x20loaded:\x20','mFczH','dIZxj','JmCiO','onTBo','SITbm','Error:\x20[','parse','entries','getCliArgs','setConfig:\x20error=','testOrchestration','fhQUC','MjynC','gfWcL','getTesthub','512nnrsEI','ZBWEp','MfeAw','setConfig:\x20No\x20fallback\x20config\x20available,\x20using\x20empty\x20object','XtAZK','czgxW','binary\x20bootstrap\x20failed','getTestFrameworkDetail','dUbaI','JYJQV','syncAccessibilityConfig:\x20CLI\x20config\x20not\x20available,\x20skipping\x20sync','connect','isLTSSession','NEWMAN','pid','qNBrP','yFLiq','SDK_CONNECT_BIN_SESSION','EVJQJ','toObject','getTestDetails','Setting\x20up\x20CLI\x20binary\x20path...','CLI\x20process\x20exited\x20with\x20code\x20','\x20errors:','message','info','VsyYC','split','testOrchestrationSession','mergeIntoTags','join','Xbrwc','PLAYWRIGHT','../../helpers/helper.js','BuildLink','./grpcClient.js','client','setupCliPath','1491xjpZsw','binary\x20spawn\x20failed','shutdown','kill','aKGtV','AMCLz','getBrowserstackConfig','getSuccess','./framework/newmanTestFramework.js','error','buildLevelTags','resolve','errorsList','startChild:\x20client\x20and\x20channel\x20already\x20exist,\x20stopping\x20here','ZpEDG','isFalse','spawn\x20','isCLIEnabled','ms...','stop:\x20stopBinSession\x20build_link=','bootstrap:\x20failed\x20to\x20bootstrap=','toString','./cliUtils.js','configureModules','BYPSE','uPnuP','ixuXb','768730QmRpGa','debug','getInstance','setTestDetails','KJFuY','stop:\x20error\x20in\x20stop\x20session\x20exception=','2369170xXoDQO','stop:\x20channel\x20closed','turboScale','SDK_CLI_ON_STOP','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','stop:\x20aggregated\x20build-level\x20custom\x20tags\x20from\x20','BsYVH','binSessionId','Cuede','buildLogger','util','_modulesLoaded','mMzMi','Error\x20Code:\x20','hOcGN','CLI\x20runtime\x20error\x20after\x20ready:\x20code=','YYGoQ','cliParams','startMain:\x20Starting\x20main\x20process','\x20on\x20attempt\x20','SDK_CLI_START','getAccessibility','getAutomateBuildlink','syncAccessibilityConfig:\x20error=','killed','XJhvz','sdk','BROWSERSTACK_TURBOSCALE','Accessibility\x20success=','LZbWO','A11yEnabled','./framework/playwrightAutomationFramework.js','FxGWK','getConfig','../../helpers/performance/constants','errorTraceId','SDK_CLI_ON_BOOTSTRAP','includes','CUCUMBER','isTrue','BROWSERSTACK_CLI_ENABLED','code','unConfigureModules','automationFramework','\x20after\x20ready\x20—\x20gRPC\x20calls\x20will\x20fail','./framework/puppeteerAutomationFramework.js','CLI\x20binary\x20path\x20resolved\x20to:\x20','getTestFramework','nMVSp','accessibility','push','spawning\x20command=\x27','Failed\x20to\x20start\x20as\x20child\x20process:\x20','startChild','LNrou','setLTSSessionId','removeAllListeners','toLowerCase','stopBinSession','sJMPk','./framework/cucumberTestFramework.js','VUwAF','WARNING:\x20Binary\x20CLI\x20failed\x20to\x20start\x20—\x20running\x20in\x20direct\x20flow.','ycHSd','syncAccessibilityConfig','SIGKILL','57112vjmDSm','YItoR','setupAutomationFramework','Unconfiguring\x20modules','clearAttachments','Reason:\x20','rbgUK','isClosed','\x20worker\x20file(s)','getClient','trim','isArray','setBrowserstackConfig','setConfig','MODULE_NAME','Error\x20in\x20start\x20(code=','If\x20sdk-assets.browserstack.com\x20is\x20blocked\x20by\x20your\x20firewall,\x20whitelist\x20it.',',\x20retrying\x20in\x20','kSHlg','loadModules','Cause:\x20','getCliBinPath','zUBxE','HGlYt','write','BrowserstackCLI','BROWSERSTACK_TESTHUB_UUID','isChildConnected','yqaRN','JEST','BnExu','kECfJ','./framework/jestTestFramework.js','testFramework','_spawnAndAwaitReady','null','cliArgs','startMain','getAutomationFrameworkDetail','getBinSessionId','loadCliParams','./modules/observabilityModule.js','HashedID','BROWSERSTACK_CLI_BIN_SESSION_ID','close','hubUrl','server','EroCz','wLcbQ','keys','loadModules:\x20Loading\x20modules','\x20o11y_uuid=','config','fqtyl','format','start','sUnXt','exports','PQABD','./customTagManager.js','version','68QIVhxy','./modules/accessibilityModule.js','EQrcM','data','browserstackConfigPath','504cEQblI','setCliArgs','DVXiU','stdout','EJkcd','isCliEnabled','Failed\x20to\x20get\x20CLI\x20binary\x20path.\x20CLI\x20setup\x20failed.','oEYpl','forEach','app','stop:\x20build-level\x20tag\x20aggregation\x20failed:\x20','exit','./modules/playwrightDriverModule.js','isMainConnected','YTGxm','KEY_CUSTOM_TAGS','isDevelopmentEnv','uDQaf','isUndefined','JPpqa','binSessionId\x20is\x20not\x20initialized.\x20Cannot\x20perform\x20test\x20orchestration.','loading\x20Modules.','Error\x20in\x20setupCliPath:\x20','env','ZXDIX','O11yHashedID','stop:\x20CLI\x20stop\x20triggered','getChannel','32013aLJcgE','stop:\x20shutting\x20down\x20CLI','setConfig:\x20Empty\x20or\x20missing\x20config\x20string\x20from\x20response','setConfig:\x20Using\x20browserstackConfig\x20after\x20parse\x20error','getCLIParamsForDevEnv','ready','BepZu','configure','./uploadAttachmentsManager.js','PUPPETEER','child_process','nvkmG','vBEcc','SATKa','../../helpers/classLogger.js','rkdQo','stderr','setCliArgs:\x20cliArgs=','modules','gSKxO','PcDBG','name','JFZvY','ryrtU','loadModules:\x20binSessionId=','HOWvE','stack','2|3|4|5|1|7|6|0','wQfgq','VjeoS','test','startMain:\x20main-process\x20started','CLI\x20stderr:\x20','CLIUtils.setupCliPath\x20returned\x20null','WeMDa','child\x20connect\x20to\x20binary\x20failed','PBClS','accessibilityOptions','./modules/testhubModule.js','RYCdR','syncAccessibilityConfig:\x20Updated\x20browserstackConfig.accessibilityOptions\x20from\x20CLI\x20response','end','6vIwSwq','setConfig:\x20Using\x20browserstackConfig\x20as\x20fallback','ATgDp','stringify','BROWSERSTACK_CLI_ENV','EvyOW','oMIeb','SDK_CLI_BIN_PATH','4878daksvx','getAutomationFramework','Error\x20reading\x20accessibility\x20success\x20value:\x20','browserstackCliConfig','):\x20','stop','length','setCliArgs:\x20error=','getObservability','setupTestFramework','4678lklwdI','aYVdz','startBinSession','VFria'];a71_0x2a39=function(){return _0x4fc47a;};return a71_0x2a39();}function a71_0x2bb5(_0x2dcb56,_0x4f69cc){const _0x2a3909=a71_0x2a39();return a71_0x2bb5=function(_0x2bb5d4,_0x49094c){_0x2bb5d4=_0x2bb5d4-0x1a9;let _0x320034=_0x2a3909[_0x2bb5d4];return _0x320034;},a71_0x2bb5(_0x2dcb56,_0x4f69cc);}const {spawn}=require(a71_0x5916ff(0x259)),GrpcClient=require(a71_0x5916ff(0x2d4)),util=require(a71_0x5916ff(0x1b9)),CLIUtils=require(a71_0x5916ff(0x2ed)),PlaywrightAutomationFramework=require(a71_0x5916ff(0x1ce)),PuppeteerAutomationFramework=require(a71_0x5916ff(0x1dc)),PlaywrightTestFramework=require('./framework/playwrightTestFramework.js'),CucumberTestFramework=require(a71_0x5916ff(0x1eb)),JestTestFramework=require(a71_0x5916ff(0x211)),{createClassLogger}=require(a71_0x5916ff(0x25d)),PerformanceTester=require('../../helpers/performance/performance-tester.js'),{EVENTS:PerformanceEvents}=require(a71_0x5916ff(0x1d1)),AccessibilityModule=require(a71_0x5916ff(0x22f)),{CLI_SUPPORTED_FRAMEWORKS,FRAMEWORKS,BINARY_BUSY_ERROR_CODES,MAX_SPAWN_RETRIES,SPAWN_RETRY_DELAY_MS}=require('../utils/constants.js'),helper=require(a71_0x5916ff(0x2d2)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),buildLogger=require(a71_0x5916ff(0x29b))[a71_0x5916ff(0x1b8)],LoadTestModule=require('./modules/loadTestModule.js'),TestInfo=require('./TestInfo.js');let _fallbackWarningEmitted=![];function emitFallbackWarningOnce(_0x4e5aeb,_0x3ceb43){const _0x36e6c0=a71_0x5916ff,_0x1bdee6={};_0x1bdee6[_0x36e6c0(0x220)]='========================================================================',_0x1bdee6[_0x36e6c0(0x226)]=_0x36e6c0(0x1ed),_0x1bdee6[_0x36e6c0(0x20f)]=_0x36e6c0(0x201),_0x1bdee6['mMzMi']=function(_0x1e2175,_0x525f21){return _0x1e2175+_0x525f21;};const _0x79315c=_0x1bdee6;if(_fallbackWarningEmitted)return;_fallbackWarningEmitted=!![];const _0xcf04ef=['',_0x79315c[_0x36e6c0(0x220)],_0x79315c[_0x36e6c0(0x226)],_0x79315c[_0x36e6c0(0x20f)]];_0x4e5aeb&&_0xcf04ef[_0x36e6c0(0x1e1)](_0x36e6c0(0x1f6)+_0x4e5aeb);_0x3ceb43&&_0xcf04ef[_0x36e6c0(0x1e1)](_0x36e6c0(0x205)+(_0x3ceb43&&_0x3ceb43['stack']||util['format'](_0x3ceb43)));_0xcf04ef['push'](_0x79315c[_0x36e6c0(0x220)]);const _0x43c47a=_0xcf04ef[_0x36e6c0(0x2cf)]('\x0a');try{process[_0x36e6c0(0x25f)][_0x36e6c0(0x209)](_0x79315c[_0x36e6c0(0x1bb)](_0x43c47a,'\x0a'));}catch(_0x579b3a){}}class BrowserstackCLI{static #instance=null;static [a71_0x5916ff(0x2d3)]=null;static ['HashedID']=null;static [a71_0x5916ff(0x24c)]=null;static [a71_0x5916ff(0x1cd)]=![];[a71_0x5916ff(0x292)]=null;[a71_0x5916ff(0x240)]=![];[a71_0x5916ff(0x20c)]=![];[a71_0x5916ff(0x1ba)]=![];[a71_0x5916ff(0x1b6)]=null;['modules']={};['testFramework']=null;['automationFramework']=null;['logger']=createClassLogger(a71_0x5916ff(0x20a));constructor(){const _0x656c2c=a71_0x5916ff;this['initialized']=![],this[_0x656c2c(0x225)]={},this[_0x656c2c(0x215)]={},this['browserstackConfig']={};}static[a71_0x5916ff(0x1ab)](){return!BrowserstackCLI.#instance&&(BrowserstackCLI.#instance=new BrowserstackCLI()),BrowserstackCLI.#instance;}async['bootstrap'](){const _0x55e32f=a71_0x5916ff,_0x24dc72={'rkdQo':'Disabling\x20CLI.','HOWvE':function(_0x4b15a2,_0x8b34ea,_0x10d638){return _0x4b15a2(_0x8b34ea,_0x10d638);},'VUwAF':_0x55e32f(0x2b7)};if(helper[_0x55e32f(0x2e6)](process['env'][_0x55e32f(0x1d7)])){this[_0x55e32f(0x296)][_0x55e32f(0x2ca)](_0x24dc72[_0x55e32f(0x25e)]);return;}PerformanceTester[_0x55e32f(0x228)](PerformanceEvents[_0x55e32f(0x1d3)]);try{const _0x197764=process[_0x55e32f(0x24a)][_0x55e32f(0x21c)]||null;this[_0x55e32f(0x1f3)](),this[_0x55e32f(0x28a)]();if(_0x197764){await this[_0x55e32f(0x1e4)](_0x197764),PerformanceTester[_0x55e32f(0x278)](PerformanceEvents[_0x55e32f(0x1d3)]);return;}await this[_0x55e32f(0x216)]();}catch(_0x56b733){this[_0x55e32f(0x296)][_0x55e32f(0x2e0)](_0x55e32f(0x2eb)+(_0x56b733['stack']||_0x56b733)),_0x24dc72[_0x55e32f(0x268)](emitFallbackWarningOnce,_0x24dc72[_0x55e32f(0x1ec)],_0x56b733),await this[_0x55e32f(0x286)](),PerformanceTester[_0x55e32f(0x278)](PerformanceEvents[_0x55e32f(0x1d3)],![],util['format'](_0x56b733));}}async[a71_0x5916ff(0x216)](){const _0x2a4a6c=a71_0x5916ff,_0x4e1c45={};_0x4e1c45[_0x2a4a6c(0x25a)]=_0x2a4a6c(0x1c1),_0x4e1c45[_0x2a4a6c(0x2ae)]=_0x2a4a6c(0x26e);const _0x59e041=_0x4e1c45;this['logger'][_0x2a4a6c(0x2ca)](_0x59e041[_0x2a4a6c(0x25a)]),await this[_0x2a4a6c(0x228)](),this['logger']['debug'](_0x59e041[_0x2a4a6c(0x2ae)]);const _0xe82d20=await GrpcClient[_0x2a4a6c(0x1ab)]()[_0x2a4a6c(0x28d)]();this[_0x2a4a6c(0x240)]=!![],this[_0x2a4a6c(0x204)](_0xe82d20);}[a71_0x5916ff(0x204)](_0x12cc70){const _0x4e3eaa=a71_0x5916ff,_0x3e0178={'XxThc':function(_0x2c5b31,_0x4a610b){return _0x2c5b31(_0x4a610b);},'gfWcL':_0x4e3eaa(0x23f),'gVJPu':function(_0xfdd84c,_0x52e02f){return _0xfdd84c(_0x52e02f);},'PQABD':_0x4e3eaa(0x275),'HhFwP':function(_0xbca492,_0x2b8d0e){return _0xbca492(_0x2b8d0e);},'EVJQJ':_0x4e3eaa(0x21a),'EBwFc':_0x4e3eaa(0x223),'EJkcd':_0x4e3eaa(0x289),'fgwee':_0x4e3eaa(0x1c4),'uDQaf':_0x4e3eaa(0x2de),'wQfgq':function(_0x133ef1,_0x58041d){return _0x133ef1||_0x58041d;},'psBJd':function(_0x20beef,_0x20153a){return _0x20beef!==_0x20153a;},'AMCLz':function(_0x50b189,_0x49211f){return _0x50b189!==_0x49211f;},'ePOXi':function(_0x5786ca,_0x17b858){return _0x5786ca===_0x17b858;},'LZbWO':'function','ktknk':function(_0x3ca1f3,_0x34255d){return _0x3ca1f3&&_0x34255d;},'aYVdz':function(_0x2c2a78,_0x564c5a){return _0x2c2a78===_0x564c5a;},'rbgUK':_0x4e3eaa(0x28f),'YItoR':function(_0x1bdba6,_0x1c6cb6){return _0x1bdba6===_0x1c6cb6;},'UEMQi':function(_0x5ca3db,_0x4380c7){return _0x5ca3db(_0x4380c7);},'dIZxj':'./modules/puppeteerDriverModule.js'},_0x2c1d07=_0x3e0178['XxThc'](require,_0x3e0178[_0x4e3eaa(0x2af)]),_0x3493da=_0x3e0178['gVJPu'](require,_0x3e0178[_0x4e3eaa(0x22b)]),_0x42da24=_0x3e0178['HhFwP'](require,_0x3e0178[_0x4e3eaa(0x2c3)]);this[_0x4e3eaa(0x296)]['info'](_0x3e0178['EBwFc']),this['binSessionId']=_0x12cc70[_0x4e3eaa(0x218)](),this[_0x4e3eaa(0x296)][_0x4e3eaa(0x2ca)](_0x4e3eaa(0x267)+this['binSessionId']),this[_0x4e3eaa(0x1fe)](_0x12cc70),this[_0x4e3eaa(0x1ef)]();!this[_0x4e3eaa(0x20c)]&&this[_0x4e3eaa(0x234)](_0x12cc70);const _0x5537c6=_0x3e0178[_0x4e3eaa(0x237)],_0x5d25c2=_0x3e0178['fgwee'],_0x440284=_0x3e0178[_0x4e3eaa(0x244)],_0x1b47dc=_0x12cc70[_0x5537c6]()&&_0x12cc70[_0x5537c6]()[_0x440284](),_0x26008d=_0x12cc70[_0x5d25c2]()&&_0x12cc70[_0x5d25c2]()[_0x440284](),_0x4d95f3=process['env'][_0x4e3eaa(0x1b3)]&&JSON['parse'](process[_0x4e3eaa(0x24a)][_0x4e3eaa(0x1b3)]);_0x3e0178[_0x4e3eaa(0x26b)](_0x1b47dc,_0x26008d)&&(this['modules'][_0x3493da[_0x4e3eaa(0x1ff)]]=new _0x3493da(_0x12cc70[_0x4e3eaa(0x2b0)](),_0x4d95f3));_0x1b47dc&&(this['modules'][_0x42da24['MODULE_NAME']]=new _0x42da24(_0x12cc70[_0x5537c6]()));if(_0x26008d){this[_0x4e3eaa(0x261)][AccessibilityModule[_0x4e3eaa(0x1ff)]]=new AccessibilityModule(_0x12cc70[_0x5d25c2]());const _0x5cb984=this[_0x4e3eaa(0x225)]&&_0x3e0178['psBJd'](this[_0x4e3eaa(0x225)][_0x4e3eaa(0x23c)],undefined)&&_0x3e0178[_0x4e3eaa(0x2dc)](this[_0x4e3eaa(0x225)][_0x4e3eaa(0x23c)],null);BrowserstackCLI[_0x4e3eaa(0x1cd)]=!_0x5cb984;}else try{const _0x4a75d9=_0x12cc70[_0x5d25c2](),_0x14e071=_0x4a75d9&&_0x3e0178['ePOXi'](typeof _0x4a75d9[_0x440284],_0x3e0178[_0x4e3eaa(0x1cc)])?!!_0x4a75d9[_0x440284]():![];this[_0x4e3eaa(0x296)][_0x4e3eaa(0x2ca)](_0x4e3eaa(0x1cb)+_0x14e071);if(_0x3e0178['ktknk'](!_0x14e071,_0x4a75d9)){const _0x4cbf7e=_0x4a75d9[_0x4e3eaa(0x2c4)]?_0x4a75d9[_0x4e3eaa(0x2c4)]():_0x4a75d9;_0x4cbf7e[_0x4e3eaa(0x2e3)]&&Array[_0x4e3eaa(0x1fc)](_0x4cbf7e[_0x4e3eaa(0x2e3)])&&(this[_0x4e3eaa(0x296)][_0x4e3eaa(0x2e0)]('Accessibility\x20initialization\x20failed\x20with\x20'+_0x4cbf7e[_0x4e3eaa(0x2e3)][_0x4e3eaa(0x287)]+_0x4e3eaa(0x2c8)),_0x4cbf7e[_0x4e3eaa(0x2e3)][_0x4e3eaa(0x23b)]((_0x1238f5,_0x2e608f)=>{const _0x5d69d8=_0x4e3eaa;this[_0x5d69d8(0x296)][_0x5d69d8(0x2e0)](_0x5d69d8(0x2a7)+_0x1238f5['key']+']\x20'+_0x1238f5[_0x5d69d8(0x2c9)]);}),_0x4cbf7e[_0x4e3eaa(0x1d2)]&&this[_0x4e3eaa(0x296)]['error']('Error\x20Trace\x20ID:\x20'+_0x4cbf7e[_0x4e3eaa(0x1d2)]),_0x4cbf7e[_0x4e3eaa(0x1d8)]&&this[_0x4e3eaa(0x296)][_0x4e3eaa(0x2e0)](_0x4e3eaa(0x1bc)+_0x4cbf7e[_0x4e3eaa(0x1d8)]));}}catch(_0x42ba0b){this['logger']['error'](_0x4e3eaa(0x283)+_0x42ba0b);}const _0x5d6afd=CLIUtils[_0x4e3eaa(0x217)]();if(_0x3e0178[_0x4e3eaa(0x28c)](_0x5d6afd['name'][_0x4e3eaa(0x1e8)](),FRAMEWORKS['NEWMAN'][_0x4e3eaa(0x1e8)]()))this[_0x4e3eaa(0x296)][_0x4e3eaa(0x2ca)](_0x3e0178[_0x4e3eaa(0x1f7)]);else{if(_0x3e0178[_0x4e3eaa(0x1f2)](_0x5d6afd[_0x4e3eaa(0x264)]['toLowerCase'](),FRAMEWORKS[_0x4e3eaa(0x258)][_0x4e3eaa(0x1e8)]())){const _0x3b5a20=_0x3e0178['UEMQi'](require,_0x3e0178[_0x4e3eaa(0x2a3)]);this[_0x4e3eaa(0x261)][_0x3b5a20[_0x4e3eaa(0x1ff)]]=new _0x3b5a20(_0x4d95f3);}else this[_0x4e3eaa(0x261)][_0x2c1d07[_0x4e3eaa(0x1ff)]]=new _0x2c1d07(_0x4d95f3);}this[_0x4e3eaa(0x1ba)]=!![],this['configureModules']();}['getAccessibilityModule'](){const _0xb75ac=a71_0x5916ff;return this['modules'][AccessibilityModule[_0xb75ac(0x1ff)]];}async[a71_0x5916ff(0x2ee)](){const _0x38b1a9=a71_0x5916ff;for(const _0x421dcd in this['modules']){const _0x5e0b8d=this[_0x38b1a9(0x261)][_0x421dcd];await _0x5e0b8d[_0x38b1a9(0x256)](this[_0x38b1a9(0x1b6)],0x0,GrpcClient[_0x38b1a9(0x1ab)]()[_0x38b1a9(0x2d5)],this[_0x38b1a9(0x225)]);}}async['start'](){const _0x2fa633=a71_0x5916ff,_0x24c6fc={'gSKxO':_0x2fa633(0x239),'zUBxE':_0x2fa633(0x1c9),'YYGoQ':function(_0x364000,_0x3b853b){return _0x364000<=_0x3b853b;},'rWFQH':function(_0x5a4ecb,_0xda3510){return _0x5a4ecb>_0xda3510;},'kSHlg':function(_0x42355c,_0x4ed887){return _0x42355c<_0x4ed887;},'KareA':_0x2fa633(0x1f0),'mFczH':function(_0x51087f,_0x16c70a,_0x75c097){return _0x51087f(_0x16c70a,_0x75c097);},'sUnXt':_0x2fa633(0x2d8)};PerformanceTester['start'](PerformanceEvents['SDK_CLI_START']);if(CLIUtils[_0x2fa633(0x243)]())return this[_0x2fa633(0x219)](CLIUtils[_0x2fa633(0x253)]()),PerformanceTester[_0x2fa633(0x278)](PerformanceEvents[_0x2fa633(0x1c3)]),Promise[_0x2fa633(0x2e2)]();if(this[_0x2fa633(0x292)]&&this[_0x2fa633(0x292)]['connected'])return PerformanceTester['end'](PerformanceEvents['SDK_CLI_START']),Promise[_0x2fa633(0x2e2)]();const _0x98e6c7=await this[_0x2fa633(0x206)]();if(!_0x98e6c7)throw new Error(_0x24c6fc[_0x2fa633(0x262)]);const _0x4240d7=[_0x98e6c7,_0x24c6fc[_0x2fa633(0x207)]];this['logger'][_0x2fa633(0x2ca)](_0x2fa633(0x1e2)+_0x4240d7+'\x27');for(let _0xc28e21=0x1;_0x24c6fc[_0x2fa633(0x1bf)](_0xc28e21,MAX_SPAWN_RETRIES);_0xc28e21++){try{await this[_0x2fa633(0x213)](_0x4240d7);_0x24c6fc['rWFQH'](_0xc28e21,0x1)&&this[_0x2fa633(0x296)][_0x2fa633(0x2ca)]('spawn\x20succeeded\x20on\x20attempt\x20'+_0xc28e21+'/'+MAX_SPAWN_RETRIES);break;}catch(_0x40612c){if(BINARY_BUSY_ERROR_CODES['includes'](_0x40612c[_0x2fa633(0x1d8)])&&_0x24c6fc[_0x2fa633(0x203)](_0xc28e21,MAX_SPAWN_RETRIES))this[_0x2fa633(0x296)]['warn'](_0x2fa633(0x2e7)+_0x40612c[_0x2fa633(0x1d8)]+_0x2fa633(0x1c2)+_0xc28e21+'/'+MAX_SPAWN_RETRIES+_0x2fa633(0x202)+SPAWN_RETRY_DELAY_MS+_0x2fa633(0x2e9)),this[_0x2fa633(0x292)]&&(this[_0x2fa633(0x292)][_0x2fa633(0x1e7)](),!this[_0x2fa633(0x292)][_0x2fa633(0x1c7)]&&this['process']['kill'](_0x24c6fc[_0x2fa633(0x29a)]),this[_0x2fa633(0x292)]=null),await new Promise(_0x327375=>setTimeout(_0x327375,SPAWN_RETRY_DELAY_MS));else{_0x24c6fc[_0x2fa633(0x2a2)](emitFallbackWarningOnce,_0x24c6fc[_0x2fa633(0x229)],_0x40612c);throw _0x40612c;}}}}[a71_0x5916ff(0x213)](_0x24caeb){const _0x1f1c7b=a71_0x5916ff,_0x1b8525={'vBEcc':function(_0x3c1e06,_0x5be72f){return _0x3c1e06!==_0x5be72f;},'czgxW':_0x1f1c7b(0x254),'BepZu':_0x1f1c7b(0x26a),'VFria':_0x1f1c7b(0x2e0),'Cuede':_0x1f1c7b(0x21d),'JFZvY':function(_0xc8fe38){return _0xc8fe38();},'ATgDp':function(_0x151ce2,_0x15ef68){return _0x151ce2(_0x15ef68);},'wLcbQ':function(_0x279335,_0x4dc3fa){return _0x279335!==_0x4dc3fa;},'KJFuY':function(_0x1baccd,_0x32698c){return _0x1baccd(_0x32698c);},'ZOKaq':function(_0x4655f6,_0x5e73e2,_0x48f5e2,_0x5f0e8b){return _0x4655f6(_0x5e73e2,_0x48f5e2,_0x5f0e8b);},'LqcUB':_0x1f1c7b(0x29f),'RYCdR':_0x1f1c7b(0x231)};return new Promise((_0x348f4d,_0x4487b4)=>{const _0x1a4e82=_0x1f1c7b,_0x57f008={'TsrvR':function(_0x1af598,_0x5d1b13){const _0x3ae718=a71_0x2bb5;return _0x1b8525[_0x3ae718(0x221)](_0x1af598,_0x5d1b13);},'ZnKbi':function(_0x5cad5e,_0x5852c5){const _0xc5f234=a71_0x2bb5;return _0x1b8525[_0xc5f234(0x25b)](_0x5cad5e,_0x5852c5);},'SITbm':function(_0x56b4ba,_0x166682){return _0x1b8525['KJFuY'](_0x56b4ba,_0x166682);}},_0x1085df={};_0x1085df[_0x1a4e82(0x24a)]=process[_0x1a4e82(0x24a)],this[_0x1a4e82(0x292)]=_0x1b8525['ZOKaq'](spawn,_0x24caeb[0x0],_0x24caeb[_0x1a4e82(0x291)](0x1),_0x1085df);if(!this[_0x1a4e82(0x292)]||!this[_0x1a4e82(0x292)][_0x1a4e82(0x2bf)]){_0x1b8525[_0x1a4e82(0x1ad)](_0x4487b4,new Error(_0x1b8525[_0x1a4e82(0x298)]));return;}const _0x149a06={};this[_0x1a4e82(0x292)][_0x1a4e82(0x236)]['on'](_0x1b8525[_0x1a4e82(0x276)],_0x11d746=>{const _0x3a5219=_0x1a4e82,_0x5f0314=_0x11d746['toString']()[_0x3a5219(0x1fb)]()[_0x3a5219(0x2cc)]('\x0a');for(const _0x2fc74a of _0x5f0314){if(/^(id|listen|port)=.*$/[_0x3a5219(0x26d)](_0x2fc74a)){const [_0x84a056,_0x354795]=_0x2fc74a[_0x3a5219(0x2cc)]('=',0x2);_0x1b8525[_0x3a5219(0x25b)](_0x354795,undefined)&&(_0x149a06[_0x84a056]=_0x354795);}if(_0x2fc74a[_0x3a5219(0x1e8)]()[_0x3a5219(0x1d4)](_0x1b8525[_0x3a5219(0x2b6)])){const _0x1637e=_0x1b8525[_0x3a5219(0x255)][_0x3a5219(0x2cc)]('|');let _0x31f2a2=0x0;while(!![]){switch(_0x1637e[_0x31f2a2++]){case'0':return;case'1':this[_0x3a5219(0x292)]['on'](_0x1b8525[_0x3a5219(0x28e)],_0x365b5b=>{const _0x1b9860=_0x3a5219;this['logger'][_0x1b9860(0x2e0)](_0x1b9860(0x1be)+_0x365b5b[_0x1b9860(0x1d8)]+'\x20msg='+_0x365b5b[_0x1b9860(0x2c9)]);});continue;case'2':this[_0x3a5219(0x219)](_0x149a06);continue;case'3':PerformanceTester[_0x3a5219(0x278)](PerformanceEvents[_0x3a5219(0x1c3)]);continue;case'4':this['process'][_0x3a5219(0x1e7)](_0x1b8525[_0x3a5219(0x28e)]);continue;case'5':this[_0x3a5219(0x292)][_0x3a5219(0x1e7)](_0x1b8525[_0x3a5219(0x1b7)]);continue;case'6':_0x1b8525[_0x3a5219(0x265)](_0x348f4d);continue;case'7':this['process']['on'](_0x1b8525[_0x3a5219(0x1b7)],_0xc72560=>{const _0x29d63a=_0x3a5219;_0x57f008['TsrvR'](_0xc72560,0x0)&&this['logger']['error'](_0x29d63a(0x2c7)+_0xc72560+_0x29d63a(0x1db));});continue;}break;}}}}),this[_0x1a4e82(0x292)][_0x1a4e82(0x25f)]['on'](_0x1b8525[_0x1a4e82(0x276)],_0x5999f2=>{const _0x21ea7d=_0x1a4e82;this[_0x21ea7d(0x296)][_0x21ea7d(0x2e0)](_0x21ea7d(0x26f)+_0x5999f2[_0x21ea7d(0x2ec)]()['trim']());}),this['process']['on'](_0x1b8525[_0x1a4e82(0x28e)],_0x5200ca=>{const _0x384291=_0x1a4e82;_0x149a06[_0x384291(0x2e0)]=_0x384291(0x200)+_0x5200ca[_0x384291(0x1d8)]+_0x384291(0x285)+_0x5200ca[_0x384291(0x2c9)],PerformanceTester[_0x384291(0x278)](PerformanceEvents[_0x384291(0x1c3)],![],_0x5200ca),_0x1b8525[_0x384291(0x27b)](_0x4487b4,_0x5200ca);}),this[_0x1a4e82(0x292)]['on'](_0x1b8525[_0x1a4e82(0x1b7)],_0x2df861=>{const _0x1e8927=_0x1a4e82;_0x57f008['ZnKbi'](_0x2df861,0x0)&&_0x57f008[_0x1e8927(0x2a6)](_0x4487b4,new Error(_0x1e8927(0x2c7)+_0x2df861));});});}async['stop'](_0x56c8f4=null){const _0x1ed649=a71_0x5916ff,_0x471562={'BsYVH':'stop:\x20CLI\x20process\x20exited','ABKnD':function(_0x4cf293){return _0x4cf293();},'Xbrwc':'stop:\x20process\x20exit\x20timeout,\x20forcing\x20kill','ZBWEp':'SIGKILL','JPpqa':function(_0x450a7f){return _0x450a7f();},'DVXiU':_0x1ed649(0x23e),'EhxTA':function(_0x5a0428,_0x13bb95,_0x31508e){return _0x5a0428(_0x13bb95,_0x31508e);},'JYJQV':'stop:\x20CLI\x20is\x20not\x20running,\x20skipping\x20stop','jykmY':_0x1ed649(0x24d),'HGlYt':function(_0x24dddf,_0x1a6f21){return _0x24dddf(_0x1a6f21);},'FxGWK':_0x1ed649(0x257),'PcDBG':function(_0x162d42,_0x4b65fb){return _0x162d42(_0x4b65fb);},'aKGtV':_0x1ed649(0x22c),'oMIeb':function(_0x393a22,_0x3d5354){return _0x393a22!==_0x3d5354;},'IzvLK':_0x1ed649(0x214),'oEYpl':function(_0x40cddf,_0x302476){return _0x40cddf>_0x302476;},'YTGxm':_0x1ed649(0x1b0),'JmCiO':'stop:\x20error\x20in\x20closing\x20channel:\x20%s','fwdpj':_0x1ed649(0x250)};if(!this[_0x1ed649(0x293)]()){this[_0x1ed649(0x296)][_0x1ed649(0x2ca)](_0x471562[_0x1ed649(0x2ba)]);return;}PerformanceTester[_0x1ed649(0x228)](PerformanceEvents[_0x1ed649(0x1b2)]),this[_0x1ed649(0x296)][_0x1ed649(0x2ca)](_0x471562[_0x1ed649(0x29d)]);try{if(this[_0x1ed649(0x240)]){const _0x398362=_0x471562[_0x1ed649(0x208)](require,_0x471562[_0x1ed649(0x1cf)]),_0x22b65a=this[_0x1ed649(0x261)]['TestHubModule']?.['testhubConfig']?.[_0x1ed649(0x2c4)]()?.['buildHashedId'];try{const _0x1a2dd9=_0x471562[_0x1ed649(0x263)](require,_0x471562[_0x1ed649(0x2db)]),_0x4d0dc6=process[_0x1ed649(0x24a)][_0x1ed649(0x20b)];if(_0x4d0dc6&&_0x471562[_0x1ed649(0x27f)](_0x4d0dc6,_0x471562['IzvLK'])&&_0x22b65a){const _0x41af66=_0x1a2dd9['aggregateBuildLevelTagsFromTmp'](_0x4d0dc6,_0x22b65a);if(_0x471562[_0x1ed649(0x23a)](_0x41af66,0x0)){const _0x5b4a07=TestInfo[_0x1ed649(0x2c5)](_0x22b65a)||{},_0x29c68e=_0x5b4a07[TestFrameworkConstants[_0x1ed649(0x242)]]||{};for(const [_0x311502,_0x492c3d]of Object[_0x1ed649(0x2a9)](_0x1a2dd9[_0x1ed649(0x2e1)][_0x22b65a]||{})){Array[_0x1ed649(0x1fc)](_0x492c3d)&&_0x1a2dd9[_0x1ed649(0x2ce)](_0x29c68e,_0x311502,_0x492c3d);}_0x5b4a07[TestFrameworkConstants[_0x1ed649(0x242)]]=_0x29c68e,TestInfo[_0x1ed649(0x1ac)](_0x22b65a,_0x5b4a07),this[_0x1ed649(0x296)][_0x1ed649(0x2ca)](_0x1ed649(0x1b4)+_0x41af66+_0x1ed649(0x1f9));}}}catch(_0x131c18){this['logger'][_0x1ed649(0x2e0)](_0x1ed649(0x23d)+(_0x131c18&&_0x131c18['stack']?_0x131c18[_0x1ed649(0x269)]:_0x131c18));}const _0x27c7a4=TestInfo[_0x1ed649(0x2c5)](_0x22b65a),_0x50326d=_0x27c7a4[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{},_0x1dfa29=await GrpcClient[_0x1ed649(0x1ab)]()[_0x1ed649(0x1e9)](JSON[_0x1ed649(0x27c)](_0x50326d),_0x56c8f4);_0x1dfa29&&_0x1dfa29[_0x1ed649(0x2de)]()&&_0x1dfa29[_0x1ed649(0x1c5)]()&&(BrowserstackCLI[_0x1ed649(0x2d3)]=_0x1dfa29[_0x1ed649(0x1c5)](),BrowserstackCLI['HashedID']=_0x1dfa29[_0x1ed649(0x29e)]()),await _0x398362[_0x1ed649(0x1f5)](),TestInfo[_0x1ed649(0x2d9)](),buildLogger['info'](_0x1ed649(0x2ea)+BrowserstackCLI[_0x1ed649(0x2d3)]+'\x20hashed_id='+BrowserstackCLI[_0x1ed649(0x21b)]+_0x1ed649(0x224)+BrowserstackCLI[_0x1ed649(0x24c)]);}await this[_0x1ed649(0x1d9)]();const _0x54a20a=GrpcClient['getInstance']()[_0x1ed649(0x24e)]();if(_0x54a20a){try{_0x54a20a[_0x1ed649(0x21d)](),this['logger']['info'](_0x471562[_0x1ed649(0x241)]);}catch(_0xa8514e){this[_0x1ed649(0x296)][_0x1ed649(0x2e0)](util[_0x1ed649(0x227)](_0x471562[_0x1ed649(0x2a4)],_0xa8514e));}await new Promise(_0x348540=>setTimeout(_0x348540,0x1388));}this[_0x1ed649(0x292)]&&this[_0x1ed649(0x292)]['pid']&&(this[_0x1ed649(0x296)][_0x1ed649(0x2ca)](_0x471562['fwdpj']),this[_0x1ed649(0x292)][_0x1ed649(0x2da)](),await new Promise(_0xa48374=>{const _0x3de625=_0x1ed649,_0x46f046={'WeMDa':_0x471562[_0x3de625(0x2d0)],'LNrou':_0x471562[_0x3de625(0x2b2)],'hvSiF':function(_0x4d3d2e){const _0x517eb1=_0x3de625;return _0x471562[_0x517eb1(0x246)](_0x4d3d2e);}};let _0x12ba15=![];this[_0x3de625(0x292)]['on'](_0x471562[_0x3de625(0x235)],()=>{const _0x48d342=_0x3de625;this[_0x48d342(0x296)]['info'](_0x471562[_0x48d342(0x1b5)]),_0x12ba15=!![],PerformanceTester[_0x48d342(0x278)](PerformanceEvents['SDK_CLI_ON_STOP']),_0x471562['ABKnD'](_0xa48374);}),_0x471562['EhxTA'](setTimeout,()=>{const _0x18b9b1=_0x3de625;!_0x12ba15&&(this[_0x18b9b1(0x296)]['warn'](_0x46f046[_0x18b9b1(0x271)]),this['process'][_0x18b9b1(0x2da)](_0x46f046[_0x18b9b1(0x1e5)]),PerformanceTester['end'](PerformanceEvents['SDK_CLI_ON_STOP']),_0x46f046['hvSiF'](_0xa48374));},0xbb8);}));}catch(_0x4dd5a1){PerformanceTester['end'](PerformanceEvents[_0x1ed649(0x1b2)],![],util[_0x1ed649(0x227)](_0x4dd5a1)),this[_0x1ed649(0x296)][_0x1ed649(0x2e0)](_0x1ed649(0x1ae)+(_0x4dd5a1[_0x1ed649(0x269)]||_0x4dd5a1));}_0x56c8f4?this['process']['exitCode']=0x1:this[_0x1ed649(0x292)][_0x1ed649(0x294)]=0x0,this[_0x1ed649(0x20c)]=![],this[_0x1ed649(0x240)]=![],process[_0x1ed649(0x24a)][_0x1ed649(0x27d)]=null;}async[a71_0x5916ff(0x1d9)](){const _0x3d1f2f=a71_0x5916ff,_0x49d94e={};_0x49d94e[_0x3d1f2f(0x2cb)]=_0x3d1f2f(0x1f4);const _0x45c089=_0x49d94e;this[_0x3d1f2f(0x296)][_0x3d1f2f(0x2ca)](_0x45c089[_0x3d1f2f(0x2cb)]);}[a71_0x5916ff(0x219)](_0x11430f){const _0x46ab28=a71_0x5916ff;this[_0x46ab28(0x296)][_0x46ab28(0x2ca)](_0x46ab28(0x2a1)+JSON[_0x46ab28(0x27c)](_0x11430f)),this[_0x46ab28(0x1c0)]=_0x11430f,GrpcClient['getInstance']()['init'](_0x11430f);}async[a71_0x5916ff(0x1e4)](_0x52d5e2){const _0xf83c24=a71_0x5916ff,_0x234b61={'yFLiq':_0xf83c24(0x2e4),'onTBo':function(_0x3bac03,_0x2da331,_0xd527d7){return _0x3bac03(_0x2da331,_0xd527d7);},'OYAeq':_0xf83c24(0x272)};PerformanceTester[_0xf83c24(0x228)](PerformanceEvents['SDK_CONNECT_BIN_SESSION']);try{this['logger'][_0xf83c24(0x2ca)](_0xf83c24(0x2a0)+_0x52d5e2);const _0x42edbf=GrpcClient[_0xf83c24(0x1ab)]();if(_0x42edbf&&_0x42edbf['getClient']()&&_0x42edbf[_0xf83c24(0x24e)]()){this[_0xf83c24(0x296)]['info'](_0x234b61[_0xf83c24(0x2c1)]);return;}GrpcClient[_0xf83c24(0x1ab)]()[_0xf83c24(0x2bc)]();const _0x5b514e=await GrpcClient[_0xf83c24(0x1ab)]()[_0xf83c24(0x295)]();this[_0xf83c24(0x20c)]=!![],this[_0xf83c24(0x204)](_0x5b514e),PerformanceTester['end'](PerformanceEvents[_0xf83c24(0x2c2)]);}catch(_0x2cafc5){PerformanceTester['end'](PerformanceEvents[_0xf83c24(0x2c2)],![],util['format'](_0x2cafc5)),this[_0xf83c24(0x296)][_0xf83c24(0x2e0)](_0xf83c24(0x1e3)+util[_0xf83c24(0x227)](_0x2cafc5)),_0x234b61[_0xf83c24(0x2a5)](emitFallbackWarningOnce,_0x234b61['OYAeq'],_0x2cafc5);}}static[a71_0x5916ff(0x2e8)](){const _0x2e848d=a71_0x5916ff;try{return BrowserstackCLI[_0x2e848d(0x1ab)]()[_0x2e848d(0x293)]();}catch(_0x422f4a){return![];}}[a71_0x5916ff(0x293)](){const _0x31221c=a71_0x5916ff,_0x5bcc79={};_0x5bcc79['FQSwY']=function(_0x4f7010,_0x32f7e6){return _0x4f7010!==_0x32f7e6;},_0x5bcc79[_0x31221c(0x24b)]=function(_0x1d4778,_0x4c4815){return _0x1d4778===_0x4c4815;},_0x5bcc79[_0x31221c(0x1df)]=function(_0x48513,_0x1982de){return _0x48513!==_0x1982de;};const _0x478e35=_0x5bcc79;return CLIUtils[_0x31221c(0x243)]()||this[_0x31221c(0x240)]&&_0x478e35[_0x31221c(0x29c)](this['process'],null)&&_0x478e35[_0x31221c(0x24b)](this[_0x31221c(0x292)][_0x31221c(0x294)],null)&&_0x478e35[_0x31221c(0x29c)](GrpcClient[_0x31221c(0x1ab)]()[_0x31221c(0x1fa)](),null)&&!GrpcClient[_0x31221c(0x1ab)]()[_0x31221c(0x24e)]()[_0x31221c(0x1f8)]||this[_0x31221c(0x20c)]&&_0x478e35[_0x31221c(0x1df)](GrpcClient[_0x31221c(0x1ab)]()[_0x31221c(0x24e)](),null)&&!GrpcClient[_0x31221c(0x1ab)]()[_0x31221c(0x24e)]()[_0x31221c(0x1f8)];}['isBootstrapped'](){const _0x5c30d5=a71_0x5916ff;return this[_0x5c30d5(0x293)]()&&this['_modulesLoaded'];}[a71_0x5916ff(0x2dd)](){const _0x1a9980=a71_0x5916ff;return this[_0x1a9980(0x299)];}[a71_0x5916ff(0x1fd)](_0x102c7b,_0x3c3ff1,_0x1dc099=null){const _0x4b0c7a=a71_0x5916ff,_0x497cd0={};_0x497cd0['uPnuP']=function(_0x2735a4,_0x192794){return _0x2735a4||_0x192794;},_0x497cd0[_0x4b0c7a(0x1bd)]=function(_0x1e22a0,_0x3ae86e){return _0x1e22a0===_0x3ae86e;};const _0x1a8232=_0x497cd0;this[_0x4b0c7a(0x299)]=_0x1a8232[_0x4b0c7a(0x2f0)](_0x102c7b,{}),this[_0x4b0c7a(0x232)]=_0x3c3ff1,this[_0x4b0c7a(0x284)]=_0x1dc099,process[_0x4b0c7a(0x24a)][_0x4b0c7a(0x1ca)]=this[_0x4b0c7a(0x299)]?.[_0x4b0c7a(0x1b1)]||![];const _0x203f1b=CLIUtils[_0x4b0c7a(0x2b8)](),_0x16dd3c=CLIUtils[_0x4b0c7a(0x217)]();LoadTestModule[_0x4b0c7a(0x2bd)](this[_0x4b0c7a(0x299)])&&LoadTestModule[_0x4b0c7a(0x1e6)](this[_0x4b0c7a(0x299)]||{});const _0x569c0e=_0x1a8232[_0x4b0c7a(0x1bd)](_0x203f1b['name'][_0x4b0c7a(0x1e8)](),FRAMEWORKS[_0x4b0c7a(0x2be)][_0x4b0c7a(0x1e8)]()),_0x5730d4=CLI_SUPPORTED_FRAMEWORKS['includes'](_0x203f1b[_0x4b0c7a(0x264)][_0x4b0c7a(0x1e8)]()),_0xa47534=CLI_SUPPORTED_FRAMEWORKS[_0x4b0c7a(0x1d4)](_0x16dd3c[_0x4b0c7a(0x264)][_0x4b0c7a(0x1e8)]());helper['isTrue'](process[_0x4b0c7a(0x24a)][_0x4b0c7a(0x1ca)])||!(_0x5730d4&&_0x1a8232['uPnuP'](_0xa47534,_0x569c0e))?process[_0x4b0c7a(0x24a)][_0x4b0c7a(0x1d7)]=![]:process[_0x4b0c7a(0x24a)][_0x4b0c7a(0x1d7)]=!![];}async['getCliBinPath'](){const _0x10887f=a71_0x5916ff,_0x3477e8={};_0x3477e8[_0x10887f(0x297)]=_0x10887f(0x2c6),_0x3477e8[_0x10887f(0x25c)]=_0x10887f(0x270);const _0x5400d3=_0x3477e8;if(!this[_0x10887f(0x280)])try{this[_0x10887f(0x296)][_0x10887f(0x1aa)](_0x5400d3[_0x10887f(0x297)]),this['SDK_CLI_BIN_PATH']=await CLIUtils[_0x10887f(0x2d6)](this['browserstackConfig']),!this[_0x10887f(0x280)]?this[_0x10887f(0x296)][_0x10887f(0x2e0)](_0x5400d3[_0x10887f(0x25c)]):this[_0x10887f(0x296)][_0x10887f(0x1aa)](_0x10887f(0x1dd)+this[_0x10887f(0x280)]);}catch(_0x5944ff){this[_0x10887f(0x296)]['error'](_0x10887f(0x249)+_0x5944ff[_0x10887f(0x2c9)]),this['SDK_CLI_BIN_PATH']=null;}return this[_0x10887f(0x280)];}[a71_0x5916ff(0x238)](){const _0x4923a0=a71_0x5916ff;return helper[_0x4923a0(0x1d6)](process[_0x4923a0(0x24a)][_0x4923a0(0x1d7)]);}['getConfig'](){return this['config'];}[a71_0x5916ff(0x1fe)](_0x52aaee){const _0x182161=a71_0x5916ff,_0x2a0746={};_0x2a0746[_0x182161(0x2ad)]=function(_0x39e430,_0x7437bc){return _0x39e430===_0x7437bc;},_0x2a0746[_0x182161(0x2c0)]=_0x182161(0x251),_0x2a0746[_0x182161(0x2ef)]=function(_0x5d47ea,_0xc185bc){return _0x5d47ea>_0xc185bc;},_0x2a0746[_0x182161(0x2e5)]=_0x182161(0x27a),_0x2a0746['MfeAw']=_0x182161(0x2b4),_0x2a0746['ixuXb']=_0x182161(0x248),_0x2a0746[_0x182161(0x27e)]=_0x182161(0x252);const _0xf8ed33=_0x2a0746;try{const _0x1b28dd=_0x52aaee[_0x182161(0x1d0)]?_0x52aaee[_0x182161(0x1d0)]():'';if(!_0x1b28dd||_0xf8ed33[_0x182161(0x2ad)](_0x1b28dd[_0x182161(0x1fb)](),'')){this[_0x182161(0x296)]['debug'](_0xf8ed33[_0x182161(0x2c0)]);this[_0x182161(0x299)]&&_0xf8ed33[_0x182161(0x2ef)](Object[_0x182161(0x222)](this['browserstackConfig'])[_0x182161(0x287)],0x0)?(this['logger']['debug'](_0xf8ed33['ZpEDG']),this[_0x182161(0x225)]={'server':this[_0x182161(0x299)][_0x182161(0x21f)],'hubUrl':this[_0x182161(0x299)][_0x182161(0x21e)],'accessibility':this[_0x182161(0x299)][_0x182161(0x1e0)]||![]}):(this[_0x182161(0x296)][_0x182161(0x1aa)](_0xf8ed33[_0x182161(0x2b3)]),this['config']={});return;}this['config']=JSON[_0x182161(0x2a8)](_0x1b28dd),this[_0x182161(0x296)]['info'](_0xf8ed33[_0x182161(0x2f1)]);}catch(_0x13841f){this['logger'][_0x182161(0x2e0)](_0x182161(0x2ab)+util[_0x182161(0x227)](_0x13841f)),this[_0x182161(0x299)]&&_0xf8ed33[_0x182161(0x2ef)](Object[_0x182161(0x222)](this['browserstackConfig'])[_0x182161(0x287)],0x0)?(this[_0x182161(0x296)][_0x182161(0x1aa)](_0xf8ed33[_0x182161(0x27e)]),this[_0x182161(0x225)]={'server':this['browserstackConfig']['server'],'hubUrl':this[_0x182161(0x299)][_0x182161(0x21e)],'accessibility':this[_0x182161(0x299)][_0x182161(0x1e0)]||![]}):this['config']={};}}[a71_0x5916ff(0x1ef)](){const _0x50436b=a71_0x5916ff,_0x43d663={};_0x43d663[_0x50436b(0x2b9)]='syncAccessibilityConfig:\x20browserstackConfig\x20not\x20set,\x20skipping\x20sync',_0x43d663[_0x50436b(0x230)]=_0x50436b(0x2bb),_0x43d663[_0x50436b(0x1c8)]=_0x50436b(0x277);const _0x2f7d81=_0x43d663;try{if(!this[_0x50436b(0x299)]){this[_0x50436b(0x296)][_0x50436b(0x1aa)](_0x2f7d81[_0x50436b(0x2b9)]);return;}const _0x372a37=this[_0x50436b(0x1d0)]();if(!_0x372a37){this[_0x50436b(0x296)][_0x50436b(0x1aa)](_0x2f7d81[_0x50436b(0x230)]);return;}!helper[_0x50436b(0x245)](_0x372a37[_0x50436b(0x1e0)])&&(this['browserstackConfig'][_0x50436b(0x1e0)]=_0x372a37[_0x50436b(0x1e0)],this[_0x50436b(0x296)][_0x50436b(0x1aa)]('syncAccessibilityConfig:\x20Updated\x20browserstackConfig.accessibility\x20from\x20CLI\x20response:\x20'+_0x372a37[_0x50436b(0x1e0)])),!helper[_0x50436b(0x245)](_0x372a37['accessibilityOptions'])&&(this[_0x50436b(0x299)][_0x50436b(0x274)]=_0x372a37['accessibilityOptions'],this['logger']['debug'](_0x2f7d81[_0x50436b(0x1c8)]));}catch(_0x5d2619){this[_0x50436b(0x296)]['error'](_0x50436b(0x1c6)+util[_0x50436b(0x227)](_0x5d2619));}}['setCliArgs'](_0x19f9b2){const _0x4dc23f=a71_0x5916ff;try{this[_0x4dc23f(0x215)]=_0x19f9b2['getCliArgs']()[_0x4dc23f(0x2cc)](','),this[_0x4dc23f(0x296)][_0x4dc23f(0x2ca)](_0x4dc23f(0x260)+JSON[_0x4dc23f(0x27c)](this[_0x4dc23f(0x215)]));}catch(_0x10b36a){this[_0x4dc23f(0x296)][_0x4dc23f(0x2e0)](_0x4dc23f(0x288)+util['format'](_0x10b36a));}}[a71_0x5916ff(0x2aa)](){const _0x13bacc=a71_0x5916ff;return this[_0x13bacc(0x215)];}[a71_0x5916ff(0x28a)](){const _0x5ab5ac=a71_0x5916ff,_0x2d824f={'yqaRN':function(_0x61058a,_0x36fa12){return _0x61058a===_0x36fa12;},'sJMPk':function(_0x227d5c,_0x163194){return _0x227d5c===_0x163194;},'VjeoS':function(_0x5dc4d9,_0x4f0543){return _0x5dc4d9===_0x4f0543;},'XtAZK':function(_0x198170,_0x248802){return _0x198170(_0x248802);},'kECfJ':_0x5ab5ac(0x2df)},_0x359b24=CLIUtils[_0x5ab5ac(0x2b8)]();if(_0x2d824f[_0x5ab5ac(0x20d)](_0x359b24[_0x5ab5ac(0x264)]['toLowerCase'](),FRAMEWORKS[_0x5ab5ac(0x2d1)]['toLowerCase']()))this[_0x5ab5ac(0x212)]=new PlaywrightTestFramework([_0x359b24[_0x5ab5ac(0x264)]],_0x359b24['version']);else{if(_0x2d824f[_0x5ab5ac(0x1ea)](_0x359b24[_0x5ab5ac(0x264)]['toLowerCase'](),FRAMEWORKS[_0x5ab5ac(0x1d5)][_0x5ab5ac(0x1e8)]()))this[_0x5ab5ac(0x212)]=new CucumberTestFramework([_0x359b24[_0x5ab5ac(0x264)]],_0x359b24[_0x5ab5ac(0x22d)]);else{if(_0x2d824f[_0x5ab5ac(0x26c)](_0x359b24[_0x5ab5ac(0x264)][_0x5ab5ac(0x1e8)](),FRAMEWORKS[_0x5ab5ac(0x20e)][_0x5ab5ac(0x1e8)]()))this[_0x5ab5ac(0x212)]=new JestTestFramework([_0x359b24['name']],_0x359b24[_0x5ab5ac(0x22d)]);else{if(_0x2d824f[_0x5ab5ac(0x1ea)](_0x359b24[_0x5ab5ac(0x264)][_0x5ab5ac(0x1e8)](),FRAMEWORKS['NEWMAN'][_0x5ab5ac(0x1e8)]())){const _0xb0981a=_0x2d824f[_0x5ab5ac(0x2b5)](require,_0x2d824f[_0x5ab5ac(0x210)]);this[_0x5ab5ac(0x212)]=new _0xb0981a([_0x359b24['name']],_0x359b24[_0x5ab5ac(0x22d)]);}}}}}['setupAutomationFramework'](){const _0x28c748=a71_0x5916ff,_0x42a88e={};_0x42a88e['ycHSd']=function(_0x34c456,_0x42576c){return _0x34c456===_0x42576c;};const _0x3c35c2=_0x42a88e,_0x436f5c=CLIUtils[_0x28c748(0x217)]();if(_0x3c35c2[_0x28c748(0x1ee)](_0x436f5c[_0x28c748(0x264)][_0x28c748(0x1e8)](),FRAMEWORKS[_0x28c748(0x2d1)][_0x28c748(0x1e8)]()))this[_0x28c748(0x1da)]=new PlaywrightAutomationFramework(_0x436f5c[_0x28c748(0x264)],_0x436f5c[_0x28c748(0x22d)]);else _0x3c35c2[_0x28c748(0x1ee)](_0x436f5c[_0x28c748(0x264)][_0x28c748(0x1e8)](),FRAMEWORKS[_0x28c748(0x258)][_0x28c748(0x1e8)]())&&(this[_0x28c748(0x1da)]=new PuppeteerAutomationFramework(_0x436f5c[_0x28c748(0x264)],_0x436f5c['version']));}[a71_0x5916ff(0x1de)](){const _0x5a4ef6=a71_0x5916ff;return this[_0x5a4ef6(0x212)];}[a71_0x5916ff(0x282)](){const _0x4f4f1b=a71_0x5916ff;return this[_0x4f4f1b(0x1da)];}['getBrowserstackCliConfig'](){return this['browserstackCliConfig'];}async[a71_0x5916ff(0x2cd)](_0x53fd25,_0xac33d=null,_0x43c85c=null){const _0x2e7556=a71_0x5916ff,_0x56c64e={};_0x56c64e[_0x2e7556(0x266)]=_0x2e7556(0x247),_0x56c64e['PBClS']='gRPC\x20client\x20is\x20not\x20initialized.\x20Cannot\x20perform\x20test\x20orchestration.';const _0x17d0c1=_0x56c64e;try{if(!this['binSessionId'])return this[_0x2e7556(0x296)][_0x2e7556(0x2e0)](_0x17d0c1[_0x2e7556(0x266)]),null;if(GrpcClient&&!GrpcClient['getInstance']()[_0x2e7556(0x2d5)])return this[_0x2e7556(0x296)][_0x2e7556(0x2e0)](_0x17d0c1[_0x2e7556(0x273)]),null;const _0x353f29=await GrpcClient[_0x2e7556(0x1ab)]()[_0x2e7556(0x2ac)](_0x53fd25,_0xac33d,_0x43c85c);return _0x353f29;}catch(_0x3553c5){return this['logger'][_0x2e7556(0x2e0)]('Error\x20during\x20test\x20orchestration:\x20'+util[_0x2e7556(0x227)](_0x3553c5)),null;}}['getBrowserstackConfigPath'](){const _0x30c342=a71_0x5916ff;return this[_0x30c342(0x232)];}}module[a71_0x5916ff(0x22a)]=BrowserstackCLI;