browserstack-node-sdk 1.35.9 → 1.35.10

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 (137) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +60 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  60. package/src/bin/jest/jest.setup.js +1 -1
  61. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  62. package/src/bin/jest/test-observability/helper.js +1 -1
  63. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  64. package/src/bin/jest/test-observability/test-details.js +1 -1
  65. package/src/bin/jest/test_before.setup.js +1 -1
  66. package/src/bin/launcher/launcher.js +1 -1
  67. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  68. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  69. package/src/bin/mocha/command.js +1 -1
  70. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  71. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  72. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  73. package/src/bin/mocha/test.setup.js +1 -1
  74. package/src/bin/nightwatch/command.js +1 -1
  75. package/src/bin/playwright/accessibility-helper.js +1 -1
  76. package/src/bin/playwright/command.js +1 -1
  77. package/src/bin/playwright/globalSetup.js +1 -1
  78. package/src/bin/playwright/mock-process.js +1 -1
  79. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  80. package/src/bin/playwright/patches.js +1 -1
  81. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  82. package/src/bin/playwright/reporter/reporter.js +1 -1
  83. package/src/bin/playwright/reporter/test-details.js +1 -1
  84. package/src/bin/playwright/sessionDetails.js +1 -1
  85. package/src/bin/runner.js +1 -1
  86. package/src/bin/setup.js +1 -1
  87. package/src/bin/test-runner/index.js +1 -1
  88. package/src/bin/test-runner/runTest.js +1 -1
  89. package/src/bin/test-runner/testWorker.js +1 -1
  90. package/src/bin/utils/constants.js +1 -1
  91. package/src/bin/utils/log4jsAppender.js +1 -1
  92. package/src/bin/utils/logPatcher.js +1 -1
  93. package/src/bin/utils/logReportingAPI.js +1 -1
  94. package/src/bin/vanilla-js/command.js +1 -1
  95. package/src/browserStackSdk.js +1 -1
  96. package/src/helpers/BrowserStackSetup.js +1 -1
  97. package/src/helpers/accessibility-automation/constants.js +1 -1
  98. package/src/helpers/accessibility-automation/helper.js +1 -1
  99. package/src/helpers/accessibility-automation/scripts.js +1 -1
  100. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  101. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  102. package/src/helpers/ats/constants.js +1 -1
  103. package/src/helpers/ats/helper.js +1 -1
  104. package/src/helpers/capsMapping.js +1 -1
  105. package/src/helpers/central-scanner/constants.js +1 -1
  106. package/src/helpers/central-scanner/helpers.js +1 -1
  107. package/src/helpers/globals.js +1 -1
  108. package/src/helpers/helper.js +1 -1
  109. package/src/helpers/logger.js +1 -1
  110. package/src/helpers/metadata.js +1 -1
  111. package/src/helpers/patchHelper.js +1 -1
  112. package/src/helpers/patchHelpers.js +1 -1
  113. package/src/helpers/percy/Percy.js +1 -1
  114. package/src/helpers/percy/PercyBinary.js +1 -1
  115. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  116. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  117. package/src/helpers/percy/PercySDK.js +1 -1
  118. package/src/helpers/percy/index.js +1 -1
  119. package/src/helpers/percy/utils.js +1 -1
  120. package/src/helpers/performance/constants.js +1 -1
  121. package/src/helpers/performance/performance-tester.js +1 -1
  122. package/src/helpers/processHelper.js +1 -1
  123. package/src/helpers/request-spy.js +1 -1
  124. package/src/helpers/setKeepAlive.js +1 -1
  125. package/src/helpers/test-observability/constants.js +1 -1
  126. package/src/helpers/test-observability/error-handler.js +1 -1
  127. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  128. package/src/helpers/test-observability/sessionHandler.js +1 -1
  129. package/src/helpers/test-observability/utils.js +1 -1
  130. package/src/helpers/testhub/constants.js +1 -1
  131. package/src/helpers/testhub/testhubHandler.js +1 -1
  132. package/src/helpers/testhub/utils.js +1 -1
  133. package/src/helpers/timeoutPromise.js +1 -1
  134. package/src/helpers/utilities.js +1 -1
  135. package/src/helpers/w3cMapping.js +1 -1
  136. package/src/hubAllocationMethods.js +1 -1
  137. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a80_0xe904(){const _0x8c9927=['_measureEvents','mark','XaYCa','Nmdym','reduce','OfuHf','false','browserStackCwd','3200650YsjqzQ','stopAndGenerate','4ZCmiyD','function','Error\x20in\x20doing\x20csv\x20operations:\x20','</td><td>','39uWNPQG','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','ZSZln','forEach','errorReportFileName','getCleanedPerfEvents','performance-own.html','length','stringify','finalizePerfMeasures','readFileSync','readFile','ZYtLT','perf_hooks','7651749TJKjTm','JWGYn','captureError','exports','18HvMbGV','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','mdxQC','VMPDS','.json','nWHfa','<tr><td>','cPxiK','Time\x20for\x20','jsonReportFileName','WhAJF','end','observe','startMonitoring','4459880ZGjtui','Error\x20stopping\x20monitoring\x20','toJSON','generateHTMLReport','writeFile','QOmcW','2382987AjgIea','measures','LVxtG','nOKMk','AotQg','eventsMap','jsonReportDirName','apply','NwKHj','slice','pushErrors','errors','SZYUc','\x20for\x20all\x20processes\x20is\x20','uecSI','match','zLgRd','fICxq','buffered','calculateTimeFromEvents','__platformCaps','finalizeErrors','finalize','format','kDUOB','error-report','all','message','resolve','entries','measure','-start','_events','UGymj','fs/promises','61744PvVlft','started','existsSync','platform','toString','env','performance-report','../logger','Error\x20in\x20writing\x20html\x20','map','MsPiM','debug','errorReportDirName','entryTypes','name','splice','qgtTB','getEntries','index','_observer','XNmSm','hjUMe','VZdJW','5pdaute','stopMonitoring','duration','-end','/performance-report-','Usiko','ZVhwV','sjIaQ','/error-report-','unlinkSync','sjaFJ','1650hWqTGy','Npviz','disconnect','Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','details','getEventsFromJSON','nBaFY','start','parse','mkdirSync','join','LNigP','concat','TflHZ','then','getPerformance','_errorEvents','110244bTEjXi','push','cwd','isEnabled','xhIjd','jsonReportDirPath','pushPerfMeasures','FPAkf','BjyBp','BROWSERSTACK_SDK_INSTRUMENTATION','../processHelper','Error\x20while\x20removing\x20files:\x20','generateJSON','success','assign','flat','7664094krPyAx','Performance\x20report\x20is\x20at\x20','Uxpoz','catch','JtuPB','hKvIR','UXfqc','stack'];a80_0xe904=function(){return _0x8c9927;};return a80_0xe904();}const a80_0x10581a=a80_0x358e;function a80_0x358e(_0xa58e58,_0x57cfde){const _0xe9040=a80_0xe904();return a80_0x358e=function(_0x358e1d,_0x4343bd){_0x358e1d=_0x358e1d-0x12f;let _0x5da2c6=_0xe9040[_0x358e1d];return _0x5da2c6;},a80_0x358e(_0xa58e58,_0x57cfde);}(function(_0x5ea861,_0xe6ea6b){const _0x411c9e=a80_0x358e,_0x524d1f=_0x5ea861();while(!![]){try{const _0x25b830=parseInt(_0x411c9e(0x1ab))/0x1*(parseInt(_0x411c9e(0x152))/0x2)+-parseInt(_0x411c9e(0x12f))/0x3*(parseInt(_0x411c9e(0x1a7))/0x4)+parseInt(_0x411c9e(0x169))/0x5*(parseInt(_0x411c9e(0x195))/0x6)+-parseInt(_0x411c9e(0x1b9))/0x7+parseInt(_0x411c9e(0x1cb))/0x8*(parseInt(_0x411c9e(0x1bd))/0x9)+parseInt(_0x411c9e(0x1a5))/0xa+-parseInt(_0x411c9e(0x174))/0xb*(parseInt(_0x411c9e(0x185))/0xc);if(_0x25b830===_0xe6ea6b)break;else _0x524d1f['push'](_0x524d1f['shift']());}catch(_0x805a0d){_0x524d1f['push'](_0x524d1f['shift']());}}}(a80_0xe904,0x9ee9a));const fs=require('fs'),fsPromise=require(a80_0x10581a(0x151)),{performance,PerformanceObserver}=require(a80_0x10581a(0x1b8)),path=require('path'),util=require('util'),logger=require('../logger')['winstonLogger'],{getLogDir}=require(a80_0x10581a(0x159)),{getProcessId,sleep,debug,getTestName}=require(a80_0x10581a(0x18f));class PerformanceTester{static ['_observer'];static ['_events']=[];static [a80_0x10581a(0x19d)]=[];static [a80_0x10581a(0x184)]=[];static [a80_0x10581a(0x153)]=![];static [a80_0x10581a(0x135)]=a80_0x10581a(0x158);static [a80_0x10581a(0x15e)]=process[a80_0x10581a(0x157)][a80_0x10581a(0x1a4)]?path[a80_0x10581a(0x17e)](process[a80_0x10581a(0x157)][a80_0x10581a(0x1a4)],a80_0x10581a(0x148)):path[a80_0x10581a(0x17e)](process[a80_0x10581a(0x187)](),a80_0x10581a(0x148));static ['errorReportFileName']=this[a80_0x10581a(0x15e)]+a80_0x10581a(0x171)+getProcessId()+a80_0x10581a(0x1c1);static [a80_0x10581a(0x178)]={};static [a80_0x10581a(0x134)]={};static[a80_0x10581a(0x1ca)](_0x44bf78,_0x101e18=this['errorReportDirName']+a80_0x10581a(0x171)+getProcessId()+a80_0x10581a(0x1c1)){const _0x47dc0b=a80_0x10581a,_0xe21b5c={'hKvIR':function(_0x4302dd,_0x224cb4){return _0x4302dd===_0x224cb4;},'FPAkf':'measure','LVxtG':function(_0x42eb78){return _0x42eb78();},'mdxQC':function(_0x10be95){return _0x10be95();},'qgtTB':function(_0x527a2b,_0x4d2433){return _0x527a2b+_0x4d2433;},'TpqrM':_0x47dc0b(0x177),'XRfiK':_0x47dc0b(0x1a8)};try{this['jsonReportDirPath']=path['join'](_0xe21b5c[_0x47dc0b(0x131)](getLogDir),this[_0x47dc0b(0x135)]),!_0x44bf78&&(_0x44bf78=this[_0x47dc0b(0x18a)]+_0x47dc0b(0x16d)+_0xe21b5c[_0x47dc0b(0x1bf)](getProcessId)+_0x47dc0b(0x1c1)),!fs[_0x47dc0b(0x154)](this[_0x47dc0b(0x18a)])&&fs[_0x47dc0b(0x17d)](this[_0x47dc0b(0x18a)]);}catch(_0x1217e2){logger['debug'](_0xe21b5c[_0x47dc0b(0x162)](_0xe21b5c['TpqrM'],_0x1217e2));}if(this[_0x47dc0b(0x153)]||!this['isEnabled']())return;this['_observer']=new PerformanceObserver(_0x165665=>{const _0x13654c=_0x47dc0b;_0x165665[_0x13654c(0x163)]()[_0x13654c(0x1ae)](_0x92259f=>{const _0x415fd3=_0x13654c;if(_0xe21b5c[_0x415fd3(0x19a)](_0x92259f['entryType'],_0xe21b5c[_0x415fd3(0x18c)])){let _0x137269={};if(_0x92259f[_0x415fd3(0x1cd)])_0x137269=_0x92259f[_0x415fd3(0x1cd)]();else for(const _0x4f2c2b in _0x92259f){_0x137269[_0x4f2c2b]=_0x92259f[_0x4f2c2b];}this[_0x415fd3(0x178)][_0x92259f[_0x415fd3(0x160)]]&&(_0x137269=Object[_0x415fd3(0x193)](_0x137269,this['details'][_0x92259f[_0x415fd3(0x160)]])),delete this[_0x415fd3(0x178)][_0x92259f[_0x415fd3(0x160)]],this[_0x415fd3(0x19d)][_0x415fd3(0x186)](_0x137269);}else this[_0x415fd3(0x14f)][_0x415fd3(0x186)](_0x92259f);});});const _0x164f5f={};_0x164f5f[_0x47dc0b(0x141)]=!![],_0x164f5f[_0x47dc0b(0x15f)]=[_0xe21b5c['XRfiK'],_0xe21b5c[_0x47dc0b(0x18c)]],this['_observer'][_0x47dc0b(0x1c9)](_0x164f5f),this[_0x47dc0b(0x153)]=!![],this[_0x47dc0b(0x1c6)]=_0x44bf78,this[_0x47dc0b(0x1af)]=_0x101e18;}static[a80_0x10581a(0x183)](){return performance;}static['calculateTimeFromEvents'](_0x552c5a,_0x1fbb16){const _0x2f19bb=a80_0x10581a,_0x5f3948={};_0x5f3948[_0x2f19bb(0x173)]=function(_0x1e1f04,_0xc08bdc){return _0x1e1f04+_0xc08bdc;},_0x5f3948[_0x2f19bb(0x13f)]=function(_0x241beb,_0x1ddc2c){return _0x241beb||_0x1ddc2c;},_0x5f3948[_0x2f19bb(0x15c)]=function(_0x4b758d,_0x2a3bb8){return _0x4b758d===_0x2a3bb8;};const _0x3f01f6=_0x5f3948,_0x3f4912={};if(!_0x552c5a||_0x3f01f6[_0x2f19bb(0x15c)](_0x552c5a[_0x2f19bb(0x1b2)],0x0))return;_0x552c5a[_0x2f19bb(0x15b)](_0x59d093=>{const _0x1d21c1=_0x2f19bb;!_0x3f4912[_0x59d093[_0x1d21c1(0x160)]]&&(_0x3f4912[_0x59d093[_0x1d21c1(0x160)]]=0x0),_0x3f4912[_0x59d093[_0x1d21c1(0x160)]]+=_0x59d093[_0x1d21c1(0x16b)];});const _0xdcc509=_0x1fbb16['reduce']((_0x18bab9,_0x445b8d)=>{const _0x4a3891=_0x2f19bb;return _0x3f01f6[_0x4a3891(0x173)](_0x3f4912[_0x445b8d],_0x3f01f6[_0x4a3891(0x13f)](_0x18bab9,0x0));},0x0);return _0xdcc509;}static async['calculateTimesFromMultipleFiles'](_0x27222d,_0x1efc83){const _0x75a70c=a80_0x10581a,_0xcfbe6e={'TflHZ':function(_0x22a057,_0x17ea6d){return _0x22a057+_0x17ea6d;},'nOKMk':function(_0x3d5380,_0x28d8f0){return _0x3d5380||_0x28d8f0;},'nWHfa':function(_0x44fcae,_0x2f7d44){return _0x44fcae===_0x2f7d44;},'hjUMe':function(_0x37393e,_0x3439fb){return _0x37393e(_0x3439fb);}};if(!_0x27222d||_0xcfbe6e[_0x75a70c(0x1c2)](_0x27222d['length'],0x0))return 0x0;const _0x3f41f7=[];for(const _0x40c822 of _0x27222d){const _0x282781=path[_0x75a70c(0x17e)]('.',_0x40c822);try{const _0x54669c=this[_0x75a70c(0x179)](_0x282781);_0x54669c[_0x75a70c(0x15b)](_0x63377a=>{const _0x9eb046=_0x75a70c;!_0x3f41f7[_0x63377a[_0x9eb046(0x160)]]&&(_0x3f41f7[_0x63377a[_0x9eb046(0x160)]]=0x0),_0x3f41f7[_0x63377a[_0x9eb046(0x160)]]+=_0x63377a[_0x9eb046(0x16b)];});}catch(_0x25dfef){_0xcfbe6e[_0x75a70c(0x167)](debug,_0x75a70c(0x1a9)+_0x25dfef[_0x75a70c(0x156)]());}}const _0x49fb56=_0x1efc83[_0x75a70c(0x1a1)]((_0x2ed3b4,_0x207145)=>{const _0x51fe11=_0x75a70c;return _0xcfbe6e[_0x51fe11(0x181)](_0x3f41f7[_0x207145],_0xcfbe6e[_0x51fe11(0x132)](_0x2ed3b4,0x0));},0x0);return _0xcfbe6e[_0x75a70c(0x167)](debug,_0x75a70c(0x1c5)+_0x1efc83+_0x75a70c(0x13c)+_0x49fb56),_0x49fb56;}static['getEventsFromJSON'](_0x4a55dc){const _0x24dfe8=a80_0x10581a;if(_0x4a55dc){if(!fs['existsSync'](_0x4a55dc))return[];return JSON[_0x24dfe8(0x17c)](fs['readFileSync'](_0x4a55dc)[_0x24dfe8(0x156)]());}}static async[a80_0x10581a(0x1a6)](_0x528113=a80_0x10581a(0x1b1),_0x3a83ca=null){const _0x1899f1=a80_0x10581a,_0x460da5={'nBaFY':function(_0x587eaa,_0xfbd43d){return _0x587eaa(_0xfbd43d);},'ZYtLT':function(_0x339bf9,_0x128577){return _0x339bf9(_0x128577);},'cPxiK':function(_0x270ae8,_0x15bead){return _0x270ae8(_0x15bead);}};if(!this[_0x1899f1(0x153)])return;await _0x460da5[_0x1899f1(0x1c4)](sleep,0x1e),this[_0x1899f1(0x165)]['disconnect'](),this[_0x1899f1(0x153)]=![],this[_0x1899f1(0x191)](this[_0x1899f1(0x14f)]);const _0x59ab84=this[_0x1899f1(0x1ce)](this[_0x1899f1(0x14f)]),_0x520d55=path['join'](process[_0x1899f1(0x187)](),_0x528113);fs[_0x1899f1(0x1cf)](_0x520d55,_0x59ab84,_0x2424f7=>{const _0x29aa30=_0x1899f1;if(_0x2424f7){_0x460da5[_0x29aa30(0x17a)](debug,_0x29aa30(0x15a)+_0x2424f7['toString']());return;}_0x460da5[_0x29aa30(0x1b7)](debug,_0x29aa30(0x196)+_0x520d55);});if(_0x3a83ca)return this[_0x1899f1(0x142)](this[_0x1899f1(0x14f)],_0x3a83ca);}static[a80_0x10581a(0x1ce)](_0x43ba6e){const _0x86e5fd=a80_0x10581a,_0x41b2f6={};_0x41b2f6[_0x86e5fd(0x166)]=_0x86e5fd(0x1be),_0x41b2f6[_0x86e5fd(0x19f)]='<h1>Performance\x20Report</h1>',_0x41b2f6[_0x86e5fd(0x1a0)]=_0x86e5fd(0x1ac),_0x41b2f6[_0x86e5fd(0x170)]='</tbody></table></body></html>';const _0xfe46a1=_0x41b2f6;let _0x1fb43f=_0xfe46a1[_0x86e5fd(0x166)];return _0x1fb43f+=_0xfe46a1[_0x86e5fd(0x19f)],_0x1fb43f+=_0xfe46a1['Nmdym'],_0x43ba6e[_0x86e5fd(0x1ae)](_0x43da40=>{const _0x111d3b=_0x86e5fd;_0x1fb43f+=_0x111d3b(0x1c3)+_0x43da40[_0x111d3b(0x160)]+_0x111d3b(0x1aa)+_0x43da40[_0x111d3b(0x16b)]+'</td></tr>';}),_0x1fb43f+=_0xfe46a1[_0x86e5fd(0x170)],_0x1fb43f;}static[a80_0x10581a(0x191)](_0xf1ad43){const _0x2fd274=a80_0x10581a;if(!this['jsonReportFileName'])return;const _0x3685e5={};_0xf1ad43['map'](_0x49b51e=>{const _0x29efbb=a80_0x358e;!_0x3685e5[_0x49b51e[_0x29efbb(0x160)]]&&(_0x3685e5[_0x49b51e[_0x29efbb(0x160)]]=0x0),_0x3685e5[_0x49b51e['name']]+=_0x49b51e['duration'];});const _0x2751a3=Object[_0x2fd274(0x14c)](_0x3685e5)[_0x2fd274(0x15b)](([_0x26ae0f,_0x462963])=>{const _0x511a56=_0x2fd274,_0x3b3519={};return _0x3b3519[_0x511a56(0x160)]=_0x26ae0f,_0x3b3519[_0x511a56(0x16b)]=_0x462963,_0x3b3519;});fs['writeFileSync'](this[_0x2fd274(0x1c6)],JSON[_0x2fd274(0x1b3)](_0x2751a3));}static[a80_0x10581a(0x188)](){const _0x79e59e=a80_0x10581a,_0x590cd5={};_0x590cd5[_0x79e59e(0x1a2)]=function(_0x3c2563,_0xc1070f){return _0x3c2563===_0xc1070f;},_0x590cd5[_0x79e59e(0x1ba)]=_0x79e59e(0x1a3);const _0x120a6d=_0x590cd5;return!_0x120a6d['OfuHf'](process[_0x79e59e(0x157)][_0x79e59e(0x18e)],_0x120a6d['JWGYn']);}static[a80_0x10581a(0x14d)](_0x5aa598,_0x563e13,_0xf197a2=null,_0x8b9a1b={},_0x152475=null){const _0x67fd6e=a80_0x10581a,_0x68a769={'Npviz':function(_0x20523e,_0x195e5f){return _0x20523e(_0x195e5f);},'VMPDS':function(_0xdd99e0,_0x51220d){return _0xdd99e0 instanceof _0x51220d;}};try{if(this['started']&&this[_0x67fd6e(0x188)]()){let _0x54aab0=_0x5aa598;_0xf197a2&&(_0x54aab0=_0x5aa598+'['+JSON[_0x67fd6e(0x1b3)](_0xf197a2)+']');PerformanceTester[_0x67fd6e(0x17b)](_0x54aab0),this[_0x67fd6e(0x178)]&&(this[_0x67fd6e(0x178)][_0x54aab0]=_0x8b9a1b);try{const _0x3525ac=_0x563e13[_0x67fd6e(0x136)](null,_0x152475);if(_0x68a769[_0x67fd6e(0x1c0)](_0x3525ac,Promise))return new Promise((_0x5ef5af,_0x479e95)=>{const _0x264591=_0x67fd6e,_0x3a1718={'Usiko':function(_0x1f677f,_0x211d29){return _0x68a769['Npviz'](_0x1f677f,_0x211d29);}};_0x3525ac[_0x264591(0x182)](_0x161f69=>{const _0x1438b0=_0x264591;PerformanceTester[_0x1438b0(0x1c8)](_0x54aab0),_0x3a1718[_0x1438b0(0x16e)](_0x5ef5af,_0x161f69);})[_0x264591(0x198)](_0x40f7c8=>{const _0x273b0a=_0x264591;PerformanceTester[_0x273b0a(0x1c8)](_0x54aab0,![],util['format'](_0x40f7c8)),_0x68a769[_0x273b0a(0x175)](_0x479e95,_0x40f7c8);});});;return PerformanceTester[_0x67fd6e(0x1c8)](_0x54aab0),_0x3525ac;}catch(_0x59e54d){PerformanceTester['end'](_0x54aab0,![],util[_0x67fd6e(0x146)](_0x59e54d));throw _0x59e54d;}};return _0x563e13[_0x67fd6e(0x136)](null,_0x152475);}catch(_0x29c858){return _0x563e13[_0x67fd6e(0x136)](null,_0x152475);}}static['measureWrapper'](_0x122e61,_0x5bc72b,_0x3da0b1={}){const _0x241a39=a80_0x10581a,_0x6e44d={'JtuPB':function(_0x16faa9){return _0x16faa9();},'UGymj':function(_0x1982c3){return _0x1982c3();}},_0x1ad5ea=this;return _0x3da0b1['worker']=_0x6e44d[_0x241a39(0x199)](getProcessId),_0x3da0b1['testName']=_0x6e44d[_0x241a39(0x150)](getTestName),_0x3da0b1[_0x241a39(0x155)]=global[_0x241a39(0x143)]&&global[_0x241a39(0x143)][_0x241a39(0x164)],function(){const _0x440d9d=_0x241a39,_0xe3b471=[_0x122e61,_0x5bc72b,null,_0x3da0b1][_0x440d9d(0x180)](arguments);return _0x1ad5ea[_0x440d9d(0x14d)][_0x440d9d(0x136)](_0x1ad5ea,_0xe3b471);};}static[a80_0x10581a(0x1b0)](){const _0x2fcd1a=a80_0x10581a,_0x323c64=/(^.*)\[(.*)\]$/,_0x19e3e4={},_0x4c9237={},_0xb9323f=[],_0x18a691=this['_measureEvents'][_0x2fcd1a(0x161)](0x0,this[_0x2fcd1a(0x19d)][_0x2fcd1a(0x1b2)]);for(const _0x23f978 of _0x18a691){const _0x26f74d=_0x23f978['name'][_0x2fcd1a(0x13e)](_0x323c64),_0x43e061=Object['assign']({},_0x23f978);_0x26f74d&&(_0x43e061['name']=_0x26f74d[0x1],_0x43e061['meta']=JSON['parse'](_0x26f74d[0x2])),_0xb9323f['push'](_0x43e061);}return _0xb9323f;}static['pushPerfMeasures'](){const _0x1640c3=a80_0x10581a,_0x23d4c4={'fICxq':function(_0x2552b0){return _0x2552b0();},'wPgVG':function(_0x31550d,_0x487134){return _0x31550d+_0x487134;},'QOmcW':_0x1640c3(0x190),'xhIjd':function(_0x37c6ee,_0x183966){return _0x37c6ee===_0x183966;}};try{this[_0x1640c3(0x18a)]=path['join'](_0x23d4c4[_0x1640c3(0x140)](getLogDir),this['jsonReportDirName']);if(fs[_0x1640c3(0x154)](this[_0x1640c3(0x18a)])){const _0x36d018=fs['readdirSync'](this[_0x1640c3(0x18a)]);for(const _0x246524 of _0x36d018){fs[_0x1640c3(0x172)](path[_0x1640c3(0x17e)](this[_0x1640c3(0x18a)],_0x246524));}}}catch(_0x1b178e){logger[_0x1640c3(0x15d)](_0x23d4c4['wPgVG'](_0x23d4c4[_0x1640c3(0x1d0)],_0x1b178e));}if(_0x23d4c4[_0x1640c3(0x189)](this[_0x1640c3(0x19d)]['length'],0x0))return;const _0x3b0ca4=this[_0x1640c3(0x1b0)](),_0x291d06=JSON[_0x1640c3(0x1b3)](_0x3b0ca4),_0x5a743c=_0x23d4c4['wPgVG'](_0x291d06['slice'](0x1,-0x1),',');fs['appendFileSync'](this[_0x1640c3(0x1c6)],_0x5a743c);}static async[a80_0x10581a(0x1b4)](){const _0x5d1f41=a80_0x10581a,_0x3c6e1e={'BjyBp':function(_0x5d7264){return _0x5d7264();},'bchsY':function(_0x2cc00d,_0x1e6888){return _0x2cc00d===_0x1e6888;},'uecSI':function(_0x22e370,_0x10c3c9){return _0x22e370>_0x10c3c9;}};this[_0x5d1f41(0x18a)]=path[_0x5d1f41(0x17e)](_0x3c6e1e[_0x5d1f41(0x18d)](getLogDir),this['jsonReportDirName']);if(!this[_0x5d1f41(0x153)]||_0x3c6e1e['bchsY'](this[_0x5d1f41(0x19d)][_0x5d1f41(0x1b2)],0x0))return[];if(!fs[_0x5d1f41(0x154)](this[_0x5d1f41(0x18a)]))return this['_measureEvents'];const _0x3c1cb4=(await fsPromise['readdir'](this[_0x5d1f41(0x18a)]))[_0x5d1f41(0x15b)](_0x5229d0=>path[_0x5d1f41(0x14b)](this[_0x5d1f41(0x18a)],_0x5229d0));let _0x365028=(await Promise[_0x5d1f41(0x149)](_0x3c1cb4['map'](_0x571c7c=>fsPromise[_0x5d1f41(0x1b6)](_0x571c7c,'utf-8'))))[_0x5d1f41(0x15b)](_0x49e3ca=>'['+_0x49e3ca[_0x5d1f41(0x138)](0x0,-0x1)+']')[_0x5d1f41(0x15b)](_0x2480b0=>JSON[_0x5d1f41(0x17c)](_0x2480b0))[_0x5d1f41(0x194)]();return _0x3c6e1e[_0x5d1f41(0x13d)](this[_0x5d1f41(0x19d)][_0x5d1f41(0x1b2)],0x0)&&(_0x365028=_0x365028['concat'](this[_0x5d1f41(0x1b0)]())),this[_0x5d1f41(0x165)]['disconnect'](),_0x365028;}static[a80_0x10581a(0x139)](){const _0x4369ab=a80_0x10581a,_0x227dc6={};_0x227dc6[_0x4369ab(0x13b)]=function(_0x5b8588,_0x576f1d){return _0x5b8588===_0x576f1d;},_0x227dc6[_0x4369ab(0x1c7)]=function(_0x229efd,_0x317d9d){return _0x229efd+_0x317d9d;};const _0x18e819=_0x227dc6;if(_0x18e819['SZYUc'](this['_errorEvents'][_0x4369ab(0x1b2)],0x0))return;const _0x1fbd75=JSON[_0x4369ab(0x1b3)](this['_errorEvents']),_0x4d5a87=_0x18e819[_0x4369ab(0x1c7)](_0x1fbd75[_0x4369ab(0x138)](0x1,-0x1),',');fs['appendFileSync'](this['errorFile'],_0x4d5a87);}static[a80_0x10581a(0x144)](){const _0x784a28=a80_0x10581a,_0x5893e2={};_0x5893e2[_0x784a28(0x137)]=function(_0x3715a9,_0x5dc061){return _0x3715a9>_0x5dc061;};const _0x27d26e=_0x5893e2;if(this[_0x784a28(0x1af)]){if(!fs[_0x784a28(0x154)](this[_0x784a28(0x1af)]))return this[_0x784a28(0x184)];let _0x4a86cd=fs[_0x784a28(0x1b5)](this['errorReportFileName'])['toString']();_0x4a86cd='['+_0x4a86cd[_0x784a28(0x138)](0x0,-0x1)+']';let _0x1c3237=JSON[_0x784a28(0x17c)](_0x4a86cd);return _0x27d26e[_0x784a28(0x137)](this[_0x784a28(0x184)]['length'],0x0)&&(_0x1c3237=_0x1c3237[_0x784a28(0x180)](this['_errorEvents'])),fs[_0x784a28(0x172)](this['errorReportFileName']),_0x1c3237;}}static[a80_0x10581a(0x1bb)](_0x304ba){const _0x5a79d4=a80_0x10581a;if(!this[_0x5a79d4(0x188)]())return;this[_0x5a79d4(0x184)][_0x5a79d4(0x186)]({'message':_0x304ba[_0x5a79d4(0x14a)],'trace':_0x304ba[_0x5a79d4(0x19c)],'code':_0x304ba['code']||null,'time':new Date()});}static[a80_0x10581a(0x16a)](){const _0x3d7520=a80_0x10581a;try{if(!this[_0x3d7520(0x188)]())return;this[_0x3d7520(0x165)][_0x3d7520(0x176)](),this[_0x3d7520(0x18b)](),this['pushErrors']();}catch(_0x4e3e3c){logger['debug'](_0x3d7520(0x1cc)+util['format'](_0x4e3e3c));}}static async[a80_0x10581a(0x145)](){const _0x5abdcb=a80_0x10581a,_0x43a4f9={'AotQg':function(_0x109ad8,_0x569e6f){return _0x109ad8(_0x569e6f);}};await _0x43a4f9[_0x5abdcb(0x133)](sleep,0x1e);const _0x355b4a=await this['finalizePerfMeasures'](),_0x5c71a8=this[_0x5abdcb(0x144)]();if(!this[_0x5abdcb(0x188)]()){const _0x4b9f2f={};return _0x4b9f2f[_0x5abdcb(0x130)]=[],_0x4b9f2f[_0x5abdcb(0x13a)]=[],_0x4b9f2f;}const _0x257f44={};return _0x257f44[_0x5abdcb(0x130)]=_0x355b4a,_0x257f44[_0x5abdcb(0x13a)]=_0x5c71a8,_0x257f44;}static[a80_0x10581a(0x17b)](_0x1bf1a8){const _0x477e74=a80_0x10581a,_0x413ac2={};_0x413ac2[_0x477e74(0x1ad)]=function(_0x3fb11c,_0x261435){return _0x3fb11c+_0x261435;},_0x413ac2['ZVhwV']='-start';const _0x75b7f0=_0x413ac2,_0x269437=_0x75b7f0[_0x477e74(0x1ad)](_0x1bf1a8,_0x75b7f0[_0x477e74(0x16f)]);if(this[_0x477e74(0x134)][_0x269437])return;performance[_0x477e74(0x19e)](_0x269437),this[_0x477e74(0x134)][_0x269437]=0x1;}static['end'](_0x46d9b1,_0x534c24=!![],_0x255846=null,_0x5a52a9={}){const _0x2f20d9=a80_0x10581a,_0x216b50={'kDUOB':function(_0x5d830c,_0x21d971){return _0x5d830c+_0x21d971;},'VZdJW':_0x2f20d9(0x16c),'LNigP':function(_0x5c2901,_0xc34b53){return _0x5c2901+_0xc34b53;},'EeIJG':_0x2f20d9(0x14e),'UXfqc':function(_0x4fae53,_0x288b68){return _0x4fae53+_0x288b68;},'ANisF':function(_0x582ffa){return _0x582ffa();},'Uxpoz':function(_0x88c370){return _0x88c370();}};performance['mark'](_0x216b50[_0x2f20d9(0x147)](_0x46d9b1,_0x216b50[_0x2f20d9(0x168)])),performance['measure'](_0x46d9b1,_0x216b50[_0x2f20d9(0x17f)](_0x46d9b1,_0x216b50['EeIJG']),_0x216b50[_0x2f20d9(0x19b)](_0x46d9b1,_0x216b50[_0x2f20d9(0x168)]));const _0x5e38ed={};_0x5e38ed[_0x2f20d9(0x192)]=_0x534c24,_0x5e38ed['failure']=_0x255846,this[_0x2f20d9(0x178)][_0x46d9b1]=Object[_0x2f20d9(0x193)](_0x5e38ed,Object[_0x2f20d9(0x193)](Object[_0x2f20d9(0x193)]({'worker':_0x216b50['ANisF'](getProcessId),'platform':global['__platformCaps']&&global[_0x2f20d9(0x143)][_0x2f20d9(0x164)],'testName':_0x216b50[_0x2f20d9(0x197)](getTestName)},_0x5a52a9),this[_0x2f20d9(0x178)][_0x46d9b1]||{}));}}module[a80_0x10581a(0x1bc)]=PerformanceTester;
1
+ function a80_0x5b18(_0x12633d,_0x4bf390){const _0x9ac3a0=a80_0x9ac3();return a80_0x5b18=function(_0x5b18f7,_0x237696){_0x5b18f7=_0x5b18f7-0xe1;let _0x55c9b7=_0x9ac3a0[_0x5b18f7];return _0x55c9b7;},a80_0x5b18(_0x12633d,_0x4bf390);}function a80_0x9ac3(){const _0x307b0f=['Error\x20in\x20writing\x20html\x20','nEfgB','errors','failure','OLXdI','fs/promises','appendFileSync','CpVnQ','stopMonitoring','platform','pushErrors','-start','length','name','match','measure','forEach','_measureEvents','getEventsFromJSON','CBcmF','index','WLLQT','<h1>Performance\x20Report</h1>','splice','hRLTy','finalizeErrors','writeFileSync','entryType','toString','errorReportFileName','util','cwd','readdirSync','stopAndGenerate','zFkYY','observe','function','perf_hooks','jsonReportDirPath','QRshW','2wmbYkm','Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','captureError','calculateTimesFromMultipleFiles','mark','finalize','_events','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','reduce','548546TrzURm','disconnect','push','flpnP','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','generateHTMLReport','nwDwu','RVFAc','JflhI','52662630bPfEsR','10534680iNoBwF','_errorEvents','.json','314094eocPou','kpGcF','getPerformance','then','__platformCaps','PLlOj','AFpNL','success','generateJSON','readFile','end','readdir','assign','env','format','calculateTimeFromEvents','WnUOo','winstonLogger','mkdirSync','aJhHR','\x20for\x20all\x20processes\x20is\x20','kSJOu','isEnabled','utf-8','exports','Error\x20while\x20removing\x20files:\x20','/error-report-','5121760wVdFus','message','dKdnd','dekBZ','false','meta','tOKJc','existsSync','OTJJd','BAIqO','unlinkSync','readFileSync','PFntw','UNhpk','DGDqu','apply','entryTypes','details','</td><td>','measures','ydXXI','flat','startMonitoring','parse','catch','errorReportDirName','VcInE','joiTP','writeFile','finalizePerfMeasures','../processHelper','yYyGp','<tr><td>','OkFKS','/performance-report-','</td></tr>','../logger','203cSrLSa','toJSON','stringify','start','SgBUf','_observer','gxDhY','jsonReportFileName','performance-own.html','-end','21988SKstss','concat','jsonReportDirName','pushPerfMeasures','Error\x20stopping\x20monitoring\x20','eQXjo','all','qmOrZ','getCleanedPerfEvents','150492KWXJXB','map','abyNp','duration','started','join','BTPhB','testName','error-report','fJFtm','buffered','code','getEntries','resolve','1215jAoAcb','eventsMap','debug','slice'];a80_0x9ac3=function(){return _0x307b0f;};return a80_0x9ac3();}const a80_0x5cec23=a80_0x5b18;(function(_0x30a0e6,_0x276752){const _0x4374b6=a80_0x5b18,_0x4f34ad=_0x30a0e6();while(!![]){try{const _0x546d8c=parseInt(_0x4374b6(0x127))/0x1*(-parseInt(_0x4374b6(0x11e))/0x2)+-parseInt(_0x4374b6(0x134))/0x3+-parseInt(_0x4374b6(0x17e))/0x4*(parseInt(_0x4374b6(0xf2))/0x5)+-parseInt(_0x4374b6(0xe4))/0x6*(parseInt(_0x4374b6(0x174))/0x7)+-parseInt(_0x4374b6(0x14f))/0x8+-parseInt(_0x4374b6(0x131))/0x9+parseInt(_0x4374b6(0x130))/0xa;if(_0x546d8c===_0x276752)break;else _0x4f34ad['push'](_0x4f34ad['shift']());}catch(_0x1f636c){_0x4f34ad['push'](_0x4f34ad['shift']());}}}(a80_0x9ac3,0xb473a));const fs=require('fs'),fsPromise=require(a80_0x5cec23(0xfb)),{performance,PerformanceObserver}=require(a80_0x5cec23(0x11b)),path=require('path'),util=require(a80_0x5cec23(0x114)),logger=require(a80_0x5cec23(0x173))[a80_0x5cec23(0x145)],{getLogDir}=require(a80_0x5cec23(0x173)),{getProcessId,sleep,debug,getTestName}=require(a80_0x5cec23(0x16d));class PerformanceTester{static ['_observer'];static [a80_0x5cec23(0x124)]=[];static [a80_0x5cec23(0x107)]=[];static [a80_0x5cec23(0x132)]=[];static [a80_0x5cec23(0xe8)]=![];static [a80_0x5cec23(0x180)]='performance-report';static ['errorReportDirName']=process['env']['browserStackCwd']?path[a80_0x5cec23(0xe9)](process[a80_0x5cec23(0x141)]['browserStackCwd'],a80_0x5cec23(0xec)):path[a80_0x5cec23(0xe9)](process['cwd'](),a80_0x5cec23(0xec));static [a80_0x5cec23(0x113)]=this[a80_0x5cec23(0x168)]+a80_0x5cec23(0x14e)+getProcessId()+a80_0x5cec23(0x133);static [a80_0x5cec23(0x160)]={};static [a80_0x5cec23(0xf3)]={};static[a80_0x5cec23(0x165)](_0x441b8c,_0x38451a=this['errorReportDirName']+a80_0x5cec23(0x14e)+getProcessId()+a80_0x5cec23(0x133)){const _0x1efed8=a80_0x5cec23,_0x56ccf0={'yYyGp':function(_0x1a40fd,_0x5d9ded){return _0x1a40fd===_0x5d9ded;},'aJhHR':'measure','dKdnd':function(_0x770115){return _0x770115();},'fzkDz':function(_0x2ed63b){return _0x2ed63b();},'UNhpk':function(_0x8ab5a4,_0x18512f){return _0x8ab5a4+_0x18512f;},'eQXjo':_0x1efed8(0x11f),'CBcmF':_0x1efed8(0x11a)};try{this[_0x1efed8(0x11c)]=path[_0x1efed8(0xe9)](_0x56ccf0[_0x1efed8(0x151)](getLogDir),this[_0x1efed8(0x180)]),!_0x441b8c&&(_0x441b8c=this['jsonReportDirPath']+_0x1efed8(0x171)+_0x56ccf0['fzkDz'](getProcessId)+'.json'),!fs[_0x1efed8(0x156)](this['jsonReportDirPath'])&&fs[_0x1efed8(0x146)](this[_0x1efed8(0x11c)]);}catch(_0x360e5a){logger[_0x1efed8(0xf4)](_0x56ccf0[_0x1efed8(0x15c)](_0x56ccf0[_0x1efed8(0x183)],_0x360e5a));}if(this[_0x1efed8(0xe8)]||!this[_0x1efed8(0x14a)]())return;this[_0x1efed8(0x179)]=new PerformanceObserver(_0x40f78a=>{const _0x5842fc=_0x1efed8,_0x4d8b4c={'PKSJv':function(_0x13e0fa,_0x3b648b){const _0x4b4e4d=a80_0x5b18;return _0x56ccf0[_0x4b4e4d(0x16e)](_0x13e0fa,_0x3b648b);},'qmOrZ':_0x56ccf0[_0x5842fc(0x147)]};_0x40f78a[_0x5842fc(0xf0)]()[_0x5842fc(0x106)](_0x3817e3=>{const _0x511435=_0x5842fc;if(_0x4d8b4c['PKSJv'](_0x3817e3[_0x511435(0x111)],_0x4d8b4c[_0x511435(0xe2)])){let _0x3ca2da={};if(_0x3817e3[_0x511435(0x175)])_0x3ca2da=_0x3817e3[_0x511435(0x175)]();else for(const _0x4c6911 in _0x3817e3){_0x3ca2da[_0x4c6911]=_0x3817e3[_0x4c6911];}this[_0x511435(0x160)][_0x3817e3['name']]&&(_0x3ca2da=Object[_0x511435(0x140)](_0x3ca2da,this[_0x511435(0x160)][_0x3817e3[_0x511435(0x103)]])),delete this['details'][_0x3817e3['name']],this[_0x511435(0x107)][_0x511435(0x129)](_0x3ca2da);}else this[_0x511435(0x124)][_0x511435(0x129)](_0x3817e3);});});const _0x172785={};_0x172785[_0x1efed8(0xee)]=!![],_0x172785[_0x1efed8(0x15f)]=[_0x56ccf0[_0x1efed8(0x109)],_0x56ccf0[_0x1efed8(0x147)]],this[_0x1efed8(0x179)][_0x1efed8(0x119)](_0x172785),this['started']=!![],this[_0x1efed8(0x17b)]=_0x441b8c,this['errorReportFileName']=_0x38451a;}static[a80_0x5cec23(0x136)](){return performance;}static['calculateTimeFromEvents'](_0x5da1b5,_0x53971f){const _0x3c3b2c=a80_0x5cec23,_0x2e4bbb={};_0x2e4bbb[_0x3c3b2c(0xed)]=function(_0x58a1cc,_0x11ee36){return _0x58a1cc+_0x11ee36;},_0x2e4bbb[_0x3c3b2c(0xea)]=function(_0x3dc005,_0x599a67){return _0x3dc005||_0x599a67;},_0x2e4bbb[_0x3c3b2c(0x10b)]=function(_0x9b2cc5,_0x5b3015){return _0x9b2cc5===_0x5b3015;};const _0x1bf3c2=_0x2e4bbb,_0x3489ec={};if(!_0x5da1b5||_0x1bf3c2[_0x3c3b2c(0x10b)](_0x5da1b5['length'],0x0))return;_0x5da1b5[_0x3c3b2c(0xe5)](_0x4945d7=>{const _0x481b84=_0x3c3b2c;!_0x3489ec[_0x4945d7[_0x481b84(0x103)]]&&(_0x3489ec[_0x4945d7[_0x481b84(0x103)]]=0x0),_0x3489ec[_0x4945d7['name']]+=_0x4945d7[_0x481b84(0xe7)];});const _0x454631=_0x53971f[_0x3c3b2c(0x126)]((_0x104428,_0x353f6f)=>{const _0x440bbc=_0x3c3b2c;return _0x1bf3c2[_0x440bbc(0xed)](_0x3489ec[_0x353f6f],_0x1bf3c2[_0x440bbc(0xea)](_0x104428,0x0));},0x0);return _0x454631;}static async[a80_0x5cec23(0x121)](_0x6509fb,_0x4e1886){const _0x323611=a80_0x5cec23,_0x51890f={'ydXXI':function(_0x4780d2,_0x30dc1b){return _0x4780d2+_0x30dc1b;},'jfFUY':function(_0xfb3054,_0x1136c3){return _0xfb3054||_0x1136c3;},'JflhI':function(_0x1f6545,_0x4d1b67){return _0x1f6545===_0x4d1b67;},'UHNaU':function(_0x1e5336,_0x1a43dd){return _0x1e5336(_0x1a43dd);},'gxDhY':function(_0x41ba0b,_0x2c6d03){return _0x41ba0b(_0x2c6d03);}};if(!_0x6509fb||_0x51890f[_0x323611(0x12f)](_0x6509fb['length'],0x0))return 0x0;const _0x36e465=[];for(const _0x24b24a of _0x6509fb){const _0x32005e=path[_0x323611(0xe9)]('.',_0x24b24a);try{const _0x216133=this['getEventsFromJSON'](_0x32005e);_0x216133['map'](_0x3fc243=>{const _0x4c4c08=_0x323611;!_0x36e465[_0x3fc243[_0x4c4c08(0x103)]]&&(_0x36e465[_0x3fc243[_0x4c4c08(0x103)]]=0x0),_0x36e465[_0x3fc243[_0x4c4c08(0x103)]]+=_0x3fc243['duration'];});}catch(_0x47d09a){_0x51890f['UHNaU'](debug,'Error\x20in\x20doing\x20csv\x20operations:\x20'+_0x47d09a['toString']());}}const _0x165520=_0x4e1886[_0x323611(0x126)]((_0x577459,_0x1a2d8d)=>{const _0x4890f1=_0x323611;return _0x51890f[_0x4890f1(0x163)](_0x36e465[_0x1a2d8d],_0x51890f['jfFUY'](_0x577459,0x0));},0x0);return _0x51890f[_0x323611(0x17a)](debug,'Time\x20for\x20'+_0x4e1886+_0x323611(0x148)+_0x165520),_0x165520;}static[a80_0x5cec23(0x108)](_0xf9cb16){const _0x196087=a80_0x5cec23;if(_0xf9cb16){if(!fs['existsSync'](_0xf9cb16))return[];return JSON[_0x196087(0x166)](fs[_0x196087(0x15a)](_0xf9cb16)[_0x196087(0x112)]());}}static async[a80_0x5cec23(0x117)](_0xc80c3c=a80_0x5cec23(0x17c),_0xce3045=null){const _0x55f938=a80_0x5cec23,_0x23a70e={'AFpNL':function(_0x1cb7b7,_0x5be788){return _0x1cb7b7(_0x5be788);}};if(!this[_0x55f938(0xe8)])return;await _0x23a70e['AFpNL'](sleep,0x1e),this[_0x55f938(0x179)]['disconnect'](),this[_0x55f938(0xe8)]=![],this[_0x55f938(0x13c)](this['_events']);const _0x3e403f=this[_0x55f938(0x12c)](this[_0x55f938(0x124)]),_0x238b75=path[_0x55f938(0xe9)](process[_0x55f938(0x115)](),_0xc80c3c);fs[_0x55f938(0x16b)](_0x238b75,_0x3e403f,_0x43df82=>{const _0x340bd0=_0x55f938;if(_0x43df82){_0x23a70e[_0x340bd0(0x13a)](debug,_0x340bd0(0xf6)+_0x43df82[_0x340bd0(0x112)]());return;}_0x23a70e[_0x340bd0(0x13a)](debug,'Performance\x20report\x20is\x20at\x20'+_0x238b75);});if(_0xce3045)return this[_0x55f938(0x143)](this['_events'],_0xce3045);}static[a80_0x5cec23(0x12c)](_0x1bb182){const _0x18a904=a80_0x5cec23,_0x3a0271={};_0x3a0271['hRLTy']=_0x18a904(0x125),_0x3a0271[_0x18a904(0x155)]=_0x18a904(0x10c),_0x3a0271['NvHQa']=_0x18a904(0x12b),_0x3a0271[_0x18a904(0x11d)]='</tbody></table></body></html>';const _0x4c312d=_0x3a0271;let _0x40ed6c=_0x4c312d[_0x18a904(0x10e)];return _0x40ed6c+=_0x4c312d[_0x18a904(0x155)],_0x40ed6c+=_0x4c312d['NvHQa'],_0x1bb182['forEach'](_0x55b334=>{const _0x20dbf8=_0x18a904;_0x40ed6c+=_0x20dbf8(0x16f)+_0x55b334['name']+_0x20dbf8(0x161)+_0x55b334['duration']+_0x20dbf8(0x172);}),_0x40ed6c+=_0x4c312d[_0x18a904(0x11d)],_0x40ed6c;}static[a80_0x5cec23(0x13c)](_0x376efe){const _0x3b33bf=a80_0x5cec23;if(!this[_0x3b33bf(0x17b)])return;const _0x2a9266={};_0x376efe[_0x3b33bf(0xe5)](_0x561ed0=>{const _0x33fc37=_0x3b33bf;!_0x2a9266[_0x561ed0[_0x33fc37(0x103)]]&&(_0x2a9266[_0x561ed0[_0x33fc37(0x103)]]=0x0),_0x2a9266[_0x561ed0[_0x33fc37(0x103)]]+=_0x561ed0[_0x33fc37(0xe7)];});const _0x26c6de=Object['entries'](_0x2a9266)[_0x3b33bf(0xe5)](([_0x37a2e3,_0x17cb84])=>{const _0x17b271=_0x3b33bf,_0x256c06={};return _0x256c06[_0x17b271(0x103)]=_0x37a2e3,_0x256c06[_0x17b271(0xe7)]=_0x17cb84,_0x256c06;});fs[_0x3b33bf(0x110)](this['jsonReportFileName'],JSON['stringify'](_0x26c6de));}static['isEnabled'](){const _0x524abb=a80_0x5cec23,_0x30b40e={};_0x30b40e[_0x524abb(0x118)]=function(_0xa4d3e7,_0x2288a0){return _0xa4d3e7===_0x2288a0;},_0x30b40e[_0x524abb(0x144)]=_0x524abb(0x153);const _0x1ec129=_0x30b40e;return!_0x1ec129[_0x524abb(0x118)](process[_0x524abb(0x141)]['BROWSERSTACK_SDK_INSTRUMENTATION'],_0x1ec129[_0x524abb(0x144)]);}static[a80_0x5cec23(0x105)](_0x35489c,_0x56194c,_0x53af84=null,_0x4417cd={},_0x5c21d8=null){const _0x4d524b=a80_0x5cec23,_0x44bdba={'OkFKS':function(_0x49e2a4,_0x6bd66f){return _0x49e2a4(_0x6bd66f);},'nwDwu':function(_0xb6715d,_0x888ac5){return _0xb6715d instanceof _0x888ac5;}};try{if(this[_0x4d524b(0xe8)]&&this['isEnabled']()){let _0x1bd71c=_0x35489c;_0x53af84&&(_0x1bd71c=_0x35489c+'['+JSON[_0x4d524b(0x176)](_0x53af84)+']');PerformanceTester['start'](_0x1bd71c),this[_0x4d524b(0x160)]&&(this[_0x4d524b(0x160)][_0x1bd71c]=_0x4417cd);try{const _0x330020=_0x56194c['apply'](null,_0x5c21d8);if(_0x44bdba[_0x4d524b(0x12d)](_0x330020,Promise))return new Promise((_0x4efb33,_0x10d26d)=>{const _0x4c579f=_0x4d524b,_0x228835={'OTJJd':function(_0xa0b464,_0x1754a1){const _0x5a60f7=a80_0x5b18;return _0x44bdba[_0x5a60f7(0x170)](_0xa0b464,_0x1754a1);}};_0x330020[_0x4c579f(0x137)](_0x5f190c=>{PerformanceTester['end'](_0x1bd71c),_0x228835['OTJJd'](_0x4efb33,_0x5f190c);})[_0x4c579f(0x167)](_0x414ac0=>{const _0x5a3a3a=_0x4c579f;PerformanceTester[_0x5a3a3a(0x13e)](_0x1bd71c,![],util[_0x5a3a3a(0x142)](_0x414ac0)),_0x228835[_0x5a3a3a(0x157)](_0x10d26d,_0x414ac0);});});;return PerformanceTester[_0x4d524b(0x13e)](_0x1bd71c),_0x330020;}catch(_0x154e5d){PerformanceTester[_0x4d524b(0x13e)](_0x1bd71c,![],util[_0x4d524b(0x142)](_0x154e5d));throw _0x154e5d;}};return _0x56194c[_0x4d524b(0x15e)](null,_0x5c21d8);}catch(_0x2eab55){return _0x56194c['apply'](null,_0x5c21d8);}}static['measureWrapper'](_0x559b67,_0x50d263,_0x59185f={}){const _0x2d78a1=a80_0x5cec23,_0x263cc6={'HStEf':function(_0x2ca4d1){return _0x2ca4d1();},'nEfgB':function(_0x574793){return _0x574793();}},_0xe7e496=this;return _0x59185f['worker']=_0x263cc6['HStEf'](getProcessId),_0x59185f[_0x2d78a1(0xeb)]=_0x263cc6[_0x2d78a1(0xf7)](getTestName),_0x59185f[_0x2d78a1(0xff)]=global[_0x2d78a1(0x138)]&&global[_0x2d78a1(0x138)][_0x2d78a1(0x10a)],function(){const _0x3be737=_0x2d78a1,_0x4b23a1=[_0x559b67,_0x50d263,null,_0x59185f][_0x3be737(0x17f)](arguments);return _0xe7e496[_0x3be737(0x105)][_0x3be737(0x15e)](_0xe7e496,_0x4b23a1);};}static['getCleanedPerfEvents'](){const _0x584900=a80_0x5cec23,_0x2481c0=/(^.*)\[(.*)\]$/,_0x15f490={},_0x156736={},_0x4c612c=[],_0x21c162=this[_0x584900(0x107)][_0x584900(0x10d)](0x0,this['_measureEvents'][_0x584900(0x102)]);for(const _0x387634 of _0x21c162){const _0x3c1ba3=_0x387634[_0x584900(0x103)][_0x584900(0x104)](_0x2481c0),_0x4ce551=Object[_0x584900(0x140)]({},_0x387634);_0x3c1ba3&&(_0x4ce551[_0x584900(0x103)]=_0x3c1ba3[0x1],_0x4ce551[_0x584900(0x154)]=JSON[_0x584900(0x166)](_0x3c1ba3[0x2])),_0x4c612c[_0x584900(0x129)](_0x4ce551);}return _0x4c612c;}static[a80_0x5cec23(0x181)](){const _0x3fffc4=a80_0x5cec23,_0x1e4361={'skYtQ':function(_0x30fed0){return _0x30fed0();},'BAIqO':function(_0x157486,_0x9859db){return _0x157486+_0x9859db;},'VcInE':_0x3fffc4(0x14d),'abyNp':function(_0x11e939,_0x2c5bcb){return _0x11e939===_0x2c5bcb;}};try{this[_0x3fffc4(0x11c)]=path[_0x3fffc4(0xe9)](_0x1e4361['skYtQ'](getLogDir),this[_0x3fffc4(0x180)]);if(fs[_0x3fffc4(0x156)](this[_0x3fffc4(0x11c)])){const _0x5eab80=fs[_0x3fffc4(0x116)](this[_0x3fffc4(0x11c)]);for(const _0x2fa35c of _0x5eab80){fs[_0x3fffc4(0x159)](path[_0x3fffc4(0xe9)](this[_0x3fffc4(0x11c)],_0x2fa35c));}}}catch(_0x3f5231){logger['debug'](_0x1e4361[_0x3fffc4(0x158)](_0x1e4361[_0x3fffc4(0x169)],_0x3f5231));}if(_0x1e4361[_0x3fffc4(0xe6)](this[_0x3fffc4(0x107)]['length'],0x0))return;const _0x5ac031=this[_0x3fffc4(0xe3)](),_0x92fac6=JSON['stringify'](_0x5ac031),_0x44569d=_0x1e4361[_0x3fffc4(0x158)](_0x92fac6[_0x3fffc4(0xf5)](0x1,-0x1),',');fs[_0x3fffc4(0xfc)](this['jsonReportFileName'],_0x44569d);}static async[a80_0x5cec23(0x16c)](){const _0x257e16=a80_0x5cec23,_0x12a2cb={'PFntw':function(_0x279378){return _0x279378();},'YnpdH':function(_0x48d1a6,_0x244da9){return _0x48d1a6===_0x244da9;},'dekBZ':function(_0x101d49,_0x12c71a){return _0x101d49>_0x12c71a;}};this['jsonReportDirPath']=path[_0x257e16(0xe9)](_0x12a2cb[_0x257e16(0x15b)](getLogDir),this[_0x257e16(0x180)]);if(!this[_0x257e16(0xe8)]||_0x12a2cb['YnpdH'](this['_measureEvents']['length'],0x0))return[];if(!fs['existsSync'](this['jsonReportDirPath']))return this[_0x257e16(0x107)];const _0x11dabc=(await fsPromise[_0x257e16(0x13f)](this['jsonReportDirPath']))[_0x257e16(0xe5)](_0x12cacc=>path[_0x257e16(0xf1)](this[_0x257e16(0x11c)],_0x12cacc));let _0xbd31cf=(await Promise[_0x257e16(0xe1)](_0x11dabc[_0x257e16(0xe5)](_0x3a891c=>fsPromise[_0x257e16(0x13d)](_0x3a891c,_0x257e16(0x14b)))))[_0x257e16(0xe5)](_0x2792df=>'['+_0x2792df[_0x257e16(0xf5)](0x0,-0x1)+']')[_0x257e16(0xe5)](_0x2c2b6e=>JSON[_0x257e16(0x166)](_0x2c2b6e))[_0x257e16(0x164)]();return _0x12a2cb[_0x257e16(0x152)](this[_0x257e16(0x107)][_0x257e16(0x102)],0x0)&&(_0xbd31cf=_0xbd31cf['concat'](this[_0x257e16(0xe3)]())),this[_0x257e16(0x179)][_0x257e16(0x128)](),_0xbd31cf;}static[a80_0x5cec23(0x100)](){const _0x4e4c88=a80_0x5cec23,_0x3e27c3={};_0x3e27c3[_0x4e4c88(0xfd)]=function(_0x101c6a,_0x1bd688){return _0x101c6a===_0x1bd688;},_0x3e27c3[_0x4e4c88(0x178)]=function(_0x699766,_0x568b10){return _0x699766+_0x568b10;};const _0x3340e9=_0x3e27c3;if(_0x3340e9['CpVnQ'](this[_0x4e4c88(0x132)][_0x4e4c88(0x102)],0x0))return;const _0x862a9=JSON[_0x4e4c88(0x176)](this[_0x4e4c88(0x132)]),_0x3c5cc2=_0x3340e9['SgBUf'](_0x862a9[_0x4e4c88(0xf5)](0x1,-0x1),',');fs[_0x4e4c88(0xfc)](this['errorFile'],_0x3c5cc2);}static[a80_0x5cec23(0x10f)](){const _0xd318a9=a80_0x5cec23,_0x1ef2ea={};_0x1ef2ea[_0xd318a9(0x12e)]=function(_0x184048,_0x41996d){return _0x184048>_0x41996d;};const _0x47a66e=_0x1ef2ea;if(this['errorReportFileName']){if(!fs[_0xd318a9(0x156)](this[_0xd318a9(0x113)]))return this[_0xd318a9(0x132)];let _0x5da928=fs[_0xd318a9(0x15a)](this[_0xd318a9(0x113)])[_0xd318a9(0x112)]();_0x5da928='['+_0x5da928[_0xd318a9(0xf5)](0x0,-0x1)+']';let _0x5535f9=JSON[_0xd318a9(0x166)](_0x5da928);return _0x47a66e[_0xd318a9(0x12e)](this[_0xd318a9(0x132)][_0xd318a9(0x102)],0x0)&&(_0x5535f9=_0x5535f9[_0xd318a9(0x17f)](this[_0xd318a9(0x132)])),fs['unlinkSync'](this['errorReportFileName']),_0x5535f9;}}static[a80_0x5cec23(0x120)](_0x52830e){const _0x344bee=a80_0x5cec23;if(!this['isEnabled']())return;this[_0x344bee(0x132)][_0x344bee(0x129)]({'message':_0x52830e[_0x344bee(0x150)],'trace':_0x52830e['stack'],'code':_0x52830e[_0x344bee(0xef)]||null,'time':new Date()});}static[a80_0x5cec23(0xfe)](){const _0xe379b8=a80_0x5cec23;try{if(!this[_0xe379b8(0x14a)]())return;this[_0xe379b8(0x179)][_0xe379b8(0x128)](),this[_0xe379b8(0x181)](),this[_0xe379b8(0x100)]();}catch(_0x329f56){logger[_0xe379b8(0xf4)](_0xe379b8(0x182)+util['format'](_0x329f56));}}static async[a80_0x5cec23(0x123)](){const _0x98837c=a80_0x5cec23,_0x468ef8={'kpGcF':function(_0x4f5f17,_0x188873){return _0x4f5f17(_0x188873);}};await _0x468ef8[_0x98837c(0x135)](sleep,0x1e);const _0x3a7711=await this[_0x98837c(0x16c)](),_0x5256ea=this[_0x98837c(0x10f)]();if(!this['isEnabled']()){const _0x3b9c7b={};return _0x3b9c7b[_0x98837c(0x162)]=[],_0x3b9c7b[_0x98837c(0xf8)]=[],_0x3b9c7b;}const _0x317c1a={};return _0x317c1a[_0x98837c(0x162)]=_0x3a7711,_0x317c1a[_0x98837c(0xf8)]=_0x5256ea,_0x317c1a;}static[a80_0x5cec23(0x177)](_0x2042b3){const _0x14e1c0=a80_0x5cec23,_0x39d187={};_0x39d187[_0x14e1c0(0xfa)]=function(_0x1ccc77,_0x16313a){return _0x1ccc77+_0x16313a;},_0x39d187[_0x14e1c0(0x149)]=_0x14e1c0(0x101);const _0x58ead4=_0x39d187,_0x3540bb=_0x58ead4[_0x14e1c0(0xfa)](_0x2042b3,_0x58ead4[_0x14e1c0(0x149)]);if(this['eventsMap'][_0x3540bb])return;performance[_0x14e1c0(0x122)](_0x3540bb),this[_0x14e1c0(0xf3)][_0x3540bb]=0x1;}static[a80_0x5cec23(0x13e)](_0xc37b41,_0x8128d1=!![],_0x1e6c12=null,_0x217531={}){const _0x5c7e89=a80_0x5cec23,_0x3ec933={'joiTP':function(_0x56756f,_0x3753af){return _0x56756f+_0x3753af;},'DGDqu':_0x5c7e89(0x17d),'nhzIL':_0x5c7e89(0x101),'PLlOj':function(_0x4e6b90,_0x7f51bb){return _0x4e6b90+_0x7f51bb;},'flpnP':function(_0x2978e3){return _0x2978e3();}};performance[_0x5c7e89(0x122)](_0x3ec933[_0x5c7e89(0x16a)](_0xc37b41,_0x3ec933[_0x5c7e89(0x15d)])),performance['measure'](_0xc37b41,_0x3ec933[_0x5c7e89(0x16a)](_0xc37b41,_0x3ec933['nhzIL']),_0x3ec933[_0x5c7e89(0x139)](_0xc37b41,_0x3ec933[_0x5c7e89(0x15d)]));const _0x1a8dcb={};_0x1a8dcb[_0x5c7e89(0x13b)]=_0x8128d1,_0x1a8dcb[_0x5c7e89(0xf9)]=_0x1e6c12,this[_0x5c7e89(0x160)][_0xc37b41]=Object[_0x5c7e89(0x140)](_0x1a8dcb,Object[_0x5c7e89(0x140)](Object[_0x5c7e89(0x140)]({'worker':_0x3ec933[_0x5c7e89(0x12a)](getProcessId),'platform':global['__platformCaps']&&global[_0x5c7e89(0x138)][_0x5c7e89(0x10a)],'testName':_0x3ec933[_0x5c7e89(0x12a)](getTestName)},_0x217531),this[_0x5c7e89(0x160)][_0xc37b41]||{}));}}module[a80_0x5cec23(0x14c)]=PerformanceTester;
@@ -1 +1 @@
1
- function a81_0x35b7(){const _0x52e956=['88EzFnCY','getProcessId','pid','AgmOu','][\x20OBSERVABILITY\x20]\x20','1524rlOSSN','sleep','getGlobal','50286gidxnd','ihubb','toISOString','TXBcN','508350tXdDJG','2258053Zkpwqf','BROWSERSTACK_OBSERVABILITY_DEBUG','47673ekzrOi','5111183lWSUPz','76ldFMgU','./test-observability/constants','4435sWLZkP','FABYK','114502ucFwdS','threadId','env','./globals','2bpyPph','worker_threads','true'];a81_0x35b7=function(){return _0x52e956;};return a81_0x35b7();}function a81_0x1f1d(_0x2a74ac,_0x1768ce){const _0x35b754=a81_0x35b7();return a81_0x1f1d=function(_0x1f1d7c,_0x1b261c){_0x1f1d7c=_0x1f1d7c-0x1e5;let _0x3fc235=_0x35b754[_0x1f1d7c];return _0x3fc235;},a81_0x1f1d(_0x2a74ac,_0x1768ce);}const a81_0x121d2a=a81_0x1f1d;(function(_0x2c589d,_0x22c799){const _0x3b1ec5=a81_0x1f1d,_0x32ad66=_0x2c589d();while(!![]){try{const _0x406104=parseInt(_0x3b1ec5(0x1e8))/0x1*(parseInt(_0x3b1ec5(0x200))/0x2)+parseInt(_0x3b1ec5(0x1f3))/0x3*(parseInt(_0x3b1ec5(0x1fc))/0x4)+-parseInt(_0x3b1ec5(0x1fe))/0x5*(parseInt(_0x3b1ec5(0x1f0))/0x6)+parseInt(_0x3b1ec5(0x1f8))/0x7+-parseInt(_0x3b1ec5(0x1eb))/0x8*(-parseInt(_0x3b1ec5(0x1fa))/0x9)+parseInt(_0x3b1ec5(0x1f7))/0xa+-parseInt(_0x3b1ec5(0x1fb))/0xb;if(_0x406104===_0x22c799)break;else _0x32ad66['push'](_0x32ad66['shift']());}catch(_0x5d2b51){_0x32ad66['push'](_0x32ad66['shift']());}}}(a81_0x35b7,0x2aa76));const worker=require(a81_0x121d2a(0x1e9)),{fileLogger}=require('./logger'),{consoleHolder}=require(a81_0x121d2a(0x1fd)),globals=require(a81_0x121d2a(0x1e7));exports[a81_0x121d2a(0x1ec)]=()=>{const _0x40718d=a81_0x121d2a;return process[_0x40718d(0x1ed)]+'-'+worker[_0x40718d(0x1e5)];},exports['getTestName']=()=>{const _0x5bc122=a81_0x121d2a,_0x5456c0={};_0x5456c0['FABYK']='browserstackTestName';const _0x53a630=_0x5456c0;return globals[_0x5bc122(0x1f2)](_0x53a630[_0x5bc122(0x1ff)]);},exports[a81_0x121d2a(0x1f1)]=(_0x2bb052=0x64)=>new Promise(_0xfbd80a=>setTimeout(_0xfbd80a,_0x2bb052)),exports['debug']=_0x316257=>{const _0x36306d=a81_0x121d2a,_0x42d0a5={};_0x42d0a5[_0x36306d(0x1f4)]=function(_0x26b089,_0xc31dc1){return _0x26b089===_0xc31dc1;},_0x42d0a5[_0x36306d(0x1ee)]=_0x36306d(0x1ea),_0x42d0a5[_0x36306d(0x1f6)]=function(_0x596fb4,_0x49ea64){return _0x596fb4===_0x49ea64;};const _0x44ef9a=_0x42d0a5;fileLogger['debug']('['+new Date()[_0x36306d(0x1f5)]()+_0x36306d(0x1ef)+_0x316257),(_0x44ef9a['ihubb'](process[_0x36306d(0x1e6)][_0x36306d(0x1f9)],_0x44ef9a[_0x36306d(0x1ee)])||_0x44ef9a[_0x36306d(0x1f6)](process[_0x36306d(0x1e6)][_0x36306d(0x1f9)],'1'))&&consoleHolder['log']('\x0a['+new Date()[_0x36306d(0x1f5)]()+_0x36306d(0x1ef)+_0x316257+'\x0a');};
1
+ const a81_0x53025b=a81_0x2b14;(function(_0x3a525c,_0x9e733f){const _0x625c6c=a81_0x2b14,_0x3a339b=_0x3a525c();while(!![]){try{const _0x16abae=-parseInt(_0x625c6c(0x94))/0x1*(parseInt(_0x625c6c(0xa0))/0x2)+parseInt(_0x625c6c(0xa4))/0x3*(-parseInt(_0x625c6c(0xb0))/0x4)+-parseInt(_0x625c6c(0x92))/0x5+parseInt(_0x625c6c(0xa1))/0x6*(-parseInt(_0x625c6c(0xa6))/0x7)+parseInt(_0x625c6c(0x96))/0x8*(-parseInt(_0x625c6c(0x97))/0x9)+parseInt(_0x625c6c(0xa2))/0xa*(-parseInt(_0x625c6c(0xa3))/0xb)+-parseInt(_0x625c6c(0xa8))/0xc*(-parseInt(_0x625c6c(0xad))/0xd);if(_0x16abae===_0x9e733f)break;else _0x3a339b['push'](_0x3a339b['shift']());}catch(_0x3a1499){_0x3a339b['push'](_0x3a339b['shift']());}}}(a81_0x367c,0x6eecb));const worker=require(a81_0x53025b(0x9f)),{fileLogger}=require('./logger'),{consoleHolder}=require('./test-observability/constants'),globals=require(a81_0x53025b(0x9c));function a81_0x2b14(_0x2069c2,_0x3b6f44){const _0x367c63=a81_0x367c();return a81_0x2b14=function(_0x2b1406,_0xdda115){_0x2b1406=_0x2b1406-0x92;let _0x40a206=_0x367c63[_0x2b1406];return _0x40a206;},a81_0x2b14(_0x2069c2,_0x3b6f44);}exports[a81_0x53025b(0x9b)]=()=>{const _0x1ab054=a81_0x53025b;return process[_0x1ab054(0x9a)]+'-'+worker[_0x1ab054(0xa5)];},exports[a81_0x53025b(0x98)]=()=>{const _0xcd06bb=a81_0x53025b,_0x33ac3c={};_0x33ac3c['hPQDn']=_0xcd06bb(0xa9);const _0x16a280=_0x33ac3c;return globals['getGlobal'](_0x16a280[_0xcd06bb(0x9e)]);},exports['sleep']=(_0x33894b=0x64)=>new Promise(_0x2cb5bc=>setTimeout(_0x2cb5bc,_0x33894b)),exports[a81_0x53025b(0x95)]=_0x1cbb46=>{const _0x1e3280=a81_0x53025b,_0x5029d5={};_0x5029d5[_0x1e3280(0x93)]=function(_0x4232f8,_0x2c3823){return _0x4232f8===_0x2c3823;},_0x5029d5[_0x1e3280(0xa7)]=_0x1e3280(0xab),_0x5029d5[_0x1e3280(0xaa)]=function(_0xa3ce6f,_0x3287dd){return _0xa3ce6f===_0x3287dd;};const _0x208b57=_0x5029d5;fileLogger[_0x1e3280(0x95)]('['+new Date()[_0x1e3280(0xaf)]()+_0x1e3280(0xac)+_0x1cbb46),(_0x208b57['YXmKB'](process['env'][_0x1e3280(0x9d)],_0x208b57[_0x1e3280(0xa7)])||_0x208b57[_0x1e3280(0xaa)](process[_0x1e3280(0xae)]['BROWSERSTACK_OBSERVABILITY_DEBUG'],'1'))&&consoleHolder[_0x1e3280(0x99)]('\x0a['+new Date()[_0x1e3280(0xaf)]()+'][\x20OBSERVABILITY\x20]\x20'+_0x1cbb46+'\x0a');};function a81_0x367c(){const _0x574ab3=['env','toISOString','112yHCaUh','2971900nzyaow','YXmKB','45TpLDfp','debug','1008MvPqNd','26802bOtEKy','getTestName','log','pid','getProcessId','./globals','BROWSERSTACK_OBSERVABILITY_DEBUG','hPQDn','worker_threads','18406yEeKfC','6dkMygX','20BuTcSg','2990735xDapjj','82449SjfGqR','threadId','5017411RortBv','Orpvj','46417884UjtWDW','browserstackTestName','nejap','true','][\x20OBSERVABILITY\x20]\x20','13aLRsCa'];a81_0x367c=function(){return _0x574ab3;};return a81_0x367c();}
@@ -1 +1 @@
1
- const a82_0x28a26d=a82_0x44b2;function a82_0x3644(){const _0x280cef=['2FYjgHo','9ZeTVIq','removeListener','statusCode','https','assign','QnotK','111010fkccvn','1658850feNjQr','monkeypatch','pathname','PXrpG','headers','1305NeBhCp','CxVsU','BYKBf','1713734oLsgWD','RSGGg','hostname','once','call','url','error','host','spy','gYzGR','method','6ZMQFet','object','aCahq','vpyIm','path','status_code','now','prototype','699848wrMVqe','restore','232320WFnHFx','duration_ms','4932ahYype','request','1752618xaNZSI','fNHXM','exports'];a82_0x3644=function(){return _0x280cef;};return a82_0x3644();}(function(_0x11223d,_0x4395c3){const _0x15b013=a82_0x44b2,_0x4b17c1=_0x11223d();while(!![]){try{const _0x313b39=parseInt(_0x15b013(0x73))/0x1*(parseInt(_0x15b013(0x98))/0x2)+-parseInt(_0x15b013(0x91))/0x3+-parseInt(_0x15b013(0x93))/0x4*(-parseInt(_0x15b013(0x79))/0x5)+-parseInt(_0x15b013(0x87))/0x6*(parseInt(_0x15b013(0x95))/0x7)+-parseInt(_0x15b013(0x8f))/0x8*(-parseInt(_0x15b013(0x99))/0x9)+-parseInt(_0x15b013(0x74))/0xa+parseInt(_0x15b013(0x7c))/0xb;if(_0x313b39===_0x4395c3)break;else _0x4b17c1['push'](_0x4b17c1['shift']());}catch(_0x117f46){_0x4b17c1['push'](_0x4b17c1['shift']());}}}(a82_0x3644,0x2c87f));const http=require('http'),https=require(a82_0x28a26d(0x9c)),monkeypatch=require(a82_0x28a26d(0x75));function spy(_0x48d281){const _0x210a1f=a82_0x28a26d,_0xf6f89c={'uBUFS':function(_0x28328b,_0x5b9ccf){return _0x28328b instanceof _0x5b9ccf;},'JOZYN':function(_0x3e06a1,_0x671a22){return _0x3e06a1===_0x671a22;},'CxVsU':_0x210a1f(0x88),'SYUNx':function(_0x585388,_0x4b7ead,_0x42378e){return _0x585388(_0x4b7ead,_0x42378e);},'BYKBf':function(_0xeec8bc,_0xdf63fb){return _0xeec8bc-_0xdf63fb;},'lcfXh':_0x210a1f(0x82),'vpyIm':function(_0x22e3db,..._0x197756){return _0x22e3db(..._0x197756);},'fNHXM':'response','Qnecm':'socket','gYzGR':function(_0xbb286f,_0x4b8c5c,_0x32e308,_0x447926){return _0xbb286f(_0x4b8c5c,_0x32e308,_0x447926);},'IudMN':'end','EQWDC':function(_0x55e917,_0x5ae19a,_0x362250,_0x6277dd){return _0x55e917(_0x5ae19a,_0x362250,_0x6277dd);},'aCahq':_0x210a1f(0x94)},_0x22cac7=function(){const _0x32810a=_0x210a1f,_0x40c498={'PXrpG':function(_0xa4689d,_0x1d0b37){const _0x56bba0=a82_0x44b2;return _0xf6f89c[_0x56bba0(0x7b)](_0xa4689d,_0x1d0b37);},'uGOZP':function(_0x531014,_0xf1d116,_0x155ebd){return _0xf6f89c['SYUNx'](_0x531014,_0xf1d116,_0x155ebd);},'RSGGg':_0xf6f89c['lcfXh'],'QnotK':function(_0x5f3ec6,..._0x561545){const _0x11b0ce=a82_0x44b2;return _0xf6f89c[_0x11b0ce(0x8a)](_0x5f3ec6,..._0x561545);}},_0x5606ef=arguments[0x0],_0x5b6356=Array[_0x32810a(0x8e)]['slice'][_0x32810a(0x80)](arguments,0x1),_0x5f2263=_0x5606ef['apply'](this,_0x5b6356);let _0x28d8fb=Date[_0x32810a(0x8d)](),_0x433d36;const _0xa7f522={};_0x5b6356['forEach'](_0x814e9d=>{const _0x23756b=_0x32810a;if(_0xf6f89c['uBUFS'](_0x814e9d,URL)){const _0x2bf2fb={};_0x2bf2fb[_0x23756b(0x81)]=_0x814e9d,Object['assign'](_0xa7f522,_0x2bf2fb);}else _0xf6f89c['JOZYN'](typeof _0x814e9d,_0xf6f89c[_0x23756b(0x7a)])&&Object[_0x23756b(0x71)](_0xa7f522,_0x814e9d);});const _0x16a322=_0x46c58d=>{const _0x3ef3ae=_0x32810a,_0x49495b={};_0x49495b['host']=_0xa7f522[_0x3ef3ae(0x83)]||_0xa7f522['hostname']||_0xa7f522[_0x3ef3ae(0x81)]&&(_0xa7f522['url'][_0x3ef3ae(0x83)]||_0xa7f522['url']['hostname']),_0x49495b['path']=_0xa7f522[_0x3ef3ae(0x8b)]||_0xa7f522[_0x3ef3ae(0x81)]&&_0xa7f522['url'][_0x3ef3ae(0x76)],_0x49495b['method']=_0xa7f522[_0x3ef3ae(0x86)],_0x49495b[_0x3ef3ae(0x78)]=_0xa7f522[_0x3ef3ae(0x78)],_0xf6f89c['SYUNx'](_0x48d281,_0x46c58d,_0x49495b);};return _0x5f2263[_0x32810a(0x7f)](_0xf6f89c[_0x32810a(0x96)],_0x5b45bd=>{const _0x5ed117=_0x32810a,_0x5c0628=_0x40c498[_0x5ed117(0x77)](Date[_0x5ed117(0x8d)](),_0x28d8fb),_0x155d3f={};_0x155d3f[_0x5ed117(0x7e)]=_0xa7f522['host']||_0xa7f522[_0x5ed117(0x7e)]||_0xa7f522['url']&&(_0xa7f522[_0x5ed117(0x81)]['host']||_0xa7f522[_0x5ed117(0x81)]['hostname']),_0x155d3f[_0x5ed117(0x8b)]=_0xa7f522[_0x5ed117(0x8b)]||_0xa7f522[_0x5ed117(0x81)]&&_0xa7f522[_0x5ed117(0x81)]['pathname'],_0x155d3f[_0x5ed117(0x86)]=_0xa7f522[_0x5ed117(0x86)],_0x155d3f[_0x5ed117(0x78)]=_0xa7f522[_0x5ed117(0x78)],_0x155d3f[_0x5ed117(0x8c)]=_0x5b45bd[_0x5ed117(0x9b)],_0x155d3f[_0x5ed117(0x92)]=_0x5c0628,_0x40c498['uGOZP'](_0x48d281,null,_0x155d3f),_0x433d36[_0x5ed117(0x9a)](_0x40c498[_0x5ed117(0x7d)],_0x16a322);}),_0x5f2263['on'](_0xf6f89c['Qnecm'],_0x3b443a=>{const _0x3fdb6f=_0x32810a;_0x433d36=_0x3b443a,_0x3b443a['once'](_0x40c498[_0x3fdb6f(0x7d)],_0x16a322);}),_0xf6f89c[_0x32810a(0x85)](monkeypatch,_0x5f2263,_0xf6f89c['IudMN'],(_0xd3ef05,..._0x51a6b7)=>{const _0x4374e1=_0x32810a;_0x28d8fb=Date[_0x4374e1(0x8d)](),_0x40c498[_0x4374e1(0x72)](_0xd3ef05,..._0x51a6b7);}),_0x5f2263;};_0xf6f89c['EQWDC'](monkeypatch,http,_0xf6f89c[_0x210a1f(0x89)],_0x22cac7),_0xf6f89c[_0x210a1f(0x85)](monkeypatch,https,_0xf6f89c[_0x210a1f(0x89)],_0x22cac7);}function a82_0x44b2(_0x533d15,_0xed43fa){const _0x3644ec=a82_0x3644();return a82_0x44b2=function(_0x44b2d6,_0x3e7876){_0x44b2d6=_0x44b2d6-0x71;let _0x49048e=_0x3644ec[_0x44b2d6];return _0x49048e;},a82_0x44b2(_0x533d15,_0xed43fa);}function restore(){http['request']['unpatch'](),https['request']['unpatch']();}const a82_0x2d6e92={};a82_0x2d6e92[a82_0x28a26d(0x84)]=spy,a82_0x2d6e92[a82_0x28a26d(0x90)]=restore,module[a82_0x28a26d(0x97)]=a82_0x2d6e92;
1
+ function a82_0x2438(){const _0xa44c17=['object','SXxPz','monkeypatch','forEach','SGWJf','9624645NbtaCJ','statusCode','error','JSpCx','unpatch','xpsdS','http','https','1679046yTZvEB','cVhqv','55OeuShR','path','1076754toMGiY','restore','slice','653pVykdm','spy','call','3503908nRuvnG','DTmug','3098uvXqXf','2406650MtTMvt','aEFxE','PBHIg','removeListener','OubNm','kGtUO','ucOfh','headers','assign','method','7236MwfIrz','now','180TEQYKw','socket','hostname','host','apply','status_code','fAgeF','response','gEWxC','request','url','OJrrK','duration_ms','exports','jTDIB','16BABZnn','prototype','nsmfP'];a82_0x2438=function(){return _0xa44c17;};return a82_0x2438();}const a82_0x51490e=a82_0x4be4;(function(_0x545f51,_0xf1c588){const _0x56c5e9=a82_0x4be4,_0x3b55ee=_0x545f51();while(!![]){try{const _0x502729=parseInt(_0x56c5e9(0x131))/0x1*(parseInt(_0x56c5e9(0x136))/0x2)+parseInt(_0x56c5e9(0x12a))/0x3+-parseInt(_0x56c5e9(0x134))/0x4+-parseInt(_0x56c5e9(0x10b))/0x5*(-parseInt(_0x56c5e9(0x109))/0x6)+-parseInt(_0x56c5e9(0x12e))/0x7*(parseInt(_0x56c5e9(0x11a))/0x8)+-parseInt(_0x56c5e9(0x122))/0x9+parseInt(_0x56c5e9(0x137))/0xa*(parseInt(_0x56c5e9(0x12c))/0xb);if(_0x502729===_0xf1c588)break;else _0x3b55ee['push'](_0x3b55ee['shift']());}catch(_0x5c991d){_0x3b55ee['push'](_0x3b55ee['shift']());}}}(a82_0x2438,0x89e9e));const http=require(a82_0x51490e(0x128)),https=require(a82_0x51490e(0x129)),monkeypatch=require(a82_0x51490e(0x11f));function a82_0x4be4(_0x47dde5,_0x2ad5db){const _0x2438ac=a82_0x2438();return a82_0x4be4=function(_0x4be469,_0x1c8b55){_0x4be469=_0x4be469-0x106;let _0x2c1e82=_0x2438ac[_0x4be469];return _0x2c1e82;},a82_0x4be4(_0x47dde5,_0x2ad5db);}function spy(_0x379edd){const _0x1dc55d=a82_0x51490e,_0x1691ee={'ONgKb':function(_0x3a857d,_0x61ebf8){return _0x3a857d-_0x61ebf8;},'ucOfh':function(_0x4e6a3f,_0x2f5d88,_0x4f9ed8){return _0x4e6a3f(_0x2f5d88,_0x4f9ed8);},'nsmfP':_0x1dc55d(0x124),'xpsdS':function(_0x2ac5b6,_0x2bd914){return _0x2ac5b6 instanceof _0x2bd914;},'XKbJR':function(_0x51cef3,_0x9a6392){return _0x51cef3===_0x9a6392;},'fAgeF':_0x1dc55d(0x11d),'OubNm':function(_0x1c4c53,_0x4d92da,_0x435cc8){return _0x1c4c53(_0x4d92da,_0x435cc8);},'PBHIg':function(_0xca1329,..._0x739212){return _0xca1329(..._0x739212);},'OJrrK':_0x1dc55d(0x112),'jTDIB':_0x1dc55d(0x10c),'SGWJf':function(_0x23b828,_0x26eb2d,_0x1c9731,_0x31af70){return _0x23b828(_0x26eb2d,_0x1c9731,_0x31af70);},'aEFxE':'end','kGtUO':_0x1dc55d(0x114),'SXxPz':function(_0x20a197,_0x5c6124,_0x28d692,_0x445b05){return _0x20a197(_0x5c6124,_0x28d692,_0x445b05);}},_0x3687f2=function(){const _0x51439c=_0x1dc55d,_0x720a84={'JSpCx':function(_0x307602,_0x3ed7e2){const _0x221d44=a82_0x4be4;return _0x1691ee[_0x221d44(0x127)](_0x307602,_0x3ed7e2);},'cVhqv':function(_0x1f2cb3,_0x4c30ec){return _0x1691ee['XKbJR'](_0x1f2cb3,_0x4c30ec);},'DTmug':_0x1691ee[_0x51439c(0x111)],'gEWxC':function(_0xa70857,_0xb92657,_0x11c6bf){const _0x37fa7c=_0x51439c;return _0x1691ee[_0x37fa7c(0x13b)](_0xa70857,_0xb92657,_0x11c6bf);},'BQRsq':function(_0x531e66,..._0x322bd3){const _0x42342a=_0x51439c;return _0x1691ee[_0x42342a(0x139)](_0x531e66,..._0x322bd3);}},_0x1e6054=arguments[0x0],_0x3e37ea=Array[_0x51439c(0x11b)][_0x51439c(0x130)][_0x51439c(0x133)](arguments,0x1),_0x26a87d=_0x1e6054[_0x51439c(0x10f)](this,_0x3e37ea);let _0x264f0b=Date[_0x51439c(0x10a)](),_0x2e0132;const _0x3a7c16={};_0x3e37ea[_0x51439c(0x120)](_0x5a2ebe=>{const _0xe2af95=_0x51439c;if(_0x720a84[_0xe2af95(0x125)](_0x5a2ebe,URL)){const _0x384018={};_0x384018[_0xe2af95(0x115)]=_0x5a2ebe,Object[_0xe2af95(0x107)](_0x3a7c16,_0x384018);}else _0x720a84[_0xe2af95(0x12b)](typeof _0x5a2ebe,_0x720a84[_0xe2af95(0x135)])&&Object[_0xe2af95(0x107)](_0x3a7c16,_0x5a2ebe);});const _0x38d3ea=_0x33a0bc=>{const _0x5a413d=_0x51439c,_0x7b48df={};_0x7b48df[_0x5a413d(0x10e)]=_0x3a7c16['host']||_0x3a7c16['hostname']||_0x3a7c16[_0x5a413d(0x115)]&&(_0x3a7c16[_0x5a413d(0x115)][_0x5a413d(0x10e)]||_0x3a7c16['url'][_0x5a413d(0x10d)]),_0x7b48df[_0x5a413d(0x12d)]=_0x3a7c16['path']||_0x3a7c16[_0x5a413d(0x115)]&&_0x3a7c16[_0x5a413d(0x115)]['pathname'],_0x7b48df[_0x5a413d(0x108)]=_0x3a7c16[_0x5a413d(0x108)],_0x7b48df[_0x5a413d(0x106)]=_0x3a7c16[_0x5a413d(0x106)],_0x720a84[_0x5a413d(0x113)](_0x379edd,_0x33a0bc,_0x7b48df);};return _0x26a87d['once'](_0x1691ee[_0x51439c(0x116)],_0x29be42=>{const _0x14cb14=_0x51439c,_0x4c3138=_0x1691ee['ONgKb'](Date[_0x14cb14(0x10a)](),_0x264f0b),_0x485adf={};_0x485adf['hostname']=_0x3a7c16[_0x14cb14(0x10e)]||_0x3a7c16[_0x14cb14(0x10d)]||_0x3a7c16[_0x14cb14(0x115)]&&(_0x3a7c16[_0x14cb14(0x115)][_0x14cb14(0x10e)]||_0x3a7c16['url'][_0x14cb14(0x10d)]),_0x485adf[_0x14cb14(0x12d)]=_0x3a7c16[_0x14cb14(0x12d)]||_0x3a7c16['url']&&_0x3a7c16[_0x14cb14(0x115)]['pathname'],_0x485adf[_0x14cb14(0x108)]=_0x3a7c16[_0x14cb14(0x108)],_0x485adf['headers']=_0x3a7c16[_0x14cb14(0x106)],_0x485adf[_0x14cb14(0x110)]=_0x29be42[_0x14cb14(0x123)],_0x485adf[_0x14cb14(0x117)]=_0x4c3138,_0x1691ee[_0x14cb14(0x13d)](_0x379edd,null,_0x485adf),_0x2e0132[_0x14cb14(0x13a)](_0x1691ee[_0x14cb14(0x11c)],_0x38d3ea);}),_0x26a87d['on'](_0x1691ee[_0x51439c(0x119)],_0x24faea=>{_0x2e0132=_0x24faea,_0x24faea['once'](_0x1691ee['nsmfP'],_0x38d3ea);}),_0x1691ee[_0x51439c(0x121)](monkeypatch,_0x26a87d,_0x1691ee[_0x51439c(0x138)],(_0x77e768,..._0xa35d24)=>{_0x264f0b=Date['now'](),_0x720a84['BQRsq'](_0x77e768,..._0xa35d24);}),_0x26a87d;};_0x1691ee[_0x1dc55d(0x121)](monkeypatch,http,_0x1691ee[_0x1dc55d(0x13c)],_0x3687f2),_0x1691ee[_0x1dc55d(0x11e)](monkeypatch,https,_0x1691ee[_0x1dc55d(0x13c)],_0x3687f2);}function restore(){const _0x6bacd6=a82_0x51490e;http[_0x6bacd6(0x114)][_0x6bacd6(0x126)](),https[_0x6bacd6(0x114)]['unpatch']();}const a82_0x41d020={};a82_0x41d020[a82_0x51490e(0x132)]=spy,a82_0x41d020[a82_0x51490e(0x12f)]=restore,module[a82_0x51490e(0x118)]=a82_0x41d020;
@@ -1 +1 @@
1
- function a83_0x3fbf(_0x48f541,_0x362bd5){const _0xab404a=a83_0xab40();return a83_0x3fbf=function(_0x3fbf3c,_0x413882){_0x3fbf3c=_0x3fbf3c-0x150;let _0x463851=_0xab404a[_0x3fbf3c];return _0x463851;},a83_0x3fbf(_0x48f541,_0x362bd5);}const a83_0x5c5241=a83_0x3fbf;function a83_0xab40(){const _0x5bff7c=['75bopTYU','exports','protocol','26999uRuhfX','./performance/performance-tester','http','Agent','96550keBFYj','globalAgent','https:','cvGXF','keepAliveMsecs','301971IVeLLd','15450hsGPaT','60VtEkke','4593155fiCVRj','call','3203080dkLJYH','WeogA','PZake','KEEP_ALIVE','measureWrapper','891hQVvPw','keepAlive','tjsnh','anJDv','./performance/constants','https','OdoDH','jNekl','1689364mQyOEQ','request','pGfWA'];a83_0xab40=function(){return _0x5bff7c;};return a83_0xab40();}(function(_0x4acaae,_0x5603a8){const _0x5f37e1=a83_0x3fbf,_0x55cb1c=_0x4acaae();while(!![]){try{const _0xa2bf8d=-parseInt(_0x5f37e1(0x167))/0x1*(-parseInt(_0x5f37e1(0x153))/0x2)+-parseInt(_0x5f37e1(0x152))/0x3+parseInt(_0x5f37e1(0x164))/0x4+-parseInt(_0x5f37e1(0x155))/0x5+-parseInt(_0x5f37e1(0x154))/0x6*(-parseInt(_0x5f37e1(0x16a))/0x7)+-parseInt(_0x5f37e1(0x157))/0x8+-parseInt(_0x5f37e1(0x15c))/0x9*(-parseInt(_0x5f37e1(0x16e))/0xa);if(_0xa2bf8d===_0x5603a8)break;else _0x55cb1c['push'](_0x55cb1c['shift']());}catch(_0x275eeb){_0x55cb1c['push'](_0x55cb1c['shift']());}}}(a83_0xab40,0x8cbca));const PerformanceTester=require(a83_0x5c5241(0x16b)),{AUTOMATE_EVENTS:PerformanceEvents}=require(a83_0x5c5241(0x160));module[a83_0x5c5241(0x168)]=PerformanceTester[a83_0x5c5241(0x15b)](PerformanceEvents[a83_0x5c5241(0x15a)],function(){const _0x53d7eb=a83_0x5c5241,_0xddbb36={'WeogA':function(_0x315148,_0x199f15){return _0x315148===_0x199f15;},'PZake':_0x53d7eb(0x170),'anJDv':'agent','xdtUy':function(_0x23d314,_0x57bcff,_0x30673f){return _0x23d314(_0x57bcff,_0x30673f);},'tjsnh':function(_0x574519,_0x23b25b,_0x4d8cac){return _0x574519(_0x23b25b,_0x4d8cac);},'OQFho':function(_0x50ff30,_0x511538){return _0x50ff30(_0x511538);},'pGfWA':_0x53d7eb(0x16c),'QeYSG':function(_0x3d19d9,_0x5412e7){return _0x3d19d9(_0x5412e7);},'OdoDH':_0x53d7eb(0x161),'jNekl':function(_0x1d24ae,_0x53985){return _0x1d24ae*_0x53985;},'cvGXF':_0x53d7eb(0x15d)},_0x52cd4c=_0xddbb36['OQFho'](require,_0xddbb36[_0x53d7eb(0x166)]),_0x440edb=_0xddbb36['QeYSG'](require,_0xddbb36[_0x53d7eb(0x162)]),_0x31fc53=_0xddbb36[_0x53d7eb(0x163)](0x1e,0x3e8);if(_0x52cd4c[_0x53d7eb(0x16f)]&&Object['prototype']['hasOwnProperty'][_0x53d7eb(0x156)](_0x52cd4c[_0x53d7eb(0x16f)],_0xddbb36[_0x53d7eb(0x150)]))_0x52cd4c['globalAgent'][_0x53d7eb(0x15d)]=!![],_0x440edb[_0x53d7eb(0x16f)]['keepAlive']=!![],_0x52cd4c[_0x53d7eb(0x16f)][_0x53d7eb(0x151)]=_0x31fc53,_0x440edb[_0x53d7eb(0x16f)][_0x53d7eb(0x151)]=_0x31fc53;else{const _0x2db96b={};_0x2db96b['keepAlive']=!![],_0x2db96b['keepAliveMsecs']=_0x31fc53;const _0x2f065d=new _0x52cd4c[(_0x53d7eb(0x16d))](_0x2db96b),_0xc0cd1b={};_0xc0cd1b['keepAlive']=!![],_0xc0cd1b[_0x53d7eb(0x151)]=_0x31fc53;const _0x5ad69b=new _0x440edb[(_0x53d7eb(0x16d))](_0xc0cd1b),_0x5d8d38=_0x52cd4c[_0x53d7eb(0x165)],_0x37c1c8=_0x440edb[_0x53d7eb(0x165)];_0x52cd4c[_0x53d7eb(0x165)]=function(_0x349c45,_0x23800a){const _0x54b0aa=_0x53d7eb;if(_0xddbb36[_0x54b0aa(0x158)](_0x349c45[_0x54b0aa(0x169)],_0xddbb36[_0x54b0aa(0x159)]))return _0x349c45[_0xddbb36[_0x54b0aa(0x15f)]]=_0x5ad69b,_0xddbb36['xdtUy'](_0x37c1c8,_0x349c45,_0x23800a);return _0x349c45[_0xddbb36[_0x54b0aa(0x15f)]]=_0x2f065d,_0xddbb36[_0x54b0aa(0x15e)](_0x5d8d38,_0x349c45,_0x23800a);};}});
1
+ function a83_0x4f9d(_0x484aea,_0x1f1364){const _0x3708a0=a83_0x3708();return a83_0x4f9d=function(_0x4f9d77,_0x180def){_0x4f9d77=_0x4f9d77-0xac;let _0x5dbeb0=_0x3708a0[_0x4f9d77];return _0x5dbeb0;},a83_0x4f9d(_0x484aea,_0x1f1364);}const a83_0x7dde4f=a83_0x4f9d;(function(_0x103905,_0x513c53){const _0x415d06=a83_0x4f9d,_0x11394e=_0x103905();while(!![]){try{const _0x2d7de9=-parseInt(_0x415d06(0xc3))/0x1+-parseInt(_0x415d06(0xb7))/0x2+parseInt(_0x415d06(0xb2))/0x3*(parseInt(_0x415d06(0xc8))/0x4)+parseInt(_0x415d06(0xac))/0x5+parseInt(_0x415d06(0xb3))/0x6+-parseInt(_0x415d06(0xb9))/0x7*(parseInt(_0x415d06(0xb1))/0x8)+parseInt(_0x415d06(0xb4))/0x9;if(_0x2d7de9===_0x513c53)break;else _0x11394e['push'](_0x11394e['shift']());}catch(_0x1889e0){_0x11394e['push'](_0x11394e['shift']());}}}(a83_0x3708,0xe4056));const PerformanceTester=require(a83_0x7dde4f(0xc6)),{AUTOMATE_EVENTS:PerformanceEvents}=require(a83_0x7dde4f(0xc0));module[a83_0x7dde4f(0xae)]=PerformanceTester['measureWrapper'](PerformanceEvents[a83_0x7dde4f(0xb5)],function(){const _0x1a8b6d=a83_0x7dde4f,_0x114418={'whnUs':function(_0x1c66f0,_0x66eed){return _0x1c66f0===_0x66eed;},'pcSmP':_0x1a8b6d(0xc1),'SqJQy':_0x1a8b6d(0xc4),'jzYLP':function(_0x320da3,_0xeac09,_0x3c0975){return _0x320da3(_0xeac09,_0x3c0975);},'OMLxU':function(_0x432638,_0x4856ce){return _0x432638(_0x4856ce);},'YkMjH':'http','mUjrm':'https','ZDIHk':function(_0x158e78,_0x5e4775){return _0x158e78*_0x5e4775;},'kdhwL':_0x1a8b6d(0xcb)},_0xafedcf=_0x114418[_0x1a8b6d(0xaf)](require,_0x114418[_0x1a8b6d(0xcc)]),_0x1bd2e0=_0x114418[_0x1a8b6d(0xaf)](require,_0x114418[_0x1a8b6d(0xad)]),_0x4d0946=_0x114418[_0x1a8b6d(0xc2)](0x1e,0x3e8);if(_0xafedcf[_0x1a8b6d(0xb6)]&&Object[_0x1a8b6d(0xc9)][_0x1a8b6d(0xbb)][_0x1a8b6d(0xbe)](_0xafedcf[_0x1a8b6d(0xb6)],_0x114418[_0x1a8b6d(0xb0)]))_0xafedcf[_0x1a8b6d(0xb6)][_0x1a8b6d(0xcb)]=!![],_0x1bd2e0[_0x1a8b6d(0xb6)][_0x1a8b6d(0xcb)]=!![],_0xafedcf['globalAgent'][_0x1a8b6d(0xbf)]=_0x4d0946,_0x1bd2e0[_0x1a8b6d(0xb6)][_0x1a8b6d(0xbf)]=_0x4d0946;else{const _0x23fb0e={};_0x23fb0e['keepAlive']=!![],_0x23fb0e['keepAliveMsecs']=_0x4d0946;const _0x370aea=new _0xafedcf[(_0x1a8b6d(0xca))](_0x23fb0e),_0x1da44c={};_0x1da44c[_0x1a8b6d(0xcb)]=!![],_0x1da44c[_0x1a8b6d(0xbf)]=_0x4d0946;const _0x26b11f=new _0x1bd2e0['Agent'](_0x1da44c),_0x428921=_0xafedcf[_0x1a8b6d(0xc7)],_0xbda5a2=_0x1bd2e0['request'];_0xafedcf[_0x1a8b6d(0xc7)]=function(_0x2ecca3,_0x264a88){const _0x59a05b=_0x1a8b6d;if(_0x114418[_0x59a05b(0xc5)](_0x2ecca3[_0x59a05b(0xbd)],_0x114418[_0x59a05b(0xbc)]))return _0x2ecca3[_0x114418[_0x59a05b(0xb8)]]=_0x26b11f,_0x114418['jzYLP'](_0xbda5a2,_0x2ecca3,_0x264a88);return _0x2ecca3[_0x114418[_0x59a05b(0xb8)]]=_0x370aea,_0x114418[_0x59a05b(0xba)](_0x428921,_0x2ecca3,_0x264a88);};}});function a83_0x3708(){const _0x1ab4fc=['hasOwnProperty','pcSmP','protocol','call','keepAliveMsecs','./performance/constants','https:','ZDIHk','920304zbPzKq','agent','whnUs','./performance/performance-tester','request','628qJUJNG','prototype','Agent','keepAlive','YkMjH','3270605KPgycf','mUjrm','exports','OMLxU','kdhwL','8phUrNh','13890Gnubik','4764852gkaWrc','16822143bXvFQN','KEEP_ALIVE','globalAgent','1578846kRCWPJ','SqJQy','9804193pOeyYV','jzYLP'];a83_0x3708=function(){return _0x1ab4fc;};return a83_0x3708();}
@@ -1 +1 @@
1
- var a84_0x50781a=a84_0x3d10;function a84_0x3d10(_0x33e8bb,_0xe2d5df){var _0x224725=a84_0x2247();return a84_0x3d10=function(_0x3d1002,_0x429728){_0x3d1002=_0x3d1002-0x1ee;var _0x347a0d=_0x224725[_0x3d1002];return _0x347a0d;},a84_0x3d10(_0x33e8bb,_0xe2d5df);}function a84_0x2247(){var _0xc6d59f=['https://upload-observability.browserstack.com','JEST','693bzGFIL','mocha','1096151kjDfWW','assign','28459cXdHAt','exports','16072HhxYBR','Playwright','CODECEPT','cucumber','api/v1/event','1446QcqPxf','47100OEXGeX','2SSpRfY','CODECEPT_CUCUMBER','upload-attachments','CUCUMBER','4433tCaGub','PLAYWRIGHT','.obs_test_details','api/v1/batch','33qmarao','37456DmMQXs','jest','15395LDWxRX','828AXRHFu','api/v1/screenshots','628330YJJOdL'];a84_0x2247=function(){return _0xc6d59f;};return a84_0x2247();}(function(_0x50e3c5,_0x587262){var _0x14cc50=a84_0x3d10,_0x21edfd=_0x50e3c5();while(!![]){try{var _0x594d78=parseInt(_0x14cc50(0x1f6))/0x1*(-parseInt(_0x14cc50(0x1ff))/0x2)+parseInt(_0x14cc50(0x20b))/0x3*(-parseInt(_0x14cc50(0x1f8))/0x4)+parseInt(_0x14cc50(0x20a))/0x5*(parseInt(_0x14cc50(0x1fd))/0x6)+-parseInt(_0x14cc50(0x1f4))/0x7+-parseInt(_0x14cc50(0x208))/0x8*(parseInt(_0x14cc50(0x1f2))/0x9)+parseInt(_0x14cc50(0x1ef))/0xa*(parseInt(_0x14cc50(0x207))/0xb)+parseInt(_0x14cc50(0x1fe))/0xc*(parseInt(_0x14cc50(0x203))/0xd);if(_0x594d78===_0x587262)break;else _0x21edfd['push'](_0x21edfd['shift']());}catch(_0x183832){_0x21edfd['push'](_0x21edfd['shift']());}}}(a84_0x2247,0x9601d));var a84_0x3e837c={};a84_0x3e837c[a84_0x50781a(0x204)]=a84_0x50781a(0x1f9),a84_0x3e837c['MOCHA']=a84_0x50781a(0x1f3),a84_0x3e837c[a84_0x50781a(0x1fa)]='codeceptjs',a84_0x3e837c[a84_0x50781a(0x200)]='codeceptjs-cucumber',a84_0x3e837c[a84_0x50781a(0x1f1)]=a84_0x50781a(0x209),a84_0x3e837c[a84_0x50781a(0x202)]=a84_0x50781a(0x1fb),module[a84_0x50781a(0x1f7)]={'consoleHolder':Object[a84_0x50781a(0x1f5)]({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':'https://collector-observability.browserstack.com','OBSERVABILITY_UPLOAD_API_URL':a84_0x50781a(0x1f0),'EVENT_ENDPOINT':a84_0x50781a(0x1fc),'BATCH_ENDPOINT':a84_0x50781a(0x206),'SCREENSHOT_ENDPOINT':a84_0x50781a(0x1ee),'UPLOAD_ATTACHMENT_ENDPOINT':a84_0x50781a(0x201),'DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS':0xea60,'MAX_ALLOWED_PLAYWRIGHT_TRACE_SIZE':0x64*0x400*0x400,'DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS':0x64,'DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS':0x1f4,'TEMP_STORE_DIR_NAME':a84_0x50781a(0x205),'FRAMEWORKS':a84_0x3e837c};
1
+ var a84_0x3f228f=a84_0x33e3;function a84_0x3f58(){var _0x34b56f=['https://collector-observability.browserstack.com','320990TMclNU','api/v1/screenshots','257208xRdGHm','9xmhUxL','11jNxuRl','https://upload-observability.browserstack.com','581556rlsOCo','exports','Playwright','2NpCmXJ','12QnBAls','88oPekAR','CODECEPT_CUCUMBER','api/v1/event','961723uAKKfj','159453FdfyHb','1575670lXIpiv','89471HELIQB','upload-attachments','mocha','codeceptjs-cucumber','CUCUMBER','jest','CODECEPT','codeceptjs'];a84_0x3f58=function(){return _0x34b56f;};return a84_0x3f58();}function a84_0x33e3(_0x25d047,_0x38ec7c){var _0x3f58d6=a84_0x3f58();return a84_0x33e3=function(_0x33e3ab,_0x34535f){_0x33e3ab=_0x33e3ab-0x11d;var _0x544fb1=_0x3f58d6[_0x33e3ab];return _0x544fb1;},a84_0x33e3(_0x25d047,_0x38ec7c);}(function(_0x5de925,_0x1e9fe0){var _0x39d93b=a84_0x33e3,_0x2c7baa=_0x5de925();while(!![]){try{var _0x241365=-parseInt(_0x39d93b(0x12d))/0x1*(-parseInt(_0x39d93b(0x125))/0x2)+-parseInt(_0x39d93b(0x11f))/0x3*(-parseInt(_0x39d93b(0x11e))/0x4)+-parseInt(_0x39d93b(0x136))/0x5*(parseInt(_0x39d93b(0x126))/0x6)+-parseInt(_0x39d93b(0x12a))/0x7+parseInt(_0x39d93b(0x127))/0x8*(parseInt(_0x39d93b(0x12b))/0x9)+-parseInt(_0x39d93b(0x12c))/0xa+-parseInt(_0x39d93b(0x120))/0xb*(-parseInt(_0x39d93b(0x122))/0xc);if(_0x241365===_0x1e9fe0)break;else _0x2c7baa['push'](_0x2c7baa['shift']());}catch(_0x316442){_0x2c7baa['push'](_0x2c7baa['shift']());}}}(a84_0x3f58,0x18fe7));var a84_0x17213d={};a84_0x17213d['PLAYWRIGHT']=a84_0x3f228f(0x124),a84_0x17213d['MOCHA']=a84_0x3f228f(0x12f),a84_0x17213d[a84_0x3f228f(0x133)]=a84_0x3f228f(0x134),a84_0x17213d[a84_0x3f228f(0x128)]=a84_0x3f228f(0x130),a84_0x17213d['JEST']=a84_0x3f228f(0x132),a84_0x17213d[a84_0x3f228f(0x131)]='cucumber',module[a84_0x3f228f(0x123)]={'consoleHolder':Object['assign']({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':a84_0x3f228f(0x135),'OBSERVABILITY_UPLOAD_API_URL':a84_0x3f228f(0x121),'EVENT_ENDPOINT':a84_0x3f228f(0x129),'BATCH_ENDPOINT':'api/v1/batch','SCREENSHOT_ENDPOINT':a84_0x3f228f(0x11d),'UPLOAD_ATTACHMENT_ENDPOINT':a84_0x3f228f(0x12e),'DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS':0xea60,'MAX_ALLOWED_PLAYWRIGHT_TRACE_SIZE':0x64*0x400*0x400,'DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS':0x64,'DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS':0x1f4,'TEMP_STORE_DIR_NAME':'.obs_test_details','FRAMEWORKS':a84_0x17213d};
@@ -1 +1 @@
1
- function a85_0x1d8e(){const _0x337fa5=['SPtMR','dnsCV','RjpSv','captureError','inspect','Content-Type',',\x20PID\x20-\x20','o11yErrorHandler','toString','recursivelyDeletePIIKeysFromObject','application/json','204154NFnVtl','tBVgF','13bMrxSK','gxDfh','frameworkVersion','function','apply','../performance/performance-tester','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','Error\x20in\x20executing\x20','setFrameworkDetails','.\x20Error\x20-\x20','timerify','[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','headers','BS_TESTOPS_BUILD_HASHED_ID','name','LAtmb','bdpFh','setCredentials','CREDENTIALS_FOR_CRASH_REPORTING','Finished\x20::\x20','AkIwm','getOwnPropertyNames','BROWSERSTACK_O11Y_PERF_MEASUREMENT','userConfig','150273VWHrqa','2828010FklKIH','filterPII','getCredentials','Tgawj','setAllDetails','KsOGs','1240776KbBUMr','format','uploadCrashReport','auth','toLowerCase','POST','PxrlI','length','USER_CONFIG_FOR_REPORTING','initialize','1322065PCNnxd','defineProperty','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','call','FBkEt','YqwaQ','pid','24474474LmwAzu','egcGL','parse','aCaye',',\x20Argument\x20-\x20','exports','/api/v1/analytics','stringify','user','TZhqp','CWOpQ','then','constructor','stack','[Crash_Report_Upload]\x20Success\x20response:\x20','getFramework','username','frameworkName','getConfig','vgdrS','nqHNS','catch','wPNFD','prototype','forEach','key','Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20','frameworkDetails','env','184CEhorc','.\x20Args\x20-\x20','credentials','sOsRI','138943OODecg','xquDa','includes','YdXnB','getPerformance','DfgkB'];a85_0x1d8e=function(){return _0x337fa5;};return a85_0x1d8e();}const a85_0x5e394e=a85_0x9040;(function(_0x6b6114,_0x573b98){const _0x3d074a=a85_0x9040,_0x271dfb=_0x6b6114();while(!![]){try{const _0x9ffef6=parseInt(_0x3d074a(0xe5))/0x1*(-parseInt(_0x3d074a(0xe3))/0x2)+-parseInt(_0x3d074a(0xfd))/0x3+-parseInt(_0x3d074a(0x104))/0x4+-parseInt(_0x3d074a(0x10e))/0x5+-parseInt(_0x3d074a(0xfe))/0x6+-parseInt(_0x3d074a(0x136))/0x7*(-parseInt(_0x3d074a(0x132))/0x8)+parseInt(_0x3d074a(0x115))/0x9;if(_0x9ffef6===_0x573b98)break;else _0x271dfb['push'](_0x271dfb['shift']());}catch(_0x3a64fb){_0x271dfb['push'](_0x271dfb['shift']());}}}(a85_0x1d8e,0xb7cef));const util=require('util'),PerformanceTester=require(a85_0x5e394e(0xea)),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require('./utils'),{getAgentVersion,nestedKeyValue}=require('../helper'),o11yErrorHandler=(_0x68be68,_0x28a728='',_0x502b45=[''],_0x3dd79a=![])=>{const _0x4e79fb={'TZhqp':function(_0x120723,_0x348827){return _0x120723(_0x348827);},'sOsRI':function(_0x9bdb69,_0x5175bc,_0x3bc397){return _0x9bdb69(_0x5175bc,_0x3bc397);},'gxDfh':function(_0x2988d3,_0x558cf8){return _0x2988d3(_0x558cf8);},'aCaye':function(_0xfe2674,_0x305723){return _0xfe2674 instanceof _0x305723;},'dnsCV':function(_0x2196ec,_0x531082,_0x528bef,_0x3ddb78,_0x813790){return _0x2196ec(_0x531082,_0x528bef,_0x3ddb78,_0x813790);}};return function(..._0x4a4382){const _0x32c69a=a85_0x9040;try{let _0x1f5481=_0x68be68;process['env'][_0x32c69a(0xfb)]&&(_0x1f5481=PerformanceTester[_0x32c69a(0xd6)]()[_0x32c69a(0xef)](_0x1f5481));_0x3dd79a&&_0x4e79fb[_0x32c69a(0x11e)](trace,'Started\x20::\x20'+_0x28a728+',\x20PID\x20-\x20'+process['pid']+_0x32c69a(0x119)+_0x4e79fb[_0x32c69a(0x135)](nestedKeyValue,arguments[0x0],_0x502b45));const _0x51d550=_0x1f5481[_0x32c69a(0xe9)](null,arguments);_0x3dd79a&&_0x4e79fb[_0x32c69a(0xe6)](trace,_0x32c69a(0xf8)+_0x28a728+_0x32c69a(0xde)+process[_0x32c69a(0x114)]+_0x32c69a(0x119)+_0x4e79fb[_0x32c69a(0x135)](nestedKeyValue,arguments[0x0],_0x502b45));if(_0x4e79fb[_0x32c69a(0x118)](_0x51d550,Promise))return _0x51d550[_0x32c69a(0x12a)](_0x223531=>processError(_0x223531,_0x68be68,_0x4a4382,_0x28a728));return _0x51d550;}catch(_0x4ca4b7){_0x4e79fb[_0x32c69a(0xd9)](processError,_0x4ca4b7,_0x68be68,_0x4a4382,_0x28a728);}};},o11yClassErrorHandler=(_0x36669e,_0x2b4638,_0x2b98f3='')=>{const _0x1af964=a85_0x5e394e,_0x574109={'PxrlI':function(_0x24ea4d,_0x1aeab9){return _0x24ea4d instanceof _0x1aeab9;},'KwwgH':function(_0x21d932,_0xa3e1a4,_0x1163bc,_0x13368e,_0x9c9e06){return _0x21d932(_0xa3e1a4,_0x1163bc,_0x13368e,_0x9c9e06);},'zHzsb':function(_0x2bff6f,_0x3a9304){return _0x2bff6f===_0x3a9304;},'uDSQj':_0x1af964(0xe8),'tBVgF':function(_0x3d1478,_0x1ed8db){return _0x3d1478!==_0x1ed8db;},'SPtMR':_0x1af964(0x121),'FBkEt':function(_0x469b02,_0x27a0c7){return _0x469b02<_0x27a0c7;}},_0x51100c=_0x36669e[_0x1af964(0x12c)];if(_0x574109[_0x1af964(0x112)](Object[_0x1af964(0xfa)](_0x51100c)['length'],0x2))return _0x36669e;return Object[_0x1af964(0xfa)](_0x51100c)[_0x1af964(0x12d)](_0x5d88b6=>{const _0x2d404a=_0x1af964;if(!(_0x2b4638&&_0x2b4638[_0x2d404a(0xd4)](_0x5d88b6)))return;const _0x5b18a7=_0x51100c[_0x5d88b6];_0x574109['zHzsb'](typeof _0x5b18a7,_0x574109['uDSQj'])&&_0x574109[_0x2d404a(0xe4)](_0x5d88b6,_0x574109[_0x2d404a(0xd8)])&&Object[_0x2d404a(0x10f)](_0x51100c,_0x5d88b6,{'writable':!![],'value':function(..._0x4691bf){const _0x54f7ac=_0x2d404a;try{const _0x24c7f4=(process[_0x54f7ac(0x131)][_0x54f7ac(0xfb)]?PerformanceTester['getPerformance']()[_0x54f7ac(0xef)](_0x5b18a7):_0x5b18a7)[_0x54f7ac(0x111)](this,..._0x4691bf);if(_0x574109[_0x54f7ac(0x10a)](_0x24c7f4,Promise))return _0x24c7f4['catch'](_0x4bb971=>processError(_0x4bb971,_0x5b18a7,_0x4691bf,_0x2b98f3));return _0x24c7f4;}catch(_0x3edb64){_0x574109['KwwgH'](processError,_0x3edb64,_0x5b18a7,_0x4691bf,_0x2b98f3);}}});}),_0x36669e;};function processError(_0x585274,_0x2f9a22,_0x30d1b8,_0x5d1b56){const _0x2f86a9=a85_0x5e394e,_0x371dce={'xquDa':function(_0x427880,_0x419dfe){return _0x427880(_0x419dfe);}};_0x371dce[_0x2f86a9(0xd3)](debug,'Error\x20in\x20executing\x20'+_0x2f9a22['name']+'\x20--\x20'+_0x5d1b56+_0x2f86a9(0xee)+util[_0x2f86a9(0x105)](_0x585274)+_0x2f86a9(0x133)+_0x30d1b8+'.'),PerformanceTester[_0x2f86a9(0xdb)](_0x585274);let _0x3565d7;try{_0x3565d7=JSON[_0x2f86a9(0x11c)](_0x30d1b8);}catch(_0x4ed4b1){const _0x1b08a9={};_0x1b08a9['depth']=0x2,_0x3565d7=util[_0x2f86a9(0xdc)](_0x30d1b8,_0x1b08a9);}CrashReporter['uploadCrashReport'](_0x2f86a9(0xec)+_0x2f9a22[_0x2f86a9(0xf3)]+'\x20--\x20'+_0x5d1b56+_0x2f86a9(0xee)+_0x585274+_0x2f86a9(0x133)+_0x3565d7+'.',_0x585274&&_0x585274[_0x2f86a9(0x122)]);}class CrashReporter{static ['userConfig']={};static ['credentials'];static ['frameworkDetails']={};static[a85_0x5e394e(0x10d)](_0x22c31f,_0x1388c0,_0x1c9c86=null){const _0x226fad=a85_0x5e394e,_0x526bc9={'Tgawj':function(_0x4193f9,_0x302de6){return _0x4193f9(_0x302de6);}},_0x2e7d1f=_0x22c31f[_0x226fad(0x126)],_0x2ab322=_0x22c31f['frameworkVersion'];!_0x1c9c86&&(_0x1c9c86=_0x526bc9['Tgawj'](getBrowserStackConfig,_0x2e7d1f));!_0x2ab322&&_0x526bc9[_0x226fad(0x101)](getFrameworkVersion,_0x2e7d1f);const _0x1dfd83={};_0x1dfd83[_0x226fad(0x126)]=_0x2e7d1f,_0x1dfd83[_0x226fad(0xe7)]=_0x2ab322,this[_0x226fad(0x102)](_0x1dfd83,_0x1388c0,_0x526bc9[_0x226fad(0x101)](getUserCredentials,_0x1c9c86));}static[a85_0x5e394e(0xf6)](_0x5c844d,_0x2756ae){const _0x3e5154=a85_0x5e394e,_0xdecb1a={};_0xdecb1a[_0x3e5154(0x125)]=_0x5c844d,_0xdecb1a['accessKey']=_0x2756ae,this[_0x3e5154(0x134)]=_0xdecb1a,process[_0x3e5154(0x131)][_0x3e5154(0xf7)]=JSON[_0x3e5154(0x11c)](this[_0x3e5154(0x134)]);}static[a85_0x5e394e(0x100)](){const _0x46c2e1=a85_0x5e394e,_0x4383d1={'wPNFD':function(_0x35e394,_0x5ca0eb){return _0x35e394(_0x5ca0eb);}};if(!this[_0x46c2e1(0x134)]&&process[_0x46c2e1(0x131)][_0x46c2e1(0xf7)])try{this[_0x46c2e1(0x134)]=JSON[_0x46c2e1(0x117)](process[_0x46c2e1(0x131)][_0x46c2e1(0xf7)]);}catch(_0x3ce150){_0x4383d1[_0x46c2e1(0x12b)](debug,_0x46c2e1(0x110)+_0x3ce150[_0x46c2e1(0xe0)]());}return this[_0x46c2e1(0x134)];}static['setConfigDetails'](_0x1e141e){const _0x3d14d8=a85_0x5e394e;this[_0x3d14d8(0xfc)]=this[_0x3d14d8(0xff)](_0x1e141e),process[_0x3d14d8(0x131)][_0x3d14d8(0x10c)]=JSON[_0x3d14d8(0x11c)](this[_0x3d14d8(0xfc)]);}static[a85_0x5e394e(0x127)](){const _0x130b60=a85_0x5e394e,_0x300020={'aDcIg':function(_0x27085b,_0x4da85a){return _0x27085b===_0x4da85a;},'hHJlx':function(_0x36f5cc,_0x516627){return _0x36f5cc(_0x516627);}};if(_0x300020['aDcIg'](Object['keys'](this[_0x130b60(0xfc)])[_0x130b60(0x10b)],0x0)&&process[_0x130b60(0x131)][_0x130b60(0x10c)])try{this[_0x130b60(0xfc)]=JSON[_0x130b60(0x117)](process[_0x130b60(0x131)][_0x130b60(0x10c)]);}catch(_0x5e9e26){_0x300020['hHJlx'](debug,_0x130b60(0x12f)+_0x5e9e26[_0x130b60(0xe0)]()),this[_0x130b60(0xfc)]={};}return this[_0x130b60(0xfc)];}static[a85_0x5e394e(0xed)](_0x28af85){const _0x2766d7=a85_0x5e394e;this[_0x2766d7(0x130)]=_0x28af85,process[_0x2766d7(0x131)][_0x2766d7(0xeb)]=JSON[_0x2766d7(0x11c)](this[_0x2766d7(0x130)]);}static[a85_0x5e394e(0x124)](){const _0xd85e75=a85_0x5e394e,_0x21c37e={'hDrTs':function(_0x4e3b05,_0x5e6846){return _0x4e3b05===_0x5e6846;},'jWDZx':function(_0x598fbd,_0x3438fd){return _0x598fbd(_0x3438fd);}};if(_0x21c37e['hDrTs'](Object['keys'](this[_0xd85e75(0x130)])[_0xd85e75(0x10b)],0x0)&&process[_0xd85e75(0x131)]['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS'])try{this['frameworkDetails']=JSON[_0xd85e75(0x117)](process[_0xd85e75(0x131)][_0xd85e75(0xeb)]);}catch(_0xf3490e){_0x21c37e['jWDZx'](debug,'Error\x20in\x20parsing\x20credentials\x20from\x20env\x20'+_0xf3490e[_0xd85e75(0xe0)]());}return this[_0xd85e75(0x130)];}static[a85_0x5e394e(0x102)](_0x2bac5c,_0x37724f,_0x3973ff){const _0x1aa2ac=a85_0x5e394e;_0x2bac5c&&this['setFrameworkDetails'](_0x2bac5c),_0x37724f&&this['setConfigDetails'](_0x37724f),_0x3973ff&&this[_0x1aa2ac(0xf6)](_0x3973ff[_0x1aa2ac(0x125)],_0x3973ff['accessKey']);}static async[a85_0x5e394e(0x106)](_0x106669,_0x4e3fca){const _0x52de23=a85_0x5e394e,_0x2712c9={'dnRCy':function(_0xe30af2,_0x4e0343){return _0xe30af2(_0x4e0343);},'KsOGs':function(_0x35dd89,_0x5be7ba){return _0x35dd89(_0x5be7ba);},'tBWaW':_0x52de23(0xf0),'jCrNV':function(_0x16386d){return _0x16386d();},'DfgkB':_0x52de23(0x11b),'nqHNS':_0x52de23(0xe2),'vgdrS':'true','bdpFh':function(_0x5c0106,_0x4e6578,_0x4f66eb,_0x24f67a,_0x330976,_0x4076df){return _0x5c0106(_0x4e6578,_0x4f66eb,_0x24f67a,_0x330976,_0x4076df);},'nEOtF':_0x52de23(0x109)};this[_0x52de23(0x100)]();if(!this[_0x52de23(0x134)])return _0x2712c9[_0x52de23(0x103)](debug,_0x2712c9['tBWaW']);this[_0x52de23(0x127)](),this[_0x52de23(0x124)]();const _0x54912e={'hashed_id':process['env'][_0x52de23(0xf2)],'observability_version':{'sdkVersion':_0x2712c9['jCrNV'](getAgentVersion),'frameworkName':this['frameworkDetails'][_0x52de23(0x126)],'frameworkVersion':this['frameworkDetails'][_0x52de23(0xe7)]},'exception':{'error':_0x106669[_0x52de23(0xe0)](),'stackTrace':_0x4e3fca},'config':this[_0x52de23(0xfc)]},_0x366032=_0x2712c9[_0x52de23(0xd7)],_0x1aeb43={};_0x1aeb43[_0x52de23(0x125)]=this[_0x52de23(0x134)][_0x52de23(0x125)],_0x1aeb43['password']=this[_0x52de23(0x134)]['accessKey'];const _0x15e652={};_0x15e652[_0x52de23(0xdd)]=_0x2712c9[_0x52de23(0x129)],_0x15e652['X-BSTACK-TESTOPS']=_0x2712c9[_0x52de23(0x128)];const _0x8bc575={};_0x8bc575[_0x52de23(0x107)]=_0x1aeb43,_0x8bc575[_0x52de23(0xf1)]=_0x15e652;const _0x331036=_0x8bc575;_0x2712c9[_0x52de23(0xf5)](nodeRequest,_0x2712c9['nEOtF'],_0x366032,_0x54912e,_0x331036,![])[_0x52de23(0x120)](_0x306d76=>{const _0x2e7d86=_0x52de23;_0x2712c9['dnRCy'](debug,_0x2e7d86(0x123)+JSON[_0x2e7d86(0x11c)](_0x306d76));})[_0x52de23(0x12a)](_0x4fb951=>{const _0x258687=_0x52de23;_0x2712c9['KsOGs'](debug,'[Crash_Report_Upload]\x20Failed\x20due\x20to\x20'+util[_0x258687(0x105)](_0x4fb951));});}static[a85_0x5e394e(0xe1)](_0x2b04bf){const _0x329702=a85_0x5e394e,_0x1eb7ef={};_0x1eb7ef[_0x329702(0x116)]=_0x329702(0x11d),_0x1eb7ef[_0x329702(0x113)]='username',_0x1eb7ef[_0x329702(0x11f)]=_0x329702(0x12e),_0x1eb7ef[_0x329702(0xf9)]='accessKey',_0x1eb7ef[_0x329702(0xda)]='password',_0x1eb7ef[_0x329702(0xf4)]=function(_0x4f7b17,_0x413a96){return _0x4f7b17===_0x413a96;},_0x1eb7ef[_0x329702(0xd5)]='object';const _0x40db80=_0x1eb7ef;if(!_0x2b04bf)return;const _0x598926=[_0x40db80['egcGL'],_0x40db80[_0x329702(0x113)],_0x40db80[_0x329702(0x11f)],_0x40db80[_0x329702(0xf9)],_0x40db80[_0x329702(0xda)]];for(const _0x58fa20 in _0x2b04bf){if(_0x598926[_0x329702(0xd4)](_0x58fa20[_0x329702(0x108)]()))delete _0x2b04bf[_0x58fa20];else _0x40db80[_0x329702(0xf4)](typeof _0x2b04bf[_0x58fa20],_0x40db80['YdXnB'])&&this['recursivelyDeletePIIKeysFromObject'](_0x2b04bf[_0x58fa20]);}}static['filterPII'](_0x24b4f8){const _0x5f10b5=a85_0x5e394e,_0x56fbaa=JSON[_0x5f10b5(0x117)](JSON['stringify'](_0x24b4f8));return this[_0x5f10b5(0xe1)](_0x56fbaa),_0x56fbaa;}}const a85_0xdb5a7d={};function a85_0x9040(_0x450b79,_0x1ca50b){const _0x1d8ee0=a85_0x1d8e();return a85_0x9040=function(_0x9040a0,_0x4fee44){_0x9040a0=_0x9040a0-0xd3;let _0x4ddbcd=_0x1d8ee0[_0x9040a0];return _0x4ddbcd;},a85_0x9040(_0x450b79,_0x1ca50b);}a85_0xdb5a7d[a85_0x5e394e(0xdf)]=o11yErrorHandler,a85_0xdb5a7d['o11yClassErrorHandler']=o11yClassErrorHandler,a85_0xdb5a7d['CrashReporter']=CrashReporter,module[a85_0x5e394e(0x11a)]=a85_0xdb5a7d;
1
+ const a85_0x105f8b=a85_0x36ab;function a85_0x36ab(_0x3768e2,_0xe2c570){const _0x51228b=a85_0x5122();return a85_0x36ab=function(_0x36abec,_0x3c7331){_0x36abec=_0x36abec-0x6f;let _0x517e34=_0x51228b[_0x36abec];return _0x517e34;},a85_0x36ab(_0x3768e2,_0xe2c570);}(function(_0x557ca3,_0x207247){const _0x5f0546=a85_0x36ab,_0x17f4ca=_0x557ca3();while(!![]){try{const _0x4bc2c3=-parseInt(_0x5f0546(0xd6))/0x1*(parseInt(_0x5f0546(0x7f))/0x2)+parseInt(_0x5f0546(0x76))/0x3+parseInt(_0x5f0546(0xa5))/0x4*(-parseInt(_0x5f0546(0xc3))/0x5)+-parseInt(_0x5f0546(0x9d))/0x6*(parseInt(_0x5f0546(0xd0))/0x7)+parseInt(_0x5f0546(0xba))/0x8*(parseInt(_0x5f0546(0xbc))/0x9)+parseInt(_0x5f0546(0x88))/0xa*(-parseInt(_0x5f0546(0xc6))/0xb)+parseInt(_0x5f0546(0x7e))/0xc*(parseInt(_0x5f0546(0xc2))/0xd);if(_0x4bc2c3===_0x207247)break;else _0x17f4ca['push'](_0x17f4ca['shift']());}catch(_0x5510e0){_0x17f4ca['push'](_0x17f4ca['shift']());}}}(a85_0x5122,0xdead5));function a85_0x5122(){const _0x1e461f=['then','username','[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','BmctX','format','getFramework','function','defineProperty','2156930lStvTH','initialize','\x20--\x20','key','Zvdrf','stringify','.\x20Error\x20-\x20','length','CREDENTIALS_FOR_CRASH_REPORTING','Error\x20in\x20executing\x20','depth',',\x20PID\x20-\x20','getPerformance','WMAlm','POST','forEach','oTVfh','frameworkVersion','Finished\x20::\x20','env','setCredentials','6jJopKr','exports','UTcvV','accessKey','frameworkDetails','/api/v1/analytics','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','setConfigDetails','2497788nWRjej','Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20','keys','constructor','gFTiA','qqHTH','includes','parse','YMbPK','Started\x20::\x20','CrashReporter','gUhud','getOwnPropertyNames','rrkwZ','captureError','setFrameworkDetails','application/json','USER_CONFIG_FOR_REPORTING','X-BSTACK-TESTOPS',',\x20Argument\x20-\x20','toString','1287080pJxINj','timerify','45PBSsGK','wzXHI','Content-Type','QeueB','BzcQX','AGLSM','13fIfIDv','10jqjHyy','credentials','NhWNU','88jaPOpL','.\x20Args\x20-\x20','object','vEesv','password','recursivelyDeletePIIKeysFromObject','BROWSERSTACK_O11Y_PERF_MEASUREMENT','kIXGa','inspect','BeQpX','3718050BQyIML','WUfMx','UcYzo','wUzhj','filterPII','prototype','347222YmxNhs','XCTeF','o11yErrorHandler','jxMLM','wRhWz','stack','headers','bcbSq','gZJXh','getCredentials','user','setAllDetails','hTohN','MilzH','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','1474641JKiaPY','name','catch','RGDsm','frameworkName','getConfig','userConfig','SXlCj','45793740qGONFQ','4QcqKoc'];a85_0x5122=function(){return _0x1e461f;};return a85_0x5122();}const util=require('util'),PerformanceTester=require('../performance/performance-tester'),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require('./utils'),{getAgentVersion,nestedKeyValue}=require('../helper'),o11yErrorHandler=(_0x1f0275,_0x4baccd='',_0x260848=[''],_0x2e0082=![])=>{const _0x48b2be={'BmctX':function(_0x49bce3,_0x3d8974){return _0x49bce3(_0x3d8974);},'vEesv':function(_0x415603,_0x393754,_0x4d5412){return _0x415603(_0x393754,_0x4d5412);},'QaUWm':function(_0x523e47,_0x468690){return _0x523e47(_0x468690);},'qqHTH':function(_0x3b5e88,_0x22bd3e){return _0x3b5e88 instanceof _0x22bd3e;},'QeueB':function(_0x1717bb,_0x3d63e0,_0x4c3a03,_0x3bd408,_0x535b69){return _0x1717bb(_0x3d63e0,_0x4c3a03,_0x3bd408,_0x535b69);}};return function(..._0xc9ba6d){const _0x190fdc=a85_0x36ab;try{let _0x5d7162=_0x1f0275;process['env'][_0x190fdc(0xcc)]&&(_0x5d7162=PerformanceTester[_0x190fdc(0x94)]()[_0x190fdc(0xbb)](_0x5d7162));_0x2e0082&&_0x48b2be[_0x190fdc(0x83)](trace,_0x190fdc(0xae)+_0x4baccd+_0x190fdc(0x93)+process['pid']+_0x190fdc(0xb8)+_0x48b2be[_0x190fdc(0xc9)](nestedKeyValue,arguments[0x0],_0x260848));const _0x3a13f1=_0x5d7162['apply'](null,arguments);_0x2e0082&&_0x48b2be['QaUWm'](trace,_0x190fdc(0x9a)+_0x4baccd+_0x190fdc(0x93)+process['pid']+_0x190fdc(0xb8)+_0x48b2be['vEesv'](nestedKeyValue,arguments[0x0],_0x260848));if(_0x48b2be[_0x190fdc(0xaa)](_0x3a13f1,Promise))return _0x3a13f1['catch'](_0x30c090=>processError(_0x30c090,_0x1f0275,_0xc9ba6d,_0x4baccd));return _0x3a13f1;}catch(_0x48b29d){_0x48b2be[_0x190fdc(0xbf)](processError,_0x48b29d,_0x1f0275,_0xc9ba6d,_0x4baccd);}};},o11yClassErrorHandler=(_0x6b529a,_0x3b8fde,_0x3aef9a='')=>{const _0x57f738=a85_0x36ab,_0x455392={'bcbSq':function(_0x5732dd,_0x2b8ab0){return _0x5732dd instanceof _0x2b8ab0;},'VvkOj':function(_0xe32f02,_0x606712,_0x3c8937,_0x5cbc56,_0x410ea7){return _0xe32f02(_0x606712,_0x3c8937,_0x5cbc56,_0x410ea7);},'MilzH':function(_0x4bc1d2,_0x3aaea6){return _0x4bc1d2===_0x3aaea6;},'pWGkV':_0x57f738(0x86),'gUhud':function(_0x470e20,_0x1eb316){return _0x470e20!==_0x1eb316;},'AGLSM':_0x57f738(0xa8),'WUfMx':function(_0x17a139,_0x279a20){return _0x17a139<_0x279a20;}},_0xda1696=_0x6b529a[_0x57f738(0xd5)];if(_0x455392[_0x57f738(0xd1)](Object[_0x57f738(0xb1)](_0xda1696)[_0x57f738(0x8f)],0x2))return _0x6b529a;return Object['getOwnPropertyNames'](_0xda1696)[_0x57f738(0x97)](_0x3d28ff=>{const _0x384a61=_0x57f738,_0x37194c={'UcYzo':function(_0x3d3fe3,_0x37a5e5){const _0x300255=a85_0x36ab;return _0x455392[_0x300255(0xdd)](_0x3d3fe3,_0x37a5e5);},'RGDsm':function(_0x35a3e9,_0x447110,_0x50ae67,_0x1a3b47,_0x1634b3){return _0x455392['VvkOj'](_0x35a3e9,_0x447110,_0x50ae67,_0x1a3b47,_0x1634b3);}};if(!(_0x3b8fde&&_0x3b8fde[_0x384a61(0xab)](_0x3d28ff)))return;const _0x35b2f3=_0xda1696[_0x3d28ff];_0x455392[_0x384a61(0x74)](typeof _0x35b2f3,_0x455392['pWGkV'])&&_0x455392[_0x384a61(0xb0)](_0x3d28ff,_0x455392[_0x384a61(0xc1)])&&Object[_0x384a61(0x87)](_0xda1696,_0x3d28ff,{'writable':!![],'value':function(..._0x4e7027){const _0x243c9c=_0x384a61;try{const _0x5bcf2a=(process['env'][_0x243c9c(0xcc)]?PerformanceTester[_0x243c9c(0x94)]()[_0x243c9c(0xbb)](_0x35b2f3):_0x35b2f3)['call'](this,..._0x4e7027);if(_0x37194c[_0x243c9c(0xd2)](_0x5bcf2a,Promise))return _0x5bcf2a[_0x243c9c(0x78)](_0x5700e3=>processError(_0x5700e3,_0x35b2f3,_0x4e7027,_0x3aef9a));return _0x5bcf2a;}catch(_0x356654){_0x37194c[_0x243c9c(0x79)](processError,_0x356654,_0x35b2f3,_0x4e7027,_0x3aef9a);}}});}),_0x6b529a;};function processError(_0x53ec3e,_0x1af543,_0x5afe58,_0x2684b1){const _0x3c063a=a85_0x36ab,_0x1d2a4d={'rrkwZ':function(_0x275f22,_0x47ad5b){return _0x275f22(_0x47ad5b);}};_0x1d2a4d[_0x3c063a(0xb2)](debug,'Error\x20in\x20executing\x20'+_0x1af543['name']+_0x3c063a(0x8a)+_0x2684b1+_0x3c063a(0x8e)+util[_0x3c063a(0x84)](_0x53ec3e)+'.\x20Args\x20-\x20'+_0x5afe58+'.'),PerformanceTester[_0x3c063a(0xb3)](_0x53ec3e);let _0x499ebe;try{_0x499ebe=JSON['stringify'](_0x5afe58);}catch(_0x5bb98d){const _0x158610={};_0x158610[_0x3c063a(0x92)]=0x2,_0x499ebe=util[_0x3c063a(0xce)](_0x5afe58,_0x158610);}CrashReporter['uploadCrashReport'](_0x3c063a(0x91)+_0x1af543[_0x3c063a(0x77)]+_0x3c063a(0x8a)+_0x2684b1+'.\x20Error\x20-\x20'+_0x53ec3e+_0x3c063a(0xc7)+_0x499ebe+'.',_0x53ec3e&&_0x53ec3e[_0x3c063a(0xdb)]);}class CrashReporter{static [a85_0x105f8b(0x7c)]={};static [a85_0x105f8b(0xc4)];static [a85_0x105f8b(0xa1)]={};static[a85_0x105f8b(0x89)](_0x14ff41,_0x16eac5,_0x82780c=null){const _0x279735=a85_0x105f8b,_0x120d71={'wRhWz':function(_0x29256f,_0xbb3cfd){return _0x29256f(_0xbb3cfd);},'kIXGa':function(_0x2b8a55,_0x54c1f9){return _0x2b8a55(_0x54c1f9);},'WMAlm':function(_0x1cc3bf,_0x13f90e){return _0x1cc3bf(_0x13f90e);}},_0x539a57=_0x14ff41[_0x279735(0x7a)],_0xe44d4b=_0x14ff41['frameworkVersion'];!_0x82780c&&(_0x82780c=_0x120d71[_0x279735(0xda)](getBrowserStackConfig,_0x539a57));!_0xe44d4b&&_0x120d71[_0x279735(0xcd)](getFrameworkVersion,_0x539a57);const _0x175770={};_0x175770[_0x279735(0x7a)]=_0x539a57,_0x175770['frameworkVersion']=_0xe44d4b,this[_0x279735(0x72)](_0x175770,_0x16eac5,_0x120d71[_0x279735(0x95)](getUserCredentials,_0x82780c));}static[a85_0x105f8b(0x9c)](_0x53f608,_0x47c99f){const _0x2508d5=a85_0x105f8b,_0x3db5a6={};_0x3db5a6[_0x2508d5(0x81)]=_0x53f608,_0x3db5a6[_0x2508d5(0xa0)]=_0x47c99f,this[_0x2508d5(0xc4)]=_0x3db5a6,process['env'][_0x2508d5(0x90)]=JSON[_0x2508d5(0x8d)](this[_0x2508d5(0xc4)]);}static['getCredentials'](){const _0x2cb1bb=a85_0x105f8b,_0x5c92d8={'gZJXh':function(_0x252900,_0x5045a4){return _0x252900(_0x5045a4);}};if(!this[_0x2cb1bb(0xc4)]&&process['env']['CREDENTIALS_FOR_CRASH_REPORTING'])try{this[_0x2cb1bb(0xc4)]=JSON[_0x2cb1bb(0xac)](process[_0x2cb1bb(0x9b)][_0x2cb1bb(0x90)]);}catch(_0x9d648c){_0x5c92d8[_0x2cb1bb(0x6f)](debug,_0x2cb1bb(0x75)+_0x9d648c[_0x2cb1bb(0xb9)]());}return this[_0x2cb1bb(0xc4)];}static[a85_0x105f8b(0xa4)](_0x174d33){const _0x236b8e=a85_0x105f8b;this['userConfig']=this[_0x236b8e(0xd4)](_0x174d33),process[_0x236b8e(0x9b)][_0x236b8e(0xb6)]=JSON['stringify'](this[_0x236b8e(0x7c)]);}static[a85_0x105f8b(0x7b)](){const _0x16837b=a85_0x105f8b,_0x213f4f={'NhWNU':function(_0x2ee5e9,_0x104b58){return _0x2ee5e9===_0x104b58;},'wUzhj':function(_0x4cecb4,_0x1e4941){return _0x4cecb4(_0x1e4941);}};if(_0x213f4f[_0x16837b(0xc5)](Object[_0x16837b(0xa7)](this['userConfig'])[_0x16837b(0x8f)],0x0)&&process['env'][_0x16837b(0xb6)])try{this['userConfig']=JSON[_0x16837b(0xac)](process[_0x16837b(0x9b)]['USER_CONFIG_FOR_REPORTING']);}catch(_0x5704c3){_0x213f4f[_0x16837b(0xd3)](debug,_0x16837b(0xa6)+_0x5704c3['toString']()),this[_0x16837b(0x7c)]={};}return this[_0x16837b(0x7c)];}static[a85_0x105f8b(0xb4)](_0x5ed9d4){const _0x16c9b7=a85_0x105f8b;this[_0x16c9b7(0xa1)]=_0x5ed9d4,process['env'][_0x16c9b7(0xa3)]=JSON[_0x16c9b7(0x8d)](this['frameworkDetails']);}static[a85_0x105f8b(0x85)](){const _0x452bbd=a85_0x105f8b,_0x11601d={'YMbPK':function(_0x4fc952,_0x4ebfa6){return _0x4fc952===_0x4ebfa6;},'SXlCj':function(_0x3f798b,_0x57516a){return _0x3f798b(_0x57516a);}};if(_0x11601d[_0x452bbd(0xad)](Object['keys'](this['frameworkDetails'])['length'],0x0)&&process[_0x452bbd(0x9b)]['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS'])try{this[_0x452bbd(0xa1)]=JSON[_0x452bbd(0xac)](process[_0x452bbd(0x9b)][_0x452bbd(0xa3)]);}catch(_0x478e63){_0x11601d[_0x452bbd(0x7d)](debug,_0x452bbd(0x75)+_0x478e63[_0x452bbd(0xb9)]());}return this[_0x452bbd(0xa1)];}static[a85_0x105f8b(0x72)](_0x5c9601,_0x4fcc6a,_0x3ced8d){const _0xba0c81=a85_0x105f8b;_0x5c9601&&this[_0xba0c81(0xb4)](_0x5c9601),_0x4fcc6a&&this[_0xba0c81(0xa4)](_0x4fcc6a),_0x3ced8d&&this[_0xba0c81(0x9c)](_0x3ced8d['username'],_0x3ced8d[_0xba0c81(0xa0)]);}static async['uploadCrashReport'](_0x10d993,_0x3560a9){const _0x587a6d=a85_0x105f8b,_0x4b229f={'hTohN':function(_0x2c9322,_0x25e572){return _0x2c9322(_0x25e572);},'KqfhZ':_0x587a6d(0x82),'gFTiA':function(_0x43b80d){return _0x43b80d();},'pEBZa':_0x587a6d(0xa2),'eHHQf':_0x587a6d(0xb5),'aWLfN':'true','dbEUH':function(_0x4499c7,_0x50808a,_0x5dbbd2,_0x42c141,_0x377d79,_0x3da25f){return _0x4499c7(_0x50808a,_0x5dbbd2,_0x42c141,_0x377d79,_0x3da25f);},'oTVfh':_0x587a6d(0x96)};this[_0x587a6d(0x70)]();if(!this[_0x587a6d(0xc4)])return _0x4b229f['hTohN'](debug,_0x4b229f['KqfhZ']);this[_0x587a6d(0x7b)](),this['getFramework']();const _0x171f25={'hashed_id':process[_0x587a6d(0x9b)]['BS_TESTOPS_BUILD_HASHED_ID'],'observability_version':{'sdkVersion':_0x4b229f[_0x587a6d(0xa9)](getAgentVersion),'frameworkName':this[_0x587a6d(0xa1)][_0x587a6d(0x7a)],'frameworkVersion':this[_0x587a6d(0xa1)][_0x587a6d(0x99)]},'exception':{'error':_0x10d993['toString'](),'stackTrace':_0x3560a9},'config':this['userConfig']},_0x33d31d=_0x4b229f['pEBZa'],_0x1d8e98={};_0x1d8e98['username']=this[_0x587a6d(0xc4)][_0x587a6d(0x81)],_0x1d8e98[_0x587a6d(0xca)]=this[_0x587a6d(0xc4)][_0x587a6d(0xa0)];const _0xc51f7f={};_0xc51f7f[_0x587a6d(0xbe)]=_0x4b229f['eHHQf'],_0xc51f7f[_0x587a6d(0xb7)]=_0x4b229f['aWLfN'];const _0x52bbdb={};_0x52bbdb['auth']=_0x1d8e98,_0x52bbdb[_0x587a6d(0xdc)]=_0xc51f7f;const _0x490d0d=_0x52bbdb;_0x4b229f['dbEUH'](nodeRequest,_0x4b229f[_0x587a6d(0x98)],_0x33d31d,_0x171f25,_0x490d0d,![])[_0x587a6d(0x80)](_0x176d58=>{const _0x43233e=_0x587a6d;_0x4b229f[_0x43233e(0x73)](debug,'[Crash_Report_Upload]\x20Success\x20response:\x20'+JSON[_0x43233e(0x8d)](_0x176d58));})[_0x587a6d(0x78)](_0x5f232e=>{const _0x2827cb=_0x587a6d;_0x4b229f[_0x2827cb(0x73)](debug,'[Crash_Report_Upload]\x20Failed\x20due\x20to\x20'+util[_0x2827cb(0x84)](_0x5f232e));});}static['recursivelyDeletePIIKeysFromObject'](_0x19c396){const _0x234a7c=a85_0x105f8b,_0x409ab2={};_0x409ab2[_0x234a7c(0x9f)]=_0x234a7c(0x71),_0x409ab2[_0x234a7c(0xcf)]='username',_0x409ab2[_0x234a7c(0xbd)]=_0x234a7c(0x8b),_0x409ab2['BzcQX']=_0x234a7c(0xa0),_0x409ab2['Zvdrf']=_0x234a7c(0xca),_0x409ab2[_0x234a7c(0xd7)]=function(_0x507cdf,_0x52bbf2){return _0x507cdf===_0x52bbf2;},_0x409ab2[_0x234a7c(0xd9)]=_0x234a7c(0xc8);const _0x5bbe7d=_0x409ab2;if(!_0x19c396)return;const _0x3d458a=[_0x5bbe7d[_0x234a7c(0x9f)],_0x5bbe7d[_0x234a7c(0xcf)],_0x5bbe7d[_0x234a7c(0xbd)],_0x5bbe7d[_0x234a7c(0xc0)],_0x5bbe7d[_0x234a7c(0x8c)]];for(const _0x226efd in _0x19c396){if(_0x3d458a['includes'](_0x226efd['toLowerCase']()))delete _0x19c396[_0x226efd];else _0x5bbe7d[_0x234a7c(0xd7)](typeof _0x19c396[_0x226efd],_0x5bbe7d[_0x234a7c(0xd9)])&&this[_0x234a7c(0xcb)](_0x19c396[_0x226efd]);}}static['filterPII'](_0xfd64b2){const _0xc25b13=a85_0x105f8b,_0x1069fd=JSON[_0xc25b13(0xac)](JSON[_0xc25b13(0x8d)](_0xfd64b2));return this[_0xc25b13(0xcb)](_0x1069fd),_0x1069fd;}}const a85_0x55fcba={};a85_0x55fcba[a85_0x105f8b(0xd8)]=o11yErrorHandler,a85_0x55fcba['o11yClassErrorHandler']=o11yClassErrorHandler,a85_0x55fcba[a85_0x105f8b(0xaf)]=CrashReporter,module[a85_0x105f8b(0x9e)]=a85_0x55fcba;
@@ -1 +1 @@
1
- const a86_0x565e6d=a86_0x5872;(function(_0x2259b9,_0x13b292){const _0x53316e=a86_0x5872,_0x3cb60a=_0x2259b9();while(!![]){try{const _0x341980=-parseInt(_0x53316e(0x1bd))/0x1*(parseInt(_0x53316e(0x186))/0x2)+-parseInt(_0x53316e(0x1c9))/0x3*(parseInt(_0x53316e(0x1ad))/0x4)+-parseInt(_0x53316e(0x188))/0x5+-parseInt(_0x53316e(0x18b))/0x6*(-parseInt(_0x53316e(0x1c7))/0x7)+-parseInt(_0x53316e(0x17d))/0x8+-parseInt(_0x53316e(0x185))/0x9*(parseInt(_0x53316e(0x179))/0xa)+parseInt(_0x53316e(0x1ab))/0xb*(parseInt(_0x53316e(0x161))/0xc);if(_0x341980===_0x13b292)break;else _0x3cb60a['push'](_0x3cb60a['shift']());}catch(_0x3141ad){_0x3cb60a['push'](_0x3cb60a['shift']());}}}(a86_0x91b8,0x932ab));function a86_0x5872(_0x353304,_0x58730f){const _0x91b81b=a86_0x91b8();return a86_0x5872=function(_0x58722e,_0x2102dc){_0x58722e=_0x58722e-0x160;let _0x1dc1c1=_0x91b81b[_0x58722e];return _0x1dc1c1;},a86_0x5872(_0x353304,_0x58730f);}const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require(a86_0x565e6d(0x192)),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require('./utils'),{nestedKeyValue}=require('../helper'),util=require(a86_0x565e6d(0x1a5));function a86_0x91b8(){const _0x4a6176=['mjvXj','PBdbM','BATCH_EVENT_TYPES','pendingUploads','xfXzd','lqVHC','\x20event\x20successful\x20for\x20events\x20','Remaining\x20Queue\x20Length\x20-\x20','shutdown','HookRunStarted','YOvpZ','bnzUz','1382CnyGkE','byteLength','data','\x20--\x20','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','queue','split','nRpLo','GNeeX','event_type','238SRnzRx','api/v1/batch','283941QUQHDZ','logs','TEST_SCREENSHOT','uIQtI','statusText','proceedWithData','RESETTING','resetEventBatchPolling','PxMpE','HookRunFinished','Processing\x20events.\x20Queue\x20Length\x20-\x20','EXCEPTION\x20IN\x20','enCxH','2220CkeNOr','removeEventBatchPolling','hook_run','Processing\x20batch\x20events\x20for\x20','join','exports','rhuIh','REMOVING','TestRunStarted','slice','GPozV','push','instance','add','DeCwT','max','qtXOQ','includes','.\x20Request\x20Size\x20-\x20','started','PKxWS','Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20','Knbwg','getInstance','10kYIoEU','TestRunSkipped','CcdAr','FDEDl','6672648EeXmIy','eventUrl','Shutdown-Queue','bpSIa','0|5|3|6|4|1|2','upload-attachments','gYmBe','status','3434679AQgtxn','1468gzBOEw','vZfSU','4933600MVchpv','utf8','pollEventBatchInterval','67866mSpIaV','YFbMG','GqlEJ','batchAndPostEvents','HDfDi','tQsay','oErHz','./constants','ClyQY','startEventBatchPolling','shouldProceed','qaQvL','POST','screenshotEventUrl','lEqIy','kind','message','pVIhy','PTUhX','ackXs','response','format','proceedWithUrl','uuid','splice','RzhlL','util','Interval-Queue','length','MAhNL','api/v1/screenshots','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','215501SbpTsZ','uploadPending','8tHxlrW','Zzqay','TestRunFinished','uploadAttachmentUrl'];a86_0x91b8=function(){return _0x4a6176;};return a86_0x91b8();}class RequestQueueHandler{static [a86_0x565e6d(0x16d)];[a86_0x565e6d(0x1b4)]=0x0;constructor(){const _0x418946=a86_0x565e6d,_0x3e632e={};_0x3e632e[_0x418946(0x180)]=_0x418946(0x181),_0x3e632e['lEqIy']='LogCreated',_0x3e632e[_0x418946(0x16f)]='CBTSessionCreated',_0x3e632e[_0x418946(0x1c5)]=_0x418946(0x1af),_0x3e632e[_0x418946(0x187)]=_0x418946(0x17a),_0x3e632e[_0x418946(0x18c)]=_0x418946(0x1d2),_0x3e632e[_0x418946(0x183)]=_0x418946(0x169),_0x3e632e[_0x418946(0x1b2)]=_0x418946(0x1ba),_0x3e632e[_0x418946(0x1bb)]=_0x418946(0x1c8),_0x3e632e['tQsay']=_0x418946(0x182),_0x3e632e[_0x418946(0x171)]=_0x418946(0x1a9);const _0x2d59a7=_0x3e632e,_0x45327e=_0x2d59a7['bpSIa'][_0x418946(0x1c3)]('|');let _0x587322=0x0;while(!![]){switch(_0x45327e[_0x587322++]){case'0':this[_0x418946(0x1c2)]=[];continue;case'1':this[_0x418946(0x1b3)]=[_0x2d59a7[_0x418946(0x199)],_0x2d59a7[_0x418946(0x16f)],_0x2d59a7['GNeeX'],_0x2d59a7[_0x418946(0x187)],_0x2d59a7[_0x418946(0x18c)],_0x2d59a7['gYmBe'],_0x2d59a7['PBdbM']];continue;case'2':this['pollEventBatchInterval']=null;continue;case'3':this[_0x418946(0x17e)]=_0x2d59a7[_0x418946(0x1bb)];continue;case'4':this['uploadAttachmentUrl']=_0x2d59a7[_0x418946(0x190)];continue;case'5':this[_0x418946(0x174)]=![];continue;case'6':this['screenshotEventUrl']=_0x2d59a7[_0x418946(0x171)];continue;}break;}}static[a86_0x565e6d(0x178)](){const _0x4bf1c1=a86_0x565e6d;return!RequestQueueHandler['instance']&&(RequestQueueHandler[_0x4bf1c1(0x16d)]=new RequestQueueHandler()),RequestQueueHandler['instance'];}['start']=()=>{const _0x4f9eff=a86_0x565e6d;!this['started']&&(this[_0x4f9eff(0x174)]=!![],this[_0x4f9eff(0x194)]());};[a86_0x565e6d(0x16e)]=_0xaa57f9=>{const _0x8ebbe8=a86_0x565e6d,_0x1ec4b6={'pVIhy':function(_0x585099,_0x3feeb0){return _0x585099===_0x3feeb0;},'CcdAr':_0x8ebbe8(0x1cb),'JlKxV':function(_0x4a1ba4,_0x1b2641){return _0x4a1ba4>_0x1b2641;},'PTUhX':'TEST_ATTACHMENT','rhuIh':function(_0xf247f0,_0x5b30de){return _0xf247f0!==_0x5b30de;},'PKxWS':_0x8ebbe8(0x1af),'enCxH':function(_0x22e7e8,_0x1f0486){return _0x22e7e8(_0x1f0486);},'qaQvL':_0x8ebbe8(0x1c1)};if(this[_0x8ebbe8(0x1b3)][_0x8ebbe8(0x172)](_0xaa57f9[_0x8ebbe8(0x1c6)])){if(_0xaa57f9[_0x8ebbe8(0x1ca)]&&_0xaa57f9['logs'][0x0]&&_0x1ec4b6[_0x8ebbe8(0x19c)](_0xaa57f9[_0x8ebbe8(0x1ca)][0x0]['kind'],_0x1ec4b6[_0x8ebbe8(0x17b)])){const _0x3c421f={};return _0x3c421f[_0x8ebbe8(0x195)]=!![],_0x3c421f['proceedWithData']=[_0xaa57f9],_0x3c421f['proceedWithUrl']=this[_0x8ebbe8(0x198)],_0x3c421f;}if(_0xaa57f9['logs']&&_0x1ec4b6['JlKxV'](_0xaa57f9['logs'][_0x8ebbe8(0x1a7)],0x0)&&_0x1ec4b6[_0x8ebbe8(0x19c)](_0xaa57f9[_0x8ebbe8(0x1ca)][0x0][_0x8ebbe8(0x19a)],_0x1ec4b6[_0x8ebbe8(0x19d)])&&_0x1ec4b6[_0x8ebbe8(0x167)](_0xaa57f9['event_type'],_0x1ec4b6[_0x8ebbe8(0x175)])){const _0x5a2156={};return _0x5a2156[_0x8ebbe8(0x195)]=!![],_0x5a2156['proceedWithData']=[_0xaa57f9],_0x5a2156[_0x8ebbe8(0x1a1)]=this[_0x8ebbe8(0x1b0)],_0x5a2156;}this[_0x8ebbe8(0x1c2)][_0x8ebbe8(0x16c)](_0xaa57f9);let _0x3acf83=null;const _0x2721c5=this[_0x8ebbe8(0x195)]();_0x2721c5&&(_0x1ec4b6[_0x8ebbe8(0x160)](trace,_0x1ec4b6[_0x8ebbe8(0x196)]),_0x3acf83=this[_0x8ebbe8(0x1c2)][_0x8ebbe8(0x16a)](0x0,BATCH_SIZE),this[_0x8ebbe8(0x1c2)][_0x8ebbe8(0x1a3)](0x0,BATCH_SIZE),this[_0x8ebbe8(0x1d0)]());const _0x2a9f05={};return _0x2a9f05['shouldProceed']=_0x2721c5,_0x2a9f05[_0x8ebbe8(0x1ce)]=_0x3acf83,_0x2a9f05['proceedWithUrl']=this[_0x8ebbe8(0x17e)],_0x2a9f05;}const _0x4c6333={};return _0x4c6333['shouldProceed']=!![],_0x4c6333;};[a86_0x565e6d(0x1b9)]=async()=>{const _0x2e1f8d=a86_0x565e6d,_0x3c9137={'oErHz':_0x2e1f8d(0x168),'ackXs':function(_0x17f858,_0x23ae3b){return _0x17f858>_0x23ae3b;},'bnzUz':_0x2e1f8d(0x17f),'zQIWJ':function(_0x602902,_0x1e4a4d){return _0x602902(_0x1e4a4d);}};await this['uploadPending'](),this[_0x2e1f8d(0x162)](_0x3c9137[_0x2e1f8d(0x191)]);while(_0x3c9137['ackXs'](this[_0x2e1f8d(0x1c2)][_0x2e1f8d(0x1a7)],0x0)){const _0x4e4c99=this['queue'][_0x2e1f8d(0x16a)](0x0,BATCH_SIZE);this[_0x2e1f8d(0x1c2)][_0x2e1f8d(0x1a3)](0x0,BATCH_SIZE),await this[_0x2e1f8d(0x18e)](this[_0x2e1f8d(0x17e)],_0x3c9137[_0x2e1f8d(0x1bc)],_0x4e4c99);}_0x3c9137[_0x2e1f8d(0x19e)](this[_0x2e1f8d(0x1b4)],0x0)&&_0x3c9137['zQIWJ'](debug,_0x2e1f8d(0x176)+this[_0x2e1f8d(0x1b4)]);};[a86_0x565e6d(0x18e)]=async(_0x206730,_0x183ae2,_0x568e77)=>{const _0x1281bc=a86_0x565e6d,_0x5da08e={'Knbwg':function(_0x5efbbb,_0x37ed3d){return _0x5efbbb(_0x37ed3d);},'MAhNL':_0x1281bc(0x189),'NLVml':function(_0x2510ee){return _0x2510ee();},'lqVHC':function(_0x512596,_0x10b0ca,_0x3228d0,_0x17184d,_0x210557){return _0x512596(_0x10b0ca,_0x3228d0,_0x17184d,_0x210557);},'AYpTa':_0x1281bc(0x197),'PxMpE':function(_0x2f02f6,_0x3daddf){return _0x2f02f6-_0x3daddf;},'GqlEJ':function(_0x12eb30,_0x3017ea){return _0x12eb30(_0x3017ea);}};let _0x485c8d='';try{_0x485c8d=_0x568e77['map'](_0x5b822c=>'\x27'+_0x5b822c[_0x1281bc(0x1c6)]+'\x27:'+(nestedKeyValue(_0x5b822c,['test_run','uuid'])||nestedKeyValue(_0x5b822c,[_0x1281bc(0x163),_0x1281bc(0x1a2)])))[_0x1281bc(0x165)](','),_0x5da08e[_0x1281bc(0x177)](debug,_0x1281bc(0x164)+_0x183ae2+_0x1281bc(0x173)+Buffer[_0x1281bc(0x1be)](util[_0x1281bc(0x1a0)]('%j',_0x568e77),_0x5da08e[_0x1281bc(0x1a8)])+'\x20bytes.\x20Events\x20are\x20'+_0x485c8d);}catch(_0x3ea4f8){_0x5da08e[_0x1281bc(0x177)](debug,'Exception\x20in\x20logging\x20batch\x20events\x20--\x20'+util[_0x1281bc(0x1a0)](_0x3ea4f8)+'}');}const _0x341e22={'headers':_0x5da08e['NLVml'](getDefaultHeaders)};try{const _0x3bacd9=await _0x5da08e[_0x1281bc(0x1b6)](nodeRequest,_0x5da08e['AYpTa'],_0x206730,_0x568e77,_0x341e22);if(_0x3bacd9[_0x1281bc(0x1bf)]['error']){const _0x457d09={};_0x457d09[_0x1281bc(0x19b)]=_0x3bacd9[_0x1281bc(0x1bf)]['error'];throw _0x457d09;}else _0x5da08e['Knbwg'](debug,_0x183ae2+_0x1281bc(0x1b7)+_0x485c8d+_0x1281bc(0x1c0)+util[_0x1281bc(0x1a0)]('%j',_0x3bacd9[_0x1281bc(0x1bf)])),this[_0x1281bc(0x1b4)]=Math[_0x1281bc(0x170)](0x0,_0x5da08e[_0x1281bc(0x1d1)](this['pendingUploads'],_0x568e77[_0x1281bc(0x1a7)]));}catch(_0x1fe94e){_0x1fe94e[_0x1281bc(0x19f)]?_0x5da08e[_0x1281bc(0x18d)](debug,_0x1281bc(0x1d4)+_0x183ae2+_0x1281bc(0x1aa)+_0x1fe94e[_0x1281bc(0x19f)][_0x1281bc(0x184)]+'\x20'+_0x1fe94e[_0x1281bc(0x19f)][_0x1281bc(0x1cd)]+'\x20'+util[_0x1281bc(0x1a0)]('%j',_0x1fe94e['response'])):_0x5da08e[_0x1281bc(0x18d)](debug,_0x1281bc(0x1d4)+_0x183ae2+_0x1281bc(0x1aa)+(_0x1fe94e[_0x1281bc(0x19b)]||_0x1fe94e)),this[_0x1281bc(0x1b4)]=Math[_0x1281bc(0x170)](0x0,_0x5da08e[_0x1281bc(0x1d1)](this[_0x1281bc(0x1b4)],_0x568e77[_0x1281bc(0x1a7)]));}};[a86_0x565e6d(0x194)]=()=>{const _0x39a6f7=a86_0x565e6d,_0x45606b={'FDEDl':function(_0x387636,_0x1c92aa){return _0x387636>_0x1c92aa;},'xfXzd':function(_0x551ae4,_0x1458ed){return _0x551ae4(_0x1458ed);},'nRpLo':_0x39a6f7(0x1a6),'BzwuI':function(_0x14540b,_0x3546db){return _0x14540b(_0x3546db);},'HDfDi':function(_0x2f3517,_0x1a134b,_0x41a3cd){return _0x2f3517(_0x1a134b,_0x41a3cd);}};this[_0x39a6f7(0x18a)]=_0x45606b[_0x39a6f7(0x18f)](setInterval,async()=>{const _0x283d75=_0x39a6f7;if(_0x45606b[_0x283d75(0x17c)](this[_0x283d75(0x1c2)][_0x283d75(0x1a7)],0x0)){_0x45606b[_0x283d75(0x1b5)](trace,_0x283d75(0x1d3)+this[_0x283d75(0x1c2)][_0x283d75(0x1a7)]);const _0x1abe44=this[_0x283d75(0x1c2)][_0x283d75(0x16a)](0x0,BATCH_SIZE);this[_0x283d75(0x1c2)][_0x283d75(0x1a3)](0x0,BATCH_SIZE),await this[_0x283d75(0x18e)](this[_0x283d75(0x17e)],_0x45606b[_0x283d75(0x1c4)],_0x1abe44),_0x45606b['BzwuI'](trace,_0x283d75(0x1b8)+this[_0x283d75(0x1c2)][_0x283d75(0x1a7)]);}},BATCH_INTERVAL);};[a86_0x565e6d(0x1d0)]=()=>{const _0x4873b0=a86_0x565e6d,_0x1a8ae2={};_0x1a8ae2['orrho']=_0x4873b0(0x1cf);const _0x8551bb=_0x1a8ae2;this[_0x4873b0(0x162)](_0x8551bb['orrho']),this[_0x4873b0(0x194)]();};[a86_0x565e6d(0x162)]=_0x374964=>{const _0x897ef4=a86_0x565e6d,_0x285f94={'uIQtI':function(_0x153a9a,_0x10e8c9){return _0x153a9a(_0x10e8c9);},'Zzqay':function(_0x223dd1,_0x307597){return _0x223dd1===_0x307597;},'ClyQY':_0x897ef4(0x168)};this['pollEventBatchInterval']&&(_0x285f94[_0x897ef4(0x1cc)](clearInterval,this[_0x897ef4(0x18a)]),this[_0x897ef4(0x18a)]=null,_0x285f94[_0x897ef4(0x1ae)](_0x374964,_0x285f94[_0x897ef4(0x193)])&&(this[_0x897ef4(0x174)]=![]));};[a86_0x565e6d(0x195)]=()=>{const _0x19d542=a86_0x565e6d,_0x10cbf3={};_0x10cbf3['GPozV']=function(_0x2fdfa4,_0x33a3ca){return _0x2fdfa4>=_0x33a3ca;};const _0x2ba0f1=_0x10cbf3;return _0x2ba0f1[_0x19d542(0x16b)](this[_0x19d542(0x1c2)][_0x19d542(0x1a7)],BATCH_SIZE);};async[a86_0x565e6d(0x1ac)](_0x57d57b=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x5e1dc9=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x5427ce=a86_0x565e6d,_0x89dac0={'mjvXj':function(_0x5a6cf0,_0x47fe64){return _0x5a6cf0<=_0x47fe64;},'RzhlL':function(_0x2f159a,_0x507eb1){return _0x2f159a<=_0x507eb1;},'SCnQN':function(_0x3c6e97,_0xf2d737){return _0x3c6e97(_0xf2d737);},'Abmxf':function(_0x40db0c,_0x31a807){return _0x40db0c-_0x31a807;}};if(_0x89dac0[_0x5427ce(0x1b1)](this[_0x5427ce(0x1b4)],0x0)||_0x89dac0[_0x5427ce(0x1a4)](_0x57d57b,0x0))return;return await _0x89dac0['SCnQN'](sleep,_0x5e1dc9),this[_0x5427ce(0x1ac)](_0x89dac0['Abmxf'](_0x57d57b,_0x5e1dc9));}}module[a86_0x565e6d(0x166)]=RequestQueueHandler;
1
+ function a86_0x3d07(_0x399e3a,_0x14d0e4){const _0x2f9420=a86_0x2f94();return a86_0x3d07=function(_0x3d07e6,_0x145f62){_0x3d07e6=_0x3d07e6-0x13e;let _0x882633=_0x2f9420[_0x3d07e6];return _0x882633;},a86_0x3d07(_0x399e3a,_0x14d0e4);}const a86_0x485998=a86_0x3d07;function a86_0x2f94(){const _0x180814=['./constants','tMQeJ','resetEventBatchPolling','wYfFh','start','mCvAK','\x20--\x20','qQham','hook_run','kIyEM','uuid','.\x20Request\x20Size\x20-\x20','max','byteLength','ZcevY','Processing\x20batch\x20events\x20for\x20','BATCH_EVENT_TYPES','aHHJI','POST','lmiiD','nQnVh','pollEventBatchInterval','eSDCX','TEST_ATTACHMENT','Shutdown-Queue','screenshotEventUrl','queue','splice','KtshV','lOIMR','113134uLICNK','9670yVzEJk','\x20bytes.\x20Events\x20are\x20','164772xeHLmo','81SITblJ','eventUrl','api/v1/batch','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','pfTXW','YOmRv','message','batchAndPostEvents','join','uYIAw','WvGMD','554708gfRuWr','removeEventBatchPolling','kaGSV','util','api/v1/screenshots','proceedWithUrl','shouldProceed','EXCEPTION\x20IN\x20','proceedWithData','DbYJX','HookRunFinished','TestRunFinished','RESETTING','dVJJa','length','238870dWvWDj','../helper','LBDdv','HookRunStarted','fbfeg','Xrhhr','map','HHDiN','statusText','cGMzL','kOyWG','./utils','eBJzx','slice','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','exports','kind','kbzLK','lfZFv','CUoCl','TEST_SCREENSHOT','pendingUploads','16DHevPW','uploadAttachmentUrl','uploadPending','utf8','ydJHH','REMOVING','48uLtSlD','eIOyM','logs','add','event_type','test_run','kHgnW','157745MnzryV','SiGee','status','9ExaQhy','Processing\x20events.\x20Queue\x20Length\x20-\x20','gwmOk','haOHS','startEventBatchPolling','instance','response','started','TestRunSkipped','absRV','Remaining\x20Queue\x20Length\x20-\x20','GilqK','1698150GnyYXn','format','wVAEi','error','split','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','getInstance'];a86_0x2f94=function(){return _0x180814;};return a86_0x2f94();}(function(_0x121e9d,_0x34ac2f){const _0x161a3a=a86_0x3d07,_0x8532ca=_0x121e9d();while(!![]){try{const _0x7f3dfa=-parseInt(_0x161a3a(0x195))/0x1+parseInt(_0x161a3a(0x1b0))/0x2*(parseInt(_0x161a3a(0x161))/0x3)+-parseInt(_0x161a3a(0x151))/0x4*(parseInt(_0x161a3a(0x15e))/0x5)+parseInt(_0x161a3a(0x16d))/0x6+-parseInt(_0x161a3a(0x192))/0x7*(parseInt(_0x161a3a(0x157))/0x8)+parseInt(_0x161a3a(0x196))/0x9*(-parseInt(_0x161a3a(0x193))/0xa)+-parseInt(_0x161a3a(0x1a1))/0xb;if(_0x7f3dfa===_0x34ac2f)break;else _0x8532ca['push'](_0x8532ca['shift']());}catch(_0x4f06ea){_0x8532ca['push'](_0x8532ca['shift']());}}}(a86_0x2f94,0x2f6d3));const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require(a86_0x485998(0x174)),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require(a86_0x485998(0x146)),{nestedKeyValue}=require(a86_0x485998(0x1b1)),util=require(a86_0x485998(0x1a4));class RequestQueueHandler{static [a86_0x485998(0x166)];[a86_0x485998(0x150)]=0x0;constructor(){const _0x299883=a86_0x485998,_0x45b57c={};_0x45b57c[_0x299883(0x1aa)]='0|1|5|6|4|3|2',_0x45b57c[_0x299883(0x145)]='LogCreated',_0x45b57c[_0x299883(0x191)]='CBTSessionCreated',_0x45b57c[_0x299883(0x14d)]=_0x299883(0x1ac),_0x45b57c['ydJHH']=_0x299883(0x169),_0x45b57c[_0x299883(0x19f)]=_0x299883(0x1ab),_0x45b57c[_0x299883(0x188)]='TestRunStarted',_0x45b57c[_0x299883(0x1a0)]=_0x299883(0x13e),_0x45b57c[_0x299883(0x187)]='upload-attachments',_0x45b57c['IoLta']=_0x299883(0x198),_0x45b57c[_0x299883(0x163)]=_0x299883(0x1a5);const _0x399690=_0x45b57c,_0x120b0a=_0x399690[_0x299883(0x1aa)][_0x299883(0x171)]('|');let _0x5a155b=0x0;while(!![]){switch(_0x120b0a[_0x5a155b++]){case'0':this[_0x299883(0x18e)]=[];continue;case'1':this[_0x299883(0x168)]=![];continue;case'2':this[_0x299883(0x189)]=null;continue;case'3':this[_0x299883(0x184)]=[_0x399690[_0x299883(0x145)],_0x399690[_0x299883(0x191)],_0x399690['lfZFv'],_0x399690[_0x299883(0x155)],_0x399690[_0x299883(0x19f)],_0x399690[_0x299883(0x188)],_0x399690[_0x299883(0x1a0)]];continue;case'4':this[_0x299883(0x152)]=_0x399690[_0x299883(0x187)];continue;case'5':this[_0x299883(0x197)]=_0x399690['IoLta'];continue;case'6':this[_0x299883(0x18d)]=_0x399690['gwmOk'];continue;}break;}}static[a86_0x485998(0x173)](){const _0x58e9a0=a86_0x485998;return!RequestQueueHandler['instance']&&(RequestQueueHandler[_0x58e9a0(0x166)]=new RequestQueueHandler()),RequestQueueHandler[_0x58e9a0(0x166)];}[a86_0x485998(0x178)]=()=>{const _0x140ea9=a86_0x485998;!this[_0x140ea9(0x168)]&&(this[_0x140ea9(0x168)]=!![],this[_0x140ea9(0x165)]());};[a86_0x485998(0x15a)]=_0x33d720=>{const _0x14984b=a86_0x485998,_0x13a203={'kIyEM':function(_0x3c4f13,_0x251893){return _0x3c4f13===_0x251893;},'aHHJI':_0x14984b(0x14f),'KtshV':function(_0x3b3588,_0x412a99){return _0x3b3588>_0x412a99;},'LBDdv':_0x14984b(0x18b),'eSDCX':function(_0x3f32d1,_0x56c4be){return _0x3f32d1!==_0x56c4be;},'HHDiN':_0x14984b(0x1ac),'ZcevY':function(_0x9d11c3,_0x365435){return _0x9d11c3(_0x365435);},'mCvAK':_0x14984b(0x172)};if(this[_0x14984b(0x184)]['includes'](_0x33d720[_0x14984b(0x15b)])){if(_0x33d720[_0x14984b(0x159)]&&_0x33d720['logs'][0x0]&&_0x13a203['kIyEM'](_0x33d720[_0x14984b(0x159)][0x0][_0x14984b(0x14b)],_0x13a203[_0x14984b(0x185)])){const _0x2eacc3={};return _0x2eacc3[_0x14984b(0x1a7)]=!![],_0x2eacc3[_0x14984b(0x1a9)]=[_0x33d720],_0x2eacc3[_0x14984b(0x1a6)]=this[_0x14984b(0x18d)],_0x2eacc3;}if(_0x33d720[_0x14984b(0x159)]&&_0x13a203[_0x14984b(0x190)](_0x33d720[_0x14984b(0x159)]['length'],0x0)&&_0x13a203[_0x14984b(0x17d)](_0x33d720[_0x14984b(0x159)][0x0]['kind'],_0x13a203[_0x14984b(0x1b2)])&&_0x13a203[_0x14984b(0x18a)](_0x33d720[_0x14984b(0x15b)],_0x13a203[_0x14984b(0x142)])){const _0x39dfdc={};return _0x39dfdc[_0x14984b(0x1a7)]=!![],_0x39dfdc[_0x14984b(0x1a9)]=[_0x33d720],_0x39dfdc['proceedWithUrl']=this[_0x14984b(0x152)],_0x39dfdc;}this[_0x14984b(0x18e)]['push'](_0x33d720);let _0x4b9387=null;const _0x58653e=this[_0x14984b(0x1a7)]();_0x58653e&&(_0x13a203[_0x14984b(0x182)](trace,_0x13a203[_0x14984b(0x179)]),_0x4b9387=this[_0x14984b(0x18e)][_0x14984b(0x148)](0x0,BATCH_SIZE),this['queue'][_0x14984b(0x18f)](0x0,BATCH_SIZE),this['resetEventBatchPolling']());const _0x8a9986={};return _0x8a9986[_0x14984b(0x1a7)]=_0x58653e,_0x8a9986[_0x14984b(0x1a9)]=_0x4b9387,_0x8a9986[_0x14984b(0x1a6)]=this[_0x14984b(0x197)],_0x8a9986;}const _0x418f7b={};return _0x418f7b[_0x14984b(0x1a7)]=!![],_0x418f7b;};['shutdown']=async()=>{const _0x2bd02e=a86_0x485998,_0x18febd={'CUoCl':_0x2bd02e(0x156),'eBJzx':function(_0x55eda5,_0x29c23d){return _0x55eda5>_0x29c23d;},'haOHS':_0x2bd02e(0x18c),'kHgnW':function(_0x2e507c,_0x3d23fd){return _0x2e507c(_0x3d23fd);}};await this[_0x2bd02e(0x153)](),this['removeEventBatchPolling'](_0x18febd[_0x2bd02e(0x14e)]);while(_0x18febd[_0x2bd02e(0x147)](this[_0x2bd02e(0x18e)][_0x2bd02e(0x1af)],0x0)){const _0x47a279=this[_0x2bd02e(0x18e)]['slice'](0x0,BATCH_SIZE);this[_0x2bd02e(0x18e)][_0x2bd02e(0x18f)](0x0,BATCH_SIZE),await this[_0x2bd02e(0x19d)](this[_0x2bd02e(0x197)],_0x18febd[_0x2bd02e(0x164)],_0x47a279);}_0x18febd[_0x2bd02e(0x147)](this[_0x2bd02e(0x150)],0x0)&&_0x18febd[_0x2bd02e(0x15d)](debug,'Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20'+this[_0x2bd02e(0x150)]);};[a86_0x485998(0x19d)]=async(_0x2e9598,_0x531f03,_0x518825)=>{const _0x3ec646=a86_0x485998,_0x2c487a={'wYfFh':function(_0x4810d9,_0x30fdf5){return _0x4810d9(_0x30fdf5);},'Xrhhr':_0x3ec646(0x154),'pfTXW':function(_0x25c42,_0x5dd33e){return _0x25c42(_0x5dd33e);},'kaGSV':function(_0x1e41ed){return _0x1e41ed();},'sKsjq':function(_0x4c2702,_0x1ab34a,_0x31c0b0,_0x29ac6c,_0x18a365){return _0x4c2702(_0x1ab34a,_0x31c0b0,_0x29ac6c,_0x18a365);},'THHKg':_0x3ec646(0x186),'GilqK':function(_0x58e5e1,_0x30a5be){return _0x58e5e1(_0x30a5be);},'absRV':function(_0x14ab0e,_0x99bf43){return _0x14ab0e-_0x99bf43;},'fbfeg':function(_0x102c7d,_0xcd18b1){return _0x102c7d(_0xcd18b1);}};let _0x3e056e='';try{_0x3e056e=_0x518825[_0x3ec646(0x141)](_0x297675=>'\x27'+_0x297675[_0x3ec646(0x15b)]+'\x27:'+(nestedKeyValue(_0x297675,[_0x3ec646(0x15c),_0x3ec646(0x17e)])||nestedKeyValue(_0x297675,[_0x3ec646(0x17c),_0x3ec646(0x17e)])))[_0x3ec646(0x19e)](','),_0x2c487a[_0x3ec646(0x177)](debug,_0x3ec646(0x183)+_0x531f03+_0x3ec646(0x17f)+Buffer[_0x3ec646(0x181)](util[_0x3ec646(0x16e)]('%j',_0x518825),_0x2c487a[_0x3ec646(0x140)])+_0x3ec646(0x194)+_0x3e056e);}catch(_0x2be7e8){_0x2c487a[_0x3ec646(0x19a)](debug,_0x3ec646(0x149)+util[_0x3ec646(0x16e)](_0x2be7e8)+'}');}const _0x8846ee={'headers':_0x2c487a[_0x3ec646(0x1a3)](getDefaultHeaders)};try{const _0x2cd934=await _0x2c487a['sKsjq'](nodeRequest,_0x2c487a['THHKg'],_0x2e9598,_0x518825,_0x8846ee);if(_0x2cd934['data'][_0x3ec646(0x170)]){const _0xe95b1={};_0xe95b1['message']=_0x2cd934['data']['error'];throw _0xe95b1;}else _0x2c487a[_0x3ec646(0x16c)](debug,_0x531f03+'\x20event\x20successful\x20for\x20events\x20'+_0x3e056e+_0x3ec646(0x17a)+util[_0x3ec646(0x16e)]('%j',_0x2cd934['data'])),this[_0x3ec646(0x150)]=Math[_0x3ec646(0x180)](0x0,_0x2c487a[_0x3ec646(0x16a)](this[_0x3ec646(0x150)],_0x518825['length']));}catch(_0x3e57d1){_0x3e57d1[_0x3ec646(0x167)]?_0x2c487a[_0x3ec646(0x13f)](debug,_0x3ec646(0x1a8)+_0x531f03+_0x3ec646(0x199)+_0x3e57d1['response'][_0x3ec646(0x160)]+'\x20'+_0x3e57d1[_0x3ec646(0x167)][_0x3ec646(0x143)]+'\x20'+util['format']('%j',_0x3e57d1[_0x3ec646(0x167)])):_0x2c487a[_0x3ec646(0x177)](debug,_0x3ec646(0x1a8)+_0x531f03+_0x3ec646(0x199)+(_0x3e57d1[_0x3ec646(0x19c)]||_0x3e57d1)),this[_0x3ec646(0x150)]=Math[_0x3ec646(0x180)](0x0,_0x2c487a[_0x3ec646(0x16a)](this[_0x3ec646(0x150)],_0x518825[_0x3ec646(0x1af)]));}};['startEventBatchPolling']=()=>{const _0x18a47f=a86_0x485998,_0x146889={'hMnfr':function(_0xd9a417,_0x575a06){return _0xd9a417>_0x575a06;},'EjWGP':function(_0x31d6b6,_0x255409){return _0x31d6b6(_0x255409);},'cGMzL':'Interval-Queue','qQham':function(_0x597139,_0x388dbb){return _0x597139(_0x388dbb);},'YOmRv':function(_0x28ca31,_0x41f4c1,_0x1ffccb){return _0x28ca31(_0x41f4c1,_0x1ffccb);}};this[_0x18a47f(0x189)]=_0x146889[_0x18a47f(0x19b)](setInterval,async()=>{const _0x243e52=_0x18a47f;if(_0x146889['hMnfr'](this['queue'][_0x243e52(0x1af)],0x0)){_0x146889['EjWGP'](trace,_0x243e52(0x162)+this['queue'][_0x243e52(0x1af)]);const _0x16dea6=this[_0x243e52(0x18e)][_0x243e52(0x148)](0x0,BATCH_SIZE);this[_0x243e52(0x18e)][_0x243e52(0x18f)](0x0,BATCH_SIZE),await this[_0x243e52(0x19d)](this['eventUrl'],_0x146889[_0x243e52(0x144)],_0x16dea6),_0x146889[_0x243e52(0x17b)](trace,_0x243e52(0x16b)+this[_0x243e52(0x18e)][_0x243e52(0x1af)]);}},BATCH_INTERVAL);};[a86_0x485998(0x176)]=()=>{const _0x59bcd7=a86_0x485998,_0x245a6b={};_0x245a6b[_0x59bcd7(0x158)]=_0x59bcd7(0x1ad);const _0x22499b=_0x245a6b;this['removeEventBatchPolling'](_0x22499b['eIOyM']),this[_0x59bcd7(0x165)]();};[a86_0x485998(0x1a2)]=_0x1e745c=>{const _0x96398e=a86_0x485998,_0x3cc899={'WToaq':function(_0x36f114,_0x26c602){return _0x36f114(_0x26c602);},'SWHdQ':function(_0x8cdd07,_0x26783e){return _0x8cdd07===_0x26783e;},'tMQeJ':_0x96398e(0x156)};this[_0x96398e(0x189)]&&(_0x3cc899['WToaq'](clearInterval,this[_0x96398e(0x189)]),this['pollEventBatchInterval']=null,_0x3cc899['SWHdQ'](_0x1e745c,_0x3cc899[_0x96398e(0x175)])&&(this[_0x96398e(0x168)]=![]));};[a86_0x485998(0x1a7)]=()=>{const _0x527a0c=a86_0x485998,_0x592436={};_0x592436[_0x527a0c(0x14c)]=function(_0x1960d0,_0x4b6a37){return _0x1960d0>=_0x4b6a37;};const _0xbcbf1d=_0x592436;return _0xbcbf1d[_0x527a0c(0x14c)](this[_0x527a0c(0x18e)][_0x527a0c(0x1af)],BATCH_SIZE);};async[a86_0x485998(0x153)](_0xeda75d=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x23408f=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x889c22=a86_0x485998,_0xa193c7={'SiGee':function(_0x2ee475,_0x21da39){return _0x2ee475<=_0x21da39;},'dVJJa':function(_0x541baf,_0x392f5c){return _0x541baf(_0x392f5c);},'wVAEi':function(_0x25ffe6,_0x3dbb4c){return _0x25ffe6-_0x3dbb4c;}};if(_0xa193c7[_0x889c22(0x15f)](this[_0x889c22(0x150)],0x0)||_0xa193c7[_0x889c22(0x15f)](_0xeda75d,0x0))return;return await _0xa193c7[_0x889c22(0x1ae)](sleep,_0x23408f),this[_0x889c22(0x153)](_0xa193c7[_0x889c22(0x16f)](_0xeda75d,_0x23408f));}}module[a86_0x485998(0x14a)]=RequestQueueHandler;
@@ -1 +1 @@
1
- const a87_0x20f98e=a87_0x43ba;function a87_0x43ba(_0x5e8ac7,_0x369c54){const _0x1e5cb9=a87_0x1e5c();return a87_0x43ba=function(_0x43ba3c,_0x8e7293){_0x43ba3c=_0x43ba3c-0x1e6;let _0x447f0e=_0x1e5cb9[_0x43ba3c];return _0x447f0e;},a87_0x43ba(_0x5e8ac7,_0x369c54);}(function(_0x3bd9e2,_0x580216){const _0x212fac=a87_0x43ba,_0x172a05=_0x3bd9e2();while(!![]){try{const _0x3e5373=-parseInt(_0x212fac(0x214))/0x1+-parseInt(_0x212fac(0x24f))/0x2*(parseInt(_0x212fac(0x264))/0x3)+parseInt(_0x212fac(0x1eb))/0x4+parseInt(_0x212fac(0x1e6))/0x5+parseInt(_0x212fac(0x20f))/0x6*(-parseInt(_0x212fac(0x234))/0x7)+-parseInt(_0x212fac(0x25b))/0x8+parseInt(_0x212fac(0x254))/0x9;if(_0x3e5373===_0x580216)break;else _0x172a05['push'](_0x172a05['shift']());}catch(_0x15028f){_0x172a05['push'](_0x172a05['shift']());}}}(a87_0x1e5c,0x4cf64));const bsSetupHelper=require(a87_0x20f98e(0x252)),path=require(a87_0x20f98e(0x22e)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a87_0x20f98e(0x277)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require('./constants'),RequestQueueHandler=require(a87_0x20f98e(0x242)),logger=require(a87_0x20f98e(0x1fd))[a87_0x20f98e(0x1ff)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap}=require(a87_0x20f98e(0x279)),util=require(a87_0x20f98e(0x281));function a87_0x1e5c(){const _0xa115f=['BS_TESTOPS_ALLOW_SCREENSHOTS','Hook_Start_Upload','null','Content-Type','BS_TESTOPS_JWT','OvDJk','YLjIf','eventUrl','test_run_uuid','sendEventData','add','fPESk','start','EZtkJ','./utils','YEsEx','../../helpers/testhub/utils','Build\x20creation\x20successful!','api/v1/event','elvKF','ZTuCz','BYxtK','getUserName','ESvQX','util','BROWSERSTACK_TESTHUB_JWT','ERROR_SDK_DEPRECATED','api/v1/builds','response','dfcVu','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','NljXM','OEMVH','1970220iJSYZy','RWXff','logs','btqBv','JAtnA','667536CHXGlF','vNjtQ','ojCKV','POST','TBaDX','jwt','BS_A11Y_JWT','message','uhLHV','uploadEventData','data','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','kvOTi',']\x20event\x20successful!','error','frameworkName','dVGky','debug','../logger','BROWSERSTACK_RERUN','winstonLogger','IlZTJ','browserstackAutomation','AvGoT','buildDescription','QoElf','KaGHX','max','env','event_type','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','Processing\x20event\x20-\x20\x27','llIGL','dtIRd','luwHV','toISOString','672PaTrKk','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','length','CBTSessionCreated','QcUXG','305887olnifQ','THjzh','nestedKeyValue','getGitMetaData','json','IZOxm','basename','password','HdmNg','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20missing\x20authentication\x20token','false','true','sLPgy','orxmz','CREDENTIALS_FOR_CRASH_REPORTING','CBT_Upload','ybVpv','getHostInfo','MTCKM','RbJSL','stringify','aRzNL','getAccessKey','username','includes','ppddd','path','Test_Start_Upload','OwFxi','BROWSERSTACK_TESTHUB_UUID','launch','jQUJQ','38423xTKHkt','BS_TESTOPS_BUILD_COMPLETED','JZaAy','requestQueueHandler','lVeGg','\x20retry\x20runs\x20exceeded','statusText','app','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','BROWSERSTACK_BUILD_RUN_IDENTIFIER','CoPMF','resolve','sendTraceZip','exports','./requestQueueHandler','gpfdn','pendingUploads','UcrRT','BS_TESTOPS_BUILD_HASHED_ID','application/json','frameworkVersion','LVFKm','Authorization','yRHUM','RWvzy','waitForBuildStatus','cTUEl','2PCDJaX','TestRunSkipped','getLogTag','../helper','status','8119233MMmxsR','QyDeC','kVWYB','erzwq','LogCreated','Bearer\x20','test_run','1235816TyfTSy','evZXQ','Batch-Queue','info','yJRZt','nLqRJ','Test_Skipped_Upload','EXCEPTION\x20IN\x20','build_hashed_id','218091Obedij','ERROR_INVALID_CREDENTIALS','allow_screenshots','buildName','KdIts'];a87_0x1e5c=function(){return _0xa115f;};return a87_0x1e5c();}class SessionHandler{static [a87_0x20f98e(0x237)]=RequestQueueHandler['getInstance']();static async[a87_0x20f98e(0x232)](_0x1d4721,_0x4d30e1){const _0x215a73=a87_0x20f98e,_0x55866b={'erzwq':function(_0x4de5f2,_0x140b2c){return _0x4de5f2||_0x140b2c;},'qLWZp':function(_0x256e2d,_0x3ee802){return _0x256e2d===_0x3ee802;},'kvOTi':function(_0x2e7d05,_0x25caa3){return _0x2e7d05(_0x25caa3);},'THjzh':_0x215a73(0x287),'LVFKm':'false','OwFxi':_0x215a73(0x218),'uJVdd':function(_0x582d1d,_0x45e0fa){return _0x582d1d(_0x45e0fa);},'DrDOg':function(_0x387d77,_0x37bd44){return _0x387d77(_0x37bd44);},'xZiNR':function(_0x185f29,_0x32af7a,_0x313557,_0x131ce7,_0x347cac){return _0x185f29(_0x32af7a,_0x313557,_0x131ce7,_0x347cac);},'QoElf':_0x215a73(0x1ee),'UcrRT':_0x215a73(0x284),'orxmz':function(_0x452a11,_0x2edab7){return _0x452a11(_0x2edab7);},'AvGoT':_0x215a73(0x27a),'ojCKV':function(_0x4f2a98){return _0x4f2a98();},'CJCfK':_0x215a73(0x21f),'llIGL':_0x215a73(0x26b),'HHjqQ':function(_0x58a4f4,_0x122cf4){return _0x58a4f4(_0x122cf4);},'uxTDM':function(_0x45c582,_0x5ae78d){return _0x45c582(_0x5ae78d);},'YLjIf':_0x215a73(0x265),'dVGky':'ERROR_ACCESS_DENIED','RWvzy':_0x215a73(0x283)},_0x12b868=bsSetupHelper[_0x215a73(0x27f)](_0x1d4721),_0x163ae4=bsSetupHelper[_0x215a73(0x22a)](_0x1d4721),_0x58bf2c=_0x55866b['erzwq'](_0x12b868,'')+':'+_0x55866b[_0x215a73(0x257)](_0x163ae4,'');if(_0x55866b['qLWZp'](_0x58bf2c,':'))return _0x55866b[_0x215a73(0x1f7)](debug,_0x55866b[_0x215a73(0x215)]),process[_0x215a73(0x207)]['BS_TESTOPS_BUILD_COMPLETED']=_0x55866b[_0x215a73(0x249)],[null,null];let _0x58bc08=![],_0x31924d=![];if(_0x1d4721['browserstackAutomation']&&_0x1d4721[_0x215a73(0x23b)])_0x31924d=!![];else _0x1d4721[_0x215a73(0x201)]&&(_0x58bc08=!![]);try{const _0x573ea5={'format':_0x55866b[_0x215a73(0x230)],'project_name':_0x1d4721['projectName']||'','name':_0x1d4721[_0x215a73(0x267)]||path[_0x215a73(0x21a)](path[_0x215a73(0x23f)](process['cwd']())),'build_identifier':_0x1d4721['buildIdentifier'],'description':_0x1d4721[_0x215a73(0x203)]||'','start_time':new Date()[_0x215a73(0x20e)](),'tags':_0x55866b['uJVdd'](getCustomTags,_0x1d4721),'host_info':bsSetupHelper[_0x215a73(0x225)](),'ci_info':bsSetupHelper['getCiInfo'](),'build_run_identifier':process[_0x215a73(0x207)][_0x215a73(0x23d)],'failed_tests_rerun':process[_0x215a73(0x207)][_0x215a73(0x1fe)]||![],'version_control':await bsSetupHelper[_0x215a73(0x217)](),'observability_version':{'frameworkName':_0x4d30e1[_0x215a73(0x1fa)],'frameworkVersion':_0x4d30e1[_0x215a73(0x248)],'sdkVersion':bsSetupHelper['getAgentVersion']()},'product_map':_0x55866b[_0x215a73(0x1f7)](getProductMap,_0x1d4721)},_0x466b53={};_0x466b53[_0x215a73(0x22b)]=_0x12b868,_0x466b53[_0x215a73(0x21b)]=_0x163ae4;const _0x3b29bc={'auth':_0x466b53,'headers':_0x55866b['DrDOg'](getDefaultHeaders,![])},_0x5c008f=await _0x55866b['xZiNR'](nodeRequest,_0x55866b[_0x215a73(0x204)],_0x55866b[_0x215a73(0x245)],_0x573ea5,_0x3b29bc);_0x55866b[_0x215a73(0x221)](debug,_0x55866b[_0x215a73(0x202)]);const _0x390e95=_0x5c008f['data'];_0x390e95[_0x215a73(0x263)]&&(process[_0x215a73(0x207)][_0x215a73(0x231)]=_0x390e95[_0x215a73(0x263)]);if(_0x55866b[_0x215a73(0x1ed)](isTestObservabilitySession)){process[_0x215a73(0x207)][_0x215a73(0x235)]=_0x55866b['CJCfK'];if(_0x390e95[_0x215a73(0x1f0)]){process[_0x215a73(0x207)][_0x215a73(0x26d)]=_0x390e95['jwt'];const _0x4de02a={};_0x4de02a[_0x215a73(0x22b)]=_0x12b868,_0x4de02a[_0x215a73(0x21b)]=_0x163ae4,process[_0x215a73(0x207)][_0x215a73(0x222)]=JSON[_0x215a73(0x228)](_0x4de02a);}_0x390e95[_0x215a73(0x263)]&&(process['env'][_0x215a73(0x246)]=_0x390e95[_0x215a73(0x263)]),_0x390e95[_0x215a73(0x266)]&&(process['env']['BS_TESTOPS_ALLOW_SCREENSHOTS']=_0x390e95[_0x215a73(0x266)]['toString']());}return[_0x5c008f[_0x215a73(0x1f5)][_0x215a73(0x1f0)],_0x5c008f[_0x215a73(0x1f5)]['build_hashed_id'],_0x5c008f[_0x215a73(0x1f5)][_0x215a73(0x266)]];}catch(_0x348e65){process[_0x215a73(0x207)][_0x215a73(0x231)]=_0x55866b[_0x215a73(0x20b)],process[_0x215a73(0x207)][_0x215a73(0x235)]=_0x55866b[_0x215a73(0x249)],process[_0x215a73(0x207)][_0x215a73(0x26d)]=_0x55866b[_0x215a73(0x20b)],process[_0x215a73(0x207)][_0x215a73(0x246)]=_0x55866b[_0x215a73(0x20b)],process['env'][_0x215a73(0x269)]=_0x55866b[_0x215a73(0x20b)];_0x348e65[_0x215a73(0x285)]?_0x55866b['HHjqQ'](debug,_0x215a73(0x23c)+_0x348e65['response']['status']+'\x20'+_0x348e65[_0x215a73(0x285)][_0x215a73(0x23a)]+'\x20'+JSON[_0x215a73(0x228)](_0x348e65['response'][_0x215a73(0x1f5)])):_0x55866b['uxTDM'](debug,_0x215a73(0x23c)+(_0x348e65[_0x215a73(0x1f2)]||_0x348e65));if(_0x348e65&&_0x348e65[_0x215a73(0x1f2)]){const _0x569541=_0x348e65[_0x215a73(0x1f2)];switch(_0x348e65['errorType']){case _0x55866b[_0x215a73(0x26f)]:logger[_0x215a73(0x1f9)](_0x569541);break;case _0x55866b[_0x215a73(0x1fb)]:logger[_0x215a73(0x25e)](_0x569541);break;case _0x55866b[_0x215a73(0x24c)]:logger[_0x215a73(0x1f9)](_0x569541);break;default:logger[_0x215a73(0x1f9)](_0x569541);}}else console[_0x215a73(0x25e)]('Data\x20upload\x20to\x20BrowserStack\x20Test\x20Observability\x20failed\x20due\x20to\x20'+_0x348e65);return[null,null,null];}}static async[a87_0x20f98e(0x24d)](){const _0x4c5bbf=a87_0x20f98e,_0x51f72a={'uhLHV':_0x4c5bbf(0x21f),'OEMVH':_0x4c5bbf(0x21e),'PyVjn':function(_0x1bb89e,_0x460dca){return _0x1bb89e(_0x460dca);}},_0x46c484=process['env'][_0x4c5bbf(0x235)];if([_0x51f72a['uhLHV'],_0x51f72a[_0x4c5bbf(0x289)]][_0x4c5bbf(0x22c)](_0x46c484))return;while([_0x51f72a[_0x4c5bbf(0x1f3)],_0x51f72a[_0x4c5bbf(0x289)]][_0x4c5bbf(0x22c)](_0x46c484)){await _0x51f72a['PyVjn'](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a87_0x20f98e(0x251)](_0x50885c){const _0xdce307=a87_0x20f98e,_0x226dd6={};_0x226dd6['KdIts']=_0xdce307(0x22f),_0x226dd6['nRCvT']='Test_End_Upload',_0x226dd6[_0xdce307(0x205)]=_0xdce307(0x261),_0x226dd6['kVWYB']='Log_Upload',_0x226dd6['BYxtK']=_0xdce307(0x26a),_0x226dd6[_0xdce307(0x27d)]='Hook_End_Upload',_0x226dd6['RWXff']=_0xdce307(0x223);const _0x1651bd=_0x226dd6,_0x279b1f={};return _0x279b1f['TestRunStarted']=_0x1651bd[_0xdce307(0x268)],_0x279b1f['TestRunFinished']=_0x1651bd['nRCvT'],_0x279b1f[_0xdce307(0x250)]=_0x1651bd['KaGHX'],_0x279b1f[_0xdce307(0x258)]=_0x1651bd[_0xdce307(0x256)],_0x279b1f['HookRunStarted']=_0x1651bd[_0xdce307(0x27e)],_0x279b1f['HookRunFinished']=_0x1651bd[_0xdce307(0x27d)],_0x279b1f[_0xdce307(0x212)]=_0x1651bd[_0xdce307(0x1e7)],_0x279b1f[_0x50885c[_0xdce307(0x208)]];}static async[a87_0x20f98e(0x272)](_0x2f3074,_0x19b5c0=0x0,_0x4dcb6d=null){const _0x279609=a87_0x20f98e,_0x400a0f={'JZaAy':function(_0x2c2ae1,_0x276161){return _0x2c2ae1===_0x276161;},'IlZTJ':_0x279609(0x240),'tnxPN':function(_0x5dc8a0,_0x393c44){return _0x5dc8a0!==_0x393c44;},'htuCL':_0x279609(0x247),'ybVpv':_0x279609(0x21f),'ESvQX':function(_0x5a7900,_0x40fde4,_0x1777ef,_0x2d97e3,_0x72b6d8){return _0x5a7900(_0x40fde4,_0x1777ef,_0x2d97e3,_0x72b6d8);},'IZOxm':'POST','pGYcN':function(_0x2ba698,_0x5b34d4,_0x1d75d3,_0x727dcf,_0x1dfaa7){return _0x2ba698(_0x5b34d4,_0x1d75d3,_0x727dcf,_0x1dfaa7);},'EZtkJ':function(_0x5f282f,_0x5f171e){return _0x5f282f(_0x5f171e);},'RbJSL':function(_0x46b7f2,_0x4c0a68){return _0x46b7f2!==_0x4c0a68;},'fPESk':_0x279609(0x25d),'MTCKM':function(_0x4cd533,_0x3231cc){return _0x4cd533-_0x3231cc;},'dfcVu':_0x279609(0x27b),'JAtnA':'success','vNjtQ':function(_0x215066,_0x378f8e){return _0x215066(_0x378f8e);},'luwHV':function(_0x141b99,_0x127141){return _0x141b99-_0x127141;},'aRzNL':_0x279609(0x1f9)};_0x400a0f[_0x279609(0x236)](_0x4dcb6d,_0x400a0f[_0x279609(0x200)])&&logger[_0x279609(0x1fc)]('Sending\x20trace\x20zip\x20for\x20test:\x20'+_0x2f3074[_0x279609(0x1e8)][0x0][_0x279609(0x271)]);const _0x3f6501=await this[_0x279609(0x251)](_0x2f3074);let _0x1cc12a=_0x2f3074,_0x57cb7f=EVENT_ENDPOINT;_0x400a0f['tnxPN'](_0x4dcb6d,_0x400a0f[_0x279609(0x200)])&&this[_0x279609(0x237)][_0x279609(0x275)]();const {shouldProceed:_0x428a5a,proceedWithData:_0x2307ee,proceedWithUrl:_0x2629c6}=this['requestQueueHandler'][_0x279609(0x273)](_0x2f3074);if(!_0x428a5a)return;else _0x2307ee&&(_0x1cc12a=_0x2307ee,_0x57cb7f=_0x2629c6);const _0x514396={};_0x514396[_0x279609(0x24a)]=_0x279609(0x259)+process['env']['BROWSERSTACK_TESTHUB_JWT'],_0x514396[_0x279609(0x26c)]=_0x400a0f['htuCL'],_0x514396['X-BSTACK-TESTOPS']=_0x400a0f[_0x279609(0x224)];const _0x306c01={};_0x306c01['headers']=_0x514396;const _0x21d21d=_0x306c01;let _0x133540;try{_0x400a0f[_0x279609(0x236)](_0x4dcb6d,_0x400a0f['IlZTJ'])?(logger[_0x279609(0x1fc)](_0x279609(0x210)+_0x2f3074?.[_0x279609(0x1e8)][0x0]?.['test_run_uuid']),_0x133540=await _0x400a0f[_0x279609(0x280)](asyncAwaitNodeReq,_0x400a0f[_0x279609(0x219)],_0x57cb7f,_0x1cc12a,_0x21d21d),logger[_0x279609(0x1fc)](_0x279609(0x1f6)+_0x2f3074?.[_0x279609(0x1e8)][0x0]?.[_0x279609(0x271)])):_0x133540=await _0x400a0f['pGYcN'](nodeRequest,_0x400a0f[_0x279609(0x219)],_0x57cb7f,_0x1cc12a,_0x21d21d);if(_0x133540[_0x279609(0x1f5)][_0x279609(0x1f9)]){const _0x5f128b={};_0x5f128b[_0x279609(0x1f2)]=_0x133540[_0x279609(0x1f5)][_0x279609(0x1f9)];throw _0x5f128b;}else{_0x400a0f[_0x279609(0x276)](debug,(_0x400a0f[_0x279609(0x227)](_0x57cb7f,this[_0x279609(0x237)][_0x279609(0x270)])?_0x3f6501:_0x400a0f[_0x279609(0x274)])+'['+_0x19b5c0+_0x279609(0x1f8)),this[_0x279609(0x237)][_0x279609(0x244)]=Math[_0x279609(0x206)](0x0,_0x400a0f[_0x279609(0x226)](this['requestQueueHandler'][_0x279609(0x244)],_0x400a0f[_0x279609(0x236)](_0x57cb7f,_0x400a0f[_0x279609(0x286)])?0x1:_0x1cc12a['length']));const _0x26a55b={};return _0x26a55b['status']=_0x400a0f[_0x279609(0x1ea)],_0x26a55b['message']='',_0x26a55b;}}catch(_0x4f4e7c){_0x4f4e7c[_0x279609(0x285)]?_0x400a0f[_0x279609(0x1ec)](debug,_0x279609(0x262)+(_0x400a0f[_0x279609(0x227)](_0x57cb7f,this[_0x279609(0x237)][_0x279609(0x270)])?_0x3f6501:_0x400a0f[_0x279609(0x274)])+_0x279609(0x209)+_0x4f4e7c[_0x279609(0x285)][_0x279609(0x253)]+'\x20'+_0x4f4e7c['response'][_0x279609(0x23a)]+'\x20'+util['format'](_0x4f4e7c['response'][_0x279609(0x1f5)])):_0x400a0f['EZtkJ'](debug,'EXCEPTION\x20IN\x20'+(_0x400a0f['RbJSL'](_0x57cb7f,this['requestQueueHandler'][_0x279609(0x270)])?_0x3f6501:_0x400a0f[_0x279609(0x274)])+_0x279609(0x209)+util['format'](_0x4f4e7c));this[_0x279609(0x237)][_0x279609(0x244)]=Math['max'](0x0,_0x400a0f[_0x279609(0x20d)](this[_0x279609(0x237)][_0x279609(0x244)],_0x400a0f[_0x279609(0x236)](_0x57cb7f,_0x400a0f[_0x279609(0x286)])?0x1:_0x1cc12a[_0x279609(0x211)]));const _0x5159ed={};return _0x5159ed[_0x279609(0x253)]=_0x400a0f[_0x279609(0x229)],_0x5159ed[_0x279609(0x1f2)]=_0x4f4e7c[_0x279609(0x1f2)]||(_0x4f4e7c[_0x279609(0x285)]?_0x4f4e7c[_0x279609(0x285)][_0x279609(0x253)]+':'+_0x4f4e7c[_0x279609(0x285)]['statusText']:_0x4f4e7c),_0x5159ed;}}static async[a87_0x20f98e(0x1f4)](_0x27e896,_0x52c807=0x0){const _0xe858ea=a87_0x20f98e,_0x4476f4={'dzxsk':function(_0xf89f86,_0x55efa8){return _0xf89f86+_0x55efa8;},'nLqRJ':function(_0x1c86c3,_0x24f7bf){return _0x1c86c3(_0x24f7bf);},'gpfdn':_0xe858ea(0x25a),'btqBv':'uuid','sLPgy':'hook_run','jQUJQ':function(_0xaef16f,_0x53e01a,_0x1a7bc0){return _0xaef16f(_0x53e01a,_0x1a7bc0);},'lVeGg':'uploadEventData','yRHUM':function(_0xc1e3f,_0x2ff8c0){return _0xc1e3f===_0x2ff8c0;},'CoPMF':function(_0x2a0d6d,_0x35300f){return _0x2a0d6d!==_0x35300f;},'TBaDX':_0xe858ea(0x26b),'OvDJk':function(_0x4a7e9b,_0x2bd87a){return _0x4a7e9b===_0x2bd87a;},'QcUXG':_0xe858ea(0x21f),'NljXM':function(_0x82dd20){return _0x82dd20();},'QyDeC':function(_0x371512,_0x1cb382){return _0x371512-_0x1cb382;},'YEsEx':_0xe858ea(0x1f9),'elvKF':'Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','QJHAt':function(_0x211cb0,_0x28081a){return _0x211cb0>=_0x28081a;},'ppddd':function(_0xc95fd8,_0x5188c0){return _0xc95fd8(_0x5188c0);},'HdmNg':function(_0x1f29b2,_0x413c3c){return _0x1f29b2!==_0x413c3c;},'dtIRd':function(_0x4a488b,_0x9d5463){return _0x4a488b-_0x9d5463;},'cTUEl':'Retry\x20runs\x20exceeded','yJRZt':function(_0x21bf50,_0x24d703){return _0x21bf50!==_0x24d703;},'qYGHj':_0xe858ea(0x21e),'evZXQ':function(_0x49951,_0x36e9e2,_0x4e8098){return _0x49951(_0x36e9e2,_0x4e8098);}},_0x28a1d9=this[_0xe858ea(0x251)](_0x27e896);_0x4476f4[_0xe858ea(0x260)](trace,_0xe858ea(0x20a)+_0x27e896[_0xe858ea(0x208)]+'\x27\x20'+(bsSetupHelper[_0xe858ea(0x216)](_0x27e896,[_0x4476f4[_0xe858ea(0x243)],_0x4476f4[_0xe858ea(0x1e9)]])||bsSetupHelper[_0xe858ea(0x216)](_0x27e896,[_0x4476f4[_0xe858ea(0x220)],_0x4476f4[_0xe858ea(0x1e9)]])));if(!_0x4476f4[_0xe858ea(0x233)](shouldProcessEventForTesthub,_0x27e896[_0xe858ea(0x208)],_0x4476f4[_0xe858ea(0x238)]))return;_0x4476f4[_0xe858ea(0x24b)](_0x52c807,0x0)&&process[_0xe858ea(0x207)]['BROWSERSTACK_TESTHUB_JWT']&&_0x4476f4[_0xe858ea(0x23e)](process[_0xe858ea(0x207)]['BROWSERSTACK_TESTHUB_JWT'],_0x4476f4['TBaDX'])&&(this[_0xe858ea(0x237)][_0xe858ea(0x244)]+=0x1);if(_0x4476f4[_0xe858ea(0x26e)](process[_0xe858ea(0x207)]['BS_TESTOPS_BUILD_COMPLETED'],_0x4476f4[_0xe858ea(0x213)])||process[_0xe858ea(0x207)][_0xe858ea(0x1f1)]||_0x4476f4[_0xe858ea(0x288)](isPercyBuild)){if(_0x4476f4[_0xe858ea(0x26e)](process[_0xe858ea(0x207)][_0xe858ea(0x282)],_0x4476f4[_0xe858ea(0x1ef)])){_0x4476f4[_0xe858ea(0x260)](debug,'EXCEPTION\x20IN\x20'+_0x28a1d9+_0xe858ea(0x21d)),this[_0xe858ea(0x237)][_0xe858ea(0x244)]=Math[_0xe858ea(0x206)](0x0,_0x4476f4[_0xe858ea(0x255)](this[_0xe858ea(0x237)]['pendingUploads'],0x1));const _0x53da11={};return _0x53da11[_0xe858ea(0x253)]=_0x4476f4[_0xe858ea(0x278)],_0x53da11[_0xe858ea(0x1f2)]=_0x4476f4[_0xe858ea(0x27c)],_0x53da11;}return await this[_0xe858ea(0x272)](_0x27e896,_0x52c807);}else{if(_0x4476f4['QJHAt'](_0x52c807,0x5)){_0x4476f4[_0xe858ea(0x22d)](debug,_0xe858ea(0x262)+_0x28a1d9+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20'+_0x28a1d9+_0xe858ea(0x239));_0x4476f4[_0xe858ea(0x21c)](process[_0xe858ea(0x207)][_0xe858ea(0x282)],_0x4476f4[_0xe858ea(0x1ef)])&&(this['requestQueueHandler'][_0xe858ea(0x244)]=Math[_0xe858ea(0x206)](0x0,_0x4476f4[_0xe858ea(0x20c)](this[_0xe858ea(0x237)][_0xe858ea(0x244)],0x1)));const _0x3be497={};return _0x3be497[_0xe858ea(0x253)]=_0x4476f4['YEsEx'],_0x3be497[_0xe858ea(0x1f2)]=_0x4476f4[_0xe858ea(0x24e)],_0x3be497;}else _0x4476f4[_0xe858ea(0x25f)](process[_0xe858ea(0x207)][_0xe858ea(0x235)],_0x4476f4['qYGHj'])&&_0x4476f4[_0xe858ea(0x25c)](setTimeout,()=>{const _0x5c61df=_0xe858ea;this[_0x5c61df(0x1f4)](_0x27e896,_0x4476f4['dzxsk'](_0x52c807,0x1));},0x3e8);}}}module[a87_0x20f98e(0x241)]=SessionHandler;
1
+ const a87_0x4967eb=a87_0x302b;(function(_0x309a1c,_0x1e819b){const _0x4d9834=a87_0x302b,_0x1ca64d=_0x309a1c();while(!![]){try{const _0x2d8308=parseInt(_0x4d9834(0x208))/0x1*(-parseInt(_0x4d9834(0x214))/0x2)+parseInt(_0x4d9834(0x1b1))/0x3+parseInt(_0x4d9834(0x1d9))/0x4+parseInt(_0x4d9834(0x1f1))/0x5*(parseInt(_0x4d9834(0x211))/0x6)+-parseInt(_0x4d9834(0x221))/0x7*(parseInt(_0x4d9834(0x236))/0x8)+parseInt(_0x4d9834(0x1e3))/0x9+-parseInt(_0x4d9834(0x1f0))/0xa*(parseInt(_0x4d9834(0x22b))/0xb);if(_0x2d8308===_0x1e819b)break;else _0x1ca64d['push'](_0x1ca64d['shift']());}catch(_0x4e51de){_0x1ca64d['push'](_0x1ca64d['shift']());}}}(a87_0x175c,0x4572f));function a87_0x302b(_0x5b8253,_0x173b42){const _0x175c95=a87_0x175c();return a87_0x302b=function(_0x302b1a,_0x25acde){_0x302b1a=_0x302b1a-0x193;let _0x149042=_0x175c95[_0x302b1a];return _0x149042;},a87_0x302b(_0x5b8253,_0x173b42);}function a87_0x175c(){const _0x2ac547=['getAgentVersion','pjnBQ','test_run','add','Sending\x20trace\x20zip\x20for\x20test:\x20','sVfMq','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','length','winstonLogger','util','iOiLC','AczvY','NvART','data','../helper','BS_TESTOPS_BUILD_HASHED_ID','ENkAm','getHostInfo','smwtw','CQWdV','BrMSD','AUMeb','vdvaP','YnABK','getGitMetaData','event_type','sendTraceZip','frameworkName','Bearer\x20','gwWgc','password','cJUgA','tUdwD','232866DAwaQV','Processing\x20event\x20-\x20\x27','wCQPK','Data\x20upload\x20to\x20BrowserStack\x20Test\x20Observability\x20failed\x20due\x20to\x20','frameworkVersion','null','../logger','browserstackAutomation','UKMcR','EXCEPTION\x20IN\x20','getUserName','ERROR_SDK_DEPRECATED','JMDYn','GsLhu','HookRunStarted','true','eaEma','RflUk','CBT_Upload','IQjee','CGYpI','bXJjT','start','TXiBM','includes','projectName','mWFFY','getCiInfo','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','Batch-Queue','dtEbe','success','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','Hook_Start_Upload','mtKPo','./requestQueueHandler','sendEventData','NaSiH','application/json','hook_run','926264tWTzWn','USVkP','status','TJKWk','BROWSERSTACK_RERUN','toString','CREDENTIALS_FOR_CRASH_REPORTING','launch','GaxnV','cwd','3091194BVfipA','HbnVB','format','zRFjg','error','hcWJz','XPskK','QqCFZ','build_hashed_id','BS_TESTOPS_BUILD_COMPLETED','buildDescription','mIiTk','api/v1/builds','530rwrAPp','10qADaJp','message','buildName','allow_screenshots','UHQCP','HLkFV','pendingUploads','logs','env','path','bxszM','response','TestRunSkipped','stringify','niPxy','Kryft','NSHSA','getLogTag','\x20retry\x20runs\x20exceeded','Log_Upload','TestRunStarted','kmmMY','statusText','206533fmiQXN','ERROR_ACCESS_DENIED','eventUrl','Test_Skipped_Upload','BS_TESTOPS_ALLOW_SCREENSHOTS','BROWSERSTACK_TESTHUB_UUID','info','CZFRS','uuid','1201362KlWimm','debug','fpjvi','2LcRlwe','aZLiY','BROWSERSTACK_TESTHUB_JWT','max','Retry\x20runs\x20exceeded','ZPiuV','dzJYA','X-BSTACK-TESTOPS','uploadEventData','waitForBuildStatus','username','sGfhi','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','22701myFGYz','nestedKeyValue','JGeKz','api/v1/event','Fkopl','Hook_End_Upload','qDFXX','feaCG','exports','opycX','74261ALprHt','klgnV','false','ExJrx','errorType','json','zVSQZ','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','jwt','ULyay','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','504VEGYnT','requestQueueHandler','POST'];a87_0x175c=function(){return _0x2ac547;};return a87_0x175c();}const bsSetupHelper=require(a87_0x4967eb(0x19e)),path=require(a87_0x4967eb(0x1fa)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require('./utils'),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require('./constants'),RequestQueueHandler=require(a87_0x4967eb(0x1d4)),logger=require(a87_0x4967eb(0x1b7))[a87_0x4967eb(0x198)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap}=require('../../helpers/testhub/utils'),util=require(a87_0x4967eb(0x199));class SessionHandler{static [a87_0x4967eb(0x237)]=RequestQueueHandler['getInstance']();static async[a87_0x4967eb(0x1e0)](_0x661741,_0x31d899){const _0x5ea5c3=a87_0x4967eb,_0xd81dc9={'YnABK':function(_0x31daaa,_0xef8ca9){return _0x31daaa||_0xef8ca9;},'hcWJz':function(_0x38eeba,_0x31bd14){return _0x38eeba===_0x31bd14;},'Kryft':function(_0x2380be,_0x26c016){return _0x2380be(_0x26c016);},'boMWh':_0x5ea5c3(0x1cd),'opycX':_0x5ea5c3(0x22d),'qDFXX':_0x5ea5c3(0x230),'CZFRS':function(_0x1db395,_0x2b33a2){return _0x1db395(_0x2b33a2);},'klgnV':function(_0x361bd7,_0x335498){return _0x361bd7(_0x335498);},'Vfjfe':function(_0x84e923,_0x5a6b5b,_0x5cfc8f,_0x194a6f,_0x15c838){return _0x84e923(_0x5a6b5b,_0x5cfc8f,_0x194a6f,_0x15c838);},'sGfhi':_0x5ea5c3(0x238),'QqCFZ':_0x5ea5c3(0x1ef),'Wdrmy':function(_0x19d68c,_0x5b5501){return _0x19d68c(_0x5b5501);},'wCQPK':'Build\x20creation\x20successful!','dtEbe':function(_0x48167e){return _0x48167e();},'HLkFV':'true','USVkP':_0x5ea5c3(0x1b6),'UHQCP':function(_0x1f408a,_0xddb06b){return _0x1f408a(_0xddb06b);},'UKMcR':function(_0x1aec34,_0x169ca7){return _0x1aec34(_0x169ca7);},'sVOhE':'ERROR_INVALID_CREDENTIALS','JMDYn':_0x5ea5c3(0x209),'Fkopl':_0x5ea5c3(0x1bc)},_0x44e4e0=bsSetupHelper[_0x5ea5c3(0x1bb)](_0x661741),_0x4f73b8=bsSetupHelper['getAccessKey'](_0x661741),_0x346e3c=_0xd81dc9['YnABK'](_0x44e4e0,'')+':'+_0xd81dc9[_0x5ea5c3(0x1a7)](_0x4f73b8,'');if(_0xd81dc9[_0x5ea5c3(0x1e8)](_0x346e3c,':'))return _0xd81dc9[_0x5ea5c3(0x200)](debug,_0xd81dc9['boMWh']),process[_0x5ea5c3(0x1f9)][_0x5ea5c3(0x1ec)]=_0xd81dc9[_0x5ea5c3(0x22a)],[null,null];let _0x17d7a3=![],_0x16b517=![];if(_0x661741[_0x5ea5c3(0x1b8)]&&_0x661741['app'])_0x16b517=!![];else _0x661741[_0x5ea5c3(0x1b8)]&&(_0x17d7a3=!![]);try{const _0x3d2564={'format':_0xd81dc9[_0x5ea5c3(0x227)],'project_name':_0x661741[_0x5ea5c3(0x1ca)]||'','name':_0x661741[_0x5ea5c3(0x1f3)]||path['basename'](path['resolve'](process[_0x5ea5c3(0x1e2)]())),'build_identifier':_0x661741['buildIdentifier'],'description':_0x661741[_0x5ea5c3(0x1ed)]||'','start_time':new Date()['toISOString'](),'tags':_0xd81dc9['CZFRS'](getCustomTags,_0x661741),'host_info':bsSetupHelper[_0x5ea5c3(0x1a1)](),'ci_info':bsSetupHelper[_0x5ea5c3(0x1cc)](),'build_run_identifier':process[_0x5ea5c3(0x1f9)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'],'failed_tests_rerun':process[_0x5ea5c3(0x1f9)][_0x5ea5c3(0x1dd)]||![],'version_control':await bsSetupHelper[_0x5ea5c3(0x1a8)](),'observability_version':{'frameworkName':_0x31d899[_0x5ea5c3(0x1ab)],'frameworkVersion':_0x31d899[_0x5ea5c3(0x1b5)],'sdkVersion':bsSetupHelper[_0x5ea5c3(0x239)]()},'product_map':_0xd81dc9[_0x5ea5c3(0x20f)](getProductMap,_0x661741)},_0x57e648={};_0x57e648[_0x5ea5c3(0x21e)]=_0x44e4e0,_0x57e648[_0x5ea5c3(0x1ae)]=_0x4f73b8;const _0x541b76={'auth':_0x57e648,'headers':_0xd81dc9[_0x5ea5c3(0x22c)](getDefaultHeaders,![])},_0x25a8c8=await _0xd81dc9['Vfjfe'](nodeRequest,_0xd81dc9[_0x5ea5c3(0x21f)],_0xd81dc9[_0x5ea5c3(0x1ea)],_0x3d2564,_0x541b76);_0xd81dc9['Wdrmy'](debug,_0xd81dc9[_0x5ea5c3(0x1b3)]);const _0x54f095=_0x25a8c8[_0x5ea5c3(0x19d)];_0x54f095[_0x5ea5c3(0x1eb)]&&(process['env'][_0x5ea5c3(0x20d)]=_0x54f095['build_hashed_id']);if(_0xd81dc9[_0x5ea5c3(0x1cf)](isTestObservabilitySession)){process[_0x5ea5c3(0x1f9)][_0x5ea5c3(0x1ec)]=_0xd81dc9[_0x5ea5c3(0x1f6)];if(_0x54f095[_0x5ea5c3(0x233)]){process[_0x5ea5c3(0x1f9)]['BS_TESTOPS_JWT']=_0x54f095[_0x5ea5c3(0x233)];const _0x5bac25={};_0x5bac25[_0x5ea5c3(0x21e)]=_0x44e4e0,_0x5bac25[_0x5ea5c3(0x1ae)]=_0x4f73b8,process['env'][_0x5ea5c3(0x1df)]=JSON[_0x5ea5c3(0x1fe)](_0x5bac25);}_0x54f095['build_hashed_id']&&(process[_0x5ea5c3(0x1f9)][_0x5ea5c3(0x19f)]=_0x54f095[_0x5ea5c3(0x1eb)]),_0x54f095[_0x5ea5c3(0x1f4)]&&(process[_0x5ea5c3(0x1f9)][_0x5ea5c3(0x20c)]=_0x54f095[_0x5ea5c3(0x1f4)][_0x5ea5c3(0x1de)]());}return[_0x25a8c8[_0x5ea5c3(0x19d)][_0x5ea5c3(0x233)],_0x25a8c8['data'][_0x5ea5c3(0x1eb)],_0x25a8c8['data']['allow_screenshots']];}catch(_0x5ad1ff){process[_0x5ea5c3(0x1f9)][_0x5ea5c3(0x20d)]=_0xd81dc9[_0x5ea5c3(0x1da)],process[_0x5ea5c3(0x1f9)]['BS_TESTOPS_BUILD_COMPLETED']=_0xd81dc9[_0x5ea5c3(0x22a)],process['env']['BS_TESTOPS_JWT']=_0xd81dc9['USVkP'],process[_0x5ea5c3(0x1f9)][_0x5ea5c3(0x19f)]=_0xd81dc9[_0x5ea5c3(0x1da)],process[_0x5ea5c3(0x1f9)][_0x5ea5c3(0x20c)]=_0xd81dc9[_0x5ea5c3(0x1da)];_0x5ad1ff[_0x5ea5c3(0x1fc)]?_0xd81dc9[_0x5ea5c3(0x1f5)](debug,'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20'+_0x5ad1ff[_0x5ea5c3(0x1fc)]['status']+'\x20'+_0x5ad1ff[_0x5ea5c3(0x1fc)][_0x5ea5c3(0x207)]+'\x20'+JSON[_0x5ea5c3(0x1fe)](_0x5ad1ff[_0x5ea5c3(0x1fc)][_0x5ea5c3(0x19d)])):_0xd81dc9[_0x5ea5c3(0x1b9)](debug,_0x5ea5c3(0x1d1)+(_0x5ad1ff[_0x5ea5c3(0x1f2)]||_0x5ad1ff));if(_0x5ad1ff&&_0x5ad1ff[_0x5ea5c3(0x1f2)]){const _0x2f3f36=_0x5ad1ff[_0x5ea5c3(0x1f2)];switch(_0x5ad1ff[_0x5ea5c3(0x22f)]){case _0xd81dc9['sVOhE']:logger['error'](_0x2f3f36);break;case _0xd81dc9[_0x5ea5c3(0x1bd)]:logger[_0x5ea5c3(0x20e)](_0x2f3f36);break;case _0xd81dc9[_0x5ea5c3(0x225)]:logger[_0x5ea5c3(0x1e7)](_0x2f3f36);break;default:logger[_0x5ea5c3(0x1e7)](_0x2f3f36);}}else console[_0x5ea5c3(0x20e)](_0x5ea5c3(0x1b4)+_0x5ad1ff);return[null,null,null];}}static async[a87_0x4967eb(0x21d)](){const _0x18a6aa=a87_0x4967eb,_0x410d33={'kmmMY':_0x18a6aa(0x1c0),'AUMeb':_0x18a6aa(0x22d),'TJKWk':function(_0x2f1f8d,_0x1f4c79){return _0x2f1f8d(_0x1f4c79);}},_0x341894=process[_0x18a6aa(0x1f9)]['BS_TESTOPS_BUILD_COMPLETED'];if([_0x410d33[_0x18a6aa(0x206)],_0x410d33[_0x18a6aa(0x1a5)]]['includes'](_0x341894))return;while([_0x410d33[_0x18a6aa(0x206)],_0x410d33[_0x18a6aa(0x1a5)]][_0x18a6aa(0x1c9)](_0x341894)){await _0x410d33[_0x18a6aa(0x1dc)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a87_0x4967eb(0x202)](_0x516cd5){const _0x3abc03=a87_0x4967eb,_0x31c1ca={};_0x31c1ca['mtKPo']='Test_Start_Upload',_0x31c1ca['ZPiuV']='Test_End_Upload',_0x31c1ca[_0x3abc03(0x1a3)]=_0x3abc03(0x20b),_0x31c1ca[_0x3abc03(0x1d6)]=_0x3abc03(0x204),_0x31c1ca[_0x3abc03(0x1e6)]=_0x3abc03(0x1d2),_0x31c1ca[_0x3abc03(0x228)]=_0x3abc03(0x226),_0x31c1ca['iOiLC']=_0x3abc03(0x1c3);const _0x29da86=_0x31c1ca,_0x269872={};return _0x269872[_0x3abc03(0x205)]=_0x29da86[_0x3abc03(0x1d3)],_0x269872['TestRunFinished']=_0x29da86[_0x3abc03(0x219)],_0x269872[_0x3abc03(0x1fd)]=_0x29da86[_0x3abc03(0x1a3)],_0x269872['LogCreated']=_0x29da86[_0x3abc03(0x1d6)],_0x269872[_0x3abc03(0x1bf)]=_0x29da86[_0x3abc03(0x1e6)],_0x269872['HookRunFinished']=_0x29da86['feaCG'],_0x269872['CBTSessionCreated']=_0x29da86[_0x3abc03(0x19a)],_0x269872[_0x516cd5[_0x3abc03(0x1a9)]];}static async[a87_0x4967eb(0x1d5)](_0x26f7bb,_0x389526=0x0,_0x34d08b=null){const _0x1d5bf6=a87_0x4967eb,_0x450dc6={'bXJjT':function(_0x425acf,_0x59cc7a){return _0x425acf===_0x59cc7a;},'NSHSA':_0x1d5bf6(0x1aa),'fpjvi':function(_0x3c26e0,_0x2430a5){return _0x3c26e0!==_0x2430a5;},'AjZJB':_0x1d5bf6(0x1d7),'ENkAm':_0x1d5bf6(0x1c0),'TXiBM':function(_0x1756a0,_0x251f21){return _0x1756a0===_0x251f21;},'XPskK':function(_0x5b2a6f,_0x5c3628,_0x456e8e,_0x2590f4,_0x3f377c){return _0x5b2a6f(_0x5c3628,_0x456e8e,_0x2590f4,_0x3f377c);},'BrMSD':_0x1d5bf6(0x238),'NvART':function(_0x3111ef,_0x576208,_0x32e2d2,_0x571841,_0x29af27){return _0x3111ef(_0x576208,_0x32e2d2,_0x571841,_0x29af27);},'IQjee':function(_0x20d192,_0xb422d4){return _0x20d192(_0xb422d4);},'CGYpI':function(_0x38295e,_0x155807){return _0x38295e!==_0x155807;},'pjnBQ':_0x1d5bf6(0x1ce),'zVSQZ':function(_0x3f2ab4,_0x10d2b0){return _0x3f2ab4-_0x10d2b0;},'cJUgA':_0x1d5bf6(0x224),'niPxy':_0x1d5bf6(0x1d0),'JGeKz':function(_0x4c47fb,_0x325a4f){return _0x4c47fb!==_0x325a4f;},'HbnVB':_0x1d5bf6(0x1e7)};_0x450dc6[_0x1d5bf6(0x1c6)](_0x34d08b,_0x450dc6[_0x1d5bf6(0x201)])&&logger[_0x1d5bf6(0x212)](_0x1d5bf6(0x194)+_0x26f7bb[_0x1d5bf6(0x1f8)][0x0]['test_run_uuid']);const _0x5e45c2=await this[_0x1d5bf6(0x202)](_0x26f7bb);let _0x5ca61f=_0x26f7bb,_0x50cf54=EVENT_ENDPOINT;_0x450dc6[_0x1d5bf6(0x213)](_0x34d08b,_0x450dc6['NSHSA'])&&this[_0x1d5bf6(0x237)][_0x1d5bf6(0x1c7)]();const {shouldProceed:_0x3e0024,proceedWithData:_0x112373,proceedWithUrl:_0x1cabf1}=this['requestQueueHandler'][_0x1d5bf6(0x193)](_0x26f7bb);if(!_0x3e0024)return;else _0x112373&&(_0x5ca61f=_0x112373,_0x50cf54=_0x1cabf1);const _0x332d41={};_0x332d41['Authorization']=_0x1d5bf6(0x1ac)+process[_0x1d5bf6(0x1f9)][_0x1d5bf6(0x216)],_0x332d41['Content-Type']=_0x450dc6['AjZJB'],_0x332d41[_0x1d5bf6(0x21b)]=_0x450dc6[_0x1d5bf6(0x1a0)];const _0x33eb29={};_0x33eb29['headers']=_0x332d41;const _0x5cfdad=_0x33eb29;let _0x2e34b1;try{_0x450dc6[_0x1d5bf6(0x1c8)](_0x34d08b,_0x450dc6[_0x1d5bf6(0x201)])?(logger[_0x1d5bf6(0x212)](_0x1d5bf6(0x196)+_0x26f7bb?.[_0x1d5bf6(0x1f8)][0x0]?.['test_run_uuid']),_0x2e34b1=await _0x450dc6[_0x1d5bf6(0x1e9)](asyncAwaitNodeReq,_0x450dc6[_0x1d5bf6(0x1a4)],_0x50cf54,_0x5ca61f,_0x5cfdad),logger[_0x1d5bf6(0x212)](_0x1d5bf6(0x232)+_0x26f7bb?.[_0x1d5bf6(0x1f8)][0x0]?.['test_run_uuid'])):_0x2e34b1=await _0x450dc6[_0x1d5bf6(0x19c)](nodeRequest,_0x450dc6[_0x1d5bf6(0x1a4)],_0x50cf54,_0x5ca61f,_0x5cfdad);if(_0x2e34b1[_0x1d5bf6(0x19d)][_0x1d5bf6(0x1e7)]){const _0x41e977={};_0x41e977[_0x1d5bf6(0x1f2)]=_0x2e34b1[_0x1d5bf6(0x19d)][_0x1d5bf6(0x1e7)];throw _0x41e977;}else{_0x450dc6[_0x1d5bf6(0x1c4)](debug,(_0x450dc6[_0x1d5bf6(0x1c5)](_0x50cf54,this['requestQueueHandler']['eventUrl'])?_0x5e45c2:_0x450dc6[_0x1d5bf6(0x23a)])+'['+_0x389526+']\x20event\x20successful!'),this[_0x1d5bf6(0x237)]['pendingUploads']=Math[_0x1d5bf6(0x217)](0x0,_0x450dc6[_0x1d5bf6(0x231)](this[_0x1d5bf6(0x237)]['pendingUploads'],_0x450dc6[_0x1d5bf6(0x1c8)](_0x50cf54,_0x450dc6['cJUgA'])?0x1:_0x5ca61f[_0x1d5bf6(0x197)]));const _0x3dc0f9={};return _0x3dc0f9[_0x1d5bf6(0x1db)]=_0x450dc6[_0x1d5bf6(0x1ff)],_0x3dc0f9['message']='',_0x3dc0f9;}}catch(_0x4a9870){_0x4a9870['response']?_0x450dc6['IQjee'](debug,_0x1d5bf6(0x1ba)+(_0x450dc6[_0x1d5bf6(0x1c5)](_0x50cf54,this[_0x1d5bf6(0x237)][_0x1d5bf6(0x20a)])?_0x5e45c2:_0x450dc6[_0x1d5bf6(0x23a)])+_0x1d5bf6(0x235)+_0x4a9870[_0x1d5bf6(0x1fc)][_0x1d5bf6(0x1db)]+'\x20'+_0x4a9870[_0x1d5bf6(0x1fc)][_0x1d5bf6(0x207)]+'\x20'+util[_0x1d5bf6(0x1e5)](_0x4a9870[_0x1d5bf6(0x1fc)]['data'])):_0x450dc6[_0x1d5bf6(0x1c4)](debug,'EXCEPTION\x20IN\x20'+(_0x450dc6[_0x1d5bf6(0x223)](_0x50cf54,this[_0x1d5bf6(0x237)][_0x1d5bf6(0x20a)])?_0x5e45c2:_0x450dc6['pjnBQ'])+_0x1d5bf6(0x235)+util[_0x1d5bf6(0x1e5)](_0x4a9870));this['requestQueueHandler'][_0x1d5bf6(0x1f7)]=Math['max'](0x0,_0x450dc6[_0x1d5bf6(0x231)](this[_0x1d5bf6(0x237)][_0x1d5bf6(0x1f7)],_0x450dc6[_0x1d5bf6(0x1c8)](_0x50cf54,_0x450dc6[_0x1d5bf6(0x1af)])?0x1:_0x5ca61f['length']));const _0x368033={};return _0x368033['status']=_0x450dc6[_0x1d5bf6(0x1e4)],_0x368033[_0x1d5bf6(0x1f2)]=_0x4a9870[_0x1d5bf6(0x1f2)]||(_0x4a9870[_0x1d5bf6(0x1fc)]?_0x4a9870[_0x1d5bf6(0x1fc)]['status']+':'+_0x4a9870[_0x1d5bf6(0x1fc)][_0x1d5bf6(0x207)]:_0x4a9870),_0x368033;}}static async['uploadEventData'](_0xa409ec,_0x3171f6=0x0){const _0x390294=a87_0x4967eb,_0x26121f={'GsLhu':function(_0x1eff10,_0x19cbe0){return _0x1eff10+_0x19cbe0;},'ULyay':function(_0xc5f8f5,_0x48f947){return _0xc5f8f5(_0x48f947);},'AMRRt':_0x390294(0x23b),'RflUk':_0x390294(0x210),'tUdwD':_0x390294(0x1d8),'XDcST':function(_0x4da6ef,_0x5bff5e,_0x3f42ff){return _0x4da6ef(_0x5bff5e,_0x3f42ff);},'bxszM':_0x390294(0x21c),'mWFFY':function(_0x299c1d,_0x3b5c8a){return _0x299c1d===_0x3b5c8a;},'gwWgc':function(_0x5570b5,_0x470cbd){return _0x5570b5!==_0x470cbd;},'AczvY':_0x390294(0x1b6),'CnrQU':_0x390294(0x1c0),'aZLiY':function(_0x593b4e){return _0x593b4e();},'smwtw':function(_0x562021,_0x24011f){return _0x562021===_0x24011f;},'vdvaP':function(_0x389701,_0x494447){return _0x389701(_0x494447);},'GaxnV':function(_0x2004d2,_0x2c9418){return _0x2004d2-_0x2c9418;},'mIiTk':_0x390294(0x1e7),'ExJrx':_0x390294(0x220),'iFvTr':function(_0x51b387,_0x15a36d){return _0x51b387>=_0x15a36d;},'LXeKL':function(_0x22730f,_0x3918b7){return _0x22730f!==_0x3918b7;},'sVfMq':function(_0x2f0972,_0x3ae783){return _0x2f0972-_0x3ae783;},'dzJYA':_0x390294(0x218),'eaEma':_0x390294(0x22d),'KNqwV':function(_0x417a4e,_0x18fa69,_0x4bf58c){return _0x417a4e(_0x18fa69,_0x4bf58c);}},_0x54f786=this[_0x390294(0x202)](_0xa409ec);_0x26121f[_0x390294(0x234)](trace,_0x390294(0x1b2)+_0xa409ec['event_type']+'\x27\x20'+(bsSetupHelper[_0x390294(0x222)](_0xa409ec,[_0x26121f['AMRRt'],_0x26121f[_0x390294(0x1c2)]])||bsSetupHelper[_0x390294(0x222)](_0xa409ec,[_0x26121f[_0x390294(0x1b0)],_0x26121f['RflUk']])));if(!_0x26121f['XDcST'](shouldProcessEventForTesthub,_0xa409ec[_0x390294(0x1a9)],_0x26121f[_0x390294(0x1fb)]))return;_0x26121f['mWFFY'](_0x3171f6,0x0)&&process[_0x390294(0x1f9)][_0x390294(0x216)]&&_0x26121f[_0x390294(0x1ad)](process[_0x390294(0x1f9)][_0x390294(0x216)],_0x26121f[_0x390294(0x19b)])&&(this[_0x390294(0x237)]['pendingUploads']+=0x1);if(_0x26121f[_0x390294(0x1cb)](process[_0x390294(0x1f9)][_0x390294(0x1ec)],_0x26121f['CnrQU'])||process['env']['BS_A11Y_JWT']||_0x26121f[_0x390294(0x215)](isPercyBuild)){if(_0x26121f[_0x390294(0x1a2)](process[_0x390294(0x1f9)][_0x390294(0x216)],_0x26121f['AczvY'])){_0x26121f[_0x390294(0x1a6)](debug,_0x390294(0x1ba)+_0x54f786+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20missing\x20authentication\x20token'),this['requestQueueHandler']['pendingUploads']=Math['max'](0x0,_0x26121f[_0x390294(0x1e1)](this[_0x390294(0x237)][_0x390294(0x1f7)],0x1));const _0x723939={};return _0x723939[_0x390294(0x1db)]=_0x26121f[_0x390294(0x1ee)],_0x723939[_0x390294(0x1f2)]=_0x26121f[_0x390294(0x22e)],_0x723939;}return await this['sendEventData'](_0xa409ec,_0x3171f6);}else{if(_0x26121f['iFvTr'](_0x3171f6,0x5)){_0x26121f[_0x390294(0x234)](debug,_0x390294(0x1ba)+_0x54f786+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20'+_0x54f786+_0x390294(0x203));_0x26121f['LXeKL'](process['env']['BROWSERSTACK_TESTHUB_JWT'],_0x26121f['AczvY'])&&(this[_0x390294(0x237)][_0x390294(0x1f7)]=Math[_0x390294(0x217)](0x0,_0x26121f[_0x390294(0x195)](this['requestQueueHandler']['pendingUploads'],0x1)));const _0x4d0b4d={};return _0x4d0b4d[_0x390294(0x1db)]=_0x26121f[_0x390294(0x1ee)],_0x4d0b4d['message']=_0x26121f[_0x390294(0x21a)],_0x4d0b4d;}else _0x26121f[_0x390294(0x1ad)](process[_0x390294(0x1f9)][_0x390294(0x1ec)],_0x26121f[_0x390294(0x1c1)])&&_0x26121f['KNqwV'](setTimeout,()=>{const _0x3aaa07=_0x390294;this[_0x3aaa07(0x21c)](_0xa409ec,_0x26121f[_0x3aaa07(0x1be)](_0x3171f6,0x1));},0x3e8);}}}module[a87_0x4967eb(0x229)]=SessionHandler;