browserstack-node-sdk 1.70.0 → 1.70.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) 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/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  42. package/src/bin/codeceptjs/command.js +1 -1
  43. package/src/bin/codeceptjs/helper.js +1 -1
  44. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  45. package/src/bin/cucumber-js/command.js +1 -1
  46. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  48. package/src/bin/cucumber-js/test-observability.js +1 -1
  49. package/src/bin/cucumber-js/test.setup.js +1 -1
  50. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  51. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  52. package/src/bin/detox/a11ySetup.js +1 -1
  53. package/src/bin/detox/command.js +1 -1
  54. package/src/bin/detox/modifyDetoxConf.js +1 -1
  55. package/src/bin/detox/traEmitter.js +1 -1
  56. package/src/bin/integrations/command.js +1 -1
  57. package/src/bin/integrations/constants.js +1 -1
  58. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
  59. package/src/bin/jasmine/command.js +1 -1
  60. package/src/bin/jasmine/test.setup.js +1 -1
  61. package/src/bin/jasmine/testRunMap.js +1 -1
  62. package/src/bin/jest/command.js +1 -1
  63. package/src/bin/jest/customImplements/customCircus.js +1 -1
  64. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  65. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  66. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  67. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  68. package/src/bin/jest/jest.setup.js +1 -1
  69. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  70. package/src/bin/jest/test-observability/helper.js +1 -1
  71. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  72. package/src/bin/jest/test-observability/test-details.js +1 -1
  73. package/src/bin/jest/test.setup.js +1 -1
  74. package/src/bin/jest/test_before.setup.js +1 -1
  75. package/src/bin/launcher/launcher.js +1 -1
  76. package/src/bin/load/index.js +1 -1
  77. package/src/bin/load/loadErrors.js +1 -1
  78. package/src/bin/load/loadUtils.js +1 -1
  79. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  80. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  81. package/src/bin/mocha/command.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/node-generic/client.js +1 -1
  91. package/src/bin/playwright/accessibility-helper.js +1 -1
  92. package/src/bin/playwright/command.js +1 -1
  93. package/src/bin/playwright/globalSetup.js +1 -1
  94. package/src/bin/playwright/mock-process.js +1 -1
  95. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  96. package/src/bin/playwright/patches.js +1 -1
  97. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  98. package/src/bin/playwright/reporter/reporter.js +1 -1
  99. package/src/bin/playwright/reporter/test-details.js +1 -1
  100. package/src/bin/playwright/reporterArgs.js +1 -1
  101. package/src/bin/playwright/sessionDetails.js +1 -1
  102. package/src/bin/puppeteer/patches.js +1 -1
  103. package/src/bin/puppeteer/sessionDetails.js +1 -1
  104. package/src/bin/puppeteer/test.setup.js +1 -1
  105. package/src/bin/runner.js +1 -1
  106. package/src/bin/setup.js +1 -1
  107. package/src/bin/test-runner/index.js +1 -1
  108. package/src/bin/test-runner/runTest.js +1 -1
  109. package/src/bin/test-runner/testWorker.js +1 -1
  110. package/src/bin/testcafe/a11y-runner.js +1 -1
  111. package/src/bin/testcafe/command.js +1 -1
  112. package/src/bin/testcafe/reporter/index.js +1 -1
  113. package/src/bin/testcafe/reporter/tcUtils.js +1 -1
  114. package/src/bin/testcafe/session-registry.js +1 -1
  115. package/src/bin/testcafe/stdout-interceptor.js +1 -1
  116. package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
  117. package/src/bin/testcafe/w3c-driver.js +1 -1
  118. package/src/bin/utils/apiUtilityMethods.js +1 -1
  119. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  120. package/src/bin/utils/constants.js +1 -1
  121. package/src/bin/utils/log4jsAppender.js +1 -1
  122. package/src/bin/utils/logPatcher.js +1 -1
  123. package/src/bin/utils/logReportingAPI.js +1 -1
  124. package/src/bin/utils/playwright-patcher.js +1 -1
  125. package/src/bin/utils/puppeteer-patcher.js +1 -1
  126. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  127. package/src/bin/utils/sharedUtils.js +1 -1
  128. package/src/bin/v2/TestInfo.js +1 -1
  129. package/src/bin/v2/browserstackCLI.js +1 -1
  130. package/src/bin/v2/cliUtils.js +1 -1
  131. package/src/bin/v2/customTagManager.js +1 -1
  132. package/src/bin/v2/eventDispatcher.js +1 -1
  133. package/src/bin/v2/framework/automationFramework.js +1 -1
  134. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  135. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  136. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  137. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  138. package/src/bin/v2/framework/mochaTestFramework.js +1 -1
  139. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  140. package/src/bin/v2/framework/nodeGenericTestFramework.js +1 -1
  141. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  142. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  143. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  144. package/src/bin/v2/framework/seleniumAutomationFramework.js +1 -1
  145. package/src/bin/v2/framework/testFramework.js +1 -1
  146. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  147. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  148. package/src/bin/v2/grpcClient.js +1 -1
  149. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  150. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  151. package/src/bin/v2/instances/trackedContext.js +1 -1
  152. package/src/bin/v2/instances/trackedInstance.js +1 -1
  153. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  154. package/src/bin/v2/modules/baseModule.js +1 -1
  155. package/src/bin/v2/modules/loadTestModule.js +1 -1
  156. package/src/bin/v2/modules/observabilityModule.js +1 -1
  157. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  158. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  159. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  160. package/src/bin/v2/modules/testhubModule.js +1 -1
  161. package/src/bin/v2/runStateStore.js +1 -1
  162. package/src/bin/v2/sdkErrorHandler.js +1 -1
  163. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  164. package/src/bin/v2/state/hookState.js +1 -1
  165. package/src/bin/v2/state/testFrameworkState.js +1 -1
  166. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  167. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  168. package/src/bin/v2/utils/jest-utils.js +1 -1
  169. package/src/bin/vanilla-js/command.js +1 -1
  170. package/src/browserStackSdk.js +1 -1
  171. package/src/helpers/BrowserStackSetup.js +1 -1
  172. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  173. package/src/helpers/accessibility-automation/constants.js +1 -1
  174. package/src/helpers/accessibility-automation/helper.js +1 -1
  175. package/src/helpers/accessibility-automation/scripts.js +1 -1
  176. package/src/helpers/ats/constants.js +1 -1
  177. package/src/helpers/ats/helper.js +1 -1
  178. package/src/helpers/caCertHelper.js +1 -1
  179. package/src/helpers/capsMapping.js +1 -1
  180. package/src/helpers/central-scanner/constants.js +1 -1
  181. package/src/helpers/central-scanner/helpers.js +1 -1
  182. package/src/helpers/classLogger.js +1 -1
  183. package/src/helpers/driverInitErrorReporter.js +1 -1
  184. package/src/helpers/globals.js +1 -1
  185. package/src/helpers/helper.js +1 -1
  186. package/src/helpers/logger.js +1 -1
  187. package/src/helpers/metadata.js +1 -1
  188. package/src/helpers/patchHelper.js +1 -1
  189. package/src/helpers/patchHelpers.js +1 -1
  190. package/src/helpers/percy/Percy.js +1 -1
  191. package/src/helpers/percy/PercyBinary.js +1 -1
  192. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  193. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  194. package/src/helpers/percy/PercySDK.js +1 -1
  195. package/src/helpers/percy/index.js +1 -1
  196. package/src/helpers/percy/utils.js +1 -1
  197. package/src/helpers/performance/constants.js +1 -1
  198. package/src/helpers/performance/performance-tester.js +1 -1
  199. package/src/helpers/playwright-helper.js +1 -1
  200. package/src/helpers/processHelper.js +1 -1
  201. package/src/helpers/puppeteer-helper.js +1 -1
  202. package/src/helpers/request-spy.js +1 -1
  203. package/src/helpers/setKeepAlive.js +1 -1
  204. package/src/helpers/stackFrameUtils.js +1 -1
  205. package/src/helpers/test-observability/constants.js +1 -1
  206. package/src/helpers/test-observability/error-handler.js +1 -1
  207. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  208. package/src/helpers/test-observability/sessionHandler.js +1 -1
  209. package/src/helpers/test-observability/utils.js +1 -1
  210. package/src/helpers/test-orchestration/constants.js +1 -1
  211. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  212. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  213. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  214. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  215. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  216. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  217. package/src/helpers/testhub/constants.js +1 -1
  218. package/src/helpers/testhub/testhubHandler.js +1 -1
  219. package/src/helpers/testhub/utils.js +1 -1
  220. package/src/helpers/utilities.js +1 -1
  221. package/src/helpers/w3cMapping.js +1 -1
  222. package/src/hubAllocationMethods.js +1 -1
  223. package/src/index.js +1 -1
@@ -1 +1 @@
1
- 'use strict';const a46_0x561bc4=a46_0x144e;(function(_0x7c582d,_0xba2c75){const _0x489e03=a46_0x144e,_0x3e5f7d=_0x7c582d();while(!![]){try{const _0x29d747=-parseInt(_0x489e03(0x1b3))/0x1+parseInt(_0x489e03(0x223))/0x2+-parseInt(_0x489e03(0x1d0))/0x3*(parseInt(_0x489e03(0x1a9))/0x4)+parseInt(_0x489e03(0x25a))/0x5*(-parseInt(_0x489e03(0x22d))/0x6)+-parseInt(_0x489e03(0x198))/0x7*(-parseInt(_0x489e03(0x182))/0x8)+-parseInt(_0x489e03(0x163))/0x9*(-parseInt(_0x489e03(0x1e8))/0xa)+-parseInt(_0x489e03(0x255))/0xb*(-parseInt(_0x489e03(0x19b))/0xc);if(_0x29d747===_0xba2c75)break;else _0x3e5f7d['push'](_0x3e5f7d['shift']());}catch(_0x1cf17f){_0x3e5f7d['push'](_0x3e5f7d['shift']());}}}(a46_0x4f37,0x31ccb));const path=require(a46_0x561bc4(0x196)),{v4:uuidv4}=require('uuid'),SessionHandler=require('../../../helpers/test-observability/sessionHandler'),{debug}=require(a46_0x561bc4(0x208)),logger=require(a46_0x561bc4(0x1a4))[a46_0x561bc4(0x194)],BrowserstackCLI=require(a46_0x561bc4(0x20d)),GrpcClient=require(a46_0x561bc4(0x1cf)),TestFrameworkState=require(a46_0x561bc4(0x19c)),HookState=require('../../v2/state/hookState'),LOG_LEVELS=[a46_0x561bc4(0x1e6),'WARN',a46_0x561bc4(0x244),a46_0x561bc4(0x21b),a46_0x561bc4(0x235)];function isCLIRunning(){const _0x34199d=a46_0x561bc4;try{return BrowserstackCLI[_0x34199d(0x241)]()[_0x34199d(0x215)]();}catch(_0x2a8a3a){return![];}}function getParentTitles(_0xf03125){const _0x4bc8da=a46_0x561bc4,_0x18fecc={'EKZqC':function(_0x3d659d,_0x26cea9){return _0x3d659d(_0x26cea9);},'rHWeo':function(_0x21cc87,_0x5e6cbd){return _0x21cc87(_0x5e6cbd);}},_0x14b96a=[],_0x52ffe2=_0xf03125[_0x4bc8da(0x188)]();return _0x52ffe2&&_0x14b96a[_0x4bc8da(0x195)][_0x4bc8da(0x206)](_0x14b96a,_0x18fecc[_0x4bc8da(0x159)](getParentTitles,_0x52ffe2)),_0xf03125['name']&&_0x14b96a[_0x4bc8da(0x195)](_0x18fecc['rHWeo'](String,_0xf03125[_0x4bc8da(0x1fd)])),_0x14b96a;}function normalizeLogLevel(_0x4ece70){const _0x178150=a46_0x561bc4,_0x53c9c0={};_0x53c9c0[_0x178150(0x172)]=_0x178150(0x1e6),_0x53c9c0['QlnPl']=function(_0x4eb35f,_0x26d9f3){return _0x4eb35f!==_0x26d9f3;};const _0x55c3f7=_0x53c9c0;if(!_0x4ece70)return _0x55c3f7['uDLlW'];const _0x2b03ba=_0x4ece70['toUpperCase']();return _0x55c3f7['QlnPl'](LOG_LEVELS[_0x178150(0x24f)](_0x2b03ba),-0x1)?_0x2b03ba:_0x55c3f7[_0x178150(0x172)];}function resolveCollectionFile(_0x2f95ba,_0x49abde){const _0x128fa7=a46_0x561bc4,_0x3ad918={};_0x3ad918['jNUBJ']=function(_0x531dea,_0x2510a8){return _0x531dea===_0x2510a8;},_0x3ad918[_0x128fa7(0x222)]=_0x128fa7(0x225),_0x3ad918['uyBJK']='run',_0x3ad918[_0x128fa7(0x217)]=function(_0x36b80f,_0x56aacb){return _0x36b80f!==_0x56aacb;},_0x3ad918[_0x128fa7(0x1d2)]=function(_0x51c89b,_0x34ac42){return _0x51c89b<_0x34ac42;},_0x3ad918['QiGAT']=function(_0x2c486e,_0x2f996b){return _0x2c486e+_0x2f996b;},_0x3ad918['oOVKX']=function(_0x24c191,_0x29e8fc){return _0x24c191+_0x29e8fc;},_0x3ad918[_0x128fa7(0x21d)]=_0x128fa7(0x254),_0x3ad918['cSlNH']=_0x128fa7(0x19d);const _0x13b9a9=_0x3ad918;try{if(_0x49abde&&_0x49abde[_0x128fa7(0x183)])return path[_0x128fa7(0x17c)](process['cwd'](),path['resolve'](_0x49abde[_0x128fa7(0x183)]));const _0x1c6e0e=_0x2f95ba[_0x128fa7(0x233)];if(_0x13b9a9[_0x128fa7(0x249)](typeof _0x1c6e0e,_0x13b9a9[_0x128fa7(0x222)]))return path[_0x128fa7(0x17c)](process[_0x128fa7(0x22c)](),path[_0x128fa7(0x19e)](_0x1c6e0e));const _0x51083a=process['argv']['indexOf'](_0x13b9a9[_0x128fa7(0x24e)]);if(_0x13b9a9[_0x128fa7(0x217)](_0x51083a,-0x1)&&_0x13b9a9[_0x128fa7(0x1d2)](_0x13b9a9['QiGAT'](_0x51083a,0x1),process['argv']['length'])){const _0x53b1b3=process[_0x128fa7(0x203)][_0x13b9a9[_0x128fa7(0x240)](_0x51083a,0x1)];if(_0x53b1b3&&!_0x53b1b3[_0x128fa7(0x1f8)]('-'))return path[_0x128fa7(0x17c)](process[_0x128fa7(0x22c)](),path[_0x128fa7(0x19e)](_0x53b1b3));}}catch(_0x30ea6b){}return logger[_0x128fa7(0x162)](_0x13b9a9[_0x128fa7(0x21d)]),_0x13b9a9[_0x128fa7(0x1f7)];}function resolveCollectionName(_0x285d40){const _0x33d96b=a46_0x561bc4,_0x472992={};_0x472992[_0x33d96b(0x1fa)]=function(_0x11a478,_0x29e54f){return _0x11a478===_0x29e54f;},_0x472992[_0x33d96b(0x212)]=_0x33d96b(0x187);const _0x54dee4=_0x472992;try{const _0x117a27=_0x285d40[_0x33d96b(0x233)];if(_0x117a27&&_0x54dee4[_0x33d96b(0x1fa)](typeof _0x117a27,_0x54dee4[_0x33d96b(0x212)]))return _0x117a27['name']||_0x117a27[_0x33d96b(0x162)]&&_0x117a27['info'][_0x33d96b(0x1fd)]||null;}catch(_0x34772a){}return null;}function a46_0x144e(_0x58c7c8,_0x46fd3e){const _0x4f379c=a46_0x4f37();return a46_0x144e=function(_0x144e8b,_0x4e5fb0){_0x144e8b=_0x144e8b-0x158;let _0x1f6fc5=_0x4f379c[_0x144e8b];return _0x1f6fc5;},a46_0x144e(_0x58c7c8,_0x46fd3e);}function emitTest(_0x1e79ce,_0x565230,_0x50812c,_0x4f7f8a,_0x3f8c3d){const _0x6742ab=a46_0x561bc4,_0x4ae08a={'PCvBv':function(_0x19834c){return _0x19834c();},'PremZ':_0x6742ab(0x199),'rIWhQ':function(_0x4ee3e4,_0x3ea671){return _0x4ee3e4(_0x3ea671);},'UoSZt':_0x6742ab(0x1aa),'jgXTB':_0x6742ab(0x23c),'upYXM':function(_0x2c1c69,_0xb47da5){return _0x2c1c69!=_0xb47da5;},'eIxQh':function(_0x3fe70e,_0x965302){return _0x3fe70e===_0x965302;},'jteDP':_0x6742ab(0x20e),'qlgpS':'TestRunFinished'};if(_0x4ae08a['PCvBv'](isCLIRunning))try{const _0x2d1e95=BrowserstackCLI[_0x6742ab(0x241)]()[_0x6742ab(0x251)]();if(!_0x2d1e95)return;_0x2d1e95[_0x6742ab(0x1de)](TestFrameworkState[_0x6742ab(0x158)],_0x1e79ce,{'test':{'uuid':_0x565230[_0x6742ab(0x1fb)],'name':_0x565230['name'],'scopes':_0x50812c[_0x6742ab(0x228)],'scope':_0x50812c['scopes']['join']('\x20'),'file_path':_0x4f7f8a,'location':_0x50812c[_0x6742ab(0x237)],'started_at':_0x50812c[_0x6742ab(0x207)],'finished_at':_0x3f8c3d['finishedAt']||null,'result':_0x3f8c3d[_0x6742ab(0x165)]||_0x4ae08a['PremZ'],'failure':_0x3f8c3d[_0x6742ab(0x185)]||[],'failure_type':_0x3f8c3d[_0x6742ab(0x20b)]||null,'failure_reason':_0x3f8c3d[_0x6742ab(0x1ba)]||null,'tags':[],'meta':{},'custom_metadata':{}}});}catch(_0x9926d7){_0x4ae08a[_0x6742ab(0x230)](debug,_0x6742ab(0x1d1)+_0x9926d7);}else{const _0x12133d={'uuid':_0x565230[_0x6742ab(0x1fb)],'name':_0x565230[_0x6742ab(0x1fd)],'framework':_0x4ae08a[_0x6742ab(0x24c)],'body':{'lang':_0x4ae08a['jgXTB'],'code':null},'scope':_0x50812c['scopes'][_0x6742ab(0x1d8)]('\x20'),'scopes':_0x50812c[_0x6742ab(0x228)],'identifier':_0x565230[_0x6742ab(0x16e)],'file_name':_0x50812c[_0x6742ab(0x237)],'vc_filepath':_0x50812c['location'],'location':_0x50812c[_0x6742ab(0x1c1)],'started_at':_0x50812c[_0x6742ab(0x207)],'finished_at':_0x3f8c3d[_0x6742ab(0x1c6)]||null,'duration_in_ms':_0x4ae08a[_0x6742ab(0x252)](_0x3f8c3d[_0x6742ab(0x180)],null)?Math[_0x6742ab(0x21f)](0x0,_0x3f8c3d['durationMs']):null,'result':_0x3f8c3d[_0x6742ab(0x165)]||_0x4ae08a[_0x6742ab(0x164)],'failure_reason':_0x3f8c3d[_0x6742ab(0x1ba)]||null,'failure_type':_0x3f8c3d[_0x6742ab(0x20b)]||null,'failure':_0x3f8c3d[_0x6742ab(0x185)]||[],'retry_of':null,'hooks':[]};_0x12133d['failure'][0x0]&&(_0x12133d[_0x6742ab(0x245)]=_0x12133d[_0x6742ab(0x185)][0x0]['backtrace'],_0x12133d[_0x6742ab(0x15c)]=_0x12133d[_0x6742ab(0x185)][0x0]['expanded']);const _0x3dbb0e=_0x4ae08a[_0x6742ab(0x242)](_0x1e79ce,HookState[_0x6742ab(0x1f5)])?_0x4ae08a[_0x6742ab(0x226)]:_0x4ae08a[_0x6742ab(0x175)],_0x1ab73d={};_0x1ab73d[_0x6742ab(0x20c)]=_0x3dbb0e,_0x1ab73d['test_run']=_0x12133d,SessionHandler[_0x6742ab(0x1d7)](_0x1ab73d);}}function emitLog(_0x535896,_0x450950){const _0x4b9d58=a46_0x561bc4,_0x13fdc7={'NIUnq':_0x4b9d58(0x209),'SjWhU':function(_0x22b1a8){return _0x22b1a8();},'Seecs':function(_0x1a1daa,_0x1d87ae){return _0x1a1daa===_0x1d87ae;},'CcUAf':_0x4b9d58(0x19f),'AHeVX':_0x4b9d58(0x1aa),'Kehpo':_0x4b9d58(0x158),'QRdly':_0x4b9d58(0x1e6),'jcobB':function(_0x195f02,_0x66e1b0){return _0x195f02(_0x66e1b0);},'CNyhr':function(_0x3b8cbd,_0xb2c3a8){return _0x3b8cbd+_0xb2c3a8;},'jKFXk':'[Newman\x20Reporter]\x20emitLog\x20error:\x20','nyYWn':_0x4b9d58(0x1f9)},_0x28fc36=_0x450950[_0x4b9d58(0x1ad)]||_0x13fdc7[_0x4b9d58(0x250)],_0x2ee874=_0x450950[_0x4b9d58(0x18d)]||new Date()[_0x4b9d58(0x1d6)]();if(_0x13fdc7[_0x4b9d58(0x216)](isCLIRunning))try{const _0x2eff91=_0x13fdc7[_0x4b9d58(0x239)](_0x28fc36,_0x13fdc7[_0x4b9d58(0x1b6)])?JSON['stringify'](_0x450950):_0x450950['message']||'',_0x39d2eb={};_0x39d2eb['platformIndex']=0x0,_0x39d2eb[_0x4b9d58(0x20f)]=_0x13fdc7[_0x4b9d58(0x160)],_0x39d2eb[_0x4b9d58(0x193)]='',_0x39d2eb[_0x4b9d58(0x1e9)]=_0x13fdc7['Kehpo'],_0x39d2eb[_0x4b9d58(0x231)]=[{'uuid':_0x535896,'timestamp':_0x2ee874,'kind':_0x28fc36,'level':_0x450950[_0x4b9d58(0x1f2)]||_0x13fdc7[_0x4b9d58(0x1c0)],'message':_0x2eff91}],GrpcClient[_0x4b9d58(0x241)]()[_0x4b9d58(0x1b7)](_0x39d2eb);}catch(_0x1cb495){_0x13fdc7[_0x4b9d58(0x1f1)](debug,_0x13fdc7[_0x4b9d58(0x1b1)](_0x13fdc7[_0x4b9d58(0x1b9)],_0x1cb495));}else{const _0x1d0117={};_0x1d0117[_0x4b9d58(0x21e)]=_0x535896,_0x1d0117[_0x4b9d58(0x18d)]=_0x2ee874,_0x1d0117[_0x4b9d58(0x1f2)]=_0x450950[_0x4b9d58(0x1f2)]||null,_0x1d0117[_0x4b9d58(0x1ef)]=_0x450950[_0x4b9d58(0x1ef)]||null,_0x1d0117['kind']=_0x28fc36,_0x1d0117[_0x4b9d58(0x168)]=_0x450950[_0x4b9d58(0x168)]||{};const _0x47ce70={};_0x47ce70[_0x4b9d58(0x20c)]=_0x13fdc7[_0x4b9d58(0x23a)],_0x47ce70['logs']=[_0x1d0117],SessionHandler[_0x4b9d58(0x1d7)](_0x47ce70);}}function a46_0x4f37(){const _0x15856e=['IRycU','httpLog','iteration','cDtAJ','message','listen','jcobB','level','ggovb','pathname','PRE','split','cSlNH','startsWith','LogCreated','KgNKs','uuid','lastResponseCode','name','BTALi','includes','fbpfH','\x20—\x20response\x20status\x20in\x20failure\x20range','HTTP\x20','argv','beforeItem','status_code','apply','startedAt','../../../helpers/test-observability/utils','TEST_LOG','cursor','failureType','event_type','../../v2/browserstackCLI','TestRunStarted','testFrameworkName','SAVzz','umnec','bqiVF','No\x20HTTP\x20response\x20received','UDapW','isRunning','SjWhU','HpKWi','VUZDG','messages','bufferedLogs','DEBUG','FelKo','uecQT','test_run_uuid','max','[Newman\x20Reporter]\x20Error\x20in\x20exception:\x20','potya','AxXvc','692824kkiLxt','http://','string','jteDP','response','scopes','NRtie','UjJtk','[Newman\x20Reporter]\x20Error\x20in\x20assertion:\x20','cwd','1948770YNBWmC','assertion','KaWxd','rIWhQ','logs','get','collection','WqBDK','TRACE','length','collectionName','dnIzi','Seecs','nyYWn','concat','javascript','set','NbISh','wNCox','oOVKX','getInstance','eIxQh','UnhandledError','ERROR','failure_backtrace','THFcp','ZWjeJ','BpskZ','jNUBJ','tFGjZ','slice','UoSZt','ref','uyBJK','indexOf','NIUnq','getTestFramework','upYXM','FtXnI','[Newman\x20Reporter]\x20Could\x20not\x20resolve\x20collection\x20file\x20path,\x20falling\x20back\x20to\x20collection.json','1396505xaoUcx','console','request','WcGDZ','ZVUMw','5THQBZs','TEST','EKZqC','SWWWp','GbQCT','failure_reason_expanded','[Newman\x20Reporter]\x20Error\x20in\x20console:\x20','POST','script','AHeVX','stack','info','87957MnniZy','PremZ','result','ms)','N/A','http_response','PiKum','sVvoH','KDhgN','\x20(no\x20assertions)','Script\x20error\x20(','identifier','IbnTk','GET','forEach','uDLlW','JbksK','mcEyR','qlgpS','ZRaDX','execution','NEwju','clear','QRMqr','lMYXM','relative','OEHDr','event','gHSTL','durationMs','kuXHC','64VQCXzX','collectionPath','assertions','failure','TUKHD','object','parent','getTime','iwggZ','gPVnT','[Newman\x20Reporter]\x20Error\x20in\x20bs:addLog\x20handler:\x20','timestamp','NYudS','hDQoU','ZBYFU','ZvdnV','KmQkm','testFrameworkVersion','winstonLogger','push','path','NKRwr','266098TSZQAv','pending','exports','12fObuZj','../../v2/state/testFrameworkState','collection.json','resolve','HTTP','BTkLZ','[Newman\x20Reporter]\x20Error\x20in\x20script:\x20','XJfoR','fbwFW','../../../helpers/logger','rTUyO','vDvPX','method','UYHfc','2008bBMWor','newman','grnoi','\x20->\x20','kind','assert','WZtSJ','ObOti','CNyhr','hdRpL','240332lJosze','code','ZEFTw','CcUAf','logCreatedEvent','startTimestamp','jKFXk','failureReason','itemName','Xpnwy','PByPR','):\x20','unknown','QRdly','location','iLoFs','XBeSp','Exception:\x20','DfCPB','finishedAt','[Newman\x20Reporter]\x20Error\x20in\x20request:\x20','AGdTe','UrtgR','toString','xIrYK','hostname','uDNhv','yimEs','../../v2/grpcClient','2211TEPCTB','[Newman\x20Reporter]\x20emitTest\x20error:\x20','DSaSU','HjDHg','VbLNK','url','toISOString','uploadEventData','join','failed','error','PRDjP','yvQbw','duration_ms','trackEvent','item','nKViI','done','delete','err','host','Assertion\x20','INFO','removeListener','370hMOqTb','testFrameworkState','AqHar'];a46_0x4f37=function(){return _0x15856e;};return a46_0x4f37();}function BrowserStackNewmanReporter(_0x238d15,_0x151c1a,_0x34ed8a){const _0x1c745f=a46_0x561bc4,_0xf75815={'rTUyO':function(_0x5a80e6,_0x182281,_0xae0898){return _0x5a80e6(_0x182281,_0xae0898);},'iLoFs':function(_0x1061bc,_0x17a1a2){return _0x1061bc(_0x17a1a2);},'WZtSJ':function(_0x1fd2d2,_0xdc2284){return _0x1fd2d2(_0xdc2284);},'XJfoR':function(_0x2344d2,_0x3bbe5a){return _0x2344d2>_0x3bbe5a;},'rTOvA':function(_0x11e1da,_0x175706){return _0x11e1da(_0x175706);},'XtFUA':'http','wNCox':function(_0x11a0d2,_0x1a9d11){return _0x11a0d2+_0x1a9d11;},'NYudS':_0x1c745f(0x170),'PByPR':_0x1c745f(0x209),'iwggZ':function(_0x1b7d70){return _0x1b7d70();},'BTALi':function(_0x31620f,_0x5aa04b){return _0x31620f||_0x5aa04b;},'ObOti':function(_0x2ed8c7,_0x15a3af,_0x57f48b,_0x29bdd9,_0x4ed9b7,_0x17f53a){return _0x2ed8c7(_0x15a3af,_0x57f48b,_0x29bdd9,_0x4ed9b7,_0x17f53a);},'lMYXM':function(_0x511ce2,_0x5e8462){return _0x511ce2===_0x5e8462;},'UDapW':function(_0x9be957,_0x90151d,_0x51cead){return _0x9be957(_0x90151d,_0x51cead);},'VXUiF':'HTTP','XBeSp':function(_0x23f59b,_0x19c466){return _0x23f59b+_0x19c466;},'hdRpL':function(_0x545bd6,_0x281e3b){return _0x545bd6+_0x281e3b;},'KDhgN':function(_0x30e4f8,_0x5e8d28){return _0x30e4f8+_0x5e8d28;},'SWWWp':function(_0x616d6b,_0x5dde1f){return _0x616d6b+_0x5dde1f;},'potya':function(_0xee27e5,_0x2b357d){return _0xee27e5+_0x2b357d;},'OEHDr':function(_0x280e81,_0x783e4f){return _0x280e81+_0x783e4f;},'JbksK':_0x1c745f(0x1ac),'BTkLZ':_0x1c745f(0x166),'HjDHg':function(_0x9f9c14,_0x13917d,_0x20ca70){return _0x9f9c14(_0x13917d,_0x20ca70);},'fbpfH':_0x1c745f(0x1e6),'yvQbw':function(_0x5ce035,_0x475d51){return _0x5ce035(_0x475d51);},'fbwFW':function(_0x16fec1,_0x1a879d){return _0x16fec1-_0x1a879d;},'nKViI':function(_0x248249,_0x3037a2,_0x540270){return _0x248249(_0x3037a2,_0x540270);},'NbISh':function(_0x474223,_0x18f8af){return _0x474223(_0x18f8af);},'KmQkm':function(_0x4f468e,_0x55e512){return _0x4f468e(_0x55e512);},'BpskZ':function(_0x4bb721,_0x1a6ddb){return _0x4bb721&&_0x1a6ddb;},'VUZDG':function(_0x44453a,_0x1982f1){return _0x44453a>_0x1982f1;},'AqHar':function(_0x185f40,_0x5ae750){return _0x185f40-_0x5ae750;},'mcEyR':function(_0x57fdb5,_0x1f6e4d){return _0x57fdb5+_0x1f6e4d;},'UYHfc':_0x1c745f(0x1c4),'sVvoH':_0x1c745f(0x244),'TUKHD':function(_0x2e3145,_0x4536e9){return _0x2e3145(_0x4536e9);},'UrtgR':_0x1c745f(0x220),'FelKo':function(_0x473d1e,_0x5bfb97){return _0x473d1e>_0x5bfb97;},'DuBuS':function(_0x34ebda,_0x13e407){return _0x34ebda-_0x13e407;},'ZvdnV':_0x1c745f(0x1bf),'zTkNo':function(_0xb55501,_0x44ea04){return _0xb55501+_0x44ea04;},'vDvPX':function(_0x13fe3a,_0x5e9dac){return _0x13fe3a+_0x5e9dac;},'yimEs':function(_0x1fef4c,_0x7b3dd4){return _0x1fef4c+_0x7b3dd4;},'WqBDK':_0x1c745f(0x16d),'FtXnI':_0x1c745f(0x1be),'umnec':_0x1c745f(0x1a1),'ZRaDX':_0x1c745f(0x1d9),'ZBYFU':'passed','TEzCl':'AssertionError','hLXIt':_0x1c745f(0x1ae),'KaWxd':_0x1c745f(0x243),'DfCPB':function(_0x5340ba,_0x2faacd,_0xf628c2,_0x46f2ff,_0x5594e5,_0xcd0162){return _0x5340ba(_0x2faacd,_0xf628c2,_0x46f2ff,_0x5594e5,_0xcd0162);},'IRycU':function(_0x1cdc4d,_0x1504a4,_0xd2058f){return _0x1cdc4d(_0x1504a4,_0xd2058f);},'xZZlS':function(_0x3cbac6){return _0x3cbac6();},'UjJtk':function(_0x4a8ede,_0x3cf120){return _0x4a8ede!=_0x3cf120;},'ZVUMw':function(_0x8241cb,_0x400579){return _0x8241cb>=_0x400579;},'GbQCT':function(_0x983e88,_0x147143){return _0x983e88<_0x147143;},'Xpnwy':function(_0x39e35b,_0x579221){return _0x39e35b||_0x579221;},'ZEFTw':_0x1c745f(0x167),'WcGDZ':function(_0x240943,_0x6aa691){return _0x240943!=_0x6aa691;},'hDQoU':_0x1c745f(0x213),'kuXHC':function(_0x32c1d0,_0x56b909,_0x2de562,_0xf5f084,_0x57eb03,_0x32b74a){return _0x32c1d0(_0x56b909,_0x2de562,_0xf5f084,_0x57eb03,_0x32b74a);},'gHSTL':function(_0x132c38,_0x3e5a69){return _0x132c38+_0x3e5a69;},'koYmH':function(_0xc2b961,_0x495a68){return _0xc2b961+_0x495a68;},'VHeFI':function(_0x4e1656,_0x54fcd5){return _0x4e1656+_0x54fcd5;},'HCaBx':function(_0xa0b4dc,_0x395486){return _0xa0b4dc+_0x395486;},'tFGjZ':function(_0x39e11a,_0x27ac40,_0x1e1409){return _0x39e11a(_0x27ac40,_0x1e1409);},'wLuXX':function(_0x2da2da,_0x1b69ec){return _0x2da2da+_0x1b69ec;},'gkuJp':'HTTP\x20Status:\x20','ggovb':function(_0x571a8f,_0x38d9f0){return _0x571a8f||_0x38d9f0;},'PiKum':_0x1c745f(0x16c),'dnIzi':function(_0x865112,_0x2b481e,_0x4cf427){return _0x865112(_0x2b481e,_0x4cf427);},'uDNhv':function(_0xe97137,_0x23c93e){return _0xe97137(_0x23c93e);},'grnoi':_0x1c745f(0x1e1),'OtzfB':'beforeIteration','NRtie':_0x1c745f(0x204),'THFcp':'request','IbnTk':_0x1c745f(0x22e),'QRMqr':_0x1c745f(0x256),'ZgOUh':'exception','KgcpE':_0x1c745f(0x15f),'ZWjeJ':'item'},_0x1342db=new Map();let _0x460420=null,_0x59fe37=0x0;const _0x5c9179=_0xf75815[_0x1c745f(0x238)](resolveCollectionFile,_0x34ed8a,_0x151c1a),_0x4849fc=_0xf75815[_0x1c745f(0x1cd)](resolveCollectionName,_0x34ed8a)||_0x5c9179,_0x217d0e=path[_0x1c745f(0x19e)](_0x5c9179),_0x27a682='bs:addLog:'+process['pid'],_0x84510c=_0xc0c39e=>{const _0x3a225f=_0x1c745f;try{_0x460420&&_0xf75815[_0x3a225f(0x1a5)](emitLog,_0x460420,_0xc0c39e);}catch(_0x1cf2a8){_0xf75815[_0x3a225f(0x1c2)](debug,_0x3a225f(0x18c)+_0x1cf2a8);}};process['on'](_0x27a682,_0x84510c),_0x238d15['on'](_0xf75815[_0x1c745f(0x1ab)],()=>{const _0x14888d=_0x1c745f;process[_0x14888d(0x1e7)](_0x27a682,_0x84510c),_0x1342db[_0x14888d(0x179)]();}),_0x238d15['on'](_0xf75815['OtzfB'],(_0x105e07,_0x874528)=>{const _0x387ec7=_0x1c745f;_0x874528&&_0x874528[_0x387ec7(0x20a)]&&(_0x59fe37=_0x874528[_0x387ec7(0x20a)][_0x387ec7(0x1ed)]||0x0);}),_0x238d15['on'](_0xf75815[_0x1c745f(0x229)],(_0x309717,_0x40e539)=>{const _0x5b24b5=_0x1c745f;try{_0x460420=null;const _0x228d99=_0x40e539['item'],_0x56a6fd=_0x228d99[_0x5b24b5(0x188)]()?_0xf75815[_0x5b24b5(0x1af)](getParentTitles,_0x228d99[_0x5b24b5(0x188)]()):[],_0x570054=_0xf75815[_0x5b24b5(0x1a2)](_0x56a6fd[_0x5b24b5(0x236)],0x1)?_0x56a6fd[_0x5b24b5(0x24b)](0x1):_0x56a6fd,_0x2eafd8=_0x40e539[_0x5b24b5(0x20a)]&&_0x40e539[_0x5b24b5(0x20a)][_0x5b24b5(0x24d)],_0xb67054={'itemName':_0x228d99[_0x5b24b5(0x1fd)],'scopes':_0x570054[_0x5b24b5(0x23b)]([_0x228d99['name']]),'location':_0x5c9179,'collectionName':_0x4849fc,'startedAt':new Date()[_0x5b24b5(0x1d6)](),'startTimestamp':Date['now'](),'lastResponseCode':null,'httpLog':null,'assertions':[],'bufferedLogs':[]};_0x1342db[_0x5b24b5(0x23d)](_0x228d99['id']+'_'+_0x59fe37,_0xb67054),_0x2eafd8&&_0x1342db[_0x5b24b5(0x23d)](_0x2eafd8+'_'+_0x59fe37,_0xb67054);}catch(_0x3139e3){_0xf75815['rTOvA'](debug,'[Newman\x20Reporter]\x20Error\x20in\x20beforeItem:\x20'+_0x3139e3);}}),_0x238d15['on'](_0xf75815[_0x1c745f(0x246)],(_0x37f67c,_0x56f4b1)=>{const _0x3d0f13=_0x1c745f;try{if(!_0x56f4b1||!_0x56f4b1[_0x3d0f13(0x1df)])return;const _0x4bf2e8=_0x1342db[_0x3d0f13(0x232)](_0x56f4b1[_0x3d0f13(0x1df)]['id']+'_'+_0x59fe37);if(!_0x4bf2e8)return;_0x56f4b1['response']&&(_0x4bf2e8['lastResponseCode']=_0x56f4b1['response'][_0x3d0f13(0x1b4)]||null);if(!_0x56f4b1['request'])return;let _0xed3f53='',_0xe89197='';if(_0x56f4b1[_0x3d0f13(0x257)]['url'])try{const _0x2f648d=_0x56f4b1['request'][_0x3d0f13(0x1d5)][_0x3d0f13(0x1ca)](),_0x189532=new URL(_0x2f648d['startsWith'](_0xf75815['XtFUA'])?_0x2f648d:_0x3d0f13(0x224)+_0x2f648d);_0xed3f53=_0x189532[_0x3d0f13(0x1cc)],_0xe89197=_0xf75815['wNCox'](_0x189532[_0x3d0f13(0x1f4)],_0x189532['search']);}catch(_0x265e8f){_0xe89197=_0x56f4b1[_0x3d0f13(0x257)][_0x3d0f13(0x1d5)][_0x3d0f13(0x1ca)]();}const _0x572ffa={};_0x572ffa['host']=_0xed3f53,_0x572ffa[_0x3d0f13(0x196)]=_0xe89197,_0x572ffa['method']=_0x56f4b1[_0x3d0f13(0x257)]['method']||_0xf75815[_0x3d0f13(0x18e)],_0x572ffa['headers']={},_0x572ffa['status_code']=_0x56f4b1['response']?_0x56f4b1[_0x3d0f13(0x227)][_0x3d0f13(0x1b4)]||0x0:0x0,_0x572ffa[_0x3d0f13(0x1dd)]=_0x56f4b1[_0x3d0f13(0x227)]?_0x56f4b1[_0x3d0f13(0x227)]['responseTime']||0x0:0x0,_0x4bf2e8[_0x3d0f13(0x1ec)]=_0x572ffa;}catch(_0x137c55){_0xf75815[_0x3d0f13(0x1c2)](debug,_0x3d0f13(0x1c7)+_0x137c55);}}),_0x238d15['on'](_0xf75815[_0x1c745f(0x16f)],(_0x5dc03b,_0x26de95)=>{const _0x224e46=_0x1c745f,_0x190ee4={'gPVnT':function(_0x3b3184,_0x2169ad,_0x2c200b){const _0x1413b3=a46_0x144e;return _0xf75815[_0x1413b3(0x1a5)](_0x3b3184,_0x2169ad,_0x2c200b);},'NKRwr':_0xf75815[_0x224e46(0x1bd)]};try{if(!_0x26de95||!_0x26de95[_0x224e46(0x1df)])return;const _0xa4c631=_0x1342db[_0x224e46(0x232)](_0x26de95[_0x224e46(0x1df)]['id']+'_'+_0x59fe37);if(!_0xa4c631)return;const _0x47b54b=_0x26de95[_0x224e46(0x22e)]||_0x224e46(0x1e5)+_0xf75815[_0x224e46(0x23f)](_0xa4c631[_0x224e46(0x184)]['length'],0x1),_0x35ee48=_0xf75815[_0x224e46(0x18a)](uuidv4),_0x9ce8ea=_0xa4c631[_0x224e46(0x228)]['concat']([_0x47b54b])[_0x224e46(0x1d8)]('\x20');_0xa4c631[_0x224e46(0x184)][_0x224e46(0x195)]({'uuid':_0x35ee48,'name':_0x47b54b,'identifier':_0x9ce8ea,'err':_0xf75815[_0x224e46(0x1fe)](_0x5dc03b,null)});const _0x2a33ec={};_0x2a33ec[_0x224e46(0x1fb)]=_0x35ee48,_0x2a33ec[_0x224e46(0x1fd)]=_0x47b54b,_0x2a33ec[_0x224e46(0x16e)]=_0x9ce8ea,_0xf75815[_0x224e46(0x1b0)](emitTest,HookState[_0x224e46(0x1f5)],_0x2a33ec,_0xa4c631,_0x217d0e,{});_0xf75815['lMYXM'](_0xa4c631['assertions'][_0x224e46(0x236)],0x1)&&_0xf75815['XJfoR'](_0xa4c631[_0x224e46(0x21a)][_0x224e46(0x236)],0x0)&&(_0xa4c631['bufferedLogs']['forEach'](_0x54b77a=>{const _0x1a0487=_0x224e46;_0x190ee4[_0x1a0487(0x18b)](emitLog,_0x35ee48,{'kind':_0x190ee4[_0x1a0487(0x197)],'message':_0x54b77a['message'],'level':_0x54b77a[_0x1a0487(0x1f2)]});}),_0xa4c631[_0x224e46(0x21a)]=[]);if(_0xa4c631[_0x224e46(0x1ec)]){_0xf75815[_0x224e46(0x214)](emitLog,_0x35ee48,{'kind':_0xf75815['VXUiF'],'http_response':_0xa4c631['httpLog']});const _0xcec415=_0xf75815['XBeSp'](_0xf75815[_0x224e46(0x1b2)](_0xf75815['wNCox'](_0xf75815[_0x224e46(0x1c3)](_0xf75815[_0x224e46(0x16b)](_0xf75815[_0x224e46(0x15a)](_0xf75815[_0x224e46(0x221)](_0xf75815[_0x224e46(0x17d)](_0xa4c631[_0x224e46(0x1ec)][_0x224e46(0x1a7)]||_0xf75815['NYudS'],'\x20'),_0xa4c631[_0x224e46(0x1ec)][_0x224e46(0x1e4)]),_0xa4c631[_0x224e46(0x1ec)][_0x224e46(0x196)]),_0xf75815[_0x224e46(0x173)]),_0xa4c631[_0x224e46(0x1ec)]['status_code']),'\x20('),_0xa4c631[_0x224e46(0x1ec)][_0x224e46(0x1dd)]),_0xf75815['BTkLZ']);_0xf75815[_0x224e46(0x1d3)](emitLog,_0x35ee48,{'kind':_0xf75815[_0x224e46(0x1bd)],'message':_0xcec415,'level':_0xf75815[_0x224e46(0x200)]});}_0x460420=_0x35ee48;}catch(_0x1e4e00){_0xf75815[_0x224e46(0x1dc)](debug,_0x224e46(0x22b)+_0x1e4e00);}}),_0x238d15['on'](_0xf75815[_0x1c745f(0x17a)],(_0x216f62,_0xb78275)=>{const _0xefbb70=_0x1c745f;try{if(!_0xb78275)return;let _0x73284f=_0x460420;if(!_0x73284f&&_0xb78275[_0xefbb70(0x20a)]&&_0xb78275[_0xefbb70(0x20a)][_0xefbb70(0x24d)]){const _0xabcd00=_0x1342db[_0xefbb70(0x232)](_0xb78275[_0xefbb70(0x20a)]['ref']+'_'+_0x59fe37);_0xabcd00&&_0xf75815[_0xefbb70(0x1a2)](_0xabcd00[_0xefbb70(0x184)]['length'],0x0)&&(_0x73284f=_0xabcd00[_0xefbb70(0x184)][_0xf75815[_0xefbb70(0x1a3)](_0xabcd00[_0xefbb70(0x184)][_0xefbb70(0x236)],0x1)]['uuid']);}const _0x39e792=_0xb78275[_0xefbb70(0x219)]?_0xb78275[_0xefbb70(0x219)][_0xefbb70(0x1d8)](',\x20'):'';if(_0x73284f)_0xf75815[_0xefbb70(0x1e0)](emitLog,_0x73284f,{'kind':_0xf75815['PByPR'],'message':_0x39e792,'level':_0xf75815[_0xefbb70(0x1af)](normalizeLogLevel,_0xb78275[_0xefbb70(0x1f2)])});else{if(_0xb78275[_0xefbb70(0x20a)]&&_0xb78275['cursor'][_0xefbb70(0x24d)]){const _0x4d2eeb=_0x1342db[_0xefbb70(0x232)](_0xb78275['cursor']['ref']+'_'+_0x59fe37);_0x4d2eeb&&_0x4d2eeb[_0xefbb70(0x21a)][_0xefbb70(0x195)]({'timestamp':new Date()[_0xefbb70(0x1d6)](),'level':_0xf75815[_0xefbb70(0x23e)](normalizeLogLevel,_0xb78275[_0xefbb70(0x1f2)]),'message':_0x39e792});}}}catch(_0x5e74a8){_0xf75815['KmQkm'](debug,_0xefbb70(0x15d)+_0x5e74a8);}}),_0x238d15['on'](_0xf75815['ZgOUh'],(_0x59c0ef,_0x2f1a90)=>{const _0x1c7c8e=_0x1c745f;try{if(!_0x59c0ef&&(!_0x2f1a90||!_0x2f1a90[_0x1c7c8e(0x1da)]))return;const _0x433919=_0x59c0ef||_0x2f1a90[_0x1c7c8e(0x1da)],_0x490bd0=_0x433919[_0x1c7c8e(0x1ef)]||_0xf75815['KmQkm'](String,_0x433919),_0x26a4fa=_0x433919[_0x1c7c8e(0x161)]||_0x490bd0;let _0x239806=_0x460420;if(_0xf75815[_0x1c7c8e(0x248)](!_0x239806,_0x2f1a90)&&_0x2f1a90[_0x1c7c8e(0x20a)]&&_0x2f1a90[_0x1c7c8e(0x20a)]['ref']){const _0x525889=_0x1342db[_0x1c7c8e(0x232)](_0x2f1a90[_0x1c7c8e(0x20a)][_0x1c7c8e(0x24d)]+'_'+_0x59fe37);_0x525889&&_0xf75815[_0x1c7c8e(0x218)](_0x525889[_0x1c7c8e(0x184)]['length'],0x0)&&(_0x239806=_0x525889[_0x1c7c8e(0x184)][_0xf75815[_0x1c7c8e(0x1ea)](_0x525889['assertions'][_0x1c7c8e(0x236)],0x1)][_0x1c7c8e(0x1fb)]);}_0x239806&&_0xf75815['rTUyO'](emitLog,_0x239806,{'kind':_0xf75815['PByPR'],'message':_0xf75815[_0x1c7c8e(0x174)](_0xf75815[_0x1c7c8e(0x1a8)],_0x26a4fa),'level':_0xf75815[_0x1c7c8e(0x16a)]});}catch(_0x411d73){_0xf75815['TUKHD'](debug,_0xf75815['wNCox'](_0xf75815[_0x1c7c8e(0x1c9)],_0x411d73));}}),_0x238d15['on'](_0xf75815['KgcpE'],(_0x17a036,_0x98cb8d)=>{const _0x7047cd=_0x1c745f;try{if(!_0x98cb8d||!_0x98cb8d[_0x7047cd(0x177)])return;let _0x293394=_0x460420;if(!_0x293394&&_0x98cb8d['cursor']&&_0x98cb8d[_0x7047cd(0x20a)]['ref']){const _0x37d32d=_0x1342db[_0x7047cd(0x232)](_0x98cb8d[_0x7047cd(0x20a)][_0x7047cd(0x24d)]+'_'+_0x59fe37);_0x37d32d&&_0xf75815[_0x7047cd(0x21c)](_0x37d32d[_0x7047cd(0x184)][_0x7047cd(0x236)],0x0)&&(_0x293394=_0x37d32d[_0x7047cd(0x184)][_0xf75815['DuBuS'](_0x37d32d[_0x7047cd(0x184)][_0x7047cd(0x236)],0x1)][_0x7047cd(0x1fb)]);}if(!_0x293394)return;const _0x5dad68=_0x98cb8d[_0x7047cd(0x17e)]&&_0x98cb8d[_0x7047cd(0x17e)][_0x7047cd(0x1f0)]||_0xf75815[_0x7047cd(0x191)];_0x17a036&&_0xf75815[_0x7047cd(0x214)](emitLog,_0x293394,{'kind':_0xf75815[_0x7047cd(0x1bd)],'message':_0xf75815['zTkNo'](_0xf75815[_0x7047cd(0x1a6)](_0xf75815['yimEs'](_0xf75815[_0x7047cd(0x234)],_0x5dad68),_0xf75815[_0x7047cd(0x253)]),_0x17a036[_0x7047cd(0x1ef)]||_0x17a036),'level':_0xf75815[_0x7047cd(0x16a)]});}catch(_0x2c8728){_0xf75815[_0x7047cd(0x186)](debug,_0xf75815[_0x7047cd(0x16b)](_0xf75815[_0x7047cd(0x211)],_0x2c8728));}}),_0x238d15['on'](_0xf75815[_0x1c745f(0x247)],(_0x2899f4,_0x2ffdc6)=>{const _0x5b1576=_0x1c745f,_0x17db1b={'AGdTe':_0xf75815[_0x5b1576(0x176)],'mdJIZ':_0xf75815['ZBYFU'],'VbLNK':function(_0x1a41da,_0x3a4857){const _0x5f0030=_0x5b1576;return _0xf75815[_0x5f0030(0x17b)](_0x1a41da,_0x3a4857);},'SAVzz':_0xf75815['TEzCl'],'ESpSp':_0xf75815['hLXIt'],'PRDjP':_0xf75815[_0x5b1576(0x22f)],'xIrYK':function(_0x1b47ea,_0x56680f,_0x59ff17,_0x2e6060,_0x410c87,_0x926b36){const _0x440c82=_0x5b1576;return _0xf75815[_0x440c82(0x1c5)](_0x1b47ea,_0x56680f,_0x59ff17,_0x2e6060,_0x410c87,_0x926b36);},'cDtAJ':function(_0xa7d4a1,_0x60bb92,_0x5a5ede){const _0x1abe0a=_0x5b1576;return _0xf75815[_0x1abe0a(0x1eb)](_0xa7d4a1,_0x60bb92,_0x5a5ede);},'NEwju':_0xf75815[_0x5b1576(0x1bd)]};try{if(!_0x2ffdc6||!_0x2ffdc6[_0x5b1576(0x1df)])return;const _0x880e52=_0x2ffdc6['item']['id']+'_'+_0x59fe37,_0x2b4c9c=_0x1342db['get'](_0x880e52);if(!_0x2b4c9c)return;const _0x7755f4=new Date(),_0x5cd878=_0xf75815[_0x5b1576(0x1a3)](_0x7755f4[_0x5b1576(0x189)](),_0x2b4c9c[_0x5b1576(0x1b8)]);if(_0xf75815[_0x5b1576(0x1a2)](_0x2b4c9c[_0x5b1576(0x184)][_0x5b1576(0x236)],0x0))_0x2b4c9c['assertions'][_0x5b1576(0x171)](_0x16c469=>{const _0x39e4e3=_0x5b1576,_0x24b2b3=!!_0x16c469['err'],_0x419a45={'finishedAt':_0x7755f4[_0x39e4e3(0x1d6)](),'durationMs':_0x5cd878,'result':_0x24b2b3?_0x17db1b[_0x39e4e3(0x1c8)]:_0x17db1b['mdJIZ']};_0x24b2b3&&(_0x419a45[_0x39e4e3(0x1ba)]=_0x16c469[_0x39e4e3(0x1e3)][_0x39e4e3(0x1ef)]||'',_0x419a45[_0x39e4e3(0x20b)]=_0x17db1b[_0x39e4e3(0x1d4)](_0x16c469[_0x39e4e3(0x1e3)][_0x39e4e3(0x1fd)],_0x17db1b[_0x39e4e3(0x210)])||_0x16c469[_0x39e4e3(0x1e3)]['message']&&_0x16c469[_0x39e4e3(0x1e3)][_0x39e4e3(0x1ef)][_0x39e4e3(0x1ff)](_0x17db1b['ESpSp'])?_0x17db1b[_0x39e4e3(0x210)]:_0x17db1b[_0x39e4e3(0x1db)],_0x419a45['failure']=[{'backtrace':_0x16c469[_0x39e4e3(0x1e3)][_0x39e4e3(0x161)]?_0x16c469[_0x39e4e3(0x1e3)]['stack'][_0x39e4e3(0x1f6)]('\x0a'):[_0x16c469[_0x39e4e3(0x1e3)]['message']||''],'expanded':[]}]),_0x17db1b[_0x39e4e3(0x1cb)](emitTest,HookState[_0x39e4e3(0x15e)],_0x16c469,_0x2b4c9c,_0x217d0e,_0x419a45);});else{const _0x3f0481=_0xf75815['xZZlS'](uuidv4),_0x3c6c45=_0x2b4c9c[_0x5b1576(0x1fc)],_0xf34e15=_0xf75815[_0x5b1576(0x22a)](_0x3c6c45,null)&&_0xf75815[_0x5b1576(0x259)](_0x3c6c45,0xc8)&&_0xf75815[_0x5b1576(0x15b)](_0x3c6c45,0x190),_0x14c810=_0x2b4c9c[_0x5b1576(0x1bb)]+'\x20(HTTP\x20'+_0xf75815[_0x5b1576(0x1bc)](_0x3c6c45,_0xf75815[_0x5b1576(0x1b5)])+')',_0x4eb635={'uuid':_0x3f0481,'name':_0x14c810,'identifier':_0x2b4c9c[_0x5b1576(0x228)][_0x5b1576(0x23b)]([_0x14c810])[_0x5b1576(0x1d8)]('\x20')},_0x1f0878={'finishedAt':_0x7755f4[_0x5b1576(0x1d6)](),'durationMs':_0x5cd878,'result':_0xf34e15?_0xf75815[_0x5b1576(0x190)]:_0xf75815[_0x5b1576(0x176)]};!_0xf34e15&&(_0x1f0878['failureReason']=_0xf75815[_0x5b1576(0x258)](_0x3c6c45,null)?_0x5b1576(0x202)+_0x3c6c45+_0x5b1576(0x201):_0xf75815[_0x5b1576(0x18f)],_0x1f0878['failureType']=_0xf75815['KaWxd'],_0x1f0878[_0x5b1576(0x185)]=[{'backtrace':[_0x1f0878[_0x5b1576(0x1ba)]],'expanded':[]}]);_0xf75815[_0x5b1576(0x181)](emitTest,HookState[_0x5b1576(0x1f5)],_0x4eb635,_0x2b4c9c,_0x217d0e,{}),_0x2b4c9c[_0x5b1576(0x21a)][_0x5b1576(0x171)](_0x181e3b=>{const _0x333de9=_0x5b1576;_0x17db1b[_0x333de9(0x1ee)](emitLog,_0x3f0481,{'kind':_0x17db1b[_0x333de9(0x178)],'message':_0x181e3b['message'],'level':_0x181e3b['level']});});if(_0x2b4c9c[_0x5b1576(0x1ec)]){_0xf75815[_0x5b1576(0x214)](emitLog,_0x3f0481,{'kind':_0xf75815['VXUiF'],'http_response':_0x2b4c9c['httpLog']});const _0x2a045f=_0xf75815[_0x5b1576(0x1ce)](_0xf75815[_0x5b1576(0x1a6)](_0xf75815[_0x5b1576(0x17f)](_0xf75815['koYmH'](_0xf75815[_0x5b1576(0x15a)](_0xf75815['VHeFI'](_0xf75815['HCaBx'](_0xf75815[_0x5b1576(0x1ce)](_0x2b4c9c[_0x5b1576(0x1ec)][_0x5b1576(0x1a7)]||_0xf75815['NYudS'],'\x20'),_0x2b4c9c[_0x5b1576(0x1ec)][_0x5b1576(0x1e4)]),_0x2b4c9c[_0x5b1576(0x1ec)]['path']),_0xf75815[_0x5b1576(0x173)]),_0x2b4c9c['httpLog'][_0x5b1576(0x205)]),'\x20('),_0x2b4c9c[_0x5b1576(0x1ec)][_0x5b1576(0x1dd)]),_0xf75815[_0x5b1576(0x1a0)]);_0xf75815[_0x5b1576(0x24a)](emitLog,_0x3f0481,{'kind':_0xf75815[_0x5b1576(0x1bd)],'message':_0x2a045f,'level':_0xf75815['fbpfH']});}else _0xf75815[_0x5b1576(0x24a)](emitLog,_0x3f0481,{'kind':_0xf75815[_0x5b1576(0x1bd)],'message':_0xf75815[_0x5b1576(0x1ce)](_0xf75815['wLuXX'](_0xf75815['gkuJp'],_0xf75815[_0x5b1576(0x1f3)](_0x3c6c45,_0xf75815['ZEFTw'])),_0xf75815[_0x5b1576(0x169)]),'level':_0xf75815[_0x5b1576(0x200)]});_0xf75815[_0x5b1576(0x1c5)](emitTest,HookState[_0x5b1576(0x15e)],_0x4eb635,_0x2b4c9c,_0x217d0e,_0x1f0878);}_0x1342db[_0x5b1576(0x1e2)](_0x880e52),_0x2ffdc6['cursor']&&_0x2ffdc6[_0x5b1576(0x20a)][_0x5b1576(0x24d)]&&_0x1342db[_0x5b1576(0x1e2)](_0x2ffdc6[_0x5b1576(0x20a)][_0x5b1576(0x24d)]+'_'+_0x59fe37);}catch(_0x4b309f){_0xf75815[_0x5b1576(0x192)](debug,'[Newman\x20Reporter]\x20Error\x20in\x20item:\x20'+_0x4b309f);}});}module[a46_0x561bc4(0x19a)]=BrowserStackNewmanReporter;
1
+ 'use strict';const a46_0x3516a3=a46_0x16db;(function(_0x4565f1,_0x8db5f){const _0x191a5e=a46_0x16db,_0x1279a9=_0x4565f1();while(!![]){try{const _0x314f72=-parseInt(_0x191a5e(0x12e))/0x1*(parseInt(_0x191a5e(0x17f))/0x2)+-parseInt(_0x191a5e(0xfd))/0x3*(-parseInt(_0x191a5e(0x110))/0x4)+-parseInt(_0x191a5e(0x16d))/0x5*(-parseInt(_0x191a5e(0x104))/0x6)+parseInt(_0x191a5e(0x14a))/0x7+-parseInt(_0x191a5e(0x100))/0x8+-parseInt(_0x191a5e(0x157))/0x9+parseInt(_0x191a5e(0x180))/0xa;if(_0x314f72===_0x8db5f)break;else _0x1279a9['push'](_0x1279a9['shift']());}catch(_0xab8a){_0x1279a9['push'](_0x1279a9['shift']());}}}(a46_0x5156,0xbea8a));const path=require('path'),{v4:uuidv4}=require(a46_0x3516a3(0x1ac)),SessionHandler=require(a46_0x3516a3(0x19c)),{debug}=require('../../../helpers/test-observability/utils'),logger=require(a46_0x3516a3(0xf3))[a46_0x3516a3(0x17e)],BrowserstackCLI=require(a46_0x3516a3(0xd4)),GrpcClient=require(a46_0x3516a3(0x18f)),TestFrameworkState=require('../../v2/state/testFrameworkState'),HookState=require(a46_0x3516a3(0x18e)),LOG_LEVELS=[a46_0x3516a3(0x184),a46_0x3516a3(0x1b6),a46_0x3516a3(0x177),'DEBUG',a46_0x3516a3(0xeb)];function isCLIRunning(){const _0x4377f5=a46_0x3516a3;try{return BrowserstackCLI['getInstance']()[_0x4377f5(0x1ae)]();}catch(_0x40e2fb){return![];}}function getParentTitles(_0x30484d){const _0x4039e9=a46_0x3516a3,_0x34ee04={'nRToW':function(_0x894574,_0x1e57c1){return _0x894574(_0x1e57c1);}},_0x52f0d6=[],_0x2082d0=_0x30484d[_0x4039e9(0x1be)]();return _0x2082d0&&_0x52f0d6[_0x4039e9(0xd2)][_0x4039e9(0x122)](_0x52f0d6,_0x34ee04[_0x4039e9(0x19d)](getParentTitles,_0x2082d0)),_0x30484d['name']&&_0x52f0d6[_0x4039e9(0xd2)](_0x34ee04[_0x4039e9(0x19d)](String,_0x30484d[_0x4039e9(0x145)])),_0x52f0d6;}function normalizeLogLevel(_0x53c449){const _0x143c8b=a46_0x3516a3,_0x3d47fe={};_0x3d47fe[_0x143c8b(0x166)]='INFO',_0x3d47fe[_0x143c8b(0x14e)]=function(_0x54e7f2,_0x5c322f){return _0x54e7f2!==_0x5c322f;};const _0xfaa9e4=_0x3d47fe;if(!_0x53c449)return _0xfaa9e4[_0x143c8b(0x166)];const _0x418732=_0x53c449['toUpperCase']();return _0xfaa9e4['Phwkx'](LOG_LEVELS[_0x143c8b(0x1ab)](_0x418732),-0x1)?_0x418732:_0xfaa9e4[_0x143c8b(0x166)];}function resolveCollectionFile(_0x5a7a9e,_0x3aa72b){const _0x2febea=a46_0x3516a3,_0x1079d6={};_0x1079d6[_0x2febea(0x19a)]=function(_0x4faa18,_0x493a0b){return _0x4faa18===_0x493a0b;},_0x1079d6[_0x2febea(0xd7)]=_0x2febea(0xdc),_0x1079d6[_0x2febea(0x186)]='run',_0x1079d6['qkcwN']=function(_0x23a7c8,_0x318ae6){return _0x23a7c8!==_0x318ae6;},_0x1079d6[_0x2febea(0x1a0)]=function(_0x5bebf4,_0x5126ac){return _0x5bebf4<_0x5126ac;},_0x1079d6[_0x2febea(0x141)]=function(_0x1eadf4,_0x5bc8aa){return _0x1eadf4+_0x5bc8aa;},_0x1079d6[_0x2febea(0x160)]=function(_0x563751,_0x2b23f0){return _0x563751+_0x2b23f0;},_0x1079d6[_0x2febea(0x10b)]=_0x2febea(0x189),_0x1079d6[_0x2febea(0x139)]=_0x2febea(0x15a);const _0x3fb65f=_0x1079d6;try{if(_0x3aa72b&&_0x3aa72b['collectionPath'])return path[_0x2febea(0x1cc)](process['cwd'](),path[_0x2febea(0x175)](_0x3aa72b[_0x2febea(0x15d)]));const _0x267c3e=_0x5a7a9e[_0x2febea(0x1ad)];if(_0x3fb65f[_0x2febea(0x19a)](typeof _0x267c3e,_0x3fb65f['ESxLC']))return path['relative'](process[_0x2febea(0x152)](),path[_0x2febea(0x175)](_0x267c3e));const _0x28f8bc=process[_0x2febea(0x14f)][_0x2febea(0x1ab)](_0x3fb65f[_0x2febea(0x186)]);if(_0x3fb65f[_0x2febea(0x12c)](_0x28f8bc,-0x1)&&_0x3fb65f[_0x2febea(0x1a0)](_0x3fb65f[_0x2febea(0x141)](_0x28f8bc,0x1),process[_0x2febea(0x14f)][_0x2febea(0xfe)])){const _0x1069d9=process[_0x2febea(0x14f)][_0x3fb65f[_0x2febea(0x160)](_0x28f8bc,0x1)];if(_0x1069d9&&!_0x1069d9['startsWith']('-'))return path['relative'](process['cwd'](),path['resolve'](_0x1069d9));}}catch(_0x487a7d){}return logger[_0x2febea(0x128)](_0x3fb65f[_0x2febea(0x10b)]),_0x3fb65f[_0x2febea(0x139)];}function resolveCollectionName(_0x574e04){const _0x346695=a46_0x3516a3,_0xe8d6d0={};_0xe8d6d0[_0x346695(0x169)]=function(_0x34dc92,_0x3fa24c){return _0x34dc92===_0x3fa24c;},_0xe8d6d0[_0x346695(0x153)]=_0x346695(0x14d);const _0x45df8a=_0xe8d6d0;try{const _0x1dad68=_0x574e04[_0x346695(0x1ad)];if(_0x1dad68&&_0x45df8a['svorB'](typeof _0x1dad68,_0x45df8a['Yihdv']))return _0x1dad68[_0x346695(0x145)]||_0x1dad68[_0x346695(0x128)]&&_0x1dad68[_0x346695(0x128)][_0x346695(0x145)]||null;}catch(_0x540958){}return null;}function emitTest(_0x1680c0,_0x1efaed,_0x32018a,_0x43f1d1,_0x7a6942){const _0xfdf5c4=a46_0x3516a3,_0x25e32c={'VdNfV':function(_0x1f084a){return _0x1f084a();},'EqcNW':_0xfdf5c4(0xd6),'iyhWA':function(_0x317c0e,_0x551192){return _0x317c0e(_0x551192);},'WUxlB':'newman','hQVTO':_0xfdf5c4(0x1b7),'KlFXt':function(_0x5aa4ae,_0x525c40){return _0x5aa4ae!=_0x525c40;},'Xdsxg':function(_0x4493b1,_0x441816){return _0x4493b1===_0x441816;},'GgAMY':_0xfdf5c4(0x154),'mAhYY':_0xfdf5c4(0xdb)};if(_0x25e32c[_0xfdf5c4(0x19f)](isCLIRunning))try{const _0x2a9734=BrowserstackCLI['getInstance']()['getTestFramework']();if(!_0x2a9734)return;_0x2a9734[_0xfdf5c4(0xe1)](TestFrameworkState[_0xfdf5c4(0x134)],_0x1680c0,{'test':{'uuid':_0x1efaed[_0xfdf5c4(0x1ac)],'name':_0x1efaed[_0xfdf5c4(0x145)],'scopes':_0x32018a[_0xfdf5c4(0x108)],'scope':_0x32018a[_0xfdf5c4(0x108)]['join']('\x20'),'file_path':_0x43f1d1,'location':_0x32018a['collectionName'],'started_at':_0x32018a['startedAt'],'finished_at':_0x7a6942['finishedAt']||null,'result':_0x7a6942[_0xfdf5c4(0x146)]||_0x25e32c['EqcNW'],'failure':_0x7a6942[_0xfdf5c4(0xe5)]||[],'failure_type':_0x7a6942[_0xfdf5c4(0x191)]||null,'failure_reason':_0x7a6942[_0xfdf5c4(0x12b)]||null,'tags':[],'meta':{},'custom_metadata':{}}});}catch(_0x5b06be){_0x25e32c[_0xfdf5c4(0x167)](debug,_0xfdf5c4(0x1cb)+_0x5b06be);}else{const _0xfbd38b={'uuid':_0x1efaed[_0xfdf5c4(0x1ac)],'name':_0x1efaed[_0xfdf5c4(0x145)],'framework':_0x25e32c[_0xfdf5c4(0xf5)],'body':{'lang':_0x25e32c[_0xfdf5c4(0x1b5)],'code':null},'scope':_0x32018a[_0xfdf5c4(0x108)][_0xfdf5c4(0x150)]('\x20'),'scopes':_0x32018a['scopes'],'identifier':_0x1efaed[_0xfdf5c4(0x1ba)],'file_name':_0x32018a[_0xfdf5c4(0xf4)],'vc_filepath':_0x32018a['location'],'location':_0x32018a[_0xfdf5c4(0x12f)],'started_at':_0x32018a[_0xfdf5c4(0xff)],'finished_at':_0x7a6942['finishedAt']||null,'duration_in_ms':_0x25e32c[_0xfdf5c4(0x182)](_0x7a6942['durationMs'],null)?Math[_0xfdf5c4(0x140)](0x0,_0x7a6942[_0xfdf5c4(0x165)]):null,'result':_0x7a6942['result']||_0x25e32c[_0xfdf5c4(0x11e)],'failure_reason':_0x7a6942['failureReason']||null,'failure_type':_0x7a6942[_0xfdf5c4(0x191)]||null,'failure':_0x7a6942[_0xfdf5c4(0xe5)]||[],'retry_of':null,'hooks':[]};_0xfbd38b[_0xfdf5c4(0xe5)][0x0]&&(_0xfbd38b[_0xfdf5c4(0xe8)]=_0xfbd38b[_0xfdf5c4(0xe5)][0x0][_0xfdf5c4(0x127)],_0xfbd38b[_0xfdf5c4(0x16b)]=_0xfbd38b[_0xfdf5c4(0xe5)][0x0][_0xfdf5c4(0x196)]);const _0x26d9e9=_0x25e32c[_0xfdf5c4(0xed)](_0x1680c0,HookState[_0xfdf5c4(0x121)])?_0x25e32c[_0xfdf5c4(0x115)]:_0x25e32c[_0xfdf5c4(0x1a4)],_0x44bb83={};_0x44bb83[_0xfdf5c4(0x12d)]=_0x26d9e9,_0x44bb83['test_run']=_0xfbd38b,SessionHandler[_0xfdf5c4(0x126)](_0x44bb83);}}function a46_0x16db(_0x135647,_0xd26c16){const _0x5156ea=a46_0x5156();return a46_0x16db=function(_0x16db24,_0x20bbf1){_0x16db24=_0x16db24-0xd0;let _0x450278=_0x5156ea[_0x16db24];return _0x450278;},a46_0x16db(_0x135647,_0xd26c16);}function emitLog(_0x2cebc8,_0x50faf1){const _0x2dc925=a46_0x3516a3,_0x14b333={'HnDgJ':_0x2dc925(0x10f),'ENITm':function(_0x26a5dc){return _0x26a5dc();},'lrmUt':function(_0x310695,_0x3a0073){return _0x310695===_0x3a0073;},'NeGbk':_0x2dc925(0x132),'btkHq':_0x2dc925(0x14c),'oxRFd':_0x2dc925(0x134),'LkKMk':_0x2dc925(0x184),'vWUjF':function(_0x1c3b64,_0x4f8287){return _0x1c3b64(_0x4f8287);},'CkpMs':function(_0x210ab4,_0x1f4fe7){return _0x210ab4+_0x1f4fe7;},'YZYLG':_0x2dc925(0x16c),'MMdff':'LogCreated'},_0x1f95a2=_0x50faf1[_0x2dc925(0x1c8)]||_0x14b333[_0x2dc925(0x144)],_0x4d152c=_0x50faf1[_0x2dc925(0xd0)]||new Date()['toISOString']();if(_0x14b333[_0x2dc925(0x185)](isCLIRunning))try{const _0xe47d79=_0x14b333[_0x2dc925(0x187)](_0x1f95a2,_0x14b333[_0x2dc925(0xf1)])?JSON[_0x2dc925(0x137)](_0x50faf1):_0x50faf1['message']||'',_0x1d4ad4={};_0x1d4ad4['platformIndex']=0x0,_0x1d4ad4[_0x2dc925(0x1b4)]=_0x14b333[_0x2dc925(0x101)],_0x1d4ad4[_0x2dc925(0xf8)]='',_0x1d4ad4['testFrameworkState']=_0x14b333[_0x2dc925(0x15c)],_0x1d4ad4['logs']=[{'uuid':_0x2cebc8,'timestamp':_0x4d152c,'kind':_0x1f95a2,'level':_0x50faf1[_0x2dc925(0x1c2)]||_0x14b333[_0x2dc925(0x178)],'message':_0xe47d79}],GrpcClient[_0x2dc925(0x13a)]()[_0x2dc925(0x125)](_0x1d4ad4);}catch(_0x40e901){_0x14b333['vWUjF'](debug,_0x14b333['CkpMs'](_0x14b333['YZYLG'],_0x40e901));}else{const _0x588276={};_0x588276['test_run_uuid']=_0x2cebc8,_0x588276[_0x2dc925(0xd0)]=_0x4d152c,_0x588276['level']=_0x50faf1['level']||null,_0x588276[_0x2dc925(0x116)]=_0x50faf1[_0x2dc925(0x116)]||null,_0x588276['kind']=_0x1f95a2,_0x588276[_0x2dc925(0x1c6)]=_0x50faf1['http_response']||{};const _0x287ca3={};_0x287ca3[_0x2dc925(0x12d)]=_0x14b333[_0x2dc925(0x1c1)],_0x287ca3[_0x2dc925(0x143)]=[_0x588276],SessionHandler[_0x2dc925(0x126)](_0x287ca3);}}function a46_0x5156(){const _0x32d778=['URndG','vAMSt','item','TZQeW','set','TEST_LOG','1356xDPzht','\x20(no\x20assertions)','):\x20','prUKB','toISOString','GgAMY','message','GgXrl','IJQrX','NtrBW','startTimestamp','script','dlgIH','code','EqcNW','[Newman\x20Reporter]\x20Error\x20in\x20bs:addLog\x20handler:\x20','KKRjf','PRE','apply','oeycu','assertions','logCreatedEvent','uploadEventData','backtrace','info','get','ASMxC','failureReason','qkcwN','event_type','3wmQNXj','location','\x20->\x20','duration_ms','HTTP','responseTime','TEST','LWmQM','HTTP\x20','stringify','[Newman\x20Reporter]\x20Error\x20in\x20assertion:\x20','Vagwa','getInstance','IZbAa','error','done','PCeQn','RMflZ','max','zxQLU','POST','logs','HnDgJ','name','result','XfsPE','eKSrH','removeListener','1231755eGmxlo','QHpud','newman','object','Phwkx','argv','join','Inydh','cwd','Yihdv','TestRunStarted','pid','dnBLm','10781820qFUimm','UXWFl','forEach','collection.json','[Newman\x20Reporter]\x20Error\x20in\x20item:\x20','oxRFd','collectionPath','host','toString','kYkzU','NVDKN','HauEZ','jdTgE','ZOhcL','durationMs','XpcVn','iyhWA','slice','svorB','zElpt','failure_reason_expanded','[Newman\x20Reporter]\x20emitLog\x20error:\x20','92965tKBqqg','kcbKZ','Vbboq','rrYmw','status_code','[Newman\x20Reporter]\x20Error\x20in\x20script:\x20','jrqjf','Sdjxm','resolve','AeyPo','ERROR','LkKMk','startsWith','UnhandledError','url','ufAbR','delete','winstonLogger','296312xQWagp','12076170awZEFK','err','KlFXt','FXKwA','INFO','ENITm','kBGUr','lrmUt','LPAWS','[Newman\x20Reporter]\x20Could\x20not\x20resolve\x20collection\x20file\x20path,\x20falling\x20back\x20to\x20collection.json','lastResponseCode','PsqyN','bs:addLog:','[Newman\x20Reporter]\x20Error\x20in\x20console:\x20','../../v2/state/hookState','../../v2/grpcClient','assert','failureType','QgtND','sHQin','[Newman\x20Reporter]\x20Error\x20in\x20beforeItem:\x20','nDmAx','expanded','split','exports','pNslU','fXgGC','headers','../../../helpers/test-observability/sessionHandler','nRToW','cursor','VdNfV','NQKEz','passed','concat','hostname','mAhYY','ZPswb','now','method','event','fOTfn','ubNiB','indexOf','uuid','collection','isRunning','EQbpO','request','HTTP\x20Status:\x20','yyevM','oPHfn','testFrameworkName','hQVTO','WARN','javascript','RAoPW','VAulU','identifier','\x20—\x20response\x20status\x20in\x20failure\x20range','listen','ms)','parent','JIDbc','response','MMdff','level','unknown','messages','ref','http_response','itemName','kind','\x20(HTTP\x20','omQYU','[Newman\x20Reporter]\x20emitTest\x20error:\x20','relative','YBvYm','bufferedLogs','N/A','timestamp','http','push','PXAJe','../../v2/browserstackCLI','assertion','pending','ESxLC','JjeBM','LbqrT','LPjMY','TestRunFinished','string','stack','yKHPL','httpLog','xmifT','trackEvent','qwypl','search','xLxKr','failure','kQSob','znFAA','failure_backtrace','nQrbI','jMJUT','TRACE','BoCmy','Xdsxg','VKvFk','QswKH','execution','NeGbk','wbOoq','../../../helpers/logger','collectionName','WUxlB','rGlaN','ZUXHj','testFrameworkVersion','MDkgw','getTime','spptH','opqht','10155fRRasR','length','startedAt','5770240DtAxis','btkHq','Exception:\x20','aRuaF','198kwZvnz','oHemt','OtoRd','huvQx','scopes','path'];a46_0x5156=function(){return _0x32d778;};return a46_0x5156();}function BrowserStackNewmanReporter(_0x2bc2e8,_0x4f74aa,_0x5dce27){const _0x2f5f70=a46_0x3516a3,_0x5dba1a={'LPjMY':function(_0x2fb6a1,_0x48bd28,_0x2eefc9){return _0x2fb6a1(_0x48bd28,_0x2eefc9);},'ASMxC':function(_0x373171,_0x12e0fb){return _0x373171(_0x12e0fb);},'ZOhcL':function(_0x2c94e2,_0x43e3b0){return _0x2c94e2(_0x43e3b0);},'IJQrX':function(_0x5c1a22,_0x3a3c68){return _0x5c1a22>_0x3a3c68;},'ufAbR':_0x2f5f70(0xd1),'JjeBM':function(_0x8912bc,_0x4952e5){return _0x8912bc+_0x4952e5;},'RMflZ':'GET','AekBu':function(_0xc513ad,_0x5805b0){return _0xc513ad(_0x5805b0);},'dnBLm':function(_0x4b0e20,_0x40d845,_0x14db69){return _0x4b0e20(_0x40d845,_0x14db69);},'PsqyN':'TEST_LOG','Vbboq':function(_0x92419f,_0x2aede3){return _0x92419f+_0x2aede3;},'URndG':function(_0x5e88f3){return _0x5e88f3();},'aRuaF':function(_0x1ee2b5,_0x20f9b3){return _0x1ee2b5||_0x20f9b3;},'Sdjxm':function(_0x5bdc09,_0x3c9189,_0x203deb,_0x28e3cc,_0x36ab86,_0x384a85){return _0x5bdc09(_0x3c9189,_0x203deb,_0x28e3cc,_0x36ab86,_0x384a85);},'YBvYm':function(_0x43d2a4,_0x2c298e){return _0x43d2a4===_0x2c298e;},'yKHPL':function(_0x145be5,_0x4c27c2){return _0x145be5>_0x4c27c2;},'EQbpO':function(_0x159e71,_0x5cd0dd,_0x58c4af){return _0x159e71(_0x5cd0dd,_0x58c4af);},'huvQx':'HTTP','rGlaN':function(_0x7b0a3c,_0x409a22){return _0x7b0a3c+_0x409a22;},'oeycu':function(_0x626ae2,_0x28149b){return _0x626ae2+_0x28149b;},'prUKB':function(_0x386849,_0x43dc5b){return _0x386849+_0x43dc5b;},'ubNiB':function(_0x9d990d,_0x102f75){return _0x9d990d+_0x102f75;},'QXPYr':function(_0x1b9e96,_0x1d0df){return _0x1b9e96+_0x1d0df;},'pNslU':_0x2f5f70(0x130),'QswKH':_0x2f5f70(0x1bd),'oHemt':function(_0x14fa84,_0x59af50,_0x51b077){return _0x14fa84(_0x59af50,_0x51b077);},'NVDKN':'INFO','IZbAa':function(_0x145b5f,_0x7a551f){return _0x145b5f>_0x7a551f;},'wbOoq':function(_0x394113,_0x312d4d){return _0x394113-_0x312d4d;},'DDFvV':function(_0x34ccdb,_0x20c468){return _0x34ccdb(_0x20c468);},'spptH':function(_0xaf9639,_0xb068ad){return _0xaf9639(_0xb068ad);},'ZPswb':function(_0x28f155,_0x1fb9c6){return _0x28f155&&_0x1fb9c6;},'eKSrH':_0x2f5f70(0x102),'BoCmy':_0x2f5f70(0x177),'nQrbI':function(_0x1e3b03,_0x173961){return _0x1e3b03(_0x173961);},'QHpud':function(_0x47a863,_0x5857e2){return _0x47a863+_0x5857e2;},'jMJUT':'[Newman\x20Reporter]\x20Error\x20in\x20exception:\x20','fOTfn':function(_0x26dfe3,_0x18ba81){return _0x26dfe3-_0x18ba81;},'FXKwA':_0x2f5f70(0x1c3),'ZUXHj':function(_0x516121,_0x18b67d,_0xccaf70){return _0x516121(_0x18b67d,_0xccaf70);},'jdTgE':function(_0x5b526b,_0x25606c){return _0x5b526b+_0x25606c;},'xLxKr':function(_0x314c58,_0x27a8ac){return _0x314c58+_0x27a8ac;},'LbqrT':'Script\x20error\x20(','yyevM':_0x2f5f70(0x112),'JIDbc':function(_0x5d753e,_0xcaf737){return _0x5d753e(_0xcaf737);},'sWsPQ':_0x2f5f70(0x172),'zElpt':'failed','TZQeW':_0x2f5f70(0x1a1),'rrYmw':'AssertionError','kcbKZ':_0x2f5f70(0x190),'KKRjf':_0x2f5f70(0x17a),'kVlgw':function(_0x4c4cb1,_0x55b274,_0x4a1434,_0x3bb6a2,_0x4fc213,_0x159d17){return _0x4c4cb1(_0x55b274,_0x4a1434,_0x3bb6a2,_0x4fc213,_0x159d17);},'LWmQM':function(_0xfaf86c){return _0xfaf86c();},'RiDxI':function(_0x3b1af3,_0x574389){return _0x3b1af3!=_0x574389;},'CjsYI':function(_0x1ec3e6,_0x6878a1){return _0x1ec3e6>=_0x6878a1;},'VKvFk':function(_0x421408,_0x4daf2e){return _0x421408<_0x4daf2e;},'NtrBW':function(_0x452edd,_0x551ccd){return _0x452edd||_0x551ccd;},'RAoPW':_0x2f5f70(0x1cf),'omQYU':function(_0x18f04a,_0x5b854a){return _0x18f04a!=_0x5b854a;},'AeyPo':'No\x20HTTP\x20response\x20received','NDDtN':function(_0x3890fa,_0x42a0ab,_0x19d2ab,_0x44d71b,_0x5eb560,_0x190be4){return _0x3890fa(_0x42a0ab,_0x19d2ab,_0x44d71b,_0x5eb560,_0x190be4);},'MDkgw':function(_0x2b5051,_0x1a73ca){return _0x2b5051+_0x1a73ca;},'opqht':function(_0x2e0d56,_0xa487d0){return _0x2e0d56+_0xa487d0;},'HauEZ':function(_0x57ea4c,_0x346e70){return _0x57ea4c+_0x346e70;},'sHQin':function(_0x360272,_0x5be6b5){return _0x360272+_0x5be6b5;},'jrqjf':function(_0x543a8d,_0x2a29b8){return _0x543a8d+_0x2a29b8;},'AbNTU':function(_0x1b62b0,_0x2ce3d1){return _0x1b62b0+_0x2ce3d1;},'zWyEO':_0x2f5f70(0x1b1),'LPAWS':_0x2f5f70(0x111),'GgXrl':function(_0x34eb96,_0x1f86c0){return _0x34eb96(_0x1f86c0);},'UXWFl':_0x2f5f70(0x13d),'XfsPE':'beforeIteration','QgtND':'beforeItem','VAulU':_0x2f5f70(0x1b0),'oPHfn':_0x2f5f70(0xd5),'dlgIH':'console','AEdmT':'exception','znFAA':_0x2f5f70(0x11b),'IhDsJ':_0x2f5f70(0x10c)},_0x2ca3d6=new Map();let _0x2e2677=null,_0x5a6cce=0x0;const _0x5c9a87=_0x5dba1a[_0x2f5f70(0x1af)](resolveCollectionFile,_0x5dce27,_0x4f74aa),_0x46edbe=_0x5dba1a[_0x2f5f70(0x117)](resolveCollectionName,_0x5dce27)||_0x5c9a87,_0x9829b4=path[_0x2f5f70(0x175)](_0x5c9a87),_0x59164f=_0x2f5f70(0x18c)+process[_0x2f5f70(0x155)],_0x5872bb=_0x12de48=>{const _0x1ea069=_0x2f5f70;try{_0x2e2677&&_0x5dba1a[_0x1ea069(0xda)](emitLog,_0x2e2677,_0x12de48);}catch(_0x394f3c){_0x5dba1a[_0x1ea069(0x12a)](debug,_0x1ea069(0x11f)+_0x394f3c);}};process['on'](_0x59164f,_0x5872bb),_0x2bc2e8['on'](_0x5dba1a[_0x2f5f70(0x158)],()=>{const _0x1025d7=_0x2f5f70;process[_0x1025d7(0x149)](_0x59164f,_0x5872bb),_0x2ca3d6['clear']();}),_0x2bc2e8['on'](_0x5dba1a[_0x2f5f70(0x147)],(_0x2a8f29,_0x5aed1f)=>{const _0x3ecbb9=_0x2f5f70;_0x5aed1f&&_0x5aed1f[_0x3ecbb9(0x19e)]&&(_0x5a6cce=_0x5aed1f[_0x3ecbb9(0x19e)]['iteration']||0x0);}),_0x2bc2e8['on'](_0x5dba1a[_0x2f5f70(0x192)],(_0x395ad8,_0xa55e7a)=>{const _0x5a83b7=_0x2f5f70;try{_0x2e2677=null;const _0x2be455=_0xa55e7a[_0x5a83b7(0x10c)],_0x2ccd11=_0x2be455[_0x5a83b7(0x1be)]()?_0x5dba1a[_0x5a83b7(0x164)](getParentTitles,_0x2be455[_0x5a83b7(0x1be)]()):[],_0x8e508d=_0x5dba1a[_0x5a83b7(0x118)](_0x2ccd11[_0x5a83b7(0xfe)],0x1)?_0x2ccd11[_0x5a83b7(0x168)](0x1):_0x2ccd11,_0xdeebb6=_0xa55e7a[_0x5a83b7(0x19e)]&&_0xa55e7a[_0x5a83b7(0x19e)]['ref'],_0x297f5={'itemName':_0x2be455[_0x5a83b7(0x145)],'scopes':_0x8e508d['concat']([_0x2be455[_0x5a83b7(0x145)]]),'location':_0x5c9a87,'collectionName':_0x46edbe,'startedAt':new Date()[_0x5a83b7(0x114)](),'startTimestamp':Date[_0x5a83b7(0x1a6)](),'lastResponseCode':null,'httpLog':null,'assertions':[],'bufferedLogs':[]};_0x2ca3d6[_0x5a83b7(0x10e)](_0x2be455['id']+'_'+_0x5a6cce,_0x297f5),_0xdeebb6&&_0x2ca3d6[_0x5a83b7(0x10e)](_0xdeebb6+'_'+_0x5a6cce,_0x297f5);}catch(_0x1d98f1){_0x5dba1a[_0x5a83b7(0x12a)](debug,_0x5a83b7(0x194)+_0x1d98f1);}}),_0x2bc2e8['on'](_0x5dba1a[_0x2f5f70(0x1b9)],(_0x5cff61,_0x31b229)=>{const _0x5857b8=_0x2f5f70;try{if(!_0x31b229||!_0x31b229[_0x5857b8(0x10c)])return;const _0x3e7444=_0x2ca3d6['get'](_0x31b229[_0x5857b8(0x10c)]['id']+'_'+_0x5a6cce);if(!_0x3e7444)return;_0x31b229[_0x5857b8(0x1c0)]&&(_0x3e7444[_0x5857b8(0x18a)]=_0x31b229[_0x5857b8(0x1c0)][_0x5857b8(0x11d)]||null);if(!_0x31b229[_0x5857b8(0x1b0)])return;let _0x5063f1='',_0x596de9='';if(_0x31b229[_0x5857b8(0x1b0)]['url'])try{const _0x40b6cc=_0x31b229[_0x5857b8(0x1b0)][_0x5857b8(0x17b)][_0x5857b8(0x15f)](),_0x1c0fdc=new URL(_0x40b6cc[_0x5857b8(0x179)](_0x5dba1a[_0x5857b8(0x17c)])?_0x40b6cc:'http://'+_0x40b6cc);_0x5063f1=_0x1c0fdc[_0x5857b8(0x1a3)],_0x596de9=_0x5dba1a[_0x5857b8(0xd8)](_0x1c0fdc['pathname'],_0x1c0fdc[_0x5857b8(0xe3)]);}catch(_0x15ae0f){_0x596de9=_0x31b229[_0x5857b8(0x1b0)][_0x5857b8(0x17b)][_0x5857b8(0x15f)]();}const _0x3d75bb={};_0x3d75bb['host']=_0x5063f1,_0x3d75bb[_0x5857b8(0x109)]=_0x596de9,_0x3d75bb[_0x5857b8(0x1a7)]=_0x31b229[_0x5857b8(0x1b0)][_0x5857b8(0x1a7)]||_0x5dba1a[_0x5857b8(0x13f)],_0x3d75bb[_0x5857b8(0x19b)]={},_0x3d75bb['status_code']=_0x31b229[_0x5857b8(0x1c0)]?_0x31b229[_0x5857b8(0x1c0)][_0x5857b8(0x11d)]||0x0:0x0,_0x3d75bb[_0x5857b8(0x131)]=_0x31b229[_0x5857b8(0x1c0)]?_0x31b229[_0x5857b8(0x1c0)][_0x5857b8(0x133)]||0x0:0x0,_0x3e7444[_0x5857b8(0xdf)]=_0x3d75bb;}catch(_0x9ed7aa){_0x5dba1a['AekBu'](debug,'[Newman\x20Reporter]\x20Error\x20in\x20request:\x20'+_0x9ed7aa);}}),_0x2bc2e8['on'](_0x5dba1a[_0x2f5f70(0x1b3)],(_0x2e39e8,_0x4df21a)=>{const _0x51bf3=_0x2f5f70;try{if(!_0x4df21a||!_0x4df21a[_0x51bf3(0x10c)])return;const _0xb4c8d=_0x2ca3d6[_0x51bf3(0x129)](_0x4df21a[_0x51bf3(0x10c)]['id']+'_'+_0x5a6cce);if(!_0xb4c8d)return;const _0x40fd57=_0x4df21a[_0x51bf3(0xd5)]||'Assertion\x20'+_0x5dba1a[_0x51bf3(0x16f)](_0xb4c8d[_0x51bf3(0x124)]['length'],0x1),_0xf0f9c6=_0x5dba1a[_0x51bf3(0x10a)](uuidv4),_0xa6cfd=_0xb4c8d['scopes']['concat']([_0x40fd57])[_0x51bf3(0x150)]('\x20');_0xb4c8d[_0x51bf3(0x124)][_0x51bf3(0xd2)]({'uuid':_0xf0f9c6,'name':_0x40fd57,'identifier':_0xa6cfd,'err':_0x5dba1a[_0x51bf3(0x103)](_0x2e39e8,null)});const _0x48b21c={};_0x48b21c['uuid']=_0xf0f9c6,_0x48b21c[_0x51bf3(0x145)]=_0x40fd57,_0x48b21c[_0x51bf3(0x1ba)]=_0xa6cfd,_0x5dba1a[_0x51bf3(0x174)](emitTest,HookState[_0x51bf3(0x121)],_0x48b21c,_0xb4c8d,_0x9829b4,{});_0x5dba1a['YBvYm'](_0xb4c8d[_0x51bf3(0x124)][_0x51bf3(0xfe)],0x1)&&_0x5dba1a['yKHPL'](_0xb4c8d[_0x51bf3(0x1ce)][_0x51bf3(0xfe)],0x0)&&(_0xb4c8d[_0x51bf3(0x1ce)][_0x51bf3(0x159)](_0x255ba0=>{const _0x3659c0=_0x51bf3;_0x5dba1a[_0x3659c0(0x156)](emitLog,_0xf0f9c6,{'kind':_0x5dba1a['PsqyN'],'message':_0x255ba0[_0x3659c0(0x116)],'level':_0x255ba0[_0x3659c0(0x1c2)]});}),_0xb4c8d['bufferedLogs']=[]);if(_0xb4c8d[_0x51bf3(0xdf)]){_0x5dba1a[_0x51bf3(0x1af)](emitLog,_0xf0f9c6,{'kind':_0x5dba1a[_0x51bf3(0x107)],'http_response':_0xb4c8d[_0x51bf3(0xdf)]});const _0x201aeb=_0x5dba1a[_0x51bf3(0x16f)](_0x5dba1a[_0x51bf3(0xf6)](_0x5dba1a[_0x51bf3(0x16f)](_0x5dba1a['oeycu'](_0x5dba1a[_0x51bf3(0x113)](_0x5dba1a[_0x51bf3(0x1aa)](_0x5dba1a[_0x51bf3(0x113)](_0x5dba1a['QXPYr'](_0xb4c8d[_0x51bf3(0xdf)][_0x51bf3(0x1a7)]||_0x5dba1a[_0x51bf3(0x13f)],'\x20'),_0xb4c8d['httpLog'][_0x51bf3(0x15e)]),_0xb4c8d[_0x51bf3(0xdf)][_0x51bf3(0x109)]),_0x5dba1a[_0x51bf3(0x199)]),_0xb4c8d[_0x51bf3(0xdf)][_0x51bf3(0x171)]),'\x20('),_0xb4c8d[_0x51bf3(0xdf)][_0x51bf3(0x131)]),_0x5dba1a['QswKH']);_0x5dba1a[_0x51bf3(0x105)](emitLog,_0xf0f9c6,{'kind':_0x5dba1a[_0x51bf3(0x18b)],'message':_0x201aeb,'level':_0x5dba1a[_0x51bf3(0x161)]});}_0x2e2677=_0xf0f9c6;}catch(_0xbfe2e3){_0x5dba1a[_0x51bf3(0x12a)](debug,_0x51bf3(0x138)+_0xbfe2e3);}}),_0x2bc2e8['on'](_0x5dba1a[_0x2f5f70(0x11c)],(_0x419ab3,_0x43e467)=>{const _0xb6faa7=_0x2f5f70;try{if(!_0x43e467)return;let _0x59b9c9=_0x2e2677;if(!_0x59b9c9&&_0x43e467[_0xb6faa7(0x19e)]&&_0x43e467[_0xb6faa7(0x19e)]['ref']){const _0x5dbf23=_0x2ca3d6[_0xb6faa7(0x129)](_0x43e467[_0xb6faa7(0x19e)][_0xb6faa7(0x1c5)]+'_'+_0x5a6cce);_0x5dbf23&&_0x5dba1a[_0xb6faa7(0x13b)](_0x5dbf23['assertions'][_0xb6faa7(0xfe)],0x0)&&(_0x59b9c9=_0x5dbf23[_0xb6faa7(0x124)][_0x5dba1a[_0xb6faa7(0xf2)](_0x5dbf23[_0xb6faa7(0x124)][_0xb6faa7(0xfe)],0x1)][_0xb6faa7(0x1ac)]);}const _0x28f116=_0x43e467[_0xb6faa7(0x1c4)]?_0x43e467['messages'][_0xb6faa7(0x150)](',\x20'):'';if(_0x59b9c9)_0x5dba1a['LPjMY'](emitLog,_0x59b9c9,{'kind':_0x5dba1a['PsqyN'],'message':_0x28f116,'level':_0x5dba1a[_0xb6faa7(0x12a)](normalizeLogLevel,_0x43e467[_0xb6faa7(0x1c2)])});else{if(_0x43e467[_0xb6faa7(0x19e)]&&_0x43e467[_0xb6faa7(0x19e)][_0xb6faa7(0x1c5)]){const _0x3d6e84=_0x2ca3d6[_0xb6faa7(0x129)](_0x43e467[_0xb6faa7(0x19e)][_0xb6faa7(0x1c5)]+'_'+_0x5a6cce);_0x3d6e84&&_0x3d6e84[_0xb6faa7(0x1ce)][_0xb6faa7(0xd2)]({'timestamp':new Date()[_0xb6faa7(0x114)](),'level':_0x5dba1a[_0xb6faa7(0x164)](normalizeLogLevel,_0x43e467['level']),'message':_0x28f116});}}}catch(_0x54634c){_0x5dba1a['DDFvV'](debug,_0xb6faa7(0x18d)+_0x54634c);}}),_0x2bc2e8['on'](_0x5dba1a['AEdmT'],(_0x4a1cb4,_0x33ed86)=>{const _0x2bea0b=_0x2f5f70;try{if(!_0x4a1cb4&&(!_0x33ed86||!_0x33ed86[_0x2bea0b(0x13c)]))return;const _0x5bbeb0=_0x4a1cb4||_0x33ed86[_0x2bea0b(0x13c)],_0x5e119f=_0x5bbeb0[_0x2bea0b(0x116)]||_0x5dba1a[_0x2bea0b(0xfb)](String,_0x5bbeb0),_0x4d6f10=_0x5bbeb0[_0x2bea0b(0xdd)]||_0x5e119f;let _0x4adb7e=_0x2e2677;if(_0x5dba1a[_0x2bea0b(0x1a5)](!_0x4adb7e,_0x33ed86)&&_0x33ed86['cursor']&&_0x33ed86['cursor'][_0x2bea0b(0x1c5)]){const _0x2337a5=_0x2ca3d6[_0x2bea0b(0x129)](_0x33ed86[_0x2bea0b(0x19e)][_0x2bea0b(0x1c5)]+'_'+_0x5a6cce);_0x2337a5&&_0x5dba1a[_0x2bea0b(0x13b)](_0x2337a5[_0x2bea0b(0x124)][_0x2bea0b(0xfe)],0x0)&&(_0x4adb7e=_0x2337a5['assertions'][_0x5dba1a[_0x2bea0b(0xf2)](_0x2337a5[_0x2bea0b(0x124)][_0x2bea0b(0xfe)],0x1)][_0x2bea0b(0x1ac)]);}_0x4adb7e&&_0x5dba1a[_0x2bea0b(0x156)](emitLog,_0x4adb7e,{'kind':_0x5dba1a[_0x2bea0b(0x18b)],'message':_0x5dba1a[_0x2bea0b(0x123)](_0x5dba1a[_0x2bea0b(0x148)],_0x4d6f10),'level':_0x5dba1a[_0x2bea0b(0xec)]});}catch(_0x33bc71){_0x5dba1a[_0x2bea0b(0xe9)](debug,_0x5dba1a[_0x2bea0b(0x14b)](_0x5dba1a[_0x2bea0b(0xea)],_0x33bc71));}}),_0x2bc2e8['on'](_0x5dba1a[_0x2f5f70(0xe7)],(_0x186815,_0x2090d5)=>{const _0x44b147=_0x2f5f70;try{if(!_0x2090d5||!_0x2090d5[_0x44b147(0xf0)])return;let _0x345490=_0x2e2677;if(!_0x345490&&_0x2090d5[_0x44b147(0x19e)]&&_0x2090d5[_0x44b147(0x19e)]['ref']){const _0x589862=_0x2ca3d6[_0x44b147(0x129)](_0x2090d5[_0x44b147(0x19e)][_0x44b147(0x1c5)]+'_'+_0x5a6cce);_0x589862&&_0x5dba1a['IZbAa'](_0x589862['assertions'][_0x44b147(0xfe)],0x0)&&(_0x345490=_0x589862[_0x44b147(0x124)][_0x5dba1a[_0x44b147(0x1a9)](_0x589862[_0x44b147(0x124)][_0x44b147(0xfe)],0x1)][_0x44b147(0x1ac)]);}if(!_0x345490)return;const _0x2fe298=_0x2090d5[_0x44b147(0x1a8)]&&_0x2090d5['event'][_0x44b147(0x1bc)]||_0x5dba1a[_0x44b147(0x183)];_0x186815&&_0x5dba1a[_0x44b147(0xf7)](emitLog,_0x345490,{'kind':_0x5dba1a[_0x44b147(0x18b)],'message':_0x5dba1a['jdTgE'](_0x5dba1a[_0x44b147(0x163)](_0x5dba1a[_0x44b147(0xe4)](_0x5dba1a[_0x44b147(0xd9)],_0x2fe298),_0x5dba1a[_0x44b147(0x1b2)]),_0x186815[_0x44b147(0x116)]||_0x186815),'level':_0x5dba1a[_0x44b147(0xec)]});}catch(_0x36e5c6){_0x5dba1a['JIDbc'](debug,_0x5dba1a['jdTgE'](_0x5dba1a['sWsPQ'],_0x36e5c6));}}),_0x2bc2e8['on'](_0x5dba1a['IhDsJ'],(_0x141d30,_0x4305ae)=>{const _0x52a4b4=_0x2f5f70,_0x1aa9c0={'AWJVz':_0x5dba1a[_0x52a4b4(0x16a)],'OtoRd':_0x5dba1a[_0x52a4b4(0x10d)],'PXAJe':function(_0x1f6f16,_0x1afe97){const _0x5774a9=_0x52a4b4;return _0x5dba1a[_0x5774a9(0x1cd)](_0x1f6f16,_0x1afe97);},'PCeQn':_0x5dba1a[_0x52a4b4(0x170)],'nDmAx':_0x5dba1a[_0x52a4b4(0x16e)],'xmifT':_0x5dba1a['KKRjf'],'kQSob':function(_0x3cdf29,_0x5f51cb,_0x16e0be,_0x5402d8,_0x3cc603,_0xb4fc95){return _0x5dba1a['kVlgw'](_0x3cdf29,_0x5f51cb,_0x16e0be,_0x5402d8,_0x3cc603,_0xb4fc95);},'qwypl':function(_0x5c59c6,_0x767ee8,_0x43c7dc){const _0x5b8e6e=_0x52a4b4;return _0x5dba1a[_0x5b8e6e(0x105)](_0x5c59c6,_0x767ee8,_0x43c7dc);},'Inydh':_0x5dba1a[_0x52a4b4(0x18b)]};try{if(!_0x4305ae||!_0x4305ae[_0x52a4b4(0x10c)])return;const _0x49da2f=_0x4305ae[_0x52a4b4(0x10c)]['id']+'_'+_0x5a6cce,_0x1b9bd1=_0x2ca3d6[_0x52a4b4(0x129)](_0x49da2f);if(!_0x1b9bd1)return;const _0x3ee8db=new Date(),_0x30a109=_0x5dba1a[_0x52a4b4(0xf2)](_0x3ee8db[_0x52a4b4(0xfa)](),_0x1b9bd1[_0x52a4b4(0x11a)]);if(_0x5dba1a[_0x52a4b4(0xde)](_0x1b9bd1[_0x52a4b4(0x124)]['length'],0x0))_0x1b9bd1[_0x52a4b4(0x124)][_0x52a4b4(0x159)](_0x362809=>{const _0x494d75=_0x52a4b4,_0x32cc9=!!_0x362809[_0x494d75(0x181)],_0xd2afdd={'finishedAt':_0x3ee8db[_0x494d75(0x114)](),'durationMs':_0x30a109,'result':_0x32cc9?_0x1aa9c0['AWJVz']:_0x1aa9c0[_0x494d75(0x106)]};_0x32cc9&&(_0xd2afdd[_0x494d75(0x12b)]=_0x362809[_0x494d75(0x181)][_0x494d75(0x116)]||'',_0xd2afdd[_0x494d75(0x191)]=_0x1aa9c0[_0x494d75(0xd3)](_0x362809[_0x494d75(0x181)][_0x494d75(0x145)],_0x1aa9c0[_0x494d75(0x13e)])||_0x362809[_0x494d75(0x181)]['message']&&_0x362809['err']['message']['includes'](_0x1aa9c0[_0x494d75(0x195)])?_0x1aa9c0['PCeQn']:_0x1aa9c0[_0x494d75(0xe0)],_0xd2afdd[_0x494d75(0xe5)]=[{'backtrace':_0x362809['err'][_0x494d75(0xdd)]?_0x362809[_0x494d75(0x181)][_0x494d75(0xdd)][_0x494d75(0x197)]('\x0a'):[_0x362809[_0x494d75(0x181)][_0x494d75(0x116)]||''],'expanded':[]}]),_0x1aa9c0[_0x494d75(0xe6)](emitTest,HookState[_0x494d75(0x142)],_0x362809,_0x1b9bd1,_0x9829b4,_0xd2afdd);});else{const _0x4faf70=_0x5dba1a[_0x52a4b4(0x135)](uuidv4),_0x412dfe=_0x1b9bd1[_0x52a4b4(0x18a)],_0x5e88cd=_0x5dba1a['RiDxI'](_0x412dfe,null)&&_0x5dba1a['CjsYI'](_0x412dfe,0xc8)&&_0x5dba1a[_0x52a4b4(0xee)](_0x412dfe,0x190),_0x1c95bf=_0x1b9bd1[_0x52a4b4(0x1c7)]+_0x52a4b4(0x1c9)+_0x5dba1a[_0x52a4b4(0x119)](_0x412dfe,_0x5dba1a['RAoPW'])+')',_0x2a1531={'uuid':_0x4faf70,'name':_0x1c95bf,'identifier':_0x1b9bd1[_0x52a4b4(0x108)][_0x52a4b4(0x1a2)]([_0x1c95bf])[_0x52a4b4(0x150)]('\x20')},_0x46e46f={'finishedAt':_0x3ee8db[_0x52a4b4(0x114)](),'durationMs':_0x30a109,'result':_0x5e88cd?_0x5dba1a[_0x52a4b4(0x10d)]:_0x5dba1a['zElpt']};!_0x5e88cd&&(_0x46e46f[_0x52a4b4(0x12b)]=_0x5dba1a[_0x52a4b4(0x1ca)](_0x412dfe,null)?_0x52a4b4(0x136)+_0x412dfe+_0x52a4b4(0x1bb):_0x5dba1a[_0x52a4b4(0x176)],_0x46e46f[_0x52a4b4(0x191)]=_0x5dba1a[_0x52a4b4(0x120)],_0x46e46f[_0x52a4b4(0xe5)]=[{'backtrace':[_0x46e46f['failureReason']],'expanded':[]}]);_0x5dba1a['NDDtN'](emitTest,HookState[_0x52a4b4(0x121)],_0x2a1531,_0x1b9bd1,_0x9829b4,{}),_0x1b9bd1[_0x52a4b4(0x1ce)][_0x52a4b4(0x159)](_0x5ac022=>{const _0x49475e=_0x52a4b4;_0x1aa9c0[_0x49475e(0xe2)](emitLog,_0x4faf70,{'kind':_0x1aa9c0[_0x49475e(0x151)],'message':_0x5ac022['message'],'level':_0x5ac022[_0x49475e(0x1c2)]});});if(_0x1b9bd1[_0x52a4b4(0xdf)]){_0x5dba1a[_0x52a4b4(0xf7)](emitLog,_0x4faf70,{'kind':_0x5dba1a[_0x52a4b4(0x107)],'http_response':_0x1b9bd1[_0x52a4b4(0xdf)]});const _0x1417bc=_0x5dba1a[_0x52a4b4(0xf9)](_0x5dba1a[_0x52a4b4(0xfc)](_0x5dba1a[_0x52a4b4(0x162)](_0x5dba1a['HauEZ'](_0x5dba1a[_0x52a4b4(0x193)](_0x5dba1a[_0x52a4b4(0x173)](_0x5dba1a[_0x52a4b4(0xd8)](_0x5dba1a['rGlaN'](_0x1b9bd1[_0x52a4b4(0xdf)]['method']||_0x5dba1a[_0x52a4b4(0x13f)],'\x20'),_0x1b9bd1[_0x52a4b4(0xdf)]['host']),_0x1b9bd1[_0x52a4b4(0xdf)][_0x52a4b4(0x109)]),_0x5dba1a[_0x52a4b4(0x199)]),_0x1b9bd1[_0x52a4b4(0xdf)][_0x52a4b4(0x171)]),'\x20('),_0x1b9bd1[_0x52a4b4(0xdf)][_0x52a4b4(0x131)]),_0x5dba1a[_0x52a4b4(0xef)]);_0x5dba1a[_0x52a4b4(0xda)](emitLog,_0x4faf70,{'kind':_0x5dba1a[_0x52a4b4(0x18b)],'message':_0x1417bc,'level':_0x5dba1a[_0x52a4b4(0x161)]});}else _0x5dba1a[_0x52a4b4(0x1af)](emitLog,_0x4faf70,{'kind':_0x5dba1a['PsqyN'],'message':_0x5dba1a[_0x52a4b4(0x173)](_0x5dba1a['AbNTU'](_0x5dba1a['zWyEO'],_0x5dba1a[_0x52a4b4(0x103)](_0x412dfe,_0x5dba1a[_0x52a4b4(0x1b8)])),_0x5dba1a[_0x52a4b4(0x188)]),'level':_0x5dba1a[_0x52a4b4(0x161)]});_0x5dba1a['Sdjxm'](emitTest,HookState['POST'],_0x2a1531,_0x1b9bd1,_0x9829b4,_0x46e46f);}_0x2ca3d6['delete'](_0x49da2f),_0x4305ae[_0x52a4b4(0x19e)]&&_0x4305ae['cursor'][_0x52a4b4(0x1c5)]&&_0x2ca3d6[_0x52a4b4(0x17d)](_0x4305ae['cursor'][_0x52a4b4(0x1c5)]+'_'+_0x5a6cce);}catch(_0x59fad4){_0x5dba1a[_0x52a4b4(0x1bf)](debug,_0x52a4b4(0x15b)+_0x59fad4);}});}module[a46_0x3516a3(0x198)]=BrowserStackNewmanReporter;
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a47_0x1b0a85=a47_0xfde8;(function(_0xed4d7e,_0x29fc4b){const _0x156935=a47_0xfde8,_0x3031a7=_0xed4d7e();while(!![]){try{const _0x1aa51f=-parseInt(_0x156935(0x86))/0x1+parseInt(_0x156935(0x8e))/0x2*(-parseInt(_0x156935(0x96))/0x3)+-parseInt(_0x156935(0x81))/0x4*(-parseInt(_0x156935(0x8c))/0x5)+parseInt(_0x156935(0x74))/0x6+parseInt(_0x156935(0x80))/0x7*(parseInt(_0x156935(0xa3))/0x8)+parseInt(_0x156935(0x99))/0x9*(parseInt(_0x156935(0x6e))/0xa)+parseInt(_0x156935(0x9a))/0xb;if(_0x1aa51f===_0x29fc4b)break;else _0x3031a7['push'](_0x3031a7['shift']());}catch(_0x188552){_0x3031a7['push'](_0x3031a7['shift']());}}}(a47_0x1d4c,0x19d51));function a47_0x1d4c(){const _0x3c92c1=['reporters','_load','51330cXtsOz','module','newman-reporter-browserstack','exitCode','BmvAA','qespb','run','indexOf','PDdlS','jRyRa','call','dQJTE','63fBoUsz','85388TeXyfy','OgyqR','wwrPS','failures','collectionPath','62304rDtsPW','stderr','BXWHx','assign','jMkkk','[Newman]\x20scriptRunner:\x20failed\x20to\x20load\x20script:\x20','10CDrBZZ','yDnXh','1250iWfLVc','[Newman]\x20scriptRunner:\x20no\x20script\x20file\x20provided\x0a','argv','write','resolve','string','error','GzrFL','924LRXOAX','QDZiS','concat','933318rylcbz','1464441AYKxIZ','beforeExit','newman','QaoIq','MulZV','getInstance','reporter','XaOgb','collection','64472ZspziA','browserstack','length','exit','TvBIz','_resolveFilename','qbsEl','../v2/browserstackCLI','10nyKKSi','RtBBM','join','create'];a47_0x1d4c=function(){return _0x3c92c1;};return a47_0x1d4c();}const path=require('path'),Module=require(a47_0x1b0a85(0x75)),BrowserstackCLI=require(a47_0x1b0a85(0x6d)),scriptFile=process[a47_0x1b0a85(0x90)][0x2],maxParallel=parseInt(process[a47_0x1b0a85(0x90)][0x3])||0x0;!scriptFile&&(process[a47_0x1b0a85(0x87)][a47_0x1b0a85(0x91)](a47_0x1b0a85(0x8f)),process[a47_0x1b0a85(0xa6)](0x1));const reporterPath=path[a47_0x1b0a85(0x70)](__dirname,a47_0x1b0a85(0xa0),'index.js'),originalResolveFilename=Module[a47_0x1b0a85(0xa8)];Module[a47_0x1b0a85(0xa8)]=function(_0x32b7e8,_0x5f411f,_0x33d136,_0x3cf3ab){const _0x423135=a47_0x1b0a85,_0x4c5ab6={};_0x4c5ab6[_0x423135(0x79)]=function(_0xac2790,_0x5b853d){return _0xac2790===_0x5b853d;},_0x4c5ab6[_0x423135(0x9e)]=_0x423135(0x76);const _0x46e2e1=_0x4c5ab6;if(_0x46e2e1['qespb'](_0x32b7e8,_0x46e2e1[_0x423135(0x9e)]))return reporterPath;return originalResolveFilename[_0x423135(0x7e)](this,_0x32b7e8,_0x5f411f,_0x33d136,_0x3cf3ab);};let limit;function a47_0xfde8(_0x3b93b5,_0x580ee5){const _0x1d4ce2=a47_0x1d4c();return a47_0xfde8=function(_0xfde86d,_0x576c01){_0xfde86d=_0xfde86d-0x6d;let _0x3c78e9=_0x1d4ce2[_0xfde86d];return _0x3c78e9;},a47_0xfde8(_0x3b93b5,_0x580ee5);}try{const pLimit=require('p-limit'),concurrency=maxParallel&&maxParallel>0x0?maxParallel:Infinity;limit=pLimit(concurrency);}catch(a47_0x3b6a4b){limit=function(_0x3c89c7){const _0x5d04ed={'jrqfv':function(_0x5f74c9){return _0x5f74c9();}};return _0x5d04ed['jrqfv'](_0x3c89c7);};}let wrappedNewman=null,hasFailure=![];const originalLoad=Module['_load'];Module[a47_0x1b0a85(0x73)]=function(_0x409fc6,_0x237d12,_0x120c96){const _0x25f736=a47_0x1b0a85,_0x57d7e9={'OgyqR':function(_0x556a28,_0x468d90){return _0x556a28>_0x468d90;},'QaoIq':function(_0x195c55,_0x5bccfb){return _0x195c55||_0x5bccfb;},'FMqoZ':function(_0x3e58cb,_0x402a1a,_0x4f6e7e){return _0x3e58cb(_0x402a1a,_0x4f6e7e);},'jRyRa':function(_0x4dcb42,_0x4d83c9){return _0x4dcb42(_0x4d83c9);},'BXWHx':'cli','XaOgb':function(_0x25a586,_0x362f58){return _0x25a586===_0x362f58;},'QDZiS':_0x25f736(0xa4),'RtBBM':_0x25f736(0x93),'Gopia':function(_0x530f9a,_0x55451f){return _0x530f9a(_0x55451f);},'ndpDm':function(_0x5f00c0,_0x495c2b){return _0x5f00c0!==_0x495c2b;},'HhSHE':_0x25f736(0x9c)},_0x53281b=originalLoad[_0x25f736(0x7e)](this,_0x409fc6,_0x237d12,_0x120c96);if(_0x57d7e9['ndpDm'](_0x409fc6,_0x57d7e9['HhSHE']))return _0x53281b;if(wrappedNewman)return wrappedNewman;const _0x335044=_0x53281b[_0x25f736(0x7a)]['bind'](_0x53281b);return wrappedNewman=Object[_0x25f736(0x71)](_0x53281b),wrappedNewman['run']=function(_0x726b47,_0x5b552e){const _0x41a0b8=_0x25f736;let _0x5d8994=_0x726b47[_0x41a0b8(0x72)]||[_0x57d7e9[_0x41a0b8(0x88)]];_0x57d7e9[_0x41a0b8(0xa1)](_0x5d8994[_0x41a0b8(0x7b)](_0x57d7e9[_0x41a0b8(0x97)]),-0x1)&&(_0x5d8994=_0x5d8994[_0x41a0b8(0x98)]([_0x57d7e9[_0x41a0b8(0x97)]]));const _0x41f3a8=_0x57d7e9[_0x41a0b8(0xa1)](typeof _0x726b47['collection'],_0x57d7e9[_0x41a0b8(0x6f)])?_0x726b47[_0x41a0b8(0xa2)]:undefined,_0x1adfc1={};_0x1adfc1[_0x41a0b8(0x85)]=_0x41f3a8;const _0x1edd74=Object[_0x41a0b8(0x89)]({},_0x726b47[_0x41a0b8(0xa0)],{'browserstack':Object[_0x41a0b8(0x89)]({},_0x726b47[_0x41a0b8(0xa0)]&&_0x726b47[_0x41a0b8(0xa0)]['browserstack'],_0x1adfc1)}),_0x588a18={};return _0x588a18[_0x41a0b8(0x72)]=_0x5d8994,_0x588a18[_0x41a0b8(0xa0)]=_0x1edd74,_0x726b47=Object[_0x41a0b8(0x89)]({},_0x726b47,_0x588a18),_0x57d7e9['Gopia'](limit,function(){const _0x1f2e8f={'qbsEl':function(_0x351356,_0x10f689){const _0x12f8ff=a47_0xfde8;return _0x57d7e9[_0x12f8ff(0x82)](_0x351356,_0x10f689);},'pkSzm':function(_0x498cab,_0x2bc4d2){const _0x81ff5f=a47_0xfde8;return _0x57d7e9[_0x81ff5f(0x9d)](_0x498cab,_0x2bc4d2);},'TvBIz':function(_0x5d58f7,_0x4262a3,_0x4d0706){return _0x57d7e9['FMqoZ'](_0x5d58f7,_0x4262a3,_0x4d0706);},'FINxZ':function(_0x4827bd,_0x4294d2){const _0xb52ada=a47_0xfde8;return _0x57d7e9[_0xb52ada(0x7d)](_0x4827bd,_0x4294d2);}};return new Promise(function(_0x22dcfd){const _0x7bb571=a47_0xfde8,_0x179c4f={'nYWvB':function(_0x36a93a,_0x5c4f19){const _0x186877=a47_0xfde8;return _0x1f2e8f[_0x186877(0xa9)](_0x36a93a,_0x5c4f19);},'wwrPS':function(_0x13c625,_0x2c675f){return _0x1f2e8f['pkSzm'](_0x13c625,_0x2c675f);},'BmvAA':function(_0x370f91,_0x33418,_0x3fd30a){return _0x1f2e8f['TvBIz'](_0x370f91,_0x33418,_0x3fd30a);},'TpLXR':function(_0x387b0b,_0x4ffa46){return _0x1f2e8f['FINxZ'](_0x387b0b,_0x4ffa46);}};_0x1f2e8f[_0x7bb571(0xa7)](_0x335044,_0x726b47,function(_0x5cc104,_0xa5075b){const _0x36e920=_0x7bb571,_0x4f6600=_0xa5075b&&_0xa5075b[_0x36e920(0x7a)]&&(_0xa5075b['run'][_0x36e920(0x94)]||_0xa5075b[_0x36e920(0x7a)][_0x36e920(0x84)]&&_0x179c4f['nYWvB'](_0xa5075b[_0x36e920(0x7a)][_0x36e920(0x84)][_0x36e920(0xa5)],0x0));_0x179c4f[_0x36e920(0x83)](_0x4f6600,_0x5cc104)&&(hasFailure=!![]),_0x5b552e&&_0x179c4f[_0x36e920(0x78)](_0x5b552e,_0x5cc104,_0xa5075b),_0x179c4f['TpLXR'](_0x22dcfd,_0xa5075b);});});});},wrappedNewman;};async function main(){const _0x287257=a47_0x1b0a85,_0x1d310d={'GzrFL':function(_0x446a17,_0x2801fa){return _0x446a17(_0x2801fa);},'jMkkk':function(_0x595ead,_0x317e4d){return _0x595ead+_0x317e4d;},'yDnXh':function(_0x1b1957,_0x5c9834){return _0x1b1957+_0x5c9834;},'PDdlS':_0x287257(0x8b)};try{await BrowserstackCLI[_0x287257(0x9f)]()['bootstrap']();}catch(_0x4900fa){}try{_0x1d310d[_0x287257(0x95)](require,path[_0x287257(0x92)](scriptFile));}catch(_0x4294c9){process[_0x287257(0x87)][_0x287257(0x91)](_0x1d310d[_0x287257(0x8a)](_0x1d310d[_0x287257(0x8d)](_0x1d310d[_0x287257(0x7c)],_0x4294c9['message']||_0x4294c9),'\x0a')),process[_0x287257(0x77)]=0x1;}}main(),process['on'](a47_0x1b0a85(0x9b),function(){hasFailure&&(process['exitCode']=0x1);}),process['on']('exit',function(){const _0x2e457b=a47_0x1b0a85,_0x2b3a9c={};_0x2b3a9c[_0x2e457b(0x7f)]=function(_0x77b69e,_0x38ba9a){return _0x77b69e===_0x38ba9a;};const _0x42266d=_0x2b3a9c;hasFailure&&_0x42266d[_0x2e457b(0x7f)](process['exitCode'],0x0)&&(process[_0x2e457b(0x77)]=0x1);});
2
+ 'use strict';const a47_0x13b50e=a47_0x4443;function a47_0x5e56(){const _0x29bd66=['nEOOQ','resolve','7pGrqXu','exitCode','bOMgf','Maxoz','QkjQT','run','argv','message','SYiGB','cCouq','getInstance','pWztt','write','oNUGB','cli','assign','SpRNJ','stderr','_load','ifBfr','reporters','bootstrap','exit','PcfHn','2YiRTfM','collectionPath','[Newman]\x20scriptRunner:\x20failed\x20to\x20load\x20script:\x20','join','811587UTNRhv','HVSuR','failures','browserstack','collection','FJjVQ','upXLr','create','path','19314pPqCOi','concat','1030JInItA','string','VfllR','beforeExit','newman','FOwMe','qpOeh','module','[Newman]\x20scriptRunner:\x20no\x20script\x20file\x20provided\x0a','10KDYnTg','reporter','PNKwJ','71574fGEtNL','length','viMQw','../v2/browserstackCLI','index.js','587516eWwWxO','GIWci','NkLQP','XuZgH','call','595552ZIKNCq','91046Tedtrt','4636500HZnGUc'];a47_0x5e56=function(){return _0x29bd66;};return a47_0x5e56();}(function(_0x54e092,_0x1a24f2){const _0x266774=a47_0x4443,_0x1e5d08=_0x54e092();while(!![]){try{const _0x5946b2=parseInt(_0x266774(0x206))/0x1*(parseInt(_0x266774(0x1ea))/0x2)+parseInt(_0x266774(0x20a))/0x3+parseInt(_0x266774(0x1e4))/0x4*(-parseInt(_0x266774(0x1dc))/0x5)+-parseInt(_0x266774(0x1df))/0x6*(-parseInt(_0x266774(0x1ee))/0x7)+-parseInt(_0x266774(0x1e9))/0x8+-parseInt(_0x266774(0x213))/0x9*(parseInt(_0x266774(0x215))/0xa)+parseInt(_0x266774(0x1eb))/0xb;if(_0x5946b2===_0x1a24f2)break;else _0x1e5d08['push'](_0x1e5d08['shift']());}catch(_0x4dfd0f){_0x1e5d08['push'](_0x1e5d08['shift']());}}}(a47_0x5e56,0x323c4));const path=require(a47_0x13b50e(0x212)),Module=require(a47_0x13b50e(0x1da)),BrowserstackCLI=require(a47_0x13b50e(0x1e2)),scriptFile=process[a47_0x13b50e(0x1f4)][0x2],maxParallel=parseInt(process[a47_0x13b50e(0x1f4)][0x3])||0x0;!scriptFile&&(process[a47_0x13b50e(0x1ff)][a47_0x13b50e(0x1fa)](a47_0x13b50e(0x1db)),process[a47_0x13b50e(0x204)](0x1));const reporterPath=path[a47_0x13b50e(0x209)](__dirname,a47_0x13b50e(0x1dd),a47_0x13b50e(0x1e3)),originalResolveFilename=Module['_resolveFilename'];Module['_resolveFilename']=function(_0x1fd718,_0x3b04ec,_0x1a7e45,_0x86e88e){const _0xa270b3=a47_0x13b50e,_0x4ef865={};_0x4ef865[_0xa270b3(0x1e1)]=function(_0x5d00f1,_0x2ed99b){return _0x5d00f1===_0x2ed99b;},_0x4ef865[_0xa270b3(0x1f7)]='newman-reporter-browserstack';const _0x3b907c=_0x4ef865;if(_0x3b907c[_0xa270b3(0x1e1)](_0x1fd718,_0x3b907c[_0xa270b3(0x1f7)]))return reporterPath;return originalResolveFilename[_0xa270b3(0x1e8)](this,_0x1fd718,_0x3b04ec,_0x1a7e45,_0x86e88e);};function a47_0x4443(_0x262772,_0x60a14d){const _0x5e562d=a47_0x5e56();return a47_0x4443=function(_0x444330,_0x3dc7dd){_0x444330=_0x444330-0x1d4;let _0x49ff0e=_0x5e562d[_0x444330];return _0x49ff0e;},a47_0x4443(_0x262772,_0x60a14d);}let limit;try{const pLimit=require('p-limit'),concurrency=maxParallel&&maxParallel>0x0?maxParallel:Infinity;limit=pLimit(concurrency);}catch(a47_0x4acdd3){limit=function(_0x1ad6e0){const _0x458b7b=a47_0x13b50e,_0x4698d5={'PNKwJ':function(_0x5e8e9a){return _0x5e8e9a();}};return _0x4698d5[_0x458b7b(0x1de)](_0x1ad6e0);};}let wrappedNewman=null,hasFailure=![];const originalLoad=Module['_load'];Module[a47_0x13b50e(0x200)]=function(_0x57a501,_0x5a45a2,_0x47fdca){const _0x31eed3=a47_0x13b50e,_0x5496b0={'qpOeh':function(_0x48ed69,_0x11e60f){return _0x48ed69>_0x11e60f;},'upXLr':function(_0x102134,_0x11ec41){return _0x102134||_0x11ec41;},'GIWci':function(_0x2f1831,_0x4fa9bc,_0xb9fcb){return _0x2f1831(_0x4fa9bc,_0xb9fcb);},'SpRNJ':function(_0x672053,_0x17dde2){return _0x672053(_0x17dde2);},'eNQLO':_0x31eed3(0x1fc),'ifBfr':function(_0x3a30cd,_0x4fa13a){return _0x3a30cd===_0x4fa13a;},'SYiGB':_0x31eed3(0x20d),'FJjVQ':_0x31eed3(0x1d4),'IHMye':function(_0xb73d32,_0x4ad41f){return _0xb73d32(_0x4ad41f);},'QkjQT':function(_0x305455,_0x3769bf){return _0x305455!==_0x3769bf;},'XuZgH':_0x31eed3(0x1d7)},_0x55d1ea=originalLoad[_0x31eed3(0x1e8)](this,_0x57a501,_0x5a45a2,_0x47fdca);if(_0x5496b0[_0x31eed3(0x1f2)](_0x57a501,_0x5496b0[_0x31eed3(0x1e7)]))return _0x55d1ea;if(wrappedNewman)return wrappedNewman;const _0x34020b=_0x55d1ea[_0x31eed3(0x1f3)]['bind'](_0x55d1ea);return wrappedNewman=Object[_0x31eed3(0x211)](_0x55d1ea),wrappedNewman[_0x31eed3(0x1f3)]=function(_0x544b71,_0x15f873){const _0x5e0495=_0x31eed3,_0x49ca92={'VfllR':function(_0x5a6902,_0x3ab3e8){const _0x1887aa=a47_0x4443;return _0x5496b0[_0x1887aa(0x1d9)](_0x5a6902,_0x3ab3e8);},'iEDPU':function(_0x2b2204,_0x1ac95d){const _0x37113f=a47_0x4443;return _0x5496b0[_0x37113f(0x210)](_0x2b2204,_0x1ac95d);},'NkLQP':function(_0x188b1f,_0x3da837,_0x57f7fe){const _0xa7e3b3=a47_0x4443;return _0x5496b0[_0xa7e3b3(0x1e5)](_0x188b1f,_0x3da837,_0x57f7fe);},'WVQZC':function(_0x3bae43,_0x5823fb){const _0x49ebc7=a47_0x4443;return _0x5496b0[_0x49ebc7(0x1fe)](_0x3bae43,_0x5823fb);}};let _0x24b05e=_0x544b71[_0x5e0495(0x202)]||[_0x5496b0['eNQLO']];_0x5496b0[_0x5e0495(0x201)](_0x24b05e['indexOf'](_0x5496b0[_0x5e0495(0x1f6)]),-0x1)&&(_0x24b05e=_0x24b05e[_0x5e0495(0x214)]([_0x5496b0[_0x5e0495(0x1f6)]]));const _0x1c06cb=_0x5496b0[_0x5e0495(0x201)](typeof _0x544b71['collection'],_0x5496b0[_0x5e0495(0x20f)])?_0x544b71[_0x5e0495(0x20e)]:undefined,_0x1b7b1a={};_0x1b7b1a[_0x5e0495(0x207)]=_0x1c06cb;const _0xfbf273=Object[_0x5e0495(0x1fd)]({},_0x544b71[_0x5e0495(0x1dd)],{'browserstack':Object['assign']({},_0x544b71['reporter']&&_0x544b71[_0x5e0495(0x1dd)][_0x5e0495(0x20d)],_0x1b7b1a)}),_0x21eadf={};return _0x21eadf['reporters']=_0x24b05e,_0x21eadf[_0x5e0495(0x1dd)]=_0xfbf273,_0x544b71=Object['assign']({},_0x544b71,_0x21eadf),_0x5496b0['IHMye'](limit,function(){const _0x3b03d6={'nEOOQ':function(_0x24471c,_0x126904){const _0x15c045=a47_0x4443;return _0x49ca92[_0x15c045(0x1d5)](_0x24471c,_0x126904);},'Maxoz':function(_0x5c3a0a,_0x5c5630){return _0x49ca92['iEDPU'](_0x5c3a0a,_0x5c5630);},'pWztt':function(_0x28a555,_0x4ec0e9,_0x534e5f){const _0x39518e=a47_0x4443;return _0x49ca92[_0x39518e(0x1e6)](_0x28a555,_0x4ec0e9,_0x534e5f);},'bOMgf':function(_0x3e072e,_0x4527f0){return _0x49ca92['WVQZC'](_0x3e072e,_0x4527f0);}};return new Promise(function(_0x4aa210){const _0x200c42=a47_0x4443;_0x3b03d6[_0x200c42(0x1f9)](_0x34020b,_0x544b71,function(_0x5b3bf6,_0x2723ad){const _0x5bac7e=_0x200c42,_0x2b4fae=_0x2723ad&&_0x2723ad[_0x5bac7e(0x1f3)]&&(_0x2723ad[_0x5bac7e(0x1f3)]['error']||_0x2723ad['run'][_0x5bac7e(0x20c)]&&_0x3b03d6[_0x5bac7e(0x1ec)](_0x2723ad[_0x5bac7e(0x1f3)][_0x5bac7e(0x20c)][_0x5bac7e(0x1e0)],0x0));_0x3b03d6[_0x5bac7e(0x1f1)](_0x2b4fae,_0x5b3bf6)&&(hasFailure=!![]),_0x15f873&&_0x3b03d6['pWztt'](_0x15f873,_0x5b3bf6,_0x2723ad),_0x3b03d6[_0x5bac7e(0x1f0)](_0x4aa210,_0x2723ad);});});});},wrappedNewman;};async function main(){const _0x5858b9=a47_0x13b50e,_0x2f17cb={'PcfHn':function(_0x47497a,_0x43e107){return _0x47497a(_0x43e107);},'FOwMe':function(_0x1b73ae,_0xc83a5f){return _0x1b73ae+_0xc83a5f;},'HVSuR':function(_0x247840,_0x2d2f28){return _0x247840+_0x2d2f28;},'FRKHI':_0x5858b9(0x208)};try{await BrowserstackCLI[_0x5858b9(0x1f8)]()[_0x5858b9(0x203)]();}catch(_0x4220eb){}try{_0x2f17cb[_0x5858b9(0x205)](require,path[_0x5858b9(0x1ed)](scriptFile));}catch(_0x5d7f66){process[_0x5858b9(0x1ff)][_0x5858b9(0x1fa)](_0x2f17cb[_0x5858b9(0x1d8)](_0x2f17cb[_0x5858b9(0x20b)](_0x2f17cb['FRKHI'],_0x5d7f66[_0x5858b9(0x1f5)]||_0x5d7f66),'\x0a')),process[_0x5858b9(0x1ef)]=0x1;}}main(),process['on'](a47_0x13b50e(0x1d6),function(){const _0x2d54b1=a47_0x13b50e;hasFailure&&(process[_0x2d54b1(0x1ef)]=0x1);}),process['on'](a47_0x13b50e(0x204),function(){const _0x31c940=a47_0x13b50e,_0x3388d6={};_0x3388d6[_0x31c940(0x1fb)]=function(_0x2ecd3e,_0x18d3e){return _0x2ecd3e===_0x18d3e;};const _0x5c3219=_0x3388d6;hasFailure&&_0x5c3219['oNUGB'](process[_0x31c940(0x1ef)],0x0)&&(process[_0x31c940(0x1ef)]=0x1);});
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a48_0x1e3fbc=a48_0x363c;function a48_0x57ea(){const _0x21b561=['split','exports','modifyBrowserStackW3CCaps','splice','1060804feGivk','stringify','unlinkSync','../../helpers/logger','qLoOk','inherit','forEach','NODE_OPTIONS','4590680ixDttA','XztSE','isUndefined','join','platform','vVhTk','WKhio','length','test_settings','selenium','767418viukeX','vBEka','ElCrh','findIndex','trim','2380637IHUnok','child_process','modifyBrowserStackCaps','--require\x20','mergeDeep','BYvud','PPARs','path','existsSync','debug','FLdPv','../../helpers/BrowserStackSetup','slice','push','platforms','--config','config','map','info','UgGiK','\x22:\x20it\x20resolves\x20outside\x20the\x20project\x20directory.','VPAjk','1110910BOKnyJ','SKplg','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','XDVYE','desiredCapabilities','6WxTVml','FcPwo','--env','nightwatch.json','start_process','writeFileSync','child\x20process\x20exited\x20with\x20code\x20','383932RZiwqD','162162WTuzKa','BROWSERSTACK_FRAMEWORK','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','eqxWV','close','../utils/constants','nightwatch.cmd','env','assign','../../index','warn','resolve','now','Jlzop','../../helpers/helper','cwd','getPlatformName','port','test','host','fjXLa','Ignoring\x20--config\x20path\x20\x22'];a48_0x57ea=function(){return _0x21b561;};return a48_0x57ea();}(function(_0x40097e,_0x5d1c54){const _0x34c305=a48_0x363c,_0x40f44a=_0x40097e();while(!![]){try{const _0x466618=-parseInt(_0x34c305(0x190))/0x1+parseInt(_0x34c305(0x18f))/0x2+-parseInt(_0x34c305(0x168))/0x3+-parseInt(_0x34c305(0x1aa))/0x4+-parseInt(_0x34c305(0x183))/0x5+parseInt(_0x34c305(0x188))/0x6*(parseInt(_0x34c305(0x16d))/0x7)+parseInt(_0x34c305(0x15e))/0x8;if(_0x466618===_0x5d1c54)break;else _0x40f44a['push'](_0x40f44a['shift']());}catch(_0x47d1d6){_0x40f44a['push'](_0x40f44a['shift']());}}}(a48_0x57ea,0x30f5d));const fs=require('fs'),path=require(a48_0x1e3fbc(0x174)),{spawn}=require(a48_0x1e3fbc(0x16e)),logger=require(a48_0x1e3fbc(0x159))['winstonLogger'],{default:BrowserStackSetup}=require(a48_0x1e3fbc(0x178)),helper=require(a48_0x1e3fbc(0x19e)),constants=require(a48_0x1e3fbc(0x195)),getUserNightwatchConfigs=(_0x15c78d,_0x5ca3bf)=>{const _0x5398db=a48_0x1e3fbc,_0x62e84e={'vBEka':'nightwatch.conf.js','FcPwo':_0x5398db(0x18b),'eqxWV':function(_0x582932,_0x200423){return _0x582932(_0x200423);},'NpxoE':_0x5398db(0x192)};let _0xb551bc=null,_0x406551={};const _0xdc7f9f=_0x5ca3bf['findIndex'](_0x15e877=>_0x15e877===_0x5398db(0x17c)),_0x5c9455=!helper[_0x5398db(0x160)](_0x15c78d[_0x5398db(0x17d)])?helper['resolveWithinCwd'](_0x15c78d['config']):null;!helper[_0x5398db(0x160)](_0x15c78d['config'])&&!_0x5c9455&&logger[_0x5398db(0x19a)](_0x5398db(0x1a5)+_0x15c78d[_0x5398db(0x17d)]+_0x5398db(0x181));if(_0x5c9455&&fs[_0x5398db(0x175)](_0x5c9455))_0xb551bc=_0x5c9455,_0x5ca3bf['splice'](_0xdc7f9f,0x2);else{if(fs[_0x5398db(0x175)](path[_0x5398db(0x161)](process[_0x5398db(0x19f)](),_0x62e84e[_0x5398db(0x169)])))_0xb551bc=path[_0x5398db(0x161)](process[_0x5398db(0x19f)](),_0x62e84e[_0x5398db(0x169)]);else fs[_0x5398db(0x175)](path[_0x5398db(0x161)](process['cwd'](),_0x62e84e['FcPwo']))&&(_0xb551bc=path[_0x5398db(0x161)](process[_0x5398db(0x19f)](),_0x62e84e[_0x5398db(0x189)]));}return _0xb551bc?(logger[_0x5398db(0x17f)]('Getting\x20your\x20nightwatch\x20configs\x20from\x20'+_0xb551bc),_0x406551=_0x62e84e[_0x5398db(0x193)](require,_0xb551bc)):logger[_0x5398db(0x17f)](_0x62e84e['NpxoE']),_0x406551;},removeExistingEnvs=_0x21424f=>{const _0x13f2e7=a48_0x1e3fbc,_0x3f0712={};_0x3f0712[_0x13f2e7(0x19d)]=function(_0x335f36,_0x592ea2){return _0x335f36>_0x592ea2;},_0x3f0712[_0x13f2e7(0x1a4)]=function(_0x5abeba,_0x86180c){return _0x5abeba>_0x86180c;};const _0x3ab8ac=_0x3f0712;let _0x5f4078=_0x21424f[_0x13f2e7(0x16b)](_0x1f92d1=>_0x1f92d1===_0x13f2e7(0x18a));_0x3ab8ac[_0x13f2e7(0x19d)](_0x5f4078,-0x1)&&_0x21424f[_0x13f2e7(0x1a9)](_0x5f4078,0x2),_0x5f4078=_0x21424f['findIndex'](_0xa935a=>_0xa935a==='-e'),_0x3ab8ac['fjXLa'](_0x5f4078,-0x1)&&_0x21424f[_0x13f2e7(0x1a9)](_0x5f4078,0x2);};function a48_0x363c(_0x4d1580,_0x2d3d17){const _0x57eaf7=a48_0x57ea();return a48_0x363c=function(_0x363c45,_0x54b3b9){_0x363c45=_0x363c45-0x158;let _0x5daade=_0x57eaf7[_0x363c45];return _0x5daade;},a48_0x363c(_0x4d1580,_0x2d3d17);}function run(_0x24aa66,_0x1483d6,_0x337bfd){const _0x2b7670=a48_0x1e3fbc,_0x8e0084={'PPARs':'nightwatch','UgGiK':function(_0x130969,_0x534a6f){return _0x130969+_0x534a6f;},'SKplg':_0x2b7670(0x166),'XDVYE':function(_0x23d0d1,_0x242f41,_0x3fa040){return _0x23d0d1(_0x242f41,_0x3fa040);},'XztSE':'hub.browserstack.com','vVhTk':_0x2b7670(0x185),'TYmVM':function(_0x31019a,_0x4e7217){return _0x31019a===_0x4e7217;},'qLoOk':'nightwatch-browserstack.json','FLdPv':function(_0x1af077,_0x18a5e0){return _0x1af077(_0x18a5e0);},'ElCrh':_0x2b7670(0x199),'BYvud':function(_0x2fbdf9,_0x595a1f,_0x54249e,_0x2aa7f9){return _0x2fbdf9(_0x595a1f,_0x54249e,_0x2aa7f9);},'NTDVk':_0x2b7670(0x196),'slgBZ':_0x2b7670(0x17c),'VPAjk':_0x2b7670(0x18a),'jznxK':_0x2b7670(0x15b),'WKhio':_0x2b7670(0x194)};if(!_0x337bfd['config'])return;const _0xd34777=_0x8e0084[_0x2b7670(0x186)](getUserNightwatchConfigs,_0x24aa66,_0x1483d6),_0x5731d0={};_0x5731d0[_0x2b7670(0x18c)]=![];const _0x2c5d76={};_0x2c5d76[_0x2b7670(0x1a3)]=_0x8e0084[_0x2b7670(0x15f)],_0x2c5d76[_0x2b7670(0x1a1)]=0x1bb;const _0x2b0f13={};_0x2b0f13['webdriver']=_0x5731d0,_0x2b0f13[_0x2b7670(0x167)]=_0x2c5d76;const _0x27a0d0=_0x2b0f13;logger[_0x2b7670(0x17f)](_0x8e0084[_0x2b7670(0x163)]);const _0x5a10bb={..._0xd34777},_0x1e451a=_0x5a10bb,_0x4b5003=helper['useW3C'](_0x337bfd[_0x2b7670(0x17d)]),_0x3a747f=[];_0x337bfd[_0x2b7670(0x17d)][_0x2b7670(0x17b)][_0x2b7670(0x15c)]((_0x35baa1,_0x4616ba)=>{const _0x478c98=_0x2b7670;_0x4b5003?_0x3a747f[_0x478c98(0x17a)](helper[_0x478c98(0x1a8)](_0x337bfd[_0x478c98(0x17d)],_0x8e0084[_0x478c98(0x173)],_0x4616ba)):_0x3a747f[_0x478c98(0x17a)](helper[_0x478c98(0x16f)](_0x337bfd[_0x478c98(0x17d)],_0x8e0084[_0x478c98(0x173)],_0x4616ba));});const _0x3645ef={},_0x1ab503=[];_0x24aa66[_0x2b7670(0x197)]=_0x24aa66[_0x2b7670(0x197)]||_0x24aa66['e'];const _0x118aab=_0x24aa66[_0x2b7670(0x197)]?_0x24aa66[_0x2b7670(0x197)][_0x2b7670(0x16c)]()[_0x2b7670(0x1a6)](',')[_0x2b7670(0x17e)](_0x1f978e=>_0x1f978e[_0x2b7670(0x16c)]())['filter'](_0xd5cec8=>_0xd5cec8!==''):[''];_0x8e0084['TYmVM'](_0x118aab[_0x2b7670(0x165)],0x0)&&_0x118aab[_0x2b7670(0x17a)]('');_0x118aab['forEach'](_0x1f8ee6=>{const _0x3d5b52=_0x2b7670;_0x3a747f[_0x3d5b52(0x15c)](_0x4d2a52=>{const _0x15bd8e=_0x3d5b52;let _0x587978=_0x8e0084[_0x15bd8e(0x180)](helper[_0x15bd8e(0x1a0)](_0x4d2a52,'_'),'_'+Date[_0x15bd8e(0x19c)]());_0x1f8ee6&&(_0x587978+='_'+_0x1f8ee6);if(_0x1f8ee6&&(!_0xd34777[_0x8e0084['SKplg']]||!_0xd34777[_0x8e0084[_0x15bd8e(0x184)]][_0x1f8ee6]))return;const _0x5b1c91={..._0x27a0d0};_0x5b1c91[_0x15bd8e(0x187)]=_0x4d2a52;const _0x37324c=_0x5b1c91;_0x3645ef[_0x587978]=_0x1f8ee6?helper[_0x15bd8e(0x171)](_0xd34777[_0x8e0084[_0x15bd8e(0x184)]][_0x1f8ee6],_0x37324c):_0x37324c,_0x1ab503[_0x15bd8e(0x17a)](_0x587978);});});!_0x1e451a['test_settings']&&(_0x1e451a[_0x2b7670(0x166)]={});_0x1e451a[_0x2b7670(0x166)]={..._0x1e451a['test_settings'],..._0x3645ef};const _0x14c1d9=path[_0x2b7670(0x161)](__dirname,_0x8e0084[_0x2b7670(0x15a)]);fs[_0x2b7670(0x18d)](_0x14c1d9,JSON[_0x2b7670(0x1ab)](_0x1e451a)),_0x8e0084[_0x2b7670(0x177)](removeExistingEnvs,_0x1483d6);const _0x1b977d=require[_0x2b7670(0x19b)](_0x8e0084[_0x2b7670(0x16a)]),_0x956307=process[_0x2b7670(0x197)][_0x2b7670(0x15d)]||'',_0xbc4fc5=_0x2b7670(0x170)+JSON['stringify'](_0x1b977d),_0xf73d9d=_0x956307?_0x956307+'\x20'+_0xbc4fc5:_0xbc4fc5,_0x4f1a8f=Object[_0x2b7670(0x198)]({},process['env'],{'NODE_OPTIONS':_0xf73d9d,'BROWSERSTACK_FRAMEWORK':process[_0x2b7670(0x197)][_0x2b7670(0x191)]||_0x8e0084['PPARs']}),_0x442e1b=_0x8e0084[_0x2b7670(0x172)](spawn,/^win/[_0x2b7670(0x1a2)](process[_0x2b7670(0x162)])?_0x8e0084['NTDVk']:_0x8e0084[_0x2b7670(0x173)],[_0x8e0084['slgBZ'],_0x14c1d9,..._0x1483d6[_0x2b7670(0x179)](0x1),_0x8e0084[_0x2b7670(0x182)],_0x1ab503[_0x2b7670(0x161)](',')],{'stdio':_0x8e0084['jznxK'],'env':_0x4f1a8f});_0x442e1b['on'](_0x8e0084[_0x2b7670(0x164)],async _0x335ae3=>{const _0x47c9bf=_0x2b7670;logger[_0x47c9bf(0x176)](_0x47c9bf(0x18e)+_0x335ae3),logger['info']('Deleting\x20'+_0x14c1d9),fs[_0x47c9bf(0x158)](_0x14c1d9);});}module[a48_0x1e3fbc(0x1a7)]=run;
2
+ 'use strict';const a48_0x230d54=a48_0x12d0;(function(_0x541bf5,_0x459fd0){const _0x11df4e=a48_0x12d0,_0x3c8c64=_0x541bf5();while(!![]){try{const _0x22ea26=-parseInt(_0x11df4e(0x1d3))/0x1*(parseInt(_0x11df4e(0x20a))/0x2)+-parseInt(_0x11df4e(0x1ef))/0x3*(-parseInt(_0x11df4e(0x1f3))/0x4)+parseInt(_0x11df4e(0x1dd))/0x5+-parseInt(_0x11df4e(0x1ff))/0x6+parseInt(_0x11df4e(0x1e0))/0x7*(parseInt(_0x11df4e(0x1c7))/0x8)+-parseInt(_0x11df4e(0x209))/0x9+parseInt(_0x11df4e(0x1c5))/0xa*(parseInt(_0x11df4e(0x1f2))/0xb);if(_0x22ea26===_0x459fd0)break;else _0x3c8c64['push'](_0x3c8c64['shift']());}catch(_0x40a62a){_0x3c8c64['push'](_0x3c8c64['shift']());}}}(a48_0x42a6,0x5ebee));const fs=require('fs'),path=require(a48_0x230d54(0x1c3)),{spawn}=require(a48_0x230d54(0x1cd)),logger=require(a48_0x230d54(0x1ea))[a48_0x230d54(0x212)],{default:BrowserStackSetup}=require(a48_0x230d54(0x1c6)),helper=require(a48_0x230d54(0x1ca)),constants=require(a48_0x230d54(0x1d2)),getUserNightwatchConfigs=(_0x526802,_0x275f41)=>{const _0x2307f2=a48_0x230d54,_0x10cf36={'EpgnY':_0x2307f2(0x20b),'jGCZI':_0x2307f2(0x1db),'MLeoZ':function(_0x4e3f7f,_0x34eea8){return _0x4e3f7f(_0x34eea8);},'nGJUw':_0x2307f2(0x1f5)};let _0x1661bf=null,_0x41b1d4={};const _0x466875=_0x275f41[_0x2307f2(0x1f6)](_0x537602=>_0x537602===_0x2307f2(0x1d6)),_0x3a1c96=!helper['isUndefined'](_0x526802[_0x2307f2(0x1c9)])?helper[_0x2307f2(0x216)](_0x526802['config']):null;!helper[_0x2307f2(0x1de)](_0x526802['config'])&&!_0x3a1c96&&logger[_0x2307f2(0x207)](_0x2307f2(0x1e4)+_0x526802[_0x2307f2(0x1c9)]+'\x22:\x20it\x20resolves\x20outside\x20the\x20project\x20directory.');if(_0x3a1c96&&fs[_0x2307f2(0x1ec)](_0x3a1c96))_0x1661bf=_0x3a1c96,_0x275f41[_0x2307f2(0x1dc)](_0x466875,0x2);else{if(fs[_0x2307f2(0x1ec)](path[_0x2307f2(0x1f8)](process['cwd'](),_0x10cf36[_0x2307f2(0x1d9)])))_0x1661bf=path['join'](process[_0x2307f2(0x1f0)](),_0x10cf36[_0x2307f2(0x1d9)]);else fs[_0x2307f2(0x1ec)](path[_0x2307f2(0x1f8)](process['cwd'](),_0x10cf36[_0x2307f2(0x218)]))&&(_0x1661bf=path[_0x2307f2(0x1f8)](process[_0x2307f2(0x1f0)](),_0x10cf36['jGCZI']));}return _0x1661bf?(logger[_0x2307f2(0x1c1)](_0x2307f2(0x1fe)+_0x1661bf),_0x41b1d4=_0x10cf36['MLeoZ'](require,_0x1661bf)):logger[_0x2307f2(0x1c1)](_0x10cf36[_0x2307f2(0x1cc)]),_0x41b1d4;},removeExistingEnvs=_0x532d43=>{const _0x3e0caf=a48_0x230d54,_0x345a9f={};_0x345a9f[_0x3e0caf(0x1cb)]=function(_0xcd84d,_0x3219e1){return _0xcd84d>_0x3219e1;},_0x345a9f['CkjBe']=function(_0xab4b2e,_0x49f72a){return _0xab4b2e>_0x49f72a;};const _0x1f1d43=_0x345a9f;let _0x47360d=_0x532d43['findIndex'](_0x4871a6=>_0x4871a6==='--env');_0x1f1d43[_0x3e0caf(0x1cb)](_0x47360d,-0x1)&&_0x532d43[_0x3e0caf(0x1dc)](_0x47360d,0x2),_0x47360d=_0x532d43['findIndex'](_0x552c45=>_0x552c45==='-e'),_0x1f1d43[_0x3e0caf(0x1d5)](_0x47360d,-0x1)&&_0x532d43['splice'](_0x47360d,0x2);};function run(_0x3fae3b,_0x10604a,_0x56906e){const _0x3b1e98=a48_0x230d54,_0x55b134={'DSWPt':_0x3b1e98(0x1f9),'qXTqO':function(_0x235d03,_0x28f78e){return _0x235d03+_0x28f78e;},'xUnlM':_0x3b1e98(0x1d0),'pcFph':function(_0x142006,_0x39a816,_0x188918){return _0x142006(_0x39a816,_0x188918);},'EUowQ':_0x3b1e98(0x210),'vECFa':_0x3b1e98(0x1d7),'YilKg':function(_0x173626,_0x390814){return _0x173626===_0x390814;},'WyYsw':_0x3b1e98(0x1c4),'iXyVs':function(_0x4eeee4,_0x53b0b7){return _0x4eeee4(_0x53b0b7);},'NVSRX':_0x3b1e98(0x1e7),'KkKid':function(_0x2e70d3,_0x5dc77e,_0x1b00a1,_0x330537){return _0x2e70d3(_0x5dc77e,_0x1b00a1,_0x330537);},'KHpUt':_0x3b1e98(0x211),'dKRNT':_0x3b1e98(0x1d6),'QKvvc':'--env','wheVQ':_0x3b1e98(0x1e3),'uxjhK':_0x3b1e98(0x1d8)};if(!_0x56906e[_0x3b1e98(0x1c9)])return;const _0x40f6fb=_0x55b134[_0x3b1e98(0x1ee)](getUserNightwatchConfigs,_0x3fae3b,_0x10604a),_0x39a06f={};_0x39a06f[_0x3b1e98(0x1e9)]=![];const _0x1ab280={};_0x1ab280[_0x3b1e98(0x1fd)]=_0x55b134['EUowQ'],_0x1ab280[_0x3b1e98(0x1d1)]=0x1bb;const _0x2e6081={};_0x2e6081['webdriver']=_0x39a06f,_0x2e6081[_0x3b1e98(0x1e8)]=_0x1ab280;const _0x3797b9=_0x2e6081;logger['info'](_0x55b134['vECFa']);const _0x23f58d={..._0x40f6fb},_0x498e83=_0x23f58d,_0x114434=helper[_0x3b1e98(0x1e5)](_0x56906e[_0x3b1e98(0x1c9)]),_0x308c9c=[];_0x56906e[_0x3b1e98(0x1c9)][_0x3b1e98(0x1f1)]['forEach']((_0x29fef0,_0x3bc6ee)=>{const _0x32500b=_0x3b1e98;_0x114434?_0x308c9c['push'](helper[_0x32500b(0x1ce)](_0x56906e[_0x32500b(0x1c9)],_0x55b134['DSWPt'],_0x3bc6ee)):_0x308c9c[_0x32500b(0x215)](helper[_0x32500b(0x1e1)](_0x56906e[_0x32500b(0x1c9)],_0x55b134[_0x32500b(0x1fb)],_0x3bc6ee));});const _0x189754={},_0x5aa482=[];_0x3fae3b[_0x3b1e98(0x202)]=_0x3fae3b[_0x3b1e98(0x202)]||_0x3fae3b['e'];const _0x4d1411=_0x3fae3b[_0x3b1e98(0x202)]?_0x3fae3b['env']['trim']()[_0x3b1e98(0x20d)](',')[_0x3b1e98(0x1cf)](_0x5533ed=>_0x5533ed[_0x3b1e98(0x1eb)]())[_0x3b1e98(0x213)](_0x46607c=>_0x46607c!==''):[''];_0x55b134[_0x3b1e98(0x206)](_0x4d1411[_0x3b1e98(0x1c2)],0x0)&&_0x4d1411[_0x3b1e98(0x215)]('');_0x4d1411['forEach'](_0x21ada8=>{const _0x41f02a=_0x3b1e98,_0xb87150={'CqMGq':function(_0x140047,_0x982bd9){const _0x25f700=a48_0x12d0;return _0x55b134[_0x25f700(0x1fa)](_0x140047,_0x982bd9);},'uOOeK':_0x55b134['xUnlM']};_0x308c9c[_0x41f02a(0x217)](_0x28fac1=>{const _0x2f1ce2=_0x41f02a;let _0x43c342=_0xb87150[_0x2f1ce2(0x205)](helper[_0x2f1ce2(0x1c8)](_0x28fac1,'_'),'_'+Date[_0x2f1ce2(0x1e2)]());_0x21ada8&&(_0x43c342+='_'+_0x21ada8);if(_0x21ada8&&(!_0x40f6fb[_0xb87150[_0x2f1ce2(0x1c0)]]||!_0x40f6fb[_0xb87150[_0x2f1ce2(0x1c0)]][_0x21ada8]))return;const _0x3e3714={..._0x3797b9};_0x3e3714['desiredCapabilities']=_0x28fac1;const _0x4627b1=_0x3e3714;_0x189754[_0x43c342]=_0x21ada8?helper[_0x2f1ce2(0x20c)](_0x40f6fb[_0xb87150[_0x2f1ce2(0x1c0)]][_0x21ada8],_0x4627b1):_0x4627b1,_0x5aa482['push'](_0x43c342);});});!_0x498e83[_0x3b1e98(0x1d0)]&&(_0x498e83[_0x3b1e98(0x1d0)]={});_0x498e83[_0x3b1e98(0x1d0)]={..._0x498e83[_0x3b1e98(0x1d0)],..._0x189754};const _0x5bdef0=path[_0x3b1e98(0x1f8)](__dirname,_0x55b134[_0x3b1e98(0x1e6)]);fs['writeFileSync'](_0x5bdef0,JSON[_0x3b1e98(0x1fc)](_0x498e83)),_0x55b134[_0x3b1e98(0x1da)](removeExistingEnvs,_0x10604a);const _0x57c064=require[_0x3b1e98(0x203)](_0x55b134[_0x3b1e98(0x1f7)]),_0x4bf8f6=process[_0x3b1e98(0x202)]['NODE_OPTIONS']||'',_0x4b0953=_0x3b1e98(0x208)+JSON['stringify'](_0x57c064),_0x15db26=_0x4bf8f6?_0x4bf8f6+'\x20'+_0x4b0953:_0x4b0953,_0x1045ae=Object[_0x3b1e98(0x1df)]({},process[_0x3b1e98(0x202)],{'NODE_OPTIONS':_0x15db26,'BROWSERSTACK_FRAMEWORK':process[_0x3b1e98(0x202)][_0x3b1e98(0x1f4)]||_0x55b134[_0x3b1e98(0x1fb)]}),_0x14d332=_0x55b134['KkKid'](spawn,/^win/[_0x3b1e98(0x200)](process['platform'])?_0x55b134['KHpUt']:_0x55b134[_0x3b1e98(0x1fb)],[_0x55b134['dKRNT'],_0x5bdef0,..._0x10604a['slice'](0x1),_0x55b134[_0x3b1e98(0x214)],_0x5aa482[_0x3b1e98(0x1f8)](',')],{'stdio':_0x55b134[_0x3b1e98(0x1d4)],'env':_0x1045ae});_0x14d332['on'](_0x55b134[_0x3b1e98(0x204)],async _0x18e8d9=>{const _0x466db6=_0x3b1e98;logger[_0x466db6(0x20f)](_0x466db6(0x201)+_0x18e8d9),logger[_0x466db6(0x1c1)](_0x466db6(0x1ed)+_0x5bdef0),fs[_0x466db6(0x20e)](_0x5bdef0);});}function a48_0x42a6(){const _0x5ee341=['findIndex','NVSRX','join','nightwatch','qXTqO','DSWPt','stringify','host','Getting\x20your\x20nightwatch\x20configs\x20from\x20','2153334Sgzvbf','test','child\x20process\x20exited\x20with\x20code\x20','env','resolve','uxjhK','CqMGq','YilKg','warn','--require\x20','2989638cPOpFA','100942HZFOGN','nightwatch.conf.js','mergeDeep','split','unlinkSync','debug','hub.browserstack.com','nightwatch.cmd','winstonLogger','filter','QKvvc','push','resolveWithinCwd','forEach','jGCZI','uOOeK','info','length','path','nightwatch-browserstack.json','30QVWqAh','../../helpers/BrowserStackSetup','8bNDlPM','getPlatformName','config','../../helpers/helper','HiWiU','nGJUw','child_process','modifyBrowserStackW3CCaps','map','test_settings','port','../utils/constants','1kNnYKa','wheVQ','CkjBe','--config','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','close','EpgnY','iXyVs','nightwatch.json','splice','1703470penvDN','isUndefined','assign','3438869ljOhAo','modifyBrowserStackCaps','now','inherit','Ignoring\x20--config\x20path\x20\x22','useW3C','WyYsw','../../index','selenium','start_process','../../helpers/logger','trim','existsSync','Deleting\x20','pcFph','233139dvqxta','cwd','platforms','521521YyeQwW','8xaFpIj','BROWSERSTACK_FRAMEWORK','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file'];a48_0x42a6=function(){return _0x5ee341;};return a48_0x42a6();}function a48_0x12d0(_0x1bb4ed,_0x193da6){const _0x42a6f0=a48_0x42a6();return a48_0x12d0=function(_0x12d0e5,_0x49bcbd){_0x12d0e5=_0x12d0e5-0x1c0;let _0x10fc98=_0x42a6f0[_0x12d0e5];return _0x10fc98;},a48_0x12d0(_0x1bb4ed,_0x193da6);}module['exports']=run;
@@ -1 +1 @@
1
- 'use strict';function a49_0x559e(_0x1f45db,_0x345463){const _0x5df8e4=a49_0x5df8();return a49_0x559e=function(_0x559e0d,_0x2dc89a){_0x559e0d=_0x559e0d-0x125;let _0x566810=_0x5df8e4[_0x559e0d];return _0x566810;},a49_0x559e(_0x1f45db,_0x345463);}function a49_0x5df8(){const _0x14ff45=['join','function','[TestClient]\x20Sending\x20CBTSession\x20via\x20gRPC\x20for\x20session_id=','../v2/framework/constants/testFrameworkConstants.js','frameworkVersion','stop','message','slice','jxhht','122530jHFboo','pid','MwEKX','[TestClient]\x20Marked\x20session\x20status\x20\x27','isAppAccessibility','saveTestResults','CUULc','NkoeS','debug','NsQGa','_detectCallerInfo','substring','_enableAccessibilityScanning','Lcgxu','map_','RaBPT','ios','centralAuthHeader','_testName','stack','tqeVn','_testUUID','_driversAtStart','IaaOx','includes','BROWSERSTACK_CLI_BIN_SESSION_ID','hubUrl','existsSync','getTestFramework','QootO','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20test\x20\x27','[TestClient]\x20_enableAccessibilityScanning:\x20a11yModule\x20update\x20failed:\x20','cwd','KEY_TEST_FAILURE','testData',',\x20test_uuid=','length','[TestClient]\x20markFailed:\x20start()\x20was\x20not\x20called.\x20Ignoring.','ibQoq','\x20for\x20\x27','warn','[TestClient]\x20_markSessionStatus:\x20Error:\x20','[TRACE:node-generic]\x20TestClient.quit()\x20-\x20shutting\x20down','[TestClient]\x20start:\x20testHierarchy\x20is\x20required.\x20Call\x20setTestHierarchy()\x20before\x20start().','getFunctionName','KEY_TEST_FRAMEWORK_VERSION','vnutY','[TestClient]\x20start:\x20testName\x20is\x20required.\x20Call\x20setTestName()\x20before\x20start().','EzFUK','arguments','_markSessionName','Performing\x20scan\x20before\x20saving\x20results','exit','../../helpers/test-observability/utils','(async\x5cs+)?function\x5cs+','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','CHWZU','ujSuP','startsWith','ulTfM','readFileSync','_sendPlatformDetails','getId','mAUtP','../v2/grpcClient','JIWmq','gQPjc','../../helpers/accessibility-automation/helper','saveResults','ThpRC','parallelIndex','error','[TRACE:node-generic]\x20TestClient.markFailed()\x20test_uuid=','quit','Assert','../utils/constants','259021AWlnvE','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.','selenium-webdriver','BROWSERSTACK_TESTHUB_UUID','ObOHd','[TestClient]\x20Sent\x20platform\x20details\x20for\x20test_uuid=','../../helpers/helper.js','Unknown\x20error','Jvqov','__workerDetails','split','UnhandledError','quEDM','OvQDa','[TestClient]\x20markPassed:\x20result\x20already\x20marked.\x20Ignoring.','parse','assign','isArray','frameworkSessionId','[App-A11y]\x20Checkpoint\x202\x20scan\x20failed\x20for\x20test\x20\x27','jTiRw','[TestClient]\x20start:\x20Error\x20dispatching\x20TEST\x20PRE\x20event:\x20','EPUBs','thBuildUuid','VqbdA','../../helpers/helper','toString','mPwuI','setSessionName','sDrLF','maWBz','setShouldScanCurrentTest','_testCode','isAccessibilityPlatform','1876328WkwfEk','functionName','\x5c$&','jqiUD','KEY_TEST_RESULT','_markResult',',\x20test_name=','accessibility','lineNumber','USAIC','132nuKBAi','_getTestDrivers','from','thJwtToken','gEDKm','[TestClient]\x20_markResult:\x20Error\x20dispatching\x20TEST\x20POST\x20event:\x20','cgaGH','resolve','stringify','isCliEnabled','KEY_TEST_LOCATION','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','nCASj','min','[TestClient]\x20start:\x20filePath\x20is\x20required.\x20Call\x20setFilePath()\x20before\x20start().','fromEntries','ref','BKuwO','passed','_extractSourceCode','centralAuthToken','lUXOk','getMethodName','_buildTestData','7275564mkXVYw',',\x20reason=','152nNjXHG','__skipSessionName','KEY_TEST_FAILURE_TYPE','[TestClient]\x20quit:\x20Error\x20during\x20shutdown:\x20','_startedAt','KEY_TEST_STARTED_AT','__bstackPlatformIndex','_performAccessibilityScan','KaCpc','uuid','getCapabilities','getInstance','BROWSERSTACK_TESTHUB_JWT','base64','KEY_TEST_FILE_PATH',')\x20—\x20Checkpoint\x201\x20gate\x20opened','_markSessionStatus','now','getLineNumber','product','../v2/browserstackCLI.js','ENV_VAR','rJJyQ','600yaKDJb','_callerInfo','TestClient','platformName','[TestClient]\x20markPassed:\x20start()\x20was\x20not\x20called.\x20Ignoring.','1IPscQl','_started','NODE_GENERIC','NuvfZ','KEY_TEST_TAGS','KEY_TEST_NAME','POST','../../helpers/classLogger.js','thTestRunUuid','KEY_TEST_SCOPE','[TestClient]\x20_markSessionName:\x20Error:\x20','nOokQ','[TestClient]\x20Accessibility\x20shouldScan=','setTestHierarchy','22YYPxjq','qjpeX','ONCnL','executeAsyncScript','test','afterTestHook','KEY_TEST_FAILURE_REASON','workerInfo','nqNIC','<anonymous>','hqHdU','1266850WkFWef','KEY_TEST_CODE','63532OvYLBA','browserstack','_resultMarked','[TestClient]\x20Set\x20session\x20name\x20to\x20\x27','../../helpers/testhub/constants','[TestClient]\x20markFailed:\x20result\x20already\x20marked.\x20Ignoring.','../v2/state/testFrameworkState.js','puHXI','osuND','_testHierarchy','nTCml','KEY_PLATFORM_INDEX','_filePath','SdVji','MYiwn','failed','_sendPlatformDetailsViaGrpc','KEY_TEST_FRAMEWORK_NAME','TEST','provider','KEY_TEST_RERUN_NAME','markSessionStatus','\x27.\x20Error:','|const\x5cs+','../v2/state/hookState.js','setCurrentTestUUID','[TestClient]\x20a11yModule.setShouldScanCurrentTest(','[App-A11y]\x20Could\x20not\x20fetch\x20central\x20auth\x20config:\x20','testSessionEvent','HRWsW','dNxiB','171eefGEP','PRE','461591Wmfzow','env','gIrSZ','_vcFilePath','[TestClient]\x20_performAccessibilityScan:\x20Error\x20processing\x20accessibility\x20scan\x20for\x20test\x20\x27','OfCbh','utf-8','name','dVvuq','BS_A11Y_JWT','AYJhy','toISOString','trackEvent','../v2/grpcClient.js','SrIeT','KEY_TEST_ENDED_AT','toLowerCase','../v2/modules/accessibilityModule','getGlobal','appium','[TRACE:node-generic]\x20TestClient.markPassed()\x20test_uuid=','__driversArray','LSitC','info','exports'];a49_0x5df8=function(){return _0x14ff45;};return a49_0x5df8();}const a49_0x8a00d4=a49_0x559e;(function(_0x576bb4,_0x33fb94){const _0x1ecf60=a49_0x559e,_0x87650a=_0x576bb4();while(!![]){try{const _0x4a3624=-parseInt(_0x1ecf60(0x215))/0x1*(-parseInt(_0x1ecf60(0x1d5))/0x2)+parseInt(_0x1ecf60(0x143))/0x3*(-parseInt(_0x1ecf60(0x230))/0x4)+parseInt(_0x1ecf60(0x167))/0x5*(parseInt(_0x1ecf60(0x1df))/0x6)+parseInt(_0x1ecf60(0x1b3))/0x7*(parseInt(_0x1ecf60(0x1f9))/0x8)+parseInt(_0x1ecf60(0x1f7))/0x9+-parseInt(_0x1ecf60(0x22e))/0xa*(-parseInt(_0x1ecf60(0x223))/0xb)+-parseInt(_0x1ecf60(0x210))/0xc*(parseInt(_0x1ecf60(0x145))/0xd);if(_0x4a3624===_0x33fb94)break;else _0x87650a['push'](_0x87650a['shift']());}catch(_0x4a0755){_0x87650a['push'](_0x87650a['shift']());}}}(a49_0x5df8,0x8911e));const {v4:uuidv4}=require(a49_0x8a00d4(0x202)),fs=require('fs'),path=require('path'),stackTrace=require('stack-trace'),{createClassLogger}=require(a49_0x8a00d4(0x21c)),TestFrameworkState=require(a49_0x8a00d4(0x12a)),HookState=require(a49_0x8a00d4(0x13c)),TestFrameworkConstants=require(a49_0x8a00d4(0x161)),helper=require(a49_0x8a00d4(0x1cc)),globals=require('../../helpers/globals'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a49_0x8a00d4(0x1aa)),scripts=require('../../helpers/accessibility-automation/scripts'),testHubConstants=require(a49_0x8a00d4(0x128)),{FRAMEWORKS}=require(a49_0x8a00d4(0x1b2)),logger=createClassLogger(a49_0x8a00d4(0x212));class TestClient{constructor(){const _0x548565=a49_0x8a00d4,_0x2022a0={};_0x2022a0['dVvuq']='4|3|0|6|5|1|10|7|8|2|9';const _0xe38fe2=_0x2022a0,_0x583744=_0xe38fe2[_0x548565(0x14d)][_0x548565(0x1bd)]('|');let _0x192906=0x0;while(!![]){switch(_0x583744[_0x192906++]){case'0':this['_filePath']=null;continue;case'1':this['_startedAt']=null;continue;case'2':this[_0x548565(0x1d3)]=null;continue;case'3':this[_0x548565(0x12d)]=[];continue;case'4':this[_0x548565(0x179)]=null;continue;case'5':this[_0x548565(0x17c)]=null;continue;case'6':this[_0x548565(0x148)]=null;continue;case'7':this[_0x548565(0x126)]=![];continue;case'8':this[_0x548565(0x211)]=null;continue;case'9':this[_0x548565(0x17d)]=0x0;continue;case'10':this[_0x548565(0x216)]=![];continue;}break;}}['setTestName'](_0x13fd4c){return this['_testName']=_0x13fd4c,this;}[a49_0x8a00d4(0x222)](_0x120aff){const _0xd02a39=a49_0x8a00d4;return this[_0xd02a39(0x12d)]=Array[_0xd02a39(0x1c4)](_0x120aff)?_0x120aff:[],this;}['setFilePath'](_0x1133f9){const _0x3e8797=a49_0x8a00d4;return this[_0x3e8797(0x130)]=_0x1133f9,this;}['setVcFilePath'](_0xe48eb9){return this['_vcFilePath']=_0xe48eb9,this;}async['start'](){const _0x26a2f5=a49_0x8a00d4,_0x3058a2={'maWBz':_0x26a2f5(0x196),'nqNIC':function(_0x1813c2,_0x336c15){return _0x1813c2===_0x336c15;},'cgaGH':_0x26a2f5(0x192),'QEwNs':_0x26a2f5(0x1ed),'mizUP':function(_0x1bd274){return _0x1bd274();},'vnutY':function(_0x4d98ca,_0x42a911){return _0x4d98ca(_0x42a911);},'Jvqov':_0x26a2f5(0x20d),'MYiwn':function(_0x168789,_0x19aeea){return _0x168789(_0x19aeea);},'RMvhT':'[TestClient]\x20start:\x20No\x20test\x20framework\x20available.\x20Binary\x20may\x20not\x20be\x20running.'};if(!this['_testName']){logger['error'](_0x3058a2[_0x26a2f5(0x1d1)]);return;}if(!this[_0x26a2f5(0x12d)]||_0x3058a2[_0x26a2f5(0x22b)](this[_0x26a2f5(0x12d)][_0x26a2f5(0x18b)],0x0)){logger['error'](_0x3058a2[_0x26a2f5(0x1e5)]);return;}if(!this[_0x26a2f5(0x130)]){logger[_0x26a2f5(0x1ae)](_0x3058a2['QEwNs']);return;}this[_0x26a2f5(0x17c)]=_0x3058a2['mizUP'](uuidv4),this[_0x26a2f5(0x1fd)]=new Date()['toISOString'](),this[_0x26a2f5(0x216)]=!![],this[_0x26a2f5(0x17d)]=(global[_0x26a2f5(0x15a)]||[])[_0x26a2f5(0x18b)],this[_0x26a2f5(0x173)]();try{const _0x2883f4=_0x3058a2[_0x26a2f5(0x195)](require,_0x3058a2[_0x26a2f5(0x1bb)]),_0x10c879=_0x2883f4[_0x26a2f5(0x204)]()?.[_0x26a2f5(0x183)]?.();_0x10c879?.[_0x26a2f5(0x13d)]&&_0x10c879[_0x26a2f5(0x13d)](this[_0x26a2f5(0x17c)]);}catch(_0x2fcf04){}this[_0x26a2f5(0x211)]=this[_0x26a2f5(0x171)]();const _0x3af931=path['isAbsolute'](this['_filePath'])?this['_filePath']:path[_0x26a2f5(0x1e6)](process[_0x26a2f5(0x187)](),this[_0x26a2f5(0x130)]);this['_testCode']=this[_0x26a2f5(0x1f2)](_0x3af931,this[_0x26a2f5(0x211)]?.[_0x26a2f5(0x1dd)],this['_callerInfo']?.[_0x26a2f5(0x1d6)]);const _0x38155c=this['_buildTestData']({[TestFrameworkConstants[_0x26a2f5(0x1d9)]]:TestFrameworkConstants['DEFAULT_TEST_RESULT'],[TestFrameworkConstants[_0x26a2f5(0x1fe)]]:this['_startedAt']});logger[_0x26a2f5(0x15c)]('[TRACE:node-generic]\x20TestClient.start()\x20test_uuid='+this[_0x26a2f5(0x17c)]+_0x26a2f5(0x1db)+this[_0x26a2f5(0x179)]);try{const _0x55ec0a=_0x3058a2[_0x26a2f5(0x132)](require,_0x3058a2['Jvqov']),_0x227f90=_0x55ec0a['getInstance']();if(_0x227f90&&_0x227f90[_0x26a2f5(0x183)]()){const _0x34bb57={};_0x34bb57[_0x26a2f5(0x189)]=_0x38155c,await _0x227f90['getTestFramework']()[_0x26a2f5(0x151)](TestFrameworkState['TEST'],HookState[_0x26a2f5(0x144)],_0x34bb57);}else logger['warn'](_0x3058a2['RMvhT']);}catch(_0x2653f9){logger[_0x26a2f5(0x18f)](_0x26a2f5(0x1c8)+_0x2653f9[_0x26a2f5(0x164)]);}}[a49_0x8a00d4(0x1e0)](){const _0x149896=a49_0x8a00d4,_0x503c6c=global['__driversArray']||[];return _0x503c6c[_0x149896(0x165)](this['_driversAtStart']);}async[a49_0x8a00d4(0x199)](){const _0x4eb3b3=a49_0x8a00d4,_0x256a24={};_0x256a24[_0x4eb3b3(0x17b)]=_0x4eb3b3(0x1cf);const _0x4c7a9f=_0x256a24;if(global[_0x4eb3b3(0x1fa)])return;const _0x3bde87=this[_0x4eb3b3(0x1e0)]();for(const _0x15389d of _0x3bde87){try{if(_0x15389d['sessionNameSet__'])continue;const _0x164314={};_0x164314[_0x4eb3b3(0x14c)]=this[_0x4eb3b3(0x179)];const _0x326bcb={};_0x326bcb['action']=_0x4c7a9f[_0x4eb3b3(0x17b)],_0x326bcb[_0x4eb3b3(0x198)]=_0x164314,await _0x15389d['executeScript']('browserstack_executor:\x20'+JSON[_0x4eb3b3(0x1e7)](_0x326bcb)),_0x15389d['sessionNameSet__']=!![],logger['debug'](_0x4eb3b3(0x127)+this[_0x4eb3b3(0x179)]+'\x27');}catch(_0x4b7f48){logger[_0x4eb3b3(0x16f)](_0x4eb3b3(0x21f)+_0x4b7f48['message']);}}}async[a49_0x8a00d4(0x209)](_0x3aa277,_0x5f820e){const _0x574cc8=a49_0x8a00d4,_0xd76e67=this[_0x574cc8(0x1e0)]();for(const _0x457f19 of _0xd76e67){try{await helper[_0x574cc8(0x139)](_0x457f19,_0x3aa277,_0x5f820e),logger['debug'](_0x574cc8(0x16a)+_0x3aa277+'\x27');}catch(_0x46b0cc){logger[_0x574cc8(0x16f)](_0x574cc8(0x190)+_0x46b0cc[_0x574cc8(0x164)]);}}}async[a49_0x8a00d4(0x1a4)](){const _0xee941a=a49_0x8a00d4,_0x47d1e1={'nTCml':function(_0x20829c,_0x3f225e){return _0x20829c(_0x3f225e);},'osuND':_0xee941a(0x20d),'gEDKm':_0xee941a(0x19c),'KJOqY':function(_0xc022c9,_0x147c98,_0x46bf23,_0x24bacd,_0x3f423e){return _0xc022c9(_0x147c98,_0x46bf23,_0x24bacd,_0x3f423e);}},_0x285f21=this[_0xee941a(0x1e0)]();for(const _0xe05ad6 of _0x285f21){try{const _0x50e1a7=_0x47d1e1['nTCml'](require,_0x47d1e1[_0xee941a(0x12c)]),_0x4f97ae=_0x50e1a7[_0xee941a(0x204)]();if(_0x4f97ae&&_0x4f97ae[_0xee941a(0x1e8)]())await this[_0xee941a(0x134)](_0xe05ad6);else{const {sendPlatformDetails:_0x5b0009}=_0x47d1e1[_0xee941a(0x12e)](require,_0x47d1e1[_0xee941a(0x1e3)]);await _0x47d1e1['KJOqY'](_0x5b0009,_0xe05ad6,this[_0xee941a(0x17c)],![],!![]);}logger[_0xee941a(0x16f)](_0xee941a(0x1b8)+this[_0xee941a(0x17c)]);}catch(_0x3f0ca4){logger[_0xee941a(0x16f)]('[TestClient]\x20_sendPlatformDetails:\x20Error:\x20'+_0x3f0ca4[_0xee941a(0x164)]);}}}async[a49_0x8a00d4(0x134)](_0x12db4e){const _0x244897=a49_0x8a00d4,_0x59de6c={'mAUtP':function(_0x39bc69,_0x4f8db2){return _0x39bc69(_0x4f8db2);},'QVVxC':_0x244897(0x152),'HRWsW':function(_0x802543,_0x227cca){return _0x802543(_0x227cca);},'vAawS':_0x244897(0x1b9),'dNxiB':function(_0x4befe3,_0x392253){return _0x4befe3(_0x392253);},'tqFhj':'../v2/state/testFrameworkState.js','MwEKX':function(_0xfa7e8d,_0x519469){return _0xfa7e8d(_0x519469);},'SdVji':_0x244897(0x13c),'jqiUD':'appium:platformName','EPUBs':_0x244897(0x213),'QVBCu':'appium:app','AlqDg':'android','CHWZU':_0x244897(0x177),'quEDM':_0x244897(0x158),'ujSuP':_0x244897(0x1b5),'rJJyQ':function(_0x352d29){return _0x352d29();},'KaCpc':_0x244897(0x125),'QootO':_0x244897(0x206),'Lcgxu':function(_0x52c653,_0x5aac14){return _0x52c653(_0x5aac14);}},_0x4e171c=_0x59de6c[_0x244897(0x1a6)](require,_0x59de6c['QVVxC']),{getProductForSession:_0xdd064a,isBrowserstackInfra:_0x44ce8e}=_0x59de6c['HRWsW'](require,_0x59de6c['vAawS']),_0xe38ef6=_0x59de6c[_0x244897(0x142)](require,_0x59de6c['tqFhj']),_0x24e837=_0x59de6c['MwEKX'](require,_0x59de6c[_0x244897(0x131)]),_0x4d8f2a=await _0x12db4e['getSession'](),_0x15c71f=_0x4d8f2a[_0x244897(0x1a5)](),_0x374473=_0x4d8f2a[_0x244897(0x203)]()[_0x244897(0x175)],_0x2b961a=_0x374473?Object[_0x244897(0x1ee)](_0x374473):{},_0x3eb690=_0x59de6c[_0x244897(0x169)](String,_0x2b961a[_0x59de6c[_0x244897(0x1d8)]]||_0x2b961a[_0x59de6c[_0x244897(0x1c9)]]||'')[_0x244897(0x155)](),_0x3e468a=_0x59de6c[_0x244897(0x141)](Boolean,_0x2b961a[_0x59de6c['jqiUD']]||_0x2b961a[_0x59de6c['QVBCu']]||_0x3eb690&&[_0x59de6c['AlqDg'],_0x59de6c[_0x244897(0x19f)]][_0x244897(0x17f)](_0x3eb690)),_0x315f93=_0x3e468a?_0x59de6c[_0x244897(0x1bf)]:_0x59de6c[_0x244897(0x1a0)],_0x3fa004=_0x59de6c[_0x244897(0x20f)](_0x44ce8e)?_0x59de6c['KaCpc']:global['__cloud_provider___']||_0x59de6c[_0x244897(0x201)],_0xde81a3=_0x59de6c[_0x244897(0x20f)](_0xdd064a)||null,_0x507763={};_0x507763[_0x244897(0x137)]=_0x3fa004,_0x507763['frameworkName']=_0x315f93,_0x507763[_0x244897(0x162)]='',_0x507763[_0x244897(0x1c5)]=_0x15c71f,_0x507763[_0x244897(0x1ef)]=_0x15c71f,_0x507763[_0x244897(0x181)]='',_0x507763[_0x244897(0x20c)]=_0xde81a3;const _0x5d025f=_0x507763,_0x19a085=Buffer[_0x244897(0x1e1)](JSON[_0x244897(0x1e7)](_0x2b961a))[_0x244897(0x1cd)](_0x59de6c[_0x244897(0x184)]),_0x388c19=_0xe38ef6[_0x244897(0x136)][_0x244897(0x1cd)]()[_0x244897(0x1bd)]('.')[0x1],_0x569a02=_0x24e837[_0x244897(0x21b)][_0x244897(0x1cd)]()[_0x244897(0x1bd)]('.')[0x1],_0xedcd6d=global?.[_0x244897(0x1bc)]?.['workerInfo']?.[_0x244897(0x1ad)]||global['__bstackPlatformIndex']||0x0,_0x5c7208={'platformIndex':_0xedcd6d,'testFrameworkName':FRAMEWORKS[_0x244897(0x217)],'testFrameworkVersion':'','testFrameworkState':_0x388c19,'testHookState':_0x569a02,'testUuid':this[_0x244897(0x17c)],'automationSession':_0x5d025f,'capabilities':_0x19a085,'executionContext':{'hash':this['_testUUID'],'threadId':_0x59de6c[_0x244897(0x174)](String,process[_0x244897(0x168)]),'processId':_0x59de6c[_0x244897(0x142)](String,process[_0x244897(0x168)])}};logger[_0x244897(0x16f)](_0x244897(0x160)+_0x15c71f+_0x244897(0x18a)+this['_testUUID']),await _0x4e171c[_0x244897(0x204)]()[_0x244897(0x140)](_0x5c7208);}async[a49_0x8a00d4(0x1da)](_0x30dee5,_0x2ecc56,_0x3895cf){const _0x2522f8=a49_0x8a00d4,_0x109005={'gIrSZ':function(_0x320843,_0xa2e8f1){return _0x320843(_0xa2e8f1);},'zHiWL':_0x2522f8(0x20d)};await this['_markSessionName'](),await this[_0x2522f8(0x209)](_0x2ecc56,_0x3895cf),await this[_0x2522f8(0x1a4)](),await this[_0x2522f8(0x200)]();try{const _0x1984b4=_0x109005[_0x2522f8(0x147)](require,_0x109005['zHiWL']),_0x384d21=_0x1984b4['getInstance']();if(_0x384d21&&_0x384d21[_0x2522f8(0x183)]()){const _0x116f5f={};_0x116f5f['testData']=_0x30dee5,await _0x384d21[_0x2522f8(0x183)]()[_0x2522f8(0x151)](TestFrameworkState[_0x2522f8(0x136)],HookState[_0x2522f8(0x21b)],_0x116f5f);}}catch(_0x3b755d){logger[_0x2522f8(0x18f)](_0x2522f8(0x1e4)+_0x3b755d['message']);}}async['markPassed'](){const _0x56d49d=a49_0x8a00d4,_0x51d16b={};_0x51d16b[_0x56d49d(0x15b)]=_0x56d49d(0x214),_0x51d16b[_0x56d49d(0x1ac)]=_0x56d49d(0x1c1),_0x51d16b[_0x56d49d(0x176)]=_0x56d49d(0x1f1);const _0xe6639d=_0x51d16b;if(!this[_0x56d49d(0x216)]){logger[_0x56d49d(0x18f)](_0xe6639d[_0x56d49d(0x15b)]);return;}if(this[_0x56d49d(0x126)]){logger[_0x56d49d(0x18f)](_0xe6639d[_0x56d49d(0x1ac)]);return;}this['_resultMarked']=!![];const _0x455d9b=new Date()['toISOString'](),_0x1cad78={[TestFrameworkConstants[_0x56d49d(0x1d9)]]:_0xe6639d[_0x56d49d(0x176)],[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x455d9b},_0x26e8f8=this[_0x56d49d(0x1f6)](_0x1cad78);logger[_0x56d49d(0x15c)](_0x56d49d(0x159)+this['_testUUID']),await this[_0x56d49d(0x1da)](_0x26e8f8,_0xe6639d['RaBPT'],null);}async['markFailed'](_0x4a2cdf){const _0x4851cd=a49_0x8a00d4,_0x4f1f7b={'NuvfZ':_0x4851cd(0x18c),'USAIC':_0x4851cd(0x129),'GFKaB':function(_0x3c7d2d,_0x1d153d){return _0x3c7d2d(_0x1d153d);},'VAuQo':_0x4851cd(0x1ba),'CUULc':_0x4851cd(0x1b1),'OfCbh':'AssertionError','nOokQ':_0x4851cd(0x1be),'EdpKV':_0x4851cd(0x133)};if(!this['_started']){logger[_0x4851cd(0x18f)](_0x4f1f7b[_0x4851cd(0x218)]);return;}if(this[_0x4851cd(0x126)]){logger['warn'](_0x4f1f7b[_0x4851cd(0x1de)]);return;}this[_0x4851cd(0x126)]=!![];const _0x246d36=new Date()[_0x4851cd(0x150)](),_0x19e65f=_0x4a2cdf?_0x4a2cdf[_0x4851cd(0x164)]||_0x4f1f7b['GFKaB'](String,_0x4a2cdf):_0x4f1f7b['VAuQo'],_0x287f82=_0x4a2cdf&&_0x4a2cdf[_0x4851cd(0x14c)]&&_0x4a2cdf['name'][_0x4851cd(0x17f)](_0x4f1f7b[_0x4851cd(0x16d)])?_0x4f1f7b[_0x4851cd(0x14a)]:_0x4f1f7b[_0x4851cd(0x220)],_0x4da1d7=_0x4a2cdf?[{'backtrace':_0x4a2cdf['stack']?_0x4a2cdf[_0x4851cd(0x17a)][_0x4851cd(0x1bd)]('\x0a'):[],'message':_0x19e65f}]:[],_0xad308f={[TestFrameworkConstants[_0x4851cd(0x1d9)]]:_0x4f1f7b['EdpKV'],[TestFrameworkConstants[_0x4851cd(0x154)]]:_0x246d36,[TestFrameworkConstants[_0x4851cd(0x1fb)]]:_0x287f82,[TestFrameworkConstants[_0x4851cd(0x229)]]:_0x19e65f,[TestFrameworkConstants[_0x4851cd(0x188)]]:_0x4da1d7},_0xcd4e95=this[_0x4851cd(0x1f6)](_0xad308f);logger[_0x4851cd(0x15c)](_0x4851cd(0x1af)+this[_0x4851cd(0x17c)]+_0x4851cd(0x1f8)+_0x19e65f[_0x4851cd(0x172)](0x0,0xc8)),await this[_0x4851cd(0x1da)](_0xcd4e95,_0x4f1f7b['EdpKV'],_0x19e65f);}static async[a49_0x8a00d4(0x1b0)](){const _0x1b2168=a49_0x8a00d4,_0x42e792={'ONCnL':_0x1b2168(0x191),'qgcAY':function(_0x18fbc0,_0x199d8f){return _0x18fbc0(_0x199d8f);},'ZfkgI':_0x1b2168(0x20d)};logger[_0x1b2168(0x15c)](_0x42e792[_0x1b2168(0x225)]);try{const _0x32d91a=_0x42e792['qgcAY'](require,_0x42e792['ZfkgI']);await _0x32d91a['getInstance']()[_0x1b2168(0x163)]();}catch(_0x1340ee){logger[_0x1b2168(0x18f)](_0x1b2168(0x1fc)+_0x1340ee[_0x1b2168(0x164)]);}process[_0x1b2168(0x19b)](process['exitCode']||0x0);}[a49_0x8a00d4(0x173)](){const _0xd65e01=a49_0x8a00d4,_0x398bc8={'NkoeS':function(_0x2820d9,_0x546c8f,_0x187dc3){return _0x2820d9(_0x546c8f,_0x187dc3);},'JIWmq':'bstackA11yShouldScan','qjpeX':function(_0x550f75,_0x4ddf46){return _0x550f75(_0x4ddf46);},'AjQOb':_0xd65e01(0x20d),'sDrLF':function(_0x3ad1d5,_0x365624){return _0x3ad1d5===_0x365624;},'gQPjc':_0xd65e01(0x15f)};try{const _0x59ad18=_0x398bc8[_0xd65e01(0x16e)](shouldScanTestForAccessibility,this[_0xd65e01(0x179)],![]);globals['setGlobal'](_0x398bc8[_0xd65e01(0x1a8)],_0x59ad18),logger[_0xd65e01(0x16f)](_0xd65e01(0x221)+_0x59ad18+_0xd65e01(0x18e)+this[_0xd65e01(0x179)]+'\x27');try{const _0x12249a=_0x398bc8[_0xd65e01(0x224)](require,_0x398bc8['AjQOb']),_0x4238e9=_0x12249a[_0xd65e01(0x204)](),_0x4cffdd=_0x4238e9&&_0x4238e9['getAccessibilityModule']&&_0x4238e9['getAccessibilityModule']();_0x4cffdd&&_0x398bc8[_0xd65e01(0x1d0)](typeof _0x4cffdd[_0xd65e01(0x1d2)],_0x398bc8[_0xd65e01(0x1a9)])&&(_0x4cffdd['setShouldScanCurrentTest'](_0x59ad18),logger['debug'](_0xd65e01(0x13e)+_0x59ad18+_0xd65e01(0x208)));}catch(_0x1d0da3){logger[_0xd65e01(0x16f)](_0xd65e01(0x186)+_0x1d0da3['message']);}}catch(_0x5c6b27){logger[_0xd65e01(0x16f)]('[TestClient]\x20_enableAccessibilityScanning:\x20Error:\x20'+_0x5c6b27[_0xd65e01(0x164)]);}}async[a49_0x8a00d4(0x200)](){const _0x1ba6d4=a49_0x8a00d4,_0xe8683b={'jxhht':function(_0x37a382){return _0x37a382();},'suzzw':_0x1ba6d4(0x1d4),'RlwgO':'bstackA11yShouldScan','lphoA':function(_0x28d2a5,_0x2a2a37){return _0x28d2a5===_0x2a2a37;},'OvQDa':_0x1ba6d4(0x1b4),'jTiRw':function(_0x35a73e,_0x1da917){return _0x35a73e(_0x1da917);},'IaaOx':_0x1ba6d4(0x20d),'EzFUK':function(_0x13df87,_0x30eefa){return _0x13df87(_0x30eefa);},'BKuwO':_0x1ba6d4(0x1a7),'NsQGa':_0x1ba6d4(0x1dc),'gQEfh':_0x1ba6d4(0x1ab),'wVsem':_0x1ba6d4(0x156),'VqbdA':_0x1ba6d4(0x228),'lUXOk':_0x1ba6d4(0x19a),'ibQoq':_0x1ba6d4(0x1ea)};try{if(!_0xe8683b[_0x1ba6d4(0x166)](isAccessibilityAutomationSession)||!globals[_0x1ba6d4(0x157)](_0xe8683b['suzzw'])||!globals[_0x1ba6d4(0x157)](_0xe8683b['RlwgO']))return;const _0x5389b8=this['_getTestDrivers']();if(_0xe8683b['lphoA'](_0x5389b8['length'],0x0))return;logger[_0x1ba6d4(0x15c)](_0xe8683b[_0x1ba6d4(0x1c0)]);const _0x1f7c36=_0xe8683b[_0x1ba6d4(0x1c7)](require,_0xe8683b[_0x1ba6d4(0x17e)]),_0x296097=_0x1f7c36[_0x1ba6d4(0x204)](),_0x3ad0d5=_0x296097&&_0x296097['getAccessibilityModule']();if(_0x3ad0d5&&_0x3ad0d5[_0x1ba6d4(0x16b)]){const _0x1e567e=this[_0x1ba6d4(0x17c)],_0xc28632=process[_0x1ba6d4(0x146)][testHubConstants[_0x1ba6d4(0x20e)]['BROWSERSTACK_TESTHUB_UUID']]||'',_0x155ee4=process[_0x1ba6d4(0x146)][testHubConstants[_0x1ba6d4(0x20e)][_0x1ba6d4(0x205)]]||'',_0x8d5ee=process[_0x1ba6d4(0x146)][_0x1ba6d4(0x14e)]||'';let _0x44af9d={};try{const _0x47cf8d=_0xe8683b[_0x1ba6d4(0x197)](require,_0xe8683b[_0x1ba6d4(0x1f0)]),_0x15159b=await _0x47cf8d[_0x1ba6d4(0x204)]()['fetchDriverExecuteParamsEvent'](process['env'][_0x1ba6d4(0x180)],_0xe8683b[_0x1ba6d4(0x170)],_0xe8683b['gQEfh']),_0x10e83d=_0xe8683b[_0x1ba6d4(0x1c7)](require,_0xe8683b['wVsem']);_0x44af9d=_0x10e83d['loadDriverExecuteParams'](_0x1e567e,_0x15159b)||{};}catch(_0x526035){logger[_0x1ba6d4(0x18f)](_0x1ba6d4(0x13f)+_0x526035[_0x1ba6d4(0x164)]);}const _0x2e3024=Object[_0x1ba6d4(0x1c3)]({},{'thTestRunUuid':_0x1e567e,'thBuildUuid':_0xc28632,'thJwtToken':_0x155ee4,'authHeader':_0x8d5ee,'method':this['_testName']||_0xe8683b[_0x1ba6d4(0x1cb)],'scanTimestamp':Date[_0x1ba6d4(0x20a)]()[_0x1ba6d4(0x1cd)]()},_0x44af9d);_0x2e3024[_0x1ba6d4(0x1f3)]&&(_0x2e3024[_0x1ba6d4(0x178)]=_0x2e3024['centralAuthToken'],delete _0x2e3024['centralAuthToken']);for(const _0x44a101 of _0x5389b8){try{await _0x3ad0d5['finishScanningForCli'](!![],_0x1e567e,_0x44a101,_0x2e3024,!![]);}catch(_0x1284ae){logger[_0x1ba6d4(0x1ae)](_0x1ba6d4(0x1c6)+this[_0x1ba6d4(0x179)]+_0x1ba6d4(0x13a),_0x1284ae);}}}else{const _0x5a6f18={};_0x5a6f18[_0x1ba6d4(0x21d)]=this['_testUUID'],_0x5a6f18[_0x1ba6d4(0x1ca)]=process[_0x1ba6d4(0x146)][testHubConstants[_0x1ba6d4(0x20e)][_0x1ba6d4(0x1b6)]],_0x5a6f18[_0x1ba6d4(0x1e2)]=process['env'][testHubConstants[_0x1ba6d4(0x20e)][_0x1ba6d4(0x205)]];const _0x11bd67=_0x5a6f18;logger[_0x1ba6d4(0x16f)](_0x1ba6d4(0x19e)+JSON[_0x1ba6d4(0x1e7)](_0x11bd67));for(const _0x47141d of _0x5389b8){try{logger[_0x1ba6d4(0x16f)](_0xe8683b[_0x1ba6d4(0x1f4)]);const _0x18f17a={};_0x18f17a['method']=this['_testName'],await _0x47141d[_0x1ba6d4(0x226)](scripts['performScan'],_0x18f17a),await _0x47141d[_0x1ba6d4(0x226)](scripts[_0x1ba6d4(0x16c)],_0x11bd67);}catch(_0x4e70a3){logger[_0x1ba6d4(0x1ae)](_0x1ba6d4(0x185)+this[_0x1ba6d4(0x179)]+_0x1ba6d4(0x13a),_0x4e70a3);}}}logger['info'](_0xe8683b[_0x1ba6d4(0x18d)]);}catch(_0xcecb13){logger['warn'](_0x1ba6d4(0x149)+this['_testName']+'\x27:\x20'+_0xcecb13[_0x1ba6d4(0x164)]);}}['_buildTestData'](_0x592d52={}){const _0x4f59de=a49_0x8a00d4;return{[TestFrameworkConstants['KEY_TEST_UUID']]:this[_0x4f59de(0x17c)],'test_uuid':this['_testUUID'],[TestFrameworkConstants[_0x4f59de(0x21a)]]:this[_0x4f59de(0x179)],[TestFrameworkConstants[_0x4f59de(0x21e)]]:this['_testHierarchy'][0x0]||'',[TestFrameworkConstants['KEY_TEST_SCOPES']]:this[_0x4f59de(0x12d)],[TestFrameworkConstants[_0x4f59de(0x207)]]:this[_0x4f59de(0x130)]?path[_0x4f59de(0x1e6)](process[_0x4f59de(0x187)](),this['_filePath']):null,[TestFrameworkConstants[_0x4f59de(0x1e9)]]:this[_0x4f59de(0x130)]?path[_0x4f59de(0x1e6)](process['cwd'](),this['_filePath']):null,[TestFrameworkConstants[_0x4f59de(0x22f)]]:this[_0x4f59de(0x1d3)],[TestFrameworkConstants[_0x4f59de(0x219)]]:[],[TestFrameworkConstants[_0x4f59de(0x138)]]:this[_0x4f59de(0x179)],[TestFrameworkConstants[_0x4f59de(0x135)]]:FRAMEWORKS[_0x4f59de(0x217)],[TestFrameworkConstants[_0x4f59de(0x194)]]:'',[TestFrameworkConstants[_0x4f59de(0x12f)]]:global?.[_0x4f59de(0x1bc)]?.[_0x4f59de(0x22a)]?.['parallelIndex']||global[_0x4f59de(0x1ff)]||0x0,..._0x592d52};}['_detectCallerInfo'](){const _0x1db1f8=a49_0x8a00d4,_0x52b4db={};_0x52b4db[_0x1db1f8(0x1ce)]='node_modules';const _0x1fbee9=_0x52b4db;try{const _0x454f80=stackTrace[_0x1db1f8(0x1c2)](new Error()),_0x2eb1bc=path[_0x1db1f8(0x1e6)](__dirname,'..','..');for(const _0x25052c of _0x454f80){const _0x5db47e=_0x25052c['getFileName']();if(_0x5db47e&&!_0x5db47e[_0x1db1f8(0x17f)](_0x1fbee9['mPwuI'])&&!_0x5db47e[_0x1db1f8(0x1a1)](_0x2eb1bc))return{'functionName':_0x25052c[_0x1db1f8(0x193)]()||_0x25052c[_0x1db1f8(0x1f5)]()||null,'fileName':_0x5db47e,'lineNumber':_0x25052c[_0x1db1f8(0x20b)]()};}return null;}catch(_0x20d24d){return logger[_0x1db1f8(0x16f)]('[TestClient]\x20_detectCallerInfo:\x20Error:\x20'+_0x20d24d[_0x1db1f8(0x164)]),null;}}['_extractSourceCode'](_0x439b9d,_0x448add,_0x4a1cd3){const _0x5210ea=a49_0x8a00d4,_0x4e7a49={};_0x4e7a49['HEPWD']=_0x5210ea(0x14b),_0x4e7a49[_0x5210ea(0x153)]=function(_0x24592c,_0x9ef14){return _0x24592c!==_0x9ef14;},_0x4e7a49['Dpvwp']=_0x5210ea(0x22c),_0x4e7a49['AYJhy']=_0x5210ea(0x1d7),_0x4e7a49[_0x5210ea(0x1eb)]=function(_0x1044d5,_0x237034){return _0x1044d5<_0x237034;},_0x4e7a49[_0x5210ea(0x1a2)]=function(_0x2e82af,_0x1bcbcf){return _0x2e82af+_0x1bcbcf;},_0x4e7a49['Dpxkn']=function(_0x50d4d2,_0x95c2d4){return _0x50d4d2>_0x95c2d4;},_0x4e7a49['WhLDo']=function(_0x1d8b97,_0x309c5c){return _0x1d8b97-_0x309c5c;},_0x4e7a49[_0x5210ea(0x22d)]=function(_0x26d914,_0x33f203){return _0x26d914+_0x33f203;},_0x4e7a49[_0x5210ea(0x1b7)]=function(_0x11da12,_0x98216a){return _0x11da12>=_0x98216a;},_0x4e7a49[_0x5210ea(0x12b)]=function(_0x2a1591,_0x246c9d){return _0x2a1591+_0x246c9d;};const _0x23df1f=_0x4e7a49;try{if(!_0x439b9d||!fs[_0x5210ea(0x182)](_0x439b9d))return null;const _0x1d5f1b=fs[_0x5210ea(0x1a3)](_0x439b9d,_0x23df1f['HEPWD']),_0x21369c=_0x1d5f1b['split']('\x0a');if(_0x4a1cd3&&_0x23df1f[_0x5210ea(0x153)](_0x4a1cd3,_0x23df1f['Dpvwp'])){const _0x5ef34b=_0x4a1cd3['replace'](/[.*+?^${}()|[\]\\]/g,_0x23df1f[_0x5210ea(0x14f)]),_0x107947=new RegExp(_0x5210ea(0x19d)+_0x5ef34b+_0x5210ea(0x13b)+_0x5ef34b+'\x5cs*=|'+_0x5ef34b+'\x5cs*[=(]');for(let _0x490730=0x0;_0x23df1f[_0x5210ea(0x1eb)](_0x490730,_0x21369c[_0x5210ea(0x18b)]);_0x490730++){if(_0x107947[_0x5210ea(0x227)](_0x21369c[_0x490730])){const _0x366a31=Math[_0x5210ea(0x1ec)](_0x23df1f[_0x5210ea(0x1a2)](_0x490730,0x32),_0x21369c[_0x5210ea(0x18b)]);return _0x21369c[_0x5210ea(0x165)](_0x490730,_0x366a31)[_0x5210ea(0x15e)]('\x0a');}}}if(_0x448add&&_0x23df1f['Dpxkn'](_0x448add,0x0)){const _0x3cfb22=Math['max'](0x0,_0x23df1f['WhLDo'](_0x448add,0x5)),_0x28ca84=Math['min'](_0x21369c[_0x5210ea(0x18b)],_0x23df1f[_0x5210ea(0x22d)](_0x448add,0x2d));return _0x21369c['slice'](_0x3cfb22,_0x28ca84)[_0x5210ea(0x15e)]('\x0a');}const _0x274aa7=_0x21369c['findIndex'](_0x21c855=>!_0x21c855['match'](/^(const|let|var|import)\s.*require|^import\s/));if(_0x23df1f[_0x5210ea(0x1b7)](_0x274aa7,0x0))return _0x21369c[_0x5210ea(0x165)](_0x274aa7,_0x23df1f['puHXI'](_0x274aa7,0x64))[_0x5210ea(0x15e)]('\x0a');return null;}catch(_0x1278ad){return logger[_0x5210ea(0x16f)]('[TestClient]\x20_extractSourceCode:\x20Error:\x20'+_0x1278ad['message']),null;}}}module[a49_0x8a00d4(0x15d)]=TestClient;
1
+ 'use strict';const a49_0x288ad=a49_0x29f9;function a49_0x418f(){const _0x2c583a=['getSession','ViUGT','isAbsolute','markSessionStatus','DEFAULT_TEST_RESULT','saveResults','stop','frameworkName','[TestClient]\x20_markSessionStatus:\x20Error:\x20','RJFvr','../../helpers/accessibility-automation/scripts','testSessionEvent','existsSync','176010MzxSQm','(async\x5cs+)?function\x5cs+','parallelIndex','isCliEnabled','../../helpers/testhub/constants','[TestClient]\x20markPassed:\x20start()\x20was\x20not\x20called.\x20Ignoring.','KugQS','markPassed','findIndex','JoCWU','_filePath','pid','huaDu','_markSessionName','[TestClient]\x20_enableAccessibilityScanning:\x20Error:\x20','mYdZT','[TestClient]\x20_detectCallerInfo:\x20Error:\x20','DoYkW','1|9|0|6|2|3|10|5|8|4|7','centralAuthToken','CdTJa','setShouldScanCurrentTest','11725922PPUANv','split','env','__cloud_provider___','XNMKH','frameworkVersion','Assert','jOoWD','KEY_TEST_SCOPE','stringify','base64','[TestClient]\x20start:\x20testHierarchy\x20is\x20required.\x20Call\x20setTestHierarchy()\x20before\x20start().','572584AfNqKF','appium:platformName','hsPGB','oAqZC','DnkHb','UXwAk','KEY_TEST_UUID','21JoeHlu','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20test\x20\x27','isAccessibilityPlatform','uedIs','afterTestHook','../v2/state/testFrameworkState.js','GispQ','KEY_TEST_RERUN_NAME','sxRfe','min','Unknown\x20error','IXIwc','thTestRunUuid','message','TOyJz','KEY_TEST_TAGS','length','KEY_PLATFORM_INDEX','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','setFilePath','KEY_TEST_FILE_PATH','[TRACE:node-generic]\x20TestClient.markFailed()\x20test_uuid=','join','appium','uNpgR','TEST','failed','mlmQZ','getInstance','executeAsyncScript','NODE_GENERIC','bKfIr','HYQUq','AVSNq','msNgG','trackEvent','uyjug','arguments','iiAaB','NTyah','getAccessibilityModule','[TestClient]\x20markFailed:\x20result\x20already\x20marked.\x20Ignoring.',',\x20test_name=','__skipSessionName','exit','aeMGW','\x27:\x20','startsWith','KEY_TEST_ENDED_AT','_markSessionStatus','error','[App-A11y]\x20Could\x20not\x20fetch\x20central\x20auth\x20config:\x20','replace','biOKE','ZBcbS','../../helpers/classLogger.js','Qyxia','cwd','thJwtToken','passed','[TestClient]\x20_extractSourceCode:\x20Error:\x20','KEY_TEST_FRAMEWORK_VERSION','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','accessibility','name','FofVq','[TestClient]\x20Set\x20session\x20name\x20to\x20\x27','Vecbg','ref','\x5cs*[=(]','../../helpers/accessibility-automation/helper','KEY_TEST_FRAMEWORK_NAME','RZhvC','toLowerCase','GLQyC','now','_markResult','map_','getGlobal','__bstackPlatformIndex','[TRACE:node-generic]\x20TestClient.start()\x20test_uuid=','Vsmyh','AwrwU','TGkWa','ierJS','UtBTF','_callerInfo','setVcFilePath','exitCode','[TestClient]\x20_markSessionName:\x20Error:\x20','jbTCn','KEY_TEST_FAILURE_REASON','../utils/constants','bstackA11yShouldScan','gGIee','getTestFramework','tuwMV','POST','xIXXt','pFFKZ','10OSghNY','[TRACE:node-generic]\x20TestClient.quit()\x20-\x20shutting\x20down','../v2/framework/constants/testFrameworkConstants.js','1050606srRZya','isArray','_startedAt','../v2/browserstackCLI.js','[TestClient]\x20start:\x20filePath\x20is\x20required.\x20Call\x20setFilePath()\x20before\x20start().','from','workerInfo','exports','selenium-webdriver','node_modules','thBuildUuid','_sendPlatformDetails','UxSBj','hnnYn','KEY_TEST_SCOPES','start','toString','KEY_TEST_CODE','fromEntries','_testUUID','_resultMarked','getFunctionName','includes','2VXuliK','dIefm','<anonymous>','yaJMv','uuid','[TestClient]\x20start:\x20testName\x20is\x20required.\x20Call\x20setTestName()\x20before\x20start().','browserstack','../../helpers/helper.js','UdmkM','Omaxd','info','_performAccessibilityScan','_getTestDrivers','KEY_TEST_FAILURE','HlWzN','298001wuaIOI','action','_detectCallerInfo','substring','22121MYzpLu','path','getId','KEY_TEST_STARTED_AT','\x27.\x20Error:','_extractSourceCode','KEY_TEST_RESULT','_vcFilePath',',\x20test_uuid=','__driversArray','appium:app','[TestClient]\x20Accessibility\x20shouldScan=','_started','setTestHierarchy','performScan','DmyMu',')\x20—\x20Checkpoint\x201\x20gate\x20opened','sessionNameSet__','BROWSERSTACK_TESTHUB_JWT','../v2/state/hookState.js','__workerDetails','CjebC','resolve','BPnhy','[TestClient]\x20quit:\x20Error\x20during\x20shutdown:\x20','dJHDs','189JCHGmX','stack','getCapabilities','PRE','slice','TestClient','vAuoc','parse','IObGU','../../helpers/helper','debug','_testHierarchy','\x5cs*=|','_testName','BROWSERSTACK_TESTHUB_UUID','setCurrentTestUUID','quit','ENV_VAR','\x5c$&','708CkinkM','_buildTestData','_enableAccessibilityScanning','toISOString','setTestName','[TestClient]\x20_sendPlatformDetails:\x20Error:\x20','4lPnBPk','readFileSync','[TestClient]\x20_markResult:\x20Error\x20dispatching\x20TEST\x20POST\x20event:\x20','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.','isAppAccessibility','MdWcb','utf-8','_driversAtStart','method','loadDriverExecuteParams','finishScanningForCli','_sendPlatformDetailsViaGrpc','MKvGv','centralAuthHeader','ios','IZmBV','_testCode','wppDG','../../helpers/test-observability/utils','[TRACE:node-generic]\x20TestClient.markPassed()\x20test_uuid=','FsOVn','warn','TGJUI','wVhsr','KEY_TEST_LOCATION','rvVVu','\x20for\x20\x27','android','setGlobal','setSessionName','[TestClient]\x20Sent\x20platform\x20details\x20for\x20test_uuid=','fxvdQ','oiddG','1321893rsVTsB'];a49_0x418f=function(){return _0x2c583a;};return a49_0x418f();}(function(_0x59e7fc,_0x50a5fc){const _0xcf26ce=a49_0x29f9,_0x23122b=_0x59e7fc();while(!![]){try{const _0x585046=-parseInt(_0xcf26ce(0x1bb))/0x1*(-parseInt(_0xcf26ce(0x1ac))/0x2)+parseInt(_0xcf26ce(0xf7))/0x3*(parseInt(_0xcf26ce(0x1f2))/0x4)+-parseInt(_0xcf26ce(0x192))/0x5*(-parseInt(_0xcf26ce(0x195))/0x6)+-parseInt(_0xcf26ce(0x12e))/0x7*(parseInt(_0xcf26ce(0x127))/0x8)+-parseInt(_0xcf26ce(0x1d9))/0x9*(-parseInt(_0xcf26ce(0x105))/0xa)+parseInt(_0xcf26ce(0x1bf))/0xb*(-parseInt(_0xcf26ce(0x1ec))/0xc)+-parseInt(_0xcf26ce(0x11b))/0xd;if(_0x585046===_0x50a5fc)break;else _0x23122b['push'](_0x23122b['shift']());}catch(_0x7faf2c){_0x23122b['push'](_0x23122b['shift']());}}}(a49_0x418f,0x36775));const {v4:uuidv4}=require(a49_0x288ad(0x1b0)),fs=require('fs'),path=require(a49_0x288ad(0x1c0)),stackTrace=require('stack-trace'),{createClassLogger}=require(a49_0x288ad(0x165)),TestFrameworkState=require(a49_0x288ad(0x133)),HookState=require(a49_0x288ad(0x1d2)),TestFrameworkConstants=require(a49_0x288ad(0x194)),helper=require(a49_0x288ad(0x1e2)),globals=require('../../helpers/globals'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a49_0x288ad(0x174)),scripts=require(a49_0x288ad(0x102)),testHubConstants=require(a49_0x288ad(0x109)),{FRAMEWORKS}=require(a49_0x288ad(0x18a)),logger=createClassLogger(a49_0x288ad(0x1de));function a49_0x29f9(_0x2f1a78,_0x5da0bc){const _0x418f23=a49_0x418f();return a49_0x29f9=function(_0x29f9aa,_0x50f584){_0x29f9aa=_0x29f9aa-0xef;let _0x162a38=_0x418f23[_0x29f9aa];return _0x162a38;},a49_0x29f9(_0x2f1a78,_0x5da0bc);}class TestClient{constructor(){const _0xb547a4=a49_0x288ad,_0x400d92={};_0x400d92[_0xb547a4(0x111)]=_0xb547a4(0x117);const _0x1a81e0=_0x400d92,_0x283e95=_0x1a81e0[_0xb547a4(0x111)][_0xb547a4(0x11c)]('|');let _0x5ad121=0x0;while(!![]){switch(_0x283e95[_0x5ad121++]){case'0':this[_0xb547a4(0x10f)]=null;continue;case'1':this['_testName']=null;continue;case'2':this[_0xb547a4(0x1a8)]=null;continue;case'3':this[_0xb547a4(0x197)]=null;continue;case'4':this['_testCode']=null;continue;case'5':this[_0xb547a4(0x1a9)]=![];continue;case'6':this[_0xb547a4(0x1c6)]=null;continue;case'7':this[_0xb547a4(0x1f9)]=0x0;continue;case'8':this[_0xb547a4(0x184)]=null;continue;case'9':this[_0xb547a4(0x1e4)]=[];continue;case'10':this[_0xb547a4(0x1cb)]=![];continue;}break;}}[a49_0x288ad(0x1f0)](_0x543846){const _0xee5f9a=a49_0x288ad;return this[_0xee5f9a(0x1e6)]=_0x543846,this;}[a49_0x288ad(0x1cc)](_0xae6e5e){const _0x18e1e1=a49_0x288ad;return this[_0x18e1e1(0x1e4)]=Array[_0x18e1e1(0x196)](_0xae6e5e)?_0xae6e5e:[],this;}[a49_0x288ad(0x141)](_0x459a19){const _0x247273=a49_0x288ad;return this[_0x247273(0x10f)]=_0x459a19,this;}[a49_0x288ad(0x185)](_0x4ab0b9){const _0x19e954=a49_0x288ad;return this[_0x19e954(0x1c6)]=_0x4ab0b9,this;}async[a49_0x288ad(0x1a4)](){const _0x2642fa=a49_0x288ad,_0x42147b={'Vsmyh':_0x2642fa(0x1b1),'vAuoc':function(_0x15c9c3,_0x5cf6b5){return _0x15c9c3===_0x5cf6b5;},'msNgG':_0x2642fa(0x126),'KugQS':_0x2642fa(0x199),'uedIs':function(_0xe41e08){return _0xe41e08();},'TGJUI':function(_0x3a80d6,_0x564a3c){return _0x3a80d6(_0x564a3c);},'UXwAk':_0x2642fa(0x198),'HYQUq':'[TestClient]\x20start:\x20No\x20test\x20framework\x20available.\x20Binary\x20may\x20not\x20be\x20running.'};if(!this[_0x2642fa(0x1e6)]){logger[_0x2642fa(0x160)](_0x42147b[_0x2642fa(0x17f)]);return;}if(!this[_0x2642fa(0x1e4)]||_0x42147b[_0x2642fa(0x1df)](this['_testHierarchy'][_0x2642fa(0x13e)],0x0)){logger[_0x2642fa(0x160)](_0x42147b[_0x2642fa(0x150)]);return;}if(!this[_0x2642fa(0x10f)]){logger[_0x2642fa(0x160)](_0x42147b[_0x2642fa(0x10b)]);return;}this[_0x2642fa(0x1a8)]=_0x42147b[_0x2642fa(0x131)](uuidv4),this[_0x2642fa(0x197)]=new Date()[_0x2642fa(0x1ef)](),this['_started']=!![],this[_0x2642fa(0x1f9)]=(global['__driversArray']||[])[_0x2642fa(0x13e)],this[_0x2642fa(0x1ee)]();try{const _0x2d1eec=_0x42147b['TGJUI'](require,_0x42147b[_0x2642fa(0x12c)]),_0x7bd2b9=_0x2d1eec[_0x2642fa(0x14a)]()?.[_0x2642fa(0x18d)]?.();_0x7bd2b9?.['setCurrentTestUUID']&&_0x7bd2b9[_0x2642fa(0x1e8)](this[_0x2642fa(0x1a8)]);}catch(_0x12fc39){}this[_0x2642fa(0x184)]=this[_0x2642fa(0x1bd)]();const _0x4bdeda=path[_0x2642fa(0xfa)](this[_0x2642fa(0x10f)])?this['_filePath']:path[_0x2642fa(0x1d5)](process[_0x2642fa(0x167)](),this[_0x2642fa(0x10f)]);this[_0x2642fa(0x202)]=this[_0x2642fa(0x1c4)](_0x4bdeda,this['_callerInfo']?.['lineNumber'],this['_callerInfo']?.['functionName']);const _0x17d105=this[_0x2642fa(0x1ed)]({[TestFrameworkConstants[_0x2642fa(0x1c5)]]:TestFrameworkConstants[_0x2642fa(0xfc)],[TestFrameworkConstants[_0x2642fa(0x1c2)]]:this['_startedAt']});logger[_0x2642fa(0x1b6)](_0x2642fa(0x17e)+this[_0x2642fa(0x1a8)]+_0x2642fa(0x158)+this[_0x2642fa(0x1e6)]);try{const _0x565eee=_0x42147b[_0x2642fa(0x208)](require,_0x42147b[_0x2642fa(0x12c)]),_0x58b679=_0x565eee[_0x2642fa(0x14a)]();if(_0x58b679&&_0x58b679[_0x2642fa(0x18d)]()){const _0x151410={};_0x151410['testData']=_0x17d105,await _0x58b679[_0x2642fa(0x18d)]()[_0x2642fa(0x151)](TestFrameworkState[_0x2642fa(0x147)],HookState[_0x2642fa(0x1dc)],_0x151410);}else logger[_0x2642fa(0x207)](_0x42147b[_0x2642fa(0x14e)]);}catch(_0x3d589b){logger[_0x2642fa(0x207)]('[TestClient]\x20start:\x20Error\x20dispatching\x20TEST\x20PRE\x20event:\x20'+_0x3d589b['message']);}}[a49_0x288ad(0x1b8)](){const _0x4d391f=a49_0x288ad,_0x27517f=global[_0x4d391f(0x1c8)]||[];return _0x27517f[_0x4d391f(0x1dd)](this['_driversAtStart']);}async[a49_0x288ad(0x112)](){const _0x37ca19=a49_0x288ad,_0x1b3ca1={};_0x1b3ca1[_0x37ca19(0x182)]=_0x37ca19(0xf3);const _0x1abebc=_0x1b3ca1;if(global[_0x37ca19(0x159)])return;const _0x220639=this['_getTestDrivers']();for(const _0x47cdd4 of _0x220639){try{if(_0x47cdd4['sessionNameSet__'])continue;const _0xe2ffd2={};_0xe2ffd2[_0x37ca19(0x16e)]=this[_0x37ca19(0x1e6)];const _0x21b0bf={};_0x21b0bf[_0x37ca19(0x1bc)]=_0x1abebc[_0x37ca19(0x182)],_0x21b0bf[_0x37ca19(0x153)]=_0xe2ffd2,await _0x47cdd4['executeScript']('browserstack_executor:\x20'+JSON[_0x37ca19(0x124)](_0x21b0bf)),_0x47cdd4[_0x37ca19(0x1d0)]=!![],logger['debug'](_0x37ca19(0x170)+this[_0x37ca19(0x1e6)]+'\x27');}catch(_0x365aa4){logger['debug'](_0x37ca19(0x187)+_0x365aa4[_0x37ca19(0x13b)]);}}}async[a49_0x288ad(0x15f)](_0x209a41,_0x459fe3){const _0x28ad2d=a49_0x288ad,_0x25bc05=this[_0x28ad2d(0x1b8)]();for(const _0x41d9e9 of _0x25bc05){try{await helper[_0x28ad2d(0xfb)](_0x41d9e9,_0x209a41,_0x459fe3),logger[_0x28ad2d(0x1e3)]('[TestClient]\x20Marked\x20session\x20status\x20\x27'+_0x209a41+'\x27');}catch(_0x20a82f){logger[_0x28ad2d(0x1e3)](_0x28ad2d(0x100)+_0x20a82f[_0x28ad2d(0x13b)]);}}}async[a49_0x288ad(0x1a0)](){const _0x55473e=a49_0x288ad,_0x5a284c={'UxSBj':function(_0x2082bf,_0x2e3e79){return _0x2082bf(_0x2e3e79);},'FofVq':_0x55473e(0x198),'IXIwc':function(_0x555f05,_0x4a02a8){return _0x555f05(_0x4a02a8);},'DmyMu':_0x55473e(0x204),'DYWqO':function(_0x276e00,_0x192b16,_0xcc5463,_0x44e278,_0x4cc471){return _0x276e00(_0x192b16,_0xcc5463,_0x44e278,_0x4cc471);}},_0x17aad=this[_0x55473e(0x1b8)]();for(const _0x23790e of _0x17aad){try{const _0x4481d1=_0x5a284c[_0x55473e(0x1a1)](require,_0x5a284c[_0x55473e(0x16f)]),_0x2b59a9=_0x4481d1[_0x55473e(0x14a)]();if(_0x2b59a9&&_0x2b59a9[_0x55473e(0x108)]())await this[_0x55473e(0x1fd)](_0x23790e);else{const {sendPlatformDetails:_0x1706cc}=_0x5a284c[_0x55473e(0x139)](require,_0x5a284c[_0x55473e(0x1ce)]);await _0x5a284c['DYWqO'](_0x1706cc,_0x23790e,this['_testUUID'],![],!![]);}logger[_0x55473e(0x1e3)](_0x55473e(0xf4)+this[_0x55473e(0x1a8)]);}catch(_0x296a4d){logger[_0x55473e(0x1e3)](_0x55473e(0x1f1)+_0x296a4d[_0x55473e(0x13b)]);}}}async[a49_0x288ad(0x1fd)](_0xeb4bb7){const _0x17ba74=a49_0x288ad,_0x48fa22={'GispQ':function(_0x38e3bf,_0x1281d1){return _0x38e3bf(_0x1281d1);},'gGIee':'../v2/grpcClient.js','TOyJz':function(_0xc61ac7,_0x4b6c91){return _0xc61ac7(_0x4b6c91);},'RJFvr':_0x17ba74(0x1b3),'NTyah':_0x17ba74(0x133),'tuwMV':function(_0x166962,_0x1be1dc){return _0x166962(_0x1be1dc);},'hsPGB':_0x17ba74(0x1d2),'CdTJa':_0x17ba74(0x128),'FsOVn':'platformName','Vecbg':function(_0x5176f5,_0xba2914){return _0x5176f5(_0xba2914);},'pQzOZ':_0x17ba74(0x1c9),'biOKE':_0x17ba74(0xf1),'CjebC':_0x17ba74(0x200),'gJiAy':_0x17ba74(0x145),'GLQyC':_0x17ba74(0x19d),'oAqZC':function(_0x26047f){return _0x26047f();},'DnkHb':_0x17ba74(0x1b2),'Omaxd':function(_0x9c67ed){return _0x9c67ed();},'InDVR':_0x17ba74(0x125),'IObGU':function(_0x3612b3,_0x5a9c9f){return _0x3612b3(_0x5a9c9f);}},_0x48bbb5=_0x48fa22[_0x17ba74(0x134)](require,_0x48fa22[_0x17ba74(0x18c)]),{getProductForSession:_0x53c7a5,isBrowserstackInfra:_0x1ce513}=_0x48fa22[_0x17ba74(0x13c)](require,_0x48fa22[_0x17ba74(0x101)]),_0x36997e=_0x48fa22[_0x17ba74(0x134)](require,_0x48fa22[_0x17ba74(0x155)]),_0x2c336d=_0x48fa22[_0x17ba74(0x18e)](require,_0x48fa22[_0x17ba74(0x129)]),_0x54e05f=await _0xeb4bb7[_0x17ba74(0xf8)](),_0x49e6fa=_0x54e05f[_0x17ba74(0x1c1)](),_0x1acd1e=_0x54e05f[_0x17ba74(0x1db)]()[_0x17ba74(0x17b)],_0xdeb27b=_0x1acd1e?Object[_0x17ba74(0x1a7)](_0x1acd1e):{},_0x52c3df=_0x48fa22['TOyJz'](String,_0xdeb27b[_0x48fa22[_0x17ba74(0x119)]]||_0xdeb27b[_0x48fa22[_0x17ba74(0x206)]]||'')[_0x17ba74(0x177)](),_0x25a13c=_0x48fa22[_0x17ba74(0x171)](Boolean,_0xdeb27b[_0x48fa22[_0x17ba74(0x119)]]||_0xdeb27b[_0x48fa22['pQzOZ']]||_0x52c3df&&[_0x48fa22[_0x17ba74(0x163)],_0x48fa22[_0x17ba74(0x1d4)]][_0x17ba74(0x1ab)](_0x52c3df)),_0x5e3932=_0x25a13c?_0x48fa22['gJiAy']:_0x48fa22[_0x17ba74(0x178)],_0x101a7a=_0x48fa22[_0x17ba74(0x12a)](_0x1ce513)?_0x48fa22[_0x17ba74(0x12b)]:global[_0x17ba74(0x11e)]||_0x48fa22['DnkHb'],_0xc83262=_0x48fa22[_0x17ba74(0x1b5)](_0x53c7a5)||null,_0x3e357e={};_0x3e357e['provider']=_0x101a7a,_0x3e357e[_0x17ba74(0xff)]=_0x5e3932,_0x3e357e[_0x17ba74(0x120)]='',_0x3e357e['frameworkSessionId']=_0x49e6fa,_0x3e357e[_0x17ba74(0x172)]=_0x49e6fa,_0x3e357e['hubUrl']='',_0x3e357e['product']=_0xc83262;const _0x348533=_0x3e357e,_0x2cd0d6=Buffer[_0x17ba74(0x19a)](JSON[_0x17ba74(0x124)](_0xdeb27b))[_0x17ba74(0x1a5)](_0x48fa22['InDVR']),_0x1983cd=_0x36997e['TEST'][_0x17ba74(0x1a5)]()[_0x17ba74(0x11c)]('.')[0x1],_0x314fc1=_0x2c336d[_0x17ba74(0x18f)][_0x17ba74(0x1a5)]()['split']('.')[0x1],_0x556465=global?.['__workerDetails']?.[_0x17ba74(0x19b)]?.['parallelIndex']||global[_0x17ba74(0x17d)]||0x0,_0x571314={'platformIndex':_0x556465,'testFrameworkName':FRAMEWORKS[_0x17ba74(0x14c)],'testFrameworkVersion':'','testFrameworkState':_0x1983cd,'testHookState':_0x314fc1,'testUuid':this[_0x17ba74(0x1a8)],'automationSession':_0x348533,'capabilities':_0x2cd0d6,'executionContext':{'hash':this[_0x17ba74(0x1a8)],'threadId':_0x48fa22[_0x17ba74(0x1e1)](String,process['pid']),'processId':_0x48fa22[_0x17ba74(0x1e1)](String,process[_0x17ba74(0x110)])}};logger[_0x17ba74(0x1e3)]('[TestClient]\x20Sending\x20CBTSession\x20via\x20gRPC\x20for\x20session_id='+_0x49e6fa+_0x17ba74(0x1c7)+this[_0x17ba74(0x1a8)]),await _0x48bbb5[_0x17ba74(0x14a)]()[_0x17ba74(0x103)](_0x571314);}async[a49_0x288ad(0x17a)](_0x107ba3,_0x1d0b64,_0x2185d8){const _0x2be488=a49_0x288ad,_0x220af6={'dIefm':function(_0x27657a,_0x1485de){return _0x27657a(_0x1485de);},'MdWcb':_0x2be488(0x198)};await this[_0x2be488(0x112)](),await this[_0x2be488(0x15f)](_0x1d0b64,_0x2185d8),await this[_0x2be488(0x1a0)](),await this[_0x2be488(0x1b7)]();try{const _0x47901d=_0x220af6[_0x2be488(0x1ad)](require,_0x220af6[_0x2be488(0x1f7)]),_0x2d1ee5=_0x47901d[_0x2be488(0x14a)]();if(_0x2d1ee5&&_0x2d1ee5[_0x2be488(0x18d)]()){const _0x5d421e={};_0x5d421e['testData']=_0x107ba3,await _0x2d1ee5[_0x2be488(0x18d)]()[_0x2be488(0x151)](TestFrameworkState[_0x2be488(0x147)],HookState[_0x2be488(0x18f)],_0x5d421e);}}catch(_0x4a1198){logger[_0x2be488(0x207)](_0x2be488(0x1f4)+_0x4a1198[_0x2be488(0x13b)]);}}async[a49_0x288ad(0x10c)](){const _0xe7599d=a49_0x288ad,_0x5347c3={};_0x5347c3[_0xe7599d(0x180)]=_0xe7599d(0x10a),_0x5347c3['fxvdQ']='[TestClient]\x20markPassed:\x20result\x20already\x20marked.\x20Ignoring.',_0x5347c3[_0xe7599d(0x203)]=_0xe7599d(0x169);const _0x46e73e=_0x5347c3;if(!this['_started']){logger[_0xe7599d(0x207)](_0x46e73e[_0xe7599d(0x180)]);return;}if(this['_resultMarked']){logger[_0xe7599d(0x207)](_0x46e73e[_0xe7599d(0xf5)]);return;}this[_0xe7599d(0x1a9)]=!![];const _0x2cd2c5=new Date()[_0xe7599d(0x1ef)](),_0x156ffe={[TestFrameworkConstants[_0xe7599d(0x1c5)]]:_0x46e73e[_0xe7599d(0x203)],[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x2cd2c5},_0x3ecf05=this[_0xe7599d(0x1ed)](_0x156ffe);logger[_0xe7599d(0x1b6)](_0xe7599d(0x205)+this[_0xe7599d(0x1a8)]),await this[_0xe7599d(0x17a)](_0x3ecf05,_0x46e73e[_0xe7599d(0x203)],null);}async['markFailed'](_0x37623b){const _0x43df6a=a49_0x288ad,_0x2f6c3a={'TGkWa':'[TestClient]\x20markFailed:\x20start()\x20was\x20not\x20called.\x20Ignoring.','uNpgR':_0x43df6a(0x157),'vYiGY':function(_0x1c0857,_0x1b36c5){return _0x1c0857(_0x1b36c5);},'oiddG':_0x43df6a(0x138),'rvVVu':_0x43df6a(0x121),'WsIGK':'AssertionError','LnDei':'UnhandledError','iiAaB':_0x43df6a(0x148)};if(!this[_0x43df6a(0x1cb)]){logger[_0x43df6a(0x207)](_0x2f6c3a[_0x43df6a(0x181)]);return;}if(this['_resultMarked']){logger[_0x43df6a(0x207)](_0x2f6c3a[_0x43df6a(0x146)]);return;}this[_0x43df6a(0x1a9)]=!![];const _0x56339c=new Date()[_0x43df6a(0x1ef)](),_0x4d00cb=_0x37623b?_0x37623b[_0x43df6a(0x13b)]||_0x2f6c3a['vYiGY'](String,_0x37623b):_0x2f6c3a[_0x43df6a(0xf6)],_0x16339c=_0x37623b&&_0x37623b['name']&&_0x37623b[_0x43df6a(0x16e)][_0x43df6a(0x1ab)](_0x2f6c3a[_0x43df6a(0xef)])?_0x2f6c3a['WsIGK']:_0x2f6c3a['LnDei'],_0x88d402=_0x37623b?[{'backtrace':_0x37623b[_0x43df6a(0x1da)]?_0x37623b['stack'][_0x43df6a(0x11c)]('\x0a'):[],'message':_0x4d00cb}]:[],_0xc20197={[TestFrameworkConstants['KEY_TEST_RESULT']]:_0x2f6c3a[_0x43df6a(0x154)],[TestFrameworkConstants[_0x43df6a(0x15e)]]:_0x56339c,[TestFrameworkConstants['KEY_TEST_FAILURE_TYPE']]:_0x16339c,[TestFrameworkConstants[_0x43df6a(0x189)]]:_0x4d00cb,[TestFrameworkConstants[_0x43df6a(0x1b9)]]:_0x88d402},_0x58e373=this[_0x43df6a(0x1ed)](_0xc20197);logger[_0x43df6a(0x1b6)](_0x43df6a(0x143)+this['_testUUID']+',\x20reason='+_0x4d00cb[_0x43df6a(0x1be)](0x0,0xc8)),await this[_0x43df6a(0x17a)](_0x58e373,_0x2f6c3a[_0x43df6a(0x154)],_0x4d00cb);}static async[a49_0x288ad(0x1e9)](){const _0x3822a7=a49_0x288ad,_0x4ca650={'Lsror':_0x3822a7(0x193),'UdmkM':function(_0x37cf43,_0x1edd13){return _0x37cf43(_0x1edd13);},'daESG':'../v2/browserstackCLI.js'};logger[_0x3822a7(0x1b6)](_0x4ca650['Lsror']);try{const _0x2ab17d=_0x4ca650[_0x3822a7(0x1b4)](require,_0x4ca650['daESG']);await _0x2ab17d[_0x3822a7(0x14a)]()[_0x3822a7(0xfe)]();}catch(_0x3ceac2){logger[_0x3822a7(0x207)](_0x3822a7(0x1d7)+_0x3ceac2['message']);}process[_0x3822a7(0x15a)](process[_0x3822a7(0x186)]||0x0);}['_enableAccessibilityScanning'](){const _0x3df590=a49_0x288ad,_0x538cd3={'ViUGT':function(_0x1df1ee,_0x5d6be9,_0x3e8b51){return _0x1df1ee(_0x5d6be9,_0x3e8b51);},'sxRfe':_0x3df590(0x18b),'MKvGv':function(_0x296265,_0x3e0252){return _0x296265(_0x3e0252);},'zuEEf':_0x3df590(0x198),'hnnYn':function(_0x488e5a,_0x29175d){return _0x488e5a===_0x29175d;},'HlWzN':'function'};try{const _0x569c45=_0x538cd3[_0x3df590(0xf9)](shouldScanTestForAccessibility,this[_0x3df590(0x1e6)],![]);globals[_0x3df590(0xf2)](_0x538cd3[_0x3df590(0x136)],_0x569c45),logger[_0x3df590(0x1e3)](_0x3df590(0x1ca)+_0x569c45+_0x3df590(0xf0)+this['_testName']+'\x27');try{const _0x37edf6=_0x538cd3[_0x3df590(0x1fe)](require,_0x538cd3['zuEEf']),_0x1a6684=_0x37edf6['getInstance'](),_0x8967c3=_0x1a6684&&_0x1a6684[_0x3df590(0x156)]&&_0x1a6684[_0x3df590(0x156)]();_0x8967c3&&_0x538cd3[_0x3df590(0x1a2)](typeof _0x8967c3['setShouldScanCurrentTest'],_0x538cd3[_0x3df590(0x1ba)])&&(_0x8967c3[_0x3df590(0x11a)](_0x569c45),logger[_0x3df590(0x1e3)]('[TestClient]\x20a11yModule.setShouldScanCurrentTest('+_0x569c45+_0x3df590(0x1cf)));}catch(_0x2e4a78){logger[_0x3df590(0x1e3)]('[TestClient]\x20_enableAccessibilityScanning:\x20a11yModule\x20update\x20failed:\x20'+_0x2e4a78[_0x3df590(0x13b)]);}}catch(_0x30616b){logger[_0x3df590(0x1e3)](_0x3df590(0x113)+_0x30616b['message']);}}async[a49_0x288ad(0x1b7)](){const _0x30a7a5=a49_0x288ad,_0x748201={'mlmQZ':function(_0x2cd0c0){return _0x2cd0c0();},'BPnhy':_0x30a7a5(0x130),'aulAH':_0x30a7a5(0x18b),'UtBTF':function(_0x524ab4,_0x3f8376){return _0x524ab4===_0x3f8376;},'uyjug':_0x30a7a5(0x1f5),'Qyxia':function(_0x25a4b4,_0x88d176){return _0x25a4b4(_0x88d176);},'mYdZT':'../v2/browserstackCLI.js','CEHtJ':'../v2/grpcClient','bKfIr':_0x30a7a5(0x16d),'yaJMv':_0x30a7a5(0xfd),'IZmBV':'../v2/modules/accessibilityModule','pFFKZ':_0x30a7a5(0x132),'jbTCn':'Performing\x20scan\x20before\x20saving\x20results','dJHDs':_0x30a7a5(0x16c)};try{if(!_0x748201[_0x30a7a5(0x149)](isAccessibilityAutomationSession)||!globals[_0x30a7a5(0x17c)](_0x748201[_0x30a7a5(0x1d6)])||!globals[_0x30a7a5(0x17c)](_0x748201['aulAH']))return;const _0x460c9a=this['_getTestDrivers']();if(_0x748201[_0x30a7a5(0x183)](_0x460c9a['length'],0x0))return;logger[_0x30a7a5(0x1b6)](_0x748201[_0x30a7a5(0x152)]);const _0x4cbd6a=_0x748201[_0x30a7a5(0x166)](require,_0x748201[_0x30a7a5(0x114)]),_0x5e8a55=_0x4cbd6a[_0x30a7a5(0x14a)](),_0x2e3747=_0x5e8a55&&_0x5e8a55[_0x30a7a5(0x156)]();if(_0x2e3747&&_0x2e3747[_0x30a7a5(0x1f6)]){const _0x36a899=this['_testUUID'],_0x32ebc4=process['env'][testHubConstants[_0x30a7a5(0x1ea)][_0x30a7a5(0x1e7)]]||'',_0x1bbd15=process[_0x30a7a5(0x11d)][testHubConstants[_0x30a7a5(0x1ea)]['BROWSERSTACK_TESTHUB_JWT']]||'',_0x32bbe9=process[_0x30a7a5(0x11d)]['BS_A11Y_JWT']||'';let _0x432e1f={};try{const _0xf405b5=_0x748201[_0x30a7a5(0x166)](require,_0x748201['CEHtJ']),_0x3f37cc=await _0xf405b5[_0x30a7a5(0x14a)]()['fetchDriverExecuteParamsEvent'](process['env']['BROWSERSTACK_CLI_BIN_SESSION_ID'],_0x748201[_0x30a7a5(0x14d)],_0x748201[_0x30a7a5(0x1af)]),_0x2ab42b=_0x748201[_0x30a7a5(0x166)](require,_0x748201[_0x30a7a5(0x201)]);_0x432e1f=_0x2ab42b[_0x30a7a5(0x1fb)](_0x36a899,_0x3f37cc)||{};}catch(_0xb82ec6){logger[_0x30a7a5(0x207)](_0x30a7a5(0x161)+_0xb82ec6[_0x30a7a5(0x13b)]);}const _0x3f5189=Object['assign']({},{'thTestRunUuid':_0x36a899,'thBuildUuid':_0x32ebc4,'thJwtToken':_0x1bbd15,'authHeader':_0x32bbe9,'method':this['_testName']||_0x748201[_0x30a7a5(0x191)],'scanTimestamp':Date[_0x30a7a5(0x179)]()['toString']()},_0x432e1f);_0x3f5189[_0x30a7a5(0x118)]&&(_0x3f5189[_0x30a7a5(0x1ff)]=_0x3f5189[_0x30a7a5(0x118)],delete _0x3f5189[_0x30a7a5(0x118)]);for(const _0xf6b7e8 of _0x460c9a){try{await _0x2e3747[_0x30a7a5(0x1fc)](!![],_0x36a899,_0xf6b7e8,_0x3f5189,!![]);}catch(_0x2fd704){logger[_0x30a7a5(0x160)]('[App-A11y]\x20Checkpoint\x202\x20scan\x20failed\x20for\x20test\x20\x27'+this[_0x30a7a5(0x1e6)]+_0x30a7a5(0x1c3),_0x2fd704);}}}else{const _0x10cc79={};_0x10cc79[_0x30a7a5(0x13a)]=this[_0x30a7a5(0x1a8)],_0x10cc79[_0x30a7a5(0x19f)]=process[_0x30a7a5(0x11d)][testHubConstants[_0x30a7a5(0x1ea)][_0x30a7a5(0x1e7)]],_0x10cc79[_0x30a7a5(0x168)]=process[_0x30a7a5(0x11d)][testHubConstants[_0x30a7a5(0x1ea)][_0x30a7a5(0x1d1)]];const _0x3e80e9=_0x10cc79;logger[_0x30a7a5(0x1e3)](_0x30a7a5(0x140)+JSON[_0x30a7a5(0x124)](_0x3e80e9));for(const _0x199406 of _0x460c9a){try{logger[_0x30a7a5(0x1e3)](_0x748201[_0x30a7a5(0x188)]);const _0x4e84bb={};_0x4e84bb[_0x30a7a5(0x1fa)]=this[_0x30a7a5(0x1e6)],await _0x199406['executeAsyncScript'](scripts[_0x30a7a5(0x1cd)],_0x4e84bb),await _0x199406[_0x30a7a5(0x14b)](scripts['saveTestResults'],_0x3e80e9);}catch(_0x556ba3){logger[_0x30a7a5(0x160)](_0x30a7a5(0x12f)+this['_testName']+_0x30a7a5(0x1c3),_0x556ba3);}}}logger['info'](_0x748201[_0x30a7a5(0x1d8)]);}catch(_0x231a0c){logger[_0x30a7a5(0x207)]('[TestClient]\x20_performAccessibilityScan:\x20Error\x20processing\x20accessibility\x20scan\x20for\x20test\x20\x27'+this[_0x30a7a5(0x1e6)]+_0x30a7a5(0x15c)+_0x231a0c['message']);}}[a49_0x288ad(0x1ed)](_0x28d669={}){const _0x4458e4=a49_0x288ad;return{[TestFrameworkConstants[_0x4458e4(0x12d)]]:this['_testUUID'],'test_uuid':this[_0x4458e4(0x1a8)],[TestFrameworkConstants['KEY_TEST_NAME']]:this['_testName'],[TestFrameworkConstants[_0x4458e4(0x123)]]:this[_0x4458e4(0x1e4)][0x0]||'',[TestFrameworkConstants[_0x4458e4(0x1a3)]]:this[_0x4458e4(0x1e4)],[TestFrameworkConstants[_0x4458e4(0x142)]]:this[_0x4458e4(0x10f)]?path[_0x4458e4(0x1d5)](process[_0x4458e4(0x167)](),this['_filePath']):null,[TestFrameworkConstants[_0x4458e4(0x20a)]]:this['_filePath']?path[_0x4458e4(0x1d5)](process[_0x4458e4(0x167)](),this[_0x4458e4(0x10f)]):null,[TestFrameworkConstants[_0x4458e4(0x1a6)]]:this['_testCode'],[TestFrameworkConstants[_0x4458e4(0x13d)]]:[],[TestFrameworkConstants[_0x4458e4(0x135)]]:this['_testName'],[TestFrameworkConstants[_0x4458e4(0x175)]]:FRAMEWORKS[_0x4458e4(0x14c)],[TestFrameworkConstants[_0x4458e4(0x16b)]]:'',[TestFrameworkConstants[_0x4458e4(0x13f)]]:global?.[_0x4458e4(0x1d3)]?.[_0x4458e4(0x19b)]?.[_0x4458e4(0x107)]||global[_0x4458e4(0x17d)]||0x0,..._0x28d669};}[a49_0x288ad(0x1bd)](){const _0x21f9a9=a49_0x288ad,_0x401d6f={};_0x401d6f['JoCWU']=_0x21f9a9(0x19e);const _0x534b16=_0x401d6f;try{const _0xf1c237=stackTrace[_0x21f9a9(0x1e0)](new Error()),_0x1eaf2c=path[_0x21f9a9(0x1d5)](__dirname,'..','..');for(const _0x4715e8 of _0xf1c237){const _0x1504d6=_0x4715e8['getFileName']();if(_0x1504d6&&!_0x1504d6[_0x21f9a9(0x1ab)](_0x534b16[_0x21f9a9(0x10e)])&&!_0x1504d6[_0x21f9a9(0x15d)](_0x1eaf2c))return{'functionName':_0x4715e8[_0x21f9a9(0x1aa)]()||_0x4715e8['getMethodName']()||null,'fileName':_0x1504d6,'lineNumber':_0x4715e8['getLineNumber']()};}return null;}catch(_0x17b482){return logger['debug'](_0x21f9a9(0x115)+_0x17b482[_0x21f9a9(0x13b)]),null;}}['_extractSourceCode'](_0x49aae7,_0x5ce2c3,_0x18ae59){const _0xbab041=a49_0x288ad,_0x52328c={};_0x52328c[_0xbab041(0x14f)]=_0xbab041(0x1f8),_0x52328c[_0xbab041(0x209)]=function(_0x463b67,_0x202c68){return _0x463b67!==_0x202c68;},_0x52328c[_0xbab041(0x122)]=_0xbab041(0x1ae),_0x52328c[_0xbab041(0x176)]=_0xbab041(0x1eb),_0x52328c[_0xbab041(0x11f)]=function(_0x408f1f,_0x288998){return _0x408f1f<_0x288998;},_0x52328c[_0xbab041(0x116)]=function(_0xff4b37,_0xefffb5){return _0xff4b37+_0xefffb5;},_0x52328c[_0xbab041(0x190)]=function(_0x52bf31,_0x1ddf73){return _0x52bf31>_0x1ddf73;},_0x52328c[_0xbab041(0x15b)]=function(_0x2da8bf,_0x4317fa){return _0x2da8bf-_0x4317fa;},_0x52328c['cXzvC']=function(_0x584f12,_0x1e9692){return _0x584f12>=_0x1e9692;},_0x52328c[_0xbab041(0x164)]=function(_0x208ec9,_0x3d3c05){return _0x208ec9+_0x3d3c05;};const _0x7fa28d=_0x52328c;try{if(!_0x49aae7||!fs[_0xbab041(0x104)](_0x49aae7))return null;const _0x3f20ec=fs[_0xbab041(0x1f3)](_0x49aae7,_0x7fa28d['AVSNq']),_0x139253=_0x3f20ec[_0xbab041(0x11c)]('\x0a');if(_0x18ae59&&_0x7fa28d[_0xbab041(0x209)](_0x18ae59,_0x7fa28d[_0xbab041(0x122)])){const _0x15b1ce=_0x18ae59[_0xbab041(0x162)](/[.*+?^${}()|[\]\\]/g,_0x7fa28d[_0xbab041(0x176)]),_0x29722f=new RegExp(_0xbab041(0x106)+_0x15b1ce+'|const\x5cs+'+_0x15b1ce+_0xbab041(0x1e5)+_0x15b1ce+_0xbab041(0x173));for(let _0xfd371d=0x0;_0x7fa28d[_0xbab041(0x11f)](_0xfd371d,_0x139253[_0xbab041(0x13e)]);_0xfd371d++){if(_0x29722f['test'](_0x139253[_0xfd371d])){const _0x4a8740=Math[_0xbab041(0x137)](_0x7fa28d[_0xbab041(0x116)](_0xfd371d,0x32),_0x139253[_0xbab041(0x13e)]);return _0x139253[_0xbab041(0x1dd)](_0xfd371d,_0x4a8740)[_0xbab041(0x144)]('\x0a');}}}if(_0x5ce2c3&&_0x7fa28d[_0xbab041(0x190)](_0x5ce2c3,0x0)){const _0x6a5957=Math['max'](0x0,_0x7fa28d[_0xbab041(0x15b)](_0x5ce2c3,0x5)),_0x21fe2a=Math[_0xbab041(0x137)](_0x139253['length'],_0x7fa28d['DoYkW'](_0x5ce2c3,0x2d));return _0x139253[_0xbab041(0x1dd)](_0x6a5957,_0x21fe2a)['join']('\x0a');}const _0x4a71e2=_0x139253[_0xbab041(0x10d)](_0x2495cd=>!_0x2495cd['match'](/^(const|let|var|import)\s.*require|^import\s/));if(_0x7fa28d['cXzvC'](_0x4a71e2,0x0))return _0x139253['slice'](_0x4a71e2,_0x7fa28d['ZBcbS'](_0x4a71e2,0x64))['join']('\x0a');return null;}catch(_0x12515c){return logger[_0xbab041(0x1e3)](_0xbab041(0x16a)+_0x12515c[_0xbab041(0x13b)]),null;}}}module[a49_0x288ad(0x19c)]=TestClient;