browserstack-node-sdk 1.40.1 → 1.40.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +2 -2
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test_before.setup.js +1 -1
  67. package/src/bin/launcher/launcher.js +1 -1
  68. package/src/bin/load/index.js +1 -1
  69. package/src/bin/load/load/index.js +46 -27
  70. package/src/bin/load/load/loadUtils.js +37 -31
  71. package/src/bin/load/loadUtils.js +1 -1
  72. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  73. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  74. package/src/bin/mocha/command.js +1 -1
  75. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  76. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  77. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  78. package/src/bin/mocha/test.setup.js +1 -1
  79. package/src/bin/nightwatch/command.js +1 -1
  80. package/src/bin/playwright/accessibility-helper.js +1 -1
  81. package/src/bin/playwright/command.js +1 -1
  82. package/src/bin/playwright/globalSetup.js +1 -1
  83. package/src/bin/playwright/mock-process.js +1 -1
  84. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  85. package/src/bin/playwright/patches.js +1 -1
  86. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  87. package/src/bin/playwright/reporter/reporter.js +1 -1
  88. package/src/bin/playwright/reporter/test-details.js +1 -1
  89. package/src/bin/playwright/sessionDetails.js +1 -1
  90. package/src/bin/runner.js +1 -1
  91. package/src/bin/setup.js +1 -1
  92. package/src/bin/test-runner/index.js +1 -1
  93. package/src/bin/test-runner/runTest.js +1 -1
  94. package/src/bin/test-runner/testWorker.js +1 -1
  95. package/src/bin/utils/constants.js +1 -1
  96. package/src/bin/utils/log4jsAppender.js +1 -1
  97. package/src/bin/utils/logPatcher.js +1 -1
  98. package/src/bin/utils/logReportingAPI.js +1 -1
  99. package/src/bin/v2/TestInfo.js +1 -1
  100. package/src/bin/v2/browserstackCLI.js +1 -1
  101. package/src/bin/v2/cliUtils.js +1 -1
  102. package/src/bin/v2/customTagManager.js +1 -1
  103. package/src/bin/v2/eventDispatcher.js +1 -1
  104. package/src/bin/v2/framework/automationFramework.js +1 -1
  105. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  106. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  107. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  108. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  109. package/src/bin/v2/framework/testFramework.js +1 -1
  110. package/src/bin/v2/grpcClient.js +1 -1
  111. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  112. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  113. package/src/bin/v2/instances/trackedContext.js +1 -1
  114. package/src/bin/v2/instances/trackedInstance.js +1 -1
  115. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  116. package/src/bin/v2/modules/baseModule.js +1 -1
  117. package/src/bin/v2/modules/observabilityModule.js +1 -1
  118. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  119. package/src/bin/v2/modules/testhubModule.js +1 -1
  120. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  121. package/src/bin/v2/state/hookState.js +1 -1
  122. package/src/bin/v2/state/testFrameworkState.js +1 -1
  123. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  124. package/src/bin/vanilla-js/command.js +1 -1
  125. package/src/browserStackSdk.js +1 -1
  126. package/src/helpers/BrowserStackSetup.js +1 -1
  127. package/src/helpers/accessibility-automation/constants.js +1 -1
  128. package/src/helpers/accessibility-automation/helper.js +1 -1
  129. package/src/helpers/accessibility-automation/scripts.js +1 -1
  130. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  131. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  132. package/src/helpers/ats/constants.js +1 -1
  133. package/src/helpers/ats/helper.js +1 -1
  134. package/src/helpers/capsMapping.js +1 -1
  135. package/src/helpers/central-scanner/constants.js +1 -1
  136. package/src/helpers/central-scanner/helpers.js +1 -1
  137. package/src/helpers/classLogger.js +1 -1
  138. package/src/helpers/globals.js +1 -1
  139. package/src/helpers/helper.js +1 -1
  140. package/src/helpers/logger.js +1 -1
  141. package/src/helpers/metadata.js +1 -1
  142. package/src/helpers/patchHelper.js +1 -1
  143. package/src/helpers/patchHelpers.js +1 -1
  144. package/src/helpers/percy/Percy.js +1 -1
  145. package/src/helpers/percy/PercyBinary.js +1 -1
  146. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  147. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  148. package/src/helpers/percy/PercySDK.js +1 -1
  149. package/src/helpers/percy/index.js +1 -1
  150. package/src/helpers/percy/utils.js +1 -1
  151. package/src/helpers/performance/constants.js +1 -1
  152. package/src/helpers/performance/performance-tester.js +1 -1
  153. package/src/helpers/processHelper.js +1 -1
  154. package/src/helpers/request-spy.js +1 -1
  155. package/src/helpers/setKeepAlive.js +1 -1
  156. package/src/helpers/test-observability/constants.js +1 -1
  157. package/src/helpers/test-observability/error-handler.js +1 -1
  158. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  159. package/src/helpers/test-observability/sessionHandler.js +1 -1
  160. package/src/helpers/test-observability/utils.js +1 -1
  161. package/src/helpers/test-orchestration/constants.js +1 -1
  162. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  163. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  164. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  165. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  166. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  167. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  168. package/src/helpers/testhub/constants.js +1 -1
  169. package/src/helpers/testhub/testhubHandler.js +1 -1
  170. package/src/helpers/testhub/utils.js +1 -1
  171. package/src/helpers/timeoutPromise.js +1 -1
  172. package/src/helpers/utilities.js +1 -1
  173. package/src/helpers/w3cMapping.js +1 -1
  174. package/src/hubAllocationMethods.js +1 -1
  175. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a117_0x2e4d4b=a117_0x1265;(function(_0x552b7b,_0x13bbb3){const _0x43fdc9=a117_0x1265,_0x468635=_0x552b7b();while(!![]){try{const _0x5efad6=-parseInt(_0x43fdc9(0x1ca))/0x1+parseInt(_0x43fdc9(0x1b2))/0x2*(-parseInt(_0x43fdc9(0x1e5))/0x3)+-parseInt(_0x43fdc9(0x176))/0x4+-parseInt(_0x43fdc9(0x223))/0x5+parseInt(_0x43fdc9(0x1d0))/0x6*(-parseInt(_0x43fdc9(0x180))/0x7)+-parseInt(_0x43fdc9(0x179))/0x8+parseInt(_0x43fdc9(0x17e))/0x9;if(_0x5efad6===_0x13bbb3)break;else _0x468635['push'](_0x468635['shift']());}catch(_0x5ab07c){_0x468635['push'](_0x468635['shift']());}}}(a117_0x3a84,0x9975c));const fs=require('fs'),path=require(a117_0x2e4d4b(0x1f4)),gitLastCommit=require('git-last-commit'),getRepoInfo=require(a117_0x2e4d4b(0x197)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a117_0x2e4d4b(0x184)),http=require(a117_0x2e4d4b(0x23c)),https=require('https'),child_process=require('child_process'),getos=require(a117_0x2e4d4b(0x1d4)),os=require('os'),logger=require(a117_0x2e4d4b(0x1a7))[a117_0x2e4d4b(0x228)],bsSetupHelper=require(a117_0x2e4d4b(0x23f)),requestSpy=require(a117_0x2e4d4b(0x26f)),constants=require('../../bin/utils/constants'),logPatcher=require(a117_0x2e4d4b(0x1f0)),util=require(a117_0x2e4d4b(0x210)),{fileLogger}=require(a117_0x2e4d4b(0x1a7)),PerformanceTester=require('../performance/performance-tester'),{isFunction}=require(a117_0x2e4d4b(0x221)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require(a117_0x2e4d4b(0x17f)),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a117_0x2e4d4b(0x1e4));exports[a117_0x2e4d4b(0x1bb)]=_0x6eef7c=>{const _0x5038f0=a117_0x2e4d4b;fileLogger[_0x5038f0(0x23b)]('['+new Date()['toISOString']()+'][\x20OBSERVABILITY\x20]\x20'+_0x6eef7c);},exports['debug']=_0x568222=>{const _0x1624dd=a117_0x2e4d4b,_0x389060={};_0x389060[_0x1624dd(0x1f8)]=function(_0x3b9e39,_0x3b7d87){return _0x3b9e39===_0x3b7d87;},_0x389060[_0x1624dd(0x1ea)]=_0x1624dd(0x1a3),_0x389060[_0x1624dd(0x1b5)]=function(_0xcd88db,_0x145289){return _0xcd88db===_0x145289;};const _0xdf6535=_0x389060;fileLogger[_0x1624dd(0x198)]('['+new Date()[_0x1624dd(0x1d3)]()+_0x1624dd(0x186)+_0x568222),(_0xdf6535['yluhD'](process['env'][_0x1624dd(0x19f)],_0xdf6535['hHsLK'])||_0xdf6535[_0x1624dd(0x1b5)](process[_0x1624dd(0x1ef)][_0x1624dd(0x19f)],'1'))&&consoleHolder[_0x1624dd(0x1d6)]('\x0a['+new Date()[_0x1624dd(0x1d3)]()+_0x1624dd(0x186)+_0x568222+'\x0a');};function a117_0x3a84(){const _0x3f46dd=['ojJgz','getUserCredentials','Windows','forEach','bcgDo','12SGhNUe','json','getBrowserStackConfig','toISOString','getos','AOzzo','log','timeout','isTestObservabilitySession','replace','vqshs','appium:app','fromEntries','__cloud_provider___','PathHelper','isInternalHook','nodeRequest','release','getSyncScript','browserstack_executor:\x20','../../../src/bin/utils/constants','2359917yaGtdK','relativeTestFilePath','parse','err','YHyuO','hHsLK','toString','wSyRq','ObservabilitySync:','execSync','env','../../bin/utils/logPatcher','iDIAR','FJNOQ','vTXzn','path','format','ZQKAC','body','yluhD','TIWGL','Acvce','GQbiF','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','Content-Type','\x20:\x20','keys','bs:addPlatformDetails:','length','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','test','patchConsoleLogger','getPlatformVersion','WdnkJ','Visit\x20','printBuildLink','darwin','gmoVt','BS_TESTOPS_BUILD_HASHED_ID','DJzVO','https','prefixTestPath','LVXbQ','util','now','linux','CODECEPT_CUCUMBER','zqndr','local_grid','kCBQa','kaAQf','turboscale','WVULB','OQIym','dist','getFrameworkVersion','XvXOF','BlFCc','Uploading\x20trace\x20logs\x20to:\x20','prefix','lodash','undefined','6120560rVDYgh','^CUSTOM_TAG_\x5cd+$','default','JEST','../../bin/v2/browserstackCLI','winstonLogger','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','qaAeq','then','win32','message','modifyReqForTraceUpload','getPackageVersion','UnhandledError','@playwright/test','maxTotalSockets','UeqEZ','UufTO','capabilities','SrxkF','5|3|4|0|1|2','relative','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','filter','silly','http','ZSibP','getCapabilities','../helper','VTEIo','push','liSBG','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','sqFHt','buildTag','ftgfi','getSession','BROWSERSTACK_TESTHUB_JWT','ZXoBL','RewRz','headers','GEZiL','LpjcU','object','OLFbc','LogCreated','binoE','config','PQYdi','CUSTOM_TAG','EEQFx','lRzfQ','IVmWC','getObservabilityLinkedProductName','trim','removeAnsiColors','platform','lgwZX','BROWSERSTACK_TEST_OBSERVABILITY_YML','CUCUMBER','split','AssertionError','getFailureType','uHpNt','windows-release','null','SVvAg','spy','BROWSERSTACK_RERUN_TESTS','error','hVDLP','mocha','MOCHA','TQCAV','isArray','keepAlive','../../helpers/request-spy','backtrace','application/json','BROWSERSTACK_TEST_OBSERVABILITY','GLBPb','data','map','Failed\x20to\x20determine\x20product\x20linked\x20to\x20Observability\x20test\x20instance\x20:\x20','emit','isUndefined','customTag','Aonmm','OS\x20X','readConfig','automate','test_run_uuid','Gwgfm','[%s][\x20OBSERVABILITY\x20]\x20Build\x20Not\x20Found\x20%s','/builds/','lYNSj','O11yHashedID','stringify','rErvv','getPlatform','Bearer\x20','ojfrl','Linux','4304812boPPOd','stack','sWiyZ','308112heVuaE','Error\x20in\x20getting\x20Linux\x20Details','maxSockets','fJryl','formData','47361195pcnYjJ','../performance/constants','911197zvOUJq','Onuym','platformName','PRINT_BUILDLINK','./constants','includes','][\x20OBSERVABILITY\x20]\x20','FGFWx','hJqol','browserstack','HUB_URL_REGEX','addRequestSpy','shouldReRunObservabilityTests','yIiQi','asyncAwaitNodeReq','cgTQr','match','HTTP','getPlatformDetails','RFhLP','extractValuesWithRegexKeyMatch','bstack:options','QuHPJ','git-repo-info','debug','logs','pid','koAGD','parseFileNames','Agent','getDefaultHeaders','BROWSERSTACK_OBSERVABILITY_DEBUG','GiIYS','expanded','info','true','platformVersion','YRHLz','ATS_HUB_URL_REGEX','../logger','ZWonC','failureData','catch','oGLfl','JBarX','host','huRHA','kLVTm','agent','url','2BfvkUc','getBrowserVersion','X-BSTACK-TESTOPS','WUexK','getAccessKey','DxKXp','toJSON','KZRvC','TEST_OBSERVABILITY_BUILD_TAG','trace','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','map_','xqUMq','@cucumber/cucumber','ZYype','sleep','hostname','SrAGB','uTQFu','measureWrapper','jjQcF','CODECEPT','Vdsjy','fqmfG','1247973LPhqpI'];a117_0x3a84=function(){return _0x3f46dd;};return a117_0x3a84();}const a117_0x5d09d2={};a117_0x5d09d2[a117_0x2e4d4b(0x26e)]=!![],a117_0x5d09d2['timeout']=0xea60,a117_0x5d09d2[a117_0x2e4d4b(0x17b)]=0x2,a117_0x5d09d2[a117_0x2e4d4b(0x232)]=0x2;const httpKeepAliveAgent=new http[(a117_0x2e4d4b(0x19d))](a117_0x5d09d2),a117_0x8d0dec={};a117_0x8d0dec[a117_0x2e4d4b(0x26e)]=!![],a117_0x8d0dec[a117_0x2e4d4b(0x1d7)]=0xea60,a117_0x8d0dec['maxSockets']=0x2,a117_0x8d0dec['maxTotalSockets']=0x2;const httpsKeepAliveAgent=new https[(a117_0x2e4d4b(0x19d))](a117_0x8d0dec),a117_0x31ba0d={};a117_0x31ba0d[a117_0x2e4d4b(0x26e)]=!![],a117_0x31ba0d[a117_0x2e4d4b(0x1d7)]=0xea60,a117_0x31ba0d[a117_0x2e4d4b(0x17b)]=0x2,a117_0x31ba0d[a117_0x2e4d4b(0x232)]=0x2;const httpScreenshotsKeepAliveAgent=new http[(a117_0x2e4d4b(0x19d))](a117_0x31ba0d),a117_0x2b1669={};a117_0x2b1669[a117_0x2e4d4b(0x26e)]=!![],a117_0x2b1669[a117_0x2e4d4b(0x1d7)]=0xea60,a117_0x2b1669[a117_0x2e4d4b(0x17b)]=0x2,a117_0x2b1669['maxTotalSockets']=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a117_0x2e4d4b(0x19d))](a117_0x2b1669);exports[a117_0x2e4d4b(0x18c)]=()=>{const _0x2da9bd=a117_0x2e4d4b,_0x1f9290={};_0x1f9290['WdnkJ']=function(_0x19b498,_0x42d7f7){return _0x19b498!==_0x42d7f7;},_0x1f9290[_0x2da9bd(0x269)]=_0x2da9bd(0x264);const _0x774c70=_0x1f9290;return process['env'][_0x2da9bd(0x267)]&&_0x774c70[_0x2da9bd(0x206)](process[_0x2da9bd(0x1ef)][_0x2da9bd(0x267)],_0x774c70['hVDLP'])?!![]:![];},exports[a117_0x2e4d4b(0x1d8)]=()=>{const _0x44ff29=a117_0x2e4d4b,_0x4faa35={};_0x4faa35[_0x44ff29(0x20f)]=function(_0x304e6e,_0x433dbf){return _0x304e6e===_0x433dbf;},_0x4faa35['lgwZX']=_0x44ff29(0x1a3);const _0x54020a=_0x4faa35;let _0x5ec787=!![];return process[_0x44ff29(0x1ef)]['BROWSERSTACK_TEST_OBSERVABILITY_YML']&&(_0x5ec787=_0x54020a[_0x44ff29(0x20f)](process['env'][_0x44ff29(0x25d)],_0x54020a[_0x44ff29(0x25c)])),process[_0x44ff29(0x1ef)][_0x44ff29(0x272)]&&(_0x5ec787=_0x54020a[_0x44ff29(0x20f)](process[_0x44ff29(0x1ef)]['BROWSERSTACK_TEST_OBSERVABILITY'],_0x54020a['lgwZX'])),_0x5ec787;},exports[a117_0x2e4d4b(0x19c)]=_0x40c30e=>{const _0x7964a9=a117_0x2e4d4b;if(bsSetupHelper[_0x7964a9(0x278)](_0x40c30e))return undefined;try{return _0x40c30e[_0x7964a9(0x259)]()[_0x7964a9(0x25f)](',');}catch(_0x469f6f){return undefined;}},exports[a117_0x2e4d4b(0x208)]=()=>{const _0x5814de=a117_0x2e4d4b,_0x51a5be={'VTEIo':function(_0x26fb6d,_0x36e433){return _0x26fb6d(_0x36e433);},'lYNSj':_0x5814de(0x227),'BlFCc':function(_0x8dcb05,_0x51818f){return _0x8dcb05!==_0x51818f;},'GLBPb':_0x5814de(0x264),'EEQFx':_0x5814de(0x222),'OQIym':_0x5814de(0x16c)};return PerformanceTester[_0x5814de(0x1c5)](PerformanceO11yEvents[_0x5814de(0x183)],async()=>{const _0xb6962c=_0x5814de;try{const _0x23700d=_0x51a5be[_0xb6962c(0x240)](require,_0x51a5be[_0xb6962c(0x16e)]);if(_0x23700d[_0xb6962c(0x16f)]){logger['info'](_0xb6962c(0x207)+O11Y_URL+_0xb6962c(0x16d)+_0x23700d['O11yHashedID']+_0xb6962c(0x229));return;}process[_0xb6962c(0x1ef)][_0xb6962c(0x20b)]&&_0x51a5be[_0xb6962c(0x21e)](process['env'][_0xb6962c(0x20b)],_0x51a5be[_0xb6962c(0x273)])&&_0x51a5be['BlFCc'](process['env']['BS_TESTOPS_BUILD_HASHED_ID'],_0x51a5be[_0xb6962c(0x255)])&&logger[_0xb6962c(0x1a2)](_0xb6962c(0x207)+constants['O11Y_URL']+_0xb6962c(0x16d)+process[_0xb6962c(0x1ef)]['BS_TESTOPS_BUILD_HASHED_ID']+_0xb6962c(0x229));}catch(_0x120130){logger['error'](util[_0xb6962c(0x1f5)](_0x51a5be[_0xb6962c(0x21a)],new Date()[_0xb6962c(0x1d3)](),_0x120130['stack']||_0x120130['message']||_0x120130));}})();},exports[a117_0x2e4d4b(0x261)]=_0x51a94d=>{const _0x35936c=a117_0x2e4d4b,_0x5c64bb={};_0x5c64bb['rPDEV']=_0x35936c(0x260),_0x5c64bb[_0x35936c(0x1f2)]=_0x35936c(0x230);const _0x3ba9e9=_0x5c64bb;if(!_0x51a94d)return null;return _0x51a94d['toString']()[_0x35936c(0x190)](/AssertionError/)?_0x3ba9e9['rPDEV']:_0x3ba9e9[_0x35936c(0x1f2)];},exports[a117_0x2e4d4b(0x21c)]=_0x19471e=>{const _0xdfb4ea=a117_0x2e4d4b,_0x5d0a74={};_0x5d0a74[_0xdfb4ea(0x187)]=_0xdfb4ea(0x26a),_0x5d0a74[_0xdfb4ea(0x1c9)]=_0xdfb4ea(0x231),_0x5d0a74[_0xdfb4ea(0x1b7)]='codeceptjs',_0x5d0a74['zqndr']='jest',_0x5d0a74[_0xdfb4ea(0x1c0)]=_0xdfb4ea(0x1bf);const _0x183798=_0x5d0a74;let _0x32a225=null;switch(_0x19471e){case FRAMEWORKS[_0xdfb4ea(0x26b)]:_0x32a225=bsSetupHelper['getPackageVersion'](_0x183798['FGFWx']);break;case FRAMEWORKS['PLAYWRIGHT']:_0x32a225=bsSetupHelper['getPackageVersion'](_0x183798[_0xdfb4ea(0x1c9)]);break;case FRAMEWORKS[_0xdfb4ea(0x1c7)]:case FRAMEWORKS[_0xdfb4ea(0x213)]:_0x32a225=bsSetupHelper[_0xdfb4ea(0x22f)](_0x183798[_0xdfb4ea(0x1b7)]);break;case FRAMEWORKS[_0xdfb4ea(0x226)]:_0x32a225=bsSetupHelper['getPackageVersion'](_0x183798[_0xdfb4ea(0x214)]);break;case FRAMEWORKS[_0xdfb4ea(0x25e)]:_0x32a225=bsSetupHelper[_0xdfb4ea(0x22f)](_0x183798[_0xdfb4ea(0x1c0)]);break;default:break;}return _0x32a225;},exports[a117_0x2e4d4b(0x1d2)]=_0x2f0159=>{const _0x581451=a117_0x2e4d4b;let _0x28e47f=null;switch(_0x2f0159){case FRAMEWORKS['PLAYWRIGHT']:_0x28e47f=process[_0x581451(0x1ef)]['BROWSERSTACK_CONFIG_FILE_PATH'];break;}if(!_0x28e47f)return;return bsSetupHelper[_0x581451(0x27c)](_0x28e47f,![]);},exports[a117_0x2e4d4b(0x1cc)]=_0x2eafde=>{const _0x5dcc62=a117_0x2e4d4b;return{'username':bsSetupHelper['getUserName'](_0x2eafde),'accessKey':bsSetupHelper[_0x5dcc62(0x1b6)](_0x2eafde)};},exports[a117_0x2e4d4b(0x22e)]=(_0x590908,_0x3b0e8a)=>{const _0x2f1fde=a117_0x2e4d4b,_0x56a974={};_0x56a974[_0x2f1fde(0x18f)]=_0x2f1fde(0x237),_0x56a974['koAGD']=_0x2f1fde(0x250),_0x56a974[_0x2f1fde(0x24a)]='TEST_ATTACHMENT';const _0x34b5c0=_0x56a974,_0x104acd=_0x34b5c0[_0x2f1fde(0x18f)][_0x2f1fde(0x25f)]('|');let _0x505b77=0x0;while(!![]){switch(_0x104acd[_0x505b77++]){case'0':delete _0x590908['body'];continue;case'1':delete _0x590908[_0x2f1fde(0x1d1)];continue;case'2':delete _0x3b0e8a[_0x2f1fde(0x24b)];continue;case'3':if(!_0x590908[_0x2f1fde(0x1f7)][0x0]||!_0x590908[_0x2f1fde(0x1f7)][0x0][_0x2f1fde(0x199)]||!_0x590908[_0x2f1fde(0x1f7)][0x0][_0x2f1fde(0x199)][_0x2f1fde(0x201)])return;continue;case'4':_0x590908[_0x2f1fde(0x17d)]={'data':_0x590908[_0x2f1fde(0x1f7)][0x0]['logs'][0x0][_0x2f1fde(0x274)],'test_run_uuid':_0x590908['body'][0x0]['logs'][0x0][_0x2f1fde(0x27e)],'event_type':_0x34b5c0[_0x2f1fde(0x19b)],'kind':_0x34b5c0['RewRz'],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x2f1fde(0x1d3)](),'fileName':_0x590908[_0x2f1fde(0x1f7)][0x0]['logs'][0x0]['fileName']};continue;case'5':if(!_0x590908[_0x2f1fde(0x1f7)]||!Array[_0x2f1fde(0x26d)](_0x590908['body']))return;continue;}break;}},exports[a117_0x2e4d4b(0x18e)]=async(_0x952003,_0x8e1a74,_0x3f0785,_0x13c43b,_0x19c4c5=!![])=>{const _0xeef414=a117_0x2e4d4b,_0x6456d={};_0x6456d[_0xeef414(0x24f)]=function(_0xe78194,_0x46849a){return _0xe78194===_0x46849a;},_0x6456d['MwzGp']='Content-Type',_0x6456d[_0xeef414(0x174)]='application/json',_0x6456d[_0xeef414(0x188)]=_0xeef414(0x20d),_0x6456d[_0xeef414(0x249)]=function(_0x503dc4,_0x41681e){return _0x503dc4!==_0x41681e;},_0x6456d[_0xeef414(0x21d)]=_0xeef414(0x24e),_0x6456d[_0xeef414(0x1ab)]=_0xeef414(0x1bc);const _0x754e71=_0x6456d,_0xbac42f={..._0x13c43b,...{'method':_0x952003,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x8e1a74,'body':_0x3f0785,'json':_0x754e71[_0xeef414(0x24f)](_0x13c43b[_0xeef414(0x24b)][_0x754e71['MwzGp']],_0x754e71[_0xeef414(0x174)]),'agent':API_URL[_0xeef414(0x185)](_0x754e71['hJqol'])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x754e71[_0xeef414(0x24f)](_0x8e1a74,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0xbac42f[_0xeef414(0x1b0)]=API_URL['includes'](_0x754e71['hJqol'])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports[_0xeef414(0x22e)](_0xbac42f,_0x13c43b),logger[_0xeef414(0x198)](_0xeef414(0x21f)+_0xbac42f[_0xeef414(0x1b1)]));try{const {statusCode:_0x301b23,body:_0x55ba19}=await bsSetupHelper['nodeRequest'](_0x952003,_0x8e1a74,_0xbac42f,_0x13c43b,_0xbac42f[_0xeef414(0x1b1)]);if(_0x754e71[_0xeef414(0x249)](_0x301b23,0xc8))return _0x55ba19?_0x55ba19:_0xeef414(0x243)+_0x301b23;let _0xbf665b=_0x55ba19;if(_0x19c4c5)try{_0x754e71[_0xeef414(0x249)](typeof _0x55ba19,_0x754e71['XvXOF'])&&(_0xbf665b=JSON[_0xeef414(0x1e7)](_0x55ba19));}catch(_0x3370ad){logger[_0xeef414(0x268)](_0x754e71[_0xeef414(0x1ab)],_0x55ba19,util[_0xeef414(0x1f5)](_0x3370ad));}const _0x5b069b={};return _0x5b069b[_0xeef414(0x274)]=_0xbf665b,_0x5b069b;}catch(_0x35d191){logger[_0xeef414(0x268)]('Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20'+util[_0xeef414(0x1f5)](_0x35d191));throw _0x35d191;}},exports[a117_0x2e4d4b(0x1e0)]=(_0x498ce8,_0x11d354,_0x450dfc,_0x54a8bc,_0x958ad6=!![])=>{const _0x506073=a117_0x2e4d4b,_0x2701db={'ZQKAC':function(_0x56927a,_0x3418fe){return _0x56927a!==_0x3418fe;},'iDIAR':function(_0x44b849,_0x488275){return _0x44b849(_0x488275);},'qaAeq':'object','WVULB':function(_0x4dba31,_0x1fa490){return _0x4dba31(_0x1fa490);},'jpXIN':_0x506073(0x1fc),'Acvce':function(_0x31ffad,_0x5efd8b){return _0x31ffad===_0x5efd8b;},'YHyuO':_0x506073(0x1fd),'QuHPJ':_0x506073(0x271),'RFhLP':_0x506073(0x20d)};return new Promise((_0x4323de,_0x39efb3)=>{const _0x215743=_0x506073,_0x39611d={'GEZiL':function(_0x1092b8,_0x4582cc){const _0xb6765a=a117_0x1265;return _0x2701db[_0xb6765a(0x219)](_0x1092b8,_0x4582cc);}},_0x2e8ec0={..._0x54a8bc,...{'method':_0x498ce8,'url':API_URL+'/'+_0x11d354,'body':_0x450dfc,'json':_0x2701db[_0x215743(0x1fa)](_0x54a8bc[_0x215743(0x24b)][_0x2701db[_0x215743(0x1e9)]],_0x2701db[_0x215743(0x196)]),'agent':API_URL['includes'](_0x2701db[_0x215743(0x193)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x2701db['Acvce'](_0x11d354,SCREENSHOT_ENDPOINT)&&(_0x2e8ec0[_0x215743(0x1b0)]=API_URL['includes'](_0x2701db[_0x215743(0x193)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x215743(0x1e0)](_0x498ce8,_0x11d354,_0x2e8ec0,_0x54a8bc,API_URL)[_0x215743(0x22b)](({statusCode:_0x21c756,body:_0x11917b})=>{const _0x4af1cd=_0x215743;if(_0x2701db[_0x4af1cd(0x1f6)](_0x21c756,0xc8))_0x2701db[_0x4af1cd(0x1f1)](_0x39efb3,_0x11917b?_0x11917b:_0x4af1cd(0x243)+_0x21c756);else{if(_0x958ad6)try{_0x2701db[_0x4af1cd(0x1f6)](typeof _0x11917b,_0x2701db[_0x4af1cd(0x22a)])&&(_0x11917b=JSON[_0x4af1cd(0x1e7)](_0x11917b));}catch(_0x501db0){_0x2701db['WVULB'](_0x39efb3,_0x2701db['jpXIN']);return;}const _0xd1572={};_0xd1572[_0x4af1cd(0x274)]=_0x11917b,_0x2701db['WVULB'](_0x4323de,_0xd1572);}})[_0x215743(0x1aa)](_0x10795e=>{const _0x261929=_0x215743;_0x10795e&&_0x39611d[_0x261929(0x24c)](_0x39efb3,_0x10795e);});});},exports['getBuildTags']=_0x2785ec=>{const _0x37a978=a117_0x2e4d4b;if(process[_0x37a978(0x1ef)][_0x37a978(0x1ba)])return process[_0x37a978(0x1ef)][_0x37a978(0x1ba)][_0x37a978(0x25f)](',');if(_0x2785ec[_0x37a978(0x245)])return _0x2785ec['buildTag'];return[];},exports[a117_0x2e4d4b(0x19e)]=(_0x5c02ae=!![])=>{const _0x10215c=a117_0x2e4d4b,_0xae529e={};_0xae529e[_0x10215c(0x16b)]='application/json',_0xae529e[_0x10215c(0x1f3)]=_0x10215c(0x1a3),_0xae529e['gmoVt']='Authorization';const _0x417462=_0xae529e,_0x2276e0={};_0x2276e0[_0x10215c(0x1fd)]=_0x417462[_0x10215c(0x16b)],_0x2276e0[_0x10215c(0x1b4)]=_0x417462['vTXzn'];const _0x2cc52c=_0x2276e0;return _0x5c02ae&&process[_0x10215c(0x1ef)][_0x10215c(0x248)]&&(_0x2cc52c[_0x417462[_0x10215c(0x20a)]]=_0x10215c(0x173)+process[_0x10215c(0x1ef)][_0x10215c(0x248)]),_0x2cc52c;},exports[a117_0x2e4d4b(0x194)]=_0x4cd550=>{const _0x45cd61=a117_0x2e4d4b,_0x26cc12={};_0x26cc12[_0x45cd61(0x246)]=_0x45cd61(0x224);const _0x3fb1ae=_0x26cc12,_0x234ada=[],_0x2609e5=new RegExp(_0x3fb1ae['ftgfi'],'i');return Object[_0x45cd61(0x1ff)](_0x4cd550)[_0x45cd61(0x23a)](_0x4f412c=>_0x2609e5[_0x45cd61(0x203)](_0x4f412c))[_0x45cd61(0x1ce)](_0xefd4e5=>_0x234ada['push'](_0x4cd550[_0xefd4e5])),_0x234ada;},exports['getCustomTags']=_0x1edf8c=>{const _0xa0b629=a117_0x2e4d4b,_0x4b9102=[],_0x26b696=_0x1edf8c[_0xa0b629(0x279)]||process[_0xa0b629(0x1ef)][_0xa0b629(0x254)];return _0x26b696&&_0x4b9102[_0xa0b629(0x241)](_0x26b696),_0x4b9102['push'](...exports[_0xa0b629(0x194)](process[_0xa0b629(0x1ef)])),_0x4b9102[_0xa0b629(0x241)](...exports['extractValuesWithRegexKeyMatch'](_0x1edf8c)),_0x4b9102;},exports[a117_0x2e4d4b(0x25a)]=_0x3f1fc7=>{const _0x147a7f=a117_0x2e4d4b;if(!_0x3f1fc7)return'';return _0x3f1fc7[_0x147a7f(0x1d9)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a117_0x2e4d4b(0x1c1)]=(_0x2d525c=0x64)=>new Promise(_0x8e969=>setTimeout(_0x8e969,_0x2d525c));const getPlatformName=()=>{const _0x3d199f=a117_0x2e4d4b,_0x29e3eb={};_0x29e3eb[_0x3d199f(0x1b9)]=function(_0x13568d,_0x44f3e5){return _0x13568d===_0x44f3e5;},_0x29e3eb[_0x3d199f(0x1fb)]=_0x3d199f(0x22c),_0x29e3eb[_0x3d199f(0x251)]=_0x3d199f(0x1cd),_0x29e3eb[_0x3d199f(0x1ae)]=_0x3d199f(0x209),_0x29e3eb['SrAGB']=_0x3d199f(0x27b),_0x29e3eb[_0x3d199f(0x27a)]=_0x3d199f(0x212),_0x29e3eb['sNhAO']=_0x3d199f(0x175),_0x29e3eb[_0x3d199f(0x1a8)]='Unknown';const _0x30453a=_0x29e3eb;if(_0x30453a[_0x3d199f(0x1b9)](process[_0x3d199f(0x25b)],_0x30453a[_0x3d199f(0x1fb)]))return _0x30453a[_0x3d199f(0x251)];if(_0x30453a[_0x3d199f(0x1b9)](process[_0x3d199f(0x25b)],_0x30453a[_0x3d199f(0x1ae)]))return _0x30453a[_0x3d199f(0x1c3)];if(_0x30453a[_0x3d199f(0x1b9)](process[_0x3d199f(0x25b)],_0x30453a[_0x3d199f(0x27a)]))return _0x30453a['sNhAO'];return _0x30453a[_0x3d199f(0x1a8)];},getMacOSVersion=()=>{const _0x30d01e=a117_0x2e4d4b,_0x984ced={};_0x984ced['YRHLz']='awk\x20\x27/SOFTWARE\x20LICENSE\x20AGREEMENT\x20FOR\x20macOS/\x27\x20\x27/System/Library/CoreServices/Setup\x20Assistant.app/Contents/Resources/en.lproj/OSXSoftwareLicense.rtf\x27\x20|\x20awk\x20-F\x20\x27macOS\x20\x27\x20\x27{print\x20$NF}\x27\x20|\x20awk\x20\x27{print\x20substr($0,\x200,\x20length($0)-1)}\x27';const _0x484525=_0x984ced;return child_process[_0x30d01e(0x1ee)](_0x484525[_0x30d01e(0x1a5)])[_0x30d01e(0x1eb)]()[_0x30d01e(0x259)]();},getLinuxDetails=()=>{const _0x1c4414={'esPju':function(_0x4b24c2,_0x30ce00){return _0x4b24c2(_0x30ce00);},'IVmWC':function(_0x250764,_0x34defd){return _0x250764(_0x34defd);}};return new Promise((_0x18b5dc,_0x4521e0)=>{const _0x37a502=a117_0x1265,_0x3b1f67={'liSBG':function(_0x22af21,_0x16da65){return _0x1c4414['esPju'](_0x22af21,_0x16da65);}};_0x1c4414[_0x37a502(0x257)](getos,(_0x251b91,_0x14b257)=>{const _0x2f5eed=_0x37a502;if(_0x251b91)return _0x3b1f67[_0x2f5eed(0x242)](_0x4521e0,_0x251b91);_0x3b1f67[_0x2f5eed(0x242)](_0x18b5dc,_0x14b257);});});};function a117_0x1265(_0x22e8cf,_0x4982de){const _0x3a8492=a117_0x3a84();return a117_0x1265=function(_0x1265e5,_0x55a572){_0x1265e5=_0x1265e5-0x16b;let _0x3e9aa1=_0x3a8492[_0x1265e5];return _0x3e9aa1;},a117_0x1265(_0x22e8cf,_0x4982de);}exports[a117_0x2e4d4b(0x192)]=async()=>{const _0x2f9e6a=a117_0x2e4d4b,_0x128261={'uHpNt':function(_0x3b2b25){return _0x3b2b25();},'UufTO':_0x2f9e6a(0x27b),'DJzVO':function(_0xcdb7ce){return _0xcdb7ce();},'PQYdi':_0x2f9e6a(0x1cd),'jjQcF':_0x2f9e6a(0x263),'kCBQa':function(_0x193c70){return _0x193c70();},'UeqEZ':_0x2f9e6a(0x175),'vqshs':function(_0x55d665){return _0x55d665();},'AOzzo':_0x2f9e6a(0x17a)};let _0x513f66=_0x128261[_0x2f9e6a(0x262)](getPlatformName),_0x1bfac8=os[_0x2f9e6a(0x1e1)]()[_0x2f9e6a(0x1eb)]();switch(_0x513f66){case _0x128261[_0x2f9e6a(0x234)]:_0x1bfac8=_0x128261[_0x2f9e6a(0x20c)](getMacOSVersion);break;case _0x128261[_0x2f9e6a(0x253)]:try{const _0xef8d5d=(await import(_0x128261[_0x2f9e6a(0x1c6)]))[_0x2f9e6a(0x225)];_0x1bfac8=_0x128261[_0x2f9e6a(0x216)](_0xef8d5d);}catch(_0x1e6c43){exports[_0x2f9e6a(0x198)]('Error\x20in\x20importing\x20windows-release\x20'+_0x1e6c43[_0x2f9e6a(0x1eb)]());}break;case _0x128261[_0x2f9e6a(0x233)]:try{const _0x4a3452=await _0x128261[_0x2f9e6a(0x1da)](getLinuxDetails);_0x4a3452[_0x2f9e6a(0x21b)]&&(_0x513f66=_0x4a3452[_0x2f9e6a(0x21b)]),_0x4a3452[_0x2f9e6a(0x1e1)]&&(_0x1bfac8=_0x4a3452[_0x2f9e6a(0x1e1)][_0x2f9e6a(0x1eb)]());}catch(_0x1be910){exports[_0x2f9e6a(0x198)](_0x128261[_0x2f9e6a(0x1d5)]);}break;default:break;}const _0x49f2af={};return _0x49f2af[_0x2f9e6a(0x182)]=_0x513f66,_0x49f2af[_0x2f9e6a(0x1a4)]=_0x1bfac8,_0x49f2af;},exports[a117_0x2e4d4b(0x1a9)]=(_0x4955e6,_0x1ff281)=>{const _0x336b10=a117_0x2e4d4b,_0x4e9889={};_0x4e9889[_0x336b10(0x265)]=function(_0x2d8f23,_0x51bd52){return _0x2d8f23===_0x51bd52;},_0x4e9889['ojJgz']='test',_0x4e9889[_0x336b10(0x18d)]=function(_0x36eab3,_0x40272d){return _0x36eab3===_0x40272d;},_0x4e9889['RCtgi']=_0x336b10(0x1e8);const _0x2e8fc4=_0x4e9889;if(!_0x4955e6)return[];try{if(_0x2e8fc4[_0x336b10(0x265)](_0x1ff281,_0x2e8fc4[_0x336b10(0x1cb)]))return _0x4955e6[_0x336b10(0x275)](_0x26d886=>{const _0xfb675a=_0x336b10,{stack:_0x9123a4,..._0x1fad80}=_0x26d886,_0x10a82b=Object[_0xfb675a(0x1ff)](_0x1fad80)[_0xfb675a(0x275)](_0x4ca35d=>{return _0x4ca35d+':\x20'+_0x1fad80[_0x4ca35d];}),_0x544df6=_0x9123a4?exports['removeAnsiColors'](_0x9123a4)[_0xfb675a(0x25f)](/\r?\n/):[exports[_0xfb675a(0x25a)](_0x26d886['message'])],_0x350093={};return _0x350093['backtrace']=_0x544df6,_0x350093[_0xfb675a(0x1a1)]=_0x10a82b,_0x350093;});else{if(_0x2e8fc4['yIiQi'](_0x1ff281,_0x2e8fc4['RCtgi'])){const _0x5889c9=[],_0x53f87d=[];return Object[_0x336b10(0x1ff)](_0x4955e6)[_0x336b10(0x1ce)](_0x18a5f7=>{const _0x188895=_0x336b10;try{_0x53f87d[_0x188895(0x241)](_0x18a5f7+':\x20'+_0x4955e6[_0x18a5f7]);}catch(_0x288ada){exports[_0x188895(0x198)](_0x188895(0x239)+_0x288ada[_0x188895(0x22d)]+_0x188895(0x1fe)+_0x288ada['backtrace']);}}),_0x5889c9[_0x336b10(0x241)]({'backtrace':exports[_0x336b10(0x25a)](_0x4955e6[_0x336b10(0x177)])[_0x336b10(0x25f)](/\r?\n/),'expanded':_0x53f87d}),_0x5889c9;}}return[];}catch(_0xab7f1f){exports[_0x336b10(0x198)]('Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20'+_0xab7f1f[_0x336b10(0x22d)]+_0x336b10(0x1fe)+_0xab7f1f[_0x336b10(0x270)]);}return[];};class PathHelper{constructor(_0x5caeeb,_0x5762a9){const _0x2d68c9=a117_0x2e4d4b;this[_0x2d68c9(0x252)]=_0x5caeeb,this[_0x2d68c9(0x220)]=_0x5762a9;}[a117_0x2e4d4b(0x1e6)](_0x5f195e){const _0x5b5816=a117_0x2e4d4b,_0x100aa0=this[_0x5b5816(0x252)]['cwd']||this[_0x5b5816(0x252)]['rootDir'];return path[_0x5b5816(0x238)](_0x100aa0,_0x5f195e);}[a117_0x2e4d4b(0x20e)](_0x34e086){const _0x368bbf=a117_0x2e4d4b,_0x54f106=this[_0x368bbf(0x1e6)](_0x34e086);return this[_0x368bbf(0x220)]?path['join'](this[_0x368bbf(0x220)],_0x54f106):_0x54f106;}}exports[a117_0x2e4d4b(0x1de)]=PathHelper,exports[a117_0x2e4d4b(0x18b)]=(_0xf4b336=!![])=>{const _0x532c17=a117_0x2e4d4b,_0xc4b996={};_0xc4b996[_0x532c17(0x1ec)]=function(_0xf2a78f,_0x337106){return _0xf2a78f===_0x337106;},_0xc4b996[_0x532c17(0x1ac)]=_0x532c17(0x1b4),_0xc4b996[_0x532c17(0x1af)]=_0x532c17(0x1a3),_0xc4b996[_0x532c17(0x1f9)]=_0x532c17(0x191),_0xc4b996[_0x532c17(0x181)]=_0x532c17(0x189),_0xc4b996[_0x532c17(0x1a0)]=_0x532c17(0x215);const _0x1eefc5=_0xc4b996;requestSpy[_0x532c17(0x266)]((_0x25e725,_0x5a5b30)=>{const _0x23cebf=_0x532c17;_0x5a5b30&&!(_0x5a5b30['headers']&&_0x1eefc5[_0x23cebf(0x1ec)](_0x5a5b30[_0x23cebf(0x24b)][_0x1eefc5['JBarX']],_0x1eefc5[_0x23cebf(0x1af)]))&&(_0x5a5b30[_0x23cebf(0x1ad)]=_0x5a5b30[_0x23cebf(0x1c2)],delete _0x5a5b30[_0x23cebf(0x1c2)],_0xf4b336&&process[_0x23cebf(0x277)]('bs:addLog:'+process['pid'],{'timestamp':new Date()[_0x23cebf(0x1d3)](),'level':null,'message':null,'kind':_0x1eefc5[_0x23cebf(0x1f9)],'http_response':_0x5a5b30})),_0x5a5b30&&(constants[_0x23cebf(0x18a)][_0x23cebf(0x203)](_0x5a5b30['host'])||constants[_0x23cebf(0x1a6)][_0x23cebf(0x203)](_0x5a5b30[_0x23cebf(0x1ad)]))?global['__cloud_provider___']=_0x1eefc5[_0x23cebf(0x181)]:global[_0x23cebf(0x1dd)]=_0x1eefc5['GiIYS'];});},exports[a117_0x2e4d4b(0x204)]=()=>{const _0x4e119c=a117_0x2e4d4b,_0x5c3650={'zfVXw':function(_0x14a732,_0x56b7e7){return _0x14a732(_0x56b7e7);}};console={},Object[_0x4e119c(0x1ff)](consoleHolder)['forEach'](_0xcb0a87=>{_0x5c3650['zfVXw'](isFunction,consoleHolder[_0xcb0a87])?console[_0xcb0a87]=(..._0x6babcb)=>{try{!Object['keys'](BSTestOpsPatcher)['includes'](_0xcb0a87)?consoleHolder[_0xcb0a87](..._0x6babcb):BSTestOpsPatcher[_0xcb0a87](..._0x6babcb);}catch(_0x56db20){consoleHolder[_0xcb0a87](..._0x6babcb);}}:console[_0xcb0a87]=consoleHolder[_0xcb0a87];});},exports[a117_0x2e4d4b(0x1e2)]=()=>a117_0x2e4d4b(0x1e3)+JSON[a117_0x2e4d4b(0x170)]({'action':'annotate','arguments':{'data':a117_0x2e4d4b(0x1ed)+Date[a117_0x2e4d4b(0x211)](),'level':a117_0x2e4d4b(0x198)}}),exports[a117_0x2e4d4b(0x258)]=_0x356c6a=>{const _0x1e8e88=a117_0x2e4d4b,_0x83f6c5={};_0x83f6c5[_0x1e8e88(0x178)]=function(_0x3c55de,_0x134a98){return _0x3c55de===_0x134a98;},_0x83f6c5['LpjcU']=_0x1e8e88(0x189),_0x83f6c5[_0x1e8e88(0x1c4)]=_0x1e8e88(0x1db),_0x83f6c5['sqFHt']='app',_0x83f6c5[_0x1e8e88(0x1cf)]=function(_0x5745ea,_0x59f434){return _0x5745ea>_0x59f434;},_0x83f6c5[_0x1e8e88(0x1be)]='app-automate',_0x83f6c5['SrxkF']=_0x1e8e88(0x195),_0x83f6c5['TQCAV']='turboScaleGridDetails',_0x83f6c5[_0x1e8e88(0x1c8)]=_0x1e8e88(0x218),_0x83f6c5[_0x1e8e88(0x217)]=_0x1e8e88(0x27d);const _0x5c2f6e=_0x83f6c5;let _0x5141a6=null;try{if(_0x5c2f6e[_0x1e8e88(0x178)](global['__cloud_provider___'],_0x5c2f6e[_0x1e8e88(0x24d)])){if(_0x356c6a[_0x5c2f6e['uTQFu']]||_0x356c6a[_0x5c2f6e['sqFHt']]||!bsSetupHelper['isUndefined'](global[_0x1e8e88(0x235)])&&_0x5c2f6e[_0x1e8e88(0x1cf)](global['capabilities'][_0x1e8e88(0x201)],0x0)&&(global[_0x1e8e88(0x235)][0x0][_0x5c2f6e[_0x1e8e88(0x244)]]||global[_0x1e8e88(0x235)][0x0][_0x5c2f6e[_0x1e8e88(0x1c4)]]))_0x5141a6=_0x5c2f6e[_0x1e8e88(0x1be)];else _0x356c6a[_0x5c2f6e[_0x1e8e88(0x236)]]&&_0x356c6a[_0x5c2f6e[_0x1e8e88(0x236)]][_0x5c2f6e[_0x1e8e88(0x26c)]]?_0x5141a6=_0x5c2f6e[_0x1e8e88(0x1c8)]:_0x5141a6=_0x5c2f6e['kaAQf'];}}catch(_0x4c2650){exports[_0x1e8e88(0x198)](_0x1e8e88(0x276)+_0x4c2650);}return _0x5141a6;},exports['sendPlatformDetails']=async(_0x35723c,_0x268ab4,_0x5423fa=![])=>{const _0x5373b7=a117_0x2e4d4b,_0x913469={};_0x913469[_0x5373b7(0x23d)]=function(_0x20596a,_0x14c2b4){return _0x20596a===_0x14c2b4;},_0x913469[_0x5373b7(0x17c)]='browserstack',_0x913469[_0x5373b7(0x256)]='unknown_grid',_0x913469[_0x5373b7(0x171)]='TEST_PLATFORM';const _0x2fc304=_0x913469;try{const _0xddb769=await _0x35723c[_0x5373b7(0x23e)](),_0x32398d=await _0x35723c[_0x5373b7(0x247)](),_0x2b7c46={},_0x427888=Object[_0x5373b7(0x1dc)](_0x32398d[_0x5373b7(0x23e)]()[_0x5373b7(0x1bd)]),_0x303d91={'product':exports[_0x5373b7(0x258)](_0x427888),'capabilities':_0x427888,'platform':_0xddb769[_0x5373b7(0x172)](),'platform_version':bsSetupHelper[_0x5373b7(0x205)](_0x2fc304[_0x5373b7(0x23d)](global['__cloud_provider___'],_0x2fc304[_0x5373b7(0x17c)])),'browser':_0xddb769['getBrowserName'](),'browser_version':_0xddb769[_0x5373b7(0x1b3)](),'session_id':_0x32398d[_0x5373b7(0x1b8)]()};global[_0x5373b7(0x1dd)]?_0x2b7c46[global['__cloud_provider___']]=_0x303d91:_0x2b7c46[_0x2fc304[_0x5373b7(0x256)]]=_0x303d91;if(_0x5423fa)return _0x2b7c46;process[_0x5373b7(0x277)](_0x5373b7(0x200)+process[_0x5373b7(0x19a)],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x2fc304['rErvv'],'http_response':_0x2b7c46,'uuid':_0x268ab4});}catch(_0x32db09){exports[_0x5373b7(0x198)](_0x5373b7(0x202)+_0x32db09);}},exports[a117_0x2e4d4b(0x1df)]=_0x51e656=>{return _0x51e656&&_0x51e656['toString']()['match'](/browserstack internal helper hook/);};
1
+ const a117_0x3545b4=a117_0x3454;(function(_0x2dedd3,_0x352559){const _0x1d1807=a117_0x3454,_0x178799=_0x2dedd3();while(!![]){try{const _0x57ace6=parseInt(_0x1d1807(0x14b))/0x1+parseInt(_0x1d1807(0x165))/0x2+-parseInt(_0x1d1807(0x135))/0x3+-parseInt(_0x1d1807(0xaf))/0x4*(parseInt(_0x1d1807(0x168))/0x5)+parseInt(_0x1d1807(0x16c))/0x6*(-parseInt(_0x1d1807(0x104))/0x7)+parseInt(_0x1d1807(0xfb))/0x8+-parseInt(_0x1d1807(0x156))/0x9*(-parseInt(_0x1d1807(0x14a))/0xa);if(_0x57ace6===_0x352559)break;else _0x178799['push'](_0x178799['shift']());}catch(_0x4eb167){_0x178799['push'](_0x178799['shift']());}}}(a117_0xd0f2,0xe365b));function a117_0xd0f2(){const _0x2595ee=['env','format','stringify','modifyReqForTraceUpload','catch','appium:app','AssertionError','BTnAh','uIZyo','mRkHc','Fhlmd','lodash','okFvv','headers','AMiPj','unknown_grid','TEST_OBSERVABILITY_BUILD_TAG','app','message','YFykv','agent','execSync','getSyncScript','XuvNQ','push','Error\x20in\x20importing\x20windows-release\x20','yayni','GFXLP','O11Y_URL','maxSockets','getBrowserVersion','isTestObservabilitySession','BUSWT','sDyim','forEach','Agent','browserstack','TEST_ATTACHMENT','RMTay','match','url','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','../../bin/utils/constants','nodeRequest','test','4188520QPfccP','sendPlatformDetails','SGkDv','BROWSERSTACK_TEST_OBSERVABILITY','QHBzM','yGCoU','platform','LogCreated','host','5049436TGTNsD','keys','win32','HTTP','backtrace','ydayo','PRINT_BUILDLINK','UEbLg','BROWSERSTACK_TEST_OBSERVABILITY_YML','hwEQR','gHyIP','llEGn','iAmCI','toISOString','][\x20OBSERVABILITY\x20]\x20','hcaIi','X-BSTACK-TESTOPS','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','qbOFR','__cloud_provider___','oIhiT','body','Content-Type','timeout','UnhandledError','SpJmx','toString','HUB_URL_REGEX','YluRn','ccmrn','../../bin/utils/logPatcher','/builds/','getCustomTags','relativeTestFilePath','XsxLh','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','platformName','Error\x20in\x20getting\x20Linux\x20Details','@cucumber/cucumber','aThMC','turboScaleGridDetails','\x20:\x20','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','prefixTestPath','oQXZK','cZtxY','expanded','dLpQi','fileName','295851VNTXmF','DqutA','IQTRA','DwTzy','linux','./constants','measureWrapper','json','getPackageVersion','mocha','trace','test_run_uuid','Linux','default','BROWSERSTACK_TESTHUB_JWT','uApji','error','BROWSERSTACK_CONFIG_FILE_PATH','pid','UeOwn','parse','27260YltURP','111202QSJlmE','Windows','uljsE','git-last-commit','clScC','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','fyhQi','https','UFRGb','ATS_HUB_URL_REGEX','8199tDBHCu','PathHelper','true','config','join','uGhpV','maxTotalSockets','[%s][\x20OBSERVABILITY\x20]\x20Build\x20Not\x20Found\x20%s','CUCUMBER','TRGjV','aPoXV','hostname','wXwWl','app-automate','undefined','706934VuVobn','debug','eLXLC','40skVCir','turboscale','uUNOX','split','12RYhNOQ','RpRIh','vFzCp','nnlir','capabilities','isUndefined','bUZHB','customTag','getDefaultHeaders','now','filter','getPlatformDetails','isInternalHook','platformVersion','emit','ZSXjY','getPlatform','getos','util','rootDir','silly','child_process','sHPmJ','CzhIN','PLAYWRIGHT','browserstack_executor:\x20','err','O11yHashedID','git-repo-info','HwSYQ','QKXaG','includes','object','VoTzk','lnUKm','getSession','isArray','ZLRPL','logs','BS_TESTOPS_BUILD_HASHED_ID','../../../src/bin/utils/constants','parseFileNames','../logger','pSeVD','jnevt','2|5|1|4|3|0','getFrameworkVersion','qOwLG','mQZyK','OS\x20X','TEST_PLATFORM','tiUWr','yKUSb','Authorization','application/json','hGySO','ZyPHi','winstonLogger','nEKjP','qdnps','keepAlive','ObservabilitySync:','AihCj','info','cwd','aVjVl','log','length','extractValuesWithRegexKeyMatch','formData','release','DLaEI','annotate','BROWSERSTACK_OBSERVABILITY_DEBUG','jest','null','DtECg','dist','stack','499444PrRQwV','asyncAwaitNodeReq','getCapabilities','sleep','prefix','^CUSTOM_TAG_\x5cd+$','trim','getBrowserStackConfig','replace','removeAnsiColors','NugSn','XehpJ','../helper','../../bin/v2/browserstackCLI','BROWSERSTACK_RERUN_TESTS','vOwHj','spy','JTWFT','CODECEPT','Failed\x20to\x20determine\x20product\x20linked\x20to\x20Observability\x20test\x20instance\x20:\x20','wtGKq','data','FsTod','BkYqQ','Scxex','Visit\x20','NwOQw','mjQbI','../../helpers/request-spy','cWFGc','NuDLZ'];a117_0xd0f2=function(){return _0x2595ee;};return a117_0xd0f2();}const fs=require('fs'),path=require('path'),gitLastCommit=require(a117_0x3545b4(0x14e)),getRepoInfo=require(a117_0x3545b4(0x7c)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a117_0x3545b4(0x13a)),http=require('http'),https=require('https'),child_process=require(a117_0x3545b4(0x181)),getos=require(a117_0x3545b4(0x17d)),os=require('os'),logger=require(a117_0x3545b4(0x8a))[a117_0x3545b4(0x99)],bsSetupHelper=require(a117_0x3545b4(0xbb)),requestSpy=require(a117_0x3545b4(0xcb)),constants=require(a117_0x3545b4(0xf8)),logPatcher=require(a117_0x3545b4(0x122)),util=require(a117_0x3545b4(0x17e)),{fileLogger}=require(a117_0x3545b4(0x8a)),PerformanceTester=require('../performance/performance-tester'),{isFunction}=require(a117_0x3545b4(0xd9)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require('../performance/constants'),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a117_0x3545b4(0x88));exports[a117_0x3545b4(0x13f)]=_0x4ce5ca=>{const _0x5f4f1c=a117_0x3545b4;fileLogger[_0x5f4f1c(0x180)]('['+new Date()[_0x5f4f1c(0x111)]()+_0x5f4f1c(0x112)+_0x4ce5ca);},exports['debug']=_0x3727e4=>{const _0x407a00=a117_0x3545b4,_0x2265a5={};_0x2265a5[_0x407a00(0xd8)]=function(_0x2e9917,_0x28ae62){return _0x2e9917===_0x28ae62;},_0x2265a5['yKUSb']=_0x407a00(0x158);const _0x44520f=_0x2265a5;fileLogger['debug']('['+new Date()[_0x407a00(0x111)]()+_0x407a00(0x112)+_0x3727e4),(_0x44520f['Fhlmd'](process[_0x407a00(0xce)][_0x407a00(0xa9)],_0x44520f[_0x407a00(0x94)])||_0x44520f['Fhlmd'](process['env'][_0x407a00(0xa9)],'1'))&&consoleHolder[_0x407a00(0xa2)]('\x0a['+new Date()[_0x407a00(0x111)]()+_0x407a00(0x112)+_0x3727e4+'\x0a');};const a117_0x5cefe1={};a117_0x5cefe1[a117_0x3545b4(0x9c)]=!![],a117_0x5cefe1[a117_0x3545b4(0x11b)]=0xea60,a117_0x5cefe1[a117_0x3545b4(0xeb)]=0x2,a117_0x5cefe1['maxTotalSockets']=0x2;const httpKeepAliveAgent=new http[(a117_0x3545b4(0xf1))](a117_0x5cefe1),a117_0x4da9cd={};a117_0x4da9cd[a117_0x3545b4(0x9c)]=!![],a117_0x4da9cd[a117_0x3545b4(0x11b)]=0xea60,a117_0x4da9cd[a117_0x3545b4(0xeb)]=0x2,a117_0x4da9cd['maxTotalSockets']=0x2;const httpsKeepAliveAgent=new https[(a117_0x3545b4(0xf1))](a117_0x4da9cd),a117_0x3d512f={};a117_0x3d512f['keepAlive']=!![],a117_0x3d512f[a117_0x3545b4(0x11b)]=0xea60,a117_0x3d512f[a117_0x3545b4(0xeb)]=0x2,a117_0x3d512f[a117_0x3545b4(0x15c)]=0x2;const httpScreenshotsKeepAliveAgent=new http['Agent'](a117_0x3d512f),a117_0x46babe={};a117_0x46babe['keepAlive']=!![],a117_0x46babe['timeout']=0xea60,a117_0x46babe[a117_0x3545b4(0xeb)]=0x2,a117_0x46babe[a117_0x3545b4(0x15c)]=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a117_0x3545b4(0xf1))](a117_0x46babe);exports['shouldReRunObservabilityTests']=()=>{const _0x39b088=a117_0x3545b4,_0xbaea5b={};_0xbaea5b[_0x39b088(0x90)]=function(_0x121048,_0x3c5d74){return _0x121048!==_0x3c5d74;},_0xbaea5b[_0x39b088(0xc9)]=_0x39b088(0xab);const _0x250909=_0xbaea5b;return process[_0x39b088(0xce)]['BROWSERSTACK_RERUN_TESTS']&&_0x250909[_0x39b088(0x90)](process[_0x39b088(0xce)][_0x39b088(0xbd)],_0x250909['NwOQw'])?!![]:![];},exports[a117_0x3545b4(0xed)]=()=>{const _0x3032bb=a117_0x3545b4,_0x45108c={};_0x45108c[_0x3032bb(0xe1)]=function(_0x258a5c,_0x55295d){return _0x258a5c===_0x55295d;},_0x45108c[_0x3032bb(0x152)]=_0x3032bb(0x158),_0x45108c[_0x3032bb(0x133)]=function(_0x445f6b,_0xa1540c){return _0x445f6b===_0xa1540c;};const _0x2f6aa2=_0x45108c;let _0x3f9dce=!![];return process[_0x3032bb(0xce)][_0x3032bb(0x10c)]&&(_0x3f9dce=_0x2f6aa2[_0x3032bb(0xe1)](process['env'][_0x3032bb(0x10c)],_0x2f6aa2[_0x3032bb(0x152)])),process[_0x3032bb(0xce)][_0x3032bb(0xfe)]&&(_0x3f9dce=_0x2f6aa2[_0x3032bb(0x133)](process[_0x3032bb(0xce)][_0x3032bb(0xfe)],_0x2f6aa2[_0x3032bb(0x152)])),_0x3f9dce;},exports[a117_0x3545b4(0x89)]=_0x28dc49=>{const _0x12ebd3=a117_0x3545b4;if(bsSetupHelper['isUndefined'](_0x28dc49))return undefined;try{return _0x28dc49[_0x12ebd3(0xb5)]()[_0x12ebd3(0x16b)](',');}catch(_0xa6fdb3){return undefined;}},exports['printBuildLink']=()=>{const _0x4a83d2=a117_0x3545b4,_0x54ffe4={'aPoXV':function(_0x50647f,_0x106188){return _0x50647f(_0x106188);},'IQTRA':_0x4a83d2(0xbc),'JTWFT':function(_0x477e8a,_0x310b24){return _0x477e8a!==_0x310b24;},'uApji':'null','XsxLh':_0x4a83d2(0x164),'uGhpV':_0x4a83d2(0x15d)};return PerformanceTester[_0x4a83d2(0x13b)](PerformanceO11yEvents[_0x4a83d2(0x10a)],async()=>{const _0x3f162c=_0x4a83d2;try{const _0x49cd5e=_0x54ffe4[_0x3f162c(0x160)](require,_0x54ffe4[_0x3f162c(0x137)]);if(_0x49cd5e[_0x3f162c(0x7b)]){logger['info'](_0x3f162c(0xc8)+O11Y_URL+_0x3f162c(0x123)+_0x49cd5e['O11yHashedID']+'\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a');return;}process[_0x3f162c(0xce)][_0x3f162c(0x87)]&&_0x54ffe4[_0x3f162c(0xc0)](process[_0x3f162c(0xce)][_0x3f162c(0x87)],_0x54ffe4[_0x3f162c(0x144)])&&_0x54ffe4[_0x3f162c(0xc0)](process[_0x3f162c(0xce)][_0x3f162c(0x87)],_0x54ffe4[_0x3f162c(0x126)])&&logger[_0x3f162c(0x9f)](_0x3f162c(0xc8)+constants[_0x3f162c(0xea)]+'/builds/'+process[_0x3f162c(0xce)]['BS_TESTOPS_BUILD_HASHED_ID']+_0x3f162c(0x150));}catch(_0x2f4dc6){logger[_0x3f162c(0x145)](util[_0x3f162c(0xcf)](_0x54ffe4[_0x3f162c(0x15b)],new Date()[_0x3f162c(0x111)](),_0x2f4dc6[_0x3f162c(0xae)]||_0x2f4dc6[_0x3f162c(0xe0)]||_0x2f4dc6));}})();},exports['getFailureType']=_0x576412=>{const _0xe1f86d=a117_0x3545b4,_0x35757b={};_0x35757b[_0xe1f86d(0x148)]=_0xe1f86d(0xd4),_0x35757b[_0xe1f86d(0x182)]=_0xe1f86d(0x11c);const _0x513969=_0x35757b;if(!_0x576412)return null;return _0x576412[_0xe1f86d(0x11e)]()['match'](/AssertionError/)?_0x513969[_0xe1f86d(0x148)]:_0x513969[_0xe1f86d(0x182)];},exports[a117_0x3545b4(0x8e)]=_0x598a39=>{const _0x1324d3=a117_0x3545b4,_0x3f34c9={};_0x3f34c9[_0x1324d3(0x121)]=_0x1324d3(0x13e),_0x3f34c9[_0x1324d3(0x113)]='@playwright/test',_0x3f34c9[_0x1324d3(0xca)]='codeceptjs',_0x3f34c9['BTnAh']=_0x1324d3(0xaa),_0x3f34c9[_0x1324d3(0x172)]=_0x1324d3(0x12a);const _0x1016b3=_0x3f34c9;let _0x1a3ae0=null;switch(_0x598a39){case FRAMEWORKS['MOCHA']:_0x1a3ae0=bsSetupHelper[_0x1324d3(0x13d)](_0x1016b3['ccmrn']);break;case FRAMEWORKS['PLAYWRIGHT']:_0x1a3ae0=bsSetupHelper[_0x1324d3(0x13d)](_0x1016b3[_0x1324d3(0x113)]);break;case FRAMEWORKS[_0x1324d3(0xc1)]:case FRAMEWORKS['CODECEPT_CUCUMBER']:_0x1a3ae0=bsSetupHelper[_0x1324d3(0x13d)](_0x1016b3[_0x1324d3(0xca)]);break;case FRAMEWORKS['JEST']:_0x1a3ae0=bsSetupHelper[_0x1324d3(0x13d)](_0x1016b3[_0x1324d3(0xd5)]);break;case FRAMEWORKS[_0x1324d3(0x15e)]:_0x1a3ae0=bsSetupHelper[_0x1324d3(0x13d)](_0x1016b3[_0x1324d3(0x172)]);break;default:break;}return _0x1a3ae0;},exports[a117_0x3545b4(0xb6)]=_0x2d6ac9=>{const _0x166fd5=a117_0x3545b4;let _0x568918=null;switch(_0x2d6ac9){case FRAMEWORKS[_0x166fd5(0x184)]:_0x568918=process['env'][_0x166fd5(0x146)];break;}if(!_0x568918)return;return bsSetupHelper['readConfig'](_0x568918,![]);},exports['getUserCredentials']=_0x1542bb=>{return{'username':bsSetupHelper['getUserName'](_0x1542bb),'accessKey':bsSetupHelper['getAccessKey'](_0x1542bb)};},exports[a117_0x3545b4(0xd1)]=(_0x3dc4a1,_0x5d26ba)=>{const _0x23974e=a117_0x3545b4,_0x52fad7={};_0x52fad7[_0x23974e(0xb9)]=_0x23974e(0x8d),_0x52fad7[_0x23974e(0xff)]=_0x23974e(0x102),_0x52fad7[_0x23974e(0x109)]=_0x23974e(0xf3);const _0x442fde=_0x52fad7,_0x2d36ca=_0x442fde['NugSn'][_0x23974e(0x16b)]('|');let _0x5c11ff=0x0;while(!![]){switch(_0x2d36ca[_0x5c11ff++]){case'0':delete _0x5d26ba['headers'];continue;case'1':_0x3dc4a1[_0x23974e(0xa5)]={'data':_0x3dc4a1[_0x23974e(0x119)][0x0][_0x23974e(0x86)][0x0]['data'],'test_run_uuid':_0x3dc4a1[_0x23974e(0x119)][0x0][_0x23974e(0x86)][0x0][_0x23974e(0x140)],'event_type':_0x442fde[_0x23974e(0xff)],'kind':_0x442fde[_0x23974e(0x109)],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x23974e(0x111)](),'fileName':_0x3dc4a1[_0x23974e(0x119)][0x0]['logs'][0x0][_0x23974e(0x134)]};continue;case'2':if(!_0x3dc4a1[_0x23974e(0x119)]||!Array[_0x23974e(0x84)](_0x3dc4a1[_0x23974e(0x119)]))return;continue;case'3':delete _0x3dc4a1[_0x23974e(0x13c)];continue;case'4':delete _0x3dc4a1['body'];continue;case'5':if(!_0x3dc4a1[_0x23974e(0x119)][0x0]||!_0x3dc4a1[_0x23974e(0x119)][0x0][_0x23974e(0x86)]||!_0x3dc4a1['body'][0x0]['logs'][_0x23974e(0xa3)])return;continue;}break;}},exports[a117_0x3545b4(0xb0)]=async(_0x19dffd,_0x189bdb,_0x4ca208,_0x1d63f1,_0xdbafad=!![])=>{const _0x17ca97=a117_0x3545b4,_0x1c1cb9={};_0x1c1cb9['YluRn']=function(_0x3cfef4,_0x3b4129){return _0x3cfef4===_0x3b4129;},_0x1c1cb9['HwSYQ']=_0x17ca97(0x11a),_0x1c1cb9[_0x17ca97(0xef)]=_0x17ca97(0x96),_0x1c1cb9[_0x17ca97(0xbe)]=_0x17ca97(0x153),_0x1c1cb9[_0x17ca97(0xdc)]=function(_0x5dd364,_0x3b7c73){return _0x5dd364===_0x3b7c73;},_0x1c1cb9[_0x17ca97(0xcd)]=function(_0x2f68a1,_0x431637){return _0x2f68a1!==_0x431637;},_0x1c1cb9[_0x17ca97(0xe8)]=function(_0x3476bd,_0x4888bc){return _0x3476bd!==_0x4888bc;},_0x1c1cb9[_0x17ca97(0x14d)]=_0x17ca97(0x80),_0x1c1cb9[_0x17ca97(0x8c)]=_0x17ca97(0x12e);const _0x5c2ebb=_0x1c1cb9,_0x40484d={..._0x1d63f1,...{'method':_0x19dffd,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x189bdb,'body':_0x4ca208,'json':_0x5c2ebb[_0x17ca97(0x120)](_0x1d63f1[_0x17ca97(0xdb)][_0x5c2ebb[_0x17ca97(0x7d)]],_0x5c2ebb[_0x17ca97(0xef)]),'agent':API_URL[_0x17ca97(0x7f)](_0x5c2ebb[_0x17ca97(0xbe)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x5c2ebb['AMiPj'](_0x189bdb,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x40484d[_0x17ca97(0xe2)]=API_URL[_0x17ca97(0x7f)](_0x5c2ebb[_0x17ca97(0xbe)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports['modifyReqForTraceUpload'](_0x40484d,_0x1d63f1),logger[_0x17ca97(0x166)]('Uploading\x20trace\x20logs\x20to:\x20'+_0x40484d[_0x17ca97(0xf6)]));try{const {statusCode:_0x153fbf,body:_0x3b5438}=await bsSetupHelper['nodeRequest'](_0x19dffd,_0x189bdb,_0x40484d,_0x1d63f1,_0x40484d[_0x17ca97(0xf6)]);if(_0x5c2ebb[_0x17ca97(0xcd)](_0x153fbf,0xc8))return _0x3b5438?_0x3b5438:'Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20'+_0x153fbf;let _0x12f075=_0x3b5438;if(_0xdbafad)try{_0x5c2ebb['yayni'](typeof _0x3b5438,_0x5c2ebb[_0x17ca97(0x14d)])&&(_0x12f075=JSON['parse'](_0x3b5438));}catch(_0x43fa67){logger['error'](_0x5c2ebb[_0x17ca97(0x8c)],_0x3b5438,util['format'](_0x43fa67));}const _0x1c73bf={};return _0x1c73bf[_0x17ca97(0xc4)]=_0x12f075,_0x1c73bf;}catch(_0x417031){logger[_0x17ca97(0x145)](_0x17ca97(0x151)+util[_0x17ca97(0xcf)](_0x417031));throw _0x417031;}},exports['nodeRequest']=(_0x24ba86,_0x481c4d,_0xc7821,_0x27fd15,_0x54f154=!![])=>{const _0x49420a=a117_0x3545b4,_0x1f23c3={'AihCj':function(_0x5c81c2,_0x4e7fc9){return _0x5c81c2!==_0x4e7fc9;},'CzhIN':function(_0x3beef5,_0x865812){return _0x3beef5(_0x865812);},'tiUWr':function(_0x153ca9,_0x1a9a6a){return _0x153ca9!==_0x1a9a6a;},'yCDxJ':'object','iAmCI':function(_0x4149df,_0x43a028){return _0x4149df(_0x43a028);},'lnUKm':'Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','DLaEI':function(_0x32f4de,_0x502f6f){return _0x32f4de(_0x502f6f);},'clScC':function(_0x171057,_0x4555b4){return _0x171057===_0x4555b4;},'yGCoU':_0x49420a(0x11a),'pSeVD':_0x49420a(0x96),'aVjVl':_0x49420a(0x153),'wtGKq':function(_0xb52566,_0x44cc65){return _0xb52566===_0x44cc65;}};return new Promise((_0x5d88c2,_0x4bba87)=>{const _0x2c083d=_0x49420a,_0x21aec0={'UEbLg':function(_0x4162e0,_0xfa1983){const _0x4f424f=a117_0x3454;return _0x1f23c3[_0x4f424f(0xa7)](_0x4162e0,_0xfa1983);}},_0x4b56fe={..._0x27fd15,...{'method':_0x24ba86,'url':API_URL+'/'+_0x481c4d,'body':_0xc7821,'json':_0x1f23c3[_0x2c083d(0x14f)](_0x27fd15[_0x2c083d(0xdb)][_0x1f23c3[_0x2c083d(0x100)]],_0x1f23c3[_0x2c083d(0x8b)]),'agent':API_URL[_0x2c083d(0x7f)](_0x1f23c3[_0x2c083d(0xa1)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x1f23c3[_0x2c083d(0xc3)](_0x481c4d,SCREENSHOT_ENDPOINT)&&(_0x4b56fe[_0x2c083d(0xe2)]=API_URL[_0x2c083d(0x7f)](_0x1f23c3[_0x2c083d(0xa1)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x2c083d(0xf9)](_0x24ba86,_0x481c4d,_0x4b56fe,_0x27fd15,API_URL)['then'](({statusCode:_0x517da8,body:_0xcefa80})=>{const _0x28c1e1=_0x2c083d;if(_0x1f23c3[_0x28c1e1(0x9e)](_0x517da8,0xc8))_0x1f23c3[_0x28c1e1(0x183)](_0x4bba87,_0xcefa80?_0xcefa80:_0x28c1e1(0x127)+_0x517da8);else{if(_0x54f154)try{_0x1f23c3[_0x28c1e1(0x93)](typeof _0xcefa80,_0x1f23c3['yCDxJ'])&&(_0xcefa80=JSON[_0x28c1e1(0x149)](_0xcefa80));}catch(_0x52f6a2){_0x1f23c3[_0x28c1e1(0x110)](_0x4bba87,_0x1f23c3[_0x28c1e1(0x82)]);return;}const _0x2ac998={};_0x2ac998[_0x28c1e1(0xc4)]=_0xcefa80,_0x1f23c3[_0x28c1e1(0x183)](_0x5d88c2,_0x2ac998);}})[_0x2c083d(0xd2)](_0x50400a=>{const _0x27a080=_0x2c083d;_0x50400a&&_0x21aec0[_0x27a080(0x10b)](_0x4bba87,_0x50400a);});});},exports['getBuildTags']=_0xdfede3=>{const _0x5238c0=a117_0x3545b4;if(process[_0x5238c0(0xce)][_0x5238c0(0xde)])return process['env'][_0x5238c0(0xde)]['split'](',');if(_0xdfede3['buildTag'])return _0xdfede3['buildTag'];return[];},exports[a117_0x3545b4(0x174)]=(_0x25c03f=!![])=>{const _0x3ea6a7=a117_0x3545b4,_0x54a1f4={};_0x54a1f4[_0x3ea6a7(0xba)]=_0x3ea6a7(0x96),_0x54a1f4[_0x3ea6a7(0xfd)]='true',_0x54a1f4[_0x3ea6a7(0xc6)]=_0x3ea6a7(0x95);const _0x261ee7=_0x54a1f4,_0x3a1235={};_0x3a1235[_0x3ea6a7(0x11a)]=_0x261ee7[_0x3ea6a7(0xba)],_0x3a1235[_0x3ea6a7(0x114)]=_0x261ee7[_0x3ea6a7(0xfd)];const _0x22c234=_0x3a1235;return _0x25c03f&&process['env'][_0x3ea6a7(0x143)]&&(_0x22c234[_0x261ee7[_0x3ea6a7(0xc6)]]='Bearer\x20'+process['env'][_0x3ea6a7(0x143)]),_0x22c234;},exports['extractValuesWithRegexKeyMatch']=_0x1037db=>{const _0xd03e65=a117_0x3545b4,_0x275f68={};_0x275f68['DwTzy']=_0xd03e65(0xb4);const _0x5d17d5=_0x275f68,_0x4ca3e0=[],_0x3049c9=new RegExp(_0x5d17d5[_0xd03e65(0x138)],'i');return Object[_0xd03e65(0x105)](_0x1037db)[_0xd03e65(0x176)](_0xa1c2a=>_0x3049c9[_0xd03e65(0xfa)](_0xa1c2a))[_0xd03e65(0xf0)](_0x260ce0=>_0x4ca3e0['push'](_0x1037db[_0x260ce0])),_0x4ca3e0;},exports[a117_0x3545b4(0x124)]=_0x419ae2=>{const _0xa37b3f=a117_0x3545b4,_0x32f900=[],_0x115561=_0x419ae2[_0xa37b3f(0x173)]||process[_0xa37b3f(0xce)]['CUSTOM_TAG'];return _0x115561&&_0x32f900[_0xa37b3f(0xe6)](_0x115561),_0x32f900[_0xa37b3f(0xe6)](...exports['extractValuesWithRegexKeyMatch'](process[_0xa37b3f(0xce)])),_0x32f900[_0xa37b3f(0xe6)](...exports[_0xa37b3f(0xa4)](_0x419ae2)),_0x32f900;},exports[a117_0x3545b4(0xb8)]=_0xd0a7a0=>{const _0x74c40c=a117_0x3545b4;if(!_0xd0a7a0)return'';return _0xd0a7a0[_0x74c40c(0xb7)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a117_0x3545b4(0xb2)]=(_0x52eb60=0x64)=>new Promise(_0x13bb88=>setTimeout(_0x13bb88,_0x52eb60));const getPlatformName=()=>{const _0x228458=a117_0x3545b4,_0x3613e6={};_0x3613e6['UFRGb']=function(_0x3652ab,_0x1df20c){return _0x3652ab===_0x1df20c;},_0x3613e6[_0x228458(0xe5)]=_0x228458(0x106),_0x3613e6[_0x228458(0x162)]=_0x228458(0x14c),_0x3613e6['LPZIR']='darwin',_0x3613e6[_0x228458(0xcc)]=_0x228458(0x91),_0x3613e6['qdnps']=_0x228458(0x139),_0x3613e6[_0x228458(0x97)]='Linux',_0x3613e6[_0x228458(0xc5)]='Unknown';const _0x7bf379=_0x3613e6;if(_0x7bf379[_0x228458(0x154)](process[_0x228458(0x101)],_0x7bf379[_0x228458(0xe5)]))return _0x7bf379['wXwWl'];if(_0x7bf379[_0x228458(0x154)](process[_0x228458(0x101)],_0x7bf379['LPZIR']))return _0x7bf379[_0x228458(0xcc)];if(_0x7bf379[_0x228458(0x154)](process[_0x228458(0x101)],_0x7bf379[_0x228458(0x9b)]))return _0x7bf379[_0x228458(0x97)];return _0x7bf379[_0x228458(0xc5)];},getMacOSVersion=()=>{const _0x2e73bc=a117_0x3545b4,_0x649a9d={};_0x649a9d['llEGn']='awk\x20\x27/SOFTWARE\x20LICENSE\x20AGREEMENT\x20FOR\x20macOS/\x27\x20\x27/System/Library/CoreServices/Setup\x20Assistant.app/Contents/Resources/en.lproj/OSXSoftwareLicense.rtf\x27\x20|\x20awk\x20-F\x20\x27macOS\x20\x27\x20\x27{print\x20$NF}\x27\x20|\x20awk\x20\x27{print\x20substr($0,\x200,\x20length($0)-1)}\x27';const _0x46e5a6=_0x649a9d;return child_process[_0x2e73bc(0xe3)](_0x46e5a6[_0x2e73bc(0x10f)])[_0x2e73bc(0x11e)]()[_0x2e73bc(0xb5)]();},getLinuxDetails=()=>{const _0x429378={'eLXLC':function(_0xd3d864,_0x75cd15){return _0xd3d864(_0x75cd15);},'pmDdY':function(_0x205624,_0x126ac7){return _0x205624(_0x126ac7);}};return new Promise((_0x10393d,_0x157d1b)=>{_0x429378['eLXLC'](getos,(_0x3ffc14,_0x28c0a2)=>{const _0x5d507f=a117_0x3454;if(_0x3ffc14)return _0x429378[_0x5d507f(0x167)](_0x157d1b,_0x3ffc14);_0x429378['pmDdY'](_0x10393d,_0x28c0a2);});});};exports[a117_0x3545b4(0x177)]=async()=>{const _0x57efd9=a117_0x3545b4,_0x402774={'uUNOX':function(_0x109138){return _0x109138();},'gHyIP':_0x57efd9(0x91),'lqQOD':_0x57efd9(0x14c),'ZLRPL':'windows-release','qbOFR':function(_0x5821d9){return _0x5821d9();},'BUSWT':_0x57efd9(0x141),'tAOxe':_0x57efd9(0x129)};let _0x178796=_0x402774[_0x57efd9(0x16a)](getPlatformName),_0x39b59c=os[_0x57efd9(0xa6)]()['toString']();switch(_0x178796){case _0x402774[_0x57efd9(0x10e)]:_0x39b59c=_0x402774[_0x57efd9(0x16a)](getMacOSVersion);break;case _0x402774['lqQOD']:try{const _0x12727b=(await import(_0x402774[_0x57efd9(0x85)]))[_0x57efd9(0x142)];_0x39b59c=_0x402774[_0x57efd9(0x116)](_0x12727b);}catch(_0xe311a9){exports[_0x57efd9(0x166)](_0x57efd9(0xe7)+_0xe311a9['toString']());}break;case _0x402774[_0x57efd9(0xee)]:try{const _0x155775=await _0x402774[_0x57efd9(0x116)](getLinuxDetails);_0x155775[_0x57efd9(0xad)]&&(_0x178796=_0x155775['dist']),_0x155775[_0x57efd9(0xa6)]&&(_0x39b59c=_0x155775[_0x57efd9(0xa6)][_0x57efd9(0x11e)]());}catch(_0x5b7b89){exports[_0x57efd9(0x166)](_0x402774['tAOxe']);}break;default:break;}const _0x4afee2={};return _0x4afee2[_0x57efd9(0x128)]=_0x178796,_0x4afee2[_0x57efd9(0x179)]=_0x39b59c,_0x4afee2;},exports['failureData']=(_0x1596ce,_0x344178)=>{const _0x3ed76f=a117_0x3545b4,_0x447f66={};_0x447f66[_0x3ed76f(0x17b)]=function(_0x53ecb7,_0x51a0cb){return _0x53ecb7===_0x51a0cb;},_0x447f66[_0x3ed76f(0xda)]=_0x3ed76f(0xfa),_0x447f66[_0x3ed76f(0x98)]=_0x3ed76f(0x7a);const _0x4fa843=_0x447f66;if(!_0x1596ce)return[];try{if(_0x4fa843[_0x3ed76f(0x17b)](_0x344178,_0x4fa843[_0x3ed76f(0xda)]))return _0x1596ce['map'](_0x1df97e=>{const _0x401307=_0x3ed76f,{stack:_0x7e5a3,..._0x1a9534}=_0x1df97e,_0x31f126=Object[_0x401307(0x105)](_0x1a9534)['map'](_0x29c53c=>{return _0x29c53c+':\x20'+_0x1a9534[_0x29c53c];}),_0x24cce0=_0x7e5a3?exports[_0x401307(0xb8)](_0x7e5a3)[_0x401307(0x16b)](/\r?\n/):[exports[_0x401307(0xb8)](_0x1df97e['message'])],_0x1267e8={};return _0x1267e8[_0x401307(0x108)]=_0x24cce0,_0x1267e8[_0x401307(0x132)]=_0x31f126,_0x1267e8;});else{if(_0x4fa843[_0x3ed76f(0x17b)](_0x344178,_0x4fa843['ZyPHi'])){const _0x1005a1=[],_0x58ed99=[];return Object[_0x3ed76f(0x105)](_0x1596ce)['forEach'](_0x54b908=>{const _0x1ad374=_0x3ed76f;try{_0x58ed99[_0x1ad374(0xe6)](_0x54b908+':\x20'+_0x1596ce[_0x54b908]);}catch(_0xdf112a){exports['debug']('Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20'+_0xdf112a[_0x1ad374(0xe0)]+_0x1ad374(0x12d)+_0xdf112a[_0x1ad374(0x108)]);}}),_0x1005a1[_0x3ed76f(0xe6)]({'backtrace':exports[_0x3ed76f(0xb8)](_0x1596ce[_0x3ed76f(0xae)])[_0x3ed76f(0x16b)](/\r?\n/),'expanded':_0x58ed99}),_0x1005a1;}}return[];}catch(_0xfd3527){exports[_0x3ed76f(0x166)](_0x3ed76f(0xf7)+_0xfd3527[_0x3ed76f(0xe0)]+'\x20:\x20'+_0xfd3527[_0x3ed76f(0x108)]);}return[];};function a117_0x3454(_0x35e218,_0x322d59){const _0xd0f248=a117_0xd0f2();return a117_0x3454=function(_0x34540d,_0x5c8e23){_0x34540d=_0x34540d-0x79;let _0x5ad499=_0xd0f248[_0x34540d];return _0x5ad499;},a117_0x3454(_0x35e218,_0x322d59);}class PathHelper{constructor(_0x39ee8b,_0x4dc3f8){const _0x5d9e8a=a117_0x3545b4;this[_0x5d9e8a(0x159)]=_0x39ee8b,this[_0x5d9e8a(0xb3)]=_0x4dc3f8;}['relativeTestFilePath'](_0x86cebe){const _0x19af8d=a117_0x3545b4,_0x13c799=this[_0x19af8d(0x159)][_0x19af8d(0xa0)]||this[_0x19af8d(0x159)][_0x19af8d(0x17f)];return path['relative'](_0x13c799,_0x86cebe);}[a117_0x3545b4(0x12f)](_0x399cb3){const _0x5c6961=a117_0x3545b4,_0x2b418e=this[_0x5c6961(0x125)](_0x399cb3);return this['prefix']?path[_0x5c6961(0x15a)](this[_0x5c6961(0xb3)],_0x2b418e):_0x2b418e;}}exports[a117_0x3545b4(0x157)]=PathHelper,exports['addRequestSpy']=(_0x160ead=!![])=>{const _0xa67e0b=a117_0x3545b4,_0x5df51a={};_0x5df51a['GFXLP']=function(_0x8a137a,_0x38db41){return _0x8a137a===_0x38db41;},_0x5df51a[_0xa67e0b(0x136)]='X-BSTACK-TESTOPS',_0x5df51a[_0xa67e0b(0x15f)]=_0xa67e0b(0x158),_0x5df51a[_0xa67e0b(0xac)]=_0xa67e0b(0x107),_0x5df51a['qOwLG']='browserstack',_0x5df51a[_0xa67e0b(0x118)]='local_grid';const _0x5f3524=_0x5df51a;requestSpy[_0xa67e0b(0xbf)]((_0x2bb907,_0x5431b3)=>{const _0x2811f5=_0xa67e0b;_0x5431b3&&!(_0x5431b3[_0x2811f5(0xdb)]&&_0x5f3524[_0x2811f5(0xe9)](_0x5431b3[_0x2811f5(0xdb)][_0x5f3524[_0x2811f5(0x136)]],_0x5f3524[_0x2811f5(0x15f)]))&&(_0x5431b3['host']=_0x5431b3[_0x2811f5(0x161)],delete _0x5431b3[_0x2811f5(0x161)],_0x160ead&&process[_0x2811f5(0x17a)]('bs:addLog:'+process['pid'],{'timestamp':new Date()[_0x2811f5(0x111)](),'level':null,'message':null,'kind':_0x5f3524['DtECg'],'http_response':_0x5431b3})),_0x5431b3&&(constants[_0x2811f5(0x11f)][_0x2811f5(0xfa)](_0x5431b3['host'])||constants[_0x2811f5(0x155)][_0x2811f5(0xfa)](_0x5431b3[_0x2811f5(0x103)]))?global[_0x2811f5(0x117)]=_0x5f3524[_0x2811f5(0x8f)]:global[_0x2811f5(0x117)]=_0x5f3524[_0x2811f5(0x118)];});},exports['patchConsoleLogger']=()=>{const _0x388ce2=a117_0x3545b4,_0x4e0816={'RMTay':function(_0x1521ca,_0x38ce27){return _0x1521ca(_0x38ce27);}};console={},Object[_0x388ce2(0x105)](consoleHolder)['forEach'](_0x13d813=>{const _0x30b300=_0x388ce2;_0x4e0816[_0x30b300(0xf4)](isFunction,consoleHolder[_0x13d813])?console[_0x13d813]=(..._0x5a4831)=>{const _0x14855a=_0x30b300;try{!Object[_0x14855a(0x105)](BSTestOpsPatcher)[_0x14855a(0x7f)](_0x13d813)?consoleHolder[_0x13d813](..._0x5a4831):BSTestOpsPatcher[_0x13d813](..._0x5a4831);}catch(_0x44974d){consoleHolder[_0x13d813](..._0x5a4831);}}:console[_0x13d813]=consoleHolder[_0x13d813];});},exports[a117_0x3545b4(0xe4)]=()=>a117_0x3545b4(0x79)+JSON[a117_0x3545b4(0xd0)]({'action':a117_0x3545b4(0xa8),'arguments':{'data':a117_0x3545b4(0x9d)+Date[a117_0x3545b4(0x175)](),'level':a117_0x3545b4(0x166)}}),exports['getObservabilityLinkedProductName']=_0x512d0e=>{const _0x2705b0=a117_0x3545b4,_0x504252={};_0x504252[_0x2705b0(0xd6)]=function(_0x5545dd,_0x536db8){return _0x5545dd===_0x536db8;},_0x504252[_0x2705b0(0x130)]=_0x2705b0(0xf2),_0x504252[_0x2705b0(0x16e)]=_0x2705b0(0xd3),_0x504252[_0x2705b0(0x7e)]=_0x2705b0(0xdf),_0x504252['mRkHc']=function(_0x336361,_0x4329b4){return _0x336361>_0x4329b4;},_0x504252[_0x2705b0(0x131)]=_0x2705b0(0x163),_0x504252['RpRIh']='bstack:options',_0x504252['hwEQR']=_0x2705b0(0x12c),_0x504252[_0x2705b0(0xc7)]=_0x2705b0(0x169),_0x504252[_0x2705b0(0x9a)]='automate';const _0x2ac177=_0x504252;let _0x58e109=null;try{if(_0x2ac177[_0x2705b0(0xd6)](global[_0x2705b0(0x117)],_0x2ac177['oQXZK'])){if(_0x512d0e[_0x2ac177[_0x2705b0(0x16e)]]||_0x512d0e[_0x2ac177['QKXaG']]||!bsSetupHelper[_0x2705b0(0x171)](global['capabilities'])&&_0x2ac177[_0x2705b0(0xd7)](global['capabilities'][_0x2705b0(0xa3)],0x0)&&(global['capabilities'][0x0][_0x2ac177[_0x2705b0(0x7e)]]||global[_0x2705b0(0x170)][0x0][_0x2ac177['vFzCp']]))_0x58e109=_0x2ac177['cZtxY'];else _0x512d0e[_0x2ac177['RpRIh']]&&_0x512d0e[_0x2ac177[_0x2705b0(0x16d)]][_0x2ac177[_0x2705b0(0x10d)]]?_0x58e109=_0x2ac177['Scxex']:_0x58e109=_0x2ac177[_0x2705b0(0x9a)];}}catch(_0x36267c){exports[_0x2705b0(0x166)](_0x2705b0(0xc2)+_0x36267c);}return _0x58e109;},exports[a117_0x3545b4(0xfc)]=async(_0x3fedfa,_0x228289,_0x3374fa=![])=>{const _0x34cf52=a117_0x3545b4,_0xe94009={};_0xe94009[_0x34cf52(0x11d)]=function(_0x32372d,_0x1da2f4){return _0x32372d===_0x1da2f4;},_0xe94009[_0x34cf52(0x81)]='browserstack',_0xe94009['aThMC']=_0x34cf52(0xdd),_0xe94009[_0x34cf52(0x16f)]=_0x34cf52(0x92);const _0x4c3f4f=_0xe94009;try{const _0x2f762a=await _0x3fedfa[_0x34cf52(0xb1)](),_0x1839f6=await _0x3fedfa[_0x34cf52(0x83)](),_0x1490c1={},_0x6b44de=Object['fromEntries'](_0x1839f6[_0x34cf52(0xb1)]()['map_']),_0x29014d={'product':exports['getObservabilityLinkedProductName'](_0x6b44de),'capabilities':_0x6b44de,'platform':_0x2f762a[_0x34cf52(0x17c)](),'platform_version':bsSetupHelper['getPlatformVersion'](_0x4c3f4f[_0x34cf52(0x11d)](global[_0x34cf52(0x117)],_0x4c3f4f['VoTzk'])),'browser':_0x2f762a['getBrowserName'](),'browser_version':_0x2f762a[_0x34cf52(0xec)](),'session_id':_0x1839f6['toJSON']()};global[_0x34cf52(0x117)]?_0x1490c1[global['__cloud_provider___']]=_0x29014d:_0x1490c1[_0x4c3f4f[_0x34cf52(0x12b)]]=_0x29014d;if(_0x3374fa)return _0x1490c1;process[_0x34cf52(0x17a)]('bs:addPlatformDetails:'+process[_0x34cf52(0x147)],{'timestamp':new Date()[_0x34cf52(0x111)](),'level':null,'message':null,'kind':_0x4c3f4f[_0x34cf52(0x16f)],'http_response':_0x1490c1,'uuid':_0x228289});}catch(_0x5217b1){exports[_0x34cf52(0x166)](_0x34cf52(0x115)+_0x5217b1);}},exports[a117_0x3545b4(0x178)]=_0x33f700=>{const _0x534ea3=a117_0x3545b4;return _0x33f700&&_0x33f700['toString']()[_0x534ea3(0xf5)](/browserstack internal helper hook/);};
@@ -1 +1 @@
1
- function a118_0x5d27(){var _0x2e40c3=['2484174QkoBFV','1smzXWy','34576ujgbZI','https://collector-observability.browserstack.com','testorchestration/api/v1/split-tests','2535420nPbChN','testorchestration/api/v1/failed-tests','16hxnsVZ','517752zuWqab','5480262QBufMG','SPLIT_TESTS_ENDPOINT','2391780IKfOnW','413820axxJGp','exports'];a118_0x5d27=function(){return _0x2e40c3;};return a118_0x5d27();}var a118_0x3f1d7a=a118_0x6263;function a118_0x6263(_0x22e30b,_0x12b6e1){var _0x5d2728=a118_0x5d27();return a118_0x6263=function(_0x6263d4,_0x15998a){_0x6263d4=_0x6263d4-0x169;var _0x18bb55=_0x5d2728[_0x6263d4];return _0x18bb55;},a118_0x6263(_0x22e30b,_0x12b6e1);}(function(_0x479d9b,_0x1dc2b6){var _0x359344=a118_0x6263,_0x4bd777=_0x479d9b();while(!![]){try{var _0x5bcd72=-parseInt(_0x359344(0x176))/0x1*(-parseInt(_0x359344(0x169))/0x2)+parseInt(_0x359344(0x16f))/0x3+parseInt(_0x359344(0x173))/0x4+-parseInt(_0x359344(0x172))/0x5+-parseInt(_0x359344(0x16c))/0x6+-parseInt(_0x359344(0x175))/0x7+-parseInt(_0x359344(0x16e))/0x8*(-parseInt(_0x359344(0x170))/0x9);if(_0x5bcd72===_0x1dc2b6)break;else _0x4bd777['push'](_0x4bd777['shift']());}catch(_0x32becf){_0x4bd777['push'](_0x4bd777['shift']());}}}(a118_0x5d27,0x3e57b));var a118_0x2f07a3={};a118_0x2f07a3['ORCHESTRATION_API_URL']=a118_0x3f1d7a(0x16a),a118_0x2f07a3['FAILED_TESTS_ENDPOINT']=a118_0x3f1d7a(0x16d),a118_0x2f07a3[a118_0x3f1d7a(0x171)]=a118_0x3f1d7a(0x16b),module[a118_0x3f1d7a(0x174)]=a118_0x2f07a3;
1
+ function a118_0x112e(_0x163263,_0x1523ea){var _0x45b7a8=a118_0x45b7();return a118_0x112e=function(_0x112ee1,_0x1fa8b5){_0x112ee1=_0x112ee1-0x123;var _0x5d97ba=_0x45b7a8[_0x112ee1];return _0x5d97ba;},a118_0x112e(_0x163263,_0x1523ea);}var a118_0x2a81d0=a118_0x112e;(function(_0x196434,_0x1aaf3d){var _0x5eace8=a118_0x112e,_0x3d2b5e=_0x196434();while(!![]){try{var _0x31a7ec=parseInt(_0x5eace8(0x130))/0x1+parseInt(_0x5eace8(0x128))/0x2*(parseInt(_0x5eace8(0x125))/0x3)+-parseInt(_0x5eace8(0x131))/0x4*(parseInt(_0x5eace8(0x132))/0x5)+-parseInt(_0x5eace8(0x12e))/0x6+parseInt(_0x5eace8(0x12b))/0x7+parseInt(_0x5eace8(0x12a))/0x8+-parseInt(_0x5eace8(0x12c))/0x9;if(_0x31a7ec===_0x1aaf3d)break;else _0x3d2b5e['push'](_0x3d2b5e['shift']());}catch(_0x4aeed2){_0x3d2b5e['push'](_0x3d2b5e['shift']());}}}(a118_0x45b7,0xdf03d));var a118_0x5202f9={};function a118_0x45b7(){var _0xf24208=['1006062ZpxpNl','8cnJmZw','4555790qlUACb','testorchestration/api/v1/split-tests','testorchestration/api/v1/failed-tests','338202FqAvCg','SPLIT_TESTS_ENDPOINT','ORCHESTRATION_API_URL','30gxdWho','exports','14446584apOdQP','5342890wAPugT','19139724cBDcAY','FAILED_TESTS_ENDPOINT','2422464jJElMp','https://collector-observability.browserstack.com'];a118_0x45b7=function(){return _0xf24208;};return a118_0x45b7();}a118_0x5202f9[a118_0x2a81d0(0x127)]=a118_0x2a81d0(0x12f),a118_0x5202f9[a118_0x2a81d0(0x12d)]=a118_0x2a81d0(0x124),a118_0x5202f9[a118_0x2a81d0(0x126)]=a118_0x2a81d0(0x123),module[a118_0x2a81d0(0x129)]=a118_0x5202f9;
@@ -1 +1 @@
1
- function a119_0x40e9(_0x138864,_0x501ea8){const _0x57e906=a119_0x57e9();return a119_0x40e9=function(_0x40e970,_0x50a373){_0x40e970=_0x40e970-0x6c;let _0x3b8cb6=_0x57e906[_0x40e970];return _0x3b8cb6;},a119_0x40e9(_0x138864,_0x501ea8);}function a119_0x57e9(){const _0x644bb6=['info','_CI]\x20Polling\x20started\x20with\x20interval:\x20','fileHelper','catch','BROWSERSTACK_BUILD_RUN_IDENTIFIER',']\x20Polling\x20stopped.','exports','_CI]\x20Error\x20during\x20polling\x20logic:\x20','cleanup','_pollFailedTests','clFeb','bQAJl','uniqueFailedTests','OQtIb','BROWSERSTACK_NODE_INDEX',']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','ElBaE','./requestUtils',',\x20threshold:\x20','isCIMode','error','xFsAI','reportedFailuresToAPI','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','5193798vrxBPG','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','debug','wnClM','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.','_CI]\x20API\x20failed\x20count\x20updated:\x20','134uiXBMD','XrzEu',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20','qavug','lockFilePath','vIegQ','5942770StcVqN','lastAPIFailedCount','toISOString','PCLQF','_sendFailedTestsToAPI','\x20(was\x20','_initializeStateFromFile','failFastState.json','path','941175fSJcOz','state','failed','pollingInterval','add','5871439jMRwhg','Wfukm','writeFileSync','warn','readState','FailFastManager','_CI]\x20Error\x20sending\x20failed\x20test\x20','NzzfF','writeState','gQuvl','startPolling','\x0aStack:\x20','UwWdC','eYuhV','buildRunIdentifier','9aUNbxu','join','qxwTT','failedTests','buildName','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','passed','stopPolling','recordTestResult','stack','newState','ItNql','gRyuj','oFDOA','size','2902360URekWq','failFast.active','_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.','projectName','_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20','22098GiKSmg',',\x20CI\x20Mode:\x20','bMtmz','JYimx','failFastConfig','./fileHelper','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','WUbSR','yWXbu','3137804LAcJLa','\x20to\x20API:\x20','THNJT','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','number','5YarBqs','stateFilePath','ms.','FggSJ','_getDefaultState','khhLr','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','fSiTt','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20','putFailedTests','failFastActiveMarkerPath','DRlGn','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20','_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20','_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20','env','failFastActive','shouldFailFast','onTestDone','KSxuW','_fetchAPIFailedCount','getFailedTestsCount','message','izcur','has','VKeMq','length'];a119_0x57e9=function(){return _0x644bb6;};return a119_0x57e9();}const a119_0x148f9e=a119_0x40e9;(function(_0x38d98d,_0x2985e7){const _0xe33714=a119_0x40e9,_0x5a3794=_0x38d98d();while(!![]){try{const _0x1e0fd0=-parseInt(_0xe33714(0xbc))/0x1+parseInt(_0xe33714(0xad))/0x2*(parseInt(_0xe33714(0xe4))/0x3)+parseInt(_0xe33714(0x6e))/0x4+parseInt(_0xe33714(0x73))/0x5*(parseInt(_0xe33714(0xa7))/0x6)+-parseInt(_0xe33714(0xc1))/0x7+parseInt(_0xe33714(0xdf))/0x8*(-parseInt(_0xe33714(0xd0))/0x9)+parseInt(_0xe33714(0xb3))/0xa;if(_0x1e0fd0===_0x2985e7)break;else _0x5a3794['push'](_0x5a3794['shift']());}catch(_0x2819f1){_0x5a3794['push'](_0x5a3794['shift']());}}}(a119_0x57e9,0x914c0));const fs=require('fs'),path=require(a119_0x148f9e(0xbb)),FileHelper=require(a119_0x148f9e(0xe9)),RequestUtils=require(a119_0x148f9e(0xa0)),logger=require('../logger')['winstonLogger'],POLLING_INTERVAL=0x2710,TAG=a119_0x148f9e(0xc6);class FailFastManager{constructor(_0x512a4b,_0x2c3c8d,_0x367aa7){const _0x5b6224=a119_0x148f9e,_0x40e8ce={};_0x40e8ce[_0x5b6224(0xd2)]=function(_0x329b03,_0x12a813){return _0x329b03+_0x12a813;},_0x40e8ce[_0x5b6224(0xa4)]=_0x5b6224(0xcc),_0x40e8ce[_0x5b6224(0xaa)]=function(_0xcb757,_0x5709d6){return _0xcb757||_0x5709d6;},_0x40e8ce[_0x5b6224(0xc8)]=_0x5b6224(0xba),_0x40e8ce[_0x5b6224(0x9a)]='failFastState.lock',_0x40e8ce[_0x5b6224(0xb0)]=_0x5b6224(0xe0);const _0x376848=_0x40e8ce;this[_0x5b6224(0xe8)]=_0x376848[_0x5b6224(0xaa)](_0x512a4b,{}),this[_0x5b6224(0xd4)]=_0x2c3c8d,this[_0x5b6224(0xe2)]=_0x367aa7,this[_0x5b6224(0xa2)]=!!(process[_0x5b6224(0x83)][_0x5b6224(0x93)]&&process['env'][_0x5b6224(0x9d)]&&process[_0x5b6224(0x83)]['BROWSERSTACK_TOTAL_NODE_COUNT']);const _0xf31493=this['failFastConfig']['workingDir'];this[_0x5b6224(0x74)]=path[_0x5b6224(0xd1)](_0xf31493,_0x376848[_0x5b6224(0xc8)]),this[_0x5b6224(0xb1)]=path[_0x5b6224(0xd1)](_0xf31493,_0x376848[_0x5b6224(0x9a)]),this[_0x5b6224(0x7e)]=path[_0x5b6224(0xd1)](_0xf31493,_0x376848[_0x5b6224(0xb0)]),this['fileHelper']=new FileHelper(this[_0x5b6224(0xe8)],this[_0x5b6224(0x74)],this[_0x5b6224(0xb1)],this[_0x5b6224(0x77)]()),this['state']=this[_0x5b6224(0x77)](),this[_0x5b6224(0xbf)]=null,this[_0x5b6224(0xa2)]&&(this['reportedFailuresToAPI']=new Set()),this[_0x5b6224(0xb9)]()[_0x5b6224(0x92)](_0x142362=>{const _0x3a696b=_0x5b6224;logger['error']('['+TAG+']\x20Critical\x20error\x20during\x20async\x20initialization:\x20'+_0x142362['message']+(_0x142362[_0x3a696b(0xd9)]?_0x376848['qxwTT'](_0x376848[_0x3a696b(0xa4)],_0x142362[_0x3a696b(0xd9)]):'')),this[_0x3a696b(0xbd)]=this[_0x3a696b(0x77)]();}),this[_0x5b6224(0xa2)]&&this[_0x5b6224(0xcb)](),logger[_0x5b6224(0xa9)]('['+TAG+_0x5b6224(0xaf)+this[_0x5b6224(0xe8)]['failureThresholdCount']+_0x5b6224(0xe5)+this[_0x5b6224(0xa2)]);}[a119_0x148f9e(0x77)](){const _0x1a0709={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x1a0709;}async[a119_0x148f9e(0xb9)](){const _0x2de114=a119_0x148f9e,_0x5543d7={};_0x5543d7[_0x2de114(0x9f)]=function(_0x1bca66,_0x25f001){return _0x1bca66+_0x25f001;},_0x5543d7[_0x2de114(0x7f)]=_0x2de114(0xcc),_0x5543d7[_0x2de114(0x6c)]=function(_0x5f1a3d,_0x4eebb2){return _0x5f1a3d+_0x4eebb2;};const _0x38bd61=_0x5543d7;if(this[_0x2de114(0xa2)])try{fs['existsSync'](this[_0x2de114(0x7e)])&&(this['state'][_0x2de114(0x84)]=!![],logger[_0x2de114(0xa9)]('['+TAG+_0x2de114(0xe1)));}catch(_0x2c8200){logger['error']('['+TAG+'_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20'+_0x2c8200['message']+(_0x2c8200[_0x2de114(0xd9)]?_0x38bd61['ElBaE'](_0x38bd61[_0x2de114(0x7f)],_0x2c8200['stack']):''));}else try{const _0x10c57e=await this[_0x2de114(0x91)]['readState']();if(_0x10c57e)this[_0x2de114(0xbd)]={...this['_getDefaultState'](),..._0x10c57e,'uniqueFailedTests':new Set(_0x10c57e[_0x2de114(0x9b)]||[])},logger['debug']('['+TAG+'_Local]\x20State\x20initialized\x20from\x20file.');else{logger[_0x2de114(0xa9)]('['+TAG+'_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.');const _0x17ece7=this[_0x2de114(0x77)](),_0x34a98e={..._0x17ece7,'uniqueFailedTests':Array['from'](_0x17ece7[_0x2de114(0x9b)])};await this['fileHelper']['writeState'](_0x34a98e),this[_0x2de114(0xbd)]=_0x17ece7;}}catch(_0xe735dc){logger['debug']('['+TAG+'_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20'+_0xe735dc['message']+(_0xe735dc[_0x2de114(0xd9)]?_0x38bd61[_0x2de114(0x6c)](_0x38bd61[_0x2de114(0x7f)],_0xe735dc[_0x2de114(0xd9)]):'')),this[_0x2de114(0xbd)]=this['_getDefaultState']();}}async[a119_0x148f9e(0x86)](_0x380a94,_0x46560e){const _0x27b2f4=a119_0x148f9e,_0x26322c={};_0x26322c['FggSJ']=function(_0x350fd8,_0x370fa7){return _0x350fd8>_0x370fa7;},_0x26322c['JYimx']=_0x27b2f4(0xbe),_0x26322c['yWXbu']=_0x27b2f4(0xd6),_0x26322c[_0x27b2f4(0x8b)]=function(_0x3004c5,_0x211fb2){return _0x3004c5+_0x211fb2;},_0x26322c['bMtmz']=_0x27b2f4(0xcc),_0x26322c[_0x27b2f4(0xce)]=function(_0x3d4638,_0x36d0ae){return _0x3d4638||_0x36d0ae;};const _0x591342=_0x26322c;if(this[_0x27b2f4(0xa2)])this[_0x27b2f4(0xbd)]['totalTests']+=0x1,_0x46560e&&_0x591342['FggSJ'](_0x46560e[_0x27b2f4(0x8e)],0x0)&&(!this[_0x27b2f4(0xa5)][_0x27b2f4(0x8c)](_0x380a94)&&(await this[_0x27b2f4(0xb7)](_0x380a94),this[_0x27b2f4(0xa5)][_0x27b2f4(0xc0)](_0x380a94)));else try{const _0x196f6b={'fullName':_0x380a94,'status':_0x46560e&&_0x591342[_0x27b2f4(0x76)](_0x46560e['length'],0x0)?_0x591342[_0x27b2f4(0xe7)]:_0x591342[_0x27b2f4(0x6d)]},_0x5635f8=await this['fileHelper'][_0x27b2f4(0xd8)](_0x196f6b);this['state']={...this[_0x27b2f4(0x77)](),..._0x5635f8[_0x27b2f4(0xda)],'uniqueFailedTests':new Set(_0x5635f8[_0x27b2f4(0xda)][_0x27b2f4(0x9b)]||[])};}catch(_0x142b9d){logger['error']('['+TAG+'_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20'+_0x142b9d['message']+(_0x142b9d[_0x27b2f4(0xd9)]?_0x591342[_0x27b2f4(0x8b)](_0x591342[_0x27b2f4(0xe6)],_0x142b9d['stack']):''));try{const _0x501f11=await this['fileHelper'][_0x27b2f4(0xc5)]();this[_0x27b2f4(0xbd)]={...this[_0x27b2f4(0x77)](),..._0x591342[_0x27b2f4(0xce)](_0x501f11,{}),'uniqueFailedTests':new Set(_0x501f11?_0x501f11[_0x27b2f4(0x9b)]||[]:[])},logger[_0x27b2f4(0xa9)]('['+TAG+'_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.');}catch(_0x5fe4e7){logger[_0x27b2f4(0xa3)]('['+TAG+_0x27b2f4(0x82)+_0x5fe4e7[_0x27b2f4(0x8a)]+(_0x5fe4e7[_0x27b2f4(0xd9)]?_0x591342[_0x27b2f4(0x8b)](_0x591342[_0x27b2f4(0xe6)],_0x5fe4e7[_0x27b2f4(0xd9)]):'')),this[_0x27b2f4(0xbd)]=this['_getDefaultState']();}}}async['_sendFailedTestsToAPI'](_0xba11b8){const _0x36e01e=a119_0x148f9e,_0x4e0b26={};_0x4e0b26[_0x36e01e(0x99)]=function(_0x37e536,_0x296a90){return _0x37e536+_0x296a90;},_0x4e0b26['YvvGx']=_0x36e01e(0xcc);const _0x2ab9a9=_0x4e0b26;if(!this[_0x36e01e(0xa2)]||!_0xba11b8)return;try{logger[_0x36e01e(0xa9)]('['+TAG+_0x36e01e(0x80)+_0xba11b8);const _0x4e6979={};_0x4e6979[_0x36e01e(0xd4)]=this[_0x36e01e(0xd4)],_0x4e6979['projectName']=this['projectName'],_0x4e6979[_0x36e01e(0xd3)]=[_0xba11b8],_0x4e6979[_0x36e01e(0xcf)]=process['env']['BROWSERSTACK_BUILD_RUN_IDENTIFIER'],await RequestUtils[_0x36e01e(0x7d)](_0x4e6979);}catch(_0x4c6560){logger['error']('['+TAG+_0x36e01e(0xc7)+_0xba11b8+_0x36e01e(0x6f)+_0x4c6560[_0x36e01e(0x8a)]+(_0x4c6560[_0x36e01e(0xd9)]?_0x2ab9a9[_0x36e01e(0x99)](_0x2ab9a9['YvvGx'],_0x4c6560['stack']):''));}}async[a119_0x148f9e(0x88)](){const _0x48991d=a119_0x148f9e,_0x3face9={};_0x3face9[_0x48991d(0x87)]=function(_0x3e94e0,_0x643953){return _0x3e94e0===_0x643953;},_0x3face9[_0x48991d(0x7a)]=_0x48991d(0x72),_0x3face9['ZWFWS']=function(_0x526e2c,_0x3ec78a){return _0x526e2c+_0x3ec78a;},_0x3face9[_0x48991d(0x8d)]=_0x48991d(0xcc),_0x3face9[_0x48991d(0xdc)]=function(_0x208be2,_0x34a6d4){return _0x208be2!==_0x34a6d4;};const _0x422aff=_0x3face9;if(!this[_0x48991d(0xa2)])return 0x0;try{const _0x4d50e5={};_0x4d50e5[_0x48991d(0xd4)]=this[_0x48991d(0xd4)],_0x4d50e5[_0x48991d(0xe2)]=this['projectName'],_0x4d50e5[_0x48991d(0xcf)]=process[_0x48991d(0x83)][_0x48991d(0x93)];const _0x23a2ed=await RequestUtils[_0x48991d(0x89)](_0x4d50e5);return logger['debug']('['+TAG+_0x48991d(0x79)+_0x23a2ed),_0x422aff[_0x48991d(0x87)](typeof _0x23a2ed,_0x422aff[_0x48991d(0x7a)])?_0x23a2ed:0x0;}catch(_0x4dc581){return logger[_0x48991d(0xa3)]('['+TAG+_0x48991d(0xe3)+_0x4dc581[_0x48991d(0x8a)]+(_0x4dc581[_0x48991d(0xd9)]?_0x422aff['ZWFWS'](_0x422aff[_0x48991d(0x8d)],_0x4dc581[_0x48991d(0xd9)]):'')),_0x422aff[_0x48991d(0xdc)](this[_0x48991d(0xbd)]['lastAPIFailedCount'],undefined)?this[_0x48991d(0xbd)][_0x48991d(0xb4)]:0x0;}}async['_pollFailedTests'](){const _0x4c09ce=a119_0x148f9e,_0x1864bc={};_0x1864bc['THNJT']=function(_0x12a161,_0x14a30a){return _0x12a161!==_0x14a30a;},_0x1864bc['rgoKY']=function(_0x3009c8,_0x1af2c8){return _0x3009c8+_0x1af2c8;},_0x1864bc[_0x4c09ce(0xb6)]=_0x4c09ce(0xcc);const _0xbbbdb4=_0x1864bc;if(!this[_0x4c09ce(0xa2)])return;try{const _0x475fc0=await this[_0x4c09ce(0x88)]();_0xbbbdb4[_0x4c09ce(0x70)](_0x475fc0,this[_0x4c09ce(0xbd)][_0x4c09ce(0xb4)])&&(logger['debug']('['+TAG+_0x4c09ce(0xac)+_0x475fc0+_0x4c09ce(0xb8)+this[_0x4c09ce(0xbd)]['lastAPIFailedCount']+')'),this[_0x4c09ce(0xbd)][_0x4c09ce(0xb4)]=_0x475fc0);}catch(_0x142725){logger[_0x4c09ce(0xa3)]('['+TAG+_0x4c09ce(0x96)+_0x142725[_0x4c09ce(0x8a)]+(_0x142725[_0x4c09ce(0xd9)]?_0xbbbdb4['rgoKY'](_0xbbbdb4['PCLQF'],_0x142725[_0x4c09ce(0xd9)]):''));}}async[a119_0x148f9e(0xcb)](){const _0x5ded07=a119_0x148f9e,_0x23dff1={'ItNql':function(_0x37d6eb,_0x29ce9b,_0x12a0a4){return _0x37d6eb(_0x29ce9b,_0x12a0a4);}};this[_0x5ded07(0xbf)]&&this[_0x5ded07(0xd7)](),this[_0x5ded07(0xa2)]&&(await this[_0x5ded07(0x98)](),this['pollingInterval']=_0x23dff1[_0x5ded07(0xdb)](setInterval,async()=>{await this['_pollFailedTests']();},POLLING_INTERVAL),logger[_0x5ded07(0xa9)]('['+TAG+_0x5ded07(0x90)+POLLING_INTERVAL+_0x5ded07(0x75)));}[a119_0x148f9e(0xd7)](){const _0x1b8aff=a119_0x148f9e,_0x10bcd4={'kyRSC':function(_0x1457b4,_0x1ce619){return _0x1457b4(_0x1ce619);}};this[_0x1b8aff(0xbf)]&&(_0x10bcd4['kyRSC'](clearInterval,this[_0x1b8aff(0xbf)]),this[_0x1b8aff(0xbf)]=null,logger[_0x1b8aff(0xa9)]('['+TAG+_0x1b8aff(0x94)));}async[a119_0x148f9e(0x85)](){const _0x415c82=a119_0x148f9e,_0x333eef={};_0x333eef[_0x415c82(0xdd)]=function(_0xd3bbbc,_0x5cb851){return _0xd3bbbc===_0x5cb851;},_0x333eef[_0x415c82(0x78)]=function(_0x9384b6,_0x12a9c5){return _0x9384b6<=_0x12a9c5;},_0x333eef[_0x415c82(0xca)]=function(_0x33d75d,_0x3b1c93){return _0x33d75d+_0x3b1c93;},_0x333eef['XrzEu']='\x0aStack:\x20',_0x333eef['DpQSC']=function(_0x58ccbe,_0x247e84){return _0x58ccbe!==_0x247e84;},_0x333eef[_0x415c82(0x9c)]=function(_0x3b81cd,_0x5ab90b){return _0x3b81cd>=_0x5ab90b;},_0x333eef[_0x415c82(0xb2)]=function(_0x4c87d,_0x3b9a65){return _0x4c87d+_0x3b9a65;},_0x333eef['ZNmfh']=function(_0x26fe51,_0x2b5a99){return _0x26fe51+_0x2b5a99;};const _0xbb4b0f=_0x333eef,{failureThresholdCount:_0xc269e5}=this['failFastConfig'];if(_0xbb4b0f['oFDOA'](_0xc269e5,null)||_0xbb4b0f['oFDOA'](_0xc269e5,undefined)||_0xbb4b0f[_0x415c82(0x78)](_0xc269e5,0x0))return logger[_0x415c82(0xa9)]('['+TAG+_0x415c82(0x9e)),![];if(this[_0x415c82(0xa2)]){try{if(fs['existsSync'](this[_0x415c82(0x7e)]))return logger[_0x415c82(0xa9)]('['+TAG+_0x415c82(0x71)),!this[_0x415c82(0xbd)][_0x415c82(0x84)]&&(this[_0x415c82(0xbd)][_0x415c82(0x84)]=!![]),this[_0x415c82(0xd7)](),!![];}catch(_0x1b24a9){logger[_0x415c82(0xa3)]('['+TAG+_0x415c82(0xa6)+_0x1b24a9[_0x415c82(0x8a)]+(_0x1b24a9[_0x415c82(0xd9)]?_0xbb4b0f[_0x415c82(0xca)](_0xbb4b0f[_0x415c82(0xae)],_0x1b24a9[_0x415c82(0xd9)]):''));}const _0x560c2c=_0xbb4b0f['DpQSC'](this[_0x415c82(0xbd)][_0x415c82(0xb4)],undefined)?this[_0x415c82(0xbd)][_0x415c82(0xb4)]:0x0;if(_0xbb4b0f['OQtIb'](_0x560c2c,_0xc269e5)){logger[_0x415c82(0x8f)]('['+TAG+_0x415c82(0x7b)+_0x560c2c+_0x415c82(0xa1)+_0xc269e5+'.');try{fs[_0x415c82(0xc3)](this[_0x415c82(0x7e)],new Date()[_0x415c82(0xb5)]()),logger['debug']('['+TAG+_0x415c82(0x81)+this[_0x415c82(0x7e)]),this[_0x415c82(0xbd)]['failFastActive']=!![];}catch(_0x424232){logger[_0x415c82(0xa3)]('['+TAG+_0x415c82(0xa8)+_0x424232[_0x415c82(0x8a)]+(_0x424232['stack']?_0xbb4b0f[_0x415c82(0xb2)](_0xbb4b0f[_0x415c82(0xae)],_0x424232[_0x415c82(0xd9)]):''));}return this[_0x415c82(0xd7)](),!![];}}else{let _0x1f51aa;try{_0x1f51aa=await this[_0x415c82(0x91)][_0x415c82(0xc5)]();if(!_0x1f51aa)return logger[_0x415c82(0xc4)]('['+TAG+'_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.'),![];}catch(_0x5d260a){return logger[_0x415c82(0xa3)]('['+TAG+'_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20'+_0x5d260a['message']+(_0x5d260a[_0x415c82(0xd9)]?_0xbb4b0f[_0x415c82(0xb2)](_0xbb4b0f['XrzEu'],_0x5d260a['stack']):'')),![];}this[_0x415c82(0xbd)]={...this['_getDefaultState'](),..._0x1f51aa,'uniqueFailedTests':new Set(_0x1f51aa[_0x415c82(0x9b)]||[])};if(this['state'][_0x415c82(0x84)])return logger['debug']('['+TAG+_0x415c82(0xd5)),!![];const _0x58450a=this[_0x415c82(0xbd)][_0x415c82(0x9b)],_0x3d01cd=_0x58450a[_0x415c82(0xde)];if(_0xbb4b0f[_0x415c82(0x9c)](_0x3d01cd,_0xc269e5)){try{logger[_0x415c82(0x8f)]('['+TAG+'_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20'+_0x3d01cd+',\x20threshold:\x20'+_0xc269e5+'.'),this['state']['failFastActive']=!![];}catch(_0x298af0){logger['error']('['+TAG+'_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20'+_0x298af0[_0x415c82(0x8a)]+(_0x298af0[_0x415c82(0xd9)]?_0xbb4b0f['ZNmfh'](_0xbb4b0f[_0x415c82(0xae)],_0x298af0['stack']):''));}return!![];}}return![];}async[a119_0x148f9e(0x97)](){const _0x3861e0=a119_0x148f9e,_0xa439d5={};_0xa439d5[_0x3861e0(0xcd)]=function(_0x7f3fb2,_0x42c688){return _0x7f3fb2+_0x42c688;},_0xa439d5[_0x3861e0(0xc2)]=_0x3861e0(0xcc);const _0x739c23=_0xa439d5;this[_0x3861e0(0xd7)]();if(this['isCIMode'])logger[_0x3861e0(0xa9)]('['+TAG+_0x3861e0(0xab));else try{const _0x54ab2c={...this[_0x3861e0(0xbd)],'uniqueFailedTests':Array['from'](this[_0x3861e0(0xbd)][_0x3861e0(0x9b)]||new Set())};await this['fileHelper'][_0x3861e0(0xc9)](_0x54ab2c),logger[_0x3861e0(0xa9)]('['+TAG+_0x3861e0(0xea));}catch(_0x34df5a){logger[_0x3861e0(0xa3)]('['+TAG+_0x3861e0(0x7c)+_0x34df5a[_0x3861e0(0x8a)]+(_0x34df5a[_0x3861e0(0xd9)]?_0x739c23[_0x3861e0(0xcd)](_0x739c23[_0x3861e0(0xc2)],_0x34df5a['stack']):''));}}}module[a119_0x148f9e(0x95)]=FailFastManager;
1
+ const a119_0x546bf6=a119_0x57aa;(function(_0x10091f,_0x1164c3){const _0x5c91cf=a119_0x57aa,_0x2cfac4=_0x10091f();while(!![]){try{const _0x47c78a=-parseInt(_0x5c91cf(0xc8))/0x1*(-parseInt(_0x5c91cf(0xca))/0x2)+-parseInt(_0x5c91cf(0xdb))/0x3*(parseInt(_0x5c91cf(0x13d))/0x4)+parseInt(_0x5c91cf(0xe4))/0x5+-parseInt(_0x5c91cf(0x110))/0x6+-parseInt(_0x5c91cf(0x13b))/0x7*(-parseInt(_0x5c91cf(0x123))/0x8)+-parseInt(_0x5c91cf(0xf6))/0x9*(parseInt(_0x5c91cf(0xf9))/0xa)+-parseInt(_0x5c91cf(0xfb))/0xb*(parseInt(_0x5c91cf(0x105))/0xc);if(_0x47c78a===_0x1164c3)break;else _0x2cfac4['push'](_0x2cfac4['shift']());}catch(_0x401b2b){_0x2cfac4['push'](_0x2cfac4['shift']());}}}(a119_0x1626,0x3af9a));const fs=require('fs'),path=require(a119_0x546bf6(0x11e)),FileHelper=require(a119_0x546bf6(0x122)),RequestUtils=require('./requestUtils'),logger=require('../logger')[a119_0x546bf6(0xe5)],POLLING_INTERVAL=0x2710,TAG='FailFastManager';function a119_0x57aa(_0x2c807c,_0x1d13b7){const _0x162610=a119_0x1626();return a119_0x57aa=function(_0x57aaf3,_0xd01bf7){_0x57aaf3=_0x57aaf3-0xc2;let _0x5e4b53=_0x162610[_0x57aaf3];return _0x5e4b53;},a119_0x57aa(_0x2c807c,_0x1d13b7);}class FailFastManager{constructor(_0x18a95f,_0x191c0e,_0x304d59){const _0x2c3f45=a119_0x546bf6,_0x11d0fe={};_0x11d0fe[_0x2c3f45(0xdd)]=function(_0x547506,_0x1d88d6){return _0x547506+_0x1d88d6;},_0x11d0fe[_0x2c3f45(0xeb)]=_0x2c3f45(0x10a),_0x11d0fe[_0x2c3f45(0xf3)]=function(_0x5499fb,_0x5c2931){return _0x5499fb||_0x5c2931;},_0x11d0fe['elbaS']='failFastState.json',_0x11d0fe['KLwPh']=_0x2c3f45(0xe1),_0x11d0fe[_0x2c3f45(0x126)]='failFast.active';const _0x4978e4=_0x11d0fe;this[_0x2c3f45(0xd6)]=_0x4978e4[_0x2c3f45(0xf3)](_0x18a95f,{}),this['buildName']=_0x191c0e,this[_0x2c3f45(0xef)]=_0x304d59,this[_0x2c3f45(0x103)]=!!(process['env']['BROWSERSTACK_BUILD_RUN_IDENTIFIER']&&process[_0x2c3f45(0x11f)][_0x2c3f45(0x12b)]&&process[_0x2c3f45(0x11f)][_0x2c3f45(0xd3)]);const _0x36f81f=this[_0x2c3f45(0xd6)][_0x2c3f45(0x11a)];this['stateFilePath']=path[_0x2c3f45(0x107)](_0x36f81f,_0x4978e4['elbaS']),this['lockFilePath']=path[_0x2c3f45(0x107)](_0x36f81f,_0x4978e4[_0x2c3f45(0xcc)]),this[_0x2c3f45(0x115)]=path[_0x2c3f45(0x107)](_0x36f81f,_0x4978e4[_0x2c3f45(0x126)]),this[_0x2c3f45(0xf7)]=new FileHelper(this[_0x2c3f45(0xd6)],this[_0x2c3f45(0x111)],this[_0x2c3f45(0xc2)],this[_0x2c3f45(0xe8)]()),this['state']=this[_0x2c3f45(0xe8)](),this[_0x2c3f45(0x145)]=null,this[_0x2c3f45(0x103)]&&(this[_0x2c3f45(0xf1)]=new Set()),this['_initializeStateFromFile']()['catch'](_0x5b8cf0=>{const _0x5337c5=_0x2c3f45;logger['error']('['+TAG+_0x5337c5(0x137)+_0x5b8cf0[_0x5337c5(0x11b)]+(_0x5b8cf0[_0x5337c5(0xe0)]?_0x4978e4['WdYXh'](_0x4978e4[_0x5337c5(0xeb)],_0x5b8cf0['stack']):'')),this['state']=this[_0x5337c5(0xe8)]();}),this[_0x2c3f45(0x103)]&&this[_0x2c3f45(0x144)](),logger[_0x2c3f45(0x146)]('['+TAG+_0x2c3f45(0x12d)+this[_0x2c3f45(0xd6)][_0x2c3f45(0x139)]+_0x2c3f45(0x101)+this[_0x2c3f45(0x103)]);}[a119_0x546bf6(0xe8)](){const _0x9e5a28={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x9e5a28;}async[a119_0x546bf6(0xc7)](){const _0x3ab5f1=a119_0x546bf6,_0x32d4bd={};_0x32d4bd[_0x3ab5f1(0xe7)]=function(_0x4c32f3,_0xea2983){return _0x4c32f3+_0xea2983;},_0x32d4bd[_0x3ab5f1(0x13f)]=_0x3ab5f1(0x10a),_0x32d4bd[_0x3ab5f1(0xe6)]=function(_0x2f3659,_0x1128a0){return _0x2f3659+_0x1128a0;};const _0x41ad0b=_0x32d4bd;if(this[_0x3ab5f1(0x103)])try{fs[_0x3ab5f1(0xce)](this[_0x3ab5f1(0x115)])&&(this[_0x3ab5f1(0xcb)]['failFastActive']=!![],logger[_0x3ab5f1(0x146)]('['+TAG+_0x3ab5f1(0x109)));}catch(_0xb6f659){logger[_0x3ab5f1(0x12a)]('['+TAG+_0x3ab5f1(0x131)+_0xb6f659[_0x3ab5f1(0x11b)]+(_0xb6f659[_0x3ab5f1(0xe0)]?_0x41ad0b[_0x3ab5f1(0xe7)](_0x41ad0b[_0x3ab5f1(0x13f)],_0xb6f659[_0x3ab5f1(0xe0)]):''));}else try{const _0x578473=await this[_0x3ab5f1(0xf7)][_0x3ab5f1(0x141)]();if(_0x578473)this[_0x3ab5f1(0xcb)]={...this['_getDefaultState'](),..._0x578473,'uniqueFailedTests':new Set(_0x578473[_0x3ab5f1(0x13c)]||[])},logger[_0x3ab5f1(0x146)]('['+TAG+'_Local]\x20State\x20initialized\x20from\x20file.');else{logger[_0x3ab5f1(0x146)]('['+TAG+_0x3ab5f1(0x108));const _0x115147=this['_getDefaultState'](),_0x88630f={..._0x115147,'uniqueFailedTests':Array[_0x3ab5f1(0x12e)](_0x115147['uniqueFailedTests'])};await this[_0x3ab5f1(0xf7)]['writeState'](_0x88630f),this[_0x3ab5f1(0xcb)]=_0x115147;}}catch(_0x59e119){logger['debug']('['+TAG+_0x3ab5f1(0x125)+_0x59e119[_0x3ab5f1(0x11b)]+(_0x59e119[_0x3ab5f1(0xe0)]?_0x41ad0b['VnETi'](_0x41ad0b['nyARK'],_0x59e119['stack']):'')),this[_0x3ab5f1(0xcb)]=this[_0x3ab5f1(0xe8)]();}}async[a119_0x546bf6(0x121)](_0x573153,_0x467156){const _0x4a8cf0=a119_0x546bf6,_0x179fcd={};_0x179fcd['KYjmS']=function(_0x4e2d4e,_0x13455e){return _0x4e2d4e>_0x13455e;},_0x179fcd[_0x4a8cf0(0xd7)]=_0x4a8cf0(0x100),_0x179fcd[_0x4a8cf0(0xde)]=_0x4a8cf0(0x106),_0x179fcd['Ckkxk']=function(_0x53fa6a,_0x2d2f7a){return _0x53fa6a+_0x2d2f7a;},_0x179fcd[_0x4a8cf0(0xfe)]=_0x4a8cf0(0x10a),_0x179fcd[_0x4a8cf0(0xc4)]=function(_0x255484,_0xa6f576){return _0x255484||_0xa6f576;},_0x179fcd[_0x4a8cf0(0x135)]=function(_0x42a501,_0x21df4a){return _0x42a501+_0x21df4a;};const _0x231e5e=_0x179fcd;if(this[_0x4a8cf0(0x103)])this[_0x4a8cf0(0xcb)][_0x4a8cf0(0x134)]+=0x1,_0x467156&&_0x231e5e[_0x4a8cf0(0xc3)](_0x467156['length'],0x0)&&(!this[_0x4a8cf0(0xf1)][_0x4a8cf0(0xd5)](_0x573153)&&(await this[_0x4a8cf0(0xd8)](_0x573153),this[_0x4a8cf0(0xf1)][_0x4a8cf0(0xfc)](_0x573153)));else try{const _0x203cf1={'fullName':_0x573153,'status':_0x467156&&_0x231e5e['KYjmS'](_0x467156[_0x4a8cf0(0xf0)],0x0)?_0x231e5e[_0x4a8cf0(0xd7)]:_0x231e5e['dGnPO']},_0x509245=await this['fileHelper'][_0x4a8cf0(0xcf)](_0x203cf1);this['state']={...this[_0x4a8cf0(0xe8)](),..._0x509245['newState'],'uniqueFailedTests':new Set(_0x509245[_0x4a8cf0(0x128)]['uniqueFailedTests']||[])};}catch(_0x1e5a28){logger[_0x4a8cf0(0x12a)]('['+TAG+'_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20'+_0x1e5a28[_0x4a8cf0(0x11b)]+(_0x1e5a28[_0x4a8cf0(0xe0)]?_0x231e5e[_0x4a8cf0(0x118)](_0x231e5e[_0x4a8cf0(0xfe)],_0x1e5a28[_0x4a8cf0(0xe0)]):''));try{const _0x3e56c6=await this['fileHelper']['readState']();this[_0x4a8cf0(0xcb)]={...this[_0x4a8cf0(0xe8)](),..._0x231e5e[_0x4a8cf0(0xc4)](_0x3e56c6,{}),'uniqueFailedTests':new Set(_0x3e56c6?_0x3e56c6[_0x4a8cf0(0x13c)]||[]:[])},logger[_0x4a8cf0(0x146)]('['+TAG+'_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.');}catch(_0xc4b6e5){logger['error']('['+TAG+_0x4a8cf0(0x143)+_0xc4b6e5[_0x4a8cf0(0x11b)]+(_0xc4b6e5['stack']?_0x231e5e[_0x4a8cf0(0x135)](_0x231e5e[_0x4a8cf0(0xfe)],_0xc4b6e5[_0x4a8cf0(0xe0)]):'')),this[_0x4a8cf0(0xcb)]=this[_0x4a8cf0(0xe8)]();}}}async[a119_0x546bf6(0xd8)](_0xccef5a){const _0x3199c4=a119_0x546bf6,_0xb050e5={};_0xb050e5[_0x3199c4(0xed)]=function(_0x352ec9,_0x3c76fc){return _0x352ec9+_0x3c76fc;},_0xb050e5[_0x3199c4(0x119)]='\x0aStack:\x20';const _0x5013ac=_0xb050e5;if(!this[_0x3199c4(0x103)]||!_0xccef5a)return;try{logger[_0x3199c4(0x146)]('['+TAG+_0x3199c4(0xea)+_0xccef5a);const _0x84ef9b={};_0x84ef9b[_0x3199c4(0xd0)]=this[_0x3199c4(0xd0)],_0x84ef9b['projectName']=this[_0x3199c4(0xef)],_0x84ef9b[_0x3199c4(0x113)]=[_0xccef5a],_0x84ef9b[_0x3199c4(0xd9)]=process[_0x3199c4(0x11f)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'],await RequestUtils[_0x3199c4(0x138)](_0x84ef9b);}catch(_0x1d4200){logger['error']('['+TAG+_0x3199c4(0xe2)+_0xccef5a+_0x3199c4(0x10f)+_0x1d4200[_0x3199c4(0x11b)]+(_0x1d4200['stack']?_0x5013ac[_0x3199c4(0xed)](_0x5013ac['YlkhH'],_0x1d4200[_0x3199c4(0xe0)]):''));}}async[a119_0x546bf6(0x10d)](){const _0x28fe6a=a119_0x546bf6,_0x4899dd={};_0x4899dd[_0x28fe6a(0x10e)]=function(_0x50fcf0,_0x29adbf){return _0x50fcf0===_0x29adbf;},_0x4899dd[_0x28fe6a(0x116)]=_0x28fe6a(0x120),_0x4899dd[_0x28fe6a(0x114)]=function(_0x1587c2,_0x5b5b41){return _0x1587c2+_0x5b5b41;},_0x4899dd[_0x28fe6a(0x102)]=_0x28fe6a(0x10a),_0x4899dd[_0x28fe6a(0xec)]=function(_0x39fa6e,_0x50e26d){return _0x39fa6e!==_0x50e26d;};const _0x2aabf0=_0x4899dd;if(!this[_0x28fe6a(0x103)])return 0x0;try{const _0x385029={};_0x385029['buildName']=this[_0x28fe6a(0xd0)],_0x385029[_0x28fe6a(0xef)]=this[_0x28fe6a(0xef)],_0x385029[_0x28fe6a(0xd9)]=process['env'][_0x28fe6a(0x10c)];const _0x133a00=await RequestUtils[_0x28fe6a(0xf8)](_0x385029);return logger['debug']('['+TAG+_0x28fe6a(0x12c)+_0x133a00),_0x2aabf0[_0x28fe6a(0x10e)](typeof _0x133a00,_0x2aabf0[_0x28fe6a(0x116)])?_0x133a00:0x0;}catch(_0x2f50d9){return logger['error']('['+TAG+_0x28fe6a(0xee)+_0x2f50d9[_0x28fe6a(0x11b)]+(_0x2f50d9[_0x28fe6a(0xe0)]?_0x2aabf0['ChfdU'](_0x2aabf0[_0x28fe6a(0x102)],_0x2f50d9[_0x28fe6a(0xe0)]):'')),_0x2aabf0[_0x28fe6a(0xec)](this[_0x28fe6a(0xcb)][_0x28fe6a(0x10b)],undefined)?this[_0x28fe6a(0xcb)][_0x28fe6a(0x10b)]:0x0;}}async['_pollFailedTests'](){const _0xd2c256=a119_0x546bf6,_0x4f056e={};_0x4f056e[_0xd2c256(0x136)]=function(_0x29e76c,_0x529dde){return _0x29e76c!==_0x529dde;},_0x4f056e[_0xd2c256(0x142)]=function(_0x5db9ec,_0x1e4847){return _0x5db9ec+_0x1e4847;},_0x4f056e[_0xd2c256(0xcd)]=_0xd2c256(0x10a);const _0x15fbd2=_0x4f056e;if(!this[_0xd2c256(0x103)])return;try{const _0x27cad3=await this[_0xd2c256(0x10d)]();_0x15fbd2[_0xd2c256(0x136)](_0x27cad3,this[_0xd2c256(0xcb)][_0xd2c256(0x10b)])&&(logger[_0xd2c256(0x146)]('['+TAG+_0xd2c256(0xdf)+_0x27cad3+_0xd2c256(0xc5)+this[_0xd2c256(0xcb)][_0xd2c256(0x10b)]+')'),this['state'][_0xd2c256(0x10b)]=_0x27cad3);}catch(_0x3614ca){logger['error']('['+TAG+'_CI]\x20Error\x20during\x20polling\x20logic:\x20'+_0x3614ca[_0xd2c256(0x11b)]+(_0x3614ca[_0xd2c256(0xe0)]?_0x15fbd2[_0xd2c256(0x142)](_0x15fbd2[_0xd2c256(0xcd)],_0x3614ca[_0xd2c256(0xe0)]):''));}}async[a119_0x546bf6(0x144)](){const _0x3ecb65=a119_0x546bf6,_0x50566d={'GjoZf':function(_0x1887f,_0x4ee824,_0x5af58c){return _0x1887f(_0x4ee824,_0x5af58c);}};this['pollingInterval']&&this[_0x3ecb65(0xc6)](),this[_0x3ecb65(0x103)]&&(await this['_pollFailedTests'](),this[_0x3ecb65(0x145)]=_0x50566d[_0x3ecb65(0x127)](setInterval,async()=>{const _0x483c44=_0x3ecb65;await this[_0x483c44(0xda)]();},POLLING_INTERVAL),logger['debug']('['+TAG+_0x3ecb65(0xd4)+POLLING_INTERVAL+'ms.'));}[a119_0x546bf6(0xc6)](){const _0x4032a7=a119_0x546bf6,_0x45ae91={'JJjXN':function(_0x409331,_0x3d5435){return _0x409331(_0x3d5435);}};this['pollingInterval']&&(_0x45ae91['JJjXN'](clearInterval,this['pollingInterval']),this[_0x4032a7(0x145)]=null,logger['debug']('['+TAG+_0x4032a7(0xf5)));}async[a119_0x546bf6(0x124)](){const _0x3813e2=a119_0x546bf6,_0x360a66={};_0x360a66[_0x3813e2(0xfd)]=function(_0x5bb64e,_0x50cd97){return _0x5bb64e===_0x50cd97;},_0x360a66[_0x3813e2(0x133)]=function(_0xb07b47,_0xb0792){return _0xb07b47<=_0xb0792;},_0x360a66[_0x3813e2(0x12f)]=function(_0x4002ae,_0x4acef3){return _0x4002ae+_0x4acef3;},_0x360a66[_0x3813e2(0x129)]='\x0aStack:\x20',_0x360a66[_0x3813e2(0x11c)]=function(_0x898738,_0x3a2346){return _0x898738!==_0x3a2346;},_0x360a66[_0x3813e2(0x11d)]=function(_0x5c4de5,_0x2e4eb7){return _0x5c4de5>=_0x2e4eb7;},_0x360a66[_0x3813e2(0x148)]=function(_0x924014,_0x23c813){return _0x924014+_0x23c813;},_0x360a66[_0x3813e2(0xe9)]=function(_0x3ff9c2,_0x46ac03){return _0x3ff9c2+_0x46ac03;},_0x360a66[_0x3813e2(0x130)]=function(_0x28bb5b,_0x582f64){return _0x28bb5b+_0x582f64;};const _0x48ffb7=_0x360a66,{failureThresholdCount:_0x52967f}=this[_0x3813e2(0xd6)];if(_0x48ffb7[_0x3813e2(0xfd)](_0x52967f,null)||_0x48ffb7[_0x3813e2(0xfd)](_0x52967f,undefined)||_0x48ffb7['ZAaRs'](_0x52967f,0x0))return logger[_0x3813e2(0x146)]('['+TAG+']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.'),![];if(this[_0x3813e2(0x103)]){try{if(fs['existsSync'](this[_0x3813e2(0x115)]))return logger[_0x3813e2(0x146)]('['+TAG+'_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.'),!this[_0x3813e2(0xcb)][_0x3813e2(0x117)]&&(this['state'][_0x3813e2(0x117)]=!![]),this[_0x3813e2(0xc6)](),!![];}catch(_0x253600){logger['error']('['+TAG+_0x3813e2(0x131)+_0x253600[_0x3813e2(0x11b)]+(_0x253600['stack']?_0x48ffb7[_0x3813e2(0x12f)](_0x48ffb7[_0x3813e2(0x129)],_0x253600[_0x3813e2(0xe0)]):''));}const _0x1abbc4=_0x48ffb7[_0x3813e2(0x11c)](this['state'][_0x3813e2(0x10b)],undefined)?this[_0x3813e2(0xcb)][_0x3813e2(0x10b)]:0x0;if(_0x48ffb7['lVZeJ'](_0x1abbc4,_0x52967f)){logger[_0x3813e2(0x140)]('['+TAG+_0x3813e2(0xc9)+_0x1abbc4+_0x3813e2(0x147)+_0x52967f+'.');try{fs['writeFileSync'](this[_0x3813e2(0x115)],new Date()['toISOString']()),logger['debug']('['+TAG+_0x3813e2(0x13a)+this[_0x3813e2(0x115)]),this[_0x3813e2(0xcb)][_0x3813e2(0x117)]=!![];}catch(_0x5c078b){logger[_0x3813e2(0x12a)]('['+TAG+_0x3813e2(0xfa)+_0x5c078b[_0x3813e2(0x11b)]+(_0x5c078b[_0x3813e2(0xe0)]?_0x48ffb7[_0x3813e2(0x148)](_0x48ffb7[_0x3813e2(0x129)],_0x5c078b[_0x3813e2(0xe0)]):''));}return this['stopPolling'](),!![];}}else{let _0x56679a;try{_0x56679a=await this[_0x3813e2(0xf7)][_0x3813e2(0x141)]();if(!_0x56679a)return logger['warn']('['+TAG+_0x3813e2(0xdc)),![];}catch(_0x29fbe2){return logger[_0x3813e2(0x12a)]('['+TAG+_0x3813e2(0xff)+_0x29fbe2[_0x3813e2(0x11b)]+(_0x29fbe2[_0x3813e2(0xe0)]?_0x48ffb7[_0x3813e2(0xe9)](_0x48ffb7['QnpKz'],_0x29fbe2[_0x3813e2(0xe0)]):'')),![];}this['state']={...this[_0x3813e2(0xe8)](),..._0x56679a,'uniqueFailedTests':new Set(_0x56679a[_0x3813e2(0x13c)]||[])};if(this[_0x3813e2(0xcb)][_0x3813e2(0x117)])return logger[_0x3813e2(0x146)]('['+TAG+_0x3813e2(0xe3)),!![];const _0x923d4e=this[_0x3813e2(0xcb)][_0x3813e2(0x13c)],_0x35353a=_0x923d4e[_0x3813e2(0x13e)];if(_0x48ffb7[_0x3813e2(0x11d)](_0x35353a,_0x52967f)){try{logger[_0x3813e2(0x140)]('['+TAG+_0x3813e2(0x132)+_0x35353a+',\x20threshold:\x20'+_0x52967f+'.'),this[_0x3813e2(0xcb)][_0x3813e2(0x117)]=!![];}catch(_0x57d6fa){logger[_0x3813e2(0x12a)]('['+TAG+_0x3813e2(0x104)+_0x57d6fa[_0x3813e2(0x11b)]+(_0x57d6fa[_0x3813e2(0xe0)]?_0x48ffb7[_0x3813e2(0x130)](_0x48ffb7[_0x3813e2(0x129)],_0x57d6fa[_0x3813e2(0xe0)]):''));}return!![];}}return![];}async[a119_0x546bf6(0x112)](){const _0x237a24=a119_0x546bf6,_0xe6377={};_0xe6377[_0x237a24(0xf2)]=function(_0x1072dd,_0x4cb155){return _0x1072dd+_0x4cb155;},_0xe6377[_0x237a24(0xd1)]='\x0aStack:\x20';const _0x1e9d3c=_0xe6377;this['stopPolling']();if(this[_0x237a24(0x103)])logger[_0x237a24(0x146)]('['+TAG+_0x237a24(0xf4));else try{const _0x274d49={...this[_0x237a24(0xcb)],'uniqueFailedTests':Array[_0x237a24(0x12e)](this[_0x237a24(0xcb)][_0x237a24(0x13c)]||new Set())};await this[_0x237a24(0xf7)]['writeState'](_0x274d49),logger[_0x237a24(0x146)]('['+TAG+'_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.');}catch(_0xe90ea){logger[_0x237a24(0x12a)]('['+TAG+_0x237a24(0xd2)+_0xe90ea['message']+(_0xe90ea[_0x237a24(0xe0)]?_0x1e9d3c[_0x237a24(0xf2)](_0x1e9d3c['thtBZ'],_0xe90ea['stack']):''));}}}function a119_0x1626(){const _0x510b11=[',\x20threshold:\x20','TXOnZ','lockFilePath','KYjmS','CaCyg','\x20(was\x20','stopPolling','_initializeStateFromFile','25QEPNdy','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','34862onWeNP','state','KLwPh','PJHcP','existsSync','recordTestResult','buildName','thtBZ','_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20','BROWSERSTACK_TOTAL_NODE_COUNT','_CI]\x20Polling\x20started\x20with\x20interval:\x20','has','failFastConfig','OSScy','_sendFailedTestsToAPI','buildRunIdentifier','_pollFailedTests','723HYcedX','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.','WdYXh','dGnPO','_CI]\x20API\x20failed\x20count\x20updated:\x20','stack','failFastState.lock','_CI]\x20Error\x20sending\x20failed\x20test\x20','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','1301370mFVgpv','winstonLogger','VnETi','MJeqk','_getDefaultState','mQKQo','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20','qbigr','BLRYJ','JmmOZ','_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20','projectName','length','reportedFailuresToAPI','LMoQN','ANcIO','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.',']\x20Polling\x20stopped.','3412233SvLXOX','fileHelper','getFailedTestsCount','10FUwKZd','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','11pVIDiC','add','EtACU','ioKUN','_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20','failed',',\x20CI\x20Mode:\x20','YWhYD','isCIMode','_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20','1624164geLhCd','passed','join','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.','_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.','\x0aStack:\x20','lastAPIFailedCount','BROWSERSTACK_BUILD_RUN_IDENTIFIER','_fetchAPIFailedCount','YJodu','\x20to\x20API:\x20','544008NsyvaO','stateFilePath','cleanup','failedTests','ChfdU','failFastActiveMarkerPath','xjUOj','failFastActive','Ckkxk','YlkhH','workingDir','message','XhRMC','lVZeJ','path','env','number','onTestDone','./fileHelper','40wXQNmS','shouldFailFast','_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20','PZoQB','GjoZf','newState','QnpKz','error','BROWSERSTACK_NODE_INDEX','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20','from','taoYs','OMBrN','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','ZAaRs','totalTests','OpKlo','ANxlw',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20','putFailedTests','failureThresholdCount','_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20','627620guOJrG','uniqueFailedTests','4940OADogC','size','nyARK','info','readState','rBqsW','_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20','startPolling','pollingInterval','debug'];a119_0x1626=function(){return _0x510b11;};return a119_0x1626();}module['exports']=FailFastManager;
@@ -1 +1 @@
1
- const a120_0x9bef56=a120_0x46c5;function a120_0x46c5(_0x16152c,_0x52e332){const _0x7d3fe4=a120_0x7d3f();return a120_0x46c5=function(_0x46c583,_0x4e43a8){_0x46c583=_0x46c583-0xb7;let _0x47a2fb=_0x7d3fe4[_0x46c583];return _0x47a2fb;},a120_0x46c5(_0x16152c,_0x52e332);}(function(_0x432ed0,_0x5bc9e4){const _0xd5fda2=a120_0x46c5,_0x1be068=_0x432ed0();while(!![]){try{const _0x28584b=parseInt(_0xd5fda2(0xe8))/0x1*(parseInt(_0xd5fda2(0xc0))/0x2)+-parseInt(_0xd5fda2(0xc3))/0x3*(parseInt(_0xd5fda2(0xea))/0x4)+-parseInt(_0xd5fda2(0xe3))/0x5+parseInt(_0xd5fda2(0xe7))/0x6*(-parseInt(_0xd5fda2(0xd5))/0x7)+parseInt(_0xd5fda2(0xcd))/0x8+parseInt(_0xd5fda2(0xcf))/0x9*(-parseInt(_0xd5fda2(0xcb))/0xa)+parseInt(_0xd5fda2(0xd8))/0xb*(parseInt(_0xd5fda2(0xd3))/0xc);if(_0x28584b===_0x5bc9e4)break;else _0x1be068['push'](_0x1be068['shift']());}catch(_0x5b8236){_0x1be068['push'](_0x1be068['shift']());}}}(a120_0x7d3f,0x19b35));function a120_0x7d3f(){const _0x45799a=['iterator','12RUlQsq','openSync','483bOQyJH','dwSdo','function','2345882alnTVu','newState','status','code','defaultState','fullName','FailFastFileHelper','uSJST','jHBip','lastAPIFailedCount','readFileSync','786390MmTQrT','totalTests','message','lockFilePath','1518XbabpZ','197083EQXmwy','hcftA','4bvngkf','error','writeState','unlinkSync',']\x20Could\x20not\x20acquire\x20lock\x20to\x20record\x20test\x20result.\x20State\x20may\x20be\x20stale.','mqISH',']\x20Error\x20reading\x20state\x20file:\x20','readState','utf8','parse','3|2|0|4|1','split','writeFileSync','yqltI','stateFilePath','stack','uniqueFailedTests','failedTests','lwvpf','2fnnDgo','exports','updateAPIFailedCount','429648rcOTAp','has','failed','isNewFailure','releaseLock',']\x20Could\x20not\x20acquire\x20lock\x20to\x20update\x20API\x20failed\x20count.\x20State\x20may\x20be\x20stale.','existsSync','acquireLock','349290gUGkPJ','closeSync','1220728AKpChJ','Phkam','36sREvCH','cHgYJ','stringify'];a120_0x7d3f=function(){return _0x45799a;};return a120_0x7d3f();}const fs=require('fs'),logger=require('../logger')['winstonLogger'],TAG=a120_0x9bef56(0xde);class FileHelper{constructor(_0x89ad3e,_0x2406c1,_0x5c33a8,_0x3478d9){const _0x1d5a47=a120_0x9bef56,_0x87582a={};_0x87582a[_0x1d5a47(0xce)]=_0x1d5a47(0xb7),_0x87582a[_0x1d5a47(0xe0)]='utf8';const _0xeab9c5=_0x87582a,_0x747948=_0xeab9c5[_0x1d5a47(0xce)][_0x1d5a47(0xb8)]('|');let _0x2c9c42=0x0;while(!![]){switch(_0x747948[_0x2c9c42++]){case'0':this[_0x1d5a47(0xe6)]=_0x5c33a8;continue;case'1':if(!fs[_0x1d5a47(0xc9)](this[_0x1d5a47(0xbb)]))try{fs[_0x1d5a47(0xb9)](this[_0x1d5a47(0xbb)],'{}',_0xeab9c5['jHBip']);}catch(_0x582de9){logger[_0x1d5a47(0xeb)]('['+TAG+']\x20Error\x20creating\x20state\x20file:\x20'+_0x582de9[_0x1d5a47(0xe5)]+'\x20'+_0x582de9[_0x1d5a47(0xbc)]);}continue;case'2':this[_0x1d5a47(0xbb)]=_0x2406c1;continue;case'3':this['failFastConfig']=_0x89ad3e;continue;case'4':this[_0x1d5a47(0xdc)]=_0x3478d9;continue;}break;}}async[a120_0x9bef56(0xca)](){const _0xb2d7f0=a120_0x9bef56,_0x4fe27d={};_0x4fe27d[_0xb2d7f0(0xd0)]=function(_0x18c791,_0x3f3350){return _0x18c791===_0x3f3350;},_0x4fe27d[_0xb2d7f0(0xdf)]='EEXIST';const _0x60be77=_0x4fe27d;let _0x139b8c;try{return _0x139b8c=fs[_0xb2d7f0(0xd4)](this[_0xb2d7f0(0xe6)],'wx'),_0x139b8c;}catch(_0x521517){if(_0x60be77[_0xb2d7f0(0xd0)](_0x521517[_0xb2d7f0(0xdb)],_0x60be77[_0xb2d7f0(0xdf)]))return null;throw _0x521517;}}async[a120_0x9bef56(0xc7)](_0x2fd720){const _0x27a7de=a120_0x9bef56;if(_0x2fd720)try{fs[_0x27a7de(0xcc)](_0x2fd720),fs[_0x27a7de(0xed)](this[_0x27a7de(0xe6)]);}catch(_0x4b9038){logger[_0x27a7de(0xeb)]('['+TAG+']\x20Error\x20releasing\x20lock:\x20'+_0x4b9038[_0x27a7de(0xe5)]+'\x20'+_0x4b9038[_0x27a7de(0xbc)]);}}['readState'](){const _0x566daf=a120_0x9bef56,_0x3f3d55={};_0x3f3d55[_0x566daf(0xe9)]=_0x566daf(0xf2);const _0x22e849=_0x3f3d55;try{const _0x48744e=fs[_0x566daf(0xe2)](this[_0x566daf(0xbb)],_0x22e849[_0x566daf(0xe9)]);return JSON['parse'](_0x48744e);}catch(_0x5f0051){return logger[_0x566daf(0xeb)]('['+TAG+_0x566daf(0xf0)+_0x5f0051[_0x566daf(0xe5)]+'\x20'+_0x5f0051[_0x566daf(0xbc)]),null;}}async[a120_0x9bef56(0xec)](_0x4952af){const _0x15abe2=a120_0x9bef56,_0x5691a6={..._0x4952af,'uniqueFailedTests':Array['isArray'](_0x4952af[_0x15abe2(0xbd)])?_0x4952af[_0x15abe2(0xbd)]:Array['from'](_0x4952af['uniqueFailedTests']||[])};try{fs[_0x15abe2(0xb9)](this[_0x15abe2(0xbb)],JSON[_0x15abe2(0xd1)](_0x5691a6,null,0x2));}catch(_0x2d9217){logger['error']('['+TAG+']\x20Error\x20writing\x20state\x20file:\x20'+_0x2d9217[_0x15abe2(0xe5)]+'\x20'+_0x2d9217[_0x15abe2(0xbc)]);throw _0x2d9217;}}async['recordTestResult'](_0x1c6924,_0x1423de){const _0x20cf92=a120_0x9bef56,_0x443bd7={};_0x443bd7[_0x20cf92(0xbf)]=function(_0x3e42f3,_0x47dab1){return _0x3e42f3!==_0x47dab1;},_0x443bd7[_0x20cf92(0xd6)]=_0x20cf92(0xd7),_0x443bd7[_0x20cf92(0xba)]=function(_0x3f930a,_0x4ae5ef){return _0x3f930a===_0x4ae5ef;},_0x443bd7[_0x20cf92(0xef)]=_0x20cf92(0xc5);const _0x48eb9a=_0x443bd7,_0x219efc=await this[_0x20cf92(0xca)]();if(!_0x219efc)return logger['warn']('['+TAG+_0x20cf92(0xee)),{'newState':this[_0x20cf92(0xf1)]()||this['defaultState'],'isNewFailure':![]};try{let _0x31cc35=this['readState']();!_0x31cc35&&(_0x31cc35=JSON['parse'](JSON['stringify'](this[_0x20cf92(0xdc)])));if(!_0x31cc35[_0x20cf92(0xbd)]||_0x48eb9a['lwvpf'](typeof _0x31cc35[_0x20cf92(0xbd)][Symbol[_0x20cf92(0xd2)]],_0x48eb9a['dwSdo']))_0x31cc35[_0x20cf92(0xbd)]=new Set();else Array['isArray'](_0x31cc35[_0x20cf92(0xbd)])&&(_0x31cc35[_0x20cf92(0xbd)]=new Set(_0x31cc35[_0x20cf92(0xbd)]));_0x31cc35[_0x20cf92(0xe4)]=_0x1423de;let _0x3bed86=![];_0x48eb9a[_0x20cf92(0xba)](_0x1c6924[_0x20cf92(0xda)],_0x48eb9a[_0x20cf92(0xef)])&&(_0x31cc35[_0x20cf92(0xbe)]+=0x1,!_0x31cc35[_0x20cf92(0xbd)][_0x20cf92(0xc4)](_0x1c6924['fullName'])&&(_0x31cc35[_0x20cf92(0xbd)]['add'](_0x1c6924[_0x20cf92(0xdd)]),_0x3bed86=!![]));await this[_0x20cf92(0xec)](_0x31cc35);const _0x41ccda={};return _0x41ccda[_0x20cf92(0xd9)]=_0x31cc35,_0x41ccda[_0x20cf92(0xc6)]=_0x3bed86,_0x41ccda;}finally{await this[_0x20cf92(0xc7)](_0x219efc);}}async[a120_0x9bef56(0xc2)](_0x2e2bb9){const _0x1eb6f6=a120_0x9bef56,_0x5022f9=await this[_0x1eb6f6(0xca)]();if(!_0x5022f9)return logger['warn']('['+TAG+_0x1eb6f6(0xc8)),this[_0x1eb6f6(0xf1)]()||this['defaultState'];try{let _0x4f67b1=this[_0x1eb6f6(0xf1)]();return!_0x4f67b1&&(_0x4f67b1=JSON[_0x1eb6f6(0xf3)](JSON[_0x1eb6f6(0xd1)](this[_0x1eb6f6(0xdc)]))),_0x4f67b1[_0x1eb6f6(0xe1)]=_0x2e2bb9,await this[_0x1eb6f6(0xec)](_0x4f67b1),_0x4f67b1;}finally{await this[_0x1eb6f6(0xc7)](_0x5022f9);}}}module[a120_0x9bef56(0xc1)]=FileHelper;
1
+ const a120_0x4bbc1e=a120_0x55cf;function a120_0x55cf(_0x4e4077,_0x2d2b97){const _0x1b5ab7=a120_0x1b5a();return a120_0x55cf=function(_0x55cf5c,_0x581445){_0x55cf5c=_0x55cf5c-0x68;let _0x2d46db=_0x1b5ab7[_0x55cf5c];return _0x2d46db;},a120_0x55cf(_0x4e4077,_0x2d2b97);}(function(_0x576af6,_0x629a69){const _0xacfc0b=a120_0x55cf,_0x3c79fc=_0x576af6();while(!![]){try{const _0x4c15c5=-parseInt(_0xacfc0b(0x95))/0x1+parseInt(_0xacfc0b(0x90))/0x2+parseInt(_0xacfc0b(0x9f))/0x3*(-parseInt(_0xacfc0b(0x70))/0x4)+parseInt(_0xacfc0b(0x91))/0x5*(-parseInt(_0xacfc0b(0x98))/0x6)+-parseInt(_0xacfc0b(0x9c))/0x7*(-parseInt(_0xacfc0b(0x8b))/0x8)+-parseInt(_0xacfc0b(0x6f))/0x9+parseInt(_0xacfc0b(0x97))/0xa;if(_0x4c15c5===_0x629a69)break;else _0x3c79fc['push'](_0x3c79fc['shift']());}catch(_0x45950c){_0x3c79fc['push'](_0x3c79fc['shift']());}}}(a120_0x1b5a,0x68be0));const fs=require('fs'),logger=require('../logger')[a120_0x4bbc1e(0x6d)],TAG=a120_0x4bbc1e(0x85);class FileHelper{constructor(_0x37366b,_0x236051,_0x66ad44,_0x5d5157){const _0x350099=a120_0x4bbc1e,_0x1fc968={};_0x1fc968[_0x350099(0x68)]=_0x350099(0x86),_0x1fc968[_0x350099(0xa1)]=_0x350099(0x92);const _0x562162=_0x1fc968,_0x46b5d2=_0x562162[_0x350099(0x68)][_0x350099(0x8c)]('|');let _0x4b35da=0x0;while(!![]){switch(_0x46b5d2[_0x4b35da++]){case'0':this[_0x350099(0x75)]=_0x37366b;continue;case'1':this[_0x350099(0x6b)]=_0x66ad44;continue;case'2':if(!fs[_0x350099(0x71)](this['stateFilePath']))try{fs[_0x350099(0x8d)](this[_0x350099(0x7b)],'{}',_0x562162[_0x350099(0xa1)]);}catch(_0x4a68bd){logger[_0x350099(0x81)]('['+TAG+_0x350099(0x8f)+_0x4a68bd[_0x350099(0x72)]+'\x20'+_0x4a68bd[_0x350099(0x99)]);}continue;case'3':this['stateFilePath']=_0x236051;continue;case'4':this[_0x350099(0x80)]=_0x5d5157;continue;}break;}}async[a120_0x4bbc1e(0x7f)](){const _0x41603c=a120_0x4bbc1e,_0x4c4803={};_0x4c4803[_0x41603c(0x96)]=function(_0xc49e5c,_0x19be3d){return _0xc49e5c===_0x19be3d;},_0x4c4803[_0x41603c(0x9e)]='EEXIST';const _0x45ce8d=_0x4c4803;let _0x845831;try{return _0x845831=fs[_0x41603c(0x82)](this[_0x41603c(0x6b)],'wx'),_0x845831;}catch(_0x3f11b0){if(_0x45ce8d[_0x41603c(0x96)](_0x3f11b0[_0x41603c(0x69)],_0x45ce8d[_0x41603c(0x9e)]))return null;throw _0x3f11b0;}}async[a120_0x4bbc1e(0x84)](_0xf8e4cd){const _0x839f60=a120_0x4bbc1e;if(_0xf8e4cd)try{fs[_0x839f60(0x73)](_0xf8e4cd),fs[_0x839f60(0x88)](this[_0x839f60(0x6b)]);}catch(_0x286529){logger['error']('['+TAG+_0x839f60(0x87)+_0x286529[_0x839f60(0x72)]+'\x20'+_0x286529[_0x839f60(0x99)]);}}['readState'](){const _0x3b75d6=a120_0x4bbc1e,_0xd0f363={};_0xd0f363[_0x3b75d6(0x76)]='utf8';const _0x1ff845=_0xd0f363;try{const _0x26ed4a=fs['readFileSync'](this[_0x3b75d6(0x7b)],_0x1ff845['PGWRc']);return JSON['parse'](_0x26ed4a);}catch(_0x33720f){return logger[_0x3b75d6(0x81)]('['+TAG+_0x3b75d6(0x9a)+_0x33720f[_0x3b75d6(0x72)]+'\x20'+_0x33720f[_0x3b75d6(0x99)]),null;}}async[a120_0x4bbc1e(0x7e)](_0x5b4ff6){const _0x1cec1e=a120_0x4bbc1e,_0x162147={..._0x5b4ff6,'uniqueFailedTests':Array[_0x1cec1e(0x93)](_0x5b4ff6['uniqueFailedTests'])?_0x5b4ff6[_0x1cec1e(0x8a)]:Array['from'](_0x5b4ff6['uniqueFailedTests']||[])};try{fs['writeFileSync'](this[_0x1cec1e(0x7b)],JSON['stringify'](_0x162147,null,0x2));}catch(_0xf2af55){logger['error']('['+TAG+']\x20Error\x20writing\x20state\x20file:\x20'+_0xf2af55[_0x1cec1e(0x72)]+'\x20'+_0xf2af55[_0x1cec1e(0x99)]);throw _0xf2af55;}}async[a120_0x4bbc1e(0x74)](_0x294119,_0x42d66d){const _0x452d28=a120_0x4bbc1e,_0x5382f7={};_0x5382f7['YoPdO']=function(_0x3b7d64,_0x2080f4){return _0x3b7d64!==_0x2080f4;},_0x5382f7['rHxel']=_0x452d28(0x6c),_0x5382f7['LvFdb']=function(_0x574fe3,_0x407bf5){return _0x574fe3===_0x407bf5;},_0x5382f7[_0x452d28(0x6e)]='failed';const _0xdad735=_0x5382f7,_0x36cf1f=await this[_0x452d28(0x7f)]();if(!_0x36cf1f)return logger['warn']('['+TAG+_0x452d28(0x89)),{'newState':this[_0x452d28(0x7d)]()||this[_0x452d28(0x80)],'isNewFailure':![]};try{let _0xb0f7a3=this[_0x452d28(0x7d)]();!_0xb0f7a3&&(_0xb0f7a3=JSON[_0x452d28(0x78)](JSON['stringify'](this[_0x452d28(0x80)])));if(!_0xb0f7a3[_0x452d28(0x8a)]||_0xdad735['YoPdO'](typeof _0xb0f7a3[_0x452d28(0x8a)][Symbol[_0x452d28(0x7a)]],_0xdad735[_0x452d28(0x83)]))_0xb0f7a3[_0x452d28(0x8a)]=new Set();else Array[_0x452d28(0x93)](_0xb0f7a3[_0x452d28(0x8a)])&&(_0xb0f7a3[_0x452d28(0x8a)]=new Set(_0xb0f7a3[_0x452d28(0x8a)]));_0xb0f7a3[_0x452d28(0x9b)]=_0x42d66d;let _0x1b8b4b=![];_0xdad735['LvFdb'](_0x294119['status'],_0xdad735[_0x452d28(0x6e)])&&(_0xb0f7a3[_0x452d28(0x94)]+=0x1,!_0xb0f7a3[_0x452d28(0x8a)][_0x452d28(0x77)](_0x294119[_0x452d28(0x7c)])&&(_0xb0f7a3['uniqueFailedTests']['add'](_0x294119[_0x452d28(0x7c)]),_0x1b8b4b=!![]));await this[_0x452d28(0x7e)](_0xb0f7a3);const _0x234f02={};return _0x234f02[_0x452d28(0x9d)]=_0xb0f7a3,_0x234f02[_0x452d28(0xa0)]=_0x1b8b4b,_0x234f02;}finally{await this['releaseLock'](_0x36cf1f);}}async[a120_0x4bbc1e(0x6a)](_0xa5821){const _0x449834=a120_0x4bbc1e,_0x59132f=await this['acquireLock']();if(!_0x59132f)return logger[_0x449834(0x79)]('['+TAG+']\x20Could\x20not\x20acquire\x20lock\x20to\x20update\x20API\x20failed\x20count.\x20State\x20may\x20be\x20stale.'),this[_0x449834(0x7d)]()||this[_0x449834(0x80)];try{let _0x3c5b78=this[_0x449834(0x7d)]();return!_0x3c5b78&&(_0x3c5b78=JSON['parse'](JSON['stringify'](this[_0x449834(0x80)]))),_0x3c5b78[_0x449834(0x8e)]=_0xa5821,await this[_0x449834(0x7e)](_0x3c5b78),_0x3c5b78;}finally{await this[_0x449834(0x84)](_0x59132f);}}}module['exports']=FileHelper;function a120_0x1b5a(){const _0x53be68=['writeState','acquireLock','defaultState','error','openSync','rHxel','releaseLock','FailFastFileHelper','0|3|1|4|2',']\x20Error\x20releasing\x20lock:\x20','unlinkSync',']\x20Could\x20not\x20acquire\x20lock\x20to\x20record\x20test\x20result.\x20State\x20may\x20be\x20stale.','uniqueFailedTests','29752oRdRQZ','split','writeFileSync','lastAPIFailedCount',']\x20Error\x20creating\x20state\x20file:\x20','241386utjXor','20zJygMv','utf8','isArray','failedTests','822689YyMeJh','bZkyy','32012490IXSQuC','1009512IVWgnG','stack',']\x20Error\x20reading\x20state\x20file:\x20','totalTests','35lPWkiU','newState','UZRld','3AkuhLI','isNewFailure','eSIia','vqdnQ','code','updateAPIFailedCount','lockFilePath','function','winstonLogger','fjYeQ','6269220CcstSV','2876944CjLbda','existsSync','message','closeSync','recordTestResult','failFastConfig','PGWRc','has','parse','warn','iterator','stateFilePath','fullName','readState'];a120_0x1b5a=function(){return _0x53be68;};return a120_0x1b5a();}
@@ -1 +1 @@
1
- const a121_0x13ea2d=a121_0x76f8;(function(_0x59ae7d,_0x237c7d){const _0x5d237b=a121_0x76f8,_0x5a187d=_0x59ae7d();while(!![]){try{const _0x5d15ae=parseInt(_0x5d237b(0xf8))/0x1*(-parseInt(_0x5d237b(0xf1))/0x2)+-parseInt(_0x5d237b(0x109))/0x3+-parseInt(_0x5d237b(0xeb))/0x4*(parseInt(_0x5d237b(0xed))/0x5)+parseInt(_0x5d237b(0xf6))/0x6+parseInt(_0x5d237b(0xfa))/0x7*(parseInt(_0x5d237b(0x10e))/0x8)+-parseInt(_0x5d237b(0xec))/0x9*(-parseInt(_0x5d237b(0xf0))/0xa)+parseInt(_0x5d237b(0xda))/0xb;if(_0x5d15ae===_0x237c7d)break;else _0x5a187d['push'](_0x5a187d['shift']());}catch(_0x318acf){_0x5a187d['push'](_0x5a187d['shift']());}}}(a121_0xda4b,0xad7ab));function a121_0xda4b(){const _0x4f7e36=['isAbortBuildOnFailureEnabled','enable','2006148VBdBKZ','_instance','abort_build_on_failure','toLowerCase','getRunPreviouslyFailedFirst','16qNgjdY','retryTestsOnFailure','rerunPreviouslyFailed','has','getFailureThreshold','abort_build_','config','name','13118710lvguSU','enabled','getName','runPreviouslyFailedFirst','writeFailureToFile','getTestOrderingName','checkAbortBuildFileExists','maxRetries','isRetryEnabled','path','skip_failing_and_flaky','failed_tests_','existsSync','getRerunPreviouslyFailed','disable','_setSkipFlakyAndFailed','_setRunPreviouslyFailedFirst','532aeWtDT','9TVgbdu','39510UFfaIT','getEnabled','retry_tests_on_failure','7693370FeKMhs','64FpQiVn','_setRerunPreviouslyFailed','abortBuildOnFailure','sNhsc','../logger','7408008zAfcqN','getBuildStartData','24954vZNPMJ','testOrchestrationOptions','112581wXKIAL','isAbortBuildOnFailureSupported','join','getInstance','winstonLogger','tmpdir','skipFlakyAndFailed','skipFlakyandFailed','_setTestOrdering','testOrderingEnabled','.txt','jest','testOrdering'];a121_0xda4b=function(){return _0x4f7e36;};return a121_0xda4b();}const os=require('os'),path=require(a121_0x13ea2d(0xe3)),fs=require('fs'),logger=require(a121_0x13ea2d(0xf5))[a121_0x13ea2d(0xfe)],RETRY_TESTS_ON_FAILURE=a121_0x13ea2d(0x10f),ABORT_BUILD_ON_FAILURE=a121_0x13ea2d(0xf3),RUN_PREVIOUSLY_FAILED_FIRST=a121_0x13ea2d(0xdd),RERUN_PREVIOUSLY_FAILED='rerunPreviouslyFailed',SKIP_FLAKY_AND_FAILED=a121_0x13ea2d(0x101),ALLOWED_ORCHESTRATION_KEYS=new Set([RETRY_TESTS_ON_FAILURE,ABORT_BUILD_ON_FAILURE,RUN_PREVIOUSLY_FAILED_FIRST,RERUN_PREVIOUSLY_FAILED,SKIP_FLAKY_AND_FAILED]),ABORT_BUILD_SUPPORTED_FRAMEWORKS=new Set([a121_0x13ea2d(0x105)]);class TestOrdering{constructor(){const _0xb168df=a121_0x13ea2d;this[_0xb168df(0xdb)]=![],this[_0xb168df(0xd9)]=null;}[a121_0x13ea2d(0x108)](_0x326bc4){this['enabled']=!![],this['name']=_0x326bc4;}['disable'](){const _0x463437=a121_0x13ea2d;this[_0x463437(0xdb)]=![],this[_0x463437(0xd9)]=null;}[a121_0x13ea2d(0xee)](){return this['enabled'];}[a121_0x13ea2d(0xdc)](){return this['name'];}}class OrchestrationUtils{static ['_instance']=null;constructor(_0x1b1902){const _0x18adf8=a121_0x13ea2d,_0x2a8966={};_0x2a8966[_0x18adf8(0xf4)]=function(_0x5914e0,_0x3b47d0){return _0x5914e0||_0x3b47d0;};const _0x372971=_0x2a8966;this[_0x18adf8(0xdd)]=![],this[_0x18adf8(0x110)]=![],this['skipFlakyAndFailed']=![],this[_0x18adf8(0x106)]=new TestOrdering(),this['config']=_0x372971[_0x18adf8(0xf4)](_0x1b1902,{});const _0x1eaccc=_0x1b1902&&_0x1b1902[_0x18adf8(0xf9)]||{};this[_0x18adf8(0xea)](_0x1eaccc[RUN_PREVIOUSLY_FAILED_FIRST]||![]),this[_0x18adf8(0xf2)](_0x1eaccc[RERUN_PREVIOUSLY_FAILED]||![]),this[_0x18adf8(0xe9)](_0x1eaccc[SKIP_FLAKY_AND_FAILED]||![]);}static[a121_0x13ea2d(0xfd)](_0x43a9bf){const _0x35cdd5=a121_0x13ea2d;return!OrchestrationUtils[_0x35cdd5(0x10a)]&&_0x43a9bf&&(OrchestrationUtils[_0x35cdd5(0x10a)]=new OrchestrationUtils(_0x43a9bf)),OrchestrationUtils[_0x35cdd5(0x10a)];}[a121_0x13ea2d(0xe2)](){const _0x7101db=a121_0x13ea2d,_0x2b68a5=(this[_0x7101db(0xd8)]['testOrchestrationOptions']||{})[RETRY_TESTS_ON_FAILURE]||{};return!!_0x2b68a5[_0x7101db(0xdb)];}['getRetryCount'](){const _0x55f3b6=a121_0x13ea2d,_0x1506d2=(this[_0x55f3b6(0xd8)][_0x55f3b6(0xf9)]||{})[RETRY_TESTS_ON_FAILURE]||{};let _0x23d925=0x0;return this[_0x55f3b6(0xe2)](this[_0x55f3b6(0xd8)])&&(_0x23d925=_0x1506d2[_0x55f3b6(0xe1)]||0x1),_0x23d925;}['getOrchestrationData'](){const _0x12b06f=a121_0x13ea2d,_0x2eee30=this['config'][_0x12b06f(0xf9)]||{},_0x56c799={};for(const _0x367a95 in _0x2eee30){ALLOWED_ORCHESTRATION_KEYS[_0x12b06f(0x111)](_0x367a95)&&(_0x56c799[_0x367a95]=_0x2eee30[_0x367a95]);}return _0x56c799;}[a121_0x13ea2d(0xe0)](){const _0x425c10=a121_0x13ea2d,_0x6ad2c7=process['env']['BROWSERSTACK_TESTHUB_UUID'],_0x40d8c1=path['join'](os['tmpdir'](),_0x425c10(0x113)+_0x6ad2c7);return fs[_0x425c10(0xe6)](_0x40d8c1);}[a121_0x13ea2d(0xde)](_0x17adc6){const _0x51260c=a121_0x13ea2d,_0x3fc093=process['env']['BROWSERSTACK_TESTHUB_UUID'],_0x69e6d8=path[_0x51260c(0xfc)](os[_0x51260c(0xff)](),_0x51260c(0xe5)+_0x3fc093+_0x51260c(0x104));fs['appendFileSync'](_0x69e6d8,_0x17adc6+'\x0a');}[a121_0x13ea2d(0xfb)](_0x5e3f36){const _0x436431=a121_0x13ea2d,_0x382242={};_0x382242['aqzmc']=function(_0x4818f8,_0x21883c){return _0x4818f8||_0x21883c;};const _0x144820=_0x382242;return ABORT_BUILD_SUPPORTED_FRAMEWORKS['has'](_0x144820['aqzmc'](_0x5e3f36,'')[_0x436431(0x10c)]());}['isAbortBuildOnFailureEnabled'](){const _0x128e5f=a121_0x13ea2d,_0x5cf1d5=(this[_0x128e5f(0xd8)][_0x128e5f(0xf9)]||{})[ABORT_BUILD_ON_FAILURE]||{};return!!_0x5cf1d5[_0x128e5f(0xdb)];}['getFailureThreshold'](){const _0x27ef00=a121_0x13ea2d,_0x403f59=(this['config'][_0x27ef00(0xf9)]||{})[ABORT_BUILD_ON_FAILURE]||{};return _0x403f59['maxFailures']||0x5;;}[a121_0x13ea2d(0x10d)](){const _0x550fe2=a121_0x13ea2d;return this[_0x550fe2(0xdd)];}[a121_0x13ea2d(0xea)](_0xd869e7){const _0x47bc11=a121_0x13ea2d;this['runPreviouslyFailedFirst']=!!_0xd869e7,this[_0x47bc11(0x102)]();}['getRerunPreviouslyFailed'](){const _0xa815d1=a121_0x13ea2d;return this[_0xa815d1(0x110)];}['_setRerunPreviouslyFailed'](_0x5c4062){const _0x2e03a4=a121_0x13ea2d;this[_0x2e03a4(0x110)]=!!_0x5c4062,this[_0x2e03a4(0x102)]();}['getSkipFlakyAndFailed'](){const _0x2247f5=a121_0x13ea2d;return this[_0x2247f5(0x100)];}[a121_0x13ea2d(0xe9)](_0x203994){const _0x2570bb=a121_0x13ea2d;this['skipFlakyAndFailed']=!!_0x203994,this[_0x2570bb(0x102)]();}[a121_0x13ea2d(0x102)](){const _0x400bfe=a121_0x13ea2d;if(this['runPreviouslyFailedFirst'])this[_0x400bfe(0x110)]=![],this[_0x400bfe(0x100)]=![],this[_0x400bfe(0x106)][_0x400bfe(0x108)](RUN_PREVIOUSLY_FAILED_FIRST);else{if(this[_0x400bfe(0x110)])this[_0x400bfe(0xdd)]=![],this[_0x400bfe(0x100)]=![],this[_0x400bfe(0x106)]['enable'](RERUN_PREVIOUSLY_FAILED);else this[_0x400bfe(0x100)]?(this[_0x400bfe(0xdd)]=![],this[_0x400bfe(0x110)]=![],this[_0x400bfe(0x106)][_0x400bfe(0x108)](SKIP_FLAKY_AND_FAILED)):this[_0x400bfe(0x106)][_0x400bfe(0xe8)]();}}[a121_0x13ea2d(0x103)](){const _0x5a1426=a121_0x13ea2d;return this[_0x5a1426(0x106)][_0x5a1426(0xee)]();}[a121_0x13ea2d(0xdf)](){const _0x13fb9b=a121_0x13ea2d;if(this[_0x13fb9b(0x106)][_0x13fb9b(0xee)]())return this['testOrdering'][_0x13fb9b(0xdc)]();return null;}[a121_0x13ea2d(0xf7)](){const _0x52ff5a=a121_0x13ea2d,_0x52faad={};return _0x52faad['rerun_previously_failed']={'enabled':this[_0x52ff5a(0xe7)]()},_0x52faad['run_previously_failed_first']={'enabled':this[_0x52ff5a(0x10d)]()},_0x52faad[_0x52ff5a(0xe4)]={'enabled':this['getSkipFlakyAndFailed']()},this[_0x52ff5a(0xe2)]()&&(_0x52faad[_0x52ff5a(0xef)]={'enabled':!![],'max_retries':this['getRetryCount']()}),this[_0x52ff5a(0x107)]()&&(_0x52faad[_0x52ff5a(0x10b)]={'enabled':!![],'max_failures':this[_0x52ff5a(0x112)]()}),_0x52faad;}}function a121_0x76f8(_0x4ef430,_0x2ef351){const _0xda4bdd=a121_0xda4b();return a121_0x76f8=function(_0x76f861,_0x123a87){_0x76f861=_0x76f861-0xd8;let _0x2083a2=_0xda4bdd[_0x76f861];return _0x2083a2;},a121_0x76f8(_0x4ef430,_0x2ef351);}module['exports']=OrchestrationUtils;
1
+ const a121_0x23b744=a121_0x3c6b;function a121_0x1a48(){const _0x109851=['winstonLogger','appendFileSync','skipFlakyandFailed','getOrchestrationData','enabled','22YEbraG','9247iLQNym','63JHNBEW','disable','testOrchestrationOptions','abort_build_on_failure','rerunPreviouslyFailed','writeFailureToFile','_setSkipFlakyAndFailed','getFailureThreshold','isRetryEnabled','35357JCrsxu','372752jLPKwp','run_previously_failed_first','2874mtaWOe','getSkipFlakyAndFailed','enable','join','10nGRwOH','getName','skipFlakyAndFailed','getRetryCount','runPreviouslyFailedFirst','604100wLYaVc','1155242ugVZcq','isAbortBuildOnFailureEnabled','testOrdering','has','exports','isAbortBuildOnFailureSupported','_setTestOrdering','toLowerCase','_setRerunPreviouslyFailed','testOrderingEnabled','BROWSERSTACK_TESTHUB_UUID','abortBuildOnFailure','checkAbortBuildFileExists','skip_failing_and_flaky','getRerunPreviouslyFailed','UBkup','13140UmcJWl','failed_tests_','DWeYz','_setRunPreviouslyFailedFirst','.txt','env','368QznrwY','name','_instance','getRunPreviouslyFailedFirst','path','tmpdir','abort_build_','24jIMGTk','config','9287980NhyuIN'];a121_0x1a48=function(){return _0x109851;};return a121_0x1a48();}(function(_0x117e75,_0x576790){const _0x17545b=a121_0x3c6b,_0x31cfcd=_0x117e75();while(!![]){try{const _0x341947=parseInt(_0x17545b(0x19f))/0x1*(parseInt(_0x17545b(0x194))/0x2)+parseInt(_0x17545b(0x1bc))/0x3*(-parseInt(_0x17545b(0x1c2))/0x4)+parseInt(_0x17545b(0x1ab))/0x5+-parseInt(_0x17545b(0x1a2))/0x6*(parseInt(_0x17545b(0x195))/0x7)+parseInt(_0x17545b(0x1a0))/0x8*(-parseInt(_0x17545b(0x196))/0x9)+-parseInt(_0x17545b(0x1a6))/0xa*(parseInt(_0x17545b(0x1ac))/0xb)+parseInt(_0x17545b(0x1c9))/0xc*(parseInt(_0x17545b(0x18e))/0xd);if(_0x341947===_0x576790)break;else _0x31cfcd['push'](_0x31cfcd['shift']());}catch(_0x34e427){_0x31cfcd['push'](_0x31cfcd['shift']());}}}(a121_0x1a48,0x732d8));const os=require('os'),path=require(a121_0x23b744(0x1c6)),fs=require('fs'),logger=require('../logger')[a121_0x23b744(0x18f)],RETRY_TESTS_ON_FAILURE='retryTestsOnFailure',ABORT_BUILD_ON_FAILURE=a121_0x23b744(0x1b7),RUN_PREVIOUSLY_FAILED_FIRST=a121_0x23b744(0x1aa),RERUN_PREVIOUSLY_FAILED=a121_0x23b744(0x19a),SKIP_FLAKY_AND_FAILED=a121_0x23b744(0x191),ALLOWED_ORCHESTRATION_KEYS=new Set([RETRY_TESTS_ON_FAILURE,ABORT_BUILD_ON_FAILURE,RUN_PREVIOUSLY_FAILED_FIRST,RERUN_PREVIOUSLY_FAILED,SKIP_FLAKY_AND_FAILED]),ABORT_BUILD_SUPPORTED_FRAMEWORKS=new Set(['jest']);class TestOrdering{constructor(){const _0x5f3fbb=a121_0x23b744;this[_0x5f3fbb(0x193)]=![],this[_0x5f3fbb(0x1c3)]=null;}[a121_0x23b744(0x1a4)](_0x15291a){const _0x2ec28d=a121_0x23b744;this[_0x2ec28d(0x193)]=!![],this['name']=_0x15291a;}[a121_0x23b744(0x197)](){const _0x3ed959=a121_0x23b744;this[_0x3ed959(0x193)]=![],this['name']=null;}['getEnabled'](){return this['enabled'];}[a121_0x23b744(0x1a7)](){const _0x393964=a121_0x23b744;return this[_0x393964(0x1c3)];}}class OrchestrationUtils{static [a121_0x23b744(0x1c4)]=null;constructor(_0x2d0508){const _0x238e57=a121_0x23b744,_0x17802e={};_0x17802e['DWeYz']=function(_0x34364f,_0x3764da){return _0x34364f||_0x3764da;};const _0x1f9ad9=_0x17802e;this['runPreviouslyFailedFirst']=![],this[_0x238e57(0x19a)]=![],this[_0x238e57(0x1a8)]=![],this[_0x238e57(0x1ae)]=new TestOrdering(),this[_0x238e57(0x1ca)]=_0x1f9ad9[_0x238e57(0x1be)](_0x2d0508,{});const _0x380e40=_0x2d0508&&_0x2d0508[_0x238e57(0x198)]||{};this['_setRunPreviouslyFailedFirst'](_0x380e40[RUN_PREVIOUSLY_FAILED_FIRST]||![]),this[_0x238e57(0x1b4)](_0x380e40[RERUN_PREVIOUSLY_FAILED]||![]),this[_0x238e57(0x19c)](_0x380e40[SKIP_FLAKY_AND_FAILED]||![]);}static['getInstance'](_0x3aa301){const _0x36e05a=a121_0x23b744;return!OrchestrationUtils[_0x36e05a(0x1c4)]&&_0x3aa301&&(OrchestrationUtils['_instance']=new OrchestrationUtils(_0x3aa301)),OrchestrationUtils[_0x36e05a(0x1c4)];}['isRetryEnabled'](){const _0x186e8f=a121_0x23b744,_0x216fb5=(this[_0x186e8f(0x1ca)][_0x186e8f(0x198)]||{})[RETRY_TESTS_ON_FAILURE]||{};return!!_0x216fb5[_0x186e8f(0x193)];}['getRetryCount'](){const _0x560cc5=a121_0x23b744,_0x2c72f7=(this['config']['testOrchestrationOptions']||{})[RETRY_TESTS_ON_FAILURE]||{};let _0x2dbc64=0x0;return this[_0x560cc5(0x19e)](this['config'])&&(_0x2dbc64=_0x2c72f7['maxRetries']||0x1),_0x2dbc64;}[a121_0x23b744(0x192)](){const _0xef1a0=this['config']['testOrchestrationOptions']||{},_0x334ca6={};for(const _0x1f790d in _0xef1a0){ALLOWED_ORCHESTRATION_KEYS['has'](_0x1f790d)&&(_0x334ca6[_0x1f790d]=_0xef1a0[_0x1f790d]);}return _0x334ca6;}[a121_0x23b744(0x1b8)](){const _0x3f3a8d=a121_0x23b744,_0x24932b=process[_0x3f3a8d(0x1c1)]['BROWSERSTACK_TESTHUB_UUID'],_0x23a629=path[_0x3f3a8d(0x1a5)](os[_0x3f3a8d(0x1c7)](),_0x3f3a8d(0x1c8)+_0x24932b);return fs['existsSync'](_0x23a629);}[a121_0x23b744(0x19b)](_0x2be091){const _0x28bb41=a121_0x23b744,_0x3a8ac9=process[_0x28bb41(0x1c1)][_0x28bb41(0x1b6)],_0x245132=path[_0x28bb41(0x1a5)](os['tmpdir'](),_0x28bb41(0x1bd)+_0x3a8ac9+_0x28bb41(0x1c0));fs[_0x28bb41(0x190)](_0x245132,_0x2be091+'\x0a');}[a121_0x23b744(0x1b1)](_0x378e45){const _0x10104e=a121_0x23b744,_0x2f21af={};_0x2f21af[_0x10104e(0x1bb)]=function(_0x177ac6,_0x20c1be){return _0x177ac6||_0x20c1be;};const _0x5d954e=_0x2f21af;return ABORT_BUILD_SUPPORTED_FRAMEWORKS[_0x10104e(0x1af)](_0x5d954e['UBkup'](_0x378e45,'')[_0x10104e(0x1b3)]());}['isAbortBuildOnFailureEnabled'](){const _0x51b431=a121_0x23b744,_0x46b388=(this[_0x51b431(0x1ca)][_0x51b431(0x198)]||{})[ABORT_BUILD_ON_FAILURE]||{};return!!_0x46b388['enabled'];}[a121_0x23b744(0x19d)](){const _0x5e31d2=a121_0x23b744,_0x4ae73e=(this[_0x5e31d2(0x1ca)][_0x5e31d2(0x198)]||{})[ABORT_BUILD_ON_FAILURE]||{};return _0x4ae73e['maxFailures']||0x5;;}[a121_0x23b744(0x1c5)](){return this['runPreviouslyFailedFirst'];}[a121_0x23b744(0x1bf)](_0x42e650){const _0xa86523=a121_0x23b744;this[_0xa86523(0x1aa)]=!!_0x42e650,this[_0xa86523(0x1b2)]();}[a121_0x23b744(0x1ba)](){const _0x3d7d8e=a121_0x23b744;return this[_0x3d7d8e(0x19a)];}[a121_0x23b744(0x1b4)](_0x917def){const _0x574f6c=a121_0x23b744;this[_0x574f6c(0x19a)]=!!_0x917def,this[_0x574f6c(0x1b2)]();}[a121_0x23b744(0x1a3)](){const _0x3c2103=a121_0x23b744;return this[_0x3c2103(0x1a8)];}[a121_0x23b744(0x19c)](_0x572536){const _0x2ff2fe=a121_0x23b744;this[_0x2ff2fe(0x1a8)]=!!_0x572536,this[_0x2ff2fe(0x1b2)]();}['_setTestOrdering'](){const _0x1160b2=a121_0x23b744;if(this[_0x1160b2(0x1aa)])this[_0x1160b2(0x19a)]=![],this[_0x1160b2(0x1a8)]=![],this[_0x1160b2(0x1ae)][_0x1160b2(0x1a4)](RUN_PREVIOUSLY_FAILED_FIRST);else{if(this[_0x1160b2(0x19a)])this[_0x1160b2(0x1aa)]=![],this[_0x1160b2(0x1a8)]=![],this[_0x1160b2(0x1ae)][_0x1160b2(0x1a4)](RERUN_PREVIOUSLY_FAILED);else this[_0x1160b2(0x1a8)]?(this['runPreviouslyFailedFirst']=![],this[_0x1160b2(0x19a)]=![],this[_0x1160b2(0x1ae)]['enable'](SKIP_FLAKY_AND_FAILED)):this[_0x1160b2(0x1ae)]['disable']();}}[a121_0x23b744(0x1b5)](){const _0x351daa=a121_0x23b744;return this[_0x351daa(0x1ae)]['getEnabled']();}['getTestOrderingName'](){const _0x109f92=a121_0x23b744;if(this[_0x109f92(0x1ae)]['getEnabled']())return this[_0x109f92(0x1ae)][_0x109f92(0x1a7)]();return null;}['getBuildStartData'](){const _0x40d070=a121_0x23b744,_0x332f25={};return _0x332f25['rerun_previously_failed']={'enabled':this[_0x40d070(0x1ba)]()},_0x332f25[_0x40d070(0x1a1)]={'enabled':this[_0x40d070(0x1c5)]()},_0x332f25[_0x40d070(0x1b9)]={'enabled':this[_0x40d070(0x1a3)]()},this['isRetryEnabled']()&&(_0x332f25['retry_tests_on_failure']={'enabled':!![],'max_retries':this[_0x40d070(0x1a9)]()}),this[_0x40d070(0x1ad)]()&&(_0x332f25[_0x40d070(0x199)]={'enabled':!![],'max_failures':this['getFailureThreshold']()}),_0x332f25;}}function a121_0x3c6b(_0x64968b,_0x2caa42){const _0x1a48a8=a121_0x1a48();return a121_0x3c6b=function(_0x3c6b43,_0x66225c){_0x3c6b43=_0x3c6b43-0x18e;let _0x38b353=_0x1a48a8[_0x3c6b43];return _0x38b353;},a121_0x3c6b(_0x64968b,_0x2caa42);}module[a121_0x23b744(0x1b0)]=OrchestrationUtils;
@@ -1 +1 @@
1
- function a122_0x13a1(_0x5cc28b,_0x44ceab){const _0x3b065f=a122_0x3b06();return a122_0x13a1=function(_0x13a14a,_0x2d1878){_0x13a14a=_0x13a14a-0x17d;let _0x30255d=_0x3b065f[_0x13a14a];return _0x30255d;},a122_0x13a1(_0x5cc28b,_0x44ceab);}const a122_0x29160a=a122_0x13a1;(function(_0x3848b3,_0x5bcf74){const _0x554333=a122_0x13a1,_0x5d01d7=_0x3848b3();while(!![]){try{const _0x424fcb=parseInt(_0x554333(0x1a4))/0x1+-parseInt(_0x554333(0x1af))/0x2*(parseInt(_0x554333(0x1ae))/0x3)+parseInt(_0x554333(0x19c))/0x4+parseInt(_0x554333(0x183))/0x5*(-parseInt(_0x554333(0x1b8))/0x6)+-parseInt(_0x554333(0x1c8))/0x7*(parseInt(_0x554333(0x181))/0x8)+parseInt(_0x554333(0x190))/0x9*(-parseInt(_0x554333(0x182))/0xa)+-parseInt(_0x554333(0x193))/0xb*(-parseInt(_0x554333(0x19f))/0xc);if(_0x424fcb===_0x5bcf74)break;else _0x5d01d7['push'](_0x5d01d7['shift']());}catch(_0x41bd58){_0x5d01d7['push'](_0x5d01d7['shift']());}}}(a122_0x3b06,0x9c252));const https=require(a122_0x29160a(0x1cd)),{URL}=require(a122_0x29160a(0x1a8)),logger=require('../logger')[a122_0x29160a(0x1b5)],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require(a122_0x29160a(0x1a1)),TAG='RequestUtils';class RequestUtils{static async[a122_0x29160a(0x198)](_0x227b03,_0x3b514d,_0x478196=null){const _0x3bfe21=a122_0x29160a,_0x43817b={'BQaji':function(_0x2c97cd,_0x5f5a9f){return _0x2c97cd(_0x5f5a9f);},'qdiDr':'data','Lpduo':_0x3bfe21(0x1a2),'Ztukm':_0x3bfe21(0x1b4),'TnqCB':function(_0x492801,_0x180f31){return _0x492801===_0x180f31;},'Owuum':_0x3bfe21(0x1c3),'IhZPz':function(_0x2e5926,_0x1e9bcb){return _0x2e5926===_0x1e9bcb;},'AarFS':_0x3bfe21(0x1b6),'lgkab':_0x3bfe21(0x1b3),'KjrwY':function(_0x1c39c6,_0x39e5db){return _0x1c39c6+_0x39e5db;}},_0x3c16fa=process[_0x3bfe21(0x1bd)][_0x3bfe21(0x1ca)]||'',_0x3438a1={};_0x3438a1[_0x3bfe21(0x1b1)]=_0x3bfe21(0x1c6)+_0x3c16fa,_0x3438a1[_0x3bfe21(0x17f)]=_0x43817b['lgkab'];const _0x5c8fde=_0x3438a1,{hostname:_0x3c684e,pathname:_0x56dece,search:_0x273536}=new URL(_0x3b514d),_0x2a1325={'hostname':_0x3c684e,'path':_0x43817b[_0x3bfe21(0x1ba)](_0x56dece,_0x273536),'method':_0x227b03,'headers':_0x5c8fde};return logger[_0x3bfe21(0x18e)]('['+TAG+_0x3bfe21(0x1aa)+_0x227b03+_0x3bfe21(0x18d)+_0x3b514d+_0x3bfe21(0x1cc)+JSON['stringify'](_0x5c8fde)+_0x3bfe21(0x1a0)+JSON[_0x3bfe21(0x1c2)](_0x478196)+_0x3bfe21(0x1ac)+_0x3c16fa),new Promise((_0x80733a,_0x553dd0)=>{const _0x4330ff=_0x3bfe21,_0x32cb33={'Ueckd':function(_0x38bcbb,_0x364ef5){const _0x45f868=a122_0x13a1;return _0x43817b[_0x45f868(0x186)](_0x38bcbb,_0x364ef5);}},_0x56e88b=https['request'](_0x2a1325,_0x2de470=>{const _0x3fe337=a122_0x13a1,_0x47d0c9={'euMvt':function(_0x3adb07,_0x32b657){const _0x464680=a122_0x13a1;return _0x43817b[_0x464680(0x186)](_0x3adb07,_0x32b657);}};let _0x1de7ef='';_0x2de470['on'](_0x43817b['qdiDr'],_0x495ab6=>{_0x1de7ef+=_0x495ab6;}),_0x2de470['on'](_0x43817b[_0x3fe337(0x1b2)],()=>{const _0x24f262=_0x3fe337;try{const _0x4b2f84=_0x1de7ef?JSON[_0x24f262(0x18a)](_0x1de7ef):{},_0x5b4e26={};_0x5b4e26[_0x24f262(0x1b7)]=_0x2de470[_0x24f262(0x191)],_0x5b4e26[_0x24f262(0x17d)]=_0x4b2f84,_0x5b4e26[_0x24f262(0x1bc)]=_0x2de470['headers'],_0x47d0c9['euMvt'](_0x80733a,_0x5b4e26);}catch(_0x592e70){logger['error']('['+TAG+']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20'+_0x1de7ef+_0x24f262(0x19b)+_0x592e70['message']+'\x20'+_0x592e70[_0x24f262(0x195)]),_0x47d0c9[_0x24f262(0x1a3)](_0x553dd0,new Error(_0x24f262(0x1c0)+_0x592e70[_0x24f262(0x1c1)]));}});});_0x56e88b['on'](_0x43817b[_0x4330ff(0x1c5)],_0x479d69=>{const _0x26e170=_0x4330ff;logger[_0x26e170(0x1b4)]('['+TAG+_0x26e170(0x1ad)+_0x227b03+'\x20'+_0x3b514d+':\x20'+_0x479d69[_0x26e170(0x1c1)]+'\x20'+_0x479d69['stack']),_0x32cb33['Ueckd'](_0x553dd0,_0x479d69);}),_0x478196&&(_0x43817b[_0x4330ff(0x197)](_0x227b03,_0x43817b['Owuum'])||_0x43817b['IhZPz'](_0x227b03,_0x43817b['AarFS']))&&_0x56e88b['write'](JSON[_0x4330ff(0x1c2)](_0x478196)),_0x56e88b['end']();});}static async[a122_0x29160a(0x18c)](_0x2c2a0c){const _0x38e8ce=a122_0x29160a,_0x2ba49f={};_0x2ba49f['hkXnn']=_0x38e8ce(0x1c3),_0x2ba49f[_0x38e8ce(0x1b9)]=function(_0x32b1ae,_0x11536f){return _0x32b1ae===_0x11536f;};const _0x168349=_0x2ba49f,_0x52b5bb=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x343fed=await this['_request'](_0x168349[_0x38e8ce(0x18f)],_0x52b5bb,_0x2c2a0c);return _0x168349[_0x38e8ce(0x1b9)](_0x343fed[_0x38e8ce(0x1b7)],0xc8)?logger[_0x38e8ce(0x18e)]('['+TAG+_0x38e8ce(0x1a6)+_0x52b5bb):logger[_0x38e8ce(0x1b4)]('['+TAG+_0x38e8ce(0x180)+_0x52b5bb+':\x20'+JSON[_0x38e8ce(0x1c2)](_0x343fed[_0x38e8ce(0x17d)])+_0x38e8ce(0x1c7)+_0x343fed[_0x38e8ce(0x1b7)]),_0x343fed;}catch(_0x2c1c92){logger[_0x38e8ce(0x1b4)]('['+TAG+_0x38e8ce(0x1a9)+_0x2c1c92[_0x38e8ce(0x1c1)]+'\x20'+_0x2c1c92['stack']);const _0x480c30={};_0x480c30['message']=_0x2c1c92[_0x38e8ce(0x1c1)];const _0x57d0f8={};return _0x57d0f8[_0x38e8ce(0x1b7)]=0x1f4,_0x57d0f8[_0x38e8ce(0x17d)]=_0x480c30,_0x57d0f8;}}static async[a122_0x29160a(0x1c4)](_0x17223e){const _0x4b66ad=a122_0x29160a,_0x577e39={};_0x577e39['PDycS']=_0x4b66ad(0x1ab),_0x577e39[_0x4b66ad(0x189)]=function(_0x290341,_0x124512){return _0x290341===_0x124512;};const _0x30d097=_0x577e39;try{const _0x2fad43=await this['_request'](_0x30d097['PDycS'],_0x17223e);if(_0x30d097[_0x4b66ad(0x189)](_0x2fad43[_0x4b66ad(0x1b7)],0xc8))return _0x2fad43['body'];return{};}catch(_0x82ce76){return logger[_0x4b66ad(0x1b4)]('['+TAG+_0x4b66ad(0x1a9)+_0x82ce76[_0x4b66ad(0x1c1)]+'\x20'+_0x82ce76[_0x4b66ad(0x195)]),{};}}static async[a122_0x29160a(0x1b0)](_0x4d5e07){const _0x2efb8e=a122_0x29160a,_0x52b56e={};_0x52b56e[_0x2efb8e(0x196)]='PUT',_0x52b56e[_0x2efb8e(0x19a)]=function(_0x5b0a10,_0x16b1a1){return _0x5b0a10===_0x16b1a1;},_0x52b56e['FSPYz']=_0x2efb8e(0x18b);const _0x2e4c64=_0x52b56e,_0x3ffbea=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x7f8d2d=await this[_0x2efb8e(0x198)](_0x2e4c64[_0x2efb8e(0x196)],_0x3ffbea,_0x4d5e07);if(_0x2e4c64[_0x2efb8e(0x19a)](_0x7f8d2d[_0x2efb8e(0x1b7)],0xc8)&&_0x7f8d2d[_0x2efb8e(0x17d)]&&_0x2e4c64[_0x2efb8e(0x19a)](_0x7f8d2d[_0x2efb8e(0x17d)][_0x2efb8e(0x1c1)],_0x2e4c64[_0x2efb8e(0x1bf)]))return!![];return![];}catch(_0x2638b8){logger[_0x2efb8e(0x1b4)]('['+TAG+_0x2efb8e(0x1a9)+_0x2638b8['message']+'\x20'+_0x2638b8[_0x2efb8e(0x195)]);const _0x269d25={};_0x269d25[_0x2efb8e(0x1c1)]=_0x2638b8[_0x2efb8e(0x1c1)];const _0x2f1a44={};return _0x2f1a44[_0x2efb8e(0x1b7)]=0x1f4,_0x2f1a44[_0x2efb8e(0x17d)]=_0x269d25,_0x2f1a44;}}static async[a122_0x29160a(0x1c9)](_0x2eae0a){const _0x374883=a122_0x29160a,_0x2e03d2={'ywJlz':function(_0x229566,_0x337e2e){return _0x229566||_0x337e2e;},'WpsKz':_0x374883(0x188),'qEtBu':function(_0xce6724,_0x21db4f){return _0xce6724(_0x21db4f);},'qjOMO':'GET','HwoVy':function(_0x1e0317,_0x18e5e7){return _0x1e0317===_0x18e5e7;},'IAckh':function(_0x559e1b,_0x20482a){return _0x559e1b!==_0x20482a;},'GhyyN':_0x374883(0x1be),'lXLNO':function(_0x458228,_0x3702ac){return _0x458228(_0x3702ac);}},{buildName:_0x547316,buildRunIdentifier:_0x57d0b3,projectName:_0x19f314}=_0x2eae0a;if(_0x2e03d2[_0x374883(0x1bb)](!_0x547316,!_0x57d0b3)||!_0x19f314){logger[_0x374883(0x1b4)]('['+TAG+_0x374883(0x187)+_0x547316+_0x374883(0x192)+_0x57d0b3+_0x374883(0x184)+_0x19f314);const _0x4fbcbe={};_0x4fbcbe['message']=_0x2e03d2['WpsKz'];const _0x4be4ed={};return _0x4be4ed[_0x374883(0x1b7)]=0x190,_0x4be4ed[_0x374883(0x17d)]=_0x4fbcbe,_0x4be4ed;}const _0x1c9726='?buildName='+_0x2e03d2[_0x374883(0x185)](encodeURIComponent,_0x547316)+_0x374883(0x1a5)+_0x2e03d2['qEtBu'](encodeURIComponent,_0x57d0b3)+_0x374883(0x1a7)+_0x2e03d2[_0x374883(0x185)](encodeURIComponent,_0x19f314),_0x610e47=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x1c9726;try{logger[_0x374883(0x18e)]('['+TAG+']\x20Sending\x20GET\x20to\x20'+_0x610e47);let _0x4fced6=0x0;const _0x54e5d2=await this['_request'](_0x2e03d2['qjOMO'],_0x610e47);return _0x2e03d2[_0x374883(0x194)](_0x54e5d2[_0x374883(0x1b7)],0xc8)&&_0x54e5d2[_0x374883(0x17d)]&&_0x2e03d2[_0x374883(0x19d)](typeof _0x54e5d2[_0x374883(0x17d)][_0x374883(0x17e)],_0x2e03d2['GhyyN'])&&(_0x4fced6=_0x2e03d2[_0x374883(0x199)](Number,_0x54e5d2[_0x374883(0x17d)][_0x374883(0x17e)])),_0x4fced6;}catch(_0x3c1f6d){logger[_0x374883(0x1b4)]('['+TAG+_0x374883(0x1cb)+_0x3c1f6d[_0x374883(0x1c1)]+'\x20'+_0x3c1f6d[_0x374883(0x195)]);const _0x15fa0a={};_0x15fa0a[_0x374883(0x1c1)]=_0x3c1f6d[_0x374883(0x1c1)];const _0x31e01f={};return _0x31e01f[_0x374883(0x1b7)]=0x1f4,_0x31e01f[_0x374883(0x17d)]=_0x15fa0a,_0x31e01f;}}}module[a122_0x29160a(0x19e)]=RequestUtils;function a122_0x3b06(){const _0x2b9df5=['\x20-\x20','652264cGuTKH','IAckh','exports','36mPAYWO','\x20and\x20data:\x20','./constants','end','euMvt','209264DSzqLS','&buildRunIdentifier=',']\x20Successfully\x20posted\x20split\x20files\x20to\x20','&projectName=','url',']\x20Error\x20in\x20putFailedTests:\x20',']\x20Sending\x20','GET','\x20and\x20token:\x20',']\x20Request\x20failed\x20for\x20','3624609GqMQza','2bruAsT','putFailedTests','Authorization','Lpduo','application/json','error','winstonLogger','PUT','status','12ZAeAjA','TRVlh','KjrwY','ywJlz','headers','env','undefined','FSPYz','Failed\x20to\x20parse\x20JSON\x20response:\x20','message','stringify','POST','getSplitFiles','Ztukm','Bearer\x20',',\x20status:\x20','343TgvHaT','getFailedTestsCount','BROWSERSTACK_TESTHUB_JWT',']\x20Error\x20in\x20getFailedTestsCount:\x20','\x20with\x20headers:\x20','https','body','failedTestsCount','Content-Type',']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20','182784qEmoPS','70kuVfBA','2109155qODiLk',',\x20projectName=','qEtBu','BQaji',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=','Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','NMoES','parse','Test\x20added','postSplitFiles','\x20request\x20to\x20','debug','hkXnn','1614222AVEXIy','statusCode',',\x20buildRunIdentifier=','17211931JUKAde','HwoVy','stack','AcXle','TnqCB','_request','lXLNO','xZbVQ'];a122_0x3b06=function(){return _0x2b9df5;};return a122_0x3b06();}
1
+ const a122_0x55f58f=a122_0x54eb;(function(_0x381e20,_0x385f2c){const _0x47259e=a122_0x54eb,_0x34af4b=_0x381e20();while(!![]){try{const _0xbea643=parseInt(_0x47259e(0x19a))/0x1*(parseInt(_0x47259e(0x169))/0x2)+parseInt(_0x47259e(0x16c))/0x3*(-parseInt(_0x47259e(0x15a))/0x4)+parseInt(_0x47259e(0x1a2))/0x5+parseInt(_0x47259e(0x16e))/0x6+parseInt(_0x47259e(0x18b))/0x7+parseInt(_0x47259e(0x1a8))/0x8*(-parseInt(_0x47259e(0x174))/0x9)+parseInt(_0x47259e(0x1a7))/0xa*(-parseInt(_0x47259e(0x18c))/0xb);if(_0xbea643===_0x385f2c)break;else _0x34af4b['push'](_0x34af4b['shift']());}catch(_0x388146){_0x34af4b['push'](_0x34af4b['shift']());}}}(a122_0x2669,0xb8fe6));const https=require('https'),{URL}=require(a122_0x55f58f(0x15f)),logger=require(a122_0x55f58f(0x1a0))[a122_0x55f58f(0x1a9)],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require(a122_0x55f58f(0x178)),TAG='RequestUtils';class RequestUtils{static async[a122_0x55f58f(0x176)](_0x362d83,_0x10a3bd,_0x149d8b=null){const _0x313ba2=a122_0x55f58f,_0x10a5a9={'WHfam':function(_0x399fb5,_0x323e42){return _0x399fb5(_0x323e42);},'bmNQr':_0x313ba2(0x15c),'wESab':_0x313ba2(0x180),'kwpPV':function(_0x1aed59,_0x3adad4){return _0x1aed59(_0x3adad4);},'rNWhb':_0x313ba2(0x16f),'jbWKA':function(_0x2f050e,_0x203ccc){return _0x2f050e===_0x203ccc;},'rAMxu':_0x313ba2(0x17a),'hvWgw':_0x313ba2(0x17f),'bziGg':_0x313ba2(0x15b),'oKILd':function(_0x2ca7ba,_0x30cc2c){return _0x2ca7ba+_0x30cc2c;}},_0x39a33e=process[_0x313ba2(0x168)]['BROWSERSTACK_TESTHUB_JWT']||'',_0x1fe1ae={};_0x1fe1ae['Authorization']=_0x313ba2(0x193)+_0x39a33e,_0x1fe1ae[_0x313ba2(0x1ad)]=_0x10a5a9[_0x313ba2(0x167)];const _0xe91647=_0x1fe1ae,{hostname:_0x17ed38,pathname:_0x4c849e,search:_0x13305f}=new URL(_0x10a3bd),_0x41d50d={'hostname':_0x17ed38,'path':_0x10a5a9['oKILd'](_0x4c849e,_0x13305f),'method':_0x362d83,'headers':_0xe91647};return logger['debug']('['+TAG+_0x313ba2(0x162)+_0x362d83+'\x20request\x20to\x20'+_0x10a3bd+_0x313ba2(0x19b)+JSON['stringify'](_0xe91647)+_0x313ba2(0x189)+JSON[_0x313ba2(0x164)](_0x149d8b)+_0x313ba2(0x1a5)+_0x39a33e),new Promise((_0x5e0bdc,_0x4006aa)=>{const _0x4c2449=_0x313ba2,_0x580cee={'NFBnA':function(_0x2c4bdb,_0x3e1676){const _0x5c724d=a122_0x54eb;return _0x10a5a9[_0x5c724d(0x17c)](_0x2c4bdb,_0x3e1676);},'JuPYR':_0x10a5a9[_0x4c2449(0x194)],'RJMUT':_0x10a5a9[_0x4c2449(0x16b)],'LmbOM':function(_0x1dea78,_0x25399b){const _0x56e894=_0x4c2449;return _0x10a5a9[_0x56e894(0x165)](_0x1dea78,_0x25399b);}},_0x8e74dc=https[_0x4c2449(0x192)](_0x41d50d,_0x5e8fc2=>{const _0x4694b5=_0x4c2449,_0x24bf9f={'TDLmP':function(_0x39fe34,_0x4f4e38){const _0x5a2c7e=a122_0x54eb;return _0x580cee[_0x5a2c7e(0x1a4)](_0x39fe34,_0x4f4e38);},'hOwJn':function(_0x2ff1a5,_0x1d99df){return _0x580cee['NFBnA'](_0x2ff1a5,_0x1d99df);}};let _0xa2ffd5='';_0x5e8fc2['on'](_0x580cee[_0x4694b5(0x181)],_0x11fc9c=>{_0xa2ffd5+=_0x11fc9c;}),_0x5e8fc2['on'](_0x580cee['RJMUT'],()=>{const _0xba8d3f=_0x4694b5;try{const _0x4583d5=_0xa2ffd5?JSON[_0xba8d3f(0x1a6)](_0xa2ffd5):{},_0x485b2d={};_0x485b2d['status']=_0x5e8fc2['statusCode'],_0x485b2d[_0xba8d3f(0x17e)]=_0x4583d5,_0x485b2d['headers']=_0x5e8fc2[_0xba8d3f(0x195)],_0x24bf9f[_0xba8d3f(0x1a3)](_0x5e0bdc,_0x485b2d);}catch(_0x40e769){logger[_0xba8d3f(0x16f)]('['+TAG+_0xba8d3f(0x17b)+_0xa2ffd5+_0xba8d3f(0x188)+_0x40e769['message']+'\x20'+_0x40e769[_0xba8d3f(0x183)]),_0x24bf9f[_0xba8d3f(0x159)](_0x4006aa,new Error(_0xba8d3f(0x173)+_0x40e769[_0xba8d3f(0x18f)]));}});});_0x8e74dc['on'](_0x10a5a9[_0x4c2449(0x1ac)],_0x121ab5=>{const _0x1ce883=_0x4c2449;logger['error']('['+TAG+_0x1ce883(0x160)+_0x362d83+'\x20'+_0x10a3bd+':\x20'+_0x121ab5[_0x1ce883(0x18f)]+'\x20'+_0x121ab5[_0x1ce883(0x183)]),_0x580cee['LmbOM'](_0x4006aa,_0x121ab5);}),_0x149d8b&&(_0x10a5a9[_0x4c2449(0x198)](_0x362d83,_0x10a5a9[_0x4c2449(0x170)])||_0x10a5a9[_0x4c2449(0x198)](_0x362d83,_0x10a5a9['hvWgw']))&&_0x8e74dc['write'](JSON[_0x4c2449(0x164)](_0x149d8b)),_0x8e74dc[_0x4c2449(0x180)]();});}static async[a122_0x55f58f(0x16a)](_0x26649d){const _0x12e21f=a122_0x55f58f,_0x26d679={};_0x26d679['GoSDq']=_0x12e21f(0x17a),_0x26d679[_0x12e21f(0x171)]=function(_0x5eb329,_0x26f2cf){return _0x5eb329===_0x26f2cf;};const _0xbf4e2e=_0x26d679,_0x575ca9=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x21c84b=await this[_0x12e21f(0x176)](_0xbf4e2e['GoSDq'],_0x575ca9,_0x26649d);return _0xbf4e2e[_0x12e21f(0x171)](_0x21c84b[_0x12e21f(0x1ab)],0xc8)?logger[_0x12e21f(0x182)]('['+TAG+_0x12e21f(0x199)+_0x575ca9):logger[_0x12e21f(0x16f)]('['+TAG+_0x12e21f(0x197)+_0x575ca9+':\x20'+JSON['stringify'](_0x21c84b[_0x12e21f(0x17e)])+_0x12e21f(0x161)+_0x21c84b[_0x12e21f(0x1ab)]),_0x21c84b;}catch(_0x24e5db){logger[_0x12e21f(0x16f)]('['+TAG+_0x12e21f(0x187)+_0x24e5db['message']+'\x20'+_0x24e5db[_0x12e21f(0x183)]);const _0x381a14={};_0x381a14['message']=_0x24e5db['message'];const _0x360daa={};return _0x360daa[_0x12e21f(0x1ab)]=0x1f4,_0x360daa[_0x12e21f(0x17e)]=_0x381a14,_0x360daa;}}static async[a122_0x55f58f(0x19e)](_0x57523a){const _0x30317b=a122_0x55f58f,_0x57f648={};_0x57f648[_0x30317b(0x18a)]=_0x30317b(0x185),_0x57f648[_0x30317b(0x15d)]=function(_0x2361d2,_0x40221a){return _0x2361d2===_0x40221a;};const _0x3f8fbe=_0x57f648;try{const _0x180449=await this[_0x30317b(0x176)](_0x3f8fbe[_0x30317b(0x18a)],_0x57523a);if(_0x3f8fbe[_0x30317b(0x15d)](_0x180449['status'],0xc8))return _0x180449[_0x30317b(0x17e)];return{};}catch(_0x1a2422){return logger['error']('['+TAG+']\x20Error\x20in\x20putFailedTests:\x20'+_0x1a2422['message']+'\x20'+_0x1a2422[_0x30317b(0x183)]),{};}}static async[a122_0x55f58f(0x166)](_0x560dfd){const _0x3e1c39=a122_0x55f58f,_0x53ff35={};_0x53ff35[_0x3e1c39(0x16d)]=_0x3e1c39(0x17f),_0x53ff35[_0x3e1c39(0x18d)]=function(_0x238d94,_0x28617d){return _0x238d94===_0x28617d;},_0x53ff35['nutRt']=_0x3e1c39(0x19c);const _0x4f5c4e=_0x53ff35,_0x12bf9f=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x33c59e=await this[_0x3e1c39(0x176)](_0x4f5c4e['bPzzs'],_0x12bf9f,_0x560dfd);if(_0x4f5c4e[_0x3e1c39(0x18d)](_0x33c59e[_0x3e1c39(0x1ab)],0xc8)&&_0x33c59e['body']&&_0x4f5c4e[_0x3e1c39(0x18d)](_0x33c59e['body'][_0x3e1c39(0x18f)],_0x4f5c4e[_0x3e1c39(0x191)]))return!![];return![];}catch(_0x4323cc){logger[_0x3e1c39(0x16f)]('['+TAG+_0x3e1c39(0x187)+_0x4323cc[_0x3e1c39(0x18f)]+'\x20'+_0x4323cc[_0x3e1c39(0x183)]);const _0x1e905e={};_0x1e905e[_0x3e1c39(0x18f)]=_0x4323cc[_0x3e1c39(0x18f)];const _0x277d31={};return _0x277d31[_0x3e1c39(0x1ab)]=0x1f4,_0x277d31['body']=_0x1e905e,_0x277d31;}}static async[a122_0x55f58f(0x190)](_0x3aa1b3){const _0x43fde9=a122_0x55f58f,_0x53eb75={'wGBBn':function(_0x1068e1,_0x48d573){return _0x1068e1||_0x48d573;},'dQLPv':_0x43fde9(0x1aa),'yeZPB':function(_0x17b0fa,_0x222a76){return _0x17b0fa(_0x222a76);},'hOfkf':_0x43fde9(0x185),'SlRbB':function(_0x3d6cfb,_0x4c8d48){return _0x3d6cfb===_0x4c8d48;},'MuMwP':function(_0x1a8799,_0x1b3740){return _0x1a8799!==_0x1b3740;},'ooQNl':'undefined','KEFsz':function(_0x3321c6,_0x491e2d){return _0x3321c6(_0x491e2d);}},{buildName:_0x5ce48d,buildRunIdentifier:_0x251daa,projectName:_0x3372a4}=_0x3aa1b3;if(_0x53eb75[_0x43fde9(0x163)](!_0x5ce48d,!_0x251daa)||!_0x3372a4){logger[_0x43fde9(0x16f)]('['+TAG+_0x43fde9(0x19d)+_0x5ce48d+_0x43fde9(0x1a1)+_0x251daa+_0x43fde9(0x184)+_0x3372a4);const _0xafc208={};_0xafc208[_0x43fde9(0x18f)]=_0x53eb75[_0x43fde9(0x19f)];const _0x581cc3={};return _0x581cc3[_0x43fde9(0x1ab)]=0x190,_0x581cc3[_0x43fde9(0x17e)]=_0xafc208,_0x581cc3;}const _0x40636b=_0x43fde9(0x17d)+_0x53eb75[_0x43fde9(0x177)](encodeURIComponent,_0x5ce48d)+_0x43fde9(0x18e)+_0x53eb75[_0x43fde9(0x177)](encodeURIComponent,_0x251daa)+_0x43fde9(0x179)+_0x53eb75[_0x43fde9(0x177)](encodeURIComponent,_0x3372a4),_0x4d6209=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x40636b;try{logger[_0x43fde9(0x182)]('['+TAG+_0x43fde9(0x172)+_0x4d6209);let _0x551726=0x0;const _0x3ad799=await this[_0x43fde9(0x176)](_0x53eb75[_0x43fde9(0x196)],_0x4d6209);return _0x53eb75['SlRbB'](_0x3ad799[_0x43fde9(0x1ab)],0xc8)&&_0x3ad799['body']&&_0x53eb75[_0x43fde9(0x186)](typeof _0x3ad799[_0x43fde9(0x17e)][_0x43fde9(0x15e)],_0x53eb75[_0x43fde9(0x158)])&&(_0x551726=_0x53eb75['KEFsz'](Number,_0x3ad799['body'][_0x43fde9(0x15e)])),_0x551726;}catch(_0x55c691){logger[_0x43fde9(0x16f)]('['+TAG+_0x43fde9(0x175)+_0x55c691[_0x43fde9(0x18f)]+'\x20'+_0x55c691['stack']);const _0x4c5c97={};_0x4c5c97[_0x43fde9(0x18f)]=_0x55c691['message'];const _0xb1cdff={};return _0xb1cdff[_0x43fde9(0x1ab)]=0x1f4,_0xb1cdff[_0x43fde9(0x17e)]=_0x4c5c97,_0xb1cdff;}}}function a122_0x2669(){const _0x27d716=['MuMwP',']\x20Error\x20in\x20putFailedTests:\x20','\x20-\x20','\x20and\x20data:\x20','pOfhs','3902290DMkjTY','198CvktRg','puULa','&buildRunIdentifier=','message','getFailedTestsCount','nutRt','request','Bearer\x20','bmNQr','headers','hOfkf',']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20','jbWKA',']\x20Successfully\x20posted\x20split\x20files\x20to\x20','209877xRznZp','\x20with\x20headers:\x20','Test\x20added',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=','getSplitFiles','dQLPv','../logger',',\x20buildRunIdentifier=','5776465JXwPPa','TDLmP','NFBnA','\x20and\x20token:\x20','parse','1350750fIeiBy','3960648hAkTFJ','winstonLogger','Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','status','rNWhb','Content-Type','ooQNl','hOwJn','8YfWFcV','application/json','data','LEFpO','failedTestsCount','url',']\x20Request\x20failed\x20for\x20',',\x20status:\x20',']\x20Sending\x20','wGBBn','stringify','kwpPV','putFailedTests','bziGg','env','10QEkFtX','postSplitFiles','wESab','682227ZjMCWh','bPzzs','8261010ICUdzl','error','rAMxu','hlHTW',']\x20Sending\x20GET\x20to\x20','Failed\x20to\x20parse\x20JSON\x20response:\x20','9EhTQfQ',']\x20Error\x20in\x20getFailedTestsCount:\x20','_request','yeZPB','./constants','&projectName=','POST',']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20','WHfam','?buildName=','body','PUT','end','JuPYR','debug','stack',',\x20projectName=','GET'];a122_0x2669=function(){return _0x27d716;};return a122_0x2669();}function a122_0x54eb(_0x17e0f0,_0x394b8d){const _0x2669ea=a122_0x2669();return a122_0x54eb=function(_0x54eb29,_0x1a8c24){_0x54eb29=_0x54eb29-0x158;let _0x14a6a0=_0x2669ea[_0x54eb29];return _0x14a6a0;},a122_0x54eb(_0x17e0f0,_0x394b8d);}module['exports']=RequestUtils;
@@ -1 +1 @@
1
- const a123_0x45cd4b=a123_0x40dd;(function(_0x419d8c,_0x5772f3){const _0x55fcd2=a123_0x40dd,_0x9e0fe=_0x419d8c();while(!![]){try{const _0x3c275c=parseInt(_0x55fcd2(0x182))/0x1*(parseInt(_0x55fcd2(0x18d))/0x2)+-parseInt(_0x55fcd2(0x18b))/0x3*(-parseInt(_0x55fcd2(0x177))/0x4)+-parseInt(_0x55fcd2(0x1bc))/0x5+parseInt(_0x55fcd2(0x160))/0x6+parseInt(_0x55fcd2(0x195))/0x7+parseInt(_0x55fcd2(0x188))/0x8+parseInt(_0x55fcd2(0x194))/0x9*(parseInt(_0x55fcd2(0x164))/0xa);if(_0x3c275c===_0x5772f3)break;else _0x9e0fe['push'](_0x9e0fe['shift']());}catch(_0x3249bf){_0x9e0fe['push'](_0x9e0fe['shift']());}}}(a123_0x458b,0xc116d));const logger=require(a123_0x45cd4b(0x1a3))['winstonLogger'],{isUndefined,isNotUndefined,isTrueString,sanitizedFilePath}=require(a123_0x45cd4b(0x19e)),TestOrderingServerHandler=require(a123_0x45cd4b(0x180)),OrchestrationUtils=require(a123_0x45cd4b(0x19c)),path=require(a123_0x45cd4b(0x166)),{spawnSync}=require(a123_0x45cd4b(0x1a4)),micromatch=require('micromatch'),fs=require('fs');class TestOrchestrationHandler{constructor(_0x3d69c4){const _0x2db878=a123_0x45cd4b,_0x3c6b9d={};_0x3c6b9d[_0x2db878(0x1ad)]=_0x2db878(0x192);const _0x103a23=_0x3c6b9d,_0x263778=_0x103a23[_0x2db878(0x1ad)][_0x2db878(0x17f)]('|');let _0x58542b=0x0;while(!![]){switch(_0x263778[_0x58542b++]){case'0':this[_0x2db878(0x17a)]();continue;case'1':this[_0x2db878(0x1bf)]={};continue;case'2':this[_0x2db878(0x185)]=![];continue;case'3':this[_0x2db878(0x1bd)]=new OrchestrationUtils(_0x3d69c4);continue;case'4':this[_0x2db878(0x1a6)]=null;continue;case'5':this[_0x2db878(0x18c)]=_0x3d69c4;continue;}break;}}[a123_0x45cd4b(0x18a)](){const _0x5af029=a123_0x45cd4b,_0x920977={'SqJjP':function(_0x8b9039,_0x18a9c1){return _0x8b9039(_0x18a9c1);},'bKSVm':function(_0x587139,_0x129615){return _0x587139(_0x129615);},'XEGqU':function(_0x2bf916,_0x28ba8e){return _0x2bf916(_0x28ba8e);},'RmKlX':function(_0x380dd7,_0x595f79){return _0x380dd7&&_0x595f79;}},_0x20144f=_0x920977[_0x5af029(0x19f)](isNotUndefined,this[_0x5af029(0x18c)])&&(_0x920977[_0x5af029(0x19f)](isUndefined,this[_0x5af029(0x18c)][_0x5af029(0x184)])||_0x920977[_0x5af029(0x19f)](isTrueString,this[_0x5af029(0x18c)][_0x5af029(0x184)])),_0x41a02b=this[_0x5af029(0x1bd)]['testOrderingEnabled'](),_0x1fd28d=_0x920977['SqJjP'](isNotUndefined,this[_0x5af029(0x18c)])&&_0x920977[_0x5af029(0x157)](isNotUndefined,this['config'][_0x5af029(0x15b)]),_0x4d62d1=_0x920977[_0x5af029(0x19f)](isNotUndefined,this['config'])&&_0x920977['XEGqU'](isNotUndefined,this[_0x5af029(0x18c)]['buildName']);return _0x920977['RmKlX'](_0x20144f,_0x41a02b)&&_0x1fd28d&&_0x4d62d1;}['_initializeTestOrdering'](){const _0x56f347=a123_0x45cd4b,_0x10545f={};_0x10545f[_0x56f347(0x15c)]='Test\x20orchestration\x20with\x20test\x20ordering\x20enabled',_0x10545f[_0x56f347(0x162)]=_0x56f347(0x1b7);const _0x3aa3cb=_0x10545f;this['isTestOrchestrationEnabled']()?(this[_0x56f347(0x1a6)]=new TestOrderingServerHandler(this[_0x56f347(0x18c)]),logger['info'](_0x3aa3cb[_0x56f347(0x15c)])):(logger['debug'](_0x3aa3cb['BySfn']),this['logTestOrderingChecks']());}[a123_0x45cd4b(0x161)](){const _0x33b51c=a123_0x45cd4b,_0x32cc58={'GdvPS':function(_0x52f5ae,_0x53258b){return _0x52f5ae(_0x53258b);},'SBYqD':function(_0x1e5442,_0x2d6ccd){return _0x1e5442(_0x2d6ccd);},'efqAx':_0x33b51c(0x19a),'DDily':function(_0xe6a80e,_0x4e7e9d){return _0xe6a80e(_0x4e7e9d);},'ZSntG':function(_0x44bcf3,_0x3b798c){return _0x44bcf3(_0x3b798c);},'tqNrw':_0x33b51c(0x169)};if(!this[_0x33b51c(0x199)]())return;(!_0x32cc58['GdvPS'](isNotUndefined,this['config'])||!_0x32cc58[_0x33b51c(0x15e)](isNotUndefined,this[_0x33b51c(0x18c)][_0x33b51c(0x1ae)])||!_0x32cc58[_0x33b51c(0x15e)](isNotUndefined,this[_0x33b51c(0x18c)][_0x33b51c(0x15b)]))&&logger['info'](_0x32cc58['efqAx']),_0x32cc58['SBYqD'](isNotUndefined,this[_0x33b51c(0x18c)])&&_0x32cc58[_0x33b51c(0x1be)](isNotUndefined,this[_0x33b51c(0x18c)][_0x33b51c(0x184)])&&!_0x32cc58[_0x33b51c(0x197)](isTrueString,this['config'][_0x33b51c(0x184)])&&logger[_0x33b51c(0x193)](_0x32cc58[_0x33b51c(0x1a9)]);}[a123_0x45cd4b(0x199)](){const _0x1489c7=a123_0x45cd4b;return!this[_0x1489c7(0x18a)]()&&this['orchestrationUtils'][_0x1489c7(0x163)]();}[a123_0x45cd4b(0x1a0)](){const _0x3a80a1=a123_0x45cd4b;return this[_0x3a80a1(0x185)];}['setTestOrderingApplied'](_0x9d07f9){const _0x4ac696=a123_0x45cd4b,_0x263c32={};_0x263c32[_0x4ac696(0x1ac)]=_0x4ac696(0x1ba);const _0x30017f=_0x263c32;this[_0x4ac696(0x185)]=_0x9d07f9,this[_0x4ac696(0x17d)](_0x30017f[_0x4ac696(0x1ac)],_0x9d07f9);}[a123_0x45cd4b(0x17d)](_0x24ab3f,_0x3efbd5){const _0x24de89=a123_0x45cd4b;this[_0x24de89(0x1bf)][_0x24ab3f]=_0x3efbd5;}[a123_0x45cd4b(0x1c1)](){return this['orderingInstrumentationData'];}[a123_0x45cd4b(0x1af)](){const _0x28fdb1=a123_0x45cd4b,_0x43dd66={'cOtkB':function(_0x5e2e5c,_0x10f780){return _0x5e2e5c(_0x10f780);},'RevAs':function(_0x25f70f,_0xdb6993){return _0x25f70f>_0xdb6993;}},_0x304f1f=_0x43dd66['cOtkB'](parseInt,process[_0x28fdb1(0x1aa)][_0x28fdb1(0x167)]||'1'),_0x2dded3=process['env'][_0x28fdb1(0x15d)];_0x2dded3&&_0x43dd66[_0x28fdb1(0x17b)](_0x304f1f,0x1)&&(logger[_0x28fdb1(0x178)](_0x28fdb1(0x176)+_0x2dded3),this[_0x28fdb1(0x18c)]['buildIdentifier']=_0x2dded3);}async[a123_0x45cd4b(0x18e)](_0x1fc7d9){const _0x36686c=a123_0x45cd4b,_0x4f08a2={'ZDarq':function(_0x5c6f01,_0x1ba388){return _0x5c6f01===_0x1ba388;},'wAPBt':function(_0x4310c7,_0x403d50){return _0x4310c7===_0x403d50;},'IRTiY':'[reorderTestFiles]\x20Test\x20ordering\x20is\x20not\x20supported\x20or\x20enabled','XFoln':function(_0x1156ac,_0x30ebd0){return _0x1156ac===_0x30ebd0;},'HkHMJ':function(_0x44a499,_0x18d454){return _0x44a499(_0x18d454);},'audni':function(_0x2f176e,_0x33f9a4){return _0x2f176e(_0x33f9a4);},'Jztdf':'uploadedTestFilesCount','Ytink':_0x36686c(0x1a5),'YKmbC':_0x36686c(0x174),'QZxkq':_0x36686c(0x18f),'uqnvl':_0x36686c(0x1c0)};try{if(!_0x1fc7d9||!Array[_0x36686c(0x1bb)](_0x1fc7d9)||_0x4f08a2[_0x36686c(0x1b6)](_0x1fc7d9['length'],0x0))return null;if(_0x4f08a2[_0x36686c(0x189)](this[_0x36686c(0x18a)](),![]))return logger['debug'](_0x4f08a2[_0x36686c(0x1b8)]),null;let _0x274bb9=null;const _0x1ae15f=this[_0x36686c(0x1bd)][_0x36686c(0x16d)]();if(this[_0x36686c(0x1a6)]){const _0x4e343f=await this[_0x36686c(0x1a6)][_0x36686c(0x171)](_0x1fc7d9,_0x1ae15f);if(!_0x4e343f)return null;_0x274bb9=await this[_0x36686c(0x1a6)][_0x36686c(0x170)](_0x4e343f);}if(!_0x274bb9||!Array[_0x36686c(0x1bb)](_0x274bb9)||_0x4f08a2['XFoln'](_0x274bb9[_0x36686c(0x158)],0x0))return null;const _0x6e5a7f=_0x4f08a2[_0x36686c(0x187)](parseInt,process[_0x36686c(0x1aa)]['BROWSERSTACK_NODE_INDEX']||'0'),_0x25104d=_0x4f08a2['audni'](parseInt,process[_0x36686c(0x1aa)]['BROWSERSTACK_TOTAL_NODE_COUNT']||'1');return this['addToOrderingInstrumentationData'](_0x4f08a2['Jztdf'],_0x1fc7d9[_0x36686c(0x158)]),this[_0x36686c(0x17d)](_0x4f08a2[_0x36686c(0x172)],_0x6e5a7f),this[_0x36686c(0x17d)](_0x4f08a2[_0x36686c(0x16e)],_0x25104d),this[_0x36686c(0x17d)](_0x4f08a2[_0x36686c(0x1ab)],_0x274bb9[_0x36686c(0x158)]),this[_0x36686c(0x17d)](_0x4f08a2['uqnvl'],this[_0x36686c(0x1a6)]?this[_0x36686c(0x1a6)]['getSplitTestsAPICallCount']():0x0),_0x274bb9[_0x36686c(0x1b1)](_0x2d8fa8=>sanitizedFilePath(_0x2d8fa8));}catch(_0x43bc25){return logger[_0x36686c(0x178)](_0x36686c(0x17c)+(_0x43bc25[_0x36686c(0x183)]||_0x43bc25[_0x36686c(0x165)]())),null;}}async[a123_0x45cd4b(0x196)](_0x5c9340,_0x4ca247,_0x1fbd1d){const _0x7a6dce=a123_0x45cd4b,_0x94092f={'LGRXr':function(_0x5562af,_0x177ebd){return _0x5562af(_0x177ebd);},'pOOzw':_0x7a6dce(0x1a1),'eLzIa':function(_0x212e91,_0x3d02d7){return _0x212e91(_0x3d02d7);},'CKLTN':'jest-util','MFyRF':function(_0x47100c,_0x2689d8){return _0x47100c(_0x2689d8);},'OAmzR':_0x7a6dce(0x186),'EAbjm':_0x7a6dce(0x159),'rToOz':_0x7a6dce(0x19b),'LSoZn':'**/?(*.)+(spec|test).[jt]s?(x)','CxQJP':function(_0x3b47a9,_0x4be876,_0xc866d4,_0x588012){return _0x3b47a9(_0x4be876,_0xc866d4,_0x588012);},'zOaMq':'npx','WDxin':_0x7a6dce(0x1a7),'WRdyq':'--config','HxntR':_0x7a6dce(0x1b4),'EvKVQ':_0x7a6dce(0x1b5)};try{const {getTestPathPatterns:_0x310c73}=_0x94092f['LGRXr'](require,_0x94092f[_0x7a6dce(0x1a2)]),{globsToMatcher:_0x41cbd0}=_0x94092f[_0x7a6dce(0x173)](require,_0x94092f['CKLTN']),{findRelatedTests:_0x223cba}=_0x94092f[_0x7a6dce(0x179)](require,_0x94092f['OAmzR']),_0x1a3df6=_0x94092f['MFyRF'](require,_0x94092f[_0x7a6dce(0x181)]),_0x28b41e=_0x5c9340['testMatch']||[_0x94092f[_0x7a6dce(0x191)],_0x94092f[_0x7a6dce(0x15a)]],_0x2477d5=_0x5c9340[_0x7a6dce(0x1b0)]||[],_0x3a424c=_0x94092f[_0x7a6dce(0x15f)](spawnSync,_0x94092f[_0x7a6dce(0x175)],[_0x94092f['WDxin'],_0x94092f['WRdyq'],_0x1fbd1d,..._0x4ca247,_0x94092f[_0x7a6dce(0x19d)]],{'encoding':_0x94092f[_0x7a6dce(0x16f)]});let _0x45d5d3=[];!_0x3a424c['error']&&(_0x45d5d3=_0x3a424c[_0x7a6dce(0x16a)][_0x7a6dce(0x17f)]('\x0a')[_0x7a6dce(0x16b)](Boolean));logger['debug'](_0x7a6dce(0x168)+JSON['stringify'](_0x45d5d3)+'\x20files');const _0x2a9128={};_0x2a9128[_0x7a6dce(0x16c)]=!![],_0x2a9128[_0x7a6dce(0x190)]=_0x2477d5;const _0x88aa14=_0x94092f[_0x7a6dce(0x15f)](micromatch,_0x45d5d3,_0x28b41e,_0x2a9128)[_0x7a6dce(0x1b1)](_0x37d81d=>path[_0x7a6dce(0x1b9)](_0x5c9340[_0x7a6dce(0x1b2)],_0x37d81d));return logger[_0x7a6dce(0x178)]('Filterted\x20to\x20test\x20files:\x20'+JSON[_0x7a6dce(0x198)](_0x88aa14)+_0x7a6dce(0x1b3)),_0x88aa14;}catch(_0x504d55){return logger[_0x7a6dce(0x178)](_0x7a6dce(0x17e)+_0x504d55),[];}}}function a123_0x40dd(_0x2ee804,_0x1995d1){const _0x458bf6=a123_0x458b();return a123_0x40dd=function(_0x40dd10,_0x24293d){_0x40dd10=_0x40dd10-0x157;let _0x1da015=_0x458bf6[_0x40dd10];return _0x1da015;},a123_0x40dd(_0x2ee804,_0x1995d1);}module[a123_0x45cd4b(0x1a8)]=TestOrchestrationHandler;function a123_0x458b(){const _0x4febfe=['pOOzw','../logger','child_process','nodeIndex','testOrderingServerHandler','jest','exports','tqNrw','env','QZxkq','szXwc','rnWOS','buildName','updateBuildIdentifier','testPathIgnorePatterns','map','rootDir','\x20files','--listTests','utf-8','ZDarq','Test\x20orchestration\x20without\x20test\x20ordering','IRTiY','relative','applied','isArray','4610685ZmFqFJ','orchestrationUtils','DDily','orderingInstrumentationData','splitTestsAPICallCount','getOrderingInstrumentationData','bKSVm','length','glob','LSoZn','projectName','VXjkV','BROWSERSTACK_BUILD_RUN_IDENTIFIER','SBYqD','CxQJP','1164378qqAgut','logTestOrderingChecks','BySfn','testOrderingEnabled','74570aWQcMr','toString','path','BROWSERSTACK_TOTAL_NODE_COUNT','Found\x20test\x20files:\x20','Test\x20Reordering\x20is\x20unavailable\x20because\x20testObservability\x20is\x20disabled.\x20Please\x20enable\x20it\x20from\x20browserstack.yml\x20file.','stdout','filter','matchBase','getTestOrderingName','YKmbC','EvKVQ','getOrderedTestFiles','splitTests','Ytink','eLzIa','totalNodes','zOaMq','[orchestrate]\x20Setting\x20buildIdentifier\x20to\x20buildRunIdentifier:\x20','60OxKOSU','debug','MFyRF','_initializeTestOrdering','RevAs','[reorderTestFiles]\x20Error\x20in\x20ordering\x20test\x20files:\x20','addToOrderingInstrumentationData','Error\x20finding\x20test\x20files:\x20','split','./testOrderingServerHandler','EAbjm','1ehXJiZ','stack','testObservability','testOrderingApplied','jest-runner','HkHMJ','4088584VsuCon','wAPBt','isTestOrchestrationEnabled','3108RRGOZL','config','1273082tSyqqY','reorderTestFiles','downloadedTestFilesCount','ignore','rToOz','5|1|2|4|3|0','info','117aYfsUy','1812104HunKTn','findTestFiles','ZSntG','stringify','_shouldLogTestOrderingChecks','Test\x20Reordering\x20is\x20unavailable\x20because\x20buildName\x20or\x20projectName\x20is\x20null.\x20Please\x20set\x20a\x20non-null\x20value.','**/__tests__/**/*.[jt]s?(x)','./orchestrationUtils','HxntR','../helper','SqJjP','isTestOrderingApplied','jest-config'];a123_0x458b=function(){return _0x4febfe;};return a123_0x458b();}
1
+ function a123_0xc81c(_0xe9c08e,_0x41a724){const _0x1ab43c=a123_0x1ab4();return a123_0xc81c=function(_0xc81c42,_0x146659){_0xc81c42=_0xc81c42-0x19f;let _0x17f07d=_0x1ab43c[_0xc81c42];return _0x17f07d;},a123_0xc81c(_0xe9c08e,_0x41a724);}const a123_0x5398b1=a123_0xc81c;(function(_0x35cfab,_0x281409){const _0x55585d=a123_0xc81c,_0x77d6d7=_0x35cfab();while(!![]){try{const _0x10dd7c=-parseInt(_0x55585d(0x1ac))/0x1*(parseInt(_0x55585d(0x1c9))/0x2)+parseInt(_0x55585d(0x1b9))/0x3+-parseInt(_0x55585d(0x1bd))/0x4+parseInt(_0x55585d(0x1fd))/0x5+-parseInt(_0x55585d(0x1c8))/0x6+parseInt(_0x55585d(0x202))/0x7*(parseInt(_0x55585d(0x204))/0x8)+parseInt(_0x55585d(0x200))/0x9;if(_0x10dd7c===_0x281409)break;else _0x77d6d7['push'](_0x77d6d7['shift']());}catch(_0x460eed){_0x77d6d7['push'](_0x77d6d7['shift']());}}}(a123_0x1ab4,0x589f2));function a123_0x1ab4(){const _0x4f230b=['WxeIg','path','[orchestrate]\x20Setting\x20buildIdentifier\x20to\x20buildRunIdentifier:\x20','cxHdj','utf-8','fiYCQ','500772uzUEtM','IJysw','buildIdentifier','totalNodes','map','child_process','dRlbS','env','HwYoc','UwVQq','BROWSERSTACK_TOTAL_NODE_COUNT','winstonLogger','./testOrderingServerHandler','1608231ejpeZj','LIIBP','_initializeTestOrdering','IjnNH','1093904CZgvGZ','XwHiN','EtBEe','xZLXk','addToOrderingInstrumentationData','isTestOrchestrationEnabled','isArray','split','BROWSERSTACK_NODE_INDEX','rootDir','exports','2533728TzzvmU','2xZbqYv','orderingInstrumentationData','stack','kbtBZ','setTestOrderingApplied','micromatch','testPathIgnorePatterns','BROWSERSTACK_BUILD_RUN_IDENTIFIER','\x20files','downloadedTestFilesCount','../logger','npx','cwfBC','length','Test\x20orchestration\x20with\x20test\x20ordering\x20enabled','logTestOrderingChecks','GPVVF','gQgtF','testOrderingServerHandler','toString','jest','testObservability','qReom','UojhV','orchestrationUtils','kEzFE','glob','--listTests','sdBuC','0|2|3|1|4|5','JZAOY','_shouldLogTestOrderingChecks','testOrderingApplied','info','splitTestsAPICallCount','Qpmnf','buildName','getTestOrderingName','uploadedTestFilesCount','[reorderTestFiles]\x20Test\x20ordering\x20is\x20not\x20supported\x20or\x20enabled','YzOeJ','./orchestrationUtils','xPoZG','**/?(*.)+(spec|test).[jt]s?(x)','rTuNG','Error\x20finding\x20test\x20files:\x20','testOrderingEnabled','filter','getSplitTestsAPICallCount','Test\x20orchestration\x20without\x20test\x20ordering','GNuQT','IoRdV','439360twGZoy','NLXIF','splitTests','4150728WLeGeP','matchBase','7ekSJaA','ignore','3795112SaBJeT','testMatch','debug','stringify','findTestFiles','aJmMS','--config','config','isTestOrderingApplied','wdHbC'];a123_0x1ab4=function(){return _0x4f230b;};return a123_0x1ab4();}const logger=require(a123_0x5398b1(0x1d3))[a123_0x5398b1(0x1b7)],{isUndefined,isNotUndefined,isTrueString,sanitizedFilePath}=require('../helper'),TestOrderingServerHandler=require(a123_0x5398b1(0x1b8)),OrchestrationUtils=require(a123_0x5398b1(0x1f2)),path=require(a123_0x5398b1(0x1a7)),{spawnSync}=require(a123_0x5398b1(0x1b1)),micromatch=require(a123_0x5398b1(0x1ce)),fs=require('fs');class TestOrchestrationHandler{constructor(_0x25f847){const _0x5c696a=a123_0x5398b1,_0xa88a6d={};_0xa88a6d['dRlbS']=_0x5c696a(0x1e6);const _0x16d365=_0xa88a6d,_0x437f3e=_0x16d365[_0x5c696a(0x1b2)][_0x5c696a(0x1c4)]('|');let _0x3f0f00=0x0;while(!![]){switch(_0x437f3e[_0x3f0f00++]){case'0':this['config']=_0x25f847;continue;case'1':this[_0x5c696a(0x1db)]=null;continue;case'2':this[_0x5c696a(0x1ca)]={};continue;case'3':this[_0x5c696a(0x1e9)]=![];continue;case'4':this[_0x5c696a(0x1e1)]=new OrchestrationUtils(_0x25f847);continue;case'5':this[_0x5c696a(0x1bb)]();continue;}break;}}[a123_0x5398b1(0x1c2)](){const _0x3126f0=a123_0x5398b1,_0x5d4a98={'gQgtF':function(_0x5ec7b3,_0x3d44d8){return _0x5ec7b3(_0x3d44d8);},'WxeIg':function(_0x3e0f99,_0x146aa8){return _0x3e0f99(_0x146aa8);},'HUVQM':function(_0x47722a,_0x196858){return _0x47722a&&_0x196858;}},_0x58e217=_0x5d4a98[_0x3126f0(0x1da)](isNotUndefined,this[_0x3126f0(0x1a3)])&&(_0x5d4a98[_0x3126f0(0x1a6)](isUndefined,this['config'][_0x3126f0(0x1de)])||_0x5d4a98[_0x3126f0(0x1a6)](isTrueString,this[_0x3126f0(0x1a3)][_0x3126f0(0x1de)])),_0x396f3d=this[_0x3126f0(0x1e1)][_0x3126f0(0x1f7)](),_0xd49ea3=_0x5d4a98[_0x3126f0(0x1da)](isNotUndefined,this[_0x3126f0(0x1a3)])&&_0x5d4a98[_0x3126f0(0x1da)](isNotUndefined,this[_0x3126f0(0x1a3)]['projectName']),_0x1a4138=_0x5d4a98[_0x3126f0(0x1da)](isNotUndefined,this[_0x3126f0(0x1a3)])&&_0x5d4a98[_0x3126f0(0x1da)](isNotUndefined,this[_0x3126f0(0x1a3)][_0x3126f0(0x1ed)]);return _0x5d4a98['HUVQM'](_0x58e217,_0x396f3d)&&_0xd49ea3&&_0x1a4138;}[a123_0x5398b1(0x1bb)](){const _0x65dfa7=a123_0x5398b1,_0x39fbd7={};_0x39fbd7[_0x65dfa7(0x1a5)]=_0x65dfa7(0x1d7),_0x39fbd7[_0x65dfa7(0x1ab)]=_0x65dfa7(0x1fa);const _0x38ee6c=_0x39fbd7;this[_0x65dfa7(0x1c2)]()?(this[_0x65dfa7(0x1db)]=new TestOrderingServerHandler(this[_0x65dfa7(0x1a3)]),logger[_0x65dfa7(0x1ea)](_0x38ee6c[_0x65dfa7(0x1a5)])):(logger['debug'](_0x38ee6c[_0x65dfa7(0x1ab)]),this['logTestOrderingChecks']());}[a123_0x5398b1(0x1d8)](){const _0x5723db=a123_0x5398b1,_0xe61aae={'xPoZG':function(_0x1b7496,_0x14fae3){return _0x1b7496(_0x14fae3);},'qReom':function(_0x2e5cbf,_0x3fe2fc){return _0x2e5cbf(_0x3fe2fc);},'sdBuC':'Test\x20Reordering\x20is\x20unavailable\x20because\x20buildName\x20or\x20projectName\x20is\x20null.\x20Please\x20set\x20a\x20non-null\x20value.','cxHdj':function(_0x431500,_0xf11852){return _0x431500(_0xf11852);},'Qpmnf':function(_0x5c67a0,_0x2d1093){return _0x5c67a0(_0x2d1093);},'kEzFE':'Test\x20Reordering\x20is\x20unavailable\x20because\x20testObservability\x20is\x20disabled.\x20Please\x20enable\x20it\x20from\x20browserstack.yml\x20file.'};if(!this['_shouldLogTestOrderingChecks']())return;(!_0xe61aae[_0x5723db(0x1f3)](isNotUndefined,this[_0x5723db(0x1a3)])||!_0xe61aae[_0x5723db(0x1df)](isNotUndefined,this[_0x5723db(0x1a3)]['buildName'])||!_0xe61aae[_0x5723db(0x1f3)](isNotUndefined,this['config']['projectName']))&&logger[_0x5723db(0x1ea)](_0xe61aae[_0x5723db(0x1e5)]),_0xe61aae[_0x5723db(0x1a9)](isNotUndefined,this[_0x5723db(0x1a3)])&&_0xe61aae['xPoZG'](isNotUndefined,this[_0x5723db(0x1a3)][_0x5723db(0x1de)])&&!_0xe61aae[_0x5723db(0x1ec)](isTrueString,this[_0x5723db(0x1a3)][_0x5723db(0x1de)])&&logger[_0x5723db(0x1ea)](_0xe61aae[_0x5723db(0x1e2)]);}[a123_0x5398b1(0x1e8)](){const _0x1488cf=a123_0x5398b1;return!this[_0x1488cf(0x1c2)]()&&this[_0x1488cf(0x1e1)][_0x1488cf(0x1f7)]();}[a123_0x5398b1(0x1a4)](){const _0x1e31a=a123_0x5398b1;return this[_0x1e31a(0x1e9)];}[a123_0x5398b1(0x1cd)](_0x324913){const _0x568002=a123_0x5398b1,_0x593643={};_0x593643[_0x568002(0x1b5)]='applied';const _0x48f958=_0x593643;this[_0x568002(0x1e9)]=_0x324913,this[_0x568002(0x1c1)](_0x48f958[_0x568002(0x1b5)],_0x324913);}[a123_0x5398b1(0x1c1)](_0x5c591e,_0x36f246){const _0x43f2fb=a123_0x5398b1;this[_0x43f2fb(0x1ca)][_0x5c591e]=_0x36f246;}['getOrderingInstrumentationData'](){const _0x4d3b6b=a123_0x5398b1;return this[_0x4d3b6b(0x1ca)];}['updateBuildIdentifier'](){const _0x16af38=a123_0x5398b1,_0x38a6c1={'dQygx':function(_0x2380e0,_0x5661e5){return _0x2380e0(_0x5661e5);},'XwHiN':function(_0x468310,_0x3182f9){return _0x468310>_0x3182f9;}},_0x2787fc=_0x38a6c1['dQygx'](parseInt,process[_0x16af38(0x1b3)][_0x16af38(0x1b6)]||'1'),_0xdaf11f=process[_0x16af38(0x1b3)][_0x16af38(0x1d0)];_0xdaf11f&&_0x38a6c1[_0x16af38(0x1be)](_0x2787fc,0x1)&&(logger[_0x16af38(0x206)](_0x16af38(0x1a8)+_0xdaf11f),this[_0x16af38(0x1a3)][_0x16af38(0x1ae)]=_0xdaf11f);}async['reorderTestFiles'](_0x399ae4){const _0x5bc9eb=a123_0x5398b1,_0x2e9b8e={'LIIBP':function(_0x405cf9,_0x726d22){return _0x405cf9===_0x726d22;},'NLXIF':_0x5bc9eb(0x1f0),'UojhV':function(_0x5ced6a,_0x499372){return _0x5ced6a===_0x499372;},'rTuNG':function(_0x5edaf7,_0x5e07d4){return _0x5edaf7(_0x5e07d4);},'aJmMS':function(_0x78d5bc,_0x2803e1){return _0x78d5bc(_0x2803e1);},'YzOeJ':_0x5bc9eb(0x1ef),'NeLPu':'nodeIndex','NDWQg':_0x5bc9eb(0x1af),'HwYoc':_0x5bc9eb(0x1d2),'kAeZh':_0x5bc9eb(0x1eb)};try{if(!_0x399ae4||!Array[_0x5bc9eb(0x1c3)](_0x399ae4)||_0x2e9b8e['LIIBP'](_0x399ae4[_0x5bc9eb(0x1d6)],0x0))return null;if(_0x2e9b8e[_0x5bc9eb(0x1ba)](this[_0x5bc9eb(0x1c2)](),![]))return logger['debug'](_0x2e9b8e[_0x5bc9eb(0x1fe)]),null;let _0x514fc1=null;const _0x5f1ad6=this['orchestrationUtils'][_0x5bc9eb(0x1ee)]();if(this[_0x5bc9eb(0x1db)]){const _0x4cb615=await this[_0x5bc9eb(0x1db)][_0x5bc9eb(0x1ff)](_0x399ae4,_0x5f1ad6);if(!_0x4cb615)return null;_0x514fc1=await this[_0x5bc9eb(0x1db)]['getOrderedTestFiles'](_0x4cb615);}if(!_0x514fc1||!Array['isArray'](_0x514fc1)||_0x2e9b8e[_0x5bc9eb(0x1e0)](_0x514fc1[_0x5bc9eb(0x1d6)],0x0))return null;const _0x5b1f3a=_0x2e9b8e[_0x5bc9eb(0x1f5)](parseInt,process[_0x5bc9eb(0x1b3)][_0x5bc9eb(0x1c5)]||'0'),_0x30f087=_0x2e9b8e[_0x5bc9eb(0x1a1)](parseInt,process['env'][_0x5bc9eb(0x1b6)]||'1');return this[_0x5bc9eb(0x1c1)](_0x2e9b8e[_0x5bc9eb(0x1f1)],_0x399ae4['length']),this[_0x5bc9eb(0x1c1)](_0x2e9b8e['NeLPu'],_0x5b1f3a),this[_0x5bc9eb(0x1c1)](_0x2e9b8e['NDWQg'],_0x30f087),this['addToOrderingInstrumentationData'](_0x2e9b8e[_0x5bc9eb(0x1b4)],_0x514fc1[_0x5bc9eb(0x1d6)]),this[_0x5bc9eb(0x1c1)](_0x2e9b8e['kAeZh'],this[_0x5bc9eb(0x1db)]?this[_0x5bc9eb(0x1db)][_0x5bc9eb(0x1f9)]():0x0),_0x514fc1[_0x5bc9eb(0x1b0)](_0x460f7a=>sanitizedFilePath(_0x460f7a));}catch(_0x28935c){return logger[_0x5bc9eb(0x206)]('[reorderTestFiles]\x20Error\x20in\x20ordering\x20test\x20files:\x20'+(_0x28935c[_0x5bc9eb(0x1cb)]||_0x28935c[_0x5bc9eb(0x1dc)]())),null;}}async[a123_0x5398b1(0x1a0)](_0x3b2339,_0x17eca6,_0x2fe91a){const _0x366788=a123_0x5398b1,_0x483b91={'JZAOY':function(_0x16a7b9,_0x6c4c56){return _0x16a7b9(_0x6c4c56);},'GNuQT':'jest-config','RrRHe':'jest-util','IoRdV':'jest-runner','xZLXk':_0x366788(0x1e3),'uSoEC':'**/__tests__/**/*.[jt]s?(x)','kbtBZ':_0x366788(0x1f4),'cwfBC':function(_0x1a5195,_0x24b51c,_0x3c7c61,_0x43785e){return _0x1a5195(_0x24b51c,_0x3c7c61,_0x43785e);},'IjnNH':_0x366788(0x1d4),'uJLOP':_0x366788(0x1dd),'IJysw':_0x366788(0x1a2),'GPVVF':_0x366788(0x1e4),'EtBEe':_0x366788(0x1aa)};try{const {getTestPathPatterns:_0x22fb52}=_0x483b91['JZAOY'](require,_0x483b91[_0x366788(0x1fb)]),{globsToMatcher:_0x1ed189}=_0x483b91[_0x366788(0x1e7)](require,_0x483b91['RrRHe']),{findRelatedTests:_0x3fe4fd}=_0x483b91[_0x366788(0x1e7)](require,_0x483b91[_0x366788(0x1fc)]),_0x36589e=_0x483b91[_0x366788(0x1e7)](require,_0x483b91[_0x366788(0x1c0)]),_0x38d9e6=_0x3b2339[_0x366788(0x205)]||[_0x483b91['uSoEC'],_0x483b91[_0x366788(0x1cc)]],_0x5d291e=_0x3b2339[_0x366788(0x1cf)]||[],_0x28e3df=_0x483b91[_0x366788(0x1d5)](spawnSync,_0x483b91[_0x366788(0x1bc)],[_0x483b91['uJLOP'],_0x483b91[_0x366788(0x1ad)],_0x2fe91a,..._0x17eca6,_0x483b91[_0x366788(0x1d9)]],{'encoding':_0x483b91[_0x366788(0x1bf)]});let _0xd3ba7c=[];!_0x28e3df['error']&&(_0xd3ba7c=_0x28e3df['stdout'][_0x366788(0x1c4)]('\x0a')[_0x366788(0x1f8)](Boolean));logger[_0x366788(0x206)]('Found\x20test\x20files:\x20'+JSON[_0x366788(0x19f)](_0xd3ba7c)+_0x366788(0x1d1));const _0x3a34a1={};_0x3a34a1[_0x366788(0x201)]=!![],_0x3a34a1[_0x366788(0x203)]=_0x5d291e;const _0x27e2f4=_0x483b91[_0x366788(0x1d5)](micromatch,_0xd3ba7c,_0x38d9e6,_0x3a34a1)[_0x366788(0x1b0)](_0x544ff7=>path['relative'](_0x3b2339[_0x366788(0x1c6)],_0x544ff7));return logger[_0x366788(0x206)]('Filterted\x20to\x20test\x20files:\x20'+JSON[_0x366788(0x19f)](_0x27e2f4)+_0x366788(0x1d1)),_0x27e2f4;}catch(_0xc5ba33){return logger['debug'](_0x366788(0x1f6)+_0xc5ba33),[];}}}module[a123_0x5398b1(0x1c7)]=TestOrchestrationHandler;