browserstack-node-sdk 1.42.1 → 1.42.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 (176) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/cucumber-sessionDetails.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  49. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  50. package/src/bin/cucumber-js/playwright-patcher.js +1 -1
  51. package/src/bin/cucumber-js/test-observability.js +1 -1
  52. package/src/bin/cucumber-js/test.setup.js +1 -1
  53. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  54. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  55. package/src/bin/integrations/command.js +1 -1
  56. package/src/bin/integrations/constants.js +1 -1
  57. package/src/bin/jest/command.js +1 -1
  58. package/src/bin/jest/customImplements/customCircus.js +1 -1
  59. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  60. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  61. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  62. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  63. package/src/bin/jest/jest.setup.js +1 -1
  64. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  65. package/src/bin/jest/test-observability/helper.js +1 -1
  66. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  67. package/src/bin/jest/test-observability/test-details.js +1 -1
  68. package/src/bin/jest/test_before.setup.js +1 -1
  69. package/src/bin/launcher/launcher.js +1 -1
  70. package/src/bin/load/index.js +1 -1
  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/playwright-helper.js +1 -1
  154. package/src/helpers/processHelper.js +1 -1
  155. package/src/helpers/request-spy.js +1 -1
  156. package/src/helpers/setKeepAlive.js +1 -1
  157. package/src/helpers/test-observability/constants.js +1 -1
  158. package/src/helpers/test-observability/error-handler.js +1 -1
  159. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  160. package/src/helpers/test-observability/sessionHandler.js +1 -1
  161. package/src/helpers/test-observability/utils.js +1 -1
  162. package/src/helpers/test-orchestration/constants.js +1 -1
  163. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  164. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  165. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  166. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  167. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  168. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  169. package/src/helpers/testhub/constants.js +1 -1
  170. package/src/helpers/testhub/testhubHandler.js +1 -1
  171. package/src/helpers/testhub/utils.js +1 -1
  172. package/src/helpers/timeoutPromise.js +1 -1
  173. package/src/helpers/utilities.js +1 -1
  174. package/src/helpers/w3cMapping.js +1 -1
  175. package/src/hubAllocationMethods.js +1 -1
  176. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a120_0x3124(){const _0x2b74ed=['capabilities','split','map','CQKsy','lodash','BROWSERSTACK_CONFIG_FILE_PATH','win32','kAwwD','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','Error\x20in\x20importing\x20windows-release\x20','getSession','toJSON','platform','PRINT_BUILDLINK','object','DKbki','sendPlatformDetails','data','err','isInternalHook','automate','ufnuQ','@cucumber/cucumber','bNqCO','path','mKHzC','ylOFq','@playwright/test','geJjd','BaOee','getCustomTags','bs:addPlatformDetails:','fileName','dAKPA','EsMDT','util','agent','syIHO','Visit\x20','vIzks','uyIKd','env','../logger','mtiAQ','Hzimn','AxmUh','parseFileNames','NWiFJ','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','Uploading\x20trace\x20logs\x20to:\x20','git-last-commit','jwTwd','vAIJs','\x20test\x20instance\x20:\x20','../../helpers/request-spy','getos','timeout','match','ZHkDN','config','debug','Jtuyg','qFBJw','fromEntries','browserstack_executor:\x20','logs','xICZl','catch','QkbtC','windows-release','toString','O11yHashedID','bHHvo','XEfas','DNiIa','appium:app','getCapabilities','HTTP','qBaTS','info','CODECEPT_CUCUMBER','TEEqx','syzEK','asyncAwaitNodeReq','true','hostname','bdyPW','relative','O11Y_URL','https','fEECw','ATS_HUB_URL_REGEX','http','../performance/constants','getSyncScript','turboScaleGridDetails','message','test','spy','wqAPv','trace','failureData','null','maxSockets','jest','../../bin/utils/constants','zaeGC','now','19789385VMcyRo','getUserCredentials','gHKrQ','url','BROWSERSTACK_TEST_REPORTING','maxTotalSockets','weDCF','map_','Agent','filter','MOCHA','platformName','HtWas','stack','getAccessKey','headers','host','PathHelper','../performance/performance-tester','removeAnsiColors','__cloud_provider___','VigoE','application/json','getDefaultHeaders','\x20]\x20Build\x20Not\x20Found\x20%s','turboscale','kfQTG','mSmJR','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','/builds/','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','HBGJK','codeceptjs','../../bin/v2/browserstackCLI','mocha','PwsHM','LOinb','backtrace','AssertionError','sleep','ncdYx','../helper','patchConsoleLogger','KDqaL','includes','Failed\x20to\x20determine\x20product\x20linked\x20to\x20','PLAYWRIGHT','measureWrapper','FdawS','customTag','../../../src/bin/utils/constants','fBPxM','nodeRequest','rBhkO','app','annotate','buildTag','local_grid','child_process','GWqQW','CfrEN','BROWSERSTACK_TEST_REPORTING_DEBUG','rPScf','push','release','emit','forEach','NvhEE','ikAjn','1926223QsKNpZ','JEOST','BPEoS','error','BROWSERSTACK_OBSERVABILITY_DEBUG','trim','UnhandledError','CODECEPT','336396aBbPDb','IZkLD','gwPxQ','getFailureType','json','Bearer\x20','vkYjg','silly','BROWSERSTACK_TEST_OBSERVABILITY_YML','toISOString','LocSM','length','isArray','ZiPHe','addRequestSpy','zuuSY','Linux','TEST_ATTACHMENT','Windows','TEST_OBSERVABILITY_BUILD_TAG','BROWSERSTACK_TESTHUB_JWT','YazGV','./constants','72330PmPrZo','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','49062XlgmNC','6974904BBOlHR','MTFVs','IyFbr','Blydi','X-BSTACK-TESTOPS','keys','getPlatformDetails','OiVdZ','JEST','gwgzX','browserstack','getPackageVersion','stringify','bs:addLog:','replace','QOkJi','hVqHW','printBuildLink','app-automate','vIdfF','git-repo-info','cxrqj','5413876GKxLOI','IIowi','../../bin/utils/logPatcher','then','isUndefined','execSync','unknown_grid','Unknown','default','BfSQS','relativeTestFilePath','\x20]\x20','extractValuesWithRegexKeyMatch','isKnr','\x20:\x20','BROWSERSTACK_RERUN_TESTS','lQWfe','YjkaG','WbqQB','BS_TESTOPS_BUILD_HASHED_ID','getBrowserStackConfig','CUCUMBER','getObservabilityLinkedProductName','keepAlive','modifyReqForTraceUpload','TEST_REPORTING_BUILD_TAG','body','getBrowserVersion','PaXDh','jSgOv','Content-Type','ebsYX','format','DBhqW','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','prefix','bUPIu','Authorization','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','parse','][\x20','TEST_REPORTING_ANALYTICS','XSAbK','OS\x20X','zTKqW','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20'];a120_0x3124=function(){return _0x2b74ed;};return a120_0x3124();}const a120_0x2a0406=a120_0x4b8e;(function(_0x5ac756,_0x34e2ac){const _0x3ca551=a120_0x4b8e,_0x52ad45=_0x5ac756();while(!![]){try{const _0x3235cf=-parseInt(_0x3ca551(0x2d7))/0x1+parseInt(_0x3ca551(0x1e1))/0x2+-parseInt(_0x3ca551(0x1c8))/0x3+parseInt(_0x3ca551(0x1f8))/0x4+-parseInt(_0x3ca551(0x1df))/0x5+-parseInt(_0x3ca551(0x1e2))/0x6+parseInt(_0x3ca551(0x292))/0x7;if(_0x3235cf===_0x34e2ac)break;else _0x52ad45['push'](_0x52ad45['shift']());}catch(_0xb86052){_0x52ad45['push'](_0x52ad45['shift']());}}}(a120_0x3124,0xf1a36));function a120_0x4b8e(_0x5da0f4,_0x370ab4){const _0x3124f3=a120_0x3124();return a120_0x4b8e=function(_0x4b8e96,_0x558676){_0x4b8e96=_0x4b8e96-0x1c4;let _0x5d0192=_0x3124f3[_0x4b8e96];return _0x5d0192;},a120_0x4b8e(_0x5da0f4,_0x370ab4);}const fs=require('fs'),path=require(a120_0x2a0406(0x23e)),gitLastCommit=require(a120_0x2a0406(0x258)),getRepoInfo=require(a120_0x2a0406(0x1f6)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a120_0x2a0406(0x1de)),http=require(a120_0x2a0406(0x282)),https=require(a120_0x2a0406(0x27f)),child_process=require(a120_0x2a0406(0x2cc)),getos=require(a120_0x2a0406(0x25d)),os=require('os'),logger=require(a120_0x2a0406(0x250))['winstonLogger'],bsSetupHelper=require(a120_0x2a0406(0x2bb)),requestSpy=require(a120_0x2a0406(0x25c)),constants=require(a120_0x2a0406(0x28f)),logPatcher=require(a120_0x2a0406(0x1fa)),util=require(a120_0x2a0406(0x249)),{fileLogger}=require(a120_0x2a0406(0x250)),PerformanceTester=require(a120_0x2a0406(0x2a4)),{isFunction}=require(a120_0x2a0406(0x22a)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require(a120_0x2a0406(0x283)),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a120_0x2a0406(0x2c4));exports[a120_0x2a0406(0x28a)]=_0x145f3c=>{const _0x1733be=a120_0x2a0406;fileLogger[_0x1733be(0x1cf)]('['+new Date()[_0x1733be(0x1d1)]()+_0x1733be(0x220)+constants['TEST_REPORTING_ANALYTICS']+_0x1733be(0x203)+_0x145f3c);},exports[a120_0x2a0406(0x262)]=_0x56376a=>{const _0x5e355f=a120_0x2a0406,_0x5b5466={};_0x5b5466['PpPjN']=function(_0x45b45b,_0x3c3ee9){return _0x45b45b===_0x3c3ee9;},_0x5b5466[_0x5e355f(0x240)]=_0x5e355f(0x27a),_0x5b5466[_0x5e355f(0x1f7)]=function(_0x2bbce7,_0x3bf08d){return _0x2bbce7===_0x3bf08d;},_0x5b5466['vkYjg']=function(_0x2687c9,_0x3b7d12){return _0x2687c9===_0x3b7d12;};const _0x962c61=_0x5b5466;fileLogger[_0x5e355f(0x262)]('['+new Date()['toISOString']()+_0x5e355f(0x220)+constants['TEST_REPORTING_ANALYTICS']+'\x20]\x20'+_0x56376a),(_0x962c61['PpPjN'](process[_0x5e355f(0x24f)][_0x5e355f(0x2cf)],_0x962c61[_0x5e355f(0x240)])||_0x962c61['PpPjN'](process[_0x5e355f(0x24f)][_0x5e355f(0x2cf)],'1')||_0x962c61[_0x5e355f(0x1f7)](process[_0x5e355f(0x24f)][_0x5e355f(0x1c4)],_0x962c61[_0x5e355f(0x240)])||_0x962c61[_0x5e355f(0x1ce)](process[_0x5e355f(0x24f)][_0x5e355f(0x1c4)],'1'))&&consoleHolder['log']('\x0a['+new Date()['toISOString']()+_0x5e355f(0x220)+constants['TEST_REPORTING_ANALYTICS']+'\x20]\x20'+_0x56376a+'\x0a');};const a120_0x54c3ef={};a120_0x54c3ef['keepAlive']=!![],a120_0x54c3ef[a120_0x2a0406(0x25e)]=0xea60,a120_0x54c3ef['maxSockets']=0x2,a120_0x54c3ef[a120_0x2a0406(0x297)]=0x2;const httpKeepAliveAgent=new http[(a120_0x2a0406(0x29a))](a120_0x54c3ef),a120_0x2253c5={};a120_0x2253c5['keepAlive']=!![],a120_0x2253c5[a120_0x2a0406(0x25e)]=0xea60,a120_0x2253c5['maxSockets']=0x2,a120_0x2253c5[a120_0x2a0406(0x297)]=0x2;const httpsKeepAliveAgent=new https['Agent'](a120_0x2253c5),a120_0xa2643b={};a120_0xa2643b[a120_0x2a0406(0x20f)]=!![],a120_0xa2643b['timeout']=0xea60,a120_0xa2643b[a120_0x2a0406(0x28d)]=0x2,a120_0xa2643b[a120_0x2a0406(0x297)]=0x2;const httpScreenshotsKeepAliveAgent=new http[(a120_0x2a0406(0x29a))](a120_0xa2643b),a120_0x1ea8c3={};a120_0x1ea8c3[a120_0x2a0406(0x20f)]=!![],a120_0x1ea8c3[a120_0x2a0406(0x25e)]=0xea60,a120_0x1ea8c3[a120_0x2a0406(0x28d)]=0x2,a120_0x1ea8c3['maxTotalSockets']=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a120_0x2a0406(0x29a))](a120_0x1ea8c3);exports['shouldReRunObservabilityTests']=()=>{const _0x119660=a120_0x2a0406,_0x1f09a5={};_0x1f09a5[_0x119660(0x260)]=function(_0x3d3ecd,_0x5c2182){return _0x3d3ecd!==_0x5c2182;},_0x1f09a5[_0x119660(0x243)]=_0x119660(0x28c);const _0x3a9233=_0x1f09a5;return process[_0x119660(0x24f)][_0x119660(0x207)]&&_0x3a9233[_0x119660(0x260)](process[_0x119660(0x24f)][_0x119660(0x207)],_0x3a9233['BaOee'])?!![]:![];},exports['isTestObservabilitySession']=()=>{const _0xa300=a120_0x2a0406,_0x247e95={};_0x247e95[_0xa300(0x222)]=function(_0x28610c,_0x5a2dfd){return _0x28610c===_0x5a2dfd;},_0x247e95[_0xa300(0x23d)]='true',_0x247e95['wqAPv']=function(_0x25ba9f,_0x5d6fbc){return _0x25ba9f===_0x5d6fbc;},_0x247e95[_0xa300(0x23f)]=function(_0x25da55,_0x3b4bfd){return _0x25da55===_0x3b4bfd;};const _0xd2d99f=_0x247e95;let _0x439275=!![];return process['env'][_0xa300(0x1d0)]&&(_0x439275=_0xd2d99f[_0xa300(0x222)](process[_0xa300(0x24f)][_0xa300(0x1d0)],_0xd2d99f['bNqCO'])),process[_0xa300(0x24f)]['BROWSERSTACK_TEST_OBSERVABILITY']&&(_0x439275=_0xd2d99f[_0xa300(0x289)](process[_0xa300(0x24f)]['BROWSERSTACK_TEST_OBSERVABILITY'],_0xd2d99f['bNqCO'])),process[_0xa300(0x24f)][_0xa300(0x296)]&&(_0x439275=_0xd2d99f[_0xa300(0x23f)](process[_0xa300(0x24f)][_0xa300(0x296)],_0xd2d99f['bNqCO'])),_0x439275;},exports[a120_0x2a0406(0x254)]=_0x54c9c4=>{const _0x4e5cca=a120_0x2a0406;if(bsSetupHelper['isUndefined'](_0x54c9c4))return undefined;try{return _0x54c9c4[_0x4e5cca(0x1c5)]()[_0x4e5cca(0x227)](',');}catch(_0x41e954){return undefined;}},exports[a120_0x2a0406(0x1f3)]=()=>{const _0x31e74b=a120_0x2a0406,_0x582db8={'isKnr':function(_0x57688d,_0xfb67e6){return _0x57688d(_0xfb67e6);},'Edism':_0x31e74b(0x2b3),'ikAjn':function(_0x314eb4,_0x44b017){return _0x314eb4!==_0x44b017;},'HEtJK':_0x31e74b(0x28c),'YjkaG':function(_0x5bc0a2,_0x232840){return _0x5bc0a2!==_0x232840;},'vIzks':'undefined'};return PerformanceTester[_0x31e74b(0x2c1)](PerformanceO11yEvents[_0x31e74b(0x233)],async()=>{const _0x5f3b6d=_0x31e74b;try{const _0x29b02c=_0x582db8[_0x5f3b6d(0x205)](require,_0x582db8['Edism']);if(_0x29b02c[_0x5f3b6d(0x26d)]){logger[_0x5f3b6d(0x275)](_0x5f3b6d(0x24c)+O11Y_URL+'/builds/'+_0x29b02c[_0x5f3b6d(0x26d)]+_0x5f3b6d(0x2ae));return;}process[_0x5f3b6d(0x24f)]['BS_TESTOPS_BUILD_HASHED_ID']&&_0x582db8[_0x5f3b6d(0x2d6)](process[_0x5f3b6d(0x24f)]['BS_TESTOPS_BUILD_HASHED_ID'],_0x582db8['HEtJK'])&&_0x582db8[_0x5f3b6d(0x209)](process[_0x5f3b6d(0x24f)]['BS_TESTOPS_BUILD_HASHED_ID'],_0x582db8[_0x5f3b6d(0x24d)])&&logger['info'](_0x5f3b6d(0x24c)+constants[_0x5f3b6d(0x27e)]+_0x5f3b6d(0x2af)+process[_0x5f3b6d(0x24f)][_0x5f3b6d(0x20b)]+_0x5f3b6d(0x2ae));}catch(_0xbb98cc){logger[_0x5f3b6d(0x2da)](util['format']('[%s][\x20'+constants[_0x5f3b6d(0x221)]+_0x5f3b6d(0x2aa),new Date()['toISOString'](),_0xbb98cc[_0x5f3b6d(0x29f)]||_0xbb98cc[_0x5f3b6d(0x286)]||_0xbb98cc));}})();},exports[a120_0x2a0406(0x1cb)]=_0x27c5be=>{const _0xce7df4=a120_0x2a0406,_0x3c6a27={};_0x3c6a27[_0xce7df4(0x219)]=_0xce7df4(0x2b8),_0x3c6a27[_0xce7df4(0x290)]=_0xce7df4(0x1c6);const _0x447e6e=_0x3c6a27;if(!_0x27c5be)return null;return _0x27c5be['toString']()[_0xce7df4(0x25f)](/AssertionError/)?_0x447e6e[_0xce7df4(0x219)]:_0x447e6e[_0xce7df4(0x290)];},exports['getFrameworkVersion']=_0x31299b=>{const _0x2efba7=a120_0x2a0406,_0x2aabd2={};_0x2aabd2[_0x2efba7(0x201)]=_0x2efba7(0x2b4),_0x2aabd2[_0x2efba7(0x217)]=_0x2efba7(0x241),_0x2aabd2[_0x2efba7(0x2c2)]=_0x2efba7(0x2b2),_0x2aabd2['vIdfF']=_0x2efba7(0x28e),_0x2aabd2['lQWfe']=_0x2efba7(0x23c);const _0x3ba865=_0x2aabd2;let _0x498df1=null;switch(_0x31299b){case FRAMEWORKS[_0x2efba7(0x29c)]:_0x498df1=bsSetupHelper[_0x2efba7(0x1ed)](_0x3ba865['BfSQS']);break;case FRAMEWORKS[_0x2efba7(0x2c0)]:_0x498df1=bsSetupHelper[_0x2efba7(0x1ed)](_0x3ba865['ebsYX']);break;case FRAMEWORKS[_0x2efba7(0x1c7)]:case FRAMEWORKS[_0x2efba7(0x276)]:_0x498df1=bsSetupHelper[_0x2efba7(0x1ed)](_0x3ba865[_0x2efba7(0x2c2)]);break;case FRAMEWORKS[_0x2efba7(0x1ea)]:_0x498df1=bsSetupHelper['getPackageVersion'](_0x3ba865[_0x2efba7(0x1f5)]);break;case FRAMEWORKS[_0x2efba7(0x20d)]:_0x498df1=bsSetupHelper[_0x2efba7(0x1ed)](_0x3ba865[_0x2efba7(0x208)]);break;default:break;}return _0x498df1;},exports[a120_0x2a0406(0x20c)]=_0x51d59f=>{const _0x35e7a8=a120_0x2a0406;let _0x199857=null;switch(_0x51d59f){case FRAMEWORKS[_0x35e7a8(0x2c0)]:_0x199857=process[_0x35e7a8(0x24f)][_0x35e7a8(0x22b)];break;}if(!_0x199857)return;return bsSetupHelper['readConfig'](_0x199857,![]);},exports[a120_0x2a0406(0x293)]=_0x1cd9a2=>{const _0x2b961f=a120_0x2a0406;return{'username':bsSetupHelper['getUserName'](_0x1cd9a2),'accessKey':bsSetupHelper[_0x2b961f(0x2a0)](_0x1cd9a2)};},exports[a120_0x2a0406(0x210)]=(_0x3f6828,_0x471e4a)=>{const _0x479087=a120_0x2a0406,_0x47494d={};_0x47494d[_0x479087(0x248)]='4|0|5|3|1|2',_0x47494d[_0x479087(0x1eb)]='LogCreated',_0x47494d[_0x479087(0x20a)]=_0x479087(0x1d9);const _0x2c7116=_0x47494d,_0x11da47=_0x2c7116[_0x479087(0x248)]['split']('|');let _0x2258d1=0x0;while(!![]){switch(_0x11da47[_0x2258d1++]){case'0':if(!_0x3f6828['body'][0x0]||!_0x3f6828[_0x479087(0x212)][0x0][_0x479087(0x267)]||!_0x3f6828[_0x479087(0x212)][0x0]['logs'][_0x479087(0x1d3)])return;continue;case'1':delete _0x3f6828[_0x479087(0x1cc)];continue;case'2':delete _0x471e4a[_0x479087(0x2a1)];continue;case'3':delete _0x3f6828[_0x479087(0x212)];continue;case'4':if(!_0x3f6828[_0x479087(0x212)]||!Array[_0x479087(0x1d4)](_0x3f6828[_0x479087(0x212)]))return;continue;case'5':_0x3f6828['formData']={'data':_0x3f6828[_0x479087(0x212)][0x0][_0x479087(0x267)][0x0][_0x479087(0x237)],'test_run_uuid':_0x3f6828[_0x479087(0x212)][0x0][_0x479087(0x267)][0x0]['test_run_uuid'],'event_type':_0x2c7116['gwgzX'],'kind':_0x2c7116[_0x479087(0x20a)],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x479087(0x1d1)](),'fileName':_0x3f6828[_0x479087(0x212)][0x0][_0x479087(0x267)][0x0][_0x479087(0x246)]};continue;}break;}},exports[a120_0x2a0406(0x279)]=async(_0x33807d,_0x1be0c2,_0xe0d58f,_0x33e007,_0x19c874=!![])=>{const _0xf0c268=a120_0x2a0406,_0x2c6f51={};_0x2c6f51[_0xf0c268(0x2bd)]=function(_0x504302,_0x15bca7){return _0x504302===_0x15bca7;},_0x2c6f51[_0xf0c268(0x2d5)]=_0xf0c268(0x216),_0x2c6f51['syIHO']='application/json',_0x2c6f51[_0xf0c268(0x2c7)]=_0xf0c268(0x27f),_0x2c6f51['hVqHW']=function(_0x5f3029,_0x5e2ed1){return _0x5f3029===_0x5e2ed1;},_0x2c6f51[_0xf0c268(0x26a)]=function(_0x16e332,_0x475f14){return _0x16e332!==_0x475f14;},_0x2c6f51[_0xf0c268(0x2c5)]=function(_0x17d4c5,_0x38d3e6){return _0x17d4c5!==_0x38d3e6;},_0x2c6f51[_0xf0c268(0x255)]=_0xf0c268(0x234),_0x2c6f51['CDaif']=_0xf0c268(0x1e0);const _0x438cc4=_0x2c6f51,_0x42ea84={..._0x33e007,...{'method':_0x33807d,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x1be0c2,'body':_0xe0d58f,'json':_0x438cc4[_0xf0c268(0x2bd)](_0x33e007[_0xf0c268(0x2a1)][_0x438cc4[_0xf0c268(0x2d5)]],_0x438cc4[_0xf0c268(0x24b)]),'agent':API_URL[_0xf0c268(0x2be)](_0x438cc4[_0xf0c268(0x2c7)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x438cc4[_0xf0c268(0x1f2)](_0x1be0c2,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x42ea84['agent']=API_URL[_0xf0c268(0x2be)](_0x438cc4[_0xf0c268(0x2c7)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports[_0xf0c268(0x210)](_0x42ea84,_0x33e007),logger[_0xf0c268(0x262)](_0xf0c268(0x257)+_0x42ea84['url']));try{const {statusCode:_0xcc20db,body:_0x199ccf}=await bsSetupHelper['nodeRequest'](_0x33807d,_0x1be0c2,_0x42ea84,_0x33e007,_0x42ea84[_0xf0c268(0x295)]);if(_0x438cc4[_0xf0c268(0x26a)](_0xcc20db,0xc8))return _0x199ccf?_0x199ccf:_0xf0c268(0x256)+_0xcc20db;let _0x58d1b7=_0x199ccf;if(_0x19c874)try{_0x438cc4[_0xf0c268(0x2c5)](typeof _0x199ccf,_0x438cc4[_0xf0c268(0x255)])&&(_0x58d1b7=JSON[_0xf0c268(0x21f)](_0x199ccf));}catch(_0x551652){logger[_0xf0c268(0x2da)](_0x438cc4['CDaif'],_0x199ccf,util['format'](_0x551652));}const _0x19ed4a={};return _0x19ed4a[_0xf0c268(0x237)]=_0x58d1b7,_0x19ed4a;}catch(_0x1148be){logger[_0xf0c268(0x2da)](_0xf0c268(0x225)+util[_0xf0c268(0x218)](_0x1148be));throw _0x1148be;}},exports[a120_0x2a0406(0x2c6)]=(_0x21ab2d,_0x4f8eec,_0x1e8e3a,_0x51650d,_0x409825=!![])=>{const _0x1bd312=a120_0x2a0406,_0x3bbc21={'TEEqx':function(_0x38449c,_0x2ae1f8){return _0x38449c(_0x2ae1f8);},'uyIKd':function(_0x469a7b,_0x2557ef){return _0x469a7b!==_0x2557ef;},'VigoE':_0x1bd312(0x234),'fEECw':_0x1bd312(0x21e),'gHKrQ':function(_0x43563c,_0x2e2258){return _0x43563c===_0x2e2258;},'syzEK':_0x1bd312(0x216),'jSgOv':_0x1bd312(0x2a8),'dAKPA':_0x1bd312(0x27f)};return new Promise((_0x2f6eb6,_0x30f99e)=>{const _0x382cc7=_0x1bd312,_0x529b13={'weDCF':function(_0x4f18ee,_0x1173fb){const _0x23b371=a120_0x4b8e;return _0x3bbc21[_0x23b371(0x24e)](_0x4f18ee,_0x1173fb);},'bHHvo':function(_0x411911,_0x24457f){return _0x3bbc21['TEEqx'](_0x411911,_0x24457f);},'EDQXm':function(_0x413d46,_0x302acf){return _0x3bbc21['uyIKd'](_0x413d46,_0x302acf);},'DNiIa':_0x3bbc21[_0x382cc7(0x2a7)],'bdyPW':_0x3bbc21[_0x382cc7(0x280)]},_0x228200={..._0x51650d,...{'method':_0x21ab2d,'url':API_URL+'/'+_0x4f8eec,'body':_0x1e8e3a,'json':_0x3bbc21[_0x382cc7(0x294)](_0x51650d[_0x382cc7(0x2a1)][_0x3bbc21[_0x382cc7(0x278)]],_0x3bbc21[_0x382cc7(0x215)]),'agent':API_URL[_0x382cc7(0x2be)](_0x3bbc21[_0x382cc7(0x247)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x3bbc21['gHKrQ'](_0x4f8eec,SCREENSHOT_ENDPOINT)&&(_0x228200[_0x382cc7(0x24a)]=API_URL['includes'](_0x3bbc21['dAKPA'])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x382cc7(0x2c6)](_0x21ab2d,_0x4f8eec,_0x228200,_0x51650d,API_URL)[_0x382cc7(0x1fb)](({statusCode:_0x196f0e,body:_0x3bac43})=>{const _0x38b12f=_0x382cc7;if(_0x529b13[_0x38b12f(0x298)](_0x196f0e,0xc8))_0x529b13[_0x38b12f(0x26e)](_0x30f99e,_0x3bac43?_0x3bac43:_0x38b12f(0x256)+_0x196f0e);else{if(_0x409825)try{_0x529b13['EDQXm'](typeof _0x3bac43,_0x529b13[_0x38b12f(0x270)])&&(_0x3bac43=JSON[_0x38b12f(0x21f)](_0x3bac43));}catch(_0x56db6f){_0x529b13[_0x38b12f(0x26e)](_0x30f99e,_0x529b13[_0x38b12f(0x27c)]);return;}const _0x14c989={};_0x14c989['data']=_0x3bac43,_0x529b13[_0x38b12f(0x26e)](_0x2f6eb6,_0x14c989);}})[_0x382cc7(0x269)](_0x2cd097=>{const _0x1d65f6=_0x382cc7;_0x2cd097&&_0x3bbc21[_0x1d65f6(0x277)](_0x30f99e,_0x2cd097);});});},exports['getBuildTags']=_0x4f9a4e=>{const _0x375a7b=a120_0x2a0406;if(process[_0x375a7b(0x24f)][_0x375a7b(0x211)])return process[_0x375a7b(0x24f)][_0x375a7b(0x211)][_0x375a7b(0x227)](',');if(process[_0x375a7b(0x24f)][_0x375a7b(0x1db)])return process[_0x375a7b(0x24f)][_0x375a7b(0x1db)][_0x375a7b(0x227)](',');if(_0x4f9a4e[_0x375a7b(0x2ca)])return _0x4f9a4e['buildTag'];return[];},exports[a120_0x2a0406(0x2a9)]=(_0x3edaaf=!![])=>{const _0x2fb923=a120_0x2a0406,_0x1f4a2b={};_0x1f4a2b[_0x2fb923(0x268)]=_0x2fb923(0x2a8),_0x1f4a2b[_0x2fb923(0x1d2)]=_0x2fb923(0x27a),_0x1f4a2b[_0x2fb923(0x274)]=_0x2fb923(0x21d);const _0x503d28=_0x1f4a2b,_0x40526c={};_0x40526c[_0x2fb923(0x216)]=_0x503d28[_0x2fb923(0x268)],_0x40526c['X-BSTACK-TESTOPS']=_0x503d28[_0x2fb923(0x1d2)];const _0x4757ec=_0x40526c;return _0x3edaaf&&process['env'][_0x2fb923(0x1dc)]&&(_0x4757ec[_0x503d28[_0x2fb923(0x274)]]=_0x2fb923(0x1cd)+process['env'][_0x2fb923(0x1dc)]),_0x4757ec;},exports[a120_0x2a0406(0x204)]=_0x213825=>{const _0x2a4b20=a120_0x2a0406,_0x3cc5fc={};_0x3cc5fc[_0x2a4b20(0x2cd)]='^CUSTOM_TAG_\x5cd+$';const _0x4d88b8=_0x3cc5fc,_0x230383=[],_0x1a5af4=new RegExp(_0x4d88b8[_0x2a4b20(0x2cd)],'i');return Object[_0x2a4b20(0x1e7)](_0x213825)[_0x2a4b20(0x29b)](_0x41eeba=>_0x1a5af4['test'](_0x41eeba))[_0x2a4b20(0x2d4)](_0x42b6ff=>_0x230383['push'](_0x213825[_0x42b6ff])),_0x230383;},exports[a120_0x2a0406(0x244)]=_0x362c8e=>{const _0x3c11d7=a120_0x2a0406,_0xb532b5=[],_0x47d14a=_0x362c8e[_0x3c11d7(0x2c3)]||process[_0x3c11d7(0x24f)]['CUSTOM_TAG'];return _0x47d14a&&_0xb532b5[_0x3c11d7(0x2d1)](_0x47d14a),_0xb532b5['push'](...exports['extractValuesWithRegexKeyMatch'](process[_0x3c11d7(0x24f)])),_0xb532b5[_0x3c11d7(0x2d1)](...exports['extractValuesWithRegexKeyMatch'](_0x362c8e)),_0xb532b5;},exports['removeAnsiColors']=_0x50d023=>{const _0x1d00ab=a120_0x2a0406;if(!_0x50d023)return'';return _0x50d023[_0x1d00ab(0x1f0)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a120_0x2a0406(0x2b9)]=(_0x192c10=0x64)=>new Promise(_0x49133a=>setTimeout(_0x49133a,_0x192c10));const getPlatformName=()=>{const _0x4adaa7=a120_0x2a0406,_0xb535ad={};_0xb535ad[_0x4adaa7(0x1f1)]=function(_0x38780b,_0x8aee09){return _0x38780b===_0x8aee09;},_0xb535ad[_0x4adaa7(0x251)]=_0x4adaa7(0x22c),_0xb535ad['ncdYx']=_0x4adaa7(0x1da),_0xb535ad[_0x4adaa7(0x1e4)]='darwin',_0xb535ad[_0x4adaa7(0x22d)]=_0x4adaa7(0x223),_0xb535ad[_0x4adaa7(0x2b5)]=function(_0x3faa10,_0x3e9dfb){return _0x3faa10===_0x3e9dfb;},_0xb535ad['BPEoS']='linux',_0xb535ad['Blydi']=_0x4adaa7(0x1d8),_0xb535ad[_0x4adaa7(0x25a)]=_0x4adaa7(0x1ff);const _0x19346b=_0xb535ad;if(_0x19346b[_0x4adaa7(0x1f1)](process[_0x4adaa7(0x232)],_0x19346b['mtiAQ']))return _0x19346b[_0x4adaa7(0x2ba)];if(_0x19346b[_0x4adaa7(0x1f1)](process[_0x4adaa7(0x232)],_0x19346b[_0x4adaa7(0x1e4)]))return _0x19346b[_0x4adaa7(0x22d)];if(_0x19346b[_0x4adaa7(0x2b5)](process[_0x4adaa7(0x232)],_0x19346b[_0x4adaa7(0x2d9)]))return _0x19346b[_0x4adaa7(0x1e5)];return _0x19346b['vAIJs'];},getMacOSVersion=()=>{const _0x546446=a120_0x2a0406,_0x3ee723={};_0x3ee723[_0x546446(0x2ce)]=_0x546446(0x21a);const _0x282155=_0x3ee723;return child_process[_0x546446(0x1fd)](_0x282155[_0x546446(0x2ce)])[_0x546446(0x26c)]()['trim']();},getLinuxDetails=()=>{const _0x4bde36={'jwTwd':function(_0x2b6e70,_0x2d71ee){return _0x2b6e70(_0x2d71ee);}};return new Promise((_0x420f81,_0x355405)=>{const _0x1fd2d9=a120_0x4b8e,_0x523464={'hMIYM':function(_0x269ceb,_0x3a0a71){return _0x4bde36['jwTwd'](_0x269ceb,_0x3a0a71);}};_0x4bde36[_0x1fd2d9(0x259)](getos,(_0x416ea0,_0xd87bbb)=>{if(_0x416ea0)return _0x523464['hMIYM'](_0x355405,_0x416ea0);_0x523464['hMIYM'](_0x420f81,_0xd87bbb);});});};exports[a120_0x2a0406(0x1e8)]=async()=>{const _0x30194b=a120_0x2a0406,_0x1cb6d5={'mSmJR':function(_0x47e0ea){return _0x47e0ea();},'ZiPHe':_0x30194b(0x223),'AxmUh':function(_0x3fbd69){return _0x3fbd69();},'jyLvK':'Windows','geJjd':_0x30194b(0x26b),'OiVdZ':function(_0x586dd6){return _0x586dd6();},'JEOST':_0x30194b(0x1d8),'aJsMU':'Error\x20in\x20getting\x20Linux\x20Details'};let _0x356b29=_0x1cb6d5['mSmJR'](getPlatformName),_0x6a00c4=os[_0x30194b(0x2d2)]()['toString']();switch(_0x356b29){case _0x1cb6d5[_0x30194b(0x1d5)]:_0x6a00c4=_0x1cb6d5[_0x30194b(0x253)](getMacOSVersion);break;case _0x1cb6d5['jyLvK']:try{const _0x9997fc=(await import(_0x1cb6d5[_0x30194b(0x242)]))[_0x30194b(0x200)];_0x6a00c4=_0x1cb6d5[_0x30194b(0x1e9)](_0x9997fc);}catch(_0xef880c){exports['debug'](_0x30194b(0x22f)+_0xef880c[_0x30194b(0x26c)]());}break;case _0x1cb6d5[_0x30194b(0x2d8)]:try{const _0x201e5b=await _0x1cb6d5[_0x30194b(0x2ad)](getLinuxDetails);_0x201e5b['dist']&&(_0x356b29=_0x201e5b['dist']),_0x201e5b['release']&&(_0x6a00c4=_0x201e5b[_0x30194b(0x2d2)][_0x30194b(0x26c)]());}catch(_0x5d7cea){exports[_0x30194b(0x262)](_0x1cb6d5['aJsMU']);}break;default:break;}const _0x4d863e={};return _0x4d863e[_0x30194b(0x29d)]=_0x356b29,_0x4d863e['platformVersion']=_0x6a00c4,_0x4d863e;},exports[a120_0x2a0406(0x28b)]=(_0x53074c,_0x246bcc)=>{const _0x4fb14b=a120_0x2a0406,_0x1131ca={};_0x1131ca['HwSSi']=function(_0x127585,_0x3452f3){return _0x127585===_0x3452f3;},_0x1131ca[_0x4fb14b(0x229)]=_0x4fb14b(0x287),_0x1131ca[_0x4fb14b(0x23b)]=function(_0x5ad007,_0x8a3e2c){return _0x5ad007===_0x8a3e2c;},_0x1131ca['NNPiU']=_0x4fb14b(0x238);const _0x3178c1=_0x1131ca;if(!_0x53074c)return[];try{if(_0x3178c1['HwSSi'](_0x246bcc,_0x3178c1[_0x4fb14b(0x229)]))return _0x53074c[_0x4fb14b(0x228)](_0x58d92a=>{const _0x52c787=_0x4fb14b,{stack:_0x1ff116,..._0x4d4a71}=_0x58d92a,_0x41d181=Object['keys'](_0x4d4a71)[_0x52c787(0x228)](_0x3c818e=>{return _0x3c818e+':\x20'+_0x4d4a71[_0x3c818e];}),_0x205144=_0x1ff116?exports[_0x52c787(0x2a5)](_0x1ff116)['split'](/\r?\n/):[exports[_0x52c787(0x2a5)](_0x58d92a[_0x52c787(0x286)])],_0x1fab09={};return _0x1fab09['backtrace']=_0x205144,_0x1fab09['expanded']=_0x41d181,_0x1fab09;});else{if(_0x3178c1[_0x4fb14b(0x23b)](_0x246bcc,_0x3178c1['NNPiU'])){const _0x174e18=[],_0x13ed26=[];return Object['keys'](_0x53074c)[_0x4fb14b(0x2d4)](_0x3fbda4=>{const _0x351c1c=_0x4fb14b;try{_0x13ed26[_0x351c1c(0x2d1)](_0x3fbda4+':\x20'+_0x53074c[_0x3fbda4]);}catch(_0x2cda68){exports['debug']('Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20'+_0x2cda68['message']+'\x20:\x20'+_0x2cda68[_0x351c1c(0x2b7)]);}}),_0x174e18[_0x4fb14b(0x2d1)]({'backtrace':exports[_0x4fb14b(0x2a5)](_0x53074c[_0x4fb14b(0x29f)])[_0x4fb14b(0x227)](/\r?\n/),'expanded':_0x13ed26}),_0x174e18;}}return[];}catch(_0x6f19a){exports[_0x4fb14b(0x262)](_0x4fb14b(0x2b0)+_0x6f19a['message']+_0x4fb14b(0x206)+_0x6f19a['backtrace']);}return[];};class PathHelper{constructor(_0x5cb576,_0x2bc377){const _0x578d0e=a120_0x2a0406;this[_0x578d0e(0x261)]=_0x5cb576,this[_0x578d0e(0x21b)]=_0x2bc377;}[a120_0x2a0406(0x202)](_0x5aaf15){const _0x25573e=a120_0x2a0406,_0x2926ee=this[_0x25573e(0x261)]['cwd']||this['config']['rootDir'];return path[_0x25573e(0x27d)](_0x2926ee,_0x5aaf15);}['prefixTestPath'](_0x1931e9){const _0x3f25cc=a120_0x2a0406,_0x41951f=this[_0x3f25cc(0x202)](_0x1931e9);return this[_0x3f25cc(0x21b)]?path['join'](this[_0x3f25cc(0x21b)],_0x41951f):_0x41951f;}}exports[a120_0x2a0406(0x2a3)]=PathHelper,exports[a120_0x2a0406(0x1d6)]=(_0x1fce96=!![])=>{const _0x1b0458=a120_0x2a0406,_0x30b43a={};_0x30b43a['gEKdQ']=function(_0x22f7e5,_0x30f9a4){return _0x22f7e5===_0x30f9a4;},_0x30b43a['zuuSY']=_0x1b0458(0x1e6),_0x30b43a[_0x1b0458(0x2b1)]=_0x1b0458(0x27a),_0x30b43a[_0x1b0458(0x2b6)]=_0x1b0458(0x273),_0x30b43a[_0x1b0458(0x2d0)]=_0x1b0458(0x1ec),_0x30b43a['XEfas']=_0x1b0458(0x2cb);const _0x48bb19=_0x30b43a;requestSpy[_0x1b0458(0x288)]((_0x5c3dc2,_0x591195)=>{const _0xc46ffe=_0x1b0458;_0x591195&&!(_0x591195[_0xc46ffe(0x2a1)]&&_0x48bb19['gEKdQ'](_0x591195[_0xc46ffe(0x2a1)][_0x48bb19[_0xc46ffe(0x1d7)]],_0x48bb19[_0xc46ffe(0x2b1)]))&&(_0x591195[_0xc46ffe(0x2a2)]=_0x591195[_0xc46ffe(0x27b)],delete _0x591195[_0xc46ffe(0x27b)],_0x1fce96&&process[_0xc46ffe(0x2d3)](_0xc46ffe(0x1ef)+process['pid'],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x48bb19[_0xc46ffe(0x2b6)],'http_response':_0x591195})),_0x591195&&(constants['HUB_URL_REGEX']['test'](_0x591195[_0xc46ffe(0x2a2)])||constants[_0xc46ffe(0x281)][_0xc46ffe(0x287)](_0x591195['host']))?global[_0xc46ffe(0x2a6)]=_0x48bb19[_0xc46ffe(0x2d0)]:global[_0xc46ffe(0x2a6)]=_0x48bb19[_0xc46ffe(0x26f)];});},exports[a120_0x2a0406(0x2bc)]=()=>{const _0x5cac28=a120_0x2a0406,_0x1e8e55={'PaXDh':function(_0x2612f1,_0x4b7c31){return _0x2612f1(_0x4b7c31);}};console={},Object[_0x5cac28(0x1e7)](consoleHolder)['forEach'](_0x5d096d=>{const _0xa4af4d=_0x5cac28;_0x1e8e55[_0xa4af4d(0x214)](isFunction,consoleHolder[_0x5d096d])?console[_0x5d096d]=(..._0x516fe5)=>{const _0x5ac89b=_0xa4af4d;try{!Object[_0x5ac89b(0x1e7)](BSTestOpsPatcher)[_0x5ac89b(0x2be)](_0x5d096d)?consoleHolder[_0x5d096d](..._0x516fe5):BSTestOpsPatcher[_0x5d096d](..._0x516fe5);}catch(_0x21a426){consoleHolder[_0x5d096d](..._0x516fe5);}}:console[_0x5d096d]=consoleHolder[_0x5d096d];});},exports[a120_0x2a0406(0x284)]=()=>a120_0x2a0406(0x266)+JSON[a120_0x2a0406(0x1ee)]({'action':a120_0x2a0406(0x2c9),'arguments':{'data':'ObservabilitySync:'+Date[a120_0x2a0406(0x291)](),'level':a120_0x2a0406(0x262)}}),exports[a120_0x2a0406(0x20e)]=_0x36f163=>{const _0x1f4082=a120_0x2a0406,_0x31ef3e={};_0x31ef3e[_0x1f4082(0x2ac)]=function(_0x1e6ccf,_0x4cb3be){return _0x1e6ccf===_0x4cb3be;},_0x31ef3e['MTFVs']=_0x1f4082(0x1ec),_0x31ef3e[_0x1f4082(0x1f9)]=_0x1f4082(0x271),_0x31ef3e[_0x1f4082(0x29e)]=_0x1f4082(0x2c8),_0x31ef3e[_0x1f4082(0x1ca)]=function(_0x1d9685,_0x3cae0d){return _0x1d9685>_0x3cae0d;},_0x31ef3e[_0x1f4082(0x252)]=_0x1f4082(0x1f4),_0x31ef3e[_0x1f4082(0x1c9)]='bstack:options',_0x31ef3e[_0x1f4082(0x1dd)]=_0x1f4082(0x285),_0x31ef3e[_0x1f4082(0x264)]=_0x1f4082(0x2ab),_0x31ef3e[_0x1f4082(0x235)]=_0x1f4082(0x23a);const _0x39edf1=_0x31ef3e;let _0x1f3258=null;try{if(_0x39edf1['kfQTG'](global[_0x1f4082(0x2a6)],_0x39edf1[_0x1f4082(0x1e3)])){if(_0x36f163[_0x39edf1[_0x1f4082(0x1f9)]]||_0x36f163[_0x39edf1['HtWas']]||!bsSetupHelper[_0x1f4082(0x1fc)](global[_0x1f4082(0x226)])&&_0x39edf1[_0x1f4082(0x1ca)](global[_0x1f4082(0x226)]['length'],0x0)&&(global[_0x1f4082(0x226)][0x0][_0x39edf1[_0x1f4082(0x29e)]]||global[_0x1f4082(0x226)][0x0][_0x39edf1[_0x1f4082(0x1f9)]]))_0x1f3258=_0x39edf1[_0x1f4082(0x252)];else _0x36f163[_0x39edf1[_0x1f4082(0x1c9)]]&&_0x36f163[_0x39edf1[_0x1f4082(0x1c9)]][_0x39edf1[_0x1f4082(0x1dd)]]?_0x1f3258=_0x39edf1[_0x1f4082(0x264)]:_0x1f3258=_0x39edf1[_0x1f4082(0x235)];}}catch(_0x214203){exports[_0x1f4082(0x262)](_0x1f4082(0x2bf)+constants['TEST_REPORTING_ANALYTICS']+_0x1f4082(0x25b)+_0x214203);}return _0x1f3258;},exports[a120_0x2a0406(0x236)]=async(_0x124065,_0x36183b,_0x443623=![])=>{const _0x38e2ca=a120_0x2a0406,_0x4bd314={};_0x4bd314['YUJfw']=function(_0x571931,_0x11b9a2){return _0x571931===_0x11b9a2;},_0x4bd314[_0x38e2ca(0x263)]=_0x38e2ca(0x1ec),_0x4bd314[_0x38e2ca(0x224)]=_0x38e2ca(0x1fe),_0x4bd314[_0x38e2ca(0x21c)]='TEST_PLATFORM';const _0x285e3d=_0x4bd314;try{const _0x599adb=await _0x124065[_0x38e2ca(0x272)](),_0x350ac1=await _0x124065[_0x38e2ca(0x230)](),_0xd872bb={},_0x4038fb=Object[_0x38e2ca(0x265)](_0x350ac1['getCapabilities']()[_0x38e2ca(0x299)]),_0x3bc9fb={'product':exports['getObservabilityLinkedProductName'](_0x4038fb),'capabilities':_0x4038fb,'platform':_0x599adb['getPlatform'](),'platform_version':bsSetupHelper['getPlatformVersion'](_0x285e3d['YUJfw'](global[_0x38e2ca(0x2a6)],_0x285e3d[_0x38e2ca(0x263)])),'browser':_0x599adb['getBrowserName'](),'browser_version':_0x599adb[_0x38e2ca(0x213)](),'session_id':_0x350ac1[_0x38e2ca(0x231)]()};global[_0x38e2ca(0x2a6)]?_0xd872bb[global[_0x38e2ca(0x2a6)]]=_0x3bc9fb:_0xd872bb[_0x285e3d[_0x38e2ca(0x224)]]=_0x3bc9fb;if(_0x443623)return _0xd872bb;process[_0x38e2ca(0x2d3)](_0x38e2ca(0x245)+process['pid'],{'timestamp':new Date()[_0x38e2ca(0x1d1)](),'level':null,'message':null,'kind':_0x285e3d[_0x38e2ca(0x21c)],'http_response':_0xd872bb,'uuid':_0x36183b});}catch(_0x55a922){exports[_0x38e2ca(0x262)](_0x38e2ca(0x22e)+_0x55a922);}},exports[a120_0x2a0406(0x239)]=_0x5a3c35=>{const _0x55a162=a120_0x2a0406;return _0x5a3c35&&_0x5a3c35[_0x55a162(0x26c)]()[_0x55a162(0x25f)](/browserstack internal helper hook/);};
1
+ function a120_0x1caf(){const _0x2f0886=['../performance/performance-tester','../../bin/utils/logPatcher','CODECEPT','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','lDiQb','^CUSTOM_TAG_\x5cd+$','BROWSERSTACK_TEST_OBSERVABILITY_YML','local_grid','PathHelper','ztibB','getFailureType','message','Error\x20in\x20importing\x20windows-release\x20','TEST_PLATFORM','507570dmRNig','./constants','KbSpd','host','isTestObservabilitySession','iHxVH','getPackageVersion','../logger','Mdxeh','expanded','xrvSw','toString','Rybzs','iIuen','prefixTestPath','6291pQsrRW','tvXQJ','forEach','filter','4|1|2|0|3|5','RICTG','getSyncScript','AOhtt','getBrowserName','relative','bMiYu','BROWSERSTACK_OBSERVABILITY_DEBUG','Uploading\x20trace\x20logs\x20to:\x20','MMwmo','ATS_HUB_URL_REGEX','addRequestSpy','BROWSERSTACK_RERUN_TESTS','test_run_uuid','IgHwZ','getCapabilities','729568mBQyrx','sScQK','EzENl','default','vlaKE','now','BROWSERSTACK_TEST_OBSERVABILITY','4okJaYh','nodeRequest','getUserName','2591510xjmYnm','aJJaY','maxSockets','YwqDO','ZWFOs','QdwzX','bs:addLog:','asJPD','winstonLogger','XBhuo','join','../performance/constants','UihuE','TEST_REPORTING_BUILD_TAG','CUSTOM_TAG','18400oRZxHn','length','config','backtrace','getPlatformVersion','mceDo','agent','customTag','https','\x20]\x20Build\x20Not\x20Found\x20%s','dkGpJ','SeXdL','measureWrapper','keys','getos','getDefaultHeaders','TEST_ATTACHMENT','getObservabilityLinkedProductName','browserstack','1259122zfCiPH','annotate','GxKxT','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','sQZzp','lodash','RYXbX','Linux','shouldReRunObservabilityTests','][\x20','pyrGy','HUB_URL_REGEX','UdXGM','url','match','debug','[%s][\x20','failureData','../../bin/utils/constants','true','rootDir','object','BROWSERSTACK_TEST_REPORTING_DEBUG','emit','map','ZVvQv','eNZTM','mocha','PRINT_BUILDLINK','BROWSERSTACK_TEST_REPORTING','err','keepAlive','sleep','parse','release','cJwZG','getSession','toJSON','../../bin/v2/browserstackCLI','X-BSTACK-TESTOPS','nnTlM','data','removeAnsiColors','trace','getBrowserVersion','O11Y_URL','http','FxRuA','ZhTtY','error','buildTag','relativeTestFilePath','LogCreated','/builds/','stack','SMDGY','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','application/json','browserstack_executor:\x20','__cloud_provider___','util','QOjjE','split','Failed\x20to\x20determine\x20product\x20linked\x20to\x20','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','ojfVv','lmttQ','TEST_REPORTING_ANALYTICS','toISOString','getAccessKey','extractValuesWithRegexKeyMatch','format','app-automate','body','fromEntries','turboscale','getBrowserStackConfig','app','RUoPa','bstack:options','asyncAwaitNodeReq','JNJYn','smXoI','Visit\x20','automate','test','112092BPLsLj','windows-release','RzXza','LIVCQ','dist','platform','formData','BROWSERSTACK_TESTHUB_JWT','path','DlTLC','lPQjI','timeout','printBuildLink','RmKkM','turboScaleGridDetails','\x20test\x20instance\x20:\x20','Sxqep','kjEjh','capabilities','TEST_OBSERVABILITY_BUILD_TAG','getPlatformDetails','mhEbt','MHetA','TxGlW','yvlCE','698SnStpp','ehxaQ','patchConsoleLogger','spy','AssertionError','Windows','env','maxTotalSockets','../helper','\x20]\x20','headers','getFrameworkVersion','pMdTD','BS_TESTOPS_BUILD_HASHED_ID','log','YWPqN','modifyReqForTraceUpload','LRAre','appium:app','json','codeceptjs','dobuE','lbtCZ','getCustomTags','push','git-repo-info','trim','child_process','Agent','undefined','KIMlO','pid','getBuildTags','77CCScnG','vyYMF','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','catch','Content-Type','ObservabilitySync:','AVipr','unknown_grid','isUndefined','DgTMc','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','NCndF','stringify','PLAYWRIGHT','pKmTP','xGEud','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','includes','Authorization','SdvNt','logs','Znnlq','iuTcE','CUCUMBER','zyOVB','fqmvf','prefix','O11yHashedID','hQDRU','zGKOV','replace','jest','UnhandledError','KdzeF','NykMu','win32','xIEhK','git-last-commit','getPlatform','\x20:\x20','OS\x20X','info','isArray','MOCHA','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','UzEoc','null','platformVersion'];a120_0x1caf=function(){return _0x2f0886;};return a120_0x1caf();}const a120_0x4e99a3=a120_0x4d01;(function(_0xc91dda,_0x280e1f){const _0x5f4d30=a120_0x4d01,_0x2d445c=_0xc91dda();while(!![]){try{const _0x2eea06=-parseInt(_0x5f4d30(0x23b))/0x1+parseInt(_0x5f4d30(0x1cc))/0x2+parseInt(_0x5f4d30(0x17d))/0x3+-parseInt(_0x5f4d30(0x1a7))/0x4*(-parseInt(_0x5f4d30(0x1aa))/0x5)+parseInt(_0x5f4d30(0x222))/0x6*(parseInt(_0x5f4d30(0x25c))/0x7)+parseInt(_0x5f4d30(0x1a0))/0x8+-parseInt(_0x5f4d30(0x18c))/0x9*(parseInt(_0x5f4d30(0x1b9))/0xa);if(_0x2eea06===_0x280e1f)break;else _0x2d445c['push'](_0x2d445c['shift']());}catch(_0x44e772){_0x2d445c['push'](_0x2d445c['shift']());}}}(a120_0x1caf,0x4fced));const fs=require('fs'),path=require(a120_0x4e99a3(0x22a)),gitLastCommit=require(a120_0x4e99a3(0x281)),getRepoInfo=require(a120_0x4e99a3(0x254)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a120_0x4e99a3(0x17e)),http=require(a120_0x4e99a3(0x1fa)),https=require('https'),child_process=require(a120_0x4e99a3(0x256)),getos=require(a120_0x4e99a3(0x1c7)),os=require('os'),logger=require(a120_0x4e99a3(0x184))[a120_0x4e99a3(0x1b2)],bsSetupHelper=require(a120_0x4e99a3(0x243)),requestSpy=require('../../helpers/request-spy'),constants=require(a120_0x4e99a3(0x1de)),logPatcher=require(a120_0x4e99a3(0x28d)),util=require(a120_0x4e99a3(0x208)),{fileLogger}=require('../logger'),PerformanceTester=require(a120_0x4e99a3(0x28c)),{isFunction}=require(a120_0x4e99a3(0x1d1)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require(a120_0x4e99a3(0x1b5)),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require('../../../src/bin/utils/constants');exports[a120_0x4e99a3(0x1f7)]=_0x26121e=>{const _0x5f302e=a120_0x4e99a3;fileLogger['silly']('['+new Date()[_0x5f302e(0x210)]()+'][\x20'+constants[_0x5f302e(0x20f)]+'\x20]\x20'+_0x26121e);},exports[a120_0x4e99a3(0x1db)]=_0x47735f=>{const _0x586fdf=a120_0x4e99a3,_0x23ccee={};_0x23ccee[_0x586fdf(0x17f)]=function(_0xc2cf81,_0x5d76ae){return _0xc2cf81===_0x5d76ae;},_0x23ccee[_0x586fdf(0x19e)]=_0x586fdf(0x1df),_0x23ccee['dobuE']=function(_0x4ee837,_0x5297a){return _0x4ee837===_0x5297a;};const _0xa06ec3=_0x23ccee;fileLogger[_0x586fdf(0x1db)]('['+new Date()[_0x586fdf(0x210)]()+_0x586fdf(0x1d5)+constants['TEST_REPORTING_ANALYTICS']+_0x586fdf(0x244)+_0x47735f),(_0xa06ec3['KbSpd'](process[_0x586fdf(0x241)][_0x586fdf(0x1e2)],_0xa06ec3['IgHwZ'])||_0xa06ec3[_0x586fdf(0x17f)](process[_0x586fdf(0x241)]['BROWSERSTACK_TEST_REPORTING_DEBUG'],'1')||_0xa06ec3[_0x586fdf(0x17f)](process[_0x586fdf(0x241)][_0x586fdf(0x197)],_0xa06ec3[_0x586fdf(0x19e)])||_0xa06ec3[_0x586fdf(0x250)](process[_0x586fdf(0x241)][_0x586fdf(0x197)],'1'))&&consoleHolder[_0x586fdf(0x249)]('\x0a['+new Date()[_0x586fdf(0x210)]()+'][\x20'+constants[_0x586fdf(0x20f)]+_0x586fdf(0x244)+_0x47735f+'\x0a');};const a120_0x279b30={};a120_0x279b30[a120_0x4e99a3(0x1eb)]=!![],a120_0x279b30[a120_0x4e99a3(0x22d)]=0xea60,a120_0x279b30[a120_0x4e99a3(0x1ac)]=0x2,a120_0x279b30[a120_0x4e99a3(0x242)]=0x2;const httpKeepAliveAgent=new http[(a120_0x4e99a3(0x257))](a120_0x279b30),a120_0x8c929f={};a120_0x8c929f[a120_0x4e99a3(0x1eb)]=!![],a120_0x8c929f[a120_0x4e99a3(0x22d)]=0xea60,a120_0x8c929f['maxSockets']=0x2,a120_0x8c929f[a120_0x4e99a3(0x242)]=0x2;const httpsKeepAliveAgent=new https['Agent'](a120_0x8c929f),a120_0x2d511b={};a120_0x2d511b['keepAlive']=!![],a120_0x2d511b[a120_0x4e99a3(0x22d)]=0xea60,a120_0x2d511b[a120_0x4e99a3(0x1ac)]=0x2,a120_0x2d511b[a120_0x4e99a3(0x242)]=0x2;const httpScreenshotsKeepAliveAgent=new http[(a120_0x4e99a3(0x257))](a120_0x2d511b),a120_0x61c9d1={};a120_0x61c9d1[a120_0x4e99a3(0x1eb)]=!![],a120_0x61c9d1[a120_0x4e99a3(0x22d)]=0xea60,a120_0x61c9d1[a120_0x4e99a3(0x1ac)]=0x2,a120_0x61c9d1[a120_0x4e99a3(0x242)]=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a120_0x4e99a3(0x257))](a120_0x61c9d1);exports[a120_0x4e99a3(0x1d4)]=()=>{const _0x19e242=a120_0x4e99a3,_0x412a80={};_0x412a80[_0x19e242(0x189)]=function(_0x56d12f,_0x43d87e){return _0x56d12f!==_0x43d87e;},_0x412a80[_0x19e242(0x1ab)]=_0x19e242(0x28a);const _0x7fc9f=_0x412a80;return process[_0x19e242(0x241)][_0x19e242(0x19c)]&&_0x7fc9f[_0x19e242(0x189)](process[_0x19e242(0x241)][_0x19e242(0x19c)],_0x7fc9f[_0x19e242(0x1ab)])?!![]:![];},exports[a120_0x4e99a3(0x181)]=()=>{const _0x20d1f5=a120_0x4e99a3,_0x2c70d1={};_0x2c70d1[_0x20d1f5(0x1e5)]=function(_0x89e29c,_0x4424b8){return _0x89e29c===_0x4424b8;},_0x2c70d1[_0x20d1f5(0x1e6)]=_0x20d1f5(0x1df),_0x2c70d1['bMiYu']=function(_0x32bafd,_0x27f4a0){return _0x32bafd===_0x27f4a0;};const _0x1f35c1=_0x2c70d1;let _0x1743ac=!![];return process[_0x20d1f5(0x241)][_0x20d1f5(0x292)]&&(_0x1743ac=_0x1f35c1[_0x20d1f5(0x1e5)](process[_0x20d1f5(0x241)]['BROWSERSTACK_TEST_OBSERVABILITY_YML'],_0x1f35c1[_0x20d1f5(0x1e6)])),process[_0x20d1f5(0x241)][_0x20d1f5(0x1a6)]&&(_0x1743ac=_0x1f35c1[_0x20d1f5(0x1e5)](process[_0x20d1f5(0x241)][_0x20d1f5(0x1a6)],_0x1f35c1[_0x20d1f5(0x1e6)])),process[_0x20d1f5(0x241)][_0x20d1f5(0x1e9)]&&(_0x1743ac=_0x1f35c1[_0x20d1f5(0x196)](process[_0x20d1f5(0x241)][_0x20d1f5(0x1e9)],_0x1f35c1[_0x20d1f5(0x1e6)])),_0x1743ac;},exports['parseFileNames']=_0x1d7ca9=>{const _0x50b3d0=a120_0x4e99a3;if(bsSetupHelper[_0x50b3d0(0x264)](_0x1d7ca9))return undefined;try{return _0x1d7ca9['trim']()[_0x50b3d0(0x20a)](',');}catch(_0x23c065){return undefined;}},exports[a120_0x4e99a3(0x22e)]=()=>{const _0x505337=a120_0x4e99a3,_0x4649a8={'AVipr':function(_0x561c9f,_0x2d0051){return _0x561c9f(_0x2d0051);},'UdXGM':_0x505337(0x1f2),'SMDGY':function(_0x59ff06,_0x1f58d6){return _0x59ff06!==_0x1f58d6;},'aJxnP':_0x505337(0x28a),'MwEgI':_0x505337(0x258)};return PerformanceTester[_0x505337(0x1c5)](PerformanceO11yEvents[_0x505337(0x1e8)],async()=>{const _0xcb4adc=_0x505337;try{const _0x4d087f=_0x4649a8[_0xcb4adc(0x262)](require,_0x4649a8[_0xcb4adc(0x1d8)]);if(_0x4d087f[_0xcb4adc(0x277)]){logger[_0xcb4adc(0x285)](_0xcb4adc(0x21f)+O11Y_URL+_0xcb4adc(0x201)+_0x4d087f[_0xcb4adc(0x277)]+_0xcb4adc(0x25e));return;}process['env'][_0xcb4adc(0x248)]&&_0x4649a8['SMDGY'](process[_0xcb4adc(0x241)][_0xcb4adc(0x248)],_0x4649a8['aJxnP'])&&_0x4649a8[_0xcb4adc(0x203)](process[_0xcb4adc(0x241)][_0xcb4adc(0x248)],_0x4649a8['MwEgI'])&&logger['info'](_0xcb4adc(0x21f)+constants[_0xcb4adc(0x1f9)]+'/builds/'+process[_0xcb4adc(0x241)]['BS_TESTOPS_BUILD_HASHED_ID']+_0xcb4adc(0x25e));}catch(_0x61324b){logger[_0xcb4adc(0x1fd)](util[_0xcb4adc(0x213)](_0xcb4adc(0x1dc)+constants['TEST_REPORTING_ANALYTICS']+_0xcb4adc(0x1c2),new Date()[_0xcb4adc(0x210)](),_0x61324b[_0xcb4adc(0x202)]||_0x61324b['message']||_0x61324b));}})();},exports[a120_0x4e99a3(0x179)]=_0xece1d6=>{const _0x1a542d=a120_0x4e99a3,_0x4c1b70={};_0x4c1b70[_0x1a542d(0x1b6)]=_0x1a542d(0x23f),_0x4c1b70[_0x1a542d(0x27d)]=_0x1a542d(0x27c);const _0x9a3b9d=_0x4c1b70;if(!_0xece1d6)return null;return _0xece1d6[_0x1a542d(0x188)]()[_0x1a542d(0x1da)](/AssertionError/)?_0x9a3b9d[_0x1a542d(0x1b6)]:_0x9a3b9d[_0x1a542d(0x27d)];},exports[a120_0x4e99a3(0x246)]=_0x37eec2=>{const _0x53cec7=a120_0x4e99a3,_0x8c6fb1={};_0x8c6fb1[_0x53cec7(0x25d)]=_0x53cec7(0x1e7),_0x8c6fb1[_0x53cec7(0x1f4)]='@playwright/test',_0x8c6fb1['Mdxeh']=_0x53cec7(0x24f),_0x8c6fb1[_0x53cec7(0x22f)]=_0x53cec7(0x27b),_0x8c6fb1['mceDo']='@cucumber/cucumber';const _0x1cc1c3=_0x8c6fb1;let _0x23eee9=null;switch(_0x37eec2){case FRAMEWORKS[_0x53cec7(0x287)]:_0x23eee9=bsSetupHelper[_0x53cec7(0x183)](_0x1cc1c3[_0x53cec7(0x25d)]);break;case FRAMEWORKS[_0x53cec7(0x269)]:_0x23eee9=bsSetupHelper[_0x53cec7(0x183)](_0x1cc1c3[_0x53cec7(0x1f4)]);break;case FRAMEWORKS[_0x53cec7(0x28e)]:case FRAMEWORKS['CODECEPT_CUCUMBER']:_0x23eee9=bsSetupHelper[_0x53cec7(0x183)](_0x1cc1c3[_0x53cec7(0x185)]);break;case FRAMEWORKS['JEST']:_0x23eee9=bsSetupHelper[_0x53cec7(0x183)](_0x1cc1c3[_0x53cec7(0x22f)]);break;case FRAMEWORKS[_0x53cec7(0x273)]:_0x23eee9=bsSetupHelper['getPackageVersion'](_0x1cc1c3[_0x53cec7(0x1be)]);break;default:break;}return _0x23eee9;},exports[a120_0x4e99a3(0x218)]=_0x3ecac0=>{const _0x583d51=a120_0x4e99a3;let _0x29a216=null;switch(_0x3ecac0){case FRAMEWORKS[_0x583d51(0x269)]:_0x29a216=process['env']['BROWSERSTACK_CONFIG_FILE_PATH'];break;}if(!_0x29a216)return;return bsSetupHelper['readConfig'](_0x29a216,![]);},exports['getUserCredentials']=_0x5e7938=>{const _0x1f9426=a120_0x4e99a3;return{'username':bsSetupHelper[_0x1f9426(0x1a9)](_0x5e7938),'accessKey':bsSetupHelper[_0x1f9426(0x211)](_0x5e7938)};},exports[a120_0x4e99a3(0x24b)]=(_0x3aeeb8,_0x38c45b)=>{const _0x1bb95e=a120_0x4e99a3,_0xdb2394={};_0xdb2394[_0x1bb95e(0x26b)]=_0x1bb95e(0x190),_0xdb2394[_0x1bb95e(0x271)]=_0x1bb95e(0x200),_0xdb2394[_0x1bb95e(0x1b3)]=_0x1bb95e(0x1c9);const _0x1063f6=_0xdb2394,_0x50f262=_0x1063f6['xGEud'][_0x1bb95e(0x20a)]('|');let _0x576aea=0x0;while(!![]){switch(_0x50f262[_0x576aea++]){case'0':delete _0x3aeeb8['body'];continue;case'1':if(!_0x3aeeb8[_0x1bb95e(0x215)][0x0]||!_0x3aeeb8['body'][0x0][_0x1bb95e(0x270)]||!_0x3aeeb8['body'][0x0]['logs'][_0x1bb95e(0x1ba)])return;continue;case'2':_0x3aeeb8[_0x1bb95e(0x228)]={'data':_0x3aeeb8[_0x1bb95e(0x215)][0x0][_0x1bb95e(0x270)][0x0][_0x1bb95e(0x1f5)],'test_run_uuid':_0x3aeeb8['body'][0x0][_0x1bb95e(0x270)][0x0][_0x1bb95e(0x19d)],'event_type':_0x1063f6[_0x1bb95e(0x271)],'kind':_0x1063f6[_0x1bb95e(0x1b3)],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x1bb95e(0x210)](),'fileName':_0x3aeeb8[_0x1bb95e(0x215)][0x0]['logs'][0x0]['fileName']};continue;case'3':delete _0x3aeeb8[_0x1bb95e(0x24e)];continue;case'4':if(!_0x3aeeb8[_0x1bb95e(0x215)]||!Array[_0x1bb95e(0x286)](_0x3aeeb8['body']))return;continue;case'5':delete _0x38c45b['headers'];continue;}break;}},exports[a120_0x4e99a3(0x21c)]=async(_0x21ef9b,_0x13f425,_0x56116e,_0x526fc1,_0x36002f=!![])=>{const _0x4e5389=a120_0x4e99a3,_0x5ee5cd={};_0x5ee5cd[_0x4e5389(0x193)]=function(_0x2df5d4,_0x563f9d){return _0x2df5d4===_0x563f9d;},_0x5ee5cd['bJpKj']='Content-Type',_0x5ee5cd[_0x4e5389(0x18a)]=_0x4e5389(0x205),_0x5ee5cd[_0x4e5389(0x1ef)]=_0x4e5389(0x1c1),_0x5ee5cd[_0x4e5389(0x247)]=function(_0x3b951c,_0x2f55a2){return _0x3b951c!==_0x2f55a2;},_0x5ee5cd[_0x4e5389(0x1b1)]=_0x4e5389(0x1e1),_0x5ee5cd[_0x4e5389(0x21e)]=_0x4e5389(0x20c);const _0x682985=_0x5ee5cd,_0x38fbcb={..._0x526fc1,...{'method':_0x21ef9b,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x13f425,'body':_0x56116e,'json':_0x682985[_0x4e5389(0x193)](_0x526fc1['headers'][_0x682985['bJpKj']],_0x682985[_0x4e5389(0x18a)]),'agent':API_URL[_0x4e5389(0x26d)](_0x682985[_0x4e5389(0x1ef)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x682985[_0x4e5389(0x193)](_0x13f425,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x38fbcb[_0x4e5389(0x1bf)]=API_URL[_0x4e5389(0x26d)](_0x682985[_0x4e5389(0x1ef)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports['modifyReqForTraceUpload'](_0x38fbcb,_0x526fc1),logger['debug'](_0x4e5389(0x198)+_0x38fbcb['url']));try{const {statusCode:_0x338d2b,body:_0x9c880e}=await bsSetupHelper[_0x4e5389(0x1a8)](_0x21ef9b,_0x13f425,_0x38fbcb,_0x526fc1,_0x38fbcb[_0x4e5389(0x1d9)]);if(_0x682985[_0x4e5389(0x247)](_0x338d2b,0xc8))return _0x9c880e?_0x9c880e:_0x4e5389(0x1cf)+_0x338d2b;let _0x5e0f34=_0x9c880e;if(_0x36002f)try{_0x682985[_0x4e5389(0x247)](typeof _0x9c880e,_0x682985[_0x4e5389(0x1b1)])&&(_0x5e0f34=JSON[_0x4e5389(0x1ed)](_0x9c880e));}catch(_0x41031a){logger[_0x4e5389(0x1fd)](_0x682985['smXoI'],_0x9c880e,util['format'](_0x41031a));}const _0x3099b3={};return _0x3099b3[_0x4e5389(0x1f5)]=_0x5e0f34,_0x3099b3;}catch(_0x2d67b9){logger['error'](_0x4e5389(0x28f)+util[_0x4e5389(0x213)](_0x2d67b9));throw _0x2d67b9;}},exports['nodeRequest']=(_0x56e7b2,_0x24a6b7,_0x39aa95,_0x53489d,_0x41f862=!![])=>{const _0x10e400=a120_0x4e99a3,_0x2ac542={'YwqDO':function(_0x4d98ec,_0x2c6dc2){return _0x4d98ec!==_0x2c6dc2;},'GxKxT':function(_0x4a935f,_0x5ecaa9){return _0x4a935f(_0x5ecaa9);},'BKZbU':function(_0x5280e6,_0x241fc0){return _0x5280e6!==_0x241fc0;},'vlaKE':_0x10e400(0x1e1),'sQZzp':_0x10e400(0x266),'DlTLC':function(_0x33c73a,_0x4afe2b){return _0x33c73a===_0x4afe2b;},'YWPqN':_0x10e400(0x260),'RzXza':_0x10e400(0x205),'zGKOV':'https'};return new Promise((_0x4a61cb,_0x15b733)=>{const _0x5d81a1=_0x10e400,_0x51f611={'KIMlO':function(_0x3096f4,_0x42ae01){const _0x136485=a120_0x4d01;return _0x2ac542[_0x136485(0x1ce)](_0x3096f4,_0x42ae01);}},_0x50d6cd={..._0x53489d,...{'method':_0x56e7b2,'url':API_URL+'/'+_0x24a6b7,'body':_0x39aa95,'json':_0x2ac542[_0x5d81a1(0x22b)](_0x53489d[_0x5d81a1(0x245)][_0x2ac542[_0x5d81a1(0x24a)]],_0x2ac542[_0x5d81a1(0x224)]),'agent':API_URL[_0x5d81a1(0x26d)](_0x2ac542[_0x5d81a1(0x279)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x2ac542[_0x5d81a1(0x22b)](_0x24a6b7,SCREENSHOT_ENDPOINT)&&(_0x50d6cd[_0x5d81a1(0x1bf)]=API_URL[_0x5d81a1(0x26d)](_0x2ac542[_0x5d81a1(0x279)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper['nodeRequest'](_0x56e7b2,_0x24a6b7,_0x50d6cd,_0x53489d,API_URL)['then'](({statusCode:_0x5cf973,body:_0x3a1827})=>{const _0x443c14=_0x5d81a1;if(_0x2ac542[_0x443c14(0x1ad)](_0x5cf973,0xc8))_0x2ac542[_0x443c14(0x1ce)](_0x15b733,_0x3a1827?_0x3a1827:_0x443c14(0x1cf)+_0x5cf973);else{if(_0x41f862)try{_0x2ac542['BKZbU'](typeof _0x3a1827,_0x2ac542[_0x443c14(0x1a4)])&&(_0x3a1827=JSON[_0x443c14(0x1ed)](_0x3a1827));}catch(_0x56469a){_0x2ac542[_0x443c14(0x1ce)](_0x15b733,_0x2ac542[_0x443c14(0x1d0)]);return;}const _0x9c118d={};_0x9c118d[_0x443c14(0x1f5)]=_0x3a1827,_0x2ac542[_0x443c14(0x1ce)](_0x4a61cb,_0x9c118d);}})[_0x5d81a1(0x25f)](_0x2e9065=>{const _0x5236bb=_0x5d81a1;_0x2e9065&&_0x51f611[_0x5236bb(0x259)](_0x15b733,_0x2e9065);});});},exports[a120_0x4e99a3(0x25b)]=_0x1d0519=>{const _0x533fcd=a120_0x4e99a3;if(process[_0x533fcd(0x241)][_0x533fcd(0x1b7)])return process['env'][_0x533fcd(0x1b7)][_0x533fcd(0x20a)](',');if(process[_0x533fcd(0x241)][_0x533fcd(0x235)])return process[_0x533fcd(0x241)]['TEST_OBSERVABILITY_BUILD_TAG'][_0x533fcd(0x20a)](',');if(_0x1d0519[_0x533fcd(0x1fe)])return _0x1d0519[_0x533fcd(0x1fe)];return[];},exports[a120_0x4e99a3(0x1c8)]=(_0x1895f4=!![])=>{const _0x5b697e=a120_0x4e99a3,_0x47d0d0={};_0x47d0d0[_0x5b697e(0x199)]='application/json',_0x47d0d0[_0x5b697e(0x209)]='true',_0x47d0d0['reoOO']=_0x5b697e(0x26e);const _0x510d7f=_0x47d0d0,_0x271c85={};_0x271c85['Content-Type']=_0x510d7f['MMwmo'],_0x271c85[_0x5b697e(0x1f3)]=_0x510d7f[_0x5b697e(0x209)];const _0x169a86=_0x271c85;return _0x1895f4&&process[_0x5b697e(0x241)][_0x5b697e(0x229)]&&(_0x169a86[_0x510d7f['reoOO']]='Bearer\x20'+process[_0x5b697e(0x241)][_0x5b697e(0x229)]),_0x169a86;},exports['extractValuesWithRegexKeyMatch']=_0x1288e4=>{const _0x1282cd=a120_0x4e99a3,_0x7010bb={};_0x7010bb['xrvSw']=_0x1282cd(0x291);const _0x46bf39=_0x7010bb,_0x39392a=[],_0x9098e4=new RegExp(_0x46bf39[_0x1282cd(0x187)],'i');return Object[_0x1282cd(0x1c6)](_0x1288e4)[_0x1282cd(0x18f)](_0x7fda90=>_0x9098e4[_0x1282cd(0x221)](_0x7fda90))[_0x1282cd(0x18e)](_0x351f7a=>_0x39392a[_0x1282cd(0x253)](_0x1288e4[_0x351f7a])),_0x39392a;},exports[a120_0x4e99a3(0x252)]=_0x58626a=>{const _0x5109f4=a120_0x4e99a3,_0x4b5b27=[],_0x1a299b=_0x58626a[_0x5109f4(0x1c0)]||process[_0x5109f4(0x241)][_0x5109f4(0x1b8)];return _0x1a299b&&_0x4b5b27[_0x5109f4(0x253)](_0x1a299b),_0x4b5b27['push'](...exports[_0x5109f4(0x212)](process[_0x5109f4(0x241)])),_0x4b5b27[_0x5109f4(0x253)](...exports[_0x5109f4(0x212)](_0x58626a)),_0x4b5b27;},exports[a120_0x4e99a3(0x1f6)]=_0x39fa42=>{const _0x31e3fc=a120_0x4e99a3;if(!_0x39fa42)return'';return _0x39fa42[_0x31e3fc(0x27a)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a120_0x4e99a3(0x1ec)]=(_0x3aa8a0=0x64)=>new Promise(_0x44f6b7=>setTimeout(_0x44f6b7,_0x3aa8a0));function a120_0x4d01(_0x3ba5b5,_0x3efb1f){const _0x1caf88=a120_0x1caf();return a120_0x4d01=function(_0x4d01c9,_0x122e0a){_0x4d01c9=_0x4d01c9-0x179;let _0x3efc7e=_0x1caf88[_0x4d01c9];return _0x3efc7e;},a120_0x4d01(_0x3ba5b5,_0x3efb1f);}const getPlatformName=()=>{const _0x4c6833=a120_0x4e99a3,_0x428b9b={};_0x428b9b[_0x4c6833(0x265)]=function(_0x50563d,_0x29d641){return _0x50563d===_0x29d641;},_0x428b9b['QdwzX']=_0x4c6833(0x27f),_0x428b9b['MHetA']=_0x4c6833(0x240),_0x428b9b['SeXdL']=function(_0x328102,_0x39022c){return _0x328102===_0x39022c;},_0x428b9b[_0x4c6833(0x21a)]='darwin',_0x428b9b[_0x4c6833(0x275)]=_0x4c6833(0x284),_0x428b9b[_0x4c6833(0x182)]=function(_0x47d6ba,_0x2b51ca){return _0x47d6ba===_0x2b51ca;},_0x428b9b[_0x4c6833(0x1a1)]='linux',_0x428b9b[_0x4c6833(0x274)]=_0x4c6833(0x1d3),_0x428b9b[_0x4c6833(0x20d)]='Unknown';const _0x21729b=_0x428b9b;if(_0x21729b[_0x4c6833(0x265)](process[_0x4c6833(0x227)],_0x21729b[_0x4c6833(0x1af)]))return _0x21729b[_0x4c6833(0x238)];if(_0x21729b[_0x4c6833(0x1c4)](process[_0x4c6833(0x227)],_0x21729b[_0x4c6833(0x21a)]))return _0x21729b[_0x4c6833(0x275)];if(_0x21729b[_0x4c6833(0x182)](process[_0x4c6833(0x227)],_0x21729b[_0x4c6833(0x1a1)]))return _0x21729b[_0x4c6833(0x274)];return _0x21729b[_0x4c6833(0x20d)];},getMacOSVersion=()=>{const _0x217ab9=a120_0x4e99a3,_0x33e1d0={};_0x33e1d0[_0x217ab9(0x26a)]=_0x217ab9(0x204);const _0x26c354=_0x33e1d0;return child_process['execSync'](_0x26c354[_0x217ab9(0x26a)])[_0x217ab9(0x188)]()[_0x217ab9(0x255)]();},getLinuxDetails=()=>{const _0x145bba={'lPQjI':function(_0x2af032,_0x4f8169){return _0x2af032(_0x4f8169);},'LIVCQ':function(_0x506d5e,_0x3ce68e){return _0x506d5e(_0x3ce68e);}};return new Promise((_0x54aad0,_0x16953a)=>{const _0x1b009d=a120_0x4d01,_0x5a8612={'hQDRU':function(_0x21c403,_0x573427){const _0x4d0207=a120_0x4d01;return _0x145bba[_0x4d0207(0x22c)](_0x21c403,_0x573427);}};_0x145bba[_0x1b009d(0x225)](getos,(_0x59b637,_0x515f29)=>{const _0x32a8a4=_0x1b009d;if(_0x59b637)return _0x5a8612['hQDRU'](_0x16953a,_0x59b637);_0x5a8612[_0x32a8a4(0x278)](_0x54aad0,_0x515f29);});});};exports[a120_0x4e99a3(0x236)]=async()=>{const _0x2b65a6=a120_0x4e99a3,_0x5a8318={'ZWFOs':function(_0x394ea6){return _0x394ea6();},'TxGlW':_0x2b65a6(0x284),'ztibB':_0x2b65a6(0x240),'yvlCE':_0x2b65a6(0x223),'rXOfJ':_0x2b65a6(0x1d3),'iuTcE':'Error\x20in\x20getting\x20Linux\x20Details'};let _0x318654=_0x5a8318[_0x2b65a6(0x1ae)](getPlatformName),_0x4a2f12=os['release']()[_0x2b65a6(0x188)]();switch(_0x318654){case _0x5a8318[_0x2b65a6(0x239)]:_0x4a2f12=_0x5a8318[_0x2b65a6(0x1ae)](getMacOSVersion);break;case _0x5a8318[_0x2b65a6(0x295)]:try{const _0x2d6dd0=(await import(_0x5a8318[_0x2b65a6(0x23a)]))[_0x2b65a6(0x1a3)];_0x4a2f12=_0x5a8318[_0x2b65a6(0x1ae)](_0x2d6dd0);}catch(_0x3d1a8b){exports[_0x2b65a6(0x1db)](_0x2b65a6(0x17b)+_0x3d1a8b['toString']());}break;case _0x5a8318['rXOfJ']:try{const _0x3ad86a=await _0x5a8318[_0x2b65a6(0x1ae)](getLinuxDetails);_0x3ad86a[_0x2b65a6(0x226)]&&(_0x318654=_0x3ad86a[_0x2b65a6(0x226)]),_0x3ad86a[_0x2b65a6(0x1ee)]&&(_0x4a2f12=_0x3ad86a['release']['toString']());}catch(_0x1a408e){exports[_0x2b65a6(0x1db)](_0x5a8318[_0x2b65a6(0x272)]);}break;default:break;}const _0x47df56={};return _0x47df56['platformName']=_0x318654,_0x47df56[_0x2b65a6(0x28b)]=_0x4a2f12,_0x47df56;},exports[a120_0x4e99a3(0x1dd)]=(_0x1692cc,_0x3ff1b3)=>{const _0xa46621=a120_0x4e99a3,_0x2a8408={};_0x2a8408[_0xa46621(0x290)]=function(_0x1ec82f,_0x49833d){return _0x1ec82f===_0x49833d;},_0x2a8408[_0xa46621(0x1d6)]='test',_0x2a8408[_0xa46621(0x289)]=_0xa46621(0x1ea);const _0x5883c8=_0x2a8408;if(!_0x1692cc)return[];try{if(_0x5883c8[_0xa46621(0x290)](_0x3ff1b3,_0x5883c8[_0xa46621(0x1d6)]))return _0x1692cc[_0xa46621(0x1e4)](_0x56952a=>{const _0x26ee74=_0xa46621,{stack:_0x4fb83c,..._0xb02a3}=_0x56952a,_0x612801=Object[_0x26ee74(0x1c6)](_0xb02a3)[_0x26ee74(0x1e4)](_0x186e51=>{return _0x186e51+':\x20'+_0xb02a3[_0x186e51];}),_0xf25425=_0x4fb83c?exports[_0x26ee74(0x1f6)](_0x4fb83c)[_0x26ee74(0x20a)](/\r?\n/):[exports['removeAnsiColors'](_0x56952a['message'])],_0x42eb43={};return _0x42eb43['backtrace']=_0xf25425,_0x42eb43[_0x26ee74(0x186)]=_0x612801,_0x42eb43;});else{if(_0x5883c8[_0xa46621(0x290)](_0x3ff1b3,_0x5883c8['UzEoc'])){const _0x40c688=[],_0x1db480=[];return Object[_0xa46621(0x1c6)](_0x1692cc)[_0xa46621(0x18e)](_0x5b25f5=>{const _0x47a65f=_0xa46621;try{_0x1db480[_0x47a65f(0x253)](_0x5b25f5+':\x20'+_0x1692cc[_0x5b25f5]);}catch(_0x2f91eb){exports[_0x47a65f(0x1db)](_0x47a65f(0x26c)+_0x2f91eb['message']+'\x20:\x20'+_0x2f91eb[_0x47a65f(0x1bc)]);}}),_0x40c688[_0xa46621(0x253)]({'backtrace':exports['removeAnsiColors'](_0x1692cc[_0xa46621(0x202)])[_0xa46621(0x20a)](/\r?\n/),'expanded':_0x1db480}),_0x40c688;}}return[];}catch(_0x1d16c5){exports[_0xa46621(0x1db)](_0xa46621(0x26c)+_0x1d16c5[_0xa46621(0x17a)]+_0xa46621(0x283)+_0x1d16c5[_0xa46621(0x1bc)]);}return[];};class PathHelper{constructor(_0x13cab6,_0x252311){const _0x55af9f=a120_0x4e99a3;this[_0x55af9f(0x1bb)]=_0x13cab6,this[_0x55af9f(0x276)]=_0x252311;}[a120_0x4e99a3(0x1ff)](_0x5eb818){const _0x4a6c48=a120_0x4e99a3,_0x21041a=this[_0x4a6c48(0x1bb)]['cwd']||this[_0x4a6c48(0x1bb)][_0x4a6c48(0x1e0)];return path[_0x4a6c48(0x195)](_0x21041a,_0x5eb818);}[a120_0x4e99a3(0x18b)](_0x4596c6){const _0x14d416=a120_0x4e99a3,_0x4b6d68=this[_0x14d416(0x1ff)](_0x4596c6);return this[_0x14d416(0x276)]?path[_0x14d416(0x1b4)](this['prefix'],_0x4b6d68):_0x4b6d68;}}exports[a120_0x4e99a3(0x294)]=PathHelper,exports[a120_0x4e99a3(0x19b)]=(_0x2a31f0=!![])=>{const _0x505bfb=a120_0x4e99a3,_0x35659c={};_0x35659c[_0x505bfb(0x1fc)]=function(_0x132d47,_0x57175e){return _0x132d47===_0x57175e;},_0x35659c[_0x505bfb(0x1a2)]='X-BSTACK-TESTOPS',_0x35659c[_0x505bfb(0x267)]='true',_0x35659c['QngcR']='HTTP',_0x35659c[_0x505bfb(0x191)]=_0x505bfb(0x1cb),_0x35659c['JNJYn']=_0x505bfb(0x293);const _0x1ab474=_0x35659c;requestSpy[_0x505bfb(0x23e)]((_0x171ef3,_0x45d5a6)=>{const _0x4132ce=_0x505bfb;_0x45d5a6&&!(_0x45d5a6[_0x4132ce(0x245)]&&_0x1ab474[_0x4132ce(0x1fc)](_0x45d5a6[_0x4132ce(0x245)][_0x1ab474[_0x4132ce(0x1a2)]],_0x1ab474['NCndF']))&&(_0x45d5a6[_0x4132ce(0x180)]=_0x45d5a6['hostname'],delete _0x45d5a6['hostname'],_0x2a31f0&&process[_0x4132ce(0x1e3)](_0x4132ce(0x1b0)+process[_0x4132ce(0x25a)],{'timestamp':new Date()[_0x4132ce(0x210)](),'level':null,'message':null,'kind':_0x1ab474['QngcR'],'http_response':_0x45d5a6})),_0x45d5a6&&(constants[_0x4132ce(0x1d7)][_0x4132ce(0x221)](_0x45d5a6[_0x4132ce(0x180)])||constants[_0x4132ce(0x19a)][_0x4132ce(0x221)](_0x45d5a6['host']))?global[_0x4132ce(0x207)]=_0x1ab474['RICTG']:global[_0x4132ce(0x207)]=_0x1ab474[_0x4132ce(0x21d)];});},exports[a120_0x4e99a3(0x23d)]=()=>{const _0x308d0b=a120_0x4e99a3,_0xe3428a={'jkZXs':function(_0x2a9fb9,_0x22dbb0){return _0x2a9fb9(_0x22dbb0);}};console={},Object[_0x308d0b(0x1c6)](consoleHolder)['forEach'](_0x3350fd=>{_0xe3428a['jkZXs'](isFunction,consoleHolder[_0x3350fd])?console[_0x3350fd]=(..._0x305b7d)=>{const _0x5b05b1=a120_0x4d01;try{!Object[_0x5b05b1(0x1c6)](BSTestOpsPatcher)['includes'](_0x3350fd)?consoleHolder[_0x3350fd](..._0x305b7d):BSTestOpsPatcher[_0x3350fd](..._0x305b7d);}catch(_0x2b4d26){consoleHolder[_0x3350fd](..._0x305b7d);}}:console[_0x3350fd]=consoleHolder[_0x3350fd];});},exports[a120_0x4e99a3(0x192)]=()=>a120_0x4e99a3(0x206)+JSON[a120_0x4e99a3(0x268)]({'action':a120_0x4e99a3(0x1cd),'arguments':{'data':a120_0x4e99a3(0x261)+Date[a120_0x4e99a3(0x1a5)](),'level':a120_0x4e99a3(0x1db)}}),exports[a120_0x4e99a3(0x1ca)]=_0x298107=>{const _0x350aa0=a120_0x4e99a3,_0x2dd3af={};_0x2dd3af[_0x350aa0(0x20e)]=function(_0x175202,_0x1c4901){return _0x175202===_0x1c4901;},_0x2dd3af[_0x350aa0(0x18d)]=_0x350aa0(0x1cb),_0x2dd3af[_0x350aa0(0x280)]=_0x350aa0(0x24d),_0x2dd3af[_0x350aa0(0x251)]=_0x350aa0(0x219),_0x2dd3af['RYXbX']=function(_0x22c392,_0x6e9e42){return _0x22c392>_0x6e9e42;},_0x2dd3af[_0x350aa0(0x23c)]=_0x350aa0(0x214),_0x2dd3af[_0x350aa0(0x232)]=_0x350aa0(0x21b),_0x2dd3af[_0x350aa0(0x1fb)]=_0x350aa0(0x230),_0x2dd3af[_0x350aa0(0x237)]=_0x350aa0(0x217),_0x2dd3af[_0x350aa0(0x24c)]=_0x350aa0(0x220);const _0x5f3c54=_0x2dd3af;let _0x525669=null;try{if(_0x5f3c54[_0x350aa0(0x20e)](global[_0x350aa0(0x207)],_0x5f3c54['tvXQJ'])){if(_0x298107[_0x5f3c54[_0x350aa0(0x280)]]||_0x298107[_0x5f3c54[_0x350aa0(0x251)]]||!bsSetupHelper[_0x350aa0(0x264)](global['capabilities'])&&_0x5f3c54[_0x350aa0(0x1d2)](global[_0x350aa0(0x234)][_0x350aa0(0x1ba)],0x0)&&(global[_0x350aa0(0x234)][0x0][_0x5f3c54[_0x350aa0(0x251)]]||global[_0x350aa0(0x234)][0x0][_0x5f3c54[_0x350aa0(0x280)]]))_0x525669=_0x5f3c54[_0x350aa0(0x23c)];else _0x298107[_0x5f3c54[_0x350aa0(0x232)]]&&_0x298107[_0x5f3c54[_0x350aa0(0x232)]][_0x5f3c54['FxRuA']]?_0x525669=_0x5f3c54[_0x350aa0(0x237)]:_0x525669=_0x5f3c54[_0x350aa0(0x24c)];}}catch(_0x2110c4){exports[_0x350aa0(0x1db)](_0x350aa0(0x20b)+constants[_0x350aa0(0x20f)]+_0x350aa0(0x231)+_0x2110c4);}return _0x525669;},exports['sendPlatformDetails']=async(_0x224070,_0x4febee,_0x2b8d21=![])=>{const _0x1f6bff=a120_0x4e99a3,_0x4ad420={};_0x4ad420[_0x1f6bff(0x233)]=function(_0x3bf3e4,_0x172001){return _0x3bf3e4===_0x172001;},_0x4ad420[_0x1f6bff(0x27e)]=_0x1f6bff(0x1cb),_0x4ad420[_0x1f6bff(0x26f)]=_0x1f6bff(0x263),_0x4ad420[_0x1f6bff(0x1c3)]=_0x1f6bff(0x17c);const _0x3d7072=_0x4ad420;try{const _0x1f2593=await _0x224070[_0x1f6bff(0x19f)](),_0x2675fb=await _0x224070[_0x1f6bff(0x1f0)](),_0x2dd822={},_0xe95ad=Object[_0x1f6bff(0x216)](_0x2675fb[_0x1f6bff(0x19f)]()['map_']),_0x2b81c={'product':exports[_0x1f6bff(0x1ca)](_0xe95ad),'capabilities':_0xe95ad,'platform':_0x1f2593[_0x1f6bff(0x282)](),'platform_version':bsSetupHelper[_0x1f6bff(0x1bd)](_0x3d7072['kjEjh'](global[_0x1f6bff(0x207)],_0x3d7072['NykMu'])),'browser':_0x1f2593[_0x1f6bff(0x194)](),'browser_version':_0x1f2593[_0x1f6bff(0x1f8)](),'session_id':_0x2675fb[_0x1f6bff(0x1f1)]()};global[_0x1f6bff(0x207)]?_0x2dd822[global[_0x1f6bff(0x207)]]=_0x2b81c:_0x2dd822[_0x3d7072[_0x1f6bff(0x26f)]]=_0x2b81c;if(_0x2b8d21)return _0x2dd822;process[_0x1f6bff(0x1e3)]('bs:addPlatformDetails:'+process[_0x1f6bff(0x25a)],{'timestamp':new Date()[_0x1f6bff(0x210)](),'level':null,'message':null,'kind':_0x3d7072['dkGpJ'],'http_response':_0x2dd822,'uuid':_0x4febee});}catch(_0x293ef5){exports[_0x1f6bff(0x1db)](_0x1f6bff(0x288)+_0x293ef5);}},exports['isInternalHook']=_0xa5408e=>{const _0x557ef7=a120_0x4e99a3;return _0xa5408e&&_0xa5408e[_0x557ef7(0x188)]()[_0x557ef7(0x1da)](/browserstack internal helper hook/);};
@@ -1 +1 @@
1
- function a121_0x4fd2(){var _0x151089=['1108788yjnxhH','https://collector-observability.browserstack.com','401254BQhVrV','2308245SJdrpw','9kJhIBK','exports','2931960ftxxjD','2052207oktMNH','ORCHESTRATION_API_URL','20902kGppYP','27566070RnWRoP','SPLIT_TESTS_ENDPOINT','18BHhakf','testorchestration/api/v1/split-tests','FAILED_TESTS_ENDPOINT','4QYvGVX'];a121_0x4fd2=function(){return _0x151089;};return a121_0x4fd2();}function a121_0x5048(_0x2f1f92,_0x1f0eca){var _0x4fd20d=a121_0x4fd2();return a121_0x5048=function(_0x504885,_0x33ef4c){_0x504885=_0x504885-0x13a;var _0x6e42fd=_0x4fd20d[_0x504885];return _0x6e42fd;},a121_0x5048(_0x2f1f92,_0x1f0eca);}var a121_0x204c4f=a121_0x5048;(function(_0x498b7c,_0xb9bf02){var _0x3e0164=a121_0x5048,_0x53752b=_0x498b7c();while(!![]){try{var _0x34e37b=-parseInt(_0x3e0164(0x147))/0x1*(parseInt(_0x3e0164(0x13a))/0x2)+-parseInt(_0x3e0164(0x13c))/0x3*(parseInt(_0x3e0164(0x148))/0x4)+-parseInt(_0x3e0164(0x13b))/0x5+parseInt(_0x3e0164(0x144))/0x6*(-parseInt(_0x3e0164(0x141))/0x7)+parseInt(_0x3e0164(0x13e))/0x8+-parseInt(_0x3e0164(0x13f))/0x9+parseInt(_0x3e0164(0x142))/0xa;if(_0x34e37b===_0xb9bf02)break;else _0x53752b['push'](_0x53752b['shift']());}catch(_0xefca5f){_0x53752b['push'](_0x53752b['shift']());}}}(a121_0x4fd2,0xc0f65));var a121_0x5953b8={};a121_0x5953b8[a121_0x204c4f(0x140)]=a121_0x204c4f(0x149),a121_0x5953b8[a121_0x204c4f(0x146)]='testorchestration/api/v1/failed-tests',a121_0x5953b8[a121_0x204c4f(0x143)]=a121_0x204c4f(0x145),module[a121_0x204c4f(0x13d)]=a121_0x5953b8;
1
+ function a121_0x28dc(_0x3e11f8,_0x1813e5){var _0x26c3f9=a121_0x26c3();return a121_0x28dc=function(_0x28dcbf,_0x50044f){_0x28dcbf=_0x28dcbf-0xf2;var _0x31e90d=_0x26c3f9[_0x28dcbf];return _0x31e90d;},a121_0x28dc(_0x3e11f8,_0x1813e5);}function a121_0x26c3(){var _0x14afe1=['343cxwWst','SPLIT_TESTS_ENDPOINT','1895620OHSeGn','https://collector-observability.browserstack.com','testorchestration/api/v1/split-tests','26672jraZjW','FAILED_TESTS_ENDPOINT','114096EUWUQe','140dumbAY','exports','testorchestration/api/v1/failed-tests','1465494xPyKiC','284yTDaed','359QKJozz','11961840ravqgb','3195144UtYEqw','54HZSssf'];a121_0x26c3=function(){return _0x14afe1;};return a121_0x26c3();}var a121_0x5167c8=a121_0x28dc;(function(_0x32bd90,_0x5e9eb8){var _0x12cbf5=a121_0x28dc,_0x243925=_0x32bd90();while(!![]){try{var _0x320e25=-parseInt(_0x12cbf5(0xf9))/0x1*(-parseInt(_0x12cbf5(0xf8))/0x2)+-parseInt(_0x12cbf5(0xf7))/0x3+-parseInt(_0x12cbf5(0xfb))/0x4+-parseInt(_0x12cbf5(0xf4))/0x5*(parseInt(_0x12cbf5(0xf3))/0x6)+parseInt(_0x12cbf5(0xfd))/0x7*(parseInt(_0x12cbf5(0x102))/0x8)+parseInt(_0x12cbf5(0xfc))/0x9*(parseInt(_0x12cbf5(0xff))/0xa)+parseInt(_0x12cbf5(0xfa))/0xb;if(_0x320e25===_0x5e9eb8)break;else _0x243925['push'](_0x243925['shift']());}catch(_0x635181){_0x243925['push'](_0x243925['shift']());}}}(a121_0x26c3,0x973a0));var a121_0x43bdba={};a121_0x43bdba['ORCHESTRATION_API_URL']=a121_0x5167c8(0x100),a121_0x43bdba[a121_0x5167c8(0xf2)]=a121_0x5167c8(0xf6),a121_0x43bdba[a121_0x5167c8(0xfe)]=a121_0x5167c8(0x101),module[a121_0x5167c8(0xf5)]=a121_0x43bdba;
@@ -1 +1 @@
1
- function a122_0x2c63(){const _0x51e80a=['IjeZm','_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20','_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20','failFastState.json','RSspI','newState','BKqem','passed','PRdnk','writeFileSync','stopPolling','startPolling','lockFilePath','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','catch','737499OlddaN','existsSync',']\x20Polling\x20stopped.','QfvVf','\x0aStack:\x20','1996460oDovMf','3mKnaCP','failedTests','uniqueFailedTests','failFastState.lock','debug','plkQU','lastAPIFailedCount','fileHelper','error','FIVhh','OeDZG','bNCOM','totalTests','join','_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20','kmCUy','JxliW','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.','getFailedTestsCount','\x20to\x20API:\x20','_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20','ywrsY','bEwOe','qkMjo','_initializeStateFromFile','env','info','osely','LNOzk','isCIMode','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','buildName','_sendFailedTestsToAPI','onTestDone',',\x20threshold:\x20','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','bDyDo','_getDefaultState','ujRbF','stack','692730hemqmn','reportedFailuresToAPI','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20','state','stateFilePath','yYEVK','_pollFailedTests','RDjEc','_fetchAPIFailedCount','kjxur','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','PuWgg','writeState','VvLfr','DXunK',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20','gVPGC','pollingInterval','kcYFL','add','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','buildRunIdentifier','projectName','_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20','829700WuXCUc','_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20','4419198xkFFKi','_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.','HFbuw','5pshiXV','shouldFailFast','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20','_Local]\x20State\x20initialized\x20from\x20file.','warn','failFastActiveMarkerPath','5914110ETLYTs','UGsas','message','has','oCacR','length','_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20','cleanup','BROWSERSTACK_BUILD_RUN_IDENTIFIER','AMIWB','size','readState','32NGwsVF','_CI]\x20API\x20failed\x20count\x20updated:\x20','failFastActive','zfoQL','mcbmq','failFastConfig','path','from','988326TFmEsq'];a122_0x2c63=function(){return _0x51e80a;};return a122_0x2c63();}function a122_0x147f(_0x5a48a2,_0x5ddc80){const _0x2c6384=a122_0x2c63();return a122_0x147f=function(_0x147ffc,_0x4ec18f){_0x147ffc=_0x147ffc-0x195;let _0x510403=_0x2c6384[_0x147ffc];return _0x510403;},a122_0x147f(_0x5a48a2,_0x5ddc80);}const a122_0x3d9d1a=a122_0x147f;(function(_0x13f940,_0x4897bb){const _0x35e5dc=a122_0x147f,_0x31d171=_0x13f940();while(!![]){try{const _0x23b5f6=-parseInt(_0x35e5dc(0x1c5))/0x1+parseInt(_0x35e5dc(0x1df))/0x2+-parseInt(_0x35e5dc(0x19d))/0x3*(-parseInt(_0x35e5dc(0x19c))/0x4)+parseInt(_0x35e5dc(0x1e4))/0x5*(parseInt(_0x35e5dc(0x1e1))/0x6)+-parseInt(_0x35e5dc(0x197))/0x7+-parseInt(_0x35e5dc(0x1f7))/0x8*(-parseInt(_0x35e5dc(0x1ff))/0x9)+-parseInt(_0x35e5dc(0x1eb))/0xa;if(_0x23b5f6===_0x4897bb)break;else _0x31d171['push'](_0x31d171['shift']());}catch(_0x1db0cd){_0x31d171['push'](_0x31d171['shift']());}}}(a122_0x2c63,0xaaf60));const fs=require('fs'),path=require(a122_0x3d9d1a(0x1fd)),FileHelper=require('./fileHelper'),RequestUtils=require('./requestUtils'),logger=require('../logger')['winstonLogger'],POLLING_INTERVAL=0x2710,TAG='FailFastManager';class FailFastManager{constructor(_0x52e809,_0x389698,_0x1b9810){const _0xa73475=a122_0x3d9d1a,_0x5d7480={};_0x5d7480[_0xa73475(0x1b3)]=function(_0x19c634,_0x204cba){return _0x19c634+_0x204cba;},_0x5d7480[_0xa73475(0x1ac)]=_0xa73475(0x19b),_0x5d7480[_0xa73475(0x1f4)]=function(_0x1385a9,_0x2737e6){return _0x1385a9||_0x2737e6;},_0x5d7480[_0xa73475(0x1ec)]=_0xa73475(0x203),_0x5d7480[_0xa73475(0x1c3)]=_0xa73475(0x1a0),_0x5d7480[_0xa73475(0x1b4)]='failFast.active';const _0x47b15c=_0x5d7480;this[_0xa73475(0x1fc)]=_0x47b15c[_0xa73475(0x1f4)](_0x52e809,{}),this[_0xa73475(0x1bc)]=_0x389698,this[_0xa73475(0x1dd)]=_0x1b9810,this[_0xa73475(0x1ba)]=!!(process[_0xa73475(0x1b6)][_0xa73475(0x1f3)]&&process[_0xa73475(0x1b6)]['BROWSERSTACK_NODE_INDEX']&&process['env']['BROWSERSTACK_TOTAL_NODE_COUNT']);const _0x5c2014=this['failFastConfig']['workingDir'];this['stateFilePath']=path[_0xa73475(0x1aa)](_0x5c2014,_0x47b15c[_0xa73475(0x1ec)]),this[_0xa73475(0x20c)]=path['join'](_0x5c2014,_0x47b15c['ujRbF']),this['failFastActiveMarkerPath']=path[_0xa73475(0x1aa)](_0x5c2014,_0x47b15c[_0xa73475(0x1b4)]),this[_0xa73475(0x1a4)]=new FileHelper(this['failFastConfig'],this[_0xa73475(0x1cb)],this[_0xa73475(0x20c)],this[_0xa73475(0x1c2)]()),this['state']=this[_0xa73475(0x1c2)](),this[_0xa73475(0x1d8)]=null,this['isCIMode']&&(this[_0xa73475(0x1c6)]=new Set()),this[_0xa73475(0x1b5)]()[_0xa73475(0x196)](_0x175fbd=>{const _0x16a650=_0xa73475;logger[_0x16a650(0x1a5)]('['+TAG+_0x16a650(0x1e7)+_0x175fbd[_0x16a650(0x1ed)]+(_0x175fbd['stack']?_0x47b15c[_0x16a650(0x1b3)](_0x47b15c[_0x16a650(0x1ac)],_0x175fbd['stack']):'')),this[_0x16a650(0x1ca)]=this['_getDefaultState']();}),this[_0xa73475(0x1ba)]&&this[_0xa73475(0x20b)](),logger[_0xa73475(0x1a1)]('['+TAG+_0xa73475(0x1d6)+this['failFastConfig']['failureThresholdCount']+',\x20CI\x20Mode:\x20'+this[_0xa73475(0x1ba)]);}[a122_0x3d9d1a(0x1c2)](){const _0x265b33={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x265b33;}async['_initializeStateFromFile'](){const _0x4fa77c=a122_0x3d9d1a,_0x2a8fec={};_0x2a8fec[_0x4fa77c(0x1fa)]=function(_0x30200f,_0x4fc24f){return _0x30200f+_0x4fc24f;},_0x2a8fec['DXunK']=_0x4fa77c(0x19b);const _0xe292f7=_0x2a8fec;if(this[_0x4fa77c(0x1ba)])try{fs[_0x4fa77c(0x198)](this['failFastActiveMarkerPath'])&&(this[_0x4fa77c(0x1ca)][_0x4fa77c(0x1f9)]=!![],logger[_0x4fa77c(0x1a1)]('['+TAG+_0x4fa77c(0x1e2)));}catch(_0x4e2cef){logger[_0x4fa77c(0x1a5)]('['+TAG+_0x4fa77c(0x1d1)+_0x4e2cef[_0x4fa77c(0x1ed)]+(_0x4e2cef[_0x4fa77c(0x1c4)]?_0xe292f7[_0x4fa77c(0x1fa)](_0xe292f7['DXunK'],_0x4e2cef[_0x4fa77c(0x1c4)]):''));}else try{const _0x4bcb7d=await this[_0x4fa77c(0x1a4)][_0x4fa77c(0x1f6)]();if(_0x4bcb7d)this[_0x4fa77c(0x1ca)]={...this[_0x4fa77c(0x1c2)](),..._0x4bcb7d,'uniqueFailedTests':new Set(_0x4bcb7d[_0x4fa77c(0x19f)]||[])},logger[_0x4fa77c(0x1a1)]('['+TAG+_0x4fa77c(0x1e8));else{logger[_0x4fa77c(0x1a1)]('['+TAG+_0x4fa77c(0x1c8));const _0x1bdb96=this[_0x4fa77c(0x1c2)](),_0x29bbc0={..._0x1bdb96,'uniqueFailedTests':Array[_0x4fa77c(0x1fe)](_0x1bdb96[_0x4fa77c(0x19f)])};await this[_0x4fa77c(0x1a4)][_0x4fa77c(0x1d3)](_0x29bbc0),this['state']=_0x1bdb96;}}catch(_0x95f659){logger['debug']('['+TAG+_0x4fa77c(0x1ab)+_0x95f659[_0x4fa77c(0x1ed)]+(_0x95f659['stack']?_0xe292f7[_0x4fa77c(0x1fa)](_0xe292f7[_0x4fa77c(0x1d5)],_0x95f659[_0x4fa77c(0x1c4)]):'')),this[_0x4fa77c(0x1ca)]=this['_getDefaultState']();}}async[a122_0x3d9d1a(0x1be)](_0x7fd650,_0xf0a727){const _0x5d7d92=a122_0x3d9d1a,_0x264304={};_0x264304[_0x5d7d92(0x1fb)]=function(_0x1774b3,_0x4c5365){return _0x1774b3>_0x4c5365;},_0x264304['oCacR']='failed',_0x264304['bDyDo']=_0x5d7d92(0x207),_0x264304['BKqem']=function(_0x1c2bc2,_0x55e6d9){return _0x1c2bc2+_0x55e6d9;},_0x264304[_0x5d7d92(0x1cc)]='\x0aStack:\x20',_0x264304[_0x5d7d92(0x19a)]=function(_0x467baf,_0x1316c3){return _0x467baf||_0x1316c3;};const _0x3bbd8b=_0x264304;if(this[_0x5d7d92(0x1ba)])this[_0x5d7d92(0x1ca)][_0x5d7d92(0x1a9)]+=0x1,_0xf0a727&&_0x3bbd8b[_0x5d7d92(0x1fb)](_0xf0a727[_0x5d7d92(0x1f0)],0x0)&&(!this[_0x5d7d92(0x1c6)][_0x5d7d92(0x1ee)](_0x7fd650)&&(await this['_sendFailedTestsToAPI'](_0x7fd650),this[_0x5d7d92(0x1c6)][_0x5d7d92(0x1da)](_0x7fd650)));else try{const _0x22625d={'fullName':_0x7fd650,'status':_0xf0a727&&_0x3bbd8b[_0x5d7d92(0x1fb)](_0xf0a727[_0x5d7d92(0x1f0)],0x0)?_0x3bbd8b[_0x5d7d92(0x1ef)]:_0x3bbd8b[_0x5d7d92(0x1c1)]},_0x790cab=await this[_0x5d7d92(0x1a4)]['recordTestResult'](_0x22625d);this[_0x5d7d92(0x1ca)]={...this[_0x5d7d92(0x1c2)](),..._0x790cab[_0x5d7d92(0x205)],'uniqueFailedTests':new Set(_0x790cab[_0x5d7d92(0x205)][_0x5d7d92(0x19f)]||[])};}catch(_0xd233f0){logger[_0x5d7d92(0x1a5)]('['+TAG+_0x5d7d92(0x1f1)+_0xd233f0[_0x5d7d92(0x1ed)]+(_0xd233f0[_0x5d7d92(0x1c4)]?_0x3bbd8b[_0x5d7d92(0x206)](_0x3bbd8b[_0x5d7d92(0x1cc)],_0xd233f0[_0x5d7d92(0x1c4)]):''));try{const _0x169f54=await this[_0x5d7d92(0x1a4)]['readState']();this[_0x5d7d92(0x1ca)]={...this[_0x5d7d92(0x1c2)](),..._0x3bbd8b['QfvVf'](_0x169f54,{}),'uniqueFailedTests':new Set(_0x169f54?_0x169f54[_0x5d7d92(0x19f)]||[]:[])},logger['debug']('['+TAG+_0x5d7d92(0x1e6));}catch(_0xae030c){logger[_0x5d7d92(0x1a5)]('['+TAG+'_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20'+_0xae030c[_0x5d7d92(0x1ed)]+(_0xae030c[_0x5d7d92(0x1c4)]?_0x3bbd8b[_0x5d7d92(0x206)](_0x3bbd8b[_0x5d7d92(0x1cc)],_0xae030c[_0x5d7d92(0x1c4)]):'')),this[_0x5d7d92(0x1ca)]=this[_0x5d7d92(0x1c2)]();}}}async[a122_0x3d9d1a(0x1bd)](_0x37948f){const _0x54c5c1=a122_0x3d9d1a,_0x5f093f={};_0x5f093f[_0x54c5c1(0x1d0)]=function(_0x1bf7f7,_0x55bb38){return _0x1bf7f7+_0x55bb38;},_0x5f093f['osely']='\x0aStack:\x20';const _0x101e79=_0x5f093f;if(!this[_0x54c5c1(0x1ba)]||!_0x37948f)return;try{logger['debug']('['+TAG+_0x54c5c1(0x1c9)+_0x37948f);const _0x5bd40e={};_0x5bd40e['buildName']=this[_0x54c5c1(0x1bc)],_0x5bd40e[_0x54c5c1(0x1dd)]=this[_0x54c5c1(0x1dd)],_0x5bd40e[_0x54c5c1(0x19e)]=[_0x37948f],_0x5bd40e[_0x54c5c1(0x1dc)]=process['env']['BROWSERSTACK_BUILD_RUN_IDENTIFIER'],await RequestUtils['putFailedTests'](_0x5bd40e);}catch(_0x29e7cf){logger[_0x54c5c1(0x1a5)]('['+TAG+'_CI]\x20Error\x20sending\x20failed\x20test\x20'+_0x37948f+_0x54c5c1(0x1b0)+_0x29e7cf[_0x54c5c1(0x1ed)]+(_0x29e7cf[_0x54c5c1(0x1c4)]?_0x101e79['kjxur'](_0x101e79[_0x54c5c1(0x1b8)],_0x29e7cf['stack']):''));}}async[a122_0x3d9d1a(0x1cf)](){const _0x305e96=a122_0x3d9d1a,_0x5da1b6={};_0x5da1b6[_0x305e96(0x1a8)]=function(_0x11a12a,_0x4e1ef7){return _0x11a12a===_0x4e1ef7;},_0x5da1b6[_0x305e96(0x1a2)]='number',_0x5da1b6[_0x305e96(0x1d4)]=function(_0x555a63,_0x3c3325){return _0x555a63+_0x3c3325;},_0x5da1b6['gVPGC']=_0x305e96(0x19b),_0x5da1b6[_0x305e96(0x1ce)]=function(_0x3d47ec,_0x389867){return _0x3d47ec!==_0x389867;};const _0x1749f7=_0x5da1b6;if(!this[_0x305e96(0x1ba)])return 0x0;try{const _0xd2b849={};_0xd2b849['buildName']=this['buildName'],_0xd2b849[_0x305e96(0x1dd)]=this[_0x305e96(0x1dd)],_0xd2b849[_0x305e96(0x1dc)]=process[_0x305e96(0x1b6)][_0x305e96(0x1f3)];const _0x1dcbfe=await RequestUtils[_0x305e96(0x1af)](_0xd2b849);return logger[_0x305e96(0x1a1)]('['+TAG+_0x305e96(0x1bb)+_0x1dcbfe),_0x1749f7[_0x305e96(0x1a8)](typeof _0x1dcbfe,_0x1749f7[_0x305e96(0x1a2)])?_0x1dcbfe:0x0;}catch(_0x4436c6){return logger[_0x305e96(0x1a5)]('['+TAG+_0x305e96(0x202)+_0x4436c6['message']+(_0x4436c6['stack']?_0x1749f7[_0x305e96(0x1d4)](_0x1749f7[_0x305e96(0x1d7)],_0x4436c6['stack']):'')),_0x1749f7['RDjEc'](this[_0x305e96(0x1ca)]['lastAPIFailedCount'],undefined)?this[_0x305e96(0x1ca)][_0x305e96(0x1a3)]:0x0;}}async['_pollFailedTests'](){const _0x4169cb=a122_0x3d9d1a,_0x107e94={};_0x107e94['PuWgg']=function(_0x2d0e3e,_0x1995b9){return _0x2d0e3e!==_0x1995b9;},_0x107e94['kcYFL']=function(_0xeb3d42,_0x5313ef){return _0xeb3d42+_0x5313ef;},_0x107e94[_0x4169cb(0x1b9)]=_0x4169cb(0x19b);const _0x4ae2ac=_0x107e94;if(!this[_0x4169cb(0x1ba)])return;try{const _0xc35110=await this[_0x4169cb(0x1cf)]();_0x4ae2ac[_0x4169cb(0x1d2)](_0xc35110,this[_0x4169cb(0x1ca)][_0x4169cb(0x1a3)])&&(logger[_0x4169cb(0x1a1)]('['+TAG+_0x4169cb(0x1f8)+_0xc35110+'\x20(was\x20'+this['state'][_0x4169cb(0x1a3)]+')'),this['state'][_0x4169cb(0x1a3)]=_0xc35110);}catch(_0x8321a){logger[_0x4169cb(0x1a5)]('['+TAG+'_CI]\x20Error\x20during\x20polling\x20logic:\x20'+_0x8321a[_0x4169cb(0x1ed)]+(_0x8321a[_0x4169cb(0x1c4)]?_0x4ae2ac[_0x4169cb(0x1d9)](_0x4ae2ac['LNOzk'],_0x8321a['stack']):''));}}async[a122_0x3d9d1a(0x20b)](){const _0x5548ea=a122_0x3d9d1a,_0x1749ec={'pUrDO':function(_0x3fbc99,_0x2e94c2,_0x17ec6d){return _0x3fbc99(_0x2e94c2,_0x17ec6d);}};this[_0x5548ea(0x1d8)]&&this[_0x5548ea(0x20a)](),this[_0x5548ea(0x1ba)]&&(await this[_0x5548ea(0x1cd)](),this[_0x5548ea(0x1d8)]=_0x1749ec['pUrDO'](setInterval,async()=>{const _0x198876=_0x5548ea;await this[_0x198876(0x1cd)]();},POLLING_INTERVAL),logger[_0x5548ea(0x1a1)]('['+TAG+'_CI]\x20Polling\x20started\x20with\x20interval:\x20'+POLLING_INTERVAL+'ms.'));}[a122_0x3d9d1a(0x20a)](){const _0x194f38=a122_0x3d9d1a,_0x3b2684={'FIVhh':function(_0x438e9d,_0x5dc3ee){return _0x438e9d(_0x5dc3ee);}};this[_0x194f38(0x1d8)]&&(_0x3b2684[_0x194f38(0x1a6)](clearInterval,this[_0x194f38(0x1d8)]),this[_0x194f38(0x1d8)]=null,logger['debug']('['+TAG+_0x194f38(0x199)));}async[a122_0x3d9d1a(0x1e5)](){const _0x398839=a122_0x3d9d1a,_0x3d10e6={};_0x3d10e6[_0x398839(0x1b2)]=function(_0x4529bf,_0x468936){return _0x4529bf===_0x468936;},_0x3d10e6[_0x398839(0x1ad)]=function(_0x22582b,_0xf704b0){return _0x22582b<=_0xf704b0;},_0x3d10e6[_0x398839(0x204)]=function(_0xbc11b8,_0x41ab89){return _0xbc11b8+_0x41ab89;},_0x3d10e6[_0x398839(0x1a7)]=_0x398839(0x19b),_0x3d10e6['untkF']=function(_0x1588f1,_0x1c7c46){return _0x1588f1!==_0x1c7c46;},_0x3d10e6[_0x398839(0x1e3)]=function(_0x3d1bf4,_0x40e41c){return _0x3d1bf4>=_0x40e41c;},_0x3d10e6[_0x398839(0x208)]=function(_0x583c85,_0x5900f1){return _0x583c85+_0x5900f1;},_0x3d10e6[_0x398839(0x200)]=function(_0x335ecb,_0x439320){return _0x335ecb+_0x439320;};const _0x52429=_0x3d10e6,{failureThresholdCount:_0x1faf06}=this[_0x398839(0x1fc)];if(_0x52429[_0x398839(0x1b2)](_0x1faf06,null)||_0x52429[_0x398839(0x1b2)](_0x1faf06,undefined)||_0x52429[_0x398839(0x1ad)](_0x1faf06,0x0))return logger[_0x398839(0x1a1)]('['+TAG+']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.'),![];if(this[_0x398839(0x1ba)]){try{if(fs[_0x398839(0x198)](this[_0x398839(0x1ea)]))return logger[_0x398839(0x1a1)]('['+TAG+_0x398839(0x1db)),!this[_0x398839(0x1ca)]['failFastActive']&&(this[_0x398839(0x1ca)][_0x398839(0x1f9)]=!![]),this[_0x398839(0x20a)](),!![];}catch(_0x379ff8){logger[_0x398839(0x1a5)]('['+TAG+_0x398839(0x1d1)+_0x379ff8[_0x398839(0x1ed)]+(_0x379ff8['stack']?_0x52429[_0x398839(0x204)](_0x52429[_0x398839(0x1a7)],_0x379ff8['stack']):''));}const _0x174db9=_0x52429['untkF'](this[_0x398839(0x1ca)][_0x398839(0x1a3)],undefined)?this[_0x398839(0x1ca)][_0x398839(0x1a3)]:0x0;if(_0x52429[_0x398839(0x1e3)](_0x174db9,_0x1faf06)){logger[_0x398839(0x1b7)]('['+TAG+_0x398839(0x1c7)+_0x174db9+_0x398839(0x1bf)+_0x1faf06+'.');try{fs[_0x398839(0x209)](this[_0x398839(0x1ea)],new Date()['toISOString']()),logger[_0x398839(0x1a1)]('['+TAG+_0x398839(0x1b1)+this['failFastActiveMarkerPath']),this['state']['failFastActive']=!![];}catch(_0x1c8543){logger[_0x398839(0x1a5)]('['+TAG+'_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20'+_0x1c8543[_0x398839(0x1ed)]+(_0x1c8543[_0x398839(0x1c4)]?_0x52429['RSspI'](_0x52429[_0x398839(0x1a7)],_0x1c8543['stack']):''));}return this[_0x398839(0x20a)](),!![];}}else{let _0x193169;try{_0x193169=await this[_0x398839(0x1a4)]['readState']();if(!_0x193169)return logger[_0x398839(0x1e9)]('['+TAG+'_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.'),![];}catch(_0x486a38){return logger[_0x398839(0x1a5)]('['+TAG+_0x398839(0x1e0)+_0x486a38['message']+(_0x486a38[_0x398839(0x1c4)]?_0x52429[_0x398839(0x208)](_0x52429[_0x398839(0x1a7)],_0x486a38[_0x398839(0x1c4)]):'')),![];}this['state']={...this[_0x398839(0x1c2)](),..._0x193169,'uniqueFailedTests':new Set(_0x193169[_0x398839(0x19f)]||[])};if(this[_0x398839(0x1ca)][_0x398839(0x1f9)])return logger[_0x398839(0x1a1)]('['+TAG+_0x398839(0x195)),!![];const _0x5e8b47=this[_0x398839(0x1ca)][_0x398839(0x19f)],_0x50314b=_0x5e8b47[_0x398839(0x1f5)];if(_0x52429[_0x398839(0x1e3)](_0x50314b,_0x1faf06)){try{logger[_0x398839(0x1b7)]('['+TAG+'_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20'+_0x50314b+',\x20threshold:\x20'+_0x1faf06+'.'),this[_0x398839(0x1ca)][_0x398839(0x1f9)]=!![];}catch(_0x5c5cfe){logger[_0x398839(0x1a5)]('['+TAG+_0x398839(0x201)+_0x5c5cfe[_0x398839(0x1ed)]+(_0x5c5cfe[_0x398839(0x1c4)]?_0x52429[_0x398839(0x200)](_0x52429[_0x398839(0x1a7)],_0x5c5cfe[_0x398839(0x1c4)]):''));}return!![];}}return![];}async[a122_0x3d9d1a(0x1f2)](){const _0x3dbab3=a122_0x3d9d1a,_0x43ece3={};_0x43ece3['CrQjP']=function(_0x31a334,_0x90df13){return _0x31a334+_0x90df13;},_0x43ece3['gcTRc']=_0x3dbab3(0x19b);const _0x1f5083=_0x43ece3;this[_0x3dbab3(0x20a)]();if(this[_0x3dbab3(0x1ba)])logger[_0x3dbab3(0x1a1)]('['+TAG+_0x3dbab3(0x1ae));else try{const _0x5771c5={...this['state'],'uniqueFailedTests':Array[_0x3dbab3(0x1fe)](this[_0x3dbab3(0x1ca)][_0x3dbab3(0x19f)]||new Set())};await this[_0x3dbab3(0x1a4)][_0x3dbab3(0x1d3)](_0x5771c5),logger['debug']('['+TAG+_0x3dbab3(0x1c0));}catch(_0x42f503){logger[_0x3dbab3(0x1a5)]('['+TAG+_0x3dbab3(0x1de)+_0x42f503[_0x3dbab3(0x1ed)]+(_0x42f503[_0x3dbab3(0x1c4)]?_0x1f5083['CrQjP'](_0x1f5083['gcTRc'],_0x42f503['stack']):''));}}}module['exports']=FailFastManager;
1
+ const a122_0x4a2c2e=a122_0x4fda;function a122_0x4fda(_0x532548,_0x1a0232){const _0x69c5f1=a122_0x69c5();return a122_0x4fda=function(_0x4fda04,_0x3a29ff){_0x4fda04=_0x4fda04-0x17d;let _0x14deca=_0x69c5f1[_0x4fda04];return _0x14deca;},a122_0x4fda(_0x532548,_0x1a0232);}(function(_0x38eb06,_0x2174af){const _0x12a564=a122_0x4fda,_0x2c69b1=_0x38eb06();while(!![]){try{const _0x5db791=parseInt(_0x12a564(0x1f5))/0x1+-parseInt(_0x12a564(0x1f7))/0x2+-parseInt(_0x12a564(0x1a9))/0x3+parseInt(_0x12a564(0x1b3))/0x4*(parseInt(_0x12a564(0x1af))/0x5)+-parseInt(_0x12a564(0x1ab))/0x6*(parseInt(_0x12a564(0x1e7))/0x7)+parseInt(_0x12a564(0x1cf))/0x8*(parseInt(_0x12a564(0x1e4))/0x9)+parseInt(_0x12a564(0x183))/0xa;if(_0x5db791===_0x2174af)break;else _0x2c69b1['push'](_0x2c69b1['shift']());}catch(_0x10e15c){_0x2c69b1['push'](_0x2c69b1['shift']());}}}(a122_0x69c5,0xe726b));const fs=require('fs'),path=require(a122_0x4a2c2e(0x1bb)),FileHelper=require(a122_0x4a2c2e(0x1b0)),RequestUtils=require(a122_0x4a2c2e(0x1a4)),logger=require(a122_0x4a2c2e(0x1a0))[a122_0x4a2c2e(0x1f0)],POLLING_INTERVAL=0x2710,TAG='FailFastManager';class FailFastManager{constructor(_0x458e07,_0xf69535,_0x37cde2){const _0x2d3898=a122_0x4a2c2e,_0x2a42fc={};_0x2a42fc['dmMTn']=function(_0x520820,_0x309ba3){return _0x520820+_0x309ba3;},_0x2a42fc[_0x2d3898(0x184)]=_0x2d3898(0x1c5),_0x2a42fc[_0x2d3898(0x1f1)]=function(_0x1bd2ba,_0x167b1f){return _0x1bd2ba||_0x167b1f;},_0x2a42fc[_0x2d3898(0x1ae)]=_0x2d3898(0x193),_0x2a42fc[_0x2d3898(0x19e)]=_0x2d3898(0x18b),_0x2a42fc[_0x2d3898(0x1d0)]='failFast.active';const _0x3a0121=_0x2a42fc;this[_0x2d3898(0x19c)]=_0x3a0121[_0x2d3898(0x1f1)](_0x458e07,{}),this[_0x2d3898(0x1a6)]=_0xf69535,this[_0x2d3898(0x1bf)]=_0x37cde2,this[_0x2d3898(0x187)]=!!(process[_0x2d3898(0x1e1)][_0x2d3898(0x18f)]&&process[_0x2d3898(0x1e1)]['BROWSERSTACK_NODE_INDEX']&&process[_0x2d3898(0x1e1)][_0x2d3898(0x185)]);const _0x31fde5=this[_0x2d3898(0x19c)][_0x2d3898(0x180)];this['stateFilePath']=path[_0x2d3898(0x197)](_0x31fde5,_0x3a0121[_0x2d3898(0x1ae)]),this[_0x2d3898(0x190)]=path[_0x2d3898(0x197)](_0x31fde5,_0x3a0121[_0x2d3898(0x19e)]),this[_0x2d3898(0x1ef)]=path[_0x2d3898(0x197)](_0x31fde5,_0x3a0121[_0x2d3898(0x1d0)]),this[_0x2d3898(0x1be)]=new FileHelper(this[_0x2d3898(0x19c)],this['stateFilePath'],this['lockFilePath'],this[_0x2d3898(0x1ce)]()),this[_0x2d3898(0x186)]=this[_0x2d3898(0x1ce)](),this[_0x2d3898(0x1b2)]=null,this[_0x2d3898(0x187)]&&(this['reportedFailuresToAPI']=new Set()),this[_0x2d3898(0x1a1)]()[_0x2d3898(0x18e)](_0x313563=>{const _0x128175=_0x2d3898;logger[_0x128175(0x1fe)]('['+TAG+_0x128175(0x18a)+_0x313563[_0x128175(0x1f6)]+(_0x313563['stack']?_0x3a0121[_0x128175(0x1ed)](_0x3a0121[_0x128175(0x184)],_0x313563['stack']):'')),this['state']=this[_0x128175(0x1ce)]();}),this[_0x2d3898(0x187)]&&this['startPolling'](),logger['debug']('['+TAG+_0x2d3898(0x196)+this[_0x2d3898(0x19c)][_0x2d3898(0x1ad)]+_0x2d3898(0x182)+this[_0x2d3898(0x187)]);}[a122_0x4a2c2e(0x1ce)](){const _0x5e2b58={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x5e2b58;}async[a122_0x4a2c2e(0x1a1)](){const _0x2246a6=a122_0x4a2c2e,_0x1af17e={};_0x1af17e[_0x2246a6(0x1e3)]=function(_0x2023a5,_0x37082d){return _0x2023a5+_0x37082d;},_0x1af17e['yUNqC']=_0x2246a6(0x1c5);const _0x3ed29c=_0x1af17e;if(this['isCIMode'])try{fs[_0x2246a6(0x199)](this[_0x2246a6(0x1ef)])&&(this['state'][_0x2246a6(0x1b6)]=!![],logger[_0x2246a6(0x1a8)]('['+TAG+_0x2246a6(0x1c7)));}catch(_0x21b6cf){logger[_0x2246a6(0x1fe)]('['+TAG+_0x2246a6(0x1a2)+_0x21b6cf[_0x2246a6(0x1f6)]+(_0x21b6cf[_0x2246a6(0x1dc)]?_0x3ed29c[_0x2246a6(0x1e3)](_0x3ed29c[_0x2246a6(0x1f2)],_0x21b6cf[_0x2246a6(0x1dc)]):''));}else try{const _0x1533b0=await this[_0x2246a6(0x1be)]['readState']();if(_0x1533b0)this[_0x2246a6(0x186)]={...this['_getDefaultState'](),..._0x1533b0,'uniqueFailedTests':new Set(_0x1533b0[_0x2246a6(0x1f3)]||[])},logger[_0x2246a6(0x1a8)]('['+TAG+_0x2246a6(0x1a5));else{logger[_0x2246a6(0x1a8)]('['+TAG+'_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.');const _0x20906e=this[_0x2246a6(0x1ce)](),_0x23a3ea={..._0x20906e,'uniqueFailedTests':Array[_0x2246a6(0x1e2)](_0x20906e[_0x2246a6(0x1f3)])};await this[_0x2246a6(0x1be)]['writeState'](_0x23a3ea),this[_0x2246a6(0x186)]=_0x20906e;}}catch(_0x5cd612){logger[_0x2246a6(0x1a8)]('['+TAG+_0x2246a6(0x1e5)+_0x5cd612[_0x2246a6(0x1f6)]+(_0x5cd612[_0x2246a6(0x1dc)]?_0x3ed29c['IFFLK'](_0x3ed29c[_0x2246a6(0x1f2)],_0x5cd612[_0x2246a6(0x1dc)]):'')),this['state']=this[_0x2246a6(0x1ce)]();}}async[a122_0x4a2c2e(0x1e0)](_0x20c606,_0x23cf1a){const _0x295ffc=a122_0x4a2c2e,_0x3834c6={};_0x3834c6[_0x295ffc(0x1dd)]=function(_0x30f33b,_0x16a061){return _0x30f33b>_0x16a061;},_0x3834c6['Gxwas']=_0x295ffc(0x1c4),_0x3834c6[_0x295ffc(0x1c0)]=_0x295ffc(0x18d),_0x3834c6[_0x295ffc(0x188)]=function(_0x180247,_0x47fbc5){return _0x180247+_0x47fbc5;},_0x3834c6[_0x295ffc(0x1de)]=_0x295ffc(0x1c5),_0x3834c6[_0x295ffc(0x1cd)]=function(_0x3b51ac,_0x904b42){return _0x3b51ac||_0x904b42;},_0x3834c6[_0x295ffc(0x1a7)]=function(_0x5a5f7d,_0x455f02){return _0x5a5f7d+_0x455f02;};const _0x8c1cf=_0x3834c6;if(this['isCIMode'])this[_0x295ffc(0x186)][_0x295ffc(0x19d)]+=0x1,_0x23cf1a&&_0x8c1cf[_0x295ffc(0x1dd)](_0x23cf1a[_0x295ffc(0x1c6)],0x0)&&(!this[_0x295ffc(0x18c)]['has'](_0x20c606)&&(await this['_sendFailedTestsToAPI'](_0x20c606),this[_0x295ffc(0x18c)][_0x295ffc(0x1ff)](_0x20c606)));else try{const _0x5d8989={'fullName':_0x20c606,'status':_0x23cf1a&&_0x8c1cf['Mrplv'](_0x23cf1a[_0x295ffc(0x1c6)],0x0)?_0x8c1cf['Gxwas']:_0x8c1cf[_0x295ffc(0x1c0)]},_0x43d549=await this['fileHelper'][_0x295ffc(0x1fd)](_0x5d8989);this['state']={...this[_0x295ffc(0x1ce)](),..._0x43d549[_0x295ffc(0x1d2)],'uniqueFailedTests':new Set(_0x43d549[_0x295ffc(0x1d2)][_0x295ffc(0x1f3)]||[])};}catch(_0x1ea7f1){logger[_0x295ffc(0x1fe)]('['+TAG+'_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20'+_0x1ea7f1[_0x295ffc(0x1f6)]+(_0x1ea7f1[_0x295ffc(0x1dc)]?_0x8c1cf[_0x295ffc(0x188)](_0x8c1cf['mCkGC'],_0x1ea7f1[_0x295ffc(0x1dc)]):''));try{const _0x574372=await this[_0x295ffc(0x1be)][_0x295ffc(0x1e9)]();this[_0x295ffc(0x186)]={...this[_0x295ffc(0x1ce)](),..._0x8c1cf[_0x295ffc(0x1cd)](_0x574372,{}),'uniqueFailedTests':new Set(_0x574372?_0x574372[_0x295ffc(0x1f3)]||[]:[])},logger[_0x295ffc(0x1a8)]('['+TAG+_0x295ffc(0x1ba));}catch(_0x79240d){logger[_0x295ffc(0x1fe)]('['+TAG+'_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20'+_0x79240d[_0x295ffc(0x1f6)]+(_0x79240d['stack']?_0x8c1cf[_0x295ffc(0x1a7)](_0x8c1cf[_0x295ffc(0x1de)],_0x79240d[_0x295ffc(0x1dc)]):'')),this[_0x295ffc(0x186)]=this[_0x295ffc(0x1ce)]();}}}async[a122_0x4a2c2e(0x1b5)](_0x214592){const _0x44ba7b=a122_0x4a2c2e,_0x11f750={};_0x11f750[_0x44ba7b(0x1bc)]=function(_0x4276f1,_0x1935fe){return _0x4276f1+_0x1935fe;},_0x11f750[_0x44ba7b(0x19f)]=_0x44ba7b(0x1c5);const _0xcca45b=_0x11f750;if(!this[_0x44ba7b(0x187)]||!_0x214592)return;try{logger[_0x44ba7b(0x1a8)]('['+TAG+_0x44ba7b(0x1ac)+_0x214592);const _0x578146={};_0x578146[_0x44ba7b(0x1a6)]=this[_0x44ba7b(0x1a6)],_0x578146[_0x44ba7b(0x1bf)]=this[_0x44ba7b(0x1bf)],_0x578146[_0x44ba7b(0x1b8)]=[_0x214592],_0x578146[_0x44ba7b(0x1fa)]=process[_0x44ba7b(0x1e1)][_0x44ba7b(0x18f)],await RequestUtils[_0x44ba7b(0x1df)](_0x578146);}catch(_0x3d1fa0){logger[_0x44ba7b(0x1fe)]('['+TAG+_0x44ba7b(0x1e6)+_0x214592+_0x44ba7b(0x1b7)+_0x3d1fa0[_0x44ba7b(0x1f6)]+(_0x3d1fa0[_0x44ba7b(0x1dc)]?_0xcca45b[_0x44ba7b(0x1bc)](_0xcca45b[_0x44ba7b(0x19f)],_0x3d1fa0['stack']):''));}}async['_fetchAPIFailedCount'](){const _0x14f40c=a122_0x4a2c2e,_0x5661eb={};_0x5661eb['kjaIS']=function(_0x2557f8,_0x403b52){return _0x2557f8===_0x403b52;},_0x5661eb['LoVvq']='number',_0x5661eb[_0x14f40c(0x1d7)]=function(_0x28e874,_0x433a8b){return _0x28e874+_0x433a8b;},_0x5661eb['CQaOl']=_0x14f40c(0x1c5),_0x5661eb[_0x14f40c(0x194)]=function(_0xe35669,_0x246337){return _0xe35669!==_0x246337;};const _0x22d4d0=_0x5661eb;if(!this[_0x14f40c(0x187)])return 0x0;try{const _0x38d9d7={};_0x38d9d7[_0x14f40c(0x1a6)]=this[_0x14f40c(0x1a6)],_0x38d9d7[_0x14f40c(0x1bf)]=this[_0x14f40c(0x1bf)],_0x38d9d7[_0x14f40c(0x1fa)]=process[_0x14f40c(0x1e1)][_0x14f40c(0x18f)];const _0x1d74bf=await RequestUtils[_0x14f40c(0x17d)](_0x38d9d7);return logger[_0x14f40c(0x1a8)]('['+TAG+_0x14f40c(0x1b9)+_0x1d74bf),_0x22d4d0[_0x14f40c(0x1eb)](typeof _0x1d74bf,_0x22d4d0[_0x14f40c(0x1d8)])?_0x1d74bf:0x0;}catch(_0x1278ca){return logger[_0x14f40c(0x1fe)]('['+TAG+'_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20'+_0x1278ca[_0x14f40c(0x1f6)]+(_0x1278ca[_0x14f40c(0x1dc)]?_0x22d4d0['OyQkM'](_0x22d4d0[_0x14f40c(0x1d4)],_0x1278ca[_0x14f40c(0x1dc)]):'')),_0x22d4d0[_0x14f40c(0x194)](this[_0x14f40c(0x186)][_0x14f40c(0x198)],undefined)?this[_0x14f40c(0x186)][_0x14f40c(0x198)]:0x0;}}async[a122_0x4a2c2e(0x1fc)](){const _0x46f212=a122_0x4a2c2e,_0x142ae8={};_0x142ae8['zEZAZ']=function(_0xb42c80,_0x3caede){return _0xb42c80!==_0x3caede;},_0x142ae8[_0x46f212(0x1c1)]=function(_0x35b680,_0x2af97a){return _0x35b680+_0x2af97a;},_0x142ae8[_0x46f212(0x1c8)]=_0x46f212(0x1c5);const _0x3f1b01=_0x142ae8;if(!this['isCIMode'])return;try{const _0x482618=await this['_fetchAPIFailedCount']();_0x3f1b01[_0x46f212(0x1d6)](_0x482618,this[_0x46f212(0x186)][_0x46f212(0x198)])&&(logger['debug']('['+TAG+_0x46f212(0x1d3)+_0x482618+_0x46f212(0x192)+this[_0x46f212(0x186)][_0x46f212(0x198)]+')'),this[_0x46f212(0x186)]['lastAPIFailedCount']=_0x482618);}catch(_0x317cde){logger[_0x46f212(0x1fe)]('['+TAG+_0x46f212(0x1b1)+_0x317cde[_0x46f212(0x1f6)]+(_0x317cde[_0x46f212(0x1dc)]?_0x3f1b01[_0x46f212(0x1c1)](_0x3f1b01['hSAgA'],_0x317cde['stack']):''));}}async['startPolling'](){const _0x38cd93=a122_0x4a2c2e,_0x13def5={'VkSiq':function(_0x4bb335,_0x50faa8,_0x4834bb){return _0x4bb335(_0x50faa8,_0x4834bb);}};this['pollingInterval']&&this['stopPolling'](),this['isCIMode']&&(await this[_0x38cd93(0x1fc)](),this['pollingInterval']=_0x13def5['VkSiq'](setInterval,async()=>{const _0x3c9b56=_0x38cd93;await this[_0x3c9b56(0x1fc)]();},POLLING_INTERVAL),logger[_0x38cd93(0x1a8)]('['+TAG+_0x38cd93(0x1ea)+POLLING_INTERVAL+_0x38cd93(0x19a)));}[a122_0x4a2c2e(0x1f9)](){const _0x16e20b=a122_0x4a2c2e,_0x12b60e={'wHTXU':function(_0x4f9079,_0x2e5270){return _0x4f9079(_0x2e5270);}};this['pollingInterval']&&(_0x12b60e[_0x16e20b(0x1d5)](clearInterval,this[_0x16e20b(0x1b2)]),this[_0x16e20b(0x1b2)]=null,logger[_0x16e20b(0x1a8)]('['+TAG+_0x16e20b(0x17e)));}async[a122_0x4a2c2e(0x1aa)](){const _0x20115b=a122_0x4a2c2e,_0x8a3bb5={};_0x8a3bb5[_0x20115b(0x1f8)]=function(_0xff799a,_0x45a6a7){return _0xff799a===_0x45a6a7;},_0x8a3bb5[_0x20115b(0x200)]=function(_0x12a789,_0x3c2dc8){return _0x12a789===_0x3c2dc8;},_0x8a3bb5[_0x20115b(0x1c3)]=function(_0x49b660,_0xf7c94f){return _0x49b660<=_0xf7c94f;},_0x8a3bb5['uzDeP']=function(_0x1f3293,_0x30eb01){return _0x1f3293+_0x30eb01;},_0x8a3bb5[_0x20115b(0x1cc)]=_0x20115b(0x1c5),_0x8a3bb5[_0x20115b(0x1ca)]=function(_0x12aa42,_0x3d785a){return _0x12aa42!==_0x3d785a;},_0x8a3bb5[_0x20115b(0x1d9)]=function(_0x276940,_0xde4046){return _0x276940>=_0xde4046;},_0x8a3bb5['QVvkR']=function(_0x5df034,_0x565854){return _0x5df034+_0x565854;};const _0x1427d7=_0x8a3bb5,{failureThresholdCount:_0x322d2a}=this[_0x20115b(0x19c)];if(_0x1427d7[_0x20115b(0x1f8)](_0x322d2a,null)||_0x1427d7['eIdcw'](_0x322d2a,undefined)||_0x1427d7[_0x20115b(0x1c3)](_0x322d2a,0x0))return logger['debug']('['+TAG+_0x20115b(0x1c2)),![];if(this[_0x20115b(0x187)]){try{if(fs[_0x20115b(0x199)](this['failFastActiveMarkerPath']))return logger['debug']('['+TAG+_0x20115b(0x189)),!this['state'][_0x20115b(0x1b6)]&&(this['state'][_0x20115b(0x1b6)]=!![]),this[_0x20115b(0x1f9)](),!![];}catch(_0x474d39){logger[_0x20115b(0x1fe)]('['+TAG+_0x20115b(0x1a2)+_0x474d39[_0x20115b(0x1f6)]+(_0x474d39[_0x20115b(0x1dc)]?_0x1427d7[_0x20115b(0x1bd)](_0x1427d7[_0x20115b(0x1cc)],_0x474d39[_0x20115b(0x1dc)]):''));}const _0x446d9f=_0x1427d7[_0x20115b(0x1ca)](this[_0x20115b(0x186)][_0x20115b(0x198)],undefined)?this[_0x20115b(0x186)][_0x20115b(0x198)]:0x0;if(_0x1427d7[_0x20115b(0x1d9)](_0x446d9f,_0x322d2a)){logger['info']('['+TAG+'_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20'+_0x446d9f+_0x20115b(0x195)+_0x322d2a+'.');try{fs[_0x20115b(0x1a3)](this['failFastActiveMarkerPath'],new Date()[_0x20115b(0x1d1)]()),logger[_0x20115b(0x1a8)]('['+TAG+'_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20'+this[_0x20115b(0x1ef)]),this[_0x20115b(0x186)][_0x20115b(0x1b6)]=!![];}catch(_0xf6e2c7){logger['error']('['+TAG+_0x20115b(0x1ee)+_0xf6e2c7[_0x20115b(0x1f6)]+(_0xf6e2c7[_0x20115b(0x1dc)]?_0x1427d7[_0x20115b(0x1bd)](_0x1427d7[_0x20115b(0x1cc)],_0xf6e2c7[_0x20115b(0x1dc)]):''));}return this[_0x20115b(0x1f9)](),!![];}}else{let _0x139ed4;try{_0x139ed4=await this[_0x20115b(0x1be)][_0x20115b(0x1e9)]();if(!_0x139ed4)return logger[_0x20115b(0x1cb)]('['+TAG+_0x20115b(0x181)),![];}catch(_0x4f4c34){return logger[_0x20115b(0x1fe)]('['+TAG+'_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20'+_0x4f4c34[_0x20115b(0x1f6)]+(_0x4f4c34[_0x20115b(0x1dc)]?_0x1427d7[_0x20115b(0x1bd)](_0x1427d7[_0x20115b(0x1cc)],_0x4f4c34[_0x20115b(0x1dc)]):'')),![];}this[_0x20115b(0x186)]={...this[_0x20115b(0x1ce)](),..._0x139ed4,'uniqueFailedTests':new Set(_0x139ed4[_0x20115b(0x1f3)]||[])};if(this[_0x20115b(0x186)][_0x20115b(0x1b6)])return logger[_0x20115b(0x1a8)]('['+TAG+'_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.'),!![];const _0x1b59f7=this[_0x20115b(0x186)]['uniqueFailedTests'],_0x1c6e00=_0x1b59f7[_0x20115b(0x1db)];if(_0x1427d7['srVgD'](_0x1c6e00,_0x322d2a)){try{logger[_0x20115b(0x1fb)]('['+TAG+_0x20115b(0x1ec)+_0x1c6e00+_0x20115b(0x195)+_0x322d2a+'.'),this[_0x20115b(0x186)][_0x20115b(0x1b6)]=!![];}catch(_0x5a9ccb){logger[_0x20115b(0x1fe)]('['+TAG+_0x20115b(0x1b4)+_0x5a9ccb[_0x20115b(0x1f6)]+(_0x5a9ccb['stack']?_0x1427d7[_0x20115b(0x19b)](_0x1427d7['PWACa'],_0x5a9ccb[_0x20115b(0x1dc)]):''));}return!![];}}return![];}async[a122_0x4a2c2e(0x191)](){const _0x5adc61=a122_0x4a2c2e,_0x21b1e2={};_0x21b1e2[_0x5adc61(0x1c9)]=function(_0xd6ec97,_0x254827){return _0xd6ec97+_0x254827;},_0x21b1e2['hZNVM']='\x0aStack:\x20';const _0xb65b15=_0x21b1e2;this[_0x5adc61(0x1f9)]();if(this['isCIMode'])logger[_0x5adc61(0x1a8)]('['+TAG+_0x5adc61(0x17f));else try{const _0x6816e5={...this[_0x5adc61(0x186)],'uniqueFailedTests':Array[_0x5adc61(0x1e2)](this[_0x5adc61(0x186)][_0x5adc61(0x1f3)]||new Set())};await this['fileHelper']['writeState'](_0x6816e5),logger[_0x5adc61(0x1a8)]('['+TAG+_0x5adc61(0x1e8));}catch(_0x5bf86e){logger[_0x5adc61(0x1fe)]('['+TAG+_0x5adc61(0x1da)+_0x5bf86e[_0x5adc61(0x1f6)]+(_0x5bf86e[_0x5adc61(0x1dc)]?_0xb65b15[_0x5adc61(0x1c9)](_0xb65b15['hZNVM'],_0x5bf86e[_0x5adc61(0x1dc)]):''));}}}function a122_0x69c5(){const _0x519796=['projectName','gkCJk','MImJr',']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','XPxLw','failed','\x0aStack:\x20','length','_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.','hSAgA','lezdU','iVNbq','warn','PWACa','hFXml','_getDefaultState','6874872YPJvgg','XdcoT','toISOString','newState','_CI]\x20API\x20failed\x20count\x20updated:\x20','CQaOl','wHTXU','zEZAZ','OyQkM','LoVvq','srVgD','_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20','size','stack','Mrplv','mCkGC','putFailedTests','onTestDone','env','from','IFFLK','9ManOSo','_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20','_CI]\x20Error\x20sending\x20failed\x20test\x20','29407hlqFql','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','readState','_CI]\x20Polling\x20started\x20with\x20interval:\x20','kjaIS','_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','dmMTn','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','failFastActiveMarkerPath','winstonLogger','ckTJF','yUNqC','uniqueFailedTests','exports','1214762uHsctr','message','1009238qeKsQB','aeZod','stopPolling','buildRunIdentifier','info','_pollFailedTests','recordTestResult','error','add','eIdcw','getFailedTestsCount',']\x20Polling\x20stopped.','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.','workingDir','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.',',\x20CI\x20Mode:\x20','13162210sZUoWh','sOVUu','BROWSERSTACK_TOTAL_NODE_COUNT','state','isCIMode','oQPya','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20','failFastState.lock','reportedFailuresToAPI','passed','catch','BROWSERSTACK_BUILD_RUN_IDENTIFIER','lockFilePath','cleanup','\x20(was\x20','failFastState.json','LbXDX',',\x20threshold:\x20',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20','join','lastAPIFailedCount','existsSync','ms.','QVvkR','failFastConfig','totalTests','lPmzt','PmhsB','../logger','_initializeStateFromFile','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','writeFileSync','./requestUtils','_Local]\x20State\x20initialized\x20from\x20file.','buildName','tlKQA','debug','2638212yHRipk','shouldFailFast','2082lcTRFx','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20','failureThresholdCount','vhglD','6615DSbKhd','./fileHelper','_CI]\x20Error\x20during\x20polling\x20logic:\x20','pollingInterval','1204BuJzki','_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20','_sendFailedTestsToAPI','failFastActive','\x20to\x20API:\x20','failedTests','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.','path','CXfSd','uzDeP','fileHelper'];a122_0x69c5=function(){return _0x519796;};return a122_0x69c5();}module[a122_0x4a2c2e(0x1f4)]=FailFastManager;
@@ -1 +1 @@
1
- const a123_0x1f0aa5=a123_0x1056;function a123_0x1056(_0x39d390,_0x2be9fb){const _0x11f4d1=a123_0x11f4();return a123_0x1056=function(_0x1056c4,_0x26a7ed){_0x1056c4=_0x1056c4-0x1e9;let _0x5b068e=_0x11f4d1[_0x1056c4];return _0x5b068e;},a123_0x1056(_0x39d390,_0x2be9fb);}(function(_0x15a07b,_0x2be571){const _0x3042e0=a123_0x1056,_0x5823c3=_0x15a07b();while(!![]){try{const _0x683192=parseInt(_0x3042e0(0x1ed))/0x1+-parseInt(_0x3042e0(0x1f8))/0x2+-parseInt(_0x3042e0(0x21a))/0x3+parseInt(_0x3042e0(0x1fa))/0x4*(parseInt(_0x3042e0(0x1e9))/0x5)+-parseInt(_0x3042e0(0x205))/0x6+-parseInt(_0x3042e0(0x206))/0x7*(-parseInt(_0x3042e0(0x210))/0x8)+parseInt(_0x3042e0(0x213))/0x9*(-parseInt(_0x3042e0(0x21e))/0xa);if(_0x683192===_0x2be571)break;else _0x5823c3['push'](_0x5823c3['shift']());}catch(_0x28fb64){_0x5823c3['push'](_0x5823c3['shift']());}}}(a123_0x11f4,0x581a6));const fs=require('fs'),logger=require('../logger')['winstonLogger'],TAG='FailFastFileHelper';class FileHelper{constructor(_0x59c837,_0x5c8437,_0x4a6284,_0x8ae395){const _0x39ef61=a123_0x1056,_0x50cce1={};_0x50cce1['fzOWI']='2|3|4|1|0',_0x50cce1[_0x39ef61(0x1f6)]='utf8';const _0x37490a=_0x50cce1,_0x17e280=_0x37490a[_0x39ef61(0x1f7)][_0x39ef61(0x1f4)]('|');let _0x2b7eac=0x0;while(!![]){switch(_0x17e280[_0x2b7eac++]){case'0':if(!fs[_0x39ef61(0x203)](this[_0x39ef61(0x1ff)]))try{fs[_0x39ef61(0x20a)](this[_0x39ef61(0x1ff)],'{}',_0x37490a[_0x39ef61(0x1f6)]);}catch(_0x433d84){logger[_0x39ef61(0x1fe)]('['+TAG+_0x39ef61(0x1ea)+_0x433d84[_0x39ef61(0x21b)]+'\x20'+_0x433d84['stack']);}continue;case'1':this[_0x39ef61(0x1f2)]=_0x8ae395;continue;case'2':this[_0x39ef61(0x1f9)]=_0x59c837;continue;case'3':this[_0x39ef61(0x1ff)]=_0x5c8437;continue;case'4':this[_0x39ef61(0x20f)]=_0x4a6284;continue;}break;}}async[a123_0x1f0aa5(0x20b)](){const _0x26821d=a123_0x1f0aa5,_0x1a0637={};_0x1a0637[_0x26821d(0x1fd)]=function(_0x14f450,_0xa92d99){return _0x14f450===_0xa92d99;},_0x1a0637[_0x26821d(0x214)]='EEXIST';const _0x384192=_0x1a0637;let _0x127e46;try{return _0x127e46=fs[_0x26821d(0x217)](this['lockFilePath'],'wx'),_0x127e46;}catch(_0x365de0){if(_0x384192[_0x26821d(0x1fd)](_0x365de0[_0x26821d(0x1ee)],_0x384192[_0x26821d(0x214)]))return null;throw _0x365de0;}}async[a123_0x1f0aa5(0x218)](_0xda60f8){const _0x574d94=a123_0x1f0aa5;if(_0xda60f8)try{fs['closeSync'](_0xda60f8),fs[_0x574d94(0x1ef)](this[_0x574d94(0x20f)]);}catch(_0x1c2a64){logger['error']('['+TAG+_0x574d94(0x202)+_0x1c2a64[_0x574d94(0x21b)]+'\x20'+_0x1c2a64[_0x574d94(0x1fc)]);}}['readState'](){const _0x49fedd=a123_0x1f0aa5,_0x111cec={};_0x111cec['egquV']='utf8';const _0x262645=_0x111cec;try{const _0x4c15e0=fs[_0x49fedd(0x1f3)](this[_0x49fedd(0x1ff)],_0x262645[_0x49fedd(0x200)]);return JSON[_0x49fedd(0x20c)](_0x4c15e0);}catch(_0x108df8){return logger[_0x49fedd(0x1fe)]('['+TAG+']\x20Error\x20reading\x20state\x20file:\x20'+_0x108df8[_0x49fedd(0x21b)]+'\x20'+_0x108df8[_0x49fedd(0x1fc)]),null;}}async[a123_0x1f0aa5(0x1eb)](_0x4aa3ff){const _0x11fe60=a123_0x1f0aa5,_0x403be4={..._0x4aa3ff,'uniqueFailedTests':Array['isArray'](_0x4aa3ff['uniqueFailedTests'])?_0x4aa3ff[_0x11fe60(0x204)]:Array['from'](_0x4aa3ff['uniqueFailedTests']||[])};try{fs[_0x11fe60(0x20a)](this[_0x11fe60(0x1ff)],JSON['stringify'](_0x403be4,null,0x2));}catch(_0x140ce6){logger[_0x11fe60(0x1fe)]('['+TAG+_0x11fe60(0x1ec)+_0x140ce6[_0x11fe60(0x21b)]+'\x20'+_0x140ce6['stack']);throw _0x140ce6;}}async[a123_0x1f0aa5(0x21f)](_0x9a9242,_0x18653e){const _0x2a325e=a123_0x1f0aa5,_0x40f79b={};_0x40f79b[_0x2a325e(0x1f0)]=function(_0xbd756a,_0x3afe0d){return _0xbd756a!==_0x3afe0d;},_0x40f79b['ACynH']=_0x2a325e(0x208),_0x40f79b[_0x2a325e(0x216)]=function(_0x5948ea,_0x1f7d36){return _0x5948ea===_0x1f7d36;},_0x40f79b[_0x2a325e(0x1fb)]=_0x2a325e(0x1f1);const _0x490375=_0x40f79b,_0x2b3bf0=await this[_0x2a325e(0x20b)]();if(!_0x2b3bf0)return logger['warn']('['+TAG+_0x2a325e(0x219)),{'newState':this['readState']()||this['defaultState'],'isNewFailure':![]};try{let _0x3152f6=this[_0x2a325e(0x209)]();!_0x3152f6&&(_0x3152f6=JSON['parse'](JSON[_0x2a325e(0x207)](this['defaultState'])));if(!_0x3152f6[_0x2a325e(0x204)]||_0x490375[_0x2a325e(0x1f0)](typeof _0x3152f6[_0x2a325e(0x204)][Symbol[_0x2a325e(0x20e)]],_0x490375['ACynH']))_0x3152f6[_0x2a325e(0x204)]=new Set();else Array[_0x2a325e(0x1f5)](_0x3152f6[_0x2a325e(0x204)])&&(_0x3152f6[_0x2a325e(0x204)]=new Set(_0x3152f6[_0x2a325e(0x204)]));_0x3152f6[_0x2a325e(0x201)]=_0x18653e;let _0x2411b2=![];_0x490375[_0x2a325e(0x216)](_0x9a9242['status'],_0x490375['XyAqy'])&&(_0x3152f6['failedTests']+=0x1,!_0x3152f6[_0x2a325e(0x204)]['has'](_0x9a9242[_0x2a325e(0x21d)])&&(_0x3152f6[_0x2a325e(0x204)][_0x2a325e(0x212)](_0x9a9242[_0x2a325e(0x21d)]),_0x2411b2=!![]));await this[_0x2a325e(0x1eb)](_0x3152f6);const _0x1e89cb={};return _0x1e89cb['newState']=_0x3152f6,_0x1e89cb[_0x2a325e(0x211)]=_0x2411b2,_0x1e89cb;}finally{await this[_0x2a325e(0x218)](_0x2b3bf0);}}async['updateAPIFailedCount'](_0xb001fe){const _0x2f471f=a123_0x1f0aa5,_0x13e1f2=await this['acquireLock']();if(!_0x13e1f2)return logger[_0x2f471f(0x215)]('['+TAG+']\x20Could\x20not\x20acquire\x20lock\x20to\x20update\x20API\x20failed\x20count.\x20State\x20may\x20be\x20stale.'),this['readState']()||this['defaultState'];try{let _0x153881=this[_0x2f471f(0x209)]();return!_0x153881&&(_0x153881=JSON[_0x2f471f(0x20c)](JSON[_0x2f471f(0x207)](this['defaultState']))),_0x153881[_0x2f471f(0x21c)]=_0xb001fe,await this[_0x2f471f(0x1eb)](_0x153881),_0x153881;}finally{await this[_0x2f471f(0x218)](_0x13e1f2);}}}module[a123_0x1f0aa5(0x20d)]=FileHelper;function a123_0x11f4(){const _0x14db02=['totalTests',']\x20Error\x20releasing\x20lock:\x20','existsSync','uniqueFailedTests','1052862MwwWEQ','7CzPuhT','stringify','function','readState','writeFileSync','acquireLock','parse','exports','iterator','lockFilePath','5240176sPYvZj','isNewFailure','add','186669bYzlMh','WsbfT','warn','jWQUg','openSync','releaseLock',']\x20Could\x20not\x20acquire\x20lock\x20to\x20record\x20test\x20result.\x20State\x20may\x20be\x20stale.','957744ZDqkor','message','lastAPIFailedCount','fullName','80WWYElv','recordTestResult','25455DUxLio',']\x20Error\x20creating\x20state\x20file:\x20','writeState',']\x20Error\x20writing\x20state\x20file:\x20','488000ZNjVNL','code','unlinkSync','alfHz','failed','defaultState','readFileSync','split','isArray','oyLnD','fzOWI','965920otJHye','failFastConfig','284DuRsSw','XyAqy','stack','wjxeg','error','stateFilePath','egquV'];a123_0x11f4=function(){return _0x14db02;};return a123_0x11f4();}
1
+ const a123_0x25e90c=a123_0x4d56;(function(_0x3f29cf,_0x571c02){const _0x35cbaa=a123_0x4d56,_0x545d49=_0x3f29cf();while(!![]){try{const _0x5aff40=parseInt(_0x35cbaa(0xf0))/0x1*(-parseInt(_0x35cbaa(0xf2))/0x2)+parseInt(_0x35cbaa(0xeb))/0x3*(parseInt(_0x35cbaa(0x11c))/0x4)+parseInt(_0x35cbaa(0x128))/0x5+-parseInt(_0x35cbaa(0x119))/0x6+-parseInt(_0x35cbaa(0x109))/0x7+-parseInt(_0x35cbaa(0x110))/0x8*(-parseInt(_0x35cbaa(0xfd))/0x9)+-parseInt(_0x35cbaa(0xf5))/0xa*(-parseInt(_0x35cbaa(0x117))/0xb);if(_0x5aff40===_0x571c02)break;else _0x545d49['push'](_0x545d49['shift']());}catch(_0x282aff){_0x545d49['push'](_0x545d49['shift']());}}}(a123_0x5b75,0x5db20));function a123_0x4d56(_0x452803,_0x28a687){const _0x5b754d=a123_0x5b75();return a123_0x4d56=function(_0x4d5667,_0x28d6a5){_0x4d5667=_0x4d5667-0xe8;let _0x2f0eab=_0x5b754d[_0x4d5667];return _0x2f0eab;},a123_0x4d56(_0x452803,_0x28a687);}const fs=require('fs'),logger=require(a123_0x25e90c(0xe9))[a123_0x25e90c(0xf9)],TAG=a123_0x25e90c(0xf6);function a123_0x5b75(){const _0x171fda=['status',']\x20Could\x20not\x20acquire\x20lock\x20to\x20update\x20API\x20failed\x20count.\x20State\x20may\x20be\x20stale.','parse','defaultState','2913296RYIuhV','message','UVCIW','dIPid','function','lockFilePath','updateAPIFailedCount','11nVFpBx','failed','898794tumPpu','writeState',']\x20Error\x20writing\x20state\x20file:\x20','16700tjWYpW','add','existsSync','warn',']\x20Could\x20not\x20acquire\x20lock\x20to\x20record\x20test\x20result.\x20State\x20may\x20be\x20stale.','YsVei','stringify','readState','stateFilePath','EEXIST','newState','lastAPIFailedCount','279395Telkam','openSync','totalTests','../logger','utf8','33BPESpi',']\x20Error\x20releasing\x20lock:\x20','isNewFailure',']\x20Error\x20reading\x20state\x20file:\x20','unlinkSync','4FSAJwJ','iterator','303436FxMXHb','isArray','releaseLock','10612090XgKegQ','FailFastFileHelper','puYdz','recordTestResult','winstonLogger','uniqueFailedTests','2|3|4|0|1','fullName','18NTicEc','readFileSync','code','error','zkgcR','MswzP','vTfKC','PpANi','LWjEY','acquireLock','writeFileSync','stack','5256230CrfIju','closeSync','failedTests'];a123_0x5b75=function(){return _0x171fda;};return a123_0x5b75();}class FileHelper{constructor(_0x29b7b2,_0xcb004f,_0x5c2e65,_0x34c745){const _0x591b01=a123_0x25e90c,_0x42cbac={};_0x42cbac[_0x591b01(0x121)]=_0x591b01(0xfb),_0x42cbac[_0x591b01(0x102)]=_0x591b01(0xea);const _0x3aef0f=_0x42cbac,_0x240bf9=_0x3aef0f[_0x591b01(0x121)]['split']('|');let _0x257dea=0x0;while(!![]){switch(_0x240bf9[_0x257dea++]){case'0':this[_0x591b01(0x10f)]=_0x34c745;continue;case'1':if(!fs[_0x591b01(0x11e)](this['stateFilePath']))try{fs['writeFileSync'](this[_0x591b01(0x124)],'{}',_0x3aef0f[_0x591b01(0x102)]);}catch(_0x377f95){logger[_0x591b01(0x100)]('['+TAG+']\x20Error\x20creating\x20state\x20file:\x20'+_0x377f95[_0x591b01(0x111)]+'\x20'+_0x377f95[_0x591b01(0x108)]);}continue;case'2':this['failFastConfig']=_0x29b7b2;continue;case'3':this[_0x591b01(0x124)]=_0xcb004f;continue;case'4':this['lockFilePath']=_0x5c2e65;continue;}break;}}async[a123_0x25e90c(0x106)](){const _0x45afdf=a123_0x25e90c,_0x231c58={};_0x231c58[_0x45afdf(0x112)]=function(_0x51f824,_0x5c510f){return _0x51f824===_0x5c510f;},_0x231c58[_0x45afdf(0x113)]=_0x45afdf(0x125);const _0x202bad=_0x231c58;let _0x5b0185;try{return _0x5b0185=fs[_0x45afdf(0x129)](this[_0x45afdf(0x115)],'wx'),_0x5b0185;}catch(_0xcd2a9d){if(_0x202bad[_0x45afdf(0x112)](_0xcd2a9d[_0x45afdf(0xff)],_0x202bad[_0x45afdf(0x113)]))return null;throw _0xcd2a9d;}}async[a123_0x25e90c(0xf4)](_0x28cdc6){const _0x4bf9dd=a123_0x25e90c;if(_0x28cdc6)try{fs[_0x4bf9dd(0x10a)](_0x28cdc6),fs[_0x4bf9dd(0xef)](this[_0x4bf9dd(0x115)]);}catch(_0x4eb6d0){logger[_0x4bf9dd(0x100)]('['+TAG+_0x4bf9dd(0xec)+_0x4eb6d0[_0x4bf9dd(0x111)]+'\x20'+_0x4eb6d0[_0x4bf9dd(0x108)]);}}[a123_0x25e90c(0x123)](){const _0x13174a=a123_0x25e90c,_0x5b84c4={};_0x5b84c4[_0x13174a(0x103)]='utf8';const _0x38ae7a=_0x5b84c4;try{const _0x13fc47=fs[_0x13174a(0xfe)](this['stateFilePath'],_0x38ae7a[_0x13174a(0x103)]);return JSON[_0x13174a(0x10e)](_0x13fc47);}catch(_0x4eb4bb){return logger[_0x13174a(0x100)]('['+TAG+_0x13174a(0xee)+_0x4eb4bb[_0x13174a(0x111)]+'\x20'+_0x4eb4bb[_0x13174a(0x108)]),null;}}async['writeState'](_0x3805d9){const _0x50fd51=a123_0x25e90c,_0x1b8f37={..._0x3805d9,'uniqueFailedTests':Array[_0x50fd51(0xf3)](_0x3805d9['uniqueFailedTests'])?_0x3805d9[_0x50fd51(0xfa)]:Array['from'](_0x3805d9['uniqueFailedTests']||[])};try{fs[_0x50fd51(0x107)](this[_0x50fd51(0x124)],JSON[_0x50fd51(0x122)](_0x1b8f37,null,0x2));}catch(_0x2ede0b){logger['error']('['+TAG+_0x50fd51(0x11b)+_0x2ede0b[_0x50fd51(0x111)]+'\x20'+_0x2ede0b['stack']);throw _0x2ede0b;}}async[a123_0x25e90c(0xf8)](_0x247e30,_0x564c83){const _0x5eba85=a123_0x25e90c,_0x128cd7={};_0x128cd7[_0x5eba85(0x101)]=function(_0x34a699,_0x50aaf5){return _0x34a699!==_0x50aaf5;},_0x128cd7[_0x5eba85(0x105)]=_0x5eba85(0x114),_0x128cd7[_0x5eba85(0x104)]=function(_0x3f716f,_0x11feca){return _0x3f716f===_0x11feca;},_0x128cd7['puYdz']=_0x5eba85(0x118);const _0x341700=_0x128cd7,_0x616c55=await this['acquireLock']();if(!_0x616c55)return logger[_0x5eba85(0x11f)]('['+TAG+_0x5eba85(0x120)),{'newState':this['readState']()||this[_0x5eba85(0x10f)],'isNewFailure':![]};try{let _0x330498=this['readState']();!_0x330498&&(_0x330498=JSON[_0x5eba85(0x10e)](JSON[_0x5eba85(0x122)](this[_0x5eba85(0x10f)])));if(!_0x330498[_0x5eba85(0xfa)]||_0x341700['zkgcR'](typeof _0x330498['uniqueFailedTests'][Symbol[_0x5eba85(0xf1)]],_0x341700[_0x5eba85(0x105)]))_0x330498[_0x5eba85(0xfa)]=new Set();else Array[_0x5eba85(0xf3)](_0x330498['uniqueFailedTests'])&&(_0x330498[_0x5eba85(0xfa)]=new Set(_0x330498[_0x5eba85(0xfa)]));_0x330498[_0x5eba85(0xe8)]=_0x564c83;let _0x49c621=![];_0x341700[_0x5eba85(0x104)](_0x247e30[_0x5eba85(0x10c)],_0x341700[_0x5eba85(0xf7)])&&(_0x330498[_0x5eba85(0x10b)]+=0x1,!_0x330498[_0x5eba85(0xfa)]['has'](_0x247e30['fullName'])&&(_0x330498[_0x5eba85(0xfa)][_0x5eba85(0x11d)](_0x247e30[_0x5eba85(0xfc)]),_0x49c621=!![]));await this[_0x5eba85(0x11a)](_0x330498);const _0x40b114={};return _0x40b114[_0x5eba85(0x126)]=_0x330498,_0x40b114[_0x5eba85(0xed)]=_0x49c621,_0x40b114;}finally{await this['releaseLock'](_0x616c55);}}async[a123_0x25e90c(0x116)](_0x2854c9){const _0x506f42=a123_0x25e90c,_0x2a6b40=await this[_0x506f42(0x106)]();if(!_0x2a6b40)return logger['warn']('['+TAG+_0x506f42(0x10d)),this[_0x506f42(0x123)]()||this[_0x506f42(0x10f)];try{let _0x42f8c6=this['readState']();return!_0x42f8c6&&(_0x42f8c6=JSON[_0x506f42(0x10e)](JSON[_0x506f42(0x122)](this[_0x506f42(0x10f)]))),_0x42f8c6[_0x506f42(0x127)]=_0x2854c9,await this[_0x506f42(0x11a)](_0x42f8c6),_0x42f8c6;}finally{await this['releaseLock'](_0x2a6b40);}}}module['exports']=FileHelper;
@@ -1 +1 @@
1
- function a124_0xb35b(_0x9fb68a,_0x3ac483){const _0x27d101=a124_0x27d1();return a124_0xb35b=function(_0xb35b3e,_0x4e5cee){_0xb35b3e=_0xb35b3e-0x19a;let _0x1935f0=_0x27d101[_0xb35b3e];return _0x1935f0;},a124_0xb35b(_0x9fb68a,_0x3ac483);}const a124_0x4e3dd6=a124_0xb35b;(function(_0x90f924,_0x5e11a3){const _0x46e460=a124_0xb35b,_0x5df7e8=_0x90f924();while(!![]){try{const _0x1d2938=-parseInt(_0x46e460(0x1cf))/0x1*(parseInt(_0x46e460(0x1b0))/0x2)+-parseInt(_0x46e460(0x1d6))/0x3+-parseInt(_0x46e460(0x1ce))/0x4*(-parseInt(_0x46e460(0x1b9))/0x5)+parseInt(_0x46e460(0x1d5))/0x6*(-parseInt(_0x46e460(0x1b3))/0x7)+parseInt(_0x46e460(0x1c3))/0x8*(parseInt(_0x46e460(0x19d))/0x9)+parseInt(_0x46e460(0x19c))/0xa*(-parseInt(_0x46e460(0x1b7))/0xb)+-parseInt(_0x46e460(0x1d8))/0xc*(parseInt(_0x46e460(0x1ad))/0xd);if(_0x1d2938===_0x5e11a3)break;else _0x5df7e8['push'](_0x5df7e8['shift']());}catch(_0x1593fe){_0x5df7e8['push'](_0x5df7e8['shift']());}}}(a124_0x27d1,0xab72d));const os=require('os'),path=require('path'),fs=require('fs'),logger=require(a124_0x4e3dd6(0x1d3))[a124_0x4e3dd6(0x1b1)],RETRY_TESTS_ON_FAILURE='retryTestsOnFailure',ABORT_BUILD_ON_FAILURE=a124_0x4e3dd6(0x1cb),RUN_PREVIOUSLY_FAILED_FIRST=a124_0x4e3dd6(0x1c4),RERUN_PREVIOUSLY_FAILED=a124_0x4e3dd6(0x1c5),SKIP_FLAKY_AND_FAILED=a124_0x4e3dd6(0x1c1),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([a124_0x4e3dd6(0x1d1)]);function a124_0x27d1(){const _0x170b72=['getOrchestrationData','144xnJnlN','getInstance','testOrchestrationOptions','3912770MtkOQF','1152wUMPJf','_setSkipFlakyAndFailed','abort_build_','_instance','existsSync','getTestOrderingName','writeFailureToFile','env','auiug','isRetryEnabled','rerun_previously_failed','getRunPreviouslyFailedFirst','enabled','_setRunPreviouslyFailedFirst','_setRerunPreviouslyFailed','has','110552BKRvgw','getBuildStartData','yBUuy','16irIJuR','winstonLogger','isAbortBuildOnFailureSupported','12453zdSvFm','maxFailures','getRerunPreviouslyFailed','config','11GMfSiM','appendFileSync','25orDGXU','getSkipFlakyAndFailed','join','getName','_setTestOrdering','.txt','name','enable','skipFlakyandFailed','testOrdering','56192jqtqYy','runPreviouslyFailedFirst','rerunPreviouslyFailed','skip_failing_and_flaky','BROWSERSTACK_TESTHUB_UUID','isAbortBuildOnFailureEnabled','exports','failed_tests_','abortBuildOnFailure','skipFlakyAndFailed','getEnabled','550148RnuPyF','13291CgdYqG','retry_tests_on_failure','jest','getFailureThreshold','../logger','getRetryCount','300uojBya','587703rRNQWv'];a124_0x27d1=function(){return _0x170b72;};return a124_0x27d1();}class TestOrdering{constructor(){this['enabled']=![],this['name']=null;}[a124_0x4e3dd6(0x1c0)](_0x43db8f){const _0x1bd507=a124_0x4e3dd6;this[_0x1bd507(0x1a9)]=!![],this['name']=_0x43db8f;}['disable'](){const _0x509a01=a124_0x4e3dd6;this[_0x509a01(0x1a9)]=![],this[_0x509a01(0x1bf)]=null;}[a124_0x4e3dd6(0x1cd)](){return this['enabled'];}[a124_0x4e3dd6(0x1bc)](){const _0x353734=a124_0x4e3dd6;return this[_0x353734(0x1bf)];}}class OrchestrationUtils{static [a124_0x4e3dd6(0x1a0)]=null;constructor(_0x122721){const _0xd97cdb=a124_0x4e3dd6,_0x4c8555={};_0x4c8555[_0xd97cdb(0x1a5)]=function(_0x54bdb0,_0x378f24){return _0x54bdb0||_0x378f24;};const _0x4aebfd=_0x4c8555;this[_0xd97cdb(0x1c4)]=![],this['rerunPreviouslyFailed']=![],this[_0xd97cdb(0x1cc)]=![],this[_0xd97cdb(0x1c2)]=new TestOrdering(),this[_0xd97cdb(0x1b6)]=_0x4aebfd['auiug'](_0x122721,{});const _0x563117=_0x122721&&_0x122721[_0xd97cdb(0x19b)]||{};this[_0xd97cdb(0x1aa)](_0x563117[RUN_PREVIOUSLY_FAILED_FIRST]||![]),this[_0xd97cdb(0x1ab)](_0x563117[RERUN_PREVIOUSLY_FAILED]||![]),this[_0xd97cdb(0x19e)](_0x563117[SKIP_FLAKY_AND_FAILED]||![]);}static[a124_0x4e3dd6(0x19a)](_0x5dbf60){const _0x5f513b=a124_0x4e3dd6;return!OrchestrationUtils[_0x5f513b(0x1a0)]&&_0x5dbf60&&(OrchestrationUtils['_instance']=new OrchestrationUtils(_0x5dbf60)),OrchestrationUtils[_0x5f513b(0x1a0)];}[a124_0x4e3dd6(0x1a6)](){const _0x20d638=a124_0x4e3dd6,_0x56d61c=(this[_0x20d638(0x1b6)][_0x20d638(0x19b)]||{})[RETRY_TESTS_ON_FAILURE]||{};return!!_0x56d61c[_0x20d638(0x1a9)];}[a124_0x4e3dd6(0x1d4)](){const _0x426a81=a124_0x4e3dd6,_0x1cfd98=(this[_0x426a81(0x1b6)]['testOrchestrationOptions']||{})[RETRY_TESTS_ON_FAILURE]||{};let _0x1966dd=0x0;return this['isRetryEnabled'](this['config'])&&(_0x1966dd=_0x1cfd98['maxRetries']||0x1),_0x1966dd;}[a124_0x4e3dd6(0x1d7)](){const _0x4b2c79=a124_0x4e3dd6,_0x293284=this[_0x4b2c79(0x1b6)][_0x4b2c79(0x19b)]||{},_0x4ab8be={};for(const _0x3deeae in _0x293284){ALLOWED_ORCHESTRATION_KEYS['has'](_0x3deeae)&&(_0x4ab8be[_0x3deeae]=_0x293284[_0x3deeae]);}return _0x4ab8be;}['checkAbortBuildFileExists'](){const _0x4a774a=a124_0x4e3dd6,_0x5d6b0b=process[_0x4a774a(0x1a4)][_0x4a774a(0x1c7)],_0x5492ad=path[_0x4a774a(0x1bb)](os['tmpdir'](),_0x4a774a(0x19f)+_0x5d6b0b);return fs[_0x4a774a(0x1a1)](_0x5492ad);}[a124_0x4e3dd6(0x1a3)](_0x1f812d){const _0x174335=a124_0x4e3dd6,_0x1f548a=process[_0x174335(0x1a4)][_0x174335(0x1c7)],_0xc614e3=path[_0x174335(0x1bb)](os['tmpdir'](),_0x174335(0x1ca)+_0x1f548a+_0x174335(0x1be));fs[_0x174335(0x1b8)](_0xc614e3,_0x1f812d+'\x0a');}[a124_0x4e3dd6(0x1b2)](_0x282b06){const _0x1ae376=a124_0x4e3dd6,_0x6e6ba9={};_0x6e6ba9[_0x1ae376(0x1af)]=function(_0x55be16,_0x5b8a2d){return _0x55be16||_0x5b8a2d;};const _0x2ad3a9=_0x6e6ba9;return ABORT_BUILD_SUPPORTED_FRAMEWORKS[_0x1ae376(0x1ac)](_0x2ad3a9[_0x1ae376(0x1af)](_0x282b06,'')['toLowerCase']());}[a124_0x4e3dd6(0x1c8)](){const _0x51449d=a124_0x4e3dd6,_0x26c884=(this[_0x51449d(0x1b6)][_0x51449d(0x19b)]||{})[ABORT_BUILD_ON_FAILURE]||{};return!!_0x26c884[_0x51449d(0x1a9)];}[a124_0x4e3dd6(0x1d2)](){const _0x4bf377=a124_0x4e3dd6,_0x4d52f6=(this[_0x4bf377(0x1b6)][_0x4bf377(0x19b)]||{})[ABORT_BUILD_ON_FAILURE]||{};return _0x4d52f6[_0x4bf377(0x1b4)]||0x5;;}['getRunPreviouslyFailedFirst'](){const _0x21f90d=a124_0x4e3dd6;return this[_0x21f90d(0x1c4)];}['_setRunPreviouslyFailedFirst'](_0xf7177f){this['runPreviouslyFailedFirst']=!!_0xf7177f,this['_setTestOrdering']();}[a124_0x4e3dd6(0x1b5)](){const _0x512d5f=a124_0x4e3dd6;return this[_0x512d5f(0x1c5)];}[a124_0x4e3dd6(0x1ab)](_0x1fd7a3){const _0x4b4037=a124_0x4e3dd6;this['rerunPreviouslyFailed']=!!_0x1fd7a3,this[_0x4b4037(0x1bd)]();}[a124_0x4e3dd6(0x1ba)](){const _0x5425ae=a124_0x4e3dd6;return this[_0x5425ae(0x1cc)];}[a124_0x4e3dd6(0x19e)](_0x1a5586){const _0x15f4fd=a124_0x4e3dd6;this[_0x15f4fd(0x1cc)]=!!_0x1a5586,this['_setTestOrdering']();}[a124_0x4e3dd6(0x1bd)](){const _0x264f24=a124_0x4e3dd6;if(this[_0x264f24(0x1c4)])this[_0x264f24(0x1c5)]=![],this[_0x264f24(0x1cc)]=![],this['testOrdering']['enable'](RUN_PREVIOUSLY_FAILED_FIRST);else{if(this[_0x264f24(0x1c5)])this['runPreviouslyFailedFirst']=![],this[_0x264f24(0x1cc)]=![],this[_0x264f24(0x1c2)][_0x264f24(0x1c0)](RERUN_PREVIOUSLY_FAILED);else this[_0x264f24(0x1cc)]?(this[_0x264f24(0x1c4)]=![],this[_0x264f24(0x1c5)]=![],this['testOrdering']['enable'](SKIP_FLAKY_AND_FAILED)):this['testOrdering']['disable']();}}['testOrderingEnabled'](){return this['testOrdering']['getEnabled']();}[a124_0x4e3dd6(0x1a2)](){const _0x56fc96=a124_0x4e3dd6;if(this['testOrdering'][_0x56fc96(0x1cd)]())return this['testOrdering'][_0x56fc96(0x1bc)]();return null;}[a124_0x4e3dd6(0x1ae)](){const _0x1a62c9=a124_0x4e3dd6,_0x189e1c={};return _0x189e1c[_0x1a62c9(0x1a7)]={'enabled':this[_0x1a62c9(0x1b5)]()},_0x189e1c['run_previously_failed_first']={'enabled':this[_0x1a62c9(0x1a8)]()},_0x189e1c[_0x1a62c9(0x1c6)]={'enabled':this[_0x1a62c9(0x1ba)]()},this[_0x1a62c9(0x1a6)]()&&(_0x189e1c[_0x1a62c9(0x1d0)]={'enabled':!![],'max_retries':this[_0x1a62c9(0x1d4)]()}),this[_0x1a62c9(0x1c8)]()&&(_0x189e1c['abort_build_on_failure']={'enabled':!![],'max_failures':this[_0x1a62c9(0x1d2)]()}),_0x189e1c;}}module[a124_0x4e3dd6(0x1c9)]=OrchestrationUtils;
1
+ const a124_0x311ad8=a124_0xb4d2;(function(_0x1f7dbd,_0xd56f5d){const _0x4cd7da=a124_0xb4d2,_0x929aeb=_0x1f7dbd();while(!![]){try{const _0x219cfe=parseInt(_0x4cd7da(0x204))/0x1+-parseInt(_0x4cd7da(0x1ef))/0x2+-parseInt(_0x4cd7da(0x1ea))/0x3+-parseInt(_0x4cd7da(0x1e9))/0x4+-parseInt(_0x4cd7da(0x1d9))/0x5*(parseInt(_0x4cd7da(0x1dd))/0x6)+parseInt(_0x4cd7da(0x1df))/0x7+-parseInt(_0x4cd7da(0x1e5))/0x8*(-parseInt(_0x4cd7da(0x1d3))/0x9);if(_0x219cfe===_0xd56f5d)break;else _0x929aeb['push'](_0x929aeb['shift']());}catch(_0x538583){_0x929aeb['push'](_0x929aeb['shift']());}}}(a124_0xedba,0xbfeb8));const os=require('os'),path=require(a124_0x311ad8(0x1fd)),fs=require('fs'),logger=require(a124_0x311ad8(0x1f4))[a124_0x311ad8(0x1fc)],RETRY_TESTS_ON_FAILURE=a124_0x311ad8(0x1e0),ABORT_BUILD_ON_FAILURE='abortBuildOnFailure',RUN_PREVIOUSLY_FAILED_FIRST=a124_0x311ad8(0x1f8),RERUN_PREVIOUSLY_FAILED=a124_0x311ad8(0x1fe),SKIP_FLAKY_AND_FAILED='skipFlakyandFailed',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([a124_0x311ad8(0x1de)]);function a124_0xb4d2(_0x5473ed,_0x161c53){const _0xedbac5=a124_0xedba();return a124_0xb4d2=function(_0xb4d2bf,_0x31faf3){_0xb4d2bf=_0xb4d2bf-0x1cd;let _0x88edf=_0xedbac5[_0xb4d2bf];return _0x88edf;},a124_0xb4d2(_0x5473ed,_0x161c53);}class TestOrdering{constructor(){const _0x57e2f7=a124_0x311ad8;this[_0x57e2f7(0x1f3)]=![],this[_0x57e2f7(0x1fa)]=null;}[a124_0x311ad8(0x207)](_0x1f4f40){const _0x1caa77=a124_0x311ad8;this[_0x1caa77(0x1f3)]=!![],this[_0x1caa77(0x1fa)]=_0x1f4f40;}[a124_0x311ad8(0x200)](){const _0xddf5f3=a124_0x311ad8;this[_0xddf5f3(0x1f3)]=![],this[_0xddf5f3(0x1fa)]=null;}[a124_0x311ad8(0x1e6)](){const _0x26b73c=a124_0x311ad8;return this[_0x26b73c(0x1f3)];}[a124_0x311ad8(0x1f6)](){return this['name'];}}class OrchestrationUtils{static [a124_0x311ad8(0x1cf)]=null;constructor(_0x41f950){const _0x31dcda=a124_0x311ad8,_0x173832={};_0x173832[_0x31dcda(0x203)]=function(_0xae51d1,_0xee1c9d){return _0xae51d1||_0xee1c9d;};const _0x544c99=_0x173832;this[_0x31dcda(0x1f8)]=![],this[_0x31dcda(0x1fe)]=![],this[_0x31dcda(0x205)]=![],this[_0x31dcda(0x208)]=new TestOrdering(),this[_0x31dcda(0x1f7)]=_0x544c99[_0x31dcda(0x203)](_0x41f950,{});const _0x27ab68=_0x41f950&&_0x41f950['testOrchestrationOptions']||{};this[_0x31dcda(0x1d0)](_0x27ab68[RUN_PREVIOUSLY_FAILED_FIRST]||![]),this['_setRerunPreviouslyFailed'](_0x27ab68[RERUN_PREVIOUSLY_FAILED]||![]),this[_0x31dcda(0x1e4)](_0x27ab68[SKIP_FLAKY_AND_FAILED]||![]);}static[a124_0x311ad8(0x201)](_0x2edf5d){const _0x1dacb4=a124_0x311ad8;return!OrchestrationUtils[_0x1dacb4(0x1cf)]&&_0x2edf5d&&(OrchestrationUtils[_0x1dacb4(0x1cf)]=new OrchestrationUtils(_0x2edf5d)),OrchestrationUtils[_0x1dacb4(0x1cf)];}[a124_0x311ad8(0x1dc)](){const _0x44d2ed=a124_0x311ad8,_0x146799=(this[_0x44d2ed(0x1f7)][_0x44d2ed(0x1cd)]||{})[RETRY_TESTS_ON_FAILURE]||{};return!!_0x146799['enabled'];}['getRetryCount'](){const _0x43765d=a124_0x311ad8,_0x499faa=(this[_0x43765d(0x1f7)][_0x43765d(0x1cd)]||{})[RETRY_TESTS_ON_FAILURE]||{};let _0x2c70d3=0x0;return this['isRetryEnabled'](this[_0x43765d(0x1f7)])&&(_0x2c70d3=_0x499faa['maxRetries']||0x1),_0x2c70d3;}['getOrchestrationData'](){const _0x24a786=a124_0x311ad8,_0x5f332e=this['config'][_0x24a786(0x1cd)]||{},_0x3caa8f={};for(const _0x3dee03 in _0x5f332e){ALLOWED_ORCHESTRATION_KEYS['has'](_0x3dee03)&&(_0x3caa8f[_0x3dee03]=_0x5f332e[_0x3dee03]);}return _0x3caa8f;}[a124_0x311ad8(0x1e3)](){const _0x3775b2=a124_0x311ad8,_0x3a9ce6=process['env']['BROWSERSTACK_TESTHUB_UUID'],_0x1bf32a=path[_0x3775b2(0x1eb)](os['tmpdir'](),'abort_build_'+_0x3a9ce6);return fs[_0x3775b2(0x1e2)](_0x1bf32a);}[a124_0x311ad8(0x1ff)](_0x7f7101){const _0x2934dc=a124_0x311ad8,_0x1660d3=process[_0x2934dc(0x202)][_0x2934dc(0x1d4)],_0x31f6e8=path[_0x2934dc(0x1eb)](os[_0x2934dc(0x1ce)](),_0x2934dc(0x1d5)+_0x1660d3+_0x2934dc(0x1db));fs[_0x2934dc(0x1f9)](_0x31f6e8,_0x7f7101+'\x0a');}['isAbortBuildOnFailureSupported'](_0x233b11){const _0x5e4d9b=a124_0x311ad8,_0xd8ad7a={};_0xd8ad7a[_0x5e4d9b(0x1f0)]=function(_0x310f31,_0x2e404c){return _0x310f31||_0x2e404c;};const _0x327d27=_0xd8ad7a;return ABORT_BUILD_SUPPORTED_FRAMEWORKS[_0x5e4d9b(0x1fb)](_0x327d27[_0x5e4d9b(0x1f0)](_0x233b11,'')[_0x5e4d9b(0x1ec)]());}[a124_0x311ad8(0x206)](){const _0x1734c7=a124_0x311ad8,_0x4b8bd6=(this[_0x1734c7(0x1f7)]['testOrchestrationOptions']||{})[ABORT_BUILD_ON_FAILURE]||{};return!!_0x4b8bd6[_0x1734c7(0x1f3)];}['getFailureThreshold'](){const _0x17bd66=a124_0x311ad8,_0x52d429=(this['config'][_0x17bd66(0x1cd)]||{})[ABORT_BUILD_ON_FAILURE]||{};return _0x52d429[_0x17bd66(0x1f1)]||0x5;;}[a124_0x311ad8(0x1d2)](){const _0x1369fc=a124_0x311ad8;return this[_0x1369fc(0x1f8)];}[a124_0x311ad8(0x1d0)](_0x102622){this['runPreviouslyFailedFirst']=!!_0x102622,this['_setTestOrdering']();}['getRerunPreviouslyFailed'](){const _0x1bc098=a124_0x311ad8;return this[_0x1bc098(0x1fe)];}['_setRerunPreviouslyFailed'](_0x218fd7){const _0x51ee09=a124_0x311ad8;this[_0x51ee09(0x1fe)]=!!_0x218fd7,this[_0x51ee09(0x1e8)]();}['getSkipFlakyAndFailed'](){return this['skipFlakyAndFailed'];}[a124_0x311ad8(0x1e4)](_0x4af571){const _0x1ba3c0=a124_0x311ad8;this[_0x1ba3c0(0x205)]=!!_0x4af571,this[_0x1ba3c0(0x1e8)]();}[a124_0x311ad8(0x1e8)](){const _0x35d6eb=a124_0x311ad8;if(this['runPreviouslyFailedFirst'])this[_0x35d6eb(0x1fe)]=![],this[_0x35d6eb(0x205)]=![],this[_0x35d6eb(0x208)][_0x35d6eb(0x207)](RUN_PREVIOUSLY_FAILED_FIRST);else{if(this[_0x35d6eb(0x1fe)])this['runPreviouslyFailedFirst']=![],this[_0x35d6eb(0x205)]=![],this[_0x35d6eb(0x208)][_0x35d6eb(0x207)](RERUN_PREVIOUSLY_FAILED);else this['skipFlakyAndFailed']?(this[_0x35d6eb(0x1f8)]=![],this[_0x35d6eb(0x1fe)]=![],this[_0x35d6eb(0x208)][_0x35d6eb(0x207)](SKIP_FLAKY_AND_FAILED)):this[_0x35d6eb(0x208)]['disable']();}}[a124_0x311ad8(0x1e1)](){const _0x35028a=a124_0x311ad8;return this[_0x35028a(0x208)][_0x35028a(0x1e6)]();}[a124_0x311ad8(0x1d1)](){const _0x5aa7b8=a124_0x311ad8;if(this[_0x5aa7b8(0x208)][_0x5aa7b8(0x1e6)]())return this[_0x5aa7b8(0x208)]['getName']();return null;}[a124_0x311ad8(0x1f2)](){const _0x551cf8=a124_0x311ad8,_0x3ce869={};return _0x3ce869[_0x551cf8(0x1f5)]={'enabled':this['getRerunPreviouslyFailed']()},_0x3ce869[_0x551cf8(0x1d8)]={'enabled':this[_0x551cf8(0x1d2)]()},_0x3ce869[_0x551cf8(0x1ed)]={'enabled':this[_0x551cf8(0x1e7)]()},this[_0x551cf8(0x1dc)]()&&(_0x3ce869[_0x551cf8(0x1ee)]={'enabled':!![],'max_retries':this[_0x551cf8(0x1d7)]()}),this[_0x551cf8(0x206)]()&&(_0x3ce869['abort_build_on_failure']={'enabled':!![],'max_failures':this[_0x551cf8(0x1da)]()}),_0x3ce869;}}module[a124_0x311ad8(0x1d6)]=OrchestrationUtils;function a124_0xedba(){const _0x4f3eb8=['maxFailures','getBuildStartData','enabled','../logger','rerun_previously_failed','getName','config','runPreviouslyFailedFirst','appendFileSync','name','has','winstonLogger','path','rerunPreviouslyFailed','writeFailureToFile','disable','getInstance','env','bgUPO','799476QmsJRU','skipFlakyAndFailed','isAbortBuildOnFailureEnabled','enable','testOrdering','testOrchestrationOptions','tmpdir','_instance','_setRunPreviouslyFailedFirst','getTestOrderingName','getRunPreviouslyFailedFirst','30940146uhOJQr','BROWSERSTACK_TESTHUB_UUID','failed_tests_','exports','getRetryCount','run_previously_failed_first','3346425abUldC','getFailureThreshold','.txt','isRetryEnabled','12seTwWQ','jest','1447460Bdruzl','retryTestsOnFailure','testOrderingEnabled','existsSync','checkAbortBuildFileExists','_setSkipFlakyAndFailed','8lbGsau','getEnabled','getSkipFlakyAndFailed','_setTestOrdering','17936Pprnio','4251960bDJrYJ','join','toLowerCase','skip_failing_and_flaky','retry_tests_on_failure','1795144pDEPUz','hVcje'];a124_0xedba=function(){return _0x4f3eb8;};return a124_0xedba();}
@@ -1 +1 @@
1
- function a125_0x38d6(_0x265591,_0x11e92f){const _0x554204=a125_0x5542();return a125_0x38d6=function(_0x38d690,_0x58b29a){_0x38d690=_0x38d690-0x89;let _0x5c067b=_0x554204[_0x38d690];return _0x5c067b;},a125_0x38d6(_0x265591,_0x11e92f);}const a125_0x149a2b=a125_0x38d6;(function(_0x1d57a3,_0x11b738){const _0x5950be=a125_0x38d6,_0x2e7d81=_0x1d57a3();while(!![]){try{const _0x4a5b5e=-parseInt(_0x5950be(0xc0))/0x1*(parseInt(_0x5950be(0x98))/0x2)+-parseInt(_0x5950be(0xb2))/0x3+-parseInt(_0x5950be(0xd9))/0x4*(-parseInt(_0x5950be(0xaf))/0x5)+parseInt(_0x5950be(0x94))/0x6+-parseInt(_0x5950be(0xbf))/0x7*(-parseInt(_0x5950be(0xda))/0x8)+parseInt(_0x5950be(0x9a))/0x9+-parseInt(_0x5950be(0x8f))/0xa;if(_0x4a5b5e===_0x11b738)break;else _0x2e7d81['push'](_0x2e7d81['shift']());}catch(_0x224623){_0x2e7d81['push'](_0x2e7d81['shift']());}}}(a125_0x5542,0xd4905));const https=require(a125_0x149a2b(0xc4)),{URL}=require(a125_0x149a2b(0x8a)),logger=require('../logger')[a125_0x149a2b(0xbe)],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require('./constants'),TAG=a125_0x149a2b(0xa7);function a125_0x5542(){const _0x2d660a=[']\x20Error\x20in\x20putFailedTests:\x20','PUT','putFailedTests',',\x20projectName=','getFailedTestsCount','zopsO','qmxtT','exports',']\x20Sending\x20GET\x20to\x20','winstonLogger','982499BERzAo','11399Xkevnv','Authorization','wNlAE','&buildRunIdentifier=','https',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=','request','wKBdE',']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20','XXoqK','ZnbdC','zzcjy','\x20with\x20headers:\x20','GET','stack','getSplitFiles','JpdFY','_request','end','failedTestsCount','XQbtP','HJfpS','blflY','BROWSERSTACK_TESTHUB_JWT','\x20and\x20token:\x20','2648172VRHHIA','56AMuRVS','dSxod','\x20request\x20to\x20','aAnwT','debug','env','url','khsxv','Test\x20added','POST','JThYF','10269690MYxnNB','message','erbdR','vxdpy','write','4718334xsqTKz','rBicz','Bearer\x20','QaqEt','62eetbuk','CNZbF','7860321UlyCTU','dNRkK','\x20and\x20data:\x20','undefined','body','\x20-\x20','FldfZ','headers','stringify','GALoI','application/json','ACYtS','TAtId','RequestUtils',']\x20Sending\x20',',\x20buildRunIdentifier=','Content-Type','parse','pHNbQ',']\x20Error\x20in\x20getFailedTestsCount:\x20','status','10MaCHQE','fShzS','error','5146032vmyaTM',']\x20Request\x20failed\x20for\x20','WMXHq'];a125_0x5542=function(){return _0x2d660a;};return a125_0x5542();}class RequestUtils{static async[a125_0x149a2b(0xd1)](_0x41d8dd,_0xa7e20c,_0x5aad90=null){const _0xb51d01=a125_0x149a2b,_0x1ed2a7={'rBicz':function(_0x3453a3,_0x593531){return _0x3453a3(_0x593531);},'dNRkK':function(_0xc84eb3,_0x2bc8b1){return _0xc84eb3(_0x2bc8b1);},'ZElcP':function(_0xdfc6dc,_0x36642a){return _0xdfc6dc(_0x36642a);},'KxnXa':'data','FldfZ':_0xb51d01(0xd2),'qmxtT':_0xb51d01(0xb1),'pHNbQ':function(_0x565679,_0x19e085){return _0x565679===_0x19e085;},'LsgfU':'POST','HJfpS':_0xb51d01(0xb6),'GALoI':_0xb51d01(0xa4),'TAtId':function(_0x568ed2,_0x512aed){return _0x568ed2+_0x512aed;}},_0xfcc856=process[_0xb51d01(0x89)][_0xb51d01(0xd7)]||'',_0x2c43f5={};_0x2c43f5[_0xb51d01(0xc1)]=_0xb51d01(0x96)+_0xfcc856,_0x2c43f5[_0xb51d01(0xaa)]=_0x1ed2a7[_0xb51d01(0xa3)];const _0x4bb966=_0x2c43f5,{hostname:_0x2c9461,pathname:_0x39e7ff,search:_0x3ce6a5}=new URL(_0xa7e20c),_0x5c5a3d={'hostname':_0x2c9461,'path':_0x1ed2a7[_0xb51d01(0xa6)](_0x39e7ff,_0x3ce6a5),'method':_0x41d8dd,'headers':_0x4bb966};return logger[_0xb51d01(0xde)]('['+TAG+_0xb51d01(0xa8)+_0x41d8dd+_0xb51d01(0xdc)+_0xa7e20c+_0xb51d01(0xcc)+JSON[_0xb51d01(0xa2)](_0x4bb966)+_0xb51d01(0x9c)+JSON['stringify'](_0x5aad90)+_0xb51d01(0xd8)+_0xfcc856),new Promise((_0x292582,_0x4622b5)=>{const _0xa22251=_0xb51d01,_0x7cb0df={'fShzS':function(_0x3e614b,_0x17d93b){const _0x1c1e37=a125_0x38d6;return _0x1ed2a7[_0x1c1e37(0x9b)](_0x3e614b,_0x17d93b);},'blflY':function(_0x26372b,_0x5a170e){return _0x1ed2a7['ZElcP'](_0x26372b,_0x5a170e);},'CNZbF':_0x1ed2a7['KxnXa'],'ZnbdC':_0x1ed2a7[_0xa22251(0xa0)]},_0x15342e=https[_0xa22251(0xc6)](_0x5c5a3d,_0x5e0168=>{const _0x272534=_0xa22251,_0x1bdd4c={'dSxod':function(_0x26aeda,_0x17db04){const _0x25b2b7=a125_0x38d6;return _0x7cb0df[_0x25b2b7(0xb0)](_0x26aeda,_0x17db04);},'zopsO':function(_0x5cd40f,_0x3b31aa){const _0x485fba=a125_0x38d6;return _0x7cb0df[_0x485fba(0xd6)](_0x5cd40f,_0x3b31aa);}};let _0x1078c8='';_0x5e0168['on'](_0x7cb0df[_0x272534(0x99)],_0x41f658=>{_0x1078c8+=_0x41f658;}),_0x5e0168['on'](_0x7cb0df[_0x272534(0xca)],()=>{const _0x1d3c01=_0x272534;try{const _0x27860a=_0x1078c8?JSON[_0x1d3c01(0xab)](_0x1078c8):{},_0x45c7c0={};_0x45c7c0['status']=_0x5e0168['statusCode'],_0x45c7c0[_0x1d3c01(0x9e)]=_0x27860a,_0x45c7c0[_0x1d3c01(0xa1)]=_0x5e0168['headers'],_0x1bdd4c[_0x1d3c01(0xdb)](_0x292582,_0x45c7c0);}catch(_0x3791c2){logger[_0x1d3c01(0xb1)]('['+TAG+']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20'+_0x1078c8+_0x1d3c01(0x9f)+_0x3791c2[_0x1d3c01(0x90)]+'\x20'+_0x3791c2['stack']),_0x1bdd4c[_0x1d3c01(0xba)](_0x4622b5,new Error('Failed\x20to\x20parse\x20JSON\x20response:\x20'+_0x3791c2['message']));}});});_0x15342e['on'](_0x1ed2a7[_0xa22251(0xbb)],_0x234c2e=>{const _0x142a4f=_0xa22251;logger[_0x142a4f(0xb1)]('['+TAG+_0x142a4f(0xb3)+_0x41d8dd+'\x20'+_0xa7e20c+':\x20'+_0x234c2e[_0x142a4f(0x90)]+'\x20'+_0x234c2e[_0x142a4f(0xce)]),_0x1ed2a7[_0x142a4f(0x95)](_0x4622b5,_0x234c2e);}),_0x5aad90&&(_0x1ed2a7[_0xa22251(0xac)](_0x41d8dd,_0x1ed2a7['LsgfU'])||_0x1ed2a7[_0xa22251(0xac)](_0x41d8dd,_0x1ed2a7[_0xa22251(0xd5)]))&&_0x15342e[_0xa22251(0x93)](JSON['stringify'](_0x5aad90)),_0x15342e['end']();});}static async['postSplitFiles'](_0x517260){const _0x57e57a=a125_0x149a2b,_0x1419bc={};_0x1419bc[_0x57e57a(0xc7)]=_0x57e57a(0x8d),_0x1419bc[_0x57e57a(0xa5)]=function(_0x465275,_0x5ec75a){return _0x465275===_0x5ec75a;};const _0x3102e5=_0x1419bc,_0x52539d=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x15293f=await this[_0x57e57a(0xd1)](_0x3102e5[_0x57e57a(0xc7)],_0x52539d,_0x517260);return _0x3102e5[_0x57e57a(0xa5)](_0x15293f[_0x57e57a(0xae)],0xc8)?logger[_0x57e57a(0xde)]('['+TAG+']\x20Successfully\x20posted\x20split\x20files\x20to\x20'+_0x52539d):logger[_0x57e57a(0xb1)]('['+TAG+_0x57e57a(0xc8)+_0x52539d+':\x20'+JSON[_0x57e57a(0xa2)](_0x15293f[_0x57e57a(0x9e)])+',\x20status:\x20'+_0x15293f[_0x57e57a(0xae)]),_0x15293f;}catch(_0x40f0d5){logger[_0x57e57a(0xb1)]('['+TAG+_0x57e57a(0xb5)+_0x40f0d5[_0x57e57a(0x90)]+'\x20'+_0x40f0d5[_0x57e57a(0xce)]);const _0x1504a8={};_0x1504a8[_0x57e57a(0x90)]=_0x40f0d5[_0x57e57a(0x90)];const _0x2a5024={};return _0x2a5024[_0x57e57a(0xae)]=0x1f4,_0x2a5024[_0x57e57a(0x9e)]=_0x1504a8,_0x2a5024;}}static async[a125_0x149a2b(0xcf)](_0x249273){const _0x5291c7=a125_0x149a2b,_0x2cfbfe={};_0x2cfbfe[_0x5291c7(0xcb)]=_0x5291c7(0xcd),_0x2cfbfe[_0x5291c7(0x92)]=function(_0x4f4a22,_0x13399){return _0x4f4a22===_0x13399;};const _0x115c01=_0x2cfbfe;try{const _0x86fc68=await this[_0x5291c7(0xd1)](_0x115c01['zzcjy'],_0x249273);if(_0x115c01[_0x5291c7(0x92)](_0x86fc68['status'],0xc8))return _0x86fc68[_0x5291c7(0x9e)];return{};}catch(_0x188615){return logger[_0x5291c7(0xb1)]('['+TAG+_0x5291c7(0xb5)+_0x188615['message']+'\x20'+_0x188615[_0x5291c7(0xce)]),{};}}static async[a125_0x149a2b(0xb7)](_0x503399){const _0x22c19b=a125_0x149a2b,_0x2401fb={};_0x2401fb[_0x22c19b(0x8e)]='PUT',_0x2401fb[_0x22c19b(0x97)]=function(_0x9c17d1,_0x5772b6){return _0x9c17d1===_0x5772b6;},_0x2401fb['XQbtP']=function(_0x5f5345,_0x2399ea){return _0x5f5345===_0x2399ea;},_0x2401fb[_0x22c19b(0xd0)]=_0x22c19b(0x8c);const _0x543537=_0x2401fb,_0x17fecf=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x1684cd=await this['_request'](_0x543537[_0x22c19b(0x8e)],_0x17fecf,_0x503399);if(_0x543537[_0x22c19b(0x97)](_0x1684cd[_0x22c19b(0xae)],0xc8)&&_0x1684cd[_0x22c19b(0x9e)]&&_0x543537[_0x22c19b(0xd4)](_0x1684cd[_0x22c19b(0x9e)][_0x22c19b(0x90)],_0x543537['JpdFY']))return!![];return![];}catch(_0x4b56ea){logger[_0x22c19b(0xb1)]('['+TAG+']\x20Error\x20in\x20putFailedTests:\x20'+_0x4b56ea[_0x22c19b(0x90)]+'\x20'+_0x4b56ea[_0x22c19b(0xce)]);const _0x16915c={};_0x16915c['message']=_0x4b56ea[_0x22c19b(0x90)];const _0x13ad82={};return _0x13ad82[_0x22c19b(0xae)]=0x1f4,_0x13ad82[_0x22c19b(0x9e)]=_0x16915c,_0x13ad82;}}static async[a125_0x149a2b(0xb9)](_0x6427c5){const _0x431e35=a125_0x149a2b,_0x15a816={'wNlAE':function(_0x1374ec,_0x5a73d4){return _0x1374ec||_0x5a73d4;},'WMXHq':'Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','khsxv':function(_0x488f2c,_0xebe6f6){return _0x488f2c(_0xebe6f6);},'aAnwT':function(_0x198948,_0x52cb4d){return _0x198948(_0x52cb4d);},'yqWtB':'GET','XXoqK':function(_0x2a98c4,_0x28eae5){return _0x2a98c4===_0x28eae5;},'erbdR':function(_0x371841,_0x3c3704){return _0x371841!==_0x3c3704;},'BZXbX':_0x431e35(0x9d)},{buildName:_0x367a68,buildRunIdentifier:_0xdc6a68,projectName:_0x59aa4d}=_0x6427c5;if(_0x15a816[_0x431e35(0xc2)](!_0x367a68,!_0xdc6a68)||!_0x59aa4d){logger['error']('['+TAG+_0x431e35(0xc5)+_0x367a68+_0x431e35(0xa9)+_0xdc6a68+_0x431e35(0xb8)+_0x59aa4d);const _0x133c47={};_0x133c47['message']=_0x15a816[_0x431e35(0xb4)];const _0x40b1e7={};return _0x40b1e7['status']=0x190,_0x40b1e7[_0x431e35(0x9e)]=_0x133c47,_0x40b1e7;}const _0x4a961b='?buildName='+_0x15a816[_0x431e35(0x8b)](encodeURIComponent,_0x367a68)+_0x431e35(0xc3)+_0x15a816['khsxv'](encodeURIComponent,_0xdc6a68)+'&projectName='+_0x15a816['aAnwT'](encodeURIComponent,_0x59aa4d),_0x364ddd=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x4a961b;try{logger[_0x431e35(0xde)]('['+TAG+_0x431e35(0xbd)+_0x364ddd);let _0x2ea265=0x0;const _0x421575=await this[_0x431e35(0xd1)](_0x15a816['yqWtB'],_0x364ddd);return _0x15a816[_0x431e35(0xc9)](_0x421575[_0x431e35(0xae)],0xc8)&&_0x421575['body']&&_0x15a816[_0x431e35(0x91)](typeof _0x421575[_0x431e35(0x9e)][_0x431e35(0xd3)],_0x15a816['BZXbX'])&&(_0x2ea265=_0x15a816[_0x431e35(0xdd)](Number,_0x421575[_0x431e35(0x9e)]['failedTestsCount'])),_0x2ea265;}catch(_0x3bdbaf){logger[_0x431e35(0xb1)]('['+TAG+_0x431e35(0xad)+_0x3bdbaf['message']+'\x20'+_0x3bdbaf[_0x431e35(0xce)]);const _0x50d2f9={};_0x50d2f9['message']=_0x3bdbaf[_0x431e35(0x90)];const _0x1c8be1={};return _0x1c8be1['status']=0x1f4,_0x1c8be1[_0x431e35(0x9e)]=_0x50d2f9,_0x1c8be1;}}}module[a125_0x149a2b(0xbc)]=RequestUtils;
1
+ const a125_0x375822=a125_0x411a;function a125_0x411a(_0x33109a,_0x4429a9){const _0x4f0175=a125_0x4f01();return a125_0x411a=function(_0x411a49,_0x26d818){_0x411a49=_0x411a49-0xea;let _0x384b8a=_0x4f0175[_0x411a49];return _0x384b8a;},a125_0x411a(_0x33109a,_0x4429a9);}(function(_0x123cc8,_0x5b38fb){const _0x1e617c=a125_0x411a,_0x3ef160=_0x123cc8();while(!![]){try{const _0x37a4fb=-parseInt(_0x1e617c(0x128))/0x1*(parseInt(_0x1e617c(0x13b))/0x2)+parseInt(_0x1e617c(0x134))/0x3*(-parseInt(_0x1e617c(0xfd))/0x4)+-parseInt(_0x1e617c(0x125))/0x5*(-parseInt(_0x1e617c(0x13d))/0x6)+parseInt(_0x1e617c(0x11d))/0x7*(-parseInt(_0x1e617c(0x12d))/0x8)+-parseInt(_0x1e617c(0xf5))/0x9+-parseInt(_0x1e617c(0x124))/0xa*(-parseInt(_0x1e617c(0x100))/0xb)+parseInt(_0x1e617c(0x11c))/0xc;if(_0x37a4fb===_0x5b38fb)break;else _0x3ef160['push'](_0x3ef160['shift']());}catch(_0x4b5134){_0x3ef160['push'](_0x3ef160['shift']());}}}(a125_0x4f01,0xa78dc));const https=require(a125_0x375822(0x10f)),{URL}=require(a125_0x375822(0x116)),logger=require(a125_0x375822(0xfe))[a125_0x375822(0x107)],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require('./constants'),TAG=a125_0x375822(0x11a);function a125_0x4f01(){const _0x5530d9=['pdBQK','230ClQgzk','10QujHPN','application/json','Whlqs','1115315glRNCr','\x20-\x20','mbCcX','postSplitFiles','message','2728FKqmoR','undefined','fpaaD','XDIqy','ZrCVE','getFailedTestsCount','status','1010127uWzvtv','POST',']\x20Sending\x20',']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20','?buildName=','ehEIJ','Test\x20added','2KoarMR','Bearer\x20','798654CrktGM','debug','FZxFk','Failed\x20to\x20parse\x20JSON\x20response:\x20','stack','beCCg','FZGUB','Sdcpy','dLOxB','WzFvu','nCiiZ',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=','ygkjB','5449311hujcfn',']\x20Error\x20in\x20putFailedTests:\x20','body','xuEsF','request','RJuyt','zbjTL',',\x20projectName=','4bhwNjr','../logger','&buildRunIdentifier=','441749JlmyIt',']\x20Successfully\x20posted\x20split\x20files\x20to\x20','jxyEX','putFailedTests','kmldu','LJcIr','DTFPj','winstonLogger','dSPvv','\x20and\x20data:\x20','error','end','stringify','exports','&projectName=','https',']\x20Request\x20failed\x20for\x20','TbznW','PUT',',\x20buildRunIdentifier=','\x20and\x20token:\x20','failedTestsCount','url','data',',\x20status:\x20','parse','RequestUtils','RclRY','21503352DgCaXA','4886lCGeDI','aaTlB','headers','GET','env','_request'];a125_0x4f01=function(){return _0x5530d9;};return a125_0x4f01();}class RequestUtils{static async[a125_0x375822(0x122)](_0x5eb4ee,_0x352c69,_0x2273e6=null){const _0x5732df=a125_0x375822,_0x316794={'nCiiZ':function(_0x1a5637,_0x4e0e7e){return _0x1a5637(_0x4e0e7e);},'mbCcX':function(_0x351588,_0x22b92c){return _0x351588(_0x22b92c);},'IzAAz':_0x5732df(0x117),'dSPvv':_0x5732df(0x10b),'DTFPj':_0x5732df(0x10a),'ehEIJ':function(_0x5cc6d7,_0x1f8564){return _0x5cc6d7===_0x1f8564;},'jxyEX':_0x5732df(0x135),'ZrCVE':_0x5732df(0x112),'aaTlB':_0x5732df(0x126),'xerfd':function(_0x30a14d,_0x24d4f7){return _0x30a14d+_0x24d4f7;}},_0x29f44f=process[_0x5732df(0x121)]['BROWSERSTACK_TESTHUB_JWT']||'',_0x1424f2={};_0x1424f2['Authorization']=_0x5732df(0x13c)+_0x29f44f,_0x1424f2['Content-Type']=_0x316794[_0x5732df(0x11e)];const _0x175fe7=_0x1424f2,{hostname:_0x585d14,pathname:_0x29ac69,search:_0x41914f}=new URL(_0x352c69),_0x550176={'hostname':_0x585d14,'path':_0x316794['xerfd'](_0x29ac69,_0x41914f),'method':_0x5eb4ee,'headers':_0x175fe7};return logger[_0x5732df(0x13e)]('['+TAG+_0x5732df(0x136)+_0x5eb4ee+'\x20request\x20to\x20'+_0x352c69+'\x20with\x20headers:\x20'+JSON[_0x5732df(0x10c)](_0x175fe7)+_0x5732df(0x109)+JSON['stringify'](_0x2273e6)+_0x5732df(0x114)+_0x29f44f),new Promise((_0x3cdcd6,_0x3b3058)=>{const _0x597717=_0x5732df,_0x728f5={'RclRY':function(_0x22b6ff,_0xbc5d40){const _0x23ac08=a125_0x411a;return _0x316794[_0x23ac08(0x12a)](_0x22b6ff,_0xbc5d40);},'MDyga':function(_0x24167d,_0x3ee888){const _0x2f883e=a125_0x411a;return _0x316794[_0x2f883e(0x12a)](_0x24167d,_0x3ee888);},'FZxFk':_0x316794['IzAAz'],'zbjTL':_0x316794[_0x597717(0x108)]},_0x128898=https[_0x597717(0xf9)](_0x550176,_0x364b96=>{const _0x497a83=_0x597717;let _0x423eec='';_0x364b96['on'](_0x728f5[_0x497a83(0xea)],_0xc9f270=>{_0x423eec+=_0xc9f270;}),_0x364b96['on'](_0x728f5[_0x497a83(0xfb)],()=>{const _0x316f46=_0x497a83;try{const _0x1f2851=_0x423eec?JSON[_0x316f46(0x119)](_0x423eec):{},_0x6fa5f={};_0x6fa5f[_0x316f46(0x133)]=_0x364b96['statusCode'],_0x6fa5f['body']=_0x1f2851,_0x6fa5f[_0x316f46(0x11f)]=_0x364b96[_0x316f46(0x11f)],_0x728f5[_0x316f46(0x11b)](_0x3cdcd6,_0x6fa5f);}catch(_0xf92f0){logger[_0x316f46(0x10a)]('['+TAG+_0x316f46(0x137)+_0x423eec+_0x316f46(0x129)+_0xf92f0[_0x316f46(0x12c)]+'\x20'+_0xf92f0['stack']),_0x728f5['MDyga'](_0x3b3058,new Error(_0x316f46(0xeb)+_0xf92f0[_0x316f46(0x12c)]));}});});_0x128898['on'](_0x316794[_0x597717(0x106)],_0x1ddae8=>{const _0x5b75c6=_0x597717;logger['error']('['+TAG+_0x5b75c6(0x110)+_0x5eb4ee+'\x20'+_0x352c69+':\x20'+_0x1ddae8[_0x5b75c6(0x12c)]+'\x20'+_0x1ddae8['stack']),_0x316794[_0x5b75c6(0xf2)](_0x3b3058,_0x1ddae8);}),_0x2273e6&&(_0x316794[_0x597717(0x139)](_0x5eb4ee,_0x316794[_0x597717(0x102)])||_0x316794[_0x597717(0x139)](_0x5eb4ee,_0x316794[_0x597717(0x131)]))&&_0x128898['write'](JSON['stringify'](_0x2273e6)),_0x128898[_0x597717(0x10b)]();});}static async[a125_0x375822(0x12b)](_0x47b6ae){const _0x56b6bc=a125_0x375822,_0x41a5c7={};_0x41a5c7[_0x56b6bc(0x127)]='POST',_0x41a5c7['Sdcpy']=function(_0xf2ddc1,_0x462055){return _0xf2ddc1===_0x462055;};const _0x1ce0b7=_0x41a5c7,_0x36e21e=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x520dad=await this[_0x56b6bc(0x122)](_0x1ce0b7['Whlqs'],_0x36e21e,_0x47b6ae);return _0x1ce0b7[_0x56b6bc(0xef)](_0x520dad[_0x56b6bc(0x133)],0xc8)?logger[_0x56b6bc(0x13e)]('['+TAG+_0x56b6bc(0x101)+_0x36e21e):logger[_0x56b6bc(0x10a)]('['+TAG+']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20'+_0x36e21e+':\x20'+JSON[_0x56b6bc(0x10c)](_0x520dad[_0x56b6bc(0xf7)])+_0x56b6bc(0x118)+_0x520dad[_0x56b6bc(0x133)]),_0x520dad;}catch(_0x1b0f81){logger[_0x56b6bc(0x10a)]('['+TAG+_0x56b6bc(0xf6)+_0x1b0f81[_0x56b6bc(0x12c)]+'\x20'+_0x1b0f81[_0x56b6bc(0xec)]);const _0xdb431e={};_0xdb431e[_0x56b6bc(0x12c)]=_0x1b0f81[_0x56b6bc(0x12c)];const _0x2fb1a8={};return _0x2fb1a8[_0x56b6bc(0x133)]=0x1f4,_0x2fb1a8[_0x56b6bc(0xf7)]=_0xdb431e,_0x2fb1a8;}}static async['getSplitFiles'](_0x199c90){const _0x212c89=a125_0x375822,_0x206944={};_0x206944[_0x212c89(0x130)]=_0x212c89(0x120),_0x206944[_0x212c89(0xee)]=function(_0xf3e451,_0x24f0aa){return _0xf3e451===_0x24f0aa;};const _0x38e149=_0x206944;try{const _0x53494c=await this['_request'](_0x38e149[_0x212c89(0x130)],_0x199c90);if(_0x38e149[_0x212c89(0xee)](_0x53494c['status'],0xc8))return _0x53494c[_0x212c89(0xf7)];return{};}catch(_0x3f8ce5){return logger[_0x212c89(0x10a)]('['+TAG+_0x212c89(0xf6)+_0x3f8ce5[_0x212c89(0x12c)]+'\x20'+_0x3f8ce5[_0x212c89(0xec)]),{};}}static async[a125_0x375822(0x103)](_0xc87e3a){const _0x1012d5=a125_0x375822,_0x54044f={};_0x54044f['TbznW']=_0x1012d5(0x112),_0x54044f['WzFvu']=function(_0x2e7cb1,_0x277bf7){return _0x2e7cb1===_0x277bf7;},_0x54044f[_0x1012d5(0x123)]=function(_0x3be097,_0x2edfa6){return _0x3be097===_0x2edfa6;},_0x54044f[_0x1012d5(0xed)]=_0x1012d5(0x13a);const _0x246c21=_0x54044f,_0x91cd6c=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x2bb5ee=await this['_request'](_0x246c21[_0x1012d5(0x111)],_0x91cd6c,_0xc87e3a);if(_0x246c21[_0x1012d5(0xf1)](_0x2bb5ee[_0x1012d5(0x133)],0xc8)&&_0x2bb5ee['body']&&_0x246c21[_0x1012d5(0x123)](_0x2bb5ee[_0x1012d5(0xf7)][_0x1012d5(0x12c)],_0x246c21[_0x1012d5(0xed)]))return!![];return![];}catch(_0xb7b62c){logger[_0x1012d5(0x10a)]('['+TAG+_0x1012d5(0xf6)+_0xb7b62c[_0x1012d5(0x12c)]+'\x20'+_0xb7b62c[_0x1012d5(0xec)]);const _0x813f8d={};_0x813f8d[_0x1012d5(0x12c)]=_0xb7b62c[_0x1012d5(0x12c)];const _0x188fd={};return _0x188fd[_0x1012d5(0x133)]=0x1f4,_0x188fd[_0x1012d5(0xf7)]=_0x813f8d,_0x188fd;}}static async[a125_0x375822(0x132)](_0x12dfc9){const _0x412092=a125_0x375822,_0x434e1e={'ygkjB':function(_0x5392dd,_0x950187){return _0x5392dd||_0x950187;},'sCkBD':'Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','LJcIr':function(_0x17254f,_0x5bf5a1){return _0x17254f(_0x5bf5a1);},'xuEsF':function(_0xe22ce,_0x2879b9){return _0xe22ce(_0x2879b9);},'dLOxB':_0x412092(0x120),'RJuyt':function(_0x51f0b3,_0x4133da){return _0x51f0b3===_0x4133da;},'kmldu':function(_0x1b662a,_0x17a28c){return _0x1b662a!==_0x17a28c;},'fpaaD':_0x412092(0x12e)},{buildName:_0x67303a,buildRunIdentifier:_0x519812,projectName:_0x2e0671}=_0x12dfc9;if(_0x434e1e[_0x412092(0xf4)](!_0x67303a,!_0x519812)||!_0x2e0671){logger[_0x412092(0x10a)]('['+TAG+_0x412092(0xf3)+_0x67303a+_0x412092(0x113)+_0x519812+_0x412092(0xfc)+_0x2e0671);const _0x4ff0fe={};_0x4ff0fe['message']=_0x434e1e['sCkBD'];const _0x4cce89={};return _0x4cce89[_0x412092(0x133)]=0x190,_0x4cce89[_0x412092(0xf7)]=_0x4ff0fe,_0x4cce89;}const _0xcc5e47=_0x412092(0x138)+_0x434e1e[_0x412092(0x105)](encodeURIComponent,_0x67303a)+_0x412092(0xff)+_0x434e1e[_0x412092(0xf8)](encodeURIComponent,_0x519812)+_0x412092(0x10e)+_0x434e1e[_0x412092(0xf8)](encodeURIComponent,_0x2e0671),_0x3cfd72=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0xcc5e47;try{logger['debug']('['+TAG+']\x20Sending\x20GET\x20to\x20'+_0x3cfd72);let _0x3baa38=0x0;const _0x5e3c18=await this['_request'](_0x434e1e[_0x412092(0xf0)],_0x3cfd72);return _0x434e1e[_0x412092(0xfa)](_0x5e3c18[_0x412092(0x133)],0xc8)&&_0x5e3c18['body']&&_0x434e1e[_0x412092(0x104)](typeof _0x5e3c18[_0x412092(0xf7)][_0x412092(0x115)],_0x434e1e[_0x412092(0x12f)])&&(_0x3baa38=_0x434e1e[_0x412092(0xf8)](Number,_0x5e3c18[_0x412092(0xf7)][_0x412092(0x115)])),_0x3baa38;}catch(_0x48d1ff){logger['error']('['+TAG+']\x20Error\x20in\x20getFailedTestsCount:\x20'+_0x48d1ff[_0x412092(0x12c)]+'\x20'+_0x48d1ff[_0x412092(0xec)]);const _0x39adba={};_0x39adba[_0x412092(0x12c)]=_0x48d1ff[_0x412092(0x12c)];const _0x358008={};return _0x358008[_0x412092(0x133)]=0x1f4,_0x358008[_0x412092(0xf7)]=_0x39adba,_0x358008;}}}module[a125_0x375822(0x10d)]=RequestUtils;
@@ -1 +1 @@
1
- function a126_0x3886(_0x9693a0,_0x55526a){const _0x8861c=a126_0x8861();return a126_0x3886=function(_0x388643,_0x2c3d5a){_0x388643=_0x388643-0x12a;let _0x2998be=_0x8861c[_0x388643];return _0x2998be;},a126_0x3886(_0x9693a0,_0x55526a);}const a126_0x39116a=a126_0x3886;(function(_0x380bbc,_0x643278){const _0x319433=a126_0x3886,_0x3f9740=_0x380bbc();while(!![]){try{const _0x42aeb0=parseInt(_0x319433(0x163))/0x1+-parseInt(_0x319433(0x143))/0x2*(-parseInt(_0x319433(0x190))/0x3)+-parseInt(_0x319433(0x17c))/0x4*(parseInt(_0x319433(0x14b))/0x5)+-parseInt(_0x319433(0x172))/0x6*(-parseInt(_0x319433(0x17b))/0x7)+-parseInt(_0x319433(0x137))/0x8*(-parseInt(_0x319433(0x12d))/0x9)+parseInt(_0x319433(0x17d))/0xa+-parseInt(_0x319433(0x18a))/0xb*(parseInt(_0x319433(0x132))/0xc);if(_0x42aeb0===_0x643278)break;else _0x3f9740['push'](_0x3f9740['shift']());}catch(_0x511eb6){_0x3f9740['push'](_0x3f9740['shift']());}}}(a126_0x8861,0x71a57));const logger=require(a126_0x39116a(0x175))['winstonLogger'],{isUndefined,isNotUndefined,isTrueString,sanitizedFilePath}=require(a126_0x39116a(0x195)),TestOrderingServerHandler=require(a126_0x39116a(0x13d)),OrchestrationUtils=require(a126_0x39116a(0x151)),path=require('path'),{spawnSync}=require(a126_0x39116a(0x150)),micromatch=require('micromatch'),fs=require('fs');function a126_0x8861(){const _0x2b4466=['_shouldLogTestOrderingChecks','677139ynzASe','debug','biOUC','length','NPqFr','splitTestsAPICallCount','SFrON','JHxdE','RgWpY','jest-runner','gxnWG','**/?(*.)+(spec|test).[jt]s?(x)','glob','yjjKF','DHZjV','11100AzHMyN','GCGWz','CGWPp','../logger','totalNodes','jest-util','split','findTestFiles','Gosgm','2170dvcNJm','472xBQsKj','5168980tMsQxW','lwxpH','QmReF','cbzxy','vJYad','BROWSERSTACK_NODE_INDEX','nodeIndex','ApbMu','getOrderedTestFiles','testPathIgnorePatterns','config','testMatch','testOrderingEnabled','4037SeRZCv','testOrderingApplied','ActzO','setTestOrderingApplied','downloadedTestFilesCount','qGSuL','3UHCAoj','relative','stdout','getTestOrderingName','pmCOE','../helper','TDBTz','jest','applied','mTLWq','171siCImA','isArray','\x20files','KtIxN','logTestOrderingChecks','97044XKaPWf','isTestOrderingApplied','--listTests','isTestOrchestrationEnabled','ignore','376136hLvJQL','Found\x20test\x20files:\x20','--config','BROWSERSTACK_TOTAL_NODE_COUNT','error','GWlZd','./testOrderingServerHandler','Ysksd','projectName','kaPdd','[orchestrate]\x20Setting\x20buildIdentifier\x20to\x20buildRunIdentifier:\x20','testOrderingServerHandler','1762012XEaUyW','map','Test\x20orchestration\x20without\x20test\x20ordering','**/__tests__/**/*.[jt]s?(x)','toString','5|2|1|4|3|0','stringify','yDUBL','4595EtvsvO','Test\x20orchestration\x20with\x20test\x20ordering\x20enabled','gCgko','splitTests','EmwGM','child_process','./orchestrationUtils','cNHai','filter','eJTER','MdcEm','info','NjleT','BROWSERSTACK_BUILD_RUN_IDENTIFIER','[reorderTestFiles]\x20Test\x20ordering\x20is\x20not\x20supported\x20or\x20enabled','sLfWl','addToOrderingInstrumentationData','_initializeTestOrdering','orderingInstrumentationData','testObservability','orchestrationUtils','env','uploadedTestFilesCount'];a126_0x8861=function(){return _0x2b4466;};return a126_0x8861();}class TestOrchestrationHandler{constructor(_0x24c2d5){const _0x373473=a126_0x39116a,_0x11794c={};_0x11794c[_0x373473(0x15a)]=_0x373473(0x148);const _0xd6597c=_0x11794c,_0x389e76=_0xd6597c['sLfWl'][_0x373473(0x178)]('|');let _0x45ad2e=0x0;while(!![]){switch(_0x389e76[_0x45ad2e++]){case'0':this[_0x373473(0x15c)]();continue;case'1':this[_0x373473(0x18b)]=![];continue;case'2':this['orderingInstrumentationData']={};continue;case'3':this['orchestrationUtils']=new OrchestrationUtils(_0x24c2d5);continue;case'4':this[_0x373473(0x142)]=null;continue;case'5':this[_0x373473(0x187)]=_0x24c2d5;continue;}break;}}[a126_0x39116a(0x135)](){const _0x4c9d91=a126_0x39116a,_0x39b6ed={'kaPdd':function(_0x140c40,_0x14b5b6){return _0x140c40(_0x14b5b6);},'RgWpY':function(_0x38c3ec,_0x4c41b4){return _0x38c3ec(_0x4c41b4);},'cvYZH':function(_0x33d702,_0x5e8a44){return _0x33d702(_0x5e8a44);},'GCGWz':function(_0x202cd0,_0x221501){return _0x202cd0(_0x221501);},'Ysksd':function(_0x261ac4,_0x5903b0){return _0x261ac4&&_0x5903b0;}},_0x4ca2ce=_0x39b6ed[_0x4c9d91(0x140)](isNotUndefined,this[_0x4c9d91(0x187)])&&(_0x39b6ed[_0x4c9d91(0x140)](isUndefined,this['config'][_0x4c9d91(0x15e)])||_0x39b6ed[_0x4c9d91(0x16b)](isTrueString,this[_0x4c9d91(0x187)][_0x4c9d91(0x15e)])),_0x1ba918=this[_0x4c9d91(0x15f)][_0x4c9d91(0x189)](),_0x6bd831=_0x39b6ed[_0x4c9d91(0x140)](isNotUndefined,this[_0x4c9d91(0x187)])&&_0x39b6ed['cvYZH'](isNotUndefined,this[_0x4c9d91(0x187)]['projectName']),_0x26b267=_0x39b6ed[_0x4c9d91(0x173)](isNotUndefined,this[_0x4c9d91(0x187)])&&_0x39b6ed[_0x4c9d91(0x173)](isNotUndefined,this['config']['buildName']);return _0x39b6ed[_0x4c9d91(0x13e)](_0x4ca2ce,_0x1ba918)&&_0x6bd831&&_0x26b267;}[a126_0x39116a(0x15c)](){const _0x28d57d=a126_0x39116a,_0x53a10e={};_0x53a10e[_0x28d57d(0x12c)]=_0x28d57d(0x14c),_0x53a10e[_0x28d57d(0x181)]=_0x28d57d(0x145);const _0x4ac1c3=_0x53a10e;this[_0x28d57d(0x135)]()?(this[_0x28d57d(0x142)]=new TestOrderingServerHandler(this[_0x28d57d(0x187)]),logger[_0x28d57d(0x156)](_0x4ac1c3[_0x28d57d(0x12c)])):(logger[_0x28d57d(0x164)](_0x4ac1c3[_0x28d57d(0x181)]),this[_0x28d57d(0x131)]());}[a126_0x39116a(0x131)](){const _0x5348a2=a126_0x39116a,_0x15357c={'cNHai':function(_0x456314,_0x4651b7){return _0x456314(_0x4651b7);},'GWlZd':function(_0x16c5ab,_0x46b647){return _0x16c5ab(_0x46b647);},'Gosgm':'Test\x20Reordering\x20is\x20unavailable\x20because\x20buildName\x20or\x20projectName\x20is\x20null.\x20Please\x20set\x20a\x20non-null\x20value.','lwxpH':function(_0x5ec61f,_0x404ce2){return _0x5ec61f(_0x404ce2);},'TDBTz':function(_0x4e34f1,_0x246765){return _0x4e34f1(_0x246765);},'HIWLi':'Test\x20Reordering\x20is\x20unavailable\x20because\x20testReporting\x20is\x20disabled.\x20Please\x20enable\x20it\x20from\x20browserstack.yml\x20file.'};if(!this[_0x5348a2(0x162)]())return;(!_0x15357c[_0x5348a2(0x152)](isNotUndefined,this[_0x5348a2(0x187)])||!_0x15357c[_0x5348a2(0x152)](isNotUndefined,this['config']['buildName'])||!_0x15357c[_0x5348a2(0x13c)](isNotUndefined,this['config'][_0x5348a2(0x13f)]))&&logger['info'](_0x15357c[_0x5348a2(0x17a)]),_0x15357c[_0x5348a2(0x17e)](isNotUndefined,this['config'])&&_0x15357c[_0x5348a2(0x196)](isNotUndefined,this[_0x5348a2(0x187)]['testObservability'])&&!_0x15357c[_0x5348a2(0x13c)](isTrueString,this[_0x5348a2(0x187)][_0x5348a2(0x15e)])&&logger[_0x5348a2(0x156)](_0x15357c['HIWLi']);}[a126_0x39116a(0x162)](){const _0x4c59f0=a126_0x39116a;return!this['isTestOrchestrationEnabled']()&&this[_0x4c59f0(0x15f)][_0x4c59f0(0x189)]();}[a126_0x39116a(0x133)](){return this['testOrderingApplied'];}[a126_0x39116a(0x18d)](_0x5a9e74){const _0x324828=a126_0x39116a,_0x3a7b86={};_0x3a7b86[_0x324828(0x130)]=_0x324828(0x12b);const _0x1a42de=_0x3a7b86;this['testOrderingApplied']=_0x5a9e74,this[_0x324828(0x15b)](_0x1a42de['KtIxN'],_0x5a9e74);}[a126_0x39116a(0x15b)](_0x453888,_0x380d7c){const _0x3580d5=a126_0x39116a;this[_0x3580d5(0x15d)][_0x453888]=_0x380d7c;}['getOrderingInstrumentationData'](){const _0x5d7963=a126_0x39116a;return this[_0x5d7963(0x15d)];}['updateBuildIdentifier'](){const _0x5af72a=a126_0x39116a,_0x4c5350={'gCgko':function(_0x18ff7d,_0x2f03dd){return _0x18ff7d(_0x2f03dd);},'SFrON':function(_0x2207b3,_0x42625f){return _0x2207b3>_0x42625f;}},_0x526faf=_0x4c5350[_0x5af72a(0x14d)](parseInt,process[_0x5af72a(0x160)]['BROWSERSTACK_TOTAL_NODE_COUNT']||'1'),_0x38099f=process[_0x5af72a(0x160)][_0x5af72a(0x158)];_0x38099f&&_0x4c5350[_0x5af72a(0x169)](_0x526faf,0x1)&&(logger['debug'](_0x5af72a(0x141)+_0x38099f),this[_0x5af72a(0x187)]['buildIdentifier']=_0x38099f);}async['reorderTestFiles'](_0x4669c3){const _0x372fc1=a126_0x39116a,_0x4d2f2f={'gxnWG':function(_0x3a59c2,_0x169e8c){return _0x3a59c2===_0x169e8c;},'biOUC':function(_0x3a7edd,_0x2e1909){return _0x3a7edd===_0x2e1909;},'cbzxy':_0x372fc1(0x159),'XvEuw':function(_0x7b952d,_0x118297){return _0x7b952d===_0x118297;},'QmReF':function(_0x4c7ce9,_0x27df84){return _0x4c7ce9(_0x27df84);},'NPqFr':_0x372fc1(0x161),'YIMDu':_0x372fc1(0x183),'FbPky':_0x372fc1(0x176),'EmwGM':_0x372fc1(0x18e),'MdcEm':_0x372fc1(0x168)};try{if(!_0x4669c3||!Array[_0x372fc1(0x12e)](_0x4669c3)||_0x4d2f2f[_0x372fc1(0x16d)](_0x4669c3[_0x372fc1(0x166)],0x0))return null;if(_0x4d2f2f[_0x372fc1(0x165)](this[_0x372fc1(0x135)](),![]))return logger['debug'](_0x4d2f2f[_0x372fc1(0x180)]),null;let _0x53a4a4=null;const _0x30e8ab=this[_0x372fc1(0x15f)][_0x372fc1(0x193)]();if(this['testOrderingServerHandler']){const _0x46112d=await this['testOrderingServerHandler'][_0x372fc1(0x14e)](_0x4669c3,_0x30e8ab);if(!_0x46112d)return null;_0x53a4a4=await this['testOrderingServerHandler'][_0x372fc1(0x185)](_0x46112d);}if(!_0x53a4a4||!Array['isArray'](_0x53a4a4)||_0x4d2f2f['XvEuw'](_0x53a4a4[_0x372fc1(0x166)],0x0))return null;const _0x13bb71=_0x4d2f2f[_0x372fc1(0x17f)](parseInt,process['env'][_0x372fc1(0x182)]||'0'),_0x5144d3=_0x4d2f2f[_0x372fc1(0x17f)](parseInt,process['env'][_0x372fc1(0x13a)]||'1');return this[_0x372fc1(0x15b)](_0x4d2f2f[_0x372fc1(0x167)],_0x4669c3['length']),this[_0x372fc1(0x15b)](_0x4d2f2f['YIMDu'],_0x13bb71),this['addToOrderingInstrumentationData'](_0x4d2f2f['FbPky'],_0x5144d3),this['addToOrderingInstrumentationData'](_0x4d2f2f[_0x372fc1(0x14f)],_0x53a4a4['length']),this['addToOrderingInstrumentationData'](_0x4d2f2f[_0x372fc1(0x155)],this[_0x372fc1(0x142)]?this[_0x372fc1(0x142)]['getSplitTestsAPICallCount']():0x0),_0x53a4a4[_0x372fc1(0x144)](_0x5b2a65=>sanitizedFilePath(_0x5b2a65));}catch(_0x508f81){return logger[_0x372fc1(0x164)]('[reorderTestFiles]\x20Error\x20in\x20ordering\x20test\x20files:\x20'+(_0x508f81['stack']||_0x508f81[_0x372fc1(0x147)]())),null;}}async[a126_0x39116a(0x179)](_0x4b3a7c,_0x337560,_0xca2052){const _0xd81ce6=a126_0x39116a,_0x4048c4={'yjjKF':function(_0x2a4493,_0x434370){return _0x2a4493(_0x434370);},'DHZjV':'jest-config','pmCOE':function(_0x234e71,_0x1a7fee){return _0x234e71(_0x1a7fee);},'yDUBL':_0xd81ce6(0x177),'JHxdE':function(_0x22beda,_0x15e269){return _0x22beda(_0x15e269);},'CGWPp':_0xd81ce6(0x16c),'jMPtl':_0xd81ce6(0x16f),'egkWi':_0xd81ce6(0x146),'NjleT':_0xd81ce6(0x16e),'eJTER':function(_0x54ddff,_0x32fbd1,_0x303342,_0x242da6){return _0x54ddff(_0x32fbd1,_0x303342,_0x242da6);},'LpwxA':'npx','YTWQt':_0xd81ce6(0x12a),'qGSuL':_0xd81ce6(0x139),'ApbMu':_0xd81ce6(0x134),'ActzO':'utf-8'};try{const {getTestPathPatterns:_0x331961}=_0x4048c4[_0xd81ce6(0x170)](require,_0x4048c4[_0xd81ce6(0x171)]),{globsToMatcher:_0x1a374c}=_0x4048c4[_0xd81ce6(0x194)](require,_0x4048c4[_0xd81ce6(0x14a)]),{findRelatedTests:_0x513feb}=_0x4048c4[_0xd81ce6(0x16a)](require,_0x4048c4[_0xd81ce6(0x174)]),_0x4af788=_0x4048c4[_0xd81ce6(0x194)](require,_0x4048c4['jMPtl']),_0x8dce27=_0x4b3a7c[_0xd81ce6(0x188)]||[_0x4048c4['egkWi'],_0x4048c4[_0xd81ce6(0x157)]],_0x5cad38=_0x4b3a7c[_0xd81ce6(0x186)]||[],_0x1839bd=_0x4048c4[_0xd81ce6(0x154)](spawnSync,_0x4048c4['LpwxA'],[_0x4048c4['YTWQt'],_0x4048c4[_0xd81ce6(0x18f)],_0xca2052,..._0x337560,_0x4048c4[_0xd81ce6(0x184)]],{'encoding':_0x4048c4[_0xd81ce6(0x18c)]});let _0x2192b4=[];!_0x1839bd[_0xd81ce6(0x13b)]&&(_0x2192b4=_0x1839bd[_0xd81ce6(0x192)][_0xd81ce6(0x178)]('\x0a')[_0xd81ce6(0x153)](Boolean));logger[_0xd81ce6(0x164)](_0xd81ce6(0x138)+JSON['stringify'](_0x2192b4)+'\x20files');const _0x470e54={};_0x470e54['matchBase']=!![],_0x470e54[_0xd81ce6(0x136)]=_0x5cad38;const _0x357eae=_0x4048c4['eJTER'](micromatch,_0x2192b4,_0x8dce27,_0x470e54)[_0xd81ce6(0x144)](_0x5afe11=>path[_0xd81ce6(0x191)](_0x4b3a7c['rootDir'],_0x5afe11));return logger['debug']('Filterted\x20to\x20test\x20files:\x20'+JSON[_0xd81ce6(0x149)](_0x357eae)+_0xd81ce6(0x12f)),_0x357eae;}catch(_0x4bd93f){return logger[_0xd81ce6(0x164)]('Error\x20finding\x20test\x20files:\x20'+_0x4bd93f),[];}}}module['exports']=TestOrchestrationHandler;
1
+ function a126_0x27c2(){const _0x1c124c=['DaSXo','rDfgd','downloadedTestFilesCount','3808992xgTHij','ZlBNZ','orderingInstrumentationData','isTestOrchestrationEnabled','MkLey','MQUbf','hpqGM','637224eAdhha','exports','rJoQD','13YQUHcc','jest-util','MBHqA','testPathIgnorePatterns','getSplitTestsAPICallCount','jest','_shouldLogTestOrderingChecks','stringify','rjofT','glob','buildName','micromatch','_initializeTestOrdering','wJeIw','splitTests','[reorderTestFiles]\x20Test\x20ordering\x20is\x20not\x20supported\x20or\x20enabled','testOrderingEnabled','gSwed','\x20files','getOrderingInstrumentationData','yWWfb','getTestOrderingName','YTMli','addToOrderingInstrumentationData','env','npx','gPVuJ','cVvqL','config','sdvGp','debug','Found\x20test\x20files:\x20','**/__tests__/**/*.[jt]s?(x)','3|2|1|0|5|4','BROWSERSTACK_BUILD_RUN_IDENTIFIER','testOrderingApplied','166623fIAsDi','applied','835555juYvro','../helper','split','[orchestrate]\x20Setting\x20buildIdentifier\x20to\x20buildRunIdentifier:\x20','winstonLogger','BROWSERSTACK_TOTAL_NODE_COUNT','VmqLE','../logger','--config','length','ignore','orchestrationUtils','getOrderedTestFiles','Test\x20orchestration\x20without\x20test\x20ordering','Test\x20Reordering\x20is\x20unavailable\x20because\x20testReporting\x20is\x20disabled.\x20Please\x20enable\x20it\x20from\x20browserstack.yml\x20file.','YKlad','451FSDbyh','Test\x20Reordering\x20is\x20unavailable\x20because\x20buildName\x20or\x20projectName\x20is\x20null.\x20Please\x20set\x20a\x20non-null\x20value.','stack','filter','splitTestsAPICallCount','matchBase','jpBov','logTestOrderingChecks','nodeIndex','153190OBjZXe','JDgWI','testOrderingServerHandler','stdout','swIrv','testMatch','**/?(*.)+(spec|test).[jt]s?(x)','AMINq','utf-8','jest-runner','SNdHJ','FDpgj','isArray','4kjruWy','error','path','info','4KDQMML','4968qeYIJo','MBTLs','Error\x20finding\x20test\x20files:\x20','6543pkgIoR','[reorderTestFiles]\x20Error\x20in\x20ordering\x20test\x20files:\x20','15426204BIJivw','child_process','./orchestrationUtils','testObservability','DAztE','7FmucmJ','uQWrH','rootDir','hSugw','KrJKL','YrxQc','Test\x20orchestration\x20with\x20test\x20ordering\x20enabled','projectName','map','BROWSERSTACK_NODE_INDEX'];a126_0x27c2=function(){return _0x1c124c;};return a126_0x27c2();}const a126_0x104078=a126_0x339e;(function(_0xb23fa2,_0x25d0b9){const _0x25cceb=a126_0x339e,_0x2e9bc5=_0xb23fa2();while(!![]){try{const _0x2ae5ce=-parseInt(_0x25cceb(0x226))/0x1*(parseInt(_0x25cceb(0x1dc))/0x2)+parseInt(_0x25cceb(0x1ff))/0x3*(-parseInt(_0x25cceb(0x1e0))/0x4)+parseInt(_0x25cceb(0x228))/0x5+-parseInt(_0x25cceb(0x1f8))/0x6*(parseInt(_0x25cceb(0x1eb))/0x7)+parseInt(_0x25cceb(0x1e1))/0x8*(-parseInt(_0x25cceb(0x1e4))/0x9)+-parseInt(_0x25cceb(0x241))/0xa*(-parseInt(_0x25cceb(0x238))/0xb)+-parseInt(_0x25cceb(0x1e6))/0xc*(-parseInt(_0x25cceb(0x202))/0xd);if(_0x2ae5ce===_0x25d0b9)break;else _0x2e9bc5['push'](_0x2e9bc5['shift']());}catch(_0x3d6a56){_0x2e9bc5['push'](_0x2e9bc5['shift']());}}}(a126_0x27c2,0x6d8f2));const logger=require(a126_0x104078(0x22f))[a126_0x104078(0x22c)],{isUndefined,isNotUndefined,isTrueString,sanitizedFilePath}=require(a126_0x104078(0x229)),TestOrderingServerHandler=require('./testOrderingServerHandler'),OrchestrationUtils=require(a126_0x104078(0x1e8)),path=require(a126_0x104078(0x1de)),{spawnSync}=require(a126_0x104078(0x1e7)),micromatch=require(a126_0x104078(0x20d)),fs=require('fs');function a126_0x339e(_0x108a94,_0x3a48c0){const _0x27c227=a126_0x27c2();return a126_0x339e=function(_0x339e76,_0x126886){_0x339e76=_0x339e76-0x1da;let _0xbdaefe=_0x27c227[_0x339e76];return _0xbdaefe;},a126_0x339e(_0x108a94,_0x3a48c0);}class TestOrchestrationHandler{constructor(_0x2422dd){const _0x474d7b=a126_0x104078,_0x150436={};_0x150436['uQWrH']=_0x474d7b(0x223);const _0x543350=_0x150436,_0x17ea9c=_0x543350[_0x474d7b(0x1ec)][_0x474d7b(0x22a)]('|');let _0x2e115b=0x0;while(!![]){switch(_0x17ea9c[_0x2e115b++]){case'0':this[_0x474d7b(0x243)]=null;continue;case'1':this[_0x474d7b(0x225)]=![];continue;case'2':this[_0x474d7b(0x1fa)]={};continue;case'3':this[_0x474d7b(0x21e)]=_0x2422dd;continue;case'4':this[_0x474d7b(0x20e)]();continue;case'5':this['orchestrationUtils']=new OrchestrationUtils(_0x2422dd);continue;}break;}}[a126_0x104078(0x1fb)](){const _0x2f15d0=a126_0x104078,_0x4f67f9={'hpqGM':function(_0x293300,_0x1d38c6){return _0x293300(_0x1d38c6);},'YTMli':function(_0x32064e,_0x157eeb){return _0x32064e(_0x157eeb);},'ZlBNZ':function(_0x4e889c,_0x49f562){return _0x4e889c(_0x49f562);},'yWWfb':function(_0x382d4c,_0x573bbc){return _0x382d4c&&_0x573bbc;}},_0x10a510=_0x4f67f9[_0x2f15d0(0x1fe)](isNotUndefined,this[_0x2f15d0(0x21e)])&&(_0x4f67f9[_0x2f15d0(0x1fe)](isUndefined,this['config']['testObservability'])||_0x4f67f9[_0x2f15d0(0x1fe)](isTrueString,this[_0x2f15d0(0x21e)]['testObservability'])),_0x379ce7=this[_0x2f15d0(0x233)]['testOrderingEnabled'](),_0x59fbf6=_0x4f67f9[_0x2f15d0(0x218)](isNotUndefined,this[_0x2f15d0(0x21e)])&&_0x4f67f9[_0x2f15d0(0x1f9)](isNotUndefined,this[_0x2f15d0(0x21e)][_0x2f15d0(0x1f2)]),_0x40083c=_0x4f67f9['YTMli'](isNotUndefined,this['config'])&&_0x4f67f9[_0x2f15d0(0x1fe)](isNotUndefined,this[_0x2f15d0(0x21e)][_0x2f15d0(0x20c)]);return _0x4f67f9[_0x2f15d0(0x216)](_0x10a510,_0x379ce7)&&_0x59fbf6&&_0x40083c;}['_initializeTestOrdering'](){const _0x44774e=a126_0x104078,_0x276ffc={};_0x276ffc[_0x44774e(0x1fc)]=_0x44774e(0x1f1),_0x276ffc[_0x44774e(0x204)]=_0x44774e(0x235);const _0xc441d1=_0x276ffc;this[_0x44774e(0x1fb)]()?(this[_0x44774e(0x243)]=new TestOrderingServerHandler(this[_0x44774e(0x21e)]),logger[_0x44774e(0x1df)](_0xc441d1[_0x44774e(0x1fc)])):(logger[_0x44774e(0x220)](_0xc441d1[_0x44774e(0x204)]),this['logTestOrderingChecks']());}[a126_0x104078(0x23f)](){const _0x3588fe=a126_0x104078,_0x26713c={'FDkqD':function(_0x373466,_0x393c71){return _0x373466(_0x393c71);},'TJKfO':function(_0x30a8ea,_0x2e2cc4){return _0x30a8ea(_0x2e2cc4);},'MBTLs':function(_0x5d8091,_0x27d1c8){return _0x5d8091(_0x27d1c8);},'yTNsb':_0x3588fe(0x239),'ByrTy':function(_0x190633,_0x1ad2fd){return _0x190633(_0x1ad2fd);},'FDpgj':function(_0x359691,_0x1ea381){return _0x359691(_0x1ea381);},'kPcCz':function(_0x50a52f,_0x3177bc){return _0x50a52f(_0x3177bc);},'DaSXo':_0x3588fe(0x236)};if(!this[_0x3588fe(0x208)]())return;(!_0x26713c['FDkqD'](isNotUndefined,this[_0x3588fe(0x21e)])||!_0x26713c['TJKfO'](isNotUndefined,this[_0x3588fe(0x21e)][_0x3588fe(0x20c)])||!_0x26713c[_0x3588fe(0x1e2)](isNotUndefined,this[_0x3588fe(0x21e)][_0x3588fe(0x1f2)]))&&logger['info'](_0x26713c['yTNsb']),_0x26713c['ByrTy'](isNotUndefined,this[_0x3588fe(0x21e)])&&_0x26713c[_0x3588fe(0x1da)](isNotUndefined,this[_0x3588fe(0x21e)]['testObservability'])&&!_0x26713c['kPcCz'](isTrueString,this[_0x3588fe(0x21e)][_0x3588fe(0x1e9)])&&logger[_0x3588fe(0x1df)](_0x26713c[_0x3588fe(0x1f5)]);}[a126_0x104078(0x208)](){const _0x2d3b54=a126_0x104078;return!this[_0x2d3b54(0x1fb)]()&&this['orchestrationUtils'][_0x2d3b54(0x212)]();}['isTestOrderingApplied'](){const _0x172aaa=a126_0x104078;return this[_0x172aaa(0x225)];}['setTestOrderingApplied'](_0x1aa18b){const _0x3b5f6e=a126_0x104078,_0x6e48e6={};_0x6e48e6[_0x3b5f6e(0x1f0)]=_0x3b5f6e(0x227);const _0x4f0801=_0x6e48e6;this[_0x3b5f6e(0x225)]=_0x1aa18b,this[_0x3b5f6e(0x219)](_0x4f0801[_0x3b5f6e(0x1f0)],_0x1aa18b);}[a126_0x104078(0x219)](_0x29e147,_0x479e4e){const _0x3d2060=a126_0x104078;this[_0x3d2060(0x1fa)][_0x29e147]=_0x479e4e;}[a126_0x104078(0x215)](){const _0x33ffcc=a126_0x104078;return this[_0x33ffcc(0x1fa)];}['updateBuildIdentifier'](){const _0x16224e=a126_0x104078,_0x575e01={'DAztE':function(_0x4365c3,_0x364ffe){return _0x4365c3(_0x364ffe);},'lIwiO':function(_0x1839c7,_0x487401){return _0x1839c7>_0x487401;}},_0x3ce42e=_0x575e01[_0x16224e(0x1ea)](parseInt,process[_0x16224e(0x21a)][_0x16224e(0x22d)]||'1'),_0x1ef8fd=process[_0x16224e(0x21a)][_0x16224e(0x224)];_0x1ef8fd&&_0x575e01['lIwiO'](_0x3ce42e,0x1)&&(logger[_0x16224e(0x220)](_0x16224e(0x22b)+_0x1ef8fd),this['config']['buildIdentifier']=_0x1ef8fd);}async['reorderTestFiles'](_0x10f1c7){const _0x146b64=a126_0x104078,_0x4a3ffd={'JDgWI':function(_0x2b3dcf,_0x180ac4){return _0x2b3dcf===_0x180ac4;},'XYJCr':_0x146b64(0x211),'hSugw':function(_0x102ad6,_0x1f4778){return _0x102ad6===_0x1f4778;},'YKlad':function(_0x22bd23,_0x5bdc27){return _0x22bd23(_0x5bdc27);},'AMINq':'uploadedTestFilesCount','KrJKL':_0x146b64(0x240),'MQUbf':'totalNodes','rDfgd':_0x146b64(0x1f7),'XpDqj':_0x146b64(0x23c)};try{if(!_0x10f1c7||!Array['isArray'](_0x10f1c7)||_0x4a3ffd[_0x146b64(0x242)](_0x10f1c7['length'],0x0))return null;if(_0x4a3ffd['JDgWI'](this[_0x146b64(0x1fb)](),![]))return logger[_0x146b64(0x220)](_0x4a3ffd['XYJCr']),null;let _0x16c78f=null;const _0x27a8a8=this[_0x146b64(0x233)][_0x146b64(0x217)]();if(this[_0x146b64(0x243)]){const _0x49eb28=await this[_0x146b64(0x243)][_0x146b64(0x210)](_0x10f1c7,_0x27a8a8);if(!_0x49eb28)return null;_0x16c78f=await this['testOrderingServerHandler'][_0x146b64(0x234)](_0x49eb28);}if(!_0x16c78f||!Array[_0x146b64(0x1db)](_0x16c78f)||_0x4a3ffd[_0x146b64(0x1ee)](_0x16c78f['length'],0x0))return null;const _0x72691b=_0x4a3ffd[_0x146b64(0x237)](parseInt,process[_0x146b64(0x21a)][_0x146b64(0x1f4)]||'0'),_0x3bfcb0=_0x4a3ffd[_0x146b64(0x237)](parseInt,process[_0x146b64(0x21a)][_0x146b64(0x22d)]||'1');return this['addToOrderingInstrumentationData'](_0x4a3ffd[_0x146b64(0x248)],_0x10f1c7[_0x146b64(0x231)]),this[_0x146b64(0x219)](_0x4a3ffd[_0x146b64(0x1ef)],_0x72691b),this[_0x146b64(0x219)](_0x4a3ffd[_0x146b64(0x1fd)],_0x3bfcb0),this['addToOrderingInstrumentationData'](_0x4a3ffd[_0x146b64(0x1f6)],_0x16c78f[_0x146b64(0x231)]),this['addToOrderingInstrumentationData'](_0x4a3ffd['XpDqj'],this['testOrderingServerHandler']?this[_0x146b64(0x243)][_0x146b64(0x206)]():0x0),_0x16c78f[_0x146b64(0x1f3)](_0x48a3dd=>sanitizedFilePath(_0x48a3dd));}catch(_0x3f9c00){return logger[_0x146b64(0x220)](_0x146b64(0x1e5)+(_0x3f9c00[_0x146b64(0x23a)]||_0x3f9c00['toString']())),null;}}async['findTestFiles'](_0x3774d3,_0xb163d3,_0x4db01d){const _0x1967ce=a126_0x104078,_0x2941a0={'nqdhi':function(_0xb1935e,_0x3107b3){return _0xb1935e(_0x3107b3);},'gSwed':'jest-config','SNdHJ':function(_0x158be1,_0x350d2b){return _0x158be1(_0x350d2b);},'sdvGp':_0x1967ce(0x203),'jpBov':function(_0x92b7ac,_0x6116c5){return _0x92b7ac(_0x6116c5);},'rjofT':_0x1967ce(0x24a),'LJDAW':_0x1967ce(0x20b),'SULjP':_0x1967ce(0x222),'rJoQD':_0x1967ce(0x247),'wJeIw':function(_0xaf27c8,_0x389ccd,_0x35c3b4,_0x42f57c){return _0xaf27c8(_0x389ccd,_0x35c3b4,_0x42f57c);},'cVvqL':_0x1967ce(0x21b),'aJCIJ':_0x1967ce(0x207),'gPVuJ':_0x1967ce(0x230),'VmqLE':'--listTests','swIrv':_0x1967ce(0x249),'iIgRZ':function(_0x16d16b,_0x71412d,_0x4e3ab7,_0x3e3bb8){return _0x16d16b(_0x71412d,_0x4e3ab7,_0x3e3bb8);}};try{const {getTestPathPatterns:_0x4ee63e}=_0x2941a0['nqdhi'](require,_0x2941a0[_0x1967ce(0x213)]),{globsToMatcher:_0x43ad4c}=_0x2941a0[_0x1967ce(0x24b)](require,_0x2941a0[_0x1967ce(0x21f)]),{findRelatedTests:_0x17830c}=_0x2941a0['jpBov'](require,_0x2941a0[_0x1967ce(0x20a)]),_0x45cf13=_0x2941a0[_0x1967ce(0x23e)](require,_0x2941a0['LJDAW']),_0x2564d3=_0x3774d3[_0x1967ce(0x246)]||[_0x2941a0['SULjP'],_0x2941a0[_0x1967ce(0x201)]],_0x20bffe=_0x3774d3[_0x1967ce(0x205)]||[],_0xcd33cc=_0x2941a0[_0x1967ce(0x20f)](spawnSync,_0x2941a0[_0x1967ce(0x21d)],[_0x2941a0['aJCIJ'],_0x2941a0[_0x1967ce(0x21c)],_0x4db01d,..._0xb163d3,_0x2941a0[_0x1967ce(0x22e)]],{'encoding':_0x2941a0[_0x1967ce(0x245)]});let _0x179f38=[];!_0xcd33cc[_0x1967ce(0x1dd)]&&(_0x179f38=_0xcd33cc[_0x1967ce(0x244)]['split']('\x0a')[_0x1967ce(0x23b)](Boolean));logger[_0x1967ce(0x220)](_0x1967ce(0x221)+JSON[_0x1967ce(0x209)](_0x179f38)+_0x1967ce(0x214));const _0x4a82e4={};_0x4a82e4[_0x1967ce(0x23d)]=!![],_0x4a82e4[_0x1967ce(0x232)]=_0x20bffe;const _0x5d236e=_0x2941a0['iIgRZ'](micromatch,_0x179f38,_0x2564d3,_0x4a82e4)['map'](_0x1bd28a=>path['relative'](_0x3774d3[_0x1967ce(0x1ed)],_0x1bd28a));return logger['debug']('Filterted\x20to\x20test\x20files:\x20'+JSON[_0x1967ce(0x209)](_0x5d236e)+'\x20files'),_0x5d236e;}catch(_0x5cab0f){return logger[_0x1967ce(0x220)](_0x1967ce(0x1e3)+_0x5cab0f),[];}}}module[a126_0x104078(0x200)]=TestOrchestrationHandler;