browserstack-node-sdk 1.52.3 → 1.53.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/nightwatch/command.js +1 -1
  79. package/src/bin/playwright/accessibility-helper.js +1 -1
  80. package/src/bin/playwright/command.js +1 -1
  81. package/src/bin/playwright/globalSetup.js +1 -1
  82. package/src/bin/playwright/mock-process.js +1 -1
  83. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  84. package/src/bin/playwright/patches.js +1 -1
  85. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  86. package/src/bin/playwright/reporter/reporter.js +1 -1
  87. package/src/bin/playwright/reporter/test-details.js +1 -1
  88. package/src/bin/playwright/sessionDetails.js +1 -1
  89. package/src/bin/puppeteer/patches.js +1 -1
  90. package/src/bin/puppeteer/sessionDetails.js +1 -1
  91. package/src/bin/puppeteer/test.setup.js +1 -1
  92. package/src/bin/runner.js +1 -1
  93. package/src/bin/setup.js +1 -1
  94. package/src/bin/test-runner/index.js +1 -1
  95. package/src/bin/test-runner/runTest.js +1 -1
  96. package/src/bin/test-runner/testWorker.js +1 -1
  97. package/src/bin/utils/apiUtilityMethods.js +1 -1
  98. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  99. package/src/bin/utils/constants.js +1 -1
  100. package/src/bin/utils/log4jsAppender.js +1 -1
  101. package/src/bin/utils/logPatcher.js +1 -1
  102. package/src/bin/utils/logReportingAPI.js +1 -1
  103. package/src/bin/utils/playwright-patcher.js +1 -1
  104. package/src/bin/utils/puppeteer-patcher.js +1 -1
  105. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  106. package/src/bin/utils/sharedUtils.js +1 -1
  107. package/src/bin/v2/TestInfo.js +1 -1
  108. package/src/bin/v2/browserstackCLI.js +1 -1
  109. package/src/bin/v2/cliUtils.js +1 -1
  110. package/src/bin/v2/customTagManager.js +1 -1
  111. package/src/bin/v2/eventDispatcher.js +1 -1
  112. package/src/bin/v2/framework/automationFramework.js +1 -1
  113. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  114. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  115. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  116. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  117. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  118. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  119. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  120. package/src/bin/v2/framework/testFramework.js +1 -1
  121. package/src/bin/v2/grpcClient.js +1 -1
  122. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  123. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  124. package/src/bin/v2/instances/trackedContext.js +1 -1
  125. package/src/bin/v2/instances/trackedInstance.js +1 -1
  126. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  127. package/src/bin/v2/modules/baseModule.js +1 -1
  128. package/src/bin/v2/modules/loadTestModule.js +1 -1
  129. package/src/bin/v2/modules/observabilityModule.js +1 -1
  130. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  131. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  132. package/src/bin/v2/modules/testhubModule.js +1 -1
  133. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  134. package/src/bin/v2/state/hookState.js +1 -1
  135. package/src/bin/v2/state/testFrameworkState.js +1 -1
  136. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  137. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  138. package/src/bin/v2/utils/jest-utils.js +1 -1
  139. package/src/bin/vanilla-js/command.js +1 -1
  140. package/src/browserStackSdk.js +1 -1
  141. package/src/helpers/BrowserStackSetup.js +1 -1
  142. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  143. package/src/helpers/accessibility-automation/constants.js +1 -1
  144. package/src/helpers/accessibility-automation/helper.js +1 -1
  145. package/src/helpers/accessibility-automation/scripts.js +1 -1
  146. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  147. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  148. package/src/helpers/ats/constants.js +1 -1
  149. package/src/helpers/ats/helper.js +1 -1
  150. package/src/helpers/capsMapping.js +1 -1
  151. package/src/helpers/central-scanner/constants.js +1 -1
  152. package/src/helpers/central-scanner/helpers.js +1 -1
  153. package/src/helpers/classLogger.js +1 -1
  154. package/src/helpers/globals.js +1 -1
  155. package/src/helpers/helper.js +1 -1
  156. package/src/helpers/logger.js +1 -1
  157. package/src/helpers/metadata.js +1 -1
  158. package/src/helpers/patchHelper.js +1 -1
  159. package/src/helpers/patchHelpers.js +1 -1
  160. package/src/helpers/percy/Percy.js +1 -1
  161. package/src/helpers/percy/PercyBinary.js +1 -1
  162. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  163. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  164. package/src/helpers/percy/PercySDK.js +1 -1
  165. package/src/helpers/percy/index.js +1 -1
  166. package/src/helpers/percy/utils.js +1 -1
  167. package/src/helpers/performance/constants.js +1 -1
  168. package/src/helpers/performance/performance-tester.js +1 -1
  169. package/src/helpers/playwright-helper.js +1 -1
  170. package/src/helpers/processHelper.js +1 -1
  171. package/src/helpers/puppeteer-helper.js +1 -1
  172. package/src/helpers/request-spy.js +1 -1
  173. package/src/helpers/setKeepAlive.js +1 -1
  174. package/src/helpers/test-observability/constants.js +1 -1
  175. package/src/helpers/test-observability/error-handler.js +1 -1
  176. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  177. package/src/helpers/test-observability/sessionHandler.js +1 -1
  178. package/src/helpers/test-observability/utils.js +1 -1
  179. package/src/helpers/test-orchestration/constants.js +1 -1
  180. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  181. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  182. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  183. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  184. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  185. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  186. package/src/helpers/testhub/constants.js +1 -1
  187. package/src/helpers/testhub/testhubHandler.js +1 -1
  188. package/src/helpers/testhub/utils.js +1 -1
  189. package/src/helpers/timeoutPromise.js +1 -1
  190. package/src/helpers/utilities.js +1 -1
  191. package/src/helpers/w3cMapping.js +1 -1
  192. package/src/hubAllocationMethods.js +1 -1
  193. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a68_0x2fa0f3=a68_0x1b32;(function(_0x5e470a,_0x1fa1bd){const _0x51dcf1=a68_0x1b32,_0x22fb30=_0x5e470a();while(!![]){try{const _0x442341=-parseInt(_0x51dcf1(0x1fa))/0x1+parseInt(_0x51dcf1(0x242))/0x2+parseInt(_0x51dcf1(0x1f4))/0x3*(parseInt(_0x51dcf1(0x26f))/0x4)+-parseInt(_0x51dcf1(0x266))/0x5+-parseInt(_0x51dcf1(0x238))/0x6*(parseInt(_0x51dcf1(0x286))/0x7)+parseInt(_0x51dcf1(0x245))/0x8*(parseInt(_0x51dcf1(0x1b6))/0x9)+parseInt(_0x51dcf1(0x1c8))/0xa;if(_0x442341===_0x1fa1bd)break;else _0x22fb30['push'](_0x22fb30['shift']());}catch(_0x52f4ed){_0x22fb30['push'](_0x22fb30['shift']());}}}(a68_0x5a09,0x8a07b));const fs=require('fs'),os=require('os'),url=require(a68_0x2fa0f3(0x229)),path=require(a68_0x2fa0f3(0x1d6)),{exec}=require(a68_0x2fa0f3(0x1f7)),{https}=require('follow-redirects'),yauzl=require('yauzl'),util=require(a68_0x2fa0f3(0x1e5)),{getFrameworkVersion}=require(a68_0x2fa0f3(0x1c9)),{threadId}=require('worker_threads'),PerformanceTester=require(a68_0x2fa0f3(0x1f5)),{EVENTS:PerformanceEvents}=require(a68_0x2fa0f3(0x1da)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a68_0x2fa0f3(0x24f)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a68_0x2fa0f3(0x1c6)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require('../utils/constants'),{createClassLogger}=require(a68_0x2fa0f3(0x1ba)),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require('./state/hookState.js'),TestFrameworkState=require(a68_0x2fa0f3(0x20d)),AutomationFrameworkState=require(a68_0x2fa0f3(0x263)),TestFrameworkConstants=require(a68_0x2fa0f3(0x1bf)),logger=createClassLogger(a68_0x2fa0f3(0x241)),{getBStackAPIUrl}=require(a68_0x2fa0f3(0x1d8));class CLIUtils{[a68_0x2fa0f3(0x252)]={};[a68_0x2fa0f3(0x1dc)]={};static[a68_0x2fa0f3(0x1d0)](){const _0x5d8dda=a68_0x2fa0f3,_0x2f295b={};_0x2f295b[_0x5d8dda(0x215)]=function(_0x524b1f,_0x3b0a21){return _0x524b1f===_0x3b0a21;},_0x2f295b['AfFBq']=_0x5d8dda(0x248);const _0x56ca80=_0x2f295b;return _0x56ca80['ofEuM'](process[_0x5d8dda(0x1bc)]['BROWSERSTACK_CLI_ENV'],_0x56ca80['AfFBq']);}static['getCLIParamsForDevEnv'](){const _0x56cde8=a68_0x2fa0f3,_0x597b5d={};return _0x597b5d['id']=process[_0x56cde8(0x1bc)]['BROWSERSTACK_CLI_ENV'],_0x597b5d['listen']=_0x56cde8(0x256)+process[_0x56cde8(0x1bc)]['BROWSERSTACK_CLI_ENV']+_0x56cde8(0x28e),_0x597b5d;}static[a68_0x2fa0f3(0x258)](){const _0x2aec29=a68_0x2fa0f3,_0x80dde8={'ItVYw':function(_0x53024a,_0x3b9c9c){return _0x53024a(_0x3b9c9c);},'JFAlr':'../../../package.json'};return _0x80dde8[_0x2aec29(0x1f0)](require,_0x80dde8[_0x2aec29(0x24c)])[_0x2aec29(0x254)];}static[a68_0x2fa0f3(0x1d4)](){const _0x141ecc=a68_0x2fa0f3,_0x277fb4={};_0x277fb4[_0x141ecc(0x23d)]='node';const _0x14817b=_0x277fb4;return _0x14817b[_0x141ecc(0x23d)];}static async['setupCliPath'](_0x4dfcea){const _0x2b738e=a68_0x2fa0f3,_0x515bd4={'MLkut':'Configuring\x20Cli\x20path.','OmlsI':function(_0x4ecfa6,_0x1e736a){return _0x4ecfa6(_0x1e736a);},'XmtCI':function(_0x70b887,_0x18e08f){return _0x70b887(_0x18e08f);},'CFqVd':_0x2b738e(0x1fc)};logger[_0x2b738e(0x1bd)](_0x515bd4[_0x2b738e(0x201)]);const _0x504a60=process[_0x2b738e(0x1bc)][_0x2b738e(0x1b5)];if(!_0x515bd4[_0x2b738e(0x211)](isNullOrEmpty,_0x504a60))return logger[_0x2b738e(0x1bd)](_0x2b738e(0x206)+_0x504a60),_0x504a60;try{const _0x132f67=this[_0x2b738e(0x272)]();if(_0x515bd4[_0x2b738e(0x26b)](isNullOrEmpty,_0x132f67))throw new Error(_0x515bd4[_0x2b738e(0x26a)]);const _0x26c253=this['getExistingCliPath'](_0x132f67),_0x498d1d=await this[_0x2b738e(0x21d)](_0x26c253,_0x132f67,_0x4dfcea);return logger[_0x2b738e(0x1bd)](_0x2b738e(0x1bb)+_0x498d1d),_0x498d1d;}catch(_0x1b0f3b){logger[_0x2b738e(0x1bd)](_0x2b738e(0x25c)+util[_0x2b738e(0x28c)](_0x1b0f3b));}return null;}static async[a68_0x2fa0f3(0x21d)](_0x151bc4,_0x28f216,_0x48818a){const _0x24e7d9=a68_0x2fa0f3,_0x4deaee={'rzAdT':function(_0x2fa250){return _0x2fa250();},'zqIQh':function(_0x54f93a,_0x23a39e){return _0x54f93a(_0x23a39e);},'YYfAF':function(_0x5bd480,_0x46f2b8,_0x28bea2){return _0x5bd480(_0x46f2b8,_0x28bea2);},'UQkmH':_0x24e7d9(0x228),'xGHgN':_0x24e7d9(0x229),'tpsBY':function(_0xa0e9f0,_0x104de8){return _0xa0e9f0(_0x104de8);},'GCioB':function(_0x557ae5,_0x5580e6,_0x22173f){return _0x557ae5(_0x5580e6,_0x22173f);}};PerformanceTester[_0x24e7d9(0x24a)](PerformanceEvents[_0x24e7d9(0x27b)]),logger[_0x24e7d9(0x222)](_0x24e7d9(0x202)+_0x151bc4);const _0x5108dd=_0x4deaee[_0x24e7d9(0x260)](getHostInfo),_0x17739a={'sdk_version':CLIUtils[_0x24e7d9(0x258)](),'os':_0x5108dd['platform'],'os_arch':_0x5108dd[_0x24e7d9(0x28f)],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x4deaee['zqIQh'](isNullOrEmpty,_0x151bc4)&&(_0x17739a['cli_version']=await this['runShellCommand'](_0x151bc4+'\x20version'));const _0x24b13a=await this[_0x24e7d9(0x1d9)](_0x17739a,_0x48818a);process[_0x24e7d9(0x1bc)][_0x24e7d9(0x1e2)]&&(logger[_0x24e7d9(0x222)](_0x24e7d9(0x235)+process[_0x24e7d9(0x1bc)]['BROWSERSTACK_BINARY_URL']),_0x24b13a['data'][_0x24e7d9(0x229)]=process[_0x24e7d9(0x1bc)]['BROWSERSTACK_BINARY_URL']);if(_0x4deaee[_0x24e7d9(0x233)](nestedKeyValue,_0x24b13a,[_0x4deaee[_0x24e7d9(0x280)],_0x4deaee['xGHgN']])){logger['debug']('Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20'+_0x17739a[_0x24e7d9(0x271)]);if(!_0x4deaee[_0x24e7d9(0x289)](isNullOrEmpty,_0x151bc4)&&this['isBinaryBusy'](_0x151bc4))return logger['warn'](_0x24e7d9(0x214)+_0x151bc4),PerformanceTester[_0x24e7d9(0x1d1)](PerformanceEvents[_0x24e7d9(0x27b)]),_0x151bc4;const _0x49e983=await this[_0x24e7d9(0x22a)](_0x4deaee['GCioB'](nestedKeyValue,_0x24b13a,[_0x4deaee[_0x24e7d9(0x280)],_0x4deaee[_0x24e7d9(0x1f1)]]),_0x28f216);return PerformanceTester[_0x24e7d9(0x1d1)](PerformanceEvents[_0x24e7d9(0x27b)]),_0x49e983;}return PerformanceTester[_0x24e7d9(0x1d1)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x151bc4;}static[a68_0x2fa0f3(0x272)](){const _0x48699a=a68_0x2fa0f3,_0x451b15={'glVoJ':function(_0x2c88b0,_0x5a6e18){return _0x2c88b0(_0x5a6e18);},'eYIZG':_0x48699a(0x1fc),'kBYTG':_0x48699a(0x1e1)},_0x3c5e4e=this['getWritableDir']();try{if(_0x451b15[_0x48699a(0x24b)](isNullOrEmpty,_0x3c5e4e))throw new Error(_0x451b15['eYIZG']);const _0x522eb9=path['join'](_0x3c5e4e,_0x451b15[_0x48699a(0x1db)]);return!fs[_0x48699a(0x26c)](_0x522eb9)&&_0x451b15[_0x48699a(0x24b)](createDir,_0x522eb9),_0x522eb9;}catch(_0x4f8b04){logger[_0x48699a(0x1bd)](_0x48699a(0x1e3)+util[_0x48699a(0x28c)](_0x4f8b04));}}static['getWritableDir'](){const _0x287285=a68_0x2fa0f3,_0x1a5911={'psXdB':_0x287285(0x1f9),'MXlmM':function(_0x12fee9,_0x57ac14){return _0x12fee9(_0x57ac14);},'UnQOw':function(_0x577b05,_0x2df794){return _0x577b05(_0x2df794);},'iaroR':function(_0x1d101c,_0x4cedb1){return _0x1d101c(_0x4cedb1);},'PgBfR':function(_0x1df200,_0x47871b){return _0x1df200(_0x47871b);}},_0x287545=[process['env']['BROWSERSTACK_FILES_DIR'],path[_0x287285(0x22b)](os[_0x287285(0x212)](),_0x1a5911[_0x287285(0x265)]),path[_0x287285(0x22b)](os[_0x287285(0x1c7)](),_0x1a5911['psXdB'])];for(const _0x52f30f of _0x287545){if(_0x1a5911[_0x287285(0x28b)](isNullOrEmpty,_0x52f30f))continue;try{if(fs['existsSync'](_0x52f30f)){logger[_0x287285(0x1bd)]('Folder\x20'+_0x52f30f+'\x20already\x20exists');if(!_0x1a5911[_0x287285(0x285)](isModifiable,_0x52f30f)){logger['debug'](_0x287285(0x1c2)+_0x52f30f);const _0x50a357=_0x1a5911[_0x287285(0x28b)](setReadWriteExecuteAccess,_0x52f30f);if(!_0x1a5911[_0x287285(0x285)](isTrue,_0x50a357)){logger[_0x287285(0x1b0)](_0x287285(0x231)+_0x52f30f);continue;}}}else{logger[_0x287285(0x1bd)](_0x287285(0x278)+_0x52f30f),_0x1a5911['UnQOw'](createDir,_0x52f30f),logger[_0x287285(0x1bd)](_0x287285(0x1c2)+_0x52f30f);const _0x2fe14e=_0x1a5911[_0x287285(0x24e)](setReadWriteExecuteAccess,_0x52f30f);!_0x1a5911['PgBfR'](isTrue,_0x2fe14e)&&logger['warn'](_0x287285(0x231)+_0x52f30f);}return _0x52f30f;}catch(_0x2d40b7){logger[_0x287285(0x225)]('Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20'+util[_0x287285(0x28c)](_0x2d40b7));}}return null;}static['getExistingCliPath'](_0x44597b){const _0x394314=a68_0x2fa0f3,_0x1098c9={};_0x1098c9[_0x394314(0x21b)]=function(_0x2589fb,_0x1c9f1c){return _0x2589fb>_0x1c9f1c;},_0x1098c9[_0x394314(0x1fe)]=function(_0x3e600c,_0x2e896b){return _0x3e600c>_0x2e896b;};const _0x477b01=_0x1098c9;try{if(!fs[_0x394314(0x26c)](_0x44597b)||!fs[_0x394314(0x279)](_0x44597b)[_0x394314(0x20b)]())return'';const _0x26048a=fs['readdirSync'](_0x44597b)[_0x394314(0x1c1)](_0x386840=>path[_0x394314(0x22b)](_0x44597b,_0x386840))[_0x394314(0x249)](_0x376574=>fs[_0x394314(0x279)](_0x376574)[_0x394314(0x284)]()&&path[_0x394314(0x230)](_0x376574)[_0x394314(0x1ea)]('binary-'));if(_0x477b01[_0x394314(0x1fe)](_0x26048a[_0x394314(0x22c)],0x0)){const _0x4c745d=_0x26048a[_0x394314(0x1c1)](_0x513882=>({'filePath':_0x513882,'mtime':fs[_0x394314(0x279)](_0x513882)['mtime']}))[_0x394314(0x255)]((_0x3acc2a,_0x227889)=>{const _0x1478d7=_0x394314;if(!_0x3acc2a||!_0x3acc2a[_0x1478d7(0x259)])return _0x227889;if(_0x477b01[_0x1478d7(0x21b)](_0x227889[_0x1478d7(0x259)],_0x3acc2a[_0x1478d7(0x259)]))return _0x227889;return _0x3acc2a;},{});return _0x4c745d?_0x4c745d['filePath']:'';}return'';}catch(_0x5d386b){return logger[_0x394314(0x225)]('Error\x20while\x20reading\x20CLI\x20path:\x20'+util[_0x394314(0x28c)](_0x5d386b)),'';}}static [a68_0x2fa0f3(0x1d9)]=async(_0x3c72d1,_0xe94863)=>{const _0x26755e=a68_0x2fa0f3,_0x5d582a={'RsKOw':function(_0x385713,_0x5996be,_0x1ce0f5,_0x1fc971,_0x7b17bc){return _0x385713(_0x5996be,_0x1ce0f5,_0x1fc971,_0x7b17bc);},'EskHX':_0x26755e(0x218)},_0x5332a7={};_0x5332a7['qs']=_0x3c72d1;const _0x29a055=await _0x5d582a[_0x26755e(0x1fd)](nodeRequest,_0x5d582a['EskHX'],UPDATED_CLI_ENDPOINT,_0x5332a7,_0xe94863);return logger[_0x26755e(0x1bd)](_0x26755e(0x207)+JSON['stringify'](_0x29a055)),_0x29a055;};static['isBinaryBusy'](_0x45126f){const _0x136cc6=a68_0x2fa0f3;try{const _0x5230b1=fs['openSync'](_0x45126f,'r+');return fs[_0x136cc6(0x1b2)](_0x5230b1),![];}catch(_0x3f142f){if(BINARY_BUSY_ERROR_CODES['includes'](_0x3f142f[_0x136cc6(0x277)]))return logger['debug'](_0x136cc6(0x275)+_0x45126f),!![];return logger[_0x136cc6(0x1bd)]('Error\x20checking\x20if\x20binary\x20is\x20busy:\x20'+_0x3f142f[_0x136cc6(0x1c5)]),![];}}static['runShellCommand'](_0x2e460f,_0x1df629=''){const _0x862f4c=a68_0x2fa0f3,_0xbdaf4e={'ZRIdc':'version','UJgav':function(_0x165fd3,_0x33a1de){return _0x165fd3(_0x33a1de);},'IprPz':function(_0x240aed,_0xb0086d){return _0x240aed(_0xb0086d);},'EQMmf':_0x862f4c(0x23a),'hBXJB':function(_0x53ae36,_0x5c4446,_0x294995,_0x127cca){return _0x53ae36(_0x5c4446,_0x294995,_0x127cca);},'SFltO':_0x862f4c(0x225)};return new Promise((_0x25911d,_0x2b1dca)=>{const _0x4b587f=_0x862f4c,_0x154346={'GMOLq':_0xbdaf4e['ZRIdc'],'tAeWL':function(_0x51d86c,_0x591065){return _0xbdaf4e['UJgav'](_0x51d86c,_0x591065);},'yIsRJ':function(_0x1054c0,_0x1897cd){const _0x476039=a68_0x1b32;return _0xbdaf4e[_0x476039(0x1e4)](_0x1054c0,_0x1897cd);},'YPjMp':_0xbdaf4e['EQMmf']},_0x453990={};_0x453990[_0x4b587f(0x264)]=_0x1df629,_0x453990[_0x4b587f(0x28a)]=0x1388;const _0x273ab3=_0xbdaf4e[_0x4b587f(0x21f)](exec,_0x2e460f,_0x453990,(_0x2aa8a4,_0x364395,_0x12177a)=>{const _0x5c435d=_0x4b587f;if(_0x2aa8a4){if(_0x2e460f['includes'](_0x154346['GMOLq'])&&(_0x364395[_0x5c435d(0x240)]()||_0x12177a[_0x5c435d(0x240)]())){const _0x5e2cb5=_0x364395[_0x5c435d(0x240)]()||_0x12177a[_0x5c435d(0x240)]();logger[_0x5c435d(0x1bd)](_0x5c435d(0x236)+_0x5e2cb5+'\x22'),_0x154346[_0x5c435d(0x1ad)](_0x25911d,_0x5e2cb5);}else _0x154346[_0x5c435d(0x208)](_0x25911d,_0x12177a[_0x5c435d(0x240)]()||_0x154346[_0x5c435d(0x1b9)]);}else logger['debug'](_0x5c435d(0x1ef)+_0x364395[_0x5c435d(0x240)]()+'\x22'),_0x154346[_0x5c435d(0x208)](_0x25911d,_0x364395['trim']());});_0x273ab3['on'](_0xbdaf4e[_0x4b587f(0x20e)],()=>{const _0x5d0465=_0x4b587f;_0x154346[_0x5d0465(0x1ad)](_0x25911d,_0x154346[_0x5d0465(0x1b9)]);});});}static [a68_0x2fa0f3(0x22a)]=async(_0x30d03e,_0x2f4a2c)=>{const _0x11baa2=a68_0x2fa0f3,_0x4b0d84={'SGcMq':function(_0x5edb79,_0x4abe04){return _0x5edb79(_0x4abe04);},'dUDJv':'Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','uqnJu':function(_0x27e349,_0x1a2058){return _0x27e349(_0x1a2058);},'PpgGr':_0x11baa2(0x203),'bpEki':'error'};PerformanceTester[_0x11baa2(0x24a)](PerformanceEvents[_0x11baa2(0x20f)]),logger[_0x11baa2(0x1bd)](_0x11baa2(0x24d)+_0x30d03e);try{const _0x28cad8=url[_0x11baa2(0x213)](_0x30d03e),_0x42446c=path['join'](_0x2f4a2c,_0x11baa2(0x251)+process['pid']+'.zip'),_0x92d39c=fs[_0x11baa2(0x1d3)](_0x42446c);return new Promise((_0x4ff79e,_0x522b7f)=>{const _0x2e18b9=_0x11baa2,_0x26745b={'LmjAf':function(_0x566049,_0x3a121e){return _0x4b0d84['SGcMq'](_0x566049,_0x3a121e);},'KnMFW':_0x4b0d84['dUDJv'],'egAMl':function(_0x2e8ce4,_0x2bfe61){const _0x2d8984=a68_0x1b32;return _0x4b0d84[_0x2d8984(0x1eb)](_0x2e8ce4,_0x2bfe61);},'GuRRA':_0x4b0d84[_0x2e18b9(0x27d)],'YVGCn':function(_0xd14f96,_0x5ea35a){return _0x4b0d84['uqnJu'](_0xd14f96,_0x5ea35a);},'YwbIh':_0x4b0d84[_0x2e18b9(0x20a)],'zkWog':function(_0x4859d2,_0x16ab69){const _0x481131=_0x2e18b9;return _0x4b0d84[_0x481131(0x22f)](_0x4859d2,_0x16ab69);}};https[_0x2e18b9(0x1b8)](_0x28cad8,function(_0x48547b){const _0x137790=_0x2e18b9,_0x1ad319={'EkIDE':_0x26745b['KnMFW'],'WHzVi':function(_0x2440ac,_0x3529b3){return _0x26745b['egAMl'](_0x2440ac,_0x3529b3);},'vNCtr':_0x26745b[_0x137790(0x257)],'VnTXS':function(_0x12e122,_0x14486a){return _0x26745b['YVGCn'](_0x12e122,_0x14486a);}},_0x4e0e70=null;_0x48547b[_0x137790(0x1ee)](_0x92d39c),_0x48547b['on'](_0x26745b[_0x137790(0x1c4)],function(_0x4ccb9d){const _0x5876c8=_0x137790;logger[_0x5876c8(0x225)](util[_0x5876c8(0x28c)](_0x1ad319[_0x5876c8(0x234)],_0x4ccb9d)),PerformanceTester[_0x5876c8(0x1d1)](PerformanceEvents[_0x5876c8(0x20f)],![],util['format'](_0x4ccb9d)),_0x1ad319[_0x5876c8(0x1f6)](_0x522b7f,_0x4ccb9d);}),_0x92d39c['on'](_0x26745b[_0x137790(0x1c4)],function(_0x2a843d){const _0x533fbc=_0x137790;logger['error'](util['format'](_0x1ad319[_0x533fbc(0x23f)],_0x2a843d)),PerformanceTester['end'](PerformanceEvents[_0x533fbc(0x20f)],![],util['format'](_0x2a843d)),_0x1ad319[_0x533fbc(0x1f6)](_0x522b7f,_0x2a843d);}),CLIUtils['downloadFileStream'](_0x92d39c,_0x4e0e70,_0x42446c,_0x2f4a2c,_0x1e4f83=>{const _0x543df4=_0x137790;PerformanceTester[_0x543df4(0x1d1)](PerformanceEvents[_0x543df4(0x20f)]),_0x1ad319[_0x543df4(0x1c0)](_0x4ff79e,_0x1e4f83);},_0xc93cee=>{const _0x124b2b=_0x137790;PerformanceTester[_0x124b2b(0x1d1)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x124b2b(0x28c)](_0xc93cee)),_0x26745b['LmjAf'](_0x522b7f,_0xc93cee);});})['on'](_0x4b0d84[_0x2e18b9(0x20a)],function(_0x3816ac){const _0x461c6d=_0x2e18b9;logger[_0x461c6d(0x225)](_0x461c6d(0x246)+util[_0x461c6d(0x28c)](_0x3816ac)),PerformanceTester[_0x461c6d(0x1d1)](PerformanceEvents[_0x461c6d(0x20f)],![],util[_0x461c6d(0x28c)](_0x3816ac)),_0x26745b[_0x461c6d(0x204)](_0x522b7f,_0x3816ac);});});}catch(_0x112765){PerformanceTester[_0x11baa2(0x1d1)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util['format'](_0x112765)),logger[_0x11baa2(0x1bd)](_0x11baa2(0x227)+util['format'](_0x112765));}};static[a68_0x2fa0f3(0x23e)](_0x15d14e,_0x29e4c4,_0x51a5a0,_0x555a71,_0x9b7243,_0x48c960){const _0x313bb8=a68_0x2fa0f3,_0x13eedb={'fURee':function(_0x19a14b,_0x301279){return _0x19a14b(_0x301279);},'KouLf':_0x313bb8(0x269),'ihmFP':function(_0x42c0eb,_0x29cc23){return _0x42c0eb(_0x29cc23);},'LpqHf':_0x313bb8(0x1d1),'gtNub':function(_0x19e8aa,_0xcfdb49){return _0x19e8aa(_0xcfdb49);},'WNIDG':function(_0x4d4ae3,_0x13a5db){return _0x4d4ae3(_0x13a5db);},'wkyHx':function(_0x1d9a94,_0x489655){return _0x1d9a94!==_0x489655;},'dgHhF':_0x313bb8(0x225),'aQwoa':_0x313bb8(0x273),'ppgfT':function(_0x1c9235,_0x36fe33){return _0x1c9235(_0x36fe33);},'udpnK':function(_0x504b15,_0x1b02c1){return _0x504b15(_0x1b02c1);},'IDkso':_0x313bb8(0x232),'VOAsi':_0x313bb8(0x25b)};_0x15d14e['on'](_0x13eedb[_0x313bb8(0x26e)],function(){const _0x4f5525=_0x313bb8,_0x4ffb9e={'IAeqv':function(_0x364601,_0x2d9309){const _0x5e4fd4=a68_0x1b32;return _0x13eedb[_0x5e4fd4(0x267)](_0x364601,_0x2d9309);},'zCIip':_0x13eedb[_0x4f5525(0x26e)],'JJuns':function(_0x4b1c22,_0x3388b3){const _0x3ae76c=_0x4f5525;return _0x13eedb[_0x3ae76c(0x287)](_0x4b1c22,_0x3388b3);},'bfZlF':_0x13eedb[_0x4f5525(0x1e9)],'kVaip':function(_0x81404,_0x138604){const _0x31517c=_0x4f5525;return _0x13eedb[_0x31517c(0x23b)](_0x81404,_0x138604);},'vOXZs':function(_0xe93c67,_0x163367){const _0x6333c6=_0x4f5525;return _0x13eedb[_0x6333c6(0x20c)](_0xe93c67,_0x163367);},'zMmIR':function(_0x306dc5,_0x18c6f4){const _0x46cfe5=_0x4f5525;return _0x13eedb[_0x46cfe5(0x1e6)](_0x306dc5,_0x18c6f4);},'hwhqi':_0x13eedb[_0x4f5525(0x1ca)],'jpSDJ':_0x13eedb[_0x4f5525(0x23c)],'mJiEg':function(_0x4bb87d,_0x343fd2){const _0x428c5d=_0x4f5525;return _0x13eedb[_0x428c5d(0x1d7)](_0x4bb87d,_0x343fd2);},'nJiuQ':function(_0x53bebd,_0x3bbe89){const _0x457bbc=_0x4f5525;return _0x13eedb[_0x457bbc(0x1ff)](_0x53bebd,_0x3bbe89);},'cFTJP':_0x13eedb['IDkso'],'AYucp':_0x13eedb['VOAsi']},_0x41029e={};_0x41029e[_0x4f5525(0x1cb)]=!![],yauzl[_0x4f5525(0x221)](_0x51a5a0,_0x41029e,function(_0x29c477,_0x180a52){const _0x506426=_0x4f5525,_0x3ad790={'LmmVk':_0x4ffb9e[_0x506426(0x1cd)],'rLYwg':function(_0x30a57c,_0x579c0e){return _0x4ffb9e['JJuns'](_0x30a57c,_0x579c0e);},'hmKsJ':_0x4ffb9e[_0x506426(0x219)],'gPYJK':function(_0x123557,_0x1be8d3){const _0x2a657d=_0x506426;return _0x4ffb9e[_0x2a657d(0x1b4)](_0x123557,_0x1be8d3);},'sNAdW':function(_0x1adc79,_0x164d2e){const _0x2ed0f4=_0x506426;return _0x4ffb9e[_0x2ed0f4(0x25a)](_0x1adc79,_0x164d2e);},'RQGNl':function(_0x5a5c26,_0x5c8968){const _0x2ada8f=_0x506426;return _0x4ffb9e[_0x2ada8f(0x1e7)](_0x5a5c26,_0x5c8968);},'wbgNe':_0x4ffb9e[_0x506426(0x217)],'hMshP':function(_0x537fe7,_0xb1def5){const _0x15a551=_0x506426;return _0x4ffb9e[_0x15a551(0x1e7)](_0x537fe7,_0xb1def5);},'JAMMJ':_0x4ffb9e[_0x506426(0x239)],'mSTBk':function(_0x330045,_0x244f81){const _0xb312da=_0x506426;return _0x4ffb9e[_0xb312da(0x25a)](_0x330045,_0x244f81);},'MRXMH':function(_0x4729b2,_0x557c3d){const _0x5ac00c=_0x506426;return _0x4ffb9e[_0x5ac00c(0x282)](_0x4729b2,_0x557c3d);},'OOBgs':function(_0x5baf94,_0x3ef336){const _0x5f5636=_0x506426;return _0x4ffb9e[_0x5f5636(0x27a)](_0x5baf94,_0x3ef336);},'BxzcX':_0x4ffb9e[_0x506426(0x247)]};if(_0x29c477){_0x4ffb9e[_0x506426(0x27a)](_0x48c960,_0x29c477);return;}_0x180a52[_0x506426(0x224)](),_0x180a52['on'](_0x4ffb9e['AYucp'],_0x5242cc=>{const _0x59677e=_0x506426,_0x4f43fa={'EpuHo':function(_0x3e2113,_0x41e257){const _0x2e3f0c=a68_0x1b32;return _0x3ad790[_0x2e3f0c(0x216)](_0x3e2113,_0x41e257);},'YCBhv':function(_0x3c863c,_0x5a4b6b){return _0x3ad790['sNAdW'](_0x3c863c,_0x5a4b6b);}};if(/\/$/[_0x59677e(0x25d)](_0x5242cc['fileName'])){_0x180a52[_0x59677e(0x224)]();return;}!_0x29e4c4&&(_0x29e4c4=_0x5242cc[_0x59677e(0x223)]);if(_0x3ad790[_0x59677e(0x1ec)](_0x5242cc[_0x59677e(0x223)],_0x29e4c4))_0x180a52['readEntry']();else{const _0x76ad45=_0x5242cc[_0x59677e(0x223)],_0x5292a3=path[_0x59677e(0x22b)](_0x555a71,_0x76ad45+_0x59677e(0x261)+process[_0x59677e(0x210)]);let _0x4e974a;try{_0x4e974a=fs[_0x59677e(0x1d3)](_0x5292a3);}catch(_0x4603ff){if(BINARY_BUSY_ERROR_CODES['includes'](_0x4603ff['code'])){const _0x3b1b68=path['join'](_0x555a71,_0x76ad45);if(fs[_0x59677e(0x26c)](_0x3b1b68)){logger['warn'](_0x59677e(0x21a)+_0x76ad45),fs['unlink'](_0x51a5a0,_0x293aab=>{const _0xfc33d5=_0x59677e;_0x293aab&&logger[_0xfc33d5(0x1b0)](_0xfc33d5(0x243)+_0x51a5a0);}),_0x3ad790[_0x59677e(0x216)](_0x9b7243,_0x3b1b68);return;}logger[_0x59677e(0x1b0)]('Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x76ad45);}_0x3ad790[_0x59677e(0x22d)](_0x48c960,_0x4603ff);return;}_0x4e974a['on'](_0x3ad790[_0x59677e(0x25e)],_0x32da80=>{const _0x21b6ed=_0x59677e;if(BINARY_BUSY_ERROR_CODES[_0x21b6ed(0x283)](_0x32da80[_0x21b6ed(0x277)])){const _0x115913=path[_0x21b6ed(0x22b)](_0x555a71,_0x76ad45);_0x4e974a[_0x21b6ed(0x269)](),fs['existsSync'](_0x115913)?(logger[_0x21b6ed(0x1b0)]('Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x32da80[_0x21b6ed(0x1c5)]),_0x180a52[_0x21b6ed(0x269)](),fs[_0x21b6ed(0x1e0)](_0x51a5a0,_0x55d4b2=>{const _0x559c2c=_0x21b6ed;_0x55d4b2&&logger[_0x559c2c(0x1b0)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x51a5a0);}),_0x4f43fa[_0x21b6ed(0x250)](_0x9b7243,_0x115913)):(logger[_0x21b6ed(0x1b0)](_0x21b6ed(0x1f3)+_0x32da80[_0x21b6ed(0x1c5)]),fs['unlink'](_0x5292a3,()=>{}),_0x4f43fa['EpuHo'](_0x48c960,_0x32da80));}else fs[_0x21b6ed(0x1e0)](_0x5292a3,()=>{}),_0x4f43fa[_0x21b6ed(0x220)](_0x48c960,_0x32da80);}),_0x180a52['openReadStream'](_0x5242cc,function(_0x53b391,_0x5f3ac0){const _0x57715b=_0x59677e,_0x53a4a3={};_0x53a4a3['YAqyB']=_0x3ad790[_0x57715b(0x1d2)];const _0x3b729e=_0x53a4a3;if(_0x53b391){fs[_0x57715b(0x1e0)](_0x5292a3,()=>{}),_0x3ad790[_0x57715b(0x1f2)](_0x48c960,_0x53b391);return;}_0x5f3ac0['on'](_0x3ad790['hmKsJ'],function(){const _0x2810b1=_0x57715b;_0x4e974a[_0x2810b1(0x1d1)](),_0x4e974a['on'](_0x3b729e[_0x2810b1(0x1de)],function(){const _0x58605c=_0x2810b1;_0x180a52[_0x58605c(0x224)]();});}),_0x5f3ac0[_0x57715b(0x1ee)](_0x4e974a);});}}),_0x180a52['on'](_0x4ffb9e[_0x506426(0x217)],_0x289033=>{const _0xff414f=_0x506426;_0x4ffb9e[_0xff414f(0x1ae)](_0x48c960,_0x289033);}),_0x180a52[_0x506426(0x1c3)](_0x4ffb9e[_0x506426(0x219)],()=>{const _0x1d8ca7=_0x506426;fs[_0x1d8ca7(0x1e0)](_0x51a5a0,_0x5807f5=>{const _0x1cd8ed=_0x1d8ca7;_0x5807f5&&logger[_0x1cd8ed(0x1b0)](_0x1cd8ed(0x243)+_0x51a5a0);});const _0x444dc5=path[_0x1d8ca7(0x22b)](_0x555a71,_0x29e4c4+_0x1d8ca7(0x261)+process['pid']),_0x443ddd=path[_0x1d8ca7(0x22b)](_0x555a71,_0x29e4c4);fs['chmod'](_0x444dc5,_0x3ad790['BxzcX'],function(_0x421309){const _0x3036b9=_0x1d8ca7,_0x2b23b9={'ADIQC':function(_0x5a7b8b,_0x77b9d8){const _0x29809b=a68_0x1b32;return _0x3ad790[_0x29809b(0x276)](_0x5a7b8b,_0x77b9d8);},'SbhQU':_0x3ad790['JAMMJ'],'FmsXg':function(_0x40b234,_0x2bd247){const _0x38e65d=a68_0x1b32;return _0x3ad790[_0x38e65d(0x22d)](_0x40b234,_0x2bd247);},'BPCTD':function(_0x34cb8a,_0x43f8f4){const _0x533595=a68_0x1b32;return _0x3ad790[_0x533595(0x209)](_0x34cb8a,_0x43f8f4);},'mTQcU':function(_0x2113d3,_0x152beb){const _0x2a8fb8=a68_0x1b32;return _0x3ad790[_0x2a8fb8(0x1fb)](_0x2113d3,_0x152beb);}};if(_0x421309){_0x180a52[_0x3036b9(0x269)](),fs[_0x3036b9(0x1e0)](_0x444dc5,()=>{}),_0x3ad790[_0x3036b9(0x274)](_0x48c960,_0x421309);return;}fs[_0x3036b9(0x288)](_0x444dc5,_0x443ddd,function(_0x23137c){const _0x55858a=_0x3036b9;if(_0x23137c){if(_0x2b23b9[_0x55858a(0x1b7)](_0x23137c[_0x55858a(0x277)],_0x2b23b9[_0x55858a(0x1ce)])){_0x180a52['close'](),fs[_0x55858a(0x1e0)](_0x444dc5,()=>{}),_0x2b23b9[_0x55858a(0x27c)](_0x48c960,_0x23137c);return;}logger[_0x55858a(0x1b0)](_0x55858a(0x1df)+_0x23137c[_0x55858a(0x1c5)]);try{fs['copyFileSync'](_0x444dc5,_0x443ddd);}catch(_0xb6824c){_0x180a52[_0x55858a(0x269)](),fs[_0x55858a(0x1e0)](_0x444dc5,()=>{}),_0x2b23b9[_0x55858a(0x262)](_0x48c960,_0xb6824c);return;}fs['unlink'](_0x444dc5,_0x317442=>{const _0x59b2be=_0x55858a;_0x317442&&logger['warn'](_0x59b2be(0x21c)+_0x317442[_0x59b2be(0x1c5)]);});}_0x180a52[_0x55858a(0x269)](),_0x2b23b9['mTQcU'](_0x9b7243,_0x443ddd);});});});});});}static[a68_0x2fa0f3(0x1b3)](){const _0x4e7635=a68_0x2fa0f3;if(process['env'][_0x4e7635(0x1b1)])return JSON[_0x4e7635(0x213)](process[_0x4e7635(0x1bc)][_0x4e7635(0x1b1)]);return this[_0x4e7635(0x1dc)];}static['getAutomationFrameworkDetail'](){const _0x1834b8=a68_0x2fa0f3;if(process[_0x1834b8(0x1bc)][_0x1834b8(0x1f8)])return JSON[_0x1834b8(0x213)](process[_0x1834b8(0x1bc)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']);return this[_0x1834b8(0x252)];}static[a68_0x2fa0f3(0x1e8)](_0x27ae7f,_0x233181){const _0x481db7=a68_0x2fa0f3,_0x5b2f31={'NTAjZ':_0x481db7(0x27e),'OgPlw':function(_0x2a8b6c,_0x5a1c4a){return _0x2a8b6c(_0x5a1c4a);},'CyOos':function(_0x5a97ac,_0x5620c9){return _0x5a97ac||_0x5620c9;}},_0x4dbd7c=_0x5b2f31[_0x481db7(0x26d)][_0x481db7(0x1ed)]('|');let _0xf3c966=0x0;while(!![]){switch(_0x4dbd7c[_0xf3c966++]){case'0':process[_0x481db7(0x1bc)][_0x481db7(0x1f8)]=JSON[_0x481db7(0x27f)](this[_0x481db7(0x252)]);continue;case'1':process['env']['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']=JSON[_0x481db7(0x27f)](this[_0x481db7(0x1dc)]);continue;case'2':this['testFrameworkDetail']={'name':_0x27ae7f,'version':{[_0x27ae7f]:_0x5b2f31[_0x481db7(0x1cc)](getFrameworkVersion,_0x27ae7f)}};continue;case'3':_0x5b2f31[_0x481db7(0x281)](!_0x27ae7f,!_0x233181)&&logger[_0x481db7(0x1bd)](_0x481db7(0x1dd)+_0x27ae7f+',\x20automationFramework='+_0x233181);continue;case'4':this['automationFrameworkDetail']={'name':_0x233181,'version':_0x5b2f31[_0x481db7(0x1cc)](getFrameworkVersion,_0x233181)};continue;}break;}}static[a68_0x2fa0f3(0x268)](_0x510b38,_0x54b2f7){return _0x510b38+':'+_0x54b2f7;}static['getCurrentInstanceName'](){const _0x5537dd=a68_0x2fa0f3;return process[_0x5537dd(0x210)]+':'+threadId;}static[a68_0x2fa0f3(0x1d5)](_0x525486){const _0x3c70d3=a68_0x2fa0f3;if(_0x525486[_0x3c70d3(0x22e)]&&_0x525486['testContextOptions'][_0x3c70d3(0x270)])return!![];return![];}static[a68_0x2fa0f3(0x200)](_0x423842){if(_0x423842['testContextOptions']&&_0x423842['testContextOptions']['skipSessionStatus'])return!![];return![];}static[a68_0x2fa0f3(0x1be)](_0x5b5519){const _0x4b5eb4=a68_0x2fa0f3,_0x51975a=new RegExp(TestFrameworkConstants[_0x4b5eb4(0x244)]);return _0x51975a['test'](_0x5b5519);}static[a68_0x2fa0f3(0x237)](_0x39e911,_0x8bcb42){const _0xc74e2f=a68_0x2fa0f3,_0x1cf477={};_0x1cf477[_0xc74e2f(0x1af)]=function(_0x85eff9,_0x2fd7a5){return _0x85eff9!==_0x2fd7a5;},_0x1cf477[_0xc74e2f(0x226)]=function(_0x14e9eb,_0x599e43){return _0x14e9eb===_0x599e43;},_0x1cf477[_0xc74e2f(0x28d)]=_0xc74e2f(0x25f);const _0x24a064=_0x1cf477;for(const [_0x2d14e8,_0x4e574f]of Object[_0xc74e2f(0x253)](_0x8bcb42)){if(_0x24a064[_0xc74e2f(0x1af)](_0x4e574f,null)&&_0x24a064[_0xc74e2f(0x226)](typeof _0x4e574f,_0x24a064[_0xc74e2f(0x28d)])&&!Array[_0xc74e2f(0x205)](_0x4e574f))_0x39e911[_0x2d14e8]=this[_0xc74e2f(0x237)](_0x39e911[_0x2d14e8]||{},_0x4e574f);else Array['isArray'](_0x4e574f)?_0x39e911[_0x2d14e8]=(_0x39e911[_0x2d14e8]||[])[_0xc74e2f(0x1cf)](_0x4e574f):_0x39e911[_0x2d14e8]=_0x4e574f;}return _0x39e911;}}function a68_0x1b32(_0x251b2b,_0x5a58ee){const _0x5a091a=a68_0x5a09();return a68_0x1b32=function(_0x1b3216,_0x33c841){_0x1b3216=_0x1b3216-0x1ad;let _0x3ecbc2=_0x5a091a[_0x1b3216];return _0x3ecbc2;},a68_0x1b32(_0x251b2b,_0x5a58ee);}module[a68_0x2fa0f3(0x21e)]=CLIUtils;function a68_0x5a09(){const _0x153900=['unlink','cli','BROWSERSTACK_BINARY_URL','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','IprPz','util','wkyHx','zMmIR','setFrameworkDetail','LpqHf','startsWith','uqnJu','RQGNl','split','pipe','Resolving\x20with\x20stdout:\x20\x22','ItVYw','xGHgN','rLYwg','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','3PeXKLV','../../helpers/performance/performance-tester.js','WHzVi','child_process','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','.browserstack','681451tmqXXn','MRXMH','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','RsKOw','vxZOk','udpnK','shouldSkipSessionStatus','MLkut','Current\x20CLI\x20Path\x20Found:\x20','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','zkWog','isArray','Development\x20Cli\x20Path:\x20','response\x20','yIsRJ','mSTBk','bpEki','isDirectory','WNIDG','./state/testFrameworkState.js','SFltO','SDK_CLI_DOWNLOAD','pid','OmlsI','homedir','parse','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','ofEuM','gPYJK','hwhqi','GET','bfZlF','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','YRksI','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','checkAndUpdateCli','exports','hBXJB','YCBhv','open','info','fileName','readEntry','error','doYnj','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','data','url','downloadLatestBinary','join','length','sNAdW','testContextOptions','SGcMq','basename','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','0755','YYfAF','EkIDE','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','CLI\x20version\x20found\x20despite\x20error:\x20\x22','mergeObject','1194iwiLDG','jpSDJ','SHELL_EXECUTE_ERROR','gtNub','aQwoa','Vnfjt','downloadFileStream','vNCtr','trim','CLIUtils','1420756RZpqjw','Failed\x20to\x20delete\x20zip\x20file:\x20','HOOK_REGEX','8uSVzTo','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','cFTJP','development','filter','start','glVoJ','JFAlr','Downloading\x20SDK\x20binary\x20from:\x20','iaroR','../../helpers/utilities','EpuHo','downloaded_file_','automationFrameworkDetail','entries','version','reduce','unix:/tmp/sdk-platform-','GuRRA','getSdkVersion','mtime','vOXZs','entry','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','test','wbgNe','object','rzAdT','.tmp.','BPCTD','./state/automationFrameworkState.js','cwd','psXdB','1331220vzkaUR','fURee','getHookRegistryKey','close','CFqVd','XmtCI','existsSync','NTAjZ','KouLf','4481528zgwIIE','skipSessionName','cli_version','getCliDir','EXDEV','OOBgs','Binary\x20is\x20busy:\x20','hMshP','code','Folder\x20does\x20not\x20exist:\x20','statSync','nJiuQ','SDK_CLI_CHECK_UPDATE','FmsXg','PpgGr','3|2|4|0|1','stringify','UQkmH','CyOos','mJiEg','includes','isFile','UnQOw','29239yYigQr','ihmFP','rename','tpsBY','timeout','MXlmM','format','EPiyL','.sock','arch','tAeWL','IAeqv','DZsWQ','warn','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','closeSync','getTestFrameworkDetail','kVaip','SDK_CLI_BIN_PATH','3688695OZyhsM','ADIQC','get','YPjMp','../../helpers/classLogger.js','Resolved\x20binary\x20path:\x20','env','debug','matchHookRegex','./framework/constants/testFrameworkConstants.js','VnTXS','map','Setting\x20required\x20permissions\x20to\x20','once','YwbIh','message','../../helpers/helper','tmpdir','1036740rbIsPE','../../helpers/test-observability/utils.js','dgHhF','lazyEntries','OgPlw','zCIip','SbhQU','concat','isDevelopmentEnv','end','LmmVk','createWriteStream','getSdkLanguage','shouldSkipSessionName','path','ppgfT','../utils/apiUtilityMethods.js','requestToUpdateCLI','../../helpers/performance/constants','kBYTG','testFrameworkDetail','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','YAqyB','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20'];a68_0x5a09=function(){return _0x153900;};return a68_0x5a09();}
1
+ const a68_0x151ccb=a68_0x501b;(function(_0x13163f,_0x42ffa5){const _0x2d687f=a68_0x501b,_0x464c91=_0x13163f();while(!![]){try{const _0x47658e=parseInt(_0x2d687f(0x200))/0x1*(parseInt(_0x2d687f(0x26d))/0x2)+-parseInt(_0x2d687f(0x1b3))/0x3*(-parseInt(_0x2d687f(0x1c9))/0x4)+parseInt(_0x2d687f(0x25d))/0x5+parseInt(_0x2d687f(0x271))/0x6+-parseInt(_0x2d687f(0x231))/0x7+-parseInt(_0x2d687f(0x226))/0x8+-parseInt(_0x2d687f(0x1f3))/0x9;if(_0x47658e===_0x42ffa5)break;else _0x464c91['push'](_0x464c91['shift']());}catch(_0x35cd9d){_0x464c91['push'](_0x464c91['shift']());}}}(a68_0x56e6,0x38e1e));function a68_0x501b(_0x17a127,_0x2e15b6){const _0x56e64e=a68_0x56e6();return a68_0x501b=function(_0x501b51,_0x4b8280){_0x501b51=_0x501b51-0x193;let _0x302609=_0x56e64e[_0x501b51];return _0x302609;},a68_0x501b(_0x17a127,_0x2e15b6);}const fs=require('fs'),os=require('os'),url=require(a68_0x151ccb(0x1e9)),path=require(a68_0x151ccb(0x1d5)),{exec}=require(a68_0x151ccb(0x1de)),{https}=require(a68_0x151ccb(0x1ee)),yauzl=require(a68_0x151ccb(0x241)),util=require(a68_0x151ccb(0x19f)),{getFrameworkVersion}=require(a68_0x151ccb(0x24e)),{threadId}=require(a68_0x151ccb(0x203)),PerformanceTester=require(a68_0x151ccb(0x237)),{EVENTS:PerformanceEvents}=require(a68_0x151ccb(0x1df)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a68_0x151ccb(0x220)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a68_0x151ccb(0x202)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a68_0x151ccb(0x214)),{createClassLogger}=require(a68_0x151ccb(0x19b)),TestFrameworkInstance=require(a68_0x151ccb(0x1f4)),HookState=require(a68_0x151ccb(0x21a)),TestFrameworkState=require(a68_0x151ccb(0x199)),AutomationFrameworkState=require('./state/automationFrameworkState.js'),TestFrameworkConstants=require(a68_0x151ccb(0x1b6)),logger=createClassLogger(a68_0x151ccb(0x1e1)),{getBStackAPIUrl}=require(a68_0x151ccb(0x210));class CLIUtils{[a68_0x151ccb(0x1b2)]={};['testFrameworkDetail']={};static[a68_0x151ccb(0x245)](){const _0x165c86=a68_0x151ccb,_0x31a467={};_0x31a467[_0x165c86(0x1d0)]=function(_0x5b8f33,_0x33f488){return _0x5b8f33===_0x33f488;},_0x31a467['yZSsf']='development';const _0x5f0cdd=_0x31a467;return _0x5f0cdd[_0x165c86(0x1d0)](process['env'][_0x165c86(0x228)],_0x5f0cdd[_0x165c86(0x1be)]);}static[a68_0x151ccb(0x25c)](){const _0x3a2803=a68_0x151ccb,_0x551fca={};return _0x551fca['id']=process['env']['BROWSERSTACK_CLI_ENV'],_0x551fca['listen']=_0x3a2803(0x1b7)+process[_0x3a2803(0x1eb)][_0x3a2803(0x228)]+'.sock',_0x551fca;}static[a68_0x151ccb(0x25b)](){const _0x270559=a68_0x151ccb,_0x2e31a3={'qCwNC':function(_0x3fcd63,_0x2b73f8){return _0x3fcd63(_0x2b73f8);},'UiHFH':_0x270559(0x270)};return _0x2e31a3[_0x270559(0x217)](require,_0x2e31a3[_0x270559(0x246)])[_0x270559(0x1a7)];}static['getSdkLanguage'](){const _0x223d30=a68_0x151ccb,_0x3b8c42={};_0x3b8c42[_0x223d30(0x219)]='node';const _0xb74523=_0x3b8c42;return _0xb74523[_0x223d30(0x219)];}static async[a68_0x151ccb(0x21e)](_0x2d2f5b){const _0x4a845f=a68_0x151ccb,_0x38f9af={'jQzuq':'Configuring\x20Cli\x20path.','NZkzz':function(_0x518272,_0x4c6ba4){return _0x518272(_0x4c6ba4);},'hTavb':_0x4a845f(0x1e8)};logger[_0x4a845f(0x248)](_0x38f9af[_0x4a845f(0x1dd)]);const _0x473416=process[_0x4a845f(0x1eb)][_0x4a845f(0x23c)];if(!_0x38f9af[_0x4a845f(0x274)](isNullOrEmpty,_0x473416))return logger[_0x4a845f(0x248)]('Development\x20Cli\x20Path:\x20'+_0x473416),_0x473416;try{const _0x2c601a=this[_0x4a845f(0x263)]();if(_0x38f9af[_0x4a845f(0x274)](isNullOrEmpty,_0x2c601a))throw new Error(_0x38f9af[_0x4a845f(0x1ac)]);const _0xef8504=this[_0x4a845f(0x1c8)](_0x2c601a),_0x3ddeeb=await this['checkAndUpdateCli'](_0xef8504,_0x2c601a,_0x2d2f5b);return logger[_0x4a845f(0x248)](_0x4a845f(0x1b4)+_0x3ddeeb),_0x3ddeeb;}catch(_0x5356c2){logger[_0x4a845f(0x248)](_0x4a845f(0x1ba)+util[_0x4a845f(0x235)](_0x5356c2));}return null;}static async[a68_0x151ccb(0x26b)](_0x52d5bd,_0x24da0c,_0x40cea6){const _0x375fc0=a68_0x151ccb,_0x2ebb32={'lbitA':function(_0x468864){return _0x468864();},'wsNEv':function(_0x3fb7b8,_0x1a3a55){return _0x3fb7b8(_0x1a3a55);},'kIqZg':function(_0x3eed60,_0x42057b,_0x260ef7){return _0x3eed60(_0x42057b,_0x260ef7);},'aAnSI':_0x375fc0(0x23f),'pPkQt':_0x375fc0(0x1e9),'FGHDQ':function(_0x16d11b,_0x581394){return _0x16d11b(_0x581394);},'Jkrup':function(_0x13cda6,_0x370fe8,_0x4e805a){return _0x13cda6(_0x370fe8,_0x4e805a);}};PerformanceTester[_0x375fc0(0x1b8)](PerformanceEvents[_0x375fc0(0x23d)]),logger['info'](_0x375fc0(0x204)+_0x52d5bd);const _0x48e77f=_0x2ebb32[_0x375fc0(0x1f1)](getHostInfo),_0x379a61={'sdk_version':CLIUtils[_0x375fc0(0x25b)](),'os':_0x48e77f['platform'],'os_arch':_0x48e77f[_0x375fc0(0x265)],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x2ebb32['wsNEv'](isNullOrEmpty,_0x52d5bd)&&(_0x379a61[_0x375fc0(0x1ab)]=await this[_0x375fc0(0x23b)](_0x52d5bd+'\x20version'));const _0x22d85d=await this[_0x375fc0(0x20e)](_0x379a61,_0x40cea6);process[_0x375fc0(0x1eb)]['BROWSERSTACK_BINARY_URL']&&(logger[_0x375fc0(0x1cd)](_0x375fc0(0x256)+process[_0x375fc0(0x1eb)][_0x375fc0(0x1a5)]),_0x22d85d[_0x375fc0(0x23f)]['url']=process[_0x375fc0(0x1eb)]['BROWSERSTACK_BINARY_URL']);if(_0x2ebb32['kIqZg'](nestedKeyValue,_0x22d85d,[_0x2ebb32[_0x375fc0(0x229)],_0x2ebb32[_0x375fc0(0x193)]])){logger['debug']('Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20'+_0x379a61[_0x375fc0(0x1ab)]);if(!_0x2ebb32[_0x375fc0(0x247)](isNullOrEmpty,_0x52d5bd)&&this['isBinaryBusy'](_0x52d5bd))return logger[_0x375fc0(0x242)](_0x375fc0(0x1db)+_0x52d5bd),PerformanceTester['end'](PerformanceEvents[_0x375fc0(0x23d)]),_0x52d5bd;const _0x48abe5=await this[_0x375fc0(0x1ce)](_0x2ebb32[_0x375fc0(0x1ff)](nestedKeyValue,_0x22d85d,[_0x2ebb32[_0x375fc0(0x229)],_0x2ebb32[_0x375fc0(0x193)]]),_0x24da0c);return PerformanceTester[_0x375fc0(0x258)](PerformanceEvents[_0x375fc0(0x23d)]),_0x48abe5;}return PerformanceTester[_0x375fc0(0x258)](PerformanceEvents[_0x375fc0(0x23d)]),_0x52d5bd;}static[a68_0x151ccb(0x263)](){const _0x47ddd3=a68_0x151ccb,_0x424515={'yvWnO':function(_0xf5fd99,_0x2a9f6b){return _0xf5fd99(_0x2a9f6b);},'iYCPK':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','jKHgJ':'cli','yLnzt':function(_0x324fa5,_0x2d8adf){return _0x324fa5(_0x2d8adf);}},_0x2cb5eb=this[_0x47ddd3(0x197)]();try{if(_0x424515[_0x47ddd3(0x1a2)](isNullOrEmpty,_0x2cb5eb))throw new Error(_0x424515['iYCPK']);const _0x38f83c=path[_0x47ddd3(0x227)](_0x2cb5eb,_0x424515[_0x47ddd3(0x244)]);return!fs[_0x47ddd3(0x1f5)](_0x38f83c)&&_0x424515[_0x47ddd3(0x1a3)](createDir,_0x38f83c),_0x38f83c;}catch(_0x6683c3){logger['debug'](_0x47ddd3(0x260)+util[_0x47ddd3(0x235)](_0x6683c3));}}static[a68_0x151ccb(0x197)](){const _0x5ed7ec=a68_0x151ccb,_0x46bef5={'xnEfX':'.browserstack','yJhix':function(_0x30b73f,_0x22b341){return _0x30b73f(_0x22b341);},'sRJux':function(_0x5593bd,_0x8facfd){return _0x5593bd(_0x8facfd);},'jDShS':function(_0xbd5220,_0x3612de){return _0xbd5220(_0x3612de);},'iDFRf':function(_0x4589ec,_0x3478b3){return _0x4589ec(_0x3478b3);}},_0x26139b=[process[_0x5ed7ec(0x1eb)][_0x5ed7ec(0x1cb)],path['join'](os['homedir'](),_0x46bef5[_0x5ed7ec(0x24d)]),path[_0x5ed7ec(0x227)](os['tmpdir'](),_0x46bef5[_0x5ed7ec(0x24d)])];for(const _0x141eeb of _0x26139b){if(_0x46bef5[_0x5ed7ec(0x236)](isNullOrEmpty,_0x141eeb))continue;try{if(fs[_0x5ed7ec(0x1f5)](_0x141eeb)){logger[_0x5ed7ec(0x248)](_0x5ed7ec(0x1fa)+_0x141eeb+_0x5ed7ec(0x1b1));if(!_0x46bef5[_0x5ed7ec(0x236)](isModifiable,_0x141eeb)){logger['debug'](_0x5ed7ec(0x25a)+_0x141eeb);const _0x3fbd93=_0x46bef5[_0x5ed7ec(0x222)](setReadWriteExecuteAccess,_0x141eeb);if(!_0x46bef5['jDShS'](isTrue,_0x3fbd93)){logger['warn'](_0x5ed7ec(0x24c)+_0x141eeb);continue;}}}else{logger[_0x5ed7ec(0x248)](_0x5ed7ec(0x23e)+_0x141eeb),_0x46bef5[_0x5ed7ec(0x222)](createDir,_0x141eeb),logger[_0x5ed7ec(0x248)](_0x5ed7ec(0x25a)+_0x141eeb);const _0x294863=_0x46bef5[_0x5ed7ec(0x222)](setReadWriteExecuteAccess,_0x141eeb);!_0x46bef5['iDFRf'](isTrue,_0x294863)&&logger[_0x5ed7ec(0x242)](_0x5ed7ec(0x24c)+_0x141eeb);}return _0x141eeb;}catch(_0xb53fdd){logger[_0x5ed7ec(0x1fc)](_0x5ed7ec(0x23a)+util['format'](_0xb53fdd));}}return null;}static[a68_0x151ccb(0x1c8)](_0x1e8e5f){const _0x17a32a=a68_0x151ccb,_0x2895cf={};_0x2895cf[_0x17a32a(0x1bb)]=function(_0x251d5b,_0xb95d26){return _0x251d5b>_0xb95d26;},_0x2895cf[_0x17a32a(0x1b5)]=function(_0x4901ab,_0x4d0cf4){return _0x4901ab>_0x4d0cf4;};const _0x428fbd=_0x2895cf;try{if(!fs[_0x17a32a(0x1f5)](_0x1e8e5f)||!fs[_0x17a32a(0x26f)](_0x1e8e5f)[_0x17a32a(0x1af)]())return'';const _0x29d6b6=fs['readdirSync'](_0x1e8e5f)[_0x17a32a(0x221)](_0x58666e=>path[_0x17a32a(0x227)](_0x1e8e5f,_0x58666e))['filter'](_0x1f96b8=>fs['statSync'](_0x1f96b8)[_0x17a32a(0x238)]()&&path[_0x17a32a(0x1e0)](_0x1f96b8)[_0x17a32a(0x1c3)](_0x17a32a(0x1e6)));if(_0x428fbd[_0x17a32a(0x1b5)](_0x29d6b6[_0x17a32a(0x1cf)],0x0)){const _0x5239e3=_0x29d6b6[_0x17a32a(0x221)](_0xcf75ec=>({'filePath':_0xcf75ec,'mtime':fs[_0x17a32a(0x26f)](_0xcf75ec)['mtime']}))[_0x17a32a(0x21b)]((_0x3301b9,_0x28bf4d)=>{const _0x5282e9=_0x17a32a;if(!_0x3301b9||!_0x3301b9['mtime'])return _0x28bf4d;if(_0x428fbd['RnyIN'](_0x28bf4d['mtime'],_0x3301b9[_0x5282e9(0x25e)]))return _0x28bf4d;return _0x3301b9;},{});return _0x5239e3?_0x5239e3[_0x17a32a(0x1ef)]:'';}return'';}catch(_0x1d3ef8){return logger[_0x17a32a(0x1fc)](_0x17a32a(0x195)+util[_0x17a32a(0x235)](_0x1d3ef8)),'';}}static [a68_0x151ccb(0x20e)]=async(_0x375812,_0x559cbb)=>{const _0x4a5de7=a68_0x151ccb,_0x15bdb9={'tnvwU':function(_0x341ce9,_0x2500e3,_0x82ab19,_0x167b45,_0x19d75d){return _0x341ce9(_0x2500e3,_0x82ab19,_0x167b45,_0x19d75d);},'fKgfH':_0x4a5de7(0x19e)},_0x267f91={};_0x267f91['qs']=_0x375812;const _0x1b02a3=await _0x15bdb9[_0x4a5de7(0x232)](nodeRequest,_0x15bdb9['fKgfH'],UPDATED_CLI_ENDPOINT,_0x267f91,_0x559cbb);return logger['debug'](_0x4a5de7(0x1d4)+JSON[_0x4a5de7(0x22a)](_0x1b02a3)),_0x1b02a3;};static['isBinaryBusy'](_0x44777e){const _0x211a3c=a68_0x151ccb;try{const _0x55a255=fs['openSync'](_0x44777e,'r+');return fs[_0x211a3c(0x1e2)](_0x55a255),![];}catch(_0x110e5f){if(BINARY_BUSY_ERROR_CODES['includes'](_0x110e5f[_0x211a3c(0x1d7)]))return logger[_0x211a3c(0x248)]('Binary\x20is\x20busy:\x20'+_0x44777e),!![];return logger[_0x211a3c(0x248)](_0x211a3c(0x1c6)+_0x110e5f[_0x211a3c(0x1fb)]),![];}}static[a68_0x151ccb(0x23b)](_0x2bfa72,_0x45c9b1=''){const _0x29f197=a68_0x151ccb,_0x4c3af0={'gAfqz':_0x29f197(0x1a7),'QWver':function(_0x5b8ba7,_0x263eb0){return _0x5b8ba7(_0x263eb0);},'fpYXx':_0x29f197(0x20b),'VbleQ':function(_0x1caeee,_0x541da4){return _0x1caeee(_0x541da4);},'nFfmq':function(_0x365fac,_0x18a4dc,_0x5e240c,_0x3744ae){return _0x365fac(_0x18a4dc,_0x5e240c,_0x3744ae);},'NOulu':_0x29f197(0x1fc)};return new Promise((_0x5407f2,_0x110abe)=>{const _0x568449=_0x29f197,_0x3daaf2={'joDsR':_0x4c3af0['gAfqz'],'oSNdC':function(_0x3f418f,_0x1bb435){return _0x4c3af0['QWver'](_0x3f418f,_0x1bb435);},'nBNir':_0x4c3af0[_0x568449(0x1b0)],'XYFIa':function(_0x31c6fc,_0x4bf5de){return _0x4c3af0['VbleQ'](_0x31c6fc,_0x4bf5de);},'XxsCk':function(_0x4c4972,_0x47827f){const _0x2cf1c2=_0x568449;return _0x4c3af0[_0x2cf1c2(0x1bd)](_0x4c4972,_0x47827f);}},_0x12e7ee={};_0x12e7ee[_0x568449(0x194)]=_0x45c9b1,_0x12e7ee[_0x568449(0x216)]=0x1388;const _0x17c301=_0x4c3af0[_0x568449(0x1a6)](exec,_0x2bfa72,_0x12e7ee,(_0x52b671,_0x4a0b28,_0x169c2e)=>{const _0x128773=_0x568449;if(_0x52b671){if(_0x2bfa72[_0x128773(0x209)](_0x3daaf2[_0x128773(0x1fd)])&&(_0x4a0b28[_0x128773(0x21f)]()||_0x169c2e['trim']())){const _0x1b8df0=_0x4a0b28[_0x128773(0x21f)]()||_0x169c2e[_0x128773(0x21f)]();logger[_0x128773(0x248)](_0x128773(0x267)+_0x1b8df0+'\x22'),_0x3daaf2['oSNdC'](_0x5407f2,_0x1b8df0);}else _0x3daaf2[_0x128773(0x1ca)](_0x5407f2,_0x169c2e[_0x128773(0x21f)]()||_0x3daaf2[_0x128773(0x1ed)]);}else logger[_0x128773(0x248)](_0x128773(0x1f0)+_0x4a0b28[_0x128773(0x21f)]()+'\x22'),_0x3daaf2[_0x128773(0x205)](_0x5407f2,_0x4a0b28[_0x128773(0x21f)]());});_0x17c301['on'](_0x4c3af0[_0x568449(0x26a)],()=>{const _0x511a3d=_0x568449;_0x3daaf2[_0x511a3d(0x233)](_0x5407f2,_0x3daaf2[_0x511a3d(0x1ed)]);});});}static [a68_0x151ccb(0x1ce)]=async(_0x457d24,_0x3747a1)=>{const _0xff754e=a68_0x151ccb,_0x8ace55={'mFdAW':function(_0x37c764,_0x4f6de9){return _0x37c764(_0x4f6de9);},'mgbqf':'Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','vajzQ':function(_0x7abb7,_0x482ce7){return _0x7abb7(_0x482ce7);},'WHals':_0xff754e(0x1d6),'dDOUn':_0xff754e(0x1fc),'eCpeZ':function(_0x5397fe,_0x184a23){return _0x5397fe(_0x184a23);}};PerformanceTester[_0xff754e(0x1b8)](PerformanceEvents['SDK_CLI_DOWNLOAD']),logger[_0xff754e(0x248)](_0xff754e(0x212)+_0x457d24);try{const _0x32d0f3=url[_0xff754e(0x24a)](_0x457d24),_0x57b0a8=path['join'](_0x3747a1,_0xff754e(0x259)+process[_0xff754e(0x1e5)]+'.zip'),_0x1743a2=fs[_0xff754e(0x20f)](_0x57b0a8);return new Promise((_0x2266c7,_0xdccc50)=>{const _0x10d711=_0xff754e,_0x58834d={'vUGGW':function(_0xa32aeb,_0x23582){return _0x8ace55['mFdAW'](_0xa32aeb,_0x23582);},'eAIeT':_0x8ace55[_0x10d711(0x198)],'iIpnU':function(_0x550981,_0x1a7ae3){const _0x475f7e=_0x10d711;return _0x8ace55[_0x475f7e(0x213)](_0x550981,_0x1a7ae3);},'Slhnf':_0x8ace55[_0x10d711(0x1bf)],'OPOvc':_0x8ace55[_0x10d711(0x21d)],'GbPqb':function(_0x3a97c8,_0x184749){return _0x8ace55['eCpeZ'](_0x3a97c8,_0x184749);}};https[_0x10d711(0x196)](_0x32d0f3,function(_0x58a282){const _0x1ea826=_0x10d711,_0x26e282={'zGOQo':_0x58834d[_0x1ea826(0x22e)],'mqKQM':function(_0x26574c,_0x66d3aa){return _0x58834d['iIpnU'](_0x26574c,_0x66d3aa);},'jdWpn':_0x58834d[_0x1ea826(0x19d)],'Vhkdg':function(_0x645668,_0x1a3689){const _0x7da834=_0x1ea826;return _0x58834d[_0x7da834(0x1dc)](_0x645668,_0x1a3689);}},_0x1c1229=null;_0x58a282[_0x1ea826(0x1d1)](_0x1743a2),_0x58a282['on'](_0x58834d['OPOvc'],function(_0xc75b49){const _0x4574c6=_0x1ea826;logger[_0x4574c6(0x1fc)](util[_0x4574c6(0x235)](_0x26e282['zGOQo'],_0xc75b49)),PerformanceTester[_0x4574c6(0x258)](PerformanceEvents[_0x4574c6(0x26c)],![],util[_0x4574c6(0x235)](_0xc75b49)),_0x26e282[_0x4574c6(0x253)](_0xdccc50,_0xc75b49);}),_0x1743a2['on'](_0x58834d['OPOvc'],function(_0x1e3136){const _0x1ef58c=_0x1ea826;logger[_0x1ef58c(0x1fc)](util['format'](_0x26e282[_0x1ef58c(0x22d)],_0x1e3136)),PerformanceTester[_0x1ef58c(0x258)](PerformanceEvents[_0x1ef58c(0x26c)],![],util[_0x1ef58c(0x235)](_0x1e3136)),_0x26e282[_0x1ef58c(0x272)](_0xdccc50,_0x1e3136);}),CLIUtils[_0x1ea826(0x266)](_0x1743a2,_0x1c1229,_0x57b0a8,_0x3747a1,_0x215d2a=>{const _0x55c2a5=_0x1ea826;PerformanceTester['end'](PerformanceEvents[_0x55c2a5(0x26c)]),_0x26e282[_0x55c2a5(0x272)](_0x2266c7,_0x215d2a);},_0x50c859=>{const _0x22d486=_0x1ea826;PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x22d486(0x235)](_0x50c859)),_0x58834d[_0x22d486(0x1dc)](_0xdccc50,_0x50c859);});})['on'](_0x8ace55[_0x10d711(0x21d)],function(_0x150aa2){const _0x5711bb=_0x10d711;logger[_0x5711bb(0x1fc)](_0x5711bb(0x20c)+util[_0x5711bb(0x235)](_0x150aa2)),PerformanceTester['end'](PerformanceEvents[_0x5711bb(0x26c)],![],util[_0x5711bb(0x235)](_0x150aa2)),_0x58834d['GbPqb'](_0xdccc50,_0x150aa2);});});}catch(_0x3c4129){PerformanceTester[_0xff754e(0x258)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util['format'](_0x3c4129)),logger[_0xff754e(0x248)](_0xff754e(0x252)+util['format'](_0x3c4129));}};static[a68_0x151ccb(0x266)](_0x4b42c4,_0x1914b5,_0xe6182e,_0x20a6df,_0x58653f,_0x14fa10){const _0x5766f7=a68_0x151ccb,_0x911fff={'tuOoo':function(_0x16c4d9,_0x1de2c9){return _0x16c4d9(_0x1de2c9);},'WjWHO':function(_0x456e73,_0x1a42ee){return _0x456e73!==_0x1a42ee;},'Lnpfj':_0x5766f7(0x1ae),'DLXYM':_0x5766f7(0x243),'KjBNr':function(_0x2b1247,_0x1871e8){return _0x2b1247(_0x1871e8);},'mnfpe':_0x5766f7(0x1b9),'IzaRC':'error','nMlZH':'end','LMfKb':_0x5766f7(0x218),'qqGfH':function(_0x5511f1,_0x106067){return _0x5511f1(_0x106067);}};_0x4b42c4['on'](_0x911fff['LMfKb'],function(){const _0x2877ff=_0x5766f7,_0x55bd9f={'DxZDH':_0x911fff[_0x2877ff(0x1aa)],'ZAucB':function(_0x264965,_0xc1d2f2){const _0x4eb326=_0x2877ff;return _0x911fff[_0x4eb326(0x207)](_0x264965,_0xc1d2f2);},'jbQPE':_0x911fff['nMlZH'],'rHogk':function(_0xc25bec,_0x5b9755){const _0x34ab82=_0x2877ff;return _0x911fff[_0x34ab82(0x20d)](_0xc25bec,_0x5b9755);},'EUzLO':_0x911fff[_0x2877ff(0x19a)]},_0x249252={};_0x249252[_0x2877ff(0x1d2)]=!![],yauzl['open'](_0xe6182e,_0x249252,function(_0x4aa04a,_0x3a5170){const _0x314ea1=_0x2877ff,_0x29ca13={'GIoSR':function(_0x4ab395,_0xf763f6){return _0x911fff['tuOoo'](_0x4ab395,_0xf763f6);},'IPcRW':function(_0x2b9f4f,_0x12e82f){return _0x911fff['tuOoo'](_0x2b9f4f,_0x12e82f);},'BlDCf':function(_0x36f9aa,_0x47e2e1){const _0x2b3b0d=a68_0x501b;return _0x911fff[_0x2b3b0d(0x20d)](_0x36f9aa,_0x47e2e1);},'RhIVz':_0x911fff[_0x314ea1(0x1d8)],'HMYHH':function(_0x4c31fc,_0x5d8c2b){const _0x161594=_0x314ea1;return _0x911fff[_0x161594(0x1cc)](_0x4c31fc,_0x5d8c2b);},'bZqKH':_0x911fff[_0x314ea1(0x1bc)]};if(_0x4aa04a){_0x911fff[_0x314ea1(0x1c0)](_0x14fa10,_0x4aa04a);return;}_0x3a5170['readEntry'](),_0x3a5170['on'](_0x911fff['mnfpe'],_0x59d343=>{const _0x4eca54=_0x314ea1,_0x3009e9={'Ktxdc':_0x55bd9f['DxZDH'],'wIVRi':function(_0x487810,_0x4719b9){return _0x55bd9f['ZAucB'](_0x487810,_0x4719b9);},'PNhlE':_0x55bd9f[_0x4eca54(0x1c1)]};if(/\/$/['test'](_0x59d343[_0x4eca54(0x206)])){_0x3a5170[_0x4eca54(0x24b)]();return;}!_0x1914b5&&(_0x1914b5=_0x59d343[_0x4eca54(0x206)]);if(_0x55bd9f['rHogk'](_0x59d343['fileName'],_0x1914b5))_0x3a5170['readEntry']();else{const _0x5dd7ed=_0x59d343[_0x4eca54(0x206)],_0x52821c=path[_0x4eca54(0x227)](_0x20a6df,_0x5dd7ed+_0x4eca54(0x273)+process['pid']);let _0x326fc3;try{_0x326fc3=fs[_0x4eca54(0x20f)](_0x52821c);}catch(_0x55db98){if(BINARY_BUSY_ERROR_CODES[_0x4eca54(0x209)](_0x55db98['code'])){const _0xbb54c5=path[_0x4eca54(0x227)](_0x20a6df,_0x5dd7ed);if(fs[_0x4eca54(0x1f5)](_0xbb54c5)){logger[_0x4eca54(0x242)](_0x4eca54(0x250)+_0x5dd7ed),fs[_0x4eca54(0x240)](_0xe6182e,_0x12b01c=>{const _0x418e60=_0x4eca54;_0x12b01c&&logger[_0x418e60(0x242)](_0x418e60(0x22f)+_0xe6182e);}),_0x55bd9f[_0x4eca54(0x230)](_0x58653f,_0xbb54c5);return;}logger[_0x4eca54(0x242)](_0x4eca54(0x1d9)+_0x5dd7ed);}_0x55bd9f['ZAucB'](_0x14fa10,_0x55db98);return;}_0x326fc3['on'](_0x55bd9f[_0x4eca54(0x215)],_0x190bbe=>{const _0x32dba1=_0x4eca54;if(BINARY_BUSY_ERROR_CODES[_0x32dba1(0x209)](_0x190bbe['code'])){const _0x48d0ac=path[_0x32dba1(0x227)](_0x20a6df,_0x5dd7ed);_0x326fc3['close'](),fs[_0x32dba1(0x1f5)](_0x48d0ac)?(logger[_0x32dba1(0x242)](_0x32dba1(0x1da)+_0x190bbe[_0x32dba1(0x1fb)]),_0x3a5170[_0x32dba1(0x218)](),fs[_0x32dba1(0x240)](_0xe6182e,_0x1d98fb=>{const _0x5e1efd=_0x32dba1;_0x1d98fb&&logger['warn'](_0x5e1efd(0x22f)+_0xe6182e);}),_0x29ca13['GIoSR'](_0x58653f,_0x48d0ac)):(logger[_0x32dba1(0x242)](_0x32dba1(0x224)+_0x190bbe[_0x32dba1(0x1fb)]),fs[_0x32dba1(0x240)](_0x52821c,()=>{}),_0x29ca13[_0x32dba1(0x1f2)](_0x14fa10,_0x190bbe));}else fs[_0x32dba1(0x240)](_0x52821c,()=>{}),_0x29ca13[_0x32dba1(0x1f2)](_0x14fa10,_0x190bbe);}),_0x3a5170[_0x4eca54(0x1a1)](_0x59d343,function(_0x5b233a,_0x9787e3){const _0x2aaead=_0x4eca54,_0x13d4e2={};_0x13d4e2[_0x2aaead(0x24f)]=_0x3009e9[_0x2aaead(0x234)];const _0x3f219a=_0x13d4e2;if(_0x5b233a){fs[_0x2aaead(0x240)](_0x52821c,()=>{}),_0x3009e9['wIVRi'](_0x14fa10,_0x5b233a);return;}_0x9787e3['on'](_0x3009e9[_0x2aaead(0x1f6)],function(){const _0x210976=_0x2aaead;_0x326fc3[_0x210976(0x258)](),_0x326fc3['on'](_0x3f219a[_0x210976(0x24f)],function(){const _0x3964e7=_0x210976;_0x3a5170[_0x3964e7(0x24b)]();});}),_0x9787e3[_0x2aaead(0x1d1)](_0x326fc3);});}}),_0x3a5170['on'](_0x911fff[_0x314ea1(0x19a)],_0x54bfdf=>{_0x55bd9f['ZAucB'](_0x14fa10,_0x54bfdf);}),_0x3a5170[_0x314ea1(0x1c4)](_0x911fff[_0x314ea1(0x249)],()=>{const _0x2f10ad=_0x314ea1,_0x20f6db={'EHIEK':function(_0x2591b6,_0x22ab8a){const _0x52ce88=a68_0x501b;return _0x29ca13[_0x52ce88(0x1c7)](_0x2591b6,_0x22ab8a);},'GqprI':_0x29ca13[_0x2f10ad(0x1f7)],'HEayS':function(_0x1dec17,_0x4ecd9b){const _0x5c35d2=_0x2f10ad;return _0x29ca13[_0x5c35d2(0x1f2)](_0x1dec17,_0x4ecd9b);},'DZIKg':function(_0x2cfca8,_0x20cc65){const _0x2e0bc3=_0x2f10ad;return _0x29ca13[_0x2e0bc3(0x1e4)](_0x2cfca8,_0x20cc65);}};fs[_0x2f10ad(0x240)](_0xe6182e,_0x56d9ce=>{const _0x13d0ba=_0x2f10ad;_0x56d9ce&&logger[_0x13d0ba(0x242)](_0x13d0ba(0x22f)+_0xe6182e);});const _0x19b2f3=path[_0x2f10ad(0x227)](_0x20a6df,_0x1914b5+_0x2f10ad(0x273)+process[_0x2f10ad(0x1e5)]),_0x3e2645=path[_0x2f10ad(0x227)](_0x20a6df,_0x1914b5);fs[_0x2f10ad(0x225)](_0x19b2f3,_0x29ca13[_0x2f10ad(0x264)],function(_0x20f801){const _0x38586b=_0x2f10ad;if(_0x20f801){_0x3a5170['close'](),fs[_0x38586b(0x240)](_0x19b2f3,()=>{}),_0x29ca13[_0x38586b(0x1c2)](_0x14fa10,_0x20f801);return;}fs[_0x38586b(0x1e3)](_0x19b2f3,_0x3e2645,function(_0x4b40b3){const _0x123d89=_0x38586b;if(_0x4b40b3){if(_0x20f6db[_0x123d89(0x1ea)](_0x4b40b3[_0x123d89(0x1d7)],_0x20f6db[_0x123d89(0x254)])){_0x3a5170['close'](),fs[_0x123d89(0x240)](_0x19b2f3,()=>{}),_0x20f6db[_0x123d89(0x20a)](_0x14fa10,_0x4b40b3);return;}logger[_0x123d89(0x242)](_0x123d89(0x251)+_0x4b40b3[_0x123d89(0x1fb)]);try{fs['copyFileSync'](_0x19b2f3,_0x3e2645);}catch(_0x298caa){_0x3a5170['close'](),fs[_0x123d89(0x240)](_0x19b2f3,()=>{}),_0x20f6db[_0x123d89(0x1a0)](_0x14fa10,_0x298caa);return;}fs[_0x123d89(0x240)](_0x19b2f3,_0x5803bb=>{const _0x262f04=_0x123d89;_0x5803bb&&logger['warn'](_0x262f04(0x25f)+_0x5803bb[_0x262f04(0x1fb)]);});}_0x3a5170[_0x123d89(0x218)](),_0x20f6db['DZIKg'](_0x58653f,_0x3e2645);});});});});});}static[a68_0x151ccb(0x255)](){const _0x6ddc4=a68_0x151ccb;if(process[_0x6ddc4(0x1eb)][_0x6ddc4(0x1a8)])return JSON[_0x6ddc4(0x24a)](process[_0x6ddc4(0x1eb)][_0x6ddc4(0x1a8)]);return this[_0x6ddc4(0x211)];}static['getAutomationFrameworkDetail'](){const _0x324518=a68_0x151ccb;if(process['env'][_0x324518(0x26e)])return JSON[_0x324518(0x24a)](process[_0x324518(0x1eb)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']);return this[_0x324518(0x1b2)];}static['setFrameworkDetail'](_0x215637,_0x5c53c0){const _0x28e8d0=a68_0x151ccb,_0x26dfad={'JaJCb':_0x28e8d0(0x21c),'PSlEx':function(_0x363626,_0x5244aa){return _0x363626||_0x5244aa;},'lKGge':function(_0x4701c3,_0x507903){return _0x4701c3(_0x507903);},'KuxQp':function(_0x1f5bdf,_0x2b2e36){return _0x1f5bdf(_0x2b2e36);}},_0x1e8d24=_0x26dfad['JaJCb'][_0x28e8d0(0x1ad)]('|');let _0x52029d=0x0;while(!![]){switch(_0x1e8d24[_0x52029d++]){case'0':_0x26dfad[_0x28e8d0(0x22b)](!_0x215637,!_0x5c53c0)&&logger[_0x28e8d0(0x248)](_0x28e8d0(0x1c5)+_0x215637+_0x28e8d0(0x1e7)+_0x5c53c0);continue;case'1':this[_0x28e8d0(0x211)]={'name':_0x215637,'version':{[_0x215637]:_0x26dfad['lKGge'](getFrameworkVersion,_0x215637)}};continue;case'2':this[_0x28e8d0(0x1b2)]={'name':_0x5c53c0,'version':_0x26dfad[_0x28e8d0(0x269)](getFrameworkVersion,_0x5c53c0)};continue;case'3':process[_0x28e8d0(0x1eb)][_0x28e8d0(0x1a8)]=JSON[_0x28e8d0(0x22a)](this[_0x28e8d0(0x211)]);continue;case'4':process[_0x28e8d0(0x1eb)][_0x28e8d0(0x26e)]=JSON['stringify'](this[_0x28e8d0(0x1b2)]);continue;}break;}}static['getHookRegistryKey'](_0xe87b10,_0x5a42f4){return _0xe87b10+':'+_0x5a42f4;}static[a68_0x151ccb(0x1a4)](){const _0xde209=a68_0x151ccb;return process[_0xde209(0x1e5)]+':'+threadId;}static[a68_0x151ccb(0x1f8)](_0x2df245){const _0xbfed0e=a68_0x151ccb;if(_0x2df245['testContextOptions']&&_0x2df245[_0xbfed0e(0x261)]['skipSessionName'])return!![];return![];}static[a68_0x151ccb(0x19c)](_0x138ac7){const _0x2d6a17=a68_0x151ccb;if(_0x138ac7['testContextOptions']&&_0x138ac7[_0x2d6a17(0x261)][_0x2d6a17(0x208)])return!![];return![];}static[a68_0x151ccb(0x201)](_0x10fd65){const _0x3db6e1=a68_0x151ccb,_0x50ad46=new RegExp(TestFrameworkConstants[_0x3db6e1(0x1d3)]);return _0x50ad46[_0x3db6e1(0x1f9)](_0x10fd65);}static[a68_0x151ccb(0x239)](_0x4e0ca2,_0x54f4b8){const _0x22ad3c=a68_0x151ccb,_0x21fbc1={};_0x21fbc1[_0x22ad3c(0x1ec)]=function(_0x457b83,_0x5e6b04){return _0x457b83!==_0x5e6b04;},_0x21fbc1[_0x22ad3c(0x22c)]=function(_0x1a3829,_0x4c894c){return _0x1a3829===_0x4c894c;},_0x21fbc1[_0x22ad3c(0x257)]=_0x22ad3c(0x1fe);const _0x5427b2=_0x21fbc1;for(const [_0x2b8aae,_0x3b0c56]of Object[_0x22ad3c(0x1a9)](_0x54f4b8)){if(_0x5427b2[_0x22ad3c(0x1ec)](_0x3b0c56,null)&&_0x5427b2[_0x22ad3c(0x22c)](typeof _0x3b0c56,_0x5427b2[_0x22ad3c(0x257)])&&!Array[_0x22ad3c(0x268)](_0x3b0c56))_0x4e0ca2[_0x2b8aae]=this[_0x22ad3c(0x239)](_0x4e0ca2[_0x2b8aae]||{},_0x3b0c56);else Array['isArray'](_0x3b0c56)?_0x4e0ca2[_0x2b8aae]=(_0x4e0ca2[_0x2b8aae]||[])[_0x22ad3c(0x262)](_0x3b0c56):_0x4e0ca2[_0x2b8aae]=_0x3b0c56;}return _0x4e0ca2;}}module[a68_0x151ccb(0x223)]=CLIUtils;function a68_0x56e6(){const _0x4811a1=['Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','vUGGW','jQzuq','child_process','../../helpers/performance/constants','basename','CLIUtils','closeSync','rename','HMYHH','pid','binary-',',\x20automationFramework=','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','url','EHIEK','env','TsQaG','nBNir','follow-redirects','filePath','Resolving\x20with\x20stdout:\x20\x22','lbitA','GIoSR','1818360GKixZA','./instances/testFrameworkInstance.js','existsSync','PNhlE','RhIVz','shouldSkipSessionName','test','Folder\x20','message','error','joDsR','object','Jkrup','6KDtbzW','matchHookRegex','../../helpers/helper','worker_threads','Current\x20CLI\x20Path\x20Found:\x20','XYFIa','fileName','qqGfH','skipSessionStatus','includes','HEayS','SHELL_EXECUTE_ERROR','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','WjWHO','requestToUpdateCLI','createWriteStream','../utils/apiUtilityMethods.js','testFrameworkDetail','Downloading\x20SDK\x20binary\x20from:\x20','vajzQ','../utils/constants','EUzLO','timeout','qCwNC','close','odjIX','./state/hookState.js','reduce','0|1|2|4|3','dDOUn','setupCliPath','trim','../../helpers/utilities','map','sRJux','exports','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','chmod','1229320OlAdRA','join','BROWSERSTACK_CLI_ENV','aAnSI','stringify','PSlEx','AqPrP','jdWpn','eAIeT','Failed\x20to\x20delete\x20zip\x20file:\x20','ZAucB','455658QgKUPq','tnvwU','XxsCk','Ktxdc','format','yJhix','../../helpers/performance/performance-tester.js','isFile','mergeObject','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','runShellCommand','SDK_CLI_BIN_PATH','SDK_CLI_CHECK_UPDATE','Folder\x20does\x20not\x20exist:\x20','data','unlink','yauzl','warn','0755','jKHgJ','isDevelopmentEnv','UiHFH','FGHDQ','debug','nMlZH','parse','readEntry','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','xnEfX','../../helpers/test-observability/utils.js','WuCwZ','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','mqKQM','GqprI','getTestFrameworkDetail','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','CbhdC','end','downloaded_file_','Setting\x20required\x20permissions\x20to\x20','getSdkVersion','getCLIParamsForDevEnv','1731960gqjrFf','mtime','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','testContextOptions','concat','getCliDir','bZqKH','arch','downloadFileStream','CLI\x20version\x20found\x20despite\x20error:\x20\x22','isArray','KuxQp','NOulu','checkAndUpdateCli','SDK_CLI_DOWNLOAD','49076Nabwqg','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','statSync','../../../package.json','56274RaxvID','Vhkdg','.tmp.','NZkzz','pPkQt','cwd','Error\x20while\x20reading\x20CLI\x20path:\x20','get','getWritableDir','mgbqf','./state/testFrameworkState.js','IzaRC','../../helpers/classLogger.js','shouldSkipSessionStatus','Slhnf','GET','util','DZIKg','openReadStream','yvWnO','yLnzt','getCurrentInstanceName','BROWSERSTACK_BINARY_URL','nFfmq','version','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','entries','LMfKb','cli_version','hTavb','split','EXDEV','isDirectory','fpYXx','\x20already\x20exists','automationFrameworkDetail','452370DaCcGK','Resolved\x20binary\x20path:\x20','NksBP','./framework/constants/testFrameworkConstants.js','unix:/tmp/sdk-platform-','start','entry','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','RnyIN','DLXYM','QWver','yZSsf','WHals','KjBNr','jbQPE','IPcRW','startsWith','once','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','BlDCf','getExistingCliPath','4vroLdh','oSNdC','BROWSERSTACK_FILES_DIR','tuOoo','info','downloadLatestBinary','length','NqGFy','pipe','lazyEntries','HOOK_REGEX','response\x20','path','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','code','Lnpfj','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'];a68_0x56e6=function(){return _0x4811a1;};return a68_0x56e6();}
@@ -1 +1 @@
1
- 'use strict';function a69_0x8c44(_0x1082fa,_0x48f70f){const _0x74624b=a69_0x7462();return a69_0x8c44=function(_0x8c4443,_0x3c64eb){_0x8c4443=_0x8c4443-0x1e5;let _0x5cb997=_0x74624b[_0x8c4443];return _0x5cb997;},a69_0x8c44(_0x1082fa,_0x48f70f);}const a69_0x417612=a69_0x8c44;(function(_0xe0f5bf,_0x16e1d6){const _0x4ab3f8=a69_0x8c44,_0x1be395=_0xe0f5bf();while(!![]){try{const _0x24deab=parseInt(_0x4ab3f8(0x1f6))/0x1+-parseInt(_0x4ab3f8(0x200))/0x2*(parseInt(_0x4ab3f8(0x1e7))/0x3)+parseInt(_0x4ab3f8(0x20b))/0x4+-parseInt(_0x4ab3f8(0x1f4))/0x5+-parseInt(_0x4ab3f8(0x1fa))/0x6*(parseInt(_0x4ab3f8(0x1f5))/0x7)+parseInt(_0x4ab3f8(0x22f))/0x8*(-parseInt(_0x4ab3f8(0x224))/0x9)+parseInt(_0x4ab3f8(0x213))/0xa;if(_0x24deab===_0x16e1d6)break;else _0x1be395['push'](_0x1be395['shift']());}catch(_0x3ea77c){_0x1be395['push'](_0x1be395['shift']());}}}(a69_0x7462,0x7e1af));const BrowserstackCLI=require(a69_0x417612(0x225)),helper=require(a69_0x417612(0x1f0)),AutomationFramework=require(a69_0x417612(0x20c)),TestFrameworkConstants=require(a69_0x417612(0x227)),PlaywrightDriverModule=require(a69_0x417612(0x1f1)),TestInfo=require('./TestInfo'),TestHubModule=require(a69_0x417612(0x218)),{createClassLogger}=require(a69_0x417612(0x234)),logger=createClassLogger(a69_0x417612(0x228));function a69_0x7462(){const _0x2a8f8f=['1797680ecaoAf','./framework/automationFramework','toObject','HoDME','Custom\x20tag\x20value\x20must\x20be\x20a\x20string','get','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','setTestDetails','17173790EODFDI','BmSPu',':jest-','testLevelTags','clearTags','./modules/testhubModule','getTestLevelTags','vhWAV','modules','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','KEY_CUSTOM_TAGS','trim','debug',',\x20finalTags=','exports','values','name','9EsmgfH','./browserstackCLI','string','./framework/constants/testFrameworkConstants','CustomTagManager','jest','bCcYg','EKPpE','getTestFramework',',\x20existingTags=','[CustomTagManager]\x20setCustomTags:\x20Updated\x20existing\x20tag\x20key=','4125760DQVXhk','kWJZH','getTrackedInstance','stringify','getState','../../helpers/classLogger','MBYTf','POST','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','testhubConfig','parseCommaSeparatedValues','./state/testFrameworkState','includes','582nidPtA','TEST','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','getTestDetails','rAWjW','__jestCurrentTestIdentifier','FUYvE','isRunning','ShUen','../../helpers/helper','./modules/playwrightDriverModule','ziQGY','ePLVn','2266380GiBcDT','28VfWNiB','650064zjzyYJ','hQcoM','getTestUUID','currentTest','503598zKAFHL','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','multi_dropdown','getAllData','field_type','./state/hookState','10264jpujfx','buildLevelTags',',\x20key=','resolveInstance','EktNo','SulSW','getInstance',',\x20values=','getTestFrameworkDetail','FCKJj','addMultipleEntries'];a69_0x7462=function(){return _0x2a8f8f;};return a69_0x7462();}class CustomTagManager{static [a69_0x417612(0x201)]={};static [a69_0x417612(0x216)]={};static['setCustomTags'](_0xc3d3fc,_0x2906da,_0x30ba5e=![]){const _0x46daa3=a69_0x417612,_0x3b3bfa={'MBYTf':function(_0x4ded38,_0x5373a1){return _0x4ded38!==_0x5373a1;},'bCcYg':_0x46daa3(0x226),'rAWjW':'Custom\x20tag\x20key\x20must\x20be\x20a\x20string','HoDME':_0x46daa3(0x20f),'EktNo':function(_0x503296,_0x5d22f1){return _0x503296===_0x5d22f1;},'ziQGY':'Custom\x20tag\x20key\x20cannot\x20be\x20empty','SulSW':'Custom\x20tag\x20value\x20cannot\x20be\x20empty','hQcoM':_0x46daa3(0x1fc),'FUYvE':_0x46daa3(0x215),'FCKJj':function(_0x343380,_0x66afb8){return _0x343380(_0x66afb8);},'vhWAV':'./cliUtils','BmSPu':_0x46daa3(0x229),'ePLVn':_0x46daa3(0x1e9),'EKPpE':_0x46daa3(0x237),'kWJZH':_0x46daa3(0x1e5),'ShUen':_0x46daa3(0x1ff),'Rjiur':_0x46daa3(0x1fb)};if(_0x3b3bfa['MBYTf'](typeof _0xc3d3fc,_0x3b3bfa[_0x46daa3(0x22a)]))throw new Error(_0x3b3bfa[_0x46daa3(0x1eb)]);if(_0x3b3bfa[_0x46daa3(0x235)](typeof _0x2906da,_0x3b3bfa[_0x46daa3(0x22a)]))throw new Error(_0x3b3bfa[_0x46daa3(0x20e)]);if(_0x3b3bfa[_0x46daa3(0x204)](_0xc3d3fc[_0x46daa3(0x21e)](),''))throw new Error(_0x3b3bfa[_0x46daa3(0x1f2)]);if(_0x3b3bfa['EktNo'](_0x2906da['trim'](),''))throw new Error(_0x3b3bfa[_0x46daa3(0x205)]);const _0x40b474=helper[_0x46daa3(0x239)](_0x2906da);if(_0x30ba5e){const _0x42dcde=BrowserstackCLI[_0x46daa3(0x206)]()[_0x46daa3(0x21b)][TestHubModule['MODULE_NAME']];if(_0x42dcde){const _0x58cf6d=_0x42dcde?.[_0x46daa3(0x238)]?.[_0x46daa3(0x20d)]()?.['buildHashedId'];TestInfo[_0x46daa3(0x1f8)](_0x58cf6d);const _0x154df8=TestInfo[_0x46daa3(0x1ea)](_0x58cf6d),_0xd90c90=_0x154df8[TestFrameworkConstants[_0x46daa3(0x21d)]]||{};if(!_0xd90c90[_0xc3d3fc]){const _0x47be01={};_0x47be01[_0x46daa3(0x1fe)]=_0x3b3bfa[_0x46daa3(0x1f7)],_0x47be01[_0x46daa3(0x222)]=[..._0x40b474],_0xd90c90[_0xc3d3fc]=_0x47be01;}else _0xd90c90[_0xc3d3fc]['values']=[..._0x40b474];_0x154df8[TestFrameworkConstants[_0x46daa3(0x21d)]]=_0xd90c90,TestInfo[_0x46daa3(0x212)](_0x58cf6d,_0x154df8),!this[_0x46daa3(0x201)][_0x58cf6d]&&(this[_0x46daa3(0x201)][_0x58cf6d]={}),this['buildLevelTags'][_0x58cf6d][_0xc3d3fc]=[..._0x40b474];}}else{let _0xf2bdd7;const _0x3b7e8d=global[_0x46daa3(0x1ec)];let _0xd59dc7=![];if(_0x3b7e8d&&_0x3b7e8d[_0x46daa3(0x1e6)](_0x3b3bfa[_0x46daa3(0x1ed)]))_0xd59dc7=!![],_0xf2bdd7=_0x3b7e8d;else try{const _0x16290a=_0x3b3bfa['FCKJj'](require,_0x3b3bfa[_0x46daa3(0x21a)]);if(BrowserstackCLI['getInstance']()[_0x46daa3(0x1ee)]()){const _0x2301cd=_0x16290a[_0x46daa3(0x208)]();if(_0x3b3bfa[_0x46daa3(0x204)](_0x2301cd?.[_0x46daa3(0x223)]?.['toLowerCase'](),_0x3b3bfa[_0x46daa3(0x214)])){const _0xdbbb88=AutomationFramework[_0x46daa3(0x231)]();_0xf2bdd7=AutomationFramework[_0x46daa3(0x233)](_0xdbbb88,PlaywrightDriverModule['KEY_TEST_ID'],''),_0xf2bdd7&&_0xf2bdd7['includes'](_0x3b3bfa[_0x46daa3(0x1ed)])&&(_0xd59dc7=!![]);}}}catch(_0x1c08ce){logger[_0x46daa3(0x21f)](_0x46daa3(0x211)+_0x1c08ce);}if(_0xd59dc7){if(!_0xf2bdd7)throw new Error(_0x3b3bfa[_0x46daa3(0x1f3)]);const _0x99adcf=BrowserstackCLI['getInstance']()[_0x46daa3(0x22c)]();if(!_0x99adcf)throw new Error(_0x3b3bfa[_0x46daa3(0x22b)]);const _0x2f23cd=_0x3b3bfa[_0x46daa3(0x209)](require,_0x3b3bfa[_0x46daa3(0x230)]),_0x5d04f1=_0x3b3bfa['FCKJj'](require,_0x3b3bfa[_0x46daa3(0x1ef)]),_0x2e4098=_0x99adcf[_0x46daa3(0x203)](_0x2f23cd[_0x46daa3(0x1e8)],_0x5d04f1[_0x46daa3(0x236)]);if(!_0x2e4098)throw new Error(_0x3b3bfa['Rjiur']);const _0x56b45d=_0x2e4098[_0x46daa3(0x1fd)]()[_0x46daa3(0x210)](_0xf2bdd7)||{},_0xf64e83=_0x56b45d[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};logger[_0x46daa3(0x21f)](_0x46daa3(0x21c)+_0xf2bdd7+_0x46daa3(0x202)+_0xc3d3fc+_0x46daa3(0x207)+JSON[_0x46daa3(0x232)](_0x40b474)+_0x46daa3(0x22d)+JSON[_0x46daa3(0x232)](_0xf64e83));if(!_0xf64e83[_0xc3d3fc]){const _0x3739b9={};_0x3739b9[_0x46daa3(0x1fe)]=_0x3b3bfa['hQcoM'],_0x3739b9[_0x46daa3(0x222)]=[..._0x40b474],_0xf64e83[_0xc3d3fc]=_0x3739b9,logger[_0x46daa3(0x21f)]('[CustomTagManager]\x20setCustomTags:\x20Created\x20new\x20tag\x20key='+_0xc3d3fc+'\x20with\x20values='+JSON[_0x46daa3(0x232)](_0x40b474));}else _0xf64e83[_0xc3d3fc][_0x46daa3(0x222)]=[..._0x40b474],logger[_0x46daa3(0x21f)](_0x46daa3(0x22e)+_0xc3d3fc+'\x20with\x20new\x20values='+JSON['stringify'](_0x40b474));const _0x49e1d8={[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0xf64e83},_0x1eb8c2={};_0x1eb8c2[_0xf2bdd7]=_0x49e1d8,_0x2e4098[_0x46daa3(0x20a)](_0x1eb8c2),logger['debug']('[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier='+_0xf2bdd7+_0x46daa3(0x220)+JSON[_0x46daa3(0x232)](_0xf64e83)),!this[_0x46daa3(0x216)][_0xf2bdd7]&&(this[_0x46daa3(0x216)][_0xf2bdd7]={}),this[_0x46daa3(0x216)][_0xf2bdd7][_0xc3d3fc]=[..._0x40b474];}else{const _0x51e114=global['__workerDetails']?.[_0x46daa3(0x1f9)]?.['testInfo'];if(!_0x51e114){const _0xcdf1cc=AutomationFramework['getTrackedInstance']();_0xf2bdd7=AutomationFramework[_0x46daa3(0x233)](_0xcdf1cc,PlaywrightDriverModule['KEY_TEST_ID'],'');}else _0xf2bdd7=TestInfo['getTestIdentifierFromTestInfo'](_0x51e114,_0x51e114['retry']);const _0x3eee02=TestInfo[_0x46daa3(0x1ea)](_0xf2bdd7),_0x5e1de0=_0x3eee02[TestFrameworkConstants[_0x46daa3(0x21d)]]||{};if(!_0x5e1de0[_0xc3d3fc]){const _0x1437c6={};_0x1437c6[_0x46daa3(0x1fe)]=_0x3b3bfa['hQcoM'],_0x1437c6['values']=[..._0x40b474],_0x5e1de0[_0xc3d3fc]=_0x1437c6;}else _0x5e1de0[_0xc3d3fc][_0x46daa3(0x222)]=[..._0x40b474];_0x3eee02[TestFrameworkConstants[_0x46daa3(0x21d)]]=_0x5e1de0,TestInfo[_0x46daa3(0x212)](_0xf2bdd7,_0x3eee02),!this['testLevelTags'][_0xf2bdd7]&&(this['testLevelTags'][_0xf2bdd7]={}),this['testLevelTags'][_0xf2bdd7][_0xc3d3fc]=[..._0x40b474];}}}static['getBuildLevelTags'](){const _0xba9b7a=a69_0x417612,_0x1f9200={...this[_0xba9b7a(0x201)]};return _0x1f9200;}static[a69_0x417612(0x219)](){const _0x3def6f=a69_0x417612,_0x320a13={...this[_0x3def6f(0x216)]};return _0x320a13;}static[a69_0x417612(0x217)](){this['buildLevelTags']={},this['testLevelTags']={};}}module[a69_0x417612(0x221)]=CustomTagManager;
1
+ 'use strict';const a69_0x5d1eb9=a69_0x4250;(function(_0x4ceffb,_0x3bc4b7){const _0x301605=a69_0x4250,_0x18ba31=_0x4ceffb();while(!![]){try{const _0x2ca401=parseInt(_0x301605(0x162))/0x1+parseInt(_0x301605(0x16c))/0x2*(-parseInt(_0x301605(0x172))/0x3)+-parseInt(_0x301605(0x128))/0x4+parseInt(_0x301605(0x15e))/0x5*(parseInt(_0x301605(0x159))/0x6)+-parseInt(_0x301605(0x154))/0x7*(parseInt(_0x301605(0x126))/0x8)+-parseInt(_0x301605(0x171))/0x9*(-parseInt(_0x301605(0x131))/0xa)+-parseInt(_0x301605(0x169))/0xb;if(_0x2ca401===_0x3bc4b7)break;else _0x18ba31['push'](_0x18ba31['shift']());}catch(_0x4baf04){_0x18ba31['push'](_0x18ba31['shift']());}}}(a69_0x4d25,0x51208));function a69_0x4d25(){const _0x5d4468=['./framework/automationFramework','[CustomTagManager]\x20setCustomTags:\x20Created\x20new\x20tag\x20key=','KEY_TEST_ID','QRSoD','stringify','getTestUUID','includes','__workerDetails','toLowerCase','get','isRunning','TEST','\x20with\x20new\x20values=','./state/hookState','buildLevelTags',',\x20finalTags=','WmbOM','getInstance','testhubConfig','addMultipleEntries','4390911NobsIC','parseCommaSeparatedValues','toObject','./cliUtils','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','1965102AtSYOH','field_type','jest','multi_dropdown','vjNSc','10wyvZKW','./TestInfo','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','QrVPX','130500mXUVnh','getAllData','./modules/playwrightDriverModule','LGETa','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','FuwXA','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','384208brpLAh','buildHashedId','Custom\x20tag\x20value\x20cannot\x20be\x20empty','263830JoTzEh','POST','../../helpers/helper','CustomTagManager','XQGQM','2497149RPtmYs','3rJsSts','aEpxG','debug',',\x20values=','PxIyt','trim','name','vgray','8cvYubq','./modules/testhubModule','856176hAVMfO','./framework/constants/testFrameworkConstants','getTestFrameworkDetail','KEY_CUSTOM_TAGS','getState','getTestFramework','LvBBI','getTrackedInstance',':jest-','20IhcqfR','testLevelTags','values','rRKUF','./state/testFrameworkState','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','clearTags','ovUVy','modules','getTestLevelTags','resolveInstance',',\x20key=','testInfo',',\x20existingTags=','Custom\x20tag\x20value\x20must\x20be\x20a\x20string'];a69_0x4d25=function(){return _0x5d4468;};return a69_0x4d25();}const BrowserstackCLI=require('./browserstackCLI'),helper=require(a69_0x5d1eb9(0x16e)),AutomationFramework=require(a69_0x5d1eb9(0x140)),TestFrameworkConstants=require(a69_0x5d1eb9(0x129)),PlaywrightDriverModule=require(a69_0x5d1eb9(0x164)),TestInfo=require(a69_0x5d1eb9(0x15f)),TestHubModule=require(a69_0x5d1eb9(0x127)),{createClassLogger}=require('../../helpers/classLogger'),logger=createClassLogger(a69_0x5d1eb9(0x16f));function a69_0x4250(_0x31c567,_0x209e77){const _0x4d256e=a69_0x4d25();return a69_0x4250=function(_0x425064,_0x449918){_0x425064=_0x425064-0x121;let _0x115ff8=_0x4d256e[_0x425064];return _0x115ff8;},a69_0x4250(_0x31c567,_0x209e77);}class CustomTagManager{static [a69_0x5d1eb9(0x14e)]={};static ['testLevelTags']={};static['setCustomTags'](_0x5c8450,_0x30e509,_0x1e9723=![]){const _0x3c17cf=a69_0x5d1eb9,_0x4bc39c={'FuwXA':function(_0x190cac,_0x3c26f0){return _0x190cac!==_0x3c26f0;},'PxIyt':'string','LGETa':'Custom\x20tag\x20key\x20must\x20be\x20a\x20string','VyVya':function(_0xe69da3,_0x1d68d9){return _0xe69da3!==_0x1d68d9;},'LZGFI':_0x3c17cf(0x13f),'vAUIg':function(_0x1ba8d5,_0x317058){return _0x1ba8d5===_0x317058;},'LvBBI':'Custom\x20tag\x20key\x20cannot\x20be\x20empty','ovUVy':function(_0x31b5e6,_0x12821c){return _0x31b5e6===_0x12821c;},'QrVPX':_0x3c17cf(0x16b),'vjNSc':_0x3c17cf(0x15c),'THaim':_0x3c17cf(0x130),'WmbOM':function(_0x3c8128,_0x3bd821){return _0x3c8128(_0x3bd821);},'QRSoD':_0x3c17cf(0x157),'rCJvX':function(_0x4c8dc6,_0x3ba413){return _0x4c8dc6===_0x3ba413;},'vgray':_0x3c17cf(0x15b),'aEpxG':_0x3c17cf(0x160),'rRKUF':_0x3c17cf(0x158),'RXwxr':_0x3c17cf(0x135),'hHFXf':_0x3c17cf(0x14d),'XQGQM':_0x3c17cf(0x136)};if(_0x4bc39c[_0x3c17cf(0x167)](typeof _0x5c8450,_0x4bc39c[_0x3c17cf(0x122)]))throw new Error(_0x4bc39c[_0x3c17cf(0x165)]);if(_0x4bc39c['VyVya'](typeof _0x30e509,_0x4bc39c[_0x3c17cf(0x122)]))throw new Error(_0x4bc39c['LZGFI']);if(_0x4bc39c['vAUIg'](_0x5c8450[_0x3c17cf(0x123)](),''))throw new Error(_0x4bc39c[_0x3c17cf(0x12e)]);if(_0x4bc39c[_0x3c17cf(0x138)](_0x30e509[_0x3c17cf(0x123)](),''))throw new Error(_0x4bc39c[_0x3c17cf(0x161)]);const _0x465c0a=helper[_0x3c17cf(0x155)](_0x30e509);if(_0x1e9723){const _0x166d40=BrowserstackCLI[_0x3c17cf(0x151)]()[_0x3c17cf(0x139)][TestHubModule['MODULE_NAME']];if(_0x166d40){const _0x33d270=_0x166d40?.[_0x3c17cf(0x152)]?.[_0x3c17cf(0x156)]()?.[_0x3c17cf(0x16a)];TestInfo[_0x3c17cf(0x145)](_0x33d270);const _0xb2b69d=TestInfo['getTestDetails'](_0x33d270),_0x64dc35=_0xb2b69d[TestFrameworkConstants[_0x3c17cf(0x12b)]]||{};if(!_0x64dc35[_0x5c8450]){const _0x321780={};_0x321780[_0x3c17cf(0x15a)]=_0x4bc39c[_0x3c17cf(0x15d)],_0x321780[_0x3c17cf(0x133)]=[..._0x465c0a],_0x64dc35[_0x5c8450]=_0x321780;}else _0x64dc35[_0x5c8450][_0x3c17cf(0x133)]=[..._0x465c0a];_0xb2b69d[TestFrameworkConstants[_0x3c17cf(0x12b)]]=_0x64dc35,TestInfo['setTestDetails'](_0x33d270,_0xb2b69d),!this[_0x3c17cf(0x14e)][_0x33d270]&&(this['buildLevelTags'][_0x33d270]={}),this[_0x3c17cf(0x14e)][_0x33d270][_0x5c8450]=[..._0x465c0a];}}else{let _0x3668b1;const _0x457a88=global['__jestCurrentTestIdentifier'];let _0x39ce04=![];if(_0x457a88&&_0x457a88[_0x3c17cf(0x146)](_0x4bc39c['THaim']))_0x39ce04=!![],_0x3668b1=_0x457a88;else try{const _0x1b3f57=_0x4bc39c['WmbOM'](require,_0x4bc39c[_0x3c17cf(0x143)]);if(BrowserstackCLI[_0x3c17cf(0x151)]()[_0x3c17cf(0x14a)]()){const _0x3c5e49=_0x1b3f57[_0x3c17cf(0x12a)]();if(_0x4bc39c['rCJvX'](_0x3c5e49?.[_0x3c17cf(0x124)]?.[_0x3c17cf(0x148)](),_0x4bc39c[_0x3c17cf(0x125)])){const _0x31fd0e=AutomationFramework['getTrackedInstance']();_0x3668b1=AutomationFramework[_0x3c17cf(0x12c)](_0x31fd0e,PlaywrightDriverModule[_0x3c17cf(0x142)],''),_0x3668b1&&_0x3668b1[_0x3c17cf(0x146)](_0x4bc39c['THaim'])&&(_0x39ce04=!![]);}}}catch(_0x21266f){logger['debug']('CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20'+_0x21266f);}if(_0x39ce04){if(!_0x3668b1)throw new Error(_0x4bc39c[_0x3c17cf(0x173)]);const _0x4f88d3=BrowserstackCLI[_0x3c17cf(0x151)]()[_0x3c17cf(0x12d)]();if(!_0x4f88d3)throw new Error(_0x4bc39c[_0x3c17cf(0x134)]);const _0x272b50=_0x4bc39c['WmbOM'](require,_0x4bc39c['RXwxr']),_0x2f5e17=_0x4bc39c[_0x3c17cf(0x150)](require,_0x4bc39c['hHFXf']),_0x218a09=_0x4f88d3[_0x3c17cf(0x13b)](_0x272b50[_0x3c17cf(0x14b)],_0x2f5e17[_0x3c17cf(0x16d)]);if(!_0x218a09)throw new Error(_0x4bc39c[_0x3c17cf(0x170)]);const _0x1020c6=_0x218a09[_0x3c17cf(0x163)]()[_0x3c17cf(0x149)](_0x3668b1)||{},_0x16700b=_0x1020c6[TestFrameworkConstants[_0x3c17cf(0x12b)]]||{};logger['debug'](_0x3c17cf(0x166)+_0x3668b1+_0x3c17cf(0x13c)+_0x5c8450+_0x3c17cf(0x121)+JSON[_0x3c17cf(0x144)](_0x465c0a)+_0x3c17cf(0x13e)+JSON[_0x3c17cf(0x144)](_0x16700b));if(!_0x16700b[_0x5c8450]){const _0x235ef2={};_0x235ef2[_0x3c17cf(0x15a)]=_0x4bc39c[_0x3c17cf(0x15d)],_0x235ef2[_0x3c17cf(0x133)]=[..._0x465c0a],_0x16700b[_0x5c8450]=_0x235ef2,logger[_0x3c17cf(0x174)](_0x3c17cf(0x141)+_0x5c8450+'\x20with\x20values='+JSON['stringify'](_0x465c0a));}else _0x16700b[_0x5c8450][_0x3c17cf(0x133)]=[..._0x465c0a],logger['debug']('[CustomTagManager]\x20setCustomTags:\x20Updated\x20existing\x20tag\x20key='+_0x5c8450+_0x3c17cf(0x14c)+JSON[_0x3c17cf(0x144)](_0x465c0a));const _0x346eaa={[TestFrameworkConstants[_0x3c17cf(0x12b)]]:_0x16700b},_0x2b19f8={};_0x2b19f8[_0x3668b1]=_0x346eaa,_0x218a09[_0x3c17cf(0x153)](_0x2b19f8),logger['debug'](_0x3c17cf(0x168)+_0x3668b1+_0x3c17cf(0x14f)+JSON['stringify'](_0x16700b)),!this[_0x3c17cf(0x132)][_0x3668b1]&&(this['testLevelTags'][_0x3668b1]={}),this[_0x3c17cf(0x132)][_0x3668b1][_0x5c8450]=[..._0x465c0a];}else{const _0x4fc718=global[_0x3c17cf(0x147)]?.['currentTest']?.[_0x3c17cf(0x13d)];if(!_0x4fc718){const _0x205a4e=AutomationFramework[_0x3c17cf(0x12f)]();_0x3668b1=AutomationFramework[_0x3c17cf(0x12c)](_0x205a4e,PlaywrightDriverModule[_0x3c17cf(0x142)],'');}else _0x3668b1=TestInfo['getTestIdentifierFromTestInfo'](_0x4fc718,_0x4fc718['retry']);const _0x4ed6ed=TestInfo['getTestDetails'](_0x3668b1),_0x18010d=_0x4ed6ed[TestFrameworkConstants[_0x3c17cf(0x12b)]]||{};if(!_0x18010d[_0x5c8450]){const _0x3db4f8={};_0x3db4f8[_0x3c17cf(0x15a)]=_0x4bc39c[_0x3c17cf(0x15d)],_0x3db4f8['values']=[..._0x465c0a],_0x18010d[_0x5c8450]=_0x3db4f8;}else _0x18010d[_0x5c8450][_0x3c17cf(0x133)]=[..._0x465c0a];_0x4ed6ed[TestFrameworkConstants[_0x3c17cf(0x12b)]]=_0x18010d,TestInfo['setTestDetails'](_0x3668b1,_0x4ed6ed),!this[_0x3c17cf(0x132)][_0x3668b1]&&(this[_0x3c17cf(0x132)][_0x3668b1]={}),this[_0x3c17cf(0x132)][_0x3668b1][_0x5c8450]=[..._0x465c0a];}}}static['getBuildLevelTags'](){const _0x56478d={...this['buildLevelTags']};return _0x56478d;}static[a69_0x5d1eb9(0x13a)](){const _0x14a747=a69_0x5d1eb9,_0x1b950f={...this[_0x14a747(0x132)]};return _0x1b950f;}static[a69_0x5d1eb9(0x137)](){const _0x227a28=a69_0x5d1eb9;this[_0x227a28(0x14e)]={},this['testLevelTags']={};}}module['exports']=CustomTagManager;
@@ -1 +1 @@
1
- const a70_0x57d897=a70_0x30b3;(function(_0x3ffc85,_0x3eeb2f){const _0x5cd3cb=a70_0x30b3,_0x184ac7=_0x3ffc85();while(!![]){try{const _0x3697bf=parseInt(_0x5cd3cb(0x1b6))/0x1*(-parseInt(_0x5cd3cb(0x1c4))/0x2)+-parseInt(_0x5cd3cb(0x1bd))/0x3+parseInt(_0x5cd3cb(0x1be))/0x4*(parseInt(_0x5cd3cb(0x1ba))/0x5)+-parseInt(_0x5cd3cb(0x1bf))/0x6+-parseInt(_0x5cd3cb(0x1bc))/0x7*(parseInt(_0x5cd3cb(0x1b3))/0x8)+-parseInt(_0x5cd3cb(0x1c0))/0x9+-parseInt(_0x5cd3cb(0x1c3))/0xa*(-parseInt(_0x5cd3cb(0x1b8))/0xb);if(_0x3697bf===_0x3eeb2f)break;else _0x184ac7['push'](_0x184ac7['shift']());}catch(_0x50f32e){_0x184ac7['push'](_0x184ac7['shift']());}}}(a70_0x32e2,0x84488));function a70_0x30b3(_0x5c0d2c,_0x183576){const _0x32e27d=a70_0x32e2();return a70_0x30b3=function(_0x30b39a,_0x463149){_0x30b39a=_0x30b39a-0x1b2;let _0x3947ac=_0x32e27d[_0x30b39a];return _0x3947ac;},a70_0x30b3(_0x5c0d2c,_0x183576);}function a70_0x32e2(){const _0x2fa5a0=['2devKzc','../../helpers/classLogger.js','24IofJOU','registerObserver','exports','523949kUgpTU','observers','22nLjGun','freeze','65WzDJxD','push','1540721QanuVm','3118668FiLDMg','45332QqzZdG','6360594YJmPMf','4287924dmdIHq','getInstance','notifyObserver','20774260WsnIQy'];a70_0x32e2=function(){return _0x2fa5a0;};return a70_0x32e2();}const {createClassLogger}=require(a70_0x57d897(0x1b2));class EventDispatcher{static #instance=null;constructor(){this['observers']={};}static['getInstance'](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a70_0x57d897(0x1b4)](_0x7074e3,_0x179cdc){const _0x1de4f0=a70_0x57d897;!this[_0x1de4f0(0x1b7)][_0x7074e3]&&(this['observers'][_0x7074e3]=[]),this[_0x1de4f0(0x1b7)][_0x7074e3][_0x1de4f0(0x1bb)](_0x179cdc);}async[a70_0x57d897(0x1c2)](_0x4ec943,_0x5bea97){const _0x167341=a70_0x57d897,_0x93955b={'rtyUi':function(_0x4c86f9,_0x9a4490){return _0x4c86f9(_0x9a4490);}};if(this[_0x167341(0x1b7)][_0x4ec943]){for(const _0x1d7a5d of this[_0x167341(0x1b7)][_0x4ec943]){await _0x93955b['rtyUi'](_0x1d7a5d,_0x5bea97);}return;}}}const eventDispatcher=EventDispatcher[a70_0x57d897(0x1c1)]();Object[a70_0x57d897(0x1b9)](eventDispatcher),module[a70_0x57d897(0x1b5)]=eventDispatcher;
1
+ const a70_0x28d230=a70_0x47c2;(function(_0x152976,_0x2a9f72){const _0x914076=a70_0x47c2,_0x1bfefd=_0x152976();while(!![]){try{const _0x255906=parseInt(_0x914076(0x110))/0x1+-parseInt(_0x914076(0x113))/0x2*(parseInt(_0x914076(0x120))/0x3)+-parseInt(_0x914076(0x118))/0x4*(-parseInt(_0x914076(0x114))/0x5)+parseInt(_0x914076(0x11c))/0x6+-parseInt(_0x914076(0x123))/0x7*(-parseInt(_0x914076(0x11e))/0x8)+parseInt(_0x914076(0x11a))/0x9+parseInt(_0x914076(0x115))/0xa*(-parseInt(_0x914076(0x117))/0xb);if(_0x255906===_0x2a9f72)break;else _0x1bfefd['push'](_0x1bfefd['shift']());}catch(_0x475053){_0x1bfefd['push'](_0x1bfefd['shift']());}}}(a70_0x44ab,0xeb9ba));function a70_0x47c2(_0x56e736,_0x8f6aa8){const _0x44abb4=a70_0x44ab();return a70_0x47c2=function(_0x47c2fe,_0x57d043){_0x47c2fe=_0x47c2fe-0x110;let _0x421f1b=_0x44abb4[_0x47c2fe];return _0x421f1b;},a70_0x47c2(_0x56e736,_0x8f6aa8);}const {createClassLogger}=require(a70_0x28d230(0x112));function a70_0x44ab(){const _0x1e247c=['registerObserver','406eiAESk','385423uCdyhi','notifyObserver','../../helpers/classLogger.js','172UDHtrV','5pBdubP','4330yDxGJW','LQDfP','78903zRfqYR','2612188nmwNtk','push','4216392ksjFqZ','freeze','7673682AChRLO','getInstance','219976BJQKzi','exports','10806FlPLHR','observers'];a70_0x44ab=function(){return _0x1e247c;};return a70_0x44ab();}class EventDispatcher{static #instance=null;constructor(){const _0x5cfc12=a70_0x28d230;this[_0x5cfc12(0x121)]={};}static[a70_0x28d230(0x11d)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a70_0x28d230(0x122)](_0x575f40,_0x2ba3bc){const _0x375e51=a70_0x28d230;!this[_0x375e51(0x121)][_0x575f40]&&(this[_0x375e51(0x121)][_0x575f40]=[]),this[_0x375e51(0x121)][_0x575f40][_0x375e51(0x119)](_0x2ba3bc);}async[a70_0x28d230(0x111)](_0x13f4bc,_0x3d08ea){const _0x4dd495=a70_0x28d230,_0x1103bc={'LQDfP':function(_0x1d4edc,_0x342a83){return _0x1d4edc(_0x342a83);}};if(this[_0x4dd495(0x121)][_0x13f4bc]){for(const _0x3df536 of this['observers'][_0x13f4bc]){await _0x1103bc[_0x4dd495(0x116)](_0x3df536,_0x3d08ea);}return;}}}const eventDispatcher=EventDispatcher['getInstance']();Object[a70_0x28d230(0x11b)](eventDispatcher),module[a70_0x28d230(0x11f)]=eventDispatcher;
@@ -1 +1 @@
1
- const a71_0x23da25=a71_0x476e;function a71_0x2f81(){const _0x3f9560=['automation_sessions','getAllData','non_browserstack_automation_sessions','instances','get','getCurrentInstanceName','2498903qfEoXz','1536731HxuxDG','4142524ZLSHLz','setState','12014312liIzci','notifyObserver','../instances/trackedInstance.js','3LOHdda','KEY_AUTOMATION_SESSIONS','automationFrameworkVersion','util','7098ihdoBp','registerObserver','exports','trackEvent','getState','set','setTrackedInstance','9xkzlSv','getAutomationFrameworkVersion','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','174187VvlQIQ','1248zBKgwj','getAutomationFrameworkName','6726igqLzN','AutomationFramework','getId','../../../helpers/classLogger.js','getHookRegistryKey','runHooks','automationFrameworkName','trackEvent:\x20automationFrameworkState=','6045nLUBWm','\x20hookState=','debug','83hKAswx','50hpGMZY'];a71_0x2f81=function(){return _0x3f9560;};return a71_0x2f81();}(function(_0x223f13,_0x4590c9){const _0x344e4a=a71_0x476e,_0x598791=_0x223f13();while(!![]){try{const _0x5da556=parseInt(_0x344e4a(0x1a4))/0x1*(-parseInt(_0x344e4a(0x199))/0x2)+parseInt(_0x344e4a(0x188))/0x3*(parseInt(_0x344e4a(0x183))/0x4)+-parseInt(_0x344e4a(0x1a1))/0x5*(parseInt(_0x344e4a(0x18c))/0x6)+-parseInt(_0x344e4a(0x182))/0x7+parseInt(_0x344e4a(0x185))/0x8*(parseInt(_0x344e4a(0x193))/0x9)+-parseInt(_0x344e4a(0x1a5))/0xa*(parseInt(_0x344e4a(0x181))/0xb)+-parseInt(_0x344e4a(0x197))/0xc*(-parseInt(_0x344e4a(0x196))/0xd);if(_0x5da556===_0x4590c9)break;else _0x598791['push'](_0x598791['shift']());}catch(_0x1fe160){_0x598791['push'](_0x598791['shift']());}}}(a71_0x2f81,0xd375e));function a71_0x476e(_0x54e21e,_0x2ccdbb){const _0x2f81c9=a71_0x2f81();return a71_0x476e=function(_0x476e0c,_0x6a918f){_0x476e0c=_0x476e0c-0x17b;let _0x4876a0=_0x2f81c9[_0x476e0c];return _0x4876a0;},a71_0x476e(_0x54e21e,_0x2ccdbb);}const {createClassLogger}=require(a71_0x23da25(0x19c)),util=require(a71_0x23da25(0x18b)),eventDispatcher=require('../eventDispatcher.js'),CLIUtils=require('../cliUtils.js'),TrackedInstance=require(a71_0x23da25(0x187)),logger=createClassLogger(a71_0x23da25(0x19a));class AutomationFramework{static [a71_0x23da25(0x17e)]=new Map();static [a71_0x23da25(0x189)]=a71_0x23da25(0x17b);static [a71_0x23da25(0x195)]=a71_0x23da25(0x17d);constructor(_0x14bf20,_0x214f6e){const _0x43777e=a71_0x23da25;this['automationFrameworkName']=_0x14bf20,this[_0x43777e(0x18a)]=_0x214f6e;}[a71_0x23da25(0x198)](){const _0x5479b8=a71_0x23da25;return this[_0x5479b8(0x19f)];}[a71_0x23da25(0x194)](){const _0x4b1354=a71_0x23da25;return this[_0x4b1354(0x18a)];}async[a71_0x23da25(0x18f)](_0x310c60,_0x16653e,_0x1f72e3={}){const _0x3af783=a71_0x23da25;logger[_0x3af783(0x1a3)](_0x3af783(0x1a0)+_0x310c60+_0x3af783(0x1a2)+_0x16653e);}async[a71_0x23da25(0x19e)](_0x231c1e,_0x52bc2d,_0x4695cf,_0x21e3d5={}){const _0x36b8e5=a71_0x23da25,_0x1c5ecf=CLIUtils[_0x36b8e5(0x19d)](_0x52bc2d,_0x4695cf);_0x231c1e&&_0x231c1e[_0x36b8e5(0x184)](_0x52bc2d),await eventDispatcher[_0x36b8e5(0x186)](_0x1c5ecf,_0x21e3d5);}static[a71_0x23da25(0x18d)](_0x52e3f8,_0x5194d4,_0x11d5f1){const _0x2eb64d=a71_0x23da25;eventDispatcher[_0x2eb64d(0x18d)](CLIUtils[_0x2eb64d(0x19d)](_0x52e3f8,_0x5194d4),_0x11d5f1);}static[a71_0x23da25(0x192)](_0x24375b,_0x2078f9){const _0x3c38fe=a71_0x23da25;AutomationFramework[_0x3c38fe(0x17e)][_0x3c38fe(0x191)](_0x24375b[_0x3c38fe(0x19b)](),_0x2078f9);}static['getTrackedInstance'](){const _0x30d218=a71_0x23da25,_0x31c1c6=TrackedInstance['createContext'](CLIUtils[_0x30d218(0x180)]());return AutomationFramework['instances'][_0x30d218(0x17f)](_0x31c1c6[_0x30d218(0x19b)]());}static[a71_0x23da25(0x184)](_0x44d4d6,_0x1d226c,_0x5064e8){const _0x5af994=a71_0x23da25;_0x44d4d6['getAllData']()[_0x5af994(0x191)](_0x1d226c,_0x5064e8);}static[a71_0x23da25(0x190)](_0x4c9c43,_0x4b0bad){const _0x98a4d5=a71_0x23da25;return _0x4c9c43[_0x98a4d5(0x17c)]()[_0x98a4d5(0x17f)](_0x4b0bad);}}module[a71_0x23da25(0x18e)]=AutomationFramework;
1
+ const a71_0x5ee1fb=a71_0x375d;(function(_0x290891,_0x37e6fe){const _0x5f494c=a71_0x375d,_0x6d7aab=_0x290891();while(!![]){try{const _0x492ea6=-parseInt(_0x5f494c(0x152))/0x1*(parseInt(_0x5f494c(0x14a))/0x2)+parseInt(_0x5f494c(0x144))/0x3+parseInt(_0x5f494c(0x14f))/0x4*(-parseInt(_0x5f494c(0x15a))/0x5)+parseInt(_0x5f494c(0x142))/0x6*(parseInt(_0x5f494c(0x155))/0x7)+parseInt(_0x5f494c(0x156))/0x8+parseInt(_0x5f494c(0x15e))/0x9+parseInt(_0x5f494c(0x160))/0xa*(-parseInt(_0x5f494c(0x146))/0xb);if(_0x492ea6===_0x37e6fe)break;else _0x6d7aab['push'](_0x6d7aab['shift']());}catch(_0x429969){_0x6d7aab['push'](_0x6d7aab['shift']());}}}(a71_0x51e7,0xc2ea5));const {createClassLogger}=require(a71_0x5ee1fb(0x14d)),util=require('util'),eventDispatcher=require('../eventDispatcher.js'),CLIUtils=require(a71_0x5ee1fb(0x154)),TrackedInstance=require(a71_0x5ee1fb(0x143)),logger=createClassLogger(a71_0x5ee1fb(0x14c));class AutomationFramework{static [a71_0x5ee1fb(0x153)]=new Map();static [a71_0x5ee1fb(0x147)]=a71_0x5ee1fb(0x14b);static ['KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS']='non_browserstack_automation_sessions';constructor(_0x2a9081,_0x30d1bd){const _0x7e5b32=a71_0x5ee1fb;this[_0x7e5b32(0x145)]=_0x2a9081,this[_0x7e5b32(0x163)]=_0x30d1bd;}['getAutomationFrameworkName'](){const _0x233c88=a71_0x5ee1fb;return this[_0x233c88(0x145)];}[a71_0x5ee1fb(0x151)](){const _0x1afb72=a71_0x5ee1fb;return this[_0x1afb72(0x163)];}async[a71_0x5ee1fb(0x15d)](_0x49e388,_0x37b84b,_0x453cd9={}){const _0x3855b2=a71_0x5ee1fb;logger[_0x3855b2(0x157)]('trackEvent:\x20automationFrameworkState='+_0x49e388+_0x3855b2(0x164)+_0x37b84b);}async[a71_0x5ee1fb(0x148)](_0x5d9493,_0x48ead,_0xed11cb,_0x453bcd={}){const _0x5cc5a7=a71_0x5ee1fb,_0x27be26=CLIUtils['getHookRegistryKey'](_0x48ead,_0xed11cb);_0x5d9493&&_0x5d9493[_0x5cc5a7(0x150)](_0x48ead),await eventDispatcher[_0x5cc5a7(0x14e)](_0x27be26,_0x453bcd);}static[a71_0x5ee1fb(0x165)](_0x56110f,_0x2ec644,_0x3d2702){const _0x33a901=a71_0x5ee1fb;eventDispatcher[_0x33a901(0x165)](CLIUtils[_0x33a901(0x161)](_0x56110f,_0x2ec644),_0x3d2702);}static['setTrackedInstance'](_0xbd897d,_0x211725){const _0x267a4b=a71_0x5ee1fb;AutomationFramework[_0x267a4b(0x153)][_0x267a4b(0x15c)](_0xbd897d[_0x267a4b(0x162)](),_0x211725);}static[a71_0x5ee1fb(0x149)](){const _0x3b6b23=a71_0x5ee1fb,_0x1cdc9c=TrackedInstance['createContext'](CLIUtils[_0x3b6b23(0x15f)]());return AutomationFramework['instances']['get'](_0x1cdc9c[_0x3b6b23(0x162)]());}static[a71_0x5ee1fb(0x150)](_0x23cf23,_0x5a46f7,_0x572e50){const _0x4d732=a71_0x5ee1fb;_0x23cf23[_0x4d732(0x159)]()[_0x4d732(0x15c)](_0x5a46f7,_0x572e50);}static[a71_0x5ee1fb(0x15b)](_0x3f7f29,_0x4ddc11){const _0x56138c=a71_0x5ee1fb;return _0x3f7f29[_0x56138c(0x159)]()[_0x56138c(0x158)](_0x4ddc11);}}function a71_0x51e7(){const _0xcfe3cc=['registerObserver','exports','2233368ujNKzw','../instances/trackedInstance.js','2250708YISHhU','automationFrameworkName','20878286ONfcMD','KEY_AUTOMATION_SESSIONS','runHooks','getTrackedInstance','523862hcKYMm','automation_sessions','AutomationFramework','../../../helpers/classLogger.js','notifyObserver','12NgGeWA','setState','getAutomationFrameworkVersion','1VPGOzU','instances','../cliUtils.js','7GEmaTd','8036568VMrzQN','debug','get','getAllData','935095BvJCQV','getState','set','trackEvent','12531168ZjCOfK','getCurrentInstanceName','10XtCRUA','getHookRegistryKey','getId','automationFrameworkVersion','\x20hookState='];a71_0x51e7=function(){return _0xcfe3cc;};return a71_0x51e7();}function a71_0x375d(_0x5d02ca,_0x512b48){const _0x51e74a=a71_0x51e7();return a71_0x375d=function(_0x375dc5,_0x36ffd9){_0x375dc5=_0x375dc5-0x142;let _0x5b7f2e=_0x51e74a[_0x375dc5];return _0x5b7f2e;},a71_0x375d(_0x5d02ca,_0x512b48);}module[a71_0x5ee1fb(0x166)]=AutomationFramework;
@@ -1 +1 @@
1
- const a72_0x4aea27=a72_0x2e4a;(function(_0x217cdb,_0x347256){const _0x5f177b=a72_0x2e4a,_0x453cb9=_0x217cdb();while(!![]){try{const _0x526d2e=parseInt(_0x5f177b(0x1d0))/0x1*(parseInt(_0x5f177b(0x1e0))/0x2)+parseInt(_0x5f177b(0x1e6))/0x3+-parseInt(_0x5f177b(0x1d7))/0x4*(-parseInt(_0x5f177b(0x1d3))/0x5)+-parseInt(_0x5f177b(0x1e8))/0x6*(parseInt(_0x5f177b(0x1dd))/0x7)+-parseInt(_0x5f177b(0x1e9))/0x8*(-parseInt(_0x5f177b(0x1de))/0x9)+parseInt(_0x5f177b(0x1d5))/0xa*(-parseInt(_0x5f177b(0x1e5))/0xb)+-parseInt(_0x5f177b(0x1d1))/0xc*(parseInt(_0x5f177b(0x1cf))/0xd);if(_0x526d2e===_0x347256)break;else _0x453cb9['push'](_0x453cb9['shift']());}catch(_0x4e8b16){_0x453cb9['push'](_0x453cb9['shift']());}}}(a72_0x4d7f,0xc78f6));function a72_0x4d7f(){const _0x12a2ca=['KEY_INPUT_CAPABILITIES','594847shkGjm','1785114bUowIO','COMMAND_GET','2946vLtmcX','16OjiKpn','KEY_ENDED_AT','quit','COMMAND_QUIT','KEY_CAPABILITIES','KEY_IS_BROWSERSTACK_HUB','platform_index','get','framework_session_id','13253279hfkdbg','1qybIic','12VRlDTG','hub_url','60xcVOrP','KEY_HUB_URL','140zahgQN','capabilities','315668kyhCuK','ended_at','KEY_STARTED_AT','BROWSERSTACK_PLATFORM_INDEX','COMMAND_W3C_EXECUTE_SCRIPT','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','15358lIrfRK','4559472edgmhG','exports','2231910xwHlgV','w3cexecutescript','input_capabilities','KEY_PLATFORM_INDEX'];a72_0x4d7f=function(){return _0x12a2ca;};return a72_0x4d7f();}function a72_0x2e4a(_0x3869a6,_0x4fe260){const _0x4d7feb=a72_0x4d7f();return a72_0x2e4a=function(_0x2e4ada,_0x8934e5){_0x2e4ada=_0x2e4ada-0x1cb;let _0x48bf93=_0x4d7feb[_0x2e4ada];return _0x48bf93;},a72_0x2e4a(_0x3869a6,_0x4fe260);}const a72_0x5c68b5={};a72_0x5c68b5['ENV_BROWSERSTACK_PLATFORM_INDEX']=a72_0x4aea27(0x1da),a72_0x5c68b5[a72_0x4aea27(0x1d4)]=a72_0x4aea27(0x1d2),a72_0x5c68b5['KEY_FRAMEWORK_SESSION_ID']=a72_0x4aea27(0x1ce),a72_0x5c68b5[a72_0x4aea27(0x1e4)]=a72_0x4aea27(0x1e2),a72_0x5c68b5[a72_0x4aea27(0x1ed)]=a72_0x4aea27(0x1d6),a72_0x5c68b5[a72_0x4aea27(0x1cb)]='is_browserstack_hub',a72_0x5c68b5[a72_0x4aea27(0x1d9)]='started_at',a72_0x5c68b5[a72_0x4aea27(0x1ea)]=a72_0x4aea27(0x1d8),a72_0x5c68b5[a72_0x4aea27(0x1e3)]=a72_0x4aea27(0x1cc),a72_0x5c68b5['COMMAND_NEW_SESSION']='newsession',a72_0x5c68b5[a72_0x4aea27(0x1e7)]=a72_0x4aea27(0x1cd),a72_0x5c68b5['COMMAND_SCREENSHOT']='screenshot',a72_0x5c68b5[a72_0x4aea27(0x1db)]=a72_0x4aea27(0x1e1),a72_0x5c68b5[a72_0x4aea27(0x1dc)]='w3cexecutescriptasync',a72_0x5c68b5[a72_0x4aea27(0x1ec)]=a72_0x4aea27(0x1eb);const AutomationFrameworkConstants=a72_0x5c68b5;module[a72_0x4aea27(0x1df)]=AutomationFrameworkConstants;
1
+ function a72_0x5909(_0x2aa827,_0x433a21){const _0x41ee8c=a72_0x41ee();return a72_0x5909=function(_0x5909c9,_0x4aaafb){_0x5909c9=_0x5909c9-0x197;let _0x5c0140=_0x41ee8c[_0x5909c9];return _0x5c0140;},a72_0x5909(_0x2aa827,_0x433a21);}const a72_0x3c08f6=a72_0x5909;(function(_0x127cff,_0x5ca8c9){const _0x20e11a=a72_0x5909,_0x3ea5a0=_0x127cff();while(!![]){try{const _0x525c2a=-parseInt(_0x20e11a(0x1a3))/0x1+parseInt(_0x20e11a(0x1ae))/0x2+-parseInt(_0x20e11a(0x1a5))/0x3*(parseInt(_0x20e11a(0x1ab))/0x4)+-parseInt(_0x20e11a(0x19a))/0x5+parseInt(_0x20e11a(0x1a9))/0x6+-parseInt(_0x20e11a(0x198))/0x7*(parseInt(_0x20e11a(0x19b))/0x8)+parseInt(_0x20e11a(0x1a6))/0x9*(parseInt(_0x20e11a(0x1aa))/0xa);if(_0x525c2a===_0x5ca8c9)break;else _0x3ea5a0['push'](_0x3ea5a0['shift']());}catch(_0x1955e8){_0x3ea5a0['push'](_0x3ea5a0['shift']());}}}(a72_0x41ee,0x5d315));const a72_0x113cc6={};a72_0x113cc6[a72_0x3c08f6(0x1b4)]=a72_0x3c08f6(0x1a1),a72_0x113cc6[a72_0x3c08f6(0x1b2)]='hub_url',a72_0x113cc6[a72_0x3c08f6(0x199)]='framework_session_id',a72_0x113cc6[a72_0x3c08f6(0x1b3)]='input_capabilities',a72_0x113cc6[a72_0x3c08f6(0x19f)]=a72_0x3c08f6(0x197),a72_0x113cc6['KEY_IS_BROWSERSTACK_HUB']=a72_0x3c08f6(0x1a2),a72_0x113cc6[a72_0x3c08f6(0x19e)]='started_at',a72_0x113cc6[a72_0x3c08f6(0x19c)]=a72_0x3c08f6(0x1b0),a72_0x113cc6[a72_0x3c08f6(0x1a8)]='platform_index',a72_0x113cc6['COMMAND_NEW_SESSION']=a72_0x3c08f6(0x1ac),a72_0x113cc6['COMMAND_GET']=a72_0x3c08f6(0x1b5),a72_0x113cc6[a72_0x3c08f6(0x1af)]=a72_0x3c08f6(0x1a4),a72_0x113cc6[a72_0x3c08f6(0x19d)]=a72_0x3c08f6(0x1b1),a72_0x113cc6[a72_0x3c08f6(0x1a7)]='w3cexecutescriptasync',a72_0x113cc6[a72_0x3c08f6(0x1a0)]='quit';const AutomationFrameworkConstants=a72_0x113cc6;module[a72_0x3c08f6(0x1ad)]=AutomationFrameworkConstants;function a72_0x41ee(){const _0x5e8e58=['KEY_HUB_URL','KEY_INPUT_CAPABILITIES','ENV_BROWSERSTACK_PLATFORM_INDEX','get','capabilities','1613199EttUrW','KEY_FRAMEWORK_SESSION_ID','1382775EtHlGR','16nhpCkH','KEY_ENDED_AT','COMMAND_W3C_EXECUTE_SCRIPT','KEY_STARTED_AT','KEY_CAPABILITIES','COMMAND_QUIT','BROWSERSTACK_PLATFORM_INDEX','is_browserstack_hub','719744IqKqXx','screenshot','207VyXQyj','99oduqoN','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','KEY_PLATFORM_INDEX','3721758KzdPVM','1057490spwyqP','31956IcyMdt','newsession','exports','1213278tmFjwX','COMMAND_SCREENSHOT','ended_at','w3cexecutescript'];a72_0x41ee=function(){return _0x5e8e58;};return a72_0x41ee();}
@@ -1 +1 @@
1
- function a73_0x32ba(_0x5b97d8,_0x1c8e71){const _0x5a70c0=a73_0x5a70();return a73_0x32ba=function(_0x32bafa,_0x54822e){_0x32bafa=_0x32bafa-0x194;let _0x4c622f=_0x5a70c0[_0x32bafa];return _0x4c622f;},a73_0x32ba(_0x5b97d8,_0x1c8e71);}const a73_0x4fdf93=a73_0x32ba;(function(_0x4bc1fa,_0x15fa26){const _0x11fe43=a73_0x32ba,_0x35e1c1=_0x4bc1fa();while(!![]){try{const _0x2f8acb=-parseInt(_0x11fe43(0x1ed))/0x1*(parseInt(_0x11fe43(0x1ce))/0x2)+-parseInt(_0x11fe43(0x1b9))/0x3+-parseInt(_0x11fe43(0x1a7))/0x4+-parseInt(_0x11fe43(0x1eb))/0x5+-parseInt(_0x11fe43(0x1bf))/0x6*(-parseInt(_0x11fe43(0x1ac))/0x7)+-parseInt(_0x11fe43(0x1e9))/0x8+parseInt(_0x11fe43(0x1e7))/0x9*(parseInt(_0x11fe43(0x1b5))/0xa);if(_0x2f8acb===_0x15fa26)break;else _0x35e1c1['push'](_0x35e1c1['shift']());}catch(_0x3b3da3){_0x35e1c1['push'](_0x35e1c1['shift']());}}}(a73_0x5a70,0x1d3c4));const a73_0x2a729f={};a73_0x2a729f['KEY_TEST_UUID']=a73_0x4fdf93(0x1a1),a73_0x2a729f[a73_0x4fdf93(0x1db)]=a73_0x4fdf93(0x1d0),a73_0x2a729f[a73_0x4fdf93(0x1b2)]=a73_0x4fdf93(0x19f),a73_0x2a729f[a73_0x4fdf93(0x1b4)]=a73_0x4fdf93(0x1a9),a73_0x2a729f[a73_0x4fdf93(0x1de)]='test_tags',a73_0x2a729f['KEY_TEST_RESULT']='test_result',a73_0x2a729f[a73_0x4fdf93(0x1ad)]=a73_0x4fdf93(0x1dd),a73_0x2a729f['KEY_TEST_STARTED_AT']=a73_0x4fdf93(0x1d5),a73_0x2a729f['KEY_TEST_ENDED_AT']=a73_0x4fdf93(0x1be),a73_0x2a729f[a73_0x4fdf93(0x195)]='test_location',a73_0x2a729f[a73_0x4fdf93(0x1e6)]=a73_0x4fdf93(0x1e4),a73_0x2a729f[a73_0x4fdf93(0x1bd)]=a73_0x4fdf93(0x19e),a73_0x2a729f[a73_0x4fdf93(0x1b0)]=a73_0x4fdf93(0x1c1),a73_0x2a729f[a73_0x4fdf93(0x1aa)]=a73_0x4fdf93(0x1c4),a73_0x2a729f['KEY_TEST_FRAMEWORK_VERSION']=a73_0x4fdf93(0x197),a73_0x2a729f[a73_0x4fdf93(0x1d6)]='test_code',a73_0x2a729f[a73_0x4fdf93(0x1e8)]=a73_0x4fdf93(0x1c3),a73_0x2a729f[a73_0x4fdf93(0x1cd)]='retry_of',a73_0x2a729f[a73_0x4fdf93(0x1b1)]=a73_0x4fdf93(0x19b),a73_0x2a729f[a73_0x4fdf93(0x1d2)]=a73_0x4fdf93(0x1c0),a73_0x2a729f[a73_0x4fdf93(0x1cb)]=a73_0x4fdf93(0x1ef),a73_0x2a729f[a73_0x4fdf93(0x1c6)]=a73_0x4fdf93(0x1dc),a73_0x2a729f[a73_0x4fdf93(0x1b3)]=a73_0x4fdf93(0x1ae),a73_0x2a729f[a73_0x4fdf93(0x1ab)]='test_meta',a73_0x2a729f[a73_0x4fdf93(0x1a0)]=a73_0x4fdf93(0x19c),a73_0x2a729f['KEY_AUTOMATE_SESSION_NAME']=a73_0x4fdf93(0x1cf),a73_0x2a729f[a73_0x4fdf93(0x19d)]=a73_0x4fdf93(0x1e2),a73_0x2a729f[a73_0x4fdf93(0x1a5)]=a73_0x4fdf93(0x1c7),a73_0x2a729f[a73_0x4fdf93(0x1ca)]=a73_0x4fdf93(0x1d9),a73_0x2a729f[a73_0x4fdf93(0x1a8)]=a73_0x4fdf93(0x1ba),a73_0x2a729f[a73_0x4fdf93(0x1a3)]=a73_0x4fdf93(0x198),a73_0x2a729f[a73_0x4fdf93(0x196)]=a73_0x4fdf93(0x1e3),a73_0x2a729f[a73_0x4fdf93(0x199)]=a73_0x4fdf93(0x1c5),a73_0x2a729f[a73_0x4fdf93(0x1ea)]=a73_0x4fdf93(0x1d3),a73_0x2a729f['KEY_HOOK_FAILURE']=a73_0x4fdf93(0x1da),a73_0x2a729f[a73_0x4fdf93(0x194)]=a73_0x4fdf93(0x1d7),a73_0x2a729f['KEY_HOOK_NAME']=a73_0x4fdf93(0x1b8),a73_0x2a729f['DEFAULT_TEST_RESULT']=a73_0x4fdf93(0x1af),a73_0x2a729f['DEFAULT_HOOK_RESULT']=a73_0x4fdf93(0x1af),a73_0x2a729f['KIND_SCREENSHOT']=a73_0x4fdf93(0x1c2),a73_0x2a729f[a73_0x4fdf93(0x1b7)]=a73_0x4fdf93(0x1e5),a73_0x2a729f['HOOK_REGEX']=a73_0x4fdf93(0x1e1),a73_0x2a729f['KEY_HOOKS_STARTED']='test_hooks_started',a73_0x2a729f[a73_0x4fdf93(0x1d8)]=a73_0x4fdf93(0x1d1),a73_0x2a729f[a73_0x4fdf93(0x1d4)]=a73_0x4fdf93(0x1df),a73_0x2a729f[a73_0x4fdf93(0x1ec)]=a73_0x4fdf93(0x1bb),a73_0x2a729f[a73_0x4fdf93(0x1ee)]=a73_0x4fdf93(0x1cc),a73_0x2a729f['KEY_CUSTOM_TAGS']=a73_0x4fdf93(0x1a2),a73_0x2a729f['KEY_TEST_ATTACHMENTS']=a73_0x4fdf93(0x1bc),a73_0x2a729f[a73_0x4fdf93(0x1e0)]=a73_0x4fdf93(0x1c8),a73_0x2a729f[a73_0x4fdf93(0x19a)]=a73_0x4fdf93(0x1a6),a73_0x2a729f[a73_0x4fdf93(0x1b6)]='file_path',a73_0x2a729f[a73_0x4fdf93(0x1c9)]='file_level';const TestFrameworkConstants=a73_0x2a729f;function a73_0x5a70(){const _0x58e61f=['test_uuid','custom_metadata','KEY_HOOK_ID','exports','KEY_AUTOMATE_SESSION_REASON','file_name','745008VIbXvg','KEY_EVENT_ENDED_AT','test_file_path','KEY_TEST_FRAMEWORK_NAME','KEY_TEST_META','182707VDyTAB','KEY_TEST_RESULT_AT','test_logs','pending','KEY_TEST_SCOPES','KEY_PLATFORM_INDEX','KEY_TEST_NAME','KEY_TEST_LOGS','KEY_TEST_FILE_PATH','6602170KsPzNe','KEY_FILE_PATH','KIND_LOG','hook_name','701133aULTbU','event_ended_at','test_hook_last_finished','test_attachments','KEY_TEST_SCOPE','test_ended_at','30vxpifg','test_failure','test_scopes','TEST_SCREENSHOT','test_rerun_name','test_framework_name','hook_failure_type','KEY_TEST_FAILURE_REASON','automate_session_reason','file_size','KEY_FILE_LEVEL','KEY_EVENT_STARTED_AT','KEY_TEST_FAILURE_TYPE','logs','KEY_TEST_RETRY_OF','1690OrqmVG','automate_session_name','test_id','test_hooks_finished','KEY_TEST_FAILURE','hook_failure_reason','KEY_HOOK_LAST_STARTED','test_started_at','KEY_TEST_CODE','hook_logs','KEY_HOOKS_FINISHED','event_started_at','hook_failure','KEY_TEST_ID','test_failure_reason','test_result_at','KEY_TEST_TAGS','test_hook_last_started','KEY_FILE_SIZE','^(BEFORE_|AFTER_)','automate_session_status','hook_result','test_duration','TEST_LOG','KEY_TEST_DURATION','9AqeSYC','KEY_TEST_RERUN_NAME','74760dbYvuw','KEY_HOOK_FAILURE_REASON','494305POCUsp','KEY_HOOK_LAST_FINISHED','169qYOWRq','KEY_LOGS','test_failure_type','KEY_HOOK_LOGS','KEY_TEST_LOCATION','KEY_HOOK_RESULT','test_framework_version','hook_id','KEY_HOOK_FAILURE_TYPE','KEY_FILE_NAME','platform_index','test_session_name','KEY_AUTOMATE_SESSION_STATUS','test_scope','test_name','KEY_SESSION_NAME'];a73_0x5a70=function(){return _0x58e61f;};return a73_0x5a70();}module[a73_0x4fdf93(0x1a4)]=TestFrameworkConstants;
1
+ const a73_0x5505e0=a73_0x7163;(function(_0x3cdbc3,_0x5a34ba){const _0x5380df=a73_0x7163,_0x149cd2=_0x3cdbc3();while(!![]){try{const _0x352763=-parseInt(_0x5380df(0x1e7))/0x1+-parseInt(_0x5380df(0x1bd))/0x2+-parseInt(_0x5380df(0x207))/0x3+parseInt(_0x5380df(0x1c2))/0x4*(-parseInt(_0x5380df(0x1ff))/0x5)+parseInt(_0x5380df(0x1ea))/0x6*(-parseInt(_0x5380df(0x208))/0x7)+parseInt(_0x5380df(0x1c7))/0x8*(parseInt(_0x5380df(0x203))/0x9)+parseInt(_0x5380df(0x1e2))/0xa;if(_0x352763===_0x5a34ba)break;else _0x149cd2['push'](_0x149cd2['shift']());}catch(_0x26c3ee){_0x149cd2['push'](_0x149cd2['shift']());}}}(a73_0x410e,0x2643e));const a73_0x3e45e1={};a73_0x3e45e1[a73_0x5505e0(0x201)]=a73_0x5505e0(0x1b8),a73_0x3e45e1[a73_0x5505e0(0x1ed)]=a73_0x5505e0(0x1bf),a73_0x3e45e1[a73_0x5505e0(0x1f7)]=a73_0x5505e0(0x1b9),a73_0x3e45e1[a73_0x5505e0(0x1af)]='test_file_path',a73_0x3e45e1[a73_0x5505e0(0x1da)]='test_tags',a73_0x3e45e1[a73_0x5505e0(0x1f3)]='test_result',a73_0x3e45e1[a73_0x5505e0(0x1e8)]=a73_0x5505e0(0x1b7),a73_0x3e45e1['KEY_TEST_STARTED_AT']='test_started_at',a73_0x3e45e1[a73_0x5505e0(0x1dc)]=a73_0x5505e0(0x1e0),a73_0x3e45e1[a73_0x5505e0(0x1b1)]='test_location',a73_0x3e45e1[a73_0x5505e0(0x1d5)]=a73_0x5505e0(0x1c9),a73_0x3e45e1[a73_0x5505e0(0x1fa)]=a73_0x5505e0(0x1be),a73_0x3e45e1[a73_0x5505e0(0x1fc)]=a73_0x5505e0(0x1d0),a73_0x3e45e1['KEY_TEST_FRAMEWORK_NAME']=a73_0x5505e0(0x1ad),a73_0x3e45e1[a73_0x5505e0(0x1b0)]=a73_0x5505e0(0x1ce),a73_0x3e45e1[a73_0x5505e0(0x205)]=a73_0x5505e0(0x1fd),a73_0x3e45e1[a73_0x5505e0(0x1f8)]='test_rerun_name',a73_0x3e45e1[a73_0x5505e0(0x1d3)]='retry_of',a73_0x3e45e1[a73_0x5505e0(0x1d1)]=a73_0x5505e0(0x1f2),a73_0x3e45e1[a73_0x5505e0(0x1b3)]=a73_0x5505e0(0x1bb),a73_0x3e45e1['KEY_TEST_FAILURE_TYPE']=a73_0x5505e0(0x1ba),a73_0x3e45e1[a73_0x5505e0(0x1db)]=a73_0x5505e0(0x1c0),a73_0x3e45e1[a73_0x5505e0(0x1cb)]='test_logs',a73_0x3e45e1[a73_0x5505e0(0x1c5)]=a73_0x5505e0(0x1cd),a73_0x3e45e1[a73_0x5505e0(0x1d4)]=a73_0x5505e0(0x1c3),a73_0x3e45e1[a73_0x5505e0(0x1d7)]=a73_0x5505e0(0x1bc),a73_0x3e45e1[a73_0x5505e0(0x1b6)]=a73_0x5505e0(0x1d6),a73_0x3e45e1['KEY_AUTOMATE_SESSION_REASON']=a73_0x5505e0(0x1b4),a73_0x3e45e1['KEY_EVENT_STARTED_AT']=a73_0x5505e0(0x1b5),a73_0x3e45e1['KEY_EVENT_ENDED_AT']=a73_0x5505e0(0x1ec),a73_0x3e45e1[a73_0x5505e0(0x1eb)]=a73_0x5505e0(0x1f1),a73_0x3e45e1[a73_0x5505e0(0x1e9)]=a73_0x5505e0(0x1ae),a73_0x3e45e1[a73_0x5505e0(0x202)]=a73_0x5505e0(0x1cf),a73_0x3e45e1[a73_0x5505e0(0x1df)]='hook_failure_reason',a73_0x3e45e1[a73_0x5505e0(0x1e4)]=a73_0x5505e0(0x1e3),a73_0x3e45e1[a73_0x5505e0(0x1c6)]=a73_0x5505e0(0x1fb),a73_0x3e45e1[a73_0x5505e0(0x1ee)]=a73_0x5505e0(0x1ca),a73_0x3e45e1[a73_0x5505e0(0x1f9)]='pending',a73_0x3e45e1['DEFAULT_HOOK_RESULT']=a73_0x5505e0(0x1d8),a73_0x3e45e1[a73_0x5505e0(0x1b2)]=a73_0x5505e0(0x1c4),a73_0x3e45e1['KIND_LOG']=a73_0x5505e0(0x1c1),a73_0x3e45e1[a73_0x5505e0(0x200)]='^(BEFORE_|AFTER_)',a73_0x3e45e1[a73_0x5505e0(0x1e6)]=a73_0x5505e0(0x1fe),a73_0x3e45e1[a73_0x5505e0(0x206)]='test_hooks_finished',a73_0x3e45e1[a73_0x5505e0(0x1f5)]=a73_0x5505e0(0x204),a73_0x3e45e1[a73_0x5505e0(0x1de)]='test_hook_last_finished',a73_0x3e45e1[a73_0x5505e0(0x1dd)]=a73_0x5505e0(0x1c8),a73_0x3e45e1[a73_0x5505e0(0x1cc)]=a73_0x5505e0(0x209),a73_0x3e45e1[a73_0x5505e0(0x1f4)]=a73_0x5505e0(0x1f0),a73_0x3e45e1['KEY_FILE_SIZE']=a73_0x5505e0(0x1f6),a73_0x3e45e1['KEY_FILE_NAME']=a73_0x5505e0(0x1d2),a73_0x3e45e1[a73_0x5505e0(0x1d9)]='file_path',a73_0x3e45e1[a73_0x5505e0(0x1ef)]=a73_0x5505e0(0x1e1);function a73_0x410e(){const _0x28e2f2=['KEY_HOOKS_STARTED','178688NyfbOy','KEY_TEST_RESULT_AT','KEY_HOOK_RESULT','6skOKuP','KEY_HOOK_ID','event_ended_at','KEY_TEST_ID','KEY_HOOK_NAME','KEY_FILE_LEVEL','test_attachments','hook_id','platform_index','KEY_TEST_RESULT','KEY_TEST_ATTACHMENTS','KEY_HOOK_LAST_STARTED','file_size','KEY_TEST_NAME','KEY_TEST_RERUN_NAME','DEFAULT_TEST_RESULT','KEY_TEST_SCOPE','hook_logs','KEY_TEST_SCOPES','test_code','test_hooks_started','54415gYCciw','HOOK_REGEX','KEY_TEST_UUID','KEY_HOOK_FAILURE_TYPE','14409dOQdiX','test_hook_last_started','KEY_TEST_CODE','KEY_HOOKS_FINISHED','14820NshBDL','859523wsBdFm','custom_metadata','test_framework_name','hook_result','KEY_TEST_FILE_PATH','KEY_TEST_FRAMEWORK_VERSION','KEY_TEST_LOCATION','KIND_SCREENSHOT','KEY_TEST_FAILURE','automate_session_reason','event_started_at','KEY_AUTOMATE_SESSION_STATUS','test_result_at','test_uuid','test_name','test_failure_type','test_failure','automate_session_name','129718qYjpUi','test_scope','test_id','test_failure_reason','TEST_LOG','28ndmMnu','test_session_name','TEST_SCREENSHOT','KEY_TEST_META','KEY_HOOK_LOGS','1448zhnpjF','logs','test_duration','hook_name','KEY_TEST_LOGS','KEY_CUSTOM_TAGS','test_meta','test_framework_version','hook_failure_type','test_scopes','KEY_PLATFORM_INDEX','file_name','KEY_TEST_RETRY_OF','KEY_SESSION_NAME','KEY_TEST_DURATION','automate_session_status','KEY_AUTOMATE_SESSION_NAME','pending','KEY_FILE_PATH','KEY_TEST_TAGS','KEY_TEST_FAILURE_REASON','KEY_TEST_ENDED_AT','KEY_LOGS','KEY_HOOK_LAST_FINISHED','KEY_HOOK_FAILURE_REASON','test_ended_at','file_level','3144100TDOzNZ','hook_failure','KEY_HOOK_FAILURE','exports'];a73_0x410e=function(){return _0x28e2f2;};return a73_0x410e();}const TestFrameworkConstants=a73_0x3e45e1;function a73_0x7163(_0x18860e,_0x278531){const _0x410ef8=a73_0x410e();return a73_0x7163=function(_0x7163b3,_0x171def){_0x7163b3=_0x7163b3-0x1ad;let _0x4009df=_0x410ef8[_0x7163b3];return _0x4009df;},a73_0x7163(_0x18860e,_0x278531);}module[a73_0x5505e0(0x1e5)]=TestFrameworkConstants;
@@ -1 +1 @@
1
- const a74_0x1f3df8=a74_0xfeb7;(function(_0x537c07,_0x1c57c0){const _0x4630ba=a74_0xfeb7,_0x24b27a=_0x537c07();while(!![]){try{const _0x5b3950=parseInt(_0x4630ba(0x144))/0x1+parseInt(_0x4630ba(0x125))/0x2*(-parseInt(_0x4630ba(0x149))/0x3)+parseInt(_0x4630ba(0x148))/0x4+-parseInt(_0x4630ba(0x17b))/0x5*(parseInt(_0x4630ba(0x17f))/0x6)+-parseInt(_0x4630ba(0x16b))/0x7*(-parseInt(_0x4630ba(0xdc))/0x8)+-parseInt(_0x4630ba(0x166))/0x9*(-parseInt(_0x4630ba(0x122))/0xa)+-parseInt(_0x4630ba(0xea))/0xb;if(_0x5b3950===_0x1c57c0)break;else _0x24b27a['push'](_0x24b27a['shift']());}catch(_0xaa0371){_0x24b27a['push'](_0x24b27a['shift']());}}}(a74_0x4efd,0xd70bb));const TestFramework=require(a74_0x1f3df8(0x145)),TestFrameworkState=require('../state/testFrameworkState.js'),HookState=require('../state/hookState.js'),{createClassLogger}=require('../../../helpers/classLogger.js'),TestFrameworkInstance=require(a74_0x1f3df8(0x150)),CLIUtils=require(a74_0x1f3df8(0x109)),TrackedInstance=require('../instances/trackedInstance.js'),TestFrameworkConstants=require(a74_0x1f3df8(0x189)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a74_0x1f3df8(0x124)),logger=createClassLogger(a74_0x1f3df8(0xff)),{v4:uuidv4}=require(a74_0x1f3df8(0x18f)),util=require(a74_0x1f3df8(0x184)),TestInfo=require(a74_0x1f3df8(0x140)),GrpcClient=require(a74_0x1f3df8(0x14a));function a74_0xfeb7(_0x599a97,_0x6afb97){const _0x4efd9f=a74_0x4efd();return a74_0xfeb7=function(_0xfeb7bd,_0x1ca2a9){_0xfeb7bd=_0xfeb7bd-0xd4;let _0x5946e8=_0x4efd9f[_0xfeb7bd];return _0x5946e8;},a74_0xfeb7(_0x599a97,_0x6afb97);}function a74_0x4efd(){const _0x21edd0=['qnrDo','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','../cliUtils.js','getTestFrameworks','KEY_TEST_RERUN_NAME','testFrameworkName','KEY_HOOK_FAILURE','ceil','result','finished_at','processPendingHooks','pmlix','KEY_EVENT_STARTED_AT','unknown','hasPendingHooks','tags','ybziG','sendLogCreatedEvent','KEY_TEST_STARTED_AT',',\x20error:\x20','KEY_TEST_FILE_PATH','YvqTb','browserstackPlatformIndex','get','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','base64','31250EfSfdG','push','../../../helpers/helper.js','38sZjuSP','trackCucumberInstance','KEY_TEST_FAILURE_REASON','KEY_TEST_UUID','format','storePendingHook','stringify','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','KEY_TEST_SCOPES','\x20and\x20args\x20=\x20','trackEvent','KEY_LOGS','getThreadId','KEY_HOOK_LAST_FINISHED','createContext','instance','KEY_TEST_LOGS','getPendingHooks','Processing\x20','Tracked\x20cucumber\x20hook\x20event:\x20','body','getAllData','KEY_HOOKS_FINISHED','\x20&\x20hookState=','LOG_REPORT','KEY_TEST_SCOPE','getId','../TestInfo.js','failure_reason','JVgVD','createTestFrameworkEventPayload\x20testId:\x20','1361478mVULQu','./testFramework','meta','\x20payload=','1346228GaqcST','65211Yjeden','../grpcClient','slice','uhoYq','getCurrentTestState','key','matchHookRegex','../instances/testFrameworkInstance.js','NONE','VOGsO','error','trackHookEvent','failure','eventJson','args','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','length','TQtoa','\x20for\x20test:\x20','hookState','addMultipleEntries','resolveInstance','parseCucumberTestResult','KEY_HOOKS_STARTED','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','name','pop','scopes','KEY_TEST_RESULT_AT','2205oaYcFF','failed','zYQFk','KEY_CUSTOM_TAGS','IYrUo','13062axUuqz','rerun_name','customRerunParam','PRE','getTestUUID','debug','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','\x20&\x20hook\x20=\x20','testFrameworkVersion',',\x20state=','KEY_TEST_LOCATION','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','exports','platformIndex','Error\x20in\x20createTestFrameworkEventPayload:\x20','hookData','111400NGFOmK','KEY_TEST_ID','jzOzJ','location','186yJtRTp','RISRa','keys','KEY_HOOK_LOGS','getInstance','util','tzgXV','runHooks','KEY_TEST_FRAMEWORK_NAME','split','./constants/testFrameworkConstants.js','qCfFZ','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','KEY_TEST_TAGS','VXddd','KEY_TEST_RESULT','uuid','getRef','setTestDetails','test','testData','Parsed\x20cucumber\x20test:\x20','KEY_TEST_ATTACHMENTS','DeyhF','KLGsy','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','finishedAt','\x20with\x20result:\x20','QXWXr','executionContext','getCurrentHookState','KEY_TEST_FRAMEWORK_VERSION',',\x20storing\x20as\x20pending\x20hook','zvHPR','CcOPy','inspect','getProcessId','failure_type','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','UnhandledError','getTestDetails','code','\x20target=','\x20pending\x20hooks\x20for\x20testId:\x20','auQXw','addPendingHook','TpLgx','getTestFrameworksVersions','startedAt','KEY_HOOK_FAILURE_TYPE','DEFAULT_TEST_RESULT','trackEvent:\x20unsupported\x20testFrameworkState=','getContext','KEY_EVENT_ENDED_AT','2488qkXxMV','POST','hook_type','rKfpp','KEY_AUTOMATE_SESSION_NAME','parseCucumberTest','ZWdFY','passed','setTrackedInstance','getCurrentInstanceName','frUGY','\x20testState:\x20','sendLogCreatedEvent:\x20for\x20testId:\x20','KEY_HOOK_NAME','11654236sWThvO','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','readLogObjects','createTestFrameworkEventPayload','KEY_HOOK_RESULT','started_at','testFrameworkState','hooks','\x20with\x20UUID:\x20','from','endedAt','ndGoi','logCreatedEvent','toISOString','toString','biTKQ','failure_data','DEFAULT_HOOK_RESULT','KEY_TEST_FAILURE_TYPE','TEST','KEY_TEST_META','CucumberTestFramework','getTrackedInstance','LyhYx','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','testUUID','\x20\x20and\x20args\x20=\x20','FeseT','test_run_id'];a74_0x4efd=function(){return _0x21edd0;};return a74_0x4efd();}class CucumberTestFramework extends TestFramework{constructor(_0x3e6e36,_0x44a1a7,_0x19b0e6){super(_0x3e6e36,_0x44a1a7,_0x19b0e6);}async[a74_0x1f3df8(0x12f)](_0x391014,_0x43b933,_0x55fc70={}){const _0x554e75=a74_0x1f3df8,_0x3fdf46={};_0x3fdf46['YvqTb']=_0x554e75(0x102),_0x3fdf46['oIfnI']=function(_0x55bb6f,_0x38ae7d){return _0x55bb6f===_0x38ae7d;},_0x3fdf46[_0x554e75(0x142)]=function(_0x33abee,_0x3be32a){return _0x33abee===_0x3be32a;},_0x3fdf46[_0x554e75(0xdf)]=_0x554e75(0x108);const _0x191018=_0x3fdf46;await super[_0x554e75(0x12f)](_0x391014,_0x43b933,_0x55fc70);const _0x559b9e=this[_0x554e75(0x15e)](_0x391014,_0x43b933,_0x55fc70);if(!_0x559b9e){logger[_0x554e75(0x170)](_0x191018[_0x554e75(0x11c)]);return;}try{let _0x47fabf,_0x5a97b1;switch(_0x391014){case TestFrameworkState['TEST']:_0x47fabf=_0x55fc70[_0x554e75(0x192)],_0x5a97b1=TestInfo[_0x554e75(0x16f)](_0x47fabf['id']);if(_0x191018['oIfnI'](_0x43b933,HookState[_0x554e75(0x16e)])){logger[_0x554e75(0x170)](_0x554e75(0x120)+_0x47fabf['id']);const _0xc228df={};_0xc228df['testUUID']=_0x5a97b1,_0xc228df['testData']=_0x47fabf,_0x559b9e[_0x554e75(0x15d)](this[_0x554e75(0xe1)](_0xc228df)),logger['debug']('trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20'+_0x47fabf['id']),await this[_0x554e75(0x111)](_0x559b9e,_0x47fabf['id']);}else{if(_0x191018['oIfnI'](_0x43b933,HookState['POST'])){const _0xc5692c={};_0xc5692c[_0x554e75(0x103)]=_0x5a97b1,_0xc5692c[_0x554e75(0x193)]=_0x47fabf,_0x559b9e[_0x554e75(0x15d)](this['parseCucumberTestResult'](_0xc5692c)),await this[_0x554e75(0x111)](_0x559b9e,_0x47fabf['id']);}}break;case TestFrameworkState[_0x554e75(0x13d)]:_0x191018['JVgVD'](_0x43b933,HookState[_0x554e75(0xdd)])&&await this[_0x554e75(0x118)](_0x559b9e,_0x391014,_0x55fc70);break;default:if(CLIUtils[_0x554e75(0x14f)](_0x391014[_0x554e75(0xf8)]()[_0x554e75(0x188)]('.')[0x1])){const _0x17b1cb=await this[_0x554e75(0x154)](_0x559b9e,_0x391014,_0x43b933,_0x55fc70);_0x559b9e[_0x554e75(0x15d)](_0x17b1cb);}else logger[_0x554e75(0x170)](_0x554e75(0xd9)+_0x391014+_0x554e75(0x13c)+_0x43b933);break;}}catch(_0x3ee133){logger['error'](util['format'](_0x191018[_0x554e75(0xdf)],_0x391014,_0x43b933,_0x55fc70['length'],_0x3ee133));}_0x55fc70[_0x554e75(0x134)]=_0x559b9e,await this[_0x554e75(0x186)](_0x559b9e,_0x391014,_0x43b933,_0x55fc70);}[a74_0x1f3df8(0x15e)](_0x418a8c,_0x45c381,_0x3a658a={}){const _0x553879=a74_0x1f3df8,_0xd6fee0={};_0xd6fee0[_0x553879(0x15a)]=function(_0x292d03,_0x15efa4){return _0x292d03===_0x15efa4;};const _0x1227bd=_0xd6fee0;let _0x1ed11b=null;return(_0x1227bd[_0x553879(0x15a)](_0x418a8c,TestFrameworkState['INIT_TEST'])||_0x1227bd['TQtoa'](_0x418a8c,TestFrameworkState[_0x553879(0x151)]))&&this['trackCucumberInstance'](_0x418a8c,_0x3a658a),_0x1ed11b=TestFramework[_0x553879(0x100)](),_0x1ed11b;}[a74_0x1f3df8(0x126)](_0x181e44,_0x126b7a){const _0x4724ef=a74_0x1f3df8,_0x4e90a6=CLIUtils[_0x4724ef(0xe5)](),_0x1d91e9=TrackedInstance[_0x4724ef(0x133)](_0x4e90a6);let _0x3e8eb7=null;logger[_0x4724ef(0x170)](_0x4724ef(0x171)+_0x4e90a6+_0x4724ef(0x174)+_0x181e44),_0x3e8eb7=new TestFrameworkInstance(_0x1d91e9,this[_0x4724ef(0x10a)](),this[_0x4724ef(0xd5)](),_0x181e44,HookState['NONE']),TestFramework[_0x4724ef(0xe4)](_0x1d91e9,_0x3e8eb7),logger[_0x4724ef(0x170)]('trackCucumberInstance:\x20saved\x20instance\x20contextId='+_0x1d91e9['getId']()+_0x4724ef(0x1a9)+_0x4e90a6);}[a74_0x1f3df8(0xe1)](_0x34fee9){const _0x4c9d83=a74_0x1f3df8,_0x5964a0={};_0x5964a0[_0x4c9d83(0x14c)]=_0x4c9d83(0x176);const _0x2c98f=_0x5964a0,{testUUID:_0x49a02d,testData:_0xbbec79}=_0x34fee9;if(!_0xbbec79||!_0xbbec79[_0x4c9d83(0x18f)])return logger[_0x4c9d83(0x170)](_0x2c98f[_0x4c9d83(0x14c)]),{};const _0x3c9780=_0x49a02d,_0x493f2c=_0xbbec79['uuid'],_0x4f7e0e=this[_0x4c9d83(0x10a)]()[0x0],_0x399c5d=this['getTestFrameworksVersions'](),_0xaaccc1={[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x4f7e0e,[TestFrameworkConstants[_0x4c9d83(0x19e)]]:_0x399c5d[_0x4f7e0e],[TestFrameworkConstants[_0x4c9d83(0x135)]]:[],[TestFrameworkConstants[_0x4c9d83(0x13b)]]:{},[TestFrameworkConstants['KEY_HOOKS_STARTED']]:{},[TestFrameworkConstants['KEY_TEST_UUID']]:_0x3c9780,[TestFrameworkConstants[_0x4c9d83(0x18e)]]:TestFrameworkConstants[_0x4c9d83(0xd8)],[TestFrameworkConstants[_0x4c9d83(0xe0)]]:_0xbbec79[_0x4c9d83(0x162)]||'',[TestFrameworkConstants[_0x4c9d83(0x11b)]]:_0xbbec79['file_name']||'',[TestFrameworkConstants[_0x4c9d83(0x17c)]]:_0x493f2c,[TestFrameworkConstants['KEY_TEST_NAME']]:_0xbbec79[_0x4c9d83(0x162)]||'',[TestFrameworkConstants[_0x4c9d83(0x175)]]:_0xbbec79[_0x4c9d83(0x17e)]||'',[TestFrameworkConstants['KEY_TEST_CODE']]:_0xbbec79[_0x4c9d83(0x139)]?.[_0x4c9d83(0x1a8)]||null,[TestFrameworkConstants[_0x4c9d83(0x18c)]]:_0xbbec79[_0x4c9d83(0x116)]||[],[TestFrameworkConstants[_0x4c9d83(0x119)]]:_0xbbec79['startedAt']||new Date()['toISOString'](),[TestFrameworkConstants[_0x4c9d83(0x13e)]]:_0xbbec79[_0x4c9d83(0x164)]?.[0x0]||'',[TestFrameworkConstants[_0x4c9d83(0x12d)]]:_0xbbec79[_0x4c9d83(0x164)]||[],[TestFrameworkConstants[_0x4c9d83(0x10b)]]:_0xbbec79[_0x4c9d83(0x16d)]?.[_0x4c9d83(0x16c)]||_0xbbec79[_0x4c9d83(0x162)]||'',[TestFrameworkConstants[_0x4c9d83(0x169)]]:{},[TestFrameworkConstants[_0x4c9d83(0xfe)]]:_0xbbec79[_0x4c9d83(0x146)]||{}};TestInfo[_0x4c9d83(0x191)](_0x493f2c,_0xaaccc1),logger[_0x4c9d83(0x170)](_0x4c9d83(0x194)+_0xbbec79[_0x4c9d83(0x162)]+_0x4c9d83(0xf2)+_0x3c9780);const _0x316503={};return _0x316503[_0x493f2c]=_0xaaccc1,_0x316503;}[a74_0x1f3df8(0x15f)](_0x41c860){const _0x421723=a74_0x1f3df8,_0x10b72a={'zYQFk':_0x421723(0x1a5),'oxmIK':_0x421723(0x114),'ZWdFY':function(_0x1c8959,_0x41be7d){return _0x1c8959===_0x41be7d;},'QXWXr':_0x421723(0x167),'zvHPR':_0x421723(0x1a6),'pmlix':function(_0x339e4c,_0x2d72ac,_0x95ae55){return _0x339e4c(_0x2d72ac,_0x95ae55);},'VOGsO':function(_0x59b59c,_0x23da1d){return _0x59b59c>_0x23da1d;},'biTKQ':function(_0x555244,_0xf9217a){return _0x555244>_0xf9217a;}},{testUUID:_0x3a1d5f,testData:_0x26e352}=_0x41c860;if(!_0x26e352||!_0x26e352[_0x421723(0x18f)])return logger[_0x421723(0x170)](_0x10b72a[_0x421723(0x168)]),{};const _0x52d679=this[_0x421723(0x15e)](TestFrameworkState[_0x421723(0xfd)],HookState[_0x421723(0xdd)]),_0x5270e2=_0x26e352[_0x421723(0x18f)],_0x497470=TestInfo[_0x421723(0x1a7)](_0x5270e2)||{},_0x10f2c8=_0x497470?_0x497470[TestFrameworkConstants[_0x421723(0x169)]]||{}:{},_0x2534b6={..._0x497470,[TestFrameworkConstants[_0x421723(0x18e)]]:_0x26e352['result']||_0x10b72a['oxmIK'],[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x26e352[_0x421723(0x199)]||new Date()[_0x421723(0xf7)](),[TestFrameworkConstants[_0x421723(0x165)]]:new Date()['toISOString'](),[TestFrameworkConstants[_0x421723(0x169)]]:_0x10f2c8,[TestFrameworkConstants[_0x421723(0x130)]]:[],[TestFrameworkConstants[_0x421723(0xfe)]]:_0x26e352[_0x421723(0x146)]||{}};_0x10b72a[_0x421723(0xe2)](_0x26e352[_0x421723(0x10f)],_0x10b72a[_0x421723(0x19b)])&&_0x26e352[_0x421723(0x155)]&&(_0x2534b6[TestFrameworkConstants[_0x421723(0xfc)]]=_0x26e352[_0x421723(0x1a4)]||_0x10b72a[_0x421723(0x1a0)],_0x2534b6[TestFrameworkConstants[_0x421723(0x127)]]=_0x26e352['failure_reason']||'',_0x2534b6[TestFrameworkConstants['KEY_TEST_FAILURE']]=_0x26e352[_0x421723(0x155)]);const _0x440bb8=TestInfo[_0x421723(0x1a7)](_0x5270e2)[TestFrameworkConstants[_0x421723(0x195)]]||{},_0x130e43=_0x10b72a[_0x421723(0x112)](getManualUploadLogs,_0x440bb8,_0x52d679['getAllData']()['get'](_0x5270e2)[TestFrameworkConstants[_0x421723(0x128)]]);if(_0x10b72a[_0x421723(0x152)](_0x130e43[_0x421723(0x159)],0x0)){const _0x24051a=_0x2534b6[TestFrameworkConstants[_0x421723(0x130)]]||[];_0x2534b6[TestFrameworkConstants['KEY_LOGS']]=[..._0x24051a,..._0x130e43];}_0x26e352[_0x421723(0xf1)]&&_0x10b72a[_0x421723(0xf9)](_0x26e352[_0x421723(0xf1)]['length'],0x0)&&(_0x2534b6[TestFrameworkConstants['KEY_HOOKS_FINISHED']]=_0x26e352[_0x421723(0xf1)]);TestInfo['setTestDetails'](_0x5270e2,_0x2534b6),logger[_0x421723(0x170)]('Updated\x20cucumber\x20test\x20result:\x20'+_0x26e352[_0x421723(0x162)]+_0x421723(0x19a)+_0x26e352['result']);const _0x440726={};return _0x440726[_0x5270e2]=_0x2534b6,_0x440726;}async[a74_0x1f3df8(0x154)](_0x11afb2,_0x523a35,_0x51b454,_0x2587e1){const _0x8503cb=a74_0x1f3df8,_0xe9aed7={'ybziG':_0x8503cb(0x158),'tGdfI':function(_0x5fb717){return _0x5fb717();},'jzOzJ':function(_0x493675,_0x543418){return _0x493675 in _0x543418;},'frUGY':function(_0x100b66,_0x397696){return _0x100b66===_0x397696;},'ZnQsU':function(_0x188633,_0x59cd01){return _0x188633>_0x59cd01;},'CcOPy':_0x8503cb(0x167),'IYrUo':_0x8503cb(0x1a6),'ndGoi':_0x8503cb(0xe3),'TFmyG':function(_0x2f6c56,_0x44d0da){return _0x2f6c56!==_0x44d0da;}},{hookData:_0x4626dc}=_0x2587e1;if(!_0x4626dc)return logger[_0x8503cb(0x170)](_0xe9aed7[_0x8503cb(0x117)]),{};const _0x4d12e7=_0x4626dc['uuid']||_0xe9aed7['tGdfI'](uuidv4),_0x45819d=_0x4626dc[_0x8503cb(0x106)],_0x274da5=_0x523a35['toString']()[_0x8503cb(0x188)]('.')[0x1],_0x4c17c3=TestInfo[_0x8503cb(0x1a7)](_0x45819d)[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{},_0x42629e=_0x11afb2['getAllData']()['get'](_0x45819d);if(!_0x42629e)return logger[_0x8503cb(0x170)](_0x8503cb(0xeb)+_0x45819d+_0x8503cb(0x19f)),this[_0x8503cb(0x12a)](_0x11afb2,_0x45819d,_0x523a35,_0x51b454,_0x2587e1),{};let _0x419f17=_0x42629e[TestFrameworkConstants[_0x8503cb(0x160)]];!_0x419f17&&(_0x419f17={});!_0xe9aed7[_0x8503cb(0x17d)](_0x274da5,_0x419f17)&&(_0x419f17[_0x274da5]=[]);let _0x44006d=_0x42629e[TestFrameworkConstants[_0x8503cb(0x13b)]];!_0x44006d&&(_0x44006d={});!_0xe9aed7[_0x8503cb(0x17d)](_0x274da5,_0x44006d)&&(_0x44006d[_0x274da5]=[]);const _0x1cef03={[TestFrameworkConstants['KEY_HOOKS_STARTED']]:_0x419f17,[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:_0x44006d},_0x354401={};_0x354401[_0x45819d]=_0x1cef03;const _0x18b356=_0x354401;if(_0xe9aed7[_0x8503cb(0xe6)](_0x51b454,HookState[_0x8503cb(0x16e)])){const _0x5d2233={[TestFrameworkConstants['KEY_HOOK_ID']]:_0x4d12e7,[TestFrameworkConstants[_0x8503cb(0xee)]]:TestFrameworkConstants[_0x8503cb(0xfb)],[TestFrameworkConstants[_0x8503cb(0x113)]]:_0x4626dc[_0x8503cb(0xef)],[TestFrameworkConstants[_0x8503cb(0x182)]]:[],[TestFrameworkConstants[_0x8503cb(0xe9)]]:_0x4626dc[_0x8503cb(0xde)],[TestFrameworkConstants[_0x8503cb(0x169)]]:_0x4c17c3};_0x5d2233[_0x8503cb(0x14e)]=_0x274da5;const _0x34bbfd=_0x5d2233;_0x419f17[_0x274da5][_0x8503cb(0x123)](_0x34bbfd),_0x18b356[_0x45819d][TestFrameworkConstants['KEY_HOOK_LAST_STARTED']]=_0x274da5,logger[_0x8503cb(0x170)]('trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20'+_0x274da5+_0x8503cb(0x172)+_0x34bbfd+_0x8503cb(0x104)+_0x2587e1);}else{if(_0xe9aed7[_0x8503cb(0xe6)](_0x51b454,HookState['POST'])){const _0x3abd57=_0x4626dc[_0x8503cb(0x10f)],_0x100e08=_0x419f17[_0x274da5]||[];logger['debug']('trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20'+_0x100e08+_0x8503cb(0x12e)+_0x2587e1);if(_0xe9aed7['ZnQsU'](_0x100e08[_0x8503cb(0x159)],0x0)){const _0x2e5993=_0x100e08[_0x8503cb(0x163)]();_0xe9aed7[_0x8503cb(0xe6)](_0x4626dc[_0x8503cb(0x10f)],_0xe9aed7[_0x8503cb(0x1a1)])&&_0x4626dc[_0x8503cb(0xfa)]?(_0x2e5993[TestFrameworkConstants[_0x8503cb(0xd7)]]=_0x4626dc[_0x8503cb(0x1a4)]||_0xe9aed7[_0x8503cb(0x16a)],_0x2e5993[TestFrameworkConstants['KEY_HOOK_FAILURE_REASON']]=_0x4626dc[_0x8503cb(0x141)]||'',_0x2e5993[TestFrameworkConstants[_0x8503cb(0x10d)]]=_0x4626dc[_0x8503cb(0xfa)]):_0x2e5993[TestFrameworkConstants[_0x8503cb(0xee)]]=_0xe9aed7[_0x8503cb(0xf5)];_0xe9aed7['TFmyG'](_0x3abd57,TestFrameworkConstants['DEFAULT_HOOK_RESULT'])&&(_0x2e5993[TestFrameworkConstants[_0x8503cb(0xee)]]=_0x3abd57);_0x2e5993[TestFrameworkConstants[_0x8503cb(0xdb)]]=_0x4626dc[_0x8503cb(0x110)]||new Date()[_0x8503cb(0xf7)](),_0x2e5993[TestFrameworkConstants[_0x8503cb(0x169)]]=_0x4c17c3;const _0x3df8dc=_0x2e5993[TestFrameworkConstants['KEY_HOOK_ID']];!_0x44006d[_0x274da5]&&(_0x44006d[_0x274da5]=[]),_0x44006d[_0x274da5][_0x8503cb(0x123)](_0x2e5993),_0x18b356[_0x45819d][TestFrameworkConstants[_0x8503cb(0x132)]]=_0x274da5;}}}return logger['debug'](_0x8503cb(0x138)+_0x4626dc[_0x8503cb(0xde)]+'\x20with\x20id\x20'+_0x4d12e7+_0x8503cb(0x15b)+_0x45819d),_0x18b356;}[a74_0x1f3df8(0xed)](_0x258ea8){const _0x2bfd5b=a74_0x1f3df8,_0x1023c2={};_0x1023c2[_0x2bfd5b(0x101)]=_0x2bfd5b(0x121);const _0x15abf4=_0x1023c2;try{const _0x38df36=_0x258ea8[_0x2bfd5b(0x192)]?_0x258ea8[_0x2bfd5b(0x192)]['id']:_0x258ea8[_0x2bfd5b(0x17a)][_0x2bfd5b(0x106)],_0x397d43=_0x258ea8[_0x2bfd5b(0x134)],_0x2537a3=_0x397d43[_0x2bfd5b(0xda)](),_0x5babe9=_0x397d43[_0x2bfd5b(0x13a)]()[_0x2bfd5b(0x11e)](_0x38df36);if(!_0x5babe9)return logger[_0x2bfd5b(0x170)](_0x2bfd5b(0x11f)+_0x38df36),{};logger[_0x2bfd5b(0x170)](_0x2bfd5b(0x143)+_0x38df36);const {[TestFrameworkConstants[_0x2bfd5b(0x187)]]:_0x4f8ad0='',[TestFrameworkConstants[_0x2bfd5b(0x19e)]]:_0x723796='',[TestFrameworkConstants[_0x2bfd5b(0x119)]]:_0x5ef03d='',[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x3fee7a=''}=_0x5babe9,_0x2ef74e=_0x397d43[_0x2bfd5b(0x14d)]()[_0x2bfd5b(0xf8)]()[_0x2bfd5b(0x188)]('.')[0x1],_0x147976=_0x397d43[_0x2bfd5b(0x19d)]()[_0x2bfd5b(0xf8)]()[_0x2bfd5b(0x188)]('.')[0x1],_0x48dd5f=global?.[_0x2bfd5b(0x11d)]??0x0,_0x4f2cfd=_0x397d43[_0x2bfd5b(0x190)](),_0xedd0e9=Buffer[_0x2bfd5b(0xf3)](JSON[_0x2bfd5b(0x12b)](_0x5babe9))[_0x2bfd5b(0xf8)](_0x15abf4['LyhYx']),_0x20df75={'hash':_0x2537a3[_0x2bfd5b(0x13f)](),'threadId':_0x2537a3[_0x2bfd5b(0x131)]()['toString'](),'processId':_0x2537a3[_0x2bfd5b(0x1a3)]()[_0x2bfd5b(0xf8)]()},_0x5d9dc2={};_0x5d9dc2[_0x2bfd5b(0x178)]=_0x48dd5f,_0x5d9dc2[_0x2bfd5b(0x10c)]=_0x4f8ad0,_0x5d9dc2[_0x2bfd5b(0x173)]=_0x723796,_0x5d9dc2[_0x2bfd5b(0xf0)]=_0x2ef74e,_0x5d9dc2['hookState']=_0x147976,_0x5d9dc2[_0x2bfd5b(0xd6)]=_0x5ef03d,_0x5d9dc2[_0x2bfd5b(0xf4)]=_0x3fee7a,_0x5d9dc2['uuid']=_0x4f2cfd,_0x5d9dc2[_0x2bfd5b(0x156)]=_0xedd0e9,_0x5d9dc2[_0x2bfd5b(0x19c)]=_0x20df75;const _0x3b772f=_0x5d9dc2;return logger[_0x2bfd5b(0x170)](_0x2bfd5b(0x198)+_0x38df36+_0x2bfd5b(0xe7)+_0x2ef74e+'\x20hookState:\x20'+_0x147976),_0x3b772f;}catch(_0x3bd492){return logger[_0x2bfd5b(0x153)](_0x2bfd5b(0x179)+util[_0x2bfd5b(0x129)](_0x3bd492)),{};}}async[a74_0x1f3df8(0x118)](_0x2358eb,_0x5a8999,_0x31764f){const _0x141a10=a74_0x1f3df8,_0x354c7e={'tzgXV':function(_0x51be87,_0x2be0ab,_0x2a3861){return _0x51be87(_0x2be0ab,_0x2a3861);},'auQXw':function(_0x4eceb5,_0x54b9f4){return _0x4eceb5===_0x54b9f4;},'RISRa':_0x141a10(0x161),'VXddd':function(_0xcbc8bd,_0x3ad244){return _0xcbc8bd/_0x3ad244;},'DeyhF':function(_0x3c9239,_0x3f22f5){return _0x3c9239<_0x3f22f5;},'KLGsy':function(_0x3f8cfb,_0x337115){return _0x3f8cfb*_0x337115;},'FeseT':function(_0x1bb758,_0x501321){return _0x1bb758+_0x501321;},'TpLgx':function(_0x3cdefb,_0x2b4f7f){return _0x3cdefb+_0x2b4f7f;},'qnrDo':'Cucumber\x20log\x20created\x20event'};try{const _0x1fad68=_0x31764f[_0x141a10(0x103)],_0x22a190=_0x2358eb[_0x141a10(0x13a)]()['get'](_0x1fad68),{[TestFrameworkConstants[_0x141a10(0x187)]]:_0x3f07c6='',[TestFrameworkConstants[_0x141a10(0x19e)]]:_0x258c7f=''}=_0x22a190,_0x3b12a9=TestInfo[_0x141a10(0xec)](_0x1fad68),_0x386816=TestInfo[_0x141a10(0x1a7)](_0x1fad68)[TestFrameworkConstants[_0x141a10(0x195)]]||{},_0x3aae96=_0x354c7e[_0x141a10(0x185)](getMediaArtifactsLogs,_0x386816,_0x2358eb[_0x141a10(0x13a)]()['get'](_0x1fad68)[TestFrameworkConstants[_0x141a10(0x128)]]),_0x15a795=(_0x3b12a9||[])['concat'](_0x3aae96||[]);if(!_0x15a795||_0x354c7e[_0x141a10(0x1ab)](_0x15a795['length'],0x0)){logger['debug'](_0x354c7e[_0x141a10(0x180)]);return;}const _0x23c5d8=0x28,_0x2a88b7=Math[_0x141a10(0x10e)](_0x354c7e[_0x141a10(0x18d)](_0x15a795[_0x141a10(0x159)],_0x23c5d8));for(let _0x3fad10=0x0;_0x354c7e[_0x141a10(0x196)](_0x3fad10,_0x2a88b7);_0x3fad10++){const _0x7e6e8c=_0x354c7e[_0x141a10(0x197)](_0x3fad10,_0x23c5d8),_0x5322e8=_0x354c7e[_0x141a10(0x105)](_0x7e6e8c,_0x23c5d8),_0x42702b=_0x15a795[_0x141a10(0x14b)](_0x7e6e8c,_0x5322e8),_0xb9783c={'platformIndex':global?.['browserstackPlatformIndex']??0x0,'logs':_0x42702b,'testFrameworkName':_0x3f07c6,'testFrameworkVersion':_0x258c7f,'testFrameworkState':_0x5a8999['toString']()['split']('.')[0x1]};logger['debug'](_0x141a10(0xe8)+_0x1fad68+'\x20batch\x20'+_0x354c7e[_0x141a10(0x105)](_0x3fad10,0x1)+'/'+_0x2a88b7+_0x141a10(0x147)+util[_0x141a10(0x1a2)](_0xb9783c));const _0x5a77a7=await GrpcClient[_0x141a10(0x183)]()[_0x141a10(0xf6)](_0xb9783c);logger[_0x141a10(0x170)](_0x141a10(0xe8)+_0x1fad68+'\x20batch\x20'+_0x354c7e[_0x141a10(0xd4)](_0x3fad10,0x1)+'/'+_0x2a88b7+'\x20response='+util[_0x141a10(0x1a2)](_0x5a77a7));}}catch(_0x3b6b1c){logger['error']('sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20'+util[_0x141a10(0x129)](_0x3b6b1c));}logger['debug'](_0x354c7e[_0x141a10(0x107)]);}[a74_0x1f3df8(0x12a)](_0x2e4a66,_0xef0338,_0x5ef94f,_0x3e33ec,_0x1432dc){const _0x3ca5b0=a74_0x1f3df8,_0x34de2e={'testId':_0xef0338,'testFrameworkState':_0x5ef94f,'hookState':_0x3e33ec,'args':_0x1432dc,'timestamp':new Date()[_0x3ca5b0(0xf7)]()};_0x2e4a66[_0x3ca5b0(0x1ac)](_0xef0338,_0x34de2e),logger['debug']('Stored\x20pending\x20hook\x20for\x20testId:\x20'+_0xef0338+',\x20state:\x20'+_0x5ef94f+',\x20hookState:\x20'+_0x3e33ec);}async[a74_0x1f3df8(0x111)](_0x264133,_0x12a7d0){const _0x48019f=a74_0x1f3df8,_0x4fa261={};_0x4fa261[_0x48019f(0x18a)]=function(_0x1301f5,_0x1ea35e){return _0x1301f5>_0x1ea35e;};const _0x5f2528=_0x4fa261;if(!_0x264133[_0x48019f(0x115)](_0x12a7d0))return;const _0x56765c=_0x264133[_0x48019f(0x136)](_0x12a7d0);logger[_0x48019f(0x170)](_0x48019f(0x137)+_0x56765c['length']+_0x48019f(0x1aa)+_0x12a7d0);for(const _0x545cd1 of _0x56765c){try{const _0x15ed1c=await this[_0x48019f(0x154)](_0x264133,_0x545cd1['testFrameworkState'],_0x545cd1[_0x48019f(0x15c)],_0x545cd1[_0x48019f(0x157)]);_0x15ed1c&&_0x5f2528[_0x48019f(0x18a)](Object[_0x48019f(0x181)](_0x15ed1c)[_0x48019f(0x159)],0x0)&&_0x264133[_0x48019f(0x15d)](_0x15ed1c),await this[_0x48019f(0x186)](_0x264133,_0x545cd1[_0x48019f(0xf0)],_0x545cd1[_0x48019f(0x15c)],_0x545cd1[_0x48019f(0x157)]);}catch(_0x15b819){logger[_0x48019f(0x153)](_0x48019f(0x18b)+_0x12a7d0+_0x48019f(0x11a)+_0x15b819);}}_0x264133['removePendingHooks'](_0x12a7d0),logger[_0x48019f(0x170)](_0x48019f(0x12c)+_0x12a7d0);}}module[a74_0x1f3df8(0x177)]=CucumberTestFramework;
1
+ const a74_0x35e40e=a74_0x1d7a;(function(_0x9a7422,_0x412130){const _0x131325=a74_0x1d7a,_0x2a74d2=_0x9a7422();while(!![]){try{const _0x417241=parseInt(_0x131325(0x22c))/0x1+-parseInt(_0x131325(0x1af))/0x2*(-parseInt(_0x131325(0x186))/0x3)+parseInt(_0x131325(0x244))/0x4+-parseInt(_0x131325(0x21b))/0x5+parseInt(_0x131325(0x230))/0x6*(parseInt(_0x131325(0x1ad))/0x7)+-parseInt(_0x131325(0x1df))/0x8*(-parseInt(_0x131325(0x215))/0x9)+-parseInt(_0x131325(0x1c6))/0xa;if(_0x417241===_0x412130)break;else _0x2a74d2['push'](_0x2a74d2['shift']());}catch(_0x3b51c0){_0x2a74d2['push'](_0x2a74d2['shift']());}}}(a74_0xd48f,0x9f983));function a74_0x1d7a(_0x1dbcf1,_0xf36051){const _0xd48f80=a74_0xd48f();return a74_0x1d7a=function(_0x1d7a9c,_0x393fe0){_0x1d7a9c=_0x1d7a9c-0x182;let _0x1aaae6=_0xd48f80[_0x1d7a9c];return _0x1aaae6;},a74_0x1d7a(_0x1dbcf1,_0xf36051);}const TestFramework=require(a74_0x35e40e(0x19f)),TestFrameworkState=require(a74_0x35e40e(0x1ab)),HookState=require(a74_0x35e40e(0x1f7)),{createClassLogger}=require(a74_0x35e40e(0x1d7)),TestFrameworkInstance=require(a74_0x35e40e(0x247)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require(a74_0x35e40e(0x238)),TestFrameworkConstants=require(a74_0x35e40e(0x1ca)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a74_0x35e40e(0x198)),logger=createClassLogger(a74_0x35e40e(0x218)),{v4:uuidv4}=require(a74_0x35e40e(0x1b9)),util=require(a74_0x35e40e(0x1ea)),TestInfo=require(a74_0x35e40e(0x1fb)),GrpcClient=require('../grpcClient');class CucumberTestFramework extends TestFramework{constructor(_0x22b2cc,_0x547b0e,_0x3f274d){super(_0x22b2cc,_0x547b0e,_0x3f274d);}async[a74_0x35e40e(0x23a)](_0xe8888e,_0x53ef93,_0x5b474d={}){const _0x36ad2e=a74_0x35e40e,_0x1ce75e={};_0x1ce75e[_0x36ad2e(0x1ed)]=_0x36ad2e(0x23d),_0x1ce75e[_0x36ad2e(0x20e)]=function(_0x132760,_0x5cc59a){return _0x132760===_0x5cc59a;},_0x1ce75e['IBYmm']=function(_0x5a893d,_0x388f3c){return _0x5a893d===_0x388f3c;},_0x1ce75e[_0x36ad2e(0x1c3)]=_0x36ad2e(0x1f5);const _0x28733d=_0x1ce75e;await super['trackEvent'](_0xe8888e,_0x53ef93,_0x5b474d);const _0x8be920=this[_0x36ad2e(0x187)](_0xe8888e,_0x53ef93,_0x5b474d);if(!_0x8be920){logger[_0x36ad2e(0x245)](_0x28733d[_0x36ad2e(0x1ed)]);return;}try{let _0xdbb740,_0x4d3664;switch(_0xe8888e){case TestFrameworkState[_0x36ad2e(0x1c7)]:_0xdbb740=_0x5b474d[_0x36ad2e(0x1a0)],_0x4d3664=TestInfo[_0x36ad2e(0x23e)](_0xdbb740['id']);if(_0x28733d[_0x36ad2e(0x20e)](_0x53ef93,HookState['PRE'])){logger[_0x36ad2e(0x245)]('trackEvent\x20loading\x20testData\x20for\x20testId:\x20'+_0xdbb740['id']);const _0x5894dd={};_0x5894dd[_0x36ad2e(0x1e4)]=_0x4d3664,_0x5894dd[_0x36ad2e(0x226)]=_0xdbb740,_0x8be920[_0x36ad2e(0x20c)](this['parseCucumberTest'](_0x5894dd)),logger[_0x36ad2e(0x245)]('trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20'+_0xdbb740['id']),await this[_0x36ad2e(0x18b)](_0x8be920,_0xdbb740['id']);}else{if(_0x28733d['NkSRR'](_0x53ef93,HookState['POST'])){const _0x455f8f={};_0x455f8f['testUUID']=_0x4d3664,_0x455f8f['testData']=_0xdbb740,_0x8be920['addMultipleEntries'](this[_0x36ad2e(0x1f3)](_0x455f8f)),await this[_0x36ad2e(0x18b)](_0x8be920,_0xdbb740['id']);}}break;case TestFrameworkState[_0x36ad2e(0x1cc)]:_0x28733d[_0x36ad2e(0x242)](_0x53ef93,HookState[_0x36ad2e(0x1b5)])&&await this[_0x36ad2e(0x23b)](_0x8be920,_0xe8888e,_0x5b474d);break;default:if(CLIUtils[_0x36ad2e(0x235)](_0xe8888e[_0x36ad2e(0x1cb)]()['split']('.')[0x1])){const _0x35de5e=await this[_0x36ad2e(0x1a3)](_0x8be920,_0xe8888e,_0x53ef93,_0x5b474d);_0x8be920['addMultipleEntries'](_0x35de5e);}else logger['debug']('trackEvent:\x20unsupported\x20testFrameworkState='+_0xe8888e+_0x36ad2e(0x18e)+_0x53ef93);break;}}catch(_0x5c7d9c){logger['error'](util[_0x36ad2e(0x1d8)](_0x28733d['ozCgC'],_0xe8888e,_0x53ef93,_0x5b474d[_0x36ad2e(0x19d)],_0x5c7d9c));}_0x5b474d[_0x36ad2e(0x18d)]=_0x8be920,await this[_0x36ad2e(0x1b6)](_0x8be920,_0xe8888e,_0x53ef93,_0x5b474d);}[a74_0x35e40e(0x187)](_0x21e3bb,_0x314d8d,_0x13014f={}){const _0x3190cd=a74_0x35e40e,_0x226d85={};_0x226d85[_0x3190cd(0x18c)]=function(_0xba746f,_0x7422d3){return _0xba746f===_0x7422d3;};const _0x43f3a9=_0x226d85;let _0xb817ff=null;return(_0x43f3a9[_0x3190cd(0x18c)](_0x21e3bb,TestFrameworkState[_0x3190cd(0x194)])||_0x43f3a9['pdkxx'](_0x21e3bb,TestFrameworkState[_0x3190cd(0x209)]))&&this['trackCucumberInstance'](_0x21e3bb,_0x13014f),_0xb817ff=TestFramework[_0x3190cd(0x224)](),_0xb817ff;}['trackCucumberInstance'](_0x1fac35,_0x60dc){const _0x15395d=a74_0x35e40e,_0xc9d211=CLIUtils['getCurrentInstanceName'](),_0x523d95=TrackedInstance[_0x15395d(0x24b)](_0xc9d211);let _0x1129a9=null;logger[_0x15395d(0x245)]('trackCucumberInstance:\x20created\x20instance\x20for\x20target='+_0xc9d211+_0x15395d(0x190)+_0x1fac35),_0x1129a9=new TestFrameworkInstance(_0x523d95,this[_0x15395d(0x24a)](),this['getTestFrameworksVersions'](),_0x1fac35,HookState[_0x15395d(0x209)]),TestFramework[_0x15395d(0x1a7)](_0x523d95,_0x1129a9),logger[_0x15395d(0x245)](_0x15395d(0x1fa)+_0x523d95[_0x15395d(0x1d3)]()+_0x15395d(0x19c)+_0xc9d211);}[a74_0x35e40e(0x1bc)](_0x468862){const _0x170ea9=a74_0x35e40e,_0x343315={};_0x343315[_0x170ea9(0x1e7)]=_0x170ea9(0x1e9);const _0x2e74d4=_0x343315,{testUUID:_0x46ddd2,testData:_0x6b47fd}=_0x468862;if(!_0x6b47fd||!_0x6b47fd['uuid'])return logger[_0x170ea9(0x245)](_0x2e74d4['WbWcR']),{};const _0x221a2b=_0x46ddd2,_0x2d6b72=_0x6b47fd[_0x170ea9(0x1b9)],_0x2abf02=this['getTestFrameworks']()[0x0],_0x40213c=this[_0x170ea9(0x21a)](),_0x304b0a={[TestFrameworkConstants[_0x170ea9(0x1d6)]]:_0x2abf02,[TestFrameworkConstants[_0x170ea9(0x1ac)]]:_0x40213c[_0x2abf02],[TestFrameworkConstants['KEY_TEST_LOGS']]:[],[TestFrameworkConstants[_0x170ea9(0x1db)]]:{},[TestFrameworkConstants[_0x170ea9(0x246)]]:{},[TestFrameworkConstants[_0x170ea9(0x237)]]:_0x221a2b,[TestFrameworkConstants[_0x170ea9(0x1b8)]]:TestFrameworkConstants[_0x170ea9(0x20f)],[TestFrameworkConstants[_0x170ea9(0x1f9)]]:_0x6b47fd[_0x170ea9(0x196)]||'',[TestFrameworkConstants[_0x170ea9(0x1ce)]]:_0x6b47fd['file_name']||'',[TestFrameworkConstants[_0x170ea9(0x241)]]:_0x2d6b72,[TestFrameworkConstants['KEY_TEST_NAME']]:_0x6b47fd[_0x170ea9(0x196)]||'',[TestFrameworkConstants[_0x170ea9(0x1fd)]]:_0x6b47fd[_0x170ea9(0x1b3)]||'',[TestFrameworkConstants['KEY_TEST_CODE']]:_0x6b47fd[_0x170ea9(0x22d)]?.[_0x170ea9(0x21d)]||null,[TestFrameworkConstants[_0x170ea9(0x1ae)]]:_0x6b47fd[_0x170ea9(0x19b)]||[],[TestFrameworkConstants[_0x170ea9(0x1aa)]]:_0x6b47fd[_0x170ea9(0x222)]||new Date()[_0x170ea9(0x236)](),[TestFrameworkConstants[_0x170ea9(0x240)]]:_0x6b47fd['scopes']?.[0x0]||'',[TestFrameworkConstants['KEY_TEST_SCOPES']]:_0x6b47fd[_0x170ea9(0x1f6)]||[],[TestFrameworkConstants[_0x170ea9(0x1d2)]]:_0x6b47fd[_0x170ea9(0x21c)]?.['rerun_name']||_0x6b47fd['name']||'',[TestFrameworkConstants[_0x170ea9(0x248)]]:{},[TestFrameworkConstants['KEY_TEST_META']]:_0x6b47fd[_0x170ea9(0x1fc)]||{}};TestInfo[_0x170ea9(0x202)](_0x2d6b72,_0x304b0a),logger['debug'](_0x170ea9(0x1a8)+_0x6b47fd[_0x170ea9(0x196)]+'\x20with\x20UUID:\x20'+_0x221a2b);const _0x39b978={};return _0x39b978[_0x2d6b72]=_0x304b0a,_0x39b978;}[a74_0x35e40e(0x1f3)](_0x2f039f){const _0x3893ae=a74_0x35e40e,_0x450fc6={'VCzga':_0x3893ae(0x19e),'IQGEZ':_0x3893ae(0x1d9),'FJFer':function(_0x146959,_0x11186c){return _0x146959===_0x11186c;},'JyoBX':_0x3893ae(0x1ff),'JuunY':_0x3893ae(0x1da),'ZvnvS':function(_0x2f6060,_0x5e52da,_0x579505){return _0x2f6060(_0x5e52da,_0x579505);},'ggtXD':function(_0x4ac966,_0x201749){return _0x4ac966>_0x201749;},'ZsGKf':function(_0x21bbf3,_0x52ea40){return _0x21bbf3>_0x52ea40;}},{testUUID:_0x49818e,testData:_0x2423aa}=_0x2f039f;if(!_0x2423aa||!_0x2423aa[_0x3893ae(0x1b9)])return logger[_0x3893ae(0x245)](_0x450fc6[_0x3893ae(0x1c8)]),{};const _0x2d900c=this['resolveInstance'](TestFrameworkState['TEST'],HookState['POST']),_0x4b491e=_0x2423aa['uuid'],_0x203228=TestInfo['getTestDetails'](_0x4b491e)||{},_0x3da4ba=_0x203228?_0x203228[TestFrameworkConstants[_0x3893ae(0x248)]]||{}:{},_0x756a67={..._0x203228,[TestFrameworkConstants[_0x3893ae(0x1b8)]]:_0x2423aa[_0x3893ae(0x1c9)]||_0x450fc6[_0x3893ae(0x214)],[TestFrameworkConstants[_0x3893ae(0x24e)]]:_0x2423aa[_0x3893ae(0x1ef)]||new Date()[_0x3893ae(0x236)](),[TestFrameworkConstants[_0x3893ae(0x1d1)]]:new Date()[_0x3893ae(0x236)](),[TestFrameworkConstants[_0x3893ae(0x248)]]:_0x3da4ba,[TestFrameworkConstants[_0x3893ae(0x1ee)]]:[],[TestFrameworkConstants['KEY_TEST_META']]:_0x2423aa[_0x3893ae(0x1fc)]||{}};_0x450fc6[_0x3893ae(0x1c1)](_0x2423aa[_0x3893ae(0x1c9)],_0x450fc6['JyoBX'])&&_0x2423aa[_0x3893ae(0x1bb)]&&(_0x756a67[TestFrameworkConstants[_0x3893ae(0x21e)]]=_0x2423aa['failure_type']||_0x450fc6[_0x3893ae(0x185)],_0x756a67[TestFrameworkConstants['KEY_TEST_FAILURE_REASON']]=_0x2423aa[_0x3893ae(0x1ba)]||'',_0x756a67[TestFrameworkConstants[_0x3893ae(0x1bf)]]=_0x2423aa[_0x3893ae(0x1bb)]);const _0x568795=TestInfo['getTestDetails'](_0x4b491e)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x2f5d94=_0x450fc6[_0x3893ae(0x250)](getManualUploadLogs,_0x568795,_0x2d900c['getAllData']()[_0x3893ae(0x192)](_0x4b491e)[TestFrameworkConstants[_0x3893ae(0x237)]]);if(_0x450fc6[_0x3893ae(0x188)](_0x2f5d94[_0x3893ae(0x19d)],0x0)){const _0x2bdc17=_0x756a67[TestFrameworkConstants['KEY_LOGS']]||[];_0x756a67[TestFrameworkConstants[_0x3893ae(0x1ee)]]=[..._0x2bdc17,..._0x2f5d94];}_0x2423aa[_0x3893ae(0x21f)]&&_0x450fc6['ZsGKf'](_0x2423aa[_0x3893ae(0x21f)][_0x3893ae(0x19d)],0x0)&&(_0x756a67[TestFrameworkConstants[_0x3893ae(0x1db)]]=_0x2423aa[_0x3893ae(0x21f)]);TestInfo[_0x3893ae(0x202)](_0x4b491e,_0x756a67),logger[_0x3893ae(0x245)](_0x3893ae(0x1cf)+_0x2423aa[_0x3893ae(0x196)]+_0x3893ae(0x22e)+_0x2423aa[_0x3893ae(0x1c9)]);const _0x26f43e={};return _0x26f43e[_0x4b491e]=_0x756a67,_0x26f43e;}async[a74_0x35e40e(0x1a3)](_0x327797,_0x3cd6d7,_0x449d64,_0x140359){const _0x5e97c5=a74_0x35e40e,_0x1f65f2={'OdifX':_0x5e97c5(0x249),'PDuNO':function(_0x50ebda){return _0x50ebda();},'XYZXQ':function(_0xd8e201,_0x1a10e4){return _0xd8e201 in _0x1a10e4;},'QdFrV':function(_0x2db979,_0x7ac275){return _0x2db979===_0x7ac275;},'OtWov':function(_0xfa5f76,_0x47c2d9){return _0xfa5f76===_0x47c2d9;},'QOyKh':function(_0x4671bf,_0x26bf59){return _0x4671bf>_0x26bf59;},'jiGSx':function(_0x50163a,_0xea1aed){return _0x50163a===_0xea1aed;},'vtOTp':_0x5e97c5(0x1ff),'lasbR':_0x5e97c5(0x1da),'kldFw':_0x5e97c5(0x239),'RyBhW':function(_0x14a133,_0x3d52de){return _0x14a133!==_0x3d52de;}},{hookData:_0x5be416}=_0x140359;if(!_0x5be416)return logger[_0x5e97c5(0x245)](_0x1f65f2['OdifX']),{};const _0x190fea=_0x5be416[_0x5e97c5(0x1b9)]||_0x1f65f2[_0x5e97c5(0x1e6)](uuidv4),_0x111267=_0x5be416['test_run_id'],_0x3703af=_0x3cd6d7[_0x5e97c5(0x1cb)]()[_0x5e97c5(0x1b7)]('.')[0x1],_0x1bddb9=TestInfo[_0x5e97c5(0x19a)](_0x111267)[TestFrameworkConstants[_0x5e97c5(0x248)]]||{},_0x2d4234=_0x327797[_0x5e97c5(0x20d)]()[_0x5e97c5(0x192)](_0x111267);if(!_0x2d4234)return logger[_0x5e97c5(0x245)](_0x5e97c5(0x229)+_0x111267+_0x5e97c5(0x1b2)),this[_0x5e97c5(0x1d0)](_0x327797,_0x111267,_0x3cd6d7,_0x449d64,_0x140359),{};let _0x533ed4=_0x2d4234[TestFrameworkConstants[_0x5e97c5(0x246)]];!_0x533ed4&&(_0x533ed4={});!_0x1f65f2[_0x5e97c5(0x1bd)](_0x3703af,_0x533ed4)&&(_0x533ed4[_0x3703af]=[]);let _0x12b76a=_0x2d4234[TestFrameworkConstants[_0x5e97c5(0x1db)]];!_0x12b76a&&(_0x12b76a={});!_0x1f65f2[_0x5e97c5(0x1bd)](_0x3703af,_0x12b76a)&&(_0x12b76a[_0x3703af]=[]);const _0x5b4ab4={[TestFrameworkConstants[_0x5e97c5(0x246)]]:_0x533ed4,[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:_0x12b76a},_0xefa1f={};_0xefa1f[_0x111267]=_0x5b4ab4;const _0x239b40=_0xefa1f;if(_0x1f65f2[_0x5e97c5(0x231)](_0x449d64,HookState[_0x5e97c5(0x1f0)])){const _0x956f29={[TestFrameworkConstants[_0x5e97c5(0x1d5)]]:_0x190fea,[TestFrameworkConstants[_0x5e97c5(0x219)]]:TestFrameworkConstants[_0x5e97c5(0x205)],[TestFrameworkConstants[_0x5e97c5(0x22f)]]:_0x5be416[_0x5e97c5(0x227)],[TestFrameworkConstants[_0x5e97c5(0x1a1)]]:[],[TestFrameworkConstants[_0x5e97c5(0x203)]]:_0x5be416[_0x5e97c5(0x1f8)],[TestFrameworkConstants[_0x5e97c5(0x248)]]:_0x1bddb9};_0x956f29[_0x5e97c5(0x1f1)]=_0x3703af;const _0x10765e=_0x956f29;_0x533ed4[_0x3703af][_0x5e97c5(0x210)](_0x10765e),_0x239b40[_0x111267][TestFrameworkConstants[_0x5e97c5(0x24f)]]=_0x3703af,logger[_0x5e97c5(0x245)]('trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20'+_0x3703af+_0x5e97c5(0x1de)+_0x10765e+_0x5e97c5(0x200)+_0x140359);}else{if(_0x1f65f2['OtWov'](_0x449d64,HookState[_0x5e97c5(0x1b5)])){const _0x35974b=_0x5be416[_0x5e97c5(0x1c9)],_0x12ff9c=_0x533ed4[_0x3703af]||[];logger[_0x5e97c5(0x245)](_0x5e97c5(0x221)+_0x12ff9c+_0x5e97c5(0x234)+_0x140359);if(_0x1f65f2[_0x5e97c5(0x206)](_0x12ff9c[_0x5e97c5(0x19d)],0x0)){const _0x33401f=_0x12ff9c[_0x5e97c5(0x1e0)]();_0x1f65f2[_0x5e97c5(0x232)](_0x5be416[_0x5e97c5(0x1c9)],_0x1f65f2['vtOTp'])&&_0x5be416['failure_data']?(_0x33401f[TestFrameworkConstants[_0x5e97c5(0x1e3)]]=_0x5be416[_0x5e97c5(0x217)]||_0x1f65f2[_0x5e97c5(0x22b)],_0x33401f[TestFrameworkConstants[_0x5e97c5(0x199)]]=_0x5be416[_0x5e97c5(0x1ba)]||'',_0x33401f[TestFrameworkConstants['KEY_HOOK_FAILURE']]=_0x5be416['failure_data']):_0x33401f[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x1f65f2[_0x5e97c5(0x1e5)];_0x1f65f2[_0x5e97c5(0x211)](_0x35974b,TestFrameworkConstants[_0x5e97c5(0x205)])&&(_0x33401f[TestFrameworkConstants[_0x5e97c5(0x219)]]=_0x35974b);_0x33401f[TestFrameworkConstants[_0x5e97c5(0x18f)]]=_0x5be416[_0x5e97c5(0x183)]||new Date()['toISOString'](),_0x33401f[TestFrameworkConstants[_0x5e97c5(0x248)]]=_0x1bddb9;const _0x174c10=_0x33401f[TestFrameworkConstants['KEY_HOOK_ID']];!_0x12b76a[_0x3703af]&&(_0x12b76a[_0x3703af]=[]),_0x12b76a[_0x3703af][_0x5e97c5(0x210)](_0x33401f),_0x239b40[_0x111267][TestFrameworkConstants[_0x5e97c5(0x23f)]]=_0x3703af;}}}return logger[_0x5e97c5(0x245)]('Tracked\x20cucumber\x20hook\x20event:\x20'+_0x5be416['hook_type']+_0x5e97c5(0x1a9)+_0x190fea+_0x5e97c5(0x1c0)+_0x111267),_0x239b40;}[a74_0x35e40e(0x1a5)](_0x28b9f8){const _0x3b50c4=a74_0x35e40e,_0x2cf12e={};_0x2cf12e[_0x3b50c4(0x1d4)]=_0x3b50c4(0x184);const _0x2a4c43=_0x2cf12e;try{const _0x58638a=_0x28b9f8['test']?_0x28b9f8[_0x3b50c4(0x1a0)]['id']:_0x28b9f8[_0x3b50c4(0x212)]['test_run_id'],_0x44802b=_0x28b9f8['instance'],_0x2b7615=_0x44802b[_0x3b50c4(0x195)](),_0x377ce4=_0x44802b[_0x3b50c4(0x20d)]()[_0x3b50c4(0x192)](_0x58638a);if(!_0x377ce4)return logger[_0x3b50c4(0x245)]('createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x58638a),{};logger['debug'](_0x3b50c4(0x213)+_0x58638a);const {[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x2747b9='',[TestFrameworkConstants[_0x3b50c4(0x1ac)]]:_0x5f5375='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x4700f7='',[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x3bbfe7=''}=_0x377ce4,_0x560109=_0x44802b['getCurrentTestState']()['toString']()[_0x3b50c4(0x1b7)]('.')[0x1],_0x2c7427=_0x44802b['getCurrentHookState']()[_0x3b50c4(0x1cb)]()['split']('.')[0x1],_0x3cf7ec=global?.[_0x3b50c4(0x1a6)]??0x0,_0x2ee671=_0x44802b[_0x3b50c4(0x1b0)](),_0x44cca9=Buffer[_0x3b50c4(0x223)](JSON['stringify'](_0x377ce4))[_0x3b50c4(0x1cb)](_0x2a4c43['WqAbA']),_0x2ae640={'hash':_0x2b7615['getId'](),'threadId':_0x2b7615[_0x3b50c4(0x193)]()[_0x3b50c4(0x1cb)](),'processId':_0x2b7615[_0x3b50c4(0x24d)]()[_0x3b50c4(0x1cb)]()},_0x16aeda={};_0x16aeda[_0x3b50c4(0x216)]=_0x3cf7ec,_0x16aeda[_0x3b50c4(0x182)]=_0x2747b9,_0x16aeda['testFrameworkVersion']=_0x5f5375,_0x16aeda[_0x3b50c4(0x225)]=_0x560109,_0x16aeda[_0x3b50c4(0x1dd)]=_0x2c7427,_0x16aeda['startedAt']=_0x4700f7,_0x16aeda[_0x3b50c4(0x24c)]=_0x3bbfe7,_0x16aeda[_0x3b50c4(0x1b9)]=_0x2ee671,_0x16aeda['eventJson']=_0x44cca9,_0x16aeda[_0x3b50c4(0x1e2)]=_0x2ae640;const _0x531d43=_0x16aeda;return logger[_0x3b50c4(0x245)](_0x3b50c4(0x1ec)+_0x58638a+_0x3b50c4(0x208)+_0x560109+'\x20hookState:\x20'+_0x2c7427),_0x531d43;}catch(_0x5a0c0c){return logger[_0x3b50c4(0x1b1)]('Error\x20in\x20createTestFrameworkEventPayload:\x20'+util[_0x3b50c4(0x1d8)](_0x5a0c0c)),{};}}async[a74_0x35e40e(0x23b)](_0x7b2226,_0xc30a6d,_0x1a8f2b){const _0x51a61f=a74_0x35e40e,_0x13042e={'jskbZ':function(_0x204112,_0x545f67,_0x4ec523){return _0x204112(_0x545f67,_0x4ec523);},'zvqVR':function(_0x132a87,_0x1bc229){return _0x132a87===_0x1bc229;},'fAezi':_0x51a61f(0x1b4),'XYgEj':function(_0x5ccdfe,_0x5b8d2f){return _0x5ccdfe/_0x5b8d2f;},'fcWYH':function(_0x3fa1c0,_0x569e5a){return _0x3fa1c0<_0x569e5a;},'ciqFr':function(_0x4610cf,_0x7974d1){return _0x4610cf*_0x7974d1;},'tjPQI':function(_0x29675c,_0x3e70d2){return _0x29675c+_0x3e70d2;},'MiJeZ':function(_0x4b3553,_0x199662){return _0x4b3553+_0x199662;},'vcypU':_0x51a61f(0x1c4)};try{const _0x165ac7=_0x1a8f2b[_0x51a61f(0x1e4)],_0x3b30ee=_0x7b2226[_0x51a61f(0x20d)]()[_0x51a61f(0x192)](_0x165ac7),{[TestFrameworkConstants[_0x51a61f(0x1d6)]]:_0x5b6adc='',[TestFrameworkConstants[_0x51a61f(0x1ac)]]:_0x33965a=''}=_0x3b30ee,_0x12a0f2=TestInfo[_0x51a61f(0x204)](_0x165ac7),_0x2272fe=TestInfo[_0x51a61f(0x19a)](_0x165ac7)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x10d8e7=_0x13042e['jskbZ'](getMediaArtifactsLogs,_0x2272fe,_0x7b2226[_0x51a61f(0x20d)]()['get'](_0x165ac7)[TestFrameworkConstants[_0x51a61f(0x237)]]),_0x44e6b7=(_0x12a0f2||[])['concat'](_0x10d8e7||[]);if(!_0x44e6b7||_0x13042e[_0x51a61f(0x20a)](_0x44e6b7[_0x51a61f(0x19d)],0x0)){logger[_0x51a61f(0x245)](_0x13042e[_0x51a61f(0x22a)]);return;}const _0x17f41a=0x28,_0x2ddc9f=Math[_0x51a61f(0x233)](_0x13042e[_0x51a61f(0x1e8)](_0x44e6b7[_0x51a61f(0x19d)],_0x17f41a));for(let _0xb7343f=0x0;_0x13042e[_0x51a61f(0x1a2)](_0xb7343f,_0x2ddc9f);_0xb7343f++){const _0x218f45=_0x13042e[_0x51a61f(0x1f2)](_0xb7343f,_0x17f41a),_0x48b298=_0x13042e[_0x51a61f(0x189)](_0x218f45,_0x17f41a),_0x1b42fb=_0x44e6b7['slice'](_0x218f45,_0x48b298),_0x2dfc77={'platformIndex':global?.['browserstackPlatformIndex']??0x0,'logs':_0x1b42fb,'testFrameworkName':_0x5b6adc,'testFrameworkVersion':_0x33965a,'testFrameworkState':_0xc30a6d[_0x51a61f(0x1cb)]()[_0x51a61f(0x1b7)]('.')[0x1]};logger[_0x51a61f(0x245)](_0x51a61f(0x1a4)+_0x165ac7+_0x51a61f(0x1dc)+_0x13042e[_0x51a61f(0x1fe)](_0xb7343f,0x1)+'/'+_0x2ddc9f+_0x51a61f(0x220)+util[_0x51a61f(0x1c2)](_0x2dfc77));const _0x63f195=await GrpcClient[_0x51a61f(0x228)]()[_0x51a61f(0x1c5)](_0x2dfc77);logger[_0x51a61f(0x245)](_0x51a61f(0x1a4)+_0x165ac7+_0x51a61f(0x1dc)+_0x13042e[_0x51a61f(0x1fe)](_0xb7343f,0x1)+'/'+_0x2ddc9f+'\x20response='+util['inspect'](_0x63f195));}}catch(_0x276850){logger[_0x51a61f(0x1b1)](_0x51a61f(0x207)+util[_0x51a61f(0x1d8)](_0x276850));}logger[_0x51a61f(0x245)](_0x13042e['vcypU']);}[a74_0x35e40e(0x1d0)](_0x55bc97,_0x136d53,_0x476786,_0xf386c9,_0x537c02){const _0x3d0481=a74_0x35e40e,_0x4df86d={'testId':_0x136d53,'testFrameworkState':_0x476786,'hookState':_0xf386c9,'args':_0x537c02,'timestamp':new Date()[_0x3d0481(0x236)]()};_0x55bc97['addPendingHook'](_0x136d53,_0x4df86d),logger[_0x3d0481(0x245)](_0x3d0481(0x1f4)+_0x136d53+',\x20state:\x20'+_0x476786+_0x3d0481(0x1eb)+_0xf386c9);}async[a74_0x35e40e(0x18b)](_0x4055d5,_0x3e2b8e){const _0x582971=a74_0x35e40e,_0x2d26b3={};_0x2d26b3[_0x582971(0x23c)]=function(_0x19a1e6,_0x43e6de){return _0x19a1e6>_0x43e6de;};const _0x1e860a=_0x2d26b3;if(!_0x4055d5[_0x582971(0x197)](_0x3e2b8e))return;const _0x1619b7=_0x4055d5[_0x582971(0x191)](_0x3e2b8e);logger[_0x582971(0x245)]('Processing\x20'+_0x1619b7[_0x582971(0x19d)]+'\x20pending\x20hooks\x20for\x20testId:\x20'+_0x3e2b8e);for(const _0x541dfe of _0x1619b7){try{const _0x397efd=await this[_0x582971(0x1a3)](_0x4055d5,_0x541dfe[_0x582971(0x225)],_0x541dfe['hookState'],_0x541dfe[_0x582971(0x1cd)]);_0x397efd&&_0x1e860a[_0x582971(0x23c)](Object[_0x582971(0x243)](_0x397efd)[_0x582971(0x19d)],0x0)&&_0x4055d5[_0x582971(0x20c)](_0x397efd),await this['runHooks'](_0x4055d5,_0x541dfe[_0x582971(0x225)],_0x541dfe[_0x582971(0x1dd)],_0x541dfe[_0x582971(0x1cd)]);}catch(_0x45cd44){logger[_0x582971(0x1b1)](_0x582971(0x20b)+_0x3e2b8e+_0x582971(0x1be)+_0x45cd44);}}_0x4055d5[_0x582971(0x18a)](_0x3e2b8e),logger[_0x582971(0x245)](_0x582971(0x1e1)+_0x3e2b8e);}}function a74_0xd48f(){const _0x34b959=['\x20&\x20hookState=','KEY_EVENT_ENDED_AT',',\x20state=','getPendingHooks','get','getThreadId','INIT_TEST','getContext','name','hasPendingHooks','../../../helpers/helper.js','KEY_HOOK_FAILURE_REASON','getTestDetails','tags','\x20target=','length','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','./testFramework','test','KEY_HOOK_LOGS','fcWYH','trackHookEvent','sendLogCreatedEvent:\x20for\x20testId:\x20','createTestFrameworkEventPayload','browserstackPlatformIndex','setTrackedInstance','Parsed\x20cucumber\x20test:\x20','\x20with\x20id\x20','KEY_TEST_STARTED_AT','../state/testFrameworkState.js','KEY_TEST_FRAMEWORK_VERSION','4636289OjPYvm','KEY_TEST_TAGS','2zRvLUc','getRef','error',',\x20storing\x20as\x20pending\x20hook','location','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','POST','runHooks','split','KEY_TEST_RESULT','uuid','failure_reason','failure','parseCucumberTest','XYZXQ',',\x20error:\x20','KEY_TEST_FAILURE','\x20for\x20test:\x20','FJFer','inspect','ozCgC','Cucumber\x20log\x20created\x20event','logCreatedEvent','6488950FjBpXU','TEST','VCzga','result','./constants/testFrameworkConstants.js','toString','LOG_REPORT','args','KEY_TEST_FILE_PATH','Updated\x20cucumber\x20test\x20result:\x20','storePendingHook','KEY_TEST_RESULT_AT','KEY_TEST_RERUN_NAME','getId','WqAbA','KEY_HOOK_ID','KEY_TEST_FRAMEWORK_NAME','../../../helpers/classLogger.js','format','unknown','UnhandledError','KEY_HOOKS_FINISHED','\x20batch\x20','hookState','\x20&\x20hook\x20=\x20','2280CbBMxw','pop','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','executionContext','KEY_HOOK_FAILURE_TYPE','testUUID','kldFw','PDuNO','WbWcR','XYgEj','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','util',',\x20hookState:\x20','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','nDozV','KEY_LOGS','finishedAt','PRE','key','ciqFr','parseCucumberTestResult','Stored\x20pending\x20hook\x20for\x20testId:\x20','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','scopes','../state/hookState.js','hook_type','KEY_AUTOMATE_SESSION_NAME','trackCucumberInstance:\x20saved\x20instance\x20contextId=','../TestInfo.js','meta','KEY_TEST_LOCATION','MiJeZ','failed','\x20\x20and\x20args\x20=\x20','exports','setTestDetails','KEY_HOOK_NAME','readLogObjects','DEFAULT_HOOK_RESULT','QOyKh','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','\x20testState:\x20','NONE','zvqVR','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','addMultipleEntries','getAllData','NkSRR','DEFAULT_TEST_RESULT','push','RyBhW','hookData','createTestFrameworkEventPayload\x20testId:\x20','IQGEZ','4464ZmftoL','platformIndex','failure_type','CucumberTestFramework','KEY_HOOK_RESULT','getTestFrameworksVersions','6298470RIIyPK','customRerunParam','code','KEY_TEST_FAILURE_TYPE','hooks','\x20payload=','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','startedAt','from','getTrackedInstance','testFrameworkState','testData','started_at','getInstance','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','fAezi','lasbR','322862UfMinq','body','\x20with\x20result:\x20','KEY_EVENT_STARTED_AT','6nGDdIM','QdFrV','jiGSx','ceil','\x20and\x20args\x20=\x20','matchHookRegex','toISOString','KEY_TEST_UUID','../instances/trackedInstance.js','passed','trackEvent','sendLogCreatedEvent','UUWfZ','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','getTestUUID','KEY_HOOK_LAST_FINISHED','KEY_TEST_SCOPE','KEY_TEST_ID','IBYmm','keys','3176208LHVsmK','debug','KEY_HOOKS_STARTED','../instances/testFrameworkInstance.js','KEY_CUSTOM_TAGS','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','getTestFrameworks','createContext','endedAt','getProcessId','KEY_TEST_ENDED_AT','KEY_HOOK_LAST_STARTED','ZvnvS','testFrameworkName','finished_at','base64','JuunY','1925061CKFHvX','resolveInstance','ggtXD','tjPQI','removePendingHooks','processPendingHooks','pdkxx','instance'];a74_0xd48f=function(){return _0x34b959;};return a74_0xd48f();}module[a74_0x35e40e(0x201)]=CucumberTestFramework;