browserstack-node-sdk 1.57.1 → 1.58.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/generated/sdk-messages_pb.d.ts +376 -36
  41. package/generated/sdk-messages_pb.js +2955 -279
  42. package/generated/sdk_grpc_pb.d.ts +5 -0
  43. package/generated/sdk_grpc_pb.js +51 -0
  44. package/package.json +1 -1
  45. package/src/ai-sdk-node/bundle.js +1 -1
  46. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  47. package/src/bin/codeceptjs/command.js +1 -1
  48. package/src/bin/codeceptjs/helper.js +1 -1
  49. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  50. package/src/bin/cucumber-js/command.js +1 -1
  51. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  52. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  53. package/src/bin/cucumber-js/test-observability.js +1 -1
  54. package/src/bin/cucumber-js/test.setup.js +1 -1
  55. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  56. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  57. package/src/bin/integrations/command.js +1 -1
  58. package/src/bin/integrations/constants.js +1 -1
  59. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -0
  60. package/src/bin/jasmine/command.js +2 -0
  61. package/src/bin/jasmine/test.setup.js +1 -0
  62. package/src/bin/jasmine/testRunMap.js +1 -0
  63. package/src/bin/jest/command.js +1 -1
  64. package/src/bin/jest/customImplements/customCircus.js +1 -1
  65. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  66. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  67. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  68. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  69. package/src/bin/jest/jest.setup.js +1 -1
  70. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  71. package/src/bin/jest/test-observability/helper.js +1 -1
  72. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  73. package/src/bin/jest/test-observability/test-details.js +1 -1
  74. package/src/bin/jest/test.setup.js +1 -1
  75. package/src/bin/jest/test_before.setup.js +1 -1
  76. package/src/bin/launcher/launcher.js +1 -1
  77. package/src/bin/load/index.js +1 -1
  78. package/src/bin/load/loadUtils.js +1 -1
  79. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  80. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  81. package/src/bin/mocha/command.js +1 -1
  82. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  83. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  84. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  85. package/src/bin/mocha/test.setup.js +1 -1
  86. package/src/bin/newman/command.js +1 -1
  87. package/src/bin/newman/helper.js +1 -1
  88. package/src/bin/newman/reporter/index.js +1 -1
  89. package/src/bin/newman/scriptRunner.js +1 -1
  90. package/src/bin/nightwatch/command.js +1 -1
  91. package/src/bin/playwright/accessibility-helper.js +1 -1
  92. package/src/bin/playwright/command.js +1 -1
  93. package/src/bin/playwright/globalSetup.js +1 -1
  94. package/src/bin/playwright/mock-process.js +1 -1
  95. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  96. package/src/bin/playwright/patches.js +1 -1
  97. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  98. package/src/bin/playwright/reporter/reporter.js +1 -1
  99. package/src/bin/playwright/reporter/test-details.js +1 -1
  100. package/src/bin/playwright/sessionDetails.js +1 -1
  101. package/src/bin/puppeteer/patches.js +1 -1
  102. package/src/bin/puppeteer/sessionDetails.js +1 -1
  103. package/src/bin/puppeteer/test.setup.js +1 -1
  104. package/src/bin/runner.js +1 -1
  105. package/src/bin/setup.js +1 -1
  106. package/src/bin/test-runner/index.js +1 -1
  107. package/src/bin/test-runner/runTest.js +1 -1
  108. package/src/bin/test-runner/testWorker.js +1 -1
  109. package/src/bin/testcafe/a11y-runner.js +1 -0
  110. package/src/bin/testcafe/command.js +2 -0
  111. package/src/bin/testcafe/reporter/index.js +1 -0
  112. package/src/bin/testcafe/reporter/tcUtils.js +1 -0
  113. package/src/bin/testcafe/session-registry.js +1 -0
  114. package/src/bin/testcafe/stdout-interceptor.js +1 -0
  115. package/src/bin/testcafe/testcafe-action-patcher.js +1 -0
  116. package/src/bin/testcafe/w3c-driver.js +1 -0
  117. package/src/bin/utils/apiUtilityMethods.js +1 -1
  118. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  119. package/src/bin/utils/constants.js +1 -1
  120. package/src/bin/utils/log4jsAppender.js +1 -1
  121. package/src/bin/utils/logPatcher.js +1 -1
  122. package/src/bin/utils/logReportingAPI.js +1 -1
  123. package/src/bin/utils/playwright-patcher.js +1 -1
  124. package/src/bin/utils/puppeteer-patcher.js +1 -1
  125. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  126. package/src/bin/utils/sharedUtils.js +1 -1
  127. package/src/bin/v2/TestInfo.js +1 -1
  128. package/src/bin/v2/browserstackCLI.js +1 -1
  129. package/src/bin/v2/cliUtils.js +1 -1
  130. package/src/bin/v2/customTagManager.js +1 -1
  131. package/src/bin/v2/eventDispatcher.js +1 -1
  132. package/src/bin/v2/framework/automationFramework.js +1 -1
  133. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  134. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  135. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  136. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  137. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  138. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  139. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  140. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  141. package/src/bin/v2/framework/testFramework.js +1 -1
  142. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -0
  143. package/src/bin/v2/framework/testcafeTestFramework.js +1 -0
  144. package/src/bin/v2/grpcClient.js +1 -1
  145. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  146. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  147. package/src/bin/v2/instances/trackedContext.js +1 -1
  148. package/src/bin/v2/instances/trackedInstance.js +1 -1
  149. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  150. package/src/bin/v2/modules/baseModule.js +1 -1
  151. package/src/bin/v2/modules/loadTestModule.js +1 -1
  152. package/src/bin/v2/modules/observabilityModule.js +1 -1
  153. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  154. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  155. package/src/bin/v2/modules/testcafeDriverModule.js +1 -0
  156. package/src/bin/v2/modules/testhubModule.js +1 -1
  157. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  158. package/src/bin/v2/state/hookState.js +1 -1
  159. package/src/bin/v2/state/testFrameworkState.js +1 -1
  160. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  161. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  162. package/src/bin/v2/utils/jest-utils.js +1 -1
  163. package/src/bin/vanilla-js/command.js +1 -1
  164. package/src/browserStackSdk.js +1 -1
  165. package/src/helpers/BrowserStackSetup.js +1 -1
  166. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  167. package/src/helpers/accessibility-automation/constants.js +1 -1
  168. package/src/helpers/accessibility-automation/helper.js +1 -1
  169. package/src/helpers/accessibility-automation/scripts.js +1 -1
  170. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  171. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  172. package/src/helpers/ats/constants.js +1 -1
  173. package/src/helpers/ats/helper.js +1 -1
  174. package/src/helpers/caCertHelper.js +1 -1
  175. package/src/helpers/capsMapping.js +1 -1
  176. package/src/helpers/central-scanner/constants.js +1 -1
  177. package/src/helpers/central-scanner/helpers.js +1 -1
  178. package/src/helpers/classLogger.js +1 -1
  179. package/src/helpers/driverInitErrorReporter.js +1 -1
  180. package/src/helpers/globals.js +1 -1
  181. package/src/helpers/helper.js +1 -1
  182. package/src/helpers/logger.js +1 -1
  183. package/src/helpers/metadata.js +1 -1
  184. package/src/helpers/patchHelper.js +1 -1
  185. package/src/helpers/patchHelpers.js +1 -1
  186. package/src/helpers/percy/Percy.js +1 -1
  187. package/src/helpers/percy/PercyBinary.js +1 -1
  188. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  189. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  190. package/src/helpers/percy/PercySDK.js +1 -1
  191. package/src/helpers/percy/index.js +1 -1
  192. package/src/helpers/percy/utils.js +1 -1
  193. package/src/helpers/performance/constants.js +1 -1
  194. package/src/helpers/performance/performance-tester.js +1 -1
  195. package/src/helpers/playwright-helper.js +1 -1
  196. package/src/helpers/processHelper.js +1 -1
  197. package/src/helpers/puppeteer-helper.js +1 -1
  198. package/src/helpers/request-spy.js +1 -1
  199. package/src/helpers/setKeepAlive.js +1 -1
  200. package/src/helpers/stackFrameUtils.js +1 -1
  201. package/src/helpers/test-observability/constants.js +1 -1
  202. package/src/helpers/test-observability/error-handler.js +1 -1
  203. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  204. package/src/helpers/test-observability/sessionHandler.js +1 -1
  205. package/src/helpers/test-observability/utils.js +1 -1
  206. package/src/helpers/test-orchestration/constants.js +1 -1
  207. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  208. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  209. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  210. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  211. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  212. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  213. package/src/helpers/testhub/constants.js +1 -1
  214. package/src/helpers/testhub/testhubHandler.js +1 -1
  215. package/src/helpers/testhub/utils.js +1 -1
  216. package/src/helpers/timeoutPromise.js +1 -1
  217. package/src/helpers/utilities.js +1 -1
  218. package/src/helpers/w3cMapping.js +1 -1
  219. package/src/hubAllocationMethods.js +1 -1
  220. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a72_0x57ce67=a72_0x3235;function a72_0x249a(){const _0x2d96cd=['Failed\x20to\x20delete\x20zip\x20file:\x20','readdirSync','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','path','./instances/testFrameworkInstance.js','RrVUZ','kgzpJ','setFrameworkDetail',',\x20automationFramework=','concat','testContextOptions','6GHuveZ','pipe','mtime','map','existsSync','../../helpers/performance/performance-tester.js','axOKw','exports','node','close','bFsgb','rTgsW','unlink','SsBbq','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','entry','nzUVI','mXfeC','rename','fileName','qyFQT','getSdkVersion','nNqBt','statSync','CLI\x20version\x20found\x20despite\x20error:\x20\x22','data','2|4|1|3|0','LmhKj','Klrbw','object','getExistingCliPath','DDFmI','copyFileSync','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','tsCQg','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','VxHCs','Vaxnt','automationFrameworkDetail','iJFjd','Setting\x20required\x20permissions\x20to\x20','SDK_CLI_BIN_PATH','RHFAK','fZSBD','gjpBa','../utils/apiUtilityMethods.js','nyhdZ','getAutomationFrameworkDetail','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','gxIDb','RGQzc','open','baHfk','bdRRJ','vXGNp','nJWGv','getSdkLanguage','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','../utils/constants','basename','testFrameworkDetail','Downloading\x20SDK\x20binary\x20from:\x20','nuSeZ','BROWSERSTACK_CLI_ENV','timeout','checkAndUpdateCli','format','VmpAS','message','skipSessionStatus','info','reduce','ANCuL','sqCoF','nIIRp','VcWDQ','nmWog','Error\x20while\x20reading\x20CLI\x20path:\x20','code','163400LfKXeA','end','OYKce','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','Configuring\x20Cli\x20path.','requestToUpdateCLI','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','filePath','QaRFn','Resolved\x20binary\x20path:\x20','SgKlW','IsMpW','BROWSERSTACK_BINARY_URL','cli','env','wfhVS','chmod','./framework/constants/testFrameworkConstants.js','lKSqa','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','openReadStream','arch','Development\x20Cli\x20Path:\x20','tmpdir','AObIV','uHsvP','downloadLatestBinary','join','getCurrentInstanceName','./state/automationFrameworkState.js','cwd','../../helpers/test-observability/utils.js','url','test','getWritableDir','76eQMFod','9198hLdeTx','OtTFG','GET','IAljr','11510mjPdyl','gJXcf','Resolving\x20with\x20stdout:\x20\x22','TFHxw','PYNza','downloadFileStream','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','length','tSgeo','getTestFrameworkDetail','SDK_CLI_CHECK_UPDATE','includes','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','VTcVn','\x20version','Ivkaj','CLIUtils','isFile','isBinaryBusy','Ycrxz','shouldSkipSessionStatus','btbbe','VxBqz','eEZzv','once','2ndjhrh','PnowS','.zip','debug','get','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','ovZeg','Folder\x20','../../helpers/helper','3970057mkLItn','LXpKi','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','parse','rkUxM','kmDoE','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','zGDWv','TZuMp','cQEiK','gDUnL','iHiAZ','Folder\x20does\x20not\x20exist:\x20','trim','stringify','.tmp.','ATEuB','createWriteStream','listen','isDirectory','getCLIParamsForDevEnv','runShellCommand','WEchA','aioQV','worker_threads','entries','JaVFl','.sock','1078538IRWXCi','startsWith','GTHbi','PtzQi','pid','getCliDir','warn','SHELL_EXECUTE_ERROR','error','WClWA','2067984bDPFcU','\x20already\x20exists','unix:/tmp/sdk-platform-','hGgAi','binary-','cglHV','RrcHq','downloaded_file_','aMAaa','start','HOOK_REGEX','BfALP','860946frGngw','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','mergeObject','0755','SDK_CLI_DOWNLOAD','yauzl','fJhRS','matchHookRegex','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','readEntry','cli_version','isArray','9887009sBkkUX','response\x20'];a72_0x249a=function(){return _0x2d96cd;};return a72_0x249a();}(function(_0x175e07,_0x3ac4fc){const _0x39e6c5=a72_0x3235,_0xc755e2=_0x175e07();while(!![]){try{const _0x4b2154=parseInt(_0x39e6c5(0x148))/0x1*(-parseInt(_0x39e6c5(0x123))/0x2)+-parseInt(_0x39e6c5(0x15e))/0x3+-parseInt(_0x39e6c5(0x105))/0x4*(parseInt(_0x39e6c5(0xe2))/0x5)+-parseInt(_0x39e6c5(0x177))/0x6*(-parseInt(_0x39e6c5(0x12c))/0x7)+parseInt(_0x39e6c5(0x152))/0x8+parseInt(_0x39e6c5(0x106))/0x9*(parseInt(_0x39e6c5(0x10a))/0xa)+parseInt(_0x39e6c5(0x16a))/0xb;if(_0x4b2154===_0x3ac4fc)break;else _0xc755e2['push'](_0xc755e2['shift']());}catch(_0x15e860){_0xc755e2['push'](_0xc755e2['shift']());}}}(a72_0x249a,0xdf3ae));const fs=require('fs'),os=require('os'),url=require(a72_0x57ce67(0x102)),path=require(a72_0x57ce67(0x16f)),{exec}=require('child_process'),{https}=require('follow-redirects'),yauzl=require(a72_0x57ce67(0x163)),util=require('util'),{getFrameworkVersion}=require(a72_0x57ce67(0x101)),{threadId}=require(a72_0x57ce67(0x144)),PerformanceTester=require(a72_0x57ce67(0x17c)),{EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require('../../helpers/utilities'),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a72_0x57ce67(0x12b)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a72_0x57ce67(0x1b1)),{createClassLogger}=require('../../helpers/classLogger.js'),TestFrameworkInstance=require(a72_0x57ce67(0x170)),HookState=require('./state/hookState.js'),TestFrameworkState=require('./state/testFrameworkState.js'),AutomationFrameworkState=require(a72_0x57ce67(0xff)),TestFrameworkConstants=require(a72_0x57ce67(0xf3)),logger=createClassLogger(a72_0x57ce67(0x11a)),{getBStackAPIUrl}=require(a72_0x57ce67(0x1a4));class CLIUtils{['automationFrameworkDetail']={};[a72_0x57ce67(0x1b3)]={};static['isDevelopmentEnv'](){const _0x5326b7=a72_0x57ce67,_0x2915ab={};_0x2915ab[_0x5326b7(0xd6)]=function(_0xefa33a,_0x4b50a8){return _0xefa33a===_0x4b50a8;},_0x2915ab['Vaxnt']='development';const _0x2fbf93=_0x2915ab;return _0x2fbf93[_0x5326b7(0xd6)](process[_0x5326b7(0xf0)][_0x5326b7(0xd2)],_0x2fbf93[_0x5326b7(0x19c)]);}static[a72_0x57ce67(0x140)](){const _0x139c4c=a72_0x57ce67,_0x35c33e={};return _0x35c33e['id']=process[_0x139c4c(0xf0)][_0x139c4c(0xd2)],_0x35c33e[_0x139c4c(0x13e)]=_0x139c4c(0x154)+process[_0x139c4c(0xf0)][_0x139c4c(0xd2)]+_0x139c4c(0x147),_0x35c33e;}static['getSdkVersion'](){const _0x4176ee=a72_0x57ce67,_0x401e5a={'KKOMm':function(_0x79f47,_0xed75f1){return _0x79f47(_0xed75f1);},'gxIDb':'../../../package.json'};return _0x401e5a['KKOMm'](require,_0x401e5a[_0x4176ee(0x1a8)])['version'];}static[a72_0x57ce67(0x1af)](){const _0x3cd193=a72_0x57ce67,_0x52ee84={};_0x52ee84['eEZzv']=_0x3cd193(0x17f);const _0xe6f4d6=_0x52ee84;return _0xe6f4d6[_0x3cd193(0x121)];}static async['setupCliPath'](_0x57e8b0){const _0x58467d=a72_0x57ce67,_0x4cf9f6={'ATEuB':_0x58467d(0xe6),'RrVUZ':function(_0x40a1a0,_0x14044a){return _0x40a1a0(_0x14044a);},'aMAaa':function(_0x495270,_0x3a7c3c){return _0x495270(_0x3a7c3c);},'lKSqa':_0x58467d(0xe5)};logger[_0x58467d(0x126)](_0x4cf9f6[_0x58467d(0x13c)]);const _0x17de9a=process[_0x58467d(0xf0)][_0x58467d(0x1a0)];if(!_0x4cf9f6[_0x58467d(0x171)](isNullOrEmpty,_0x17de9a))return logger[_0x58467d(0x126)](_0x58467d(0xf8)+_0x17de9a),_0x17de9a;try{const _0x41078f=this[_0x58467d(0x14d)]();if(_0x4cf9f6[_0x58467d(0x15a)](isNullOrEmpty,_0x41078f))throw new Error(_0x4cf9f6[_0x58467d(0xf4)]);const _0x4619ce=this[_0x58467d(0x195)](_0x41078f),_0x1dacc7=await this[_0x58467d(0xd4)](_0x4619ce,_0x41078f,_0x57e8b0);return logger[_0x58467d(0x126)](_0x58467d(0xeb)+_0x1dacc7),_0x1dacc7;}catch(_0x37c456){logger[_0x58467d(0x126)](_0x58467d(0x132)+util[_0x58467d(0xd5)](_0x37c456));}return null;}static async[a72_0x57ce67(0xd4)](_0x2f9cbf,_0x5a2729,_0x31447b){const _0x5dad34=a72_0x57ce67,_0x4bba87={'sqCoF':function(_0x26795a){return _0x26795a();},'fJhRS':function(_0x2054e2,_0x3343fa){return _0x2054e2(_0x3343fa);},'IsMpW':function(_0x547056,_0x1a2b8c,_0x19b8a1){return _0x547056(_0x1a2b8c,_0x19b8a1);},'nyhdZ':_0x5dad34(0x190),'SgKlW':'url','PtzQi':function(_0x2fe29b,_0x4d3e36,_0x4ddb6d){return _0x2fe29b(_0x4d3e36,_0x4ddb6d);}};PerformanceTester[_0x5dad34(0x15b)](PerformanceEvents[_0x5dad34(0x114)]),logger[_0x5dad34(0xd9)]('Current\x20CLI\x20Path\x20Found:\x20'+_0x2f9cbf);const _0x48173f=_0x4bba87[_0x5dad34(0xdc)](getHostInfo),_0x5caa60={'sdk_version':CLIUtils[_0x5dad34(0x18c)](),'os':_0x48173f['platform'],'os_arch':_0x48173f[_0x5dad34(0xf7)],'cli_version':'0','sdk_language':this[_0x5dad34(0x1af)]()};!_0x4bba87[_0x5dad34(0x164)](isNullOrEmpty,_0x2f9cbf)&&(_0x5caa60[_0x5dad34(0x168)]=await this[_0x5dad34(0x141)](_0x2f9cbf+_0x5dad34(0x118)));const _0x33e192=await this[_0x5dad34(0xe7)](_0x5caa60,_0x31447b);process[_0x5dad34(0xf0)][_0x5dad34(0xee)]&&(logger[_0x5dad34(0xd9)](_0x5dad34(0x110)+process[_0x5dad34(0xf0)][_0x5dad34(0xee)]),_0x33e192[_0x5dad34(0x190)][_0x5dad34(0x102)]=process[_0x5dad34(0xf0)][_0x5dad34(0xee)]);if(_0x4bba87[_0x5dad34(0xed)](nestedKeyValue,_0x33e192,[_0x4bba87[_0x5dad34(0x1a5)],_0x4bba87[_0x5dad34(0xec)]])){logger[_0x5dad34(0x126)](_0x5dad34(0x19a)+_0x5caa60[_0x5dad34(0x168)]);if(!_0x4bba87[_0x5dad34(0x164)](isNullOrEmpty,_0x2f9cbf)&&this[_0x5dad34(0x11c)](_0x2f9cbf))return logger[_0x5dad34(0x14e)](_0x5dad34(0x1a7)+_0x2f9cbf),PerformanceTester[_0x5dad34(0xe3)](PerformanceEvents[_0x5dad34(0x114)]),_0x2f9cbf;const _0x40b92a=await this[_0x5dad34(0xfc)](_0x4bba87[_0x5dad34(0x14b)](nestedKeyValue,_0x33e192,[_0x4bba87[_0x5dad34(0x1a5)],_0x4bba87[_0x5dad34(0xec)]]),_0x5a2729);return PerformanceTester['end'](PerformanceEvents[_0x5dad34(0x114)]),_0x40b92a;}return PerformanceTester[_0x5dad34(0xe3)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x2f9cbf;}static[a72_0x57ce67(0x14d)](){const _0x5c6c08=a72_0x57ce67,_0x4e09b3={'nIIRp':function(_0x434922,_0x54dc84){return _0x434922(_0x54dc84);},'LmhKj':_0x5c6c08(0xe5),'nzUVI':_0x5c6c08(0xef)},_0x3dadb7=this[_0x5c6c08(0x104)]();try{if(_0x4e09b3[_0x5c6c08(0xdd)](isNullOrEmpty,_0x3dadb7))throw new Error(_0x4e09b3[_0x5c6c08(0x192)]);const _0xead2ce=path[_0x5c6c08(0xfd)](_0x3dadb7,_0x4e09b3[_0x5c6c08(0x187)]);return!fs[_0x5c6c08(0x17b)](_0xead2ce)&&_0x4e09b3['nIIRp'](createDir,_0xead2ce),_0xead2ce;}catch(_0x12c887){logger[_0x5c6c08(0x126)](_0x5c6c08(0xe8)+util[_0x5c6c08(0xd5)](_0x12c887));}}static['getWritableDir'](){const _0x37ffd1=a72_0x57ce67,_0x192391={'WEchA':'.browserstack','ovZeg':function(_0x82c8af,_0x260680){return _0x82c8af(_0x260680);},'JaVFl':function(_0x17e81a,_0x4510d0){return _0x17e81a(_0x4510d0);},'gjpBa':function(_0x2ccd5d,_0xa2c74){return _0x2ccd5d(_0xa2c74);}},_0x256fe7=[process[_0x37ffd1(0xf0)]['BROWSERSTACK_FILES_DIR'],path[_0x37ffd1(0xfd)](os['homedir'](),_0x192391[_0x37ffd1(0x142)]),path[_0x37ffd1(0xfd)](os[_0x37ffd1(0xf9)](),_0x192391['WEchA'])];for(const _0x12023f of _0x256fe7){if(_0x192391['ovZeg'](isNullOrEmpty,_0x12023f))continue;try{if(fs[_0x37ffd1(0x17b)](_0x12023f)){logger['debug'](_0x37ffd1(0x12a)+_0x12023f+_0x37ffd1(0x153));if(!_0x192391[_0x37ffd1(0x129)](isModifiable,_0x12023f)){logger['debug'](_0x37ffd1(0x19f)+_0x12023f);const _0x150c01=_0x192391[_0x37ffd1(0x129)](setReadWriteExecuteAccess,_0x12023f);if(!_0x192391[_0x37ffd1(0x129)](isTrue,_0x150c01)){logger[_0x37ffd1(0x14e)](_0x37ffd1(0xf5)+_0x12023f);continue;}}}else{logger[_0x37ffd1(0x126)](_0x37ffd1(0x138)+_0x12023f),_0x192391['JaVFl'](createDir,_0x12023f),logger[_0x37ffd1(0x126)](_0x37ffd1(0x19f)+_0x12023f);const _0x4b85a3=_0x192391[_0x37ffd1(0x146)](setReadWriteExecuteAccess,_0x12023f);!_0x192391[_0x37ffd1(0x1a3)](isTrue,_0x4b85a3)&&logger[_0x37ffd1(0x14e)](_0x37ffd1(0xf5)+_0x12023f);}return _0x12023f;}catch(_0x580512){logger[_0x37ffd1(0x150)]('Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20'+util[_0x37ffd1(0xd5)](_0x580512));}}return null;}static[a72_0x57ce67(0x195)](_0x251801){const _0xa8b0ec=a72_0x57ce67,_0x2e680b={};_0x2e680b['kgzpJ']=function(_0x2b6466,_0x2ba5d2){return _0x2b6466>_0x2ba5d2;},_0x2e680b[_0xa8b0ec(0x184)]=function(_0x5a5076,_0xaa577a){return _0x5a5076>_0xaa577a;};const _0x2f446f=_0x2e680b;try{if(!fs['existsSync'](_0x251801)||!fs[_0xa8b0ec(0x18e)](_0x251801)[_0xa8b0ec(0x13f)]())return'';const _0x5545aa=fs[_0xa8b0ec(0x16d)](_0x251801)['map'](_0x3d493f=>path['join'](_0x251801,_0x3d493f))['filter'](_0x4dbfba=>fs['statSync'](_0x4dbfba)[_0xa8b0ec(0x11b)]()&&path[_0xa8b0ec(0x1b2)](_0x4dbfba)[_0xa8b0ec(0x149)](_0xa8b0ec(0x156)));if(_0x2f446f['SsBbq'](_0x5545aa[_0xa8b0ec(0x111)],0x0)){const _0x34765e=_0x5545aa[_0xa8b0ec(0x17a)](_0x367834=>({'filePath':_0x367834,'mtime':fs[_0xa8b0ec(0x18e)](_0x367834)['mtime']}))[_0xa8b0ec(0xda)]((_0x21a799,_0x39f4ef)=>{const _0x185109=_0xa8b0ec;if(!_0x21a799||!_0x21a799[_0x185109(0x179)])return _0x39f4ef;if(_0x2f446f[_0x185109(0x172)](_0x39f4ef[_0x185109(0x179)],_0x21a799[_0x185109(0x179)]))return _0x39f4ef;return _0x21a799;},{});return _0x34765e?_0x34765e[_0xa8b0ec(0xe9)]:'';}return'';}catch(_0xc67e20){return logger[_0xa8b0ec(0x150)](_0xa8b0ec(0xe0)+util[_0xa8b0ec(0xd5)](_0xc67e20)),'';}}static [a72_0x57ce67(0xe7)]=async(_0x30d78c,_0x1f363d)=>{const _0xf7d026=a72_0x57ce67,_0x30d5a1={'mXfeC':function(_0x214389,_0x4d4b7e,_0x568054,_0x1910d5,_0x419088){return _0x214389(_0x4d4b7e,_0x568054,_0x1910d5,_0x419088);},'BtOIH':_0xf7d026(0x108)},_0x258df3={};_0x258df3['qs']=_0x30d78c;const _0x248172=await _0x30d5a1[_0xf7d026(0x188)](nodeRequest,_0x30d5a1['BtOIH'],UPDATED_CLI_ENDPOINT,_0x258df3,_0x1f363d);return logger[_0xf7d026(0x126)](_0xf7d026(0x16b)+JSON['stringify'](_0x248172)),_0x248172;};static[a72_0x57ce67(0x11c)](_0x38349d){const _0x1226c9=a72_0x57ce67;try{const _0x156ade=fs['openSync'](_0x38349d,'r+');return fs['closeSync'](_0x156ade),![];}catch(_0x12cb58){if(BINARY_BUSY_ERROR_CODES['includes'](_0x12cb58[_0x1226c9(0xe1)]))return logger['debug']('Binary\x20is\x20busy:\x20'+_0x38349d),!![];return logger['debug'](_0x1226c9(0x1b0)+_0x12cb58[_0x1226c9(0xd7)]),![];}}static[a72_0x57ce67(0x141)](_0x24fe57,_0x2fbda5=''){const _0x1c791e=a72_0x57ce67,_0x2f68a0={'Ivkaj':'version','cQEiK':function(_0x55a6dc,_0x18e0bb){return _0x55a6dc(_0x18e0bb);},'TFHxw':function(_0x241cf8,_0x353fc0){return _0x241cf8(_0x353fc0);},'bFsgb':_0x1c791e(0x14f),'axOKw':function(_0x1ec623,_0xa8eb38){return _0x1ec623(_0xa8eb38);},'iHiAZ':function(_0x5c10af,_0x281bef,_0x49866a,_0x19624b){return _0x5c10af(_0x281bef,_0x49866a,_0x19624b);},'zGDWv':_0x1c791e(0x150)};return new Promise((_0x14a374,_0x29943a)=>{const _0x59fb74=_0x1c791e,_0x22c94e={};_0x22c94e[_0x59fb74(0x100)]=_0x2fbda5,_0x22c94e[_0x59fb74(0xd3)]=0x1388;const _0x5de293=_0x2f68a0[_0x59fb74(0x137)](exec,_0x24fe57,_0x22c94e,(_0x1aa2aa,_0x3e1132,_0x1fd9d7)=>{const _0x4ed0ae=_0x59fb74;if(_0x1aa2aa){if(_0x24fe57[_0x4ed0ae(0x115)](_0x2f68a0[_0x4ed0ae(0x119)])&&(_0x3e1132['trim']()||_0x1fd9d7['trim']())){const _0x59df22=_0x3e1132[_0x4ed0ae(0x139)]()||_0x1fd9d7[_0x4ed0ae(0x139)]();logger['debug'](_0x4ed0ae(0x18f)+_0x59df22+'\x22'),_0x2f68a0[_0x4ed0ae(0x135)](_0x14a374,_0x59df22);}else _0x2f68a0[_0x4ed0ae(0x10d)](_0x14a374,_0x1fd9d7[_0x4ed0ae(0x139)]()||_0x2f68a0[_0x4ed0ae(0x181)]);}else logger[_0x4ed0ae(0x126)](_0x4ed0ae(0x10c)+_0x3e1132['trim']()+'\x22'),_0x2f68a0[_0x4ed0ae(0x17d)](_0x14a374,_0x3e1132[_0x4ed0ae(0x139)]());});_0x5de293['on'](_0x2f68a0[_0x59fb74(0x133)],()=>{const _0x2e5bd0=_0x59fb74;_0x2f68a0[_0x2e5bd0(0x10d)](_0x14a374,_0x2f68a0[_0x2e5bd0(0x181)]);});});}static [a72_0x57ce67(0xfc)]=async(_0x26d9a8,_0x275810)=>{const _0xfac222=a72_0x57ce67,_0x587d93={'qyFQT':function(_0x5266b3,_0x3772b3){return _0x5266b3(_0x3772b3);},'aioQV':_0xfac222(0x150),'AObIV':'Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','Klrbw':'Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','VpeSw':function(_0x41ae3b,_0x51cf1f){return _0x41ae3b(_0x51cf1f);},'ONRMr':function(_0xb6af5d,_0x51e31c){return _0xb6af5d(_0x51e31c);}};PerformanceTester[_0xfac222(0x15b)](PerformanceEvents['SDK_CLI_DOWNLOAD']),logger[_0xfac222(0x126)](_0xfac222(0xd0)+_0x26d9a8);try{const _0x25dbca=url[_0xfac222(0x12f)](_0x26d9a8),_0x3073d4=path[_0xfac222(0xfd)](_0x275810,_0xfac222(0x159)+process[_0xfac222(0x14c)]+_0xfac222(0x125)),_0x18c98e=fs['createWriteStream'](_0x3073d4);return new Promise((_0x5456b2,_0x5cab80)=>{const _0x8c6edc=_0xfac222,_0x1c198c={'rTgsW':_0x587d93[_0x8c6edc(0xfa)],'aKFVK':function(_0x50957c,_0x39557a){return _0x587d93['qyFQT'](_0x50957c,_0x39557a);},'kmDoE':_0x587d93[_0x8c6edc(0x193)],'DDFmI':function(_0x6df4aa,_0x3fbec7){const _0x6436e4=_0x8c6edc;return _0x587d93[_0x6436e4(0x18b)](_0x6df4aa,_0x3fbec7);},'Ycrxz':function(_0xdb965c,_0x3f42e7){return _0x587d93['VpeSw'](_0xdb965c,_0x3f42e7);},'BfALP':function(_0x2e7686,_0x4ea3b0){return _0x587d93['ONRMr'](_0x2e7686,_0x4ea3b0);}};https[_0x8c6edc(0x127)](_0x25dbca,function(_0x21dde7){const _0x468c8d=_0x8c6edc,_0x4dbac3={'OIUkG':function(_0x16fa37,_0x11104e){const _0x95d3fb=a72_0x3235;return _0x587d93[_0x95d3fb(0x18b)](_0x16fa37,_0x11104e);}},_0xbe8ae=null;_0x21dde7[_0x468c8d(0x178)](_0x18c98e),_0x21dde7['on'](_0x587d93[_0x468c8d(0x143)],function(_0x3dcd46){const _0x153e41=_0x468c8d;logger[_0x153e41(0x150)](util['format'](_0x1c198c[_0x153e41(0x182)],_0x3dcd46)),PerformanceTester[_0x153e41(0xe3)](PerformanceEvents[_0x153e41(0x162)],![],util[_0x153e41(0xd5)](_0x3dcd46)),_0x1c198c['aKFVK'](_0x5cab80,_0x3dcd46);}),_0x18c98e['on'](_0x587d93[_0x468c8d(0x143)],function(_0x331817){const _0xe6953=_0x468c8d;logger[_0xe6953(0x150)](util[_0xe6953(0xd5)](_0x1c198c[_0xe6953(0x131)],_0x331817)),PerformanceTester[_0xe6953(0xe3)](PerformanceEvents[_0xe6953(0x162)],![],util[_0xe6953(0xd5)](_0x331817)),_0x1c198c[_0xe6953(0x196)](_0x5cab80,_0x331817);}),CLIUtils['downloadFileStream'](_0x18c98e,_0xbe8ae,_0x3073d4,_0x275810,_0x10032d=>{const _0x118b06=_0x468c8d;PerformanceTester['end'](PerformanceEvents[_0x118b06(0x162)]),_0x4dbac3['OIUkG'](_0x5456b2,_0x10032d);},_0x45414f=>{const _0x51b3d2=_0x468c8d;PerformanceTester[_0x51b3d2(0xe3)](PerformanceEvents[_0x51b3d2(0x162)],![],util['format'](_0x45414f)),_0x1c198c[_0x51b3d2(0x11d)](_0x5cab80,_0x45414f);});})['on'](_0x587d93[_0x8c6edc(0x143)],function(_0x5db532){const _0x7a52fa=_0x8c6edc;logger[_0x7a52fa(0x150)]('Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20'+util[_0x7a52fa(0xd5)](_0x5db532)),PerformanceTester[_0x7a52fa(0xe3)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x7a52fa(0xd5)](_0x5db532)),_0x1c198c[_0x7a52fa(0x15d)](_0x5cab80,_0x5db532);});});}catch(_0x1e9257){PerformanceTester['end'](PerformanceEvents[_0xfac222(0x162)],![],util['format'](_0x1e9257)),logger['debug']('Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20'+util[_0xfac222(0xd5)](_0x1e9257));}};static[a72_0x57ce67(0x10f)](_0x3a85c8,_0x5543c2,_0xdc719a,_0x54108e,_0x2517dd,_0x3a8a59){const _0x429510=a72_0x57ce67,_0x3edc31={'tsCQg':_0x429510(0x180),'RrcHq':function(_0x244055,_0x476e57){return _0x244055!==_0x476e57;},'nNqBt':function(_0x477b86,_0x35ba34){return _0x477b86(_0x35ba34);},'PnowS':function(_0x36e7e6,_0x21bdfe){return _0x36e7e6(_0x21bdfe);},'bdRRJ':_0x429510(0x150),'ANCuL':function(_0x4f37af,_0x5bdbf3){return _0x4f37af(_0x5bdbf3);},'uHsvP':_0x429510(0xe3),'TZuMp':'EXDEV','hGgAi':function(_0x42291b,_0x47e447){return _0x42291b(_0x47e447);},'nuSeZ':_0x429510(0x161),'LXpKi':_0x429510(0x186)};_0x3a85c8['on'](_0x3edc31[_0x429510(0x199)],function(){const _0x1a6efe=_0x429510,_0x5ea79e={'RHFAK':_0x3edc31[_0x1a6efe(0x199)],'VxBqz':function(_0x6ef988,_0x372348){return _0x3edc31['RrcHq'](_0x6ef988,_0x372348);},'DTaJK':function(_0x19a5d8,_0x151a6c){return _0x3edc31['nNqBt'](_0x19a5d8,_0x151a6c);},'vXGNp':function(_0x245f5b,_0x115920){const _0x1b3793=_0x1a6efe;return _0x3edc31[_0x1b3793(0x124)](_0x245f5b,_0x115920);},'VcWDQ':_0x3edc31[_0x1a6efe(0x1ac)],'gJXcf':function(_0xcb789f,_0x782f1e){const _0x34b128=_0x1a6efe;return _0x3edc31[_0x34b128(0x124)](_0xcb789f,_0x782f1e);},'rkUxM':function(_0x5758a8,_0xaf6281){const _0x1e88e8=_0x1a6efe;return _0x3edc31[_0x1e88e8(0xdb)](_0x5758a8,_0xaf6281);},'HraaO':_0x3edc31[_0x1a6efe(0xfb)],'baHfk':function(_0x18cd12,_0x21dad3){const _0x4f4350=_0x1a6efe;return _0x3edc31[_0x4f4350(0x18d)](_0x18cd12,_0x21dad3);},'MZmIx':function(_0x1c9f27,_0x35eaed){const _0x496626=_0x1a6efe;return _0x3edc31[_0x496626(0x158)](_0x1c9f27,_0x35eaed);},'WClWA':_0x3edc31[_0x1a6efe(0x134)],'inamM':function(_0x3f4f31,_0x295c74){const _0xbbf7ef=_0x1a6efe;return _0x3edc31[_0xbbf7ef(0x155)](_0x3f4f31,_0x295c74);},'VxHCs':_0x3edc31[_0x1a6efe(0xd1)],'GTHbi':_0x3edc31[_0x1a6efe(0x12d)]},_0x2b9678={};_0x2b9678['lazyEntries']=!![],yauzl[_0x1a6efe(0x1aa)](_0xdc719a,_0x2b9678,function(_0x8092e7,_0x36064f){const _0xbe6ff9=_0x1a6efe,_0x232402={'wfhVS':function(_0x45453e,_0x7f3a32){return _0x5ea79e['gJXcf'](_0x45453e,_0x7f3a32);},'LaclI':function(_0x17ec24,_0x369fc7){const _0x5f50e0=a72_0x3235;return _0x5ea79e[_0x5f50e0(0x130)](_0x17ec24,_0x369fc7);},'VTcVn':function(_0x28da71,_0x434150){const _0x4d0bc7=a72_0x3235;return _0x5ea79e[_0x4d0bc7(0x1ad)](_0x28da71,_0x434150);},'iJFjd':_0x5ea79e['HraaO'],'INEiz':function(_0x314604,_0x76189d){const _0x375c5b=a72_0x3235;return _0x5ea79e[_0x375c5b(0x1ab)](_0x314604,_0x76189d);},'APyRL':function(_0x1631f5,_0x2ce04e){return _0x5ea79e['MZmIx'](_0x1631f5,_0x2ce04e);},'btbbe':_0x5ea79e[_0xbe6ff9(0x151)],'gDUnL':function(_0x411e5c,_0x14f5fb){const _0x1468a6=_0xbe6ff9;return _0x5ea79e[_0x1468a6(0x10b)](_0x411e5c,_0x14f5fb);},'AXHxJ':function(_0x1f79ec,_0x5a8ade){return _0x5ea79e['inamM'](_0x1f79ec,_0x5a8ade);},'PYNza':_0x5ea79e[_0xbe6ff9(0x19b)]};if(_0x8092e7){_0x5ea79e['inamM'](_0x3a8a59,_0x8092e7);return;}_0x36064f[_0xbe6ff9(0x167)](),_0x36064f['on'](_0x5ea79e[_0xbe6ff9(0x14a)],_0x49708c=>{const _0x59a1c7=_0xbe6ff9,_0x4facb3={};_0x4facb3[_0x59a1c7(0x1ae)]=_0x5ea79e[_0x59a1c7(0x1a1)];const _0x1c0983=_0x4facb3;if(/\/$/[_0x59a1c7(0x103)](_0x49708c[_0x59a1c7(0x18a)])){_0x36064f[_0x59a1c7(0x167)]();return;}!_0x5543c2&&(_0x5543c2=_0x49708c[_0x59a1c7(0x18a)]);if(_0x5ea79e[_0x59a1c7(0x120)](_0x49708c[_0x59a1c7(0x18a)],_0x5543c2))_0x36064f['readEntry']();else{const _0x27cf27=_0x49708c[_0x59a1c7(0x18a)],_0x4818a9=path[_0x59a1c7(0xfd)](_0x54108e,_0x27cf27+_0x59a1c7(0x13b)+process[_0x59a1c7(0x14c)]);let _0x15871e;try{_0x15871e=fs[_0x59a1c7(0x13d)](_0x4818a9);}catch(_0x4823dd){if(BINARY_BUSY_ERROR_CODES[_0x59a1c7(0x115)](_0x4823dd[_0x59a1c7(0xe1)])){const _0x225c91=path[_0x59a1c7(0xfd)](_0x54108e,_0x27cf27);if(fs[_0x59a1c7(0x17b)](_0x225c91)){logger['warn']('Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x27cf27),fs[_0x59a1c7(0x183)](_0xdc719a,_0x39e34d=>{const _0x5381f2=_0x59a1c7;_0x39e34d&&logger[_0x5381f2(0x14e)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0xdc719a);}),_0x5ea79e['DTaJK'](_0x2517dd,_0x225c91);return;}logger[_0x59a1c7(0x14e)](_0x59a1c7(0x16e)+_0x27cf27);}_0x5ea79e[_0x59a1c7(0x1ad)](_0x3a8a59,_0x4823dd);return;}_0x15871e['on'](_0x5ea79e[_0x59a1c7(0xde)],_0x545265=>{const _0x112927=_0x59a1c7;if(BINARY_BUSY_ERROR_CODES['includes'](_0x545265[_0x112927(0xe1)])){const _0x2303a2=path[_0x112927(0xfd)](_0x54108e,_0x27cf27);_0x15871e['close'](),fs['existsSync'](_0x2303a2)?(logger[_0x112927(0x14e)](_0x112927(0x185)+_0x545265[_0x112927(0xd7)]),_0x36064f['close'](),fs[_0x112927(0x183)](_0xdc719a,_0x20c262=>{const _0x198f05=_0x112927;_0x20c262&&logger[_0x198f05(0x14e)](_0x198f05(0x16c)+_0xdc719a);}),_0x232402[_0x112927(0xf1)](_0x2517dd,_0x2303a2)):(logger['warn'](_0x112927(0x12e)+_0x545265[_0x112927(0xd7)]),fs['unlink'](_0x4818a9,()=>{}),_0x232402[_0x112927(0xf1)](_0x3a8a59,_0x545265));}else fs['unlink'](_0x4818a9,()=>{}),_0x232402['LaclI'](_0x3a8a59,_0x545265);}),_0x36064f[_0x59a1c7(0xf6)](_0x49708c,function(_0x463261,_0x450414){const _0x3c7247=_0x59a1c7;if(_0x463261){fs[_0x3c7247(0x183)](_0x4818a9,()=>{}),_0x232402[_0x3c7247(0x117)](_0x3a8a59,_0x463261);return;}_0x450414['on'](_0x232402[_0x3c7247(0x19e)],function(){const _0x506827=_0x3c7247;_0x15871e[_0x506827(0xe3)](),_0x15871e['on'](_0x1c0983[_0x506827(0x1ae)],function(){_0x36064f['readEntry']();});}),_0x450414['pipe'](_0x15871e);});}}),_0x36064f['on'](_0x5ea79e[_0xbe6ff9(0xde)],_0xce770=>{_0x232402['INEiz'](_0x3a8a59,_0xce770);}),_0x36064f[_0xbe6ff9(0x122)](_0x5ea79e['HraaO'],()=>{const _0x78407e=_0xbe6ff9;fs[_0x78407e(0x183)](_0xdc719a,_0x16f84b=>{const _0x48be45=_0x78407e;_0x16f84b&&logger[_0x48be45(0x14e)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0xdc719a);});const _0x4c5124=path[_0x78407e(0xfd)](_0x54108e,_0x5543c2+_0x78407e(0x13b)+process[_0x78407e(0x14c)]),_0x34f2f4=path[_0x78407e(0xfd)](_0x54108e,_0x5543c2);fs[_0x78407e(0xf2)](_0x4c5124,_0x232402[_0x78407e(0x10e)],function(_0x17517a){const _0x231e0c=_0x78407e,_0xe0479c={'QaRFn':function(_0x2bfde2,_0x51581b){return _0x232402['APyRL'](_0x2bfde2,_0x51581b);},'GmbJG':_0x232402[_0x231e0c(0x11f)],'cglHV':function(_0x3c900e,_0x286b7b){return _0x232402['gDUnL'](_0x3c900e,_0x286b7b);},'OYKce':function(_0x3cf877,_0x24a4e8){return _0x232402['AXHxJ'](_0x3cf877,_0x24a4e8);}};if(_0x17517a){_0x36064f[_0x231e0c(0x180)](),fs[_0x231e0c(0x183)](_0x4c5124,()=>{}),_0x232402[_0x231e0c(0x136)](_0x3a8a59,_0x17517a);return;}fs[_0x231e0c(0x189)](_0x4c5124,_0x34f2f4,function(_0x197ad1){const _0x108810=_0x231e0c;if(_0x197ad1){if(_0xe0479c[_0x108810(0xea)](_0x197ad1[_0x108810(0xe1)],_0xe0479c['GmbJG'])){_0x36064f['close'](),fs['unlink'](_0x4c5124,()=>{}),_0xe0479c[_0x108810(0x157)](_0x3a8a59,_0x197ad1);return;}logger[_0x108810(0x14e)](_0x108810(0x128)+_0x197ad1[_0x108810(0xd7)]);try{fs[_0x108810(0x197)](_0x4c5124,_0x34f2f4);}catch(_0x28d99e){_0x36064f[_0x108810(0x180)](),fs[_0x108810(0x183)](_0x4c5124,()=>{}),_0xe0479c[_0x108810(0xe4)](_0x3a8a59,_0x28d99e);return;}fs[_0x108810(0x183)](_0x4c5124,_0x9f1bec=>{const _0x92cdc7=_0x108810;_0x9f1bec&&logger[_0x92cdc7(0x14e)](_0x92cdc7(0x198)+_0x9f1bec[_0x92cdc7(0xd7)]);});}_0x36064f[_0x108810(0x180)](),_0xe0479c[_0x108810(0x157)](_0x2517dd,_0x34f2f4);});});});});});}static[a72_0x57ce67(0x113)](){const _0x1bc0d4=a72_0x57ce67;if(process[_0x1bc0d4(0xf0)][_0x1bc0d4(0x116)])return JSON['parse'](process[_0x1bc0d4(0xf0)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']);return this[_0x1bc0d4(0x1b3)];}static[a72_0x57ce67(0x1a6)](){const _0x2dbaa9=a72_0x57ce67;if(process[_0x2dbaa9(0xf0)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL'])return JSON[_0x2dbaa9(0x12f)](process[_0x2dbaa9(0xf0)][_0x2dbaa9(0x166)]);return this[_0x2dbaa9(0x19d)];}static[a72_0x57ce67(0x173)](_0x46c21b,_0x510321){const _0x196f0a=a72_0x57ce67,_0x2c5390={'tSgeo':_0x196f0a(0x191),'RGQzc':function(_0x3711af,_0x59dd2c){return _0x3711af(_0x59dd2c);},'nmWog':function(_0xf73d0,_0x291a45){return _0xf73d0||_0x291a45;}},_0xd02db4=_0x2c5390[_0x196f0a(0x112)]['split']('|');let _0x6e48=0x0;while(!![]){switch(_0xd02db4[_0x6e48++]){case'0':process[_0x196f0a(0xf0)][_0x196f0a(0x116)]=JSON[_0x196f0a(0x13a)](this[_0x196f0a(0x1b3)]);continue;case'1':this['automationFrameworkDetail']={'name':_0x510321,'version':_0x2c5390[_0x196f0a(0x1a9)](getFrameworkVersion,_0x510321)};continue;case'2':_0x2c5390[_0x196f0a(0xdf)](!_0x46c21b,!_0x510321)&&logger[_0x196f0a(0x126)](_0x196f0a(0x15f)+_0x46c21b+_0x196f0a(0x174)+_0x510321);continue;case'3':process['env'][_0x196f0a(0x166)]=JSON['stringify'](this['automationFrameworkDetail']);continue;case'4':this['testFrameworkDetail']={'name':_0x46c21b,'version':{[_0x46c21b]:_0x2c5390[_0x196f0a(0x1a9)](getFrameworkVersion,_0x46c21b)}};continue;}break;}}static['getHookRegistryKey'](_0x16e5e9,_0x596577){return _0x16e5e9+':'+_0x596577;}static[a72_0x57ce67(0xfe)](){return process['pid']+':'+threadId;}static['shouldSkipSessionName'](_0x500edf){const _0x530ee6=a72_0x57ce67;if(_0x500edf[_0x530ee6(0x176)]&&_0x500edf[_0x530ee6(0x176)]['skipSessionName'])return!![];return![];}static[a72_0x57ce67(0x11e)](_0x5bee83){const _0x245a66=a72_0x57ce67;if(_0x5bee83['testContextOptions']&&_0x5bee83[_0x245a66(0x176)][_0x245a66(0xd8)])return!![];return![];}static[a72_0x57ce67(0x165)](_0x543391){const _0x5987db=a72_0x57ce67,_0x554dab=new RegExp(TestFrameworkConstants[_0x5987db(0x15c)]);return _0x554dab['test'](_0x543391);}static[a72_0x57ce67(0x160)](_0x20e760,_0x49baa7){const _0x237c35=a72_0x57ce67,_0x54e30d={};_0x54e30d[_0x237c35(0x1a2)]=function(_0x39e08c,_0x456f45){return _0x39e08c!==_0x456f45;},_0x54e30d['OtTFG']=function(_0x10786b,_0x3da7b3){return _0x10786b===_0x3da7b3;},_0x54e30d['IAljr']=_0x237c35(0x194);const _0x1eff7c=_0x54e30d;for(const [_0x1de6cd,_0x153434]of Object[_0x237c35(0x145)](_0x49baa7)){if(_0x1eff7c[_0x237c35(0x1a2)](_0x153434,null)&&_0x1eff7c[_0x237c35(0x107)](typeof _0x153434,_0x1eff7c[_0x237c35(0x109)])&&!Array['isArray'](_0x153434))_0x20e760[_0x1de6cd]=this[_0x237c35(0x160)](_0x20e760[_0x1de6cd]||{},_0x153434);else Array[_0x237c35(0x169)](_0x153434)?_0x20e760[_0x1de6cd]=(_0x20e760[_0x1de6cd]||[])[_0x237c35(0x175)](_0x153434):_0x20e760[_0x1de6cd]=_0x153434;}return _0x20e760;}}function a72_0x3235(_0x1b44d3,_0x1f9c02){const _0x249a17=a72_0x249a();return a72_0x3235=function(_0x3235e6,_0x59deba){_0x3235e6=_0x3235e6-0xd0;let _0x905bc7=_0x249a17[_0x3235e6];return _0x905bc7;},a72_0x3235(_0x1b44d3,_0x1f9c02);}module[a72_0x57ce67(0x17e)]=CLIUtils;
1
+ const a84_0x530dc9=a84_0x4f7e;(function(_0x568a78,_0x24f952){const _0x150558=a84_0x4f7e,_0x444f9e=_0x568a78();while(!![]){try{const _0x45de6c=-parseInt(_0x150558(0x24b))/0x1+-parseInt(_0x150558(0x243))/0x2+-parseInt(_0x150558(0x289))/0x3*(parseInt(_0x150558(0x250))/0x4)+parseInt(_0x150558(0x217))/0x5*(parseInt(_0x150558(0x20a))/0x6)+-parseInt(_0x150558(0x267))/0x7*(parseInt(_0x150558(0x1b6))/0x8)+-parseInt(_0x150558(0x247))/0x9*(-parseInt(_0x150558(0x25b))/0xa)+-parseInt(_0x150558(0x23f))/0xb*(-parseInt(_0x150558(0x1fe))/0xc);if(_0x45de6c===_0x24f952)break;else _0x444f9e['push'](_0x444f9e['shift']());}catch(_0x5f2d64){_0x444f9e['push'](_0x444f9e['shift']());}}}(a84_0x2a8d,0x67058));const fs=require('fs'),os=require('os'),url=require(a84_0x530dc9(0x221)),path=require(a84_0x530dc9(0x25e)),{exec}=require('child_process'),{https}=require(a84_0x530dc9(0x266)),yauzl=require(a84_0x530dc9(0x287)),util=require(a84_0x530dc9(0x277)),{getFrameworkVersion}=require(a84_0x530dc9(0x1cc)),{threadId}=require(a84_0x530dc9(0x239)),PerformanceTester=require(a84_0x530dc9(0x1cb)),{EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a84_0x530dc9(0x251)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a84_0x530dc9(0x203)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require('../utils/constants'),{createClassLogger}=require(a84_0x530dc9(0x226)),TestFrameworkInstance=require(a84_0x530dc9(0x273)),HookState=require(a84_0x530dc9(0x22c)),TestFrameworkState=require(a84_0x530dc9(0x1f4)),AutomationFrameworkState=require('./state/automationFrameworkState.js'),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),logger=createClassLogger(a84_0x530dc9(0x26b)),{getBStackAPIUrl}=require(a84_0x530dc9(0x215));class CLIUtils{['automationFrameworkDetail']={};['testFrameworkDetail']={};static[a84_0x530dc9(0x23d)](){const _0x2e241c=a84_0x530dc9,_0x8a5a14={};_0x8a5a14[_0x2e241c(0x1fb)]=function(_0x430e09,_0x4bfbd7){return _0x430e09===_0x4bfbd7;},_0x8a5a14['ytpGP']=_0x2e241c(0x23c);const _0x2cccf8=_0x8a5a14;return _0x2cccf8['sMpBi'](process[_0x2e241c(0x27d)][_0x2e241c(0x1f9)],_0x2cccf8['ytpGP']);}static['getCLIParamsForDevEnv'](){const _0x7ff3b0=a84_0x530dc9,_0x40f89b={};return _0x40f89b['id']=process[_0x7ff3b0(0x27d)][_0x7ff3b0(0x1f9)],_0x40f89b[_0x7ff3b0(0x201)]=_0x7ff3b0(0x262)+process[_0x7ff3b0(0x27d)]['BROWSERSTACK_CLI_ENV']+_0x7ff3b0(0x220),_0x40f89b;}static[a84_0x530dc9(0x1e4)](){const _0x19b39d=a84_0x530dc9,_0x376339={'zBlDc':function(_0x4b3723,_0x2ee0bf){return _0x4b3723(_0x2ee0bf);},'WAXgH':_0x19b39d(0x1e9)};return _0x376339[_0x19b39d(0x237)](require,_0x376339[_0x19b39d(0x1ce)])['version'];}static['getSdkLanguage'](){const _0xadcc25=a84_0x530dc9,_0xcacd3f={};_0xcacd3f['KuHIA']=_0xadcc25(0x27b);const _0x168c41=_0xcacd3f;return _0x168c41['KuHIA'];}static async['setupCliPath'](_0x48c3d4){const _0xf44fa6=a84_0x530dc9,_0x5550f5={'EWNlp':_0xf44fa6(0x1dd),'lBLtC':function(_0x171d10,_0x2fe91d){return _0x171d10(_0x2fe91d);},'DVhki':function(_0xd0200a,_0x4e1e52){return _0xd0200a(_0x4e1e52);},'ugVkV':_0xf44fa6(0x1c6)};logger[_0xf44fa6(0x20b)](_0x5550f5[_0xf44fa6(0x271)]);const _0x5e66fc=process[_0xf44fa6(0x27d)][_0xf44fa6(0x207)];if(!_0x5550f5[_0xf44fa6(0x1f1)](isNullOrEmpty,_0x5e66fc))return logger['debug']('Development\x20Cli\x20Path:\x20'+_0x5e66fc),_0x5e66fc;try{const _0x6b1570=this['getCliDir']();if(_0x5550f5[_0xf44fa6(0x26e)](isNullOrEmpty,_0x6b1570))throw new Error(_0x5550f5['ugVkV']);const _0x592e0e=this[_0xf44fa6(0x265)](_0x6b1570),_0x5ebe54=await this[_0xf44fa6(0x1c4)](_0x592e0e,_0x6b1570,_0x48c3d4);return logger[_0xf44fa6(0x20b)](_0xf44fa6(0x246)+_0x5ebe54),_0x5ebe54;}catch(_0x18d6a5){logger[_0xf44fa6(0x20b)](_0xf44fa6(0x258)+util[_0xf44fa6(0x279)](_0x18d6a5));}return null;}static async['checkAndUpdateCli'](_0x3db83c,_0x2e03a5,_0x2bd6c8){const _0xf6fa4b=a84_0x530dc9,_0x12b015={'zsveF':function(_0x317a7c){return _0x317a7c();},'fgMXH':function(_0x404d8e,_0x584567){return _0x404d8e(_0x584567);},'HghdQ':function(_0x41f1a1,_0x72ab0b,_0x58fed0){return _0x41f1a1(_0x72ab0b,_0x58fed0);},'oImmX':_0xf6fa4b(0x252),'sjQBh':'url'};PerformanceTester['start'](PerformanceEvents[_0xf6fa4b(0x242)]),logger['info']('Current\x20CLI\x20Path\x20Found:\x20'+_0x3db83c);const _0x46bc89=_0x12b015[_0xf6fa4b(0x28e)](getHostInfo),_0x327abf={'sdk_version':CLIUtils[_0xf6fa4b(0x1e4)](),'os':_0x46bc89['platform'],'os_arch':_0x46bc89[_0xf6fa4b(0x23e)],'cli_version':'0','sdk_language':this[_0xf6fa4b(0x229)]()};!_0x12b015[_0xf6fa4b(0x228)](isNullOrEmpty,_0x3db83c)&&(_0x327abf['cli_version']=await this[_0xf6fa4b(0x1e0)](_0x3db83c+_0xf6fa4b(0x212)));const _0x38c8dc=await this['requestToUpdateCLI'](_0x327abf,_0x2bd6c8);process['env'][_0xf6fa4b(0x1bc)]&&(logger[_0xf6fa4b(0x248)](_0xf6fa4b(0x284)+process[_0xf6fa4b(0x27d)][_0xf6fa4b(0x1bc)]),_0x38c8dc[_0xf6fa4b(0x252)][_0xf6fa4b(0x221)]=process[_0xf6fa4b(0x27d)][_0xf6fa4b(0x1bc)]);if(_0x12b015[_0xf6fa4b(0x26c)](nestedKeyValue,_0x38c8dc,[_0x12b015[_0xf6fa4b(0x1f0)],_0x12b015[_0xf6fa4b(0x1f5)]])){logger['debug'](_0xf6fa4b(0x1ba)+_0x327abf[_0xf6fa4b(0x20f)]);if(!_0x12b015[_0xf6fa4b(0x228)](isNullOrEmpty,_0x3db83c)&&this[_0xf6fa4b(0x20c)](_0x3db83c))return logger['warn'](_0xf6fa4b(0x224)+_0x3db83c),PerformanceTester[_0xf6fa4b(0x1e5)](PerformanceEvents[_0xf6fa4b(0x242)]),_0x3db83c;const _0x4edbcb=await this[_0xf6fa4b(0x24c)](_0x12b015['HghdQ'](nestedKeyValue,_0x38c8dc,[_0x12b015[_0xf6fa4b(0x1f0)],_0x12b015['sjQBh']]),_0x2e03a5);return PerformanceTester[_0xf6fa4b(0x1e5)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x4edbcb;}return PerformanceTester[_0xf6fa4b(0x1e5)](PerformanceEvents[_0xf6fa4b(0x242)]),_0x3db83c;}static[a84_0x530dc9(0x1e1)](){const _0x1504f1=a84_0x530dc9,_0x1b958a={'ExHQV':function(_0xf9c6,_0x4d1b94){return _0xf9c6(_0x4d1b94);},'vfEIq':_0x1504f1(0x1c6),'ZogrB':'cli','YGEDP':function(_0x2f2bca,_0x5c9836){return _0x2f2bca(_0x5c9836);}},_0x47a334=this[_0x1504f1(0x28c)]();try{if(_0x1b958a['ExHQV'](isNullOrEmpty,_0x47a334))throw new Error(_0x1b958a[_0x1504f1(0x1b4)]);const _0xa222e6=path[_0x1504f1(0x28f)](_0x47a334,_0x1b958a['ZogrB']);return!fs[_0x1504f1(0x28d)](_0xa222e6)&&_0x1b958a['YGEDP'](createDir,_0xa222e6),_0xa222e6;}catch(_0x19a8d1){logger[_0x1504f1(0x20b)](_0x1504f1(0x1d5)+util[_0x1504f1(0x279)](_0x19a8d1));}}static[a84_0x530dc9(0x28c)](){const _0x19f3bf=a84_0x530dc9,_0x9b1b3d={'BuvBX':_0x19f3bf(0x270),'UHuEt':function(_0x361d99,_0x149253){return _0x361d99(_0x149253);},'ukFyu':function(_0x263a9a,_0x3a31a8){return _0x263a9a(_0x3a31a8);}},_0x2b4e69=[process['env'][_0x19f3bf(0x256)],path[_0x19f3bf(0x28f)](os[_0x19f3bf(0x253)](),_0x9b1b3d['BuvBX']),path[_0x19f3bf(0x28f)](os['tmpdir'](),_0x9b1b3d['BuvBX'])];for(const _0x176678 of _0x2b4e69){if(_0x9b1b3d['UHuEt'](isNullOrEmpty,_0x176678))continue;try{if(fs[_0x19f3bf(0x28d)](_0x176678)){logger[_0x19f3bf(0x20b)](_0x19f3bf(0x282)+_0x176678+_0x19f3bf(0x1ea));if(!_0x9b1b3d[_0x19f3bf(0x211)](isModifiable,_0x176678)){logger['debug'](_0x19f3bf(0x269)+_0x176678);const _0xb482a6=_0x9b1b3d[_0x19f3bf(0x211)](setReadWriteExecuteAccess,_0x176678);if(!_0x9b1b3d[_0x19f3bf(0x211)](isTrue,_0xb482a6)){logger[_0x19f3bf(0x278)]('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x176678);continue;}}}else{logger[_0x19f3bf(0x20b)](_0x19f3bf(0x1f7)+_0x176678),_0x9b1b3d[_0x19f3bf(0x231)](createDir,_0x176678),logger['debug'](_0x19f3bf(0x269)+_0x176678);const _0x501e3c=_0x9b1b3d[_0x19f3bf(0x231)](setReadWriteExecuteAccess,_0x176678);!_0x9b1b3d[_0x19f3bf(0x211)](isTrue,_0x501e3c)&&logger[_0x19f3bf(0x278)](_0x19f3bf(0x1c2)+_0x176678);}return _0x176678;}catch(_0x2dff16){logger[_0x19f3bf(0x235)](_0x19f3bf(0x227)+util[_0x19f3bf(0x279)](_0x2dff16));}}return null;}static[a84_0x530dc9(0x265)](_0x2e8d53){const _0x58f9c8=a84_0x530dc9,_0x511c58={};_0x511c58[_0x58f9c8(0x1af)]=function(_0x52284a,_0x14eaf0){return _0x52284a>_0x14eaf0;};const _0x362855=_0x511c58;try{if(!fs[_0x58f9c8(0x28d)](_0x2e8d53)||!fs[_0x58f9c8(0x20e)](_0x2e8d53)['isDirectory']())return'';const _0x1bce2=fs[_0x58f9c8(0x1d0)](_0x2e8d53)['map'](_0x5d0fe5=>path[_0x58f9c8(0x28f)](_0x2e8d53,_0x5d0fe5))[_0x58f9c8(0x280)](_0x1c46ed=>fs[_0x58f9c8(0x20e)](_0x1c46ed)[_0x58f9c8(0x1ec)]()&&path['basename'](_0x1c46ed)['startsWith'](_0x58f9c8(0x1f6)));if(_0x362855[_0x58f9c8(0x1af)](_0x1bce2['length'],0x0)){const _0x6dd9b5=_0x1bce2['map'](_0x33afb=>({'filePath':_0x33afb,'mtime':fs['statSync'](_0x33afb)['mtime']}))[_0x58f9c8(0x1bb)]((_0x2c7202,_0x5745d1)=>{const _0x5a5b97=_0x58f9c8;if(!_0x2c7202||!_0x2c7202[_0x5a5b97(0x1d9)])return _0x5745d1;if(_0x362855['fTCuQ'](_0x5745d1[_0x5a5b97(0x1d9)],_0x2c7202[_0x5a5b97(0x1d9)]))return _0x5745d1;return _0x2c7202;},{});return _0x6dd9b5?_0x6dd9b5['filePath']:'';}return'';}catch(_0x5eb23e){return logger[_0x58f9c8(0x235)](_0x58f9c8(0x268)+util['format'](_0x5eb23e)),'';}}static [a84_0x530dc9(0x1ff)]=async(_0x5b327e,_0x361204)=>{const _0x3ce1ed=a84_0x530dc9,_0x404403={'wjpEa':function(_0x4eebb2,_0x2e76c2,_0x1d85fe,_0x1876ce,_0x10c170){return _0x4eebb2(_0x2e76c2,_0x1d85fe,_0x1876ce,_0x10c170);},'ejrVK':_0x3ce1ed(0x1c5)},_0x1ce548={};_0x1ce548['qs']=_0x5b327e;const _0x4dbadc=await _0x404403['wjpEa'](nodeRequest,_0x404403[_0x3ce1ed(0x218)],UPDATED_CLI_ENDPOINT,_0x1ce548,_0x361204);return logger[_0x3ce1ed(0x20b)](_0x3ce1ed(0x1b5)+JSON[_0x3ce1ed(0x286)](_0x4dbadc)),_0x4dbadc;};static[a84_0x530dc9(0x20c)](_0x157ac5){const _0x1f28ce=a84_0x530dc9;try{const _0x5c4a7c=fs[_0x1f28ce(0x1c7)](_0x157ac5,'r+');return fs[_0x1f28ce(0x1c3)](_0x5c4a7c),![];}catch(_0x2398d5){if(BINARY_BUSY_ERROR_CODES['includes'](_0x2398d5['code']))return logger[_0x1f28ce(0x20b)]('Binary\x20is\x20busy:\x20'+_0x157ac5),!![];return logger['debug'](_0x1f28ce(0x264)+_0x2398d5[_0x1f28ce(0x249)]),![];}}static['runShellCommand'](_0x226be3,_0x1838d3=''){const _0x509223=a84_0x530dc9,_0x1d176f={'upQom':function(_0x5a392f,_0x13cb2c){return _0x5a392f(_0x13cb2c);},'bDxyU':_0x509223(0x22d),'KFLJq':_0x509223(0x1d1),'hrxlV':function(_0x47ac94,_0x325e04){return _0x47ac94(_0x325e04);},'eWVFW':function(_0x25c0aa,_0x52637d,_0x2b90ba,_0x195e87){return _0x25c0aa(_0x52637d,_0x2b90ba,_0x195e87);},'uKqoi':'error'};return new Promise((_0x1c54da,_0x4101d8)=>{const _0x2fd112=_0x509223,_0x731d4f={'bRzhF':_0x1d176f[_0x2fd112(0x1c0)],'hOaKN':function(_0x4c90b8,_0x552d10){return _0x1d176f['hrxlV'](_0x4c90b8,_0x552d10);},'tVljR':function(_0x4e707e,_0xce0f45){const _0x1d05e2=_0x2fd112;return _0x1d176f[_0x1d05e2(0x234)](_0x4e707e,_0xce0f45);},'Xzeii':_0x1d176f['bDxyU']},_0x1e02bd={};_0x1e02bd[_0x2fd112(0x288)]=_0x1838d3,_0x1e02bd[_0x2fd112(0x1e7)]=0x1388;const _0x422b49=_0x1d176f[_0x2fd112(0x254)](exec,_0x226be3,_0x1e02bd,(_0x40bf4c,_0x1381a2,_0x20f87f)=>{const _0xe7d3e3=_0x2fd112;if(_0x40bf4c){if(_0x226be3[_0xe7d3e3(0x21a)](_0x731d4f[_0xe7d3e3(0x1b9)])&&(_0x1381a2[_0xe7d3e3(0x25f)]()||_0x20f87f[_0xe7d3e3(0x25f)]())){const _0x58f63f=_0x1381a2[_0xe7d3e3(0x25f)]()||_0x20f87f[_0xe7d3e3(0x25f)]();logger[_0xe7d3e3(0x20b)]('CLI\x20version\x20found\x20despite\x20error:\x20\x22'+_0x58f63f+'\x22'),_0x731d4f[_0xe7d3e3(0x21e)](_0x1c54da,_0x58f63f);}else _0x731d4f[_0xe7d3e3(0x22e)](_0x1c54da,_0x20f87f[_0xe7d3e3(0x25f)]()||_0x731d4f[_0xe7d3e3(0x245)]);}else logger['debug'](_0xe7d3e3(0x272)+_0x1381a2[_0xe7d3e3(0x25f)]()+'\x22'),_0x731d4f[_0xe7d3e3(0x21e)](_0x1c54da,_0x1381a2[_0xe7d3e3(0x25f)]());});_0x422b49['on'](_0x1d176f[_0x2fd112(0x281)],()=>{const _0x2090d7=_0x2fd112;_0x1d176f[_0x2090d7(0x22a)](_0x1c54da,_0x1d176f[_0x2090d7(0x219)]);});});}static [a84_0x530dc9(0x24c)]=async(_0x3bcb84,_0x96c9a1)=>{const _0x4cf92c=a84_0x530dc9,_0x5cc277={'yZtCl':function(_0x5dfbe1,_0x1f9d4c){return _0x5dfbe1(_0x1f9d4c);},'oLnee':_0x4cf92c(0x238),'VWHZf':function(_0x317bcc,_0x40e19b){return _0x317bcc(_0x40e19b);},'NbNIt':'Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','WHdue':function(_0x1841a3,_0x1fb72f){return _0x1841a3(_0x1fb72f);},'JYSWR':_0x4cf92c(0x235)};PerformanceTester[_0x4cf92c(0x222)](PerformanceEvents[_0x4cf92c(0x22b)]),logger['debug'](_0x4cf92c(0x1e2)+_0x3bcb84);try{const _0x1b534f=url[_0x4cf92c(0x1d8)](_0x3bcb84),_0x45eece=path[_0x4cf92c(0x28f)](_0x96c9a1,_0x4cf92c(0x1b2)+process['pid']+_0x4cf92c(0x24f)),_0x3483e9=fs['createWriteStream'](_0x45eece);return new Promise((_0x4aa750,_0x56431c)=>{const _0x25b3d8=_0x4cf92c,_0x3d74a9={'nlaSH':_0x5cc277[_0x25b3d8(0x1fd)],'VesNM':function(_0x3f8f50,_0x48e5d5){return _0x5cc277['VWHZf'](_0x3f8f50,_0x48e5d5);},'MvGjR':_0x5cc277['NbNIt'],'nPuHj':function(_0x83684b,_0x2a7e5b){const _0x4f7b3c=_0x25b3d8;return _0x5cc277[_0x4f7b3c(0x27c)](_0x83684b,_0x2a7e5b);},'LQqnH':function(_0xf9221f,_0x1e1a24){const _0x564ae4=_0x25b3d8;return _0x5cc277[_0x564ae4(0x27c)](_0xf9221f,_0x1e1a24);},'rvQez':function(_0xd2dc9c,_0x51de3d){return _0x5cc277['WHdue'](_0xd2dc9c,_0x51de3d);},'wODDG':_0x5cc277['JYSWR']};https[_0x25b3d8(0x24a)](_0x1b534f,function(_0x199a7b){const _0x354270=_0x25b3d8,_0x3b6423={'UOZKq':function(_0x46de42,_0x2d0cf7){const _0xfc41ba=a84_0x4f7e;return _0x3d74a9[_0xfc41ba(0x232)](_0x46de42,_0x2d0cf7);}},_0x2e4732=null;_0x199a7b[_0x354270(0x274)](_0x3483e9),_0x199a7b['on'](_0x3d74a9['wODDG'],function(_0x542c7f){const _0xb4c7f5=_0x354270;logger[_0xb4c7f5(0x235)](util[_0xb4c7f5(0x279)](_0x3d74a9[_0xb4c7f5(0x1da)],_0x542c7f)),PerformanceTester['end'](PerformanceEvents[_0xb4c7f5(0x22b)],![],util['format'](_0x542c7f)),_0x3d74a9[_0xb4c7f5(0x25a)](_0x56431c,_0x542c7f);}),_0x3483e9['on'](_0x3d74a9[_0x354270(0x1be)],function(_0x107c16){const _0x1665fa=_0x354270;logger[_0x1665fa(0x235)](util[_0x1665fa(0x279)](_0x3d74a9[_0x1665fa(0x283)],_0x107c16)),PerformanceTester[_0x1665fa(0x1e5)](PerformanceEvents[_0x1665fa(0x22b)],![],util[_0x1665fa(0x279)](_0x107c16)),_0x3d74a9['nPuHj'](_0x56431c,_0x107c16);}),CLIUtils['downloadFileStream'](_0x3483e9,_0x2e4732,_0x45eece,_0x96c9a1,_0x25141b=>{const _0x5bfa35=_0x354270;PerformanceTester[_0x5bfa35(0x1e5)](PerformanceEvents['SDK_CLI_DOWNLOAD']),_0x3b6423[_0x5bfa35(0x1c1)](_0x4aa750,_0x25141b);},_0x340db9=>{const _0x20f612=_0x354270;PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x20f612(0x279)](_0x340db9)),_0x3d74a9[_0x20f612(0x202)](_0x56431c,_0x340db9);});})['on'](_0x5cc277[_0x25b3d8(0x263)],function(_0x55e849){const _0x30d928=_0x25b3d8;logger['error'](_0x30d928(0x216)+util['format'](_0x55e849)),PerformanceTester['end'](PerformanceEvents[_0x30d928(0x22b)],![],util[_0x30d928(0x279)](_0x55e849)),_0x5cc277[_0x30d928(0x1df)](_0x56431c,_0x55e849);});});}catch(_0x14cbf3){PerformanceTester[_0x4cf92c(0x1e5)](PerformanceEvents[_0x4cf92c(0x22b)],![],util[_0x4cf92c(0x279)](_0x14cbf3)),logger['debug'](_0x4cf92c(0x1b0)+util[_0x4cf92c(0x279)](_0x14cbf3));}};static[a84_0x530dc9(0x261)](_0x2edb97,_0xff5c2f,_0x556f60,_0x11aa91,_0x2f1764,_0x127110){const _0x2df66a=a84_0x530dc9,_0xf7200a={'xxkYw':function(_0x341d22,_0xba6204){return _0x341d22(_0xba6204);},'HjGIg':_0x2df66a(0x275),'kNUPP':_0x2df66a(0x1e5),'ceogf':function(_0x33af52,_0x288483){return _0x33af52!==_0x288483;},'sQwdM':function(_0x4db1d5,_0xad0735){return _0x4db1d5(_0xad0735);},'EGIEJ':_0x2df66a(0x235),'egQfZ':function(_0x4ab44c,_0x386a81){return _0x4ab44c(_0x386a81);},'CxAcq':function(_0x1103eb,_0x45bc56){return _0x1103eb!==_0x45bc56;},'VAIps':'EXDEV','obRKd':_0x2df66a(0x1db),'kZYbA':'entry'};_0x2edb97['on'](_0xf7200a[_0x2df66a(0x21f)],function(){const _0x26aee6=_0x2df66a,_0x49a80c={'rEaQW':function(_0x2091f0,_0x4a5aab){const _0x2310e6=a84_0x4f7e;return _0xf7200a[_0x2310e6(0x1cf)](_0x2091f0,_0x4a5aab);},'RbKDa':_0xf7200a[_0x26aee6(0x21f)],'WoUoP':_0xf7200a[_0x26aee6(0x26d)],'foBVD':function(_0x29fa93,_0x35d66a){const _0x1cd49d=_0x26aee6;return _0xf7200a[_0x1cd49d(0x21d)](_0x29fa93,_0x35d66a);},'SzOwm':function(_0x54bebf,_0x1e0594){const _0x5efc15=_0x26aee6;return _0xf7200a[_0x5efc15(0x1cf)](_0x54bebf,_0x1e0594);},'JouOB':function(_0x14a1b7,_0x56f0d4){return _0xf7200a['sQwdM'](_0x14a1b7,_0x56f0d4);},'YmDvv':_0xf7200a[_0x26aee6(0x244)],'hXkOq':function(_0x507b7c,_0x35d311){const _0x4cee11=_0x26aee6;return _0xf7200a[_0x4cee11(0x22f)](_0x507b7c,_0x35d311);},'AhYDS':function(_0x5bdfaf,_0x4d9547){const _0x830d9e=_0x26aee6;return _0xf7200a[_0x830d9e(0x200)](_0x5bdfaf,_0x4d9547);},'Fekju':_0xf7200a['VAIps'],'fVtCJ':_0xf7200a[_0x26aee6(0x24e)],'Xszig':function(_0x2d8d87,_0x134219){const _0x34047a=_0x26aee6;return _0xf7200a[_0x34047a(0x1cf)](_0x2d8d87,_0x134219);},'AizRs':_0xf7200a[_0x26aee6(0x1d3)]},_0x502d34={};_0x502d34[_0x26aee6(0x20d)]=!![],yauzl[_0x26aee6(0x21c)](_0x556f60,_0x502d34,function(_0x4e6de5,_0x6c1e9a){const _0x9474f8=_0x26aee6,_0x5defdb={'cRInB':function(_0x32c9d9,_0x11fa2e){return _0x49a80c['AhYDS'](_0x32c9d9,_0x11fa2e);},'ClCpL':_0x49a80c[_0x9474f8(0x1b3)],'kLIOg':function(_0x423a67,_0x109feb){return _0x49a80c['SzOwm'](_0x423a67,_0x109feb);},'tJUJt':_0x49a80c[_0x9474f8(0x1ed)]};if(_0x4e6de5){_0x49a80c[_0x9474f8(0x1bf)](_0x127110,_0x4e6de5);return;}_0x6c1e9a[_0x9474f8(0x1de)](),_0x6c1e9a['on'](_0x49a80c[_0x9474f8(0x257)],_0x47632d=>{const _0x1be130=_0x9474f8,_0x2d9237={'fYaRk':function(_0x55d561,_0x1202d7){return _0x49a80c['rEaQW'](_0x55d561,_0x1202d7);},'EQKcN':function(_0x1ce571,_0xf645e5){const _0x15bc16=a84_0x4f7e;return _0x49a80c[_0x15bc16(0x230)](_0x1ce571,_0xf645e5);},'ycEuh':_0x49a80c[_0x1be130(0x259)],'hlZAo':_0x49a80c['WoUoP']};if(/\/$/['test'](_0x47632d[_0x1be130(0x26f)])){_0x6c1e9a['readEntry']();return;}!_0xff5c2f&&(_0xff5c2f=_0x47632d[_0x1be130(0x26f)]);if(_0x49a80c[_0x1be130(0x28b)](_0x47632d[_0x1be130(0x26f)],_0xff5c2f))_0x6c1e9a[_0x1be130(0x1de)]();else{const _0x580301=_0x47632d[_0x1be130(0x26f)],_0x4759ee=path['join'](_0x11aa91,_0x580301+_0x1be130(0x209)+process[_0x1be130(0x208)]);let _0x22107;try{_0x22107=fs[_0x1be130(0x1d6)](_0x4759ee);}catch(_0xa0d7a6){if(BINARY_BUSY_ERROR_CODES[_0x1be130(0x21a)](_0xa0d7a6[_0x1be130(0x210)])){const _0x10201c=path[_0x1be130(0x28f)](_0x11aa91,_0x580301);if(fs['existsSync'](_0x10201c)){logger[_0x1be130(0x278)](_0x1be130(0x1d2)+_0x580301),fs[_0x1be130(0x1ef)](_0x556f60,_0x575d5d=>{const _0xc6d5ee=_0x1be130;_0x575d5d&&logger[_0xc6d5ee(0x278)](_0xc6d5ee(0x27a)+_0x556f60);}),_0x49a80c[_0x1be130(0x223)](_0x2f1764,_0x10201c);return;}logger['warn']('Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x580301);}_0x49a80c[_0x1be130(0x1eb)](_0x127110,_0xa0d7a6);return;}_0x22107['on'](_0x49a80c[_0x1be130(0x1b8)],_0x36aebf=>{const _0x5631bf=_0x1be130;if(BINARY_BUSY_ERROR_CODES[_0x5631bf(0x21a)](_0x36aebf[_0x5631bf(0x210)])){const _0x3a45ea=path[_0x5631bf(0x28f)](_0x11aa91,_0x580301);_0x22107['close'](),fs[_0x5631bf(0x28d)](_0x3a45ea)?(logger[_0x5631bf(0x278)](_0x5631bf(0x21b)+_0x36aebf['message']),_0x6c1e9a[_0x5631bf(0x275)](),fs[_0x5631bf(0x1ef)](_0x556f60,_0x558c0=>{const _0x43a96b=_0x5631bf;_0x558c0&&logger['warn'](_0x43a96b(0x27a)+_0x556f60);}),_0x2d9237[_0x5631bf(0x285)](_0x2f1764,_0x3a45ea)):(logger[_0x5631bf(0x278)](_0x5631bf(0x1bd)+_0x36aebf[_0x5631bf(0x249)]),fs['unlink'](_0x4759ee,()=>{}),_0x2d9237['EQKcN'](_0x127110,_0x36aebf));}else fs[_0x5631bf(0x1ef)](_0x4759ee,()=>{}),_0x2d9237[_0x5631bf(0x290)](_0x127110,_0x36aebf);}),_0x6c1e9a[_0x1be130(0x206)](_0x47632d,function(_0x51f279,_0x3b89c4){const _0x3bd2b8=_0x1be130,_0x583eb5={};_0x583eb5['gMqCd']=_0x2d9237['ycEuh'];const _0x519d90=_0x583eb5;if(_0x51f279){fs[_0x3bd2b8(0x1ef)](_0x4759ee,()=>{}),_0x2d9237[_0x3bd2b8(0x285)](_0x127110,_0x51f279);return;}_0x3b89c4['on'](_0x2d9237[_0x3bd2b8(0x240)],function(){const _0x5d872d=_0x3bd2b8;_0x22107[_0x5d872d(0x1e5)](),_0x22107['on'](_0x519d90[_0x5d872d(0x24d)],function(){const _0x2daf9c=_0x5d872d;_0x6c1e9a[_0x2daf9c(0x1de)]();});}),_0x3b89c4[_0x3bd2b8(0x274)](_0x22107);});}}),_0x6c1e9a['on'](_0x49a80c[_0x9474f8(0x1b8)],_0x47479a=>{_0x49a80c['hXkOq'](_0x127110,_0x47479a);}),_0x6c1e9a[_0x9474f8(0x260)](_0x49a80c[_0x9474f8(0x1b1)],()=>{const _0x1126cd=_0x9474f8,_0x33de04={'dXmhX':function(_0x5669ae,_0x22ebee){return _0x5defdb['cRInB'](_0x5669ae,_0x22ebee);},'UgDQd':_0x5defdb[_0x1126cd(0x236)],'kNkJP':function(_0x564679,_0x3b36b6){const _0x45b336=_0x1126cd;return _0x5defdb[_0x45b336(0x1ae)](_0x564679,_0x3b36b6);},'prYfB':function(_0x1e965f,_0x3596e4){const _0x2f5ff1=_0x1126cd;return _0x5defdb[_0x2f5ff1(0x1ae)](_0x1e965f,_0x3596e4);}};fs[_0x1126cd(0x1ef)](_0x556f60,_0x2c3c41=>{_0x2c3c41&&logger['warn']('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x556f60);});const _0x34bffc=path[_0x1126cd(0x28f)](_0x11aa91,_0xff5c2f+_0x1126cd(0x209)+process[_0x1126cd(0x208)]),_0x245e2d=path['join'](_0x11aa91,_0xff5c2f);fs['chmod'](_0x34bffc,_0x5defdb[_0x1126cd(0x1f8)],function(_0x15d7c0){const _0x1a4a07=_0x1126cd,_0x5532a2={'JZsYF':function(_0x5eea1f,_0x3fd67a){return _0x33de04['dXmhX'](_0x5eea1f,_0x3fd67a);},'Ntzea':_0x33de04['UgDQd'],'tFXSb':function(_0x6d68b1,_0x1f4520){const _0x55dd56=a84_0x4f7e;return _0x33de04[_0x55dd56(0x1e8)](_0x6d68b1,_0x1f4520);},'zSdJD':function(_0x4acf62,_0xfd8c86){const _0x2a4dbf=a84_0x4f7e;return _0x33de04[_0x2a4dbf(0x1e8)](_0x4acf62,_0xfd8c86);}};if(_0x15d7c0){_0x6c1e9a[_0x1a4a07(0x275)](),fs[_0x1a4a07(0x1ef)](_0x34bffc,()=>{}),_0x33de04[_0x1a4a07(0x255)](_0x127110,_0x15d7c0);return;}fs[_0x1a4a07(0x225)](_0x34bffc,_0x245e2d,function(_0x361d85){const _0x389f55=_0x1a4a07;if(_0x361d85){if(_0x5532a2[_0x389f55(0x1c9)](_0x361d85[_0x389f55(0x210)],_0x5532a2['Ntzea'])){_0x6c1e9a[_0x389f55(0x275)](),fs[_0x389f55(0x1ef)](_0x34bffc,()=>{}),_0x5532a2[_0x389f55(0x1fc)](_0x127110,_0x361d85);return;}logger['warn'](_0x389f55(0x1fa)+_0x361d85['message']);try{fs['copyFileSync'](_0x34bffc,_0x245e2d);}catch(_0x513742){_0x6c1e9a[_0x389f55(0x275)](),fs[_0x389f55(0x1ef)](_0x34bffc,()=>{}),_0x5532a2[_0x389f55(0x1fc)](_0x127110,_0x513742);return;}fs[_0x389f55(0x1ef)](_0x34bffc,_0x38ccd6=>{const _0x3ca487=_0x389f55;_0x38ccd6&&logger[_0x3ca487(0x278)](_0x3ca487(0x25d)+_0x38ccd6[_0x3ca487(0x249)]);});}_0x6c1e9a['close'](),_0x5532a2[_0x389f55(0x1f3)](_0x2f1764,_0x245e2d);});});});});});}static[a84_0x530dc9(0x1cd)](){const _0x4bce48=a84_0x530dc9;if(process['env'][_0x4bce48(0x213)])return JSON['parse'](process[_0x4bce48(0x27d)][_0x4bce48(0x213)]);return this[_0x4bce48(0x241)];}static[a84_0x530dc9(0x1e3)](){const _0x35e19b=a84_0x530dc9;if(process[_0x35e19b(0x27d)][_0x35e19b(0x1d4)])return JSON[_0x35e19b(0x1d8)](process['env']['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']);return this[_0x35e19b(0x23b)];}static['setFrameworkDetail'](_0x37b1a4,_0x4da46f){const _0x6f9db8=a84_0x530dc9,_0x448a0b={'vsEAr':_0x6f9db8(0x1e6),'UQkkc':function(_0x5a22cd,_0x39d165){return _0x5a22cd(_0x39d165);},'HXCLy':function(_0x85921b,_0x1f2b65){return _0x85921b||_0x1f2b65;}},_0x488dcf=_0x448a0b['vsEAr'][_0x6f9db8(0x26a)]('|');let _0x105db4=0x0;while(!![]){switch(_0x488dcf[_0x105db4++]){case'0':process[_0x6f9db8(0x27d)][_0x6f9db8(0x1d4)]=JSON[_0x6f9db8(0x286)](this[_0x6f9db8(0x23b)]);continue;case'1':this['automationFrameworkDetail']={'name':_0x4da46f,'version':_0x448a0b[_0x6f9db8(0x276)](getFrameworkVersion,_0x4da46f)};continue;case'2':_0x448a0b[_0x6f9db8(0x25c)](!_0x37b1a4,!_0x4da46f)&&logger['debug']('Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework='+_0x37b1a4+_0x6f9db8(0x214)+_0x4da46f);continue;case'3':process[_0x6f9db8(0x27d)][_0x6f9db8(0x213)]=JSON[_0x6f9db8(0x286)](this[_0x6f9db8(0x241)]);continue;case'4':this['testFrameworkDetail']={'name':_0x37b1a4,'version':{[_0x37b1a4]:_0x448a0b[_0x6f9db8(0x276)](getFrameworkVersion,_0x37b1a4)}};continue;}break;}}static[a84_0x530dc9(0x205)](_0x43dd54,_0x5e4302){return _0x43dd54+':'+_0x5e4302;}static[a84_0x530dc9(0x28a)](){const _0x38aa68=a84_0x530dc9;return process[_0x38aa68(0x208)]+':'+threadId;}static['shouldSkipSessionName'](_0x5720e4){const _0x8fc2bc=a84_0x530dc9;if(_0x5720e4[_0x8fc2bc(0x1b7)]&&_0x5720e4[_0x8fc2bc(0x1b7)][_0x8fc2bc(0x1f2)])return!![];return![];}static[a84_0x530dc9(0x27f)](_0x599469){const _0x5182a0=a84_0x530dc9;if(_0x599469[_0x5182a0(0x1b7)]&&_0x599469[_0x5182a0(0x1b7)][_0x5182a0(0x291)])return!![];return![];}static[a84_0x530dc9(0x1d7)](_0x45690a){const _0x371a26=a84_0x530dc9,_0x5ef190=new RegExp(TestFrameworkConstants['HOOK_REGEX']);return _0x5ef190[_0x371a26(0x23a)](_0x45690a);}static[a84_0x530dc9(0x233)](_0x41227b,_0x47d1ec){const _0x4fb68f=a84_0x530dc9,_0x5da632={};_0x5da632['mchOr']=function(_0x314788,_0xe47018){return _0x314788!==_0xe47018;},_0x5da632[_0x4fb68f(0x1c8)]=function(_0x306fe6,_0x256abf){return _0x306fe6===_0x256abf;},_0x5da632[_0x4fb68f(0x27e)]='object';const _0x30ae6c=_0x5da632;for(const [_0x599aa6,_0x2c6cbb]of Object[_0x4fb68f(0x1dc)](_0x47d1ec)){if(_0x30ae6c[_0x4fb68f(0x1ca)](_0x2c6cbb,null)&&_0x30ae6c[_0x4fb68f(0x1c8)](typeof _0x2c6cbb,_0x30ae6c['vddBv'])&&!Array['isArray'](_0x2c6cbb))_0x41227b[_0x599aa6]=this['mergeObject'](_0x41227b[_0x599aa6]||{},_0x2c6cbb);else Array[_0x4fb68f(0x1ee)](_0x2c6cbb)?_0x41227b[_0x599aa6]=(_0x41227b[_0x599aa6]||[])['concat'](_0x2c6cbb):_0x41227b[_0x599aa6]=_0x2c6cbb;}return _0x41227b;}}function a84_0x4f7e(_0x13a424,_0x2f802a){const _0x2a8dd3=a84_0x2a8d();return a84_0x4f7e=function(_0x4f7ef2,_0x321dc4){_0x4f7ef2=_0x4f7ef2-0x1ae;let _0x3f64a5=_0x2a8dd3[_0x4f7ef2];return _0x3f64a5;},a84_0x4f7e(_0x13a424,_0x2f802a);}module[a84_0x530dc9(0x204)]=CLIUtils;function a84_0x2a8d(){const _0x58f297=['./state/testFrameworkState.js','sjQBh','binary-','Folder\x20does\x20not\x20exist:\x20','tJUJt','BROWSERSTACK_CLI_ENV','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','sMpBi','tFXSb','oLnee','130428mpwGzz','requestToUpdateCLI','CxAcq','listen','LQqnH','../../helpers/helper','exports','getHookRegistryKey','openReadStream','SDK_CLI_BIN_PATH','pid','.tmp.','42DbntwH','debug','isBinaryBusy','lazyEntries','statSync','cli_version','code','UHuEt','\x20version','BROWSERSTACK_TEST_FRAMEWORK_DETAIL',',\x20automationFramework=','../utils/apiUtilityMethods.js','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','540895yuUYfg','ejrVK','bDxyU','includes','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','open','ceogf','hOaKN','HjGIg','.sock','url','start','SzOwm','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','rename','../../helpers/classLogger.js','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','fgMXH','getSdkLanguage','upQom','SDK_CLI_DOWNLOAD','./state/hookState.js','SHELL_EXECUTE_ERROR','tVljR','egQfZ','rEaQW','ukFyu','rvQez','mergeObject','hrxlV','error','ClCpL','zBlDc','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','worker_threads','test','automationFrameworkDetail','development','isDevelopmentEnv','arch','1298dfqxWI','hlZAo','testFrameworkDetail','SDK_CLI_CHECK_UPDATE','569426treNdw','EGIEJ','Xzeii','Resolved\x20binary\x20path:\x20','9Rnbsjo','info','message','get','586048DTVVHo','downloadLatestBinary','gMqCd','obRKd','.zip','439996SiXwsz','../../helpers/utilities','data','homedir','eWVFW','prYfB','BROWSERSTACK_FILES_DIR','AizRs','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','RbKDa','VesNM','102750pwLHJB','HXCLy','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','path','trim','once','downloadFileStream','unix:/tmp/sdk-platform-','JYSWR','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','getExistingCliPath','follow-redirects','7iqsQpW','Error\x20while\x20reading\x20CLI\x20path:\x20','Setting\x20required\x20permissions\x20to\x20','split','CLIUtils','HghdQ','kNUPP','DVhki','fileName','.browserstack','EWNlp','Resolving\x20with\x20stdout:\x20\x22','./instances/testFrameworkInstance.js','pipe','close','UQkkc','util','warn','format','Failed\x20to\x20delete\x20zip\x20file:\x20','node','VWHZf','env','vddBv','shouldSkipSessionStatus','filter','uKqoi','Folder\x20','MvGjR','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','fYaRk','stringify','yauzl','cwd','3XeEbLm','getCurrentInstanceName','foBVD','getWritableDir','existsSync','zsveF','join','EQKcN','skipSessionStatus','kLIOg','fTCuQ','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','WoUoP','downloaded_file_','Fekju','vfEIq','response\x20','5178672ewOxRU','testContextOptions','YmDvv','bRzhF','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','reduce','BROWSERSTACK_BINARY_URL','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','wODDG','Xszig','KFLJq','UOZKq','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','closeSync','checkAndUpdateCli','GET','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','openSync','PxIHp','JZsYF','mchOr','../../helpers/performance/performance-tester.js','../../helpers/test-observability/utils.js','getTestFrameworkDetail','WAXgH','xxkYw','readdirSync','version','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','kZYbA','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','createWriteStream','matchHookRegex','parse','mtime','nlaSH','0755','entries','Configuring\x20Cli\x20path.','readEntry','yZtCl','runShellCommand','getCliDir','Downloading\x20SDK\x20binary\x20from:\x20','getAutomationFrameworkDetail','getSdkVersion','end','2|4|1|0|3','timeout','kNkJP','../../../package.json','\x20already\x20exists','JouOB','isFile','fVtCJ','isArray','unlink','oImmX','lBLtC','skipSessionName','zSdJD'];a84_0x2a8d=function(){return _0x58f297;};return a84_0x2a8d();}
@@ -1 +1 @@
1
- 'use strict';function a73_0x1adc(){const _0x59d8f3=['CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','readdirSync','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','zdOeZ','unlinkSync','getTestUUID','aXvAR','aggregateBuildLevelTagsFromTmp','setCustomTags','27548fvabBC','ms)\x20','readFileSync','includes','POST','setTestDetails','uMwwL','getBuildTagsRunId','../../helpers/classLogger','mergeValues','multi_dropdown','LEPIH','isRunning','mergeIntoTags','ZUkiW',',\x20finalTags=','./framework/constants/testFrameworkConstants','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','30kaWYvf','bstack_build_tags_','env','944805frgWRw','./cliUtils','buildHashedId','Wvrik','jest','getBuildLevelTags','../../helpers/helper','path','BUILD_TAG_FILE_PREFIX','kwSsB','MODULE_NAME','WzuYd','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','message','PRHnq','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','KEY_TEST_ID','IOlYy','hAWnb','exports','TEST','statSync','string','length','dSami','writeFile','ZAXNh','getInstance','fcUuO','field_type','Urcnl','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','mtimeMs','1537332zdgKit','ROcud','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','BkaBf','pid','utf8','480jbhipK','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','join','isArray','stringify','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','IudLs','625329QZZdAv','.json','ULyXP','KEY_CUSTOM_TAGS','_testInternals','keys','\x20->\x20values=','vkDzB','FiygX','./browserstackCLI',':jest-','trim','modules','resolveInstance','__jestCurrentTestIdentifier','debug','getTestIdentifierFromTestInfo','parseCommaSeparatedValues','5174680IHhZAB','nXLEK','getTestDetails','testInfo','7fzbIpl','__workerDetails','buildLevelTags','tmpdir','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','addMultipleEntries','from','testLevelTags','getBuildTagsFilePath','QDZsN','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','316916yYKWAu','cmuTu','./state/testFrameworkState','KdVZU','./TestInfo','values','pFHCB','endsWith','332420cxFDtx','null','getTestFramework','VupVk','./state/hookState','gZjSh','getTrackedInstance','testhubConfig','finhO','parse'];a73_0x1adc=function(){return _0x59d8f3;};return a73_0x1adc();}const a73_0x2da6a4=a73_0x3ec9;(function(_0x3e22f3,_0x565fb7){const _0x5987c7=a73_0x3ec9,_0x1a714f=_0x3e22f3();while(!![]){try{const _0x39561e=-parseInt(_0x5987c7(0x11d))/0x1+-parseInt(_0x5987c7(0x16f))/0x2+parseInt(_0x5987c7(0x147))/0x3*(parseInt(_0x5987c7(0x18b))/0x4)+-parseInt(_0x5987c7(0x177))/0x5+-parseInt(_0x5987c7(0x13e))/0x6*(-parseInt(_0x5987c7(0x164))/0x7)+parseInt(_0x5987c7(0x160))/0x8+-parseInt(_0x5987c7(0x14e))/0x9*(parseInt(_0x5987c7(0x11a))/0xa);if(_0x39561e===_0x565fb7)break;else _0x1a714f['push'](_0x1a714f['shift']());}catch(_0x422cae){_0x1a714f['push'](_0x1a714f['shift']());}}}(a73_0x1adc,0x99063));function a73_0x3ec9(_0x2444c6,_0x39f021){const _0x1adcac=a73_0x1adc();return a73_0x3ec9=function(_0x3ec96b,_0x2b1d36){_0x3ec96b=_0x3ec96b-0x112;let _0xaf5f54=_0x1adcac[_0x3ec96b];return _0xaf5f54;},a73_0x3ec9(_0x2444c6,_0x39f021);}const fs=require('fs'),os=require('os'),path=require(a73_0x2da6a4(0x124)),helper=require(a73_0x2da6a4(0x123)),AutomationFramework=require('./framework/automationFramework'),TestFrameworkConstants=require(a73_0x2da6a4(0x118)),PlaywrightDriverModule=require('./modules/playwrightDriverModule'),TestInfo=require(a73_0x2da6a4(0x173)),TestHubModule=require('./modules/testhubModule'),{createClassLogger}=require(a73_0x2da6a4(0x193)),logger=createClassLogger('CustomTagManager'),BUILD_TAG_FILE_PREFIX=a73_0x2da6a4(0x11b);function getBuildTagsRunId(){const _0x4ae070=a73_0x2da6a4,_0x20360f={};_0x20360f[_0x4ae070(0x161)]=function(_0x58d9c0,_0x130eca){return _0x58d9c0===_0x130eca;},_0x20360f[_0x4ae070(0x170)]=_0x4ae070(0x178);const _0x26c9c7=_0x20360f,_0x1a7a43=process[_0x4ae070(0x11c)]['BROWSERSTACK_TESTHUB_UUID'];if(!_0x1a7a43||_0x26c9c7['nXLEK'](_0x1a7a43,_0x26c9c7[_0x4ae070(0x170)]))return null;return _0x1a7a43;}function getBuildTagsFilePath(_0x25286c){const _0x41120e=a73_0x2da6a4;return path[_0x41120e(0x149)](os[_0x41120e(0x167)](),''+BUILD_TAG_FILE_PREFIX+_0x25286c+'_'+process[_0x41120e(0x145)]+'.json');}class CustomTagManager{static [a73_0x2da6a4(0x166)]={};static [a73_0x2da6a4(0x16b)]={};static[a73_0x2da6a4(0x194)](_0x260619,_0x293817){const _0x19402f=a73_0x2da6a4;return Array[_0x19402f(0x16a)](new Set([..._0x260619||[],..._0x293817||[]]));}static['mergeIntoTags'](_0x56cd24,_0x2038ec,_0x4129a1){const _0x16936c=a73_0x2da6a4,_0xe42ee0={};_0xe42ee0[_0x16936c(0x172)]='multi_dropdown';const _0x33f000=_0xe42ee0;if(!_0x56cd24[_0x2038ec]){const _0x15d858={};_0x15d858[_0x16936c(0x13a)]=_0x33f000[_0x16936c(0x172)],_0x15d858['values']=[..._0x4129a1||[]],_0x56cd24[_0x2038ec]=_0x15d858;}else!_0x56cd24[_0x2038ec]['field_type']&&(_0x56cd24[_0x2038ec][_0x16936c(0x13a)]=_0x33f000[_0x16936c(0x172)]),!Array['isArray'](_0x56cd24[_0x2038ec][_0x16936c(0x174)])&&(_0x56cd24[_0x2038ec][_0x16936c(0x174)]=[]),_0x56cd24[_0x2038ec]['values']=CustomTagManager[_0x16936c(0x194)](_0x56cd24[_0x2038ec][_0x16936c(0x174)],_0x4129a1);return _0x56cd24;}static async[a73_0x2da6a4(0x18a)](_0xd9fbea,_0x1d5b89,_0x580a93=![]){const _0x2694cb=a73_0x2da6a4,_0x417b08={'WzuYd':function(_0x1e54ac,_0x3646c8){return _0x1e54ac!==_0x3646c8;},'uMwwL':_0x2694cb(0x133),'HauBm':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','ULyXP':_0x2694cb(0x13c),'LEPIH':function(_0x3f29e7,_0x59b2cb){return _0x3f29e7===_0x59b2cb;},'VupVk':_0x2694cb(0x12c),'finhO':function(_0x23dc93,_0x3e8032){return _0x23dc93===_0x3e8032;},'ZAXNh':_0x2694cb(0x183),'dSami':function(_0x32f3bb,_0x48c69f){return _0x32f3bb(_0x48c69f);},'aXvAR':_0x2694cb(0x157),'Urcnl':function(_0x53b992){return _0x53b992();},'fcUuO':_0x2694cb(0x112),'HPfHp':function(_0x59dfc6,_0x592bf1){return _0x59dfc6>_0x592bf1;},'HMUUi':function(_0x362298,_0x40b08b){return _0x362298(_0x40b08b);},'PRHnq':'CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','gZjSh':_0x2694cb(0x158),'nLzap':function(_0x243187,_0x4257bc){return _0x243187(_0x4257bc);},'Wvrik':_0x2694cb(0x11e),'xrGwL':_0x2694cb(0x121),'QDZsN':_0x2694cb(0x142),'pFHCB':function(_0x978948,_0xab1da4){return _0x978948(_0xab1da4);},'qnCGH':_0x2694cb(0x141),'FiygX':_0x2694cb(0x171),'IudLs':_0x2694cb(0x17b),'zdOeZ':_0x2694cb(0x184)};if(_0x417b08[_0x2694cb(0x128)](typeof _0xd9fbea,_0x417b08[_0x2694cb(0x191)])){logger[_0x2694cb(0x15d)](_0x417b08['HauBm']);return;}if(_0x417b08[_0x2694cb(0x128)](typeof _0x1d5b89,_0x417b08[_0x2694cb(0x191)])){logger['debug'](_0x417b08[_0x2694cb(0x150)]);return;}if(_0x417b08[_0x2694cb(0x113)](_0xd9fbea[_0x2694cb(0x159)](),'')){logger[_0x2694cb(0x15d)](_0x417b08[_0x2694cb(0x17a)]);return;}if(_0x417b08[_0x2694cb(0x17f)](_0x1d5b89['trim'](),'')){logger['debug'](_0x417b08[_0x2694cb(0x137)]);return;}const _0x3d46ba=helper[_0x2694cb(0x15f)](_0x1d5b89);if(_0x580a93){const _0x1e2ac5=_0x417b08['dSami'](require,_0x417b08[_0x2694cb(0x188)]),_0xe0695a=_0x1e2ac5[_0x2694cb(0x138)](),_0x6774ca=_0xe0695a&&_0xe0695a[_0x2694cb(0x15a)][TestHubModule[_0x2694cb(0x127)]];if(_0x6774ca){const _0x13eb31=_0x6774ca?.[_0x2694cb(0x17e)]?.['toObject']()?.[_0x2694cb(0x11f)];TestInfo[_0x2694cb(0x187)](_0x13eb31);const _0xc9ed02=TestInfo['getTestDetails'](_0x13eb31),_0x3700c3=_0xc9ed02[TestFrameworkConstants[_0x2694cb(0x151)]]||{};CustomTagManager['mergeIntoTags'](_0x3700c3,_0xd9fbea,_0x3d46ba),_0xc9ed02[TestFrameworkConstants[_0x2694cb(0x151)]]=_0x3700c3,TestInfo[_0x2694cb(0x190)](_0x13eb31,_0xc9ed02);!this['buildLevelTags'][_0x13eb31]&&(this['buildLevelTags'][_0x13eb31]={});this[_0x2694cb(0x166)][_0x13eb31][_0xd9fbea]=CustomTagManager[_0x2694cb(0x194)](this[_0x2694cb(0x166)][_0x13eb31][_0xd9fbea],_0x3d46ba);try{const _0x39a8cb=_0x417b08[_0x2694cb(0x13b)](getBuildTagsRunId);if(_0x39a8cb){const _0x1fa1cc={};for(const [_0x3c6eb6,_0x254a76]of Object['entries'](this[_0x2694cb(0x166)][_0x13eb31]||{})){_0x1fa1cc[_0x3c6eb6]={'field_type':_0x417b08[_0x2694cb(0x139)],'values':Array[_0x2694cb(0x14a)](_0x254a76)?[..._0x254a76]:[]};}_0x417b08['HPfHp'](Object[_0x2694cb(0x153)](_0x1fa1cc)[_0x2694cb(0x134)],0x0)&&await fs['promises'][_0x2694cb(0x136)](_0x417b08['HMUUi'](getBuildTagsFilePath,_0x39a8cb),JSON[_0x2694cb(0x14b)](_0x1fa1cc));}else logger[_0x2694cb(0x15d)](_0x417b08[_0x2694cb(0x12b)]);}catch(_0x39f198){logger[_0x2694cb(0x15d)](_0x2694cb(0x181)+(_0x39f198&&_0x39f198['message']?_0x39f198['message']:_0x39f198));}}}else{let _0x33d95c;const _0x1600e4=global[_0x2694cb(0x15c)];let _0x34407b=![];if(_0x1600e4&&_0x1600e4['includes'](_0x417b08[_0x2694cb(0x17c)]))_0x34407b=!![],_0x33d95c=_0x1600e4;else try{const _0x50a7ea=_0x417b08['nLzap'](require,_0x417b08[_0x2694cb(0x120)]),_0x54cec9=_0x417b08[_0x2694cb(0x135)](require,_0x417b08['aXvAR']);if(_0x54cec9[_0x2694cb(0x138)]()[_0x2694cb(0x114)]()){const _0xa2e00=_0x50a7ea['getTestFrameworkDetail']();if(_0x417b08['LEPIH'](_0xa2e00?.['name']?.['toLowerCase'](),_0x417b08['xrGwL'])){const _0x16b1cf=AutomationFramework[_0x2694cb(0x17d)]();_0x33d95c=AutomationFramework['getState'](_0x16b1cf,PlaywrightDriverModule[_0x2694cb(0x12d)],''),_0x33d95c&&_0x33d95c[_0x2694cb(0x18e)](_0x417b08[_0x2694cb(0x17c)])&&(_0x34407b=!![]);}}}catch(_0x326af9){logger['debug']('CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20'+_0x326af9);}if(_0x34407b){if(!_0x33d95c)throw new Error(_0x417b08[_0x2694cb(0x16d)]);const _0x7bda75=_0x417b08['pFHCB'](require,_0x417b08[_0x2694cb(0x188)]),_0x1e9c59=_0x7bda75[_0x2694cb(0x138)]()[_0x2694cb(0x179)]();if(!_0x1e9c59)throw new Error(_0x417b08['qnCGH']);const _0x22e53e=_0x417b08[_0x2694cb(0x135)](require,_0x417b08[_0x2694cb(0x156)]),_0x5f3c8e=_0x417b08[_0x2694cb(0x175)](require,_0x417b08[_0x2694cb(0x14d)]),_0x139e8e=_0x1e9c59[_0x2694cb(0x15b)](_0x22e53e[_0x2694cb(0x131)],_0x5f3c8e[_0x2694cb(0x18f)]);if(!_0x139e8e)throw new Error(_0x417b08[_0x2694cb(0x185)]);const _0xf41176=_0x139e8e['getAllData']()['get'](_0x33d95c)||{},_0x5ad476=_0xf41176[TestFrameworkConstants[_0x2694cb(0x151)]]||{};logger['debug'](_0x2694cb(0x148)+_0x33d95c+',\x20key='+_0xd9fbea+',\x20values='+JSON[_0x2694cb(0x14b)](_0x3d46ba)+',\x20existingTags='+JSON[_0x2694cb(0x14b)](_0x5ad476)),CustomTagManager[_0x2694cb(0x115)](_0x5ad476,_0xd9fbea,_0x3d46ba),logger['debug'](_0x2694cb(0x129)+_0xd9fbea+_0x2694cb(0x154)+JSON['stringify'](_0x5ad476[_0xd9fbea][_0x2694cb(0x174)]));const _0x5279b6={[TestFrameworkConstants[_0x2694cb(0x151)]]:_0x5ad476},_0x582b06={};_0x582b06[_0x33d95c]=_0x5279b6,_0x139e8e[_0x2694cb(0x169)](_0x582b06),logger[_0x2694cb(0x15d)](_0x2694cb(0x143)+_0x33d95c+_0x2694cb(0x117)+JSON[_0x2694cb(0x14b)](_0x5ad476)),!this['testLevelTags'][_0x33d95c]&&(this[_0x2694cb(0x16b)][_0x33d95c]={}),this['testLevelTags'][_0x33d95c][_0xd9fbea]=CustomTagManager[_0x2694cb(0x194)](this['testLevelTags'][_0x33d95c][_0xd9fbea],_0x3d46ba);}else{const _0x543e4f=global[_0x2694cb(0x165)]?.['currentTest']?.[_0x2694cb(0x163)];if(!_0x543e4f){const _0x301d5a=AutomationFramework[_0x2694cb(0x17d)]();_0x33d95c=AutomationFramework['getState'](_0x301d5a,PlaywrightDriverModule[_0x2694cb(0x12d)],'');}else _0x33d95c=TestInfo[_0x2694cb(0x15e)](_0x543e4f,_0x543e4f['retry']);const _0x156632=TestInfo[_0x2694cb(0x162)](_0x33d95c),_0x5b4d60=_0x156632[TestFrameworkConstants[_0x2694cb(0x151)]]||{};CustomTagManager[_0x2694cb(0x115)](_0x5b4d60,_0xd9fbea,_0x3d46ba),_0x156632[TestFrameworkConstants[_0x2694cb(0x151)]]=_0x5b4d60,TestInfo[_0x2694cb(0x190)](_0x33d95c,_0x156632),!this[_0x2694cb(0x16b)][_0x33d95c]&&(this[_0x2694cb(0x16b)][_0x33d95c]={}),this['testLevelTags'][_0x33d95c][_0xd9fbea]=CustomTagManager[_0x2694cb(0x194)](this[_0x2694cb(0x16b)][_0x33d95c][_0xd9fbea],_0x3d46ba);}}}static[a73_0x2da6a4(0x122)](){const _0x355ded=a73_0x2da6a4,_0x5aae11={...this[_0x355ded(0x166)]};return _0x5aae11;}static['getTestLevelTags'](){const _0x3af7a3=a73_0x2da6a4,_0xcaa9aa={...this[_0x3af7a3(0x16b)]};return _0xcaa9aa;}static['clearTags'](){const _0x1d6416=a73_0x2da6a4;this[_0x1d6416(0x166)]={},this[_0x1d6416(0x16b)]={};}static['mergeBuildLevelTags'](_0x525e01,_0x2d1f8e){const _0x4a7421=a73_0x2da6a4,_0x2fc2cb={};_0x2fc2cb['vkDzB']=function(_0x21ad98,_0x11a537){return _0x21ad98||_0x11a537;};const _0x2c2798=_0x2fc2cb;if(!_0x525e01)return;!this[_0x4a7421(0x166)][_0x525e01]&&(this[_0x4a7421(0x166)][_0x525e01]={});for(const [_0x30974c,_0x5eda62]of Object['entries'](_0x2c2798[_0x4a7421(0x155)](_0x2d1f8e,{}))){if(!_0x5eda62||!Array[_0x4a7421(0x14a)](_0x5eda62[_0x4a7421(0x174)]))continue;this[_0x4a7421(0x166)][_0x525e01][_0x30974c]=CustomTagManager[_0x4a7421(0x194)](this[_0x4a7421(0x166)][_0x525e01][_0x30974c],_0x5eda62[_0x4a7421(0x174)]);}}static[a73_0x2da6a4(0x189)](_0x46bd43,_0x4f7490){const _0x512501=a73_0x2da6a4,_0x46fa41={};_0x46fa41[_0x512501(0x12e)]=_0x512501(0x140),_0x46fa41[_0x512501(0x116)]=function(_0x4df5fb,_0x36845b){return _0x4df5fb*_0x36845b;},_0x46fa41[_0x512501(0x144)]=function(_0x441bba,_0x277a88){return _0x441bba*_0x277a88;},_0x46fa41['kwSsB']=function(_0x51cd4c,_0x25c9ea){return _0x51cd4c>_0x25c9ea;},_0x46fa41[_0x512501(0x12f)]=function(_0x2e062e,_0x1fe10c){return _0x2e062e-_0x1fe10c;},_0x46fa41[_0x512501(0x13f)]=_0x512501(0x146);const _0x56391c=_0x46fa41;if(!_0x46bd43)return logger[_0x512501(0x15d)](_0x56391c['IOlYy']),0x0;let _0x4a3997;try{_0x4a3997=os[_0x512501(0x167)]();}catch(_0x25c746){return logger[_0x512501(0x15d)](_0x512501(0x119)+_0x25c746),0x0;}let _0x1f9118;try{_0x1f9118=fs[_0x512501(0x182)](_0x4a3997);}catch(_0x56e618){return logger[_0x512501(0x15d)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20'+_0x56e618),0x0;}const _0x471d64=''+BUILD_TAG_FILE_PREFIX+_0x46bd43+'_',_0x287cdc=_0x1f9118['filter'](_0x3c0212=>_0x3c0212['startsWith'](_0x471d64)&&_0x3c0212[_0x512501(0x176)](_0x512501(0x14f))),_0x3b50f3=_0x56391c[_0x512501(0x116)](_0x56391c[_0x512501(0x116)](_0x56391c[_0x512501(0x144)](0x2,0x3c),0x3c),0x3e8);let _0x9247=0x0;for(const _0x1042a8 of _0x287cdc){const _0x1eb529=path[_0x512501(0x149)](_0x4a3997,_0x1042a8);try{const _0x197ec9=fs[_0x512501(0x132)](_0x1eb529);if(_0x56391c[_0x512501(0x126)](_0x56391c[_0x512501(0x12f)](Date['now'](),_0x197ec9[_0x512501(0x13d)]),_0x3b50f3)){logger[_0x512501(0x15d)](_0x512501(0x168)+_0x3b50f3+_0x512501(0x18c)+_0x1042a8);try{fs[_0x512501(0x186)](_0x1eb529);}catch(_0x92f7f6){logger[_0x512501(0x15d)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20'+_0x1042a8+':\x20'+(_0x92f7f6&&_0x92f7f6['message']?_0x92f7f6[_0x512501(0x12a)]:_0x92f7f6));}continue;}const _0x35bffc=fs[_0x512501(0x18d)](_0x1eb529,_0x56391c[_0x512501(0x13f)]),_0x485291=JSON[_0x512501(0x180)](_0x35bffc);this['mergeBuildLevelTags'](_0x4f7490,_0x485291),_0x9247+=0x1;}catch(_0x313191){logger[_0x512501(0x15d)](_0x512501(0x14c)+_0x1042a8+':\x20'+(_0x313191&&_0x313191[_0x512501(0x12a)]?_0x313191[_0x512501(0x12a)]:_0x313191));}try{fs[_0x512501(0x186)](_0x1eb529);}catch(_0xa17f3){logger[_0x512501(0x15d)](_0x512501(0x16e)+_0x1042a8+':\x20'+(_0xa17f3&&_0xa17f3[_0x512501(0x12a)]?_0xa17f3['message']:_0xa17f3));}}return _0x9247;}}const a73_0x44858f={};a73_0x44858f[a73_0x2da6a4(0x192)]=getBuildTagsRunId,a73_0x44858f[a73_0x2da6a4(0x16c)]=getBuildTagsFilePath,a73_0x44858f[a73_0x2da6a4(0x125)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a73_0x2da6a4(0x152)]=a73_0x44858f,module[a73_0x2da6a4(0x130)]=CustomTagManager;
1
+ 'use strict';const a85_0x1c6409=a85_0x138c;(function(_0x5cafb5,_0x45bb41){const _0x10709b=a85_0x138c,_0x3cd99a=_0x5cafb5();while(!![]){try{const _0x3033f5=parseInt(_0x10709b(0x1af))/0x1+parseInt(_0x10709b(0x1f3))/0x2+-parseInt(_0x10709b(0x1d1))/0x3+-parseInt(_0x10709b(0x228))/0x4+parseInt(_0x10709b(0x1c5))/0x5*(-parseInt(_0x10709b(0x218))/0x6)+-parseInt(_0x10709b(0x1ba))/0x7*(parseInt(_0x10709b(0x1ae))/0x8)+parseInt(_0x10709b(0x227))/0x9;if(_0x3033f5===_0x45bb41)break;else _0x3cd99a['push'](_0x3cd99a['shift']());}catch(_0x24b9d4){_0x3cd99a['push'](_0x3cd99a['shift']());}}}(a85_0x3f9e,0xcb74b));function a85_0x138c(_0x46f108,_0x1d32ae){const _0x3f9ed2=a85_0x3f9e();return a85_0x138c=function(_0x138c35,_0x1ba74c){_0x138c35=_0x138c35-0x1a4;let _0x294c33=_0x3f9ed2[_0x138c35];return _0x294c33;},a85_0x138c(_0x46f108,_0x1d32ae);}function a85_0x3f9e(){const _0xc691f5=['fJEiG','RQSXA','tmpdir','QHIRR','CjKNh','COCdn','TEST','UVXBF','106626JjcYEv','elrtI','readFileSync','mtimeMs','buildHashedId','buildLevelTags','./modules/playwrightDriverModule','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','setCustomTags','\x20->\x20values=','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','addMultipleEntries','isRunning','KEY_CUSTOM_TAGS','cpqOc','15995556mCASoE','230896ErdyLT','setTestDetails','./framework/automationFramework','parse','./state/testFrameworkState','getState','getTestFrameworkDetail','PluWD','length','keys','../../helpers/classLogger','getBuildTagsFilePath','statSync','name','resolveInstance','PtXDN','exports','KgZwu','136Milhxg','797911QRKLyg','toObject','MODULE_NAME','getTrackedInstance','now','POST','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','values','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','CustomTagManager','kqRly','309393dgZslH',',\x20finalTags=','xdjIS','testInfo','writeFile','modules','CvtUM','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','mergeIntoTags','kJpVn','from','425sueFgf','testLevelTags','dZnYl','trim','promises','ms)\x20','getBuildTagsRunId','entries','multi_dropdown','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','./state/hookState','join','1018302YxgQqr','message',',\x20key=','../../helpers/helper','getInstance','DPifp','_testInternals','./cliUtils','yKwFF','isArray','./modules/testhubModule',',\x20existingTags=','VVThF','getTestDetails','testhubConfig','BUILD_TAG_FILE_PREFIX','ULOoU','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','PzBbd','get','fblnu','clearTags','unlinkSync','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','getTestIdentifierFromTestInfo','PIqsV','env','mergeBuildLevelTags','getAllData','utf8','string','.json','includes','wGVEv','1834472EUVAQA','jEsfC','./TestInfo','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','jest','KEY_TEST_ID','stringify','getTestLevelTags','nOKrn','./browserstackCLI','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','readdirSync','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','getTestUUID','pid',',\x20values=','getTestFramework','path','iXPPJ','debug','getBuildLevelTags','aggregateBuildLevelTagsFromTmp','endsWith','mergeValues','Pacei','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','YDEdF','retry','field_type'];a85_0x3f9e=function(){return _0xc691f5;};return a85_0x3f9e();}const fs=require('fs'),os=require('os'),path=require(a85_0x1c6409(0x204)),helper=require(a85_0x1c6409(0x1d4)),AutomationFramework=require(a85_0x1c6409(0x22a)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),PlaywrightDriverModule=require(a85_0x1c6409(0x21e)),TestInfo=require(a85_0x1c6409(0x1f5)),TestHubModule=require(a85_0x1c6409(0x1db)),{createClassLogger}=require(a85_0x1c6409(0x1a6)),logger=createClassLogger(a85_0x1c6409(0x1b8)),BUILD_TAG_FILE_PREFIX='bstack_build_tags_';function getBuildTagsRunId(){const _0x1e50b1=a85_0x1c6409,_0x5c8f22={};_0x5c8f22[_0x1e50b1(0x1ab)]=function(_0x1513fb,_0x2480ce){return _0x1513fb===_0x2480ce;},_0x5c8f22[_0x1e50b1(0x1c7)]='null';const _0x4bdb53=_0x5c8f22,_0x484d47=process[_0x1e50b1(0x1eb)]['BROWSERSTACK_TESTHUB_UUID'];if(!_0x484d47||_0x4bdb53[_0x1e50b1(0x1ab)](_0x484d47,_0x4bdb53[_0x1e50b1(0x1c7)]))return null;return _0x484d47;}function getBuildTagsFilePath(_0x4bba56){const _0x472e8f=a85_0x1c6409;return path[_0x472e8f(0x1d0)](os[_0x472e8f(0x212)](),''+BUILD_TAG_FILE_PREFIX+_0x4bba56+'_'+process[_0x472e8f(0x201)]+'.json');}class CustomTagManager{static [a85_0x1c6409(0x21d)]={};static ['testLevelTags']={};static['mergeValues'](_0xa0513c,_0x23982f){const _0x39057d=a85_0x1c6409;return Array[_0x39057d(0x1c4)](new Set([..._0xa0513c||[],..._0x23982f||[]]));}static[a85_0x1c6409(0x1c2)](_0x389bf4,_0xa138c5,_0x16610d){const _0x2d1da6=a85_0x1c6409,_0x1bfa54={};_0x1bfa54[_0x2d1da6(0x1c0)]='multi_dropdown';const _0x51faea=_0x1bfa54;if(!_0x389bf4[_0xa138c5]){const _0x5d17d9={};_0x5d17d9['field_type']=_0x51faea['CvtUM'],_0x5d17d9[_0x2d1da6(0x1b6)]=[..._0x16610d||[]],_0x389bf4[_0xa138c5]=_0x5d17d9;}else!_0x389bf4[_0xa138c5][_0x2d1da6(0x20f)]&&(_0x389bf4[_0xa138c5][_0x2d1da6(0x20f)]=_0x51faea[_0x2d1da6(0x1c0)]),!Array['isArray'](_0x389bf4[_0xa138c5]['values'])&&(_0x389bf4[_0xa138c5][_0x2d1da6(0x1b6)]=[]),_0x389bf4[_0xa138c5][_0x2d1da6(0x1b6)]=CustomTagManager['mergeValues'](_0x389bf4[_0xa138c5][_0x2d1da6(0x1b6)],_0x16610d);return _0x389bf4;}static async[a85_0x1c6409(0x220)](_0x53df36,_0xedfd1b,_0x393820=![]){const _0x595297=a85_0x1c6409,_0x5d8061={'RQSXA':function(_0xc9011c,_0x378519){return _0xc9011c!==_0x378519;},'fblnu':_0x595297(0x1ef),'KgZwu':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','iIMtm':_0x595297(0x1e2),'kqRly':function(_0x4627d3,_0x2a84fc){return _0x4627d3===_0x2a84fc;},'PIqsV':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','cpqOc':function(_0x28a87e,_0x55c81a){return _0x28a87e===_0x55c81a;},'PzBbd':_0x595297(0x222),'QHIRR':function(_0x2fec65,_0x2a0a23){return _0x2fec65(_0x2a0a23);},'UVXBF':_0x595297(0x1fc),'fJEiG':function(_0x1d6e91){return _0x1d6e91();},'YDEdF':_0x595297(0x1cd),'Pacei':function(_0x22bd2a,_0x18e48e){return _0x22bd2a>_0x18e48e;},'LtPWl':function(_0x90b2d1,_0x50c101){return _0x90b2d1(_0x50c101);},'yKwFF':'CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','ULOoU':':jest-','nOKrn':_0x595297(0x1d8),'vXgzZ':_0x595297(0x1f7),'wGVEv':_0x595297(0x1c1),'jEsfC':function(_0x3655c8,_0x2db96c){return _0x3655c8(_0x2db96c);},'amAgI':_0x595297(0x1f6),'CjKNh':function(_0x5ef74b,_0x2de6fc){return _0x5ef74b(_0x2de6fc);},'ITNQL':_0x595297(0x22c),'xdjIS':_0x595297(0x1cf),'kJpVn':'CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright'};if(_0x5d8061[_0x595297(0x211)](typeof _0x53df36,_0x5d8061['fblnu'])){logger[_0x595297(0x206)](_0x5d8061[_0x595297(0x1ad)]);return;}if(_0x5d8061[_0x595297(0x211)](typeof _0xedfd1b,_0x5d8061[_0x595297(0x1e5)])){logger['debug'](_0x5d8061['iIMtm']);return;}if(_0x5d8061[_0x595297(0x1b9)](_0x53df36[_0x595297(0x1c8)](),'')){logger[_0x595297(0x206)](_0x5d8061[_0x595297(0x1ea)]);return;}if(_0x5d8061[_0x595297(0x226)](_0xedfd1b[_0x595297(0x1c8)](),'')){logger[_0x595297(0x206)](_0x5d8061[_0x595297(0x1e3)]);return;}const _0x33dc9a=helper['parseCommaSeparatedValues'](_0xedfd1b);if(_0x393820){const _0x43df14=_0x5d8061[_0x595297(0x213)](require,_0x5d8061[_0x595297(0x217)]),_0x403227=_0x43df14[_0x595297(0x1d5)](),_0x35d927=_0x403227&&_0x403227[_0x595297(0x1bf)][TestHubModule[_0x595297(0x1b1)]];if(_0x35d927){const _0x105ba8=_0x35d927?.[_0x595297(0x1df)]?.[_0x595297(0x1b0)]()?.[_0x595297(0x21c)];TestInfo[_0x595297(0x200)](_0x105ba8);const _0x3b4690=TestInfo[_0x595297(0x1de)](_0x105ba8),_0x56dbcd=_0x3b4690[TestFrameworkConstants[_0x595297(0x225)]]||{};CustomTagManager[_0x595297(0x1c2)](_0x56dbcd,_0x53df36,_0x33dc9a),_0x3b4690[TestFrameworkConstants[_0x595297(0x225)]]=_0x56dbcd,TestInfo[_0x595297(0x229)](_0x105ba8,_0x3b4690);!this[_0x595297(0x21d)][_0x105ba8]&&(this['buildLevelTags'][_0x105ba8]={});this[_0x595297(0x21d)][_0x105ba8][_0x53df36]=CustomTagManager[_0x595297(0x20a)](this[_0x595297(0x21d)][_0x105ba8][_0x53df36],_0x33dc9a);try{const _0x6cbde4=_0x5d8061[_0x595297(0x210)](getBuildTagsRunId);if(_0x6cbde4){const _0x36857b={};for(const [_0x239795,_0x671c51]of Object[_0x595297(0x1cc)](this[_0x595297(0x21d)][_0x105ba8]||{})){_0x36857b[_0x239795]={'field_type':_0x5d8061[_0x595297(0x20d)],'values':Array[_0x595297(0x1da)](_0x671c51)?[..._0x671c51]:[]};}_0x5d8061[_0x595297(0x20b)](Object[_0x595297(0x1a5)](_0x36857b)[_0x595297(0x1a4)],0x0)&&await fs[_0x595297(0x1c9)][_0x595297(0x1be)](_0x5d8061['LtPWl'](getBuildTagsFilePath,_0x6cbde4),JSON['stringify'](_0x36857b));}else logger['debug'](_0x5d8061[_0x595297(0x1d9)]);}catch(_0x4501d9){logger[_0x595297(0x206)]('CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20'+(_0x4501d9&&_0x4501d9[_0x595297(0x1d2)]?_0x4501d9[_0x595297(0x1d2)]:_0x4501d9));}}}else{let _0x3062e1;const _0x6b250b=global['__jestCurrentTestIdentifier'];let _0x49a924=![];if(_0x6b250b&&_0x6b250b[_0x595297(0x1f1)](_0x5d8061[_0x595297(0x1e1)]))_0x49a924=!![],_0x3062e1=_0x6b250b;else try{const _0x42298f=_0x5d8061[_0x595297(0x213)](require,_0x5d8061[_0x595297(0x1fb)]),_0x33648e=_0x5d8061['QHIRR'](require,_0x5d8061['UVXBF']);if(_0x33648e[_0x595297(0x1d5)]()[_0x595297(0x224)]()){const _0x160929=_0x42298f[_0x595297(0x22e)]();if(_0x5d8061['cpqOc'](_0x160929?.[_0x595297(0x1a9)]?.['toLowerCase'](),_0x5d8061['vXgzZ'])){const _0x195324=AutomationFramework[_0x595297(0x1b2)]();_0x3062e1=AutomationFramework[_0x595297(0x22d)](_0x195324,PlaywrightDriverModule['KEY_TEST_ID'],''),_0x3062e1&&_0x3062e1['includes'](_0x5d8061[_0x595297(0x1e1)])&&(_0x49a924=!![]);}}}catch(_0xbb576c){logger[_0x595297(0x206)](_0x595297(0x1ff)+_0xbb576c);}if(_0x49a924){if(!_0x3062e1)throw new Error(_0x5d8061[_0x595297(0x1f2)]);const _0x31a14a=_0x5d8061[_0x595297(0x1f4)](require,_0x5d8061[_0x595297(0x217)]),_0x5bd004=_0x31a14a[_0x595297(0x1d5)]()[_0x595297(0x203)]();if(!_0x5bd004)throw new Error(_0x5d8061['amAgI']);const _0x46324b=_0x5d8061['CjKNh'](require,_0x5d8061['ITNQL']),_0x463411=_0x5d8061[_0x595297(0x214)](require,_0x5d8061[_0x595297(0x1bc)]),_0x42fe0a=_0x5bd004[_0x595297(0x1aa)](_0x46324b[_0x595297(0x216)],_0x463411[_0x595297(0x1b4)]);if(!_0x42fe0a)throw new Error(_0x5d8061[_0x595297(0x1c3)]);const _0x5bd981=_0x42fe0a[_0x595297(0x1ed)]()[_0x595297(0x1e4)](_0x3062e1)||{},_0x3d8a56=_0x5bd981[TestFrameworkConstants[_0x595297(0x225)]]||{};logger['debug'](_0x595297(0x1ce)+_0x3062e1+_0x595297(0x1d3)+_0x53df36+_0x595297(0x202)+JSON[_0x595297(0x1f9)](_0x33dc9a)+_0x595297(0x1dc)+JSON[_0x595297(0x1f9)](_0x3d8a56)),CustomTagManager[_0x595297(0x1c2)](_0x3d8a56,_0x53df36,_0x33dc9a),logger['debug']('[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key='+_0x53df36+_0x595297(0x221)+JSON[_0x595297(0x1f9)](_0x3d8a56[_0x53df36][_0x595297(0x1b6)]));const _0x298026={[TestFrameworkConstants[_0x595297(0x225)]]:_0x3d8a56},_0x450fb1={};_0x450fb1[_0x3062e1]=_0x298026,_0x42fe0a[_0x595297(0x223)](_0x450fb1),logger[_0x595297(0x206)]('[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier='+_0x3062e1+_0x595297(0x1bb)+JSON['stringify'](_0x3d8a56)),!this[_0x595297(0x1c6)][_0x3062e1]&&(this[_0x595297(0x1c6)][_0x3062e1]={}),this['testLevelTags'][_0x3062e1][_0x53df36]=CustomTagManager['mergeValues'](this['testLevelTags'][_0x3062e1][_0x53df36],_0x33dc9a);}else{const _0x35b53d=global['__workerDetails']?.['currentTest']?.[_0x595297(0x1bd)];if(!_0x35b53d){const _0x3b47c1=AutomationFramework[_0x595297(0x1b2)]();_0x3062e1=AutomationFramework[_0x595297(0x22d)](_0x3b47c1,PlaywrightDriverModule[_0x595297(0x1f8)],'');}else _0x3062e1=TestInfo[_0x595297(0x1e9)](_0x35b53d,_0x35b53d[_0x595297(0x20e)]);const _0x1b78db=TestInfo[_0x595297(0x1de)](_0x3062e1),_0x416442=_0x1b78db[TestFrameworkConstants[_0x595297(0x225)]]||{};CustomTagManager[_0x595297(0x1c2)](_0x416442,_0x53df36,_0x33dc9a),_0x1b78db[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x416442,TestInfo[_0x595297(0x229)](_0x3062e1,_0x1b78db),!this[_0x595297(0x1c6)][_0x3062e1]&&(this[_0x595297(0x1c6)][_0x3062e1]={}),this[_0x595297(0x1c6)][_0x3062e1][_0x53df36]=CustomTagManager[_0x595297(0x20a)](this[_0x595297(0x1c6)][_0x3062e1][_0x53df36],_0x33dc9a);}}}static[a85_0x1c6409(0x207)](){const _0xdf1798=a85_0x1c6409,_0x57eb24={...this[_0xdf1798(0x21d)]};return _0x57eb24;}static[a85_0x1c6409(0x1fa)](){const _0x419dad={...this['testLevelTags']};return _0x419dad;}static[a85_0x1c6409(0x1e6)](){const _0x29d12e=a85_0x1c6409;this[_0x29d12e(0x21d)]={},this[_0x29d12e(0x1c6)]={};}static[a85_0x1c6409(0x1ec)](_0x2aa0e6,_0x29dda9){const _0x134066=a85_0x1c6409,_0xbc633f={};_0xbc633f['COCdn']=function(_0x1367c1,_0x41dd14){return _0x1367c1||_0x41dd14;};const _0x45ed0a=_0xbc633f;if(!_0x2aa0e6)return;!this[_0x134066(0x21d)][_0x2aa0e6]&&(this['buildLevelTags'][_0x2aa0e6]={});for(const [_0x3f05d4,_0x1f0de2]of Object[_0x134066(0x1cc)](_0x45ed0a[_0x134066(0x215)](_0x29dda9,{}))){if(!_0x1f0de2||!Array[_0x134066(0x1da)](_0x1f0de2[_0x134066(0x1b6)]))continue;this['buildLevelTags'][_0x2aa0e6][_0x3f05d4]=CustomTagManager[_0x134066(0x20a)](this['buildLevelTags'][_0x2aa0e6][_0x3f05d4],_0x1f0de2[_0x134066(0x1b6)]);}}static[a85_0x1c6409(0x208)](_0x453464,_0x92af0e){const _0x34aae5=a85_0x1c6409,_0x4b915d={};_0x4b915d['elrtI']=_0x34aae5(0x20c),_0x4b915d['PluWD']=function(_0x3d0af4,_0x1d7040){return _0x3d0af4*_0x1d7040;},_0x4b915d[_0x34aae5(0x205)]=function(_0x284626,_0x30b12e){return _0x284626*_0x30b12e;},_0x4b915d[_0x34aae5(0x1d6)]=function(_0x5463cf,_0x1eca39){return _0x5463cf>_0x1eca39;},_0x4b915d['oJLuC']=function(_0x175bd2,_0x2727c7){return _0x175bd2-_0x2727c7;},_0x4b915d[_0x34aae5(0x1dd)]=_0x34aae5(0x1ee);const _0x2a5433=_0x4b915d;if(!_0x453464)return logger[_0x34aae5(0x206)](_0x2a5433[_0x34aae5(0x219)]),0x0;let _0xdb0074;try{_0xdb0074=os[_0x34aae5(0x212)]();}catch(_0x41eea4){return logger[_0x34aae5(0x206)](_0x34aae5(0x1fd)+_0x41eea4),0x0;}let _0x2943e7;try{_0x2943e7=fs[_0x34aae5(0x1fe)](_0xdb0074);}catch(_0x52ea19){return logger[_0x34aae5(0x206)](_0x34aae5(0x21f)+_0x52ea19),0x0;}const _0xcd4b5a=''+BUILD_TAG_FILE_PREFIX+_0x453464+'_',_0x2b9c34=_0x2943e7['filter'](_0x40fedb=>_0x40fedb['startsWith'](_0xcd4b5a)&&_0x40fedb[_0x34aae5(0x209)](_0x34aae5(0x1f0))),_0x127402=_0x2a5433['PluWD'](_0x2a5433[_0x34aae5(0x205)](_0x2a5433[_0x34aae5(0x22f)](0x2,0x3c),0x3c),0x3e8);let _0x34f0ed=0x0;for(const _0xc68bcc of _0x2b9c34){const _0x103fc2=path['join'](_0xdb0074,_0xc68bcc);try{const _0x3c5863=fs[_0x34aae5(0x1a8)](_0x103fc2);if(_0x2a5433[_0x34aae5(0x1d6)](_0x2a5433['oJLuC'](Date[_0x34aae5(0x1b3)](),_0x3c5863[_0x34aae5(0x21b)]),_0x127402)){logger[_0x34aae5(0x206)](_0x34aae5(0x1b5)+_0x127402+_0x34aae5(0x1ca)+_0xc68bcc);try{fs[_0x34aae5(0x1e7)](_0x103fc2);}catch(_0x10ddab){logger[_0x34aae5(0x206)](_0x34aae5(0x1b7)+_0xc68bcc+':\x20'+(_0x10ddab&&_0x10ddab[_0x34aae5(0x1d2)]?_0x10ddab['message']:_0x10ddab));}continue;}const _0x1316b4=fs[_0x34aae5(0x21a)](_0x103fc2,_0x2a5433[_0x34aae5(0x1dd)]),_0x3608c5=JSON[_0x34aae5(0x22b)](_0x1316b4);this[_0x34aae5(0x1ec)](_0x92af0e,_0x3608c5),_0x34f0ed+=0x1;}catch(_0x2dc489){logger[_0x34aae5(0x206)](_0x34aae5(0x1e8)+_0xc68bcc+':\x20'+(_0x2dc489&&_0x2dc489[_0x34aae5(0x1d2)]?_0x2dc489[_0x34aae5(0x1d2)]:_0x2dc489));}try{fs[_0x34aae5(0x1e7)](_0x103fc2);}catch(_0x5da010){logger['debug']('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20'+_0xc68bcc+':\x20'+(_0x5da010&&_0x5da010[_0x34aae5(0x1d2)]?_0x5da010[_0x34aae5(0x1d2)]:_0x5da010));}}return _0x34f0ed;}}const a85_0x29591c={};a85_0x29591c[a85_0x1c6409(0x1cb)]=getBuildTagsRunId,a85_0x29591c[a85_0x1c6409(0x1a7)]=getBuildTagsFilePath,a85_0x29591c[a85_0x1c6409(0x1e0)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a85_0x1c6409(0x1d7)]=a85_0x29591c,module[a85_0x1c6409(0x1ac)]=CustomTagManager;
@@ -1 +1 @@
1
- const a74_0x46bf39=a74_0x4b3b;(function(_0x494c98,_0x143c1d){const _0x447197=a74_0x4b3b,_0x34bd1d=_0x494c98();while(!![]){try{const _0x3088d5=parseInt(_0x447197(0xd2))/0x1+parseInt(_0x447197(0xd6))/0x2*(-parseInt(_0x447197(0xc8))/0x3)+parseInt(_0x447197(0xd7))/0x4*(-parseInt(_0x447197(0xcb))/0x5)+parseInt(_0x447197(0xca))/0x6+parseInt(_0x447197(0xd5))/0x7*(parseInt(_0x447197(0xcd))/0x8)+parseInt(_0x447197(0xcc))/0x9*(parseInt(_0x447197(0xd8))/0xa)+parseInt(_0x447197(0xd9))/0xb;if(_0x3088d5===_0x143c1d)break;else _0x34bd1d['push'](_0x34bd1d['shift']());}catch(_0x7e8365){_0x34bd1d['push'](_0x34bd1d['shift']());}}}(a74_0x5a95,0xb1d3b));const {createClassLogger}=require(a74_0x46bf39(0xd4));class EventDispatcher{static #instance=null;constructor(){const _0x447836=a74_0x46bf39;this[_0x447836(0xc9)]={};}static[a74_0x46bf39(0xd1)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a74_0x46bf39(0xce)](_0x28c86f,_0x75b24a){const _0xeb3731=a74_0x46bf39;!this[_0xeb3731(0xc9)][_0x28c86f]&&(this[_0xeb3731(0xc9)][_0x28c86f]=[]),this[_0xeb3731(0xc9)][_0x28c86f][_0xeb3731(0xd3)](_0x75b24a);}async['notifyObserver'](_0x50044a,_0x194872){const _0x103e88=a74_0x46bf39,_0xa1895f={'rXSfq':function(_0x498c5f,_0x13e5fa){return _0x498c5f(_0x13e5fa);}};if(this[_0x103e88(0xc9)][_0x50044a]){for(const _0x2e7148 of this[_0x103e88(0xc9)][_0x50044a]){await _0xa1895f[_0x103e88(0xd0)](_0x2e7148,_0x194872);}return;}}}const eventDispatcher=EventDispatcher[a74_0x46bf39(0xd1)]();function a74_0x5a95(){const _0x453d6a=['48CLXSwo','20lDlffA','8919340LfMLEo','9009902CYasUy','exports','164523DAqsDW','observers','150030OktEbc','389875BcGeDQ','9kMWYPL','32FTZslD','registerObserver','freeze','rXSfq','getInstance','25981PutJsP','push','../../helpers/classLogger.js','1176763cIQubr'];a74_0x5a95=function(){return _0x453d6a;};return a74_0x5a95();}function a74_0x4b3b(_0x16cf47,_0x32a6b1){const _0x5a95d5=a74_0x5a95();return a74_0x4b3b=function(_0x4b3b63,_0x5a63e5){_0x4b3b63=_0x4b3b63-0xc7;let _0x7c0123=_0x5a95d5[_0x4b3b63];return _0x7c0123;},a74_0x4b3b(_0x16cf47,_0x32a6b1);}Object[a74_0x46bf39(0xcf)](eventDispatcher),module[a74_0x46bf39(0xc7)]=eventDispatcher;
1
+ const a86_0x458ea3=a86_0x3d88;(function(_0x3d2bcc,_0x4599e3){const _0x2416e4=a86_0x3d88,_0x3ca922=_0x3d2bcc();while(!![]){try{const _0xf226e3=-parseInt(_0x2416e4(0x195))/0x1+-parseInt(_0x2416e4(0x192))/0x2+parseInt(_0x2416e4(0x196))/0x3+parseInt(_0x2416e4(0x199))/0x4*(-parseInt(_0x2416e4(0x193))/0x5)+-parseInt(_0x2416e4(0x1a0))/0x6*(-parseInt(_0x2416e4(0x19b))/0x7)+-parseInt(_0x2416e4(0x19d))/0x8*(parseInt(_0x2416e4(0x191))/0x9)+parseInt(_0x2416e4(0x1a1))/0xa;if(_0xf226e3===_0x4599e3)break;else _0x3ca922['push'](_0x3ca922['shift']());}catch(_0x2c8098){_0x3ca922['push'](_0x3ca922['shift']());}}}(a86_0x4dac,0xc1d6c));const {createClassLogger}=require(a86_0x458ea3(0x197));function a86_0x3d88(_0x29297d,_0x54530f){const _0x4dac4d=a86_0x4dac();return a86_0x3d88=function(_0x3d8844,_0x379098){_0x3d8844=_0x3d8844-0x191;let _0xbd1b67=_0x4dac4d[_0x3d8844];return _0xbd1b67;},a86_0x3d88(_0x29297d,_0x54530f);}class EventDispatcher{static #instance=null;constructor(){const _0x2e651d=a86_0x458ea3;this[_0x2e651d(0x194)]={};}static[a86_0x458ea3(0x19f)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}['registerObserver'](_0x48cc9c,_0x54af42){const _0xc3ca06=a86_0x458ea3;!this['observers'][_0x48cc9c]&&(this['observers'][_0x48cc9c]=[]),this[_0xc3ca06(0x194)][_0x48cc9c][_0xc3ca06(0x198)](_0x54af42);}async[a86_0x458ea3(0x19c)](_0x37c135,_0x1e7bea){const _0x2c0db0=a86_0x458ea3,_0x43f412={'xlwPl':function(_0x5b4a9c,_0x34181b){return _0x5b4a9c(_0x34181b);}};if(this[_0x2c0db0(0x194)][_0x37c135]){for(const _0x4094db of this[_0x2c0db0(0x194)][_0x37c135]){await _0x43f412[_0x2c0db0(0x19a)](_0x4094db,_0x1e7bea);}return;}}}const eventDispatcher=EventDispatcher[a86_0x458ea3(0x19f)]();Object[a86_0x458ea3(0x19e)](eventDispatcher),module['exports']=eventDispatcher;function a86_0x4dac(){const _0x25dae7=['xlwPl','84NeEpkU','notifyObserver','14680niwCxR','freeze','getInstance','607680mqpiQR','3161820yGSAVR','54OWhrUq','2027770lLgrcW','10715fvufrx','observers','212329QUpRll','2411856wHnlxC','../../helpers/classLogger.js','push','568FHAzYb'];a86_0x4dac=function(){return _0x25dae7;};return a86_0x4dac();}
@@ -1 +1 @@
1
- function a75_0x1066(_0x37e627,_0x4d4bbe){const _0x9d19e1=a75_0x9d19();return a75_0x1066=function(_0x1066bb,_0x5d9e2b){_0x1066bb=_0x1066bb-0xa0;let _0xf08b7b=_0x9d19e1[_0x1066bb];return _0xf08b7b;},a75_0x1066(_0x37e627,_0x4d4bbe);}const a75_0x124781=a75_0x1066;(function(_0x3a9429,_0x3136d0){const _0xffbd7c=a75_0x1066,_0xad4a0f=_0x3a9429();while(!![]){try{const _0x1d8d4b=-parseInt(_0xffbd7c(0xb9))/0x1+parseInt(_0xffbd7c(0xa1))/0x2+-parseInt(_0xffbd7c(0xc6))/0x3*(-parseInt(_0xffbd7c(0xb1))/0x4)+parseInt(_0xffbd7c(0xb5))/0x5*(-parseInt(_0xffbd7c(0xa7))/0x6)+parseInt(_0xffbd7c(0xac))/0x7*(parseInt(_0xffbd7c(0xc7))/0x8)+parseInt(_0xffbd7c(0xa5))/0x9+parseInt(_0xffbd7c(0xba))/0xa*(-parseInt(_0xffbd7c(0xa8))/0xb);if(_0x1d8d4b===_0x3136d0)break;else _0xad4a0f['push'](_0xad4a0f['shift']());}catch(_0x1eb35e){_0xad4a0f['push'](_0xad4a0f['shift']());}}}(a75_0x9d19,0x841c0));const {createClassLogger}=require(a75_0x124781(0xc3)),util=require(a75_0x124781(0xc0)),eventDispatcher=require(a75_0x124781(0xa6)),CLIUtils=require(a75_0x124781(0xc5)),TrackedInstance=require(a75_0x124781(0xb3)),logger=createClassLogger(a75_0x124781(0xb2));function a75_0x9d19(){const _0x4e49d9=['instances','../cliUtils.js','2427FbHcBx','4502104CeTrsz','getAutomationFrameworkName','getTrackedInstance','1716824tFqOLT','setState','automation_sessions','setTrackedInstance','5800518VJzzSl','../eventDispatcher.js','186882aMOafO','6050busRqP','set','getHookRegistryKey','getState','7EhqYkJ','getAllData','registerObserver','debug','KEY_AUTOMATION_SESSIONS','520iYbgPu','AutomationFramework','../instances/trackedInstance.js','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','65eraGNS','automationFrameworkName','non_browserstack_automation_sessions','trackEvent:\x20automationFrameworkState=','358566AIQJUj','15750qpNWvH','get','createContext','trackEvent','getCurrentInstanceName','notifyObserver','util','runHooks','\x20hookState=','../../../helpers/classLogger.js'];a75_0x9d19=function(){return _0x4e49d9;};return a75_0x9d19();}class AutomationFramework{static ['instances']=new Map();static [a75_0x124781(0xb0)]=a75_0x124781(0xa3);static [a75_0x124781(0xb4)]=a75_0x124781(0xb7);constructor(_0x224ee0,_0x20e613){const _0x16098d=a75_0x124781;this[_0x16098d(0xb6)]=_0x224ee0,this['automationFrameworkVersion']=_0x20e613;}[a75_0x124781(0xc8)](){const _0x54d62f=a75_0x124781;return this[_0x54d62f(0xb6)];}['getAutomationFrameworkVersion'](){return this['automationFrameworkVersion'];}async[a75_0x124781(0xbd)](_0x1d9764,_0x350d23,_0x54bd87={}){const _0x3b9e54=a75_0x124781;logger[_0x3b9e54(0xaf)](_0x3b9e54(0xb8)+_0x1d9764+_0x3b9e54(0xc2)+_0x350d23);}async[a75_0x124781(0xc1)](_0x2fd58c,_0x281802,_0x8ae5c2,_0x5a9756={}){const _0x48396d=a75_0x124781,_0x1f37b0=CLIUtils[_0x48396d(0xaa)](_0x281802,_0x8ae5c2);_0x2fd58c&&_0x2fd58c[_0x48396d(0xa2)](_0x281802),await eventDispatcher[_0x48396d(0xbf)](_0x1f37b0,_0x5a9756);}static[a75_0x124781(0xae)](_0x40281d,_0x4968a2,_0x55935a){const _0x5e0689=a75_0x124781;eventDispatcher[_0x5e0689(0xae)](CLIUtils[_0x5e0689(0xaa)](_0x40281d,_0x4968a2),_0x55935a);}static[a75_0x124781(0xa4)](_0x303d35,_0x1cb010){const _0x2a4c88=a75_0x124781;AutomationFramework[_0x2a4c88(0xc4)][_0x2a4c88(0xa9)](_0x303d35['getId'](),_0x1cb010);}static[a75_0x124781(0xa0)](){const _0x55067f=a75_0x124781,_0x20fd01=TrackedInstance[_0x55067f(0xbc)](CLIUtils[_0x55067f(0xbe)]());return AutomationFramework[_0x55067f(0xc4)]['get'](_0x20fd01['getId']());}static[a75_0x124781(0xa2)](_0x2aa22f,_0x16188d,_0x3699b8){const _0x218e29=a75_0x124781;_0x2aa22f[_0x218e29(0xad)]()[_0x218e29(0xa9)](_0x16188d,_0x3699b8);}static[a75_0x124781(0xab)](_0x5b0a52,_0x1c8072){const _0x40e70f=a75_0x124781;return _0x5b0a52[_0x40e70f(0xad)]()[_0x40e70f(0xbb)](_0x1c8072);}}module['exports']=AutomationFramework;
1
+ const a87_0x3ef713=a87_0x5228;(function(_0x572d1a,_0x177b1e){const _0x1ee516=a87_0x5228,_0x1f745c=_0x572d1a();while(!![]){try{const _0x4ff5a7=parseInt(_0x1ee516(0x193))/0x1+parseInt(_0x1ee516(0x17c))/0x2*(-parseInt(_0x1ee516(0x17d))/0x3)+-parseInt(_0x1ee516(0x18d))/0x4+parseInt(_0x1ee516(0x178))/0x5*(-parseInt(_0x1ee516(0x176))/0x6)+-parseInt(_0x1ee516(0x17a))/0x7+parseInt(_0x1ee516(0x177))/0x8+-parseInt(_0x1ee516(0x182))/0x9*(-parseInt(_0x1ee516(0x172))/0xa);if(_0x4ff5a7===_0x177b1e)break;else _0x1f745c['push'](_0x1f745c['shift']());}catch(_0x2af7dc){_0x1f745c['push'](_0x1f745c['shift']());}}}(a87_0x45d3,0x98e89));const {createClassLogger}=require('../../../helpers/classLogger.js'),util=require('util'),eventDispatcher=require(a87_0x3ef713(0x173)),CLIUtils=require(a87_0x3ef713(0x192)),TrackedInstance=require('../instances/trackedInstance.js'),logger=createClassLogger(a87_0x3ef713(0x174));function a87_0x5228(_0x23a46c,_0x28b2bf){const _0x45d307=a87_0x45d3();return a87_0x5228=function(_0x5228a7,_0x41c0b8){_0x5228a7=_0x5228a7-0x172;let _0x300072=_0x45d307[_0x5228a7];return _0x300072;},a87_0x5228(_0x23a46c,_0x28b2bf);}function a87_0x45d3(){const _0x3cf43d=['10rURmsk','KEY_AUTOMATION_SESSIONS','276206lqQJZB','debug','150494nkHIRY','18XpDlbJ','setTrackedInstance','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','setState','notifyObserver','4745421AlvUjB','getAllData','getAutomationFrameworkName','\x20hookState=','trackEvent:\x20automationFrameworkState=','automationFrameworkVersion','trackEvent','getId','non_browserstack_automation_sessions','automationFrameworkName','automation_sessions','3190000phvyqu','createContext','getState','instances','getHookRegistryKey','../cliUtils.js','526136SQmVkD','get','30DkGjYM','../eventDispatcher.js','AutomationFramework','registerObserver','3194514Eqhdup','6973184GqDkOq'];a87_0x45d3=function(){return _0x3cf43d;};return a87_0x45d3();}class AutomationFramework{static [a87_0x3ef713(0x190)]=new Map();static [a87_0x3ef713(0x179)]=a87_0x3ef713(0x18c);static [a87_0x3ef713(0x17f)]=a87_0x3ef713(0x18a);constructor(_0x33e72c,_0x4ecd36){const _0x4f46cc=a87_0x3ef713;this[_0x4f46cc(0x18b)]=_0x33e72c,this['automationFrameworkVersion']=_0x4ecd36;}[a87_0x3ef713(0x184)](){return this['automationFrameworkName'];}['getAutomationFrameworkVersion'](){const _0x24e684=a87_0x3ef713;return this[_0x24e684(0x187)];}async[a87_0x3ef713(0x188)](_0x1a7e4f,_0x51d35c,_0x22474f={}){const _0x29f185=a87_0x3ef713;logger[_0x29f185(0x17b)](_0x29f185(0x186)+_0x1a7e4f+_0x29f185(0x185)+_0x51d35c);}async['runHooks'](_0x488e4f,_0x19b54b,_0x1b882a,_0x277613={}){const _0x170e23=a87_0x3ef713,_0x371de8=CLIUtils[_0x170e23(0x191)](_0x19b54b,_0x1b882a);_0x488e4f&&_0x488e4f[_0x170e23(0x180)](_0x19b54b),await eventDispatcher[_0x170e23(0x181)](_0x371de8,_0x277613);}static[a87_0x3ef713(0x175)](_0x1e2816,_0x554967,_0x4db6dc){const _0x1797f0=a87_0x3ef713;eventDispatcher['registerObserver'](CLIUtils[_0x1797f0(0x191)](_0x1e2816,_0x554967),_0x4db6dc);}static[a87_0x3ef713(0x17e)](_0x51a619,_0x24c053){const _0x4c160a=a87_0x3ef713;AutomationFramework[_0x4c160a(0x190)]['set'](_0x51a619[_0x4c160a(0x189)](),_0x24c053);}static['getTrackedInstance'](){const _0x345300=a87_0x3ef713,_0x34f1ad=TrackedInstance[_0x345300(0x18e)](CLIUtils['getCurrentInstanceName']());return AutomationFramework[_0x345300(0x190)][_0x345300(0x194)](_0x34f1ad['getId']());}static['setState'](_0x1c246b,_0x404586,_0x4195ac){const _0x6d51bd=a87_0x3ef713;_0x1c246b[_0x6d51bd(0x183)]()['set'](_0x404586,_0x4195ac);}static[a87_0x3ef713(0x18f)](_0x4feaf4,_0x692832){const _0x2e6f19=a87_0x3ef713;return _0x4feaf4['getAllData']()[_0x2e6f19(0x194)](_0x692832);}}module['exports']=AutomationFramework;
@@ -1 +1 @@
1
- const a76_0x66094e=a76_0x5166;(function(_0x2787ce,_0x8cbcd7){const _0x3cdf5d=a76_0x5166,_0x3ae363=_0x2787ce();while(!![]){try{const _0x38e4d0=-parseInt(_0x3cdf5d(0xfd))/0x1*(parseInt(_0x3cdf5d(0xfb))/0x2)+-parseInt(_0x3cdf5d(0xff))/0x3*(-parseInt(_0x3cdf5d(0x102))/0x4)+-parseInt(_0x3cdf5d(0xf1))/0x5+-parseInt(_0x3cdf5d(0xec))/0x6*(parseInt(_0x3cdf5d(0xee))/0x7)+-parseInt(_0x3cdf5d(0xfe))/0x8+parseInt(_0x3cdf5d(0xef))/0x9*(parseInt(_0x3cdf5d(0x101))/0xa)+parseInt(_0x3cdf5d(0xf5))/0xb;if(_0x38e4d0===_0x8cbcd7)break;else _0x3ae363['push'](_0x3ae363['shift']());}catch(_0x3ba48e){_0x3ae363['push'](_0x3ae363['shift']());}}}(a76_0x48ec,0xd9cb9));const a76_0x508f7a={};function a76_0x48ec(){const _0x43db88=['KEY_CAPABILITIES','KEY_IS_BROWSERSTACK_HUB','45552969aCIskC','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','w3cexecutescriptasync','KEY_HUB_URL','hub_url','input_capabilities','3182834Liydmb','KEY_STARTED_AT','1JYmAri','10907984xyteLS','7893LqRAzB','platform_index','13130PFgydZ','76XKuXnE','COMMAND_SCREENSHOT','capabilities','ended_at','COMMAND_GET','exports','framework_session_id','ENV_BROWSERSTACK_PLATFORM_INDEX','1806gsgzRj','screenshot','7595TDYHRC','9324rEmOwq','get','6889235CWlZUA','KEY_ENDED_AT'];a76_0x48ec=function(){return _0x43db88;};return a76_0x48ec();}a76_0x508f7a[a76_0x66094e(0xeb)]='BROWSERSTACK_PLATFORM_INDEX',a76_0x508f7a[a76_0x66094e(0xf8)]=a76_0x66094e(0xf9),a76_0x508f7a['KEY_FRAMEWORK_SESSION_ID']=a76_0x66094e(0xea),a76_0x508f7a['KEY_INPUT_CAPABILITIES']=a76_0x66094e(0xfa),a76_0x508f7a[a76_0x66094e(0xf3)]=a76_0x66094e(0x104),a76_0x508f7a[a76_0x66094e(0xf4)]='is_browserstack_hub',a76_0x508f7a[a76_0x66094e(0xfc)]='started_at',a76_0x508f7a[a76_0x66094e(0xf2)]=a76_0x66094e(0xe7),a76_0x508f7a['KEY_PLATFORM_INDEX']=a76_0x66094e(0x100),a76_0x508f7a['COMMAND_NEW_SESSION']='newsession',a76_0x508f7a[a76_0x66094e(0xe8)]=a76_0x66094e(0xf0),a76_0x508f7a[a76_0x66094e(0x103)]=a76_0x66094e(0xed),a76_0x508f7a['COMMAND_W3C_EXECUTE_SCRIPT']='w3cexecutescript',a76_0x508f7a[a76_0x66094e(0xf6)]=a76_0x66094e(0xf7),a76_0x508f7a['COMMAND_QUIT']='quit';const AutomationFrameworkConstants=a76_0x508f7a;function a76_0x5166(_0x24ef35,_0x27547c){const _0x48eceb=a76_0x48ec();return a76_0x5166=function(_0x5166c3,_0x27e73f){_0x5166c3=_0x5166c3-0xe7;let _0x295fe9=_0x48eceb[_0x5166c3];return _0x295fe9;},a76_0x5166(_0x24ef35,_0x27547c);}module[a76_0x66094e(0xe9)]=AutomationFrameworkConstants;
1
+ const a88_0x17d55e=a88_0x167b;(function(_0x1c7e85,_0x1ff338){const _0x3384c5=a88_0x167b,_0x4da608=_0x1c7e85();while(!![]){try{const _0x175947=parseInt(_0x3384c5(0xdd))/0x1*(parseInt(_0x3384c5(0xce))/0x2)+parseInt(_0x3384c5(0xdf))/0x3+parseInt(_0x3384c5(0xe8))/0x4+parseInt(_0x3384c5(0xd8))/0x5*(parseInt(_0x3384c5(0xcf))/0x6)+parseInt(_0x3384c5(0xe5))/0x7*(parseInt(_0x3384c5(0xd4))/0x8)+-parseInt(_0x3384c5(0xe4))/0x9+-parseInt(_0x3384c5(0xe2))/0xa;if(_0x175947===_0x1ff338)break;else _0x4da608['push'](_0x4da608['shift']());}catch(_0x20a864){_0x4da608['push'](_0x4da608['shift']());}}}(a88_0x458a,0x314b5));const a88_0x367362={};a88_0x367362[a88_0x17d55e(0xe7)]='BROWSERSTACK_PLATFORM_INDEX',a88_0x367362[a88_0x17d55e(0xd5)]=a88_0x17d55e(0xc8),a88_0x367362[a88_0x17d55e(0xd9)]=a88_0x17d55e(0xdc),a88_0x367362[a88_0x17d55e(0xd7)]=a88_0x17d55e(0xd3),a88_0x367362[a88_0x17d55e(0xc7)]=a88_0x17d55e(0xc9),a88_0x367362[a88_0x17d55e(0xda)]='is_browserstack_hub',a88_0x367362[a88_0x17d55e(0xcc)]=a88_0x17d55e(0xd2),a88_0x367362[a88_0x17d55e(0xca)]=a88_0x17d55e(0xe1),a88_0x367362[a88_0x17d55e(0xe6)]=a88_0x17d55e(0xc6),a88_0x367362[a88_0x17d55e(0xc5)]='newsession',a88_0x367362[a88_0x17d55e(0xdb)]=a88_0x17d55e(0xe3),a88_0x367362[a88_0x17d55e(0xe0)]=a88_0x17d55e(0xd1),a88_0x367362['COMMAND_W3C_EXECUTE_SCRIPT']=a88_0x17d55e(0xc4),a88_0x367362[a88_0x17d55e(0xcd)]=a88_0x17d55e(0xd6),a88_0x367362[a88_0x17d55e(0xde)]=a88_0x17d55e(0xd0);function a88_0x458a(){const _0x3ab5d2=['KEY_FRAMEWORK_SESSION_ID','KEY_IS_BROWSERSTACK_HUB','COMMAND_GET','framework_session_id','149MIVmuU','COMMAND_QUIT','950802cBVdKi','COMMAND_SCREENSHOT','ended_at','11053320vNLfvs','get','1451601iwBuHe','2609817iSQbGj','KEY_PLATFORM_INDEX','ENV_BROWSERSTACK_PLATFORM_INDEX','999628iXBXLW','w3cexecutescript','COMMAND_NEW_SESSION','platform_index','KEY_CAPABILITIES','hub_url','capabilities','KEY_ENDED_AT','exports','KEY_STARTED_AT','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','3002BGTDSK','1831254NONfgF','quit','screenshot','started_at','input_capabilities','8NAoHqB','KEY_HUB_URL','w3cexecutescriptasync','KEY_INPUT_CAPABILITIES','5MMxCUJ'];a88_0x458a=function(){return _0x3ab5d2;};return a88_0x458a();}const AutomationFrameworkConstants=a88_0x367362;function a88_0x167b(_0x1f92bf,_0x55fb14){const _0x458a38=a88_0x458a();return a88_0x167b=function(_0x167b74,_0x45028b){_0x167b74=_0x167b74-0xc4;let _0x238f2b=_0x458a38[_0x167b74];return _0x238f2b;},a88_0x167b(_0x1f92bf,_0x55fb14);}module[a88_0x17d55e(0xcb)]=AutomationFrameworkConstants;
@@ -1 +1 @@
1
- const a77_0x49c8ba=a77_0xb46c;function a77_0x4175(){const _0x3e87de=['KEY_HOOK_NAME','TEST_LOG','automate_session_name','KEY_HOOKS_FINISHED','KEY_FILE_PATH','test_hook_last_started','hook_failure','test_failure_type','test_hook_last_finished','KEY_TEST_NAME','DEFAULT_HOOK_RESULT','KEY_TEST_LOCATION','KEY_TEST_TAGS','KEY_TEST_FRAMEWORK_NAME','2DFOVBb','file_size','KEY_HOOK_LAST_FINISHED','hook_failure_type','KEY_TEST_STARTED_AT','KEY_FILE_LEVEL','automate_session_reason','MAX_TOP_LEVEL_STEPS','KEY_HOOK_LOGS','retry_of','file_level','KEY_FILE_SIZE','test_code','9097764TEYQIF','KIND_SCREENSHOT','hook_logs','KEY_HOOK_FAILURE_TYPE','KIND_LOG','test_id','MAX_NESTED_STEP_DEPTH','test_location','test_hooks_finished','KEY_HOOK_FAILURE','KEY_TEST_ENDED_AT','KEY_FILE_NAME','test_framework_name','5403936sYLPvX','hook_failure_reason','KEY_EVENT_ENDED_AT','KEY_TEST_FRAMEWORK_VERSION','KEY_TEST_RERUN_NAME','logs','308908wktFyB','KEY_TEST_FAILURE_REASON','13030hoiQQL','test_tags','KEY_SESSION_NAME','hook_result','KEY_TEST_DURATION','test_ended_at','1544eAOPGn','KEY_HOOKS_STARTED','^(BEFORE_|AFTER_)','KEY_TEST_ID','KEY_TEST_FAILURE','5254186fJvzYE','test_attachments','test_started_at','10KdeMzR','TEST_SCREENSHOT','KEY_TEST_SCOPE','5221215XmyToM','automate_session_status','KEY_HOOK_FAILURE_REASON','KEY_TEST_META','KEY_CUSTOM_TAGS','KEY_HOOK_ID','file_name','KEY_TEST_RETRY_OF','test_logs','custom_metadata','KEY_TEST_RESULT','hook_name','test_rerun_name','test_duration','KEY_LOGS','3851409qxZUBS','test_failure','pending','test_framework_version','DEFAULT_TEST_RESULT','KEY_TEST_FAILURE_TYPE','KEY_TEST_CODE','platform_index','test_file_path','KEY_AUTOMATE_SESSION_REASON','KEY_PLATFORM_INDEX','KEY_HOOK_RESULT','test_scopes','KEY_TEST_SCOPES','HOOK_REGEX','event_ended_at'];a77_0x4175=function(){return _0x3e87de;};return a77_0x4175();}(function(_0x4b8da8,_0x1264a1){const _0x5bd68b=a77_0xb46c,_0x1bebd0=_0x4b8da8();while(!![]){try{const _0x16d7ff=-parseInt(_0x5bd68b(0x177))/0x1+parseInt(_0x5bd68b(0x157))/0x2*(parseInt(_0x5bd68b(0x139))/0x3)+parseInt(_0x5bd68b(0x17f))/0x4*(-parseInt(_0x5bd68b(0x179))/0x5)+parseInt(_0x5bd68b(0x164))/0x6+parseInt(_0x5bd68b(0x184))/0x7+-parseInt(_0x5bd68b(0x171))/0x8+parseInt(_0x5bd68b(0x18a))/0x9*(-parseInt(_0x5bd68b(0x187))/0xa);if(_0x16d7ff===_0x1264a1)break;else _0x1bebd0['push'](_0x1bebd0['shift']());}catch(_0x497ed){_0x1bebd0['push'](_0x1bebd0['shift']());}}}(a77_0x4175,0xef514));const a77_0x6955eb={};function a77_0xb46c(_0x31865d,_0x4f8c20){const _0x417512=a77_0x4175();return a77_0xb46c=function(_0xb46c4a,_0x53ca74){_0xb46c4a=_0xb46c4a-0x12b;let _0x489c15=_0x417512[_0xb46c4a];return _0x489c15;},a77_0xb46c(_0x31865d,_0x4f8c20);}a77_0x6955eb['KEY_TEST_UUID']='test_uuid',a77_0x6955eb[a77_0x49c8ba(0x182)]=a77_0x49c8ba(0x169),a77_0x6955eb[a77_0x49c8ba(0x152)]='test_name',a77_0x6955eb['KEY_TEST_FILE_PATH']=a77_0x49c8ba(0x141),a77_0x6955eb[a77_0x49c8ba(0x155)]=a77_0x49c8ba(0x17a),a77_0x6955eb[a77_0x49c8ba(0x134)]='test_result',a77_0x6955eb['KEY_TEST_RESULT_AT']='test_result_at',a77_0x6955eb[a77_0x49c8ba(0x15b)]=a77_0x49c8ba(0x186),a77_0x6955eb[a77_0x49c8ba(0x16e)]=a77_0x49c8ba(0x17e),a77_0x6955eb[a77_0x49c8ba(0x154)]=a77_0x49c8ba(0x16b),a77_0x6955eb[a77_0x49c8ba(0x17d)]=a77_0x49c8ba(0x137),a77_0x6955eb[a77_0x49c8ba(0x189)]='test_scope',a77_0x6955eb[a77_0x49c8ba(0x146)]=a77_0x49c8ba(0x145),a77_0x6955eb[a77_0x49c8ba(0x156)]=a77_0x49c8ba(0x170),a77_0x6955eb[a77_0x49c8ba(0x174)]=a77_0x49c8ba(0x13c),a77_0x6955eb[a77_0x49c8ba(0x13f)]=a77_0x49c8ba(0x163),a77_0x6955eb[a77_0x49c8ba(0x175)]=a77_0x49c8ba(0x136),a77_0x6955eb[a77_0x49c8ba(0x131)]=a77_0x49c8ba(0x160),a77_0x6955eb[a77_0x49c8ba(0x143)]=a77_0x49c8ba(0x140),a77_0x6955eb[a77_0x49c8ba(0x183)]=a77_0x49c8ba(0x13a),a77_0x6955eb[a77_0x49c8ba(0x13e)]=a77_0x49c8ba(0x150),a77_0x6955eb[a77_0x49c8ba(0x178)]='test_failure_reason',a77_0x6955eb['KEY_TEST_LOGS']=a77_0x49c8ba(0x132),a77_0x6955eb[a77_0x49c8ba(0x12d)]='test_meta',a77_0x6955eb[a77_0x49c8ba(0x17b)]='test_session_name',a77_0x6955eb['KEY_AUTOMATE_SESSION_NAME']=a77_0x49c8ba(0x14b),a77_0x6955eb['KEY_AUTOMATE_SESSION_STATUS']=a77_0x49c8ba(0x12b),a77_0x6955eb[a77_0x49c8ba(0x142)]=a77_0x49c8ba(0x15d),a77_0x6955eb['KEY_EVENT_STARTED_AT']='event_started_at',a77_0x6955eb[a77_0x49c8ba(0x173)]=a77_0x49c8ba(0x148),a77_0x6955eb[a77_0x49c8ba(0x12f)]='hook_id',a77_0x6955eb[a77_0x49c8ba(0x144)]=a77_0x49c8ba(0x17c),a77_0x6955eb[a77_0x49c8ba(0x167)]=a77_0x49c8ba(0x15a),a77_0x6955eb[a77_0x49c8ba(0x12c)]=a77_0x49c8ba(0x172),a77_0x6955eb[a77_0x49c8ba(0x16d)]=a77_0x49c8ba(0x14f),a77_0x6955eb[a77_0x49c8ba(0x15f)]=a77_0x49c8ba(0x166),a77_0x6955eb[a77_0x49c8ba(0x149)]=a77_0x49c8ba(0x135),a77_0x6955eb[a77_0x49c8ba(0x13d)]='pending',a77_0x6955eb[a77_0x49c8ba(0x153)]=a77_0x49c8ba(0x13b),a77_0x6955eb[a77_0x49c8ba(0x165)]=a77_0x49c8ba(0x188),a77_0x6955eb[a77_0x49c8ba(0x168)]=a77_0x49c8ba(0x14a),a77_0x6955eb[a77_0x49c8ba(0x147)]=a77_0x49c8ba(0x181),a77_0x6955eb[a77_0x49c8ba(0x180)]='test_hooks_started',a77_0x6955eb[a77_0x49c8ba(0x14c)]=a77_0x49c8ba(0x16c),a77_0x6955eb['KEY_HOOK_LAST_STARTED']=a77_0x49c8ba(0x14e),a77_0x6955eb[a77_0x49c8ba(0x159)]=a77_0x49c8ba(0x151),a77_0x6955eb[a77_0x49c8ba(0x138)]=a77_0x49c8ba(0x176),a77_0x6955eb[a77_0x49c8ba(0x12e)]=a77_0x49c8ba(0x133),a77_0x6955eb['KEY_TEST_ATTACHMENTS']=a77_0x49c8ba(0x185),a77_0x6955eb[a77_0x49c8ba(0x162)]=a77_0x49c8ba(0x158),a77_0x6955eb[a77_0x49c8ba(0x16f)]=a77_0x49c8ba(0x130),a77_0x6955eb[a77_0x49c8ba(0x14d)]='file_path',a77_0x6955eb[a77_0x49c8ba(0x15c)]=a77_0x49c8ba(0x161),a77_0x6955eb[a77_0x49c8ba(0x15e)]=0xa,a77_0x6955eb[a77_0x49c8ba(0x16a)]=0x2;const TestFrameworkConstants=a77_0x6955eb;module['exports']=TestFrameworkConstants;
1
+ const a89_0x33eb1d=a89_0x5d54;(function(_0x238458,_0x5aae1a){const _0x1fe5aa=a89_0x5d54,_0x517b4a=_0x238458();while(!![]){try{const _0x43f6f9=parseInt(_0x1fe5aa(0x17e))/0x1*(parseInt(_0x1fe5aa(0x16f))/0x2)+parseInt(_0x1fe5aa(0x177))/0x3*(parseInt(_0x1fe5aa(0x151))/0x4)+parseInt(_0x1fe5aa(0x17d))/0x5+-parseInt(_0x1fe5aa(0x16e))/0x6+parseInt(_0x1fe5aa(0x17a))/0x7+-parseInt(_0x1fe5aa(0x14d))/0x8+parseInt(_0x1fe5aa(0x15f))/0x9;if(_0x43f6f9===_0x5aae1a)break;else _0x517b4a['push'](_0x517b4a['shift']());}catch(_0x4941fd){_0x517b4a['push'](_0x517b4a['shift']());}}}(a89_0x2f06,0x9810e));const a89_0x5dd69e={};function a89_0x5d54(_0xfc0280,_0x3719bb){const _0x2f06c8=a89_0x2f06();return a89_0x5d54=function(_0x5d547c,_0x1f65d0){_0x5d547c=_0x5d547c-0x135;let _0x614104=_0x2f06c8[_0x5d547c];return _0x614104;},a89_0x5d54(_0xfc0280,_0x3719bb);}a89_0x5dd69e['KEY_TEST_UUID']=a89_0x33eb1d(0x149),a89_0x5dd69e[a89_0x33eb1d(0x13d)]=a89_0x33eb1d(0x173),a89_0x5dd69e['KEY_TEST_NAME']=a89_0x33eb1d(0x148),a89_0x5dd69e[a89_0x33eb1d(0x176)]='test_file_path',a89_0x5dd69e[a89_0x33eb1d(0x140)]=a89_0x33eb1d(0x136),a89_0x5dd69e[a89_0x33eb1d(0x152)]=a89_0x33eb1d(0x17f),a89_0x5dd69e['KEY_TEST_RESULT_AT']='test_result_at',a89_0x5dd69e[a89_0x33eb1d(0x13a)]='test_started_at',a89_0x5dd69e[a89_0x33eb1d(0x185)]='test_ended_at',a89_0x5dd69e[a89_0x33eb1d(0x141)]=a89_0x33eb1d(0x16a),a89_0x5dd69e['KEY_TEST_DURATION']=a89_0x33eb1d(0x153),a89_0x5dd69e[a89_0x33eb1d(0x150)]=a89_0x33eb1d(0x178),a89_0x5dd69e[a89_0x33eb1d(0x168)]='test_scopes',a89_0x5dd69e[a89_0x33eb1d(0x13b)]='test_framework_name',a89_0x5dd69e[a89_0x33eb1d(0x180)]=a89_0x33eb1d(0x156),a89_0x5dd69e['KEY_TEST_CODE']=a89_0x33eb1d(0x157),a89_0x5dd69e['KEY_TEST_RERUN_NAME']=a89_0x33eb1d(0x13c),a89_0x5dd69e[a89_0x33eb1d(0x172)]='retry_of',a89_0x5dd69e[a89_0x33eb1d(0x14a)]='platform_index',a89_0x5dd69e[a89_0x33eb1d(0x169)]=a89_0x33eb1d(0x159),a89_0x5dd69e[a89_0x33eb1d(0x166)]=a89_0x33eb1d(0x15d),a89_0x5dd69e[a89_0x33eb1d(0x154)]=a89_0x33eb1d(0x17b),a89_0x5dd69e[a89_0x33eb1d(0x137)]=a89_0x33eb1d(0x164),a89_0x5dd69e[a89_0x33eb1d(0x155)]=a89_0x33eb1d(0x174),a89_0x5dd69e['KEY_SESSION_NAME']=a89_0x33eb1d(0x13e),a89_0x5dd69e[a89_0x33eb1d(0x161)]=a89_0x33eb1d(0x147),a89_0x5dd69e[a89_0x33eb1d(0x138)]='automate_session_status',a89_0x5dd69e[a89_0x33eb1d(0x165)]='automate_session_reason',a89_0x5dd69e[a89_0x33eb1d(0x146)]=a89_0x33eb1d(0x14c),a89_0x5dd69e[a89_0x33eb1d(0x14b)]='event_ended_at',a89_0x5dd69e[a89_0x33eb1d(0x158)]='hook_id',a89_0x5dd69e[a89_0x33eb1d(0x13f)]='hook_result',a89_0x5dd69e[a89_0x33eb1d(0x160)]=a89_0x33eb1d(0x175),a89_0x5dd69e[a89_0x33eb1d(0x144)]=a89_0x33eb1d(0x16c),a89_0x5dd69e[a89_0x33eb1d(0x181)]=a89_0x33eb1d(0x15c),a89_0x5dd69e[a89_0x33eb1d(0x162)]=a89_0x33eb1d(0x16b),a89_0x5dd69e[a89_0x33eb1d(0x14e)]=a89_0x33eb1d(0x135),a89_0x5dd69e['DEFAULT_TEST_RESULT']=a89_0x33eb1d(0x142),a89_0x5dd69e['DEFAULT_HOOK_RESULT']=a89_0x33eb1d(0x142),a89_0x5dd69e['KIND_SCREENSHOT']=a89_0x33eb1d(0x182),a89_0x5dd69e[a89_0x33eb1d(0x139)]='TEST_LOG',a89_0x5dd69e['HOOK_REGEX']=a89_0x33eb1d(0x15b),a89_0x5dd69e[a89_0x33eb1d(0x17c)]='test_hooks_started',a89_0x5dd69e[a89_0x33eb1d(0x14f)]=a89_0x33eb1d(0x16d),a89_0x5dd69e['KEY_HOOK_LAST_STARTED']='test_hook_last_started',a89_0x5dd69e[a89_0x33eb1d(0x184)]='test_hook_last_finished',a89_0x5dd69e[a89_0x33eb1d(0x15e)]=a89_0x33eb1d(0x183),a89_0x5dd69e[a89_0x33eb1d(0x167)]='custom_metadata',a89_0x5dd69e[a89_0x33eb1d(0x163)]='test_attachments',a89_0x5dd69e[a89_0x33eb1d(0x143)]='file_size',a89_0x5dd69e[a89_0x33eb1d(0x179)]='file_name',a89_0x5dd69e['KEY_FILE_PATH']='file_path',a89_0x5dd69e[a89_0x33eb1d(0x171)]=a89_0x33eb1d(0x170),a89_0x5dd69e['KEY_TEST_SCREENSHOTS']='test_screenshots',a89_0x5dd69e['MAX_TOP_LEVEL_STEPS']=0xa,a89_0x5dd69e[a89_0x33eb1d(0x145)]=0x2;function a89_0x2f06(){const _0xa01fd0=['KEY_HOOKS_FINISHED','KEY_TEST_SCOPE','4wXkZIt','KEY_TEST_RESULT','test_duration','KEY_TEST_FAILURE_REASON','KEY_TEST_META','test_framework_version','test_code','KEY_HOOK_ID','test_failure','exports','^(BEFORE_|AFTER_)','hook_failure','test_failure_type','KEY_LOGS','1105416ChFZbr','KEY_HOOK_FAILURE_TYPE','KEY_AUTOMATE_SESSION_NAME','KEY_HOOK_LOGS','KEY_TEST_ATTACHMENTS','test_logs','KEY_AUTOMATE_SESSION_REASON','KEY_TEST_FAILURE_TYPE','KEY_CUSTOM_TAGS','KEY_TEST_SCOPES','KEY_TEST_FAILURE','test_location','hook_logs','hook_failure_reason','test_hooks_finished','2309130TqyNDg','285674PEgVqE','file_level','KEY_FILE_LEVEL','KEY_TEST_RETRY_OF','test_id','test_meta','hook_failure_type','KEY_TEST_FILE_PATH','1920513UPekWM','test_scope','KEY_FILE_NAME','539798qdfsci','test_failure_reason','KEY_HOOKS_STARTED','5866015pbCSxk','1SjiNZk','test_result','KEY_TEST_FRAMEWORK_VERSION','KEY_HOOK_FAILURE','TEST_SCREENSHOT','logs','KEY_HOOK_LAST_FINISHED','KEY_TEST_ENDED_AT','hook_name','test_tags','KEY_TEST_LOGS','KEY_AUTOMATE_SESSION_STATUS','KIND_LOG','KEY_TEST_STARTED_AT','KEY_TEST_FRAMEWORK_NAME','test_rerun_name','KEY_TEST_ID','test_session_name','KEY_HOOK_RESULT','KEY_TEST_TAGS','KEY_TEST_LOCATION','pending','KEY_FILE_SIZE','KEY_HOOK_FAILURE_REASON','MAX_NESTED_STEP_DEPTH','KEY_EVENT_STARTED_AT','automate_session_name','test_name','test_uuid','KEY_PLATFORM_INDEX','KEY_EVENT_ENDED_AT','event_started_at','9187456SmLrhv','KEY_HOOK_NAME'];a89_0x2f06=function(){return _0xa01fd0;};return a89_0x2f06();}const TestFrameworkConstants=a89_0x5dd69e;module[a89_0x33eb1d(0x15a)]=TestFrameworkConstants;
@@ -1 +1 @@
1
- const a78_0x4b735e=a78_0x124a;(function(_0x13841e,_0x29a05f){const _0x1b2762=a78_0x124a,_0x357059=_0x13841e();while(!![]){try{const _0x39229d=parseInt(_0x1b2762(0x155))/0x1*(-parseInt(_0x1b2762(0xe9))/0x2)+-parseInt(_0x1b2762(0x122))/0x3*(parseInt(_0x1b2762(0x187))/0x4)+-parseInt(_0x1b2762(0x183))/0x5*(parseInt(_0x1b2762(0x137))/0x6)+parseInt(_0x1b2762(0xd7))/0x7*(parseInt(_0x1b2762(0xe1))/0x8)+-parseInt(_0x1b2762(0xbe))/0x9+-parseInt(_0x1b2762(0x161))/0xa+parseInt(_0x1b2762(0x150))/0xb*(parseInt(_0x1b2762(0xe7))/0xc);if(_0x39229d===_0x29a05f)break;else _0x357059['push'](_0x357059['shift']());}catch(_0x20c509){_0x357059['push'](_0x357059['shift']());}}}(a78_0x5153,0x99e83));function a78_0x124a(_0x47da4a,_0x445659){const _0x5153ed=a78_0x5153();return a78_0x124a=function(_0x124a0f,_0x2880c1){_0x124a0f=_0x124a0f-0xb9;let _0x58a5a4=_0x5153ed[_0x124a0f];return _0x58a5a4;},a78_0x124a(_0x47da4a,_0x445659);}const TestFramework=require(a78_0x4b735e(0x171)),TestFrameworkState=require(a78_0x4b735e(0x11e)),HookState=require(a78_0x4b735e(0x100)),{createClassLogger}=require(a78_0x4b735e(0x159)),TestFrameworkInstance=require(a78_0x4b735e(0x11b)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require('../instances/trackedInstance.js'),TestFrameworkConstants=require(a78_0x4b735e(0x16c)),{getManualUploadLogs,getMediaArtifactsLogs}=require('../../../helpers/helper.js'),logger=createClassLogger(a78_0x4b735e(0xd5)),{v4:uuidv4}=require(a78_0x4b735e(0xc6)),util=require('util'),TestInfo=require(a78_0x4b735e(0x15a)),GrpcClient=require('../grpcClient');class CucumberTestFramework extends TestFramework{constructor(_0x3845fe,_0x55b06d,_0x2d6e01){super(_0x3845fe,_0x55b06d,_0x2d6e01);}async[a78_0x4b735e(0x136)](_0x3875e4,_0x5a0dc6,_0x13993e={}){const _0x687b3f=a78_0x4b735e,_0x37c27f={};_0x37c27f[_0x687b3f(0x17f)]='trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found',_0x37c27f['wXhfm']=function(_0x2ea445,_0x2bd7bd){return _0x2ea445===_0x2bd7bd;},_0x37c27f[_0x687b3f(0x141)]=_0x687b3f(0x116);const _0x377276=_0x37c27f;await super[_0x687b3f(0x136)](_0x3875e4,_0x5a0dc6,_0x13993e);const _0x44c43b=this[_0x687b3f(0xe4)](_0x3875e4,_0x5a0dc6,_0x13993e);if(!_0x44c43b){logger['debug'](_0x377276[_0x687b3f(0x17f)]);return;}try{let _0x47c1cf,_0x6b0e2f;switch(_0x3875e4){case TestFrameworkState[_0x687b3f(0xcb)]:_0x47c1cf=_0x13993e['test'],_0x6b0e2f=TestInfo[_0x687b3f(0x16d)](_0x47c1cf['id']);if(_0x377276[_0x687b3f(0xd9)](_0x5a0dc6,HookState['PRE'])){logger[_0x687b3f(0x121)]('trackEvent\x20loading\x20testData\x20for\x20testId:\x20'+_0x47c1cf['id']);const _0x55bf84={};_0x55bf84[_0x687b3f(0xd0)]=_0x6b0e2f,_0x55bf84['testData']=_0x47c1cf,_0x44c43b['addMultipleEntries'](this['parseCucumberTest'](_0x55bf84)),logger[_0x687b3f(0x121)](_0x687b3f(0x105)+_0x47c1cf['id']),await this[_0x687b3f(0x11a)](_0x44c43b,_0x47c1cf['id']);}else{if(_0x377276[_0x687b3f(0xd9)](_0x5a0dc6,HookState[_0x687b3f(0xfd)])){const _0x16391a={};_0x16391a[_0x687b3f(0xd0)]=_0x6b0e2f,_0x16391a[_0x687b3f(0x113)]=_0x47c1cf,_0x44c43b[_0x687b3f(0xea)](this[_0x687b3f(0xd3)](_0x16391a)),await this[_0x687b3f(0x11a)](_0x44c43b,_0x47c1cf['id']);}}break;case TestFrameworkState['LOG_REPORT']:_0x377276[_0x687b3f(0xd9)](_0x5a0dc6,HookState[_0x687b3f(0xfd)])&&await this['sendLogCreatedEvent'](_0x44c43b,_0x3875e4,_0x13993e);break;default:if(CLIUtils[_0x687b3f(0x12c)](_0x3875e4[_0x687b3f(0x16b)]()['split']('.')[0x1])){const _0x19803e=await this[_0x687b3f(0x10a)](_0x44c43b,_0x3875e4,_0x5a0dc6,_0x13993e);_0x44c43b['addMultipleEntries'](_0x19803e);}else logger[_0x687b3f(0x121)](_0x687b3f(0xc4)+_0x3875e4+'\x20&\x20hookState='+_0x5a0dc6);break;}}catch(_0x369ec5){logger['error'](util[_0x687b3f(0x162)](_0x377276[_0x687b3f(0x141)],_0x3875e4,_0x5a0dc6,_0x13993e['length'],_0x369ec5));}_0x13993e[_0x687b3f(0x12d)]=_0x44c43b,await this['runHooks'](_0x44c43b,_0x3875e4,_0x5a0dc6,_0x13993e);}[a78_0x4b735e(0xe4)](_0x572a5d,_0x2ef9bf,_0x1258af={}){const _0x11d33f=a78_0x4b735e,_0x5b2f8e={};_0x5b2f8e[_0x11d33f(0xf4)]=function(_0x1d6d12,_0x37ef54){return _0x1d6d12===_0x37ef54;},_0x5b2f8e['UNnyM']=function(_0x2f1b6b,_0xd2a33e){return _0x2f1b6b===_0xd2a33e;};const _0x41d7ff=_0x5b2f8e;let _0x203365=null;return(_0x41d7ff[_0x11d33f(0xf4)](_0x572a5d,TestFrameworkState[_0x11d33f(0x14d)])||_0x41d7ff['UNnyM'](_0x572a5d,TestFrameworkState[_0x11d33f(0xef)]))&&this[_0x11d33f(0x10f)](_0x572a5d,_0x1258af),_0x203365=TestFramework[_0x11d33f(0xfa)](),_0x203365;}[a78_0x4b735e(0x10f)](_0x1615a3,_0x25a405){const _0x396def=a78_0x4b735e,_0x164c89=CLIUtils['getCurrentInstanceName'](),_0xd1e2af=TrackedInstance[_0x396def(0xc7)](_0x164c89);let _0x1f1533=null;logger[_0x396def(0x121)](_0x396def(0x14f)+_0x164c89+_0x396def(0x143)+_0x1615a3),_0x1f1533=new TestFrameworkInstance(_0xd1e2af,this['getTestFrameworks'](),this['getTestFrameworksVersions'](),_0x1615a3,HookState['NONE']),TestFramework['setTrackedInstance'](_0xd1e2af,_0x1f1533),logger[_0x396def(0x121)](_0x396def(0x17b)+_0xd1e2af['getId']()+_0x396def(0x129)+_0x164c89);}[a78_0x4b735e(0xbb)](_0x56cd37){const _0x41d59c=a78_0x4b735e,_0x23deb2={};_0x23deb2['SOOAs']=_0x41d59c(0x134);const _0x257bd6=_0x23deb2,{testUUID:_0x26f9c0,testData:_0x115fe6}=_0x56cd37;if(!_0x115fe6||!_0x115fe6[_0x41d59c(0xc6)])return logger[_0x41d59c(0x121)](_0x257bd6[_0x41d59c(0x16f)]),{};const _0x1b945f=_0x26f9c0,_0x19dd00=_0x115fe6[_0x41d59c(0xc6)],_0x4716c9=this[_0x41d59c(0x178)]()[0x0],_0x42f7f2=this[_0x41d59c(0x127)](),_0x4d027b={[TestFrameworkConstants[_0x41d59c(0x10b)]]:_0x4716c9,[TestFrameworkConstants[_0x41d59c(0xed)]]:_0x42f7f2[_0x4716c9],[TestFrameworkConstants[_0x41d59c(0x110)]]:[],[TestFrameworkConstants[_0x41d59c(0xc8)]]:{},[TestFrameworkConstants[_0x41d59c(0x151)]]:{},[TestFrameworkConstants['KEY_TEST_UUID']]:_0x1b945f,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants['DEFAULT_TEST_RESULT'],[TestFrameworkConstants[_0x41d59c(0xce)]]:_0x115fe6['name']||'',[TestFrameworkConstants[_0x41d59c(0xdb)]]:_0x115fe6['file_name']||'',[TestFrameworkConstants[_0x41d59c(0x179)]]:_0x19dd00,[TestFrameworkConstants['KEY_TEST_NAME']]:_0x115fe6[_0x41d59c(0x173)]||'',[TestFrameworkConstants[_0x41d59c(0x13e)]]:_0x115fe6['location']||'',[TestFrameworkConstants[_0x41d59c(0x140)]]:_0x115fe6['body']?.[_0x41d59c(0x12f)]||null,[TestFrameworkConstants[_0x41d59c(0xc0)]]:_0x115fe6['tags']||[],[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x115fe6[_0x41d59c(0xcc)]||new Date()[_0x41d59c(0xc9)](),[TestFrameworkConstants[_0x41d59c(0x176)]]:_0x115fe6['scopes']?.[0x0]||'',[TestFrameworkConstants[_0x41d59c(0xdf)]]:_0x115fe6[_0x41d59c(0x175)]||[],[TestFrameworkConstants[_0x41d59c(0x185)]]:_0x115fe6[_0x41d59c(0x11c)]?.['rerun_name']||_0x115fe6[_0x41d59c(0x173)]||'',[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:{},[TestFrameworkConstants['KEY_TEST_META']]:_0x115fe6[_0x41d59c(0xf9)]||{}};TestInfo[_0x41d59c(0x15f)](_0x19dd00,_0x4d027b),logger[_0x41d59c(0x121)](_0x41d59c(0x117)+_0x115fe6['name']+_0x41d59c(0x172)+_0x1b945f);const _0x36db12={};return _0x36db12[_0x19dd00]=_0x4d027b,_0x36db12;}[a78_0x4b735e(0xd3)](_0x3c4e81){const _0x560b49=a78_0x4b735e,_0x17cdc7={'OgXtC':'No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','FaGWR':'unknown','VYVtF':function(_0x79a0bf,_0x3fd996){return _0x79a0bf===_0x3fd996;},'CsTJO':'failed','vrsOW':_0x560b49(0xf3),'AbaWa':function(_0xc63733,_0x4c9562,_0x32ff97){return _0xc63733(_0x4c9562,_0x32ff97);},'ZRVZr':function(_0x768da5,_0x42d0e4){return _0x768da5>_0x42d0e4;},'LUynm':function(_0x4e3a79,_0x552192){return _0x4e3a79>_0x552192;}},{testUUID:_0x32bf12,testData:_0x4d30bc}=_0x3c4e81;if(!_0x4d30bc||!_0x4d30bc[_0x560b49(0xc6)])return logger['debug'](_0x17cdc7[_0x560b49(0xd4)]),{};const _0x33fa65=this[_0x560b49(0xe4)](TestFrameworkState[_0x560b49(0xcb)],HookState['POST']),_0x346577=_0x4d30bc[_0x560b49(0xc6)],_0x300841=TestInfo[_0x560b49(0x168)](_0x346577)||{},_0x22bceb=_0x300841?_0x300841[TestFrameworkConstants[_0x560b49(0x124)]]||{}:{},_0x3ca59a={..._0x300841,[TestFrameworkConstants[_0x560b49(0x106)]]:_0x4d30bc[_0x560b49(0x166)]||_0x17cdc7['FaGWR'],[TestFrameworkConstants[_0x560b49(0x101)]]:_0x4d30bc[_0x560b49(0x10e)]||new Date()[_0x560b49(0xc9)](),[TestFrameworkConstants[_0x560b49(0x184)]]:new Date()[_0x560b49(0xc9)](),[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x22bceb,[TestFrameworkConstants[_0x560b49(0xff)]]:[],[TestFrameworkConstants[_0x560b49(0x14a)]]:_0x4d30bc[_0x560b49(0xf9)]||{}};_0x17cdc7[_0x560b49(0x157)](_0x4d30bc['result'],_0x17cdc7[_0x560b49(0x115)])&&_0x4d30bc[_0x560b49(0x13d)]&&(_0x3ca59a[TestFrameworkConstants[_0x560b49(0x135)]]=_0x4d30bc[_0x560b49(0x123)]||_0x17cdc7['vrsOW'],_0x3ca59a[TestFrameworkConstants['KEY_TEST_FAILURE_REASON']]=_0x4d30bc[_0x560b49(0xe2)]||'',_0x3ca59a[TestFrameworkConstants[_0x560b49(0xfb)]]=_0x4d30bc[_0x560b49(0x13d)]);const _0xe767d1=TestInfo['getTestDetails'](_0x346577)[TestFrameworkConstants[_0x560b49(0x114)]]||{},_0x570b65=_0x17cdc7[_0x560b49(0xf0)](getManualUploadLogs,_0xe767d1,_0x33fa65['getAllData']()[_0x560b49(0x144)](_0x346577)[TestFrameworkConstants[_0x560b49(0x132)]]);if(_0x17cdc7[_0x560b49(0x13a)](_0x570b65[_0x560b49(0x17c)],0x0)){const _0x133582=_0x3ca59a[TestFrameworkConstants['KEY_LOGS']]||[];_0x3ca59a[TestFrameworkConstants['KEY_LOGS']]=[..._0x133582,..._0x570b65];}_0x4d30bc[_0x560b49(0x154)]&&_0x17cdc7[_0x560b49(0x165)](_0x4d30bc['hooks'][_0x560b49(0x17c)],0x0)&&(_0x3ca59a[TestFrameworkConstants[_0x560b49(0xc8)]]=_0x4d30bc[_0x560b49(0x154)]);TestInfo[_0x560b49(0x15f)](_0x346577,_0x3ca59a),logger['debug'](_0x560b49(0x174)+_0x4d30bc[_0x560b49(0x173)]+_0x560b49(0x11f)+_0x4d30bc[_0x560b49(0x166)]);const _0x267351={};return _0x267351[_0x346577]=_0x3ca59a,_0x267351;}async[a78_0x4b735e(0x10a)](_0x3ac48e,_0x510dcb,_0x8def3c,_0x355356){const _0x52ab0e=a78_0x4b735e,_0x4661b7={'EzPRb':_0x52ab0e(0x17d),'GxYgq':function(_0x14967e){return _0x14967e();},'COJDz':function(_0x40d522,_0x2421cc){return _0x40d522 in _0x2421cc;},'gCIiC':function(_0x57e1fe,_0x4c0f0e){return _0x57e1fe===_0x4c0f0e;},'dSbkQ':function(_0x6b1225,_0x120118){return _0x6b1225===_0x120118;},'MDrYC':function(_0x6f618,_0x3e4ce1){return _0x6f618>_0x3e4ce1;},'GitNM':function(_0x594d62,_0x4087bb){return _0x594d62===_0x4087bb;},'gLVuO':'failed','LpIKM':_0x52ab0e(0xf3),'YoerG':_0x52ab0e(0x181),'hJHmI':function(_0x1a044d,_0x1766fb){return _0x1a044d!==_0x1766fb;}},{hookData:_0x5b66a7}=_0x355356;if(!_0x5b66a7)return logger[_0x52ab0e(0x121)](_0x4661b7[_0x52ab0e(0x104)]),{};const _0x54b937=_0x5b66a7['uuid']||_0x4661b7['GxYgq'](uuidv4),_0x3f7124=_0x5b66a7['test_run_id'],_0x4a0684=_0x510dcb[_0x52ab0e(0x16b)]()['split']('.')[0x1],_0x58db0b=TestInfo[_0x52ab0e(0x168)](_0x3f7124)[TestFrameworkConstants[_0x52ab0e(0x124)]]||{},_0x5c7d08=_0x3ac48e['getAllData']()[_0x52ab0e(0x144)](_0x3f7124);if(!_0x5c7d08)return logger['debug'](_0x52ab0e(0x186)+_0x3f7124+_0x52ab0e(0x164)),this['storePendingHook'](_0x3ac48e,_0x3f7124,_0x510dcb,_0x8def3c,_0x355356),{};let _0x369db1=_0x5c7d08[TestFrameworkConstants['KEY_HOOKS_STARTED']];!_0x369db1&&(_0x369db1={});!_0x4661b7[_0x52ab0e(0x108)](_0x4a0684,_0x369db1)&&(_0x369db1[_0x4a0684]=[]);let _0x50f5f4=_0x5c7d08[TestFrameworkConstants['KEY_HOOKS_FINISHED']];!_0x50f5f4&&(_0x50f5f4={});!_0x4661b7[_0x52ab0e(0x108)](_0x4a0684,_0x50f5f4)&&(_0x50f5f4[_0x4a0684]=[]);const _0x3cb716={[TestFrameworkConstants[_0x52ab0e(0x151)]]:_0x369db1,[TestFrameworkConstants[_0x52ab0e(0xc8)]]:_0x50f5f4},_0x2a486a={};_0x2a486a[_0x3f7124]=_0x3cb716;const _0x5a82d4=_0x2a486a;if(_0x4661b7['gCIiC'](_0x8def3c,HookState[_0x52ab0e(0x17e)])){const _0x11e236={[TestFrameworkConstants[_0x52ab0e(0x14b)]]:_0x54b937,[TestFrameworkConstants[_0x52ab0e(0x12e)]]:TestFrameworkConstants[_0x52ab0e(0x12b)],[TestFrameworkConstants[_0x52ab0e(0x120)]]:_0x5b66a7['started_at'],[TestFrameworkConstants[_0x52ab0e(0xfc)]]:[],[TestFrameworkConstants[_0x52ab0e(0xee)]]:_0x5b66a7['hook_type'],[TestFrameworkConstants[_0x52ab0e(0x124)]]:_0x58db0b};_0x11e236['key']=_0x4a0684;const _0x596d1c=_0x11e236;_0x369db1[_0x4a0684]['push'](_0x596d1c),_0x5a82d4[_0x3f7124][TestFrameworkConstants[_0x52ab0e(0x149)]]=_0x4a0684,logger['debug'](_0x52ab0e(0xb9)+_0x4a0684+'\x20&\x20hook\x20=\x20'+_0x596d1c+_0x52ab0e(0xbc)+_0x355356);}else{if(_0x4661b7['dSbkQ'](_0x8def3c,HookState['POST'])){const _0x1ccedb=_0x5b66a7[_0x52ab0e(0x166)],_0x59168a=_0x369db1[_0x4a0684]||[];logger['debug'](_0x52ab0e(0x148)+_0x59168a+_0x52ab0e(0xc3)+_0x355356);if(_0x4661b7[_0x52ab0e(0x153)](_0x59168a['length'],0x0)){const _0x5d71cf=_0x59168a[_0x52ab0e(0xc1)]();_0x4661b7['GitNM'](_0x5b66a7[_0x52ab0e(0x166)],_0x4661b7['gLVuO'])&&_0x5b66a7[_0x52ab0e(0x15d)]?(_0x5d71cf[TestFrameworkConstants[_0x52ab0e(0x138)]]=_0x5b66a7['failure_type']||_0x4661b7[_0x52ab0e(0x167)],_0x5d71cf[TestFrameworkConstants[_0x52ab0e(0x107)]]=_0x5b66a7[_0x52ab0e(0xe2)]||'',_0x5d71cf[TestFrameworkConstants[_0x52ab0e(0x147)]]=_0x5b66a7[_0x52ab0e(0x15d)]):_0x5d71cf[TestFrameworkConstants[_0x52ab0e(0x12e)]]=_0x4661b7['YoerG'];_0x4661b7[_0x52ab0e(0xc2)](_0x1ccedb,TestFrameworkConstants['DEFAULT_HOOK_RESULT'])&&(_0x5d71cf[TestFrameworkConstants[_0x52ab0e(0x12e)]]=_0x1ccedb);_0x5d71cf[TestFrameworkConstants['KEY_EVENT_ENDED_AT']]=_0x5b66a7[_0x52ab0e(0xdd)]||new Date()[_0x52ab0e(0xc9)](),_0x5d71cf[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x58db0b;const _0x1dca58=_0x5d71cf[TestFrameworkConstants[_0x52ab0e(0x14b)]];!_0x50f5f4[_0x4a0684]&&(_0x50f5f4[_0x4a0684]=[]),_0x50f5f4[_0x4a0684]['push'](_0x5d71cf),_0x5a82d4[_0x3f7124][TestFrameworkConstants[_0x52ab0e(0x128)]]=_0x4a0684;}}}return logger['debug']('Tracked\x20cucumber\x20hook\x20event:\x20'+_0x5b66a7[_0x52ab0e(0x156)]+_0x52ab0e(0x158)+_0x54b937+_0x52ab0e(0x177)+_0x3f7124),_0x5a82d4;}[a78_0x4b735e(0x145)](_0x489f5d){const _0x2518c5=a78_0x4b735e,_0x26c0e5={};_0x26c0e5['SdtaK']=_0x2518c5(0x16a);const _0x5360aa=_0x26c0e5;try{const _0x7a0b80=_0x489f5d['test']?_0x489f5d[_0x2518c5(0xd1)]['id']:_0x489f5d[_0x2518c5(0x14e)][_0x2518c5(0xf1)],_0x58f270=_0x489f5d[_0x2518c5(0x12d)],_0x1dbd77=_0x58f270[_0x2518c5(0x11d)](),_0x3728f1=_0x58f270[_0x2518c5(0xc5)]()[_0x2518c5(0x144)](_0x7a0b80);if(!_0x3728f1)return logger[_0x2518c5(0x121)]('createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x7a0b80),{};logger[_0x2518c5(0x121)](_0x2518c5(0xe8)+_0x7a0b80);const {[TestFrameworkConstants[_0x2518c5(0x10b)]]:_0x145b82='',[TestFrameworkConstants[_0x2518c5(0xed)]]:_0x1a812b='',[TestFrameworkConstants[_0x2518c5(0x133)]]:_0x381335='',[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x559422=''}=_0x3728f1,_0x2b3a2f=_0x58f270[_0x2518c5(0xec)]()[_0x2518c5(0x16b)]()[_0x2518c5(0xcd)]('.')[0x1],_0x347d83=_0x58f270[_0x2518c5(0x170)]()[_0x2518c5(0x16b)]()[_0x2518c5(0xcd)]('.')[0x1],_0x590478=global?.['browserstackPlatformIndex']??0x0,_0x13e649=_0x58f270[_0x2518c5(0x163)](),_0x4914ac=Buffer[_0x2518c5(0xcf)](JSON['stringify'](_0x3728f1))[_0x2518c5(0x16b)](_0x5360aa[_0x2518c5(0x17a)]),_0x1d0d7a={'hash':_0x1dbd77[_0x2518c5(0x160)](),'threadId':_0x1dbd77[_0x2518c5(0xe0)]()[_0x2518c5(0x16b)](),'processId':_0x1dbd77[_0x2518c5(0x13b)]()[_0x2518c5(0x16b)]()},_0x285a7f={};_0x285a7f[_0x2518c5(0x130)]=_0x590478,_0x285a7f[_0x2518c5(0x131)]=_0x145b82,_0x285a7f[_0x2518c5(0x125)]=_0x1a812b,_0x285a7f['testFrameworkState']=_0x2b3a2f,_0x285a7f[_0x2518c5(0x16e)]=_0x347d83,_0x285a7f[_0x2518c5(0xcc)]=_0x381335,_0x285a7f['endedAt']=_0x559422,_0x285a7f['uuid']=_0x13e649,_0x285a7f[_0x2518c5(0xba)]=_0x4914ac,_0x285a7f[_0x2518c5(0x10c)]=_0x1d0d7a;const _0x15b532=_0x285a7f;return logger[_0x2518c5(0x121)](_0x2518c5(0x180)+_0x7a0b80+'\x20testState:\x20'+_0x2b3a2f+_0x2518c5(0x10d)+_0x347d83),_0x15b532;}catch(_0x56d8ff){return logger[_0x2518c5(0xe6)]('Error\x20in\x20createTestFrameworkEventPayload:\x20'+util[_0x2518c5(0x162)](_0x56d8ff)),{};}}async[a78_0x4b735e(0xdc)](_0x582f7a,_0x1f8942,_0x59f28d){const _0x4b7836=a78_0x4b735e,_0x1871bd={'nclMt':function(_0x2efdbb,_0x258260,_0x45372f){return _0x2efdbb(_0x258260,_0x45372f);},'PKyZr':function(_0x10a570,_0x835e07){return _0x10a570===_0x835e07;},'owNLr':_0x4b7836(0x152),'gnjJH':function(_0x282f8a,_0x24d0e1){return _0x282f8a/_0x24d0e1;},'zgkFU':function(_0x251276,_0x29d448){return _0x251276<_0x29d448;},'XQNxp':function(_0x127dd7,_0x3f130c){return _0x127dd7*_0x3f130c;},'aFFeb':function(_0x291896,_0x5b6fb5){return _0x291896+_0x5b6fb5;},'TyMTw':function(_0x1e6946,_0x441b15){return _0x1e6946+_0x441b15;},'IYxAw':_0x4b7836(0xe3)};try{const _0x1a7656=_0x59f28d[_0x4b7836(0xd0)],_0x56cf19=_0x582f7a[_0x4b7836(0xc5)]()[_0x4b7836(0x144)](_0x1a7656),{[TestFrameworkConstants[_0x4b7836(0x10b)]]:_0x44327a='',[TestFrameworkConstants[_0x4b7836(0xed)]]:_0x52018b=''}=_0x56cf19,_0x17e92f=TestInfo[_0x4b7836(0xf2)](_0x1a7656),_0x1c8ca1=TestInfo[_0x4b7836(0x168)](_0x1a7656)[TestFrameworkConstants[_0x4b7836(0x114)]]||{},_0x56e8cc=_0x1871bd[_0x4b7836(0xd6)](getMediaArtifactsLogs,_0x1c8ca1,_0x582f7a[_0x4b7836(0xc5)]()['get'](_0x1a7656)[TestFrameworkConstants['KEY_TEST_UUID']]),_0x317da8=(_0x17e92f||[])[_0x4b7836(0x118)](_0x56e8cc||[]);if(!_0x317da8||_0x1871bd[_0x4b7836(0xd2)](_0x317da8['length'],0x0)){logger[_0x4b7836(0x121)](_0x1871bd[_0x4b7836(0xca)]);return;}const _0xf707ad=0x28,_0x33c57c=Math['ceil'](_0x1871bd[_0x4b7836(0xf6)](_0x317da8[_0x4b7836(0x17c)],_0xf707ad));for(let _0x4800a0=0x0;_0x1871bd[_0x4b7836(0x15e)](_0x4800a0,_0x33c57c);_0x4800a0++){const _0x9f6ec7=_0x1871bd[_0x4b7836(0x169)](_0x4800a0,_0xf707ad),_0x4eea61=_0x1871bd[_0x4b7836(0x126)](_0x9f6ec7,_0xf707ad),_0x279a54=_0x317da8['slice'](_0x9f6ec7,_0x4eea61),_0x2adade={'platformIndex':global?.[_0x4b7836(0x146)]??0x0,'logs':_0x279a54,'testFrameworkName':_0x44327a,'testFrameworkVersion':_0x52018b,'testFrameworkState':_0x1f8942[_0x4b7836(0x16b)]()[_0x4b7836(0xcd)]('.')[0x1]};logger[_0x4b7836(0x121)](_0x4b7836(0xde)+_0x1a7656+_0x4b7836(0x109)+_0x1871bd[_0x4b7836(0xf8)](_0x4800a0,0x1)+'/'+_0x33c57c+'\x20payload='+util['inspect'](_0x2adade));const _0x3cd75d=await GrpcClient[_0x4b7836(0xeb)]()[_0x4b7836(0x13f)](_0x2adade);logger[_0x4b7836(0x121)](_0x4b7836(0xde)+_0x1a7656+_0x4b7836(0x109)+_0x1871bd['aFFeb'](_0x4800a0,0x1)+'/'+_0x33c57c+'\x20response='+util[_0x4b7836(0xbf)](_0x3cd75d));}}catch(_0xcd4625){logger['error'](_0x4b7836(0x102)+util[_0x4b7836(0x162)](_0xcd4625));}logger[_0x4b7836(0x121)](_0x1871bd[_0x4b7836(0x111)]);}[a78_0x4b735e(0x12a)](_0x4f2139,_0x30fdb9,_0x374ea3,_0x163fa8,_0x320326){const _0x17c88f=a78_0x4b735e,_0x59bc62={'testId':_0x30fdb9,'testFrameworkState':_0x374ea3,'hookState':_0x163fa8,'args':_0x320326,'timestamp':new Date()[_0x17c88f(0xc9)]()};_0x4f2139[_0x17c88f(0xda)](_0x30fdb9,_0x59bc62),logger[_0x17c88f(0x121)](_0x17c88f(0x142)+_0x30fdb9+',\x20state:\x20'+_0x374ea3+_0x17c88f(0x139)+_0x163fa8);}async['processPendingHooks'](_0x553eed,_0x239d1b){const _0x72fd79=a78_0x4b735e,_0x547357={};_0x547357[_0x72fd79(0xbd)]=function(_0x389673,_0x1bae4c){return _0x389673>_0x1bae4c;};const _0x3a9fb8=_0x547357;if(!_0x553eed[_0x72fd79(0x182)](_0x239d1b))return;const _0x24f3ec=_0x553eed[_0x72fd79(0xd8)](_0x239d1b);logger[_0x72fd79(0x121)](_0x72fd79(0x14c)+_0x24f3ec['length']+_0x72fd79(0x15c)+_0x239d1b);for(const _0x58c077 of _0x24f3ec){try{const _0x324ad2=await this[_0x72fd79(0x10a)](_0x553eed,_0x58c077[_0x72fd79(0x112)],_0x58c077[_0x72fd79(0x16e)],_0x58c077[_0x72fd79(0x103)]);_0x324ad2&&_0x3a9fb8['ZSvza'](Object[_0x72fd79(0xf7)](_0x324ad2)[_0x72fd79(0x17c)],0x0)&&_0x553eed['addMultipleEntries'](_0x324ad2),await this[_0x72fd79(0x119)](_0x553eed,_0x58c077['testFrameworkState'],_0x58c077[_0x72fd79(0x16e)],_0x58c077[_0x72fd79(0x103)]);}catch(_0x2bedc3){logger[_0x72fd79(0xe6)](_0x72fd79(0xf5)+_0x239d1b+_0x72fd79(0x13c)+_0x2bedc3);}}_0x553eed[_0x72fd79(0x15b)](_0x239d1b),logger['debug'](_0x72fd79(0xe5)+_0x239d1b);}}function a78_0x5153(){const _0x113314=['VYVtF','\x20with\x20id\x20','../../../helpers/classLogger.js','../TestInfo.js','removePendingHooks','\x20pending\x20hooks\x20for\x20testId:\x20','failure_data','zgkFU','setTestDetails','getId','12401700OgaARh','format','getRef',',\x20storing\x20as\x20pending\x20hook','LUynm','result','LpIKM','getTestDetails','XQNxp','base64','toString','./constants/testFrameworkConstants.js','getTestUUID','hookState','SOOAs','getCurrentHookState','./testFramework','\x20with\x20UUID:\x20','name','Updated\x20cucumber\x20test\x20result:\x20','scopes','KEY_TEST_SCOPE','\x20for\x20test:\x20','getTestFrameworks','KEY_TEST_ID','SdtaK','trackCucumberInstance:\x20saved\x20instance\x20contextId=','length','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','PRE','dkMdX','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','passed','hasPendingHooks','5OcSPwu','KEY_TEST_RESULT_AT','KEY_TEST_RERUN_NAME','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','4xiLkmc','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','eventJson','parseCucumberTest','\x20\x20and\x20args\x20=\x20','ZSvza','3874950SPrQQR','inspect','KEY_TEST_TAGS','pop','hJHmI','\x20and\x20args\x20=\x20','trackEvent:\x20unsupported\x20testFrameworkState=','getAllData','uuid','createContext','KEY_HOOKS_FINISHED','toISOString','owNLr','TEST','startedAt','split','KEY_AUTOMATE_SESSION_NAME','from','testUUID','test','PKyZr','parseCucumberTestResult','OgXtC','CucumberTestFramework','nclMt','25417wlCKWs','getPendingHooks','wXhfm','addPendingHook','KEY_TEST_FILE_PATH','sendLogCreatedEvent','finished_at','sendLogCreatedEvent:\x20for\x20testId:\x20','KEY_TEST_SCOPES','getThreadId','2456LhMcOf','failure_reason','Cucumber\x20log\x20created\x20event','resolveInstance','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','error','132FPZBRd','createTestFrameworkEventPayload\x20testId:\x20','493330tJPktc','addMultipleEntries','getInstance','getCurrentTestState','KEY_TEST_FRAMEWORK_VERSION','KEY_HOOK_NAME','NONE','AbaWa','test_run_id','readLogObjects','UnhandledError','VKbQa','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','gnjJH','keys','TyMTw','meta','getTrackedInstance','KEY_TEST_FAILURE','KEY_HOOK_LOGS','POST','exports','KEY_LOGS','../state/hookState.js','KEY_TEST_ENDED_AT','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','args','EzPRb','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','KEY_TEST_RESULT','KEY_HOOK_FAILURE_REASON','COJDz','\x20batch\x20','trackHookEvent','KEY_TEST_FRAMEWORK_NAME','executionContext','\x20hookState:\x20','finishedAt','trackCucumberInstance','KEY_TEST_LOGS','IYxAw','testFrameworkState','testData','KEY_TEST_ATTACHMENTS','CsTJO','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','Parsed\x20cucumber\x20test:\x20','concat','runHooks','processPendingHooks','../instances/testFrameworkInstance.js','customRerunParam','getContext','../state/testFrameworkState.js','\x20with\x20result:\x20','KEY_EVENT_STARTED_AT','debug','460902LNgnQM','failure_type','KEY_CUSTOM_TAGS','testFrameworkVersion','aFFeb','getTestFrameworksVersions','KEY_HOOK_LAST_FINISHED','\x20target=','storePendingHook','DEFAULT_HOOK_RESULT','matchHookRegex','instance','KEY_HOOK_RESULT','code','platformIndex','testFrameworkName','KEY_TEST_UUID','KEY_TEST_STARTED_AT','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','KEY_TEST_FAILURE_TYPE','trackEvent','6823542yeFyDv','KEY_HOOK_FAILURE_TYPE',',\x20hookState:\x20','ZRVZr','getProcessId',',\x20error:\x20','failure','KEY_TEST_LOCATION','logCreatedEvent','KEY_TEST_CODE','zfIMN','Stored\x20pending\x20hook\x20for\x20testId:\x20',',\x20state=','get','createTestFrameworkEventPayload','browserstackPlatformIndex','KEY_HOOK_FAILURE','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','KEY_HOOK_LAST_STARTED','KEY_TEST_META','KEY_HOOK_ID','Processing\x20','INIT_TEST','hookData','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','2970627YTyhXA','KEY_HOOKS_STARTED','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','MDrYC','hooks','2dMsWOo','hook_type'];a78_0x5153=function(){return _0x113314;};return a78_0x5153();}module[a78_0x4b735e(0xfe)]=CucumberTestFramework;
1
+ function a90_0x7336(_0x1aed41,_0x5ab991){const _0x74141c=a90_0x7414();return a90_0x7336=function(_0x733601,_0x20ccd0){_0x733601=_0x733601-0xcc;let _0x311831=_0x74141c[_0x733601];return _0x311831;},a90_0x7336(_0x1aed41,_0x5ab991);}function a90_0x7414(){const _0x4f446f=['KEY_HOOK_LAST_STARTED','exports','getProcessId','KEY_HOOK_FAILURE','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','EIOgt','../grpcClient','testUUID','3954UDdHst',',\x20error:\x20','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','KEY_TEST_RERUN_NAME','KEY_TEST_FRAMEWORK_NAME','failure','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','gRIdL','Pxbgd','KEY_TEST_NAME','./constants/testFrameworkConstants.js','LOG_REPORT','storePendingHook','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','get',',\x20state=','endedAt',',\x20state:\x20','KEY_LOGS','KEY_CUSTOM_TAGS','util','\x20testState:\x20','518HdcfzG','yuDDu','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','KEY_HOOK_LAST_FINISHED','\x20with\x20result:\x20','../instances/testFrameworkInstance.js','meta','tags','KEY_HOOK_RESULT','parseCucumberTest','push','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','uFqNL','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','finishedAt','KEY_TEST_ID','getCurrentInstanceName','ajljj','NONE','getInstance','PRE','sendLogCreatedEvent:\x20for\x20testId:\x20','KEY_TEST_ENDED_AT',',\x20storing\x20as\x20pending\x20hook','testFrameworkState','parseCucumberTestResult','YPUmb','dBDgW','2843814Octykp','KEY_TEST_META','POST','debug','../../../helpers/helper.js','uuid','vlJmV','failure_type','testData','started_at','./testFramework','addMultipleEntries','rZDsn','WSPhR','browserstackPlatformIndex','hookState','createTestFrameworkEventPayload','toISOString','logCreatedEvent','elsiC','DEFAULT_TEST_RESULT','unknown','KEY_HOOKS_FINISHED','KEY_HOOK_LOGS','eventJson','length','hooks','Feplw','finished_at','YvGpm','21ekVvIQ','result','CucumberTestFramework','1239641jIJDMI','urwFK','KEY_TEST_LOCATION','processPendingHooks','deFij','setTrackedInstance','\x20response=','10llzxpq','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','failed','KEY_TEST_RESULT','testFrameworkName','customRerunParam','KEY_TEST_FAILURE_REASON','hook_type','KEY_AUTOMATE_SESSION_NAME','name','\x20hookState:\x20','../instances/trackedInstance.js','DEFAULT_HOOK_RESULT','KEY_TEST_FAILURE','KEY_TEST_ATTACHMENTS','getCurrentTestState','KEY_HOOK_NAME','KEY_TEST_FILE_PATH','getThreadId','wSsxJ','getTrackedInstance','test_run_id','startedAt','inspect','596720MxLXFW','\x20with\x20UUID:\x20','Cucumber\x20log\x20created\x20event','QUbEe','getTestFrameworksVersions','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','trackCucumberInstance','sendLogCreatedEvent','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','JAvBC','Bwqir','getTestUUID','KEY_TEST_FRAMEWORK_VERSION','KEY_HOOK_ID','KEY_TEST_UUID','trackHookEvent','CTogW','../../../helpers/classLogger.js','pop','ceil','code','passed','KEY_EVENT_STARTED_AT','location','KEY_TEST_STARTED_AT','runHooks','KEY_TEST_LOGS','SnobD','args','KEY_TEST_FAILURE_TYPE','body','key','\x20and\x20args\x20=\x20','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','split','UnhandledError','hookData','from','sXOFd','7864365AxkhPn','../state/hookState.js','test','file_name','toString','812656gcXoUM','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','failure_reason','kXqsB','concat','resolveInstance','getAllData','trackEvent','rmPVe','getTestDetails','failure_data','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','7353207eCATHT','Stored\x20pending\x20hook\x20for\x20testId:\x20','vpMnZ','getRef','removePendingHooks','Parsed\x20cucumber\x20test:\x20','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','LeoDl','Tracked\x20cucumber\x20hook\x20event:\x20','testFrameworkVersion','trackCucumberInstance:\x20saved\x20instance\x20contextId=','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','lOFBB','\x20payload=','TEST','\x20&\x20hookState=',',\x20hookState:\x20','MgaoO','\x20target=','\x20&\x20hook\x20=\x20','instance','oraCA','error','keys','addPendingHook','KEY_HOOKS_STARTED','setTestDetails','executionContext','format','KEY_TEST_CODE','rerun_name','matchHookRegex','trackEvent:\x20unsupported\x20testFrameworkState=','../cliUtils.js','\x20pending\x20hooks\x20for\x20testId:\x20','../TestInfo.js','ykchn'];a90_0x7414=function(){return _0x4f446f;};return a90_0x7414();}const a90_0x4133ae=a90_0x7336;(function(_0x47bc63,_0x2dd772){const _0x23776d=a90_0x7336,_0x3e9c67=_0x47bc63();while(!![]){try{const _0x1092c7=parseInt(_0x23776d(0x138))/0x1+-parseInt(_0x23776d(0xfb))/0x2*(-parseInt(_0x23776d(0xe5))/0x3)+-parseInt(_0x23776d(0x157))/0x4+parseInt(_0x23776d(0x17e))/0x5+parseInt(_0x23776d(0x117))/0x6*(-parseInt(_0x23776d(0x135))/0x7)+parseInt(_0x23776d(0x183))/0x8+parseInt(_0x23776d(0x18f))/0x9*(-parseInt(_0x23776d(0x13f))/0xa);if(_0x1092c7===_0x2dd772)break;else _0x3e9c67['push'](_0x3e9c67['shift']());}catch(_0x23ae22){_0x3e9c67['push'](_0x3e9c67['shift']());}}}(a90_0x7414,0xd3c14));const TestFramework=require(a90_0x4133ae(0x121)),TestFrameworkState=require('../state/testFrameworkState.js'),HookState=require(a90_0x4133ae(0x17f)),{createClassLogger}=require(a90_0x4133ae(0x168)),TestFrameworkInstance=require(a90_0x4133ae(0x100)),CLIUtils=require(a90_0x4133ae(0xd9)),TrackedInstance=require(a90_0x4133ae(0x14a)),TestFrameworkConstants=require(a90_0x4133ae(0xef)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a90_0x4133ae(0x11b)),logger=createClassLogger(a90_0x4133ae(0x137)),{v4:uuidv4}=require(a90_0x4133ae(0x11c)),util=require(a90_0x4133ae(0xf9)),TestInfo=require(a90_0x4133ae(0xdb)),GrpcClient=require(a90_0x4133ae(0xe3));class CucumberTestFramework extends TestFramework{constructor(_0x124c9f,_0x20cbef,_0x55ab6b){super(_0x124c9f,_0x20cbef,_0x55ab6b);}async['trackEvent'](_0x4d5dc7,_0x5ae711,_0x14f603={}){const _0x3dab32=a90_0x4133ae,_0x54e792={};_0x54e792[_0x3dab32(0x172)]=_0x3dab32(0x140),_0x54e792['wSsxJ']=function(_0x55736c,_0x18a1e0){return _0x55736c===_0x18a1e0;},_0x54e792[_0x3dab32(0x161)]=function(_0x2958b4,_0x2fa8ae){return _0x2958b4===_0x2fa8ae;},_0x54e792[_0x3dab32(0x115)]=_0x3dab32(0x178);const _0x1ce56b=_0x54e792;await super[_0x3dab32(0x18a)](_0x4d5dc7,_0x5ae711,_0x14f603);const _0x23b429=this['resolveInstance'](_0x4d5dc7,_0x5ae711,_0x14f603);if(!_0x23b429){logger['debug'](_0x1ce56b[_0x3dab32(0x172)]);return;}try{let _0x4786dc,_0x588b71;switch(_0x4d5dc7){case TestFrameworkState[_0x3dab32(0x19d)]:_0x4786dc=_0x14f603['test'],_0x588b71=TestInfo[_0x3dab32(0x162)](_0x4786dc['id']);if(_0x1ce56b[_0x3dab32(0x152)](_0x5ae711,HookState[_0x3dab32(0x10f)])){logger[_0x3dab32(0x11a)](_0x3dab32(0xf2)+_0x4786dc['id']);const _0x1ecd57={};_0x1ecd57[_0x3dab32(0xe4)]=_0x588b71,_0x1ecd57['testData']=_0x4786dc,_0x23b429['addMultipleEntries'](this[_0x3dab32(0x104)](_0x1ecd57)),logger[_0x3dab32(0x11a)]('trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20'+_0x4786dc['id']),await this[_0x3dab32(0x13b)](_0x23b429,_0x4786dc['id']);}else{if(_0x1ce56b[_0x3dab32(0x161)](_0x5ae711,HookState[_0x3dab32(0x119)])){const _0xb2090={};_0xb2090['testUUID']=_0x588b71,_0xb2090[_0x3dab32(0x11f)]=_0x4786dc,_0x23b429[_0x3dab32(0x122)](this['parseCucumberTestResult'](_0xb2090)),await this[_0x3dab32(0x13b)](_0x23b429,_0x4786dc['id']);}}break;case TestFrameworkState[_0x3dab32(0xf0)]:_0x1ce56b[_0x3dab32(0x161)](_0x5ae711,HookState[_0x3dab32(0x119)])&&await this[_0x3dab32(0x15e)](_0x23b429,_0x4d5dc7,_0x14f603);break;default:if(CLIUtils[_0x3dab32(0xd7)](_0x4d5dc7['toString']()[_0x3dab32(0x179)]('.')[0x1])){const _0x3b8abe=await this[_0x3dab32(0x166)](_0x23b429,_0x4d5dc7,_0x5ae711,_0x14f603);_0x23b429['addMultipleEntries'](_0x3b8abe);}else logger[_0x3dab32(0x11a)](_0x3dab32(0xd8)+_0x4d5dc7+_0x3dab32(0x19e)+_0x5ae711);break;}}catch(_0x46b248){logger[_0x3dab32(0xce)](util[_0x3dab32(0xd4)](_0x1ce56b[_0x3dab32(0x115)],_0x4d5dc7,_0x5ae711,_0x14f603[_0x3dab32(0x130)],_0x46b248));}_0x14f603[_0x3dab32(0xcc)]=_0x23b429,await this[_0x3dab32(0x170)](_0x23b429,_0x4d5dc7,_0x5ae711,_0x14f603);}[a90_0x4133ae(0x188)](_0xd965e0,_0x9e257d,_0x2b0645={}){const _0x1b117b=a90_0x4133ae,_0x29c0ba={};_0x29c0ba[_0x1b117b(0xec)]=function(_0xe9c43d,_0x12b39e){return _0xe9c43d===_0x12b39e;},_0x29c0ba[_0x1b117b(0x15a)]=function(_0x503744,_0x4e4b5a){return _0x503744===_0x4e4b5a;};const _0xb41c6=_0x29c0ba;let _0x4f5026=null;return(_0xb41c6[_0x1b117b(0xec)](_0xd965e0,TestFrameworkState['INIT_TEST'])||_0xb41c6[_0x1b117b(0x15a)](_0xd965e0,TestFrameworkState[_0x1b117b(0x10d)]))&&this[_0x1b117b(0x15d)](_0xd965e0,_0x2b0645),_0x4f5026=TestFramework[_0x1b117b(0x153)](),_0x4f5026;}[a90_0x4133ae(0x15d)](_0x1beeee,_0x4539c4){const _0x2a1579=a90_0x4133ae,_0x529da9=CLIUtils[_0x2a1579(0x10b)](),_0x44381c=TrackedInstance['createContext'](_0x529da9);let _0x364c1a=null;logger['debug'](_0x2a1579(0x184)+_0x529da9+_0x2a1579(0xf4)+_0x1beeee),_0x364c1a=new TestFrameworkInstance(_0x44381c,this['getTestFrameworks'](),this[_0x2a1579(0x15b)](),_0x1beeee,HookState[_0x2a1579(0x10d)]),TestFramework[_0x2a1579(0x13d)](_0x44381c,_0x364c1a),logger[_0x2a1579(0x11a)](_0x2a1579(0x199)+_0x44381c['getId']()+_0x2a1579(0x1a1)+_0x529da9);}[a90_0x4133ae(0x104)](_0x52b040){const _0x3d4578=a90_0x4133ae,_0x500b0d={};_0x500b0d[_0x3d4578(0x134)]=_0x3d4578(0x195);const _0x1814cb=_0x500b0d,{testUUID:_0xb4b7b0,testData:_0x5dfee9}=_0x52b040;if(!_0x5dfee9||!_0x5dfee9['uuid'])return logger[_0x3d4578(0x11a)](_0x1814cb[_0x3d4578(0x134)]),{};const _0x491414=_0xb4b7b0,_0x3313f7=_0x5dfee9['uuid'],_0x2eb21b=this['getTestFrameworks']()[0x0],_0x4a9ac6=this[_0x3d4578(0x15b)](),_0x2d3629={[TestFrameworkConstants[_0x3d4578(0xe9)]]:_0x2eb21b,[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x4a9ac6[_0x2eb21b],[TestFrameworkConstants[_0x3d4578(0x171)]]:[],[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:{},[TestFrameworkConstants[_0x3d4578(0xd1)]]:{},[TestFrameworkConstants[_0x3d4578(0x165)]]:_0x491414,[TestFrameworkConstants[_0x3d4578(0x142)]]:TestFrameworkConstants[_0x3d4578(0x12b)],[TestFrameworkConstants[_0x3d4578(0x147)]]:_0x5dfee9[_0x3d4578(0x148)]||'',[TestFrameworkConstants[_0x3d4578(0x150)]]:_0x5dfee9[_0x3d4578(0x181)]||'',[TestFrameworkConstants[_0x3d4578(0x10a)]]:_0x3313f7,[TestFrameworkConstants[_0x3d4578(0xee)]]:_0x5dfee9[_0x3d4578(0x148)]||'',[TestFrameworkConstants[_0x3d4578(0x13a)]]:_0x5dfee9[_0x3d4578(0x16e)]||'',[TestFrameworkConstants[_0x3d4578(0xd5)]]:_0x5dfee9[_0x3d4578(0x175)]?.[_0x3d4578(0x16b)]||null,[TestFrameworkConstants['KEY_TEST_TAGS']]:_0x5dfee9[_0x3d4578(0x102)]||[],[TestFrameworkConstants[_0x3d4578(0x16f)]]:_0x5dfee9[_0x3d4578(0x155)]||new Date()[_0x3d4578(0x128)](),[TestFrameworkConstants['KEY_TEST_SCOPE']]:_0x5dfee9['scopes']?.[0x0]||'',[TestFrameworkConstants['KEY_TEST_SCOPES']]:_0x5dfee9['scopes']||[],[TestFrameworkConstants[_0x3d4578(0xe8)]]:_0x5dfee9[_0x3d4578(0x144)]?.[_0x3d4578(0xd6)]||_0x5dfee9[_0x3d4578(0x148)]||'',[TestFrameworkConstants[_0x3d4578(0xf8)]]:{},[TestFrameworkConstants[_0x3d4578(0x118)]]:_0x5dfee9[_0x3d4578(0x101)]||{}};TestInfo[_0x3d4578(0xd2)](_0x3313f7,_0x2d3629),logger[_0x3d4578(0x11a)](_0x3d4578(0x194)+_0x5dfee9[_0x3d4578(0x148)]+_0x3d4578(0x158)+_0x491414);const _0x25aa3d={};return _0x25aa3d[_0x3313f7]=_0x2d3629,_0x25aa3d;}[a90_0x4133ae(0x114)](_0x1899db){const _0x114f82=a90_0x4133ae,_0x408dd0={'ajljj':_0x114f82(0x15f),'jnzIs':_0x114f82(0x12c),'LeoDl':function(_0x2de282,_0xcd717c){return _0x2de282===_0xcd717c;},'JAvBC':_0x114f82(0x141),'SADNA':'UnhandledError','rmPVe':function(_0x5b008f,_0x274052,_0xdcb50b){return _0x5b008f(_0x274052,_0xdcb50b);},'elsiC':function(_0x35a131,_0x4c4019){return _0x35a131>_0x4c4019;}},{testUUID:_0x32004a,testData:_0x1db124}=_0x1899db;if(!_0x1db124||!_0x1db124['uuid'])return logger['debug'](_0x408dd0[_0x114f82(0x10c)]),{};const _0x3ff235=this[_0x114f82(0x188)](TestFrameworkState[_0x114f82(0x19d)],HookState[_0x114f82(0x119)]),_0x17757a=_0x1db124['uuid'],_0xf21c7a=TestInfo['getTestDetails'](_0x17757a)||{},_0x121041=_0xf21c7a?_0xf21c7a[TestFrameworkConstants[_0x114f82(0xf8)]]||{}:{},_0x107649={..._0xf21c7a,[TestFrameworkConstants[_0x114f82(0x142)]]:_0x1db124[_0x114f82(0x136)]||_0x408dd0['jnzIs'],[TestFrameworkConstants[_0x114f82(0x111)]]:_0x1db124[_0x114f82(0x109)]||new Date()[_0x114f82(0x128)](),[TestFrameworkConstants['KEY_TEST_RESULT_AT']]:new Date()['toISOString'](),[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x121041,[TestFrameworkConstants[_0x114f82(0xf7)]]:[],[TestFrameworkConstants['KEY_TEST_META']]:_0x1db124[_0x114f82(0x101)]||{}};_0x408dd0[_0x114f82(0x196)](_0x1db124['result'],_0x408dd0[_0x114f82(0x160)])&&_0x1db124[_0x114f82(0xea)]&&(_0x107649[TestFrameworkConstants[_0x114f82(0x174)]]=_0x1db124[_0x114f82(0x11e)]||_0x408dd0['SADNA'],_0x107649[TestFrameworkConstants[_0x114f82(0x145)]]=_0x1db124['failure_reason']||'',_0x107649[TestFrameworkConstants[_0x114f82(0x14c)]]=_0x1db124[_0x114f82(0xea)]);const _0xd05976=TestInfo[_0x114f82(0x18c)](_0x17757a)[TestFrameworkConstants[_0x114f82(0x14d)]]||{},_0x3621b6=_0x408dd0[_0x114f82(0x18b)](getManualUploadLogs,_0xd05976,_0x3ff235[_0x114f82(0x189)]()[_0x114f82(0xf3)](_0x17757a)[TestFrameworkConstants['KEY_TEST_UUID']]);if(_0x408dd0[_0x114f82(0x12a)](_0x3621b6[_0x114f82(0x130)],0x0)){const _0x1cddcb=_0x107649[TestFrameworkConstants['KEY_LOGS']]||[];_0x107649[TestFrameworkConstants[_0x114f82(0xf7)]]=[..._0x1cddcb,..._0x3621b6];}_0x1db124[_0x114f82(0x131)]&&_0x408dd0[_0x114f82(0x12a)](_0x1db124['hooks'][_0x114f82(0x130)],0x0)&&(_0x107649[TestFrameworkConstants[_0x114f82(0x12d)]]=_0x1db124[_0x114f82(0x131)]);TestInfo[_0x114f82(0xd2)](_0x17757a,_0x107649),logger[_0x114f82(0x11a)]('Updated\x20cucumber\x20test\x20result:\x20'+_0x1db124[_0x114f82(0x148)]+_0x114f82(0xff)+_0x1db124['result']);const _0x20fccd={};return _0x20fccd[_0x17757a]=_0x107649,_0x20fccd;}async[a90_0x4133ae(0x166)](_0x3d056b,_0x212774,_0x378f04,_0x398b84){const _0x2eae56=a90_0x4133ae,_0x574eb8={'Pxbgd':_0x2eae56(0x106),'oraCA':function(_0x1a7104){return _0x1a7104();},'lOFBB':function(_0x4add35,_0x16be11){return _0x4add35 in _0x16be11;},'uFqNL':function(_0x432d45,_0x2f05f2){return _0x432d45===_0x2f05f2;},'jpPLY':function(_0x322832,_0xa105a2){return _0x322832===_0xa105a2;},'WSPhR':function(_0x295209,_0x32c6a3){return _0x295209>_0x32c6a3;},'urwFK':function(_0x5ce54c,_0x3b7362){return _0x5ce54c===_0x3b7362;},'CTogW':_0x2eae56(0x141),'vlJmV':_0x2eae56(0x17a),'sXOFd':_0x2eae56(0x16c),'Feplw':function(_0x2e8383,_0x577aab){return _0x2e8383!==_0x577aab;}},{hookData:_0x41d0ad}=_0x398b84;if(!_0x41d0ad)return logger[_0x2eae56(0x11a)](_0x574eb8[_0x2eae56(0xed)]),{};const _0xd891b=_0x41d0ad[_0x2eae56(0x11c)]||_0x574eb8[_0x2eae56(0xcd)](uuidv4),_0x39cb5f=_0x41d0ad['test_run_id'],_0x14b098=_0x212774[_0x2eae56(0x182)]()['split']('.')[0x1],_0x393867=TestInfo['getTestDetails'](_0x39cb5f)[TestFrameworkConstants[_0x2eae56(0xf8)]]||{},_0x3151a2=_0x3d056b[_0x2eae56(0x189)]()[_0x2eae56(0xf3)](_0x39cb5f);if(!_0x3151a2)return logger['debug'](_0x2eae56(0x15c)+_0x39cb5f+_0x2eae56(0x112)),this[_0x2eae56(0xf1)](_0x3d056b,_0x39cb5f,_0x212774,_0x378f04,_0x398b84),{};let _0x4701b1=_0x3151a2[TestFrameworkConstants[_0x2eae56(0xd1)]];!_0x4701b1&&(_0x4701b1={});!_0x574eb8[_0x2eae56(0x19b)](_0x14b098,_0x4701b1)&&(_0x4701b1[_0x14b098]=[]);let _0x3ce3b4=_0x3151a2[TestFrameworkConstants['KEY_HOOKS_FINISHED']];!_0x3ce3b4&&(_0x3ce3b4={});!_0x574eb8[_0x2eae56(0x19b)](_0x14b098,_0x3ce3b4)&&(_0x3ce3b4[_0x14b098]=[]);const _0x47ad11={[TestFrameworkConstants[_0x2eae56(0xd1)]]:_0x4701b1,[TestFrameworkConstants[_0x2eae56(0x12d)]]:_0x3ce3b4},_0x5dd226={};_0x5dd226[_0x39cb5f]=_0x47ad11;const _0x536432=_0x5dd226;if(_0x574eb8[_0x2eae56(0x107)](_0x378f04,HookState[_0x2eae56(0x10f)])){const _0x18282f={[TestFrameworkConstants[_0x2eae56(0x164)]]:_0xd891b,[TestFrameworkConstants[_0x2eae56(0x103)]]:TestFrameworkConstants[_0x2eae56(0x14b)],[TestFrameworkConstants[_0x2eae56(0x16d)]]:_0x41d0ad[_0x2eae56(0x120)],[TestFrameworkConstants[_0x2eae56(0x12e)]]:[],[TestFrameworkConstants[_0x2eae56(0x14f)]]:_0x41d0ad[_0x2eae56(0x146)],[TestFrameworkConstants[_0x2eae56(0xf8)]]:_0x393867};_0x18282f[_0x2eae56(0x176)]=_0x14b098;const _0x11807b=_0x18282f;_0x4701b1[_0x14b098][_0x2eae56(0x105)](_0x11807b),_0x536432[_0x39cb5f][TestFrameworkConstants[_0x2eae56(0xdd)]]=_0x14b098,logger[_0x2eae56(0x11a)](_0x2eae56(0xfd)+_0x14b098+_0x2eae56(0x1a2)+_0x11807b+'\x20\x20and\x20args\x20=\x20'+_0x398b84);}else{if(_0x574eb8['jpPLY'](_0x378f04,HookState['POST'])){const _0x25ca4d=_0x41d0ad['result'],_0x3e4c91=_0x4701b1[_0x14b098]||[];logger[_0x2eae56(0x11a)]('trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20'+_0x3e4c91+_0x2eae56(0x177)+_0x398b84);if(_0x574eb8[_0x2eae56(0x124)](_0x3e4c91['length'],0x0)){const _0x2d54cc=_0x3e4c91[_0x2eae56(0x169)]();_0x574eb8[_0x2eae56(0x139)](_0x41d0ad[_0x2eae56(0x136)],_0x574eb8[_0x2eae56(0x167)])&&_0x41d0ad[_0x2eae56(0x18d)]?(_0x2d54cc[TestFrameworkConstants['KEY_HOOK_FAILURE_TYPE']]=_0x41d0ad[_0x2eae56(0x11e)]||_0x574eb8[_0x2eae56(0x11d)],_0x2d54cc[TestFrameworkConstants['KEY_HOOK_FAILURE_REASON']]=_0x41d0ad[_0x2eae56(0x185)]||'',_0x2d54cc[TestFrameworkConstants[_0x2eae56(0xe0)]]=_0x41d0ad[_0x2eae56(0x18d)]):_0x2d54cc[TestFrameworkConstants[_0x2eae56(0x103)]]=_0x574eb8[_0x2eae56(0x17d)];_0x574eb8[_0x2eae56(0x132)](_0x25ca4d,TestFrameworkConstants['DEFAULT_HOOK_RESULT'])&&(_0x2d54cc[TestFrameworkConstants[_0x2eae56(0x103)]]=_0x25ca4d);_0x2d54cc[TestFrameworkConstants['KEY_EVENT_ENDED_AT']]=_0x41d0ad[_0x2eae56(0x133)]||new Date()[_0x2eae56(0x128)](),_0x2d54cc[TestFrameworkConstants[_0x2eae56(0xf8)]]=_0x393867;const _0x1a6c20=_0x2d54cc[TestFrameworkConstants['KEY_HOOK_ID']];!_0x3ce3b4[_0x14b098]&&(_0x3ce3b4[_0x14b098]=[]),_0x3ce3b4[_0x14b098]['push'](_0x2d54cc),_0x536432[_0x39cb5f][TestFrameworkConstants[_0x2eae56(0xfe)]]=_0x14b098;}}}return logger[_0x2eae56(0x11a)](_0x2eae56(0x197)+_0x41d0ad[_0x2eae56(0x146)]+'\x20with\x20id\x20'+_0xd891b+'\x20for\x20test:\x20'+_0x39cb5f),_0x536432;}[a90_0x4133ae(0x127)](_0x320132){const _0x4b853a=a90_0x4133ae,_0x2b70a3={};_0x2b70a3['RxaBL']='base64';const _0x1d9f8e=_0x2b70a3;try{const _0xbbe367=_0x320132[_0x4b853a(0x180)]?_0x320132[_0x4b853a(0x180)]['id']:_0x320132[_0x4b853a(0x17b)][_0x4b853a(0x154)],_0x3e076a=_0x320132['instance'],_0x565983=_0x3e076a['getContext'](),_0x3b6608=_0x3e076a['getAllData']()[_0x4b853a(0xf3)](_0xbbe367);if(!_0x3b6608)return logger[_0x4b853a(0x11a)](_0x4b853a(0x19a)+_0xbbe367),{};logger[_0x4b853a(0x11a)]('createTestFrameworkEventPayload\x20testId:\x20'+_0xbbe367);const {[TestFrameworkConstants[_0x4b853a(0xe9)]]:_0x17d3cb='',[TestFrameworkConstants[_0x4b853a(0x163)]]:_0x108809='',[TestFrameworkConstants[_0x4b853a(0x16f)]]:_0x2f734a='',[TestFrameworkConstants[_0x4b853a(0x111)]]:_0x179d69=''}=_0x3b6608,_0x397f15=_0x3e076a[_0x4b853a(0x14e)]()[_0x4b853a(0x182)]()['split']('.')[0x1],_0x87f937=_0x3e076a['getCurrentHookState']()[_0x4b853a(0x182)]()['split']('.')[0x1],_0x2f9443=global?.[_0x4b853a(0x125)]??0x0,_0x4abbd1=_0x3e076a[_0x4b853a(0x192)](),_0x5d83d8=Buffer[_0x4b853a(0x17c)](JSON['stringify'](_0x3b6608))[_0x4b853a(0x182)](_0x1d9f8e['RxaBL']),_0x618fe3={'hash':_0x565983['getId'](),'threadId':_0x565983[_0x4b853a(0x151)]()['toString'](),'processId':_0x565983[_0x4b853a(0xdf)]()[_0x4b853a(0x182)]()},_0x160f5f={};_0x160f5f['platformIndex']=_0x2f9443,_0x160f5f[_0x4b853a(0x143)]=_0x17d3cb,_0x160f5f[_0x4b853a(0x198)]=_0x108809,_0x160f5f[_0x4b853a(0x113)]=_0x397f15,_0x160f5f[_0x4b853a(0x126)]=_0x87f937,_0x160f5f[_0x4b853a(0x155)]=_0x2f734a,_0x160f5f[_0x4b853a(0xf5)]=_0x179d69,_0x160f5f[_0x4b853a(0x11c)]=_0x4abbd1,_0x160f5f[_0x4b853a(0x12f)]=_0x5d83d8,_0x160f5f[_0x4b853a(0xd3)]=_0x618fe3;const _0x16cb27=_0x160f5f;return logger[_0x4b853a(0x11a)](_0x4b853a(0x108)+_0xbbe367+_0x4b853a(0xfa)+_0x397f15+_0x4b853a(0x149)+_0x87f937),_0x16cb27;}catch(_0x17b394){return logger[_0x4b853a(0xce)]('Error\x20in\x20createTestFrameworkEventPayload:\x20'+util['format'](_0x17b394)),{};}}async[a90_0x4133ae(0x15e)](_0x420c99,_0x51ecd7,_0x41d442){const _0x1c2fc1=a90_0x4133ae,_0x93ede3={'MgaoO':function(_0x135130,_0x47aee0,_0x186638){return _0x135130(_0x47aee0,_0x186638);},'kXqsB':function(_0xa05974,_0x10c389){return _0xa05974===_0x10c389;},'vpMnZ':_0x1c2fc1(0xe1),'deFij':function(_0x242ba3,_0x2bc935){return _0x242ba3/_0x2bc935;},'ykchn':function(_0x10dcf1,_0x4903fd){return _0x10dcf1<_0x4903fd;},'yuDDu':function(_0x5361b5,_0xacc4d5){return _0x5361b5*_0xacc4d5;},'rZDsn':function(_0x15a2a3,_0x570682){return _0x15a2a3+_0x570682;},'EIOgt':function(_0x20001f,_0x52b955){return _0x20001f+_0x52b955;},'uWHrf':_0x1c2fc1(0x159)};try{const _0x980475=_0x41d442[_0x1c2fc1(0xe4)],_0x153ccd=_0x420c99[_0x1c2fc1(0x189)]()[_0x1c2fc1(0xf3)](_0x980475),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x398388='',[TestFrameworkConstants[_0x1c2fc1(0x163)]]:_0x3dc49c=''}=_0x153ccd,_0x5975e9=TestInfo['readLogObjects'](_0x980475),_0x459b12=TestInfo[_0x1c2fc1(0x18c)](_0x980475)[TestFrameworkConstants[_0x1c2fc1(0x14d)]]||{},_0x42182c=_0x93ede3[_0x1c2fc1(0x1a0)](getMediaArtifactsLogs,_0x459b12,_0x420c99[_0x1c2fc1(0x189)]()['get'](_0x980475)[TestFrameworkConstants[_0x1c2fc1(0x165)]]),_0x16425c=(_0x5975e9||[])[_0x1c2fc1(0x187)](_0x42182c||[]);if(!_0x16425c||_0x93ede3[_0x1c2fc1(0x186)](_0x16425c['length'],0x0)){logger[_0x1c2fc1(0x11a)](_0x93ede3[_0x1c2fc1(0x191)]);return;}const _0x3a1c2a=0x28,_0x5a132d=Math[_0x1c2fc1(0x16a)](_0x93ede3[_0x1c2fc1(0x13c)](_0x16425c['length'],_0x3a1c2a));for(let _0x3b7e03=0x0;_0x93ede3[_0x1c2fc1(0xdc)](_0x3b7e03,_0x5a132d);_0x3b7e03++){const _0x19d59c=_0x93ede3[_0x1c2fc1(0xfc)](_0x3b7e03,_0x3a1c2a),_0x13b439=_0x93ede3[_0x1c2fc1(0x123)](_0x19d59c,_0x3a1c2a),_0x51d96c=_0x16425c['slice'](_0x19d59c,_0x13b439),_0x1edd35={'platformIndex':global?.[_0x1c2fc1(0x125)]??0x0,'logs':_0x51d96c,'testFrameworkName':_0x398388,'testFrameworkVersion':_0x3dc49c,'testFrameworkState':_0x51ecd7['toString']()[_0x1c2fc1(0x179)]('.')[0x1]};logger[_0x1c2fc1(0x11a)](_0x1c2fc1(0x110)+_0x980475+'\x20batch\x20'+_0x93ede3[_0x1c2fc1(0xe2)](_0x3b7e03,0x1)+'/'+_0x5a132d+_0x1c2fc1(0x19c)+util['inspect'](_0x1edd35));const _0x15be6d=await GrpcClient[_0x1c2fc1(0x10e)]()[_0x1c2fc1(0x129)](_0x1edd35);logger[_0x1c2fc1(0x11a)]('sendLogCreatedEvent:\x20for\x20testId:\x20'+_0x980475+'\x20batch\x20'+_0x93ede3[_0x1c2fc1(0x123)](_0x3b7e03,0x1)+'/'+_0x5a132d+_0x1c2fc1(0x13e)+util[_0x1c2fc1(0x156)](_0x15be6d));}}catch(_0x39d6c9){logger[_0x1c2fc1(0xce)](_0x1c2fc1(0xeb)+util[_0x1c2fc1(0xd4)](_0x39d6c9));}logger[_0x1c2fc1(0x11a)](_0x93ede3['uWHrf']);}[a90_0x4133ae(0xf1)](_0x3f581d,_0x2a9f8e,_0x242a60,_0x44c8dd,_0x165f69){const _0xf0cb36=a90_0x4133ae,_0x25d56d={'testId':_0x2a9f8e,'testFrameworkState':_0x242a60,'hookState':_0x44c8dd,'args':_0x165f69,'timestamp':new Date()[_0xf0cb36(0x128)]()};_0x3f581d[_0xf0cb36(0xd0)](_0x2a9f8e,_0x25d56d),logger[_0xf0cb36(0x11a)](_0xf0cb36(0x190)+_0x2a9f8e+_0xf0cb36(0xf6)+_0x242a60+_0xf0cb36(0x19f)+_0x44c8dd);}async[a90_0x4133ae(0x13b)](_0xe60d92,_0x451880){const _0x5db2da=a90_0x4133ae,_0x2226bc={};_0x2226bc[_0x5db2da(0x116)]=function(_0x325be3,_0x27b9e7){return _0x325be3>_0x27b9e7;};const _0x2363f7=_0x2226bc;if(!_0xe60d92['hasPendingHooks'](_0x451880))return;const _0x1106aa=_0xe60d92['getPendingHooks'](_0x451880);logger['debug']('Processing\x20'+_0x1106aa[_0x5db2da(0x130)]+_0x5db2da(0xda)+_0x451880);for(const _0x30285a of _0x1106aa){try{const _0xee5767=await this[_0x5db2da(0x166)](_0xe60d92,_0x30285a['testFrameworkState'],_0x30285a['hookState'],_0x30285a[_0x5db2da(0x173)]);_0xee5767&&_0x2363f7['dBDgW'](Object[_0x5db2da(0xcf)](_0xee5767)[_0x5db2da(0x130)],0x0)&&_0xe60d92[_0x5db2da(0x122)](_0xee5767),await this[_0x5db2da(0x170)](_0xe60d92,_0x30285a[_0x5db2da(0x113)],_0x30285a[_0x5db2da(0x126)],_0x30285a[_0x5db2da(0x173)]);}catch(_0x473405){logger['error'](_0x5db2da(0x18e)+_0x451880+_0x5db2da(0xe6)+_0x473405);}}_0xe60d92[_0x5db2da(0x193)](_0x451880),logger[_0x5db2da(0x11a)](_0x5db2da(0xe7)+_0x451880);}}module[a90_0x4133ae(0xde)]=CucumberTestFramework;