browserstack-node-sdk 1.40.0 → 1.40.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test_before.setup.js +1 -1
  67. package/src/bin/launcher/launcher.js +1 -1
  68. package/src/bin/load/index.js +1 -1
  69. package/src/bin/load/loadUtils.js +1 -1
  70. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  71. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  72. package/src/bin/mocha/command.js +1 -1
  73. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  74. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  75. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  76. package/src/bin/mocha/test.setup.js +1 -1
  77. package/src/bin/nightwatch/command.js +1 -1
  78. package/src/bin/playwright/accessibility-helper.js +1 -1
  79. package/src/bin/playwright/command.js +1 -1
  80. package/src/bin/playwright/globalSetup.js +1 -1
  81. package/src/bin/playwright/mock-process.js +1 -1
  82. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  83. package/src/bin/playwright/patches.js +1 -1
  84. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  85. package/src/bin/playwright/reporter/reporter.js +1 -1
  86. package/src/bin/playwright/reporter/test-details.js +1 -1
  87. package/src/bin/playwright/sessionDetails.js +1 -1
  88. package/src/bin/runner.js +1 -1
  89. package/src/bin/setup.js +1 -1
  90. package/src/bin/test-runner/index.js +1 -1
  91. package/src/bin/test-runner/runTest.js +1 -1
  92. package/src/bin/test-runner/testWorker.js +1 -1
  93. package/src/bin/utils/constants.js +1 -1
  94. package/src/bin/utils/log4jsAppender.js +1 -1
  95. package/src/bin/utils/logPatcher.js +1 -1
  96. package/src/bin/utils/logReportingAPI.js +1 -1
  97. package/src/bin/v2/TestInfo.js +1 -1
  98. package/src/bin/v2/browserstackCLI.js +1 -1
  99. package/src/bin/v2/cliUtils.js +1 -1
  100. package/src/bin/v2/customTagManager.js +1 -1
  101. package/src/bin/v2/eventDispatcher.js +1 -1
  102. package/src/bin/v2/framework/automationFramework.js +1 -1
  103. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  104. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  105. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  106. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  107. package/src/bin/v2/framework/testFramework.js +1 -1
  108. package/src/bin/v2/grpcClient.js +1 -1
  109. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  110. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  111. package/src/bin/v2/instances/trackedContext.js +1 -1
  112. package/src/bin/v2/instances/trackedInstance.js +1 -1
  113. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  114. package/src/bin/v2/modules/baseModule.js +1 -1
  115. package/src/bin/v2/modules/observabilityModule.js +1 -1
  116. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  117. package/src/bin/v2/modules/testhubModule.js +1 -1
  118. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  119. package/src/bin/v2/state/hookState.js +1 -1
  120. package/src/bin/v2/state/testFrameworkState.js +1 -1
  121. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  122. package/src/bin/vanilla-js/command.js +1 -1
  123. package/src/browserStackSdk.js +1 -1
  124. package/src/helpers/BrowserStackSetup.js +1 -1
  125. package/src/helpers/accessibility-automation/constants.js +1 -1
  126. package/src/helpers/accessibility-automation/helper.js +1 -1
  127. package/src/helpers/accessibility-automation/scripts.js +1 -1
  128. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  129. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  130. package/src/helpers/ats/constants.js +1 -1
  131. package/src/helpers/ats/helper.js +1 -1
  132. package/src/helpers/capsMapping.js +1 -1
  133. package/src/helpers/central-scanner/constants.js +1 -1
  134. package/src/helpers/central-scanner/helpers.js +1 -1
  135. package/src/helpers/classLogger.js +1 -1
  136. package/src/helpers/globals.js +1 -1
  137. package/src/helpers/helper.js +1 -1
  138. package/src/helpers/logger.js +1 -1
  139. package/src/helpers/metadata.js +1 -1
  140. package/src/helpers/patchHelper.js +1 -1
  141. package/src/helpers/patchHelpers.js +1 -1
  142. package/src/helpers/percy/Percy.js +1 -1
  143. package/src/helpers/percy/PercyBinary.js +1 -1
  144. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  145. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  146. package/src/helpers/percy/PercySDK.js +1 -1
  147. package/src/helpers/percy/index.js +1 -1
  148. package/src/helpers/percy/utils.js +1 -1
  149. package/src/helpers/performance/constants.js +1 -1
  150. package/src/helpers/performance/performance-tester.js +1 -1
  151. package/src/helpers/processHelper.js +1 -1
  152. package/src/helpers/request-spy.js +1 -1
  153. package/src/helpers/setKeepAlive.js +1 -1
  154. package/src/helpers/test-observability/constants.js +1 -1
  155. package/src/helpers/test-observability/error-handler.js +1 -1
  156. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  157. package/src/helpers/test-observability/sessionHandler.js +1 -1
  158. package/src/helpers/test-observability/utils.js +1 -1
  159. package/src/helpers/test-orchestration/constants.js +1 -1
  160. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  161. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  162. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  163. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  164. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  165. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  166. package/src/helpers/testhub/constants.js +1 -1
  167. package/src/helpers/testhub/testhubHandler.js +1 -1
  168. package/src/helpers/testhub/utils.js +1 -1
  169. package/src/helpers/timeoutPromise.js +1 -1
  170. package/src/helpers/utilities.js +1 -1
  171. package/src/helpers/w3cMapping.js +1 -1
  172. package/src/hubAllocationMethods.js +1 -1
  173. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a117_0x2fb6e5=a117_0x5b60;function a117_0x5b60(_0x208750,_0x2d657e){const _0x4a0bdb=a117_0x4a0b();return a117_0x5b60=function(_0x5b604e,_0x2e7557){_0x5b604e=_0x5b604e-0x7d;let _0x3bec68=_0x4a0bdb[_0x5b604e];return _0x3bec68;},a117_0x5b60(_0x208750,_0x2d657e);}(function(_0x296ceb,_0x4a2035){const _0xbe4b34=a117_0x5b60,_0x2f8ee5=_0x296ceb();while(!![]){try{const _0x29a3c6=parseInt(_0xbe4b34(0xf9))/0x1+-parseInt(_0xbe4b34(0xa1))/0x2+parseInt(_0xbe4b34(0xe1))/0x3+-parseInt(_0xbe4b34(0xd4))/0x4+-parseInt(_0xbe4b34(0x136))/0x5+-parseInt(_0xbe4b34(0xb9))/0x6+parseInt(_0xbe4b34(0x139))/0x7;if(_0x29a3c6===_0x4a2035)break;else _0x2f8ee5['push'](_0x2f8ee5['shift']());}catch(_0x53557a){_0x2f8ee5['push'](_0x2f8ee5['shift']());}}}(a117_0x4a0b,0xd7ada));const fs=require('fs'),path=require(a117_0x2fb6e5(0x17a)),gitLastCommit=require(a117_0x2fb6e5(0x12e)),getRepoInfo=require('git-repo-info'),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a117_0x2fb6e5(0x12f)),http=require(a117_0x2fb6e5(0x156)),https=require('https'),child_process=require(a117_0x2fb6e5(0x8d)),getos=require('getos'),os=require('os'),logger=require(a117_0x2fb6e5(0x9f))['winstonLogger'],bsSetupHelper=require('../helper'),requestSpy=require(a117_0x2fb6e5(0x94)),constants=require(a117_0x2fb6e5(0xe4)),logPatcher=require(a117_0x2fb6e5(0x145)),util=require(a117_0x2fb6e5(0x168)),{fileLogger}=require(a117_0x2fb6e5(0x9f)),PerformanceTester=require(a117_0x2fb6e5(0xb2)),{isFunction}=require(a117_0x2fb6e5(0x188)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require(a117_0x2fb6e5(0xcb)),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a117_0x2fb6e5(0xaa));exports[a117_0x2fb6e5(0x13a)]=_0x5a58e1=>{const _0x50bb5b=a117_0x2fb6e5;fileLogger[_0x50bb5b(0xb6)]('['+new Date()[_0x50bb5b(0x120)]()+'][\x20OBSERVABILITY\x20]\x20'+_0x5a58e1);},exports[a117_0x2fb6e5(0xe8)]=_0x5cae1f=>{const _0x47fa45=a117_0x2fb6e5,_0x32ebec={};_0x32ebec[_0x47fa45(0x13e)]=function(_0x4d5e93,_0x2ab608){return _0x4d5e93===_0x2ab608;},_0x32ebec[_0x47fa45(0x8a)]=_0x47fa45(0x98),_0x32ebec[_0x47fa45(0x177)]=function(_0x1188d8,_0x47aac6){return _0x1188d8===_0x47aac6;};const _0x59d203=_0x32ebec;fileLogger[_0x47fa45(0xe8)]('['+new Date()[_0x47fa45(0x120)]()+'][\x20OBSERVABILITY\x20]\x20'+_0x5cae1f),(_0x59d203['kVTLN'](process[_0x47fa45(0xf1)][_0x47fa45(0xe7)],_0x59d203[_0x47fa45(0x8a)])||_0x59d203[_0x47fa45(0x177)](process[_0x47fa45(0xf1)]['BROWSERSTACK_OBSERVABILITY_DEBUG'],'1'))&&consoleHolder['log']('\x0a['+new Date()['toISOString']()+_0x47fa45(0x174)+_0x5cae1f+'\x0a');};const a117_0xff02e0={};a117_0xff02e0['keepAlive']=!![],a117_0xff02e0[a117_0x2fb6e5(0x115)]=0xea60,a117_0xff02e0['maxSockets']=0x2,a117_0xff02e0[a117_0x2fb6e5(0x86)]=0x2;const httpKeepAliveAgent=new http['Agent'](a117_0xff02e0),a117_0x160aec={};function a117_0x4a0b(){const _0x507782=['enWBw','drFJW','true','logs','ObservabilitySync:','aJEDr','push','windows-release','TuMSg','../logger','EtQya','2866352NAGimw','LogCreated','flfzH','err','fromEntries','/builds/','message','browserstack','ATS_HUB_URL_REGEX','../../../src/bin/utils/constants','\x20:\x20','cwd','appium:app','tdkOB','@cucumber/cucumber','addRequestSpy','nodeRequest','../performance/performance-tester','4|2|0|5|1|3','isTestObservabilitySession','TjoJo','silly','wKKNd','isELd','5382120qRgZsn','stringify','map','eydQN','readConfig','JEST','modifyReqForTraceUpload','Raprs','darwin','BFXDJ','test','ykmXL','Euepk','expanded','HTTP','error','turboScaleGridDetails','patchConsoleLogger','../performance/constants','getBuildTags','BROWSERSTACK_CONFIG_FILE_PATH','data','xjXZt','getCapabilities','ywpes','pjVHf','yZPmi','3089804cESDlJ','AssertionError','match','getPlatformVersion','format','JdoDN','automate','relativeTestFilePath','MaYXA','CGDcI','CODECEPT_CUCUMBER','customTag','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','719406bweIVy','GcmgI','getSession','../../bin/utils/constants','getBrowserName','Content-Type','BROWSERSTACK_OBSERVABILITY_DEBUG','debug','TEST_OBSERVABILITY_BUILD_TAG','qvseE','STAur','Tbckl','body','headers','Unknown','keepAlive','env','catch','MOCHA','X-BSTACK-TESTOPS','Error\x20in\x20getting\x20Linux\x20Details','pCrtd','dvTlx','SEbqk','795800apceht','EwMOu','toString','KSJWX','Visit\x20','rootDir','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','ZnPiP','parse','forEach','ovBfj','trim','getPackageVersion','IhPzc','RXqgR','test_run_uuid','COVEi','YzTTU','sUWej','CODECEPT','agent','platformVersion','BROWSERSTACK_RERUN_TESTS','isUndefined','then','getCustomTags','BROWSERSTACK_TESTHUB_JWT','getPlatformDetails','timeout','platform','Bearer\x20','buildTag','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','../../bin/v2/browserstackCLI','BROWSERSTACK_TEST_OBSERVABILITY_YML','win32','TuXHG','ZsxMJ','jLNdv','toISOString','SVlSh','pid','maxSockets','PQbcL','BUnPm','emit','slLZi','url','filter','pVyvY','jaZCl','ZxKuN','prefixTestPath','git-last-commit','./constants','LYcmf','https','rOUcs','application/json','Hzfym','app-automate','5595120FFSvyk','TYCxT','extractValuesWithRegexKeyMatch','28486409wHpPIP','trace','TEST_ATTACHMENT','split','IhTjx','kVTLN','BS_TESTOPS_BUILD_HASHED_ID','PLbGA','getSyncScript','object','xgQSa','MLlSk','../../bin/utils/logPatcher','uLPiG','LjxNe','cpztT','config','host','getBrowserVersion','cctCn','join','shouldReRunObservabilityTests','getDefaultHeaders','getBrowserStackConfig','hostname','rQVri','getFrameworkVersion','nhrYH','vdURH','http','annotate','sleep','includes','dmRKd','null','jTPxK','replace','jest','prefix','ycqbk','release','O11yHashedID','FYMqm','codeceptjs','hucCM','backtrace','getPlatform','util','app','browserstack_executor:\x20','emeJV','aAWkD','Linux','keys','undefined','platformName','CUCUMBER','Uvdky','PLAYWRIGHT','][\x20OBSERVABILITY\x20]\x20','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','capabilities','mFioY','Windows','DREax','path','map_','getAccessKey','asyncAwaitNodeReq','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','getObservabilityLinkedProductName','printBuildLink','Failed\x20to\x20determine\x20product\x20linked\x20to\x20Observability\x20test\x20instance\x20:\x20','execSync','mGnkY','getUserCredentials','BROWSERSTACK_TEST_OBSERVABILITY','GqRXT','eLFOc','lodash','failureData','YEHzi','dist','removeAnsiColors','length','isArray','kHZat','local_grid','Agent','Sciim','getUserName','__cloud_provider___','maxTotalSockets','rVeUO','turboscale','bMRIE','OdtJi','formData','now','child_process','PuOQz','stack','Uploading\x20trace\x20logs\x20to:\x20','bs:addLog:','parseFileNames','OSYpB','../../helpers/request-spy','lXjqU'];a117_0x4a0b=function(){return _0x507782;};return a117_0x4a0b();}a117_0x160aec[a117_0x2fb6e5(0xf0)]=!![],a117_0x160aec['timeout']=0xea60,a117_0x160aec[a117_0x2fb6e5(0x123)]=0x2,a117_0x160aec[a117_0x2fb6e5(0x86)]=0x2;const httpsKeepAliveAgent=new https[(a117_0x2fb6e5(0x82))](a117_0x160aec),a117_0x2a030a={};a117_0x2a030a['keepAlive']=!![],a117_0x2a030a[a117_0x2fb6e5(0x115)]=0xea60,a117_0x2a030a[a117_0x2fb6e5(0x123)]=0x2,a117_0x2a030a[a117_0x2fb6e5(0x86)]=0x2;const httpScreenshotsKeepAliveAgent=new http[(a117_0x2fb6e5(0x82))](a117_0x2a030a),a117_0x236767={};a117_0x236767[a117_0x2fb6e5(0xf0)]=!![],a117_0x236767[a117_0x2fb6e5(0x115)]=0xea60,a117_0x236767[a117_0x2fb6e5(0x123)]=0x2,a117_0x236767[a117_0x2fb6e5(0x86)]=0x2;const httpsScreenshotsKeepAliveAgent=new https['Agent'](a117_0x236767);exports[a117_0x2fb6e5(0x14e)]=()=>{const _0x426be2=a117_0x2fb6e5,_0x1a6b28={};_0x1a6b28['eLFOc']=function(_0x39678c,_0x4a03c8){return _0x39678c!==_0x4a03c8;},_0x1a6b28['enWBw']='null';const _0x467394=_0x1a6b28;return process['env'][_0x426be2(0x10f)]&&_0x467394[_0x426be2(0x187)](process[_0x426be2(0xf1)]['BROWSERSTACK_RERUN_TESTS'],_0x467394[_0x426be2(0x96)])?!![]:![];},exports[a117_0x2fb6e5(0xb4)]=()=>{const _0x1483bd=a117_0x2fb6e5,_0x3b63ff={};_0x3b63ff[_0x1483bd(0x148)]=function(_0x24e8b7,_0x4c9674){return _0x24e8b7===_0x4c9674;},_0x3b63ff[_0x1483bd(0xb7)]=_0x1483bd(0x98),_0x3b63ff['ZjWbW']=function(_0x1118d2,_0x569c8b){return _0x1118d2===_0x569c8b;};const _0xe07c6d=_0x3b63ff;let _0x457a65=!![];return process['env'][_0x1483bd(0x11b)]&&(_0x457a65=_0xe07c6d[_0x1483bd(0x148)](process[_0x1483bd(0xf1)]['BROWSERSTACK_TEST_OBSERVABILITY_YML'],_0xe07c6d[_0x1483bd(0xb7)])),process[_0x1483bd(0xf1)][_0x1483bd(0x185)]&&(_0x457a65=_0xe07c6d['ZjWbW'](process[_0x1483bd(0xf1)]['BROWSERSTACK_TEST_OBSERVABILITY'],_0xe07c6d[_0x1483bd(0xb7)])),_0x457a65;},exports[a117_0x2fb6e5(0x92)]=_0x468350=>{const _0x4293df=a117_0x2fb6e5;if(bsSetupHelper['isUndefined'](_0x468350))return undefined;try{return _0x468350[_0x4293df(0x104)]()[_0x4293df(0x13c)](',');}catch(_0x3cec37){return undefined;}},exports[a117_0x2fb6e5(0x180)]=()=>{const _0x56a59c=a117_0x2fb6e5,_0x1706b8={'aAWkD':function(_0x365611,_0x4e71ff){return _0x365611(_0x4e71ff);},'Euepk':_0x56a59c(0x11a),'BUnPm':function(_0x4d1097,_0x5b402b){return _0x4d1097!==_0x5b402b;},'STAur':_0x56a59c(0x15b),'yZPmi':function(_0xef27d,_0x1dcef5){return _0xef27d!==_0x1dcef5;},'FYMqm':_0x56a59c(0x16f),'YEHzi':'[%s][\x20OBSERVABILITY\x20]\x20Build\x20Not\x20Found\x20%s'};return PerformanceTester['measureWrapper'](PerformanceO11yEvents['PRINT_BUILDLINK'],async()=>{const _0x828210=_0x56a59c;try{const _0x36c63d=_0x1706b8[_0x828210(0x16c)](require,_0x1706b8[_0x828210(0xc5)]);if(_0x36c63d[_0x828210(0x162)]){logger['info'](_0x828210(0xfd)+O11Y_URL+_0x828210(0xa6)+_0x36c63d['O11yHashedID']+_0x828210(0x119));return;}process['env'][_0x828210(0x13f)]&&_0x1706b8[_0x828210(0x125)](process['env'][_0x828210(0x13f)],_0x1706b8[_0x828210(0xeb)])&&_0x1706b8[_0x828210(0xd3)](process[_0x828210(0xf1)][_0x828210(0x13f)],_0x1706b8[_0x828210(0x163)])&&logger['info'](_0x828210(0xfd)+constants['O11Y_URL']+'/builds/'+process[_0x828210(0xf1)][_0x828210(0x13f)]+_0x828210(0x119));}catch(_0x4cf109){logger[_0x828210(0xc8)](util['format'](_0x1706b8[_0x828210(0x18a)],new Date()[_0x828210(0x120)](),_0x4cf109[_0x828210(0x8f)]||_0x4cf109[_0x828210(0xa7)]||_0x4cf109));}})();},exports['getFailureType']=_0x14c290=>{const _0x504b0c=a117_0x2fb6e5,_0x2bb571={};_0x2bb571['cTrjT']=_0x504b0c(0xd5),_0x2bb571[_0x504b0c(0x186)]='UnhandledError';const _0xfe11c2=_0x2bb571;if(!_0x14c290)return null;return _0x14c290[_0x504b0c(0xfb)]()[_0x504b0c(0xd6)](/AssertionError/)?_0xfe11c2['cTrjT']:_0xfe11c2[_0x504b0c(0x186)];},exports[a117_0x2fb6e5(0x153)]=_0xd9b9c7=>{const _0x464973=a117_0x2fb6e5,_0x1bdb60={};_0x1bdb60[_0x464973(0x93)]='mocha',_0x1bdb60[_0x464973(0xec)]='@playwright/test',_0x1bdb60['qHJUS']=_0x464973(0x164),_0x1bdb60[_0x464973(0xfa)]=_0x464973(0x15e),_0x1bdb60[_0x464973(0xc0)]=_0x464973(0xaf);const _0x502b41=_0x1bdb60;let _0x27b769=null;switch(_0xd9b9c7){case FRAMEWORKS[_0x464973(0xf3)]:_0x27b769=bsSetupHelper[_0x464973(0x105)](_0x502b41[_0x464973(0x93)]);break;case FRAMEWORKS[_0x464973(0x173)]:_0x27b769=bsSetupHelper[_0x464973(0x105)](_0x502b41[_0x464973(0xec)]);break;case FRAMEWORKS[_0x464973(0x10c)]:case FRAMEWORKS[_0x464973(0xde)]:_0x27b769=bsSetupHelper[_0x464973(0x105)](_0x502b41['qHJUS']);break;case FRAMEWORKS[_0x464973(0xbe)]:_0x27b769=bsSetupHelper[_0x464973(0x105)](_0x502b41[_0x464973(0xfa)]);break;case FRAMEWORKS[_0x464973(0x171)]:_0x27b769=bsSetupHelper[_0x464973(0x105)](_0x502b41['Raprs']);break;default:break;}return _0x27b769;},exports[a117_0x2fb6e5(0x150)]=_0x3d640b=>{const _0x40f939=a117_0x2fb6e5;let _0x5de7fb=null;switch(_0x3d640b){case FRAMEWORKS[_0x40f939(0x173)]:_0x5de7fb=process[_0x40f939(0xf1)][_0x40f939(0xcd)];break;}if(!_0x5de7fb)return;return bsSetupHelper[_0x40f939(0xbd)](_0x5de7fb,![]);},exports[a117_0x2fb6e5(0x184)]=_0x579368=>{const _0x367e34=a117_0x2fb6e5;return{'username':bsSetupHelper[_0x367e34(0x84)](_0x579368),'accessKey':bsSetupHelper[_0x367e34(0x17c)](_0x579368)};},exports[a117_0x2fb6e5(0xbf)]=(_0x124700,_0xe484fb)=>{const _0x535e3a=a117_0x2fb6e5,_0xa042ef={};_0xa042ef[_0x535e3a(0x127)]=_0x535e3a(0xb3),_0xa042ef[_0x535e3a(0x13d)]=_0x535e3a(0xa2),_0xa042ef['pjVHf']=_0x535e3a(0x13b);const _0x1b0085=_0xa042ef,_0x5038d4=_0x1b0085[_0x535e3a(0x127)][_0x535e3a(0x13c)]('|');let _0x24b332=0x0;while(!![]){switch(_0x5038d4[_0x24b332++]){case'0':_0x124700[_0x535e3a(0x8b)]={'data':_0x124700['body'][0x0][_0x535e3a(0x99)][0x0]['data'],'test_run_uuid':_0x124700[_0x535e3a(0xed)][0x0][_0x535e3a(0x99)][0x0][_0x535e3a(0x108)],'event_type':_0x1b0085['IhTjx'],'kind':_0x1b0085[_0x535e3a(0xd2)],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x535e3a(0x120)](),'fileName':_0x124700[_0x535e3a(0xed)][0x0][_0x535e3a(0x99)][0x0]['fileName']};continue;case'1':delete _0x124700['json'];continue;case'2':if(!_0x124700[_0x535e3a(0xed)][0x0]||!_0x124700[_0x535e3a(0xed)][0x0][_0x535e3a(0x99)]||!_0x124700['body'][0x0][_0x535e3a(0x99)]['length'])return;continue;case'3':delete _0xe484fb[_0x535e3a(0xee)];continue;case'4':if(!_0x124700[_0x535e3a(0xed)]||!Array[_0x535e3a(0x7f)](_0x124700['body']))return;continue;case'5':delete _0x124700[_0x535e3a(0xed)];continue;}break;}},exports[a117_0x2fb6e5(0x17d)]=async(_0xb92400,_0x4152c6,_0x3be757,_0x170890,_0x92aa45=!![])=>{const _0x27afd7=a117_0x2fb6e5,_0x146ef0={};_0x146ef0[_0x27afd7(0x183)]=function(_0x39bfc4,_0x27a95b){return _0x39bfc4===_0x27a95b;},_0x146ef0[_0x27afd7(0x10b)]=_0x27afd7(0xe6),_0x146ef0[_0x27afd7(0x95)]=_0x27afd7(0x133),_0x146ef0[_0x27afd7(0xfc)]=_0x27afd7(0x131),_0x146ef0[_0x27afd7(0xa0)]=function(_0x438d90,_0x3667d3){return _0x438d90===_0x3667d3;},_0x146ef0[_0x27afd7(0x124)]=function(_0x4cc741,_0x1c4497){return _0x4cc741!==_0x1c4497;},_0x146ef0[_0x27afd7(0x121)]='object',_0x146ef0[_0x27afd7(0x109)]='Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s';const _0x2389a0=_0x146ef0,_0x3498a6={..._0x170890,...{'method':_0xb92400,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x4152c6,'body':_0x3be757,'json':_0x2389a0[_0x27afd7(0x183)](_0x170890['headers'][_0x2389a0[_0x27afd7(0x10b)]],_0x2389a0[_0x27afd7(0x95)]),'agent':API_URL[_0x27afd7(0x159)](_0x2389a0[_0x27afd7(0xfc)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x2389a0[_0x27afd7(0xa0)](_0x4152c6,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x3498a6[_0x27afd7(0x10d)]=API_URL[_0x27afd7(0x159)](_0x2389a0['KSJWX'])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports[_0x27afd7(0xbf)](_0x3498a6,_0x170890),logger[_0x27afd7(0xe8)](_0x27afd7(0x90)+_0x3498a6[_0x27afd7(0x128)]));try{const {statusCode:_0xc917a6,body:_0x4f6158}=await bsSetupHelper[_0x27afd7(0xb1)](_0xb92400,_0x4152c6,_0x3498a6,_0x170890,_0x3498a6[_0x27afd7(0x128)]);if(_0x2389a0['PQbcL'](_0xc917a6,0xc8))return _0x4f6158?_0x4f6158:'Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20'+_0xc917a6;let _0x39cbf2=_0x4f6158;if(_0x92aa45)try{_0x2389a0[_0x27afd7(0x124)](typeof _0x4f6158,_0x2389a0['SVlSh'])&&(_0x39cbf2=JSON['parse'](_0x4f6158));}catch(_0x23a9ba){logger['error'](_0x2389a0[_0x27afd7(0x109)],_0x4f6158,util['format'](_0x23a9ba));}const _0x3c1555={};return _0x3c1555[_0x27afd7(0xce)]=_0x39cbf2,_0x3c1555;}catch(_0x1e267e){logger[_0x27afd7(0xc8)]('Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20'+util[_0x27afd7(0xd8)](_0x1e267e));throw _0x1e267e;}},exports[a117_0x2fb6e5(0xb1)]=(_0x176ee2,_0x1b803e,_0x2a172c,_0x5c527b,_0x48b865=!![])=>{const _0x492949=a117_0x2fb6e5,_0x2d1fbb={'TuMSg':function(_0x408e4d,_0x40af3b){return _0x408e4d!==_0x40af3b;},'bMRIE':function(_0x3e0b9,_0x2a8e8a){return _0x3e0b9(_0x2a8e8a);},'ZsxMJ':_0x492949(0x142),'hucCM':function(_0x316c1c,_0x2e17bf){return _0x316c1c(_0x2e17bf);},'dmRKd':_0x492949(0x175),'MaYXA':function(_0x5d302e,_0x2cfa36){return _0x5d302e(_0x2cfa36);},'qcSbG':function(_0x53c8d1,_0x2357e7){return _0x53c8d1===_0x2357e7;},'xjXZt':'Content-Type','PuOQz':_0x492949(0x133),'kHZat':_0x492949(0x131),'TuXHG':function(_0x4d6c6a,_0x480fc8){return _0x4d6c6a===_0x480fc8;}};return new Promise((_0xd4036a,_0x4282ca)=>{const _0x249420=_0x492949,_0x49bd5b={..._0x5c527b,...{'method':_0x176ee2,'url':API_URL+'/'+_0x1b803e,'body':_0x2a172c,'json':_0x2d1fbb['qcSbG'](_0x5c527b['headers'][_0x2d1fbb[_0x249420(0xcf)]],_0x2d1fbb[_0x249420(0x8e)]),'agent':API_URL[_0x249420(0x159)](_0x2d1fbb['kHZat'])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x2d1fbb[_0x249420(0x11d)](_0x1b803e,SCREENSHOT_ENDPOINT)&&(_0x49bd5b['agent']=API_URL[_0x249420(0x159)](_0x2d1fbb[_0x249420(0x80)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x249420(0xb1)](_0x176ee2,_0x1b803e,_0x49bd5b,_0x5c527b,API_URL)[_0x249420(0x111)](({statusCode:_0x5c894f,body:_0x5fa41c})=>{const _0x4c8125=_0x249420;if(_0x2d1fbb[_0x4c8125(0x9e)](_0x5c894f,0xc8))_0x2d1fbb[_0x4c8125(0x89)](_0x4282ca,_0x5fa41c?_0x5fa41c:_0x4c8125(0x17e)+_0x5c894f);else{if(_0x48b865)try{_0x2d1fbb[_0x4c8125(0x9e)](typeof _0x5fa41c,_0x2d1fbb[_0x4c8125(0x11e)])&&(_0x5fa41c=JSON[_0x4c8125(0x101)](_0x5fa41c));}catch(_0x35b08d){_0x2d1fbb[_0x4c8125(0x165)](_0x4282ca,_0x2d1fbb[_0x4c8125(0x15a)]);return;}const _0x13ece4={};_0x13ece4[_0x4c8125(0xce)]=_0x5fa41c,_0x2d1fbb[_0x4c8125(0xdc)](_0xd4036a,_0x13ece4);}})[_0x249420(0xf2)](_0x34bdb9=>{const _0x161605=_0x249420;_0x34bdb9&&_0x2d1fbb[_0x161605(0x165)](_0x4282ca,_0x34bdb9);});});},exports[a117_0x2fb6e5(0xcc)]=_0x57ffba=>{const _0x5244d2=a117_0x2fb6e5;if(process['env'][_0x5244d2(0xe9)])return process[_0x5244d2(0xf1)]['TEST_OBSERVABILITY_BUILD_TAG'][_0x5244d2(0x13c)](',');if(_0x57ffba[_0x5244d2(0x118)])return _0x57ffba[_0x5244d2(0x118)];return[];},exports[a117_0x2fb6e5(0x14f)]=(_0xb30cef=!![])=>{const _0x42a80b=a117_0x2fb6e5,_0x5ea22a={};_0x5ea22a['LjxNe']=_0x42a80b(0x133),_0x5ea22a[_0x42a80b(0x100)]=_0x42a80b(0x98),_0x5ea22a[_0x42a80b(0x14c)]='Authorization';const _0xb1ce3e=_0x5ea22a,_0x402a5f={};_0x402a5f[_0x42a80b(0xe6)]=_0xb1ce3e[_0x42a80b(0x147)],_0x402a5f['X-BSTACK-TESTOPS']=_0xb1ce3e[_0x42a80b(0x100)];const _0x224c3b=_0x402a5f;return _0xb30cef&&process['env'][_0x42a80b(0x113)]&&(_0x224c3b[_0xb1ce3e[_0x42a80b(0x14c)]]=_0x42a80b(0x117)+process['env'][_0x42a80b(0x113)]),_0x224c3b;},exports[a117_0x2fb6e5(0x138)]=_0x2431b6=>{const _0x26c531=a117_0x2fb6e5,_0x13b101={};_0x13b101['mZAZB']='^CUSTOM_TAG_\x5cd+$';const _0x81fcb=_0x13b101,_0x6c783f=[],_0x1c9b06=new RegExp(_0x81fcb['mZAZB'],'i');return Object[_0x26c531(0x16e)](_0x2431b6)[_0x26c531(0x129)](_0xecec98=>_0x1c9b06[_0x26c531(0xc3)](_0xecec98))['forEach'](_0x149bef=>_0x6c783f[_0x26c531(0x9c)](_0x2431b6[_0x149bef])),_0x6c783f;},exports[a117_0x2fb6e5(0x112)]=_0x52aedb=>{const _0x333e7b=a117_0x2fb6e5,_0x7a156e=[],_0x580df3=_0x52aedb[_0x333e7b(0xdf)]||process[_0x333e7b(0xf1)]['CUSTOM_TAG'];return _0x580df3&&_0x7a156e[_0x333e7b(0x9c)](_0x580df3),_0x7a156e['push'](...exports['extractValuesWithRegexKeyMatch'](process[_0x333e7b(0xf1)])),_0x7a156e[_0x333e7b(0x9c)](...exports[_0x333e7b(0x138)](_0x52aedb)),_0x7a156e;},exports['removeAnsiColors']=_0x42ec15=>{const _0xaf4ecd=a117_0x2fb6e5;if(!_0x42ec15)return'';return _0x42ec15[_0xaf4ecd(0x15d)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a117_0x2fb6e5(0x158)]=(_0x139d13=0x64)=>new Promise(_0x40d261=>setTimeout(_0x40d261,_0x139d13));const getPlatformName=()=>{const _0x47fea0=a117_0x2fb6e5,_0x86715f={};_0x86715f[_0x47fea0(0x143)]=function(_0x52ff9e,_0x4feb85){return _0x52ff9e===_0x4feb85;},_0x86715f[_0x47fea0(0x146)]=_0x47fea0(0x11c),_0x86715f['drFJW']='Windows',_0x86715f[_0x47fea0(0x12c)]=_0x47fea0(0xc1),_0x86715f[_0x47fea0(0x87)]='OS\x20X',_0x86715f[_0x47fea0(0x140)]=function(_0x448958,_0x5ebaab){return _0x448958===_0x5ebaab;},_0x86715f['ycqbk']='linux',_0x86715f[_0x47fea0(0x10a)]=_0x47fea0(0x16d),_0x86715f[_0x47fea0(0x83)]=_0x47fea0(0xef);const _0x1bcfd4=_0x86715f;if(_0x1bcfd4[_0x47fea0(0x143)](process[_0x47fea0(0x116)],_0x1bcfd4[_0x47fea0(0x146)]))return _0x1bcfd4[_0x47fea0(0x97)];if(_0x1bcfd4['xgQSa'](process['platform'],_0x1bcfd4[_0x47fea0(0x12c)]))return _0x1bcfd4[_0x47fea0(0x87)];if(_0x1bcfd4[_0x47fea0(0x140)](process[_0x47fea0(0x116)],_0x1bcfd4[_0x47fea0(0x160)]))return _0x1bcfd4[_0x47fea0(0x10a)];return _0x1bcfd4[_0x47fea0(0x83)];},getMacOSVersion=()=>{const _0x3150ea=a117_0x2fb6e5,_0x10b345={};_0x10b345[_0x3150ea(0xc4)]=_0x3150ea(0xe0);const _0x30a399=_0x10b345;return child_process[_0x3150ea(0x182)](_0x30a399[_0x3150ea(0xc4)])[_0x3150ea(0xfb)]()[_0x3150ea(0x104)]();},getLinuxDetails=()=>{const _0x3cda3f={'BFXDJ':function(_0x29116c,_0xbd156f){return _0x29116c(_0xbd156f);}};return new Promise((_0x518338,_0x4e9054)=>{const _0x564131={'jLNdv':function(_0x57bf72,_0x2b68fb){const _0x625c9d=a117_0x5b60;return _0x3cda3f[_0x625c9d(0xc2)](_0x57bf72,_0x2b68fb);}};_0x3cda3f['BFXDJ'](getos,(_0x6b196f,_0x5f014f)=>{const _0x56d853=a117_0x5b60;if(_0x6b196f)return _0x564131[_0x56d853(0x11f)](_0x4e9054,_0x6b196f);_0x564131[_0x56d853(0x11f)](_0x518338,_0x5f014f);});});};exports[a117_0x2fb6e5(0x114)]=async()=>{const _0x57893d=a117_0x2fb6e5,_0x1eaaa4={'ywpes':function(_0x4383c7){return _0x4383c7();},'SEbqk':'OS\x20X','pVyvY':_0x57893d(0x178),'rOUcs':_0x57893d(0x9d),'ovBfj':'Linux','Uvdky':_0x57893d(0xf5)};let _0x2d1e16=_0x1eaaa4['ywpes'](getPlatformName),_0x26ccd5=os[_0x57893d(0x161)]()[_0x57893d(0xfb)]();switch(_0x2d1e16){case _0x1eaaa4[_0x57893d(0xf8)]:_0x26ccd5=_0x1eaaa4[_0x57893d(0xd1)](getMacOSVersion);break;case _0x1eaaa4[_0x57893d(0x12a)]:try{const _0x3967c4=(await import(_0x1eaaa4[_0x57893d(0x132)]))['default'];_0x26ccd5=_0x1eaaa4[_0x57893d(0xd1)](_0x3967c4);}catch(_0x244b0a){exports[_0x57893d(0xe8)]('Error\x20in\x20importing\x20windows-release\x20'+_0x244b0a[_0x57893d(0xfb)]());}break;case _0x1eaaa4[_0x57893d(0x103)]:try{const _0xca615f=await _0x1eaaa4[_0x57893d(0xd1)](getLinuxDetails);_0xca615f[_0x57893d(0x18b)]&&(_0x2d1e16=_0xca615f[_0x57893d(0x18b)]),_0xca615f[_0x57893d(0x161)]&&(_0x26ccd5=_0xca615f['release'][_0x57893d(0xfb)]());}catch(_0x377a1b){exports[_0x57893d(0xe8)](_0x1eaaa4[_0x57893d(0x172)]);}break;default:break;}const _0x3710d1={};return _0x3710d1[_0x57893d(0x170)]=_0x2d1e16,_0x3710d1[_0x57893d(0x10e)]=_0x26ccd5,_0x3710d1;},exports[a117_0x2fb6e5(0x189)]=(_0x459150,_0x11f8b6)=>{const _0x337638=a117_0x2fb6e5,_0x56dd0b={};_0x56dd0b[_0x337638(0x154)]=function(_0x4b7bad,_0x376e91){return _0x4b7bad===_0x376e91;},_0x56dd0b[_0x337638(0x16b)]=_0x337638(0xc3),_0x56dd0b['TjoJo']=function(_0x3c4afa,_0x29a039){return _0x3c4afa===_0x29a039;},_0x56dd0b[_0x337638(0xe2)]=_0x337638(0xa4);const _0xebd436=_0x56dd0b;if(!_0x459150)return[];try{if(_0xebd436[_0x337638(0x154)](_0x11f8b6,_0xebd436[_0x337638(0x16b)]))return _0x459150[_0x337638(0xbb)](_0xe45948=>{const _0x1e53c0=_0x337638,{stack:_0x181a1b,..._0x20117f}=_0xe45948,_0x567ad1=Object['keys'](_0x20117f)[_0x1e53c0(0xbb)](_0x1ac5f6=>{return _0x1ac5f6+':\x20'+_0x20117f[_0x1ac5f6];}),_0x43b612=_0x181a1b?exports[_0x1e53c0(0x7d)](_0x181a1b)['split'](/\r?\n/):[exports['removeAnsiColors'](_0xe45948[_0x1e53c0(0xa7)])],_0x56ab7c={};return _0x56ab7c[_0x1e53c0(0x166)]=_0x43b612,_0x56ab7c[_0x1e53c0(0xc6)]=_0x567ad1,_0x56ab7c;});else{if(_0xebd436[_0x337638(0xb5)](_0x11f8b6,_0xebd436[_0x337638(0xe2)])){const _0x4caea1=[],_0x1d2a9e=[];return Object[_0x337638(0x16e)](_0x459150)[_0x337638(0x102)](_0x4905b7=>{const _0x36c124=_0x337638;try{_0x1d2a9e[_0x36c124(0x9c)](_0x4905b7+':\x20'+_0x459150[_0x4905b7]);}catch(_0x4cff4b){exports[_0x36c124(0xe8)](_0x36c124(0xff)+_0x4cff4b[_0x36c124(0xa7)]+_0x36c124(0xab)+_0x4cff4b[_0x36c124(0x166)]);}}),_0x4caea1['push']({'backtrace':exports[_0x337638(0x7d)](_0x459150[_0x337638(0x8f)])[_0x337638(0x13c)](/\r?\n/),'expanded':_0x1d2a9e}),_0x4caea1;}}return[];}catch(_0x3f40af){exports[_0x337638(0xe8)](_0x337638(0xff)+_0x3f40af[_0x337638(0xa7)]+'\x20:\x20'+_0x3f40af[_0x337638(0x166)]);}return[];};class PathHelper{constructor(_0x518d61,_0x5b62f6){const _0x507f79=a117_0x2fb6e5;this['config']=_0x518d61,this[_0x507f79(0x15f)]=_0x5b62f6;}[a117_0x2fb6e5(0xdb)](_0x53d405){const _0x4733de=a117_0x2fb6e5,_0x2d4e9b=this[_0x4733de(0x149)][_0x4733de(0xac)]||this[_0x4733de(0x149)][_0x4733de(0xfe)];return path['relative'](_0x2d4e9b,_0x53d405);}[a117_0x2fb6e5(0x12d)](_0x1c6fa3){const _0xf5364a=a117_0x2fb6e5,_0x3c4505=this[_0xf5364a(0xdb)](_0x1c6fa3);return this[_0xf5364a(0x15f)]?path[_0xf5364a(0x14d)](this['prefix'],_0x3c4505):_0x3c4505;}}exports['PathHelper']=PathHelper,exports[a117_0x2fb6e5(0xb0)]=(_0x545583=!![])=>{const _0x417fd2=a117_0x2fb6e5,_0x3a810b={};_0x3a810b[_0x417fd2(0xd9)]=function(_0x1b24e2,_0x493ce0){return _0x1b24e2===_0x493ce0;},_0x3a810b[_0x417fd2(0x107)]=_0x417fd2(0xf4),_0x3a810b[_0x417fd2(0x9b)]=_0x417fd2(0x98),_0x3a810b['pCrtd']=_0x417fd2(0xc7),_0x3a810b[_0x417fd2(0xea)]=_0x417fd2(0xa8),_0x3a810b[_0x417fd2(0xae)]=_0x417fd2(0x81);const _0x32eaf5=_0x3a810b;requestSpy['spy']((_0x1444ec,_0x193bcf)=>{const _0x6f4d0e=_0x417fd2;_0x193bcf&&!(_0x193bcf[_0x6f4d0e(0xee)]&&_0x32eaf5['JdoDN'](_0x193bcf[_0x6f4d0e(0xee)][_0x32eaf5['RXqgR']],_0x32eaf5[_0x6f4d0e(0x9b)]))&&(_0x193bcf[_0x6f4d0e(0x14a)]=_0x193bcf[_0x6f4d0e(0x151)],delete _0x193bcf[_0x6f4d0e(0x151)],_0x545583&&process[_0x6f4d0e(0x126)](_0x6f4d0e(0x91)+process[_0x6f4d0e(0x122)],{'timestamp':new Date()[_0x6f4d0e(0x120)](),'level':null,'message':null,'kind':_0x32eaf5[_0x6f4d0e(0xf6)],'http_response':_0x193bcf})),_0x193bcf&&(constants['HUB_URL_REGEX'][_0x6f4d0e(0xc3)](_0x193bcf[_0x6f4d0e(0x14a)])||constants[_0x6f4d0e(0xa9)][_0x6f4d0e(0xc3)](_0x193bcf['host']))?global[_0x6f4d0e(0x85)]=_0x32eaf5[_0x6f4d0e(0xea)]:global[_0x6f4d0e(0x85)]=_0x32eaf5[_0x6f4d0e(0xae)];});},exports[a117_0x2fb6e5(0xca)]=()=>{const _0x3a3bf6=a117_0x2fb6e5,_0x15a998={'dvTlx':function(_0x216741,_0x254645){return _0x216741(_0x254645);}};console={},Object[_0x3a3bf6(0x16e)](consoleHolder)[_0x3a3bf6(0x102)](_0x109937=>{const _0x2a256d=_0x3a3bf6;_0x15a998[_0x2a256d(0xf7)](isFunction,consoleHolder[_0x109937])?console[_0x109937]=(..._0x3def39)=>{const _0x39119a=_0x2a256d;try{!Object[_0x39119a(0x16e)](BSTestOpsPatcher)[_0x39119a(0x159)](_0x109937)?consoleHolder[_0x109937](..._0x3def39):BSTestOpsPatcher[_0x109937](..._0x3def39);}catch(_0x4e2817){consoleHolder[_0x109937](..._0x3def39);}}:console[_0x109937]=consoleHolder[_0x109937];});},exports[a117_0x2fb6e5(0x141)]=()=>a117_0x2fb6e5(0x16a)+JSON[a117_0x2fb6e5(0xba)]({'action':a117_0x2fb6e5(0x157),'arguments':{'data':a117_0x2fb6e5(0x9a)+Date[a117_0x2fb6e5(0x8c)](),'level':'debug'}}),exports['getObservabilityLinkedProductName']=_0x33cf3c=>{const _0x1d0f53=a117_0x2fb6e5,_0x4f894e={};_0x4f894e['TYCxT']=function(_0x5b6587,_0x5e0454){return _0x5b6587===_0x5e0454;},_0x4f894e[_0x1d0f53(0x12b)]='browserstack',_0x4f894e['MLlSk']=_0x1d0f53(0xad),_0x4f894e['Hzfym']=_0x1d0f53(0x169),_0x4f894e['eydQN']=function(_0x51868c,_0xc61124){return _0x51868c>_0xc61124;},_0x4f894e[_0x1d0f53(0xdd)]=_0x1d0f53(0x135),_0x4f894e[_0x1d0f53(0xb8)]='bstack:options',_0x4f894e[_0x1d0f53(0x155)]=_0x1d0f53(0xc9),_0x4f894e[_0x1d0f53(0x130)]=_0x1d0f53(0x88),_0x4f894e['jTPxK']=_0x1d0f53(0xda);const _0x425d23=_0x4f894e;let _0x4e8c10=null;try{if(_0x425d23[_0x1d0f53(0x137)](global[_0x1d0f53(0x85)],_0x425d23[_0x1d0f53(0x12b)])){if(_0x33cf3c[_0x425d23[_0x1d0f53(0x144)]]||_0x33cf3c[_0x425d23['Hzfym']]||!bsSetupHelper[_0x1d0f53(0x110)](global['capabilities'])&&_0x425d23[_0x1d0f53(0xbc)](global[_0x1d0f53(0x176)][_0x1d0f53(0x7e)],0x0)&&(global['capabilities'][0x0][_0x425d23[_0x1d0f53(0x134)]]||global[_0x1d0f53(0x176)][0x0][_0x425d23[_0x1d0f53(0x144)]]))_0x4e8c10=_0x425d23[_0x1d0f53(0xdd)];else _0x33cf3c[_0x425d23[_0x1d0f53(0xb8)]]&&_0x33cf3c[_0x425d23[_0x1d0f53(0xb8)]][_0x425d23['vdURH']]?_0x4e8c10=_0x425d23[_0x1d0f53(0x130)]:_0x4e8c10=_0x425d23[_0x1d0f53(0x15c)];}}catch(_0x17e55e){exports[_0x1d0f53(0xe8)](_0x1d0f53(0x181)+_0x17e55e);}return _0x4e8c10;},exports['sendPlatformDetails']=async(_0x5b5755,_0x429de2,_0x2ab2d5=![])=>{const _0x4508a5=a117_0x2fb6e5,_0x45cff0={};_0x45cff0['flfzH']=function(_0x592cd8,_0x2b77ad){return _0x592cd8===_0x2b77ad;},_0x45cff0[_0x4508a5(0x152)]='browserstack',_0x45cff0[_0x4508a5(0x106)]='unknown_grid',_0x45cff0[_0x4508a5(0x179)]='TEST_PLATFORM';const _0x27194c=_0x45cff0;try{const _0x4d264b=await _0x5b5755[_0x4508a5(0xd0)](),_0x48a074=await _0x5b5755[_0x4508a5(0xe3)](),_0x169e47={},_0x31d18d=Object[_0x4508a5(0xa5)](_0x48a074[_0x4508a5(0xd0)]()[_0x4508a5(0x17b)]),_0x554c5a={'product':exports[_0x4508a5(0x17f)](_0x31d18d),'capabilities':_0x31d18d,'platform':_0x4d264b[_0x4508a5(0x167)](),'platform_version':bsSetupHelper[_0x4508a5(0xd7)](_0x27194c[_0x4508a5(0xa3)](global['__cloud_provider___'],_0x27194c['rQVri'])),'browser':_0x4d264b[_0x4508a5(0xe5)](),'browser_version':_0x4d264b[_0x4508a5(0x14b)](),'session_id':_0x48a074['toJSON']()};global[_0x4508a5(0x85)]?_0x169e47[global[_0x4508a5(0x85)]]=_0x554c5a:_0x169e47[_0x27194c[_0x4508a5(0x106)]]=_0x554c5a;if(_0x2ab2d5)return _0x169e47;process[_0x4508a5(0x126)]('bs:addPlatformDetails:'+process['pid'],{'timestamp':new Date()[_0x4508a5(0x120)](),'level':null,'message':null,'kind':_0x27194c[_0x4508a5(0x179)],'http_response':_0x169e47,'uuid':_0x429de2});}catch(_0x1267ac){exports[_0x4508a5(0xe8)]('Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20'+_0x1267ac);}},exports['isInternalHook']=_0x32de38=>{const _0x161edc=a117_0x2fb6e5;return _0x32de38&&_0x32de38[_0x161edc(0xfb)]()['match'](/browserstack internal helper hook/);};
1
+ const a117_0x2e4d4b=a117_0x1265;(function(_0x552b7b,_0x13bbb3){const _0x43fdc9=a117_0x1265,_0x468635=_0x552b7b();while(!![]){try{const _0x5efad6=-parseInt(_0x43fdc9(0x1ca))/0x1+parseInt(_0x43fdc9(0x1b2))/0x2*(-parseInt(_0x43fdc9(0x1e5))/0x3)+-parseInt(_0x43fdc9(0x176))/0x4+-parseInt(_0x43fdc9(0x223))/0x5+parseInt(_0x43fdc9(0x1d0))/0x6*(-parseInt(_0x43fdc9(0x180))/0x7)+-parseInt(_0x43fdc9(0x179))/0x8+parseInt(_0x43fdc9(0x17e))/0x9;if(_0x5efad6===_0x13bbb3)break;else _0x468635['push'](_0x468635['shift']());}catch(_0x5ab07c){_0x468635['push'](_0x468635['shift']());}}}(a117_0x3a84,0x9975c));const fs=require('fs'),path=require(a117_0x2e4d4b(0x1f4)),gitLastCommit=require('git-last-commit'),getRepoInfo=require(a117_0x2e4d4b(0x197)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a117_0x2e4d4b(0x184)),http=require(a117_0x2e4d4b(0x23c)),https=require('https'),child_process=require('child_process'),getos=require(a117_0x2e4d4b(0x1d4)),os=require('os'),logger=require(a117_0x2e4d4b(0x1a7))[a117_0x2e4d4b(0x228)],bsSetupHelper=require(a117_0x2e4d4b(0x23f)),requestSpy=require(a117_0x2e4d4b(0x26f)),constants=require('../../bin/utils/constants'),logPatcher=require(a117_0x2e4d4b(0x1f0)),util=require(a117_0x2e4d4b(0x210)),{fileLogger}=require(a117_0x2e4d4b(0x1a7)),PerformanceTester=require('../performance/performance-tester'),{isFunction}=require(a117_0x2e4d4b(0x221)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require(a117_0x2e4d4b(0x17f)),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a117_0x2e4d4b(0x1e4));exports[a117_0x2e4d4b(0x1bb)]=_0x6eef7c=>{const _0x5038f0=a117_0x2e4d4b;fileLogger[_0x5038f0(0x23b)]('['+new Date()['toISOString']()+'][\x20OBSERVABILITY\x20]\x20'+_0x6eef7c);},exports['debug']=_0x568222=>{const _0x1624dd=a117_0x2e4d4b,_0x389060={};_0x389060[_0x1624dd(0x1f8)]=function(_0x3b9e39,_0x3b7d87){return _0x3b9e39===_0x3b7d87;},_0x389060[_0x1624dd(0x1ea)]=_0x1624dd(0x1a3),_0x389060[_0x1624dd(0x1b5)]=function(_0xcd88db,_0x145289){return _0xcd88db===_0x145289;};const _0xdf6535=_0x389060;fileLogger[_0x1624dd(0x198)]('['+new Date()[_0x1624dd(0x1d3)]()+_0x1624dd(0x186)+_0x568222),(_0xdf6535['yluhD'](process['env'][_0x1624dd(0x19f)],_0xdf6535['hHsLK'])||_0xdf6535[_0x1624dd(0x1b5)](process[_0x1624dd(0x1ef)][_0x1624dd(0x19f)],'1'))&&consoleHolder[_0x1624dd(0x1d6)]('\x0a['+new Date()[_0x1624dd(0x1d3)]()+_0x1624dd(0x186)+_0x568222+'\x0a');};function a117_0x3a84(){const _0x3f46dd=['ojJgz','getUserCredentials','Windows','forEach','bcgDo','12SGhNUe','json','getBrowserStackConfig','toISOString','getos','AOzzo','log','timeout','isTestObservabilitySession','replace','vqshs','appium:app','fromEntries','__cloud_provider___','PathHelper','isInternalHook','nodeRequest','release','getSyncScript','browserstack_executor:\x20','../../../src/bin/utils/constants','2359917yaGtdK','relativeTestFilePath','parse','err','YHyuO','hHsLK','toString','wSyRq','ObservabilitySync:','execSync','env','../../bin/utils/logPatcher','iDIAR','FJNOQ','vTXzn','path','format','ZQKAC','body','yluhD','TIWGL','Acvce','GQbiF','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','Content-Type','\x20:\x20','keys','bs:addPlatformDetails:','length','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','test','patchConsoleLogger','getPlatformVersion','WdnkJ','Visit\x20','printBuildLink','darwin','gmoVt','BS_TESTOPS_BUILD_HASHED_ID','DJzVO','https','prefixTestPath','LVXbQ','util','now','linux','CODECEPT_CUCUMBER','zqndr','local_grid','kCBQa','kaAQf','turboscale','WVULB','OQIym','dist','getFrameworkVersion','XvXOF','BlFCc','Uploading\x20trace\x20logs\x20to:\x20','prefix','lodash','undefined','6120560rVDYgh','^CUSTOM_TAG_\x5cd+$','default','JEST','../../bin/v2/browserstackCLI','winstonLogger','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','qaAeq','then','win32','message','modifyReqForTraceUpload','getPackageVersion','UnhandledError','@playwright/test','maxTotalSockets','UeqEZ','UufTO','capabilities','SrxkF','5|3|4|0|1|2','relative','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','filter','silly','http','ZSibP','getCapabilities','../helper','VTEIo','push','liSBG','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','sqFHt','buildTag','ftgfi','getSession','BROWSERSTACK_TESTHUB_JWT','ZXoBL','RewRz','headers','GEZiL','LpjcU','object','OLFbc','LogCreated','binoE','config','PQYdi','CUSTOM_TAG','EEQFx','lRzfQ','IVmWC','getObservabilityLinkedProductName','trim','removeAnsiColors','platform','lgwZX','BROWSERSTACK_TEST_OBSERVABILITY_YML','CUCUMBER','split','AssertionError','getFailureType','uHpNt','windows-release','null','SVvAg','spy','BROWSERSTACK_RERUN_TESTS','error','hVDLP','mocha','MOCHA','TQCAV','isArray','keepAlive','../../helpers/request-spy','backtrace','application/json','BROWSERSTACK_TEST_OBSERVABILITY','GLBPb','data','map','Failed\x20to\x20determine\x20product\x20linked\x20to\x20Observability\x20test\x20instance\x20:\x20','emit','isUndefined','customTag','Aonmm','OS\x20X','readConfig','automate','test_run_uuid','Gwgfm','[%s][\x20OBSERVABILITY\x20]\x20Build\x20Not\x20Found\x20%s','/builds/','lYNSj','O11yHashedID','stringify','rErvv','getPlatform','Bearer\x20','ojfrl','Linux','4304812boPPOd','stack','sWiyZ','308112heVuaE','Error\x20in\x20getting\x20Linux\x20Details','maxSockets','fJryl','formData','47361195pcnYjJ','../performance/constants','911197zvOUJq','Onuym','platformName','PRINT_BUILDLINK','./constants','includes','][\x20OBSERVABILITY\x20]\x20','FGFWx','hJqol','browserstack','HUB_URL_REGEX','addRequestSpy','shouldReRunObservabilityTests','yIiQi','asyncAwaitNodeReq','cgTQr','match','HTTP','getPlatformDetails','RFhLP','extractValuesWithRegexKeyMatch','bstack:options','QuHPJ','git-repo-info','debug','logs','pid','koAGD','parseFileNames','Agent','getDefaultHeaders','BROWSERSTACK_OBSERVABILITY_DEBUG','GiIYS','expanded','info','true','platformVersion','YRHLz','ATS_HUB_URL_REGEX','../logger','ZWonC','failureData','catch','oGLfl','JBarX','host','huRHA','kLVTm','agent','url','2BfvkUc','getBrowserVersion','X-BSTACK-TESTOPS','WUexK','getAccessKey','DxKXp','toJSON','KZRvC','TEST_OBSERVABILITY_BUILD_TAG','trace','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','map_','xqUMq','@cucumber/cucumber','ZYype','sleep','hostname','SrAGB','uTQFu','measureWrapper','jjQcF','CODECEPT','Vdsjy','fqmfG','1247973LPhqpI'];a117_0x3a84=function(){return _0x3f46dd;};return a117_0x3a84();}const a117_0x5d09d2={};a117_0x5d09d2[a117_0x2e4d4b(0x26e)]=!![],a117_0x5d09d2['timeout']=0xea60,a117_0x5d09d2[a117_0x2e4d4b(0x17b)]=0x2,a117_0x5d09d2[a117_0x2e4d4b(0x232)]=0x2;const httpKeepAliveAgent=new http[(a117_0x2e4d4b(0x19d))](a117_0x5d09d2),a117_0x8d0dec={};a117_0x8d0dec[a117_0x2e4d4b(0x26e)]=!![],a117_0x8d0dec[a117_0x2e4d4b(0x1d7)]=0xea60,a117_0x8d0dec['maxSockets']=0x2,a117_0x8d0dec['maxTotalSockets']=0x2;const httpsKeepAliveAgent=new https[(a117_0x2e4d4b(0x19d))](a117_0x8d0dec),a117_0x31ba0d={};a117_0x31ba0d[a117_0x2e4d4b(0x26e)]=!![],a117_0x31ba0d[a117_0x2e4d4b(0x1d7)]=0xea60,a117_0x31ba0d[a117_0x2e4d4b(0x17b)]=0x2,a117_0x31ba0d[a117_0x2e4d4b(0x232)]=0x2;const httpScreenshotsKeepAliveAgent=new http[(a117_0x2e4d4b(0x19d))](a117_0x31ba0d),a117_0x2b1669={};a117_0x2b1669[a117_0x2e4d4b(0x26e)]=!![],a117_0x2b1669[a117_0x2e4d4b(0x1d7)]=0xea60,a117_0x2b1669[a117_0x2e4d4b(0x17b)]=0x2,a117_0x2b1669['maxTotalSockets']=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a117_0x2e4d4b(0x19d))](a117_0x2b1669);exports[a117_0x2e4d4b(0x18c)]=()=>{const _0x2da9bd=a117_0x2e4d4b,_0x1f9290={};_0x1f9290['WdnkJ']=function(_0x19b498,_0x42d7f7){return _0x19b498!==_0x42d7f7;},_0x1f9290[_0x2da9bd(0x269)]=_0x2da9bd(0x264);const _0x774c70=_0x1f9290;return process['env'][_0x2da9bd(0x267)]&&_0x774c70[_0x2da9bd(0x206)](process[_0x2da9bd(0x1ef)][_0x2da9bd(0x267)],_0x774c70['hVDLP'])?!![]:![];},exports[a117_0x2e4d4b(0x1d8)]=()=>{const _0x44ff29=a117_0x2e4d4b,_0x4faa35={};_0x4faa35[_0x44ff29(0x20f)]=function(_0x304e6e,_0x433dbf){return _0x304e6e===_0x433dbf;},_0x4faa35['lgwZX']=_0x44ff29(0x1a3);const _0x54020a=_0x4faa35;let _0x5ec787=!![];return process[_0x44ff29(0x1ef)]['BROWSERSTACK_TEST_OBSERVABILITY_YML']&&(_0x5ec787=_0x54020a[_0x44ff29(0x20f)](process['env'][_0x44ff29(0x25d)],_0x54020a[_0x44ff29(0x25c)])),process[_0x44ff29(0x1ef)][_0x44ff29(0x272)]&&(_0x5ec787=_0x54020a[_0x44ff29(0x20f)](process[_0x44ff29(0x1ef)]['BROWSERSTACK_TEST_OBSERVABILITY'],_0x54020a['lgwZX'])),_0x5ec787;},exports[a117_0x2e4d4b(0x19c)]=_0x40c30e=>{const _0x7964a9=a117_0x2e4d4b;if(bsSetupHelper[_0x7964a9(0x278)](_0x40c30e))return undefined;try{return _0x40c30e[_0x7964a9(0x259)]()[_0x7964a9(0x25f)](',');}catch(_0x469f6f){return undefined;}},exports[a117_0x2e4d4b(0x208)]=()=>{const _0x5814de=a117_0x2e4d4b,_0x51a5be={'VTEIo':function(_0x26fb6d,_0x36e433){return _0x26fb6d(_0x36e433);},'lYNSj':_0x5814de(0x227),'BlFCc':function(_0x8dcb05,_0x51818f){return _0x8dcb05!==_0x51818f;},'GLBPb':_0x5814de(0x264),'EEQFx':_0x5814de(0x222),'OQIym':_0x5814de(0x16c)};return PerformanceTester[_0x5814de(0x1c5)](PerformanceO11yEvents[_0x5814de(0x183)],async()=>{const _0xb6962c=_0x5814de;try{const _0x23700d=_0x51a5be[_0xb6962c(0x240)](require,_0x51a5be[_0xb6962c(0x16e)]);if(_0x23700d[_0xb6962c(0x16f)]){logger['info'](_0xb6962c(0x207)+O11Y_URL+_0xb6962c(0x16d)+_0x23700d['O11yHashedID']+_0xb6962c(0x229));return;}process[_0xb6962c(0x1ef)][_0xb6962c(0x20b)]&&_0x51a5be[_0xb6962c(0x21e)](process['env'][_0xb6962c(0x20b)],_0x51a5be[_0xb6962c(0x273)])&&_0x51a5be['BlFCc'](process['env']['BS_TESTOPS_BUILD_HASHED_ID'],_0x51a5be[_0xb6962c(0x255)])&&logger[_0xb6962c(0x1a2)](_0xb6962c(0x207)+constants['O11Y_URL']+_0xb6962c(0x16d)+process[_0xb6962c(0x1ef)]['BS_TESTOPS_BUILD_HASHED_ID']+_0xb6962c(0x229));}catch(_0x120130){logger['error'](util[_0xb6962c(0x1f5)](_0x51a5be[_0xb6962c(0x21a)],new Date()[_0xb6962c(0x1d3)](),_0x120130['stack']||_0x120130['message']||_0x120130));}})();},exports[a117_0x2e4d4b(0x261)]=_0x51a94d=>{const _0x35936c=a117_0x2e4d4b,_0x5c64bb={};_0x5c64bb['rPDEV']=_0x35936c(0x260),_0x5c64bb[_0x35936c(0x1f2)]=_0x35936c(0x230);const _0x3ba9e9=_0x5c64bb;if(!_0x51a94d)return null;return _0x51a94d['toString']()[_0x35936c(0x190)](/AssertionError/)?_0x3ba9e9['rPDEV']:_0x3ba9e9[_0x35936c(0x1f2)];},exports[a117_0x2e4d4b(0x21c)]=_0x19471e=>{const _0xdfb4ea=a117_0x2e4d4b,_0x5d0a74={};_0x5d0a74[_0xdfb4ea(0x187)]=_0xdfb4ea(0x26a),_0x5d0a74[_0xdfb4ea(0x1c9)]=_0xdfb4ea(0x231),_0x5d0a74[_0xdfb4ea(0x1b7)]='codeceptjs',_0x5d0a74['zqndr']='jest',_0x5d0a74[_0xdfb4ea(0x1c0)]=_0xdfb4ea(0x1bf);const _0x183798=_0x5d0a74;let _0x32a225=null;switch(_0x19471e){case FRAMEWORKS[_0xdfb4ea(0x26b)]:_0x32a225=bsSetupHelper['getPackageVersion'](_0x183798['FGFWx']);break;case FRAMEWORKS['PLAYWRIGHT']:_0x32a225=bsSetupHelper['getPackageVersion'](_0x183798[_0xdfb4ea(0x1c9)]);break;case FRAMEWORKS[_0xdfb4ea(0x1c7)]:case FRAMEWORKS[_0xdfb4ea(0x213)]:_0x32a225=bsSetupHelper[_0xdfb4ea(0x22f)](_0x183798[_0xdfb4ea(0x1b7)]);break;case FRAMEWORKS[_0xdfb4ea(0x226)]:_0x32a225=bsSetupHelper['getPackageVersion'](_0x183798[_0xdfb4ea(0x214)]);break;case FRAMEWORKS[_0xdfb4ea(0x25e)]:_0x32a225=bsSetupHelper[_0xdfb4ea(0x22f)](_0x183798[_0xdfb4ea(0x1c0)]);break;default:break;}return _0x32a225;},exports[a117_0x2e4d4b(0x1d2)]=_0x2f0159=>{const _0x581451=a117_0x2e4d4b;let _0x28e47f=null;switch(_0x2f0159){case FRAMEWORKS['PLAYWRIGHT']:_0x28e47f=process[_0x581451(0x1ef)]['BROWSERSTACK_CONFIG_FILE_PATH'];break;}if(!_0x28e47f)return;return bsSetupHelper[_0x581451(0x27c)](_0x28e47f,![]);},exports[a117_0x2e4d4b(0x1cc)]=_0x2eafde=>{const _0x5dcc62=a117_0x2e4d4b;return{'username':bsSetupHelper['getUserName'](_0x2eafde),'accessKey':bsSetupHelper[_0x5dcc62(0x1b6)](_0x2eafde)};},exports[a117_0x2e4d4b(0x22e)]=(_0x590908,_0x3b0e8a)=>{const _0x2f1fde=a117_0x2e4d4b,_0x56a974={};_0x56a974[_0x2f1fde(0x18f)]=_0x2f1fde(0x237),_0x56a974['koAGD']=_0x2f1fde(0x250),_0x56a974[_0x2f1fde(0x24a)]='TEST_ATTACHMENT';const _0x34b5c0=_0x56a974,_0x104acd=_0x34b5c0[_0x2f1fde(0x18f)][_0x2f1fde(0x25f)]('|');let _0x505b77=0x0;while(!![]){switch(_0x104acd[_0x505b77++]){case'0':delete _0x590908['body'];continue;case'1':delete _0x590908[_0x2f1fde(0x1d1)];continue;case'2':delete _0x3b0e8a[_0x2f1fde(0x24b)];continue;case'3':if(!_0x590908[_0x2f1fde(0x1f7)][0x0]||!_0x590908[_0x2f1fde(0x1f7)][0x0][_0x2f1fde(0x199)]||!_0x590908[_0x2f1fde(0x1f7)][0x0][_0x2f1fde(0x199)][_0x2f1fde(0x201)])return;continue;case'4':_0x590908[_0x2f1fde(0x17d)]={'data':_0x590908[_0x2f1fde(0x1f7)][0x0]['logs'][0x0][_0x2f1fde(0x274)],'test_run_uuid':_0x590908['body'][0x0]['logs'][0x0][_0x2f1fde(0x27e)],'event_type':_0x34b5c0[_0x2f1fde(0x19b)],'kind':_0x34b5c0['RewRz'],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x2f1fde(0x1d3)](),'fileName':_0x590908[_0x2f1fde(0x1f7)][0x0]['logs'][0x0]['fileName']};continue;case'5':if(!_0x590908[_0x2f1fde(0x1f7)]||!Array[_0x2f1fde(0x26d)](_0x590908['body']))return;continue;}break;}},exports[a117_0x2e4d4b(0x18e)]=async(_0x952003,_0x8e1a74,_0x3f0785,_0x13c43b,_0x19c4c5=!![])=>{const _0xeef414=a117_0x2e4d4b,_0x6456d={};_0x6456d[_0xeef414(0x24f)]=function(_0xe78194,_0x46849a){return _0xe78194===_0x46849a;},_0x6456d['MwzGp']='Content-Type',_0x6456d[_0xeef414(0x174)]='application/json',_0x6456d[_0xeef414(0x188)]=_0xeef414(0x20d),_0x6456d[_0xeef414(0x249)]=function(_0x503dc4,_0x41681e){return _0x503dc4!==_0x41681e;},_0x6456d[_0xeef414(0x21d)]=_0xeef414(0x24e),_0x6456d[_0xeef414(0x1ab)]=_0xeef414(0x1bc);const _0x754e71=_0x6456d,_0xbac42f={..._0x13c43b,...{'method':_0x952003,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x8e1a74,'body':_0x3f0785,'json':_0x754e71[_0xeef414(0x24f)](_0x13c43b[_0xeef414(0x24b)][_0x754e71['MwzGp']],_0x754e71[_0xeef414(0x174)]),'agent':API_URL[_0xeef414(0x185)](_0x754e71['hJqol'])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x754e71[_0xeef414(0x24f)](_0x8e1a74,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0xbac42f[_0xeef414(0x1b0)]=API_URL['includes'](_0x754e71['hJqol'])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports[_0xeef414(0x22e)](_0xbac42f,_0x13c43b),logger[_0xeef414(0x198)](_0xeef414(0x21f)+_0xbac42f[_0xeef414(0x1b1)]));try{const {statusCode:_0x301b23,body:_0x55ba19}=await bsSetupHelper['nodeRequest'](_0x952003,_0x8e1a74,_0xbac42f,_0x13c43b,_0xbac42f[_0xeef414(0x1b1)]);if(_0x754e71[_0xeef414(0x249)](_0x301b23,0xc8))return _0x55ba19?_0x55ba19:_0xeef414(0x243)+_0x301b23;let _0xbf665b=_0x55ba19;if(_0x19c4c5)try{_0x754e71[_0xeef414(0x249)](typeof _0x55ba19,_0x754e71['XvXOF'])&&(_0xbf665b=JSON[_0xeef414(0x1e7)](_0x55ba19));}catch(_0x3370ad){logger[_0xeef414(0x268)](_0x754e71[_0xeef414(0x1ab)],_0x55ba19,util[_0xeef414(0x1f5)](_0x3370ad));}const _0x5b069b={};return _0x5b069b[_0xeef414(0x274)]=_0xbf665b,_0x5b069b;}catch(_0x35d191){logger[_0xeef414(0x268)]('Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20'+util[_0xeef414(0x1f5)](_0x35d191));throw _0x35d191;}},exports[a117_0x2e4d4b(0x1e0)]=(_0x498ce8,_0x11d354,_0x450dfc,_0x54a8bc,_0x958ad6=!![])=>{const _0x506073=a117_0x2e4d4b,_0x2701db={'ZQKAC':function(_0x56927a,_0x3418fe){return _0x56927a!==_0x3418fe;},'iDIAR':function(_0x44b849,_0x488275){return _0x44b849(_0x488275);},'qaAeq':'object','WVULB':function(_0x4dba31,_0x1fa490){return _0x4dba31(_0x1fa490);},'jpXIN':_0x506073(0x1fc),'Acvce':function(_0x31ffad,_0x5efd8b){return _0x31ffad===_0x5efd8b;},'YHyuO':_0x506073(0x1fd),'QuHPJ':_0x506073(0x271),'RFhLP':_0x506073(0x20d)};return new Promise((_0x4323de,_0x39efb3)=>{const _0x215743=_0x506073,_0x39611d={'GEZiL':function(_0x1092b8,_0x4582cc){const _0xb6765a=a117_0x1265;return _0x2701db[_0xb6765a(0x219)](_0x1092b8,_0x4582cc);}},_0x2e8ec0={..._0x54a8bc,...{'method':_0x498ce8,'url':API_URL+'/'+_0x11d354,'body':_0x450dfc,'json':_0x2701db[_0x215743(0x1fa)](_0x54a8bc[_0x215743(0x24b)][_0x2701db[_0x215743(0x1e9)]],_0x2701db[_0x215743(0x196)]),'agent':API_URL['includes'](_0x2701db[_0x215743(0x193)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x2701db['Acvce'](_0x11d354,SCREENSHOT_ENDPOINT)&&(_0x2e8ec0[_0x215743(0x1b0)]=API_URL['includes'](_0x2701db[_0x215743(0x193)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x215743(0x1e0)](_0x498ce8,_0x11d354,_0x2e8ec0,_0x54a8bc,API_URL)[_0x215743(0x22b)](({statusCode:_0x21c756,body:_0x11917b})=>{const _0x4af1cd=_0x215743;if(_0x2701db[_0x4af1cd(0x1f6)](_0x21c756,0xc8))_0x2701db[_0x4af1cd(0x1f1)](_0x39efb3,_0x11917b?_0x11917b:_0x4af1cd(0x243)+_0x21c756);else{if(_0x958ad6)try{_0x2701db[_0x4af1cd(0x1f6)](typeof _0x11917b,_0x2701db[_0x4af1cd(0x22a)])&&(_0x11917b=JSON[_0x4af1cd(0x1e7)](_0x11917b));}catch(_0x501db0){_0x2701db['WVULB'](_0x39efb3,_0x2701db['jpXIN']);return;}const _0xd1572={};_0xd1572[_0x4af1cd(0x274)]=_0x11917b,_0x2701db['WVULB'](_0x4323de,_0xd1572);}})[_0x215743(0x1aa)](_0x10795e=>{const _0x261929=_0x215743;_0x10795e&&_0x39611d[_0x261929(0x24c)](_0x39efb3,_0x10795e);});});},exports['getBuildTags']=_0x2785ec=>{const _0x37a978=a117_0x2e4d4b;if(process[_0x37a978(0x1ef)][_0x37a978(0x1ba)])return process[_0x37a978(0x1ef)][_0x37a978(0x1ba)][_0x37a978(0x25f)](',');if(_0x2785ec[_0x37a978(0x245)])return _0x2785ec['buildTag'];return[];},exports[a117_0x2e4d4b(0x19e)]=(_0x5c02ae=!![])=>{const _0x10215c=a117_0x2e4d4b,_0xae529e={};_0xae529e[_0x10215c(0x16b)]='application/json',_0xae529e[_0x10215c(0x1f3)]=_0x10215c(0x1a3),_0xae529e['gmoVt']='Authorization';const _0x417462=_0xae529e,_0x2276e0={};_0x2276e0[_0x10215c(0x1fd)]=_0x417462[_0x10215c(0x16b)],_0x2276e0[_0x10215c(0x1b4)]=_0x417462['vTXzn'];const _0x2cc52c=_0x2276e0;return _0x5c02ae&&process[_0x10215c(0x1ef)][_0x10215c(0x248)]&&(_0x2cc52c[_0x417462[_0x10215c(0x20a)]]=_0x10215c(0x173)+process[_0x10215c(0x1ef)][_0x10215c(0x248)]),_0x2cc52c;},exports[a117_0x2e4d4b(0x194)]=_0x4cd550=>{const _0x45cd61=a117_0x2e4d4b,_0x26cc12={};_0x26cc12[_0x45cd61(0x246)]=_0x45cd61(0x224);const _0x3fb1ae=_0x26cc12,_0x234ada=[],_0x2609e5=new RegExp(_0x3fb1ae['ftgfi'],'i');return Object[_0x45cd61(0x1ff)](_0x4cd550)[_0x45cd61(0x23a)](_0x4f412c=>_0x2609e5[_0x45cd61(0x203)](_0x4f412c))[_0x45cd61(0x1ce)](_0xefd4e5=>_0x234ada['push'](_0x4cd550[_0xefd4e5])),_0x234ada;},exports['getCustomTags']=_0x1edf8c=>{const _0xa0b629=a117_0x2e4d4b,_0x4b9102=[],_0x26b696=_0x1edf8c[_0xa0b629(0x279)]||process[_0xa0b629(0x1ef)][_0xa0b629(0x254)];return _0x26b696&&_0x4b9102[_0xa0b629(0x241)](_0x26b696),_0x4b9102['push'](...exports[_0xa0b629(0x194)](process[_0xa0b629(0x1ef)])),_0x4b9102[_0xa0b629(0x241)](...exports['extractValuesWithRegexKeyMatch'](_0x1edf8c)),_0x4b9102;},exports[a117_0x2e4d4b(0x25a)]=_0x3f1fc7=>{const _0x147a7f=a117_0x2e4d4b;if(!_0x3f1fc7)return'';return _0x3f1fc7[_0x147a7f(0x1d9)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a117_0x2e4d4b(0x1c1)]=(_0x2d525c=0x64)=>new Promise(_0x8e969=>setTimeout(_0x8e969,_0x2d525c));const getPlatformName=()=>{const _0x3d199f=a117_0x2e4d4b,_0x29e3eb={};_0x29e3eb[_0x3d199f(0x1b9)]=function(_0x13568d,_0x44f3e5){return _0x13568d===_0x44f3e5;},_0x29e3eb[_0x3d199f(0x1fb)]=_0x3d199f(0x22c),_0x29e3eb[_0x3d199f(0x251)]=_0x3d199f(0x1cd),_0x29e3eb[_0x3d199f(0x1ae)]=_0x3d199f(0x209),_0x29e3eb['SrAGB']=_0x3d199f(0x27b),_0x29e3eb[_0x3d199f(0x27a)]=_0x3d199f(0x212),_0x29e3eb['sNhAO']=_0x3d199f(0x175),_0x29e3eb[_0x3d199f(0x1a8)]='Unknown';const _0x30453a=_0x29e3eb;if(_0x30453a[_0x3d199f(0x1b9)](process[_0x3d199f(0x25b)],_0x30453a[_0x3d199f(0x1fb)]))return _0x30453a[_0x3d199f(0x251)];if(_0x30453a[_0x3d199f(0x1b9)](process[_0x3d199f(0x25b)],_0x30453a[_0x3d199f(0x1ae)]))return _0x30453a[_0x3d199f(0x1c3)];if(_0x30453a[_0x3d199f(0x1b9)](process[_0x3d199f(0x25b)],_0x30453a[_0x3d199f(0x27a)]))return _0x30453a['sNhAO'];return _0x30453a[_0x3d199f(0x1a8)];},getMacOSVersion=()=>{const _0x30d01e=a117_0x2e4d4b,_0x984ced={};_0x984ced['YRHLz']='awk\x20\x27/SOFTWARE\x20LICENSE\x20AGREEMENT\x20FOR\x20macOS/\x27\x20\x27/System/Library/CoreServices/Setup\x20Assistant.app/Contents/Resources/en.lproj/OSXSoftwareLicense.rtf\x27\x20|\x20awk\x20-F\x20\x27macOS\x20\x27\x20\x27{print\x20$NF}\x27\x20|\x20awk\x20\x27{print\x20substr($0,\x200,\x20length($0)-1)}\x27';const _0x484525=_0x984ced;return child_process[_0x30d01e(0x1ee)](_0x484525[_0x30d01e(0x1a5)])[_0x30d01e(0x1eb)]()[_0x30d01e(0x259)]();},getLinuxDetails=()=>{const _0x1c4414={'esPju':function(_0x4b24c2,_0x30ce00){return _0x4b24c2(_0x30ce00);},'IVmWC':function(_0x250764,_0x34defd){return _0x250764(_0x34defd);}};return new Promise((_0x18b5dc,_0x4521e0)=>{const _0x37a502=a117_0x1265,_0x3b1f67={'liSBG':function(_0x22af21,_0x16da65){return _0x1c4414['esPju'](_0x22af21,_0x16da65);}};_0x1c4414[_0x37a502(0x257)](getos,(_0x251b91,_0x14b257)=>{const _0x2f5eed=_0x37a502;if(_0x251b91)return _0x3b1f67[_0x2f5eed(0x242)](_0x4521e0,_0x251b91);_0x3b1f67[_0x2f5eed(0x242)](_0x18b5dc,_0x14b257);});});};function a117_0x1265(_0x22e8cf,_0x4982de){const _0x3a8492=a117_0x3a84();return a117_0x1265=function(_0x1265e5,_0x55a572){_0x1265e5=_0x1265e5-0x16b;let _0x3e9aa1=_0x3a8492[_0x1265e5];return _0x3e9aa1;},a117_0x1265(_0x22e8cf,_0x4982de);}exports[a117_0x2e4d4b(0x192)]=async()=>{const _0x2f9e6a=a117_0x2e4d4b,_0x128261={'uHpNt':function(_0x3b2b25){return _0x3b2b25();},'UufTO':_0x2f9e6a(0x27b),'DJzVO':function(_0xcdb7ce){return _0xcdb7ce();},'PQYdi':_0x2f9e6a(0x1cd),'jjQcF':_0x2f9e6a(0x263),'kCBQa':function(_0x193c70){return _0x193c70();},'UeqEZ':_0x2f9e6a(0x175),'vqshs':function(_0x55d665){return _0x55d665();},'AOzzo':_0x2f9e6a(0x17a)};let _0x513f66=_0x128261[_0x2f9e6a(0x262)](getPlatformName),_0x1bfac8=os[_0x2f9e6a(0x1e1)]()[_0x2f9e6a(0x1eb)]();switch(_0x513f66){case _0x128261[_0x2f9e6a(0x234)]:_0x1bfac8=_0x128261[_0x2f9e6a(0x20c)](getMacOSVersion);break;case _0x128261[_0x2f9e6a(0x253)]:try{const _0xef8d5d=(await import(_0x128261[_0x2f9e6a(0x1c6)]))[_0x2f9e6a(0x225)];_0x1bfac8=_0x128261[_0x2f9e6a(0x216)](_0xef8d5d);}catch(_0x1e6c43){exports[_0x2f9e6a(0x198)]('Error\x20in\x20importing\x20windows-release\x20'+_0x1e6c43[_0x2f9e6a(0x1eb)]());}break;case _0x128261[_0x2f9e6a(0x233)]:try{const _0x4a3452=await _0x128261[_0x2f9e6a(0x1da)](getLinuxDetails);_0x4a3452[_0x2f9e6a(0x21b)]&&(_0x513f66=_0x4a3452[_0x2f9e6a(0x21b)]),_0x4a3452[_0x2f9e6a(0x1e1)]&&(_0x1bfac8=_0x4a3452[_0x2f9e6a(0x1e1)][_0x2f9e6a(0x1eb)]());}catch(_0x1be910){exports[_0x2f9e6a(0x198)](_0x128261[_0x2f9e6a(0x1d5)]);}break;default:break;}const _0x49f2af={};return _0x49f2af[_0x2f9e6a(0x182)]=_0x513f66,_0x49f2af[_0x2f9e6a(0x1a4)]=_0x1bfac8,_0x49f2af;},exports[a117_0x2e4d4b(0x1a9)]=(_0x4955e6,_0x1ff281)=>{const _0x336b10=a117_0x2e4d4b,_0x4e9889={};_0x4e9889[_0x336b10(0x265)]=function(_0x2d8f23,_0x51bd52){return _0x2d8f23===_0x51bd52;},_0x4e9889['ojJgz']='test',_0x4e9889[_0x336b10(0x18d)]=function(_0x36eab3,_0x40272d){return _0x36eab3===_0x40272d;},_0x4e9889['RCtgi']=_0x336b10(0x1e8);const _0x2e8fc4=_0x4e9889;if(!_0x4955e6)return[];try{if(_0x2e8fc4[_0x336b10(0x265)](_0x1ff281,_0x2e8fc4[_0x336b10(0x1cb)]))return _0x4955e6[_0x336b10(0x275)](_0x26d886=>{const _0xfb675a=_0x336b10,{stack:_0x9123a4,..._0x1fad80}=_0x26d886,_0x10a82b=Object[_0xfb675a(0x1ff)](_0x1fad80)[_0xfb675a(0x275)](_0x4ca35d=>{return _0x4ca35d+':\x20'+_0x1fad80[_0x4ca35d];}),_0x544df6=_0x9123a4?exports['removeAnsiColors'](_0x9123a4)[_0xfb675a(0x25f)](/\r?\n/):[exports[_0xfb675a(0x25a)](_0x26d886['message'])],_0x350093={};return _0x350093['backtrace']=_0x544df6,_0x350093[_0xfb675a(0x1a1)]=_0x10a82b,_0x350093;});else{if(_0x2e8fc4['yIiQi'](_0x1ff281,_0x2e8fc4['RCtgi'])){const _0x5889c9=[],_0x53f87d=[];return Object[_0x336b10(0x1ff)](_0x4955e6)[_0x336b10(0x1ce)](_0x18a5f7=>{const _0x188895=_0x336b10;try{_0x53f87d[_0x188895(0x241)](_0x18a5f7+':\x20'+_0x4955e6[_0x18a5f7]);}catch(_0x288ada){exports[_0x188895(0x198)](_0x188895(0x239)+_0x288ada[_0x188895(0x22d)]+_0x188895(0x1fe)+_0x288ada['backtrace']);}}),_0x5889c9[_0x336b10(0x241)]({'backtrace':exports[_0x336b10(0x25a)](_0x4955e6[_0x336b10(0x177)])[_0x336b10(0x25f)](/\r?\n/),'expanded':_0x53f87d}),_0x5889c9;}}return[];}catch(_0xab7f1f){exports[_0x336b10(0x198)]('Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20'+_0xab7f1f[_0x336b10(0x22d)]+_0x336b10(0x1fe)+_0xab7f1f[_0x336b10(0x270)]);}return[];};class PathHelper{constructor(_0x5caeeb,_0x5762a9){const _0x2d68c9=a117_0x2e4d4b;this[_0x2d68c9(0x252)]=_0x5caeeb,this[_0x2d68c9(0x220)]=_0x5762a9;}[a117_0x2e4d4b(0x1e6)](_0x5f195e){const _0x5b5816=a117_0x2e4d4b,_0x100aa0=this[_0x5b5816(0x252)]['cwd']||this[_0x5b5816(0x252)]['rootDir'];return path[_0x5b5816(0x238)](_0x100aa0,_0x5f195e);}[a117_0x2e4d4b(0x20e)](_0x34e086){const _0x368bbf=a117_0x2e4d4b,_0x54f106=this[_0x368bbf(0x1e6)](_0x34e086);return this[_0x368bbf(0x220)]?path['join'](this[_0x368bbf(0x220)],_0x54f106):_0x54f106;}}exports[a117_0x2e4d4b(0x1de)]=PathHelper,exports[a117_0x2e4d4b(0x18b)]=(_0xf4b336=!![])=>{const _0x532c17=a117_0x2e4d4b,_0xc4b996={};_0xc4b996[_0x532c17(0x1ec)]=function(_0xf2a78f,_0x337106){return _0xf2a78f===_0x337106;},_0xc4b996[_0x532c17(0x1ac)]=_0x532c17(0x1b4),_0xc4b996[_0x532c17(0x1af)]=_0x532c17(0x1a3),_0xc4b996[_0x532c17(0x1f9)]=_0x532c17(0x191),_0xc4b996[_0x532c17(0x181)]=_0x532c17(0x189),_0xc4b996[_0x532c17(0x1a0)]=_0x532c17(0x215);const _0x1eefc5=_0xc4b996;requestSpy[_0x532c17(0x266)]((_0x25e725,_0x5a5b30)=>{const _0x23cebf=_0x532c17;_0x5a5b30&&!(_0x5a5b30['headers']&&_0x1eefc5[_0x23cebf(0x1ec)](_0x5a5b30[_0x23cebf(0x24b)][_0x1eefc5['JBarX']],_0x1eefc5[_0x23cebf(0x1af)]))&&(_0x5a5b30[_0x23cebf(0x1ad)]=_0x5a5b30[_0x23cebf(0x1c2)],delete _0x5a5b30[_0x23cebf(0x1c2)],_0xf4b336&&process[_0x23cebf(0x277)]('bs:addLog:'+process['pid'],{'timestamp':new Date()[_0x23cebf(0x1d3)](),'level':null,'message':null,'kind':_0x1eefc5[_0x23cebf(0x1f9)],'http_response':_0x5a5b30})),_0x5a5b30&&(constants[_0x23cebf(0x18a)][_0x23cebf(0x203)](_0x5a5b30['host'])||constants[_0x23cebf(0x1a6)][_0x23cebf(0x203)](_0x5a5b30[_0x23cebf(0x1ad)]))?global['__cloud_provider___']=_0x1eefc5[_0x23cebf(0x181)]:global[_0x23cebf(0x1dd)]=_0x1eefc5['GiIYS'];});},exports[a117_0x2e4d4b(0x204)]=()=>{const _0x4e119c=a117_0x2e4d4b,_0x5c3650={'zfVXw':function(_0x14a732,_0x56b7e7){return _0x14a732(_0x56b7e7);}};console={},Object[_0x4e119c(0x1ff)](consoleHolder)['forEach'](_0xcb0a87=>{_0x5c3650['zfVXw'](isFunction,consoleHolder[_0xcb0a87])?console[_0xcb0a87]=(..._0x6babcb)=>{try{!Object['keys'](BSTestOpsPatcher)['includes'](_0xcb0a87)?consoleHolder[_0xcb0a87](..._0x6babcb):BSTestOpsPatcher[_0xcb0a87](..._0x6babcb);}catch(_0x56db20){consoleHolder[_0xcb0a87](..._0x6babcb);}}:console[_0xcb0a87]=consoleHolder[_0xcb0a87];});},exports[a117_0x2e4d4b(0x1e2)]=()=>a117_0x2e4d4b(0x1e3)+JSON[a117_0x2e4d4b(0x170)]({'action':'annotate','arguments':{'data':a117_0x2e4d4b(0x1ed)+Date[a117_0x2e4d4b(0x211)](),'level':a117_0x2e4d4b(0x198)}}),exports[a117_0x2e4d4b(0x258)]=_0x356c6a=>{const _0x1e8e88=a117_0x2e4d4b,_0x83f6c5={};_0x83f6c5[_0x1e8e88(0x178)]=function(_0x3c55de,_0x134a98){return _0x3c55de===_0x134a98;},_0x83f6c5['LpjcU']=_0x1e8e88(0x189),_0x83f6c5[_0x1e8e88(0x1c4)]=_0x1e8e88(0x1db),_0x83f6c5['sqFHt']='app',_0x83f6c5[_0x1e8e88(0x1cf)]=function(_0x5745ea,_0x59f434){return _0x5745ea>_0x59f434;},_0x83f6c5[_0x1e8e88(0x1be)]='app-automate',_0x83f6c5['SrxkF']=_0x1e8e88(0x195),_0x83f6c5['TQCAV']='turboScaleGridDetails',_0x83f6c5[_0x1e8e88(0x1c8)]=_0x1e8e88(0x218),_0x83f6c5[_0x1e8e88(0x217)]=_0x1e8e88(0x27d);const _0x5c2f6e=_0x83f6c5;let _0x5141a6=null;try{if(_0x5c2f6e[_0x1e8e88(0x178)](global['__cloud_provider___'],_0x5c2f6e[_0x1e8e88(0x24d)])){if(_0x356c6a[_0x5c2f6e['uTQFu']]||_0x356c6a[_0x5c2f6e['sqFHt']]||!bsSetupHelper['isUndefined'](global[_0x1e8e88(0x235)])&&_0x5c2f6e[_0x1e8e88(0x1cf)](global['capabilities'][_0x1e8e88(0x201)],0x0)&&(global[_0x1e8e88(0x235)][0x0][_0x5c2f6e[_0x1e8e88(0x244)]]||global[_0x1e8e88(0x235)][0x0][_0x5c2f6e[_0x1e8e88(0x1c4)]]))_0x5141a6=_0x5c2f6e[_0x1e8e88(0x1be)];else _0x356c6a[_0x5c2f6e[_0x1e8e88(0x236)]]&&_0x356c6a[_0x5c2f6e[_0x1e8e88(0x236)]][_0x5c2f6e[_0x1e8e88(0x26c)]]?_0x5141a6=_0x5c2f6e[_0x1e8e88(0x1c8)]:_0x5141a6=_0x5c2f6e['kaAQf'];}}catch(_0x4c2650){exports[_0x1e8e88(0x198)](_0x1e8e88(0x276)+_0x4c2650);}return _0x5141a6;},exports['sendPlatformDetails']=async(_0x35723c,_0x268ab4,_0x5423fa=![])=>{const _0x5373b7=a117_0x2e4d4b,_0x913469={};_0x913469[_0x5373b7(0x23d)]=function(_0x20596a,_0x14c2b4){return _0x20596a===_0x14c2b4;},_0x913469[_0x5373b7(0x17c)]='browserstack',_0x913469[_0x5373b7(0x256)]='unknown_grid',_0x913469[_0x5373b7(0x171)]='TEST_PLATFORM';const _0x2fc304=_0x913469;try{const _0xddb769=await _0x35723c[_0x5373b7(0x23e)](),_0x32398d=await _0x35723c[_0x5373b7(0x247)](),_0x2b7c46={},_0x427888=Object[_0x5373b7(0x1dc)](_0x32398d[_0x5373b7(0x23e)]()[_0x5373b7(0x1bd)]),_0x303d91={'product':exports[_0x5373b7(0x258)](_0x427888),'capabilities':_0x427888,'platform':_0xddb769[_0x5373b7(0x172)](),'platform_version':bsSetupHelper[_0x5373b7(0x205)](_0x2fc304[_0x5373b7(0x23d)](global['__cloud_provider___'],_0x2fc304[_0x5373b7(0x17c)])),'browser':_0xddb769['getBrowserName'](),'browser_version':_0xddb769[_0x5373b7(0x1b3)](),'session_id':_0x32398d[_0x5373b7(0x1b8)]()};global[_0x5373b7(0x1dd)]?_0x2b7c46[global['__cloud_provider___']]=_0x303d91:_0x2b7c46[_0x2fc304[_0x5373b7(0x256)]]=_0x303d91;if(_0x5423fa)return _0x2b7c46;process[_0x5373b7(0x277)](_0x5373b7(0x200)+process[_0x5373b7(0x19a)],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x2fc304['rErvv'],'http_response':_0x2b7c46,'uuid':_0x268ab4});}catch(_0x32db09){exports[_0x5373b7(0x198)](_0x5373b7(0x202)+_0x32db09);}},exports[a117_0x2e4d4b(0x1df)]=_0x51e656=>{return _0x51e656&&_0x51e656['toString']()['match'](/browserstack internal helper hook/);};
@@ -1 +1 @@
1
- function a118_0x3c41(){var _0x26efa1=['22702hMjfyW','3687770efbaFZ','testorchestration/api/v1/failed-tests','4169630prHnQI','30767MYLVVH','https://collector-observability.browserstack.com','70fKbhkr','983248MCDfvf','735420iYOOgh','testorchestration/api/v1/split-tests','4848SFJxyw','232644xYoCyI','17yBUNZt','12mjTLCv','18kSrhKA','ORCHESTRATION_API_URL'];a118_0x3c41=function(){return _0x26efa1;};return a118_0x3c41();}var a118_0x588d05=a118_0x15d3;function a118_0x15d3(_0xb1ae8c,_0x600ef0){var _0x3c41f6=a118_0x3c41();return a118_0x15d3=function(_0x15d34f,_0x10ff48){_0x15d34f=_0x15d34f-0x71;var _0x466c6a=_0x3c41f6[_0x15d34f];return _0x466c6a;},a118_0x15d3(_0xb1ae8c,_0x600ef0);}(function(_0x12bc32,_0x84c596){var _0x5a271b=a118_0x15d3,_0x77d3ca=_0x12bc32();while(!![]){try{var _0x24dd55=-parseInt(_0x5a271b(0x78))/0x1*(parseInt(_0x5a271b(0x7c))/0x2)+-parseInt(_0x5a271b(0x79))/0x3*(parseInt(_0x5a271b(0x74))/0x4)+parseInt(_0x5a271b(0x7d))/0x5+-parseInt(_0x5a271b(0x77))/0x6*(-parseInt(_0x5a271b(0x72))/0x7)+parseInt(_0x5a271b(0x73))/0x8+parseInt(_0x5a271b(0x7a))/0x9*(-parseInt(_0x5a271b(0x7f))/0xa)+-parseInt(_0x5a271b(0x80))/0xb*(-parseInt(_0x5a271b(0x76))/0xc);if(_0x24dd55===_0x84c596)break;else _0x77d3ca['push'](_0x77d3ca['shift']());}catch(_0x58c3e5){_0x77d3ca['push'](_0x77d3ca['shift']());}}}(a118_0x3c41,0x965c3));var a118_0x972caf={};a118_0x972caf[a118_0x588d05(0x7b)]=a118_0x588d05(0x71),a118_0x972caf['FAILED_TESTS_ENDPOINT']=a118_0x588d05(0x7e),a118_0x972caf['SPLIT_TESTS_ENDPOINT']=a118_0x588d05(0x75),module['exports']=a118_0x972caf;
1
+ function a118_0x5d27(){var _0x2e40c3=['2484174QkoBFV','1smzXWy','34576ujgbZI','https://collector-observability.browserstack.com','testorchestration/api/v1/split-tests','2535420nPbChN','testorchestration/api/v1/failed-tests','16hxnsVZ','517752zuWqab','5480262QBufMG','SPLIT_TESTS_ENDPOINT','2391780IKfOnW','413820axxJGp','exports'];a118_0x5d27=function(){return _0x2e40c3;};return a118_0x5d27();}var a118_0x3f1d7a=a118_0x6263;function a118_0x6263(_0x22e30b,_0x12b6e1){var _0x5d2728=a118_0x5d27();return a118_0x6263=function(_0x6263d4,_0x15998a){_0x6263d4=_0x6263d4-0x169;var _0x18bb55=_0x5d2728[_0x6263d4];return _0x18bb55;},a118_0x6263(_0x22e30b,_0x12b6e1);}(function(_0x479d9b,_0x1dc2b6){var _0x359344=a118_0x6263,_0x4bd777=_0x479d9b();while(!![]){try{var _0x5bcd72=-parseInt(_0x359344(0x176))/0x1*(-parseInt(_0x359344(0x169))/0x2)+parseInt(_0x359344(0x16f))/0x3+parseInt(_0x359344(0x173))/0x4+-parseInt(_0x359344(0x172))/0x5+-parseInt(_0x359344(0x16c))/0x6+-parseInt(_0x359344(0x175))/0x7+-parseInt(_0x359344(0x16e))/0x8*(-parseInt(_0x359344(0x170))/0x9);if(_0x5bcd72===_0x1dc2b6)break;else _0x4bd777['push'](_0x4bd777['shift']());}catch(_0x32becf){_0x4bd777['push'](_0x4bd777['shift']());}}}(a118_0x5d27,0x3e57b));var a118_0x2f07a3={};a118_0x2f07a3['ORCHESTRATION_API_URL']=a118_0x3f1d7a(0x16a),a118_0x2f07a3['FAILED_TESTS_ENDPOINT']=a118_0x3f1d7a(0x16d),a118_0x2f07a3[a118_0x3f1d7a(0x171)]=a118_0x3f1d7a(0x16b),module[a118_0x3f1d7a(0x174)]=a118_0x2f07a3;
@@ -1 +1 @@
1
- function a119_0x3437(){const _0x3145e1=['_CI]\x20Error\x20sending\x20failed\x20test\x20','_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20','dbjGl','_CI]\x20API\x20failed\x20count\x20updated:\x20','writeState','_sendFailedTestsToAPI','message','rdGdw','UCGRY','803TBPuAK','./fileHelper','warn','_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20','failFastConfig','XtEAc','stack','_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20','SasaW','putFailedTests','failFastState.lock','150074yIvlGG','uniqueFailedTests','8xzcyqk','TTdWi','workingDir','error','reportedFailuresToAPI','_Local]\x20State\x20initialized\x20from\x20file.','isCIMode','lockFilePath','from','KQnbT','8YhyBhG','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','993492Xpiovv','BROWSERSTACK_TOTAL_NODE_COUNT','_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20','lastAPIFailedCount','34570MiMBMI','env','_initializeStateFromFile','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.','BROWSERSTACK_NODE_INDEX','path','UULps','info','JSoYD','fFSGg','QntUD','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.','ssfQM','CqZSX','Enkoc','YXAyr','failureThresholdCount','length','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','pollingInterval','_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20','dmjEG','cleanup','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','readState','8OpqSWY','../logger','dclyA','toISOString','existsSync','\x20(was\x20','16351452BNDKjw','_getDefaultState','_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20','catch','stateFilePath','tFDHf','_CI]\x20Polling\x20started\x20with\x20interval:\x20','exports','totalTests','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','BROWSERSTACK_BUILD_RUN_IDENTIFIER','number','kHYSU','failFastActiveMarkerPath','XPXVF','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','fileHelper','buildRunIdentifier','pxdsU','failFastState.json','\x20to\x20API:\x20','debug','kPtsS','failFastActive','_CI]\x20Error\x20during\x20polling\x20logic:\x20','_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20','6439266aCLvDw','shouldFailFast','passed','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','xQNKc','2125065ENBWBU','vHVsW','XrtOq','newState','FailFastManager','XcMCg','_pollFailedTests','\x0aStack:\x20','oFxIe','7SClopE','_fetchAPIFailedCount','kzDBV','stopPolling','Efpmw','join','495012IEgAsV','state','mctit',']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','MWjby','PiAkw','TTWCt','winstonLogger','projectName','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20','buildName','EQOiU'];a119_0x3437=function(){return _0x3145e1;};return a119_0x3437();}function a119_0x2e2b(_0x53e423,_0x1ee3cc){const _0x343709=a119_0x3437();return a119_0x2e2b=function(_0x2e2bc9,_0x2f0d61){_0x2e2bc9=_0x2e2bc9-0x8c;let _0x91253f=_0x343709[_0x2e2bc9];return _0x91253f;},a119_0x2e2b(_0x53e423,_0x1ee3cc);}const a119_0x46110d=a119_0x2e2b;(function(_0x3ed49e,_0x5c1cb5){const _0x61de68=a119_0x2e2b,_0x64d727=_0x3ed49e();while(!![]){try{const _0x2477ca=-parseInt(_0x61de68(0xcd))/0x1*(parseInt(_0x61de68(0xcb))/0x2)+-parseInt(_0x61de68(0xaa))/0x3+parseInt(_0x61de68(0xd7))/0x4*(-parseInt(_0x61de68(0x9b))/0x5)+parseInt(_0x61de68(0xd9))/0x6*(-parseInt(_0x61de68(0xa4))/0x7)+parseInt(_0x61de68(0xf6))/0x8*(parseInt(_0x61de68(0x96))/0x9)+-parseInt(_0x61de68(0xdd))/0xa*(-parseInt(_0x61de68(0xbf))/0xb)+parseInt(_0x61de68(0xfc))/0xc;if(_0x2477ca===_0x5c1cb5)break;else _0x64d727['push'](_0x64d727['shift']());}catch(_0x2a02ee){_0x64d727['push'](_0x64d727['shift']());}}}(a119_0x3437,0x862ac));const fs=require('fs'),path=require(a119_0x46110d(0xe2)),FileHelper=require(a119_0x46110d(0xc0)),RequestUtils=require('./requestUtils'),logger=require(a119_0x46110d(0xf7))[a119_0x46110d(0xb1)],POLLING_INTERVAL=0x2710,TAG=a119_0x46110d(0x9f);class FailFastManager{constructor(_0x5d6ddd,_0x16882d,_0x50f553){const _0x3dd022=a119_0x46110d,_0xce0cf1={};_0xce0cf1[_0x3dd022(0x9c)]=function(_0x3ecef7,_0x4d28f2){return _0x3ecef7+_0x4d28f2;},_0xce0cf1[_0x3dd022(0xa0)]=_0x3dd022(0xa2),_0xce0cf1[_0x3dd022(0xe3)]=function(_0xdde51d,_0xd3b28c){return _0xdde51d||_0xd3b28c;},_0xce0cf1[_0x3dd022(0x108)]=_0x3dd022(0x8f),_0xce0cf1['XrtOq']=_0x3dd022(0xca),_0xce0cf1[_0x3dd022(0xe5)]='failFast.active';const _0x3490cb=_0xce0cf1;this[_0x3dd022(0xc4)]=_0x3490cb[_0x3dd022(0xe3)](_0x5d6ddd,{}),this[_0x3dd022(0xb4)]=_0x16882d,this['projectName']=_0x50f553,this[_0x3dd022(0xd3)]=!!(process[_0x3dd022(0xde)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER']&&process[_0x3dd022(0xde)][_0x3dd022(0xe1)]&&process[_0x3dd022(0xde)][_0x3dd022(0xda)]);const _0xff9f0d=this[_0x3dd022(0xc4)][_0x3dd022(0xcf)];this[_0x3dd022(0x100)]=path[_0x3dd022(0xa9)](_0xff9f0d,_0x3490cb[_0x3dd022(0x108)]),this[_0x3dd022(0xd4)]=path[_0x3dd022(0xa9)](_0xff9f0d,_0x3490cb[_0x3dd022(0x9d)]),this['failFastActiveMarkerPath']=path[_0x3dd022(0xa9)](_0xff9f0d,_0x3490cb[_0x3dd022(0xe5)]),this[_0x3dd022(0x8c)]=new FileHelper(this['failFastConfig'],this[_0x3dd022(0x100)],this[_0x3dd022(0xd4)],this['_getDefaultState']()),this[_0x3dd022(0xab)]=this[_0x3dd022(0xfd)](),this['pollingInterval']=null,this[_0x3dd022(0xd3)]&&(this[_0x3dd022(0xd1)]=new Set()),this[_0x3dd022(0xdf)]()[_0x3dd022(0xff)](_0x11eabd=>{const _0x39d3a2=_0x3dd022;logger[_0x39d3a2(0xd0)]('['+TAG+_0x39d3a2(0xc3)+_0x11eabd[_0x39d3a2(0xbc)]+(_0x11eabd[_0x39d3a2(0xc6)]?_0x3490cb['vHVsW'](_0x3490cb[_0x39d3a2(0xa0)],_0x11eabd[_0x39d3a2(0xc6)]):'')),this[_0x39d3a2(0xab)]=this[_0x39d3a2(0xfd)]();}),this[_0x3dd022(0xd3)]&&this['startPolling'](),logger['debug']('['+TAG+']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20'+this[_0x3dd022(0xc4)][_0x3dd022(0xed)]+',\x20CI\x20Mode:\x20'+this['isCIMode']);}[a119_0x46110d(0xfd)](){const _0x1e170e={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x1e170e;}async[a119_0x46110d(0xdf)](){const _0x28ac82=a119_0x46110d,_0x44e7a9={};_0x44e7a9[_0x28ac82(0xd6)]=function(_0x279c62,_0x3245ae){return _0x279c62+_0x3245ae;},_0x44e7a9['TTWCt']=_0x28ac82(0xa2);const _0x2b2d67=_0x44e7a9;if(this[_0x28ac82(0xd3)])try{fs[_0x28ac82(0xfa)](this[_0x28ac82(0x109)])&&(this[_0x28ac82(0xab)][_0x28ac82(0x93)]=!![],logger[_0x28ac82(0x91)]('['+TAG+'_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.'));}catch(_0x8e612f){logger[_0x28ac82(0xd0)]('['+TAG+_0x28ac82(0xf4)+_0x8e612f[_0x28ac82(0xbc)]+(_0x8e612f[_0x28ac82(0xc6)]?_0x2b2d67[_0x28ac82(0xd6)](_0x2b2d67['TTWCt'],_0x8e612f[_0x28ac82(0xc6)]):''));}else try{const _0x127bef=await this['fileHelper'][_0x28ac82(0xf5)]();if(_0x127bef)this['state']={...this[_0x28ac82(0xfd)](),..._0x127bef,'uniqueFailedTests':new Set(_0x127bef[_0x28ac82(0xcc)]||[])},logger[_0x28ac82(0x91)]('['+TAG+_0x28ac82(0xd2));else{logger[_0x28ac82(0x91)]('['+TAG+'_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.');const _0x1eed95=this['_getDefaultState'](),_0x134033={..._0x1eed95,'uniqueFailedTests':Array['from'](_0x1eed95['uniqueFailedTests'])};await this[_0x28ac82(0x8c)][_0x28ac82(0xba)](_0x134033),this[_0x28ac82(0xab)]=_0x1eed95;}}catch(_0x411b04){logger['debug']('['+TAG+_0x28ac82(0xc2)+_0x411b04['message']+(_0x411b04[_0x28ac82(0xc6)]?_0x2b2d67[_0x28ac82(0xd6)](_0x2b2d67[_0x28ac82(0xb0)],_0x411b04['stack']):'')),this[_0x28ac82(0xab)]=this[_0x28ac82(0xfd)]();}}async['onTestDone'](_0x45589c,_0x32095c){const _0x4f9339=a119_0x46110d,_0x43efd5={};_0x43efd5[_0x4f9339(0xaf)]=function(_0x289c0e,_0x49a2dd){return _0x289c0e>_0x49a2dd;},_0x43efd5['XhYjO']='failed',_0x43efd5[_0x4f9339(0xce)]=_0x4f9339(0x98),_0x43efd5[_0x4f9339(0xa3)]=function(_0x41f78c,_0x3118bb){return _0x41f78c+_0x3118bb;},_0x43efd5[_0x4f9339(0xae)]=_0x4f9339(0xa2),_0x43efd5[_0x4f9339(0xa8)]=function(_0x3fc8a4,_0x5e2e5d){return _0x3fc8a4||_0x5e2e5d;};const _0x154c47=_0x43efd5;if(this[_0x4f9339(0xd3)])this['state'][_0x4f9339(0x104)]+=0x1,_0x32095c&&_0x154c47[_0x4f9339(0xaf)](_0x32095c[_0x4f9339(0xee)],0x0)&&(!this[_0x4f9339(0xd1)]['has'](_0x45589c)&&(await this[_0x4f9339(0xbb)](_0x45589c),this[_0x4f9339(0xd1)]['add'](_0x45589c)));else try{const _0x1523c9={'fullName':_0x45589c,'status':_0x32095c&&_0x154c47[_0x4f9339(0xaf)](_0x32095c[_0x4f9339(0xee)],0x0)?_0x154c47['XhYjO']:_0x154c47['TTdWi']},_0x64b4c4=await this[_0x4f9339(0x8c)]['recordTestResult'](_0x1523c9);this[_0x4f9339(0xab)]={...this['_getDefaultState'](),..._0x64b4c4[_0x4f9339(0x9e)],'uniqueFailedTests':new Set(_0x64b4c4[_0x4f9339(0x9e)][_0x4f9339(0xcc)]||[])};}catch(_0x23a8c5){logger[_0x4f9339(0xd0)]('['+TAG+_0x4f9339(0x95)+_0x23a8c5[_0x4f9339(0xbc)]+(_0x23a8c5[_0x4f9339(0xc6)]?_0x154c47['oFxIe'](_0x154c47[_0x4f9339(0xae)],_0x23a8c5[_0x4f9339(0xc6)]):''));try{const _0x29ab98=await this[_0x4f9339(0x8c)][_0x4f9339(0xf5)]();this[_0x4f9339(0xab)]={...this['_getDefaultState'](),..._0x154c47['Efpmw'](_0x29ab98,{}),'uniqueFailedTests':new Set(_0x29ab98?_0x29ab98[_0x4f9339(0xcc)]||[]:[])},logger[_0x4f9339(0x91)]('['+TAG+'_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.');}catch(_0x32df4a){logger[_0x4f9339(0xd0)]('['+TAG+_0x4f9339(0xb7)+_0x32df4a['message']+(_0x32df4a['stack']?_0x154c47[_0x4f9339(0xa3)](_0x154c47[_0x4f9339(0xae)],_0x32df4a['stack']):'')),this[_0x4f9339(0xab)]=this[_0x4f9339(0xfd)]();}}}async[a119_0x46110d(0xbb)](_0x2a2c90){const _0x1c4f0c=a119_0x46110d,_0x14d2b2={};_0x14d2b2[_0x1c4f0c(0xac)]=function(_0x33476a,_0x13849c){return _0x33476a+_0x13849c;},_0x14d2b2[_0x1c4f0c(0xb8)]='\x0aStack:\x20';const _0x4ced0e=_0x14d2b2;if(!this[_0x1c4f0c(0xd3)]||!_0x2a2c90)return;try{logger[_0x1c4f0c(0x91)]('['+TAG+_0x1c4f0c(0xb3)+_0x2a2c90);const _0x10cfe8={};_0x10cfe8[_0x1c4f0c(0xb4)]=this[_0x1c4f0c(0xb4)],_0x10cfe8[_0x1c4f0c(0xb2)]=this[_0x1c4f0c(0xb2)],_0x10cfe8['failedTests']=[_0x2a2c90],_0x10cfe8[_0x1c4f0c(0x8d)]=process[_0x1c4f0c(0xde)][_0x1c4f0c(0x106)],await RequestUtils[_0x1c4f0c(0xc9)](_0x10cfe8);}catch(_0x8d265d){logger['error']('['+TAG+_0x1c4f0c(0xb6)+_0x2a2c90+_0x1c4f0c(0x90)+_0x8d265d[_0x1c4f0c(0xbc)]+(_0x8d265d['stack']?_0x4ced0e[_0x1c4f0c(0xac)](_0x4ced0e['dbjGl'],_0x8d265d['stack']):''));}}async[a119_0x46110d(0xa5)](){const _0x3752fb=a119_0x46110d,_0x8ef42a={};_0x8ef42a[_0x3752fb(0x10a)]=function(_0x5c6dda,_0x4ceed8){return _0x5c6dda===_0x4ceed8;},_0x8ef42a[_0x3752fb(0xea)]=_0x3752fb(0x107),_0x8ef42a[_0x3752fb(0x101)]=function(_0x5deccf,_0x2c7903){return _0x5deccf+_0x2c7903;},_0x8ef42a[_0x3752fb(0xe6)]='\x0aStack:\x20',_0x8ef42a[_0x3752fb(0xeb)]=function(_0x1925e3,_0x24ad9d){return _0x1925e3!==_0x24ad9d;};const _0x33de41=_0x8ef42a;if(!this[_0x3752fb(0xd3)])return 0x0;try{const _0x41230c={};_0x41230c[_0x3752fb(0xb4)]=this[_0x3752fb(0xb4)],_0x41230c[_0x3752fb(0xb2)]=this[_0x3752fb(0xb2)],_0x41230c[_0x3752fb(0x8d)]=process[_0x3752fb(0xde)][_0x3752fb(0x106)];const _0x5d41b1=await RequestUtils['getFailedTestsCount'](_0x41230c);return logger[_0x3752fb(0x91)]('['+TAG+_0x3752fb(0x99)+_0x5d41b1),_0x33de41[_0x3752fb(0x10a)](typeof _0x5d41b1,_0x33de41['CqZSX'])?_0x5d41b1:0x0;}catch(_0x213f30){return logger[_0x3752fb(0xd0)]('['+TAG+_0x3752fb(0xf1)+_0x213f30[_0x3752fb(0xbc)]+(_0x213f30['stack']?_0x33de41[_0x3752fb(0x101)](_0x33de41['fFSGg'],_0x213f30[_0x3752fb(0xc6)]):'')),_0x33de41[_0x3752fb(0xeb)](this[_0x3752fb(0xab)][_0x3752fb(0xdc)],undefined)?this[_0x3752fb(0xab)][_0x3752fb(0xdc)]:0x0;}}async[a119_0x46110d(0xa1)](){const _0xe10346=a119_0x46110d,_0x16526a={};_0x16526a['BCFxW']=function(_0x3e07fb,_0x2c233e){return _0x3e07fb!==_0x2c233e;},_0x16526a[_0xe10346(0xe9)]=function(_0x2f6f19,_0x4ae11d){return _0x2f6f19+_0x4ae11d;},_0x16526a['xQNKc']=_0xe10346(0xa2);const _0x2d5720=_0x16526a;if(!this[_0xe10346(0xd3)])return;try{const _0x441c59=await this[_0xe10346(0xa5)]();_0x2d5720['BCFxW'](_0x441c59,this[_0xe10346(0xab)][_0xe10346(0xdc)])&&(logger[_0xe10346(0x91)]('['+TAG+_0xe10346(0xb9)+_0x441c59+_0xe10346(0xfb)+this[_0xe10346(0xab)][_0xe10346(0xdc)]+')'),this[_0xe10346(0xab)]['lastAPIFailedCount']=_0x441c59);}catch(_0xdc8a03){logger['error']('['+TAG+_0xe10346(0x94)+_0xdc8a03[_0xe10346(0xbc)]+(_0xdc8a03[_0xe10346(0xc6)]?_0x2d5720[_0xe10346(0xe9)](_0x2d5720[_0xe10346(0x9a)],_0xdc8a03[_0xe10346(0xc6)]):''));}}async['startPolling'](){const _0x45e103=a119_0x46110d,_0x236bb6={'EQOiU':function(_0x3e5031,_0x178d83,_0x11b9d3){return _0x3e5031(_0x178d83,_0x11b9d3);}};this['pollingInterval']&&this[_0x45e103(0xa7)](),this[_0x45e103(0xd3)]&&(await this['_pollFailedTests'](),this[_0x45e103(0xf0)]=_0x236bb6[_0x45e103(0xb5)](setInterval,async()=>{const _0x529c52=_0x45e103;await this[_0x529c52(0xa1)]();},POLLING_INTERVAL),logger[_0x45e103(0x91)]('['+TAG+_0x45e103(0x102)+POLLING_INTERVAL+'ms.'));}[a119_0x46110d(0xa7)](){const _0x1a43b1=a119_0x46110d,_0x369650={'cNNbP':function(_0x509652,_0x5629b9){return _0x509652(_0x5629b9);}};this[_0x1a43b1(0xf0)]&&(_0x369650['cNNbP'](clearInterval,this[_0x1a43b1(0xf0)]),this[_0x1a43b1(0xf0)]=null,logger['debug']('['+TAG+']\x20Polling\x20stopped.'));}async[a119_0x46110d(0x97)](){const _0xd1b19c=a119_0x46110d,_0x4ef406={};_0x4ef406[_0xd1b19c(0xe7)]=function(_0x916e81,_0x170e61){return _0x916e81===_0x170e61;},_0x4ef406['rdGdw']=function(_0x2b9b3c,_0xb1684d){return _0x2b9b3c<=_0xb1684d;},_0x4ef406['UCGRY']=function(_0xdc1728,_0xdccb73){return _0xdc1728+_0xdccb73;},_0x4ef406[_0xd1b19c(0xec)]='\x0aStack:\x20',_0x4ef406[_0xd1b19c(0x92)]=function(_0x1c7686,_0xe61a05){return _0x1c7686!==_0xe61a05;},_0x4ef406[_0xd1b19c(0xf8)]=function(_0x1182b1,_0x468f3b){return _0x1182b1>=_0x468f3b;},_0x4ef406['SasaW']=function(_0x46ba23,_0x3a8d62){return _0x46ba23+_0x3a8d62;},_0x4ef406[_0xd1b19c(0xa6)]=function(_0x7fa7,_0x94518f){return _0x7fa7+_0x94518f;},_0x4ef406['dmjEG']=function(_0x535235,_0x3e1f5e){return _0x535235+_0x3e1f5e;};const _0x5927be=_0x4ef406,{failureThresholdCount:_0x4ec488}=this[_0xd1b19c(0xc4)];if(_0x5927be['QntUD'](_0x4ec488,null)||_0x5927be[_0xd1b19c(0xe7)](_0x4ec488,undefined)||_0x5927be[_0xd1b19c(0xbd)](_0x4ec488,0x0))return logger['debug']('['+TAG+_0xd1b19c(0xad)),![];if(this['isCIMode']){try{if(fs[_0xd1b19c(0xfa)](this[_0xd1b19c(0x109)]))return logger['debug']('['+TAG+_0xd1b19c(0xef)),!this[_0xd1b19c(0xab)][_0xd1b19c(0x93)]&&(this['state']['failFastActive']=!![]),this[_0xd1b19c(0xa7)](),!![];}catch(_0x1a411c){logger[_0xd1b19c(0xd0)]('['+TAG+'_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20'+_0x1a411c['message']+(_0x1a411c['stack']?_0x5927be[_0xd1b19c(0xbe)](_0x5927be[_0xd1b19c(0xec)],_0x1a411c[_0xd1b19c(0xc6)]):''));}const _0x5b1fd2=_0x5927be[_0xd1b19c(0x92)](this[_0xd1b19c(0xab)]['lastAPIFailedCount'],undefined)?this[_0xd1b19c(0xab)]['lastAPIFailedCount']:0x0;if(_0x5927be[_0xd1b19c(0xf8)](_0x5b1fd2,_0x4ec488)){logger[_0xd1b19c(0xe4)]('['+TAG+_0xd1b19c(0x105)+_0x5b1fd2+',\x20threshold:\x20'+_0x4ec488+'.');try{fs['writeFileSync'](this[_0xd1b19c(0x109)],new Date()[_0xd1b19c(0xf9)]()),logger[_0xd1b19c(0x91)]('['+TAG+_0xd1b19c(0xc7)+this[_0xd1b19c(0x109)]),this['state']['failFastActive']=!![];}catch(_0x1e308c){logger[_0xd1b19c(0xd0)]('['+TAG+_0xd1b19c(0xd8)+_0x1e308c['message']+(_0x1e308c[_0xd1b19c(0xc6)]?_0x5927be[_0xd1b19c(0xc8)](_0x5927be[_0xd1b19c(0xec)],_0x1e308c[_0xd1b19c(0xc6)]):''));}return this['stopPolling'](),!![];}}else{let _0x3a4170;try{_0x3a4170=await this[_0xd1b19c(0x8c)][_0xd1b19c(0xf5)]();if(!_0x3a4170)return logger[_0xd1b19c(0xc1)]('['+TAG+_0xd1b19c(0xe8)),![];}catch(_0x4d2b5d){return logger[_0xd1b19c(0xd0)]('['+TAG+'_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20'+_0x4d2b5d['message']+(_0x4d2b5d[_0xd1b19c(0xc6)]?_0x5927be[_0xd1b19c(0xa6)](_0x5927be[_0xd1b19c(0xec)],_0x4d2b5d[_0xd1b19c(0xc6)]):'')),![];}this[_0xd1b19c(0xab)]={...this['_getDefaultState'](),..._0x3a4170,'uniqueFailedTests':new Set(_0x3a4170[_0xd1b19c(0xcc)]||[])};if(this['state'][_0xd1b19c(0x93)])return logger[_0xd1b19c(0x91)]('['+TAG+'_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.'),!![];const _0x55525b=this[_0xd1b19c(0xab)][_0xd1b19c(0xcc)],_0x458cf8=_0x55525b['size'];if(_0x5927be[_0xd1b19c(0xf8)](_0x458cf8,_0x4ec488)){try{logger['info']('['+TAG+'_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20'+_0x458cf8+',\x20threshold:\x20'+_0x4ec488+'.'),this[_0xd1b19c(0xab)][_0xd1b19c(0x93)]=!![];}catch(_0x285855){logger[_0xd1b19c(0xd0)]('['+TAG+_0xd1b19c(0xdb)+_0x285855[_0xd1b19c(0xbc)]+(_0x285855['stack']?_0x5927be[_0xd1b19c(0xf2)](_0x5927be[_0xd1b19c(0xec)],_0x285855['stack']):''));}return!![];}}return![];}async[a119_0x46110d(0xf3)](){const _0x3744db=a119_0x46110d,_0x3af9eb={};_0x3af9eb[_0x3744db(0x8e)]=function(_0x3589ed,_0x4de7b1){return _0x3589ed+_0x4de7b1;},_0x3af9eb['XtEAc']=_0x3744db(0xa2);const _0x4483f8=_0x3af9eb;this[_0x3744db(0xa7)]();if(this['isCIMode'])logger[_0x3744db(0x91)]('['+TAG+_0x3744db(0xe0));else try{const _0x386dc3={...this['state'],'uniqueFailedTests':Array[_0x3744db(0xd5)](this['state'][_0x3744db(0xcc)]||new Set())};await this[_0x3744db(0x8c)]['writeState'](_0x386dc3),logger[_0x3744db(0x91)]('['+TAG+_0x3744db(0x10b));}catch(_0x19c4e9){logger[_0x3744db(0xd0)]('['+TAG+_0x3744db(0xfe)+_0x19c4e9[_0x3744db(0xbc)]+(_0x19c4e9[_0x3744db(0xc6)]?_0x4483f8[_0x3744db(0x8e)](_0x4483f8[_0x3744db(0xc5)],_0x19c4e9[_0x3744db(0xc6)]):''));}}}module[a119_0x46110d(0x103)]=FailFastManager;
1
+ function a119_0x40e9(_0x138864,_0x501ea8){const _0x57e906=a119_0x57e9();return a119_0x40e9=function(_0x40e970,_0x50a373){_0x40e970=_0x40e970-0x6c;let _0x3b8cb6=_0x57e906[_0x40e970];return _0x3b8cb6;},a119_0x40e9(_0x138864,_0x501ea8);}function a119_0x57e9(){const _0x644bb6=['info','_CI]\x20Polling\x20started\x20with\x20interval:\x20','fileHelper','catch','BROWSERSTACK_BUILD_RUN_IDENTIFIER',']\x20Polling\x20stopped.','exports','_CI]\x20Error\x20during\x20polling\x20logic:\x20','cleanup','_pollFailedTests','clFeb','bQAJl','uniqueFailedTests','OQtIb','BROWSERSTACK_NODE_INDEX',']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','ElBaE','./requestUtils',',\x20threshold:\x20','isCIMode','error','xFsAI','reportedFailuresToAPI','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','5193798vrxBPG','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','debug','wnClM','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.','_CI]\x20API\x20failed\x20count\x20updated:\x20','134uiXBMD','XrzEu',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20','qavug','lockFilePath','vIegQ','5942770StcVqN','lastAPIFailedCount','toISOString','PCLQF','_sendFailedTestsToAPI','\x20(was\x20','_initializeStateFromFile','failFastState.json','path','941175fSJcOz','state','failed','pollingInterval','add','5871439jMRwhg','Wfukm','writeFileSync','warn','readState','FailFastManager','_CI]\x20Error\x20sending\x20failed\x20test\x20','NzzfF','writeState','gQuvl','startPolling','\x0aStack:\x20','UwWdC','eYuhV','buildRunIdentifier','9aUNbxu','join','qxwTT','failedTests','buildName','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','passed','stopPolling','recordTestResult','stack','newState','ItNql','gRyuj','oFDOA','size','2902360URekWq','failFast.active','_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.','projectName','_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20','22098GiKSmg',',\x20CI\x20Mode:\x20','bMtmz','JYimx','failFastConfig','./fileHelper','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','WUbSR','yWXbu','3137804LAcJLa','\x20to\x20API:\x20','THNJT','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','number','5YarBqs','stateFilePath','ms.','FggSJ','_getDefaultState','khhLr','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','fSiTt','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20','putFailedTests','failFastActiveMarkerPath','DRlGn','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20','_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20','_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20','env','failFastActive','shouldFailFast','onTestDone','KSxuW','_fetchAPIFailedCount','getFailedTestsCount','message','izcur','has','VKeMq','length'];a119_0x57e9=function(){return _0x644bb6;};return a119_0x57e9();}const a119_0x148f9e=a119_0x40e9;(function(_0x38d98d,_0x2985e7){const _0xe33714=a119_0x40e9,_0x5a3794=_0x38d98d();while(!![]){try{const _0x1e0fd0=-parseInt(_0xe33714(0xbc))/0x1+parseInt(_0xe33714(0xad))/0x2*(parseInt(_0xe33714(0xe4))/0x3)+parseInt(_0xe33714(0x6e))/0x4+parseInt(_0xe33714(0x73))/0x5*(parseInt(_0xe33714(0xa7))/0x6)+-parseInt(_0xe33714(0xc1))/0x7+parseInt(_0xe33714(0xdf))/0x8*(-parseInt(_0xe33714(0xd0))/0x9)+parseInt(_0xe33714(0xb3))/0xa;if(_0x1e0fd0===_0x2985e7)break;else _0x5a3794['push'](_0x5a3794['shift']());}catch(_0x2819f1){_0x5a3794['push'](_0x5a3794['shift']());}}}(a119_0x57e9,0x914c0));const fs=require('fs'),path=require(a119_0x148f9e(0xbb)),FileHelper=require(a119_0x148f9e(0xe9)),RequestUtils=require(a119_0x148f9e(0xa0)),logger=require('../logger')['winstonLogger'],POLLING_INTERVAL=0x2710,TAG=a119_0x148f9e(0xc6);class FailFastManager{constructor(_0x512a4b,_0x2c3c8d,_0x367aa7){const _0x5b6224=a119_0x148f9e,_0x40e8ce={};_0x40e8ce[_0x5b6224(0xd2)]=function(_0x329b03,_0x12a813){return _0x329b03+_0x12a813;},_0x40e8ce[_0x5b6224(0xa4)]=_0x5b6224(0xcc),_0x40e8ce[_0x5b6224(0xaa)]=function(_0xcb757,_0x5709d6){return _0xcb757||_0x5709d6;},_0x40e8ce[_0x5b6224(0xc8)]=_0x5b6224(0xba),_0x40e8ce[_0x5b6224(0x9a)]='failFastState.lock',_0x40e8ce[_0x5b6224(0xb0)]=_0x5b6224(0xe0);const _0x376848=_0x40e8ce;this[_0x5b6224(0xe8)]=_0x376848[_0x5b6224(0xaa)](_0x512a4b,{}),this[_0x5b6224(0xd4)]=_0x2c3c8d,this[_0x5b6224(0xe2)]=_0x367aa7,this[_0x5b6224(0xa2)]=!!(process[_0x5b6224(0x83)][_0x5b6224(0x93)]&&process['env'][_0x5b6224(0x9d)]&&process[_0x5b6224(0x83)]['BROWSERSTACK_TOTAL_NODE_COUNT']);const _0xf31493=this['failFastConfig']['workingDir'];this[_0x5b6224(0x74)]=path[_0x5b6224(0xd1)](_0xf31493,_0x376848[_0x5b6224(0xc8)]),this[_0x5b6224(0xb1)]=path[_0x5b6224(0xd1)](_0xf31493,_0x376848[_0x5b6224(0x9a)]),this[_0x5b6224(0x7e)]=path[_0x5b6224(0xd1)](_0xf31493,_0x376848[_0x5b6224(0xb0)]),this['fileHelper']=new FileHelper(this[_0x5b6224(0xe8)],this[_0x5b6224(0x74)],this[_0x5b6224(0xb1)],this[_0x5b6224(0x77)]()),this['state']=this[_0x5b6224(0x77)](),this[_0x5b6224(0xbf)]=null,this[_0x5b6224(0xa2)]&&(this['reportedFailuresToAPI']=new Set()),this[_0x5b6224(0xb9)]()[_0x5b6224(0x92)](_0x142362=>{const _0x3a696b=_0x5b6224;logger['error']('['+TAG+']\x20Critical\x20error\x20during\x20async\x20initialization:\x20'+_0x142362['message']+(_0x142362[_0x3a696b(0xd9)]?_0x376848['qxwTT'](_0x376848[_0x3a696b(0xa4)],_0x142362[_0x3a696b(0xd9)]):'')),this[_0x3a696b(0xbd)]=this[_0x3a696b(0x77)]();}),this[_0x5b6224(0xa2)]&&this[_0x5b6224(0xcb)](),logger[_0x5b6224(0xa9)]('['+TAG+_0x5b6224(0xaf)+this[_0x5b6224(0xe8)]['failureThresholdCount']+_0x5b6224(0xe5)+this[_0x5b6224(0xa2)]);}[a119_0x148f9e(0x77)](){const _0x1a0709={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x1a0709;}async[a119_0x148f9e(0xb9)](){const _0x2de114=a119_0x148f9e,_0x5543d7={};_0x5543d7[_0x2de114(0x9f)]=function(_0x1bca66,_0x25f001){return _0x1bca66+_0x25f001;},_0x5543d7[_0x2de114(0x7f)]=_0x2de114(0xcc),_0x5543d7[_0x2de114(0x6c)]=function(_0x5f1a3d,_0x4eebb2){return _0x5f1a3d+_0x4eebb2;};const _0x38bd61=_0x5543d7;if(this[_0x2de114(0xa2)])try{fs['existsSync'](this[_0x2de114(0x7e)])&&(this['state'][_0x2de114(0x84)]=!![],logger[_0x2de114(0xa9)]('['+TAG+_0x2de114(0xe1)));}catch(_0x2c8200){logger['error']('['+TAG+'_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20'+_0x2c8200['message']+(_0x2c8200[_0x2de114(0xd9)]?_0x38bd61['ElBaE'](_0x38bd61[_0x2de114(0x7f)],_0x2c8200['stack']):''));}else try{const _0x10c57e=await this[_0x2de114(0x91)]['readState']();if(_0x10c57e)this[_0x2de114(0xbd)]={...this['_getDefaultState'](),..._0x10c57e,'uniqueFailedTests':new Set(_0x10c57e[_0x2de114(0x9b)]||[])},logger['debug']('['+TAG+'_Local]\x20State\x20initialized\x20from\x20file.');else{logger[_0x2de114(0xa9)]('['+TAG+'_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.');const _0x17ece7=this[_0x2de114(0x77)](),_0x34a98e={..._0x17ece7,'uniqueFailedTests':Array['from'](_0x17ece7[_0x2de114(0x9b)])};await this['fileHelper']['writeState'](_0x34a98e),this[_0x2de114(0xbd)]=_0x17ece7;}}catch(_0xe735dc){logger['debug']('['+TAG+'_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20'+_0xe735dc['message']+(_0xe735dc[_0x2de114(0xd9)]?_0x38bd61[_0x2de114(0x6c)](_0x38bd61[_0x2de114(0x7f)],_0xe735dc[_0x2de114(0xd9)]):'')),this[_0x2de114(0xbd)]=this['_getDefaultState']();}}async[a119_0x148f9e(0x86)](_0x380a94,_0x46560e){const _0x27b2f4=a119_0x148f9e,_0x26322c={};_0x26322c['FggSJ']=function(_0x350fd8,_0x370fa7){return _0x350fd8>_0x370fa7;},_0x26322c['JYimx']=_0x27b2f4(0xbe),_0x26322c['yWXbu']=_0x27b2f4(0xd6),_0x26322c[_0x27b2f4(0x8b)]=function(_0x3004c5,_0x211fb2){return _0x3004c5+_0x211fb2;},_0x26322c['bMtmz']=_0x27b2f4(0xcc),_0x26322c[_0x27b2f4(0xce)]=function(_0x3d4638,_0x36d0ae){return _0x3d4638||_0x36d0ae;};const _0x591342=_0x26322c;if(this[_0x27b2f4(0xa2)])this[_0x27b2f4(0xbd)]['totalTests']+=0x1,_0x46560e&&_0x591342['FggSJ'](_0x46560e[_0x27b2f4(0x8e)],0x0)&&(!this[_0x27b2f4(0xa5)][_0x27b2f4(0x8c)](_0x380a94)&&(await this[_0x27b2f4(0xb7)](_0x380a94),this[_0x27b2f4(0xa5)][_0x27b2f4(0xc0)](_0x380a94)));else try{const _0x196f6b={'fullName':_0x380a94,'status':_0x46560e&&_0x591342[_0x27b2f4(0x76)](_0x46560e['length'],0x0)?_0x591342[_0x27b2f4(0xe7)]:_0x591342[_0x27b2f4(0x6d)]},_0x5635f8=await this['fileHelper'][_0x27b2f4(0xd8)](_0x196f6b);this['state']={...this[_0x27b2f4(0x77)](),..._0x5635f8[_0x27b2f4(0xda)],'uniqueFailedTests':new Set(_0x5635f8[_0x27b2f4(0xda)][_0x27b2f4(0x9b)]||[])};}catch(_0x142b9d){logger['error']('['+TAG+'_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20'+_0x142b9d['message']+(_0x142b9d[_0x27b2f4(0xd9)]?_0x591342[_0x27b2f4(0x8b)](_0x591342[_0x27b2f4(0xe6)],_0x142b9d['stack']):''));try{const _0x501f11=await this['fileHelper'][_0x27b2f4(0xc5)]();this[_0x27b2f4(0xbd)]={...this[_0x27b2f4(0x77)](),..._0x591342[_0x27b2f4(0xce)](_0x501f11,{}),'uniqueFailedTests':new Set(_0x501f11?_0x501f11[_0x27b2f4(0x9b)]||[]:[])},logger[_0x27b2f4(0xa9)]('['+TAG+'_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.');}catch(_0x5fe4e7){logger[_0x27b2f4(0xa3)]('['+TAG+_0x27b2f4(0x82)+_0x5fe4e7[_0x27b2f4(0x8a)]+(_0x5fe4e7[_0x27b2f4(0xd9)]?_0x591342[_0x27b2f4(0x8b)](_0x591342[_0x27b2f4(0xe6)],_0x5fe4e7[_0x27b2f4(0xd9)]):'')),this[_0x27b2f4(0xbd)]=this['_getDefaultState']();}}}async['_sendFailedTestsToAPI'](_0xba11b8){const _0x36e01e=a119_0x148f9e,_0x4e0b26={};_0x4e0b26[_0x36e01e(0x99)]=function(_0x37e536,_0x296a90){return _0x37e536+_0x296a90;},_0x4e0b26['YvvGx']=_0x36e01e(0xcc);const _0x2ab9a9=_0x4e0b26;if(!this[_0x36e01e(0xa2)]||!_0xba11b8)return;try{logger[_0x36e01e(0xa9)]('['+TAG+_0x36e01e(0x80)+_0xba11b8);const _0x4e6979={};_0x4e6979[_0x36e01e(0xd4)]=this[_0x36e01e(0xd4)],_0x4e6979['projectName']=this['projectName'],_0x4e6979[_0x36e01e(0xd3)]=[_0xba11b8],_0x4e6979[_0x36e01e(0xcf)]=process['env']['BROWSERSTACK_BUILD_RUN_IDENTIFIER'],await RequestUtils[_0x36e01e(0x7d)](_0x4e6979);}catch(_0x4c6560){logger['error']('['+TAG+_0x36e01e(0xc7)+_0xba11b8+_0x36e01e(0x6f)+_0x4c6560[_0x36e01e(0x8a)]+(_0x4c6560[_0x36e01e(0xd9)]?_0x2ab9a9[_0x36e01e(0x99)](_0x2ab9a9['YvvGx'],_0x4c6560['stack']):''));}}async[a119_0x148f9e(0x88)](){const _0x48991d=a119_0x148f9e,_0x3face9={};_0x3face9[_0x48991d(0x87)]=function(_0x3e94e0,_0x643953){return _0x3e94e0===_0x643953;},_0x3face9[_0x48991d(0x7a)]=_0x48991d(0x72),_0x3face9['ZWFWS']=function(_0x526e2c,_0x3ec78a){return _0x526e2c+_0x3ec78a;},_0x3face9[_0x48991d(0x8d)]=_0x48991d(0xcc),_0x3face9[_0x48991d(0xdc)]=function(_0x208be2,_0x34a6d4){return _0x208be2!==_0x34a6d4;};const _0x422aff=_0x3face9;if(!this[_0x48991d(0xa2)])return 0x0;try{const _0x4d50e5={};_0x4d50e5[_0x48991d(0xd4)]=this[_0x48991d(0xd4)],_0x4d50e5[_0x48991d(0xe2)]=this['projectName'],_0x4d50e5[_0x48991d(0xcf)]=process[_0x48991d(0x83)][_0x48991d(0x93)];const _0x23a2ed=await RequestUtils[_0x48991d(0x89)](_0x4d50e5);return logger['debug']('['+TAG+_0x48991d(0x79)+_0x23a2ed),_0x422aff[_0x48991d(0x87)](typeof _0x23a2ed,_0x422aff[_0x48991d(0x7a)])?_0x23a2ed:0x0;}catch(_0x4dc581){return logger[_0x48991d(0xa3)]('['+TAG+_0x48991d(0xe3)+_0x4dc581[_0x48991d(0x8a)]+(_0x4dc581[_0x48991d(0xd9)]?_0x422aff['ZWFWS'](_0x422aff[_0x48991d(0x8d)],_0x4dc581[_0x48991d(0xd9)]):'')),_0x422aff[_0x48991d(0xdc)](this[_0x48991d(0xbd)]['lastAPIFailedCount'],undefined)?this[_0x48991d(0xbd)][_0x48991d(0xb4)]:0x0;}}async['_pollFailedTests'](){const _0x4c09ce=a119_0x148f9e,_0x1864bc={};_0x1864bc['THNJT']=function(_0x12a161,_0x14a30a){return _0x12a161!==_0x14a30a;},_0x1864bc['rgoKY']=function(_0x3009c8,_0x1af2c8){return _0x3009c8+_0x1af2c8;},_0x1864bc[_0x4c09ce(0xb6)]=_0x4c09ce(0xcc);const _0xbbbdb4=_0x1864bc;if(!this[_0x4c09ce(0xa2)])return;try{const _0x475fc0=await this[_0x4c09ce(0x88)]();_0xbbbdb4[_0x4c09ce(0x70)](_0x475fc0,this[_0x4c09ce(0xbd)][_0x4c09ce(0xb4)])&&(logger['debug']('['+TAG+_0x4c09ce(0xac)+_0x475fc0+_0x4c09ce(0xb8)+this[_0x4c09ce(0xbd)]['lastAPIFailedCount']+')'),this[_0x4c09ce(0xbd)][_0x4c09ce(0xb4)]=_0x475fc0);}catch(_0x142725){logger[_0x4c09ce(0xa3)]('['+TAG+_0x4c09ce(0x96)+_0x142725[_0x4c09ce(0x8a)]+(_0x142725[_0x4c09ce(0xd9)]?_0xbbbdb4['rgoKY'](_0xbbbdb4['PCLQF'],_0x142725[_0x4c09ce(0xd9)]):''));}}async[a119_0x148f9e(0xcb)](){const _0x5ded07=a119_0x148f9e,_0x23dff1={'ItNql':function(_0x37d6eb,_0x29ce9b,_0x12a0a4){return _0x37d6eb(_0x29ce9b,_0x12a0a4);}};this[_0x5ded07(0xbf)]&&this[_0x5ded07(0xd7)](),this[_0x5ded07(0xa2)]&&(await this[_0x5ded07(0x98)](),this['pollingInterval']=_0x23dff1[_0x5ded07(0xdb)](setInterval,async()=>{await this['_pollFailedTests']();},POLLING_INTERVAL),logger[_0x5ded07(0xa9)]('['+TAG+_0x5ded07(0x90)+POLLING_INTERVAL+_0x5ded07(0x75)));}[a119_0x148f9e(0xd7)](){const _0x1b8aff=a119_0x148f9e,_0x10bcd4={'kyRSC':function(_0x1457b4,_0x1ce619){return _0x1457b4(_0x1ce619);}};this[_0x1b8aff(0xbf)]&&(_0x10bcd4['kyRSC'](clearInterval,this[_0x1b8aff(0xbf)]),this[_0x1b8aff(0xbf)]=null,logger[_0x1b8aff(0xa9)]('['+TAG+_0x1b8aff(0x94)));}async[a119_0x148f9e(0x85)](){const _0x415c82=a119_0x148f9e,_0x333eef={};_0x333eef[_0x415c82(0xdd)]=function(_0xd3bbbc,_0x5cb851){return _0xd3bbbc===_0x5cb851;},_0x333eef[_0x415c82(0x78)]=function(_0x9384b6,_0x12a9c5){return _0x9384b6<=_0x12a9c5;},_0x333eef[_0x415c82(0xca)]=function(_0x33d75d,_0x3b1c93){return _0x33d75d+_0x3b1c93;},_0x333eef['XrzEu']='\x0aStack:\x20',_0x333eef['DpQSC']=function(_0x58ccbe,_0x247e84){return _0x58ccbe!==_0x247e84;},_0x333eef[_0x415c82(0x9c)]=function(_0x3b81cd,_0x5ab90b){return _0x3b81cd>=_0x5ab90b;},_0x333eef[_0x415c82(0xb2)]=function(_0x4c87d,_0x3b9a65){return _0x4c87d+_0x3b9a65;},_0x333eef['ZNmfh']=function(_0x26fe51,_0x2b5a99){return _0x26fe51+_0x2b5a99;};const _0xbb4b0f=_0x333eef,{failureThresholdCount:_0xc269e5}=this['failFastConfig'];if(_0xbb4b0f['oFDOA'](_0xc269e5,null)||_0xbb4b0f['oFDOA'](_0xc269e5,undefined)||_0xbb4b0f[_0x415c82(0x78)](_0xc269e5,0x0))return logger[_0x415c82(0xa9)]('['+TAG+_0x415c82(0x9e)),![];if(this[_0x415c82(0xa2)]){try{if(fs['existsSync'](this[_0x415c82(0x7e)]))return logger[_0x415c82(0xa9)]('['+TAG+_0x415c82(0x71)),!this[_0x415c82(0xbd)][_0x415c82(0x84)]&&(this[_0x415c82(0xbd)][_0x415c82(0x84)]=!![]),this[_0x415c82(0xd7)](),!![];}catch(_0x1b24a9){logger[_0x415c82(0xa3)]('['+TAG+_0x415c82(0xa6)+_0x1b24a9[_0x415c82(0x8a)]+(_0x1b24a9[_0x415c82(0xd9)]?_0xbb4b0f[_0x415c82(0xca)](_0xbb4b0f[_0x415c82(0xae)],_0x1b24a9[_0x415c82(0xd9)]):''));}const _0x560c2c=_0xbb4b0f['DpQSC'](this[_0x415c82(0xbd)][_0x415c82(0xb4)],undefined)?this[_0x415c82(0xbd)][_0x415c82(0xb4)]:0x0;if(_0xbb4b0f['OQtIb'](_0x560c2c,_0xc269e5)){logger[_0x415c82(0x8f)]('['+TAG+_0x415c82(0x7b)+_0x560c2c+_0x415c82(0xa1)+_0xc269e5+'.');try{fs[_0x415c82(0xc3)](this[_0x415c82(0x7e)],new Date()[_0x415c82(0xb5)]()),logger['debug']('['+TAG+_0x415c82(0x81)+this[_0x415c82(0x7e)]),this[_0x415c82(0xbd)]['failFastActive']=!![];}catch(_0x424232){logger[_0x415c82(0xa3)]('['+TAG+_0x415c82(0xa8)+_0x424232[_0x415c82(0x8a)]+(_0x424232['stack']?_0xbb4b0f[_0x415c82(0xb2)](_0xbb4b0f[_0x415c82(0xae)],_0x424232[_0x415c82(0xd9)]):''));}return this[_0x415c82(0xd7)](),!![];}}else{let _0x1f51aa;try{_0x1f51aa=await this[_0x415c82(0x91)][_0x415c82(0xc5)]();if(!_0x1f51aa)return logger[_0x415c82(0xc4)]('['+TAG+'_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.'),![];}catch(_0x5d260a){return logger[_0x415c82(0xa3)]('['+TAG+'_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20'+_0x5d260a['message']+(_0x5d260a[_0x415c82(0xd9)]?_0xbb4b0f[_0x415c82(0xb2)](_0xbb4b0f['XrzEu'],_0x5d260a['stack']):'')),![];}this[_0x415c82(0xbd)]={...this['_getDefaultState'](),..._0x1f51aa,'uniqueFailedTests':new Set(_0x1f51aa[_0x415c82(0x9b)]||[])};if(this['state'][_0x415c82(0x84)])return logger['debug']('['+TAG+_0x415c82(0xd5)),!![];const _0x58450a=this[_0x415c82(0xbd)][_0x415c82(0x9b)],_0x3d01cd=_0x58450a[_0x415c82(0xde)];if(_0xbb4b0f[_0x415c82(0x9c)](_0x3d01cd,_0xc269e5)){try{logger[_0x415c82(0x8f)]('['+TAG+'_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20'+_0x3d01cd+',\x20threshold:\x20'+_0xc269e5+'.'),this['state']['failFastActive']=!![];}catch(_0x298af0){logger['error']('['+TAG+'_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20'+_0x298af0[_0x415c82(0x8a)]+(_0x298af0[_0x415c82(0xd9)]?_0xbb4b0f['ZNmfh'](_0xbb4b0f[_0x415c82(0xae)],_0x298af0['stack']):''));}return!![];}}return![];}async[a119_0x148f9e(0x97)](){const _0x3861e0=a119_0x148f9e,_0xa439d5={};_0xa439d5[_0x3861e0(0xcd)]=function(_0x7f3fb2,_0x42c688){return _0x7f3fb2+_0x42c688;},_0xa439d5[_0x3861e0(0xc2)]=_0x3861e0(0xcc);const _0x739c23=_0xa439d5;this[_0x3861e0(0xd7)]();if(this['isCIMode'])logger[_0x3861e0(0xa9)]('['+TAG+_0x3861e0(0xab));else try{const _0x54ab2c={...this[_0x3861e0(0xbd)],'uniqueFailedTests':Array['from'](this[_0x3861e0(0xbd)][_0x3861e0(0x9b)]||new Set())};await this['fileHelper'][_0x3861e0(0xc9)](_0x54ab2c),logger[_0x3861e0(0xa9)]('['+TAG+_0x3861e0(0xea));}catch(_0x34df5a){logger[_0x3861e0(0xa3)]('['+TAG+_0x3861e0(0x7c)+_0x34df5a[_0x3861e0(0x8a)]+(_0x34df5a[_0x3861e0(0xd9)]?_0x739c23[_0x3861e0(0xcd)](_0x739c23[_0x3861e0(0xc2)],_0x34df5a['stack']):''));}}}module[a119_0x148f9e(0x95)]=FailFastManager;
@@ -1 +1 @@
1
- const a120_0x4ba5ed=a120_0x4882;(function(_0x222c8d,_0x76dc95){const _0x31b5b5=a120_0x4882,_0x2f1c2a=_0x222c8d();while(!![]){try{const _0x5c9866=parseInt(_0x31b5b5(0x166))/0x1*(parseInt(_0x31b5b5(0x176))/0x2)+-parseInt(_0x31b5b5(0x192))/0x3*(parseInt(_0x31b5b5(0x194))/0x4)+parseInt(_0x31b5b5(0x16a))/0x5*(-parseInt(_0x31b5b5(0x17b))/0x6)+-parseInt(_0x31b5b5(0x188))/0x7+parseInt(_0x31b5b5(0x1a3))/0x8+-parseInt(_0x31b5b5(0x19d))/0x9+-parseInt(_0x31b5b5(0x19f))/0xa*(-parseInt(_0x31b5b5(0x19a))/0xb);if(_0x5c9866===_0x76dc95)break;else _0x2f1c2a['push'](_0x2f1c2a['shift']());}catch(_0x2d4165){_0x2f1c2a['push'](_0x2f1c2a['shift']());}}}(a120_0x2a19,0x8f736));const fs=require('fs'),logger=require(a120_0x4ba5ed(0x17d))[a120_0x4ba5ed(0x1a4)],TAG=a120_0x4ba5ed(0x16f);function a120_0x4882(_0x1f4465,_0x133f1b){const _0x2a1904=a120_0x2a19();return a120_0x4882=function(_0x48826e,_0x16d841){_0x48826e=_0x48826e-0x166;let _0x3697d3=_0x2a1904[_0x48826e];return _0x3697d3;},a120_0x4882(_0x1f4465,_0x133f1b);}class FileHelper{constructor(_0x35d0f9,_0x4b3314,_0x4e2596,_0x2c1ee3){const _0x3dc8a2=a120_0x4ba5ed,_0x56a218={};_0x56a218[_0x3dc8a2(0x16e)]=_0x3dc8a2(0x17c),_0x56a218[_0x3dc8a2(0x1a5)]=_0x3dc8a2(0x18d);const _0x3cda79=_0x56a218,_0x3906f8=_0x3cda79['EBfcj'][_0x3dc8a2(0x168)]('|');let _0x53dd79=0x0;while(!![]){switch(_0x3906f8[_0x53dd79++]){case'0':this[_0x3dc8a2(0x193)]=_0x4b3314;continue;case'1':this[_0x3dc8a2(0x195)]=_0x35d0f9;continue;case'2':this['lockFilePath']=_0x4e2596;continue;case'3':this[_0x3dc8a2(0x19b)]=_0x2c1ee3;continue;case'4':if(!fs[_0x3dc8a2(0x173)](this['stateFilePath']))try{fs['writeFileSync'](this[_0x3dc8a2(0x193)],'{}',_0x3cda79[_0x3dc8a2(0x1a5)]);}catch(_0x255cf1){logger[_0x3dc8a2(0x1a0)]('['+TAG+_0x3dc8a2(0x169)+_0x255cf1[_0x3dc8a2(0x198)]+'\x20'+_0x255cf1[_0x3dc8a2(0x189)]);}continue;}break;}}async[a120_0x4ba5ed(0x177)](){const _0x7e040c=a120_0x4ba5ed,_0x19a6a6={};_0x19a6a6[_0x7e040c(0x19e)]=function(_0x24dcc7,_0x4abafd){return _0x24dcc7===_0x4abafd;},_0x19a6a6['JyJaP']=_0x7e040c(0x184);const _0x3df08d=_0x19a6a6;let _0x1a5d20;try{return _0x1a5d20=fs[_0x7e040c(0x16d)](this[_0x7e040c(0x17a)],'wx'),_0x1a5d20;}catch(_0x1d178b){if(_0x3df08d[_0x7e040c(0x19e)](_0x1d178b['code'],_0x3df08d[_0x7e040c(0x17e)]))return null;throw _0x1d178b;}}async['releaseLock'](_0x3156c6){const _0x314d61=a120_0x4ba5ed;if(_0x3156c6)try{fs[_0x314d61(0x19c)](_0x3156c6),fs[_0x314d61(0x18f)](this[_0x314d61(0x17a)]);}catch(_0x34df1a){logger['error']('['+TAG+_0x314d61(0x185)+_0x34df1a[_0x314d61(0x198)]+'\x20'+_0x34df1a['stack']);}}[a120_0x4ba5ed(0x1a2)](){const _0x47b40a=a120_0x4ba5ed,_0x38cfd8={};_0x38cfd8[_0x47b40a(0x180)]=_0x47b40a(0x18d);const _0x2e2ea7=_0x38cfd8;try{const _0x3548c6=fs[_0x47b40a(0x16b)](this['stateFilePath'],_0x2e2ea7[_0x47b40a(0x180)]);return JSON[_0x47b40a(0x182)](_0x3548c6);}catch(_0x2cd48a){return logger[_0x47b40a(0x1a0)]('['+TAG+_0x47b40a(0x167)+_0x2cd48a[_0x47b40a(0x198)]+'\x20'+_0x2cd48a[_0x47b40a(0x189)]),null;}}async[a120_0x4ba5ed(0x18c)](_0x344694){const _0x3001c2=a120_0x4ba5ed,_0x421128={..._0x344694,'uniqueFailedTests':Array['isArray'](_0x344694['uniqueFailedTests'])?_0x344694[_0x3001c2(0x16c)]:Array[_0x3001c2(0x18e)](_0x344694[_0x3001c2(0x16c)]||[])};try{fs[_0x3001c2(0x171)](this[_0x3001c2(0x193)],JSON[_0x3001c2(0x186)](_0x421128,null,0x2));}catch(_0x3298d4){logger[_0x3001c2(0x1a0)]('['+TAG+_0x3001c2(0x178)+_0x3298d4[_0x3001c2(0x198)]+'\x20'+_0x3298d4[_0x3001c2(0x189)]);throw _0x3298d4;}}async[a120_0x4ba5ed(0x191)](_0x41a41f,_0x5f4f46){const _0x207ad9=a120_0x4ba5ed,_0x544aa1={};_0x544aa1[_0x207ad9(0x1a1)]=function(_0x33c098,_0x4352a0){return _0x33c098!==_0x4352a0;},_0x544aa1['knUtT']=_0x207ad9(0x183),_0x544aa1[_0x207ad9(0x17f)]=function(_0x1da60d,_0x446c1f){return _0x1da60d===_0x446c1f;},_0x544aa1[_0x207ad9(0x181)]=_0x207ad9(0x172);const _0x46bb3c=_0x544aa1,_0x173b73=await this[_0x207ad9(0x177)]();if(!_0x173b73)return logger[_0x207ad9(0x199)]('['+TAG+_0x207ad9(0x187)),{'newState':this[_0x207ad9(0x1a2)]()||this[_0x207ad9(0x19b)],'isNewFailure':![]};try{let _0x59fcee=this[_0x207ad9(0x1a2)]();!_0x59fcee&&(_0x59fcee=JSON[_0x207ad9(0x182)](JSON[_0x207ad9(0x186)](this[_0x207ad9(0x19b)])));if(!_0x59fcee[_0x207ad9(0x16c)]||_0x46bb3c['diLvu'](typeof _0x59fcee[_0x207ad9(0x16c)][Symbol['iterator']],_0x46bb3c['knUtT']))_0x59fcee[_0x207ad9(0x16c)]=new Set();else Array[_0x207ad9(0x197)](_0x59fcee['uniqueFailedTests'])&&(_0x59fcee['uniqueFailedTests']=new Set(_0x59fcee[_0x207ad9(0x16c)]));_0x59fcee[_0x207ad9(0x196)]=_0x5f4f46;let _0x26f64a=![];_0x46bb3c[_0x207ad9(0x17f)](_0x41a41f['status'],_0x46bb3c[_0x207ad9(0x181)])&&(_0x59fcee[_0x207ad9(0x18b)]+=0x1,!_0x59fcee[_0x207ad9(0x16c)][_0x207ad9(0x179)](_0x41a41f[_0x207ad9(0x174)])&&(_0x59fcee['uniqueFailedTests'][_0x207ad9(0x1a7)](_0x41a41f['fullName']),_0x26f64a=!![]));await this['writeState'](_0x59fcee);const _0x370445={};return _0x370445[_0x207ad9(0x175)]=_0x59fcee,_0x370445['isNewFailure']=_0x26f64a,_0x370445;}finally{await this[_0x207ad9(0x18a)](_0x173b73);}}async['updateAPIFailedCount'](_0x5b4860){const _0x39fe07=a120_0x4ba5ed,_0x328f9b=await this[_0x39fe07(0x177)]();if(!_0x328f9b)return logger['warn']('['+TAG+_0x39fe07(0x170)),this['readState']()||this['defaultState'];try{let _0x5da012=this[_0x39fe07(0x1a2)]();return!_0x5da012&&(_0x5da012=JSON[_0x39fe07(0x182)](JSON['stringify'](this['defaultState']))),_0x5da012[_0x39fe07(0x190)]=_0x5b4860,await this[_0x39fe07(0x18c)](_0x5da012),_0x5da012;}finally{await this[_0x39fe07(0x18a)](_0x328f9b);}}}module[a120_0x4ba5ed(0x1a6)]=FileHelper;function a120_0x2a19(){const _0x12e01f=['22768140iYuPJq','error','diLvu','readState','6194728KqmWMl','winstonLogger','HMArY','exports','add','266709Rjkiml',']\x20Error\x20reading\x20state\x20file:\x20','split',']\x20Error\x20creating\x20state\x20file:\x20','5665kWuoqA','readFileSync','uniqueFailedTests','openSync','EBfcj','FailFastFileHelper',']\x20Could\x20not\x20acquire\x20lock\x20to\x20update\x20API\x20failed\x20count.\x20State\x20may\x20be\x20stale.','writeFileSync','failed','existsSync','fullName','newState','2pLpFjH','acquireLock',']\x20Error\x20writing\x20state\x20file:\x20','has','lockFilePath','4908beQxZW','1|0|2|3|4','../logger','JyJaP','hgiuo','vtcTk','rZGcq','parse','function','EEXIST',']\x20Error\x20releasing\x20lock:\x20','stringify',']\x20Could\x20not\x20acquire\x20lock\x20to\x20record\x20test\x20result.\x20State\x20may\x20be\x20stale.','7208285oeahlt','stack','releaseLock','failedTests','writeState','utf8','from','unlinkSync','lastAPIFailedCount','recordTestResult','87RXZony','stateFilePath','41036tlTkVo','failFastConfig','totalTests','isArray','message','warn','11tONhAZ','defaultState','closeSync','4286070MqFgGg','hgsrz'];a120_0x2a19=function(){return _0x12e01f;};return a120_0x2a19();}
1
+ const a120_0x9bef56=a120_0x46c5;function a120_0x46c5(_0x16152c,_0x52e332){const _0x7d3fe4=a120_0x7d3f();return a120_0x46c5=function(_0x46c583,_0x4e43a8){_0x46c583=_0x46c583-0xb7;let _0x47a2fb=_0x7d3fe4[_0x46c583];return _0x47a2fb;},a120_0x46c5(_0x16152c,_0x52e332);}(function(_0x432ed0,_0x5bc9e4){const _0xd5fda2=a120_0x46c5,_0x1be068=_0x432ed0();while(!![]){try{const _0x28584b=parseInt(_0xd5fda2(0xe8))/0x1*(parseInt(_0xd5fda2(0xc0))/0x2)+-parseInt(_0xd5fda2(0xc3))/0x3*(parseInt(_0xd5fda2(0xea))/0x4)+-parseInt(_0xd5fda2(0xe3))/0x5+parseInt(_0xd5fda2(0xe7))/0x6*(-parseInt(_0xd5fda2(0xd5))/0x7)+parseInt(_0xd5fda2(0xcd))/0x8+parseInt(_0xd5fda2(0xcf))/0x9*(-parseInt(_0xd5fda2(0xcb))/0xa)+parseInt(_0xd5fda2(0xd8))/0xb*(parseInt(_0xd5fda2(0xd3))/0xc);if(_0x28584b===_0x5bc9e4)break;else _0x1be068['push'](_0x1be068['shift']());}catch(_0x5b8236){_0x1be068['push'](_0x1be068['shift']());}}}(a120_0x7d3f,0x19b35));function a120_0x7d3f(){const _0x45799a=['iterator','12RUlQsq','openSync','483bOQyJH','dwSdo','function','2345882alnTVu','newState','status','code','defaultState','fullName','FailFastFileHelper','uSJST','jHBip','lastAPIFailedCount','readFileSync','786390MmTQrT','totalTests','message','lockFilePath','1518XbabpZ','197083EQXmwy','hcftA','4bvngkf','error','writeState','unlinkSync',']\x20Could\x20not\x20acquire\x20lock\x20to\x20record\x20test\x20result.\x20State\x20may\x20be\x20stale.','mqISH',']\x20Error\x20reading\x20state\x20file:\x20','readState','utf8','parse','3|2|0|4|1','split','writeFileSync','yqltI','stateFilePath','stack','uniqueFailedTests','failedTests','lwvpf','2fnnDgo','exports','updateAPIFailedCount','429648rcOTAp','has','failed','isNewFailure','releaseLock',']\x20Could\x20not\x20acquire\x20lock\x20to\x20update\x20API\x20failed\x20count.\x20State\x20may\x20be\x20stale.','existsSync','acquireLock','349290gUGkPJ','closeSync','1220728AKpChJ','Phkam','36sREvCH','cHgYJ','stringify'];a120_0x7d3f=function(){return _0x45799a;};return a120_0x7d3f();}const fs=require('fs'),logger=require('../logger')['winstonLogger'],TAG=a120_0x9bef56(0xde);class FileHelper{constructor(_0x89ad3e,_0x2406c1,_0x5c33a8,_0x3478d9){const _0x1d5a47=a120_0x9bef56,_0x87582a={};_0x87582a[_0x1d5a47(0xce)]=_0x1d5a47(0xb7),_0x87582a[_0x1d5a47(0xe0)]='utf8';const _0xeab9c5=_0x87582a,_0x747948=_0xeab9c5[_0x1d5a47(0xce)][_0x1d5a47(0xb8)]('|');let _0x2c9c42=0x0;while(!![]){switch(_0x747948[_0x2c9c42++]){case'0':this[_0x1d5a47(0xe6)]=_0x5c33a8;continue;case'1':if(!fs[_0x1d5a47(0xc9)](this[_0x1d5a47(0xbb)]))try{fs[_0x1d5a47(0xb9)](this[_0x1d5a47(0xbb)],'{}',_0xeab9c5['jHBip']);}catch(_0x582de9){logger[_0x1d5a47(0xeb)]('['+TAG+']\x20Error\x20creating\x20state\x20file:\x20'+_0x582de9[_0x1d5a47(0xe5)]+'\x20'+_0x582de9[_0x1d5a47(0xbc)]);}continue;case'2':this[_0x1d5a47(0xbb)]=_0x2406c1;continue;case'3':this['failFastConfig']=_0x89ad3e;continue;case'4':this[_0x1d5a47(0xdc)]=_0x3478d9;continue;}break;}}async[a120_0x9bef56(0xca)](){const _0xb2d7f0=a120_0x9bef56,_0x4fe27d={};_0x4fe27d[_0xb2d7f0(0xd0)]=function(_0x18c791,_0x3f3350){return _0x18c791===_0x3f3350;},_0x4fe27d[_0xb2d7f0(0xdf)]='EEXIST';const _0x60be77=_0x4fe27d;let _0x139b8c;try{return _0x139b8c=fs[_0xb2d7f0(0xd4)](this[_0xb2d7f0(0xe6)],'wx'),_0x139b8c;}catch(_0x521517){if(_0x60be77[_0xb2d7f0(0xd0)](_0x521517[_0xb2d7f0(0xdb)],_0x60be77[_0xb2d7f0(0xdf)]))return null;throw _0x521517;}}async[a120_0x9bef56(0xc7)](_0x2fd720){const _0x27a7de=a120_0x9bef56;if(_0x2fd720)try{fs[_0x27a7de(0xcc)](_0x2fd720),fs[_0x27a7de(0xed)](this[_0x27a7de(0xe6)]);}catch(_0x4b9038){logger[_0x27a7de(0xeb)]('['+TAG+']\x20Error\x20releasing\x20lock:\x20'+_0x4b9038[_0x27a7de(0xe5)]+'\x20'+_0x4b9038[_0x27a7de(0xbc)]);}}['readState'](){const _0x566daf=a120_0x9bef56,_0x3f3d55={};_0x3f3d55[_0x566daf(0xe9)]=_0x566daf(0xf2);const _0x22e849=_0x3f3d55;try{const _0x48744e=fs[_0x566daf(0xe2)](this[_0x566daf(0xbb)],_0x22e849[_0x566daf(0xe9)]);return JSON['parse'](_0x48744e);}catch(_0x5f0051){return logger[_0x566daf(0xeb)]('['+TAG+_0x566daf(0xf0)+_0x5f0051[_0x566daf(0xe5)]+'\x20'+_0x5f0051[_0x566daf(0xbc)]),null;}}async[a120_0x9bef56(0xec)](_0x4952af){const _0x15abe2=a120_0x9bef56,_0x5691a6={..._0x4952af,'uniqueFailedTests':Array['isArray'](_0x4952af[_0x15abe2(0xbd)])?_0x4952af[_0x15abe2(0xbd)]:Array['from'](_0x4952af['uniqueFailedTests']||[])};try{fs[_0x15abe2(0xb9)](this[_0x15abe2(0xbb)],JSON[_0x15abe2(0xd1)](_0x5691a6,null,0x2));}catch(_0x2d9217){logger['error']('['+TAG+']\x20Error\x20writing\x20state\x20file:\x20'+_0x2d9217[_0x15abe2(0xe5)]+'\x20'+_0x2d9217[_0x15abe2(0xbc)]);throw _0x2d9217;}}async['recordTestResult'](_0x1c6924,_0x1423de){const _0x20cf92=a120_0x9bef56,_0x443bd7={};_0x443bd7[_0x20cf92(0xbf)]=function(_0x3e42f3,_0x47dab1){return _0x3e42f3!==_0x47dab1;},_0x443bd7[_0x20cf92(0xd6)]=_0x20cf92(0xd7),_0x443bd7[_0x20cf92(0xba)]=function(_0x3f930a,_0x4ae5ef){return _0x3f930a===_0x4ae5ef;},_0x443bd7[_0x20cf92(0xef)]=_0x20cf92(0xc5);const _0x48eb9a=_0x443bd7,_0x219efc=await this[_0x20cf92(0xca)]();if(!_0x219efc)return logger['warn']('['+TAG+_0x20cf92(0xee)),{'newState':this[_0x20cf92(0xf1)]()||this['defaultState'],'isNewFailure':![]};try{let _0x31cc35=this['readState']();!_0x31cc35&&(_0x31cc35=JSON['parse'](JSON['stringify'](this[_0x20cf92(0xdc)])));if(!_0x31cc35[_0x20cf92(0xbd)]||_0x48eb9a['lwvpf'](typeof _0x31cc35[_0x20cf92(0xbd)][Symbol[_0x20cf92(0xd2)]],_0x48eb9a['dwSdo']))_0x31cc35[_0x20cf92(0xbd)]=new Set();else Array['isArray'](_0x31cc35[_0x20cf92(0xbd)])&&(_0x31cc35[_0x20cf92(0xbd)]=new Set(_0x31cc35[_0x20cf92(0xbd)]));_0x31cc35[_0x20cf92(0xe4)]=_0x1423de;let _0x3bed86=![];_0x48eb9a[_0x20cf92(0xba)](_0x1c6924[_0x20cf92(0xda)],_0x48eb9a[_0x20cf92(0xef)])&&(_0x31cc35[_0x20cf92(0xbe)]+=0x1,!_0x31cc35[_0x20cf92(0xbd)][_0x20cf92(0xc4)](_0x1c6924['fullName'])&&(_0x31cc35[_0x20cf92(0xbd)]['add'](_0x1c6924[_0x20cf92(0xdd)]),_0x3bed86=!![]));await this[_0x20cf92(0xec)](_0x31cc35);const _0x41ccda={};return _0x41ccda[_0x20cf92(0xd9)]=_0x31cc35,_0x41ccda[_0x20cf92(0xc6)]=_0x3bed86,_0x41ccda;}finally{await this[_0x20cf92(0xc7)](_0x219efc);}}async[a120_0x9bef56(0xc2)](_0x2e2bb9){const _0x1eb6f6=a120_0x9bef56,_0x5022f9=await this[_0x1eb6f6(0xca)]();if(!_0x5022f9)return logger['warn']('['+TAG+_0x1eb6f6(0xc8)),this[_0x1eb6f6(0xf1)]()||this['defaultState'];try{let _0x4f67b1=this[_0x1eb6f6(0xf1)]();return!_0x4f67b1&&(_0x4f67b1=JSON[_0x1eb6f6(0xf3)](JSON[_0x1eb6f6(0xd1)](this[_0x1eb6f6(0xdc)]))),_0x4f67b1[_0x1eb6f6(0xe1)]=_0x2e2bb9,await this[_0x1eb6f6(0xec)](_0x4f67b1),_0x4f67b1;}finally{await this[_0x1eb6f6(0xc7)](_0x5022f9);}}}module[a120_0x9bef56(0xc1)]=FileHelper;
@@ -1 +1 @@
1
- const a121_0x404caf=a121_0x8116;(function(_0x4efa8d,_0xdce0c8){const _0x255de4=a121_0x8116,_0x123535=_0x4efa8d();while(!![]){try{const _0x5406e2=parseInt(_0x255de4(0x178))/0x1*(parseInt(_0x255de4(0x140))/0x2)+parseInt(_0x255de4(0x14f))/0x3+-parseInt(_0x255de4(0x16a))/0x4*(-parseInt(_0x255de4(0x13f))/0x5)+parseInt(_0x255de4(0x162))/0x6+parseInt(_0x255de4(0x153))/0x7*(-parseInt(_0x255de4(0x163))/0x8)+parseInt(_0x255de4(0x16d))/0x9*(-parseInt(_0x255de4(0x145))/0xa)+parseInt(_0x255de4(0x176))/0xb;if(_0x5406e2===_0xdce0c8)break;else _0x123535['push'](_0x123535['shift']());}catch(_0x454b47){_0x123535['push'](_0x123535['shift']());}}}(a121_0x4051,0x4856c));function a121_0x4051(){const _0x4c70f3=['_instance','UmGJw','enable','maxRetries','skip_failing_and_flaky','isAbortBuildOnFailureSupported','isRetryEnabled','testOrdering','run_previously_failed_first','1554204iowPZA','93152akVVxG','abortBuildOnFailure','getRetryCount','skipFlakyAndFailed','_setRunPreviouslyFailedFirst','path','_setRerunPreviouslyFailed','677188ATuhDK','rerunPreviouslyFailed','abort_build_','27yTvvHG','has','config','tmpdir','name','getRunPreviouslyFailedFirst','getBuildStartData','_setTestOrdering','appendFileSync','1796399FgkCbM','maxFailures','15ujlHsP','exports','abort_build_on_failure','isAbortBuildOnFailureEnabled','enabled','checkAbortBuildFileExists','5fsrhvq','3456qxbBeo','.txt','SiBrf','writeFailureToFile','winstonLogger','876930GuwscI','disable','getRerunPreviouslyFailed','retry_tests_on_failure','getSkipFlakyAndFailed','skipFlakyandFailed','getFailureThreshold','getInstance','failed_tests_','testOrchestrationOptions','279573YMUtnS','runPreviouslyFailedFirst','getEnabled','_setSkipFlakyAndFailed','91LMRDil','retryTestsOnFailure','env','getTestOrderingName','existsSync','join'];a121_0x4051=function(){return _0x4c70f3;};return a121_0x4051();}const os=require('os'),path=require(a121_0x404caf(0x168)),fs=require('fs'),logger=require('../logger')[a121_0x404caf(0x144)],RETRY_TESTS_ON_FAILURE=a121_0x404caf(0x154),ABORT_BUILD_ON_FAILURE=a121_0x404caf(0x164),RUN_PREVIOUSLY_FAILED_FIRST='runPreviouslyFailedFirst',RERUN_PREVIOUSLY_FAILED=a121_0x404caf(0x16b),SKIP_FLAKY_AND_FAILED=a121_0x404caf(0x14a),ALLOWED_ORCHESTRATION_KEYS=new Set([RETRY_TESTS_ON_FAILURE,ABORT_BUILD_ON_FAILURE,RUN_PREVIOUSLY_FAILED_FIRST,RERUN_PREVIOUSLY_FAILED,SKIP_FLAKY_AND_FAILED]),ABORT_BUILD_SUPPORTED_FRAMEWORKS=new Set(['jest']);class TestOrdering{constructor(){const _0x486c50=a121_0x404caf;this[_0x486c50(0x17c)]=![],this[_0x486c50(0x171)]=null;}[a121_0x404caf(0x15b)](_0x54df7d){const _0x13d5ed=a121_0x404caf;this[_0x13d5ed(0x17c)]=!![],this[_0x13d5ed(0x171)]=_0x54df7d;}[a121_0x404caf(0x146)](){this['enabled']=![],this['name']=null;}[a121_0x404caf(0x151)](){const _0x370b85=a121_0x404caf;return this[_0x370b85(0x17c)];}['getName'](){const _0xaf9513=a121_0x404caf;return this[_0xaf9513(0x171)];}}function a121_0x8116(_0x151185,_0x4c0bf7){const _0x4051de=a121_0x4051();return a121_0x8116=function(_0x81161b,_0x3d46c9){_0x81161b=_0x81161b-0x13f;let _0x4fd525=_0x4051de[_0x81161b];return _0x4fd525;},a121_0x8116(_0x151185,_0x4c0bf7);}class OrchestrationUtils{static [a121_0x404caf(0x159)]=null;constructor(_0x4071eb){const _0x3ac30f=a121_0x404caf,_0x32cd14={};_0x32cd14['SiBrf']=function(_0x1653f2,_0x18e168){return _0x1653f2||_0x18e168;};const _0x4197f8=_0x32cd14;this[_0x3ac30f(0x150)]=![],this['rerunPreviouslyFailed']=![],this['skipFlakyAndFailed']=![],this[_0x3ac30f(0x160)]=new TestOrdering(),this['config']=_0x4197f8[_0x3ac30f(0x142)](_0x4071eb,{});const _0x15e33b=_0x4071eb&&_0x4071eb[_0x3ac30f(0x14e)]||{};this[_0x3ac30f(0x167)](_0x15e33b[RUN_PREVIOUSLY_FAILED_FIRST]||![]),this['_setRerunPreviouslyFailed'](_0x15e33b[RERUN_PREVIOUSLY_FAILED]||![]),this[_0x3ac30f(0x152)](_0x15e33b[SKIP_FLAKY_AND_FAILED]||![]);}static[a121_0x404caf(0x14c)](_0x441100){const _0x1d2c8f=a121_0x404caf;return!OrchestrationUtils[_0x1d2c8f(0x159)]&&_0x441100&&(OrchestrationUtils['_instance']=new OrchestrationUtils(_0x441100)),OrchestrationUtils[_0x1d2c8f(0x159)];}[a121_0x404caf(0x15f)](){const _0x3caf92=a121_0x404caf,_0x317399=(this[_0x3caf92(0x16f)][_0x3caf92(0x14e)]||{})[RETRY_TESTS_ON_FAILURE]||{};return!!_0x317399['enabled'];}[a121_0x404caf(0x165)](){const _0x192260=a121_0x404caf,_0x237d36=(this[_0x192260(0x16f)][_0x192260(0x14e)]||{})[RETRY_TESTS_ON_FAILURE]||{};let _0x358f77=0x0;return this[_0x192260(0x15f)](this[_0x192260(0x16f)])&&(_0x358f77=_0x237d36[_0x192260(0x15c)]||0x1),_0x358f77;}['getOrchestrationData'](){const _0x5213cf=a121_0x404caf,_0x2a8027=this[_0x5213cf(0x16f)][_0x5213cf(0x14e)]||{},_0x38bd49={};for(const _0x1c8be4 in _0x2a8027){ALLOWED_ORCHESTRATION_KEYS[_0x5213cf(0x16e)](_0x1c8be4)&&(_0x38bd49[_0x1c8be4]=_0x2a8027[_0x1c8be4]);}return _0x38bd49;}[a121_0x404caf(0x17d)](){const _0x559bac=a121_0x404caf,_0x4765fe=process['env']['BROWSERSTACK_TESTHUB_UUID'],_0x510bb6=path[_0x559bac(0x158)](os[_0x559bac(0x170)](),_0x559bac(0x16c)+_0x4765fe);return fs[_0x559bac(0x157)](_0x510bb6);}[a121_0x404caf(0x143)](_0x2ca509){const _0x41e99d=a121_0x404caf,_0x6962bf=process[_0x41e99d(0x155)]['BROWSERSTACK_TESTHUB_UUID'],_0x21fb9c=path[_0x41e99d(0x158)](os['tmpdir'](),_0x41e99d(0x14d)+_0x6962bf+_0x41e99d(0x141));fs[_0x41e99d(0x175)](_0x21fb9c,_0x2ca509+'\x0a');}[a121_0x404caf(0x15e)](_0x21974f){const _0x544628=a121_0x404caf,_0x2f6854={};_0x2f6854[_0x544628(0x15a)]=function(_0x40f00a,_0x5c4a87){return _0x40f00a||_0x5c4a87;};const _0x3e65f5=_0x2f6854;return ABORT_BUILD_SUPPORTED_FRAMEWORKS[_0x544628(0x16e)](_0x3e65f5['UmGJw'](_0x21974f,'')['toLowerCase']());}[a121_0x404caf(0x17b)](){const _0x54e31a=a121_0x404caf,_0x26263d=(this['config'][_0x54e31a(0x14e)]||{})[ABORT_BUILD_ON_FAILURE]||{};return!!_0x26263d[_0x54e31a(0x17c)];}['getFailureThreshold'](){const _0x5e20d3=a121_0x404caf,_0x474677=(this[_0x5e20d3(0x16f)][_0x5e20d3(0x14e)]||{})[ABORT_BUILD_ON_FAILURE]||{};return _0x474677[_0x5e20d3(0x177)]||0x5;;}[a121_0x404caf(0x172)](){const _0x5a2ce5=a121_0x404caf;return this[_0x5a2ce5(0x150)];}[a121_0x404caf(0x167)](_0x1d1e9b){const _0x10e440=a121_0x404caf;this['runPreviouslyFailedFirst']=!!_0x1d1e9b,this[_0x10e440(0x174)]();}[a121_0x404caf(0x147)](){const _0x238426=a121_0x404caf;return this[_0x238426(0x16b)];}[a121_0x404caf(0x169)](_0x437910){const _0x183c56=a121_0x404caf;this['rerunPreviouslyFailed']=!!_0x437910,this[_0x183c56(0x174)]();}[a121_0x404caf(0x149)](){const _0x361b42=a121_0x404caf;return this[_0x361b42(0x166)];}[a121_0x404caf(0x152)](_0x5895b1){const _0x2ef8d5=a121_0x404caf;this[_0x2ef8d5(0x166)]=!!_0x5895b1,this[_0x2ef8d5(0x174)]();}[a121_0x404caf(0x174)](){const _0x1b0f50=a121_0x404caf;if(this[_0x1b0f50(0x150)])this['rerunPreviouslyFailed']=![],this[_0x1b0f50(0x166)]=![],this[_0x1b0f50(0x160)][_0x1b0f50(0x15b)](RUN_PREVIOUSLY_FAILED_FIRST);else{if(this[_0x1b0f50(0x16b)])this[_0x1b0f50(0x150)]=![],this[_0x1b0f50(0x166)]=![],this[_0x1b0f50(0x160)][_0x1b0f50(0x15b)](RERUN_PREVIOUSLY_FAILED);else this[_0x1b0f50(0x166)]?(this[_0x1b0f50(0x150)]=![],this[_0x1b0f50(0x16b)]=![],this[_0x1b0f50(0x160)][_0x1b0f50(0x15b)](SKIP_FLAKY_AND_FAILED)):this[_0x1b0f50(0x160)][_0x1b0f50(0x146)]();}}['testOrderingEnabled'](){const _0x1e90a5=a121_0x404caf;return this[_0x1e90a5(0x160)][_0x1e90a5(0x151)]();}[a121_0x404caf(0x156)](){const _0x2cddcc=a121_0x404caf;if(this[_0x2cddcc(0x160)][_0x2cddcc(0x151)]())return this[_0x2cddcc(0x160)]['getName']();return null;}[a121_0x404caf(0x173)](){const _0x6b3a68=a121_0x404caf,_0x18ab30={};return _0x18ab30['rerun_previously_failed']={'enabled':this[_0x6b3a68(0x147)]()},_0x18ab30[_0x6b3a68(0x161)]={'enabled':this[_0x6b3a68(0x172)]()},_0x18ab30[_0x6b3a68(0x15d)]={'enabled':this[_0x6b3a68(0x149)]()},this['isRetryEnabled']()&&(_0x18ab30[_0x6b3a68(0x148)]={'enabled':!![],'max_retries':this['getRetryCount']()}),this[_0x6b3a68(0x17b)]()&&(_0x18ab30[_0x6b3a68(0x17a)]={'enabled':!![],'max_failures':this[_0x6b3a68(0x14b)]()}),_0x18ab30;}}module[a121_0x404caf(0x179)]=OrchestrationUtils;
1
+ const a121_0x13ea2d=a121_0x76f8;(function(_0x59ae7d,_0x237c7d){const _0x5d237b=a121_0x76f8,_0x5a187d=_0x59ae7d();while(!![]){try{const _0x5d15ae=parseInt(_0x5d237b(0xf8))/0x1*(-parseInt(_0x5d237b(0xf1))/0x2)+-parseInt(_0x5d237b(0x109))/0x3+-parseInt(_0x5d237b(0xeb))/0x4*(parseInt(_0x5d237b(0xed))/0x5)+parseInt(_0x5d237b(0xf6))/0x6+parseInt(_0x5d237b(0xfa))/0x7*(parseInt(_0x5d237b(0x10e))/0x8)+-parseInt(_0x5d237b(0xec))/0x9*(-parseInt(_0x5d237b(0xf0))/0xa)+parseInt(_0x5d237b(0xda))/0xb;if(_0x5d15ae===_0x237c7d)break;else _0x5a187d['push'](_0x5a187d['shift']());}catch(_0x318acf){_0x5a187d['push'](_0x5a187d['shift']());}}}(a121_0xda4b,0xad7ab));function a121_0xda4b(){const _0x4f7e36=['isAbortBuildOnFailureEnabled','enable','2006148VBdBKZ','_instance','abort_build_on_failure','toLowerCase','getRunPreviouslyFailedFirst','16qNgjdY','retryTestsOnFailure','rerunPreviouslyFailed','has','getFailureThreshold','abort_build_','config','name','13118710lvguSU','enabled','getName','runPreviouslyFailedFirst','writeFailureToFile','getTestOrderingName','checkAbortBuildFileExists','maxRetries','isRetryEnabled','path','skip_failing_and_flaky','failed_tests_','existsSync','getRerunPreviouslyFailed','disable','_setSkipFlakyAndFailed','_setRunPreviouslyFailedFirst','532aeWtDT','9TVgbdu','39510UFfaIT','getEnabled','retry_tests_on_failure','7693370FeKMhs','64FpQiVn','_setRerunPreviouslyFailed','abortBuildOnFailure','sNhsc','../logger','7408008zAfcqN','getBuildStartData','24954vZNPMJ','testOrchestrationOptions','112581wXKIAL','isAbortBuildOnFailureSupported','join','getInstance','winstonLogger','tmpdir','skipFlakyAndFailed','skipFlakyandFailed','_setTestOrdering','testOrderingEnabled','.txt','jest','testOrdering'];a121_0xda4b=function(){return _0x4f7e36;};return a121_0xda4b();}const os=require('os'),path=require(a121_0x13ea2d(0xe3)),fs=require('fs'),logger=require(a121_0x13ea2d(0xf5))[a121_0x13ea2d(0xfe)],RETRY_TESTS_ON_FAILURE=a121_0x13ea2d(0x10f),ABORT_BUILD_ON_FAILURE=a121_0x13ea2d(0xf3),RUN_PREVIOUSLY_FAILED_FIRST=a121_0x13ea2d(0xdd),RERUN_PREVIOUSLY_FAILED='rerunPreviouslyFailed',SKIP_FLAKY_AND_FAILED=a121_0x13ea2d(0x101),ALLOWED_ORCHESTRATION_KEYS=new Set([RETRY_TESTS_ON_FAILURE,ABORT_BUILD_ON_FAILURE,RUN_PREVIOUSLY_FAILED_FIRST,RERUN_PREVIOUSLY_FAILED,SKIP_FLAKY_AND_FAILED]),ABORT_BUILD_SUPPORTED_FRAMEWORKS=new Set([a121_0x13ea2d(0x105)]);class TestOrdering{constructor(){const _0xb168df=a121_0x13ea2d;this[_0xb168df(0xdb)]=![],this[_0xb168df(0xd9)]=null;}[a121_0x13ea2d(0x108)](_0x326bc4){this['enabled']=!![],this['name']=_0x326bc4;}['disable'](){const _0x463437=a121_0x13ea2d;this[_0x463437(0xdb)]=![],this[_0x463437(0xd9)]=null;}[a121_0x13ea2d(0xee)](){return this['enabled'];}[a121_0x13ea2d(0xdc)](){return this['name'];}}class OrchestrationUtils{static ['_instance']=null;constructor(_0x1b1902){const _0x18adf8=a121_0x13ea2d,_0x2a8966={};_0x2a8966[_0x18adf8(0xf4)]=function(_0x5914e0,_0x3b47d0){return _0x5914e0||_0x3b47d0;};const _0x372971=_0x2a8966;this[_0x18adf8(0xdd)]=![],this[_0x18adf8(0x110)]=![],this['skipFlakyAndFailed']=![],this[_0x18adf8(0x106)]=new TestOrdering(),this['config']=_0x372971[_0x18adf8(0xf4)](_0x1b1902,{});const _0x1eaccc=_0x1b1902&&_0x1b1902[_0x18adf8(0xf9)]||{};this[_0x18adf8(0xea)](_0x1eaccc[RUN_PREVIOUSLY_FAILED_FIRST]||![]),this[_0x18adf8(0xf2)](_0x1eaccc[RERUN_PREVIOUSLY_FAILED]||![]),this[_0x18adf8(0xe9)](_0x1eaccc[SKIP_FLAKY_AND_FAILED]||![]);}static[a121_0x13ea2d(0xfd)](_0x43a9bf){const _0x35cdd5=a121_0x13ea2d;return!OrchestrationUtils[_0x35cdd5(0x10a)]&&_0x43a9bf&&(OrchestrationUtils[_0x35cdd5(0x10a)]=new OrchestrationUtils(_0x43a9bf)),OrchestrationUtils[_0x35cdd5(0x10a)];}[a121_0x13ea2d(0xe2)](){const _0x7101db=a121_0x13ea2d,_0x2b68a5=(this[_0x7101db(0xd8)]['testOrchestrationOptions']||{})[RETRY_TESTS_ON_FAILURE]||{};return!!_0x2b68a5[_0x7101db(0xdb)];}['getRetryCount'](){const _0x55f3b6=a121_0x13ea2d,_0x1506d2=(this[_0x55f3b6(0xd8)][_0x55f3b6(0xf9)]||{})[RETRY_TESTS_ON_FAILURE]||{};let _0x23d925=0x0;return this[_0x55f3b6(0xe2)](this[_0x55f3b6(0xd8)])&&(_0x23d925=_0x1506d2[_0x55f3b6(0xe1)]||0x1),_0x23d925;}['getOrchestrationData'](){const _0x12b06f=a121_0x13ea2d,_0x2eee30=this['config'][_0x12b06f(0xf9)]||{},_0x56c799={};for(const _0x367a95 in _0x2eee30){ALLOWED_ORCHESTRATION_KEYS[_0x12b06f(0x111)](_0x367a95)&&(_0x56c799[_0x367a95]=_0x2eee30[_0x367a95]);}return _0x56c799;}[a121_0x13ea2d(0xe0)](){const _0x425c10=a121_0x13ea2d,_0x6ad2c7=process['env']['BROWSERSTACK_TESTHUB_UUID'],_0x40d8c1=path['join'](os['tmpdir'](),_0x425c10(0x113)+_0x6ad2c7);return fs[_0x425c10(0xe6)](_0x40d8c1);}[a121_0x13ea2d(0xde)](_0x17adc6){const _0x51260c=a121_0x13ea2d,_0x3fc093=process['env']['BROWSERSTACK_TESTHUB_UUID'],_0x69e6d8=path[_0x51260c(0xfc)](os[_0x51260c(0xff)](),_0x51260c(0xe5)+_0x3fc093+_0x51260c(0x104));fs['appendFileSync'](_0x69e6d8,_0x17adc6+'\x0a');}[a121_0x13ea2d(0xfb)](_0x5e3f36){const _0x436431=a121_0x13ea2d,_0x382242={};_0x382242['aqzmc']=function(_0x4818f8,_0x21883c){return _0x4818f8||_0x21883c;};const _0x144820=_0x382242;return ABORT_BUILD_SUPPORTED_FRAMEWORKS['has'](_0x144820['aqzmc'](_0x5e3f36,'')[_0x436431(0x10c)]());}['isAbortBuildOnFailureEnabled'](){const _0x128e5f=a121_0x13ea2d,_0x5cf1d5=(this[_0x128e5f(0xd8)][_0x128e5f(0xf9)]||{})[ABORT_BUILD_ON_FAILURE]||{};return!!_0x5cf1d5[_0x128e5f(0xdb)];}['getFailureThreshold'](){const _0x27ef00=a121_0x13ea2d,_0x403f59=(this['config'][_0x27ef00(0xf9)]||{})[ABORT_BUILD_ON_FAILURE]||{};return _0x403f59['maxFailures']||0x5;;}[a121_0x13ea2d(0x10d)](){const _0x550fe2=a121_0x13ea2d;return this[_0x550fe2(0xdd)];}[a121_0x13ea2d(0xea)](_0xd869e7){const _0x47bc11=a121_0x13ea2d;this['runPreviouslyFailedFirst']=!!_0xd869e7,this[_0x47bc11(0x102)]();}['getRerunPreviouslyFailed'](){const _0xa815d1=a121_0x13ea2d;return this[_0xa815d1(0x110)];}['_setRerunPreviouslyFailed'](_0x5c4062){const _0x2e03a4=a121_0x13ea2d;this[_0x2e03a4(0x110)]=!!_0x5c4062,this[_0x2e03a4(0x102)]();}['getSkipFlakyAndFailed'](){const _0x2247f5=a121_0x13ea2d;return this[_0x2247f5(0x100)];}[a121_0x13ea2d(0xe9)](_0x203994){const _0x2570bb=a121_0x13ea2d;this['skipFlakyAndFailed']=!!_0x203994,this[_0x2570bb(0x102)]();}[a121_0x13ea2d(0x102)](){const _0x400bfe=a121_0x13ea2d;if(this['runPreviouslyFailedFirst'])this[_0x400bfe(0x110)]=![],this[_0x400bfe(0x100)]=![],this[_0x400bfe(0x106)][_0x400bfe(0x108)](RUN_PREVIOUSLY_FAILED_FIRST);else{if(this[_0x400bfe(0x110)])this[_0x400bfe(0xdd)]=![],this[_0x400bfe(0x100)]=![],this[_0x400bfe(0x106)]['enable'](RERUN_PREVIOUSLY_FAILED);else this[_0x400bfe(0x100)]?(this[_0x400bfe(0xdd)]=![],this[_0x400bfe(0x110)]=![],this[_0x400bfe(0x106)][_0x400bfe(0x108)](SKIP_FLAKY_AND_FAILED)):this[_0x400bfe(0x106)][_0x400bfe(0xe8)]();}}[a121_0x13ea2d(0x103)](){const _0x5a1426=a121_0x13ea2d;return this[_0x5a1426(0x106)][_0x5a1426(0xee)]();}[a121_0x13ea2d(0xdf)](){const _0x13fb9b=a121_0x13ea2d;if(this[_0x13fb9b(0x106)][_0x13fb9b(0xee)]())return this['testOrdering'][_0x13fb9b(0xdc)]();return null;}[a121_0x13ea2d(0xf7)](){const _0x52ff5a=a121_0x13ea2d,_0x52faad={};return _0x52faad['rerun_previously_failed']={'enabled':this[_0x52ff5a(0xe7)]()},_0x52faad['run_previously_failed_first']={'enabled':this[_0x52ff5a(0x10d)]()},_0x52faad[_0x52ff5a(0xe4)]={'enabled':this['getSkipFlakyAndFailed']()},this[_0x52ff5a(0xe2)]()&&(_0x52faad[_0x52ff5a(0xef)]={'enabled':!![],'max_retries':this['getRetryCount']()}),this[_0x52ff5a(0x107)]()&&(_0x52faad[_0x52ff5a(0x10b)]={'enabled':!![],'max_failures':this[_0x52ff5a(0x112)]()}),_0x52faad;}}function a121_0x76f8(_0x4ef430,_0x2ef351){const _0xda4bdd=a121_0xda4b();return a121_0x76f8=function(_0x76f861,_0x123a87){_0x76f861=_0x76f861-0xd8;let _0x2083a2=_0xda4bdd[_0x76f861];return _0x2083a2;},a121_0x76f8(_0x4ef430,_0x2ef351);}module['exports']=OrchestrationUtils;
@@ -1 +1 @@
1
- const a122_0x4bd2b1=a122_0x4d9b;(function(_0x5d903e,_0x49e1a1){const _0x286d43=a122_0x4d9b,_0x1a1ea3=_0x5d903e();while(!![]){try{const _0x1a2759=-parseInt(_0x286d43(0x13c))/0x1*(-parseInt(_0x286d43(0x113))/0x2)+-parseInt(_0x286d43(0x142))/0x3+-parseInt(_0x286d43(0x149))/0x4+-parseInt(_0x286d43(0x102))/0x5*(-parseInt(_0x286d43(0x121))/0x6)+parseInt(_0x286d43(0x137))/0x7+parseInt(_0x286d43(0x12c))/0x8+parseInt(_0x286d43(0x11f))/0x9;if(_0x1a2759===_0x49e1a1)break;else _0x1a1ea3['push'](_0x1a1ea3['shift']());}catch(_0x98ef82){_0x1a1ea3['push'](_0x1a1ea3['shift']());}}}(a122_0xd4ea,0x21fc1));const https=require(a122_0x4bd2b1(0x129)),{URL}=require(a122_0x4bd2b1(0x132)),logger=require(a122_0x4bd2b1(0x13a))['winstonLogger'],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require('./constants'),TAG='RequestUtils';class RequestUtils{static async[a122_0x4bd2b1(0x10a)](_0x4cb15b,_0x57df39,_0x54d0ff=null){const _0x32e1ee=a122_0x4bd2b1,_0xdeb881={'HOqHa':function(_0x8e85bb,_0x546754){return _0x8e85bb(_0x546754);},'wfnGY':_0x32e1ee(0x148),'CChpu':_0x32e1ee(0x144),'GnFUB':'error','nEMNK':function(_0x3b510e,_0x263f9d){return _0x3b510e===_0x263f9d;},'hyEdg':'POST','IphWa':function(_0x4b1ab7,_0x31ed9e){return _0x4b1ab7===_0x31ed9e;},'Rtyps':_0x32e1ee(0x11b),'rbgvs':_0x32e1ee(0x11d),'RPRhl':function(_0x2fd7ae,_0x2678d1){return _0x2fd7ae+_0x2678d1;}},_0x35edf4=process[_0x32e1ee(0x12f)]['BROWSERSTACK_TESTHUB_JWT']||'',_0x13343d={};_0x13343d[_0x32e1ee(0x134)]='Bearer\x20'+_0x35edf4,_0x13343d['Content-Type']=_0xdeb881[_0x32e1ee(0x122)];const _0x811d39=_0x13343d,{hostname:_0x305e10,pathname:_0x17b03b,search:_0x1bda39}=new URL(_0x57df39),_0xf28689={'hostname':_0x305e10,'path':_0xdeb881['RPRhl'](_0x17b03b,_0x1bda39),'method':_0x4cb15b,'headers':_0x811d39};return logger[_0x32e1ee(0x140)]('['+TAG+_0x32e1ee(0x119)+_0x4cb15b+'\x20request\x20to\x20'+_0x57df39+_0x32e1ee(0x111)+JSON['stringify'](_0x811d39)+_0x32e1ee(0x108)+JSON[_0x32e1ee(0x127)](_0x54d0ff)+'\x20and\x20token:\x20'+_0x35edf4),new Promise((_0x59760c,_0x5efe31)=>{const _0x3f5472=_0x32e1ee,_0x24f9e3=https[_0x3f5472(0x136)](_0xf28689,_0x211005=>{const _0xd28265=_0x3f5472,_0x17aaa2={'lRBJP':function(_0xf8ecdb,_0x5b8e39){const _0x152dcb=a122_0x4d9b;return _0xdeb881[_0x152dcb(0x125)](_0xf8ecdb,_0x5b8e39);}};let _0x5cbabe='';_0x211005['on'](_0xdeb881[_0xd28265(0x123)],_0x26c404=>{_0x5cbabe+=_0x26c404;}),_0x211005['on'](_0xdeb881[_0xd28265(0x13f)],()=>{const _0x8fc45f=_0xd28265;try{const _0x3b6811=_0x5cbabe?JSON[_0x8fc45f(0x13d)](_0x5cbabe):{},_0x18f126={};_0x18f126[_0x8fc45f(0x13b)]=_0x211005[_0x8fc45f(0x103)],_0x18f126[_0x8fc45f(0x131)]=_0x3b6811,_0x18f126['headers']=_0x211005[_0x8fc45f(0x146)],_0x17aaa2[_0x8fc45f(0x14f)](_0x59760c,_0x18f126);}catch(_0x423f26){logger[_0x8fc45f(0x12d)]('['+TAG+_0x8fc45f(0x116)+_0x5cbabe+_0x8fc45f(0x110)+_0x423f26[_0x8fc45f(0x147)]+'\x20'+_0x423f26[_0x8fc45f(0x12e)]),_0x17aaa2[_0x8fc45f(0x14f)](_0x5efe31,new Error('Failed\x20to\x20parse\x20JSON\x20response:\x20'+_0x423f26['message']));}});});_0x24f9e3['on'](_0xdeb881[_0x3f5472(0x10d)],_0x400118=>{const _0x51a74b=_0x3f5472;logger[_0x51a74b(0x12d)]('['+TAG+_0x51a74b(0x133)+_0x4cb15b+'\x20'+_0x57df39+':\x20'+_0x400118['message']+'\x20'+_0x400118[_0x51a74b(0x12e)]),_0xdeb881[_0x51a74b(0x125)](_0x5efe31,_0x400118);}),_0x54d0ff&&(_0xdeb881['nEMNK'](_0x4cb15b,_0xdeb881['hyEdg'])||_0xdeb881[_0x3f5472(0x145)](_0x4cb15b,_0xdeb881[_0x3f5472(0x109)]))&&_0x24f9e3[_0x3f5472(0x10e)](JSON[_0x3f5472(0x127)](_0x54d0ff)),_0x24f9e3['end']();});}static async[a122_0x4bd2b1(0x120)](_0x4e91ec){const _0x3cd769=a122_0x4bd2b1,_0x304a67={};_0x304a67[_0x3cd769(0x143)]=_0x3cd769(0x11e),_0x304a67['HQhRs']=function(_0xb141e4,_0xad50b6){return _0xb141e4===_0xad50b6;};const _0x52c83d=_0x304a67,_0x5c7252=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x4c022c=await this['_request'](_0x52c83d[_0x3cd769(0x143)],_0x5c7252,_0x4e91ec);return _0x52c83d[_0x3cd769(0x128)](_0x4c022c[_0x3cd769(0x13b)],0xc8)?logger[_0x3cd769(0x140)]('['+TAG+_0x3cd769(0x105)+_0x5c7252):logger[_0x3cd769(0x12d)]('['+TAG+_0x3cd769(0x138)+_0x5c7252+':\x20'+JSON['stringify'](_0x4c022c[_0x3cd769(0x131)])+_0x3cd769(0x118)+_0x4c022c[_0x3cd769(0x13b)]),_0x4c022c;}catch(_0x3a0f85){logger[_0x3cd769(0x12d)]('['+TAG+_0x3cd769(0x126)+_0x3a0f85['message']+'\x20'+_0x3a0f85['stack']);const _0x575094={};_0x575094[_0x3cd769(0x147)]=_0x3a0f85['message'];const _0xe7e4ec={};return _0xe7e4ec[_0x3cd769(0x13b)]=0x1f4,_0xe7e4ec[_0x3cd769(0x131)]=_0x575094,_0xe7e4ec;}}static async[a122_0x4bd2b1(0x115)](_0x2f758d){const _0x146e9=a122_0x4bd2b1,_0x92c4d5={};_0x92c4d5[_0x146e9(0x112)]=_0x146e9(0x10f),_0x92c4d5['gNOtK']=function(_0xc9081c,_0x6b69d0){return _0xc9081c===_0x6b69d0;};const _0x44217a=_0x92c4d5;try{const _0x37b25b=await this[_0x146e9(0x10a)](_0x44217a['KBkmQ'],_0x2f758d);if(_0x44217a[_0x146e9(0x11c)](_0x37b25b[_0x146e9(0x13b)],0xc8))return _0x37b25b[_0x146e9(0x131)];return{};}catch(_0x5bb79a){return logger[_0x146e9(0x12d)]('['+TAG+_0x146e9(0x126)+_0x5bb79a['message']+'\x20'+_0x5bb79a[_0x146e9(0x12e)]),{};}}static async[a122_0x4bd2b1(0x14d)](_0x3620a9){const _0x159a02=a122_0x4bd2b1,_0x6e1da8={};_0x6e1da8['fHaXf']=_0x159a02(0x11b),_0x6e1da8[_0x159a02(0x14e)]=function(_0x62ce92,_0x32e29e){return _0x62ce92===_0x32e29e;},_0x6e1da8[_0x159a02(0x13e)]=_0x159a02(0x150);const _0x2a7007=_0x6e1da8,_0x14ff47=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x5651e8=await this[_0x159a02(0x10a)](_0x2a7007[_0x159a02(0x12a)],_0x14ff47,_0x3620a9);if(_0x2a7007[_0x159a02(0x14e)](_0x5651e8[_0x159a02(0x13b)],0xc8)&&_0x5651e8[_0x159a02(0x131)]&&_0x2a7007['dJHSa'](_0x5651e8[_0x159a02(0x131)]['message'],_0x2a7007[_0x159a02(0x13e)]))return!![];return![];}catch(_0x59c058){logger['error']('['+TAG+_0x159a02(0x126)+_0x59c058[_0x159a02(0x147)]+'\x20'+_0x59c058[_0x159a02(0x12e)]);const _0x54fdc3={};_0x54fdc3[_0x159a02(0x147)]=_0x59c058[_0x159a02(0x147)];const _0x246c35={};return _0x246c35[_0x159a02(0x13b)]=0x1f4,_0x246c35[_0x159a02(0x131)]=_0x54fdc3,_0x246c35;}}static async[a122_0x4bd2b1(0x14a)](_0x503501){const _0x4dec89=a122_0x4bd2b1,_0x471388={'CNKJZ':function(_0x24810e,_0x43dd49){return _0x24810e||_0x43dd49;},'opxnE':_0x4dec89(0x130),'nFWGV':function(_0x51ef04,_0x409323){return _0x51ef04(_0x409323);},'VXFXo':function(_0x4cca42,_0xca5a26){return _0x4cca42(_0xca5a26);},'FkkJT':function(_0x3cd759,_0x4edfb8){return _0x3cd759(_0x4edfb8);},'vQNDX':_0x4dec89(0x10f),'xTvXS':function(_0x269b7b,_0x191251){return _0x269b7b===_0x191251;},'MwzcA':function(_0x13fd7e,_0x33e5f6){return _0x13fd7e!==_0x33e5f6;},'hSWtW':_0x4dec89(0x124),'GpqzK':function(_0x1b5478,_0x31b616){return _0x1b5478(_0x31b616);}},{buildName:_0x545d47,buildRunIdentifier:_0x391ca9,projectName:_0xd0fdf3}=_0x503501;if(_0x471388['CNKJZ'](!_0x545d47,!_0x391ca9)||!_0xd0fdf3){logger[_0x4dec89(0x12d)]('['+TAG+']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName='+_0x545d47+',\x20buildRunIdentifier='+_0x391ca9+_0x4dec89(0x107)+_0xd0fdf3);const _0x21082a={};_0x21082a[_0x4dec89(0x147)]=_0x471388['opxnE'];const _0x2eac89={};return _0x2eac89['status']=0x190,_0x2eac89[_0x4dec89(0x131)]=_0x21082a,_0x2eac89;}const _0x4e3cfc=_0x4dec89(0x14c)+_0x471388[_0x4dec89(0x139)](encodeURIComponent,_0x545d47)+_0x4dec89(0x11a)+_0x471388[_0x4dec89(0x10c)](encodeURIComponent,_0x391ca9)+_0x4dec89(0x135)+_0x471388[_0x4dec89(0x141)](encodeURIComponent,_0xd0fdf3),_0x5e51e0=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x4e3cfc;try{logger['debug']('['+TAG+_0x4dec89(0x14b)+_0x5e51e0);let _0x1b2a8a=0x0;const _0x25cec5=await this['_request'](_0x471388[_0x4dec89(0x12b)],_0x5e51e0);return _0x471388[_0x4dec89(0x114)](_0x25cec5['status'],0xc8)&&_0x25cec5['body']&&_0x471388['MwzcA'](typeof _0x25cec5[_0x4dec89(0x131)][_0x4dec89(0x117)],_0x471388[_0x4dec89(0x104)])&&(_0x1b2a8a=_0x471388[_0x4dec89(0x10b)](Number,_0x25cec5[_0x4dec89(0x131)][_0x4dec89(0x117)])),_0x1b2a8a;}catch(_0x49e46e){logger[_0x4dec89(0x12d)]('['+TAG+_0x4dec89(0x106)+_0x49e46e[_0x4dec89(0x147)]+'\x20'+_0x49e46e[_0x4dec89(0x12e)]);const _0x5563ab={};_0x5563ab[_0x4dec89(0x147)]=_0x49e46e[_0x4dec89(0x147)];const _0x66505d={};return _0x66505d[_0x4dec89(0x13b)]=0x1f4,_0x66505d['body']=_0x5563ab,_0x66505d;}}}module['exports']=RequestUtils;function a122_0x4d9b(_0x29f1fc,_0xe7809c){const _0xd4ea66=a122_0xd4ea();return a122_0x4d9b=function(_0x4d9b9d,_0xb629ac){_0x4d9b9d=_0x4d9b9d-0x102;let _0x4c669d=_0xd4ea66[_0x4d9b9d];return _0x4c669d;},a122_0x4d9b(_0x29f1fc,_0xe7809c);}function a122_0xd4ea(){const _0x27faca=['postSplitFiles','589794yFLLpZ','rbgvs','wfnGY','undefined','HOqHa',']\x20Error\x20in\x20putFailedTests:\x20','stringify','HQhRs','https','fHaXf','vQNDX','636520SyzliV','error','stack','env','Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','body','url',']\x20Request\x20failed\x20for\x20','Authorization','&projectName=','request','385287Omonhl',']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20','nFWGV','../logger','status','165iUxQvS','parse','xJgIA','CChpu','debug','FkkJT','687822MGUOQS','UdlNf','end','IphWa','headers','message','data','556664PzyIXi','getFailedTestsCount',']\x20Sending\x20GET\x20to\x20','?buildName=','putFailedTests','dJHSa','lRBJP','Test\x20added','10vhRjGw','statusCode','hSWtW',']\x20Successfully\x20posted\x20split\x20files\x20to\x20',']\x20Error\x20in\x20getFailedTestsCount:\x20',',\x20projectName=','\x20and\x20data:\x20','Rtyps','_request','GpqzK','VXFXo','GnFUB','write','GET','\x20-\x20','\x20with\x20headers:\x20','KBkmQ','1684SITePe','xTvXS','getSplitFiles',']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20','failedTestsCount',',\x20status:\x20',']\x20Sending\x20','&buildRunIdentifier=','PUT','gNOtK','application/json','POST','337563yRzjgM'];a122_0xd4ea=function(){return _0x27faca;};return a122_0xd4ea();}
1
+ function a122_0x13a1(_0x5cc28b,_0x44ceab){const _0x3b065f=a122_0x3b06();return a122_0x13a1=function(_0x13a14a,_0x2d1878){_0x13a14a=_0x13a14a-0x17d;let _0x30255d=_0x3b065f[_0x13a14a];return _0x30255d;},a122_0x13a1(_0x5cc28b,_0x44ceab);}const a122_0x29160a=a122_0x13a1;(function(_0x3848b3,_0x5bcf74){const _0x554333=a122_0x13a1,_0x5d01d7=_0x3848b3();while(!![]){try{const _0x424fcb=parseInt(_0x554333(0x1a4))/0x1+-parseInt(_0x554333(0x1af))/0x2*(parseInt(_0x554333(0x1ae))/0x3)+parseInt(_0x554333(0x19c))/0x4+parseInt(_0x554333(0x183))/0x5*(-parseInt(_0x554333(0x1b8))/0x6)+-parseInt(_0x554333(0x1c8))/0x7*(parseInt(_0x554333(0x181))/0x8)+parseInt(_0x554333(0x190))/0x9*(-parseInt(_0x554333(0x182))/0xa)+-parseInt(_0x554333(0x193))/0xb*(-parseInt(_0x554333(0x19f))/0xc);if(_0x424fcb===_0x5bcf74)break;else _0x5d01d7['push'](_0x5d01d7['shift']());}catch(_0x41bd58){_0x5d01d7['push'](_0x5d01d7['shift']());}}}(a122_0x3b06,0x9c252));const https=require(a122_0x29160a(0x1cd)),{URL}=require(a122_0x29160a(0x1a8)),logger=require('../logger')[a122_0x29160a(0x1b5)],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require(a122_0x29160a(0x1a1)),TAG='RequestUtils';class RequestUtils{static async[a122_0x29160a(0x198)](_0x227b03,_0x3b514d,_0x478196=null){const _0x3bfe21=a122_0x29160a,_0x43817b={'BQaji':function(_0x2c97cd,_0x5f5a9f){return _0x2c97cd(_0x5f5a9f);},'qdiDr':'data','Lpduo':_0x3bfe21(0x1a2),'Ztukm':_0x3bfe21(0x1b4),'TnqCB':function(_0x492801,_0x180f31){return _0x492801===_0x180f31;},'Owuum':_0x3bfe21(0x1c3),'IhZPz':function(_0x2e5926,_0x1e9bcb){return _0x2e5926===_0x1e9bcb;},'AarFS':_0x3bfe21(0x1b6),'lgkab':_0x3bfe21(0x1b3),'KjrwY':function(_0x1c39c6,_0x39e5db){return _0x1c39c6+_0x39e5db;}},_0x3c16fa=process[_0x3bfe21(0x1bd)][_0x3bfe21(0x1ca)]||'',_0x3438a1={};_0x3438a1[_0x3bfe21(0x1b1)]=_0x3bfe21(0x1c6)+_0x3c16fa,_0x3438a1[_0x3bfe21(0x17f)]=_0x43817b['lgkab'];const _0x5c8fde=_0x3438a1,{hostname:_0x3c684e,pathname:_0x56dece,search:_0x273536}=new URL(_0x3b514d),_0x2a1325={'hostname':_0x3c684e,'path':_0x43817b[_0x3bfe21(0x1ba)](_0x56dece,_0x273536),'method':_0x227b03,'headers':_0x5c8fde};return logger[_0x3bfe21(0x18e)]('['+TAG+_0x3bfe21(0x1aa)+_0x227b03+_0x3bfe21(0x18d)+_0x3b514d+_0x3bfe21(0x1cc)+JSON['stringify'](_0x5c8fde)+_0x3bfe21(0x1a0)+JSON[_0x3bfe21(0x1c2)](_0x478196)+_0x3bfe21(0x1ac)+_0x3c16fa),new Promise((_0x80733a,_0x553dd0)=>{const _0x4330ff=_0x3bfe21,_0x32cb33={'Ueckd':function(_0x38bcbb,_0x364ef5){const _0x45f868=a122_0x13a1;return _0x43817b[_0x45f868(0x186)](_0x38bcbb,_0x364ef5);}},_0x56e88b=https['request'](_0x2a1325,_0x2de470=>{const _0x3fe337=a122_0x13a1,_0x47d0c9={'euMvt':function(_0x3adb07,_0x32b657){const _0x464680=a122_0x13a1;return _0x43817b[_0x464680(0x186)](_0x3adb07,_0x32b657);}};let _0x1de7ef='';_0x2de470['on'](_0x43817b['qdiDr'],_0x495ab6=>{_0x1de7ef+=_0x495ab6;}),_0x2de470['on'](_0x43817b[_0x3fe337(0x1b2)],()=>{const _0x24f262=_0x3fe337;try{const _0x4b2f84=_0x1de7ef?JSON[_0x24f262(0x18a)](_0x1de7ef):{},_0x5b4e26={};_0x5b4e26[_0x24f262(0x1b7)]=_0x2de470[_0x24f262(0x191)],_0x5b4e26[_0x24f262(0x17d)]=_0x4b2f84,_0x5b4e26[_0x24f262(0x1bc)]=_0x2de470['headers'],_0x47d0c9['euMvt'](_0x80733a,_0x5b4e26);}catch(_0x592e70){logger['error']('['+TAG+']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20'+_0x1de7ef+_0x24f262(0x19b)+_0x592e70['message']+'\x20'+_0x592e70[_0x24f262(0x195)]),_0x47d0c9[_0x24f262(0x1a3)](_0x553dd0,new Error(_0x24f262(0x1c0)+_0x592e70[_0x24f262(0x1c1)]));}});});_0x56e88b['on'](_0x43817b[_0x4330ff(0x1c5)],_0x479d69=>{const _0x26e170=_0x4330ff;logger[_0x26e170(0x1b4)]('['+TAG+_0x26e170(0x1ad)+_0x227b03+'\x20'+_0x3b514d+':\x20'+_0x479d69[_0x26e170(0x1c1)]+'\x20'+_0x479d69['stack']),_0x32cb33['Ueckd'](_0x553dd0,_0x479d69);}),_0x478196&&(_0x43817b[_0x4330ff(0x197)](_0x227b03,_0x43817b['Owuum'])||_0x43817b['IhZPz'](_0x227b03,_0x43817b['AarFS']))&&_0x56e88b['write'](JSON[_0x4330ff(0x1c2)](_0x478196)),_0x56e88b['end']();});}static async[a122_0x29160a(0x18c)](_0x2c2a0c){const _0x38e8ce=a122_0x29160a,_0x2ba49f={};_0x2ba49f['hkXnn']=_0x38e8ce(0x1c3),_0x2ba49f[_0x38e8ce(0x1b9)]=function(_0x32b1ae,_0x11536f){return _0x32b1ae===_0x11536f;};const _0x168349=_0x2ba49f,_0x52b5bb=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x343fed=await this['_request'](_0x168349[_0x38e8ce(0x18f)],_0x52b5bb,_0x2c2a0c);return _0x168349[_0x38e8ce(0x1b9)](_0x343fed[_0x38e8ce(0x1b7)],0xc8)?logger[_0x38e8ce(0x18e)]('['+TAG+_0x38e8ce(0x1a6)+_0x52b5bb):logger[_0x38e8ce(0x1b4)]('['+TAG+_0x38e8ce(0x180)+_0x52b5bb+':\x20'+JSON[_0x38e8ce(0x1c2)](_0x343fed[_0x38e8ce(0x17d)])+_0x38e8ce(0x1c7)+_0x343fed[_0x38e8ce(0x1b7)]),_0x343fed;}catch(_0x2c1c92){logger[_0x38e8ce(0x1b4)]('['+TAG+_0x38e8ce(0x1a9)+_0x2c1c92[_0x38e8ce(0x1c1)]+'\x20'+_0x2c1c92['stack']);const _0x480c30={};_0x480c30['message']=_0x2c1c92[_0x38e8ce(0x1c1)];const _0x57d0f8={};return _0x57d0f8[_0x38e8ce(0x1b7)]=0x1f4,_0x57d0f8[_0x38e8ce(0x17d)]=_0x480c30,_0x57d0f8;}}static async[a122_0x29160a(0x1c4)](_0x17223e){const _0x4b66ad=a122_0x29160a,_0x577e39={};_0x577e39['PDycS']=_0x4b66ad(0x1ab),_0x577e39[_0x4b66ad(0x189)]=function(_0x290341,_0x124512){return _0x290341===_0x124512;};const _0x30d097=_0x577e39;try{const _0x2fad43=await this['_request'](_0x30d097['PDycS'],_0x17223e);if(_0x30d097[_0x4b66ad(0x189)](_0x2fad43[_0x4b66ad(0x1b7)],0xc8))return _0x2fad43['body'];return{};}catch(_0x82ce76){return logger[_0x4b66ad(0x1b4)]('['+TAG+_0x4b66ad(0x1a9)+_0x82ce76[_0x4b66ad(0x1c1)]+'\x20'+_0x82ce76[_0x4b66ad(0x195)]),{};}}static async[a122_0x29160a(0x1b0)](_0x4d5e07){const _0x2efb8e=a122_0x29160a,_0x52b56e={};_0x52b56e[_0x2efb8e(0x196)]='PUT',_0x52b56e[_0x2efb8e(0x19a)]=function(_0x5b0a10,_0x16b1a1){return _0x5b0a10===_0x16b1a1;},_0x52b56e['FSPYz']=_0x2efb8e(0x18b);const _0x2e4c64=_0x52b56e,_0x3ffbea=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x7f8d2d=await this[_0x2efb8e(0x198)](_0x2e4c64[_0x2efb8e(0x196)],_0x3ffbea,_0x4d5e07);if(_0x2e4c64[_0x2efb8e(0x19a)](_0x7f8d2d[_0x2efb8e(0x1b7)],0xc8)&&_0x7f8d2d[_0x2efb8e(0x17d)]&&_0x2e4c64[_0x2efb8e(0x19a)](_0x7f8d2d[_0x2efb8e(0x17d)][_0x2efb8e(0x1c1)],_0x2e4c64[_0x2efb8e(0x1bf)]))return!![];return![];}catch(_0x2638b8){logger[_0x2efb8e(0x1b4)]('['+TAG+_0x2efb8e(0x1a9)+_0x2638b8['message']+'\x20'+_0x2638b8[_0x2efb8e(0x195)]);const _0x269d25={};_0x269d25[_0x2efb8e(0x1c1)]=_0x2638b8[_0x2efb8e(0x1c1)];const _0x2f1a44={};return _0x2f1a44[_0x2efb8e(0x1b7)]=0x1f4,_0x2f1a44[_0x2efb8e(0x17d)]=_0x269d25,_0x2f1a44;}}static async[a122_0x29160a(0x1c9)](_0x2eae0a){const _0x374883=a122_0x29160a,_0x2e03d2={'ywJlz':function(_0x229566,_0x337e2e){return _0x229566||_0x337e2e;},'WpsKz':_0x374883(0x188),'qEtBu':function(_0xce6724,_0x21db4f){return _0xce6724(_0x21db4f);},'qjOMO':'GET','HwoVy':function(_0x1e0317,_0x18e5e7){return _0x1e0317===_0x18e5e7;},'IAckh':function(_0x559e1b,_0x20482a){return _0x559e1b!==_0x20482a;},'GhyyN':_0x374883(0x1be),'lXLNO':function(_0x458228,_0x3702ac){return _0x458228(_0x3702ac);}},{buildName:_0x547316,buildRunIdentifier:_0x57d0b3,projectName:_0x19f314}=_0x2eae0a;if(_0x2e03d2[_0x374883(0x1bb)](!_0x547316,!_0x57d0b3)||!_0x19f314){logger[_0x374883(0x1b4)]('['+TAG+_0x374883(0x187)+_0x547316+_0x374883(0x192)+_0x57d0b3+_0x374883(0x184)+_0x19f314);const _0x4fbcbe={};_0x4fbcbe['message']=_0x2e03d2['WpsKz'];const _0x4be4ed={};return _0x4be4ed[_0x374883(0x1b7)]=0x190,_0x4be4ed[_0x374883(0x17d)]=_0x4fbcbe,_0x4be4ed;}const _0x1c9726='?buildName='+_0x2e03d2[_0x374883(0x185)](encodeURIComponent,_0x547316)+_0x374883(0x1a5)+_0x2e03d2['qEtBu'](encodeURIComponent,_0x57d0b3)+_0x374883(0x1a7)+_0x2e03d2[_0x374883(0x185)](encodeURIComponent,_0x19f314),_0x610e47=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x1c9726;try{logger[_0x374883(0x18e)]('['+TAG+']\x20Sending\x20GET\x20to\x20'+_0x610e47);let _0x4fced6=0x0;const _0x54e5d2=await this['_request'](_0x2e03d2['qjOMO'],_0x610e47);return _0x2e03d2[_0x374883(0x194)](_0x54e5d2[_0x374883(0x1b7)],0xc8)&&_0x54e5d2[_0x374883(0x17d)]&&_0x2e03d2[_0x374883(0x19d)](typeof _0x54e5d2[_0x374883(0x17d)][_0x374883(0x17e)],_0x2e03d2['GhyyN'])&&(_0x4fced6=_0x2e03d2[_0x374883(0x199)](Number,_0x54e5d2[_0x374883(0x17d)][_0x374883(0x17e)])),_0x4fced6;}catch(_0x3c1f6d){logger[_0x374883(0x1b4)]('['+TAG+_0x374883(0x1cb)+_0x3c1f6d[_0x374883(0x1c1)]+'\x20'+_0x3c1f6d[_0x374883(0x195)]);const _0x15fa0a={};_0x15fa0a[_0x374883(0x1c1)]=_0x3c1f6d[_0x374883(0x1c1)];const _0x31e01f={};return _0x31e01f[_0x374883(0x1b7)]=0x1f4,_0x31e01f[_0x374883(0x17d)]=_0x15fa0a,_0x31e01f;}}}module[a122_0x29160a(0x19e)]=RequestUtils;function a122_0x3b06(){const _0x2b9df5=['\x20-\x20','652264cGuTKH','IAckh','exports','36mPAYWO','\x20and\x20data:\x20','./constants','end','euMvt','209264DSzqLS','&buildRunIdentifier=',']\x20Successfully\x20posted\x20split\x20files\x20to\x20','&projectName=','url',']\x20Error\x20in\x20putFailedTests:\x20',']\x20Sending\x20','GET','\x20and\x20token:\x20',']\x20Request\x20failed\x20for\x20','3624609GqMQza','2bruAsT','putFailedTests','Authorization','Lpduo','application/json','error','winstonLogger','PUT','status','12ZAeAjA','TRVlh','KjrwY','ywJlz','headers','env','undefined','FSPYz','Failed\x20to\x20parse\x20JSON\x20response:\x20','message','stringify','POST','getSplitFiles','Ztukm','Bearer\x20',',\x20status:\x20','343TgvHaT','getFailedTestsCount','BROWSERSTACK_TESTHUB_JWT',']\x20Error\x20in\x20getFailedTestsCount:\x20','\x20with\x20headers:\x20','https','body','failedTestsCount','Content-Type',']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20','182784qEmoPS','70kuVfBA','2109155qODiLk',',\x20projectName=','qEtBu','BQaji',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=','Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','NMoES','parse','Test\x20added','postSplitFiles','\x20request\x20to\x20','debug','hkXnn','1614222AVEXIy','statusCode',',\x20buildRunIdentifier=','17211931JUKAde','HwoVy','stack','AcXle','TnqCB','_request','lXLNO','xZbVQ'];a122_0x3b06=function(){return _0x2b9df5;};return a122_0x3b06();}
@@ -1 +1 @@
1
- const a123_0xc7d228=a123_0xbe08;function a123_0xbe08(_0x28ba4e,_0x46150f){const _0x588f7e=a123_0x588f();return a123_0xbe08=function(_0xbe08ef,_0x4bb2f1){_0xbe08ef=_0xbe08ef-0xd9;let _0x1e4197=_0x588f7e[_0xbe08ef];return _0x1e4197;},a123_0xbe08(_0x28ba4e,_0x46150f);}function a123_0x588f(){const _0x290c3e=['GQocS','stdout','_initializeTestOrdering','1311500bzPdSg','npx','setTestOrderingApplied','vLKSG','jest-util','getOrderedTestFiles','1377887Xgfezh','glob','Odcwn','winstonLogger','env','BROWSERSTACK_NODE_INDEX','1343928pLKRVL','debug','config','projectName','riuVG','micromatch','error','wbSqX','0|5|3|1|2|4','BROWSERSTACK_TOTAL_NODE_COUNT','./orchestrationUtils','\x20files','SWjEN','hCTnZ','exports','length','map','HlAjb','totalNodes','3oJqAef','info','--listTests','**/?(*.)+(spec|test).[jt]s?(x)','filter','updateBuildIdentifier','BEWvN','split','zgigh','matchBase','Found\x20test\x20files:\x20','testObservability','vMRfP','XIKAI','rootDir','jest','287242SNnrVm','[reorderTestFiles]\x20Test\x20ordering\x20is\x20not\x20supported\x20or\x20enabled','orchestrationUtils','applied','JmHyR','splitTests','rKwez','heKPG','xMDkX','buildName','595830EMXaCV','fmeVG','fvmvX','../helper','jest-config','702369kjwiUP','_shouldLogTestOrderingChecks','eFAMY','CRBHe','getTestOrderingName','NvlHH','path','Mrjap','orderingInstrumentationData','logTestOrderingChecks','[orchestrate]\x20Setting\x20buildIdentifier\x20to\x20buildRunIdentifier:\x20','addToOrderingInstrumentationData','relative','CNNoF','isTestOrchestrationEnabled','uploadedTestFilesCount','stack','stringify','8ylkoCw','lOspL','testOrderingServerHandler','XkMcP','isTestOrderingApplied','testOrderingApplied','dNHRg','getSplitTestsAPICallCount','testPathIgnorePatterns','Test\x20Reordering\x20is\x20unavailable\x20because\x20testObservability\x20is\x20disabled.\x20Please\x20enable\x20it\x20from\x20browserstack.yml\x20file.','./testOrderingServerHandler','xAgKa','fFhDC','793510aPqqni','50XUNfGN','SGcya','xNWnE','BROWSERSTACK_BUILD_RUN_IDENTIFIER','getOrderingInstrumentationData','testOrderingEnabled','rkfuN'];a123_0x588f=function(){return _0x290c3e;};return a123_0x588f();}(function(_0xeeb8b1,_0x54dbb2){const _0x275c56=a123_0xbe08,_0x2634cf=_0xeeb8b1();while(!![]){try{const _0x261d2c=parseInt(_0x275c56(0x13c))/0x1+parseInt(_0x275c56(0xde))/0x2*(-parseInt(_0x275c56(0x12c))/0x3)+parseInt(_0x275c56(0x10d))/0x4+-parseInt(_0x275c56(0x102))/0x5+parseInt(_0x275c56(0x119))/0x6+parseInt(_0x275c56(0x113))/0x7*(parseInt(_0x275c56(0xf5))/0x8)+-parseInt(_0x275c56(0xe3))/0x9*(parseInt(_0x275c56(0x103))/0xa);if(_0x261d2c===_0x54dbb2)break;else _0x2634cf['push'](_0x2634cf['shift']());}catch(_0x45d4ad){_0x2634cf['push'](_0x2634cf['shift']());}}}(a123_0x588f,0x2e2c4));const logger=require('../logger')[a123_0xc7d228(0x116)],{isUndefined,isNotUndefined,isTrueString,sanitizedFilePath}=require(a123_0xc7d228(0xe1)),TestOrderingServerHandler=require(a123_0xc7d228(0xff)),OrchestrationUtils=require(a123_0xc7d228(0x123)),path=require(a123_0xc7d228(0xe9)),{spawnSync}=require('child_process'),micromatch=require(a123_0xc7d228(0x11e)),fs=require('fs');class TestOrchestrationHandler{constructor(_0x1d0fe3){const _0x26e07b=a123_0xc7d228,_0x165652={};_0x165652[_0x26e07b(0x12a)]=_0x26e07b(0x121);const _0xd4c7fa=_0x165652,_0x2dfb32=_0xd4c7fa[_0x26e07b(0x12a)][_0x26e07b(0x133)]('|');let _0x52edd5=0x0;while(!![]){switch(_0x2dfb32[_0x52edd5++]){case'0':this[_0x26e07b(0x11b)]=_0x1d0fe3;continue;case'1':this[_0x26e07b(0xf7)]=null;continue;case'2':this[_0x26e07b(0x13e)]=new OrchestrationUtils(_0x1d0fe3);continue;case'3':this['testOrderingApplied']=![];continue;case'4':this[_0x26e07b(0x10c)]();continue;case'5':this['orderingInstrumentationData']={};continue;}break;}}[a123_0xc7d228(0xf1)](){const _0x3d1a5a=a123_0xc7d228,_0x4f7f58={'Mrjap':function(_0x2f87b3,_0x53bc19){return _0x2f87b3(_0x53bc19);},'fvmvX':function(_0x2d1f80,_0x27c6ba){return _0x2d1f80(_0x27c6ba);},'wbSqX':function(_0x5d3564,_0x15f504){return _0x5d3564(_0x15f504);},'aaAIy':function(_0x2b1930,_0x1b0687){return _0x2b1930(_0x1b0687);},'fuvaT':function(_0xcb83b4,_0x250888){return _0xcb83b4(_0x250888);},'reckg':function(_0x513ef6,_0x11bc7d){return _0x513ef6&&_0x11bc7d;}},_0x4bf0c6=_0x4f7f58[_0x3d1a5a(0xea)](isNotUndefined,this['config'])&&(_0x4f7f58[_0x3d1a5a(0xea)](isUndefined,this[_0x3d1a5a(0x11b)][_0x3d1a5a(0x137)])||_0x4f7f58[_0x3d1a5a(0xe0)](isTrueString,this[_0x3d1a5a(0x11b)][_0x3d1a5a(0x137)])),_0x2aaf15=this[_0x3d1a5a(0x13e)][_0x3d1a5a(0x108)](),_0x530af0=_0x4f7f58[_0x3d1a5a(0x120)](isNotUndefined,this[_0x3d1a5a(0x11b)])&&_0x4f7f58[_0x3d1a5a(0xea)](isNotUndefined,this[_0x3d1a5a(0x11b)][_0x3d1a5a(0x11c)]),_0x1eafb8=_0x4f7f58['aaAIy'](isNotUndefined,this[_0x3d1a5a(0x11b)])&&_0x4f7f58['fuvaT'](isNotUndefined,this[_0x3d1a5a(0x11b)]['buildName']);return _0x4f7f58['reckg'](_0x4bf0c6,_0x2aaf15)&&_0x530af0&&_0x1eafb8;}[a123_0xc7d228(0x10c)](){const _0x56c963=a123_0xc7d228,_0x1cad24={};_0x1cad24['fFhDC']='Test\x20orchestration\x20with\x20test\x20ordering\x20enabled',_0x1cad24[_0x56c963(0xf8)]='Test\x20orchestration\x20without\x20test\x20ordering';const _0xf267c9=_0x1cad24;this[_0x56c963(0xf1)]()?(this[_0x56c963(0xf7)]=new TestOrderingServerHandler(this[_0x56c963(0x11b)]),logger['info'](_0xf267c9[_0x56c963(0x101)])):(logger[_0x56c963(0x11a)](_0xf267c9[_0x56c963(0xf8)]),this[_0x56c963(0xec)]());}[a123_0xc7d228(0xec)](){const _0x479e43=a123_0xc7d228,_0x2efd87={'rkfuN':function(_0xadd53c,_0x589e69){return _0xadd53c(_0x589e69);},'rKwez':'Test\x20Reordering\x20is\x20unavailable\x20because\x20buildName\x20or\x20projectName\x20is\x20null.\x20Please\x20set\x20a\x20non-null\x20value.','Jtbvi':_0x479e43(0xfe)};if(!this[_0x479e43(0xe4)]())return;(!_0x2efd87[_0x479e43(0x109)](isNotUndefined,this[_0x479e43(0x11b)])||!_0x2efd87[_0x479e43(0x109)](isNotUndefined,this['config'][_0x479e43(0xdd)])||!_0x2efd87[_0x479e43(0x109)](isNotUndefined,this[_0x479e43(0x11b)][_0x479e43(0x11c)]))&&logger[_0x479e43(0x12d)](_0x2efd87[_0x479e43(0xda)]),_0x2efd87[_0x479e43(0x109)](isNotUndefined,this[_0x479e43(0x11b)])&&_0x2efd87[_0x479e43(0x109)](isNotUndefined,this[_0x479e43(0x11b)][_0x479e43(0x137)])&&!_0x2efd87['rkfuN'](isTrueString,this[_0x479e43(0x11b)][_0x479e43(0x137)])&&logger[_0x479e43(0x12d)](_0x2efd87['Jtbvi']);}[a123_0xc7d228(0xe4)](){const _0x13bc47=a123_0xc7d228;return!this[_0x13bc47(0xf1)]()&&this['orchestrationUtils'][_0x13bc47(0x108)]();}[a123_0xc7d228(0xf9)](){const _0x5d4ff0=a123_0xc7d228;return this[_0x5d4ff0(0xfa)];}[a123_0xc7d228(0x10f)](_0x5ab9c0){const _0x234551=a123_0xc7d228,_0x36cf49={};_0x36cf49[_0x234551(0x138)]=_0x234551(0x13f);const _0x453e32=_0x36cf49;this[_0x234551(0xfa)]=_0x5ab9c0,this['addToOrderingInstrumentationData'](_0x453e32['vMRfP'],_0x5ab9c0);}[a123_0xc7d228(0xee)](_0x2bb182,_0x2bb28b){const _0x2832bd=a123_0xc7d228;this[_0x2832bd(0xeb)][_0x2bb182]=_0x2bb28b;}[a123_0xc7d228(0x107)](){const _0x55b999=a123_0xc7d228;return this[_0x55b999(0xeb)];}[a123_0xc7d228(0x131)](){const _0x114454=a123_0xc7d228,_0x574ce2={'CNNoF':function(_0x10719c,_0x2a524b){return _0x10719c(_0x2a524b);},'heKPG':function(_0x54816d,_0x5bea8f){return _0x54816d>_0x5bea8f;}},_0x91dcb4=_0x574ce2[_0x114454(0xf0)](parseInt,process[_0x114454(0x117)]['BROWSERSTACK_TOTAL_NODE_COUNT']||'1'),_0x1d6f1a=process[_0x114454(0x117)][_0x114454(0x106)];_0x1d6f1a&&_0x574ce2[_0x114454(0xdb)](_0x91dcb4,0x1)&&(logger[_0x114454(0x11a)](_0x114454(0xed)+_0x1d6f1a),this[_0x114454(0x11b)]['buildIdentifier']=_0x1d6f1a);}async['reorderTestFiles'](_0xe9cfaa){const _0x45669c=a123_0xc7d228,_0x38a558={'CRBHe':function(_0x2d41fe,_0x35c2f4){return _0x2d41fe===_0x35c2f4;},'vLKSG':function(_0x1fa6c1,_0x302ffe){return _0x1fa6c1===_0x302ffe;},'FYBSq':_0x45669c(0x13d),'NvlHH':function(_0x2820cf,_0x1ed1da){return _0x2820cf===_0x1ed1da;},'lOspL':function(_0x209faa,_0x2bfa15){return _0x209faa(_0x2bfa15);},'sZhub':_0x45669c(0xf2),'SWjEN':'nodeIndex','hCTnZ':_0x45669c(0x12b),'riuVG':'downloadedTestFilesCount','XIKAI':'splitTestsAPICallCount'};try{if(!_0xe9cfaa||!Array['isArray'](_0xe9cfaa)||_0x38a558[_0x45669c(0xe6)](_0xe9cfaa['length'],0x0))return null;if(_0x38a558[_0x45669c(0x110)](this['isTestOrchestrationEnabled'](),![]))return logger[_0x45669c(0x11a)](_0x38a558['FYBSq']),null;let _0x379a78=null;const _0x43984a=this[_0x45669c(0x13e)][_0x45669c(0xe7)]();if(this[_0x45669c(0xf7)]){const _0x12aa9b=await this['testOrderingServerHandler'][_0x45669c(0xd9)](_0xe9cfaa,_0x43984a);if(!_0x12aa9b)return null;_0x379a78=await this['testOrderingServerHandler'][_0x45669c(0x112)](_0x12aa9b);}if(!_0x379a78||!Array['isArray'](_0x379a78)||_0x38a558[_0x45669c(0xe8)](_0x379a78['length'],0x0))return null;const _0x5a06e2=_0x38a558[_0x45669c(0xf6)](parseInt,process[_0x45669c(0x117)][_0x45669c(0x118)]||'0'),_0xc969a=_0x38a558[_0x45669c(0xf6)](parseInt,process['env'][_0x45669c(0x122)]||'1');return this[_0x45669c(0xee)](_0x38a558['sZhub'],_0xe9cfaa[_0x45669c(0x128)]),this[_0x45669c(0xee)](_0x38a558[_0x45669c(0x125)],_0x5a06e2),this[_0x45669c(0xee)](_0x38a558[_0x45669c(0x126)],_0xc969a),this['addToOrderingInstrumentationData'](_0x38a558[_0x45669c(0x11d)],_0x379a78[_0x45669c(0x128)]),this['addToOrderingInstrumentationData'](_0x38a558[_0x45669c(0x139)],this[_0x45669c(0xf7)]?this['testOrderingServerHandler'][_0x45669c(0xfc)]():0x0),_0x379a78[_0x45669c(0x129)](_0x591768=>sanitizedFilePath(_0x591768));}catch(_0x36b32b){return logger[_0x45669c(0x11a)]('[reorderTestFiles]\x20Error\x20in\x20ordering\x20test\x20files:\x20'+(_0x36b32b[_0x45669c(0xf3)]||_0x36b32b['toString']())),null;}}async['findTestFiles'](_0x1cf749,_0x10932b,_0x1e14b9){const _0x3df3c1=a123_0xc7d228,_0x289a15={'GQocS':function(_0x1fdeff,_0x1e661d){return _0x1fdeff(_0x1e661d);},'dNHRg':_0x3df3c1(0xe2),'LrqFd':function(_0x2d8773,_0x1ce514){return _0x2d8773(_0x1ce514);},'BEWvN':_0x3df3c1(0x111),'SGcya':'jest-runner','eFAMY':function(_0x1bdfdb,_0x7e83d8){return _0x1bdfdb(_0x7e83d8);},'aQAnT':_0x3df3c1(0x114),'xNWnE':'**/__tests__/**/*.[jt]s?(x)','eIVjc':_0x3df3c1(0x12f),'Odcwn':function(_0x4004b8,_0x1667d5,_0xa0cd52,_0x4e4368){return _0x4004b8(_0x1667d5,_0xa0cd52,_0x4e4368);},'fmeVG':_0x3df3c1(0x10e),'xAgKa':_0x3df3c1(0x13b),'xMDkX':'--config','zgigh':_0x3df3c1(0x12e),'JmHyR':'utf-8','AMDiB':function(_0x28034c,_0x40911d,_0x1b8983,_0x32c5dd){return _0x28034c(_0x40911d,_0x1b8983,_0x32c5dd);}};try{const {getTestPathPatterns:_0x5a5916}=_0x289a15[_0x3df3c1(0x10a)](require,_0x289a15[_0x3df3c1(0xfb)]),{globsToMatcher:_0x487089}=_0x289a15['LrqFd'](require,_0x289a15[_0x3df3c1(0x132)]),{findRelatedTests:_0x12aca5}=_0x289a15[_0x3df3c1(0x10a)](require,_0x289a15[_0x3df3c1(0x104)]),_0x18e905=_0x289a15[_0x3df3c1(0xe5)](require,_0x289a15['aQAnT']),_0x2181cb=_0x1cf749['testMatch']||[_0x289a15[_0x3df3c1(0x105)],_0x289a15['eIVjc']],_0x2f5a39=_0x1cf749[_0x3df3c1(0xfd)]||[],_0x35fb6c=_0x289a15[_0x3df3c1(0x115)](spawnSync,_0x289a15[_0x3df3c1(0xdf)],[_0x289a15[_0x3df3c1(0x100)],_0x289a15[_0x3df3c1(0xdc)],_0x1e14b9,..._0x10932b,_0x289a15[_0x3df3c1(0x134)]],{'encoding':_0x289a15[_0x3df3c1(0x140)]});let _0x3ddbd5=[];!_0x35fb6c[_0x3df3c1(0x11f)]&&(_0x3ddbd5=_0x35fb6c[_0x3df3c1(0x10b)][_0x3df3c1(0x133)]('\x0a')[_0x3df3c1(0x130)](Boolean));logger[_0x3df3c1(0x11a)](_0x3df3c1(0x136)+JSON[_0x3df3c1(0xf4)](_0x3ddbd5)+_0x3df3c1(0x124));const _0x57545a={};_0x57545a[_0x3df3c1(0x135)]=!![],_0x57545a['ignore']=_0x2f5a39;const _0x412888=_0x289a15['AMDiB'](micromatch,_0x3ddbd5,_0x2181cb,_0x57545a)[_0x3df3c1(0x129)](_0x59d4cb=>path[_0x3df3c1(0xef)](_0x1cf749[_0x3df3c1(0x13a)],_0x59d4cb));return logger['debug']('Filterted\x20to\x20test\x20files:\x20'+JSON[_0x3df3c1(0xf4)](_0x412888)+_0x3df3c1(0x124)),_0x412888;}catch(_0x13248c){return logger[_0x3df3c1(0x11a)]('Error\x20finding\x20test\x20files:\x20'+_0x13248c),[];}}}module[a123_0xc7d228(0x127)]=TestOrchestrationHandler;
1
+ const a123_0x45cd4b=a123_0x40dd;(function(_0x419d8c,_0x5772f3){const _0x55fcd2=a123_0x40dd,_0x9e0fe=_0x419d8c();while(!![]){try{const _0x3c275c=parseInt(_0x55fcd2(0x182))/0x1*(parseInt(_0x55fcd2(0x18d))/0x2)+-parseInt(_0x55fcd2(0x18b))/0x3*(-parseInt(_0x55fcd2(0x177))/0x4)+-parseInt(_0x55fcd2(0x1bc))/0x5+parseInt(_0x55fcd2(0x160))/0x6+parseInt(_0x55fcd2(0x195))/0x7+parseInt(_0x55fcd2(0x188))/0x8+parseInt(_0x55fcd2(0x194))/0x9*(parseInt(_0x55fcd2(0x164))/0xa);if(_0x3c275c===_0x5772f3)break;else _0x9e0fe['push'](_0x9e0fe['shift']());}catch(_0x3249bf){_0x9e0fe['push'](_0x9e0fe['shift']());}}}(a123_0x458b,0xc116d));const logger=require(a123_0x45cd4b(0x1a3))['winstonLogger'],{isUndefined,isNotUndefined,isTrueString,sanitizedFilePath}=require(a123_0x45cd4b(0x19e)),TestOrderingServerHandler=require(a123_0x45cd4b(0x180)),OrchestrationUtils=require(a123_0x45cd4b(0x19c)),path=require(a123_0x45cd4b(0x166)),{spawnSync}=require(a123_0x45cd4b(0x1a4)),micromatch=require('micromatch'),fs=require('fs');class TestOrchestrationHandler{constructor(_0x3d69c4){const _0x2db878=a123_0x45cd4b,_0x3c6b9d={};_0x3c6b9d[_0x2db878(0x1ad)]=_0x2db878(0x192);const _0x103a23=_0x3c6b9d,_0x263778=_0x103a23[_0x2db878(0x1ad)][_0x2db878(0x17f)]('|');let _0x58542b=0x0;while(!![]){switch(_0x263778[_0x58542b++]){case'0':this[_0x2db878(0x17a)]();continue;case'1':this[_0x2db878(0x1bf)]={};continue;case'2':this[_0x2db878(0x185)]=![];continue;case'3':this[_0x2db878(0x1bd)]=new OrchestrationUtils(_0x3d69c4);continue;case'4':this[_0x2db878(0x1a6)]=null;continue;case'5':this[_0x2db878(0x18c)]=_0x3d69c4;continue;}break;}}[a123_0x45cd4b(0x18a)](){const _0x5af029=a123_0x45cd4b,_0x920977={'SqJjP':function(_0x8b9039,_0x18a9c1){return _0x8b9039(_0x18a9c1);},'bKSVm':function(_0x587139,_0x129615){return _0x587139(_0x129615);},'XEGqU':function(_0x2bf916,_0x28ba8e){return _0x2bf916(_0x28ba8e);},'RmKlX':function(_0x380dd7,_0x595f79){return _0x380dd7&&_0x595f79;}},_0x20144f=_0x920977[_0x5af029(0x19f)](isNotUndefined,this[_0x5af029(0x18c)])&&(_0x920977[_0x5af029(0x19f)](isUndefined,this[_0x5af029(0x18c)][_0x5af029(0x184)])||_0x920977[_0x5af029(0x19f)](isTrueString,this[_0x5af029(0x18c)][_0x5af029(0x184)])),_0x41a02b=this[_0x5af029(0x1bd)]['testOrderingEnabled'](),_0x1fd28d=_0x920977['SqJjP'](isNotUndefined,this[_0x5af029(0x18c)])&&_0x920977[_0x5af029(0x157)](isNotUndefined,this['config'][_0x5af029(0x15b)]),_0x4d62d1=_0x920977[_0x5af029(0x19f)](isNotUndefined,this['config'])&&_0x920977['XEGqU'](isNotUndefined,this[_0x5af029(0x18c)]['buildName']);return _0x920977['RmKlX'](_0x20144f,_0x41a02b)&&_0x1fd28d&&_0x4d62d1;}['_initializeTestOrdering'](){const _0x56f347=a123_0x45cd4b,_0x10545f={};_0x10545f[_0x56f347(0x15c)]='Test\x20orchestration\x20with\x20test\x20ordering\x20enabled',_0x10545f[_0x56f347(0x162)]=_0x56f347(0x1b7);const _0x3aa3cb=_0x10545f;this['isTestOrchestrationEnabled']()?(this[_0x56f347(0x1a6)]=new TestOrderingServerHandler(this[_0x56f347(0x18c)]),logger['info'](_0x3aa3cb[_0x56f347(0x15c)])):(logger['debug'](_0x3aa3cb['BySfn']),this['logTestOrderingChecks']());}[a123_0x45cd4b(0x161)](){const _0x33b51c=a123_0x45cd4b,_0x32cc58={'GdvPS':function(_0x52f5ae,_0x53258b){return _0x52f5ae(_0x53258b);},'SBYqD':function(_0x1e5442,_0x2d6ccd){return _0x1e5442(_0x2d6ccd);},'efqAx':_0x33b51c(0x19a),'DDily':function(_0xe6a80e,_0x4e7e9d){return _0xe6a80e(_0x4e7e9d);},'ZSntG':function(_0x44bcf3,_0x3b798c){return _0x44bcf3(_0x3b798c);},'tqNrw':_0x33b51c(0x169)};if(!this[_0x33b51c(0x199)]())return;(!_0x32cc58['GdvPS'](isNotUndefined,this['config'])||!_0x32cc58[_0x33b51c(0x15e)](isNotUndefined,this[_0x33b51c(0x18c)][_0x33b51c(0x1ae)])||!_0x32cc58[_0x33b51c(0x15e)](isNotUndefined,this[_0x33b51c(0x18c)][_0x33b51c(0x15b)]))&&logger['info'](_0x32cc58['efqAx']),_0x32cc58['SBYqD'](isNotUndefined,this[_0x33b51c(0x18c)])&&_0x32cc58[_0x33b51c(0x1be)](isNotUndefined,this[_0x33b51c(0x18c)][_0x33b51c(0x184)])&&!_0x32cc58[_0x33b51c(0x197)](isTrueString,this['config'][_0x33b51c(0x184)])&&logger[_0x33b51c(0x193)](_0x32cc58[_0x33b51c(0x1a9)]);}[a123_0x45cd4b(0x199)](){const _0x1489c7=a123_0x45cd4b;return!this[_0x1489c7(0x18a)]()&&this['orchestrationUtils'][_0x1489c7(0x163)]();}[a123_0x45cd4b(0x1a0)](){const _0x3a80a1=a123_0x45cd4b;return this[_0x3a80a1(0x185)];}['setTestOrderingApplied'](_0x9d07f9){const _0x4ac696=a123_0x45cd4b,_0x263c32={};_0x263c32[_0x4ac696(0x1ac)]=_0x4ac696(0x1ba);const _0x30017f=_0x263c32;this[_0x4ac696(0x185)]=_0x9d07f9,this[_0x4ac696(0x17d)](_0x30017f[_0x4ac696(0x1ac)],_0x9d07f9);}[a123_0x45cd4b(0x17d)](_0x24ab3f,_0x3efbd5){const _0x24de89=a123_0x45cd4b;this[_0x24de89(0x1bf)][_0x24ab3f]=_0x3efbd5;}[a123_0x45cd4b(0x1c1)](){return this['orderingInstrumentationData'];}[a123_0x45cd4b(0x1af)](){const _0x28fdb1=a123_0x45cd4b,_0x43dd66={'cOtkB':function(_0x5e2e5c,_0x10f780){return _0x5e2e5c(_0x10f780);},'RevAs':function(_0x25f70f,_0xdb6993){return _0x25f70f>_0xdb6993;}},_0x304f1f=_0x43dd66['cOtkB'](parseInt,process[_0x28fdb1(0x1aa)][_0x28fdb1(0x167)]||'1'),_0x2dded3=process['env'][_0x28fdb1(0x15d)];_0x2dded3&&_0x43dd66[_0x28fdb1(0x17b)](_0x304f1f,0x1)&&(logger[_0x28fdb1(0x178)](_0x28fdb1(0x176)+_0x2dded3),this[_0x28fdb1(0x18c)]['buildIdentifier']=_0x2dded3);}async[a123_0x45cd4b(0x18e)](_0x1fc7d9){const _0x36686c=a123_0x45cd4b,_0x4f08a2={'ZDarq':function(_0x5c6f01,_0x1ba388){return _0x5c6f01===_0x1ba388;},'wAPBt':function(_0x4310c7,_0x403d50){return _0x4310c7===_0x403d50;},'IRTiY':'[reorderTestFiles]\x20Test\x20ordering\x20is\x20not\x20supported\x20or\x20enabled','XFoln':function(_0x1156ac,_0x30ebd0){return _0x1156ac===_0x30ebd0;},'HkHMJ':function(_0x44a499,_0x18d454){return _0x44a499(_0x18d454);},'audni':function(_0x2f176e,_0x33f9a4){return _0x2f176e(_0x33f9a4);},'Jztdf':'uploadedTestFilesCount','Ytink':_0x36686c(0x1a5),'YKmbC':_0x36686c(0x174),'QZxkq':_0x36686c(0x18f),'uqnvl':_0x36686c(0x1c0)};try{if(!_0x1fc7d9||!Array[_0x36686c(0x1bb)](_0x1fc7d9)||_0x4f08a2[_0x36686c(0x1b6)](_0x1fc7d9['length'],0x0))return null;if(_0x4f08a2[_0x36686c(0x189)](this[_0x36686c(0x18a)](),![]))return logger['debug'](_0x4f08a2[_0x36686c(0x1b8)]),null;let _0x274bb9=null;const _0x1ae15f=this[_0x36686c(0x1bd)][_0x36686c(0x16d)]();if(this[_0x36686c(0x1a6)]){const _0x4e343f=await this[_0x36686c(0x1a6)][_0x36686c(0x171)](_0x1fc7d9,_0x1ae15f);if(!_0x4e343f)return null;_0x274bb9=await this[_0x36686c(0x1a6)][_0x36686c(0x170)](_0x4e343f);}if(!_0x274bb9||!Array[_0x36686c(0x1bb)](_0x274bb9)||_0x4f08a2['XFoln'](_0x274bb9[_0x36686c(0x158)],0x0))return null;const _0x6e5a7f=_0x4f08a2[_0x36686c(0x187)](parseInt,process[_0x36686c(0x1aa)]['BROWSERSTACK_NODE_INDEX']||'0'),_0x25104d=_0x4f08a2['audni'](parseInt,process[_0x36686c(0x1aa)]['BROWSERSTACK_TOTAL_NODE_COUNT']||'1');return this['addToOrderingInstrumentationData'](_0x4f08a2['Jztdf'],_0x1fc7d9[_0x36686c(0x158)]),this[_0x36686c(0x17d)](_0x4f08a2[_0x36686c(0x172)],_0x6e5a7f),this[_0x36686c(0x17d)](_0x4f08a2[_0x36686c(0x16e)],_0x25104d),this[_0x36686c(0x17d)](_0x4f08a2[_0x36686c(0x1ab)],_0x274bb9[_0x36686c(0x158)]),this[_0x36686c(0x17d)](_0x4f08a2['uqnvl'],this[_0x36686c(0x1a6)]?this[_0x36686c(0x1a6)]['getSplitTestsAPICallCount']():0x0),_0x274bb9[_0x36686c(0x1b1)](_0x2d8fa8=>sanitizedFilePath(_0x2d8fa8));}catch(_0x43bc25){return logger[_0x36686c(0x178)](_0x36686c(0x17c)+(_0x43bc25[_0x36686c(0x183)]||_0x43bc25[_0x36686c(0x165)]())),null;}}async[a123_0x45cd4b(0x196)](_0x5c9340,_0x4ca247,_0x1fbd1d){const _0x7a6dce=a123_0x45cd4b,_0x94092f={'LGRXr':function(_0x5562af,_0x177ebd){return _0x5562af(_0x177ebd);},'pOOzw':_0x7a6dce(0x1a1),'eLzIa':function(_0x212e91,_0x3d02d7){return _0x212e91(_0x3d02d7);},'CKLTN':'jest-util','MFyRF':function(_0x47100c,_0x2689d8){return _0x47100c(_0x2689d8);},'OAmzR':_0x7a6dce(0x186),'EAbjm':_0x7a6dce(0x159),'rToOz':_0x7a6dce(0x19b),'LSoZn':'**/?(*.)+(spec|test).[jt]s?(x)','CxQJP':function(_0x3b47a9,_0x4be876,_0xc866d4,_0x588012){return _0x3b47a9(_0x4be876,_0xc866d4,_0x588012);},'zOaMq':'npx','WDxin':_0x7a6dce(0x1a7),'WRdyq':'--config','HxntR':_0x7a6dce(0x1b4),'EvKVQ':_0x7a6dce(0x1b5)};try{const {getTestPathPatterns:_0x310c73}=_0x94092f['LGRXr'](require,_0x94092f[_0x7a6dce(0x1a2)]),{globsToMatcher:_0x41cbd0}=_0x94092f[_0x7a6dce(0x173)](require,_0x94092f['CKLTN']),{findRelatedTests:_0x223cba}=_0x94092f[_0x7a6dce(0x179)](require,_0x94092f['OAmzR']),_0x1a3df6=_0x94092f['MFyRF'](require,_0x94092f[_0x7a6dce(0x181)]),_0x28b41e=_0x5c9340['testMatch']||[_0x94092f[_0x7a6dce(0x191)],_0x94092f[_0x7a6dce(0x15a)]],_0x2477d5=_0x5c9340[_0x7a6dce(0x1b0)]||[],_0x3a424c=_0x94092f[_0x7a6dce(0x15f)](spawnSync,_0x94092f[_0x7a6dce(0x175)],[_0x94092f['WDxin'],_0x94092f['WRdyq'],_0x1fbd1d,..._0x4ca247,_0x94092f[_0x7a6dce(0x19d)]],{'encoding':_0x94092f[_0x7a6dce(0x16f)]});let _0x45d5d3=[];!_0x3a424c['error']&&(_0x45d5d3=_0x3a424c[_0x7a6dce(0x16a)][_0x7a6dce(0x17f)]('\x0a')[_0x7a6dce(0x16b)](Boolean));logger['debug'](_0x7a6dce(0x168)+JSON['stringify'](_0x45d5d3)+'\x20files');const _0x2a9128={};_0x2a9128[_0x7a6dce(0x16c)]=!![],_0x2a9128[_0x7a6dce(0x190)]=_0x2477d5;const _0x88aa14=_0x94092f[_0x7a6dce(0x15f)](micromatch,_0x45d5d3,_0x28b41e,_0x2a9128)[_0x7a6dce(0x1b1)](_0x37d81d=>path[_0x7a6dce(0x1b9)](_0x5c9340[_0x7a6dce(0x1b2)],_0x37d81d));return logger[_0x7a6dce(0x178)]('Filterted\x20to\x20test\x20files:\x20'+JSON[_0x7a6dce(0x198)](_0x88aa14)+_0x7a6dce(0x1b3)),_0x88aa14;}catch(_0x504d55){return logger[_0x7a6dce(0x178)](_0x7a6dce(0x17e)+_0x504d55),[];}}}function a123_0x40dd(_0x2ee804,_0x1995d1){const _0x458bf6=a123_0x458b();return a123_0x40dd=function(_0x40dd10,_0x24293d){_0x40dd10=_0x40dd10-0x157;let _0x1da015=_0x458bf6[_0x40dd10];return _0x1da015;},a123_0x40dd(_0x2ee804,_0x1995d1);}module[a123_0x45cd4b(0x1a8)]=TestOrchestrationHandler;function a123_0x458b(){const _0x4febfe=['pOOzw','../logger','child_process','nodeIndex','testOrderingServerHandler','jest','exports','tqNrw','env','QZxkq','szXwc','rnWOS','buildName','updateBuildIdentifier','testPathIgnorePatterns','map','rootDir','\x20files','--listTests','utf-8','ZDarq','Test\x20orchestration\x20without\x20test\x20ordering','IRTiY','relative','applied','isArray','4610685ZmFqFJ','orchestrationUtils','DDily','orderingInstrumentationData','splitTestsAPICallCount','getOrderingInstrumentationData','bKSVm','length','glob','LSoZn','projectName','VXjkV','BROWSERSTACK_BUILD_RUN_IDENTIFIER','SBYqD','CxQJP','1164378qqAgut','logTestOrderingChecks','BySfn','testOrderingEnabled','74570aWQcMr','toString','path','BROWSERSTACK_TOTAL_NODE_COUNT','Found\x20test\x20files:\x20','Test\x20Reordering\x20is\x20unavailable\x20because\x20testObservability\x20is\x20disabled.\x20Please\x20enable\x20it\x20from\x20browserstack.yml\x20file.','stdout','filter','matchBase','getTestOrderingName','YKmbC','EvKVQ','getOrderedTestFiles','splitTests','Ytink','eLzIa','totalNodes','zOaMq','[orchestrate]\x20Setting\x20buildIdentifier\x20to\x20buildRunIdentifier:\x20','60OxKOSU','debug','MFyRF','_initializeTestOrdering','RevAs','[reorderTestFiles]\x20Error\x20in\x20ordering\x20test\x20files:\x20','addToOrderingInstrumentationData','Error\x20finding\x20test\x20files:\x20','split','./testOrderingServerHandler','EAbjm','1ehXJiZ','stack','testObservability','testOrderingApplied','jest-runner','HkHMJ','4088584VsuCon','wAPBt','isTestOrchestrationEnabled','3108RRGOZL','config','1273082tSyqqY','reorderTestFiles','downloadedTestFilesCount','ignore','rToOz','5|1|2|4|3|0','info','117aYfsUy','1812104HunKTn','findTestFiles','ZSntG','stringify','_shouldLogTestOrderingChecks','Test\x20Reordering\x20is\x20unavailable\x20because\x20buildName\x20or\x20projectName\x20is\x20null.\x20Please\x20set\x20a\x20non-null\x20value.','**/__tests__/**/*.[jt]s?(x)','./orchestrationUtils','HxntR','../helper','SqJjP','isTestOrderingApplied','jest-config'];a123_0x458b=function(){return _0x4febfe;};return a123_0x458b();}