browserstack-node-sdk 1.62.0 → 1.63.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
  56. package/src/bin/jasmine/command.js +1 -1
  57. package/src/bin/jasmine/test.setup.js +1 -1
  58. package/src/bin/jasmine/testRunMap.js +1 -1
  59. package/src/bin/jest/command.js +1 -1
  60. package/src/bin/jest/customImplements/customCircus.js +1 -1
  61. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  62. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  63. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  64. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  65. package/src/bin/jest/jest.setup.js +1 -1
  66. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  67. package/src/bin/jest/test-observability/helper.js +1 -1
  68. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  69. package/src/bin/jest/test-observability/test-details.js +1 -1
  70. package/src/bin/jest/test.setup.js +1 -1
  71. package/src/bin/jest/test_before.setup.js +1 -1
  72. package/src/bin/launcher/launcher.js +1 -1
  73. package/src/bin/load/index.js +1 -1
  74. package/src/bin/load/load/index.js +193 -12
  75. package/src/bin/load/load/loadErrors.js +248 -0
  76. package/src/bin/load/loadErrors.js +1 -0
  77. package/src/bin/load/loadUtils.js +1 -1
  78. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  79. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  80. package/src/bin/mocha/command.js +1 -1
  81. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  82. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  83. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  84. package/src/bin/mocha/test.setup.js +1 -1
  85. package/src/bin/newman/command.js +1 -1
  86. package/src/bin/newman/helper.js +1 -1
  87. package/src/bin/newman/reporter/index.js +1 -1
  88. package/src/bin/newman/scriptRunner.js +1 -1
  89. package/src/bin/nightwatch/command.js +1 -1
  90. package/src/bin/playwright/accessibility-helper.js +1 -1
  91. package/src/bin/playwright/command.js +1 -1
  92. package/src/bin/playwright/globalSetup.js +1 -1
  93. package/src/bin/playwright/mock-process.js +1 -1
  94. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  95. package/src/bin/playwright/patches.js +1 -1
  96. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  97. package/src/bin/playwright/reporter/reporter.js +1 -1
  98. package/src/bin/playwright/reporter/test-details.js +1 -1
  99. package/src/bin/playwright/sessionDetails.js +1 -1
  100. package/src/bin/puppeteer/patches.js +1 -1
  101. package/src/bin/puppeteer/sessionDetails.js +1 -1
  102. package/src/bin/puppeteer/test.setup.js +1 -1
  103. package/src/bin/runner.js +1 -1
  104. package/src/bin/setup.js +1 -1
  105. package/src/bin/test-runner/index.js +1 -1
  106. package/src/bin/test-runner/runTest.js +1 -1
  107. package/src/bin/test-runner/testWorker.js +1 -1
  108. package/src/bin/testcafe/a11y-runner.js +1 -1
  109. package/src/bin/testcafe/command.js +1 -1
  110. package/src/bin/testcafe/reporter/index.js +1 -1
  111. package/src/bin/testcafe/reporter/tcUtils.js +1 -1
  112. package/src/bin/testcafe/session-registry.js +1 -1
  113. package/src/bin/testcafe/stdout-interceptor.js +1 -1
  114. package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
  115. package/src/bin/testcafe/w3c-driver.js +1 -1
  116. package/src/bin/utils/apiUtilityMethods.js +1 -1
  117. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  118. package/src/bin/utils/constants.js +1 -1
  119. package/src/bin/utils/log4jsAppender.js +1 -1
  120. package/src/bin/utils/logPatcher.js +1 -1
  121. package/src/bin/utils/logReportingAPI.js +1 -1
  122. package/src/bin/utils/playwright-patcher.js +1 -1
  123. package/src/bin/utils/puppeteer-patcher.js +1 -1
  124. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  125. package/src/bin/utils/sharedUtils.js +1 -1
  126. package/src/bin/v2/TestInfo.js +1 -1
  127. package/src/bin/v2/browserstackCLI.js +1 -1
  128. package/src/bin/v2/cliUtils.js +1 -1
  129. package/src/bin/v2/customTagManager.js +1 -1
  130. package/src/bin/v2/eventDispatcher.js +1 -1
  131. package/src/bin/v2/framework/automationFramework.js +1 -1
  132. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  133. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  134. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  135. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  136. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  137. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  138. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  139. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  140. package/src/bin/v2/framework/testFramework.js +1 -1
  141. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  142. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  143. package/src/bin/v2/grpcClient.js +1 -1
  144. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  145. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  146. package/src/bin/v2/instances/trackedContext.js +1 -1
  147. package/src/bin/v2/instances/trackedInstance.js +1 -1
  148. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  149. package/src/bin/v2/modules/baseModule.js +1 -1
  150. package/src/bin/v2/modules/loadTestModule.js +1 -1
  151. package/src/bin/v2/modules/observabilityModule.js +1 -1
  152. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  153. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  154. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  155. package/src/bin/v2/modules/testhubModule.js +1 -1
  156. package/src/bin/v2/sdkErrorHandler.js +1 -0
  157. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  158. package/src/bin/v2/state/hookState.js +1 -1
  159. package/src/bin/v2/state/testFrameworkState.js +1 -1
  160. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  161. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  162. package/src/bin/v2/utils/jest-utils.js +1 -1
  163. package/src/bin/vanilla-js/command.js +1 -1
  164. package/src/browserStackSdk.js +1 -1
  165. package/src/helpers/BrowserStackSetup.js +1 -1
  166. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  167. package/src/helpers/accessibility-automation/constants.js +1 -1
  168. package/src/helpers/accessibility-automation/helper.js +1 -1
  169. package/src/helpers/accessibility-automation/scripts.js +1 -1
  170. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  171. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  172. package/src/helpers/ats/constants.js +1 -1
  173. package/src/helpers/ats/helper.js +1 -1
  174. package/src/helpers/caCertHelper.js +1 -1
  175. package/src/helpers/capsMapping.js +1 -1
  176. package/src/helpers/central-scanner/constants.js +1 -1
  177. package/src/helpers/central-scanner/helpers.js +1 -1
  178. package/src/helpers/classLogger.js +1 -1
  179. package/src/helpers/driverInitErrorReporter.js +1 -1
  180. package/src/helpers/globals.js +1 -1
  181. package/src/helpers/helper.js +1 -1
  182. package/src/helpers/logger.js +1 -1
  183. package/src/helpers/metadata.js +1 -1
  184. package/src/helpers/patchHelper.js +1 -1
  185. package/src/helpers/patchHelpers.js +1 -1
  186. package/src/helpers/percy/Percy.js +1 -1
  187. package/src/helpers/percy/PercyBinary.js +1 -1
  188. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  189. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  190. package/src/helpers/percy/PercySDK.js +1 -1
  191. package/src/helpers/percy/index.js +1 -1
  192. package/src/helpers/percy/utils.js +1 -1
  193. package/src/helpers/performance/constants.js +1 -1
  194. package/src/helpers/performance/performance-tester.js +1 -1
  195. package/src/helpers/playwright-helper.js +1 -1
  196. package/src/helpers/processHelper.js +1 -1
  197. package/src/helpers/puppeteer-helper.js +1 -1
  198. package/src/helpers/request-spy.js +1 -1
  199. package/src/helpers/setKeepAlive.js +1 -1
  200. package/src/helpers/stackFrameUtils.js +1 -1
  201. package/src/helpers/test-observability/constants.js +1 -1
  202. package/src/helpers/test-observability/error-handler.js +1 -1
  203. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  204. package/src/helpers/test-observability/sessionHandler.js +1 -1
  205. package/src/helpers/test-observability/utils.js +1 -1
  206. package/src/helpers/test-orchestration/constants.js +1 -1
  207. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  208. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  209. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  210. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  211. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  212. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  213. package/src/helpers/testhub/constants.js +1 -1
  214. package/src/helpers/testhub/testhubHandler.js +1 -1
  215. package/src/helpers/testhub/utils.js +1 -1
  216. package/src/helpers/timeoutPromise.js +1 -1
  217. package/src/helpers/utilities.js +1 -1
  218. package/src/helpers/w3cMapping.js +1 -1
  219. package/src/hubAllocationMethods.js +1 -1
  220. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a54_0x36d2bf=a54_0x188e;function a54_0x2321(){const _0x17ca35=['_platformDetails.json','udTaU','setIntegrations','getAccessibilityPlatformValidation','../../../helpers/helper','filePath','uLGZV','sNiOA','getIntegrations','678080Hmojtw','KPAPN','path','Error\x20handling\x20trace\x20file\x20paths:\x20','151807hwGmIp','.json','getStoreDirName','bSYie','parse','2348577LwNaUr','setAccessibilityPlatformValidation','recursive','join','rmSync','995928xAeBxo','string','PmpyV','_test','some','getTestIdFromTestInfo','values','getTestUUID','wSTHk','BS_TESTOPS_BUILD_HASHED_ID','appendFileSync','stringify','oeKZK','message','yvChG','tests','getDirPath','existsSync','gYsnK','setTestDetails','pid','endsWith','Error\x20writing\x20trace\x20file:\x20','../../../helpers/logger','xRnRx','forEach','homedir','env','shutdown','error','Failed\x20to\x20parse\x20integrations\x20file\x20for\x20test\x20','_traceZipPaths.json','Failed\x20to\x20write\x20integrations\x20file\x20for\x20test\x20','.browserstack','55075WCeJjP','getFilePath','getStoreDirPath','.txt','readdirSync','exports','debug','force','HUJcb','mkdirSync','getTestDetails','28aEuukI','8847432EZExAO','retry','GtxyH','MHrJO','format','IcDoI','285723nQAclO','hlMtM','trBps','uuid','vEIff','readFileSync','traceZipPaths','SDXTp','setup','DtCfH','writeFileSync','toString','UzBmt','push','OdCjN','_integrations.json','utf8','util','getTraceZipDir'];a54_0x2321=function(){return _0x17ca35;};return a54_0x2321();}(function(_0x203d78,_0x2f5c50){const _0x414c86=a54_0x188e,_0x39fdbc=_0x203d78();while(!![]){try{const _0x28b85a=parseInt(_0x414c86(0xd2))/0x1+-parseInt(_0x414c86(0xce))/0x2+-parseInt(_0x414c86(0x110))/0x3+parseInt(_0x414c86(0x109))/0x4*(-parseInt(_0x414c86(0xfe))/0x5)+-parseInt(_0x414c86(0xdc))/0x6+-parseInt(_0x414c86(0xd7))/0x7+parseInt(_0x414c86(0x10a))/0x8;if(_0x28b85a===_0x2f5c50)break;else _0x39fdbc['push'](_0x39fdbc['shift']());}catch(_0x11330a){_0x39fdbc['push'](_0x39fdbc['shift']());}}}(a54_0x2321,0x3bc73));const fs=require('fs'),path=require(a54_0x36d2bf(0xd0)),{v4:uuidv4}=require(a54_0x36d2bf(0x113)),{TEMP_STORE_DIR_NAME}=require('../../../helpers/test-observability/constants'),{nestedKeyValue}=require(a54_0x36d2bf(0xc9)),logger=require('../../../helpers/logger')['winstonLogger'],{getLogDir}=require(a54_0x36d2bf(0xf3)),util=require(a54_0x36d2bf(0x121)),helper=require('../../../helpers/helper');function a54_0x188e(_0x484587,_0x56c6d5){const _0x2321df=a54_0x2321();return a54_0x188e=function(_0x188e42,_0x40998f){_0x188e42=_0x188e42-0xc5;let _0x1f18ab=_0x2321df[_0x188e42];return _0x1f18ab;},a54_0x188e(_0x484587,_0x56c6d5);}class TestDetails{static [a54_0x36d2bf(0xeb)]={};static[a54_0x36d2bf(0x118)](){const _0x47b2b9=a54_0x36d2bf;this['shutdown']();const _0x209c0c={};_0x209c0c['recursive']=!![],fs[_0x47b2b9(0x107)](this['getDirPath'](),_0x209c0c);const _0x56836f={};_0x56836f[_0x47b2b9(0xd9)]=!![],fs['mkdirSync'](this[_0x47b2b9(0x122)](),_0x56836f);}static[a54_0x36d2bf(0xd4)](){const _0x4244eb=a54_0x36d2bf,_0x209054={};_0x209054['bSYie']=function(_0x2dac45,_0x250767){return _0x2dac45+_0x250767;};const _0x2a9713=_0x209054;return _0x2a9713['bSYie'](_0x2a9713[_0x4244eb(0xd5)](TEMP_STORE_DIR_NAME,'-'),process['env']['BS_TESTOPS_BUILD_HASHED_ID']);}static['getStoreDirPath'](){const _0x376b16=a54_0x36d2bf,_0x25c3ad={};_0x25c3ad[_0x376b16(0x11e)]=function(_0x208f5c,_0x3e0a54){return _0x208f5c+_0x3e0a54;},_0x25c3ad[_0x376b16(0x111)]='default';const _0x52eca2=_0x25c3ad;return path[_0x376b16(0xda)](_0x52eca2[_0x376b16(0x11e)](_0x52eca2['OdCjN'](TEMP_STORE_DIR_NAME,'-'),process[_0x376b16(0xf7)][_0x376b16(0xe5)]||_0x52eca2[_0x376b16(0x111)]));}static[a54_0x36d2bf(0x122)](){const _0x460aaa=a54_0x36d2bf,_0x18994e={};_0x18994e['UzBmt']=_0x460aaa(0x116);const _0x432c5f=_0x18994e;return path[_0x460aaa(0xda)](this[_0x460aaa(0x100)](),_0x432c5f[_0x460aaa(0x11c)]);}static[a54_0x36d2bf(0xec)](){const _0xcd25ac=a54_0x36d2bf;return TestDetails[_0xcd25ac(0xd4)]();}static[a54_0x36d2bf(0xff)](_0x236b76){const _0x3805b2=a54_0x36d2bf,_0x4cade8={};_0x4cade8[_0x3805b2(0x10d)]=function(_0x3bcce9,_0x57267a){return _0x3bcce9+_0x57267a;},_0x4cade8[_0x3805b2(0xcc)]=_0x3805b2(0xd3);const _0x30731d=_0x4cade8;return path[_0x3805b2(0xda)](this[_0x3805b2(0xec)](),_0x30731d[_0x3805b2(0x10d)](_0x236b76,_0x30731d[_0x3805b2(0xcc)]));}static['getTestRunIdFromTestInfo'](_0x343b80){const _0x4989f3=a54_0x36d2bf,_0x3ce727={};_0x3ce727[_0x4989f3(0xee)]=function(_0x373454,_0x8ef049){return _0x373454+_0x8ef049;},_0x3ce727['xRnRx']=function(_0x38c4f8,_0x3a5d91){return _0x38c4f8+_0x3a5d91;};const _0x420bef=_0x3ce727;return _0x420bef['gYsnK'](_0x420bef[_0x4989f3(0xf4)](this[_0x4989f3(0xe1)](_0x343b80),'-'),_0x343b80[_0x4989f3(0x10b)]);}static['getProjectIdFromTestInfo'](_0x17ce9){const _0x4eca3b=a54_0x36d2bf,_0x60df94={'PmpyV':function(_0x5a8e60,_0x58dce5,_0x304820){return _0x5a8e60(_0x58dce5,_0x304820);},'OstCQ':'_test','SDXTp':'_projectId','oeKZK':function(_0x1e4c63,_0x18b291,_0x4af5a6){return _0x1e4c63(_0x18b291,_0x4af5a6);},'udTaU':'project','qqgPE':'__projectId'};return _0x60df94[_0x4eca3b(0xde)](nestedKeyValue,_0x17ce9,[_0x60df94['OstCQ'],_0x60df94[_0x4eca3b(0x117)]])||_0x60df94[_0x4eca3b(0xe8)](nestedKeyValue,_0x17ce9,[_0x60df94[_0x4eca3b(0xc6)],_0x60df94['qqgPE']]);}static[a54_0x36d2bf(0xe1)](_0x164e35){const _0x21c736=a54_0x36d2bf,_0x56e833={'DtCfH':function(_0xb0adf,_0x450e0a,_0x1b3d01){return _0xb0adf(_0x450e0a,_0x1b3d01);},'KPAPN':_0x21c736(0xdf)};return _0x56e833[_0x21c736(0x119)](nestedKeyValue,_0x164e35,[_0x56e833[_0x21c736(0xcf)],'id'])||_0x164e35['testId'];}static[a54_0x36d2bf(0xe3)](_0x25a77e){const _0x2bd9da=a54_0x36d2bf,_0x3326bb={'yvChG':function(_0x53eaea,_0x3b7bea){return _0x53eaea===_0x3b7bea;},'uLGZV':_0x2bd9da(0xdd),'IcDoI':function(_0x1f15cd){return _0x1f15cd();}};if(this['tests'][_0x25a77e]&&_0x3326bb[_0x2bd9da(0xea)](typeof this['tests'][_0x25a77e][_0x2bd9da(0x113)],_0x3326bb[_0x2bd9da(0xcb)]))return this['tests'][_0x25a77e][_0x2bd9da(0x113)];const _0x5769fe=this[_0x2bd9da(0xff)](_0x25a77e);if(_0x5769fe&&fs[_0x2bd9da(0xed)](_0x5769fe)){const _0x39e61b=JSON[_0x2bd9da(0xd6)](fs[_0x2bd9da(0x115)](_0x5769fe)[_0x2bd9da(0x11b)]());return this[_0x2bd9da(0xeb)][_0x25a77e]=_0x39e61b,this[_0x2bd9da(0xeb)][_0x25a77e][_0x2bd9da(0x113)];}return this[_0x2bd9da(0xeb)][_0x25a77e]={'uuid':_0x3326bb[_0x2bd9da(0x10f)](uuidv4)},fs[_0x2bd9da(0x11a)](_0x5769fe,JSON['stringify'](this[_0x2bd9da(0xeb)][_0x25a77e])),this[_0x2bd9da(0xeb)][_0x25a77e][_0x2bd9da(0x113)];}static[a54_0x36d2bf(0xc8)](_0x1213bb){const _0x593507=a54_0x36d2bf,_0x2cff25=path[_0x593507(0xda)](this[_0x593507(0xec)](),_0x1213bb+_0x593507(0xc5));if(_0x2cff25&&fs[_0x593507(0xed)](_0x2cff25))return fs[_0x593507(0x115)](_0x2cff25)[_0x593507(0x11b)]();}static[a54_0x36d2bf(0xd8)](_0x71f6f6,_0x34b942){const _0x332c18=a54_0x36d2bf,_0x2b994c=path[_0x332c18(0xda)](this[_0x332c18(0xec)](),_0x34b942+_0x332c18(0xc5));fs['writeFileSync'](_0x2b994c,_0x71f6f6[_0x332c18(0x11b)]());}static[a54_0x36d2bf(0xcd)](_0x40a7b6){const _0x40a338=a54_0x36d2bf,_0x33ab0b=path['join'](this[_0x40a338(0xec)](),_0x40a7b6+_0x40a338(0x11f));if(_0x33ab0b&&fs[_0x40a338(0xed)](_0x33ab0b))try{return JSON[_0x40a338(0xd6)](fs[_0x40a338(0x115)](_0x33ab0b)[_0x40a338(0x11b)]());}catch(_0x36e5bd){return logger[_0x40a338(0x104)](_0x40a338(0xfa)+_0x40a7b6+':\x20'+(_0x36e5bd&&_0x36e5bd[_0x40a338(0xe9)])),null;}return null;}static[a54_0x36d2bf(0xc7)](_0x344e6b,_0x579713){const _0x16b894=a54_0x36d2bf,_0x31270e={};_0x31270e['YKPfO']=function(_0x2d62ef,_0x57223a){return _0x2d62ef||_0x57223a;};const _0x219fd1=_0x31270e;if(_0x219fd1['YKPfO'](!_0x344e6b,!_0x579713))return;try{const _0x43f023=this[_0x16b894(0xec)](),_0x33e1e5={};_0x33e1e5[_0x16b894(0xd9)]=!![],fs['mkdirSync'](_0x43f023,_0x33e1e5);const _0x543619=path[_0x16b894(0xda)](_0x43f023,_0x344e6b+_0x16b894(0x11f));fs[_0x16b894(0x11a)](_0x543619,JSON[_0x16b894(0xe7)](_0x579713));}catch(_0xcf16fa){logger[_0x16b894(0x104)](_0x16b894(0xfc)+_0x344e6b+':\x20'+(_0xcf16fa&&_0xcf16fa[_0x16b894(0xe9)]));}}static[a54_0x36d2bf(0xf8)](){const _0x6436e=a54_0x36d2bf,_0x3290c3={};_0x3290c3[_0x6436e(0xd9)]=!![],_0x3290c3[_0x6436e(0x105)]=!![],fs[_0x6436e(0xdb)](this[_0x6436e(0xec)](),_0x3290c3);}static[a54_0x36d2bf(0x108)](_0x3dd5fc){const _0x5b9f48=a54_0x36d2bf;if(this[_0x5b9f48(0xeb)][_0x3dd5fc])return this['tests'][_0x3dd5fc];const _0x32535c=this[_0x5b9f48(0xff)](_0x3dd5fc);if(_0x32535c&&fs[_0x5b9f48(0xed)](_0x32535c)){const _0x813da2=JSON[_0x5b9f48(0xd6)](fs[_0x5b9f48(0x115)](_0x32535c)[_0x5b9f48(0x11b)]());return this[_0x5b9f48(0xeb)][_0x3dd5fc]=_0x813da2,_0x813da2;}return{};}static[a54_0x36d2bf(0xef)](_0x3b5a5f,_0x543d42){const _0x4f62cb=a54_0x36d2bf,_0x28b019=this[_0x4f62cb(0xff)](_0x3b5a5f);if(_0x28b019&&fs[_0x4f62cb(0xed)](_0x28b019)){const _0x4e0e93=JSON[_0x4f62cb(0xd6)](fs[_0x4f62cb(0x115)](_0x28b019)[_0x4f62cb(0x11b)]()),_0x5b40d1={..._0x4e0e93,..._0x543d42};this['tests'][_0x3b5a5f]=_0x5b40d1;}else this[_0x4f62cb(0xeb)][_0x3b5a5f]=_0x543d42;fs['writeFileSync'](_0x28b019,this[_0x4f62cb(0xeb)][_0x3b5a5f]);}static['addTraceFilePath'](_0x3cbe61){const _0x2ca147=a54_0x36d2bf,_0x1237ee={};_0x1237ee[_0x2ca147(0x10c)]=_0x2ca147(0xd1);const _0x143bd0=_0x1237ee;try{const _0x392116=process[_0x2ca147(0xf0)],_0x588fe6=path[_0x2ca147(0xda)](TestDetails[_0x2ca147(0x122)](),_0x392116+_0x2ca147(0xfb));let _0x4874b7=[];_0x588fe6&&fs[_0x2ca147(0xed)](_0x588fe6)&&(_0x4874b7=JSON[_0x2ca147(0xd6)](fs[_0x2ca147(0x115)](_0x588fe6)[_0x2ca147(0x11b)]())),!_0x4874b7[_0x2ca147(0xe0)](_0x1ce1a0=>_0x1ce1a0[_0x2ca147(0xca)]===_0x3cbe61['filePath'])&&(_0x4874b7['push'](_0x3cbe61),fs['writeFileSync'](_0x588fe6,JSON[_0x2ca147(0xe7)](_0x4874b7)));}catch(_0x1a5378){logger[_0x2ca147(0xf9)](_0x143bd0[_0x2ca147(0x10c)],_0x1a5378);}}static['getTraceFilePaths'](){const _0x1b3f54=a54_0x36d2bf,_0x406589={};_0x406589[_0x1b3f54(0x106)]='_traceZipPaths.json',_0x406589['trBps']='Error\x20reading\x20trace\x20file\x20paths:\x20%s';const _0x401885=_0x406589,_0x2fb8ad=[];try{const _0x410896=TestDetails['getTraceZipDir']();if(_0x410896&&!fs[_0x1b3f54(0xed)](_0x410896))return _0x2fb8ad;const _0x426d64=fs[_0x1b3f54(0x102)](_0x410896);_0x426d64[_0x1b3f54(0xf5)](_0x1c82e1=>{const _0x313d3f=_0x1b3f54;if(_0x1c82e1&&_0x1c82e1[_0x313d3f(0xf1)](_0x401885['HUJcb'])){const _0x36b495=JSON[_0x313d3f(0xd6)](fs[_0x313d3f(0x115)](path[_0x313d3f(0xda)](_0x410896,_0x1c82e1))[_0x313d3f(0x11b)]());_0x2fb8ad[_0x313d3f(0x11d)](..._0x36b495);}});}catch(_0x58e13c){logger[_0x1b3f54(0xf9)](util[_0x1b3f54(0x10e)](_0x401885[_0x1b3f54(0x112)],_0x58e13c));}const _0x43b0ab={};return _0x2fb8ad['forEach'](_0x48ddf9=>{_0x43b0ab[_0x48ddf9['filePath']]=_0x48ddf9;}),Object[_0x1b3f54(0xe2)](_0x43b0ab);}static['appendToTracePaths'](_0xb06522,_0x2f9ad6){const _0x2df917=a54_0x36d2bf,_0x1eaeee={};_0x1eaeee[_0x2df917(0xe4)]=_0x2df917(0xfd),_0x1eaeee[_0x2df917(0x114)]=_0x2df917(0x120);const _0x11bf77=_0x1eaeee;try{const _0x157cb8=path[_0x2df917(0xda)](helper[_0x2df917(0xf6)](),_0x11bf77['wSTHk']);if(!fs[_0x2df917(0xed)](_0x157cb8)){const _0x3ea53e={};_0x3ea53e[_0x2df917(0xd9)]=!![],fs['mkdirSync'](_0x157cb8,_0x3ea53e);}fs[_0x2df917(0xe6)](path[_0x2df917(0xda)](_0x157cb8,'trace_'+_0x2f9ad6+_0x2df917(0x101)),_0xb06522+'\x0a',_0x11bf77[_0x2df917(0x114)]);}catch(_0xca0763){console[_0x2df917(0xf9)](_0x2df917(0xf2)+_0xca0763[_0x2df917(0xe9)]);}}}module[a54_0x36d2bf(0x103)]=TestDetails;
1
+ const a55_0x33d050=a55_0x9191;function a55_0x9191(_0x373086,_0x336b7f){const _0x164649=a55_0x1646();return a55_0x9191=function(_0x919167,_0x582b55){_0x919167=_0x919167-0x117;let _0x10d0c5=_0x164649[_0x919167];return _0x10d0c5;},a55_0x9191(_0x373086,_0x336b7f);}(function(_0x494ab9,_0x163468){const _0x71a04c=a55_0x9191,_0x5caf14=_0x494ab9();while(!![]){try{const _0x534985=-parseInt(_0x71a04c(0x133))/0x1*(-parseInt(_0x71a04c(0x11e))/0x2)+parseInt(_0x71a04c(0x174))/0x3*(-parseInt(_0x71a04c(0x164))/0x4)+-parseInt(_0x71a04c(0x11a))/0x5+-parseInt(_0x71a04c(0x136))/0x6*(-parseInt(_0x71a04c(0x14b))/0x7)+-parseInt(_0x71a04c(0x12d))/0x8+parseInt(_0x71a04c(0x147))/0x9*(parseInt(_0x71a04c(0x13d))/0xa)+-parseInt(_0x71a04c(0x14e))/0xb;if(_0x534985===_0x163468)break;else _0x5caf14['push'](_0x5caf14['shift']());}catch(_0xe497a){_0x5caf14['push'](_0x5caf14['shift']());}}}(a55_0x1646,0xcfa36));function a55_0x1646(){const _0x582a40=['parse','forEach','setAccessibilityPlatformValidation','WGHRu','CmVAO','aXgfL','_test','join','UoJwM','EGWkG','appendFileSync','readdirSync','retry','813wGZEsP','Error\x20reading\x20trace\x20file\x20paths:\x20%s','stringify','jtqNk','2800875hDedXZ','project','../../../helpers/test-observability/constants','_platformDetails.json','95372mbVmaW','mkdirSync','../../../helpers/helper','.json','addTraceFilePath','oYIvs','message','getIntegrations','getFilePath','ZYIHa','TLdjD','readFileSync','trace_','writeFileSync','getDirPath','1678792GzVYZE','fJygC','getStoreDirName','recursive','getTraceZipDir','setup','31gTNpGS','__projectId','PYzRp','66AIGGkN','shutdown','tests','NpyPO','filePath','rmSync','winstonLogger','40llqKnz','siLLX','.txt','Failed\x20to\x20write\x20integrations\x20file\x20for\x20test\x20','Error\x20writing\x20trace\x20file:\x20','toString','getProjectIdFromTestInfo','string','getStoreDirPath','getTestIdFromTestInfo','1034217SOGvuS','util','pid','_integrations.json','12719gzWZyA','getTestDetails','error','918148sKYCSv','uuid','WomXe','qJWEL','_traceZipPaths.json','force','xvtit','default','env','BS_TESTOPS_BUILD_HASHED_ID','setIntegrations','path','lBxMk','_projectId','ExBlZ','values','push','existsSync','yMewW','debug','ekDSJ','exports','3748CdkXcz','endsWith','traceZipPaths'];a55_0x1646=function(){return _0x582a40;};return a55_0x1646();}const fs=require('fs'),path=require(a55_0x33d050(0x159)),{v4:uuidv4}=require(a55_0x33d050(0x14f)),{TEMP_STORE_DIR_NAME}=require(a55_0x33d050(0x11c)),{nestedKeyValue}=require('../../../helpers/helper'),logger=require('../../../helpers/logger')[a55_0x33d050(0x13c)],{getLogDir}=require('../../../helpers/logger'),util=require(a55_0x33d050(0x148)),helper=require(a55_0x33d050(0x120));class TestDetails{static ['tests']={};static[a55_0x33d050(0x132)](){const _0x49e0c1=a55_0x33d050;this[_0x49e0c1(0x137)]();const _0x452395={};_0x452395[_0x49e0c1(0x130)]=!![],fs[_0x49e0c1(0x11f)](this[_0x49e0c1(0x12c)](),_0x452395);const _0x60059b={};_0x60059b[_0x49e0c1(0x130)]=!![],fs[_0x49e0c1(0x11f)](this[_0x49e0c1(0x131)](),_0x60059b);}static['getStoreDirName'](){const _0x44b5a2=a55_0x33d050,_0x513389={};_0x513389[_0x44b5a2(0x135)]=function(_0x51612b,_0x3a68e3){return _0x51612b+_0x3a68e3;},_0x513389[_0x44b5a2(0x160)]=function(_0x565046,_0x330bd8){return _0x565046+_0x330bd8;};const _0x5a7499=_0x513389;return _0x5a7499['PYzRp'](_0x5a7499[_0x44b5a2(0x160)](TEMP_STORE_DIR_NAME,'-'),process[_0x44b5a2(0x156)]['BS_TESTOPS_BUILD_HASHED_ID']);}static[a55_0x33d050(0x145)](){const _0x490201=a55_0x33d050,_0x3f1f8e={};_0x3f1f8e[_0x490201(0x16b)]=function(_0x3cb878,_0x57a4a1){return _0x3cb878+_0x57a4a1;},_0x3f1f8e['lLEhZ']=function(_0x4ab831,_0x12e173){return _0x4ab831+_0x12e173;},_0x3f1f8e[_0x490201(0x15a)]=_0x490201(0x155);const _0x682645=_0x3f1f8e;return path['join'](_0x682645[_0x490201(0x16b)](_0x682645['lLEhZ'](TEMP_STORE_DIR_NAME,'-'),process['env'][_0x490201(0x157)]||_0x682645[_0x490201(0x15a)]));}static[a55_0x33d050(0x131)](){const _0x18dfc9=a55_0x33d050,_0x30fed6={};_0x30fed6['ZYIHa']=_0x18dfc9(0x166);const _0x20df3e=_0x30fed6;return path[_0x18dfc9(0x16e)](this[_0x18dfc9(0x145)](),_0x20df3e[_0x18dfc9(0x127)]);}static[a55_0x33d050(0x12c)](){const _0x24a48d=a55_0x33d050;return TestDetails[_0x24a48d(0x12f)]();}static[a55_0x33d050(0x126)](_0x1597b8){const _0x25e4d2=a55_0x33d050,_0x321008={};_0x321008['ZHuFG']=function(_0x36bb47,_0x4f0de7){return _0x36bb47+_0x4f0de7;},_0x321008[_0x25e4d2(0x16f)]=_0x25e4d2(0x121);const _0x10d1c7=_0x321008;return path[_0x25e4d2(0x16e)](this[_0x25e4d2(0x12c)](),_0x10d1c7['ZHuFG'](_0x1597b8,_0x10d1c7['UoJwM']));}static['getTestRunIdFromTestInfo'](_0xee3db7){const _0x2a5541=a55_0x33d050,_0x1e5767={};_0x1e5767['siLLX']=function(_0x30a5df,_0x1fd47e){return _0x30a5df+_0x1fd47e;};const _0x3226b0=_0x1e5767;return _0x3226b0[_0x2a5541(0x13e)](_0x3226b0[_0x2a5541(0x13e)](this[_0x2a5541(0x146)](_0xee3db7),'-'),_0xee3db7[_0x2a5541(0x173)]);}static[a55_0x33d050(0x143)](_0x4ff715){const _0x3aae81=a55_0x33d050,_0xbb718a={'TLdjD':function(_0x259e26,_0x3f0654,_0x57e88e){return _0x259e26(_0x3f0654,_0x57e88e);},'lxUsD':_0x3aae81(0x16d),'xvtit':_0x3aae81(0x15b),'WGHRu':_0x3aae81(0x11b),'NpyPO':_0x3aae81(0x134)};return _0xbb718a['TLdjD'](nestedKeyValue,_0x4ff715,[_0xbb718a['lxUsD'],_0xbb718a[_0x3aae81(0x154)]])||_0xbb718a[_0x3aae81(0x128)](nestedKeyValue,_0x4ff715,[_0xbb718a[_0x3aae81(0x16a)],_0xbb718a[_0x3aae81(0x139)]]);}static[a55_0x33d050(0x146)](_0x24f964){const _0x578d5a=a55_0x33d050,_0x32dc2c={'fJygC':function(_0x10cf82,_0x257984,_0x3bdd71){return _0x10cf82(_0x257984,_0x3bdd71);},'EGWkG':'_test'};return _0x32dc2c[_0x578d5a(0x12e)](nestedKeyValue,_0x24f964,[_0x32dc2c[_0x578d5a(0x170)],'id'])||_0x24f964['testId'];}static['getTestUUID'](_0x3a8d49){const _0x153a4a=a55_0x33d050,_0x1bf125={'rhigk':function(_0x2ec10e,_0x1b38e7){return _0x2ec10e===_0x1b38e7;},'WomXe':_0x153a4a(0x144),'jtqNk':function(_0xb24215){return _0xb24215();}};if(this[_0x153a4a(0x138)][_0x3a8d49]&&_0x1bf125['rhigk'](typeof this[_0x153a4a(0x138)][_0x3a8d49][_0x153a4a(0x14f)],_0x1bf125[_0x153a4a(0x150)]))return this[_0x153a4a(0x138)][_0x3a8d49][_0x153a4a(0x14f)];const _0x2d967c=this[_0x153a4a(0x126)](_0x3a8d49);if(_0x2d967c&&fs['existsSync'](_0x2d967c)){const _0x564fa8=JSON[_0x153a4a(0x167)](fs[_0x153a4a(0x129)](_0x2d967c)['toString']());return this[_0x153a4a(0x138)][_0x3a8d49]=_0x564fa8,this[_0x153a4a(0x138)][_0x3a8d49][_0x153a4a(0x14f)];}return this['tests'][_0x3a8d49]={'uuid':_0x1bf125[_0x153a4a(0x119)](uuidv4)},fs['writeFileSync'](_0x2d967c,JSON[_0x153a4a(0x118)](this['tests'][_0x3a8d49])),this[_0x153a4a(0x138)][_0x3a8d49][_0x153a4a(0x14f)];}static['getAccessibilityPlatformValidation'](_0x185930){const _0x53183c=a55_0x33d050,_0x468bd2=path[_0x53183c(0x16e)](this[_0x53183c(0x12c)](),_0x185930+_0x53183c(0x11d));if(_0x468bd2&&fs[_0x53183c(0x15f)](_0x468bd2))return fs[_0x53183c(0x129)](_0x468bd2)[_0x53183c(0x142)]();}static[a55_0x33d050(0x169)](_0x44a522,_0x3b78c7){const _0x4deae6=a55_0x33d050,_0x556476=path[_0x4deae6(0x16e)](this[_0x4deae6(0x12c)](),_0x3b78c7+'_platformDetails.json');fs['writeFileSync'](_0x556476,_0x44a522[_0x4deae6(0x142)]());}static[a55_0x33d050(0x125)](_0xbe760a){const _0x4927fe=a55_0x33d050,_0x578e09=path[_0x4927fe(0x16e)](this[_0x4927fe(0x12c)](),_0xbe760a+_0x4927fe(0x14a));if(_0x578e09&&fs[_0x4927fe(0x15f)](_0x578e09))try{return JSON['parse'](fs[_0x4927fe(0x129)](_0x578e09)[_0x4927fe(0x142)]());}catch(_0x2c6466){return logger[_0x4927fe(0x161)]('Failed\x20to\x20parse\x20integrations\x20file\x20for\x20test\x20'+_0xbe760a+':\x20'+(_0x2c6466&&_0x2c6466[_0x4927fe(0x124)])),null;}return null;}static[a55_0x33d050(0x158)](_0x4c68b6,_0x648c42){const _0x3ee92f=a55_0x33d050,_0x196281={};_0x196281[_0x3ee92f(0x123)]=function(_0x3f3e24,_0x2f3f2e){return _0x3f3e24||_0x2f3f2e;};const _0xf6e60b=_0x196281;if(_0xf6e60b['oYIvs'](!_0x4c68b6,!_0x648c42))return;try{const _0x3a2cb1=this[_0x3ee92f(0x12c)](),_0x56a387={};_0x56a387[_0x3ee92f(0x130)]=!![],fs[_0x3ee92f(0x11f)](_0x3a2cb1,_0x56a387);const _0x412a4b=path[_0x3ee92f(0x16e)](_0x3a2cb1,_0x4c68b6+_0x3ee92f(0x14a));fs[_0x3ee92f(0x12b)](_0x412a4b,JSON['stringify'](_0x648c42));}catch(_0x28829a){logger[_0x3ee92f(0x161)](_0x3ee92f(0x140)+_0x4c68b6+':\x20'+(_0x28829a&&_0x28829a['message']));}}static[a55_0x33d050(0x137)](){const _0x34ac58=a55_0x33d050,_0x54fd0d={};_0x54fd0d[_0x34ac58(0x130)]=!![],_0x54fd0d[_0x34ac58(0x153)]=!![],fs[_0x34ac58(0x13b)](this['getDirPath'](),_0x54fd0d);}static[a55_0x33d050(0x14c)](_0x1b4476){const _0x28a8fa=a55_0x33d050;if(this[_0x28a8fa(0x138)][_0x1b4476])return this['tests'][_0x1b4476];const _0x2a9676=this[_0x28a8fa(0x126)](_0x1b4476);if(_0x2a9676&&fs['existsSync'](_0x2a9676)){const _0x4b9c65=JSON[_0x28a8fa(0x167)](fs['readFileSync'](_0x2a9676)[_0x28a8fa(0x142)]());return this['tests'][_0x1b4476]=_0x4b9c65,_0x4b9c65;}return{};}static['setTestDetails'](_0x4aaf15,_0x5021e4){const _0x41f742=a55_0x33d050,_0x57217b=this['getFilePath'](_0x4aaf15);if(_0x57217b&&fs['existsSync'](_0x57217b)){const _0x5a3438=JSON[_0x41f742(0x167)](fs[_0x41f742(0x129)](_0x57217b)[_0x41f742(0x142)]()),_0x53b7d6={..._0x5a3438,..._0x5021e4};this[_0x41f742(0x138)][_0x4aaf15]=_0x53b7d6;}else this[_0x41f742(0x138)][_0x4aaf15]=_0x5021e4;fs['writeFileSync'](_0x57217b,this[_0x41f742(0x138)][_0x4aaf15]);}static[a55_0x33d050(0x122)](_0x5e24c0){const _0x58ba2c=a55_0x33d050,_0xff1b73={};_0xff1b73[_0x58ba2c(0x162)]='Error\x20handling\x20trace\x20file\x20paths:\x20';const _0x2d8e0a=_0xff1b73;try{const _0x52778d=process[_0x58ba2c(0x149)],_0x41fa92=path[_0x58ba2c(0x16e)](TestDetails[_0x58ba2c(0x131)](),_0x52778d+'_traceZipPaths.json');let _0x5a190f=[];_0x41fa92&&fs['existsSync'](_0x41fa92)&&(_0x5a190f=JSON[_0x58ba2c(0x167)](fs['readFileSync'](_0x41fa92)[_0x58ba2c(0x142)]())),!_0x5a190f['some'](_0x559768=>_0x559768[_0x58ba2c(0x13a)]===_0x5e24c0['filePath'])&&(_0x5a190f[_0x58ba2c(0x15e)](_0x5e24c0),fs[_0x58ba2c(0x12b)](_0x41fa92,JSON[_0x58ba2c(0x118)](_0x5a190f)));}catch(_0x2ddcc5){logger['error'](_0x2d8e0a['ekDSJ'],_0x2ddcc5);}}static['getTraceFilePaths'](){const _0x5a7a1b=a55_0x33d050,_0x49f9f7={};_0x49f9f7[_0x5a7a1b(0x15c)]=_0x5a7a1b(0x152),_0x49f9f7[_0x5a7a1b(0x151)]=_0x5a7a1b(0x117);const _0x46f6ac=_0x49f9f7,_0x22d1da=[];try{const _0xd0622=TestDetails['getTraceZipDir']();if(_0xd0622&&!fs['existsSync'](_0xd0622))return _0x22d1da;const _0x435593=fs[_0x5a7a1b(0x172)](_0xd0622);_0x435593['forEach'](_0x59184c=>{const _0x11ca64=_0x5a7a1b;if(_0x59184c&&_0x59184c[_0x11ca64(0x165)](_0x46f6ac[_0x11ca64(0x15c)])){const _0x2c1b7d=JSON[_0x11ca64(0x167)](fs[_0x11ca64(0x129)](path[_0x11ca64(0x16e)](_0xd0622,_0x59184c))['toString']());_0x22d1da['push'](..._0x2c1b7d);}});}catch(_0x5eaba8){logger['error'](util['format'](_0x46f6ac[_0x5a7a1b(0x151)],_0x5eaba8));}const _0x365847={};return _0x22d1da[_0x5a7a1b(0x168)](_0x572308=>{_0x365847[_0x572308['filePath']]=_0x572308;}),Object[_0x5a7a1b(0x15d)](_0x365847);}static['appendToTracePaths'](_0xe53b19,_0x1e973c){const _0xf3d440=a55_0x33d050,_0x3adc55={};_0x3adc55['aXgfL']='.browserstack',_0x3adc55['MNaIm']='utf8';const _0x320c8b=_0x3adc55;try{const _0x5a1188=path[_0xf3d440(0x16e)](helper['homedir'](),_0x320c8b[_0xf3d440(0x16c)]);if(!fs[_0xf3d440(0x15f)](_0x5a1188)){const _0x5cbada={};_0x5cbada[_0xf3d440(0x130)]=!![],fs['mkdirSync'](_0x5a1188,_0x5cbada);}fs[_0xf3d440(0x171)](path[_0xf3d440(0x16e)](_0x5a1188,_0xf3d440(0x12a)+_0x1e973c+_0xf3d440(0x13f)),_0xe53b19+'\x0a',_0x320c8b['MNaIm']);}catch(_0x13f062){console[_0xf3d440(0x14d)](_0xf3d440(0x141)+_0x13f062[_0xf3d440(0x124)]);}}}module[a55_0x33d050(0x163)]=TestDetails;
@@ -1 +1 @@
1
- const a55_0x1ec1e3=a55_0x5956;(function(_0x13eba6,_0x13abb3){const _0x3742cd=a55_0x5956,_0x4fe286=_0x13eba6();while(!![]){try{const _0x824f3d=-parseInt(_0x3742cd(0x208))/0x1+-parseInt(_0x3742cd(0x231))/0x2*(-parseInt(_0x3742cd(0x23c))/0x3)+-parseInt(_0x3742cd(0x269))/0x4+-parseInt(_0x3742cd(0x240))/0x5+parseInt(_0x3742cd(0x26c))/0x6+parseInt(_0x3742cd(0x268))/0x7*(parseInt(_0x3742cd(0x1fa))/0x8)+parseInt(_0x3742cd(0x1ec))/0x9;if(_0x824f3d===_0x13abb3)break;else _0x4fe286['push'](_0x4fe286['shift']());}catch(_0xf8a599){_0x4fe286['push'](_0x4fe286['shift']());}}}(a55_0x5df7,0xf3a97));const path=require(a55_0x1ec1e3(0x1e2)),url=require(a55_0x1ec1e3(0x229)),util=require('util'),helper=require('../../helpers/helper'),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule,isBrowserstackInfra}=require(a55_0x1ec1e3(0x248)),{o11yErrorHandler}=require(a55_0x1ec1e3(0x27d)),{debug,getPlatformDetails}=require(a55_0x1ec1e3(0x28d)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a55_0x1ec1e3(0x220)),{FRAMEWORKS}=require(a55_0x1ec1e3(0x29d)),logger=require('../../helpers/logger')[a55_0x1ec1e3(0x242)],scripts=require('../../helpers/accessibility-automation/scripts'),{browserStackExecuteDriver}=require(a55_0x1ec1e3(0x24c)),AccessibilityHelper=require(a55_0x1ec1e3(0x28a)),constants=require(a55_0x1ec1e3(0x1e7)),BrowserstackCLI=require('../v2/browserstackCLI'),AutomationFrameworkState=require('../v2/state/automationFrameworkState.js'),HookState=require(a55_0x1ec1e3(0x2ae)),{performScanWithRetry}=require(a55_0x1ec1e3(0x1ff)),ClientTroubleShootingService=require(a55_0x1ec1e3(0x25c)),getBrowserNameFromChannel=_0x1c9217=>{const _0x372bcc=a55_0x1ec1e3,_0x23a529={};_0x23a529[_0x372bcc(0x1ed)]=_0x372bcc(0x259),_0x23a529[_0x372bcc(0x222)]='chrome',_0x23a529[_0x372bcc(0x226)]=_0x372bcc(0x243),_0x23a529[_0x372bcc(0x244)]=function(_0x3c8603,_0x5918d8){return _0x3c8603===_0x5918d8;},_0x23a529[_0x372bcc(0x253)]=_0x372bcc(0x24f),_0x23a529[_0x372bcc(0x283)]='safari',_0x23a529[_0x372bcc(0x254)]=_0x372bcc(0x2ab),_0x23a529[_0x372bcc(0x20c)]=_0x372bcc(0x234);const _0x3e5254=_0x23a529,_0x8dc7f0=_0x3e5254[_0x372bcc(0x1ed)]['split']('|');let _0x449750=0x0;while(!![]){switch(_0x8dc7f0[_0x449750++]){case'0':if(_0x1c9217['includes'](_0x3e5254[_0x372bcc(0x222)]))return _0x3e5254[_0x372bcc(0x222)];continue;case'1':if(_0x1c9217[_0x372bcc(0x23a)](_0x3e5254[_0x372bcc(0x226)]))return _0x3e5254[_0x372bcc(0x226)];continue;case'2':if(_0x3e5254[_0x372bcc(0x244)](_0x1c9217,_0x3e5254[_0x372bcc(0x253)]))return _0x3e5254[_0x372bcc(0x253)];continue;case'3':if(_0x1c9217[_0x372bcc(0x23a)](_0x3e5254[_0x372bcc(0x283)]))return _0x3e5254[_0x372bcc(0x283)];continue;case'4':if(_0x1c9217[_0x372bcc(0x23a)](_0x3e5254[_0x372bcc(0x254)]))return _0x3e5254['RbnlH'];continue;case'5':if(_0x1c9217[_0x372bcc(0x23a)](_0x3e5254[_0x372bcc(0x20c)]))return _0x3e5254[_0x372bcc(0x20c)];continue;}break;}},getBrowserFromWSEndpoint=_0x47ba32=>{const _0x2aa132=a55_0x1ec1e3,_0x282fa5={'Ijpks':'chrome','YEaVG':function(_0x481d3b,_0x59756b){return _0x481d3b(_0x59756b);}};try{const _0x24fb8f=url[_0x2aa132(0x1ee)](_0x47ba32),_0x1857fe=new URLSearchParams(_0x24fb8f[_0x2aa132(0x282)]),_0x2c9b8c=Object[_0x2aa132(0x20d)](_0x1857fe[_0x2aa132(0x232)]()),_0x301679=JSON[_0x2aa132(0x1ee)](_0x2c9b8c['caps']);if(_0x301679&&(_0x301679[_0x2aa132(0x274)]||_0x301679[_0x2aa132(0x21f)]))return _0x301679[_0x2aa132(0x274)]||_0x301679[_0x2aa132(0x21f)];return _0x282fa5['Ijpks'];}catch(_0x5a59fc){_0x282fa5[_0x2aa132(0x252)](debug,'Error\x20in\x20getting\x20browser\x20from\x20caps:\x20'+_0x5a59fc[_0x2aa132(0x276)]());}},getCloudProviderFromWsEndpoint=_0x10c687=>{const _0xa5104c=a55_0x1ec1e3,_0x112c55={};_0x112c55[_0xa5104c(0x28f)]=_0xa5104c(0x246),_0x112c55[_0xa5104c(0x27b)]=_0xa5104c(0x218);const _0x144d80=_0x112c55;if(_0x10c687[_0xa5104c(0x23a)](constants[_0xa5104c(0x219)])||_0x10c687[_0xa5104c(0x23a)](constants['BSTACK_ATS_URL']))return _0x144d80['RyTkt'];return _0x144d80['ETUsb'];},a55_0x3e4c96={};a55_0x3e4c96['cloudProvider']=undefined,a55_0x3e4c96['bsSessionId']=undefined,a55_0x3e4c96['browser']=undefined,a55_0x3e4c96[a55_0x1ec1e3(0x216)]=undefined,a55_0x3e4c96[a55_0x1ec1e3(0x286)]=undefined,a55_0x3e4c96[a55_0x1ec1e3(0x212)]=undefined,a55_0x3e4c96[a55_0x1ec1e3(0x250)]=undefined,a55_0x3e4c96['capabilities']={};class PlaywrightSessionDetails{static [a55_0x1ec1e3(0x280)]=a55_0x3e4c96;constructor(){const _0x75d196=a55_0x1ec1e3,_0x5c7d88={};_0x5c7d88[_0x75d196(0x23f)]='Invalid\x20constructor,\x20please\x20use\x20static\x20methods';const _0x39853c=_0x5c7d88;throw new Error(_0x39853c[_0x75d196(0x23f)]);}static [a55_0x1ec1e3(0x299)]=null;static['setupBrowserDetails'](_0x1d68c7,_0x3e0ed2,_0xec61bd=null){const _0x259150=a55_0x1ec1e3,_0x527ad0={'EfimI':function(_0xfc1f1,_0x2c74c6){return _0xfc1f1===_0x2c74c6;},'JCsUu':_0x259150(0x20f),'IxGvd':'Browser\x20is\x20not\x20defined\x20or\x20not\x20available','aIQoa':function(_0x17fa2f,_0x51d6f6){return _0x17fa2f===_0x51d6f6;},'zQxXm':_0x259150(0x294),'gSuLF':'local_grid','tcyrX':function(_0x59eb82,_0x355974,_0xc7555){return _0x59eb82(_0x355974,_0xc7555);},'jVfVP':'_browserType','ZLdNr':'_defaultConnectOptions','pHiJC':_0x259150(0x247),'vUhJR':_0x259150(0x214),'DiSwj':'connectOptions','qQCBq':function(_0x24fa78,_0x56484){return _0x24fa78(_0x56484);},'SsDjc':function(_0x75e675,_0x15c970){return _0x75e675===_0x15c970;},'MxQdz':_0x259150(0x246),'uMdmE':'turboscale','eCgkt':_0x259150(0x293),'iccQN':function(_0x1cdf07){return _0x1cdf07();},'meaLm':function(_0x2a4b3b,_0x185c1e){return _0x2a4b3b&&_0x185c1e;},'MqXYh':function(_0x1c3971){return _0x1c3971();},'VyJGf':function(_0x2c1b88){return _0x2c1b88();},'AGlCG':function(_0xd03cc8,_0x37897e){return _0xd03cc8+_0x37897e;},'pPeaE':_0x259150(0x25b),'enNmE':function(_0x4b9f70){return _0x4b9f70();},'crdmt':function(_0x556149,_0x1a67f9,_0x840ed6){return _0x556149(_0x1a67f9,_0x840ed6);},'TKPYn':_0x259150(0x28b)},_0x4b685c=this;return _0x527ad0[_0x259150(0x25a)](o11yErrorHandler,async function _0x1deb08(_0x1f76f5,_0x3204b7,_0x12e8a1=null){const _0x24cd7d=_0x259150;let _0x15e5a6=_0x1f76f5[_0x24cd7d(0x23e)],_0x50a566=null;_0x1f76f5&&_0x527ad0[_0x24cd7d(0x20b)](typeof _0x1f76f5[_0x24cd7d(0x275)],_0x527ad0[_0x24cd7d(0x23b)])?_0x50a566=_0x1f76f5[_0x24cd7d(0x275)]():logger[_0x24cd7d(0x1fc)](_0x527ad0[_0x24cd7d(0x1f5)]);let _0x34a332=null;_0x1f76f5&&_0x527ad0[_0x24cd7d(0x270)](typeof _0x1f76f5[_0x24cd7d(0x1f3)],_0x527ad0[_0x24cd7d(0x23b)])?_0x34a332=_0x1f76f5[_0x24cd7d(0x1f3)]():logger[_0x24cd7d(0x1fc)](_0x527ad0[_0x24cd7d(0x228)]);let _0x8f07f5=null,_0x7694c1=null,_0x19fff8=null,_0x4d5f08=_0x527ad0[_0x24cd7d(0x2aa)];if(_0x1f76f5[_0x24cd7d(0x2a9)][_0x24cd7d(0x1ef)]()||global['accessibilityPlatform']&&!process[_0x24cd7d(0x1eb)][_0x24cd7d(0x1e4)]){let _0x4a9eae=null;_0x527ad0[_0x24cd7d(0x239)](nestedKeyValue,_0x1f76f5,[_0x527ad0[_0x24cd7d(0x2a1)],_0x527ad0['ZLdNr']])?_0x4a9eae=_0x1f76f5[_0x24cd7d(0x24d)][_0x24cd7d(0x26e)]:_0x4a9eae=_0x527ad0[_0x24cd7d(0x239)](nestedKeyValue,_0x3204b7,[_0x527ad0[_0x24cd7d(0x258)],_0x527ad0['vUhJR'],_0x527ad0[_0x24cd7d(0x1fd)]]);const _0x47165e=_0x12e8a1||_0x4a9eae&&_0x4a9eae[_0x24cd7d(0x1e6)];if(_0x47165e){_0x4d5f08=_0x527ad0[_0x24cd7d(0x1e3)](getCloudProviderFromWsEndpoint,_0x47165e);if(_0x527ad0['SsDjc'](_0x4d5f08,_0x527ad0[_0x24cd7d(0x262)]))_0x19fff8=constants[_0x24cd7d(0x22f)][_0x24cd7d(0x2ad)](_0x47165e)?_0x527ad0[_0x24cd7d(0x285)]:_0x527ad0[_0x24cd7d(0x225)],_0x15e5a6=_0x527ad0[_0x24cd7d(0x1e3)](getBrowserFromWSEndpoint,_0x47165e)||_0x15e5a6,_0x8f07f5=_0x4b685c[_0x24cd7d(0x280)][_0x24cd7d(0x286)],_0x7694c1=_0x4b685c[_0x24cd7d(0x280)][_0x24cd7d(0x212)];else{const _0xcf42e9=await _0x527ad0[_0x24cd7d(0x25f)](getPlatformDetails);_0x8f07f5=_0xcf42e9['platformName'],_0x7694c1=_0xcf42e9[_0x24cd7d(0x22c)];}}if(_0x527ad0[_0x24cd7d(0x290)](!_0x8f07f5,!_0x7694c1)&&!_0x527ad0[_0x24cd7d(0x202)](isBrowserstackInfra)){const _0x53246d=await _0x527ad0[_0x24cd7d(0x2a2)](getPlatformDetails);_0x8f07f5=_0x53246d[_0x24cd7d(0x21a)],_0x7694c1=_0x53246d[_0x24cd7d(0x22c)];}}else{_0x3204b7&&_0x3204b7[_0x24cd7d(0x247)]['use'][_0x24cd7d(0x1e8)]?_0x15e5a6=_0x527ad0[_0x24cd7d(0x1e3)](getBrowserNameFromChannel,_0x3204b7[_0x24cd7d(0x247)]['use'][_0x24cd7d(0x1e8)]):_0x15e5a6=_0x527ad0['AGlCG'](_0x527ad0[_0x24cd7d(0x21d)],_0x15e5a6[_0x24cd7d(0x264)]());const _0x199862=await _0x527ad0[_0x24cd7d(0x249)](getPlatformDetails);_0x8f07f5=_0x199862['platformName'],_0x7694c1=_0x199862[_0x24cd7d(0x22c)];}const _0xc95608={};_0xc95608['browser']=_0x15e5a6,_0xc95608[_0x24cd7d(0x216)]=_0x50a566,_0xc95608[_0x24cd7d(0x298)]={},_0xc95608[_0x24cd7d(0x286)]=_0x8f07f5,_0xc95608[_0x24cd7d(0x212)]=_0x7694c1,_0xc95608[_0x24cd7d(0x250)]=_0x19fff8;const _0x55f169=_0xc95608;_0x34a332&&(_0x55f169['capabilities'][_0x24cd7d(0x263)]=_0x34a332);const _0x18bf35={};_0x18bf35[_0x24cd7d(0x205)]=_0x4d5f08,_0x4b685c[_0x24cd7d(0x280)]=Object[_0x24cd7d(0x251)]({},_0x4b685c['currentSessionDetails'],_0x18bf35,_0x55f169);},_0x527ad0[_0x259150(0x210)])(_0x1d68c7,_0x3e0ed2,_0xec61bd);}static[a55_0x1ec1e3(0x241)](){const _0x409a47=a55_0x1ec1e3;this[_0x409a47(0x21b)](),this[_0x409a47(0x2a4)]();}static['patchConnection'](){const _0x1913e2=a55_0x1ec1e3,_0x579b93={'wfgIe':function(_0x1573a9,_0x4dd8c6,_0x1a7105){return _0x1573a9(_0x4dd8c6,_0x1a7105);},'FvWQj':'currentTest','hzISS':'testInfo','Acfir':_0x1913e2(0x29a),'amyia':function(_0x3942a4,_0xeb6472,_0x1d528a){return _0x3942a4(_0xeb6472,_0x1d528a);},'VLSUv':function(_0x2a303a,_0xe2e7f7,_0x45d5a8){return _0x2a303a(_0xe2e7f7,_0x45d5a8);},'pkzLL':_0x1913e2(0x1f9),'EvTbX':_0x1913e2(0x236),'HakQp':function(_0xb4113f,_0x40a559){return _0xb4113f===_0x40a559;},'nCUZS':_0x1913e2(0x28c),'fhVCd':function(_0x2c4f20,_0x59d709,_0x3a6d46,_0x4a682c){return _0x2c4f20(_0x59d709,_0x3a6d46,_0x4a682c);},'xlSYS':function(_0x178974,_0x56c2f9){return _0x178974||_0x56c2f9;},'fYmEA':function(_0x26cb53,_0x17d03e){return _0x26cb53(_0x17d03e);},'QZrRy':_0x1913e2(0x281),'ygMNS':function(_0x2572b4,_0x566906){return _0x2572b4!=_0x566906;},'wfgGx':function(_0x55c0b2,_0x4c1f5e){return _0x55c0b2!=_0x4c1f5e;},'QxYVk':function(_0x10ab14){return _0x10ab14();},'ZzYEo':_0x1913e2(0x277),'wCeYf':function(_0x5dda24,_0x5c3369){return _0x5dda24(_0x5c3369);},'JapSZ':_0x1913e2(0x1f7),'HRUaf':_0x1913e2(0x1f2),'LaPvL':function(_0x4fd63a,_0x3b8267){return _0x4fd63a(_0x3b8267);}},_0x14f9c5=this;!this[_0x1913e2(0x266)]&&(this['Connection']=helper[_0x1913e2(0x201)](),!this['Connection']&&_0x579b93[_0x1913e2(0x29b)](debug,_0x579b93[_0x1913e2(0x204)]));const _0xd18673=this[_0x1913e2(0x266)];if(_0x579b93[_0x1913e2(0x1fb)](_0xd18673,null)&&_0xd18673[_0x1913e2(0x2a3)][_0x1913e2(0x265)])return;try{if(_0x579b93[_0x1913e2(0x291)](_0xd18673,null)){const _0x3633fc=_0xd18673['prototype'][_0x1913e2(0x1f7)],_0x2b202f=_0xd18673[_0x1913e2(0x2a3)]['sendMessageToServer'];_0x579b93[_0x1913e2(0x213)](isAccessibilityAutomationSession)&&Object[_0x1913e2(0x237)](_0xd18673[_0x1913e2(0x2a3)],_0x579b93[_0x1913e2(0x1fe)],{'get':function(){const _0xa95c2d=_0x1913e2,_0x282203={'mCbcO':function(_0x51af12,_0x4b5936,_0x5258f2){const _0x245e38=a55_0x5956;return _0x579b93[_0x245e38(0x24e)](_0x51af12,_0x4b5936,_0x5258f2);},'ytaIs':_0x579b93[_0xa95c2d(0x1f6)],'ocRoW':_0x579b93[_0xa95c2d(0x20e)],'QGGNp':_0x579b93[_0xa95c2d(0x2a8)],'IbqAg':function(_0x1a6a15,_0x29b8f6,_0x5390c8){const _0x5db65f=_0xa95c2d;return _0x579b93[_0x5db65f(0x27c)](_0x1a6a15,_0x29b8f6,_0x5390c8);},'fmELH':function(_0x2994e7,_0x32879b,_0x5c6a16){const _0x4a328c=_0xa95c2d;return _0x579b93[_0x4a328c(0x221)](_0x2994e7,_0x32879b,_0x5c6a16);},'CTxwg':_0x579b93['pkzLL'],'tOlev':_0x579b93[_0xa95c2d(0x1f8)],'jELjI':function(_0x34b263,_0x29f0a2){const _0x4f4bbd=_0xa95c2d;return _0x579b93[_0x4f4bbd(0x1f0)](_0x34b263,_0x29f0a2);},'pVTTn':_0x579b93[_0xa95c2d(0x26b)],'XtMOI':function(_0xe2154c,_0x2706ea,_0x21521e,_0x2f4c83){return _0x579b93['fhVCd'](_0xe2154c,_0x2706ea,_0x21521e,_0x2f4c83);}};return async function(){const _0x38e959=_0xa95c2d;try{if(!global[_0x38e959(0x26a)]&&global['accessibilityPlatform']&&_0x282203[_0x38e959(0x257)](nestedKeyValue,global[_0x38e959(0x1f9)],[_0x282203[_0x38e959(0x1e5)],_0x282203['ocRoW'],_0x282203[_0x38e959(0x22e)]])&&_0x282203[_0x38e959(0x200)](shouldScanTestForAccessibility,global[_0x38e959(0x1f9)]['currentTest']['testInfo'][_0x38e959(0x29a)],!![])&&scripts['shouldWrapCommand'](arguments[0x1])){logger[_0x38e959(0x1fc)](_0x38e959(0x209)+arguments[0x1]),global[_0x38e959(0x26a)]=!![];const _0x5786cc=_0x282203[_0x38e959(0x27f)](nestedKeyValue,global,[_0x282203['CTxwg'],_0x282203[_0x38e959(0x29f)]]);_0x5786cc&&logger[_0x38e959(0x24a)](_0x38e959(0x261)+util['format'](await _0x282203['fmELH'](performScanWithRetry,_0x5786cc,arguments[0x1]))),_0x282203[_0x38e959(0x230)](arguments[0x0][_0x38e959(0x235)],_0x282203[_0x38e959(0x245)])&&global[_0x38e959(0x2a5)]&&logger[_0x38e959(0x24a)](_0x38e959(0x25e)+util[_0x38e959(0x1f4)](await _0x282203[_0x38e959(0x20a)](performScanWithRetry,global[_0x38e959(0x2a5)],arguments[0x1],scripts[_0x38e959(0x26d)])));}}catch(_0x22bf02){logger['debug'](_0x38e959(0x211)+util[_0x38e959(0x1f4)](_0x22bf02));}return global[_0x38e959(0x26a)]=![],_0x2b202f[_0x38e959(0x2a0)](this,arguments);};}}),!_0x579b93[_0x1913e2(0x22b)](isFalse,process[_0x1913e2(0x1eb)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&Object[_0x1913e2(0x237)](_0xd18673['prototype'],_0x579b93[_0x1913e2(0x29c)],{'get':function(){const _0x4359f2={'YwBzJ':function(_0x19829f,_0x2ed580){const _0x33798d=a55_0x5956;return _0x579b93[_0x33798d(0x256)](_0x19829f,_0x2ed580);},'HukGz':function(_0x4b1547,_0x1a5bf7){return _0x579b93['fYmEA'](_0x4b1547,_0x1a5bf7);}};return async function _0x57b4a5(_0x1e32a6){const _0x5222fe=a55_0x5956;if(BrowserstackCLI[_0x5222fe(0x1f1)]()[_0x5222fe(0x215)]()){const _0x1e0e3e={};_0x1e0e3e[_0x5222fe(0x206)]=_0x1e32a6,await BrowserstackCLI[_0x5222fe(0x1f1)]()[_0x5222fe(0x272)]()[_0x5222fe(0x23d)](AutomationFrameworkState[_0x5222fe(0x297)],HookState[_0x5222fe(0x288)],_0x1e0e3e);}else{const _0x468a3d=_0x1e32a6&&_0x1e32a6[_0x5222fe(0x267)]&&_0x1e32a6['params']['bsParams'];if(_0x468a3d){const _0x539c37=_0x468a3d[_0x5222fe(0x217)],_0x5df03e=_0x468a3d[_0x5222fe(0x29e)];_0x4359f2[_0x5222fe(0x1e9)](!_0x539c37,!_0x5df03e)&&await ClientTroubleShootingService[_0x5222fe(0x273)](),_0x5df03e&&(_0x4359f2[_0x5222fe(0x238)](debug,_0x5222fe(0x2a6)+_0x5df03e['toString']()),_0x14f9c5[_0x5222fe(0x280)][_0x5222fe(0x286)]=_0x5df03e[_0x5222fe(0x21a)],_0x14f9c5[_0x5222fe(0x280)][_0x5222fe(0x212)]=_0x5df03e[_0x5222fe(0x22c)]),_0x539c37&&(_0x4359f2[_0x5222fe(0x238)](debug,'Setting\x20session\x20id\x20received\x20from\x20BS\x20'+_0x539c37),_0x14f9c5[_0x5222fe(0x280)][_0x5222fe(0x2ac)]=_0x539c37);}}return _0x3633fc[_0x5222fe(0x2a0)](this,arguments);};}}),_0xd18673[_0x1913e2(0x2a3)]['_bstackDispatchPatched']=!![],logger['debug'](_0x579b93[_0x1913e2(0x28e)]);}}catch(_0xd3d166){_0x579b93['LaPvL'](debug,_0x1913e2(0x207)+_0xd3d166),_0x14f9c5[_0x1913e2(0x299)]=_0xd3d166[_0x1913e2(0x276)]();}}static[a55_0x1ec1e3(0x2a4)](){const _0x324118=a55_0x1ec1e3,_0x2060e0={'FonUR':function(_0x89e985,_0x5bae13){return _0x89e985(_0x5bae13);},'yfMCY':function(_0x28a34b,_0x145a66){return _0x28a34b(_0x145a66);},'ZsrQZ':function(_0x2de8dd){return _0x2de8dd();},'rCKDz':function(_0x231b95,_0x4cd66e){return _0x231b95>=_0x4cd66e;},'sRfLe':_0x324118(0x21e),'CcPuo':function(_0x1a91db,_0x1b52b6){return _0x1a91db(_0x1b52b6);},'AsdmA':_0x324118(0x284),'OQwTv':'lib','vPyTc':_0x324118(0x227),'IdOGu':_0x324118(0x243),'gzIII':_0x324118(0x292),'LjQGf':_0x324118(0x1ea),'msWYO':'Error\x20in\x20importing\x20crConnection','zKtgt':function(_0x345b3c,_0x24265b){return _0x345b3c!=_0x24265b;},'Dyiea':'_onMessage'},_0x1c3b89=this;if(_0x2060e0[_0x324118(0x22d)](isAccessibilityAutomationSession)){let _0x5248b7=null,_0x480d76=![];try{const _0x4c3b91=helper[_0x324118(0x289)](FRAMEWORKS[_0x324118(0x2a7)]);_0x480d76=_0x2060e0[_0x324118(0x223)](helper[_0x324118(0x224)](_0x4c3b91,_0x2060e0['sRfLe']),0x0);}catch(_0x9939aa){_0x2060e0[_0x324118(0x22a)](debug,'Error\x20evaluating\x20Playwright\x20version\x20for\x20CRConnection\x20patch:\x20'+_0x9939aa['toString']());}if(_0x480d76)_0x2060e0['CcPuo'](debug,_0x2060e0['AsdmA']);else try{const _0x152f26=path['join'](_0x2060e0['OQwTv'],_0x2060e0[_0x324118(0x25d)],_0x2060e0[_0x324118(0x21c)],_0x2060e0[_0x324118(0x27a)]),_0x15e565=_0x2060e0[_0x324118(0x22a)](importFileFromPWCore,_0x152f26);!_0x15e565?_0x2060e0['CcPuo'](debug,_0x2060e0[_0x324118(0x233)]):_0x5248b7=_0x15e565[_0x324118(0x296)];}catch(_0x2a7915){_0x2060e0[_0x324118(0x26f)](debug,_0x2060e0[_0x324118(0x279)]);}try{if(_0x2060e0[_0x324118(0x271)](_0x5248b7,null)){const _0x25a0ef=_0x5248b7[_0x324118(0x2a3)][_0x324118(0x287)];Object[_0x324118(0x237)](_0x5248b7[_0x324118(0x2a3)],_0x2060e0[_0x324118(0x255)],{'get':function(){return async function _0x29cf2e(_0xde8d5c){const _0x53b83b=a55_0x5956;try{if(BrowserstackCLI[_0x53b83b(0x1f1)]()[_0x53b83b(0x215)]()){const _0x1d0442={};_0x1d0442[_0x53b83b(0x206)]=_0xde8d5c,await BrowserstackCLI['getInstance']()['getAutomationFramework']()['trackEvent'](AutomationFrameworkState[_0x53b83b(0x297)],HookState['POST'],_0x1d0442),delete _0xde8d5c[_0x53b83b(0x24b)];}else{const _0x322c8f=_0xde8d5c['bStackParams'];if(_0x322c8f){delete _0xde8d5c[_0x53b83b(0x24b)];const _0x2f3ff1=_0x322c8f[_0x53b83b(0x217)],_0x742e77=_0x322c8f[_0x53b83b(0x29e)];_0x742e77&&(_0x2060e0[_0x53b83b(0x203)](debug,_0x53b83b(0x27e)+_0x742e77['toString']()),_0x1c3b89['currentSessionDetails'][_0x53b83b(0x286)]=_0x742e77[_0x53b83b(0x21a)],_0x1c3b89[_0x53b83b(0x280)][_0x53b83b(0x212)]=_0x742e77[_0x53b83b(0x22c)]),_0x2f3ff1&&(_0x2060e0[_0x53b83b(0x203)](debug,'Setting\x20session\x20id\x20received\x20from\x20browserstack\x20'+_0x2f3ff1),_0x1c3b89['currentSessionDetails'][_0x53b83b(0x2ac)]=_0x2f3ff1);}}}catch(_0x3f7981){_0x2060e0[_0x53b83b(0x26f)](debug,_0x53b83b(0x278)+_0x3f7981[_0x53b83b(0x276)]());}return _0x25a0ef['apply'](this,arguments);};}});}}catch(_0x294624){_0x2060e0[_0x324118(0x203)](debug,_0x324118(0x295)+_0x294624),_0x1c3b89[_0x324118(0x299)]=_0x294624[_0x324118(0x276)]();}}}static[a55_0x1ec1e3(0x260)](){const _0x3f48ed=a55_0x1ec1e3;return this[_0x3f48ed(0x280)];}}function a55_0x5df7(){const _0x49d613=['webkit','product','assign','YEaVG','jHfyF','RbnlH','Dyiea','xlSYS','mCbcO','pHiJC','1|0|5|4|3|2','crdmt','playwright-','../utils/clientTroubleshootingService.js','vPyTc','Driver\x20Scan\x20result=','iccQN','getDetails','Page\x20Scan\x20result=','MxQdz','deviceModel','toLowerCase','_bstackDispatchPatched','Connection','params','12243otLSbz','1786004bTPBmL','bstackPerformA11yScan','nCUZS','1812522Evtyki','performScan','_defaultConnectOptions','yfMCY','aIQoa','zKtgt','getAutomationFramework','reportSessionLinkingIssue','browser','version','toString','sendMessageToServer','Error\x20in\x20finding\x20platform\x20details\x20','msWYO','gzIII','ETUsb','amyia','../../helpers/test-observability/error-handler','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','fmELH','currentSessionDetails','Not\x20able\x20to\x20resolve\x20Connection\x20class','query','nDYqj','CRConnection\x20patch\x20unavailable\x20on\x20PW>=1.60\x20(server-side\x20class\x20not\x20reachable\x20in\x20SDK\x20process);\x20platform/sessionId\x20capture\x20continues\x20via\x20Connection.dispatch','uMdmE','platform','_onMessage','POST','getFrameworkVersion','./accessibility-helper','setupBrowserDetails','Page','../../helpers/test-observability/utils','HRUaf','RyTkt','meaLm','wfgGx','crConnection.js','automate','Device\x20Model\x20is\x20not\x20available','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','CRConnection','PLAYWRIGHT_DISPATCH','capabilities','sessionError','titlePath','fYmEA','JapSZ','../../helpers/test-observability/constants','platformDetails','tOlev','apply','jVfVP','VyJGf','prototype','patchCRConnection','__driver','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','PLAYWRIGHT','Acfir','_connection','gSuLF','firefox','bsSessionId','test','../v2/state/hookState.js','path','qQCBq','BS_A11Y_SKIP_CDP_CONNECT_OVERRIDE','ytaIs','wsEndpoint','../utils/constants','channel','YwBzJ','Not\x20able\x20to\x20import\x20crConnection','env','30263166knrsaE','ZYgYK','parse','isRemote','HakQp','getInstance','Successfully\x20patched\x20Connection\x20(sendMessageToServer\x20for\x20a11y,\x20dispatch\x20for\x20o11y)','model','format','IxGvd','FvWQj','dispatch','EvTbX','__workerDetails','1552jtgIXC','ygMNS','debug','DiSwj','ZzYEo','../../helpers/accessibility-automation/accessibilityRetryHelper.js','IbqAg','resolveConnectionClass','MqXYh','FonUR','QZrRy','cloudProvider','message','Error\x20in\x20getting\x20applying\x20Connection\x20patch\x20','1471498HOMfsu','Performing\x20scan\x20for\x20','XtMOI','EfimI','jLddn','fromEntries','hzISS','function','TKPYn','Failed\x20to\x20perform\x20scan\x20','platform_version','QxYVk','use','isRunning','browser_version','sessionId','unknown_grid','BSTACK_URL','platformName','patchConnection','IdOGu','pPeaE','1.60.0','browserName','../../helpers/accessibility-automation/helper','VLSUv','msrdH','rCKDz','compareVersions','eCgkt','EktFc','server','zQxXm','url','CcPuo','wCeYf','platformVersion','ZsrQZ','QGGNp','ATS_WSS_URL_REGEX','jELjI','234278OEefLm','entries','LjQGf','edge','_type','pwPage','defineProperty','HukGz','tcyrX','includes','JCsUu','3HaAaTg','trackEvent','_name','IOYQk','6025340okbqee','patch','winstonLogger','chromium','ZDksA','pVTTn','browserstack','project','../../helpers/helper','enNmE','info','bStackParams','../../bin/playwright/accessibility-helper','_browserType','wfgIe'];a55_0x5df7=function(){return _0x49d613;};return a55_0x5df7();}function a55_0x5956(_0xe0ec7f,_0x3bd9c9){const _0x5df7a8=a55_0x5df7();return a55_0x5956=function(_0x595681,_0x2b54af){_0x595681=_0x595681-0x1e2;let _0x5242fc=_0x5df7a8[_0x595681];return _0x5242fc;},a55_0x5956(_0xe0ec7f,_0x3bd9c9);}module['exports']=PlaywrightSessionDetails;
1
+ function a56_0xef5d(_0x5d6ae9,_0xffb141){const _0x30cb8b=a56_0x30cb();return a56_0xef5d=function(_0xef5d09,_0x5a51fa){_0xef5d09=_0xef5d09-0xc2;let _0x42982c=_0x30cb8b[_0xef5d09];return _0x42982c;},a56_0xef5d(_0x5d6ae9,_0xffb141);}const a56_0x4f5722=a56_0xef5d;(function(_0x3c7aa4,_0x3845ba){const _0x52ae78=a56_0xef5d,_0x2d5dc6=_0x3c7aa4();while(!![]){try{const _0x22ebe7=-parseInt(_0x52ae78(0x139))/0x1+parseInt(_0x52ae78(0x184))/0x2*(parseInt(_0x52ae78(0x114))/0x3)+-parseInt(_0x52ae78(0x117))/0x4*(-parseInt(_0x52ae78(0x143))/0x5)+parseInt(_0x52ae78(0xda))/0x6+-parseInt(_0x52ae78(0xdb))/0x7*(parseInt(_0x52ae78(0x18b))/0x8)+parseInt(_0x52ae78(0xf9))/0x9*(parseInt(_0x52ae78(0x17b))/0xa)+-parseInt(_0x52ae78(0xd3))/0xb;if(_0x22ebe7===_0x3845ba)break;else _0x2d5dc6['push'](_0x2d5dc6['shift']());}catch(_0x12cf11){_0x2d5dc6['push'](_0x2d5dc6['shift']());}}}(a56_0x30cb,0x8cce3));const path=require(a56_0x4f5722(0x10b)),url=require(a56_0x4f5722(0xe9)),util=require(a56_0x4f5722(0x178)),helper=require(a56_0x4f5722(0x179)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule,isBrowserstackInfra}=require(a56_0x4f5722(0x179)),{o11yErrorHandler}=require('../../helpers/test-observability/error-handler'),{debug,getPlatformDetails}=require('../../helpers/test-observability/utils'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a56_0x4f5722(0x191)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),logger=require('../../helpers/logger')['winstonLogger'],scripts=require(a56_0x4f5722(0xd5)),{browserStackExecuteDriver}=require(a56_0x4f5722(0x12d)),AccessibilityHelper=require(a56_0x4f5722(0x17f)),constants=require(a56_0x4f5722(0x18f)),BrowserstackCLI=require(a56_0x4f5722(0x157)),AutomationFrameworkState=require(a56_0x4f5722(0xc6)),HookState=require(a56_0x4f5722(0x11e)),{performScanWithRetry}=require(a56_0x4f5722(0x13d)),ClientTroubleShootingService=require(a56_0x4f5722(0x136)),getBrowserNameFromChannel=_0x676e7a=>{const _0x4be523=a56_0x4f5722,_0x514b67={};_0x514b67[_0x4be523(0x151)]=_0x4be523(0x13e),_0x514b67[_0x4be523(0x129)]=_0x4be523(0x160),_0x514b67[_0x4be523(0x14b)]=_0x4be523(0xc3),_0x514b67[_0x4be523(0x171)]=_0x4be523(0x14d),_0x514b67['UxyBJ']=function(_0x2682c2,_0x465609){return _0x2682c2===_0x465609;},_0x514b67[_0x4be523(0x18c)]='webkit',_0x514b67['mYvPd']=_0x4be523(0x183),_0x514b67['SXZsB']=_0x4be523(0x103);const _0x6aab4e=_0x514b67,_0x34982=_0x6aab4e[_0x4be523(0x151)][_0x4be523(0xeb)]('|');let _0x7b6d10=0x0;while(!![]){switch(_0x34982[_0x7b6d10++]){case'0':if(_0x676e7a[_0x4be523(0x15d)](_0x6aab4e[_0x4be523(0x129)]))return _0x6aab4e[_0x4be523(0x129)];continue;case'1':if(_0x676e7a[_0x4be523(0x15d)](_0x6aab4e[_0x4be523(0x14b)]))return _0x6aab4e[_0x4be523(0x14b)];continue;case'2':if(_0x676e7a['includes'](_0x6aab4e['obNEU']))return _0x6aab4e[_0x4be523(0x171)];continue;case'3':if(_0x6aab4e['UxyBJ'](_0x676e7a,_0x6aab4e[_0x4be523(0x18c)]))return _0x6aab4e[_0x4be523(0x18c)];continue;case'4':if(_0x676e7a[_0x4be523(0x15d)](_0x6aab4e[_0x4be523(0xf5)]))return _0x6aab4e[_0x4be523(0xf5)];continue;case'5':if(_0x676e7a['includes'](_0x6aab4e['SXZsB']))return _0x6aab4e['SXZsB'];continue;}break;}},getBrowserFromWSEndpoint=_0x355aa7=>{const _0x154710=a56_0x4f5722,_0x3fd4b7={'raYvK':_0x154710(0xc3),'BYCKS':function(_0x486f01,_0x21e92f){return _0x486f01(_0x21e92f);}};try{const _0x5a53ad=url[_0x154710(0x108)](_0x355aa7),_0x3f8a09=new URLSearchParams(_0x5a53ad[_0x154710(0x10c)]),_0x352800=Object[_0x154710(0xd0)](_0x3f8a09[_0x154710(0x14e)]()),_0x58c7f2=JSON['parse'](_0x352800[_0x154710(0x180)]);if(_0x58c7f2&&(_0x58c7f2[_0x154710(0x13f)]||_0x58c7f2['browserName']))return _0x58c7f2[_0x154710(0x13f)]||_0x58c7f2[_0x154710(0x14c)];return _0x3fd4b7['raYvK'];}catch(_0x274b8c){_0x3fd4b7[_0x154710(0x15b)](debug,_0x154710(0xe7)+_0x274b8c[_0x154710(0x156)]());}},getCloudProviderFromWsEndpoint=_0x2b3804=>{const _0x478bcd=a56_0x4f5722,_0x326870={};_0x326870[_0x478bcd(0xd9)]=_0x478bcd(0x13b),_0x326870[_0x478bcd(0x15e)]=_0x478bcd(0x127);const _0x873527=_0x326870;if(_0x2b3804[_0x478bcd(0x15d)](constants['BSTACK_URL'])||_0x2b3804['includes'](constants[_0x478bcd(0x14f)]))return _0x873527[_0x478bcd(0xd9)];return _0x873527['eWxwP'];},a56_0x6b6f0={};a56_0x6b6f0[a56_0x4f5722(0x11f)]=undefined,a56_0x6b6f0['bsSessionId']=undefined,a56_0x6b6f0[a56_0x4f5722(0x13f)]=undefined,a56_0x6b6f0[a56_0x4f5722(0x131)]=undefined,a56_0x6b6f0[a56_0x4f5722(0x165)]=undefined,a56_0x6b6f0[a56_0x4f5722(0x17d)]=undefined,a56_0x6b6f0[a56_0x4f5722(0x104)]=undefined,a56_0x6b6f0[a56_0x4f5722(0xd8)]={};class PlaywrightSessionDetails{static [a56_0x4f5722(0xfa)]=a56_0x6b6f0;constructor(){const _0x4be9f0=a56_0x4f5722,_0x13fc06={};_0x13fc06[_0x4be9f0(0x111)]=_0x4be9f0(0x11b);const _0x18914c=_0x13fc06;throw new Error(_0x18914c[_0x4be9f0(0x111)]);}static [a56_0x4f5722(0xdd)]=null;static[a56_0x4f5722(0x164)](_0x5e75c7,_0x3b57db,_0x206fe8=null){const _0x4361ef=a56_0x4f5722,_0x3bde8e={'IUTsR':function(_0x149c2a,_0x2e65b0){return _0x149c2a===_0x2e65b0;},'wkTaD':'function','dBOjI':_0x4361ef(0xfd),'UcdHU':_0x4361ef(0xc5),'HAmSQ':_0x4361ef(0x124),'ePhAM':function(_0x3dd158,_0xc270ac,_0x23d56b){return _0x3dd158(_0xc270ac,_0x23d56b);},'gIYJa':_0x4361ef(0x112),'Bcxct':_0x4361ef(0x188),'PfRjX':function(_0x4f31d5,_0x21460c,_0x1856e4){return _0x4f31d5(_0x21460c,_0x1856e4);},'BhqjH':'project','PoGmS':_0x4361ef(0xff),'daWtX':_0x4361ef(0x107),'fpJyZ':function(_0x25542c,_0x1a1a54){return _0x25542c(_0x1a1a54);},'fQhIy':function(_0x195bc2,_0x7698d8){return _0x195bc2===_0x7698d8;},'oanVy':_0x4361ef(0x13b),'SkRTP':_0x4361ef(0xc2),'nuEZd':_0x4361ef(0xf8),'klecJ':function(_0x59286c,_0x2771af){return _0x59286c(_0x2771af);},'iklWG':function(_0x3314a7){return _0x3314a7();},'IAdyW':function(_0x14393b,_0x304426){return _0x14393b&&_0x304426;},'oJCjx':function(_0x1776a7){return _0x1776a7();},'PCLFz':function(_0x495539,_0xa17308){return _0x495539(_0xa17308);},'SbQcp':function(_0x232688,_0x472e41){return _0x232688+_0x472e41;},'DNWYF':_0x4361ef(0x18e),'OAxQr':_0x4361ef(0x164)},_0x153fd8=this;return _0x3bde8e[_0x4361ef(0x12e)](o11yErrorHandler,async function _0x22bb9d(_0x1b1b9f,_0x128274,_0x4dc410=null){const _0x478531=_0x4361ef;let _0x13c4b6=_0x1b1b9f[_0x478531(0x144)],_0xee44ab=null;_0x1b1b9f&&_0x3bde8e[_0x478531(0x122)](typeof _0x1b1b9f['version'],_0x3bde8e['wkTaD'])?_0xee44ab=_0x1b1b9f[_0x478531(0xd1)]():logger[_0x478531(0xea)](_0x3bde8e[_0x478531(0xd2)]);let _0x5a4479=null;_0x1b1b9f&&_0x3bde8e[_0x478531(0x122)](typeof _0x1b1b9f[_0x478531(0x125)],_0x3bde8e['wkTaD'])?_0x5a4479=_0x1b1b9f['model']():logger['debug'](_0x3bde8e['UcdHU']);let _0x767d0d=null,_0x32b6ff=null,_0x16b243=null,_0x3f8282=_0x3bde8e[_0x478531(0x173)];if(_0x1b1b9f['_connection']['isRemote']()||global[_0x478531(0x155)]&&!process[_0x478531(0x146)][_0x478531(0xca)]){let _0x4371ff=null;_0x3bde8e[_0x478531(0x12e)](nestedKeyValue,_0x1b1b9f,[_0x3bde8e[_0x478531(0x134)],_0x3bde8e[_0x478531(0x166)]])?_0x4371ff=_0x1b1b9f[_0x478531(0x112)][_0x478531(0x188)]:_0x4371ff=_0x3bde8e[_0x478531(0x17a)](nestedKeyValue,_0x128274,[_0x3bde8e[_0x478531(0xed)],_0x3bde8e[_0x478531(0x113)],_0x3bde8e[_0x478531(0xc8)]]);const _0x4fbb12=_0x4dc410||_0x4371ff&&_0x4371ff[_0x478531(0x154)];if(_0x4fbb12){_0x3f8282=_0x3bde8e[_0x478531(0xe8)](getCloudProviderFromWsEndpoint,_0x4fbb12);if(_0x3bde8e[_0x478531(0xe6)](_0x3f8282,_0x3bde8e[_0x478531(0x15a)]))_0x16b243=constants[_0x478531(0x137)][_0x478531(0x16a)](_0x4fbb12)?_0x3bde8e['SkRTP']:_0x3bde8e[_0x478531(0x105)],_0x13c4b6=_0x3bde8e[_0x478531(0xf0)](getBrowserFromWSEndpoint,_0x4fbb12)||_0x13c4b6,_0x767d0d=_0x153fd8[_0x478531(0xfa)][_0x478531(0x165)],_0x32b6ff=_0x153fd8[_0x478531(0xfa)]['platform_version'];else{const _0x1ec281=await _0x3bde8e[_0x478531(0x110)](getPlatformDetails);_0x767d0d=_0x1ec281[_0x478531(0x185)],_0x32b6ff=_0x1ec281[_0x478531(0x172)];}}if(_0x3bde8e[_0x478531(0xef)](!_0x767d0d,!_0x32b6ff)&&!_0x3bde8e['oJCjx'](isBrowserstackInfra)){const _0x30514e=await _0x3bde8e['iklWG'](getPlatformDetails);_0x767d0d=_0x30514e[_0x478531(0x185)],_0x32b6ff=_0x30514e['platformVersion'];}}else{_0x128274&&_0x128274[_0x478531(0x132)][_0x478531(0xff)][_0x478531(0xd6)]?_0x13c4b6=_0x3bde8e[_0x478531(0x163)](getBrowserNameFromChannel,_0x128274[_0x478531(0x132)][_0x478531(0xff)][_0x478531(0xd6)]):_0x13c4b6=_0x3bde8e[_0x478531(0x123)](_0x3bde8e[_0x478531(0xcf)],_0x13c4b6[_0x478531(0x145)]());const _0x29267f=await _0x3bde8e[_0x478531(0x110)](getPlatformDetails);_0x767d0d=_0x29267f[_0x478531(0x185)],_0x32b6ff=_0x29267f[_0x478531(0x172)];}const _0x3a1aac={};_0x3a1aac[_0x478531(0x13f)]=_0x13c4b6,_0x3a1aac[_0x478531(0x131)]=_0xee44ab,_0x3a1aac['capabilities']={},_0x3a1aac[_0x478531(0x165)]=_0x767d0d,_0x3a1aac[_0x478531(0x17d)]=_0x32b6ff,_0x3a1aac['product']=_0x16b243;const _0x17f715=_0x3a1aac;_0x5a4479&&(_0x17f715['capabilities'][_0x478531(0xe2)]=_0x5a4479);const _0x1a0a1a={};_0x1a0a1a['cloudProvider']=_0x3f8282,_0x153fd8['currentSessionDetails']=Object[_0x478531(0xe4)]({},_0x153fd8[_0x478531(0xfa)],_0x1a0a1a,_0x17f715);},_0x3bde8e[_0x4361ef(0xf7)])(_0x5e75c7,_0x3b57db,_0x206fe8);}static[a56_0x4f5722(0xc9)](){const _0x2dbb72=a56_0x4f5722;this[_0x2dbb72(0x102)](),this[_0x2dbb72(0x16b)]();}static[a56_0x4f5722(0x102)](){const _0x24186d=a56_0x4f5722,_0x35e548={'YonhK':function(_0x38268c,_0x5b813a,_0x49e7eb){return _0x38268c(_0x5b813a,_0x49e7eb);},'amzcE':'currentTest','nDsDR':_0x24186d(0xf1),'ZPTtt':_0x24186d(0x115),'OMnHl':function(_0x5cb421,_0x1ca1b3,_0x5996a5){return _0x5cb421(_0x1ca1b3,_0x5996a5);},'PojvK':_0x24186d(0xdc),'cqmJi':'pwPage','BNRnW':function(_0x564a19,_0x4f459a){return _0x564a19===_0x4f459a;},'IFMzI':_0x24186d(0xe0),'XSApq':function(_0x44381b,_0x52f34c,_0x574aae,_0x127bfd){return _0x44381b(_0x52f34c,_0x574aae,_0x127bfd);},'PmYcj':function(_0x4f47ed,_0x33b31c){return _0x4f47ed||_0x33b31c;},'amNnc':function(_0x113bb7,_0x533ada){return _0x113bb7(_0x533ada);},'AbbDM':'Not\x20able\x20to\x20resolve\x20Connection\x20class','hbjGk':function(_0x56f26a,_0x2fe347){return _0x56f26a!=_0x2fe347;},'UoBYu':function(_0x5374a5){return _0x5374a5();},'RCwWB':'sendMessageToServer','odtzf':function(_0x5e0f55,_0x1f3d93){return _0x5e0f55(_0x1f3d93);},'wSgrd':_0x24186d(0x100),'tPVVo':_0x24186d(0x17c),'jGCRo':function(_0xca6183,_0x4b38e5){return _0xca6183(_0x4b38e5);}},_0x175d4c=this;!this[_0x24186d(0xf3)]&&(this['Connection']=helper[_0x24186d(0x149)](),!this[_0x24186d(0xf3)]&&_0x35e548[_0x24186d(0x150)](debug,_0x35e548[_0x24186d(0x126)]));const _0x3fd538=this[_0x24186d(0xf3)];if(_0x35e548[_0x24186d(0x182)](_0x3fd538,null)&&_0x3fd538[_0x24186d(0x141)][_0x24186d(0x190)])return;try{if(_0x35e548[_0x24186d(0x182)](_0x3fd538,null)){const _0x4cea3a=_0x3fd538[_0x24186d(0x141)][_0x24186d(0x100)],_0x33cfcc=_0x3fd538[_0x24186d(0x141)][_0x24186d(0x135)];_0x35e548[_0x24186d(0x148)](isAccessibilityAutomationSession)&&Object[_0x24186d(0x169)](_0x3fd538[_0x24186d(0x141)],_0x35e548[_0x24186d(0xec)],{'get':function(){const _0x291200=_0x24186d,_0x4bb3ed={'yxxeG':function(_0xf3d9db,_0x3ad9e9,_0x1ef4a9){const _0x569cbc=a56_0xef5d;return _0x35e548[_0x569cbc(0x153)](_0xf3d9db,_0x3ad9e9,_0x1ef4a9);},'OzhDf':_0x35e548[_0x291200(0x16d)],'YpfPX':_0x35e548[_0x291200(0x176)],'jBWBB':_0x35e548[_0x291200(0xfc)],'JfylS':function(_0x4955f5,_0x1598f3,_0x569d88){return _0x35e548['OMnHl'](_0x4955f5,_0x1598f3,_0x569d88);},'ekDyO':_0x35e548[_0x291200(0xe5)],'zcjlM':_0x35e548[_0x291200(0x10d)],'tkPTZ':function(_0x514e74,_0x3a8b5f){const _0x558815=_0x291200;return _0x35e548[_0x558815(0x109)](_0x514e74,_0x3a8b5f);},'lRjyA':_0x35e548[_0x291200(0x11d)],'xVXqJ':function(_0x3a65e2,_0x5d0b3b,_0x5eb5e1,_0x1892ec){const _0x3ac0f7=_0x291200;return _0x35e548[_0x3ac0f7(0x186)](_0x3a65e2,_0x5d0b3b,_0x5eb5e1,_0x1892ec);}};return async function(){const _0x4738b7=_0x291200;try{if(!global[_0x4738b7(0x15f)]&&global[_0x4738b7(0x155)]&&_0x4bb3ed[_0x4738b7(0xc4)](nestedKeyValue,global['__workerDetails'],[_0x4bb3ed['OzhDf'],_0x4bb3ed[_0x4738b7(0x133)],_0x4bb3ed['jBWBB']])&&_0x4bb3ed['yxxeG'](shouldScanTestForAccessibility,global['__workerDetails'][_0x4738b7(0x130)][_0x4738b7(0xf1)][_0x4738b7(0x115)],!![])&&scripts[_0x4738b7(0x12a)](arguments[0x1])){logger[_0x4738b7(0xea)](_0x4738b7(0x13a)+arguments[0x1]),global['bstackPerformA11yScan']=!![];const _0x3ccea9=_0x4bb3ed[_0x4738b7(0xf6)](nestedKeyValue,global,[_0x4bb3ed[_0x4738b7(0x12c)],_0x4bb3ed[_0x4738b7(0x18d)]]);_0x3ccea9&&logger[_0x4738b7(0x16c)](_0x4738b7(0x177)+util[_0x4738b7(0xcd)](await _0x4bb3ed[_0x4738b7(0xc4)](performScanWithRetry,_0x3ccea9,arguments[0x1]))),_0x4bb3ed[_0x4738b7(0x181)](arguments[0x0][_0x4738b7(0x101)],_0x4bb3ed[_0x4738b7(0x128)])&&global[_0x4738b7(0xfe)]&&logger[_0x4738b7(0x16c)](_0x4738b7(0x10f)+util[_0x4738b7(0xcd)](await _0x4bb3ed['xVXqJ'](performScanWithRetry,global[_0x4738b7(0xfe)],arguments[0x1],scripts[_0x4738b7(0xfb)])));}}catch(_0x4213de){logger[_0x4738b7(0xea)](_0x4738b7(0x17e)+util[_0x4738b7(0xcd)](_0x4213de));}return global['bstackPerformA11yScan']=![],_0x33cfcc[_0x4738b7(0xde)](this,arguments);};}}),!_0x35e548[_0x24186d(0x15c)](isFalse,process[_0x24186d(0x146)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&Object[_0x24186d(0x169)](_0x3fd538[_0x24186d(0x141)],_0x35e548[_0x24186d(0x147)],{'get':function(){return async function _0x31c2f8(_0x13622f){const _0x4743b8=a56_0xef5d;if(BrowserstackCLI[_0x4743b8(0x12f)]()['isRunning']()){const _0x1e5e0d={};_0x1e5e0d[_0x4743b8(0xce)]=_0x13622f,await BrowserstackCLI[_0x4743b8(0x12f)]()[_0x4743b8(0x106)]()['trackEvent'](AutomationFrameworkState[_0x4743b8(0xe3)],HookState[_0x4743b8(0xcb)],_0x1e5e0d);}else{const _0x1dc174=_0x13622f&&_0x13622f[_0x4743b8(0xee)]&&_0x13622f[_0x4743b8(0xee)][_0x4743b8(0x174)];if(_0x1dc174){const _0x8369b3=_0x1dc174['sessionId'],_0x2e477e=_0x1dc174[_0x4743b8(0x167)];_0x35e548[_0x4743b8(0xe1)](!_0x8369b3,!_0x2e477e)&&await ClientTroubleShootingService[_0x4743b8(0x140)](),_0x2e477e&&(_0x35e548['amNnc'](debug,_0x4743b8(0x11c)+_0x2e477e[_0x4743b8(0x156)]()),_0x175d4c[_0x4743b8(0xfa)][_0x4743b8(0x165)]=_0x2e477e[_0x4743b8(0x185)],_0x175d4c[_0x4743b8(0xfa)][_0x4743b8(0x17d)]=_0x2e477e[_0x4743b8(0x172)]),_0x8369b3&&(_0x35e548['amNnc'](debug,_0x4743b8(0x120)+_0x8369b3),_0x175d4c[_0x4743b8(0xfa)][_0x4743b8(0xd4)]=_0x8369b3);}}return _0x4cea3a[_0x4743b8(0xde)](this,arguments);};}}),_0x3fd538[_0x24186d(0x141)]['_bstackDispatchPatched']=!![],logger[_0x24186d(0xea)](_0x35e548[_0x24186d(0x14a)]);}}catch(_0x1985cd){_0x35e548[_0x24186d(0x12b)](debug,'Error\x20in\x20getting\x20applying\x20Connection\x20patch\x20'+_0x1985cd),_0x175d4c[_0x24186d(0xdd)]=_0x1985cd[_0x24186d(0x156)]();}}static['patchCRConnection'](){const _0x1c0ea1=a56_0x4f5722,_0x478e3e={'SHHcy':function(_0x405e78,_0x3082d8){return _0x405e78(_0x3082d8);},'QDGHs':function(_0x1e0194,_0x26854f){return _0x1e0194(_0x26854f);},'nPchJ':function(_0x5e903a){return _0x5e903a();},'mXXvd':function(_0x3a410b,_0x2366b2){return _0x3a410b>=_0x2366b2;},'zpZJY':'1.60.0','qftIL':function(_0x29eb83,_0x30e1a8){return _0x29eb83(_0x30e1a8);},'yqdwH':_0x1c0ea1(0x13c),'wQiWk':'lib','hmkIc':_0x1c0ea1(0x175),'JqUCf':_0x1c0ea1(0x103),'haiIY':_0x1c0ea1(0x189),'Jixqz':function(_0x16617f,_0x3b07cf){return _0x16617f(_0x3b07cf);},'hDMaU':_0x1c0ea1(0x168),'vqQwl':function(_0x584c9b,_0x390577){return _0x584c9b(_0x390577);},'sNCce':_0x1c0ea1(0x152),'Hrtwx':function(_0x15fe3d,_0x1b4fef){return _0x15fe3d!=_0x1b4fef;},'EVGKO':_0x1c0ea1(0x159)},_0x20c05a=this;if(_0x478e3e['nPchJ'](isAccessibilityAutomationSession)){let _0x47369e=null,_0x4b86d1=![];try{const _0x338260=helper['getFrameworkVersion'](FRAMEWORKS[_0x1c0ea1(0x158)]);_0x4b86d1=_0x478e3e['mXXvd'](helper[_0x1c0ea1(0xdf)](_0x338260,_0x478e3e[_0x1c0ea1(0xc7)]),0x0);}catch(_0x5a37b4){_0x478e3e['SHHcy'](debug,'Error\x20evaluating\x20Playwright\x20version\x20for\x20CRConnection\x20patch:\x20'+_0x5a37b4[_0x1c0ea1(0x156)]());}if(_0x4b86d1)_0x478e3e['qftIL'](debug,_0x478e3e[_0x1c0ea1(0x162)]);else try{const _0x7b5ba4=path['join'](_0x478e3e[_0x1c0ea1(0x18a)],_0x478e3e['hmkIc'],_0x478e3e['JqUCf'],_0x478e3e[_0x1c0ea1(0x16f)]),_0x3e3c63=_0x478e3e[_0x1c0ea1(0x11a)](importFileFromPWCore,_0x7b5ba4);!_0x3e3c63?_0x478e3e[_0x1c0ea1(0x11a)](debug,_0x478e3e[_0x1c0ea1(0x170)]):_0x47369e=_0x3e3c63[_0x1c0ea1(0xf2)];}catch(_0xddc608){_0x478e3e[_0x1c0ea1(0x121)](debug,_0x478e3e['sNCce']);}try{if(_0x478e3e[_0x1c0ea1(0x161)](_0x47369e,null)){const _0x19c5d9=_0x47369e['prototype'][_0x1c0ea1(0x159)];Object[_0x1c0ea1(0x169)](_0x47369e['prototype'],_0x478e3e[_0x1c0ea1(0x10a)],{'get':function(){const _0xaf7b4d={'JbiZQ':function(_0x54f26a,_0x186d91){return _0x478e3e['SHHcy'](_0x54f26a,_0x186d91);},'wpBbC':function(_0x29a12b,_0x38249f){const _0x2b1261=a56_0xef5d;return _0x478e3e[_0x2b1261(0x116)](_0x29a12b,_0x38249f);},'uHABI':function(_0xb232c8,_0x24f14d){const _0x35aed9=a56_0xef5d;return _0x478e3e[_0x35aed9(0x16e)](_0xb232c8,_0x24f14d);}};return async function _0x4e3416(_0x37e654){const _0x5c96cf=a56_0xef5d;try{if(BrowserstackCLI[_0x5c96cf(0x12f)]()[_0x5c96cf(0xcc)]()){const _0x2e7d72={};_0x2e7d72[_0x5c96cf(0xce)]=_0x37e654,await BrowserstackCLI['getInstance']()[_0x5c96cf(0x106)]()[_0x5c96cf(0x10e)](AutomationFrameworkState['PLAYWRIGHT_DISPATCH'],HookState['POST'],_0x2e7d72),delete _0x37e654['bStackParams'];}else{const _0x47035d=_0x37e654[_0x5c96cf(0x187)];if(_0x47035d){delete _0x37e654['bStackParams'];const _0x1c57ed=_0x47035d['sessionId'],_0x2a9a6b=_0x47035d[_0x5c96cf(0x167)];_0x2a9a6b&&(_0xaf7b4d['JbiZQ'](debug,_0x5c96cf(0x142)+_0x2a9a6b[_0x5c96cf(0x156)]()),_0x20c05a['currentSessionDetails'][_0x5c96cf(0x165)]=_0x2a9a6b[_0x5c96cf(0x185)],_0x20c05a['currentSessionDetails']['platform_version']=_0x2a9a6b[_0x5c96cf(0x172)]),_0x1c57ed&&(_0xaf7b4d[_0x5c96cf(0x118)](debug,_0x5c96cf(0x138)+_0x1c57ed),_0x20c05a[_0x5c96cf(0xfa)][_0x5c96cf(0xd4)]=_0x1c57ed);}}}catch(_0x2b2daa){_0xaf7b4d['uHABI'](debug,'Error\x20in\x20finding\x20platform\x20details\x20'+_0x2b2daa[_0x5c96cf(0x156)]());}return _0x19c5d9['apply'](this,arguments);};}});}}catch(_0x23c61a){_0x478e3e[_0x1c0ea1(0x16e)](debug,_0x1c0ea1(0xd7)+_0x23c61a),_0x20c05a[_0x1c0ea1(0xdd)]=_0x23c61a[_0x1c0ea1(0x156)]();}}}static[a56_0x4f5722(0x119)](){return this['currentSessionDetails'];}}function a56_0x30cb(){const _0x2218fc=['BS_A11Y_SKIP_CDP_CONNECT_OVERRIDE','POST','isRunning','format','message','DNWYF','fromEntries','version','dBOjI','11287276PMSTjo','bsSessionId','../../helpers/accessibility-automation/scripts','channel','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','capabilities','DLGqs','6783246KbHkfm','329861NFqzdw','__workerDetails','sessionError','apply','compareVersions','Page','PmYcj','deviceModel','PLAYWRIGHT_DISPATCH','assign','PojvK','fQhIy','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','fpJyZ','url','debug','split','RCwWB','BhqjH','params','IAdyW','klecJ','testInfo','CRConnection','Connection','exports','mYvPd','JfylS','OAxQr','automate','2290779HPPinj','currentSessionDetails','performScan','ZPTtt','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','__driver','use','dispatch','_type','patchConnection','chromium','product','nuEZd','getAutomationFramework','connectOptions','parse','BNRnW','EVGKO','path','query','cqmJi','trackEvent','Driver\x20Scan\x20result=','iklWG','yXpyY','_browserType','PoGmS','214791FxudnP','titlePath','SHHcy','4rdZbiB','wpBbC','getDetails','Jixqz','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','IFMzI','../v2/state/hookState.js','cloudProvider','Setting\x20session\x20id\x20received\x20from\x20BS\x20','vqQwl','IUTsR','SbQcp','local_grid','model','AbbDM','unknown_grid','lRjyA','WxCEJ','shouldWrapCommand','jGCRo','ekDyO','../../bin/playwright/accessibility-helper','ePhAM','getInstance','currentTest','browser_version','project','YpfPX','gIYJa','sendMessageToServer','../utils/clientTroubleshootingService.js','ATS_WSS_URL_REGEX','Setting\x20session\x20id\x20received\x20from\x20browserstack\x20','609825KSLaZn','Performing\x20scan\x20for\x20','browserstack','CRConnection\x20patch\x20unavailable\x20on\x20PW>=1.60\x20(server-side\x20class\x20not\x20reachable\x20in\x20SDK\x20process);\x20platform/sessionId\x20capture\x20continues\x20via\x20Connection.dispatch','../../helpers/accessibility-automation/accessibilityRetryHelper.js','5|1|0|4|2|3','browser','reportSessionLinkingIssue','prototype','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','4910005ChyDLX','_name','toLowerCase','env','wSgrd','UoBYu','resolveConnectionClass','tPVVo','ZdAnb','browserName','safari','entries','BSTACK_ATS_URL','amNnc','yyKRj','Error\x20in\x20importing\x20crConnection','YonhK','wsEndpoint','accessibilityPlatform','toString','../v2/browserstackCLI','PLAYWRIGHT','_onMessage','oanVy','BYCKS','odtzf','includes','eWxwP','bstackPerformA11yScan','edge','Hrtwx','yqdwH','PCLFz','setupBrowserDetails','platform','Bcxct','platformDetails','Not\x20able\x20to\x20import\x20crConnection','defineProperty','test','patchCRConnection','info','amzcE','QDGHs','haiIY','hDMaU','obNEU','platformVersion','HAmSQ','bsParams','server','nDsDR','Page\x20Scan\x20result=','util','../../helpers/helper','PfRjX','40OVrrjw','Successfully\x20patched\x20Connection\x20(sendMessageToServer\x20for\x20a11y,\x20dispatch\x20for\x20o11y)','platform_version','Failed\x20to\x20perform\x20scan\x20','./accessibility-helper','caps','tkPTZ','hbjGk','firefox','2HIbppb','platformName','XSApq','bStackParams','_defaultConnectOptions','crConnection.js','wQiWk','168HERAIi','zOWcQ','zcjlM','playwright-','../utils/constants','_bstackDispatchPatched','../../helpers/accessibility-automation/helper','turboscale','chrome','yxxeG','Device\x20Model\x20is\x20not\x20available','../v2/state/automationFrameworkState.js','zpZJY','daWtX','patch'];a56_0x30cb=function(){return _0x2218fc;};return a56_0x30cb();}module[a56_0x4f5722(0xf4)]=PlaywrightSessionDetails;
@@ -1 +1 @@
1
- const a56_0x24414c=a56_0x31ee;function a56_0x1f93(){const _0x4722fb=['1807918QPpbOw','16QXcEbq','isRunning','uploadAttachments','98492FVPDRD','evaluate','562144ZuGspv','lpMhH','nOZvS','mBEWa','measureWrapper','wfaQS','592704DVZOQV','857520KvfnXD','bind','pgatb','../../helpers/performance/performance-tester','1940BHnmGN','getInstance','__workerDetails','patchBrowserNewPage','debug','newPage','BROWSERSTACK_TEST_OBSERVABILITY','setCustomTags','apply','253LjzIOA','pWzqz','stringify','o11ySyncDone','../v2/uploadAttachmentsManager','410268AfbiCI','util','../../helpers/test-observability/error-handler','env','20qZhcKT','5928aAOuId','9zoVMeM','browserstack_executor:\x20','_bstackNewPagePatched','annotate','../v2/browserstackCLI','../v2/customTagManager'];a56_0x1f93=function(){return _0x4722fb;};return a56_0x1f93();}function a56_0x31ee(_0x471fd8,_0x4be313){const _0x1f93d5=a56_0x1f93();return a56_0x31ee=function(_0x31ee55,_0x395fb4){_0x31ee55=_0x31ee55-0x155;let _0x1d843e=_0x1f93d5[_0x31ee55];return _0x1d843e;},a56_0x31ee(_0x471fd8,_0x4be313);}(function(_0x462aed,_0x397218){const _0x49f42f=a56_0x31ee,_0x405c2d=_0x462aed();while(!![]){try{const _0x1986b4=-parseInt(_0x49f42f(0x15d))/0x1+parseInt(_0x49f42f(0x164))/0x2+-parseInt(_0x49f42f(0x17c))/0x3*(parseInt(_0x49f42f(0x15b))/0x4)+-parseInt(_0x49f42f(0x168))/0x5*(-parseInt(_0x49f42f(0x17b))/0x6)+-parseInt(_0x49f42f(0x157))/0x7*(parseInt(_0x49f42f(0x158))/0x8)+-parseInt(_0x49f42f(0x163))/0x9*(parseInt(_0x49f42f(0x17a))/0xa)+-parseInt(_0x49f42f(0x171))/0xb*(-parseInt(_0x49f42f(0x176))/0xc);if(_0x1986b4===_0x397218)break;else _0x405c2d['push'](_0x405c2d['shift']());}catch(_0x319375){_0x405c2d['push'](_0x405c2d['shift']());}}}(a56_0x1f93,0x4cb42));const util=require(a56_0x24414c(0x177)),logger=require('../../helpers/logger'),{nestedKeyValue,isFalse}=require('../../helpers/helper'),{o11yErrorHandler}=require(a56_0x24414c(0x178)),PerformanceTester=require(a56_0x24414c(0x167)),{O11y_EVENTS:PerformanceO11yEvents}=require('../../helpers/performance/constants'),BrowserstackCLI=require(a56_0x24414c(0x155)),CustomTagManager=require(a56_0x24414c(0x156)),uploadAttachmentsManager=require(a56_0x24414c(0x175)),doo11ySync=PerformanceTester[a56_0x24414c(0x161)](PerformanceO11yEvents['SYNC'],o11yErrorHandler(async function doo11ySync(_0x43ea46){const _0x25cf69=a56_0x24414c,_0x18e643={'pWzqz':function(_0x2b8154,_0x5541d6,_0x25e7f0){return _0x2b8154(_0x5541d6,_0x25e7f0);},'UCszH':_0x25cf69(0x16a),'nOZvS':'o11ySyncDone','pgatb':_0x25cf69(0x17f),'lpMhH':_0x25cf69(0x16c)};if(_0x18e643[_0x25cf69(0x172)](nestedKeyValue,global,[_0x18e643['UCszH'],_0x18e643[_0x25cf69(0x15f)]]))return;await _0x43ea46[_0x25cf69(0x15c)](_0x5cca4a=>{},_0x25cf69(0x17d)+JSON[_0x25cf69(0x173)]({'action':_0x18e643[_0x25cf69(0x166)],'arguments':{'data':'ObservabilitySync:'+Date['now'](),'level':_0x18e643[_0x25cf69(0x15e)]}})),global['__workerDetails'][_0x25cf69(0x174)]=!![];},'doo11ySync'));exports[a56_0x24414c(0x16b)]=_0x330e70=>{const _0x130d83=a56_0x24414c,_0x339bc5={'mBEWa':function(_0x3759d5,_0x8b50b7){return _0x3759d5(_0x8b50b7);},'wfaQS':function(_0x3ec4cb,_0x2e2d7a,_0x4512aa){return _0x3ec4cb(_0x2e2d7a,_0x4512aa);},'Faioj':_0x130d83(0x16a)};if(!_0x330e70||_0x330e70['_bstackNewPagePatched'])return;const _0x152d6c=_0x330e70[_0x130d83(0x16d)][_0x130d83(0x165)](_0x330e70);_0x330e70['newPage']=async function _0x7c4d9b(){const _0x58d4cc=_0x130d83,_0x4b91f0=await _0x152d6c[_0x58d4cc(0x170)](_0x330e70,arguments);try{!BrowserstackCLI[_0x58d4cc(0x169)]()[_0x58d4cc(0x159)]()&&!_0x339bc5[_0x58d4cc(0x160)](isFalse,process[_0x58d4cc(0x179)][_0x58d4cc(0x16e)])&&await _0x339bc5[_0x58d4cc(0x160)](doo11ySync,_0x4b91f0),BrowserstackCLI[_0x58d4cc(0x169)]()['isRunning']()&&(_0x4b91f0[_0x58d4cc(0x16f)]=async(_0x78bcbb,_0x45ba89,_0x1f0a9b=![])=>{await CustomTagManager['setCustomTags'](_0x78bcbb,_0x45ba89,_0x1f0a9b);},_0x4b91f0['uploadAttachment']=async(_0x372701,_0x3fed2a=![])=>{const _0x29f754=_0x58d4cc;await uploadAttachmentsManager[_0x29f754(0x15a)](_0x372701,_0x3fed2a);});}catch(_0x3fd138){logger[_0x58d4cc(0x16c)]('Error\x20during\x20syncing\x20o11y\x20with\x20automate\x20'+util['format'](_0x3fd138));}return _0x339bc5[_0x58d4cc(0x162)](nestedKeyValue,global,[_0x339bc5['Faioj']])&&(global['__workerDetails']['pwPage']=_0x4b91f0),_0x4b91f0;},_0x330e70[_0x130d83(0x17e)]=!![];};
1
+ function a57_0x2d8c(_0x4bae7f,_0x2ae3cc){const _0x2c15e1=a57_0x2c15();return a57_0x2d8c=function(_0x2d8c09,_0xf2135a){_0x2d8c09=_0x2d8c09-0x7b;let _0x3e5600=_0x2c15e1[_0x2d8c09];return _0x3e5600;},a57_0x2d8c(_0x4bae7f,_0x2ae3cc);}const a57_0xe8dd48=a57_0x2d8c;function a57_0x2c15(){const _0x26689d=['../v2/customTagManager','../../helpers/performance/performance-tester','FfbIT','dLtPS','SYNC','farKG','bind','5159780UQOrDz','pkLrN','newPage','BROWSERSTACK_TEST_OBSERVABILITY','1739036IqqFUb','waTBh','isRunning','6249660PrWHZm','apply','573651SsEEoS','njBFK','4304877QFgbaO','8oToNBb','__workerDetails','../../helpers/logger','../../helpers/test-observability/error-handler','setCustomTags','30522DuUcHl','ybrkg','evaluate','patchBrowserNewPage','getInstance','1113cGbqNe','../v2/uploadAttachmentsManager','1049532mjLQHG','debug','browserstack_executor:\x20','Error\x20during\x20syncing\x20o11y\x20with\x20automate\x20','_bstackNewPagePatched','pwPage'];a57_0x2c15=function(){return _0x26689d;};return a57_0x2c15();}(function(_0x422084,_0x1d2736){const _0xd5ad36=a57_0x2d8c,_0x435d4a=_0x422084();while(!![]){try{const _0xcfdbb1=parseInt(_0xd5ad36(0x98))/0x1+-parseInt(_0xd5ad36(0x84))/0x2+parseInt(_0xd5ad36(0x8b))/0x3+-parseInt(_0xd5ad36(0x80))/0x4+parseInt(_0xd5ad36(0x87))/0x5+parseInt(_0xd5ad36(0x91))/0x6*(-parseInt(_0xd5ad36(0x96))/0x7)+parseInt(_0xd5ad36(0x8c))/0x8*(parseInt(_0xd5ad36(0x89))/0x9);if(_0xcfdbb1===_0x1d2736)break;else _0x435d4a['push'](_0x435d4a['shift']());}catch(_0x1e2f48){_0x435d4a['push'](_0x435d4a['shift']());}}}(a57_0x2c15,0xca9aa));const util=require('util'),logger=require(a57_0xe8dd48(0x8e)),{nestedKeyValue,isFalse}=require('../../helpers/helper'),{o11yErrorHandler}=require(a57_0xe8dd48(0x8f)),PerformanceTester=require(a57_0xe8dd48(0x9f)),{O11y_EVENTS:PerformanceO11yEvents}=require('../../helpers/performance/constants'),BrowserstackCLI=require('../v2/browserstackCLI'),CustomTagManager=require(a57_0xe8dd48(0x9e)),uploadAttachmentsManager=require(a57_0xe8dd48(0x97)),doo11ySync=PerformanceTester['measureWrapper'](PerformanceO11yEvents[a57_0xe8dd48(0x7d)],o11yErrorHandler(async function doo11ySync(_0x52d9e0){const _0x5dffe4=a57_0xe8dd48,_0x216329={'pkLrN':function(_0xc77ad8,_0x100856,_0x1b9ec0){return _0xc77ad8(_0x100856,_0x1b9ec0);},'ybrkg':'__workerDetails','farKG':'o11ySyncDone','FfbIT':'annotate','njBFK':_0x5dffe4(0x99)};if(_0x216329[_0x5dffe4(0x81)](nestedKeyValue,global,[_0x216329[_0x5dffe4(0x92)],_0x216329[_0x5dffe4(0x7e)]]))return;await _0x52d9e0[_0x5dffe4(0x93)](_0x5ac4d8=>{},_0x5dffe4(0x9a)+JSON['stringify']({'action':_0x216329[_0x5dffe4(0x7b)],'arguments':{'data':'ObservabilitySync:'+Date['now'](),'level':_0x216329[_0x5dffe4(0x8a)]}})),global[_0x5dffe4(0x8d)]['o11ySyncDone']=!![];},'doo11ySync'));exports[a57_0xe8dd48(0x94)]=_0x173bfc=>{const _0x4483c2=a57_0xe8dd48,_0x33d856={'dLtPS':function(_0x2edd85,_0x38af14){return _0x2edd85(_0x38af14);},'waTBh':function(_0x5a8cb0,_0x490c36,_0x4d0aeb){return _0x5a8cb0(_0x490c36,_0x4d0aeb);},'PxVXm':_0x4483c2(0x8d)};if(!_0x173bfc||_0x173bfc[_0x4483c2(0x9c)])return;const _0x4362de=_0x173bfc['newPage'][_0x4483c2(0x7f)](_0x173bfc);_0x173bfc[_0x4483c2(0x82)]=async function _0x4413b1(){const _0x28b4d4=_0x4483c2,_0x5f0ca3=await _0x4362de[_0x28b4d4(0x88)](_0x173bfc,arguments);try{!BrowserstackCLI[_0x28b4d4(0x95)]()['isRunning']()&&!_0x33d856[_0x28b4d4(0x7c)](isFalse,process['env'][_0x28b4d4(0x83)])&&await _0x33d856[_0x28b4d4(0x7c)](doo11ySync,_0x5f0ca3),BrowserstackCLI[_0x28b4d4(0x95)]()[_0x28b4d4(0x86)]()&&(_0x5f0ca3[_0x28b4d4(0x90)]=async(_0xeacbd7,_0x45556a,_0x524fe8=![])=>{await CustomTagManager['setCustomTags'](_0xeacbd7,_0x45556a,_0x524fe8);},_0x5f0ca3['uploadAttachment']=async(_0x55149d,_0x23429a=![])=>{await uploadAttachmentsManager['uploadAttachments'](_0x55149d,_0x23429a);});}catch(_0x2f0415){logger[_0x28b4d4(0x99)](_0x28b4d4(0x9b)+util['format'](_0x2f0415));}return _0x33d856[_0x28b4d4(0x85)](nestedKeyValue,global,[_0x33d856['PxVXm']])&&(global[_0x28b4d4(0x8d)][_0x28b4d4(0x9d)]=_0x5f0ca3),_0x5f0ca3;},_0x173bfc[_0x4483c2(0x9c)]=!![];};
@@ -1 +1 @@
1
- const a57_0xa4cbaa=a57_0x54a0;(function(_0x40be7e,_0x7fb20a){const _0x45f6da=a57_0x54a0,_0x3e97b2=_0x40be7e();while(!![]){try{const _0x32fa6b=parseInt(_0x45f6da(0x11d))/0x1*(-parseInt(_0x45f6da(0xc8))/0x2)+-parseInt(_0x45f6da(0x10b))/0x3+parseInt(_0x45f6da(0xf2))/0x4+parseInt(_0x45f6da(0x10a))/0x5*(-parseInt(_0x45f6da(0xcc))/0x6)+parseInt(_0x45f6da(0x115))/0x7+-parseInt(_0x45f6da(0x104))/0x8*(parseInt(_0x45f6da(0xfc))/0x9)+parseInt(_0x45f6da(0xe9))/0xa*(parseInt(_0x45f6da(0xdd))/0xb);if(_0x32fa6b===_0x7fb20a)break;else _0x3e97b2['push'](_0x3e97b2['shift']());}catch(_0x55191c){_0x3e97b2['push'](_0x3e97b2['shift']());}}}(a57_0x3e25,0x3e46a));const path=require(a57_0xa4cbaa(0xfd)),url=require(a57_0xa4cbaa(0xca)),util=require(a57_0xa4cbaa(0xe1)),{nestedKeyValue,isFalse}=require('../../helpers/helper'),{debug,getPlatformDetails}=require(a57_0xa4cbaa(0xc3)),logger=require('../../helpers/logger')[a57_0xa4cbaa(0xea)],constants=require(a57_0xa4cbaa(0xe3)),BrowserstackCLI=require(a57_0xa4cbaa(0x10d)),AutomationFrameworkState=require(a57_0xa4cbaa(0xc1)),HookState=require(a57_0xa4cbaa(0xf5)),getBrowserFromWSEndpoint=_0x3b0f7f=>{const _0x373af6=a57_0xa4cbaa,_0x3da76d={'AROzH':_0x373af6(0xfa),'pjZMf':function(_0x5ebe68,_0x370a05){return _0x5ebe68(_0x370a05);}};try{const _0xce9ca6=url[_0x373af6(0xf9)](_0x3b0f7f),_0x55e0bf=new URLSearchParams(_0xce9ca6[_0x373af6(0x117)]),_0x22fa31=Object[_0x373af6(0x11c)](_0x55e0bf['entries']()),_0x2cf3c0=JSON[_0x373af6(0xf9)](_0x22fa31['caps']);if(_0x2cf3c0&&(_0x2cf3c0[_0x373af6(0xd5)]||_0x2cf3c0[_0x373af6(0xf8)]))return _0x2cf3c0[_0x373af6(0xd5)]||_0x2cf3c0[_0x373af6(0xf8)];return _0x3da76d[_0x373af6(0xee)];}catch(_0x2da224){_0x3da76d[_0x373af6(0xf6)](debug,'Error\x20in\x20getting\x20browser\x20from\x20caps:\x20'+_0x2da224[_0x373af6(0x11e)]());}},getCloudProviderFromWsEndpoint=_0x18e1d0=>{const _0x51ed12=a57_0xa4cbaa,_0x1277e1={};_0x1277e1[_0x51ed12(0x116)]=_0x51ed12(0xc5),_0x1277e1['mgXwr']=_0x51ed12(0xd7);const _0x645965=_0x1277e1;if(_0x18e1d0[_0x51ed12(0xc2)](constants[_0x51ed12(0xd3)])||_0x18e1d0[_0x51ed12(0xc2)](constants[_0x51ed12(0xf7)]))return _0x645965['jzwZX'];return _0x645965[_0x51ed12(0x113)];},a57_0x23d325={};function a57_0x3e25(){const _0x14a991=['test','mgXwr','ENFqV','2211615GUHFXx','jzwZX','query','version','getInstance','platform','RhXLX','fromEntries','3iPiwjP','toString','turboscale','POST','../v2/state/automationFrameworkState.js','includes','../../helpers/test-observability/utils','connection','browserstack','platform_version','getDetails','228838tVPmXh','onmessage','url','format','36BeDWMf','debug','ZlrBl','capabilities','stringify','bStackParams','[PuppeteerSessionDetails]\x20Connection\x20patched\x20for\x20session\x20capture','BSTACK_URL','exports','browser','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','unknown_grid','_bstackPatched','result','product','platformVersion','platformName','479809hpGHTz','trackEvent','sHznv','ATS_WSS_URL_REGEX','util','message','../utils/constants','currentSessionDetails','UknHY','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','Setting\x20session\x20id\x20received\x20from\x20BS\x20','patchConnection','90kkAiyd','winstonLogger','NjIhN','PLAYWRIGHT_DISPATCH','SDUwp','AROzH','cloudProvider','DXinQ','MTsHJ','1077596OtaFCq','apply','lhAlQ','../v2/state/hookState.js','pjZMf','BSTACK_ATS_URL','browserName','parse','chrome','function','9sbsTYa','path','sessionError','setupBrowserDetails','GrZRp','Error\x20in\x20setupBrowserDetails:\x20','bsSessionId','xKPVm','1169760zHgHaP','params','GWSjq','getAutomationFramework','_connection','Qobsu','40sJVPUf','699924FyBNYx','bsParams','../v2/browserstackCLI','automate','platformDetails','Eqmep','assign'];a57_0x3e25=function(){return _0x14a991;};return a57_0x3e25();}a57_0x23d325[a57_0xa4cbaa(0xef)]=undefined,a57_0x23d325[a57_0xa4cbaa(0x102)]=undefined,a57_0x23d325[a57_0xa4cbaa(0xd5)]=undefined,a57_0x23d325['browser_version']=undefined,a57_0x23d325['platform']=undefined,a57_0x23d325[a57_0xa4cbaa(0xc6)]=undefined,a57_0x23d325[a57_0xa4cbaa(0xda)]=undefined,a57_0x23d325[a57_0xa4cbaa(0xcf)]={};class PuppeteerSessionDetails{static [a57_0xa4cbaa(0xe4)]=a57_0x23d325;constructor(){const _0x30d7b6=a57_0xa4cbaa,_0x183d8c={};_0x183d8c[_0x30d7b6(0x103)]=_0x30d7b6(0xd6);const _0x5d0dc0=_0x183d8c;throw new Error(_0x5d0dc0[_0x30d7b6(0x103)]);}static [a57_0xa4cbaa(0xfe)]=null;static async[a57_0xa4cbaa(0xff)](_0x2610a9,_0xb01b3b){const _0x534045=a57_0xa4cbaa,_0x217374={'DXinQ':'chrome','OjAmM':function(_0x3d207,_0x56ec7f){return _0x3d207===_0x56ec7f;},'NjIhN':_0x534045(0xfb),'ZlrBl':'local_grid','MTsHJ':function(_0x38663b,_0x4d47db){return _0x38663b(_0x4d47db);},'lhAlQ':'browserstack','Eqmep':_0x534045(0x11f),'GWSjq':_0x534045(0x10e),'GrZRp':function(_0x57d3df,_0x55c5c0){return _0x57d3df(_0x55c5c0);},'xryVO':function(_0x4c429d){return _0x4c429d();},'UknHY':function(_0x94dd41){return _0x94dd41();}};try{let _0x90d8d6=_0x217374[_0x534045(0xf0)],_0x10d3dd=null;_0x2610a9&&_0x217374['OjAmM'](typeof _0x2610a9['version'],_0x217374[_0x534045(0xeb)])&&(_0x10d3dd=await _0x2610a9[_0x534045(0x118)]());let _0xed7861=null,_0x11b147=null,_0x17b426=null,_0x3fb432=_0x217374[_0x534045(0xce)];if(_0xb01b3b){_0x3fb432=_0x217374[_0x534045(0xf1)](getCloudProviderFromWsEndpoint,_0xb01b3b);if(_0x217374['OjAmM'](_0x3fb432,_0x217374[_0x534045(0xf4)]))_0x17b426=constants['ATS_WSS_URL_REGEX']?constants[_0x534045(0xe0)][_0x534045(0x112)](_0xb01b3b)?_0x217374[_0x534045(0x110)]:_0x217374[_0x534045(0x106)]:_0x217374[_0x534045(0x106)],_0x90d8d6=_0x217374[_0x534045(0x100)](getBrowserFromWSEndpoint,_0xb01b3b)||_0x90d8d6,_0xed7861=this['currentSessionDetails'][_0x534045(0x11a)],_0x11b147=this[_0x534045(0xe4)]['platform_version'];else{const _0x5488de=await _0x217374['xryVO'](getPlatformDetails);_0xed7861=_0x5488de[_0x534045(0xdc)],_0x11b147=_0x5488de[_0x534045(0xdb)];}}else{const _0xf7ca48=await _0x217374[_0x534045(0xe5)](getPlatformDetails);_0xed7861=_0xf7ca48[_0x534045(0xdc)],_0x11b147=_0xf7ca48[_0x534045(0xdb)];}const _0x210734={};_0x210734[_0x534045(0xd5)]=_0x90d8d6,_0x210734['browser_version']=_0x10d3dd,_0x210734[_0x534045(0xcf)]={},_0x210734['platform']=_0xed7861,_0x210734[_0x534045(0xc6)]=_0x11b147,_0x210734[_0x534045(0xda)]=_0x17b426;const _0xbf53af=_0x210734,_0x1273e5={};_0x1273e5[_0x534045(0xef)]=_0x3fb432,this['currentSessionDetails']=Object[_0x534045(0x111)]({},this['currentSessionDetails'],_0x1273e5,_0xbf53af);}catch(_0x589bab){_0x217374[_0x534045(0x100)](debug,_0x534045(0x101)+util[_0x534045(0xcb)](_0x589bab)),this[_0x534045(0xfe)]=_0x589bab[_0x534045(0x11e)]();}}static[a57_0xa4cbaa(0xe8)](_0x116411){const _0x34f229=a57_0xa4cbaa,_0x8f051e={'ENFqV':function(_0x1015f2,_0x36fbf2){return _0x1015f2===_0x36fbf2;},'SDUwp':'string','Qobsu':function(_0x1b8ce6,_0x187fca){return _0x1b8ce6(_0x187fca);},'sHznv':function(_0x4c695b,_0x160c3a){return _0x4c695b(_0x160c3a);},'qJSHV':function(_0x15b102,_0x10aaff){return _0x15b102===_0x10aaff;},'ABfQs':function(_0x13b42e,_0x32167f){return _0x13b42e(_0x32167f);},'RhXLX':_0x34f229(0xd2),'huglD':function(_0x5754d8,_0x1f0041){return _0x5754d8(_0x1f0041);}},_0x2e10a4=this;try{const _0x59c744=_0x116411[_0x34f229(0x108)]||_0x116411[_0x34f229(0xc4)];if(!_0x59c744||_0x59c744[_0x34f229(0xd8)])return;const _0x58964a=_0x59c744[_0x34f229(0xc9)];_0x59c744[_0x34f229(0xc9)]=function(_0xb1531c){const _0x3f7620=_0x34f229;try{const _0x2114ff=_0x8f051e[_0x3f7620(0x114)](typeof _0xb1531c,_0x8f051e[_0x3f7620(0xed)])?JSON[_0x3f7620(0xf9)](_0xb1531c):_0xb1531c,_0x23eada=_0x2114ff?.['bStackParams']||_0x2114ff?.[_0x3f7620(0x10c)]||_0x2114ff?.['params']?.[_0x3f7620(0x10c)]||_0x2114ff?.[_0x3f7620(0x105)]?.['bStackParams']||_0x2114ff?.[_0x3f7620(0xd9)]?.[_0x3f7620(0x10c)]||_0x2114ff?.['result']?.[_0x3f7620(0xd1)];if(_0x23eada){if(BrowserstackCLI['getInstance']()['isRunning']()){const _0x1e255f={};_0x1e255f[_0x3f7620(0xe2)]=_0x2114ff,BrowserstackCLI[_0x3f7620(0x119)]()[_0x3f7620(0x107)]()[_0x3f7620(0xde)](AutomationFrameworkState[_0x3f7620(0xec)],HookState[_0x3f7620(0x120)],_0x1e255f);}else{const _0x5a198f=_0x23eada['sessionId'],_0x5edabf=_0x23eada[_0x3f7620(0x10f)];_0x5edabf&&(_0x8f051e[_0x3f7620(0x109)](debug,_0x3f7620(0xe6)+JSON[_0x3f7620(0xd0)](_0x5edabf)),_0x2e10a4[_0x3f7620(0xe4)][_0x3f7620(0x11a)]=_0x5edabf[_0x3f7620(0xdc)],_0x2e10a4[_0x3f7620(0xe4)][_0x3f7620(0xc6)]=_0x5edabf[_0x3f7620(0xdb)]),_0x5a198f&&(_0x8f051e[_0x3f7620(0xdf)](debug,_0x3f7620(0xe7)+_0x5a198f),_0x2e10a4[_0x3f7620(0xe4)]['bsSessionId']=_0x5a198f);}_0x8f051e['qJSHV'](typeof _0xb1531c,_0x8f051e[_0x3f7620(0xed)])&&(delete _0x2114ff[_0x3f7620(0xd1)],delete _0x2114ff[_0x3f7620(0x10c)],_0x2114ff[_0x3f7620(0x105)]&&(delete _0x2114ff[_0x3f7620(0x105)][_0x3f7620(0x10c)],delete _0x2114ff['params'][_0x3f7620(0xd1)]),_0x2114ff[_0x3f7620(0xd9)]&&(delete _0x2114ff[_0x3f7620(0xd9)][_0x3f7620(0x10c)],delete _0x2114ff[_0x3f7620(0xd9)][_0x3f7620(0xd1)]));}}catch(_0x1490ad){_0x8f051e['ABfQs'](debug,'Error\x20extracting\x20bsParams\x20from\x20CDP\x20message:\x20'+_0x1490ad[_0x3f7620(0xe2)]);}return _0x58964a?.[_0x3f7620(0xf3)](this,arguments);},_0x59c744[_0x34f229(0xd8)]=!![],logger[_0x34f229(0xcd)](_0x8f051e[_0x34f229(0x11b)]);}catch(_0x1bb740){_0x8f051e['huglD'](debug,'Error\x20in\x20patchConnection:\x20'+util[_0x34f229(0xcb)](_0x1bb740)),_0x2e10a4[_0x34f229(0xfe)]=_0x1bb740[_0x34f229(0x11e)]();}}static[a57_0xa4cbaa(0xc7)](){const _0xf7d978=a57_0xa4cbaa;return this[_0xf7d978(0xe4)];}}function a57_0x54a0(_0x4593a3,_0xb3106d){const _0x3e2555=a57_0x3e25();return a57_0x54a0=function(_0x54a0f3,_0x2387e0){_0x54a0f3=_0x54a0f3-0xc1;let _0x1718f1=_0x3e2555[_0x54a0f3];return _0x1718f1;},a57_0x54a0(_0x4593a3,_0xb3106d);}module[a57_0xa4cbaa(0xd4)]=PuppeteerSessionDetails;
1
+ function a58_0x2364(_0x421def,_0x4b3162){const _0x5d37a3=a58_0x5d37();return a58_0x2364=function(_0x236423,_0x517efb){_0x236423=_0x236423-0x19a;let _0x5571b8=_0x5d37a3[_0x236423];return _0x5571b8;},a58_0x2364(_0x421def,_0x4b3162);}const a58_0xdc0aed=a58_0x2364;(function(_0x492e54,_0x5e514b){const _0x2ecf86=a58_0x2364,_0x35e739=_0x492e54();while(!![]){try{const _0x56e4c8=-parseInt(_0x2ecf86(0x1be))/0x1+-parseInt(_0x2ecf86(0x19e))/0x2*(-parseInt(_0x2ecf86(0x1cc))/0x3)+-parseInt(_0x2ecf86(0x1d2))/0x4*(parseInt(_0x2ecf86(0x1b4))/0x5)+parseInt(_0x2ecf86(0x1d0))/0x6+-parseInt(_0x2ecf86(0x19f))/0x7+parseInt(_0x2ecf86(0x1bd))/0x8+parseInt(_0x2ecf86(0x1ce))/0x9;if(_0x56e4c8===_0x5e514b)break;else _0x35e739['push'](_0x35e739['shift']());}catch(_0x143215){_0x35e739['push'](_0x35e739['shift']());}}}(a58_0x5d37,0xb533f));function a58_0x5d37(){const _0x152e20=['7242824BmkfFm','1222813oTXFtz','OspzJ','connection','bStackParams','../../helpers/test-observability/utils','includes','parse','trackEvent','BSTACK_URL','unknown_grid','lgrjl','YhMKR','ATS_WSS_URL_REGEX','FSZcg','3910656AiBCNC','SwvPD','55458ZWHncs','Error\x20extracting\x20bsParams\x20from\x20CDP\x20message:\x20','4157220WPzhxs','currentSessionDetails','16FFNEBL','PLAYWRIGHT_DISPATCH','turboscale','toString','getDetails','oFGsw','getInstance','assign','cloudProvider','format','Bmpmo','_connection','local_grid','stringify','platformVersion','params','BSTACK_ATS_URL','browser_version','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','../v2/state/automationFrameworkState.js','platformName','exports','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','yhViw','POST','query','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','test','url','browser','platform','../utils/constants','xINJq','hDOYA','string','RIwEz','result','kAvxw','capabilities','chrome','2WWtXYK','243747giZaXS','util','platform_version','entries','patchConnection','isRunning','winstonLogger','sessionError','getAutomationFramework','message','product','OuBgW','[PuppeteerSessionDetails]\x20Connection\x20patched\x20for\x20session\x20capture','browserstack','UZLJc','bsParams','../v2/state/hookState.js','OfhBf','fromEntries','browserName','setupBrowserDetails','1135120FllcRM','qhVkm','onmessage','platformDetails','apply','Error\x20in\x20setupBrowserDetails:\x20','automate','Setting\x20session\x20id\x20received\x20from\x20BS\x20','../v2/browserstackCLI'];a58_0x5d37=function(){return _0x152e20;};return a58_0x5d37();}const path=require('path'),url=require(a58_0xdc0aed(0x1ee)),util=require(a58_0xdc0aed(0x1a0)),{nestedKeyValue,isFalse}=require('../../helpers/helper'),{debug,getPlatformDetails}=require(a58_0xdc0aed(0x1c2)),logger=require('../../helpers/logger')[a58_0xdc0aed(0x1a5)],constants=require(a58_0xdc0aed(0x1f1)),BrowserstackCLI=require(a58_0xdc0aed(0x1bc)),AutomationFrameworkState=require(a58_0xdc0aed(0x1e5)),HookState=require(a58_0xdc0aed(0x1af)),getBrowserFromWSEndpoint=_0x2e8e81=>{const _0xf869b0=a58_0xdc0aed,_0x29de1c={'bAyyG':'chrome','yhViw':function(_0x4514f9,_0x7fb0a3){return _0x4514f9(_0x7fb0a3);}};try{const _0x136e0f=url['parse'](_0x2e8e81),_0x1a82a5=new URLSearchParams(_0x136e0f[_0xf869b0(0x1eb)]),_0x3c6c61=Object[_0xf869b0(0x1b1)](_0x1a82a5[_0xf869b0(0x1a2)]()),_0xe0a3c4=JSON[_0xf869b0(0x1c4)](_0x3c6c61['caps']);if(_0xe0a3c4&&(_0xe0a3c4[_0xf869b0(0x1ef)]||_0xe0a3c4[_0xf869b0(0x1b2)]))return _0xe0a3c4[_0xf869b0(0x1ef)]||_0xe0a3c4[_0xf869b0(0x1b2)];return _0x29de1c['bAyyG'];}catch(_0x2c9b54){_0x29de1c[_0xf869b0(0x1e9)](debug,_0xf869b0(0x1e4)+_0x2c9b54[_0xf869b0(0x1d5)]());}},getCloudProviderFromWsEndpoint=_0x343956=>{const _0x455cdd=a58_0xdc0aed,_0x361b9a={};_0x361b9a[_0x455cdd(0x1cd)]=_0x455cdd(0x1ac),_0x361b9a[_0x455cdd(0x1b5)]=_0x455cdd(0x1c7);const _0x32f9cb=_0x361b9a;if(_0x343956[_0x455cdd(0x1c3)](constants[_0x455cdd(0x1c6)])||_0x343956['includes'](constants[_0x455cdd(0x1e2)]))return _0x32f9cb[_0x455cdd(0x1cd)];return _0x32f9cb[_0x455cdd(0x1b5)];},a58_0x19ca8b={};a58_0x19ca8b[a58_0xdc0aed(0x1da)]=undefined,a58_0x19ca8b['bsSessionId']=undefined,a58_0x19ca8b[a58_0xdc0aed(0x1ef)]=undefined,a58_0x19ca8b[a58_0xdc0aed(0x1e3)]=undefined,a58_0x19ca8b[a58_0xdc0aed(0x1f0)]=undefined,a58_0x19ca8b[a58_0xdc0aed(0x1a1)]=undefined,a58_0x19ca8b['product']=undefined,a58_0x19ca8b[a58_0xdc0aed(0x19c)]={};class PuppeteerSessionDetails{static [a58_0xdc0aed(0x1d1)]=a58_0x19ca8b;constructor(){const _0x38d55f=a58_0xdc0aed,_0x1f38f8={};_0x1f38f8[_0x38d55f(0x1f2)]=_0x38d55f(0x1ec);const _0x319f91=_0x1f38f8;throw new Error(_0x319f91[_0x38d55f(0x1f2)]);}static [a58_0xdc0aed(0x1a6)]=null;static async[a58_0xdc0aed(0x1b3)](_0x504327,_0x548774){const _0x182153=a58_0xdc0aed,_0x210997={'RIwEz':_0x182153(0x19d),'OuBgW':function(_0x5bc1f4,_0xcc9ac5){return _0x5bc1f4===_0xcc9ac5;},'NWnbq':'function','hDOYA':_0x182153(0x1de),'FSZcg':function(_0x5ee171,_0x83dd12){return _0x5ee171(_0x83dd12);},'YhMKR':function(_0x4cd982,_0x37309c){return _0x4cd982===_0x37309c;},'OspzJ':_0x182153(0x1ac),'kAvxw':_0x182153(0x1d4),'lgrjl':_0x182153(0x1ba),'Bmpmo':function(_0x243493){return _0x243493();},'VsGWw':function(_0x564227){return _0x564227();},'mCzOs':function(_0x568583,_0x572264){return _0x568583(_0x572264);}};try{let _0x4ba967=_0x210997[_0x182153(0x1f5)],_0x25e7ac=null;_0x504327&&_0x210997[_0x182153(0x1aa)](typeof _0x504327['version'],_0x210997['NWnbq'])&&(_0x25e7ac=await _0x504327['version']());let _0x1a1409=null,_0x448758=null,_0x2354b0=null,_0x338805=_0x210997[_0x182153(0x1f3)];if(_0x548774){_0x338805=_0x210997[_0x182153(0x1cb)](getCloudProviderFromWsEndpoint,_0x548774);if(_0x210997[_0x182153(0x1c9)](_0x338805,_0x210997[_0x182153(0x1bf)]))_0x2354b0=constants['ATS_WSS_URL_REGEX']?constants[_0x182153(0x1ca)][_0x182153(0x1ed)](_0x548774)?_0x210997[_0x182153(0x19b)]:_0x210997[_0x182153(0x1c8)]:_0x210997[_0x182153(0x1c8)],_0x4ba967=_0x210997[_0x182153(0x1cb)](getBrowserFromWSEndpoint,_0x548774)||_0x4ba967,_0x1a1409=this[_0x182153(0x1d1)][_0x182153(0x1f0)],_0x448758=this[_0x182153(0x1d1)][_0x182153(0x1a1)];else{const _0xa736da=await _0x210997[_0x182153(0x1dc)](getPlatformDetails);_0x1a1409=_0xa736da['platformName'],_0x448758=_0xa736da[_0x182153(0x1e0)];}}else{const _0x2359dc=await _0x210997['VsGWw'](getPlatformDetails);_0x1a1409=_0x2359dc[_0x182153(0x1e6)],_0x448758=_0x2359dc[_0x182153(0x1e0)];}const _0x3d6874={};_0x3d6874[_0x182153(0x1ef)]=_0x4ba967,_0x3d6874[_0x182153(0x1e3)]=_0x25e7ac,_0x3d6874[_0x182153(0x19c)]={},_0x3d6874[_0x182153(0x1f0)]=_0x1a1409,_0x3d6874['platform_version']=_0x448758,_0x3d6874[_0x182153(0x1a9)]=_0x2354b0;const _0x78e517=_0x3d6874,_0x3e848c={};_0x3e848c['cloudProvider']=_0x338805,this[_0x182153(0x1d1)]=Object[_0x182153(0x1d9)]({},this[_0x182153(0x1d1)],_0x3e848c,_0x78e517);}catch(_0x225504){_0x210997['mCzOs'](debug,_0x182153(0x1b9)+util[_0x182153(0x1db)](_0x225504)),this[_0x182153(0x1a6)]=_0x225504['toString']();}}static[a58_0xdc0aed(0x1a3)](_0x307059){const _0x744663=a58_0xdc0aed,_0x28d5ad={'OfhBf':function(_0x11ef45,_0x474f97){return _0x11ef45===_0x474f97;},'UZLJc':_0x744663(0x1f4),'oFGsw':function(_0xb376ab,_0x2e62ac){return _0xb376ab(_0x2e62ac);},'CDzFL':_0x744663(0x1ab)},_0x46643e=this;try{const _0x1556ff=_0x307059[_0x744663(0x1dd)]||_0x307059[_0x744663(0x1c0)];if(!_0x1556ff||_0x1556ff['_bstackPatched'])return;const _0x516905=_0x1556ff[_0x744663(0x1b6)];_0x1556ff[_0x744663(0x1b6)]=function(_0x411c95){const _0x49a343=_0x744663;try{const _0x567000=_0x28d5ad[_0x49a343(0x1b0)](typeof _0x411c95,_0x28d5ad['UZLJc'])?JSON[_0x49a343(0x1c4)](_0x411c95):_0x411c95,_0x392fe6=_0x567000?.[_0x49a343(0x1c1)]||_0x567000?.[_0x49a343(0x1ae)]||_0x567000?.['params']?.['bsParams']||_0x567000?.['params']?.[_0x49a343(0x1c1)]||_0x567000?.[_0x49a343(0x19a)]?.[_0x49a343(0x1ae)]||_0x567000?.[_0x49a343(0x19a)]?.[_0x49a343(0x1c1)];if(_0x392fe6){if(BrowserstackCLI['getInstance']()[_0x49a343(0x1a4)]()){const _0x169aad={};_0x169aad[_0x49a343(0x1a8)]=_0x567000,BrowserstackCLI[_0x49a343(0x1d8)]()[_0x49a343(0x1a7)]()[_0x49a343(0x1c5)](AutomationFrameworkState[_0x49a343(0x1d3)],HookState[_0x49a343(0x1ea)],_0x169aad);}else{const _0x1de475=_0x392fe6['sessionId'],_0x1b0c71=_0x392fe6[_0x49a343(0x1b7)];_0x1b0c71&&(_0x28d5ad[_0x49a343(0x1d7)](debug,_0x49a343(0x1e8)+JSON[_0x49a343(0x1df)](_0x1b0c71)),_0x46643e[_0x49a343(0x1d1)]['platform']=_0x1b0c71[_0x49a343(0x1e6)],_0x46643e[_0x49a343(0x1d1)][_0x49a343(0x1a1)]=_0x1b0c71['platformVersion']),_0x1de475&&(_0x28d5ad[_0x49a343(0x1d7)](debug,_0x49a343(0x1bb)+_0x1de475),_0x46643e[_0x49a343(0x1d1)]['bsSessionId']=_0x1de475);}_0x28d5ad[_0x49a343(0x1b0)](typeof _0x411c95,_0x28d5ad[_0x49a343(0x1ad)])&&(delete _0x567000[_0x49a343(0x1c1)],delete _0x567000[_0x49a343(0x1ae)],_0x567000[_0x49a343(0x1e1)]&&(delete _0x567000[_0x49a343(0x1e1)][_0x49a343(0x1ae)],delete _0x567000[_0x49a343(0x1e1)][_0x49a343(0x1c1)]),_0x567000[_0x49a343(0x19a)]&&(delete _0x567000[_0x49a343(0x19a)][_0x49a343(0x1ae)],delete _0x567000[_0x49a343(0x19a)]['bStackParams']));}}catch(_0x3ec2b8){_0x28d5ad['oFGsw'](debug,_0x49a343(0x1cf)+_0x3ec2b8[_0x49a343(0x1a8)]);}return _0x516905?.[_0x49a343(0x1b8)](this,arguments);},_0x1556ff['_bstackPatched']=!![],logger['debug'](_0x28d5ad['CDzFL']);}catch(_0x1ecb99){_0x28d5ad[_0x744663(0x1d7)](debug,'Error\x20in\x20patchConnection:\x20'+util[_0x744663(0x1db)](_0x1ecb99)),_0x46643e[_0x744663(0x1a6)]=_0x1ecb99[_0x744663(0x1d5)]();}}static[a58_0xdc0aed(0x1d6)](){const _0x431bc2=a58_0xdc0aed;return this[_0x431bc2(0x1d1)];}}module[a58_0xdc0aed(0x1e7)]=PuppeteerSessionDetails;
@@ -1 +1 @@
1
- const a58_0x3171ab=a58_0x46cc;(function(_0x15b447,_0x506b54){const _0x2173be=a58_0x46cc,_0x3913af=_0x15b447();while(!![]){try{const _0x465a0e=-parseInt(_0x2173be(0x191))/0x1*(parseInt(_0x2173be(0x19c))/0x2)+-parseInt(_0x2173be(0x195))/0x3*(parseInt(_0x2173be(0x1b0))/0x4)+parseInt(_0x2173be(0x1b2))/0x5*(-parseInt(_0x2173be(0x189))/0x6)+-parseInt(_0x2173be(0x1a9))/0x7*(parseInt(_0x2173be(0x1ac))/0x8)+parseInt(_0x2173be(0x18a))/0x9*(-parseInt(_0x2173be(0x1a3))/0xa)+parseInt(_0x2173be(0x19f))/0xb+parseInt(_0x2173be(0x1a4))/0xc*(parseInt(_0x2173be(0x1a2))/0xd);if(_0x465a0e===_0x506b54)break;else _0x3913af['push'](_0x3913af['shift']());}catch(_0x11cc8a){_0x3913af['push'](_0x3913af['shift']());}}}(a58_0x1ef1,0xea28b));const {isTrue,isBrowserstackInfra}=require(a58_0x3171ab(0x18c)),setKeepAlive=require(a58_0x3171ab(0x1ad)),util=require(a58_0x3171ab(0x1af)),logger=require(a58_0x3171ab(0x1b9))[a58_0x3171ab(0x1b8)],{shouldProcessEventForTesthub}=require(a58_0x3171ab(0x1a0)),{addRequestSpy}=require(a58_0x3171ab(0x19b)),a58_0x3943a9={};a58_0x3943a9[a58_0x3171ab(0x197)]=undefined,a58_0x3943a9[a58_0x3171ab(0x1b7)]={},a58_0x3943a9[a58_0x3171ab(0x194)]=![],a58_0x3943a9['pwPage']=null,a58_0x3943a9[a58_0x3171ab(0x199)]=![],a58_0x3943a9[a58_0x3171ab(0x1b7)]['id']=undefined,a58_0x3943a9[a58_0x3171ab(0x1b7)][a58_0x3171ab(0x19d)]=undefined;const workerDetails=a58_0x3943a9;global[a58_0x3171ab(0x192)]=workerDetails;function a58_0x1ef1(){const _0x4dbb7b=['../../helpers/logger','puppeteer-core','getPackageVersion','78MRTvaC','6993207eeVIlk','format','../../helpers/helper','debug','skipSessionStatus','[PuppeteerTestSetup]\x20Error\x20reading\x20BrowserStack\x20config:\x20','BROWSERSTACK_PUPPETEER','1KOqaFd','__workerDetails','env','o11ySyncDone','3hdtuAW','jestConfig','workerInfo','__skipSessionName','isPageFixture','[PuppeteerTestSetup]\x20Error\x20bootstrapping\x20BrowserstackCLI:\x20','../../helpers/test-observability/utils','2313194YWVyXJ','testInfo','../v2/browserstackCLI','3173456UwThhm','../../helpers/testhub/utils','true','13cpdFfv','10uRtOHc','68794776yNjDEy','[PuppeteerTestSetup]\x20Error\x20initializing\x20Puppeteer\x20patching:\x20','puppeteer','__skipSessionStatus','getInstance','7zCJFQO','skipSessionName','../utils/puppeteer-patcher','10791656YBJFde','../../helpers/setKeepAlive','../v2/cliUtils','util','2421388NXXAvX','[PuppeteerTestSetup]\x20Patching\x20Puppeteer\x20for\x20Jest','451675McOZMT','bootstrap','[PuppeteerTestSetup]\x20Jest-Puppeteer\x20test\x20setup\x20completed','initializePuppeteerPatching','[PuppeteerTestSetup]\x20Bootstrapping\x20BrowserstackCLI\x20for\x20Jest\x20worker','currentTest','winstonLogger'];a58_0x1ef1=function(){return _0x4dbb7b;};return a58_0x1ef1();}let puppeteerPatcher=null;setKeepAlive();function a58_0x46cc(_0x5368a9,_0x2b7f48){const _0x1ef1c3=a58_0x1ef1();return a58_0x46cc=function(_0x46cc8e,_0x869538){_0x46cc8e=_0x46cc8e-0x188;let _0x25d58c=_0x1ef1c3[_0x46cc8e];return _0x25d58c;},a58_0x46cc(_0x5368a9,_0x2b7f48);}if(global[a58_0x3171ab(0x196)])try{isBrowserstackInfra()?(global['__skipSessionName']=isTrue(global[a58_0x3171ab(0x196)]?.[a58_0x3171ab(0x1aa)]),global['__skipSessionStatus']=isTrue(global[a58_0x3171ab(0x196)]?.[a58_0x3171ab(0x18e)])):(global[a58_0x3171ab(0x198)]=!![],global[a58_0x3171ab(0x1a7)]=!![]);const helper=require('../../helpers/helper'),puppeteerVersion=helper['getPackageVersion'](a58_0x3171ab(0x1a6))||helper[a58_0x3171ab(0x188)](a58_0x3171ab(0x1ba));if(puppeteerVersion)try{logger[a58_0x3171ab(0x18d)](a58_0x3171ab(0x1b1)),puppeteerPatcher=require(a58_0x3171ab(0x1ab)),puppeteerPatcher[a58_0x3171ab(0x1b5)](global[a58_0x3171ab(0x196)]),logger[a58_0x3171ab(0x18d)]('[PuppeteerTestSetup]\x20Puppeteer\x20patching\x20initialized');}catch(a58_0x585f72){logger[a58_0x3171ab(0x18d)](a58_0x3171ab(0x1a5)+util['format'](a58_0x585f72));}if(puppeteerPatcher)try{const BrowserstackCLI=require(a58_0x3171ab(0x19e)),CLIUtils=require(a58_0x3171ab(0x1ae)),{FRAMEWORKS}=require('../utils/constants');BrowserstackCLI['getInstance']()['isCliEnabled']()&&(logger[a58_0x3171ab(0x18d)](a58_0x3171ab(0x1b6)),process[a58_0x3171ab(0x193)][a58_0x3171ab(0x190)]=a58_0x3171ab(0x1a1),CLIUtils['setFrameworkDetail'](FRAMEWORKS['JEST'],FRAMEWORKS['PUPPETEER']),BrowserstackCLI[a58_0x3171ab(0x1a8)]()[a58_0x3171ab(0x1b3)]()['catch'](_0x4ea0d1=>{const _0x396665=a58_0x3171ab;logger[_0x396665(0x18d)](_0x396665(0x19a)+util['format'](_0x4ea0d1));}));}catch(a58_0x5c7469){logger[a58_0x3171ab(0x18d)]('[PuppeteerTestSetup]\x20Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20'+util[a58_0x3171ab(0x18b)](a58_0x5c7469));}shouldProcessEventForTesthub()&&addRequestSpy(![]);}catch(a58_0x2bc0d9){logger['debug'](a58_0x3171ab(0x18f)+util[a58_0x3171ab(0x18b)](a58_0x2bc0d9));}logger[a58_0x3171ab(0x18d)](a58_0x3171ab(0x1b4));
1
+ const a59_0x290f32=a59_0x144f;(function(_0x1ffad9,_0x853a80){const _0x40b65a=a59_0x144f,_0x9e8cfa=_0x1ffad9();while(!![]){try{const _0x5cd6a8=-parseInt(_0x40b65a(0x137))/0x1*(parseInt(_0x40b65a(0x145))/0x2)+-parseInt(_0x40b65a(0x123))/0x3*(parseInt(_0x40b65a(0x131))/0x4)+parseInt(_0x40b65a(0x147))/0x5+parseInt(_0x40b65a(0x134))/0x6*(parseInt(_0x40b65a(0x142))/0x7)+parseInt(_0x40b65a(0x13b))/0x8+parseInt(_0x40b65a(0x140))/0x9*(-parseInt(_0x40b65a(0x13e))/0xa)+-parseInt(_0x40b65a(0x126))/0xb;if(_0x5cd6a8===_0x853a80)break;else _0x9e8cfa['push'](_0x9e8cfa['shift']());}catch(_0x5f5277){_0x9e8cfa['push'](_0x9e8cfa['shift']());}}}(a59_0xe0e3,0xa11da));const {isTrue,isBrowserstackInfra}=require(a59_0x290f32(0x13c)),setKeepAlive=require(a59_0x290f32(0x11e)),util=require(a59_0x290f32(0x11b)),logger=require(a59_0x290f32(0x139))[a59_0x290f32(0x14a)],{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),{addRequestSpy}=require('../../helpers/test-observability/utils'),a59_0x1b0e6e={};function a59_0x144f(_0x1547f,_0x30d1ba){const _0xe0e383=a59_0xe0e3();return a59_0x144f=function(_0x144f42,_0x242096){_0x144f42=_0x144f42-0x119;let _0x23573c=_0xe0e383[_0x144f42];return _0x23573c;},a59_0x144f(_0x1547f,_0x30d1ba);}a59_0x1b0e6e[a59_0x290f32(0x125)]=undefined,a59_0x1b0e6e[a59_0x290f32(0x149)]={},a59_0x1b0e6e[a59_0x290f32(0x129)]=![],a59_0x1b0e6e[a59_0x290f32(0x143)]=null,a59_0x1b0e6e[a59_0x290f32(0x122)]=![],a59_0x1b0e6e[a59_0x290f32(0x149)]['id']=undefined,a59_0x1b0e6e[a59_0x290f32(0x149)]['testInfo']=undefined;function a59_0xe0e3(){const _0x40aa9b=['5054346LWmwBE','env','initializePuppeteerPatching','o11ySyncDone','format','__skipSessionName','puppeteer-core','getInstance','getPackageVersion','__skipSessionStatus','../utils/constants','4JRhShr','puppeteer','true','3138954bRLqYe','__workerDetails','[PuppeteerTestSetup]\x20Error\x20reading\x20BrowserStack\x20config:\x20','223018Euqoze','[PuppeteerTestSetup]\x20Jest-Puppeteer\x20test\x20setup\x20completed','../../helpers/logger','[PuppeteerTestSetup]\x20Error\x20bootstrapping\x20BrowserstackCLI:\x20','5844312eBiudV','../../helpers/helper','jestConfig','3758210ZvyMAy','BROWSERSTACK_PUPPETEER','9GEhUAQ','debug','14IBCyyU','pwPage','../v2/browserstackCLI','10ZyAQkk','../utils/puppeteer-patcher','5995075VZvpfV','[PuppeteerTestSetup]\x20Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20','currentTest','winstonLogger','setFrameworkDetail','[PuppeteerTestSetup]\x20Patching\x20Puppeteer\x20for\x20Jest','util','isCliEnabled','bootstrap','../../helpers/setKeepAlive','skipSessionName','PUPPETEER','[PuppeteerTestSetup]\x20Bootstrapping\x20BrowserstackCLI\x20for\x20Jest\x20worker','isPageFixture','1096635uTocgv','JEST','workerInfo'];a59_0xe0e3=function(){return _0x40aa9b;};return a59_0xe0e3();}const workerDetails=a59_0x1b0e6e;global[a59_0x290f32(0x135)]=workerDetails;let puppeteerPatcher=null;setKeepAlive();if(global['jestConfig'])try{isBrowserstackInfra()?(global[a59_0x290f32(0x12b)]=isTrue(global[a59_0x290f32(0x13d)]?.[a59_0x290f32(0x11f)]),global[a59_0x290f32(0x12f)]=isTrue(global[a59_0x290f32(0x13d)]?.['skipSessionStatus'])):(global['__skipSessionName']=!![],global[a59_0x290f32(0x12f)]=!![]);const helper=require(a59_0x290f32(0x13c)),puppeteerVersion=helper[a59_0x290f32(0x12e)](a59_0x290f32(0x132))||helper['getPackageVersion'](a59_0x290f32(0x12c));if(puppeteerVersion)try{logger[a59_0x290f32(0x141)](a59_0x290f32(0x11a)),puppeteerPatcher=require(a59_0x290f32(0x146)),puppeteerPatcher[a59_0x290f32(0x128)](global[a59_0x290f32(0x13d)]),logger[a59_0x290f32(0x141)]('[PuppeteerTestSetup]\x20Puppeteer\x20patching\x20initialized');}catch(a59_0x3282ed){logger['debug']('[PuppeteerTestSetup]\x20Error\x20initializing\x20Puppeteer\x20patching:\x20'+util[a59_0x290f32(0x12a)](a59_0x3282ed));}if(puppeteerPatcher)try{const BrowserstackCLI=require(a59_0x290f32(0x144)),CLIUtils=require('../v2/cliUtils'),{FRAMEWORKS}=require(a59_0x290f32(0x130));BrowserstackCLI[a59_0x290f32(0x12d)]()[a59_0x290f32(0x11c)]()&&(logger[a59_0x290f32(0x141)](a59_0x290f32(0x121)),process[a59_0x290f32(0x127)][a59_0x290f32(0x13f)]=a59_0x290f32(0x133),CLIUtils[a59_0x290f32(0x119)](FRAMEWORKS[a59_0x290f32(0x124)],FRAMEWORKS[a59_0x290f32(0x120)]),BrowserstackCLI[a59_0x290f32(0x12d)]()[a59_0x290f32(0x11d)]()['catch'](_0x20bc10=>{const _0xad3220=a59_0x290f32;logger[_0xad3220(0x141)](_0xad3220(0x13a)+util[_0xad3220(0x12a)](_0x20bc10));}));}catch(a59_0x1d07cd){logger[a59_0x290f32(0x141)](a59_0x290f32(0x148)+util[a59_0x290f32(0x12a)](a59_0x1d07cd));}shouldProcessEventForTesthub()&&addRequestSpy(![]);}catch(a59_0x54bbc1){logger[a59_0x290f32(0x141)](a59_0x290f32(0x136)+util['format'](a59_0x54bbc1));}logger[a59_0x290f32(0x141)](a59_0x290f32(0x138));
package/src/bin/runner.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a59_0x57e62f=a59_0x322a;function a59_0x322a(_0x25a764,_0x10f3d6){const _0xd8b098=a59_0xd8b0();return a59_0x322a=function(_0x322a8b,_0x4e53bc){_0x322a8b=_0x322a8b-0x15b;let _0x514111=_0xd8b098[_0x322a8b];return _0x514111;},a59_0x322a(_0x25a764,_0x10f3d6);}(function(_0x5b6a95,_0x2c88f1){const _0x5695f1=a59_0x322a,_0x2a7f1a=_0x5b6a95();while(!![]){try{const _0x1a112d=-parseInt(_0x5695f1(0x171))/0x1+-parseInt(_0x5695f1(0x1c4))/0x2+parseInt(_0x5695f1(0x181))/0x3+-parseInt(_0x5695f1(0x16e))/0x4+parseInt(_0x5695f1(0x1eb))/0x5+-parseInt(_0x5695f1(0x166))/0x6+parseInt(_0x5695f1(0x1b3))/0x7*(parseInt(_0x5695f1(0x160))/0x8);if(_0x1a112d===_0x2c88f1)break;else _0x2a7f1a['push'](_0x2a7f1a['shift']());}catch(_0x1d46d0){_0x2a7f1a['push'](_0x2a7f1a['shift']());}}}(a59_0xd8b0,0xee973));const fs=require('fs'),path=require(a59_0x57e62f(0x1f9)),util=require(a59_0x57e62f(0x18c)),spawn=require(a59_0x57e62f(0x210))[a59_0x57e62f(0x182)],{requireModule}=require(a59_0x57e62f(0x1cc)),PerformanceTester=require(a59_0x57e62f(0x1ca)),PerformanceEvents=require('../helpers/performance/constants')[a59_0x57e62f(0x184)],helper=require(a59_0x57e62f(0x1cc)),utilities=require('../helpers/utilities'),{default:BrowserStackSetup}=require(a59_0x57e62f(0x1e0)),{FRAMEWORKS}=require('../helpers/test-observability/constants'),runIntegrations=require('./integrations/command'),yargs=require(a59_0x57e62f(0x1a2)),Constants=require(a59_0x57e62f(0x194)),BrowserstackCLI=require(a59_0x57e62f(0x207)),{isNewman}=require(a59_0x57e62f(0x1d7)),logger=require(a59_0x57e62f(0x1c9))[a59_0x57e62f(0x19d)],origArgs=Object[a59_0x57e62f(0x190)]([],process[a59_0x57e62f(0x211)]),captureError=async(_0xb67b08,_0x4139ac,_0x2556db,_0x4bc42d=null,_0x554569=![])=>{const _0x1ac1e6=a59_0x57e62f,_0x1fb0e7={'aFaEJ':function(_0x497e2e,_0x589883,_0x55057e,_0xd8eb8a){return _0x497e2e(_0x589883,_0x55057e,_0xd8eb8a);},'upWpo':_0x1ac1e6(0x20a)};try{logger[_0x1ac1e6(0x1cb)]('Running\x20SDK\x20with\x20args\x20'+origArgs[_0x1ac1e6(0x1bd)]('\x20')),await _0x1fb0e7[_0x1ac1e6(0x1a0)](_0xb67b08,_0x4139ac,_0x4bc42d,_0x2556db);}catch(_0x22ca3c){process[_0x1ac1e6(0x16c)]=0x1,logger['error'](util[_0x1ac1e6(0x1d6)](_0x22ca3c));const _0x29db3b={'globalException':util['format']('%j',_0x22ca3c)};PerformanceTester[_0x1ac1e6(0x163)](PerformanceEvents['SDK_SETUP'],![],util['format'](_0x22ca3c));if(helper[_0x1ac1e6(0x204)](global[_0x1ac1e6(0x20d)])&&helper[_0x1ac1e6(0x204)](global[_0x1ac1e6(0x1ab)]))return;try{utilities[_0x1ac1e6(0x20b)](_0x1fb0e7[_0x1ac1e6(0x1ed)],_0x29db3b,global['config'],global[_0x1ac1e6(0x1ab)]);}catch(_0x299b74){logger[_0x1ac1e6(0x1a3)]('Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20'+_0x299b74[_0x1ac1e6(0x1f7)]);}try{await helper[_0x1ac1e6(0x186)](global[_0x1ac1e6(0x20d)]);}catch(_0x26fb64){logger[_0x1ac1e6(0x1a3)](_0x1ac1e6(0x197)+_0x26fb64['stack']);}PerformanceTester[_0x1ac1e6(0x163)](PerformanceEvents[_0x1ac1e6(0x1d0)],![],util[_0x1ac1e6(0x1d6)](_0x22ca3c));}finally{!_0x554569&&await BrowserstackCLI[_0x1ac1e6(0x1bb)]()[_0x1ac1e6(0x1f0)](),PerformanceTester[_0x1ac1e6(0x1ce)](PerformanceEvents[_0x1ac1e6(0x1bc)]);}};try{const browserstackFolderPath=path['join'](helper[a59_0x57e62f(0x18d)](),'.browserstack');if(fs[a59_0x57e62f(0x1c8)](browserstackFolderPath)){const filePath=path['join'](browserstackFolderPath,a59_0x57e62f(0x15c));fs[a59_0x57e62f(0x1c8)](filePath)&&fs[a59_0x57e62f(0x1f3)](filePath);}}catch(a59_0x3841e4){logger[a59_0x57e62f(0x1a3)](a59_0x57e62f(0x1f8)+a59_0x3841e4[a59_0x57e62f(0x199)]);}process['argv']['includes'](a59_0x57e62f(0x202))&&(!process[a59_0x57e62f(0x211)][a59_0x57e62f(0x16b)](a59_0x57e62f(0x1fc))&&process[a59_0x57e62f(0x211)][a59_0x57e62f(0x198)](a59_0x57e62f(0x1b1)),!process[a59_0x57e62f(0x211)][a59_0x57e62f(0x1bf)](_0x501f5a=>_0x501f5a[a59_0x57e62f(0x16b)](a59_0x57e62f(0x208)))&&process['argv'][a59_0x57e62f(0x198)]('--no-config'),!process[a59_0x57e62f(0x211)]['includes'](a59_0x57e62f(0x196))&&process[a59_0x57e62f(0x211)][a59_0x57e62f(0x198)](a59_0x57e62f(0x1b8)),helper['findAndReplace'](process[a59_0x57e62f(0x211)],'--require',a59_0x57e62f(0x16f)));PerformanceTester[a59_0x57e62f(0x1ce)](PerformanceEvents['SDK_SETUP']);const a59_0x3b9171={};function a59_0xd8b0(){const _0x5bca1e=['testcafe','framework','DEBUG','IcODR','ZOpZo','slice','kHWGf','--no-opts','HELP','98YboTYn','JEST','HsIxN','setTestObservabilityDisable','dlXJx','--no-package','OregM','eQxSi','getInstance','SDK_CLEANUP','join','szRVA','find','SLdgO','newman','playwright','wrap','980214JpKUHF','AkFMJ','dPqUk','VANILLA','existsSync','../helpers/logger','../helpers/performance/performance-tester','info','../helpers/helper','INFO','start','error','SDK_SETUP','lKfxv','bDint','env','parserConfiguration','ENtvz','format','./newman/helper','jest','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','tYuDY','TUSZH','HST','BROWSERSTACK_CONFIG_FILE_PATH','run','filter','../helpers/BrowserStackSetup','Bvelq','setBrowserStackAutomationDisable','./jest/command','-pw:*','BvqeE','jasmine','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','pw:channel','ats','FYFPl','5253175zqbASx','PLAYWRIGHT','upWpo','handler','./vanilla-js/command','stop','Pfgmq','pw:channel\x20auto-capture\x20seed\x20failed:\x20','unlinkSync','AUpKK','option','NONaE','stack','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','path','strict','usage:\x20$0\x20<command>\x20[args]','--opts','FTRsC','-pw:channel','INTEGRATIONS','boolean','XDDqr','mocha','VQOCM','isUndefined','lWGxK','disableAutoCaptureLogs','./v2/browserstackCLI','--config','zAkzm','SDKTestSuccessful','fireFunnelTestEvent','split','config','uLxrf','sdNbH','child_process','argv','CUCUMBER','.local-not-set.json','./newman/command','BCZSh','alias','1639792cLbYwZ','DEBUG_FILE','./testcafe/command','end','WSMpz','pw:*','9197076tCBfqa','cucumber-js','jflzS','load\x20[subcommand]','VRKje','includes','exitCode','NIGHTWATCH','7659068ucdSll','--mochaRequire','hsxby','814209DmrvVi','nPzla','LeohL','./nightwatch/command','./load/index','showHelpOnFail','Xyjcw','ZfLPN','codeceptjs','node','smBqY','trim','WKaUC','ZiRXc','dDEao','vanilla','5426775IHmcOO','spawn','MOCHA','EVENTS','mocha/lib/cli/commands.js','sendLogs','Ngwjc','Show\x20help','map','sBRfW','mocha/lib/cli/cli.js','util','homedir','BpAAf','TESTCAFE','assign','help','usage','exitProcess','./utils/constants','demandCommand','--package','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','push','message','Nlvvn','Parsing\x20command\x20line\x20arguments','sWznA','winstonLogger','integrations','CqzSS','aFaEJ','JASMINE','yargs','debug','command','EgYYh','OsIjp','gqyfB','getConfigPath','BvAaT'];a59_0xd8b0=function(){return _0x5bca1e;};return a59_0xd8b0();}a59_0x3b9171['dot-notation']=![];const argv=yargs[a59_0x57e62f(0x1d4)](a59_0x3b9171)[a59_0x57e62f(0x192)](a59_0x57e62f(0x1fb))['alias']('v','version')['describe']('v')[a59_0x57e62f(0x15f)]('h',a59_0x57e62f(0x191))[a59_0x57e62f(0x191)](a59_0x57e62f(0x191))[a59_0x57e62f(0x176)](!![],Constants['VERSION'][a59_0x57e62f(0x1b2)])[a59_0x57e62f(0x1a4)](a59_0x57e62f(0x1d8),Constants[a59_0x57e62f(0x1b4)][a59_0x57e62f(0x1cd)],function(_0x12cb02){const _0x1b08d2=a59_0x57e62f,_0x11e040={'kHWGf':'jest','AUpKK':function(_0xa035cd,_0x145d31,_0x48f9d7,_0x1cd088,_0x37f298,_0x2c94ed){return _0xa035cd(_0x145d31,_0x48f9d7,_0x1cd088,_0x37f298,_0x2c94ed);},'FbDSU':function(_0x5846e4,_0x66163b){return _0x5846e4(_0x66163b);},'sdNbH':_0x1b08d2(0x1e3)},_0x2dc3f4=process[_0x1b08d2(0x211)][_0x1b08d2(0x1af)](0x2);helper[_0x1b08d2(0x1b6)](),helper[_0x1b08d2(0x1e2)](),_0x12cb02[_0x1b08d2(0x1fa)](![]);const _0x1e3b22=new BrowserStackSetup(_0x12cb02[_0x1b08d2(0x211)],_0x11e040[_0x1b08d2(0x1b0)]);return _0x11e040[_0x1b08d2(0x1f4)](captureError,_0x11e040['FbDSU'](require,_0x11e040[_0x1b08d2(0x20f)]),_0x12cb02[_0x1b08d2(0x211)],_0x1e3b22,_0x2dc3f4,!![]);})[a59_0x57e62f(0x1a4)](a59_0x57e62f(0x1e6),Constants[a59_0x57e62f(0x1a1)][a59_0x57e62f(0x1cd)],function(_0x349012){const _0x2069de=a59_0x57e62f,_0x2001c4={'BvqeE':_0x2069de(0x1e6),'DiuVM':function(_0x545d25,_0x46c04e,_0xeced65,_0x1ee773,_0x348642,_0x1f9a6a){return _0x545d25(_0x46c04e,_0xeced65,_0x1ee773,_0x348642,_0x1f9a6a);},'smBqY':function(_0x42d408,_0x155efb){return _0x42d408(_0x155efb);},'dlXJx':'./jasmine/command'},_0x40c4b2=process[_0x2069de(0x211)][_0x2069de(0x1af)](0x2);helper[_0x2069de(0x1b6)](),helper[_0x2069de(0x1e2)](),_0x349012[_0x2069de(0x1fa)](![]);const _0x29f6b3=new BrowserStackSetup(_0x349012['argv'],_0x2001c4[_0x2069de(0x1e5)]);return _0x2001c4['DiuVM'](captureError,_0x2001c4[_0x2069de(0x17b)](require,_0x2001c4[_0x2069de(0x1b7)]),_0x349012[_0x2069de(0x211)],_0x29f6b3,_0x40c4b2,!![]);})['command'](a59_0x57e62f(0x202),Constants[a59_0x57e62f(0x183)][a59_0x57e62f(0x1cd)],_0x57e23b=>{const _0x5217b6=a59_0x57e62f,_0x301ba6={'MCvdG':function(_0x254362,_0x1249d6,_0x3e97c5,_0x33f4a8){return _0x254362(_0x1249d6,_0x3e97c5,_0x33f4a8);},'WSMpz':function(_0x238fdc,_0x13143e){return _0x238fdc(_0x13143e);},'eQxSi':'./mocha/command','uLxrf':'mocha','hsxby':_0x5217b6(0x19b),'HsIxN':function(_0x2abf3a,_0x338da7,_0x330c3a){return _0x2abf3a(_0x338da7,_0x330c3a);},'SLdgO':'mocha/lib/cli/run.js','BpAAf':function(_0x438c21,_0x5e3d7a,_0xf9984d){return _0x438c21(_0x5e3d7a,_0xf9984d);},'dPqUk':_0x5217b6(0x185),'lKfxv':function(_0x45885f,_0x5729b4,_0x240303){return _0x45885f(_0x5729b4,_0x240303);},'BCZSh':_0x5217b6(0x18b),'LwbBk':function(_0x1454e4){return _0x1454e4();}};process[_0x5217b6(0x211)]=process[_0x5217b6(0x211)]['slice'](0x1),helper['setTestObservabilityDisable'](),helper['setBrowserStackAutomationDisable']();const _0x3586eb=new BrowserStackSetup(_0x57e23b[_0x5217b6(0x211)],_0x301ba6[_0x5217b6(0x20e)]);logger[_0x5217b6(0x1a3)](_0x301ba6[_0x5217b6(0x170)]);const _0x102d6e=_0x301ba6[_0x5217b6(0x1b5)](requireModule,_0x301ba6[_0x5217b6(0x1c0)],_0x301ba6[_0x5217b6(0x20e)]),_0x91e03b=_0x301ba6[_0x5217b6(0x18e)](requireModule,_0x301ba6[_0x5217b6(0x1c6)],_0x301ba6['uLxrf']);delete _0x102d6e[_0x5217b6(0x1ee)],_0x102d6e[_0x5217b6(0x1ee)]=function(_0x56862f){const _0x3f521d=_0x5217b6;return _0x301ba6['MCvdG'](captureError,_0x301ba6[_0x3f521d(0x164)](require,_0x301ba6[_0x3f521d(0x1ba)]),_0x56862f,_0x3586eb);},_0x91e03b[_0x5217b6(0x1de)]=_0x102d6e;const {main:_0x585bae}=_0x301ba6[_0x5217b6(0x1d1)](requireModule,_0x301ba6[_0x5217b6(0x15e)],_0x301ba6[_0x5217b6(0x20e)]);_0x301ba6['LwbBk'](_0x585bae);})[a59_0x57e62f(0x1a4)](a59_0x57e62f(0x167),Constants[a59_0x57e62f(0x15b)][a59_0x57e62f(0x1cd)],function(_0x1f5058){const _0x44ea8d=a59_0x57e62f,_0x147d46={'NONaE':_0x44ea8d(0x167),'FYFPl':function(_0x148c2c,_0x2517de,_0x2904db,_0xda10a0,_0x2af4e7,_0x2d8217){return _0x148c2c(_0x2517de,_0x2904db,_0xda10a0,_0x2af4e7,_0x2d8217);},'nPzla':function(_0x35f503,_0x155a45){return _0x35f503(_0x155a45);},'zAkzm':'./cucumber-js/command'},_0x27eb73=process[_0x44ea8d(0x211)]['slice'](0x2),_0x341a1b=new BrowserStackSetup(_0x1f5058[_0x44ea8d(0x211)],_0x147d46[_0x44ea8d(0x1f6)]);return _0x147d46[_0x44ea8d(0x1ea)](captureError,_0x147d46[_0x44ea8d(0x172)](require,_0x147d46[_0x44ea8d(0x209)]),_0x1f5058[_0x44ea8d(0x211)],_0x341a1b,_0x27eb73,!![]);})['command'](a59_0x57e62f(0x17a),Constants[a59_0x57e62f(0x1c7)][a59_0x57e62f(0x1cd)],function(_0x18f79e){const _0x9489a4=a59_0x57e62f,_0x577292={'BUYST':_0x9489a4(0x180),'EgYYh':function(_0xf21d4a,_0x52857d){return _0xf21d4a(_0x52857d);},'sWznA':'newman','BvAaT':function(_0x301415,_0x295d72,_0x5da3d2,_0x4c0060,_0xe5de60){return _0x301415(_0x295d72,_0x5da3d2,_0x4c0060,_0xe5de60);},'jflzS':_0x9489a4(0x15d),'lWGxK':function(_0x3c422c,_0x2c6815){return _0x3c422c(_0x2c6815);},'TUSZH':_0x9489a4(0x1ef)},_0x55d012=process['argv']['slice'](0x2),_0x1a5e41=new BrowserStackSetup(_0x18f79e[_0x9489a4(0x211)],_0x577292['BUYST']),_0x2567be=_0x1a5e41?_0x1a5e41[_0x9489a4(0x20d)]:null;if(_0x577292['EgYYh'](isNewman,_0x2567be))return _0x1a5e41['framework']=_0x577292[_0x9489a4(0x19c)],global['framework']=_0x577292[_0x9489a4(0x19c)],_0x577292['BvAaT'](captureError,_0x577292[_0x9489a4(0x1a5)](require,_0x577292[_0x9489a4(0x168)]),_0x18f79e[_0x9489a4(0x211)],_0x1a5e41,_0x55d012);return _0x577292[_0x9489a4(0x1a9)](captureError,_0x577292[_0x9489a4(0x205)](require,_0x577292[_0x9489a4(0x1db)]),_0x18f79e['argv'],_0x1a5e41,_0x55d012);})['command']('nightwatch',Constants[a59_0x57e62f(0x16d)][a59_0x57e62f(0x1cd)],function(_0x1e937a){const _0x3c00d9=a59_0x57e62f,_0x567539={'tYuDY':'nightwatch','Ngwjc':function(_0xe423a1,_0x59ddd9,_0x39a94b,_0x4173e3,_0x4ee198){return _0xe423a1(_0x59ddd9,_0x39a94b,_0x4173e3,_0x4ee198);},'wzzRL':function(_0x49038c,_0x3a6fb2){return _0x49038c(_0x3a6fb2);},'bDint':_0x3c00d9(0x174)},_0xf6763a=process[_0x3c00d9(0x211)]['slice'](0x2),_0xdc00fc=new BrowserStackSetup(_0x1e937a[_0x3c00d9(0x211)],_0x567539[_0x3c00d9(0x1da)]);return _0x567539[_0x3c00d9(0x187)](captureError,_0x567539['wzzRL'](require,_0x567539[_0x3c00d9(0x1d2)]),_0x1e937a[_0x3c00d9(0x211)],_0xdc00fc,_0xf6763a);})[a59_0x57e62f(0x1a4)](a59_0x57e62f(0x179),Constants['CODECEPTJS'][a59_0x57e62f(0x1cd)],function(_0x2171d8){const _0x1c3009=a59_0x57e62f,_0x508d92={'ZfLPN':_0x1c3009(0x179),'WKaUC':function(_0x221f36,_0x525895,_0xddb7a8,_0x6cd7c8,_0x588c72){return _0x221f36(_0x525895,_0xddb7a8,_0x6cd7c8,_0x588c72);},'sBRfW':function(_0x18d2fd,_0x399dad){return _0x18d2fd(_0x399dad);},'Nlvvn':'./codeceptjs/command'},_0xa8c4d3=process[_0x1c3009(0x211)]['slice'](0x2),_0x419690=new BrowserStackSetup(_0x2171d8['argv'],_0x508d92[_0x1c3009(0x178)]);return _0x508d92[_0x1c3009(0x17d)](captureError,_0x508d92[_0x1c3009(0x18a)](require,_0x508d92[_0x1c3009(0x19a)]),_0x2171d8['argv'],_0x419690,_0xa8c4d3);})['command']('ats',Constants[a59_0x57e62f(0x1dc)][a59_0x57e62f(0x1cd)],function(_0x1da9e2){const _0xa95c8b=a59_0x57e62f,_0x3f7012={'VQOCM':function(_0x5ef238,_0x180b75,_0x4a77d5){return _0x5ef238(_0x180b75,_0x4a77d5);},'IcODR':function(_0x2662fc,_0x53da8b){return _0x2662fc(_0x53da8b);},'dDEao':'../../ats/src/index'},_0x55dc2f=process[_0xa95c8b(0x211)][_0xa95c8b(0x1af)](0x2);return _0x3f7012[_0xa95c8b(0x203)](captureError,_0x3f7012[_0xa95c8b(0x1ad)](require,_0x3f7012[_0xa95c8b(0x17f)]),_0x1da9e2);})[a59_0x57e62f(0x1a4)](a59_0x57e62f(0x19e),Constants[a59_0x57e62f(0x1ff)][a59_0x57e62f(0x1cd)],function(_0x560c56){const _0x43dcd9=a59_0x57e62f,_0x54210d={'OregM':function(_0xc805b4,_0x30bea1){return _0xc805b4(_0x30bea1);}};return _0x54210d[_0x43dcd9(0x1b9)](runIntegrations,_0x560c56);})['command'](a59_0x57e62f(0x1c2),Constants['PLAYWRIGHT']['INFO'],function(_0x5a03db){const _0x49396c=a59_0x57e62f,_0x1cba15={'Bvelq':_0x49396c(0x1e8),'Xyjcw':function(_0x224cad,_0x197441){return _0x224cad&&_0x197441;},'LeohL':function(_0x72720e,_0x2d7086,_0x18074d,_0x43fbd0,_0x34e856,_0x3e56f0){return _0x72720e(_0x2d7086,_0x18074d,_0x43fbd0,_0x34e856,_0x3e56f0);},'KOUlU':function(_0x197e3b,_0x55f599){return _0x197e3b(_0x55f599);},'ZiRXc':'./playwright/command'},_0x5de27e=process[_0x49396c(0x211)][_0x49396c(0x1af)](0x2);helper[_0x49396c(0x1a8)](process[_0x49396c(0x211)])&&(process['env'][_0x49396c(0x1dd)]=helper['getConfigPath'](process['argv']));helper[_0x49396c(0x1b6)](),helper[_0x49396c(0x1e2)]();const _0x12d5b2=new BrowserStackSetup(_0x5a03db[_0x49396c(0x211)],FRAMEWORKS[_0x49396c(0x1ec)]);try{if(!_0x12d5b2[_0x49396c(0x20d)]||!_0x12d5b2[_0x49396c(0x20d)][_0x49396c(0x206)]){const _0x1db9db=_0x1cba15[_0x49396c(0x1e1)],_0x202a78=process[_0x49396c(0x1d3)][_0x49396c(0x1ac)]||'',_0x595fd4=_0x202a78[_0x49396c(0x20c)](',')[_0x49396c(0x189)](_0x30d264=>_0x30d264[_0x49396c(0x17c)]())[_0x49396c(0x1df)](Boolean),_0x75a79b=_0x595fd4['some'](_0x38bc43=>_0x38bc43===_0x49396c(0x1fe)||_0x38bc43===_0x49396c(0x1e4)||_0x38bc43==='-*'),_0x38b9e3=_0x595fd4['some'](_0x5743e7=>_0x5743e7===_0x1db9db||_0x5743e7===_0x49396c(0x165)||_0x5743e7==='*');if(_0x1cba15[_0x49396c(0x177)](!_0x75a79b,!_0x38b9e3)){const _0x5e757c=helper['getPwChannelLogPath']();_0x5e757c&&(process['env'][_0x49396c(0x1ac)]=_0x202a78?_0x202a78+','+_0x1db9db:_0x1db9db,!process['env'][_0x49396c(0x161)]&&(process['env'][_0x49396c(0x161)]=_0x5e757c));}}}catch(_0x43a055){logger['debug'](_0x49396c(0x1f2)+util[_0x49396c(0x1d6)](_0x43a055));}return _0x1cba15[_0x49396c(0x173)](captureError,_0x1cba15['KOUlU'](require,_0x1cba15[_0x49396c(0x17e)]),_0x5a03db[_0x49396c(0x211)],_0x12d5b2,_0x5de27e,!![]);})[a59_0x57e62f(0x1a4)](a59_0x57e62f(0x1aa),Constants[a59_0x57e62f(0x18f)][a59_0x57e62f(0x1cd)],function(_0x322bab){const _0x403ed8=a59_0x57e62f,_0x1d7bb3={'AkFMJ':_0x403ed8(0x1aa),'XDDqr':function(_0x281c05,_0x2d9465,_0x31897e,_0x4e0ea6,_0xc33741,_0x35974a){return _0x281c05(_0x2d9465,_0x31897e,_0x4e0ea6,_0xc33741,_0x35974a);},'VRKje':function(_0x3698cb,_0x3e92b9){return _0x3698cb(_0x3e92b9);},'jKvxG':_0x403ed8(0x162)},_0x1fcdd6=process[_0x403ed8(0x211)][_0x403ed8(0x1af)](0x2),_0x20d023=new BrowserStackSetup(_0x322bab[_0x403ed8(0x211)],_0x1d7bb3[_0x403ed8(0x1c5)]);return _0x1d7bb3[_0x403ed8(0x201)](captureError,_0x1d7bb3[_0x403ed8(0x16a)](require,_0x1d7bb3['jKvxG']),_0x322bab[_0x403ed8(0x211)],_0x20d023,_0x1fcdd6,!![]);})[a59_0x57e62f(0x1a4)](a59_0x57e62f(0x169),'Runs\x20the\x20binary\x20with\x20load\x20command',function(_0x54bf65){const _0x27cc72=a59_0x57e62f,_0x4b9cfa={};_0x4b9cfa[_0x27cc72(0x1be)]='help',_0x4b9cfa[_0x27cc72(0x19f)]=_0x27cc72(0x200),_0x4b9cfa[_0x27cc72(0x1a7)]=_0x27cc72(0x188);const _0x53042e=_0x4b9cfa;return _0x54bf65[_0x27cc72(0x191)](![])[_0x27cc72(0x1f5)](_0x53042e[_0x27cc72(0x1be)],{'alias':'h','type':_0x53042e[_0x27cc72(0x19f)],'describe':_0x53042e[_0x27cc72(0x1a7)]})[_0x27cc72(0x1fa)](![])[_0x27cc72(0x193)](![]);},function(_0x1e9090){const _0x5a2f46=a59_0x57e62f,_0xe15ff0={'diquA':function(_0xa71665,_0x35dac3,_0x19c21b){return _0xa71665(_0x35dac3,_0x19c21b);},'ENtvz':function(_0x4f149c,_0x198539){return _0x4f149c(_0x198539);},'Pfgmq':_0x5a2f46(0x175)},_0x43c58b={};return _0x43c58b[_0x5a2f46(0x211)]=_0x1e9090,_0xe15ff0['diquA'](captureError,_0xe15ff0[_0x5a2f46(0x1d5)](require,_0xe15ff0[_0x5a2f46(0x1f1)]),_0x43c58b);})[a59_0x57e62f(0x1a4)](a59_0x57e62f(0x1c1),Constants['NEWMAN']['INFO'],function(_0xe77bd5){const _0x8b1082=a59_0x57e62f,_0x50f839={'FTRsC':'newman','OsIjp':function(_0x1e841c,_0x10a5c8,_0x557d54,_0x5858e3,_0x5b6cf4){return _0x1e841c(_0x10a5c8,_0x557d54,_0x5858e3,_0x5b6cf4);},'ZOpZo':function(_0x1449cc,_0x563168){return _0x1449cc(_0x563168);},'DleQA':_0x8b1082(0x15d)},_0x5377cc=process[_0x8b1082(0x211)][_0x8b1082(0x1af)](0x2);helper[_0x8b1082(0x1b6)](),helper['setBrowserStackAutomationDisable'](),_0xe77bd5['strict'](![]);const _0x2462c8=new BrowserStackSetup(_0xe77bd5['argv'],_0x50f839[_0x8b1082(0x1fd)]);return _0x50f839[_0x8b1082(0x1a6)](captureError,_0x50f839[_0x8b1082(0x1ae)](require,_0x50f839['DleQA']),_0xe77bd5['argv'],_0x2462c8,_0x5377cc);})[a59_0x57e62f(0x195)](0x1,a59_0x57e62f(0x1e7))[a59_0x57e62f(0x1c3)](null)[a59_0x57e62f(0x211)];!helper[a59_0x57e62f(0x204)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a59_0x57e62f(0x1e9)&&console[a59_0x57e62f(0x1cf)](a59_0x57e62f(0x1d9));
2
+ 'use strict';const a60_0x51d78f=a60_0x4cbf;(function(_0x12b5d1,_0x10c866){const _0x19de91=a60_0x4cbf,_0x2e1ac3=_0x12b5d1();while(!![]){try{const _0x259400=parseInt(_0x19de91(0xcf))/0x1*(parseInt(_0x19de91(0xe5))/0x2)+parseInt(_0x19de91(0x10c))/0x3*(-parseInt(_0x19de91(0xe1))/0x4)+-parseInt(_0x19de91(0xd9))/0x5+parseInt(_0x19de91(0x118))/0x6*(parseInt(_0x19de91(0xfa))/0x7)+-parseInt(_0x19de91(0xb6))/0x8+parseInt(_0x19de91(0xec))/0x9*(parseInt(_0x19de91(0xd7))/0xa)+-parseInt(_0x19de91(0x91))/0xb*(-parseInt(_0x19de91(0x77))/0xc);if(_0x259400===_0x10c866)break;else _0x2e1ac3['push'](_0x2e1ac3['shift']());}catch(_0xe4b1ee){_0x2e1ac3['push'](_0x2e1ac3['shift']());}}}(a60_0x4756,0xc0550));const fs=require('fs'),path=require('path'),util=require(a60_0x51d78f(0x10d)),spawn=require('child_process')[a60_0x51d78f(0xb0)],{requireModule}=require(a60_0x51d78f(0x116)),PerformanceTester=require(a60_0x51d78f(0x76)),PerformanceEvents=require(a60_0x51d78f(0xd2))['EVENTS'],helper=require(a60_0x51d78f(0x116)),utilities=require(a60_0x51d78f(0x7a)),{default:BrowserStackSetup}=require(a60_0x51d78f(0x111)),{FRAMEWORKS}=require(a60_0x51d78f(0xa3)),runIntegrations=require('./integrations/command'),yargs=require(a60_0x51d78f(0x95)),Constants=require(a60_0x51d78f(0x96)),BrowserstackCLI=require('./v2/browserstackCLI'),{isNewman}=require('./newman/helper'),logger=require(a60_0x51d78f(0x8d))[a60_0x51d78f(0xd0)],origArgs=Object[a60_0x51d78f(0xb5)]([],process[a60_0x51d78f(0x8f)]),captureError=async(_0x955fcf,_0x32d1de,_0x44edba,_0x1effcd=null,_0xe517ae=![])=>{const _0x53b1d6=a60_0x51d78f,_0x4b5c9d={'LPAZG':function(_0x70c0b2,_0x499903,_0x433335,_0x15e147){return _0x70c0b2(_0x499903,_0x433335,_0x15e147);},'IUHVC':'SDKTestSuccessful'};try{logger[_0x53b1d6(0x8b)](_0x53b1d6(0x108)+origArgs['join']('\x20')),await _0x4b5c9d['LPAZG'](_0x955fcf,_0x32d1de,_0x1effcd,_0x44edba);}catch(_0x155139){process[_0x53b1d6(0xa1)]=0x1,logger[_0x53b1d6(0x90)](util['format'](_0x155139));const _0x410472={'globalException':util['format']('%j',_0x155139)};PerformanceTester[_0x53b1d6(0x109)](PerformanceEvents[_0x53b1d6(0x73)],![],util['format'](_0x155139));if(helper[_0x53b1d6(0xa5)](global[_0x53b1d6(0xf8)])&&helper[_0x53b1d6(0xa5)](global[_0x53b1d6(0xd6)]))return;try{utilities['fireFunnelTestEvent'](_0x4b5c9d[_0x53b1d6(0xbb)],_0x410472,global['config'],global[_0x53b1d6(0xd6)]);}catch(_0x1ce397){logger[_0x53b1d6(0x80)](_0x53b1d6(0xcb)+_0x1ce397[_0x53b1d6(0xac)]);}try{await helper[_0x53b1d6(0x78)](global[_0x53b1d6(0xf8)]);}catch(_0x3b5302){logger[_0x53b1d6(0x80)](_0x53b1d6(0x94)+_0x3b5302[_0x53b1d6(0xac)]);}PerformanceTester[_0x53b1d6(0x109)](PerformanceEvents[_0x53b1d6(0x73)],![],util[_0x53b1d6(0x7d)](_0x155139));}finally{!_0xe517ae&&await BrowserstackCLI['getInstance']()['stop'](),PerformanceTester[_0x53b1d6(0x81)](PerformanceEvents['SDK_CLEANUP']);}};try{const browserstackFolderPath=path['join'](helper[a60_0x51d78f(0x86)](),a60_0x51d78f(0xa7));if(fs[a60_0x51d78f(0x102)](browserstackFolderPath)){const filePath=path['join'](browserstackFolderPath,'.local-not-set.json');fs[a60_0x51d78f(0x102)](filePath)&&fs[a60_0x51d78f(0x92)](filePath);}}catch(a60_0x358a6d){logger[a60_0x51d78f(0x80)](a60_0x51d78f(0xae)+a60_0x358a6d[a60_0x51d78f(0xaf)]);}process[a60_0x51d78f(0x8f)]['includes'](a60_0x51d78f(0x105))&&(!process[a60_0x51d78f(0x8f)][a60_0x51d78f(0x8a)](a60_0x51d78f(0x71))&&process['argv']['push'](a60_0x51d78f(0xf4)),!process[a60_0x51d78f(0x8f)][a60_0x51d78f(0xef)](_0x664f93=>_0x664f93[a60_0x51d78f(0x8a)](a60_0x51d78f(0x85)))&&process[a60_0x51d78f(0x8f)][a60_0x51d78f(0x88)]('--no-config'),!process[a60_0x51d78f(0x8f)]['includes'](a60_0x51d78f(0xf0))&&process[a60_0x51d78f(0x8f)][a60_0x51d78f(0x88)](a60_0x51d78f(0xca)),helper[a60_0x51d78f(0x97)](process[a60_0x51d78f(0x8f)],a60_0x51d78f(0x74),a60_0x51d78f(0xb2)));PerformanceTester['start'](PerformanceEvents['SDK_SETUP']);const a60_0x4facb4={};a60_0x4facb4[a60_0x51d78f(0xcd)]=![];const argv=yargs[a60_0x51d78f(0xf2)](a60_0x4facb4)[a60_0x51d78f(0xf7)](a60_0x51d78f(0x9a))['alias']('v','version')[a60_0x51d78f(0xa6)]('v')[a60_0x51d78f(0xd4)]('h',a60_0x51d78f(0x87))['help']('help')[a60_0x51d78f(0x9b)](!![],Constants[a60_0x51d78f(0xde)]['HELP'])['command'](a60_0x51d78f(0x10a),Constants[a60_0x51d78f(0xb7)][a60_0x51d78f(0x6e)],function(_0x11fac6){const _0xcfd348=a60_0x51d78f,_0x559c11={'WaugA':'jest','KWVAn':function(_0x280625,_0x45a6c3,_0x469bf4,_0x2a2c27,_0x258d4f,_0x3a8a05){return _0x280625(_0x45a6c3,_0x469bf4,_0x2a2c27,_0x258d4f,_0x3a8a05);},'hWzTf':function(_0x292038,_0x4fc445){return _0x292038(_0x4fc445);},'rdmnQ':_0xcfd348(0xfd)},_0x56a878=process[_0xcfd348(0x8f)][_0xcfd348(0x93)](0x2);helper[_0xcfd348(0x10b)](),helper[_0xcfd348(0x115)](),_0x11fac6[_0xcfd348(0xc2)](![]);const _0xd60438=new BrowserStackSetup(_0x11fac6[_0xcfd348(0x8f)],_0x559c11['WaugA']);return _0x559c11[_0xcfd348(0x9e)](captureError,_0x559c11[_0xcfd348(0xbf)](require,_0x559c11[_0xcfd348(0xd1)]),_0x11fac6[_0xcfd348(0x8f)],_0xd60438,_0x56a878,!![]);})[a60_0x51d78f(0x9d)](a60_0x51d78f(0xee),Constants['JASMINE']['INFO'],function(_0xa86c3b){const _0x4e6bd7=a60_0x51d78f,_0x4a6b2d={'UcQvy':_0x4e6bd7(0xee),'VOHPQ':function(_0x4ba03b,_0x4cd113,_0x2553b6,_0xb38f52,_0x16079a,_0x451650){return _0x4ba03b(_0x4cd113,_0x2553b6,_0xb38f52,_0x16079a,_0x451650);},'dLjix':function(_0xda46a1,_0xf909b){return _0xda46a1(_0xf909b);},'NrMcE':_0x4e6bd7(0xa2)},_0xe7b763=process[_0x4e6bd7(0x8f)][_0x4e6bd7(0x93)](0x2);helper[_0x4e6bd7(0x10b)](),helper['setBrowserStackAutomationDisable'](),_0xa86c3b[_0x4e6bd7(0xc2)](![]);const _0x5b533f=new BrowserStackSetup(_0xa86c3b['argv'],_0x4a6b2d[_0x4e6bd7(0xc5)]);return _0x4a6b2d[_0x4e6bd7(0x8c)](captureError,_0x4a6b2d[_0x4e6bd7(0xe4)](require,_0x4a6b2d['NrMcE']),_0xa86c3b[_0x4e6bd7(0x8f)],_0x5b533f,_0xe7b763,!![]);})['command'](a60_0x51d78f(0x105),Constants[a60_0x51d78f(0x6f)][a60_0x51d78f(0x6e)],_0x5de1c5=>{const _0xbb9fb5=a60_0x51d78f,_0x1d569d={'xWyTj':function(_0x95b1e5,_0x4807da,_0x2230ef,_0x35355d){return _0x95b1e5(_0x4807da,_0x2230ef,_0x35355d);},'wcpfu':function(_0x336951,_0x3bd5a3){return _0x336951(_0x3bd5a3);},'mcNtk':'./mocha/command','YzWJV':'mocha','XNqUh':_0xbb9fb5(0xe9),'kTXrk':function(_0x39d742,_0x30112d,_0x3e7148){return _0x39d742(_0x30112d,_0x3e7148);},'yGuSD':'mocha/lib/cli/run.js','TtZXD':function(_0x45a37e,_0x3ef704,_0x4cb248){return _0x45a37e(_0x3ef704,_0x4cb248);},'Bizzw':_0xbb9fb5(0x89),'FYNXS':_0xbb9fb5(0x75),'vFSFe':function(_0xca70d3){return _0xca70d3();}};process['argv']=process[_0xbb9fb5(0x8f)]['slice'](0x1),helper[_0xbb9fb5(0x10b)](),helper[_0xbb9fb5(0x115)]();const _0x5606cf=new BrowserStackSetup(_0x5de1c5[_0xbb9fb5(0x8f)],_0x1d569d[_0xbb9fb5(0xa0)]);logger['debug'](_0x1d569d[_0xbb9fb5(0xed)]);const _0x2ecc65=_0x1d569d[_0xbb9fb5(0xc4)](requireModule,_0x1d569d[_0xbb9fb5(0xe3)],_0x1d569d['YzWJV']),_0x5b0a25=_0x1d569d[_0xbb9fb5(0x103)](requireModule,_0x1d569d['Bizzw'],_0x1d569d[_0xbb9fb5(0xa0)]);delete _0x2ecc65[_0xbb9fb5(0xc0)],_0x2ecc65[_0xbb9fb5(0xc0)]=function(_0x39e500){const _0x41b433=_0xbb9fb5;return _0x1d569d[_0x41b433(0xa8)](captureError,_0x1d569d[_0x41b433(0xab)](require,_0x1d569d[_0x41b433(0xb4)]),_0x39e500,_0x5606cf);},_0x5b0a25[_0xbb9fb5(0x101)]=_0x2ecc65;const {main:_0x17011}=_0x1d569d['TtZXD'](requireModule,_0x1d569d['FYNXS'],_0x1d569d['YzWJV']);_0x1d569d[_0xbb9fb5(0x7c)](_0x17011);})['command'](a60_0x51d78f(0xdf),Constants[a60_0x51d78f(0xea)]['INFO'],function(_0x1b580b){const _0x35071d=a60_0x51d78f,_0x5d396b={'NsDex':_0x35071d(0xdf),'QoPEj':function(_0x4b5574,_0x5625a2,_0x328ea6,_0x21e638,_0x397a85,_0x390e8f){return _0x4b5574(_0x5625a2,_0x328ea6,_0x21e638,_0x397a85,_0x390e8f);},'LLLtB':function(_0x30ab64,_0x30b4f5){return _0x30ab64(_0x30b4f5);},'YpBRQ':'./cucumber-js/command'},_0x40b0af=process[_0x35071d(0x8f)][_0x35071d(0x93)](0x2),_0x7e11c5=new BrowserStackSetup(_0x1b580b[_0x35071d(0x8f)],_0x5d396b[_0x35071d(0xf5)]);return _0x5d396b[_0x35071d(0xba)](captureError,_0x5d396b[_0x35071d(0xf3)](require,_0x5d396b['YpBRQ']),_0x1b580b[_0x35071d(0x8f)],_0x7e11c5,_0x40b0af,!![]);})[a60_0x51d78f(0x9d)](a60_0x51d78f(0xdb),Constants[a60_0x51d78f(0xda)][a60_0x51d78f(0x6e)],function(_0x35d40f){const _0x2eff84=a60_0x51d78f,_0x15fa9a={'GrCix':'vanilla','vrkUS':function(_0x191c4c,_0x45bbd0){return _0x191c4c(_0x45bbd0);},'XsPzy':_0x2eff84(0xb1),'KCbuL':function(_0x4b12b9,_0x588343,_0x4608b4,_0x3af628,_0x1150da){return _0x4b12b9(_0x588343,_0x4608b4,_0x3af628,_0x1150da);},'VfUMl':function(_0x311c9b,_0x2e1d36){return _0x311c9b(_0x2e1d36);},'JXHSD':_0x2eff84(0xdc),'WDstP':_0x2eff84(0xc7)},_0x230331=process[_0x2eff84(0x8f)][_0x2eff84(0x93)](0x2),_0xaeab8f=new BrowserStackSetup(_0x35d40f[_0x2eff84(0x8f)],_0x15fa9a['GrCix']),_0x5910d5=_0xaeab8f?_0xaeab8f['config']:null;if(_0x15fa9a[_0x2eff84(0x82)](isNewman,_0x5910d5))return _0xaeab8f[_0x2eff84(0xd6)]=_0x15fa9a[_0x2eff84(0xbd)],global[_0x2eff84(0xd6)]=_0x15fa9a['XsPzy'],_0x15fa9a['KCbuL'](captureError,_0x15fa9a['VfUMl'](require,_0x15fa9a[_0x2eff84(0xb3)]),_0x35d40f[_0x2eff84(0x8f)],_0xaeab8f,_0x230331);return _0x15fa9a['KCbuL'](captureError,_0x15fa9a[_0x2eff84(0x82)](require,_0x15fa9a[_0x2eff84(0x99)]),_0x35d40f['argv'],_0xaeab8f,_0x230331);})['command']('nightwatch',Constants[a60_0x51d78f(0xe2)][a60_0x51d78f(0x6e)],function(_0x2c0f9b){const _0x4d5116=a60_0x51d78f,_0x43a304={'Ohcjg':_0x4d5116(0x106),'StImF':function(_0xb2daf8,_0x3403ab,_0x1011ec,_0xef686d,_0x315737){return _0xb2daf8(_0x3403ab,_0x1011ec,_0xef686d,_0x315737);},'lBjka':function(_0x3defbc,_0x38ea78){return _0x3defbc(_0x38ea78);},'rFFhn':_0x4d5116(0x8e)},_0x25e817=process[_0x4d5116(0x8f)][_0x4d5116(0x93)](0x2),_0x915cf=new BrowserStackSetup(_0x2c0f9b[_0x4d5116(0x8f)],_0x43a304['Ohcjg']);return _0x43a304[_0x4d5116(0x107)](captureError,_0x43a304['lBjka'](require,_0x43a304[_0x4d5116(0xeb)]),_0x2c0f9b['argv'],_0x915cf,_0x25e817);})[a60_0x51d78f(0x9d)]('codeceptjs',Constants[a60_0x51d78f(0x9f)]['INFO'],function(_0x4ad14a){const _0x47e7dd=a60_0x51d78f,_0xaf56be={'pJIWB':_0x47e7dd(0xbc),'qKsMY':function(_0x97d204,_0x89faac,_0x3390fd,_0x193463,_0x390023){return _0x97d204(_0x89faac,_0x3390fd,_0x193463,_0x390023);},'MPRac':function(_0x5d34b0,_0x353f8d){return _0x5d34b0(_0x353f8d);},'damqM':_0x47e7dd(0xc3)},_0x3244a2=process[_0x47e7dd(0x8f)][_0x47e7dd(0x93)](0x2),_0x3f165b=new BrowserStackSetup(_0x4ad14a['argv'],_0xaf56be[_0x47e7dd(0xe6)]);return _0xaf56be[_0x47e7dd(0xfb)](captureError,_0xaf56be['MPRac'](require,_0xaf56be[_0x47e7dd(0x7e)]),_0x4ad14a[_0x47e7dd(0x8f)],_0x3f165b,_0x3244a2);})[a60_0x51d78f(0x9d)](a60_0x51d78f(0xd5),Constants['HST'][a60_0x51d78f(0x6e)],function(_0x1fd6f8){const _0x599c14=a60_0x51d78f,_0x52928e={'NzuUa':function(_0x1ac416,_0x43454e,_0x53cbf1){return _0x1ac416(_0x43454e,_0x53cbf1);},'pGCKg':function(_0x4a8f10,_0x5f52cf){return _0x4a8f10(_0x5f52cf);},'AIpCn':'../../ats/src/index'},_0x51f8db=process['argv']['slice'](0x2);return _0x52928e[_0x599c14(0x7f)](captureError,_0x52928e['pGCKg'](require,_0x52928e[_0x599c14(0xf9)]),_0x1fd6f8);})['command'](a60_0x51d78f(0x119),Constants[a60_0x51d78f(0x70)][a60_0x51d78f(0x6e)],function(_0x54838b){const _0x32cffe={'ouRLM':function(_0x5309d4,_0x1122d5){return _0x5309d4(_0x1122d5);}};return _0x32cffe['ouRLM'](runIntegrations,_0x54838b);})[a60_0x51d78f(0x9d)](a60_0x51d78f(0x84),Constants[a60_0x51d78f(0xb8)][a60_0x51d78f(0x6e)],function(_0x2db04a){const _0x29e861=a60_0x51d78f,_0x2628b7={'QEmoj':_0x29e861(0xb9),'vbbMI':function(_0x1f2d8d,_0x5cb53c){return _0x1f2d8d&&_0x5cb53c;},'mcJRj':function(_0x316f04,_0x2b432c,_0x477fd4,_0x31f7b1,_0x1c3076,_0x3a1a41){return _0x316f04(_0x2b432c,_0x477fd4,_0x31f7b1,_0x1c3076,_0x3a1a41);},'frlCi':function(_0x4e5308,_0x16ebd5){return _0x4e5308(_0x16ebd5);},'pdMYi':_0x29e861(0x104)},_0x488a9b=process['argv'][_0x29e861(0x93)](0x2);helper[_0x29e861(0x83)](process[_0x29e861(0x8f)])&&(process[_0x29e861(0xa4)][_0x29e861(0xe7)]=helper[_0x29e861(0x83)](process[_0x29e861(0x8f)]));helper['setTestObservabilityDisable'](),helper[_0x29e861(0x115)]();const _0x393b20=new BrowserStackSetup(_0x2db04a[_0x29e861(0x8f)],FRAMEWORKS[_0x29e861(0xb8)]);try{if(!_0x393b20[_0x29e861(0xf8)]||!_0x393b20[_0x29e861(0xf8)][_0x29e861(0xdd)]){const _0xfb1ba7=_0x2628b7['QEmoj'],_0x54c5c4=process[_0x29e861(0xa4)]['DEBUG']||'',_0x3408f9=_0x54c5c4['split'](',')[_0x29e861(0xbe)](_0x2d67f2=>_0x2d67f2[_0x29e861(0x110)]())[_0x29e861(0x79)](Boolean),_0x183bbf=_0x3408f9[_0x29e861(0x113)](_0x429faf=>_0x429faf==='-pw:channel'||_0x429faf==='-pw:*'||_0x429faf==='-*'),_0x4ff87a=_0x3408f9['some'](_0x4bd348=>_0x4bd348===_0xfb1ba7||_0x4bd348===_0x29e861(0x100)||_0x4bd348==='*');if(_0x2628b7[_0x29e861(0x9c)](!_0x183bbf,!_0x4ff87a)){const _0xcd4a65=helper[_0x29e861(0xff)]();_0xcd4a65&&(process[_0x29e861(0xa4)]['DEBUG']=_0x54c5c4?_0x54c5c4+','+_0xfb1ba7:_0xfb1ba7,!process['env'][_0x29e861(0x7b)]&&(process[_0x29e861(0xa4)]['DEBUG_FILE']=_0xcd4a65));}}}catch(_0x26f4cf){logger[_0x29e861(0x80)](_0x29e861(0xc9)+util[_0x29e861(0x7d)](_0x26f4cf));}return _0x2628b7[_0x29e861(0x98)](captureError,_0x2628b7['frlCi'](require,_0x2628b7[_0x29e861(0xa9)]),_0x2db04a[_0x29e861(0x8f)],_0x393b20,_0x488a9b,!![]);})[a60_0x51d78f(0x9d)](a60_0x51d78f(0xe0),Constants[a60_0x51d78f(0xc6)][a60_0x51d78f(0x6e)],function(_0x2b8a80){const _0x3349a9=a60_0x51d78f,_0xc3502f={'WlLWj':'testcafe','DAgiU':function(_0x430e5c,_0x481aa8,_0x76f314,_0x2e691d,_0x5a3f1d,_0x2ef9db){return _0x430e5c(_0x481aa8,_0x76f314,_0x2e691d,_0x5a3f1d,_0x2ef9db);},'vFAZT':function(_0x9dfe3,_0x3b04eb){return _0x9dfe3(_0x3b04eb);},'bkpPw':_0x3349a9(0x112)},_0x524e66=process[_0x3349a9(0x8f)][_0x3349a9(0x93)](0x2),_0x55f956=new BrowserStackSetup(_0x2b8a80[_0x3349a9(0x8f)],_0xc3502f['WlLWj']);return _0xc3502f[_0x3349a9(0xd8)](captureError,_0xc3502f[_0x3349a9(0x11a)](require,_0xc3502f[_0x3349a9(0xc8)]),_0x2b8a80[_0x3349a9(0x8f)],_0x55f956,_0x524e66,!![]);})[a60_0x51d78f(0x9d)](a60_0x51d78f(0x114),a60_0x51d78f(0xd3),function(_0x264862){const _0x47f5af=a60_0x51d78f,_0x24b1a9={};_0x24b1a9[_0x47f5af(0xce)]=_0x47f5af(0x87),_0x24b1a9[_0x47f5af(0xe8)]=_0x47f5af(0x117),_0x24b1a9['oJRfG']=_0x47f5af(0x10f);const _0xaf82f6=_0x24b1a9;return _0x264862['help'](![])[_0x47f5af(0xf1)](_0xaf82f6['QpsCx'],{'alias':'h','type':_0xaf82f6[_0x47f5af(0xe8)],'describe':_0xaf82f6['oJRfG']})[_0x47f5af(0xc2)](![])[_0x47f5af(0xc1)](![]);},function(_0x2cc8f0){const _0x473cb8=a60_0x51d78f,_0x3b0382={'WpwSV':function(_0x205f96,_0x19207f,_0x5bb3f2){return _0x205f96(_0x19207f,_0x5bb3f2);},'qhFzE':function(_0x3ea0db,_0x59c44e){return _0x3ea0db(_0x59c44e);},'rhwKV':_0x473cb8(0xad)},_0x4b042d={};return _0x4b042d['argv']=_0x2cc8f0,_0x3b0382['WpwSV'](captureError,_0x3b0382[_0x473cb8(0xf6)](require,_0x3b0382[_0x473cb8(0xcc)]),_0x4b042d);})[a60_0x51d78f(0x9d)](a60_0x51d78f(0xb1),Constants[a60_0x51d78f(0xaa)][a60_0x51d78f(0x6e)],function(_0x403ff6){const _0x4d4555=a60_0x51d78f,_0x990f03={'XCqBN':_0x4d4555(0xb1),'ykznC':function(_0xa0e277,_0x1722c6,_0x208d44,_0x3f1c3e,_0x12cfad){return _0xa0e277(_0x1722c6,_0x208d44,_0x3f1c3e,_0x12cfad);},'brUdT':function(_0x69a7c6,_0x14ac8c){return _0x69a7c6(_0x14ac8c);},'kzQgm':_0x4d4555(0xdc)},_0x4abfaf=process[_0x4d4555(0x8f)][_0x4d4555(0x93)](0x2);helper[_0x4d4555(0x10b)](),helper[_0x4d4555(0x115)](),_0x403ff6[_0x4d4555(0xc2)](![]);const _0x153ad1=new BrowserStackSetup(_0x403ff6[_0x4d4555(0x8f)],_0x990f03[_0x4d4555(0x72)]);return _0x990f03[_0x4d4555(0xfe)](captureError,_0x990f03['brUdT'](require,_0x990f03['kzQgm']),_0x403ff6['argv'],_0x153ad1,_0x4abfaf);})['demandCommand'](0x1,a60_0x51d78f(0xfc))['wrap'](null)[a60_0x51d78f(0x8f)];function a60_0x4cbf(_0x35bf0f,_0x4e49d6){const _0x475679=a60_0x4756();return a60_0x4cbf=function(_0x4cbf24,_0x3bd6c8){_0x4cbf24=_0x4cbf24-0x6e;let _0x49533c=_0x475679[_0x4cbf24];return _0x49533c;},a60_0x4cbf(_0x35bf0f,_0x4e49d6);}!helper[a60_0x51d78f(0xa5)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a60_0x51d78f(0xd5)&&console['error'](a60_0x51d78f(0x10e));function a60_0x4756(){const _0x2cc4d2=['existsSync','TtZXD','./playwright/command','mocha','nightwatch','StImF','Running\x20SDK\x20with\x20args\x20','end','jest','setTestObservabilityDisable','5727HpeIno','util','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','Show\x20help','trim','../helpers/BrowserStackSetup','./testcafe/command','some','load\x20[subcommand]','setBrowserStackAutomationDisable','../helpers/helper','boolean','5492334jOiUAJ','integrations','vFAZT','INFO','MOCHA','INTEGRATIONS','--opts','XCqBN','SDK_SETUP','--require','mocha/lib/cli/cli.js','../helpers/performance/performance-tester','38379204UDwKgE','sendLogs','filter','../helpers/utilities','DEBUG_FILE','vFSFe','format','damqM','NzuUa','debug','start','vrkUS','getConfigPath','playwright','--config','homedir','help','push','mocha/lib/cli/commands.js','includes','info','VOHPQ','../helpers/logger','./nightwatch/command','argv','error','11LLoZnY','unlinkSync','slice','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','yargs','./utils/constants','findAndReplace','mcJRj','WDstP','usage:\x20$0\x20<command>\x20[args]','showHelpOnFail','vbbMI','command','KWVAn','CODECEPTJS','YzWJV','exitCode','./jasmine/command','../helpers/test-observability/constants','env','isUndefined','describe','.browserstack','xWyTj','pdMYi','NEWMAN','wcpfu','stack','./load/index','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','message','spawn','newman','--mochaRequire','JXHSD','mcNtk','assign','11670712USPMnX','JEST','PLAYWRIGHT','pw:channel','QoPEj','IUHVC','codeceptjs','XsPzy','map','hWzTf','handler','exitProcess','strict','./codeceptjs/command','kTXrk','UcQvy','TESTCAFE','./vanilla-js/command','bkpPw','pw:channel\x20auto-capture\x20seed\x20failed:\x20','--no-package','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','rhwKV','dot-notation','QpsCx','2oQaDOG','winstonLogger','rdmnQ','../helpers/performance/constants','Runs\x20the\x20binary\x20with\x20load\x20command','alias','ats','framework','1040skEdnq','DAgiU','7520800pwFmyb','VANILLA','node','./newman/command','disableAutoCaptureLogs','VERSION','cucumber-js','testcafe','2476jzvFMM','NIGHTWATCH','yGuSD','dLjix','508782foroXn','pJIWB','BROWSERSTACK_CONFIG_FILE_PATH','onebm','Parsing\x20command\x20line\x20arguments','CUCUMBER','rFFhn','26829iuUcip','XNqUh','jasmine','find','--package','option','parserConfiguration','LLLtB','--no-opts','NsDex','qhFzE','usage','config','AIpCn','7OmfoPI','qKsMY','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','./jest/command','ykznC','getPwChannelLogPath','pw:*','run'];a60_0x4756=function(){return _0x2cc4d2;};return a60_0x4756();}
package/src/bin/setup.js CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- const a60_0x2c2e74=a60_0x111f;(function(_0xa56e7a,_0x10f4db){const _0x1348ce=a60_0x111f,_0x5dd130=_0xa56e7a();while(!![]){try{const _0x4b7b06=-parseInt(_0x1348ce(0x1b2))/0x1*(parseInt(_0x1348ce(0x1ca))/0x2)+-parseInt(_0x1348ce(0x190))/0x3+parseInt(_0x1348ce(0x1a8))/0x4*(parseInt(_0x1348ce(0x1b8))/0x5)+-parseInt(_0x1348ce(0x1a2))/0x6*(parseInt(_0x1348ce(0x1a9))/0x7)+-parseInt(_0x1348ce(0x1c0))/0x8+parseInt(_0x1348ce(0x189))/0x9*(parseInt(_0x1348ce(0x1a6))/0xa)+parseInt(_0x1348ce(0x1c5))/0xb;if(_0x4b7b06===_0x10f4db)break;else _0x5dd130['push'](_0x5dd130['shift']());}catch(_0x674946){_0x5dd130['push'](_0x5dd130['shift']());}}}(a60_0x9fec,0x2a128));function a60_0x9fec(){const _0x4597b2=['node-setup','8948XFMlLM','21QMBgOr','mocha','join','postinstall','mNVJI','vGAWU','SDKSetup','LCceT','-browserstack','5178LhVJHJ','zkuPY','debug','writeFileSync','MMznP','cwd','335vYoEdS','winstonLogger','../helpers/utilities','bhivo','info','parse','FFIHJ','js-yaml','1740448eOUQJX','Teucp','nightwatch','fireFunnelTestEvent','browserstack-node-sdk\x20','5199920vEUpXE','scripts','load','/package.json','replace','4uwJhCx','yargs','WtarB','UJmEm','eckfD','entries','error','sCSzQ','stringify','isUndefined','165069aKqTRA','cucumber-js','Setup\x20completed','Adding\x20new\x20script(s)\x20in\x20package.json...','/../../browserstack.pw.yml.sample','browserstack-node-sdk','jest','681996cDZTHu','ndrak','indexOf','readFileSync','GUAhn','/../../browserstack.yml.sample','YOUR_USERNAME','key','Creating\x20configuration\x20file...','playwright','includes','push','vGWVX','/browserstack.yml','UKSoY','length','argv','splice','136782CMvtJp','DgAQo','codeceptjs','kXfAZ','40KYZYsZ'];a60_0x9fec=function(){return _0x4597b2;};return a60_0x9fec();}const fs=require('fs'),helper=require('../helpers/helper'),utilities=require(a60_0x2c2e74(0x1ba)),yaml=require(a60_0x2c2e74(0x1bf)),yargs=require(a60_0x2c2e74(0x180)),logger=require('../helpers/logger')[a60_0x2c2e74(0x1b9)],configFileTemplate=__dirname+a60_0x2c2e74(0x195),configFileTemplatePW=__dirname+a60_0x2c2e74(0x18d),configFile=process['cwd']()+a60_0x2c2e74(0x19d),packageFile=process[a60_0x2c2e74(0x1b7)]()+a60_0x2c2e74(0x1c8),frameworks=[a60_0x2c2e74(0x1aa),a60_0x2c2e74(0x18f),a60_0x2c2e74(0x18a),'node',a60_0x2c2e74(0x1c2),a60_0x2c2e74(0x1a4),a60_0x2c2e74(0x199)];let config;logger[a60_0x2c2e74(0x1bc)](a60_0x2c2e74(0x198)),createConfigurationFile(yargs['argv']['username'],yargs[a60_0x2c2e74(0x1a0)][a60_0x2c2e74(0x197)],yargs[a60_0x2c2e74(0x1a0)][a60_0x2c2e74(0x199)]);try{sdkSetup();}catch(a60_0x1ff1b9){logger[a60_0x2c2e74(0x1b4)]('Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20'+a60_0x1ff1b9);}function a60_0x111f(_0x2db2db,_0xe47436){const _0x9fec80=a60_0x9fec();return a60_0x111f=function(_0x111f3a,_0x23a46d){_0x111f3a=_0x111f3a-0x180;let _0x3b7fac=_0x9fec80[_0x111f3a];return _0x3b7fac;},a60_0x111f(_0x2db2db,_0xe47436);}addScriptInPackageJson();function createConfigurationFile(_0x5d9a02,_0x3806ea,_0x445e63=![]){const _0x255dfd=a60_0x2c2e74,_0x395766={};_0x395766[_0x255dfd(0x1ae)]='utf8',_0x395766['ndrak']=_0x255dfd(0x196),_0x395766[_0x255dfd(0x182)]='YOUR_ACCESS_KEY';const _0x19cb48=_0x395766;try{let _0x333263=fs[_0x255dfd(0x193)](_0x445e63?configFileTemplatePW:configFileTemplate,_0x19cb48['vGAWU']);_0x5d9a02&&(_0x333263=_0x333263[_0x255dfd(0x1c9)](_0x19cb48[_0x255dfd(0x191)],_0x5d9a02)),_0x3806ea&&(_0x333263=_0x333263['replace'](_0x19cb48[_0x255dfd(0x182)],_0x3806ea)),config=yaml[_0x255dfd(0x1c7)](_0x333263),fs[_0x255dfd(0x1b5)](configFile,_0x333263,_0x16b565=>{const _0x2ba8eb=_0x255dfd;_0x16b565&&logger[_0x2ba8eb(0x185)](_0x16b565);});}catch(_0x14f8f8){logger['error'](_0x14f8f8);}}function addPostInstallScript(_0xcaef34,_0x25dab0){const _0x24355f=a60_0x2c2e74,_0x1213c3={};_0x1213c3[_0x24355f(0x183)]=_0x24355f(0x1ac),_0x1213c3[_0x24355f(0x186)]='npm\x20update\x20browserstack-node-sdk',_0x1213c3[_0x24355f(0x1be)]='\x20&&\x20npm\x20update\x20browserstack-node-sdk';const _0x41dd32=_0x1213c3;let _0x2d198e=_0xcaef34[_0x41dd32['eckfD']];if(_0x2d198e&&_0x2d198e[_0x24355f(0x19a)](_0x41dd32[_0x24355f(0x186)]))return;!_0x2d198e?_0x2d198e=_0x41dd32[_0x24355f(0x186)]:_0x2d198e+=_0x41dd32[_0x24355f(0x1be)],_0x25dab0[_0x24355f(0x19b)]([_0x41dd32[_0x24355f(0x183)],_0x2d198e]);}function addScriptInPackageJson(){const _0x469512=a60_0x2c2e74,_0x5c8745={'UKSoY':'utf8','kXfAZ':function(_0x176fd0,_0x5a632f){return _0x176fd0<_0x5a632f;},'LCceT':function(_0x441a3b,_0x2f897b,_0x2dd85d){return _0x441a3b(_0x2f897b,_0x2dd85d);},'zkuPY':function(_0x404f8c,_0x4ef44c,_0x55a3d0){return _0x404f8c(_0x4ef44c,_0x55a3d0);},'WtarB':function(_0x35625a,_0x43fb83){return _0x35625a!==_0x43fb83;},'DgAQo':_0x469512(0x18c)},_0x2a4194=JSON[_0x469512(0x1bd)](fs[_0x469512(0x193)](packageFile,_0x5c8745[_0x469512(0x19e)])),_0x4446f9=[];for(let _0x3a94c5=0x0;_0x5c8745['kXfAZ'](_0x3a94c5,frameworks[_0x469512(0x19f)]);_0x3a94c5+=0x1){const _0x2f4406=_0x5c8745[_0x469512(0x1b0)](findScriptsWithFramework,_0x2a4194['scripts'],frameworks[_0x3a94c5]);for(let _0x13510e=0x0;_0x5c8745[_0x469512(0x1a5)](_0x13510e,_0x2f4406[_0x469512(0x19f)]);_0x13510e+=0x1){_0x4446f9[_0x469512(0x19b)](_0x5c8745['LCceT'](getUpdatedCommand,_0x2a4194['scripts'],_0x2f4406[_0x13510e]));}_0x5c8745[_0x469512(0x1b3)](addPostInstallScript,_0x2a4194['scripts'],_0x4446f9);}const _0x25aca0={..._0x2a4194['scripts']},_0x4adebe=_0x25aca0;for(let _0x3e50f8=0x0;_0x5c8745[_0x469512(0x1a5)](_0x3e50f8,_0x4446f9['length']);_0x3e50f8+=0x1){_0x4adebe[_0x4446f9[_0x3e50f8][0x0]]=_0x4446f9[_0x3e50f8][0x1];}_0x5c8745[_0x469512(0x181)](JSON['stringify'](_0x2a4194[_0x469512(0x1c6)]),JSON['stringify'](_0x4adebe))&&(logger[_0x469512(0x1bc)](_0x5c8745[_0x469512(0x1a3)]),_0x2a4194[_0x469512(0x1c6)]=_0x4adebe,fs[_0x469512(0x1b5)](packageFile,JSON[_0x469512(0x187)](_0x2a4194,null,0x2),_0x2e6633=>{const _0x5acda4=_0x469512;_0x2e6633&&logger[_0x5acda4(0x185)](_0x2e6633);}));};function findScriptsWithFramework(_0x569f10,_0x2ff4c0){const _0x590b36=a60_0x2c2e74,_0x4282de={};_0x4282de['iRoBR']=function(_0xf9f1a,_0x1e87cd){return _0xf9f1a<_0x1e87cd;},_0x4282de['mNVJI']=_0x590b36(0x18e);const _0xc236b=_0x4282de,_0x13c91d=[],_0x566321=Object[_0x590b36(0x184)](_0x569f10);for(let _0x5de2ab=0x0;_0xc236b['iRoBR'](_0x5de2ab,_0x566321[_0x590b36(0x19f)]);_0x5de2ab+=0x1){_0x566321[_0x5de2ab][0x1][_0x590b36(0x19a)](_0x2ff4c0)&&!_0x566321[_0x5de2ab][0x1][_0x590b36(0x19a)](_0xc236b[_0x590b36(0x1ad)])&&_0x13c91d[_0x590b36(0x19b)](_0x566321[_0x5de2ab][0x0]);}return _0x13c91d;}function getUpdatedCommand(_0x4f0926,_0x5a81c7){const _0x25af87=a60_0x2c2e74,_0x54992c={};_0x54992c[_0x25af87(0x1c1)]=function(_0x39dfd1,_0x3b22fb){return _0x39dfd1!==_0x3b22fb;},_0x54992c[_0x25af87(0x19c)]=_0x25af87(0x18e),_0x54992c[_0x25af87(0x1bb)]=function(_0x31dbe0,_0x665bd){return _0x31dbe0===_0x665bd;};const _0x5c0bf2=_0x54992c,_0x322e5b=_0x5a81c7+_0x25af87(0x1b1),_0x11902a=_0x4f0926[_0x5a81c7],_0x31f834=_0x11902a['split']('\x20');for(const _0x3bcf98 of frameworks){if(_0x5c0bf2['Teucp'](_0x31f834[_0x25af87(0x192)](_0x3bcf98),-0x1)){_0x31f834[_0x25af87(0x1a1)](_0x31f834[_0x25af87(0x192)](_0x3bcf98),0x0,_0x5c0bf2[_0x25af87(0x19c)]);break;}}let _0x34a140=_0x31f834[_0x25af87(0x1ab)]('\x20');return _0x5c0bf2['bhivo'](_0x34a140,_0x11902a)&&(_0x34a140=_0x25af87(0x1c4)+_0x11902a),[_0x322e5b,_0x34a140];}function sdkSetup(){const _0x3d5e01=a60_0x2c2e74,_0x1a1b59={};_0x1a1b59[_0x3d5e01(0x1b6)]=_0x3d5e01(0x1a7),_0x1a1b59['GUAhn']=_0x3d5e01(0x1af);const _0x44f604=_0x1a1b59;if(helper[_0x3d5e01(0x188)](config))return;config['source']=_0x44f604[_0x3d5e01(0x1b6)];try{utilities[_0x3d5e01(0x1c3)](_0x44f604[_0x3d5e01(0x194)],{},config,'');}catch(_0x2fbe7d){logger[_0x3d5e01(0x1b4)]('Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20'+_0x2fbe7d);}}logger[a60_0x2c2e74(0x1bc)](a60_0x2c2e74(0x18b));
3
+ const a61_0x2d3b36=a61_0x9385;(function(_0x1e269c,_0x5e8c9d){const _0x533666=a61_0x9385,_0x529c7f=_0x1e269c();while(!![]){try{const _0x4d2495=parseInt(_0x533666(0xdf))/0x1+parseInt(_0x533666(0xab))/0x2+parseInt(_0x533666(0xc0))/0x3+parseInt(_0x533666(0xaa))/0x4*(parseInt(_0x533666(0xd1))/0x5)+-parseInt(_0x533666(0xc8))/0x6*(parseInt(_0x533666(0xe2))/0x7)+-parseInt(_0x533666(0xe8))/0x8+parseInt(_0x533666(0xba))/0x9*(-parseInt(_0x533666(0xea))/0xa);if(_0x4d2495===_0x5e8c9d)break;else _0x529c7f['push'](_0x529c7f['shift']());}catch(_0x6ce50e){_0x529c7f['push'](_0x529c7f['shift']());}}}(a61_0x3eac,0x40dd0));const fs=require('fs'),helper=require(a61_0x2d3b36(0xbd)),utilities=require(a61_0x2d3b36(0xb7)),yaml=require(a61_0x2d3b36(0xb3)),yargs=require(a61_0x2d3b36(0xd5)),logger=require('../helpers/logger')[a61_0x2d3b36(0xc6)],configFileTemplate=__dirname+a61_0x2d3b36(0xd3),configFileTemplatePW=__dirname+a61_0x2d3b36(0xb9),configFile=process[a61_0x2d3b36(0xdd)]()+a61_0x2d3b36(0xac),packageFile=process['cwd']()+a61_0x2d3b36(0xd9),frameworks=[a61_0x2d3b36(0xe9),a61_0x2d3b36(0xe1),'cucumber-js','node','nightwatch',a61_0x2d3b36(0xe4),'playwright'];let config;logger[a61_0x2d3b36(0xd7)](a61_0x2d3b36(0xb4)),createConfigurationFile(yargs[a61_0x2d3b36(0xce)]['username'],yargs['argv'][a61_0x2d3b36(0xd4)],yargs[a61_0x2d3b36(0xce)]['playwright']);try{sdkSetup();}catch(a61_0x2933d4){logger['debug']('Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20'+a61_0x2933d4);}addScriptInPackageJson();function createConfigurationFile(_0x267a05,_0x258265,_0x423237=![]){const _0x46aeac=a61_0x2d3b36,_0x3022c5={};_0x3022c5[_0x46aeac(0xc5)]='utf8',_0x3022c5[_0x46aeac(0xd6)]='YOUR_USERNAME',_0x3022c5[_0x46aeac(0xc9)]='YOUR_ACCESS_KEY';const _0x328585=_0x3022c5;try{let _0x286588=fs['readFileSync'](_0x423237?configFileTemplatePW:configFileTemplate,_0x328585[_0x46aeac(0xc5)]);_0x267a05&&(_0x286588=_0x286588['replace'](_0x328585['ffFrs'],_0x267a05)),_0x258265&&(_0x286588=_0x286588['replace'](_0x328585[_0x46aeac(0xc9)],_0x258265)),config=yaml[_0x46aeac(0xb1)](_0x286588),fs['writeFileSync'](configFile,_0x286588,_0x2ae9d4=>{const _0x458269=_0x46aeac;_0x2ae9d4&&logger[_0x458269(0xd2)](_0x2ae9d4);});}catch(_0x48dbf2){logger['error'](_0x48dbf2);}}function addPostInstallScript(_0x311a22,_0x460d2f){const _0x1a06fe=a61_0x2d3b36,_0x2f5d8c={};_0x2f5d8c['dKDWk']=_0x1a06fe(0xbb),_0x2f5d8c[_0x1a06fe(0xeb)]=_0x1a06fe(0xed),_0x2f5d8c[_0x1a06fe(0xb6)]=_0x1a06fe(0xc2);const _0x42b1a2=_0x2f5d8c;let _0x3d4f22=_0x311a22[_0x42b1a2[_0x1a06fe(0xcf)]];if(_0x3d4f22&&_0x3d4f22[_0x1a06fe(0xe5)](_0x42b1a2['xXVAj']))return;!_0x3d4f22?_0x3d4f22=_0x42b1a2[_0x1a06fe(0xeb)]:_0x3d4f22+=_0x42b1a2['hZJib'],_0x460d2f[_0x1a06fe(0xa9)]([_0x42b1a2[_0x1a06fe(0xcf)],_0x3d4f22]);}function a61_0x9385(_0x59f98d,_0x1ea912){const _0x3eac25=a61_0x3eac();return a61_0x9385=function(_0x938576,_0x3c172f){_0x938576=_0x938576-0xa6;let _0x51070b=_0x3eac25[_0x938576];return _0x51070b;},a61_0x9385(_0x59f98d,_0x1ea912);}function addScriptInPackageJson(){const _0x30acc7=a61_0x2d3b36,_0x2c7d38={'XeToq':_0x30acc7(0xcd),'GWWNG':function(_0xa23a7f,_0x42aa8a){return _0xa23a7f<_0x42aa8a;},'kTHKZ':function(_0x498217,_0x32293f,_0xe77281){return _0x498217(_0x32293f,_0xe77281);},'RaSDh':function(_0x407527,_0x3609a5){return _0x407527!==_0x3609a5;},'yCeFT':_0x30acc7(0xb2)},_0x461ab9=JSON[_0x30acc7(0xad)](fs[_0x30acc7(0xbc)](packageFile,_0x2c7d38[_0x30acc7(0xe7)])),_0x3ee8c6=[];for(let _0x4cc241=0x0;_0x2c7d38[_0x30acc7(0xae)](_0x4cc241,frameworks[_0x30acc7(0xb8)]);_0x4cc241+=0x1){const _0x145489=_0x2c7d38[_0x30acc7(0xcb)](findScriptsWithFramework,_0x461ab9[_0x30acc7(0xda)],frameworks[_0x4cc241]);for(let _0x5ae39f=0x0;_0x2c7d38[_0x30acc7(0xae)](_0x5ae39f,_0x145489[_0x30acc7(0xb8)]);_0x5ae39f+=0x1){_0x3ee8c6[_0x30acc7(0xa9)](_0x2c7d38['kTHKZ'](getUpdatedCommand,_0x461ab9['scripts'],_0x145489[_0x5ae39f]));}_0x2c7d38['kTHKZ'](addPostInstallScript,_0x461ab9[_0x30acc7(0xda)],_0x3ee8c6);}const _0xa4ded6={..._0x461ab9[_0x30acc7(0xda)]},_0x1b2861=_0xa4ded6;for(let _0x232107=0x0;_0x2c7d38[_0x30acc7(0xae)](_0x232107,_0x3ee8c6[_0x30acc7(0xb8)]);_0x232107+=0x1){_0x1b2861[_0x3ee8c6[_0x232107][0x0]]=_0x3ee8c6[_0x232107][0x1];}_0x2c7d38[_0x30acc7(0xe6)](JSON['stringify'](_0x461ab9[_0x30acc7(0xda)]),JSON[_0x30acc7(0xdb)](_0x1b2861))&&(logger[_0x30acc7(0xd7)](_0x2c7d38['yCeFT']),_0x461ab9[_0x30acc7(0xda)]=_0x1b2861,fs['writeFileSync'](packageFile,JSON[_0x30acc7(0xdb)](_0x461ab9,null,0x2),_0x11d07c=>{const _0x2e0831=_0x30acc7;_0x11d07c&&logger[_0x2e0831(0xd2)](_0x11d07c);}));};function findScriptsWithFramework(_0xc1f435,_0x58b7a1){const _0x2325b5=a61_0x2d3b36,_0x5de606={};_0x5de606['PzrtD']=function(_0x23c2cc,_0x2d06ca){return _0x23c2cc<_0x2d06ca;},_0x5de606[_0x2325b5(0xd0)]=_0x2325b5(0xec);const _0x529322=_0x5de606,_0x372523=[],_0x14c44d=Object[_0x2325b5(0xca)](_0xc1f435);for(let _0x5407ad=0x0;_0x529322[_0x2325b5(0xa6)](_0x5407ad,_0x14c44d[_0x2325b5(0xb8)]);_0x5407ad+=0x1){_0x14c44d[_0x5407ad][0x1][_0x2325b5(0xe5)](_0x58b7a1)&&!_0x14c44d[_0x5407ad][0x1][_0x2325b5(0xe5)](_0x529322[_0x2325b5(0xd0)])&&_0x372523[_0x2325b5(0xa9)](_0x14c44d[_0x5407ad][0x0]);}return _0x372523;}function getUpdatedCommand(_0x2edaab,_0x3c3516){const _0x4d6c98=a61_0x2d3b36,_0x39e13a={};_0x39e13a['GrhPI']=function(_0x45495f,_0x5791a3){return _0x45495f!==_0x5791a3;},_0x39e13a[_0x4d6c98(0xc3)]=_0x4d6c98(0xec),_0x39e13a[_0x4d6c98(0xa8)]=function(_0x5b7c68,_0x5c488d){return _0x5b7c68===_0x5c488d;};const _0xa78910=_0x39e13a,_0x4b9201=_0x3c3516+_0x4d6c98(0xc7),_0x59ead6=_0x2edaab[_0x3c3516],_0x523a19=_0x59ead6[_0x4d6c98(0xd8)]('\x20');for(const _0x39990b of frameworks){if(_0xa78910[_0x4d6c98(0xe0)](_0x523a19[_0x4d6c98(0xbf)](_0x39990b),-0x1)){_0x523a19[_0x4d6c98(0xa7)](_0x523a19[_0x4d6c98(0xbf)](_0x39990b),0x0,_0xa78910[_0x4d6c98(0xc3)]);break;}}let _0x3ff7c4=_0x523a19[_0x4d6c98(0xb0)]('\x20');return _0xa78910['shUzv'](_0x3ff7c4,_0x59ead6)&&(_0x3ff7c4=_0x4d6c98(0xaf)+_0x59ead6),[_0x4b9201,_0x3ff7c4];}function sdkSetup(){const _0x42bef4=a61_0x2d3b36,_0x47abd5={};_0x47abd5[_0x42bef4(0xc1)]=_0x42bef4(0xdc),_0x47abd5['Vlqpn']=_0x42bef4(0xb5);const _0x1cc70d=_0x47abd5;if(helper[_0x42bef4(0xcc)](config))return;config[_0x42bef4(0xc4)]=_0x1cc70d[_0x42bef4(0xc1)];try{utilities['fireFunnelTestEvent'](_0x1cc70d['Vlqpn'],{},config,'');}catch(_0x3bee67){logger[_0x42bef4(0xbe)](_0x42bef4(0xde)+_0x3bee67);}}function a61_0x3eac(){const _0x67ed65=['split','/package.json','scripts','stringify','node-setup','cwd','Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','372618IKZRTa','GrhPI','jest','77CvFVRq','Setup\x20completed','codeceptjs','includes','RaSDh','XeToq','1151344JCJdIV','mocha','1330vTggrF','xXVAj','browserstack-node-sdk','npm\x20update\x20browserstack-node-sdk','PzrtD','splice','shUzv','push','12XXqxYH','271964aHHbPt','/browserstack.yml','parse','GWWNG','browserstack-node-sdk\x20','join','load','Adding\x20new\x20script(s)\x20in\x20package.json...','js-yaml','Creating\x20configuration\x20file...','SDKSetup','hZJib','../helpers/utilities','length','/../../browserstack.pw.yml.sample','63144fCRHac','postinstall','readFileSync','../helpers/helper','debug','indexOf','1352238kjGhOd','kUuvS','\x20&&\x20npm\x20update\x20browserstack-node-sdk','iNfNZ','source','RAuRA','winstonLogger','-browserstack','11958uWLvHh','nURJb','entries','kTHKZ','isUndefined','utf8','argv','dKDWk','fwfAt','675505LAUeFD','error','/../../browserstack.yml.sample','key','yargs','ffFrs','info'];a61_0x3eac=function(){return _0x67ed65;};return a61_0x3eac();}logger[a61_0x2d3b36(0xd7)](a61_0x2d3b36(0xe3));