browserstack-node-sdk 1.34.44 → 1.34.45

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 (134) 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/start.js +1 -1
  18. package/ats/src/commands/start_commands/grid.js +1 -1
  19. package/ats/src/commands/stop.js +1 -1
  20. package/ats/src/commands/stop_commands/grid.js +1 -1
  21. package/ats/src/config/constants.js +1 -1
  22. package/ats/src/config/logger.js +1 -1
  23. package/ats/src/index.js +1 -1
  24. package/ats/src/utils/AWSUtils.js +1 -1
  25. package/ats/src/utils/createAutoscalerStack.js +1 -1
  26. package/ats/src/utils/createClusterStack.js +1 -1
  27. package/ats/src/utils/createHubHaStack.js +1 -1
  28. package/ats/src/utils/createk8sClient.js +1 -1
  29. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  30. package/ats/src/utils/deleteStack.js +1 -1
  31. package/ats/src/utils/describeStack.js +1 -1
  32. package/ats/src/utils/gridComponents.js +1 -1
  33. package/ats/src/utils/hstUtils.js +1 -1
  34. package/ats/src/utils/instrumentationUtils.js +1 -1
  35. package/ats/src/utils/userInput.js +1 -1
  36. package/ats/src/utils/utilityMethods.js +1 -1
  37. package/ats/src/utils/webSocketUtils.js +1 -1
  38. package/package.json +1 -1
  39. package/src/ai-sdk-node/bundle.js +1 -1
  40. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  41. package/src/bin/codeceptjs/command.js +1 -1
  42. package/src/bin/codeceptjs/helper.js +1 -1
  43. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  44. package/src/bin/cucumber-js/command.js +1 -1
  45. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  46. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  47. package/src/bin/cucumber-js/test-observability.js +1 -1
  48. package/src/bin/cucumber-js/test.setup.js +1 -1
  49. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  50. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  51. package/src/bin/integrations/command.js +1 -1
  52. package/src/bin/integrations/constants.js +1 -1
  53. package/src/bin/jest/command.js +1 -1
  54. package/src/bin/jest/customImplements/customCircus.js +1 -1
  55. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  56. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  57. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  58. package/src/bin/jest/jest.setup.js +1 -1
  59. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  60. package/src/bin/jest/test-observability/helper.js +1 -1
  61. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  62. package/src/bin/jest/test-observability/test-details.js +1 -1
  63. package/src/bin/jest/test_before.setup.js +1 -1
  64. package/src/bin/launcher/launcher.js +1 -1
  65. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  66. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  67. package/src/bin/mocha/command.js +1 -1
  68. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  69. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  70. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  71. package/src/bin/mocha/test.setup.js +1 -1
  72. package/src/bin/nightwatch/command.js +1 -1
  73. package/src/bin/playwright/accessibility-helper.js +1 -1
  74. package/src/bin/playwright/command.js +1 -1
  75. package/src/bin/playwright/globalSetup.js +1 -1
  76. package/src/bin/playwright/mock-process.js +1 -1
  77. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  78. package/src/bin/playwright/patches.js +1 -1
  79. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  80. package/src/bin/playwright/reporter/reporter.js +1 -1
  81. package/src/bin/playwright/reporter/test-details.js +1 -1
  82. package/src/bin/playwright/sessionDetails.js +1 -1
  83. package/src/bin/runner.js +1 -1
  84. package/src/bin/setup.js +1 -1
  85. package/src/bin/test-runner/index.js +1 -1
  86. package/src/bin/test-runner/runTest.js +1 -1
  87. package/src/bin/test-runner/testWorker.js +1 -1
  88. package/src/bin/utils/constants.js +1 -1
  89. package/src/bin/utils/log4jsAppender.js +1 -1
  90. package/src/bin/utils/logPatcher.js +1 -1
  91. package/src/bin/utils/logReportingAPI.js +1 -1
  92. package/src/bin/vanilla-js/command.js +1 -1
  93. package/src/browserStackSdk.js +1 -1
  94. package/src/helpers/BrowserStackSetup.js +1 -1
  95. package/src/helpers/accessibility-automation/constants.js +1 -1
  96. package/src/helpers/accessibility-automation/helper.js +1 -1
  97. package/src/helpers/accessibility-automation/scripts.js +1 -1
  98. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  99. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  100. package/src/helpers/ats/constants.js +1 -1
  101. package/src/helpers/ats/helper.js +1 -1
  102. package/src/helpers/capsMapping.js +1 -1
  103. package/src/helpers/central-scanner/constants.js +1 -1
  104. package/src/helpers/central-scanner/helpers.js +1 -1
  105. package/src/helpers/globals.js +1 -1
  106. package/src/helpers/helper.js +1 -1
  107. package/src/helpers/logger.js +1 -1
  108. package/src/helpers/patchHelper.js +1 -1
  109. package/src/helpers/patchHelpers.js +1 -1
  110. package/src/helpers/percy/Percy.js +1 -1
  111. package/src/helpers/percy/PercyBinary.js +1 -1
  112. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  113. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  114. package/src/helpers/percy/PercySDK.js +1 -1
  115. package/src/helpers/percy/index.js +1 -1
  116. package/src/helpers/percy/utils.js +1 -1
  117. package/src/helpers/performance/constants.js +1 -1
  118. package/src/helpers/performance/performance-tester.js +1 -1
  119. package/src/helpers/processHelper.js +1 -1
  120. package/src/helpers/request-spy.js +1 -1
  121. package/src/helpers/setKeepAlive.js +1 -1
  122. package/src/helpers/test-observability/constants.js +1 -1
  123. package/src/helpers/test-observability/error-handler.js +1 -1
  124. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  125. package/src/helpers/test-observability/sessionHandler.js +1 -1
  126. package/src/helpers/test-observability/utils.js +1 -1
  127. package/src/helpers/testhub/constants.js +1 -1
  128. package/src/helpers/testhub/testhubHandler.js +1 -1
  129. package/src/helpers/testhub/utils.js +1 -1
  130. package/src/helpers/timeoutPromise.js +1 -1
  131. package/src/helpers/utilities.js +1 -1
  132. package/src/helpers/w3cMapping.js +1 -1
  133. package/src/hubAllocationMethods.js +1 -1
  134. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a79_0x4fb1f8=a79_0x33cf;(function(_0x561ac0,_0x39d323){const _0x1cd346=a79_0x33cf,_0x4c3e92=_0x561ac0();while(!![]){try{const _0x46bd4d=parseInt(_0x1cd346(0x107))/0x1+-parseInt(_0x1cd346(0x116))/0x2*(parseInt(_0x1cd346(0x147))/0x3)+parseInt(_0x1cd346(0x123))/0x4+-parseInt(_0x1cd346(0x16d))/0x5*(parseInt(_0x1cd346(0x18f))/0x6)+-parseInt(_0x1cd346(0x117))/0x7+-parseInt(_0x1cd346(0x183))/0x8+parseInt(_0x1cd346(0x14b))/0x9*(parseInt(_0x1cd346(0x159))/0xa);if(_0x46bd4d===_0x39d323)break;else _0x4c3e92['push'](_0x4c3e92['shift']());}catch(_0x2d00aa){_0x4c3e92['push'](_0x4c3e92['shift']());}}}(a79_0x35c3,0xedd11));function a79_0x35c3(){const _0x114776=['104364DKoYEd','Performance\x20report\x20is\x20at\x20','readdir','../logger','assign','index','calculateTimesFromMultipleFiles','finalizeErrors','ORhKq','errorReportDirName','ZrYCn','stopMonitoring','false','stack','jsonReportDirName','1656951PhcjMH','BYTbt','start','message','fvTed','details','getCleanedPerfEvents','mMGEt','duration','resolve','lwRoA','readFile','<h1>Performance\x20Report</h1>','diVZU','Error\x20in\x20writing\x20html\x20','46vPEmlo','8439935hMWqyf','-start','debug','readdirSync','browserStackCwd','NlyDJ','cwd','rBASk','fs/promises','SIosy','</td></tr>','startMonitoring','6572136kEtmjJ','\x20for\x20all\x20processes\x20is\x20','dhfvf','aiByf','jsonReportFileName','parse','mark','JnxGz','errorFile','format','performance-own.html','_events','kwyQo','push','qmpii','fOkmA','__platformCaps','testName','errorReportFileName','length','/performance-report-','IYOvS','name','unlinkSync','ZFleg','entryType','Error\x20stopping\x20monitoring\x20','all','perf_hooks','jsonReportDirPath','HftKC','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','-end','GlDZJ','slice','YRTdS','240444IbAyGw','_observer','GdecB','code','45TwdyHJ','VsSNK','toString','end','measureWrapper','ugyPa','Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','.json','forEach','stopAndGenerate','generateJSON','failure','pCYpD','existsSync','3543590jetlgR','rtDhm','measures','finalizePerfMeasures','Time\x20for\x20','/error-report-','apply','platform','JRpVr','winstonLogger','splice','measure','match','_errorEvents','_measureEvents','TnSXB','calculateTimeFromEvents','log','</tbody></table></body></html>','flat','30CfzncY','entries','join','getEventsFromJSON','AtHFd','appendFileSync','map','fOxmM','disconnect','error-report','getPerformance','readFileSync','function','utf-8','performance-report','stringify','env','YLLQo','YcIUa','dXtXf','pushPerfMeasures','AcjrQ','7553680GPQHkj','isEnabled','eventsMap','reduce','started','errors','toJSON','AwnnR','PmjiK','ihmvn','mkdirSync','vYHjW'];a79_0x35c3=function(){return _0x114776;};return a79_0x35c3();}const fs=require('fs'),fsPromise=require(a79_0x4fb1f8(0x11f)),{performance,PerformanceObserver}=require(a79_0x4fb1f8(0x13f)),path=require('path'),util=require('util'),logger=require(a79_0x4fb1f8(0xfb))[a79_0x4fb1f8(0x162)],{getProcessId,sleep,debug,getTestName}=require('../processHelper');function a79_0x33cf(_0x2b027a,_0x29dbd2){const _0x35c3c0=a79_0x35c3();return a79_0x33cf=function(_0x33cf8b,_0x58daac){_0x33cf8b=_0x33cf8b-0xfa;let _0x1bc8c7=_0x35c3c0[_0x33cf8b];return _0x1bc8c7;},a79_0x33cf(_0x2b027a,_0x29dbd2);}class PerformanceTester{static [a79_0x4fb1f8(0x148)];static [a79_0x4fb1f8(0x12e)]=[];static [a79_0x4fb1f8(0x167)]=[];static [a79_0x4fb1f8(0x166)]=[];static [a79_0x4fb1f8(0x187)]=![];static ['jsonReportDirName']=a79_0x4fb1f8(0x17b);static [a79_0x4fb1f8(0x140)]=process[a79_0x4fb1f8(0x17d)][a79_0x4fb1f8(0x11b)]?path[a79_0x4fb1f8(0x16f)](process[a79_0x4fb1f8(0x17d)]['browserStackCwd'],this['jsonReportDirName']):path[a79_0x4fb1f8(0x16f)](process['cwd'](),a79_0x4fb1f8(0x16a),this[a79_0x4fb1f8(0x106)]);static [a79_0x4fb1f8(0x101)]=process['env'][a79_0x4fb1f8(0x11b)]?path[a79_0x4fb1f8(0x16f)](process['env'][a79_0x4fb1f8(0x11b)],a79_0x4fb1f8(0x176)):path[a79_0x4fb1f8(0x16f)](process[a79_0x4fb1f8(0x11d)](),a79_0x4fb1f8(0x176));static [a79_0x4fb1f8(0x127)]=this[a79_0x4fb1f8(0x140)]+'/performance-report-'+getProcessId()+a79_0x4fb1f8(0x152);static [a79_0x4fb1f8(0x135)]=this['errorReportDirName']+a79_0x4fb1f8(0x15e)+getProcessId()+'.json';static [a79_0x4fb1f8(0x10c)]={};static [a79_0x4fb1f8(0x185)]={};static[a79_0x4fb1f8(0x122)](_0x371920=this[a79_0x4fb1f8(0x140)]+a79_0x4fb1f8(0x137)+getProcessId()+'.json',_0x12c56e=this[a79_0x4fb1f8(0x101)]+a79_0x4fb1f8(0x15e)+getProcessId()+a79_0x4fb1f8(0x152)){const _0x5a66c4=a79_0x4fb1f8,_0x46c968={};_0x46c968[_0x5a66c4(0x180)]=function(_0x188bd0,_0x3fb8cc){return _0x188bd0===_0x3fb8cc;},_0x46c968['pCYpD']=_0x5a66c4(0x164),_0x46c968[_0x5a66c4(0x138)]=function(_0x456f43,_0x10764a){return _0x456f43+_0x10764a;},_0x46c968[_0x5a66c4(0x125)]=_0x5a66c4(0x151),_0x46c968[_0x5a66c4(0x108)]=_0x5a66c4(0x179);const _0x400a02=_0x46c968;try{!fs[_0x5a66c4(0x158)](this[_0x5a66c4(0x140)])&&fs[_0x5a66c4(0x18d)](this[_0x5a66c4(0x140)]);}catch(_0x5d62f7){logger['debug'](_0x400a02[_0x5a66c4(0x138)](_0x400a02[_0x5a66c4(0x125)],_0x5d62f7));}if(this[_0x5a66c4(0x187)]||!this['isEnabled']())return;this[_0x5a66c4(0x148)]=new PerformanceObserver(_0x436a6d=>{const _0x2fa1d1=_0x5a66c4;_0x436a6d['getEntries']()[_0x2fa1d1(0x153)](_0x4fdbd9=>{const _0x5e5ddd=_0x2fa1d1;if(_0x400a02[_0x5e5ddd(0x180)](_0x4fdbd9[_0x5e5ddd(0x13c)],_0x400a02[_0x5e5ddd(0x157)])){let _0x22600f={};if(_0x4fdbd9[_0x5e5ddd(0x189)])_0x22600f=_0x4fdbd9['toJSON']();else for(const _0x419fa0 in _0x4fdbd9){_0x22600f[_0x419fa0]=_0x4fdbd9[_0x419fa0];}this[_0x5e5ddd(0x10c)][_0x4fdbd9['name']]&&(_0x22600f=Object[_0x5e5ddd(0xfc)](_0x22600f,this['details'][_0x4fdbd9['name']])),delete this[_0x5e5ddd(0x10c)][_0x4fdbd9['name']],this[_0x5e5ddd(0x167)][_0x5e5ddd(0x130)](_0x22600f);}else this['_events'][_0x5e5ddd(0x130)](_0x4fdbd9);});});const _0x58c4ac={};_0x58c4ac['buffered']=!![],_0x58c4ac['entryTypes']=[_0x400a02[_0x5a66c4(0x108)],_0x400a02[_0x5a66c4(0x157)]],this[_0x5a66c4(0x148)]['observe'](_0x58c4ac),this[_0x5a66c4(0x187)]=!![],this['jsonReportFileName']=_0x371920,this[_0x5a66c4(0x135)]=_0x12c56e;}static[a79_0x4fb1f8(0x177)](){return performance;}static[a79_0x4fb1f8(0x169)](_0x20cb9b,_0x47edd0){const _0x3cef0f=a79_0x4fb1f8,_0x57f80e={};_0x57f80e['mMGEt']=function(_0x4076ae,_0x28ca46){return _0x4076ae+_0x28ca46;},_0x57f80e[_0x3cef0f(0x146)]=function(_0x4cdd13,_0x592e4c){return _0x4cdd13||_0x592e4c;},_0x57f80e[_0x3cef0f(0x150)]=function(_0xddb064,_0x5aa205){return _0xddb064===_0x5aa205;};const _0x2c5fe8=_0x57f80e,_0x4cc60c={};if(!_0x20cb9b||_0x2c5fe8[_0x3cef0f(0x150)](_0x20cb9b[_0x3cef0f(0x136)],0x0))return;_0x20cb9b[_0x3cef0f(0x173)](_0x17624e=>{const _0x413dcc=_0x3cef0f;!_0x4cc60c[_0x17624e[_0x413dcc(0x139)]]&&(_0x4cc60c[_0x17624e[_0x413dcc(0x139)]]=0x0),_0x4cc60c[_0x17624e['name']]+=_0x17624e['duration'];});const _0x4837db=_0x47edd0[_0x3cef0f(0x186)]((_0x5491fd,_0x57acdd)=>{const _0x2edcb9=_0x3cef0f;return _0x2c5fe8[_0x2edcb9(0x10e)](_0x4cc60c[_0x57acdd],_0x2c5fe8[_0x2edcb9(0x146)](_0x5491fd,0x0));},0x0);return _0x4837db;}static async[a79_0x4fb1f8(0xfe)](_0x3dde5c,_0x44fd30){const _0x7b2ddc=a79_0x4fb1f8,_0x2c0ebf={'fOxmM':function(_0x5cacee,_0x1ab077){return _0x5cacee+_0x1ab077;},'ihmvn':function(_0x454fd0,_0x293a58){return _0x454fd0||_0x293a58;},'SIosy':function(_0x4059f0,_0x4a2139){return _0x4059f0===_0x4a2139;},'PmjiK':function(_0xd05e56,_0x3e67d6){return _0xd05e56(_0x3e67d6);},'TnSXB':function(_0x3cd9bb,_0x5b17de){return _0x3cd9bb(_0x5b17de);}};if(!_0x3dde5c||_0x2c0ebf[_0x7b2ddc(0x120)](_0x3dde5c[_0x7b2ddc(0x136)],0x0))return 0x0;const _0x6f1ace=[];for(const _0x59d916 of _0x3dde5c){const _0x140ca5=path[_0x7b2ddc(0x16f)]('.',_0x59d916);try{const _0x225f4c=this['getEventsFromJSON'](_0x140ca5);_0x225f4c[_0x7b2ddc(0x173)](_0x5dd592=>{const _0x4445f5=_0x7b2ddc;!_0x6f1ace[_0x5dd592[_0x4445f5(0x139)]]&&(_0x6f1ace[_0x5dd592['name']]=0x0),_0x6f1ace[_0x5dd592[_0x4445f5(0x139)]]+=_0x5dd592['duration'];});}catch(_0x292872){_0x2c0ebf[_0x7b2ddc(0x18b)](debug,'Error\x20in\x20doing\x20csv\x20operations:\x20'+_0x292872[_0x7b2ddc(0x14d)]());}}const _0x1cbd01=_0x44fd30[_0x7b2ddc(0x186)]((_0x1bf296,_0x2907c1)=>{const _0x3a11ef=_0x7b2ddc;return _0x2c0ebf[_0x3a11ef(0x174)](_0x6f1ace[_0x2907c1],_0x2c0ebf[_0x3a11ef(0x18c)](_0x1bf296,0x0));},0x0);return _0x2c0ebf[_0x7b2ddc(0x168)](debug,_0x7b2ddc(0x15d)+_0x44fd30+_0x7b2ddc(0x124)+_0x1cbd01),_0x1cbd01;}static[a79_0x4fb1f8(0x170)](_0x50bacb){const _0x224c6e=a79_0x4fb1f8;if(!fs[_0x224c6e(0x158)](_0x50bacb))return[];return JSON['parse'](fs['readFileSync'](_0x50bacb)[_0x224c6e(0x14d)]());}static async[a79_0x4fb1f8(0x154)](_0x3d12ad=a79_0x4fb1f8(0x12d),_0x4764de=null){const _0x3b73c5=a79_0x4fb1f8,_0x17e442={'vYHjW':function(_0x3a1dec,_0x5c5c2f){return _0x3a1dec(_0x5c5c2f);},'ORhKq':function(_0x27e809,_0xf6874f){return _0x27e809(_0xf6874f);}};if(!this[_0x3b73c5(0x187)])return;await _0x17e442[_0x3b73c5(0x100)](sleep,0x1e),this['_observer'][_0x3b73c5(0x175)](),this['started']=![],this['generateJSON'](this['_events']);const _0x1ca232=this['generateHTMLReport'](this[_0x3b73c5(0x12e)]),_0x2b8612=path[_0x3b73c5(0x16f)](process[_0x3b73c5(0x11d)](),_0x3d12ad);fs['writeFile'](_0x2b8612,_0x1ca232,_0x4531aa=>{const _0x4462bc=_0x3b73c5;if(_0x4531aa){_0x17e442[_0x4462bc(0x18e)](debug,_0x4462bc(0x115)+_0x4531aa['toString']());return;}_0x17e442[_0x4462bc(0x18e)](debug,_0x4462bc(0x190)+_0x2b8612);});if(_0x4764de)return this[_0x3b73c5(0x169)](this[_0x3b73c5(0x12e)],_0x4764de);}static['generateHTMLReport'](_0x206d67){const _0x2c124d=a79_0x4fb1f8,_0x2e0b57={};_0x2e0b57[_0x2c124d(0x13b)]='<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>',_0x2e0b57[_0x2c124d(0x114)]=_0x2c124d(0x113),_0x2e0b57['HftKC']=_0x2c124d(0x142),_0x2e0b57[_0x2c124d(0x102)]=_0x2c124d(0x16b);const _0x14c2b8=_0x2e0b57;let _0x531cf8=_0x14c2b8['ZFleg'];return _0x531cf8+=_0x14c2b8[_0x2c124d(0x114)],_0x531cf8+=_0x14c2b8[_0x2c124d(0x141)],_0x206d67[_0x2c124d(0x153)](_0x10bc5b=>{const _0x2c2d3d=_0x2c124d;_0x531cf8+='<tr><td>'+_0x10bc5b['name']+'</td><td>'+_0x10bc5b[_0x2c2d3d(0x10f)]+_0x2c2d3d(0x121);}),_0x531cf8+=_0x14c2b8['ZrYCn'],_0x531cf8;}static[a79_0x4fb1f8(0x155)](_0x3a7fd0){const _0x54a212=a79_0x4fb1f8;if(!this[_0x54a212(0x127)])return;const _0x50d180={};_0x3a7fd0[_0x54a212(0x173)](_0x536e2c=>{const _0x307fbe=_0x54a212;!_0x50d180[_0x536e2c[_0x307fbe(0x139)]]&&(_0x50d180[_0x536e2c['name']]=0x0),_0x50d180[_0x536e2c[_0x307fbe(0x139)]]+=_0x536e2c[_0x307fbe(0x10f)];});const _0x56f8b7=Object[_0x54a212(0x16e)](_0x50d180)[_0x54a212(0x173)](([_0x10c117,_0x5e47ef])=>{const _0x1a1a11={};return _0x1a1a11['name']=_0x10c117,_0x1a1a11['duration']=_0x5e47ef,_0x1a1a11;});fs['writeFileSync'](this['jsonReportFileName'],JSON[_0x54a212(0x17c)](_0x56f8b7));}static['isEnabled'](){const _0x14c808=a79_0x4fb1f8,_0x2485e6={};_0x2485e6[_0x14c808(0x126)]=function(_0x3aedba,_0x1ebccc){return _0x3aedba===_0x1ebccc;},_0x2485e6['AcjrQ']=_0x14c808(0x104);const _0x2db660=_0x2485e6;return!_0x2db660[_0x14c808(0x126)](process[_0x14c808(0x17d)]['BROWSERSTACK_SDK_INSTRUMENTATION'],_0x2db660[_0x14c808(0x182)]);}static['measure'](_0x32ee27,_0x55c96c,_0x52c1e2=null,_0xbfb462={},_0x5768d6=null){const _0x1fa7b3=a79_0x4fb1f8,_0x5cb8ee={'YcIUa':function(_0xfb3971,_0x274aac){return _0xfb3971(_0x274aac);},'mHtxZ':function(_0x19e4f8,_0x25cbaa){return _0x19e4f8 instanceof _0x25cbaa;}};try{if(this[_0x1fa7b3(0x187)]&&this[_0x1fa7b3(0x184)]()){let _0x570c22=_0x32ee27;_0x52c1e2&&(_0x570c22=_0x32ee27+'['+JSON[_0x1fa7b3(0x17c)](_0x52c1e2)+']');PerformanceTester[_0x1fa7b3(0x109)](_0x570c22),this['details']&&(this[_0x1fa7b3(0x10c)][_0x570c22]=_0xbfb462);try{const _0x2c065f=_0x55c96c[_0x1fa7b3(0x15f)](null,_0x5768d6);if(_0x5cb8ee['mHtxZ'](_0x2c065f,Promise))return new Promise((_0x254611,_0x4741b7)=>{const _0x934e6c={'oDONK':function(_0x3f4afe,_0x23221a){const _0x47a61b=a79_0x33cf;return _0x5cb8ee[_0x47a61b(0x17f)](_0x3f4afe,_0x23221a);}};_0x2c065f['then'](_0x58bd60=>{PerformanceTester['end'](_0x570c22),_0x934e6c['oDONK'](_0x254611,_0x58bd60);})['catch'](_0x43e1ca=>{const _0x14e23b=a79_0x33cf;PerformanceTester[_0x14e23b(0x14e)](_0x570c22,![],util['format'](_0x43e1ca)),_0x5cb8ee[_0x14e23b(0x17f)](_0x4741b7,_0x43e1ca);});});;return PerformanceTester[_0x1fa7b3(0x14e)](_0x570c22),_0x2c065f;}catch(_0x210d94){PerformanceTester[_0x1fa7b3(0x14e)](_0x570c22,![],util[_0x1fa7b3(0x12c)](_0x210d94));throw _0x210d94;}};return _0x55c96c[_0x1fa7b3(0x15f)](null,_0x5768d6);}catch(_0x410f57){return _0x55c96c[_0x1fa7b3(0x15f)](null,_0x5768d6);}}static[a79_0x4fb1f8(0x14f)](_0x4e33a2,_0x46e711,_0x4e85da={}){const _0x4e9e33=a79_0x4fb1f8,_0xae95eb={'fvTed':function(_0x49626a){return _0x49626a();}},_0x264d8d=this;return _0x4e85da['worker']=_0xae95eb[_0x4e9e33(0x10b)](getProcessId),_0x4e85da[_0x4e9e33(0x134)]=_0xae95eb['fvTed'](getTestName),_0x4e85da[_0x4e9e33(0x160)]=global[_0x4e9e33(0x133)]&&global['__platformCaps'][_0x4e9e33(0xfd)],function(){const _0x3a7b83=_0x4e9e33,_0x3fd93f=[_0x4e33a2,_0x46e711,null,_0x4e85da]['concat'](arguments);return _0x264d8d['measure'][_0x3a7b83(0x15f)](_0x264d8d,_0x3fd93f);};}static[a79_0x4fb1f8(0x10d)](){const _0x307c66=a79_0x4fb1f8,_0x4d9603=/(^.*)\[(.*)\]$/,_0x5b9d9e={},_0x4cdf0b={},_0x1859f9=[],_0xd306a5=this[_0x307c66(0x167)][_0x307c66(0x163)](0x0,this['_measureEvents'][_0x307c66(0x136)]);for(const _0x17e1d1 of _0xd306a5){const _0x12fa34=_0x17e1d1[_0x307c66(0x139)][_0x307c66(0x165)](_0x4d9603),_0x3a70d6=Object[_0x307c66(0xfc)]({},_0x17e1d1);_0x12fa34&&(_0x3a70d6[_0x307c66(0x139)]=_0x12fa34[0x1],_0x3a70d6['meta']=JSON[_0x307c66(0x128)](_0x12fa34[0x2])),_0x1859f9[_0x307c66(0x130)](_0x3a70d6);}return _0x1859f9;}static['pushPerfMeasures'](){const _0x4fdaac=a79_0x4fb1f8,_0x10ba86={};_0x10ba86[_0x4fdaac(0x111)]=function(_0x4d1183,_0x404506){return _0x4d1183+_0x404506;},_0x10ba86[_0x4fdaac(0x18a)]='Error\x20while\x20removing\x20files:\x20',_0x10ba86['GlDZJ']=function(_0x1cc817,_0xbe4c8a){return _0x1cc817===_0xbe4c8a;};const _0x12b299=_0x10ba86;try{if(fs[_0x4fdaac(0x158)](this[_0x4fdaac(0x140)])){const _0x4ea8b5=fs[_0x4fdaac(0x11a)](this[_0x4fdaac(0x140)]);for(const _0x1f0344 of _0x4ea8b5){fs[_0x4fdaac(0x13a)](path[_0x4fdaac(0x16f)](this[_0x4fdaac(0x140)],_0x1f0344));}}}catch(_0x2ec311){logger[_0x4fdaac(0x119)](_0x12b299[_0x4fdaac(0x111)](_0x12b299[_0x4fdaac(0x18a)],_0x2ec311));}if(_0x12b299[_0x4fdaac(0x144)](this[_0x4fdaac(0x167)]['length'],0x0))return;const _0x130869=this['getCleanedPerfEvents'](),_0x4d8fd2=JSON[_0x4fdaac(0x17c)](_0x130869),_0x3ecff8=_0x12b299['lwRoA'](_0x4d8fd2['slice'](0x1,-0x1),',');fs[_0x4fdaac(0x172)](this['jsonReportFileName'],_0x3ecff8);}static async[a79_0x4fb1f8(0x15c)](){const _0xba341a=a79_0x4fb1f8,_0x3f362a={};_0x3f362a[_0xba341a(0x11c)]=function(_0x43d719,_0x670e73){return _0x43d719===_0x670e73;},_0x3f362a[_0xba341a(0x12a)]=function(_0x298ea2,_0x25af46){return _0x298ea2>_0x25af46;};const _0x19116f=_0x3f362a;if(!this[_0xba341a(0x187)]||_0x19116f[_0xba341a(0x11c)](this['_measureEvents']['length'],0x0))return[];if(!fs[_0xba341a(0x158)](this['jsonReportDirPath']))return this[_0xba341a(0x167)];const _0x50dbb9=(await fsPromise[_0xba341a(0xfa)](this[_0xba341a(0x140)]))[_0xba341a(0x173)](_0x4c7639=>path[_0xba341a(0x110)](this[_0xba341a(0x140)],_0x4c7639));let _0x40b392=(await Promise[_0xba341a(0x13e)](_0x50dbb9[_0xba341a(0x173)](_0x1375a6=>fsPromise[_0xba341a(0x112)](_0x1375a6,_0xba341a(0x17a)))))[_0xba341a(0x173)](_0x4ede3e=>'['+_0x4ede3e[_0xba341a(0x145)](0x0,-0x1)+']')[_0xba341a(0x173)](_0x5ace16=>JSON[_0xba341a(0x128)](_0x5ace16))[_0xba341a(0x16c)]();return _0x19116f[_0xba341a(0x12a)](this[_0xba341a(0x167)]['length'],0x0)&&(_0x40b392=_0x40b392['concat'](this[_0xba341a(0x10d)]())),this[_0xba341a(0x148)][_0xba341a(0x175)](),_0x40b392;}static['pushErrors'](){const _0x4bd9e5=a79_0x4fb1f8,_0xa6d5f1={};_0xa6d5f1['qmpii']=function(_0x3c7cfe,_0x45d671){return _0x3c7cfe===_0x45d671;},_0xa6d5f1[_0x4bd9e5(0x149)]=function(_0x2b338d,_0x436948){return _0x2b338d+_0x436948;};const _0x20b070=_0xa6d5f1;if(_0x20b070[_0x4bd9e5(0x131)](this[_0x4bd9e5(0x166)]['length'],0x0))return;const _0x5149a1=JSON['stringify'](this['_errorEvents']),_0x2d67d9=_0x20b070[_0x4bd9e5(0x149)](_0x5149a1[_0x4bd9e5(0x145)](0x1,-0x1),',');fs[_0x4bd9e5(0x172)](this[_0x4bd9e5(0x12b)],_0x2d67d9);}static[a79_0x4fb1f8(0xff)](){const _0x323002=a79_0x4fb1f8,_0x5e2e28={};_0x5e2e28[_0x323002(0x17e)]=function(_0x11f0f3,_0x16c42f){return _0x11f0f3>_0x16c42f;};const _0x27ee71=_0x5e2e28;if(!fs[_0x323002(0x158)](this[_0x323002(0x135)]))return this['_errorEvents'];let _0x23cfa3=fs[_0x323002(0x178)](this[_0x323002(0x135)])['toString']();_0x23cfa3='['+_0x23cfa3[_0x323002(0x145)](0x0,-0x1)+']';let _0x1f1718=JSON[_0x323002(0x128)](_0x23cfa3);return _0x27ee71[_0x323002(0x17e)](this[_0x323002(0x166)][_0x323002(0x136)],0x0)&&(_0x1f1718=_0x1f1718['concat'](this[_0x323002(0x166)])),fs[_0x323002(0x13a)](this[_0x323002(0x135)]),_0x1f1718;}static['captureError'](_0x541f6a){const _0x37d793=a79_0x4fb1f8;if(!this['isEnabled']())return;this['_errorEvents'][_0x37d793(0x130)]({'message':_0x541f6a[_0x37d793(0x10a)],'trace':_0x541f6a[_0x37d793(0x105)],'code':_0x541f6a[_0x37d793(0x14a)]||null,'time':new Date()});}static[a79_0x4fb1f8(0x103)](){const _0x249785=a79_0x4fb1f8;try{if(!this[_0x249785(0x184)]())return;this['_observer'][_0x249785(0x175)](),this[_0x249785(0x181)](),this['pushErrors']();}catch(_0x135c7a){logger[_0x249785(0x119)](_0x249785(0x13d)+util[_0x249785(0x12c)](_0x135c7a));}}static async['finalize'](){const _0x4ec8ec=a79_0x4fb1f8,_0x39b59c={'QXWcm':function(_0x58dd6e,_0x19ae2e){return _0x58dd6e(_0x19ae2e);}};await _0x39b59c['QXWcm'](sleep,0x1e);const _0x56dd80=await this['finalizePerfMeasures'](),_0x2c8247=this[_0x4ec8ec(0xff)]();if(!this[_0x4ec8ec(0x184)]()){const _0x1bafb7={};return _0x1bafb7[_0x4ec8ec(0x15b)]=[],_0x1bafb7[_0x4ec8ec(0x188)]=[],_0x1bafb7;}const _0x34b3db={};return _0x34b3db[_0x4ec8ec(0x15b)]=_0x56dd80,_0x34b3db[_0x4ec8ec(0x188)]=_0x2c8247,_0x34b3db;}static[a79_0x4fb1f8(0x109)](_0x2e734b){const _0x6914d6=a79_0x4fb1f8,_0x23df71={};_0x23df71[_0x6914d6(0x132)]=function(_0x24f323,_0x3cbc60){return _0x24f323+_0x3cbc60;},_0x23df71[_0x6914d6(0x12f)]=_0x6914d6(0x118);const _0x274209=_0x23df71,_0x2f1b31=_0x274209[_0x6914d6(0x132)](_0x2e734b,_0x274209[_0x6914d6(0x12f)]);if(this[_0x6914d6(0x185)][_0x2f1b31])return;performance['mark'](_0x2f1b31),this[_0x6914d6(0x185)][_0x2f1b31]=0x1;}static[a79_0x4fb1f8(0x14e)](_0x50e108,_0x20eefa=!![],_0x120eae=null,_0x422988={}){const _0xc70b6=a79_0x4fb1f8,_0x467871={'VsSNK':function(_0x1d94aa,_0x282ef1){return _0x1d94aa+_0x282ef1;},'AtHFd':_0xc70b6(0x143),'JRpVr':'-start','rtDhm':function(_0x5e7170,_0x14e2c6){return _0x5e7170+_0x14e2c6;},'rBASk':function(_0x3b7a31){return _0x3b7a31();},'XGFED':function(_0x309483){return _0x309483();}};performance[_0xc70b6(0x129)](_0x467871[_0xc70b6(0x14c)](_0x50e108,_0x467871[_0xc70b6(0x171)])),performance['measure'](_0x50e108,_0x467871[_0xc70b6(0x14c)](_0x50e108,_0x467871[_0xc70b6(0x161)]),_0x467871[_0xc70b6(0x15a)](_0x50e108,_0x467871[_0xc70b6(0x171)]));const _0x18c24d={};_0x18c24d['success']=_0x20eefa,_0x18c24d[_0xc70b6(0x156)]=_0x120eae,this[_0xc70b6(0x10c)][_0x50e108]=Object['assign'](_0x18c24d,Object[_0xc70b6(0xfc)](Object['assign']({'worker':_0x467871[_0xc70b6(0x11e)](getProcessId),'platform':global['__platformCaps']&&global[_0xc70b6(0x133)]['index'],'testName':_0x467871['XGFED'](getTestName)},_0x422988),this[_0xc70b6(0x10c)][_0x50e108]||{}));}}module['exports']=PerformanceTester;
1
+ const a79_0x1634d0=a79_0x1c4e;(function(_0x3ef2a0,_0x28bdc9){const _0x436fc7=a79_0x1c4e,_0x581090=_0x3ef2a0();while(!![]){try{const _0x220623=parseInt(_0x436fc7(0x172))/0x1*(-parseInt(_0x436fc7(0x198))/0x2)+parseInt(_0x436fc7(0x1f3))/0x3*(-parseInt(_0x436fc7(0x1f0))/0x4)+parseInt(_0x436fc7(0x19b))/0x5*(-parseInt(_0x436fc7(0x1ff))/0x6)+parseInt(_0x436fc7(0x1d8))/0x7+-parseInt(_0x436fc7(0x16b))/0x8+-parseInt(_0x436fc7(0x1e9))/0x9+parseInt(_0x436fc7(0x188))/0xa;if(_0x220623===_0x28bdc9)break;else _0x581090['push'](_0x581090['shift']());}catch(_0x4e8654){_0x581090['push'](_0x581090['shift']());}}}(a79_0x1959,0x73b94));const fs=require('fs'),fsPromise=require('fs/promises'),{performance,PerformanceObserver}=require(a79_0x1634d0(0x1d9)),path=require(a79_0x1634d0(0x1df)),util=require('util'),logger=require(a79_0x1634d0(0x17f))[a79_0x1634d0(0x1fe)],{getProcessId,sleep,debug,getTestName}=require(a79_0x1634d0(0x18d));function a79_0x1c4e(_0x269c6c,_0x562192){const _0x1959ab=a79_0x1959();return a79_0x1c4e=function(_0x1c4e4e,_0x47055e){_0x1c4e4e=_0x1c4e4e-0x168;let _0x52f9a2=_0x1959ab[_0x1c4e4e];return _0x52f9a2;},a79_0x1c4e(_0x269c6c,_0x562192);}class PerformanceTester{static [a79_0x1634d0(0x17d)];static [a79_0x1634d0(0x1fd)]=[];static [a79_0x1634d0(0x19e)]=[];static [a79_0x1634d0(0x182)]=[];static [a79_0x1634d0(0x19d)]=![];static ['jsonReportDirName']=a79_0x1634d0(0x178);static [a79_0x1634d0(0x197)]=process['env'][a79_0x1634d0(0x1e4)]?path[a79_0x1634d0(0x1eb)](process[a79_0x1634d0(0x1fb)]['browserStackCwd'],this[a79_0x1634d0(0x17b)]):path[a79_0x1634d0(0x1eb)](process['cwd'](),a79_0x1634d0(0x203),this[a79_0x1634d0(0x17b)]);static [a79_0x1634d0(0x195)]=process['env']['browserStackCwd']?path[a79_0x1634d0(0x1eb)](process[a79_0x1634d0(0x1fb)][a79_0x1634d0(0x1e4)],a79_0x1634d0(0x16a)):path[a79_0x1634d0(0x1eb)](process[a79_0x1634d0(0x1f6)](),a79_0x1634d0(0x16a));static [a79_0x1634d0(0x1d2)]=this[a79_0x1634d0(0x197)]+a79_0x1634d0(0x171)+getProcessId()+'.json';static [a79_0x1634d0(0x183)]=this[a79_0x1634d0(0x195)]+a79_0x1634d0(0x1e2)+getProcessId()+a79_0x1634d0(0x17a);static [a79_0x1634d0(0x1b3)]={};static [a79_0x1634d0(0x190)]={};static[a79_0x1634d0(0x1a6)](_0x1fa1f8=this[a79_0x1634d0(0x197)]+'/performance-report-'+getProcessId()+a79_0x1634d0(0x17a),_0x313d9d=this['errorReportDirName']+'/error-report-'+getProcessId()+a79_0x1634d0(0x17a)){const _0x36b7f0=a79_0x1634d0,_0x5642c1={};_0x5642c1[_0x36b7f0(0x18e)]=function(_0x30b46a,_0x8f30f6){return _0x30b46a===_0x8f30f6;},_0x5642c1[_0x36b7f0(0x174)]='measure',_0x5642c1[_0x36b7f0(0x1a1)]=function(_0x5ad890,_0x367020){return _0x5ad890+_0x367020;},_0x5642c1[_0x36b7f0(0x1f4)]=_0x36b7f0(0x17c),_0x5642c1[_0x36b7f0(0x169)]=_0x36b7f0(0x196);const _0x243212=_0x5642c1;try{!fs['existsSync'](this['jsonReportDirPath'])&&fs[_0x36b7f0(0x18a)](this['jsonReportDirPath']);}catch(_0x2d37f8){logger['debug'](_0x243212[_0x36b7f0(0x1a1)](_0x243212['GAsFJ'],_0x2d37f8));}if(this[_0x36b7f0(0x19d)]||!this[_0x36b7f0(0x1bf)]())return;this['_observer']=new PerformanceObserver(_0x33e2b9=>{const _0x184372=_0x36b7f0,_0x26ecf3={'xDaSV':function(_0x55571b,_0x477694){return _0x243212['NTOBg'](_0x55571b,_0x477694);},'lejTg':_0x243212[_0x184372(0x174)]};_0x33e2b9['getEntries']()[_0x184372(0x186)](_0x3308da=>{const _0x54bbd1=_0x184372;if(_0x26ecf3['xDaSV'](_0x3308da['entryType'],_0x26ecf3[_0x54bbd1(0x1b4)])){let _0x58f8ad={};if(_0x3308da[_0x54bbd1(0x17e)])_0x58f8ad=_0x3308da[_0x54bbd1(0x17e)]();else for(const _0x26e68b in _0x3308da){_0x58f8ad[_0x26e68b]=_0x3308da[_0x26e68b];}this['details'][_0x3308da['name']]&&(_0x58f8ad=Object['assign'](_0x58f8ad,this[_0x54bbd1(0x1b3)][_0x3308da['name']])),delete this[_0x54bbd1(0x1b3)][_0x3308da['name']],this['_measureEvents'][_0x54bbd1(0x1b1)](_0x58f8ad);}else this[_0x54bbd1(0x1fd)][_0x54bbd1(0x1b1)](_0x3308da);});});const _0x526899={};_0x526899[_0x36b7f0(0x1cb)]=!![],_0x526899[_0x36b7f0(0x1c4)]=[_0x243212[_0x36b7f0(0x169)],_0x243212[_0x36b7f0(0x174)]],this['_observer'][_0x36b7f0(0x1de)](_0x526899),this['started']=!![],this['jsonReportFileName']=_0x1fa1f8,this[_0x36b7f0(0x183)]=_0x313d9d;}static[a79_0x1634d0(0x179)](){return performance;}static['calculateTimeFromEvents'](_0x122299,_0x72bd4b){const _0x1c6e48=a79_0x1634d0,_0x3565d4={};_0x3565d4[_0x1c6e48(0x1a2)]=function(_0x47e230,_0x1af03c){return _0x47e230+_0x1af03c;},_0x3565d4[_0x1c6e48(0x1d6)]=function(_0x3e9625,_0x52ee70){return _0x3e9625||_0x52ee70;},_0x3565d4[_0x1c6e48(0x1b2)]=function(_0x4e8d57,_0x148de7){return _0x4e8d57===_0x148de7;};const _0x279923=_0x3565d4,_0x421765={};if(!_0x122299||_0x279923[_0x1c6e48(0x1b2)](_0x122299['length'],0x0))return;_0x122299[_0x1c6e48(0x1cc)](_0x313bd7=>{const _0x2aa6f1=_0x1c6e48;!_0x421765[_0x313bd7['name']]&&(_0x421765[_0x313bd7[_0x2aa6f1(0x1fa)]]=0x0),_0x421765[_0x313bd7[_0x2aa6f1(0x1fa)]]+=_0x313bd7[_0x2aa6f1(0x1af)];});const _0x18f6de=_0x72bd4b['reduce']((_0x2f2c12,_0x43e62c)=>{const _0x4454aa=_0x1c6e48;return _0x279923['RjOgc'](_0x421765[_0x43e62c],_0x279923[_0x4454aa(0x1d6)](_0x2f2c12,0x0));},0x0);return _0x18f6de;}static async['calculateTimesFromMultipleFiles'](_0x4cee10,_0x56b483){const _0x385b8b=a79_0x1634d0,_0x310648={'LHsRw':function(_0x2110a4,_0x2bc66f){return _0x2110a4+_0x2bc66f;},'Jovgq':function(_0x53f6e8,_0x627127){return _0x53f6e8||_0x627127;},'PgBxL':function(_0x5d7dd8,_0x5a9685){return _0x5d7dd8===_0x5a9685;},'vixya':function(_0x401692,_0x2fb8c4){return _0x401692(_0x2fb8c4);}};if(!_0x4cee10||_0x310648['PgBxL'](_0x4cee10[_0x385b8b(0x170)],0x0))return 0x0;const _0x486c19=[];for(const _0x2d717c of _0x4cee10){const _0x59f010=path[_0x385b8b(0x1eb)]('.',_0x2d717c);try{const _0x541b51=this[_0x385b8b(0x1a9)](_0x59f010);_0x541b51[_0x385b8b(0x1cc)](_0x1ef921=>{const _0x14a74d=_0x385b8b;!_0x486c19[_0x1ef921['name']]&&(_0x486c19[_0x1ef921[_0x14a74d(0x1fa)]]=0x0),_0x486c19[_0x1ef921['name']]+=_0x1ef921[_0x14a74d(0x1af)];});}catch(_0x29f40e){_0x310648['vixya'](debug,'Error\x20in\x20doing\x20csv\x20operations:\x20'+_0x29f40e[_0x385b8b(0x1c3)]());}}const _0x26950b=_0x56b483[_0x385b8b(0x1e0)]((_0x2fc53e,_0x109b33)=>{const _0x59e02b=_0x385b8b;return _0x310648[_0x59e02b(0x1d4)](_0x486c19[_0x109b33],_0x310648[_0x59e02b(0x1c9)](_0x2fc53e,0x0));},0x0);return _0x310648[_0x385b8b(0x1a8)](debug,_0x385b8b(0x1da)+_0x56b483+'\x20for\x20all\x20processes\x20is\x20'+_0x26950b),_0x26950b;}static['getEventsFromJSON'](_0x2efa44){const _0x693b27=a79_0x1634d0;if(!fs[_0x693b27(0x19a)](_0x2efa44))return[];return JSON[_0x693b27(0x1ba)](fs[_0x693b27(0x185)](_0x2efa44)[_0x693b27(0x1c3)]());}static async[a79_0x1634d0(0x181)](_0x128927=a79_0x1634d0(0x1e7),_0x467fe3=null){const _0x554201=a79_0x1634d0,_0x2ee885={'TcheU':function(_0x4aa35b,_0x70c559){return _0x4aa35b(_0x70c559);}};if(!this[_0x554201(0x19d)])return;await _0x2ee885[_0x554201(0x175)](sleep,0x1e),this['_observer'][_0x554201(0x1ce)](),this[_0x554201(0x19d)]=![],this[_0x554201(0x1f5)](this['_events']);const _0x5bfcc9=this[_0x554201(0x180)](this['_events']),_0x3d05a1=path[_0x554201(0x1eb)](process[_0x554201(0x1f6)](),_0x128927);fs[_0x554201(0x1a4)](_0x3d05a1,_0x5bfcc9,_0x5ac213=>{const _0x5b0d91=_0x554201;if(_0x5ac213){_0x2ee885[_0x5b0d91(0x175)](debug,_0x5b0d91(0x1ad)+_0x5ac213[_0x5b0d91(0x1c3)]());return;}_0x2ee885[_0x5b0d91(0x175)](debug,_0x5b0d91(0x1e8)+_0x3d05a1);});if(_0x467fe3)return this['calculateTimeFromEvents'](this[_0x554201(0x1fd)],_0x467fe3);}static[a79_0x1634d0(0x180)](_0x4c7bef){const _0x1c3667=a79_0x1634d0,_0x39ae2a={};_0x39ae2a[_0x1c3667(0x1a0)]='<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>',_0x39ae2a[_0x1c3667(0x1b0)]=_0x1c3667(0x1dc),_0x39ae2a[_0x1c3667(0x16c)]='<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>',_0x39ae2a[_0x1c3667(0x1ca)]='</tbody></table></body></html>';const _0x102e8a=_0x39ae2a;let _0x5162f8=_0x102e8a[_0x1c3667(0x1a0)];return _0x5162f8+=_0x102e8a[_0x1c3667(0x1b0)],_0x5162f8+=_0x102e8a['cYyKR'],_0x4c7bef[_0x1c3667(0x186)](_0xa1d4d7=>{const _0xaaa15f=_0x1c3667;_0x5162f8+='<tr><td>'+_0xa1d4d7[_0xaaa15f(0x1fa)]+_0xaaa15f(0x1f7)+_0xa1d4d7[_0xaaa15f(0x1af)]+_0xaaa15f(0x1d0);}),_0x5162f8+=_0x102e8a[_0x1c3667(0x1ca)],_0x5162f8;}static[a79_0x1634d0(0x1f5)](_0x4b4611){const _0x1ed306=a79_0x1634d0;if(!this[_0x1ed306(0x1d2)])return;const _0x4b625d={};_0x4b4611[_0x1ed306(0x1cc)](_0x2b2519=>{const _0x2245aa=_0x1ed306;!_0x4b625d[_0x2b2519[_0x2245aa(0x1fa)]]&&(_0x4b625d[_0x2b2519[_0x2245aa(0x1fa)]]=0x0),_0x4b625d[_0x2b2519[_0x2245aa(0x1fa)]]+=_0x2b2519[_0x2245aa(0x1af)];});const _0x3a280e=Object[_0x1ed306(0x1ac)](_0x4b625d)[_0x1ed306(0x1cc)](([_0x1894af,_0x25d327])=>{const _0x1b68f4={};return _0x1b68f4['name']=_0x1894af,_0x1b68f4['duration']=_0x25d327,_0x1b68f4;});fs['writeFileSync'](this[_0x1ed306(0x1d2)],JSON[_0x1ed306(0x187)](_0x3a280e));}static[a79_0x1634d0(0x1bf)](){const _0x2300c7=a79_0x1634d0,_0x2a6c32={};_0x2a6c32[_0x2300c7(0x16d)]=function(_0x2af870,_0xcd3cad){return _0x2af870===_0xcd3cad;},_0x2a6c32[_0x2300c7(0x200)]='false';const _0x4fb455=_0x2a6c32;return!_0x4fb455[_0x2300c7(0x16d)](process[_0x2300c7(0x1fb)][_0x2300c7(0x1b5)],_0x4fb455[_0x2300c7(0x200)]);}static[a79_0x1634d0(0x202)](_0x803b68,_0x4d630e,_0x538ac3=null,_0x899beb={},_0x2cbcda=null){const _0x4d267c=a79_0x1634d0,_0x101cd2={'Yzkvq':function(_0x37fe5d,_0x4dbe26){return _0x37fe5d(_0x4dbe26);},'GYbxG':function(_0xe6450b,_0x688f9b){return _0xe6450b(_0x688f9b);},'nCSNm':function(_0x1d278f,_0x3aa581){return _0x1d278f instanceof _0x3aa581;}};try{if(this[_0x4d267c(0x19d)]&&this[_0x4d267c(0x1bf)]()){let _0x509a92=_0x803b68;_0x538ac3&&(_0x509a92=_0x803b68+'['+JSON['stringify'](_0x538ac3)+']');PerformanceTester[_0x4d267c(0x1cd)](_0x509a92),this[_0x4d267c(0x1b3)]&&(this['details'][_0x509a92]=_0x899beb);try{const _0x3f5415=_0x4d630e[_0x4d267c(0x201)](null,_0x2cbcda);if(_0x101cd2['nCSNm'](_0x3f5415,Promise))return new Promise((_0x3185dc,_0x46baca)=>{const _0x1a1033=_0x4d267c,_0x126835={'gmYNF':function(_0x4fb997,_0x4ad3e3){const _0x346c54=a79_0x1c4e;return _0x101cd2[_0x346c54(0x1dd)](_0x4fb997,_0x4ad3e3);}};_0x3f5415[_0x1a1033(0x176)](_0x2ba114=>{const _0x2c4c36=_0x1a1033;PerformanceTester['end'](_0x509a92),_0x126835[_0x2c4c36(0x1e3)](_0x3185dc,_0x2ba114);})['catch'](_0x32cb5a=>{const _0x52a8a0=_0x1a1033;PerformanceTester[_0x52a8a0(0x1c1)](_0x509a92,![],util[_0x52a8a0(0x1c8)](_0x32cb5a)),_0x101cd2[_0x52a8a0(0x19f)](_0x46baca,_0x32cb5a);});});;return PerformanceTester[_0x4d267c(0x1c1)](_0x509a92),_0x3f5415;}catch(_0x512949){PerformanceTester['end'](_0x509a92,![],util[_0x4d267c(0x1c8)](_0x512949));throw _0x512949;}};return _0x4d630e[_0x4d267c(0x201)](null,_0x2cbcda);}catch(_0xa45ffa){return _0x4d630e[_0x4d267c(0x201)](null,_0x2cbcda);}}static['measureWrapper'](_0x537c9f,_0x229460,_0x5ba032={}){const _0x438889=a79_0x1634d0,_0x5231aa={'HtQGN':function(_0x4134a9){return _0x4134a9();}},_0x15c8c2=this;return _0x5ba032[_0x438889(0x1ee)]=_0x5231aa[_0x438889(0x1a3)](getProcessId),_0x5ba032['testName']=_0x5231aa[_0x438889(0x1a3)](getTestName),_0x5ba032[_0x438889(0x16f)]=global[_0x438889(0x1db)]&&global[_0x438889(0x1db)]['index'],function(){const _0x77801a=_0x438889,_0x4bf846=[_0x537c9f,_0x229460,null,_0x5ba032][_0x77801a(0x1e1)](arguments);return _0x15c8c2['measure'][_0x77801a(0x201)](_0x15c8c2,_0x4bf846);};}static['getCleanedPerfEvents'](){const _0x48f533=a79_0x1634d0,_0x300263=/(^.*)\[(.*)\]$/,_0x9c340f={},_0x1ea7fa={},_0x1fa48c=[],_0xb40b0d=this[_0x48f533(0x19e)][_0x48f533(0x1b8)](0x0,this[_0x48f533(0x19e)][_0x48f533(0x170)]);for(const _0xe03bc9 of _0xb40b0d){const _0x1440ca=_0xe03bc9[_0x48f533(0x1fa)][_0x48f533(0x1a7)](_0x300263),_0x5db901=Object[_0x48f533(0x1ef)]({},_0xe03bc9);_0x1440ca&&(_0x5db901[_0x48f533(0x1fa)]=_0x1440ca[0x1],_0x5db901[_0x48f533(0x1ae)]=JSON[_0x48f533(0x1ba)](_0x1440ca[0x2])),_0x1fa48c[_0x48f533(0x1b1)](_0x5db901);}return _0x1fa48c;}static['pushPerfMeasures'](){const _0x2663a5=a79_0x1634d0,_0x528e90={};_0x528e90[_0x2663a5(0x1c7)]=function(_0x1b83f9,_0x1af50c){return _0x1b83f9+_0x1af50c;},_0x528e90[_0x2663a5(0x16e)]=_0x2663a5(0x1ec),_0x528e90[_0x2663a5(0x192)]=function(_0x199e56,_0x601932){return _0x199e56===_0x601932;},_0x528e90[_0x2663a5(0x1d1)]=function(_0x4c239e,_0x59a6){return _0x4c239e+_0x59a6;};const _0x14193b=_0x528e90;try{if(fs['existsSync'](this['jsonReportDirPath'])){const _0x2ffd1a=fs[_0x2663a5(0x1d7)](this[_0x2663a5(0x197)]);for(const _0x4f0471 of _0x2ffd1a){fs[_0x2663a5(0x193)](path['join'](this[_0x2663a5(0x197)],_0x4f0471));}}}catch(_0x3e75dc){logger['debug'](_0x14193b[_0x2663a5(0x1c7)](_0x14193b[_0x2663a5(0x16e)],_0x3e75dc));}if(_0x14193b[_0x2663a5(0x192)](this[_0x2663a5(0x19e)][_0x2663a5(0x170)],0x0))return;const _0x242cd1=this[_0x2663a5(0x1d3)](),_0x1187cd=JSON[_0x2663a5(0x187)](_0x242cd1),_0x478c94=_0x14193b[_0x2663a5(0x1d1)](_0x1187cd[_0x2663a5(0x199)](0x1,-0x1),',');fs[_0x2663a5(0x1bc)](this[_0x2663a5(0x1d2)],_0x478c94);}static async[a79_0x1634d0(0x1aa)](){const _0xe99ed7=a79_0x1634d0,_0x18f740={};_0x18f740['cJdIO']=function(_0x1eac98,_0x268091){return _0x1eac98===_0x268091;},_0x18f740['YusMG']=function(_0x4bee13,_0x47365f){return _0x4bee13>_0x47365f;};const _0x1d2e22=_0x18f740;if(!this[_0xe99ed7(0x19d)]||_0x1d2e22[_0xe99ed7(0x1b6)](this[_0xe99ed7(0x19e)][_0xe99ed7(0x170)],0x0))return[];if(!fs[_0xe99ed7(0x19a)](this[_0xe99ed7(0x197)]))return this[_0xe99ed7(0x19e)];const _0x398e19=(await fsPromise['readdir'](this[_0xe99ed7(0x197)]))[_0xe99ed7(0x1cc)](_0x4d6a05=>path[_0xe99ed7(0x194)](this['jsonReportDirPath'],_0x4d6a05));let _0x2da149=(await Promise[_0xe99ed7(0x1b9)](_0x398e19['map'](_0x39af23=>fsPromise[_0xe99ed7(0x191)](_0x39af23,_0xe99ed7(0x1f9)))))[_0xe99ed7(0x1cc)](_0x533993=>'['+_0x533993[_0xe99ed7(0x199)](0x0,-0x1)+']')[_0xe99ed7(0x1cc)](_0x1ea9e6=>JSON[_0xe99ed7(0x1ba)](_0x1ea9e6))['flat']();return _0x1d2e22[_0xe99ed7(0x18b)](this[_0xe99ed7(0x19e)][_0xe99ed7(0x170)],0x0)&&(_0x2da149=_0x2da149[_0xe99ed7(0x1e1)](this[_0xe99ed7(0x1d3)]())),this['_observer'][_0xe99ed7(0x1ce)](),_0x2da149;}static[a79_0x1634d0(0x1c6)](){const _0x1e9c95=a79_0x1634d0,_0x1a1fa4={};_0x1a1fa4[_0x1e9c95(0x189)]=function(_0x169cb0,_0x561c74){return _0x169cb0===_0x561c74;},_0x1a1fa4['yGMhK']=function(_0x398c61,_0x4b0a06){return _0x398c61+_0x4b0a06;};const _0x3bc184=_0x1a1fa4;if(_0x3bc184[_0x1e9c95(0x189)](this[_0x1e9c95(0x182)][_0x1e9c95(0x170)],0x0))return;const _0x4671ad=JSON[_0x1e9c95(0x187)](this[_0x1e9c95(0x182)]),_0x15565d=_0x3bc184[_0x1e9c95(0x1c2)](_0x4671ad[_0x1e9c95(0x199)](0x1,-0x1),',');fs[_0x1e9c95(0x1bc)](this[_0x1e9c95(0x1f2)],_0x15565d);}static[a79_0x1634d0(0x1fc)](){const _0x5e61eb=a79_0x1634d0,_0x1a8668={};_0x1a8668[_0x5e61eb(0x1c5)]=function(_0x2d275e,_0x4009e8){return _0x2d275e>_0x4009e8;};const _0x21667a=_0x1a8668;if(!fs[_0x5e61eb(0x19a)](this[_0x5e61eb(0x183)]))return this['_errorEvents'];let _0x3ca6d8=fs[_0x5e61eb(0x185)](this[_0x5e61eb(0x183)])[_0x5e61eb(0x1c3)]();_0x3ca6d8='['+_0x3ca6d8[_0x5e61eb(0x199)](0x0,-0x1)+']';let _0x498fab=JSON[_0x5e61eb(0x1ba)](_0x3ca6d8);return _0x21667a['QnaZX'](this['_errorEvents'][_0x5e61eb(0x170)],0x0)&&(_0x498fab=_0x498fab[_0x5e61eb(0x1e1)](this[_0x5e61eb(0x182)])),fs[_0x5e61eb(0x193)](this['errorReportFileName']),_0x498fab;}static[a79_0x1634d0(0x177)](_0x56f96b){const _0x1741d5=a79_0x1634d0;if(!this[_0x1741d5(0x1bf)]())return;this['_errorEvents']['push']({'message':_0x56f96b[_0x1741d5(0x1b7)],'trace':_0x56f96b[_0x1741d5(0x1bd)],'code':_0x56f96b['code']||null,'time':new Date()});}static[a79_0x1634d0(0x1f1)](){const _0x3c9848=a79_0x1634d0;try{if(!this[_0x3c9848(0x1bf)]())return;this[_0x3c9848(0x17d)]['disconnect'](),this[_0x3c9848(0x1f8)](),this[_0x3c9848(0x1c6)]();}catch(_0x1b65f5){logger[_0x3c9848(0x1bb)](_0x3c9848(0x18f)+util[_0x3c9848(0x1c8)](_0x1b65f5));}}static async['finalize'](){const _0x13bba7=a79_0x1634d0,_0x40c117={'zeCor':function(_0x45408b,_0x780f2c){return _0x45408b(_0x780f2c);}};await _0x40c117[_0x13bba7(0x18c)](sleep,0x1e);const _0x262810=await this['finalizePerfMeasures'](),_0xe0161d=this[_0x13bba7(0x1fc)]();if(!this[_0x13bba7(0x1bf)]()){const _0xb55e45={};return _0xb55e45['measures']=[],_0xb55e45['errors']=[],_0xb55e45;}const _0x28a4ce={};return _0x28a4ce[_0x13bba7(0x1e5)]=_0x262810,_0x28a4ce[_0x13bba7(0x1e6)]=_0xe0161d,_0x28a4ce;}static[a79_0x1634d0(0x1cd)](_0x3f33b5){const _0x399e11=a79_0x1634d0,_0x4cf0c8={};_0x4cf0c8[_0x399e11(0x1ea)]=function(_0x14433c,_0x5d825c){return _0x14433c+_0x5d825c;},_0x4cf0c8[_0x399e11(0x1be)]=_0x399e11(0x168);const _0x45b86b=_0x4cf0c8,_0x1064e5=_0x45b86b[_0x399e11(0x1ea)](_0x3f33b5,_0x45b86b[_0x399e11(0x1be)]);if(this[_0x399e11(0x190)][_0x1064e5])return;performance[_0x399e11(0x1ab)](_0x1064e5),this[_0x399e11(0x190)][_0x1064e5]=0x1;}static[a79_0x1634d0(0x1c1)](_0xa1bbbc,_0x856f8c=!![],_0x1c567b=null,_0x1f09b1={}){const _0x5acd7e=a79_0x1634d0,_0x3dc839={'rNfjh':function(_0x59c481,_0x498087){return _0x59c481+_0x498087;},'viqMf':'-end','mengI':_0x5acd7e(0x168),'SwkqM':function(_0x38bc77){return _0x38bc77();},'iTYIZ':function(_0x256eea){return _0x256eea();}};performance[_0x5acd7e(0x1ab)](_0x3dc839[_0x5acd7e(0x19c)](_0xa1bbbc,_0x3dc839[_0x5acd7e(0x173)])),performance['measure'](_0xa1bbbc,_0x3dc839['rNfjh'](_0xa1bbbc,_0x3dc839[_0x5acd7e(0x1cf)]),_0x3dc839[_0x5acd7e(0x19c)](_0xa1bbbc,_0x3dc839[_0x5acd7e(0x173)]));const _0x2d79ea={};_0x2d79ea[_0x5acd7e(0x1a5)]=_0x856f8c,_0x2d79ea[_0x5acd7e(0x184)]=_0x1c567b,this[_0x5acd7e(0x1b3)][_0xa1bbbc]=Object[_0x5acd7e(0x1ef)](_0x2d79ea,Object[_0x5acd7e(0x1ef)](Object[_0x5acd7e(0x1ef)]({'worker':_0x3dc839[_0x5acd7e(0x1c0)](getProcessId),'platform':global[_0x5acd7e(0x1db)]&&global[_0x5acd7e(0x1db)][_0x5acd7e(0x1ed)],'testName':_0x3dc839['iTYIZ'](getTestName)},_0x1f09b1),this[_0x5acd7e(0x1b3)][_0xa1bbbc]||{}));}}function a79_0x1959(){const _0x3ee872=['-start','EWbdX','error-report','3350296TWNtEO','cYyKR','FqitZ','WOuPI','platform','length','/performance-report-','35235UpffQp','viqMf','nvQMS','TcheU','then','captureError','performance-report','getPerformance','.json','jsonReportDirName','Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','_observer','toJSON','../logger','generateHTMLReport','stopAndGenerate','_errorEvents','errorReportFileName','failure','readFileSync','forEach','stringify','25289820IXMVaH','gvFWa','mkdirSync','YusMG','zeCor','../processHelper','NTOBg','Error\x20stopping\x20monitoring\x20','eventsMap','readFile','opbXD','unlinkSync','resolve','errorReportDirName','function','jsonReportDirPath','28vESDvk','slice','existsSync','15XvlytI','rNfjh','started','_measureEvents','Yzkvq','NKBKw','PSUGw','RjOgc','HtQGN','writeFile','success','startMonitoring','match','vixya','getEventsFromJSON','finalizePerfMeasures','mark','entries','Error\x20in\x20writing\x20html\x20','meta','duration','jknLo','push','OPADt','details','lejTg','BROWSERSTACK_SDK_INSTRUMENTATION','cJdIO','message','splice','all','parse','debug','appendFileSync','stack','GkKPz','isEnabled','SwkqM','end','yGMhK','toString','entryTypes','QnaZX','pushErrors','eXLmi','format','Jovgq','EXPwX','buffered','map','start','disconnect','mengI','</td></tr>','MjGmh','jsonReportFileName','getCleanedPerfEvents','LHsRw','exports','GSVCR','readdirSync','83139xjwZQb','perf_hooks','Time\x20for\x20','__platformCaps','<h1>Performance\x20Report</h1>','GYbxG','observe','path','reduce','concat','/error-report-','gmYNF','browserStackCwd','measures','errors','performance-own.html','Performance\x20report\x20is\x20at\x20','1049112fueZRq','onPVC','join','Error\x20while\x20removing\x20files:\x20','index','worker','assign','4XjtfVd','stopMonitoring','errorFile','948339dRMcHk','GAsFJ','generateJSON','cwd','</td><td>','pushPerfMeasures','utf-8','name','env','finalizeErrors','_events','winstonLogger','1444194onHmtN','trfHz','apply','measure','log'];a79_0x1959=function(){return _0x3ee872;};return a79_0x1959();}module[a79_0x1634d0(0x1d5)]=PerformanceTester;
@@ -1 +1 @@
1
- const a80_0x261613=a80_0x114a;(function(_0x5c7f52,_0x3d4772){const _0x534578=a80_0x114a,_0x91a8c3=_0x5c7f52();while(!![]){try{const _0x4698e3=parseInt(_0x534578(0x88))/0x1+parseInt(_0x534578(0x83))/0x2*(parseInt(_0x534578(0x8a))/0x3)+-parseInt(_0x534578(0x8d))/0x4+-parseInt(_0x534578(0x7d))/0x5*(parseInt(_0x534578(0x7a))/0x6)+parseInt(_0x534578(0x80))/0x7*(parseInt(_0x534578(0x91))/0x8)+-parseInt(_0x534578(0x7e))/0x9+parseInt(_0x534578(0x79))/0xa*(-parseInt(_0x534578(0x89))/0xb);if(_0x4698e3===_0x3d4772)break;else _0x91a8c3['push'](_0x91a8c3['shift']());}catch(_0x42467d){_0x91a8c3['push'](_0x91a8c3['shift']());}}}(a80_0x1634,0x9a29c));const worker=require('worker_threads'),{fileLogger}=require(a80_0x261613(0x87)),{consoleHolder}=require(a80_0x261613(0x92)),globals=require('./globals');function a80_0x114a(_0x5f3ce7,_0x27a70e){const _0x1634c1=a80_0x1634();return a80_0x114a=function(_0x114a16,_0x5216c0){_0x114a16=_0x114a16-0x79;let _0x54d89d=_0x1634c1[_0x114a16];return _0x54d89d;},a80_0x114a(_0x5f3ce7,_0x27a70e);}function a80_0x1634(){const _0x2b0e79=['7978284fGFsej','][\x20OBSERVABILITY\x20]\x20','63NJMeDk','pid','browserstackTestName','6PnkqQU','JzmLT','env','debug','./logger','953719UcNOCO','2902196vyrDeA','530676GcGfqt','GAUXs','uAGOJ','134744XHFjbT','getGlobal','GQoSZ','true','609544FcsppH','./test-observability/constants','10kqEnuO','6HCmXlg','toISOString','BROWSERSTACK_OBSERVABILITY_DEBUG','1773410hZwHcl'];a80_0x1634=function(){return _0x2b0e79;};return a80_0x1634();}exports['getProcessId']=()=>{const _0x3ff751=a80_0x261613;return process[_0x3ff751(0x81)]+'-'+worker['threadId'];},exports['getTestName']=()=>{const _0x27fb25=a80_0x261613,_0x2f7ec4={};_0x2f7ec4[_0x27fb25(0x84)]=_0x27fb25(0x82);const _0x3e8fe4=_0x2f7ec4;return globals[_0x27fb25(0x8e)](_0x3e8fe4['JzmLT']);},exports['sleep']=(_0x41f24e=0x64)=>new Promise(_0x5a6227=>setTimeout(_0x5a6227,_0x41f24e)),exports['debug']=_0x4f5ffb=>{const _0x50f68e=a80_0x261613,_0x5b43a2={};_0x5b43a2[_0x50f68e(0x8c)]=function(_0x27ae98,_0x162255){return _0x27ae98===_0x162255;},_0x5b43a2['GAUXs']=_0x50f68e(0x90),_0x5b43a2[_0x50f68e(0x8f)]=function(_0x1007a4,_0x467335){return _0x1007a4===_0x467335;};const _0x4c3f68=_0x5b43a2;fileLogger[_0x50f68e(0x86)]('['+new Date()['toISOString']()+_0x50f68e(0x7f)+_0x4f5ffb),(_0x4c3f68['uAGOJ'](process[_0x50f68e(0x85)][_0x50f68e(0x7c)],_0x4c3f68[_0x50f68e(0x8b)])||_0x4c3f68['GQoSZ'](process[_0x50f68e(0x85)]['BROWSERSTACK_OBSERVABILITY_DEBUG'],'1'))&&consoleHolder['log']('\x0a['+new Date()[_0x50f68e(0x7b)]()+_0x50f68e(0x7f)+_0x4f5ffb+'\x0a');};
1
+ const a80_0x779bb2=a80_0x3202;function a80_0x3202(_0xd0b0f2,_0x5dc04d){const _0x112b9c=a80_0x112b();return a80_0x3202=function(_0x3202e3,_0x44ac67){_0x3202e3=_0x3202e3-0xe6;let _0x4bf774=_0x112b9c[_0x3202e3];return _0x4bf774;},a80_0x3202(_0xd0b0f2,_0x5dc04d);}(function(_0x26f8e3,_0x3a56e6){const _0xf45a67=a80_0x3202,_0x15286e=_0x26f8e3();while(!![]){try{const _0x5bab56=parseInt(_0xf45a67(0xed))/0x1+-parseInt(_0xf45a67(0xfd))/0x2*(parseInt(_0xf45a67(0xf4))/0x3)+parseInt(_0xf45a67(0xe9))/0x4*(parseInt(_0xf45a67(0xef))/0x5)+parseInt(_0xf45a67(0xe7))/0x6+parseInt(_0xf45a67(0xf8))/0x7*(-parseInt(_0xf45a67(0xe8))/0x8)+parseInt(_0xf45a67(0xfe))/0x9*(parseInt(_0xf45a67(0xf5))/0xa)+-parseInt(_0xf45a67(0xfc))/0xb*(parseInt(_0xf45a67(0xee))/0xc);if(_0x5bab56===_0x3a56e6)break;else _0x15286e['push'](_0x15286e['shift']());}catch(_0x101d6b){_0x15286e['push'](_0x15286e['shift']());}}}(a80_0x112b,0x4f3e8));function a80_0x112b(){const _0x31fb57=['getProcessId','toISOString','643314NBHUWc','5748QhpVAR','2305kRuXmy','browserstackTestName','log','env','dmbHM','293988NFwpOP','70190SwPtnl','./test-observability/constants','pid','7oTVJnr','getGlobal','puPVQ','debug','28127aGXkTr','2QyqqNN','324rAcuRz','ETDOr','BROWSERSTACK_OBSERVABILITY_DEBUG','worker_threads','2115444wSPqTd','431128PjQFuY','3928ESsEYE','./logger'];a80_0x112b=function(){return _0x31fb57;};return a80_0x112b();}const worker=require(a80_0x779bb2(0xe6)),{fileLogger}=require(a80_0x779bb2(0xea)),{consoleHolder}=require(a80_0x779bb2(0xf6)),globals=require('./globals');exports[a80_0x779bb2(0xeb)]=()=>{const _0x3d2d43=a80_0x779bb2;return process[_0x3d2d43(0xf7)]+'-'+worker['threadId'];},exports['getTestName']=()=>{const _0x459de6=a80_0x779bb2,_0x26fe03={};_0x26fe03['ETDOr']=_0x459de6(0xf0);const _0x3d10b9=_0x26fe03;return globals[_0x459de6(0xf9)](_0x3d10b9[_0x459de6(0xff)]);},exports['sleep']=(_0x3e7199=0x64)=>new Promise(_0xe38cda=>setTimeout(_0xe38cda,_0x3e7199)),exports[a80_0x779bb2(0xfb)]=_0x6d2496=>{const _0x50a9d3=a80_0x779bb2,_0x257f71={};_0x257f71[_0x50a9d3(0xfa)]=function(_0x2cd6b5,_0x20e7d9){return _0x2cd6b5===_0x20e7d9;},_0x257f71['dmbHM']='true';const _0x495e75=_0x257f71;fileLogger[_0x50a9d3(0xfb)]('['+new Date()[_0x50a9d3(0xec)]()+'][\x20OBSERVABILITY\x20]\x20'+_0x6d2496),(_0x495e75['puPVQ'](process['env']['BROWSERSTACK_OBSERVABILITY_DEBUG'],_0x495e75[_0x50a9d3(0xf3)])||_0x495e75[_0x50a9d3(0xfa)](process[_0x50a9d3(0xf2)][_0x50a9d3(0x100)],'1'))&&consoleHolder[_0x50a9d3(0xf1)]('\x0a['+new Date()[_0x50a9d3(0xec)]()+'][\x20OBSERVABILITY\x20]\x20'+_0x6d2496+'\x0a');};
@@ -1 +1 @@
1
- const a81_0x4bf1f2=a81_0x1bf1;function a81_0x2d87(){const _0x13574d=['CvLHa','host','unpatch','pglQH','SpERL','hostname','https','exports','removeListener','4934363tVEjJA','slice','qxwlG','headers','http','error','31912JhmjcR','899503Qvjqxs','Ymrgh','4262MVTLbI','statusCode','270lAlEqz','object','socket','monkeypatch','path','call','once','url','1463508mJekKP','duration_ms','GzpPW','response','prototype','360gUeEID','YOFTM','214220cJqNeJ','nGoyg','apply','Ykmyf','87iEQJbK','351197TfvYCl','end','Krlgp','request','VKMAw','now','IskVV','XAhKC','method','spy','vbaqD','78kgZfWa','status_code','pathname','restore'];a81_0x2d87=function(){return _0x13574d;};return a81_0x2d87();}(function(_0x2f5fba,_0xa78696){const _0x235e92=a81_0x1bf1,_0x16b786=_0x2f5fba();while(!![]){try{const _0x1fb462=parseInt(_0x235e92(0x1a1))/0x1+-parseInt(_0x235e92(0x1a3))/0x2*(-parseInt(_0x235e92(0x1b8))/0x3)+parseInt(_0x235e92(0x1ad))/0x4+parseInt(_0x235e92(0x1b4))/0x5*(-parseInt(_0x235e92(0x1c4))/0x6)+parseInt(_0x235e92(0x1d1))/0x7+parseInt(_0x235e92(0x1a0))/0x8*(-parseInt(_0x235e92(0x1b2))/0x9)+-parseInt(_0x235e92(0x1a5))/0xa*(parseInt(_0x235e92(0x1b9))/0xb);if(_0x1fb462===_0xa78696)break;else _0x16b786['push'](_0x16b786['shift']());}catch(_0x473cd8){_0x16b786['push'](_0x16b786['shift']());}}}(a81_0x2d87,0x6eb97));const http=require(a81_0x4bf1f2(0x1d5)),https=require(a81_0x4bf1f2(0x1ce)),monkeypatch=require(a81_0x4bf1f2(0x1a8));function spy(_0x3979fb){const _0x4bc851=a81_0x4bf1f2,_0x23dadc={'qOYYH':function(_0x2ef714,_0x7f2ab8){return _0x2ef714 instanceof _0x7f2ab8;},'Krlgp':function(_0x5b1e81,_0x26d0a2){return _0x5b1e81===_0x26d0a2;},'GzpPW':_0x4bc851(0x1a6),'SpERL':function(_0x42f10f,..._0x9600fa){return _0x42f10f(..._0x9600fa);},'pglQH':function(_0x2ba6be,_0x40a0f3,_0x194165){return _0x2ba6be(_0x40a0f3,_0x194165);},'XAhKC':function(_0x280377,_0x1056a3){return _0x280377-_0x1056a3;},'VKMAw':_0x4bc851(0x19f),'nGoyg':_0x4bc851(0x1b0),'bIRVS':_0x4bc851(0x1a7),'Ykmyf':function(_0x58faba,_0xba5a82,_0x1ece9a,_0x15ee10){return _0x58faba(_0xba5a82,_0x1ece9a,_0x15ee10);},'Ymrgh':_0x4bc851(0x1ba),'vbaqD':function(_0x38007d,_0x23fd0d,_0xb92c95,_0x3ddb5b){return _0x38007d(_0x23fd0d,_0xb92c95,_0x3ddb5b);},'qxwlG':'request'},_0xd7e694=function(){const _0xfda2b4=_0x4bc851,_0x450168={'YOFTM':function(_0x40998c,_0x42a7af,_0xdb9fd7){const _0x36d062=a81_0x1bf1;return _0x23dadc[_0x36d062(0x1cb)](_0x40998c,_0x42a7af,_0xdb9fd7);},'IskVV':function(_0xb8607,_0x1c0b07){const _0x2c31c6=a81_0x1bf1;return _0x23dadc[_0x2c31c6(0x1c0)](_0xb8607,_0x1c0b07);},'CvLHa':_0x23dadc[_0xfda2b4(0x1bd)]},_0x526a3e=arguments[0x0],_0x3f7792=Array[_0xfda2b4(0x1b1)][_0xfda2b4(0x1d2)][_0xfda2b4(0x1aa)](arguments,0x1),_0x3451a4=_0x526a3e[_0xfda2b4(0x1b6)](this,_0x3f7792);let _0x13157f=Date[_0xfda2b4(0x1be)](),_0x3168a7;const _0x5af4b5={};_0x3f7792['forEach'](_0xf40f72=>{const _0x508bca=_0xfda2b4;if(_0x23dadc['qOYYH'](_0xf40f72,URL)){const _0x5fff33={};_0x5fff33[_0x508bca(0x1ac)]=_0xf40f72,Object['assign'](_0x5af4b5,_0x5fff33);}else _0x23dadc[_0x508bca(0x1bb)](typeof _0xf40f72,_0x23dadc[_0x508bca(0x1af)])&&Object['assign'](_0x5af4b5,_0xf40f72);});const _0x55195b=_0x372003=>{const _0x3c7cd4=_0xfda2b4,_0x308de4={};_0x308de4[_0x3c7cd4(0x1c9)]=_0x5af4b5['host']||_0x5af4b5['hostname']||_0x5af4b5[_0x3c7cd4(0x1ac)]&&(_0x5af4b5[_0x3c7cd4(0x1ac)][_0x3c7cd4(0x1c9)]||_0x5af4b5[_0x3c7cd4(0x1ac)]['hostname']),_0x308de4[_0x3c7cd4(0x1a9)]=_0x5af4b5[_0x3c7cd4(0x1a9)]||_0x5af4b5[_0x3c7cd4(0x1ac)]&&_0x5af4b5[_0x3c7cd4(0x1ac)]['pathname'],_0x308de4[_0x3c7cd4(0x1c1)]=_0x5af4b5[_0x3c7cd4(0x1c1)],_0x308de4['headers']=_0x5af4b5[_0x3c7cd4(0x1d4)],_0x450168[_0x3c7cd4(0x1b3)](_0x3979fb,_0x372003,_0x308de4);};return _0x3451a4[_0xfda2b4(0x1ab)](_0x23dadc[_0xfda2b4(0x1b5)],_0x353f88=>{const _0x5696ea=_0xfda2b4,_0x4275f6=_0x450168[_0x5696ea(0x1bf)](Date[_0x5696ea(0x1be)](),_0x13157f),_0x4a5d95={};_0x4a5d95[_0x5696ea(0x1cd)]=_0x5af4b5['host']||_0x5af4b5[_0x5696ea(0x1cd)]||_0x5af4b5['url']&&(_0x5af4b5[_0x5696ea(0x1ac)][_0x5696ea(0x1c9)]||_0x5af4b5[_0x5696ea(0x1ac)]['hostname']),_0x4a5d95[_0x5696ea(0x1a9)]=_0x5af4b5['path']||_0x5af4b5[_0x5696ea(0x1ac)]&&_0x5af4b5[_0x5696ea(0x1ac)][_0x5696ea(0x1c6)],_0x4a5d95[_0x5696ea(0x1c1)]=_0x5af4b5[_0x5696ea(0x1c1)],_0x4a5d95[_0x5696ea(0x1d4)]=_0x5af4b5[_0x5696ea(0x1d4)],_0x4a5d95[_0x5696ea(0x1c5)]=_0x353f88[_0x5696ea(0x1a4)],_0x4a5d95[_0x5696ea(0x1ae)]=_0x4275f6,_0x450168[_0x5696ea(0x1b3)](_0x3979fb,null,_0x4a5d95),_0x3168a7[_0x5696ea(0x1d0)](_0x450168[_0x5696ea(0x1c8)],_0x55195b);}),_0x3451a4['on'](_0x23dadc['bIRVS'],_0x48d3ce=>{const _0x2c7ba0=_0xfda2b4;_0x3168a7=_0x48d3ce,_0x48d3ce[_0x2c7ba0(0x1ab)](_0x450168[_0x2c7ba0(0x1c8)],_0x55195b);}),_0x23dadc[_0xfda2b4(0x1b7)](monkeypatch,_0x3451a4,_0x23dadc[_0xfda2b4(0x1a2)],(_0x2db4d6,..._0x1a2903)=>{const _0x5278d8=_0xfda2b4;_0x13157f=Date['now'](),_0x23dadc[_0x5278d8(0x1cc)](_0x2db4d6,..._0x1a2903);}),_0x3451a4;};_0x23dadc[_0x4bc851(0x1c3)](monkeypatch,http,_0x23dadc[_0x4bc851(0x1d3)],_0xd7e694),_0x23dadc[_0x4bc851(0x1b7)](monkeypatch,https,_0x23dadc[_0x4bc851(0x1d3)],_0xd7e694);}function restore(){const _0x5b8265=a81_0x4bf1f2;http[_0x5b8265(0x1bc)][_0x5b8265(0x1ca)](),https[_0x5b8265(0x1bc)][_0x5b8265(0x1ca)]();}function a81_0x1bf1(_0x5af9bf,_0x4721db){const _0x2d8799=a81_0x2d87();return a81_0x1bf1=function(_0x1bf1b8,_0x3e272a){_0x1bf1b8=_0x1bf1b8-0x19f;let _0x2afc50=_0x2d8799[_0x1bf1b8];return _0x2afc50;},a81_0x1bf1(_0x5af9bf,_0x4721db);}const a81_0x1400a5={};a81_0x1400a5[a81_0x4bf1f2(0x1c2)]=spy,a81_0x1400a5[a81_0x4bf1f2(0x1c7)]=restore,module[a81_0x4bf1f2(0x1cf)]=a81_0x1400a5;
1
+ const a81_0x22e361=a81_0x2212;(function(_0x1efcad,_0x2aaf5b){const _0x3eab7f=a81_0x2212,_0x3d3c66=_0x1efcad();while(!![]){try{const _0x53f1cb=parseInt(_0x3eab7f(0x106))/0x1+parseInt(_0x3eab7f(0x105))/0x2+parseInt(_0x3eab7f(0x117))/0x3*(parseInt(_0x3eab7f(0x119))/0x4)+parseInt(_0x3eab7f(0xff))/0x5+-parseInt(_0x3eab7f(0x102))/0x6*(parseInt(_0x3eab7f(0x10d))/0x7)+-parseInt(_0x3eab7f(0xf7))/0x8+parseInt(_0x3eab7f(0x10e))/0x9;if(_0x53f1cb===_0x2aaf5b)break;else _0x3d3c66['push'](_0x3d3c66['shift']());}catch(_0x2eeb14){_0x3d3c66['push'](_0x3d3c66['shift']());}}}(a81_0x4c7b,0x71291));function a81_0x4c7b(){const _0x302a7b=['unpatch','420621fsUOgI','method','16fSTWeb','object','statusCode','LQgvc','headers','nHaHO','now','exports','pathname','path','monkeypatch','okjgb','hostname','http','host','4498248MsbKKq','VDrRa','EnyQR','response','error','once','https','coJHC','773380ReNDFK','UToXE','EQiQs','201906GsKrXP','prototype','socket','1077282CJEjPo','384338rpuiWX','restore','wUxmo','url','slice','status_code','apply','161INGQjY','1451484PhfDlz','duration_ms','qWJCu','request','assign','call','bcrKv','spy'];a81_0x4c7b=function(){return _0x302a7b;};return a81_0x4c7b();}const http=require(a81_0x22e361(0xf5)),https=require(a81_0x22e361(0xfd)),monkeypatch=require(a81_0x22e361(0x123));function a81_0x2212(_0x2e5086,_0x45b42c){const _0x4c7b14=a81_0x4c7b();return a81_0x2212=function(_0x221297,_0x7c7ad2){_0x221297=_0x221297-0xf3;let _0x44685b=_0x4c7b14[_0x221297];return _0x44685b;},a81_0x2212(_0x2e5086,_0x45b42c);}function spy(_0x31f6a9){const _0x100c9a=a81_0x22e361,_0x2475a0={'jBhiR':function(_0x1eec54,_0x10ba36){return _0x1eec54 instanceof _0x10ba36;},'LQgvc':function(_0x3dbbc8,_0x914ee8){return _0x3dbbc8===_0x914ee8;},'bcrKv':_0x100c9a(0x11a),'VDrRa':function(_0x1e03a7,_0xb4f51e){return _0x1e03a7-_0xb4f51e;},'eWjUY':function(_0x3efd8a,_0x466eb6,_0x170c00){return _0x3efd8a(_0x466eb6,_0x170c00);},'coJHC':_0x100c9a(0xfb),'EQiQs':function(_0x518fb1,_0x566f9c,_0x173725){return _0x518fb1(_0x566f9c,_0x173725);},'nHaHO':function(_0x1eb21e,..._0x36f6f3){return _0x1eb21e(..._0x36f6f3);},'EnyQR':_0x100c9a(0xfa),'UToXE':_0x100c9a(0x104),'wUxmo':function(_0x22d280,_0x3555e0,_0x2182e4,_0x4c2d7d){return _0x22d280(_0x3555e0,_0x2182e4,_0x4c2d7d);},'mbgIP':'end','qWJCu':_0x100c9a(0x111),'okjgb':function(_0x58bb97,_0x3dfca8,_0x1ddd1a,_0x27ae05){return _0x58bb97(_0x3dfca8,_0x1ddd1a,_0x27ae05);}},_0x3dfae5=function(){const _0x25ade6=_0x100c9a,_0x1e861e={'Jswne':function(_0x195d19,_0x5d4641,_0x1e80fb){const _0x7369f3=a81_0x2212;return _0x2475a0[_0x7369f3(0x101)](_0x195d19,_0x5d4641,_0x1e80fb);},'acVla':function(_0x5de222,..._0x55d58a){const _0x11a281=a81_0x2212;return _0x2475a0[_0x11a281(0x11e)](_0x5de222,..._0x55d58a);}},_0x4f5e3a=arguments[0x0],_0x18b32f=Array[_0x25ade6(0x103)][_0x25ade6(0x10a)][_0x25ade6(0x113)](arguments,0x1),_0x2e6abf=_0x4f5e3a[_0x25ade6(0x10c)](this,_0x18b32f);let _0x464c92=Date[_0x25ade6(0x11f)](),_0xd3d3a4;const _0x41de5e={};_0x18b32f['forEach'](_0x2c5110=>{const _0x382405=_0x25ade6;if(_0x2475a0['jBhiR'](_0x2c5110,URL)){const _0x4755a6={};_0x4755a6['url']=_0x2c5110,Object['assign'](_0x41de5e,_0x4755a6);}else _0x2475a0[_0x382405(0x11c)](typeof _0x2c5110,_0x2475a0[_0x382405(0x114)])&&Object[_0x382405(0x112)](_0x41de5e,_0x2c5110);});const _0xa8c080=_0x92c591=>{const _0x3ce999=_0x25ade6,_0x315bab={};_0x315bab['host']=_0x41de5e[_0x3ce999(0xf6)]||_0x41de5e[_0x3ce999(0xf4)]||_0x41de5e['url']&&(_0x41de5e[_0x3ce999(0x109)]['host']||_0x41de5e[_0x3ce999(0x109)]['hostname']),_0x315bab[_0x3ce999(0x122)]=_0x41de5e[_0x3ce999(0x122)]||_0x41de5e[_0x3ce999(0x109)]&&_0x41de5e[_0x3ce999(0x109)][_0x3ce999(0x121)],_0x315bab[_0x3ce999(0x118)]=_0x41de5e[_0x3ce999(0x118)],_0x315bab[_0x3ce999(0x11d)]=_0x41de5e[_0x3ce999(0x11d)],_0x1e861e['Jswne'](_0x31f6a9,_0x92c591,_0x315bab);};return _0x2e6abf[_0x25ade6(0xfc)](_0x2475a0[_0x25ade6(0xf9)],_0x12c307=>{const _0x2fb49a=_0x25ade6,_0x4f6afd=_0x2475a0[_0x2fb49a(0xf8)](Date[_0x2fb49a(0x11f)](),_0x464c92),_0x518204={};_0x518204[_0x2fb49a(0xf4)]=_0x41de5e[_0x2fb49a(0xf6)]||_0x41de5e[_0x2fb49a(0xf4)]||_0x41de5e[_0x2fb49a(0x109)]&&(_0x41de5e[_0x2fb49a(0x109)]['host']||_0x41de5e['url'][_0x2fb49a(0xf4)]),_0x518204[_0x2fb49a(0x122)]=_0x41de5e[_0x2fb49a(0x122)]||_0x41de5e[_0x2fb49a(0x109)]&&_0x41de5e[_0x2fb49a(0x109)][_0x2fb49a(0x121)],_0x518204[_0x2fb49a(0x118)]=_0x41de5e[_0x2fb49a(0x118)],_0x518204[_0x2fb49a(0x11d)]=_0x41de5e[_0x2fb49a(0x11d)],_0x518204[_0x2fb49a(0x10b)]=_0x12c307[_0x2fb49a(0x11b)],_0x518204[_0x2fb49a(0x10f)]=_0x4f6afd,_0x2475a0['eWjUY'](_0x31f6a9,null,_0x518204),_0xd3d3a4['removeListener'](_0x2475a0[_0x2fb49a(0xfe)],_0xa8c080);}),_0x2e6abf['on'](_0x2475a0[_0x25ade6(0x100)],_0x5726b9=>{const _0x3e66d6=_0x25ade6;_0xd3d3a4=_0x5726b9,_0x5726b9['once'](_0x2475a0[_0x3e66d6(0xfe)],_0xa8c080);}),_0x2475a0[_0x25ade6(0x108)](monkeypatch,_0x2e6abf,_0x2475a0['mbgIP'],(_0x18ae04,..._0x35c539)=>{const _0x256ab0=_0x25ade6;_0x464c92=Date[_0x256ab0(0x11f)](),_0x1e861e['acVla'](_0x18ae04,..._0x35c539);}),_0x2e6abf;};_0x2475a0['wUxmo'](monkeypatch,http,_0x2475a0[_0x100c9a(0x110)],_0x3dfae5),_0x2475a0[_0x100c9a(0xf3)](monkeypatch,https,_0x2475a0[_0x100c9a(0x110)],_0x3dfae5);}function restore(){const _0x39cdfd=a81_0x22e361;http[_0x39cdfd(0x111)][_0x39cdfd(0x116)](),https[_0x39cdfd(0x111)][_0x39cdfd(0x116)]();}const a81_0x32e87d={};a81_0x32e87d[a81_0x22e361(0x115)]=spy,a81_0x32e87d[a81_0x22e361(0x107)]=restore,module[a81_0x22e361(0x120)]=a81_0x32e87d;
@@ -1 +1 @@
1
- const a82_0x53abe7=a82_0x505a;function a82_0x4ca0(){const _0x5313b1=['prototype','hwvvQ','./performance/constants','globalAgent','IsfWj','865788vogZgw','keepAlive','measureWrapper','KEEP_ALIVE','605coUgmA','http','call','https:','nyDsm','https','36FFOALc','request','6LfdJqp','hasOwnProperty','keepAliveMsecs','14583456QaYJMg','zZcoL','Agent','308026GXehqN','xyHwS','protocol','666oltNlf','aZkHQ','7EwmUZn','75183fYExkJ','355215VafzbM','./performance/performance-tester','agent','86872jlRAGs','115170sFyxNX'];a82_0x4ca0=function(){return _0x5313b1;};return a82_0x4ca0();}(function(_0x184d37,_0xb5ce51){const _0x50a626=a82_0x505a,_0x511e7a=_0x184d37();while(!![]){try{const _0x28be67=-parseInt(_0x50a626(0x1f7))/0x1*(-parseInt(_0x50a626(0x1f2))/0x2)+parseInt(_0x50a626(0x1f8))/0x3+-parseInt(_0x50a626(0x1ea))/0x4*(parseInt(_0x50a626(0x1f9))/0x5)+parseInt(_0x50a626(0x1ec))/0x6*(parseInt(_0x50a626(0x203))/0x7)+-parseInt(_0x50a626(0x1fc))/0x8*(-parseInt(_0x50a626(0x1f5))/0x9)+-parseInt(_0x50a626(0x1fd))/0xa*(-parseInt(_0x50a626(0x207))/0xb)+-parseInt(_0x50a626(0x1ef))/0xc;if(_0x28be67===_0xb5ce51)break;else _0x511e7a['push'](_0x511e7a['shift']());}catch(_0x45d57c){_0x511e7a['push'](_0x511e7a['shift']());}}}(a82_0x4ca0,0xc58ca));const PerformanceTester=require(a82_0x53abe7(0x1fa)),{AUTOMATE_EVENTS:PerformanceEvents}=require(a82_0x53abe7(0x200));function a82_0x505a(_0x6ccc78,_0x3fdcaf){const _0x4ca033=a82_0x4ca0();return a82_0x505a=function(_0x505ad3,_0x5bfe67){_0x505ad3=_0x505ad3-0x1e7;let _0x4b18ee=_0x4ca033[_0x505ad3];return _0x4b18ee;},a82_0x505a(_0x6ccc78,_0x3fdcaf);}module['exports']=PerformanceTester[a82_0x53abe7(0x205)](PerformanceEvents[a82_0x53abe7(0x206)],function(){const _0x22e488=a82_0x53abe7,_0x4622ab={'cJPam':function(_0x2b2775,_0x188728){return _0x2b2775===_0x188728;},'nyDsm':_0x22e488(0x1e7),'GePax':_0x22e488(0x1fb),'aZkHQ':function(_0x4cc762,_0x4ce054,_0x5a144e){return _0x4cc762(_0x4ce054,_0x5a144e);},'xyHwS':function(_0x120996,_0x19bd4a,_0x48f87f){return _0x120996(_0x19bd4a,_0x48f87f);},'hwvvQ':function(_0x54273a,_0x2550c5){return _0x54273a(_0x2550c5);},'gCawm':_0x22e488(0x208),'IsfWj':_0x22e488(0x1e9),'zZcoL':function(_0x58fe13,_0x20caf8){return _0x58fe13*_0x20caf8;},'PortS':_0x22e488(0x204)},_0x1193fb=_0x4622ab[_0x22e488(0x1ff)](require,_0x4622ab['gCawm']),_0x29343b=_0x4622ab[_0x22e488(0x1ff)](require,_0x4622ab[_0x22e488(0x202)]),_0x34c0eb=_0x4622ab[_0x22e488(0x1f0)](0x1e,0x3e8);if(_0x1193fb[_0x22e488(0x201)]&&Object[_0x22e488(0x1fe)][_0x22e488(0x1ed)][_0x22e488(0x209)](_0x1193fb['globalAgent'],_0x4622ab['PortS']))_0x1193fb[_0x22e488(0x201)][_0x22e488(0x204)]=!![],_0x29343b['globalAgent'][_0x22e488(0x204)]=!![],_0x1193fb[_0x22e488(0x201)]['keepAliveMsecs']=_0x34c0eb,_0x29343b['globalAgent'][_0x22e488(0x1ee)]=_0x34c0eb;else{const _0x5bfa79={};_0x5bfa79[_0x22e488(0x204)]=!![],_0x5bfa79[_0x22e488(0x1ee)]=_0x34c0eb;const _0x51aeb4=new _0x1193fb[(_0x22e488(0x1f1))](_0x5bfa79),_0xb6a87f={};_0xb6a87f[_0x22e488(0x204)]=!![],_0xb6a87f[_0x22e488(0x1ee)]=_0x34c0eb;const _0x393119=new _0x29343b[(_0x22e488(0x1f1))](_0xb6a87f),_0x2c8f80=_0x1193fb['request'],_0x1c74b7=_0x29343b[_0x22e488(0x1eb)];_0x1193fb['request']=function(_0x5a10d5,_0xd43eb5){const _0x2f3ee0=_0x22e488;if(_0x4622ab['cJPam'](_0x5a10d5[_0x2f3ee0(0x1f4)],_0x4622ab[_0x2f3ee0(0x1e8)]))return _0x5a10d5[_0x4622ab['GePax']]=_0x393119,_0x4622ab[_0x2f3ee0(0x1f6)](_0x1c74b7,_0x5a10d5,_0xd43eb5);return _0x5a10d5[_0x4622ab['GePax']]=_0x51aeb4,_0x4622ab[_0x2f3ee0(0x1f3)](_0x2c8f80,_0x5a10d5,_0xd43eb5);};}});
1
+ const a82_0x4983b0=a82_0x49a6;(function(_0x51acca,_0x757f67){const _0x1c4526=a82_0x49a6,_0x37a2b1=_0x51acca();while(!![]){try{const _0x50f715=parseInt(_0x1c4526(0x1eb))/0x1+-parseInt(_0x1c4526(0x1e1))/0x2*(-parseInt(_0x1c4526(0x201))/0x3)+parseInt(_0x1c4526(0x1fb))/0x4+parseInt(_0x1c4526(0x1fa))/0x5+parseInt(_0x1c4526(0x1f5))/0x6*(parseInt(_0x1c4526(0x1ff))/0x7)+-parseInt(_0x1c4526(0x1e4))/0x8+-parseInt(_0x1c4526(0x1e3))/0x9;if(_0x50f715===_0x757f67)break;else _0x37a2b1['push'](_0x37a2b1['shift']());}catch(_0x4dc1a2){_0x37a2b1['push'](_0x37a2b1['shift']());}}}(a82_0x49af,0x2d592));const PerformanceTester=require(a82_0x4983b0(0x1ee)),{AUTOMATE_EVENTS:PerformanceEvents}=require(a82_0x4983b0(0x1e0));function a82_0x49a6(_0x5a179a,_0x902d91){const _0x49af55=a82_0x49af();return a82_0x49a6=function(_0x49a698,_0x39056d){_0x49a698=_0x49a698-0x1df;let _0x190e2c=_0x49af55[_0x49a698];return _0x190e2c;},a82_0x49a6(_0x5a179a,_0x902d91);}function a82_0x49af(){const _0x47e3c0=['7bwmEnv','keepAliveMsecs','5895FRyCRy','agent','./performance/constants','124pgHqbi','keLai','2587941GUgpFx','390352AcytXb','https:','prototype','Agent','yAmpG','keepAlive','globalAgent','111032xXhMWf','request','EEUXb','./performance/performance-tester','call','UAzvU','GLxEN','KEEP_ALIVE','kvDaV','RGjwK','409944WBccSG','exports','qWeyr','WHmil','protocol','82205lmRCvg','817848JGaTBD','hasOwnProperty','http','https'];a82_0x49af=function(){return _0x47e3c0;};return a82_0x49af();}module[a82_0x4983b0(0x1f6)]=PerformanceTester['measureWrapper'](PerformanceEvents[a82_0x4983b0(0x1f2)],function(){const _0x338928=a82_0x4983b0,_0x362072={'GLxEN':function(_0x5dd5b3,_0x6957f2){return _0x5dd5b3===_0x6957f2;},'qWeyr':_0x338928(0x1e5),'UAzvU':_0x338928(0x1df),'kvDaV':function(_0x509189,_0x3870dd,_0x3775d4){return _0x509189(_0x3870dd,_0x3775d4);},'keLai':function(_0x134714,_0x33379d){return _0x134714(_0x33379d);},'EEUXb':_0x338928(0x1fd),'GikWB':function(_0x136776,_0x16e81b){return _0x136776(_0x16e81b);},'RGjwK':_0x338928(0x1fe),'WHmil':function(_0x1d8462,_0x347f5a){return _0x1d8462*_0x347f5a;},'yAmpG':'keepAlive'},_0x58cfab=_0x362072[_0x338928(0x1e2)](require,_0x362072[_0x338928(0x1ed)]),_0x3ac9cc=_0x362072['GikWB'](require,_0x362072[_0x338928(0x1f4)]),_0x83d9c1=_0x362072[_0x338928(0x1f8)](0x1e,0x3e8);if(_0x58cfab[_0x338928(0x1ea)]&&Object[_0x338928(0x1e6)][_0x338928(0x1fc)][_0x338928(0x1ef)](_0x58cfab[_0x338928(0x1ea)],_0x362072[_0x338928(0x1e8)]))_0x58cfab['globalAgent'][_0x338928(0x1e9)]=!![],_0x3ac9cc[_0x338928(0x1ea)][_0x338928(0x1e9)]=!![],_0x58cfab[_0x338928(0x1ea)][_0x338928(0x200)]=_0x83d9c1,_0x3ac9cc[_0x338928(0x1ea)][_0x338928(0x200)]=_0x83d9c1;else{const _0x2a9312={};_0x2a9312[_0x338928(0x1e9)]=!![],_0x2a9312[_0x338928(0x200)]=_0x83d9c1;const _0xb97e06=new _0x58cfab[(_0x338928(0x1e7))](_0x2a9312),_0x4fae49={};_0x4fae49[_0x338928(0x1e9)]=!![],_0x4fae49[_0x338928(0x200)]=_0x83d9c1;const _0x3b93a1=new _0x3ac9cc['Agent'](_0x4fae49),_0x2a2fb0=_0x58cfab[_0x338928(0x1ec)],_0x53d036=_0x3ac9cc[_0x338928(0x1ec)];_0x58cfab[_0x338928(0x1ec)]=function(_0x225017,_0x4a9e78){const _0x2a4ce2=_0x338928;if(_0x362072[_0x2a4ce2(0x1f1)](_0x225017[_0x2a4ce2(0x1f9)],_0x362072[_0x2a4ce2(0x1f7)]))return _0x225017[_0x362072[_0x2a4ce2(0x1f0)]]=_0x3b93a1,_0x362072['kvDaV'](_0x53d036,_0x225017,_0x4a9e78);return _0x225017[_0x362072[_0x2a4ce2(0x1f0)]]=_0xb97e06,_0x362072[_0x2a4ce2(0x1f3)](_0x2a2fb0,_0x225017,_0x4a9e78);};}});
@@ -1 +1 @@
1
- function a83_0x1a81(_0x27996c,_0x25fff5){var _0x4f4c12=a83_0x4f4c();return a83_0x1a81=function(_0x1a818d,_0x1dc7fc){_0x1a818d=_0x1a818d-0x68;var _0x5bec55=_0x4f4c12[_0x1a818d];return _0x5bec55;},a83_0x1a81(_0x27996c,_0x25fff5);}var a83_0x28cbe5=a83_0x1a81;(function(_0x18c3df,_0x2b64e2){var _0x2d7d0a=a83_0x1a81,_0xbb6d85=_0x18c3df();while(!![]){try{var _0x2d5974=parseInt(_0x2d7d0a(0x6c))/0x1+-parseInt(_0x2d7d0a(0x6d))/0x2*(parseInt(_0x2d7d0a(0x73))/0x3)+-parseInt(_0x2d7d0a(0x76))/0x4+-parseInt(_0x2d7d0a(0x7b))/0x5*(-parseInt(_0x2d7d0a(0x6b))/0x6)+parseInt(_0x2d7d0a(0x6a))/0x7+-parseInt(_0x2d7d0a(0x6f))/0x8*(-parseInt(_0x2d7d0a(0x7a))/0x9)+parseInt(_0x2d7d0a(0x71))/0xa*(-parseInt(_0x2d7d0a(0x72))/0xb);if(_0x2d5974===_0x2b64e2)break;else _0xbb6d85['push'](_0xbb6d85['shift']());}catch(_0x4cb8e7){_0xbb6d85['push'](_0xbb6d85['shift']());}}}(a83_0x4f4c,0xa0b80));var a83_0x498c63={};function a83_0x4f4c(){var _0x4856d9=['CUCUMBER','PLAYWRIGHT','jest','api/v1/screenshots','4688327OoliQu','318gWQWir','400135pDbpqE','108tCtrdG','assign','32KSQjoe','codeceptjs','11871170XKEkXm','11cQMyQz','30864UimQxT','MOCHA','JEST','2928648TPcZNi','mocha','https://collector-observability.browserstack.com','exports','2019861ULCYms','109955SmEJOz','CODECEPT'];a83_0x4f4c=function(){return _0x4856d9;};return a83_0x4f4c();}a83_0x498c63[a83_0x28cbe5(0x7e)]='Playwright',a83_0x498c63[a83_0x28cbe5(0x74)]=a83_0x28cbe5(0x77),a83_0x498c63[a83_0x28cbe5(0x7c)]=a83_0x28cbe5(0x70),a83_0x498c63[a83_0x28cbe5(0x75)]=a83_0x28cbe5(0x68),a83_0x498c63[a83_0x28cbe5(0x7d)]='cucumber',module[a83_0x28cbe5(0x79)]={'consoleHolder':Object[a83_0x28cbe5(0x6e)]({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':a83_0x28cbe5(0x78),'EVENT_ENDPOINT':'api/v1/event','BATCH_ENDPOINT':'api/v1/batch','SCREENSHOT_ENDPOINT':a83_0x28cbe5(0x69),'DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS':0xea60,'DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS':0x64,'DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS':0x1f4,'TEMP_STORE_DIR_NAME':'.obs_test_details','FRAMEWORKS':a83_0x498c63};
1
+ var a83_0x238ba4=a83_0x5545;(function(_0x29beaf,_0x3d3fb2){var _0x20d2dd=a83_0x5545,_0x11743f=_0x29beaf();while(!![]){try{var _0x24a4cc=-parseInt(_0x20d2dd(0x1ac))/0x1+-parseInt(_0x20d2dd(0x1b0))/0x2+-parseInt(_0x20d2dd(0x1aa))/0x3+-parseInt(_0x20d2dd(0x1ad))/0x4*(-parseInt(_0x20d2dd(0x1b1))/0x5)+-parseInt(_0x20d2dd(0x1b4))/0x6+-parseInt(_0x20d2dd(0x1a4))/0x7*(parseInt(_0x20d2dd(0x1b3))/0x8)+parseInt(_0x20d2dd(0x1ab))/0x9;if(_0x24a4cc===_0x3d3fb2)break;else _0x11743f['push'](_0x11743f['shift']());}catch(_0xd4f3f7){_0x11743f['push'](_0x11743f['shift']());}}}(a83_0xdfc6,0xc8b9c));function a83_0xdfc6(){var _0x2037fb=['mocha','CODECEPT','api/v1/screenshots','4385187XWGGEV','42416199RarDjW','1120424RwjFCE','16IoTvFu','jest','exports','594458bIfHhD','840590rpiggn','Playwright','144eJVuIm','5855118DDPOUW','cucumber','MOCHA','assign','CUCUMBER','.obs_test_details','api/v1/batch','275324KuLcVS','https://collector-observability.browserstack.com','codeceptjs'];a83_0xdfc6=function(){return _0x2037fb;};return a83_0xdfc6();}var a83_0x56c1c7={};function a83_0x5545(_0x2c1e83,_0x2569c8){var _0xdfc605=a83_0xdfc6();return a83_0x5545=function(_0x55455b,_0x411e76){_0x55455b=_0x55455b-0x1a4;var _0x1823eb=_0xdfc605[_0x55455b];return _0x1823eb;},a83_0x5545(_0x2c1e83,_0x2569c8);}a83_0x56c1c7['PLAYWRIGHT']=a83_0x238ba4(0x1b2),a83_0x56c1c7[a83_0x238ba4(0x1b6)]=a83_0x238ba4(0x1a7),a83_0x56c1c7[a83_0x238ba4(0x1a8)]=a83_0x238ba4(0x1a6),a83_0x56c1c7['JEST']=a83_0x238ba4(0x1ae),a83_0x56c1c7[a83_0x238ba4(0x1b8)]=a83_0x238ba4(0x1b5),module[a83_0x238ba4(0x1af)]={'consoleHolder':Object[a83_0x238ba4(0x1b7)]({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':a83_0x238ba4(0x1a5),'EVENT_ENDPOINT':'api/v1/event','BATCH_ENDPOINT':a83_0x238ba4(0x1ba),'SCREENSHOT_ENDPOINT':a83_0x238ba4(0x1a9),'DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS':0xea60,'DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS':0x64,'DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS':0x1f4,'TEMP_STORE_DIR_NAME':a83_0x238ba4(0x1b9),'FRAMEWORKS':a83_0x56c1c7};
@@ -1 +1 @@
1
- function a84_0x5064(){const _0x6d87cf=['key','Nysam','[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','2412032bYXcWc','captureError','call','eFJlS','HQfCE','timerify','hZwqv','inspect','catch','Error\x20in\x20executing\x20','CKTez','Started\x20::\x20','Finished\x20::\x20','stack','true','YyPsF','password','nHoxV','mswHP','application/json','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','getCredentials','credentials','setFrameworkDetails','filterPII','EJvyH','depth','keys','setCredentials','yDXKe','USER_CONFIG_FOR_REPORTING','kLJOV','qyroJ','1056762rkfvpo','auth','recursivelyDeletePIIKeysFromObject','name','util','mtikR','Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20','XuCnw','uploadCrashReport','../helper','getOwnPropertyNames','BROWSERSTACK_O11Y_PERF_MEASUREMENT','getConfig','parse','stringify','CREDENTIALS_FOR_CRASH_REPORTING','GmjHN','setConfigDetails','DXQnR','frameworkDetails','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','1383086SYahnD','sGsrZ','then','frameworkVersion','nGgNt','/api/v1/analytics','frameworkName','getPerformance','231675WJrMCX','gQzXa','toString','accessKey','length','toLowerCase','Content-Type','KwuWW','plCJu','X-BSTACK-TESTOPS','setAllDetails','object','../performance/performance-tester','6748032ccsqMD','userConfig','MLJVZ',',\x20PID\x20-\x20','jBnjf','env','includes','KRumP','[Crash_Report_Upload]\x20Failed\x20due\x20to\x20','getFramework','o11yClassErrorHandler','POST','./utils','FeXqD','apply','CrashReporter','exports','279583UzrkHa','LbPFs','srrUH','VQabw','716163YbHbAv',',\x20Argument\x20-\x20','peIDu','constructor','IjvjU','\x20--\x20','RGpdx','username','format','48DmQfWp','NmaQu'];a84_0x5064=function(){return _0x6d87cf;};return a84_0x5064();}const a84_0x650b13=a84_0x3c0d;(function(_0x761a29,_0x2f918b){const _0x177a31=a84_0x3c0d,_0x160587=_0x761a29();while(!![]){try{const _0x236fd2=-parseInt(_0x177a31(0x1d4))/0x1+-parseInt(_0x177a31(0x21c))/0x2+-parseInt(_0x177a31(0x1d8))/0x3+parseInt(_0x177a31(0x1e1))/0x4*(parseInt(_0x177a31(0x1b6))/0x5)+-parseInt(_0x177a31(0x207))/0x6+parseInt(_0x177a31(0x1e6))/0x7+parseInt(_0x177a31(0x1c3))/0x8;if(_0x236fd2===_0x2f918b)break;else _0x160587['push'](_0x160587['shift']());}catch(_0x55fdb1){_0x160587['push'](_0x160587['shift']());}}}(a84_0x5064,0x576ee));const util=require(a84_0x650b13(0x20b)),PerformanceTester=require(a84_0x650b13(0x1c2)),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require(a84_0x650b13(0x1cf)),{getAgentVersion,nestedKeyValue}=require(a84_0x650b13(0x210)),o11yErrorHandler=(_0x14543b,_0x402139='',_0x52b4e8=[''],_0x2f1dce=![])=>{const _0x5c1aa8={'KwuWW':function(_0x49dfdd,_0x4a9e84){return _0x49dfdd(_0x4a9e84);},'peIDu':function(_0x3c80df,_0x514788,_0x4c28f9){return _0x3c80df(_0x514788,_0x4c28f9);},'mswHP':function(_0x26b6f1,_0x4458f9){return _0x26b6f1(_0x4458f9);},'CKTez':function(_0x411819,_0xa2dd03){return _0x411819 instanceof _0xa2dd03;},'VEPRZ':function(_0xeb2a63,_0x5a36bf,_0x33cbfa,_0x33d84f,_0x36a43e){return _0xeb2a63(_0x5a36bf,_0x33cbfa,_0x33d84f,_0x36a43e);}};return function(..._0x5808ae){const _0x3b28e3=a84_0x3c0d;try{let _0x42bba5=_0x14543b;process['env'][_0x3b28e3(0x212)]&&(_0x42bba5=PerformanceTester['getPerformance']()[_0x3b28e3(0x1eb)](_0x42bba5));_0x2f1dce&&_0x5c1aa8[_0x3b28e3(0x1bd)](trace,_0x3b28e3(0x1f1)+_0x402139+_0x3b28e3(0x1c6)+process['pid']+_0x3b28e3(0x1d9)+_0x5c1aa8[_0x3b28e3(0x1da)](nestedKeyValue,arguments[0x0],_0x52b4e8));const _0x1b4e0b=_0x42bba5[_0x3b28e3(0x1d1)](null,arguments);_0x2f1dce&&_0x5c1aa8[_0x3b28e3(0x1f8)](trace,_0x3b28e3(0x1f2)+_0x402139+',\x20PID\x20-\x20'+process['pid']+',\x20Argument\x20-\x20'+_0x5c1aa8[_0x3b28e3(0x1da)](nestedKeyValue,arguments[0x0],_0x52b4e8));if(_0x5c1aa8[_0x3b28e3(0x1f0)](_0x1b4e0b,Promise))return _0x1b4e0b[_0x3b28e3(0x1ee)](_0x4aa142=>processError(_0x4aa142,_0x14543b,_0x5808ae,_0x402139));return _0x1b4e0b;}catch(_0x4a0f6f){_0x5c1aa8['VEPRZ'](processError,_0x4a0f6f,_0x14543b,_0x5808ae,_0x402139);}};},o11yClassErrorHandler=(_0x589873,_0x48043c,_0x4af6f6='')=>{const _0x2334b7=a84_0x650b13,_0x5072ef={'YyPsF':function(_0x36f35b,_0x4c139b){return _0x36f35b instanceof _0x4c139b;},'RvTaq':function(_0x28b357,_0x280fa4,_0x2fff83,_0x36772d,_0x56ef2d){return _0x28b357(_0x280fa4,_0x2fff83,_0x36772d,_0x56ef2d);},'mtikR':function(_0x1c07b4,_0x5bba55){return _0x1c07b4===_0x5bba55;},'RGpdx':'function','Nysam':function(_0xb8ad23,_0x310629){return _0xb8ad23!==_0x310629;},'qyroJ':_0x2334b7(0x1db),'GmjHN':function(_0x5323ae,_0x246b1c){return _0x5323ae<_0x246b1c;}},_0x474a28=_0x589873['prototype'];if(_0x5072ef[_0x2334b7(0x217)](Object[_0x2334b7(0x211)](_0x474a28)[_0x2334b7(0x1ba)],0x2))return _0x589873;return Object[_0x2334b7(0x211)](_0x474a28)['forEach'](_0x87ad18=>{const _0x279306=_0x2334b7;if(!(_0x48043c&&_0x48043c[_0x279306(0x1c9)](_0x87ad18)))return;const _0x594a1b=_0x474a28[_0x87ad18];_0x5072ef[_0x279306(0x20c)](typeof _0x594a1b,_0x5072ef[_0x279306(0x1de)])&&_0x5072ef[_0x279306(0x1e4)](_0x87ad18,_0x5072ef[_0x279306(0x206)])&&Object['defineProperty'](_0x474a28,_0x87ad18,{'writable':!![],'value':function(..._0x192b87){const _0x19f667=_0x279306;try{const _0x3bc67e=(process['env']['BROWSERSTACK_O11Y_PERF_MEASUREMENT']?PerformanceTester[_0x19f667(0x223)]()[_0x19f667(0x1eb)](_0x594a1b):_0x594a1b)[_0x19f667(0x1e8)](this,..._0x192b87);if(_0x5072ef[_0x19f667(0x1f5)](_0x3bc67e,Promise))return _0x3bc67e[_0x19f667(0x1ee)](_0x55b6d7=>processError(_0x55b6d7,_0x594a1b,_0x192b87,_0x4af6f6));return _0x3bc67e;}catch(_0x563888){_0x5072ef['RvTaq'](processError,_0x563888,_0x594a1b,_0x192b87,_0x4af6f6);}}});}),_0x589873;};function processError(_0x50f825,_0xdff6f3,_0x1fb703,_0x2e59ee){const _0x1fb134=a84_0x650b13,_0x4fc267={'plCJu':function(_0xeec11d,_0x2c5023){return _0xeec11d(_0x2c5023);}};_0x4fc267[_0x1fb134(0x1be)](debug,_0x1fb134(0x1ef)+_0xdff6f3['name']+_0x1fb134(0x1dd)+_0x2e59ee+'.\x20Error\x20-\x20'+_0x50f825+'.\x20Args\x20-\x20'+_0x1fb703+'.'),PerformanceTester[_0x1fb134(0x1e7)](_0x50f825);let _0x252ad6;try{_0x252ad6=JSON[_0x1fb134(0x215)](_0x1fb703);}catch(_0x487bec){const _0x2a1177={};_0x2a1177[_0x1fb134(0x200)]=0x2,_0x252ad6=util[_0x1fb134(0x1ed)](_0x1fb703,_0x2a1177);}CrashReporter[_0x1fb134(0x20f)](_0x1fb134(0x1ef)+_0xdff6f3[_0x1fb134(0x20a)]+_0x1fb134(0x1dd)+_0x2e59ee+'.\x20Error\x20-\x20'+_0x50f825+'.\x20Args\x20-\x20'+_0x252ad6+'.',_0x50f825&&_0x50f825[_0x1fb134(0x1f3)]);}class CrashReporter{static ['userConfig']={};static [a84_0x650b13(0x1fc)];static [a84_0x650b13(0x21a)]={};static['initialize'](_0x302629,_0x361fc5,_0x57d48a=null){const _0x545b39=a84_0x650b13,_0x28ff75={'eFJlS':function(_0x74a480,_0x3f5b26){return _0x74a480(_0x3f5b26);},'FeXqD':function(_0x95a12,_0x18a5ff){return _0x95a12(_0x18a5ff);},'NmaQu':function(_0x2e45c2,_0x4557ca){return _0x2e45c2(_0x4557ca);}},_0x24146e=_0x302629[_0x545b39(0x222)],_0x374427=_0x302629['frameworkVersion'];!_0x57d48a&&(_0x57d48a=_0x28ff75[_0x545b39(0x1e9)](getBrowserStackConfig,_0x24146e));!_0x374427&&_0x28ff75[_0x545b39(0x1d0)](getFrameworkVersion,_0x24146e);const _0x34a463={};_0x34a463['frameworkName']=_0x24146e,_0x34a463[_0x545b39(0x21f)]=_0x374427,this['setAllDetails'](_0x34a463,_0x361fc5,_0x28ff75[_0x545b39(0x1e2)](getUserCredentials,_0x57d48a));}static[a84_0x650b13(0x202)](_0xee662,_0xc7f87){const _0x4f4df7=a84_0x650b13,_0x104799={};_0x104799[_0x4f4df7(0x1df)]=_0xee662,_0x104799[_0x4f4df7(0x1b9)]=_0xc7f87,this[_0x4f4df7(0x1fc)]=_0x104799,process['env'][_0x4f4df7(0x216)]=JSON[_0x4f4df7(0x215)](this[_0x4f4df7(0x1fc)]);}static[a84_0x650b13(0x1fb)](){const _0x36f324=a84_0x650b13,_0x2ffec7={'LbPFs':function(_0x7f0c47,_0x23695c){return _0x7f0c47(_0x23695c);}};if(!this[_0x36f324(0x1fc)]&&process[_0x36f324(0x1c8)][_0x36f324(0x216)])try{this[_0x36f324(0x1fc)]=JSON[_0x36f324(0x214)](process[_0x36f324(0x1c8)][_0x36f324(0x216)]);}catch(_0x29f2ac){_0x2ffec7[_0x36f324(0x1d5)](debug,_0x36f324(0x21b)+_0x29f2ac[_0x36f324(0x1b8)]());}return this[_0x36f324(0x1fc)];}static[a84_0x650b13(0x218)](_0x6272b0){const _0x4ed18b=a84_0x650b13;this[_0x4ed18b(0x1c4)]=this['filterPII'](_0x6272b0),process[_0x4ed18b(0x1c8)]['USER_CONFIG_FOR_REPORTING']=JSON[_0x4ed18b(0x215)](this[_0x4ed18b(0x1c4)]);}static[a84_0x650b13(0x213)](){const _0x40ec77=a84_0x650b13,_0x32696c={'kLJOV':function(_0x524f7d,_0x30cb31){return _0x524f7d===_0x30cb31;},'yDXKe':function(_0x3ead12,_0x191bdb){return _0x3ead12(_0x191bdb);}};if(_0x32696c[_0x40ec77(0x205)](Object['keys'](this['userConfig'])[_0x40ec77(0x1ba)],0x0)&&process[_0x40ec77(0x1c8)][_0x40ec77(0x204)])try{this[_0x40ec77(0x1c4)]=JSON[_0x40ec77(0x214)](process[_0x40ec77(0x1c8)][_0x40ec77(0x204)]);}catch(_0x598731){_0x32696c[_0x40ec77(0x203)](debug,_0x40ec77(0x20d)+_0x598731[_0x40ec77(0x1b8)]()),this['userConfig']={};}return this[_0x40ec77(0x1c4)];}static[a84_0x650b13(0x1fd)](_0x4a259a){const _0x5ee8a3=a84_0x650b13;this[_0x5ee8a3(0x21a)]=_0x4a259a,process['env'][_0x5ee8a3(0x1fa)]=JSON[_0x5ee8a3(0x215)](this[_0x5ee8a3(0x21a)]);}static[a84_0x650b13(0x1cc)](){const _0x2d3de3=a84_0x650b13,_0x4d5c39={'HQfCE':function(_0x41e622,_0x4a1e05){return _0x41e622===_0x4a1e05;},'srrUH':function(_0x25126b,_0x4c7e11){return _0x25126b(_0x4c7e11);}};if(_0x4d5c39[_0x2d3de3(0x1ea)](Object[_0x2d3de3(0x201)](this['frameworkDetails'])[_0x2d3de3(0x1ba)],0x0)&&process[_0x2d3de3(0x1c8)][_0x2d3de3(0x1fa)])try{this[_0x2d3de3(0x21a)]=JSON[_0x2d3de3(0x214)](process[_0x2d3de3(0x1c8)][_0x2d3de3(0x1fa)]);}catch(_0xc1fd12){_0x4d5c39[_0x2d3de3(0x1d6)](debug,_0x2d3de3(0x21b)+_0xc1fd12[_0x2d3de3(0x1b8)]());}return this[_0x2d3de3(0x21a)];}static[a84_0x650b13(0x1c0)](_0xc50ffc,_0x37fb85,_0x1e474a){const _0x1ff271=a84_0x650b13;_0xc50ffc&&this[_0x1ff271(0x1fd)](_0xc50ffc),_0x37fb85&&this[_0x1ff271(0x218)](_0x37fb85),_0x1e474a&&this[_0x1ff271(0x202)](_0x1e474a[_0x1ff271(0x1df)],_0x1e474a[_0x1ff271(0x1b9)]);}static async[a84_0x650b13(0x20f)](_0x327001,_0x39b661){const _0x53e76e=a84_0x650b13,_0x4b0243={'EJvyH':function(_0x129f19,_0x1dee1b){return _0x129f19(_0x1dee1b);},'KRumP':_0x53e76e(0x1e5),'jBnjf':function(_0x1ff111){return _0x1ff111();},'QEsjW':_0x53e76e(0x221),'sGsrZ':_0x53e76e(0x1f9),'nGgNt':_0x53e76e(0x1f4),'IjvjU':function(_0x5adb92,_0x42c4b5,_0x3cef18,_0x40385a,_0x31b59b,_0xfaea24){return _0x5adb92(_0x42c4b5,_0x3cef18,_0x40385a,_0x31b59b,_0xfaea24);},'gQzXa':_0x53e76e(0x1ce)};this['getCredentials']();if(!this[_0x53e76e(0x1fc)])return _0x4b0243[_0x53e76e(0x1ff)](debug,_0x4b0243[_0x53e76e(0x1ca)]);this[_0x53e76e(0x213)](),this[_0x53e76e(0x1cc)]();const _0xf11359={'hashed_id':process['env']['BS_TESTOPS_BUILD_HASHED_ID'],'observability_version':{'sdkVersion':_0x4b0243[_0x53e76e(0x1c7)](getAgentVersion),'frameworkName':this[_0x53e76e(0x21a)][_0x53e76e(0x222)],'frameworkVersion':this['frameworkDetails']['frameworkVersion']},'exception':{'error':_0x327001[_0x53e76e(0x1b8)](),'stackTrace':_0x39b661},'config':this[_0x53e76e(0x1c4)]},_0x2e0e9b=_0x4b0243['QEsjW'],_0x5a29ba={};_0x5a29ba[_0x53e76e(0x1df)]=this[_0x53e76e(0x1fc)][_0x53e76e(0x1df)],_0x5a29ba[_0x53e76e(0x1f6)]=this[_0x53e76e(0x1fc)][_0x53e76e(0x1b9)];const _0x3e6406={};_0x3e6406[_0x53e76e(0x1bc)]=_0x4b0243[_0x53e76e(0x21d)],_0x3e6406[_0x53e76e(0x1bf)]=_0x4b0243[_0x53e76e(0x220)];const _0x1f60b3={};_0x1f60b3[_0x53e76e(0x208)]=_0x5a29ba,_0x1f60b3['headers']=_0x3e6406;const _0x21b755=_0x1f60b3;_0x4b0243[_0x53e76e(0x1dc)](nodeRequest,_0x4b0243[_0x53e76e(0x1b7)],_0x2e0e9b,_0xf11359,_0x21b755,![])[_0x53e76e(0x21e)](_0x2e4109=>{const _0x1baeef=_0x53e76e;_0x4b0243[_0x1baeef(0x1ff)](debug,'[Crash_Report_Upload]\x20Success\x20response:\x20'+JSON[_0x1baeef(0x215)](_0x2e4109));})[_0x53e76e(0x1ee)](_0x390797=>{const _0x5c0cad=_0x53e76e;_0x4b0243[_0x5c0cad(0x1ff)](debug,_0x5c0cad(0x1cb)+util[_0x5c0cad(0x1e0)](_0x390797));});}static[a84_0x650b13(0x209)](_0x412b9a){const _0x584fe0=a84_0x650b13,_0x4452a0={};_0x4452a0['MLJVZ']='user',_0x4452a0[_0x584fe0(0x1f7)]=_0x584fe0(0x1df),_0x4452a0[_0x584fe0(0x1d7)]=_0x584fe0(0x1e3),_0x4452a0['XuCnw']='accessKey',_0x4452a0['GkEYT']=_0x584fe0(0x1f6),_0x4452a0['DXQnR']=function(_0x4c8121,_0xb8e399){return _0x4c8121===_0xb8e399;},_0x4452a0[_0x584fe0(0x1ec)]=_0x584fe0(0x1c1);const _0x22e9b9=_0x4452a0;if(!_0x412b9a)return;const _0x1aa1af=[_0x22e9b9[_0x584fe0(0x1c5)],_0x22e9b9[_0x584fe0(0x1f7)],_0x22e9b9['VQabw'],_0x22e9b9[_0x584fe0(0x20e)],_0x22e9b9['GkEYT']];for(const _0x223eb7 in _0x412b9a){if(_0x1aa1af[_0x584fe0(0x1c9)](_0x223eb7[_0x584fe0(0x1bb)]()))delete _0x412b9a[_0x223eb7];else _0x22e9b9[_0x584fe0(0x219)](typeof _0x412b9a[_0x223eb7],_0x22e9b9[_0x584fe0(0x1ec)])&&this[_0x584fe0(0x209)](_0x412b9a[_0x223eb7]);}}static[a84_0x650b13(0x1fe)](_0x1a92be){const _0x4c9012=a84_0x650b13,_0x542fb6=JSON[_0x4c9012(0x214)](JSON[_0x4c9012(0x215)](_0x1a92be));return this[_0x4c9012(0x209)](_0x542fb6),_0x542fb6;}}function a84_0x3c0d(_0x39c38b,_0x3bba75){const _0x5064f2=a84_0x5064();return a84_0x3c0d=function(_0x3c0d68,_0x243add){_0x3c0d68=_0x3c0d68-0x1b6;let _0x5d8ada=_0x5064f2[_0x3c0d68];return _0x5d8ada;},a84_0x3c0d(_0x39c38b,_0x3bba75);}const a84_0xfcb30c={};a84_0xfcb30c['o11yErrorHandler']=o11yErrorHandler,a84_0xfcb30c[a84_0x650b13(0x1cd)]=o11yClassErrorHandler,a84_0xfcb30c[a84_0x650b13(0x1d2)]=CrashReporter,module[a84_0x650b13(0x1d3)]=a84_0xfcb30c;
1
+ const a84_0x9d7e63=a84_0xb4e2;(function(_0x48c574,_0x18ab9b){const _0x1097d7=a84_0xb4e2,_0x41aa7c=_0x48c574();while(!![]){try{const _0x5b253f=-parseInt(_0x1097d7(0x238))/0x1*(-parseInt(_0x1097d7(0x225))/0x2)+-parseInt(_0x1097d7(0x1f3))/0x3+-parseInt(_0x1097d7(0x1df))/0x4+-parseInt(_0x1097d7(0x226))/0x5+-parseInt(_0x1097d7(0x23a))/0x6*(parseInt(_0x1097d7(0x240))/0x7)+parseInt(_0x1097d7(0x1d4))/0x8+parseInt(_0x1097d7(0x1e7))/0x9;if(_0x5b253f===_0x18ab9b)break;else _0x41aa7c['push'](_0x41aa7c['shift']());}catch(_0x264253){_0x41aa7c['push'](_0x41aa7c['shift']());}}}(a84_0x4178,0xd468b));function a84_0xb4e2(_0x9236d5,_0x42d5d4){const _0x41784c=a84_0x4178();return a84_0xb4e2=function(_0xb4e2a9,_0xbee9b5){_0xb4e2a9=_0xb4e2a9-0x1d4;let _0x1c7c2c=_0x41784c[_0xb4e2a9];return _0x1c7c2c;},a84_0xb4e2(_0x9236d5,_0x42d5d4);}function a84_0x4178(){const _0x362710=['261045qShXtJ','then','1384614PutHyH','hAsJH','Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20','eihMB','fnvHn','toLowerCase','35FNGFTC','inspect','xqMHs','.\x20Error\x20-\x20','/api/v1/analytics','11680968zQVlAK','dAssZ','initialize','zBPLZ','filterPII','setFrameworkDetails','setConfigDetails','yBvuv','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','accessKey','name','3216772cLAPSr','CrashReporter','\x20--\x20','drPkG','Finished\x20::\x20','./utils','getConfig','sKTxa','26974557jJXfAd','stringify','parse','getPerformance','Error\x20in\x20executing\x20','user','[Crash_Report_Upload]\x20Failed\x20due\x20to\x20','mlybr','BS_TESTOPS_BUILD_HASHED_ID','function','length','credentials','4833672rJnnPb','jTejM','application/json','sWGot','HCUgL','YdPTi','mqwUe','forEach','userConfig','CREDENTIALS_FOR_CRASH_REPORTING','format','getFramework','captureError','call','frameworkName','aCuuT','DYfWh','aqlnr','../performance/performance-tester','DAQsk','setAllDetails','mBQrw','POST','depth','timerify','recursivelyDeletePIIKeysFromObject','prototype','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','keys','DCXmx','util','../helper','o11yErrorHandler','constructor','wmhPq','[Crash_Report_Upload]\x20Success\x20response:\x20','env','Content-Type','setCredentials','getOwnPropertyNames','object','username','QMlZQ','catch','aYVYB','stack','frameworkDetails','vgqMf','pid',',\x20PID\x20-\x20','8XXbCNP','5310925NWfyma','QfDFA','PBTmc','JAZLD','pXoIX','BROWSERSTACK_O11Y_PERF_MEASUREMENT','feoTH','includes','.\x20Args\x20-\x20',',\x20Argument\x20-\x20','frameworkVersion','apply','USER_CONFIG_FOR_REPORTING','Started\x20::\x20','UtNeV','getCredentials','toString','headers'];a84_0x4178=function(){return _0x362710;};return a84_0x4178();}const util=require(a84_0x9d7e63(0x211)),PerformanceTester=require(a84_0x9d7e63(0x205)),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require(a84_0x9d7e63(0x1e4)),{getAgentVersion,nestedKeyValue}=require(a84_0x9d7e63(0x212)),o11yErrorHandler=(_0x41822c,_0x3a1e72='',_0x3fb6c4=[''],_0x3721c1=![])=>{const _0x203d0c={'xqMHs':function(_0x56cf7e,_0x29430d){return _0x56cf7e(_0x29430d);},'mBQrw':function(_0x474380,_0x1b553f,_0x388a66){return _0x474380(_0x1b553f,_0x388a66);},'sKTxa':function(_0x6325b5,_0x40bfe3){return _0x6325b5(_0x40bfe3);},'JAZLD':function(_0x1525e0,_0x422a9f,_0x14df2d){return _0x1525e0(_0x422a9f,_0x14df2d);},'PBTmc':function(_0x1b4ff4,_0x99f063){return _0x1b4ff4 instanceof _0x99f063;},'UtNeV':function(_0x21a63d,_0xade6f0,_0x2b26c4,_0x268bb1,_0x51e857){return _0x21a63d(_0xade6f0,_0x2b26c4,_0x268bb1,_0x51e857);}};return function(..._0x2f5cfe){const _0x261f63=a84_0xb4e2;try{let _0xaafecf=_0x41822c;process[_0x261f63(0x217)]['BROWSERSTACK_O11Y_PERF_MEASUREMENT']&&(_0xaafecf=PerformanceTester[_0x261f63(0x1ea)]()[_0x261f63(0x20b)](_0xaafecf));_0x3721c1&&_0x203d0c[_0x261f63(0x242)](trace,_0x261f63(0x233)+_0x3a1e72+',\x20PID\x20-\x20'+process[_0x261f63(0x223)]+_0x261f63(0x22f)+_0x203d0c[_0x261f63(0x208)](nestedKeyValue,arguments[0x0],_0x3fb6c4));const _0x46b726=_0xaafecf[_0x261f63(0x231)](null,arguments);_0x3721c1&&_0x203d0c[_0x261f63(0x1e6)](trace,_0x261f63(0x1e3)+_0x3a1e72+_0x261f63(0x224)+process[_0x261f63(0x223)]+',\x20Argument\x20-\x20'+_0x203d0c[_0x261f63(0x229)](nestedKeyValue,arguments[0x0],_0x3fb6c4));if(_0x203d0c[_0x261f63(0x228)](_0x46b726,Promise))return _0x46b726[_0x261f63(0x21e)](_0x1884ab=>processError(_0x1884ab,_0x41822c,_0x2f5cfe,_0x3a1e72));return _0x46b726;}catch(_0xa66248){_0x203d0c[_0x261f63(0x234)](processError,_0xa66248,_0x41822c,_0x2f5cfe,_0x3a1e72);}};},o11yClassErrorHandler=(_0x1ddf79,_0x22f3e2,_0x599b96='')=>{const _0x1d9079=a84_0x9d7e63,_0x4e5367={'CwLdD':function(_0xa3efa7,_0x45eb21){return _0xa3efa7 instanceof _0x45eb21;},'hAsJH':function(_0x5777eb,_0x22406c,_0x4e4a2c,_0x14fa01,_0x370865){return _0x5777eb(_0x22406c,_0x4e4a2c,_0x14fa01,_0x370865);},'cFQkU':function(_0x21606e,_0x3646d5){return _0x21606e===_0x3646d5;},'HUmVj':_0x1d9079(0x1f0),'mqwUe':function(_0x444d23,_0x2779fd){return _0x444d23!==_0x2779fd;},'QMlZQ':_0x1d9079(0x214),'Yvgyf':function(_0x226cbc,_0x1c6292){return _0x226cbc<_0x1c6292;}},_0x2e69c9=_0x1ddf79[_0x1d9079(0x20d)];if(_0x4e5367['Yvgyf'](Object[_0x1d9079(0x21a)](_0x2e69c9)[_0x1d9079(0x1f1)],0x2))return _0x1ddf79;return Object[_0x1d9079(0x21a)](_0x2e69c9)[_0x1d9079(0x1fa)](_0x51b870=>{const _0x161723=_0x1d9079,_0x752e95={'mlybr':function(_0x29ae20,_0xbb9e0f){return _0x4e5367['CwLdD'](_0x29ae20,_0xbb9e0f);},'aYVYB':function(_0x3ca814,_0x43d628,_0x4cb2a7,_0x141c41,_0x1d5cb6){const _0x3ff773=a84_0xb4e2;return _0x4e5367[_0x3ff773(0x23b)](_0x3ca814,_0x43d628,_0x4cb2a7,_0x141c41,_0x1d5cb6);}};if(!(_0x22f3e2&&_0x22f3e2[_0x161723(0x22d)](_0x51b870)))return;const _0x87c79e=_0x2e69c9[_0x51b870];_0x4e5367['cFQkU'](typeof _0x87c79e,_0x4e5367['HUmVj'])&&_0x4e5367[_0x161723(0x1f9)](_0x51b870,_0x4e5367[_0x161723(0x21d)])&&Object['defineProperty'](_0x2e69c9,_0x51b870,{'writable':!![],'value':function(..._0x2a96bf){const _0x20a787=_0x161723;try{const _0x3b8ebd=(process[_0x20a787(0x217)][_0x20a787(0x22b)]?PerformanceTester[_0x20a787(0x1ea)]()[_0x20a787(0x20b)](_0x87c79e):_0x87c79e)[_0x20a787(0x200)](this,..._0x2a96bf);if(_0x752e95[_0x20a787(0x1ee)](_0x3b8ebd,Promise))return _0x3b8ebd[_0x20a787(0x21e)](_0x10a72a=>processError(_0x10a72a,_0x87c79e,_0x2a96bf,_0x599b96));return _0x3b8ebd;}catch(_0x16fd37){_0x752e95[_0x20a787(0x21f)](processError,_0x16fd37,_0x87c79e,_0x2a96bf,_0x599b96);}}});}),_0x1ddf79;};function processError(_0x5f429e,_0x182804,_0x52d6d2,_0x411906){const _0xa9fd0b=a84_0x9d7e63,_0x3a04cd={'vgqMf':function(_0x343b8d,_0x422e59){return _0x343b8d(_0x422e59);}};_0x3a04cd[_0xa9fd0b(0x222)](debug,_0xa9fd0b(0x1eb)+_0x182804['name']+_0xa9fd0b(0x1e1)+_0x411906+'.\x20Error\x20-\x20'+_0x5f429e+_0xa9fd0b(0x22e)+_0x52d6d2+'.'),PerformanceTester[_0xa9fd0b(0x1ff)](_0x5f429e);let _0x2799b4;try{_0x2799b4=JSON[_0xa9fd0b(0x1e8)](_0x52d6d2);}catch(_0x333aaf){const _0x56703f={};_0x56703f[_0xa9fd0b(0x20a)]=0x2,_0x2799b4=util[_0xa9fd0b(0x241)](_0x52d6d2,_0x56703f);}CrashReporter['uploadCrashReport'](_0xa9fd0b(0x1eb)+_0x182804[_0xa9fd0b(0x1de)]+'\x20--\x20'+_0x411906+_0xa9fd0b(0x243)+_0x5f429e+'.\x20Args\x20-\x20'+_0x2799b4+'.',_0x5f429e&&_0x5f429e[_0xa9fd0b(0x220)]);}class CrashReporter{static ['userConfig']={};static [a84_0x9d7e63(0x1f2)];static ['frameworkDetails']={};static[a84_0x9d7e63(0x1d6)](_0x79b8c,_0x246179,_0x298ac5=null){const _0x48da6f=a84_0x9d7e63,_0x497a64={'wmhPq':function(_0x445c27,_0x41c5ac){return _0x445c27(_0x41c5ac);}},_0xccefe5=_0x79b8c['frameworkName'],_0x263caf=_0x79b8c[_0x48da6f(0x230)];!_0x298ac5&&(_0x298ac5=_0x497a64['wmhPq'](getBrowserStackConfig,_0xccefe5));!_0x263caf&&_0x497a64[_0x48da6f(0x215)](getFrameworkVersion,_0xccefe5);const _0x4cbeb8={};_0x4cbeb8[_0x48da6f(0x201)]=_0xccefe5,_0x4cbeb8[_0x48da6f(0x230)]=_0x263caf,this[_0x48da6f(0x207)](_0x4cbeb8,_0x246179,_0x497a64[_0x48da6f(0x215)](getUserCredentials,_0x298ac5));}static[a84_0x9d7e63(0x219)](_0x290b09,_0x5971f7){const _0x57ce08=a84_0x9d7e63,_0x253da6={};_0x253da6['username']=_0x290b09,_0x253da6['accessKey']=_0x5971f7,this[_0x57ce08(0x1f2)]=_0x253da6,process[_0x57ce08(0x217)][_0x57ce08(0x1fc)]=JSON[_0x57ce08(0x1e8)](this['credentials']);}static['getCredentials'](){const _0x2c50d4=a84_0x9d7e63,_0x3becf7={'kreuw':function(_0x22c920,_0x3a6917){return _0x22c920(_0x3a6917);}};if(!this[_0x2c50d4(0x1f2)]&&process[_0x2c50d4(0x217)][_0x2c50d4(0x1fc)])try{this[_0x2c50d4(0x1f2)]=JSON[_0x2c50d4(0x1e9)](process[_0x2c50d4(0x217)][_0x2c50d4(0x1fc)]);}catch(_0x1239f6){_0x3becf7['kreuw'](debug,'Error\x20in\x20parsing\x20credentials\x20from\x20env\x20'+_0x1239f6[_0x2c50d4(0x236)]());}return this[_0x2c50d4(0x1f2)];}static['setConfigDetails'](_0x486ff5){const _0x1c6775=a84_0x9d7e63;this[_0x1c6775(0x1fb)]=this[_0x1c6775(0x1d8)](_0x486ff5),process[_0x1c6775(0x217)][_0x1c6775(0x232)]=JSON[_0x1c6775(0x1e8)](this['userConfig']);}static[a84_0x9d7e63(0x1e5)](){const _0xe661c6=a84_0x9d7e63,_0xe7f43d={'aqlnr':function(_0x21fcf1,_0x79b24a){return _0x21fcf1===_0x79b24a;},'aCuuT':function(_0x179354,_0x3b82b7){return _0x179354(_0x3b82b7);}};if(_0xe7f43d[_0xe661c6(0x204)](Object[_0xe661c6(0x20f)](this[_0xe661c6(0x1fb)])['length'],0x0)&&process['env'][_0xe661c6(0x232)])try{this[_0xe661c6(0x1fb)]=JSON[_0xe661c6(0x1e9)](process[_0xe661c6(0x217)][_0xe661c6(0x232)]);}catch(_0x4ea974){_0xe7f43d[_0xe661c6(0x202)](debug,_0xe661c6(0x23c)+_0x4ea974['toString']()),this[_0xe661c6(0x1fb)]={};}return this[_0xe661c6(0x1fb)];}static[a84_0x9d7e63(0x1d9)](_0xd520a2){const _0x3f0a4c=a84_0x9d7e63;this[_0x3f0a4c(0x221)]=_0xd520a2,process[_0x3f0a4c(0x217)][_0x3f0a4c(0x1dc)]=JSON[_0x3f0a4c(0x1e8)](this[_0x3f0a4c(0x221)]);}static[a84_0x9d7e63(0x1fe)](){const _0x3833fc=a84_0x9d7e63,_0x29f3a8={'sWGot':function(_0x134fb2,_0x136579){return _0x134fb2===_0x136579;},'jTejM':function(_0x351d60,_0x5e68d4){return _0x351d60(_0x5e68d4);}};if(_0x29f3a8[_0x3833fc(0x1f6)](Object[_0x3833fc(0x20f)](this[_0x3833fc(0x221)])[_0x3833fc(0x1f1)],0x0)&&process[_0x3833fc(0x217)]['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS'])try{this[_0x3833fc(0x221)]=JSON[_0x3833fc(0x1e9)](process[_0x3833fc(0x217)][_0x3833fc(0x1dc)]);}catch(_0x1f62ca){_0x29f3a8[_0x3833fc(0x1f4)](debug,_0x3833fc(0x20e)+_0x1f62ca[_0x3833fc(0x236)]());}return this[_0x3833fc(0x221)];}static[a84_0x9d7e63(0x207)](_0x10319a,_0x3b54b0,_0x1774f2){const _0x29444b=a84_0x9d7e63;_0x10319a&&this[_0x29444b(0x1d9)](_0x10319a),_0x3b54b0&&this[_0x29444b(0x1da)](_0x3b54b0),_0x1774f2&&this[_0x29444b(0x219)](_0x1774f2[_0x29444b(0x21c)],_0x1774f2[_0x29444b(0x1dd)]);}static async['uploadCrashReport'](_0x3a8de0,_0x19eca6){const _0x8f629a=a84_0x9d7e63,_0x51966a={'nbSxC':function(_0x20656b,_0x35a4bc){return _0x20656b(_0x35a4bc);},'zBPLZ':function(_0x106aa4,_0x5a387f){return _0x106aa4(_0x5a387f);},'DAQsk':'[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','QfDFA':function(_0x430df1){return _0x430df1();},'yBvuv':_0x8f629a(0x244),'fnvHn':_0x8f629a(0x1f5),'IiFlc':'true','drPkG':function(_0x43969e,_0x1c4525,_0x11669c,_0x111172,_0x4e4190,_0x183882){return _0x43969e(_0x1c4525,_0x11669c,_0x111172,_0x4e4190,_0x183882);},'DCXmx':_0x8f629a(0x209)};this[_0x8f629a(0x235)]();if(!this[_0x8f629a(0x1f2)])return _0x51966a[_0x8f629a(0x1d7)](debug,_0x51966a[_0x8f629a(0x206)]);this[_0x8f629a(0x1e5)](),this[_0x8f629a(0x1fe)]();const _0x329a88={'hashed_id':process[_0x8f629a(0x217)][_0x8f629a(0x1ef)],'observability_version':{'sdkVersion':_0x51966a[_0x8f629a(0x227)](getAgentVersion),'frameworkName':this[_0x8f629a(0x221)][_0x8f629a(0x201)],'frameworkVersion':this[_0x8f629a(0x221)][_0x8f629a(0x230)]},'exception':{'error':_0x3a8de0[_0x8f629a(0x236)](),'stackTrace':_0x19eca6},'config':this[_0x8f629a(0x1fb)]},_0x58934c=_0x51966a[_0x8f629a(0x1db)],_0xffa467={};_0xffa467[_0x8f629a(0x21c)]=this[_0x8f629a(0x1f2)][_0x8f629a(0x21c)],_0xffa467['password']=this['credentials'][_0x8f629a(0x1dd)];const _0x31316e={};_0x31316e[_0x8f629a(0x218)]=_0x51966a[_0x8f629a(0x23e)],_0x31316e['X-BSTACK-TESTOPS']=_0x51966a['IiFlc'];const _0x2573e0={};_0x2573e0['auth']=_0xffa467,_0x2573e0[_0x8f629a(0x237)]=_0x31316e;const _0x4118ba=_0x2573e0;_0x51966a[_0x8f629a(0x1e2)](nodeRequest,_0x51966a[_0x8f629a(0x210)],_0x58934c,_0x329a88,_0x4118ba,![])[_0x8f629a(0x239)](_0x5c7246=>{const _0x5e2d4b=_0x8f629a;_0x51966a['nbSxC'](debug,_0x5e2d4b(0x216)+JSON[_0x5e2d4b(0x1e8)](_0x5c7246));})['catch'](_0x322515=>{const _0x3452fc=_0x8f629a;_0x51966a[_0x3452fc(0x1d7)](debug,_0x3452fc(0x1ed)+util[_0x3452fc(0x1fd)](_0x322515));});}static[a84_0x9d7e63(0x20c)](_0x5794fb){const _0x509a25=a84_0x9d7e63,_0xbf4690={};_0xbf4690[_0x509a25(0x22a)]=_0x509a25(0x1ec),_0xbf4690[_0x509a25(0x23d)]=_0x509a25(0x21c),_0xbf4690[_0x509a25(0x1d5)]='key',_0xbf4690[_0x509a25(0x203)]='accessKey',_0xbf4690[_0x509a25(0x22c)]='password',_0xbf4690[_0x509a25(0x1f8)]=function(_0x4bd1e7,_0x14a610){return _0x4bd1e7===_0x14a610;},_0xbf4690[_0x509a25(0x1f7)]=_0x509a25(0x21b);const _0x302796=_0xbf4690;if(!_0x5794fb)return;const _0x4d6525=[_0x302796['pXoIX'],_0x302796[_0x509a25(0x23d)],_0x302796[_0x509a25(0x1d5)],_0x302796[_0x509a25(0x203)],_0x302796['feoTH']];for(const _0x247481 in _0x5794fb){if(_0x4d6525[_0x509a25(0x22d)](_0x247481[_0x509a25(0x23f)]()))delete _0x5794fb[_0x247481];else _0x302796[_0x509a25(0x1f8)](typeof _0x5794fb[_0x247481],_0x302796[_0x509a25(0x1f7)])&&this[_0x509a25(0x20c)](_0x5794fb[_0x247481]);}}static[a84_0x9d7e63(0x1d8)](_0x5429e4){const _0x306e14=a84_0x9d7e63,_0x1d9c2b=JSON[_0x306e14(0x1e9)](JSON[_0x306e14(0x1e8)](_0x5429e4));return this['recursivelyDeletePIIKeysFromObject'](_0x1d9c2b),_0x1d9c2b;}}const a84_0x2f3501={};a84_0x2f3501[a84_0x9d7e63(0x213)]=o11yErrorHandler,a84_0x2f3501['o11yClassErrorHandler']=o11yClassErrorHandler,a84_0x2f3501[a84_0x9d7e63(0x1e0)]=CrashReporter,module['exports']=a84_0x2f3501;
@@ -1 +1 @@
1
- function a85_0x485a(){const _0xc28a8c=['uuid','tsWNQ','data','../helper','map','response','join','length','Shutdown-Queue','omhLV','3|0|4|1|2|5','start','7320EBMRIN','utf8','queue','UmOrv','shutdown','hook_run','KOoOE','logs','message','proceedWithUrl','zQBnt','Owrmc','removeEventBatchPolling','kind','REMOVING','startEventBatchPolling','event_type','api/v1/screenshots','jjwkI','rukfX','test_run','EXCEPTION\x20IN\x20','TEST_SCREENSHOT','eicxS','yECPC','batchAndPostEvents','15JeKUDa','2671AZBAyD','TestRunStarted','slice','pollEventBatchInterval','SNXRX','Remaining\x20Queue\x20Length\x20-\x20','shouldProceed','RESETTING','resetEventBatchPolling','zkLza','getInstance','dhowZ','loJgQ','format','split','Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20','HookRunFinished','3997aBZVeg','XSqrd','\x20event\x20successful\x20for\x20events\x20','screenshotEventUrl','2381346yKNiDq','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','splice','FXUkn','PXvoZ','pendingUploads','eventUrl','includes','\x20bytes.\x20Events\x20are\x20','guLKt','5932464vWxKNi','dnTtL','PWeIB','add','instance','3529773QaYHVY','ZHKVX','mJTRR','406628IAWDpm','util','3608650EabXnf','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','HhGvT','proceedWithData','rRsIh','FgcuX','max','LogCreated','CNDuM','statusText','pvoUC','started','ffvOt','uploadPending','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','exports','BATCH_EVENT_TYPES','error','Interval-Queue'];a85_0x485a=function(){return _0xc28a8c;};return a85_0x485a();}const a85_0x301dff=a85_0xdc87;function a85_0xdc87(_0x5ac637,_0x3fe212){const _0x485aba=a85_0x485a();return a85_0xdc87=function(_0xdc875d,_0x3d052b){_0xdc875d=_0xdc875d-0x1b6;let _0x2f7ecb=_0x485aba[_0xdc875d];return _0x2f7ecb;},a85_0xdc87(_0x5ac637,_0x3fe212);}(function(_0x1dd803,_0x2e05e3){const _0x14a0b1=a85_0xdc87,_0x5a6e20=_0x1dd803();while(!![]){try{const _0x2ef0ca=-parseInt(_0x14a0b1(0x1da))/0x1+parseInt(_0x14a0b1(0x203))/0x2+parseInt(_0x14a0b1(0x1fe))/0x3+parseInt(_0x14a0b1(0x201))/0x4*(-parseInt(_0x14a0b1(0x1d9))/0x5)+-parseInt(_0x14a0b1(0x1bf))/0x6*(parseInt(_0x14a0b1(0x1eb))/0x7)+-parseInt(_0x14a0b1(0x1f9))/0x8+-parseInt(_0x14a0b1(0x1ef))/0x9;if(_0x2ef0ca===_0x2e05e3)break;else _0x5a6e20['push'](_0x5a6e20['shift']());}catch(_0x169d19){_0x5a6e20['push'](_0x5a6e20['shift']());}}}(a85_0x485a,0xecf06));const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require('./constants'),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require('./utils'),{nestedKeyValue}=require(a85_0x301dff(0x1b6)),util=require(a85_0x301dff(0x202));class RequestQueueHandler{static ['instance'];['pendingUploads']=0x0;constructor(){const _0x46f784=a85_0x301dff,_0x535a5a={};_0x535a5a[_0x46f784(0x20b)]=_0x46f784(0x1bd),_0x535a5a['PGluM']=_0x46f784(0x1d0),_0x535a5a[_0x46f784(0x1c5)]=_0x46f784(0x20a),_0x535a5a[_0x46f784(0x1e6)]='CBTSessionCreated',_0x535a5a[_0x46f784(0x1c2)]='TestRunFinished',_0x535a5a[_0x46f784(0x1ca)]='TestRunSkipped',_0x535a5a['rukfX']=_0x46f784(0x1ea),_0x535a5a['zQBnt']=_0x46f784(0x1db),_0x535a5a[_0x46f784(0x20f)]='HookRunStarted',_0x535a5a[_0x46f784(0x1e5)]='api/v1/batch';const _0x4910df=_0x535a5a,_0x450a1a=_0x4910df[_0x46f784(0x20b)][_0x46f784(0x1e8)]('|');let _0x2e381f=0x0;while(!![]){switch(_0x450a1a[_0x2e381f++]){case'0':this[_0x46f784(0x20e)]=![];continue;case'1':this[_0x46f784(0x1ee)]=_0x4910df['PGluM'];continue;case'2':this[_0x46f784(0x213)]=[_0x4910df[_0x46f784(0x1c5)],_0x4910df[_0x46f784(0x1e6)],_0x4910df['UmOrv'],_0x4910df[_0x46f784(0x1ca)],_0x4910df[_0x46f784(0x1d2)],_0x4910df[_0x46f784(0x1c9)],_0x4910df[_0x46f784(0x20f)]];continue;case'3':this[_0x46f784(0x1c1)]=[];continue;case'4':this[_0x46f784(0x1f5)]=_0x4910df[_0x46f784(0x1e5)];continue;case'5':this[_0x46f784(0x1dd)]=null;continue;}break;}}static[a85_0x301dff(0x1e4)](){const _0xa4e7f5=a85_0x301dff;return!RequestQueueHandler[_0xa4e7f5(0x1fd)]&&(RequestQueueHandler[_0xa4e7f5(0x1fd)]=new RequestQueueHandler()),RequestQueueHandler[_0xa4e7f5(0x1fd)];}[a85_0x301dff(0x1be)]=()=>{const _0x3b6a86=a85_0x301dff;!this['started']&&(this[_0x3b6a86(0x20e)]=!![],this[_0x3b6a86(0x1ce)]());};[a85_0x301dff(0x1fc)]=_0x2d0ae4=>{const _0x4043c3=a85_0x301dff,_0x1d5c30={'eicxS':function(_0x4af20b,_0xd15f58){return _0x4af20b===_0xd15f58;},'EbAXs':_0x4043c3(0x1d5),'ZHKVX':function(_0x378493,_0x5e7e11){return _0x378493(_0x5e7e11);},'tsWNQ':_0x4043c3(0x204)};if(this[_0x4043c3(0x213)][_0x4043c3(0x1f6)](_0x2d0ae4['event_type'])){if(_0x2d0ae4[_0x4043c3(0x1c6)]&&_0x2d0ae4['logs'][0x0]&&_0x1d5c30[_0x4043c3(0x1d6)](_0x2d0ae4[_0x4043c3(0x1c6)][0x0][_0x4043c3(0x1cc)],_0x1d5c30['EbAXs'])){const _0x3e181c={};return _0x3e181c[_0x4043c3(0x1e0)]=!![],_0x3e181c[_0x4043c3(0x206)]=[_0x2d0ae4],_0x3e181c[_0x4043c3(0x1c8)]=this[_0x4043c3(0x1ee)],_0x3e181c;}this[_0x4043c3(0x1c1)]['push'](_0x2d0ae4);let _0x5c8b2b=null;const _0x2cb0e1=this[_0x4043c3(0x1e0)]();_0x2cb0e1&&(_0x1d5c30[_0x4043c3(0x1ff)](trace,_0x1d5c30[_0x4043c3(0x217)]),_0x5c8b2b=this[_0x4043c3(0x1c1)]['slice'](0x0,BATCH_SIZE),this[_0x4043c3(0x1c1)]['splice'](0x0,BATCH_SIZE),this[_0x4043c3(0x1e2)]());const _0x102492={};return _0x102492[_0x4043c3(0x1e0)]=_0x2cb0e1,_0x102492[_0x4043c3(0x206)]=_0x5c8b2b,_0x102492['proceedWithUrl']=this[_0x4043c3(0x1f5)],_0x102492;}const _0x199027={};return _0x199027[_0x4043c3(0x1e0)]=!![],_0x199027;};[a85_0x301dff(0x1c3)]=async()=>{const _0x491866=a85_0x301dff,_0x43b1fb={'zkLza':_0x491866(0x1cd),'pvoUC':function(_0xd0d5da,_0x4574d4){return _0xd0d5da>_0x4574d4;},'lOpqy':_0x491866(0x1bb),'HhGvT':function(_0x31f9a5,_0x3f5e5c){return _0x31f9a5(_0x3f5e5c);}};await this['uploadPending'](),this[_0x491866(0x1cb)](_0x43b1fb[_0x491866(0x1e3)]);while(_0x43b1fb[_0x491866(0x20d)](this[_0x491866(0x1c1)]['length'],0x0)){const _0x25c70c=this[_0x491866(0x1c1)][_0x491866(0x1dc)](0x0,BATCH_SIZE);this[_0x491866(0x1c1)][_0x491866(0x1f1)](0x0,BATCH_SIZE),await this[_0x491866(0x1d8)](this['eventUrl'],_0x43b1fb['lOpqy'],_0x25c70c);}_0x43b1fb[_0x491866(0x20d)](this[_0x491866(0x1f4)],0x0)&&_0x43b1fb[_0x491866(0x205)](debug,_0x491866(0x1e9)+this[_0x491866(0x1f4)]);};[a85_0x301dff(0x1d8)]=async(_0xdddc0d,_0x1404ec,_0x3cea68)=>{const _0x3c0e4d=a85_0x301dff,_0x51758f={'PXvoZ':function(_0x4b5ff0,_0x3dfbc5){return _0x4b5ff0(_0x3dfbc5);},'HQOKE':_0x3c0e4d(0x1c0),'FXUkn':function(_0x4c5692){return _0x4c5692();},'SNXRX':function(_0x58cb09,_0xd1dac7,_0x576df9,_0x1a9d1c,_0xa178df){return _0x58cb09(_0xd1dac7,_0x576df9,_0x1a9d1c,_0xa178df);},'bCqYp':'POST','omhLV':function(_0x3124ce,_0x12ee53){return _0x3124ce(_0x12ee53);},'jjwkI':function(_0x4e3efa,_0x54944d){return _0x4e3efa-_0x54944d;},'mduNf':function(_0x391e76,_0x5cfee7){return _0x391e76-_0x5cfee7;}};let _0x483a45='';try{_0x483a45=_0x3cea68[_0x3c0e4d(0x1b7)](_0x4248a4=>'\x27'+_0x4248a4[_0x3c0e4d(0x1cf)]+'\x27:'+(nestedKeyValue(_0x4248a4,[_0x3c0e4d(0x1d3),_0x3c0e4d(0x216)])||nestedKeyValue(_0x4248a4,[_0x3c0e4d(0x1c4),_0x3c0e4d(0x216)])))[_0x3c0e4d(0x1b9)](','),_0x51758f[_0x3c0e4d(0x1f3)](debug,'Processing\x20batch\x20events\x20for\x20'+_0x1404ec+'.\x20Request\x20Size\x20-\x20'+Buffer['byteLength'](util[_0x3c0e4d(0x1e7)]('%j',_0x3cea68),_0x51758f['HQOKE'])+_0x3c0e4d(0x1f7)+_0x483a45);}catch(_0x599b45){_0x51758f[_0x3c0e4d(0x1f3)](debug,_0x3c0e4d(0x211)+util[_0x3c0e4d(0x1e7)](_0x599b45)+'}');}const _0x7b8750={'headers':_0x51758f[_0x3c0e4d(0x1f2)](getDefaultHeaders)};try{const _0x232e8d=await _0x51758f[_0x3c0e4d(0x1de)](nodeRequest,_0x51758f['bCqYp'],_0xdddc0d,_0x3cea68,_0x7b8750);if(_0x232e8d[_0x3c0e4d(0x218)][_0x3c0e4d(0x214)]){const _0x31ea9c={};_0x31ea9c['message']=_0x232e8d[_0x3c0e4d(0x218)][_0x3c0e4d(0x214)];throw _0x31ea9c;}else _0x51758f[_0x3c0e4d(0x1bc)](debug,_0x1404ec+_0x3c0e4d(0x1ed)+_0x483a45+'\x20--\x20'+util[_0x3c0e4d(0x1e7)]('%j',_0x232e8d[_0x3c0e4d(0x218)])),this[_0x3c0e4d(0x1f4)]=Math[_0x3c0e4d(0x209)](0x0,_0x51758f[_0x3c0e4d(0x1d1)](this['pendingUploads'],_0x3cea68[_0x3c0e4d(0x1ba)]));}catch(_0x528921){_0x528921['response']?_0x51758f['omhLV'](debug,'EXCEPTION\x20IN\x20'+_0x1404ec+_0x3c0e4d(0x1f0)+_0x528921[_0x3c0e4d(0x1b8)]['status']+'\x20'+_0x528921[_0x3c0e4d(0x1b8)][_0x3c0e4d(0x20c)]+'\x20'+util['format']('%j',_0x528921['response'])):_0x51758f['omhLV'](debug,_0x3c0e4d(0x1d4)+_0x1404ec+_0x3c0e4d(0x1f0)+(_0x528921[_0x3c0e4d(0x1c7)]||_0x528921)),this[_0x3c0e4d(0x1f4)]=Math[_0x3c0e4d(0x209)](0x0,_0x51758f['mduNf'](this[_0x3c0e4d(0x1f4)],_0x3cea68[_0x3c0e4d(0x1ba)]));}};[a85_0x301dff(0x1ce)]=()=>{const _0x2fb698=a85_0x301dff,_0x323441={'FgcuX':function(_0x2b5dca,_0x55b768){return _0x2b5dca>_0x55b768;},'mbFhi':function(_0x54fb11,_0x4ee763){return _0x54fb11(_0x4ee763);},'HeAFz':_0x2fb698(0x215),'LNLbw':function(_0x16785f,_0xabe5d5){return _0x16785f(_0xabe5d5);},'rRsIh':function(_0x29c40e,_0x384b1e,_0x5e3e13){return _0x29c40e(_0x384b1e,_0x5e3e13);}};this[_0x2fb698(0x1dd)]=_0x323441[_0x2fb698(0x207)](setInterval,async()=>{const _0x275337=_0x2fb698;if(_0x323441[_0x275337(0x208)](this['queue'][_0x275337(0x1ba)],0x0)){_0x323441['mbFhi'](trace,'Processing\x20events.\x20Queue\x20Length\x20-\x20'+this[_0x275337(0x1c1)]['length']);const _0x20992c=this[_0x275337(0x1c1)][_0x275337(0x1dc)](0x0,BATCH_SIZE);this[_0x275337(0x1c1)][_0x275337(0x1f1)](0x0,BATCH_SIZE),await this[_0x275337(0x1d8)](this[_0x275337(0x1f5)],_0x323441['HeAFz'],_0x20992c),_0x323441['LNLbw'](trace,_0x275337(0x1df)+this['queue']['length']);}},BATCH_INTERVAL);};[a85_0x301dff(0x1e2)]=()=>{const _0x25f630=a85_0x301dff,_0x50f731={};_0x50f731[_0x25f630(0x1ec)]=_0x25f630(0x1e1);const _0x4b3556=_0x50f731;this['removeEventBatchPolling'](_0x4b3556[_0x25f630(0x1ec)]),this[_0x25f630(0x1ce)]();};[a85_0x301dff(0x1cb)]=_0x4191e2=>{const _0x56dabb=a85_0x301dff,_0x1e4b53={'mJTRR':function(_0x1128c1,_0x484e1a){return _0x1128c1(_0x484e1a);},'dnuEP':function(_0x532e3d,_0x1fc35a){return _0x532e3d===_0x1fc35a;},'guLKt':_0x56dabb(0x1cd)};this[_0x56dabb(0x1dd)]&&(_0x1e4b53[_0x56dabb(0x200)](clearInterval,this[_0x56dabb(0x1dd)]),this[_0x56dabb(0x1dd)]=null,_0x1e4b53['dnuEP'](_0x4191e2,_0x1e4b53[_0x56dabb(0x1f8)])&&(this['started']=![]));};['shouldProceed']=()=>{const _0x5c04bc=a85_0x301dff,_0x47a86a={};_0x47a86a[_0x5c04bc(0x1d7)]=function(_0x4b1114,_0x1df96a){return _0x4b1114>=_0x1df96a;};const _0x1978c3=_0x47a86a;return _0x1978c3[_0x5c04bc(0x1d7)](this[_0x5c04bc(0x1c1)]['length'],BATCH_SIZE);};async[a85_0x301dff(0x210)](_0x2b9b00=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x22c685=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x5ce539=a85_0x301dff,_0x2c123e={'dnTtL':function(_0x847437,_0x3f26ed){return _0x847437<=_0x3f26ed;},'quwtv':function(_0x1c6e06,_0x415c8e){return _0x1c6e06(_0x415c8e);},'PWeIB':function(_0x4da706,_0x57819c){return _0x4da706-_0x57819c;}};if(_0x2c123e[_0x5ce539(0x1fa)](this['pendingUploads'],0x0)||_0x2c123e[_0x5ce539(0x1fa)](_0x2b9b00,0x0))return;return await _0x2c123e['quwtv'](sleep,_0x22c685),this[_0x5ce539(0x210)](_0x2c123e[_0x5ce539(0x1fb)](_0x2b9b00,_0x22c685));}}module[a85_0x301dff(0x212)]=RequestQueueHandler;
1
+ const a85_0x1ee286=a85_0xfd45;function a85_0xfd45(_0x3314d5,_0x3775f1){const _0x4f57ef=a85_0x4f57();return a85_0xfd45=function(_0xfd45d,_0xa7db7d){_0xfd45d=_0xfd45d-0x133;let _0xa36c15=_0x4f57ef[_0xfd45d];return _0xa36c15;},a85_0xfd45(_0x3314d5,_0x3775f1);}(function(_0x1c5a0b,_0x139efb){const _0x4e42d2=a85_0xfd45,_0x548ae7=_0x1c5a0b();while(!![]){try{const _0x4b902b=parseInt(_0x4e42d2(0x155))/0x1*(-parseInt(_0x4e42d2(0x162))/0x2)+-parseInt(_0x4e42d2(0x197))/0x3+-parseInt(_0x4e42d2(0x168))/0x4+-parseInt(_0x4e42d2(0x184))/0x5*(parseInt(_0x4e42d2(0x14f))/0x6)+-parseInt(_0x4e42d2(0x195))/0x7+parseInt(_0x4e42d2(0x18a))/0x8+parseInt(_0x4e42d2(0x151))/0x9;if(_0x4b902b===_0x139efb)break;else _0x548ae7['push'](_0x548ae7['shift']());}catch(_0x3b8f28){_0x548ae7['push'](_0x548ae7['shift']());}}}(a85_0x4f57,0xcf55b));const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require(a85_0x1ee286(0x17a)),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require(a85_0x1ee286(0x193)),{nestedKeyValue}=require(a85_0x1ee286(0x141)),util=require('util');function a85_0x4f57(){const _0xc9bfed=['vJLGE','add','BATCH_EVENT_TYPES','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','queue','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','FwZbF','data','api/v1/batch','1486ZLMylc','statusText','CBTSessionCreated','shouldProceed','test_run','pendingUploads','2572124hPFFqM','batchAndPostEvents','ghrHi','format','error','uOuVI','byteLength','SEFep','instance','loQnr','response','miqcp','slice','TEST_SCREENSHOT','max','emNXq','TestRunStarted','status','./constants','Processing\x20events.\x20Queue\x20Length\x20-\x20','1|4|0|2|5|3','start','XZHKh','dcFEc','FipFM','EjSAp','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','eventUrl','10AHiFaN','proceedWithData','uploadPending','join','event_type','removeEventBatchPolling','2665392NTWTYm','mXPuy','ZuwgK','pPnBu','LzKDh','riTdx','started','length','HookRunStarted','./utils','pollEventBatchInterval','379113XGlUiS','ahHJX','4513716qVhFiH','svzTy','TestRunSkipped','\x20bytes.\x20Events\x20are\x20','TanUd','OfjXo','proceedWithUrl','REMOVING','\x20event\x20successful\x20for\x20events\x20','LfgJY','hook_run','push','XxTHP','fRSOz','.\x20Request\x20Size\x20-\x20','screenshotEventUrl','HLkJF','startEventBatchPolling','../helper','WzsGH','RESETTING','splice','uuid','elgMM','resetEventBatchPolling','EXCEPTION\x20IN\x20','mgwgi','shutdown','\x20--\x20','JeAPD','HookRunFinished','JAHrc','4497258GAIXpL','message','39202722ZzSQTL','POST','logs','mEtgz','187SGygko','diYDv','kind','gARvw'];a85_0x4f57=function(){return _0xc9bfed;};return a85_0x4f57();}class RequestQueueHandler{static [a85_0x1ee286(0x170)];[a85_0x1ee286(0x167)]=0x0;constructor(){const _0x3abcbe=a85_0x1ee286,_0x270c0c={};_0x270c0c[_0x3abcbe(0x18f)]=_0x3abcbe(0x17c),_0x270c0c[_0x3abcbe(0x171)]=_0x3abcbe(0x161),_0x270c0c[_0x3abcbe(0x158)]='api/v1/screenshots',_0x270c0c[_0x3abcbe(0x13b)]='LogCreated',_0x270c0c[_0x3abcbe(0x13c)]=_0x3abcbe(0x164),_0x270c0c[_0x3abcbe(0x134)]='TestRunFinished',_0x270c0c[_0x3abcbe(0x15f)]=_0x3abcbe(0x199),_0x270c0c[_0x3abcbe(0x13f)]=_0x3abcbe(0x14d),_0x270c0c['WzsGH']=_0x3abcbe(0x178),_0x270c0c[_0x3abcbe(0x18e)]=_0x3abcbe(0x192);const _0x32d804=_0x270c0c,_0x139218=_0x32d804[_0x3abcbe(0x18f)]['split']('|');let _0x10e33e=0x0;while(!![]){switch(_0x139218[_0x10e33e++]){case'0':this['eventUrl']=_0x32d804[_0x3abcbe(0x171)];continue;case'1':this[_0x3abcbe(0x15d)]=[];continue;case'2':this['screenshotEventUrl']=_0x32d804['gARvw'];continue;case'3':this['pollEventBatchInterval']=null;continue;case'4':this[_0x3abcbe(0x190)]=![];continue;case'5':this[_0x3abcbe(0x15b)]=[_0x32d804[_0x3abcbe(0x13b)],_0x32d804[_0x3abcbe(0x13c)],_0x32d804[_0x3abcbe(0x134)],_0x32d804['FwZbF'],_0x32d804[_0x3abcbe(0x13f)],_0x32d804[_0x3abcbe(0x142)],_0x32d804[_0x3abcbe(0x18e)]];continue;}break;}}static['getInstance'](){const _0x13f985=a85_0x1ee286;return!RequestQueueHandler['instance']&&(RequestQueueHandler[_0x13f985(0x170)]=new RequestQueueHandler()),RequestQueueHandler['instance'];}[a85_0x1ee286(0x17d)]=()=>{const _0x1bb60b=a85_0x1ee286;!this[_0x1bb60b(0x190)]&&(this['started']=!![],this[_0x1bb60b(0x140)]());};[a85_0x1ee286(0x15a)]=_0x4d21ab=>{const _0x388b62=a85_0x1ee286,_0x22bb41={'ghrHi':function(_0x136fd0,_0x25e950){return _0x136fd0===_0x25e950;},'dcFEc':_0x388b62(0x175),'JeAPD':function(_0xdce6ac,_0x4bcfda){return _0xdce6ac(_0x4bcfda);},'rpnmq':_0x388b62(0x15c)};if(this[_0x388b62(0x15b)]['includes'](_0x4d21ab['event_type'])){if(_0x4d21ab['logs']&&_0x4d21ab[_0x388b62(0x153)][0x0]&&_0x22bb41[_0x388b62(0x16a)](_0x4d21ab['logs'][0x0][_0x388b62(0x157)],_0x22bb41[_0x388b62(0x17f)])){const _0x17957b={};return _0x17957b[_0x388b62(0x165)]=!![],_0x17957b[_0x388b62(0x185)]=[_0x4d21ab],_0x17957b[_0x388b62(0x135)]=this[_0x388b62(0x13e)],_0x17957b;}this['queue'][_0x388b62(0x13a)](_0x4d21ab);let _0x352bc4=null;const _0x8304b5=this[_0x388b62(0x165)]();_0x8304b5&&(_0x22bb41[_0x388b62(0x14c)](trace,_0x22bb41['rpnmq']),_0x352bc4=this['queue'][_0x388b62(0x174)](0x0,BATCH_SIZE),this[_0x388b62(0x15d)][_0x388b62(0x144)](0x0,BATCH_SIZE),this['resetEventBatchPolling']());const _0x24b6f5={};return _0x24b6f5[_0x388b62(0x165)]=_0x8304b5,_0x24b6f5['proceedWithData']=_0x352bc4,_0x24b6f5[_0x388b62(0x135)]=this[_0x388b62(0x183)],_0x24b6f5;}const _0x238ff8={};return _0x238ff8['shouldProceed']=!![],_0x238ff8;};[a85_0x1ee286(0x14a)]=async()=>{const _0x2ac12b=a85_0x1ee286,_0x380bc5={'diYDv':'REMOVING','mEtgz':function(_0x550d6a,_0x102020){return _0x550d6a>_0x102020;},'FipFM':'Shutdown-Queue','pPnBu':function(_0x4d8195,_0xc69037){return _0x4d8195(_0xc69037);}};await this[_0x2ac12b(0x186)](),this['removeEventBatchPolling'](_0x380bc5[_0x2ac12b(0x156)]);while(_0x380bc5[_0x2ac12b(0x154)](this[_0x2ac12b(0x15d)]['length'],0x0)){const _0x4ef6f3=this[_0x2ac12b(0x15d)][_0x2ac12b(0x174)](0x0,BATCH_SIZE);this[_0x2ac12b(0x15d)][_0x2ac12b(0x144)](0x0,BATCH_SIZE),await this[_0x2ac12b(0x169)](this[_0x2ac12b(0x183)],_0x380bc5[_0x2ac12b(0x180)],_0x4ef6f3);}_0x380bc5['mEtgz'](this[_0x2ac12b(0x167)],0x0)&&_0x380bc5[_0x2ac12b(0x18d)](debug,'Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20'+this[_0x2ac12b(0x167)]);};[a85_0x1ee286(0x169)]=async(_0x27cb75,_0x518a66,_0x17a18b)=>{const _0x4f307a=a85_0x1ee286,_0x3901ce={'JAHrc':function(_0x1ba4a8,_0x47da3b){return _0x1ba4a8(_0x47da3b);},'LfgJY':'utf8','elgMM':function(_0x5919c2){return _0x5919c2();},'mgwgi':function(_0x2b483e,_0x3f63b9,_0x253f3d,_0x2b0261,_0x5d7904){return _0x2b483e(_0x3f63b9,_0x253f3d,_0x2b0261,_0x5d7904);},'uSSqh':_0x4f307a(0x152),'miqcp':function(_0x7154c7,_0x506620){return _0x7154c7-_0x506620;},'izbND':function(_0x3c46e6,_0x1acc4f){return _0x3c46e6(_0x1acc4f);},'uOuVI':function(_0x5c7101,_0x4cc8fc){return _0x5c7101(_0x4cc8fc);}};let _0x25b04d='';try{_0x25b04d=_0x17a18b['map'](_0xefda42=>'\x27'+_0xefda42[_0x4f307a(0x188)]+'\x27:'+(nestedKeyValue(_0xefda42,[_0x4f307a(0x166),_0x4f307a(0x145)])||nestedKeyValue(_0xefda42,[_0x4f307a(0x139),_0x4f307a(0x145)])))[_0x4f307a(0x187)](','),_0x3901ce['JAHrc'](debug,'Processing\x20batch\x20events\x20for\x20'+_0x518a66+_0x4f307a(0x13d)+Buffer[_0x4f307a(0x16e)](util['format']('%j',_0x17a18b),_0x3901ce[_0x4f307a(0x138)])+_0x4f307a(0x19a)+_0x25b04d);}catch(_0x15e190){_0x3901ce[_0x4f307a(0x14e)](debug,_0x4f307a(0x182)+util[_0x4f307a(0x16b)](_0x15e190)+'}');}const _0x12df87={'headers':_0x3901ce[_0x4f307a(0x146)](getDefaultHeaders)};try{const _0x238e4f=await _0x3901ce[_0x4f307a(0x149)](nodeRequest,_0x3901ce['uSSqh'],_0x27cb75,_0x17a18b,_0x12df87);if(_0x238e4f[_0x4f307a(0x160)][_0x4f307a(0x16c)]){const _0x4bc927={};_0x4bc927[_0x4f307a(0x150)]=_0x238e4f[_0x4f307a(0x160)][_0x4f307a(0x16c)];throw _0x4bc927;}else _0x3901ce['JAHrc'](debug,_0x518a66+_0x4f307a(0x137)+_0x25b04d+_0x4f307a(0x14b)+util['format']('%j',_0x238e4f[_0x4f307a(0x160)])),this[_0x4f307a(0x167)]=Math[_0x4f307a(0x176)](0x0,_0x3901ce['miqcp'](this['pendingUploads'],_0x17a18b['length']));}catch(_0x255f2a){_0x255f2a[_0x4f307a(0x172)]?_0x3901ce['izbND'](debug,_0x4f307a(0x148)+_0x518a66+_0x4f307a(0x15e)+_0x255f2a[_0x4f307a(0x172)][_0x4f307a(0x179)]+'\x20'+_0x255f2a[_0x4f307a(0x172)][_0x4f307a(0x163)]+'\x20'+util['format']('%j',_0x255f2a[_0x4f307a(0x172)])):_0x3901ce[_0x4f307a(0x16d)](debug,_0x4f307a(0x148)+_0x518a66+_0x4f307a(0x15e)+(_0x255f2a['message']||_0x255f2a)),this[_0x4f307a(0x167)]=Math['max'](0x0,_0x3901ce[_0x4f307a(0x173)](this['pendingUploads'],_0x17a18b[_0x4f307a(0x191)]));}};[a85_0x1ee286(0x140)]=()=>{const _0x4e0340=a85_0x1ee286,_0x286591={'emNXq':function(_0x3a6da,_0x4e1629){return _0x3a6da>_0x4e1629;},'vJLGE':function(_0x1d670c,_0x5eada6){return _0x1d670c(_0x5eada6);},'mXPuy':'Interval-Queue','SEFep':function(_0x452231,_0x111a17,_0x51099e){return _0x452231(_0x111a17,_0x51099e);}};this[_0x4e0340(0x194)]=_0x286591[_0x4e0340(0x16f)](setInterval,async()=>{const _0x3b4d02=_0x4e0340;if(_0x286591[_0x3b4d02(0x177)](this[_0x3b4d02(0x15d)]['length'],0x0)){_0x286591[_0x3b4d02(0x159)](trace,_0x3b4d02(0x17b)+this[_0x3b4d02(0x15d)][_0x3b4d02(0x191)]);const _0x2bdbf1=this[_0x3b4d02(0x15d)][_0x3b4d02(0x174)](0x0,BATCH_SIZE);this['queue'][_0x3b4d02(0x144)](0x0,BATCH_SIZE),await this[_0x3b4d02(0x169)](this[_0x3b4d02(0x183)],_0x286591[_0x3b4d02(0x18b)],_0x2bdbf1),_0x286591[_0x3b4d02(0x159)](trace,'Remaining\x20Queue\x20Length\x20-\x20'+this[_0x3b4d02(0x15d)]['length']);}},BATCH_INTERVAL);};[a85_0x1ee286(0x147)]=()=>{const _0x6f8e2f=a85_0x1ee286,_0x46604c={};_0x46604c[_0x6f8e2f(0x18c)]=_0x6f8e2f(0x143);const _0x586983=_0x46604c;this[_0x6f8e2f(0x189)](_0x586983['ZuwgK']),this[_0x6f8e2f(0x140)]();};[a85_0x1ee286(0x189)]=_0x1c6a90=>{const _0x2055f0=a85_0x1ee286,_0x3c04af={'TanUd':function(_0x50b5b4,_0x4180f4){return _0x50b5b4(_0x4180f4);},'XZHKh':function(_0x4f2dc6,_0x438bf8){return _0x4f2dc6===_0x438bf8;},'KtjVz':_0x2055f0(0x136)};this[_0x2055f0(0x194)]&&(_0x3c04af[_0x2055f0(0x133)](clearInterval,this[_0x2055f0(0x194)]),this[_0x2055f0(0x194)]=null,_0x3c04af[_0x2055f0(0x17e)](_0x1c6a90,_0x3c04af['KtjVz'])&&(this['started']=![]));};['shouldProceed']=()=>{const _0x5c60f5=a85_0x1ee286,_0x28ddde={};_0x28ddde[_0x5c60f5(0x181)]=function(_0x330fe0,_0x5a53cf){return _0x330fe0>=_0x5a53cf;};const _0x43e343=_0x28ddde;return _0x43e343[_0x5c60f5(0x181)](this[_0x5c60f5(0x15d)]['length'],BATCH_SIZE);};async['uploadPending'](_0x142868=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x1e689c=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x5d28d2=a85_0x1ee286,_0x18579f={'ahHJX':function(_0x4d1b46,_0x16933b){return _0x4d1b46<=_0x16933b;},'svzTy':function(_0x58cf69,_0x123c4c){return _0x58cf69(_0x123c4c);},'BLfEH':function(_0x1a3527,_0x2cce02){return _0x1a3527-_0x2cce02;}};if(_0x18579f[_0x5d28d2(0x196)](this[_0x5d28d2(0x167)],0x0)||_0x18579f[_0x5d28d2(0x196)](_0x142868,0x0))return;return await _0x18579f[_0x5d28d2(0x198)](sleep,_0x1e689c),this[_0x5d28d2(0x186)](_0x18579f['BLfEH'](_0x142868,_0x1e689c));}}module['exports']=RequestQueueHandler;
@@ -1 +1 @@
1
- const a86_0x5817a7=a86_0xf73f;(function(_0x133ebb,_0x4e2e00){const _0xa50dfa=a86_0xf73f,_0x436fd2=_0x133ebb();while(!![]){try{const _0x1c8ffc=parseInt(_0xa50dfa(0x123))/0x1*(-parseInt(_0xa50dfa(0xf5))/0x2)+-parseInt(_0xa50dfa(0x105))/0x3+-parseInt(_0xa50dfa(0x13b))/0x4+-parseInt(_0xa50dfa(0xff))/0x5+-parseInt(_0xa50dfa(0x10f))/0x6*(parseInt(_0xa50dfa(0xcf))/0x7)+-parseInt(_0xa50dfa(0xf1))/0x8*(-parseInt(_0xa50dfa(0x14b))/0x9)+parseInt(_0xa50dfa(0x127))/0xa;if(_0x1c8ffc===_0x4e2e00)break;else _0x436fd2['push'](_0x436fd2['shift']());}catch(_0x58e123){_0x436fd2['push'](_0x436fd2['shift']());}}}(a86_0x8379,0xd2501));function a86_0xf73f(_0x199ce,_0x690534){const _0x837927=a86_0x8379();return a86_0xf73f=function(_0xf73fd9,_0x577820){_0xf73fd9=_0xf73fd9-0xc3;let _0x16d494=_0x837927[_0xf73fd9];return _0x16d494;},a86_0xf73f(_0x199ce,_0x690534);}const bsSetupHelper=require('../helper'),path=require(a86_0x5817a7(0x138)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,sleep,isTestObservabilitySession,trace}=require('./utils'),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require('./constants'),RequestQueueHandler=require('./requestQueueHandler'),logger=require(a86_0x5817a7(0xdd))['winstonLogger'],{shouldProcessEventForTesthub,isPercyBuild,getProductMap}=require(a86_0x5817a7(0x12b));class SessionHandler{static [a86_0x5817a7(0x13d)]=RequestQueueHandler[a86_0x5817a7(0xe7)]();static async[a86_0x5817a7(0x121)](_0xdabe09,_0x14c567){const _0x18f830=a86_0x5817a7,_0x265838={'MYJcf':function(_0x5606e7,_0x59510a){return _0x5606e7||_0x59510a;},'JIOBo':function(_0x501ad7,_0x3eea1d){return _0x501ad7||_0x3eea1d;},'Uaxmy':function(_0x53bf78,_0x480623){return _0x53bf78===_0x480623;},'Wegns':function(_0x184625,_0x2e6e9f){return _0x184625(_0x2e6e9f);},'vfTSU':'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','sOaWW':_0x18f830(0x119),'oWpwU':'json','GoLSa':function(_0x24ec0c,_0x3f74cd){return _0x24ec0c(_0x3f74cd);},'QKdzH':function(_0x187887,_0x2eda19,_0x2dabfb,_0x125914,_0x7021ab){return _0x187887(_0x2eda19,_0x2dabfb,_0x125914,_0x7021ab);},'VCIfz':_0x18f830(0xfc),'tcYdN':_0x18f830(0xd5),'smvEb':function(_0x34c39d,_0x26e0f8){return _0x34c39d(_0x26e0f8);},'mHyBD':_0x18f830(0xf6),'TQvwK':function(_0x34cdc2){return _0x34cdc2();},'jBWix':'true','mMACl':_0x18f830(0x152),'TzVlC':function(_0x3bee8f,_0x4f3fc2){return _0x3bee8f(_0x4f3fc2);},'WfzIk':_0x18f830(0xd9),'bmmVk':_0x18f830(0xd8),'weZus':'ERROR_SDK_DEPRECATED'},_0x5f197c=bsSetupHelper[_0x18f830(0xc7)](_0xdabe09),_0x404af1=bsSetupHelper[_0x18f830(0xe4)](_0xdabe09),_0x104e91=_0x265838[_0x18f830(0xc5)](_0x5f197c,'')+':'+_0x265838[_0x18f830(0xd7)](_0x404af1,'');if(_0x265838['Uaxmy'](_0x104e91,':'))return _0x265838['Wegns'](debug,_0x265838[_0x18f830(0xd6)]),process[_0x18f830(0xf7)]['BS_TESTOPS_BUILD_COMPLETED']=_0x265838[_0x18f830(0xd4)],[null,null];let _0x19e091=![],_0x43904f=![];if(_0xdabe09[_0x18f830(0x115)]&&_0xdabe09[_0x18f830(0xc8)])_0x43904f=!![];else _0xdabe09[_0x18f830(0x115)]&&(_0x19e091=!![]);try{const _0x4879a1={'format':_0x265838[_0x18f830(0xcd)],'project_name':_0xdabe09[_0x18f830(0x148)]||'','name':_0xdabe09[_0x18f830(0x131)]||path[_0x18f830(0x14c)](path[_0x18f830(0xe2)](process['cwd']())),'build_identifier':_0xdabe09[_0x18f830(0x103)],'description':_0xdabe09[_0x18f830(0x109)]||'','start_time':new Date()['toISOString'](),'tags':_0x265838[_0x18f830(0x154)](getCustomTags,_0xdabe09),'host_info':bsSetupHelper[_0x18f830(0xfe)](),'ci_info':bsSetupHelper['getCiInfo'](),'build_run_identifier':process[_0x18f830(0xf7)][_0x18f830(0x11a)],'failed_tests_rerun':process[_0x18f830(0xf7)]['BROWSERSTACK_RERUN']||![],'version_control':await bsSetupHelper[_0x18f830(0x151)](),'observability_version':{'frameworkName':_0x14c567[_0x18f830(0x136)],'frameworkVersion':_0x14c567[_0x18f830(0xc4)],'sdkVersion':bsSetupHelper[_0x18f830(0x101)]()},'product_map':_0x265838[_0x18f830(0x13c)](getProductMap,_0xdabe09)},_0x440e29={};_0x440e29[_0x18f830(0xe1)]=_0x5f197c,_0x440e29[_0x18f830(0x12a)]=_0x404af1;const _0x49136d={'auth':_0x440e29,'headers':_0x265838[_0x18f830(0x13c)](getDefaultHeaders,![])},_0xc038e6=await _0x265838[_0x18f830(0x135)](nodeRequest,_0x265838[_0x18f830(0xe5)],_0x265838['tcYdN'],_0x4879a1,_0x49136d);_0x265838['smvEb'](debug,_0x265838[_0x18f830(0x13a)]);const _0x3909d6=_0xc038e6[_0x18f830(0x146)];_0x3909d6['build_hashed_id']&&(process[_0x18f830(0xf7)][_0x18f830(0x112)]=_0x3909d6[_0x18f830(0xe0)]);if(_0x265838[_0x18f830(0x10c)](isTestObservabilitySession)){process[_0x18f830(0xf7)][_0x18f830(0xe9)]=_0x265838['jBWix'];if(_0x3909d6['jwt']){process[_0x18f830(0xf7)]['BS_TESTOPS_JWT']=_0x3909d6[_0x18f830(0x110)];const _0x1bc567={};_0x1bc567[_0x18f830(0xe1)]=_0x5f197c,_0x1bc567['password']=_0x404af1,process[_0x18f830(0xf7)][_0x18f830(0x111)]=JSON[_0x18f830(0xdc)](_0x1bc567);}_0x3909d6[_0x18f830(0xe0)]&&(process[_0x18f830(0xf7)][_0x18f830(0x129)]=_0x3909d6[_0x18f830(0xe0)]),_0x3909d6[_0x18f830(0x118)]&&(process['env']['BS_TESTOPS_ALLOW_SCREENSHOTS']=_0x3909d6[_0x18f830(0x118)][_0x18f830(0xe6)]());}return[_0xc038e6[_0x18f830(0x146)][_0x18f830(0x110)],_0xc038e6[_0x18f830(0x146)][_0x18f830(0xe0)],_0xc038e6[_0x18f830(0x146)][_0x18f830(0x118)]];}catch(_0x154796){process[_0x18f830(0xf7)]['BROWSERSTACK_TESTHUB_UUID']=_0x265838[_0x18f830(0x139)],process[_0x18f830(0xf7)][_0x18f830(0xe9)]=_0x265838[_0x18f830(0xd4)],process[_0x18f830(0xf7)][_0x18f830(0x117)]=_0x265838[_0x18f830(0x139)],process[_0x18f830(0xf7)][_0x18f830(0x129)]=_0x265838['mMACl'],process['env'][_0x18f830(0xd0)]=_0x265838[_0x18f830(0x139)];_0x154796[_0x18f830(0x10a)]?_0x265838[_0x18f830(0x130)](debug,_0x18f830(0xea)+_0x154796['response'][_0x18f830(0x147)]+'\x20'+_0x154796[_0x18f830(0x10a)][_0x18f830(0x11d)]+'\x20'+JSON[_0x18f830(0xdc)](_0x154796[_0x18f830(0x10a)]['data'])):_0x265838[_0x18f830(0x104)](debug,_0x18f830(0xea)+(_0x154796[_0x18f830(0xeb)]||_0x154796));if(_0x154796&&_0x154796[_0x18f830(0xeb)]){const _0x2dbc00=_0x154796[_0x18f830(0xeb)];switch(_0x154796[_0x18f830(0x12f)]){case _0x265838[_0x18f830(0xc3)]:logger[_0x18f830(0xde)](_0x2dbc00);break;case _0x265838['bmmVk']:logger['info'](_0x2dbc00);break;case _0x265838[_0x18f830(0x102)]:logger[_0x18f830(0xde)](_0x2dbc00);break;default:logger[_0x18f830(0xde)](_0x2dbc00);}}else console[_0x18f830(0xfb)](_0x18f830(0x116)+_0x154796);return[null,null,null];}}static async[a86_0x5817a7(0xc9)](){const _0x41e716=a86_0x5817a7,_0x2c2ab8={'TlKVl':_0x41e716(0x126),'cNKqN':_0x41e716(0x119),'nWhtg':function(_0x5a8bd4,_0x35742b){return _0x5a8bd4(_0x35742b);}},_0x8406ed=process[_0x41e716(0xf7)]['BS_TESTOPS_BUILD_COMPLETED'];if([_0x2c2ab8['TlKVl'],_0x2c2ab8[_0x41e716(0x106)]]['includes'](_0x8406ed))return;while([_0x2c2ab8[_0x41e716(0xf4)],_0x2c2ab8[_0x41e716(0x106)]]['includes'](_0x8406ed)){await _0x2c2ab8[_0x41e716(0xda)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static async[a86_0x5817a7(0xe8)](_0x2c2b5c,_0x4b9b4a=0x0){const _0x503c27=a86_0x5817a7,_0x1cd14a={'vkNhw':function(_0x3419d4,_0x5f5a90){return _0x3419d4+_0x5f5a90;},'xZQXQ':'Test_Start_Upload','wUqLo':'Test_End_Upload','sYCvb':_0x503c27(0xf8),'fTeeu':'Log_Upload','EUXjb':'Hook_Start_Upload','uYFkt':'Hook_End_Upload','kQgty':_0x503c27(0xc6),'IeeOf':function(_0x5ac806,_0x341e70){return _0x5ac806(_0x341e70);},'MiTsF':'test_run','PAhUb':_0x503c27(0x14d),'UxSLP':_0x503c27(0xe3),'fIHme':function(_0x32ece9,_0x4adff4,_0xe8fa07){return _0x32ece9(_0x4adff4,_0xe8fa07);},'AHCCd':_0x503c27(0xe8),'VirlH':function(_0x17c9b6,_0x30da8f){return _0x17c9b6===_0x30da8f;},'vQOCL':function(_0x20f0f9,_0x245491){return _0x20f0f9!==_0x245491;},'LGfNz':_0x503c27(0x152),'adjjG':function(_0x3d372e,_0x24cb1c){return _0x3d372e===_0x24cb1c;},'etoMT':_0x503c27(0x126),'JJSqL':function(_0x2b3ae3){return _0x2b3ae3();},'rUBPw':function(_0xded59,_0x58c3c0){return _0xded59-_0x58c3c0;},'UWiMN':_0x503c27(0xde),'UnhTH':_0x503c27(0xd1),'iMwuL':_0x503c27(0x140),'oGcYA':function(_0x27d08c,_0x43d6af,_0x1a58e6,_0xa88110,_0x1be9b6){return _0x27d08c(_0x43d6af,_0x1a58e6,_0xa88110,_0x1be9b6);},'srKzl':_0x503c27(0xfc),'fOEHU':_0x503c27(0x155),'pJfZB':function(_0x526672,_0xa98100){return _0x526672===_0xa98100;},'poiYe':'api/v1/event','mFxty':'success','tSOto':function(_0x4cb521,_0x4e8e8c){return _0x4cb521(_0x4e8e8c);},'RVFsk':function(_0x6074c0,_0x48b570){return _0x6074c0(_0x48b570);},'SrLUU':function(_0x27d8f4,_0x1fd623){return _0x27d8f4!==_0x1fd623;},'GaXWO':function(_0x2ea64d,_0x449402){return _0x2ea64d>=_0x449402;},'JAeVS':function(_0x5f0bcf,_0x49b722){return _0x5f0bcf(_0x49b722);},'yvqiP':function(_0x949cd7,_0x441f2b){return _0x949cd7!==_0x441f2b;},'avVIz':function(_0x1d8113,_0x1350fd){return _0x1d8113-_0x1350fd;},'lGhzj':_0x503c27(0x11c),'dVDeo':function(_0x803341,_0x3cb622){return _0x803341!==_0x3cb622;},'EEPXE':_0x503c27(0x119),'xpQfU':function(_0x512c45,_0x505075,_0x20e544){return _0x512c45(_0x505075,_0x20e544);}},_0x15b4d7={};_0x15b4d7['TestRunStarted']=_0x1cd14a['xZQXQ'],_0x15b4d7['TestRunFinished']=_0x1cd14a[_0x503c27(0xf2)],_0x15b4d7[_0x503c27(0x128)]=_0x1cd14a[_0x503c27(0x10b)],_0x15b4d7['LogCreated']=_0x1cd14a[_0x503c27(0x141)],_0x15b4d7[_0x503c27(0xcc)]=_0x1cd14a['EUXjb'],_0x15b4d7[_0x503c27(0x12c)]=_0x1cd14a['uYFkt'],_0x15b4d7['CBTSessionCreated']=_0x1cd14a[_0x503c27(0x11e)];const _0x1718be=_0x15b4d7[_0x2c2b5c[_0x503c27(0x132)]];_0x1cd14a['IeeOf'](trace,'Processing\x20event\x20-\x20\x27'+_0x2c2b5c[_0x503c27(0x132)]+'\x27\x20'+(bsSetupHelper['nestedKeyValue'](_0x2c2b5c,[_0x1cd14a[_0x503c27(0x125)],_0x1cd14a[_0x503c27(0x150)]])||bsSetupHelper[_0x503c27(0x100)](_0x2c2b5c,[_0x1cd14a[_0x503c27(0x11b)],_0x1cd14a[_0x503c27(0x150)]])));if(!_0x1cd14a[_0x503c27(0x137)](shouldProcessEventForTesthub,_0x2c2b5c[_0x503c27(0x132)],_0x1cd14a['AHCCd']))return;_0x1cd14a['VirlH'](_0x4b9b4a,0x0)&&process[_0x503c27(0xf7)][_0x503c27(0x12d)]&&_0x1cd14a[_0x503c27(0xef)](process[_0x503c27(0xf7)]['BROWSERSTACK_TESTHUB_JWT'],_0x1cd14a[_0x503c27(0x14a)])&&(this['requestQueueHandler'][_0x503c27(0xfa)]+=0x1);if(_0x1cd14a[_0x503c27(0x113)](process['env'][_0x503c27(0xe9)],_0x1cd14a[_0x503c27(0x149)])||process['env']['BS_A11Y_JWT']||_0x1cd14a[_0x503c27(0xf0)](isPercyBuild)){if(_0x1cd14a[_0x503c27(0x113)](process[_0x503c27(0xf7)][_0x503c27(0x12d)],_0x1cd14a[_0x503c27(0x14a)])){_0x1cd14a[_0x503c27(0x108)](debug,_0x503c27(0x153)+_0x1718be+_0x503c27(0x133)),this[_0x503c27(0x13d)]['pendingUploads']=Math[_0x503c27(0x13f)](0x0,_0x1cd14a[_0x503c27(0x13e)](this[_0x503c27(0x13d)][_0x503c27(0xfa)],0x1));const _0x1f78cd={};return _0x1f78cd[_0x503c27(0x147)]=_0x1cd14a['UWiMN'],_0x1f78cd[_0x503c27(0xeb)]=_0x1cd14a[_0x503c27(0x11f)],_0x1f78cd;}let _0x479252=_0x2c2b5c,_0x167c9a=EVENT_ENDPOINT;this[_0x503c27(0x13d)][_0x503c27(0x114)]();const {shouldProceed:_0x2c92,proceedWithData:_0x26d550,proceedWithUrl:_0x184a1c}=this[_0x503c27(0x13d)][_0x503c27(0xce)](_0x2c2b5c);if(!_0x2c92)return;else _0x26d550&&(_0x479252=_0x26d550,_0x167c9a=_0x184a1c);const _0x3875af={};_0x3875af[_0x503c27(0x144)]='Bearer\x20'+process['env'][_0x503c27(0x12d)],_0x3875af['Content-Type']=_0x1cd14a[_0x503c27(0xfd)],_0x3875af[_0x503c27(0x145)]=_0x1cd14a[_0x503c27(0x149)];const _0x1ecc3a={};_0x1ecc3a['headers']=_0x3875af;const _0x265d4c=_0x1ecc3a;try{const _0xc791e7=await _0x1cd14a['oGcYA'](nodeRequest,_0x1cd14a[_0x503c27(0xd2)],_0x167c9a,_0x479252,_0x265d4c);if(_0xc791e7[_0x503c27(0x146)][_0x503c27(0xde)]){const _0x1bfc52={};_0x1bfc52[_0x503c27(0xeb)]=_0xc791e7['data']['error'];throw _0x1bfc52;}else{_0x1cd14a[_0x503c27(0x108)](debug,(_0x1cd14a['vQOCL'](_0x167c9a,this[_0x503c27(0x13d)][_0x503c27(0x124)])?_0x1718be:_0x1cd14a[_0x503c27(0xdf)])+'['+_0x4b9b4a+_0x503c27(0x143)),this[_0x503c27(0x13d)][_0x503c27(0xfa)]=Math['max'](0x0,_0x1cd14a[_0x503c27(0x13e)](this[_0x503c27(0x13d)]['pendingUploads'],_0x1cd14a[_0x503c27(0x107)](_0x167c9a,_0x1cd14a[_0x503c27(0xcb)])?0x1:_0x479252[_0x503c27(0x120)]));const _0x428f05={};return _0x428f05[_0x503c27(0x147)]=_0x1cd14a[_0x503c27(0xf3)],_0x428f05[_0x503c27(0xeb)]='',_0x428f05;}}catch(_0x4e5c61){_0x4e5c61[_0x503c27(0x10a)]?_0x1cd14a[_0x503c27(0xf9)](debug,_0x503c27(0x153)+(_0x1cd14a[_0x503c27(0xef)](_0x167c9a,this['requestQueueHandler'][_0x503c27(0x124)])?_0x1718be:_0x1cd14a[_0x503c27(0xdf)])+_0x503c27(0xca)+_0x4e5c61[_0x503c27(0x10a)]['status']+'\x20'+_0x4e5c61['response'][_0x503c27(0x11d)]+'\x20'+JSON['stringify'](_0x4e5c61[_0x503c27(0x10a)][_0x503c27(0x146)])):_0x1cd14a[_0x503c27(0xdb)](debug,'EXCEPTION\x20IN\x20'+(_0x1cd14a[_0x503c27(0x12e)](_0x167c9a,this['requestQueueHandler'][_0x503c27(0x124)])?_0x1718be:_0x1cd14a['fOEHU'])+_0x503c27(0xca)+(_0x4e5c61[_0x503c27(0xeb)]||_0x4e5c61));this[_0x503c27(0x13d)][_0x503c27(0xfa)]=Math[_0x503c27(0x13f)](0x0,_0x1cd14a[_0x503c27(0x13e)](this[_0x503c27(0x13d)][_0x503c27(0xfa)],_0x1cd14a[_0x503c27(0x113)](_0x167c9a,_0x1cd14a[_0x503c27(0xcb)])?0x1:_0x479252[_0x503c27(0x120)]));const _0x5b7381={};return _0x5b7381[_0x503c27(0x147)]=_0x1cd14a[_0x503c27(0xed)],_0x5b7381[_0x503c27(0xeb)]=_0x4e5c61[_0x503c27(0xeb)]||(_0x4e5c61[_0x503c27(0x10a)]?_0x4e5c61[_0x503c27(0x10a)][_0x503c27(0x147)]+':'+_0x4e5c61[_0x503c27(0x10a)][_0x503c27(0x11d)]:_0x4e5c61),_0x5b7381;}}else{if(_0x1cd14a[_0x503c27(0x10e)](_0x4b9b4a,0x5)){_0x1cd14a[_0x503c27(0x14f)](debug,_0x503c27(0x153)+_0x1718be+_0x503c27(0xee)+_0x1718be+'\x20retry\x20runs\x20exceeded');_0x1cd14a[_0x503c27(0x10d)](process[_0x503c27(0xf7)][_0x503c27(0x12d)],_0x1cd14a['LGfNz'])&&(this[_0x503c27(0x13d)][_0x503c27(0xfa)]=Math['max'](0x0,_0x1cd14a[_0x503c27(0x142)](this[_0x503c27(0x13d)]['pendingUploads'],0x1)));const _0x499a29={};return _0x499a29[_0x503c27(0x147)]=_0x1cd14a['UWiMN'],_0x499a29['message']=_0x1cd14a[_0x503c27(0x122)],_0x499a29;}else _0x1cd14a[_0x503c27(0x134)](process['env'][_0x503c27(0xe9)],_0x1cd14a['EEPXE'])&&_0x1cd14a[_0x503c27(0xec)](setTimeout,()=>{const _0x51943a=_0x503c27;this[_0x51943a(0xe8)](_0x2c2b5c,_0x1cd14a[_0x51943a(0x14e)](_0x4b9b4a,0x1));},0x3e8);}}}module[a86_0x5817a7(0xd3)]=SessionHandler;function a86_0x8379(){const _0x1a1175=['username','resolve','hook_run','getAccessKey','VCIfz','toString','getInstance','uploadEventData','BS_TESTOPS_BUILD_COMPLETED','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','message','xpQfU','UWiMN','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','vQOCL','JJSqL','1580504rKiLDO','wUqLo','mFxty','TlKVl','1701822hLRcTY','Build\x20creation\x20successful!','env','Test_Skipped_Upload','tSOto','pendingUploads','info','POST','iMwuL','getHostInfo','5166205VJfCDp','nestedKeyValue','getAgentVersion','weZus','buildIdentifier','TzVlC','5151588WEBbsy','cNKqN','pJfZB','IeeOf','buildDescription','response','sYCvb','TQvwK','yvqiP','GaXWO','279258sTCLIv','jwt','CREDENTIALS_FOR_CRASH_REPORTING','BROWSERSTACK_TESTHUB_UUID','adjjG','start','browserstackAutomation','Data\x20upload\x20to\x20BrowserStack\x20Test\x20Observability\x20failed\x20due\x20to\x20','BS_TESTOPS_JWT','allow_screenshots','false','BROWSERSTACK_BUILD_RUN_IDENTIFIER','UxSLP','Retry\x20runs\x20exceeded','statusText','kQgty','UnhTH','length','launch','lGhzj','1pgmUIO','eventUrl','MiTsF','true','48510060rIiuWS','TestRunSkipped','BS_TESTOPS_BUILD_HASHED_ID','password','../../helpers/testhub/utils','HookRunFinished','BROWSERSTACK_TESTHUB_JWT','SrLUU','errorType','smvEb','buildName','event_type','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20missing\x20authentication\x20token','dVDeo','QKdzH','frameworkName','fIHme','path','mMACl','mHyBD','568612hWZLkM','GoLSa','requestQueueHandler','rUBPw','max','application/json','fTeeu','avVIz',']\x20event\x20successful!','Authorization','X-BSTACK-TESTOPS','data','status','projectName','etoMT','LGfNz','63FvZwcN','basename','uuid','vkNhw','JAeVS','PAhUb','getGitMetaData','null','EXCEPTION\x20IN\x20','Wegns','Batch-Queue','WfzIk','frameworkVersion','MYJcf','CBT_Upload','getUserName','app','waitForBuildStatus','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','poiYe','HookRunStarted','oWpwU','add','245IxJsAT','BS_TESTOPS_ALLOW_SCREENSHOTS','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','srKzl','exports','sOaWW','api/v1/builds','vfTSU','JIOBo','ERROR_ACCESS_DENIED','ERROR_INVALID_CREDENTIALS','nWhtg','RVFsk','stringify','../logger','error','fOEHU','build_hashed_id'];a86_0x8379=function(){return _0x1a1175;};return a86_0x8379();}
1
+ const a86_0x3bf4fd=a86_0x5d2e;function a86_0x5d2e(_0x24020b,_0x2c0f7d){const _0x3b1b82=a86_0x3b1b();return a86_0x5d2e=function(_0x5d2eb1,_0x50736e){_0x5d2eb1=_0x5d2eb1-0x17b;let _0x35cd8e=_0x3b1b82[_0x5d2eb1];return _0x35cd8e;},a86_0x5d2e(_0x24020b,_0x2c0f7d);}(function(_0x1ca628,_0x4bcb4e){const _0x586fc6=a86_0x5d2e,_0x24b177=_0x1ca628();while(!![]){try{const _0x5ab3d8=parseInt(_0x586fc6(0x1e9))/0x1*(-parseInt(_0x586fc6(0x1f8))/0x2)+parseInt(_0x586fc6(0x1a8))/0x3*(parseInt(_0x586fc6(0x209))/0x4)+-parseInt(_0x586fc6(0x1ac))/0x5+parseInt(_0x586fc6(0x195))/0x6*(parseInt(_0x586fc6(0x214))/0x7)+-parseInt(_0x586fc6(0x1f0))/0x8*(-parseInt(_0x586fc6(0x1a1))/0x9)+parseInt(_0x586fc6(0x1f3))/0xa*(parseInt(_0x586fc6(0x1b8))/0xb)+parseInt(_0x586fc6(0x1ad))/0xc*(-parseInt(_0x586fc6(0x1af))/0xd);if(_0x5ab3d8===_0x4bcb4e)break;else _0x24b177['push'](_0x24b177['shift']());}catch(_0x19a97f){_0x24b177['push'](_0x24b177['shift']());}}}(a86_0x3b1b,0x25fd0));const bsSetupHelper=require(a86_0x3bf4fd(0x205)),path=require('path'),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,sleep,isTestObservabilitySession,trace}=require('./utils'),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require('./constants'),RequestQueueHandler=require(a86_0x3bf4fd(0x1cd)),logger=require(a86_0x3bf4fd(0x20c))[a86_0x3bf4fd(0x1c8)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap}=require(a86_0x3bf4fd(0x184));function a86_0x3b1b(){const _0x35e014=['frameworkName','mAWge','hKFHZ','username','nfiKJ','app','LJNxA','POST','add','Test_End_Upload','../helper','X-BSTACK-TESTOPS','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','Hook_Start_Upload','164ALwspQ','data','Data\x20upload\x20to\x20BrowserStack\x20Test\x20Observability\x20failed\x20due\x20to\x20','../logger','BROWSERSTACK_BUILD_RUN_IDENTIFIER','vdDCt','headers','twjuC','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','uploadEventData','42329RnuXGI','vTeXk','ASFjI','AzVnA','stringify','uUnAo','AxtOA','max','NyXEW','HlRPd','api/v1/event','../../helpers/testhub/utils','HookRunFinished','Content-Type','application/json','LogCreated','UQatX','test_run','jCbHa','cwd','HookRunStarted','OpGcL','BS_TESTOPS_BUILD_HASHED_ID','RGHZC','buildIdentifier','DAuzf','BROWSERSTACK_TESTHUB_UUID','BS_TESTOPS_BUILD_COMPLETED','18UFGaom','response','BROWSERSTACK_TESTHUB_JWT','KiKzd','IcuUK','Batch-Queue','ImRpa','qkQRT','CBTSessionCreated','jwt','statusText','basename','2662749rOhpXu','success','BzJvE','emArg','dZoZZ','ERROR_ACCESS_DENIED','iaqfu','8421nVelCa','includes','json','xMBIY','221985JDdqLH','1704804SOZQMI','length','13eoMYTJ','browserstackAutomation','ejVBN','eventUrl','JeMYD','gJPvm','toString','EXCEPTION\x20IN\x20','obrAr','116798NMRSqT','projectName','MAEAE','laUrh','MPsEj','VSgWo','YmpDt','api/v1/builds','eLtrH','yBQTX','env','HztxK','password','hook_run','getHostInfo','xMtEk','winstonLogger','ERROR_SDK_DEPRECATED','nestedKeyValue','UonrG','getInstance','./requestQueueHandler','message','TCzzP','Build\x20creation\x20successful!','RlfDv','toISOString','resolve','error','true','CBT_Upload','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','vztbS','getAccessKey','build_hashed_id','errorType','getUserName','TestRunStarted','Test_Start_Upload','launch','allow_screenshots','Retry\x20runs\x20exceeded','qSsDn','requestQueueHandler','OhzhA','event_type','BS_TESTOPS_JWT','BS_A11Y_JWT','ljUhg','288767BWGkFn','getGitMetaData','pendingUploads','false','waitForBuildStatus','BROWSERSTACK_RERUN','TestRunFinished','8RzNBcG','null','ERROR_INVALID_CREDENTIALS','190oVquIv','Processing\x20event\x20-\x20\x27','Log_Upload','Eigte','status','2WqUnlp','getCiInfo','info'];a86_0x3b1b=function(){return _0x35e014;};return a86_0x3b1b();}class SessionHandler{static [a86_0x3bf4fd(0x1e3)]=RequestQueueHandler[a86_0x3bf4fd(0x1cc)]();static async[a86_0x3bf4fd(0x1df)](_0x2e2fbb,_0x403eee){const _0x439285=a86_0x3bf4fd,_0x280933={'nfiKJ':function(_0x55462b,_0x5bf44e){return _0x55462b||_0x5bf44e;},'iaqfu':function(_0x481463,_0x35d789){return _0x481463===_0x35d789;},'OpGcL':function(_0xb1e865,_0x5c591a){return _0xb1e865(_0x5c591a);},'VXoLF':_0x439285(0x212),'AxtOA':_0x439285(0x1ec),'DZEPL':_0x439285(0x1aa),'Eigte':function(_0x1ba8bc,_0x126066){return _0x1ba8bc(_0x126066);},'AzVnA':function(_0x587708,_0x38bd61,_0x3eeac6,_0x4156b6,_0x178a87){return _0x587708(_0x38bd61,_0x3eeac6,_0x4156b6,_0x178a87);},'emArg':'POST','VSgWo':_0x439285(0x1bf),'RlfDv':function(_0x3a776f,_0x2e860b){return _0x3a776f(_0x2e860b);},'YmpDt':_0x439285(0x1d0),'GfPbW':function(_0x132153){return _0x132153();},'nOiCh':_0x439285(0x1d5),'HztxK':'null','TCzzP':_0x439285(0x1f2),'RGHZC':_0x439285(0x1a6),'eLtrH':_0x439285(0x1c9)},_0x4f15a0=bsSetupHelper[_0x439285(0x1dc)](_0x2e2fbb),_0x26cf63=bsSetupHelper[_0x439285(0x1d9)](_0x2e2fbb),_0x8b23eb=_0x280933['nfiKJ'](_0x4f15a0,'')+':'+_0x280933[_0x439285(0x1ff)](_0x26cf63,'');if(_0x280933[_0x439285(0x1a7)](_0x8b23eb,':'))return _0x280933[_0x439285(0x18e)](debug,_0x280933['VXoLF']),process[_0x439285(0x1c2)][_0x439285(0x194)]=_0x280933['AxtOA'],[null,null];let _0xa2e379=![],_0x1393b1=![];if(_0x2e2fbb['browserstackAutomation']&&_0x2e2fbb[_0x439285(0x200)])_0x1393b1=!![];else _0x2e2fbb[_0x439285(0x1b0)]&&(_0xa2e379=!![]);try{const _0x1b64cb={'format':_0x280933['DZEPL'],'project_name':_0x2e2fbb[_0x439285(0x1b9)]||'','name':_0x2e2fbb['buildName']||path[_0x439285(0x1a0)](path[_0x439285(0x1d3)](process[_0x439285(0x18c)]())),'build_identifier':_0x2e2fbb[_0x439285(0x191)],'description':_0x2e2fbb['buildDescription']||'','start_time':new Date()[_0x439285(0x1d2)](),'tags':_0x280933[_0x439285(0x1f6)](getCustomTags,_0x2e2fbb),'host_info':bsSetupHelper[_0x439285(0x1c6)](),'ci_info':bsSetupHelper[_0x439285(0x1f9)](),'build_run_identifier':process[_0x439285(0x1c2)][_0x439285(0x20d)],'failed_tests_rerun':process[_0x439285(0x1c2)][_0x439285(0x1ee)]||![],'version_control':await bsSetupHelper[_0x439285(0x1ea)](),'observability_version':{'frameworkName':_0x403eee[_0x439285(0x1fb)],'frameworkVersion':_0x403eee['frameworkVersion'],'sdkVersion':bsSetupHelper['getAgentVersion']()},'product_map':_0x280933[_0x439285(0x1f6)](getProductMap,_0x2e2fbb)},_0x805519={};_0x805519[_0x439285(0x1fe)]=_0x4f15a0,_0x805519[_0x439285(0x1c4)]=_0x26cf63;const _0x3b9dd1={'auth':_0x805519,'headers':_0x280933[_0x439285(0x1f6)](getDefaultHeaders,![])},_0x2c5f02=await _0x280933[_0x439285(0x17c)](nodeRequest,_0x280933[_0x439285(0x1a4)],_0x280933[_0x439285(0x1bd)],_0x1b64cb,_0x3b9dd1);_0x280933[_0x439285(0x1d1)](debug,_0x280933[_0x439285(0x1be)]);const _0x221851=_0x2c5f02[_0x439285(0x20a)];_0x221851['build_hashed_id']&&(process[_0x439285(0x1c2)][_0x439285(0x193)]=_0x221851[_0x439285(0x1da)]);if(_0x280933['GfPbW'](isTestObservabilitySession)){process[_0x439285(0x1c2)]['BS_TESTOPS_BUILD_COMPLETED']=_0x280933['nOiCh'];if(_0x221851['jwt']){process['env'][_0x439285(0x1e6)]=_0x221851[_0x439285(0x19e)];const _0x204da2={};_0x204da2[_0x439285(0x1fe)]=_0x4f15a0,_0x204da2[_0x439285(0x1c4)]=_0x26cf63,process[_0x439285(0x1c2)]['CREDENTIALS_FOR_CRASH_REPORTING']=JSON[_0x439285(0x17d)](_0x204da2);}_0x221851[_0x439285(0x1da)]&&(process[_0x439285(0x1c2)][_0x439285(0x18f)]=_0x221851[_0x439285(0x1da)]),_0x221851[_0x439285(0x1e0)]&&(process['env']['BS_TESTOPS_ALLOW_SCREENSHOTS']=_0x221851[_0x439285(0x1e0)][_0x439285(0x1b5)]());}return[_0x2c5f02[_0x439285(0x20a)][_0x439285(0x19e)],_0x2c5f02['data'][_0x439285(0x1da)],_0x2c5f02['data']['allow_screenshots']];}catch(_0x4e6e47){process[_0x439285(0x1c2)][_0x439285(0x193)]=_0x280933[_0x439285(0x1c3)],process['env'][_0x439285(0x194)]=_0x280933[_0x439285(0x17f)],process['env']['BS_TESTOPS_JWT']=_0x280933[_0x439285(0x1c3)],process[_0x439285(0x1c2)][_0x439285(0x18f)]=_0x280933[_0x439285(0x1c3)],process[_0x439285(0x1c2)]['BS_TESTOPS_ALLOW_SCREENSHOTS']=_0x280933['HztxK'];_0x4e6e47['response']?_0x280933[_0x439285(0x1f6)](debug,_0x439285(0x207)+_0x4e6e47[_0x439285(0x196)][_0x439285(0x1f7)]+'\x20'+_0x4e6e47[_0x439285(0x196)][_0x439285(0x19f)]+'\x20'+JSON[_0x439285(0x17d)](_0x4e6e47['response'][_0x439285(0x20a)])):_0x280933[_0x439285(0x1d1)](debug,'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20'+(_0x4e6e47[_0x439285(0x1ce)]||_0x4e6e47));if(_0x4e6e47&&_0x4e6e47[_0x439285(0x1ce)]){const _0x42e8a1=_0x4e6e47[_0x439285(0x1ce)];switch(_0x4e6e47[_0x439285(0x1db)]){case _0x280933[_0x439285(0x1cf)]:logger[_0x439285(0x1d4)](_0x42e8a1);break;case _0x280933[_0x439285(0x190)]:logger[_0x439285(0x1fa)](_0x42e8a1);break;case _0x280933[_0x439285(0x1c0)]:logger[_0x439285(0x1d4)](_0x42e8a1);break;default:logger[_0x439285(0x1d4)](_0x42e8a1);}}else console[_0x439285(0x1fa)](_0x439285(0x20b)+_0x4e6e47);return[null,null,null];}}static async[a86_0x3bf4fd(0x1ed)](){const _0x4cfce0=a86_0x3bf4fd,_0x133683={'vTeXk':'true','twjuC':_0x4cfce0(0x1ec),'laUrh':function(_0x18dc7a,_0x5dc1e5){return _0x18dc7a(_0x5dc1e5);}},_0x3441d4=process[_0x4cfce0(0x1c2)][_0x4cfce0(0x194)];if([_0x133683[_0x4cfce0(0x215)],_0x133683[_0x4cfce0(0x210)]][_0x4cfce0(0x1a9)](_0x3441d4))return;while([_0x133683['vTeXk'],_0x133683[_0x4cfce0(0x210)]][_0x4cfce0(0x1a9)](_0x3441d4)){await _0x133683[_0x4cfce0(0x1bb)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static async[a86_0x3bf4fd(0x213)](_0x2c0599,_0x410832=0x0){const _0x5507cc=a86_0x3bf4fd,_0x72ec07={'YEMMQ':function(_0x4626b7,_0x75989c){return _0x4626b7+_0x75989c;},'HlRPd':_0x5507cc(0x1de),'IcuUK':_0x5507cc(0x204),'nCJOY':'Test_Skipped_Upload','ApqOP':_0x5507cc(0x1f5),'uUnAo':_0x5507cc(0x208),'OhzhA':'Hook_End_Upload','vztbS':_0x5507cc(0x1d6),'DAuzf':function(_0x544ec9,_0x2e6acd){return _0x544ec9(_0x2e6acd);},'MPsEj':_0x5507cc(0x18a),'ASFjI':'uuid','BzJvE':_0x5507cc(0x1c5),'UonrG':function(_0x1087ef,_0x2c4d55,_0x1cc196){return _0x1087ef(_0x2c4d55,_0x1cc196);},'oKgPQ':_0x5507cc(0x213),'xMBIY':function(_0x115ced,_0x168eac){return _0x115ced===_0x168eac;},'ImRpa':function(_0x4abb57,_0x35fe37){return _0x4abb57!==_0x35fe37;},'dZoZZ':_0x5507cc(0x1f1),'UQatX':_0x5507cc(0x1d5),'mAWge':function(_0x37ac32){return _0x37ac32();},'obrAr':function(_0x168091,_0x3e5986){return _0x168091===_0x3e5986;},'hKFHZ':function(_0x444d15,_0xf99d7b){return _0x444d15-_0xf99d7b;},'ejVBN':_0x5507cc(0x1d4),'qSsDn':_0x5507cc(0x211),'ljUhg':_0x5507cc(0x187),'KBFOh':function(_0x400ce1,_0x543d28,_0x444c50,_0x82015d,_0x3b6c04){return _0x400ce1(_0x543d28,_0x444c50,_0x82015d,_0x3b6c04);},'yBQTX':_0x5507cc(0x202),'yxDCe':function(_0x419eb3,_0x4df15d){return _0x419eb3(_0x4df15d);},'LJNxA':function(_0x27d45e,_0x21a105){return _0x27d45e!==_0x21a105;},'KiKzd':_0x5507cc(0x19a),'PwhVw':function(_0x2e3b17,_0x34ec23){return _0x2e3b17===_0x34ec23;},'vdDCt':_0x5507cc(0x183),'NyXEW':_0x5507cc(0x1a2),'MKnqh':function(_0x491524,_0x4b04bd){return _0x491524(_0x4b04bd);},'JeMYD':function(_0x4c97ef,_0x548156){return _0x4c97ef!==_0x548156;},'qkQRT':function(_0x28df72,_0x23c8e9){return _0x28df72(_0x23c8e9);},'MAEAE':function(_0x5b26c9,_0xcb1b40){return _0x5b26c9-_0xcb1b40;},'iPpVm':function(_0x4f6653,_0x547593){return _0x4f6653===_0x547593;},'VBxJx':function(_0x3dff00,_0x156560){return _0x3dff00>=_0x156560;},'xMtEk':function(_0x13981e,_0x2ce89c){return _0x13981e(_0x2ce89c);},'UqQVb':function(_0x4c131c,_0xcaebc4){return _0x4c131c!==_0xcaebc4;},'jCbHa':_0x5507cc(0x1e1),'gJPvm':function(_0x3b2b7c,_0x3bfae5){return _0x3b2b7c!==_0x3bfae5;},'Msnqf':_0x5507cc(0x1ec)},_0x401dfc={};_0x401dfc[_0x5507cc(0x1dd)]=_0x72ec07[_0x5507cc(0x182)],_0x401dfc[_0x5507cc(0x1ef)]=_0x72ec07[_0x5507cc(0x199)],_0x401dfc['TestRunSkipped']=_0x72ec07['nCJOY'],_0x401dfc[_0x5507cc(0x188)]=_0x72ec07['ApqOP'],_0x401dfc[_0x5507cc(0x18d)]=_0x72ec07[_0x5507cc(0x17e)],_0x401dfc[_0x5507cc(0x185)]=_0x72ec07[_0x5507cc(0x1e4)],_0x401dfc[_0x5507cc(0x19d)]=_0x72ec07[_0x5507cc(0x1d8)];const _0x1a66c2=_0x401dfc[_0x2c0599[_0x5507cc(0x1e5)]];_0x72ec07[_0x5507cc(0x192)](trace,_0x5507cc(0x1f4)+_0x2c0599[_0x5507cc(0x1e5)]+'\x27\x20'+(bsSetupHelper[_0x5507cc(0x1ca)](_0x2c0599,[_0x72ec07[_0x5507cc(0x1bc)],_0x72ec07[_0x5507cc(0x17b)]])||bsSetupHelper['nestedKeyValue'](_0x2c0599,[_0x72ec07[_0x5507cc(0x1a3)],_0x72ec07[_0x5507cc(0x17b)]])));if(!_0x72ec07[_0x5507cc(0x1cb)](shouldProcessEventForTesthub,_0x2c0599[_0x5507cc(0x1e5)],_0x72ec07['oKgPQ']))return;_0x72ec07[_0x5507cc(0x1ab)](_0x410832,0x0)&&process[_0x5507cc(0x1c2)][_0x5507cc(0x197)]&&_0x72ec07[_0x5507cc(0x19b)](process[_0x5507cc(0x1c2)]['BROWSERSTACK_TESTHUB_JWT'],_0x72ec07[_0x5507cc(0x1a5)])&&(this[_0x5507cc(0x1e3)][_0x5507cc(0x1eb)]+=0x1);if(_0x72ec07['xMBIY'](process[_0x5507cc(0x1c2)][_0x5507cc(0x194)],_0x72ec07[_0x5507cc(0x189)])||process[_0x5507cc(0x1c2)][_0x5507cc(0x1e7)]||_0x72ec07[_0x5507cc(0x1fc)](isPercyBuild)){if(_0x72ec07[_0x5507cc(0x1b7)](process['env'][_0x5507cc(0x197)],_0x72ec07[_0x5507cc(0x1a5)])){_0x72ec07[_0x5507cc(0x192)](debug,'EXCEPTION\x20IN\x20'+_0x1a66c2+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20missing\x20authentication\x20token'),this[_0x5507cc(0x1e3)]['pendingUploads']=Math[_0x5507cc(0x180)](0x0,_0x72ec07[_0x5507cc(0x1fd)](this[_0x5507cc(0x1e3)][_0x5507cc(0x1eb)],0x1));const _0x17672b={};return _0x17672b[_0x5507cc(0x1f7)]=_0x72ec07[_0x5507cc(0x1b1)],_0x17672b[_0x5507cc(0x1ce)]=_0x72ec07[_0x5507cc(0x1e2)],_0x17672b;}let _0x451e16=_0x2c0599,_0x5eeb49=EVENT_ENDPOINT;this['requestQueueHandler']['start']();const {shouldProceed:_0x3e3952,proceedWithData:_0x5d27f0,proceedWithUrl:_0x3059b4}=this['requestQueueHandler'][_0x5507cc(0x203)](_0x2c0599);if(!_0x3e3952)return;else _0x5d27f0&&(_0x451e16=_0x5d27f0,_0x5eeb49=_0x3059b4);const _0xa5d16c={};_0xa5d16c['Authorization']='Bearer\x20'+process[_0x5507cc(0x1c2)]['BROWSERSTACK_TESTHUB_JWT'],_0xa5d16c[_0x5507cc(0x186)]=_0x72ec07[_0x5507cc(0x1e8)],_0xa5d16c[_0x5507cc(0x206)]=_0x72ec07[_0x5507cc(0x189)];const _0x27b8cf={};_0x27b8cf[_0x5507cc(0x20f)]=_0xa5d16c;const _0x48288=_0x27b8cf;try{const _0x29e460=await _0x72ec07['KBFOh'](nodeRequest,_0x72ec07[_0x5507cc(0x1c1)],_0x5eeb49,_0x451e16,_0x48288);if(_0x29e460[_0x5507cc(0x20a)][_0x5507cc(0x1d4)]){const _0x4d7907={};_0x4d7907[_0x5507cc(0x1ce)]=_0x29e460[_0x5507cc(0x20a)][_0x5507cc(0x1d4)];throw _0x4d7907;}else{_0x72ec07['yxDCe'](debug,(_0x72ec07[_0x5507cc(0x201)](_0x5eeb49,this['requestQueueHandler'][_0x5507cc(0x1b2)])?_0x1a66c2:_0x72ec07[_0x5507cc(0x198)])+'['+_0x410832+']\x20event\x20successful!'),this[_0x5507cc(0x1e3)][_0x5507cc(0x1eb)]=Math[_0x5507cc(0x180)](0x0,_0x72ec07[_0x5507cc(0x1fd)](this['requestQueueHandler'][_0x5507cc(0x1eb)],_0x72ec07['PwhVw'](_0x5eeb49,_0x72ec07[_0x5507cc(0x20e)])?0x1:_0x451e16[_0x5507cc(0x1ae)]));const _0x2aa3c5={};return _0x2aa3c5[_0x5507cc(0x1f7)]=_0x72ec07[_0x5507cc(0x181)],_0x2aa3c5[_0x5507cc(0x1ce)]='',_0x2aa3c5;}}catch(_0x22a6c7){_0x22a6c7[_0x5507cc(0x196)]?_0x72ec07['MKnqh'](debug,'EXCEPTION\x20IN\x20'+(_0x72ec07[_0x5507cc(0x1b3)](_0x5eeb49,this[_0x5507cc(0x1e3)][_0x5507cc(0x1b2)])?_0x1a66c2:_0x72ec07[_0x5507cc(0x198)])+_0x5507cc(0x1d7)+_0x22a6c7[_0x5507cc(0x196)][_0x5507cc(0x1f7)]+'\x20'+_0x22a6c7[_0x5507cc(0x196)][_0x5507cc(0x19f)]+'\x20'+JSON[_0x5507cc(0x17d)](_0x22a6c7[_0x5507cc(0x196)][_0x5507cc(0x20a)])):_0x72ec07[_0x5507cc(0x19c)](debug,_0x5507cc(0x1b6)+(_0x72ec07[_0x5507cc(0x1b3)](_0x5eeb49,this[_0x5507cc(0x1e3)][_0x5507cc(0x1b2)])?_0x1a66c2:_0x72ec07[_0x5507cc(0x198)])+_0x5507cc(0x1d7)+(_0x22a6c7[_0x5507cc(0x1ce)]||_0x22a6c7));this[_0x5507cc(0x1e3)][_0x5507cc(0x1eb)]=Math['max'](0x0,_0x72ec07[_0x5507cc(0x1ba)](this[_0x5507cc(0x1e3)][_0x5507cc(0x1eb)],_0x72ec07['iPpVm'](_0x5eeb49,_0x72ec07['vdDCt'])?0x1:_0x451e16[_0x5507cc(0x1ae)]));const _0x580c65={};return _0x580c65[_0x5507cc(0x1f7)]=_0x72ec07['ejVBN'],_0x580c65['message']=_0x22a6c7[_0x5507cc(0x1ce)]||(_0x22a6c7[_0x5507cc(0x196)]?_0x22a6c7[_0x5507cc(0x196)]['status']+':'+_0x22a6c7[_0x5507cc(0x196)]['statusText']:_0x22a6c7),_0x580c65;}}else{if(_0x72ec07['VBxJx'](_0x410832,0x5)){_0x72ec07[_0x5507cc(0x1c7)](debug,_0x5507cc(0x1b6)+_0x1a66c2+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20'+_0x1a66c2+'\x20retry\x20runs\x20exceeded');_0x72ec07['UqQVb'](process['env']['BROWSERSTACK_TESTHUB_JWT'],_0x72ec07[_0x5507cc(0x1a5)])&&(this[_0x5507cc(0x1e3)][_0x5507cc(0x1eb)]=Math[_0x5507cc(0x180)](0x0,_0x72ec07['MAEAE'](this[_0x5507cc(0x1e3)][_0x5507cc(0x1eb)],0x1)));const _0x2e8706={};return _0x2e8706[_0x5507cc(0x1f7)]=_0x72ec07[_0x5507cc(0x1b1)],_0x2e8706['message']=_0x72ec07[_0x5507cc(0x18b)],_0x2e8706;}else _0x72ec07[_0x5507cc(0x1b4)](process[_0x5507cc(0x1c2)][_0x5507cc(0x194)],_0x72ec07['Msnqf'])&&_0x72ec07[_0x5507cc(0x1cb)](setTimeout,()=>{const _0x3a5a1d=_0x5507cc;this[_0x3a5a1d(0x213)](_0x2c0599,_0x72ec07['YEMMQ'](_0x410832,0x1));},0x3e8);}}}module['exports']=SessionHandler;