browserstack-node-sdk 1.65.0 → 1.65.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 (216) 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/integrations/command.js +1 -1
  53. package/src/bin/integrations/constants.js +1 -1
  54. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
  55. package/src/bin/jasmine/command.js +1 -1
  56. package/src/bin/jasmine/test.setup.js +1 -1
  57. package/src/bin/jasmine/testRunMap.js +1 -1
  58. package/src/bin/jest/command.js +1 -1
  59. package/src/bin/jest/customImplements/customCircus.js +1 -1
  60. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  61. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  62. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  63. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  64. package/src/bin/jest/jest.setup.js +1 -1
  65. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  66. package/src/bin/jest/test-observability/helper.js +1 -1
  67. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  68. package/src/bin/jest/test-observability/test-details.js +1 -1
  69. package/src/bin/jest/test.setup.js +1 -1
  70. package/src/bin/jest/test_before.setup.js +1 -1
  71. package/src/bin/launcher/launcher.js +1 -1
  72. package/src/bin/load/index.js +1 -1
  73. package/src/bin/load/loadErrors.js +1 -1
  74. package/src/bin/load/loadUtils.js +1 -1
  75. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  76. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  77. package/src/bin/mocha/command.js +1 -1
  78. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  79. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  80. package/src/bin/mocha/test.setup.js +1 -1
  81. package/src/bin/newman/command.js +1 -1
  82. package/src/bin/newman/helper.js +1 -1
  83. package/src/bin/newman/reporter/index.js +1 -1
  84. package/src/bin/newman/scriptRunner.js +1 -1
  85. package/src/bin/nightwatch/command.js +1 -1
  86. package/src/bin/node-generic/client.js +1 -1
  87. package/src/bin/playwright/accessibility-helper.js +1 -1
  88. package/src/bin/playwright/command.js +1 -1
  89. package/src/bin/playwright/globalSetup.js +1 -1
  90. package/src/bin/playwright/mock-process.js +1 -1
  91. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  92. package/src/bin/playwright/patches.js +1 -1
  93. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  94. package/src/bin/playwright/reporter/reporter.js +1 -1
  95. package/src/bin/playwright/reporter/test-details.js +1 -1
  96. package/src/bin/playwright/reporterArgs.js +1 -0
  97. package/src/bin/playwright/sessionDetails.js +1 -1
  98. package/src/bin/puppeteer/patches.js +1 -1
  99. package/src/bin/puppeteer/sessionDetails.js +1 -1
  100. package/src/bin/puppeteer/test.setup.js +1 -1
  101. package/src/bin/runner.js +1 -1
  102. package/src/bin/setup.js +1 -1
  103. package/src/bin/test-runner/index.js +1 -1
  104. package/src/bin/test-runner/runTest.js +1 -1
  105. package/src/bin/test-runner/testWorker.js +1 -1
  106. package/src/bin/testcafe/a11y-runner.js +1 -1
  107. package/src/bin/testcafe/command.js +1 -1
  108. package/src/bin/testcafe/reporter/index.js +1 -1
  109. package/src/bin/testcafe/reporter/tcUtils.js +1 -1
  110. package/src/bin/testcafe/session-registry.js +1 -1
  111. package/src/bin/testcafe/stdout-interceptor.js +1 -1
  112. package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
  113. package/src/bin/testcafe/w3c-driver.js +1 -1
  114. package/src/bin/utils/apiUtilityMethods.js +1 -1
  115. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  116. package/src/bin/utils/constants.js +1 -1
  117. package/src/bin/utils/log4jsAppender.js +1 -1
  118. package/src/bin/utils/logPatcher.js +1 -1
  119. package/src/bin/utils/logReportingAPI.js +1 -1
  120. package/src/bin/utils/playwright-patcher.js +1 -1
  121. package/src/bin/utils/puppeteer-patcher.js +1 -1
  122. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  123. package/src/bin/utils/sharedUtils.js +1 -1
  124. package/src/bin/v2/TestInfo.js +1 -1
  125. package/src/bin/v2/browserstackCLI.js +1 -1
  126. package/src/bin/v2/cliUtils.js +1 -1
  127. package/src/bin/v2/customTagManager.js +1 -1
  128. package/src/bin/v2/eventDispatcher.js +1 -1
  129. package/src/bin/v2/framework/automationFramework.js +1 -1
  130. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  131. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  132. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  133. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  134. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  135. package/src/bin/v2/framework/nodeGenericTestFramework.js +1 -1
  136. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  137. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  138. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  139. package/src/bin/v2/framework/testFramework.js +1 -1
  140. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  141. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  142. package/src/bin/v2/grpcClient.js +1 -1
  143. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  144. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  145. package/src/bin/v2/instances/trackedContext.js +1 -1
  146. package/src/bin/v2/instances/trackedInstance.js +1 -1
  147. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  148. package/src/bin/v2/modules/baseModule.js +1 -1
  149. package/src/bin/v2/modules/loadTestModule.js +1 -1
  150. package/src/bin/v2/modules/observabilityModule.js +1 -1
  151. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  152. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  153. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  154. package/src/bin/v2/modules/testhubModule.js +1 -1
  155. package/src/bin/v2/sdkErrorHandler.js +1 -1
  156. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  157. package/src/bin/v2/state/hookState.js +1 -1
  158. package/src/bin/v2/state/testFrameworkState.js +1 -1
  159. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  160. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  161. package/src/bin/v2/utils/jest-utils.js +1 -1
  162. package/src/bin/vanilla-js/command.js +1 -1
  163. package/src/browserStackSdk.js +1 -1
  164. package/src/helpers/BrowserStackSetup.js +1 -1
  165. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  166. package/src/helpers/accessibility-automation/constants.js +1 -1
  167. package/src/helpers/accessibility-automation/helper.js +1 -1
  168. package/src/helpers/accessibility-automation/scripts.js +1 -1
  169. package/src/helpers/ats/constants.js +1 -1
  170. package/src/helpers/ats/helper.js +1 -1
  171. package/src/helpers/caCertHelper.js +1 -1
  172. package/src/helpers/capsMapping.js +1 -1
  173. package/src/helpers/central-scanner/constants.js +1 -1
  174. package/src/helpers/central-scanner/helpers.js +1 -1
  175. package/src/helpers/classLogger.js +1 -1
  176. package/src/helpers/driverInitErrorReporter.js +1 -1
  177. package/src/helpers/globals.js +1 -1
  178. package/src/helpers/helper.js +1 -1
  179. package/src/helpers/logger.js +1 -1
  180. package/src/helpers/metadata.js +1 -1
  181. package/src/helpers/patchHelper.js +1 -1
  182. package/src/helpers/patchHelpers.js +1 -1
  183. package/src/helpers/percy/Percy.js +1 -1
  184. package/src/helpers/percy/PercyBinary.js +1 -1
  185. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  186. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  187. package/src/helpers/percy/PercySDK.js +1 -1
  188. package/src/helpers/percy/index.js +1 -1
  189. package/src/helpers/percy/utils.js +1 -1
  190. package/src/helpers/performance/constants.js +1 -1
  191. package/src/helpers/performance/performance-tester.js +1 -1
  192. package/src/helpers/playwright-helper.js +1 -1
  193. package/src/helpers/processHelper.js +1 -1
  194. package/src/helpers/puppeteer-helper.js +1 -1
  195. package/src/helpers/request-spy.js +1 -1
  196. package/src/helpers/setKeepAlive.js +1 -1
  197. package/src/helpers/stackFrameUtils.js +1 -1
  198. package/src/helpers/test-observability/constants.js +1 -1
  199. package/src/helpers/test-observability/error-handler.js +1 -1
  200. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  201. package/src/helpers/test-observability/sessionHandler.js +1 -1
  202. package/src/helpers/test-observability/utils.js +1 -1
  203. package/src/helpers/test-orchestration/constants.js +1 -1
  204. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  205. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  206. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  207. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  208. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  209. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  210. package/src/helpers/testhub/constants.js +1 -1
  211. package/src/helpers/testhub/testhubHandler.js +1 -1
  212. package/src/helpers/testhub/utils.js +1 -1
  213. package/src/helpers/utilities.js +1 -1
  214. package/src/helpers/w3cMapping.js +1 -1
  215. package/src/hubAllocationMethods.js +1 -1
  216. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a84_0x636e(_0x2c35a4,_0x274c06){const _0x27db04=a84_0x27db();return a84_0x636e=function(_0x636ec1,_0x5b8cd9){_0x636ec1=_0x636ec1-0x134;let _0x4b9922=_0x27db04[_0x636ec1];return _0x4b9922;},a84_0x636e(_0x2c35a4,_0x274c06);}const a84_0x20218f=a84_0x636e;(function(_0x96bbff,_0x9cabbc){const _0x2625cf=a84_0x636e,_0x18b78e=_0x96bbff();while(!![]){try{const _0x4351ac=parseInt(_0x2625cf(0x153))/0x1+parseInt(_0x2625cf(0x1af))/0x2*(parseInt(_0x2625cf(0x1a4))/0x3)+-parseInt(_0x2625cf(0x1b3))/0x4*(parseInt(_0x2625cf(0x1dc))/0x5)+-parseInt(_0x2625cf(0x1f8))/0x6+parseInt(_0x2625cf(0x181))/0x7*(-parseInt(_0x2625cf(0x144))/0x8)+-parseInt(_0x2625cf(0x1fc))/0x9+parseInt(_0x2625cf(0x163))/0xa;if(_0x4351ac===_0x9cabbc)break;else _0x18b78e['push'](_0x18b78e['shift']());}catch(_0x4e162c){_0x18b78e['push'](_0x18b78e['shift']());}}}(a84_0x27db,0xa413b));const fs=require('fs'),os=require('os'),url=require(a84_0x20218f(0x1df)),path=require(a84_0x20218f(0x145)),{exec}=require(a84_0x20218f(0x16b)),{https}=require('follow-redirects'),yauzl=require(a84_0x20218f(0x1f9)),util=require(a84_0x20218f(0x1fa)),{getFrameworkVersion}=require(a84_0x20218f(0x167)),{threadId}=require(a84_0x20218f(0x1d4)),PerformanceTester=require(a84_0x20218f(0x164)),{EVENTS:PerformanceEvents}=require(a84_0x20218f(0x208)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a84_0x20218f(0x1bc)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a84_0x20218f(0x1cd)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a84_0x20218f(0x186)),{createClassLogger}=require(a84_0x20218f(0x1c1)),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require('./state/hookState.js'),TestFrameworkState=require(a84_0x20218f(0x1a7)),AutomationFrameworkState=require(a84_0x20218f(0x1b0)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),logger=createClassLogger('CLIUtils'),{getBStackAPIUrl}=require(a84_0x20218f(0x194));class CLIUtils{['automationFrameworkDetail']={};[a84_0x20218f(0x174)]={};static[a84_0x20218f(0x178)](){const _0x312725=a84_0x20218f,_0x310002={};_0x310002[_0x312725(0x210)]=function(_0xfb6a6e,_0x19f6dc){return _0xfb6a6e===_0x19f6dc;},_0x310002[_0x312725(0x1e3)]='development';const _0x44f1ea=_0x310002;return _0x44f1ea[_0x312725(0x210)](process[_0x312725(0x13e)][_0x312725(0x1cb)],_0x44f1ea[_0x312725(0x1e3)]);}static[a84_0x20218f(0x139)](){const _0x1d9cf7=a84_0x20218f,_0x437d34={};return _0x437d34['id']=process['env'][_0x1d9cf7(0x1cb)],_0x437d34[_0x1d9cf7(0x18e)]='unix:/tmp/sdk-platform-'+process[_0x1d9cf7(0x13e)][_0x1d9cf7(0x1cb)]+_0x1d9cf7(0x1f1),_0x437d34;}static[a84_0x20218f(0x191)](){const _0x47cb5f=a84_0x20218f,_0x279fb3={'ZgGnQ':function(_0x5d6ea3,_0x3daeb7){return _0x5d6ea3(_0x3daeb7);},'MumiQ':_0x47cb5f(0x13b)};return _0x279fb3[_0x47cb5f(0x1ca)](require,_0x279fb3[_0x47cb5f(0x20a)])[_0x47cb5f(0x1e7)];}static[a84_0x20218f(0x155)](){const _0xed5cfe=a84_0x20218f,_0x3d5176={};_0x3d5176['HUWcO']=_0xed5cfe(0x1eb);const _0x402827=_0x3d5176;return _0x402827[_0xed5cfe(0x18b)];}static async['setupCliPath'](_0x34d7ac){const _0x966486=a84_0x20218f,_0x154865={'aPJtM':'Configuring\x20Cli\x20path.','BASBO':function(_0x2bf36a,_0x4bd632){return _0x2bf36a(_0x4bd632);},'harkF':_0x966486(0x1d7)};logger[_0x966486(0x187)](_0x154865[_0x966486(0x1e5)]);const _0x17fec4=process['env'][_0x966486(0x13d)];if(!_0x154865['BASBO'](isNullOrEmpty,_0x17fec4))return logger[_0x966486(0x187)](_0x966486(0x137)+_0x17fec4),_0x17fec4;try{const _0x1b18c8=this[_0x966486(0x1f5)]();if(_0x154865[_0x966486(0x16e)](isNullOrEmpty,_0x1b18c8))throw new Error(_0x154865['harkF']);const _0x1e64e9=this['getExistingCliPath'](_0x1b18c8),_0x36964f=await this[_0x966486(0x1c7)](_0x1e64e9,_0x1b18c8,_0x34d7ac);return logger['debug'](_0x966486(0x17a)+_0x36964f),_0x36964f;}catch(_0x1d9984){logger[_0x966486(0x187)](_0x966486(0x142)+util[_0x966486(0x140)](_0x1d9984));}return null;}static async[a84_0x20218f(0x1c7)](_0x3fa655,_0x4b1248,_0x51f4c8){const _0x3f4789=a84_0x20218f,_0x3cb2b0={'gzlWV':function(_0x37fe44){return _0x37fe44();},'DNStT':function(_0x56d8aa,_0x1ec3a3){return _0x56d8aa(_0x1ec3a3);},'lSIvm':function(_0x1dfa1f,_0x3c2425,_0x122809){return _0x1dfa1f(_0x3c2425,_0x122809);},'nhVgq':_0x3f4789(0x1d6),'AJeEl':_0x3f4789(0x1df),'HJvum':function(_0x5d06f9,_0x58d85e,_0x127788){return _0x5d06f9(_0x58d85e,_0x127788);}};PerformanceTester[_0x3f4789(0x14d)](PerformanceEvents[_0x3f4789(0x1a8)]);try{logger[_0x3f4789(0x19b)](_0x3f4789(0x1cc)+_0x3fa655);const _0x3aeeb5=_0x3cb2b0[_0x3f4789(0x159)](getHostInfo),_0x148611={'sdk_version':CLIUtils[_0x3f4789(0x191)](),'os':_0x3aeeb5['platform'],'os_arch':_0x3aeeb5[_0x3f4789(0x18a)],'cli_version':'0','sdk_language':this[_0x3f4789(0x155)]()};!_0x3cb2b0['DNStT'](isNullOrEmpty,_0x3fa655)&&(_0x148611[_0x3f4789(0x1a6)]=await this[_0x3f4789(0x15c)](_0x3fa655+_0x3f4789(0x162)));const _0xf5a206=await this['requestToUpdateCLI'](_0x148611,_0x51f4c8);process[_0x3f4789(0x13e)][_0x3f4789(0x13f)]&&(logger['info']('Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20'+process[_0x3f4789(0x13e)][_0x3f4789(0x13f)]),_0xf5a206[_0x3f4789(0x1d6)][_0x3f4789(0x1df)]=process[_0x3f4789(0x13e)]['BROWSERSTACK_BINARY_URL']);if(_0x3cb2b0[_0x3f4789(0x197)](nestedKeyValue,_0xf5a206,[_0x3cb2b0['nhVgq'],_0x3cb2b0[_0x3f4789(0x202)]])){logger[_0x3f4789(0x187)](_0x3f4789(0x14e)+_0x148611[_0x3f4789(0x1a6)]);if(!_0x3cb2b0[_0x3f4789(0x17c)](isNullOrEmpty,_0x3fa655)&&this[_0x3f4789(0x150)](_0x3fa655))return logger['warn']('Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20'+_0x3fa655),_0x3fa655;return await this[_0x3f4789(0x13c)](_0x3cb2b0[_0x3f4789(0x1c5)](nestedKeyValue,_0xf5a206,[_0x3cb2b0['nhVgq'],_0x3cb2b0[_0x3f4789(0x202)]]),_0x4b1248);}return _0x3fa655;}finally{PerformanceTester[_0x3f4789(0x20c)](PerformanceEvents[_0x3f4789(0x1a8)]);}}static[a84_0x20218f(0x1f5)](){const _0xd586e5=a84_0x20218f,_0x15a9af={'dYQrV':function(_0x131789,_0x3297ea){return _0x131789(_0x3297ea);},'yKbIV':_0xd586e5(0x1d7),'heWmN':_0xd586e5(0x205)},_0xd1a2c1=this['getWritableDir']();try{if(_0x15a9af[_0xd586e5(0x1d5)](isNullOrEmpty,_0xd1a2c1))throw new Error(_0x15a9af['yKbIV']);const _0x1bf930=path['join'](_0xd1a2c1,_0x15a9af[_0xd586e5(0x1e8)]);return!fs[_0xd586e5(0x177)](_0x1bf930)&&_0x15a9af[_0xd586e5(0x1d5)](createDir,_0x1bf930),_0x1bf930;}catch(_0x4aa82a){logger[_0xd586e5(0x187)]('Error\x20in\x20getting\x20writable\x20directory,\x20writableDir='+util[_0xd586e5(0x140)](_0x4aa82a));}}static[a84_0x20218f(0x15b)](){const _0x672204=a84_0x20218f,_0x3f222d={'Tsfsj':_0x672204(0x1b2),'XHhaY':function(_0x1d96f0,_0x17a6fb){return _0x1d96f0(_0x17a6fb);},'TGtcF':function(_0x4fbcb7,_0x2eab23){return _0x4fbcb7(_0x2eab23);},'WPxTe':function(_0x59a48b,_0x3aae93){return _0x59a48b(_0x3aae93);}},_0x3f312b=[process[_0x672204(0x13e)][_0x672204(0x156)],path['join'](os['homedir'](),_0x3f222d[_0x672204(0x15d)]),path['join'](os[_0x672204(0x136)](),_0x3f222d[_0x672204(0x15d)])];for(const _0x4ce512 of _0x3f312b){if(_0x3f222d[_0x672204(0x1ce)](isNullOrEmpty,_0x4ce512))continue;try{if(fs[_0x672204(0x177)](_0x4ce512)){logger[_0x672204(0x187)](_0x672204(0x1c6)+_0x4ce512+_0x672204(0x183));if(!_0x3f222d[_0x672204(0x1ce)](isModifiable,_0x4ce512)){logger[_0x672204(0x187)](_0x672204(0x214)+_0x4ce512);const _0x17b420=_0x3f222d['XHhaY'](setReadWriteExecuteAccess,_0x4ce512);if(!_0x3f222d[_0x672204(0x18c)](isTrue,_0x17b420)){logger[_0x672204(0x189)](_0x672204(0x16c)+_0x4ce512);continue;}}}else{logger[_0x672204(0x187)](_0x672204(0x13a)+_0x4ce512),_0x3f222d[_0x672204(0x18c)](createDir,_0x4ce512),logger[_0x672204(0x187)](_0x672204(0x214)+_0x4ce512);const _0x2bdf0e=_0x3f222d['TGtcF'](setReadWriteExecuteAccess,_0x4ce512);!_0x3f222d[_0x672204(0x1d2)](isTrue,_0x2bdf0e)&&logger['warn'](_0x672204(0x16c)+_0x4ce512);}return _0x4ce512;}catch(_0xae8098){logger[_0x672204(0x20f)](_0x672204(0x15f)+util['format'](_0xae8098));}}return null;}static[a84_0x20218f(0x17e)](_0x364d87){const _0x5cb249=a84_0x20218f,_0x56a073={};_0x56a073['DZUCu']=function(_0x380c82,_0x7a14bf){return _0x380c82>_0x7a14bf;},_0x56a073['tJvPZ']=function(_0x50f4bf,_0x12d493){return _0x50f4bf>_0x12d493;};const _0x4bd358=_0x56a073;try{if(!fs[_0x5cb249(0x177)](_0x364d87)||!fs['statSync'](_0x364d87)[_0x5cb249(0x1b1)]())return'';const _0x5ae893=fs[_0x5cb249(0x16a)](_0x364d87)[_0x5cb249(0x1c8)](_0x43dee8=>path[_0x5cb249(0x169)](_0x364d87,_0x43dee8))['filter'](_0x29cbf5=>fs[_0x5cb249(0x1da)](_0x29cbf5)[_0x5cb249(0x1a5)]()&&path[_0x5cb249(0x219)](_0x29cbf5)[_0x5cb249(0x1ee)](_0x5cb249(0x215)));if(_0x4bd358[_0x5cb249(0x217)](_0x5ae893[_0x5cb249(0x1ab)],0x0)){const _0x93ddc5=_0x5ae893[_0x5cb249(0x1c8)](_0x8fd36b=>({'filePath':_0x8fd36b,'mtime':fs[_0x5cb249(0x1da)](_0x8fd36b)[_0x5cb249(0x207)]}))[_0x5cb249(0x1fe)]((_0x2feed0,_0x5bb957)=>{const _0x368e61=_0x5cb249;if(!_0x2feed0||!_0x2feed0['mtime'])return _0x5bb957;if(_0x4bd358[_0x368e61(0x1db)](_0x5bb957['mtime'],_0x2feed0[_0x368e61(0x207)]))return _0x5bb957;return _0x2feed0;},{});return _0x93ddc5?_0x93ddc5['filePath']:'';}return'';}catch(_0x263499){return logger[_0x5cb249(0x20f)](_0x5cb249(0x171)+util[_0x5cb249(0x140)](_0x263499)),'';}}static [a84_0x20218f(0x184)]=async(_0x253f87,_0x4ec21a)=>{const _0x332398=a84_0x20218f,_0x157779={'ZwJvG':function(_0x4d4fa8,_0x1caca3,_0x31f20e,_0x200d6e,_0x3ddcfd){return _0x4d4fa8(_0x1caca3,_0x31f20e,_0x200d6e,_0x3ddcfd);},'LqSNi':_0x332398(0x1fd)},_0x5e81f4={};_0x5e81f4['qs']=_0x253f87,_0x5e81f4[_0x332398(0x1ec)]=!![];const _0x2b24b2=await _0x157779['ZwJvG'](nodeRequest,_0x157779[_0x332398(0x172)],UPDATED_CLI_ENDPOINT,_0x5e81f4,_0x4ec21a);return logger[_0x332398(0x187)](_0x332398(0x18f)+JSON[_0x332398(0x201)](_0x2b24b2)),_0x2b24b2;};static[a84_0x20218f(0x150)](_0x33ae25){const _0x2dcee3=a84_0x20218f;try{const _0x34585c=fs[_0x2dcee3(0x19a)](_0x33ae25,'r+');return fs[_0x2dcee3(0x1d1)](_0x34585c),![];}catch(_0x83b751){if(BINARY_BUSY_ERROR_CODES['includes'](_0x83b751['code']))return logger[_0x2dcee3(0x187)](_0x2dcee3(0x192)+_0x33ae25),!![];return logger[_0x2dcee3(0x187)]('Error\x20checking\x20if\x20binary\x20is\x20busy:\x20'+_0x83b751[_0x2dcee3(0x199)]),![];}}static[a84_0x20218f(0x15c)](_0x24c5f1,_0xae8a93=''){const _0x534685=a84_0x20218f,_0x4d5f2d={'LmrQC':function(_0x4d26d7,_0x2b02df){return _0x4d26d7(_0x2b02df);},'UUyEh':_0x534685(0x185),'NWqyk':'version','dwkFH':function(_0x355dfb,_0x5c66d2){return _0x355dfb(_0x5c66d2);},'ZbDHB':function(_0x1eec01,_0x1e905c){return _0x1eec01(_0x1e905c);},'LEZdQ':function(_0x2874ea,_0x25a623,_0x5182e8,_0x2a37c7){return _0x2874ea(_0x25a623,_0x5182e8,_0x2a37c7);},'OQLSX':_0x534685(0x20f)};return new Promise((_0x250d2d,_0x341c59)=>{const _0x1c4e17=_0x534685,_0x56b978={'NlSkt':_0x4d5f2d[_0x1c4e17(0x193)],'rLduC':function(_0x372249,_0x3f1afa){return _0x4d5f2d['dwkFH'](_0x372249,_0x3f1afa);},'JyAyA':function(_0x2c5d6f,_0x509f49){const _0x124271=_0x1c4e17;return _0x4d5f2d[_0x124271(0x1be)](_0x2c5d6f,_0x509f49);},'MGMvg':_0x4d5f2d['UUyEh']},_0x309a54={};_0x309a54[_0x1c4e17(0x1c2)]=_0xae8a93,_0x309a54['timeout']=0x1388;const _0x19e4d2=_0x4d5f2d['LEZdQ'](exec,_0x24c5f1,_0x309a54,(_0x36be61,_0x13a14d,_0x2d5310)=>{const _0x5dfd13=_0x1c4e17;if(_0x36be61){if(_0x24c5f1[_0x5dfd13(0x1ea)](_0x56b978[_0x5dfd13(0x1a3)])&&(_0x13a14d[_0x5dfd13(0x165)]()||_0x2d5310['trim']())){const _0x173201=_0x13a14d[_0x5dfd13(0x165)]()||_0x2d5310[_0x5dfd13(0x165)]();logger[_0x5dfd13(0x187)]('CLI\x20version\x20found\x20despite\x20error:\x20\x22'+_0x173201+'\x22'),_0x56b978[_0x5dfd13(0x1a1)](_0x250d2d,_0x173201);}else _0x56b978['JyAyA'](_0x250d2d,_0x2d5310['trim']()||_0x56b978['MGMvg']);}else logger[_0x5dfd13(0x187)](_0x5dfd13(0x161)+_0x13a14d[_0x5dfd13(0x165)]()+'\x22'),_0x56b978[_0x5dfd13(0x209)](_0x250d2d,_0x13a14d[_0x5dfd13(0x165)]());});_0x19e4d2['on'](_0x4d5f2d[_0x1c4e17(0x170)],()=>{const _0x35ce4c=_0x1c4e17;_0x4d5f2d[_0x35ce4c(0x19c)](_0x250d2d,_0x4d5f2d[_0x35ce4c(0x21a)]);});});}static [a84_0x20218f(0x13c)]=async(_0x4d34ff,_0x56edda)=>{const _0x4f818f=a84_0x20218f,_0x25c0ac={'XfKcW':_0x4f818f(0x204),'lYjgi':function(_0x2075bf,_0x4b30d5){return _0x2075bf(_0x4b30d5);},'mEGOI':'Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','GwNSB':function(_0x4ee5b3,_0x3f7168){return _0x4ee5b3>=_0x3f7168;},'qGhjP':_0x4f818f(0x151),'bwGYd':_0x4f818f(0x1f4),'lxszc':_0x4f818f(0x20f),'sCvtX':function(_0x560a1c,_0x2e4cdb){return _0x560a1c(_0x2e4cdb);},'WOkFA':_0x4f818f(0x1d8)};PerformanceTester[_0x4f818f(0x14d)](PerformanceEvents[_0x4f818f(0x1ad)]),logger['debug'](_0x4f818f(0x200)+_0x4d34ff);try{const _0x4b43b1=url[_0x4f818f(0x1bd)](_0x4d34ff),_0x36f312=path[_0x4f818f(0x169)](_0x56edda,'downloaded_file_'+process[_0x4f818f(0x20d)]+_0x4f818f(0x14a)),_0xa2c55e=fs[_0x4f818f(0x14c)](_0x36f312);return new Promise((_0x108776,_0x41cc7e)=>{const _0x210ee2=_0x4f818f,_0x165ab5={'xYOPd':function(_0x23d9d6,_0x4614c9){const _0x39843b=a84_0x636e;return _0x25c0ac[_0x39843b(0x157)](_0x23d9d6,_0x4614c9);}};https[_0x210ee2(0x173)](_0x4b43b1,function(_0x12c1e3){const _0x3f6a0d=_0x210ee2,_0x53035c={'dPQAx':_0x25c0ac[_0x3f6a0d(0x19f)],'sdEUY':function(_0x194474,_0x338f85){const _0x3c7a52=_0x3f6a0d;return _0x25c0ac[_0x3c7a52(0x1e6)](_0x194474,_0x338f85);},'bGbCp':_0x25c0ac['mEGOI'],'koRGT':function(_0x121013,_0x478ed6){return _0x25c0ac['lYjgi'](_0x121013,_0x478ed6);}},_0x3a1bae=null;if(_0x12c1e3[_0x3f6a0d(0x138)]&&_0x25c0ac['GwNSB'](_0x12c1e3[_0x3f6a0d(0x138)],0x190)){const _0x5c4fb2=new Error(_0x3f6a0d(0x141)+_0x12c1e3[_0x3f6a0d(0x138)]+_0x3f6a0d(0x20e)+_0x4d34ff);_0x5c4fb2['code']=_0x25c0ac['qGhjP'],_0x5c4fb2[_0x3f6a0d(0x138)]=_0x12c1e3[_0x3f6a0d(0x138)],logger[_0x3f6a0d(0x20f)](util[_0x3f6a0d(0x140)](_0x25c0ac[_0x3f6a0d(0x1b7)],_0x12c1e3[_0x3f6a0d(0x138)])),PerformanceTester['end'](PerformanceEvents[_0x3f6a0d(0x1ad)],![],'HTTP\x20'+_0x12c1e3[_0x3f6a0d(0x138)]),_0x12c1e3[_0x3f6a0d(0x206)](),_0xa2c55e[_0x3f6a0d(0x1d3)](),fs['unlink'](_0x36f312,()=>{}),_0x25c0ac[_0x3f6a0d(0x1e6)](_0x41cc7e,_0x5c4fb2);return;}_0x12c1e3[_0x3f6a0d(0x14f)](_0xa2c55e),_0x12c1e3['on'](_0x25c0ac['lxszc'],function(_0x222c07){const _0x2c30bd=_0x3f6a0d;logger[_0x2c30bd(0x20f)](util[_0x2c30bd(0x140)](_0x53035c[_0x2c30bd(0x154)],_0x222c07)),PerformanceTester[_0x2c30bd(0x20c)](PerformanceEvents[_0x2c30bd(0x1ad)],![],util[_0x2c30bd(0x140)](_0x222c07)),_0x53035c[_0x2c30bd(0x148)](_0x41cc7e,_0x222c07);}),_0xa2c55e['on'](_0x25c0ac[_0x3f6a0d(0x16d)],function(_0x122fb9){const _0x3bad39=_0x3f6a0d;logger['error'](util['format'](_0x53035c[_0x3bad39(0x1a9)],_0x122fb9)),PerformanceTester[_0x3bad39(0x20c)](PerformanceEvents[_0x3bad39(0x1ad)],![],util[_0x3bad39(0x140)](_0x122fb9)),_0x53035c[_0x3bad39(0x148)](_0x41cc7e,_0x122fb9);}),CLIUtils[_0x3f6a0d(0x203)](_0xa2c55e,_0x3a1bae,_0x36f312,_0x56edda,_0x3625f0=>{const _0x3f3991=_0x3f6a0d;PerformanceTester['end'](PerformanceEvents[_0x3f3991(0x1ad)]),_0x53035c[_0x3f3991(0x135)](_0x108776,_0x3625f0);},_0x437bc7=>{const _0x5cfadc=_0x3f6a0d;PerformanceTester[_0x5cfadc(0x20c)](PerformanceEvents[_0x5cfadc(0x1ad)],![],util[_0x5cfadc(0x140)](_0x437bc7)),_0x165ab5[_0x5cfadc(0x1d9)](_0x41cc7e,_0x437bc7);});})['on'](_0x25c0ac[_0x210ee2(0x16d)],function(_0x403788){const _0x5013f1=_0x210ee2;logger[_0x5013f1(0x20f)](_0x5013f1(0x1ff)+util[_0x5013f1(0x140)](_0x403788)),PerformanceTester[_0x5013f1(0x20c)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x5013f1(0x140)](_0x403788)),_0x165ab5[_0x5013f1(0x1d9)](_0x41cc7e,_0x403788);});});}catch(_0x146551){PerformanceTester[_0x4f818f(0x20c)](PerformanceEvents[_0x4f818f(0x1ad)],![],util[_0x4f818f(0x140)](_0x146551)),logger['error'](util[_0x4f818f(0x140)](_0x25c0ac[_0x4f818f(0x1f3)],_0x146551));throw _0x146551;}};static[a84_0x20218f(0x203)](_0x5441b2,_0x45f43a,_0x2577a1,_0x14ae59,_0x54b5f1,_0x56d5f3){const _0x39c881=a84_0x20218f,_0x69dece={'fYBoQ':function(_0x3e6547,_0x3ca8d1){return _0x3e6547!==_0x3ca8d1;},'ZwteK':_0x39c881(0x1ed),'KcLWl':function(_0x2f3fd3,_0x2864f2){return _0x2f3fd3(_0x2864f2);},'bEAaP':_0x39c881(0x1d0),'OweYF':_0x39c881(0x20c),'kMEVx':_0x39c881(0x1e9),'ioAXP':function(_0x413bbb,_0x14d7a4){return _0x413bbb(_0x14d7a4);},'nbsHY':_0x39c881(0x20f),'ORsMX':function(_0x589c29,_0x4ba523){return _0x589c29(_0x4ba523);},'akyzk':'entry'};_0x5441b2['on'](_0x69dece[_0x39c881(0x19d)],function(){const _0x5eb285=_0x39c881,_0x35723e={'AuvXw':function(_0x2c5e48,_0x51c8af){const _0x1f1baa=a84_0x636e;return _0x69dece[_0x1f1baa(0x1f7)](_0x2c5e48,_0x51c8af);},'pBXqO':_0x69dece['ZwteK'],'hBGwW':function(_0xae85f6,_0x82f2c8){const _0x393320=a84_0x636e;return _0x69dece[_0x393320(0x176)](_0xae85f6,_0x82f2c8);},'PPsTQ':function(_0x5a2663,_0xb6326a){return _0x69dece['KcLWl'](_0x5a2663,_0xb6326a);},'MghFH':_0x69dece[_0x5eb285(0x213)],'UheAs':_0x69dece['OweYF'],'XKjhh':_0x69dece[_0x5eb285(0x19d)],'WIxZK':function(_0x5e024d,_0x2c8de8){const _0x97b23d=_0x5eb285;return _0x69dece[_0x97b23d(0x1f7)](_0x5e024d,_0x2c8de8);},'YGJXn':function(_0x5c3c5c,_0x4bd8fa){return _0x69dece['ioAXP'](_0x5c3c5c,_0x4bd8fa);},'iaDko':_0x69dece['nbsHY'],'oBbNs':function(_0x1285bd,_0x305365){return _0x69dece['ORsMX'](_0x1285bd,_0x305365);},'fuLCo':_0x69dece[_0x5eb285(0x179)]},_0x3d4076={};_0x3d4076['lazyEntries']=!![],yauzl[_0x5eb285(0x18d)](_0x2577a1,_0x3d4076,function(_0x5b4e1d,_0x57fdbc){const _0x49bf90=_0x5eb285,_0x3f9f29={'PEqgB':function(_0x444f32,_0x30f2de){const _0x1ecf89=a84_0x636e;return _0x35723e[_0x1ecf89(0x15a)](_0x444f32,_0x30f2de);},'CoCpZ':_0x35723e[_0x49bf90(0x1b5)],'NHXIx':function(_0x23e67d,_0x5ec360){return _0x35723e['PPsTQ'](_0x23e67d,_0x5ec360);},'ZSYbP':_0x35723e[_0x49bf90(0x1f6)],'ugulA':function(_0x499562,_0x1c599e){const _0xd1198f=_0x49bf90;return _0x35723e[_0xd1198f(0x147)](_0x499562,_0x1c599e);},'ZBmEE':function(_0x5bc3f8,_0x459ba8){const _0x5242ca=_0x49bf90;return _0x35723e[_0x5242ca(0x1de)](_0x5bc3f8,_0x459ba8);},'LYqGl':_0x35723e[_0x49bf90(0x14b)],'wAoUb':function(_0x986e80,_0x39841c){const _0x5679bf=_0x49bf90;return _0x35723e[_0x5679bf(0x1ef)](_0x986e80,_0x39841c);}};if(_0x5b4e1d){_0x35723e[_0x49bf90(0x15a)](_0x56d5f3,_0x5b4e1d);return;}_0x57fdbc[_0x49bf90(0x17f)](),_0x57fdbc['on'](_0x35723e[_0x49bf90(0x1a2)],_0x588ed6=>{const _0x184fff=_0x49bf90,_0x1bf255={'bhVLK':function(_0x480bf9,_0x3629c7){const _0x1497a6=a84_0x636e;return _0x3f9f29[_0x1497a6(0x158)](_0x480bf9,_0x3629c7);},'LzxHU':_0x3f9f29['ZSYbP']};if(/\/$/['test'](_0x588ed6[_0x184fff(0x182)])){_0x57fdbc[_0x184fff(0x17f)]();return;}!_0x45f43a&&(_0x45f43a=_0x588ed6['fileName']);if(_0x3f9f29[_0x184fff(0x1fb)](_0x588ed6[_0x184fff(0x182)],_0x45f43a))_0x57fdbc['readEntry']();else{const _0x3ca9c7=_0x588ed6[_0x184fff(0x182)],_0x5b9ee0=path[_0x184fff(0x169)](_0x14ae59,_0x3ca9c7+'.tmp.'+process['pid']);let _0x2dc15d;try{_0x2dc15d=fs[_0x184fff(0x14c)](_0x5b9ee0);}catch(_0x1dc5bb){if(BINARY_BUSY_ERROR_CODES['includes'](_0x1dc5bb[_0x184fff(0x134)])){const _0x263f4b=path[_0x184fff(0x169)](_0x14ae59,_0x3ca9c7);if(fs[_0x184fff(0x177)](_0x263f4b)){logger[_0x184fff(0x189)](_0x184fff(0x175)+_0x3ca9c7),fs[_0x184fff(0x212)](_0x2577a1,_0x520c90=>{const _0xd72aa0=_0x184fff;_0x520c90&&logger['warn'](_0xd72aa0(0x17b)+_0x2577a1);}),_0x3f9f29['NHXIx'](_0x54b5f1,_0x263f4b);return;}logger[_0x184fff(0x189)]('Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x3ca9c7);}_0x3f9f29['ZBmEE'](_0x56d5f3,_0x1dc5bb);return;}_0x2dc15d['on'](_0x3f9f29[_0x184fff(0x195)],_0x4888ad=>{const _0xbd2591=_0x184fff;if(BINARY_BUSY_ERROR_CODES[_0xbd2591(0x1ea)](_0x4888ad['code'])){const _0x205f32=path[_0xbd2591(0x169)](_0x14ae59,_0x3ca9c7);_0x2dc15d[_0xbd2591(0x1e9)](),fs[_0xbd2591(0x177)](_0x205f32)?(logger[_0xbd2591(0x189)](_0xbd2591(0x198)+_0x4888ad[_0xbd2591(0x199)]),_0x57fdbc['close'](),fs[_0xbd2591(0x212)](_0x2577a1,_0x585a04=>{const _0x2b4b25=_0xbd2591;_0x585a04&&logger[_0x2b4b25(0x189)](_0x2b4b25(0x17b)+_0x2577a1);}),_0x1bf255[_0xbd2591(0x1bb)](_0x54b5f1,_0x205f32)):(logger[_0xbd2591(0x189)]('Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x4888ad[_0xbd2591(0x199)]),fs[_0xbd2591(0x212)](_0x5b9ee0,()=>{}),_0x1bf255['bhVLK'](_0x56d5f3,_0x4888ad));}else fs[_0xbd2591(0x212)](_0x5b9ee0,()=>{}),_0x1bf255[_0xbd2591(0x1bb)](_0x56d5f3,_0x4888ad);}),_0x57fdbc[_0x184fff(0x166)](_0x588ed6,function(_0x1569dd,_0x5a0831){const _0x977579=_0x184fff;if(_0x1569dd){fs[_0x977579(0x212)](_0x5b9ee0,()=>{}),_0x3f9f29[_0x977579(0x17d)](_0x56d5f3,_0x1569dd);return;}_0x5a0831['on'](_0x3f9f29[_0x977579(0x190)],function(){const _0x5ac867=_0x977579;_0x2dc15d[_0x5ac867(0x20c)](),_0x2dc15d['on'](_0x1bf255[_0x5ac867(0x1c4)],function(){const _0x55ae93=_0x5ac867;_0x57fdbc[_0x55ae93(0x17f)]();});}),_0x5a0831[_0x977579(0x14f)](_0x2dc15d);});}}),_0x57fdbc['on'](_0x35723e[_0x49bf90(0x14b)],_0x124640=>{const _0xc14ade=_0x49bf90;_0x3f9f29[_0xc14ade(0x1b6)](_0x56d5f3,_0x124640);}),_0x57fdbc[_0x49bf90(0x1b9)](_0x35723e[_0x49bf90(0x1b5)],()=>{const _0x5a41e4=_0x49bf90,_0x58f0e2={'jfaNA':function(_0x20d95d,_0x23508f){const _0x2eb844=a84_0x636e;return _0x35723e[_0x2eb844(0x1cf)](_0x20d95d,_0x23508f);},'MCBRo':_0x35723e['pBXqO'],'MJHiu':function(_0x44662f,_0x465342){const _0xf51c00=a84_0x636e;return _0x35723e[_0xf51c00(0x1e1)](_0x44662f,_0x465342);},'fFdAu':function(_0x169065,_0x2161f4){const _0x12c7b7=a84_0x636e;return _0x35723e[_0x12c7b7(0x1e1)](_0x169065,_0x2161f4);},'jFUzu':function(_0x4bc721,_0x35d2a3){return _0x35723e['PPsTQ'](_0x4bc721,_0x35d2a3);},'fGRvB':function(_0x41866e,_0x210f09){const _0x50934f=a84_0x636e;return _0x35723e[_0x50934f(0x1e1)](_0x41866e,_0x210f09);}};fs[_0x5a41e4(0x212)](_0x2577a1,_0x453e7a=>{const _0x410a7e=_0x5a41e4;_0x453e7a&&logger[_0x410a7e(0x189)](_0x410a7e(0x17b)+_0x2577a1);});const _0x7e33cb=path[_0x5a41e4(0x169)](_0x14ae59,_0x45f43a+_0x5a41e4(0x218)+process['pid']),_0x45aa34=path[_0x5a41e4(0x169)](_0x14ae59,_0x45f43a);fs[_0x5a41e4(0x196)](_0x7e33cb,_0x35723e[_0x5a41e4(0x1ae)],function(_0x19345b){const _0x5c9c2e=_0x5a41e4;if(_0x19345b){_0x57fdbc[_0x5c9c2e(0x1e9)](),fs['unlink'](_0x7e33cb,()=>{}),_0x58f0e2[_0x5c9c2e(0x149)](_0x56d5f3,_0x19345b);return;}fs[_0x5c9c2e(0x1f2)](_0x7e33cb,_0x45aa34,function(_0x3e154d){const _0x343cac=_0x5c9c2e;if(_0x3e154d){if(_0x58f0e2['jfaNA'](_0x3e154d['code'],_0x58f0e2['MCBRo'])){_0x57fdbc[_0x343cac(0x1e9)](),fs['unlink'](_0x7e33cb,()=>{}),_0x58f0e2[_0x343cac(0x1e4)](_0x56d5f3,_0x3e154d);return;}logger[_0x343cac(0x189)](_0x343cac(0x1c9)+_0x3e154d[_0x343cac(0x199)]);try{fs['copyFileSync'](_0x7e33cb,_0x45aa34);}catch(_0x1f1256){_0x57fdbc[_0x343cac(0x1e9)](),fs[_0x343cac(0x212)](_0x7e33cb,()=>{}),_0x58f0e2[_0x343cac(0x152)](_0x56d5f3,_0x1f1256);return;}fs[_0x343cac(0x212)](_0x7e33cb,_0x48599c=>{const _0x403291=_0x343cac;_0x48599c&&logger[_0x403291(0x189)](_0x403291(0x180)+_0x48599c[_0x403291(0x199)]);});}_0x57fdbc[_0x343cac(0x1e9)](),_0x58f0e2[_0x343cac(0x1b8)](_0x54b5f1,_0x45aa34);});});});});});}static['getTestFrameworkDetail'](){const _0x56147b=a84_0x20218f;if(process[_0x56147b(0x13e)][_0x56147b(0x1e2)])return JSON['parse'](process[_0x56147b(0x13e)][_0x56147b(0x1e2)]);return this[_0x56147b(0x174)];}static[a84_0x20218f(0x211)](){const _0x1e616b=a84_0x20218f;if(process[_0x1e616b(0x13e)][_0x1e616b(0x15e)])return JSON[_0x1e616b(0x1bd)](process['env'][_0x1e616b(0x15e)]);return this[_0x1e616b(0x1e0)];}static[a84_0x20218f(0x188)](_0x53c8dd,_0x108453){const _0x36ed13=a84_0x20218f,_0x406fc0={'yBplo':_0x36ed13(0x216),'qwCkd':function(_0x2ec15e,_0x3857f4){return _0x2ec15e(_0x3857f4);},'paoeY':function(_0x4666a2,_0x329283){return _0x4666a2||_0x329283;},'PUEaP':function(_0x384f16,_0x445c0e){return _0x384f16(_0x445c0e);}},_0x1d1f1c=_0x406fc0[_0x36ed13(0x168)]['split']('|');let _0x2f4fec=0x0;while(!![]){switch(_0x1d1f1c[_0x2f4fec++]){case'0':this[_0x36ed13(0x1e0)]={'name':_0x108453,'version':_0x406fc0[_0x36ed13(0x1b4)](getFrameworkVersion,_0x108453)};continue;case'1':process['env'][_0x36ed13(0x1e2)]=JSON[_0x36ed13(0x201)](this[_0x36ed13(0x174)]);continue;case'2':_0x406fc0['paoeY'](!_0x53c8dd,!_0x108453)&&logger[_0x36ed13(0x187)](_0x36ed13(0x1ac)+_0x53c8dd+_0x36ed13(0x1bf)+_0x108453);continue;case'3':this[_0x36ed13(0x174)]={'name':_0x53c8dd,'version':{[_0x53c8dd]:_0x406fc0[_0x36ed13(0x1c3)](getFrameworkVersion,_0x53c8dd)}};continue;case'4':process[_0x36ed13(0x13e)][_0x36ed13(0x15e)]=JSON[_0x36ed13(0x201)](this[_0x36ed13(0x1e0)]);continue;}break;}}static['getHookRegistryKey'](_0x310085,_0x45d1be){return _0x310085+':'+_0x45d1be;}static[a84_0x20218f(0x19e)](){return process['pid']+':'+threadId;}static[a84_0x20218f(0x160)](_0x47ffac){const _0x267a04=a84_0x20218f;if(_0x47ffac[_0x267a04(0x16f)]&&_0x47ffac[_0x267a04(0x16f)]['skipSessionName'])return!![];return![];}static[a84_0x20218f(0x146)](_0x48701e){const _0x5a7ffa=a84_0x20218f;if(_0x48701e[_0x5a7ffa(0x16f)]&&_0x48701e['testContextOptions']['skipSessionStatus'])return!![];return![];}static['matchHookRegex'](_0x1899f9){const _0x439398=a84_0x20218f,_0x49218d=new RegExp(TestFrameworkConstants[_0x439398(0x1a0)]);return _0x49218d[_0x439398(0x143)](_0x1899f9);}static['mergeObject'](_0x4550db,_0x369cec){const _0x21c5cd=a84_0x20218f,_0x1dbc4a={};_0x1dbc4a[_0x21c5cd(0x1ba)]=function(_0x47752e,_0x15f9ee){return _0x47752e!==_0x15f9ee;},_0x1dbc4a['gqKeq']=function(_0x39bc1d,_0x30bcca){return _0x39bc1d===_0x30bcca;},_0x1dbc4a[_0x21c5cd(0x1dd)]=_0x21c5cd(0x1f0);const _0x2fa73c=_0x1dbc4a;for(const [_0x1807a9,_0x9bcde4]of Object['entries'](_0x369cec)){if(_0x2fa73c[_0x21c5cd(0x1ba)](_0x9bcde4,null)&&_0x2fa73c['gqKeq'](typeof _0x9bcde4,_0x2fa73c[_0x21c5cd(0x1dd)])&&!Array['isArray'](_0x9bcde4))_0x4550db[_0x1807a9]=this[_0x21c5cd(0x1c0)](_0x4550db[_0x1807a9]||{},_0x9bcde4);else Array[_0x21c5cd(0x1aa)](_0x9bcde4)?_0x4550db[_0x1807a9]=(_0x4550db[_0x1807a9]||[])['concat'](_0x9bcde4):_0x4550db[_0x1807a9]=_0x9bcde4;}return _0x4550db;}}module[a84_0x20218f(0x20b)]=CLIUtils;function a84_0x27db(){const _0x43d55e=['Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','KcLWl','existsSync','isDevelopmentEnv','akyzk','Resolved\x20binary\x20path:\x20','Failed\x20to\x20delete\x20zip\x20file:\x20','DNStT','PEqgB','getExistingCliPath','readEntry','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','1019613lvZiAi','fileName','\x20already\x20exists','requestToUpdateCLI','SHELL_EXECUTE_ERROR','../utils/constants','debug','setFrameworkDetail','warn','arch','HUWcO','TGtcF','open','listen','response\x20','CoCpZ','getSdkVersion','Binary\x20is\x20busy:\x20','NWqyk','../utils/apiUtilityMethods.js','LYqGl','chmod','lSIvm','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','message','openSync','info','LmrQC','kMEVx','getCurrentInstanceName','XfKcW','HOOK_REGEX','rLduC','fuLCo','NlSkt','24ircYjL','isFile','cli_version','./state/testFrameworkState.js','SDK_CLI_CHECK_UPDATE','bGbCp','isArray','length','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','SDK_CLI_DOWNLOAD','MghFH','110004iaeAfI','./state/automationFrameworkState.js','isDirectory','.browserstack','2988328TZkyxn','qwCkd','UheAs','wAoUb','bwGYd','jFUzu','once','iuINe','bhVLK','../../helpers/utilities','parse','ZbDHB',',\x20automationFramework=','mergeObject','../../helpers/classLogger.js','cwd','PUEaP','LzxHU','HJvum','Folder\x20','checkAndUpdateCli','map','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','ZgGnQ','BROWSERSTACK_CLI_ENV','Current\x20CLI\x20Path\x20Found:\x20','../../helpers/helper','XHhaY','AuvXw','0755','closeSync','WPxTe','destroy','worker_threads','dYQrV','data','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','Failed\x20to\x20download\x20SDK\x20binary:\x20%s','xYOPd','statSync','DZUCu','5piaLWf','tCZfI','YGJXn','url','automationFrameworkDetail','hBGwW','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','TVrQg','MJHiu','aPJtM','lYjgi','version','heWmN','close','includes','node','preserveStatusCodeOnError','EXDEV','startsWith','oBbNs','object','.sock','rename','WOkFA','SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','getCliDir','XKjhh','fYBoQ','6675696ocNbJL','yauzl','util','ugulA','6652629CTmdfE','GET','reduce','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','Downloading\x20SDK\x20binary\x20from:\x20','stringify','AJeEl','downloadFileStream','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','cli','resume','mtime','../../helpers/performance/constants','JyAyA','MumiQ','exports','end','pid','\x20from\x20','error','ddvvC','getAutomationFrameworkDetail','unlink','bEAaP','Setting\x20required\x20permissions\x20to\x20','binary-','2|3|0|4|1','tJvPZ','.tmp.','basename','UUyEh','code','koRGT','tmpdir','Development\x20Cli\x20Path:\x20','statusCode','getCLIParamsForDevEnv','Folder\x20does\x20not\x20exist:\x20','../../../package.json','downloadLatestBinary','SDK_CLI_BIN_PATH','env','BROWSERSTACK_BINARY_URL','format','SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','test','40vkfKfQ','path','shouldSkipSessionStatus','WIxZK','sdEUY','fGRvB','.zip','iaDko','createWriteStream','start','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','pipe','isBinaryBusy','DOWNLOAD_HTTP','fFdAu','664724qWbbhH','dPQAx','getSdkLanguage','BROWSERSTACK_FILES_DIR','sCvtX','NHXIx','gzlWV','PPsTQ','getWritableDir','runShellCommand','Tsfsj','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','shouldSkipSessionName','Resolving\x20with\x20stdout:\x20\x22','\x20version','28944930HbOxHB','../../helpers/performance/performance-tester.js','trim','openReadStream','../../helpers/test-observability/utils.js','yBplo','join','readdirSync','child_process','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','lxszc','BASBO','testContextOptions','OQLSX','Error\x20while\x20reading\x20CLI\x20path:\x20','LqSNi','get','testFrameworkDetail'];a84_0x27db=function(){return _0x43d55e;};return a84_0x27db();}
1
+ const a85_0x543701=a85_0x135b;function a85_0x6bbc(){const _0x40a546=['jINgj','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','../../helpers/helper','arch','code','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','openReadStream','tWarz','utLjC','shouldSkipSessionStatus','cli_version','DOWNLOAD_HTTP','pipe','automationFrameworkDetail','yauzl','shouldSkipSessionName','rename','SDK_CLI_BIN_PATH','pDcDq','IkUqF','getCurrentInstanceName','NSkhl','FTwsg','error','1180ebIelD','SDK_CLI_CHECK_UPDATE','Ggpkq','isDirectory','ODUEa','Current\x20CLI\x20Path\x20Found:\x20','sezhc','binary-','TfWMw','isBinaryBusy','filter','11mrEFda','Aqcvl','sQRNh','Development\x20Cli\x20Path:\x20','../../helpers/classLogger.js','CLIUtils','132081NkrFLp','hWypC','FOJNP','DxVRV','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','eYRZc','util','HfTwW','../../helpers/performance/constants','SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20','3034031TiiFmF','join','readdirSync','entries','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','EcpWn','bTZTo','rBJbD','../../helpers/utilities','lazyEntries','destroy','CxAIL','version','33347330kYOYPa','Downloading\x20SDK\x20binary\x20from:\x20','runShellCommand','worker_threads','createWriteStream','ZIFLh','getSdkLanguage','mergeObject','BROWSERSTACK_BINARY_URL','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','warn','trim','preserveStatusCodeOnError','KhNzr','SOflr','WeeIe','GncBm','Failed\x20to\x20delete\x20zip\x20file:\x20','cwwOl','UGvcA','agriz','XgNFj','format','WGcZO','url','pid','9684qpbdWo','downloaded_file_','unix:/tmp/sdk-platform-','qpOZv','info','Configuring\x20Cli\x20path.','object','SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','setupCliPath','SEIwj','SDK_CLI_DOWNLOAD','BYbxq','downloadFileStream','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','Failed\x20to\x20download\x20SDK\x20binary:\x20%s','wDAPi','PSsmK','zTZAH','setFrameworkDetail','data','810zHOBiJ','testContextOptions','EDLNk','follow-redirects','../utils/constants','anMlJ','\x20already\x20exists','.zip','rcZsP','message','chmod','start','HTTP\x20','checkAndUpdateCli','downloadLatestBinary','split','BROWSERSTACK_FILES_DIR','WNXSi','egVkE','nYDvW','open','YwlUl','BROWSERSTACK_CLI_ENV','ngyAG','isDevelopmentEnv','TiJFT','./state/testFrameworkState.js','getTestFrameworkDetail','../../helpers/test-observability/utils.js','nhjog','getWritableDir','existsSync','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','IOOec','JPnwP','Ujorl','skipSessionName','\x20version','2|1|3|0|4','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','Binary\x20is\x20busy:\x20','fileName','../utils/apiUtilityMethods.js','NCUGd','KkmBV','statusCode','getExistingCliPath','exports',',\x20automationFramework=','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','ekXWO','UBraP','isFile','xGQBC','sfRqE','CLI\x20version\x20found\x20despite\x20error:\x20\x22','ByYUq','path','map','OPSyG','child_process','getAutomationFrameworkDetail','env','UwKpy','close','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','testFrameworkDetail','./framework/constants/testFrameworkConstants.js','platform','parse','fZHkQ','ZJIKg','unlink','Resolved\x20binary\x20path:\x20','Resolving\x20with\x20stdout:\x20\x22','\x20from\x20','length','VsgQf','EXDEV','end','readEntry','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','41352IhSxoj','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','VDnyS','24HrCucY','nbjwb','getHookRegistryKey','mtime','tsrtX','statSync','vFQDb','includes','debug','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','basename','getCliDir','isArray','stringify','getSdkVersion','filePath','requestToUpdateCLI','reduce','KoUbP','.browserstack','development','6384876DYypoJ','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','Folder\x20','openSync','3408225uWlGnW','matchHookRegex','resume','copyFileSync','HOOK_REGEX','test','.tmp.','OCxPr','SIFuT'];a85_0x6bbc=function(){return _0x40a546;};return a85_0x6bbc();}(function(_0x298c2c,_0x32df9e){const _0x47ffa2=a85_0x135b,_0x413be5=_0x298c2c();while(!![]){try{const _0x223cac=-parseInt(_0x47ffa2(0x133))/0x1*(-parseInt(_0x47ffa2(0xe8))/0x2)+-parseInt(_0x47ffa2(0x164))/0x3*(-parseInt(_0x47ffa2(0x122))/0x4)+parseInt(_0x47ffa2(0x101))/0x5+parseInt(_0x47ffa2(0xfd))/0x6+parseInt(_0x47ffa2(0x13d))/0x7+parseInt(_0x47ffa2(0xe4))/0x8*(-parseInt(_0x47ffa2(0x178))/0x9)+parseInt(_0x47ffa2(0x14a))/0xa*(-parseInt(_0x47ffa2(0x12d))/0xb);if(_0x223cac===_0x32df9e)break;else _0x413be5['push'](_0x413be5['shift']());}catch(_0x47082b){_0x413be5['push'](_0x413be5['shift']());}}}(a85_0x6bbc,0xdfc21));const fs=require('fs'),os=require('os'),url=require('url'),path=require(a85_0x543701(0x1b1)),{exec}=require(a85_0x543701(0x1b4)),{https}=require(a85_0x543701(0x17b)),yauzl=require(a85_0x543701(0x118)),util=require(a85_0x543701(0x139)),{getFrameworkVersion}=require(a85_0x543701(0x194)),{threadId}=require(a85_0x543701(0x14d)),PerformanceTester=require('../../helpers/performance/performance-tester.js'),{EVENTS:PerformanceEvents}=require(a85_0x543701(0x13b)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a85_0x543701(0x145)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a85_0x543701(0x10c)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a85_0x543701(0x17c)),{createClassLogger}=require(a85_0x543701(0x131)),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require('./state/hookState.js'),TestFrameworkState=require(a85_0x543701(0x192)),AutomationFrameworkState=require('./state/automationFrameworkState.js'),TestFrameworkConstants=require(a85_0x543701(0x1bb)),logger=createClassLogger(a85_0x543701(0x132)),{getBStackAPIUrl}=require(a85_0x543701(0x1a2));class CLIUtils{[a85_0x543701(0x117)]={};[a85_0x543701(0x1ba)]={};static[a85_0x543701(0x190)](){const _0x13d8c4=a85_0x543701,_0x5322df={};_0x5322df[_0x13d8c4(0x134)]=function(_0x3d3782,_0x57149d){return _0x3d3782===_0x57149d;},_0x5322df[_0x13d8c4(0x10a)]=_0x13d8c4(0xfc);const _0x54e65f=_0x5322df;return _0x54e65f['hWypC'](process[_0x13d8c4(0x1b6)][_0x13d8c4(0x18e)],_0x54e65f[_0x13d8c4(0x10a)]);}static['getCLIParamsForDevEnv'](){const _0xf9f4c1=a85_0x543701,_0xc38542={};return _0xc38542['id']=process['env']['BROWSERSTACK_CLI_ENV'],_0xc38542['listen']=_0xf9f4c1(0x166)+process['env'][_0xf9f4c1(0x18e)]+'.sock',_0xc38542;}static['getSdkVersion'](){const _0x267c0c=a85_0x543701,_0x2bd7c8={'TiJFT':function(_0x46ff7e,_0xb8504){return _0x46ff7e(_0xb8504);},'TfWMw':'../../../package.json'};return _0x2bd7c8[_0x267c0c(0x191)](require,_0x2bd7c8[_0x267c0c(0x12a)])[_0x267c0c(0x149)];}static[a85_0x543701(0x150)](){const _0x2bc2fd=a85_0x543701,_0x5d4301={};_0x5d4301[_0x2bc2fd(0xe7)]='node';const _0x881c90=_0x5d4301;return _0x881c90['VDnyS'];}static async[a85_0x543701(0x16c)](_0x430968){const _0x3c4297=a85_0x543701,_0x286487={'OPSyG':_0x3c4297(0x169),'utLjC':function(_0xc9cb27,_0x5e1f49){return _0xc9cb27(_0x5e1f49);},'ODUEa':function(_0x50ae87,_0x23d2b9){return _0x50ae87(_0x23d2b9);},'TSScI':_0x3c4297(0x153)};logger['debug'](_0x286487[_0x3c4297(0x1b3)]);const _0x98e2a7=process[_0x3c4297(0x1b6)][_0x3c4297(0x11b)];if(!_0x286487[_0x3c4297(0x112)](isNullOrEmpty,_0x98e2a7))return logger[_0x3c4297(0xf0)](_0x3c4297(0x130)+_0x98e2a7),_0x98e2a7;try{const _0x5dd91b=this[_0x3c4297(0xf3)]();if(_0x286487[_0x3c4297(0x126)](isNullOrEmpty,_0x5dd91b))throw new Error(_0x286487['TSScI']);const _0x54d220=this[_0x3c4297(0x1a6)](_0x5dd91b),_0x207d76=await this['checkAndUpdateCli'](_0x54d220,_0x5dd91b,_0x430968);return logger[_0x3c4297(0xf0)](_0x3c4297(0x1c1)+_0x207d76),_0x207d76;}catch(_0x1e493f){logger[_0x3c4297(0xf0)](_0x3c4297(0x1c9)+util[_0x3c4297(0x160)](_0x1e493f));}return null;}static async[a85_0x543701(0x185)](_0x36b523,_0x175474,_0x189ba0){const _0x23f0ea=a85_0x543701,_0x3b0796={'ZIFLh':function(_0x570826){return _0x570826();},'pDcDq':function(_0x3cee5e,_0x21c8ac){return _0x3cee5e(_0x21c8ac);},'agriz':function(_0x39d4cf,_0x5bfedd,_0x19d7a0){return _0x39d4cf(_0x5bfedd,_0x19d7a0);},'FOJNP':_0x23f0ea(0x177),'YwlUl':'url'};PerformanceTester[_0x23f0ea(0x183)](PerformanceEvents[_0x23f0ea(0x123)]);try{logger['info'](_0x23f0ea(0x127)+_0x36b523);const _0x49c762=_0x3b0796[_0x23f0ea(0x14f)](getHostInfo),_0x4cd13d={'sdk_version':CLIUtils[_0x23f0ea(0xf6)](),'os':_0x49c762[_0x23f0ea(0x1bc)],'os_arch':_0x49c762[_0x23f0ea(0x10d)],'cli_version':'0','sdk_language':this[_0x23f0ea(0x150)]()};!_0x3b0796['pDcDq'](isNullOrEmpty,_0x36b523)&&(_0x4cd13d[_0x23f0ea(0x114)]=await this[_0x23f0ea(0x14c)](_0x36b523+_0x23f0ea(0x19d)));const _0x2914d2=await this[_0x23f0ea(0xf8)](_0x4cd13d,_0x189ba0);process[_0x23f0ea(0x1b6)]['BROWSERSTACK_BINARY_URL']&&(logger[_0x23f0ea(0x168)](_0x23f0ea(0xf1)+process[_0x23f0ea(0x1b6)][_0x23f0ea(0x152)]),_0x2914d2['data'][_0x23f0ea(0x162)]=process['env']['BROWSERSTACK_BINARY_URL']);if(_0x3b0796[_0x23f0ea(0x15e)](nestedKeyValue,_0x2914d2,[_0x3b0796[_0x23f0ea(0x135)],_0x3b0796[_0x23f0ea(0x18d)]])){logger[_0x23f0ea(0xf0)]('Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20'+_0x4cd13d[_0x23f0ea(0x114)]);if(!_0x3b0796[_0x23f0ea(0x11c)](isNullOrEmpty,_0x36b523)&&this[_0x23f0ea(0x12b)](_0x36b523))return logger['warn'](_0x23f0ea(0x137)+_0x36b523),_0x36b523;return await this['downloadLatestBinary'](_0x3b0796[_0x23f0ea(0x15e)](nestedKeyValue,_0x2914d2,[_0x3b0796['FOJNP'],_0x3b0796['YwlUl']]),_0x175474);}return _0x36b523;}finally{PerformanceTester[_0x23f0ea(0x1c7)](PerformanceEvents[_0x23f0ea(0x123)]);}}static['getCliDir'](){const _0x31e7b4=a85_0x543701,_0x895a0c={'SIFuT':function(_0x16b1b4,_0x49705f){return _0x16b1b4(_0x49705f);},'KkmBV':_0x31e7b4(0x153),'vyZVX':'cli'},_0x5f5af0=this[_0x31e7b4(0x196)]();try{if(_0x895a0c['SIFuT'](isNullOrEmpty,_0x5f5af0))throw new Error(_0x895a0c[_0x31e7b4(0x1a4)]);const _0x164041=path[_0x31e7b4(0x13e)](_0x5f5af0,_0x895a0c['vyZVX']);return!fs[_0x31e7b4(0x197)](_0x164041)&&_0x895a0c[_0x31e7b4(0x109)](createDir,_0x164041),_0x164041;}catch(_0x515b2f){logger[_0x31e7b4(0xf0)](_0x31e7b4(0x10f)+util[_0x31e7b4(0x160)](_0x515b2f));}}static[a85_0x543701(0x196)](){const _0x27e93d=a85_0x543701,_0x19cfb8={'ekXWO':_0x27e93d(0xfb),'jGUfh':function(_0xb9f537,_0x48667c){return _0xb9f537(_0x48667c);},'NCUGd':function(_0x398bb8,_0x354805){return _0x398bb8(_0x354805);},'ZwDml':function(_0x1d3506,_0xb6a3fb){return _0x1d3506(_0xb6a3fb);},'HbRku':function(_0x559d7b,_0x474a22){return _0x559d7b(_0x474a22);},'DxVRV':function(_0x321ba8,_0x103020){return _0x321ba8(_0x103020);},'fZHkQ':function(_0x470646,_0x2bf5bb){return _0x470646(_0x2bf5bb);}},_0x5d36d3=[process[_0x27e93d(0x1b6)][_0x27e93d(0x188)],path[_0x27e93d(0x13e)](os['homedir'](),_0x19cfb8['ekXWO']),path[_0x27e93d(0x13e)](os['tmpdir'](),_0x19cfb8[_0x27e93d(0x1aa)])];for(const _0x520b6f of _0x5d36d3){if(_0x19cfb8['jGUfh'](isNullOrEmpty,_0x520b6f))continue;try{if(fs['existsSync'](_0x520b6f)){logger[_0x27e93d(0xf0)](_0x27e93d(0xff)+_0x520b6f+_0x27e93d(0x17e));if(!_0x19cfb8['jGUfh'](isModifiable,_0x520b6f)){logger[_0x27e93d(0xf0)]('Setting\x20required\x20permissions\x20to\x20'+_0x520b6f);const _0xdc05df=_0x19cfb8[_0x27e93d(0x1a3)](setReadWriteExecuteAccess,_0x520b6f);if(!_0x19cfb8['ZwDml'](isTrue,_0xdc05df)){logger[_0x27e93d(0x154)](_0x27e93d(0x19f)+_0x520b6f);continue;}}}else{logger[_0x27e93d(0xf0)]('Folder\x20does\x20not\x20exist:\x20'+_0x520b6f),_0x19cfb8['HbRku'](createDir,_0x520b6f),logger[_0x27e93d(0xf0)]('Setting\x20required\x20permissions\x20to\x20'+_0x520b6f);const _0x33e311=_0x19cfb8[_0x27e93d(0x136)](setReadWriteExecuteAccess,_0x520b6f);!_0x19cfb8[_0x27e93d(0x1be)](isTrue,_0x33e311)&&logger[_0x27e93d(0x154)](_0x27e93d(0x19f)+_0x520b6f);}return _0x520b6f;}catch(_0x4d8e0c){logger[_0x27e93d(0x121)]('Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20'+util[_0x27e93d(0x160)](_0x4d8e0c));}}return null;}static[a85_0x543701(0x1a6)](_0x56b41c){const _0x3cb7bc=a85_0x543701,_0x1ad32a={};_0x1ad32a[_0x3cb7bc(0x128)]=function(_0xc7d485,_0xb1d911){return _0xc7d485>_0xb1d911;},_0x1ad32a['XgNFj']=function(_0x44f95c,_0x43eb34){return _0x44f95c>_0x43eb34;};const _0x4b6007=_0x1ad32a;try{if(!fs[_0x3cb7bc(0x197)](_0x56b41c)||!fs[_0x3cb7bc(0xed)](_0x56b41c)[_0x3cb7bc(0x125)]())return'';const _0x3e349c=fs[_0x3cb7bc(0x13f)](_0x56b41c)[_0x3cb7bc(0x1b2)](_0x5b1f45=>path[_0x3cb7bc(0x13e)](_0x56b41c,_0x5b1f45))[_0x3cb7bc(0x12c)](_0x250a81=>fs[_0x3cb7bc(0xed)](_0x250a81)[_0x3cb7bc(0x1ac)]()&&path[_0x3cb7bc(0xf2)](_0x250a81)['startsWith'](_0x3cb7bc(0x129)));if(_0x4b6007[_0x3cb7bc(0x15f)](_0x3e349c[_0x3cb7bc(0x1c4)],0x0)){const _0x47bdd6=_0x3e349c[_0x3cb7bc(0x1b2)](_0x50ca9e=>({'filePath':_0x50ca9e,'mtime':fs['statSync'](_0x50ca9e)[_0x3cb7bc(0xeb)]}))[_0x3cb7bc(0xf9)]((_0x7904dc,_0x434b65)=>{const _0xfedc9d=_0x3cb7bc;if(!_0x7904dc||!_0x7904dc[_0xfedc9d(0xeb)])return _0x434b65;if(_0x4b6007[_0xfedc9d(0x128)](_0x434b65['mtime'],_0x7904dc['mtime']))return _0x434b65;return _0x7904dc;},{});return _0x47bdd6?_0x47bdd6[_0x3cb7bc(0xf7)]:'';}return'';}catch(_0xf45eaf){return logger['error']('Error\x20while\x20reading\x20CLI\x20path:\x20'+util['format'](_0xf45eaf)),'';}}static [a85_0x543701(0xf8)]=async(_0xba0057,_0x383bd9)=>{const _0xd958e2=a85_0x543701,_0x5a5e98={'Ujorl':function(_0x347ec2,_0x37212d,_0xd920b1,_0x1fc965,_0x462cb0){return _0x347ec2(_0x37212d,_0xd920b1,_0x1fc965,_0x462cb0);},'EcpWn':'GET'},_0x1a97b8={};_0x1a97b8['qs']=_0xba0057,_0x1a97b8[_0xd958e2(0x156)]=!![];const _0x56a0b8=await _0x5a5e98[_0xd958e2(0x19b)](nodeRequest,_0x5a5e98[_0xd958e2(0x142)],UPDATED_CLI_ENDPOINT,_0x1a97b8,_0x383bd9);return logger[_0xd958e2(0xf0)]('response\x20'+JSON[_0xd958e2(0xf5)](_0x56a0b8)),_0x56a0b8;};static['isBinaryBusy'](_0x5c0850){const _0x3f5222=a85_0x543701;try{const _0x3ac61b=fs[_0x3f5222(0x100)](_0x5c0850,'r+');return fs['closeSync'](_0x3ac61b),![];}catch(_0x34ff86){if(BINARY_BUSY_ERROR_CODES[_0x3f5222(0xef)](_0x34ff86[_0x3f5222(0x10e)]))return logger[_0x3f5222(0xf0)](_0x3f5222(0x1a0)+_0x5c0850),!![];return logger[_0x3f5222(0xf0)]('Error\x20checking\x20if\x20binary\x20is\x20busy:\x20'+_0x34ff86[_0x3f5222(0x181)]),![];}}static[a85_0x543701(0x14c)](_0x1a00ca,_0x2509ad=''){const _0x30ed44=a85_0x543701,_0x1635ab={'gKjiq':'version','EDLNk':function(_0x235770,_0xe985e1){return _0x235770(_0xe985e1);},'VsgQf':function(_0x345b12,_0x50435d){return _0x345b12(_0x50435d);},'KhNzr':'SHELL_EXECUTE_ERROR','anMlJ':function(_0x1512be,_0x3e34b4){return _0x1512be(_0x3e34b4);},'xGQBC':function(_0x599e60,_0x12a61d,_0x59dd49,_0x9fa835){return _0x599e60(_0x12a61d,_0x59dd49,_0x9fa835);},'PSsmK':_0x30ed44(0x121)};return new Promise((_0x1216ba,_0x3483b3)=>{const _0x212177=_0x30ed44,_0x2a24e1={};_0x2a24e1['cwd']=_0x2509ad,_0x2a24e1['timeout']=0x1388;const _0x38bedc=_0x1635ab[_0x212177(0x1ad)](exec,_0x1a00ca,_0x2a24e1,(_0x3184c3,_0x376b87,_0x244177)=>{const _0x165b40=_0x212177;if(_0x3184c3){if(_0x1a00ca[_0x165b40(0xef)](_0x1635ab['gKjiq'])&&(_0x376b87['trim']()||_0x244177[_0x165b40(0x155)]())){const _0x32c189=_0x376b87['trim']()||_0x244177[_0x165b40(0x155)]();logger[_0x165b40(0xf0)](_0x165b40(0x1af)+_0x32c189+'\x22'),_0x1635ab[_0x165b40(0x17a)](_0x1216ba,_0x32c189);}else _0x1635ab[_0x165b40(0x1c5)](_0x1216ba,_0x244177[_0x165b40(0x155)]()||_0x1635ab[_0x165b40(0x157)]);}else logger[_0x165b40(0xf0)](_0x165b40(0x1c2)+_0x376b87['trim']()+'\x22'),_0x1635ab[_0x165b40(0x17d)](_0x1216ba,_0x376b87['trim']());});_0x38bedc['on'](_0x1635ab[_0x212177(0x174)],()=>{const _0x1711d7=_0x212177;_0x1635ab[_0x1711d7(0x17a)](_0x1216ba,_0x1635ab[_0x1711d7(0x157)]);});});}static [a85_0x543701(0x186)]=async(_0x21188c,_0x34ad19)=>{const _0x211848=a85_0x543701,_0xe292f0={'VKkid':_0x211848(0x1a9),'UwKpy':function(_0x4ad7ba,_0x4899d7){return _0x4ad7ba(_0x4899d7);},'BYbxq':_0x211848(0xfe),'IkUqF':function(_0x4d1e30,_0x52eb64){return _0x4d1e30>=_0x52eb64;},'sfRqE':_0x211848(0x115),'JZzyX':_0x211848(0x16b),'SOflr':'error','tWarz':_0x211848(0x172)};PerformanceTester['start'](PerformanceEvents['SDK_CLI_DOWNLOAD']),logger[_0x211848(0xf0)](_0x211848(0x14b)+_0x21188c);try{const _0x2d9630=url[_0x211848(0x1bd)](_0x21188c),_0x4a1489=path[_0x211848(0x13e)](_0x34ad19,_0x211848(0x165)+process['pid']+_0x211848(0x17f)),_0x6a8c07=fs[_0x211848(0x14e)](_0x4a1489);return new Promise((_0x376ea5,_0x5569dc)=>{const _0x405ccd=_0x211848,_0x1a570a={'rcZsP':_0xe292f0['VKkid'],'KoUbP':function(_0x1b06cc,_0x26c5b1){const _0x5adf13=a85_0x135b;return _0xe292f0[_0x5adf13(0x1b7)](_0x1b06cc,_0x26c5b1);},'fMkBx':_0xe292f0[_0x405ccd(0x16f)],'SEIwj':function(_0x13a090,_0x1def4e){const _0xbbbdbe=_0x405ccd;return _0xe292f0[_0xbbbdbe(0x1b7)](_0x13a090,_0x1def4e);},'ScLnl':function(_0x1f27a5,_0x18897d){const _0x2078ef=_0x405ccd;return _0xe292f0[_0x2078ef(0x11d)](_0x1f27a5,_0x18897d);},'ZJIKg':_0xe292f0[_0x405ccd(0x1ae)],'eMTMM':_0xe292f0['JZzyX'],'qpOZv':_0xe292f0[_0x405ccd(0x158)]};https['get'](_0x2d9630,function(_0x19af9e){const _0x20a77c=_0x405ccd,_0x53cbb4={'TBuaT':_0x1a570a['fMkBx'],'tsrtX':function(_0x17f422,_0x4b9b05){const _0x1b6fd6=a85_0x135b;return _0x1a570a[_0x1b6fd6(0xfa)](_0x17f422,_0x4b9b05);},'ByYUq':function(_0x70ed18,_0x47d204){const _0x216868=a85_0x135b;return _0x1a570a[_0x216868(0x16d)](_0x70ed18,_0x47d204);}},_0x1e2618=null;if(_0x19af9e[_0x20a77c(0x1a5)]&&_0x1a570a['ScLnl'](_0x19af9e[_0x20a77c(0x1a5)],0x190)){const _0x2d0811=new Error(_0x20a77c(0x13c)+_0x19af9e[_0x20a77c(0x1a5)]+_0x20a77c(0x1c3)+_0x21188c);_0x2d0811[_0x20a77c(0x10e)]=_0x1a570a[_0x20a77c(0x1bf)],_0x2d0811[_0x20a77c(0x1a5)]=_0x19af9e[_0x20a77c(0x1a5)],logger[_0x20a77c(0x121)](util[_0x20a77c(0x160)](_0x1a570a['eMTMM'],_0x19af9e['statusCode'])),PerformanceTester[_0x20a77c(0x1c7)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],_0x20a77c(0x184)+_0x19af9e[_0x20a77c(0x1a5)]),_0x19af9e[_0x20a77c(0x103)](),_0x6a8c07[_0x20a77c(0x147)](),fs[_0x20a77c(0x1c0)](_0x4a1489,()=>{}),_0x1a570a['SEIwj'](_0x5569dc,_0x2d0811);return;}_0x19af9e[_0x20a77c(0x116)](_0x6a8c07),_0x19af9e['on'](_0x1a570a[_0x20a77c(0x167)],function(_0x4a21e8){const _0x386cf8=_0x20a77c;logger['error'](util[_0x386cf8(0x160)](_0x53cbb4['TBuaT'],_0x4a21e8)),PerformanceTester['end'](PerformanceEvents[_0x386cf8(0x16e)],![],util[_0x386cf8(0x160)](_0x4a21e8)),_0x53cbb4[_0x386cf8(0xec)](_0x5569dc,_0x4a21e8);}),_0x6a8c07['on'](_0x1a570a[_0x20a77c(0x167)],function(_0x5190b0){const _0xeb93ac=_0x20a77c;logger[_0xeb93ac(0x121)](util[_0xeb93ac(0x160)](_0x1a570a[_0xeb93ac(0x180)],_0x5190b0)),PerformanceTester[_0xeb93ac(0x1c7)](PerformanceEvents[_0xeb93ac(0x16e)],![],util[_0xeb93ac(0x160)](_0x5190b0)),_0x1a570a[_0xeb93ac(0xfa)](_0x5569dc,_0x5190b0);}),CLIUtils['downloadFileStream'](_0x6a8c07,_0x1e2618,_0x4a1489,_0x34ad19,_0x53774a=>{const _0x440523=_0x20a77c;PerformanceTester[_0x440523(0x1c7)](PerformanceEvents[_0x440523(0x16e)]),_0x53cbb4[_0x440523(0x1b0)](_0x376ea5,_0x53774a);},_0x27be32=>{const _0x1b3b50=_0x20a77c;PerformanceTester['end'](PerformanceEvents[_0x1b3b50(0x16e)],![],util[_0x1b3b50(0x160)](_0x27be32)),_0x53cbb4[_0x1b3b50(0xec)](_0x5569dc,_0x27be32);});})['on'](_0xe292f0[_0x405ccd(0x158)],function(_0x5665b9){const _0x484078=_0x405ccd;logger['error'](_0x484078(0xe6)+util[_0x484078(0x160)](_0x5665b9)),PerformanceTester['end'](PerformanceEvents[_0x484078(0x16e)],![],util[_0x484078(0x160)](_0x5665b9)),_0x1a570a[_0x484078(0xfa)](_0x5569dc,_0x5665b9);});});}catch(_0x5be48f){PerformanceTester[_0x211848(0x1c7)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x211848(0x160)](_0x5be48f)),logger[_0x211848(0x121)](util[_0x211848(0x160)](_0xe292f0[_0x211848(0x111)],_0x5be48f));throw _0x5be48f;}};static[a85_0x543701(0x170)](_0x3a6949,_0x5f42e6,_0x7b7307,_0x1c4d70,_0x378fb9,_0x1d0621){const _0x2cbef4=a85_0x543701,_0x24fd03={'GncBm':function(_0xb277ed,_0x16014e){return _0xb277ed(_0x16014e);},'Ggpkq':'close','nbjwb':function(_0x49c86b,_0x563321){return _0x49c86b!==_0x563321;},'WNXSi':_0x2cbef4(0x121),'eYRZc':_0x2cbef4(0x1c6),'UGvcA':'0755','JgPfw':_0x2cbef4(0x1c7),'UQbFi':'entry'};_0x3a6949['on'](_0x24fd03[_0x2cbef4(0x124)],function(){const _0x55942e=_0x2cbef4,_0x1b9d34={'rBJbD':function(_0x2f1a8b,_0x1612b0){return _0x24fd03['GncBm'](_0x2f1a8b,_0x1612b0);},'UBraP':_0x24fd03['Ggpkq'],'WTuSF':function(_0x3fc306,_0xc9852c){const _0x1fb09b=a85_0x135b;return _0x24fd03[_0x1fb09b(0xe9)](_0x3fc306,_0xc9852c);},'nYDvW':_0x24fd03[_0x55942e(0x189)],'egVkE':function(_0x577f0a,_0x1f7192){const _0x458592=_0x55942e;return _0x24fd03[_0x458592(0x15a)](_0x577f0a,_0x1f7192);},'zTZAH':function(_0x4a2ac8,_0x19ce0d){const _0x231cb=_0x55942e;return _0x24fd03[_0x231cb(0xe9)](_0x4a2ac8,_0x19ce0d);},'JPnwP':_0x24fd03[_0x55942e(0x138)],'NSkhl':_0x24fd03[_0x55942e(0x15d)],'bTZTo':_0x24fd03['JgPfw'],'cwwOl':_0x24fd03['UQbFi']},_0x2b8ec5={};_0x2b8ec5[_0x55942e(0x146)]=!![],yauzl[_0x55942e(0x18c)](_0x7b7307,_0x2b8ec5,function(_0x17f07f,_0x47097f){const _0x4594af=_0x55942e,_0x1672fd={'IOOec':function(_0x5b085e,_0x2f81c7){const _0x59e8d1=a85_0x135b;return _0x1b9d34[_0x59e8d1(0x144)](_0x5b085e,_0x2f81c7);},'CxAIL':_0x1b9d34[_0x4594af(0x143)]};if(_0x17f07f){_0x1b9d34['rBJbD'](_0x1d0621,_0x17f07f);return;}_0x47097f[_0x4594af(0x1c8)](),_0x47097f['on'](_0x1b9d34[_0x4594af(0x15c)],_0x4befee=>{const _0x32b891=_0x4594af,_0x34cdeb={'FTwsg':function(_0x4f6476,_0x1f33fe){return _0x1b9d34['rBJbD'](_0x4f6476,_0x1f33fe);},'ngyAG':_0x1b9d34[_0x32b891(0x1ab)]};if(/\/$/[_0x32b891(0x106)](_0x4befee['fileName'])){_0x47097f[_0x32b891(0x1c8)]();return;}!_0x5f42e6&&(_0x5f42e6=_0x4befee[_0x32b891(0x1a1)]);if(_0x1b9d34['WTuSF'](_0x4befee['fileName'],_0x5f42e6))_0x47097f[_0x32b891(0x1c8)]();else{const _0x57ef59=_0x4befee[_0x32b891(0x1a1)],_0x3d7e16=path['join'](_0x1c4d70,_0x57ef59+'.tmp.'+process[_0x32b891(0x163)]);let _0x58df2d;try{_0x58df2d=fs[_0x32b891(0x14e)](_0x3d7e16);}catch(_0x483d7b){if(BINARY_BUSY_ERROR_CODES[_0x32b891(0xef)](_0x483d7b[_0x32b891(0x10e)])){const _0x535378=path[_0x32b891(0x13e)](_0x1c4d70,_0x57ef59);if(fs[_0x32b891(0x197)](_0x535378)){logger[_0x32b891(0x154)](_0x32b891(0x10b)+_0x57ef59),fs[_0x32b891(0x1c0)](_0x7b7307,_0x3e17e0=>{const _0x5ae7f3=_0x32b891;_0x3e17e0&&logger[_0x5ae7f3(0x154)](_0x5ae7f3(0x15b)+_0x7b7307);}),_0x1b9d34['rBJbD'](_0x378fb9,_0x535378);return;}logger[_0x32b891(0x154)](_0x32b891(0x141)+_0x57ef59);}_0x1b9d34[_0x32b891(0x144)](_0x1d0621,_0x483d7b);return;}_0x58df2d['on'](_0x1b9d34[_0x32b891(0x18b)],_0x51ad81=>{const _0x4b21c4=_0x32b891;if(BINARY_BUSY_ERROR_CODES[_0x4b21c4(0xef)](_0x51ad81[_0x4b21c4(0x10e)])){const _0x4df427=path[_0x4b21c4(0x13e)](_0x1c4d70,_0x57ef59);_0x58df2d[_0x4b21c4(0x1b8)](),fs[_0x4b21c4(0x197)](_0x4df427)?(logger[_0x4b21c4(0x154)](_0x4b21c4(0x171)+_0x51ad81[_0x4b21c4(0x181)]),_0x47097f['close'](),fs[_0x4b21c4(0x1c0)](_0x7b7307,_0x1f5a1c=>{const _0x9d8462=_0x4b21c4;_0x1f5a1c&&logger['warn'](_0x9d8462(0x15b)+_0x7b7307);}),_0x34cdeb[_0x4b21c4(0x120)](_0x378fb9,_0x4df427)):(logger['warn']('Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x51ad81[_0x4b21c4(0x181)]),fs[_0x4b21c4(0x1c0)](_0x3d7e16,()=>{}),_0x34cdeb['FTwsg'](_0x1d0621,_0x51ad81));}else fs[_0x4b21c4(0x1c0)](_0x3d7e16,()=>{}),_0x34cdeb['FTwsg'](_0x1d0621,_0x51ad81);}),_0x47097f[_0x32b891(0x110)](_0x4befee,function(_0x18eed6,_0x351c11){const _0x21e37e=_0x32b891;if(_0x18eed6){fs['unlink'](_0x3d7e16,()=>{}),_0x1672fd[_0x21e37e(0x199)](_0x1d0621,_0x18eed6);return;}_0x351c11['on'](_0x1672fd[_0x21e37e(0x148)],function(){const _0x98e284=_0x21e37e;_0x58df2d[_0x98e284(0x1c7)](),_0x58df2d['on'](_0x34cdeb[_0x98e284(0x18f)],function(){_0x47097f['readEntry']();});}),_0x351c11[_0x21e37e(0x116)](_0x58df2d);});}}),_0x47097f['on'](_0x1b9d34['nYDvW'],_0x298984=>{const _0xa4e16b=_0x4594af;_0x1b9d34[_0xa4e16b(0x18a)](_0x1d0621,_0x298984);}),_0x47097f['once'](_0x1b9d34[_0x4594af(0x143)],()=>{const _0x200ea4=_0x4594af,_0x977fbf={'sQRNh':function(_0x3dfd0c,_0x451ad3){const _0xa66efc=a85_0x135b;return _0x1b9d34[_0xa66efc(0x175)](_0x3dfd0c,_0x451ad3);},'vFQDb':_0x1b9d34[_0x200ea4(0x19a)],'WFEpG':function(_0x200f71,_0x13aa15){const _0x3a445f=_0x200ea4;return _0x1b9d34[_0x3a445f(0x144)](_0x200f71,_0x13aa15);},'nhjog':function(_0x3e1f41,_0x24cbd8){return _0x1b9d34['egVkE'](_0x3e1f41,_0x24cbd8);}};fs[_0x200ea4(0x1c0)](_0x7b7307,_0x5d23b1=>{const _0x3e54d0=_0x200ea4;_0x5d23b1&&logger[_0x3e54d0(0x154)](_0x3e54d0(0x15b)+_0x7b7307);});const _0x5061b9=path[_0x200ea4(0x13e)](_0x1c4d70,_0x5f42e6+_0x200ea4(0x107)+process['pid']),_0x4925f2=path[_0x200ea4(0x13e)](_0x1c4d70,_0x5f42e6);fs[_0x200ea4(0x182)](_0x5061b9,_0x1b9d34[_0x200ea4(0x11f)],function(_0x452acf){const _0x4d22a7=_0x200ea4;if(_0x452acf){_0x47097f[_0x4d22a7(0x1b8)](),fs['unlink'](_0x5061b9,()=>{}),_0x1672fd[_0x4d22a7(0x199)](_0x1d0621,_0x452acf);return;}fs[_0x4d22a7(0x11a)](_0x5061b9,_0x4925f2,function(_0x34549d){const _0x2fc322=_0x4d22a7;if(_0x34549d){if(_0x977fbf[_0x2fc322(0x12f)](_0x34549d[_0x2fc322(0x10e)],_0x977fbf[_0x2fc322(0xee)])){_0x47097f[_0x2fc322(0x1b8)](),fs['unlink'](_0x5061b9,()=>{}),_0x977fbf['WFEpG'](_0x1d0621,_0x34549d);return;}logger[_0x2fc322(0x154)](_0x2fc322(0x198)+_0x34549d[_0x2fc322(0x181)]);try{fs[_0x2fc322(0x104)](_0x5061b9,_0x4925f2);}catch(_0x3683f5){_0x47097f[_0x2fc322(0x1b8)](),fs[_0x2fc322(0x1c0)](_0x5061b9,()=>{}),_0x977fbf['nhjog'](_0x1d0621,_0x3683f5);return;}fs[_0x2fc322(0x1c0)](_0x5061b9,_0x1c7446=>{const _0x25791f=_0x2fc322;_0x1c7446&&logger[_0x25791f(0x154)]('Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20'+_0x1c7446[_0x25791f(0x181)]);});}_0x47097f[_0x2fc322(0x1b8)](),_0x977fbf[_0x2fc322(0x195)](_0x378fb9,_0x4925f2);});});});});});}static[a85_0x543701(0x193)](){const _0x31f286=a85_0x543701;if(process['env'][_0x31f286(0xe5)])return JSON[_0x31f286(0x1bd)](process[_0x31f286(0x1b6)][_0x31f286(0xe5)]);return this[_0x31f286(0x1ba)];}static[a85_0x543701(0x1b5)](){const _0x33ab5c=a85_0x543701;if(process[_0x33ab5c(0x1b6)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL'])return JSON[_0x33ab5c(0x1bd)](process['env']['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']);return this['automationFrameworkDetail'];}static[a85_0x543701(0x176)](_0x1a833a,_0x133a0e){const _0x23158f=a85_0x543701,_0x4cc24e={'OCxPr':_0x23158f(0x19e),'uNnGU':function(_0x37e188,_0x1c6d3e){return _0x37e188(_0x1c6d3e);},'Aqcvl':function(_0x5777e4,_0x46fecd){return _0x5777e4||_0x46fecd;},'WeeIe':function(_0x50b700,_0x3ed19e){return _0x50b700(_0x3ed19e);}},_0x1b9f5a=_0x4cc24e[_0x23158f(0x108)][_0x23158f(0x187)]('|');let _0x2b02b8=0x0;while(!![]){switch(_0x1b9f5a[_0x2b02b8++]){case'0':process[_0x23158f(0x1b6)][_0x23158f(0x1b9)]=JSON['stringify'](this[_0x23158f(0x117)]);continue;case'1':this[_0x23158f(0x1ba)]={'name':_0x1a833a,'version':{[_0x1a833a]:_0x4cc24e['uNnGU'](getFrameworkVersion,_0x1a833a)}};continue;case'2':_0x4cc24e[_0x23158f(0x12e)](!_0x1a833a,!_0x133a0e)&&logger[_0x23158f(0xf0)]('Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework='+_0x1a833a+_0x23158f(0x1a8)+_0x133a0e);continue;case'3':this['automationFrameworkDetail']={'name':_0x133a0e,'version':_0x4cc24e[_0x23158f(0x159)](getFrameworkVersion,_0x133a0e)};continue;case'4':process[_0x23158f(0x1b6)][_0x23158f(0xe5)]=JSON[_0x23158f(0xf5)](this[_0x23158f(0x1ba)]);continue;}break;}}static[a85_0x543701(0xea)](_0xac4a34,_0x1a018d){return _0xac4a34+':'+_0x1a018d;}static[a85_0x543701(0x11e)](){const _0x10c311=a85_0x543701;return process[_0x10c311(0x163)]+':'+threadId;}static[a85_0x543701(0x119)](_0x4db91c){const _0x251c20=a85_0x543701;if(_0x4db91c[_0x251c20(0x179)]&&_0x4db91c[_0x251c20(0x179)][_0x251c20(0x19c)])return!![];return![];}static[a85_0x543701(0x113)](_0x14a8e2){const _0x1f3b2d=a85_0x543701;if(_0x14a8e2[_0x1f3b2d(0x179)]&&_0x14a8e2[_0x1f3b2d(0x179)]['skipSessionStatus'])return!![];return![];}static[a85_0x543701(0x102)](_0x1adb74){const _0x34fcf5=a85_0x543701,_0x49989d=new RegExp(TestFrameworkConstants[_0x34fcf5(0x105)]);return _0x49989d[_0x34fcf5(0x106)](_0x1adb74);}static[a85_0x543701(0x151)](_0x1831a3,_0x58e959){const _0x6b0a7b=a85_0x543701,_0x20ed7d={};_0x20ed7d[_0x6b0a7b(0x13a)]=function(_0x112914,_0x327efe){return _0x112914!==_0x327efe;},_0x20ed7d[_0x6b0a7b(0x161)]=function(_0x364336,_0x54cca9){return _0x364336===_0x54cca9;},_0x20ed7d[_0x6b0a7b(0x173)]=_0x6b0a7b(0x16a);const _0x257745=_0x20ed7d;for(const [_0x3c418c,_0x339db4]of Object[_0x6b0a7b(0x140)](_0x58e959)){if(_0x257745[_0x6b0a7b(0x13a)](_0x339db4,null)&&_0x257745['WGcZO'](typeof _0x339db4,_0x257745[_0x6b0a7b(0x173)])&&!Array[_0x6b0a7b(0xf4)](_0x339db4))_0x1831a3[_0x3c418c]=this['mergeObject'](_0x1831a3[_0x3c418c]||{},_0x339db4);else Array[_0x6b0a7b(0xf4)](_0x339db4)?_0x1831a3[_0x3c418c]=(_0x1831a3[_0x3c418c]||[])['concat'](_0x339db4):_0x1831a3[_0x3c418c]=_0x339db4;}return _0x1831a3;}}function a85_0x135b(_0x3d585a,_0x4f1799){const _0x6bbc29=a85_0x6bbc();return a85_0x135b=function(_0x135b96,_0x3d4807){_0x135b96=_0x135b96-0xe4;let _0x44ef2d=_0x6bbc29[_0x135b96];return _0x44ef2d;},a85_0x135b(_0x3d585a,_0x4f1799);}module[a85_0x543701(0x1a7)]=CLIUtils;
@@ -1 +1 @@
1
- 'use strict';const a85_0x3cdf8b=a85_0x3a34;(function(_0x3dfc08,_0x42a797){const _0x5ac9ef=a85_0x3a34,_0x4be911=_0x3dfc08();while(!![]){try{const _0x2f655e=parseInt(_0x5ac9ef(0x20a))/0x1+-parseInt(_0x5ac9ef(0x1d3))/0x2*(parseInt(_0x5ac9ef(0x1c4))/0x3)+-parseInt(_0x5ac9ef(0x206))/0x4+-parseInt(_0x5ac9ef(0x1e7))/0x5*(parseInt(_0x5ac9ef(0x1bf))/0x6)+parseInt(_0x5ac9ef(0x1da))/0x7*(parseInt(_0x5ac9ef(0x1c5))/0x8)+parseInt(_0x5ac9ef(0x211))/0x9*(-parseInt(_0x5ac9ef(0x1f0))/0xa)+parseInt(_0x5ac9ef(0x226))/0xb;if(_0x2f655e===_0x42a797)break;else _0x4be911['push'](_0x4be911['shift']());}catch(_0x5b4d5d){_0x4be911['push'](_0x4be911['shift']());}}}(a85_0x19ee,0x95d31));const fs=require('fs'),os=require('os'),path=require('path'),helper=require(a85_0x3cdf8b(0x207)),AutomationFramework=require('./framework/automationFramework'),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),PlaywrightDriverModule=require(a85_0x3cdf8b(0x218)),TestInfo=require('./TestInfo'),TestHubModule=require('./modules/testhubModule'),{createClassLogger}=require(a85_0x3cdf8b(0x205)),logger=createClassLogger(a85_0x3cdf8b(0x208)),BUILD_TAG_FILE_PREFIX=a85_0x3cdf8b(0x1ad);function getBuildTagsRunId(){const _0x83c605=a85_0x3cdf8b,_0x42a2fb={};_0x42a2fb['HULpU']=function(_0xd44ed8,_0x11c47a){return _0xd44ed8===_0x11c47a;},_0x42a2fb[_0x83c605(0x1d4)]=_0x83c605(0x1f1);const _0x374982=_0x42a2fb,_0x3b05d7=process[_0x83c605(0x1b3)][_0x83c605(0x21e)];if(!_0x3b05d7||_0x374982['HULpU'](_0x3b05d7,_0x374982['GmJiC']))return null;return _0x3b05d7;}function getBuildTagsFilePath(_0x4edacb){const _0x5f42fb=a85_0x3cdf8b;return path[_0x5f42fb(0x20f)](os[_0x5f42fb(0x1f6)](),''+BUILD_TAG_FILE_PREFIX+_0x4edacb+'_'+process[_0x5f42fb(0x233)]+_0x5f42fb(0x1cb));}class CustomTagManager{static [a85_0x3cdf8b(0x1dd)]={};static [a85_0x3cdf8b(0x1df)]={};static[a85_0x3cdf8b(0x1c7)](_0x21e165,_0x28e406){const _0x2efb3d=a85_0x3cdf8b;return Array[_0x2efb3d(0x1d0)](new Set([..._0x21e165||[],..._0x28e406||[]]));}static[a85_0x3cdf8b(0x213)](_0x33abcb,_0x5d4f62,_0x436797){const _0x2c7f6e=a85_0x3cdf8b,_0x16ae07={};_0x16ae07[_0x2c7f6e(0x1c3)]='multi_dropdown';const _0xb79f0=_0x16ae07;if(!_0x33abcb[_0x5d4f62]){const _0x20db53={};_0x20db53[_0x2c7f6e(0x1bb)]=_0xb79f0[_0x2c7f6e(0x1c3)],_0x20db53['values']=[..._0x436797||[]],_0x33abcb[_0x5d4f62]=_0x20db53;}else!_0x33abcb[_0x5d4f62][_0x2c7f6e(0x1bb)]&&(_0x33abcb[_0x5d4f62][_0x2c7f6e(0x1bb)]=_0xb79f0[_0x2c7f6e(0x1c3)]),!Array[_0x2c7f6e(0x21c)](_0x33abcb[_0x5d4f62][_0x2c7f6e(0x219)])&&(_0x33abcb[_0x5d4f62][_0x2c7f6e(0x219)]=[]),_0x33abcb[_0x5d4f62]['values']=CustomTagManager[_0x2c7f6e(0x1c7)](_0x33abcb[_0x5d4f62][_0x2c7f6e(0x219)],_0x436797);return _0x33abcb;}static async[a85_0x3cdf8b(0x1d6)](_0x308d87,_0x380082,_0x4f5614=![]){const _0xe44053=a85_0x3cdf8b,_0x15274a={'PWmEB':function(_0x155e14,_0x6bda49){return _0x155e14!==_0x6bda49;},'CICqG':_0xe44053(0x1ec),'SQOOQ':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','qjSkT':_0xe44053(0x1d2),'uWjcQ':function(_0x2195a2,_0x3b2b71){return _0x2195a2===_0x3b2b71;},'ppiwS':_0xe44053(0x1f3),'DPXqQ':_0xe44053(0x1c2),'uzZfa':function(_0x59f68e,_0x2e9b06){return _0x59f68e(_0x2e9b06);},'lIMum':_0xe44053(0x20b),'DZKwt':function(_0x1d55f9){return _0x1d55f9();},'AeFnO':_0xe44053(0x237),'lyeQD':function(_0x3a3b06,_0x5dcfa1){return _0x3a3b06>_0x5dcfa1;},'MikWb':function(_0x5a7b23,_0x418dd5){return _0x5a7b23(_0x418dd5);},'ndwxi':_0xe44053(0x22d),'PnVKq':_0xe44053(0x1b1),'MkczN':_0xe44053(0x1fe),'epVoU':_0xe44053(0x1e3),'nFipv':_0xe44053(0x1ae),'prTbV':function(_0x149800,_0x3531f4){return _0x149800(_0x3531f4);},'hfWGE':'CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','FkEyd':function(_0x262976,_0x33fdc4){return _0x262976(_0x33fdc4);},'vmQXI':_0xe44053(0x1b7),'hlPnq':'./state/hookState','STBiu':_0xe44053(0x1be),'sCkyJ':function(_0x43f3ea,_0x16973f){return _0x43f3ea(_0x16973f);},'eZxiT':_0xe44053(0x1e0)};if(_0x15274a[_0xe44053(0x1c9)](typeof _0x308d87,_0x15274a[_0xe44053(0x1d9)])){logger[_0xe44053(0x22b)](_0x15274a['SQOOQ']);return;}if(_0x15274a[_0xe44053(0x1c9)](typeof _0x380082,_0x15274a['CICqG'])){logger[_0xe44053(0x22b)](_0x15274a[_0xe44053(0x1f7)]);return;}if(_0x15274a[_0xe44053(0x216)](_0x308d87[_0xe44053(0x1b6)](),'')){logger[_0xe44053(0x22b)](_0x15274a['ppiwS']);return;}if(_0x15274a[_0xe44053(0x216)](_0x380082[_0xe44053(0x1b6)](),'')){logger['debug'](_0x15274a[_0xe44053(0x217)]);return;}const _0x420dc5=helper[_0xe44053(0x1ff)](_0x380082);if(_0x4f5614){const _0x3255e1=_0x15274a[_0xe44053(0x223)](require,_0x15274a[_0xe44053(0x201)]),_0x781c1e=_0x3255e1[_0xe44053(0x1fc)](),_0x13e43e=_0x781c1e&&_0x781c1e[_0xe44053(0x1f2)][TestHubModule['MODULE_NAME']];if(_0x13e43e){const _0x1483e9=_0x13e43e?.[_0xe44053(0x230)]?.[_0xe44053(0x1b0)]()?.[_0xe44053(0x22f)];TestInfo['getTestUUID'](_0x1483e9);const _0x37afa3=TestInfo[_0xe44053(0x234)](_0x1483e9),_0x42fccd=_0x37afa3[TestFrameworkConstants[_0xe44053(0x1c8)]]||{};CustomTagManager[_0xe44053(0x213)](_0x42fccd,_0x308d87,_0x420dc5),_0x37afa3[TestFrameworkConstants[_0xe44053(0x1c8)]]=_0x42fccd,TestInfo[_0xe44053(0x214)](_0x1483e9,_0x37afa3);!this['buildLevelTags'][_0x1483e9]&&(this[_0xe44053(0x1dd)][_0x1483e9]={});this[_0xe44053(0x1dd)][_0x1483e9][_0x308d87]=CustomTagManager['mergeValues'](this[_0xe44053(0x1dd)][_0x1483e9][_0x308d87],_0x420dc5);try{const _0x321d42=_0x15274a[_0xe44053(0x1f8)](getBuildTagsRunId);if(_0x321d42){const _0x21428d={};for(const [_0x3656f6,_0x9f1100]of Object[_0xe44053(0x228)](this['buildLevelTags'][_0x1483e9]||{})){_0x21428d[_0x3656f6]={'field_type':_0x15274a[_0xe44053(0x232)],'values':Array[_0xe44053(0x21c)](_0x9f1100)?[..._0x9f1100]:[]};}_0x15274a[_0xe44053(0x224)](Object[_0xe44053(0x1f4)](_0x21428d)[_0xe44053(0x227)],0x0)&&await fs[_0xe44053(0x1d5)]['writeFile'](_0x15274a['MikWb'](getBuildTagsFilePath,_0x321d42),JSON[_0xe44053(0x1e4)](_0x21428d));}else logger[_0xe44053(0x22b)](_0x15274a[_0xe44053(0x1de)]);}catch(_0x4c4c58){logger['debug'](_0xe44053(0x21f)+(_0x4c4c58&&_0x4c4c58[_0xe44053(0x1eb)]?_0x4c4c58[_0xe44053(0x1eb)]:_0x4c4c58));}}}else{let _0x1a4477;const _0x2d1b6d=global[_0xe44053(0x231)];let _0x4b2462=![];if(_0x2d1b6d&&_0x2d1b6d['includes'](_0x15274a[_0xe44053(0x1d1)]))_0x4b2462=!![],_0x1a4477=_0x2d1b6d;else try{const _0x2b2e77=_0x15274a['MikWb'](require,_0x15274a[_0xe44053(0x1fa)]),_0x5b7b24=_0x15274a[_0xe44053(0x223)](require,_0x15274a[_0xe44053(0x201)]);if(_0x5b7b24['getInstance']()[_0xe44053(0x1f9)]()){const _0x272302=_0x2b2e77[_0xe44053(0x1b5)]();if(_0x15274a[_0xe44053(0x216)](_0x272302?.[_0xe44053(0x1ed)]?.['toLowerCase'](),_0x15274a['epVoU'])){const _0x3b42d7=AutomationFramework[_0xe44053(0x202)]();_0x1a4477=AutomationFramework[_0xe44053(0x1ba)](_0x3b42d7,PlaywrightDriverModule[_0xe44053(0x1b9)],''),_0x1a4477&&_0x1a4477[_0xe44053(0x21d)](_0x15274a['PnVKq'])&&(_0x4b2462=!![]);}}}catch(_0x430a10){logger[_0xe44053(0x22b)](_0xe44053(0x1d7)+_0x430a10);}if(_0x4b2462){if(!_0x1a4477)throw new Error(_0x15274a['nFipv']);const _0x3b8e69=_0x15274a[_0xe44053(0x1ce)](require,_0x15274a[_0xe44053(0x201)]),_0x125433=_0x3b8e69['getInstance']()['getTestFramework']();if(!_0x125433)throw new Error(_0x15274a['hfWGE']);const _0x35fb37=_0x15274a['FkEyd'](require,_0x15274a['vmQXI']),_0x577740=_0x15274a[_0xe44053(0x1cf)](require,_0x15274a['hlPnq']),_0x523fa9=_0x125433[_0xe44053(0x22c)](_0x35fb37[_0xe44053(0x1e8)],_0x577740[_0xe44053(0x1fd)]);if(!_0x523fa9)throw new Error(_0x15274a[_0xe44053(0x1d8)]);const _0x488462=_0x523fa9[_0xe44053(0x209)]()['get'](_0x1a4477)||{},_0x48abfc=_0x488462[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};logger[_0xe44053(0x22b)](_0xe44053(0x22a)+_0x1a4477+_0xe44053(0x210)+_0x308d87+_0xe44053(0x221)+JSON[_0xe44053(0x1e4)](_0x420dc5)+_0xe44053(0x1bc)+JSON[_0xe44053(0x1e4)](_0x48abfc)),CustomTagManager[_0xe44053(0x213)](_0x48abfc,_0x308d87,_0x420dc5),logger[_0xe44053(0x22b)](_0xe44053(0x1bd)+_0x308d87+_0xe44053(0x229)+JSON[_0xe44053(0x1e4)](_0x48abfc[_0x308d87][_0xe44053(0x219)]));const _0x85978b={[TestFrameworkConstants[_0xe44053(0x1c8)]]:_0x48abfc},_0x3c5ce5={};_0x3c5ce5[_0x1a4477]=_0x85978b,_0x523fa9[_0xe44053(0x222)](_0x3c5ce5),logger[_0xe44053(0x22b)]('[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier='+_0x1a4477+_0xe44053(0x20e)+JSON[_0xe44053(0x1e4)](_0x48abfc)),!this['testLevelTags'][_0x1a4477]&&(this['testLevelTags'][_0x1a4477]={}),this[_0xe44053(0x1df)][_0x1a4477][_0x308d87]=CustomTagManager[_0xe44053(0x1c7)](this[_0xe44053(0x1df)][_0x1a4477][_0x308d87],_0x420dc5);}else{const _0x5bfbfe=global[_0xe44053(0x215)]?.[_0xe44053(0x20d)]?.[_0xe44053(0x203)];if(!_0x5bfbfe){const _0xe51d2a=AutomationFramework[_0xe44053(0x202)]();_0x1a4477=AutomationFramework[_0xe44053(0x1ba)](_0xe51d2a,PlaywrightDriverModule[_0xe44053(0x1b9)],'');if(!_0x1a4477)try{const _0x9b2c7f=_0x15274a[_0xe44053(0x1ef)](require,_0x15274a[_0xe44053(0x201)]),_0x44a221=_0x9b2c7f['getInstance'](),_0x393ad4=_0x44a221&&_0x44a221['getTestFramework']();_0x1a4477=_0x393ad4&&_0x15274a[_0xe44053(0x216)](typeof _0x393ad4[_0xe44053(0x1fb)],_0x15274a['eZxiT'])&&_0x393ad4[_0xe44053(0x1fb)]()||_0x1a4477;}catch(_0x1aa4c5){logger[_0xe44053(0x22b)](_0xe44053(0x22e)+(_0x1aa4c5&&_0x1aa4c5[_0xe44053(0x1eb)]));}}else _0x1a4477=TestInfo[_0xe44053(0x1c1)](_0x5bfbfe,_0x5bfbfe[_0xe44053(0x1ca)]);const _0x38402e=TestInfo[_0xe44053(0x234)](_0x1a4477),_0x3a279c=_0x38402e[TestFrameworkConstants[_0xe44053(0x1c8)]]||{};CustomTagManager[_0xe44053(0x213)](_0x3a279c,_0x308d87,_0x420dc5),_0x38402e[TestFrameworkConstants[_0xe44053(0x1c8)]]=_0x3a279c,TestInfo[_0xe44053(0x214)](_0x1a4477,_0x38402e),!this[_0xe44053(0x1df)][_0x1a4477]&&(this[_0xe44053(0x1df)][_0x1a4477]={}),this['testLevelTags'][_0x1a4477][_0x308d87]=CustomTagManager[_0xe44053(0x1c7)](this[_0xe44053(0x1df)][_0x1a4477][_0x308d87],_0x420dc5);}}}static[a85_0x3cdf8b(0x1e9)](){const _0x2e7d5e=a85_0x3cdf8b,_0x3ca4f8={...this[_0x2e7d5e(0x1dd)]};return _0x3ca4f8;}static[a85_0x3cdf8b(0x225)](){const _0x347f18=a85_0x3cdf8b,_0x48ba97={...this[_0x347f18(0x1df)]};return _0x48ba97;}static['clearTags'](){const _0x4c325f=a85_0x3cdf8b;this[_0x4c325f(0x1dd)]={},this[_0x4c325f(0x1df)]={};}static[a85_0x3cdf8b(0x1e2)](_0x1711db,_0x16295e){const _0x1633a9=a85_0x3cdf8b,_0xb707e5={};_0xb707e5[_0x1633a9(0x235)]=function(_0x50636c,_0x22245e){return _0x50636c||_0x22245e;};const _0x1b127a=_0xb707e5;if(!_0x1711db)return;!this[_0x1633a9(0x1dd)][_0x1711db]&&(this[_0x1633a9(0x1dd)][_0x1711db]={});for(const [_0x4d1502,_0x2ea77f]of Object[_0x1633a9(0x228)](_0x1b127a[_0x1633a9(0x235)](_0x16295e,{}))){if(!_0x2ea77f||!Array[_0x1633a9(0x21c)](_0x2ea77f[_0x1633a9(0x219)]))continue;this[_0x1633a9(0x1dd)][_0x1711db][_0x4d1502]=CustomTagManager[_0x1633a9(0x1c7)](this[_0x1633a9(0x1dd)][_0x1711db][_0x4d1502],_0x2ea77f['values']);}}static[a85_0x3cdf8b(0x1b2)](_0x599049,_0x55d206){const _0x1e1352=a85_0x3cdf8b,_0x4ed372={};_0x4ed372['vCedL']='CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate',_0x4ed372[_0x1e1352(0x1e1)]=function(_0x3876aa,_0x288d0f){return _0x3876aa*_0x288d0f;},_0x4ed372[_0x1e1352(0x1f5)]=function(_0x3a72c5,_0x8a2ae7){return _0x3a72c5*_0x8a2ae7;},_0x4ed372[_0x1e1352(0x21b)]=function(_0x140ab1,_0x34af0c){return _0x140ab1>_0x34af0c;},_0x4ed372[_0x1e1352(0x1e6)]=function(_0x47d705,_0x4ba056){return _0x47d705-_0x4ba056;},_0x4ed372[_0x1e1352(0x1e5)]='utf8';const _0x47b4af=_0x4ed372;if(!_0x599049)return logger[_0x1e1352(0x22b)](_0x47b4af['vCedL']),0x0;let _0x5b74cb;try{_0x5b74cb=os['tmpdir']();}catch(_0x14928e){return logger['debug']('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20'+_0x14928e),0x0;}let _0x234290;try{_0x234290=fs[_0x1e1352(0x1dc)](_0x5b74cb);}catch(_0x2debad){return logger[_0x1e1352(0x22b)](_0x1e1352(0x20c)+_0x2debad),0x0;}const _0x443e13=''+BUILD_TAG_FILE_PREFIX+_0x599049+'_',_0x270aa4=_0x234290[_0x1e1352(0x1b4)](_0x30fcd6=>_0x30fcd6[_0x1e1352(0x1db)](_0x443e13)&&_0x30fcd6['endsWith']('.json')),_0x556c57=_0x47b4af[_0x1e1352(0x1e1)](_0x47b4af[_0x1e1352(0x1e1)](_0x47b4af[_0x1e1352(0x1f5)](0x2,0x3c),0x3c),0x3e8);let _0x20f65c=0x0;for(const _0x51e3c9 of _0x270aa4){const _0x2b1f49=path[_0x1e1352(0x20f)](_0x5b74cb,_0x51e3c9);try{const _0x5eb6c6=fs[_0x1e1352(0x220)](_0x2b1f49);if(_0x47b4af[_0x1e1352(0x21b)](_0x47b4af['HsOWv'](Date[_0x1e1352(0x1c6)](),_0x5eb6c6[_0x1e1352(0x1ea)]),_0x556c57)){logger['debug'](_0x1e1352(0x200)+_0x556c57+_0x1e1352(0x1c0)+_0x51e3c9);try{fs[_0x1e1352(0x1cd)](_0x2b1f49);}catch(_0x2f1627){logger[_0x1e1352(0x22b)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20'+_0x51e3c9+':\x20'+(_0x2f1627&&_0x2f1627[_0x1e1352(0x1eb)]?_0x2f1627[_0x1e1352(0x1eb)]:_0x2f1627));}continue;}const _0x4e3397=fs[_0x1e1352(0x204)](_0x2b1f49,_0x47b4af[_0x1e1352(0x1e5)]),_0x1ab027=JSON[_0x1e1352(0x1b8)](_0x4e3397);this['mergeBuildLevelTags'](_0x55d206,_0x1ab027),_0x20f65c+=0x1;}catch(_0x1b526e){logger[_0x1e1352(0x22b)](_0x1e1352(0x1cc)+_0x51e3c9+':\x20'+(_0x1b526e&&_0x1b526e[_0x1e1352(0x1eb)]?_0x1b526e[_0x1e1352(0x1eb)]:_0x1b526e));}try{fs[_0x1e1352(0x1cd)](_0x2b1f49);}catch(_0x2d8ac5){logger[_0x1e1352(0x22b)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20'+_0x51e3c9+':\x20'+(_0x2d8ac5&&_0x2d8ac5['message']?_0x2d8ac5[_0x1e1352(0x1eb)]:_0x2d8ac5));}}return _0x20f65c;}}function a85_0x19ee(){const _0x1e676c=['ndwxi','testLevelTags','function','QLOCB','mergeBuildLevelTags','jest','stringify','nQstI','HsOWv','10oDxrDN','TEST','getBuildLevelTags','mtimeMs','message','string','name','exports','sCkyJ','250210sTBJyG','null','modules','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','keys','mfbkg','tmpdir','qjSkT','DZKwt','isRunning','MkczN','getCurrentTestUUID','getInstance','POST','./cliUtils','parseCommaSeparatedValues','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','lIMum','getTrackedInstance','testInfo','readFileSync','../../helpers/classLogger','2600612wiLeeq','../../helpers/helper','CustomTagManager','getAllData','72248uUqnZn','./browserstackCLI','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','currentTest',',\x20finalTags=','join',',\x20key=','333JGFEqL','getBuildTagsFilePath','mergeIntoTags','setTestDetails','__workerDetails','uWjcQ','DPXqQ','./modules/playwrightDriverModule','values','BUILD_TAG_FILE_PREFIX','FeSOY','isArray','includes','BROWSERSTACK_TESTHUB_UUID','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','statSync',',\x20values=','addMultipleEntries','uzZfa','lyeQD','getTestLevelTags','24523389AvNLTv','length','entries','\x20->\x20values=','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','debug','resolveInstance','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','CustomTagManager.setCustomTags:\x20node-generic\x20testId\x20fallback\x20failed:\x20','buildHashedId','testhubConfig','__jestCurrentTestIdentifier','AeFnO','pid','getTestDetails','ISJxe','getBuildTagsRunId','multi_dropdown','bstack_build_tags_','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','_testInternals','toObject',':jest-','aggregateBuildLevelTagsFromTmp','env','filter','getTestFrameworkDetail','trim','./state/testFrameworkState','parse','KEY_TEST_ID','getState','field_type',',\x20existingTags=','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','1271676RQUEcM','ms)\x20','getTestIdentifierFromTestInfo','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','ywYtJ','1305jXIBYx','2728008McneCW','now','mergeValues','KEY_CUSTOM_TAGS','PWmEB','retry','.json','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','unlinkSync','prTbV','MikWb','from','PnVKq','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','134qDjjeN','GmJiC','promises','setCustomTags','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','STBiu','CICqG','7mUrRVa','startsWith','readdirSync','buildLevelTags'];a85_0x19ee=function(){return _0x1e676c;};return a85_0x19ee();}function a85_0x3a34(_0x4ad045,_0x402c20){const _0x19ee9a=a85_0x19ee();return a85_0x3a34=function(_0x3a34ee,_0x5adbeb){_0x3a34ee=_0x3a34ee-0x1ad;let _0x253fff=_0x19ee9a[_0x3a34ee];return _0x253fff;},a85_0x3a34(_0x4ad045,_0x402c20);}const a85_0x19b1fb={};a85_0x19b1fb[a85_0x3cdf8b(0x236)]=getBuildTagsRunId,a85_0x19b1fb[a85_0x3cdf8b(0x212)]=getBuildTagsFilePath,a85_0x19b1fb[a85_0x3cdf8b(0x21a)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a85_0x3cdf8b(0x1af)]=a85_0x19b1fb,module[a85_0x3cdf8b(0x1ee)]=CustomTagManager;
1
+ 'use strict';const a86_0x14adf6=a86_0xe052;(function(_0x3ed66c,_0xc40562){const _0x3816b6=a86_0xe052,_0xa76eb1=_0x3ed66c();while(!![]){try{const _0x49b74b=parseInt(_0x3816b6(0x1c9))/0x1*(parseInt(_0x3816b6(0x240))/0x2)+parseInt(_0x3816b6(0x239))/0x3*(parseInt(_0x3816b6(0x1f6))/0x4)+-parseInt(_0x3816b6(0x22c))/0x5+parseInt(_0x3816b6(0x228))/0x6*(-parseInt(_0x3816b6(0x1dd))/0x7)+-parseInt(_0x3816b6(0x24c))/0x8+-parseInt(_0x3816b6(0x1ce))/0x9*(-parseInt(_0x3816b6(0x1f2))/0xa)+-parseInt(_0x3816b6(0x23e))/0xb*(parseInt(_0x3816b6(0x20b))/0xc);if(_0x49b74b===_0xc40562)break;else _0xa76eb1['push'](_0xa76eb1['shift']());}catch(_0x593fc8){_0xa76eb1['push'](_0xa76eb1['shift']());}}}(a86_0x367e,0x1afbb));const fs=require('fs'),os=require('os'),path=require(a86_0x14adf6(0x1e3)),helper=require(a86_0x14adf6(0x231)),AutomationFramework=require(a86_0x14adf6(0x22a)),TestFrameworkConstants=require(a86_0x14adf6(0x249)),PlaywrightDriverModule=require('./modules/playwrightDriverModule'),TestInfo=require(a86_0x14adf6(0x1d3)),TestHubModule=require(a86_0x14adf6(0x1dc)),{createClassLogger}=require('../../helpers/classLogger'),logger=createClassLogger(a86_0x14adf6(0x222)),BUILD_TAG_FILE_PREFIX=a86_0x14adf6(0x232);function getBuildTagsRunId(){const _0x450e65=a86_0x14adf6,_0x3e3cbc={};_0x3e3cbc[_0x450e65(0x223)]=function(_0x302f13,_0x1547e8){return _0x302f13===_0x1547e8;},_0x3e3cbc[_0x450e65(0x1c5)]=_0x450e65(0x24d);const _0x191795=_0x3e3cbc,_0x5732e3=process['env'][_0x450e65(0x203)];if(!_0x5732e3||_0x191795[_0x450e65(0x223)](_0x5732e3,_0x191795[_0x450e65(0x1c5)]))return null;return _0x5732e3;}function a86_0x367e(){const _0x554a82=['128053QwGlrf','currentTest','endsWith','./state/hookState','now','27cAgIFH','entries','isUol','getTestUUID','CustomTagManager.setCustomTags:\x20node-generic\x20testId\x20fallback\x20failed:\x20','./TestInfo','from','field_type','./browserstackCLI','./cliUtils','multi_dropdown','getBuildTagsFilePath','dHxcd','BGBME','./modules/testhubModule','181951xlZtkc','yNoso','MLEEn','mergeValues',',\x20values=','FKZjc','path','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','TEST','setCustomTags','gyNHV','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','GiFuJ','fNIyX','getTestIdentifierFromTestInfo','isArray','writeFile','TSvli','addMultipleEntries','GUvXw','609430CHjZvX','message','getCurrentTestUUID','rLZcL','26956tVOsbM','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','OiQKz','KEY_CUSTOM_TAGS','clearTags','getTrackedInstance','kNcVM','Ljafb','zbSvd','buildHashedId','ms)\x20','getState','testhubConfig','BROWSERSTACK_TESTHUB_UUID','get','getTestFrameworkDetail','trim','includes','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','length','stringify','1300548bPkMdN','oMZje','promises','getTestDetails','name','testLevelTags','pid','getInstance','toObject','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','buildLevelTags','getTestFramework','./state/testFrameworkState','iWpWF','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','parse','jest','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','setTestDetails','statSync','__workerDetails','Yngia','__jestCurrentTestIdentifier','CustomTagManager','BmsJe','keys','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','function','TgNEL','30rOcNVO','mbley','./framework/automationFramework','MivSD','391070aCexTY','unlinkSync',',\x20key=','mtimeMs','KEY_TEST_ID','../../helpers/helper','bstack_build_tags_','values','OWSMo','mergeIntoTags','modules','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright',':jest-','93NcxWgL','getBuildTagsRunId','debug','filter','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','11rNtvPx','string','2mIryys','tMcPF','mergeBuildLevelTags','qZRhq','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','aggregateBuildLevelTagsFromTmp',',\x20finalTags=','cwHtP','retry','./framework/constants/testFrameworkConstants','.json','tmpdir','741680VugeLi','null','toLowerCase','_testInternals','parseCommaSeparatedValues','join','readFileSync','REWgh','utf8','TWLWR','TqgdN'];a86_0x367e=function(){return _0x554a82;};return a86_0x367e();}function getBuildTagsFilePath(_0x88dafc){const _0x58e91b=a86_0x14adf6;return path[_0x58e91b(0x251)](os[_0x58e91b(0x24b)](),''+BUILD_TAG_FILE_PREFIX+_0x88dafc+'_'+process[_0x58e91b(0x211)]+_0x58e91b(0x24a));}class CustomTagManager{static [a86_0x14adf6(0x215)]={};static [a86_0x14adf6(0x210)]={};static[a86_0x14adf6(0x1e0)](_0x341461,_0x21caa5){const _0x41bf23=a86_0x14adf6;return Array[_0x41bf23(0x1d4)](new Set([..._0x341461||[],..._0x21caa5||[]]));}static[a86_0x14adf6(0x235)](_0x152f82,_0x3880a0,_0x150212){const _0x310dad=a86_0x14adf6,_0x3339be={};_0x3339be[_0x310dad(0x1c8)]=_0x310dad(0x1d8);const _0x5499c3=_0x3339be;if(!_0x152f82[_0x3880a0]){const _0x7fff6e={};_0x7fff6e[_0x310dad(0x1d5)]=_0x5499c3['TqgdN'],_0x7fff6e['values']=[..._0x150212||[]],_0x152f82[_0x3880a0]=_0x7fff6e;}else!_0x152f82[_0x3880a0]['field_type']&&(_0x152f82[_0x3880a0][_0x310dad(0x1d5)]=_0x5499c3[_0x310dad(0x1c8)]),!Array[_0x310dad(0x1ed)](_0x152f82[_0x3880a0]['values'])&&(_0x152f82[_0x3880a0]['values']=[]),_0x152f82[_0x3880a0][_0x310dad(0x233)]=CustomTagManager['mergeValues'](_0x152f82[_0x3880a0]['values'],_0x150212);return _0x152f82;}static async[a86_0x14adf6(0x1e7)](_0x3cb37d,_0x4301a5,_0x177e5e=![]){const _0x465ba9=a86_0x14adf6,_0x3b49d6={'TWLWR':function(_0x4d7d14,_0x2a811c){return _0x4d7d14!==_0x2a811c;},'MLEEn':_0x465ba9(0x23f),'BGBME':_0x465ba9(0x208),'MKSOX':_0x465ba9(0x1e9),'FKZjc':function(_0x4c5cf6,_0x31f9ae){return _0x4c5cf6===_0x31f9ae;},'tMcPF':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','zbSvd':_0x465ba9(0x1f7),'oMZje':function(_0xe3ae7,_0x1333c4){return _0xe3ae7(_0x1333c4);},'TgNEL':_0x465ba9(0x1d6),'qZRhq':function(_0x36208a){return _0x36208a();},'oQFCV':'multi_dropdown','dHxcd':function(_0x598192,_0x8d4eb3){return _0x598192>_0x8d4eb3;},'isUol':function(_0x1f5996,_0x4d92ab){return _0x1f5996(_0x4d92ab);},'rLZcL':'CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','OiQKz':_0x465ba9(0x238),'Ljafb':_0x465ba9(0x1d7),'gyNHV':function(_0x5f4ff6,_0x454171){return _0x5f4ff6===_0x454171;},'rafrR':_0x465ba9(0x21b),'VGVeN':_0x465ba9(0x219),'OWSMo':function(_0x3c71fa,_0x287f09){return _0x3c71fa(_0x287f09);},'RbQUd':'CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','kNcVM':function(_0x1b4ddd,_0x58fdf0){return _0x1b4ddd(_0x58fdf0);},'xCwGo':_0x465ba9(0x217),'fNIyX':_0x465ba9(0x1cc),'GiFuJ':_0x465ba9(0x237),'iWpWF':function(_0x4e82a4,_0x4c0328){return _0x4e82a4===_0x4c0328;},'Yngia':_0x465ba9(0x226)};if(_0x3b49d6[_0x465ba9(0x1c7)](typeof _0x3cb37d,_0x3b49d6[_0x465ba9(0x1df)])){logger['debug'](_0x3b49d6[_0x465ba9(0x1db)]);return;}if(_0x3b49d6[_0x465ba9(0x1c7)](typeof _0x4301a5,_0x3b49d6[_0x465ba9(0x1df)])){logger[_0x465ba9(0x23b)](_0x3b49d6['MKSOX']);return;}if(_0x3b49d6[_0x465ba9(0x1e2)](_0x3cb37d[_0x465ba9(0x206)](),'')){logger[_0x465ba9(0x23b)](_0x3b49d6[_0x465ba9(0x241)]);return;}if(_0x3b49d6['FKZjc'](_0x4301a5[_0x465ba9(0x206)](),'')){logger['debug'](_0x3b49d6[_0x465ba9(0x1fe)]);return;}const _0x121e66=helper[_0x465ba9(0x250)](_0x4301a5);if(_0x177e5e){const _0x3c6f7b=_0x3b49d6[_0x465ba9(0x20c)](require,_0x3b49d6[_0x465ba9(0x227)]),_0x6ed2e3=_0x3c6f7b[_0x465ba9(0x212)](),_0x22578c=_0x6ed2e3&&_0x6ed2e3[_0x465ba9(0x236)][TestHubModule['MODULE_NAME']];if(_0x22578c){const _0x1f1381=_0x22578c?.[_0x465ba9(0x202)]?.[_0x465ba9(0x213)]()?.[_0x465ba9(0x1ff)];TestInfo[_0x465ba9(0x1d1)](_0x1f1381);const _0x431b7d=TestInfo[_0x465ba9(0x20e)](_0x1f1381),_0x2f6a2e=_0x431b7d[TestFrameworkConstants[_0x465ba9(0x1f9)]]||{};CustomTagManager[_0x465ba9(0x235)](_0x2f6a2e,_0x3cb37d,_0x121e66),_0x431b7d[TestFrameworkConstants[_0x465ba9(0x1f9)]]=_0x2f6a2e,TestInfo[_0x465ba9(0x21d)](_0x1f1381,_0x431b7d);!this[_0x465ba9(0x215)][_0x1f1381]&&(this[_0x465ba9(0x215)][_0x1f1381]={});this['buildLevelTags'][_0x1f1381][_0x3cb37d]=CustomTagManager[_0x465ba9(0x1e0)](this['buildLevelTags'][_0x1f1381][_0x3cb37d],_0x121e66);try{const _0x5eb5c5=_0x3b49d6[_0x465ba9(0x243)](getBuildTagsRunId);if(_0x5eb5c5){const _0x5f3737={};for(const [_0x2ee6ea,_0x3286b6]of Object['entries'](this[_0x465ba9(0x215)][_0x1f1381]||{})){_0x5f3737[_0x2ee6ea]={'field_type':_0x3b49d6['oQFCV'],'values':Array[_0x465ba9(0x1ed)](_0x3286b6)?[..._0x3286b6]:[]};}_0x3b49d6[_0x465ba9(0x1da)](Object[_0x465ba9(0x224)](_0x5f3737)[_0x465ba9(0x209)],0x0)&&await fs[_0x465ba9(0x20d)][_0x465ba9(0x1ee)](_0x3b49d6[_0x465ba9(0x1d0)](getBuildTagsFilePath,_0x5eb5c5),JSON['stringify'](_0x5f3737));}else logger[_0x465ba9(0x23b)](_0x3b49d6[_0x465ba9(0x1f5)]);}catch(_0xd42eb4){logger[_0x465ba9(0x23b)](_0x465ba9(0x1e5)+(_0xd42eb4&&_0xd42eb4['message']?_0xd42eb4[_0x465ba9(0x1f3)]:_0xd42eb4));}}}else{let _0x206fe6;const _0x2917c1=global[_0x465ba9(0x221)];let _0x45fc4e=![];if(_0x2917c1&&_0x2917c1[_0x465ba9(0x207)](_0x3b49d6[_0x465ba9(0x1f8)]))_0x45fc4e=!![],_0x206fe6=_0x2917c1;else try{const _0x1e1ff4=_0x3b49d6[_0x465ba9(0x20c)](require,_0x3b49d6[_0x465ba9(0x1fd)]),_0x5a760d=_0x3b49d6[_0x465ba9(0x20c)](require,_0x3b49d6['TgNEL']);if(_0x5a760d[_0x465ba9(0x212)]()['isRunning']()){const _0x19c782=_0x1e1ff4[_0x465ba9(0x205)]();if(_0x3b49d6[_0x465ba9(0x1e8)](_0x19c782?.[_0x465ba9(0x20f)]?.[_0x465ba9(0x24e)](),_0x3b49d6['rafrR'])){const _0xf8b62c=AutomationFramework[_0x465ba9(0x1fb)]();_0x206fe6=AutomationFramework[_0x465ba9(0x201)](_0xf8b62c,PlaywrightDriverModule[_0x465ba9(0x230)],''),_0x206fe6&&_0x206fe6[_0x465ba9(0x207)](_0x3b49d6[_0x465ba9(0x1f8)])&&(_0x45fc4e=!![]);}}}catch(_0x48b155){logger['debug']('CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20'+_0x48b155);}if(_0x45fc4e){if(!_0x206fe6)throw new Error(_0x3b49d6['VGVeN']);const _0x2e8098=_0x3b49d6[_0x465ba9(0x234)](require,_0x3b49d6[_0x465ba9(0x227)]),_0x1b161e=_0x2e8098[_0x465ba9(0x212)]()[_0x465ba9(0x216)]();if(!_0x1b161e)throw new Error(_0x3b49d6['RbQUd']);const _0x5a10dd=_0x3b49d6['kNcVM'](require,_0x3b49d6['xCwGo']),_0x235959=_0x3b49d6[_0x465ba9(0x20c)](require,_0x3b49d6[_0x465ba9(0x1eb)]),_0x39d03c=_0x1b161e['resolveInstance'](_0x5a10dd[_0x465ba9(0x1e6)],_0x235959['POST']);if(!_0x39d03c)throw new Error(_0x3b49d6[_0x465ba9(0x1ea)]);const _0x358f9e=_0x39d03c['getAllData']()[_0x465ba9(0x204)](_0x206fe6)||{},_0x516832=_0x358f9e[TestFrameworkConstants[_0x465ba9(0x1f9)]]||{};logger[_0x465ba9(0x23b)](_0x465ba9(0x244)+_0x206fe6+_0x465ba9(0x22e)+_0x3cb37d+_0x465ba9(0x1e1)+JSON['stringify'](_0x121e66)+',\x20existingTags='+JSON[_0x465ba9(0x20a)](_0x516832)),CustomTagManager[_0x465ba9(0x235)](_0x516832,_0x3cb37d,_0x121e66),logger[_0x465ba9(0x23b)]('[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key='+_0x3cb37d+'\x20->\x20values='+JSON[_0x465ba9(0x20a)](_0x516832[_0x3cb37d]['values']));const _0x57a51c={[TestFrameworkConstants[_0x465ba9(0x1f9)]]:_0x516832},_0x2724c0={};_0x2724c0[_0x206fe6]=_0x57a51c,_0x39d03c[_0x465ba9(0x1f0)](_0x2724c0),logger[_0x465ba9(0x23b)]('[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier='+_0x206fe6+_0x465ba9(0x246)+JSON[_0x465ba9(0x20a)](_0x516832)),!this[_0x465ba9(0x210)][_0x206fe6]&&(this[_0x465ba9(0x210)][_0x206fe6]={}),this[_0x465ba9(0x210)][_0x206fe6][_0x3cb37d]=CustomTagManager[_0x465ba9(0x1e0)](this['testLevelTags'][_0x206fe6][_0x3cb37d],_0x121e66);}else{const _0x2b26ce=global[_0x465ba9(0x21f)]?.[_0x465ba9(0x1ca)]?.['testInfo'];if(!_0x2b26ce){const _0x927eaa=AutomationFramework[_0x465ba9(0x1fb)]();_0x206fe6=AutomationFramework[_0x465ba9(0x201)](_0x927eaa,PlaywrightDriverModule['KEY_TEST_ID'],'');if(!_0x206fe6)try{const _0x505d36=_0x3b49d6[_0x465ba9(0x1fc)](require,_0x3b49d6[_0x465ba9(0x227)]),_0x55dcbe=_0x505d36[_0x465ba9(0x212)](),_0x274893=_0x55dcbe&&_0x55dcbe[_0x465ba9(0x216)]();_0x206fe6=_0x274893&&_0x3b49d6[_0x465ba9(0x218)](typeof _0x274893['getCurrentTestUUID'],_0x3b49d6[_0x465ba9(0x220)])&&_0x274893[_0x465ba9(0x1f4)]()||_0x206fe6;}catch(_0x423031){logger[_0x465ba9(0x23b)](_0x465ba9(0x1d2)+(_0x423031&&_0x423031[_0x465ba9(0x1f3)]));}}else _0x206fe6=TestInfo[_0x465ba9(0x1ec)](_0x2b26ce,_0x2b26ce[_0x465ba9(0x248)]);const _0x103704=TestInfo['getTestDetails'](_0x206fe6),_0x50cb6c=_0x103704[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};CustomTagManager[_0x465ba9(0x235)](_0x50cb6c,_0x3cb37d,_0x121e66),_0x103704[TestFrameworkConstants[_0x465ba9(0x1f9)]]=_0x50cb6c,TestInfo[_0x465ba9(0x21d)](_0x206fe6,_0x103704),!this[_0x465ba9(0x210)][_0x206fe6]&&(this[_0x465ba9(0x210)][_0x206fe6]={}),this[_0x465ba9(0x210)][_0x206fe6][_0x3cb37d]=CustomTagManager[_0x465ba9(0x1e0)](this[_0x465ba9(0x210)][_0x206fe6][_0x3cb37d],_0x121e66);}}}static['getBuildLevelTags'](){const _0x329869=a86_0x14adf6,_0x5e35d8={...this[_0x329869(0x215)]};return _0x5e35d8;}static['getTestLevelTags'](){const _0x384303=a86_0x14adf6,_0x52eee9={...this[_0x384303(0x210)]};return _0x52eee9;}static[a86_0x14adf6(0x1fa)](){const _0x38456d=a86_0x14adf6;this[_0x38456d(0x215)]={},this[_0x38456d(0x210)]={};}static[a86_0x14adf6(0x242)](_0x125a4b,_0x274d99){const _0x4b4fa3=a86_0x14adf6,_0x58ef69={};_0x58ef69[_0x4b4fa3(0x1de)]=function(_0x16c95d,_0x2475c6){return _0x16c95d||_0x2475c6;};const _0x70849a=_0x58ef69;if(!_0x125a4b)return;!this[_0x4b4fa3(0x215)][_0x125a4b]&&(this['buildLevelTags'][_0x125a4b]={});for(const [_0xb3111c,_0x47ccad]of Object[_0x4b4fa3(0x1cf)](_0x70849a[_0x4b4fa3(0x1de)](_0x274d99,{}))){if(!_0x47ccad||!Array[_0x4b4fa3(0x1ed)](_0x47ccad[_0x4b4fa3(0x233)]))continue;this[_0x4b4fa3(0x215)][_0x125a4b][_0xb3111c]=CustomTagManager[_0x4b4fa3(0x1e0)](this[_0x4b4fa3(0x215)][_0x125a4b][_0xb3111c],_0x47ccad[_0x4b4fa3(0x233)]);}}static[a86_0x14adf6(0x245)](_0x14d1d0,_0x4f838c){const _0x74a122=a86_0x14adf6,_0xed4784={};_0xed4784['TSvli']='CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate',_0xed4784[_0x74a122(0x247)]=function(_0x378969,_0x3dbd75){return _0x378969*_0x3dbd75;},_0xed4784[_0x74a122(0x1f1)]=function(_0x4d12d9,_0x3ff4e6){return _0x4d12d9>_0x3ff4e6;},_0xed4784[_0x74a122(0x22b)]=function(_0x1c32b9,_0x3c4d65){return _0x1c32b9-_0x3c4d65;},_0xed4784[_0x74a122(0x229)]=_0x74a122(0x1c6);const _0x41585e=_0xed4784;if(!_0x14d1d0)return logger[_0x74a122(0x23b)](_0x41585e[_0x74a122(0x1ef)]),0x0;let _0x5a7121;try{_0x5a7121=os['tmpdir']();}catch(_0x5af655){return logger[_0x74a122(0x23b)](_0x74a122(0x214)+_0x5af655),0x0;}let _0xf06ada;try{_0xf06ada=fs['readdirSync'](_0x5a7121);}catch(_0x46c5a2){return logger[_0x74a122(0x23b)](_0x74a122(0x23d)+_0x46c5a2),0x0;}const _0x915b7=''+BUILD_TAG_FILE_PREFIX+_0x14d1d0+'_',_0x12b39c=_0xf06ada[_0x74a122(0x23c)](_0x4ccab6=>_0x4ccab6['startsWith'](_0x915b7)&&_0x4ccab6[_0x74a122(0x1cb)](_0x74a122(0x24a))),_0x46384f=_0x41585e[_0x74a122(0x247)](_0x41585e['cwHtP'](_0x41585e[_0x74a122(0x247)](0x2,0x3c),0x3c),0x3e8);let _0x553d1c=0x0;for(const _0x5b6eb5 of _0x12b39c){const _0x4b28ae=path[_0x74a122(0x251)](_0x5a7121,_0x5b6eb5);try{const _0xc25ed2=fs[_0x74a122(0x21e)](_0x4b28ae);if(_0x41585e['GUvXw'](_0x41585e[_0x74a122(0x22b)](Date[_0x74a122(0x1cd)](),_0xc25ed2[_0x74a122(0x22f)]),_0x46384f)){logger[_0x74a122(0x23b)](_0x74a122(0x21c)+_0x46384f+_0x74a122(0x200)+_0x5b6eb5);try{fs[_0x74a122(0x22d)](_0x4b28ae);}catch(_0x47684a){logger['debug'](_0x74a122(0x1e4)+_0x5b6eb5+':\x20'+(_0x47684a&&_0x47684a[_0x74a122(0x1f3)]?_0x47684a['message']:_0x47684a));}continue;}const _0x296bee=fs[_0x74a122(0x252)](_0x4b28ae,_0x41585e[_0x74a122(0x229)]),_0x5536de=JSON[_0x74a122(0x21a)](_0x296bee);this[_0x74a122(0x242)](_0x4f838c,_0x5536de),_0x553d1c+=0x1;}catch(_0x36b329){logger[_0x74a122(0x23b)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20'+_0x5b6eb5+':\x20'+(_0x36b329&&_0x36b329['message']?_0x36b329['message']:_0x36b329));}try{fs[_0x74a122(0x22d)](_0x4b28ae);}catch(_0x575b0e){logger[_0x74a122(0x23b)](_0x74a122(0x225)+_0x5b6eb5+':\x20'+(_0x575b0e&&_0x575b0e[_0x74a122(0x1f3)]?_0x575b0e['message']:_0x575b0e));}}return _0x553d1c;}}function a86_0xe052(_0x161a00,_0x2f46f9){const _0x367e95=a86_0x367e();return a86_0xe052=function(_0xe05287,_0x53c48b){_0xe05287=_0xe05287-0x1c5;let _0x319fd0=_0x367e95[_0xe05287];return _0x319fd0;},a86_0xe052(_0x161a00,_0x2f46f9);}const a86_0x175b28={};a86_0x175b28[a86_0x14adf6(0x23a)]=getBuildTagsRunId,a86_0x175b28[a86_0x14adf6(0x1d9)]=getBuildTagsFilePath,a86_0x175b28['BUILD_TAG_FILE_PREFIX']=BUILD_TAG_FILE_PREFIX,CustomTagManager[a86_0x14adf6(0x24f)]=a86_0x175b28,module['exports']=CustomTagManager;
@@ -1 +1 @@
1
- const a86_0x53851f=a86_0x4133;(function(_0x150336,_0x305a43){const _0x52097c=a86_0x4133,_0x292ffc=_0x150336();while(!![]){try{const _0xc8abee=-parseInt(_0x52097c(0xf7))/0x1*(-parseInt(_0x52097c(0xf5))/0x2)+-parseInt(_0x52097c(0xf8))/0x3+parseInt(_0x52097c(0xe6))/0x4*(parseInt(_0x52097c(0xf1))/0x5)+-parseInt(_0x52097c(0xf0))/0x6+parseInt(_0x52097c(0xe7))/0x7*(-parseInt(_0x52097c(0xf4))/0x8)+-parseInt(_0x52097c(0xee))/0x9+parseInt(_0x52097c(0xf6))/0xa*(parseInt(_0x52097c(0xe9))/0xb);if(_0xc8abee===_0x305a43)break;else _0x292ffc['push'](_0x292ffc['shift']());}catch(_0x38814f){_0x292ffc['push'](_0x292ffc['shift']());}}}(a86_0x2699,0x2ae14));const {createClassLogger}=require(a86_0x53851f(0xf2));function a86_0x2699(){const _0x436887=['40wQZpZf','16706rOegrM','20RDceaP','32ILHOOk','675138asoJWM','1108XYodPW','245602rKHiom','getInstance','2943259Clwasm','observers','registerObserver','freeze','exports','615897xabYrj','notifyObserver','2045916doEBcc','3305YWBueX','../../helpers/classLogger.js','push'];a86_0x2699=function(){return _0x436887;};return a86_0x2699();}function a86_0x4133(_0x263f6c,_0xfb52df){const _0x2699a8=a86_0x2699();return a86_0x4133=function(_0x4133db,_0x450a15){_0x4133db=_0x4133db-0xe6;let _0x579829=_0x2699a8[_0x4133db];return _0x579829;},a86_0x4133(_0x263f6c,_0xfb52df);}class EventDispatcher{static #instance=null;constructor(){const _0x1189d1=a86_0x53851f;this[_0x1189d1(0xea)]={};}static[a86_0x53851f(0xe8)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a86_0x53851f(0xeb)](_0x203fdc,_0x1c19f9){const _0x305453=a86_0x53851f;!this[_0x305453(0xea)][_0x203fdc]&&(this['observers'][_0x203fdc]=[]),this[_0x305453(0xea)][_0x203fdc][_0x305453(0xf3)](_0x1c19f9);}async[a86_0x53851f(0xef)](_0x565564,_0x27ec1e){const _0x4ec7f4=a86_0x53851f,_0x24bf3e={'CBXnZ':function(_0x1668d9,_0x2d88d3){return _0x1668d9(_0x2d88d3);}};if(this['observers'][_0x565564]){for(const _0x332a18 of this[_0x4ec7f4(0xea)][_0x565564]){await _0x24bf3e['CBXnZ'](_0x332a18,_0x27ec1e);}return;}}}const eventDispatcher=EventDispatcher[a86_0x53851f(0xe8)]();Object[a86_0x53851f(0xec)](eventDispatcher),module[a86_0x53851f(0xed)]=eventDispatcher;
1
+ function a87_0xe2ac(){const _0x3965f6=['4386348ekRngc','19770wORJPK','1221246jFGxTK','GIRnu','exports','2056LXjIlm','1107752ZThRVc','194652HlzFBX','../../helpers/classLogger.js','push','1068nsmRiA','17577aguSGr','freeze','getInstance','observers','notifyObserver','3152488RCUnor'];a87_0xe2ac=function(){return _0x3965f6;};return a87_0xe2ac();}function a87_0x19ef(_0x6053b,_0x453000){const _0xe2accd=a87_0xe2ac();return a87_0x19ef=function(_0x19efab,_0x199d0d){_0x19efab=_0x19efab-0x1b3;let _0x36186f=_0xe2accd[_0x19efab];return _0x36186f;},a87_0x19ef(_0x6053b,_0x453000);}const a87_0x54bad9=a87_0x19ef;(function(_0x3f872f,_0x3b9aa4){const _0x33874b=a87_0x19ef,_0x1e606e=_0x3f872f();while(!![]){try{const _0x102f18=-parseInt(_0x33874b(0x1ba))/0x1+parseInt(_0x33874b(0x1b9))/0x2+parseInt(_0x33874b(0x1b5))/0x3+-parseInt(_0x33874b(0x1c3))/0x4+-parseInt(_0x33874b(0x1b4))/0x5*(parseInt(_0x33874b(0x1bd))/0x6)+-parseInt(_0x33874b(0x1be))/0x7*(-parseInt(_0x33874b(0x1b8))/0x8)+parseInt(_0x33874b(0x1b3))/0x9;if(_0x102f18===_0x3b9aa4)break;else _0x1e606e['push'](_0x1e606e['shift']());}catch(_0x441a92){_0x1e606e['push'](_0x1e606e['shift']());}}}(a87_0xe2ac,0x6361f));const {createClassLogger}=require(a87_0x54bad9(0x1bb));class EventDispatcher{static #instance=null;constructor(){this['observers']={};}static[a87_0x54bad9(0x1c0)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}['registerObserver'](_0xbdb98e,_0x59d7d4){const _0x1bb00c=a87_0x54bad9;!this[_0x1bb00c(0x1c1)][_0xbdb98e]&&(this[_0x1bb00c(0x1c1)][_0xbdb98e]=[]),this[_0x1bb00c(0x1c1)][_0xbdb98e][_0x1bb00c(0x1bc)](_0x59d7d4);}async[a87_0x54bad9(0x1c2)](_0x45b40b,_0x1802d2){const _0x31e647=a87_0x54bad9,_0x35772c={'GIRnu':function(_0x2202db,_0x4e9c87){return _0x2202db(_0x4e9c87);}};if(this[_0x31e647(0x1c1)][_0x45b40b]){for(const _0x375f23 of this['observers'][_0x45b40b]){await _0x35772c[_0x31e647(0x1b6)](_0x375f23,_0x1802d2);}return;}}}const eventDispatcher=EventDispatcher[a87_0x54bad9(0x1c0)]();Object[a87_0x54bad9(0x1bf)](eventDispatcher),module[a87_0x54bad9(0x1b7)]=eventDispatcher;
@@ -1 +1 @@
1
- const a87_0x310789=a87_0x4348;(function(_0x38272e,_0x4ca66c){const _0x2dee11=a87_0x4348,_0x1b231a=_0x38272e();while(!![]){try{const _0x9b02f=parseInt(_0x2dee11(0xbc))/0x1+parseInt(_0x2dee11(0xc8))/0x2+parseInt(_0x2dee11(0xd3))/0x3+-parseInt(_0x2dee11(0xde))/0x4*(-parseInt(_0x2dee11(0xc0))/0x5)+-parseInt(_0x2dee11(0xbf))/0x6*(-parseInt(_0x2dee11(0xd2))/0x7)+-parseInt(_0x2dee11(0xcf))/0x8*(-parseInt(_0x2dee11(0xbe))/0x9)+-parseInt(_0x2dee11(0xd9))/0xa*(parseInt(_0x2dee11(0xce))/0xb);if(_0x9b02f===_0x4ca66c)break;else _0x1b231a['push'](_0x1b231a['shift']());}catch(_0x3c4ef2){_0x1b231a['push'](_0x1b231a['shift']());}}}(a87_0x2dfd,0x5fbc0));function a87_0x4348(_0x505c7b,_0x36b116){const _0x2dfdc4=a87_0x2dfd();return a87_0x4348=function(_0x4348bd,_0x485f60){_0x4348bd=_0x4348bd-0xb8;let _0x7f1ad6=_0x2dfdc4[_0x4348bd];return _0x7f1ad6;},a87_0x4348(_0x505c7b,_0x36b116);}const {createClassLogger}=require('../../../helpers/classLogger.js'),util=require(a87_0x310789(0xc5)),eventDispatcher=require(a87_0x310789(0xd6)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require(a87_0x310789(0xcb)),logger=createClassLogger('AutomationFramework');function a87_0x2dfd(){const _0x2cdc00=['4961930GbjhGI','automationFrameworkName','getHookRegistryKey','get','getState','732EZSGJi','registerObserver','notifyObserver','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','qxiTL','374533unRUmn','getAutomationFrameworkVersion','6528420SKHbwg','1251078aBjTLp','16140YjPVVG','function','getAutomationFrameworkName','FHEfq','KEY_AUTOMATION_SESSIONS','util','automationFrameworkVersion','trackEvent','775818XBlBET','getAllData','setState','../instances/trackedInstance.js','pKciK','non_browserstack_automation_sessions','55WTsHQp','8jSFFAe','getId','instances','7XbTLED','1758102gaHvML','exports','debug','../eventDispatcher.js','trackEvent:\x20automationFrameworkState=','runHooks'];a87_0x2dfd=function(){return _0x2cdc00;};return a87_0x2dfd();}class AutomationFramework{static [a87_0x310789(0xd1)]=new Map();static [a87_0x310789(0xc4)]='automation_sessions';static [a87_0x310789(0xba)]=a87_0x310789(0xcd);constructor(_0x4e0a52,_0x59951e){const _0x4dc2f5=a87_0x310789;this[_0x4dc2f5(0xda)]=_0x4e0a52,this[_0x4dc2f5(0xc6)]=_0x59951e;}[a87_0x310789(0xc2)](){const _0x48e200=a87_0x310789;return this[_0x48e200(0xda)];}[a87_0x310789(0xbd)](){const _0x4e84c8=a87_0x310789;return this[_0x4e84c8(0xc6)];}async[a87_0x310789(0xc7)](_0x53cb1e,_0x1ae689,_0x37d2e6={}){const _0x2dedb2=a87_0x310789;logger[_0x2dedb2(0xd5)](_0x2dedb2(0xd7)+_0x53cb1e+'\x20hookState='+_0x1ae689);}async[a87_0x310789(0xd8)](_0x597b1a,_0x44d06f,_0x16c704,_0x1e74f7={}){const _0x448581=a87_0x310789,_0xd1e19c=CLIUtils[_0x448581(0xdb)](_0x44d06f,_0x16c704);_0x597b1a&&_0x597b1a[_0x448581(0xca)](_0x44d06f),await eventDispatcher[_0x448581(0xb9)](_0xd1e19c,_0x1e74f7);}static[a87_0x310789(0xb8)](_0x2183d8,_0x6e08dd,_0xed9688){const _0xe5fac7=a87_0x310789;eventDispatcher[_0xe5fac7(0xb8)](CLIUtils[_0xe5fac7(0xdb)](_0x2183d8,_0x6e08dd),_0xed9688);}static['setTrackedInstance'](_0x3e14c0,_0x4db344){const _0x69c42b=a87_0x310789;AutomationFramework[_0x69c42b(0xd1)]['set'](_0x3e14c0[_0x69c42b(0xd0)](),_0x4db344);}static['getTrackedInstance'](){const _0x3aa314=a87_0x310789,_0xa9a51d=TrackedInstance['createContext'](CLIUtils['getCurrentInstanceName']());return AutomationFramework[_0x3aa314(0xd1)][_0x3aa314(0xdc)](_0xa9a51d['getId']());}static[a87_0x310789(0xca)](_0x2389f7,_0x45321a,_0x4f3254){_0x2389f7['getAllData']()['set'](_0x45321a,_0x4f3254);}static[a87_0x310789(0xdd)](_0x434932,_0x576a4c,_0x5275ba=undefined){const _0x3d4d2d=a87_0x310789,_0x39841d={};_0x39841d[_0x3d4d2d(0xbb)]=function(_0x2ac094,_0x30d040){return _0x2ac094!==_0x30d040;},_0x39841d[_0x3d4d2d(0xc3)]=_0x3d4d2d(0xc1),_0x39841d[_0x3d4d2d(0xcc)]=function(_0x4c4cfc,_0x96ee7d){return _0x4c4cfc===_0x96ee7d;};const _0x29e4de=_0x39841d;if(!_0x434932||_0x29e4de[_0x3d4d2d(0xbb)](typeof _0x434932[_0x3d4d2d(0xc9)],_0x29e4de[_0x3d4d2d(0xc3)]))return _0x5275ba;const _0x2c1994=_0x434932[_0x3d4d2d(0xc9)]()[_0x3d4d2d(0xdc)](_0x576a4c);return _0x29e4de['pKciK'](_0x2c1994,undefined)?_0x5275ba:_0x2c1994;}}module[a87_0x310789(0xd4)]=AutomationFramework;
1
+ const a88_0xc554d2=a88_0x2fb8;(function(_0x557bf2,_0x303a06){const _0x3aa80e=a88_0x2fb8,_0x1afe9e=_0x557bf2();while(!![]){try{const _0x1674a0=-parseInt(_0x3aa80e(0x113))/0x1*(-parseInt(_0x3aa80e(0x111))/0x2)+-parseInt(_0x3aa80e(0x107))/0x3+-parseInt(_0x3aa80e(0x116))/0x4+parseInt(_0x3aa80e(0x10b))/0x5*(-parseInt(_0x3aa80e(0x10c))/0x6)+-parseInt(_0x3aa80e(0x115))/0x7+parseInt(_0x3aa80e(0x10e))/0x8*(-parseInt(_0x3aa80e(0x110))/0x9)+-parseInt(_0x3aa80e(0x10a))/0xa*(-parseInt(_0x3aa80e(0x101))/0xb);if(_0x1674a0===_0x303a06)break;else _0x1afe9e['push'](_0x1afe9e['shift']());}catch(_0x1f7e46){_0x1afe9e['push'](_0x1afe9e['shift']());}}}(a88_0x2d3b,0x28c26));function a88_0x2d3b(){const _0x74d349=['getAllData','1eOuYYn','../eventDispatcher.js','694295ABSzzC','6824aDSixq','automationFrameworkName','rWvNb','getHookRegistryKey','\x20hookState=','runHooks','AutomationFramework','instances','function','setTrackedInstance','registerObserver','getTrackedInstance','getAutomationFrameworkVersion','debug','exports','set','getState','11ftzgbg','getId','trackEvent:\x20automationFrameworkState=','automation_sessions','KDpge','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','491886vYXNKC','../../../helpers/classLogger.js','automationFrameworkVersion','3728220lCvHGR','5wRAgrA','1038318leSXNG','setState','59352tAXvOS','non_browserstack_automation_sessions','45igAuaC','538258dxKonQ'];a88_0x2d3b=function(){return _0x74d349;};return a88_0x2d3b();}function a88_0x2fb8(_0x37be94,_0x5bc2b9){const _0x2d3bc0=a88_0x2d3b();return a88_0x2fb8=function(_0x2fb874,_0x2ad67d){_0x2fb874=_0x2fb874-0xf3;let _0x591d81=_0x2d3bc0[_0x2fb874];return _0x591d81;},a88_0x2fb8(_0x37be94,_0x5bc2b9);}const {createClassLogger}=require(a88_0xc554d2(0x108)),util=require('util'),eventDispatcher=require(a88_0xc554d2(0x114)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require('../instances/trackedInstance.js'),logger=createClassLogger(a88_0xc554d2(0xf6));class AutomationFramework{static [a88_0xc554d2(0xf7)]=new Map();static ['KEY_AUTOMATION_SESSIONS']=a88_0xc554d2(0x104);static [a88_0xc554d2(0x106)]=a88_0xc554d2(0x10f);constructor(_0x116129,_0xecf7f7){const _0x3c4368=a88_0xc554d2;this['automationFrameworkName']=_0x116129,this[_0x3c4368(0x109)]=_0xecf7f7;}['getAutomationFrameworkName'](){const _0x52a888=a88_0xc554d2;return this[_0x52a888(0x117)];}[a88_0xc554d2(0xfc)](){const _0x352f2e=a88_0xc554d2;return this[_0x352f2e(0x109)];}async['trackEvent'](_0x21c16f,_0x4aefd5,_0x654214={}){const _0x19e90a=a88_0xc554d2;logger[_0x19e90a(0xfd)](_0x19e90a(0x103)+_0x21c16f+_0x19e90a(0xf4)+_0x4aefd5);}async[a88_0xc554d2(0xf5)](_0x3efbfe,_0x5726e4,_0x45ff36,_0x3d6bcd={}){const _0xf60605=a88_0xc554d2,_0x5bc3d9=CLIUtils['getHookRegistryKey'](_0x5726e4,_0x45ff36);_0x3efbfe&&_0x3efbfe[_0xf60605(0x10d)](_0x5726e4),await eventDispatcher['notifyObserver'](_0x5bc3d9,_0x3d6bcd);}static[a88_0xc554d2(0xfa)](_0x10f9a5,_0x1bd64e,_0x116176){const _0x5f350c=a88_0xc554d2;eventDispatcher[_0x5f350c(0xfa)](CLIUtils[_0x5f350c(0xf3)](_0x10f9a5,_0x1bd64e),_0x116176);}static[a88_0xc554d2(0xf9)](_0x27f0a,_0x15614e){const _0x17d1f6=a88_0xc554d2;AutomationFramework[_0x17d1f6(0xf7)]['set'](_0x27f0a[_0x17d1f6(0x102)](),_0x15614e);}static[a88_0xc554d2(0xfb)](){const _0x534553=a88_0xc554d2,_0x31f900=TrackedInstance['createContext'](CLIUtils['getCurrentInstanceName']());return AutomationFramework[_0x534553(0xf7)]['get'](_0x31f900[_0x534553(0x102)]());}static['setState'](_0x41c960,_0x1d5f17,_0x4646ad){const _0x3d374e=a88_0xc554d2;_0x41c960[_0x3d374e(0x112)]()[_0x3d374e(0xff)](_0x1d5f17,_0x4646ad);}static[a88_0xc554d2(0x100)](_0xce3b7a,_0x204c09,_0x150f1f=undefined){const _0x552e13=a88_0xc554d2,_0x2fb7ed={};_0x2fb7ed['mrZLg']=function(_0x23547b,_0x193276){return _0x23547b!==_0x193276;},_0x2fb7ed[_0x552e13(0x118)]=_0x552e13(0xf8),_0x2fb7ed[_0x552e13(0x105)]=function(_0x541a9c,_0x248327){return _0x541a9c===_0x248327;};const _0x36902d=_0x2fb7ed;if(!_0xce3b7a||_0x36902d['mrZLg'](typeof _0xce3b7a[_0x552e13(0x112)],_0x36902d['rWvNb']))return _0x150f1f;const _0x2e8c0c=_0xce3b7a[_0x552e13(0x112)]()['get'](_0x204c09);return _0x36902d['KDpge'](_0x2e8c0c,undefined)?_0x150f1f:_0x2e8c0c;}}module[a88_0xc554d2(0xfe)]=AutomationFramework;
@@ -1 +1 @@
1
- const a88_0x489c17=a88_0x429c;function a88_0x429c(_0x4c3d6b,_0xe0cd87){const _0x13a9e5=a88_0x13a9();return a88_0x429c=function(_0x429cb7,_0x2c7f4c){_0x429cb7=_0x429cb7-0x77;let _0x5b5efa=_0x13a9e5[_0x429cb7];return _0x5b5efa;},a88_0x429c(_0x4c3d6b,_0xe0cd87);}(function(_0x27238d,_0x291299){const _0x2608f2=a88_0x429c,_0x239088=_0x27238d();while(!![]){try{const _0x3ee9b0=parseInt(_0x2608f2(0x81))/0x1+parseInt(_0x2608f2(0x77))/0x2*(-parseInt(_0x2608f2(0x8f))/0x3)+-parseInt(_0x2608f2(0x8c))/0x4*(parseInt(_0x2608f2(0x8e))/0x5)+-parseInt(_0x2608f2(0x97))/0x6+-parseInt(_0x2608f2(0x7b))/0x7+parseInt(_0x2608f2(0x7f))/0x8*(-parseInt(_0x2608f2(0x88))/0x9)+parseInt(_0x2608f2(0x80))/0xa*(parseInt(_0x2608f2(0x95))/0xb);if(_0x3ee9b0===_0x291299)break;else _0x239088['push'](_0x239088['shift']());}catch(_0x2ce302){_0x239088['push'](_0x239088['shift']());}}}(a88_0x13a9,0x6e5d3));function a88_0x13a9(){const _0x514aa2=['KEY_STARTED_AT','hub_url','COMMAND_NEW_SESSION','is_browserstack_hub','BROWSERSTACK_PLATFORM_INDEX','832329uQVaar','quit','COMMAND_QUIT','input_capabilities','3005528misKZU','framework_session_id','5uCpfUT','15kvnKYG','KEY_PLATFORM_INDEX','capabilities','exports','get','KEY_ENDED_AT','28985869wgfYEc','COMMAND_GET','4433730lZfdxh','w3cexecutescriptasync','134614HBeOzD','ENV_BROWSERSTACK_PLATFORM_INDEX','KEY_HUB_URL','COMMAND_SCREENSHOT','205149FJhTRS','newsession','platform_index','KEY_IS_BROWSERSTACK_HUB','64fugYKO','10NEpSkA','412999cboAgp','screenshot'];a88_0x13a9=function(){return _0x514aa2;};return a88_0x13a9();}const a88_0x362d1d={};a88_0x362d1d[a88_0x489c17(0x78)]=a88_0x489c17(0x87),a88_0x362d1d[a88_0x489c17(0x79)]=a88_0x489c17(0x84),a88_0x362d1d['KEY_FRAMEWORK_SESSION_ID']=a88_0x489c17(0x8d),a88_0x362d1d['KEY_INPUT_CAPABILITIES']=a88_0x489c17(0x8b),a88_0x362d1d['KEY_CAPABILITIES']=a88_0x489c17(0x91),a88_0x362d1d[a88_0x489c17(0x7e)]=a88_0x489c17(0x86),a88_0x362d1d[a88_0x489c17(0x83)]='started_at',a88_0x362d1d[a88_0x489c17(0x94)]='ended_at',a88_0x362d1d[a88_0x489c17(0x90)]=a88_0x489c17(0x7d),a88_0x362d1d[a88_0x489c17(0x85)]=a88_0x489c17(0x7c),a88_0x362d1d[a88_0x489c17(0x96)]=a88_0x489c17(0x93),a88_0x362d1d[a88_0x489c17(0x7a)]=a88_0x489c17(0x82),a88_0x362d1d['COMMAND_W3C_EXECUTE_SCRIPT']='w3cexecutescript',a88_0x362d1d['COMMAND_W3C_EXECUTE_SCRIPT_ASYNC']=a88_0x489c17(0x98),a88_0x362d1d[a88_0x489c17(0x8a)]=a88_0x489c17(0x89);const AutomationFrameworkConstants=a88_0x362d1d;module[a88_0x489c17(0x92)]=AutomationFrameworkConstants;
1
+ const a89_0x47d75e=a89_0x2124;function a89_0x2124(_0x5a3a84,_0x2e0b9b){const _0x374c96=a89_0x374c();return a89_0x2124=function(_0x21248a,_0x26bda0){_0x21248a=_0x21248a-0x1b4;let _0x2505e9=_0x374c96[_0x21248a];return _0x2505e9;},a89_0x2124(_0x5a3a84,_0x2e0b9b);}(function(_0x2f5213,_0x176e1e){const _0x212aec=a89_0x2124,_0x3e1cc6=_0x2f5213();while(!![]){try{const _0x5aba99=-parseInt(_0x212aec(0x1ca))/0x1+-parseInt(_0x212aec(0x1d1))/0x2*(parseInt(_0x212aec(0x1bd))/0x3)+-parseInt(_0x212aec(0x1c6))/0x4+parseInt(_0x212aec(0x1cb))/0x5+parseInt(_0x212aec(0x1c9))/0x6*(parseInt(_0x212aec(0x1cd))/0x7)+-parseInt(_0x212aec(0x1c7))/0x8*(-parseInt(_0x212aec(0x1bf))/0x9)+parseInt(_0x212aec(0x1c1))/0xa;if(_0x5aba99===_0x176e1e)break;else _0x3e1cc6['push'](_0x3e1cc6['shift']());}catch(_0x15e0d5){_0x3e1cc6['push'](_0x3e1cc6['shift']());}}}(a89_0x374c,0x4d4e7));const a89_0x10f826={};function a89_0x374c(){const _0x37be8d=['521229UutoAU','773770FiNVqL','COMMAND_SCREENSHOT','21NlTclT','KEY_CAPABILITIES','KEY_IS_BROWSERSTACK_HUB','screenshot','18gQxxVJ','w3cexecutescriptasync','quit','platform_index','newsession','BROWSERSTACK_PLATFORM_INDEX','ENV_BROWSERSTACK_PLATFORM_INDEX','KEY_PLATFORM_INDEX','COMMAND_NEW_SESSION','KEY_HUB_URL','get','capabilities','COMMAND_GET','KEY_ENDED_AT','200388IwDwJI','COMMAND_QUIT','124029CBFFpz','KEY_STARTED_AT','9044940lQUhzk','hub_url','exports','input_capabilities','w3cexecutescript','1389204kEIUlG','208lFStGa','started_at','737574vwiXQn'];a89_0x374c=function(){return _0x37be8d;};return a89_0x374c();}a89_0x10f826[a89_0x47d75e(0x1b5)]=a89_0x47d75e(0x1b4),a89_0x10f826[a89_0x47d75e(0x1b8)]=a89_0x47d75e(0x1c2),a89_0x10f826['KEY_FRAMEWORK_SESSION_ID']='framework_session_id',a89_0x10f826['KEY_INPUT_CAPABILITIES']=a89_0x47d75e(0x1c4),a89_0x10f826[a89_0x47d75e(0x1ce)]=a89_0x47d75e(0x1ba),a89_0x10f826[a89_0x47d75e(0x1cf)]='is_browserstack_hub',a89_0x10f826[a89_0x47d75e(0x1c0)]=a89_0x47d75e(0x1c8),a89_0x10f826[a89_0x47d75e(0x1bc)]='ended_at',a89_0x10f826[a89_0x47d75e(0x1b6)]=a89_0x47d75e(0x1d4),a89_0x10f826[a89_0x47d75e(0x1b7)]=a89_0x47d75e(0x1d5),a89_0x10f826[a89_0x47d75e(0x1bb)]=a89_0x47d75e(0x1b9),a89_0x10f826[a89_0x47d75e(0x1cc)]=a89_0x47d75e(0x1d0),a89_0x10f826['COMMAND_W3C_EXECUTE_SCRIPT']=a89_0x47d75e(0x1c5),a89_0x10f826['COMMAND_W3C_EXECUTE_SCRIPT_ASYNC']=a89_0x47d75e(0x1d2),a89_0x10f826[a89_0x47d75e(0x1be)]=a89_0x47d75e(0x1d3);const AutomationFrameworkConstants=a89_0x10f826;module[a89_0x47d75e(0x1c3)]=AutomationFrameworkConstants;
@@ -1 +1 @@
1
- const a89_0x167165=a89_0xf711;(function(_0x2213b9,_0x17a535){const _0xcd4b9a=a89_0xf711,_0x3b5267=_0x2213b9();while(!![]){try{const _0x2eb1dd=-parseInt(_0xcd4b9a(0x1d1))/0x1*(parseInt(_0xcd4b9a(0x1f6))/0x2)+parseInt(_0xcd4b9a(0x21a))/0x3+parseInt(_0xcd4b9a(0x210))/0x4*(parseInt(_0xcd4b9a(0x1d6))/0x5)+parseInt(_0xcd4b9a(0x218))/0x6*(parseInt(_0xcd4b9a(0x1d2))/0x7)+-parseInt(_0xcd4b9a(0x211))/0x8*(-parseInt(_0xcd4b9a(0x1fa))/0x9)+parseInt(_0xcd4b9a(0x1d4))/0xa*(parseInt(_0xcd4b9a(0x1ec))/0xb)+-parseInt(_0xcd4b9a(0x1db))/0xc;if(_0x2eb1dd===_0x17a535)break;else _0x3b5267['push'](_0x3b5267['shift']());}catch(_0x47588e){_0x3b5267['push'](_0x3b5267['shift']());}}}(a89_0xbf20,0x235db));const a89_0x260c38={};a89_0x260c38[a89_0x167165(0x207)]=a89_0x167165(0x201),a89_0x260c38[a89_0x167165(0x20c)]='test_id',a89_0x260c38[a89_0x167165(0x1c9)]=a89_0x167165(0x1d7),a89_0x260c38[a89_0x167165(0x1e5)]='test_file_path',a89_0x260c38[a89_0x167165(0x212)]=a89_0x167165(0x1e9),a89_0x260c38[a89_0x167165(0x1ca)]='test_result',a89_0x260c38[a89_0x167165(0x1fd)]='test_result_at',a89_0x260c38[a89_0x167165(0x1e8)]=a89_0x167165(0x1ea),a89_0x260c38['KEY_TEST_ENDED_AT']=a89_0x167165(0x1dd),a89_0x260c38[a89_0x167165(0x1e0)]='test_location',a89_0x260c38[a89_0x167165(0x20b)]=a89_0x167165(0x1e7),a89_0x260c38['KEY_TEST_SCOPE']=a89_0x167165(0x1f2),a89_0x260c38['KEY_TEST_SCOPES']=a89_0x167165(0x20a),a89_0x260c38[a89_0x167165(0x1cc)]='test_framework_name',a89_0x260c38['KEY_TEST_FRAMEWORK_VERSION']=a89_0x167165(0x1dc),a89_0x260c38[a89_0x167165(0x1c8)]=a89_0x167165(0x20f),a89_0x260c38[a89_0x167165(0x1ff)]=a89_0x167165(0x1cf),a89_0x260c38[a89_0x167165(0x1eb)]=a89_0x167165(0x1de),a89_0x260c38[a89_0x167165(0x1e6)]='platform_index',a89_0x260c38[a89_0x167165(0x21c)]=a89_0x167165(0x220),a89_0x260c38[a89_0x167165(0x215)]='test_failure_type',a89_0x260c38['KEY_TEST_FAILURE_REASON']=a89_0x167165(0x1fe),a89_0x260c38[a89_0x167165(0x1ef)]=a89_0x167165(0x1f1),a89_0x260c38[a89_0x167165(0x1f3)]=a89_0x167165(0x1f4),a89_0x260c38['KEY_SESSION_NAME']=a89_0x167165(0x21e),a89_0x260c38[a89_0x167165(0x1cb)]=a89_0x167165(0x203),a89_0x260c38[a89_0x167165(0x217)]=a89_0x167165(0x21d),a89_0x260c38[a89_0x167165(0x21f)]=a89_0x167165(0x1d9),a89_0x260c38[a89_0x167165(0x1ce)]=a89_0x167165(0x204),a89_0x260c38[a89_0x167165(0x20e)]=a89_0x167165(0x1e3),a89_0x260c38['KEY_HOOK_ID']='hook_id',a89_0x260c38[a89_0x167165(0x20d)]=a89_0x167165(0x206),a89_0x260c38['KEY_HOOK_FAILURE_TYPE']=a89_0x167165(0x1f0),a89_0x260c38['KEY_HOOK_FAILURE_REASON']=a89_0x167165(0x1f8),a89_0x260c38[a89_0x167165(0x222)]=a89_0x167165(0x216),a89_0x260c38[a89_0x167165(0x200)]=a89_0x167165(0x1df),a89_0x260c38['KEY_HOOK_NAME']=a89_0x167165(0x1e4),a89_0x260c38[a89_0x167165(0x1d3)]=a89_0x167165(0x208),a89_0x260c38['DEFAULT_HOOK_RESULT']=a89_0x167165(0x208),a89_0x260c38[a89_0x167165(0x1fb)]=a89_0x167165(0x1f9),a89_0x260c38[a89_0x167165(0x1d5)]=a89_0x167165(0x1d8),a89_0x260c38[a89_0x167165(0x223)]='^(BEFORE_|AFTER_)',a89_0x260c38['KEY_HOOKS_STARTED']=a89_0x167165(0x219),a89_0x260c38['KEY_HOOKS_FINISHED']=a89_0x167165(0x1ed),a89_0x260c38[a89_0x167165(0x213)]=a89_0x167165(0x209),a89_0x260c38[a89_0x167165(0x1e2)]=a89_0x167165(0x205),a89_0x260c38[a89_0x167165(0x202)]=a89_0x167165(0x221),a89_0x260c38[a89_0x167165(0x1f7)]=a89_0x167165(0x1f5),a89_0x260c38[a89_0x167165(0x1da)]=a89_0x167165(0x1fc),a89_0x260c38[a89_0x167165(0x21b)]='file_size',a89_0x260c38['KEY_FILE_NAME']=a89_0x167165(0x214),a89_0x260c38['KEY_FILE_PATH']='file_path',a89_0x260c38['KEY_FILE_LEVEL']=a89_0x167165(0x1ee),a89_0x260c38[a89_0x167165(0x1d0)]=a89_0x167165(0x1e1),a89_0x260c38['MAX_TOP_LEVEL_STEPS']=0xa,a89_0x260c38['MAX_NESTED_STEP_DEPTH']=0x2;function a89_0xf711(_0x4f1169,_0x310a41){const _0xbf20a9=a89_0xbf20();return a89_0xf711=function(_0xf711f5,_0x38f35b){_0xf711f5=_0xf711f5-0x1c8;let _0x28627e=_0xbf20a9[_0xf711f5];return _0x28627e;},a89_0xf711(_0x4f1169,_0x310a41);}const TestFrameworkConstants=a89_0x260c38;function a89_0xbf20(){const _0x1d50b1=['test_tags','test_started_at','KEY_TEST_RETRY_OF','2880295uyCMhF','test_hooks_finished','file_level','KEY_TEST_LOGS','hook_failure_type','test_logs','test_scope','KEY_TEST_META','test_meta','custom_metadata','44890yZuAII','KEY_CUSTOM_TAGS','hook_failure_reason','TEST_SCREENSHOT','9WBvUmr','KIND_SCREENSHOT','test_attachments','KEY_TEST_RESULT_AT','test_failure_reason','KEY_TEST_RERUN_NAME','KEY_HOOK_LOGS','test_uuid','KEY_LOGS','automate_session_name','event_started_at','test_hook_last_finished','hook_result','KEY_TEST_UUID','pending','test_hook_last_started','test_scopes','KEY_TEST_DURATION','KEY_TEST_ID','KEY_HOOK_RESULT','KEY_EVENT_ENDED_AT','test_code','123516YjhBkG','1324936aQLGJw','KEY_TEST_TAGS','KEY_HOOK_LAST_STARTED','file_name','KEY_TEST_FAILURE_TYPE','hook_failure','KEY_AUTOMATE_SESSION_STATUS','156keLxRc','test_hooks_started','682842stxpXD','KEY_FILE_SIZE','KEY_TEST_FAILURE','automate_session_status','test_session_name','KEY_AUTOMATE_SESSION_REASON','test_failure','logs','KEY_HOOK_FAILURE','HOOK_REGEX','KEY_TEST_CODE','KEY_TEST_NAME','KEY_TEST_RESULT','KEY_AUTOMATE_SESSION_NAME','KEY_TEST_FRAMEWORK_NAME','exports','KEY_EVENT_STARTED_AT','test_rerun_name','KEY_TEST_SCREENSHOTS','9hgjIWu','1337lsxPmr','DEFAULT_TEST_RESULT','10lLFTje','KIND_LOG','40xMPWbm','test_name','TEST_LOG','automate_session_reason','KEY_TEST_ATTACHMENTS','6722520NoFuaS','test_framework_version','test_ended_at','retry_of','hook_logs','KEY_TEST_LOCATION','test_screenshots','KEY_HOOK_LAST_FINISHED','event_ended_at','hook_name','KEY_TEST_FILE_PATH','KEY_PLATFORM_INDEX','test_duration','KEY_TEST_STARTED_AT'];a89_0xbf20=function(){return _0x1d50b1;};return a89_0xbf20();}module[a89_0x167165(0x1cd)]=TestFrameworkConstants;
1
+ const a90_0x54a0b8=a90_0x53ce;(function(_0x27edf2,_0x593996){const _0x3a65e5=a90_0x53ce,_0x204b71=_0x27edf2();while(!![]){try{const _0x18a2f3=-parseInt(_0x3a65e5(0x11e))/0x1+-parseInt(_0x3a65e5(0x136))/0x2*(parseInt(_0x3a65e5(0x15a))/0x3)+-parseInt(_0x3a65e5(0x13e))/0x4*(parseInt(_0x3a65e5(0x164))/0x5)+parseInt(_0x3a65e5(0x113))/0x6*(-parseInt(_0x3a65e5(0x10d))/0x7)+-parseInt(_0x3a65e5(0x150))/0x8*(-parseInt(_0x3a65e5(0x139))/0x9)+parseInt(_0x3a65e5(0x11a))/0xa+parseInt(_0x3a65e5(0x15d))/0xb*(parseInt(_0x3a65e5(0x12e))/0xc);if(_0x18a2f3===_0x593996)break;else _0x204b71['push'](_0x204b71['shift']());}catch(_0x9643c1){_0x204b71['push'](_0x204b71['shift']());}}}(a90_0x2a13,0xeec7e));function a90_0x53ce(_0x47c0a0,_0x317aad){const _0x2a1362=a90_0x2a13();return a90_0x53ce=function(_0x53ce01,_0x49a45a){_0x53ce01=_0x53ce01-0x10d;let _0xfa359b=_0x2a1362[_0x53ce01];return _0xfa359b;},a90_0x53ce(_0x47c0a0,_0x317aad);}function a90_0x2a13(){const _0x127dd6=['35795HyNPFA','6435667xIgrko','KEY_HOOK_ID','retry_of','test_failure_type','KEY_TEST_DURATION','KEY_TEST_LOCATION','12YgzGpq','test_scope','KEY_FILE_NAME','KEY_AUTOMATE_SESSION_STATUS','KEY_TEST_SCOPES','automate_session_name','KIND_SCREENSHOT','3157910KKKFWm','DEFAULT_TEST_RESULT','test_framework_version','event_ended_at','1485058bWMiNv','KEY_TEST_RETRY_OF','file_size','pending','KEY_HOOK_FAILURE','KEY_TEST_RESULT_AT','KEY_PLATFORM_INDEX','test_id','KEY_EVENT_ENDED_AT','test_code','KEY_TEST_FRAMEWORK_VERSION','test_ended_at','automate_session_reason','KEY_HOOK_FAILURE_TYPE','HOOK_REGEX','hook_id','118308PXWrju','event_started_at','KEY_HOOK_FAILURE_REASON','test_failure_reason','KEY_EVENT_STARTED_AT','KEY_TEST_UUID','custom_metadata','KEY_TEST_SCOPE','2GQqKBU','KEY_HOOK_RESULT','KIND_LOG','171nkapzi','hook_failure','MAX_NESTED_STEP_DEPTH','DEFAULT_HOOK_RESULT','KEY_TEST_FILE_PATH','484RFVlCd','KEY_TEST_FAILURE_REASON','test_framework_name','KEY_SESSION_NAME','file_name','KEY_HOOK_LAST_STARTED','KEY_HOOKS_STARTED','test_duration','test_hook_last_started','KEY_TEST_LOGS','hook_name','KEY_TEST_CODE','logs','KEY_TEST_RERUN_NAME','KEY_TEST_NAME','test_result_at','test_started_at','KEY_HOOKS_FINISHED','138944rofxgx','hook_failure_type','test_file_path','KEY_HOOK_NAME','KEY_TEST_FRAMEWORK_NAME','KEY_AUTOMATE_SESSION_REASON','test_screenshots','file_path','KEY_TEST_ATTACHMENTS','KEY_HOOK_LAST_FINISHED','5155275SPhEMi','TEST_LOG','test_attachments','6963EADllb','test_location','test_result','KEY_TEST_SCREENSHOTS','KEY_TEST_RESULT','KEY_TEST_FAILURE_TYPE','KEY_HOOK_LOGS'];a90_0x2a13=function(){return _0x127dd6;};return a90_0x2a13();}const a90_0x2ce5ec={};a90_0x2ce5ec[a90_0x54a0b8(0x133)]='test_uuid',a90_0x2ce5ec['KEY_TEST_ID']=a90_0x54a0b8(0x125),a90_0x2ce5ec[a90_0x54a0b8(0x14c)]='test_name',a90_0x2ce5ec[a90_0x54a0b8(0x13d)]=a90_0x54a0b8(0x152),a90_0x2ce5ec['KEY_TEST_TAGS']='test_tags',a90_0x2ce5ec[a90_0x54a0b8(0x161)]=a90_0x54a0b8(0x15f),a90_0x2ce5ec[a90_0x54a0b8(0x123)]=a90_0x54a0b8(0x14d),a90_0x2ce5ec['KEY_TEST_STARTED_AT']=a90_0x54a0b8(0x14e),a90_0x2ce5ec['KEY_TEST_ENDED_AT']=a90_0x54a0b8(0x129),a90_0x2ce5ec[a90_0x54a0b8(0x112)]=a90_0x54a0b8(0x15e),a90_0x2ce5ec[a90_0x54a0b8(0x111)]=a90_0x54a0b8(0x145),a90_0x2ce5ec[a90_0x54a0b8(0x135)]=a90_0x54a0b8(0x114),a90_0x2ce5ec[a90_0x54a0b8(0x117)]='test_scopes',a90_0x2ce5ec[a90_0x54a0b8(0x154)]=a90_0x54a0b8(0x140),a90_0x2ce5ec[a90_0x54a0b8(0x128)]=a90_0x54a0b8(0x11c),a90_0x2ce5ec[a90_0x54a0b8(0x149)]=a90_0x54a0b8(0x127),a90_0x2ce5ec[a90_0x54a0b8(0x14b)]='test_rerun_name',a90_0x2ce5ec[a90_0x54a0b8(0x11f)]=a90_0x54a0b8(0x10f),a90_0x2ce5ec[a90_0x54a0b8(0x124)]='platform_index',a90_0x2ce5ec['KEY_TEST_FAILURE']='test_failure',a90_0x2ce5ec[a90_0x54a0b8(0x162)]=a90_0x54a0b8(0x110),a90_0x2ce5ec[a90_0x54a0b8(0x13f)]=a90_0x54a0b8(0x131),a90_0x2ce5ec[a90_0x54a0b8(0x147)]='test_logs',a90_0x2ce5ec['KEY_TEST_META']='test_meta',a90_0x2ce5ec[a90_0x54a0b8(0x141)]='test_session_name',a90_0x2ce5ec['KEY_AUTOMATE_SESSION_NAME']=a90_0x54a0b8(0x118),a90_0x2ce5ec[a90_0x54a0b8(0x116)]='automate_session_status',a90_0x2ce5ec[a90_0x54a0b8(0x155)]=a90_0x54a0b8(0x12a),a90_0x2ce5ec[a90_0x54a0b8(0x132)]=a90_0x54a0b8(0x12f),a90_0x2ce5ec[a90_0x54a0b8(0x126)]=a90_0x54a0b8(0x11d),a90_0x2ce5ec[a90_0x54a0b8(0x10e)]=a90_0x54a0b8(0x12d),a90_0x2ce5ec[a90_0x54a0b8(0x137)]='hook_result',a90_0x2ce5ec[a90_0x54a0b8(0x12b)]=a90_0x54a0b8(0x151),a90_0x2ce5ec[a90_0x54a0b8(0x130)]='hook_failure_reason',a90_0x2ce5ec[a90_0x54a0b8(0x122)]=a90_0x54a0b8(0x13a),a90_0x2ce5ec[a90_0x54a0b8(0x163)]='hook_logs',a90_0x2ce5ec[a90_0x54a0b8(0x153)]=a90_0x54a0b8(0x148),a90_0x2ce5ec[a90_0x54a0b8(0x11b)]=a90_0x54a0b8(0x121),a90_0x2ce5ec[a90_0x54a0b8(0x13c)]=a90_0x54a0b8(0x121),a90_0x2ce5ec[a90_0x54a0b8(0x119)]='TEST_SCREENSHOT',a90_0x2ce5ec[a90_0x54a0b8(0x138)]=a90_0x54a0b8(0x15b),a90_0x2ce5ec[a90_0x54a0b8(0x12c)]='^(BEFORE_|AFTER_)',a90_0x2ce5ec[a90_0x54a0b8(0x144)]='test_hooks_started',a90_0x2ce5ec[a90_0x54a0b8(0x14f)]='test_hooks_finished',a90_0x2ce5ec[a90_0x54a0b8(0x143)]=a90_0x54a0b8(0x146),a90_0x2ce5ec[a90_0x54a0b8(0x159)]='test_hook_last_finished',a90_0x2ce5ec['KEY_LOGS']=a90_0x54a0b8(0x14a),a90_0x2ce5ec['KEY_CUSTOM_TAGS']=a90_0x54a0b8(0x134),a90_0x2ce5ec[a90_0x54a0b8(0x158)]=a90_0x54a0b8(0x15c),a90_0x2ce5ec['KEY_FILE_SIZE']=a90_0x54a0b8(0x120),a90_0x2ce5ec[a90_0x54a0b8(0x115)]=a90_0x54a0b8(0x142),a90_0x2ce5ec['KEY_FILE_PATH']=a90_0x54a0b8(0x157),a90_0x2ce5ec['KEY_FILE_LEVEL']='file_level',a90_0x2ce5ec[a90_0x54a0b8(0x160)]=a90_0x54a0b8(0x156),a90_0x2ce5ec['MAX_TOP_LEVEL_STEPS']=0xa,a90_0x2ce5ec[a90_0x54a0b8(0x13b)]=0x2;const TestFrameworkConstants=a90_0x2ce5ec;module['exports']=TestFrameworkConstants;
@@ -1 +1 @@
1
- function a90_0xdff3(){const _0x55542d=['createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','meta','QkPQl','KEY_HOOK_LAST_FINISHED','19zbYJhF','Error\x20in\x20createTestFrameworkEventPayload:\x20','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','util','UwiTF','getAllData','body','KEY_TEST_SCOPES','KEY_HOOK_ID','code','KEY_HOOK_FAILURE_REASON','browserstackPlatformIndex','createTestFrameworkEventPayload','rerun_name','hooks','failure_reason','11028115NNlwxB','\x20response=','KEY_HOOKS_FINISHED','../state/testFrameworkState.js','yARyH','IeudN','CucumberTestFramework','resolveInstance','platformIndex','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','KHnUl','getInstance','testFrameworkState','./testFramework','getContext','POST','KEY_TEST_RESULT','base64','KEY_HOOKS_STARTED','\x20pending\x20hooks\x20for\x20testId:\x20','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','getTestDetails','finishedAt','XpwFQ','xbxZT','KEY_TEST_FRAMEWORK_VERSION','file_name','ceil','setTestDetails',',\x20error:\x20','KEY_TEST_FAILURE','inspect','KEY_CUSTOM_TAGS','length','sANvK','7059755sJgOJo','setTrackedInstance','getTestFrameworks','getCurrentTestState','JSMeo','KEY_TEST_LOCATION','result','PRE','Parsed\x20cucumber\x20test:\x20','KEY_TEST_RESULT_AT','hookState','NONE','name','cJuYL','\x20payload=','KEY_LOGS','hasPendingHooks','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','TEST','QqyAP','format','hook_type','trackCucumberInstance:\x20saved\x20instance\x20contextId=','trackHookEvent','getTestFrameworksVersions','testData','AoMJH',',\x20state:\x20','unRIE','getPendingHooks','exports','KEY_TEST_CODE','417131pDunYx','Tracked\x20cucumber\x20hook\x20event:\x20','KEY_TEST_ENDED_AT','KEY_TEST_FAILURE_REASON','slice','getThreadId','error','addMultipleEntries','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','trackEvent:\x20unsupported\x20testFrameworkState=','KEY_TEST_FILE_PATH','test_run_id','KEY_TEST_META','Updated\x20cucumber\x20test\x20result:\x20','getCurrentInstanceName','debug','\x20with\x20result:\x20','test','KEY_TEST_RERUN_NAME','RtRSa','instance','getTestUUID','../../../helpers/helper.js','uuid','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','KEY_HOOK_FAILURE_TYPE','KEY_EVENT_ENDED_AT','trackEvent','erRdt','KEY_TEST_STARTED_AT','split','failure_data','KEY_HOOK_FAILURE','keys','toString','INIT_TEST','YMrzi','testFrameworkVersion','passed','getId','eUtQK','scopes','\x20for\x20test:\x20','addPendingHook','yYJwX','failure_type','wdXja','KEY_TEST_UUID','startedAt','endedAt','hookData','sendLogCreatedEvent','createTestFrameworkEventPayload\x20testId:\x20','KEY_TEST_SCOPE','iVvce','matchHookRegex','createContext','2026921DfRhSp','../cliUtils.js','Processing\x20','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','uwGBC','logCreatedEvent','2193768PueeYP','getTrackedInstance','finished_at','Stored\x20pending\x20hook\x20for\x20testId:\x20','sendLogCreatedEvent:\x20for\x20testId:\x20','wwRiP','../TestInfo.js','processPendingHooks','dZGnG','\x20testState:\x20','wXqyA','toISOString','GjOvG','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','\x20with\x20UUID:\x20','args','get','54jbUChE','removePendingHooks','failure','testUUID','executionContext','285297rDrhFL','KEY_HOOK_RESULT','LOG_REPORT','push','getCurrentHookState',',\x20state=','./constants/testFrameworkConstants.js','cVEEH','FIDfo','eventJson','KEY_HOOK_LOGS','customRerunParam','parseCucumberTest','kPLuO','getRef','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','../../../helpers/classLogger.js','\x20hookState:\x20','key','KEY_TEST_FRAMEWORK_NAME','24VbGCiJ','\x20&\x20hook\x20=\x20','140pgVjgy','pop','AtBlh',',\x20hookState:\x20','73826AuyynD','WdNIF','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','iyRiL','\x20batch\x20','KEY_TEST_NAME','from','MJmia','6KrLedQ','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','iuWTd','UnhandledError','DEFAULT_TEST_RESULT','testFrameworkName','\x20and\x20args\x20=\x20','failed','44xtZiQp','DEFAULT_HOOK_RESULT','KEY_TEST_ATTACHMENTS','trackCucumberInstance','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found'];a90_0xdff3=function(){return _0x55542d;};return a90_0xdff3();}const a90_0x10d4cb=a90_0x4784;(function(_0x5b87ea,_0x1ffc95){const _0x29152d=a90_0x4784,_0x2bcb7c=_0x5b87ea();while(!![]){try{const _0x36dc1b=-parseInt(_0x29152d(0x2a4))/0x1*(parseInt(_0x29152d(0x28b))/0x2)+-parseInt(_0x29152d(0x271))/0x3*(-parseInt(_0x29152d(0x29b))/0x4)+-parseInt(_0x29152d(0x1fc))/0x5*(-parseInt(_0x29152d(0x293))/0x6)+parseInt(_0x29152d(0x2b4))/0x7+parseInt(_0x29152d(0x25b))/0x8*(-parseInt(_0x29152d(0x26c))/0x9)+parseInt(_0x29152d(0x287))/0xa*(-parseInt(_0x29152d(0x21c))/0xb)+-parseInt(_0x29152d(0x285))/0xc*(parseInt(_0x29152d(0x255))/0xd);if(_0x36dc1b===_0x1ffc95)break;else _0x2bcb7c['push'](_0x2bcb7c['shift']());}catch(_0x12ec14){_0x2bcb7c['push'](_0x2bcb7c['shift']());}}}(a90_0xdff3,0xce134));function a90_0x4784(_0x3d73e3,_0x58e004){const _0xdff346=a90_0xdff3();return a90_0x4784=function(_0x478461,_0x40f48d){_0x478461=_0x478461-0x1dc;let _0x326b8a=_0xdff346[_0x478461];return _0x326b8a;},a90_0x4784(_0x3d73e3,_0x58e004);}const TestFramework=require(a90_0x10d4cb(0x1e6)),TestFrameworkState=require(a90_0x10d4cb(0x1dc)),HookState=require('../state/hookState.js'),{createClassLogger}=require(a90_0x10d4cb(0x281)),TestFrameworkInstance=require('../instances/testFrameworkInstance.js'),CLIUtils=require(a90_0x10d4cb(0x256)),TrackedInstance=require('../instances/trackedInstance.js'),TestFrameworkConstants=require(a90_0x10d4cb(0x277)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a90_0x10d4cb(0x232)),logger=createClassLogger(a90_0x10d4cb(0x1df)),{v4:uuidv4}=require(a90_0x10d4cb(0x233)),util=require(a90_0x10d4cb(0x2a7)),TestInfo=require(a90_0x10d4cb(0x261)),GrpcClient=require('../grpcClient');class CucumberTestFramework extends TestFramework{constructor(_0x10d2be,_0x2d3972,_0x23ea72){super(_0x10d2be,_0x2d3972,_0x23ea72);}async['trackEvent'](_0x2ebbf2,_0x2708f3,_0x33bd67={}){const _0x402b19=a90_0x10d4cb,_0x3aa3bb={};_0x3aa3bb[_0x402b19(0x240)]=_0x402b19(0x29f),_0x3aa3bb['FIDfo']=function(_0x256962,_0x2c74bb){return _0x256962===_0x2c74bb;},_0x3aa3bb['erRdt']=function(_0x55664e,_0x29f6c1){return _0x55664e===_0x29f6c1;},_0x3aa3bb[_0x402b19(0x267)]=_0x402b19(0x280);const _0x2f10bd=_0x3aa3bb;await super[_0x402b19(0x237)](_0x2ebbf2,_0x2708f3,_0x33bd67);const _0x350eee=this['resolveInstance'](_0x2ebbf2,_0x2708f3,_0x33bd67);if(!_0x350eee){logger[_0x402b19(0x22b)](_0x2f10bd[_0x402b19(0x240)]);return;}try{let _0x239221,_0x2a3bb0;switch(_0x2ebbf2){case TestFrameworkState[_0x402b19(0x20e)]:_0x239221=_0x33bd67[_0x402b19(0x22d)],_0x2a3bb0=TestInfo[_0x402b19(0x231)](_0x239221['id']);if(_0x2f10bd[_0x402b19(0x279)](_0x2708f3,HookState[_0x402b19(0x203)])){logger[_0x402b19(0x22b)](_0x402b19(0x224)+_0x239221['id']);const _0x33c4af={};_0x33c4af['testUUID']=_0x2a3bb0,_0x33c4af[_0x402b19(0x215)]=_0x239221,_0x350eee[_0x402b19(0x223)](this[_0x402b19(0x27d)](_0x33c4af)),logger[_0x402b19(0x22b)](_0x402b19(0x20d)+_0x239221['id']),await this[_0x402b19(0x262)](_0x350eee,_0x239221['id']);}else{if(_0x2f10bd[_0x402b19(0x238)](_0x2708f3,HookState['POST'])){const _0x4e2d0b={};_0x4e2d0b['testUUID']=_0x2a3bb0,_0x4e2d0b[_0x402b19(0x215)]=_0x239221,_0x350eee[_0x402b19(0x223)](this['parseCucumberTestResult'](_0x4e2d0b)),await this[_0x402b19(0x262)](_0x350eee,_0x239221['id']);}}break;case TestFrameworkState[_0x402b19(0x273)]:_0x2f10bd[_0x402b19(0x279)](_0x2708f3,HookState[_0x402b19(0x1e8)])&&await this[_0x402b19(0x24f)](_0x350eee,_0x2ebbf2,_0x33bd67);break;default:if(CLIUtils[_0x402b19(0x253)](_0x2ebbf2[_0x402b19(0x23e)]()[_0x402b19(0x23a)]('.')[0x1])){const _0x1da5c7=await this[_0x402b19(0x213)](_0x350eee,_0x2ebbf2,_0x2708f3,_0x33bd67);_0x350eee[_0x402b19(0x223)](_0x1da5c7);}else logger[_0x402b19(0x22b)](_0x402b19(0x225)+_0x2ebbf2+'\x20&\x20hookState='+_0x2708f3);break;}}catch(_0x86c1e4){logger[_0x402b19(0x222)](util[_0x402b19(0x210)](_0x2f10bd[_0x402b19(0x267)],_0x2ebbf2,_0x2708f3,_0x33bd67['length'],_0x86c1e4));}_0x33bd67[_0x402b19(0x230)]=_0x350eee,await this['runHooks'](_0x350eee,_0x2ebbf2,_0x2708f3,_0x33bd67);}[a90_0x10d4cb(0x1e0)](_0x3f9c5e,_0x755ba2,_0x2bee7e={}){const _0xfab43b=a90_0x10d4cb,_0x493272={};_0x493272[_0xfab43b(0x24a)]=function(_0x1f08d1,_0xbddd1d){return _0x1f08d1===_0xbddd1d;};const _0x4c46cb=_0x493272;let _0x138186=null;return(_0x4c46cb[_0xfab43b(0x24a)](_0x3f9c5e,TestFrameworkState[_0xfab43b(0x23f)])||_0x4c46cb['wdXja'](_0x3f9c5e,TestFrameworkState[_0xfab43b(0x207)]))&&this['trackCucumberInstance'](_0x3f9c5e,_0x2bee7e),_0x138186=TestFramework[_0xfab43b(0x25c)](),_0x138186;}[a90_0x10d4cb(0x29e)](_0x3ec066,_0xc14eae){const _0x957b3e=a90_0x10d4cb,_0x419392=CLIUtils[_0x957b3e(0x22a)](),_0x57e7b6=TrackedInstance[_0x957b3e(0x254)](_0x419392);let _0x5ef7e8=null;logger[_0x957b3e(0x22b)](_0x957b3e(0x258)+_0x419392+_0x957b3e(0x276)+_0x3ec066),_0x5ef7e8=new TestFrameworkInstance(_0x57e7b6,this[_0x957b3e(0x1fe)](),this[_0x957b3e(0x214)](),_0x3ec066,HookState[_0x957b3e(0x207)]),TestFramework[_0x957b3e(0x1fd)](_0x57e7b6,_0x5ef7e8),logger[_0x957b3e(0x22b)](_0x957b3e(0x212)+_0x57e7b6[_0x957b3e(0x243)]()+'\x20target='+_0x419392);}['parseCucumberTest'](_0x513aa3){const _0x35ba77=a90_0x10d4cb,_0x1e9f69={};_0x1e9f69[_0x35ba77(0x289)]='No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test';const _0x4a4952=_0x1e9f69,{testUUID:_0x557a92,testData:_0x2713e3}=_0x513aa3;if(!_0x2713e3||!_0x2713e3[_0x35ba77(0x233)])return logger['debug'](_0x4a4952[_0x35ba77(0x289)]),{};const _0x3f4405=_0x557a92,_0x436345=_0x2713e3[_0x35ba77(0x233)],_0x4b7194=this[_0x35ba77(0x1fe)]()[0x0],_0x267883=this[_0x35ba77(0x214)](),_0xa7ef8b={[TestFrameworkConstants[_0x35ba77(0x284)]]:_0x4b7194,[TestFrameworkConstants[_0x35ba77(0x1f2)]]:_0x267883[_0x4b7194],[TestFrameworkConstants['KEY_TEST_LOGS']]:[],[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:{},[TestFrameworkConstants[_0x35ba77(0x1eb)]]:{},[TestFrameworkConstants[_0x35ba77(0x24b)]]:_0x3f4405,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants[_0x35ba77(0x297)],[TestFrameworkConstants['KEY_AUTOMATE_SESSION_NAME']]:_0x2713e3['name']||'',[TestFrameworkConstants[_0x35ba77(0x226)]]:_0x2713e3[_0x35ba77(0x1f3)]||'',[TestFrameworkConstants['KEY_TEST_ID']]:_0x436345,[TestFrameworkConstants[_0x35ba77(0x290)]]:_0x2713e3[_0x35ba77(0x208)]||'',[TestFrameworkConstants[_0x35ba77(0x201)]]:_0x2713e3['location']||'',[TestFrameworkConstants[_0x35ba77(0x21b)]]:_0x2713e3[_0x35ba77(0x2aa)]?.[_0x35ba77(0x2ad)]||null,[TestFrameworkConstants['KEY_TEST_TAGS']]:_0x2713e3['tags']||[],[TestFrameworkConstants[_0x35ba77(0x239)]]:_0x2713e3[_0x35ba77(0x24c)]||new Date()['toISOString'](),[TestFrameworkConstants[_0x35ba77(0x251)]]:_0x2713e3[_0x35ba77(0x245)]?.[0x0]||'',[TestFrameworkConstants[_0x35ba77(0x2ab)]]:_0x2713e3[_0x35ba77(0x245)]||[],[TestFrameworkConstants[_0x35ba77(0x22e)]]:_0x2713e3[_0x35ba77(0x27c)]?.[_0x35ba77(0x2b1)]||_0x2713e3[_0x35ba77(0x208)]||'',[TestFrameworkConstants[_0x35ba77(0x1f9)]]:{},[TestFrameworkConstants['KEY_TEST_META']]:_0x2713e3[_0x35ba77(0x2a1)]||{}};TestInfo[_0x35ba77(0x1f5)](_0x436345,_0xa7ef8b),logger[_0x35ba77(0x22b)](_0x35ba77(0x204)+_0x2713e3['name']+_0x35ba77(0x269)+_0x3f4405);const _0x49e5d8={};return _0x49e5d8[_0x436345]=_0xa7ef8b,_0x49e5d8;}['parseCucumberTestResult'](_0x91c61f){const _0x489228=a90_0x10d4cb,_0x909ae6={'QkPQl':_0x489228(0x268),'rqRoE':'unknown','kPLuO':function(_0x24474f,_0x286462){return _0x24474f===_0x286462;},'RtRSa':'failed','iyRiL':'UnhandledError','sANvK':function(_0x45fc75,_0x13b53a,_0x41f318){return _0x45fc75(_0x13b53a,_0x41f318);},'iVvce':function(_0x10847e,_0x5e9e11){return _0x10847e>_0x5e9e11;}},{testUUID:_0x490581,testData:_0xe5e0b2}=_0x91c61f;if(!_0xe5e0b2||!_0xe5e0b2[_0x489228(0x233)])return logger[_0x489228(0x22b)](_0x909ae6[_0x489228(0x2a2)]),{};const _0x59985e=this[_0x489228(0x1e0)](TestFrameworkState[_0x489228(0x20e)],HookState[_0x489228(0x1e8)]),_0x1f227c=_0xe5e0b2[_0x489228(0x233)],_0x3c3302=TestInfo['getTestDetails'](_0x1f227c)||{},_0x32b694=_0x3c3302?_0x3c3302[TestFrameworkConstants[_0x489228(0x1f9)]]||{}:{},_0xf0fbe7={..._0x3c3302,[TestFrameworkConstants[_0x489228(0x1e9)]]:_0xe5e0b2['result']||_0x909ae6['rqRoE'],[TestFrameworkConstants[_0x489228(0x21e)]]:_0xe5e0b2[_0x489228(0x1ef)]||new Date()[_0x489228(0x266)](),[TestFrameworkConstants[_0x489228(0x205)]]:new Date()[_0x489228(0x266)](),[TestFrameworkConstants[_0x489228(0x1f9)]]:_0x32b694,[TestFrameworkConstants[_0x489228(0x20b)]]:[],[TestFrameworkConstants[_0x489228(0x228)]]:_0xe5e0b2[_0x489228(0x2a1)]||{}};_0x909ae6[_0x489228(0x27e)](_0xe5e0b2[_0x489228(0x202)],_0x909ae6[_0x489228(0x22f)])&&_0xe5e0b2[_0x489228(0x26e)]&&(_0xf0fbe7[TestFrameworkConstants['KEY_TEST_FAILURE_TYPE']]=_0xe5e0b2[_0x489228(0x249)]||_0x909ae6[_0x489228(0x28e)],_0xf0fbe7[TestFrameworkConstants[_0x489228(0x21f)]]=_0xe5e0b2[_0x489228(0x2b3)]||'',_0xf0fbe7[TestFrameworkConstants[_0x489228(0x1f7)]]=_0xe5e0b2['failure']);const _0x57d871=TestInfo['getTestDetails'](_0x1f227c)[TestFrameworkConstants[_0x489228(0x29d)]]||{},_0x1e3151=_0x909ae6[_0x489228(0x1fb)](getManualUploadLogs,_0x57d871,_0x59985e[_0x489228(0x2a9)]()[_0x489228(0x26b)](_0x1f227c)[TestFrameworkConstants[_0x489228(0x24b)]]);if(_0x909ae6['iVvce'](_0x1e3151[_0x489228(0x1fa)],0x0)){const _0x332c39=_0xf0fbe7[TestFrameworkConstants[_0x489228(0x20b)]]||[];_0xf0fbe7[TestFrameworkConstants[_0x489228(0x20b)]]=[..._0x332c39,..._0x1e3151];}_0xe5e0b2[_0x489228(0x2b2)]&&_0x909ae6[_0x489228(0x252)](_0xe5e0b2[_0x489228(0x2b2)][_0x489228(0x1fa)],0x0)&&(_0xf0fbe7[TestFrameworkConstants[_0x489228(0x2b6)]]=_0xe5e0b2[_0x489228(0x2b2)]);TestInfo[_0x489228(0x1f5)](_0x1f227c,_0xf0fbe7),logger['debug'](_0x489228(0x229)+_0xe5e0b2[_0x489228(0x208)]+_0x489228(0x22c)+_0xe5e0b2[_0x489228(0x202)]);const _0x4c4b3c={};return _0x4c4b3c[_0x1f227c]=_0xf0fbe7,_0x4c4b3c;}async[a90_0x10d4cb(0x213)](_0x570723,_0x279fa2,_0x2a5d5d,_0x35c301){const _0x21357d=a90_0x10d4cb,_0x45da0d={'yYJwX':'No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','JSMeo':function(_0x16fe4c){return _0x16fe4c();},'uwGBC':function(_0x453922,_0x515f2f){return _0x453922 in _0x515f2f;},'IeudN':function(_0xd549a5,_0x238cb0){return _0xd549a5===_0x238cb0;},'WdNIF':function(_0x4f2060,_0x4e8844){return _0x4f2060>_0x4e8844;},'wXqyA':_0x21357d(0x29a),'xbxZT':_0x21357d(0x296),'cVEEH':_0x21357d(0x242),'cJuYL':function(_0x493bd1,_0x3f5187){return _0x493bd1!==_0x3f5187;}},{hookData:_0xf47251}=_0x35c301;if(!_0xf47251)return logger['debug'](_0x45da0d[_0x21357d(0x248)]),{};const _0x373fd3=_0xf47251['uuid']||_0x45da0d[_0x21357d(0x200)](uuidv4),_0x337079=_0xf47251[_0x21357d(0x227)],_0x8a4003=_0x279fa2[_0x21357d(0x23e)]()[_0x21357d(0x23a)]('.')[0x1],_0x9755b3=TestInfo[_0x21357d(0x1ee)](_0x337079)[TestFrameworkConstants[_0x21357d(0x1f9)]]||{},_0x3056c8=_0x570723['getAllData']()[_0x21357d(0x26b)](_0x337079);if(!_0x3056c8)return logger[_0x21357d(0x22b)](_0x21357d(0x234)+_0x337079+',\x20storing\x20as\x20pending\x20hook'),this['storePendingHook'](_0x570723,_0x337079,_0x279fa2,_0x2a5d5d,_0x35c301),{};let _0x184e28=_0x3056c8[TestFrameworkConstants[_0x21357d(0x1eb)]];!_0x184e28&&(_0x184e28={});!_0x45da0d[_0x21357d(0x259)](_0x8a4003,_0x184e28)&&(_0x184e28[_0x8a4003]=[]);let _0x59ebdb=_0x3056c8[TestFrameworkConstants['KEY_HOOKS_FINISHED']];!_0x59ebdb&&(_0x59ebdb={});!_0x45da0d[_0x21357d(0x259)](_0x8a4003,_0x59ebdb)&&(_0x59ebdb[_0x8a4003]=[]);const _0x2236e2={[TestFrameworkConstants['KEY_HOOKS_STARTED']]:_0x184e28,[TestFrameworkConstants[_0x21357d(0x2b6)]]:_0x59ebdb},_0x330c7c={};_0x330c7c[_0x337079]=_0x2236e2;const _0x475d98=_0x330c7c;if(_0x45da0d[_0x21357d(0x1de)](_0x2a5d5d,HookState[_0x21357d(0x203)])){const _0x4405e0={[TestFrameworkConstants[_0x21357d(0x2ac)]]:_0x373fd3,[TestFrameworkConstants[_0x21357d(0x272)]]:TestFrameworkConstants[_0x21357d(0x29c)],[TestFrameworkConstants['KEY_EVENT_STARTED_AT']]:_0xf47251['started_at'],[TestFrameworkConstants[_0x21357d(0x27b)]]:[],[TestFrameworkConstants['KEY_HOOK_NAME']]:_0xf47251[_0x21357d(0x211)],[TestFrameworkConstants[_0x21357d(0x1f9)]]:_0x9755b3};_0x4405e0[_0x21357d(0x283)]=_0x8a4003;const _0x29761f=_0x4405e0;_0x184e28[_0x8a4003][_0x21357d(0x274)](_0x29761f),_0x475d98[_0x337079][TestFrameworkConstants['KEY_HOOK_LAST_STARTED']]=_0x8a4003,logger[_0x21357d(0x22b)](_0x21357d(0x2a6)+_0x8a4003+_0x21357d(0x286)+_0x29761f+'\x20\x20and\x20args\x20=\x20'+_0x35c301);}else{if(_0x45da0d[_0x21357d(0x1de)](_0x2a5d5d,HookState[_0x21357d(0x1e8)])){const _0x5a303a=_0xf47251['result'],_0x3fac4b=_0x184e28[_0x8a4003]||[];logger['debug']('trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20'+_0x3fac4b+_0x21357d(0x299)+_0x35c301);if(_0x45da0d[_0x21357d(0x28c)](_0x3fac4b['length'],0x0)){const _0x1444cc=_0x3fac4b[_0x21357d(0x288)]();_0x45da0d[_0x21357d(0x1de)](_0xf47251['result'],_0x45da0d[_0x21357d(0x265)])&&_0xf47251[_0x21357d(0x23b)]?(_0x1444cc[TestFrameworkConstants[_0x21357d(0x235)]]=_0xf47251[_0x21357d(0x249)]||_0x45da0d[_0x21357d(0x1f1)],_0x1444cc[TestFrameworkConstants[_0x21357d(0x2ae)]]=_0xf47251['failure_reason']||'',_0x1444cc[TestFrameworkConstants[_0x21357d(0x23c)]]=_0xf47251[_0x21357d(0x23b)]):_0x1444cc[TestFrameworkConstants[_0x21357d(0x272)]]=_0x45da0d[_0x21357d(0x278)];_0x45da0d[_0x21357d(0x209)](_0x5a303a,TestFrameworkConstants['DEFAULT_HOOK_RESULT'])&&(_0x1444cc[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x5a303a);_0x1444cc[TestFrameworkConstants[_0x21357d(0x236)]]=_0xf47251[_0x21357d(0x25d)]||new Date()[_0x21357d(0x266)](),_0x1444cc[TestFrameworkConstants[_0x21357d(0x1f9)]]=_0x9755b3;const _0x4095ae=_0x1444cc[TestFrameworkConstants[_0x21357d(0x2ac)]];!_0x59ebdb[_0x8a4003]&&(_0x59ebdb[_0x8a4003]=[]),_0x59ebdb[_0x8a4003][_0x21357d(0x274)](_0x1444cc),_0x475d98[_0x337079][TestFrameworkConstants[_0x21357d(0x2a3)]]=_0x8a4003;}}}return logger[_0x21357d(0x22b)](_0x21357d(0x21d)+_0xf47251['hook_type']+'\x20with\x20id\x20'+_0x373fd3+_0x21357d(0x246)+_0x337079),_0x475d98;}[a90_0x10d4cb(0x2b0)](_0x4c512d){const _0x2f466e=a90_0x10d4cb,_0x511bee={};_0x511bee[_0x2f466e(0x244)]=_0x2f466e(0x1ea);const _0x3b9578=_0x511bee;try{const _0x262dd6=_0x4c512d[_0x2f466e(0x22d)]?_0x4c512d['test']['id']:_0x4c512d[_0x2f466e(0x24e)][_0x2f466e(0x227)],_0x24cc41=_0x4c512d[_0x2f466e(0x230)],_0x1357d7=_0x24cc41[_0x2f466e(0x1e7)](),_0x5f368c=_0x24cc41[_0x2f466e(0x2a9)]()['get'](_0x262dd6);if(!_0x5f368c)return logger['debug'](_0x2f466e(0x294)+_0x262dd6),{};logger['debug'](_0x2f466e(0x250)+_0x262dd6);const {[TestFrameworkConstants[_0x2f466e(0x284)]]:_0x2b2672='',[TestFrameworkConstants[_0x2f466e(0x1f2)]]:_0x34a42c='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x16e343='',[TestFrameworkConstants[_0x2f466e(0x21e)]]:_0x5c2c7d=''}=_0x5f368c,_0x4bbb7a=_0x24cc41[_0x2f466e(0x1ff)]()['toString']()[_0x2f466e(0x23a)]('.')[0x1],_0x10ff14=_0x24cc41[_0x2f466e(0x275)]()[_0x2f466e(0x23e)]()[_0x2f466e(0x23a)]('.')[0x1],_0x41db43=global?.[_0x2f466e(0x2af)]??0x0,_0x5d3ea9=_0x24cc41[_0x2f466e(0x27f)](),_0x5b0282=Buffer[_0x2f466e(0x291)](JSON['stringify'](_0x5f368c))[_0x2f466e(0x23e)](_0x3b9578['eUtQK']),_0xceeee5={'hash':_0x1357d7[_0x2f466e(0x243)](),'threadId':_0x1357d7[_0x2f466e(0x221)]()[_0x2f466e(0x23e)](),'processId':_0x1357d7['getProcessId']()[_0x2f466e(0x23e)]()},_0x322010={};_0x322010[_0x2f466e(0x1e1)]=_0x41db43,_0x322010[_0x2f466e(0x298)]=_0x2b2672,_0x322010[_0x2f466e(0x241)]=_0x34a42c,_0x322010[_0x2f466e(0x1e5)]=_0x4bbb7a,_0x322010[_0x2f466e(0x206)]=_0x10ff14,_0x322010[_0x2f466e(0x24c)]=_0x16e343,_0x322010[_0x2f466e(0x24d)]=_0x5c2c7d,_0x322010[_0x2f466e(0x233)]=_0x5d3ea9,_0x322010[_0x2f466e(0x27a)]=_0x5b0282,_0x322010[_0x2f466e(0x270)]=_0xceeee5;const _0x42edd1=_0x322010;return logger[_0x2f466e(0x22b)](_0x2f466e(0x2a0)+_0x262dd6+_0x2f466e(0x264)+_0x4bbb7a+_0x2f466e(0x282)+_0x10ff14),_0x42edd1;}catch(_0x4dff10){return logger[_0x2f466e(0x222)](_0x2f466e(0x2a5)+util[_0x2f466e(0x210)](_0x4dff10)),{};}}async[a90_0x10d4cb(0x24f)](_0x7f2e25,_0x3fa942,_0x3c1a29){const _0x2276de=a90_0x10d4cb,_0x197203={'UwiTF':function(_0x14bad1,_0x9da1e,_0x427636){return _0x14bad1(_0x9da1e,_0x427636);},'XpwFQ':function(_0x24f732,_0x3f363d){return _0x24f732===_0x3f363d;},'iuWTd':'sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','dZGnG':function(_0x21ea02,_0x4cbebe){return _0x21ea02/_0x4cbebe;},'yARyH':function(_0x4f10c8,_0x5e621c){return _0x4f10c8<_0x5e621c;},'wwRiP':function(_0x47e6b3,_0x3b8622){return _0x47e6b3*_0x3b8622;},'KHnUl':function(_0x1627b2,_0x160be6){return _0x1627b2+_0x160be6;},'AoMJH':function(_0x3b7cc9,_0x1268f9){return _0x3b7cc9+_0x1268f9;},'MJmia':function(_0x5d33bc,_0x1b27ed){return _0x5d33bc+_0x1b27ed;},'QqyAP':'Cucumber\x20log\x20created\x20event'};try{const _0xe40239=_0x3c1a29[_0x2276de(0x26f)],_0x106ebb=_0x7f2e25[_0x2276de(0x2a9)]()['get'](_0xe40239),{[TestFrameworkConstants[_0x2276de(0x284)]]:_0x1192ec='',[TestFrameworkConstants[_0x2276de(0x1f2)]]:_0x3de553=''}=_0x106ebb,_0x5d8a0d=TestInfo['readLogObjects'](_0xe40239),_0x2c1186=TestInfo[_0x2276de(0x1ee)](_0xe40239)[TestFrameworkConstants[_0x2276de(0x29d)]]||{},_0xb8594c=_0x197203[_0x2276de(0x2a8)](getMediaArtifactsLogs,_0x2c1186,_0x7f2e25[_0x2276de(0x2a9)]()['get'](_0xe40239)[TestFrameworkConstants[_0x2276de(0x24b)]]),_0x567a20=(_0x5d8a0d||[])['concat'](_0xb8594c||[]);if(!_0x567a20||_0x197203[_0x2276de(0x1f0)](_0x567a20[_0x2276de(0x1fa)],0x0)){logger[_0x2276de(0x22b)](_0x197203[_0x2276de(0x295)]);return;}const _0x3d8b7c=0x28,_0xc69db2=Math[_0x2276de(0x1f4)](_0x197203[_0x2276de(0x263)](_0x567a20[_0x2276de(0x1fa)],_0x3d8b7c));for(let _0x2a2648=0x0;_0x197203[_0x2276de(0x1dd)](_0x2a2648,_0xc69db2);_0x2a2648++){const _0x355ad0=_0x197203[_0x2276de(0x260)](_0x2a2648,_0x3d8b7c),_0xf3afcb=_0x197203[_0x2276de(0x1e3)](_0x355ad0,_0x3d8b7c),_0x490439=_0x567a20[_0x2276de(0x220)](_0x355ad0,_0xf3afcb),_0x49abe5={'platformIndex':global?.[_0x2276de(0x2af)]??0x0,'logs':_0x490439,'testFrameworkName':_0x1192ec,'testFrameworkVersion':_0x3de553,'testFrameworkState':_0x3fa942[_0x2276de(0x23e)]()[_0x2276de(0x23a)]('.')[0x1]};logger['debug'](_0x2276de(0x25f)+_0xe40239+_0x2276de(0x28f)+_0x197203[_0x2276de(0x216)](_0x2a2648,0x1)+'/'+_0xc69db2+_0x2276de(0x20a)+util[_0x2276de(0x1f8)](_0x49abe5));const _0x2ceb48=await GrpcClient[_0x2276de(0x1e4)]()[_0x2276de(0x25a)](_0x49abe5);logger[_0x2276de(0x22b)](_0x2276de(0x25f)+_0xe40239+_0x2276de(0x28f)+_0x197203[_0x2276de(0x292)](_0x2a2648,0x1)+'/'+_0xc69db2+_0x2276de(0x2b5)+util[_0x2276de(0x1f8)](_0x2ceb48));}}catch(_0x3b7e9f){logger[_0x2276de(0x222)](_0x2276de(0x28d)+util[_0x2276de(0x210)](_0x3b7e9f));}logger[_0x2276de(0x22b)](_0x197203[_0x2276de(0x20f)]);}['storePendingHook'](_0x4d7e5f,_0x3c58d3,_0x416cb6,_0x190c46,_0x5959ae){const _0x415635=a90_0x10d4cb,_0x4ecfa4={'testId':_0x3c58d3,'testFrameworkState':_0x416cb6,'hookState':_0x190c46,'args':_0x5959ae,'timestamp':new Date()[_0x415635(0x266)]()};_0x4d7e5f[_0x415635(0x247)](_0x3c58d3,_0x4ecfa4),logger[_0x415635(0x22b)](_0x415635(0x25e)+_0x3c58d3+_0x415635(0x217)+_0x416cb6+_0x415635(0x28a)+_0x190c46);}async[a90_0x10d4cb(0x262)](_0x30b9c4,_0x1c99a1){const _0x29a21b=a90_0x10d4cb,_0x4e87c3={};_0x4e87c3[_0x29a21b(0x218)]=function(_0x14a5fb,_0x2ceba8){return _0x14a5fb>_0x2ceba8;};const _0x124bac=_0x4e87c3;if(!_0x30b9c4[_0x29a21b(0x20c)](_0x1c99a1))return;const _0x5ef22f=_0x30b9c4[_0x29a21b(0x219)](_0x1c99a1);logger[_0x29a21b(0x22b)](_0x29a21b(0x257)+_0x5ef22f[_0x29a21b(0x1fa)]+_0x29a21b(0x1ec)+_0x1c99a1);for(const _0x2bf148 of _0x5ef22f){try{const _0x4fc083=await this['trackHookEvent'](_0x30b9c4,_0x2bf148['testFrameworkState'],_0x2bf148['hookState'],_0x2bf148['args']);_0x4fc083&&_0x124bac[_0x29a21b(0x218)](Object[_0x29a21b(0x23d)](_0x4fc083)[_0x29a21b(0x1fa)],0x0)&&_0x30b9c4[_0x29a21b(0x223)](_0x4fc083),await this['runHooks'](_0x30b9c4,_0x2bf148['testFrameworkState'],_0x2bf148[_0x29a21b(0x206)],_0x2bf148[_0x29a21b(0x26a)]);}catch(_0x1d4801){logger['error'](_0x29a21b(0x1ed)+_0x1c99a1+_0x29a21b(0x1f6)+_0x1d4801);}}_0x30b9c4[_0x29a21b(0x26d)](_0x1c99a1),logger[_0x29a21b(0x22b)](_0x29a21b(0x1e2)+_0x1c99a1);}}module[a90_0x10d4cb(0x21a)]=CucumberTestFramework;
1
+ const a91_0x49f560=a91_0x5e48;function a91_0x1820(){const _0xf364c1=['failure','trackEvent:\x20unsupported\x20testFrameworkState=','UnhandledError','eventJson','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','epTiT','Cucumber\x20log\x20created\x20event','hKFrT','trackHookEvent','browserstackPlatformIndex','instance','started_at','2383568zDRsnI','getTestFrameworksVersions','\x20&\x20hookState=','format','\x20with\x20result:\x20','KEY_TEST_FRAMEWORK_VERSION','hCzIJ','meta','muqqW','KEY_LOGS','KEY_HOOK_FAILURE','body','../grpcClient','ceil','DEFAULT_HOOK_RESULT','\x20target=','addPendingHook','KEY_TEST_TAGS','getId','storePendingHook','error','KEY_TEST_STARTED_AT','../cliUtils.js','testFrameworkVersion','KEY_CUSTOM_TAGS','KEY_EVENT_ENDED_AT','4526570QmfwzW','setTestDetails','split','KEY_TEST_LOGS','KEY_TEST_FAILURE','platformIndex','6UaKcvF','KEY_TEST_META','../state/hookState.js','KEY_TEST_SCOPE','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','inspect','result','rerun_name','setTrackedInstance','ecgfu','\x20response=','parseCucumberTest','sendLogCreatedEvent','getTrackedInstance',',\x20error:\x20','trackEvent','addMultipleEntries','KEY_HOOK_ID','pOkXq','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','nQzAC',',\x20state:\x20','testFrameworkState','KEY_TEST_LOCATION','push','\x20\x20and\x20args\x20=\x20','\x20batch\x20','parseCucumberTestResult','xIiMT','getTestDetails','bPozw','exports','passed','../instances/trackedInstance.js','KEY_TEST_ID','failure_type','CMdOx','getCurrentInstanceName','debug','KEY_TEST_FRAMEWORK_NAME','hQbID','createContext','210kZznba','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','FpywU','failure_data','KEY_HOOK_RESULT','oFeax','getContext','\x20payload=','uuid','trackCucumberInstance','testUUID','args','\x20for\x20test:\x20','pop','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','customRerunParam','sendLogCreatedEvent:\x20for\x20testId:\x20','createTestFrameworkEventPayload','slice','87272sOQuwh','581752pzIkAY','code','KEY_TEST_ENDED_AT','getProcessId','SaqhR','KEY_HOOK_LAST_STARTED','test_run_id','qczMb','../../../helpers/helper.js','test','executionContext','getCurrentTestState','scopes','Stored\x20pending\x20hook\x20for\x20testId:\x20','KEY_TEST_NAME','tpmZM','lbgDi','tags','getTestUUID','iHXDD','keys',',\x20hookState:\x20','9buwDQB','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','trackCucumberInstance:\x20saved\x20instance\x20contextId=','GjSsV','708274IuRILr','Processing\x20','hasPendingHooks','KEY_TEST_SCOPES','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','KEY_HOOKS_STARTED','KEY_HOOK_LAST_FINISHED','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','toString','./testFramework','KEY_HOOK_LOGS','getThreadId','endedAt','CucumberTestFramework','length','failure_reason','\x20pending\x20hooks\x20for\x20testId:\x20','POST','Tracked\x20cucumber\x20hook\x20event:\x20','\x20testState:\x20','KEY_TEST_RERUN_NAME','KEY_HOOK_FAILURE_TYPE','KEY_TEST_UUID','oYNXD','finished_at',',\x20storing\x20as\x20pending\x20hook','jWTDh','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','ySqvH','7999845lFMMPY','hooks','failed','location','runHooks','PRE','\x20with\x20id\x20','NONE','removePendingHooks','from','logCreatedEvent','KEY_HOOK_NAME','Updated\x20cucumber\x20test\x20result:\x20','hookState','name','getAllData','6eIzGho','getInstance','toISOString','../instances/testFrameworkInstance.js','KEY_EVENT_STARTED_AT','KEY_TEST_ATTACHMENTS','startedAt','processPendingHooks','KEY_AUTOMATE_SESSION_NAME','DEFAULT_TEST_RESULT','\x20and\x20args\x20=\x20','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','pkMFL','ydvuz','LOG_REPORT','KEY_HOOKS_FINISHED','readLogObjects','KEY_TEST_FAILURE_REASON','UwUMC','testData','matchHookRegex','base64','YVmXC','./constants/testFrameworkConstants.js','getPendingHooks','../state/testFrameworkState.js','resolveInstance','qpHaj','getCurrentHookState','26017552RwNXfO','JioWu','getTestFrameworks','getRef','key','INIT_TEST','get','createTestFrameworkEventPayload\x20testId:\x20','woEBE','IeCeZ','tJtuA'];a91_0x1820=function(){return _0xf364c1;};return a91_0x1820();}function a91_0x5e48(_0x4d5cbc,_0x1b0f2e){const _0x18207b=a91_0x1820();return a91_0x5e48=function(_0x5e48e3,_0x5b4c47){_0x5e48e3=_0x5e48e3-0xaa;let _0x4060bf=_0x18207b[_0x5e48e3];return _0x4060bf;},a91_0x5e48(_0x4d5cbc,_0x1b0f2e);}(function(_0x44ea4f,_0x44deb2){const _0x21a56e=a91_0x5e48,_0x435122=_0x44ea4f();while(!![]){try{const _0x3daca1=parseInt(_0x21a56e(0x12c))/0x1*(-parseInt(_0x21a56e(0xee))/0x2)+-parseInt(_0x21a56e(0x118))/0x3*(parseInt(_0x21a56e(0x12b))/0x4)+parseInt(_0x21a56e(0x163))/0x5+-parseInt(_0x21a56e(0x173))/0x6*(-parseInt(_0x21a56e(0x146))/0x7)+-parseInt(_0x21a56e(0xce))/0x8+parseInt(_0x21a56e(0x142))/0x9*(parseInt(_0x21a56e(0xe8))/0xa)+parseInt(_0x21a56e(0xb7))/0xb;if(_0x3daca1===_0x44deb2)break;else _0x435122['push'](_0x435122['shift']());}catch(_0x237b54){_0x435122['push'](_0x435122['shift']());}}}(a91_0x1820,0xe7962));const TestFramework=require(a91_0x49f560(0x14f)),TestFrameworkState=require(a91_0x49f560(0xb3)),HookState=require(a91_0x49f560(0xf0)),{createClassLogger}=require('../../../helpers/classLogger.js'),TestFrameworkInstance=require(a91_0x49f560(0x176)),CLIUtils=require(a91_0x49f560(0xe4)),TrackedInstance=require(a91_0x49f560(0x10f)),TestFrameworkConstants=require(a91_0x49f560(0xb1)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a91_0x49f560(0x134)),logger=createClassLogger(a91_0x49f560(0x153)),{v4:uuidv4}=require('uuid'),util=require('util'),TestInfo=require('../TestInfo.js'),GrpcClient=require(a91_0x49f560(0xda));class CucumberTestFramework extends TestFramework{constructor(_0x1543ad,_0x41660d,_0x2aff0c){super(_0x1543ad,_0x41660d,_0x2aff0c);}async[a91_0x49f560(0xfd)](_0x318042,_0x39cde7,_0x3217ef={}){const _0x289659=a91_0x49f560,_0x15f2ae={};_0x15f2ae[_0x289659(0x133)]=_0x289659(0x14d),_0x15f2ae[_0x289659(0xac)]=function(_0x4d57cf,_0x28e565){return _0x4d57cf===_0x28e565;},_0x15f2ae[_0x289659(0xc0)]=function(_0x3ed575,_0xca00a0){return _0x3ed575===_0xca00a0;},_0x15f2ae[_0x289659(0xd6)]=function(_0x34434f,_0x39c214){return _0x34434f===_0x39c214;},_0x15f2ae[_0x289659(0x130)]=_0x289659(0x119);const _0x4d7ed0=_0x15f2ae;await super['trackEvent'](_0x318042,_0x39cde7,_0x3217ef);const _0x5bf502=this[_0x289659(0xb4)](_0x318042,_0x39cde7,_0x3217ef);if(!_0x5bf502){logger['debug'](_0x4d7ed0['qczMb']);return;}try{let _0x1b4ab1,_0xdcf755;switch(_0x318042){case TestFrameworkState['TEST']:_0x1b4ab1=_0x3217ef['test'],_0xdcf755=TestInfo[_0x289659(0x13e)](_0x1b4ab1['id']);if(_0x4d7ed0[_0x289659(0xac)](_0x39cde7,HookState[_0x289659(0x168)])){logger[_0x289659(0x114)]('trackEvent\x20loading\x20testData\x20for\x20testId:\x20'+_0x1b4ab1['id']);const _0x55354b={};_0x55354b['testUUID']=_0xdcf755,_0x55354b['testData']=_0x1b4ab1,_0x5bf502[_0x289659(0xfe)](this[_0x289659(0xf9)](_0x55354b)),logger[_0x289659(0x114)](_0x289659(0x161)+_0x1b4ab1['id']),await this[_0x289659(0x17a)](_0x5bf502,_0x1b4ab1['id']);}else{if(_0x4d7ed0['IeCeZ'](_0x39cde7,HookState[_0x289659(0x157)])){const _0x8555d={};_0x8555d[_0x289659(0x122)]=_0xdcf755,_0x8555d[_0x289659(0xad)]=_0x1b4ab1,_0x5bf502[_0x289659(0xfe)](this['parseCucumberTestResult'](_0x8555d)),await this[_0x289659(0x17a)](_0x5bf502,_0x1b4ab1['id']);}}break;case TestFrameworkState[_0x289659(0x181)]:_0x4d7ed0['muqqW'](_0x39cde7,HookState[_0x289659(0x157)])&&await this[_0x289659(0xfa)](_0x5bf502,_0x318042,_0x3217ef);break;default:if(CLIUtils[_0x289659(0xae)](_0x318042['toString']()[_0x289659(0xea)]('.')[0x1])){const _0x503c3b=await this[_0x289659(0xca)](_0x5bf502,_0x318042,_0x39cde7,_0x3217ef);_0x5bf502['addMultipleEntries'](_0x503c3b);}else logger[_0x289659(0x114)](_0x289659(0xc3)+_0x318042+_0x289659(0xd0)+_0x39cde7);break;}}catch(_0x2454f1){logger['error'](util[_0x289659(0xd1)](_0x4d7ed0[_0x289659(0x130)],_0x318042,_0x39cde7,_0x3217ef[_0x289659(0x154)],_0x2454f1));}_0x3217ef[_0x289659(0xcc)]=_0x5bf502,await this[_0x289659(0x167)](_0x5bf502,_0x318042,_0x39cde7,_0x3217ef);}['resolveInstance'](_0x1dd849,_0x571675,_0x675600={}){const _0x21bf4a=a91_0x49f560,_0x3325e4={};_0x3325e4[_0x21bf4a(0x10c)]=function(_0x444169,_0x1a8b8d){return _0x444169===_0x1a8b8d;},_0x3325e4[_0x21bf4a(0x13c)]=function(_0x32189b,_0x57dba8){return _0x32189b===_0x57dba8;};const _0x119deb=_0x3325e4;let _0x1f9904=null;return(_0x119deb[_0x21bf4a(0x10c)](_0x1dd849,TestFrameworkState[_0x21bf4a(0xbc)])||_0x119deb[_0x21bf4a(0x13c)](_0x1dd849,TestFrameworkState[_0x21bf4a(0x16a)]))&&this[_0x21bf4a(0x121)](_0x1dd849,_0x675600),_0x1f9904=TestFramework[_0x21bf4a(0xfb)](),_0x1f9904;}[a91_0x49f560(0x121)](_0x42b432,_0x525728){const _0xddbf18=a91_0x49f560,_0x3e5b72=CLIUtils[_0xddbf18(0x113)](),_0x364d9f=TrackedInstance[_0xddbf18(0x117)](_0x3e5b72);let _0x1cbce7=null;logger[_0xddbf18(0x114)](_0xddbf18(0x101)+_0x3e5b72+',\x20state='+_0x42b432),_0x1cbce7=new TestFrameworkInstance(_0x364d9f,this[_0xddbf18(0xb9)](),this[_0xddbf18(0xcf)](),_0x42b432,HookState[_0xddbf18(0x16a)]),TestFramework[_0xddbf18(0xf6)](_0x364d9f,_0x1cbce7),logger[_0xddbf18(0x114)](_0xddbf18(0x144)+_0x364d9f[_0xddbf18(0xe0)]()+_0xddbf18(0xdd)+_0x3e5b72);}['parseCucumberTest'](_0x168e79){const _0x34f2dc=a91_0x49f560,_0x2f9859={};_0x2f9859[_0x34f2dc(0x145)]=_0x34f2dc(0x14a);const _0x22e469=_0x2f9859,{testUUID:_0x227476,testData:_0x1addd5}=_0x168e79;if(!_0x1addd5||!_0x1addd5['uuid'])return logger[_0x34f2dc(0x114)](_0x22e469[_0x34f2dc(0x145)]),{};const _0x5b0223=_0x227476,_0xd9a4f=_0x1addd5['uuid'],_0x513ff6=this['getTestFrameworks']()[0x0],_0x2390d9=this[_0x34f2dc(0xcf)](),_0x4e8d15={[TestFrameworkConstants[_0x34f2dc(0x115)]]:_0x513ff6,[TestFrameworkConstants[_0x34f2dc(0xd3)]]:_0x2390d9[_0x513ff6],[TestFrameworkConstants[_0x34f2dc(0xeb)]]:[],[TestFrameworkConstants[_0x34f2dc(0x182)]]:{},[TestFrameworkConstants[_0x34f2dc(0x14b)]]:{},[TestFrameworkConstants[_0x34f2dc(0x15c)]]:_0x5b0223,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants[_0x34f2dc(0x17c)],[TestFrameworkConstants[_0x34f2dc(0x17b)]]:_0x1addd5['name']||'',[TestFrameworkConstants['KEY_TEST_FILE_PATH']]:_0x1addd5['file_name']||'',[TestFrameworkConstants[_0x34f2dc(0x110)]]:_0xd9a4f,[TestFrameworkConstants[_0x34f2dc(0x13a)]]:_0x1addd5[_0x34f2dc(0x171)]||'',[TestFrameworkConstants[_0x34f2dc(0x105)]]:_0x1addd5[_0x34f2dc(0x166)]||'',[TestFrameworkConstants['KEY_TEST_CODE']]:_0x1addd5[_0x34f2dc(0xd9)]?.[_0x34f2dc(0x12d)]||null,[TestFrameworkConstants[_0x34f2dc(0xdf)]]:_0x1addd5[_0x34f2dc(0x13d)]||[],[TestFrameworkConstants[_0x34f2dc(0xe3)]]:_0x1addd5[_0x34f2dc(0x179)]||new Date()[_0x34f2dc(0x175)](),[TestFrameworkConstants[_0x34f2dc(0xf1)]]:_0x1addd5[_0x34f2dc(0x138)]?.[0x0]||'',[TestFrameworkConstants[_0x34f2dc(0x149)]]:_0x1addd5[_0x34f2dc(0x138)]||[],[TestFrameworkConstants[_0x34f2dc(0x15a)]]:_0x1addd5[_0x34f2dc(0x127)]?.[_0x34f2dc(0xf5)]||_0x1addd5[_0x34f2dc(0x171)]||'',[TestFrameworkConstants[_0x34f2dc(0xe6)]]:{},[TestFrameworkConstants[_0x34f2dc(0xef)]]:_0x1addd5[_0x34f2dc(0xd5)]||{}};TestInfo[_0x34f2dc(0xe9)](_0xd9a4f,_0x4e8d15),logger['debug']('Parsed\x20cucumber\x20test:\x20'+_0x1addd5['name']+'\x20with\x20UUID:\x20'+_0x5b0223);const _0xe0adde={};return _0xe0adde[_0xd9a4f]=_0x4e8d15,_0xe0adde;}[a91_0x49f560(0x109)](_0x1dc3b0){const _0x4fb9ac=a91_0x49f560,_0x199832={'iHXDD':'No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','qpHaj':'unknown','ecgfu':function(_0x596b6d,_0x102ffc){return _0x596b6d===_0x102ffc;},'FpywU':_0x4fb9ac(0x165),'ixrks':_0x4fb9ac(0xc4),'angGj':function(_0x28d930,_0x38b340,_0x414b98){return _0x28d930(_0x38b340,_0x414b98);},'xIiMT':function(_0x56cb6e,_0x18cf8a){return _0x56cb6e>_0x18cf8a;}},{testUUID:_0x30bec7,testData:_0x108bdc}=_0x1dc3b0;if(!_0x108bdc||!_0x108bdc[_0x4fb9ac(0x120)])return logger[_0x4fb9ac(0x114)](_0x199832[_0x4fb9ac(0x13f)]),{};const _0x2dfb9=this[_0x4fb9ac(0xb4)](TestFrameworkState['TEST'],HookState[_0x4fb9ac(0x157)]),_0xb63e3b=_0x108bdc[_0x4fb9ac(0x120)],_0x544582=TestInfo[_0x4fb9ac(0x10b)](_0xb63e3b)||{},_0x353fb2=_0x544582?_0x544582[TestFrameworkConstants[_0x4fb9ac(0xe6)]]||{}:{},_0xd080f4={..._0x544582,[TestFrameworkConstants['KEY_TEST_RESULT']]:_0x108bdc['result']||_0x199832[_0x4fb9ac(0xb5)],[TestFrameworkConstants[_0x4fb9ac(0x12e)]]:_0x108bdc['finishedAt']||new Date()[_0x4fb9ac(0x175)](),[TestFrameworkConstants['KEY_TEST_RESULT_AT']]:new Date()[_0x4fb9ac(0x175)](),[TestFrameworkConstants[_0x4fb9ac(0xe6)]]:_0x353fb2,[TestFrameworkConstants[_0x4fb9ac(0xd7)]]:[],[TestFrameworkConstants[_0x4fb9ac(0xef)]]:_0x108bdc[_0x4fb9ac(0xd5)]||{}};_0x199832[_0x4fb9ac(0xf7)](_0x108bdc[_0x4fb9ac(0xf4)],_0x199832[_0x4fb9ac(0x11a)])&&_0x108bdc[_0x4fb9ac(0xc2)]&&(_0xd080f4[TestFrameworkConstants['KEY_TEST_FAILURE_TYPE']]=_0x108bdc[_0x4fb9ac(0x111)]||_0x199832['ixrks'],_0xd080f4[TestFrameworkConstants[_0x4fb9ac(0xab)]]=_0x108bdc[_0x4fb9ac(0x155)]||'',_0xd080f4[TestFrameworkConstants[_0x4fb9ac(0xec)]]=_0x108bdc[_0x4fb9ac(0xc2)]);const _0x480bee=TestInfo[_0x4fb9ac(0x10b)](_0xb63e3b)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x5330ed=_0x199832['angGj'](getManualUploadLogs,_0x480bee,_0x2dfb9[_0x4fb9ac(0x172)]()['get'](_0xb63e3b)[TestFrameworkConstants[_0x4fb9ac(0x15c)]]);if(_0x199832['xIiMT'](_0x5330ed[_0x4fb9ac(0x154)],0x0)){const _0x1c6492=_0xd080f4[TestFrameworkConstants[_0x4fb9ac(0xd7)]]||[];_0xd080f4[TestFrameworkConstants[_0x4fb9ac(0xd7)]]=[..._0x1c6492,..._0x5330ed];}_0x108bdc['hooks']&&_0x199832[_0x4fb9ac(0x10a)](_0x108bdc[_0x4fb9ac(0x164)][_0x4fb9ac(0x154)],0x0)&&(_0xd080f4[TestFrameworkConstants[_0x4fb9ac(0x182)]]=_0x108bdc[_0x4fb9ac(0x164)]);TestInfo[_0x4fb9ac(0xe9)](_0xb63e3b,_0xd080f4),logger[_0x4fb9ac(0x114)](_0x4fb9ac(0x16f)+_0x108bdc[_0x4fb9ac(0x171)]+_0x4fb9ac(0xd2)+_0x108bdc[_0x4fb9ac(0xf4)]);const _0x138db5={};return _0x138db5[_0xb63e3b]=_0xd080f4,_0x138db5;}async[a91_0x49f560(0xca)](_0x1cd921,_0x501ed5,_0x3da62c,_0x509713){const _0x5cf979=a91_0x49f560,_0x42ddec={'CMdOx':'No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','jWTDh':function(_0x594522){return _0x594522();},'hCzIJ':function(_0x20df05,_0x17bb8d){return _0x20df05 in _0x17bb8d;},'pkMFL':function(_0x3721a8,_0x1b2343){return _0x3721a8===_0x1b2343;},'ySqvH':function(_0x56c39e,_0x400d4d){return _0x56c39e===_0x400d4d;},'HRjpS':function(_0x4f7712,_0x22b404){return _0x4f7712>_0x22b404;},'tJtuA':_0x5cf979(0x165),'OMDiQ':_0x5cf979(0xc4),'woEBE':_0x5cf979(0x10e),'JioWu':function(_0x4399da,_0x2e128a){return _0x4399da!==_0x2e128a;}},{hookData:_0x2b5f59}=_0x509713;if(!_0x2b5f59)return logger[_0x5cf979(0x114)](_0x42ddec[_0x5cf979(0x112)]),{};const _0x2957b1=_0x2b5f59[_0x5cf979(0x120)]||_0x42ddec[_0x5cf979(0x160)](uuidv4),_0x1c83b0=_0x2b5f59[_0x5cf979(0x132)],_0x30f7c7=_0x501ed5[_0x5cf979(0x14e)]()['split']('.')[0x1],_0x218aad=TestInfo[_0x5cf979(0x10b)](_0x1c83b0)[TestFrameworkConstants[_0x5cf979(0xe6)]]||{},_0x4c0957=_0x1cd921[_0x5cf979(0x172)]()['get'](_0x1c83b0);if(!_0x4c0957)return logger[_0x5cf979(0x114)](_0x5cf979(0x17e)+_0x1c83b0+_0x5cf979(0x15f)),this['storePendingHook'](_0x1cd921,_0x1c83b0,_0x501ed5,_0x3da62c,_0x509713),{};let _0xa5aaba=_0x4c0957[TestFrameworkConstants[_0x5cf979(0x14b)]];!_0xa5aaba&&(_0xa5aaba={});!_0x42ddec[_0x5cf979(0xd4)](_0x30f7c7,_0xa5aaba)&&(_0xa5aaba[_0x30f7c7]=[]);let _0x2c515a=_0x4c0957[TestFrameworkConstants[_0x5cf979(0x182)]];!_0x2c515a&&(_0x2c515a={});!_0x42ddec['hCzIJ'](_0x30f7c7,_0x2c515a)&&(_0x2c515a[_0x30f7c7]=[]);const _0x43ccad={[TestFrameworkConstants['KEY_HOOKS_STARTED']]:_0xa5aaba,[TestFrameworkConstants[_0x5cf979(0x182)]]:_0x2c515a},_0x362818={};_0x362818[_0x1c83b0]=_0x43ccad;const _0x180b8e=_0x362818;if(_0x42ddec[_0x5cf979(0x17f)](_0x3da62c,HookState[_0x5cf979(0x168)])){const _0x86ec83={[TestFrameworkConstants[_0x5cf979(0xff)]]:_0x2957b1,[TestFrameworkConstants[_0x5cf979(0x11c)]]:TestFrameworkConstants[_0x5cf979(0xdc)],[TestFrameworkConstants[_0x5cf979(0x177)]]:_0x2b5f59[_0x5cf979(0xcd)],[TestFrameworkConstants[_0x5cf979(0x150)]]:[],[TestFrameworkConstants[_0x5cf979(0x16e)]]:_0x2b5f59['hook_type'],[TestFrameworkConstants[_0x5cf979(0xe6)]]:_0x218aad};_0x86ec83[_0x5cf979(0xbb)]=_0x30f7c7;const _0x14a6f8=_0x86ec83;_0xa5aaba[_0x30f7c7][_0x5cf979(0x106)](_0x14a6f8),_0x180b8e[_0x1c83b0][TestFrameworkConstants[_0x5cf979(0x131)]]=_0x30f7c7,logger[_0x5cf979(0x114)]('trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20'+_0x30f7c7+'\x20&\x20hook\x20=\x20'+_0x14a6f8+_0x5cf979(0x107)+_0x509713);}else{if(_0x42ddec['ySqvH'](_0x3da62c,HookState[_0x5cf979(0x157)])){const _0x35c292=_0x2b5f59[_0x5cf979(0xf4)],_0x316ea9=_0xa5aaba[_0x30f7c7]||[];logger[_0x5cf979(0x114)]('trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20'+_0x316ea9+_0x5cf979(0x17d)+_0x509713);if(_0x42ddec['HRjpS'](_0x316ea9[_0x5cf979(0x154)],0x0)){const _0x5e79ce=_0x316ea9[_0x5cf979(0x125)]();_0x42ddec[_0x5cf979(0x162)](_0x2b5f59[_0x5cf979(0xf4)],_0x42ddec[_0x5cf979(0xc1)])&&_0x2b5f59[_0x5cf979(0x11b)]?(_0x5e79ce[TestFrameworkConstants[_0x5cf979(0x15b)]]=_0x2b5f59[_0x5cf979(0x111)]||_0x42ddec['OMDiQ'],_0x5e79ce[TestFrameworkConstants['KEY_HOOK_FAILURE_REASON']]=_0x2b5f59[_0x5cf979(0x155)]||'',_0x5e79ce[TestFrameworkConstants[_0x5cf979(0xd8)]]=_0x2b5f59[_0x5cf979(0x11b)]):_0x5e79ce[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x42ddec[_0x5cf979(0xbf)];_0x42ddec[_0x5cf979(0xb8)](_0x35c292,TestFrameworkConstants[_0x5cf979(0xdc)])&&(_0x5e79ce[TestFrameworkConstants[_0x5cf979(0x11c)]]=_0x35c292);_0x5e79ce[TestFrameworkConstants[_0x5cf979(0xe7)]]=_0x2b5f59[_0x5cf979(0x15e)]||new Date()[_0x5cf979(0x175)](),_0x5e79ce[TestFrameworkConstants[_0x5cf979(0xe6)]]=_0x218aad;const _0x34da4f=_0x5e79ce[TestFrameworkConstants[_0x5cf979(0xff)]];!_0x2c515a[_0x30f7c7]&&(_0x2c515a[_0x30f7c7]=[]),_0x2c515a[_0x30f7c7][_0x5cf979(0x106)](_0x5e79ce),_0x180b8e[_0x1c83b0][TestFrameworkConstants[_0x5cf979(0x14c)]]=_0x30f7c7;}}}return logger[_0x5cf979(0x114)](_0x5cf979(0x158)+_0x2b5f59['hook_type']+_0x5cf979(0x169)+_0x2957b1+_0x5cf979(0x124)+_0x1c83b0),_0x180b8e;}[a91_0x49f560(0x129)](_0x3238eb){const _0x1252d9=a91_0x49f560,_0x2e7de4={};_0x2e7de4[_0x1252d9(0x102)]=_0x1252d9(0xaf);const _0x21a155=_0x2e7de4;try{const _0x9e902d=_0x3238eb[_0x1252d9(0x135)]?_0x3238eb['test']['id']:_0x3238eb['hookData'][_0x1252d9(0x132)],_0x475277=_0x3238eb['instance'],_0x396166=_0x475277[_0x1252d9(0x11e)](),_0x376c31=_0x475277[_0x1252d9(0x172)]()['get'](_0x9e902d);if(!_0x376c31)return logger[_0x1252d9(0x114)](_0x1252d9(0x126)+_0x9e902d),{};logger[_0x1252d9(0x114)](_0x1252d9(0xbe)+_0x9e902d);const {[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x397820='',[TestFrameworkConstants[_0x1252d9(0xd3)]]:_0x4dcb5e='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x553733='',[TestFrameworkConstants[_0x1252d9(0x12e)]]:_0x1739d9=''}=_0x376c31,_0x2f5ba4=_0x475277[_0x1252d9(0x137)]()['toString']()['split']('.')[0x1],_0x5ec426=_0x475277[_0x1252d9(0xb6)]()['toString']()[_0x1252d9(0xea)]('.')[0x1],_0x5883ac=global?.[_0x1252d9(0xcb)]??0x0,_0x1db24b=_0x475277[_0x1252d9(0xba)](),_0x211ceb=Buffer[_0x1252d9(0x16c)](JSON['stringify'](_0x376c31))[_0x1252d9(0x14e)](_0x21a155['nQzAC']),_0x3b8855={'hash':_0x396166['getId'](),'threadId':_0x396166[_0x1252d9(0x151)]()[_0x1252d9(0x14e)](),'processId':_0x396166[_0x1252d9(0x12f)]()[_0x1252d9(0x14e)]()},_0x48f5d0={};_0x48f5d0[_0x1252d9(0xed)]=_0x5883ac,_0x48f5d0['testFrameworkName']=_0x397820,_0x48f5d0[_0x1252d9(0xe5)]=_0x4dcb5e,_0x48f5d0[_0x1252d9(0x104)]=_0x2f5ba4,_0x48f5d0[_0x1252d9(0x170)]=_0x5ec426,_0x48f5d0[_0x1252d9(0x179)]=_0x553733,_0x48f5d0[_0x1252d9(0x152)]=_0x1739d9,_0x48f5d0[_0x1252d9(0x120)]=_0x1db24b,_0x48f5d0[_0x1252d9(0xc5)]=_0x211ceb,_0x48f5d0[_0x1252d9(0x136)]=_0x3b8855;const _0x23b569=_0x48f5d0;return logger[_0x1252d9(0x114)](_0x1252d9(0xf2)+_0x9e902d+_0x1252d9(0x159)+_0x2f5ba4+'\x20hookState:\x20'+_0x5ec426),_0x23b569;}catch(_0x405f49){return logger[_0x1252d9(0xe2)]('Error\x20in\x20createTestFrameworkEventPayload:\x20'+util[_0x1252d9(0xd1)](_0x405f49)),{};}}async[a91_0x49f560(0xfa)](_0x4f4e3c,_0x5de471,_0x7bb869){const _0x5ca956=a91_0x49f560,_0x56942f={'oYNXD':function(_0x333209,_0x438a7c,_0x243781){return _0x333209(_0x438a7c,_0x243781);},'hKFrT':function(_0x25e0ad,_0x1fbe32){return _0x25e0ad===_0x1fbe32;},'pOkXq':_0x5ca956(0xc6),'ydvuz':function(_0x3cf490,_0x1c8303){return _0x3cf490/_0x1c8303;},'YVmXC':function(_0x58d267,_0x49ffe2){return _0x58d267<_0x49ffe2;},'hQbID':function(_0x33b4a9,_0x107084){return _0x33b4a9*_0x107084;},'tpmZM':function(_0x125e30,_0x20437e){return _0x125e30+_0x20437e;},'oFeax':function(_0x385f11,_0x442cd6){return _0x385f11+_0x442cd6;},'pDism':function(_0x516745,_0x15b674){return _0x516745+_0x15b674;},'ybqDe':_0x5ca956(0xc8)};try{const _0x2f501d=_0x7bb869[_0x5ca956(0x122)],_0x53acd8=_0x4f4e3c[_0x5ca956(0x172)]()[_0x5ca956(0xbd)](_0x2f501d),{[TestFrameworkConstants[_0x5ca956(0x115)]]:_0x589a10='',[TestFrameworkConstants[_0x5ca956(0xd3)]]:_0x866396=''}=_0x53acd8,_0xaee461=TestInfo[_0x5ca956(0xaa)](_0x2f501d),_0x4c52f6=TestInfo[_0x5ca956(0x10b)](_0x2f501d)[TestFrameworkConstants[_0x5ca956(0x178)]]||{},_0x53c7e8=_0x56942f[_0x5ca956(0x15d)](getMediaArtifactsLogs,_0x4c52f6,_0x4f4e3c[_0x5ca956(0x172)]()[_0x5ca956(0xbd)](_0x2f501d)[TestFrameworkConstants['KEY_TEST_UUID']]),_0x1f2045=(_0xaee461||[])['concat'](_0x53c7e8||[]);if(!_0x1f2045||_0x56942f[_0x5ca956(0xc9)](_0x1f2045['length'],0x0)){logger[_0x5ca956(0x114)](_0x56942f[_0x5ca956(0x100)]);return;}const _0x316f6a=0x28,_0x512c2d=Math[_0x5ca956(0xdb)](_0x56942f[_0x5ca956(0x180)](_0x1f2045['length'],_0x316f6a));for(let _0x59f2e3=0x0;_0x56942f[_0x5ca956(0xb0)](_0x59f2e3,_0x512c2d);_0x59f2e3++){const _0x28fd89=_0x56942f[_0x5ca956(0x116)](_0x59f2e3,_0x316f6a),_0x19e781=_0x56942f[_0x5ca956(0x13b)](_0x28fd89,_0x316f6a),_0x10ab55=_0x1f2045[_0x5ca956(0x12a)](_0x28fd89,_0x19e781),_0x42e7b7={'platformIndex':global?.[_0x5ca956(0xcb)]??0x0,'logs':_0x10ab55,'testFrameworkName':_0x589a10,'testFrameworkVersion':_0x866396,'testFrameworkState':_0x5de471['toString']()[_0x5ca956(0xea)]('.')[0x1]};logger[_0x5ca956(0x114)](_0x5ca956(0x128)+_0x2f501d+_0x5ca956(0x108)+_0x56942f[_0x5ca956(0x11d)](_0x59f2e3,0x1)+'/'+_0x512c2d+_0x5ca956(0x11f)+util[_0x5ca956(0xf3)](_0x42e7b7));const _0x5bca36=await GrpcClient[_0x5ca956(0x174)]()[_0x5ca956(0x16d)](_0x42e7b7);logger[_0x5ca956(0x114)]('sendLogCreatedEvent:\x20for\x20testId:\x20'+_0x2f501d+'\x20batch\x20'+_0x56942f['pDism'](_0x59f2e3,0x1)+'/'+_0x512c2d+_0x5ca956(0xf8)+util['inspect'](_0x5bca36));}}catch(_0x4c7059){logger[_0x5ca956(0xe2)]('sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20'+util[_0x5ca956(0xd1)](_0x4c7059));}logger[_0x5ca956(0x114)](_0x56942f['ybqDe']);}[a91_0x49f560(0xe1)](_0x3b9e94,_0x119ad0,_0x1b432a,_0x495119,_0x3b78c2){const _0x4c4b0f=a91_0x49f560,_0x19abba={'testId':_0x119ad0,'testFrameworkState':_0x1b432a,'hookState':_0x495119,'args':_0x3b78c2,'timestamp':new Date()['toISOString']()};_0x3b9e94[_0x4c4b0f(0xde)](_0x119ad0,_0x19abba),logger['debug'](_0x4c4b0f(0x139)+_0x119ad0+_0x4c4b0f(0x103)+_0x1b432a+_0x4c4b0f(0x141)+_0x495119);}async['processPendingHooks'](_0x39d301,_0x4e9d1a){const _0x3d736f=a91_0x49f560,_0x246177={};_0x246177[_0x3d736f(0xc7)]=function(_0x1b18c7,_0x14429a){return _0x1b18c7>_0x14429a;};const _0x1c6cee=_0x246177;if(!_0x39d301[_0x3d736f(0x148)](_0x4e9d1a))return;const _0x1e9c1e=_0x39d301[_0x3d736f(0xb2)](_0x4e9d1a);logger['debug'](_0x3d736f(0x147)+_0x1e9c1e[_0x3d736f(0x154)]+_0x3d736f(0x156)+_0x4e9d1a);for(const _0x593c41 of _0x1e9c1e){try{const _0x2e9a41=await this[_0x3d736f(0xca)](_0x39d301,_0x593c41[_0x3d736f(0x104)],_0x593c41[_0x3d736f(0x170)],_0x593c41[_0x3d736f(0x123)]);_0x2e9a41&&_0x1c6cee[_0x3d736f(0xc7)](Object[_0x3d736f(0x140)](_0x2e9a41)['length'],0x0)&&_0x39d301[_0x3d736f(0xfe)](_0x2e9a41),await this['runHooks'](_0x39d301,_0x593c41[_0x3d736f(0x104)],_0x593c41['hookState'],_0x593c41['args']);}catch(_0x226dd7){logger[_0x3d736f(0xe2)]('Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20'+_0x4e9d1a+_0x3d736f(0xfc)+_0x226dd7);}}_0x39d301[_0x3d736f(0x16b)](_0x4e9d1a),logger[_0x3d736f(0x114)](_0x3d736f(0x143)+_0x4e9d1a);}}module[a91_0x49f560(0x10d)]=CucumberTestFramework;