browserstack-node-sdk 1.50.3 → 1.50.5

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 (186) 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.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/nightwatch/command.js +1 -1
  79. package/src/bin/playwright/accessibility-helper.js +1 -1
  80. package/src/bin/playwright/command.js +1 -1
  81. package/src/bin/playwright/globalSetup.js +1 -1
  82. package/src/bin/playwright/mock-process.js +1 -1
  83. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  84. package/src/bin/playwright/patches.js +1 -1
  85. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  86. package/src/bin/playwright/reporter/reporter.js +1 -1
  87. package/src/bin/playwright/reporter/test-details.js +1 -1
  88. package/src/bin/playwright/sessionDetails.js +1 -1
  89. package/src/bin/runner.js +1 -1
  90. package/src/bin/setup.js +1 -1
  91. package/src/bin/test-runner/index.js +1 -1
  92. package/src/bin/test-runner/runTest.js +1 -1
  93. package/src/bin/test-runner/testWorker.js +1 -1
  94. package/src/bin/utils/apiUtilityMethods.js +1 -1
  95. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  96. package/src/bin/utils/constants.js +1 -1
  97. package/src/bin/utils/log4jsAppender.js +1 -1
  98. package/src/bin/utils/logPatcher.js +1 -1
  99. package/src/bin/utils/logReportingAPI.js +1 -1
  100. package/src/bin/utils/playwright-patcher.js +1 -1
  101. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  102. package/src/bin/utils/sharedUtils.js +1 -1
  103. package/src/bin/v2/TestInfo.js +1 -1
  104. package/src/bin/v2/browserstackCLI.js +1 -1
  105. package/src/bin/v2/cliUtils.js +1 -1
  106. package/src/bin/v2/customTagManager.js +1 -1
  107. package/src/bin/v2/eventDispatcher.js +1 -1
  108. package/src/bin/v2/framework/automationFramework.js +1 -1
  109. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  110. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  111. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  112. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  113. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  114. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  115. package/src/bin/v2/framework/testFramework.js +1 -1
  116. package/src/bin/v2/grpcClient.js +1 -1
  117. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  118. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  119. package/src/bin/v2/instances/trackedContext.js +1 -1
  120. package/src/bin/v2/instances/trackedInstance.js +1 -1
  121. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  122. package/src/bin/v2/modules/baseModule.js +1 -1
  123. package/src/bin/v2/modules/loadTestModule.js +1 -1
  124. package/src/bin/v2/modules/observabilityModule.js +1 -1
  125. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  126. package/src/bin/v2/modules/testhubModule.js +1 -1
  127. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  128. package/src/bin/v2/state/hookState.js +1 -1
  129. package/src/bin/v2/state/testFrameworkState.js +1 -1
  130. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  131. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  132. package/src/bin/v2/utils/jest-utils.js +1 -1
  133. package/src/bin/vanilla-js/command.js +1 -1
  134. package/src/browserStackSdk.js +1 -1
  135. package/src/helpers/BrowserStackSetup.js +1 -1
  136. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  137. package/src/helpers/accessibility-automation/constants.js +1 -1
  138. package/src/helpers/accessibility-automation/helper.js +1 -1
  139. package/src/helpers/accessibility-automation/scripts.js +1 -1
  140. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  141. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  142. package/src/helpers/ats/constants.js +1 -1
  143. package/src/helpers/ats/helper.js +1 -1
  144. package/src/helpers/capsMapping.js +1 -1
  145. package/src/helpers/central-scanner/constants.js +1 -1
  146. package/src/helpers/central-scanner/helpers.js +1 -1
  147. package/src/helpers/classLogger.js +1 -1
  148. package/src/helpers/globals.js +1 -1
  149. package/src/helpers/helper.js +1 -1
  150. package/src/helpers/logger.js +1 -1
  151. package/src/helpers/metadata.js +1 -1
  152. package/src/helpers/patchHelper.js +1 -1
  153. package/src/helpers/patchHelpers.js +1 -1
  154. package/src/helpers/percy/Percy.js +1 -1
  155. package/src/helpers/percy/PercyBinary.js +1 -1
  156. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  157. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  158. package/src/helpers/percy/PercySDK.js +1 -1
  159. package/src/helpers/percy/index.js +1 -1
  160. package/src/helpers/percy/utils.js +1 -1
  161. package/src/helpers/performance/constants.js +1 -1
  162. package/src/helpers/performance/performance-tester.js +1 -1
  163. package/src/helpers/playwright-helper.js +1 -1
  164. package/src/helpers/processHelper.js +1 -1
  165. package/src/helpers/request-spy.js +1 -1
  166. package/src/helpers/setKeepAlive.js +1 -1
  167. package/src/helpers/test-observability/constants.js +1 -1
  168. package/src/helpers/test-observability/error-handler.js +1 -1
  169. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  170. package/src/helpers/test-observability/sessionHandler.js +1 -1
  171. package/src/helpers/test-observability/utils.js +1 -1
  172. package/src/helpers/test-orchestration/constants.js +1 -1
  173. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  174. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  175. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  176. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  177. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  178. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  179. package/src/helpers/testhub/constants.js +1 -1
  180. package/src/helpers/testhub/testhubHandler.js +1 -1
  181. package/src/helpers/testhub/utils.js +1 -1
  182. package/src/helpers/timeoutPromise.js +1 -1
  183. package/src/helpers/utilities.js +1 -1
  184. package/src/helpers/w3cMapping.js +1 -1
  185. package/src/hubAllocationMethods.js +1 -1
  186. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a135_0x5238(_0x3d1218,_0x2fe748){const _0x7ecde0=a135_0x7ecd();return a135_0x5238=function(_0x523822,_0x227e21){_0x523822=_0x523822-0xe2;let _0x3cc10d=_0x7ecde0[_0x523822];return _0x3cc10d;},a135_0x5238(_0x3d1218,_0x2fe748);}const a135_0x340c36=a135_0x5238;(function(_0x451f0f,_0x684e22){const _0x26ec42=a135_0x5238,_0x276578=_0x451f0f();while(!![]){try{const _0x1c6473=parseInt(_0x26ec42(0xe3))/0x1+-parseInt(_0x26ec42(0x103))/0x2+parseInt(_0x26ec42(0x105))/0x3+parseInt(_0x26ec42(0xf6))/0x4+parseInt(_0x26ec42(0x10e))/0x5*(parseInt(_0x26ec42(0x125))/0x6)+parseInt(_0x26ec42(0xf4))/0x7+-parseInt(_0x26ec42(0x130))/0x8*(parseInt(_0x26ec42(0x111))/0x9);if(_0x1c6473===_0x684e22)break;else _0x276578['push'](_0x276578['shift']());}catch(_0x426807){_0x276578['push'](_0x276578['shift']());}}}(a135_0x7ecd,0x36234));const https=require('https'),{URL}=require(a135_0x340c36(0x10b)),logger=require(a135_0x340c36(0xe8))['winstonLogger'],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require(a135_0x340c36(0x11c)),TAG=a135_0x340c36(0x121);class RequestUtils{static async['_request'](_0x255b44,_0x9cf835,_0x162dda=null){const _0x1e2c38=a135_0x340c36,_0x243def={'WNJbL':'data','DyoKA':_0x1e2c38(0x12c),'wutUI':function(_0x4a294f,_0x33e150){return _0x4a294f(_0x33e150);},'QiwNX':function(_0xf0bc3f,_0x598aa0){return _0xf0bc3f(_0x598aa0);},'busAd':function(_0x21a21a,_0xb2ea6b){return _0x21a21a(_0xb2ea6b);},'rqozY':_0x1e2c38(0x12a),'fchVb':function(_0xe2f81b,_0x8a0abf){return _0xe2f81b===_0x8a0abf;},'SWdwj':'POST','PoVkT':function(_0x8d91e0,_0x2f280c){return _0x8d91e0===_0x2f280c;},'ekJfW':_0x1e2c38(0x10a),'pWZlj':_0x1e2c38(0xe2),'yaMtp':function(_0x49a5a1,_0x1f8611){return _0x49a5a1+_0x1f8611;}},_0x7c45e7=process[_0x1e2c38(0xe9)][_0x1e2c38(0x12d)]||'',_0x4292d0={};_0x4292d0['Authorization']=_0x1e2c38(0x117)+_0x7c45e7,_0x4292d0[_0x1e2c38(0x131)]=_0x243def[_0x1e2c38(0x114)];const _0x5dcd34=_0x4292d0,{hostname:_0x40c92e,pathname:_0x25cdf7,search:_0x143275}=new URL(_0x9cf835),_0x211e28={'hostname':_0x40c92e,'path':_0x243def[_0x1e2c38(0x101)](_0x25cdf7,_0x143275),'method':_0x255b44,'headers':_0x5dcd34};return logger['debug']('['+TAG+_0x1e2c38(0xe5)+_0x255b44+_0x1e2c38(0x11d)+_0x9cf835+_0x1e2c38(0x126)+JSON['stringify'](_0x5dcd34)+_0x1e2c38(0xff)+JSON[_0x1e2c38(0x112)](_0x162dda)+_0x1e2c38(0x118)+_0x7c45e7),new Promise((_0x3ac872,_0xa7f071)=>{const _0x19fbcf=_0x1e2c38,_0x4f1433={'uKIId':function(_0x5b92ea,_0x3460e9){const _0x5e6b6f=a135_0x5238;return _0x243def[_0x5e6b6f(0xf2)](_0x5b92ea,_0x3460e9);},'gbaOn':function(_0x56e88b,_0x2200e4){const _0x3d3c8d=a135_0x5238;return _0x243def[_0x3d3c8d(0x115)](_0x56e88b,_0x2200e4);}},_0x5572cd=https[_0x19fbcf(0xfc)](_0x211e28,_0x577021=>{const _0xaaf000=_0x19fbcf;let _0x19a923='';_0x577021['on'](_0x243def[_0xaaf000(0x113)],_0x2a0a43=>{_0x19a923+=_0x2a0a43;}),_0x577021['on'](_0x243def[_0xaaf000(0x10d)],()=>{const _0x5ecccc=_0xaaf000;try{const _0x335313=_0x19a923?JSON[_0x5ecccc(0x11f)](_0x19a923):{},_0x34e42e={};_0x34e42e[_0x5ecccc(0xf9)]=_0x577021[_0x5ecccc(0xed)],_0x34e42e[_0x5ecccc(0xe7)]=_0x335313,_0x34e42e[_0x5ecccc(0x123)]=_0x577021[_0x5ecccc(0x123)],_0x4f1433[_0x5ecccc(0xec)](_0x3ac872,_0x34e42e);}catch(_0x2b476c){logger[_0x5ecccc(0x12a)]('['+TAG+']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20'+_0x19a923+_0x5ecccc(0x12b)+_0x2b476c['message']+'\x20'+_0x2b476c[_0x5ecccc(0xfa)]),_0x4f1433[_0x5ecccc(0xf5)](_0xa7f071,new Error(_0x5ecccc(0x120)+_0x2b476c[_0x5ecccc(0x128)]));}});});_0x5572cd['on'](_0x243def[_0x19fbcf(0x10f)],_0x14269d=>{const _0x200821=_0x19fbcf;logger[_0x200821(0x12a)]('['+TAG+']\x20Request\x20failed\x20for\x20'+_0x255b44+'\x20'+_0x9cf835+':\x20'+_0x14269d[_0x200821(0x128)]+'\x20'+_0x14269d[_0x200821(0xfa)]),_0x243def[_0x200821(0x122)](_0xa7f071,_0x14269d);}),_0x162dda&&(_0x243def[_0x19fbcf(0xf1)](_0x255b44,_0x243def[_0x19fbcf(0x11b)])||_0x243def[_0x19fbcf(0x108)](_0x255b44,_0x243def['ekJfW']))&&_0x5572cd['write'](JSON[_0x19fbcf(0x112)](_0x162dda)),_0x5572cd['end']();});}static async[a135_0x340c36(0xe4)](_0x3b332f){const _0x3899ba=a135_0x340c36,_0x4c913c={};_0x4c913c[_0x3899ba(0x10c)]='POST',_0x4c913c['JNNli']=function(_0x3f0f0e,_0x46ebf1){return _0x3f0f0e===_0x46ebf1;};const _0x2ad657=_0x4c913c,_0x1edb0e=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x1e0474=await this['_request'](_0x2ad657[_0x3899ba(0x10c)],_0x1edb0e,_0x3b332f);return _0x2ad657[_0x3899ba(0x109)](_0x1e0474['status'],0xc8)?logger[_0x3899ba(0x107)]('['+TAG+_0x3899ba(0x119)+_0x1edb0e):logger['error']('['+TAG+_0x3899ba(0xf7)+_0x1edb0e+':\x20'+JSON['stringify'](_0x1e0474[_0x3899ba(0xe7)])+',\x20status:\x20'+_0x1e0474['status']),_0x1e0474;}catch(_0x35a0b6){logger[_0x3899ba(0x12a)]('['+TAG+_0x3899ba(0x129)+_0x35a0b6[_0x3899ba(0x128)]+'\x20'+_0x35a0b6['stack']);const _0x2ed789={};_0x2ed789[_0x3899ba(0x128)]=_0x35a0b6[_0x3899ba(0x128)];const _0x32829a={};return _0x32829a['status']=0x1f4,_0x32829a[_0x3899ba(0xe7)]=_0x2ed789,_0x32829a;}}static async['getSplitFiles'](_0x403c86){const _0x2b2dfb=a135_0x340c36,_0x65810e={};_0x65810e[_0x2b2dfb(0xfe)]=_0x2b2dfb(0xe6),_0x65810e[_0x2b2dfb(0xeb)]=function(_0x491c87,_0x49382a){return _0x491c87===_0x49382a;};const _0x9e8119=_0x65810e;try{const _0x3e27db=await this[_0x2b2dfb(0xef)](_0x9e8119[_0x2b2dfb(0xfe)],_0x403c86);if(_0x9e8119[_0x2b2dfb(0xeb)](_0x3e27db[_0x2b2dfb(0xf9)],0xc8))return _0x3e27db[_0x2b2dfb(0xe7)];return{};}catch(_0x5b6127){return logger['error']('['+TAG+_0x2b2dfb(0x129)+_0x5b6127[_0x2b2dfb(0x128)]+'\x20'+_0x5b6127[_0x2b2dfb(0xfa)]),{};}}static async[a135_0x340c36(0x127)](_0x548a61){const _0x33bf3a=a135_0x340c36,_0x56f058={};_0x56f058['DAyUs']=_0x33bf3a(0x10a),_0x56f058[_0x33bf3a(0xfb)]=function(_0x468c3b,_0xf57057){return _0x468c3b===_0xf57057;},_0x56f058[_0x33bf3a(0xea)]=function(_0x39fdbc,_0x97a56a){return _0x39fdbc===_0x97a56a;},_0x56f058[_0x33bf3a(0x11e)]=_0x33bf3a(0xfd);const _0x34f7a9=_0x56f058,_0x4c251b=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x2401e9=await this[_0x33bf3a(0xef)](_0x34f7a9['DAyUs'],_0x4c251b,_0x548a61);if(_0x34f7a9['XnUzz'](_0x2401e9['status'],0xc8)&&_0x2401e9[_0x33bf3a(0xe7)]&&_0x34f7a9[_0x33bf3a(0xea)](_0x2401e9[_0x33bf3a(0xe7)][_0x33bf3a(0x128)],_0x34f7a9[_0x33bf3a(0x11e)]))return!![];return![];}catch(_0x5f265e){logger['error']('['+TAG+']\x20Error\x20in\x20putFailedTests:\x20'+_0x5f265e[_0x33bf3a(0x128)]+'\x20'+_0x5f265e[_0x33bf3a(0xfa)]);const _0x5250a7={};_0x5250a7[_0x33bf3a(0x128)]=_0x5f265e[_0x33bf3a(0x128)];const _0xaa48d3={};return _0xaa48d3[_0x33bf3a(0xf9)]=0x1f4,_0xaa48d3[_0x33bf3a(0xe7)]=_0x5250a7,_0xaa48d3;}}static async[a135_0x340c36(0x12e)](_0x43dfba){const _0x5f5578=a135_0x340c36,_0x56f8e8={'UJdOm':function(_0x495af8,_0x43bcf4){return _0x495af8||_0x43bcf4;},'zacmy':_0x5f5578(0x124),'vbAwk':function(_0x5e1403,_0x34b32e){return _0x5e1403(_0x34b32e);},'srwKe':function(_0xe0098b,_0xc33f7a){return _0xe0098b(_0xc33f7a);},'COBgH':'GET','EFJKN':function(_0x42fa98,_0x1a8641){return _0x42fa98===_0x1a8641;},'ABzuu':function(_0x2da686,_0x227da0){return _0x2da686!==_0x227da0;},'ZlOpj':'undefined'},{buildName:_0x37139d,buildRunIdentifier:_0x242274,projectName:_0x88599c}=_0x43dfba;if(_0x56f8e8['UJdOm'](!_0x37139d,!_0x242274)||!_0x88599c){logger[_0x5f5578(0x12a)]('['+TAG+_0x5f5578(0x100)+_0x37139d+_0x5f5578(0x102)+_0x242274+_0x5f5578(0x116)+_0x88599c);const _0x11eb29={};_0x11eb29['message']=_0x56f8e8[_0x5f5578(0x106)];const _0x46e1cc={};return _0x46e1cc['status']=0x190,_0x46e1cc['body']=_0x11eb29,_0x46e1cc;}const _0x175843=_0x5f5578(0xf0)+_0x56f8e8[_0x5f5578(0x110)](encodeURIComponent,_0x37139d)+_0x5f5578(0xee)+_0x56f8e8['srwKe'](encodeURIComponent,_0x242274)+_0x5f5578(0x104)+_0x56f8e8[_0x5f5578(0x110)](encodeURIComponent,_0x88599c),_0x108618=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x175843;try{logger['debug']('['+TAG+']\x20Sending\x20GET\x20to\x20'+_0x108618);let _0x5f1710=0x0;const _0x3b3f64=await this[_0x5f5578(0xef)](_0x56f8e8[_0x5f5578(0x12f)],_0x108618);return _0x56f8e8['EFJKN'](_0x3b3f64[_0x5f5578(0xf9)],0xc8)&&_0x3b3f64[_0x5f5578(0xe7)]&&_0x56f8e8[_0x5f5578(0x11a)](typeof _0x3b3f64[_0x5f5578(0xe7)][_0x5f5578(0xf3)],_0x56f8e8['ZlOpj'])&&(_0x5f1710=_0x56f8e8['srwKe'](Number,_0x3b3f64['body'][_0x5f5578(0xf3)])),_0x5f1710;}catch(_0x318ba6){logger[_0x5f5578(0x12a)]('['+TAG+_0x5f5578(0xf8)+_0x318ba6[_0x5f5578(0x128)]+'\x20'+_0x318ba6[_0x5f5578(0xfa)]);const _0x52a5d5={};_0x52a5d5[_0x5f5578(0x128)]=_0x318ba6[_0x5f5578(0x128)];const _0x116134={};return _0x116134['status']=0x1f4,_0x116134['body']=_0x52a5d5,_0x116134;}}}function a135_0x7ecd(){const _0x52d2be=['129258mTdIgD','&projectName=','51225Areqei','zacmy','debug','PoVkT','JNNli','PUT','url','BNGcw','DyoKA','120155IGTbxj','rqozY','vbAwk','27xToaVc','stringify','WNJbL','pWZlj','busAd',',\x20projectName=','Bearer\x20','\x20and\x20token:\x20',']\x20Successfully\x20posted\x20split\x20files\x20to\x20','ABzuu','SWdwj','./constants','\x20request\x20to\x20','NCnmU','parse','Failed\x20to\x20parse\x20JSON\x20response:\x20','RequestUtils','wutUI','headers','Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','12KWSBZo','\x20with\x20headers:\x20','putFailedTests','message',']\x20Error\x20in\x20putFailedTests:\x20','error','\x20-\x20','end','BROWSERSTACK_TESTHUB_JWT','getFailedTestsCount','COBgH','139928ZHDRwr','Content-Type','application/json','199041NuUwVT','postSplitFiles',']\x20Sending\x20','GET','body','../logger','env','dfCey','PJCOo','uKIId','statusCode','&buildRunIdentifier=','_request','?buildName=','fchVb','QiwNX','failedTestsCount','177429bbtbng','gbaOn','197300dDwpDv',']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20',']\x20Error\x20in\x20getFailedTestsCount:\x20','status','stack','XnUzz','request','Test\x20added','nscaJ','\x20and\x20data:\x20',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=','yaMtp',',\x20buildRunIdentifier='];a135_0x7ecd=function(){return _0x52d2be;};return a135_0x7ecd();}module['exports']=RequestUtils;
1
+ const a135_0xab195f=a135_0x5ef9;(function(_0x2fb132,_0x4a2a78){const _0x1bc335=a135_0x5ef9,_0x581a38=_0x2fb132();while(!![]){try{const _0x37f3e9=parseInt(_0x1bc335(0xa0))/0x1*(-parseInt(_0x1bc335(0xee))/0x2)+-parseInt(_0x1bc335(0xe5))/0x3+parseInt(_0x1bc335(0xef))/0x4+-parseInt(_0x1bc335(0xdc))/0x5+parseInt(_0x1bc335(0xa2))/0x6*(-parseInt(_0x1bc335(0xd6))/0x7)+-parseInt(_0x1bc335(0xda))/0x8*(parseInt(_0x1bc335(0xce))/0x9)+parseInt(_0x1bc335(0xd7))/0xa;if(_0x37f3e9===_0x4a2a78)break;else _0x581a38['push'](_0x581a38['shift']());}catch(_0x5b6fc0){_0x581a38['push'](_0x581a38['shift']());}}}(a135_0x270f,0x9b47b));const https=require('https'),{URL}=require(a135_0xab195f(0xb4)),logger=require(a135_0xab195f(0xb7))[a135_0xab195f(0xe2)],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require(a135_0xab195f(0x9f)),TAG='RequestUtils';class RequestUtils{static async[a135_0xab195f(0xa5)](_0x51bdc3,_0x50fc00,_0xded0f3=null){const _0x49dd3b=a135_0xab195f,_0x593c7f={'rxIMM':_0x49dd3b(0xcf),'pOhcz':_0x49dd3b(0xb2),'xcmCv':function(_0x4f7634,_0xe1c2e1){return _0x4f7634(_0xe1c2e1);},'xVfYX':_0x49dd3b(0xc8),'LMCtn':function(_0x3fb3dd,_0x452bcf){return _0x3fb3dd===_0x452bcf;},'URYmJ':_0x49dd3b(0xc2),'nVzAz':_0x49dd3b(0xd2),'aAKxK':_0x49dd3b(0xea),'voKND':function(_0x307dce,_0xa39f97){return _0x307dce+_0xa39f97;}},_0x40eea0=process[_0x49dd3b(0xac)][_0x49dd3b(0xaa)]||'',_0x3dc5ab={};_0x3dc5ab[_0x49dd3b(0xcb)]=_0x49dd3b(0xf1)+_0x40eea0,_0x3dc5ab[_0x49dd3b(0x9e)]=_0x593c7f[_0x49dd3b(0xed)];const _0x23238b=_0x3dc5ab,{hostname:_0x2ac975,pathname:_0x150d18,search:_0x5ccaec}=new URL(_0x50fc00),_0x5dafa7={'hostname':_0x2ac975,'path':_0x593c7f['voKND'](_0x150d18,_0x5ccaec),'method':_0x51bdc3,'headers':_0x23238b};return logger[_0x49dd3b(0xba)]('['+TAG+']\x20Sending\x20'+_0x51bdc3+_0x49dd3b(0xc0)+_0x50fc00+'\x20with\x20headers:\x20'+JSON[_0x49dd3b(0xb0)](_0x23238b)+_0x49dd3b(0xe6)+JSON['stringify'](_0xded0f3)+_0x49dd3b(0xc3)+_0x40eea0),new Promise((_0x517188,_0x488f7a)=>{const _0xab8252=_0x49dd3b,_0x3fcd0f={'iByFN':function(_0x48c757,_0x1fc5ec){const _0x2f494=a135_0x5ef9;return _0x593c7f[_0x2f494(0xaf)](_0x48c757,_0x1fc5ec);},'onYYM':function(_0xe87d3b,_0x5db4aa){return _0x593c7f['xcmCv'](_0xe87d3b,_0x5db4aa);}},_0x12c830=https['request'](_0x5dafa7,_0x4f9cfd=>{const _0x5e8a64=a135_0x5ef9;let _0x1f73c1='';_0x4f9cfd['on'](_0x593c7f[_0x5e8a64(0xbc)],_0x3e618e=>{_0x1f73c1+=_0x3e618e;}),_0x4f9cfd['on'](_0x593c7f[_0x5e8a64(0xcd)],()=>{const _0x1e8afc=_0x5e8a64;try{const _0x13d2c8=_0x1f73c1?JSON[_0x1e8afc(0xa4)](_0x1f73c1):{},_0x5d1b41={};_0x5d1b41['status']=_0x4f9cfd[_0x1e8afc(0xc6)],_0x5d1b41[_0x1e8afc(0xd1)]=_0x13d2c8,_0x5d1b41['headers']=_0x4f9cfd['headers'],_0x3fcd0f[_0x1e8afc(0xb3)](_0x517188,_0x5d1b41);}catch(_0x8bd7b0){logger[_0x1e8afc(0xc8)]('['+TAG+']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20'+_0x1f73c1+_0x1e8afc(0xf0)+_0x8bd7b0[_0x1e8afc(0xd9)]+'\x20'+_0x8bd7b0[_0x1e8afc(0xe9)]),_0x3fcd0f[_0x1e8afc(0xe7)](_0x488f7a,new Error(_0x1e8afc(0xdf)+_0x8bd7b0['message']));}});});_0x12c830['on'](_0x593c7f[_0xab8252(0xa8)],_0x2e27c9=>{const _0x4bf4e7=_0xab8252;logger[_0x4bf4e7(0xc8)]('['+TAG+_0x4bf4e7(0xdb)+_0x51bdc3+'\x20'+_0x50fc00+':\x20'+_0x2e27c9['message']+'\x20'+_0x2e27c9['stack']),_0x593c7f['xcmCv'](_0x488f7a,_0x2e27c9);}),_0xded0f3&&(_0x593c7f[_0xab8252(0xc7)](_0x51bdc3,_0x593c7f[_0xab8252(0xab)])||_0x593c7f[_0xab8252(0xc7)](_0x51bdc3,_0x593c7f['nVzAz']))&&_0x12c830[_0xab8252(0xbe)](JSON[_0xab8252(0xb0)](_0xded0f3)),_0x12c830['end']();});}static async[a135_0xab195f(0xb1)](_0x2d075f){const _0x198049=a135_0xab195f,_0x574b3f={};_0x574b3f[_0x198049(0xe3)]='POST',_0x574b3f[_0x198049(0xa7)]=function(_0x3c45a2,_0x32e3aa){return _0x3c45a2===_0x32e3aa;};const _0x120836=_0x574b3f,_0xa8eea3=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x57eacc=await this[_0x198049(0xa5)](_0x120836[_0x198049(0xe3)],_0xa8eea3,_0x2d075f);return _0x120836[_0x198049(0xa7)](_0x57eacc[_0x198049(0xae)],0xc8)?logger[_0x198049(0xba)]('['+TAG+_0x198049(0xad)+_0xa8eea3):logger[_0x198049(0xc8)]('['+TAG+_0x198049(0xb9)+_0xa8eea3+':\x20'+JSON[_0x198049(0xb0)](_0x57eacc[_0x198049(0xd1)])+_0x198049(0xeb)+_0x57eacc[_0x198049(0xae)]),_0x57eacc;}catch(_0x3e983b){logger[_0x198049(0xc8)]('['+TAG+_0x198049(0xe1)+_0x3e983b[_0x198049(0xd9)]+'\x20'+_0x3e983b[_0x198049(0xe9)]);const _0x88e068={};_0x88e068[_0x198049(0xd9)]=_0x3e983b[_0x198049(0xd9)];const _0x1bd310={};return _0x1bd310['status']=0x1f4,_0x1bd310[_0x198049(0xd1)]=_0x88e068,_0x1bd310;}}static async[a135_0xab195f(0xd4)](_0x12f431){const _0x19b4ad=a135_0xab195f,_0x4fc23a={};_0x4fc23a['fLRjV']=_0x19b4ad(0xd8),_0x4fc23a[_0x19b4ad(0xa9)]=function(_0x45d37b,_0x3aad1c){return _0x45d37b===_0x3aad1c;};const _0x4ca709=_0x4fc23a;try{const _0x111fc8=await this['_request'](_0x4ca709['fLRjV'],_0x12f431);if(_0x4ca709[_0x19b4ad(0xa9)](_0x111fc8['status'],0xc8))return _0x111fc8['body'];return{};}catch(_0x38bea5){return logger[_0x19b4ad(0xc8)]('['+TAG+_0x19b4ad(0xe1)+_0x38bea5[_0x19b4ad(0xd9)]+'\x20'+_0x38bea5[_0x19b4ad(0xe9)]),{};}}static async['putFailedTests'](_0x31add0){const _0x2aac09=a135_0xab195f,_0x4d719c={};_0x4d719c[_0x2aac09(0xc5)]='PUT',_0x4d719c[_0x2aac09(0xb8)]=function(_0x448267,_0x5d20c7){return _0x448267===_0x5d20c7;},_0x4d719c['HCdHo']=function(_0x25b83a,_0x151dbc){return _0x25b83a===_0x151dbc;},_0x4d719c['pJQPN']=_0x2aac09(0xe0);const _0x17c792=_0x4d719c,_0x3f84df=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x3a4e81=await this[_0x2aac09(0xa5)](_0x17c792[_0x2aac09(0xc5)],_0x3f84df,_0x31add0);if(_0x17c792['QqbaX'](_0x3a4e81['status'],0xc8)&&_0x3a4e81[_0x2aac09(0xd1)]&&_0x17c792[_0x2aac09(0xde)](_0x3a4e81['body']['message'],_0x17c792[_0x2aac09(0xdd)]))return!![];return![];}catch(_0x210d62){logger[_0x2aac09(0xc8)]('['+TAG+_0x2aac09(0xe1)+_0x210d62[_0x2aac09(0xd9)]+'\x20'+_0x210d62[_0x2aac09(0xe9)]);const _0x255633={};_0x255633[_0x2aac09(0xd9)]=_0x210d62[_0x2aac09(0xd9)];const _0x995a5e={};return _0x995a5e['status']=0x1f4,_0x995a5e[_0x2aac09(0xd1)]=_0x255633,_0x995a5e;}}static async[a135_0xab195f(0xd3)](_0x4435a5){const _0x27b541=a135_0xab195f,_0x28815b={'CgRVU':function(_0x5c8601,_0xb65457){return _0x5c8601||_0xb65457;},'AVVav':_0x27b541(0xa3),'YPgWy':function(_0x3b02e8,_0x47cf47){return _0x3b02e8(_0x47cf47);},'BZDcW':_0x27b541(0xd8),'bNfAr':function(_0x391779,_0x392148){return _0x391779===_0x392148;},'xXnxU':function(_0x5f5724,_0x14b616){return _0x5f5724!==_0x14b616;},'oHOea':_0x27b541(0xa6),'dcuCB':function(_0x58c085,_0x3ed74d){return _0x58c085(_0x3ed74d);}},{buildName:_0x332ea9,buildRunIdentifier:_0x167888,projectName:_0xc6116e}=_0x4435a5;if(_0x28815b['CgRVU'](!_0x332ea9,!_0x167888)||!_0xc6116e){logger[_0x27b541(0xc8)]('['+TAG+_0x27b541(0xe4)+_0x332ea9+_0x27b541(0xbd)+_0x167888+_0x27b541(0xd0)+_0xc6116e);const _0x1b0661={};_0x1b0661[_0x27b541(0xd9)]=_0x28815b[_0x27b541(0xc9)];const _0x236615={};return _0x236615['status']=0x190,_0x236615[_0x27b541(0xd1)]=_0x1b0661,_0x236615;}const _0x48acd2=_0x27b541(0xbf)+_0x28815b[_0x27b541(0xca)](encodeURIComponent,_0x332ea9)+_0x27b541(0xbb)+_0x28815b['YPgWy'](encodeURIComponent,_0x167888)+_0x27b541(0xd5)+_0x28815b['YPgWy'](encodeURIComponent,_0xc6116e),_0x3c53d3=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x48acd2;try{logger[_0x27b541(0xba)]('['+TAG+_0x27b541(0xb5)+_0x3c53d3);let _0x3e1610=0x0;const _0x3f4d32=await this[_0x27b541(0xa5)](_0x28815b[_0x27b541(0xc4)],_0x3c53d3);return _0x28815b[_0x27b541(0xb6)](_0x3f4d32[_0x27b541(0xae)],0xc8)&&_0x3f4d32['body']&&_0x28815b[_0x27b541(0xe8)](typeof _0x3f4d32[_0x27b541(0xd1)]['failedTestsCount'],_0x28815b[_0x27b541(0xec)])&&(_0x3e1610=_0x28815b[_0x27b541(0xa1)](Number,_0x3f4d32['body'][_0x27b541(0xc1)])),_0x3e1610;}catch(_0x337720){logger[_0x27b541(0xc8)]('['+TAG+_0x27b541(0xcc)+_0x337720[_0x27b541(0xd9)]+'\x20'+_0x337720['stack']);const _0x3ad46e={};_0x3ad46e[_0x27b541(0xd9)]=_0x337720[_0x27b541(0xd9)];const _0xd54ee4={};return _0xd54ee4[_0x27b541(0xae)]=0x1f4,_0xd54ee4[_0x27b541(0xd1)]=_0x3ad46e,_0xd54ee4;}}}module['exports']=RequestUtils;function a135_0x5ef9(_0x2e79d0,_0x58b6f8){const _0x270f41=a135_0x270f();return a135_0x5ef9=function(_0x5ef93c,_0x500b3f){_0x5ef93c=_0x5ef93c-0x9e;let _0x32d2ab=_0x270f41[_0x5ef93c];return _0x32d2ab;},a135_0x5ef9(_0x2e79d0,_0x58b6f8);}function a135_0x270f(){const _0x1b166f=['AVVav','YPgWy','Authorization',']\x20Error\x20in\x20getFailedTestsCount:\x20','pOhcz','27XTiRne','data',',\x20projectName=','body','PUT','getFailedTestsCount','getSplitFiles','&projectName=','31815nzuYvK','29622310pCTwxx','GET','message','2596456ybyLQe',']\x20Request\x20failed\x20for\x20','3629810cqvjGV','pJQPN','HCdHo','Failed\x20to\x20parse\x20JSON\x20response:\x20','Test\x20added',']\x20Error\x20in\x20putFailedTests:\x20','winstonLogger','bxPgb',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=','223833xfEQys','\x20and\x20data:\x20','onYYM','xXnxU','stack','application/json',',\x20status:\x20','oHOea','aAKxK','2vDPJUQ','1902144fHKpwx','\x20-\x20','Bearer\x20','Content-Type','./constants','832061HjONfQ','dcuCB','258wXzEuL','Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','parse','_request','undefined','whQua','xVfYX','eOEuL','BROWSERSTACK_TESTHUB_JWT','URYmJ','env',']\x20Successfully\x20posted\x20split\x20files\x20to\x20','status','xcmCv','stringify','postSplitFiles','end','iByFN','url',']\x20Sending\x20GET\x20to\x20','bNfAr','../logger','QqbaX',']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20','debug','&buildRunIdentifier=','rxIMM',',\x20buildRunIdentifier=','write','?buildName=','\x20request\x20to\x20','failedTestsCount','POST','\x20and\x20token:\x20','BZDcW','LVbhd','statusCode','LMCtn','error'];a135_0x270f=function(){return _0x1b166f;};return a135_0x270f();}
@@ -1 +1 @@
1
- const a136_0x3bc05f=a136_0x3ffb;(function(_0x2be27e,_0x41d0ff){const _0x286932=a136_0x3ffb,_0x2c3198=_0x2be27e();while(!![]){try{const _0x1a9b57=parseInt(_0x286932(0x231))/0x1+parseInt(_0x286932(0x1f2))/0x2+-parseInt(_0x286932(0x205))/0x3*(-parseInt(_0x286932(0x1e3))/0x4)+parseInt(_0x286932(0x1cc))/0x5+-parseInt(_0x286932(0x1d1))/0x6*(parseInt(_0x286932(0x210))/0x7)+parseInt(_0x286932(0x1c8))/0x8*(-parseInt(_0x286932(0x1c4))/0x9)+-parseInt(_0x286932(0x1dd))/0xa;if(_0x1a9b57===_0x41d0ff)break;else _0x2c3198['push'](_0x2c3198['shift']());}catch(_0x1766ec){_0x2c3198['push'](_0x2c3198['shift']());}}}(a136_0x4eab,0xc4b30));const logger=require('../logger')[a136_0x3bc05f(0x1c3)],{isUndefined,isNotUndefined,isTrueString,sanitizedFilePath}=require(a136_0x3bc05f(0x1df)),TestOrderingServerHandler=require(a136_0x3bc05f(0x211)),OrchestrationUtils=require(a136_0x3bc05f(0x1d2)),path=require('path'),{spawnSync}=require(a136_0x3bc05f(0x202)),micromatch=require(a136_0x3bc05f(0x1da)),fs=require('fs');function a136_0x3ffb(_0x21435a,_0x504841){const _0x4eab03=a136_0x4eab();return a136_0x3ffb=function(_0x3ffb01,_0x4d00f9){_0x3ffb01=_0x3ffb01-0x1bf;let _0x4937bd=_0x4eab03[_0x3ffb01];return _0x4937bd;},a136_0x3ffb(_0x21435a,_0x504841);}function a136_0x4eab(){const _0x9a3e1d=['Uwydg','splitTestsAPICallCount','27399WbNFtV','orderingInstrumentationData','WcKUn','getOrderingInstrumentationData','Cofzm','XkcpI','YeaGS','exports','_initializeTestOrdering','\x20files','BROWSERSTACK_TOTAL_NODE_COUNT','2457sNmqUY','./testOrderingServerHandler','setTestOrderingApplied','yZmkD','downloadedTestFilesCount','gaJuw','apZPH','testMatch','eivbw','debug','testPathIgnorePatterns','yIXwz','glob','AWsHM','error','fHvdv','xNXqi','updateBuildIdentifier','projectName','EmdjG','jest-config','getSplitTestsAPICallCount','relative','testOrderingServerHandler','npx','Pwnep','splitTests','Test\x20Reordering\x20is\x20unavailable\x20because\x20buildName\x20or\x20projectName\x20is\x20null.\x20Please\x20set\x20a\x20non-null\x20value.','filter','--listTests','dGDiJ','Test\x20orchestration\x20without\x20test\x20ordering','stringify','706073lPjyiA','matchBase','getTestOrderingName','map','buildIdentifier','winstonLogger','3600FbWNgx','ALiDP','isArray','toString','18648mSkbBQ','addToOrderingInstrumentationData','tBidR','OfsIT','1607050iklqSV','reorderTestFiles','NXndz','cWfbc','3|1|5|2|0|4','20334TBqSQJ','./orchestrationUtils','split','cmTFm','rootDir','--config','length','BROWSERSTACK_BUILD_RUN_IDENTIFIER','uRvrS','micromatch','XUyAJ','Filterted\x20to\x20test\x20files:\x20','1510000aGlelW','WjIOp','../helper','xQkXZ','env','lEkYp','552qxDgOn','kRWPU','info','buildName','DHEuL','applied','isTestOrderingApplied','FqznB','getOrderedTestFiles','stdout','gDSth','jest-util','Dbplm','jest','[reorderTestFiles]\x20Test\x20ordering\x20is\x20not\x20supported\x20or\x20enabled','1581564QYtSwt','stack','LIojY','isTestOrchestrationEnabled','uploadedTestFilesCount','rKkxC','HRdrD','testOrderingEnabled','logTestOrderingChecks','testOrderingApplied','config','PigTS','orchestrationUtils','testObservability','nodeIndex','_shouldLogTestOrderingChecks','child_process'];a136_0x4eab=function(){return _0x9a3e1d;};return a136_0x4eab();}class TestOrchestrationHandler{constructor(_0x468b7a){const _0x2ae7eb=a136_0x3bc05f,_0x197ca3={};_0x197ca3[_0x2ae7eb(0x220)]=_0x2ae7eb(0x1d0);const _0x205774=_0x197ca3,_0x554437=_0x205774[_0x2ae7eb(0x220)]['split']('|');let _0x2e4bb0=0x0;while(!![]){switch(_0x554437[_0x2e4bb0++]){case'0':this[_0x2ae7eb(0x1fe)]=new OrchestrationUtils(_0x468b7a);continue;case'1':this['orderingInstrumentationData']={};continue;case'2':this[_0x2ae7eb(0x227)]=null;continue;case'3':this[_0x2ae7eb(0x1fc)]=_0x468b7a;continue;case'4':this['_initializeTestOrdering']();continue;case'5':this[_0x2ae7eb(0x1fb)]=![];continue;}break;}}['isTestOrchestrationEnabled'](){const _0x5789a8=a136_0x3bc05f,_0x462245={'xQkXZ':function(_0xa0e3ed,_0x4a1eae){return _0xa0e3ed(_0x4a1eae);},'uRvrS':function(_0x23725d,_0x5a50f0){return _0x23725d(_0x5a50f0);},'Uwydg':function(_0x11da5b,_0x168cd5){return _0x11da5b(_0x168cd5);},'gDSth':function(_0x5d8f4d,_0x5f0abd){return _0x5d8f4d(_0x5f0abd);},'FqznB':function(_0x38fbec,_0x401280){return _0x38fbec(_0x401280);},'Cofzm':function(_0x872d4c,_0x13cedb){return _0x872d4c(_0x13cedb);},'AWsHM':function(_0x1ffbc9,_0x372239){return _0x1ffbc9&&_0x372239;}},_0x1cb1d5=_0x462245[_0x5789a8(0x1e0)](isNotUndefined,this[_0x5789a8(0x1fc)])&&(_0x462245[_0x5789a8(0x1d9)](isUndefined,this[_0x5789a8(0x1fc)][_0x5789a8(0x1ff)])||_0x462245[_0x5789a8(0x203)](isTrueString,this[_0x5789a8(0x1fc)]['testObservability'])),_0x61b340=this[_0x5789a8(0x1fe)][_0x5789a8(0x1f9)](),_0x4f3c4a=_0x462245[_0x5789a8(0x1ed)](isNotUndefined,this[_0x5789a8(0x1fc)])&&_0x462245[_0x5789a8(0x1ea)](isNotUndefined,this[_0x5789a8(0x1fc)][_0x5789a8(0x222)]),_0x353319=_0x462245[_0x5789a8(0x1ea)](isNotUndefined,this[_0x5789a8(0x1fc)])&&_0x462245[_0x5789a8(0x209)](isNotUndefined,this[_0x5789a8(0x1fc)][_0x5789a8(0x1e6)]);return _0x462245[_0x5789a8(0x21d)](_0x1cb1d5,_0x61b340)&&_0x4f3c4a&&_0x353319;}[a136_0x3bc05f(0x20d)](){const _0x448773=a136_0x3bc05f,_0x26a6c1={};_0x26a6c1[_0x448773(0x1de)]='Test\x20orchestration\x20with\x20test\x20ordering\x20enabled',_0x26a6c1['rKkxC']=_0x448773(0x22f);const _0x53e819=_0x26a6c1;this[_0x448773(0x1f5)]()?(this['testOrderingServerHandler']=new TestOrderingServerHandler(this['config']),logger['info'](_0x53e819['WjIOp'])):(logger['debug'](_0x53e819[_0x448773(0x1f7)]),this[_0x448773(0x1fa)]());}['logTestOrderingChecks'](){const _0x510200=a136_0x3bc05f,_0x203fb6={'cWfbc':function(_0x4483ff,_0x4fafb4){return _0x4483ff(_0x4fafb4);},'GRcDi':function(_0x3c0b4b,_0x8cd0ff){return _0x3c0b4b(_0x8cd0ff);},'IlsQg':_0x510200(0x22b),'YeaGS':function(_0x5df4df,_0x5c4557){return _0x5df4df(_0x5c4557);},'WcKUn':function(_0x58a8ec,_0xc47b0e){return _0x58a8ec(_0xc47b0e);},'EmdjG':'Test\x20Reordering\x20is\x20unavailable\x20because\x20testReporting\x20is\x20disabled.\x20Please\x20enable\x20it\x20from\x20browserstack.yml\x20file.'};if(!this[_0x510200(0x201)]())return;(!_0x203fb6[_0x510200(0x1cf)](isNotUndefined,this[_0x510200(0x1fc)])||!_0x203fb6[_0x510200(0x1cf)](isNotUndefined,this[_0x510200(0x1fc)][_0x510200(0x1e6)])||!_0x203fb6['GRcDi'](isNotUndefined,this[_0x510200(0x1fc)][_0x510200(0x222)]))&&logger[_0x510200(0x1e5)](_0x203fb6['IlsQg']),_0x203fb6[_0x510200(0x20b)](isNotUndefined,this[_0x510200(0x1fc)])&&_0x203fb6[_0x510200(0x207)](isNotUndefined,this[_0x510200(0x1fc)]['testObservability'])&&!_0x203fb6[_0x510200(0x207)](isTrueString,this[_0x510200(0x1fc)][_0x510200(0x1ff)])&&logger[_0x510200(0x1e5)](_0x203fb6[_0x510200(0x223)]);}['_shouldLogTestOrderingChecks'](){const _0x56bb20=a136_0x3bc05f;return!this[_0x56bb20(0x1f5)]()&&this[_0x56bb20(0x1fe)]['testOrderingEnabled']();}[a136_0x3bc05f(0x1e9)](){const _0x28eab6=a136_0x3bc05f;return this[_0x28eab6(0x1fb)];}[a136_0x3bc05f(0x212)](_0x4bbc94){const _0xbc156c=a136_0x3bc05f,_0x406fd9={};_0x406fd9[_0xbc156c(0x1d4)]=_0xbc156c(0x1e8);const _0x16a9aa=_0x406fd9;this[_0xbc156c(0x1fb)]=_0x4bbc94,this['addToOrderingInstrumentationData'](_0x16a9aa[_0xbc156c(0x1d4)],_0x4bbc94);}[a136_0x3bc05f(0x1c9)](_0x100d8e,_0x272d90){this['orderingInstrumentationData'][_0x100d8e]=_0x272d90;}[a136_0x3bc05f(0x208)](){const _0x1aeb68=a136_0x3bc05f;return this[_0x1aeb68(0x206)];}[a136_0x3bc05f(0x221)](){const _0x9eec31=a136_0x3bc05f,_0x3f3385={'eivbw':function(_0x4827f3,_0x455870){return _0x4827f3(_0x455870);},'Dbplm':function(_0x57582e,_0x5846ce){return _0x57582e>_0x5846ce;}},_0x517d5b=_0x3f3385[_0x9eec31(0x218)](parseInt,process[_0x9eec31(0x1e1)][_0x9eec31(0x20f)]||'1'),_0x1ca35a=process[_0x9eec31(0x1e1)][_0x9eec31(0x1d8)];_0x1ca35a&&_0x3f3385[_0x9eec31(0x1ef)](_0x517d5b,0x1)&&(logger[_0x9eec31(0x219)]('[orchestrate]\x20Setting\x20buildIdentifier\x20to\x20buildRunIdentifier:\x20'+_0x1ca35a),this[_0x9eec31(0x1fc)][_0x9eec31(0x1c2)]=_0x1ca35a);}async[a136_0x3bc05f(0x1cd)](_0x5a72ea){const _0x493e0b=a136_0x3bc05f,_0x54280f={'apZPH':function(_0x2598e4,_0x4be47a){return _0x2598e4===_0x4be47a;},'mpBuo':_0x493e0b(0x1f1),'LIojY':function(_0x582d7f,_0x3d182d){return _0x582d7f===_0x3d182d;},'OfsIT':function(_0x5120e4,_0x50a5f4){return _0x5120e4(_0x50a5f4);},'yIXwz':function(_0x38d623,_0xda0881){return _0x38d623(_0xda0881);},'XUyAJ':_0x493e0b(0x1f6),'ALiDP':_0x493e0b(0x200),'SJiOj':'totalNodes','lEkYp':_0x493e0b(0x214),'kbuYd':_0x493e0b(0x204)};try{if(!_0x5a72ea||!Array['isArray'](_0x5a72ea)||_0x54280f[_0x493e0b(0x216)](_0x5a72ea[_0x493e0b(0x1d7)],0x0))return null;if(_0x54280f[_0x493e0b(0x216)](this['isTestOrchestrationEnabled'](),![]))return logger[_0x493e0b(0x219)](_0x54280f['mpBuo']),null;let _0x3d9138=null;const _0x2632f6=this[_0x493e0b(0x1fe)][_0x493e0b(0x1c0)]();if(this[_0x493e0b(0x227)]){const _0x1385a2=await this[_0x493e0b(0x227)][_0x493e0b(0x22a)](_0x5a72ea,_0x2632f6);if(!_0x1385a2)return null;_0x3d9138=await this[_0x493e0b(0x227)][_0x493e0b(0x1eb)](_0x1385a2);}if(!_0x3d9138||!Array[_0x493e0b(0x1c6)](_0x3d9138)||_0x54280f[_0x493e0b(0x1f4)](_0x3d9138['length'],0x0))return null;const _0xf250d4=_0x54280f[_0x493e0b(0x1cb)](parseInt,process[_0x493e0b(0x1e1)]['BROWSERSTACK_NODE_INDEX']||'0'),_0x3ae9f1=_0x54280f[_0x493e0b(0x21b)](parseInt,process[_0x493e0b(0x1e1)]['BROWSERSTACK_TOTAL_NODE_COUNT']||'1');return this[_0x493e0b(0x1c9)](_0x54280f[_0x493e0b(0x1db)],_0x5a72ea[_0x493e0b(0x1d7)]),this[_0x493e0b(0x1c9)](_0x54280f[_0x493e0b(0x1c5)],_0xf250d4),this[_0x493e0b(0x1c9)](_0x54280f['SJiOj'],_0x3ae9f1),this[_0x493e0b(0x1c9)](_0x54280f[_0x493e0b(0x1e2)],_0x3d9138[_0x493e0b(0x1d7)]),this[_0x493e0b(0x1c9)](_0x54280f['kbuYd'],this[_0x493e0b(0x227)]?this[_0x493e0b(0x227)][_0x493e0b(0x225)]():0x0),_0x3d9138[_0x493e0b(0x1c1)](_0x571632=>sanitizedFilePath(_0x571632));}catch(_0x399d89){return logger[_0x493e0b(0x219)]('[reorderTestFiles]\x20Error\x20in\x20ordering\x20test\x20files:\x20'+(_0x399d89[_0x493e0b(0x1f3)]||_0x399d89[_0x493e0b(0x1c7)]())),null;}}async['findTestFiles'](_0x43599e,_0xf988d3,_0x1a304f){const _0x457fea=a136_0x3bc05f,_0x5bab0e={'tBidR':function(_0x50f004,_0x5776e5){return _0x50f004(_0x5776e5);},'FgsPW':_0x457fea(0x224),'kRWPU':function(_0x3333cc,_0x37b4ba){return _0x3333cc(_0x37b4ba);},'LmiIl':_0x457fea(0x1ee),'Pwnep':function(_0x520946,_0x52cee7){return _0x520946(_0x52cee7);},'dqhlA':'jest-runner','fHvdv':function(_0x42abc4,_0x5640e5){return _0x42abc4(_0x5640e5);},'kvrmt':_0x457fea(0x21c),'OEEYr':'**/__tests__/**/*.[jt]s?(x)','gaJuw':'**/?(*.)+(spec|test).[jt]s?(x)','NXndz':function(_0x3f2b3d,_0x121aa8,_0x34f34d,_0x1a382d){return _0x3f2b3d(_0x121aa8,_0x34f34d,_0x1a382d);},'PigTS':_0x457fea(0x228),'HRdrD':_0x457fea(0x1f0),'dGDiJ':_0x457fea(0x1d6),'DHEuL':_0x457fea(0x22d),'XkcpI':'utf-8','yZmkD':function(_0x13ab8e,_0x2eaff9,_0x4557d0,_0x11286a){return _0x13ab8e(_0x2eaff9,_0x4557d0,_0x11286a);}};try{const {getTestPathPatterns:_0x113d3d}=_0x5bab0e[_0x457fea(0x1ca)](require,_0x5bab0e['FgsPW']),{globsToMatcher:_0x53ee36}=_0x5bab0e[_0x457fea(0x1e4)](require,_0x5bab0e['LmiIl']),{findRelatedTests:_0x508b38}=_0x5bab0e[_0x457fea(0x229)](require,_0x5bab0e['dqhlA']),_0x1fb94e=_0x5bab0e[_0x457fea(0x21f)](require,_0x5bab0e['kvrmt']),_0x5c346e=_0x43599e[_0x457fea(0x217)]||[_0x5bab0e['OEEYr'],_0x5bab0e[_0x457fea(0x215)]],_0x28e658=_0x43599e[_0x457fea(0x21a)]||[],_0x18d0c9=_0x5bab0e[_0x457fea(0x1ce)](spawnSync,_0x5bab0e[_0x457fea(0x1fd)],[_0x5bab0e[_0x457fea(0x1f8)],_0x5bab0e[_0x457fea(0x22e)],_0x1a304f,..._0xf988d3,_0x5bab0e[_0x457fea(0x1e7)]],{'encoding':_0x5bab0e[_0x457fea(0x20a)]});let _0x511cc5=[];!_0x18d0c9[_0x457fea(0x21e)]&&(_0x511cc5=_0x18d0c9[_0x457fea(0x1ec)][_0x457fea(0x1d3)]('\x0a')[_0x457fea(0x22c)](Boolean));logger[_0x457fea(0x219)]('Found\x20test\x20files:\x20'+JSON['stringify'](_0x511cc5)+_0x457fea(0x20e));const _0x176309={};_0x176309[_0x457fea(0x1bf)]=!![],_0x176309['ignore']=_0x28e658;const _0x46113f=_0x5bab0e[_0x457fea(0x213)](micromatch,_0x511cc5,_0x5c346e,_0x176309)[_0x457fea(0x1c1)](_0xa5dddd=>path[_0x457fea(0x226)](_0x43599e[_0x457fea(0x1d5)],_0xa5dddd));return logger['debug'](_0x457fea(0x1dc)+JSON[_0x457fea(0x230)](_0x46113f)+_0x457fea(0x20e)),_0x46113f;}catch(_0x411462){return logger[_0x457fea(0x219)]('Error\x20finding\x20test\x20files:\x20'+_0x411462),[];}}}module[a136_0x3bc05f(0x20c)]=TestOrchestrationHandler;
1
+ const a136_0x2c1db9=a136_0x4055;(function(_0x12f893,_0x4886fc){const _0xe93ff7=a136_0x4055,_0x24e93a=_0x12f893();while(!![]){try{const _0x36d1a6=parseInt(_0xe93ff7(0x12d))/0x1*(parseInt(_0xe93ff7(0x156))/0x2)+-parseInt(_0xe93ff7(0x11f))/0x3+parseInt(_0xe93ff7(0x108))/0x4*(parseInt(_0xe93ff7(0x112))/0x5)+-parseInt(_0xe93ff7(0x10c))/0x6*(parseInt(_0xe93ff7(0x119))/0x7)+parseInt(_0xe93ff7(0x14d))/0x8*(-parseInt(_0xe93ff7(0x130))/0x9)+-parseInt(_0xe93ff7(0x146))/0xa+parseInt(_0xe93ff7(0x10a))/0xb*(parseInt(_0xe93ff7(0x15a))/0xc);if(_0x36d1a6===_0x4886fc)break;else _0x24e93a['push'](_0x24e93a['shift']());}catch(_0x2849ee){_0x24e93a['push'](_0x24e93a['shift']());}}}(a136_0x1e3b,0x8fe79));const logger=require(a136_0x2c1db9(0x125))[a136_0x2c1db9(0x14e)],{isUndefined,isNotUndefined,isTrueString,sanitizedFilePath}=require(a136_0x2c1db9(0x167)),TestOrderingServerHandler=require(a136_0x2c1db9(0x163)),OrchestrationUtils=require(a136_0x2c1db9(0x138)),path=require(a136_0x2c1db9(0x171)),{spawnSync}=require('child_process'),micromatch=require('micromatch'),fs=require('fs');function a136_0x4055(_0x40f19f,_0x4b966f){const _0x1e3b1a=a136_0x1e3b();return a136_0x4055=function(_0x40559d,_0x289000){_0x40559d=_0x40559d-0x106;let _0x198021=_0x1e3b1a[_0x40559d];return _0x198021;},a136_0x4055(_0x40f19f,_0x4b966f);}class TestOrchestrationHandler{constructor(_0x569902){const _0xd0065e=a136_0x2c1db9,_0x3eb93b={};_0x3eb93b[_0xd0065e(0x17a)]=_0xd0065e(0x176);const _0x1fa8f2=_0x3eb93b,_0x2e716f=_0x1fa8f2[_0xd0065e(0x17a)][_0xd0065e(0x13f)]('|');let _0x2a5646=0x0;while(!![]){switch(_0x2e716f[_0x2a5646++]){case'0':this[_0xd0065e(0x11e)]=_0x569902;continue;case'1':this[_0xd0065e(0x177)]=![];continue;case'2':this[_0xd0065e(0x165)]();continue;case'3':this[_0xd0065e(0x111)]=new OrchestrationUtils(_0x569902);continue;case'4':this[_0xd0065e(0x126)]=null;continue;case'5':this[_0xd0065e(0x145)]={};continue;}break;}}[a136_0x2c1db9(0x132)](){const _0x5b2aaa=a136_0x2c1db9,_0x297e02={'HuoQU':function(_0x37e5c3,_0x2f9412){return _0x37e5c3(_0x2f9412);},'aFtBg':function(_0x2fb27f,_0x4f49b8){return _0x2fb27f(_0x4f49b8);},'EHFBx':function(_0x3008ca,_0x32b3d0){return _0x3008ca(_0x32b3d0);},'XIhKK':function(_0x55dcfb,_0x3096a5){return _0x55dcfb(_0x3096a5);},'MTKdL':function(_0x1d750b,_0x21bfd5){return _0x1d750b&&_0x21bfd5;}},_0x2948e0=_0x297e02[_0x5b2aaa(0x153)](isNotUndefined,this['config'])&&(_0x297e02[_0x5b2aaa(0x153)](isUndefined,this[_0x5b2aaa(0x11e)][_0x5b2aaa(0x137)])||_0x297e02[_0x5b2aaa(0x153)](isTrueString,this[_0x5b2aaa(0x11e)][_0x5b2aaa(0x137)])),_0x1024eb=this[_0x5b2aaa(0x111)]['testOrderingEnabled'](),_0x9063cb=_0x297e02[_0x5b2aaa(0x115)](isNotUndefined,this[_0x5b2aaa(0x11e)])&&_0x297e02['HuoQU'](isNotUndefined,this[_0x5b2aaa(0x11e)][_0x5b2aaa(0x12a)]),_0x515fbe=_0x297e02['EHFBx'](isNotUndefined,this[_0x5b2aaa(0x11e)])&&_0x297e02[_0x5b2aaa(0x116)](isNotUndefined,this[_0x5b2aaa(0x11e)][_0x5b2aaa(0x14f)]);return _0x297e02['MTKdL'](_0x2948e0,_0x1024eb)&&_0x9063cb&&_0x515fbe;}[a136_0x2c1db9(0x165)](){const _0x360dd0=a136_0x2c1db9,_0x330c92={};_0x330c92[_0x360dd0(0x179)]=_0x360dd0(0x14c),_0x330c92[_0x360dd0(0x15b)]=_0x360dd0(0x15d);const _0x521687=_0x330c92;this['isTestOrchestrationEnabled']()?(this[_0x360dd0(0x126)]=new TestOrderingServerHandler(this[_0x360dd0(0x11e)]),logger[_0x360dd0(0x16d)](_0x521687[_0x360dd0(0x179)])):(logger[_0x360dd0(0x106)](_0x521687[_0x360dd0(0x15b)]),this['logTestOrderingChecks']());}[a136_0x2c1db9(0x124)](){const _0x36992f=a136_0x2c1db9,_0x83324b={'sqHnf':function(_0x530bd9,_0x30b58c){return _0x530bd9(_0x30b58c);},'Ovljp':function(_0x1efef6,_0x4ab574){return _0x1efef6(_0x4ab574);},'ppQBB':function(_0x109a21,_0x3818e7){return _0x109a21(_0x3818e7);},'JNpCM':'Test\x20Reordering\x20is\x20unavailable\x20because\x20buildName\x20or\x20projectName\x20is\x20null.\x20Please\x20set\x20a\x20non-null\x20value.','IdWya':function(_0x403890,_0x23b2f7){return _0x403890(_0x23b2f7);},'bbaae':_0x36992f(0x11a)};if(!this[_0x36992f(0x127)]())return;(!_0x83324b['sqHnf'](isNotUndefined,this['config'])||!_0x83324b['Ovljp'](isNotUndefined,this[_0x36992f(0x11e)][_0x36992f(0x14f)])||!_0x83324b[_0x36992f(0x136)](isNotUndefined,this[_0x36992f(0x11e)]['projectName']))&&logger[_0x36992f(0x16d)](_0x83324b['JNpCM']),_0x83324b[_0x36992f(0x10f)](isNotUndefined,this[_0x36992f(0x11e)])&&_0x83324b['IdWya'](isNotUndefined,this[_0x36992f(0x11e)][_0x36992f(0x137)])&&!_0x83324b[_0x36992f(0x136)](isTrueString,this[_0x36992f(0x11e)][_0x36992f(0x137)])&&logger['info'](_0x83324b[_0x36992f(0x159)]);}['_shouldLogTestOrderingChecks'](){const _0x394b57=a136_0x2c1db9;return!this[_0x394b57(0x132)]()&&this['orchestrationUtils'][_0x394b57(0x15f)]();}[a136_0x2c1db9(0x117)](){const _0x296916=a136_0x2c1db9;return this[_0x296916(0x177)];}[a136_0x2c1db9(0x178)](_0x583b71){const _0x17d310=a136_0x2c1db9,_0x418a96={};_0x418a96['zFMiR']=_0x17d310(0x16f);const _0x1b1a6f=_0x418a96;this[_0x17d310(0x177)]=_0x583b71,this[_0x17d310(0x149)](_0x1b1a6f[_0x17d310(0x169)],_0x583b71);}[a136_0x2c1db9(0x149)](_0x3c5b91,_0x10d7b3){const _0x28dd59=a136_0x2c1db9;this[_0x28dd59(0x145)][_0x3c5b91]=_0x10d7b3;}[a136_0x2c1db9(0x12f)](){const _0x7f907a=a136_0x2c1db9;return this[_0x7f907a(0x145)];}[a136_0x2c1db9(0x17b)](){const _0x260116=a136_0x2c1db9,_0x5e99be={'OoNoY':function(_0x4a7bb1,_0x121984){return _0x4a7bb1(_0x121984);},'CVBKN':function(_0x44db50,_0x1013f9){return _0x44db50>_0x1013f9;}},_0x1c2051=_0x5e99be[_0x260116(0x144)](parseInt,process['env'][_0x260116(0x11d)]||'1'),_0x88dd72=process[_0x260116(0x10b)][_0x260116(0x13c)];_0x88dd72&&_0x5e99be[_0x260116(0x139)](_0x1c2051,0x1)&&(logger[_0x260116(0x106)](_0x260116(0x16a)+_0x88dd72),this['config'][_0x260116(0x148)]=_0x88dd72);}async[a136_0x2c1db9(0x161)](_0x15816e){const _0x47db3c=a136_0x2c1db9,_0x184168={'OeyAD':function(_0x57e99d,_0x409ece){return _0x57e99d===_0x409ece;},'yEYcO':function(_0x3244f8,_0x49d972){return _0x3244f8===_0x49d972;},'VVceg':_0x47db3c(0x151),'PscHv':function(_0x7db3b1,_0x2e244f){return _0x7db3b1(_0x2e244f);},'AiGSQ':function(_0x2185ec,_0x1c6d4d){return _0x2185ec(_0x1c6d4d);},'YKVkY':_0x47db3c(0x15c),'uROiK':_0x47db3c(0x164),'ZIlnk':_0x47db3c(0x128),'hXnQp':'downloadedTestFilesCount','pdAiL':_0x47db3c(0x143)};try{if(!_0x15816e||!Array['isArray'](_0x15816e)||_0x184168[_0x47db3c(0x16c)](_0x15816e[_0x47db3c(0x13b)],0x0))return null;if(_0x184168['yEYcO'](this['isTestOrchestrationEnabled'](),![]))return logger[_0x47db3c(0x106)](_0x184168[_0x47db3c(0x121)]),null;let _0x3db916=null;const _0x570c8f=this[_0x47db3c(0x111)][_0x47db3c(0x16b)]();if(this[_0x47db3c(0x126)]){const _0x419abf=await this[_0x47db3c(0x126)][_0x47db3c(0x12e)](_0x15816e,_0x570c8f);if(!_0x419abf)return null;_0x3db916=await this[_0x47db3c(0x126)][_0x47db3c(0x173)](_0x419abf);}if(!_0x3db916||!Array['isArray'](_0x3db916)||_0x184168[_0x47db3c(0x16c)](_0x3db916[_0x47db3c(0x13b)],0x0))return null;const _0x2bb8d2=_0x184168[_0x47db3c(0x14a)](parseInt,process[_0x47db3c(0x10b)][_0x47db3c(0x10e)]||'0'),_0x4788ce=_0x184168[_0x47db3c(0x109)](parseInt,process[_0x47db3c(0x10b)][_0x47db3c(0x11d)]||'1');return this[_0x47db3c(0x149)](_0x184168['YKVkY'],_0x15816e['length']),this[_0x47db3c(0x149)](_0x184168[_0x47db3c(0x174)],_0x2bb8d2),this[_0x47db3c(0x149)](_0x184168[_0x47db3c(0x122)],_0x4788ce),this[_0x47db3c(0x149)](_0x184168['hXnQp'],_0x3db916['length']),this[_0x47db3c(0x149)](_0x184168[_0x47db3c(0x168)],this[_0x47db3c(0x126)]?this[_0x47db3c(0x126)][_0x47db3c(0x172)]():0x0),_0x3db916[_0x47db3c(0x140)](_0x2bacf6=>sanitizedFilePath(_0x2bacf6));}catch(_0x2cc14a){return logger[_0x47db3c(0x106)](_0x47db3c(0x135)+(_0x2cc14a[_0x47db3c(0x11b)]||_0x2cc14a[_0x47db3c(0x141)]())),null;}}async[a136_0x2c1db9(0x175)](_0x1319fb,_0x2ff5ed,_0x399e7f){const _0x396776=a136_0x2c1db9,_0x39ca7b={'UkTYZ':function(_0x5770d7,_0x2c0907){return _0x5770d7(_0x2c0907);},'rPGpg':_0x396776(0x13e),'RXcmN':function(_0x2e0bb4,_0x4defcc){return _0x2e0bb4(_0x4defcc);},'LPrTe':'jest-util','vhqQA':function(_0x2c637c,_0x18bc29){return _0x2c637c(_0x18bc29);},'jyoRW':_0x396776(0x114),'onaUc':_0x396776(0x11c),'uTjoc':_0x396776(0x10d),'qXfvp':_0x396776(0x14b),'ltEoJ':function(_0x4121de,_0x21953b,_0x42b063,_0x13c9e7){return _0x4121de(_0x21953b,_0x42b063,_0x13c9e7);},'kEHsc':'npx','RcEoJ':_0x396776(0x12b),'XdLOj':_0x396776(0x155),'UmDqr':_0x396776(0x154),'fTFUK':_0x396776(0x166),'NYhYa':function(_0x5cef5d,_0x341d3f,_0x4963e1,_0x404186){return _0x5cef5d(_0x341d3f,_0x4963e1,_0x404186);}};try{const {getTestPathPatterns:_0x38d115}=_0x39ca7b['UkTYZ'](require,_0x39ca7b[_0x396776(0x142)]),{globsToMatcher:_0x32d1cd}=_0x39ca7b[_0x396776(0x150)](require,_0x39ca7b['LPrTe']),{findRelatedTests:_0x3af76f}=_0x39ca7b[_0x396776(0x147)](require,_0x39ca7b[_0x396776(0x120)]),_0x2c8655=_0x39ca7b['UkTYZ'](require,_0x39ca7b[_0x396776(0x157)]),_0x5074e3=_0x1319fb[_0x396776(0x162)]||[_0x39ca7b[_0x396776(0x13d)],_0x39ca7b[_0x396776(0x107)]],_0x35c73f=_0x1319fb[_0x396776(0x134)]||[],_0x4efe13=_0x39ca7b[_0x396776(0x13a)](spawnSync,_0x39ca7b['kEHsc'],[_0x39ca7b[_0x396776(0x170)],_0x39ca7b[_0x396776(0x113)],_0x399e7f,..._0x2ff5ed,_0x39ca7b['UmDqr']],{'encoding':_0x39ca7b[_0x396776(0x131)]});let _0x1dc239=[];!_0x4efe13[_0x396776(0x12c)]&&(_0x1dc239=_0x4efe13[_0x396776(0x110)][_0x396776(0x13f)]('\x0a')['filter'](Boolean));logger['debug'](_0x396776(0x160)+JSON['stringify'](_0x1dc239)+_0x396776(0x129));const _0x1f58af={};_0x1f58af[_0x396776(0x123)]=!![],_0x1f58af[_0x396776(0x158)]=_0x35c73f;const _0x5c33fa=_0x39ca7b[_0x396776(0x16e)](micromatch,_0x1dc239,_0x5074e3,_0x1f58af)[_0x396776(0x140)](_0xb4d48d=>path[_0x396776(0x133)](_0x1319fb[_0x396776(0x15e)],_0xb4d48d));return logger[_0x396776(0x106)]('Filterted\x20to\x20test\x20files:\x20'+JSON[_0x396776(0x152)](_0x5c33fa)+'\x20files'),_0x5c33fa;}catch(_0x19de44){return logger[_0x396776(0x106)](_0x396776(0x118)+_0x19de44),[];}}}module['exports']=TestOrchestrationHandler;function a136_0x1e3b(){const _0x3e0b0e=['reorderTestFiles','testMatch','./testOrderingServerHandler','nodeIndex','_initializeTestOrdering','utf-8','../helper','pdAiL','zFMiR','[orchestrate]\x20Setting\x20buildIdentifier\x20to\x20buildRunIdentifier:\x20','getTestOrderingName','OeyAD','info','NYhYa','applied','RcEoJ','path','getSplitTestsAPICallCount','getOrderedTestFiles','uROiK','findTestFiles','0|5|1|4|3|2','testOrderingApplied','setTestOrderingApplied','XhRnk','DTRBe','updateBuildIdentifier','debug','qXfvp','4FAKlNH','AiGSQ','11NQTcpq','env','12pcFapw','**/__tests__/**/*.[jt]s?(x)','BROWSERSTACK_NODE_INDEX','Ovljp','stdout','orchestrationUtils','3832490CPfvzD','XdLOj','jest-runner','aFtBg','XIhKK','isTestOrderingApplied','Error\x20finding\x20test\x20files:\x20','207046qUnLrk','Test\x20Reordering\x20is\x20unavailable\x20because\x20testReporting\x20is\x20disabled.\x20Please\x20enable\x20it\x20from\x20browserstack.yml\x20file.','stack','glob','BROWSERSTACK_TOTAL_NODE_COUNT','config','1640853yMEYUs','jyoRW','VVceg','ZIlnk','matchBase','logTestOrderingChecks','../logger','testOrderingServerHandler','_shouldLogTestOrderingChecks','totalNodes','\x20files','projectName','jest','error','1044139FbQYgD','splitTests','getOrderingInstrumentationData','7677fCBFSK','fTFUK','isTestOrchestrationEnabled','relative','testPathIgnorePatterns','[reorderTestFiles]\x20Error\x20in\x20ordering\x20test\x20files:\x20','ppQBB','testObservability','./orchestrationUtils','CVBKN','ltEoJ','length','BROWSERSTACK_BUILD_RUN_IDENTIFIER','uTjoc','jest-config','split','map','toString','rPGpg','splitTestsAPICallCount','OoNoY','orderingInstrumentationData','4280900Bxjrhd','vhqQA','buildIdentifier','addToOrderingInstrumentationData','PscHv','**/?(*.)+(spec|test).[jt]s?(x)','Test\x20orchestration\x20with\x20test\x20ordering\x20enabled','3208bVZaDp','winstonLogger','buildName','RXcmN','[reorderTestFiles]\x20Test\x20ordering\x20is\x20not\x20supported\x20or\x20enabled','stringify','HuoQU','--listTests','--config','2GjyTVv','onaUc','ignore','bbaae','1860552IRxxda','aYWZl','uploadedTestFilesCount','Test\x20orchestration\x20without\x20test\x20ordering','rootDir','testOrderingEnabled','Found\x20test\x20files:\x20'];a136_0x1e3b=function(){return _0x3e0b0e;};return a136_0x1e3b();}
@@ -1 +1 @@
1
- const a137_0x1c53f2=a137_0x172d;function a137_0x172d(_0x2c4b95,_0x210d99){const _0x206c9f=a137_0x206c();return a137_0x172d=function(_0x172d1a,_0x15497f){_0x172d1a=_0x172d1a-0xd8;let _0x45c134=_0x206c9f[_0x172d1a];return _0x45c134;},a137_0x172d(_0x2c4b95,_0x210d99);}(function(_0x15be1f,_0x2bf2df){const _0x5f6b7b=a137_0x172d,_0x17ad38=_0x15be1f();while(!![]){try{const _0x6282af=parseInt(_0x5f6b7b(0x115))/0x1+parseInt(_0x5f6b7b(0x118))/0x2*(parseInt(_0x5f6b7b(0xfd))/0x3)+-parseInt(_0x5f6b7b(0x101))/0x4*(-parseInt(_0x5f6b7b(0xfb))/0x5)+parseInt(_0x5f6b7b(0x10e))/0x6*(-parseInt(_0x5f6b7b(0xe2))/0x7)+-parseInt(_0x5f6b7b(0x104))/0x8*(parseInt(_0x5f6b7b(0x112))/0x9)+-parseInt(_0x5f6b7b(0xe1))/0xa+-parseInt(_0x5f6b7b(0xf7))/0xb*(parseInt(_0x5f6b7b(0x107))/0xc);if(_0x6282af===_0x2bf2df)break;else _0x17ad38['push'](_0x17ad38['shift']());}catch(_0x3f2d5c){_0x17ad38['push'](_0x17ad38['shift']());}}}(a137_0x206c,0x791d2));const logger=require(a137_0x1c53f2(0xdd))[a137_0x1c53f2(0x103)],RequestUtils=require('./requestUtils');class TestOrderingServerHandler{constructor(_0x527eb1){const _0x573da7=a137_0x1c53f2;this[_0x573da7(0x116)]=_0x527eb1,this[_0x573da7(0x113)]=0x0,this[_0x573da7(0xf1)]=0x3c,this['defaultTimeoutInterval']=0x5;}[a137_0x1c53f2(0xec)](){const _0x25df64=a137_0x1c53f2;return this[_0x25df64(0x113)];}[a137_0x1c53f2(0x10b)](_0x395fba){const _0x1992d8=a137_0x1c53f2,_0x5d2570={};_0x5d2570[_0x1992d8(0xf8)]=_0x1992d8(0xfa);const _0x15d61d=_0x5d2570;if(!_0x395fba)return null;const _0xdda885={};return _0xdda885[_0x1992d8(0xe7)]=_0x395fba['timeout']||this[_0x1992d8(0xf1)],_0xdda885[_0x1992d8(0x10a)]=_0x395fba[_0x1992d8(0x10a)]||this[_0x1992d8(0xea)],_0xdda885['resultUrl']=_0x395fba[_0x1992d8(0xf2)],_0xdda885['timeoutUrl']=_0x395fba[_0x1992d8(0xe4)],logger[_0x1992d8(0x110)](_0x1992d8(0xdf)+JSON[_0x1992d8(0x114)](_0x395fba)),logger[_0x1992d8(0x110)](_0x1992d8(0xda)+_0x395fba[_0x1992d8(0xe7)]+_0x1992d8(0xeb)+_0x395fba[_0x1992d8(0x10a)]+',\x20resultUrl:\x20'+_0x395fba[_0x1992d8(0xf2)]+',\x20timeoutUrl:\x20'+_0x395fba['timeoutUrl']),(!_0x395fba[_0x1992d8(0xe7)]||!_0x395fba['timeoutInterval']||!_0x395fba[_0x1992d8(0xe4)]||!_0x395fba[_0x1992d8(0xf2)])&&logger[_0x1992d8(0x110)](_0x15d61d[_0x1992d8(0xf8)]),_0xdda885;}async['splitTests'](_0x4c981a,_0x56e42e){const _0x4fdcbb=a137_0x1c53f2,_0x9337bc={'gbBQY':function(_0x592e88,_0x5af453){return _0x592e88(_0x5af453);},'BbeUk':function(_0x176eff,_0x32ea9e){return _0x176eff(_0x32ea9e);}};try{const _0x2bbd15=_0x9337bc['gbBQY'](parseInt,process[_0x4fdcbb(0x108)][_0x4fdcbb(0xf3)]||'0'),_0x5b6f3e=_0x9337bc['BbeUk'](parseInt,process[_0x4fdcbb(0x108)][_0x4fdcbb(0x102)]||'1'),_0x26df08=process[_0x4fdcbb(0x108)][_0x4fdcbb(0xfe)],_0x112830={'nodeIndex':_0x2bbd15,'totalNodes':_0x5b6f3e,'projectName':this[_0x4fdcbb(0x116)][_0x4fdcbb(0x10c)],'buildName':this[_0x4fdcbb(0x116)][_0x4fdcbb(0x109)],'buildRunIdentifier':_0x26df08,'orchestrationStrategy':_0x56e42e,'hostInfo':this['_getHostInfo'](),'tests':_0x4c981a[_0x4fdcbb(0xd9)](_0x10713d=>({'filePath':_0x10713d}))},_0x2572d5=await RequestUtils[_0x4fdcbb(0xf9)](_0x112830);return logger[_0x4fdcbb(0x110)](_0x4fdcbb(0x10f)+JSON['stringify'](_0x2572d5)),this['splitTestsAPICallCount']+=0x1,this[_0x4fdcbb(0x10b)](_0x2572d5[_0x4fdcbb(0xff)]||{});}catch(_0x43537d){return logger['debug'](_0x4fdcbb(0xf5)+(_0x43537d[_0x4fdcbb(0xe0)]||_0x43537d['toString']())),null;}}async[a137_0x1c53f2(0x111)](_0x5d9521){const _0x36c503=a137_0x1c53f2,_0xb1c9cc={};_0xb1c9cc[_0x36c503(0xdb)]=_0x36c503(0x117),_0xb1c9cc['kOnok']=function(_0x347e2d,_0x36baf1){return _0x347e2d*_0x36baf1;},_0xb1c9cc[_0x36c503(0xf0)]=function(_0x1c37f3,_0x3bbc44){return _0x1c37f3&&_0x3bbc44;},_0xb1c9cc['meqqy']=function(_0x17d6f4,_0x41fd7f){return _0x17d6f4<_0x41fd7f;},_0xb1c9cc['prNgP']=function(_0x512cb5,_0x49e0fc){return _0x512cb5-_0x49e0fc;},_0xb1c9cc[_0x36c503(0x106)]=function(_0x2e33ef,_0x4e9730){return _0x2e33ef&&_0x4e9730;},_0xb1c9cc[_0x36c503(0xe5)]='[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20timeout\x20URL',_0xb1c9cc[_0x36c503(0x105)]=function(_0x594325,_0x20b47b){return _0x594325>_0x20b47b;};const _0x456ee2=_0xb1c9cc;if(!_0x5d9521)return null;try{logger[_0x36c503(0x110)](_0x456ee2[_0x36c503(0xdb)]);const _0x18bfc8=_0x5d9521[_0x36c503(0x10a)]||this[_0x36c503(0xea)],_0x3e416b=_0x456ee2[_0x36c503(0xe8)](_0x5d9521['timeout']||this[_0x36c503(0xf1)],0x3e8),_0x206a0f=_0x5d9521[_0x36c503(0xe4)],_0x30620b=_0x5d9521[_0x36c503(0xf2)];if(_0x456ee2[_0x36c503(0xf0)](!_0x30620b,!_0x206a0f))return null;let _0x41b806=null;const _0x2fc09e=Date[_0x36c503(0xf6)]();while(_0x30620b&&_0x456ee2[_0x36c503(0xef)](_0x456ee2[_0x36c503(0x10d)](Date[_0x36c503(0xf6)](),_0x2fc09e),_0x3e416b)){logger[_0x36c503(0x110)](_0x36c503(0xd8)+_0x30620b);const _0x188c64=await RequestUtils[_0x36c503(0xe6)](_0x30620b);logger['debug']('[getOrderedTestFiles]\x20Response\x20from\x20result\x20URL:\x20'+JSON['stringify'](_0x188c64)),this['splitTestsAPICallCount']+=0x1;if(_0x188c64&&_0x188c64['tests']){_0x41b806=_0x188c64['tests'];break;}await new Promise(_0x5ecdf3=>setTimeout(_0x5ecdf3,_0x18bfc8*0x3e8)),logger[_0x36c503(0x110)](_0x36c503(0xe3)+_0x18bfc8+_0x36c503(0xdc));}if(_0x456ee2['uYOtX'](!_0x41b806,_0x206a0f)){logger[_0x36c503(0x110)](_0x456ee2[_0x36c503(0xe5)]);const _0x4efaed=await RequestUtils['getSplitFiles'](_0x206a0f);_0x4efaed&&_0x4efaed['tests']&&(_0x41b806=_0x4efaed[_0x36c503(0xee)]);}if(_0x41b806&&_0x456ee2[_0x36c503(0x105)](_0x41b806['length'],0x0))return _0x41b806[_0x36c503(0xd9)](_0x173f5c=>_0x173f5c['filePath']);return null;}catch(_0x8e4b9){return logger[_0x36c503(0x110)](_0x36c503(0xfc)+(_0x8e4b9[_0x36c503(0xe0)]||_0x8e4b9['toString']())),null;}}[a137_0x1c53f2(0xed)](){const _0x3861f5=a137_0x1c53f2,_0x2d6375={'IaMpg':function(_0x4e1168,_0x1e8edf){return _0x4e1168(_0x1e8edf);}},_0x2fce98=_0x2d6375['IaMpg'](require,'os');try{return{'hostname':_0x2fce98['hostname'](),'platform':_0x2fce98[_0x3861f5(0xde)](),'release':_0x2fce98[_0x3861f5(0xe9)](),'arch':_0x2fce98['arch'](),'totalmem':_0x2fce98[_0x3861f5(0x100)](),'freemem':_0x2fce98[_0x3861f5(0xf4)]()};}catch(_0x40bf7e){return{};}}}module['exports']=TestOrderingServerHandler;function a137_0x206c(){const _0x4c8ba4=['BROWSERSTACK_BUILD_RUN_IDENTIFIER','body','totalmem','4ONpPns','BROWSERSTACK_TOTAL_NODE_COUNT','winstonLogger','875544iJTRLp','MFPkR','uYOtX','36264luvKYg','env','buildName','timeoutInterval','processSplitTestsResponse','projectName','prNgP','182916AVyUWr','[splitTests]\x20Response\x20from\x20split\x20tests\x20API:\x20','debug','getOrderedTestFiles','9GMLwPH','splitTestsAPICallCount','stringify','605024VpjWnF','config','[getOrderedTestFiles]\x20Fetching\x20ordered\x20test\x20files','39982LtUvBC','[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20result\x20URL:\x20','map','[processSplitTestsResponse]\x20timeout:\x20','IPxgh','\x20seconds.','../logger','platform','[processSplitTestsResponse]\x20Processing\x20response:\x20','stack','6403280igbFqZ','49gMiQii','[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20result\x20URL\x20after\x20waiting\x20for\x20','timeoutUrl','cGEcQ','getSplitFiles','timeout','kOnok','release','defaultTimeoutInterval',',\x20timeoutInterval:\x20','getSplitTestsAPICallCount','_getHostInfo','tests','meqqy','thqlJ','defaultTimeout','resultUrl','BROWSERSTACK_NODE_INDEX','freemem','[splitTests]\x20Exception\x20in\x20sending\x20test\x20files:\x20','now','583tHzLff','cVMHz','postSplitFiles','[processSplitTestsResponse]\x20Received\x20null\x20value(s)\x20for\x20some\x20attributes\x20in\x20split\x20tests\x20API\x20response','4772120haGExW','[getOrderedTestFiles]\x20Exception\x20in\x20fetching\x20ordered\x20test\x20files:\x20','9OMkGjj'];a137_0x206c=function(){return _0x4c8ba4;};return a137_0x206c();}
1
+ const a137_0x594ce2=a137_0xb1b4;function a137_0x3b9d(){const _0x4c12b8=['stringify','cjCMo','winstonLogger','resultUrl','174xSZtcP','17006247HqEglG','hostname','getOrderedTestFiles','5914180rzpLbc','1156280bzmNbZ','toString','[getOrderedTestFiles]\x20Exception\x20in\x20fetching\x20ordered\x20test\x20files:\x20','[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20result\x20URL:\x20',',\x20timeoutUrl:\x20','../logger','WhrTg','NTHHB','zmyvt','config','21094OOlOta','timeoutUrl','98eWOHVg','filePath','[getOrderedTestFiles]\x20Response\x20from\x20result\x20URL:\x20','processSplitTestsResponse','platform','vaJGv','tests','postSplitFiles','arch','6LnfmYM','8490460ZiYUjm','[splitTests]\x20Exception\x20in\x20sending\x20test\x20files:\x20','timeout','buildName','stack','splitTestsAPICallCount','getSplitTestsAPICallCount','defaultTimeoutInterval','defaultTimeout','[splitTests]\x20Response\x20from\x20split\x20tests\x20API:\x20','_getHostInfo','nlIlC','\x20seconds.','lwyTy','[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20timeout\x20URL','494128yLwGCr','map','debug','XcGUB','[processSplitTestsResponse]\x20timeout:\x20','getSplitFiles','btXWQ','[processSplitTestsResponse]\x20Received\x20null\x20value(s)\x20for\x20some\x20attributes\x20in\x20split\x20tests\x20API\x20response','BROWSERSTACK_NODE_INDEX','[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20result\x20URL\x20after\x20waiting\x20for\x20','574477YTbFJh','release','now','env','timeoutInterval','BROWSERSTACK_TOTAL_NODE_COUNT','fQIov'];a137_0x3b9d=function(){return _0x4c12b8;};return a137_0x3b9d();}(function(_0x2e774e,_0x56af59){const _0x442249=a137_0xb1b4,_0x5d5bc1=_0x2e774e();while(!![]){try{const _0x578275=-parseInt(_0x442249(0x192))/0x1+parseInt(_0x442249(0x1ac))/0x2*(parseInt(_0x442249(0x19d))/0x3)+parseInt(_0x442249(0x1a1))/0x4+-parseInt(_0x442249(0x1b8))/0x5*(parseInt(_0x442249(0x1b7))/0x6)+parseInt(_0x442249(0x1ae))/0x7*(-parseInt(_0x442249(0x188))/0x8)+parseInt(_0x442249(0x19e))/0x9+parseInt(_0x442249(0x1a2))/0xa;if(_0x578275===_0x56af59)break;else _0x5d5bc1['push'](_0x5d5bc1['shift']());}catch(_0x5e6150){_0x5d5bc1['push'](_0x5d5bc1['shift']());}}}(a137_0x3b9d,0xe9eed));function a137_0xb1b4(_0x3c8ded,_0x54cb9b){const _0x3b9d55=a137_0x3b9d();return a137_0xb1b4=function(_0xb1b43,_0x593cfc){_0xb1b43=_0xb1b43-0x17b;let _0x305290=_0x3b9d55[_0xb1b43];return _0x305290;},a137_0xb1b4(_0x3c8ded,_0x54cb9b);}const logger=require(a137_0x594ce2(0x1a7))[a137_0x594ce2(0x19b)],RequestUtils=require('./requestUtils');class TestOrderingServerHandler{constructor(_0x2de9fb){const _0x2d083b=a137_0x594ce2;this[_0x2d083b(0x1ab)]=_0x2de9fb,this[_0x2d083b(0x17e)]=0x0,this[_0x2d083b(0x181)]=0x3c,this[_0x2d083b(0x180)]=0x5;}[a137_0x594ce2(0x17f)](){const _0x1873db=a137_0x594ce2;return this[_0x1873db(0x17e)];}[a137_0x594ce2(0x1b1)](_0x5f5756){const _0x72f4ac=a137_0x594ce2,_0x41c964={};_0x41c964[_0x72f4ac(0x18e)]=_0x72f4ac(0x18f);const _0x5d6880=_0x41c964;if(!_0x5f5756)return null;const _0x4224a5={};return _0x4224a5[_0x72f4ac(0x17b)]=_0x5f5756[_0x72f4ac(0x17b)]||this[_0x72f4ac(0x181)],_0x4224a5['timeoutInterval']=_0x5f5756[_0x72f4ac(0x196)]||this[_0x72f4ac(0x180)],_0x4224a5[_0x72f4ac(0x19c)]=_0x5f5756[_0x72f4ac(0x19c)],_0x4224a5[_0x72f4ac(0x1ad)]=_0x5f5756[_0x72f4ac(0x1ad)],logger[_0x72f4ac(0x18a)]('[processSplitTestsResponse]\x20Processing\x20response:\x20'+JSON[_0x72f4ac(0x199)](_0x5f5756)),logger[_0x72f4ac(0x18a)](_0x72f4ac(0x18c)+_0x5f5756[_0x72f4ac(0x17b)]+',\x20timeoutInterval:\x20'+_0x5f5756[_0x72f4ac(0x196)]+',\x20resultUrl:\x20'+_0x5f5756['resultUrl']+_0x72f4ac(0x1a6)+_0x5f5756['timeoutUrl']),(!_0x5f5756[_0x72f4ac(0x17b)]||!_0x5f5756[_0x72f4ac(0x196)]||!_0x5f5756[_0x72f4ac(0x1ad)]||!_0x5f5756[_0x72f4ac(0x19c)])&&logger[_0x72f4ac(0x18a)](_0x5d6880['btXWQ']),_0x4224a5;}async['splitTests'](_0x38fc2c,_0x58c99d){const _0x2dba46=a137_0x594ce2,_0x290b05={'cjCMo':function(_0x524207,_0x1d03bb){return _0x524207(_0x1d03bb);},'fQIov':function(_0x4eaa3b,_0x440226){return _0x4eaa3b(_0x440226);}};try{const _0x53ac22=_0x290b05[_0x2dba46(0x19a)](parseInt,process[_0x2dba46(0x195)][_0x2dba46(0x190)]||'0'),_0x59f864=_0x290b05[_0x2dba46(0x198)](parseInt,process[_0x2dba46(0x195)][_0x2dba46(0x197)]||'1'),_0x5a4d37=process[_0x2dba46(0x195)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'],_0x411527={'nodeIndex':_0x53ac22,'totalNodes':_0x59f864,'projectName':this['config']['projectName'],'buildName':this[_0x2dba46(0x1ab)][_0x2dba46(0x17c)],'buildRunIdentifier':_0x5a4d37,'orchestrationStrategy':_0x58c99d,'hostInfo':this['_getHostInfo'](),'tests':_0x38fc2c[_0x2dba46(0x189)](_0xfafbc6=>({'filePath':_0xfafbc6}))},_0x479e2d=await RequestUtils[_0x2dba46(0x1b5)](_0x411527);return logger[_0x2dba46(0x18a)](_0x2dba46(0x182)+JSON[_0x2dba46(0x199)](_0x479e2d)),this[_0x2dba46(0x17e)]+=0x1,this[_0x2dba46(0x1b1)](_0x479e2d['body']||{});}catch(_0x54686e){return logger['debug'](_0x2dba46(0x1b9)+(_0x54686e[_0x2dba46(0x17d)]||_0x54686e[_0x2dba46(0x1a3)]())),null;}}async[a137_0x594ce2(0x1a0)](_0x36ea22){const _0x3a71cd=a137_0x594ce2,_0x2518a0={};_0x2518a0[_0x3a71cd(0x18b)]='[getOrderedTestFiles]\x20Fetching\x20ordered\x20test\x20files',_0x2518a0[_0x3a71cd(0x1a8)]=function(_0x3d8e42,_0x39ebd6){return _0x3d8e42*_0x39ebd6;},_0x2518a0[_0x3a71cd(0x1aa)]=function(_0x3a0805,_0x11dcd9){return _0x3a0805&&_0x11dcd9;},_0x2518a0[_0x3a71cd(0x186)]=function(_0x2a15dc,_0x7c8a35){return _0x2a15dc<_0x7c8a35;},_0x2518a0[_0x3a71cd(0x1b3)]=function(_0x5eb461,_0x4b83af){return _0x5eb461-_0x4b83af;},_0x2518a0[_0x3a71cd(0x184)]=_0x3a71cd(0x187),_0x2518a0[_0x3a71cd(0x1a9)]=function(_0x2f9815,_0x1955c2){return _0x2f9815>_0x1955c2;};const _0x47876a=_0x2518a0;if(!_0x36ea22)return null;try{logger[_0x3a71cd(0x18a)](_0x47876a[_0x3a71cd(0x18b)]);const _0x3f1229=_0x36ea22[_0x3a71cd(0x196)]||this[_0x3a71cd(0x180)],_0x4b303d=_0x47876a[_0x3a71cd(0x1a8)](_0x36ea22[_0x3a71cd(0x17b)]||this[_0x3a71cd(0x181)],0x3e8),_0x527ec6=_0x36ea22[_0x3a71cd(0x1ad)],_0x2d522d=_0x36ea22[_0x3a71cd(0x19c)];if(_0x47876a[_0x3a71cd(0x1aa)](!_0x2d522d,!_0x527ec6))return null;let _0x368def=null;const _0x133e5c=Date[_0x3a71cd(0x194)]();while(_0x2d522d&&_0x47876a[_0x3a71cd(0x186)](_0x47876a[_0x3a71cd(0x1b3)](Date[_0x3a71cd(0x194)](),_0x133e5c),_0x4b303d)){logger['debug'](_0x3a71cd(0x1a5)+_0x2d522d);const _0x43d2c0=await RequestUtils[_0x3a71cd(0x18d)](_0x2d522d);logger['debug'](_0x3a71cd(0x1b0)+JSON[_0x3a71cd(0x199)](_0x43d2c0)),this[_0x3a71cd(0x17e)]+=0x1;if(_0x43d2c0&&_0x43d2c0[_0x3a71cd(0x1b4)]){_0x368def=_0x43d2c0[_0x3a71cd(0x1b4)];break;}await new Promise(_0x1a787b=>setTimeout(_0x1a787b,_0x3f1229*0x3e8)),logger[_0x3a71cd(0x18a)](_0x3a71cd(0x191)+_0x3f1229+_0x3a71cd(0x185));}if(_0x47876a[_0x3a71cd(0x1aa)](!_0x368def,_0x527ec6)){logger[_0x3a71cd(0x18a)](_0x47876a[_0x3a71cd(0x184)]);const _0x248487=await RequestUtils[_0x3a71cd(0x18d)](_0x527ec6);_0x248487&&_0x248487[_0x3a71cd(0x1b4)]&&(_0x368def=_0x248487['tests']);}if(_0x368def&&_0x47876a[_0x3a71cd(0x1a9)](_0x368def['length'],0x0))return _0x368def[_0x3a71cd(0x189)](_0x15cd2a=>_0x15cd2a[_0x3a71cd(0x1af)]);return null;}catch(_0x1d4218){return logger[_0x3a71cd(0x18a)](_0x3a71cd(0x1a4)+(_0x1d4218[_0x3a71cd(0x17d)]||_0x1d4218[_0x3a71cd(0x1a3)]())),null;}}[a137_0x594ce2(0x183)](){const _0x3160e7=a137_0x594ce2,_0x5dab3f={'RtVsX':function(_0x258c81,_0x59bf2d){return _0x258c81(_0x59bf2d);}},_0x53774f=_0x5dab3f['RtVsX'](require,'os');try{return{'hostname':_0x53774f[_0x3160e7(0x19f)](),'platform':_0x53774f[_0x3160e7(0x1b2)](),'release':_0x53774f[_0x3160e7(0x193)](),'arch':_0x53774f[_0x3160e7(0x1b6)](),'totalmem':_0x53774f['totalmem'](),'freemem':_0x53774f['freemem']()};}catch(_0x2f669a){return{};}}}module['exports']=TestOrderingServerHandler;
@@ -1 +1 @@
1
- var a138_0x246071=a138_0x16d5;(function(_0x369497,_0x4ac73d){var _0x11f3f2=a138_0x16d5,_0x52a772=_0x369497();while(!![]){try{var _0x5b449f=-parseInt(_0x11f3f2(0x98))/0x1*(-parseInt(_0x11f3f2(0x97))/0x2)+-parseInt(_0x11f3f2(0xa2))/0x3+-parseInt(_0x11f3f2(0x90))/0x4+parseInt(_0x11f3f2(0x85))/0x5+-parseInt(_0x11f3f2(0x89))/0x6*(-parseInt(_0x11f3f2(0x9e))/0x7)+parseInt(_0x11f3f2(0x8b))/0x8*(parseInt(_0x11f3f2(0x8f))/0x9)+-parseInt(_0x11f3f2(0x96))/0xa;if(_0x5b449f===_0x4ac73d)break;else _0x52a772['push'](_0x52a772['shift']());}catch(_0x28e841){_0x52a772['push'](_0x52a772['shift']());}}}(a138_0x212a,0xd510e));var a138_0x27fb41={};a138_0x27fb41['INVALID_CREDENTIALS']=a138_0x246071(0x87),a138_0x27fb41[a138_0x246071(0x9b)]=a138_0x246071(0x91),a138_0x27fb41['ACCESS_DENIED']=a138_0x246071(0x86);var a138_0xde5a4b={};function a138_0x212a(){var _0x44463d=['HookRunFinished','12979784worhLY','accessibility','ERROR','EVENT','9gsydQL','5774780Pzxfzn','ERROR_SDK_DEPRECATED','HookFinished','ENV_VAR','exports','TestRunStarted','9987520lQBStZ','1931494prnRAL','1pEjbRa','HookStarted','LogCreated','DEPRECATED','CBTSessionCreated','BROWSERSTACK_TESTHUB_UUID','4332734wJPRrn','api/v2/builds','TestSkipped','HookRunStarted','1195662SrmeoB','TestFinished','TestRunSkipped','2532685aYLpJR','ERROR_ACCESS_DENIED','ERROR_INVALID_CREDENTIALS','TESTHUB_BUILD_API','6WuvZgL'];a138_0x212a=function(){return _0x44463d;};return a138_0x212a();}function a138_0x16d5(_0x2d7815,_0x370268){var _0x212a1b=a138_0x212a();return a138_0x16d5=function(_0x16d568,_0x52cf21){_0x16d568=_0x16d568-0x84;var _0x23bc16=_0x212a1b[_0x16d568];return _0x23bc16;},a138_0x16d5(_0x2d7815,_0x370268);}a138_0xde5a4b['TestStarted']=a138_0x246071(0x95),a138_0xde5a4b[a138_0x246071(0xa3)]='TestRunFinished',a138_0xde5a4b[a138_0x246071(0xa0)]=a138_0x246071(0x84),a138_0xde5a4b[a138_0x246071(0x9a)]=a138_0x246071(0x9a),a138_0xde5a4b[a138_0x246071(0x99)]=a138_0x246071(0xa1),a138_0xde5a4b[a138_0x246071(0x92)]=a138_0x246071(0x8a),a138_0xde5a4b[a138_0x246071(0x9c)]=a138_0x246071(0x9c);var a138_0x44851d={};a138_0x44851d[a138_0x246071(0x9d)]=a138_0x246071(0x9d),a138_0x44851d['BROWSERSTACK_TESTHUB_JWT']='BROWSERSTACK_TESTHUB_JWT';var a138_0x51bace={};a138_0x51bace[a138_0x246071(0x88)]=a138_0x246071(0x9f),a138_0x51bace['ACCESSIBILITY']=a138_0x246071(0x8c),a138_0x51bace['OBSERVABILITY']='observability',a138_0x51bace[a138_0x246071(0x8d)]=a138_0x27fb41,a138_0x51bace[a138_0x246071(0x8e)]=a138_0xde5a4b,a138_0x51bace[a138_0x246071(0x93)]=a138_0x44851d,module[a138_0x246071(0x94)]=a138_0x51bace;
1
+ var a138_0x32daec=a138_0x3237;(function(_0x5adf43,_0x4e1c9c){var _0x435ecf=a138_0x3237,_0x4f0464=_0x5adf43();while(!![]){try{var _0x58abcf=parseInt(_0x435ecf(0x178))/0x1+parseInt(_0x435ecf(0x170))/0x2+-parseInt(_0x435ecf(0x166))/0x3+-parseInt(_0x435ecf(0x17c))/0x4+parseInt(_0x435ecf(0x163))/0x5+parseInt(_0x435ecf(0x164))/0x6*(parseInt(_0x435ecf(0x17d))/0x7)+parseInt(_0x435ecf(0x17b))/0x8*(-parseInt(_0x435ecf(0x174))/0x9);if(_0x58abcf===_0x4e1c9c)break;else _0x4f0464['push'](_0x4f0464['shift']());}catch(_0x1b151e){_0x4f0464['push'](_0x4f0464['shift']());}}}(a138_0x221a,0x9d4ac));function a138_0x221a(){var _0x30b3c2=['HookRunFinished','1554758oPtOwI','LogCreated','ERROR_INVALID_CREDENTIALS','TestSkipped','949275CfONQX','TESTHUB_BUILD_API','ERROR_SDK_DEPRECATED','HookRunStarted','89653aZfXDN','BROWSERSTACK_TESTHUB_JWT','observability','48lMPVRI','380644ENDxoN','133JqzXqI','ERROR_ACCESS_DENIED','ACCESS_DENIED','exports','HookFinished','3552430cZYuZJ','191778CMnpZQ','TestRunStarted','2437608UFaSTC','CBTSessionCreated','ERROR','api/v2/builds','ACCESSIBILITY','accessibility','EVENT','BROWSERSTACK_TESTHUB_UUID','INVALID_CREDENTIALS'];a138_0x221a=function(){return _0x30b3c2;};return a138_0x221a();}var a138_0x439727={};a138_0x439727[a138_0x32daec(0x16e)]=a138_0x32daec(0x172),a138_0x439727['DEPRECATED']=a138_0x32daec(0x176),a138_0x439727[a138_0x32daec(0x160)]=a138_0x32daec(0x15f);var a138_0xf3deb3={};a138_0xf3deb3['TestStarted']=a138_0x32daec(0x165),a138_0xf3deb3['TestFinished']='TestRunFinished',a138_0xf3deb3[a138_0x32daec(0x173)]='TestRunSkipped',a138_0xf3deb3[a138_0x32daec(0x171)]=a138_0x32daec(0x171),a138_0xf3deb3['HookStarted']=a138_0x32daec(0x177),a138_0xf3deb3[a138_0x32daec(0x162)]=a138_0x32daec(0x16f),a138_0xf3deb3[a138_0x32daec(0x167)]='CBTSessionCreated';var a138_0x51b9da={};a138_0x51b9da[a138_0x32daec(0x16d)]=a138_0x32daec(0x16d),a138_0x51b9da[a138_0x32daec(0x179)]=a138_0x32daec(0x179);var a138_0x1c280c={};function a138_0x3237(_0x1ef2a4,_0x318a6a){var _0x221aee=a138_0x221a();return a138_0x3237=function(_0x32370d,_0x427698){_0x32370d=_0x32370d-0x15f;var _0x297ee0=_0x221aee[_0x32370d];return _0x297ee0;},a138_0x3237(_0x1ef2a4,_0x318a6a);}a138_0x1c280c[a138_0x32daec(0x175)]=a138_0x32daec(0x169),a138_0x1c280c[a138_0x32daec(0x16a)]=a138_0x32daec(0x16b),a138_0x1c280c['OBSERVABILITY']=a138_0x32daec(0x17a),a138_0x1c280c[a138_0x32daec(0x168)]=a138_0x439727,a138_0x1c280c[a138_0x32daec(0x16c)]=a138_0xf3deb3,a138_0x1c280c['ENV_VAR']=a138_0x51b9da,module[a138_0x32daec(0x161)]=a138_0x1c280c;
@@ -1 +1 @@
1
- const a139_0x26c477=a139_0x3350;(function(_0x5de460,_0x15b53e){const _0x388694=a139_0x3350,_0x40cc52=_0x5de460();while(!![]){try{const _0x1497f1=-parseInt(_0x388694(0xc3))/0x1*(parseInt(_0x388694(0x121))/0x2)+parseInt(_0x388694(0xb3))/0x3+-parseInt(_0x388694(0x97))/0x4*(-parseInt(_0x388694(0xb7))/0x5)+-parseInt(_0x388694(0xae))/0x6*(-parseInt(_0x388694(0x9b))/0x7)+parseInt(_0x388694(0x96))/0x8*(parseInt(_0x388694(0xdd))/0x9)+parseInt(_0x388694(0xce))/0xa+-parseInt(_0x388694(0x12f))/0xb;if(_0x1497f1===_0x15b53e)break;else _0x40cc52['push'](_0x40cc52['shift']());}catch(_0x539ce5){_0x40cc52['push'](_0x40cc52['shift']());}}}(a139_0x58c4,0xa241f));const bsSetupHelper=require(a139_0x26c477(0xe5)),path=require(a139_0x26c477(0x11e)),util=require(a139_0x26c477(0x12a)),{getCustomTags,isTestObservabilitySession,getDefaultHeaders,nodeRequest}=require('../test-observability/utils'),testhubUtils=require('./utils.js'),testHubConstants=require(a139_0x26c477(0xfc)),constants=require(a139_0x26c477(0x94)),RequestQueueHandler=require(a139_0x26c477(0x112)),logger=require(a139_0x26c477(0xa6))[a139_0x26c477(0xc8)],SessionHandler=require(a139_0x26c477(0x10c)),PerformanceTester=require(a139_0x26c477(0x98)),{TESTHUB_EVENTS:PerformanceEvents}=require('../performance/constants'),TestDetails=require('../../bin/playwright/reporter/test-details.js'),{uploadTraceZip}=require(a139_0x26c477(0x124)),{isTurboScaleSession}=require(a139_0x26c477(0x102)),BrowserstackCLI=require(a139_0x26c477(0x106)),OngoingEvents=new Set();function a139_0x3350(_0x4b3975,_0xc3dff9){const _0x58c412=a139_0x58c4();return a139_0x3350=function(_0x335081,_0x521522){_0x335081=_0x335081-0x93;let _0x8611ff=_0x58c412[_0x335081];return _0x8611ff;},a139_0x3350(_0x4b3975,_0xc3dff9);}function a139_0x58c4(){const _0x3927c8=['3282612xVIIZK','BROWSERSTACK_PRODUCT_MAP','uploadPending','getProductMapForBuildStartCall','50FjRpta','env','PUT','WxUVS','BROWSERSTACK_BUILD_GROUPING_IDENTIFIER','POST','buildStopSent','getGitMetaData','PERCY_SUPPORTED_FRAMEWORKS','api/v1/builds/','BROWSERSTACK_ACCESSIBILITY','setTestHubCommonMetaInfo','5cHIKAy','buildDescription','data','settings','central_scanner','winstonLogger','projectName','buildName','status','getTraceFilePaths','\x20framework','5068250qplKWA','VwNjv','UrYTN','true','getlC','cwd','oVzMo','null','BROWSERSTACK_LINKED_BUILD_UUID','ScOty','forEach','lcnc','DGCBW','info','ekGhF','195606wweGJQ','authToken','false','jwt','dlSSa','All\x20trace\x20zip\x20send\x20events\x20complete','VxCZV','Testhub\x20started\x20with\x20id:\x20','../helper','measureWrapper','message','isUndefined','generateBuildUpstreamData','response','finished_metadata','config','isFul','getCiInfo','XqceJ','getUserName','format','AIQdw','EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20','toISOString','BROWSERSTACK_CENTRAL_SCANNER_JOBID','wkFek','RipXZ','ACCESSIBILITY','hiOSJ','cUGRb','TESTHUB_BUILD_API','./constants.js','JrLWS','bXSnT','EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20Missing\x20authentication\x20token','framework','resolve','../helper.js','BqVRZ','launchBuild','BROWSERSTACK_TEST_OBSERVABILITY','../../bin/v2/browserstackCLI','dVqBJ','waitForBuildStatus','checkAndSetupPercy','Exception\x20while\x20creating\x20test\x20run\x20for\x20BrowserStack\x20Accessibility\x20Automation:\x20Missing\x20authentication\x20token','getCentralUser','../test-observability/sessionHandler.js','debug','YxBap','isRunning','exports','setTestObservabilityVariables','../test-observability/requestQueueHandler.js','getAccessibilityValueFromYml','getHostInfo','push','stopBuildUpstream\x20event\x20successful!','success','error','logBuildError','rFihU','qPTsI','basename','getInstance','path','getProductMap','scannerProcessingTimeout','56566tqPqIt','token','assign','../../bin/playwright/reporter/pwUtils.js','BROWSERSTACK_RERUN','Percy\x20is\x20not\x20supported\x20for\x20','allowScreenshot','setAccessibilityVariables','BROWSERSTACK_TESTHUB_JWT','util','AUtCT','BROWSERSTACK_TESTHUB_UUID','includes','DcWXX','34186262cYhvJS','statusText','Mgfrs','buildIdentifier','../../bin/utils/constants.js','PClMD','304wTrjia','168440HCacAD','../performance/performance-tester.js','ubRxs','accessibility','5691ShwVwy','BROWSERSTACK_BUILD_RUN_IDENTIFIER','UicxK','isBrowserstackInfra','extractDataFromResponse','BS_TESTOPS_BUILD_COMPLETED','RrTiX','accessibilityOptions','cREWS','getFrameworkDetails','OBSERVABILITY','../logger','isAccessibilityEnabled','Error\x20while\x20waiting\x20for\x20events:\x20','getAccessibilityOptions','buildHashedId','ENV_VAR','VqXtZ','processTraceZips','7866HyQApa','getConfig','xEVIw','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','START'];a139_0x58c4=function(){return _0x3927c8;};return a139_0x58c4();}let processedTraceZips=![];const addEvent=_0x5b8339=>{OngoingEvents['add'](_0x5b8339);},awaitAllEvents=async()=>{return Promise['allSettled'](OngoingEvents);};class TestHubHandler{static ['buildStopSent']=![];static async[a139_0x26c477(0x104)](_0x593b49,_0x22cf46){const _0x718e26=a139_0x26c477,_0x4d8d9c={'UrYTN':function(_0x334fcf,_0x2b3511){return _0x334fcf||_0x2b3511;},'XqceJ':function(_0x633e28,_0x70ffed){return _0x633e28===_0x70ffed;},'PClMD':function(_0x3d815d){return _0x3d815d();},'SOMNq':'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','WxUVS':_0x718e26(0xdf),'getlC':_0x718e26(0x10a),'YxBap':function(_0x350cbc,_0x1e0c03,_0x2c98c7,_0x34ebc3,_0x3f21c2){return _0x350cbc(_0x1e0c03,_0x2c98c7,_0x34ebc3,_0x3f21c2);},'VxCZV':_0x718e26(0xbc),'DGCBW':function(_0x2eced6,_0x4f9697){return _0x2eced6===_0x4f9697;},'VqXtZ':_0x718e26(0x9a),'VwNjv':_0x718e26(0xd1),'Mgfrs':_0x718e26(0x120),'rFihU':function(_0x4119c3,_0x3b646a){return _0x4119c3===_0x3b646a;}};await PerformanceTester[_0x718e26(0xe6)](PerformanceEvents[_0x718e26(0xb2)],async()=>{const _0x4b73b0=_0x718e26,_0x57647d=Object[_0x4b73b0(0x123)]({},_0x22cf46['config'],{'root_dir_path':'','framework':_0x22cf46[_0x4b73b0(0x100)]}),_0x54e72d=bsSetupHelper[_0x4b73b0(0xf0)](_0x57647d),_0x23ea47=bsSetupHelper['getAccessKey'](_0x57647d),_0x54184f=_0x4d8d9c['UrYTN'](_0x54e72d,'')+':'+_0x4d8d9c[_0x4b73b0(0xd0)](_0x23ea47,'');if(_0x4d8d9c[_0x4b73b0(0xef)](_0x54184f,':'))return _0x4d8d9c[_0x4b73b0(0x95)](isTestObservabilitySession)&&(logger[_0x4b73b0(0x10d)](_0x4d8d9c['SOMNq']),process[_0x4b73b0(0xb8)]['BS_TESTOPS_BUILD_COMPLETED']=_0x4d8d9c[_0x4b73b0(0xba)]),testhubUtils[_0x4b73b0(0xa7)](_0x57647d)&&logger[_0x4b73b0(0x10d)](_0x4d8d9c[_0x4b73b0(0xd2)]),[null,null];try{const _0x412299=await this[_0x4b73b0(0xe9)](_0x57647d,_0x593b49),_0x3cae98=this['getConfig'](_0x54e72d,_0x23ea47),_0x3adfdb=await _0x4d8d9c[_0x4b73b0(0x10e)](nodeRequest,_0x4d8d9c[_0x4b73b0(0xe3)],testHubConstants[_0x4b73b0(0xfb)],_0x412299,_0x3cae98),_0x2d1ebd=this[_0x4b73b0(0x9f)](_0x57647d,_0x3adfdb,_0x3cae98);await this[_0x4b73b0(0x109)](_0x22cf46,_0x593b49);const _0x341f9a=testhubUtils[_0x4b73b0(0x11f)](_0x57647d);process['env'][_0x4b73b0(0xb4)]=JSON['stringify'](_0x341f9a);if(_0x4d8d9c[_0x4b73b0(0xda)](testhubUtils[_0x4b73b0(0x113)](_0x22cf46[_0x4b73b0(0xec)]),null)){const _0x49cbf4=_0x2d1ebd[_0x4d8d9c[_0x4b73b0(0xac)]];_0x49cbf4&&_0x49cbf4[_0x4b73b0(0xde)]&&_0x49cbf4[_0x4b73b0(0xaa)]&&(_0x22cf46[_0x4b73b0(0xec)][_0x4b73b0(0x9a)]=!![],process[_0x4b73b0(0xb8)]['BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM']=_0x4d8d9c[_0x4b73b0(0xcf)]);}return _0x2d1ebd&&_0x2d1ebd[_0x4d8d9c[_0x4b73b0(0xac)]]&&_0x2d1ebd[_0x4d8d9c[_0x4b73b0(0xac)]][_0x4d8d9c[_0x4b73b0(0x131)]]&&(process[_0x4b73b0(0xb8)]['BROWSERSTACK_TEST_ACCESSIBILITY_SCRIPT_TIMEOUT']=_0x2d1ebd[_0x4d8d9c[_0x4b73b0(0xac)]][_0x4d8d9c['Mgfrs']]),_0x2d1ebd;}catch(_0x4d782c){if(_0x4d8d9c[_0x4b73b0(0x11a)](_0x4d782c[_0x4b73b0(0x117)],![])){testhubUtils[_0x4b73b0(0x119)](_0x4d782c);return;}}})();}static async[a139_0x26c477(0xad)](){const _0x336b5d=a139_0x26c477,_0x3ab216={'BqVRZ':function(_0x481b8e,_0x18435d,_0x4e52a7){return _0x481b8e(_0x18435d,_0x4e52a7);},'isFul':function(_0x2c31c3,_0x3cbe51){return _0x2c31c3(_0x3cbe51);},'dlSSa':function(_0x403f66){return _0x403f66();},'QMakL':_0x336b5d(0xe2)};if(processedTraceZips)return;const _0x11bb8d=TestDetails[_0x336b5d(0xcc)]();_0x11bb8d[_0x336b5d(0xd8)](({testUId:_0x43c19f,filePath:_0x1570d8})=>{const _0xde6720=_0x336b5d;var _0x16cb19=_0x3ab216[_0xde6720(0x103)](uploadTraceZip,_0x1570d8,_0x43c19f);_0x3ab216[_0xde6720(0xed)](addEvent,_0x16cb19);});try{await _0x3ab216[_0x336b5d(0xe1)](awaitAllEvents),logger['debug'](_0x3ab216['QMakL']),processedTraceZips=!![];}catch(_0x130a3a){logger['error'](_0x336b5d(0xa8)+util[_0x336b5d(0xf1)](_0x130a3a));}}static async[a139_0x26c477(0x109)](_0x497cc8,_0x3d1c33){const _0x3d1472=a139_0x26c477;if(constants[_0x3d1472(0xbf)][_0x3d1472(0x12d)](_0x3d1c33)){await _0x497cc8['setupPercy']();return;}_0x497cc8['config']['percy']&&logger[_0x3d1472(0x10d)](_0x3d1472(0x126)+_0x3d1c33+_0x3d1472(0xcd));}static['getAccessibilityOptions'](_0x3c878c){const _0x4e2cc6=a139_0x26c477,_0x455b25={'DcWXX':function(_0x36ef2b,_0x3cbed8){return _0x36ef2b(_0x3cbed8);},'hiOSJ':_0x4e2cc6(0xd1)};let _0x1db475;if(_0x3c878c[_0x4e2cc6(0xa2)]){const _0x40a72d={};_0x40a72d[_0x4e2cc6(0xc6)]=_0x3c878c[_0x4e2cc6(0xa2)],_0x1db475=_0x40a72d;}else{const _0x51aae9={};_0x51aae9[_0x4e2cc6(0xc6)]={},_0x1db475=_0x51aae9;}if((!bsSetupHelper[_0x4e2cc6(0x9e)]()||_0x455b25[_0x4e2cc6(0x12e)](isTurboScaleSession,_0x3c878c))&&testhubUtils[_0x4e2cc6(0xa7)](_0x3c878c)){const _0x31c560={};_0x31c560['includeEncodedExtension']=_0x455b25[_0x4e2cc6(0xf9)],Object['assign'](_0x1db475['settings'],_0x31c560);}return _0x1db475;}static[a139_0x26c477(0xaf)](_0x359bed,_0xc54bd9){const _0x156d6a=a139_0x26c477,_0x2149a4={'oVzMo':function(_0x4b49e8,_0x5be616){return _0x4b49e8(_0x5be616);}},_0x4d06b5={};return _0x4d06b5['username']=_0x359bed,_0x4d06b5['password']=_0xc54bd9,{'auth':_0x4d06b5,'headers':_0x2149a4[_0x156d6a(0xd4)](getDefaultHeaders,![])};}static async[a139_0x26c477(0xe9)](_0x20bbf6,_0x38fcef){const _0x199c25=a139_0x26c477,_0x2800cf={'ubRxs':'Generating\x20build\x20upstream\x20data\x20for\x20TestHub','xEVIw':function(_0x194ebc,_0x838172){return _0x194ebc(_0x838172);}};logger[_0x199c25(0x10d)](_0x2800cf[_0x199c25(0x99)]);const _0x1051a6={'project_name':_0x20bbf6[_0x199c25(0xc9)]||'','name':_0x20bbf6[_0x199c25(0xca)]||path[_0x199c25(0x11c)](path[_0x199c25(0x101)](process[_0x199c25(0xd3)]())),'build_identifier':_0x20bbf6[_0x199c25(0x93)],'description':_0x20bbf6[_0x199c25(0xc4)]||'','started_at':new Date()[_0x199c25(0xf4)](),'tags':_0x2800cf[_0x199c25(0xb0)](getCustomTags,_0x20bbf6),'host_info':bsSetupHelper[_0x199c25(0x114)](),'ci_info':bsSetupHelper[_0x199c25(0xee)](),'build_run_identifier':process['env'][_0x199c25(0x9c)],'failed_tests_rerun':process[_0x199c25(0xb8)][_0x199c25(0x125)]||![],'linked_build_uuid':process[_0x199c25(0xb8)][_0x199c25(0xd6)]||'','version_control':await bsSetupHelper[_0x199c25(0xbe)](),'accessibility':this[_0x199c25(0xa9)](_0x20bbf6),'framework_details':testhubUtils[_0x199c25(0xa4)](_0x20bbf6,_0x38fcef),'product_map':testhubUtils[_0x199c25(0xb6)](_0x20bbf6),'browserstackAutomation':bsSetupHelper[_0x199c25(0x9e)](),'grouping_identifier':process[_0x199c25(0xb8)][_0x199c25(0xbb)],'test_orchestration':testhubUtils['getTestOrchestrationBuildStartData'](_0x20bbf6)};if(bsSetupHelper['getCentralUser']()[_0x199c25(0xc7)]||bsSetupHelper[_0x199c25(0x10b)]()[_0x199c25(0xd9)]){const _0xb979a6={};_0xb979a6['job_id']=process['env'][_0x199c25(0xf5)],_0xb979a6[_0x199c25(0x122)]=process[_0x199c25(0xb8)]['BROWSERSTACK_CENTRAL_SCANNER_JWT'],_0x1051a6['central_scanner']=_0xb979a6;}return _0x1051a6;}static[a139_0x26c477(0x9f)](_0x4278d3,_0xaa6d00,_0x1e32b8){const _0x56b960=a139_0x26c477,_0x24f209={'JrLWS':function(_0x4bbf45){return _0x4bbf45();},'AUtCT':function(_0x561083,_0xee6f2a){return _0x561083&&_0xee6f2a;},'UicxK':_0x56b960(0xd1),'bXSnT':'false'},_0x22e7a9={};if(_0x24f209[_0x56b960(0xfd)](isTestObservabilitySession)){const [_0x5f150b,_0x539ba6,_0x5cc7e2]=testhubUtils[_0x56b960(0x111)](_0xaa6d00[_0x56b960(0xc5)],_0x1e32b8['auth']);if(_0x24f209[_0x56b960(0x12b)](_0x5f150b,_0x539ba6)){const _0x440e4a={};_0x440e4a[_0x56b960(0xe0)]=_0x5f150b,_0x440e4a[_0x56b960(0xaa)]=_0x539ba6,_0x440e4a[_0x56b960(0x127)]=_0x5cc7e2,_0x22e7a9[testHubConstants[_0x56b960(0xa5)]]=_0x440e4a,process['env'][_0x56b960(0x105)]=_0x24f209[_0x56b960(0x9d)];}else _0x22e7a9[testHubConstants['OBSERVABILITY']]={},process[_0x56b960(0xb8)]['BROWSERSTACK_TEST_OBSERVABILITY']=_0x24f209['bXSnT'];}else process[_0x56b960(0xb8)]['BROWSERSTACK_TEST_OBSERVABILITY']=_0x24f209[_0x56b960(0xfe)];const [_0x4bcac0,_0x4f1e32,_0x15d47d]=testhubUtils[_0x56b960(0x128)](_0xaa6d00[_0x56b960(0xc5)]);if(_0x24f209[_0x56b960(0x12b)](_0x4bcac0,_0x4f1e32)){const _0xe36a6a={};_0xe36a6a[_0x56b960(0xde)]=_0x4bcac0,_0xe36a6a[_0x56b960(0xaa)]=_0x4f1e32,_0xe36a6a[_0x56b960(0x120)]=_0x15d47d,_0x22e7a9[testHubConstants[_0x56b960(0xf8)]]=_0xe36a6a,process[_0x56b960(0xb8)]['BROWSERSTACK_ACCESSIBILITY']=_0x24f209[_0x56b960(0x9d)];}else _0x22e7a9[testHubConstants[_0x56b960(0xf8)]]={},process[_0x56b960(0xb8)][_0x56b960(0xc1)]=_0x24f209[_0x56b960(0xfe)];return testhubUtils[_0x56b960(0xc2)](_0xaa6d00['data']),logger[_0x56b960(0xdb)](_0x56b960(0xe4)+process[_0x56b960(0xb8)][_0x56b960(0x12c)]),_0x22e7a9;}static async['stop'](_0x32e5ab){const _0x3a62af=a139_0x26c477,_0x46873f={'wkFek':function(_0x1a3e03,_0x458e83){return _0x1a3e03===_0x458e83;},'RipXZ':'false','shdym':function(_0xa1c593,_0x1e10ca){return _0xa1c593===_0x1e10ca;},'qPTsI':_0x3a62af(0xd5),'JrmIX':_0x3a62af(0xff),'ScOty':_0x3a62af(0x118),'ekGhF':_0x3a62af(0xb1),'hRvty':_0x3a62af(0xeb),'vRilN':'user_killed','dVqBJ':function(_0x2eaf8b){return _0x2eaf8b();},'cREWS':function(_0x7e02d0,_0x59e02d,_0x18203c,_0xb3c65a,_0x3ea6bb,_0x1db797){return _0x7e02d0(_0x59e02d,_0x18203c,_0xb3c65a,_0x3ea6bb,_0x1db797);},'AIQdw':_0x3a62af(0xb9),'cUGRb':_0x3a62af(0x116),'RrTiX':_0x3a62af(0x117)};await PerformanceTester[_0x3a62af(0xe6)](PerformanceEvents['STOP'],async()=>{const _0x196189=_0x3a62af;if(_0x46873f[_0x196189(0xf6)](process[_0x196189(0xb8)][_0x196189(0xa0)],_0x46873f[_0x196189(0xf7)])||TestHubHandler['buildStopSent']||bsSetupHelper[_0x196189(0xe8)](process[_0x196189(0xb8)][testHubConstants[_0x196189(0xab)][_0x196189(0x129)]]))return;TestHubHandler[_0x196189(0xbd)]=!![];if(BrowserstackCLI[_0x196189(0x11d)]()[_0x196189(0x10f)]())return;await this[_0x196189(0xad)](),await RequestQueueHandler[_0x196189(0x11d)]()[_0x196189(0xb5)](),await SessionHandler[_0x196189(0x108)]();if(_0x46873f['shdym'](process[_0x196189(0xb8)][testHubConstants[_0x196189(0xab)][_0x196189(0x129)]],_0x46873f[_0x196189(0x11b)])||_0x46873f[_0x196189(0xf6)](process[_0x196189(0xb8)][testHubConstants['ENV_VAR'][_0x196189(0x12c)]],_0x46873f[_0x196189(0x11b)])){logger['debug'](_0x46873f['JrmIX']);const _0x9ad21={};return _0x9ad21[_0x196189(0xcb)]=_0x46873f[_0x196189(0xd7)],_0x9ad21[_0x196189(0xe7)]=_0x46873f[_0x196189(0xdc)],_0x9ad21;}const _0x57f547={'finished_at':new Date()['toISOString'](),'finished_metadata':[]};!!_0x32e5ab&&_0x57f547[_0x46873f['hRvty']][_0x196189(0x115)]({'reason':_0x46873f['vRilN'],'signal':_0x32e5ab,'failure_data':''});const _0x315729={'headers':_0x46873f[_0x196189(0x107)](getDefaultHeaders)};try{const _0x21e84c=await _0x46873f[_0x196189(0xa3)](nodeRequest,_0x46873f[_0x196189(0xf2)],_0x196189(0xc0)+process[_0x196189(0xb8)][testHubConstants['ENV_VAR']['BROWSERSTACK_TESTHUB_UUID']]+'/stop',_0x57f547,_0x315729,![]);if(_0x21e84c['data']&&_0x21e84c['data']['error']){const _0x53c8f6={};_0x53c8f6[_0x196189(0xe7)]=_0x21e84c[_0x196189(0xc5)][_0x196189(0x118)];throw _0x53c8f6;}else{logger['debug'](_0x46873f[_0x196189(0xfa)]);const _0x163912={};return _0x163912[_0x196189(0xcb)]=_0x46873f[_0x196189(0xa1)],_0x163912[_0x196189(0xe7)]='',_0x163912;}}catch(_0x8af6d2){_0x8af6d2['response']?logger['debug'](_0x196189(0xf3)+_0x8af6d2[_0x196189(0xea)]['status']+'\x20'+_0x8af6d2[_0x196189(0xea)]['statusText']+'\x20'+JSON['stringify'](_0x8af6d2['response'][_0x196189(0xc5)])):logger[_0x196189(0x10d)](_0x196189(0xf3)+(_0x8af6d2['message']||_0x8af6d2));const _0x464b91={};return _0x464b91[_0x196189(0xcb)]=_0x46873f[_0x196189(0xd7)],_0x464b91[_0x196189(0xe7)]=_0x8af6d2[_0x196189(0xe7)]||_0x8af6d2[_0x196189(0xea)]?_0x8af6d2['response']['status']+':'+_0x8af6d2[_0x196189(0xea)][_0x196189(0x130)]:_0x8af6d2,_0x464b91;}})();}}module[a139_0x26c477(0x110)]=TestHubHandler;
1
+ const a139_0x22e32c=a139_0x176a;(function(_0x1335ac,_0x413f5e){const _0x5c8cea=a139_0x176a,_0xc76d3d=_0x1335ac();while(!![]){try{const _0x1dd49e=-parseInt(_0x5c8cea(0x14b))/0x1*(parseInt(_0x5c8cea(0x123))/0x2)+-parseInt(_0x5c8cea(0x13b))/0x3*(-parseInt(_0x5c8cea(0x162))/0x4)+parseInt(_0x5c8cea(0x161))/0x5+-parseInt(_0x5c8cea(0x152))/0x6*(parseInt(_0x5c8cea(0x13e))/0x7)+-parseInt(_0x5c8cea(0x11b))/0x8*(-parseInt(_0x5c8cea(0x113))/0x9)+parseInt(_0x5c8cea(0xf5))/0xa+-parseInt(_0x5c8cea(0x17a))/0xb*(parseInt(_0x5c8cea(0x14a))/0xc);if(_0x1dd49e===_0x413f5e)break;else _0xc76d3d['push'](_0xc76d3d['shift']());}catch(_0x29feae){_0xc76d3d['push'](_0xc76d3d['shift']());}}}(a139_0x1e6c,0x43c8a));const bsSetupHelper=require(a139_0x22e32c(0x112)),path=require('path'),util=require(a139_0x22e32c(0xf1)),{getCustomTags,isTestObservabilitySession,getDefaultHeaders,nodeRequest}=require(a139_0x22e32c(0x176)),testhubUtils=require(a139_0x22e32c(0x168)),testHubConstants=require('./constants.js'),constants=require(a139_0x22e32c(0x188)),RequestQueueHandler=require('../test-observability/requestQueueHandler.js'),logger=require(a139_0x22e32c(0x15f))[a139_0x22e32c(0x182)],SessionHandler=require('../test-observability/sessionHandler.js'),PerformanceTester=require('../performance/performance-tester.js'),{TESTHUB_EVENTS:PerformanceEvents}=require('../performance/constants'),TestDetails=require(a139_0x22e32c(0x166)),{uploadTraceZip}=require(a139_0x22e32c(0x12e)),{isTurboScaleSession}=require(a139_0x22e32c(0x108)),BrowserstackCLI=require(a139_0x22e32c(0x13a)),OngoingEvents=new Set();let processedTraceZips=![];const addEvent=_0x5e5253=>{OngoingEvents['add'](_0x5e5253);},awaitAllEvents=async()=>{const _0x37c7c6=a139_0x22e32c;return Promise[_0x37c7c6(0x187)](OngoingEvents);};class TestHubHandler{static [a139_0x22e32c(0x164)]=![];static async['launchBuild'](_0x2d71fb,_0x1ad223){const _0x426be7=a139_0x22e32c,_0xb736d0={'fRkrh':function(_0x51a601,_0x2d164b){return _0x51a601||_0x2d164b;},'XcPKI':function(_0x1b0e10,_0x20f957){return _0x1b0e10===_0x20f957;},'obAdc':function(_0x4974d9){return _0x4974d9();},'XpNrF':_0x426be7(0x159),'JQTay':_0x426be7(0xfc),'tDmsJ':'Exception\x20while\x20creating\x20test\x20run\x20for\x20BrowserStack\x20Accessibility\x20Automation:\x20Missing\x20authentication\x20token','NFPUn':function(_0x3f99e2,_0x143f4f,_0x46cdc7,_0x1b018d,_0x783c4){return _0x3f99e2(_0x143f4f,_0x46cdc7,_0x1b018d,_0x783c4);},'ROjlE':_0x426be7(0x16c),'mZGCS':_0x426be7(0x172),'klyFo':_0x426be7(0x107),'faFbj':_0x426be7(0xed),'reGuy':function(_0x116bff,_0x3bd053){return _0x116bff===_0x3bd053;}};await PerformanceTester[_0x426be7(0x17d)](PerformanceEvents[_0x426be7(0x128)],async()=>{const _0x3cdbed=_0x426be7,_0x1aed0c=Object[_0x3cdbed(0x165)]({},_0x1ad223[_0x3cdbed(0x141)],{'root_dir_path':'','framework':_0x1ad223[_0x3cdbed(0x12b)]}),_0x5bafd2=bsSetupHelper[_0x3cdbed(0x150)](_0x1aed0c),_0x161fbb=bsSetupHelper[_0x3cdbed(0x157)](_0x1aed0c),_0x110c76=_0xb736d0[_0x3cdbed(0x14c)](_0x5bafd2,'')+':'+_0xb736d0[_0x3cdbed(0x14c)](_0x161fbb,'');if(_0xb736d0[_0x3cdbed(0x170)](_0x110c76,':'))return _0xb736d0[_0x3cdbed(0xf9)](isTestObservabilitySession)&&(logger['debug'](_0xb736d0[_0x3cdbed(0x14f)]),process[_0x3cdbed(0x12a)][_0x3cdbed(0x102)]=_0xb736d0[_0x3cdbed(0x185)]),testhubUtils[_0x3cdbed(0x15e)](_0x1aed0c)&&logger[_0x3cdbed(0x175)](_0xb736d0[_0x3cdbed(0x10d)]),[null,null];try{const _0x32a499=await this[_0x3cdbed(0xfe)](_0x1aed0c,_0x2d71fb),_0x93858f=this[_0x3cdbed(0x143)](_0x5bafd2,_0x161fbb),_0x1b3088=await _0xb736d0[_0x3cdbed(0x132)](nodeRequest,_0xb736d0['ROjlE'],testHubConstants[_0x3cdbed(0x178)],_0x32a499,_0x93858f),_0x169c5f=this[_0x3cdbed(0x146)](_0x1aed0c,_0x1b3088,_0x93858f);await this['checkAndSetupPercy'](_0x1ad223,_0x2d71fb);const _0x337205=testhubUtils[_0x3cdbed(0x13f)](_0x1aed0c);process['env'][_0x3cdbed(0x10b)]=JSON['stringify'](_0x337205);if(_0xb736d0['XcPKI'](testhubUtils[_0x3cdbed(0x10e)](_0x1ad223[_0x3cdbed(0x141)]),null)){const _0xb22511=_0x169c5f[_0xb736d0[_0x3cdbed(0xf2)]];_0xb22511&&_0xb22511['authToken']&&_0xb22511[_0x3cdbed(0x11f)]&&(_0x1ad223[_0x3cdbed(0x141)][_0x3cdbed(0x172)]=!![],process[_0x3cdbed(0x12a)]['BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM']=_0xb736d0[_0x3cdbed(0x144)]);}return _0x169c5f&&_0x169c5f[_0xb736d0[_0x3cdbed(0xf2)]]&&_0x169c5f[_0xb736d0[_0x3cdbed(0xf2)]][_0xb736d0[_0x3cdbed(0xfa)]]&&(process['env'][_0x3cdbed(0x136)]=_0x169c5f[_0xb736d0[_0x3cdbed(0xf2)]][_0xb736d0[_0x3cdbed(0xfa)]]),_0x169c5f;}catch(_0x2fc4a6){if(_0xb736d0[_0x3cdbed(0x181)](_0x2fc4a6[_0x3cdbed(0xfb)],![])){testhubUtils[_0x3cdbed(0x111)](_0x2fc4a6);return;}}})();}static async[a139_0x22e32c(0x11d)](){const _0x1244dc=a139_0x22e32c,_0x3ec4b0={'CILUx':function(_0x5155c8,_0xa7555b,_0x3a8dc2){return _0x5155c8(_0xa7555b,_0x3a8dc2);},'FbKvc':function(_0x3c9247,_0x503772){return _0x3c9247(_0x503772);},'MfuOu':function(_0x2cb234){return _0x2cb234();},'xrhKA':'All\x20trace\x20zip\x20send\x20events\x20complete'};if(processedTraceZips)return;const _0x39e7fa=TestDetails[_0x1244dc(0x147)]();_0x39e7fa[_0x1244dc(0x15c)](({testUId:_0x53b0b3,filePath:_0x4cbec0})=>{const _0x13c189=_0x1244dc;var _0x1b4aa4=_0x3ec4b0[_0x13c189(0x153)](uploadTraceZip,_0x4cbec0,_0x53b0b3);_0x3ec4b0[_0x13c189(0x12d)](addEvent,_0x1b4aa4);});try{await _0x3ec4b0['MfuOu'](awaitAllEvents),logger[_0x1244dc(0x175)](_0x3ec4b0[_0x1244dc(0xf4)]),processedTraceZips=!![];}catch(_0x3a2334){logger[_0x1244dc(0x12c)](_0x1244dc(0x117)+util[_0x1244dc(0x145)](_0x3a2334));}}static async[a139_0x22e32c(0x16d)](_0xf1c1c8,_0x48d71d){const _0x26fa5b=a139_0x22e32c;if(constants[_0x26fa5b(0x148)]['includes'](_0x48d71d)){await _0xf1c1c8['setupPercy']();return;}_0xf1c1c8[_0x26fa5b(0x141)][_0x26fa5b(0x14e)]&&logger[_0x26fa5b(0x175)](_0x26fa5b(0x134)+_0x48d71d+'\x20framework');}static['getAccessibilityOptions'](_0x18c19a){const _0x4b018a=a139_0x22e32c,_0x56703c={'JOJOa':function(_0x538b7d,_0x1ff1ef){return _0x538b7d(_0x1ff1ef);},'latGo':'true'};let _0x5ad078;if(_0x18c19a[_0x4b018a(0x11e)]){const _0x5eca56={};_0x5eca56[_0x4b018a(0x169)]=_0x18c19a['accessibilityOptions'],_0x5ad078=_0x5eca56;}else{const _0x4a15a1={};_0x4a15a1[_0x4b018a(0x169)]={},_0x5ad078=_0x4a15a1;}if((!bsSetupHelper[_0x4b018a(0x130)]()||_0x56703c[_0x4b018a(0x151)](isTurboScaleSession,_0x18c19a))&&testhubUtils['isAccessibilityEnabled'](_0x18c19a)){const _0x4bf74e={};_0x4bf74e[_0x4b018a(0x10c)]=_0x56703c[_0x4b018a(0x13d)],Object[_0x4b018a(0x165)](_0x5ad078[_0x4b018a(0x169)],_0x4bf74e);}return _0x5ad078;}static[a139_0x22e32c(0x143)](_0x1f8838,_0x51acc1){const _0xe59755=a139_0x22e32c,_0x14fcd5={'ixGOW':function(_0x25f134,_0x278d1c){return _0x25f134(_0x278d1c);}},_0x4857fa={};return _0x4857fa['username']=_0x1f8838,_0x4857fa['password']=_0x51acc1,{'auth':_0x4857fa,'headers':_0x14fcd5[_0xe59755(0xf8)](getDefaultHeaders,![])};}static async['generateBuildUpstreamData'](_0x326914,_0xc2992a){const _0x5ec809=a139_0x22e32c,_0x44d02a={'osJSC':_0x5ec809(0x179),'JItZP':function(_0x49163d,_0xf6c98c){return _0x49163d(_0xf6c98c);}};logger[_0x5ec809(0x175)](_0x44d02a[_0x5ec809(0x16a)]);const _0x5136ec={'project_name':_0x326914['projectName']||'','name':_0x326914[_0x5ec809(0x15b)]||path[_0x5ec809(0x154)](path[_0x5ec809(0x119)](process[_0x5ec809(0x129)]())),'build_identifier':_0x326914[_0x5ec809(0x114)],'description':_0x326914[_0x5ec809(0x171)]||'','started_at':new Date()[_0x5ec809(0x17c)](),'tags':_0x44d02a[_0x5ec809(0x13c)](getCustomTags,_0x326914),'host_info':bsSetupHelper[_0x5ec809(0x103)](),'ci_info':bsSetupHelper['getCiInfo'](),'build_run_identifier':process[_0x5ec809(0x12a)][_0x5ec809(0x131)],'failed_tests_rerun':process[_0x5ec809(0x12a)][_0x5ec809(0x10f)]||![],'linked_build_uuid':process[_0x5ec809(0x12a)][_0x5ec809(0x135)]||'','version_control':await bsSetupHelper[_0x5ec809(0xf3)](),'accessibility':this[_0x5ec809(0x110)](_0x326914),'framework_details':testhubUtils[_0x5ec809(0x17f)](_0x326914,_0xc2992a),'product_map':testhubUtils[_0x5ec809(0x116)](_0x326914),'browserstackAutomation':bsSetupHelper['isBrowserstackInfra'](),'grouping_identifier':process[_0x5ec809(0x12a)][_0x5ec809(0x186)],'test_orchestration':testhubUtils['getTestOrchestrationBuildStartData'](_0x326914)};if(bsSetupHelper['getCentralUser']()[_0x5ec809(0x127)]||bsSetupHelper[_0x5ec809(0x15a)]()[_0x5ec809(0x158)]){const _0x5d16cb={};_0x5d16cb['job_id']=process[_0x5ec809(0x12a)]['BROWSERSTACK_CENTRAL_SCANNER_JOBID'],_0x5d16cb[_0x5ec809(0x11a)]=process[_0x5ec809(0x12a)][_0x5ec809(0x15d)],_0x5136ec[_0x5ec809(0x127)]=_0x5d16cb;}return _0x5136ec;}static[a139_0x22e32c(0x146)](_0x4cf531,_0x503d56,_0x34169a){const _0x3d37b0=a139_0x22e32c,_0x39206c={'elQkS':function(_0x42a20a){return _0x42a20a();},'sTRev':function(_0x10cef7,_0x2760fa){return _0x10cef7&&_0x2760fa;},'qComh':_0x3d37b0(0x107),'mzqnM':_0x3d37b0(0xfc)},_0x44fd4c={};if(_0x39206c['elQkS'](isTestObservabilitySession)){const [_0x423c33,_0x330c2f,_0x5ad687]=testhubUtils[_0x3d37b0(0x133)](_0x503d56['data'],_0x34169a[_0x3d37b0(0x156)]);if(_0x39206c['sTRev'](_0x423c33,_0x330c2f)){const _0x39411e={};_0x39411e[_0x3d37b0(0x126)]=_0x423c33,_0x39411e[_0x3d37b0(0x11f)]=_0x330c2f,_0x39411e[_0x3d37b0(0x124)]=_0x5ad687,_0x44fd4c[testHubConstants[_0x3d37b0(0x177)]]=_0x39411e,process['env']['BROWSERSTACK_TEST_OBSERVABILITY']=_0x39206c[_0x3d37b0(0x118)];}else _0x44fd4c[testHubConstants[_0x3d37b0(0x177)]]={},process[_0x3d37b0(0x12a)][_0x3d37b0(0x183)]=_0x39206c[_0x3d37b0(0x137)];}else process['env'][_0x3d37b0(0x183)]=_0x39206c[_0x3d37b0(0x137)];const [_0x3e2d8e,_0x3973d8,_0x3d7f8a]=testhubUtils['setAccessibilityVariables'](_0x503d56[_0x3d37b0(0x14d)]);if(_0x39206c[_0x3d37b0(0x155)](_0x3e2d8e,_0x3973d8)){const _0x4aa2bc={};_0x4aa2bc[_0x3d37b0(0x173)]=_0x3e2d8e,_0x4aa2bc[_0x3d37b0(0x11f)]=_0x3973d8,_0x4aa2bc[_0x3d37b0(0xed)]=_0x3d7f8a,_0x44fd4c[testHubConstants[_0x3d37b0(0x100)]]=_0x4aa2bc,process[_0x3d37b0(0x12a)][_0x3d37b0(0x17b)]=_0x39206c[_0x3d37b0(0x118)];}else _0x44fd4c[testHubConstants[_0x3d37b0(0x100)]]={},process[_0x3d37b0(0x12a)]['BROWSERSTACK_ACCESSIBILITY']=_0x39206c['mzqnM'];return testhubUtils[_0x3d37b0(0x11c)](_0x503d56[_0x3d37b0(0x14d)]),logger['info'](_0x3d37b0(0x125)+process[_0x3d37b0(0x12a)][_0x3d37b0(0x142)]),_0x44fd4c;}static async['stop'](_0x5d8903){const _0x10462a=a139_0x22e32c,_0x36f4a3={'fZpkQ':function(_0xb0c180,_0x4f7c57){return _0xb0c180===_0x4f7c57;},'pLPbC':_0x10462a(0xfc),'Gcwsa':'null','PKJXE':function(_0x260c56,_0x5de1df){return _0x260c56===_0x5de1df;},'gDtfH':_0x10462a(0xf6),'REGBJ':_0x10462a(0x12c),'SZPzy':_0x10462a(0x167),'RNcVt':_0x10462a(0xf0),'KbpGZ':'user_killed','DSFKw':function(_0x480824){return _0x480824();},'liXEO':function(_0x2dd854,_0x57b8b1,_0x57960e,_0x32a036,_0x219acc,_0x12536b){return _0x2dd854(_0x57b8b1,_0x57960e,_0x32a036,_0x219acc,_0x12536b);},'IrTLJ':_0x10462a(0x189),'mUKLq':_0x10462a(0x104),'WDteL':_0x10462a(0xfb)};await PerformanceTester['measureWrapper'](PerformanceEvents[_0x10462a(0xf7)],async()=>{const _0x356f4b=_0x10462a;if(_0x36f4a3[_0x356f4b(0x16f)](process[_0x356f4b(0x12a)][_0x356f4b(0x102)],_0x36f4a3[_0x356f4b(0x101)])||TestHubHandler[_0x356f4b(0x164)]||bsSetupHelper[_0x356f4b(0x12f)](process['env'][testHubConstants['ENV_VAR'][_0x356f4b(0x16e)]]))return;TestHubHandler[_0x356f4b(0x164)]=!![];if(BrowserstackCLI[_0x356f4b(0x149)]()[_0x356f4b(0x115)]())return;await this[_0x356f4b(0x11d)](),await RequestQueueHandler[_0x356f4b(0x149)]()[_0x356f4b(0x163)](),await SessionHandler[_0x356f4b(0x106)]();if(_0x36f4a3[_0x356f4b(0x16f)](process[_0x356f4b(0x12a)][testHubConstants[_0x356f4b(0xff)][_0x356f4b(0x16e)]],_0x36f4a3[_0x356f4b(0x17e)])||_0x36f4a3[_0x356f4b(0x139)](process[_0x356f4b(0x12a)][testHubConstants[_0x356f4b(0xff)]['BROWSERSTACK_TESTHUB_UUID']],_0x36f4a3[_0x356f4b(0x17e)])){logger[_0x356f4b(0x175)](_0x36f4a3[_0x356f4b(0x120)]);const _0x5ddec4={};return _0x5ddec4[_0x356f4b(0xef)]=_0x36f4a3[_0x356f4b(0x105)],_0x5ddec4[_0x356f4b(0x174)]=_0x36f4a3[_0x356f4b(0x121)],_0x5ddec4;}const _0x3b3efd={'finished_at':new Date()[_0x356f4b(0x17c)](),'finished_metadata':[]};!!_0x5d8903&&_0x3b3efd[_0x36f4a3[_0x356f4b(0xfd)]][_0x356f4b(0x16b)]({'reason':_0x36f4a3[_0x356f4b(0xee)],'signal':_0x5d8903,'failure_data':''});const _0xf18f4a={'headers':_0x36f4a3['DSFKw'](getDefaultHeaders)};try{const _0x40261b=await _0x36f4a3[_0x356f4b(0x160)](nodeRequest,_0x36f4a3[_0x356f4b(0x18b)],_0x356f4b(0x109)+process[_0x356f4b(0x12a)][testHubConstants[_0x356f4b(0xff)]['BROWSERSTACK_TESTHUB_UUID']]+_0x356f4b(0x138),_0x3b3efd,_0xf18f4a,![]);if(_0x40261b[_0x356f4b(0x14d)]&&_0x40261b[_0x356f4b(0x14d)]['error']){const _0x3505e7={};_0x3505e7[_0x356f4b(0x174)]=_0x40261b[_0x356f4b(0x14d)][_0x356f4b(0x12c)];throw _0x3505e7;}else{logger['debug'](_0x36f4a3[_0x356f4b(0x18a)]);const _0x59d579={};return _0x59d579['status']=_0x36f4a3[_0x356f4b(0x184)],_0x59d579['message']='',_0x59d579;}}catch(_0x185d44){_0x185d44['response']?logger[_0x356f4b(0x175)](_0x356f4b(0x122)+_0x185d44[_0x356f4b(0x140)]['status']+'\x20'+_0x185d44['response']['statusText']+'\x20'+JSON[_0x356f4b(0x10a)](_0x185d44[_0x356f4b(0x140)][_0x356f4b(0x14d)])):logger[_0x356f4b(0x175)](_0x356f4b(0x122)+(_0x185d44[_0x356f4b(0x174)]||_0x185d44));const _0x2956f4={};return _0x2956f4[_0x356f4b(0xef)]=_0x36f4a3[_0x356f4b(0x105)],_0x2956f4[_0x356f4b(0x174)]=_0x185d44['message']||_0x185d44[_0x356f4b(0x140)]?_0x185d44[_0x356f4b(0x140)][_0x356f4b(0xef)]+':'+_0x185d44[_0x356f4b(0x140)][_0x356f4b(0x180)]:_0x185d44,_0x2956f4;}})();}}function a139_0x176a(_0x25d9f0,_0x415232){const _0x1e6c20=a139_0x1e6c();return a139_0x176a=function(_0x176aac,_0x386d97){_0x176aac=_0x176aac-0xed;let _0x2f2d32=_0x1e6c20[_0x176aac];return _0x2f2d32;},a139_0x176a(_0x25d9f0,_0x415232);}module['exports']=TestHubHandler;function a139_0x1e6c(){const _0x367c61=['637153NIncIy','BROWSERSTACK_ACCESSIBILITY','toISOString','measureWrapper','Gcwsa','getFrameworkDetails','statusText','reGuy','winstonLogger','BROWSERSTACK_TEST_OBSERVABILITY','WDteL','JQTay','BROWSERSTACK_BUILD_GROUPING_IDENTIFIER','allSettled','../../bin/utils/constants.js','PUT','mUKLq','IrTLJ','scannerProcessingTimeout','KbpGZ','status','finished_metadata','util','mZGCS','getGitMetaData','xrhKA','3549530hTrjlJ','EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20Missing\x20authentication\x20token','STOP','ixGOW','obAdc','faFbj','success','false','RNcVt','generateBuildUpstreamData','ENV_VAR','ACCESSIBILITY','pLPbC','BS_TESTOPS_BUILD_COMPLETED','getHostInfo','stopBuildUpstream\x20event\x20successful!','REGBJ','waitForBuildStatus','true','../helper.js','api/v1/builds/','stringify','BROWSERSTACK_PRODUCT_MAP','includeEncodedExtension','tDmsJ','getAccessibilityValueFromYml','BROWSERSTACK_RERUN','getAccessibilityOptions','logBuildError','../helper','1928376MpVcrG','buildIdentifier','isRunning','getProductMapForBuildStartCall','Error\x20while\x20waiting\x20for\x20events:\x20','qComh','resolve','token','16fzNUSz','setTestHubCommonMetaInfo','processTraceZips','accessibilityOptions','buildHashedId','gDtfH','SZPzy','EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20','14582bGjIep','allowScreenshot','Testhub\x20started\x20with\x20id:\x20','jwt','central_scanner','START','cwd','env','framework','error','FbKvc','../../bin/playwright/reporter/pwUtils.js','isUndefined','isBrowserstackInfra','BROWSERSTACK_BUILD_RUN_IDENTIFIER','NFPUn','setTestObservabilityVariables','Percy\x20is\x20not\x20supported\x20for\x20','BROWSERSTACK_LINKED_BUILD_UUID','BROWSERSTACK_TEST_ACCESSIBILITY_SCRIPT_TIMEOUT','mzqnM','/stop','PKJXE','../../bin/v2/browserstackCLI','3trhNQD','JItZP','latGo','796481oSETOM','getProductMap','response','config','BROWSERSTACK_TESTHUB_UUID','getConfig','klyFo','format','extractDataFromResponse','getTraceFilePaths','PERCY_SUPPORTED_FRAMEWORKS','getInstance','204KOVdBS','9foCboI','fRkrh','data','percy','XpNrF','getUserName','JOJOa','6nkPEFN','CILUx','basename','sTRev','auth','getAccessKey','lcnc','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','getCentralUser','buildName','forEach','BROWSERSTACK_CENTRAL_SCANNER_JWT','isAccessibilityEnabled','../logger','liXEO','1403585QxtKqS','1510148pehcLw','uploadPending','buildStopSent','assign','../../bin/playwright/reporter/test-details.js','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','./utils.js','settings','osJSC','push','POST','checkAndSetupPercy','BROWSERSTACK_TESTHUB_JWT','fZpkQ','XcPKI','buildDescription','accessibility','authToken','message','debug','../test-observability/utils','OBSERVABILITY','TESTHUB_BUILD_API','Generating\x20build\x20upstream\x20data\x20for\x20TestHub'];a139_0x1e6c=function(){return _0x367c61;};return a139_0x1e6c();}
@@ -1 +1 @@
1
- const a140_0x11489c=a140_0x133e;(function(_0x20e1e1,_0x455240){const _0x3cb363=a140_0x133e,_0x255731=_0x20e1e1();while(!![]){try{const _0x54959b=-parseInt(_0x3cb363(0x124))/0x1+parseInt(_0x3cb363(0xb0))/0x2*(-parseInt(_0x3cb363(0x156))/0x3)+-parseInt(_0x3cb363(0x109))/0x4+-parseInt(_0x3cb363(0x10a))/0x5*(-parseInt(_0x3cb363(0xaa))/0x6)+parseInt(_0x3cb363(0x140))/0x7+-parseInt(_0x3cb363(0x154))/0x8+-parseInt(_0x3cb363(0x13a))/0x9*(-parseInt(_0x3cb363(0xb2))/0xa);if(_0x54959b===_0x455240)break;else _0x255731['push'](_0x255731['shift']());}catch(_0x1171df){_0x255731['push'](_0x255731['shift']());}}}(a140_0x4418,0xf29bf));const bsSetupHelper=require(a140_0x11489c(0x14f)),LoadTestModule=require(a140_0x11489c(0x113)),{isTestObservabilitySession,getFrameworkVersion}=require(a140_0x11489c(0xf0)),accessibilityHelper=require(a140_0x11489c(0xd1)),logger=require(a140_0x11489c(0xeb))[a140_0x11489c(0xbe)],{nestedKeyValue}=require(a140_0x11489c(0xfd)),scripts=require(a140_0x11489c(0x139)),globals=require(a140_0x11489c(0x100)),testHubConstants=require(a140_0x11489c(0x132)),PWTestDetails=require(a140_0x11489c(0xbf)),JestTestDetails=require(a140_0x11489c(0xb7)),{FRAMEWORKS}=require(a140_0x11489c(0xcf)),{isTurboScaleSession}=require(a140_0x11489c(0x142)),OrchestrationUtils=require(a140_0x11489c(0x14b)),constants=require(a140_0x11489c(0x104));let testData={};exports[a140_0x11489c(0xc3)]=_0xb2dbb1=>{const _0x3c8471=a140_0x11489c,_0x1f9ad1={'cjWox':function(_0x2ce47a){return _0x2ce47a();}};let _0x4b83fc=![],_0x8731f=![];if(bsSetupHelper[_0x3c8471(0x13f)]()&&_0xb2dbb1[_0x3c8471(0xb3)])_0x8731f=!![];else bsSetupHelper[_0x3c8471(0x13f)]()&&(_0x4b83fc=!![]);return Object[_0x3c8471(0x11a)]({'observability':_0x1f9ad1['cjWox'](isTestObservabilitySession),'accessibility':exports['isAccessibilityEnabled'](_0xb2dbb1),'percy':_0xb2dbb1[_0x3c8471(0xe5)]||![],'automate':_0x4b83fc,'app_automate':_0x8731f,'turboscale':bsSetupHelper['isTurboScaleSession'](_0xb2dbb1),'lts':LoadTestModule[_0x3c8471(0x121)](_0xb2dbb1)},bsSetupHelper['getCentralUser']());},exports['getFrameworkDetails']=(_0x2612d0,_0xaa648c)=>{const _0x4953fc=a140_0x11489c,_0x3284fe={'qyeZh':function(_0x823db7,_0x16d37c){return _0x823db7(_0x16d37c);},'lIYvC':_0x4953fc(0xbd)},_0x5b6143={'frameworkName':_0xaa648c,'frameworkVersion':_0x3284fe[_0x4953fc(0x141)](getFrameworkVersion,_0xaa648c),'sdkVersion':bsSetupHelper[_0x4953fc(0x101)](),'language':_0x3284fe['lIYvC'],'testFramework':bsSetupHelper['getTestFrameworkDetails'](_0x2612d0,_0xaa648c)};return process[_0x4953fc(0x11f)][_0x4953fc(0xf3)]=JSON[_0x4953fc(0x133)](_0x5b6143),_0x5b6143;},exports['setPercyFlag']=_0x55545a=>{const _0x58ac7f=a140_0x11489c,_0x25a667={};_0x25a667[_0x58ac7f(0xc0)]=_0x58ac7f(0xa7),_0x25a667[_0x58ac7f(0x126)]=_0x58ac7f(0xf5);const _0x1e200d=_0x25a667;process[_0x58ac7f(0x11f)][_0x58ac7f(0xd0)]=_0x1e200d[_0x58ac7f(0xc0)],bsSetupHelper[_0x58ac7f(0x150)](_0x55545a[_0x58ac7f(0xaf)][_0x58ac7f(0xe5)])&&(!_0x55545a['percy']||!_0x55545a[_0x58ac7f(0xe5)][_0x58ac7f(0xf7)]())&&(process['env']['BROWSERSTACK_PERCY']=_0x1e200d['Avawt']);},exports[a140_0x11489c(0x12e)]=()=>{const _0x546144=a140_0x11489c;return bsSetupHelper[_0x546144(0x150)](process[_0x546144(0x11f)][_0x546144(0xd0)]);},exports[a140_0x11489c(0xe8)]=(_0x5951ab={})=>{const _0x48b0b0=a140_0x11489c,_0x370be4={};_0x370be4[_0x48b0b0(0x122)]=function(_0x4d9628,_0x4cf16c){return _0x4d9628!==_0x4cf16c;},_0x370be4[_0x48b0b0(0x14a)]=function(_0x26e18e,_0x141971){return _0x26e18e===_0x141971;},_0x370be4['WaEOn']='true',_0x370be4[_0x48b0b0(0xa6)]=function(_0x39a3ad,_0x3b1714){return _0x39a3ad>_0x3b1714;};const _0x9a56bf=_0x370be4;if(_0x9a56bf[_0x48b0b0(0x122)](process['env'][_0x48b0b0(0xa2)],undefined))return bsSetupHelper['isTrue'](process['env']['BROWSERSTACK_ACCESSIBILITY']);let _0x5dcb65=_0x9a56bf['jsTCd'](process[_0x48b0b0(0x11f)][_0x48b0b0(0x135)],_0x9a56bf['WaEOn']);return _0x9a56bf[_0x48b0b0(0xa6)](Object[_0x48b0b0(0x125)](_0x5951ab)['length'],0x0)&&(process[_0x48b0b0(0x11f)][_0x48b0b0(0xce)]=accessibilityHelper[_0x48b0b0(0xd2)](_0x5951ab)),_0x5dcb65=_0x5dcb65||_0x9a56bf[_0x48b0b0(0x14a)](process[_0x48b0b0(0x11f)][_0x48b0b0(0xce)],_0x9a56bf['WaEOn']),_0x5dcb65;},exports[a140_0x11489c(0x128)]=(_0x17540d,_0x17eb45)=>{const _0x5747da=a140_0x11489c,_0x423031={'sSbtt':function(_0x8abe0e){return _0x8abe0e();},'BYwpy':'0|5|4|1|3|2','iEMOx':_0x5747da(0xf5),'kCRZB':function(_0x4a6276,_0x18be8c,_0x51e186){return _0x4a6276(_0x18be8c,_0x51e186);},'IbyTR':_0x5747da(0xdf),'Amstg':_0x5747da(0xf2)};if(!_0x17540d||!_0x17540d[_0x5747da(0xdf)])return exports[_0x5747da(0x143)](),[null,null,null];if(!_0x17540d[_0x5747da(0xdf)]['success'])return exports[_0x5747da(0x143)](_0x17540d[_0x5747da(0xdf)]),[null,null,null];if(_0x423031[_0x5747da(0x147)](isTestObservabilitySession)){const _0x3a9bae=_0x423031[_0x5747da(0xe4)][_0x5747da(0xb8)]('|');let _0x48eff1=0x0;while(!![]){switch(_0x3a9bae[_0x48eff1++]){case'0':process['env'][_0x5747da(0xae)]=_0x423031['iEMOx'];continue;case'1':_0x423031[_0x5747da(0xab)](nestedKeyValue,_0x17540d,[_0x423031[_0x5747da(0x107)],_0x423031[_0x5747da(0x153)]])&&(process[_0x5747da(0x11f)][_0x5747da(0xf9)]=_0x17540d[_0x5747da(0xdf)][_0x5747da(0xf2)][_0x5747da(0x155)]['toString']());continue;case'2':return[_0x17540d['jwt'],_0x17540d[_0x5747da(0x137)],process[_0x5747da(0x11f)][_0x5747da(0xf9)]];case'3':logger[_0x5747da(0x11e)]('['+constants[_0x5747da(0x13c)]+']\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20'+_0x17540d['build_hashed_id']);continue;case'4':_0x17540d['build_hashed_id']&&(process[_0x5747da(0x11f)][_0x5747da(0xef)]=_0x17540d['build_hashed_id']);continue;case'5':if(_0x17540d[_0x5747da(0xa0)]){process['env']['BS_TESTOPS_JWT']=_0x17540d['jwt'];const _0x554991={};_0x554991['username']=_0x17eb45[_0x5747da(0x103)],_0x554991[_0x5747da(0xb4)]=_0x17eb45['password'],process[_0x5747da(0x11f)][_0x5747da(0xe7)]=JSON[_0x5747da(0x133)](_0x554991);}continue;}break;}}return[null,null,null];},exports['setAccessibilityVariables']=_0x192265=>{const _0x559898=a140_0x11489c,_0x1cf52e={'pGhpN':function(_0x6040eb,_0x903a84,_0x53e66b){return _0x6040eb(_0x903a84,_0x53e66b);},'tztkx':_0x559898(0x11b),'MwmRp':_0x559898(0xf2),'AslsY':function(_0x728aba,_0x56e8d8,_0x610b95,_0x35174f){return _0x728aba(_0x56e8d8,_0x610b95,_0x35174f);},'GqzPw':_0x559898(0x12a),'ixHij':_0x559898(0xcc),'SCAgx':'command','wepFI':_0x559898(0xcb),'UkbmJ':_0x559898(0xf4),'BzWGv':'goog:chromeOptions'};if(!_0x192265[_0x559898(0x11b)])return exports['handleErrorForAccessibility'](),[null,null];if(!_0x192265['accessibility'][_0x559898(0xe1)])return exports[_0x559898(0xd4)](_0x192265[_0x559898(0x11b)]),[null,null];if(_0x1cf52e[_0x559898(0x13d)](nestedKeyValue,_0x192265,[_0x1cf52e[_0x559898(0xf6)],_0x1cf52e[_0x559898(0x10e)]])){const {accessibilityToken:_0x3e2fd4,scannerVersion:_0x4e3441,scannerProcessingTimeout:_0x5a2a28}=_0x1cf52e[_0x559898(0xc4)](jsonifyAccessibilityArray,_0x192265[_0x559898(0x11b)][_0x559898(0xf2)]['capabilities'],_0x1cf52e[_0x559898(0x118)],_0x1cf52e[_0x559898(0x12c)]),_0x35c9cc={'scripts':_0x1cf52e[_0x559898(0xc4)](jsonifyAccessibilityArray,_0x192265[_0x559898(0x11b)]['options']['scripts'],_0x1cf52e['GqzPw'],_0x1cf52e[_0x559898(0xa3)])};_0x35c9cc[_0x1cf52e[_0x559898(0xbb)]]=_0x192265[_0x559898(0x11b)][_0x559898(0xf2)][_0x559898(0xac)][_0x559898(0xcb)];const _0x1d81c5=_0x1cf52e[_0x559898(0xc4)](jsonifyAccessibilityArray,_0x192265['accessibility'][_0x559898(0xf2)][_0x559898(0xc6)],_0x1cf52e[_0x559898(0x118)],_0x1cf52e[_0x559898(0x12c)]);_0x35c9cc[_0x1cf52e[_0x559898(0xd8)]]=_0x1d81c5[_0x1cf52e[_0x559898(0xcd)]],scripts[_0x559898(0xd7)](_0x35c9cc),scripts[_0x559898(0xfb)]();let _0x22ed2d=process[_0x559898(0x11f)][_0x559898(0xfe)];return _0x22ed2d=!!_0x22ed2d?JSON[_0x559898(0x134)](_0x22ed2d):{},_0x22ed2d[_0x559898(0x123)]=_0x4e3441,process[_0x559898(0x11f)][_0x559898(0xfe)]=JSON['stringify'](_0x22ed2d),process['env'][_0x559898(0x127)]=_0x3e2fd4,logger['debug'](_0x559898(0x120)+_0x192265['build_hashed_id']),[_0x3e2fd4,_0x192265[_0x559898(0x137)],_0x5a2a28];}return[null,null];},exports[a140_0x11489c(0x143)]=_0x3db063=>{const _0x2587ac=a140_0x11489c,_0x4a1d21={};_0x4a1d21[_0x2587ac(0xf8)]=_0x2587ac(0x111),_0x4a1d21['BWsXW']='null',_0x4a1d21[_0x2587ac(0xa1)]=_0x2587ac(0xa7);const _0xc5a598=_0x4a1d21,_0x58bcf2=_0xc5a598[_0x2587ac(0xf8)][_0x2587ac(0xb8)]('|');let _0x2b1355=0x0;while(!![]){switch(_0x58bcf2[_0x2b1355++]){case'0':process[_0x2587ac(0x11f)][_0x2587ac(0xdb)]=_0xc5a598['BWsXW'];continue;case'1':process[_0x2587ac(0x11f)][_0x2587ac(0x114)]=_0xc5a598['BWsXW'];continue;case'2':process['env'][_0x2587ac(0xf9)]=_0xc5a598[_0x2587ac(0xb5)];continue;case'3':process['env'][_0x2587ac(0xef)]=_0xc5a598['BWsXW'];continue;case'4':process[_0x2587ac(0x11f)]['BS_TESTOPS_BUILD_COMPLETED']=_0xc5a598[_0x2587ac(0xa1)];continue;case'5':exports['logBuildError'](_0x3db063,testHubConstants[_0x2587ac(0xe2)]);continue;case'6':process[_0x2587ac(0x11f)]['BROWSERSTACK_TESTHUB_UUID']=_0xc5a598['BWsXW'];continue;}break;}},exports[a140_0x11489c(0xd4)]=_0x151311=>{const _0x40d0be=a140_0x11489c,_0x2656e5={};_0x2656e5[_0x40d0be(0xc5)]=_0x40d0be(0xb6),_0x2656e5['Nadxn']=_0x40d0be(0xa7),_0x2656e5[_0x40d0be(0x129)]=_0x40d0be(0x116);const _0xc4fe9c=_0x2656e5,_0xebd1f4=_0xc4fe9c[_0x40d0be(0xc5)]['split']('|');let _0x13f005=0x0;while(!![]){switch(_0xebd1f4[_0x13f005++]){case'0':process['env'][_0x40d0be(0xce)]=_0xc4fe9c[_0x40d0be(0xdc)];continue;case'1':process['env'][_0x40d0be(0x10f)]=_0xc4fe9c['bnnxN'];continue;case'2':exports['logBuildError'](_0x151311,testHubConstants[_0x40d0be(0xd6)]);continue;case'3':process[_0x40d0be(0x11f)]['BROWSERSTACK_TESTHUB_JWT']=_0xc4fe9c[_0x40d0be(0x129)];continue;case'4':process[_0x40d0be(0x11f)][_0x40d0be(0x135)]=_0xc4fe9c[_0x40d0be(0xdc)];continue;}break;}},exports[a140_0x11489c(0x11d)]=(_0x23e39e,_0x29c1ab='')=>{const _0x308f77=a140_0x11489c,_0x5c0bea={};_0x5c0bea[_0x308f77(0xa8)]=function(_0x439166,_0x4bb1e6){return _0x439166===_0x4bb1e6;};const _0x3beb45=_0x5c0bea;if(_0x3beb45[_0x308f77(0xa8)](_0x23e39e,undefined)){logger[_0x308f77(0xda)](_0x29c1ab['toUpperCase']()+_0x308f77(0xad));return;}for(const _0x56e103 of _0x23e39e[_0x308f77(0x10d)]){const _0x5d05d0=_0x56e103[_0x308f77(0x110)],_0x7f1d33=_0x56e103['message'];if(_0x7f1d33)switch(_0x5d05d0){case testHubConstants[_0x308f77(0xbc)][_0x308f77(0xe3)]:logger[_0x308f77(0xda)](_0x7f1d33);break;case testHubConstants['ERROR'][_0x308f77(0xea)]:logger[_0x308f77(0x12f)](_0x7f1d33);break;case testHubConstants[_0x308f77(0xbc)][_0x308f77(0x112)]:logger['error'](_0x7f1d33);break;default:logger[_0x308f77(0xda)](_0x7f1d33);}}};const jsonifyAccessibilityArray=(_0x3b3417,_0x5e6ca4,_0xadfdbe)=>{const _0xd98020={};return _0x3b3417['forEach'](_0x37c6d1=>{_0xd98020[_0x37c6d1[_0x5e6ca4]]=_0x37c6d1[_0xadfdbe];}),_0xd98020;};function a140_0x4418(){const _0x4221d0=['stringify','parse','BROWSERSTACK_TEST_ACCESSIBILITY_YML','ijdWP','build_hashed_id','bstackA11yShouldScan','../accessibility-automation/scripts.js','11226879KRBVNi','scopes','TEST_REPORTING_ANALYTICS','pGhpN','getGlobal','isBrowserstackInfra','10133158Nddpcv','qyeZh','../ats/helper','handleErrorForObservability','kdiVQ','getProductMapForBuildStartCall','CODECEPT','sSbtt','JItel','FGsLa','jsTCd','../test-orchestration/orchestrationUtils.js','FGXHy','titlePath','oCdOS','../helper','isTrue','BROWSERSTACK_TESTHUB_UUID:\x20','JEST','Amstg','746888LBfCGp','allow_screenshots','33vsEweD','shouldProcessEventForTesthub','uploadEventData','CBTSessionCreated','getTestOrchestrationBuildStartData','KVFbm','jwt','Thcaz','BROWSERSTACK_ACCESSIBILITY','SCAgx','test_run','vHCzr','akXnW','false','FuCpw','evPVI','102koicOa','kCRZB','commandsToWrap','\x20Build\x20creation\x20failed','BS_TESTOPS_BUILD_COMPLETED','config','249338UJjNzW','LYHva','10FRyclK','app','password','BWsXW','1|3|4|0|2','../../bin/jest/test-observability/test-details.js','split','GFoNE','setTestHubCommonMetaInfo','wepFI','ERROR','javascript','winstonLogger','../../bin/playwright/reporter/test-details.js','nQKHs','ujRTE','isUndefined','getProductMap','AslsY','UgIej','capabilities','HookRunStarted','Ckxvp','HookRunFinished','getCentralUser','commands','value','BzWGv','BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM','../test-observability/constants.js','BROWSERSTACK_PERCY','../accessibility-automation/helper','checkAccessibilityPlatformConfig','product_map','handleErrorForAccessibility','setCurrentTestData','ACCESSIBILITY','parseFromJson','UkbmJ','Haamv','error','BS_TESTOPS_JWT','Nadxn','oqnqr','hQmZT','observability','shouldScanTestForAccessibility','success','OBSERVABILITY','INVALID_CREDENTIALS','BYwpy','percy','appendTesthubParams','CREDENTIALS_FOR_CRASH_REPORTING','isAccessibilityEnabled','getAccessibilityPlatformValidation','ACCESS_DENIED','../logger','isAccessibilityPlatform','PLAYWRIGHT','MOCHA','BS_TESTOPS_BUILD_HASHED_ID','../test-observability/utils','length','options','FRAMEWORK_DETAILS','nonBStackInfraA11yChromeOptions','true','tztkx','isRunning','gTcuW','BS_TESTOPS_ALLOW_SCREENSHOTS','qTgSj','toJson','CWTQi','../helper.js','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','TestRunStarted','../globals.js','getAgentVersion','uuid','username','../../bin/utils/constants.js','lTUut','join','IbyTR','IfIpW','6000528sxfNUr','525240uECdFR','JrmFi','qcCUJ','errors','MwmRp','BROWSERSTACK_TESTHUB_UUID','key','6|1|4|0|3|2|5','DEPRECATED','../../bin/v2/modules/loadTestModule','BROWSERSTACK_TESTHUB_JWT','getBuildStartData','null','ltCQj','GqzPw','getAccessibilityValueFromYml','assign','accessibility','vSJQk','logBuildError','debug','env','[ACCESSIBILITY]\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20','isLTSSession','QHIvV','scannerVersion','522262YZUAip','keys','Avawt','BS_A11Y_JWT','setTestObservabilityVariables','bnnxN','name','getTestData','ixHij','getCurrentTestData','isPercyBuild','info','platforms','yQNYZ','./constants.js'];a140_0x4418=function(){return _0x4221d0;};return a140_0x4418();}function a140_0x133e(_0x3c2ae1,_0x46324b){const _0x4418ee=a140_0x4418();return a140_0x133e=function(_0x133e2b,_0x295a15){_0x133e2b=_0x133e2b-0x9b;let _0x156197=_0x4418ee[_0x133e2b];return _0x156197;},a140_0x133e(_0x3c2ae1,_0x46324b);}exports[a140_0x11489c(0xba)]=_0x43b411=>{const _0x527b51=a140_0x11489c;_0x43b411[_0x527b51(0xa0)]&&(process[_0x527b51(0x11f)][_0x527b51(0x114)]=_0x43b411[_0x527b51(0xa0)]);_0x43b411[_0x527b51(0x137)]&&(process[_0x527b51(0x11f)][_0x527b51(0x10f)]=_0x43b411[_0x527b51(0x137)],logger[_0x527b51(0x11e)](_0x527b51(0x151)+_0x43b411[_0x527b51(0x137)]));;},exports[a140_0x11489c(0x9b)]=(_0x3b7239='',_0x154f6d='')=>{const _0x221d58=a140_0x11489c,_0x12ee1a={'JXDbj':function(_0x59d385){return _0x59d385();},'kdiVQ':function(_0x1bf4ab,_0x15105e){return _0x1bf4ab===_0x15105e;},'CWTQi':_0x221d58(0x9c),'evPVI':'LogCreated','vgWvT':_0x221d58(0x9d),'LYHva':_0x221d58(0xc7),'xAEis':_0x221d58(0xc9),'JItel':function(_0x2ccc92){return _0x2ccc92();}};if(exports[_0x221d58(0x12e)]()&&!exports['isAccessibilityEnabled']()&&!_0x12ee1a['JXDbj'](isTestObservabilitySession)){if(_0x12ee1a[_0x221d58(0x144)](_0x154f6d,_0x12ee1a[_0x221d58(0xfc)]))return![];if([_0x12ee1a[_0x221d58(0xa9)],_0x12ee1a['vgWvT']]['includes'](_0x3b7239))return![];return!![];}if(exports[_0x221d58(0xe8)]()&&!_0x12ee1a['JXDbj'](isTestObservabilitySession)){if([_0x12ee1a[_0x221d58(0xb1)],_0x12ee1a['xAEis'],_0x12ee1a['evPVI']]['includes'](_0x3b7239))return![];return!![];}return exports[_0x221d58(0xe8)]()||_0x12ee1a[_0x221d58(0x148)](isTestObservabilitySession)||exports[_0x221d58(0x12e)]();},exports[a140_0x11489c(0xe6)]=(_0x4fc364,_0x3a3ec3,_0x4190b3='',_0x31a96a)=>{const _0x256f11=a140_0x11489c,_0x417e99={};_0x417e99[_0x256f11(0x108)]=_0x256f11(0xc7),_0x417e99[_0x256f11(0x10c)]=_0x256f11(0xc9),_0x417e99[_0x256f11(0xc8)]=function(_0x2222e9,_0x33606f){return _0x2222e9===_0x33606f;},_0x417e99[_0x256f11(0xd9)]=_0x256f11(0x138),_0x417e99[_0x256f11(0x14e)]=_0x256f11(0xec),_0x417e99[_0x256f11(0x149)]='accessibility',_0x417e99[_0x256f11(0x117)]=function(_0x199b60,_0xbc59c1){return _0x199b60&&_0xbc59c1;},_0x417e99['hQmZT']=function(_0x1d70c4,_0x3bd758){return _0x1d70c4===_0x3bd758;},_0x417e99[_0x256f11(0xb9)]=function(_0xdf3534,_0x896d4f){return _0xdf3534+_0x896d4f;},_0x417e99[_0x256f11(0x105)]=function(_0x55b8ce,_0x6a1e4d){return _0x55b8ce===_0x6a1e4d;},_0x417e99['FGXHy']=_0x256f11(0xff),_0x417e99[_0x256f11(0x10b)]=function(_0x21e121,_0x233f01){return _0x21e121&&_0x233f01;},_0x417e99['KVFbm']=_0x256f11(0xd3);const _0x543a8b=_0x417e99;if(![_0x543a8b[_0x256f11(0x108)],_0x543a8b['qcCUJ']]['includes'](_0x3a3ec3)&&exports['isAccessibilityEnabled']()){const _0xcc27f7={};if(_0x543a8b[_0x256f11(0xc8)](_0x31a96a,FRAMEWORKS[_0x256f11(0xee)])){const _0x95f13d=globals[_0x256f11(0x13e)](_0x543a8b['Haamv'])||accessibilityHelper['shouldScanTestForAccessibility'](_0x4190b3[_0x256f11(0x14d)](),!![]),_0x29c109=globals[_0x256f11(0x13e)](_0x543a8b[_0x256f11(0x14e)]);_0xcc27f7[_0x543a8b[_0x256f11(0x149)]]=_0x543a8b[_0x256f11(0x117)](_0x29c109,_0x95f13d);}if(_0x543a8b[_0x256f11(0xde)](_0x31a96a,FRAMEWORKS[_0x256f11(0x152)])){const _0x4a719d=_0x543a8b['GFoNE'](_0x543a8b[_0x256f11(0xb9)](_0x4fc364[_0x256f11(0x13b)][_0x256f11(0x106)]('\x20'),'\x20'),_0x4190b3[_0x256f11(0x12a)]),_0x4066ae=globals['getGlobal'](_0x543a8b[_0x256f11(0xd9)])||accessibilityHelper[_0x256f11(0xe0)](_0x4a719d,![]),_0x1709cc=browserStackGlobals[_0x256f11(0xec)];_0xcc27f7[_0x543a8b[_0x256f11(0x149)]]=_0x543a8b[_0x256f11(0x117)](_0x1709cc,_0x4066ae);}if(_0x543a8b[_0x256f11(0xde)](_0x31a96a,FRAMEWORKS[_0x256f11(0xed)])){if(_0x543a8b[_0x256f11(0x105)](_0x3a3ec3,_0x543a8b[_0x256f11(0x14c)]))return;_0xcc27f7[_0x543a8b[_0x256f11(0x149)]]=PWTestDetails[_0x256f11(0xe9)](_0x4fc364[_0x256f11(0x102)]);}if(_0x543a8b['Ckxvp'](_0x31a96a,FRAMEWORKS[_0x256f11(0x146)])){const _0x2b4dbe=accessibilityHelper[_0x256f11(0xe0)](_0x4190b3['titlePath'](),!![]),_0x2cd5ad=global['accessibilityPlatform'];_0xcc27f7[_0x543a8b[_0x256f11(0x149)]]=_0x543a8b[_0x256f11(0x117)](_0x2cd5ad,_0x2b4dbe);}if(_0x543a8b[_0x256f11(0xc8)](_0x31a96a,FRAMEWORKS['CUCUMBER'])){const _0x5dee94=accessibilityHelper[_0x256f11(0xe0)](null,![],_0x4fc364['tags']),_0x3bbcb7=globals[_0x256f11(0x13e)](_0x543a8b[_0x256f11(0x14e)]);_0xcc27f7[_0x543a8b[_0x256f11(0x149)]]=_0x543a8b[_0x256f11(0x10b)](_0x3bbcb7,_0x5dee94);}_0x4fc364[_0x543a8b[_0x256f11(0x9f)]]=_0xcc27f7;}},exports[a140_0x11489c(0x12d)]=_0x4a0499=>{const _0x21fcea=a140_0x11489c,_0x21217e={};_0x21217e[_0x21fcea(0xdd)]=function(_0x5155aa,_0x4f9981){return _0x5155aa>_0x4f9981;},_0x21217e[_0x21fcea(0xc1)]=function(_0x1cc3c8,_0x105b96){return _0x1cc3c8>_0x105b96;};const _0x3ff203=_0x21217e;let _0x4a1fa3={};if(_0x3ff203[_0x21fcea(0xdd)](Object[_0x21fcea(0x125)](testData)[_0x21fcea(0xf1)],0x0))return testData;_0x4a1fa3=JestTestDetails[_0x21fcea(0x12b)]();if(_0x3ff203['ujRTE'](Object['keys'](_0x4a1fa3)[_0x21fcea(0xf1)],0x0))return _0x4a1fa3;return _0x4a1fa3;},exports[a140_0x11489c(0xd5)]=(_0x1e6003,_0x5b4c5e={})=>{const _0x546274=a140_0x11489c;if(bsSetupHelper[_0x546274(0xc2)](_0x5b4c5e['test_run']))return;switch(_0x1e6003){case FRAMEWORKS[_0x546274(0xee)]:testData=_0x5b4c5e[_0x546274(0xa4)];break;case FRAMEWORKS[_0x546274(0x152)]:JestTestDetails['setTestData'](_0x5b4c5e[_0x546274(0xa4)]);break;default:break;}},exports[a140_0x11489c(0x119)]=_0x44f7dd=>{const _0x4c9865=a140_0x11489c,_0x36ee89={};_0x36ee89[_0x4c9865(0x131)]=function(_0x102f71,_0x49227c){return _0x102f71!==_0x49227c;},_0x36ee89[_0x4c9865(0xfa)]=function(_0xd3cffe,_0x13e1aa){return _0xd3cffe!==_0x13e1aa;},_0x36ee89[_0x4c9865(0x11c)]=function(_0x96c43a,_0x594c1c){return _0x96c43a!==_0x594c1c;},_0x36ee89[_0x4c9865(0xa5)]=function(_0x31f6fc,_0x196889){return _0x31f6fc!==_0x196889;};const _0x5b82fc=_0x36ee89;if(_0x5b82fc[_0x4c9865(0x131)](_0x44f7dd[_0x4c9865(0x11b)],null)&&_0x5b82fc[_0x4c9865(0xfa)](_0x44f7dd[_0x4c9865(0x11b)],undefined))return _0x44f7dd[_0x4c9865(0x11b)];let _0x38e3ce=![],_0x5ada72=![];if(_0x44f7dd[_0x4c9865(0x130)])for(const _0x35a85d of _0x44f7dd[_0x4c9865(0x130)]){_0x5b82fc[_0x4c9865(0x11c)](_0x35a85d['accessibility'],null)&&_0x5b82fc[_0x4c9865(0xa5)](_0x35a85d[_0x4c9865(0x11b)],undefined)&&(_0x38e3ce=_0x38e3ce||bsSetupHelper[_0x4c9865(0x150)](_0x35a85d['accessibility']),_0x5ada72=!![]);}if(_0x5ada72)return _0x38e3ce;return null;},exports[a140_0x11489c(0x9e)]=_0xaf5f4=>{const _0x296b50=a140_0x11489c,_0x730641=new OrchestrationUtils(_0xaf5f4);return _0x730641[_0x296b50(0x115)]();},exports[a140_0x11489c(0x145)]=_0x3b1f7b=>{const _0x267645=a140_0x11489c,_0x307c47={'ijdWP':function(_0x59b1a7){return _0x59b1a7();}};let _0x319a42=![],_0x349890=![];if(bsSetupHelper[_0x267645(0x13f)]()&&_0x3b1f7b[_0x267645(0xb3)])_0x349890=!![];else bsSetupHelper['isBrowserstackInfra']()&&(_0x319a42=!![]);return Object[_0x267645(0x11a)]({'observability':_0x307c47[_0x267645(0x136)](isTestObservabilitySession),'accessibility':exports[_0x267645(0x119)](_0x3b1f7b),'percy':_0x3b1f7b[_0x267645(0xe5)]||![],'automate':_0x319a42,'app_automate':_0x349890,'turboscale':bsSetupHelper['isTurboScaleSession'](_0x3b1f7b),'lts':LoadTestModule[_0x267645(0x121)](_0x3b1f7b)},bsSetupHelper[_0x267645(0xca)]());};
1
+ const a140_0x327181=a140_0x3cfc;(function(_0x35bf79,_0x8cbbab){const _0x2923ff=a140_0x3cfc,_0x41fde2=_0x35bf79();while(!![]){try{const _0xdfd481=parseInt(_0x2923ff(0x1e1))/0x1*(parseInt(_0x2923ff(0x1ce))/0x2)+parseInt(_0x2923ff(0x1df))/0x3*(-parseInt(_0x2923ff(0x1b4))/0x4)+-parseInt(_0x2923ff(0x1fe))/0x5*(parseInt(_0x2923ff(0x1f1))/0x6)+parseInt(_0x2923ff(0x21d))/0x7*(-parseInt(_0x2923ff(0x206))/0x8)+-parseInt(_0x2923ff(0x210))/0x9+parseInt(_0x2923ff(0x1a3))/0xa*(-parseInt(_0x2923ff(0x17b))/0xb)+parseInt(_0x2923ff(0x1f2))/0xc;if(_0xdfd481===_0x8cbbab)break;else _0x41fde2['push'](_0x41fde2['shift']());}catch(_0xc21e4a){_0x41fde2['push'](_0x41fde2['shift']());}}}(a140_0x5aba,0x351a3));function a140_0x3cfc(_0x2ab39b,_0x16e38d){const _0x5aba31=a140_0x5aba();return a140_0x3cfc=function(_0x3cfc1f,_0x35e553){_0x3cfc1f=_0x3cfc1f-0x16a;let _0x8a472c=_0x5aba31[_0x3cfc1f];return _0x8a472c;},a140_0x3cfc(_0x2ab39b,_0x16e38d);}const bsSetupHelper=require(a140_0x327181(0x1ef)),LoadTestModule=require(a140_0x327181(0x1f0)),{isTestObservabilitySession,getFrameworkVersion}=require(a140_0x327181(0x1c2)),accessibilityHelper=require(a140_0x327181(0x20d)),logger=require(a140_0x327181(0x1dd))['winstonLogger'],{nestedKeyValue}=require(a140_0x327181(0x219)),scripts=require('../accessibility-automation/scripts.js'),globals=require('../globals.js'),testHubConstants=require('./constants.js'),PWTestDetails=require(a140_0x327181(0x21a)),JestTestDetails=require(a140_0x327181(0x21f)),{FRAMEWORKS}=require('../test-observability/constants.js'),{isTurboScaleSession}=require(a140_0x327181(0x193)),OrchestrationUtils=require(a140_0x327181(0x1a5)),constants=require('../../bin/utils/constants.js');let testData={};exports['getProductMap']=_0x311e62=>{const _0x2feee4=a140_0x327181,_0xf10e66={'nwced':function(_0x388235){return _0x388235();}};let _0x4647f3=![],_0x5da3dd=![];if(bsSetupHelper[_0x2feee4(0x1ed)]()&&_0x311e62['app'])_0x5da3dd=!![];else bsSetupHelper[_0x2feee4(0x1ed)]()&&(_0x4647f3=!![]);return Object[_0x2feee4(0x174)]({'observability':_0xf10e66[_0x2feee4(0x178)](isTestObservabilitySession),'accessibility':exports[_0x2feee4(0x1c6)](_0x311e62),'percy':_0x311e62[_0x2feee4(0x1a0)]||![],'automate':_0x4647f3,'app_automate':_0x5da3dd,'turboscale':bsSetupHelper[_0x2feee4(0x1d7)](_0x311e62),'lts':LoadTestModule[_0x2feee4(0x198)](_0x311e62)},bsSetupHelper[_0x2feee4(0x197)]());},exports['getFrameworkDetails']=(_0x7631bd,_0x42a1b8)=>{const _0x401d56=a140_0x327181,_0x7082b8={'RykkR':function(_0x4f646d,_0x318737){return _0x4f646d(_0x318737);},'JWIkF':_0x401d56(0x201)},_0x5ad6f7={'frameworkName':_0x42a1b8,'frameworkVersion':_0x7082b8[_0x401d56(0x1e5)](getFrameworkVersion,_0x42a1b8),'sdkVersion':bsSetupHelper[_0x401d56(0x1c8)](),'language':_0x7082b8['JWIkF'],'testFramework':bsSetupHelper[_0x401d56(0x1cd)](_0x7631bd,_0x42a1b8)};return process[_0x401d56(0x185)][_0x401d56(0x203)]=JSON['stringify'](_0x5ad6f7),_0x5ad6f7;},exports['setPercyFlag']=_0x4c8135=>{const _0x424886=a140_0x327181,_0x5a2a81={};_0x5a2a81[_0x424886(0x17d)]=_0x424886(0x1a6),_0x5a2a81[_0x424886(0x16d)]=_0x424886(0x1d8);const _0x447e5c=_0x5a2a81;process[_0x424886(0x185)]['BROWSERSTACK_PERCY']=_0x447e5c[_0x424886(0x17d)],bsSetupHelper[_0x424886(0x194)](_0x4c8135[_0x424886(0x182)][_0x424886(0x1a0)])&&(!_0x4c8135[_0x424886(0x1a0)]||!_0x4c8135[_0x424886(0x1a0)]['isRunning']())&&(process[_0x424886(0x185)][_0x424886(0x20c)]=_0x447e5c['fomcP']);},exports[a140_0x327181(0x1a2)]=()=>{const _0x568bd6=a140_0x327181;return bsSetupHelper[_0x568bd6(0x194)](process[_0x568bd6(0x185)]['BROWSERSTACK_PERCY']);},exports[a140_0x327181(0x1c6)]=(_0x14ac07={})=>{const _0x1bb198=a140_0x327181,_0x5571b0={};_0x5571b0[_0x1bb198(0x20f)]=function(_0x17e39f,_0x30c155){return _0x17e39f!==_0x30c155;},_0x5571b0['zBTMO']=function(_0x34afc6,_0x4c35f6){return _0x34afc6===_0x4c35f6;},_0x5571b0[_0x1bb198(0x172)]='true',_0x5571b0['nGRyM']=function(_0x393ded,_0x3a2245){return _0x393ded>_0x3a2245;};const _0x3caaad=_0x5571b0;if(_0x3caaad[_0x1bb198(0x20f)](process[_0x1bb198(0x185)]['BROWSERSTACK_ACCESSIBILITY'],undefined))return bsSetupHelper[_0x1bb198(0x194)](process[_0x1bb198(0x185)][_0x1bb198(0x16c)]);let _0x380d34=_0x3caaad[_0x1bb198(0x216)](process[_0x1bb198(0x185)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x3caaad[_0x1bb198(0x172)]);return _0x3caaad[_0x1bb198(0x211)](Object[_0x1bb198(0x1cf)](_0x14ac07)[_0x1bb198(0x189)],0x0)&&(process[_0x1bb198(0x185)][_0x1bb198(0x1ff)]=accessibilityHelper['checkAccessibilityPlatformConfig'](_0x14ac07)),_0x380d34=_0x380d34||_0x3caaad[_0x1bb198(0x216)](process[_0x1bb198(0x185)][_0x1bb198(0x1ff)],_0x3caaad[_0x1bb198(0x172)]),_0x380d34;},exports['setTestObservabilityVariables']=(_0x26456d,_0x2a1c66)=>{const _0x196663=a140_0x327181,_0x48382d={'esEaA':function(_0xe1b4af){return _0xe1b4af();},'opxcs':_0x196663(0x21b),'MTqiu':_0x196663(0x1d8),'MRrVh':function(_0x3870cb,_0x3352ca,_0x50994d){return _0x3870cb(_0x3352ca,_0x50994d);},'NXCdI':_0x196663(0x186),'ejVkt':_0x196663(0x19d)};if(!_0x26456d||!_0x26456d[_0x196663(0x186)])return exports['handleErrorForObservability'](),[null,null,null];if(!_0x26456d['observability'][_0x196663(0x195)])return exports['handleErrorForObservability'](_0x26456d[_0x196663(0x186)]),[null,null,null];if(_0x48382d[_0x196663(0x1d4)](isTestObservabilitySession)){const _0x3b91eb=_0x48382d[_0x196663(0x1fb)][_0x196663(0x1a9)]('|');let _0x58f5f0=0x0;while(!![]){switch(_0x3b91eb[_0x58f5f0++]){case'0':logger[_0x196663(0x1b5)]('['+constants['TEST_REPORTING_ANALYTICS']+_0x196663(0x1da)+_0x26456d[_0x196663(0x18f)]);continue;case'1':process['env'][_0x196663(0x1bb)]=_0x48382d['MTqiu'];continue;case'2':_0x48382d[_0x196663(0x1d3)](nestedKeyValue,_0x26456d,[_0x48382d[_0x196663(0x1c9)],_0x48382d[_0x196663(0x183)]])&&(process['env'][_0x196663(0x17f)]=_0x26456d['observability'][_0x196663(0x19d)][_0x196663(0x1ec)][_0x196663(0x207)]());continue;case'3':if(_0x26456d[_0x196663(0x205)]){process[_0x196663(0x185)][_0x196663(0x20a)]=_0x26456d[_0x196663(0x205)];const _0x5ece08={};_0x5ece08[_0x196663(0x1d5)]=_0x2a1c66[_0x196663(0x1d5)],_0x5ece08[_0x196663(0x17c)]=_0x2a1c66[_0x196663(0x17c)],process[_0x196663(0x185)]['CREDENTIALS_FOR_CRASH_REPORTING']=JSON[_0x196663(0x1e3)](_0x5ece08);}continue;case'4':return[_0x26456d[_0x196663(0x205)],_0x26456d[_0x196663(0x18f)],process[_0x196663(0x185)][_0x196663(0x17f)]];case'5':_0x26456d[_0x196663(0x18f)]&&(process['env']['BS_TESTOPS_BUILD_HASHED_ID']=_0x26456d[_0x196663(0x18f)]);continue;}break;}}return[null,null,null];},exports[a140_0x327181(0x21c)]=_0x34e415=>{const _0x2b1623=a140_0x327181,_0x17c42a={'WwcJX':function(_0x6a405,_0x12804e,_0x49249b){return _0x6a405(_0x12804e,_0x49249b);},'ITzQf':_0x2b1623(0x19c),'ALAVu':_0x2b1623(0x19d),'sHJrl':function(_0xec60ca,_0x4fafc6,_0x1af46e,_0xc24a02){return _0xec60ca(_0x4fafc6,_0x1af46e,_0xc24a02);},'KXXVE':_0x2b1623(0x1dc),'AXLRs':_0x2b1623(0x1a7),'amxjr':'command','JAnKN':_0x2b1623(0x209),'bDhTA':function(_0x133cc0,_0x2c66c4,_0x3e93ce,_0x293a91){return _0x133cc0(_0x2c66c4,_0x3e93ce,_0x293a91);},'nsFDR':'nonBStackInfraA11yChromeOptions','HLShH':_0x2b1623(0x196)};if(!_0x34e415[_0x2b1623(0x19c)])return exports['handleErrorForAccessibility'](),[null,null];if(!_0x34e415[_0x2b1623(0x19c)][_0x2b1623(0x195)])return exports[_0x2b1623(0x173)](_0x34e415[_0x2b1623(0x19c)]),[null,null];if(_0x17c42a['WwcJX'](nestedKeyValue,_0x34e415,[_0x17c42a[_0x2b1623(0x1c3)],_0x17c42a[_0x2b1623(0x1eb)]])){const {accessibilityToken:_0xca66f,scannerVersion:_0x1fca7f,scannerProcessingTimeout:_0x229bbd}=_0x17c42a[_0x2b1623(0x1c1)](jsonifyAccessibilityArray,_0x34e415[_0x2b1623(0x19c)][_0x2b1623(0x19d)][_0x2b1623(0x1e8)],_0x17c42a[_0x2b1623(0x1b6)],_0x17c42a[_0x2b1623(0x1be)]),_0x47e492={'scripts':_0x17c42a[_0x2b1623(0x1c1)](jsonifyAccessibilityArray,_0x34e415[_0x2b1623(0x19c)][_0x2b1623(0x19d)][_0x2b1623(0x1cc)],_0x17c42a[_0x2b1623(0x1b6)],_0x17c42a[_0x2b1623(0x17a)])};_0x47e492[_0x17c42a[_0x2b1623(0x1e6)]]=_0x34e415[_0x2b1623(0x19c)][_0x2b1623(0x19d)]['commandsToWrap']['commands'];const _0x916c7c=_0x17c42a['bDhTA'](jsonifyAccessibilityArray,_0x34e415[_0x2b1623(0x19c)][_0x2b1623(0x19d)][_0x2b1623(0x1e8)],_0x17c42a[_0x2b1623(0x1b6)],_0x17c42a[_0x2b1623(0x1be)]);_0x47e492[_0x17c42a[_0x2b1623(0x1e4)]]=_0x916c7c[_0x17c42a[_0x2b1623(0x1ea)]],scripts[_0x2b1623(0x1af)](_0x47e492),scripts[_0x2b1623(0x1b8)]();let _0x270574=process[_0x2b1623(0x185)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'];return _0x270574=!!_0x270574?JSON[_0x2b1623(0x21e)](_0x270574):{},_0x270574[_0x2b1623(0x1d1)]=_0x1fca7f,process[_0x2b1623(0x185)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON['stringify'](_0x270574),process[_0x2b1623(0x185)][_0x2b1623(0x1f9)]=_0xca66f,logger[_0x2b1623(0x1b5)](_0x2b1623(0x1a8)+_0x34e415[_0x2b1623(0x18f)]),[_0xca66f,_0x34e415[_0x2b1623(0x18f)],_0x229bbd];}return[null,null];},exports[a140_0x327181(0x177)]=_0x133020=>{const _0x93904d=a140_0x327181,_0x471313={};_0x471313[_0x93904d(0x181)]='1|3|4|5|6|2|0',_0x471313[_0x93904d(0x202)]=_0x93904d(0x1fc),_0x471313[_0x93904d(0x18a)]=_0x93904d(0x1a6);const _0x3e0218=_0x471313,_0x5af0bd=_0x3e0218[_0x93904d(0x181)][_0x93904d(0x1a9)]('|');let _0x4964a0=0x0;while(!![]){switch(_0x5af0bd[_0x4964a0++]){case'0':exports[_0x93904d(0x212)](_0x133020,testHubConstants['OBSERVABILITY']);continue;case'1':process['env']['BROWSERSTACK_TESTHUB_UUID']=_0x3e0218[_0x93904d(0x202)];continue;case'2':process[_0x93904d(0x185)][_0x93904d(0x17f)]=_0x3e0218[_0x93904d(0x202)];continue;case'3':process[_0x93904d(0x185)]['BROWSERSTACK_TESTHUB_JWT']=_0x3e0218[_0x93904d(0x202)];continue;case'4':process['env'][_0x93904d(0x1bb)]=_0x3e0218[_0x93904d(0x18a)];continue;case'5':process[_0x93904d(0x185)][_0x93904d(0x20a)]=_0x3e0218[_0x93904d(0x202)];continue;case'6':process[_0x93904d(0x185)][_0x93904d(0x1c4)]=_0x3e0218[_0x93904d(0x202)];continue;}break;}},exports['handleErrorForAccessibility']=_0x219e5c=>{const _0x562c89=a140_0x327181,_0x185ab2={};_0x185ab2[_0x562c89(0x200)]=_0x562c89(0x214),_0x185ab2[_0x562c89(0x1e7)]=_0x562c89(0x1a6),_0x185ab2['AJBQh']=_0x562c89(0x1fc);const _0x5bc06c=_0x185ab2,_0x3e6bad=_0x5bc06c[_0x562c89(0x200)][_0x562c89(0x1a9)]('|');let _0x327c7e=0x0;while(!![]){switch(_0x3e6bad[_0x327c7e++]){case'0':process[_0x562c89(0x185)][_0x562c89(0x1ff)]=_0x5bc06c[_0x562c89(0x1e7)];continue;case'1':process['env'][_0x562c89(0x1bf)]=_0x5bc06c[_0x562c89(0x18e)];continue;case'2':exports['logBuildError'](_0x219e5c,testHubConstants['ACCESSIBILITY']);continue;case'3':process['env'][_0x562c89(0x184)]=_0x5bc06c['HQRaJ'];continue;case'4':process[_0x562c89(0x185)][_0x562c89(0x1a1)]=_0x5bc06c[_0x562c89(0x18e)];continue;}break;}},exports[a140_0x327181(0x212)]=(_0x361bec,_0x34d282='')=>{const _0x40bbd6=a140_0x327181,_0x51e35b={};_0x51e35b['IiQXL']=function(_0x37136b,_0x1344a0){return _0x37136b===_0x1344a0;};const _0x4a7128=_0x51e35b;if(_0x4a7128['IiQXL'](_0x361bec,undefined)){logger[_0x40bbd6(0x1ba)](_0x34d282[_0x40bbd6(0x1b0)]()+_0x40bbd6(0x1f5));return;}for(const _0x26a7bc of _0x361bec['errors']){const _0x2ac1c4=_0x26a7bc[_0x40bbd6(0x1e0)],_0x246a3a=_0x26a7bc['message'];if(_0x246a3a)switch(_0x2ac1c4){case testHubConstants['ERROR'][_0x40bbd6(0x1f3)]:logger['error'](_0x246a3a);break;case testHubConstants[_0x40bbd6(0x190)]['ACCESS_DENIED']:logger[_0x40bbd6(0x1b9)](_0x246a3a);break;case testHubConstants[_0x40bbd6(0x190)][_0x40bbd6(0x1c0)]:logger[_0x40bbd6(0x1ba)](_0x246a3a);break;default:logger['error'](_0x246a3a);}}};const jsonifyAccessibilityArray=(_0x36366b,_0x15e20c,_0x5ce8a3)=>{const _0x5ce4c2=a140_0x327181,_0x4d77aa={};return _0x36366b[_0x5ce4c2(0x1b2)](_0x4640a0=>{_0x4d77aa[_0x4640a0[_0x15e20c]]=_0x4640a0[_0x5ce8a3];}),_0x4d77aa;};exports[a140_0x327181(0x208)]=_0xea5779=>{const _0x961515=a140_0x327181;_0xea5779[_0x961515(0x205)]&&(process[_0x961515(0x185)]['BROWSERSTACK_TESTHUB_JWT']=_0xea5779['jwt']);_0xea5779[_0x961515(0x18f)]&&(process[_0x961515(0x185)][_0x961515(0x1a1)]=_0xea5779['build_hashed_id'],logger[_0x961515(0x1b5)](_0x961515(0x1d2)+_0xea5779[_0x961515(0x18f)]));;},exports['shouldProcessEventForTesthub']=(_0x519b32='',_0x98fd8e='')=>{const _0x4c3353=a140_0x327181,_0x47883b={'ulvUD':function(_0x2bff1f){return _0x2bff1f();},'gFTvx':function(_0x41179b,_0x4b569d){return _0x41179b===_0x4b569d;},'QUSsF':_0x4c3353(0x1f4),'NNTxb':_0x4c3353(0x1de),'MfPyB':_0x4c3353(0x1bc),'JpKZN':function(_0x4d13c2){return _0x4d13c2();},'lzBjg':_0x4c3353(0x1c5),'jujvt':'HookRunFinished'};if(exports[_0x4c3353(0x1a2)]()&&!exports[_0x4c3353(0x1c6)]()&&!_0x47883b[_0x4c3353(0x1b3)](isTestObservabilitySession)){if(_0x47883b['gFTvx'](_0x98fd8e,_0x47883b[_0x4c3353(0x1ae)]))return![];if([_0x47883b['NNTxb'],_0x47883b[_0x4c3353(0x1ca)]][_0x4c3353(0x16f)](_0x519b32))return![];return!![];}if(exports[_0x4c3353(0x1c6)]()&&!_0x47883b[_0x4c3353(0x1d6)](isTestObservabilitySession)){if([_0x47883b[_0x4c3353(0x1ac)],_0x47883b[_0x4c3353(0x171)],_0x47883b[_0x4c3353(0x1f7)]]['includes'](_0x519b32))return![];return!![];}return exports[_0x4c3353(0x1c6)]()||_0x47883b['JpKZN'](isTestObservabilitySession)||exports[_0x4c3353(0x1a2)]();},exports['appendTesthubParams']=(_0x234b1d,_0xb0fb81,_0x1d7470='',_0xdb8d52)=>{const _0x13e84f=a140_0x327181,_0x1e8d77={};_0x1e8d77[_0x13e84f(0x1bd)]=_0x13e84f(0x1c5),_0x1e8d77[_0x13e84f(0x19a)]=_0x13e84f(0x187),_0x1e8d77[_0x13e84f(0x1a4)]=function(_0x23384d,_0x1e8909){return _0x23384d===_0x1e8909;},_0x1e8d77['LZnqQ']=_0x13e84f(0x20b),_0x1e8d77[_0x13e84f(0x192)]='isAccessibilityPlatform',_0x1e8d77['BEUFk']=_0x13e84f(0x19c),_0x1e8d77[_0x13e84f(0x1ee)]=function(_0x2d6055,_0x243fb2){return _0x2d6055&&_0x243fb2;},_0x1e8d77['qsfdq']=function(_0x402239,_0x43a730){return _0x402239+_0x43a730;},_0x1e8d77[_0x13e84f(0x1ad)]=function(_0x33b5c1,_0x5ace4e){return _0x33b5c1===_0x5ace4e;},_0x1e8d77[_0x13e84f(0x1b7)]=function(_0x4920f7,_0x42c288){return _0x4920f7===_0x42c288;},_0x1e8d77['gjsBG']=_0x13e84f(0x1fa),_0x1e8d77[_0x13e84f(0x188)]=function(_0x9878d3,_0x342c41){return _0x9878d3===_0x342c41;},_0x1e8d77[_0x13e84f(0x170)]=function(_0xf30216,_0x2cfd46){return _0xf30216&&_0x2cfd46;},_0x1e8d77[_0x13e84f(0x215)]=function(_0x3aafae,_0x3abaa8){return _0x3aafae===_0x3abaa8;},_0x1e8d77[_0x13e84f(0x176)]=_0x13e84f(0x180);const _0x2ff9bf=_0x1e8d77;if(![_0x2ff9bf['vOBwo'],_0x2ff9bf[_0x13e84f(0x19a)]]['includes'](_0xb0fb81)&&exports[_0x13e84f(0x1c6)]()){const _0x3eb4b3={};if(_0x2ff9bf['eepDl'](_0xdb8d52,FRAMEWORKS[_0x13e84f(0x1e2)])){const _0x3dbc94=globals[_0x13e84f(0x19f)](_0x2ff9bf[_0x13e84f(0x19e)])||accessibilityHelper['shouldScanTestForAccessibility'](_0x1d7470['titlePath'](),!![]),_0xc7ce56=globals[_0x13e84f(0x19f)](_0x2ff9bf[_0x13e84f(0x192)]);_0x3eb4b3[_0x2ff9bf[_0x13e84f(0x1e9)]]=_0x2ff9bf[_0x13e84f(0x1ee)](_0xc7ce56,_0x3dbc94);}if(_0x2ff9bf[_0x13e84f(0x1a4)](_0xdb8d52,FRAMEWORKS[_0x13e84f(0x179)])){const _0xd3cdb2=_0x2ff9bf[_0x13e84f(0x16b)](_0x2ff9bf[_0x13e84f(0x16b)](_0x234b1d[_0x13e84f(0x1cb)][_0x13e84f(0x17e)]('\x20'),'\x20'),_0x1d7470[_0x13e84f(0x1dc)]),_0x87b757=globals[_0x13e84f(0x19f)](_0x2ff9bf[_0x13e84f(0x19e)])||accessibilityHelper[_0x13e84f(0x204)](_0xd3cdb2,![]),_0x328a9e=browserStackGlobals[_0x13e84f(0x16a)];_0x3eb4b3[_0x2ff9bf[_0x13e84f(0x1e9)]]=_0x2ff9bf[_0x13e84f(0x1ee)](_0x328a9e,_0x87b757);}if(_0x2ff9bf[_0x13e84f(0x1ad)](_0xdb8d52,FRAMEWORKS[_0x13e84f(0x1f6)])){if(_0x2ff9bf[_0x13e84f(0x1b7)](_0xb0fb81,_0x2ff9bf[_0x13e84f(0x1fd)]))return;_0x3eb4b3[_0x2ff9bf[_0x13e84f(0x1e9)]]=PWTestDetails[_0x13e84f(0x218)](_0x234b1d[_0x13e84f(0x1c7)]);}if(_0x2ff9bf['Xqrit'](_0xdb8d52,FRAMEWORKS[_0x13e84f(0x19b)])){const _0x415071=accessibilityHelper[_0x13e84f(0x204)](_0x1d7470[_0x13e84f(0x18d)](),!![]),_0xd80447=global[_0x13e84f(0x191)];_0x3eb4b3[_0x2ff9bf[_0x13e84f(0x1e9)]]=_0x2ff9bf['Eitng'](_0xd80447,_0x415071);}if(_0x2ff9bf['SOKOC'](_0xdb8d52,FRAMEWORKS['CUCUMBER'])){const _0x3e0f0f=accessibilityHelper[_0x13e84f(0x204)](null,![],_0x234b1d[_0x13e84f(0x175)]),_0x59111b=globals[_0x13e84f(0x19f)](_0x2ff9bf[_0x13e84f(0x192)]);_0x3eb4b3[_0x2ff9bf[_0x13e84f(0x1e9)]]=_0x2ff9bf['Eitng'](_0x59111b,_0x3e0f0f);}_0x234b1d[_0x2ff9bf['feGfc']]=_0x3eb4b3;}},exports[a140_0x327181(0x1b1)]=_0x5a3fef=>{const _0x3a4be8=a140_0x327181,_0x39e7a5={};_0x39e7a5[_0x3a4be8(0x213)]=function(_0x217669,_0x18358d){return _0x217669>_0x18358d;};const _0x3ef579=_0x39e7a5;let _0x38222b={};if(_0x3ef579[_0x3a4be8(0x213)](Object['keys'](testData)['length'],0x0))return testData;_0x38222b=JestTestDetails['getTestData']();if(_0x3ef579[_0x3a4be8(0x213)](Object[_0x3a4be8(0x1cf)](_0x38222b)[_0x3a4be8(0x189)],0x0))return _0x38222b;return _0x38222b;},exports[a140_0x327181(0x16e)]=(_0x344e55,_0x1fa096={})=>{const _0x1acc21=a140_0x327181;if(bsSetupHelper[_0x1acc21(0x199)](_0x1fa096['test_run']))return;switch(_0x344e55){case FRAMEWORKS[_0x1acc21(0x1e2)]:testData=_0x1fa096['test_run'];break;case FRAMEWORKS[_0x1acc21(0x179)]:JestTestDetails[_0x1acc21(0x1d9)](_0x1fa096[_0x1acc21(0x217)]);break;default:break;}},exports['getAccessibilityValueFromYml']=_0x5d7817=>{const _0x216083=a140_0x327181,_0x46d560={};_0x46d560[_0x216083(0x1db)]=function(_0x114cab,_0x216398){return _0x114cab!==_0x216398;},_0x46d560[_0x216083(0x20e)]=function(_0x280b71,_0x405e59){return _0x280b71!==_0x405e59;},_0x46d560[_0x216083(0x18c)]=function(_0xc866ed,_0x1b78c9){return _0xc866ed!==_0x1b78c9;};const _0x5cd832=_0x46d560;if(_0x5cd832[_0x216083(0x1db)](_0x5d7817[_0x216083(0x19c)],null)&&_0x5cd832[_0x216083(0x1db)](_0x5d7817[_0x216083(0x19c)],undefined))return _0x5d7817[_0x216083(0x19c)];let _0x2e2edb=![],_0x374e15=![];if(_0x5d7817[_0x216083(0x1ab)])for(const _0x12496f of _0x5d7817['platforms']){_0x5cd832[_0x216083(0x20e)](_0x12496f[_0x216083(0x19c)],null)&&_0x5cd832[_0x216083(0x18c)](_0x12496f[_0x216083(0x19c)],undefined)&&(_0x2e2edb=_0x2e2edb||bsSetupHelper[_0x216083(0x194)](_0x12496f['accessibility']),_0x374e15=!![]);}if(_0x374e15)return _0x2e2edb;return null;},exports[a140_0x327181(0x18b)]=_0x32d271=>{const _0xae0e9b=new OrchestrationUtils(_0x32d271);return _0xae0e9b['getBuildStartData']();},exports[a140_0x327181(0x1f8)]=_0xfae0b=>{const _0x15e33a=a140_0x327181,_0x3b5f28={'FEsYO':function(_0xcd2ec4){return _0xcd2ec4();}};let _0x2b0297=![],_0x336a4a=![];if(bsSetupHelper[_0x15e33a(0x1ed)]()&&_0xfae0b[_0x15e33a(0x1aa)])_0x336a4a=!![];else bsSetupHelper[_0x15e33a(0x1ed)]()&&(_0x2b0297=!![]);return Object[_0x15e33a(0x174)]({'observability':_0x3b5f28[_0x15e33a(0x1d0)](isTestObservabilitySession),'accessibility':exports['getAccessibilityValueFromYml'](_0xfae0b),'percy':_0xfae0b[_0x15e33a(0x1a0)]||![],'automate':_0x2b0297,'app_automate':_0x336a4a,'turboscale':bsSetupHelper[_0x15e33a(0x1d7)](_0xfae0b),'lts':LoadTestModule[_0x15e33a(0x198)](_0xfae0b)},bsSetupHelper[_0x15e33a(0x197)]());};function a140_0x5aba(){const _0x1a06d7=['assign','tags','feGfc','handleErrorForObservability','nwced','JEST','amxjr','566291PqRren','password','mNRvi','join','BS_TESTOPS_ALLOW_SCREENSHOTS','product_map','CbkJC','config','ejVkt','BROWSERSTACK_TEST_ACCESSIBILITY_YML','env','observability','HookRunFinished','Xqrit','length','edXxO','getTestOrchestrationBuildStartData','DzidJ','titlePath','AJBQh','build_hashed_id','ERROR','accessibilityPlatform','wQXmW','../ats/helper','isTrue','success','goog:chromeOptions','getCentralUser','isLTSSession','isUndefined','zNKAd','CODECEPT','accessibility','options','LZnqQ','getGlobal','percy','BROWSERSTACK_TESTHUB_UUID','isPercyBuild','10Bownth','eepDl','../test-orchestration/orchestrationUtils.js','false','value','[ACCESSIBILITY]\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20','split','app','platforms','lzBjg','AdDgS','QUSsF','parseFromJson','toUpperCase','getCurrentTestData','forEach','ulvUD','4UdAoTC','debug','KXXVE','XvfUF','toJson','info','error','BS_TESTOPS_BUILD_COMPLETED','CBTSessionCreated','vOBwo','AXLRs','BROWSERSTACK_TESTHUB_JWT','DEPRECATED','sHJrl','../test-observability/utils','ITzQf','BS_TESTOPS_BUILD_HASHED_ID','HookRunStarted','isAccessibilityEnabled','uuid','getAgentVersion','NXCdI','MfPyB','scopes','scripts','getTestFrameworkDetails','8074FExbLk','keys','FEsYO','scannerVersion','BROWSERSTACK_TESTHUB_UUID:\x20','MRrVh','esEaA','username','JpKZN','isTurboScaleSession','true','setTestData',']\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20','AqwcO','name','../logger','LogCreated','372459pQlvnI','key','43NINloi','MOCHA','stringify','nsFDR','RykkR','JAnKN','HQRaJ','capabilities','BEUFk','HLShH','ALAVu','allow_screenshots','isBrowserstackInfra','HBmNg','../helper','../../bin/v2/modules/loadTestModule','2134362alLvdU','12345120elyDkM','INVALID_CREDENTIALS','uploadEventData','\x20Build\x20creation\x20failed','PLAYWRIGHT','NNTxb','getProductMapForBuildStartCall','BS_A11Y_JWT','TestRunStarted','opxcs','null','gjsBG','5yhHmVf','BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM','mTsWH','javascript','McOid','FRAMEWORK_DETAILS','shouldScanTestForAccessibility','jwt','8csNCFy','toString','setTestHubCommonMetaInfo','commands','BS_TESTOPS_JWT','bstackA11yShouldScan','BROWSERSTACK_PERCY','../accessibility-automation/helper','khIKR','kPJIz','3397986fsjouQ','nGRyM','logBuildError','glMCK','4|1|3|0|2','SOKOC','zBTMO','test_run','getAccessibilityPlatformValidation','../helper.js','../../bin/playwright/reporter/test-details.js','1|3|5|2|0|4','setAccessibilityVariables','531503OgejBH','parse','../../bin/jest/test-observability/test-details.js','isAccessibilityPlatform','qsfdq','BROWSERSTACK_ACCESSIBILITY','fomcP','setCurrentTestData','includes','Eitng','jujvt','Lykpy','handleErrorForAccessibility'];a140_0x5aba=function(){return _0x1a06d7;};return a140_0x5aba();}
@@ -1 +1 @@
1
- (function(_0x5e953a,_0x5b4022){const _0x3643ff=a141_0x21f5,_0x2b2495=_0x5e953a();while(!![]){try{const _0x467c97=parseInt(_0x3643ff(0x1c4))/0x1*(parseInt(_0x3643ff(0x1b7))/0x2)+-parseInt(_0x3643ff(0x1bb))/0x3*(-parseInt(_0x3643ff(0x1b8))/0x4)+parseInt(_0x3643ff(0x1c5))/0x5+parseInt(_0x3643ff(0x1be))/0x6*(parseInt(_0x3643ff(0x1c2))/0x7)+-parseInt(_0x3643ff(0x1b9))/0x8+-parseInt(_0x3643ff(0x1ba))/0x9*(parseInt(_0x3643ff(0x1c3))/0xa)+-parseInt(_0x3643ff(0x1bc))/0xb*(-parseInt(_0x3643ff(0x1c0))/0xc);if(_0x467c97===_0x5b4022)break;else _0x2b2495['push'](_0x2b2495['shift']());}catch(_0x24ca3a){_0x2b2495['push'](_0x2b2495['shift']());}}}(a141_0x4d17,0x77454));const utilities=require('./utilities');module['exports']=(_0x2f3ca5,_0x2e4976,_0x370f8a,_0x4338ac,_0x513b0d,_0x47e367)=>{const _0x400fca={'hazzK':function(_0x570fb9,_0x4205ae){return _0x570fb9-_0x4205ae;},'eWksv':function(_0x126dbe,_0x253d76){return _0x126dbe(_0x253d76);},'EedXb':function(_0x17f123,_0x88a670,_0x45cb5d){return _0x17f123(_0x88a670,_0x45cb5d);}};let _0x1da500,_0x4360eb=![];const _0x5e6a1e=new Promise((_0x404ace,_0x4d462f)=>{const _0x1e8ce=a141_0x21f5,_0x506042={'IOnjl':function(_0x5d63c2,_0x597784){const _0x3acf8e=a141_0x21f5;return _0x400fca[_0x3acf8e(0x1b4)](_0x5d63c2,_0x597784);},'QsNmK':function(_0xde09b6,_0x41a6be){const _0x4e2651=a141_0x21f5;return _0x400fca[_0x4e2651(0x1bd)](_0xde09b6,_0x41a6be);}};_0x1da500=_0x400fca[_0x1e8ce(0x1b5)](setTimeout,()=>{const _0x34e9b7=_0x1e8ce;if(!_0x4360eb){const _0x56ce1e={'status':''+_0x2e4976,'timeTaken':_0x506042[_0x34e9b7(0x1bf)](new Date(),_0x4338ac)};utilities[_0x34e9b7(0x1c1)](_0x370f8a,_0x56ce1e,_0x513b0d,_0x47e367),_0x506042[_0x34e9b7(0x1b6)](_0x4d462f,new Error(_0x2e4976));}},_0x2f3ca5);});return _0x5e6a1e['cancel']=()=>{const _0xb0ba18=a141_0x21f5;_0x4360eb=!![],_0x400fca[_0xb0ba18(0x1bd)](clearTimeout,_0x1da500);},_0x5e6a1e;};function a141_0x21f5(_0x4a8651,_0x1e64b4){const _0x4d17fb=a141_0x4d17();return a141_0x21f5=function(_0x21f576,_0x23d82a){_0x21f576=_0x21f576-0x1b4;let _0x4c0140=_0x4d17fb[_0x21f576];return _0x4c0140;},a141_0x21f5(_0x4a8651,_0x1e64b4);}function a141_0x4d17(){const _0x19aeca=['156bkIXZh','fireFunnelTestEvent','7Rokcom','789790aOHrGd','4058KtncKL','240035lLZcoK','hazzK','EedXb','QsNmK','226HvoGgm','509776mFXrUq','2132032LKfgVM','99gpgXvq','15HbopiJ','216854IBAaCC','eWksv','1342452tjiYiv','IOnjl'];a141_0x4d17=function(){return _0x19aeca;};return a141_0x4d17();}
1
+ function a141_0x33b3(_0x37c622,_0x3035f6){const _0x459e8e=a141_0x459e();return a141_0x33b3=function(_0x33b3c0,_0x3d30f6){_0x33b3c0=_0x33b3c0-0xb3;let _0xf0a7c1=_0x459e8e[_0x33b3c0];return _0xf0a7c1;},a141_0x33b3(_0x37c622,_0x3035f6);}const a141_0x1e0087=a141_0x33b3;function a141_0x459e(){const _0x3c6042=['121BeRJBH','369818fMczuj','12IHSfZQ','1515166IwUiOI','vTXpi','fpQNj','SCiTx','2776390YnCNPZ','124MsDQmA','cancel','33207eWcRhw','JYMyr','6078159RGWWXH','xmvGp','8menpFC','./utilities','6736534tiNrOe','2114980EJpJXB'];a141_0x459e=function(){return _0x3c6042;};return a141_0x459e();}(function(_0x41e58a,_0x1feeec){const _0x22d278=a141_0x33b3,_0x15b055=_0x41e58a();while(!![]){try{const _0x290593=parseInt(_0x22d278(0xb6))/0x1+-parseInt(_0x22d278(0xb8))/0x2+parseInt(_0x22d278(0xbf))/0x3*(parseInt(_0x22d278(0xbd))/0x4)+-parseInt(_0x22d278(0xb4))/0x5*(parseInt(_0x22d278(0xb7))/0x6)+-parseInt(_0x22d278(0xb3))/0x7+-parseInt(_0x22d278(0xc3))/0x8*(parseInt(_0x22d278(0xc1))/0x9)+parseInt(_0x22d278(0xbc))/0xa*(parseInt(_0x22d278(0xb5))/0xb);if(_0x290593===_0x1feeec)break;else _0x15b055['push'](_0x15b055['shift']());}catch(_0x2aade6){_0x15b055['push'](_0x15b055['shift']());}}}(a141_0x459e,0x80582));const utilities=require(a141_0x1e0087(0xc4));module['exports']=(_0x380c8a,_0x39ee8f,_0x364c2e,_0x443e94,_0x54b6f7,_0x3a31df)=>{const _0x2d09e0=a141_0x1e0087,_0x24b4ab={'JYMyr':function(_0x430826,_0x193d2a){return _0x430826-_0x193d2a;},'cPiNr':function(_0x542c15,_0x579bc3){return _0x542c15(_0x579bc3);},'fpQNj':function(_0x3a8378,_0x482c57,_0x4c698a){return _0x3a8378(_0x482c57,_0x4c698a);},'SCiTx':function(_0x526b35,_0x384ac6){return _0x526b35(_0x384ac6);}};let _0x147806,_0x20add5=![];const _0x1a5371=new Promise((_0x40333b,_0x2afe19)=>{const _0x34e71f=a141_0x33b3,_0x2fd59c={'xmvGp':function(_0x3cd32c,_0x5a1551){const _0x7b1825=a141_0x33b3;return _0x24b4ab[_0x7b1825(0xc0)](_0x3cd32c,_0x5a1551);},'vTXpi':function(_0x522468,_0x40cfc8){return _0x24b4ab['cPiNr'](_0x522468,_0x40cfc8);}};_0x147806=_0x24b4ab[_0x34e71f(0xba)](setTimeout,()=>{const _0x5ee0f4=_0x34e71f;if(!_0x20add5){const _0x8949ba={'status':''+_0x39ee8f,'timeTaken':_0x2fd59c[_0x5ee0f4(0xc2)](new Date(),_0x443e94)};utilities['fireFunnelTestEvent'](_0x364c2e,_0x8949ba,_0x54b6f7,_0x3a31df),_0x2fd59c[_0x5ee0f4(0xb9)](_0x2afe19,new Error(_0x39ee8f));}},_0x380c8a);});return _0x1a5371[_0x2d09e0(0xbe)]=()=>{const _0x25ce12=_0x2d09e0;_0x20add5=!![],_0x24b4ab[_0x25ce12(0xbb)](clearTimeout,_0x147806);},_0x1a5371;};
@@ -1 +1 @@
1
- const a142_0x47a621=a142_0x49ab;(function(_0x5f09f6,_0x54b587){const _0x49f017=a142_0x49ab,_0x138e4a=_0x5f09f6();while(!![]){try{const _0x5b276e=-parseInt(_0x49f017(0x74))/0x1*(-parseInt(_0x49f017(0x80))/0x2)+-parseInt(_0x49f017(0xf0))/0x3+-parseInt(_0x49f017(0xd0))/0x4+-parseInt(_0x49f017(0xac))/0x5+-parseInt(_0x49f017(0xbd))/0x6*(parseInt(_0x49f017(0xa0))/0x7)+parseInt(_0x49f017(0xaa))/0x8+-parseInt(_0x49f017(0xdc))/0x9*(-parseInt(_0x49f017(0xba))/0xa);if(_0x5b276e===_0x54b587)break;else _0x138e4a['push'](_0x138e4a['shift']());}catch(_0x435a39){_0x138e4a['push'](_0x138e4a['shift']());}}}(a142_0xbc37,0x4558b));const os=require('os'),util=require('util'),fs=require('fs'),{getProductMap}=require(a142_0x47a621(0x76)),logger=require(a142_0x47a621(0xde))[a142_0x47a621(0x97)],constants=require(a142_0x47a621(0xe4)),testHubConstants=require(a142_0x47a621(0xca)),{getTransformPath}=require('../bin/playwright/reporter/pwUtils'),{FUNNEL_INSTRUMENTATION_API_URL}=require('../bin/utils/constants'),{generateCIArtifacts,printNudgeLocalNotSetError}=require(a142_0x47a621(0xe9)),PerformanceTester=require(a142_0x47a621(0xd2)),globals=require(a142_0x47a621(0x87)),helper=require(a142_0x47a621(0xe9)),{isTestObservabilitySession}=require(a142_0x47a621(0x99));let unhandledErrors='';function a142_0x49ab(_0x289d28,_0x239772){const _0xbc3738=a142_0xbc37();return a142_0x49ab=function(_0x49ab10,_0x228602){_0x49ab10=_0x49ab10-0x6c;let _0x250c9c=_0xbc3738[_0x49ab10];return _0x250c9c;},a142_0x49ab(_0x289d28,_0x239772);}exports[a142_0x47a621(0x78)]=async(_0x5cf8af,_0x4ded08={},_0x475119,_0x524d90,_0x5c37e5=![])=>{const _0x15b625=a142_0x47a621,_0x192c66={'nRpMk':function(_0x3d1a47,_0x422401){return _0x3d1a47===_0x422401;},'aElMW':_0x15b625(0xef),'FnScB':function(_0x10d3c3,_0xd39b14){return _0x10d3c3>_0xd39b14;},'QqEDV':function(_0x4d9aac,_0xc2f525){return _0x4d9aac>_0xc2f525;},'kyOcP':_0x15b625(0xae),'GKCKP':function(_0x39b553){return _0x39b553();},'qPFFG':function(_0x58cff0){return _0x58cff0();},'pYbpd':function(_0xb3b307,_0x33a7f3){return _0xb3b307==_0x33a7f3;},'qVGTV':'null','jRtAw':function(_0x20a51b,_0xb80ffd){return _0x20a51b===_0xb80ffd;},'EUfWx':_0x15b625(0xc3),'yqVQB':_0x15b625(0x6c),'dAYlj':function(_0x389e04,_0x45812f){return _0x389e04>_0x45812f;},'rqNJC':function(_0x5c9c29,_0x26915c){return _0x5c9c29!==_0x26915c;},'MVxll':_0x15b625(0xdd),'fgWrX':_0x15b625(0xb0),'cUiHX':function(_0x344803,_0x2b39b0){return _0x344803+_0x2b39b0;},'uYySA':'Error\x20while\x20parsing\x20tests\x20errors,\x20Exception:\x20','WMxYr':_0x15b625(0xfa),'eYeEr':function(_0x2966a5,_0x3cfc55){return _0x2966a5(_0x3cfc55);},'HpGJi':_0x15b625(0xc8),'ZBNeB':'nodejs','Stdyw':function(_0x56eafb,_0x4b3d3c){return _0x56eafb===_0x4b3d3c;},'AcuUb':'SDKTestSuccessful','xpkRk':function(_0x1d96d0,_0x1f6bc0){return _0x1d96d0===_0x1f6bc0;},'qaLQM':function(_0x222ad8){return _0x222ad8();},'xMiuV':'selenium-webdriver','bnrsQ':_0x15b625(0xdf),'XeZMj':_0x15b625(0xe8),'FNniZ':'POST'};let _0x40f74a=[];if(helper[_0x15b625(0x9b)]()&&_0x192c66[_0x15b625(0x9c)](isTestObservabilitySession))_0x40f74a=_0x475119[_0x15b625(0xf2)]?constants[_0x15b625(0x6e)]:constants['AUTOMATE_PRODUCTS'];else{if(_0x192c66['qPFFG'](isTestObservabilitySession))_0x40f74a=constants[_0x15b625(0xcd)];else helper['isBrowserstackInfra']()&&(_0x40f74a=_0x475119[_0x15b625(0xf2)]?constants[_0x15b625(0xbc)]:constants[_0x15b625(0xa7)]);}let _0xb1574b=_0x475119[_0x15b625(0x71)];if(_0x192c66['pYbpd'](_0xb1574b,null))_0xb1574b=_0x192c66[_0x15b625(0xc5)];else _0x192c66[_0x15b625(0xd9)](_0xb1574b,undefined)&&(_0xb1574b=_0x192c66[_0x15b625(0xa4)]);unhandledErrors&&_0x192c66[_0x15b625(0xfb)](unhandledErrors['length'],0x0)&&(_0x4ded08[_0x15b625(0x7c)]=unhandledErrors);global['sdkRunId']&&(_0x4ded08[_0x15b625(0x82)]=global[_0x15b625(0x82)]);try{if(_0x4ded08[_0x15b625(0xb0)]){if(_0x192c66[_0x15b625(0xd9)](_0x524d90,_0x192c66['yqVQB'])&&_0x192c66[_0x15b625(0xc9)](_0x4ded08[_0x15b625(0xb0)][_0x15b625(0xb2)],0x0)){const _0x4ec1ab={};_0x4ec1ab['os']='',_0x4ec1ab[_0x15b625(0x73)]='',_0x4ec1ab[_0x15b625(0xc4)]='',_0x4ec1ab['browserVersion']='';const _0x3a4668=_0x4ec1ab;let _0x4689fd={};const _0x380f1c=_0x4ded08[_0x15b625(0xb0)];_0x4689fd=_0x380f1c[_0x15b625(0xd1)]((_0x1a91a5,_0x21be91)=>{for(const _0x26cd30 in _0x21be91){_0x1a91a5[_0x26cd30]=_0x21be91[_0x26cd30];}return _0x1a91a5;},{});const _0x4c712e={};_0x4c712e['tests']=_0x4689fd,_0x4ded08['error']=[Object[_0x15b625(0xab)]({},_0x3a4668,_0x4c712e)];}else{let _0x11bb41=0x0;const _0x1c8f62=_0x192c66[_0x15b625(0xf5)](_0x524d90,_0x192c66[_0x15b625(0xe2)])?JSON['parse'](_0x4ded08[_0x15b625(0xb0)]):_0x4ded08[_0x15b625(0xb0)],_0x268102=Object[_0x15b625(0xd8)](_0x1c8f62);_0x268102[_0x15b625(0xf9)](_0x51833e=>{const _0xddbe84=_0x15b625;if(_0x192c66['nRpMk'](typeof _0x51833e,_0x192c66[_0xddbe84(0x72)])){const _0x18e782=Object[_0xddbe84(0xd8)](_0x51833e);!_0x18e782[_0xddbe84(0xcc)](_0x1d619d=>_0x1d619d===null||_0x1d619d===undefined||_0x1d619d==='')&&(_0x11bb41+=0x1);}});if(_0x192c66[_0x15b625(0xd9)](_0x11bb41,0x0))delete _0x4ded08[_0x192c66[_0x15b625(0x81)]];else{const _0x1eddf1=[];Object[_0x15b625(0x6d)](_0x1c8f62)[_0x15b625(0xf9)](_0x94dd42=>{const _0x353ff0=_0x15b625,[_0x3824ca,_0x32225f,_0x140ed3,_0x4d4cca]=_0x94dd42[_0x353ff0(0x8b)](',\x20');let _0x57595a={};if(!_0x4d4cca){const _0x597a0a={};_0x597a0a[_0x353ff0(0xeb)]=_0x3824ca,_0x597a0a['osVersion']=_0x32225f,_0x597a0a['browser']=_0x140ed3,_0x57595a=_0x597a0a;}else{const _0x2410c8={};_0x2410c8['os']=_0x3824ca,_0x2410c8['osVersion']=_0x32225f,_0x2410c8['browser']=_0x140ed3,_0x2410c8[_0x353ff0(0xd5)]=_0x4d4cca,_0x57595a=_0x2410c8;}const _0x55f18b={},_0xd85ba0=_0x1c8f62[_0x94dd42];Object[_0x353ff0(0x6d)](_0xd85ba0)['forEach'](_0x231759=>{const _0x36825a=_0x353ff0;_0x192c66[_0x36825a(0xfb)](_0xd85ba0[_0x231759][_0x36825a(0xb2)],0x0)&&(_0x55f18b[_0x231759]=_0xd85ba0[_0x231759]);}),_0x192c66['QqEDV'](Object[_0x353ff0(0x6d)](_0x55f18b)[_0x353ff0(0xb2)],0x0)&&(_0x57595a[_0x192c66['kyOcP']]=_0x55f18b,_0x1eddf1['push'](_0x57595a));}),_0x192c66[_0x15b625(0x8f)](_0x1eddf1['length'],0x0)?_0x4ded08[_0x15b625(0xb0)]=_0x1eddf1:delete _0x4ded08[_0x192c66['fgWrX']];}}}}catch(_0x51dabe){delete _0x4ded08[_0x192c66[_0x15b625(0x81)]],logger[_0x15b625(0xbb)](_0x192c66[_0x15b625(0x7d)](_0x192c66[_0x15b625(0xe6)],_0x51dabe));}const _0x570600=helper[_0x15b625(0x8e)](_0x475119,_0x475119[_0x15b625(0xda)]),_0x5adc6b={'userName':helper[_0x15b625(0xbf)](_0x475119),'accessKey':helper[_0x15b625(0x8a)](_0x475119),'event_type':_0x5cf8af,'detectedFramework':_0x524d90,'buildHashedId':globals[_0x15b625(0xb5)](_0x192c66[_0x15b625(0xdb)]),'optimalHubUrl':helper[_0x15b625(0x79)](),'event_properties':{'testhub_uuid':process['env'][testHubConstants[_0x15b625(0x9a)]['BROWSERSTACK_TESTHUB_UUID']]||'','sdkRunId':global[_0x15b625(0x82)],'product_map':_0x192c66[_0x15b625(0xcb)](getProductMap,_0x475119),'productMap':_0x192c66[_0x15b625(0xcb)](getProductMap,_0x475119),'language_framework':_0x475119[_0x15b625(0x77)]||_0x192c66['HpGJi'],'referrer':helper['getNodeAgent'](_0x524d90),'framework':_0x475119[_0x15b625(0xda)],'frameworkVersion':helper[_0x15b625(0xf8)](_0x524d90),'automationFramework':_0x570600[_0x15b625(0xd4)],'automationFrameworkVersion':_0x570600[_0x15b625(0xa8)],'language':_0x192c66[_0x15b625(0xb4)],'languageVersion':process[_0x15b625(0xa8)],'product':_0x40f74a,'buildName':_0x475119[_0x15b625(0xb8)]||_0x192c66[_0x15b625(0xa4)],'buildIdentifier':_0xb1574b,'os':os['type']()||_0x192c66[_0x15b625(0x86)],'hostname':os[_0x15b625(0xc0)]()||_0x192c66[_0x15b625(0x86)],..._0x4ded08,'isCLIEnabled':_0x5c37e5}};try{_0x192c66[_0x15b625(0x9d)](_0x5cf8af,_0x192c66[_0x15b625(0xa9)])&&(_0x5adc6b[_0x15b625(0x89)][_0x15b625(0xd7)]=helper[_0x15b625(0x7b)](_0x475119)),_0x192c66['xpkRk'](_0x524d90,_0x192c66['MVxll'])?_0x5adc6b['event_properties'][_0x15b625(0x70)]=helper[_0x15b625(0xf3)][_0x15b625(0xb9)](null,_0x192c66[_0x15b625(0x98)](getTransformPath),!![]):_0x5adc6b['event_properties'][_0x15b625(0xc7)]=helper[_0x15b625(0x94)](_0x192c66[_0x15b625(0x83)]);}catch(_0x3147e2){logger[_0x15b625(0xbb)](_0x15b625(0x7e)+_0x3147e2);}const _0xcb1c02={};_0xcb1c02['content-type']=_0x192c66['bnrsQ'];const _0x5db4d2={'headers':_0xcb1c02,'body':_0x5adc6b,'auth':{'user':helper[_0x15b625(0xbf)](_0x475119),'pass':helper[_0x15b625(0x8a)](_0x475119)},'json':!![]};logger[_0x15b625(0xbb)](_0x15b625(0xcf)+JSON[_0x15b625(0xb3)](_0x5db4d2[_0x15b625(0xe1)])[_0x15b625(0xb6)](new RegExp(helper[_0x15b625(0xbf)](_0x475119),'g'),_0x192c66[_0x15b625(0x84)])[_0x15b625(0xb6)](new RegExp(helper[_0x15b625(0x8a)](_0x475119),'g'),_0x192c66['XeZMj']));try{const _0x3539aa=await helper[_0x15b625(0x75)](_0x192c66['FNniZ'],FUNNEL_INSTRUMENTATION_API_URL,_0x5db4d2,_0x475119);logger[_0x15b625(0xbb)](_0x15b625(0x8c)+_0x5cf8af+_0x15b625(0x90)+util[_0x15b625(0x92)]('%j',_0x3539aa));}catch(_0x3e2887){logger['debug']('Error\x20in\x20firing\x20request\x20to\x20'+FUNNEL_INSTRUMENTATION_API_URL+_0x15b625(0xf1)+util[_0x15b625(0x92)](_0x3e2887));}},exports['finalExecution']=async(_0x3139a5,_0x26aa9f=![])=>{const _0x53e376=a142_0x47a621,_0xb62830={'XbOsR':function(_0x1c8bb6){return _0x1c8bb6();},'oYgiF':_0x53e376(0xe5),'ruZFW':_0x53e376(0xb7),'tEQOE':'SDKTestSuccessful','jPtmy':function(_0x5220fd,_0x632586,_0x1e193f){return _0x5220fd(_0x632586,_0x1e193f);},'dOnwb':function(_0x4f011a,_0x32788a){return _0x4f011a+_0x32788a;},'Unexk':'Something\x20went\x20wrong\x20in\x20Final\x20Execution\x20step\x20:\x20'};try{await _0x3139a5[_0x53e376(0xe0)](),_0xb62830[_0x53e376(0xf7)](printNudgeLocalNotSetError);const _0x4850cb={};_0x4850cb[_0x53e376(0xb0)]=_0x3139a5[_0x53e376(0x6f)]?_0x3139a5[_0x53e376(0x6f)]:'{}';const _0x2e4b95=_0x4850cb,_0x29d374=Object[_0x53e376(0xab)]({},_0x2e4b95);!!_0x3139a5[_0x53e376(0x91)]&&(_0x29d374[_0xb62830[_0x53e376(0xa5)]]={'reason':_0xb62830[_0x53e376(0x93)],'signal':_0x3139a5['killSignal']});unhandledErrors=_0x3139a5[_0x53e376(0xe7)][_0x53e376(0x7a)]('\x0a');let _0x143b85,_0x4a5267,_0x47871a;helper[_0x53e376(0xb1)](_0x3139a5[_0x53e376(0x7f)])?([_0x143b85,_0x4a5267]=await helper[_0x53e376(0xad)](_0x3139a5[_0x53e376(0x7f)]),[_0x47871a]=await Promise['all']([helper['getTurboScaleSessionsList'](_0x143b85,_0x3139a5[_0x53e376(0x7f)]),exports[_0x53e376(0x78)](_0xb62830[_0x53e376(0x9f)],_0x29d374,_0x3139a5[_0x53e376(0x7f)],_0x3139a5[_0x53e376(0xda)],_0x26aa9f)])):([_0x143b85,_0x4a5267]=await helper[_0x53e376(0xc1)](_0x3139a5[_0x53e376(0x7f)]),[_0x47871a]=await Promise[_0x53e376(0xd3)]([helper[_0x53e376(0xa3)](_0x143b85,_0x3139a5[_0x53e376(0x7f)]),exports['fireFunnelTestEvent'](_0xb62830[_0x53e376(0x9f)],_0x29d374,_0x3139a5[_0x53e376(0x7f)],_0x3139a5[_0x53e376(0xda)],_0x26aa9f)])),_0x47871a&&await _0xb62830['jPtmy'](generateCIArtifacts,_0x47871a,_0x4a5267),logger['info'](_0x53e376(0xf4)+_0x3139a5['sdkRunId']+_0x53e376(0xea)+process['env'][_0x53e376(0x8d)]),await helper[_0x53e376(0xc6)](_0x3139a5['config']);}catch(_0x2f6ae7){logger[_0x53e376(0xbb)](_0xb62830[_0x53e376(0xa1)](_0xb62830[_0x53e376(0xd6)],_0x2f6ae7));}helper[_0x53e376(0xaf)]();},exports[a142_0x47a621(0xce)]=_0x3e61fe=>{const _0x3d29e0=a142_0x47a621,_0x8e36b={'gqBpL':function(_0x3663bc,_0x272d56){return _0x3663bc instanceof _0x272d56;},'BhEAm':function(_0x4676aa,_0x3c4fef){return _0x4676aa(_0x3c4fef);}};try{if(_0x8e36b[_0x3d29e0(0xe3)](_0x3e61fe,Error))return _0x3e61fe[_0x3d29e0(0xf6)]||_0x3e61fe[_0x3d29e0(0x88)]();return _0x8e36b[_0x3d29e0(0xa6)](String,_0x3e61fe);}catch(_0x376d81){return _0x3e61fe?_0x3e61fe[_0x3d29e0(0x88)]():'';}},exports[a142_0x47a621(0xbe)]=_0x2f3ecd=>{const _0x4e13d1=a142_0x47a621,_0x3f0213={};_0x3f0213[_0x4e13d1(0x9e)]=function(_0x62fb54,_0x4bcc06){return _0x62fb54===_0x4bcc06;};const _0xd7f5f0=_0x3f0213;return!_0x2f3ecd||_0xd7f5f0[_0x4e13d1(0x9e)](_0x2f3ecd[_0x4e13d1(0xc2)](),'');},exports['isModifiable']=_0x40b44a=>{const _0x451b9f=a142_0x47a621,_0x3b019f={};_0x3b019f[_0x451b9f(0xee)]=function(_0x136135,_0x25ad96){return _0x136135|_0x25ad96;};const _0x43449c=_0x3b019f;try{return fs[_0x451b9f(0x95)](_0x40b44a,_0x43449c[_0x451b9f(0xee)](fs['constants'][_0x451b9f(0x85)],fs[_0x451b9f(0xa2)]['X_OK'])),!![];}catch(_0x32f24d){return![];}},exports[a142_0x47a621(0xec)]=_0x25f9b8=>{const _0x3d407c=a142_0x47a621;try{fs[_0x3d407c(0xfc)](_0x25f9b8,0x1ff),logger['debug'](_0x3d407c(0xed)+_0x25f9b8+'\x20has\x20now\x20read/write/execute\x20permissions.');}catch(_0x5a0bf0){logger[_0x3d407c(0xb0)](_0x3d407c(0x96)+exports[_0x3d407c(0xce)](_0x5a0bf0));}};function a142_0xbc37(){const _0x230d39=['stack','XbOsR','getFrameworkVersion','forEach','_buildHashedId','FnScB','chmodSync','codeceptjs','keys','APP_AUTOMATE_PRODUCTS','errorMessage','playwrightVersion','buildIdentifier','aElMW','osVersion','526921jhfRpx','nodeRequest','./testhub/utils','source','fireFunnelTestEvent','getOptimalHubUrl','join','sanitizeBrowserStackConfig','globalException','cUiHX','Error\x20in\x20getting\x20framework\x20version\x20to\x20:\x20','config','2BqnCyk','fgWrX','sdkRunId','xMiuV','XeZMj','W_OK','HpGJi','./globals','toString','event_properties','getAccessKey','split','API\x20Event\x20','BROWSERSTACK_TESTHUB_UUID','getTestFrameworkDetails','QqEDV','\x20response\x20-\x20','killSignal','format','ruZFW','getPackageVersion','accessSync','Failed\x20to\x20set\x20directory\x20access:\x20','winstonLogger','qaLQM','./test-observability/utils','ENV_VAR','isBrowserstackInfra','GKCKP','Stdyw','hNTaQ','tEQOE','686obRXtN','dOnwb','constants','getSessionsList','EUfWx','oYgiF','BhEAm','AUTOMATE','version','AcuUb','1796976DhjrBz','assign','2280330ePfncx','getTurboScaleBuildLink','tests','notifyUpdate','error','isTurboScaleSession','length','stringify','ZBNeB','getGlobal','replace','user_killed','buildName','apply','395090zeKket','debug','APP_AUTOMATE','19020xeovPu','isNullOrEmpty','getUserName','hostname','getBuildLink','trim','undefined','browser','qVGTV','sendLogs','seleniumVersion','unknown','dAYlj','../helpers/testhub/constants','eYeEr','every','PRODUCT_IF_NOT_BROWSERSTACK_INFRA','getStackTraceAsString','Firing\x20SDK\x20event\x20for\x20funnel\x20data:\x20','2234980dtFYAV','reduce','./performance/performance-tester','all','name','browserVersion','Unexk','browserStackConfig','values','jRtAw','framework','WMxYr','243KOHUBH','Playwright','./logger','application/json','stopPercy','body','MVxll','gqBpL','../bin/utils/constants','finishedMetadata','uYySA','unhandledErrors','[REDACTED]','./helper',',\x20testhub\x20id:\x20','deviceName','setReadWriteExecuteAccess','Directory\x20','rgYSn','object','626316mtoSvH','\x20:\x20','app','requirePWModule','SDK\x20run\x20ended\x20for\x20id:\x20','rqNJC'];a142_0xbc37=function(){return _0x230d39;};return a142_0xbc37();}
1
+ const a142_0x28d0b6=a142_0x46fa;function a142_0x46fa(_0x884eef,_0x475fb9){const _0x531396=a142_0x5313();return a142_0x46fa=function(_0x46fa26,_0x3a4338){_0x46fa26=_0x46fa26-0x186;let _0x17694b=_0x531396[_0x46fa26];return _0x17694b;},a142_0x46fa(_0x884eef,_0x475fb9);}(function(_0xa18147,_0x40a1db){const _0x1d83d1=a142_0x46fa,_0x35c098=_0xa18147();while(!![]){try{const _0x2565b1=-parseInt(_0x1d83d1(0x1c1))/0x1*(-parseInt(_0x1d83d1(0x1cd))/0x2)+-parseInt(_0x1d83d1(0x1c6))/0x3+-parseInt(_0x1d83d1(0x211))/0x4*(-parseInt(_0x1d83d1(0x1a6))/0x5)+-parseInt(_0x1d83d1(0x19d))/0x6+parseInt(_0x1d83d1(0x206))/0x7+parseInt(_0x1d83d1(0x1b5))/0x8+-parseInt(_0x1d83d1(0x1af))/0x9*(parseInt(_0x1d83d1(0x1c7))/0xa);if(_0x2565b1===_0x40a1db)break;else _0x35c098['push'](_0x35c098['shift']());}catch(_0x2e8ef5){_0x35c098['push'](_0x35c098['shift']());}}}(a142_0x5313,0x1ed7b));function a142_0x5313(){const _0x4b2754=['format','object','type','AUTOMATE_PRODUCTS','../bin/utils/constants','hNyxW','Firing\x20SDK\x20event\x20for\x20funnel\x20data:\x20','API\x20Event\x20','getUserName','util','./globals','1502526mitTcZ','trim','error','tWCXJ','Error\x20while\x20parsing\x20tests\x20errors,\x20Exception:\x20','PyXxO','JDPjP','Something\x20went\x20wrong\x20in\x20Final\x20Execution\x20step\x20:\x20','paruY','6140DTmVxT','assign','fireFunnelTestEvent','Error\x20in\x20firing\x20request\x20to\x20','tFZJR','osVersion','nodeRequest','chmodSync','./helper','450hOhnIh','notifyUpdate','sendLogs','HwHeD','kpmZp','parse','1741384kSmqsd','getOptimalHubUrl','getTurboScaleSessionsList','bRfyS','getTurboScaleBuildLink','browserVersion','jZtJb','SDK\x20run\x20ended\x20for\x20id:\x20','values','getTestFrameworkDetails','aGFEM','lKWfa','28277TkmAKQ','getNodeAgent','null',',\x20testhub\x20id:\x20','stringify','135024VEZcPe','49510joJdsN','killSignal','setReadWriteExecuteAccess','../bin/playwright/reporter/pwUtils','getSessionsList','isModifiable','16wtruCg','browser','gGNZN','unknown','./test-observability/utils','body','every','sdkRunId','getBuildLink','JfwZU','W_OK','keys','getGlobal','ADtqI','content-type','getStackTraceAsString','Failed\x20to\x20set\x20directory\x20access:\x20','[REDACTED]','PRODUCT_IF_NOT_BROWSERSTACK_INFRA','all','buildIdentifier','WPbEK','NawRB','length','_buildHashedId','apply','LvQXs','SDKTestSuccessful','stopPercy','APP_AUTOMATE','globalException','source','event_properties','nMMGn','tests','getAccessKey','../helpers/testhub/constants','env','version','config','pRcus','POST','X_OK','reduce','LrYWC','CtEUW','Error\x20in\x20getting\x20framework\x20version\x20to\x20:\x20','AUTOMATE','APP_AUTOMATE_PRODUCTS','name','replace','BHahv','./performance/performance-tester','hbnRD','application/json','debug','\x20response\x20-\x20','769923Zuftob','toString','ezkEU','user_killed','ENV_VAR','JhUgu','undefined','playwrightVersion','unhandledErrors','info','wmQga','376YSZfdd','isBrowserstackInfra','framework','constants','finalExecution','nodejs','isTurboScaleSession','finishedMetadata','forEach','ssghE','./logger','QMNjt','PvNxI','aPJzZ','PvITa','Playwright','abDOI'];a142_0x5313=function(){return _0x4b2754;};return a142_0x5313();}const os=require('os'),util=require(a142_0x28d0b6(0x19b)),fs=require('fs'),{getProductMap}=require('./testhub/utils'),logger=require(a142_0x28d0b6(0x18b))['winstonLogger'],constants=require('../bin/utils/constants'),testHubConstants=require(a142_0x28d0b6(0x1f1)),{getTransformPath}=require(a142_0x28d0b6(0x1ca)),{FUNNEL_INSTRUMENTATION_API_URL}=require(a142_0x28d0b6(0x196)),{generateCIArtifacts,printNudgeLocalNotSetError}=require(a142_0x28d0b6(0x1ae)),PerformanceTester=require(a142_0x28d0b6(0x201)),globals=require(a142_0x28d0b6(0x19c)),helper=require(a142_0x28d0b6(0x1ae)),{isTestObservabilitySession}=require(a142_0x28d0b6(0x1d1));let unhandledErrors='';exports['fireFunnelTestEvent']=async(_0x4929fa,_0xd30479={},_0x20f3d6,_0x16fdc5,_0x27f336=![])=>{const _0x4d2369=a142_0x28d0b6,_0x5199aa={'hNyxW':function(_0x41c306,_0x4b84ce){return _0x41c306===_0x4b84ce;},'CtEUW':_0x4d2369(0x193),'lKWfa':function(_0x695240,_0xb60be4){return _0x695240>_0xb60be4;},'jZtJb':_0x4d2369(0x1ef),'JfwZU':function(_0x2c44d0){return _0x2c44d0();},'ssghE':function(_0x2225cf){return _0x2225cf();},'paruY':function(_0x41f853,_0x2cfbb6){return _0x41f853==_0x2cfbb6;},'bRfyS':_0x4d2369(0x1c3),'tWCXJ':_0x4d2369(0x20c),'WPbEK':function(_0x1574e4,_0x2f5e0f){return _0x1574e4===_0x2f5e0f;},'abDOI':'codeceptjs','SvzNB':function(_0x1a7945,_0x4ed7f0){return _0x1a7945!==_0x4ed7f0;},'hbnRD':_0x4d2369(0x190),'NawRB':function(_0x18d7f1,_0x29f4fd){return _0x18d7f1===_0x29f4fd;},'pRcus':_0x4d2369(0x19f),'VLgNu':function(_0x48795e,_0x1975c0){return _0x48795e>_0x1975c0;},'kpmZp':function(_0xbf3f6d,_0x1fae63){return _0xbf3f6d+_0x1fae63;},'aPJzZ':_0x4d2369(0x1a1),'aGFEM':_0x4d2369(0x1e5),'BHahv':function(_0x3d9043,_0x27014c){return _0x3d9043(_0x27014c);},'PvITa':_0x4d2369(0x1d0),'LvQXs':_0x4d2369(0x186),'PvNxI':_0x4d2369(0x1e8),'ADtqI':'selenium-webdriver','LrYWC':_0x4d2369(0x203),'gGNZN':_0x4d2369(0x1de),'neYXp':_0x4d2369(0x1f6)};let _0x4e12ee=[];if(helper[_0x4d2369(0x212)]()&&_0x5199aa[_0x4d2369(0x1d6)](isTestObservabilitySession))_0x4e12ee=_0x20f3d6['app']?constants[_0x4d2369(0x1fd)]:constants[_0x4d2369(0x195)];else{if(_0x5199aa['ssghE'](isTestObservabilitySession))_0x4e12ee=constants[_0x4d2369(0x1df)];else helper[_0x4d2369(0x212)]()&&(_0x4e12ee=_0x20f3d6['app']?constants[_0x4d2369(0x1ea)]:constants[_0x4d2369(0x1fc)]);}let _0x5b0744=_0x20f3d6[_0x4d2369(0x1e1)];if(_0x5199aa[_0x4d2369(0x1a5)](_0x5b0744,null))_0x5b0744=_0x5199aa[_0x4d2369(0x1b8)];else _0x5199aa[_0x4d2369(0x197)](_0x5b0744,undefined)&&(_0x5b0744=_0x5199aa[_0x4d2369(0x1a0)]);unhandledErrors&&_0x5199aa[_0x4d2369(0x1c0)](unhandledErrors['length'],0x0)&&(_0xd30479[_0x4d2369(0x1eb)]=unhandledErrors);global[_0x4d2369(0x1d4)]&&(_0xd30479[_0x4d2369(0x1d4)]=global['sdkRunId']);try{if(_0xd30479[_0x4d2369(0x19f)]){if(_0x5199aa[_0x4d2369(0x1e2)](_0x16fdc5,_0x5199aa[_0x4d2369(0x191)])&&_0x5199aa[_0x4d2369(0x1c0)](_0xd30479[_0x4d2369(0x19f)][_0x4d2369(0x1e4)],0x0)){const _0x8cc198={};_0x8cc198['os']='',_0x8cc198[_0x4d2369(0x1ab)]='',_0x8cc198[_0x4d2369(0x1ce)]='',_0x8cc198[_0x4d2369(0x1ba)]='';const _0x384b6f=_0x8cc198;let _0xede7ee={};const _0x7fdf34=_0xd30479['error'];_0xede7ee=_0x7fdf34[_0x4d2369(0x1f8)]((_0x3eeb42,_0x3ac395)=>{for(const _0x29ca7c in _0x3ac395){_0x3eeb42[_0x29ca7c]=_0x3ac395[_0x29ca7c];}return _0x3eeb42;},{});const _0x55b2a2={};_0x55b2a2[_0x4d2369(0x1ef)]=_0xede7ee,_0xd30479['error']=[Object[_0x4d2369(0x1a7)]({},_0x384b6f,_0x55b2a2)];}else{let _0x101613=0x0;const _0x36312b=_0x5199aa['SvzNB'](_0x16fdc5,_0x5199aa[_0x4d2369(0x202)])?JSON[_0x4d2369(0x1b4)](_0xd30479[_0x4d2369(0x19f)]):_0xd30479[_0x4d2369(0x19f)],_0x2c6017=Object[_0x4d2369(0x1bd)](_0x36312b);_0x2c6017['forEach'](_0x53e09e=>{const _0x4ca601=_0x4d2369;if(_0x5199aa[_0x4ca601(0x197)](typeof _0x53e09e,_0x5199aa[_0x4ca601(0x1fa)])){const _0x5af9e3=Object[_0x4ca601(0x1bd)](_0x53e09e);!_0x5af9e3[_0x4ca601(0x1d3)](_0x13c322=>_0x13c322===null||_0x13c322===undefined||_0x13c322==='')&&(_0x101613+=0x1);}});if(_0x5199aa[_0x4d2369(0x1e3)](_0x101613,0x0))delete _0xd30479[_0x5199aa[_0x4d2369(0x1f5)]];else{const _0x1351ff=[];Object[_0x4d2369(0x1d8)](_0x36312b)[_0x4d2369(0x189)](_0x173c1f=>{const _0x3f12a6=_0x4d2369,[_0x35646b,_0x1efbb4,_0x1b5575,_0x222a9c]=_0x173c1f['split'](',\x20');let _0x577af5={};if(!_0x222a9c){const _0x53dcdd={};_0x53dcdd['deviceName']=_0x35646b,_0x53dcdd[_0x3f12a6(0x1ab)]=_0x1efbb4,_0x53dcdd[_0x3f12a6(0x1ce)]=_0x1b5575,_0x577af5=_0x53dcdd;}else{const _0x1b3237={};_0x1b3237['os']=_0x35646b,_0x1b3237[_0x3f12a6(0x1ab)]=_0x1efbb4,_0x1b3237[_0x3f12a6(0x1ce)]=_0x1b5575,_0x1b3237['browserVersion']=_0x222a9c,_0x577af5=_0x1b3237;}const _0x4864ce={},_0x2e0aaf=_0x36312b[_0x173c1f];Object[_0x3f12a6(0x1d8)](_0x2e0aaf)[_0x3f12a6(0x189)](_0x434cfe=>{const _0x2888fb=_0x3f12a6;_0x5199aa[_0x2888fb(0x1c0)](_0x2e0aaf[_0x434cfe][_0x2888fb(0x1e4)],0x0)&&(_0x4864ce[_0x434cfe]=_0x2e0aaf[_0x434cfe]);}),_0x5199aa[_0x3f12a6(0x1c0)](Object[_0x3f12a6(0x1d8)](_0x4864ce)[_0x3f12a6(0x1e4)],0x0)&&(_0x577af5[_0x5199aa[_0x3f12a6(0x1bb)]]=_0x4864ce,_0x1351ff['push'](_0x577af5));}),_0x5199aa['VLgNu'](_0x1351ff[_0x4d2369(0x1e4)],0x0)?_0xd30479[_0x4d2369(0x19f)]=_0x1351ff:delete _0xd30479[_0x5199aa[_0x4d2369(0x1f5)]];}}}}catch(_0x2dc04d){delete _0xd30479[_0x5199aa['pRcus']],logger[_0x4d2369(0x204)](_0x5199aa[_0x4d2369(0x1b3)](_0x5199aa[_0x4d2369(0x18e)],_0x2dc04d));}const _0x50e714=helper[_0x4d2369(0x1be)](_0x20f3d6,_0x20f3d6[_0x4d2369(0x213)]),_0x103a66={'userName':helper[_0x4d2369(0x19a)](_0x20f3d6),'accessKey':helper[_0x4d2369(0x1f0)](_0x20f3d6),'event_type':_0x4929fa,'detectedFramework':_0x16fdc5,'buildHashedId':globals[_0x4d2369(0x1d9)](_0x5199aa[_0x4d2369(0x1bf)]),'optimalHubUrl':helper[_0x4d2369(0x1b6)](),'event_properties':{'testhub_uuid':process[_0x4d2369(0x1f2)][testHubConstants[_0x4d2369(0x20a)]['BROWSERSTACK_TESTHUB_UUID']]||'','sdkRunId':global[_0x4d2369(0x1d4)],'product_map':_0x5199aa[_0x4d2369(0x200)](getProductMap,_0x20f3d6),'productMap':_0x5199aa['BHahv'](getProductMap,_0x20f3d6),'language_framework':_0x20f3d6[_0x4d2369(0x1ec)]||_0x5199aa[_0x4d2369(0x18f)],'referrer':helper[_0x4d2369(0x1c2)](_0x16fdc5),'framework':_0x20f3d6['framework'],'frameworkVersion':helper['getFrameworkVersion'](_0x16fdc5),'automationFramework':_0x50e714[_0x4d2369(0x1fe)],'automationFrameworkVersion':_0x50e714[_0x4d2369(0x1f3)],'language':_0x5199aa[_0x4d2369(0x1e7)],'languageVersion':process['version'],'product':_0x4e12ee,'buildName':_0x20f3d6['buildName']||_0x5199aa[_0x4d2369(0x1a0)],'buildIdentifier':_0x5b0744,'os':os[_0x4d2369(0x194)]()||_0x5199aa[_0x4d2369(0x18f)],'hostname':os['hostname']()||_0x5199aa[_0x4d2369(0x18f)],..._0xd30479,'isCLIEnabled':_0x27f336}};try{_0x5199aa[_0x4d2369(0x197)](_0x4929fa,_0x5199aa[_0x4d2369(0x18d)])&&(_0x103a66[_0x4d2369(0x1ed)]['browserStackConfig']=helper['sanitizeBrowserStackConfig'](_0x20f3d6)),_0x5199aa['WPbEK'](_0x16fdc5,_0x5199aa[_0x4d2369(0x202)])?_0x103a66[_0x4d2369(0x1ed)][_0x4d2369(0x20d)]=helper['requirePWModule'][_0x4d2369(0x1e6)](null,_0x5199aa[_0x4d2369(0x18a)](getTransformPath),!![]):_0x103a66[_0x4d2369(0x1ed)]['seleniumVersion']=helper['getPackageVersion'](_0x5199aa[_0x4d2369(0x1da)]);}catch(_0x3cfe3d){logger['debug'](_0x4d2369(0x1fb)+_0x3cfe3d);}const _0xfa16ef={};_0xfa16ef[_0x4d2369(0x1db)]=_0x5199aa[_0x4d2369(0x1f9)];const _0x11d1e4={'headers':_0xfa16ef,'body':_0x103a66,'auth':{'user':helper['getUserName'](_0x20f3d6),'pass':helper[_0x4d2369(0x1f0)](_0x20f3d6)},'json':!![]};logger['debug'](_0x4d2369(0x198)+JSON[_0x4d2369(0x1c5)](_0x11d1e4[_0x4d2369(0x1d2)])[_0x4d2369(0x1ff)](new RegExp(helper[_0x4d2369(0x19a)](_0x20f3d6),'g'),_0x5199aa[_0x4d2369(0x1cf)])[_0x4d2369(0x1ff)](new RegExp(helper[_0x4d2369(0x1f0)](_0x20f3d6),'g'),_0x5199aa[_0x4d2369(0x1cf)]));try{const _0xa5e7a0=await helper[_0x4d2369(0x1ac)](_0x5199aa['neYXp'],FUNNEL_INSTRUMENTATION_API_URL,_0x11d1e4,_0x20f3d6);logger[_0x4d2369(0x204)](_0x4d2369(0x199)+_0x4929fa+_0x4d2369(0x205)+util[_0x4d2369(0x192)]('%j',_0xa5e7a0));}catch(_0x36c9f1){logger['debug'](_0x4d2369(0x1a9)+FUNNEL_INSTRUMENTATION_API_URL+'\x20:\x20'+util['format'](_0x36c9f1));}},exports[a142_0x28d0b6(0x215)]=async(_0x734283,_0x3f223d=![])=>{const _0x1fd274=a142_0x28d0b6,_0x2223ad={'QkSmo':function(_0x1491ec){return _0x1491ec();},'ezkEU':_0x1fd274(0x188),'kzXlk':_0x1fd274(0x209),'HwHeD':_0x1fd274(0x1e8),'QMNjt':function(_0x219c72,_0x4ddbbe,_0x20121d){return _0x219c72(_0x4ddbbe,_0x20121d);},'wmQga':function(_0x6aeb54,_0x5721b8){return _0x6aeb54+_0x5721b8;},'PyXxO':_0x1fd274(0x1a4)};try{await _0x734283[_0x1fd274(0x1e9)](),_0x2223ad['QkSmo'](printNudgeLocalNotSetError);const _0x448115={};_0x448115[_0x1fd274(0x19f)]=_0x734283['errorMessage']?_0x734283['errorMessage']:'{}';const _0x54bc5c=_0x448115,_0x4130ac=Object['assign']({},_0x54bc5c);!!_0x734283[_0x1fd274(0x1c8)]&&(_0x4130ac[_0x2223ad[_0x1fd274(0x208)]]={'reason':_0x2223ad['kzXlk'],'signal':_0x734283[_0x1fd274(0x1c8)]});unhandledErrors=_0x734283[_0x1fd274(0x20e)]['join']('\x0a');let _0x46d088,_0x1d86d6,_0x25845e;helper[_0x1fd274(0x187)](_0x734283[_0x1fd274(0x1f4)])?([_0x46d088,_0x1d86d6]=await helper[_0x1fd274(0x1b9)](_0x734283[_0x1fd274(0x1f4)]),[_0x25845e]=await Promise[_0x1fd274(0x1e0)]([helper[_0x1fd274(0x1b7)](_0x46d088,_0x734283['config']),exports[_0x1fd274(0x1a8)](_0x2223ad[_0x1fd274(0x1b2)],_0x4130ac,_0x734283[_0x1fd274(0x1f4)],_0x734283[_0x1fd274(0x213)],_0x3f223d)])):([_0x46d088,_0x1d86d6]=await helper[_0x1fd274(0x1d5)](_0x734283[_0x1fd274(0x1f4)]),[_0x25845e]=await Promise[_0x1fd274(0x1e0)]([helper[_0x1fd274(0x1cb)](_0x46d088,_0x734283[_0x1fd274(0x1f4)]),exports[_0x1fd274(0x1a8)](_0x2223ad[_0x1fd274(0x1b2)],_0x4130ac,_0x734283[_0x1fd274(0x1f4)],_0x734283['framework'],_0x3f223d)])),_0x25845e&&await _0x2223ad[_0x1fd274(0x18c)](generateCIArtifacts,_0x25845e,_0x1d86d6),logger[_0x1fd274(0x20f)](_0x1fd274(0x1bc)+_0x734283['sdkRunId']+_0x1fd274(0x1c4)+process[_0x1fd274(0x1f2)]['BROWSERSTACK_TESTHUB_UUID']),await helper[_0x1fd274(0x1b1)](_0x734283[_0x1fd274(0x1f4)]);}catch(_0x5c161d){logger[_0x1fd274(0x204)](_0x2223ad[_0x1fd274(0x210)](_0x2223ad[_0x1fd274(0x1a2)],_0x5c161d));}helper[_0x1fd274(0x1b0)]();},exports[a142_0x28d0b6(0x1dc)]=_0xc78119=>{const _0x2d300e=a142_0x28d0b6,_0x1ef71d={'nMMGn':function(_0x537c93,_0x338f82){return _0x537c93 instanceof _0x338f82;},'tFZJR':function(_0xcb21a6,_0x2cd9a7){return _0xcb21a6(_0x2cd9a7);}};try{if(_0x1ef71d[_0x2d300e(0x1ee)](_0xc78119,Error))return _0xc78119['stack']||_0xc78119[_0x2d300e(0x207)]();return _0x1ef71d[_0x2d300e(0x1aa)](String,_0xc78119);}catch(_0xacdd63){return _0xc78119?_0xc78119[_0x2d300e(0x207)]():'';}},exports['isNullOrEmpty']=_0x332755=>{const _0x7f0263=a142_0x28d0b6,_0x25178b={};_0x25178b[_0x7f0263(0x1a3)]=function(_0x35939e,_0x3e14fb){return _0x35939e===_0x3e14fb;};const _0x425776=_0x25178b;return!_0x332755||_0x425776[_0x7f0263(0x1a3)](_0x332755[_0x7f0263(0x19e)](),'');},exports[a142_0x28d0b6(0x1cc)]=_0x16aa7b=>{const _0x5b3f34=a142_0x28d0b6,_0x466c22={};_0x466c22[_0x5b3f34(0x20b)]=function(_0x4715ed,_0x83bf12){return _0x4715ed|_0x83bf12;};const _0x4594ad=_0x466c22;try{return fs['accessSync'](_0x16aa7b,_0x4594ad[_0x5b3f34(0x20b)](fs[_0x5b3f34(0x214)][_0x5b3f34(0x1d7)],fs[_0x5b3f34(0x214)][_0x5b3f34(0x1f7)])),!![];}catch(_0x2496e9){return![];}},exports[a142_0x28d0b6(0x1c9)]=_0x3db026=>{const _0xd8caad=a142_0x28d0b6;try{fs[_0xd8caad(0x1ad)](_0x3db026,0x1ff),logger['debug']('Directory\x20'+_0x3db026+'\x20has\x20now\x20read/write/execute\x20permissions.');}catch(_0x5dc304){logger[_0xd8caad(0x19f)](_0xd8caad(0x1dd)+exports[_0xd8caad(0x1dc)](_0x5dc304));}};