browserstack-node-sdk 1.55.6 → 1.55.7

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 (200) 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 +2 -2
  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/newman/command.js +1 -1
  79. package/src/bin/newman/helper.js +1 -1
  80. package/src/bin/newman/reporter/index.js +1 -1
  81. package/src/bin/newman/scriptRunner.js +1 -1
  82. package/src/bin/nightwatch/command.js +1 -1
  83. package/src/bin/playwright/accessibility-helper.js +1 -1
  84. package/src/bin/playwright/command.js +1 -1
  85. package/src/bin/playwright/globalSetup.js +1 -1
  86. package/src/bin/playwright/mock-process.js +1 -1
  87. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  88. package/src/bin/playwright/patches.js +1 -1
  89. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  90. package/src/bin/playwright/reporter/reporter.js +1 -1
  91. package/src/bin/playwright/reporter/test-details.js +1 -1
  92. package/src/bin/playwright/sessionDetails.js +1 -1
  93. package/src/bin/puppeteer/patches.js +1 -1
  94. package/src/bin/puppeteer/sessionDetails.js +1 -1
  95. package/src/bin/puppeteer/test.setup.js +1 -1
  96. package/src/bin/runner.js +1 -1
  97. package/src/bin/setup.js +1 -1
  98. package/src/bin/test-runner/index.js +1 -1
  99. package/src/bin/test-runner/runTest.js +1 -1
  100. package/src/bin/test-runner/testWorker.js +1 -1
  101. package/src/bin/utils/apiUtilityMethods.js +1 -1
  102. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  103. package/src/bin/utils/constants.js +1 -1
  104. package/src/bin/utils/log4jsAppender.js +1 -1
  105. package/src/bin/utils/logPatcher.js +1 -1
  106. package/src/bin/utils/logReportingAPI.js +1 -1
  107. package/src/bin/utils/playwright-patcher.js +1 -1
  108. package/src/bin/utils/puppeteer-patcher.js +1 -1
  109. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  110. package/src/bin/utils/sharedUtils.js +1 -1
  111. package/src/bin/v2/TestInfo.js +1 -1
  112. package/src/bin/v2/browserstackCLI.js +1 -1
  113. package/src/bin/v2/cliUtils.js +1 -1
  114. package/src/bin/v2/customTagManager.js +1 -1
  115. package/src/bin/v2/eventDispatcher.js +1 -1
  116. package/src/bin/v2/framework/automationFramework.js +1 -1
  117. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  118. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  119. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  120. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  121. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  122. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  123. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  124. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  125. package/src/bin/v2/framework/testFramework.js +1 -1
  126. package/src/bin/v2/grpcClient.js +1 -1
  127. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  128. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  129. package/src/bin/v2/instances/trackedContext.js +1 -1
  130. package/src/bin/v2/instances/trackedInstance.js +1 -1
  131. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  132. package/src/bin/v2/modules/baseModule.js +1 -1
  133. package/src/bin/v2/modules/loadTestModule.js +1 -1
  134. package/src/bin/v2/modules/observabilityModule.js +1 -1
  135. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  136. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  137. package/src/bin/v2/modules/testhubModule.js +1 -1
  138. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  139. package/src/bin/v2/state/hookState.js +1 -1
  140. package/src/bin/v2/state/testFrameworkState.js +1 -1
  141. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  142. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  143. package/src/bin/v2/utils/jest-utils.js +1 -1
  144. package/src/bin/vanilla-js/command.js +1 -1
  145. package/src/browserStackSdk.js +1 -1
  146. package/src/helpers/BrowserStackSetup.js +1 -1
  147. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  148. package/src/helpers/accessibility-automation/constants.js +1 -1
  149. package/src/helpers/accessibility-automation/helper.js +1 -1
  150. package/src/helpers/accessibility-automation/scripts.js +1 -1
  151. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  152. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  153. package/src/helpers/ats/constants.js +1 -1
  154. package/src/helpers/ats/helper.js +1 -1
  155. package/src/helpers/caCertHelper.js +1 -0
  156. package/src/helpers/capsMapping.js +1 -1
  157. package/src/helpers/central-scanner/constants.js +1 -1
  158. package/src/helpers/central-scanner/helpers.js +1 -1
  159. package/src/helpers/classLogger.js +1 -1
  160. package/src/helpers/globals.js +1 -1
  161. package/src/helpers/helper.js +1 -1
  162. package/src/helpers/logger.js +1 -1
  163. package/src/helpers/metadata.js +1 -1
  164. package/src/helpers/patchHelper.js +1 -1
  165. package/src/helpers/patchHelpers.js +1 -1
  166. package/src/helpers/percy/Percy.js +1 -1
  167. package/src/helpers/percy/PercyBinary.js +1 -1
  168. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  169. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  170. package/src/helpers/percy/PercySDK.js +1 -1
  171. package/src/helpers/percy/index.js +1 -1
  172. package/src/helpers/percy/utils.js +1 -1
  173. package/src/helpers/performance/constants.js +1 -1
  174. package/src/helpers/performance/performance-tester.js +1 -1
  175. package/src/helpers/playwright-helper.js +1 -1
  176. package/src/helpers/processHelper.js +1 -1
  177. package/src/helpers/puppeteer-helper.js +1 -1
  178. package/src/helpers/request-spy.js +1 -1
  179. package/src/helpers/setKeepAlive.js +1 -1
  180. package/src/helpers/stackFrameUtils.js +1 -1
  181. package/src/helpers/test-observability/constants.js +1 -1
  182. package/src/helpers/test-observability/error-handler.js +1 -1
  183. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  184. package/src/helpers/test-observability/sessionHandler.js +1 -1
  185. package/src/helpers/test-observability/utils.js +1 -1
  186. package/src/helpers/test-orchestration/constants.js +1 -1
  187. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  188. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  189. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  190. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  191. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  192. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  193. package/src/helpers/testhub/constants.js +1 -1
  194. package/src/helpers/testhub/testhubHandler.js +1 -1
  195. package/src/helpers/testhub/utils.js +1 -1
  196. package/src/helpers/timeoutPromise.js +1 -1
  197. package/src/helpers/utilities.js +1 -1
  198. package/src/helpers/w3cMapping.js +1 -1
  199. package/src/hubAllocationMethods.js +1 -1
  200. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a72_0x1a59(){const _0x20df1e=['map','dDwJs','listen','getAutomationFrameworkDetail','UfFMq','start','statSync','aRNbZ','efMRi','fileName','createWriteStream','CLI\x20version\x20found\x20despite\x20error:\x20\x22','existsSync','vCCxM','copyFileSync','BpsPK','YKxpy','ZRaSv','readEntry','warn','basename','70326OeuAxR','CpjfA','url','downloadFileStream','pid','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','getSdkVersion','Binary\x20is\x20busy:\x20','gHLDD','Setting\x20required\x20permissions\x20to\x20','runShellCommand','pxEgB','filePath','isArray','RWyOa','cli','tmpdir','length','Iyamw','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','tUsVM','CLIUtils','HOOK_REGEX','getSdkLanguage','testFrameworkDetail','PiPFo','../../helpers/test-observability/utils.js','SHELL_EXECUTE_ERROR','follow-redirects','\x20version','EXDEV','4ukefkO','HxsHg','Downloading\x20SDK\x20binary\x20from:\x20','format','mqARp','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','UYfhl','openSync','./instances/testFrameworkInstance.js','../../../package.json','FqATN','entries','cli_version','BROWSERSTACK_FILES_DIR','getCLIParamsForDevEnv','TtxLg','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','isDirectory','.zip','GET','trim','yTUEL','Configuring\x20Cli\x20path.','jzoEh','mergeObject','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','../../helpers/classLogger.js','includes','EDLwQ','1pAZsCv','lznju','join','ejsRM','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','OftmD','OCsTr','reduce','isBinaryBusy','GgHaR','SDK_CLI_BIN_PATH','4671655XkIZnW','KXTbM','rename','./framework/constants/testFrameworkConstants.js','0755','lazyEntries','1|3|2|4|0','vAojL','Current\x20CLI\x20Path\x20Found:\x20','oVngO','owhgh','AcNWR','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','env','getExistingCliPath','XxyEm','vbmTD','worker_threads','setFrameworkDetail','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','yauzl','IWWsx','30JwmpoG','get','SDK_CLI_CHECK_UPDATE','stringify','zGSTb','../utils/apiUtilityMethods.js','KcvFY','cKcRx','qOGlF','testContextOptions','XwTvk','info','object','CqPBo','requestToUpdateCLI','12521172nTqHRq','1145970sYTKtY','isFile','child_process','11FOIGTU','Error\x20while\x20reading\x20CLI\x20path:\x20','unSMD','once','cwd','Resolving\x20with\x20stdout:\x20\x22','ERoAS','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','exports','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','startsWith','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','downloaded_file_','Failed\x20to\x20delete\x20zip\x20file:\x20','rYOga','unlink','code','KBndS','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','getCliDir','end','3729002kXvzgd','unix:/tmp/sdk-platform-','kvvlo','pilal','TuXqe','BROWSERSTACK_CLI_ENV','ylflp','test','close','YCZrj','mtime','SDK_CLI_DOWNLOAD','message','LbdLi','HCwOs','5943259FjrvZg','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','shouldSkipSessionStatus','.sock','TahEk','SwfCQ','pipe','filter','getWritableDir','downloadLatestBinary','.tmp.','KKgGu','checkAndUpdateCli','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','NlTYv','closeSync','Development\x20Cli\x20Path:\x20','automationFrameworkDetail','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','AoPIv','\x20already\x20exists','FVhmJ','IUOsg','matchHookRegex','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','pMINV','skipSessionName','SxZVb','parse','OSwwN','binary-','meMOh','UhboF','Resolved\x20binary\x20path:\x20','getCurrentInstanceName','hqZeg','Swtbs','fFlmM','skipSessionStatus','homedir','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','getHookRegistryKey','kMRhr','Vyzit','path','BROWSERSTACK_BINARY_URL','debug','shouldSkipSessionName','8qozaJl','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','./state/hookState.js','util','version','zAiRa','572634ZLhSYP','yxThv','error'];a72_0x1a59=function(){return _0x20df1e;};return a72_0x1a59();}const a72_0x5828d7=a72_0x175f;(function(_0x1c9d5a,_0x5727b9){const _0x45b5db=a72_0x175f,_0x3f1610=_0x1c9d5a();while(!![]){try{const _0x3040ce=-parseInt(_0x45b5db(0x19f))/0x1*(parseInt(_0x45b5db(0x1e8))/0x2)+-parseInt(_0x45b5db(0x14b))/0x3+-parseInt(_0x45b5db(0x182))/0x4*(-parseInt(_0x45b5db(0x1aa))/0x5)+parseInt(_0x45b5db(0x1d0))/0x6+parseInt(_0x45b5db(0x1f7))/0x7*(parseInt(_0x45b5db(0x145))/0x8)+-parseInt(_0x45b5db(0x163))/0x9*(-parseInt(_0x45b5db(0x1c0))/0xa)+-parseInt(_0x45b5db(0x1d3))/0xb*(-parseInt(_0x45b5db(0x1cf))/0xc);if(_0x3040ce===_0x5727b9)break;else _0x3f1610['push'](_0x3f1610['shift']());}catch(_0x272f0e){_0x3f1610['push'](_0x3f1610['shift']());}}}(a72_0x1a59,0xf0b01));const fs=require('fs'),os=require('os'),url=require('url'),path=require(a72_0x5828d7(0x141)),{exec}=require(a72_0x5828d7(0x1d2)),{https}=require(a72_0x5828d7(0x17f)),yauzl=require(a72_0x5828d7(0x1be)),util=require(a72_0x5828d7(0x148)),{getFrameworkVersion}=require(a72_0x5828d7(0x17d)),{threadId}=require(a72_0x5828d7(0x1bb)),PerformanceTester=require('../../helpers/performance/performance-tester.js'),{EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require('../../helpers/utilities'),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require('../../helpers/helper'),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require('../utils/constants'),{createClassLogger}=require(a72_0x5828d7(0x19c)),TestFrameworkInstance=require(a72_0x5828d7(0x18a)),HookState=require(a72_0x5828d7(0x147)),TestFrameworkState=require('./state/testFrameworkState.js'),AutomationFrameworkState=require('./state/automationFrameworkState.js'),TestFrameworkConstants=require(a72_0x5828d7(0x1ad)),logger=createClassLogger(a72_0x5828d7(0x178)),{getBStackAPIUrl}=require(a72_0x5828d7(0x1c5));class CLIUtils{[a72_0x5828d7(0x125)]={};[a72_0x5828d7(0x17b)]={};static['isDevelopmentEnv'](){const _0x2249ae=a72_0x5828d7,_0x2b974d={};_0x2b974d[_0x2249ae(0x1c8)]=function(_0x43bc20,_0x4ac68c){return _0x43bc20===_0x4ac68c;},_0x2b974d['yGErW']='development';const _0x11d671=_0x2b974d;return _0x11d671[_0x2249ae(0x1c8)](process['env'][_0x2249ae(0x1ed)],_0x11d671['yGErW']);}static[a72_0x5828d7(0x190)](){const _0x4adfe7=a72_0x5828d7,_0x456e08={};return _0x456e08['id']=process['env'][_0x4adfe7(0x1ed)],_0x456e08[_0x4adfe7(0x150)]=_0x4adfe7(0x1e9)+process[_0x4adfe7(0x1b7)][_0x4adfe7(0x1ed)]+_0x4adfe7(0x1fa),_0x456e08;}static[a72_0x5828d7(0x169)](){const _0x296507=a72_0x5828d7,_0x169f98={'KcvFY':function(_0x1f2b15,_0x1558c2){return _0x1f2b15(_0x1558c2);},'fFlmM':_0x296507(0x18b)};return _0x169f98[_0x296507(0x1c6)](require,_0x169f98[_0x296507(0x139)])[_0x296507(0x149)];}static[a72_0x5828d7(0x17a)](){const _0x57d84c=a72_0x5828d7,_0x4e39ec={};_0x4e39ec[_0x57d84c(0x191)]='node';const _0x1f92b0=_0x4e39ec;return _0x1f92b0['TtxLg'];}static async['setupCliPath'](_0x5c7da9){const _0x110192=a72_0x5828d7,_0x3686af={'xbrBY':_0x110192(0x198),'HCwOs':function(_0x1ca833,_0x586509){return _0x1ca833(_0x586509);},'YKxpy':function(_0x2b8eb9,_0x1be93f){return _0x2b8eb9(_0x1be93f);},'oVngO':_0x110192(0x176)};logger[_0x110192(0x143)](_0x3686af['xbrBY']);const _0xfb2b6f=process[_0x110192(0x1b7)][_0x110192(0x1a9)];if(!_0x3686af[_0x110192(0x1f6)](isNullOrEmpty,_0xfb2b6f))return logger[_0x110192(0x143)](_0x110192(0x124)+_0xfb2b6f),_0xfb2b6f;try{const _0x4f4fa0=this[_0x110192(0x1e6)]();if(_0x3686af[_0x110192(0x15e)](isNullOrEmpty,_0x4f4fa0))throw new Error(_0x3686af[_0x110192(0x1b3)]);const _0x52b12e=this[_0x110192(0x1b8)](_0x4f4fa0),_0x46f719=await this[_0x110192(0x203)](_0x52b12e,_0x4f4fa0,_0x5c7da9);return logger[_0x110192(0x143)](_0x110192(0x135)+_0x46f719),_0x46f719;}catch(_0x5b6c78){logger[_0x110192(0x143)](_0x110192(0x187)+util[_0x110192(0x185)](_0x5b6c78));}return null;}static async[a72_0x5828d7(0x203)](_0x11dbe9,_0x2610b4,_0x3b31b6){const _0x3232c8=a72_0x5828d7,_0x55d447={'ERoAS':function(_0x2c1f74){return _0x2c1f74();},'OSwwN':function(_0x4167cc,_0x523656){return _0x4167cc(_0x523656);},'ejsRM':function(_0xa61703,_0x4baa16,_0x5bb97c){return _0xa61703(_0x4baa16,_0x5bb97c);},'yTUEL':'data','zAiRa':_0x3232c8(0x165)};PerformanceTester[_0x3232c8(0x153)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),logger[_0x3232c8(0x1cb)](_0x3232c8(0x1b2)+_0x11dbe9);const _0x3886b7=_0x55d447[_0x3232c8(0x1d9)](getHostInfo),_0x2c822f={'sdk_version':CLIUtils['getSdkVersion'](),'os':_0x3886b7['platform'],'os_arch':_0x3886b7['arch'],'cli_version':'0','sdk_language':this[_0x3232c8(0x17a)]()};!_0x55d447[_0x3232c8(0x131)](isNullOrEmpty,_0x11dbe9)&&(_0x2c822f['cli_version']=await this['runShellCommand'](_0x11dbe9+_0x3232c8(0x180)));const _0x14c9e0=await this[_0x3232c8(0x1ce)](_0x2c822f,_0x3b31b6);process['env']['BROWSERSTACK_BINARY_URL']&&(logger[_0x3232c8(0x1cb)]('Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20'+process['env']['BROWSERSTACK_BINARY_URL']),_0x14c9e0['data'][_0x3232c8(0x165)]=process[_0x3232c8(0x1b7)][_0x3232c8(0x142)]);if(_0x55d447[_0x3232c8(0x1a2)](nestedKeyValue,_0x14c9e0,[_0x55d447[_0x3232c8(0x197)],_0x55d447[_0x3232c8(0x14a)]])){logger['debug'](_0x3232c8(0x12c)+_0x2c822f[_0x3232c8(0x18e)]);if(!_0x55d447['OSwwN'](isNullOrEmpty,_0x11dbe9)&&this[_0x3232c8(0x1a7)](_0x11dbe9))return logger[_0x3232c8(0x161)](_0x3232c8(0x1bd)+_0x11dbe9),PerformanceTester['end'](PerformanceEvents[_0x3232c8(0x1c2)]),_0x11dbe9;const _0x2ab250=await this['downloadLatestBinary'](_0x55d447['ejsRM'](nestedKeyValue,_0x14c9e0,[_0x55d447[_0x3232c8(0x197)],_0x55d447[_0x3232c8(0x14a)]]),_0x2610b4);return PerformanceTester['end'](PerformanceEvents[_0x3232c8(0x1c2)]),_0x2ab250;}return PerformanceTester[_0x3232c8(0x1e7)](PerformanceEvents[_0x3232c8(0x1c2)]),_0x11dbe9;}static['getCliDir'](){const _0x24b357=a72_0x5828d7,_0x556443={'pxEgB':function(_0x339a37,_0x30ce49){return _0x339a37(_0x30ce49);},'gHLDD':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','OCsTr':_0x24b357(0x172)},_0x1f5541=this['getWritableDir']();try{if(_0x556443[_0x24b357(0x16e)](isNullOrEmpty,_0x1f5541))throw new Error(_0x556443[_0x24b357(0x16b)]);const _0x28f994=path['join'](_0x1f5541,_0x556443[_0x24b357(0x1a5)]);return!fs[_0x24b357(0x15a)](_0x28f994)&&_0x556443['pxEgB'](createDir,_0x28f994),_0x28f994;}catch(_0x5e4d73){logger[_0x24b357(0x143)](_0x24b357(0x1da)+util[_0x24b357(0x185)](_0x5e4d73));}}static[a72_0x5828d7(0x1ff)](){const _0x3967c8=a72_0x5828d7,_0x43f9ca={'IUOsg':'.browserstack','PiPFo':function(_0x2f7c37,_0x3ee1fc){return _0x2f7c37(_0x3ee1fc);},'QIxHh':function(_0x219b4b,_0x344366){return _0x219b4b(_0x344366);},'yxThv':function(_0x5a34ad,_0x4ad5ae){return _0x5a34ad(_0x4ad5ae);},'kbMus':function(_0x245776,_0x2d1479){return _0x245776(_0x2d1479);},'plsKd':function(_0x32bcd6,_0x20f664){return _0x32bcd6(_0x20f664);}},_0x57a569=[process[_0x3967c8(0x1b7)][_0x3967c8(0x18f)],path['join'](os[_0x3967c8(0x13b)](),_0x43f9ca[_0x3967c8(0x12a)]),path['join'](os[_0x3967c8(0x173)](),_0x43f9ca['IUOsg'])];for(const _0x32b249 of _0x57a569){if(_0x43f9ca[_0x3967c8(0x17c)](isNullOrEmpty,_0x32b249))continue;try{if(fs[_0x3967c8(0x15a)](_0x32b249)){logger[_0x3967c8(0x143)]('Folder\x20'+_0x32b249+_0x3967c8(0x128));if(!_0x43f9ca['QIxHh'](isModifiable,_0x32b249)){logger[_0x3967c8(0x143)]('Setting\x20required\x20permissions\x20to\x20'+_0x32b249);const _0x559645=_0x43f9ca[_0x3967c8(0x14c)](setReadWriteExecuteAccess,_0x32b249);if(!_0x43f9ca['kbMus'](isTrue,_0x559645)){logger[_0x3967c8(0x161)](_0x3967c8(0x168)+_0x32b249);continue;}}}else{logger['debug']('Folder\x20does\x20not\x20exist:\x20'+_0x32b249),_0x43f9ca['plsKd'](createDir,_0x32b249),logger[_0x3967c8(0x143)](_0x3967c8(0x16c)+_0x32b249);const _0x30c0e8=_0x43f9ca['QIxHh'](setReadWriteExecuteAccess,_0x32b249);!_0x43f9ca[_0x3967c8(0x14c)](isTrue,_0x30c0e8)&&logger[_0x3967c8(0x161)](_0x3967c8(0x168)+_0x32b249);}return _0x32b249;}catch(_0x1ee1a4){logger[_0x3967c8(0x14d)]('Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20'+util[_0x3967c8(0x185)](_0x1ee1a4));}}return null;}static[a72_0x5828d7(0x1b8)](_0x50a5d1){const _0xd3450e=a72_0x5828d7,_0x1aad84={};_0x1aad84[_0xd3450e(0x183)]=function(_0xbaece7,_0x2412ce){return _0xbaece7>_0x2412ce;},_0x1aad84[_0xd3450e(0x138)]=function(_0x2d67b0,_0x526b62){return _0x2d67b0>_0x526b62;};const _0x282c8c=_0x1aad84;try{if(!fs[_0xd3450e(0x15a)](_0x50a5d1)||!fs[_0xd3450e(0x154)](_0x50a5d1)[_0xd3450e(0x193)]())return'';const _0x232b77=fs['readdirSync'](_0x50a5d1)[_0xd3450e(0x14e)](_0x2071b3=>path['join'](_0x50a5d1,_0x2071b3))[_0xd3450e(0x1fe)](_0x297843=>fs[_0xd3450e(0x154)](_0x297843)[_0xd3450e(0x1d1)]()&&path[_0xd3450e(0x162)](_0x297843)[_0xd3450e(0x1dd)](_0xd3450e(0x132)));if(_0x282c8c[_0xd3450e(0x138)](_0x232b77[_0xd3450e(0x174)],0x0)){const _0x58258d=_0x232b77[_0xd3450e(0x14e)](_0x309534=>({'filePath':_0x309534,'mtime':fs[_0xd3450e(0x154)](_0x309534)[_0xd3450e(0x1f2)]}))[_0xd3450e(0x1a6)]((_0x1dfd36,_0x29d856)=>{const _0x5efe37=_0xd3450e;if(!_0x1dfd36||!_0x1dfd36[_0x5efe37(0x1f2)])return _0x29d856;if(_0x282c8c['HxsHg'](_0x29d856[_0x5efe37(0x1f2)],_0x1dfd36[_0x5efe37(0x1f2)]))return _0x29d856;return _0x1dfd36;},{});return _0x58258d?_0x58258d[_0xd3450e(0x16f)]:'';}return'';}catch(_0x396300){return logger[_0xd3450e(0x14d)](_0xd3450e(0x1d4)+util[_0xd3450e(0x185)](_0x396300)),'';}}static [a72_0x5828d7(0x1ce)]=async(_0x398a09,_0x545a29)=>{const _0x5d1a08=a72_0x5828d7,_0x19a586={'RMrXJ':function(_0x344672,_0x462531,_0x218e79,_0x396fae,_0x426614){return _0x344672(_0x462531,_0x218e79,_0x396fae,_0x426614);},'kMRhr':_0x5d1a08(0x195)},_0x2afd3a={};_0x2afd3a['qs']=_0x398a09;const _0xc75252=await _0x19a586['RMrXJ'](nodeRequest,_0x19a586[_0x5d1a08(0x13f)],UPDATED_CLI_ENDPOINT,_0x2afd3a,_0x545a29);return logger['debug']('response\x20'+JSON[_0x5d1a08(0x1c3)](_0xc75252)),_0xc75252;};static[a72_0x5828d7(0x1a7)](_0x1f9d61){const _0x12ebd7=a72_0x5828d7;try{const _0x43cacb=fs[_0x12ebd7(0x189)](_0x1f9d61,'r+');return fs[_0x12ebd7(0x123)](_0x43cacb),![];}catch(_0x317d34){if(BINARY_BUSY_ERROR_CODES[_0x12ebd7(0x19d)](_0x317d34[_0x12ebd7(0x1e3)]))return logger[_0x12ebd7(0x143)](_0x12ebd7(0x16a)+_0x1f9d61),!![];return logger[_0x12ebd7(0x143)](_0x12ebd7(0x1de)+_0x317d34[_0x12ebd7(0x1f4)]),![];}}static[a72_0x5828d7(0x16d)](_0x3eb5eb,_0x4a5f78=''){const _0x12de5d=a72_0x5828d7,_0x156ac9={'jzoEh':_0x12de5d(0x149),'ZRaSv':function(_0x343e6d,_0x14f692){return _0x343e6d(_0x14f692);},'meMOh':_0x12de5d(0x17e),'vSXCJ':function(_0x57fd24,_0x38a4bf,_0x2e8b89,_0x5d4946){return _0x57fd24(_0x38a4bf,_0x2e8b89,_0x5d4946);},'pilal':'error'};return new Promise((_0x115b1a,_0x299484)=>{const _0x439875=_0x12de5d,_0x1b099c={'TuXqe':function(_0x4df4ab,_0x324bdc){const _0x3c04a2=a72_0x175f;return _0x156ac9[_0x3c04a2(0x15f)](_0x4df4ab,_0x324bdc);},'TahEk':_0x156ac9['meMOh']},_0x3e256a={};_0x3e256a[_0x439875(0x1d7)]=_0x4a5f78,_0x3e256a['timeout']=0x1388;const _0x31d77c=_0x156ac9['vSXCJ'](exec,_0x3eb5eb,_0x3e256a,(_0x530535,_0x2b1f25,_0x2b2799)=>{const _0x455ba6=_0x439875;if(_0x530535){if(_0x3eb5eb['includes'](_0x156ac9[_0x455ba6(0x199)])&&(_0x2b1f25[_0x455ba6(0x196)]()||_0x2b2799[_0x455ba6(0x196)]())){const _0x42c557=_0x2b1f25['trim']()||_0x2b2799[_0x455ba6(0x196)]();logger[_0x455ba6(0x143)](_0x455ba6(0x159)+_0x42c557+'\x22'),_0x156ac9[_0x455ba6(0x15f)](_0x115b1a,_0x42c557);}else _0x156ac9[_0x455ba6(0x15f)](_0x115b1a,_0x2b2799['trim']()||_0x156ac9[_0x455ba6(0x133)]);}else logger[_0x455ba6(0x143)](_0x455ba6(0x1d8)+_0x2b1f25['trim']()+'\x22'),_0x156ac9[_0x455ba6(0x15f)](_0x115b1a,_0x2b1f25[_0x455ba6(0x196)]());});_0x31d77c['on'](_0x156ac9[_0x439875(0x1eb)],()=>{const _0x5ea69e=_0x439875;_0x1b099c[_0x5ea69e(0x1ec)](_0x115b1a,_0x1b099c[_0x5ea69e(0x1fb)]);});});}static [a72_0x5828d7(0x200)]=async(_0x57ca14,_0x1c4c98)=>{const _0x1f854f=a72_0x5828d7,_0x59be9e={'dDwJs':function(_0xb02085,_0x4237c4){return _0xb02085(_0x4237c4);},'UfFMq':'Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','pMINV':function(_0x4339c6,_0x573b5d){return _0x4339c6(_0x573b5d);},'GgHaR':_0x1f854f(0x192),'rYOga':_0x1f854f(0x14d)};PerformanceTester[_0x1f854f(0x153)](PerformanceEvents[_0x1f854f(0x1f3)]),logger['debug'](_0x1f854f(0x184)+_0x57ca14);try{const _0x36019f=url[_0x1f854f(0x130)](_0x57ca14),_0xe1a33b=path[_0x1f854f(0x1a1)](_0x1c4c98,_0x1f854f(0x1df)+process['pid']+_0x1f854f(0x194)),_0xab6eec=fs['createWriteStream'](_0xe1a33b);return new Promise((_0xf962cf,_0x38d2a7)=>{const _0x4ecc12=_0x1f854f,_0x31a2fa={'aRNbZ':_0x59be9e[_0x4ecc12(0x152)],'KKgGu':function(_0x34a2d5,_0x4224be){const _0x13511a=_0x4ecc12;return _0x59be9e[_0x13511a(0x12d)](_0x34a2d5,_0x4224be);},'ZjIhL':_0x59be9e[_0x4ecc12(0x1a8)],'xAJCJ':function(_0x5d9dc9,_0x1f45d4){const _0x249dfd=_0x4ecc12;return _0x59be9e[_0x249dfd(0x14f)](_0x5d9dc9,_0x1f45d4);},'unSMD':_0x59be9e[_0x4ecc12(0x1e1)]};https[_0x4ecc12(0x1c1)](_0x36019f,function(_0xc47d4a){const _0x17a156=_0x4ecc12,_0x4b1890={'kWMbd':_0x31a2fa['ZjIhL'],'AoPIv':function(_0x8f5a77,_0x2dd2a2){return _0x31a2fa['KKgGu'](_0x8f5a77,_0x2dd2a2);},'osZTp':function(_0x1d1eaa,_0x1d1bb3){return _0x31a2fa['xAJCJ'](_0x1d1eaa,_0x1d1bb3);}},_0x14b70c=null;_0xc47d4a[_0x17a156(0x1fd)](_0xab6eec),_0xc47d4a['on'](_0x31a2fa['unSMD'],function(_0x4a3dfc){const _0x48936a=_0x17a156;logger[_0x48936a(0x14d)](util[_0x48936a(0x185)](_0x4b1890['kWMbd'],_0x4a3dfc)),PerformanceTester[_0x48936a(0x1e7)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x48936a(0x185)](_0x4a3dfc)),_0x4b1890[_0x48936a(0x127)](_0x38d2a7,_0x4a3dfc);}),_0xab6eec['on'](_0x31a2fa[_0x17a156(0x1d5)],function(_0x5a2fbd){const _0x23a26a=_0x17a156;logger[_0x23a26a(0x14d)](util[_0x23a26a(0x185)](_0x31a2fa[_0x23a26a(0x155)],_0x5a2fbd)),PerformanceTester[_0x23a26a(0x1e7)](PerformanceEvents[_0x23a26a(0x1f3)],![],util['format'](_0x5a2fbd)),_0x31a2fa['KKgGu'](_0x38d2a7,_0x5a2fbd);}),CLIUtils['downloadFileStream'](_0xab6eec,_0x14b70c,_0xe1a33b,_0x1c4c98,_0x5a488b=>{const _0x120817=_0x17a156;PerformanceTester['end'](PerformanceEvents[_0x120817(0x1f3)]),_0x31a2fa[_0x120817(0x202)](_0xf962cf,_0x5a488b);},_0x25a29c=>{const _0x3a7b65=_0x17a156;PerformanceTester[_0x3a7b65(0x1e7)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x3a7b65(0x185)](_0x25a29c)),_0x4b1890['osZTp'](_0x38d2a7,_0x25a29c);});})['on'](_0x59be9e[_0x4ecc12(0x1e1)],function(_0xc70fa3){const _0x51125c=_0x4ecc12;logger[_0x51125c(0x14d)](_0x51125c(0x126)+util[_0x51125c(0x185)](_0xc70fa3)),PerformanceTester[_0x51125c(0x1e7)](PerformanceEvents[_0x51125c(0x1f3)],![],util[_0x51125c(0x185)](_0xc70fa3)),_0x59be9e['dDwJs'](_0x38d2a7,_0xc70fa3);});});}catch(_0x3bb6b5){PerformanceTester[_0x1f854f(0x1e7)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x1f854f(0x185)](_0x3bb6b5)),logger['debug'](_0x1f854f(0x1f8)+util[_0x1f854f(0x185)](_0x3bb6b5));}};static[a72_0x5828d7(0x166)](_0x586215,_0x1747b3,_0x5c3cf6,_0x5e026e,_0xb78269,_0xa6329b){const _0x1e8f2c=a72_0x5828d7,_0x2a43eb={'owhgh':function(_0x104156,_0x5bb27f){return _0x104156(_0x5bb27f);},'YCZrj':function(_0x505474,_0x474712){return _0x505474(_0x474712);},'vCCxM':'close','CqPBo':'end','pgzyH':function(_0x2add55,_0x471a77){return _0x2add55!==_0x471a77;},'dkNFi':function(_0x5026b8,_0x5ab8c0){return _0x5026b8(_0x5ab8c0);},'efMRi':'error','ylflp':_0x1e8f2c(0x181),'VHMLw':_0x1e8f2c(0x1ae),'KXTbM':'entry'};_0x586215['on'](_0x2a43eb[_0x1e8f2c(0x15b)],function(){const _0x4ca787=_0x1e8f2c,_0x161535={'vbmTD':function(_0x29151f,_0x60484b){const _0x1d994d=a72_0x175f;return _0x2a43eb[_0x1d994d(0x1b4)](_0x29151f,_0x60484b);},'XwTvk':function(_0x5eb9bd,_0x3d89d2){const _0x4110af=a72_0x175f;return _0x2a43eb[_0x4110af(0x1f1)](_0x5eb9bd,_0x3d89d2);},'RWyOa':_0x2a43eb[_0x4ca787(0x15b)],'EDLwQ':_0x2a43eb[_0x4ca787(0x1cd)],'Vyzit':function(_0x408ead,_0x43735a){return _0x2a43eb['pgzyH'](_0x408ead,_0x43735a);},'mqARp':function(_0xe42373,_0x238fa2){return _0x2a43eb['dkNFi'](_0xe42373,_0x238fa2);},'CpjfA':_0x2a43eb[_0x4ca787(0x156)],'kvvlo':_0x2a43eb[_0x4ca787(0x1ee)],'SxZVb':_0x2a43eb['VHMLw'],'UZnxh':function(_0x3f6588,_0x1d4b21){const _0x5f9a6a=_0x4ca787;return _0x2a43eb[_0x5f9a6a(0x1b4)](_0x3f6588,_0x1d4b21);},'zGSTb':_0x2a43eb[_0x4ca787(0x1ab)]},_0x1df919={};_0x1df919[_0x4ca787(0x1af)]=!![],yauzl['open'](_0x5c3cf6,_0x1df919,function(_0x267862,_0x5ea615){const _0x4fd50a=_0x4ca787,_0x5d8ea7={'NECmt':function(_0x4c6d64,_0x3e7fb4){const _0xe9fbb6=a72_0x175f;return _0x161535[_0xe9fbb6(0x186)](_0x4c6d64,_0x3e7fb4);},'FVhmJ':function(_0x561656,_0x5c509f){return _0x161535['Vyzit'](_0x561656,_0x5c509f);},'XxyEm':_0x161535[_0x4fd50a(0x1ea)],'Iyamw':function(_0x357e9a,_0x4a1f01){const _0x441fb3=_0x4fd50a;return _0x161535[_0x441fb3(0x1ca)](_0x357e9a,_0x4a1f01);},'KBndS':function(_0x87e04c,_0x2b51d9){return _0x161535['vbmTD'](_0x87e04c,_0x2b51d9);},'McbIU':_0x161535[_0x4fd50a(0x12f)]};if(_0x267862){_0x161535['UZnxh'](_0xa6329b,_0x267862);return;}_0x5ea615[_0x4fd50a(0x160)](),_0x5ea615['on'](_0x161535[_0x4fd50a(0x1c4)],_0x269281=>{const _0xe198c=_0x4fd50a,_0x581173={'hqZeg':function(_0x318a76,_0x267a1a){const _0x55c429=a72_0x175f;return _0x161535[_0x55c429(0x1ba)](_0x318a76,_0x267a1a);},'FqATN':function(_0x5ecf9a,_0x3cf256){return _0x161535['XwTvk'](_0x5ecf9a,_0x3cf256);},'BpsPK':_0x161535[_0xe198c(0x171)],'cKcRx':_0x161535[_0xe198c(0x19e)]};if(/\/$/['test'](_0x269281['fileName'])){_0x5ea615['readEntry']();return;}!_0x1747b3&&(_0x1747b3=_0x269281[_0xe198c(0x157)]);if(_0x161535[_0xe198c(0x140)](_0x269281[_0xe198c(0x157)],_0x1747b3))_0x5ea615[_0xe198c(0x160)]();else{const _0x54f966=_0x269281[_0xe198c(0x157)],_0x66f0c1=path[_0xe198c(0x1a1)](_0x5e026e,_0x54f966+_0xe198c(0x201)+process['pid']);let _0x25936f;try{_0x25936f=fs[_0xe198c(0x158)](_0x66f0c1);}catch(_0xbb320b){if(BINARY_BUSY_ERROR_CODES[_0xe198c(0x19d)](_0xbb320b['code'])){const _0x45b7a1=path[_0xe198c(0x1a1)](_0x5e026e,_0x54f966);if(fs[_0xe198c(0x15a)](_0x45b7a1)){logger[_0xe198c(0x161)](_0xe198c(0x1a3)+_0x54f966),fs[_0xe198c(0x1e2)](_0x5c3cf6,_0x23eb8b=>{const _0x2537f0=_0xe198c;_0x23eb8b&&logger['warn'](_0x2537f0(0x1e0)+_0x5c3cf6);}),_0x161535[_0xe198c(0x186)](_0xb78269,_0x45b7a1);return;}logger[_0xe198c(0x161)](_0xe198c(0x1b6)+_0x54f966);}_0x161535[_0xe198c(0x1ba)](_0xa6329b,_0xbb320b);return;}_0x25936f['on'](_0x161535[_0xe198c(0x164)],_0xd03061=>{const _0x3d93b6=_0xe198c;if(BINARY_BUSY_ERROR_CODES[_0x3d93b6(0x19d)](_0xd03061[_0x3d93b6(0x1e3)])){const _0x247a29=path[_0x3d93b6(0x1a1)](_0x5e026e,_0x54f966);_0x25936f['close'](),fs['existsSync'](_0x247a29)?(logger[_0x3d93b6(0x161)](_0x3d93b6(0x121)+_0xd03061[_0x3d93b6(0x1f4)]),_0x5ea615[_0x3d93b6(0x1f0)](),fs['unlink'](_0x5c3cf6,_0x535989=>{const _0x39d2ac=_0x3d93b6;_0x535989&&logger['warn'](_0x39d2ac(0x1e0)+_0x5c3cf6);}),_0x581173[_0x3d93b6(0x137)](_0xb78269,_0x247a29)):(logger[_0x3d93b6(0x161)](_0x3d93b6(0x146)+_0xd03061[_0x3d93b6(0x1f4)]),fs[_0x3d93b6(0x1e2)](_0x66f0c1,()=>{}),_0x581173['hqZeg'](_0xa6329b,_0xd03061));}else fs[_0x3d93b6(0x1e2)](_0x66f0c1,()=>{}),_0x581173['FqATN'](_0xa6329b,_0xd03061);}),_0x5ea615['openReadStream'](_0x269281,function(_0xe3a06f,_0x133826){const _0x49b825=_0xe198c,_0x81571d={};_0x81571d['raIPf']=_0x581173[_0x49b825(0x15d)];const _0x488df6=_0x81571d;if(_0xe3a06f){fs[_0x49b825(0x1e2)](_0x66f0c1,()=>{}),_0x581173[_0x49b825(0x18c)](_0xa6329b,_0xe3a06f);return;}_0x133826['on'](_0x581173[_0x49b825(0x1c7)],function(){const _0x4ecddd=_0x49b825;_0x25936f[_0x4ecddd(0x1e7)](),_0x25936f['on'](_0x488df6['raIPf'],function(){_0x5ea615['readEntry']();});}),_0x133826[_0x49b825(0x1fd)](_0x25936f);});}}),_0x5ea615['on'](_0x161535[_0x4fd50a(0x164)],_0x94e56f=>{_0x5d8ea7['NECmt'](_0xa6329b,_0x94e56f);}),_0x5ea615[_0x4fd50a(0x1d6)](_0x161535[_0x4fd50a(0x19e)],()=>{const _0x4bab4d=_0x4fd50a,_0x18e7bb={'LbdLi':function(_0x476faf,_0xd67d48){const _0x55656f=a72_0x175f;return _0x5d8ea7[_0x55656f(0x129)](_0x476faf,_0xd67d48);},'AcNWR':_0x5d8ea7[_0x4bab4d(0x1b9)],'tUsVM':function(_0x465388,_0x4f6bdd){const _0x20da6b=_0x4bab4d;return _0x5d8ea7[_0x20da6b(0x175)](_0x465388,_0x4f6bdd);},'UhboF':function(_0x5cccd5,_0x1c7d5e){const _0x5eb752=_0x4bab4d;return _0x5d8ea7[_0x5eb752(0x1e4)](_0x5cccd5,_0x1c7d5e);}};fs[_0x4bab4d(0x1e2)](_0x5c3cf6,_0x4d4ffd=>{_0x4d4ffd&&logger['warn']('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x5c3cf6);});const _0x2657bf=path[_0x4bab4d(0x1a1)](_0x5e026e,_0x1747b3+_0x4bab4d(0x201)+process[_0x4bab4d(0x167)]),_0x4b44e2=path[_0x4bab4d(0x1a1)](_0x5e026e,_0x1747b3);fs['chmod'](_0x2657bf,_0x5d8ea7['McbIU'],function(_0x2c817e){const _0x570736=_0x4bab4d;if(_0x2c817e){_0x5ea615[_0x570736(0x1f0)](),fs[_0x570736(0x1e2)](_0x2657bf,()=>{}),_0x18e7bb[_0x570736(0x134)](_0xa6329b,_0x2c817e);return;}fs[_0x570736(0x1ac)](_0x2657bf,_0x4b44e2,function(_0x12e555){const _0x18cbd=_0x570736;if(_0x12e555){if(_0x18e7bb[_0x18cbd(0x1f5)](_0x12e555[_0x18cbd(0x1e3)],_0x18e7bb[_0x18cbd(0x1b5)])){_0x5ea615[_0x18cbd(0x1f0)](),fs[_0x18cbd(0x1e2)](_0x2657bf,()=>{}),_0x18e7bb[_0x18cbd(0x177)](_0xa6329b,_0x12e555);return;}logger[_0x18cbd(0x161)](_0x18cbd(0x1e5)+_0x12e555[_0x18cbd(0x1f4)]);try{fs[_0x18cbd(0x15c)](_0x2657bf,_0x4b44e2);}catch(_0x22a930){_0x5ea615['close'](),fs['unlink'](_0x2657bf,()=>{}),_0x18e7bb[_0x18cbd(0x177)](_0xa6329b,_0x22a930);return;}fs['unlink'](_0x2657bf,_0x28cba4=>{const _0x5a8106=_0x18cbd;_0x28cba4&&logger[_0x5a8106(0x161)](_0x5a8106(0x19b)+_0x28cba4[_0x5a8106(0x1f4)]);});}_0x5ea615[_0x18cbd(0x1f0)](),_0x18e7bb[_0x18cbd(0x177)](_0xb78269,_0x4b44e2);});});});});});}static['getTestFrameworkDetail'](){const _0x231126=a72_0x5828d7;if(process[_0x231126(0x1b7)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL'])return JSON[_0x231126(0x130)](process[_0x231126(0x1b7)][_0x231126(0x1dc)]);return this[_0x231126(0x17b)];}static[a72_0x5828d7(0x151)](){const _0x63b668=a72_0x5828d7;if(process['env'][_0x63b668(0x13d)])return JSON['parse'](process[_0x63b668(0x1b7)][_0x63b668(0x13d)]);return this[_0x63b668(0x125)];}static[a72_0x5828d7(0x1bc)](_0x5e8a47,_0x56f362){const _0x3229e6=a72_0x5828d7,_0x3d7b88={'SwfCQ':_0x3229e6(0x1b0),'UYfhl':function(_0x4f3f2b,_0x988a42){return _0x4f3f2b||_0x988a42;},'IWWsx':function(_0x3ad289,_0x367f7b){return _0x3ad289(_0x367f7b);},'vAojL':function(_0x4d04dc,_0x58d0c9){return _0x4d04dc(_0x58d0c9);}},_0x3db512=_0x3d7b88[_0x3229e6(0x1fc)]['split']('|');let _0xe88f79=0x0;while(!![]){switch(_0x3db512[_0xe88f79++]){case'0':process[_0x3229e6(0x1b7)][_0x3229e6(0x1dc)]=JSON[_0x3229e6(0x1c3)](this['testFrameworkDetail']);continue;case'1':_0x3d7b88[_0x3229e6(0x188)](!_0x5e8a47,!_0x56f362)&&logger[_0x3229e6(0x143)](_0x3229e6(0x13c)+_0x5e8a47+',\x20automationFramework='+_0x56f362);continue;case'2':this[_0x3229e6(0x125)]={'name':_0x56f362,'version':_0x3d7b88[_0x3229e6(0x1bf)](getFrameworkVersion,_0x56f362)};continue;case'3':this[_0x3229e6(0x17b)]={'name':_0x5e8a47,'version':{[_0x5e8a47]:_0x3d7b88[_0x3229e6(0x1b1)](getFrameworkVersion,_0x5e8a47)}};continue;case'4':process[_0x3229e6(0x1b7)][_0x3229e6(0x13d)]=JSON['stringify'](this[_0x3229e6(0x125)]);continue;}break;}}static[a72_0x5828d7(0x13e)](_0x3992c0,_0x58f972){return _0x3992c0+':'+_0x58f972;}static[a72_0x5828d7(0x136)](){const _0xdf026b=a72_0x5828d7;return process[_0xdf026b(0x167)]+':'+threadId;}static[a72_0x5828d7(0x144)](_0xc0bbe7){const _0x445a81=a72_0x5828d7;if(_0xc0bbe7[_0x445a81(0x1c9)]&&_0xc0bbe7[_0x445a81(0x1c9)][_0x445a81(0x12e)])return!![];return![];}static[a72_0x5828d7(0x1f9)](_0x197a71){const _0x1b40dc=a72_0x5828d7;if(_0x197a71[_0x1b40dc(0x1c9)]&&_0x197a71[_0x1b40dc(0x1c9)][_0x1b40dc(0x13a)])return!![];return![];}static[a72_0x5828d7(0x12b)](_0x5ba0b0){const _0x46b150=a72_0x5828d7,_0x3c4126=new RegExp(TestFrameworkConstants[_0x46b150(0x179)]);return _0x3c4126[_0x46b150(0x1ef)](_0x5ba0b0);}static[a72_0x5828d7(0x19a)](_0x18a283,_0x17345e){const _0x56b74f=a72_0x5828d7,_0x5589fb={};_0x5589fb[_0x56b74f(0x1a4)]=function(_0x2a1274,_0x48972c){return _0x2a1274!==_0x48972c;},_0x5589fb['lznju']=function(_0x7a9646,_0x3b7e7a){return _0x7a9646===_0x3b7e7a;},_0x5589fb[_0x56b74f(0x122)]=_0x56b74f(0x1cc);const _0x314ba3=_0x5589fb;for(const [_0x1b2b80,_0x8726fa]of Object[_0x56b74f(0x18d)](_0x17345e)){if(_0x314ba3[_0x56b74f(0x1a4)](_0x8726fa,null)&&_0x314ba3[_0x56b74f(0x1a0)](typeof _0x8726fa,_0x314ba3[_0x56b74f(0x122)])&&!Array['isArray'](_0x8726fa))_0x18a283[_0x1b2b80]=this[_0x56b74f(0x19a)](_0x18a283[_0x1b2b80]||{},_0x8726fa);else Array[_0x56b74f(0x170)](_0x8726fa)?_0x18a283[_0x1b2b80]=(_0x18a283[_0x1b2b80]||[])['concat'](_0x8726fa):_0x18a283[_0x1b2b80]=_0x8726fa;}return _0x18a283;}}function a72_0x175f(_0x22bc57,_0x4e3976){const _0x1a59c3=a72_0x1a59();return a72_0x175f=function(_0x175f41,_0x3423b8){_0x175f41=_0x175f41-0x121;let _0x285ca4=_0x1a59c3[_0x175f41];return _0x285ca4;},a72_0x175f(_0x22bc57,_0x4e3976);}module[a72_0x5828d7(0x1db)]=CLIUtils;
1
+ function a72_0x224d(){const _0x519b57=['ZJeCO','SNhOJ','split','runShellCommand','JGvIs','setFrameworkDetail','tmpdir','wVnwz','readdirSync','Vhxgm','../../helpers/performance/constants','dORIg','gvYnw','isBinaryBusy','BIDIW','trim','3PIFIFB','close','uIEbr','HMZdb','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','WNxCW','version','Downloading\x20SDK\x20binary\x20from:\x20','chmod','hzlxd','getTestFrameworkDetail','Folder\x20does\x20not\x20exist:\x20','EjxQm','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','VgZwt','Resolving\x20with\x20stdout:\x20\x22','reduce','uFUhh','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','start','Sxeoa','SDK_CLI_CHECK_UPDATE','cli_version','\x20version','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','shouldSkipSessionStatus','GET','../../helpers/performance/performance-tester.js','isDirectory','wMFUi','1393160dxaXNH','GQTxZ','debug','warn','util','follow-redirects','shouldSkipSessionName','gctMn','skipSessionStatus','Current\x20CLI\x20Path\x20Found:\x20','getSdkVersion','entries','test','Failed\x20to\x20delete\x20zip\x20file:\x20','env','development','stringify','../../helpers/helper','mtime','binary-','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','cJBWy','102880woieEN','jcrcl','tXuOL','once','child_process','get','./framework/constants/testFrameworkConstants.js','iGPsz','NvSov',',\x20automationFramework=','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','existsSync','testContextOptions','worker_threads','CajbS','cli','3|2|4|0|1','nVTqR','wOpzL','yauzl','HOOK_REGEX','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','SZoPR','Configuring\x20Cli\x20path.','sSnMj','NMcpm','Folder\x20','\x20already\x20exists','BwqOc','cbOKQ','Resolved\x20binary\x20path:\x20','SDK_CLI_BIN_PATH','IwZnv','SCQzO','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','hFHgP','requestToUpdateCLI','SHELL_EXECUTE_ERROR','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','czyJb','platform','hbfKY','tiIzT','ujtlS','testFrameworkDetail','code','.tmp.','Development\x20Cli\x20Path:\x20','tihvS','basename','path','wQWWY','statSync','url','homedir','WUQze','IGsBM','mergeObject','object','1720VFLEtk','parse','QwyzR','isFile','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','fileName','./state/hookState.js','error','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','tAkvr','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','ILAxh','BROWSERSTACK_BINARY_URL','../utils/apiUtilityMethods.js','SDK_CLI_DOWNLOAD','sUBnA','join','Error\x20while\x20reading\x20CLI\x20path:\x20','CBQBG','50823OHKguC','fPaZj','23337633Tkqrye','info','KAPfo','BROWSERSTACK_FILES_DIR','anrmG','pMpFv','BROWSERSTACK_CLI_ENV','closeSync','entry','getExistingCliPath','downloadFileStream','Setting\x20required\x20permissions\x20to\x20','../../../package.json','EdTNE','zzKWH','getWritableDir','downloadLatestBinary','getHookRegistryKey','jvmds','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','getCLIParamsForDevEnv','cLXDv','checkAndUpdateCli','yJZab','readEntry','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','map','SEcuX','tyTFU','message','.sock','LuyXC','tenqL','end','openReadStream','MlLlT','ZzbzH','isDevelopmentEnv','0755','response\x20','Odism','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','3070226NoubHW','CXxtV','MNSww','getCliDir','nvtwp','53466CqCiTQ','CLIUtils','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','zGaFk','355uChQkl','pid','9922386iWjbru','BgwmE','includes','getSdkLanguage','unlink','automationFrameworkDetail','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','kxFFr','skipSessionName','unix:/tmp/sdk-platform-','concat','310ClnZHz','yvWVh','node','../../helpers/test-observability/utils.js','filePath','QUvhW','format','Rlzdg','iaOSV'];a72_0x224d=function(){return _0x519b57;};return a72_0x224d();}const a72_0x5140ee=a72_0x4230;function a72_0x4230(_0x2a8355,_0x23507f){const _0x224db5=a72_0x224d();return a72_0x4230=function(_0x423049,_0x14c6d4){_0x423049=_0x423049-0x18e;let _0x9d2ab6=_0x224db5[_0x423049];return _0x9d2ab6;},a72_0x4230(_0x2a8355,_0x23507f);}(function(_0x49a0ba,_0x21f681){const _0x13281c=a72_0x4230,_0x211f91=_0x49a0ba();while(!![]){try{const _0x366c44=-parseInt(_0x13281c(0x22a))/0x1+parseInt(_0x13281c(0x1dd))/0x2*(parseInt(_0x13281c(0x20c))/0x3)+parseInt(_0x13281c(0x240))/0x4*(parseInt(_0x13281c(0x1e6))/0x5)+-parseInt(_0x13281c(0x1e8))/0x6+-parseInt(_0x13281c(0x1e2))/0x7*(parseInt(_0x13281c(0x19e))/0x8)+parseInt(_0x13281c(0x1b1))/0x9*(parseInt(_0x13281c(0x1f3))/0xa)+parseInt(_0x13281c(0x1b3))/0xb;if(_0x366c44===_0x21f681)break;else _0x211f91['push'](_0x211f91['shift']());}catch(_0x27be3d){_0x211f91['push'](_0x211f91['shift']());}}}(a72_0x224d,0xec880));const fs=require('fs'),os=require('os'),url=require(a72_0x5140ee(0x198)),path=require(a72_0x5140ee(0x195)),{exec}=require(a72_0x5140ee(0x244)),{https}=require(a72_0x5140ee(0x22f)),yauzl=require(a72_0x5140ee(0x253)),util=require(a72_0x5140ee(0x22e)),{getFrameworkVersion}=require(a72_0x5140ee(0x1f6)),{threadId}=require(a72_0x5140ee(0x24d)),PerformanceTester=require(a72_0x5140ee(0x227)),{EVENTS:PerformanceEvents}=require(a72_0x5140ee(0x206)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require('../../helpers/utilities'),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a72_0x5140ee(0x23b)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require('../utils/constants'),{createClassLogger}=require('../../helpers/classLogger.js'),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require(a72_0x5140ee(0x1a4)),TestFrameworkState=require('./state/testFrameworkState.js'),AutomationFrameworkState=require('./state/automationFrameworkState.js'),TestFrameworkConstants=require(a72_0x5140ee(0x246)),logger=createClassLogger(a72_0x5140ee(0x1e3)),{getBStackAPIUrl}=require(a72_0x5140ee(0x1ab));class CLIUtils{[a72_0x5140ee(0x1ed)]={};[a72_0x5140ee(0x18f)]={};static[a72_0x5140ee(0x1d8)](){const _0x4cbeac=a72_0x5140ee,_0x19cfac={};_0x19cfac[_0x4cbeac(0x1a9)]=function(_0x22519b,_0x4b73d0){return _0x22519b===_0x4b73d0;},_0x19cfac['NvSov']=_0x4cbeac(0x239);const _0x4b3db2=_0x19cfac;return _0x4b3db2[_0x4cbeac(0x1a9)](process[_0x4cbeac(0x238)][_0x4cbeac(0x1b9)],_0x4b3db2[_0x4cbeac(0x248)]);}static[a72_0x5140ee(0x1c7)](){const _0x18a2c2=a72_0x5140ee,_0x41794c={};return _0x41794c['id']=process[_0x18a2c2(0x238)][_0x18a2c2(0x1b9)],_0x41794c['listen']=_0x18a2c2(0x1f1)+process['env'][_0x18a2c2(0x1b9)]+_0x18a2c2(0x1d1),_0x41794c;}static[a72_0x5140ee(0x234)](){const _0x1a3635=a72_0x5140ee,_0x10f597={'JqmxJ':function(_0x24efcc,_0x2326ba){return _0x24efcc(_0x2326ba);},'MNSww':_0x1a3635(0x1bf)};return _0x10f597['JqmxJ'](require,_0x10f597[_0x1a3635(0x1df)])['version'];}static[a72_0x5140ee(0x1eb)](){const _0x1e9d3f=a72_0x5140ee,_0x348f22={};_0x348f22['WUQze']=_0x1e9d3f(0x1f5);const _0x3df36d=_0x348f22;return _0x3df36d[_0x1e9d3f(0x19a)];}static async['setupCliPath'](_0x3536c2){const _0x17094d=a72_0x5140ee,_0x4f2824={'pdeIY':_0x17094d(0x257),'sSnMj':function(_0x50329b,_0x24fe5){return _0x50329b(_0x24fe5);},'ZJeCO':function(_0x7a4771,_0x1cc24e){return _0x7a4771(_0x1cc24e);},'iaOSV':_0x17094d(0x1cc)};logger['debug'](_0x4f2824['pdeIY']);const _0x4aa825=process[_0x17094d(0x238)][_0x17094d(0x25f)];if(!_0x4f2824[_0x17094d(0x258)](isNullOrEmpty,_0x4aa825))return logger['debug'](_0x17094d(0x192)+_0x4aa825),_0x4aa825;try{const _0x31d3ba=this[_0x17094d(0x1e0)]();if(_0x4f2824[_0x17094d(0x1fc)](isNullOrEmpty,_0x31d3ba))throw new Error(_0x4f2824[_0x17094d(0x1fb)]);const _0x314a35=this['getExistingCliPath'](_0x31d3ba),_0x360fbc=await this[_0x17094d(0x1c9)](_0x314a35,_0x31d3ba,_0x3536c2);return logger['debug'](_0x17094d(0x25e)+_0x360fbc),_0x360fbc;}catch(_0x5191cc){logger[_0x17094d(0x22c)]('Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20'+util[_0x17094d(0x1f9)](_0x5191cc));}return null;}static async[a72_0x5140ee(0x1c9)](_0x493960,_0x1daa93,_0x4dd82f){const _0x294b57=a72_0x5140ee,_0x142372={'NMcpm':function(_0x16810c){return _0x16810c();},'BIDIW':function(_0x621d15,_0x30312a){return _0x621d15(_0x30312a);},'IwZnv':function(_0x4e330d,_0x123755,_0x48714d){return _0x4e330d(_0x123755,_0x48714d);},'WNxCW':'data','JGvIs':_0x294b57(0x198),'xkpJK':function(_0x1f4b39,_0x9a2a5d){return _0x1f4b39(_0x9a2a5d);}};PerformanceTester[_0x294b57(0x21f)](PerformanceEvents[_0x294b57(0x221)]),logger[_0x294b57(0x1b4)](_0x294b57(0x233)+_0x493960);const _0x572f8f=_0x142372[_0x294b57(0x259)](getHostInfo),_0x30259f={'sdk_version':CLIUtils[_0x294b57(0x234)](),'os':_0x572f8f[_0x294b57(0x268)],'os_arch':_0x572f8f['arch'],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x142372[_0x294b57(0x20a)](isNullOrEmpty,_0x493960)&&(_0x30259f[_0x294b57(0x222)]=await this['runShellCommand'](_0x493960+_0x294b57(0x223)));const _0x5ae861=await this[_0x294b57(0x264)](_0x30259f,_0x4dd82f);process['env'][_0x294b57(0x1aa)]&&(logger[_0x294b57(0x1b4)]('Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20'+process[_0x294b57(0x238)][_0x294b57(0x1aa)]),_0x5ae861['data'][_0x294b57(0x198)]=process['env']['BROWSERSTACK_BINARY_URL']);if(_0x142372['IwZnv'](nestedKeyValue,_0x5ae861,[_0x142372[_0x294b57(0x211)],_0x142372[_0x294b57(0x200)]])){logger['debug'](_0x294b57(0x266)+_0x30259f[_0x294b57(0x222)]);if(!_0x142372['xkpJK'](isNullOrEmpty,_0x493960)&&this['isBinaryBusy'](_0x493960))return logger['warn'](_0x294b57(0x1ee)+_0x493960),PerformanceTester['end'](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x493960;const _0x5a4b13=await this[_0x294b57(0x1c3)](_0x142372[_0x294b57(0x260)](nestedKeyValue,_0x5ae861,[_0x142372[_0x294b57(0x211)],_0x142372[_0x294b57(0x200)]]),_0x1daa93);return PerformanceTester['end'](PerformanceEvents[_0x294b57(0x221)]),_0x5a4b13;}return PerformanceTester[_0x294b57(0x1d4)](PerformanceEvents[_0x294b57(0x221)]),_0x493960;}static['getCliDir'](){const _0x558ce8=a72_0x5140ee,_0x5982ee={'anrmG':function(_0x4cffa7,_0xf143b){return _0x4cffa7(_0xf143b);},'LuyXC':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','Odism':_0x558ce8(0x24f),'wzFVH':function(_0x3ba9f9,_0x316c8e){return _0x3ba9f9(_0x316c8e);}},_0x309c62=this[_0x558ce8(0x1c2)]();try{if(_0x5982ee[_0x558ce8(0x1b7)](isNullOrEmpty,_0x309c62))throw new Error(_0x5982ee[_0x558ce8(0x1d2)]);const _0x4eed3b=path[_0x558ce8(0x1ae)](_0x309c62,_0x5982ee[_0x558ce8(0x1db)]);return!fs['existsSync'](_0x4eed3b)&&_0x5982ee['wzFVH'](createDir,_0x4eed3b),_0x4eed3b;}catch(_0x42f74){logger[_0x558ce8(0x22c)](_0x558ce8(0x255)+util[_0x558ce8(0x1f9)](_0x42f74));}}static['getWritableDir'](){const _0x203076=a72_0x5140ee,_0x3cbbdc={'tyTFU':'.browserstack','cbOKQ':function(_0xd21419,_0x1308c4){return _0xd21419(_0x1308c4);},'jvmds':function(_0x47185e,_0x25e52e){return _0x47185e(_0x25e52e);},'BgwmE':function(_0x4c2e2d,_0x2da342){return _0x4c2e2d(_0x2da342);},'wVnwz':function(_0xcbca1c,_0x2f6881){return _0xcbca1c(_0x2f6881);},'GQTxZ':function(_0x3867ee,_0x25338b){return _0x3867ee(_0x25338b);}},_0x38ccd7=[process[_0x203076(0x238)][_0x203076(0x1b6)],path['join'](os[_0x203076(0x199)](),_0x3cbbdc[_0x203076(0x1cf)]),path[_0x203076(0x1ae)](os[_0x203076(0x202)](),_0x3cbbdc[_0x203076(0x1cf)])];for(const _0x37f441 of _0x38ccd7){if(_0x3cbbdc[_0x203076(0x25d)](isNullOrEmpty,_0x37f441))continue;try{if(fs[_0x203076(0x24b)](_0x37f441)){logger['debug'](_0x203076(0x25a)+_0x37f441+_0x203076(0x25b));if(!_0x3cbbdc[_0x203076(0x1c5)](isModifiable,_0x37f441)){logger[_0x203076(0x22c)](_0x203076(0x1be)+_0x37f441);const _0xcc1301=_0x3cbbdc[_0x203076(0x1e9)](setReadWriteExecuteAccess,_0x37f441);if(!_0x3cbbdc[_0x203076(0x203)](isTrue,_0xcc1301)){logger[_0x203076(0x22d)](_0x203076(0x1e4)+_0x37f441);continue;}}}else{logger[_0x203076(0x22c)](_0x203076(0x217)+_0x37f441),_0x3cbbdc[_0x203076(0x22b)](createDir,_0x37f441),logger[_0x203076(0x22c)](_0x203076(0x1be)+_0x37f441);const _0x533a46=_0x3cbbdc[_0x203076(0x25d)](setReadWriteExecuteAccess,_0x37f441);!_0x3cbbdc[_0x203076(0x1c5)](isTrue,_0x533a46)&&logger[_0x203076(0x22d)](_0x203076(0x1e4)+_0x37f441);}return _0x37f441;}catch(_0x1e5faf){logger[_0x203076(0x1a5)](_0x203076(0x210)+util['format'](_0x1e5faf));}}return null;}static[a72_0x5140ee(0x1bc)](_0x300250){const _0x155757=a72_0x5140ee,_0x3a2d39={};_0x3a2d39[_0x155757(0x220)]=function(_0x4f89af,_0x574887){return _0x4f89af>_0x574887;},_0x3a2d39[_0x155757(0x26a)]=function(_0x453241,_0x315727){return _0x453241>_0x315727;};const _0x2ad603=_0x3a2d39;try{if(!fs[_0x155757(0x24b)](_0x300250)||!fs['statSync'](_0x300250)[_0x155757(0x228)]())return'';const _0x7d1be4=fs[_0x155757(0x204)](_0x300250)[_0x155757(0x1cd)](_0x55f49f=>path[_0x155757(0x1ae)](_0x300250,_0x55f49f))['filter'](_0x106ea0=>fs[_0x155757(0x197)](_0x106ea0)[_0x155757(0x1a1)]()&&path[_0x155757(0x194)](_0x106ea0)['startsWith'](_0x155757(0x23d)));if(_0x2ad603[_0x155757(0x26a)](_0x7d1be4['length'],0x0)){const _0x474bee=_0x7d1be4[_0x155757(0x1cd)](_0x3ffc27=>({'filePath':_0x3ffc27,'mtime':fs['statSync'](_0x3ffc27)['mtime']}))[_0x155757(0x21c)]((_0x534a70,_0x820b1f)=>{const _0xf74ee8=_0x155757;if(!_0x534a70||!_0x534a70[_0xf74ee8(0x23c)])return _0x820b1f;if(_0x2ad603[_0xf74ee8(0x220)](_0x820b1f[_0xf74ee8(0x23c)],_0x534a70[_0xf74ee8(0x23c)]))return _0x820b1f;return _0x534a70;},{});return _0x474bee?_0x474bee[_0x155757(0x1f7)]:'';}return'';}catch(_0x4fcb54){return logger[_0x155757(0x1a5)](_0x155757(0x1af)+util[_0x155757(0x1f9)](_0x4fcb54)),'';}}static [a72_0x5140ee(0x264)]=async(_0x1259ba,_0x2d9b93)=>{const _0x346658=a72_0x5140ee,_0x139e5f={'nVTqR':function(_0x127914,_0x57c5b5,_0x2a7056,_0x45a5e7,_0x58063a){return _0x127914(_0x57c5b5,_0x2a7056,_0x45a5e7,_0x58063a);},'yvWVh':_0x346658(0x226)},_0x3fa0ac={};_0x3fa0ac['qs']=_0x1259ba;const _0x329f33=await _0x139e5f[_0x346658(0x251)](nodeRequest,_0x139e5f[_0x346658(0x1f4)],UPDATED_CLI_ENDPOINT,_0x3fa0ac,_0x2d9b93);return logger[_0x346658(0x22c)](_0x346658(0x1da)+JSON[_0x346658(0x23a)](_0x329f33)),_0x329f33;};static[a72_0x5140ee(0x209)](_0x421e7f){const _0x16a6d6=a72_0x5140ee;try{const _0x23ddaf=fs['openSync'](_0x421e7f,'r+');return fs[_0x16a6d6(0x1ba)](_0x23ddaf),![];}catch(_0x21b986){if(BINARY_BUSY_ERROR_CODES[_0x16a6d6(0x1ea)](_0x21b986[_0x16a6d6(0x190)]))return logger['debug']('Binary\x20is\x20busy:\x20'+_0x421e7f),!![];return logger['debug'](_0x16a6d6(0x1a2)+_0x21b986['message']),![];}}static[a72_0x5140ee(0x1ff)](_0xa5fc91,_0x34bd2b=''){const _0x3090be=a72_0x5140ee,_0x23521={'XMkJG':_0x3090be(0x212),'sUBnA':function(_0x509a45,_0x4ab222){return _0x509a45(_0x4ab222);},'hFHgP':_0x3090be(0x265),'iGPsz':function(_0x46253d,_0x4f8750){return _0x46253d(_0x4f8750);},'dORIg':function(_0x5cd6c2,_0x750203){return _0x5cd6c2(_0x750203);},'lzYxB':function(_0x2691a0,_0xad1bc2,_0x553d0,_0x28a3d8){return _0x2691a0(_0xad1bc2,_0x553d0,_0x28a3d8);},'zzKWH':_0x3090be(0x1a5)};return new Promise((_0x528fe5,_0xb33700)=>{const _0x29f980=_0x3090be,_0x13ee74={};_0x13ee74['cwd']=_0x34bd2b,_0x13ee74['timeout']=0x1388;const _0x69d896=_0x23521['lzYxB'](exec,_0xa5fc91,_0x13ee74,(_0x4da483,_0x1eda95,_0x248997)=>{const _0x5e8b64=a72_0x4230;if(_0x4da483){if(_0xa5fc91[_0x5e8b64(0x1ea)](_0x23521['XMkJG'])&&(_0x1eda95[_0x5e8b64(0x20b)]()||_0x248997[_0x5e8b64(0x20b)]())){const _0x47a75a=_0x1eda95[_0x5e8b64(0x20b)]()||_0x248997['trim']();logger[_0x5e8b64(0x22c)]('CLI\x20version\x20found\x20despite\x20error:\x20\x22'+_0x47a75a+'\x22'),_0x23521[_0x5e8b64(0x1ad)](_0x528fe5,_0x47a75a);}else _0x23521[_0x5e8b64(0x1ad)](_0x528fe5,_0x248997[_0x5e8b64(0x20b)]()||_0x23521[_0x5e8b64(0x263)]);}else logger[_0x5e8b64(0x22c)](_0x5e8b64(0x21b)+_0x1eda95[_0x5e8b64(0x20b)]()+'\x22'),_0x23521[_0x5e8b64(0x247)](_0x528fe5,_0x1eda95[_0x5e8b64(0x20b)]());});_0x69d896['on'](_0x23521[_0x29f980(0x1c1)],()=>{const _0x239065=_0x29f980;_0x23521[_0x239065(0x207)](_0x528fe5,_0x23521['hFHgP']);});});}static ['downloadLatestBinary']=async(_0x4aab04,_0x24ecd1)=>{const _0x42aefb=a72_0x5140ee,_0x24ea27={'Rlzdg':function(_0x3f4b10,_0x52d171){return _0x3f4b10(_0x52d171);},'KAPfo':_0x42aefb(0x262),'uFUhh':_0x42aefb(0x1a6),'Vhxgm':function(_0x1bd176,_0x1ccf53){return _0x1bd176(_0x1ccf53);},'jcrcl':_0x42aefb(0x1a5)};PerformanceTester[_0x42aefb(0x21f)](PerformanceEvents[_0x42aefb(0x1ac)]),logger[_0x42aefb(0x22c)](_0x42aefb(0x213)+_0x4aab04);try{const _0x497861=url[_0x42aefb(0x19f)](_0x4aab04),_0x556df4=path[_0x42aefb(0x1ae)](_0x24ecd1,'downloaded_file_'+process[_0x42aefb(0x1e7)]+'.zip'),_0x506a69=fs['createWriteStream'](_0x556df4);return new Promise((_0x1dc229,_0x23b3ce)=>{const _0xa94272=_0x42aefb,_0x3c29bf={'eIqZW':_0x24ea27[_0xa94272(0x1b5)],'ohTuD':function(_0x556f62,_0x418093){return _0x24ea27['Rlzdg'](_0x556f62,_0x418093);},'cLXDv':_0x24ea27[_0xa94272(0x21d)],'zGaFk':function(_0x202f43,_0xfc0c29){const _0xdec7b9=_0xa94272;return _0x24ea27[_0xdec7b9(0x205)](_0x202f43,_0xfc0c29);},'CXxtV':function(_0x3c7018,_0x13c188){const _0x580c86=_0xa94272;return _0x24ea27[_0x580c86(0x1fa)](_0x3c7018,_0x13c188);},'hbfKY':_0x24ea27[_0xa94272(0x241)]};https[_0xa94272(0x245)](_0x497861,function(_0x808eb){const _0x1306ce=_0xa94272,_0x50e21e={'wQWWY':function(_0x2b9f44,_0x10174d){return _0x3c29bf['zGaFk'](_0x2b9f44,_0x10174d);}},_0x296451=null;_0x808eb['pipe'](_0x506a69),_0x808eb['on'](_0x3c29bf[_0x1306ce(0x269)],function(_0x2b003f){const _0x3e3ff9=_0x1306ce;logger[_0x3e3ff9(0x1a5)](util[_0x3e3ff9(0x1f9)](_0x3c29bf['eIqZW'],_0x2b003f)),PerformanceTester[_0x3e3ff9(0x1d4)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x3e3ff9(0x1f9)](_0x2b003f)),_0x3c29bf['ohTuD'](_0x23b3ce,_0x2b003f);}),_0x506a69['on'](_0x3c29bf[_0x1306ce(0x269)],function(_0x39d06b){const _0x40e430=_0x1306ce;logger[_0x40e430(0x1a5)](util[_0x40e430(0x1f9)](_0x3c29bf[_0x40e430(0x1c8)],_0x39d06b)),PerformanceTester[_0x40e430(0x1d4)](PerformanceEvents[_0x40e430(0x1ac)],![],util[_0x40e430(0x1f9)](_0x39d06b)),_0x3c29bf[_0x40e430(0x1e5)](_0x23b3ce,_0x39d06b);}),CLIUtils[_0x1306ce(0x1bd)](_0x506a69,_0x296451,_0x556df4,_0x24ecd1,_0x5c79e7=>{const _0x55d5fb=_0x1306ce;PerformanceTester['end'](PerformanceEvents[_0x55d5fb(0x1ac)]),_0x3c29bf[_0x55d5fb(0x1de)](_0x1dc229,_0x5c79e7);},_0x286db5=>{const _0x1d4049=_0x1306ce;PerformanceTester[_0x1d4049(0x1d4)](PerformanceEvents[_0x1d4049(0x1ac)],![],util[_0x1d4049(0x1f9)](_0x286db5)),_0x50e21e[_0x1d4049(0x196)](_0x23b3ce,_0x286db5);});})['on'](_0x24ea27[_0xa94272(0x241)],function(_0x1920b7){const _0x535a99=_0xa94272;logger[_0x535a99(0x1a5)](_0x535a99(0x224)+util[_0x535a99(0x1f9)](_0x1920b7)),PerformanceTester['end'](PerformanceEvents[_0x535a99(0x1ac)],![],util['format'](_0x1920b7)),_0x24ea27['Rlzdg'](_0x23b3ce,_0x1920b7);});});}catch(_0x2b6751){PerformanceTester['end'](PerformanceEvents[_0x42aefb(0x1ac)],![],util[_0x42aefb(0x1f9)](_0x2b6751)),logger['debug'](_0x42aefb(0x23e)+util[_0x42aefb(0x1f9)](_0x2b6751));}};static['downloadFileStream'](_0x29c8e7,_0x46f937,_0x2864f1,_0x2b8453,_0x1358ff,_0x106294){const _0x4356a9=a72_0x5140ee,_0xb8b60a={'VgZwt':function(_0x57aa31,_0x1902c3){return _0x57aa31(_0x1902c3);},'yJZab':_0x4356a9(0x20d),'gctMn':function(_0x3d2e39,_0x523d37){return _0x3d2e39!==_0x523d37;},'QwyzR':'error','CajbS':'EXDEV','wMFUi':_0x4356a9(0x1d9),'tihvS':'end','QUvhW':function(_0x4d99ba,_0x1a8ab7){return _0x4d99ba(_0x1a8ab7);},'ZYqWt':_0x4356a9(0x1bb)};_0x29c8e7['on'](_0xb8b60a[_0x4356a9(0x1ca)],function(){const _0x1948a9=_0x4356a9,_0x5375fd={'ZzbzH':function(_0x23bba7,_0x14fd66){const _0x41dbe5=a72_0x4230;return _0xb8b60a[_0x41dbe5(0x21a)](_0x23bba7,_0x14fd66);},'usuay':_0xb8b60a[_0x1948a9(0x1ca)],'BwqOc':function(_0x568688,_0x22a817){const _0x50b348=_0x1948a9;return _0xb8b60a[_0x50b348(0x231)](_0x568688,_0x22a817);},'tenqL':function(_0x2f5cc2,_0x1211b6){return _0xb8b60a['VgZwt'](_0x2f5cc2,_0x1211b6);},'tXuOL':_0xb8b60a[_0x1948a9(0x1a0)],'dHTUk':function(_0x442c87,_0x39066e){const _0xc214bf=_0x1948a9;return _0xb8b60a[_0xc214bf(0x231)](_0x442c87,_0x39066e);},'WbQSm':_0xb8b60a[_0x1948a9(0x24e)],'pZkJK':function(_0x48dcd8,_0x1eb92d){const _0x477507=_0x1948a9;return _0xb8b60a[_0x477507(0x21a)](_0x48dcd8,_0x1eb92d);},'cJBWy':_0xb8b60a[_0x1948a9(0x229)],'pMpFv':_0xb8b60a[_0x1948a9(0x193)],'kxFFr':function(_0x5275ab,_0x758270){const _0x39f882=_0x1948a9;return _0xb8b60a[_0x39f882(0x21a)](_0x5275ab,_0x758270);},'hzlxd':function(_0x4fbac3,_0x5cf710){const _0x489cee=_0x1948a9;return _0xb8b60a[_0x489cee(0x1f8)](_0x4fbac3,_0x5cf710);},'SZoPR':_0xb8b60a['ZYqWt']},_0x3ce0a4={};_0x3ce0a4['lazyEntries']=!![],yauzl['open'](_0x2864f1,_0x3ce0a4,function(_0x2ef6e5,_0x2aaa06){const _0x2df780=_0x1948a9,_0x37c1a2={'IGsBM':function(_0x375aab,_0x3766cc){const _0xd7c81f=a72_0x4230;return _0x5375fd[_0xd7c81f(0x1d7)](_0x375aab,_0x3766cc);},'uIEbr':_0x5375fd[_0x2df780(0x1b8)],'tAkvr':function(_0x39ec47,_0x4b7cdd){const _0x4910c7=_0x2df780;return _0x5375fd[_0x4910c7(0x1ef)](_0x39ec47,_0x4b7cdd);}};if(_0x2ef6e5){_0x5375fd[_0x2df780(0x215)](_0x106294,_0x2ef6e5);return;}_0x2aaa06[_0x2df780(0x1cb)](),_0x2aaa06['on'](_0x5375fd[_0x2df780(0x256)],_0x174876=>{const _0x465f82=_0x2df780,_0x1ecd72={'nvtwp':function(_0x5588e3,_0x4fa685){const _0x162c2b=a72_0x4230;return _0x5375fd[_0x162c2b(0x1d7)](_0x5588e3,_0x4fa685);},'SCQzO':function(_0x36bb36,_0x53adac){return _0x5375fd['ZzbzH'](_0x36bb36,_0x53adac);},'CBQBG':_0x5375fd['usuay']};if(/\/$/[_0x465f82(0x236)](_0x174876[_0x465f82(0x1a3)])){_0x2aaa06[_0x465f82(0x1cb)]();return;}!_0x46f937&&(_0x46f937=_0x174876[_0x465f82(0x1a3)]);if(_0x5375fd[_0x465f82(0x25c)](_0x174876[_0x465f82(0x1a3)],_0x46f937))_0x2aaa06[_0x465f82(0x1cb)]();else{const _0xa0dc07=_0x174876[_0x465f82(0x1a3)],_0x178101=path[_0x465f82(0x1ae)](_0x2b8453,_0xa0dc07+_0x465f82(0x191)+process[_0x465f82(0x1e7)]);let _0x2bf70b;try{_0x2bf70b=fs['createWriteStream'](_0x178101);}catch(_0x106b9a){if(BINARY_BUSY_ERROR_CODES[_0x465f82(0x1ea)](_0x106b9a[_0x465f82(0x190)])){const _0x42c0e6=path[_0x465f82(0x1ae)](_0x2b8453,_0xa0dc07);if(fs['existsSync'](_0x42c0e6)){logger[_0x465f82(0x22d)](_0x465f82(0x24a)+_0xa0dc07),fs[_0x465f82(0x1ec)](_0x2864f1,_0x259616=>{const _0x4f4179=_0x465f82;_0x259616&&logger[_0x4f4179(0x22d)](_0x4f4179(0x237)+_0x2864f1);}),_0x5375fd[_0x465f82(0x1d3)](_0x1358ff,_0x42c0e6);return;}logger[_0x465f82(0x22d)]('Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0xa0dc07);}_0x5375fd[_0x465f82(0x1d7)](_0x106294,_0x106b9a);return;}_0x2bf70b['on'](_0x5375fd[_0x465f82(0x242)],_0x539d91=>{const _0x4e8473=_0x465f82;if(BINARY_BUSY_ERROR_CODES[_0x4e8473(0x1ea)](_0x539d91[_0x4e8473(0x190)])){const _0x474261=path[_0x4e8473(0x1ae)](_0x2b8453,_0xa0dc07);_0x2bf70b['close'](),fs[_0x4e8473(0x24b)](_0x474261)?(logger[_0x4e8473(0x22d)](_0x4e8473(0x219)+_0x539d91['message']),_0x2aaa06[_0x4e8473(0x20d)](),fs[_0x4e8473(0x1ec)](_0x2864f1,_0x8cfb21=>{const _0xc9c406=_0x4e8473;_0x8cfb21&&logger[_0xc9c406(0x22d)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x2864f1);}),_0x1ecd72[_0x4e8473(0x1e1)](_0x1358ff,_0x474261)):(logger['warn']('Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x539d91['message']),fs[_0x4e8473(0x1ec)](_0x178101,()=>{}),_0x1ecd72[_0x4e8473(0x261)](_0x106294,_0x539d91));}else fs[_0x4e8473(0x1ec)](_0x178101,()=>{}),_0x1ecd72[_0x4e8473(0x261)](_0x106294,_0x539d91);}),_0x2aaa06[_0x465f82(0x1d5)](_0x174876,function(_0x2e5155,_0xf5c6aa){const _0xa01e84=_0x465f82;if(_0x2e5155){fs['unlink'](_0x178101,()=>{}),_0x37c1a2[_0xa01e84(0x19b)](_0x106294,_0x2e5155);return;}_0xf5c6aa['on'](_0x37c1a2[_0xa01e84(0x20e)],function(){const _0x1a40e0=_0xa01e84;_0x2bf70b['end'](),_0x2bf70b['on'](_0x1ecd72[_0x1a40e0(0x1b0)],function(){const _0x343f96=_0x1a40e0;_0x2aaa06[_0x343f96(0x1cb)]();});}),_0xf5c6aa['pipe'](_0x2bf70b);});}}),_0x2aaa06['on'](_0x5375fd[_0x2df780(0x242)],_0x41b65e=>{const _0xbde39c=_0x2df780;_0x37c1a2[_0xbde39c(0x1a7)](_0x106294,_0x41b65e);}),_0x2aaa06[_0x2df780(0x243)](_0x5375fd['pMpFv'],()=>{const _0x491367=_0x2df780,_0x4f2f05={'HMZdb':function(_0x3e4ba9,_0x6bdb47){return _0x5375fd['dHTUk'](_0x3e4ba9,_0x6bdb47);},'uBRhQ':_0x5375fd['WbQSm'],'EdTNE':function(_0x1875ab,_0x2f5d7a){return _0x5375fd['pZkJK'](_0x1875ab,_0x2f5d7a);}};fs[_0x491367(0x1ec)](_0x2864f1,_0x3f2834=>{const _0x2463b1=_0x491367;_0x3f2834&&logger[_0x2463b1(0x22d)](_0x2463b1(0x237)+_0x2864f1);});const _0x5ab749=path['join'](_0x2b8453,_0x46f937+_0x491367(0x191)+process[_0x491367(0x1e7)]),_0x265d99=path[_0x491367(0x1ae)](_0x2b8453,_0x46f937);fs[_0x491367(0x214)](_0x5ab749,_0x5375fd[_0x491367(0x23f)],function(_0x2b8acb){const _0x523336=_0x491367,_0xd549cd={'ZSSsW':function(_0x1f390b,_0x286179){const _0x48d9b2=a72_0x4230;return _0x4f2f05[_0x48d9b2(0x20f)](_0x1f390b,_0x286179);},'SNhOJ':_0x4f2f05['uBRhQ'],'EjxQm':function(_0x2d31d4,_0x275dab){const _0x50480d=a72_0x4230;return _0x4f2f05[_0x50480d(0x1c0)](_0x2d31d4,_0x275dab);}};if(_0x2b8acb){_0x2aaa06[_0x523336(0x20d)](),fs['unlink'](_0x5ab749,()=>{}),_0x4f2f05[_0x523336(0x1c0)](_0x106294,_0x2b8acb);return;}fs['rename'](_0x5ab749,_0x265d99,function(_0x211c79){const _0x55048c=_0x523336;if(_0x211c79){if(_0xd549cd['ZSSsW'](_0x211c79['code'],_0xd549cd[_0x55048c(0x1fd)])){_0x2aaa06['close'](),fs[_0x55048c(0x1ec)](_0x5ab749,()=>{}),_0xd549cd[_0x55048c(0x218)](_0x106294,_0x211c79);return;}logger[_0x55048c(0x22d)](_0x55048c(0x1c6)+_0x211c79['message']);try{fs['copyFileSync'](_0x5ab749,_0x265d99);}catch(_0x210a82){_0x2aaa06['close'](),fs[_0x55048c(0x1ec)](_0x5ab749,()=>{}),_0xd549cd['EjxQm'](_0x106294,_0x210a82);return;}fs[_0x55048c(0x1ec)](_0x5ab749,_0x427415=>{const _0x543994=_0x55048c;_0x427415&&logger[_0x543994(0x22d)]('Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20'+_0x427415[_0x543994(0x1d0)]);});}_0x2aaa06[_0x55048c(0x20d)](),_0xd549cd['EjxQm'](_0x1358ff,_0x265d99);});});});});});}static[a72_0x5140ee(0x216)](){const _0x231f94=a72_0x5140ee;if(process[_0x231f94(0x238)][_0x231f94(0x21e)])return JSON[_0x231f94(0x19f)](process[_0x231f94(0x238)][_0x231f94(0x21e)]);return this['testFrameworkDetail'];}static['getAutomationFrameworkDetail'](){const _0x4bc65a=a72_0x5140ee;if(process[_0x4bc65a(0x238)][_0x4bc65a(0x1a8)])return JSON[_0x4bc65a(0x19f)](process[_0x4bc65a(0x238)][_0x4bc65a(0x1a8)]);return this[_0x4bc65a(0x1ed)];}static[a72_0x5140ee(0x201)](_0x43f45c,_0x3372c6){const _0x357ed4=a72_0x5140ee,_0x4a8b7b={'gvYnw':_0x357ed4(0x250),'wOpzL':function(_0x10dc5d,_0x5d7f80){return _0x10dc5d(_0x5d7f80);},'SEcuX':function(_0x183c62,_0x167641){return _0x183c62||_0x167641;},'fPaZj':function(_0x501cc0,_0xc62a68){return _0x501cc0(_0xc62a68);}},_0x4a2c6e=_0x4a8b7b[_0x357ed4(0x208)][_0x357ed4(0x1fe)]('|');let _0x17b374=0x0;while(!![]){switch(_0x4a2c6e[_0x17b374++]){case'0':process[_0x357ed4(0x238)][_0x357ed4(0x1a8)]=JSON[_0x357ed4(0x23a)](this[_0x357ed4(0x1ed)]);continue;case'1':process[_0x357ed4(0x238)][_0x357ed4(0x21e)]=JSON[_0x357ed4(0x23a)](this[_0x357ed4(0x18f)]);continue;case'2':this[_0x357ed4(0x18f)]={'name':_0x43f45c,'version':{[_0x43f45c]:_0x4a8b7b[_0x357ed4(0x252)](getFrameworkVersion,_0x43f45c)}};continue;case'3':_0x4a8b7b[_0x357ed4(0x1ce)](!_0x43f45c,!_0x3372c6)&&logger[_0x357ed4(0x22c)](_0x357ed4(0x1dc)+_0x43f45c+_0x357ed4(0x249)+_0x3372c6);continue;case'4':this['automationFrameworkDetail']={'name':_0x3372c6,'version':_0x4a8b7b[_0x357ed4(0x1b2)](getFrameworkVersion,_0x3372c6)};continue;}break;}}static[a72_0x5140ee(0x1c4)](_0x92deb8,_0x23a504){return _0x92deb8+':'+_0x23a504;}static['getCurrentInstanceName'](){const _0x503864=a72_0x5140ee;return process[_0x503864(0x1e7)]+':'+threadId;}static[a72_0x5140ee(0x230)](_0x4178cf){const _0x2ebb2d=a72_0x5140ee;if(_0x4178cf[_0x2ebb2d(0x24c)]&&_0x4178cf[_0x2ebb2d(0x24c)][_0x2ebb2d(0x1f0)])return!![];return![];}static[a72_0x5140ee(0x225)](_0x26458c){const _0x229f87=a72_0x5140ee;if(_0x26458c[_0x229f87(0x24c)]&&_0x26458c['testContextOptions'][_0x229f87(0x232)])return!![];return![];}static['matchHookRegex'](_0x3af465){const _0x1d8bd0=a72_0x5140ee,_0x549364=new RegExp(TestFrameworkConstants[_0x1d8bd0(0x254)]);return _0x549364[_0x1d8bd0(0x236)](_0x3af465);}static[a72_0x5140ee(0x19c)](_0x15bf1c,_0x3b6c3c){const _0x860cf4=a72_0x5140ee,_0x2b1f82={};_0x2b1f82[_0x860cf4(0x18e)]=function(_0x114d0a,_0x39093e){return _0x114d0a!==_0x39093e;},_0x2b1f82[_0x860cf4(0x267)]=function(_0x283b28,_0x5bad21){return _0x283b28===_0x5bad21;},_0x2b1f82[_0x860cf4(0x1d6)]=_0x860cf4(0x19d);const _0x1e2326=_0x2b1f82;for(const [_0x1b9d95,_0x7d7b9d]of Object[_0x860cf4(0x235)](_0x3b6c3c)){if(_0x1e2326[_0x860cf4(0x18e)](_0x7d7b9d,null)&&_0x1e2326[_0x860cf4(0x267)](typeof _0x7d7b9d,_0x1e2326['MlLlT'])&&!Array['isArray'](_0x7d7b9d))_0x15bf1c[_0x1b9d95]=this[_0x860cf4(0x19c)](_0x15bf1c[_0x1b9d95]||{},_0x7d7b9d);else Array['isArray'](_0x7d7b9d)?_0x15bf1c[_0x1b9d95]=(_0x15bf1c[_0x1b9d95]||[])[_0x860cf4(0x1f2)](_0x7d7b9d):_0x15bf1c[_0x1b9d95]=_0x7d7b9d;}return _0x15bf1c;}}module['exports']=CLIUtils;
@@ -1 +1 @@
1
- 'use strict';const a73_0x1f961f=a73_0x5765;(function(_0x372e5c,_0xe4fd0c){const _0xbd54a9=a73_0x5765,_0x4874a6=_0x372e5c();while(!![]){try{const _0x480c72=parseInt(_0xbd54a9(0x200))/0x1+-parseInt(_0xbd54a9(0x245))/0x2*(parseInt(_0xbd54a9(0x242))/0x3)+-parseInt(_0xbd54a9(0x1f4))/0x4*(parseInt(_0xbd54a9(0x1f9))/0x5)+parseInt(_0xbd54a9(0x243))/0x6*(-parseInt(_0xbd54a9(0x21c))/0x7)+-parseInt(_0xbd54a9(0x218))/0x8*(parseInt(_0xbd54a9(0x238))/0x9)+parseInt(_0xbd54a9(0x241))/0xa*(-parseInt(_0xbd54a9(0x1f8))/0xb)+parseInt(_0xbd54a9(0x203))/0xc;if(_0x480c72===_0xe4fd0c)break;else _0x4874a6['push'](_0x4874a6['shift']());}catch(_0x5d5158){_0x4874a6['push'](_0x4874a6['shift']());}}}(a73_0x5048,0x90fec));function a73_0x5048(){const _0x4500a4=['./modules/testhubModule','__workerDetails','209OeJKhQ','505790AexfgZ','addMultipleEntries','QUnVO','[CustomTagManager]\x20setCustomTags:\x20Updated\x20existing\x20tag\x20key=',',\x20values=','debug','resolveInstance','940384VAyAFE','buildHashedId',',\x20finalTags=','24556956imvqzI','./state/testFrameworkState','./framework/constants/testFrameworkConstants','isRunning','CustomTagManager','toLowerCase','clearTags','MODULE_NAME','PrPyh','includes','testhubConfig','\x20with\x20values=','getTestDetails',',\x20key=','testLevelTags','getTestUUID','./state/hookState','getState','DDYtL','getInstance','getBuildLevelTags','24IHrcgX','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','values','LYeYq','109067CkcCMk','getTestIdentifierFromTestInfo','Custom\x20tag\x20value\x20cannot\x20be\x20empty','setCustomTags','../../helpers/helper','currentTest','name','getTrackedInstance','toObject','KslLP','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','trim','exports','tjtxX','VyTqD','./cliUtils',':jest-','./framework/automationFramework','stringify','[CustomTagManager]\x20setCustomTags:\x20Created\x20new\x20tag\x20key=','FjzzS','KEY_TEST_ID','getTestLevelTags','../../helpers/classLogger','Custom\x20tag\x20value\x20must\x20be\x20a\x20string','field_type','KEY_CUSTOM_TAGS','wXcYw','2894238VPhVuJ','Custom\x20tag\x20key\x20cannot\x20be\x20empty','getTestFrameworkDetail','DDLym','uhcay','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','FaAYi','GXVwL','AlMbs','55610OVGNTb','15783KqvCIY','48AjcfTJ','\x20with\x20new\x20values=','340iPYOsK','./modules/playwrightDriverModule','setTestDetails','TEST','parseCommaSeparatedValues','gxYFR','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','buildLevelTags','modules','12IxZEHc','getTestFramework'];a73_0x5048=function(){return _0x4500a4;};return a73_0x5048();}function a73_0x5765(_0x1a147c,_0x52e09a){const _0x50481a=a73_0x5048();return a73_0x5765=function(_0x576566,_0x42a99c){_0x576566=_0x576566-0x1ef;let _0x21ea3f=_0x50481a[_0x576566];return _0x21ea3f;},a73_0x5765(_0x1a147c,_0x52e09a);}const BrowserstackCLI=require('./browserstackCLI'),helper=require(a73_0x1f961f(0x220)),AutomationFramework=require(a73_0x1f961f(0x22d)),TestFrameworkConstants=require(a73_0x1f961f(0x205)),PlaywrightDriverModule=require(a73_0x1f961f(0x246)),TestInfo=require('./TestInfo'),TestHubModule=require(a73_0x1f961f(0x1f6)),{createClassLogger}=require(a73_0x1f961f(0x233)),logger=createClassLogger(a73_0x1f961f(0x207));class CustomTagManager{static [a73_0x1f961f(0x1f2)]={};static [a73_0x1f961f(0x211)]={};static[a73_0x1f961f(0x21f)](_0x1530fc,_0x414191,_0x30107b=![]){const _0x1f287a=a73_0x1f961f,_0x25c024={'FaAYi':function(_0x553ca6,_0x1fefad){return _0x553ca6!==_0x1fefad;},'DDYtL':'string','FjzzS':'Custom\x20tag\x20key\x20must\x20be\x20a\x20string','KslLP':function(_0x565156,_0x3193e0){return _0x565156!==_0x3193e0;},'gBCJJ':_0x1f287a(0x234),'PrPyh':function(_0x444a0f,_0x430f2d){return _0x444a0f===_0x430f2d;},'AlMbs':_0x1f287a(0x239),'wXcYw':function(_0x441067,_0x4ead7b){return _0x441067===_0x4ead7b;},'LYeYq':_0x1f287a(0x21e),'tjtxX':'multi_dropdown','DDLym':_0x1f287a(0x22c),'uhcay':function(_0x107a45,_0x1705b1){return _0x107a45(_0x1705b1);},'GXVwL':_0x1f287a(0x22b),'OxfTq':'jest','QUnVO':_0x1f287a(0x226),'VyTqD':_0x1f287a(0x23d),'WRhNW':_0x1f287a(0x204),'gxYFR':_0x1f287a(0x213),'tTeTs':_0x1f287a(0x1f0)};if(_0x25c024[_0x1f287a(0x23e)](typeof _0x1530fc,_0x25c024['DDYtL']))throw new Error(_0x25c024[_0x1f287a(0x230)]);if(_0x25c024[_0x1f287a(0x225)](typeof _0x414191,_0x25c024[_0x1f287a(0x215)]))throw new Error(_0x25c024['gBCJJ']);if(_0x25c024[_0x1f287a(0x20b)](_0x1530fc[_0x1f287a(0x227)](),''))throw new Error(_0x25c024[_0x1f287a(0x240)]);if(_0x25c024[_0x1f287a(0x237)](_0x414191[_0x1f287a(0x227)](),''))throw new Error(_0x25c024[_0x1f287a(0x21b)]);const _0x2d2aaa=helper[_0x1f287a(0x249)](_0x414191);if(_0x30107b){const _0x568bfc=BrowserstackCLI[_0x1f287a(0x216)]()[_0x1f287a(0x1f3)][TestHubModule[_0x1f287a(0x20a)]];if(_0x568bfc){const _0x33e589=_0x568bfc?.[_0x1f287a(0x20d)]?.[_0x1f287a(0x224)]()?.[_0x1f287a(0x201)];TestInfo[_0x1f287a(0x212)](_0x33e589);const _0x12df9a=TestInfo[_0x1f287a(0x20f)](_0x33e589),_0x5d5abe=_0x12df9a[TestFrameworkConstants[_0x1f287a(0x236)]]||{};if(!_0x5d5abe[_0x1530fc]){const _0x754f3d={};_0x754f3d[_0x1f287a(0x235)]=_0x25c024[_0x1f287a(0x229)],_0x754f3d[_0x1f287a(0x21a)]=[..._0x2d2aaa],_0x5d5abe[_0x1530fc]=_0x754f3d;}else _0x5d5abe[_0x1530fc][_0x1f287a(0x21a)]=[..._0x2d2aaa];_0x12df9a[TestFrameworkConstants[_0x1f287a(0x236)]]=_0x5d5abe,TestInfo[_0x1f287a(0x247)](_0x33e589,_0x12df9a),!this[_0x1f287a(0x1f2)][_0x33e589]&&(this[_0x1f287a(0x1f2)][_0x33e589]={}),this[_0x1f287a(0x1f2)][_0x33e589][_0x1530fc]=[..._0x2d2aaa];}}else{let _0x75db05;const _0x4e00f3=global['__jestCurrentTestIdentifier'];let _0x12fc83=![];if(_0x4e00f3&&_0x4e00f3[_0x1f287a(0x20c)](_0x25c024[_0x1f287a(0x23b)]))_0x12fc83=!![],_0x75db05=_0x4e00f3;else try{const _0x55bcbd=_0x25c024[_0x1f287a(0x23c)](require,_0x25c024[_0x1f287a(0x23f)]);if(BrowserstackCLI[_0x1f287a(0x216)]()[_0x1f287a(0x206)]()){const _0x4b1f84=_0x55bcbd[_0x1f287a(0x23a)]();if(_0x25c024[_0x1f287a(0x237)](_0x4b1f84?.[_0x1f287a(0x222)]?.[_0x1f287a(0x208)](),_0x25c024['OxfTq'])){const _0x75678e=AutomationFramework[_0x1f287a(0x223)]();_0x75db05=AutomationFramework[_0x1f287a(0x214)](_0x75678e,PlaywrightDriverModule[_0x1f287a(0x231)],''),_0x75db05&&_0x75db05[_0x1f287a(0x20c)](_0x25c024[_0x1f287a(0x23b)])&&(_0x12fc83=!![]);}}}catch(_0x47aa60){logger[_0x1f287a(0x1fe)](_0x1f287a(0x219)+_0x47aa60);}if(_0x12fc83){if(!_0x75db05)throw new Error(_0x25c024[_0x1f287a(0x1fb)]);const _0x548060=BrowserstackCLI[_0x1f287a(0x216)]()[_0x1f287a(0x1f5)]();if(!_0x548060)throw new Error(_0x25c024[_0x1f287a(0x22a)]);const _0x70d300=_0x25c024[_0x1f287a(0x23c)](require,_0x25c024['WRhNW']),_0x2a63e9=_0x25c024[_0x1f287a(0x23c)](require,_0x25c024[_0x1f287a(0x24a)]),_0x4b319a=_0x548060[_0x1f287a(0x1ff)](_0x70d300[_0x1f287a(0x248)],_0x2a63e9['POST']);if(!_0x4b319a)throw new Error(_0x25c024['tTeTs']);const _0x332701=_0x4b319a['getAllData']()['get'](_0x75db05)||{},_0x1d3fef=_0x332701[TestFrameworkConstants[_0x1f287a(0x236)]]||{};logger[_0x1f287a(0x1fe)](_0x1f287a(0x1f1)+_0x75db05+_0x1f287a(0x210)+_0x1530fc+_0x1f287a(0x1fd)+JSON[_0x1f287a(0x22e)](_0x2d2aaa)+',\x20existingTags='+JSON['stringify'](_0x1d3fef));if(!_0x1d3fef[_0x1530fc]){const _0x57d656={};_0x57d656['field_type']=_0x25c024['tjtxX'],_0x57d656[_0x1f287a(0x21a)]=[..._0x2d2aaa],_0x1d3fef[_0x1530fc]=_0x57d656,logger[_0x1f287a(0x1fe)](_0x1f287a(0x22f)+_0x1530fc+_0x1f287a(0x20e)+JSON[_0x1f287a(0x22e)](_0x2d2aaa));}else _0x1d3fef[_0x1530fc][_0x1f287a(0x21a)]=[..._0x2d2aaa],logger[_0x1f287a(0x1fe)](_0x1f287a(0x1fc)+_0x1530fc+_0x1f287a(0x244)+JSON[_0x1f287a(0x22e)](_0x2d2aaa));const _0x8cbaa={[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x1d3fef},_0x2708a4={};_0x2708a4[_0x75db05]=_0x8cbaa,_0x4b319a[_0x1f287a(0x1fa)](_0x2708a4),logger['debug'](_0x1f287a(0x1ef)+_0x75db05+_0x1f287a(0x202)+JSON[_0x1f287a(0x22e)](_0x1d3fef)),!this[_0x1f287a(0x211)][_0x75db05]&&(this['testLevelTags'][_0x75db05]={}),this[_0x1f287a(0x211)][_0x75db05][_0x1530fc]=[..._0x2d2aaa];}else{const _0x764903=global[_0x1f287a(0x1f7)]?.[_0x1f287a(0x221)]?.['testInfo'];if(!_0x764903){const _0x1ef4d1=AutomationFramework[_0x1f287a(0x223)]();_0x75db05=AutomationFramework[_0x1f287a(0x214)](_0x1ef4d1,PlaywrightDriverModule[_0x1f287a(0x231)],'');}else _0x75db05=TestInfo[_0x1f287a(0x21d)](_0x764903,_0x764903['retry']);const _0x3d2bb9=TestInfo['getTestDetails'](_0x75db05),_0x390774=_0x3d2bb9[TestFrameworkConstants[_0x1f287a(0x236)]]||{};if(!_0x390774[_0x1530fc]){const _0x49c8ef={};_0x49c8ef['field_type']=_0x25c024[_0x1f287a(0x229)],_0x49c8ef['values']=[..._0x2d2aaa],_0x390774[_0x1530fc]=_0x49c8ef;}else _0x390774[_0x1530fc][_0x1f287a(0x21a)]=[..._0x2d2aaa];_0x3d2bb9[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x390774,TestInfo[_0x1f287a(0x247)](_0x75db05,_0x3d2bb9),!this[_0x1f287a(0x211)][_0x75db05]&&(this['testLevelTags'][_0x75db05]={}),this[_0x1f287a(0x211)][_0x75db05][_0x1530fc]=[..._0x2d2aaa];}}}static[a73_0x1f961f(0x217)](){const _0x2a21af=a73_0x1f961f,_0x4f0b70={...this[_0x2a21af(0x1f2)]};return _0x4f0b70;}static[a73_0x1f961f(0x232)](){const _0x1ca50b={...this['testLevelTags']};return _0x1ca50b;}static[a73_0x1f961f(0x209)](){const _0x408c76=a73_0x1f961f;this['buildLevelTags']={},this[_0x408c76(0x211)]={};}}module[a73_0x1f961f(0x228)]=CustomTagManager;
1
+ 'use strict';const a73_0x55e894=a73_0x5902;function a73_0x2492(){const _0x1ade49=[',\x20existingTags=','hvYFl','KEY_CUSTOM_TAGS','xTcTA','jest','../../helpers/classLogger','isRunning','\x20with\x20new\x20values=','string','toObject','multi_dropdown','hxRwU','MODULE_NAME','./TestInfo','getTestIdentifierFromTestInfo','getTestLevelTags',':jest-','clearTags','CustomTagManager','getInstance','HftjJ','MbLxt','resolveInstance','KSdnB','[CustomTagManager]\x20setCustomTags:\x20Created\x20new\x20tag\x20key=','debug','getTestDetails','setCustomTags','parseCommaSeparatedValues','../../helpers/helper','toLowerCase','KEY_TEST_ID','addMultipleEntries','field_type','includes','EsZNv','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','buildLevelTags','Custom\x20tag\x20value\x20must\x20be\x20a\x20string','1680SFcrnm','hCvBK','9738rCnnAZ','392815VHbKDf',',\x20values=','./cliUtils',',\x20key=','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','./framework/constants/testFrameworkConstants','./browserstackCLI','eadML','1341625zHuMsJ','getTrackedInstance',',\x20finalTags=','3716uRJNXl','testInfo','name','./state/hookState','hLKlo','./modules/testhubModule','getTestFramework','stringify','./modules/playwrightDriverModule','setTestDetails','getTestFrameworkDetail','values','testLevelTags','GeRbK','trim','1528176HdJGQj','MIDBZ','TEST','POST','Custom\x20tag\x20key\x20must\x20be\x20a\x20string','buildHashedId','\x20with\x20values=','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','437014RlKcnb','getState','modules','3799863zTEBIo','exports','UDVdm','currentTest','285IXVQuO','OQpOs'];a73_0x2492=function(){return _0x1ade49;};return a73_0x2492();}(function(_0x1d96c0,_0x27c8f1){const _0x5cb2e4=a73_0x5902,_0x15178d=_0x1d96c0();while(!![]){try{const _0x3fc7c4=parseInt(_0x5cb2e4(0xe3))/0x1+parseInt(_0x5cb2e4(0x105))/0x2+-parseInt(_0x5cb2e4(0x10c))/0x3*(-parseInt(_0x5cb2e4(0xee))/0x4)+-parseInt(_0x5cb2e4(0xeb))/0x5+parseInt(_0x5cb2e4(0xe2))/0x6*(parseInt(_0x5cb2e4(0xe0))/0x7)+-parseInt(_0x5cb2e4(0xfd))/0x8+-parseInt(_0x5cb2e4(0x108))/0x9;if(_0x3fc7c4===_0x27c8f1)break;else _0x15178d['push'](_0x15178d['shift']());}catch(_0xab7cda){_0x15178d['push'](_0x15178d['shift']());}}}(a73_0x2492,0x32ab7));function a73_0x5902(_0x39fe8a,_0x1a5dee){const _0x249285=a73_0x2492();return a73_0x5902=function(_0x59024c,_0x274e50){_0x59024c=_0x59024c-0xcd;let _0x2949c6=_0x249285[_0x59024c];return _0x2949c6;},a73_0x5902(_0x39fe8a,_0x1a5dee);}const BrowserstackCLI=require(a73_0x55e894(0xe9)),helper=require(a73_0x55e894(0xd6)),AutomationFramework=require('./framework/automationFramework'),TestFrameworkConstants=require(a73_0x55e894(0xe8)),PlaywrightDriverModule=require(a73_0x55e894(0xf6)),TestInfo=require(a73_0x55e894(0x11b)),TestHubModule=require(a73_0x55e894(0xf3)),{createClassLogger}=require(a73_0x55e894(0x113)),logger=createClassLogger(a73_0x55e894(0x120));class CustomTagManager{static [a73_0x55e894(0xde)]={};static ['testLevelTags']={};static[a73_0x55e894(0xd4)](_0x1f554b,_0x5378d5,_0x408d45=![]){const _0x3a1a0e=a73_0x55e894,_0x40785e={'hLKlo':function(_0x1727f1,_0x3f4464){return _0x1727f1!==_0x3f4464;},'MbLxt':_0x3a1a0e(0x116),'OQpOs':_0x3a1a0e(0x101),'xTcTA':_0x3a1a0e(0xdf),'eadML':function(_0x5a0e69,_0x449769){return _0x5a0e69===_0x449769;},'aoQjA':'Custom\x20tag\x20key\x20cannot\x20be\x20empty','URSzD':'Custom\x20tag\x20value\x20cannot\x20be\x20empty','UDVdm':_0x3a1a0e(0x118),'HftjJ':_0x3a1a0e(0x11e),'EsZNv':function(_0x3404f7,_0x2b007a){return _0x3404f7(_0x2b007a);},'FUyEI':_0x3a1a0e(0xe5),'hvYFl':_0x3a1a0e(0x112),'GeRbK':'CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','uEzvY':'CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','ubVlP':function(_0x448b9c,_0x5655cd){return _0x448b9c(_0x5655cd);},'hxRwU':'./state/testFrameworkState','hCvBK':function(_0x498d95,_0x109c1b){return _0x498d95(_0x109c1b);},'MIDBZ':_0x3a1a0e(0xf1),'KSdnB':_0x3a1a0e(0xdd)};if(_0x40785e[_0x3a1a0e(0xf2)](typeof _0x1f554b,_0x40785e[_0x3a1a0e(0xce)]))throw new Error(_0x40785e[_0x3a1a0e(0x10d)]);if(_0x40785e[_0x3a1a0e(0xf2)](typeof _0x5378d5,_0x40785e[_0x3a1a0e(0xce)]))throw new Error(_0x40785e[_0x3a1a0e(0x111)]);if(_0x40785e[_0x3a1a0e(0xea)](_0x1f554b[_0x3a1a0e(0xfc)](),''))throw new Error(_0x40785e['aoQjA']);if(_0x40785e[_0x3a1a0e(0xea)](_0x5378d5[_0x3a1a0e(0xfc)](),''))throw new Error(_0x40785e['URSzD']);const _0x327b5c=helper[_0x3a1a0e(0xd5)](_0x5378d5);if(_0x408d45){const _0x5cd176=BrowserstackCLI[_0x3a1a0e(0x121)]()[_0x3a1a0e(0x107)][TestHubModule[_0x3a1a0e(0x11a)]];if(_0x5cd176){const _0x440761=_0x5cd176?.['testhubConfig']?.[_0x3a1a0e(0x117)]()?.[_0x3a1a0e(0x102)];TestInfo['getTestUUID'](_0x440761);const _0x411422=TestInfo[_0x3a1a0e(0xd3)](_0x440761),_0x1ca362=_0x411422[TestFrameworkConstants[_0x3a1a0e(0x110)]]||{};if(!_0x1ca362[_0x1f554b]){const _0x21fc70={};_0x21fc70['field_type']=_0x40785e[_0x3a1a0e(0x10a)],_0x21fc70[_0x3a1a0e(0xf9)]=[..._0x327b5c],_0x1ca362[_0x1f554b]=_0x21fc70;}else _0x1ca362[_0x1f554b][_0x3a1a0e(0xf9)]=[..._0x327b5c];_0x411422[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x1ca362,TestInfo[_0x3a1a0e(0xf7)](_0x440761,_0x411422),!this['buildLevelTags'][_0x440761]&&(this[_0x3a1a0e(0xde)][_0x440761]={}),this['buildLevelTags'][_0x440761][_0x1f554b]=[..._0x327b5c];}}else{let _0x3a7e33;const _0xcacd30=global['__jestCurrentTestIdentifier'];let _0x479e09=![];if(_0xcacd30&&_0xcacd30[_0x3a1a0e(0xdb)](_0x40785e[_0x3a1a0e(0xcd)]))_0x479e09=!![],_0x3a7e33=_0xcacd30;else try{const _0x44b7ba=_0x40785e[_0x3a1a0e(0xdc)](require,_0x40785e['FUyEI']);if(BrowserstackCLI[_0x3a1a0e(0x121)]()[_0x3a1a0e(0x114)]()){const _0x20d114=_0x44b7ba[_0x3a1a0e(0xf8)]();if(_0x40785e[_0x3a1a0e(0xea)](_0x20d114?.[_0x3a1a0e(0xf0)]?.[_0x3a1a0e(0xd7)](),_0x40785e[_0x3a1a0e(0x10f)])){const _0x56ef76=AutomationFramework[_0x3a1a0e(0xec)]();_0x3a7e33=AutomationFramework[_0x3a1a0e(0x106)](_0x56ef76,PlaywrightDriverModule['KEY_TEST_ID'],''),_0x3a7e33&&_0x3a7e33['includes'](_0x40785e[_0x3a1a0e(0xcd)])&&(_0x479e09=!![]);}}}catch(_0x399bdf){logger[_0x3a1a0e(0xd2)]('CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20'+_0x399bdf);}if(_0x479e09){if(!_0x3a7e33)throw new Error(_0x40785e[_0x3a1a0e(0xfb)]);const _0x262816=BrowserstackCLI['getInstance']()[_0x3a1a0e(0xf4)]();if(!_0x262816)throw new Error(_0x40785e['uEzvY']);const _0x1e2c36=_0x40785e['ubVlP'](require,_0x40785e[_0x3a1a0e(0x119)]),_0x39b4cc=_0x40785e[_0x3a1a0e(0xe1)](require,_0x40785e[_0x3a1a0e(0xfe)]),_0x42ee90=_0x262816[_0x3a1a0e(0xcf)](_0x1e2c36[_0x3a1a0e(0xff)],_0x39b4cc[_0x3a1a0e(0x100)]);if(!_0x42ee90)throw new Error(_0x40785e[_0x3a1a0e(0xd0)]);const _0x2265e5=_0x42ee90['getAllData']()['get'](_0x3a7e33)||{},_0x54dc92=_0x2265e5[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};logger['debug'](_0x3a1a0e(0xe7)+_0x3a7e33+_0x3a1a0e(0xe6)+_0x1f554b+_0x3a1a0e(0xe4)+JSON['stringify'](_0x327b5c)+_0x3a1a0e(0x10e)+JSON[_0x3a1a0e(0xf5)](_0x54dc92));if(!_0x54dc92[_0x1f554b]){const _0x24bc0a={};_0x24bc0a[_0x3a1a0e(0xda)]=_0x40785e[_0x3a1a0e(0x10a)],_0x24bc0a[_0x3a1a0e(0xf9)]=[..._0x327b5c],_0x54dc92[_0x1f554b]=_0x24bc0a,logger['debug'](_0x3a1a0e(0xd1)+_0x1f554b+_0x3a1a0e(0x103)+JSON[_0x3a1a0e(0xf5)](_0x327b5c));}else _0x54dc92[_0x1f554b][_0x3a1a0e(0xf9)]=[..._0x327b5c],logger['debug']('[CustomTagManager]\x20setCustomTags:\x20Updated\x20existing\x20tag\x20key='+_0x1f554b+_0x3a1a0e(0x115)+JSON[_0x3a1a0e(0xf5)](_0x327b5c));const _0x21871b={[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x54dc92},_0x321978={};_0x321978[_0x3a7e33]=_0x21871b,_0x42ee90[_0x3a1a0e(0xd9)](_0x321978),logger[_0x3a1a0e(0xd2)](_0x3a1a0e(0x104)+_0x3a7e33+_0x3a1a0e(0xed)+JSON[_0x3a1a0e(0xf5)](_0x54dc92)),!this[_0x3a1a0e(0xfa)][_0x3a7e33]&&(this[_0x3a1a0e(0xfa)][_0x3a7e33]={}),this['testLevelTags'][_0x3a7e33][_0x1f554b]=[..._0x327b5c];}else{const _0x422e9d=global['__workerDetails']?.[_0x3a1a0e(0x10b)]?.[_0x3a1a0e(0xef)];if(!_0x422e9d){const _0x13e988=AutomationFramework[_0x3a1a0e(0xec)]();_0x3a7e33=AutomationFramework[_0x3a1a0e(0x106)](_0x13e988,PlaywrightDriverModule[_0x3a1a0e(0xd8)],'');}else _0x3a7e33=TestInfo[_0x3a1a0e(0x11c)](_0x422e9d,_0x422e9d['retry']);const _0x5575c4=TestInfo[_0x3a1a0e(0xd3)](_0x3a7e33),_0x4475c4=_0x5575c4[TestFrameworkConstants[_0x3a1a0e(0x110)]]||{};if(!_0x4475c4[_0x1f554b]){const _0x371cf6={};_0x371cf6[_0x3a1a0e(0xda)]=_0x40785e['UDVdm'],_0x371cf6[_0x3a1a0e(0xf9)]=[..._0x327b5c],_0x4475c4[_0x1f554b]=_0x371cf6;}else _0x4475c4[_0x1f554b][_0x3a1a0e(0xf9)]=[..._0x327b5c];_0x5575c4[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x4475c4,TestInfo[_0x3a1a0e(0xf7)](_0x3a7e33,_0x5575c4),!this[_0x3a1a0e(0xfa)][_0x3a7e33]&&(this[_0x3a1a0e(0xfa)][_0x3a7e33]={}),this[_0x3a1a0e(0xfa)][_0x3a7e33][_0x1f554b]=[..._0x327b5c];}}}static['getBuildLevelTags'](){const _0x1a324e={...this['buildLevelTags']};return _0x1a324e;}static[a73_0x55e894(0x11d)](){const _0x43c8b6=a73_0x55e894,_0x521555={...this[_0x43c8b6(0xfa)]};return _0x521555;}static[a73_0x55e894(0x11f)](){const _0x41e129=a73_0x55e894;this[_0x41e129(0xde)]={},this[_0x41e129(0xfa)]={};}}module[a73_0x55e894(0x109)]=CustomTagManager;
@@ -1 +1 @@
1
- function a74_0x2fde(_0x3b114a,_0xe20bf2){const _0x58db7e=a74_0x58db();return a74_0x2fde=function(_0x2fdec9,_0xfa909f){_0x2fdec9=_0x2fdec9-0x64;let _0x393695=_0x58db7e[_0x2fdec9];return _0x393695;},a74_0x2fde(_0x3b114a,_0xe20bf2);}const a74_0x1fda8e=a74_0x2fde;(function(_0x5936d3,_0x366999){const _0x5577d6=a74_0x2fde,_0x4b5926=_0x5936d3();while(!![]){try{const _0x4fa42a=parseInt(_0x5577d6(0x6e))/0x1*(parseInt(_0x5577d6(0x6a))/0x2)+parseInt(_0x5577d6(0x77))/0x3+-parseInt(_0x5577d6(0x65))/0x4*(parseInt(_0x5577d6(0x66))/0x5)+parseInt(_0x5577d6(0x72))/0x6*(parseInt(_0x5577d6(0x6c))/0x7)+parseInt(_0x5577d6(0x70))/0x8*(parseInt(_0x5577d6(0x6f))/0x9)+parseInt(_0x5577d6(0x78))/0xa*(parseInt(_0x5577d6(0x67))/0xb)+-parseInt(_0x5577d6(0x76))/0xc;if(_0x4fa42a===_0x366999)break;else _0x4b5926['push'](_0x4b5926['shift']());}catch(_0x458aa9){_0x4b5926['push'](_0x4b5926['shift']());}}}(a74_0x58db,0x2a567));const {createClassLogger}=require(a74_0x1fda8e(0x75));function a74_0x58db(){const _0x419d5e=['getInstance','registerObserver','2qSfJbk','observers','14AnOSAQ','freeze','94345WpiUbd','18VALbSP','1038968VpPmMh','exports','259458NpOCMq','push','NpTdo','../../helpers/classLogger.js','2839632qAlLjl','136230bKAoNq','310rrGqzn','notifyObserver','236UzEzzq','15685BwKLxd','38731YwRwMY'];a74_0x58db=function(){return _0x419d5e;};return a74_0x58db();}class EventDispatcher{static #instance=null;constructor(){const _0x59d4c2=a74_0x1fda8e;this[_0x59d4c2(0x6b)]={};}static[a74_0x1fda8e(0x68)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a74_0x1fda8e(0x69)](_0x4f8449,_0x1b3d65){const _0x471a38=a74_0x1fda8e;!this['observers'][_0x4f8449]&&(this[_0x471a38(0x6b)][_0x4f8449]=[]),this[_0x471a38(0x6b)][_0x4f8449][_0x471a38(0x73)](_0x1b3d65);}async[a74_0x1fda8e(0x64)](_0x2ec0e7,_0x527f44){const _0x166dff=a74_0x1fda8e,_0x4e1b95={'NpTdo':function(_0x4bd7ff,_0x3ebd8f){return _0x4bd7ff(_0x3ebd8f);}};if(this[_0x166dff(0x6b)][_0x2ec0e7]){for(const _0xa36725 of this[_0x166dff(0x6b)][_0x2ec0e7]){await _0x4e1b95[_0x166dff(0x74)](_0xa36725,_0x527f44);}return;}}}const eventDispatcher=EventDispatcher[a74_0x1fda8e(0x68)]();Object[a74_0x1fda8e(0x6d)](eventDispatcher),module[a74_0x1fda8e(0x71)]=eventDispatcher;
1
+ const a74_0x2742a6=a74_0xbd60;(function(_0x118ea0,_0x1ec0c4){const _0x37e422=a74_0xbd60,_0x2e6251=_0x118ea0();while(!![]){try{const _0xc00177=-parseInt(_0x37e422(0x1d2))/0x1+-parseInt(_0x37e422(0x1c2))/0x2*(parseInt(_0x37e422(0x1d3))/0x3)+-parseInt(_0x37e422(0x1c5))/0x4*(-parseInt(_0x37e422(0x1d4))/0x5)+-parseInt(_0x37e422(0x1c6))/0x6*(-parseInt(_0x37e422(0x1cf))/0x7)+-parseInt(_0x37e422(0x1cd))/0x8*(parseInt(_0x37e422(0x1cb))/0x9)+-parseInt(_0x37e422(0x1ce))/0xa*(parseInt(_0x37e422(0x1c8))/0xb)+-parseInt(_0x37e422(0x1d1))/0xc*(-parseInt(_0x37e422(0x1c1))/0xd);if(_0xc00177===_0x1ec0c4)break;else _0x2e6251['push'](_0x2e6251['shift']());}catch(_0x207d83){_0x2e6251['push'](_0x2e6251['shift']());}}}(a74_0x2cf5,0xeaa08));function a74_0xbd60(_0x4fc412,_0x23808d){const _0x2cf509=a74_0x2cf5();return a74_0xbd60=function(_0xbd605,_0x537318){_0xbd605=_0xbd605-0x1c1;let _0xfec0af=_0x2cf509[_0xbd605];return _0xfec0af;},a74_0xbd60(_0x4fc412,_0x23808d);}const {createClassLogger}=require(a74_0x2742a6(0x1c4));class EventDispatcher{static #instance=null;constructor(){const _0x2b6b0f=a74_0x2742a6;this[_0x2b6b0f(0x1ca)]={};}static[a74_0x2742a6(0x1d0)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a74_0x2742a6(0x1c9)](_0x4126e7,_0x3485a5){const _0x961091=a74_0x2742a6;!this[_0x961091(0x1ca)][_0x4126e7]&&(this[_0x961091(0x1ca)][_0x4126e7]=[]),this[_0x961091(0x1ca)][_0x4126e7][_0x961091(0x1cc)](_0x3485a5);}async['notifyObserver'](_0x1d0670,_0x3f0ba8){const _0x943845=a74_0x2742a6,_0x522ca0={'ZTUvX':function(_0x3552f9,_0x494489){return _0x3552f9(_0x494489);}};if(this[_0x943845(0x1ca)][_0x1d0670]){for(const _0x3d1e61 of this[_0x943845(0x1ca)][_0x1d0670]){await _0x522ca0['ZTUvX'](_0x3d1e61,_0x3f0ba8);}return;}}}const eventDispatcher=EventDispatcher['getInstance']();function a74_0x2cf5(){const _0x5b5f98=['228TiNyBD','872558FXVSoX','32658YmwJNS','1145755lmUThN','2547649QLeNvw','302sgkMjb','exports','../../helpers/classLogger.js','12CaQofu','306jVnNzf','freeze','11GXVgKq','registerObserver','observers','750411UKSwDh','push','16xJvmpC','8290770pxZgDv','8547HCfOZM','getInstance'];a74_0x2cf5=function(){return _0x5b5f98;};return a74_0x2cf5();}Object[a74_0x2742a6(0x1c7)](eventDispatcher),module[a74_0x2742a6(0x1c3)]=eventDispatcher;
@@ -1 +1 @@
1
- function a75_0x5e78(_0x3f01d8,_0x5de2b7){const _0x2e5a2c=a75_0x2e5a();return a75_0x5e78=function(_0x5e786e,_0x238c8e){_0x5e786e=_0x5e786e-0x12e;let _0x1228fd=_0x2e5a2c[_0x5e786e];return _0x1228fd;},a75_0x5e78(_0x3f01d8,_0x5de2b7);}const a75_0x289eb5=a75_0x5e78;(function(_0x45433e,_0x1a352d){const _0x558582=a75_0x5e78,_0x5df8f8=_0x45433e();while(!![]){try{const _0xbf2fdb=-parseInt(_0x558582(0x12e))/0x1*(parseInt(_0x558582(0x137))/0x2)+-parseInt(_0x558582(0x131))/0x3*(-parseInt(_0x558582(0x130))/0x4)+-parseInt(_0x558582(0x13f))/0x5+-parseInt(_0x558582(0x134))/0x6+parseInt(_0x558582(0x13c))/0x7+-parseInt(_0x558582(0x141))/0x8+parseInt(_0x558582(0x150))/0x9*(parseInt(_0x558582(0x14a))/0xa);if(_0xbf2fdb===_0x1a352d)break;else _0x5df8f8['push'](_0x5df8f8['shift']());}catch(_0x135bbc){_0x5df8f8['push'](_0x5df8f8['shift']());}}}(a75_0x2e5a,0x5e5fa));const {createClassLogger}=require(a75_0x289eb5(0x140)),util=require('util'),eventDispatcher=require('../eventDispatcher.js'),CLIUtils=require(a75_0x289eb5(0x151)),TrackedInstance=require(a75_0x289eb5(0x147)),logger=createClassLogger('AutomationFramework');class AutomationFramework{static [a75_0x289eb5(0x13e)]=new Map();static [a75_0x289eb5(0x13d)]=a75_0x289eb5(0x13b);static [a75_0x289eb5(0x14f)]=a75_0x289eb5(0x136);constructor(_0x4c4028,_0x5ca4fb){const _0x5403d8=a75_0x289eb5;this[_0x5403d8(0x135)]=_0x4c4028,this[_0x5403d8(0x145)]=_0x5ca4fb;}[a75_0x289eb5(0x149)](){const _0x554a87=a75_0x289eb5;return this[_0x554a87(0x135)];}['getAutomationFrameworkVersion'](){const _0xad50e3=a75_0x289eb5;return this[_0xad50e3(0x145)];}async[a75_0x289eb5(0x138)](_0x5f238a,_0x21fe77,_0x455785={}){const _0x566712=a75_0x289eb5;logger[_0x566712(0x14c)](_0x566712(0x148)+_0x5f238a+'\x20hookState='+_0x21fe77);}async[a75_0x289eb5(0x133)](_0x42178f,_0x3f8f16,_0x2188a8,_0x46377f={}){const _0x4904e0=a75_0x289eb5,_0x36c89a=CLIUtils[_0x4904e0(0x132)](_0x3f8f16,_0x2188a8);_0x42178f&&_0x42178f[_0x4904e0(0x143)](_0x3f8f16),await eventDispatcher[_0x4904e0(0x142)](_0x36c89a,_0x46377f);}static[a75_0x289eb5(0x12f)](_0x1b4909,_0x4a4625,_0x151ae7){const _0x20f8a3=a75_0x289eb5;eventDispatcher[_0x20f8a3(0x12f)](CLIUtils[_0x20f8a3(0x132)](_0x1b4909,_0x4a4625),_0x151ae7);}static['setTrackedInstance'](_0x2f867e,_0x197fc3){const _0x1250f4=a75_0x289eb5;AutomationFramework[_0x1250f4(0x13e)][_0x1250f4(0x153)](_0x2f867e[_0x1250f4(0x146)](),_0x197fc3);}static[a75_0x289eb5(0x14d)](){const _0x31a81c=a75_0x289eb5,_0x31f40d=TrackedInstance[_0x31a81c(0x144)](CLIUtils[_0x31a81c(0x13a)]());return AutomationFramework[_0x31a81c(0x13e)][_0x31a81c(0x14e)](_0x31f40d['getId']());}static[a75_0x289eb5(0x143)](_0xea9201,_0x27a7c5,_0x5142ba){const _0x53b330=a75_0x289eb5;_0xea9201[_0x53b330(0x14b)]()[_0x53b330(0x153)](_0x27a7c5,_0x5142ba);}static[a75_0x289eb5(0x152)](_0x2cdad0,_0x146151){const _0x289149=a75_0x289eb5;return _0x2cdad0[_0x289149(0x14b)]()['get'](_0x146151);}}function a75_0x2e5a(){const _0xa3ed72=['KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','1542429ZmMCZW','../cliUtils.js','getState','set','2BQIIOE','registerObserver','280nreUeC','4542AOFaVc','getHookRegistryKey','runHooks','380778bmPYyp','automationFrameworkName','non_browserstack_automation_sessions','456172OHnNLw','trackEvent','exports','getCurrentInstanceName','automation_sessions','2754402bXPYcM','KEY_AUTOMATION_SESSIONS','instances','2434650oduWFt','../../../helpers/classLogger.js','2448112GIKkVr','notifyObserver','setState','createContext','automationFrameworkVersion','getId','../instances/trackedInstance.js','trackEvent:\x20automationFrameworkState=','getAutomationFrameworkName','70OhrGLD','getAllData','debug','getTrackedInstance','get'];a75_0x2e5a=function(){return _0xa3ed72;};return a75_0x2e5a();}module[a75_0x289eb5(0x139)]=AutomationFramework;
1
+ function a75_0x392b(_0x7f0b22,_0x1f2ccb){const _0x9c6e8b=a75_0x9c6e();return a75_0x392b=function(_0x392b0e,_0x321221){_0x392b0e=_0x392b0e-0x156;let _0x139544=_0x9c6e8b[_0x392b0e];return _0x139544;},a75_0x392b(_0x7f0b22,_0x1f2ccb);}const a75_0x39ddc8=a75_0x392b;(function(_0x40d00c,_0x177820){const _0x1f2b4b=a75_0x392b,_0x546362=_0x40d00c();while(!![]){try{const _0x2fc9e0=parseInt(_0x1f2b4b(0x162))/0x1+-parseInt(_0x1f2b4b(0x16f))/0x2+-parseInt(_0x1f2b4b(0x16d))/0x3+-parseInt(_0x1f2b4b(0x15b))/0x4+parseInt(_0x1f2b4b(0x171))/0x5+-parseInt(_0x1f2b4b(0x169))/0x6+parseInt(_0x1f2b4b(0x166))/0x7;if(_0x2fc9e0===_0x177820)break;else _0x546362['push'](_0x546362['shift']());}catch(_0x4672f1){_0x546362['push'](_0x546362['shift']());}}}(a75_0x9c6e,0xd587c));const {createClassLogger}=require(a75_0x39ddc8(0x16c)),util=require(a75_0x39ddc8(0x15c)),eventDispatcher=require(a75_0x39ddc8(0x167)),CLIUtils=require(a75_0x39ddc8(0x157)),TrackedInstance=require(a75_0x39ddc8(0x16a)),logger=createClassLogger(a75_0x39ddc8(0x161));function a75_0x9c6e(){const _0x3e9e13=['\x20hookState=','AutomationFramework','729494YpdfPz','getState','getCurrentInstanceName','getAutomationFrameworkName','2664949aAeVwG','../eventDispatcher.js','registerObserver','311970soXWGA','../instances/trackedInstance.js','setTrackedInstance','../../../helpers/classLogger.js','887775gyKuwK','getHookRegistryKey','2127784KWRcup','instances','5999895VGLXsR','set','runHooks','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','../cliUtils.js','trackEvent:\x20automationFrameworkState=','non_browserstack_automation_sessions','get','94992kBEInX','util','debug','getAllData','setState'];a75_0x9c6e=function(){return _0x3e9e13;};return a75_0x9c6e();}class AutomationFramework{static [a75_0x39ddc8(0x170)]=new Map();static ['KEY_AUTOMATION_SESSIONS']='automation_sessions';static [a75_0x39ddc8(0x156)]=a75_0x39ddc8(0x159);constructor(_0x5a6737,_0x56a207){this['automationFrameworkName']=_0x5a6737,this['automationFrameworkVersion']=_0x56a207;}[a75_0x39ddc8(0x165)](){return this['automationFrameworkName'];}['getAutomationFrameworkVersion'](){return this['automationFrameworkVersion'];}async['trackEvent'](_0x554a2b,_0x3c8be4,_0x4c4022={}){const _0x27cd15=a75_0x39ddc8;logger[_0x27cd15(0x15d)](_0x27cd15(0x158)+_0x554a2b+_0x27cd15(0x160)+_0x3c8be4);}async[a75_0x39ddc8(0x173)](_0x2cbade,_0x5519c1,_0x5be684,_0x1889e0={}){const _0x4bc9da=a75_0x39ddc8,_0x329eba=CLIUtils[_0x4bc9da(0x16e)](_0x5519c1,_0x5be684);_0x2cbade&&_0x2cbade[_0x4bc9da(0x15f)](_0x5519c1),await eventDispatcher['notifyObserver'](_0x329eba,_0x1889e0);}static['registerObserver'](_0x2d490e,_0x1a20be,_0x406fc3){const _0x2ffae7=a75_0x39ddc8;eventDispatcher[_0x2ffae7(0x168)](CLIUtils[_0x2ffae7(0x16e)](_0x2d490e,_0x1a20be),_0x406fc3);}static[a75_0x39ddc8(0x16b)](_0x5a0a94,_0x4da912){const _0xc00432=a75_0x39ddc8;AutomationFramework['instances'][_0xc00432(0x172)](_0x5a0a94['getId'](),_0x4da912);}static['getTrackedInstance'](){const _0x50c679=a75_0x39ddc8,_0x408338=TrackedInstance['createContext'](CLIUtils[_0x50c679(0x164)]());return AutomationFramework[_0x50c679(0x170)][_0x50c679(0x15a)](_0x408338['getId']());}static[a75_0x39ddc8(0x15f)](_0x1c3628,_0x349088,_0x565a1a){const _0xe8f4fd=a75_0x39ddc8;_0x1c3628[_0xe8f4fd(0x15e)]()[_0xe8f4fd(0x172)](_0x349088,_0x565a1a);}static[a75_0x39ddc8(0x163)](_0x341670,_0x306604){return _0x341670['getAllData']()['get'](_0x306604);}}module['exports']=AutomationFramework;
@@ -1 +1 @@
1
- const a76_0x7324f=a76_0x288f;(function(_0x80983e,_0x72de5a){const _0xbe8ea=a76_0x288f,_0x2f1ff4=_0x80983e();while(!![]){try{const _0x37511b=parseInt(_0xbe8ea(0x1a6))/0x1+-parseInt(_0xbe8ea(0x197))/0x2+-parseInt(_0xbe8ea(0x196))/0x3*(parseInt(_0xbe8ea(0x199))/0x4)+-parseInt(_0xbe8ea(0x192))/0x5*(parseInt(_0xbe8ea(0x1ab))/0x6)+parseInt(_0xbe8ea(0x1a1))/0x7*(-parseInt(_0xbe8ea(0x191))/0x8)+parseInt(_0xbe8ea(0x19e))/0x9+parseInt(_0xbe8ea(0x1a5))/0xa;if(_0x37511b===_0x72de5a)break;else _0x2f1ff4['push'](_0x2f1ff4['shift']());}catch(_0x54fb3b){_0x2f1ff4['push'](_0x2f1ff4['shift']());}}}(a76_0x3990,0xa23a6));const a76_0x31c47c={};a76_0x31c47c['ENV_BROWSERSTACK_PLATFORM_INDEX']=a76_0x7324f(0x193),a76_0x31c47c[a76_0x7324f(0x1a0)]=a76_0x7324f(0x19d),a76_0x31c47c[a76_0x7324f(0x1a4)]=a76_0x7324f(0x1a3),a76_0x31c47c['KEY_INPUT_CAPABILITIES']='input_capabilities',a76_0x31c47c[a76_0x7324f(0x1a9)]=a76_0x7324f(0x19b),a76_0x31c47c[a76_0x7324f(0x1a2)]=a76_0x7324f(0x19c),a76_0x31c47c[a76_0x7324f(0x190)]='started_at',a76_0x31c47c['KEY_ENDED_AT']=a76_0x7324f(0x195),a76_0x31c47c[a76_0x7324f(0x18e)]='platform_index',a76_0x31c47c['COMMAND_NEW_SESSION']=a76_0x7324f(0x198),a76_0x31c47c['COMMAND_GET']=a76_0x7324f(0x1a7),a76_0x31c47c['COMMAND_SCREENSHOT']=a76_0x7324f(0x1a8),a76_0x31c47c['COMMAND_W3C_EXECUTE_SCRIPT']=a76_0x7324f(0x194),a76_0x31c47c[a76_0x7324f(0x19f)]=a76_0x7324f(0x18f),a76_0x31c47c[a76_0x7324f(0x1aa)]='quit';function a76_0x3990(){const _0x570b82=['hub_url','5507874nbIhPL','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','KEY_HUB_URL','7CPBZKE','KEY_IS_BROWSERSTACK_HUB','framework_session_id','KEY_FRAMEWORK_SESSION_ID','13969750epvHVd','1140052QxnHZQ','get','screenshot','KEY_CAPABILITIES','COMMAND_QUIT','6nrXIsy','KEY_PLATFORM_INDEX','w3cexecutescriptasync','KEY_STARTED_AT','6535576hBSbZw','1948255VAXYAN','BROWSERSTACK_PLATFORM_INDEX','w3cexecutescript','ended_at','72qboxmm','481202nQAoCp','newsession','172888xbXoCA','exports','capabilities','is_browserstack_hub'];a76_0x3990=function(){return _0x570b82;};return a76_0x3990();}const AutomationFrameworkConstants=a76_0x31c47c;function a76_0x288f(_0x3c40dc,_0x48a755){const _0x3990ea=a76_0x3990();return a76_0x288f=function(_0x288f57,_0x7f1321){_0x288f57=_0x288f57-0x18e;let _0x48ecc4=_0x3990ea[_0x288f57];return _0x48ecc4;},a76_0x288f(_0x3c40dc,_0x48a755);}module[a76_0x7324f(0x19a)]=AutomationFrameworkConstants;
1
+ const a76_0xba5982=a76_0x25de;function a76_0x3c50(){const _0x19216e=['ENV_BROWSERSTACK_PLATFORM_INDEX','BROWSERSTACK_PLATFORM_INDEX','4lsklOT','COMMAND_QUIT','931866THgTXd','KEY_IS_BROWSERSTACK_HUB','screenshot','682015OJXUAs','framework_session_id','5024020rEKRqQ','9065418zjFzON','KEY_ENDED_AT','COMMAND_GET','started_at','COMMAND_SCREENSHOT','get','3184902RBgAuJ','KEY_CAPABILITIES','9MNpxME','4092688MocALr','capabilities','672147sgzfvC','newsession','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','COMMAND_NEW_SESSION','KEY_PLATFORM_INDEX','ended_at','2LinsKm'];a76_0x3c50=function(){return _0x19216e;};return a76_0x3c50();}(function(_0x367084,_0x7a8099){const _0x5d940e=a76_0x25de,_0xaac92a=_0x367084();while(!![]){try{const _0x2aa807=parseInt(_0x5d940e(0x76))/0x1*(parseInt(_0x5d940e(0x7b))/0x2)+parseInt(_0x5d940e(0x8c))/0x3+parseInt(_0x5d940e(0x79))/0x4*(-parseInt(_0x5d940e(0x7e))/0x5)+-parseInt(_0x5d940e(0x81))/0x6+parseInt(_0x5d940e(0x87))/0x7+-parseInt(_0x5d940e(0x8a))/0x8*(-parseInt(_0x5d940e(0x89))/0x9)+parseInt(_0x5d940e(0x80))/0xa;if(_0x2aa807===_0x7a8099)break;else _0xaac92a['push'](_0xaac92a['shift']());}catch(_0x31c1c0){_0xaac92a['push'](_0xaac92a['shift']());}}}(a76_0x3c50,0xeeaaf));const a76_0x745764={};function a76_0x25de(_0x26e34d,_0x593dd0){const _0x3c500b=a76_0x3c50();return a76_0x25de=function(_0x25de59,_0x24317f){_0x25de59=_0x25de59-0x72;let _0xd34027=_0x3c500b[_0x25de59];return _0xd34027;},a76_0x25de(_0x26e34d,_0x593dd0);}a76_0x745764[a76_0xba5982(0x77)]=a76_0xba5982(0x78),a76_0x745764['KEY_HUB_URL']='hub_url',a76_0x745764['KEY_FRAMEWORK_SESSION_ID']=a76_0xba5982(0x7f),a76_0x745764['KEY_INPUT_CAPABILITIES']='input_capabilities',a76_0x745764[a76_0xba5982(0x88)]=a76_0xba5982(0x8b),a76_0x745764[a76_0xba5982(0x7c)]='is_browserstack_hub',a76_0x745764['KEY_STARTED_AT']=a76_0xba5982(0x84),a76_0x745764[a76_0xba5982(0x82)]=a76_0xba5982(0x75),a76_0x745764[a76_0xba5982(0x74)]='platform_index',a76_0x745764[a76_0xba5982(0x73)]=a76_0xba5982(0x8d),a76_0x745764[a76_0xba5982(0x83)]=a76_0xba5982(0x86),a76_0x745764[a76_0xba5982(0x85)]=a76_0xba5982(0x7d),a76_0x745764['COMMAND_W3C_EXECUTE_SCRIPT']='w3cexecutescript',a76_0x745764[a76_0xba5982(0x72)]='w3cexecutescriptasync',a76_0x745764[a76_0xba5982(0x7a)]='quit';const AutomationFrameworkConstants=a76_0x745764;module['exports']=AutomationFrameworkConstants;
@@ -1 +1 @@
1
- function a77_0x2b35(_0x5b8949,_0x30a72a){const _0xb93968=a77_0xb939();return a77_0x2b35=function(_0x2b353d,_0x55ae42){_0x2b353d=_0x2b353d-0x82;let _0x2ef44f=_0xb93968[_0x2b353d];return _0x2ef44f;},a77_0x2b35(_0x5b8949,_0x30a72a);}const a77_0x44aa37=a77_0x2b35;(function(_0x38ef03,_0x418885){const _0x3b03a4=a77_0x2b35,_0x187846=_0x38ef03();while(!![]){try{const _0x2cfc6c=-parseInt(_0x3b03a4(0xc3))/0x1+-parseInt(_0x3b03a4(0xb7))/0x2*(parseInt(_0x3b03a4(0xd6))/0x3)+-parseInt(_0x3b03a4(0xaf))/0x4+-parseInt(_0x3b03a4(0xd8))/0x5*(parseInt(_0x3b03a4(0x9c))/0x6)+parseInt(_0x3b03a4(0xbf))/0x7+parseInt(_0x3b03a4(0x89))/0x8*(parseInt(_0x3b03a4(0xbd))/0x9)+-parseInt(_0x3b03a4(0xbc))/0xa*(-parseInt(_0x3b03a4(0x82))/0xb);if(_0x2cfc6c===_0x418885)break;else _0x187846['push'](_0x187846['shift']());}catch(_0x18c177){_0x187846['push'](_0x187846['shift']());}}}(a77_0xb939,0x2b64b));const a77_0x4bd8a7={};a77_0x4bd8a7[a77_0x44aa37(0xcd)]=a77_0x44aa37(0xc4),a77_0x4bd8a7[a77_0x44aa37(0xa9)]=a77_0x44aa37(0xb5),a77_0x4bd8a7['KEY_TEST_NAME']=a77_0x44aa37(0x9e),a77_0x4bd8a7[a77_0x44aa37(0xad)]=a77_0x44aa37(0x95),a77_0x4bd8a7[a77_0x44aa37(0x8f)]=a77_0x44aa37(0xa2),a77_0x4bd8a7[a77_0x44aa37(0xde)]=a77_0x44aa37(0xe5),a77_0x4bd8a7[a77_0x44aa37(0x83)]=a77_0x44aa37(0xd4),a77_0x4bd8a7[a77_0x44aa37(0xdc)]=a77_0x44aa37(0xaa),a77_0x4bd8a7[a77_0x44aa37(0xb0)]=a77_0x44aa37(0xac),a77_0x4bd8a7[a77_0x44aa37(0xb4)]=a77_0x44aa37(0xbb),a77_0x4bd8a7[a77_0x44aa37(0xc1)]='test_duration',a77_0x4bd8a7[a77_0x44aa37(0xb2)]=a77_0x44aa37(0xd3),a77_0x4bd8a7[a77_0x44aa37(0xc7)]=a77_0x44aa37(0xba),a77_0x4bd8a7[a77_0x44aa37(0xe0)]=a77_0x44aa37(0xab),a77_0x4bd8a7[a77_0x44aa37(0x96)]=a77_0x44aa37(0xb1),a77_0x4bd8a7[a77_0x44aa37(0x9d)]=a77_0x44aa37(0xdb),a77_0x4bd8a7['KEY_TEST_RERUN_NAME']=a77_0x44aa37(0xd9),a77_0x4bd8a7[a77_0x44aa37(0x86)]=a77_0x44aa37(0xdf),a77_0x4bd8a7['KEY_PLATFORM_INDEX']='platform_index',a77_0x4bd8a7[a77_0x44aa37(0xca)]=a77_0x44aa37(0x92),a77_0x4bd8a7[a77_0x44aa37(0xa8)]=a77_0x44aa37(0x87),a77_0x4bd8a7[a77_0x44aa37(0xc9)]=a77_0x44aa37(0xe6),a77_0x4bd8a7['KEY_TEST_LOGS']=a77_0x44aa37(0xc8),a77_0x4bd8a7[a77_0x44aa37(0xa0)]='test_meta',a77_0x4bd8a7[a77_0x44aa37(0xc2)]=a77_0x44aa37(0xcb),a77_0x4bd8a7[a77_0x44aa37(0x90)]=a77_0x44aa37(0xb9),a77_0x4bd8a7[a77_0x44aa37(0xcc)]=a77_0x44aa37(0x93),a77_0x4bd8a7[a77_0x44aa37(0x84)]='automate_session_reason',a77_0x4bd8a7[a77_0x44aa37(0x88)]=a77_0x44aa37(0xc0),a77_0x4bd8a7[a77_0x44aa37(0xc5)]=a77_0x44aa37(0xe1),a77_0x4bd8a7[a77_0x44aa37(0xae)]='hook_id',a77_0x4bd8a7[a77_0x44aa37(0xbe)]=a77_0x44aa37(0xd1),a77_0x4bd8a7[a77_0x44aa37(0xe3)]=a77_0x44aa37(0xd2),a77_0x4bd8a7[a77_0x44aa37(0x8a)]=a77_0x44aa37(0x9f),a77_0x4bd8a7[a77_0x44aa37(0xe4)]=a77_0x44aa37(0x94),a77_0x4bd8a7['KEY_HOOK_LOGS']=a77_0x44aa37(0xa3),a77_0x4bd8a7[a77_0x44aa37(0xa4)]=a77_0x44aa37(0x85),a77_0x4bd8a7[a77_0x44aa37(0xce)]=a77_0x44aa37(0x8b),a77_0x4bd8a7[a77_0x44aa37(0x9a)]=a77_0x44aa37(0x8b),a77_0x4bd8a7['KIND_SCREENSHOT']=a77_0x44aa37(0x98),a77_0x4bd8a7[a77_0x44aa37(0xd0)]=a77_0x44aa37(0xa5),a77_0x4bd8a7[a77_0x44aa37(0xc6)]=a77_0x44aa37(0xd5),a77_0x4bd8a7[a77_0x44aa37(0xa6)]='test_hooks_started',a77_0x4bd8a7[a77_0x44aa37(0xa7)]=a77_0x44aa37(0x99),a77_0x4bd8a7[a77_0x44aa37(0xb8)]=a77_0x44aa37(0xdd),a77_0x4bd8a7[a77_0x44aa37(0x8d)]=a77_0x44aa37(0xb6),a77_0x4bd8a7[a77_0x44aa37(0x8c)]=a77_0x44aa37(0xb3),a77_0x4bd8a7[a77_0x44aa37(0xe2)]=a77_0x44aa37(0x97),a77_0x4bd8a7[a77_0x44aa37(0xa1)]='test_attachments',a77_0x4bd8a7[a77_0x44aa37(0xcf)]='file_size',a77_0x4bd8a7[a77_0x44aa37(0xda)]=a77_0x44aa37(0x91),a77_0x4bd8a7['KEY_FILE_PATH']=a77_0x44aa37(0x8e),a77_0x4bd8a7[a77_0x44aa37(0x9b)]='file_level',a77_0x4bd8a7['MAX_TOP_LEVEL_STEPS']=0xa,a77_0x4bd8a7[a77_0x44aa37(0xd7)]=0x2;const TestFrameworkConstants=a77_0x4bd8a7;module['exports']=TestFrameworkConstants;function a77_0xb939(){const _0x4f4c9b=['TEST_LOG','KEY_HOOKS_STARTED','KEY_HOOKS_FINISHED','KEY_TEST_FAILURE_TYPE','KEY_TEST_ID','test_started_at','test_framework_name','test_ended_at','KEY_TEST_FILE_PATH','KEY_HOOK_ID','182696LTghxq','KEY_TEST_ENDED_AT','test_framework_version','KEY_TEST_SCOPE','logs','KEY_TEST_LOCATION','test_id','test_hook_last_finished','4iwXANn','KEY_HOOK_LAST_STARTED','automate_session_name','test_scopes','test_location','7934240zvtChT','84843qgoYMK','KEY_HOOK_RESULT','922649FbmKrd','event_started_at','KEY_TEST_DURATION','KEY_SESSION_NAME','216852pOcqzK','test_uuid','KEY_EVENT_ENDED_AT','HOOK_REGEX','KEY_TEST_SCOPES','test_logs','KEY_TEST_FAILURE_REASON','KEY_TEST_FAILURE','test_session_name','KEY_AUTOMATE_SESSION_STATUS','KEY_TEST_UUID','DEFAULT_TEST_RESULT','KEY_FILE_SIZE','KIND_LOG','hook_result','hook_failure_type','test_scope','test_result_at','^(BEFORE_|AFTER_)','474195gFaOOB','MAX_NESTED_STEP_DEPTH','846305VJsqMW','test_rerun_name','KEY_FILE_NAME','test_code','KEY_TEST_STARTED_AT','test_hook_last_started','KEY_TEST_RESULT','retry_of','KEY_TEST_FRAMEWORK_NAME','event_ended_at','KEY_CUSTOM_TAGS','KEY_HOOK_FAILURE_TYPE','KEY_HOOK_FAILURE','test_result','test_failure_reason','11bzelDf','KEY_TEST_RESULT_AT','KEY_AUTOMATE_SESSION_REASON','hook_name','KEY_TEST_RETRY_OF','test_failure_type','KEY_EVENT_STARTED_AT','144KBxqJS','KEY_HOOK_FAILURE_REASON','pending','KEY_LOGS','KEY_HOOK_LAST_FINISHED','file_path','KEY_TEST_TAGS','KEY_AUTOMATE_SESSION_NAME','file_name','test_failure','automate_session_status','hook_failure','test_file_path','KEY_TEST_FRAMEWORK_VERSION','custom_metadata','TEST_SCREENSHOT','test_hooks_finished','DEFAULT_HOOK_RESULT','KEY_FILE_LEVEL','12qGlKEJ','KEY_TEST_CODE','test_name','hook_failure_reason','KEY_TEST_META','KEY_TEST_ATTACHMENTS','test_tags','hook_logs','KEY_HOOK_NAME'];a77_0xb939=function(){return _0x4f4c9b;};return a77_0xb939();}
1
+ function a77_0x3a70(_0x302a97,_0xff1939){const _0xd0b583=a77_0xd0b5();return a77_0x3a70=function(_0x3a70e9,_0x1020c6){_0x3a70e9=_0x3a70e9-0x1c4;let _0x59382a=_0xd0b583[_0x3a70e9];return _0x59382a;},a77_0x3a70(_0x302a97,_0xff1939);}const a77_0x474b98=a77_0x3a70;(function(_0x705fcf,_0x3431ba){const _0x2d5595=a77_0x3a70,_0x13ecc0=_0x705fcf();while(!![]){try{const _0x117acf=parseInt(_0x2d5595(0x1fe))/0x1*(-parseInt(_0x2d5595(0x1f3))/0x2)+-parseInt(_0x2d5595(0x1c6))/0x3+-parseInt(_0x2d5595(0x1f7))/0x4+parseInt(_0x2d5595(0x20e))/0x5*(parseInt(_0x2d5595(0x1da))/0x6)+parseInt(_0x2d5595(0x1e2))/0x7*(-parseInt(_0x2d5595(0x1d1))/0x8)+-parseInt(_0x2d5595(0x1fd))/0x9+parseInt(_0x2d5595(0x1dc))/0xa;if(_0x117acf===_0x3431ba)break;else _0x13ecc0['push'](_0x13ecc0['shift']());}catch(_0x2a9fb9){_0x13ecc0['push'](_0x13ecc0['shift']());}}}(a77_0xd0b5,0x5c998));const a77_0x2776b6={};a77_0x2776b6[a77_0x474b98(0x205)]=a77_0x474b98(0x213),a77_0x2776b6[a77_0x474b98(0x1e7)]=a77_0x474b98(0x206),a77_0x2776b6[a77_0x474b98(0x1f1)]=a77_0x474b98(0x202),a77_0x2776b6[a77_0x474b98(0x211)]=a77_0x474b98(0x216),a77_0x2776b6[a77_0x474b98(0x1ee)]=a77_0x474b98(0x1cc),a77_0x2776b6[a77_0x474b98(0x215)]=a77_0x474b98(0x1e4),a77_0x2776b6['KEY_TEST_RESULT_AT']=a77_0x474b98(0x209),a77_0x2776b6[a77_0x474b98(0x1e9)]=a77_0x474b98(0x1ca),a77_0x2776b6[a77_0x474b98(0x207)]=a77_0x474b98(0x1c5),a77_0x2776b6[a77_0x474b98(0x1d6)]=a77_0x474b98(0x1ff),a77_0x2776b6['KEY_TEST_DURATION']=a77_0x474b98(0x214),a77_0x2776b6[a77_0x474b98(0x1f8)]=a77_0x474b98(0x1d4),a77_0x2776b6[a77_0x474b98(0x1dd)]=a77_0x474b98(0x1f9),a77_0x2776b6[a77_0x474b98(0x21a)]='test_framework_name',a77_0x2776b6['KEY_TEST_FRAMEWORK_VERSION']='test_framework_version',a77_0x2776b6[a77_0x474b98(0x217)]=a77_0x474b98(0x1de),a77_0x2776b6['KEY_TEST_RERUN_NAME']='test_rerun_name',a77_0x2776b6[a77_0x474b98(0x1db)]=a77_0x474b98(0x218),a77_0x2776b6[a77_0x474b98(0x1f6)]=a77_0x474b98(0x1df),a77_0x2776b6[a77_0x474b98(0x1f5)]=a77_0x474b98(0x1f0),a77_0x2776b6[a77_0x474b98(0x1d5)]='test_failure_type',a77_0x2776b6['KEY_TEST_FAILURE_REASON']=a77_0x474b98(0x20f),a77_0x2776b6[a77_0x474b98(0x1ea)]=a77_0x474b98(0x20a),a77_0x2776b6[a77_0x474b98(0x1d8)]='test_meta',a77_0x2776b6['KEY_SESSION_NAME']='test_session_name',a77_0x2776b6[a77_0x474b98(0x1d2)]=a77_0x474b98(0x210),a77_0x2776b6[a77_0x474b98(0x1fc)]='automate_session_status',a77_0x2776b6[a77_0x474b98(0x1d7)]=a77_0x474b98(0x20b),a77_0x2776b6['KEY_EVENT_STARTED_AT']=a77_0x474b98(0x1f2),a77_0x2776b6[a77_0x474b98(0x1ce)]=a77_0x474b98(0x1c8),a77_0x2776b6[a77_0x474b98(0x1e1)]=a77_0x474b98(0x20d),a77_0x2776b6['KEY_HOOK_RESULT']=a77_0x474b98(0x20c),a77_0x2776b6[a77_0x474b98(0x1e8)]='hook_failure_type',a77_0x2776b6['KEY_HOOK_FAILURE_REASON']=a77_0x474b98(0x204),a77_0x2776b6['KEY_HOOK_FAILURE']=a77_0x474b98(0x203),a77_0x2776b6[a77_0x474b98(0x1e3)]=a77_0x474b98(0x201),a77_0x2776b6['KEY_HOOK_NAME']=a77_0x474b98(0x21b),a77_0x2776b6[a77_0x474b98(0x1e0)]='pending',a77_0x2776b6[a77_0x474b98(0x200)]=a77_0x474b98(0x1c7),a77_0x2776b6[a77_0x474b98(0x212)]=a77_0x474b98(0x219),a77_0x2776b6[a77_0x474b98(0x1c4)]='TEST_LOG',a77_0x2776b6['HOOK_REGEX']=a77_0x474b98(0x1ec),a77_0x2776b6['KEY_HOOKS_STARTED']=a77_0x474b98(0x1ef),a77_0x2776b6['KEY_HOOKS_FINISHED']='test_hooks_finished',a77_0x2776b6['KEY_HOOK_LAST_STARTED']='test_hook_last_started',a77_0x2776b6[a77_0x474b98(0x208)]='test_hook_last_finished',a77_0x2776b6[a77_0x474b98(0x1d9)]=a77_0x474b98(0x1d0),a77_0x2776b6[a77_0x474b98(0x21c)]=a77_0x474b98(0x1fa),a77_0x2776b6[a77_0x474b98(0x1c9)]='test_attachments',a77_0x2776b6[a77_0x474b98(0x1f4)]=a77_0x474b98(0x1cb),a77_0x2776b6[a77_0x474b98(0x1d3)]=a77_0x474b98(0x1e6),a77_0x2776b6[a77_0x474b98(0x1cf)]=a77_0x474b98(0x1fb),a77_0x2776b6['KEY_FILE_LEVEL']=a77_0x474b98(0x1eb),a77_0x2776b6[a77_0x474b98(0x1ed)]=0xa,a77_0x2776b6[a77_0x474b98(0x1e5)]=0x2;const TestFrameworkConstants=a77_0x2776b6;function a77_0xd0b5(){const _0x557431=['test_failure','KEY_TEST_NAME','event_started_at','48ERFskB','KEY_FILE_SIZE','KEY_TEST_FAILURE','KEY_PLATFORM_INDEX','1341280vNzzrg','KEY_TEST_SCOPE','test_scopes','custom_metadata','file_path','KEY_AUTOMATE_SESSION_STATUS','850833GqXMpO','1329SmTxjM','test_location','DEFAULT_HOOK_RESULT','hook_logs','test_name','hook_failure','hook_failure_reason','KEY_TEST_UUID','test_id','KEY_TEST_ENDED_AT','KEY_HOOK_LAST_FINISHED','test_result_at','test_logs','automate_session_reason','hook_result','hook_id','25vRCheV','test_failure_reason','automate_session_name','KEY_TEST_FILE_PATH','KIND_SCREENSHOT','test_uuid','test_duration','KEY_TEST_RESULT','test_file_path','KEY_TEST_CODE','retry_of','TEST_SCREENSHOT','KEY_TEST_FRAMEWORK_NAME','hook_name','KEY_CUSTOM_TAGS','KIND_LOG','test_ended_at','1219425xpWxPO','pending','event_ended_at','KEY_TEST_ATTACHMENTS','test_started_at','file_size','test_tags','exports','KEY_EVENT_ENDED_AT','KEY_FILE_PATH','logs','1905832gLekGh','KEY_AUTOMATE_SESSION_NAME','KEY_FILE_NAME','test_scope','KEY_TEST_FAILURE_TYPE','KEY_TEST_LOCATION','KEY_AUTOMATE_SESSION_REASON','KEY_TEST_META','KEY_LOGS','868236LUqfxM','KEY_TEST_RETRY_OF','7622150oGXwnz','KEY_TEST_SCOPES','test_code','platform_index','DEFAULT_TEST_RESULT','KEY_HOOK_ID','7TOBAWS','KEY_HOOK_LOGS','test_result','MAX_NESTED_STEP_DEPTH','file_name','KEY_TEST_ID','KEY_HOOK_FAILURE_TYPE','KEY_TEST_STARTED_AT','KEY_TEST_LOGS','file_level','^(BEFORE_|AFTER_)','MAX_TOP_LEVEL_STEPS','KEY_TEST_TAGS','test_hooks_started'];a77_0xd0b5=function(){return _0x557431;};return a77_0xd0b5();}module[a77_0x474b98(0x1cd)]=TestFrameworkConstants;
@@ -1 +1 @@
1
- const a78_0x2e2d8d=a78_0x192a;function a78_0x5b82(){const _0xdc716f=['KEY_TEST_TAGS','addPendingHook','hJecU','getContext','OqjtE','mrvRA','getCurrentHookState','KEY_TEST_NAME','toString','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','aMdZC','readLogObjects','storePendingHook','305948FutdVY','\x20pending\x20hooks\x20for\x20testId:\x20','dgSjd','2385778yLnWSK','processPendingHooks','Parsed\x20cucumber\x20test:\x20','createContext','3lGNXLY','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','finishedAt','rfodG','scopes','getId','getTestFrameworksVersions','KEY_TEST_FRAMEWORK_VERSION','getCurrentInstanceName','KEY_HOOK_NAME','DEFAULT_TEST_RESULT','test','rerun_name','debug','matchHookRegex','CucumberTestFramework','lFQSx','unknown','getTrackedInstance','stringify','getAllData','PRE','sendLogCreatedEvent:\x20for\x20testId:\x20','YYMHS','KEY_HOOK_FAILURE','KEY_HOOKS_STARTED','KEY_TEST_LOGS','KEY_TEST_ENDED_AT','util','getTestUUID','sendLogCreatedEvent','failed','UnhandledError','\x20for\x20test:\x20','qTzqN','Stored\x20pending\x20hook\x20for\x20testId:\x20','UAfNL','hookState','failure','error','pqTDK','864101fVeZgw','KEY_HOOK_LAST_FINISHED','KEY_CUSTOM_TAGS','KEY_TEST_SCOPES','started_at','cDyVx','Cucumber\x20log\x20created\x20event','startedAt','endedAt','KEY_HOOK_ID','KEY_TEST_RERUN_NAME','15Fwmtrn','NghqB','testData','KEY_EVENT_ENDED_AT','failure_type','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','removePendingHooks','176CQiOPG','KEY_TEST_UUID','473967hqnNit','tags','KEY_TEST_META','KEY_EVENT_STARTED_AT','body','getTestFrameworks','KEY_HOOK_RESULT','KEY_TEST_SCOPE','KEY_TEST_FAILURE','nSvmd','DEFAULT_HOOK_RESULT','addMultipleEntries','split','KEY_AUTOMATE_SESSION_NAME','trackHookEvent','KEY_HOOK_FAILURE_TYPE','\x20with\x20id\x20','executionContext','hasPendingHooks','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','uuid','base64','instance','KEY_TEST_FRAMEWORK_NAME','browserstackPlatformIndex','193165PGbzID','parseCucumberTest','setTrackedInstance','createTestFrameworkEventPayload','../grpcClient','gnOqo','KEY_TEST_RESULT','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','KEY_LOGS','10715690xAFWUc','Processing\x20','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','slice','KEY_HOOK_LOGS','result','createTestFrameworkEventPayload\x20testId:\x20','parseCucumberTestResult','KEY_HOOK_FAILURE_REASON','../instances/trackedInstance.js','lfAkF','args','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','KEY_TEST_ID','getTestDetails','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','\x20&\x20hook\x20=\x20','passed','Error\x20in\x20createTestFrameworkEventPayload:\x20','toISOString',',\x20state=','logCreatedEvent','inspect',',\x20error:\x20','ceil','push','KEY_TEST_RESULT_AT','../state/hookState.js','trackCucumberInstance','concat','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','NAYBq','failure_reason','\x20payload=','800142tFjCWA','\x20hookState:\x20','trackEvent','finished_at','trackEvent:\x20unsupported\x20testFrameworkState=','Tracked\x20cucumber\x20hook\x20event:\x20','Updated\x20cucumber\x20test\x20result:\x20','hook_type','testFrameworkName','OrKDq','name','resolveInstance','XEeSW','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','TEST','INIT_TEST','location','POST','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','platformIndex','test_run_id','exports','length','KEY_HOOKS_FINISHED','get','hookData','KEY_TEST_LOCATION','testUUID','testFrameworkVersion','ijMUk','setTestDetails','from','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','keys','getRef','jrXTw','pop','getCurrentTestState','KEY_TEST_FILE_PATH','getPendingHooks','file_name','RngYo','runHooks','format','UeqGf','\x20batch\x20','testFrameworkState','tZWUm','\x20testState:\x20','jBhXC','\x20with\x20result:\x20','KEY_TEST_FAILURE_TYPE','hooks','\x20&\x20hookState=','KEY_TEST_ATTACHMENTS','bzScx','meta'];a78_0x5b82=function(){return _0xdc716f;};return a78_0x5b82();}(function(_0x2554e5,_0x2e3953){const _0x180a12=a78_0x192a,_0x1e3233=_0x2554e5();while(!![]){try{const _0x3fa17f=-parseInt(_0x180a12(0x19e))/0x1+parseInt(_0x180a12(0x171))/0x2+-parseInt(_0x180a12(0x175))/0x3*(parseInt(_0x180a12(0x16e))/0x4)+parseInt(_0x180a12(0x1a9))/0x5*(parseInt(_0x180a12(0x1f6))/0x6)+parseInt(_0x180a12(0x1cb))/0x7+-parseInt(_0x180a12(0x1b0))/0x8*(-parseInt(_0x180a12(0x1b2))/0x9)+-parseInt(_0x180a12(0x1d4))/0xa;if(_0x3fa17f===_0x2e3953)break;else _0x1e3233['push'](_0x1e3233['shift']());}catch(_0x45d523){_0x1e3233['push'](_0x1e3233['shift']());}}}(a78_0x5b82,0xbb408));function a78_0x192a(_0x268f58,_0x26fc8e){const _0x5b8281=a78_0x5b82();return a78_0x192a=function(_0x192ab6,_0x5d7c43){_0x192ab6=_0x192ab6-0x14f;let _0x185726=_0x5b8281[_0x192ab6];return _0x185726;},a78_0x192a(_0x268f58,_0x26fc8e);}const TestFramework=require('./testFramework'),TestFrameworkState=require('../state/testFrameworkState.js'),HookState=require(a78_0x2e2d8d(0x1ef)),{createClassLogger}=require('../../../helpers/classLogger.js'),TestFrameworkInstance=require('../instances/testFrameworkInstance.js'),CLIUtils=require('../cliUtils.js'),TrackedInstance=require(a78_0x2e2d8d(0x1dd)),TestFrameworkConstants=require('./constants/testFrameworkConstants.js'),{getManualUploadLogs,getMediaArtifactsLogs}=require('../../../helpers/helper.js'),logger=createClassLogger(a78_0x2e2d8d(0x184)),{v4:uuidv4}=require(a78_0x2e2d8d(0x1c6)),util=require(a78_0x2e2d8d(0x191)),TestInfo=require('../TestInfo.js'),GrpcClient=require(a78_0x2e2d8d(0x1cf));class CucumberTestFramework extends TestFramework{constructor(_0x3ccccc,_0x52b223,_0x29f7bc){super(_0x3ccccc,_0x52b223,_0x29f7bc);}async[a78_0x2e2d8d(0x1f8)](_0x2cedf3,_0x3d88c8,_0x39c4b7={}){const _0x38b6f1=a78_0x2e2d8d,_0x39c53c={};_0x39c53c[_0x38b6f1(0x197)]='trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found',_0x39c53c['jrXTw']=function(_0x36b2a1,_0xcb05df){return _0x36b2a1===_0xcb05df;},_0x39c53c[_0x38b6f1(0x159)]=function(_0x4526be,_0x208a0f){return _0x4526be===_0x208a0f;},_0x39c53c[_0x38b6f1(0x18c)]=_0x38b6f1(0x1ae);const _0x2fd741=_0x39c53c;await super[_0x38b6f1(0x1f8)](_0x2cedf3,_0x3d88c8,_0x39c4b7);const _0xa6a412=this[_0x38b6f1(0x201)](_0x2cedf3,_0x3d88c8,_0x39c4b7);if(!_0xa6a412){logger[_0x38b6f1(0x182)](_0x2fd741[_0x38b6f1(0x197)]);return;}try{let _0x3a1f77,_0x11be05;switch(_0x2cedf3){case TestFrameworkState[_0x38b6f1(0x204)]:_0x3a1f77=_0x39c4b7[_0x38b6f1(0x180)],_0x11be05=TestInfo[_0x38b6f1(0x192)](_0x3a1f77['id']);if(_0x2fd741['jrXTw'](_0x3d88c8,HookState[_0x38b6f1(0x18a)])){logger[_0x38b6f1(0x182)](_0x38b6f1(0x16a)+_0x3a1f77['id']);const _0x1fb8fc={};_0x1fb8fc[_0x38b6f1(0x211)]=_0x11be05,_0x1fb8fc[_0x38b6f1(0x1ab)]=_0x3a1f77,_0xa6a412[_0x38b6f1(0x1bd)](this['parseCucumberTest'](_0x1fb8fc)),logger[_0x38b6f1(0x182)](_0x38b6f1(0x1f2)+_0x3a1f77['id']),await this['processPendingHooks'](_0xa6a412,_0x3a1f77['id']);}else{if(_0x2fd741[_0x38b6f1(0x219)](_0x3d88c8,HookState[_0x38b6f1(0x207)])){const _0x1c45c3={};_0x1c45c3[_0x38b6f1(0x211)]=_0x11be05,_0x1c45c3[_0x38b6f1(0x1ab)]=_0x3a1f77,_0xa6a412[_0x38b6f1(0x1bd)](this[_0x38b6f1(0x1db)](_0x1c45c3)),await this[_0x38b6f1(0x172)](_0xa6a412,_0x3a1f77['id']);}}break;case TestFrameworkState['LOG_REPORT']:_0x2fd741[_0x38b6f1(0x159)](_0x3d88c8,HookState[_0x38b6f1(0x207)])&&await this['sendLogCreatedEvent'](_0xa6a412,_0x2cedf3,_0x39c4b7);break;default:if(CLIUtils[_0x38b6f1(0x183)](_0x2cedf3[_0x38b6f1(0x169)]()[_0x38b6f1(0x1be)]('.')[0x1])){const _0x34da72=await this[_0x38b6f1(0x1c0)](_0xa6a412,_0x2cedf3,_0x3d88c8,_0x39c4b7);_0xa6a412[_0x38b6f1(0x1bd)](_0x34da72);}else logger[_0x38b6f1(0x182)](_0x38b6f1(0x1fa)+_0x2cedf3+_0x38b6f1(0x15d)+_0x3d88c8);break;}}catch(_0x28c3a9){logger[_0x38b6f1(0x19c)](util[_0x38b6f1(0x153)](_0x2fd741[_0x38b6f1(0x18c)],_0x2cedf3,_0x3d88c8,_0x39c4b7['length'],_0x28c3a9));}_0x39c4b7['instance']=_0xa6a412,await this[_0x38b6f1(0x152)](_0xa6a412,_0x2cedf3,_0x3d88c8,_0x39c4b7);}[a78_0x2e2d8d(0x201)](_0x132483,_0x4fd74a,_0x3226d0={}){const _0x586b2b=a78_0x2e2d8d,_0x43d9f8={};_0x43d9f8[_0x586b2b(0x202)]=function(_0x5562ab,_0x5c4e96){return _0x5562ab===_0x5c4e96;},_0x43d9f8['qxcVB']=function(_0x121955,_0x484d3e){return _0x121955===_0x484d3e;};const _0x4b32d3=_0x43d9f8;let _0x4b6c8d=null;return(_0x4b32d3[_0x586b2b(0x202)](_0x132483,TestFrameworkState[_0x586b2b(0x205)])||_0x4b32d3['qxcVB'](_0x132483,TestFrameworkState['NONE']))&&this[_0x586b2b(0x1f0)](_0x132483,_0x3226d0),_0x4b6c8d=TestFramework[_0x586b2b(0x187)](),_0x4b6c8d;}[a78_0x2e2d8d(0x1f0)](_0x8e9ed2,_0x2db233){const _0x1e3de1=a78_0x2e2d8d,_0x7acaea=CLIUtils[_0x1e3de1(0x17d)](),_0x327def=TrackedInstance[_0x1e3de1(0x174)](_0x7acaea);let _0x5240af=null;logger[_0x1e3de1(0x182)](_0x1e3de1(0x208)+_0x7acaea+_0x1e3de1(0x1e8)+_0x8e9ed2),_0x5240af=new TestFrameworkInstance(_0x327def,this[_0x1e3de1(0x1b7)](),this['getTestFrameworksVersions'](),_0x8e9ed2,HookState['NONE']),TestFramework[_0x1e3de1(0x1cd)](_0x327def,_0x5240af),logger[_0x1e3de1(0x182)]('trackCucumberInstance:\x20saved\x20instance\x20contextId='+_0x327def[_0x1e3de1(0x17a)]()+'\x20target='+_0x7acaea);}[a78_0x2e2d8d(0x1cc)](_0x450dd8){const _0xa363eb=a78_0x2e2d8d,_0x3df470={};_0x3df470[_0xa363eb(0x15f)]='No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test';const _0x5bcfd2=_0x3df470,{testUUID:_0x3ac848,testData:_0x388ed1}=_0x450dd8;if(!_0x388ed1||!_0x388ed1[_0xa363eb(0x1c6)])return logger[_0xa363eb(0x182)](_0x5bcfd2[_0xa363eb(0x15f)]),{};const _0x421a85=_0x3ac848,_0xf59bb4=_0x388ed1[_0xa363eb(0x1c6)],_0x38f815=this[_0xa363eb(0x1b7)]()[0x0],_0x1be36a=this[_0xa363eb(0x17b)](),_0x5c74cf={[TestFrameworkConstants[_0xa363eb(0x1c9)]]:_0x38f815,[TestFrameworkConstants[_0xa363eb(0x17c)]]:_0x1be36a[_0x38f815],[TestFrameworkConstants[_0xa363eb(0x18f)]]:[],[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:{},[TestFrameworkConstants[_0xa363eb(0x18e)]]:{},[TestFrameworkConstants[_0xa363eb(0x1b1)]]:_0x421a85,[TestFrameworkConstants[_0xa363eb(0x1d1)]]:TestFrameworkConstants[_0xa363eb(0x17f)],[TestFrameworkConstants[_0xa363eb(0x1bf)]]:_0x388ed1[_0xa363eb(0x200)]||'',[TestFrameworkConstants[_0xa363eb(0x21c)]]:_0x388ed1[_0xa363eb(0x150)]||'',[TestFrameworkConstants[_0xa363eb(0x1e1)]]:_0xf59bb4,[TestFrameworkConstants[_0xa363eb(0x168)]]:_0x388ed1[_0xa363eb(0x200)]||'',[TestFrameworkConstants[_0xa363eb(0x210)]]:_0x388ed1[_0xa363eb(0x206)]||'',[TestFrameworkConstants['KEY_TEST_CODE']]:_0x388ed1[_0xa363eb(0x1b6)]?.['code']||null,[TestFrameworkConstants[_0xa363eb(0x161)]]:_0x388ed1[_0xa363eb(0x1b3)]||[],[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x388ed1[_0xa363eb(0x1a5)]||new Date()[_0xa363eb(0x1e7)](),[TestFrameworkConstants[_0xa363eb(0x1b9)]]:_0x388ed1[_0xa363eb(0x179)]?.[0x0]||'',[TestFrameworkConstants[_0xa363eb(0x1a1)]]:_0x388ed1[_0xa363eb(0x179)]||[],[TestFrameworkConstants[_0xa363eb(0x1a8)]]:_0x388ed1['customRerunParam']?.[_0xa363eb(0x181)]||_0x388ed1['name']||'',[TestFrameworkConstants[_0xa363eb(0x1a0)]]:{},[TestFrameworkConstants[_0xa363eb(0x1b4)]]:_0x388ed1[_0xa363eb(0x160)]||{}};TestInfo[_0xa363eb(0x214)](_0xf59bb4,_0x5c74cf),logger[_0xa363eb(0x182)](_0xa363eb(0x173)+_0x388ed1[_0xa363eb(0x200)]+'\x20with\x20UUID:\x20'+_0x421a85);const _0x1c491a={};return _0x1c491a[_0xf59bb4]=_0x5c74cf,_0x1c491a;}[a78_0x2e2d8d(0x1db)](_0x4f0161){const _0x2267ed=a78_0x2e2d8d,_0x55e118={'OrKDq':_0x2267ed(0x203),'Kbjdt':_0x2267ed(0x186),'pqTDK':function(_0x3e417a,_0x3cd071){return _0x3e417a===_0x3cd071;},'gnOqo':'failed','Aufzp':_0x2267ed(0x195),'dgSjd':function(_0x374866,_0x5abb09,_0x352bd2){return _0x374866(_0x5abb09,_0x352bd2);},'ijMUk':function(_0x2724b6,_0x48bb4c){return _0x2724b6>_0x48bb4c;}},{testUUID:_0x4ddbb4,testData:_0x8c4fa3}=_0x4f0161;if(!_0x8c4fa3||!_0x8c4fa3[_0x2267ed(0x1c6)])return logger[_0x2267ed(0x182)](_0x55e118[_0x2267ed(0x1ff)]),{};const _0x2de218=this[_0x2267ed(0x201)](TestFrameworkState[_0x2267ed(0x204)],HookState['POST']),_0x295e86=_0x8c4fa3[_0x2267ed(0x1c6)],_0x21314f=TestInfo['getTestDetails'](_0x295e86)||{},_0x34d1e8=_0x21314f?_0x21314f[TestFrameworkConstants[_0x2267ed(0x1a0)]]||{}:{},_0xa91198={..._0x21314f,[TestFrameworkConstants['KEY_TEST_RESULT']]:_0x8c4fa3[_0x2267ed(0x1d9)]||_0x55e118['Kbjdt'],[TestFrameworkConstants[_0x2267ed(0x190)]]:_0x8c4fa3[_0x2267ed(0x177)]||new Date()['toISOString'](),[TestFrameworkConstants[_0x2267ed(0x1ee)]]:new Date()['toISOString'](),[TestFrameworkConstants[_0x2267ed(0x1a0)]]:_0x34d1e8,[TestFrameworkConstants[_0x2267ed(0x1d3)]]:[],[TestFrameworkConstants[_0x2267ed(0x1b4)]]:_0x8c4fa3[_0x2267ed(0x160)]||{}};_0x55e118[_0x2267ed(0x19d)](_0x8c4fa3[_0x2267ed(0x1d9)],_0x55e118[_0x2267ed(0x1d0)])&&_0x8c4fa3[_0x2267ed(0x19b)]&&(_0xa91198[TestFrameworkConstants[_0x2267ed(0x15b)]]=_0x8c4fa3['failure_type']||_0x55e118['Aufzp'],_0xa91198[TestFrameworkConstants['KEY_TEST_FAILURE_REASON']]=_0x8c4fa3[_0x2267ed(0x1f4)]||'',_0xa91198[TestFrameworkConstants[_0x2267ed(0x1ba)]]=_0x8c4fa3['failure']);const _0x3ddaf6=TestInfo['getTestDetails'](_0x295e86)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x245184=_0x55e118[_0x2267ed(0x170)](getManualUploadLogs,_0x3ddaf6,_0x2de218[_0x2267ed(0x189)]()[_0x2267ed(0x20e)](_0x295e86)[TestFrameworkConstants['KEY_TEST_UUID']]);if(_0x55e118[_0x2267ed(0x213)](_0x245184[_0x2267ed(0x20c)],0x0)){const _0x723bd7=_0xa91198[TestFrameworkConstants[_0x2267ed(0x1d3)]]||[];_0xa91198[TestFrameworkConstants[_0x2267ed(0x1d3)]]=[..._0x723bd7,..._0x245184];}_0x8c4fa3['hooks']&&_0x55e118[_0x2267ed(0x213)](_0x8c4fa3[_0x2267ed(0x15c)][_0x2267ed(0x20c)],0x0)&&(_0xa91198[TestFrameworkConstants[_0x2267ed(0x20d)]]=_0x8c4fa3['hooks']);TestInfo[_0x2267ed(0x214)](_0x295e86,_0xa91198),logger['debug'](_0x2267ed(0x1fc)+_0x8c4fa3[_0x2267ed(0x200)]+_0x2267ed(0x15a)+_0x8c4fa3['result']);const _0x27a48d={};return _0x27a48d[_0x295e86]=_0xa91198,_0x27a48d;}async['trackHookEvent'](_0x3c53b4,_0xb0dbca,_0x449d52,_0x3635c1){const _0x3ec9ed=a78_0x2e2d8d,_0x56cca0={'uPtRb':'No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','UeqGf':function(_0x289a99){return _0x289a99();},'aMdZC':function(_0x184469,_0x3b8a76){return _0x184469 in _0x3b8a76;},'lfAkF':function(_0x5f4efd,_0x40aa21){return _0x5f4efd===_0x40aa21;},'mrvRA':function(_0x36ab1e,_0x3a034b){return _0x36ab1e===_0x3a034b;},'hJecU':function(_0x1336ff,_0x3eeb58){return _0x1336ff>_0x3eeb58;},'Cfxid':_0x3ec9ed(0x194),'UAfNL':'UnhandledError','NghqB':_0x3ec9ed(0x1e5),'lFQSx':function(_0x16c52e,_0x5e7a3a){return _0x16c52e!==_0x5e7a3a;}},{hookData:_0x1d8d7f}=_0x3635c1;if(!_0x1d8d7f)return logger[_0x3ec9ed(0x182)](_0x56cca0['uPtRb']),{};const _0x179688=_0x1d8d7f[_0x3ec9ed(0x1c6)]||_0x56cca0[_0x3ec9ed(0x154)](uuidv4),_0x31ff8b=_0x1d8d7f[_0x3ec9ed(0x20a)],_0x27f799=_0xb0dbca[_0x3ec9ed(0x169)]()[_0x3ec9ed(0x1be)]('.')[0x1],_0xcab357=TestInfo[_0x3ec9ed(0x1e2)](_0x31ff8b)[TestFrameworkConstants[_0x3ec9ed(0x1a0)]]||{},_0x11f10c=_0x3c53b4[_0x3ec9ed(0x189)]()['get'](_0x31ff8b);if(!_0x11f10c)return logger['debug'](_0x3ec9ed(0x216)+_0x31ff8b+',\x20storing\x20as\x20pending\x20hook'),this[_0x3ec9ed(0x16d)](_0x3c53b4,_0x31ff8b,_0xb0dbca,_0x449d52,_0x3635c1),{};let _0x49c38a=_0x11f10c[TestFrameworkConstants['KEY_HOOKS_STARTED']];!_0x49c38a&&(_0x49c38a={});!_0x56cca0[_0x3ec9ed(0x16b)](_0x27f799,_0x49c38a)&&(_0x49c38a[_0x27f799]=[]);let _0x2c217e=_0x11f10c[TestFrameworkConstants[_0x3ec9ed(0x20d)]];!_0x2c217e&&(_0x2c217e={});!_0x56cca0[_0x3ec9ed(0x16b)](_0x27f799,_0x2c217e)&&(_0x2c217e[_0x27f799]=[]);const _0x470089={[TestFrameworkConstants['KEY_HOOKS_STARTED']]:_0x49c38a,[TestFrameworkConstants[_0x3ec9ed(0x20d)]]:_0x2c217e},_0xf7f3ac={};_0xf7f3ac[_0x31ff8b]=_0x470089;const _0x730e39=_0xf7f3ac;if(_0x56cca0[_0x3ec9ed(0x1de)](_0x449d52,HookState[_0x3ec9ed(0x18a)])){const _0x2e548a={[TestFrameworkConstants['KEY_HOOK_ID']]:_0x179688,[TestFrameworkConstants['KEY_HOOK_RESULT']]:TestFrameworkConstants[_0x3ec9ed(0x1bc)],[TestFrameworkConstants[_0x3ec9ed(0x1b5)]]:_0x1d8d7f[_0x3ec9ed(0x1a2)],[TestFrameworkConstants[_0x3ec9ed(0x1d8)]]:[],[TestFrameworkConstants[_0x3ec9ed(0x17e)]]:_0x1d8d7f[_0x3ec9ed(0x1fd)],[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0xcab357};_0x2e548a['key']=_0x27f799;const _0x198b35=_0x2e548a;_0x49c38a[_0x27f799][_0x3ec9ed(0x1ed)](_0x198b35),_0x730e39[_0x31ff8b][TestFrameworkConstants['KEY_HOOK_LAST_STARTED']]=_0x27f799,logger[_0x3ec9ed(0x182)](_0x3ec9ed(0x1e3)+_0x27f799+_0x3ec9ed(0x1e4)+_0x198b35+'\x20\x20and\x20args\x20=\x20'+_0x3635c1);}else{if(_0x56cca0[_0x3ec9ed(0x166)](_0x449d52,HookState[_0x3ec9ed(0x207)])){const _0x36eb39=_0x1d8d7f['result'],_0x4b065f=_0x49c38a[_0x27f799]||[];logger['debug'](_0x3ec9ed(0x1d2)+_0x4b065f+'\x20and\x20args\x20=\x20'+_0x3635c1);if(_0x56cca0[_0x3ec9ed(0x163)](_0x4b065f['length'],0x0)){const _0x146363=_0x4b065f[_0x3ec9ed(0x21a)]();_0x56cca0[_0x3ec9ed(0x1de)](_0x1d8d7f[_0x3ec9ed(0x1d9)],_0x56cca0['Cfxid'])&&_0x1d8d7f['failure_data']?(_0x146363[TestFrameworkConstants[_0x3ec9ed(0x1c1)]]=_0x1d8d7f[_0x3ec9ed(0x1ad)]||_0x56cca0[_0x3ec9ed(0x199)],_0x146363[TestFrameworkConstants[_0x3ec9ed(0x1dc)]]=_0x1d8d7f[_0x3ec9ed(0x1f4)]||'',_0x146363[TestFrameworkConstants[_0x3ec9ed(0x18d)]]=_0x1d8d7f['failure_data']):_0x146363[TestFrameworkConstants[_0x3ec9ed(0x1b8)]]=_0x56cca0[_0x3ec9ed(0x1aa)];_0x56cca0[_0x3ec9ed(0x185)](_0x36eb39,TestFrameworkConstants[_0x3ec9ed(0x1bc)])&&(_0x146363[TestFrameworkConstants[_0x3ec9ed(0x1b8)]]=_0x36eb39);_0x146363[TestFrameworkConstants[_0x3ec9ed(0x1ac)]]=_0x1d8d7f[_0x3ec9ed(0x1f9)]||new Date()[_0x3ec9ed(0x1e7)](),_0x146363[TestFrameworkConstants[_0x3ec9ed(0x1a0)]]=_0xcab357;const _0x328489=_0x146363[TestFrameworkConstants[_0x3ec9ed(0x1a7)]];!_0x2c217e[_0x27f799]&&(_0x2c217e[_0x27f799]=[]),_0x2c217e[_0x27f799]['push'](_0x146363),_0x730e39[_0x31ff8b][TestFrameworkConstants[_0x3ec9ed(0x19f)]]=_0x27f799;}}}return logger[_0x3ec9ed(0x182)](_0x3ec9ed(0x1fb)+_0x1d8d7f[_0x3ec9ed(0x1fd)]+_0x3ec9ed(0x1c2)+_0x179688+_0x3ec9ed(0x196)+_0x31ff8b),_0x730e39;}[a78_0x2e2d8d(0x1ce)](_0x188382){const _0x423459=a78_0x2e2d8d,_0x4b35ad={};_0x4b35ad[_0x423459(0x151)]=_0x423459(0x1c7);const _0x21dd98=_0x4b35ad;try{const _0x4bfc1e=_0x188382['test']?_0x188382['test']['id']:_0x188382[_0x423459(0x20f)][_0x423459(0x20a)],_0x203339=_0x188382[_0x423459(0x1c8)],_0xe890be=_0x203339[_0x423459(0x164)](),_0x56324a=_0x203339['getAllData']()[_0x423459(0x20e)](_0x4bfc1e);if(!_0x56324a)return logger[_0x423459(0x182)]('createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x4bfc1e),{};logger[_0x423459(0x182)](_0x423459(0x1da)+_0x4bfc1e);const {[TestFrameworkConstants[_0x423459(0x1c9)]]:_0x30914f='',[TestFrameworkConstants[_0x423459(0x17c)]]:_0x1aa4f4='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x1e6ddb='',[TestFrameworkConstants[_0x423459(0x190)]]:_0x4ee75d=''}=_0x56324a,_0x3aefea=_0x203339[_0x423459(0x21b)]()[_0x423459(0x169)]()[_0x423459(0x1be)]('.')[0x1],_0x1902a9=_0x203339[_0x423459(0x167)]()[_0x423459(0x169)]()[_0x423459(0x1be)]('.')[0x1],_0x1ca690=global?.[_0x423459(0x1ca)]??0x0,_0x3ef5d2=_0x203339[_0x423459(0x218)](),_0x106475=Buffer[_0x423459(0x215)](JSON[_0x423459(0x188)](_0x56324a))['toString'](_0x21dd98['RngYo']),_0x1b1cea={'hash':_0xe890be[_0x423459(0x17a)](),'threadId':_0xe890be['getThreadId']()[_0x423459(0x169)](),'processId':_0xe890be['getProcessId']()[_0x423459(0x169)]()},_0xe08466={};_0xe08466[_0x423459(0x209)]=_0x1ca690,_0xe08466[_0x423459(0x1fe)]=_0x30914f,_0xe08466[_0x423459(0x212)]=_0x1aa4f4,_0xe08466[_0x423459(0x156)]=_0x3aefea,_0xe08466['hookState']=_0x1902a9,_0xe08466[_0x423459(0x1a5)]=_0x1e6ddb,_0xe08466[_0x423459(0x1a6)]=_0x4ee75d,_0xe08466[_0x423459(0x1c6)]=_0x3ef5d2,_0xe08466['eventJson']=_0x106475,_0xe08466[_0x423459(0x1c3)]=_0x1b1cea;const _0x3d9160=_0xe08466;return logger[_0x423459(0x182)](_0x423459(0x1c5)+_0x4bfc1e+_0x423459(0x158)+_0x3aefea+_0x423459(0x1f7)+_0x1902a9),_0x3d9160;}catch(_0x112054){return logger[_0x423459(0x19c)](_0x423459(0x1e6)+util['format'](_0x112054)),{};}}async[a78_0x2e2d8d(0x193)](_0x5b7e5a,_0x277e58,_0x227cfa){const _0x4acb2e=a78_0x2e2d8d,_0x2b2e06={'tZWUm':function(_0x552732,_0x2f5ee6,_0x586973){return _0x552732(_0x2f5ee6,_0x586973);},'nSvmd':function(_0x33a8c5,_0x456533){return _0x33a8c5===_0x456533;},'OqjtE':_0x4acb2e(0x1e0),'xGQAn':function(_0x2578a0,_0x4b0a59){return _0x2578a0/_0x4b0a59;},'cDyVx':function(_0x1978d5,_0x4c79bb){return _0x1978d5<_0x4c79bb;},'KoVEG':function(_0x641494,_0x21321d){return _0x641494*_0x21321d;},'NAYBq':function(_0x27a8cf,_0x422d06){return _0x27a8cf+_0x422d06;},'ticIc':function(_0x143e4c,_0x1eaa01){return _0x143e4c+_0x1eaa01;},'yMDyd':_0x4acb2e(0x1a4)};try{const _0x52d68f=_0x227cfa['testUUID'],_0x5d250e=_0x5b7e5a[_0x4acb2e(0x189)]()['get'](_0x52d68f),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x4d187f='',[TestFrameworkConstants[_0x4acb2e(0x17c)]]:_0x580458=''}=_0x5d250e,_0x521b2c=TestInfo[_0x4acb2e(0x16c)](_0x52d68f),_0x4f206a=TestInfo[_0x4acb2e(0x1e2)](_0x52d68f)[TestFrameworkConstants[_0x4acb2e(0x15e)]]||{},_0x62908d=_0x2b2e06[_0x4acb2e(0x157)](getMediaArtifactsLogs,_0x4f206a,_0x5b7e5a['getAllData']()['get'](_0x52d68f)[TestFrameworkConstants[_0x4acb2e(0x1b1)]]),_0x428c40=(_0x521b2c||[])[_0x4acb2e(0x1f1)](_0x62908d||[]);if(!_0x428c40||_0x2b2e06[_0x4acb2e(0x1bb)](_0x428c40[_0x4acb2e(0x20c)],0x0)){logger['debug'](_0x2b2e06[_0x4acb2e(0x165)]);return;}const _0x5353b9=0x28,_0x53efde=Math[_0x4acb2e(0x1ec)](_0x2b2e06['xGQAn'](_0x428c40[_0x4acb2e(0x20c)],_0x5353b9));for(let _0x1ebfcd=0x0;_0x2b2e06[_0x4acb2e(0x1a3)](_0x1ebfcd,_0x53efde);_0x1ebfcd++){const _0x4f429f=_0x2b2e06['KoVEG'](_0x1ebfcd,_0x5353b9),_0x479214=_0x2b2e06[_0x4acb2e(0x1f3)](_0x4f429f,_0x5353b9),_0x4b06e7=_0x428c40[_0x4acb2e(0x1d7)](_0x4f429f,_0x479214),_0x285ddc={'platformIndex':global?.[_0x4acb2e(0x1ca)]??0x0,'logs':_0x4b06e7,'testFrameworkName':_0x4d187f,'testFrameworkVersion':_0x580458,'testFrameworkState':_0x277e58[_0x4acb2e(0x169)]()[_0x4acb2e(0x1be)]('.')[0x1]};logger['debug'](_0x4acb2e(0x18b)+_0x52d68f+_0x4acb2e(0x155)+_0x2b2e06['ticIc'](_0x1ebfcd,0x1)+'/'+_0x53efde+_0x4acb2e(0x1f5)+util['inspect'](_0x285ddc));const _0x552aab=await GrpcClient['getInstance']()[_0x4acb2e(0x1e9)](_0x285ddc);logger[_0x4acb2e(0x182)](_0x4acb2e(0x18b)+_0x52d68f+_0x4acb2e(0x155)+_0x2b2e06[_0x4acb2e(0x1f3)](_0x1ebfcd,0x1)+'/'+_0x53efde+'\x20response='+util[_0x4acb2e(0x1ea)](_0x552aab));}}catch(_0x3b46fe){logger[_0x4acb2e(0x19c)](_0x4acb2e(0x176)+util[_0x4acb2e(0x153)](_0x3b46fe));}logger[_0x4acb2e(0x182)](_0x2b2e06['yMDyd']);}[a78_0x2e2d8d(0x16d)](_0x3fd8f7,_0x4e5fd8,_0x102077,_0x25f64c,_0x8393a2){const _0x857aef=a78_0x2e2d8d,_0x17b1f7={'testId':_0x4e5fd8,'testFrameworkState':_0x102077,'hookState':_0x25f64c,'args':_0x8393a2,'timestamp':new Date()[_0x857aef(0x1e7)]()};_0x3fd8f7[_0x857aef(0x162)](_0x4e5fd8,_0x17b1f7),logger[_0x857aef(0x182)](_0x857aef(0x198)+_0x4e5fd8+',\x20state:\x20'+_0x102077+',\x20hookState:\x20'+_0x25f64c);}async['processPendingHooks'](_0x7e25e0,_0xe7403a){const _0x5833ea=a78_0x2e2d8d,_0x69dd6d={};_0x69dd6d[_0x5833ea(0x178)]=function(_0x4b86fd,_0x27385f){return _0x4b86fd>_0x27385f;};const _0x265eac=_0x69dd6d;if(!_0x7e25e0[_0x5833ea(0x1c4)](_0xe7403a))return;const _0x669284=_0x7e25e0[_0x5833ea(0x14f)](_0xe7403a);logger['debug'](_0x5833ea(0x1d5)+_0x669284[_0x5833ea(0x20c)]+_0x5833ea(0x16f)+_0xe7403a);for(const _0x29d7cc of _0x669284){try{const _0x330433=await this[_0x5833ea(0x1c0)](_0x7e25e0,_0x29d7cc['testFrameworkState'],_0x29d7cc['hookState'],_0x29d7cc[_0x5833ea(0x1df)]);_0x330433&&_0x265eac[_0x5833ea(0x178)](Object[_0x5833ea(0x217)](_0x330433)[_0x5833ea(0x20c)],0x0)&&_0x7e25e0[_0x5833ea(0x1bd)](_0x330433),await this[_0x5833ea(0x152)](_0x7e25e0,_0x29d7cc[_0x5833ea(0x156)],_0x29d7cc[_0x5833ea(0x19a)],_0x29d7cc[_0x5833ea(0x1df)]);}catch(_0x3d5f92){logger[_0x5833ea(0x19c)](_0x5833ea(0x1d6)+_0xe7403a+_0x5833ea(0x1eb)+_0x3d5f92);}}_0x7e25e0[_0x5833ea(0x1af)](_0xe7403a),logger['debug']('Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20'+_0xe7403a);}}module[a78_0x2e2d8d(0x20b)]=CucumberTestFramework;
1
+ function a78_0x1481(_0x168e9c,_0x243720){const _0x50b720=a78_0x50b7();return a78_0x1481=function(_0x148177,_0x30e598){_0x148177=_0x148177-0x8d;let _0x2fb4aa=_0x50b720[_0x148177];return _0x2fb4aa;},a78_0x1481(_0x168e9c,_0x243720);}const a78_0x198dd9=a78_0x1481;(function(_0x55caad,_0x3fdc28){const _0x4efc04=a78_0x1481,_0x356077=_0x55caad();while(!![]){try{const _0x53d476=parseInt(_0x4efc04(0x136))/0x1*(-parseInt(_0x4efc04(0x12d))/0x2)+-parseInt(_0x4efc04(0x12f))/0x3+-parseInt(_0x4efc04(0x11d))/0x4+parseInt(_0x4efc04(0x13f))/0x5+parseInt(_0x4efc04(0x116))/0x6+-parseInt(_0x4efc04(0x129))/0x7+parseInt(_0x4efc04(0xde))/0x8;if(_0x53d476===_0x3fdc28)break;else _0x356077['push'](_0x356077['shift']());}catch(_0x2ce277){_0x356077['push'](_0x356077['shift']());}}}(a78_0x50b7,0x1d9a9));const TestFramework=require(a78_0x198dd9(0xb9)),TestFrameworkState=require('../state/testFrameworkState.js'),HookState=require(a78_0x198dd9(0x122)),{createClassLogger}=require(a78_0x198dd9(0x103)),TestFrameworkInstance=require(a78_0x198dd9(0x161)),CLIUtils=require(a78_0x198dd9(0x8f)),TrackedInstance=require(a78_0x198dd9(0xe4)),TestFrameworkConstants=require(a78_0x198dd9(0xcc)),{getManualUploadLogs,getMediaArtifactsLogs}=require('../../../helpers/helper.js'),logger=createClassLogger('CucumberTestFramework'),{v4:uuidv4}=require('uuid'),util=require(a78_0x198dd9(0xc2)),TestInfo=require(a78_0x198dd9(0xfa)),GrpcClient=require('../grpcClient');function a78_0x50b7(){const _0x357794=['setTestDetails','557289SqjTdx','getTestFrameworksVersions','vNPCw','testFrameworkVersion','getCurrentTestState','KEY_EVENT_ENDED_AT','KEY_TEST_NAME','11794pkMsYV','finished_at','\x20testState:\x20','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','KEY_TEST_STARTED_AT','KEY_TEST_FAILURE_REASON','eventJson','NNmwk','KEY_TEST_LOGS','858795XLiyxV','\x20pending\x20hooks\x20for\x20testId:\x20','parseCucumberTestResult','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','\x20and\x20args\x20=\x20','KEY_EVENT_STARTED_AT','ZmgUZ','trackEvent:\x20unsupported\x20testFrameworkState=','getId','endedAt','NONE','createTestFrameworkEventPayload\x20testId:\x20','uuid','error','KEY_HOOK_LOGS','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','failed','Cucumber\x20log\x20created\x20event','teQBB','YnJZD','getTrackedInstance','getInstance','trackEvent','runHooks','INIT_TEST','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','testFrameworkState','length','startedAt','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','KEY_AUTOMATE_SESSION_NAME','KEY_HOOK_RESULT','KEY_LOGS','ehAel','../instances/testFrameworkInstance.js','PRE','KEY_TEST_SCOPES','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','testFrameworkName','../cliUtils.js','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','getCurrentHookState','KEY_HOOK_ID','getThreadId','browserstackPlatformIndex','\x20payload=','args','processPendingHooks','\x20\x20and\x20args\x20=\x20','sendLogCreatedEvent','dyFcv','addPendingHook','NWJpc','push','trackHookEvent','Processing\x20','test_run_id','logCreatedEvent','LOG_REPORT',',\x20hookState:\x20','from','ByPmR','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','body','test','instance','failure_data','Parsed\x20cucumber\x20test:\x20','hooks','bCoEM','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','hookData','removePendingHooks','testData','KEY_TEST_LOCATION',',\x20storing\x20as\x20pending\x20hook','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','OwbZy','getPendingHooks','DEFAULT_HOOK_RESULT','meta','./testFramework','KEY_TEST_ATTACHMENTS','POST','vrQlb','KEY_TEST_FRAMEWORK_NAME','HNuCr','name','hookState','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','util','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','getAllData','IvSWk','KEY_HOOK_NAME','\x20response=','SrEqT','code','Inoov','\x20with\x20result:\x20','./constants/testFrameworkConstants.js','location','hook_type','createContext','KEY_HOOK_FAILURE_REASON','Error\x20in\x20createTestFrameworkEventPayload:\x20','tgHVs','KEY_CUSTOM_TAGS','inspect','KEY_TEST_FILE_PATH','toISOString','trackCucumberInstance','KEY_HOOK_LAST_STARTED','sbonc','KEY_TEST_TAGS','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','KEY_TEST_META','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','4222136geSkrY','setTrackedInstance','DEFAULT_TEST_RESULT','pop','KEY_TEST_RESULT','KEY_HOOK_FAILURE_TYPE','../instances/trackedInstance.js','KEY_HOOK_FAILURE','KEY_TEST_RESULT_AT','wGZVd',',\x20state:\x20','parseCucumberTest','sendLogCreatedEvent:\x20for\x20testId:\x20','resolveInstance','passed','file_name','KEY_TEST_ENDED_AT','KEY_HOOKS_FINISHED','Tracked\x20cucumber\x20hook\x20event:\x20','finishedAt','\x20for\x20test:\x20','failure','keys','Stored\x20pending\x20hook\x20for\x20testId:\x20','KEY_TEST_CODE','split','debug','XoBak','../TestInfo.js','BzxGG','format','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','result','getTestDetails','TANwi','yTjiD','KEY_TEST_FAILURE_TYPE','../../../helpers/classLogger.js','getCurrentInstanceName','ceil','exports','\x20with\x20UUID:\x20','failure_type','KEY_TEST_UUID','storePendingHook','KEY_HOOK_LAST_FINISHED','testUUID','get','failure_reason','getTestFrameworks','KEY_TEST_FRAMEWORK_VERSION','cemJl','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','EtndO','KEY_TEST_SCOPE','EiQUG','172554yTRqBi','toString',',\x20error:\x20','createTestFrameworkEventPayload','\x20&\x20hookState=','stringify','readLogObjects','566068vpvhVA','KEY_HOOKS_STARTED','getRef','unknown','KEY_TEST_ID','../state/hookState.js','\x20target=','getProcessId','addMultipleEntries','TEST','KEY_TEST_FAILURE','zVoHO','719866LFhxaK','\x20with\x20id\x20','concat','platformIndex','30rQMElv'];a78_0x50b7=function(){return _0x357794;};return a78_0x50b7();}class CucumberTestFramework extends TestFramework{constructor(_0x3289e4,_0x25b006,_0xe8d84b){super(_0x3289e4,_0x25b006,_0xe8d84b);}async[a78_0x198dd9(0x155)](_0x4e6c63,_0x5971df,_0x1efc79={}){const _0x1c53d6=a78_0x198dd9,_0x1749a3={};_0x1749a3[_0x1c53d6(0xbe)]=_0x1c53d6(0x90),_0x1749a3[_0x1c53d6(0x111)]=function(_0x253f80,_0x57cbd3){return _0x253f80===_0x57cbd3;},_0x1749a3[_0x1c53d6(0x152)]=function(_0x3b69c9,_0x5b6c45){return _0x3b69c9===_0x5b6c45;},_0x1749a3[_0x1c53d6(0xc5)]=_0x1c53d6(0x14e);const _0xef174=_0x1749a3;await super[_0x1c53d6(0x155)](_0x4e6c63,_0x5971df,_0x1efc79);const _0x835e23=this[_0x1c53d6(0xeb)](_0x4e6c63,_0x5971df,_0x1efc79);if(!_0x835e23){logger['debug'](_0xef174[_0x1c53d6(0xbe)]);return;}try{let _0x309e55,_0x29c6d2;switch(_0x4e6c63){case TestFrameworkState[_0x1c53d6(0x126)]:_0x309e55=_0x1efc79['test'],_0x29c6d2=TestInfo['getTestUUID'](_0x309e55['id']);if(_0xef174[_0x1c53d6(0x111)](_0x5971df,HookState[_0x1c53d6(0x162)])){logger[_0x1c53d6(0xf8)](_0x1c53d6(0x142)+_0x309e55['id']);const _0x1317f2={};_0x1317f2[_0x1c53d6(0x10c)]=_0x29c6d2,_0x1317f2[_0x1c53d6(0xb1)]=_0x309e55,_0x835e23[_0x1c53d6(0x125)](this[_0x1c53d6(0xe9)](_0x1317f2)),logger[_0x1c53d6(0xf8)](_0x1c53d6(0x112)+_0x309e55['id']),await this['processPendingHooks'](_0x835e23,_0x309e55['id']);}else{if(_0xef174['cemJl'](_0x5971df,HookState[_0x1c53d6(0xbb)])){const _0x4c8409={};_0x4c8409[_0x1c53d6(0x10c)]=_0x29c6d2,_0x4c8409[_0x1c53d6(0xb1)]=_0x309e55,_0x835e23['addMultipleEntries'](this['parseCucumberTestResult'](_0x4c8409)),await this[_0x1c53d6(0x97)](_0x835e23,_0x309e55['id']);}}break;case TestFrameworkState[_0x1c53d6(0xa2)]:_0xef174[_0x1c53d6(0x152)](_0x5971df,HookState['POST'])&&await this[_0x1c53d6(0x99)](_0x835e23,_0x4e6c63,_0x1efc79);break;default:if(CLIUtils['matchHookRegex'](_0x4e6c63['toString']()[_0x1c53d6(0xf7)]('.')[0x1])){const _0x1b0347=await this[_0x1c53d6(0x9e)](_0x835e23,_0x4e6c63,_0x5971df,_0x1efc79);_0x835e23[_0x1c53d6(0x125)](_0x1b0347);}else logger[_0x1c53d6(0xf8)](_0x1c53d6(0x146)+_0x4e6c63+_0x1c53d6(0x11a)+_0x5971df);break;}}catch(_0x1064cb){logger[_0x1c53d6(0x14c)](util[_0x1c53d6(0xfc)](_0xef174[_0x1c53d6(0xc5)],_0x4e6c63,_0x5971df,_0x1efc79[_0x1c53d6(0x15a)],_0x1064cb));}_0x1efc79[_0x1c53d6(0xa9)]=_0x835e23,await this[_0x1c53d6(0x156)](_0x835e23,_0x4e6c63,_0x5971df,_0x1efc79);}[a78_0x198dd9(0xeb)](_0x23fcaa,_0x27ea57,_0x1ae372={}){const _0x218db7=a78_0x198dd9,_0x2b8b75={};_0x2b8b75[_0x218db7(0x115)]=function(_0x4996bc,_0xe6342f){return _0x4996bc===_0xe6342f;};const _0x106b66=_0x2b8b75;let _0x19d953=null;return(_0x106b66[_0x218db7(0x115)](_0x23fcaa,TestFrameworkState[_0x218db7(0x157)])||_0x106b66[_0x218db7(0x115)](_0x23fcaa,TestFrameworkState[_0x218db7(0x149)]))&&this[_0x218db7(0xd7)](_0x23fcaa,_0x1ae372),_0x19d953=TestFramework[_0x218db7(0x153)](),_0x19d953;}[a78_0x198dd9(0xd7)](_0x22b1e7,_0x59449b){const _0x259864=a78_0x198dd9,_0x111683=CLIUtils[_0x259864(0x104)](),_0x13b427=TrackedInstance[_0x259864(0xcf)](_0x111683);let _0x2d2edb=null;logger[_0x259864(0xf8)](_0x259864(0xa6)+_0x111683+',\x20state='+_0x22b1e7),_0x2d2edb=new TestFrameworkInstance(_0x13b427,this[_0x259864(0x10f)](),this[_0x259864(0x130)](),_0x22b1e7,HookState[_0x259864(0x149)]),TestFramework[_0x259864(0xdf)](_0x13b427,_0x2d2edb),logger['debug']('trackCucumberInstance:\x20saved\x20instance\x20contextId='+_0x13b427['getId']()+_0x259864(0x123)+_0x111683);}[a78_0x198dd9(0xe9)](_0x13bb17){const _0x1259a1=a78_0x198dd9,_0x5bc1c3={};_0x5bc1c3[_0x1259a1(0xe7)]=_0x1259a1(0x158);const _0x2fa0d2=_0x5bc1c3,{testUUID:_0x4b3782,testData:_0x2c5fc9}=_0x13bb17;if(!_0x2c5fc9||!_0x2c5fc9['uuid'])return logger['debug'](_0x2fa0d2[_0x1259a1(0xe7)]),{};const _0x47771f=_0x4b3782,_0x1c92d4=_0x2c5fc9[_0x1259a1(0x14b)],_0x3729f4=this[_0x1259a1(0x10f)]()[0x0],_0x5b6952=this['getTestFrameworksVersions'](),_0x5a16b1={[TestFrameworkConstants[_0x1259a1(0xbd)]]:_0x3729f4,[TestFrameworkConstants[_0x1259a1(0x110)]]:_0x5b6952[_0x3729f4],[TestFrameworkConstants[_0x1259a1(0x13e)]]:[],[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:{},[TestFrameworkConstants[_0x1259a1(0x11e)]]:{},[TestFrameworkConstants[_0x1259a1(0x109)]]:_0x47771f,[TestFrameworkConstants[_0x1259a1(0xe2)]]:TestFrameworkConstants[_0x1259a1(0xe0)],[TestFrameworkConstants[_0x1259a1(0x15d)]]:_0x2c5fc9[_0x1259a1(0xbf)]||'',[TestFrameworkConstants[_0x1259a1(0xd5)]]:_0x2c5fc9[_0x1259a1(0xed)]||'',[TestFrameworkConstants[_0x1259a1(0x121)]]:_0x1c92d4,[TestFrameworkConstants[_0x1259a1(0x135)]]:_0x2c5fc9[_0x1259a1(0xbf)]||'',[TestFrameworkConstants[_0x1259a1(0xb2)]]:_0x2c5fc9[_0x1259a1(0xcd)]||'',[TestFrameworkConstants[_0x1259a1(0xf6)]]:_0x2c5fc9[_0x1259a1(0xa7)]?.[_0x1259a1(0xc9)]||null,[TestFrameworkConstants[_0x1259a1(0xda)]]:_0x2c5fc9['tags']||[],[TestFrameworkConstants[_0x1259a1(0x13a)]]:_0x2c5fc9['startedAt']||new Date()[_0x1259a1(0xd6)](),[TestFrameworkConstants[_0x1259a1(0x114)]]:_0x2c5fc9['scopes']?.[0x0]||'',[TestFrameworkConstants[_0x1259a1(0x163)]]:_0x2c5fc9['scopes']||[],[TestFrameworkConstants['KEY_TEST_RERUN_NAME']]:_0x2c5fc9['customRerunParam']?.['rerun_name']||_0x2c5fc9[_0x1259a1(0xbf)]||'',[TestFrameworkConstants[_0x1259a1(0xd3)]]:{},[TestFrameworkConstants[_0x1259a1(0xdc)]]:_0x2c5fc9[_0x1259a1(0xb8)]||{}};TestInfo['setTestDetails'](_0x1c92d4,_0x5a16b1),logger['debug'](_0x1259a1(0xab)+_0x2c5fc9['name']+_0x1259a1(0x107)+_0x47771f);const _0x56fa1a={};return _0x56fa1a[_0x1c92d4]=_0x5a16b1,_0x56fa1a;}[a78_0x198dd9(0x141)](_0x3174da){const _0x1ae6ab=a78_0x198dd9,_0x39aef5={'tgHVs':_0x1ae6ab(0x15c),'dvuTy':_0x1ae6ab(0x120),'EtndO':function(_0x2e0c99,_0x2f8357){return _0x2e0c99===_0x2f8357;},'OwbZy':'failed','WXqjH':'UnhandledError','SrEqT':function(_0xed7948,_0x58caae,_0x167eae){return _0xed7948(_0x58caae,_0x167eae);},'bCoEM':function(_0xa4e9c7,_0x8acb4f){return _0xa4e9c7>_0x8acb4f;}},{testUUID:_0x4a244d,testData:_0x48939}=_0x3174da;if(!_0x48939||!_0x48939[_0x1ae6ab(0x14b)])return logger[_0x1ae6ab(0xf8)](_0x39aef5[_0x1ae6ab(0xd2)]),{};const _0x262293=this[_0x1ae6ab(0xeb)](TestFrameworkState[_0x1ae6ab(0x126)],HookState[_0x1ae6ab(0xbb)]),_0x21e7c5=_0x48939[_0x1ae6ab(0x14b)],_0x2e8ec9=TestInfo[_0x1ae6ab(0xff)](_0x21e7c5)||{},_0x3ef8b4=_0x2e8ec9?_0x2e8ec9[TestFrameworkConstants[_0x1ae6ab(0xd3)]]||{}:{},_0x154a77={..._0x2e8ec9,[TestFrameworkConstants[_0x1ae6ab(0xe2)]]:_0x48939['result']||_0x39aef5['dvuTy'],[TestFrameworkConstants[_0x1ae6ab(0xee)]]:_0x48939[_0x1ae6ab(0xf1)]||new Date()[_0x1ae6ab(0xd6)](),[TestFrameworkConstants[_0x1ae6ab(0xe6)]]:new Date()[_0x1ae6ab(0xd6)](),[TestFrameworkConstants[_0x1ae6ab(0xd3)]]:_0x3ef8b4,[TestFrameworkConstants[_0x1ae6ab(0x15f)]]:[],[TestFrameworkConstants['KEY_TEST_META']]:_0x48939[_0x1ae6ab(0xb8)]||{}};_0x39aef5[_0x1ae6ab(0x113)](_0x48939[_0x1ae6ab(0xfe)],_0x39aef5[_0x1ae6ab(0xb5)])&&_0x48939['failure']&&(_0x154a77[TestFrameworkConstants[_0x1ae6ab(0x102)]]=_0x48939['failure_type']||_0x39aef5['WXqjH'],_0x154a77[TestFrameworkConstants[_0x1ae6ab(0x13b)]]=_0x48939[_0x1ae6ab(0x10e)]||'',_0x154a77[TestFrameworkConstants[_0x1ae6ab(0x127)]]=_0x48939[_0x1ae6ab(0xf3)]);const _0x2f995c=TestInfo[_0x1ae6ab(0xff)](_0x21e7c5)[TestFrameworkConstants[_0x1ae6ab(0xba)]]||{},_0x48d1b4=_0x39aef5[_0x1ae6ab(0xc8)](getManualUploadLogs,_0x2f995c,_0x262293[_0x1ae6ab(0xc4)]()['get'](_0x21e7c5)[TestFrameworkConstants[_0x1ae6ab(0x109)]]);if(_0x39aef5[_0x1ae6ab(0xad)](_0x48d1b4[_0x1ae6ab(0x15a)],0x0)){const _0x16d24b=_0x154a77[TestFrameworkConstants[_0x1ae6ab(0x15f)]]||[];_0x154a77[TestFrameworkConstants[_0x1ae6ab(0x15f)]]=[..._0x16d24b,..._0x48d1b4];}_0x48939[_0x1ae6ab(0xac)]&&_0x39aef5[_0x1ae6ab(0xad)](_0x48939['hooks'][_0x1ae6ab(0x15a)],0x0)&&(_0x154a77[TestFrameworkConstants[_0x1ae6ab(0xef)]]=_0x48939['hooks']);TestInfo[_0x1ae6ab(0x12e)](_0x21e7c5,_0x154a77),logger[_0x1ae6ab(0xf8)]('Updated\x20cucumber\x20test\x20result:\x20'+_0x48939[_0x1ae6ab(0xbf)]+_0x1ae6ab(0xcb)+_0x48939[_0x1ae6ab(0xfe)]);const _0x405937={};return _0x405937[_0x21e7c5]=_0x154a77,_0x405937;}async[a78_0x198dd9(0x9e)](_0x5ee7d3,_0x36387f,_0x377f12,_0x18922c){const _0x583471=a78_0x198dd9,_0x981f94={'NNmwk':_0x583471(0xb4),'teQBB':function(_0xcc705){return _0xcc705();},'ZmgUZ':function(_0x1c2f8e,_0x4a048b){return _0x1c2f8e in _0x4a048b;},'iYrhA':function(_0x1f7ae0,_0x45f890){return _0x1f7ae0 in _0x45f890;},'vNPCw':function(_0x2d7dcd,_0x5d93f6){return _0x2d7dcd===_0x5d93f6;},'sbonc':function(_0x582611,_0xdc603a){return _0x582611>_0xdc603a;},'dyFcv':function(_0x12bf1b,_0x583004){return _0x12bf1b===_0x583004;},'Inoov':_0x583471(0x14f),'dUKDG':'UnhandledError','TANwi':_0x583471(0xec),'qCYfj':function(_0x2b53fe,_0x5bc0b4){return _0x2b53fe!==_0x5bc0b4;}},{hookData:_0x4f8269}=_0x18922c;if(!_0x4f8269)return logger[_0x583471(0xf8)](_0x981f94[_0x583471(0x13d)]),{};const _0x43ad11=_0x4f8269[_0x583471(0x14b)]||_0x981f94[_0x583471(0x151)](uuidv4),_0x478d9a=_0x4f8269[_0x583471(0xa0)],_0x34137a=_0x36387f[_0x583471(0x117)]()['split']('.')[0x1],_0xbf78cc=TestInfo[_0x583471(0xff)](_0x478d9a)[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{},_0x465f67=_0x5ee7d3[_0x583471(0xc4)]()[_0x583471(0x10d)](_0x478d9a);if(!_0x465f67)return logger[_0x583471(0xf8)](_0x583471(0xdb)+_0x478d9a+_0x583471(0xb3)),this[_0x583471(0x10a)](_0x5ee7d3,_0x478d9a,_0x36387f,_0x377f12,_0x18922c),{};let _0x56baac=_0x465f67[TestFrameworkConstants[_0x583471(0x11e)]];!_0x56baac&&(_0x56baac={});!_0x981f94[_0x583471(0x145)](_0x34137a,_0x56baac)&&(_0x56baac[_0x34137a]=[]);let _0x48156d=_0x465f67[TestFrameworkConstants[_0x583471(0xef)]];!_0x48156d&&(_0x48156d={});!_0x981f94['iYrhA'](_0x34137a,_0x48156d)&&(_0x48156d[_0x34137a]=[]);const _0x293453={[TestFrameworkConstants[_0x583471(0x11e)]]:_0x56baac,[TestFrameworkConstants[_0x583471(0xef)]]:_0x48156d},_0x3fb48b={};_0x3fb48b[_0x478d9a]=_0x293453;const _0x43129e=_0x3fb48b;if(_0x981f94['vNPCw'](_0x377f12,HookState[_0x583471(0x162)])){const _0x1747ce={[TestFrameworkConstants[_0x583471(0x92)]]:_0x43ad11,[TestFrameworkConstants[_0x583471(0x15e)]]:TestFrameworkConstants[_0x583471(0xb7)],[TestFrameworkConstants[_0x583471(0x144)]]:_0x4f8269['started_at'],[TestFrameworkConstants[_0x583471(0x14d)]]:[],[TestFrameworkConstants[_0x583471(0xc6)]]:_0x4f8269[_0x583471(0xce)],[TestFrameworkConstants[_0x583471(0xd3)]]:_0xbf78cc};_0x1747ce['key']=_0x34137a;const _0x30ead0=_0x1747ce;_0x56baac[_0x34137a][_0x583471(0x9d)](_0x30ead0),_0x43129e[_0x478d9a][TestFrameworkConstants[_0x583471(0xd8)]]=_0x34137a,logger[_0x583471(0xf8)](_0x583471(0xdd)+_0x34137a+'\x20&\x20hook\x20=\x20'+_0x30ead0+_0x583471(0x98)+_0x18922c);}else{if(_0x981f94[_0x583471(0x131)](_0x377f12,HookState[_0x583471(0xbb)])){const _0x28b4d1=_0x4f8269[_0x583471(0xfe)],_0x137f1b=_0x56baac[_0x34137a]||[];logger['debug'](_0x583471(0xfd)+_0x137f1b+_0x583471(0x143)+_0x18922c);if(_0x981f94[_0x583471(0xd9)](_0x137f1b[_0x583471(0x15a)],0x0)){const _0x59eb04=_0x137f1b[_0x583471(0xe1)]();_0x981f94[_0x583471(0x9a)](_0x4f8269[_0x583471(0xfe)],_0x981f94[_0x583471(0xca)])&&_0x4f8269[_0x583471(0xaa)]?(_0x59eb04[TestFrameworkConstants[_0x583471(0xe3)]]=_0x4f8269[_0x583471(0x108)]||_0x981f94['dUKDG'],_0x59eb04[TestFrameworkConstants[_0x583471(0xd0)]]=_0x4f8269[_0x583471(0x10e)]||'',_0x59eb04[TestFrameworkConstants[_0x583471(0xe5)]]=_0x4f8269[_0x583471(0xaa)]):_0x59eb04[TestFrameworkConstants[_0x583471(0x15e)]]=_0x981f94[_0x583471(0x100)];_0x981f94['qCYfj'](_0x28b4d1,TestFrameworkConstants['DEFAULT_HOOK_RESULT'])&&(_0x59eb04[TestFrameworkConstants[_0x583471(0x15e)]]=_0x28b4d1);_0x59eb04[TestFrameworkConstants[_0x583471(0x134)]]=_0x4f8269[_0x583471(0x137)]||new Date()[_0x583471(0xd6)](),_0x59eb04[TestFrameworkConstants[_0x583471(0xd3)]]=_0xbf78cc;const _0x69642a=_0x59eb04[TestFrameworkConstants[_0x583471(0x92)]];!_0x48156d[_0x34137a]&&(_0x48156d[_0x34137a]=[]),_0x48156d[_0x34137a][_0x583471(0x9d)](_0x59eb04),_0x43129e[_0x478d9a][TestFrameworkConstants[_0x583471(0x10b)]]=_0x34137a;}}}return logger[_0x583471(0xf8)](_0x583471(0xf0)+_0x4f8269[_0x583471(0xce)]+_0x583471(0x12a)+_0x43ad11+_0x583471(0xf2)+_0x478d9a),_0x43129e;}[a78_0x198dd9(0x119)](_0x30522e){const _0x27f54d=a78_0x198dd9,_0x701522={};_0x701522[_0x27f54d(0xf9)]='base64';const _0x348470=_0x701522;try{const _0x56cd7e=_0x30522e[_0x27f54d(0xa8)]?_0x30522e[_0x27f54d(0xa8)]['id']:_0x30522e[_0x27f54d(0xaf)][_0x27f54d(0xa0)],_0x5ad335=_0x30522e[_0x27f54d(0xa9)],_0x404e1a=_0x5ad335['getContext'](),_0x1a2b2e=_0x5ad335[_0x27f54d(0xc4)]()[_0x27f54d(0x10d)](_0x56cd7e);if(!_0x1a2b2e)return logger['debug'](_0x27f54d(0xae)+_0x56cd7e),{};logger[_0x27f54d(0xf8)](_0x27f54d(0x14a)+_0x56cd7e);const {[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x192ef6='',[TestFrameworkConstants[_0x27f54d(0x110)]]:_0x3720dd='',[TestFrameworkConstants[_0x27f54d(0x13a)]]:_0x4b3d41='',[TestFrameworkConstants[_0x27f54d(0xee)]]:_0x2d2037=''}=_0x1a2b2e,_0x2d9f55=_0x5ad335[_0x27f54d(0x133)]()[_0x27f54d(0x117)]()[_0x27f54d(0xf7)]('.')[0x1],_0x28048a=_0x5ad335[_0x27f54d(0x91)]()[_0x27f54d(0x117)]()[_0x27f54d(0xf7)]('.')[0x1],_0x564c6b=global?.[_0x27f54d(0x94)]??0x0,_0x1aa136=_0x5ad335[_0x27f54d(0x11f)](),_0x3a3ec6=Buffer[_0x27f54d(0xa4)](JSON[_0x27f54d(0x11b)](_0x1a2b2e))[_0x27f54d(0x117)](_0x348470['XoBak']),_0x2f3bc8={'hash':_0x404e1a[_0x27f54d(0x147)](),'threadId':_0x404e1a[_0x27f54d(0x93)]()[_0x27f54d(0x117)](),'processId':_0x404e1a[_0x27f54d(0x124)]()[_0x27f54d(0x117)]()},_0x1c17a6={};_0x1c17a6[_0x27f54d(0x12c)]=_0x564c6b,_0x1c17a6[_0x27f54d(0x8e)]=_0x192ef6,_0x1c17a6[_0x27f54d(0x132)]=_0x3720dd,_0x1c17a6[_0x27f54d(0x159)]=_0x2d9f55,_0x1c17a6[_0x27f54d(0xc0)]=_0x28048a,_0x1c17a6[_0x27f54d(0x15b)]=_0x4b3d41,_0x1c17a6[_0x27f54d(0x148)]=_0x2d2037,_0x1c17a6[_0x27f54d(0x14b)]=_0x1aa136,_0x1c17a6[_0x27f54d(0x13c)]=_0x3a3ec6,_0x1c17a6['executionContext']=_0x2f3bc8;const _0x3906fa=_0x1c17a6;return logger['debug'](_0x27f54d(0x139)+_0x56cd7e+_0x27f54d(0x138)+_0x2d9f55+'\x20hookState:\x20'+_0x28048a),_0x3906fa;}catch(_0x12a556){return logger['error'](_0x27f54d(0xd1)+util[_0x27f54d(0xfc)](_0x12a556)),{};}}async['sendLogCreatedEvent'](_0x5206e1,_0x121ac7,_0x5f23e1){const _0x196d79=a78_0x198dd9,_0x594daa={'ByPmR':function(_0x331357,_0x2a9b13,_0x1277e0){return _0x331357(_0x2a9b13,_0x1277e0);},'NsIrE':function(_0x13ab0c,_0x21c1d7){return _0x13ab0c===_0x21c1d7;},'yTjiD':_0x196d79(0xc3),'BzxGG':function(_0x5cf3f3,_0x1b6a1f){return _0x5cf3f3/_0x1b6a1f;},'yaKqB':function(_0x254217,_0x7d981f){return _0x254217<_0x7d981f;},'NWJpc':function(_0x1d0a73,_0x2a7a0d){return _0x1d0a73*_0x2a7a0d;},'vrQlb':function(_0x5dad04,_0x29e2f4){return _0x5dad04+_0x29e2f4;},'zVoHO':_0x196d79(0x150)};try{const _0x25be44=_0x5f23e1[_0x196d79(0x10c)],_0x136881=_0x5206e1['getAllData']()['get'](_0x25be44),{[TestFrameworkConstants[_0x196d79(0xbd)]]:_0x175dc6='',[TestFrameworkConstants[_0x196d79(0x110)]]:_0x4075fb=''}=_0x136881,_0x5bda2a=TestInfo[_0x196d79(0x11c)](_0x25be44),_0x42ee54=TestInfo[_0x196d79(0xff)](_0x25be44)[TestFrameworkConstants[_0x196d79(0xba)]]||{},_0x2fd160=_0x594daa[_0x196d79(0xa5)](getMediaArtifactsLogs,_0x42ee54,_0x5206e1[_0x196d79(0xc4)]()[_0x196d79(0x10d)](_0x25be44)[TestFrameworkConstants[_0x196d79(0x109)]]),_0x543b1b=(_0x5bda2a||[])[_0x196d79(0x12b)](_0x2fd160||[]);if(!_0x543b1b||_0x594daa['NsIrE'](_0x543b1b[_0x196d79(0x15a)],0x0)){logger['debug'](_0x594daa[_0x196d79(0x101)]);return;}const _0x3acf7f=0x28,_0x25346f=Math[_0x196d79(0x105)](_0x594daa[_0x196d79(0xfb)](_0x543b1b[_0x196d79(0x15a)],_0x3acf7f));for(let _0x4381aa=0x0;_0x594daa['yaKqB'](_0x4381aa,_0x25346f);_0x4381aa++){const _0x25aef0=_0x594daa[_0x196d79(0x9c)](_0x4381aa,_0x3acf7f),_0x50b7f3=_0x594daa[_0x196d79(0xbc)](_0x25aef0,_0x3acf7f),_0x541817=_0x543b1b['slice'](_0x25aef0,_0x50b7f3),_0x14d52b={'platformIndex':global?.[_0x196d79(0x94)]??0x0,'logs':_0x541817,'testFrameworkName':_0x175dc6,'testFrameworkVersion':_0x4075fb,'testFrameworkState':_0x121ac7[_0x196d79(0x117)]()[_0x196d79(0xf7)]('.')[0x1]};logger[_0x196d79(0xf8)]('sendLogCreatedEvent:\x20for\x20testId:\x20'+_0x25be44+'\x20batch\x20'+_0x594daa['vrQlb'](_0x4381aa,0x1)+'/'+_0x25346f+_0x196d79(0x95)+util['inspect'](_0x14d52b));const _0x3c88fb=await GrpcClient[_0x196d79(0x154)]()[_0x196d79(0xa1)](_0x14d52b);logger[_0x196d79(0xf8)](_0x196d79(0xea)+_0x25be44+'\x20batch\x20'+_0x594daa[_0x196d79(0xbc)](_0x4381aa,0x1)+'/'+_0x25346f+_0x196d79(0xc7)+util[_0x196d79(0xd4)](_0x3c88fb));}}catch(_0x411087){logger[_0x196d79(0x14c)]('sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20'+util[_0x196d79(0xfc)](_0x411087));}logger['debug'](_0x594daa[_0x196d79(0x128)]);}[a78_0x198dd9(0x10a)](_0x29daf3,_0x5c217f,_0x3d3f03,_0x21e30a,_0x5ed5a4){const _0x157043=a78_0x198dd9,_0x1c4ca4={'testId':_0x5c217f,'testFrameworkState':_0x3d3f03,'hookState':_0x21e30a,'args':_0x5ed5a4,'timestamp':new Date()[_0x157043(0xd6)]()};_0x29daf3[_0x157043(0x9b)](_0x5c217f,_0x1c4ca4),logger[_0x157043(0xf8)](_0x157043(0xf5)+_0x5c217f+_0x157043(0xe8)+_0x3d3f03+_0x157043(0xa3)+_0x21e30a);}async[a78_0x198dd9(0x97)](_0x2aa98c,_0x5003fc){const _0x55cf5c=a78_0x198dd9,_0x4eb203={};_0x4eb203[_0x55cf5c(0x160)]=function(_0x4af1e0,_0x5ac64a){return _0x4af1e0>_0x5ac64a;};const _0x1f36c6=_0x4eb203;if(!_0x2aa98c['hasPendingHooks'](_0x5003fc))return;const _0x290889=_0x2aa98c[_0x55cf5c(0xb6)](_0x5003fc);logger[_0x55cf5c(0xf8)](_0x55cf5c(0x9f)+_0x290889[_0x55cf5c(0x15a)]+_0x55cf5c(0x140)+_0x5003fc);for(const _0x2226de of _0x290889){try{const _0x16e0c0=await this[_0x55cf5c(0x9e)](_0x2aa98c,_0x2226de[_0x55cf5c(0x159)],_0x2226de['hookState'],_0x2226de[_0x55cf5c(0x96)]);_0x16e0c0&&_0x1f36c6[_0x55cf5c(0x160)](Object[_0x55cf5c(0xf4)](_0x16e0c0)['length'],0x0)&&_0x2aa98c[_0x55cf5c(0x125)](_0x16e0c0),await this[_0x55cf5c(0x156)](_0x2aa98c,_0x2226de[_0x55cf5c(0x159)],_0x2226de[_0x55cf5c(0xc0)],_0x2226de[_0x55cf5c(0x96)]);}catch(_0x575b8c){logger[_0x55cf5c(0x14c)](_0x55cf5c(0x8d)+_0x5003fc+_0x55cf5c(0x118)+_0x575b8c);}}_0x2aa98c[_0x55cf5c(0xb0)](_0x5003fc),logger[_0x55cf5c(0xf8)](_0x55cf5c(0xc1)+_0x5003fc);}}module[a78_0x198dd9(0x106)]=CucumberTestFramework;