browserstack-node-sdk 1.68.1 → 1.68.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 (220) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  42. package/src/bin/codeceptjs/command.js +1 -1
  43. package/src/bin/codeceptjs/helper.js +1 -1
  44. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  45. package/src/bin/cucumber-js/command.js +1 -1
  46. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  48. package/src/bin/cucumber-js/test-observability.js +1 -1
  49. package/src/bin/cucumber-js/test.setup.js +1 -1
  50. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  51. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  52. package/src/bin/detox/a11ySetup.js +1 -1
  53. package/src/bin/detox/command.js +1 -1
  54. package/src/bin/detox/modifyDetoxConf.js +1 -1
  55. package/src/bin/detox/traEmitter.js +1 -1
  56. package/src/bin/integrations/command.js +1 -1
  57. package/src/bin/integrations/constants.js +1 -1
  58. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
  59. package/src/bin/jasmine/command.js +1 -1
  60. package/src/bin/jasmine/test.setup.js +1 -1
  61. package/src/bin/jasmine/testRunMap.js +1 -1
  62. package/src/bin/jest/command.js +1 -1
  63. package/src/bin/jest/customImplements/customCircus.js +1 -1
  64. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  65. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  66. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  67. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  68. package/src/bin/jest/jest.setup.js +1 -1
  69. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  70. package/src/bin/jest/test-observability/helper.js +1 -1
  71. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  72. package/src/bin/jest/test-observability/test-details.js +1 -1
  73. package/src/bin/jest/test.setup.js +1 -1
  74. package/src/bin/jest/test_before.setup.js +1 -1
  75. package/src/bin/launcher/launcher.js +1 -1
  76. package/src/bin/load/index.js +1 -1
  77. package/src/bin/load/loadErrors.js +1 -1
  78. package/src/bin/load/loadUtils.js +1 -1
  79. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  80. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  81. package/src/bin/mocha/command.js +1 -1
  82. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  83. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  84. package/src/bin/mocha/test.setup.js +1 -1
  85. package/src/bin/newman/command.js +1 -1
  86. package/src/bin/newman/helper.js +1 -1
  87. package/src/bin/newman/reporter/index.js +1 -1
  88. package/src/bin/newman/scriptRunner.js +1 -1
  89. package/src/bin/nightwatch/command.js +1 -1
  90. package/src/bin/node-generic/client.js +1 -1
  91. package/src/bin/playwright/accessibility-helper.js +1 -1
  92. package/src/bin/playwright/command.js +1 -1
  93. package/src/bin/playwright/globalSetup.js +1 -1
  94. package/src/bin/playwright/mock-process.js +1 -1
  95. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  96. package/src/bin/playwright/patches.js +1 -1
  97. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  98. package/src/bin/playwright/reporter/reporter.js +1 -1
  99. package/src/bin/playwright/reporter/test-details.js +1 -1
  100. package/src/bin/playwright/reporterArgs.js +1 -1
  101. package/src/bin/playwright/sessionDetails.js +1 -1
  102. package/src/bin/puppeteer/patches.js +1 -1
  103. package/src/bin/puppeteer/sessionDetails.js +1 -1
  104. package/src/bin/puppeteer/test.setup.js +1 -1
  105. package/src/bin/runner.js +1 -1
  106. package/src/bin/setup.js +1 -1
  107. package/src/bin/test-runner/index.js +1 -1
  108. package/src/bin/test-runner/runTest.js +1 -1
  109. package/src/bin/test-runner/testWorker.js +1 -1
  110. package/src/bin/testcafe/a11y-runner.js +1 -1
  111. package/src/bin/testcafe/command.js +1 -1
  112. package/src/bin/testcafe/reporter/index.js +1 -1
  113. package/src/bin/testcafe/reporter/tcUtils.js +1 -1
  114. package/src/bin/testcafe/session-registry.js +1 -1
  115. package/src/bin/testcafe/stdout-interceptor.js +1 -1
  116. package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
  117. package/src/bin/testcafe/w3c-driver.js +1 -1
  118. package/src/bin/utils/apiUtilityMethods.js +1 -1
  119. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  120. package/src/bin/utils/constants.js +1 -1
  121. package/src/bin/utils/log4jsAppender.js +1 -1
  122. package/src/bin/utils/logPatcher.js +1 -1
  123. package/src/bin/utils/logReportingAPI.js +1 -1
  124. package/src/bin/utils/playwright-patcher.js +1 -1
  125. package/src/bin/utils/puppeteer-patcher.js +1 -1
  126. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  127. package/src/bin/utils/sharedUtils.js +1 -1
  128. package/src/bin/v2/TestInfo.js +1 -1
  129. package/src/bin/v2/browserstackCLI.js +1 -1
  130. package/src/bin/v2/cliUtils.js +1 -1
  131. package/src/bin/v2/customTagManager.js +1 -1
  132. package/src/bin/v2/eventDispatcher.js +1 -1
  133. package/src/bin/v2/framework/automationFramework.js +1 -1
  134. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  135. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  136. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  137. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  138. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  139. package/src/bin/v2/framework/nodeGenericTestFramework.js +1 -1
  140. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  141. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  142. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  143. package/src/bin/v2/framework/testFramework.js +1 -1
  144. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  145. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  146. package/src/bin/v2/grpcClient.js +1 -1
  147. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  148. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  149. package/src/bin/v2/instances/trackedContext.js +1 -1
  150. package/src/bin/v2/instances/trackedInstance.js +1 -1
  151. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  152. package/src/bin/v2/modules/baseModule.js +1 -1
  153. package/src/bin/v2/modules/loadTestModule.js +1 -1
  154. package/src/bin/v2/modules/observabilityModule.js +1 -1
  155. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  156. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  157. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  158. package/src/bin/v2/modules/testhubModule.js +1 -1
  159. package/src/bin/v2/sdkErrorHandler.js +1 -1
  160. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  161. package/src/bin/v2/state/hookState.js +1 -1
  162. package/src/bin/v2/state/testFrameworkState.js +1 -1
  163. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  164. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  165. package/src/bin/v2/utils/jest-utils.js +1 -1
  166. package/src/bin/vanilla-js/command.js +1 -1
  167. package/src/browserStackSdk.js +1 -1
  168. package/src/helpers/BrowserStackSetup.js +1 -1
  169. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  170. package/src/helpers/accessibility-automation/constants.js +1 -1
  171. package/src/helpers/accessibility-automation/helper.js +1 -1
  172. package/src/helpers/accessibility-automation/scripts.js +1 -1
  173. package/src/helpers/ats/constants.js +1 -1
  174. package/src/helpers/ats/helper.js +1 -1
  175. package/src/helpers/caCertHelper.js +1 -1
  176. package/src/helpers/capsMapping.js +1 -1
  177. package/src/helpers/central-scanner/constants.js +1 -1
  178. package/src/helpers/central-scanner/helpers.js +1 -1
  179. package/src/helpers/classLogger.js +1 -1
  180. package/src/helpers/driverInitErrorReporter.js +1 -1
  181. package/src/helpers/globals.js +1 -1
  182. package/src/helpers/helper.js +1 -1
  183. package/src/helpers/logger.js +1 -1
  184. package/src/helpers/metadata.js +1 -1
  185. package/src/helpers/patchHelper.js +1 -1
  186. package/src/helpers/patchHelpers.js +1 -1
  187. package/src/helpers/percy/Percy.js +1 -1
  188. package/src/helpers/percy/PercyBinary.js +1 -1
  189. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  190. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  191. package/src/helpers/percy/PercySDK.js +1 -1
  192. package/src/helpers/percy/index.js +1 -1
  193. package/src/helpers/percy/utils.js +1 -1
  194. package/src/helpers/performance/constants.js +1 -1
  195. package/src/helpers/performance/performance-tester.js +1 -1
  196. package/src/helpers/playwright-helper.js +1 -1
  197. package/src/helpers/processHelper.js +1 -1
  198. package/src/helpers/puppeteer-helper.js +1 -1
  199. package/src/helpers/request-spy.js +1 -1
  200. package/src/helpers/setKeepAlive.js +1 -1
  201. package/src/helpers/stackFrameUtils.js +1 -1
  202. package/src/helpers/test-observability/constants.js +1 -1
  203. package/src/helpers/test-observability/error-handler.js +1 -1
  204. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  205. package/src/helpers/test-observability/sessionHandler.js +1 -1
  206. package/src/helpers/test-observability/utils.js +1 -1
  207. package/src/helpers/test-orchestration/constants.js +1 -1
  208. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  209. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  210. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  211. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  212. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  213. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  214. package/src/helpers/testhub/constants.js +1 -1
  215. package/src/helpers/testhub/testhubHandler.js +1 -1
  216. package/src/helpers/testhub/utils.js +1 -1
  217. package/src/helpers/utilities.js +1 -1
  218. package/src/helpers/w3cMapping.js +1 -1
  219. package/src/hubAllocationMethods.js +1 -1
  220. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a89_0x130179=a89_0x3b65;(function(_0x30424a,_0x57a87a){const _0x1e617f=a89_0x3b65,_0x3c8e91=_0x30424a();while(!![]){try{const _0x303576=-parseInt(_0x1e617f(0x107))/0x1*(-parseInt(_0x1e617f(0xe7))/0x2)+parseInt(_0x1e617f(0xdb))/0x3+-parseInt(_0x1e617f(0x127))/0x4+-parseInt(_0x1e617f(0x18d))/0x5+-parseInt(_0x1e617f(0x199))/0x6+-parseInt(_0x1e617f(0x1a2))/0x7*(parseInt(_0x1e617f(0x166))/0x8)+parseInt(_0x1e617f(0xe4))/0x9;if(_0x303576===_0x57a87a)break;else _0x3c8e91['push'](_0x3c8e91['shift']());}catch(_0x1c28e1){_0x3c8e91['push'](_0x3c8e91['shift']());}}}(a89_0x204c,0xe7278));function a89_0x3b65(_0x36e3d8,_0x4ee0b4){const _0x204c37=a89_0x204c();return a89_0x3b65=function(_0x3b6504,_0x59db33){_0x3b6504=_0x3b6504-0xcc;let _0xaac49f=_0x204c37[_0x3b6504];return _0xaac49f;},a89_0x3b65(_0x36e3d8,_0x4ee0b4);}const fs=require('fs'),os=require('os'),url=require(a89_0x130179(0x129)),path=require(a89_0x130179(0x1a5)),{exec}=require(a89_0x130179(0x108)),{https}=require(a89_0x130179(0xea)),yauzl=require('yauzl'),util=require(a89_0x130179(0xff)),{getFrameworkVersion}=require(a89_0x130179(0xd1)),{threadId}=require(a89_0x130179(0x188)),PerformanceTester=require(a89_0x130179(0x102)),{EVENTS:PerformanceEvents}=require(a89_0x130179(0x18e)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a89_0x130179(0x11c)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a89_0x130179(0x10a)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a89_0x130179(0x13b)),{createClassLogger}=require('../../helpers/classLogger.js'),TestFrameworkInstance=require(a89_0x130179(0x144)),HookState=require('./state/hookState.js'),TestFrameworkState=require('./state/testFrameworkState.js'),AutomationFrameworkState=require(a89_0x130179(0x149)),TestFrameworkConstants=require(a89_0x130179(0x162)),logger=createClassLogger(a89_0x130179(0x18f)),{getBStackAPIUrl}=require(a89_0x130179(0x1af));class CLIUtils{[a89_0x130179(0x183)]={};['testFrameworkDetail']={};static[a89_0x130179(0x10b)](){const _0x46f8d8=a89_0x130179,_0x3c56e8={};_0x3c56e8[_0x46f8d8(0xed)]=function(_0x4a05da,_0x2f253){return _0x4a05da===_0x2f253;},_0x3c56e8[_0x46f8d8(0xce)]='development';const _0x6791b5=_0x3c56e8;return _0x6791b5[_0x46f8d8(0xed)](process['env'][_0x46f8d8(0x137)],_0x6791b5['AxmwB']);}static[a89_0x130179(0x12c)](){const _0x37b9fb=a89_0x130179,_0x1167ac={};return _0x1167ac['id']=process[_0x37b9fb(0x181)][_0x37b9fb(0x137)],_0x1167ac[_0x37b9fb(0x14a)]='unix:/tmp/sdk-platform-'+process[_0x37b9fb(0x181)]['BROWSERSTACK_CLI_ENV']+'.sock',_0x1167ac;}static[a89_0x130179(0x152)](){const _0x1d4c56=a89_0x130179,_0x4a7642={'ASlvL':function(_0x5e7f23,_0x24bb15){return _0x5e7f23(_0x24bb15);},'xTuTA':_0x1d4c56(0x13e)};return _0x4a7642['ASlvL'](require,_0x4a7642['xTuTA'])['version'];}static[a89_0x130179(0xf5)](){const _0x4a3a13=a89_0x130179,_0x4daeed={};_0x4daeed[_0x4a3a13(0x171)]=_0x4a3a13(0xee);const _0x223ce6=_0x4daeed;return _0x223ce6['fgmVN'];}static async[a89_0x130179(0x157)](_0x35cce9){const _0xf545f5=a89_0x130179,_0x7efc2={'VjVPP':'Configuring\x20Cli\x20path.','AlEkJ':function(_0x392103,_0x3aa0e0){return _0x392103(_0x3aa0e0);},'YKtxk':_0xf545f5(0x176)};logger[_0xf545f5(0x16a)](_0x7efc2[_0xf545f5(0x13d)]);const _0x36bfc9=process['env']['SDK_CLI_BIN_PATH'];if(!_0x7efc2[_0xf545f5(0x180)](isNullOrEmpty,_0x36bfc9))return logger[_0xf545f5(0x16a)]('Development\x20Cli\x20Path:\x20'+_0x36bfc9),_0x36bfc9;try{const _0x49a303=this[_0xf545f5(0xe0)]();if(_0x7efc2['AlEkJ'](isNullOrEmpty,_0x49a303))throw new Error(_0x7efc2[_0xf545f5(0x117)]);const _0x1da9bc=this[_0xf545f5(0x19d)](_0x49a303),_0x2dc8f2=await this[_0xf545f5(0x165)](_0x1da9bc,_0x49a303,_0x35cce9);return logger[_0xf545f5(0x16a)](_0xf545f5(0x123)+_0x2dc8f2),_0x2dc8f2;}catch(_0x121154){logger[_0xf545f5(0x16a)](_0xf545f5(0xcf)+util[_0xf545f5(0x16e)](_0x121154));}return null;}static async[a89_0x130179(0x165)](_0x5ef920,_0x579149,_0x15eb47){const _0x4414be=a89_0x130179,_0x194d3e={'YnOAv':function(_0x3f9625){return _0x3f9625();},'PMJJK':function(_0x4914dc,_0x273560){return _0x4914dc(_0x273560);},'kPUPT':function(_0x558389,_0x32b79c,_0x1510b4){return _0x558389(_0x32b79c,_0x1510b4);},'nYwds':_0x4414be(0xda),'PzIep':_0x4414be(0x129)};PerformanceTester['start'](PerformanceEvents[_0x4414be(0x146)]);try{logger['info'](_0x4414be(0x19a)+_0x5ef920);const _0x4a66aa=_0x194d3e[_0x4414be(0x16c)](getHostInfo),_0x21d68d={'sdk_version':CLIUtils[_0x4414be(0x152)](),'os':_0x4a66aa['platform'],'os_arch':_0x4a66aa[_0x4414be(0x145)],'cli_version':'0','sdk_language':this[_0x4414be(0xf5)]()};!_0x194d3e['PMJJK'](isNullOrEmpty,_0x5ef920)&&(_0x21d68d[_0x4414be(0x164)]=await this[_0x4414be(0xf2)](_0x5ef920+_0x4414be(0x169)));const _0x45ed02=await this[_0x4414be(0x182)](_0x21d68d,_0x15eb47);process[_0x4414be(0x181)][_0x4414be(0xdc)]&&(logger[_0x4414be(0x18c)](_0x4414be(0x1a1)+process[_0x4414be(0x181)][_0x4414be(0xdc)]),_0x45ed02['data'][_0x4414be(0x129)]=process[_0x4414be(0x181)][_0x4414be(0xdc)]);if(_0x194d3e[_0x4414be(0x15a)](nestedKeyValue,_0x45ed02,[_0x194d3e[_0x4414be(0xfd)],_0x194d3e['PzIep']])){logger[_0x4414be(0x16a)](_0x4414be(0x19f)+_0x21d68d[_0x4414be(0x164)]);if(!_0x194d3e['PMJJK'](isNullOrEmpty,_0x5ef920)&&this[_0x4414be(0xf1)](_0x5ef920))return logger[_0x4414be(0x14f)](_0x4414be(0x161)+_0x5ef920),_0x5ef920;return await this[_0x4414be(0x15f)](_0x194d3e[_0x4414be(0x15a)](nestedKeyValue,_0x45ed02,[_0x194d3e[_0x4414be(0xfd)],_0x194d3e[_0x4414be(0x100)]]),_0x579149);}return _0x5ef920;}finally{PerformanceTester['end'](PerformanceEvents[_0x4414be(0x146)]);}}static['getCliDir'](){const _0x536d9d=a89_0x130179,_0x400a9c={'NkMzK':function(_0x2b8f43,_0x2f03e6){return _0x2b8f43(_0x2f03e6);},'GMQnQ':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','OlcwR':'cli'},_0x4d6280=this[_0x536d9d(0x156)]();try{if(_0x400a9c[_0x536d9d(0x133)](isNullOrEmpty,_0x4d6280))throw new Error(_0x400a9c['GMQnQ']);const _0x45b7f5=path[_0x536d9d(0x11a)](_0x4d6280,_0x400a9c['OlcwR']);return!fs[_0x536d9d(0x148)](_0x45b7f5)&&_0x400a9c[_0x536d9d(0x133)](createDir,_0x45b7f5),_0x45b7f5;}catch(_0x5430f1){logger[_0x536d9d(0x16a)](_0x536d9d(0x122)+util[_0x536d9d(0x16e)](_0x5430f1));}}static[a89_0x130179(0x156)](){const _0x3857c9=a89_0x130179,_0x3d7e6e={'tOmKK':_0x3857c9(0x155),'KPtQd':function(_0x983a19,_0x58b712){return _0x983a19(_0x58b712);},'yaxTj':function(_0x1f5e64,_0x2197a5){return _0x1f5e64(_0x2197a5);},'mLDCo':function(_0x4a2751,_0x425861){return _0x4a2751(_0x425861);},'xMmWA':function(_0x55d688,_0x529cef){return _0x55d688(_0x529cef);}},_0x413fc4=[process[_0x3857c9(0x181)][_0x3857c9(0x135)],path['join'](os[_0x3857c9(0x14e)](),_0x3d7e6e[_0x3857c9(0x112)]),path[_0x3857c9(0x11a)](os[_0x3857c9(0x151)](),_0x3d7e6e[_0x3857c9(0x112)])];for(const _0x3eddb4 of _0x413fc4){if(_0x3d7e6e[_0x3857c9(0xd5)](isNullOrEmpty,_0x3eddb4))continue;try{if(fs['existsSync'](_0x3eddb4)){logger[_0x3857c9(0x16a)](_0x3857c9(0x118)+_0x3eddb4+_0x3857c9(0x172));if(!_0x3d7e6e['yaxTj'](isModifiable,_0x3eddb4)){logger['debug'](_0x3857c9(0x170)+_0x3eddb4);const _0x32f1b4=_0x3d7e6e[_0x3857c9(0x187)](setReadWriteExecuteAccess,_0x3eddb4);if(!_0x3d7e6e[_0x3857c9(0xeb)](isTrue,_0x32f1b4)){logger[_0x3857c9(0x14f)](_0x3857c9(0x17a)+_0x3eddb4);continue;}}}else{logger[_0x3857c9(0x16a)](_0x3857c9(0xcd)+_0x3eddb4),_0x3d7e6e[_0x3857c9(0x187)](createDir,_0x3eddb4),logger[_0x3857c9(0x16a)](_0x3857c9(0x170)+_0x3eddb4);const _0x597129=_0x3d7e6e[_0x3857c9(0xd5)](setReadWriteExecuteAccess,_0x3eddb4);!_0x3d7e6e[_0x3857c9(0x111)](isTrue,_0x597129)&&logger[_0x3857c9(0x14f)](_0x3857c9(0x17a)+_0x3eddb4);}return _0x3eddb4;}catch(_0x2854f5){logger[_0x3857c9(0x128)]('Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20'+util[_0x3857c9(0x16e)](_0x2854f5));}}return null;}static[a89_0x130179(0x19d)](_0x2e7b6b){const _0x388687=a89_0x130179,_0x16d768={};_0x16d768[_0x388687(0x15e)]=function(_0xec22c7,_0x127847){return _0xec22c7>_0x127847;},_0x16d768[_0x388687(0xe3)]=function(_0xb53864,_0x37ec8e){return _0xb53864>_0x37ec8e;};const _0x302cbf=_0x16d768;try{if(!fs[_0x388687(0x148)](_0x2e7b6b)||!fs[_0x388687(0x168)](_0x2e7b6b)[_0x388687(0x120)]())return'';const _0x32703d=fs[_0x388687(0x1b6)](_0x2e7b6b)[_0x388687(0x14b)](_0x4f1d29=>path['join'](_0x2e7b6b,_0x4f1d29))[_0x388687(0x10f)](_0x95167a=>fs[_0x388687(0x168)](_0x95167a)[_0x388687(0x194)]()&&path[_0x388687(0x140)](_0x95167a)[_0x388687(0xf8)](_0x388687(0x11e)));if(_0x302cbf['OqWyh'](_0x32703d[_0x388687(0xd4)],0x0)){const _0x2f8c58=_0x32703d[_0x388687(0x14b)](_0x31bd5e=>({'filePath':_0x31bd5e,'mtime':fs[_0x388687(0x168)](_0x31bd5e)['mtime']}))[_0x388687(0x153)]((_0xe4b22a,_0x24244a)=>{const _0x199c1c=_0x388687;if(!_0xe4b22a||!_0xe4b22a[_0x199c1c(0x134)])return _0x24244a;if(_0x302cbf[_0x199c1c(0x15e)](_0x24244a[_0x199c1c(0x134)],_0xe4b22a['mtime']))return _0x24244a;return _0xe4b22a;},{});return _0x2f8c58?_0x2f8c58[_0x388687(0x1a3)]:'';}return'';}catch(_0x333de6){return logger[_0x388687(0x128)]('Error\x20while\x20reading\x20CLI\x20path:\x20'+util[_0x388687(0x16e)](_0x333de6)),'';}}static ['requestToUpdateCLI']=async(_0x1f85c8,_0x55eaa5)=>{const _0xf7f7d1=a89_0x130179,_0x38bd24={'xBKgO':function(_0x371092,_0xca4069,_0x415f0f,_0x13ad13,_0x424309){return _0x371092(_0xca4069,_0x415f0f,_0x13ad13,_0x424309);},'iMuZs':_0xf7f7d1(0x126)},_0x37cb09={};_0x37cb09['qs']=_0x1f85c8,_0x37cb09[_0xf7f7d1(0x1b8)]=!![];const _0x350587=await _0x38bd24[_0xf7f7d1(0xd8)](nodeRequest,_0x38bd24[_0xf7f7d1(0x1ae)],UPDATED_CLI_ENDPOINT,_0x37cb09,_0x55eaa5);return logger[_0xf7f7d1(0x16a)](_0xf7f7d1(0x139)+JSON[_0xf7f7d1(0x192)](_0x350587)),_0x350587;};static['isBinaryBusy'](_0x153f43){const _0x5f58de=a89_0x130179;try{const _0x201b56=fs[_0x5f58de(0x1a7)](_0x153f43,'r+');return fs[_0x5f58de(0x10d)](_0x201b56),![];}catch(_0x2bdc73){if(BINARY_BUSY_ERROR_CODES[_0x5f58de(0xe9)](_0x2bdc73[_0x5f58de(0x19e)]))return logger['debug'](_0x5f58de(0x1b4)+_0x153f43),!![];return logger['debug'](_0x5f58de(0x159)+_0x2bdc73[_0x5f58de(0x1ab)]),![];}}static[a89_0x130179(0xf2)](_0x5546ec,_0x5dfbfc=''){const _0x5882c8=a89_0x130179,_0x5550dc={'gkiem':function(_0x4f9002,_0x458304){return _0x4f9002(_0x458304);},'zZIbw':'SHELL_EXECUTE_ERROR','ndSSu':_0x5882c8(0x124),'MyiuG':function(_0x5f2ac3,_0x51fee1,_0x3bc686,_0x11a932){return _0x5f2ac3(_0x51fee1,_0x3bc686,_0x11a932);},'xNkyJ':_0x5882c8(0x128)};return new Promise((_0x28110e,_0x5dfa00)=>{const _0x28dc30=_0x5882c8,_0x19d64d={'vzpkF':_0x5550dc[_0x28dc30(0x12a)],'HhnZv':function(_0x319f86,_0x445f20){const _0x5354e0=_0x28dc30;return _0x5550dc[_0x5354e0(0xe8)](_0x319f86,_0x445f20);},'VxjUl':function(_0x3b1c9a,_0x4d39db){return _0x5550dc['gkiem'](_0x3b1c9a,_0x4d39db);},'AiCcZ':_0x5550dc[_0x28dc30(0x10c)],'bOXKG':function(_0x3e06c4,_0x5c8749){return _0x5550dc['gkiem'](_0x3e06c4,_0x5c8749);}},_0x4a3042={};_0x4a3042['cwd']=_0x5dfbfc,_0x4a3042[_0x28dc30(0x19c)]=0x1388;const _0x5eba1a=_0x5550dc['MyiuG'](exec,_0x5546ec,_0x4a3042,(_0x2475ff,_0x2aeb,_0x2decb2)=>{const _0x5af4b8=_0x28dc30;if(_0x2475ff){if(_0x5546ec[_0x5af4b8(0xe9)](_0x19d64d['vzpkF'])&&(_0x2aeb['trim']()||_0x2decb2[_0x5af4b8(0xec)]())){const _0x1aca8c=_0x2aeb['trim']()||_0x2decb2[_0x5af4b8(0xec)]();logger['debug'](_0x5af4b8(0x12e)+_0x1aca8c+'\x22'),_0x19d64d[_0x5af4b8(0xf0)](_0x28110e,_0x1aca8c);}else _0x19d64d[_0x5af4b8(0xfa)](_0x28110e,_0x2decb2[_0x5af4b8(0xec)]()||_0x19d64d[_0x5af4b8(0x114)]);}else logger[_0x5af4b8(0x16a)](_0x5af4b8(0x1b7)+_0x2aeb[_0x5af4b8(0xec)]()+'\x22'),_0x19d64d[_0x5af4b8(0x16b)](_0x28110e,_0x2aeb[_0x5af4b8(0xec)]());});_0x5eba1a['on'](_0x5550dc[_0x28dc30(0x106)],()=>{const _0x42a116=_0x28dc30;_0x5550dc[_0x42a116(0xe8)](_0x28110e,_0x5550dc[_0x42a116(0x10c)]);});});}static [a89_0x130179(0x15f)]=async(_0x4e8054,_0x48364a)=>{const _0x42813c=a89_0x130179,_0x47f0cd={'PfrVR':function(_0x134915,_0x4020be){return _0x134915(_0x4020be);},'YBzBh':_0x42813c(0xe6),'NKdmu':function(_0x321c13,_0x6c4e86){return _0x321c13(_0x6c4e86);},'Bwzjn':function(_0x88a493,_0x5265b4){return _0x88a493(_0x5265b4);},'bKnNq':'Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','OvXVB':function(_0x32a3cb,_0x1113a1){return _0x32a3cb>=_0x1113a1;},'Vyhec':_0x42813c(0x105),'SxYIi':_0x42813c(0x16d),'iGOkj':_0x42813c(0x128),'JHZGm':_0x42813c(0xdf)};PerformanceTester[_0x42813c(0xfb)](PerformanceEvents[_0x42813c(0x143)]),logger[_0x42813c(0x16a)](_0x42813c(0x13f)+_0x4e8054);try{const _0x54a904=url[_0x42813c(0x186)](_0x4e8054),_0x7b217f=path['join'](_0x48364a,_0x42813c(0xd3)+process[_0x42813c(0x1b1)]+'.zip'),_0x4eb336=fs['createWriteStream'](_0x7b217f);return new Promise((_0x529700,_0x500de6)=>{const _0x47f455=_0x42813c,_0x4a55a8={'uccxP':_0x47f0cd[_0x47f455(0x158)],'ghTmI':function(_0x2ad29e,_0x52b5b9){return _0x47f0cd['NKdmu'](_0x2ad29e,_0x52b5b9);},'EPjFA':function(_0x35adc6,_0x29688e){const _0x4a8368=_0x47f455;return _0x47f0cd[_0x4a8368(0x195)](_0x35adc6,_0x29688e);},'hJXBe':_0x47f0cd['bKnNq'],'IOVIw':function(_0x5379c0,_0x1d9130){return _0x47f0cd['NKdmu'](_0x5379c0,_0x1d9130);},'vcLBr':function(_0xb02c83,_0x1abf5a){const _0x11864d=_0x47f455;return _0x47f0cd[_0x11864d(0x189)](_0xb02c83,_0x1abf5a);},'LvaiO':_0x47f0cd[_0x47f455(0x196)],'yjZrd':_0x47f0cd[_0x47f455(0x167)],'TznoA':_0x47f0cd[_0x47f455(0xe2)]};https['get'](_0x54a904,function(_0x1f0e82){const _0xa3b9e4=_0x47f455,_0x4cf67a={'UpGNG':_0x4a55a8[_0xa3b9e4(0x1aa)],'QHkap':function(_0x15fb08,_0x1c0074){const _0x5dc4f9=_0xa3b9e4;return _0x4a55a8[_0x5dc4f9(0x13c)](_0x15fb08,_0x1c0074);},'RFFKW':function(_0x492b74,_0x54b586){const _0x163305=_0xa3b9e4;return _0x4a55a8[_0x163305(0x13a)](_0x492b74,_0x54b586);}},_0x31fe88=null;if(_0x1f0e82[_0xa3b9e4(0x1a9)]&&_0x4a55a8[_0xa3b9e4(0xd7)](_0x1f0e82[_0xa3b9e4(0x1a9)],0x190)){const _0x3fdda8=new Error('SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20'+_0x1f0e82[_0xa3b9e4(0x1a9)]+_0xa3b9e4(0x109)+_0x4e8054);_0x3fdda8['code']=_0x4a55a8[_0xa3b9e4(0x116)],_0x3fdda8[_0xa3b9e4(0x1a9)]=_0x1f0e82[_0xa3b9e4(0x1a9)],logger[_0xa3b9e4(0x128)](util[_0xa3b9e4(0x16e)](_0x4a55a8['yjZrd'],_0x1f0e82[_0xa3b9e4(0x1a9)])),PerformanceTester[_0xa3b9e4(0xdd)](PerformanceEvents[_0xa3b9e4(0x143)],![],_0xa3b9e4(0x193)+_0x1f0e82[_0xa3b9e4(0x1a9)]),_0x1f0e82[_0xa3b9e4(0x1a0)](),_0x4eb336[_0xa3b9e4(0x175)](),fs[_0xa3b9e4(0xd2)](_0x7b217f,()=>{}),_0x4a55a8[_0xa3b9e4(0x13c)](_0x500de6,_0x3fdda8);return;}_0x1f0e82[_0xa3b9e4(0xf3)](_0x4eb336),_0x1f0e82['on'](_0x4a55a8[_0xa3b9e4(0x119)],function(_0x5c2e4a){const _0x29a007=_0xa3b9e4;logger[_0x29a007(0x128)](util[_0x29a007(0x16e)](_0x4cf67a[_0x29a007(0x197)],_0x5c2e4a)),PerformanceTester[_0x29a007(0xdd)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x29a007(0x16e)](_0x5c2e4a)),_0x4cf67a[_0x29a007(0x11b)](_0x500de6,_0x5c2e4a);}),_0x4eb336['on'](_0x4a55a8['TznoA'],function(_0x22e740){const _0x280ef1=_0xa3b9e4;logger[_0x280ef1(0x128)](util[_0x280ef1(0x16e)](_0x4a55a8['uccxP'],_0x22e740)),PerformanceTester[_0x280ef1(0xdd)](PerformanceEvents[_0x280ef1(0x143)],![],util[_0x280ef1(0x16e)](_0x22e740)),_0x4a55a8['ghTmI'](_0x500de6,_0x22e740);}),CLIUtils[_0xa3b9e4(0x147)](_0x4eb336,_0x31fe88,_0x7b217f,_0x48364a,_0x5a0fb4=>{const _0x422214=_0xa3b9e4;PerformanceTester[_0x422214(0xdd)](PerformanceEvents[_0x422214(0x143)]),_0x4cf67a['RFFKW'](_0x529700,_0x5a0fb4);},_0x27846c=>{const _0x1ab398=_0xa3b9e4;PerformanceTester[_0x1ab398(0xdd)](PerformanceEvents[_0x1ab398(0x143)],![],util[_0x1ab398(0x16e)](_0x27846c)),_0x4a55a8[_0x1ab398(0x15b)](_0x500de6,_0x27846c);});})['on'](_0x47f0cd['iGOkj'],function(_0x4bf5e0){const _0x58b540=_0x47f455;logger[_0x58b540(0x128)](_0x58b540(0xd9)+util[_0x58b540(0x16e)](_0x4bf5e0)),PerformanceTester[_0x58b540(0xdd)](PerformanceEvents[_0x58b540(0x143)],![],util['format'](_0x4bf5e0)),_0x47f0cd['PfrVR'](_0x500de6,_0x4bf5e0);});});}catch(_0x492b59){PerformanceTester[_0x42813c(0xdd)](PerformanceEvents[_0x42813c(0x143)],![],util[_0x42813c(0x16e)](_0x492b59)),logger[_0x42813c(0x128)](util['format'](_0x47f0cd[_0x42813c(0xfe)],_0x492b59));throw _0x492b59;}};static[a89_0x130179(0x147)](_0x1aa99d,_0x4ae99b,_0x466b4c,_0x356991,_0x438a12,_0x26ee17){const _0x4e21e9=a89_0x130179,_0x313c15={'kUdOK':'close','ZjVPA':function(_0x4771ae,_0x42415a){return _0x4771ae(_0x42415a);},'YPzpK':_0x4e21e9(0xdd),'YkcSf':function(_0x419b77,_0xd59fc4){return _0x419b77!==_0xd59fc4;},'zikwN':'EXDEV','lRbdY':'0755','iaZtV':function(_0x42304a,_0x157a2e){return _0x42304a(_0x157a2e);},'uULAk':_0x4e21e9(0x177),'ssHbm':_0x4e21e9(0x128),'mzkpI':function(_0x52ecdc,_0xfac2c0){return _0x52ecdc(_0xfac2c0);},'vNunA':function(_0x2233a5,_0x569e85){return _0x2233a5!==_0x569e85;},'BMcDW':function(_0x3d1fe1,_0x33bd85){return _0x3d1fe1(_0x33bd85);}};_0x1aa99d['on'](_0x313c15['kUdOK'],function(){const _0x1e53a1=_0x4e21e9,_0x3e345b={'dwJwh':function(_0x5edb08,_0x5ce548){const _0x18efe1=a89_0x3b65;return _0x313c15[_0x18efe1(0x10e)](_0x5edb08,_0x5ce548);},'twiYg':function(_0x2c8ddf,_0x3bdcc1){return _0x313c15['mzkpI'](_0x2c8ddf,_0x3bdcc1);},'dlqXS':function(_0x1734d0,_0x2584e8){const _0x50d37d=a89_0x3b65;return _0x313c15[_0x50d37d(0xfc)](_0x1734d0,_0x2584e8);},'YdSaN':function(_0x5d2f90,_0x1086dd){const _0x832f70=a89_0x3b65;return _0x313c15[_0x832f70(0x19b)](_0x5d2f90,_0x1086dd);},'MaLun':function(_0x17441a,_0xb9e170){const _0x3b91fd=a89_0x3b65;return _0x313c15[_0x3b91fd(0xcc)](_0x17441a,_0xb9e170);},'XoZsx':_0x313c15[_0x1e53a1(0x11d)],'JTVNy':function(_0x3b2e87,_0x2b1ddd){const _0x363863=_0x1e53a1;return _0x313c15[_0x363863(0xcc)](_0x3b2e87,_0x2b1ddd);}},_0x3064b1={};_0x3064b1[_0x1e53a1(0x184)]=!![],yauzl['open'](_0x466b4c,_0x3064b1,function(_0x30466d,_0x3954c8){const _0x1a8fcc=_0x1e53a1,_0x5600d2={'vGXoC':_0x313c15[_0x1a8fcc(0xde)],'JPBsp':function(_0x488d4f,_0x98908){const _0x2b805b=_0x1a8fcc;return _0x313c15[_0x2b805b(0x10e)](_0x488d4f,_0x98908);},'TKkhu':_0x313c15['YPzpK'],'KkSpA':function(_0x4c7b97,_0x2d3da7){return _0x313c15['YkcSf'](_0x4c7b97,_0x2d3da7);},'bqmHk':_0x313c15[_0x1a8fcc(0x17e)],'RqZEZ':function(_0x3caed9,_0x1c0490){return _0x313c15['ZjVPA'](_0x3caed9,_0x1c0490);},'MYOZg':_0x313c15[_0x1a8fcc(0x150)]};if(_0x30466d){_0x313c15[_0x1a8fcc(0x19b)](_0x26ee17,_0x30466d);return;}_0x3954c8[_0x1a8fcc(0xf6)](),_0x3954c8['on'](_0x313c15['uULAk'],_0x3ade6b=>{const _0xe25da8=_0x1a8fcc,_0x5e2667={'BCBfU':function(_0x4169ac,_0x569914){const _0x810de5=a89_0x3b65;return _0x3e345b[_0x810de5(0xd6)](_0x4169ac,_0x569914);},'pJdoC':function(_0x5db9da,_0x52d37){const _0x53ddb8=a89_0x3b65;return _0x3e345b[_0x53ddb8(0x174)](_0x5db9da,_0x52d37);}};if(/\/$/[_0xe25da8(0x131)](_0x3ade6b[_0xe25da8(0xf7)])){_0x3954c8['readEntry']();return;}!_0x4ae99b&&(_0x4ae99b=_0x3ade6b[_0xe25da8(0xf7)]);if(_0x3e345b[_0xe25da8(0x12f)](_0x3ade6b[_0xe25da8(0xf7)],_0x4ae99b))_0x3954c8[_0xe25da8(0xf6)]();else{const _0x2ecd49=_0x3ade6b['fileName'],_0x835c40=path[_0xe25da8(0x11a)](_0x356991,_0x2ecd49+'.tmp.'+process[_0xe25da8(0x1b1)]);let _0x3e1108;try{_0x3e1108=fs[_0xe25da8(0xf4)](_0x835c40);}catch(_0x3144e0){if(BINARY_BUSY_ERROR_CODES[_0xe25da8(0xe9)](_0x3144e0[_0xe25da8(0x19e)])){const _0x12e0a9=path[_0xe25da8(0x11a)](_0x356991,_0x2ecd49);if(fs[_0xe25da8(0x148)](_0x12e0a9)){logger[_0xe25da8(0x14f)](_0xe25da8(0x191)+_0x2ecd49),fs[_0xe25da8(0xd2)](_0x466b4c,_0x2cfb19=>{const _0x3569b3=_0xe25da8;_0x2cfb19&&logger[_0x3569b3(0x14f)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x466b4c);}),_0x3e345b[_0xe25da8(0x141)](_0x438a12,_0x12e0a9);return;}logger[_0xe25da8(0x14f)]('Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x2ecd49);}_0x3e345b['MaLun'](_0x26ee17,_0x3144e0);return;}_0x3e1108['on'](_0x3e345b[_0xe25da8(0x190)],_0x149470=>{const _0x68c836=_0xe25da8;if(BINARY_BUSY_ERROR_CODES[_0x68c836(0xe9)](_0x149470['code'])){const _0x558fce=path['join'](_0x356991,_0x2ecd49);_0x3e1108[_0x68c836(0x104)](),fs[_0x68c836(0x148)](_0x558fce)?(logger[_0x68c836(0x14f)]('Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x149470['message']),_0x3954c8['close'](),fs[_0x68c836(0xd2)](_0x466b4c,_0x2e35e2=>{const _0x5115c3=_0x68c836;_0x2e35e2&&logger[_0x5115c3(0x14f)](_0x5115c3(0x101)+_0x466b4c);}),_0x5e2667['BCBfU'](_0x438a12,_0x558fce)):(logger['warn']('Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x149470[_0x68c836(0x1ab)]),fs[_0x68c836(0xd2)](_0x835c40,()=>{}),_0x5e2667[_0x68c836(0x154)](_0x26ee17,_0x149470));}else fs[_0x68c836(0xd2)](_0x835c40,()=>{}),_0x5e2667[_0x68c836(0x17d)](_0x26ee17,_0x149470);}),_0x3954c8[_0xe25da8(0xd0)](_0x3ade6b,function(_0xd35435,_0x33f728){const _0x2dcc7c=_0xe25da8,_0x4e97d1={};_0x4e97d1[_0x2dcc7c(0x103)]=_0x5600d2[_0x2dcc7c(0x18a)];const _0x36db17=_0x4e97d1;if(_0xd35435){fs[_0x2dcc7c(0xd2)](_0x835c40,()=>{}),_0x5600d2['JPBsp'](_0x26ee17,_0xd35435);return;}_0x33f728['on'](_0x5600d2[_0x2dcc7c(0x15c)],function(){const _0x9824b6=_0x2dcc7c;_0x3e1108[_0x9824b6(0xdd)](),_0x3e1108['on'](_0x36db17[_0x9824b6(0x103)],function(){const _0x45af9d=_0x9824b6;_0x3954c8[_0x45af9d(0xf6)]();});}),_0x33f728[_0x2dcc7c(0xf3)](_0x3e1108);});}}),_0x3954c8['on'](_0x313c15[_0x1a8fcc(0x11d)],_0x501d1d=>{const _0xa3ce94=_0x1a8fcc;_0x3e345b[_0xa3ce94(0x132)](_0x26ee17,_0x501d1d);}),_0x3954c8[_0x1a8fcc(0x14d)](_0x313c15[_0x1a8fcc(0x1a8)],()=>{const _0x47ee3e=_0x1a8fcc,_0x40612d={'YnKiE':function(_0x171905,_0x5b20cc){const _0x381479=a89_0x3b65;return _0x5600d2[_0x381479(0x17f)](_0x171905,_0x5b20cc);},'dhVrO':_0x5600d2[_0x47ee3e(0x11f)],'jCLQR':function(_0x16c0e1,_0x4d1768){return _0x5600d2['RqZEZ'](_0x16c0e1,_0x4d1768);}};fs['unlink'](_0x466b4c,_0x59b829=>{const _0x27d0ce=_0x47ee3e;_0x59b829&&logger[_0x27d0ce(0x14f)](_0x27d0ce(0x101)+_0x466b4c);});const _0x5db20b=path['join'](_0x356991,_0x4ae99b+_0x47ee3e(0x12b)+process[_0x47ee3e(0x1b1)]),_0x3c21da=path[_0x47ee3e(0x11a)](_0x356991,_0x4ae99b);fs[_0x47ee3e(0x115)](_0x5db20b,_0x5600d2[_0x47ee3e(0x1ac)],function(_0x5c4cb2){const _0x21a13d=_0x47ee3e;if(_0x5c4cb2){_0x3954c8[_0x21a13d(0x104)](),fs[_0x21a13d(0xd2)](_0x5db20b,()=>{}),_0x40612d[_0x21a13d(0x17b)](_0x26ee17,_0x5c4cb2);return;}fs[_0x21a13d(0x160)](_0x5db20b,_0x3c21da,function(_0x36299e){const _0x526be4=_0x21a13d;if(_0x36299e){if(_0x40612d[_0x526be4(0x163)](_0x36299e[_0x526be4(0x19e)],_0x40612d['dhVrO'])){_0x3954c8[_0x526be4(0x104)](),fs['unlink'](_0x5db20b,()=>{}),_0x40612d[_0x526be4(0x17b)](_0x26ee17,_0x36299e);return;}logger[_0x526be4(0x14f)](_0x526be4(0x14c)+_0x36299e[_0x526be4(0x1ab)]);try{fs[_0x526be4(0x1ad)](_0x5db20b,_0x3c21da);}catch(_0x1d086c){_0x3954c8['close'](),fs[_0x526be4(0xd2)](_0x5db20b,()=>{}),_0x40612d[_0x526be4(0x17b)](_0x26ee17,_0x1d086c);return;}fs['unlink'](_0x5db20b,_0x4f8c97=>{const _0x61c739=_0x526be4;_0x4f8c97&&logger[_0x61c739(0x14f)](_0x61c739(0x18b)+_0x4f8c97['message']);});}_0x3954c8[_0x526be4(0x104)](),_0x40612d['jCLQR'](_0x438a12,_0x3c21da);});});});});});}static[a89_0x130179(0x1b5)](){const _0x5bfd05=a89_0x130179;if(process[_0x5bfd05(0x181)][_0x5bfd05(0x142)])return JSON['parse'](process[_0x5bfd05(0x181)][_0x5bfd05(0x142)]);return this[_0x5bfd05(0x173)];}static[a89_0x130179(0x138)](){const _0x2472b8=a89_0x130179;if(process[_0x2472b8(0x181)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL'])return JSON['parse'](process[_0x2472b8(0x181)][_0x2472b8(0x1b2)]);return this['automationFrameworkDetail'];}static['setFrameworkDetail'](_0x10b303,_0x3ebcc0){const _0x54adc7=a89_0x130179,_0x713e4c={'wiItT':_0x54adc7(0x110),'Ipxfl':function(_0x59cd0f,_0x1bee54){return _0x59cd0f(_0x1bee54);},'PNyeB':function(_0x1e9b0a,_0x3b1a79){return _0x1e9b0a||_0x3b1a79;},'Epzmd':function(_0x3e1a7b,_0x385f19){return _0x3e1a7b(_0x385f19);}},_0x215f79=_0x713e4c[_0x54adc7(0x198)]['split']('|');let _0xc4d260=0x0;while(!![]){switch(_0x215f79[_0xc4d260++]){case'0':process[_0x54adc7(0x181)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']=JSON[_0x54adc7(0x192)](this[_0x54adc7(0x183)]);continue;case'1':this[_0x54adc7(0x183)]={'name':_0x3ebcc0,'version':_0x713e4c[_0x54adc7(0x1a6)](getFrameworkVersion,_0x3ebcc0)};continue;case'2':_0x713e4c[_0x54adc7(0x12d)](!_0x10b303,!_0x3ebcc0)&&logger['debug'](_0x54adc7(0x185)+_0x10b303+_0x54adc7(0x179)+_0x3ebcc0);continue;case'3':process[_0x54adc7(0x181)][_0x54adc7(0x142)]=JSON[_0x54adc7(0x192)](this[_0x54adc7(0x173)]);continue;case'4':this[_0x54adc7(0x173)]={'name':_0x10b303,'version':{[_0x10b303]:_0x713e4c[_0x54adc7(0x1b3)](getFrameworkVersion,_0x10b303)}};continue;}break;}}static[a89_0x130179(0x16f)](_0x44a8eb,_0x271864){return _0x44a8eb+':'+_0x271864;}static[a89_0x130179(0x136)](){const _0x2654cd=a89_0x130179;return process[_0x2654cd(0x1b1)]+':'+threadId;}static[a89_0x130179(0x15d)](_0x3ceeb4){const _0x440d73=a89_0x130179;if(_0x3ceeb4[_0x440d73(0x17c)]&&_0x3ceeb4[_0x440d73(0x17c)][_0x440d73(0x121)])return!![];return![];}static['shouldSkipSessionStatus'](_0x13cdde){const _0x6f3001=a89_0x130179;if(_0x13cdde[_0x6f3001(0x17c)]&&_0x13cdde[_0x6f3001(0x17c)]['skipSessionStatus'])return!![];return![];}static['matchHookRegex'](_0xd372ed){const _0x2aacc3=a89_0x130179,_0x3eb04c=new RegExp(TestFrameworkConstants[_0x2aacc3(0x130)]);return _0x3eb04c[_0x2aacc3(0x131)](_0xd372ed);}static[a89_0x130179(0x113)](_0x25c7b3,_0x4d202c){const _0x26c417=a89_0x130179,_0x31b252={};_0x31b252[_0x26c417(0xe5)]=function(_0x103b6f,_0x3c109d){return _0x103b6f!==_0x3c109d;},_0x31b252[_0x26c417(0xf9)]=function(_0x8df125,_0x23124a){return _0x8df125===_0x23124a;},_0x31b252[_0x26c417(0x1b0)]=_0x26c417(0xe1);const _0x20c7f3=_0x31b252;for(const [_0x403ebf,_0x2eec64]of Object[_0x26c417(0x125)](_0x4d202c)){if(_0x20c7f3['OOSsD'](_0x2eec64,null)&&_0x20c7f3[_0x26c417(0xf9)](typeof _0x2eec64,_0x20c7f3[_0x26c417(0x1b0)])&&!Array[_0x26c417(0xef)](_0x2eec64))_0x25c7b3[_0x403ebf]=this[_0x26c417(0x113)](_0x25c7b3[_0x403ebf]||{},_0x2eec64);else Array[_0x26c417(0xef)](_0x2eec64)?_0x25c7b3[_0x403ebf]=(_0x25c7b3[_0x403ebf]||[])[_0x26c417(0x178)](_0x2eec64):_0x25c7b3[_0x403ebf]=_0x2eec64;}return _0x25c7b3;}}module[a89_0x130179(0x1a4)]=CLIUtils;function a89_0x204c(){const _0x5eebac=['end','kUdOK','Failed\x20to\x20download\x20SDK\x20binary:\x20%s','getCliDir','object','iGOkj','OqWyh','39543111gFhkHo','OOSsD','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','285878bsODmu','gkiem','includes','follow-redirects','mLDCo','trim','luSeN','node','isArray','HhnZv','isBinaryBusy','runShellCommand','pipe','createWriteStream','getSdkLanguage','readEntry','fileName','startsWith','woezA','VxjUl','start','vNunA','nYwds','JHZGm','util','PzIep','Failed\x20to\x20delete\x20zip\x20file:\x20','../../helpers/performance/performance-tester.js','Ottym','close','DOWNLOAD_HTTP','xNkyJ','2KWYTKo','child_process','\x20from\x20','../../helpers/helper','isDevelopmentEnv','zZIbw','closeSync','ZjVPA','filter','2|4|1|0|3','xMmWA','tOmKK','mergeObject','AiCcZ','chmod','LvaiO','YKtxk','Folder\x20','TznoA','join','QHkap','../../helpers/utilities','ssHbm','binary-','bqmHk','isDirectory','skipSessionName','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','Resolved\x20binary\x20path:\x20','version','entries','GET','5605416yJcsIM','error','url','ndSSu','.tmp.','getCLIParamsForDevEnv','PNyeB','CLI\x20version\x20found\x20despite\x20error:\x20\x22','dlqXS','HOOK_REGEX','test','JTVNy','NkMzK','mtime','BROWSERSTACK_FILES_DIR','getCurrentInstanceName','BROWSERSTACK_CLI_ENV','getAutomationFrameworkDetail','response\x20','ghTmI','../utils/constants','IOVIw','VjVPP','../../../package.json','Downloading\x20SDK\x20binary\x20from:\x20','basename','YdSaN','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','SDK_CLI_DOWNLOAD','./instances/testFrameworkInstance.js','arch','SDK_CLI_CHECK_UPDATE','downloadFileStream','existsSync','./state/automationFrameworkState.js','listen','map','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','once','homedir','warn','lRbdY','tmpdir','getSdkVersion','reduce','BCBfU','.browserstack','getWritableDir','setupCliPath','YBzBh','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','kPUPT','EPjFA','TKkhu','shouldSkipSessionName','fkSts','downloadLatestBinary','rename','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','./framework/constants/testFrameworkConstants.js','YnKiE','cli_version','checkAndUpdateCli','1616JLXaWb','SxYIi','statSync','\x20version','debug','bOXKG','YnOAv','SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','format','getHookRegistryKey','Setting\x20required\x20permissions\x20to\x20','fgmVN','\x20already\x20exists','testFrameworkDetail','twiYg','destroy','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','entry','concat',',\x20automationFramework=','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','jCLQR','testContextOptions','pJdoC','zikwN','KkSpA','AlEkJ','env','requestToUpdateCLI','automationFrameworkDetail','lazyEntries','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','parse','yaxTj','worker_threads','OvXVB','vGXoC','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','info','8057030tqotTp','../../helpers/performance/constants','CLIUtils','XoZsx','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','stringify','HTTP\x20','isFile','Bwzjn','Vyhec','UpGNG','wiItT','6650166IKWxSt','Current\x20CLI\x20Path\x20Found:\x20','iaZtV','timeout','getExistingCliPath','code','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','resume','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','43183HQQqKq','filePath','exports','path','Ipxfl','openSync','YPzpK','statusCode','hJXBe','message','MYOZg','copyFileSync','iMuZs','../utils/apiUtilityMethods.js','QvErA','pid','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','Epzmd','Binary\x20is\x20busy:\x20','getTestFrameworkDetail','readdirSync','Resolving\x20with\x20stdout:\x20\x22','preserveStatusCodeOnError','BMcDW','Folder\x20does\x20not\x20exist:\x20','AxmwB','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','openReadStream','../../helpers/test-observability/utils.js','unlink','downloaded_file_','length','KPtQd','dwJwh','vcLBr','xBKgO','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','data','4903530zEjPAz','BROWSERSTACK_BINARY_URL'];a89_0x204c=function(){return _0x5eebac;};return a89_0x204c();}
1
+ function a89_0x4ff4(){const _0x354a3f=['../utils/constants','env','DqRwC','rJuWl','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','qoEfc','openSync','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','HTTP\x20','error','statSync','WZXnr','ZoqNk','SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20','CXoWj','Failed\x20to\x20delete\x20zip\x20file:\x20','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','qoRXY','Binary\x20is\x20busy:\x20','\x20already\x20exists','./framework/constants/testFrameworkConstants.js','Failed\x20to\x20download\x20SDK\x20binary:\x20%s','BROWSERSTACK_CLI_ENV','ungBr','isFile','BROWSERSTACK_BINARY_URL','shouldSkipSessionName','worker_threads','0|2|3|4|1','getSdkLanguage','end','closeSync','test','Configuring\x20Cli\x20path.','Resolved\x20binary\x20path:\x20','mWLHk','UbcSc','Current\x20CLI\x20Path\x20Found:\x20','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','getCliDir','Setting\x20required\x20permissions\x20to\x20','automationFrameworkDetail','testContextOptions','../../helpers/performance/constants','../utils/apiUtilityMethods.js','downloadFileStream','listen','mtime','YTqSl','SrDbl','aZmpE','PClHF','parse','nnTtp','RBAwA','dOuwb','chmod','Downloading\x20SDK\x20binary\x20from:\x20','existsSync','info','../../helpers/test-observability/utils.js','timeout','BYGQy','NSiMe','ziDbU','469917medtoY','SDK_CLI_CHECK_UPDATE','../../helpers/classLogger.js','TLFuS','0755','node','destroy','isDevelopmentEnv','../../helpers/performance/performance-tester.js','DOWNLOAD_HTTP','getSdkVersion','lazyEntries','binary-','close','PWrBa','object','dzyQy','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','KwpQN','.zip','skipSessionStatus','cwd','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','MbADC','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','68544EXQLZy','.sock','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','.browserstack','platform','669537EtUKKS','join','EdYgz','getExistingCliPath','zhIAv','../../helpers/utilities','child_process','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','getCLIParamsForDevEnv','fileName','YkWLZ','JzvYZ','vvytt','statusCode','reduce','warn','fcaCp','geUTZ','setupCliPath','getHookRegistryKey','url','util','setFrameworkDetail','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','uSCCR',',\x20automationFramework=','Folder\x20does\x20not\x20exist:\x20','betZW','isBinaryBusy','JhiQc','LIAKA','6KTmwKN','eVDuZ','chadD','1501390ZbciDy','ieBAa','format','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','cli','debug','checkAndUpdateCli','UVTWy','split','testFrameworkDetail','QYdTQ','VnPbM','stringify','./state/automationFrameworkState.js','JkKEy','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','CWamG','eQyII','getCurrentInstanceName','Folder\x20','runShellCommand','unix:/tmp/sdk-platform-','isDirectory','FANDj','copyFileSync','8382288afjPWg','unlink','data','SDK_CLI_DOWNLOAD','requestToUpdateCLI','21yArfSb','OWVKR','\x20from\x20','zzbQu','SHELL_EXECUTE_ERROR','CLI\x20version\x20found\x20despite\x20error:\x20\x22','trim','mVOBy','./state/hookState.js','exports','code','Resolving\x20with\x20stdout:\x20\x22','entry','ntWTJ','createWriteStream','AYPpH','BYaDD','920732dMIxed','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','CLIUtils','BHxQZ','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','XwexF','./state/testFrameworkState.js','readEntry','XThpy','getWritableDir','readdirSync','isArray','hKPxO','downloadLatestBinary','aqlXA','UlZXf','pipe','map','bLBIF','.tmp.','EXDEV','jFZnB','OYHwJ','RJKjn','aZkuB','GSpfp','open','ayDrJ','EtNZo','HVCYq','xbkWz','filter','VhhPX','JSgvC','resume','message','pfFBL','includes','uaRge','arch','2811480nKWhSq','Error\x20while\x20reading\x20CLI\x20path:\x20','pid','../../../package.json','KsYVZ','8YGKGXv','start','version','cli_version','skipSessionName','CYxfj','filePath'];a89_0x4ff4=function(){return _0x354a3f;};return a89_0x4ff4();}const a89_0x1e5f26=a89_0x5a24;(function(_0x37c82a,_0x116d59){const _0x5963a3=a89_0x5a24,_0x1d60de=_0x37c82a();while(!![]){try{const _0x41a085=-parseInt(_0x5963a3(0x1e6))/0x1*(parseInt(_0x5963a3(0x223))/0x2)+parseInt(_0x5963a3(0x160))/0x3*(parseInt(_0x5963a3(0x171))/0x4)+-parseInt(_0x5963a3(0x226))/0x5+parseInt(_0x5963a3(0x15b))/0x6+-parseInt(_0x5963a3(0x1ff))/0x7+-parseInt(_0x5963a3(0x19e))/0x8*(parseInt(_0x5963a3(0x204))/0x9)+-parseInt(_0x5963a3(0x199))/0xa;if(_0x41a085===_0x116d59)break;else _0x1d60de['push'](_0x1d60de['shift']());}catch(_0x440af9){_0x1d60de['push'](_0x1d60de['shift']());}}}(a89_0x4ff4,0xe3c67));const fs=require('fs'),os=require('os'),url=require('url'),path=require('path'),{exec}=require(a89_0x1e5f26(0x20a)),{https}=require('follow-redirects'),yauzl=require('yauzl'),util=require(a89_0x1e5f26(0x219)),{getFrameworkVersion}=require(a89_0x1e5f26(0x1e1)),{threadId}=require(a89_0x1e5f26(0x1c0)),PerformanceTester=require(a89_0x1e5f26(0x1ee)),{EVENTS:PerformanceEvents}=require(a89_0x1e5f26(0x1d0)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a89_0x1e5f26(0x209)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require('../../helpers/helper'),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a89_0x1e5f26(0x1a5)),{createClassLogger}=require(a89_0x1e5f26(0x1e8)),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require(a89_0x1e5f26(0x168)),TestFrameworkState=require(a89_0x1e5f26(0x177)),AutomationFrameworkState=require(a89_0x1e5f26(0x233)),TestFrameworkConstants=require(a89_0x1e5f26(0x1b9)),logger=createClassLogger(a89_0x1e5f26(0x173)),{getBStackAPIUrl}=require(a89_0x1e5f26(0x1d1));function a89_0x5a24(_0xa8f871,_0x51514e){const _0x4ff4e5=a89_0x4ff4();return a89_0x5a24=function(_0x5a24f3,_0x2b3c58){_0x5a24f3=_0x5a24f3-0x15a;let _0x50166=_0x4ff4e5[_0x5a24f3];return _0x50166;},a89_0x5a24(_0xa8f871,_0x51514e);}class CLIUtils{[a89_0x1e5f26(0x1ce)]={};[a89_0x1e5f26(0x22f)]={};static[a89_0x1e5f26(0x1ed)](){const _0x4375a6=a89_0x1e5f26,_0x8e7614={};_0x8e7614[_0x4375a6(0x1d8)]=function(_0x317efc,_0xfcd0ad){return _0x317efc===_0xfcd0ad;},_0x8e7614[_0x4375a6(0x191)]='development';const _0xe9e4fc=_0x8e7614;return _0xe9e4fc[_0x4375a6(0x1d8)](process[_0x4375a6(0x1a6)]['BROWSERSTACK_CLI_ENV'],_0xe9e4fc['VhhPX']);}static[a89_0x1e5f26(0x20c)](){const _0x55b5bd=a89_0x1e5f26,_0x11861e={};return _0x11861e['id']=process[_0x55b5bd(0x1a6)]['BROWSERSTACK_CLI_ENV'],_0x11861e[_0x55b5bd(0x1d3)]=_0x55b5bd(0x23b)+process[_0x55b5bd(0x1a6)][_0x55b5bd(0x1bb)]+_0x55b5bd(0x200),_0x11861e;}static[a89_0x1e5f26(0x1f0)](){const _0x7af485=a89_0x1e5f26,_0x54bfeb={'ieBAa':function(_0x130dcc,_0x48fbc9){return _0x130dcc(_0x48fbc9);},'BYGQy':_0x7af485(0x19c)};return _0x54bfeb[_0x7af485(0x227)](require,_0x54bfeb[_0x7af485(0x1e3)])[_0x7af485(0x1a0)];}static[a89_0x1e5f26(0x1c2)](){const _0xcce4b7=a89_0x1e5f26,_0x39a088={};_0x39a088['UlZXf']=_0xcce4b7(0x1eb);const _0xee64e3=_0x39a088;return _0xee64e3[_0xcce4b7(0x180)];}static async[a89_0x1e5f26(0x216)](_0xa01a90){const _0x42e3f4=a89_0x1e5f26,_0x90e44={'JSgvC':_0x42e3f4(0x1c6),'AYPpH':function(_0x3f86c0,_0x439ffc){return _0x3f86c0(_0x439ffc);},'KsYVZ':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI'};logger['debug'](_0x90e44[_0x42e3f4(0x192)]);const _0xaf07f9=process[_0x42e3f4(0x1a6)]['SDK_CLI_BIN_PATH'];if(!_0x90e44[_0x42e3f4(0x16f)](isNullOrEmpty,_0xaf07f9))return logger[_0x42e3f4(0x22b)]('Development\x20Cli\x20Path:\x20'+_0xaf07f9),_0xaf07f9;try{const _0xa9d651=this[_0x42e3f4(0x1cc)]();if(_0x90e44[_0x42e3f4(0x16f)](isNullOrEmpty,_0xa9d651))throw new Error(_0x90e44[_0x42e3f4(0x19d)]);const _0x3ecd90=this[_0x42e3f4(0x207)](_0xa9d651),_0x4b14c4=await this['checkAndUpdateCli'](_0x3ecd90,_0xa9d651,_0xa01a90);return logger[_0x42e3f4(0x22b)](_0x42e3f4(0x1c7)+_0x4b14c4),_0x4b14c4;}catch(_0x123778){logger[_0x42e3f4(0x22b)]('Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20'+util[_0x42e3f4(0x228)](_0x123778));}return null;}static async[a89_0x1e5f26(0x22c)](_0x317420,_0x3b4f3e,_0x236c53){const _0x469884=a89_0x1e5f26,_0x2001e1={'hKPxO':function(_0x3df189){return _0x3df189();},'geUTZ':function(_0x1a86f3,_0x5d38ee){return _0x1a86f3(_0x5d38ee);},'UrUUC':function(_0x7ce6e3,_0x5e7b70,_0x2b2c57){return _0x7ce6e3(_0x5e7b70,_0x2b2c57);},'nnTtp':'data','MbADC':_0x469884(0x218),'ayDrJ':function(_0x1ed4b9,_0x1fbef9){return _0x1ed4b9(_0x1fbef9);},'BYaDD':function(_0x38be49,_0xb68074,_0x12d522){return _0x38be49(_0xb68074,_0x12d522);}};PerformanceTester[_0x469884(0x19f)](PerformanceEvents[_0x469884(0x1e7)]);try{logger[_0x469884(0x1e0)](_0x469884(0x1ca)+_0x317420);const _0x383621=_0x2001e1[_0x469884(0x17d)](getHostInfo),_0x9db6fc={'sdk_version':CLIUtils[_0x469884(0x1f0)](),'os':_0x383621[_0x469884(0x203)],'os_arch':_0x383621[_0x469884(0x198)],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x2001e1[_0x469884(0x215)](isNullOrEmpty,_0x317420)&&(_0x9db6fc[_0x469884(0x1a1)]=await this[_0x469884(0x23a)](_0x317420+'\x20version'));const _0x231b8f=await this[_0x469884(0x15f)](_0x9db6fc,_0x236c53);process[_0x469884(0x1a6)][_0x469884(0x1be)]&&(logger[_0x469884(0x1e0)]('Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20'+process['env'][_0x469884(0x1be)]),_0x231b8f[_0x469884(0x15d)][_0x469884(0x218)]=process[_0x469884(0x1a6)][_0x469884(0x1be)]);if(_0x2001e1['UrUUC'](nestedKeyValue,_0x231b8f,[_0x2001e1[_0x469884(0x1da)],_0x2001e1['MbADC']])){logger['debug']('Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20'+_0x9db6fc[_0x469884(0x1a1)]);if(!_0x2001e1[_0x469884(0x18c)](isNullOrEmpty,_0x317420)&&this[_0x469884(0x220)](_0x317420))return logger[_0x469884(0x213)]('Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20'+_0x317420),_0x317420;return await this[_0x469884(0x17e)](_0x2001e1[_0x469884(0x170)](nestedKeyValue,_0x231b8f,[_0x2001e1[_0x469884(0x1da)],_0x2001e1[_0x469884(0x1fd)]]),_0x3b4f3e);}return _0x317420;}finally{PerformanceTester[_0x469884(0x1c3)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']);}}static[a89_0x1e5f26(0x1cc)](){const _0xe1f52=a89_0x1e5f26,_0x4faedc={'GSpfp':function(_0x525cf4,_0x8045fe){return _0x525cf4(_0x8045fe);},'STXcX':_0xe1f52(0x1b5),'ungBr':_0xe1f52(0x22a),'UbcSc':function(_0x593cc9,_0x57da60){return _0x593cc9(_0x57da60);}},_0x137125=this[_0xe1f52(0x17a)]();try{if(_0x4faedc[_0xe1f52(0x18a)](isNullOrEmpty,_0x137125))throw new Error(_0x4faedc['STXcX']);const _0x9e1a1b=path[_0xe1f52(0x205)](_0x137125,_0x4faedc[_0xe1f52(0x1bc)]);return!fs['existsSync'](_0x9e1a1b)&&_0x4faedc[_0xe1f52(0x1c9)](createDir,_0x9e1a1b),_0x9e1a1b;}catch(_0x4439d6){logger[_0xe1f52(0x22b)](_0xe1f52(0x229)+util[_0xe1f52(0x228)](_0x4439d6));}}static[a89_0x1e5f26(0x17a)](){const _0x18fe69=a89_0x1e5f26,_0x17b7b7={'WJIwl':_0x18fe69(0x202),'QYdTQ':function(_0x144e41,_0xfcd920){return _0x144e41(_0xfcd920);},'pfFBL':function(_0x342460,_0x30b4e5){return _0x342460(_0x30b4e5);},'HVCYq':function(_0x5cb53e,_0x773825){return _0x5cb53e(_0x773825);}},_0x5e4798=[process[_0x18fe69(0x1a6)]['BROWSERSTACK_FILES_DIR'],path[_0x18fe69(0x205)](os['homedir'](),_0x17b7b7['WJIwl']),path[_0x18fe69(0x205)](os['tmpdir'](),_0x17b7b7['WJIwl'])];for(const _0x363f08 of _0x5e4798){if(_0x17b7b7[_0x18fe69(0x230)](isNullOrEmpty,_0x363f08))continue;try{if(fs[_0x18fe69(0x1df)](_0x363f08)){logger[_0x18fe69(0x22b)](_0x18fe69(0x239)+_0x363f08+_0x18fe69(0x1b8));if(!_0x17b7b7[_0x18fe69(0x230)](isModifiable,_0x363f08)){logger[_0x18fe69(0x22b)]('Setting\x20required\x20permissions\x20to\x20'+_0x363f08);const _0x1f16f8=_0x17b7b7[_0x18fe69(0x195)](setReadWriteExecuteAccess,_0x363f08);if(!_0x17b7b7[_0x18fe69(0x18e)](isTrue,_0x1f16f8)){logger['warn'](_0x18fe69(0x172)+_0x363f08);continue;}}}else{logger['debug'](_0x18fe69(0x21e)+_0x363f08),_0x17b7b7[_0x18fe69(0x18e)](createDir,_0x363f08),logger[_0x18fe69(0x22b)](_0x18fe69(0x1cd)+_0x363f08);const _0x5c5366=_0x17b7b7[_0x18fe69(0x18e)](setReadWriteExecuteAccess,_0x363f08);!_0x17b7b7[_0x18fe69(0x18e)](isTrue,_0x5c5366)&&logger['warn'](_0x18fe69(0x172)+_0x363f08);}return _0x363f08;}catch(_0x1c2446){logger[_0x18fe69(0x1ae)](_0x18fe69(0x21b)+util[_0x18fe69(0x228)](_0x1c2446));}}return null;}static['getExistingCliPath'](_0x432808){const _0x533be9=a89_0x1e5f26,_0xa1c8a4={};_0xa1c8a4[_0x533be9(0x221)]=function(_0x77b3e8,_0x363f25){return _0x77b3e8>_0x363f25;},_0xa1c8a4['zhIAv']=function(_0x5af8db,_0x3436f9){return _0x5af8db>_0x3436f9;};const _0x3e71df=_0xa1c8a4;try{if(!fs[_0x533be9(0x1df)](_0x432808)||!fs[_0x533be9(0x1af)](_0x432808)[_0x533be9(0x23c)]())return'';const _0x17b612=fs[_0x533be9(0x17b)](_0x432808)[_0x533be9(0x182)](_0x15d20d=>path['join'](_0x432808,_0x15d20d))[_0x533be9(0x190)](_0x16733e=>fs['statSync'](_0x16733e)[_0x533be9(0x1bd)]()&&path['basename'](_0x16733e)['startsWith'](_0x533be9(0x1f2)));if(_0x3e71df[_0x533be9(0x208)](_0x17b612['length'],0x0)){const _0x2b2bea=_0x17b612[_0x533be9(0x182)](_0x1a7c9d=>({'filePath':_0x1a7c9d,'mtime':fs[_0x533be9(0x1af)](_0x1a7c9d)['mtime']}))[_0x533be9(0x212)]((_0x291562,_0x1e2043)=>{const _0x6faffd=_0x533be9;if(!_0x291562||!_0x291562[_0x6faffd(0x1d4)])return _0x1e2043;if(_0x3e71df[_0x6faffd(0x221)](_0x1e2043[_0x6faffd(0x1d4)],_0x291562[_0x6faffd(0x1d4)]))return _0x1e2043;return _0x291562;},{});return _0x2b2bea?_0x2b2bea[_0x533be9(0x1a4)]:'';}return'';}catch(_0x5d241a){return logger[_0x533be9(0x1ae)](_0x533be9(0x19a)+util[_0x533be9(0x228)](_0x5d241a)),'';}}static ['requestToUpdateCLI']=async(_0x601db1,_0x1f58e8)=>{const _0x2b2ff8=a89_0x1e5f26,_0x56ef5e={'YtGny':function(_0x97ef44,_0x1ae9e1,_0x2bd765,_0x47a421,_0x2761b0){return _0x97ef44(_0x1ae9e1,_0x2bd765,_0x47a421,_0x2761b0);},'QJgRC':'GET'},_0x57c370={};_0x57c370['qs']=_0x601db1,_0x57c370['preserveStatusCodeOnError']=!![];const _0x5c0a76=await _0x56ef5e['YtGny'](nodeRequest,_0x56ef5e['QJgRC'],UPDATED_CLI_ENDPOINT,_0x57c370,_0x1f58e8);return logger[_0x2b2ff8(0x22b)]('response\x20'+JSON[_0x2b2ff8(0x232)](_0x5c0a76)),_0x5c0a76;};static[a89_0x1e5f26(0x220)](_0x137226){const _0x3dfd85=a89_0x1e5f26;try{const _0x5e57e0=fs[_0x3dfd85(0x1ab)](_0x137226,'r+');return fs[_0x3dfd85(0x1c4)](_0x5e57e0),![];}catch(_0x1c8e3b){if(BINARY_BUSY_ERROR_CODES[_0x3dfd85(0x196)](_0x1c8e3b[_0x3dfd85(0x16a)]))return logger[_0x3dfd85(0x22b)](_0x3dfd85(0x1b7)+_0x137226),!![];return logger[_0x3dfd85(0x22b)](_0x3dfd85(0x235)+_0x1c8e3b[_0x3dfd85(0x194)]),![];}}static[a89_0x1e5f26(0x23a)](_0x15327a,_0x48d8b4=''){const _0x4a1799=a89_0x1e5f26,_0x22bd74={'jFZnB':function(_0x418040,_0x347b78){return _0x418040(_0x347b78);},'TLFuS':_0x4a1799(0x164),'ntWTJ':_0x4a1799(0x1a0),'dOuwb':function(_0x1ffb28,_0x575318){return _0x1ffb28(_0x575318);},'cmmnP':function(_0x4be20d,_0x1badfb,_0x2e422b,_0x349187){return _0x4be20d(_0x1badfb,_0x2e422b,_0x349187);},'XThpy':_0x4a1799(0x1ae)};return new Promise((_0x76f4a3,_0x27a89c)=>{const _0x1941f9=_0x4a1799,_0x101e28={'WZXnr':_0x22bd74[_0x1941f9(0x16d)],'CYxfj':function(_0x197f3d,_0x43e3f9){return _0x22bd74['dOuwb'](_0x197f3d,_0x43e3f9);},'TuqZp':function(_0xea1efa,_0x3604a4){const _0x148545=_0x1941f9;return _0x22bd74[_0x148545(0x1dc)](_0xea1efa,_0x3604a4);},'kwKSb':_0x22bd74['TLFuS'],'zzbQu':function(_0x357b98,_0x560f24){const _0x5edadc=_0x1941f9;return _0x22bd74[_0x5edadc(0x186)](_0x357b98,_0x560f24);}},_0x35dc48={};_0x35dc48[_0x1941f9(0x1fb)]=_0x48d8b4,_0x35dc48[_0x1941f9(0x1e2)]=0x1388;const _0x22320a=_0x22bd74['cmmnP'](exec,_0x15327a,_0x35dc48,(_0x47b900,_0x14721a,_0x10d853)=>{const _0x51e2ee=_0x1941f9;if(_0x47b900){if(_0x15327a[_0x51e2ee(0x196)](_0x101e28[_0x51e2ee(0x1b0)])&&(_0x14721a[_0x51e2ee(0x166)]()||_0x10d853[_0x51e2ee(0x166)]())){const _0x47e318=_0x14721a[_0x51e2ee(0x166)]()||_0x10d853[_0x51e2ee(0x166)]();logger[_0x51e2ee(0x22b)](_0x51e2ee(0x165)+_0x47e318+'\x22'),_0x101e28[_0x51e2ee(0x1a3)](_0x76f4a3,_0x47e318);}else _0x101e28['TuqZp'](_0x76f4a3,_0x10d853['trim']()||_0x101e28['kwKSb']);}else logger[_0x51e2ee(0x22b)](_0x51e2ee(0x16b)+_0x14721a['trim']()+'\x22'),_0x101e28[_0x51e2ee(0x163)](_0x76f4a3,_0x14721a[_0x51e2ee(0x166)]());});_0x22320a['on'](_0x22bd74[_0x1941f9(0x179)],()=>{const _0x1b4346=_0x1941f9;_0x22bd74[_0x1b4346(0x186)](_0x76f4a3,_0x22bd74[_0x1b4346(0x1e9)]);});});}static [a89_0x1e5f26(0x17e)]=async(_0x5c4c95,_0x3d8559)=>{const _0x3a1c60=a89_0x1e5f26,_0xb8b7ce={'mWLHk':function(_0x471bac,_0x29c8cd){return _0x471bac(_0x29c8cd);},'YkWLZ':_0x3a1c60(0x1a9),'qoRXY':_0x3a1c60(0x1fe),'LQsEf':function(_0x337920,_0x972fa){return _0x337920(_0x972fa);},'BHxQZ':function(_0x163dfa,_0x38ee2a){return _0x163dfa(_0x38ee2a);},'JlTcu':function(_0x364287,_0x32fad7){return _0x364287>=_0x32fad7;},'betZW':_0x3a1c60(0x1ef),'DZjrc':'SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','CWamG':'error','eQyII':_0x3a1c60(0x1ba)};PerformanceTester[_0x3a1c60(0x19f)](PerformanceEvents['SDK_CLI_DOWNLOAD']),logger[_0x3a1c60(0x22b)](_0x3a1c60(0x1de)+_0x5c4c95);try{const _0x212c95=url['parse'](_0x5c4c95),_0x19da8f=path[_0x3a1c60(0x205)](_0x3d8559,'downloaded_file_'+process['pid']+_0x3a1c60(0x1f9)),_0x249624=fs[_0x3a1c60(0x16e)](_0x19da8f);return new Promise((_0x503cff,_0x393ae5)=>{const _0x50e378=_0x3a1c60,_0x4a81c9={'aFQja':_0xb8b7ce[_0x50e378(0x20e)],'DqRwC':function(_0x2bacc6,_0x5ddfb6){const _0x3b4898=_0x50e378;return _0xb8b7ce[_0x3b4898(0x1c8)](_0x2bacc6,_0x5ddfb6);},'JkKEy':_0xb8b7ce[_0x50e378(0x1b6)],'UVTWy':function(_0x1eee92,_0x47061b){return _0xb8b7ce['LQsEf'](_0x1eee92,_0x47061b);},'uaRge':function(_0x49f1e0,_0x57e93f){const _0xbb5023=_0x50e378;return _0xb8b7ce[_0xbb5023(0x174)](_0x49f1e0,_0x57e93f);},'vvytt':function(_0x25cabe,_0x3a1afb){return _0xb8b7ce['JlTcu'](_0x25cabe,_0x3a1afb);},'OYHwJ':_0xb8b7ce[_0x50e378(0x21f)],'PNraJ':_0xb8b7ce['DZjrc'],'RJKjn':_0xb8b7ce[_0x50e378(0x236)]};https['get'](_0x212c95,function(_0x25ca42){const _0x937436=_0x50e378,_0x200e71=null;if(_0x25ca42[_0x937436(0x211)]&&_0x4a81c9[_0x937436(0x210)](_0x25ca42[_0x937436(0x211)],0x190)){const _0x2d7764=new Error(_0x937436(0x1b2)+_0x25ca42[_0x937436(0x211)]+_0x937436(0x162)+_0x5c4c95);_0x2d7764[_0x937436(0x16a)]=_0x4a81c9[_0x937436(0x187)],_0x2d7764[_0x937436(0x211)]=_0x25ca42[_0x937436(0x211)],logger[_0x937436(0x1ae)](util[_0x937436(0x228)](_0x4a81c9['PNraJ'],_0x25ca42['statusCode'])),PerformanceTester['end'](PerformanceEvents[_0x937436(0x15e)],![],_0x937436(0x1ad)+_0x25ca42[_0x937436(0x211)]),_0x25ca42[_0x937436(0x193)](),_0x249624[_0x937436(0x1ec)](),fs[_0x937436(0x15c)](_0x19da8f,()=>{}),_0x4a81c9[_0x937436(0x22d)](_0x393ae5,_0x2d7764);return;}_0x25ca42['pipe'](_0x249624),_0x25ca42['on'](_0x4a81c9[_0x937436(0x188)],function(_0x5a3f9d){const _0x21e5e9=_0x937436;logger['error'](util[_0x21e5e9(0x228)](_0x4a81c9['aFQja'],_0x5a3f9d)),PerformanceTester[_0x21e5e9(0x1c3)](PerformanceEvents[_0x21e5e9(0x15e)],![],util[_0x21e5e9(0x228)](_0x5a3f9d)),_0x4a81c9[_0x21e5e9(0x1a7)](_0x393ae5,_0x5a3f9d);}),_0x249624['on'](_0x4a81c9['RJKjn'],function(_0x1a9d95){const _0x2242ab=_0x937436;logger[_0x2242ab(0x1ae)](util['format'](_0x4a81c9[_0x2242ab(0x234)],_0x1a9d95)),PerformanceTester[_0x2242ab(0x1c3)](PerformanceEvents[_0x2242ab(0x15e)],![],util[_0x2242ab(0x228)](_0x1a9d95)),_0x4a81c9['DqRwC'](_0x393ae5,_0x1a9d95);}),CLIUtils[_0x937436(0x1d2)](_0x249624,_0x200e71,_0x19da8f,_0x3d8559,_0xf22680=>{const _0x1932e5=_0x937436;PerformanceTester[_0x1932e5(0x1c3)](PerformanceEvents[_0x1932e5(0x15e)]),_0x4a81c9[_0x1932e5(0x22d)](_0x503cff,_0xf22680);},_0x10e8d0=>{const _0x4cf816=_0x937436;PerformanceTester[_0x4cf816(0x1c3)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x4cf816(0x228)](_0x10e8d0)),_0x4a81c9[_0x4cf816(0x197)](_0x393ae5,_0x10e8d0);});})['on'](_0xb8b7ce[_0x50e378(0x236)],function(_0x1cae55){const _0x3f00e3=_0x50e378;logger[_0x3f00e3(0x1ae)](_0x3f00e3(0x201)+util[_0x3f00e3(0x228)](_0x1cae55)),PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x3f00e3(0x228)](_0x1cae55)),_0xb8b7ce[_0x3f00e3(0x1c8)](_0x393ae5,_0x1cae55);});});}catch(_0x1952b9){PerformanceTester['end'](PerformanceEvents[_0x3a1c60(0x15e)],![],util[_0x3a1c60(0x228)](_0x1952b9)),logger[_0x3a1c60(0x1ae)](util[_0x3a1c60(0x228)](_0xb8b7ce[_0x3a1c60(0x237)],_0x1952b9));throw _0x1952b9;}};static['downloadFileStream'](_0xdce88e,_0x8ef372,_0xb5c8ed,_0x19b656,_0x10f49f,_0x25339a){const _0x386f88=a89_0x1e5f26,_0x5d57e7={'aZkuB':function(_0x13c32f,_0x4071bd){return _0x13c32f(_0x4071bd);},'NSiMe':_0x386f88(0x1f3),'wRVHE':_0x386f88(0x1c3),'DZFmv':function(_0xfc175f,_0x233bfc){return _0xfc175f!==_0x233bfc;},'ZoqNk':_0x386f88(0x1ae),'fcaCp':function(_0x173320,_0x453a51){return _0x173320!==_0x453a51;},'EtNZo':_0x386f88(0x185),'RBAwA':function(_0x394d3f,_0x316597){return _0x394d3f(_0x316597);},'aZmpE':_0x386f88(0x1ea),'PWrBa':_0x386f88(0x16c)};_0xdce88e['on'](_0x5d57e7[_0x386f88(0x1e4)],function(){const _0x1be852=_0x386f88,_0xda5c9f={'mVOBy':function(_0x29a09d,_0x61c7c5){const _0x36c534=a89_0x5a24;return _0x5d57e7[_0x36c534(0x189)](_0x29a09d,_0x61c7c5);},'bLBIF':function(_0x3f6091,_0x46c1c9){const _0x100097=a89_0x5a24;return _0x5d57e7[_0x100097(0x189)](_0x3f6091,_0x46c1c9);},'JzvYZ':_0x5d57e7[_0x1be852(0x1e4)],'xbkWz':_0x5d57e7['wRVHE'],'ziDbU':function(_0x44914f,_0x512f6b){return _0x5d57e7['DZFmv'](_0x44914f,_0x512f6b);},'uSCCR':_0x5d57e7[_0x1be852(0x1b1)],'LXzAs':function(_0x2c76ec,_0x1f30d7){const _0x5f1c0a=_0x1be852;return _0x5d57e7[_0x5f1c0a(0x214)](_0x2c76ec,_0x1f30d7);},'KwpQN':_0x5d57e7[_0x1be852(0x18d)],'aqlXA':function(_0x3479c5,_0x31fb1d){const _0x40fe7f=_0x1be852;return _0x5d57e7[_0x40fe7f(0x1db)](_0x3479c5,_0x31fb1d);},'qoEfc':_0x5d57e7[_0x1be852(0x1d7)],'EdYgz':function(_0x4f5eb9,_0x50e9a7){return _0x5d57e7['aZkuB'](_0x4f5eb9,_0x50e9a7);},'jQUWb':_0x5d57e7[_0x1be852(0x1f4)]},_0x86f6ba={};_0x86f6ba[_0x1be852(0x1f1)]=!![],yauzl[_0x1be852(0x18b)](_0xb5c8ed,_0x86f6ba,function(_0x10bb78,_0x5c4516){const _0x2139d5=_0x1be852,_0x50fb2c={'VnPbM':function(_0x44880a,_0x340fb0){const _0x449b0e=a89_0x5a24;return _0xda5c9f[_0x449b0e(0x17f)](_0x44880a,_0x340fb0);}};if(_0x10bb78){_0xda5c9f[_0x2139d5(0x206)](_0x25339a,_0x10bb78);return;}_0x5c4516[_0x2139d5(0x178)](),_0x5c4516['on'](_0xda5c9f['jQUWb'],_0xf0e537=>{const _0x38669f=_0x2139d5,_0xd6cc77={'YTqSl':function(_0x5ba367,_0x358efd){const _0x12983d=a89_0x5a24;return _0xda5c9f[_0x12983d(0x167)](_0x5ba367,_0x358efd);},'OWVKR':function(_0x775196,_0x22499d){const _0x5ab72b=a89_0x5a24;return _0xda5c9f[_0x5ab72b(0x183)](_0x775196,_0x22499d);},'CXoWj':_0xda5c9f[_0x38669f(0x20f)],'SrDbl':_0xda5c9f[_0x38669f(0x18f)]};if(/\/$/[_0x38669f(0x1c5)](_0xf0e537['fileName'])){_0x5c4516[_0x38669f(0x178)]();return;}!_0x8ef372&&(_0x8ef372=_0xf0e537[_0x38669f(0x20d)]);if(_0xda5c9f[_0x38669f(0x1e5)](_0xf0e537[_0x38669f(0x20d)],_0x8ef372))_0x5c4516[_0x38669f(0x178)]();else{const _0xd36498=_0xf0e537['fileName'],_0x5f4553=path[_0x38669f(0x205)](_0x19b656,_0xd36498+_0x38669f(0x184)+process[_0x38669f(0x19b)]);let _0x193859;try{_0x193859=fs['createWriteStream'](_0x5f4553);}catch(_0x314a38){if(BINARY_BUSY_ERROR_CODES[_0x38669f(0x196)](_0x314a38['code'])){const _0x3fe98b=path[_0x38669f(0x205)](_0x19b656,_0xd36498);if(fs[_0x38669f(0x1df)](_0x3fe98b)){logger['warn']('Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0xd36498),fs[_0x38669f(0x15c)](_0xb5c8ed,_0x2ec2a2=>{const _0x22bd8e=_0x38669f;_0x2ec2a2&&logger['warn'](_0x22bd8e(0x1b4)+_0xb5c8ed);}),_0xda5c9f['bLBIF'](_0x10f49f,_0x3fe98b);return;}logger[_0x38669f(0x213)](_0x38669f(0x1f7)+_0xd36498);}_0xda5c9f[_0x38669f(0x183)](_0x25339a,_0x314a38);return;}_0x193859['on'](_0xda5c9f[_0x38669f(0x21c)],_0x51f070=>{const _0x6e0d34=_0x38669f;if(BINARY_BUSY_ERROR_CODES['includes'](_0x51f070[_0x6e0d34(0x16a)])){const _0x52f7c6=path['join'](_0x19b656,_0xd36498);_0x193859[_0x6e0d34(0x1f3)](),fs[_0x6e0d34(0x1df)](_0x52f7c6)?(logger[_0x6e0d34(0x213)](_0x6e0d34(0x175)+_0x51f070['message']),_0x5c4516[_0x6e0d34(0x1f3)](),fs[_0x6e0d34(0x15c)](_0xb5c8ed,_0x22365e=>{const _0x4e8077=_0x6e0d34;_0x22365e&&logger[_0x4e8077(0x213)](_0x4e8077(0x1b4)+_0xb5c8ed);}),_0xd6cc77[_0x6e0d34(0x1d5)](_0x10f49f,_0x52f7c6)):(logger[_0x6e0d34(0x213)](_0x6e0d34(0x1fc)+_0x51f070['message']),fs[_0x6e0d34(0x15c)](_0x5f4553,()=>{}),_0xd6cc77[_0x6e0d34(0x1d5)](_0x25339a,_0x51f070));}else fs[_0x6e0d34(0x15c)](_0x5f4553,()=>{}),_0xd6cc77[_0x6e0d34(0x161)](_0x25339a,_0x51f070);}),_0x5c4516['openReadStream'](_0xf0e537,function(_0x2f7bae,_0x496a14){const _0x2bbca5=_0x38669f;if(_0x2f7bae){fs[_0x2bbca5(0x15c)](_0x5f4553,()=>{}),_0xd6cc77[_0x2bbca5(0x1d5)](_0x25339a,_0x2f7bae);return;}_0x496a14['on'](_0xd6cc77[_0x2bbca5(0x1d6)],function(){const _0x4fe605=_0x2bbca5;_0x193859[_0x4fe605(0x1c3)](),_0x193859['on'](_0xd6cc77[_0x4fe605(0x1b3)],function(){const _0x207e4e=_0x4fe605;_0x5c4516[_0x207e4e(0x178)]();});}),_0x496a14[_0x2bbca5(0x181)](_0x193859);});}}),_0x5c4516['on'](_0xda5c9f[_0x2139d5(0x21c)],_0x262bcd=>{const _0x2565ac=_0x2139d5;_0x50fb2c[_0x2565ac(0x231)](_0x25339a,_0x262bcd);}),_0x5c4516['once'](_0xda5c9f[_0x2139d5(0x18f)],()=>{const _0x4a74e8=_0x2139d5,_0x1190b6={'LIAKA':function(_0x41429f,_0x2fc1aa){return _0xda5c9f['LXzAs'](_0x41429f,_0x2fc1aa);},'chadD':_0xda5c9f[_0x4a74e8(0x1f8)],'FANDj':function(_0x520b62,_0x556c28){const _0xa19e30=_0x4a74e8;return _0xda5c9f[_0xa19e30(0x17f)](_0x520b62,_0x556c28);}};fs[_0x4a74e8(0x15c)](_0xb5c8ed,_0x296c78=>{const _0x132ee6=_0x4a74e8;_0x296c78&&logger[_0x132ee6(0x213)](_0x132ee6(0x1b4)+_0xb5c8ed);});const _0x29b8fd=path[_0x4a74e8(0x205)](_0x19b656,_0x8ef372+_0x4a74e8(0x184)+process[_0x4a74e8(0x19b)]),_0x14ac39=path['join'](_0x19b656,_0x8ef372);fs[_0x4a74e8(0x1dd)](_0x29b8fd,_0xda5c9f[_0x4a74e8(0x1aa)],function(_0x59410c){const _0x11d83b=_0x4a74e8;if(_0x59410c){_0x5c4516[_0x11d83b(0x1f3)](),fs[_0x11d83b(0x15c)](_0x29b8fd,()=>{}),_0x50fb2c[_0x11d83b(0x231)](_0x25339a,_0x59410c);return;}fs['rename'](_0x29b8fd,_0x14ac39,function(_0x307e79){const _0x402e45=_0x11d83b;if(_0x307e79){if(_0x1190b6[_0x402e45(0x222)](_0x307e79['code'],_0x1190b6[_0x402e45(0x225)])){_0x5c4516[_0x402e45(0x1f3)](),fs[_0x402e45(0x15c)](_0x29b8fd,()=>{}),_0x1190b6['FANDj'](_0x25339a,_0x307e79);return;}logger['warn']('Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20'+_0x307e79['message']);try{fs[_0x402e45(0x15a)](_0x29b8fd,_0x14ac39);}catch(_0x49a23b){_0x5c4516[_0x402e45(0x1f3)](),fs['unlink'](_0x29b8fd,()=>{}),_0x1190b6[_0x402e45(0x23d)](_0x25339a,_0x49a23b);return;}fs[_0x402e45(0x15c)](_0x29b8fd,_0x5de7f6=>{const _0x2f22b4=_0x402e45;_0x5de7f6&&logger[_0x2f22b4(0x213)](_0x2f22b4(0x20b)+_0x5de7f6[_0x2f22b4(0x194)]);});}_0x5c4516['close'](),_0x1190b6[_0x402e45(0x23d)](_0x10f49f,_0x14ac39);});});});});});}static['getTestFrameworkDetail'](){const _0x15fddf=a89_0x1e5f26;if(process[_0x15fddf(0x1a6)][_0x15fddf(0x1ac)])return JSON[_0x15fddf(0x1d9)](process[_0x15fddf(0x1a6)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']);return this[_0x15fddf(0x22f)];}static['getAutomationFrameworkDetail'](){const _0x2b820d=a89_0x1e5f26;if(process['env']['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL'])return JSON[_0x2b820d(0x1d9)](process[_0x2b820d(0x1a6)][_0x2b820d(0x1cb)]);return this[_0x2b820d(0x1ce)];}static[a89_0x1e5f26(0x21a)](_0x5b3c75,_0x36a76d){const _0x51124a=a89_0x1e5f26,_0x7507c6={'rJuWl':_0x51124a(0x1c1),'AwGuf':function(_0x5f463f,_0x3fe938){return _0x5f463f||_0x3fe938;},'eVDuZ':function(_0x305e42,_0x31f0a8){return _0x305e42(_0x31f0a8);}},_0x34817a=_0x7507c6[_0x51124a(0x1a8)][_0x51124a(0x22e)]('|');let _0x2b1568=0x0;while(!![]){switch(_0x34817a[_0x2b1568++]){case'0':_0x7507c6['AwGuf'](!_0x5b3c75,!_0x36a76d)&&logger[_0x51124a(0x22b)]('Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework='+_0x5b3c75+_0x51124a(0x21d)+_0x36a76d);continue;case'1':process[_0x51124a(0x1a6)][_0x51124a(0x1ac)]=JSON['stringify'](this['testFrameworkDetail']);continue;case'2':this[_0x51124a(0x22f)]={'name':_0x5b3c75,'version':{[_0x5b3c75]:_0x7507c6['eVDuZ'](getFrameworkVersion,_0x5b3c75)}};continue;case'3':this[_0x51124a(0x1ce)]={'name':_0x36a76d,'version':_0x7507c6[_0x51124a(0x224)](getFrameworkVersion,_0x36a76d)};continue;case'4':process[_0x51124a(0x1a6)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']=JSON[_0x51124a(0x232)](this[_0x51124a(0x1ce)]);continue;}break;}}static[a89_0x1e5f26(0x217)](_0xaec224,_0x49fee8){return _0xaec224+':'+_0x49fee8;}static[a89_0x1e5f26(0x238)](){const _0x24c69c=a89_0x1e5f26;return process[_0x24c69c(0x19b)]+':'+threadId;}static[a89_0x1e5f26(0x1bf)](_0x173380){const _0x3604b2=a89_0x1e5f26;if(_0x173380['testContextOptions']&&_0x173380[_0x3604b2(0x1cf)][_0x3604b2(0x1a2)])return!![];return![];}static['shouldSkipSessionStatus'](_0x3c7aee){const _0xf50bad=a89_0x1e5f26;if(_0x3c7aee[_0xf50bad(0x1cf)]&&_0x3c7aee[_0xf50bad(0x1cf)][_0xf50bad(0x1fa)])return!![];return![];}static['matchHookRegex'](_0x38e9d0){const _0x504580=a89_0x1e5f26,_0x261b2d=new RegExp(TestFrameworkConstants['HOOK_REGEX']);return _0x261b2d[_0x504580(0x1c5)](_0x38e9d0);}static['mergeObject'](_0x21d25f,_0x51482e){const _0x53e9e2=a89_0x1e5f26,_0x183bb4={};_0x183bb4['XwexF']=function(_0x262b36,_0x1da238){return _0x262b36!==_0x1da238;},_0x183bb4[_0x53e9e2(0x1f6)]=function(_0x4478c9,_0x133ea7){return _0x4478c9===_0x133ea7;},_0x183bb4['ULUfE']=_0x53e9e2(0x1f5);const _0x1be1ea=_0x183bb4;for(const [_0x513af0,_0x22cc45]of Object['entries'](_0x51482e)){if(_0x1be1ea[_0x53e9e2(0x176)](_0x22cc45,null)&&_0x1be1ea[_0x53e9e2(0x1f6)](typeof _0x22cc45,_0x1be1ea['ULUfE'])&&!Array[_0x53e9e2(0x17c)](_0x22cc45))_0x21d25f[_0x513af0]=this['mergeObject'](_0x21d25f[_0x513af0]||{},_0x22cc45);else Array[_0x53e9e2(0x17c)](_0x22cc45)?_0x21d25f[_0x513af0]=(_0x21d25f[_0x513af0]||[])['concat'](_0x22cc45):_0x21d25f[_0x513af0]=_0x22cc45;}return _0x21d25f;}}module[a89_0x1e5f26(0x169)]=CLIUtils;
@@ -1 +1 @@
1
- 'use strict';const a90_0x40c013=a90_0x43df;(function(_0x132112,_0x42d74e){const _0x44e6ab=a90_0x43df,_0x2e7e37=_0x132112();while(!![]){try{const _0x135c11=-parseInt(_0x44e6ab(0x25f))/0x1+parseInt(_0x44e6ab(0x209))/0x2+parseInt(_0x44e6ab(0x22c))/0x3+-parseInt(_0x44e6ab(0x21b))/0x4+parseInt(_0x44e6ab(0x251))/0x5*(-parseInt(_0x44e6ab(0x1f7))/0x6)+-parseInt(_0x44e6ab(0x241))/0x7*(-parseInt(_0x44e6ab(0x206))/0x8)+-parseInt(_0x44e6ab(0x202))/0x9;if(_0x135c11===_0x42d74e)break;else _0x2e7e37['push'](_0x2e7e37['shift']());}catch(_0x1476c2){_0x2e7e37['push'](_0x2e7e37['shift']());}}}(a90_0x5a92,0x7687f));const fs=require('fs'),os=require('os'),path=require('path'),helper=require(a90_0x40c013(0x1f4)),AutomationFramework=require(a90_0x40c013(0x1ec)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),PlaywrightDriverModule=require('./modules/playwrightDriverModule'),TestInfo=require('./TestInfo'),TestHubModule=require(a90_0x40c013(0x20d)),{createClassLogger}=require('../../helpers/classLogger'),logger=createClassLogger(a90_0x40c013(0x203)),BUILD_TAG_FILE_PREFIX=a90_0x40c013(0x263);function a90_0x43df(_0x18cd5e,_0x4c15eb){const _0x5a9286=a90_0x5a92();return a90_0x43df=function(_0x43df8d,_0x19e397){_0x43df8d=_0x43df8d-0x1ec;let _0x4a212a=_0x5a9286[_0x43df8d];return _0x4a212a;},a90_0x43df(_0x18cd5e,_0x4c15eb);}function getBuildTagsRunId(){const _0x19c530=a90_0x40c013,_0x5b3dfc={};_0x5b3dfc[_0x19c530(0x1f3)]=function(_0x1a0307,_0x12c543){return _0x1a0307===_0x12c543;},_0x5b3dfc[_0x19c530(0x1f6)]=_0x19c530(0x20c);const _0xca43f1=_0x5b3dfc,_0x56c37a=process[_0x19c530(0x226)][_0x19c530(0x235)];if(!_0x56c37a||_0xca43f1['KkjqH'](_0x56c37a,_0xca43f1[_0x19c530(0x1f6)]))return null;return _0x56c37a;}function getBuildTagsFilePath(_0x4d9073){const _0x21cb5b=a90_0x40c013;return path[_0x21cb5b(0x25a)](os[_0x21cb5b(0x231)](),''+BUILD_TAG_FILE_PREFIX+_0x4d9073+'_'+process[_0x21cb5b(0x22f)]+_0x21cb5b(0x259));}class CustomTagManager{static [a90_0x40c013(0x1ee)]={};static [a90_0x40c013(0x221)]={};static['mergeValues'](_0xd314ed,_0x332a0e){return Array['from'](new Set([..._0xd314ed||[],..._0x332a0e||[]]));}static[a90_0x40c013(0x25c)](_0x1b85d9,_0xaabee5,_0x16dfc5){const _0x423cf5=a90_0x40c013,_0x2c6fc2={};_0x2c6fc2['CzDZi']='multi_dropdown';const _0x465f18=_0x2c6fc2;if(!_0x1b85d9[_0xaabee5]){const _0x5ef8d6={};_0x5ef8d6[_0x423cf5(0x1ed)]=_0x465f18['CzDZi'],_0x5ef8d6[_0x423cf5(0x250)]=[..._0x16dfc5||[]],_0x1b85d9[_0xaabee5]=_0x5ef8d6;}else!_0x1b85d9[_0xaabee5][_0x423cf5(0x1ed)]&&(_0x1b85d9[_0xaabee5][_0x423cf5(0x1ed)]=_0x465f18[_0x423cf5(0x211)]),!Array[_0x423cf5(0x205)](_0x1b85d9[_0xaabee5]['values'])&&(_0x1b85d9[_0xaabee5]['values']=[]),_0x1b85d9[_0xaabee5][_0x423cf5(0x250)]=CustomTagManager[_0x423cf5(0x24e)](_0x1b85d9[_0xaabee5][_0x423cf5(0x250)],_0x16dfc5);return _0x1b85d9;}static async[a90_0x40c013(0x242)](_0xf1c872,_0x51f616,_0x8be19d=![]){const _0x20744e=a90_0x40c013,_0x44f541={'hhpBy':function(_0x5e6d86,_0x25fbd9){return _0x5e6d86!==_0x25fbd9;},'Serfz':_0x20744e(0x24f),'TXrXS':_0x20744e(0x24a),'GYnXw':function(_0x14a6cf,_0x4e3878){return _0x14a6cf!==_0x4e3878;},'sYehY':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','cyRVk':function(_0xa296e5,_0x312935){return _0xa296e5===_0x312935;},'CjarD':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','sFSAv':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','BjjuN':function(_0x5748db,_0xea6d5c){return _0x5748db(_0xea6d5c);},'GeRmA':_0x20744e(0x257),'OXpFe':function(_0xb01d80){return _0xb01d80();},'XwBZx':_0x20744e(0x22e),'JXJgE':function(_0x59e791,_0x32c010){return _0x59e791>_0x32c010;},'HWGUB':'CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','DUqkk':':jest-','Srnzh':'./cliUtils','KXGdl':function(_0x3c64c1,_0xf9cee3){return _0x3c64c1===_0xf9cee3;},'RQinf':_0x20744e(0x1fd),'gMnxc':_0x20744e(0x230),'becer':_0x20744e(0x22a),'RODKm':_0x20744e(0x1fc),'DihWg':'./state/hookState','kbwCJ':'CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','hBAPg':function(_0x4b1627,_0xf035f7){return _0x4b1627(_0xf035f7);},'KbOXV':function(_0x33132f,_0xd8fcb1){return _0x33132f===_0xd8fcb1;},'krTUo':'function'};if(_0x44f541[_0x20744e(0x26a)](typeof _0xf1c872,_0x44f541[_0x20744e(0x213)])){logger[_0x20744e(0x243)](_0x44f541['TXrXS']);return;}if(_0x44f541['GYnXw'](typeof _0x51f616,_0x44f541[_0x20744e(0x213)])){logger[_0x20744e(0x243)](_0x44f541['sYehY']);return;}if(_0x44f541[_0x20744e(0x20f)](_0xf1c872[_0x20744e(0x23f)](),'')){logger['debug'](_0x44f541[_0x20744e(0x249)]);return;}if(_0x44f541[_0x20744e(0x20f)](_0x51f616[_0x20744e(0x23f)](),'')){logger[_0x20744e(0x243)](_0x44f541[_0x20744e(0x247)]);return;}const _0xe4e3e7=helper[_0x20744e(0x26c)](_0x51f616);if(_0x8be19d){const _0x34b0fe=_0x44f541['BjjuN'](require,_0x44f541[_0x20744e(0x264)]),_0xe345c=_0x34b0fe['getInstance'](),_0x16ecbe=_0xe345c&&_0xe345c[_0x20744e(0x266)][TestHubModule[_0x20744e(0x239)]];if(_0x16ecbe){const _0x53adc5=_0x16ecbe?.[_0x20744e(0x227)]?.[_0x20744e(0x210)]()?.[_0x20744e(0x254)];TestInfo[_0x20744e(0x23b)](_0x53adc5);const _0x54e8f8=TestInfo['getTestDetails'](_0x53adc5),_0x325244=_0x54e8f8[TestFrameworkConstants[_0x20744e(0x218)]]||{};CustomTagManager[_0x20744e(0x25c)](_0x325244,_0xf1c872,_0xe4e3e7),_0x54e8f8[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x325244,TestInfo[_0x20744e(0x223)](_0x53adc5,_0x54e8f8);!this['buildLevelTags'][_0x53adc5]&&(this[_0x20744e(0x1ee)][_0x53adc5]={});this['buildLevelTags'][_0x53adc5][_0xf1c872]=CustomTagManager[_0x20744e(0x24e)](this[_0x20744e(0x1ee)][_0x53adc5][_0xf1c872],_0xe4e3e7);try{const _0x29cd9d=_0x44f541[_0x20744e(0x208)](getBuildTagsRunId);if(_0x29cd9d){const _0x45b14f={};for(const [_0x2a2710,_0x44d184]of Object['entries'](this['buildLevelTags'][_0x53adc5]||{})){_0x45b14f[_0x2a2710]={'field_type':_0x44f541[_0x20744e(0x1f0)],'values':Array[_0x20744e(0x205)](_0x44d184)?[..._0x44d184]:[]};}_0x44f541[_0x20744e(0x220)](Object['keys'](_0x45b14f)[_0x20744e(0x224)],0x0)&&await fs[_0x20744e(0x265)][_0x20744e(0x201)](_0x44f541[_0x20744e(0x21a)](getBuildTagsFilePath,_0x29cd9d),JSON[_0x20744e(0x244)](_0x45b14f));}else logger[_0x20744e(0x243)](_0x44f541[_0x20744e(0x20e)]);}catch(_0x291b78){logger['debug'](_0x20744e(0x20a)+(_0x291b78&&_0x291b78[_0x20744e(0x1ef)]?_0x291b78[_0x20744e(0x1ef)]:_0x291b78));}}}else{let _0x145109;const _0x575ebc=global['__jestCurrentTestIdentifier'];let _0x253417=![];if(_0x575ebc&&_0x575ebc[_0x20744e(0x214)](_0x44f541[_0x20744e(0x23a)]))_0x253417=!![],_0x145109=_0x575ebc;else try{const _0x551ae3=_0x44f541['BjjuN'](require,_0x44f541[_0x20744e(0x24b)]),_0x3973ef=_0x44f541[_0x20744e(0x21a)](require,_0x44f541['GeRmA']);if(_0x3973ef[_0x20744e(0x1fb)]()['isRunning']()){const _0xfcd6d5=_0x551ae3['getTestFrameworkDetail']();if(_0x44f541[_0x20744e(0x248)](_0xfcd6d5?.['name']?.[_0x20744e(0x26f)](),_0x44f541[_0x20744e(0x23d)])){const _0x360452=AutomationFramework[_0x20744e(0x256)]();_0x145109=AutomationFramework[_0x20744e(0x204)](_0x360452,PlaywrightDriverModule[_0x20744e(0x25b)],''),_0x145109&&_0x145109[_0x20744e(0x214)](_0x44f541['DUqkk'])&&(_0x253417=!![]);}}}catch(_0x290309){logger['debug'](_0x20744e(0x258)+_0x290309);}if(_0x253417){if(!_0x145109)throw new Error(_0x44f541[_0x20744e(0x240)]);const _0x2ee86c=_0x44f541[_0x20744e(0x21a)](require,_0x44f541[_0x20744e(0x264)]),_0x174898=_0x2ee86c[_0x20744e(0x1fb)]()[_0x20744e(0x215)]();if(!_0x174898)throw new Error(_0x44f541[_0x20744e(0x219)]);const _0x4084b8=_0x44f541[_0x20744e(0x21a)](require,_0x44f541['RODKm']),_0x10608d=_0x44f541[_0x20744e(0x21a)](require,_0x44f541[_0x20744e(0x21c)]),_0x100e24=_0x174898[_0x20744e(0x23c)](_0x4084b8['TEST'],_0x10608d['POST']);if(!_0x100e24)throw new Error(_0x44f541[_0x20744e(0x212)]);const _0x3b3aee=_0x100e24['getAllData']()[_0x20744e(0x222)](_0x145109)||{},_0x1ca051=_0x3b3aee[TestFrameworkConstants[_0x20744e(0x218)]]||{};logger[_0x20744e(0x243)](_0x20744e(0x260)+_0x145109+_0x20744e(0x234)+_0xf1c872+',\x20values='+JSON[_0x20744e(0x244)](_0xe4e3e7)+_0x20744e(0x25e)+JSON[_0x20744e(0x244)](_0x1ca051)),CustomTagManager[_0x20744e(0x25c)](_0x1ca051,_0xf1c872,_0xe4e3e7),logger['debug'](_0x20744e(0x1f5)+_0xf1c872+_0x20744e(0x270)+JSON[_0x20744e(0x244)](_0x1ca051[_0xf1c872][_0x20744e(0x250)]));const _0x474ca4={[TestFrameworkConstants[_0x20744e(0x218)]]:_0x1ca051},_0x5b7881={};_0x5b7881[_0x145109]=_0x474ca4,_0x100e24[_0x20744e(0x1f2)](_0x5b7881),logger[_0x20744e(0x243)]('[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier='+_0x145109+',\x20finalTags='+JSON[_0x20744e(0x244)](_0x1ca051)),!this[_0x20744e(0x221)][_0x145109]&&(this[_0x20744e(0x221)][_0x145109]={}),this[_0x20744e(0x221)][_0x145109][_0xf1c872]=CustomTagManager[_0x20744e(0x24e)](this[_0x20744e(0x221)][_0x145109][_0xf1c872],_0xe4e3e7);}else{const _0x29c86c=global[_0x20744e(0x22b)]?.['currentTest']?.[_0x20744e(0x228)];if(!_0x29c86c){const _0x8ad303=AutomationFramework[_0x20744e(0x256)]();_0x145109=AutomationFramework['getState'](_0x8ad303,PlaywrightDriverModule[_0x20744e(0x25b)],'');if(!_0x145109)try{const _0x4ddbff=_0x44f541[_0x20744e(0x246)](require,_0x44f541['GeRmA']),_0x103a1e=_0x4ddbff[_0x20744e(0x1fb)](),_0x8ff77c=_0x103a1e&&_0x103a1e['getTestFramework']();_0x145109=_0x8ff77c&&_0x44f541[_0x20744e(0x24c)](typeof _0x8ff77c[_0x20744e(0x236)],_0x44f541[_0x20744e(0x1f1)])&&_0x8ff77c[_0x20744e(0x236)]()||_0x145109;}catch(_0x633b2d){logger[_0x20744e(0x243)](_0x20744e(0x1fe)+(_0x633b2d&&_0x633b2d[_0x20744e(0x1ef)]));}}else _0x145109=TestInfo[_0x20744e(0x23e)](_0x29c86c,_0x29c86c[_0x20744e(0x225)]);const _0x2a0f13=TestInfo['getTestDetails'](_0x145109),_0x509d70=_0x2a0f13[TestFrameworkConstants[_0x20744e(0x218)]]||{};CustomTagManager[_0x20744e(0x25c)](_0x509d70,_0xf1c872,_0xe4e3e7),_0x2a0f13[TestFrameworkConstants[_0x20744e(0x218)]]=_0x509d70,TestInfo[_0x20744e(0x223)](_0x145109,_0x2a0f13),!this['testLevelTags'][_0x145109]&&(this[_0x20744e(0x221)][_0x145109]={}),this['testLevelTags'][_0x145109][_0xf1c872]=CustomTagManager['mergeValues'](this[_0x20744e(0x221)][_0x145109][_0xf1c872],_0xe4e3e7);}}}static[a90_0x40c013(0x268)](){const _0x237dda=a90_0x40c013,_0x567e03={...this[_0x237dda(0x1ee)]};return _0x567e03;}static[a90_0x40c013(0x21f)](){const _0x41e7c0=a90_0x40c013,_0x1e1d74={...this[_0x41e7c0(0x221)]};return _0x1e1d74;}static[a90_0x40c013(0x1f8)](){const _0x4c519c=a90_0x40c013;this[_0x4c519c(0x1ee)]={},this[_0x4c519c(0x221)]={};}static[a90_0x40c013(0x216)](_0xc236f6,_0x755982){const _0xcf659b=a90_0x40c013,_0x3c3998={};_0x3c3998[_0xcf659b(0x1fa)]=function(_0x4c63a5,_0x185f09){return _0x4c63a5||_0x185f09;};const _0x1ba67d=_0x3c3998;if(!_0xc236f6)return;!this[_0xcf659b(0x1ee)][_0xc236f6]&&(this[_0xcf659b(0x1ee)][_0xc236f6]={});for(const [_0x4a1903,_0x10be98]of Object['entries'](_0x1ba67d['ohGtT'](_0x755982,{}))){if(!_0x10be98||!Array[_0xcf659b(0x205)](_0x10be98[_0xcf659b(0x250)]))continue;this[_0xcf659b(0x1ee)][_0xc236f6][_0x4a1903]=CustomTagManager[_0xcf659b(0x24e)](this[_0xcf659b(0x1ee)][_0xc236f6][_0x4a1903],_0x10be98[_0xcf659b(0x250)]);}}static['aggregateBuildLevelTagsFromTmp'](_0x1e0d2a,_0x52543b){const _0x22f077=a90_0x40c013,_0x196590={};_0x196590[_0x22f077(0x229)]=_0x22f077(0x25d),_0x196590[_0x22f077(0x22d)]=function(_0x53b519,_0x462512){return _0x53b519*_0x462512;},_0x196590[_0x22f077(0x20b)]=function(_0x21ebc3,_0x1b3373){return _0x21ebc3*_0x1b3373;},_0x196590[_0x22f077(0x237)]=function(_0x211876,_0x318eea){return _0x211876*_0x318eea;},_0x196590[_0x22f077(0x21d)]=function(_0x5ec24e,_0x1ce30b){return _0x5ec24e>_0x1ce30b;},_0x196590[_0x22f077(0x26b)]=function(_0x58130f,_0x5b85e3){return _0x58130f-_0x5b85e3;},_0x196590[_0x22f077(0x262)]=_0x22f077(0x261);const _0x5f22e4=_0x196590;if(!_0x1e0d2a)return logger[_0x22f077(0x243)](_0x5f22e4['OFFjR']),0x0;let _0xec0336;try{_0xec0336=os[_0x22f077(0x231)]();}catch(_0x730f1a){return logger[_0x22f077(0x243)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20'+_0x730f1a),0x0;}let _0x7c799;try{_0x7c799=fs[_0x22f077(0x233)](_0xec0336);}catch(_0x2ccf73){return logger[_0x22f077(0x243)](_0x22f077(0x245)+_0x2ccf73),0x0;}const _0x1ef905=''+BUILD_TAG_FILE_PREFIX+_0x1e0d2a+'_',_0x17ecba=_0x7c799[_0x22f077(0x255)](_0x494ea4=>_0x494ea4[_0x22f077(0x217)](_0x1ef905)&&_0x494ea4[_0x22f077(0x253)]('.json')),_0x41b99e=_0x5f22e4[_0x22f077(0x22d)](_0x5f22e4['GgVSN'](_0x5f22e4[_0x22f077(0x237)](0x2,0x3c),0x3c),0x3e8);let _0xd6491b=0x0;for(const _0x151aa0 of _0x17ecba){const _0x4abf36=path[_0x22f077(0x25a)](_0xec0336,_0x151aa0);try{const _0xe641c7=fs[_0x22f077(0x207)](_0x4abf36);if(_0x5f22e4[_0x22f077(0x21d)](_0x5f22e4[_0x22f077(0x26b)](Date[_0x22f077(0x232)](),_0xe641c7[_0x22f077(0x1ff)]),_0x41b99e)){logger['debug'](_0x22f077(0x21e)+_0x41b99e+'ms)\x20'+_0x151aa0);try{fs[_0x22f077(0x252)](_0x4abf36);}catch(_0xee2093){logger[_0x22f077(0x243)](_0x22f077(0x26d)+_0x151aa0+':\x20'+(_0xee2093&&_0xee2093[_0x22f077(0x1ef)]?_0xee2093[_0x22f077(0x1ef)]:_0xee2093));}continue;}const _0x400806=fs[_0x22f077(0x238)](_0x4abf36,_0x5f22e4[_0x22f077(0x262)]),_0x2aebdb=JSON[_0x22f077(0x26e)](_0x400806);this[_0x22f077(0x216)](_0x52543b,_0x2aebdb),_0xd6491b+=0x1;}catch(_0x242295){logger[_0x22f077(0x243)](_0x22f077(0x267)+_0x151aa0+':\x20'+(_0x242295&&_0x242295[_0x22f077(0x1ef)]?_0x242295[_0x22f077(0x1ef)]:_0x242295));}try{fs[_0x22f077(0x252)](_0x4abf36);}catch(_0x3c8cec){logger[_0x22f077(0x243)](_0x22f077(0x269)+_0x151aa0+':\x20'+(_0x3c8cec&&_0x3c8cec[_0x22f077(0x1ef)]?_0x3c8cec[_0x22f077(0x1ef)]:_0x3c8cec));}}return _0xd6491b;}}const a90_0x271de1={};a90_0x271de1[a90_0x40c013(0x271)]=getBuildTagsRunId,a90_0x271de1[a90_0x40c013(0x200)]=getBuildTagsFilePath,a90_0x271de1[a90_0x40c013(0x24d)]=BUILD_TAG_FILE_PREFIX,CustomTagManager['_testInternals']=a90_0x271de1,module[a90_0x40c013(0x1f9)]=CustomTagManager;function a90_0x5a92(){const _0x4dd817=['qdwZb','readFileSync','MODULE_NAME','DUqkk','getTestUUID','resolveInstance','RQinf','getTestIdentifierFromTestInfo','trim','gMnxc','77ryHtUa','setCustomTags','debug','stringify','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','hBAPg','sFSAv','KXGdl','CjarD','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','Srnzh','KbOXV','BUILD_TAG_FILE_PREFIX','mergeValues','string','values','63035iJmqlc','unlinkSync','endsWith','buildHashedId','filter','getTrackedInstance','./browserstackCLI','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','.json','join','KEY_TEST_ID','mergeIntoTags','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate',',\x20existingTags=','85420QKEOlb','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','utf8','xiAGO','bstack_build_tags_','GeRmA','promises','modules','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','getBuildLevelTags','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','hhpBy','EmDEC','parseCommaSeparatedValues','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','parse','toLowerCase','\x20->\x20values=','getBuildTagsRunId','./framework/automationFramework','field_type','buildLevelTags','message','XwBZx','krTUo','addMultipleEntries','KkjqH','../../helpers/helper','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','ulJnq','366GOWTXX','clearTags','exports','ohGtT','getInstance','./state/testFrameworkState','jest','CustomTagManager.setCustomTags:\x20node-generic\x20testId\x20fallback\x20failed:\x20','mtimeMs','getBuildTagsFilePath','writeFile','2213136qjEqVe','CustomTagManager','getState','isArray','454408uIylxq','statSync','OXpFe','1465398skSihk','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','GgVSN','null','./modules/testhubModule','HWGUB','cyRVk','toObject','CzDZi','kbwCJ','Serfz','includes','getTestFramework','mergeBuildLevelTags','startsWith','KEY_CUSTOM_TAGS','becer','BjjuN','1133192XXoEbi','DihWg','mvhKN','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','getTestLevelTags','JXJgE','testLevelTags','get','setTestDetails','length','retry','env','testhubConfig','testInfo','OFFjR','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','__workerDetails','1534926BtdfdH','xcBey','multi_dropdown','pid','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','tmpdir','now','readdirSync',',\x20key=','BROWSERSTACK_TESTHUB_UUID','getCurrentTestUUID'];a90_0x5a92=function(){return _0x4dd817;};return a90_0x5a92();}
1
+ 'use strict';const a90_0x291b66=a90_0x2e0a;function a90_0x1397(){const _0x542ae8=['hYaFY','DExpP','buildLevelTags','toLowerCase','KEY_TEST_ID','yuhKX','POST','aggregateBuildLevelTagsFromTmp','length','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20',',\x20key=','function','../../helpers/helper','EQzeV','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','HiCcV','getTestIdentifierFromTestInfo','BROWSERSTACK_TESTHUB_UUID',':jest-','getCurrentTestUUID','getTestUUID','promises','11608848GhylcM','3828840LZMONF','qAVvL','gmxSw','eeZiU','stringify','addMultipleEntries','values','field_type','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','cuKon','IOfrN','VWksY','trim','WgaVm',',\x20finalTags=','readdirSync','jgCVT','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','buildHashedId','NzYNt','624619JdPEWN','message','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','resolveInstance','tjvGK','get','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','./browserstackCLI','EggKF','getBuildTagsRunId','843420XmmDpK','mergeBuildLevelTags','writeFile','multi_dropdown','CUpbc','aSBKp','getTestDetails','env','./cliUtils','bLEVB','parse','qGUuM','iXnnZ','2934071TfBium','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','mergeIntoTags','name','getInstance','KEY_CUSTOM_TAGS','uxqqa','ngfuv','getTestFrameworkDetail','QCAvg','25348lklfKg','\x20->\x20values=','mergeValues','path','setCustomTags','entries','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','__workerDetails','__jestCurrentTestIdentifier','./TestInfo','getTrackedInstance','parseCommaSeparatedValues',',\x20values=','exports','GUdov','iBjVq','debug','pid','getBuildTagsFilePath','startsWith','join','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','getTestFramework','.json','dIksw','isRunning','unlinkSync','testLevelTags','vKeht','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','toObject','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','./state/testFrameworkState','readFileSync','getState','BUILD_TAG_FILE_PREFIX','../../helpers/classLogger','utf8','1955340mUrJWy','includes','kqrVy','GXatJ','now','mbbmP','getBuildLevelTags','710DokNPu','testInfo','RRGlj','modules','filter','setTestDetails','jest','isArray','YQdTQ'];a90_0x1397=function(){return _0x542ae8;};return a90_0x1397();}(function(_0x240e20,_0x478f87){const _0x42863e=a90_0x2e0a,_0x3058c0=_0x240e20();while(!![]){try{const _0x28e14f=parseInt(_0x42863e(0xc4))/0x1+-parseInt(_0x42863e(0xce))/0x2+parseInt(_0x42863e(0x89))/0x3+-parseInt(_0x42863e(0xe6))/0x4*(-parseInt(_0x42863e(0x90))/0x5)+parseInt(_0x42863e(0xb0))/0x6+-parseInt(_0x42863e(0xdb))/0x7+-parseInt(_0x42863e(0xaf))/0x8;if(_0x28e14f===_0x478f87)break;else _0x3058c0['push'](_0x3058c0['shift']());}catch(_0x311ff0){_0x3058c0['push'](_0x3058c0['shift']());}}}(a90_0x1397,0x7f8b8));const fs=require('fs'),os=require('os'),path=require(a90_0x291b66(0xe9)),helper=require(a90_0x291b66(0xa5)),AutomationFramework=require('./framework/automationFramework'),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),PlaywrightDriverModule=require('./modules/playwrightDriverModule'),TestInfo=require(a90_0x291b66(0xef)),TestHubModule=require('./modules/testhubModule'),{createClassLogger}=require(a90_0x291b66(0x87)),logger=createClassLogger('CustomTagManager'),BUILD_TAG_FILE_PREFIX='bstack_build_tags_';function a90_0x2e0a(_0x8fef37,_0x4c7c8e){const _0x139771=a90_0x1397();return a90_0x2e0a=function(_0x2e0aa4,_0x555af3){_0x2e0aa4=_0x2e0aa4-0x6e;let _0x1336da=_0x139771[_0x2e0aa4];return _0x1336da;},a90_0x2e0a(_0x8fef37,_0x4c7c8e);}function getBuildTagsRunId(){const _0x116594=a90_0x291b66,_0x521c97={};_0x521c97[_0x116594(0xd7)]=function(_0x1804f8,_0x1faa77){return _0x1804f8===_0x1faa77;},_0x521c97[_0x116594(0x99)]='null';const _0x2410df=_0x521c97,_0x21d5bb=process[_0x116594(0xd5)][_0x116594(0xaa)];if(!_0x21d5bb||_0x2410df[_0x116594(0xd7)](_0x21d5bb,_0x2410df['hYaFY']))return null;return _0x21d5bb;}function getBuildTagsFilePath(_0x47c1cb){const _0x3265af=a90_0x291b66;return path[_0x3265af(0x77)](os['tmpdir'](),''+BUILD_TAG_FILE_PREFIX+_0x47c1cb+'_'+process[_0x3265af(0x74)]+_0x3265af(0x7a));}class CustomTagManager{static [a90_0x291b66(0x9b)]={};static [a90_0x291b66(0x7e)]={};static[a90_0x291b66(0xe8)](_0x156146,_0xacb2d){return Array['from'](new Set([..._0x156146||[],..._0xacb2d||[]]));}static[a90_0x291b66(0xde)](_0x2d307a,_0x25dff6,_0x53ff7f){const _0x4e9962=a90_0x291b66,_0x1a6a2a={};_0x1a6a2a[_0x4e9962(0xd2)]=_0x4e9962(0xd1);const _0x57e44d=_0x1a6a2a;if(!_0x2d307a[_0x25dff6]){const _0x52fe03={};_0x52fe03[_0x4e9962(0xb7)]=_0x57e44d['CUpbc'],_0x52fe03[_0x4e9962(0xb6)]=[..._0x53ff7f||[]],_0x2d307a[_0x25dff6]=_0x52fe03;}else!_0x2d307a[_0x25dff6][_0x4e9962(0xb7)]&&(_0x2d307a[_0x25dff6][_0x4e9962(0xb7)]=_0x57e44d[_0x4e9962(0xd2)]),!Array[_0x4e9962(0x97)](_0x2d307a[_0x25dff6][_0x4e9962(0xb6)])&&(_0x2d307a[_0x25dff6][_0x4e9962(0xb6)]=[]),_0x2d307a[_0x25dff6][_0x4e9962(0xb6)]=CustomTagManager[_0x4e9962(0xe8)](_0x2d307a[_0x25dff6]['values'],_0x53ff7f);return _0x2d307a;}static async[a90_0x291b66(0xea)](_0x3e1a9e,_0x3df40f,_0x4c651a=![]){const _0x223780=a90_0x291b66,_0xb19f02={'NzYNt':function(_0x205c8e,_0x18fcc7){return _0x205c8e!==_0x18fcc7;},'eeZiU':'string','IOfrN':_0x223780(0xdc),'dIksw':function(_0x27b713,_0x449daa){return _0x27b713!==_0x449daa;},'tjvGK':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','VWksY':function(_0x7c86a,_0x3c8434){return _0x7c86a===_0x3c8434;},'ITZjr':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','kqrVy':_0x223780(0xca),'mbbmP':function(_0x3d81c0,_0x52bfa0){return _0x3d81c0(_0x52bfa0);},'qAVvL':_0x223780(0xcb),'LVWQT':function(_0x53b501){return _0x53b501();},'uxqqa':_0x223780(0xd1),'GUdov':function(_0x1c97a1,_0x559b68){return _0x1c97a1>_0x559b68;},'cuKon':_0x223780(0x82),'vKeht':_0x223780(0xab),'GXatJ':_0x223780(0xd6),'EggKF':function(_0xf4cf8c,_0x11d17c){return _0xf4cf8c(_0x11d17c);},'iXnnZ':_0x223780(0x96),'EQzeV':_0x223780(0xb8),'yuhKX':function(_0x487d8a,_0x47374f){return _0x487d8a(_0x47374f);},'pQLAi':_0x223780(0x78),'WgaVm':function(_0x137fa2,_0x221acc){return _0x137fa2(_0x221acc);},'gmxSw':_0x223780(0x83),'yxeWG':'./state/hookState','HiCcV':'CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','aSBKp':function(_0x5a8e48,_0x2837fa){return _0x5a8e48===_0x2837fa;},'jgCVT':_0x223780(0xa4)};if(_0xb19f02[_0x223780(0xc3)](typeof _0x3e1a9e,_0xb19f02[_0x223780(0xb3)])){logger[_0x223780(0x73)](_0xb19f02[_0x223780(0xba)]);return;}if(_0xb19f02[_0x223780(0x7b)](typeof _0x3df40f,_0xb19f02['eeZiU'])){logger['debug'](_0xb19f02[_0x223780(0xc8)]);return;}if(_0xb19f02[_0x223780(0xbb)](_0x3e1a9e[_0x223780(0xbc)](),'')){logger[_0x223780(0x73)](_0xb19f02['ITZjr']);return;}if(_0xb19f02[_0x223780(0xbb)](_0x3df40f[_0x223780(0xbc)](),'')){logger['debug'](_0xb19f02[_0x223780(0x8b)]);return;}const _0x5efa11=helper[_0x223780(0x6e)](_0x3df40f);if(_0x4c651a){const _0x6fd818=_0xb19f02[_0x223780(0x8e)](require,_0xb19f02['qAVvL']),_0x5afa1c=_0x6fd818['getInstance'](),_0x330b4d=_0x5afa1c&&_0x5afa1c[_0x223780(0x93)][TestHubModule['MODULE_NAME']];if(_0x330b4d){const _0x491b19=_0x330b4d?.['testhubConfig']?.[_0x223780(0x81)]()?.[_0x223780(0xc2)];TestInfo[_0x223780(0xad)](_0x491b19);const _0xfc6636=TestInfo[_0x223780(0xd4)](_0x491b19),_0x51c296=_0xfc6636[TestFrameworkConstants[_0x223780(0xe1)]]||{};CustomTagManager[_0x223780(0xde)](_0x51c296,_0x3e1a9e,_0x5efa11),_0xfc6636[TestFrameworkConstants[_0x223780(0xe1)]]=_0x51c296,TestInfo['setTestDetails'](_0x491b19,_0xfc6636);!this[_0x223780(0x9b)][_0x491b19]&&(this['buildLevelTags'][_0x491b19]={});this[_0x223780(0x9b)][_0x491b19][_0x3e1a9e]=CustomTagManager[_0x223780(0xe8)](this[_0x223780(0x9b)][_0x491b19][_0x3e1a9e],_0x5efa11);try{const _0x421bd8=_0xb19f02['LVWQT'](getBuildTagsRunId);if(_0x421bd8){const _0xf2bc77={};for(const [_0x5eedf5,_0x191aa5]of Object[_0x223780(0xeb)](this['buildLevelTags'][_0x491b19]||{})){_0xf2bc77[_0x5eedf5]={'field_type':_0xb19f02[_0x223780(0xe2)],'values':Array[_0x223780(0x97)](_0x191aa5)?[..._0x191aa5]:[]};}_0xb19f02[_0x223780(0x71)](Object['keys'](_0xf2bc77)[_0x223780(0xa1)],0x0)&&await fs[_0x223780(0xae)][_0x223780(0xd0)](_0xb19f02[_0x223780(0x8e)](getBuildTagsFilePath,_0x421bd8),JSON[_0x223780(0xb4)](_0xf2bc77));}else logger[_0x223780(0x73)](_0xb19f02[_0x223780(0xb9)]);}catch(_0x37ab6d){logger[_0x223780(0x73)](_0x223780(0x80)+(_0x37ab6d&&_0x37ab6d[_0x223780(0xc5)]?_0x37ab6d[_0x223780(0xc5)]:_0x37ab6d));}}}else{let _0x45681d;const _0x4aa0c4=global[_0x223780(0xee)];let _0x342f08=![];if(_0x4aa0c4&&_0x4aa0c4['includes'](_0xb19f02[_0x223780(0x7f)]))_0x342f08=!![],_0x45681d=_0x4aa0c4;else try{const _0x286476=_0xb19f02[_0x223780(0x8e)](require,_0xb19f02[_0x223780(0x8c)]),_0x484e32=_0xb19f02[_0x223780(0xcc)](require,_0xb19f02[_0x223780(0xb1)]);if(_0x484e32[_0x223780(0xe0)]()[_0x223780(0x7c)]()){const _0x5967c2=_0x286476[_0x223780(0xe4)]();if(_0xb19f02['VWksY'](_0x5967c2?.[_0x223780(0xdf)]?.[_0x223780(0x9c)](),_0xb19f02[_0x223780(0xda)])){const _0x302476=AutomationFramework[_0x223780(0xf0)]();_0x45681d=AutomationFramework[_0x223780(0x85)](_0x302476,PlaywrightDriverModule['KEY_TEST_ID'],''),_0x45681d&&_0x45681d[_0x223780(0x8a)](_0xb19f02['vKeht'])&&(_0x342f08=!![]);}}}catch(_0xa9ae1){logger['debug']('CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20'+_0xa9ae1);}if(_0x342f08){if(!_0x45681d)throw new Error(_0xb19f02[_0x223780(0xa6)]);const _0x46ff17=_0xb19f02[_0x223780(0x9e)](require,_0xb19f02['qAVvL']),_0x2d0492=_0x46ff17['getInstance']()['getTestFramework']();if(!_0x2d0492)throw new Error(_0xb19f02['pQLAi']);const _0x47e237=_0xb19f02[_0x223780(0xbd)](require,_0xb19f02[_0x223780(0xb2)]),_0x18523e=_0xb19f02[_0x223780(0x9e)](require,_0xb19f02['yxeWG']),_0x5ba88f=_0x2d0492[_0x223780(0xc7)](_0x47e237['TEST'],_0x18523e[_0x223780(0x9f)]);if(!_0x5ba88f)throw new Error(_0xb19f02[_0x223780(0xa8)]);const _0x2fca3e=_0x5ba88f['getAllData']()[_0x223780(0xc9)](_0x45681d)||{},_0x252731=_0x2fca3e[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};logger['debug'](_0x223780(0xa7)+_0x45681d+_0x223780(0xa3)+_0x3e1a9e+_0x223780(0x6f)+JSON[_0x223780(0xb4)](_0x5efa11)+',\x20existingTags='+JSON[_0x223780(0xb4)](_0x252731)),CustomTagManager[_0x223780(0xde)](_0x252731,_0x3e1a9e,_0x5efa11),logger['debug'](_0x223780(0xc1)+_0x3e1a9e+_0x223780(0xe7)+JSON['stringify'](_0x252731[_0x3e1a9e][_0x223780(0xb6)]));const _0x31a305={[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x252731},_0x432e14={};_0x432e14[_0x45681d]=_0x31a305,_0x5ba88f[_0x223780(0xb5)](_0x432e14),logger[_0x223780(0x73)](_0x223780(0xec)+_0x45681d+_0x223780(0xbe)+JSON[_0x223780(0xb4)](_0x252731)),!this[_0x223780(0x7e)][_0x45681d]&&(this[_0x223780(0x7e)][_0x45681d]={}),this[_0x223780(0x7e)][_0x45681d][_0x3e1a9e]=CustomTagManager['mergeValues'](this[_0x223780(0x7e)][_0x45681d][_0x3e1a9e],_0x5efa11);}else{const _0xaece62=global[_0x223780(0xed)]?.['currentTest']?.[_0x223780(0x91)];if(!_0xaece62){const _0x1c2f63=AutomationFramework[_0x223780(0xf0)]();_0x45681d=AutomationFramework[_0x223780(0x85)](_0x1c2f63,PlaywrightDriverModule[_0x223780(0x9d)],'');if(!_0x45681d)try{const _0x2e9100=_0xb19f02[_0x223780(0x8e)](require,_0xb19f02[_0x223780(0xb1)]),_0x2d88db=_0x2e9100['getInstance'](),_0x155099=_0x2d88db&&_0x2d88db[_0x223780(0x79)]();_0x45681d=_0x155099&&_0xb19f02[_0x223780(0xd3)](typeof _0x155099[_0x223780(0xac)],_0xb19f02[_0x223780(0xc0)])&&_0x155099['getCurrentTestUUID']()||_0x45681d;}catch(_0x4a7ec1){logger[_0x223780(0x73)]('CustomTagManager.setCustomTags:\x20node-generic\x20testId\x20fallback\x20failed:\x20'+(_0x4a7ec1&&_0x4a7ec1[_0x223780(0xc5)]));}}else _0x45681d=TestInfo[_0x223780(0xa9)](_0xaece62,_0xaece62['retry']);const _0x2cf706=TestInfo['getTestDetails'](_0x45681d),_0x2a7c79=_0x2cf706[TestFrameworkConstants[_0x223780(0xe1)]]||{};CustomTagManager[_0x223780(0xde)](_0x2a7c79,_0x3e1a9e,_0x5efa11),_0x2cf706[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x2a7c79,TestInfo[_0x223780(0x95)](_0x45681d,_0x2cf706),!this[_0x223780(0x7e)][_0x45681d]&&(this['testLevelTags'][_0x45681d]={}),this[_0x223780(0x7e)][_0x45681d][_0x3e1a9e]=CustomTagManager[_0x223780(0xe8)](this[_0x223780(0x7e)][_0x45681d][_0x3e1a9e],_0x5efa11);}}}static[a90_0x291b66(0x8f)](){const _0x5baf7e={...this['buildLevelTags']};return _0x5baf7e;}static['getTestLevelTags'](){const _0x445108={...this['testLevelTags']};return _0x445108;}static['clearTags'](){const _0x4efe8c=a90_0x291b66;this[_0x4efe8c(0x9b)]={},this['testLevelTags']={};}static[a90_0x291b66(0xcf)](_0x307754,_0x3db91e){const _0x58ff8c=a90_0x291b66,_0x325b65={};_0x325b65['pYXTF']=function(_0x7746e4,_0x1969a6){return _0x7746e4||_0x1969a6;};const _0x3aa75f=_0x325b65;if(!_0x307754)return;!this['buildLevelTags'][_0x307754]&&(this['buildLevelTags'][_0x307754]={});for(const [_0x24188e,_0x2ed835]of Object[_0x58ff8c(0xeb)](_0x3aa75f['pYXTF'](_0x3db91e,{}))){if(!_0x2ed835||!Array[_0x58ff8c(0x97)](_0x2ed835[_0x58ff8c(0xb6)]))continue;this[_0x58ff8c(0x9b)][_0x307754][_0x24188e]=CustomTagManager[_0x58ff8c(0xe8)](this[_0x58ff8c(0x9b)][_0x307754][_0x24188e],_0x2ed835[_0x58ff8c(0xb6)]);}}static[a90_0x291b66(0xa0)](_0x36b92b,_0x457d6b){const _0x15f3a2=a90_0x291b66,_0x3c88a5={};_0x3c88a5['QCAvg']=_0x15f3a2(0xdd),_0x3c88a5['DExpP']=function(_0x3a2a86,_0x14549e){return _0x3a2a86*_0x14549e;},_0x3c88a5[_0x15f3a2(0xe3)]=function(_0x3145eb,_0x4fb6bf){return _0x3145eb*_0x4fb6bf;},_0x3c88a5['qGUuM']=function(_0x5e63b1,_0x4c8b63){return _0x5e63b1*_0x4c8b63;},_0x3c88a5[_0x15f3a2(0x92)]=function(_0x31f014,_0x2fa8bb){return _0x31f014>_0x2fa8bb;},_0x3c88a5[_0x15f3a2(0x98)]=function(_0x45ecda,_0x25593f){return _0x45ecda-_0x25593f;},_0x3c88a5[_0x15f3a2(0x72)]=_0x15f3a2(0x88);const _0x27f77b=_0x3c88a5;if(!_0x36b92b)return logger['debug'](_0x27f77b[_0x15f3a2(0xe5)]),0x0;let _0x35b712;try{_0x35b712=os['tmpdir']();}catch(_0x3a1c97){return logger[_0x15f3a2(0x73)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20'+_0x3a1c97),0x0;}let _0x29a73b;try{_0x29a73b=fs[_0x15f3a2(0xbf)](_0x35b712);}catch(_0x2b6319){return logger[_0x15f3a2(0x73)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20'+_0x2b6319),0x0;}const _0xac58fc=''+BUILD_TAG_FILE_PREFIX+_0x36b92b+'_',_0x2afb15=_0x29a73b[_0x15f3a2(0x94)](_0xb7c78=>_0xb7c78[_0x15f3a2(0x76)](_0xac58fc)&&_0xb7c78['endsWith'](_0x15f3a2(0x7a))),_0x2885d7=_0x27f77b[_0x15f3a2(0x9a)](_0x27f77b['ngfuv'](_0x27f77b[_0x15f3a2(0xd9)](0x2,0x3c),0x3c),0x3e8);let _0x20122f=0x0;for(const _0x2c0dee of _0x2afb15){const _0x3a2ec3=path[_0x15f3a2(0x77)](_0x35b712,_0x2c0dee);try{const _0xe61557=fs['statSync'](_0x3a2ec3);if(_0x27f77b['RRGlj'](_0x27f77b[_0x15f3a2(0x98)](Date[_0x15f3a2(0x8d)](),_0xe61557['mtimeMs']),_0x2885d7)){logger[_0x15f3a2(0x73)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>'+_0x2885d7+'ms)\x20'+_0x2c0dee);try{fs[_0x15f3a2(0x7d)](_0x3a2ec3);}catch(_0xbffdac){logger[_0x15f3a2(0x73)](_0x15f3a2(0xc6)+_0x2c0dee+':\x20'+(_0xbffdac&&_0xbffdac[_0x15f3a2(0xc5)]?_0xbffdac[_0x15f3a2(0xc5)]:_0xbffdac));}continue;}const _0x56a442=fs[_0x15f3a2(0x84)](_0x3a2ec3,_0x27f77b['iBjVq']),_0x253d49=JSON[_0x15f3a2(0xd8)](_0x56a442);this[_0x15f3a2(0xcf)](_0x457d6b,_0x253d49),_0x20122f+=0x1;}catch(_0x2a74ef){logger[_0x15f3a2(0x73)](_0x15f3a2(0xa2)+_0x2c0dee+':\x20'+(_0x2a74ef&&_0x2a74ef[_0x15f3a2(0xc5)]?_0x2a74ef['message']:_0x2a74ef));}try{fs[_0x15f3a2(0x7d)](_0x3a2ec3);}catch(_0x300733){logger['debug']('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20'+_0x2c0dee+':\x20'+(_0x300733&&_0x300733[_0x15f3a2(0xc5)]?_0x300733[_0x15f3a2(0xc5)]:_0x300733));}}return _0x20122f;}}const a90_0x3f017e={};a90_0x3f017e[a90_0x291b66(0xcd)]=getBuildTagsRunId,a90_0x3f017e[a90_0x291b66(0x75)]=getBuildTagsFilePath,a90_0x3f017e[a90_0x291b66(0x86)]=BUILD_TAG_FILE_PREFIX,CustomTagManager['_testInternals']=a90_0x3f017e,module[a90_0x291b66(0x70)]=CustomTagManager;
@@ -1 +1 @@
1
- const a91_0x2918f2=a91_0x47c9;(function(_0x5b548e,_0x58f8af){const _0x47f160=a91_0x47c9,_0x1b6817=_0x5b548e();while(!![]){try{const _0x34be64=-parseInt(_0x47f160(0x200))/0x1+parseInt(_0x47f160(0x1f5))/0x2*(-parseInt(_0x47f160(0x1f2))/0x3)+parseInt(_0x47f160(0x1f1))/0x4*(parseInt(_0x47f160(0x1f7))/0x5)+parseInt(_0x47f160(0x1f3))/0x6*(parseInt(_0x47f160(0x1ff))/0x7)+parseInt(_0x47f160(0x1fb))/0x8*(-parseInt(_0x47f160(0x1f9))/0x9)+parseInt(_0x47f160(0x1f8))/0xa+-parseInt(_0x47f160(0x1f6))/0xb*(parseInt(_0x47f160(0x1fc))/0xc);if(_0x34be64===_0x58f8af)break;else _0x1b6817['push'](_0x1b6817['shift']());}catch(_0x1d6f47){_0x1b6817['push'](_0x1b6817['shift']());}}}(a91_0x1ff4,0x68ca4));const {createClassLogger}=require(a91_0x2918f2(0x1ef));class EventDispatcher{static #instance=null;constructor(){const _0x41be94=a91_0x2918f2;this[_0x41be94(0x1fa)]={};}static[a91_0x2918f2(0x1f4)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a91_0x2918f2(0x1fe)](_0x3d3d14,_0xfa28d3){const _0x463a0a=a91_0x2918f2;!this[_0x463a0a(0x1fa)][_0x3d3d14]&&(this[_0x463a0a(0x1fa)][_0x3d3d14]=[]),this['observers'][_0x3d3d14][_0x463a0a(0x1ee)](_0xfa28d3);}async[a91_0x2918f2(0x201)](_0x567d43,_0x2d65dc){const _0x5d3b08=a91_0x2918f2,_0xe3cf18={'fbaNE':function(_0x3b375c,_0x17f1be){return _0x3b375c(_0x17f1be);}};if(this['observers'][_0x567d43]){for(const _0x440e71 of this[_0x5d3b08(0x1fa)][_0x567d43]){await _0xe3cf18[_0x5d3b08(0x1fd)](_0x440e71,_0x2d65dc);}return;}}}function a91_0x47c9(_0x247cf6,_0x356470){const _0x1ff4f7=a91_0x1ff4();return a91_0x47c9=function(_0x47c948,_0x20e6f5){_0x47c948=_0x47c948-0x1ee;let _0x287752=_0x1ff4f7[_0x47c948];return _0x287752;},a91_0x47c9(_0x247cf6,_0x356470);}const eventDispatcher=EventDispatcher[a91_0x2918f2(0x1f4)]();Object[a91_0x2918f2(0x1f0)](eventDispatcher),module['exports']=eventDispatcher;function a91_0x1ff4(){const _0x359939=['66slxKvm','getInstance','1017062qWckCT','728035pdwyen','3964435HCTPMC','2566560zhbfls','2514582SoAUcI','observers','8VGlKUX','24yYgvMS','fbaNE','registerObserver','498799kvMYDQ','483851UlcXXz','notifyObserver','push','../../helpers/classLogger.js','freeze','4RfhRVg','3AtFLOv'];a91_0x1ff4=function(){return _0x359939;};return a91_0x1ff4();}
1
+ function a91_0xb538(_0x4e81bd,_0x5c938a){const _0x4d4ec3=a91_0x4d4e();return a91_0xb538=function(_0xb538d0,_0x1bf677){_0xb538d0=_0xb538d0-0x174;let _0x20a6fd=_0x4d4ec3[_0xb538d0];return _0x20a6fd;},a91_0xb538(_0x4e81bd,_0x5c938a);}const a91_0x12e1e7=a91_0xb538;(function(_0x49e2c8,_0x2be0d5){const _0x31c100=a91_0xb538,_0x5c8769=_0x49e2c8();while(!![]){try{const _0xba8d71=parseInt(_0x31c100(0x17a))/0x1*(parseInt(_0x31c100(0x17f))/0x2)+-parseInt(_0x31c100(0x17b))/0x3+parseInt(_0x31c100(0x17e))/0x4+parseInt(_0x31c100(0x184))/0x5*(parseInt(_0x31c100(0x177))/0x6)+-parseInt(_0x31c100(0x183))/0x7*(parseInt(_0x31c100(0x182))/0x8)+-parseInt(_0x31c100(0x185))/0x9*(parseInt(_0x31c100(0x17c))/0xa)+parseInt(_0x31c100(0x175))/0xb;if(_0xba8d71===_0x2be0d5)break;else _0x5c8769['push'](_0x5c8769['shift']());}catch(_0x20037f){_0x5c8769['push'](_0x5c8769['shift']());}}}(a91_0x4d4e,0x8b135));const {createClassLogger}=require(a91_0x12e1e7(0x179));class EventDispatcher{static #instance=null;constructor(){this['observers']={};}static['getInstance'](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a91_0x12e1e7(0x180)](_0x131a5a,_0x8a7ea1){const _0x36e437=a91_0x12e1e7;!this[_0x36e437(0x174)][_0x131a5a]&&(this[_0x36e437(0x174)][_0x131a5a]=[]),this[_0x36e437(0x174)][_0x131a5a]['push'](_0x8a7ea1);}async[a91_0x12e1e7(0x17d)](_0x4523c9,_0x13ebef){const _0x2c99eb=a91_0x12e1e7,_0x2e874e={'yxkwv':function(_0x37df99,_0x1111a6){return _0x37df99(_0x1111a6);}};if(this[_0x2c99eb(0x174)][_0x4523c9]){for(const _0x472c46 of this[_0x2c99eb(0x174)][_0x4523c9]){await _0x2e874e[_0x2c99eb(0x176)](_0x472c46,_0x13ebef);}return;}}}function a91_0x4d4e(){const _0x25953e=['10rIzjBi','registerObserver','exports','2268360yXkJbZ','7vbBfao','635EhuTUB','1389015ZSmaBv','observers','14225123kOHOtK','yxkwv','30042GYhZqG','freeze','../../helpers/classLogger.js','16874RCubpa','563490Qkpqos','70ckVndL','notifyObserver','431684GZjcFA'];a91_0x4d4e=function(){return _0x25953e;};return a91_0x4d4e();}const eventDispatcher=EventDispatcher['getInstance']();Object[a91_0x12e1e7(0x178)](eventDispatcher),module[a91_0x12e1e7(0x181)]=eventDispatcher;
@@ -1 +1 @@
1
- function a92_0x5956(){const _0x1fec30=['trackEvent','runHooks','10175vDdYzn','getHookRegistryKey','registerObserver','instances','trackEvent:\x20automationFrameworkState=','automationFrameworkName','getAutomationFrameworkName','KEY_AUTOMATION_SESSIONS','automation_sessions','../eventDispatcher.js','TQKet','\x20hookState=','4660397oQeyQJ','6910wpsYsh','706119tEzgTQ','getTrackedInstance','set','1268684zTQbYf','AutomationFramework','6760360CyHIMg','non_browserstack_automation_sessions','getAllData','get','notifyObserver','6sMwQIv','createContext','6147TRvLQL','setState','1321485lVTYLR','getId','automationFrameworkVersion','../../../helpers/classLogger.js','2aiaFXF','116NFhiBf'];a92_0x5956=function(){return _0x1fec30;};return a92_0x5956();}function a92_0x1535(_0x2a3ae4,_0x100b0e){const _0x5956d9=a92_0x5956();return a92_0x1535=function(_0x153507,_0x18ae3c){_0x153507=_0x153507-0x163;let _0x3d99cf=_0x5956d9[_0x153507];return _0x3d99cf;},a92_0x1535(_0x2a3ae4,_0x100b0e);}const a92_0x41971b=a92_0x1535;(function(_0x3cde26,_0x5268e8){const _0x3476b4=a92_0x1535,_0x511436=_0x3cde26();while(!![]){try{const _0x290bc2=-parseInt(_0x3476b4(0x164))/0x1+-parseInt(_0x3476b4(0x173))/0x2*(parseInt(_0x3476b4(0x185))/0x3)+-parseInt(_0x3476b4(0x174))/0x4*(-parseInt(_0x3476b4(0x177))/0x5)+-parseInt(_0x3476b4(0x16b))/0x6*(-parseInt(_0x3476b4(0x183))/0x7)+parseInt(_0x3476b4(0x166))/0x8+parseInt(_0x3476b4(0x16d))/0x9*(parseInt(_0x3476b4(0x184))/0xa)+parseInt(_0x3476b4(0x16f))/0xb;if(_0x290bc2===_0x5268e8)break;else _0x511436['push'](_0x511436['shift']());}catch(_0x3963e7){_0x511436['push'](_0x511436['shift']());}}}(a92_0x5956,0xa09c6));const {createClassLogger}=require(a92_0x41971b(0x172)),util=require('util'),eventDispatcher=require(a92_0x41971b(0x180)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require('../instances/trackedInstance.js'),logger=createClassLogger(a92_0x41971b(0x165));class AutomationFramework{static [a92_0x41971b(0x17a)]=new Map();static [a92_0x41971b(0x17e)]=a92_0x41971b(0x17f);static ['KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS']=a92_0x41971b(0x167);constructor(_0x19a528,_0x28226b){const _0x36bb0a=a92_0x41971b;this[_0x36bb0a(0x17c)]=_0x19a528,this[_0x36bb0a(0x171)]=_0x28226b;}[a92_0x41971b(0x17d)](){const _0x268a31=a92_0x41971b;return this[_0x268a31(0x17c)];}['getAutomationFrameworkVersion'](){const _0xb52360=a92_0x41971b;return this[_0xb52360(0x171)];}async[a92_0x41971b(0x175)](_0x10455e,_0xeae846,_0x572b01={}){const _0x376ca1=a92_0x41971b;logger['debug'](_0x376ca1(0x17b)+_0x10455e+_0x376ca1(0x182)+_0xeae846);}async[a92_0x41971b(0x176)](_0x1ea510,_0x3f516f,_0x4e10b8,_0x28b8dd={}){const _0x109379=a92_0x41971b,_0x3f3bc0=CLIUtils['getHookRegistryKey'](_0x3f516f,_0x4e10b8);_0x1ea510&&_0x1ea510[_0x109379(0x16e)](_0x3f516f),await eventDispatcher[_0x109379(0x16a)](_0x3f3bc0,_0x28b8dd);}static[a92_0x41971b(0x179)](_0x565f6b,_0x5d7e95,_0x1ae2f7){const _0x9fdcc1=a92_0x41971b;eventDispatcher['registerObserver'](CLIUtils[_0x9fdcc1(0x178)](_0x565f6b,_0x5d7e95),_0x1ae2f7);}static['setTrackedInstance'](_0xbdc985,_0x49b34a){const _0x3903ba=a92_0x41971b;AutomationFramework[_0x3903ba(0x17a)][_0x3903ba(0x163)](_0xbdc985[_0x3903ba(0x170)](),_0x49b34a);}static[a92_0x41971b(0x186)](){const _0x1e5804=a92_0x41971b,_0x447f08=TrackedInstance[_0x1e5804(0x16c)](CLIUtils['getCurrentInstanceName']());return AutomationFramework[_0x1e5804(0x17a)][_0x1e5804(0x169)](_0x447f08['getId']());}static[a92_0x41971b(0x16e)](_0x509157,_0x10f94e,_0x218fe4){const _0x284b0b=a92_0x41971b;_0x509157[_0x284b0b(0x168)]()['set'](_0x10f94e,_0x218fe4);}static['getState'](_0x263450,_0xf84d20,_0x3b01c9=undefined){const _0x40fb93=a92_0x41971b,_0x2b0812={};_0x2b0812[_0x40fb93(0x181)]=function(_0x4f633a,_0x3e6e8f){return _0x4f633a!==_0x3e6e8f;},_0x2b0812['qyqNX']='function',_0x2b0812['MBIiV']=function(_0x3e0d12,_0x2886f8){return _0x3e0d12===_0x2886f8;};const _0x1c167e=_0x2b0812;if(!_0x263450||_0x1c167e[_0x40fb93(0x181)](typeof _0x263450[_0x40fb93(0x168)],_0x1c167e['qyqNX']))return _0x3b01c9;const _0x12fc99=_0x263450[_0x40fb93(0x168)]()[_0x40fb93(0x169)](_0xf84d20);return _0x1c167e['MBIiV'](_0x12fc99,undefined)?_0x3b01c9:_0x12fc99;}}module['exports']=AutomationFramework;
1
+ const a92_0x2d9d76=a92_0x44a4;function a92_0x44a4(_0x4900b3,_0x5421d3){const _0x320ba9=a92_0x320b();return a92_0x44a4=function(_0x44a4e8,_0x345022){_0x44a4e8=_0x44a4e8-0x102;let _0x198fcb=_0x320ba9[_0x44a4e8];return _0x198fcb;},a92_0x44a4(_0x4900b3,_0x5421d3);}(function(_0x2c657d,_0x59b795){const _0x5c1d5f=a92_0x44a4,_0xbba67b=_0x2c657d();while(!![]){try{const _0x5a1434=parseInt(_0x5c1d5f(0x117))/0x1+parseInt(_0x5c1d5f(0x124))/0x2*(parseInt(_0x5c1d5f(0x11e))/0x3)+parseInt(_0x5c1d5f(0x126))/0x4+-parseInt(_0x5c1d5f(0x102))/0x5*(parseInt(_0x5c1d5f(0x127))/0x6)+parseInt(_0x5c1d5f(0x112))/0x7+-parseInt(_0x5c1d5f(0x111))/0x8+-parseInt(_0x5c1d5f(0x128))/0x9*(parseInt(_0x5c1d5f(0x118))/0xa);if(_0x5a1434===_0x59b795)break;else _0xbba67b['push'](_0xbba67b['shift']());}catch(_0x598418){_0xbba67b['push'](_0xbba67b['shift']());}}}(a92_0x320b,0x30d8d));const {createClassLogger}=require(a92_0x2d9d76(0x10c)),util=require(a92_0x2d9d76(0x11a)),eventDispatcher=require(a92_0x2d9d76(0x119)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require(a92_0x2d9d76(0x10d)),logger=createClassLogger(a92_0x2d9d76(0x110));class AutomationFramework{static [a92_0x2d9d76(0x10f)]=new Map();static [a92_0x2d9d76(0x11c)]='automation_sessions';static ['KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS']='non_browserstack_automation_sessions';constructor(_0x11972a,_0x33dda4){const _0x3deb5b=a92_0x2d9d76;this['automationFrameworkName']=_0x11972a,this[_0x3deb5b(0x108)]=_0x33dda4;}[a92_0x2d9d76(0x123)](){return this['automationFrameworkName'];}[a92_0x2d9d76(0x11b)](){const _0x42bec5=a92_0x2d9d76;return this[_0x42bec5(0x108)];}async['trackEvent'](_0x23571b,_0x227cf7,_0x5ee40e={}){const _0x2d6367=a92_0x2d9d76;logger[_0x2d6367(0x11d)]('trackEvent:\x20automationFrameworkState='+_0x23571b+_0x2d6367(0x121)+_0x227cf7);}async['runHooks'](_0x33fb40,_0x1e26e5,_0x92c988,_0x21724a={}){const _0x384983=a92_0x2d9d76,_0x12f43e=CLIUtils[_0x384983(0x10e)](_0x1e26e5,_0x92c988);_0x33fb40&&_0x33fb40[_0x384983(0x114)](_0x1e26e5),await eventDispatcher[_0x384983(0x10b)](_0x12f43e,_0x21724a);}static[a92_0x2d9d76(0x103)](_0x5bff48,_0x44eea7,_0x44dfed){const _0x9d1fb6=a92_0x2d9d76;eventDispatcher[_0x9d1fb6(0x103)](CLIUtils['getHookRegistryKey'](_0x5bff48,_0x44eea7),_0x44dfed);}static[a92_0x2d9d76(0x113)](_0x14b135,_0x5a97ae){const _0x2279b=a92_0x2d9d76;AutomationFramework[_0x2279b(0x10f)][_0x2279b(0x120)](_0x14b135['getId'](),_0x5a97ae);}static[a92_0x2d9d76(0x106)](){const _0x31722a=a92_0x2d9d76,_0x4c6e27=TrackedInstance['createContext'](CLIUtils[_0x31722a(0x107)]());return AutomationFramework[_0x31722a(0x10f)][_0x31722a(0x115)](_0x4c6e27[_0x31722a(0x109)]());}static[a92_0x2d9d76(0x114)](_0x5dc75d,_0x142df6,_0x136763){const _0x42eb7b=a92_0x2d9d76;_0x5dc75d[_0x42eb7b(0x10a)]()[_0x42eb7b(0x120)](_0x142df6,_0x136763);}static[a92_0x2d9d76(0x122)](_0x36e895,_0x1b3c56,_0x392147=undefined){const _0x494f7d=a92_0x2d9d76,_0x53457a={};_0x53457a[_0x494f7d(0x105)]=function(_0x4905f3,_0x4276fb){return _0x4905f3!==_0x4276fb;},_0x53457a[_0x494f7d(0x125)]=_0x494f7d(0x116),_0x53457a[_0x494f7d(0x11f)]=function(_0x3013c7,_0x27f671){return _0x3013c7===_0x27f671;};const _0x127821=_0x53457a;if(!_0x36e895||_0x127821['ILSyZ'](typeof _0x36e895[_0x494f7d(0x10a)],_0x127821[_0x494f7d(0x125)]))return _0x392147;const _0x413ce6=_0x36e895[_0x494f7d(0x10a)]()[_0x494f7d(0x115)](_0x1b3c56);return _0x127821[_0x494f7d(0x11f)](_0x413ce6,undefined)?_0x392147:_0x413ce6;}}function a92_0x320b(){const _0x4f49b7=['set','\x20hookState=','getState','getAutomationFrameworkName','133442dbafUc','tjvUW','617828ipFalW','98844MJDQKB','1485LPbdSb','35TljpMx','registerObserver','exports','ILSyZ','getTrackedInstance','getCurrentInstanceName','automationFrameworkVersion','getId','getAllData','notifyObserver','../../../helpers/classLogger.js','../instances/trackedInstance.js','getHookRegistryKey','instances','AutomationFramework','2597808CBDHYw','2604644ksDRPZ','setTrackedInstance','setState','get','function','52052NcGNYs','16490WSkOmv','../eventDispatcher.js','util','getAutomationFrameworkVersion','KEY_AUTOMATION_SESSIONS','debug','15TpOVpz','ctcKk'];a92_0x320b=function(){return _0x4f49b7;};return a92_0x320b();}module[a92_0x2d9d76(0x104)]=AutomationFramework;
@@ -1 +1 @@
1
- function a93_0x40c9(_0x59d4f1,_0x2d2b89){const _0x6b8701=a93_0x6b87();return a93_0x40c9=function(_0x40c995,_0x5381f5){_0x40c995=_0x40c995-0x1d2;let _0x26cad5=_0x6b8701[_0x40c995];return _0x26cad5;},a93_0x40c9(_0x59d4f1,_0x2d2b89);}const a93_0x14aa40=a93_0x40c9;(function(_0x32b092,_0x2e65d9){const _0x5388ab=a93_0x40c9,_0x4a8e4a=_0x32b092();while(!![]){try{const _0x13dac0=-parseInt(_0x5388ab(0x1d9))/0x1+-parseInt(_0x5388ab(0x1d2))/0x2+-parseInt(_0x5388ab(0x1e4))/0x3+parseInt(_0x5388ab(0x1dc))/0x4+-parseInt(_0x5388ab(0x1d7))/0x5*(-parseInt(_0x5388ab(0x1d5))/0x6)+-parseInt(_0x5388ab(0x1ed))/0x7*(-parseInt(_0x5388ab(0x1e2))/0x8)+-parseInt(_0x5388ab(0x1d8))/0x9*(-parseInt(_0x5388ab(0x1df))/0xa);if(_0x13dac0===_0x2e65d9)break;else _0x4a8e4a['push'](_0x4a8e4a['shift']());}catch(_0x44fabb){_0x4a8e4a['push'](_0x4a8e4a['shift']());}}}(a93_0x6b87,0x81a23));const a93_0x309467={};a93_0x309467[a93_0x14aa40(0x1f1)]=a93_0x14aa40(0x1d4),a93_0x309467[a93_0x14aa40(0x1f3)]=a93_0x14aa40(0x1e0),a93_0x309467[a93_0x14aa40(0x1eb)]=a93_0x14aa40(0x1f5),a93_0x309467['KEY_INPUT_CAPABILITIES']=a93_0x14aa40(0x1d6),a93_0x309467[a93_0x14aa40(0x1f4)]=a93_0x14aa40(0x1f0),a93_0x309467[a93_0x14aa40(0x1da)]=a93_0x14aa40(0x1ef),a93_0x309467[a93_0x14aa40(0x1dd)]=a93_0x14aa40(0x1d3),a93_0x309467[a93_0x14aa40(0x1db)]='ended_at',a93_0x309467['KEY_PLATFORM_INDEX']=a93_0x14aa40(0x1e6),a93_0x309467[a93_0x14aa40(0x1e3)]='newsession',a93_0x309467[a93_0x14aa40(0x1ea)]='get',a93_0x309467[a93_0x14aa40(0x1e8)]=a93_0x14aa40(0x1e9),a93_0x309467[a93_0x14aa40(0x1de)]=a93_0x14aa40(0x1e7),a93_0x309467[a93_0x14aa40(0x1e5)]=a93_0x14aa40(0x1ec),a93_0x309467[a93_0x14aa40(0x1f2)]=a93_0x14aa40(0x1ee);function a93_0x6b87(){const _0x36ea22=['KEY_HUB_URL','KEY_CAPABILITIES','framework_session_id','1529770BTFtHB','started_at','BROWSERSTACK_PLATFORM_INDEX','422874FwaXbE','input_capabilities','45cMcdFl','387Oxibwb','695679FfDcYU','KEY_IS_BROWSERSTACK_HUB','KEY_ENDED_AT','2146156kTgGFP','KEY_STARTED_AT','COMMAND_W3C_EXECUTE_SCRIPT','67110PNwShK','hub_url','exports','129648XyRNfT','COMMAND_NEW_SESSION','1029012IBUnvD','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','platform_index','w3cexecutescript','COMMAND_SCREENSHOT','screenshot','COMMAND_GET','KEY_FRAMEWORK_SESSION_ID','w3cexecutescriptasync','378mbKZxH','quit','is_browserstack_hub','capabilities','ENV_BROWSERSTACK_PLATFORM_INDEX','COMMAND_QUIT'];a93_0x6b87=function(){return _0x36ea22;};return a93_0x6b87();}const AutomationFrameworkConstants=a93_0x309467;module[a93_0x14aa40(0x1e1)]=AutomationFrameworkConstants;
1
+ const a93_0x9b201b=a93_0x53a2;function a93_0x279a(){const _0x4b3385=['KEY_CAPABILITIES','265232RsCKyH','245LKXbWv','w3cexecutescriptasync','screenshot','COMMAND_GET','newsession','input_capabilities','2818544yntawF','COMMAND_SCREENSHOT','71268kWKxSe','1689758lNPtMj','KEY_FRAMEWORK_SESSION_ID','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','platform_index','KEY_IS_BROWSERSTACK_HUB','388792BpOTZh','COMMAND_QUIT','BROWSERSTACK_PLATFORM_INDEX','quit','exports','started_at','KEY_STARTED_AT','COMMAND_W3C_EXECUTE_SCRIPT','ENV_BROWSERSTACK_PLATFORM_INDEX','40644sNoIvj','KEY_INPUT_CAPABILITIES','ended_at','hub_url','is_browserstack_hub','774506dNfhLw','get','KEY_HUB_URL'];a93_0x279a=function(){return _0x4b3385;};return a93_0x279a();}(function(_0x22bb09,_0xe61de6){const _0x19c049=a93_0x53a2,_0x59df09=_0x22bb09();while(!![]){try{const _0x556138=parseInt(_0x19c049(0xd4))/0x1+-parseInt(_0x19c049(0xd0))/0x2+parseInt(_0x19c049(0xbc))/0x3+parseInt(_0x19c049(0xc2))/0x4+-parseInt(_0x19c049(0xd5))/0x5*(parseInt(_0x19c049(0xcb))/0x6)+parseInt(_0x19c049(0xbd))/0x7+parseInt(_0x19c049(0xba))/0x8;if(_0x556138===_0xe61de6)break;else _0x59df09['push'](_0x59df09['shift']());}catch(_0xbe2a30){_0x59df09['push'](_0x59df09['shift']());}}}(a93_0x279a,0x3fa6f));const a93_0x427390={};a93_0x427390[a93_0x9b201b(0xca)]=a93_0x9b201b(0xc4),a93_0x427390[a93_0x9b201b(0xd2)]=a93_0x9b201b(0xce),a93_0x427390[a93_0x9b201b(0xbe)]='framework_session_id',a93_0x427390[a93_0x9b201b(0xcc)]=a93_0x9b201b(0xda),a93_0x427390[a93_0x9b201b(0xd3)]='capabilities',a93_0x427390[a93_0x9b201b(0xc1)]=a93_0x9b201b(0xcf),a93_0x427390[a93_0x9b201b(0xc8)]=a93_0x9b201b(0xc7),a93_0x427390['KEY_ENDED_AT']=a93_0x9b201b(0xcd),a93_0x427390['KEY_PLATFORM_INDEX']=a93_0x9b201b(0xc0),a93_0x427390['COMMAND_NEW_SESSION']=a93_0x9b201b(0xd9),a93_0x427390[a93_0x9b201b(0xd8)]=a93_0x9b201b(0xd1),a93_0x427390[a93_0x9b201b(0xbb)]=a93_0x9b201b(0xd7),a93_0x427390[a93_0x9b201b(0xc9)]='w3cexecutescript',a93_0x427390[a93_0x9b201b(0xbf)]=a93_0x9b201b(0xd6),a93_0x427390[a93_0x9b201b(0xc3)]=a93_0x9b201b(0xc5);function a93_0x53a2(_0x3f6b9f,_0x59bfb9){const _0x279a6a=a93_0x279a();return a93_0x53a2=function(_0x53a25f,_0x41bb3f){_0x53a25f=_0x53a25f-0xba;let _0x21e865=_0x279a6a[_0x53a25f];return _0x21e865;},a93_0x53a2(_0x3f6b9f,_0x59bfb9);}const AutomationFrameworkConstants=a93_0x427390;module[a93_0x9b201b(0xc6)]=AutomationFrameworkConstants;
@@ -1 +1 @@
1
- const a94_0x3592c7=a94_0x310d;(function(_0x34ad75,_0x5544e6){const _0x4eaabe=a94_0x310d,_0x594c37=_0x34ad75();while(!![]){try{const _0x4345de=parseInt(_0x4eaabe(0x1b2))/0x1*(-parseInt(_0x4eaabe(0x1a1))/0x2)+-parseInt(_0x4eaabe(0x1b6))/0x3+-parseInt(_0x4eaabe(0x1e6))/0x4+parseInt(_0x4eaabe(0x1d2))/0x5+-parseInt(_0x4eaabe(0x1b9))/0x6+-parseInt(_0x4eaabe(0x1ae))/0x7+parseInt(_0x4eaabe(0x199))/0x8;if(_0x4345de===_0x5544e6)break;else _0x594c37['push'](_0x594c37['shift']());}catch(_0x19d5aa){_0x594c37['push'](_0x594c37['shift']());}}}(a94_0x53ec,0xa04cf));function a94_0x310d(_0xa9a2e0,_0x118fe7){const _0x53ec80=a94_0x53ec();return a94_0x310d=function(_0x310df7,_0x549902){_0x310df7=_0x310df7-0x198;let _0x2aac1b=_0x53ec80[_0x310df7];return _0x2aac1b;},a94_0x310d(_0xa9a2e0,_0x118fe7);}const a94_0x410d48={};a94_0x410d48['KEY_TEST_UUID']=a94_0x3592c7(0x1cc),a94_0x410d48[a94_0x3592c7(0x1cf)]=a94_0x3592c7(0x1ec),a94_0x410d48[a94_0x3592c7(0x19c)]='test_name',a94_0x410d48[a94_0x3592c7(0x1c8)]=a94_0x3592c7(0x1e2),a94_0x410d48[a94_0x3592c7(0x19a)]=a94_0x3592c7(0x1eb),a94_0x410d48['KEY_TEST_RESULT']=a94_0x3592c7(0x1de),a94_0x410d48[a94_0x3592c7(0x1e1)]=a94_0x3592c7(0x1bd),a94_0x410d48[a94_0x3592c7(0x1a2)]=a94_0x3592c7(0x1c9),a94_0x410d48[a94_0x3592c7(0x1c7)]=a94_0x3592c7(0x1d3),a94_0x410d48[a94_0x3592c7(0x19b)]=a94_0x3592c7(0x1e7),a94_0x410d48['KEY_TEST_DURATION']=a94_0x3592c7(0x1df),a94_0x410d48[a94_0x3592c7(0x1d5)]=a94_0x3592c7(0x1ea),a94_0x410d48[a94_0x3592c7(0x1c3)]=a94_0x3592c7(0x19d),a94_0x410d48['KEY_TEST_FRAMEWORK_NAME']=a94_0x3592c7(0x1db),a94_0x410d48[a94_0x3592c7(0x1a6)]=a94_0x3592c7(0x1cd),a94_0x410d48[a94_0x3592c7(0x1bb)]='test_code',a94_0x410d48[a94_0x3592c7(0x1ab)]='test_rerun_name',a94_0x410d48['KEY_TEST_RETRY_OF']=a94_0x3592c7(0x1b8),a94_0x410d48[a94_0x3592c7(0x1e0)]=a94_0x3592c7(0x198),a94_0x410d48[a94_0x3592c7(0x1ac)]=a94_0x3592c7(0x1c1),a94_0x410d48['KEY_TEST_FAILURE_TYPE']=a94_0x3592c7(0x1bc),a94_0x410d48[a94_0x3592c7(0x1e9)]='test_failure_reason',a94_0x410d48['KEY_TEST_LOGS']=a94_0x3592c7(0x1b0),a94_0x410d48[a94_0x3592c7(0x1c5)]=a94_0x3592c7(0x1d1),a94_0x410d48[a94_0x3592c7(0x19e)]='test_session_name',a94_0x410d48[a94_0x3592c7(0x1e4)]=a94_0x3592c7(0x1a4),a94_0x410d48[a94_0x3592c7(0x1d8)]=a94_0x3592c7(0x1d6),a94_0x410d48['KEY_AUTOMATE_SESSION_REASON']=a94_0x3592c7(0x1bf),a94_0x410d48['KEY_EVENT_STARTED_AT']='event_started_at',a94_0x410d48[a94_0x3592c7(0x1dd)]=a94_0x3592c7(0x1aa),a94_0x410d48['KEY_HOOK_ID']='hook_id',a94_0x410d48[a94_0x3592c7(0x1c2)]=a94_0x3592c7(0x1a3),a94_0x410d48[a94_0x3592c7(0x1a9)]=a94_0x3592c7(0x1d4),a94_0x410d48[a94_0x3592c7(0x1d7)]=a94_0x3592c7(0x1d0),a94_0x410d48['KEY_HOOK_FAILURE']='hook_failure',a94_0x410d48['KEY_HOOK_LOGS']=a94_0x3592c7(0x1b3),a94_0x410d48[a94_0x3592c7(0x1c0)]=a94_0x3592c7(0x1a7),a94_0x410d48[a94_0x3592c7(0x1b5)]='pending',a94_0x410d48['DEFAULT_HOOK_RESULT']='pending',a94_0x410d48[a94_0x3592c7(0x1ca)]='TEST_SCREENSHOT',a94_0x410d48[a94_0x3592c7(0x1b1)]=a94_0x3592c7(0x1da),a94_0x410d48[a94_0x3592c7(0x1e5)]='^(BEFORE_|AFTER_)',a94_0x410d48['KEY_HOOKS_STARTED']='test_hooks_started',a94_0x410d48['KEY_HOOKS_FINISHED']=a94_0x3592c7(0x1a0),a94_0x410d48[a94_0x3592c7(0x19f)]=a94_0x3592c7(0x1c6),a94_0x410d48[a94_0x3592c7(0x1a8)]=a94_0x3592c7(0x1ce),a94_0x410d48['KEY_LOGS']=a94_0x3592c7(0x1ad),a94_0x410d48[a94_0x3592c7(0x1e3)]=a94_0x3592c7(0x1a5),a94_0x410d48['KEY_TEST_ATTACHMENTS']=a94_0x3592c7(0x1b7),a94_0x410d48[a94_0x3592c7(0x1d9)]=a94_0x3592c7(0x1ba),a94_0x410d48['KEY_FILE_NAME']='file_name',a94_0x410d48[a94_0x3592c7(0x1cb)]=a94_0x3592c7(0x1c4),a94_0x410d48[a94_0x3592c7(0x1b4)]=a94_0x3592c7(0x1dc),a94_0x410d48['KEY_TEST_SCREENSHOTS']=a94_0x3592c7(0x1e8),a94_0x410d48[a94_0x3592c7(0x1be)]=0xa,a94_0x410d48['MAX_NESTED_STEP_DEPTH']=0x2;const TestFrameworkConstants=a94_0x410d48;function a94_0x53ec(){const _0x49d882=['KEY_TEST_FAILURE','logs','342993PUpWki','exports','test_logs','KIND_LOG','40565FZyXmo','hook_logs','KEY_FILE_LEVEL','DEFAULT_TEST_RESULT','1633932aOuDRD','test_attachments','retry_of','1897578MRQdug','file_size','KEY_TEST_CODE','test_failure_type','test_result_at','MAX_TOP_LEVEL_STEPS','automate_session_reason','KEY_HOOK_NAME','test_failure','KEY_HOOK_RESULT','KEY_TEST_SCOPES','file_path','KEY_TEST_META','test_hook_last_started','KEY_TEST_ENDED_AT','KEY_TEST_FILE_PATH','test_started_at','KIND_SCREENSHOT','KEY_FILE_PATH','test_uuid','test_framework_version','test_hook_last_finished','KEY_TEST_ID','hook_failure_reason','test_meta','5725245YcuoEM','test_ended_at','hook_failure_type','KEY_TEST_SCOPE','automate_session_status','KEY_HOOK_FAILURE_REASON','KEY_AUTOMATE_SESSION_STATUS','KEY_FILE_SIZE','TEST_LOG','test_framework_name','file_level','KEY_EVENT_ENDED_AT','test_result','test_duration','KEY_PLATFORM_INDEX','KEY_TEST_RESULT_AT','test_file_path','KEY_CUSTOM_TAGS','KEY_AUTOMATE_SESSION_NAME','HOOK_REGEX','2258348xZbkaJ','test_location','test_screenshots','KEY_TEST_FAILURE_REASON','test_scope','test_tags','test_id','platform_index','8212800gFJYNf','KEY_TEST_TAGS','KEY_TEST_LOCATION','KEY_TEST_NAME','test_scopes','KEY_SESSION_NAME','KEY_HOOK_LAST_STARTED','test_hooks_finished','2NDBwEZ','KEY_TEST_STARTED_AT','hook_result','automate_session_name','custom_metadata','KEY_TEST_FRAMEWORK_VERSION','hook_name','KEY_HOOK_LAST_FINISHED','KEY_HOOK_FAILURE_TYPE','event_ended_at','KEY_TEST_RERUN_NAME'];a94_0x53ec=function(){return _0x49d882;};return a94_0x53ec();}module[a94_0x3592c7(0x1af)]=TestFrameworkConstants;
1
+ function a94_0x2823(_0x14a2ce,_0x2bb763){const _0x42faad=a94_0x42fa();return a94_0x2823=function(_0x282356,_0x2e3d21){_0x282356=_0x282356-0x109;let _0xc4340f=_0x42faad[_0x282356];return _0xc4340f;},a94_0x2823(_0x14a2ce,_0x2bb763);}const a94_0x515fd2=a94_0x2823;(function(_0xb9fbc8,_0x106c24){const _0x11104e=a94_0x2823,_0x287bc3=_0xb9fbc8();while(!![]){try{const _0x1ba142=-parseInt(_0x11104e(0x144))/0x1*(parseInt(_0x11104e(0x141))/0x2)+-parseInt(_0x11104e(0x11d))/0x3*(parseInt(_0x11104e(0x15f))/0x4)+parseInt(_0x11104e(0x11c))/0x5+parseInt(_0x11104e(0x153))/0x6+-parseInt(_0x11104e(0x161))/0x7+-parseInt(_0x11104e(0x164))/0x8*(parseInt(_0x11104e(0x127))/0x9)+parseInt(_0x11104e(0x130))/0xa*(parseInt(_0x11104e(0x163))/0xb);if(_0x1ba142===_0x106c24)break;else _0x287bc3['push'](_0x287bc3['shift']());}catch(_0x3a7d3a){_0x287bc3['push'](_0x287bc3['shift']());}}}(a94_0x42fa,0x6bb56));const a94_0x43f98f={};a94_0x43f98f[a94_0x515fd2(0x13e)]='test_uuid',a94_0x43f98f['KEY_TEST_ID']=a94_0x515fd2(0x125),a94_0x43f98f[a94_0x515fd2(0x10b)]='test_name',a94_0x43f98f['KEY_TEST_FILE_PATH']=a94_0x515fd2(0x14f),a94_0x43f98f[a94_0x515fd2(0x128)]='test_tags',a94_0x43f98f['KEY_TEST_RESULT']=a94_0x515fd2(0x15a),a94_0x43f98f[a94_0x515fd2(0x150)]=a94_0x515fd2(0x13c),a94_0x43f98f[a94_0x515fd2(0x10a)]=a94_0x515fd2(0x10c),a94_0x43f98f[a94_0x515fd2(0x118)]=a94_0x515fd2(0x133),a94_0x43f98f[a94_0x515fd2(0x13a)]=a94_0x515fd2(0x149),a94_0x43f98f[a94_0x515fd2(0x11b)]=a94_0x515fd2(0x13b),a94_0x43f98f[a94_0x515fd2(0x11f)]='test_scope',a94_0x43f98f['KEY_TEST_SCOPES']=a94_0x515fd2(0x139),a94_0x43f98f['KEY_TEST_FRAMEWORK_NAME']='test_framework_name',a94_0x43f98f[a94_0x515fd2(0x142)]=a94_0x515fd2(0x110),a94_0x43f98f['KEY_TEST_CODE']=a94_0x515fd2(0x147),a94_0x43f98f['KEY_TEST_RERUN_NAME']=a94_0x515fd2(0x12b),a94_0x43f98f['KEY_TEST_RETRY_OF']=a94_0x515fd2(0x11a),a94_0x43f98f[a94_0x515fd2(0x15b)]=a94_0x515fd2(0x111),a94_0x43f98f[a94_0x515fd2(0x121)]=a94_0x515fd2(0x15c),a94_0x43f98f['KEY_TEST_FAILURE_TYPE']=a94_0x515fd2(0x124),a94_0x43f98f[a94_0x515fd2(0x12f)]=a94_0x515fd2(0x15d),a94_0x43f98f[a94_0x515fd2(0x15e)]='test_logs',a94_0x43f98f[a94_0x515fd2(0x129)]=a94_0x515fd2(0x14a),a94_0x43f98f['KEY_SESSION_NAME']=a94_0x515fd2(0x134),a94_0x43f98f['KEY_AUTOMATE_SESSION_NAME']=a94_0x515fd2(0x117),a94_0x43f98f[a94_0x515fd2(0x131)]='automate_session_status',a94_0x43f98f['KEY_AUTOMATE_SESSION_REASON']=a94_0x515fd2(0x137),a94_0x43f98f['KEY_EVENT_STARTED_AT']=a94_0x515fd2(0x152),a94_0x43f98f[a94_0x515fd2(0x143)]=a94_0x515fd2(0x120),a94_0x43f98f[a94_0x515fd2(0x157)]=a94_0x515fd2(0x138),a94_0x43f98f['KEY_HOOK_RESULT']=a94_0x515fd2(0x113),a94_0x43f98f[a94_0x515fd2(0x158)]=a94_0x515fd2(0x159),a94_0x43f98f[a94_0x515fd2(0x119)]=a94_0x515fd2(0x151),a94_0x43f98f[a94_0x515fd2(0x10e)]=a94_0x515fd2(0x14c),a94_0x43f98f[a94_0x515fd2(0x123)]=a94_0x515fd2(0x115),a94_0x43f98f[a94_0x515fd2(0x114)]=a94_0x515fd2(0x11e),a94_0x43f98f[a94_0x515fd2(0x10f)]=a94_0x515fd2(0x160),a94_0x43f98f[a94_0x515fd2(0x126)]=a94_0x515fd2(0x160),a94_0x43f98f[a94_0x515fd2(0x154)]=a94_0x515fd2(0x10d),a94_0x43f98f[a94_0x515fd2(0x136)]=a94_0x515fd2(0x12c),a94_0x43f98f[a94_0x515fd2(0x135)]=a94_0x515fd2(0x116),a94_0x43f98f['KEY_HOOKS_STARTED']=a94_0x515fd2(0x155),a94_0x43f98f[a94_0x515fd2(0x14d)]=a94_0x515fd2(0x13d),a94_0x43f98f['KEY_HOOK_LAST_STARTED']='test_hook_last_started',a94_0x43f98f[a94_0x515fd2(0x14e)]=a94_0x515fd2(0x12a),a94_0x43f98f[a94_0x515fd2(0x145)]=a94_0x515fd2(0x140),a94_0x43f98f[a94_0x515fd2(0x13f)]='custom_metadata',a94_0x43f98f[a94_0x515fd2(0x112)]=a94_0x515fd2(0x109),a94_0x43f98f[a94_0x515fd2(0x156)]='file_size',a94_0x43f98f[a94_0x515fd2(0x12e)]=a94_0x515fd2(0x122),a94_0x43f98f[a94_0x515fd2(0x162)]='file_path',a94_0x43f98f['KEY_FILE_LEVEL']='file_level',a94_0x43f98f[a94_0x515fd2(0x132)]=a94_0x515fd2(0x12d),a94_0x43f98f[a94_0x515fd2(0x148)]=0xa,a94_0x43f98f[a94_0x515fd2(0x14b)]=0x2;function a94_0x42fa(){const _0x59a7a2=['hook_name','KEY_TEST_SCOPE','event_ended_at','KEY_TEST_FAILURE','file_name','KEY_HOOK_LOGS','test_failure_type','test_id','DEFAULT_HOOK_RESULT','207810MYOloR','KEY_TEST_TAGS','KEY_TEST_META','test_hook_last_finished','test_rerun_name','TEST_LOG','test_screenshots','KEY_FILE_NAME','KEY_TEST_FAILURE_REASON','190OxPdXV','KEY_AUTOMATE_SESSION_STATUS','KEY_TEST_SCREENSHOTS','test_ended_at','test_session_name','HOOK_REGEX','KIND_LOG','automate_session_reason','hook_id','test_scopes','KEY_TEST_LOCATION','test_duration','test_result_at','test_hooks_finished','KEY_TEST_UUID','KEY_CUSTOM_TAGS','logs','732766ZklIBG','KEY_TEST_FRAMEWORK_VERSION','KEY_EVENT_ENDED_AT','1OJiqqL','KEY_LOGS','exports','test_code','MAX_TOP_LEVEL_STEPS','test_location','test_meta','MAX_NESTED_STEP_DEPTH','hook_failure','KEY_HOOKS_FINISHED','KEY_HOOK_LAST_FINISHED','test_file_path','KEY_TEST_RESULT_AT','hook_failure_reason','event_started_at','2574138vFOQxb','KIND_SCREENSHOT','test_hooks_started','KEY_FILE_SIZE','KEY_HOOK_ID','KEY_HOOK_FAILURE_TYPE','hook_failure_type','test_result','KEY_PLATFORM_INDEX','test_failure','test_failure_reason','KEY_TEST_LOGS','8TZPqtp','pending','882637QWcyhl','KEY_FILE_PATH','271425PAcjgS','48jfdsKJ','test_attachments','KEY_TEST_STARTED_AT','KEY_TEST_NAME','test_started_at','TEST_SCREENSHOT','KEY_HOOK_FAILURE','DEFAULT_TEST_RESULT','test_framework_version','platform_index','KEY_TEST_ATTACHMENTS','hook_result','KEY_HOOK_NAME','hook_logs','^(BEFORE_|AFTER_)','automate_session_name','KEY_TEST_ENDED_AT','KEY_HOOK_FAILURE_REASON','retry_of','KEY_TEST_DURATION','1197720qEQlyh','97806mDJGku'];a94_0x42fa=function(){return _0x59a7a2;};return a94_0x42fa();}const TestFrameworkConstants=a94_0x43f98f;module[a94_0x515fd2(0x146)]=TestFrameworkConstants;
@@ -1 +1 @@
1
- function a95_0x18d8(){const _0x41245f=['sendLogCreatedEvent','UvWvt','startedAt','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','Parsed\x20cucumber\x20test:\x20','KEY_AUTOMATE_SESSION_NAME','NONE','Updated\x20cucumber\x20test\x20result:\x20','trackCucumberInstance','removePendingHooks','getInstance','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','KEY_EVENT_STARTED_AT','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','KEY_TEST_SCOPES',',\x20state:\x20','Processing\x20','hooks','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','tags','finished_at','trackCucumberInstance:\x20saved\x20instance\x20contextId=','KEY_HOOK_FAILURE','result','KEY_TEST_FAILURE','../grpcClient','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','trackEvent:\x20unsupported\x20testFrameworkState=','keys','KEY_TEST_SCOPE','INIT_TEST','concat','12050236JIyVVx','TEST','instance','hookState','gIpEy','testFrameworkState','KEY_HOOKS_FINISHED','getRef','args','dRQhG','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','meta','name','from','\x20batch\x20','./constants/testFrameworkConstants.js','hzWXd',',\x20state=','error','32787mflfhk','56zHOMYU','logCreatedEvent','YhsiC','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','getTestUUID','1385uLsVlu','VjXHm','KEY_TEST_RESULT','gUbEK','unknown','executionContext','customRerunParam','getTestFrameworksVersions','test','format','../../../helpers/helper.js','KEY_EVENT_ENDED_AT','resolveInstance','EzZuM','KEY_TEST_UUID','KEY_TEST_META','failure_data','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','ELbos','getId','YXLmE','KEY_TEST_FAILURE_TYPE','Error\x20in\x20createTestFrameworkEventPayload:\x20','KEY_TEST_RERUN_NAME','getThreadId','KEY_HOOK_LOGS','../cliUtils.js','hookData','util','toString','NmMVd','debug','1352880akKKmN','wbKkv','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','\x20hookState:\x20','failure_reason','length','hasPendingHooks','GZSXd','sendLogCreatedEvent:\x20for\x20testId:\x20','BuMKW','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','Cucumber\x20log\x20created\x20event','setTrackedInstance','KEY_HOOK_LAST_STARTED','./testFramework','KEY_TEST_STARTED_AT','1056181lmNRgB','eventJson','DvfuK','Hhiqk','setTestDetails','started_at',',\x20storing\x20as\x20pending\x20hook','KEY_HOOK_FAILURE_TYPE','KEY_HOOK_RESULT','KEY_TEST_FILE_PATH','getTestDetails','3179578Bgrlxx','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','getCurrentInstanceName','getContext','POST','split','addMultipleEntries','parseCucumberTestResult','test_run_id','CucumberTestFramework','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','getAllData','../instances/trackedInstance.js','UeEJa','KEY_TEST_ID','testFrameworkName','push','file_name','createContext','KEY_TEST_ENDED_AT','20334jcVIga','DEFAULT_HOOK_RESULT','RNFYh','ITzYb',',\x20hookState:\x20','KEY_HOOK_ID','processPendingHooks','getCurrentTestState','trackEvent','runHooks','XScsj','getTrackedInstance','failure','slice','KEY_TEST_FRAMEWORK_VERSION','scopes','KEY_HOOK_FAILURE_REASON','160oFcBjH','readLogObjects','KEY_TEST_FRAMEWORK_NAME','getCurrentHookState','../state/hookState.js','KEY_TEST_ATTACHMENTS','pop','KEY_TEST_TAGS','XAcIw','getPendingHooks','getProcessId','base64','uuid','rerun_name',',\x20error:\x20','\x20&\x20hook\x20=\x20','KEY_TEST_FAILURE_REASON','body','KEY_HOOK_LAST_FINISHED','rsqnP','KEY_TEST_NAME','LOG_REPORT','\x20pending\x20hooks\x20for\x20testId:\x20','toISOString','getTestFrameworks','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','KEY_LOGS','KEY_CUSTOM_TAGS','parseCucumberTest','inspect','testFrameworkVersion','ifKHr','ceil','get','exports','failed','storePendingHook','Stored\x20pending\x20hook\x20for\x20testId:\x20','8LsrYOw','createTestFrameworkEventPayload\x20testId:\x20','\x20with\x20UUID:\x20','PRE','passed','KthvU','zaNPc','finishedAt','1392653jqkASS','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','KEY_HOOKS_STARTED','unAzd','dyQNS','failure_type','trackHookEvent','createTestFrameworkEventPayload'];a95_0x18d8=function(){return _0x41245f;};return a95_0x18d8();}const a95_0x214207=a95_0x1fcc;(function(_0xc930d4,_0x4487af){const _0x3f5dbf=a95_0x1fcc,_0xa9d35a=_0xc930d4();while(!![]){try{const _0x2bd1b6=-parseInt(_0x3f5dbf(0x131))/0x1+-parseInt(_0x3f5dbf(0x1ad))/0x2+-parseInt(_0x3f5dbf(0x192))/0x3*(-parseInt(_0x3f5dbf(0x129))/0x4)+-parseInt(_0x3f5dbf(0x172))/0x5*(-parseInt(_0x3f5dbf(0x1c1))/0x6)+-parseInt(_0x3f5dbf(0x1a2))/0x7*(-parseInt(_0x3f5dbf(0x16d))/0x8)+parseInt(_0x3f5dbf(0x16c))/0x9*(-parseInt(_0x3f5dbf(0x103))/0xa)+parseInt(_0x3f5dbf(0x159))/0xb;if(_0x2bd1b6===_0x4487af)break;else _0xa9d35a['push'](_0xa9d35a['shift']());}catch(_0x33d457){_0xa9d35a['push'](_0xa9d35a['shift']());}}}(a95_0x18d8,0xe8530));const TestFramework=require(a95_0x214207(0x1a0)),TestFrameworkState=require('../state/testFrameworkState.js'),HookState=require(a95_0x214207(0x107)),{createClassLogger}=require('../../../helpers/classLogger.js'),TestFrameworkInstance=require('../instances/testFrameworkInstance.js'),CLIUtils=require(a95_0x214207(0x18c)),TrackedInstance=require(a95_0x214207(0x1b9)),TestFrameworkConstants=require(a95_0x214207(0x168)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a95_0x214207(0x17c)),logger=createClassLogger(a95_0x214207(0x1b6)),{v4:uuidv4}=require('uuid'),util=require(a95_0x214207(0x18e)),TestInfo=require('../TestInfo.js'),GrpcClient=require(a95_0x214207(0x152));class CucumberTestFramework extends TestFramework{constructor(_0x149600,_0x57268a,_0x8cebbe){super(_0x149600,_0x57268a,_0x8cebbe);}async[a95_0x214207(0x1c9)](_0x315cef,_0x1116a2,_0x4e9838={}){const _0x5c0a16=a95_0x214207,_0x2f7d19={};_0x2f7d19[_0x5c0a16(0x1a4)]=_0x5c0a16(0x132),_0x2f7d19[_0x5c0a16(0x199)]=function(_0x19a248,_0x2512a8){return _0x19a248===_0x2512a8;},_0x2f7d19['rsqnP']=_0x5c0a16(0x153);const _0xe7928f=_0x2f7d19;await super[_0x5c0a16(0x1c9)](_0x315cef,_0x1116a2,_0x4e9838);const _0x3ade87=this[_0x5c0a16(0x17e)](_0x315cef,_0x1116a2,_0x4e9838);if(!_0x3ade87){logger[_0x5c0a16(0x191)](_0xe7928f['DvfuK']);return;}try{let _0x51cd7f,_0x5c9363;switch(_0x315cef){case TestFrameworkState[_0x5c0a16(0x15a)]:_0x51cd7f=_0x4e9838[_0x5c0a16(0x17a)],_0x5c9363=TestInfo[_0x5c0a16(0x171)](_0x51cd7f['id']);if(_0xe7928f[_0x5c0a16(0x199)](_0x1116a2,HookState[_0x5c0a16(0x12c)])){logger[_0x5c0a16(0x191)]('trackEvent\x20loading\x20testData\x20for\x20testId:\x20'+_0x51cd7f['id']);const _0x779885={};_0x779885['testUUID']=_0x5c9363,_0x779885['testData']=_0x51cd7f,_0x3ade87[_0x5c0a16(0x1b3)](this[_0x5c0a16(0x11f)](_0x779885)),logger[_0x5c0a16(0x191)]('trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20'+_0x51cd7f['id']),await this[_0x5c0a16(0x1c7)](_0x3ade87,_0x51cd7f['id']);}else{if(_0xe7928f[_0x5c0a16(0x199)](_0x1116a2,HookState[_0x5c0a16(0x1b1)])){const _0x23352a={};_0x23352a['testUUID']=_0x5c9363,_0x23352a['testData']=_0x51cd7f,_0x3ade87[_0x5c0a16(0x1b3)](this[_0x5c0a16(0x1b4)](_0x23352a)),await this[_0x5c0a16(0x1c7)](_0x3ade87,_0x51cd7f['id']);}}break;case TestFrameworkState[_0x5c0a16(0x118)]:_0xe7928f['GZSXd'](_0x1116a2,HookState['POST'])&&await this[_0x5c0a16(0x139)](_0x3ade87,_0x315cef,_0x4e9838);break;default:if(CLIUtils['matchHookRegex'](_0x315cef['toString']()[_0x5c0a16(0x1b2)]('.')[0x1])){const _0x428c36=await this[_0x5c0a16(0x137)](_0x3ade87,_0x315cef,_0x1116a2,_0x4e9838);_0x3ade87[_0x5c0a16(0x1b3)](_0x428c36);}else logger[_0x5c0a16(0x191)](_0x5c0a16(0x154)+_0x315cef+'\x20&\x20hookState='+_0x1116a2);break;}}catch(_0x12532b){logger[_0x5c0a16(0x16b)](util['format'](_0xe7928f[_0x5c0a16(0x116)],_0x315cef,_0x1116a2,_0x4e9838[_0x5c0a16(0x197)],_0x12532b));}_0x4e9838[_0x5c0a16(0x15b)]=_0x3ade87,await this[_0x5c0a16(0x1ca)](_0x3ade87,_0x315cef,_0x1116a2,_0x4e9838);}['resolveInstance'](_0x3551be,_0x39e2ff,_0x2a4d97={}){const _0x5b7583=a95_0x214207,_0x4e018b={};_0x4e018b[_0x5b7583(0x190)]=function(_0x4960ef,_0x206836){return _0x4960ef===_0x206836;},_0x4e018b[_0x5b7583(0x1c3)]=function(_0x430800,_0x4ca91c){return _0x430800===_0x4ca91c;};const _0x3a193b=_0x4e018b;let _0x3fc55a=null;return(_0x3a193b[_0x5b7583(0x190)](_0x3551be,TestFrameworkState[_0x5b7583(0x157)])||_0x3a193b[_0x5b7583(0x1c3)](_0x3551be,TestFrameworkState[_0x5b7583(0x13f)]))&&this[_0x5b7583(0x141)](_0x3551be,_0x2a4d97),_0x3fc55a=TestFramework[_0x5b7583(0x1cc)](),_0x3fc55a;}['trackCucumberInstance'](_0x405797,_0x562575){const _0xd4f087=a95_0x214207,_0x2019fd=CLIUtils[_0xd4f087(0x1af)](),_0x51bfe3=TrackedInstance[_0xd4f087(0x1bf)](_0x2019fd);let _0x5ce451=null;logger[_0xd4f087(0x191)](_0xd4f087(0x144)+_0x2019fd+_0xd4f087(0x16a)+_0x405797),_0x5ce451=new TestFrameworkInstance(_0x51bfe3,this[_0xd4f087(0x11b)](),this[_0xd4f087(0x179)](),_0x405797,HookState[_0xd4f087(0x13f)]),TestFramework[_0xd4f087(0x19e)](_0x51bfe3,_0x5ce451),logger[_0xd4f087(0x191)](_0xd4f087(0x14e)+_0x51bfe3[_0xd4f087(0x185)]()+'\x20target='+_0x2019fd);}[a95_0x214207(0x11f)](_0x48d346){const _0x4c1475=a95_0x214207,_0x1f22b6={};_0x1f22b6[_0x4c1475(0x175)]=_0x4c1475(0x19c);const _0x397730=_0x1f22b6,{testUUID:_0x29072c,testData:_0xba8d45}=_0x48d346;if(!_0xba8d45||!_0xba8d45[_0x4c1475(0x10f)])return logger[_0x4c1475(0x191)](_0x397730[_0x4c1475(0x175)]),{};const _0x6bca2=_0x29072c,_0x5ebbe1=_0xba8d45[_0x4c1475(0x10f)],_0x56da59=this[_0x4c1475(0x11b)]()[0x0],_0x47758c=this['getTestFrameworksVersions'](),_0x4374f5={[TestFrameworkConstants[_0x4c1475(0x105)]]:_0x56da59,[TestFrameworkConstants[_0x4c1475(0x1cf)]]:_0x47758c[_0x56da59],[TestFrameworkConstants['KEY_TEST_LOGS']]:[],[TestFrameworkConstants[_0x4c1475(0x15f)]]:{},[TestFrameworkConstants[_0x4c1475(0x133)]]:{},[TestFrameworkConstants[_0x4c1475(0x180)]]:_0x6bca2,[TestFrameworkConstants[_0x4c1475(0x174)]]:TestFrameworkConstants['DEFAULT_TEST_RESULT'],[TestFrameworkConstants[_0x4c1475(0x13e)]]:_0xba8d45['name']||'',[TestFrameworkConstants[_0x4c1475(0x1ab)]]:_0xba8d45[_0x4c1475(0x1be)]||'',[TestFrameworkConstants[_0x4c1475(0x1bb)]]:_0x5ebbe1,[TestFrameworkConstants[_0x4c1475(0x117)]]:_0xba8d45[_0x4c1475(0x165)]||'',[TestFrameworkConstants['KEY_TEST_LOCATION']]:_0xba8d45['location']||'',[TestFrameworkConstants['KEY_TEST_CODE']]:_0xba8d45[_0x4c1475(0x114)]?.['code']||null,[TestFrameworkConstants[_0x4c1475(0x10a)]]:_0xba8d45[_0x4c1475(0x14c)]||[],[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0xba8d45['startedAt']||new Date()[_0x4c1475(0x11a)](),[TestFrameworkConstants[_0x4c1475(0x156)]]:_0xba8d45[_0x4c1475(0x101)]?.[0x0]||'',[TestFrameworkConstants[_0x4c1475(0x147)]]:_0xba8d45[_0x4c1475(0x101)]||[],[TestFrameworkConstants[_0x4c1475(0x189)]]:_0xba8d45[_0x4c1475(0x178)]?.[_0x4c1475(0x110)]||_0xba8d45[_0x4c1475(0x165)]||'',[TestFrameworkConstants[_0x4c1475(0x11e)]]:{},[TestFrameworkConstants[_0x4c1475(0x181)]]:_0xba8d45[_0x4c1475(0x164)]||{}};TestInfo[_0x4c1475(0x1a6)](_0x5ebbe1,_0x4374f5),logger[_0x4c1475(0x191)](_0x4c1475(0x13d)+_0xba8d45[_0x4c1475(0x165)]+_0x4c1475(0x12b)+_0x6bca2);const _0x5b2e0e={};return _0x5b2e0e[_0x5ebbe1]=_0x4374f5,_0x5b2e0e;}['parseCucumberTestResult'](_0x4aed2e){const _0x5abbda=a95_0x214207,_0x599d86={'XScsj':_0x5abbda(0x1b7),'cUKtP':_0x5abbda(0x176),'SBVje':function(_0x2701bb,_0x1a73a7){return _0x2701bb===_0x1a73a7;},'UvWvt':_0x5abbda(0x126),'lTGdj':'UnhandledError','wwCfH':function(_0x22d067,_0xc266c2,_0x1893a5){return _0x22d067(_0xc266c2,_0x1893a5);},'ELbos':function(_0x46f1f6,_0x357e0d){return _0x46f1f6>_0x357e0d;}},{testUUID:_0xb2fdc5,testData:_0x1c3362}=_0x4aed2e;if(!_0x1c3362||!_0x1c3362[_0x5abbda(0x10f)])return logger[_0x5abbda(0x191)](_0x599d86[_0x5abbda(0x1cb)]),{};const _0x5cb7ba=this[_0x5abbda(0x17e)](TestFrameworkState[_0x5abbda(0x15a)],HookState['POST']),_0x405d15=_0x1c3362[_0x5abbda(0x10f)],_0x3ec3dd=TestInfo[_0x5abbda(0x1ac)](_0x405d15)||{},_0x1df6a6=_0x3ec3dd?_0x3ec3dd[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{}:{},_0x321133={..._0x3ec3dd,[TestFrameworkConstants[_0x5abbda(0x174)]]:_0x1c3362[_0x5abbda(0x150)]||_0x599d86['cUKtP'],[TestFrameworkConstants[_0x5abbda(0x1c0)]]:_0x1c3362[_0x5abbda(0x130)]||new Date()['toISOString'](),[TestFrameworkConstants['KEY_TEST_RESULT_AT']]:new Date()['toISOString'](),[TestFrameworkConstants[_0x5abbda(0x11e)]]:_0x1df6a6,[TestFrameworkConstants[_0x5abbda(0x11d)]]:[],[TestFrameworkConstants[_0x5abbda(0x181)]]:_0x1c3362[_0x5abbda(0x164)]||{}};_0x599d86['SBVje'](_0x1c3362[_0x5abbda(0x150)],_0x599d86[_0x5abbda(0x13a)])&&_0x1c3362[_0x5abbda(0x1cd)]&&(_0x321133[TestFrameworkConstants[_0x5abbda(0x187)]]=_0x1c3362[_0x5abbda(0x136)]||_0x599d86['lTGdj'],_0x321133[TestFrameworkConstants[_0x5abbda(0x113)]]=_0x1c3362['failure_reason']||'',_0x321133[TestFrameworkConstants[_0x5abbda(0x151)]]=_0x1c3362['failure']);const _0x32ce61=TestInfo['getTestDetails'](_0x405d15)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x4d565e=_0x599d86['wwCfH'](getManualUploadLogs,_0x32ce61,_0x5cb7ba[_0x5abbda(0x1b8)]()[_0x5abbda(0x124)](_0x405d15)[TestFrameworkConstants[_0x5abbda(0x180)]]);if(_0x599d86[_0x5abbda(0x184)](_0x4d565e[_0x5abbda(0x197)],0x0)){const _0x32ea6f=_0x321133[TestFrameworkConstants[_0x5abbda(0x11d)]]||[];_0x321133[TestFrameworkConstants[_0x5abbda(0x11d)]]=[..._0x32ea6f,..._0x4d565e];}_0x1c3362[_0x5abbda(0x14a)]&&_0x599d86[_0x5abbda(0x184)](_0x1c3362[_0x5abbda(0x14a)][_0x5abbda(0x197)],0x0)&&(_0x321133[TestFrameworkConstants[_0x5abbda(0x15f)]]=_0x1c3362[_0x5abbda(0x14a)]);TestInfo['setTestDetails'](_0x405d15,_0x321133),logger[_0x5abbda(0x191)](_0x5abbda(0x140)+_0x1c3362['name']+'\x20with\x20result:\x20'+_0x1c3362[_0x5abbda(0x150)]);const _0x56f8a9={};return _0x56f8a9[_0x405d15]=_0x321133,_0x56f8a9;}async[a95_0x214207(0x137)](_0x833797,_0x4de18b,_0x16aed9,_0x4e39c2){const _0x43e63c=a95_0x214207,_0x4836ac={'wbKkv':_0x43e63c(0x146),'ITzYb':function(_0x240671){return _0x240671();},'KthvU':function(_0x266a48,_0x12bbe0){return _0x266a48 in _0x12bbe0;},'VjXHm':function(_0x692ea6,_0x669f7f){return _0x692ea6===_0x669f7f;},'hzWXd':function(_0x2c73c2,_0x370e26){return _0x2c73c2===_0x370e26;},'dRQhG':function(_0x57a46c,_0x2c8204){return _0x57a46c>_0x2c8204;},'UeEJa':_0x43e63c(0x126),'dyQNS':'UnhandledError','unAzd':_0x43e63c(0x12d),'BuMKW':function(_0x210851,_0x2128e6){return _0x210851!==_0x2128e6;}},{hookData:_0x28c9a9}=_0x4e39c2;if(!_0x28c9a9)return logger[_0x43e63c(0x191)](_0x4836ac[_0x43e63c(0x193)]),{};const _0x5afa37=_0x28c9a9[_0x43e63c(0x10f)]||_0x4836ac[_0x43e63c(0x1c4)](uuidv4),_0x657f6a=_0x28c9a9[_0x43e63c(0x1b5)],_0x1bc00c=_0x4de18b['toString']()[_0x43e63c(0x1b2)]('.')[0x1],_0x592e03=TestInfo[_0x43e63c(0x1ac)](_0x657f6a)[TestFrameworkConstants[_0x43e63c(0x11e)]]||{},_0x4c3116=_0x833797[_0x43e63c(0x1b8)]()[_0x43e63c(0x124)](_0x657f6a);if(!_0x4c3116)return logger[_0x43e63c(0x191)](_0x43e63c(0x170)+_0x657f6a+_0x43e63c(0x1a8)),this['storePendingHook'](_0x833797,_0x657f6a,_0x4de18b,_0x16aed9,_0x4e39c2),{};let _0x292a7=_0x4c3116[TestFrameworkConstants[_0x43e63c(0x133)]];!_0x292a7&&(_0x292a7={});!_0x4836ac[_0x43e63c(0x12e)](_0x1bc00c,_0x292a7)&&(_0x292a7[_0x1bc00c]=[]);let _0x72ad76=_0x4c3116[TestFrameworkConstants[_0x43e63c(0x15f)]];!_0x72ad76&&(_0x72ad76={});!_0x4836ac[_0x43e63c(0x12e)](_0x1bc00c,_0x72ad76)&&(_0x72ad76[_0x1bc00c]=[]);const _0x23fe0b={[TestFrameworkConstants[_0x43e63c(0x133)]]:_0x292a7,[TestFrameworkConstants[_0x43e63c(0x15f)]]:_0x72ad76},_0x1aba9f={};_0x1aba9f[_0x657f6a]=_0x23fe0b;const _0x307afa=_0x1aba9f;if(_0x4836ac['VjXHm'](_0x16aed9,HookState[_0x43e63c(0x12c)])){const _0x864aab={[TestFrameworkConstants[_0x43e63c(0x1c6)]]:_0x5afa37,[TestFrameworkConstants[_0x43e63c(0x1aa)]]:TestFrameworkConstants['DEFAULT_HOOK_RESULT'],[TestFrameworkConstants[_0x43e63c(0x145)]]:_0x28c9a9[_0x43e63c(0x1a7)],[TestFrameworkConstants[_0x43e63c(0x18b)]]:[],[TestFrameworkConstants['KEY_HOOK_NAME']]:_0x28c9a9[_0x43e63c(0x165)]||_0x28c9a9['hook_type'],[TestFrameworkConstants[_0x43e63c(0x11e)]]:_0x592e03};_0x864aab['key']=_0x1bc00c;const _0x4bcd2f=_0x864aab;_0x292a7[_0x1bc00c][_0x43e63c(0x1bd)](_0x4bcd2f),_0x307afa[_0x657f6a][TestFrameworkConstants[_0x43e63c(0x19f)]]=_0x1bc00c,logger['debug']('trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20'+_0x1bc00c+_0x43e63c(0x112)+_0x4bcd2f+'\x20\x20and\x20args\x20=\x20'+_0x4e39c2);}else{if(_0x4836ac[_0x43e63c(0x169)](_0x16aed9,HookState[_0x43e63c(0x1b1)])){const _0x5358e8=_0x28c9a9[_0x43e63c(0x150)],_0x454d09=_0x292a7[_0x1bc00c]||[];logger[_0x43e63c(0x191)](_0x43e63c(0x1ae)+_0x454d09+'\x20and\x20args\x20=\x20'+_0x4e39c2);if(_0x4836ac[_0x43e63c(0x162)](_0x454d09[_0x43e63c(0x197)],0x0)){const _0x1422a6=_0x454d09[_0x43e63c(0x109)]();_0x4836ac[_0x43e63c(0x173)](_0x28c9a9[_0x43e63c(0x150)],_0x4836ac[_0x43e63c(0x1ba)])&&_0x28c9a9[_0x43e63c(0x182)]?(_0x1422a6[TestFrameworkConstants[_0x43e63c(0x1a9)]]=_0x28c9a9[_0x43e63c(0x136)]||_0x4836ac[_0x43e63c(0x135)],_0x1422a6[TestFrameworkConstants[_0x43e63c(0x102)]]=_0x28c9a9[_0x43e63c(0x196)]||'',_0x1422a6[TestFrameworkConstants[_0x43e63c(0x14f)]]=_0x28c9a9[_0x43e63c(0x182)]):_0x1422a6[TestFrameworkConstants[_0x43e63c(0x1aa)]]=_0x4836ac[_0x43e63c(0x134)];_0x4836ac[_0x43e63c(0x19b)](_0x5358e8,TestFrameworkConstants[_0x43e63c(0x1c2)])&&(_0x1422a6[TestFrameworkConstants[_0x43e63c(0x1aa)]]=_0x5358e8);_0x1422a6[TestFrameworkConstants[_0x43e63c(0x17d)]]=_0x28c9a9[_0x43e63c(0x14d)]||new Date()[_0x43e63c(0x11a)](),_0x1422a6[TestFrameworkConstants[_0x43e63c(0x11e)]]=_0x592e03;const _0x578b4e=_0x1422a6[TestFrameworkConstants[_0x43e63c(0x1c6)]];!_0x72ad76[_0x1bc00c]&&(_0x72ad76[_0x1bc00c]=[]),_0x72ad76[_0x1bc00c]['push'](_0x1422a6),_0x307afa[_0x657f6a][TestFrameworkConstants[_0x43e63c(0x115)]]=_0x1bc00c;}}}return logger[_0x43e63c(0x191)]('Tracked\x20cucumber\x20hook\x20event:\x20'+_0x28c9a9['hook_type']+'\x20with\x20id\x20'+_0x5afa37+'\x20for\x20test:\x20'+_0x657f6a),_0x307afa;}[a95_0x214207(0x138)](_0x117bf5){const _0x1392e5=a95_0x214207,_0x396c14={};_0x396c14[_0x1392e5(0x122)]=_0x1392e5(0x10e);const _0x2ef1ff=_0x396c14;try{const _0x49f44f=_0x117bf5['test']?_0x117bf5[_0x1392e5(0x17a)]['id']:_0x117bf5[_0x1392e5(0x18d)][_0x1392e5(0x1b5)],_0x51e254=_0x117bf5[_0x1392e5(0x15b)],_0x1b56ec=_0x51e254[_0x1392e5(0x1b0)](),_0x2c56b7=_0x51e254[_0x1392e5(0x1b8)]()[_0x1392e5(0x124)](_0x49f44f);if(!_0x2c56b7)return logger[_0x1392e5(0x191)](_0x1392e5(0x14b)+_0x49f44f),{};logger['debug'](_0x1392e5(0x12a)+_0x49f44f);const {[TestFrameworkConstants[_0x1392e5(0x105)]]:_0x7e346c='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x525d65='',[TestFrameworkConstants[_0x1392e5(0x1a1)]]:_0x5e6000='',[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x3bba5d=''}=_0x2c56b7,_0x4b3109=_0x51e254[_0x1392e5(0x1c8)]()[_0x1392e5(0x18f)]()[_0x1392e5(0x1b2)]('.')[0x1],_0x51a6d7=_0x51e254[_0x1392e5(0x106)]()['toString']()[_0x1392e5(0x1b2)]('.')[0x1],_0x527514=global?.['browserstackPlatformIndex']??0x0,_0xc93340=_0x51e254[_0x1392e5(0x160)](),_0x3876ec=Buffer[_0x1392e5(0x166)](JSON['stringify'](_0x2c56b7))['toString'](_0x2ef1ff[_0x1392e5(0x122)]),_0x57dba4={'hash':_0x1b56ec[_0x1392e5(0x185)](),'threadId':_0x1b56ec[_0x1392e5(0x18a)]()['toString'](),'processId':_0x1b56ec[_0x1392e5(0x10d)]()[_0x1392e5(0x18f)]()},_0x4a6b6b={};_0x4a6b6b['platformIndex']=_0x527514,_0x4a6b6b[_0x1392e5(0x1bc)]=_0x7e346c,_0x4a6b6b[_0x1392e5(0x121)]=_0x525d65,_0x4a6b6b['testFrameworkState']=_0x4b3109,_0x4a6b6b[_0x1392e5(0x15c)]=_0x51a6d7,_0x4a6b6b[_0x1392e5(0x13b)]=_0x5e6000,_0x4a6b6b['endedAt']=_0x3bba5d,_0x4a6b6b[_0x1392e5(0x10f)]=_0xc93340,_0x4a6b6b[_0x1392e5(0x1a3)]=_0x3876ec,_0x4a6b6b[_0x1392e5(0x177)]=_0x57dba4;const _0x320af6=_0x4a6b6b;return logger['debug'](_0x1392e5(0x183)+_0x49f44f+'\x20testState:\x20'+_0x4b3109+_0x1392e5(0x195)+_0x51a6d7),_0x320af6;}catch(_0x480572){return logger[_0x1392e5(0x16b)](_0x1392e5(0x188)+util['format'](_0x480572)),{};}}async[a95_0x214207(0x139)](_0xdf2999,_0x216725,_0x11050f){const _0x4623ae=a95_0x214207,_0x223c4a={'YhsiC':function(_0x5d71f4,_0x39f02a,_0x106aa6){return _0x5d71f4(_0x39f02a,_0x106aa6);},'XAcIw':function(_0x2d0f4f,_0x5beadc){return _0x2d0f4f===_0x5beadc;},'mrdxE':_0x4623ae(0x13c),'zaNPc':function(_0x3b9afe,_0x54685a){return _0x3b9afe/_0x54685a;},'gIpEy':function(_0x4c822f,_0x466b7d){return _0x4c822f<_0x466b7d;},'DsWUD':function(_0x13b9c3,_0x143223){return _0x13b9c3*_0x143223;},'Hhiqk':function(_0x4e6ab4,_0x16419){return _0x4e6ab4+_0x16419;},'YXLmE':function(_0xfc2cfa,_0xfb083c){return _0xfc2cfa+_0xfb083c;},'cnvIC':_0x4623ae(0x19d)};try{const _0x10f595=_0x11050f['testUUID'],_0x4d12bf=_0xdf2999[_0x4623ae(0x1b8)]()[_0x4623ae(0x124)](_0x10f595),{[TestFrameworkConstants[_0x4623ae(0x105)]]:_0x46a2a6='',[TestFrameworkConstants[_0x4623ae(0x1cf)]]:_0x223445=''}=_0x4d12bf,_0x27eb48=TestInfo[_0x4623ae(0x104)](_0x10f595),_0x5e8b66=TestInfo[_0x4623ae(0x1ac)](_0x10f595)[TestFrameworkConstants[_0x4623ae(0x108)]]||{},_0x3b3916=_0x223c4a[_0x4623ae(0x16f)](getMediaArtifactsLogs,_0x5e8b66,_0xdf2999[_0x4623ae(0x1b8)]()[_0x4623ae(0x124)](_0x10f595)[TestFrameworkConstants['KEY_TEST_UUID']]),_0x5976ab=(_0x27eb48||[])[_0x4623ae(0x158)](_0x3b3916||[]);if(!_0x5976ab||_0x223c4a[_0x4623ae(0x10b)](_0x5976ab[_0x4623ae(0x197)],0x0)){logger[_0x4623ae(0x191)](_0x223c4a['mrdxE']);return;}const _0x1019d3=0x28,_0x43ace8=Math[_0x4623ae(0x123)](_0x223c4a[_0x4623ae(0x12f)](_0x5976ab[_0x4623ae(0x197)],_0x1019d3));for(let _0x2e7c95=0x0;_0x223c4a[_0x4623ae(0x15d)](_0x2e7c95,_0x43ace8);_0x2e7c95++){const _0x19619b=_0x223c4a['DsWUD'](_0x2e7c95,_0x1019d3),_0x2586dd=_0x223c4a[_0x4623ae(0x1a5)](_0x19619b,_0x1019d3),_0x2cfdbf=_0x5976ab[_0x4623ae(0x1ce)](_0x19619b,_0x2586dd),_0x1cfc14={'platformIndex':global?.['browserstackPlatformIndex']??0x0,'logs':_0x2cfdbf,'testFrameworkName':_0x46a2a6,'testFrameworkVersion':_0x223445,'testFrameworkState':_0x216725[_0x4623ae(0x18f)]()[_0x4623ae(0x1b2)]('.')[0x1]};logger[_0x4623ae(0x191)](_0x4623ae(0x19a)+_0x10f595+_0x4623ae(0x167)+_0x223c4a[_0x4623ae(0x1a5)](_0x2e7c95,0x1)+'/'+_0x43ace8+'\x20payload='+util[_0x4623ae(0x120)](_0x1cfc14));const _0x4042df=await GrpcClient[_0x4623ae(0x143)]()[_0x4623ae(0x16e)](_0x1cfc14);logger['debug'](_0x4623ae(0x19a)+_0x10f595+_0x4623ae(0x167)+_0x223c4a[_0x4623ae(0x186)](_0x2e7c95,0x1)+'/'+_0x43ace8+'\x20response='+util[_0x4623ae(0x120)](_0x4042df));}}catch(_0x27b51f){logger['error'](_0x4623ae(0x163)+util[_0x4623ae(0x17b)](_0x27b51f));}logger[_0x4623ae(0x191)](_0x223c4a['cnvIC']);}[a95_0x214207(0x127)](_0x4880d8,_0x1f2a06,_0x43fd0d,_0x576273,_0x184652){const _0x15b5fb=a95_0x214207,_0x2734c1={'testId':_0x1f2a06,'testFrameworkState':_0x43fd0d,'hookState':_0x576273,'args':_0x184652,'timestamp':new Date()[_0x15b5fb(0x11a)]()};_0x4880d8['addPendingHook'](_0x1f2a06,_0x2734c1),logger[_0x15b5fb(0x191)](_0x15b5fb(0x128)+_0x1f2a06+_0x15b5fb(0x148)+_0x43fd0d+_0x15b5fb(0x1c5)+_0x576273);}async[a95_0x214207(0x1c7)](_0x2c394b,_0x194874){const _0x5cf46c=a95_0x214207,_0x4efde5={};_0x4efde5['EzZuM']=function(_0xd014ef,_0x21a141){return _0xd014ef>_0x21a141;};const _0x5ef0f8=_0x4efde5;if(!_0x2c394b[_0x5cf46c(0x198)](_0x194874))return;const _0x57091b=_0x2c394b[_0x5cf46c(0x10c)](_0x194874);logger[_0x5cf46c(0x191)](_0x5cf46c(0x149)+_0x57091b['length']+_0x5cf46c(0x119)+_0x194874);for(const _0x3810ef of _0x57091b){try{const _0x285158=await this['trackHookEvent'](_0x2c394b,_0x3810ef[_0x5cf46c(0x15e)],_0x3810ef[_0x5cf46c(0x15c)],_0x3810ef['args']);_0x285158&&_0x5ef0f8[_0x5cf46c(0x17f)](Object[_0x5cf46c(0x155)](_0x285158)['length'],0x0)&&_0x2c394b[_0x5cf46c(0x1b3)](_0x285158),await this['runHooks'](_0x2c394b,_0x3810ef[_0x5cf46c(0x15e)],_0x3810ef['hookState'],_0x3810ef[_0x5cf46c(0x161)]);}catch(_0x2b52e6){logger[_0x5cf46c(0x16b)](_0x5cf46c(0x194)+_0x194874+_0x5cf46c(0x111)+_0x2b52e6);}}_0x2c394b[_0x5cf46c(0x142)](_0x194874),logger[_0x5cf46c(0x191)](_0x5cf46c(0x11c)+_0x194874);}}function a95_0x1fcc(_0x2f5e4c,_0x21e405){const _0x18d8de=a95_0x18d8();return a95_0x1fcc=function(_0x1fcc79,_0x4738b0){_0x1fcc79=_0x1fcc79-0x101;let _0x37245d=_0x18d8de[_0x1fcc79];return _0x37245d;},a95_0x1fcc(_0x2f5e4c,_0x21e405);}module[a95_0x214207(0x125)]=CucumberTestFramework;
1
+ const a95_0x44ba04=a95_0x2974;(function(_0x26ff4a,_0x4da81e){const _0x369b7d=a95_0x2974,_0x1504a2=_0x26ff4a();while(!![]){try{const _0x2549ef=parseInt(_0x369b7d(0x136))/0x1+parseInt(_0x369b7d(0x156))/0x2+parseInt(_0x369b7d(0xcc))/0x3+parseInt(_0x369b7d(0x14b))/0x4+parseInt(_0x369b7d(0xff))/0x5*(-parseInt(_0x369b7d(0x134))/0x6)+parseInt(_0x369b7d(0xd8))/0x7+parseInt(_0x369b7d(0x126))/0x8*(-parseInt(_0x369b7d(0xf3))/0x9);if(_0x2549ef===_0x4da81e)break;else _0x1504a2['push'](_0x1504a2['shift']());}catch(_0x2ac7c2){_0x1504a2['push'](_0x1504a2['shift']());}}}(a95_0x15ed,0xe42e8));const TestFramework=require(a95_0x44ba04(0x11d)),TestFrameworkState=require(a95_0x44ba04(0x183)),HookState=require(a95_0x44ba04(0x120)),{createClassLogger}=require(a95_0x44ba04(0x11c)),TestFrameworkInstance=require('../instances/testFrameworkInstance.js'),CLIUtils=require(a95_0x44ba04(0x116)),TrackedInstance=require(a95_0x44ba04(0x13a)),TestFrameworkConstants=require(a95_0x44ba04(0x171)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a95_0x44ba04(0x123)),logger=createClassLogger(a95_0x44ba04(0x169)),{v4:uuidv4}=require(a95_0x44ba04(0x15a)),util=require(a95_0x44ba04(0xfe)),TestInfo=require('../TestInfo.js'),GrpcClient=require(a95_0x44ba04(0xeb));function a95_0x2974(_0x562f22,_0x5a5d40){const _0x15ed61=a95_0x15ed();return a95_0x2974=function(_0x297405,_0x3d2e28){_0x297405=_0x297405-0xc4;let _0x17c7b7=_0x15ed61[_0x297405];return _0x17c7b7;},a95_0x2974(_0x562f22,_0x5a5d40);}class CucumberTestFramework extends TestFramework{constructor(_0xc08b12,_0x4a17ce,_0x2e814f){super(_0xc08b12,_0x4a17ce,_0x2e814f);}async[a95_0x44ba04(0xc8)](_0x588b68,_0x3e1f46,_0x4ae62f={}){const _0x239da9=a95_0x44ba04,_0x126fd6={};_0x126fd6['Vacig']=_0x239da9(0xfd),_0x126fd6['dUoLr']=function(_0x4c6970,_0x8d79c3){return _0x4c6970===_0x8d79c3;},_0x126fd6[_0x239da9(0xf9)]=function(_0x2b7edc,_0x892029){return _0x2b7edc===_0x892029;},_0x126fd6['xhtoq']=function(_0x4c9f83,_0x5f4f57){return _0x4c9f83===_0x5f4f57;},_0x126fd6[_0x239da9(0x17d)]=_0x239da9(0x17f);const _0x5d2180=_0x126fd6;await super[_0x239da9(0xc8)](_0x588b68,_0x3e1f46,_0x4ae62f);const _0x62e737=this[_0x239da9(0x15d)](_0x588b68,_0x3e1f46,_0x4ae62f);if(!_0x62e737){logger[_0x239da9(0x157)](_0x5d2180[_0x239da9(0xd5)]);return;}try{let _0x2b902c,_0x4c690c;switch(_0x588b68){case TestFrameworkState['TEST']:_0x2b902c=_0x4ae62f[_0x239da9(0x181)],_0x4c690c=TestInfo[_0x239da9(0xdb)](_0x2b902c['id']);if(_0x5d2180['dUoLr'](_0x3e1f46,HookState[_0x239da9(0xf7)])){logger[_0x239da9(0x157)](_0x239da9(0x133)+_0x2b902c['id']);const _0x22d13f={};_0x22d13f[_0x239da9(0x176)]=_0x4c690c,_0x22d13f[_0x239da9(0x179)]=_0x2b902c,_0x62e737[_0x239da9(0xd6)](this['parseCucumberTest'](_0x22d13f)),logger[_0x239da9(0x157)](_0x239da9(0x113)+_0x2b902c['id']),await this[_0x239da9(0x170)](_0x62e737,_0x2b902c['id']);}else{if(_0x5d2180[_0x239da9(0xf9)](_0x3e1f46,HookState['POST'])){const _0x4a1a30={};_0x4a1a30[_0x239da9(0x176)]=_0x4c690c,_0x4a1a30[_0x239da9(0x179)]=_0x2b902c,_0x62e737[_0x239da9(0xd6)](this[_0x239da9(0xe8)](_0x4a1a30)),await this[_0x239da9(0x170)](_0x62e737,_0x2b902c['id']);}}break;case TestFrameworkState[_0x239da9(0x160)]:_0x5d2180[_0x239da9(0x12d)](_0x3e1f46,HookState['POST'])&&await this[_0x239da9(0xe2)](_0x62e737,_0x588b68,_0x4ae62f);break;default:if(CLIUtils[_0x239da9(0x114)](_0x588b68[_0x239da9(0x124)]()[_0x239da9(0x125)]('.')[0x1])){const _0x38511b=await this['trackHookEvent'](_0x62e737,_0x588b68,_0x3e1f46,_0x4ae62f);_0x62e737[_0x239da9(0xd6)](_0x38511b);}else logger[_0x239da9(0x157)](_0x239da9(0x174)+_0x588b68+_0x239da9(0x11a)+_0x3e1f46);break;}}catch(_0x2f2a06){logger[_0x239da9(0xce)](util[_0x239da9(0x145)](_0x5d2180[_0x239da9(0x17d)],_0x588b68,_0x3e1f46,_0x4ae62f['length'],_0x2f2a06));}_0x4ae62f['instance']=_0x62e737,await this[_0x239da9(0xf1)](_0x62e737,_0x588b68,_0x3e1f46,_0x4ae62f);}[a95_0x44ba04(0x15d)](_0x1c6096,_0x206dcb,_0x4f3f74={}){const _0x18cede=a95_0x44ba04,_0x423736={};_0x423736[_0x18cede(0x150)]=function(_0x483d98,_0x4ed04b){return _0x483d98===_0x4ed04b;};const _0x533c42=_0x423736;let _0x54404f=null;return(_0x533c42[_0x18cede(0x150)](_0x1c6096,TestFrameworkState[_0x18cede(0x105)])||_0x533c42['HCySi'](_0x1c6096,TestFrameworkState['NONE']))&&this[_0x18cede(0x138)](_0x1c6096,_0x4f3f74),_0x54404f=TestFramework[_0x18cede(0x15b)](),_0x54404f;}[a95_0x44ba04(0x138)](_0x5cc623,_0xfb564){const _0xbb1021=a95_0x44ba04,_0x22a872=CLIUtils[_0xbb1021(0xec)](),_0x2682be=TrackedInstance[_0xbb1021(0x121)](_0x22a872);let _0x20b4b9=null;logger['debug']('trackCucumberInstance:\x20created\x20instance\x20for\x20target='+_0x22a872+',\x20state='+_0x5cc623),_0x20b4b9=new TestFrameworkInstance(_0x2682be,this['getTestFrameworks'](),this[_0xbb1021(0x168)](),_0x5cc623,HookState['NONE']),TestFramework[_0xbb1021(0x12f)](_0x2682be,_0x20b4b9),logger['debug'](_0xbb1021(0x139)+_0x2682be[_0xbb1021(0xed)]()+_0xbb1021(0x164)+_0x22a872);}[a95_0x44ba04(0x108)](_0x40865b){const _0x190bfa=a95_0x44ba04,_0x5f0da7={};_0x5f0da7[_0x190bfa(0xf6)]='No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test';const _0x57a665=_0x5f0da7,{testUUID:_0x3b428f,testData:_0x1120aa}=_0x40865b;if(!_0x1120aa||!_0x1120aa[_0x190bfa(0x15a)])return logger[_0x190bfa(0x157)](_0x57a665[_0x190bfa(0xf6)]),{};const _0x554c22=_0x3b428f,_0x417e9f=_0x1120aa[_0x190bfa(0x15a)],_0x4f4f2d=this[_0x190bfa(0x101)]()[0x0],_0x746527=this[_0x190bfa(0x168)](),_0x5e4b26={[TestFrameworkConstants[_0x190bfa(0x189)]]:_0x4f4f2d,[TestFrameworkConstants[_0x190bfa(0x11b)]]:_0x746527[_0x4f4f2d],[TestFrameworkConstants[_0x190bfa(0x13d)]]:[],[TestFrameworkConstants[_0x190bfa(0x163)]]:{},[TestFrameworkConstants[_0x190bfa(0xf8)]]:{},[TestFrameworkConstants[_0x190bfa(0x10c)]]:_0x554c22,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants[_0x190bfa(0x10d)],[TestFrameworkConstants[_0x190bfa(0x127)]]:_0x1120aa[_0x190bfa(0xcb)]||'',[TestFrameworkConstants[_0x190bfa(0xc5)]]:_0x1120aa[_0x190bfa(0xdc)]||'',[TestFrameworkConstants['KEY_TEST_ID']]:_0x417e9f,[TestFrameworkConstants[_0x190bfa(0x178)]]:_0x1120aa[_0x190bfa(0xcb)]||'',[TestFrameworkConstants['KEY_TEST_LOCATION']]:_0x1120aa[_0x190bfa(0xe0)]||'',[TestFrameworkConstants[_0x190bfa(0xe9)]]:_0x1120aa[_0x190bfa(0x14e)]?.['code']||null,[TestFrameworkConstants[_0x190bfa(0x151)]]:_0x1120aa[_0x190bfa(0xfc)]||[],[TestFrameworkConstants[_0x190bfa(0x173)]]:_0x1120aa[_0x190bfa(0xe1)]||new Date()[_0x190bfa(0x112)](),[TestFrameworkConstants[_0x190bfa(0xe7)]]:_0x1120aa[_0x190bfa(0x119)]?.[0x0]||'',[TestFrameworkConstants[_0x190bfa(0x17a)]]:_0x1120aa[_0x190bfa(0x119)]||[],[TestFrameworkConstants[_0x190bfa(0xd1)]]:_0x1120aa[_0x190bfa(0x141)]?.[_0x190bfa(0xf0)]||_0x1120aa[_0x190bfa(0xcb)]||'',[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:{},[TestFrameworkConstants[_0x190bfa(0x106)]]:_0x1120aa[_0x190bfa(0x146)]||{}};TestInfo[_0x190bfa(0xe4)](_0x417e9f,_0x5e4b26),logger[_0x190bfa(0x157)]('Parsed\x20cucumber\x20test:\x20'+_0x1120aa[_0x190bfa(0xcb)]+_0x190bfa(0xe6)+_0x554c22);const _0x54110b={};return _0x54110b[_0x417e9f]=_0x5e4b26,_0x54110b;}['parseCucumberTestResult'](_0x1a9b90){const _0x111344=a95_0x44ba04,_0x232fd2={'IeVhE':_0x111344(0x15f),'eBPIe':_0x111344(0x148),'PTJsd':function(_0x2faa78,_0x2ec6a0){return _0x2faa78===_0x2ec6a0;},'fZGJF':_0x111344(0x184),'nKTSw':'UnhandledError','xytkQ':function(_0x35ca97,_0x720739,_0xebf7f2){return _0x35ca97(_0x720739,_0xebf7f2);},'ijbSJ':function(_0x2db166,_0x1dae5e){return _0x2db166>_0x1dae5e;},'LzEAY':function(_0x5a8c4f,_0x18526f){return _0x5a8c4f>_0x18526f;}},{testUUID:_0x47121e,testData:_0x1c2233}=_0x1a9b90;if(!_0x1c2233||!_0x1c2233[_0x111344(0x15a)])return logger[_0x111344(0x157)](_0x232fd2[_0x111344(0x142)]),{};const _0x274e0d=this[_0x111344(0x15d)](TestFrameworkState[_0x111344(0xd7)],HookState['POST']),_0x5aac23=_0x1c2233[_0x111344(0x15a)],_0x58b5c1=TestInfo[_0x111344(0x175)](_0x5aac23)||{},_0xd1a88a=_0x58b5c1?_0x58b5c1[TestFrameworkConstants[_0x111344(0xd0)]]||{}:{},_0x4e7159={..._0x58b5c1,[TestFrameworkConstants[_0x111344(0xda)]]:_0x1c2233[_0x111344(0xd4)]||_0x232fd2[_0x111344(0x130)],[TestFrameworkConstants[_0x111344(0x13c)]]:_0x1c2233['finishedAt']||new Date()[_0x111344(0x112)](),[TestFrameworkConstants[_0x111344(0x186)]]:new Date()['toISOString'](),[TestFrameworkConstants[_0x111344(0xd0)]]:_0xd1a88a,[TestFrameworkConstants[_0x111344(0x16d)]]:[],[TestFrameworkConstants[_0x111344(0x106)]]:_0x1c2233[_0x111344(0x146)]||{}};_0x232fd2[_0x111344(0x187)](_0x1c2233[_0x111344(0xd4)],_0x232fd2[_0x111344(0xdd)])&&_0x1c2233[_0x111344(0x17b)]&&(_0x4e7159[TestFrameworkConstants[_0x111344(0xfa)]]=_0x1c2233[_0x111344(0xca)]||_0x232fd2['nKTSw'],_0x4e7159[TestFrameworkConstants['KEY_TEST_FAILURE_REASON']]=_0x1c2233[_0x111344(0x149)]||'',_0x4e7159[TestFrameworkConstants[_0x111344(0x131)]]=_0x1c2233[_0x111344(0x17b)]);const _0x208456=TestInfo[_0x111344(0x175)](_0x5aac23)[TestFrameworkConstants[_0x111344(0xdf)]]||{},_0x565397=_0x232fd2['xytkQ'](getManualUploadLogs,_0x208456,_0x274e0d[_0x111344(0x177)]()[_0x111344(0xcd)](_0x5aac23)[TestFrameworkConstants[_0x111344(0x10c)]]);if(_0x232fd2[_0x111344(0x13b)](_0x565397[_0x111344(0xcf)],0x0)){const _0x30038f=_0x4e7159[TestFrameworkConstants['KEY_LOGS']]||[];_0x4e7159[TestFrameworkConstants['KEY_LOGS']]=[..._0x30038f,..._0x565397];}_0x1c2233[_0x111344(0x182)]&&_0x232fd2['LzEAY'](_0x1c2233[_0x111344(0x182)][_0x111344(0xcf)],0x0)&&(_0x4e7159[TestFrameworkConstants[_0x111344(0x163)]]=_0x1c2233[_0x111344(0x182)]);TestInfo['setTestDetails'](_0x5aac23,_0x4e7159),logger[_0x111344(0x157)]('Updated\x20cucumber\x20test\x20result:\x20'+_0x1c2233['name']+_0x111344(0x11e)+_0x1c2233['result']);const _0x2ae9cd={};return _0x2ae9cd[_0x5aac23]=_0x4e7159,_0x2ae9cd;}async[a95_0x44ba04(0x155)](_0x1fc68e,_0x39472d,_0x29e8ee,_0x3cdb96){const _0xfa219d=a95_0x44ba04,_0x34fa55={'ICIWF':_0xfa219d(0x147),'mgFPL':function(_0x398c58){return _0x398c58();},'cYAzi':function(_0xe94daf,_0x2ac5f2){return _0xe94daf in _0x2ac5f2;},'PKzTD':function(_0x295f34,_0x3a9091){return _0x295f34===_0x3a9091;},'btiqx':function(_0x1a6d4f,_0x374eac){return _0x1a6d4f>_0x374eac;},'wJqcX':function(_0x5b4a54,_0x102042){return _0x5b4a54===_0x102042;},'Tpwfd':_0xfa219d(0x184),'abixI':'UnhandledError','UoupS':_0xfa219d(0x158),'FTwzo':function(_0x1b950c,_0x1dadad){return _0x1b950c!==_0x1dadad;}},{hookData:_0x13545f}=_0x3cdb96;if(!_0x13545f)return logger[_0xfa219d(0x157)](_0x34fa55[_0xfa219d(0x12a)]),{};const _0x4640d3=_0x13545f[_0xfa219d(0x15a)]||_0x34fa55['mgFPL'](uuidv4),_0x4d9248=_0x13545f[_0xfa219d(0x15c)],_0x3bfd59=_0x39472d['toString']()[_0xfa219d(0x125)]('.')[0x1],_0x244d97=TestInfo['getTestDetails'](_0x4d9248)[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{},_0x332769=_0x1fc68e[_0xfa219d(0x177)]()[_0xfa219d(0xcd)](_0x4d9248);if(!_0x332769)return logger['debug'](_0xfa219d(0xee)+_0x4d9248+_0xfa219d(0x132)),this['storePendingHook'](_0x1fc68e,_0x4d9248,_0x39472d,_0x29e8ee,_0x3cdb96),{};let _0x1c9efe=_0x332769[TestFrameworkConstants[_0xfa219d(0xf8)]];!_0x1c9efe&&(_0x1c9efe={});!_0x34fa55[_0xfa219d(0xde)](_0x3bfd59,_0x1c9efe)&&(_0x1c9efe[_0x3bfd59]=[]);let _0xbc98d0=_0x332769[TestFrameworkConstants[_0xfa219d(0x163)]];!_0xbc98d0&&(_0xbc98d0={});!_0x34fa55['cYAzi'](_0x3bfd59,_0xbc98d0)&&(_0xbc98d0[_0x3bfd59]=[]);const _0x34c70c={[TestFrameworkConstants[_0xfa219d(0xf8)]]:_0x1c9efe,[TestFrameworkConstants[_0xfa219d(0x163)]]:_0xbc98d0},_0xcc52c9={};_0xcc52c9[_0x4d9248]=_0x34c70c;const _0x530e88=_0xcc52c9;if(_0x34fa55[_0xfa219d(0x129)](_0x29e8ee,HookState['PRE'])){const _0x52fca5={[TestFrameworkConstants[_0xfa219d(0x137)]]:_0x4640d3,[TestFrameworkConstants['KEY_HOOK_RESULT']]:TestFrameworkConstants['DEFAULT_HOOK_RESULT'],[TestFrameworkConstants[_0xfa219d(0x13f)]]:_0x13545f[_0xfa219d(0x14c)],[TestFrameworkConstants['KEY_HOOK_LOGS']]:[],[TestFrameworkConstants[_0xfa219d(0x115)]]:_0x13545f[_0xfa219d(0xcb)]||_0x13545f[_0xfa219d(0x100)],[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x244d97};_0x52fca5[_0xfa219d(0x14d)]=_0x3bfd59;const _0xf3a38b=_0x52fca5;_0x1c9efe[_0x3bfd59][_0xfa219d(0x144)](_0xf3a38b),_0x530e88[_0x4d9248][TestFrameworkConstants[_0xfa219d(0x128)]]=_0x3bfd59,logger[_0xfa219d(0x157)]('trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20'+_0x3bfd59+_0xfa219d(0xf2)+_0xf3a38b+'\x20\x20and\x20args\x20=\x20'+_0x3cdb96);}else{if(_0x34fa55[_0xfa219d(0x129)](_0x29e8ee,HookState['POST'])){const _0x259b37=_0x13545f[_0xfa219d(0xd4)],_0x15d3ce=_0x1c9efe[_0x3bfd59]||[];logger[_0xfa219d(0x157)](_0xfa219d(0xc7)+_0x15d3ce+'\x20and\x20args\x20=\x20'+_0x3cdb96);if(_0x34fa55[_0xfa219d(0x10e)](_0x15d3ce[_0xfa219d(0xcf)],0x0)){const _0x42e88d=_0x15d3ce['pop']();_0x34fa55['wJqcX'](_0x13545f['result'],_0x34fa55[_0xfa219d(0xea)])&&_0x13545f[_0xfa219d(0x12e)]?(_0x42e88d[TestFrameworkConstants['KEY_HOOK_FAILURE_TYPE']]=_0x13545f[_0xfa219d(0xca)]||_0x34fa55['abixI'],_0x42e88d[TestFrameworkConstants[_0xfa219d(0x16c)]]=_0x13545f['failure_reason']||'',_0x42e88d[TestFrameworkConstants['KEY_HOOK_FAILURE']]=_0x13545f[_0xfa219d(0x12e)]):_0x42e88d[TestFrameworkConstants[_0xfa219d(0x162)]]=_0x34fa55['UoupS'];_0x34fa55['FTwzo'](_0x259b37,TestFrameworkConstants[_0xfa219d(0xd3)])&&(_0x42e88d[TestFrameworkConstants[_0xfa219d(0x162)]]=_0x259b37);_0x42e88d[TestFrameworkConstants[_0xfa219d(0x152)]]=_0x13545f[_0xfa219d(0x12b)]||new Date()['toISOString'](),_0x42e88d[TestFrameworkConstants[_0xfa219d(0xd0)]]=_0x244d97;const _0xb391f4=_0x42e88d[TestFrameworkConstants[_0xfa219d(0x137)]];!_0xbc98d0[_0x3bfd59]&&(_0xbc98d0[_0x3bfd59]=[]),_0xbc98d0[_0x3bfd59][_0xfa219d(0x144)](_0x42e88d),_0x530e88[_0x4d9248][TestFrameworkConstants['KEY_HOOK_LAST_FINISHED']]=_0x3bfd59;}}}return logger['debug'](_0xfa219d(0x159)+_0x13545f['hook_type']+_0xfa219d(0xc6)+_0x4640d3+_0xfa219d(0x16b)+_0x4d9248),_0x530e88;}[a95_0x44ba04(0x104)](_0x2c1ae9){const _0x4d4845=a95_0x44ba04,_0x36ff3b={};_0x36ff3b[_0x4d4845(0x143)]=_0x4d4845(0x167);const _0x56c340=_0x36ff3b;try{const _0xf4ab00=_0x2c1ae9[_0x4d4845(0x181)]?_0x2c1ae9[_0x4d4845(0x181)]['id']:_0x2c1ae9[_0x4d4845(0x12c)][_0x4d4845(0x15c)],_0x81d11b=_0x2c1ae9[_0x4d4845(0x166)],_0x20e944=_0x81d11b['getContext'](),_0x2959c4=_0x81d11b[_0x4d4845(0x177)]()['get'](_0xf4ab00);if(!_0x2959c4)return logger[_0x4d4845(0x157)](_0x4d4845(0x118)+_0xf4ab00),{};logger[_0x4d4845(0x157)]('createTestFrameworkEventPayload\x20testId:\x20'+_0xf4ab00);const {[TestFrameworkConstants[_0x4d4845(0x189)]]:_0x554650='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x19a336='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x5421b='',[TestFrameworkConstants[_0x4d4845(0x13c)]]:_0x4b37c6=''}=_0x2959c4,_0x1c5289=_0x81d11b['getCurrentTestState']()[_0x4d4845(0x124)]()[_0x4d4845(0x125)]('.')[0x1],_0x4eb114=_0x81d11b['getCurrentHookState']()[_0x4d4845(0x124)]()['split']('.')[0x1],_0x3883df=global?.[_0x4d4845(0xc9)]??0x0,_0x3ff791=_0x81d11b[_0x4d4845(0x10f)](),_0xbd67cc=Buffer[_0x4d4845(0x172)](JSON[_0x4d4845(0x11f)](_0x2959c4))[_0x4d4845(0x124)](_0x56c340[_0x4d4845(0x143)]),_0x57ba83={'hash':_0x20e944['getId'](),'threadId':_0x20e944[_0x4d4845(0x165)]()['toString'](),'processId':_0x20e944[_0x4d4845(0x107)]()[_0x4d4845(0x124)]()},_0x36bc7e={};_0x36bc7e[_0x4d4845(0x10b)]=_0x3883df,_0x36bc7e['testFrameworkName']=_0x554650,_0x36bc7e[_0x4d4845(0xef)]=_0x19a336,_0x36bc7e[_0x4d4845(0xe3)]=_0x1c5289,_0x36bc7e[_0x4d4845(0x140)]=_0x4eb114,_0x36bc7e[_0x4d4845(0xe1)]=_0x5421b,_0x36bc7e['endedAt']=_0x4b37c6,_0x36bc7e[_0x4d4845(0x15a)]=_0x3ff791,_0x36bc7e[_0x4d4845(0x17c)]=_0xbd67cc,_0x36bc7e[_0x4d4845(0x122)]=_0x57ba83;const _0x1caec7=_0x36bc7e;return logger[_0x4d4845(0x157)](_0x4d4845(0x161)+_0xf4ab00+'\x20testState:\x20'+_0x1c5289+_0x4d4845(0xc4)+_0x4eb114),_0x1caec7;}catch(_0x2192b0){return logger[_0x4d4845(0xce)]('Error\x20in\x20createTestFrameworkEventPayload:\x20'+util[_0x4d4845(0x145)](_0x2192b0)),{};}}async[a95_0x44ba04(0xe2)](_0x38a000,_0x37e5af,_0x307245){const _0x63dabc=a95_0x44ba04,_0x254786={'PhLeY':function(_0x3d0d40,_0x2c5400,_0x140fd8){return _0x3d0d40(_0x2c5400,_0x140fd8);},'vseDN':function(_0x43f8d7,_0x54e4bd){return _0x43f8d7===_0x54e4bd;},'fULRv':_0x63dabc(0x188),'kzPiP':function(_0x422a4c,_0xa44951){return _0x422a4c/_0xa44951;},'NKwDw':function(_0x34dfc2,_0x5a2634){return _0x34dfc2<_0x5a2634;},'sVGyZ':function(_0xd96cca,_0x3c44a3){return _0xd96cca*_0x3c44a3;},'HFCzW':function(_0x376ad4,_0x4b585f){return _0x376ad4+_0x4b585f;},'aGfay':_0x63dabc(0x102)};try{const _0x4cb1fc=_0x307245[_0x63dabc(0x176)],_0x5cfb5c=_0x38a000['getAllData']()[_0x63dabc(0xcd)](_0x4cb1fc),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x551c60='',[TestFrameworkConstants[_0x63dabc(0x11b)]]:_0x3a076b=''}=_0x5cfb5c,_0x45b0c2=TestInfo[_0x63dabc(0xf5)](_0x4cb1fc),_0x2b198d=TestInfo[_0x63dabc(0x175)](_0x4cb1fc)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x18d8f0=_0x254786[_0x63dabc(0x154)](getMediaArtifactsLogs,_0x2b198d,_0x38a000[_0x63dabc(0x177)]()[_0x63dabc(0xcd)](_0x4cb1fc)[TestFrameworkConstants[_0x63dabc(0x10c)]]),_0x473a5a=(_0x45b0c2||[])[_0x63dabc(0x16f)](_0x18d8f0||[]);if(!_0x473a5a||_0x254786['vseDN'](_0x473a5a[_0x63dabc(0xcf)],0x0)){logger[_0x63dabc(0x157)](_0x254786['fULRv']);return;}const _0x29617f=0x28,_0x1dca16=Math[_0x63dabc(0x135)](_0x254786[_0x63dabc(0x16a)](_0x473a5a[_0x63dabc(0xcf)],_0x29617f));for(let _0x31f505=0x0;_0x254786['NKwDw'](_0x31f505,_0x1dca16);_0x31f505++){const _0x5694c2=_0x254786['sVGyZ'](_0x31f505,_0x29617f),_0x519437=_0x254786[_0x63dabc(0x13e)](_0x5694c2,_0x29617f),_0x40f693=_0x473a5a['slice'](_0x5694c2,_0x519437),_0x48783e={'platformIndex':global?.['browserstackPlatformIndex']??0x0,'logs':_0x40f693,'testFrameworkName':_0x551c60,'testFrameworkVersion':_0x3a076b,'testFrameworkState':_0x37e5af[_0x63dabc(0x124)]()[_0x63dabc(0x125)]('.')[0x1]};logger[_0x63dabc(0x157)]('sendLogCreatedEvent:\x20for\x20testId:\x20'+_0x4cb1fc+'\x20batch\x20'+_0x254786[_0x63dabc(0x13e)](_0x31f505,0x1)+'/'+_0x1dca16+_0x63dabc(0xd2)+util[_0x63dabc(0xf4)](_0x48783e));const _0x327137=await GrpcClient['getInstance']()['logCreatedEvent'](_0x48783e);logger[_0x63dabc(0x157)](_0x63dabc(0xe5)+_0x4cb1fc+_0x63dabc(0xfb)+_0x254786['HFCzW'](_0x31f505,0x1)+'/'+_0x1dca16+'\x20response='+util[_0x63dabc(0xf4)](_0x327137));}}catch(_0x218fea){logger['error'](_0x63dabc(0x109)+util[_0x63dabc(0x145)](_0x218fea));}logger[_0x63dabc(0x157)](_0x254786[_0x63dabc(0xd9)]);}[a95_0x44ba04(0x111)](_0x3aa7f3,_0x193345,_0x3c1b1b,_0xf5e603,_0x15f9eb){const _0x24ac95=a95_0x44ba04,_0x3bc9cc={'testId':_0x193345,'testFrameworkState':_0x3c1b1b,'hookState':_0xf5e603,'args':_0x15f9eb,'timestamp':new Date()[_0x24ac95(0x112)]()};_0x3aa7f3[_0x24ac95(0x14f)](_0x193345,_0x3bc9cc),logger['debug']('Stored\x20pending\x20hook\x20for\x20testId:\x20'+_0x193345+',\x20state:\x20'+_0x3c1b1b+_0x24ac95(0x180)+_0xf5e603);}async[a95_0x44ba04(0x170)](_0x20cdf9,_0x17af70){const _0x14479e=a95_0x44ba04,_0x50710d={};_0x50710d['lflTG']=function(_0x5951ca,_0x39053d){return _0x5951ca>_0x39053d;};const _0x28cbf2=_0x50710d;if(!_0x20cdf9[_0x14479e(0x153)](_0x17af70))return;const _0x518887=_0x20cdf9[_0x14479e(0x14a)](_0x17af70);logger[_0x14479e(0x157)](_0x14479e(0x103)+_0x518887[_0x14479e(0xcf)]+'\x20pending\x20hooks\x20for\x20testId:\x20'+_0x17af70);for(const _0x5f4dbb of _0x518887){try{const _0x2c3746=await this[_0x14479e(0x155)](_0x20cdf9,_0x5f4dbb['testFrameworkState'],_0x5f4dbb[_0x14479e(0x140)],_0x5f4dbb['args']);_0x2c3746&&_0x28cbf2[_0x14479e(0x15e)](Object[_0x14479e(0x16e)](_0x2c3746)[_0x14479e(0xcf)],0x0)&&_0x20cdf9[_0x14479e(0xd6)](_0x2c3746),await this['runHooks'](_0x20cdf9,_0x5f4dbb[_0x14479e(0xe3)],_0x5f4dbb['hookState'],_0x5f4dbb[_0x14479e(0x10a)]);}catch(_0x39d5e4){logger['error'](_0x14479e(0x117)+_0x17af70+_0x14479e(0x110)+_0x39d5e4);}}_0x20cdf9[_0x14479e(0x17e)](_0x17af70),logger[_0x14479e(0x157)]('Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20'+_0x17af70);}}module[a95_0x44ba04(0x185)]=CucumberTestFramework;function a95_0x15ed(){const _0x1e993b=['DEFAULT_HOOK_RESULT','result','Vacig','addMultipleEntries','TEST','6320461UZeurv','aGfay','KEY_TEST_RESULT','getTestUUID','file_name','fZGJF','cYAzi','KEY_TEST_ATTACHMENTS','location','startedAt','sendLogCreatedEvent','testFrameworkState','setTestDetails','sendLogCreatedEvent:\x20for\x20testId:\x20','\x20with\x20UUID:\x20','KEY_TEST_SCOPE','parseCucumberTestResult','KEY_TEST_CODE','Tpwfd','../grpcClient','getCurrentInstanceName','getId','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','testFrameworkVersion','rerun_name','runHooks','\x20&\x20hook\x20=\x20','45iPTpAu','inspect','readLogObjects','zDLCK','PRE','KEY_HOOKS_STARTED','MwKCw','KEY_TEST_FAILURE_TYPE','\x20batch\x20','tags','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','util','458310CoHotb','hook_type','getTestFrameworks','Cucumber\x20log\x20created\x20event','Processing\x20','createTestFrameworkEventPayload','INIT_TEST','KEY_TEST_META','getProcessId','parseCucumberTest','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','args','platformIndex','KEY_TEST_UUID','DEFAULT_TEST_RESULT','btiqx','getRef',',\x20error:\x20','storePendingHook','toISOString','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','matchHookRegex','KEY_HOOK_NAME','../cliUtils.js','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','scopes','\x20&\x20hookState=','KEY_TEST_FRAMEWORK_VERSION','../../../helpers/classLogger.js','./testFramework','\x20with\x20result:\x20','stringify','../state/hookState.js','createContext','executionContext','../../../helpers/helper.js','toString','split','3652096hhGDSx','KEY_AUTOMATE_SESSION_NAME','KEY_HOOK_LAST_STARTED','PKzTD','ICIWF','finished_at','hookData','xhtoq','failure_data','setTrackedInstance','eBPIe','KEY_TEST_FAILURE',',\x20storing\x20as\x20pending\x20hook','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','42oSgvuG','ceil','538426DvmSTP','KEY_HOOK_ID','trackCucumberInstance','trackCucumberInstance:\x20saved\x20instance\x20contextId=','../instances/trackedInstance.js','ijbSJ','KEY_TEST_ENDED_AT','KEY_TEST_LOGS','HFCzW','KEY_EVENT_STARTED_AT','hookState','customRerunParam','IeVhE','BHEOQ','push','format','meta','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','unknown','failure_reason','getPendingHooks','3371368ysNsHk','started_at','key','body','addPendingHook','HCySi','KEY_TEST_TAGS','KEY_EVENT_ENDED_AT','hasPendingHooks','PhLeY','trackHookEvent','1128290dJAJzK','debug','passed','Tracked\x20cucumber\x20hook\x20event:\x20','uuid','getTrackedInstance','test_run_id','resolveInstance','lflTG','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','LOG_REPORT','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','KEY_HOOK_RESULT','KEY_HOOKS_FINISHED','\x20target=','getThreadId','instance','base64','getTestFrameworksVersions','CucumberTestFramework','kzPiP','\x20for\x20test:\x20','KEY_HOOK_FAILURE_REASON','KEY_LOGS','keys','concat','processPendingHooks','./constants/testFrameworkConstants.js','from','KEY_TEST_STARTED_AT','trackEvent:\x20unsupported\x20testFrameworkState=','getTestDetails','testUUID','getAllData','KEY_TEST_NAME','testData','KEY_TEST_SCOPES','failure','eventJson','NCqZt','removePendingHooks','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s',',\x20hookState:\x20','test','hooks','../state/testFrameworkState.js','failed','exports','KEY_TEST_RESULT_AT','PTJsd','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','KEY_TEST_FRAMEWORK_NAME','\x20hookState:\x20','KEY_TEST_FILE_PATH','\x20with\x20id\x20','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','trackEvent','browserstackPlatformIndex','failure_type','name','3031470OHvTWc','get','error','length','KEY_CUSTOM_TAGS','KEY_TEST_RERUN_NAME','\x20payload='];a95_0x15ed=function(){return _0x1e993b;};return a95_0x15ed();}