browserstack-node-sdk 1.34.42 → 1.34.44

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 (135) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/start.js +1 -1
  18. package/ats/src/commands/start_commands/grid.js +1 -1
  19. package/ats/src/commands/stop.js +1 -1
  20. package/ats/src/commands/stop_commands/grid.js +1 -1
  21. package/ats/src/config/constants.js +1 -1
  22. package/ats/src/config/logger.js +1 -1
  23. package/ats/src/index.js +1 -1
  24. package/ats/src/templates/turboscale-agent.yaml +2 -0
  25. package/ats/src/utils/AWSUtils.js +1 -1
  26. package/ats/src/utils/createAutoscalerStack.js +1 -1
  27. package/ats/src/utils/createClusterStack.js +1 -1
  28. package/ats/src/utils/createHubHaStack.js +1 -1
  29. package/ats/src/utils/createk8sClient.js +1 -1
  30. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  31. package/ats/src/utils/deleteStack.js +1 -1
  32. package/ats/src/utils/describeStack.js +1 -1
  33. package/ats/src/utils/gridComponents.js +1 -1
  34. package/ats/src/utils/hstUtils.js +1 -1
  35. package/ats/src/utils/instrumentationUtils.js +1 -1
  36. package/ats/src/utils/userInput.js +1 -1
  37. package/ats/src/utils/utilityMethods.js +1 -1
  38. package/ats/src/utils/webSocketUtils.js +1 -1
  39. package/package.json +1 -1
  40. package/src/ai-sdk-node/bundle.js +1 -1
  41. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  42. package/src/bin/codeceptjs/command.js +1 -1
  43. package/src/bin/codeceptjs/helper.js +1 -1
  44. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  45. package/src/bin/cucumber-js/command.js +1 -1
  46. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  48. package/src/bin/cucumber-js/test-observability.js +1 -1
  49. package/src/bin/cucumber-js/test.setup.js +1 -1
  50. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  51. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  52. package/src/bin/integrations/command.js +1 -1
  53. package/src/bin/integrations/constants.js +1 -1
  54. package/src/bin/jest/command.js +1 -1
  55. package/src/bin/jest/customImplements/customCircus.js +1 -1
  56. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  57. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  58. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  59. package/src/bin/jest/jest.setup.js +1 -1
  60. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  61. package/src/bin/jest/test-observability/helper.js +1 -1
  62. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  63. package/src/bin/jest/test-observability/test-details.js +1 -1
  64. package/src/bin/jest/test_before.setup.js +1 -1
  65. package/src/bin/launcher/launcher.js +1 -1
  66. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  67. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  68. package/src/bin/mocha/command.js +1 -1
  69. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  70. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  71. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  72. package/src/bin/mocha/test.setup.js +1 -1
  73. package/src/bin/nightwatch/command.js +1 -1
  74. package/src/bin/playwright/accessibility-helper.js +1 -1
  75. package/src/bin/playwright/command.js +1 -1
  76. package/src/bin/playwright/globalSetup.js +1 -1
  77. package/src/bin/playwright/mock-process.js +1 -1
  78. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  79. package/src/bin/playwright/patches.js +1 -1
  80. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  81. package/src/bin/playwright/reporter/reporter.js +1 -1
  82. package/src/bin/playwright/reporter/test-details.js +1 -1
  83. package/src/bin/playwright/sessionDetails.js +1 -1
  84. package/src/bin/runner.js +1 -1
  85. package/src/bin/setup.js +1 -1
  86. package/src/bin/test-runner/index.js +1 -1
  87. package/src/bin/test-runner/runTest.js +1 -1
  88. package/src/bin/test-runner/testWorker.js +1 -1
  89. package/src/bin/utils/constants.js +1 -1
  90. package/src/bin/utils/log4jsAppender.js +1 -1
  91. package/src/bin/utils/logPatcher.js +1 -1
  92. package/src/bin/utils/logReportingAPI.js +1 -1
  93. package/src/bin/vanilla-js/command.js +1 -1
  94. package/src/browserStackSdk.js +1 -1
  95. package/src/helpers/BrowserStackSetup.js +1 -1
  96. package/src/helpers/accessibility-automation/constants.js +1 -1
  97. package/src/helpers/accessibility-automation/helper.js +1 -1
  98. package/src/helpers/accessibility-automation/scripts.js +1 -1
  99. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  100. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  101. package/src/helpers/ats/constants.js +1 -1
  102. package/src/helpers/ats/helper.js +1 -1
  103. package/src/helpers/capsMapping.js +1 -1
  104. package/src/helpers/central-scanner/constants.js +1 -1
  105. package/src/helpers/central-scanner/helpers.js +1 -1
  106. package/src/helpers/globals.js +1 -1
  107. package/src/helpers/helper.js +1 -1
  108. package/src/helpers/logger.js +1 -1
  109. package/src/helpers/patchHelper.js +1 -1
  110. package/src/helpers/patchHelpers.js +1 -1
  111. package/src/helpers/percy/Percy.js +1 -1
  112. package/src/helpers/percy/PercyBinary.js +1 -1
  113. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  114. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  115. package/src/helpers/percy/PercySDK.js +1 -1
  116. package/src/helpers/percy/index.js +1 -1
  117. package/src/helpers/percy/utils.js +1 -1
  118. package/src/helpers/performance/constants.js +1 -1
  119. package/src/helpers/performance/performance-tester.js +1 -1
  120. package/src/helpers/processHelper.js +1 -1
  121. package/src/helpers/request-spy.js +1 -1
  122. package/src/helpers/setKeepAlive.js +1 -1
  123. package/src/helpers/test-observability/constants.js +1 -1
  124. package/src/helpers/test-observability/error-handler.js +1 -1
  125. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  126. package/src/helpers/test-observability/sessionHandler.js +1 -1
  127. package/src/helpers/test-observability/utils.js +1 -1
  128. package/src/helpers/testhub/constants.js +1 -1
  129. package/src/helpers/testhub/testhubHandler.js +1 -1
  130. package/src/helpers/testhub/utils.js +1 -1
  131. package/src/helpers/timeoutPromise.js +1 -1
  132. package/src/helpers/utilities.js +1 -1
  133. package/src/helpers/w3cMapping.js +1 -1
  134. package/src/hubAllocationMethods.js +1 -1
  135. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a79_0x140779=a79_0x478f;function a79_0x2f27(){const _0x50156a=['599599nSyHgs','worker','captureError','SANTG','vGKeU','jsonReportDirPath','browserStackCwd','duration','lSHYF','flat','concat','unlinkSync','getEntries','oAlPe','map','readdirSync','</tbody></table></body></html>','message','IztaO','readdir','\x20for\x20all\x20processes\x20is\x20','CDYJw','toString','pDcyh','ItIde','6XYhrwZ','grtlH','start','</td></tr>','NNaVn','match','entryTypes','join','_errorEvents','OVPay','Time\x20for\x20','bacCj','env','OTAHx','PKqPr','performance-own.html','resolve','errors','debug','details','HJeCQ','oEFCx','splice','readFileSync','calculateTimesFromMultipleFiles','Error\x20in\x20writing\x20html\x20','NWesr','1799190evgNVT','performance-report','appendFileSync','stringify','</td><td>','-end','existsSync','eventsMap','DrvOp','mkdirSync','_events','Error\x20while\x20removing\x20files:\x20','jsonReportDirName','assign','platform','__platformCaps','stopMonitoring','apply','isEnabled','ELIEw','measureWrapper','push','jFrUI','1516TrsvQP','fs/promises','getPerformance','generateJSON','_measureEvents','OyFsJ','7041AevDLB','../processHelper','lIgmP','calculateTimeFromEvents','measures','iPqUW','pushErrors','winstonLogger','path','name','finalizeErrors','.json','jsonReportFileName','eaHlD','index','pFLFF','false','HTvcb','FKIbb','Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','pushPerfMeasures','buffered','eDNaA','buLmG','parse','DLoUD','forEach','376DgMrAx','measure','disconnect','errorReportDirName','started','observe','util','code','mark','_observer','1218995uLAsHp','OHXHI','slice','getEventsFromJSON','ljgVG','pFJMR','GuczZ','length','errorReportFileName','../logger','EWURl','lTNtw','XMVpF','2282632sZsjlg','Performance\x20report\x20is\x20at\x20','IbQaV','/performance-report-','ufmiX','cwd','reduce','QuskW','/error-report-','error-report','utf-8','format','log','all','lzREq','stack','meta','15YqnDjI','finalizePerfMeasures','-start','errorFile','getCleanedPerfEvents','generateHTMLReport','xhhfO','writeFileSync','1463310GAGDOT','end','function','startMonitoring','writeFile','toJSON','then','nLhFp'];a79_0x2f27=function(){return _0x50156a;};return a79_0x2f27();}(function(_0x46336f,_0x23db41){const _0x41e7b9=a79_0x478f,_0x9bd82e=_0x46336f();while(!![]){try{const _0x392e21=-parseInt(_0x41e7b9(0x120))/0x1*(-parseInt(_0x41e7b9(0xd7))/0x2)+parseInt(_0x41e7b9(0xdd))/0x3*(-parseInt(_0x41e7b9(0xf8))/0x4)+parseInt(_0x41e7b9(0x102))/0x5+-parseInt(_0x41e7b9(0xa5))/0x6*(-parseInt(_0x41e7b9(0x8c))/0x7)+-parseInt(_0x41e7b9(0x10f))/0x8+parseInt(_0x41e7b9(0x84))/0x9+parseInt(_0x41e7b9(0xc0))/0xa;if(_0x392e21===_0x23db41)break;else _0x9bd82e['push'](_0x9bd82e['shift']());}catch(_0x36127b){_0x9bd82e['push'](_0x9bd82e['shift']());}}}(a79_0x2f27,0x2b4ec));const fs=require('fs'),fsPromise=require(a79_0x140779(0xd8)),{performance,PerformanceObserver}=require('perf_hooks'),path=require(a79_0x140779(0xe5)),util=require(a79_0x140779(0xfe)),logger=require(a79_0x140779(0x10b))[a79_0x140779(0xe4)],{getProcessId,sleep,debug,getTestName}=require(a79_0x140779(0xde));class PerformanceTester{static [a79_0x140779(0x101)];static [a79_0x140779(0xca)]=[];static [a79_0x140779(0xdb)]=[];static [a79_0x140779(0xad)]=[];static [a79_0x140779(0xfc)]=![];static ['jsonReportDirName']=a79_0x140779(0xc1);static [a79_0x140779(0x91)]=process[a79_0x140779(0xb1)][a79_0x140779(0x92)]?path[a79_0x140779(0xac)](process[a79_0x140779(0xb1)][a79_0x140779(0x92)],this[a79_0x140779(0xcc)]):path[a79_0x140779(0xac)](process['cwd'](),a79_0x140779(0x11b),this[a79_0x140779(0xcc)]);static [a79_0x140779(0xfb)]=process[a79_0x140779(0xb1)][a79_0x140779(0x92)]?path[a79_0x140779(0xac)](process[a79_0x140779(0xb1)]['browserStackCwd'],a79_0x140779(0x118)):path['join'](process[a79_0x140779(0x114)](),a79_0x140779(0x118));static [a79_0x140779(0xe9)]=this[a79_0x140779(0x91)]+a79_0x140779(0x112)+getProcessId()+a79_0x140779(0xe8);static [a79_0x140779(0x10a)]=this[a79_0x140779(0xfb)]+'/error-report-'+getProcessId()+a79_0x140779(0xe8);static [a79_0x140779(0xb8)]={};static [a79_0x140779(0xc7)]={};static[a79_0x140779(0x87)](_0x1e3624=this['jsonReportDirPath']+a79_0x140779(0x112)+getProcessId()+'.json',_0xd9d5a9=this[a79_0x140779(0xfb)]+a79_0x140779(0x117)+getProcessId()+a79_0x140779(0xe8)){const _0x2276bc=a79_0x140779,_0x1d455c={};_0x1d455c[_0x2276bc(0x99)]=function(_0x570a31,_0x4c7427){return _0x570a31===_0x4c7427;},_0x1d455c[_0x2276bc(0x10d)]=_0x2276bc(0xf9),_0x1d455c[_0x2276bc(0x111)]=function(_0x2eccfc,_0x43575a){return _0x2eccfc+_0x43575a;},_0x1d455c['OVPay']=_0x2276bc(0xf0),_0x1d455c[_0x2276bc(0xba)]=_0x2276bc(0x86);const _0x10acde=_0x1d455c;try{!fs[_0x2276bc(0xc6)](this[_0x2276bc(0x91)])&&fs[_0x2276bc(0xc9)](this[_0x2276bc(0x91)]);}catch(_0x4c3ce3){logger['debug'](_0x10acde['IbQaV'](_0x10acde[_0x2276bc(0xae)],_0x4c3ce3));}if(this[_0x2276bc(0xfc)]||!this[_0x2276bc(0xd2)]())return;this[_0x2276bc(0x101)]=new PerformanceObserver(_0x4856fe=>{const _0x2e921c=_0x2276bc;_0x4856fe[_0x2e921c(0x98)]()['forEach'](_0x50b7b5=>{const _0x45b26a=_0x2e921c;if(_0x10acde[_0x45b26a(0x99)](_0x50b7b5['entryType'],_0x10acde[_0x45b26a(0x10d)])){let _0x4f8d76={};if(_0x50b7b5[_0x45b26a(0x89)])_0x4f8d76=_0x50b7b5[_0x45b26a(0x89)]();else for(const _0x2d2539 in _0x50b7b5){_0x4f8d76[_0x2d2539]=_0x50b7b5[_0x2d2539];}this[_0x45b26a(0xb8)][_0x50b7b5['name']]&&(_0x4f8d76=Object[_0x45b26a(0xcd)](_0x4f8d76,this['details'][_0x50b7b5['name']])),delete this[_0x45b26a(0xb8)][_0x50b7b5[_0x45b26a(0xe6)]],this[_0x45b26a(0xdb)][_0x45b26a(0xd5)](_0x4f8d76);}else this[_0x45b26a(0xca)][_0x45b26a(0xd5)](_0x50b7b5);});});const _0x3a909b={};_0x3a909b[_0x2276bc(0xf2)]=!![],_0x3a909b[_0x2276bc(0xab)]=[_0x10acde[_0x2276bc(0xba)],_0x10acde[_0x2276bc(0x10d)]],this[_0x2276bc(0x101)][_0x2276bc(0xfd)](_0x3a909b),this[_0x2276bc(0xfc)]=!![],this['jsonReportFileName']=_0x1e3624,this[_0x2276bc(0x10a)]=_0xd9d5a9;}static[a79_0x140779(0xd9)](){return performance;}static[a79_0x140779(0xe0)](_0x320e59,_0x13bb21){const _0x336e7f=a79_0x140779,_0x2b24cf={};_0x2b24cf['NNaVn']=function(_0x403cb4,_0x2caf2f){return _0x403cb4+_0x2caf2f;},_0x2b24cf['HJeCQ']=function(_0x26de10,_0x27bf21){return _0x26de10||_0x27bf21;},_0x2b24cf[_0x336e7f(0xc8)]=function(_0x27c755,_0x424eb6){return _0x27c755===_0x424eb6;};const _0x131b1f=_0x2b24cf,_0x48c543={};if(!_0x320e59||_0x131b1f[_0x336e7f(0xc8)](_0x320e59['length'],0x0))return;_0x320e59['map'](_0x259124=>{const _0x52ddaa=_0x336e7f;!_0x48c543[_0x259124[_0x52ddaa(0xe6)]]&&(_0x48c543[_0x259124[_0x52ddaa(0xe6)]]=0x0),_0x48c543[_0x259124[_0x52ddaa(0xe6)]]+=_0x259124[_0x52ddaa(0x93)];});const _0x369f5a=_0x13bb21['reduce']((_0x264e4e,_0x1b947f)=>{const _0x41fcc9=_0x336e7f;return _0x131b1f[_0x41fcc9(0xa9)](_0x48c543[_0x1b947f],_0x131b1f[_0x41fcc9(0xb9)](_0x264e4e,0x0));},0x0);return _0x369f5a;}static async[a79_0x140779(0xbd)](_0x225fb5,_0x20c5f6){const _0x42540e=a79_0x140779,_0x2f2eab={'grtlH':function(_0xe62004,_0x399fd7){return _0xe62004+_0x399fd7;},'QuskW':function(_0x6a31e8,_0x418b9e){return _0x6a31e8||_0x418b9e;},'DLoUD':function(_0x4f72ae,_0x56ecdc){return _0x4f72ae===_0x56ecdc;},'OyFsJ':function(_0x42e7d5,_0x5efce9){return _0x42e7d5(_0x5efce9);}};if(!_0x225fb5||_0x2f2eab[_0x42540e(0xf6)](_0x225fb5['length'],0x0))return 0x0;const _0x16e7ed=[];for(const _0x2a2235 of _0x225fb5){const _0x514583=path['join']('.',_0x2a2235);try{const _0x5e1e75=this[_0x42540e(0x105)](_0x514583);_0x5e1e75['map'](_0x163e82=>{const _0x8a32f4=_0x42540e;!_0x16e7ed[_0x163e82[_0x8a32f4(0xe6)]]&&(_0x16e7ed[_0x163e82[_0x8a32f4(0xe6)]]=0x0),_0x16e7ed[_0x163e82['name']]+=_0x163e82[_0x8a32f4(0x93)];});}catch(_0x212c07){_0x2f2eab[_0x42540e(0xdc)](debug,'Error\x20in\x20doing\x20csv\x20operations:\x20'+_0x212c07['toString']());}}const _0x203b5c=_0x20c5f6[_0x42540e(0x115)]((_0x1279d3,_0x3e2bf2)=>{const _0x541790=_0x42540e;return _0x2f2eab[_0x541790(0xa6)](_0x16e7ed[_0x3e2bf2],_0x2f2eab[_0x541790(0x116)](_0x1279d3,0x0));},0x0);return _0x2f2eab['OyFsJ'](debug,_0x42540e(0xaf)+_0x20c5f6+_0x42540e(0xa0)+_0x203b5c),_0x203b5c;}static[a79_0x140779(0x105)](_0x51828e){const _0x1938f9=a79_0x140779;if(!fs[_0x1938f9(0xc6)](_0x51828e))return[];return JSON['parse'](fs[_0x1938f9(0xbc)](_0x51828e)[_0x1938f9(0xa2)]());}static async['stopAndGenerate'](_0x33165a=a79_0x140779(0xb4),_0x3f6723=null){const _0x169a49=a79_0x140779,_0x57cd46={'PKqPr':function(_0x40c353,_0x4d2007){return _0x40c353(_0x4d2007);},'vGKeU':function(_0x4276c4,_0x2944b7){return _0x4276c4(_0x2944b7);},'XMVpF':function(_0x5e1ac3,_0xe5eb4c){return _0x5e1ac3(_0xe5eb4c);}};if(!this[_0x169a49(0xfc)])return;await _0x57cd46[_0x169a49(0x10e)](sleep,0x1e),this[_0x169a49(0x101)][_0x169a49(0xfa)](),this['started']=![],this['generateJSON'](this[_0x169a49(0xca)]);const _0x245c49=this[_0x169a49(0x125)](this[_0x169a49(0xca)]),_0x48e7c4=path[_0x169a49(0xac)](process[_0x169a49(0x114)](),_0x33165a);fs[_0x169a49(0x88)](_0x48e7c4,_0x245c49,_0x1d04fd=>{const _0x5be4ce=_0x169a49;if(_0x1d04fd){_0x57cd46[_0x5be4ce(0xb3)](debug,_0x5be4ce(0xbe)+_0x1d04fd[_0x5be4ce(0xa2)]());return;}_0x57cd46[_0x5be4ce(0x90)](debug,_0x5be4ce(0x110)+_0x48e7c4);});if(_0x3f6723)return this['calculateTimeFromEvents'](this[_0x169a49(0xca)],_0x3f6723);}static[a79_0x140779(0x125)](_0x64091d){const _0x4882ea=a79_0x140779,_0xfdab9d={};_0xfdab9d[_0x4882ea(0x94)]='<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>',_0xfdab9d['xhhfO']='<h1>Performance\x20Report</h1>',_0xfdab9d[_0x4882ea(0x113)]='<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>',_0xfdab9d[_0x4882ea(0xa4)]=_0x4882ea(0x9c);const _0x523d03=_0xfdab9d;let _0x4b77f7=_0x523d03[_0x4882ea(0x94)];return _0x4b77f7+=_0x523d03[_0x4882ea(0x126)],_0x4b77f7+=_0x523d03[_0x4882ea(0x113)],_0x64091d[_0x4882ea(0xf7)](_0x5d7c26=>{const _0x38a2b5=_0x4882ea;_0x4b77f7+='<tr><td>'+_0x5d7c26[_0x38a2b5(0xe6)]+_0x38a2b5(0xc4)+_0x5d7c26[_0x38a2b5(0x93)]+_0x38a2b5(0xa8);}),_0x4b77f7+=_0x523d03[_0x4882ea(0xa4)],_0x4b77f7;}static[a79_0x140779(0xda)](_0xbf1449){const _0xa46ba3=a79_0x140779;if(!this[_0xa46ba3(0xe9)])return;const _0x33e6aa={};_0xbf1449['map'](_0x53d0eb=>{const _0xb12306=_0xa46ba3;!_0x33e6aa[_0x53d0eb['name']]&&(_0x33e6aa[_0x53d0eb[_0xb12306(0xe6)]]=0x0),_0x33e6aa[_0x53d0eb[_0xb12306(0xe6)]]+=_0x53d0eb[_0xb12306(0x93)];});const _0x94e8f8=Object['entries'](_0x33e6aa)[_0xa46ba3(0x9a)](([_0x326ba6,_0x1aa9ee])=>{const _0x2d839c=_0xa46ba3,_0x1d82e1={};return _0x1d82e1[_0x2d839c(0xe6)]=_0x326ba6,_0x1d82e1[_0x2d839c(0x93)]=_0x1aa9ee,_0x1d82e1;});fs[_0xa46ba3(0x83)](this['jsonReportFileName'],JSON['stringify'](_0x94e8f8));}static['isEnabled'](){const _0x474e1f=a79_0x140779,_0xaf3278={};_0xaf3278[_0x474e1f(0x9e)]=function(_0x53cabf,_0x4ad010){return _0x53cabf===_0x4ad010;},_0xaf3278[_0x474e1f(0xdf)]=_0x474e1f(0xed);const _0x2d71f0=_0xaf3278;return!_0x2d71f0[_0x474e1f(0x9e)](process[_0x474e1f(0xb1)]['BROWSERSTACK_SDK_INSTRUMENTATION'],_0x2d71f0[_0x474e1f(0xdf)]);}static[a79_0x140779(0xf9)](_0x3ae7ae,_0x1302b4,_0x57cf2e=null,_0x5bfd74={},_0x59d7d4=null){const _0x22db19=a79_0x140779,_0x3d48f0={'pFLFF':function(_0x16fae8,_0x3648bf){return _0x16fae8(_0x3648bf);},'pDcyh':function(_0x54604e,_0x4f21ae){return _0x54604e instanceof _0x4f21ae;}};try{if(this[_0x22db19(0xfc)]&&this['isEnabled']()){let _0x27599c=_0x3ae7ae;_0x57cf2e&&(_0x27599c=_0x3ae7ae+'['+JSON[_0x22db19(0xc3)](_0x57cf2e)+']');PerformanceTester[_0x22db19(0xa7)](_0x27599c),this['details']&&(this[_0x22db19(0xb8)][_0x27599c]=_0x5bfd74);try{const _0x2a7bde=_0x1302b4[_0x22db19(0xd1)](null,_0x59d7d4);if(_0x3d48f0[_0x22db19(0xa3)](_0x2a7bde,Promise))return new Promise((_0x4b99ce,_0x20b9e6)=>{const _0x53eace=_0x22db19,_0x5d1665={'bacCj':function(_0x46c692,_0x40a422){const _0x111a6e=a79_0x478f;return _0x3d48f0[_0x111a6e(0xec)](_0x46c692,_0x40a422);}};_0x2a7bde[_0x53eace(0x8a)](_0x6931c2=>{const _0x1670d4=_0x53eace;PerformanceTester[_0x1670d4(0x85)](_0x27599c),_0x5d1665[_0x1670d4(0xb0)](_0x4b99ce,_0x6931c2);})['catch'](_0xf7d211=>{const _0x5acb7d=_0x53eace;PerformanceTester[_0x5acb7d(0x85)](_0x27599c,![],util[_0x5acb7d(0x11a)](_0xf7d211)),_0x5d1665[_0x5acb7d(0xb0)](_0x20b9e6,_0xf7d211);});});;return PerformanceTester[_0x22db19(0x85)](_0x27599c),_0x2a7bde;}catch(_0x3abc2f){PerformanceTester[_0x22db19(0x85)](_0x27599c,![],util['format'](_0x3abc2f));throw _0x3abc2f;}};return _0x1302b4['apply'](null,_0x59d7d4);}catch(_0x50f256){return _0x1302b4[_0x22db19(0xd1)](null,_0x59d7d4);}}static[a79_0x140779(0xd4)](_0x489199,_0x3de061,_0x4b8c51={}){const _0x5ead4d=a79_0x140779,_0x20bfa9={'CDYJw':function(_0x18f57d){return _0x18f57d();}},_0x385bf7=this;return _0x4b8c51[_0x5ead4d(0x8d)]=_0x20bfa9[_0x5ead4d(0xa1)](getProcessId),_0x4b8c51['testName']=_0x20bfa9[_0x5ead4d(0xa1)](getTestName),_0x4b8c51[_0x5ead4d(0xce)]=global[_0x5ead4d(0xcf)]&&global[_0x5ead4d(0xcf)][_0x5ead4d(0xeb)],function(){const _0x334e69=_0x5ead4d,_0x4cff8b=[_0x489199,_0x3de061,null,_0x4b8c51]['concat'](arguments);return _0x385bf7[_0x334e69(0xf9)][_0x334e69(0xd1)](_0x385bf7,_0x4cff8b);};}static['getCleanedPerfEvents'](){const _0x4d7380=a79_0x140779,_0x35fada=/(^.*)\[(.*)\]$/,_0x4b4ae0={},_0x5e5e26={},_0x4feabd=[],_0x4e21bf=this[_0x4d7380(0xdb)][_0x4d7380(0xbb)](0x0,this[_0x4d7380(0xdb)][_0x4d7380(0x109)]);for(const _0x5956fe of _0x4e21bf){const _0x4f90f2=_0x5956fe[_0x4d7380(0xe6)][_0x4d7380(0xaa)](_0x35fada),_0xfc01a6=Object[_0x4d7380(0xcd)]({},_0x5956fe);_0x4f90f2&&(_0xfc01a6['name']=_0x4f90f2[0x1],_0xfc01a6[_0x4d7380(0x11f)]=JSON[_0x4d7380(0xf5)](_0x4f90f2[0x2])),_0x4feabd[_0x4d7380(0xd5)](_0xfc01a6);}return _0x4feabd;}static[a79_0x140779(0xf1)](){const _0x30a052=a79_0x140779,_0x2fae4a={};_0x2fae4a['NWesr']=function(_0x5840df,_0x498994){return _0x5840df+_0x498994;},_0x2fae4a['eDNaA']=_0x30a052(0xcb),_0x2fae4a[_0x30a052(0xd3)]=function(_0x4a3bee,_0x2d7d73){return _0x4a3bee===_0x2d7d73;},_0x2fae4a[_0x30a052(0x8b)]=function(_0x45b977,_0xbe5c09){return _0x45b977+_0xbe5c09;};const _0x361a1b=_0x2fae4a;try{if(fs[_0x30a052(0xc6)](this[_0x30a052(0x91)])){const _0x5cf26b=fs[_0x30a052(0x9b)](this['jsonReportDirPath']);for(const _0x299d28 of _0x5cf26b){fs[_0x30a052(0x97)](path[_0x30a052(0xac)](this[_0x30a052(0x91)],_0x299d28));}}}catch(_0x4b784a){logger[_0x30a052(0xb7)](_0x361a1b[_0x30a052(0xbf)](_0x361a1b[_0x30a052(0xf3)],_0x4b784a));}if(_0x361a1b[_0x30a052(0xd3)](this[_0x30a052(0xdb)][_0x30a052(0x109)],0x0))return;const _0x266c4d=this[_0x30a052(0x124)](),_0x58284f=JSON['stringify'](_0x266c4d),_0x1676ca=_0x361a1b['nLhFp'](_0x58284f[_0x30a052(0x104)](0x1,-0x1),',');fs[_0x30a052(0xc2)](this[_0x30a052(0xe9)],_0x1676ca);}static async[a79_0x140779(0x121)](){const _0x35f098=a79_0x140779,_0x1f5b44={};_0x1f5b44[_0x35f098(0xea)]=function(_0x478007,_0x56ca71){return _0x478007===_0x56ca71;},_0x1f5b44['FKIbb']=function(_0x482281,_0x863f4e){return _0x482281>_0x863f4e;};const _0x555c82=_0x1f5b44;if(!this[_0x35f098(0xfc)]||_0x555c82[_0x35f098(0xea)](this['_measureEvents'][_0x35f098(0x109)],0x0))return[];if(!fs[_0x35f098(0xc6)](this[_0x35f098(0x91)]))return this[_0x35f098(0xdb)];const _0x4b457e=(await fsPromise[_0x35f098(0x9f)](this['jsonReportDirPath']))[_0x35f098(0x9a)](_0x1406e7=>path[_0x35f098(0xb5)](this[_0x35f098(0x91)],_0x1406e7));let _0x422426=(await Promise[_0x35f098(0x11c)](_0x4b457e[_0x35f098(0x9a)](_0x44d9d1=>fsPromise['readFile'](_0x44d9d1,_0x35f098(0x119)))))[_0x35f098(0x9a)](_0x1dc29d=>'['+_0x1dc29d['slice'](0x0,-0x1)+']')[_0x35f098(0x9a)](_0x48ed84=>JSON[_0x35f098(0xf5)](_0x48ed84))[_0x35f098(0x95)]();return _0x555c82[_0x35f098(0xef)](this[_0x35f098(0xdb)][_0x35f098(0x109)],0x0)&&(_0x422426=_0x422426[_0x35f098(0x96)](this[_0x35f098(0x124)]())),this['_observer'][_0x35f098(0xfa)](),_0x422426;}static[a79_0x140779(0xe3)](){const _0x30e9ff=a79_0x140779,_0x454790={};_0x454790[_0x30e9ff(0x8f)]=function(_0x228f7c,_0x636468){return _0x228f7c===_0x636468;},_0x454790[_0x30e9ff(0xee)]=function(_0x5d0b8f,_0x931a6d){return _0x5d0b8f+_0x931a6d;};const _0x1b6faa=_0x454790;if(_0x1b6faa[_0x30e9ff(0x8f)](this['_errorEvents'][_0x30e9ff(0x109)],0x0))return;const _0x577319=JSON[_0x30e9ff(0xc3)](this['_errorEvents']),_0x4bf8af=_0x1b6faa[_0x30e9ff(0xee)](_0x577319[_0x30e9ff(0x104)](0x1,-0x1),',');fs[_0x30e9ff(0xc2)](this[_0x30e9ff(0x123)],_0x4bf8af);}static[a79_0x140779(0xe7)](){const _0x229a7e=a79_0x140779,_0x5a8808={};_0x5a8808[_0x229a7e(0x108)]=function(_0x2b7f58,_0x841f8d){return _0x2b7f58>_0x841f8d;};const _0x5cb30e=_0x5a8808;if(!fs[_0x229a7e(0xc6)](this[_0x229a7e(0x10a)]))return this['_errorEvents'];let _0x35e110=fs[_0x229a7e(0xbc)](this[_0x229a7e(0x10a)])[_0x229a7e(0xa2)]();_0x35e110='['+_0x35e110[_0x229a7e(0x104)](0x0,-0x1)+']';let _0x66f82d=JSON[_0x229a7e(0xf5)](_0x35e110);return _0x5cb30e[_0x229a7e(0x108)](this[_0x229a7e(0xad)][_0x229a7e(0x109)],0x0)&&(_0x66f82d=_0x66f82d[_0x229a7e(0x96)](this['_errorEvents'])),fs['unlinkSync'](this['errorReportFileName']),_0x66f82d;}static[a79_0x140779(0x8e)](_0x4016fb){const _0x240b31=a79_0x140779;if(!this['isEnabled']())return;this[_0x240b31(0xad)][_0x240b31(0xd5)]({'message':_0x4016fb[_0x240b31(0x9d)],'trace':_0x4016fb[_0x240b31(0x11e)],'code':_0x4016fb[_0x240b31(0xff)]||null,'time':new Date()});}static[a79_0x140779(0xd0)](){const _0x1d7ee8=a79_0x140779;try{if(!this[_0x1d7ee8(0xd2)]())return;this[_0x1d7ee8(0x101)][_0x1d7ee8(0xfa)](),this[_0x1d7ee8(0xf1)](),this[_0x1d7ee8(0xe3)]();}catch(_0x50b1ad){logger[_0x1d7ee8(0xb7)]('Error\x20stopping\x20monitoring\x20'+util['format'](_0x50b1ad));}}static async['finalize'](){const _0x4f9e24=a79_0x140779,_0x5ef30c={'ljgVG':function(_0x36f1a2,_0x1f4619){return _0x36f1a2(_0x1f4619);}};await _0x5ef30c[_0x4f9e24(0x106)](sleep,0x1e);const _0x32beed=await this['finalizePerfMeasures'](),_0x17a99f=this[_0x4f9e24(0xe7)]();if(!this[_0x4f9e24(0xd2)]()){const _0x48084b={};return _0x48084b[_0x4f9e24(0xe1)]=[],_0x48084b['errors']=[],_0x48084b;}const _0x15a09a={};return _0x15a09a[_0x4f9e24(0xe1)]=_0x32beed,_0x15a09a[_0x4f9e24(0xb6)]=_0x17a99f,_0x15a09a;}static[a79_0x140779(0xa7)](_0x58289a){const _0x40a833=a79_0x140779,_0x3c8e1f={};_0x3c8e1f[_0x40a833(0x103)]=function(_0x325557,_0x3b7939){return _0x325557+_0x3b7939;},_0x3c8e1f['iPqUW']=_0x40a833(0x122);const _0x4c1822=_0x3c8e1f,_0x5e0a63=_0x4c1822[_0x40a833(0x103)](_0x58289a,_0x4c1822[_0x40a833(0xe2)]);if(this[_0x40a833(0xc7)][_0x5e0a63])return;performance[_0x40a833(0x100)](_0x5e0a63),this[_0x40a833(0xc7)][_0x5e0a63]=0x1;}static[a79_0x140779(0x85)](_0x572774,_0x4df9f9=!![],_0x1a8d45=null,_0x56b42e={}){const _0x3af97e=a79_0x140779,_0x46814f={'eUzkq':function(_0x363aa3,_0x1e4e64){return _0x363aa3+_0x1e4e64;},'buLmG':_0x3af97e(0xc5),'jFrUI':function(_0x30d52e,_0x4c2614){return _0x30d52e+_0x4c2614;},'EWURl':_0x3af97e(0x122),'OTAHx':function(_0x3f7827,_0x22e48a){return _0x3f7827+_0x22e48a;},'lzREq':function(_0xdb3cbf){return _0xdb3cbf();},'pFJMR':function(_0x4da597){return _0x4da597();}};performance[_0x3af97e(0x100)](_0x46814f['eUzkq'](_0x572774,_0x46814f[_0x3af97e(0xf4)])),performance['measure'](_0x572774,_0x46814f[_0x3af97e(0xd6)](_0x572774,_0x46814f[_0x3af97e(0x10c)]),_0x46814f[_0x3af97e(0xb2)](_0x572774,_0x46814f['buLmG']));const _0x236a2b={};_0x236a2b['success']=_0x4df9f9,_0x236a2b['failure']=_0x1a8d45,this['details'][_0x572774]=Object[_0x3af97e(0xcd)](_0x236a2b,Object[_0x3af97e(0xcd)](Object[_0x3af97e(0xcd)]({'worker':_0x46814f[_0x3af97e(0x11d)](getProcessId),'platform':global[_0x3af97e(0xcf)]&&global[_0x3af97e(0xcf)][_0x3af97e(0xeb)],'testName':_0x46814f[_0x3af97e(0x107)](getTestName)},_0x56b42e),this[_0x3af97e(0xb8)][_0x572774]||{}));}}function a79_0x478f(_0xb22c18,_0x26af0b){const _0x2f27f2=a79_0x2f27();return a79_0x478f=function(_0x478fd2,_0x59174d){_0x478fd2=_0x478fd2-0x83;let _0x4c8539=_0x2f27f2[_0x478fd2];return _0x4c8539;},a79_0x478f(_0xb22c18,_0x26af0b);}module['exports']=PerformanceTester;
1
+ const a79_0x4fb1f8=a79_0x33cf;(function(_0x561ac0,_0x39d323){const _0x1cd346=a79_0x33cf,_0x4c3e92=_0x561ac0();while(!![]){try{const _0x46bd4d=parseInt(_0x1cd346(0x107))/0x1+-parseInt(_0x1cd346(0x116))/0x2*(parseInt(_0x1cd346(0x147))/0x3)+parseInt(_0x1cd346(0x123))/0x4+-parseInt(_0x1cd346(0x16d))/0x5*(parseInt(_0x1cd346(0x18f))/0x6)+-parseInt(_0x1cd346(0x117))/0x7+-parseInt(_0x1cd346(0x183))/0x8+parseInt(_0x1cd346(0x14b))/0x9*(parseInt(_0x1cd346(0x159))/0xa);if(_0x46bd4d===_0x39d323)break;else _0x4c3e92['push'](_0x4c3e92['shift']());}catch(_0x2d00aa){_0x4c3e92['push'](_0x4c3e92['shift']());}}}(a79_0x35c3,0xedd11));function a79_0x35c3(){const _0x114776=['104364DKoYEd','Performance\x20report\x20is\x20at\x20','readdir','../logger','assign','index','calculateTimesFromMultipleFiles','finalizeErrors','ORhKq','errorReportDirName','ZrYCn','stopMonitoring','false','stack','jsonReportDirName','1656951PhcjMH','BYTbt','start','message','fvTed','details','getCleanedPerfEvents','mMGEt','duration','resolve','lwRoA','readFile','<h1>Performance\x20Report</h1>','diVZU','Error\x20in\x20writing\x20html\x20','46vPEmlo','8439935hMWqyf','-start','debug','readdirSync','browserStackCwd','NlyDJ','cwd','rBASk','fs/promises','SIosy','</td></tr>','startMonitoring','6572136kEtmjJ','\x20for\x20all\x20processes\x20is\x20','dhfvf','aiByf','jsonReportFileName','parse','mark','JnxGz','errorFile','format','performance-own.html','_events','kwyQo','push','qmpii','fOkmA','__platformCaps','testName','errorReportFileName','length','/performance-report-','IYOvS','name','unlinkSync','ZFleg','entryType','Error\x20stopping\x20monitoring\x20','all','perf_hooks','jsonReportDirPath','HftKC','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','-end','GlDZJ','slice','YRTdS','240444IbAyGw','_observer','GdecB','code','45TwdyHJ','VsSNK','toString','end','measureWrapper','ugyPa','Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','.json','forEach','stopAndGenerate','generateJSON','failure','pCYpD','existsSync','3543590jetlgR','rtDhm','measures','finalizePerfMeasures','Time\x20for\x20','/error-report-','apply','platform','JRpVr','winstonLogger','splice','measure','match','_errorEvents','_measureEvents','TnSXB','calculateTimeFromEvents','log','</tbody></table></body></html>','flat','30CfzncY','entries','join','getEventsFromJSON','AtHFd','appendFileSync','map','fOxmM','disconnect','error-report','getPerformance','readFileSync','function','utf-8','performance-report','stringify','env','YLLQo','YcIUa','dXtXf','pushPerfMeasures','AcjrQ','7553680GPQHkj','isEnabled','eventsMap','reduce','started','errors','toJSON','AwnnR','PmjiK','ihmvn','mkdirSync','vYHjW'];a79_0x35c3=function(){return _0x114776;};return a79_0x35c3();}const fs=require('fs'),fsPromise=require(a79_0x4fb1f8(0x11f)),{performance,PerformanceObserver}=require(a79_0x4fb1f8(0x13f)),path=require('path'),util=require('util'),logger=require(a79_0x4fb1f8(0xfb))[a79_0x4fb1f8(0x162)],{getProcessId,sleep,debug,getTestName}=require('../processHelper');function a79_0x33cf(_0x2b027a,_0x29dbd2){const _0x35c3c0=a79_0x35c3();return a79_0x33cf=function(_0x33cf8b,_0x58daac){_0x33cf8b=_0x33cf8b-0xfa;let _0x1bc8c7=_0x35c3c0[_0x33cf8b];return _0x1bc8c7;},a79_0x33cf(_0x2b027a,_0x29dbd2);}class PerformanceTester{static [a79_0x4fb1f8(0x148)];static [a79_0x4fb1f8(0x12e)]=[];static [a79_0x4fb1f8(0x167)]=[];static [a79_0x4fb1f8(0x166)]=[];static [a79_0x4fb1f8(0x187)]=![];static ['jsonReportDirName']=a79_0x4fb1f8(0x17b);static [a79_0x4fb1f8(0x140)]=process[a79_0x4fb1f8(0x17d)][a79_0x4fb1f8(0x11b)]?path[a79_0x4fb1f8(0x16f)](process[a79_0x4fb1f8(0x17d)]['browserStackCwd'],this['jsonReportDirName']):path[a79_0x4fb1f8(0x16f)](process['cwd'](),a79_0x4fb1f8(0x16a),this[a79_0x4fb1f8(0x106)]);static [a79_0x4fb1f8(0x101)]=process['env'][a79_0x4fb1f8(0x11b)]?path[a79_0x4fb1f8(0x16f)](process['env'][a79_0x4fb1f8(0x11b)],a79_0x4fb1f8(0x176)):path[a79_0x4fb1f8(0x16f)](process[a79_0x4fb1f8(0x11d)](),a79_0x4fb1f8(0x176));static [a79_0x4fb1f8(0x127)]=this[a79_0x4fb1f8(0x140)]+'/performance-report-'+getProcessId()+a79_0x4fb1f8(0x152);static [a79_0x4fb1f8(0x135)]=this['errorReportDirName']+a79_0x4fb1f8(0x15e)+getProcessId()+'.json';static [a79_0x4fb1f8(0x10c)]={};static [a79_0x4fb1f8(0x185)]={};static[a79_0x4fb1f8(0x122)](_0x371920=this[a79_0x4fb1f8(0x140)]+a79_0x4fb1f8(0x137)+getProcessId()+'.json',_0x12c56e=this[a79_0x4fb1f8(0x101)]+a79_0x4fb1f8(0x15e)+getProcessId()+a79_0x4fb1f8(0x152)){const _0x5a66c4=a79_0x4fb1f8,_0x46c968={};_0x46c968[_0x5a66c4(0x180)]=function(_0x188bd0,_0x3fb8cc){return _0x188bd0===_0x3fb8cc;},_0x46c968['pCYpD']=_0x5a66c4(0x164),_0x46c968[_0x5a66c4(0x138)]=function(_0x456f43,_0x10764a){return _0x456f43+_0x10764a;},_0x46c968[_0x5a66c4(0x125)]=_0x5a66c4(0x151),_0x46c968[_0x5a66c4(0x108)]=_0x5a66c4(0x179);const _0x400a02=_0x46c968;try{!fs[_0x5a66c4(0x158)](this[_0x5a66c4(0x140)])&&fs[_0x5a66c4(0x18d)](this[_0x5a66c4(0x140)]);}catch(_0x5d62f7){logger['debug'](_0x400a02[_0x5a66c4(0x138)](_0x400a02[_0x5a66c4(0x125)],_0x5d62f7));}if(this[_0x5a66c4(0x187)]||!this['isEnabled']())return;this[_0x5a66c4(0x148)]=new PerformanceObserver(_0x436a6d=>{const _0x2fa1d1=_0x5a66c4;_0x436a6d['getEntries']()[_0x2fa1d1(0x153)](_0x4fdbd9=>{const _0x5e5ddd=_0x2fa1d1;if(_0x400a02[_0x5e5ddd(0x180)](_0x4fdbd9[_0x5e5ddd(0x13c)],_0x400a02[_0x5e5ddd(0x157)])){let _0x22600f={};if(_0x4fdbd9[_0x5e5ddd(0x189)])_0x22600f=_0x4fdbd9['toJSON']();else for(const _0x419fa0 in _0x4fdbd9){_0x22600f[_0x419fa0]=_0x4fdbd9[_0x419fa0];}this[_0x5e5ddd(0x10c)][_0x4fdbd9['name']]&&(_0x22600f=Object[_0x5e5ddd(0xfc)](_0x22600f,this['details'][_0x4fdbd9['name']])),delete this[_0x5e5ddd(0x10c)][_0x4fdbd9['name']],this[_0x5e5ddd(0x167)][_0x5e5ddd(0x130)](_0x22600f);}else this['_events'][_0x5e5ddd(0x130)](_0x4fdbd9);});});const _0x58c4ac={};_0x58c4ac['buffered']=!![],_0x58c4ac['entryTypes']=[_0x400a02[_0x5a66c4(0x108)],_0x400a02[_0x5a66c4(0x157)]],this[_0x5a66c4(0x148)]['observe'](_0x58c4ac),this[_0x5a66c4(0x187)]=!![],this['jsonReportFileName']=_0x371920,this[_0x5a66c4(0x135)]=_0x12c56e;}static[a79_0x4fb1f8(0x177)](){return performance;}static[a79_0x4fb1f8(0x169)](_0x20cb9b,_0x47edd0){const _0x3cef0f=a79_0x4fb1f8,_0x57f80e={};_0x57f80e['mMGEt']=function(_0x4076ae,_0x28ca46){return _0x4076ae+_0x28ca46;},_0x57f80e[_0x3cef0f(0x146)]=function(_0x4cdd13,_0x592e4c){return _0x4cdd13||_0x592e4c;},_0x57f80e[_0x3cef0f(0x150)]=function(_0xddb064,_0x5aa205){return _0xddb064===_0x5aa205;};const _0x2c5fe8=_0x57f80e,_0x4cc60c={};if(!_0x20cb9b||_0x2c5fe8[_0x3cef0f(0x150)](_0x20cb9b[_0x3cef0f(0x136)],0x0))return;_0x20cb9b[_0x3cef0f(0x173)](_0x17624e=>{const _0x413dcc=_0x3cef0f;!_0x4cc60c[_0x17624e[_0x413dcc(0x139)]]&&(_0x4cc60c[_0x17624e[_0x413dcc(0x139)]]=0x0),_0x4cc60c[_0x17624e['name']]+=_0x17624e['duration'];});const _0x4837db=_0x47edd0[_0x3cef0f(0x186)]((_0x5491fd,_0x57acdd)=>{const _0x2edcb9=_0x3cef0f;return _0x2c5fe8[_0x2edcb9(0x10e)](_0x4cc60c[_0x57acdd],_0x2c5fe8[_0x2edcb9(0x146)](_0x5491fd,0x0));},0x0);return _0x4837db;}static async[a79_0x4fb1f8(0xfe)](_0x3dde5c,_0x44fd30){const _0x7b2ddc=a79_0x4fb1f8,_0x2c0ebf={'fOxmM':function(_0x5cacee,_0x1ab077){return _0x5cacee+_0x1ab077;},'ihmvn':function(_0x454fd0,_0x293a58){return _0x454fd0||_0x293a58;},'SIosy':function(_0x4059f0,_0x4a2139){return _0x4059f0===_0x4a2139;},'PmjiK':function(_0xd05e56,_0x3e67d6){return _0xd05e56(_0x3e67d6);},'TnSXB':function(_0x3cd9bb,_0x5b17de){return _0x3cd9bb(_0x5b17de);}};if(!_0x3dde5c||_0x2c0ebf[_0x7b2ddc(0x120)](_0x3dde5c[_0x7b2ddc(0x136)],0x0))return 0x0;const _0x6f1ace=[];for(const _0x59d916 of _0x3dde5c){const _0x140ca5=path[_0x7b2ddc(0x16f)]('.',_0x59d916);try{const _0x225f4c=this['getEventsFromJSON'](_0x140ca5);_0x225f4c[_0x7b2ddc(0x173)](_0x5dd592=>{const _0x4445f5=_0x7b2ddc;!_0x6f1ace[_0x5dd592[_0x4445f5(0x139)]]&&(_0x6f1ace[_0x5dd592['name']]=0x0),_0x6f1ace[_0x5dd592[_0x4445f5(0x139)]]+=_0x5dd592['duration'];});}catch(_0x292872){_0x2c0ebf[_0x7b2ddc(0x18b)](debug,'Error\x20in\x20doing\x20csv\x20operations:\x20'+_0x292872[_0x7b2ddc(0x14d)]());}}const _0x1cbd01=_0x44fd30[_0x7b2ddc(0x186)]((_0x1bf296,_0x2907c1)=>{const _0x3a11ef=_0x7b2ddc;return _0x2c0ebf[_0x3a11ef(0x174)](_0x6f1ace[_0x2907c1],_0x2c0ebf[_0x3a11ef(0x18c)](_0x1bf296,0x0));},0x0);return _0x2c0ebf[_0x7b2ddc(0x168)](debug,_0x7b2ddc(0x15d)+_0x44fd30+_0x7b2ddc(0x124)+_0x1cbd01),_0x1cbd01;}static[a79_0x4fb1f8(0x170)](_0x50bacb){const _0x224c6e=a79_0x4fb1f8;if(!fs[_0x224c6e(0x158)](_0x50bacb))return[];return JSON['parse'](fs['readFileSync'](_0x50bacb)[_0x224c6e(0x14d)]());}static async[a79_0x4fb1f8(0x154)](_0x3d12ad=a79_0x4fb1f8(0x12d),_0x4764de=null){const _0x3b73c5=a79_0x4fb1f8,_0x17e442={'vYHjW':function(_0x3a1dec,_0x5c5c2f){return _0x3a1dec(_0x5c5c2f);},'ORhKq':function(_0x27e809,_0xf6874f){return _0x27e809(_0xf6874f);}};if(!this[_0x3b73c5(0x187)])return;await _0x17e442[_0x3b73c5(0x100)](sleep,0x1e),this['_observer'][_0x3b73c5(0x175)](),this['started']=![],this['generateJSON'](this['_events']);const _0x1ca232=this['generateHTMLReport'](this[_0x3b73c5(0x12e)]),_0x2b8612=path[_0x3b73c5(0x16f)](process[_0x3b73c5(0x11d)](),_0x3d12ad);fs['writeFile'](_0x2b8612,_0x1ca232,_0x4531aa=>{const _0x4462bc=_0x3b73c5;if(_0x4531aa){_0x17e442[_0x4462bc(0x18e)](debug,_0x4462bc(0x115)+_0x4531aa['toString']());return;}_0x17e442[_0x4462bc(0x18e)](debug,_0x4462bc(0x190)+_0x2b8612);});if(_0x4764de)return this[_0x3b73c5(0x169)](this[_0x3b73c5(0x12e)],_0x4764de);}static['generateHTMLReport'](_0x206d67){const _0x2c124d=a79_0x4fb1f8,_0x2e0b57={};_0x2e0b57[_0x2c124d(0x13b)]='<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>',_0x2e0b57[_0x2c124d(0x114)]=_0x2c124d(0x113),_0x2e0b57['HftKC']=_0x2c124d(0x142),_0x2e0b57[_0x2c124d(0x102)]=_0x2c124d(0x16b);const _0x14c2b8=_0x2e0b57;let _0x531cf8=_0x14c2b8['ZFleg'];return _0x531cf8+=_0x14c2b8[_0x2c124d(0x114)],_0x531cf8+=_0x14c2b8[_0x2c124d(0x141)],_0x206d67[_0x2c124d(0x153)](_0x10bc5b=>{const _0x2c2d3d=_0x2c124d;_0x531cf8+='<tr><td>'+_0x10bc5b['name']+'</td><td>'+_0x10bc5b[_0x2c2d3d(0x10f)]+_0x2c2d3d(0x121);}),_0x531cf8+=_0x14c2b8['ZrYCn'],_0x531cf8;}static[a79_0x4fb1f8(0x155)](_0x3a7fd0){const _0x54a212=a79_0x4fb1f8;if(!this[_0x54a212(0x127)])return;const _0x50d180={};_0x3a7fd0[_0x54a212(0x173)](_0x536e2c=>{const _0x307fbe=_0x54a212;!_0x50d180[_0x536e2c[_0x307fbe(0x139)]]&&(_0x50d180[_0x536e2c['name']]=0x0),_0x50d180[_0x536e2c[_0x307fbe(0x139)]]+=_0x536e2c[_0x307fbe(0x10f)];});const _0x56f8b7=Object[_0x54a212(0x16e)](_0x50d180)[_0x54a212(0x173)](([_0x10c117,_0x5e47ef])=>{const _0x1a1a11={};return _0x1a1a11['name']=_0x10c117,_0x1a1a11['duration']=_0x5e47ef,_0x1a1a11;});fs['writeFileSync'](this['jsonReportFileName'],JSON[_0x54a212(0x17c)](_0x56f8b7));}static['isEnabled'](){const _0x14c808=a79_0x4fb1f8,_0x2485e6={};_0x2485e6[_0x14c808(0x126)]=function(_0x3aedba,_0x1ebccc){return _0x3aedba===_0x1ebccc;},_0x2485e6['AcjrQ']=_0x14c808(0x104);const _0x2db660=_0x2485e6;return!_0x2db660[_0x14c808(0x126)](process[_0x14c808(0x17d)]['BROWSERSTACK_SDK_INSTRUMENTATION'],_0x2db660[_0x14c808(0x182)]);}static['measure'](_0x32ee27,_0x55c96c,_0x52c1e2=null,_0xbfb462={},_0x5768d6=null){const _0x1fa7b3=a79_0x4fb1f8,_0x5cb8ee={'YcIUa':function(_0xfb3971,_0x274aac){return _0xfb3971(_0x274aac);},'mHtxZ':function(_0x19e4f8,_0x25cbaa){return _0x19e4f8 instanceof _0x25cbaa;}};try{if(this[_0x1fa7b3(0x187)]&&this[_0x1fa7b3(0x184)]()){let _0x570c22=_0x32ee27;_0x52c1e2&&(_0x570c22=_0x32ee27+'['+JSON[_0x1fa7b3(0x17c)](_0x52c1e2)+']');PerformanceTester[_0x1fa7b3(0x109)](_0x570c22),this['details']&&(this[_0x1fa7b3(0x10c)][_0x570c22]=_0xbfb462);try{const _0x2c065f=_0x55c96c[_0x1fa7b3(0x15f)](null,_0x5768d6);if(_0x5cb8ee['mHtxZ'](_0x2c065f,Promise))return new Promise((_0x254611,_0x4741b7)=>{const _0x934e6c={'oDONK':function(_0x3f4afe,_0x23221a){const _0x47a61b=a79_0x33cf;return _0x5cb8ee[_0x47a61b(0x17f)](_0x3f4afe,_0x23221a);}};_0x2c065f['then'](_0x58bd60=>{PerformanceTester['end'](_0x570c22),_0x934e6c['oDONK'](_0x254611,_0x58bd60);})['catch'](_0x43e1ca=>{const _0x14e23b=a79_0x33cf;PerformanceTester[_0x14e23b(0x14e)](_0x570c22,![],util['format'](_0x43e1ca)),_0x5cb8ee[_0x14e23b(0x17f)](_0x4741b7,_0x43e1ca);});});;return PerformanceTester[_0x1fa7b3(0x14e)](_0x570c22),_0x2c065f;}catch(_0x210d94){PerformanceTester[_0x1fa7b3(0x14e)](_0x570c22,![],util[_0x1fa7b3(0x12c)](_0x210d94));throw _0x210d94;}};return _0x55c96c[_0x1fa7b3(0x15f)](null,_0x5768d6);}catch(_0x410f57){return _0x55c96c[_0x1fa7b3(0x15f)](null,_0x5768d6);}}static[a79_0x4fb1f8(0x14f)](_0x4e33a2,_0x46e711,_0x4e85da={}){const _0x4e9e33=a79_0x4fb1f8,_0xae95eb={'fvTed':function(_0x49626a){return _0x49626a();}},_0x264d8d=this;return _0x4e85da['worker']=_0xae95eb[_0x4e9e33(0x10b)](getProcessId),_0x4e85da[_0x4e9e33(0x134)]=_0xae95eb['fvTed'](getTestName),_0x4e85da[_0x4e9e33(0x160)]=global[_0x4e9e33(0x133)]&&global['__platformCaps'][_0x4e9e33(0xfd)],function(){const _0x3a7b83=_0x4e9e33,_0x3fd93f=[_0x4e33a2,_0x46e711,null,_0x4e85da]['concat'](arguments);return _0x264d8d['measure'][_0x3a7b83(0x15f)](_0x264d8d,_0x3fd93f);};}static[a79_0x4fb1f8(0x10d)](){const _0x307c66=a79_0x4fb1f8,_0x4d9603=/(^.*)\[(.*)\]$/,_0x5b9d9e={},_0x4cdf0b={},_0x1859f9=[],_0xd306a5=this[_0x307c66(0x167)][_0x307c66(0x163)](0x0,this['_measureEvents'][_0x307c66(0x136)]);for(const _0x17e1d1 of _0xd306a5){const _0x12fa34=_0x17e1d1[_0x307c66(0x139)][_0x307c66(0x165)](_0x4d9603),_0x3a70d6=Object[_0x307c66(0xfc)]({},_0x17e1d1);_0x12fa34&&(_0x3a70d6[_0x307c66(0x139)]=_0x12fa34[0x1],_0x3a70d6['meta']=JSON[_0x307c66(0x128)](_0x12fa34[0x2])),_0x1859f9[_0x307c66(0x130)](_0x3a70d6);}return _0x1859f9;}static['pushPerfMeasures'](){const _0x4fdaac=a79_0x4fb1f8,_0x10ba86={};_0x10ba86[_0x4fdaac(0x111)]=function(_0x4d1183,_0x404506){return _0x4d1183+_0x404506;},_0x10ba86[_0x4fdaac(0x18a)]='Error\x20while\x20removing\x20files:\x20',_0x10ba86['GlDZJ']=function(_0x1cc817,_0xbe4c8a){return _0x1cc817===_0xbe4c8a;};const _0x12b299=_0x10ba86;try{if(fs[_0x4fdaac(0x158)](this[_0x4fdaac(0x140)])){const _0x4ea8b5=fs[_0x4fdaac(0x11a)](this[_0x4fdaac(0x140)]);for(const _0x1f0344 of _0x4ea8b5){fs[_0x4fdaac(0x13a)](path[_0x4fdaac(0x16f)](this[_0x4fdaac(0x140)],_0x1f0344));}}}catch(_0x2ec311){logger[_0x4fdaac(0x119)](_0x12b299[_0x4fdaac(0x111)](_0x12b299[_0x4fdaac(0x18a)],_0x2ec311));}if(_0x12b299[_0x4fdaac(0x144)](this[_0x4fdaac(0x167)]['length'],0x0))return;const _0x130869=this['getCleanedPerfEvents'](),_0x4d8fd2=JSON[_0x4fdaac(0x17c)](_0x130869),_0x3ecff8=_0x12b299['lwRoA'](_0x4d8fd2['slice'](0x1,-0x1),',');fs[_0x4fdaac(0x172)](this['jsonReportFileName'],_0x3ecff8);}static async[a79_0x4fb1f8(0x15c)](){const _0xba341a=a79_0x4fb1f8,_0x3f362a={};_0x3f362a[_0xba341a(0x11c)]=function(_0x43d719,_0x670e73){return _0x43d719===_0x670e73;},_0x3f362a[_0xba341a(0x12a)]=function(_0x298ea2,_0x25af46){return _0x298ea2>_0x25af46;};const _0x19116f=_0x3f362a;if(!this[_0xba341a(0x187)]||_0x19116f[_0xba341a(0x11c)](this['_measureEvents']['length'],0x0))return[];if(!fs[_0xba341a(0x158)](this['jsonReportDirPath']))return this[_0xba341a(0x167)];const _0x50dbb9=(await fsPromise[_0xba341a(0xfa)](this[_0xba341a(0x140)]))[_0xba341a(0x173)](_0x4c7639=>path[_0xba341a(0x110)](this[_0xba341a(0x140)],_0x4c7639));let _0x40b392=(await Promise[_0xba341a(0x13e)](_0x50dbb9[_0xba341a(0x173)](_0x1375a6=>fsPromise[_0xba341a(0x112)](_0x1375a6,_0xba341a(0x17a)))))[_0xba341a(0x173)](_0x4ede3e=>'['+_0x4ede3e[_0xba341a(0x145)](0x0,-0x1)+']')[_0xba341a(0x173)](_0x5ace16=>JSON[_0xba341a(0x128)](_0x5ace16))[_0xba341a(0x16c)]();return _0x19116f[_0xba341a(0x12a)](this[_0xba341a(0x167)]['length'],0x0)&&(_0x40b392=_0x40b392['concat'](this[_0xba341a(0x10d)]())),this[_0xba341a(0x148)][_0xba341a(0x175)](),_0x40b392;}static['pushErrors'](){const _0x4bd9e5=a79_0x4fb1f8,_0xa6d5f1={};_0xa6d5f1['qmpii']=function(_0x3c7cfe,_0x45d671){return _0x3c7cfe===_0x45d671;},_0xa6d5f1[_0x4bd9e5(0x149)]=function(_0x2b338d,_0x436948){return _0x2b338d+_0x436948;};const _0x20b070=_0xa6d5f1;if(_0x20b070[_0x4bd9e5(0x131)](this[_0x4bd9e5(0x166)]['length'],0x0))return;const _0x5149a1=JSON['stringify'](this['_errorEvents']),_0x2d67d9=_0x20b070[_0x4bd9e5(0x149)](_0x5149a1[_0x4bd9e5(0x145)](0x1,-0x1),',');fs[_0x4bd9e5(0x172)](this[_0x4bd9e5(0x12b)],_0x2d67d9);}static[a79_0x4fb1f8(0xff)](){const _0x323002=a79_0x4fb1f8,_0x5e2e28={};_0x5e2e28[_0x323002(0x17e)]=function(_0x11f0f3,_0x16c42f){return _0x11f0f3>_0x16c42f;};const _0x27ee71=_0x5e2e28;if(!fs[_0x323002(0x158)](this[_0x323002(0x135)]))return this['_errorEvents'];let _0x23cfa3=fs[_0x323002(0x178)](this[_0x323002(0x135)])['toString']();_0x23cfa3='['+_0x23cfa3[_0x323002(0x145)](0x0,-0x1)+']';let _0x1f1718=JSON[_0x323002(0x128)](_0x23cfa3);return _0x27ee71[_0x323002(0x17e)](this[_0x323002(0x166)][_0x323002(0x136)],0x0)&&(_0x1f1718=_0x1f1718['concat'](this[_0x323002(0x166)])),fs[_0x323002(0x13a)](this[_0x323002(0x135)]),_0x1f1718;}static['captureError'](_0x541f6a){const _0x37d793=a79_0x4fb1f8;if(!this['isEnabled']())return;this['_errorEvents'][_0x37d793(0x130)]({'message':_0x541f6a[_0x37d793(0x10a)],'trace':_0x541f6a[_0x37d793(0x105)],'code':_0x541f6a[_0x37d793(0x14a)]||null,'time':new Date()});}static[a79_0x4fb1f8(0x103)](){const _0x249785=a79_0x4fb1f8;try{if(!this[_0x249785(0x184)]())return;this['_observer'][_0x249785(0x175)](),this[_0x249785(0x181)](),this['pushErrors']();}catch(_0x135c7a){logger[_0x249785(0x119)](_0x249785(0x13d)+util[_0x249785(0x12c)](_0x135c7a));}}static async['finalize'](){const _0x4ec8ec=a79_0x4fb1f8,_0x39b59c={'QXWcm':function(_0x58dd6e,_0x19ae2e){return _0x58dd6e(_0x19ae2e);}};await _0x39b59c['QXWcm'](sleep,0x1e);const _0x56dd80=await this['finalizePerfMeasures'](),_0x2c8247=this[_0x4ec8ec(0xff)]();if(!this[_0x4ec8ec(0x184)]()){const _0x1bafb7={};return _0x1bafb7[_0x4ec8ec(0x15b)]=[],_0x1bafb7[_0x4ec8ec(0x188)]=[],_0x1bafb7;}const _0x34b3db={};return _0x34b3db[_0x4ec8ec(0x15b)]=_0x56dd80,_0x34b3db[_0x4ec8ec(0x188)]=_0x2c8247,_0x34b3db;}static[a79_0x4fb1f8(0x109)](_0x2e734b){const _0x6914d6=a79_0x4fb1f8,_0x23df71={};_0x23df71[_0x6914d6(0x132)]=function(_0x24f323,_0x3cbc60){return _0x24f323+_0x3cbc60;},_0x23df71[_0x6914d6(0x12f)]=_0x6914d6(0x118);const _0x274209=_0x23df71,_0x2f1b31=_0x274209[_0x6914d6(0x132)](_0x2e734b,_0x274209[_0x6914d6(0x12f)]);if(this[_0x6914d6(0x185)][_0x2f1b31])return;performance['mark'](_0x2f1b31),this[_0x6914d6(0x185)][_0x2f1b31]=0x1;}static[a79_0x4fb1f8(0x14e)](_0x50e108,_0x20eefa=!![],_0x120eae=null,_0x422988={}){const _0xc70b6=a79_0x4fb1f8,_0x467871={'VsSNK':function(_0x1d94aa,_0x282ef1){return _0x1d94aa+_0x282ef1;},'AtHFd':_0xc70b6(0x143),'JRpVr':'-start','rtDhm':function(_0x5e7170,_0x14e2c6){return _0x5e7170+_0x14e2c6;},'rBASk':function(_0x3b7a31){return _0x3b7a31();},'XGFED':function(_0x309483){return _0x309483();}};performance[_0xc70b6(0x129)](_0x467871[_0xc70b6(0x14c)](_0x50e108,_0x467871[_0xc70b6(0x171)])),performance['measure'](_0x50e108,_0x467871[_0xc70b6(0x14c)](_0x50e108,_0x467871[_0xc70b6(0x161)]),_0x467871[_0xc70b6(0x15a)](_0x50e108,_0x467871[_0xc70b6(0x171)]));const _0x18c24d={};_0x18c24d['success']=_0x20eefa,_0x18c24d[_0xc70b6(0x156)]=_0x120eae,this[_0xc70b6(0x10c)][_0x50e108]=Object['assign'](_0x18c24d,Object[_0xc70b6(0xfc)](Object['assign']({'worker':_0x467871[_0xc70b6(0x11e)](getProcessId),'platform':global['__platformCaps']&&global[_0xc70b6(0x133)]['index'],'testName':_0x467871['XGFED'](getTestName)},_0x422988),this[_0xc70b6(0x10c)][_0x50e108]||{}));}}module['exports']=PerformanceTester;
@@ -1 +1 @@
1
- function a80_0x1458(_0x3fef1b,_0x551196){const _0x25f821=a80_0x25f8();return a80_0x1458=function(_0x1458d1,_0x313026){_0x1458d1=_0x1458d1-0xc9;let _0x1a016b=_0x25f821[_0x1458d1];return _0x1a016b;},a80_0x1458(_0x3fef1b,_0x551196);}function a80_0x25f8(){const _0x339f14=['sleep','tVJVG','pid','log','2114680Nuxkvc','22LiyRUz','true','env','MCDtH','BROWSERSTACK_OBSERVABILITY_DEBUG','toISOString','./test-observability/constants','][\x20OBSERVABILITY\x20]\x20','526548fLZCkR','threadId','143QtzZkW','getTestName','1107456nNvXDr','1Pfghfw','debug','301Zwguia','4ijxAdM','734216ivwwIf','FcYzF','994310sMsPBO','CQMVm','./globals','getGlobal','38064ARZBCZ','340310KnBVrT','9orhYUc','./logger','worker_threads','getProcessId'];a80_0x25f8=function(){return _0x339f14;};return a80_0x25f8();}const a80_0x57e540=a80_0x1458;(function(_0xbcf2ce,_0x2f3189){const _0x16adc7=a80_0x1458,_0x558a7d=_0xbcf2ce();while(!![]){try{const _0x14eea6=-parseInt(_0x16adc7(0xcf))/0x1*(-parseInt(_0x16adc7(0xd5))/0x2)+parseInt(_0x16adc7(0xce))/0x3+parseInt(_0x16adc7(0xd2))/0x4*(parseInt(_0x16adc7(0xe3))/0x5)+parseInt(_0x16adc7(0xd9))/0x6*(-parseInt(_0x16adc7(0xd1))/0x7)+-parseInt(_0x16adc7(0xd3))/0x8*(parseInt(_0x16adc7(0xdb))/0x9)+-parseInt(_0x16adc7(0xda))/0xa*(parseInt(_0x16adc7(0xe4))/0xb)+parseInt(_0x16adc7(0xca))/0xc*(-parseInt(_0x16adc7(0xcc))/0xd);if(_0x14eea6===_0x2f3189)break;else _0x558a7d['push'](_0x558a7d['shift']());}catch(_0x57d5a3){_0x558a7d['push'](_0x558a7d['shift']());}}}(a80_0x25f8,0x5b4b7));const worker=require(a80_0x57e540(0xdd)),{fileLogger}=require(a80_0x57e540(0xdc)),{consoleHolder}=require(a80_0x57e540(0xea)),globals=require(a80_0x57e540(0xd7));exports[a80_0x57e540(0xde)]=()=>{const _0x32296f=a80_0x57e540;return process[_0x32296f(0xe1)]+'-'+worker[_0x32296f(0xcb)];},exports[a80_0x57e540(0xcd)]=()=>{const _0x2a0a44=a80_0x57e540,_0x4a1370={};_0x4a1370['FcYzF']='browserstackTestName';const _0x3bd060=_0x4a1370;return globals[_0x2a0a44(0xd8)](_0x3bd060[_0x2a0a44(0xd4)]);},exports[a80_0x57e540(0xdf)]=(_0x7b9d82=0x64)=>new Promise(_0xb59dc=>setTimeout(_0xb59dc,_0x7b9d82)),exports[a80_0x57e540(0xd0)]=_0x66bfdd=>{const _0x5a7316=a80_0x57e540,_0x2edbb2={};_0x2edbb2[_0x5a7316(0xe0)]=function(_0x26d7e6,_0x1594c8){return _0x26d7e6===_0x1594c8;},_0x2edbb2[_0x5a7316(0xd6)]=_0x5a7316(0xe5),_0x2edbb2[_0x5a7316(0xe7)]=function(_0x78950e,_0x3ae851){return _0x78950e===_0x3ae851;};const _0x3f6e31=_0x2edbb2;fileLogger[_0x5a7316(0xd0)]('['+new Date()[_0x5a7316(0xe9)]()+_0x5a7316(0xc9)+_0x66bfdd),(_0x3f6e31[_0x5a7316(0xe0)](process[_0x5a7316(0xe6)]['BROWSERSTACK_OBSERVABILITY_DEBUG'],_0x3f6e31['CQMVm'])||_0x3f6e31['MCDtH'](process[_0x5a7316(0xe6)][_0x5a7316(0xe8)],'1'))&&consoleHolder[_0x5a7316(0xe2)]('\x0a['+new Date()[_0x5a7316(0xe9)]()+_0x5a7316(0xc9)+_0x66bfdd+'\x0a');};
1
+ const a80_0x261613=a80_0x114a;(function(_0x5c7f52,_0x3d4772){const _0x534578=a80_0x114a,_0x91a8c3=_0x5c7f52();while(!![]){try{const _0x4698e3=parseInt(_0x534578(0x88))/0x1+parseInt(_0x534578(0x83))/0x2*(parseInt(_0x534578(0x8a))/0x3)+-parseInt(_0x534578(0x8d))/0x4+-parseInt(_0x534578(0x7d))/0x5*(parseInt(_0x534578(0x7a))/0x6)+parseInt(_0x534578(0x80))/0x7*(parseInt(_0x534578(0x91))/0x8)+-parseInt(_0x534578(0x7e))/0x9+parseInt(_0x534578(0x79))/0xa*(-parseInt(_0x534578(0x89))/0xb);if(_0x4698e3===_0x3d4772)break;else _0x91a8c3['push'](_0x91a8c3['shift']());}catch(_0x42467d){_0x91a8c3['push'](_0x91a8c3['shift']());}}}(a80_0x1634,0x9a29c));const worker=require('worker_threads'),{fileLogger}=require(a80_0x261613(0x87)),{consoleHolder}=require(a80_0x261613(0x92)),globals=require('./globals');function a80_0x114a(_0x5f3ce7,_0x27a70e){const _0x1634c1=a80_0x1634();return a80_0x114a=function(_0x114a16,_0x5216c0){_0x114a16=_0x114a16-0x79;let _0x54d89d=_0x1634c1[_0x114a16];return _0x54d89d;},a80_0x114a(_0x5f3ce7,_0x27a70e);}function a80_0x1634(){const _0x2b0e79=['7978284fGFsej','][\x20OBSERVABILITY\x20]\x20','63NJMeDk','pid','browserstackTestName','6PnkqQU','JzmLT','env','debug','./logger','953719UcNOCO','2902196vyrDeA','530676GcGfqt','GAUXs','uAGOJ','134744XHFjbT','getGlobal','GQoSZ','true','609544FcsppH','./test-observability/constants','10kqEnuO','6HCmXlg','toISOString','BROWSERSTACK_OBSERVABILITY_DEBUG','1773410hZwHcl'];a80_0x1634=function(){return _0x2b0e79;};return a80_0x1634();}exports['getProcessId']=()=>{const _0x3ff751=a80_0x261613;return process[_0x3ff751(0x81)]+'-'+worker['threadId'];},exports['getTestName']=()=>{const _0x27fb25=a80_0x261613,_0x2f7ec4={};_0x2f7ec4[_0x27fb25(0x84)]=_0x27fb25(0x82);const _0x3e8fe4=_0x2f7ec4;return globals[_0x27fb25(0x8e)](_0x3e8fe4['JzmLT']);},exports['sleep']=(_0x41f24e=0x64)=>new Promise(_0x5a6227=>setTimeout(_0x5a6227,_0x41f24e)),exports['debug']=_0x4f5ffb=>{const _0x50f68e=a80_0x261613,_0x5b43a2={};_0x5b43a2[_0x50f68e(0x8c)]=function(_0x27ae98,_0x162255){return _0x27ae98===_0x162255;},_0x5b43a2['GAUXs']=_0x50f68e(0x90),_0x5b43a2[_0x50f68e(0x8f)]=function(_0x1007a4,_0x467335){return _0x1007a4===_0x467335;};const _0x4c3f68=_0x5b43a2;fileLogger[_0x50f68e(0x86)]('['+new Date()['toISOString']()+_0x50f68e(0x7f)+_0x4f5ffb),(_0x4c3f68['uAGOJ'](process[_0x50f68e(0x85)][_0x50f68e(0x7c)],_0x4c3f68[_0x50f68e(0x8b)])||_0x4c3f68['GQoSZ'](process[_0x50f68e(0x85)]['BROWSERSTACK_OBSERVABILITY_DEBUG'],'1'))&&consoleHolder['log']('\x0a['+new Date()[_0x50f68e(0x7b)]()+_0x50f68e(0x7f)+_0x4f5ffb+'\x0a');};
@@ -1 +1 @@
1
- const a81_0x477c8f=a81_0x2efa;(function(_0x7ac4c7,_0x5c54ef){const _0x5f46e8=a81_0x2efa,_0x36dbb5=_0x7ac4c7();while(!![]){try{const _0x2ae239=-parseInt(_0x5f46e8(0x16d))/0x1+parseInt(_0x5f46e8(0x161))/0x2+parseInt(_0x5f46e8(0x15b))/0x3*(-parseInt(_0x5f46e8(0x15a))/0x4)+parseInt(_0x5f46e8(0x166))/0x5*(-parseInt(_0x5f46e8(0x16f))/0x6)+parseInt(_0x5f46e8(0x14b))/0x7+-parseInt(_0x5f46e8(0x146))/0x8+parseInt(_0x5f46e8(0x162))/0x9;if(_0x2ae239===_0x5c54ef)break;else _0x36dbb5['push'](_0x36dbb5['shift']());}catch(_0xddc6dc){_0x36dbb5['push'](_0x36dbb5['shift']());}}}(a81_0x477e,0x89654));function a81_0x2efa(_0x449332,_0x546989){const _0x477e15=a81_0x477e();return a81_0x2efa=function(_0x2efa5c,_0xc836f){_0x2efa5c=_0x2efa5c-0x146;let _0x5514d0=_0x477e15[_0x2efa5c];return _0x5514d0;},a81_0x2efa(_0x449332,_0x546989);}const http=require('http'),https=require(a81_0x477c8f(0x171)),monkeypatch=require(a81_0x477c8f(0x158));function spy(_0x88508f){const _0xd4de9f=a81_0x477c8f,_0x29cc16={'YDgUX':function(_0x1d2a3e,_0x5a37c0,_0x2acb70){return _0x1d2a3e(_0x5a37c0,_0x2acb70);},'fEBnn':function(_0x2d592a,_0x2a892a){return _0x2d592a-_0x2a892a;},'dgwee':'error','vqtjs':function(_0xc628a0,_0x3b8f26){return _0xc628a0 instanceof _0x3b8f26;},'svvGt':function(_0x4fc37f,_0x234e60){return _0x4fc37f===_0x234e60;},'XxKfM':_0xd4de9f(0x15c),'ZtyGN':function(_0x55bcfd,..._0x426924){return _0x55bcfd(..._0x426924);},'PrwXV':_0xd4de9f(0x14d),'bnbdK':_0xd4de9f(0x15e),'DCocP':function(_0x20f9ca,_0x334a6e,_0x4cbdcd,_0x3abd3c){return _0x20f9ca(_0x334a6e,_0x4cbdcd,_0x3abd3c);},'qvgge':'end','JuXpN':_0xd4de9f(0x149)},_0x1ca006=function(){const _0x59cbcf=_0xd4de9f,_0x2ffa3e={'DWebt':function(_0x120649,_0xb250c3){const _0xc16a84=a81_0x2efa;return _0x29cc16[_0xc16a84(0x16e)](_0x120649,_0xb250c3);},'NvdNf':function(_0x2ee603,_0x5e681d){return _0x29cc16['svvGt'](_0x2ee603,_0x5e681d);},'LdYDr':_0x29cc16[_0x59cbcf(0x167)],'BVTKh':function(_0x44917f,..._0x581202){const _0x396832=_0x59cbcf;return _0x29cc16[_0x396832(0x16b)](_0x44917f,..._0x581202);}},_0x10c1f0=arguments[0x0],_0x4ddc95=Array[_0x59cbcf(0x151)][_0x59cbcf(0x148)][_0x59cbcf(0x157)](arguments,0x1),_0x2e40be=_0x10c1f0[_0x59cbcf(0x173)](this,_0x4ddc95);let _0x4e4a1b=Date[_0x59cbcf(0x176)](),_0xe5ce8c;const _0x72be1={};_0x4ddc95[_0x59cbcf(0x170)](_0x49f42e=>{const _0x28f6cd=_0x59cbcf;if(_0x2ffa3e['DWebt'](_0x49f42e,URL)){const _0x341216={};_0x341216[_0x28f6cd(0x153)]=_0x49f42e,Object[_0x28f6cd(0x174)](_0x72be1,_0x341216);}else _0x2ffa3e[_0x28f6cd(0x16c)](typeof _0x49f42e,_0x2ffa3e[_0x28f6cd(0x14f)])&&Object[_0x28f6cd(0x174)](_0x72be1,_0x49f42e);});const _0x22efd6=_0x33b08f=>{const _0x69b6bd=_0x59cbcf,_0x47e0c9={};_0x47e0c9[_0x69b6bd(0x150)]=_0x72be1[_0x69b6bd(0x150)]||_0x72be1[_0x69b6bd(0x156)]||_0x72be1[_0x69b6bd(0x153)]&&(_0x72be1[_0x69b6bd(0x153)]['host']||_0x72be1[_0x69b6bd(0x153)][_0x69b6bd(0x156)]),_0x47e0c9['path']=_0x72be1[_0x69b6bd(0x14c)]||_0x72be1[_0x69b6bd(0x153)]&&_0x72be1[_0x69b6bd(0x153)]['pathname'],_0x47e0c9['method']=_0x72be1[_0x69b6bd(0x154)],_0x47e0c9[_0x69b6bd(0x159)]=_0x72be1[_0x69b6bd(0x159)],_0x29cc16['YDgUX'](_0x88508f,_0x33b08f,_0x47e0c9);};return _0x2e40be['once'](_0x29cc16[_0x59cbcf(0x147)],_0x58cf00=>{const _0x2d6b3b=_0x59cbcf,_0x70074c=_0x29cc16[_0x2d6b3b(0x15f)](Date[_0x2d6b3b(0x176)](),_0x4e4a1b),_0x58a880={};_0x58a880[_0x2d6b3b(0x156)]=_0x72be1[_0x2d6b3b(0x150)]||_0x72be1[_0x2d6b3b(0x156)]||_0x72be1[_0x2d6b3b(0x153)]&&(_0x72be1[_0x2d6b3b(0x153)]['host']||_0x72be1[_0x2d6b3b(0x153)][_0x2d6b3b(0x156)]),_0x58a880['path']=_0x72be1[_0x2d6b3b(0x14c)]||_0x72be1[_0x2d6b3b(0x153)]&&_0x72be1['url'][_0x2d6b3b(0x169)],_0x58a880[_0x2d6b3b(0x154)]=_0x72be1[_0x2d6b3b(0x154)],_0x58a880[_0x2d6b3b(0x159)]=_0x72be1[_0x2d6b3b(0x159)],_0x58a880[_0x2d6b3b(0x14a)]=_0x58cf00[_0x2d6b3b(0x160)],_0x58a880[_0x2d6b3b(0x164)]=_0x70074c,_0x29cc16[_0x2d6b3b(0x14e)](_0x88508f,null,_0x58a880),_0xe5ce8c[_0x2d6b3b(0x155)](_0x29cc16[_0x2d6b3b(0x16a)],_0x22efd6);}),_0x2e40be['on'](_0x29cc16['bnbdK'],_0x1a16fd=>{const _0x2e3e2c=_0x59cbcf;_0xe5ce8c=_0x1a16fd,_0x1a16fd[_0x2e3e2c(0x175)](_0x29cc16['dgwee'],_0x22efd6);}),_0x29cc16[_0x59cbcf(0x172)](monkeypatch,_0x2e40be,_0x29cc16[_0x59cbcf(0x163)],(_0x1d342b,..._0x1730e8)=>{const _0x4aeeec=_0x59cbcf;_0x4e4a1b=Date[_0x4aeeec(0x176)](),_0x2ffa3e[_0x4aeeec(0x15d)](_0x1d342b,..._0x1730e8);}),_0x2e40be;};_0x29cc16['DCocP'](monkeypatch,http,_0x29cc16[_0xd4de9f(0x165)],_0x1ca006),_0x29cc16['DCocP'](monkeypatch,https,_0x29cc16[_0xd4de9f(0x165)],_0x1ca006);}function restore(){const _0x33c240=a81_0x477c8f;http['request']['unpatch'](),https['request'][_0x33c240(0x168)]();}const a81_0x2a0261={};function a81_0x477e(){const _0x509950=['qvgge','duration_ms','JuXpN','1268960PIuSBR','XxKfM','unpatch','pathname','dgwee','ZtyGN','NvdNf','502273cvwXvO','vqtjs','12MLEKnU','forEach','https','DCocP','apply','assign','once','now','3258336LrOpPO','PrwXV','slice','request','status_code','386316ICKXJd','path','response','YDgUX','LdYDr','host','prototype','exports','url','method','removeListener','hostname','call','monkeypatch','headers','4amxvQT','3300714XpfzTk','object','BVTKh','socket','fEBnn','statusCode','2062286kJjsfd','17944452ewtEvv'];a81_0x477e=function(){return _0x509950;};return a81_0x477e();}a81_0x2a0261['spy']=spy,a81_0x2a0261['restore']=restore,module[a81_0x477c8f(0x152)]=a81_0x2a0261;
1
+ const a81_0x4bf1f2=a81_0x1bf1;function a81_0x2d87(){const _0x13574d=['CvLHa','host','unpatch','pglQH','SpERL','hostname','https','exports','removeListener','4934363tVEjJA','slice','qxwlG','headers','http','error','31912JhmjcR','899503Qvjqxs','Ymrgh','4262MVTLbI','statusCode','270lAlEqz','object','socket','monkeypatch','path','call','once','url','1463508mJekKP','duration_ms','GzpPW','response','prototype','360gUeEID','YOFTM','214220cJqNeJ','nGoyg','apply','Ykmyf','87iEQJbK','351197TfvYCl','end','Krlgp','request','VKMAw','now','IskVV','XAhKC','method','spy','vbaqD','78kgZfWa','status_code','pathname','restore'];a81_0x2d87=function(){return _0x13574d;};return a81_0x2d87();}(function(_0x2f5fba,_0xa78696){const _0x235e92=a81_0x1bf1,_0x16b786=_0x2f5fba();while(!![]){try{const _0x1fb462=parseInt(_0x235e92(0x1a1))/0x1+-parseInt(_0x235e92(0x1a3))/0x2*(-parseInt(_0x235e92(0x1b8))/0x3)+parseInt(_0x235e92(0x1ad))/0x4+parseInt(_0x235e92(0x1b4))/0x5*(-parseInt(_0x235e92(0x1c4))/0x6)+parseInt(_0x235e92(0x1d1))/0x7+parseInt(_0x235e92(0x1a0))/0x8*(-parseInt(_0x235e92(0x1b2))/0x9)+-parseInt(_0x235e92(0x1a5))/0xa*(parseInt(_0x235e92(0x1b9))/0xb);if(_0x1fb462===_0xa78696)break;else _0x16b786['push'](_0x16b786['shift']());}catch(_0x473cd8){_0x16b786['push'](_0x16b786['shift']());}}}(a81_0x2d87,0x6eb97));const http=require(a81_0x4bf1f2(0x1d5)),https=require(a81_0x4bf1f2(0x1ce)),monkeypatch=require(a81_0x4bf1f2(0x1a8));function spy(_0x3979fb){const _0x4bc851=a81_0x4bf1f2,_0x23dadc={'qOYYH':function(_0x2ef714,_0x7f2ab8){return _0x2ef714 instanceof _0x7f2ab8;},'Krlgp':function(_0x5b1e81,_0x26d0a2){return _0x5b1e81===_0x26d0a2;},'GzpPW':_0x4bc851(0x1a6),'SpERL':function(_0x42f10f,..._0x9600fa){return _0x42f10f(..._0x9600fa);},'pglQH':function(_0x2ba6be,_0x40a0f3,_0x194165){return _0x2ba6be(_0x40a0f3,_0x194165);},'XAhKC':function(_0x280377,_0x1056a3){return _0x280377-_0x1056a3;},'VKMAw':_0x4bc851(0x19f),'nGoyg':_0x4bc851(0x1b0),'bIRVS':_0x4bc851(0x1a7),'Ykmyf':function(_0x58faba,_0xba5a82,_0x1ece9a,_0x15ee10){return _0x58faba(_0xba5a82,_0x1ece9a,_0x15ee10);},'Ymrgh':_0x4bc851(0x1ba),'vbaqD':function(_0x38007d,_0x23fd0d,_0xb92c95,_0x3ddb5b){return _0x38007d(_0x23fd0d,_0xb92c95,_0x3ddb5b);},'qxwlG':'request'},_0xd7e694=function(){const _0xfda2b4=_0x4bc851,_0x450168={'YOFTM':function(_0x40998c,_0x42a7af,_0xdb9fd7){const _0x36d062=a81_0x1bf1;return _0x23dadc[_0x36d062(0x1cb)](_0x40998c,_0x42a7af,_0xdb9fd7);},'IskVV':function(_0xb8607,_0x1c0b07){const _0x2c31c6=a81_0x1bf1;return _0x23dadc[_0x2c31c6(0x1c0)](_0xb8607,_0x1c0b07);},'CvLHa':_0x23dadc[_0xfda2b4(0x1bd)]},_0x526a3e=arguments[0x0],_0x3f7792=Array[_0xfda2b4(0x1b1)][_0xfda2b4(0x1d2)][_0xfda2b4(0x1aa)](arguments,0x1),_0x3451a4=_0x526a3e[_0xfda2b4(0x1b6)](this,_0x3f7792);let _0x13157f=Date[_0xfda2b4(0x1be)](),_0x3168a7;const _0x5af4b5={};_0x3f7792['forEach'](_0xf40f72=>{const _0x508bca=_0xfda2b4;if(_0x23dadc['qOYYH'](_0xf40f72,URL)){const _0x5fff33={};_0x5fff33[_0x508bca(0x1ac)]=_0xf40f72,Object['assign'](_0x5af4b5,_0x5fff33);}else _0x23dadc[_0x508bca(0x1bb)](typeof _0xf40f72,_0x23dadc[_0x508bca(0x1af)])&&Object['assign'](_0x5af4b5,_0xf40f72);});const _0x55195b=_0x372003=>{const _0x3c7cd4=_0xfda2b4,_0x308de4={};_0x308de4[_0x3c7cd4(0x1c9)]=_0x5af4b5['host']||_0x5af4b5['hostname']||_0x5af4b5[_0x3c7cd4(0x1ac)]&&(_0x5af4b5[_0x3c7cd4(0x1ac)][_0x3c7cd4(0x1c9)]||_0x5af4b5[_0x3c7cd4(0x1ac)]['hostname']),_0x308de4[_0x3c7cd4(0x1a9)]=_0x5af4b5[_0x3c7cd4(0x1a9)]||_0x5af4b5[_0x3c7cd4(0x1ac)]&&_0x5af4b5[_0x3c7cd4(0x1ac)]['pathname'],_0x308de4[_0x3c7cd4(0x1c1)]=_0x5af4b5[_0x3c7cd4(0x1c1)],_0x308de4['headers']=_0x5af4b5[_0x3c7cd4(0x1d4)],_0x450168[_0x3c7cd4(0x1b3)](_0x3979fb,_0x372003,_0x308de4);};return _0x3451a4[_0xfda2b4(0x1ab)](_0x23dadc[_0xfda2b4(0x1b5)],_0x353f88=>{const _0x5696ea=_0xfda2b4,_0x4275f6=_0x450168[_0x5696ea(0x1bf)](Date[_0x5696ea(0x1be)](),_0x13157f),_0x4a5d95={};_0x4a5d95[_0x5696ea(0x1cd)]=_0x5af4b5['host']||_0x5af4b5[_0x5696ea(0x1cd)]||_0x5af4b5['url']&&(_0x5af4b5[_0x5696ea(0x1ac)][_0x5696ea(0x1c9)]||_0x5af4b5[_0x5696ea(0x1ac)]['hostname']),_0x4a5d95[_0x5696ea(0x1a9)]=_0x5af4b5['path']||_0x5af4b5[_0x5696ea(0x1ac)]&&_0x5af4b5[_0x5696ea(0x1ac)][_0x5696ea(0x1c6)],_0x4a5d95[_0x5696ea(0x1c1)]=_0x5af4b5[_0x5696ea(0x1c1)],_0x4a5d95[_0x5696ea(0x1d4)]=_0x5af4b5[_0x5696ea(0x1d4)],_0x4a5d95[_0x5696ea(0x1c5)]=_0x353f88[_0x5696ea(0x1a4)],_0x4a5d95[_0x5696ea(0x1ae)]=_0x4275f6,_0x450168[_0x5696ea(0x1b3)](_0x3979fb,null,_0x4a5d95),_0x3168a7[_0x5696ea(0x1d0)](_0x450168[_0x5696ea(0x1c8)],_0x55195b);}),_0x3451a4['on'](_0x23dadc['bIRVS'],_0x48d3ce=>{const _0x2c7ba0=_0xfda2b4;_0x3168a7=_0x48d3ce,_0x48d3ce[_0x2c7ba0(0x1ab)](_0x450168[_0x2c7ba0(0x1c8)],_0x55195b);}),_0x23dadc[_0xfda2b4(0x1b7)](monkeypatch,_0x3451a4,_0x23dadc[_0xfda2b4(0x1a2)],(_0x2db4d6,..._0x1a2903)=>{const _0x5278d8=_0xfda2b4;_0x13157f=Date['now'](),_0x23dadc[_0x5278d8(0x1cc)](_0x2db4d6,..._0x1a2903);}),_0x3451a4;};_0x23dadc[_0x4bc851(0x1c3)](monkeypatch,http,_0x23dadc[_0x4bc851(0x1d3)],_0xd7e694),_0x23dadc[_0x4bc851(0x1b7)](monkeypatch,https,_0x23dadc[_0x4bc851(0x1d3)],_0xd7e694);}function restore(){const _0x5b8265=a81_0x4bf1f2;http[_0x5b8265(0x1bc)][_0x5b8265(0x1ca)](),https[_0x5b8265(0x1bc)][_0x5b8265(0x1ca)]();}function a81_0x1bf1(_0x5af9bf,_0x4721db){const _0x2d8799=a81_0x2d87();return a81_0x1bf1=function(_0x1bf1b8,_0x3e272a){_0x1bf1b8=_0x1bf1b8-0x19f;let _0x2afc50=_0x2d8799[_0x1bf1b8];return _0x2afc50;},a81_0x1bf1(_0x5af9bf,_0x4721db);}const a81_0x1400a5={};a81_0x1400a5[a81_0x4bf1f2(0x1c2)]=spy,a81_0x1400a5[a81_0x4bf1f2(0x1c7)]=restore,module[a81_0x4bf1f2(0x1cf)]=a81_0x1400a5;
@@ -1 +1 @@
1
- const a82_0x5a50dd=a82_0x523b;(function(_0x13625c,_0x4ea8c7){const _0x132391=a82_0x523b,_0x4ff4e2=_0x13625c();while(!![]){try{const _0x17e16b=parseInt(_0x132391(0xdd))/0x1*(parseInt(_0x132391(0xdf))/0x2)+parseInt(_0x132391(0xf9))/0x3*(-parseInt(_0x132391(0xe1))/0x4)+parseInt(_0x132391(0xe2))/0x5+-parseInt(_0x132391(0xe6))/0x6+parseInt(_0x132391(0xef))/0x7*(-parseInt(_0x132391(0xeb))/0x8)+parseInt(_0x132391(0xf3))/0x9+parseInt(_0x132391(0xee))/0xa;if(_0x17e16b===_0x4ea8c7)break;else _0x4ff4e2['push'](_0x4ff4e2['shift']());}catch(_0x46f077){_0x4ff4e2['push'](_0x4ff4e2['shift']());}}}(a82_0x21d1,0xd0d31));function a82_0x523b(_0x1427d2,_0x5f2979){const _0x21d136=a82_0x21d1();return a82_0x523b=function(_0x523ba8,_0x4d7168){_0x523ba8=_0x523ba8-0xdd;let _0xad10d9=_0x21d136[_0x523ba8];return _0xad10d9;},a82_0x523b(_0x1427d2,_0x5f2979);}const PerformanceTester=require(a82_0x5a50dd(0xfb)),{AUTOMATE_EVENTS:PerformanceEvents}=require('./performance/constants');function a82_0x21d1(){const _0x113c09=['4fdRWwP','5252590vOFUjM','request','EUVkX','KoeOF','3687888qzJhsi','zzium','keepAliveMsecs','fEEPl','https:','16BFUyBe','keepAlive','https','19061110PWnZvT','5599111ElKgcC','APFuE','protocol','globalAgent','2466153fQVyhi','zFTFg','KEEP_ALIVE','exports','measureWrapper','uBCix','3251823ktJmhh','hasOwnProperty','./performance/performance-tester','KQSTp','2LVYSJZ','call','923034BgWHMt','tVJZT'];a82_0x21d1=function(){return _0x113c09;};return a82_0x21d1();}module[a82_0x5a50dd(0xf6)]=PerformanceTester[a82_0x5a50dd(0xf7)](PerformanceEvents[a82_0x5a50dd(0xf5)],function(){const _0x2a7c2b=a82_0x5a50dd,_0x227264={'zzium':function(_0x1fde3d,_0x4841c5){return _0x1fde3d===_0x4841c5;},'APFuE':_0x2a7c2b(0xea),'EUVkX':'agent','KoeOF':function(_0x4a71b4,_0x1aea62,_0x17fae2){return _0x4a71b4(_0x1aea62,_0x17fae2);},'fEEPl':function(_0x191f87,_0xbf8849,_0x222631){return _0x191f87(_0xbf8849,_0x222631);},'tVJZT':function(_0x503d20,_0x2e871f){return _0x503d20(_0x2e871f);},'uBCix':'http','KQSTp':_0x2a7c2b(0xed),'YbzfT':function(_0x241d5d,_0x14418d){return _0x241d5d*_0x14418d;},'zFTFg':'keepAlive'},_0x5db67a=_0x227264[_0x2a7c2b(0xe0)](require,_0x227264[_0x2a7c2b(0xf8)]),_0x51bc96=_0x227264['tVJZT'](require,_0x227264[_0x2a7c2b(0xfc)]),_0x2e85f4=_0x227264['YbzfT'](0x1e,0x3e8);if(_0x5db67a[_0x2a7c2b(0xf2)]&&Object['prototype'][_0x2a7c2b(0xfa)][_0x2a7c2b(0xde)](_0x5db67a[_0x2a7c2b(0xf2)],_0x227264[_0x2a7c2b(0xf4)]))_0x5db67a['globalAgent'][_0x2a7c2b(0xec)]=!![],_0x51bc96['globalAgent'][_0x2a7c2b(0xec)]=!![],_0x5db67a[_0x2a7c2b(0xf2)]['keepAliveMsecs']=_0x2e85f4,_0x51bc96[_0x2a7c2b(0xf2)][_0x2a7c2b(0xe8)]=_0x2e85f4;else{const _0x596a07={};_0x596a07[_0x2a7c2b(0xec)]=!![],_0x596a07[_0x2a7c2b(0xe8)]=_0x2e85f4;const _0x5f3d4f=new _0x5db67a['Agent'](_0x596a07),_0x502aba={};_0x502aba[_0x2a7c2b(0xec)]=!![],_0x502aba[_0x2a7c2b(0xe8)]=_0x2e85f4;const _0x33c9c9=new _0x51bc96['Agent'](_0x502aba),_0x14755a=_0x5db67a[_0x2a7c2b(0xe3)],_0x10691c=_0x51bc96[_0x2a7c2b(0xe3)];_0x5db67a['request']=function(_0x3f0c1a,_0x4e4a61){const _0x167652=_0x2a7c2b;if(_0x227264[_0x167652(0xe7)](_0x3f0c1a[_0x167652(0xf1)],_0x227264[_0x167652(0xf0)]))return _0x3f0c1a[_0x227264[_0x167652(0xe4)]]=_0x33c9c9,_0x227264[_0x167652(0xe5)](_0x10691c,_0x3f0c1a,_0x4e4a61);return _0x3f0c1a[_0x227264['EUVkX']]=_0x5f3d4f,_0x227264[_0x167652(0xe9)](_0x14755a,_0x3f0c1a,_0x4e4a61);};}});
1
+ const a82_0x53abe7=a82_0x505a;function a82_0x4ca0(){const _0x5313b1=['prototype','hwvvQ','./performance/constants','globalAgent','IsfWj','865788vogZgw','keepAlive','measureWrapper','KEEP_ALIVE','605coUgmA','http','call','https:','nyDsm','https','36FFOALc','request','6LfdJqp','hasOwnProperty','keepAliveMsecs','14583456QaYJMg','zZcoL','Agent','308026GXehqN','xyHwS','protocol','666oltNlf','aZkHQ','7EwmUZn','75183fYExkJ','355215VafzbM','./performance/performance-tester','agent','86872jlRAGs','115170sFyxNX'];a82_0x4ca0=function(){return _0x5313b1;};return a82_0x4ca0();}(function(_0x184d37,_0xb5ce51){const _0x50a626=a82_0x505a,_0x511e7a=_0x184d37();while(!![]){try{const _0x28be67=-parseInt(_0x50a626(0x1f7))/0x1*(-parseInt(_0x50a626(0x1f2))/0x2)+parseInt(_0x50a626(0x1f8))/0x3+-parseInt(_0x50a626(0x1ea))/0x4*(parseInt(_0x50a626(0x1f9))/0x5)+parseInt(_0x50a626(0x1ec))/0x6*(parseInt(_0x50a626(0x203))/0x7)+-parseInt(_0x50a626(0x1fc))/0x8*(-parseInt(_0x50a626(0x1f5))/0x9)+-parseInt(_0x50a626(0x1fd))/0xa*(-parseInt(_0x50a626(0x207))/0xb)+-parseInt(_0x50a626(0x1ef))/0xc;if(_0x28be67===_0xb5ce51)break;else _0x511e7a['push'](_0x511e7a['shift']());}catch(_0x45d57c){_0x511e7a['push'](_0x511e7a['shift']());}}}(a82_0x4ca0,0xc58ca));const PerformanceTester=require(a82_0x53abe7(0x1fa)),{AUTOMATE_EVENTS:PerformanceEvents}=require(a82_0x53abe7(0x200));function a82_0x505a(_0x6ccc78,_0x3fdcaf){const _0x4ca033=a82_0x4ca0();return a82_0x505a=function(_0x505ad3,_0x5bfe67){_0x505ad3=_0x505ad3-0x1e7;let _0x4b18ee=_0x4ca033[_0x505ad3];return _0x4b18ee;},a82_0x505a(_0x6ccc78,_0x3fdcaf);}module['exports']=PerformanceTester[a82_0x53abe7(0x205)](PerformanceEvents[a82_0x53abe7(0x206)],function(){const _0x22e488=a82_0x53abe7,_0x4622ab={'cJPam':function(_0x2b2775,_0x188728){return _0x2b2775===_0x188728;},'nyDsm':_0x22e488(0x1e7),'GePax':_0x22e488(0x1fb),'aZkHQ':function(_0x4cc762,_0x4ce054,_0x5a144e){return _0x4cc762(_0x4ce054,_0x5a144e);},'xyHwS':function(_0x120996,_0x19bd4a,_0x48f87f){return _0x120996(_0x19bd4a,_0x48f87f);},'hwvvQ':function(_0x54273a,_0x2550c5){return _0x54273a(_0x2550c5);},'gCawm':_0x22e488(0x208),'IsfWj':_0x22e488(0x1e9),'zZcoL':function(_0x58fe13,_0x20caf8){return _0x58fe13*_0x20caf8;},'PortS':_0x22e488(0x204)},_0x1193fb=_0x4622ab[_0x22e488(0x1ff)](require,_0x4622ab['gCawm']),_0x29343b=_0x4622ab[_0x22e488(0x1ff)](require,_0x4622ab[_0x22e488(0x202)]),_0x34c0eb=_0x4622ab[_0x22e488(0x1f0)](0x1e,0x3e8);if(_0x1193fb[_0x22e488(0x201)]&&Object[_0x22e488(0x1fe)][_0x22e488(0x1ed)][_0x22e488(0x209)](_0x1193fb['globalAgent'],_0x4622ab['PortS']))_0x1193fb[_0x22e488(0x201)][_0x22e488(0x204)]=!![],_0x29343b['globalAgent'][_0x22e488(0x204)]=!![],_0x1193fb[_0x22e488(0x201)]['keepAliveMsecs']=_0x34c0eb,_0x29343b['globalAgent'][_0x22e488(0x1ee)]=_0x34c0eb;else{const _0x5bfa79={};_0x5bfa79[_0x22e488(0x204)]=!![],_0x5bfa79[_0x22e488(0x1ee)]=_0x34c0eb;const _0x51aeb4=new _0x1193fb[(_0x22e488(0x1f1))](_0x5bfa79),_0xb6a87f={};_0xb6a87f[_0x22e488(0x204)]=!![],_0xb6a87f[_0x22e488(0x1ee)]=_0x34c0eb;const _0x393119=new _0x29343b[(_0x22e488(0x1f1))](_0xb6a87f),_0x2c8f80=_0x1193fb['request'],_0x1c74b7=_0x29343b[_0x22e488(0x1eb)];_0x1193fb['request']=function(_0x5a10d5,_0xd43eb5){const _0x2f3ee0=_0x22e488;if(_0x4622ab['cJPam'](_0x5a10d5[_0x2f3ee0(0x1f4)],_0x4622ab[_0x2f3ee0(0x1e8)]))return _0x5a10d5[_0x4622ab['GePax']]=_0x393119,_0x4622ab[_0x2f3ee0(0x1f6)](_0x1c74b7,_0x5a10d5,_0xd43eb5);return _0x5a10d5[_0x4622ab['GePax']]=_0x51aeb4,_0x4622ab[_0x2f3ee0(0x1f3)](_0x2c8f80,_0x5a10d5,_0xd43eb5);};}});
@@ -1 +1 @@
1
- var a83_0x1222f3=a83_0x16cb;(function(_0x38cdc9,_0x49577c){var _0x3bc235=a83_0x16cb,_0x1135d1=_0x38cdc9();while(!![]){try{var _0x4bc178=parseInt(_0x3bc235(0x1ac))/0x1+-parseInt(_0x3bc235(0x1a4))/0x2*(-parseInt(_0x3bc235(0x198))/0x3)+-parseInt(_0x3bc235(0x19f))/0x4+-parseInt(_0x3bc235(0x1a7))/0x5+-parseInt(_0x3bc235(0x196))/0x6*(parseInt(_0x3bc235(0x1a6))/0x7)+-parseInt(_0x3bc235(0x19c))/0x8+parseInt(_0x3bc235(0x1a3))/0x9;if(_0x4bc178===_0x49577c)break;else _0x1135d1['push'](_0x1135d1['shift']());}catch(_0x94921d){_0x1135d1['push'](_0x1135d1['shift']());}}}(a83_0x42a4,0xc78aa));function a83_0x16cb(_0x1a999a,_0x3a0e5e){var _0x42a44e=a83_0x42a4();return a83_0x16cb=function(_0x16cb69,_0x164e19){_0x16cb69=_0x16cb69-0x196;var _0x57cd50=_0x42a44e[_0x16cb69];return _0x57cd50;},a83_0x16cb(_0x1a999a,_0x3a0e5e);}var a83_0x50b201={};a83_0x50b201[a83_0x1222f3(0x1a1)]=a83_0x1222f3(0x19a),a83_0x50b201[a83_0x1222f3(0x19d)]=a83_0x1222f3(0x19e),a83_0x50b201[a83_0x1222f3(0x1a2)]='codeceptjs',a83_0x50b201[a83_0x1222f3(0x199)]=a83_0x1222f3(0x197),a83_0x50b201[a83_0x1222f3(0x19b)]=a83_0x1222f3(0x1a0),module[a83_0x1222f3(0x1a5)]={'consoleHolder':Object['assign']({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':a83_0x1222f3(0x1a8),'EVENT_ENDPOINT':a83_0x1222f3(0x1a9),'BATCH_ENDPOINT':a83_0x1222f3(0x1ab),'SCREENSHOT_ENDPOINT':a83_0x1222f3(0x1aa),'DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS':0xea60,'DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS':0x64,'DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS':0x1f4,'TEMP_STORE_DIR_NAME':'.obs_test_details','FRAMEWORKS':a83_0x50b201};function a83_0x42a4(){var _0x5eec0c=['1248930vgoRvU','1512696DGmPhX','jest','10344PdFbVu','JEST','Playwright','CUCUMBER','2434272AENRDW','MOCHA','mocha','848780LxgXmp','cucumber','PLAYWRIGHT','CODECEPT','13569705VgfoII','172zzvdMn','exports','14GFPANs','6075850MiWNIT','https://collector-observability.browserstack.com','api/v1/event','api/v1/screenshots','api/v1/batch'];a83_0x42a4=function(){return _0x5eec0c;};return a83_0x42a4();}
1
+ function a83_0x1a81(_0x27996c,_0x25fff5){var _0x4f4c12=a83_0x4f4c();return a83_0x1a81=function(_0x1a818d,_0x1dc7fc){_0x1a818d=_0x1a818d-0x68;var _0x5bec55=_0x4f4c12[_0x1a818d];return _0x5bec55;},a83_0x1a81(_0x27996c,_0x25fff5);}var a83_0x28cbe5=a83_0x1a81;(function(_0x18c3df,_0x2b64e2){var _0x2d7d0a=a83_0x1a81,_0xbb6d85=_0x18c3df();while(!![]){try{var _0x2d5974=parseInt(_0x2d7d0a(0x6c))/0x1+-parseInt(_0x2d7d0a(0x6d))/0x2*(parseInt(_0x2d7d0a(0x73))/0x3)+-parseInt(_0x2d7d0a(0x76))/0x4+-parseInt(_0x2d7d0a(0x7b))/0x5*(-parseInt(_0x2d7d0a(0x6b))/0x6)+parseInt(_0x2d7d0a(0x6a))/0x7+-parseInt(_0x2d7d0a(0x6f))/0x8*(-parseInt(_0x2d7d0a(0x7a))/0x9)+parseInt(_0x2d7d0a(0x71))/0xa*(-parseInt(_0x2d7d0a(0x72))/0xb);if(_0x2d5974===_0x2b64e2)break;else _0xbb6d85['push'](_0xbb6d85['shift']());}catch(_0x4cb8e7){_0xbb6d85['push'](_0xbb6d85['shift']());}}}(a83_0x4f4c,0xa0b80));var a83_0x498c63={};function a83_0x4f4c(){var _0x4856d9=['CUCUMBER','PLAYWRIGHT','jest','api/v1/screenshots','4688327OoliQu','318gWQWir','400135pDbpqE','108tCtrdG','assign','32KSQjoe','codeceptjs','11871170XKEkXm','11cQMyQz','30864UimQxT','MOCHA','JEST','2928648TPcZNi','mocha','https://collector-observability.browserstack.com','exports','2019861ULCYms','109955SmEJOz','CODECEPT'];a83_0x4f4c=function(){return _0x4856d9;};return a83_0x4f4c();}a83_0x498c63[a83_0x28cbe5(0x7e)]='Playwright',a83_0x498c63[a83_0x28cbe5(0x74)]=a83_0x28cbe5(0x77),a83_0x498c63[a83_0x28cbe5(0x7c)]=a83_0x28cbe5(0x70),a83_0x498c63[a83_0x28cbe5(0x75)]=a83_0x28cbe5(0x68),a83_0x498c63[a83_0x28cbe5(0x7d)]='cucumber',module[a83_0x28cbe5(0x79)]={'consoleHolder':Object[a83_0x28cbe5(0x6e)]({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':a83_0x28cbe5(0x78),'EVENT_ENDPOINT':'api/v1/event','BATCH_ENDPOINT':'api/v1/batch','SCREENSHOT_ENDPOINT':a83_0x28cbe5(0x69),'DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS':0xea60,'DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS':0x64,'DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS':0x1f4,'TEMP_STORE_DIR_NAME':'.obs_test_details','FRAMEWORKS':a83_0x498c63};
@@ -1 +1 @@
1
- const a84_0x458a11=a84_0x26a7;(function(_0x2a97f8,_0x3d54ad){const _0x16f409=a84_0x26a7,_0x111507=_0x2a97f8();while(!![]){try{const _0x4fcf36=-parseInt(_0x16f409(0x127))/0x1*(parseInt(_0x16f409(0x123))/0x2)+-parseInt(_0x16f409(0xda))/0x3+-parseInt(_0x16f409(0x11c))/0x4*(parseInt(_0x16f409(0xfc))/0x5)+parseInt(_0x16f409(0xcb))/0x6+-parseInt(_0x16f409(0xff))/0x7*(-parseInt(_0x16f409(0xef))/0x8)+parseInt(_0x16f409(0xed))/0x9*(parseInt(_0x16f409(0x107))/0xa)+-parseInt(_0x16f409(0x11e))/0xb;if(_0x4fcf36===_0x3d54ad)break;else _0x111507['push'](_0x111507['shift']());}catch(_0x5ca123){_0x111507['push'](_0x111507['shift']());}}}(a84_0x471f,0xb7407));const util=require('util'),PerformanceTester=require('../performance/performance-tester'),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require(a84_0x458a11(0xfb)),{getAgentVersion,nestedKeyValue}=require(a84_0x458a11(0x113)),o11yErrorHandler=(_0x5afa9c,_0x3f3f0f='',_0x1adac9=[''],_0x52a0ee=![])=>{const _0x39c094={'Mcefb':function(_0x550570,_0x33ff6a){return _0x550570(_0x33ff6a);},'khScy':function(_0x1a0b99,_0x165e44,_0x4d1ce5){return _0x1a0b99(_0x165e44,_0x4d1ce5);},'CQBdj':function(_0x5bdda4,_0x1a4829,_0xf6ea71){return _0x5bdda4(_0x1a4829,_0xf6ea71);},'ZELpB':function(_0x3052bb,_0x24d03b){return _0x3052bb instanceof _0x24d03b;},'pzKXe':function(_0x17ad4f,_0x1d812c,_0x4be709,_0x448ac1,_0x4224d9){return _0x17ad4f(_0x1d812c,_0x4be709,_0x448ac1,_0x4224d9);}};return function(..._0x3e8984){const _0x3457bf=a84_0x26a7;try{let _0x289787=_0x5afa9c;process['env'][_0x3457bf(0x110)]&&(_0x289787=PerformanceTester[_0x3457bf(0xf7)]()[_0x3457bf(0xd2)](_0x289787));_0x52a0ee&&_0x39c094[_0x3457bf(0x128)](trace,_0x3457bf(0xd5)+_0x3f3f0f+_0x3457bf(0xe4)+process[_0x3457bf(0xca)]+_0x3457bf(0x10e)+_0x39c094[_0x3457bf(0xe9)](nestedKeyValue,arguments[0x0],_0x1adac9));const _0x1d5112=_0x289787[_0x3457bf(0xdc)](null,arguments);_0x52a0ee&&_0x39c094['Mcefb'](trace,_0x3457bf(0x10c)+_0x3f3f0f+',\x20PID\x20-\x20'+process[_0x3457bf(0xca)]+_0x3457bf(0x10e)+_0x39c094['CQBdj'](nestedKeyValue,arguments[0x0],_0x1adac9));if(_0x39c094['ZELpB'](_0x1d5112,Promise))return _0x1d5112[_0x3457bf(0xe3)](_0x35b146=>processError(_0x35b146,_0x5afa9c,_0x3e8984,_0x3f3f0f));return _0x1d5112;}catch(_0x57848f){_0x39c094['pzKXe'](processError,_0x57848f,_0x5afa9c,_0x3e8984,_0x3f3f0f);}};},o11yClassErrorHandler=(_0x22c2c2,_0x13444e,_0x457350='')=>{const _0x47314c=a84_0x458a11,_0x4519d2={'Wqzlk':function(_0x2e3fb0,_0x493d31){return _0x2e3fb0 instanceof _0x493d31;},'obIim':function(_0x483c6e,_0x3df1a9,_0x385af7,_0x24bc1a,_0x33a053){return _0x483c6e(_0x3df1a9,_0x385af7,_0x24bc1a,_0x33a053);},'gWxrr':function(_0x18e575,_0x305478){return _0x18e575===_0x305478;},'LDRwc':_0x47314c(0xd9),'mhQCw':function(_0x4fc83b,_0x3addd4){return _0x4fc83b!==_0x3addd4;},'oSzaA':'constructor','EDBOV':function(_0x3080a8,_0x513f66){return _0x3080a8<_0x513f66;}},_0x3bd42e=_0x22c2c2[_0x47314c(0xe6)];if(_0x4519d2[_0x47314c(0xd8)](Object[_0x47314c(0xc5)](_0x3bd42e)['length'],0x2))return _0x22c2c2;return Object['getOwnPropertyNames'](_0x3bd42e)[_0x47314c(0x12f)](_0x224ec0=>{const _0x3b3105=_0x47314c;if(!(_0x13444e&&_0x13444e[_0x3b3105(0xdd)](_0x224ec0)))return;const _0x13767f=_0x3bd42e[_0x224ec0];_0x4519d2['gWxrr'](typeof _0x13767f,_0x4519d2['LDRwc'])&&_0x4519d2[_0x3b3105(0x129)](_0x224ec0,_0x4519d2[_0x3b3105(0xe1)])&&Object[_0x3b3105(0xc6)](_0x3bd42e,_0x224ec0,{'writable':!![],'value':function(..._0x5435f3){const _0x137b58=_0x3b3105;try{const _0x25278c=(process['env'][_0x137b58(0x110)]?PerformanceTester[_0x137b58(0xf7)]()[_0x137b58(0xd2)](_0x13767f):_0x13767f)[_0x137b58(0x112)](this,..._0x5435f3);if(_0x4519d2[_0x137b58(0xfd)](_0x25278c,Promise))return _0x25278c[_0x137b58(0xe3)](_0x5ff2ba=>processError(_0x5ff2ba,_0x13767f,_0x5435f3,_0x457350));return _0x25278c;}catch(_0x499338){_0x4519d2[_0x137b58(0xfa)](processError,_0x499338,_0x13767f,_0x5435f3,_0x457350);}}});}),_0x22c2c2;};function processError(_0xdb2a5c,_0x3d5dad,_0x175b8a,_0x5e4c1c){const _0x433d49=a84_0x458a11,_0x5e46d7={'UHioB':function(_0x59f77b,_0x4bb7f4){return _0x59f77b(_0x4bb7f4);}};_0x5e46d7[_0x433d49(0xfe)](debug,'Error\x20in\x20executing\x20'+_0x3d5dad[_0x433d49(0x105)]+'\x20--\x20'+_0x5e4c1c+_0x433d49(0x12a)+_0xdb2a5c+_0x433d49(0x11f)+_0x175b8a+'.'),PerformanceTester['captureError'](_0xdb2a5c);let _0x40d898;try{_0x40d898=JSON[_0x433d49(0xd7)](_0x175b8a);}catch(_0x2fd4c9){const _0x32eef0={};_0x32eef0[_0x433d49(0x103)]=0x2,_0x40d898=util[_0x433d49(0xec)](_0x175b8a,_0x32eef0);}CrashReporter[_0x433d49(0x101)]('Error\x20in\x20executing\x20'+_0x3d5dad[_0x433d49(0x105)]+_0x433d49(0xf8)+_0x5e4c1c+_0x433d49(0x12a)+_0xdb2a5c+_0x433d49(0x11f)+_0x40d898+'.',_0xdb2a5c&&_0xdb2a5c['stack']);}class CrashReporter{static ['userConfig']={};static [a84_0x458a11(0xd0)];static [a84_0x458a11(0x100)]={};static[a84_0x458a11(0xcc)](_0x54ed84,_0x4f0f16,_0x1ac89b=null){const _0x36ea50=a84_0x458a11,_0x56a670={'DJBhS':function(_0x3fb533,_0x34ae35){return _0x3fb533(_0x34ae35);},'MjUvU':function(_0x4a8bc9,_0x364b44){return _0x4a8bc9(_0x364b44);}},_0x104c55=_0x54ed84[_0x36ea50(0x10a)],_0x530f8c=_0x54ed84[_0x36ea50(0xd4)];!_0x1ac89b&&(_0x1ac89b=_0x56a670[_0x36ea50(0x116)](getBrowserStackConfig,_0x104c55));!_0x530f8c&&_0x56a670[_0x36ea50(0x116)](getFrameworkVersion,_0x104c55);const _0x264a69={};_0x264a69[_0x36ea50(0x10a)]=_0x104c55,_0x264a69[_0x36ea50(0xd4)]=_0x530f8c,this['setAllDetails'](_0x264a69,_0x4f0f16,_0x56a670[_0x36ea50(0x117)](getUserCredentials,_0x1ac89b));}static[a84_0x458a11(0xdf)](_0x5b5801,_0x22e6b7){const _0x40c8f4=a84_0x458a11,_0x1c51a2={};_0x1c51a2[_0x40c8f4(0x11a)]=_0x5b5801,_0x1c51a2[_0x40c8f4(0x111)]=_0x22e6b7,this[_0x40c8f4(0xd0)]=_0x1c51a2,process[_0x40c8f4(0xdb)]['CREDENTIALS_FOR_CRASH_REPORTING']=JSON[_0x40c8f4(0xd7)](this[_0x40c8f4(0xd0)]);}static['getCredentials'](){const _0x3275a3=a84_0x458a11,_0x35d6f2={'mcWVy':function(_0x268f85,_0x5126c4){return _0x268f85(_0x5126c4);}};if(!this[_0x3275a3(0xd0)]&&process[_0x3275a3(0xdb)][_0x3275a3(0x130)])try{this[_0x3275a3(0xd0)]=JSON['parse'](process['env'][_0x3275a3(0x130)]);}catch(_0xfd4928){_0x35d6f2[_0x3275a3(0x122)](debug,'Error\x20in\x20parsing\x20credentials\x20from\x20env\x20'+_0xfd4928[_0x3275a3(0xc9)]());}return this[_0x3275a3(0xd0)];}static[a84_0x458a11(0xf2)](_0x228f85){const _0x495854=a84_0x458a11;this[_0x495854(0x12d)]=this[_0x495854(0xe7)](_0x228f85),process[_0x495854(0xdb)]['USER_CONFIG_FOR_REPORTING']=JSON[_0x495854(0xd7)](this[_0x495854(0x12d)]);}static[a84_0x458a11(0xce)](){const _0x4eb601=a84_0x458a11,_0x11bca1={'yCdCA':function(_0x15b9e3,_0x9d1efe){return _0x15b9e3===_0x9d1efe;},'aOKIX':function(_0x335394,_0x147e7d){return _0x335394(_0x147e7d);}};if(_0x11bca1[_0x4eb601(0xf6)](Object[_0x4eb601(0x115)](this[_0x4eb601(0x12d)])[_0x4eb601(0x106)],0x0)&&process[_0x4eb601(0xdb)]['USER_CONFIG_FOR_REPORTING'])try{this[_0x4eb601(0x12d)]=JSON[_0x4eb601(0xf9)](process[_0x4eb601(0xdb)][_0x4eb601(0xde)]);}catch(_0x4f7915){_0x11bca1[_0x4eb601(0xea)](debug,_0x4eb601(0xe8)+_0x4f7915[_0x4eb601(0xc9)]()),this[_0x4eb601(0x12d)]={};}return this['userConfig'];}static[a84_0x458a11(0x12c)](_0x4b1e97){const _0x244b73=a84_0x458a11;this[_0x244b73(0x100)]=_0x4b1e97,process[_0x244b73(0xdb)]['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS']=JSON[_0x244b73(0xd7)](this[_0x244b73(0x100)]);}static[a84_0x458a11(0xd3)](){const _0x10d428=a84_0x458a11,_0x277701={'EasBf':function(_0x26f8a2,_0x12061a){return _0x26f8a2===_0x12061a;},'zXYWR':function(_0x43d0f3,_0x7bc3f5){return _0x43d0f3(_0x7bc3f5);}};if(_0x277701[_0x10d428(0xc8)](Object[_0x10d428(0x115)](this[_0x10d428(0x100)])[_0x10d428(0x106)],0x0)&&process[_0x10d428(0xdb)][_0x10d428(0xf0)])try{this[_0x10d428(0x100)]=JSON[_0x10d428(0xf9)](process[_0x10d428(0xdb)][_0x10d428(0xf0)]);}catch(_0x4a6040){_0x277701['zXYWR'](debug,_0x10d428(0x119)+_0x4a6040[_0x10d428(0xc9)]());}return this[_0x10d428(0x100)];}static[a84_0x458a11(0x108)](_0xc1ca02,_0x202401,_0x2a906f){const _0x3f84d2=a84_0x458a11;_0xc1ca02&&this[_0x3f84d2(0x12c)](_0xc1ca02),_0x202401&&this['setConfigDetails'](_0x202401),_0x2a906f&&this[_0x3f84d2(0xdf)](_0x2a906f['username'],_0x2a906f[_0x3f84d2(0x111)]);}static async[a84_0x458a11(0x101)](_0x26717a,_0x5ee3a5){const _0xfa9f6b=a84_0x458a11,_0x518141={'nArfE':function(_0x2be22a,_0x4e97c6){return _0x2be22a(_0x4e97c6);},'tZETD':function(_0x76233a,_0x51b1e4){return _0x76233a(_0x51b1e4);},'ajhVH':function(_0x4fa306,_0x2b64cd){return _0x4fa306(_0x2b64cd);},'BFzfi':_0xfa9f6b(0x12b),'WNLEy':function(_0x33fa00){return _0x33fa00();},'ZwmUP':_0xfa9f6b(0x109),'ZhGQK':_0xfa9f6b(0x124),'QuaQB':_0xfa9f6b(0x114),'fDuzx':function(_0xe31fb5,_0x39028a,_0x323b3c,_0x20fc05,_0x33db1a,_0x136fb6){return _0xe31fb5(_0x39028a,_0x323b3c,_0x20fc05,_0x33db1a,_0x136fb6);},'uHyLb':_0xfa9f6b(0xe2)};this[_0xfa9f6b(0x11d)]();if(!this['credentials'])return _0x518141['ajhVH'](debug,_0x518141['BFzfi']);this[_0xfa9f6b(0xce)](),this[_0xfa9f6b(0xd3)]();const _0x2f08c5={'hashed_id':process[_0xfa9f6b(0xdb)][_0xfa9f6b(0xe0)],'observability_version':{'sdkVersion':_0x518141[_0xfa9f6b(0xf4)](getAgentVersion),'frameworkName':this['frameworkDetails'][_0xfa9f6b(0x10a)],'frameworkVersion':this[_0xfa9f6b(0x100)]['frameworkVersion']},'exception':{'error':_0x26717a[_0xfa9f6b(0xc9)](),'stackTrace':_0x5ee3a5},'config':this[_0xfa9f6b(0x12d)]},_0x14ec63=_0x518141['ZwmUP'],_0x54ab69={};_0x54ab69[_0xfa9f6b(0x11a)]=this[_0xfa9f6b(0xd0)]['username'],_0x54ab69[_0xfa9f6b(0x10d)]=this[_0xfa9f6b(0xd0)][_0xfa9f6b(0x111)];const _0x549862={};_0x549862['Content-Type']=_0x518141['ZhGQK'],_0x549862[_0xfa9f6b(0xcd)]=_0x518141[_0xfa9f6b(0xee)];const _0x44bdb3={};_0x44bdb3[_0xfa9f6b(0x121)]=_0x54ab69,_0x44bdb3['headers']=_0x549862;const _0x4901fe=_0x44bdb3;_0x518141[_0xfa9f6b(0xf5)](nodeRequest,_0x518141['uHyLb'],_0x14ec63,_0x2f08c5,_0x4901fe,![])[_0xfa9f6b(0x12e)](_0x159dba=>{const _0x26a33c=_0xfa9f6b;_0x518141['nArfE'](debug,_0x26a33c(0x102)+JSON[_0x26a33c(0xd7)](_0x159dba));})[_0xfa9f6b(0xe3)](_0x36367a=>{const _0x2fda4c=_0xfa9f6b;_0x518141[_0x2fda4c(0x125)](debug,_0x2fda4c(0xf1)+util[_0x2fda4c(0xeb)](_0x36367a));});}static['recursivelyDeletePIIKeysFromObject'](_0x5385cc){const _0x5f4f2a=a84_0x458a11,_0x4700e3={};_0x4700e3['hCNad']='user',_0x4700e3[_0x5f4f2a(0xcf)]=_0x5f4f2a(0x11a),_0x4700e3[_0x5f4f2a(0x118)]=_0x5f4f2a(0x11b),_0x4700e3[_0x5f4f2a(0x10f)]=_0x5f4f2a(0x111),_0x4700e3[_0x5f4f2a(0x10b)]=_0x5f4f2a(0x10d),_0x4700e3['dbBIG']=function(_0x246bfd,_0x55aa7c){return _0x246bfd===_0x55aa7c;},_0x4700e3[_0x5f4f2a(0xc7)]=_0x5f4f2a(0xd6);const _0x1e70a5=_0x4700e3;if(!_0x5385cc)return;const _0x46ac0c=[_0x1e70a5['hCNad'],_0x1e70a5[_0x5f4f2a(0xcf)],_0x1e70a5[_0x5f4f2a(0x118)],_0x1e70a5['hbZtg'],_0x1e70a5[_0x5f4f2a(0x10b)]];for(const _0x73d1e7 in _0x5385cc){if(_0x46ac0c[_0x5f4f2a(0xdd)](_0x73d1e7['toLowerCase']()))delete _0x5385cc[_0x73d1e7];else _0x1e70a5[_0x5f4f2a(0x120)](typeof _0x5385cc[_0x73d1e7],_0x1e70a5[_0x5f4f2a(0xc7)])&&this['recursivelyDeletePIIKeysFromObject'](_0x5385cc[_0x73d1e7]);}}static[a84_0x458a11(0xe7)](_0x30a6bb){const _0x491c1b=a84_0x458a11,_0x29d01e=JSON[_0x491c1b(0xf9)](JSON[_0x491c1b(0xd7)](_0x30a6bb));return this[_0x491c1b(0x104)](_0x29d01e),_0x29d01e;}}function a84_0x471f(){const _0x2ffe33=['yCdCA','getPerformance','\x20--\x20','parse','obIim','./utils','6305rgRWcu','Wqzlk','UHioB','7UDvjED','frameworkDetails','uploadCrashReport','[Crash_Report_Upload]\x20Success\x20response:\x20','depth','recursivelyDeletePIIKeysFromObject','name','length','13558730oQpNzK','setAllDetails','/api/v1/analytics','frameworkName','Zeaca','Finished\x20::\x20','password',',\x20Argument\x20-\x20','hbZtg','BROWSERSTACK_O11Y_PERF_MEASUREMENT','accessKey','call','../helper','true','keys','DJBhS','MjUvU','IyrdQ','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','username','key','472sezLnt','getCredentials','7361442GfgLap','.\x20Args\x20-\x20','dbBIG','auth','mcWVy','86838MsonYJ','application/json','tZETD','CrashReporter','11sXmTAh','Mcefb','mhQCw','.\x20Error\x20-\x20','[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','setFrameworkDetails','userConfig','then','forEach','CREDENTIALS_FOR_CRASH_REPORTING','getOwnPropertyNames','defineProperty','Myyyu','EasBf','toString','pid','8840004ZCURwo','initialize','X-BSTACK-TESTOPS','getConfig','uofgM','credentials','o11yClassErrorHandler','timerify','getFramework','frameworkVersion','Started\x20::\x20','object','stringify','EDBOV','function','3036639jzrHgw','env','apply','includes','USER_CONFIG_FOR_REPORTING','setCredentials','BS_TESTOPS_BUILD_HASHED_ID','oSzaA','POST','catch',',\x20PID\x20-\x20','exports','prototype','filterPII','Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20','khScy','aOKIX','format','inspect','9VcAZyK','QuaQB','1833872QeVrxS','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','[Crash_Report_Upload]\x20Failed\x20due\x20to\x20','setConfigDetails','o11yErrorHandler','WNLEy','fDuzx'];a84_0x471f=function(){return _0x2ffe33;};return a84_0x471f();}function a84_0x26a7(_0x1bb33d,_0x4301fd){const _0x471f6d=a84_0x471f();return a84_0x26a7=function(_0x26a7bb,_0x3c16f3){_0x26a7bb=_0x26a7bb-0xc5;let _0x465905=_0x471f6d[_0x26a7bb];return _0x465905;},a84_0x26a7(_0x1bb33d,_0x4301fd);}const a84_0x2656d3={};a84_0x2656d3[a84_0x458a11(0xf3)]=o11yErrorHandler,a84_0x2656d3[a84_0x458a11(0xd1)]=o11yClassErrorHandler,a84_0x2656d3[a84_0x458a11(0x126)]=CrashReporter,module[a84_0x458a11(0xe5)]=a84_0x2656d3;
1
+ function a84_0x5064(){const _0x6d87cf=['key','Nysam','[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','2412032bYXcWc','captureError','call','eFJlS','HQfCE','timerify','hZwqv','inspect','catch','Error\x20in\x20executing\x20','CKTez','Started\x20::\x20','Finished\x20::\x20','stack','true','YyPsF','password','nHoxV','mswHP','application/json','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','getCredentials','credentials','setFrameworkDetails','filterPII','EJvyH','depth','keys','setCredentials','yDXKe','USER_CONFIG_FOR_REPORTING','kLJOV','qyroJ','1056762rkfvpo','auth','recursivelyDeletePIIKeysFromObject','name','util','mtikR','Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20','XuCnw','uploadCrashReport','../helper','getOwnPropertyNames','BROWSERSTACK_O11Y_PERF_MEASUREMENT','getConfig','parse','stringify','CREDENTIALS_FOR_CRASH_REPORTING','GmjHN','setConfigDetails','DXQnR','frameworkDetails','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','1383086SYahnD','sGsrZ','then','frameworkVersion','nGgNt','/api/v1/analytics','frameworkName','getPerformance','231675WJrMCX','gQzXa','toString','accessKey','length','toLowerCase','Content-Type','KwuWW','plCJu','X-BSTACK-TESTOPS','setAllDetails','object','../performance/performance-tester','6748032ccsqMD','userConfig','MLJVZ',',\x20PID\x20-\x20','jBnjf','env','includes','KRumP','[Crash_Report_Upload]\x20Failed\x20due\x20to\x20','getFramework','o11yClassErrorHandler','POST','./utils','FeXqD','apply','CrashReporter','exports','279583UzrkHa','LbPFs','srrUH','VQabw','716163YbHbAv',',\x20Argument\x20-\x20','peIDu','constructor','IjvjU','\x20--\x20','RGpdx','username','format','48DmQfWp','NmaQu'];a84_0x5064=function(){return _0x6d87cf;};return a84_0x5064();}const a84_0x650b13=a84_0x3c0d;(function(_0x761a29,_0x2f918b){const _0x177a31=a84_0x3c0d,_0x160587=_0x761a29();while(!![]){try{const _0x236fd2=-parseInt(_0x177a31(0x1d4))/0x1+-parseInt(_0x177a31(0x21c))/0x2+-parseInt(_0x177a31(0x1d8))/0x3+parseInt(_0x177a31(0x1e1))/0x4*(parseInt(_0x177a31(0x1b6))/0x5)+-parseInt(_0x177a31(0x207))/0x6+parseInt(_0x177a31(0x1e6))/0x7+parseInt(_0x177a31(0x1c3))/0x8;if(_0x236fd2===_0x2f918b)break;else _0x160587['push'](_0x160587['shift']());}catch(_0x55fdb1){_0x160587['push'](_0x160587['shift']());}}}(a84_0x5064,0x576ee));const util=require(a84_0x650b13(0x20b)),PerformanceTester=require(a84_0x650b13(0x1c2)),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require(a84_0x650b13(0x1cf)),{getAgentVersion,nestedKeyValue}=require(a84_0x650b13(0x210)),o11yErrorHandler=(_0x14543b,_0x402139='',_0x52b4e8=[''],_0x2f1dce=![])=>{const _0x5c1aa8={'KwuWW':function(_0x49dfdd,_0x4a9e84){return _0x49dfdd(_0x4a9e84);},'peIDu':function(_0x3c80df,_0x514788,_0x4c28f9){return _0x3c80df(_0x514788,_0x4c28f9);},'mswHP':function(_0x26b6f1,_0x4458f9){return _0x26b6f1(_0x4458f9);},'CKTez':function(_0x411819,_0xa2dd03){return _0x411819 instanceof _0xa2dd03;},'VEPRZ':function(_0xeb2a63,_0x5a36bf,_0x33cbfa,_0x33d84f,_0x36a43e){return _0xeb2a63(_0x5a36bf,_0x33cbfa,_0x33d84f,_0x36a43e);}};return function(..._0x5808ae){const _0x3b28e3=a84_0x3c0d;try{let _0x42bba5=_0x14543b;process['env'][_0x3b28e3(0x212)]&&(_0x42bba5=PerformanceTester['getPerformance']()[_0x3b28e3(0x1eb)](_0x42bba5));_0x2f1dce&&_0x5c1aa8[_0x3b28e3(0x1bd)](trace,_0x3b28e3(0x1f1)+_0x402139+_0x3b28e3(0x1c6)+process['pid']+_0x3b28e3(0x1d9)+_0x5c1aa8[_0x3b28e3(0x1da)](nestedKeyValue,arguments[0x0],_0x52b4e8));const _0x1b4e0b=_0x42bba5[_0x3b28e3(0x1d1)](null,arguments);_0x2f1dce&&_0x5c1aa8[_0x3b28e3(0x1f8)](trace,_0x3b28e3(0x1f2)+_0x402139+',\x20PID\x20-\x20'+process['pid']+',\x20Argument\x20-\x20'+_0x5c1aa8[_0x3b28e3(0x1da)](nestedKeyValue,arguments[0x0],_0x52b4e8));if(_0x5c1aa8[_0x3b28e3(0x1f0)](_0x1b4e0b,Promise))return _0x1b4e0b[_0x3b28e3(0x1ee)](_0x4aa142=>processError(_0x4aa142,_0x14543b,_0x5808ae,_0x402139));return _0x1b4e0b;}catch(_0x4a0f6f){_0x5c1aa8['VEPRZ'](processError,_0x4a0f6f,_0x14543b,_0x5808ae,_0x402139);}};},o11yClassErrorHandler=(_0x589873,_0x48043c,_0x4af6f6='')=>{const _0x2334b7=a84_0x650b13,_0x5072ef={'YyPsF':function(_0x36f35b,_0x4c139b){return _0x36f35b instanceof _0x4c139b;},'RvTaq':function(_0x28b357,_0x280fa4,_0x2fff83,_0x36772d,_0x56ef2d){return _0x28b357(_0x280fa4,_0x2fff83,_0x36772d,_0x56ef2d);},'mtikR':function(_0x1c07b4,_0x5bba55){return _0x1c07b4===_0x5bba55;},'RGpdx':'function','Nysam':function(_0xb8ad23,_0x310629){return _0xb8ad23!==_0x310629;},'qyroJ':_0x2334b7(0x1db),'GmjHN':function(_0x5323ae,_0x246b1c){return _0x5323ae<_0x246b1c;}},_0x474a28=_0x589873['prototype'];if(_0x5072ef[_0x2334b7(0x217)](Object[_0x2334b7(0x211)](_0x474a28)[_0x2334b7(0x1ba)],0x2))return _0x589873;return Object[_0x2334b7(0x211)](_0x474a28)['forEach'](_0x87ad18=>{const _0x279306=_0x2334b7;if(!(_0x48043c&&_0x48043c[_0x279306(0x1c9)](_0x87ad18)))return;const _0x594a1b=_0x474a28[_0x87ad18];_0x5072ef[_0x279306(0x20c)](typeof _0x594a1b,_0x5072ef[_0x279306(0x1de)])&&_0x5072ef[_0x279306(0x1e4)](_0x87ad18,_0x5072ef[_0x279306(0x206)])&&Object['defineProperty'](_0x474a28,_0x87ad18,{'writable':!![],'value':function(..._0x192b87){const _0x19f667=_0x279306;try{const _0x3bc67e=(process['env']['BROWSERSTACK_O11Y_PERF_MEASUREMENT']?PerformanceTester[_0x19f667(0x223)]()[_0x19f667(0x1eb)](_0x594a1b):_0x594a1b)[_0x19f667(0x1e8)](this,..._0x192b87);if(_0x5072ef[_0x19f667(0x1f5)](_0x3bc67e,Promise))return _0x3bc67e[_0x19f667(0x1ee)](_0x55b6d7=>processError(_0x55b6d7,_0x594a1b,_0x192b87,_0x4af6f6));return _0x3bc67e;}catch(_0x563888){_0x5072ef['RvTaq'](processError,_0x563888,_0x594a1b,_0x192b87,_0x4af6f6);}}});}),_0x589873;};function processError(_0x50f825,_0xdff6f3,_0x1fb703,_0x2e59ee){const _0x1fb134=a84_0x650b13,_0x4fc267={'plCJu':function(_0xeec11d,_0x2c5023){return _0xeec11d(_0x2c5023);}};_0x4fc267[_0x1fb134(0x1be)](debug,_0x1fb134(0x1ef)+_0xdff6f3['name']+_0x1fb134(0x1dd)+_0x2e59ee+'.\x20Error\x20-\x20'+_0x50f825+'.\x20Args\x20-\x20'+_0x1fb703+'.'),PerformanceTester[_0x1fb134(0x1e7)](_0x50f825);let _0x252ad6;try{_0x252ad6=JSON[_0x1fb134(0x215)](_0x1fb703);}catch(_0x487bec){const _0x2a1177={};_0x2a1177[_0x1fb134(0x200)]=0x2,_0x252ad6=util[_0x1fb134(0x1ed)](_0x1fb703,_0x2a1177);}CrashReporter[_0x1fb134(0x20f)](_0x1fb134(0x1ef)+_0xdff6f3[_0x1fb134(0x20a)]+_0x1fb134(0x1dd)+_0x2e59ee+'.\x20Error\x20-\x20'+_0x50f825+'.\x20Args\x20-\x20'+_0x252ad6+'.',_0x50f825&&_0x50f825[_0x1fb134(0x1f3)]);}class CrashReporter{static ['userConfig']={};static [a84_0x650b13(0x1fc)];static [a84_0x650b13(0x21a)]={};static['initialize'](_0x302629,_0x361fc5,_0x57d48a=null){const _0x545b39=a84_0x650b13,_0x28ff75={'eFJlS':function(_0x74a480,_0x3f5b26){return _0x74a480(_0x3f5b26);},'FeXqD':function(_0x95a12,_0x18a5ff){return _0x95a12(_0x18a5ff);},'NmaQu':function(_0x2e45c2,_0x4557ca){return _0x2e45c2(_0x4557ca);}},_0x24146e=_0x302629[_0x545b39(0x222)],_0x374427=_0x302629['frameworkVersion'];!_0x57d48a&&(_0x57d48a=_0x28ff75[_0x545b39(0x1e9)](getBrowserStackConfig,_0x24146e));!_0x374427&&_0x28ff75[_0x545b39(0x1d0)](getFrameworkVersion,_0x24146e);const _0x34a463={};_0x34a463['frameworkName']=_0x24146e,_0x34a463[_0x545b39(0x21f)]=_0x374427,this['setAllDetails'](_0x34a463,_0x361fc5,_0x28ff75[_0x545b39(0x1e2)](getUserCredentials,_0x57d48a));}static[a84_0x650b13(0x202)](_0xee662,_0xc7f87){const _0x4f4df7=a84_0x650b13,_0x104799={};_0x104799[_0x4f4df7(0x1df)]=_0xee662,_0x104799[_0x4f4df7(0x1b9)]=_0xc7f87,this[_0x4f4df7(0x1fc)]=_0x104799,process['env'][_0x4f4df7(0x216)]=JSON[_0x4f4df7(0x215)](this[_0x4f4df7(0x1fc)]);}static[a84_0x650b13(0x1fb)](){const _0x36f324=a84_0x650b13,_0x2ffec7={'LbPFs':function(_0x7f0c47,_0x23695c){return _0x7f0c47(_0x23695c);}};if(!this[_0x36f324(0x1fc)]&&process[_0x36f324(0x1c8)][_0x36f324(0x216)])try{this[_0x36f324(0x1fc)]=JSON[_0x36f324(0x214)](process[_0x36f324(0x1c8)][_0x36f324(0x216)]);}catch(_0x29f2ac){_0x2ffec7[_0x36f324(0x1d5)](debug,_0x36f324(0x21b)+_0x29f2ac[_0x36f324(0x1b8)]());}return this[_0x36f324(0x1fc)];}static[a84_0x650b13(0x218)](_0x6272b0){const _0x4ed18b=a84_0x650b13;this[_0x4ed18b(0x1c4)]=this['filterPII'](_0x6272b0),process[_0x4ed18b(0x1c8)]['USER_CONFIG_FOR_REPORTING']=JSON[_0x4ed18b(0x215)](this[_0x4ed18b(0x1c4)]);}static[a84_0x650b13(0x213)](){const _0x40ec77=a84_0x650b13,_0x32696c={'kLJOV':function(_0x524f7d,_0x30cb31){return _0x524f7d===_0x30cb31;},'yDXKe':function(_0x3ead12,_0x191bdb){return _0x3ead12(_0x191bdb);}};if(_0x32696c[_0x40ec77(0x205)](Object['keys'](this['userConfig'])[_0x40ec77(0x1ba)],0x0)&&process[_0x40ec77(0x1c8)][_0x40ec77(0x204)])try{this[_0x40ec77(0x1c4)]=JSON[_0x40ec77(0x214)](process[_0x40ec77(0x1c8)][_0x40ec77(0x204)]);}catch(_0x598731){_0x32696c[_0x40ec77(0x203)](debug,_0x40ec77(0x20d)+_0x598731[_0x40ec77(0x1b8)]()),this['userConfig']={};}return this[_0x40ec77(0x1c4)];}static[a84_0x650b13(0x1fd)](_0x4a259a){const _0x5ee8a3=a84_0x650b13;this[_0x5ee8a3(0x21a)]=_0x4a259a,process['env'][_0x5ee8a3(0x1fa)]=JSON[_0x5ee8a3(0x215)](this[_0x5ee8a3(0x21a)]);}static[a84_0x650b13(0x1cc)](){const _0x2d3de3=a84_0x650b13,_0x4d5c39={'HQfCE':function(_0x41e622,_0x4a1e05){return _0x41e622===_0x4a1e05;},'srrUH':function(_0x25126b,_0x4c7e11){return _0x25126b(_0x4c7e11);}};if(_0x4d5c39[_0x2d3de3(0x1ea)](Object[_0x2d3de3(0x201)](this['frameworkDetails'])[_0x2d3de3(0x1ba)],0x0)&&process[_0x2d3de3(0x1c8)][_0x2d3de3(0x1fa)])try{this[_0x2d3de3(0x21a)]=JSON[_0x2d3de3(0x214)](process[_0x2d3de3(0x1c8)][_0x2d3de3(0x1fa)]);}catch(_0xc1fd12){_0x4d5c39[_0x2d3de3(0x1d6)](debug,_0x2d3de3(0x21b)+_0xc1fd12[_0x2d3de3(0x1b8)]());}return this[_0x2d3de3(0x21a)];}static[a84_0x650b13(0x1c0)](_0xc50ffc,_0x37fb85,_0x1e474a){const _0x1ff271=a84_0x650b13;_0xc50ffc&&this[_0x1ff271(0x1fd)](_0xc50ffc),_0x37fb85&&this[_0x1ff271(0x218)](_0x37fb85),_0x1e474a&&this[_0x1ff271(0x202)](_0x1e474a[_0x1ff271(0x1df)],_0x1e474a[_0x1ff271(0x1b9)]);}static async[a84_0x650b13(0x20f)](_0x327001,_0x39b661){const _0x53e76e=a84_0x650b13,_0x4b0243={'EJvyH':function(_0x129f19,_0x1dee1b){return _0x129f19(_0x1dee1b);},'KRumP':_0x53e76e(0x1e5),'jBnjf':function(_0x1ff111){return _0x1ff111();},'QEsjW':_0x53e76e(0x221),'sGsrZ':_0x53e76e(0x1f9),'nGgNt':_0x53e76e(0x1f4),'IjvjU':function(_0x5adb92,_0x42c4b5,_0x3cef18,_0x40385a,_0x31b59b,_0xfaea24){return _0x5adb92(_0x42c4b5,_0x3cef18,_0x40385a,_0x31b59b,_0xfaea24);},'gQzXa':_0x53e76e(0x1ce)};this['getCredentials']();if(!this[_0x53e76e(0x1fc)])return _0x4b0243[_0x53e76e(0x1ff)](debug,_0x4b0243[_0x53e76e(0x1ca)]);this[_0x53e76e(0x213)](),this[_0x53e76e(0x1cc)]();const _0xf11359={'hashed_id':process['env']['BS_TESTOPS_BUILD_HASHED_ID'],'observability_version':{'sdkVersion':_0x4b0243[_0x53e76e(0x1c7)](getAgentVersion),'frameworkName':this[_0x53e76e(0x21a)][_0x53e76e(0x222)],'frameworkVersion':this['frameworkDetails']['frameworkVersion']},'exception':{'error':_0x327001[_0x53e76e(0x1b8)](),'stackTrace':_0x39b661},'config':this[_0x53e76e(0x1c4)]},_0x2e0e9b=_0x4b0243['QEsjW'],_0x5a29ba={};_0x5a29ba[_0x53e76e(0x1df)]=this[_0x53e76e(0x1fc)][_0x53e76e(0x1df)],_0x5a29ba[_0x53e76e(0x1f6)]=this[_0x53e76e(0x1fc)][_0x53e76e(0x1b9)];const _0x3e6406={};_0x3e6406[_0x53e76e(0x1bc)]=_0x4b0243[_0x53e76e(0x21d)],_0x3e6406[_0x53e76e(0x1bf)]=_0x4b0243[_0x53e76e(0x220)];const _0x1f60b3={};_0x1f60b3[_0x53e76e(0x208)]=_0x5a29ba,_0x1f60b3['headers']=_0x3e6406;const _0x21b755=_0x1f60b3;_0x4b0243[_0x53e76e(0x1dc)](nodeRequest,_0x4b0243[_0x53e76e(0x1b7)],_0x2e0e9b,_0xf11359,_0x21b755,![])[_0x53e76e(0x21e)](_0x2e4109=>{const _0x1baeef=_0x53e76e;_0x4b0243[_0x1baeef(0x1ff)](debug,'[Crash_Report_Upload]\x20Success\x20response:\x20'+JSON[_0x1baeef(0x215)](_0x2e4109));})[_0x53e76e(0x1ee)](_0x390797=>{const _0x5c0cad=_0x53e76e;_0x4b0243[_0x5c0cad(0x1ff)](debug,_0x5c0cad(0x1cb)+util[_0x5c0cad(0x1e0)](_0x390797));});}static[a84_0x650b13(0x209)](_0x412b9a){const _0x584fe0=a84_0x650b13,_0x4452a0={};_0x4452a0['MLJVZ']='user',_0x4452a0[_0x584fe0(0x1f7)]=_0x584fe0(0x1df),_0x4452a0[_0x584fe0(0x1d7)]=_0x584fe0(0x1e3),_0x4452a0['XuCnw']='accessKey',_0x4452a0['GkEYT']=_0x584fe0(0x1f6),_0x4452a0['DXQnR']=function(_0x4c8121,_0xb8e399){return _0x4c8121===_0xb8e399;},_0x4452a0[_0x584fe0(0x1ec)]=_0x584fe0(0x1c1);const _0x22e9b9=_0x4452a0;if(!_0x412b9a)return;const _0x1aa1af=[_0x22e9b9[_0x584fe0(0x1c5)],_0x22e9b9[_0x584fe0(0x1f7)],_0x22e9b9['VQabw'],_0x22e9b9[_0x584fe0(0x20e)],_0x22e9b9['GkEYT']];for(const _0x223eb7 in _0x412b9a){if(_0x1aa1af[_0x584fe0(0x1c9)](_0x223eb7[_0x584fe0(0x1bb)]()))delete _0x412b9a[_0x223eb7];else _0x22e9b9[_0x584fe0(0x219)](typeof _0x412b9a[_0x223eb7],_0x22e9b9[_0x584fe0(0x1ec)])&&this[_0x584fe0(0x209)](_0x412b9a[_0x223eb7]);}}static[a84_0x650b13(0x1fe)](_0x1a92be){const _0x4c9012=a84_0x650b13,_0x542fb6=JSON[_0x4c9012(0x214)](JSON[_0x4c9012(0x215)](_0x1a92be));return this[_0x4c9012(0x209)](_0x542fb6),_0x542fb6;}}function a84_0x3c0d(_0x39c38b,_0x3bba75){const _0x5064f2=a84_0x5064();return a84_0x3c0d=function(_0x3c0d68,_0x243add){_0x3c0d68=_0x3c0d68-0x1b6;let _0x5d8ada=_0x5064f2[_0x3c0d68];return _0x5d8ada;},a84_0x3c0d(_0x39c38b,_0x3bba75);}const a84_0xfcb30c={};a84_0xfcb30c['o11yErrorHandler']=o11yErrorHandler,a84_0xfcb30c[a84_0x650b13(0x1cd)]=o11yClassErrorHandler,a84_0xfcb30c[a84_0x650b13(0x1d2)]=CrashReporter,module[a84_0x650b13(0x1d3)]=a84_0xfcb30c;
@@ -1 +1 @@
1
- function a85_0xefcc(){const _0x5d4898=['HookRunFinished','ssTBA','pollEventBatchInterval','slice','TestRunStarted','event_type','TestRunFinished','../helper','FPNtC','1684107lHMWsR','REMOVING','XCuHB','4246845rNcGBv','api/v1/screenshots','eventUrl','screenshotEventUrl','started','hook_run','lwVhM','message','kind','TestRunSkipped','RESETTING','HookRunStarted','format','getInstance','./constants','kjobO','add','split','43212OZrcrQ','ktMhh','5141708fjMfuL','data','486793kQbzuM','324KTpLZe','logs','138dhrNId','test_run','response','vDvWh','QPXTq','19080110iBVOvg','length','CzgBu','proceedWithUrl','queue','AULvo','56msibmI','mQUxG','MkvVY','MDJZN','Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20','uuid','JnNcP','fznMl','zKxvM','KKeVQ','BEAYu','uploadPending','TEST_SCREENSHOT','LogCreated','proceedWithData','shouldProceed','api/v1/batch','pendingUploads','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','tdWST','Processing\x20batch\x20events\x20for\x20','qlegC','MYkmZ','ldMHe','HoAfK','plzcV','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','instance','error','jhocn','batchAndPostEvents','startEventBatchPolling','removeEventBatchPolling','byteLength','BATCH_EVENT_TYPES','BxcZo','shutdown','qqMgL','exports','2|0|4|5|3|1','bySNV','resetEventBatchPolling','max','LHTvG','ZDkvc','69643MTfbVf','map','splice','EXCEPTION\x20IN\x20','bbauO','Remaining\x20Queue\x20Length\x20-\x20','statusText','gpaOX','NIWaI'];a85_0xefcc=function(){return _0x5d4898;};return a85_0xefcc();}const a85_0x15c3c3=a85_0x491f;(function(_0x2eeb35,_0x53ed94){const _0x18ee78=a85_0x491f,_0x44a856=_0x2eeb35();while(!![]){try{const _0x1ca0f1=-parseInt(_0x18ee78(0x1f0))/0x1+parseInt(_0x18ee78(0x1ec))/0x2*(-parseInt(_0x18ee78(0x1f3))/0x3)+-parseInt(_0x18ee78(0x1ee))/0x4+parseInt(_0x18ee78(0x1da))/0x5+-parseInt(_0x18ee78(0x1f1))/0x6*(parseInt(_0x18ee78(0x1c5))/0x7)+parseInt(_0x18ee78(0x1fe))/0x8*(parseInt(_0x18ee78(0x1d7))/0x9)+parseInt(_0x18ee78(0x1f8))/0xa;if(_0x1ca0f1===_0x53ed94)break;else _0x44a856['push'](_0x44a856['shift']());}catch(_0x1fff05){_0x44a856['push'](_0x44a856['shift']());}}}(a85_0xefcc,0xba7fb));const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require(a85_0x15c3c3(0x1e8)),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require('./utils'),{nestedKeyValue}=require(a85_0x15c3c3(0x1d5)),util=require('util');class RequestQueueHandler{static [a85_0x15c3c3(0x1b3)];[a85_0x15c3c3(0x20f)]=0x0;constructor(){const _0x58ab40=a85_0x15c3c3,_0x3c7007={};_0x3c7007[_0x58ab40(0x1ed)]=_0x58ab40(0x1bf),_0x3c7007[_0x58ab40(0x1c9)]=_0x58ab40(0x20b),_0x3c7007[_0x58ab40(0x215)]='CBTSessionCreated',_0x3c7007['gSAWh']=_0x58ab40(0x1d4),_0x3c7007[_0x58ab40(0x1c4)]=_0x58ab40(0x1e3),_0x3c7007[_0x58ab40(0x204)]=_0x58ab40(0x1ce),_0x3c7007[_0x58ab40(0x1f7)]=_0x58ab40(0x1d2),_0x3c7007[_0x58ab40(0x208)]=_0x58ab40(0x1e5),_0x3c7007['XCuHB']=_0x58ab40(0x20e),_0x3c7007[_0x58ab40(0x200)]=_0x58ab40(0x1db);const _0x371615=_0x3c7007,_0x4beb2b=_0x371615['ktMhh'][_0x58ab40(0x1eb)]('|');let _0x1072fc=0x0;while(!![]){switch(_0x4beb2b[_0x1072fc++]){case'0':this[_0x58ab40(0x1de)]=![];continue;case'1':this['pollEventBatchInterval']=null;continue;case'2':this[_0x58ab40(0x1fc)]=[];continue;case'3':this[_0x58ab40(0x1ba)]=[_0x371615[_0x58ab40(0x1c9)],_0x371615[_0x58ab40(0x215)],_0x371615['gSAWh'],_0x371615['ZDkvc'],_0x371615[_0x58ab40(0x204)],_0x371615['QPXTq'],_0x371615['BEAYu']];continue;case'4':this[_0x58ab40(0x1dc)]=_0x371615[_0x58ab40(0x1d9)];continue;case'5':this[_0x58ab40(0x1dd)]=_0x371615[_0x58ab40(0x200)];continue;}break;}}static[a85_0x15c3c3(0x1e7)](){const _0x4d0d29=a85_0x15c3c3;return!RequestQueueHandler['instance']&&(RequestQueueHandler[_0x4d0d29(0x1b3)]=new RequestQueueHandler()),RequestQueueHandler[_0x4d0d29(0x1b3)];}['start']=()=>{const _0x8d666=a85_0x15c3c3;!this['started']&&(this[_0x8d666(0x1de)]=!![],this[_0x8d666(0x1b7)]());};[a85_0x15c3c3(0x1ea)]=_0x3a7e76=>{const _0x1140ca=a85_0x15c3c3,_0x53531f={'MYkmZ':function(_0x19d937,_0x25b834){return _0x19d937===_0x25b834;},'NIWaI':_0x1140ca(0x20a),'FPNtC':function(_0x3cd609,_0x12afc9){return _0x3cd609(_0x12afc9);},'CzgBu':'Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..'};if(this[_0x1140ca(0x1ba)]['includes'](_0x3a7e76[_0x1140ca(0x1d3)])){if(_0x3a7e76[_0x1140ca(0x1f2)]&&_0x3a7e76[_0x1140ca(0x1f2)][0x0]&&_0x53531f[_0x1140ca(0x214)](_0x3a7e76[_0x1140ca(0x1f2)][0x0][_0x1140ca(0x1e2)],_0x53531f[_0x1140ca(0x1cd)])){const _0x5a5912={};return _0x5a5912[_0x1140ca(0x20d)]=!![],_0x5a5912[_0x1140ca(0x20c)]=[_0x3a7e76],_0x5a5912[_0x1140ca(0x1fb)]=this[_0x1140ca(0x1dd)],_0x5a5912;}this[_0x1140ca(0x1fc)]['push'](_0x3a7e76);let _0x1606d9=null;const _0x2a0933=this[_0x1140ca(0x20d)]();_0x2a0933&&(_0x53531f[_0x1140ca(0x1d6)](trace,_0x53531f[_0x1140ca(0x1fa)]),_0x1606d9=this['queue'][_0x1140ca(0x1d1)](0x0,BATCH_SIZE),this[_0x1140ca(0x1fc)][_0x1140ca(0x1c7)](0x0,BATCH_SIZE),this[_0x1140ca(0x1c1)]());const _0x4a143e={};return _0x4a143e['shouldProceed']=_0x2a0933,_0x4a143e['proceedWithData']=_0x1606d9,_0x4a143e['proceedWithUrl']=this['eventUrl'],_0x4a143e;}const _0x415aab={};return _0x415aab[_0x1140ca(0x20d)]=!![],_0x415aab;};[a85_0x15c3c3(0x1bc)]=async()=>{const _0x362f3d=a85_0x15c3c3,_0x47c7f5={'tdWST':_0x362f3d(0x1d8),'LHTvG':function(_0x5325fd,_0x24ac40){return _0x5325fd>_0x24ac40;},'lwVhM':'Shutdown-Queue','pIokA':function(_0x232d15,_0x4d9e63){return _0x232d15>_0x4d9e63;},'kjobO':function(_0x2ba39f,_0x3b0897){return _0x2ba39f(_0x3b0897);}};await this['uploadPending'](),this[_0x362f3d(0x1b8)](_0x47c7f5[_0x362f3d(0x211)]);while(_0x47c7f5[_0x362f3d(0x1c3)](this[_0x362f3d(0x1fc)][_0x362f3d(0x1f9)],0x0)){const _0x488c47=this['queue'][_0x362f3d(0x1d1)](0x0,BATCH_SIZE);this[_0x362f3d(0x1fc)]['splice'](0x0,BATCH_SIZE),await this[_0x362f3d(0x1b6)](this[_0x362f3d(0x1dc)],_0x47c7f5[_0x362f3d(0x1e0)],_0x488c47);}_0x47c7f5['pIokA'](this[_0x362f3d(0x20f)],0x0)&&_0x47c7f5[_0x362f3d(0x1e9)](debug,_0x362f3d(0x202)+this['pendingUploads']);};[a85_0x15c3c3(0x1b6)]=async(_0x41c462,_0x55cf02,_0x3120cf)=>{const _0x185aeb=a85_0x15c3c3,_0x5779fe={'qqMgL':function(_0x3eae8b,_0x2731b9){return _0x3eae8b(_0x2731b9);},'plzcV':'utf8','ZtpFK':function(_0x234d31){return _0x234d31();},'KKeVQ':function(_0x3687f3,_0x1a9bfb,_0x13568d,_0x131eb8,_0x425964){return _0x3687f3(_0x1a9bfb,_0x13568d,_0x131eb8,_0x425964);},'HoAfK':'POST','jhocn':function(_0x4cc5f2,_0x1fe749){return _0x4cc5f2-_0x1fe749;}};let _0x1a1691='';try{_0x1a1691=_0x3120cf[_0x185aeb(0x1c6)](_0x536c2c=>'\x27'+_0x536c2c['event_type']+'\x27:'+(nestedKeyValue(_0x536c2c,[_0x185aeb(0x1f4),_0x185aeb(0x203)])||nestedKeyValue(_0x536c2c,[_0x185aeb(0x1df),'uuid'])))['join'](','),_0x5779fe[_0x185aeb(0x1bd)](debug,_0x185aeb(0x212)+_0x55cf02+'.\x20Request\x20Size\x20-\x20'+Buffer[_0x185aeb(0x1b9)](util[_0x185aeb(0x1e6)]('%j',_0x3120cf),_0x5779fe[_0x185aeb(0x217)])+'\x20bytes.\x20Events\x20are\x20'+_0x1a1691);}catch(_0x6a4884){_0x5779fe[_0x185aeb(0x1bd)](debug,_0x185aeb(0x210)+util[_0x185aeb(0x1e6)](_0x6a4884)+'}');}const _0xc14ea0={'headers':_0x5779fe['ZtpFK'](getDefaultHeaders)};try{const _0x1634bd=await _0x5779fe[_0x185aeb(0x207)](nodeRequest,_0x5779fe[_0x185aeb(0x216)],_0x41c462,_0x3120cf,_0xc14ea0);if(_0x1634bd[_0x185aeb(0x1ef)]['error']){const _0x37440c={};_0x37440c['message']=_0x1634bd[_0x185aeb(0x1ef)][_0x185aeb(0x1b4)];throw _0x37440c;}else _0x5779fe[_0x185aeb(0x1bd)](debug,_0x55cf02+'\x20event\x20successful\x20for\x20events\x20'+_0x1a1691+'\x20--\x20'+util[_0x185aeb(0x1e6)]('%j',_0x1634bd[_0x185aeb(0x1ef)])),this[_0x185aeb(0x20f)]=Math[_0x185aeb(0x1c2)](0x0,_0x5779fe[_0x185aeb(0x1b5)](this['pendingUploads'],_0x3120cf[_0x185aeb(0x1f9)]));}catch(_0x19edc5){_0x19edc5[_0x185aeb(0x1f5)]?_0x5779fe[_0x185aeb(0x1bd)](debug,_0x185aeb(0x1c8)+_0x55cf02+_0x185aeb(0x1b2)+_0x19edc5[_0x185aeb(0x1f5)]['status']+'\x20'+_0x19edc5['response'][_0x185aeb(0x1cb)]+'\x20'+util['format']('%j',_0x19edc5[_0x185aeb(0x1f5)])):_0x5779fe[_0x185aeb(0x1bd)](debug,_0x185aeb(0x1c8)+_0x55cf02+_0x185aeb(0x1b2)+(_0x19edc5[_0x185aeb(0x1e1)]||_0x19edc5)),this[_0x185aeb(0x20f)]=Math[_0x185aeb(0x1c2)](0x0,_0x5779fe[_0x185aeb(0x1b5)](this[_0x185aeb(0x20f)],_0x3120cf[_0x185aeb(0x1f9)]));}};[a85_0x15c3c3(0x1b7)]=()=>{const _0x3ef64f=a85_0x15c3c3,_0x2aaa64={'AULvo':function(_0x2ed2b6,_0x16dab2){return _0x2ed2b6>_0x16dab2;},'qlegC':function(_0x3ecb96,_0x532901){return _0x3ecb96(_0x532901);},'bySNV':'Interval-Queue','gpaOX':function(_0x522571,_0x3b5af5,_0x2f1700){return _0x522571(_0x3b5af5,_0x2f1700);}};this[_0x3ef64f(0x1d0)]=_0x2aaa64[_0x3ef64f(0x1cc)](setInterval,async()=>{const _0x5d71df=_0x3ef64f;if(_0x2aaa64[_0x5d71df(0x1fd)](this['queue'][_0x5d71df(0x1f9)],0x0)){_0x2aaa64[_0x5d71df(0x213)](trace,'Processing\x20events.\x20Queue\x20Length\x20-\x20'+this[_0x5d71df(0x1fc)][_0x5d71df(0x1f9)]);const _0x1c57b0=this[_0x5d71df(0x1fc)][_0x5d71df(0x1d1)](0x0,BATCH_SIZE);this[_0x5d71df(0x1fc)]['splice'](0x0,BATCH_SIZE),await this[_0x5d71df(0x1b6)](this[_0x5d71df(0x1dc)],_0x2aaa64[_0x5d71df(0x1c0)],_0x1c57b0),_0x2aaa64[_0x5d71df(0x213)](trace,_0x5d71df(0x1ca)+this[_0x5d71df(0x1fc)]['length']);}},BATCH_INTERVAL);};['resetEventBatchPolling']=()=>{const _0x485cba=a85_0x15c3c3,_0x372f71={};_0x372f71['klZLb']=_0x485cba(0x1e4);const _0x383d08=_0x372f71;this['removeEventBatchPolling'](_0x383d08['klZLb']),this[_0x485cba(0x1b7)]();};['removeEventBatchPolling']=_0x8e3b83=>{const _0x5c7808=a85_0x15c3c3,_0x33d5bf={'vDvWh':function(_0x204b5d,_0x2c71cb){return _0x204b5d(_0x2c71cb);},'ssTBA':function(_0xdd92e3,_0x30a52d){return _0xdd92e3===_0x30a52d;},'mQUxG':'REMOVING'};this[_0x5c7808(0x1d0)]&&(_0x33d5bf[_0x5c7808(0x1f6)](clearInterval,this[_0x5c7808(0x1d0)]),this['pollEventBatchInterval']=null,_0x33d5bf[_0x5c7808(0x1cf)](_0x8e3b83,_0x33d5bf[_0x5c7808(0x1ff)])&&(this[_0x5c7808(0x1de)]=![]));};[a85_0x15c3c3(0x20d)]=()=>{const _0x23d1f0=a85_0x15c3c3,_0x572a69={};_0x572a69[_0x23d1f0(0x201)]=function(_0xe7f6ce,_0x3f7f10){return _0xe7f6ce>=_0x3f7f10;};const _0x10827e=_0x572a69;return _0x10827e[_0x23d1f0(0x201)](this[_0x23d1f0(0x1fc)][_0x23d1f0(0x1f9)],BATCH_SIZE);};async['uploadPending'](_0x20b697=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x2f62b8=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x26ed00=a85_0x15c3c3,_0x5cf08a={'fznMl':function(_0x587222,_0x40d51e){return _0x587222<=_0x40d51e;},'BxcZo':function(_0x113dfa,_0xbaec1b){return _0x113dfa<=_0xbaec1b;},'azgfY':function(_0x8f15d0,_0x47c432){return _0x8f15d0(_0x47c432);},'zKxvM':function(_0x1b15ed,_0x3e55a9){return _0x1b15ed-_0x3e55a9;}};if(_0x5cf08a[_0x26ed00(0x205)](this['pendingUploads'],0x0)||_0x5cf08a[_0x26ed00(0x1bb)](_0x20b697,0x0))return;return await _0x5cf08a['azgfY'](sleep,_0x2f62b8),this[_0x26ed00(0x209)](_0x5cf08a[_0x26ed00(0x206)](_0x20b697,_0x2f62b8));}}function a85_0x491f(_0x4d904f,_0x537f10){const _0xefcc63=a85_0xefcc();return a85_0x491f=function(_0x491f40,_0x4aa16b){_0x491f40=_0x491f40-0x1b2;let _0x2f16bd=_0xefcc63[_0x491f40];return _0x2f16bd;},a85_0x491f(_0x4d904f,_0x537f10);}module[a85_0x15c3c3(0x1be)]=RequestQueueHandler;
1
+ function a85_0x485a(){const _0xc28a8c=['uuid','tsWNQ','data','../helper','map','response','join','length','Shutdown-Queue','omhLV','3|0|4|1|2|5','start','7320EBMRIN','utf8','queue','UmOrv','shutdown','hook_run','KOoOE','logs','message','proceedWithUrl','zQBnt','Owrmc','removeEventBatchPolling','kind','REMOVING','startEventBatchPolling','event_type','api/v1/screenshots','jjwkI','rukfX','test_run','EXCEPTION\x20IN\x20','TEST_SCREENSHOT','eicxS','yECPC','batchAndPostEvents','15JeKUDa','2671AZBAyD','TestRunStarted','slice','pollEventBatchInterval','SNXRX','Remaining\x20Queue\x20Length\x20-\x20','shouldProceed','RESETTING','resetEventBatchPolling','zkLza','getInstance','dhowZ','loJgQ','format','split','Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20','HookRunFinished','3997aBZVeg','XSqrd','\x20event\x20successful\x20for\x20events\x20','screenshotEventUrl','2381346yKNiDq','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','splice','FXUkn','PXvoZ','pendingUploads','eventUrl','includes','\x20bytes.\x20Events\x20are\x20','guLKt','5932464vWxKNi','dnTtL','PWeIB','add','instance','3529773QaYHVY','ZHKVX','mJTRR','406628IAWDpm','util','3608650EabXnf','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','HhGvT','proceedWithData','rRsIh','FgcuX','max','LogCreated','CNDuM','statusText','pvoUC','started','ffvOt','uploadPending','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','exports','BATCH_EVENT_TYPES','error','Interval-Queue'];a85_0x485a=function(){return _0xc28a8c;};return a85_0x485a();}const a85_0x301dff=a85_0xdc87;function a85_0xdc87(_0x5ac637,_0x3fe212){const _0x485aba=a85_0x485a();return a85_0xdc87=function(_0xdc875d,_0x3d052b){_0xdc875d=_0xdc875d-0x1b6;let _0x2f7ecb=_0x485aba[_0xdc875d];return _0x2f7ecb;},a85_0xdc87(_0x5ac637,_0x3fe212);}(function(_0x1dd803,_0x2e05e3){const _0x14a0b1=a85_0xdc87,_0x5a6e20=_0x1dd803();while(!![]){try{const _0x2ef0ca=-parseInt(_0x14a0b1(0x1da))/0x1+parseInt(_0x14a0b1(0x203))/0x2+parseInt(_0x14a0b1(0x1fe))/0x3+parseInt(_0x14a0b1(0x201))/0x4*(-parseInt(_0x14a0b1(0x1d9))/0x5)+-parseInt(_0x14a0b1(0x1bf))/0x6*(parseInt(_0x14a0b1(0x1eb))/0x7)+-parseInt(_0x14a0b1(0x1f9))/0x8+-parseInt(_0x14a0b1(0x1ef))/0x9;if(_0x2ef0ca===_0x2e05e3)break;else _0x5a6e20['push'](_0x5a6e20['shift']());}catch(_0x169d19){_0x5a6e20['push'](_0x5a6e20['shift']());}}}(a85_0x485a,0xecf06));const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require('./constants'),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require('./utils'),{nestedKeyValue}=require(a85_0x301dff(0x1b6)),util=require(a85_0x301dff(0x202));class RequestQueueHandler{static ['instance'];['pendingUploads']=0x0;constructor(){const _0x46f784=a85_0x301dff,_0x535a5a={};_0x535a5a[_0x46f784(0x20b)]=_0x46f784(0x1bd),_0x535a5a['PGluM']=_0x46f784(0x1d0),_0x535a5a[_0x46f784(0x1c5)]=_0x46f784(0x20a),_0x535a5a[_0x46f784(0x1e6)]='CBTSessionCreated',_0x535a5a[_0x46f784(0x1c2)]='TestRunFinished',_0x535a5a[_0x46f784(0x1ca)]='TestRunSkipped',_0x535a5a['rukfX']=_0x46f784(0x1ea),_0x535a5a['zQBnt']=_0x46f784(0x1db),_0x535a5a[_0x46f784(0x20f)]='HookRunStarted',_0x535a5a[_0x46f784(0x1e5)]='api/v1/batch';const _0x4910df=_0x535a5a,_0x450a1a=_0x4910df[_0x46f784(0x20b)][_0x46f784(0x1e8)]('|');let _0x2e381f=0x0;while(!![]){switch(_0x450a1a[_0x2e381f++]){case'0':this[_0x46f784(0x20e)]=![];continue;case'1':this[_0x46f784(0x1ee)]=_0x4910df['PGluM'];continue;case'2':this[_0x46f784(0x213)]=[_0x4910df[_0x46f784(0x1c5)],_0x4910df[_0x46f784(0x1e6)],_0x4910df['UmOrv'],_0x4910df[_0x46f784(0x1ca)],_0x4910df[_0x46f784(0x1d2)],_0x4910df[_0x46f784(0x1c9)],_0x4910df[_0x46f784(0x20f)]];continue;case'3':this[_0x46f784(0x1c1)]=[];continue;case'4':this[_0x46f784(0x1f5)]=_0x4910df[_0x46f784(0x1e5)];continue;case'5':this[_0x46f784(0x1dd)]=null;continue;}break;}}static[a85_0x301dff(0x1e4)](){const _0xa4e7f5=a85_0x301dff;return!RequestQueueHandler[_0xa4e7f5(0x1fd)]&&(RequestQueueHandler[_0xa4e7f5(0x1fd)]=new RequestQueueHandler()),RequestQueueHandler[_0xa4e7f5(0x1fd)];}[a85_0x301dff(0x1be)]=()=>{const _0x3b6a86=a85_0x301dff;!this['started']&&(this[_0x3b6a86(0x20e)]=!![],this[_0x3b6a86(0x1ce)]());};[a85_0x301dff(0x1fc)]=_0x2d0ae4=>{const _0x4043c3=a85_0x301dff,_0x1d5c30={'eicxS':function(_0x4af20b,_0xd15f58){return _0x4af20b===_0xd15f58;},'EbAXs':_0x4043c3(0x1d5),'ZHKVX':function(_0x378493,_0x5e7e11){return _0x378493(_0x5e7e11);},'tsWNQ':_0x4043c3(0x204)};if(this[_0x4043c3(0x213)][_0x4043c3(0x1f6)](_0x2d0ae4['event_type'])){if(_0x2d0ae4[_0x4043c3(0x1c6)]&&_0x2d0ae4['logs'][0x0]&&_0x1d5c30[_0x4043c3(0x1d6)](_0x2d0ae4[_0x4043c3(0x1c6)][0x0][_0x4043c3(0x1cc)],_0x1d5c30['EbAXs'])){const _0x3e181c={};return _0x3e181c[_0x4043c3(0x1e0)]=!![],_0x3e181c[_0x4043c3(0x206)]=[_0x2d0ae4],_0x3e181c[_0x4043c3(0x1c8)]=this[_0x4043c3(0x1ee)],_0x3e181c;}this[_0x4043c3(0x1c1)]['push'](_0x2d0ae4);let _0x5c8b2b=null;const _0x2cb0e1=this[_0x4043c3(0x1e0)]();_0x2cb0e1&&(_0x1d5c30[_0x4043c3(0x1ff)](trace,_0x1d5c30[_0x4043c3(0x217)]),_0x5c8b2b=this[_0x4043c3(0x1c1)]['slice'](0x0,BATCH_SIZE),this[_0x4043c3(0x1c1)]['splice'](0x0,BATCH_SIZE),this[_0x4043c3(0x1e2)]());const _0x102492={};return _0x102492[_0x4043c3(0x1e0)]=_0x2cb0e1,_0x102492[_0x4043c3(0x206)]=_0x5c8b2b,_0x102492['proceedWithUrl']=this[_0x4043c3(0x1f5)],_0x102492;}const _0x199027={};return _0x199027[_0x4043c3(0x1e0)]=!![],_0x199027;};[a85_0x301dff(0x1c3)]=async()=>{const _0x491866=a85_0x301dff,_0x43b1fb={'zkLza':_0x491866(0x1cd),'pvoUC':function(_0xd0d5da,_0x4574d4){return _0xd0d5da>_0x4574d4;},'lOpqy':_0x491866(0x1bb),'HhGvT':function(_0x31f9a5,_0x3f5e5c){return _0x31f9a5(_0x3f5e5c);}};await this['uploadPending'](),this[_0x491866(0x1cb)](_0x43b1fb[_0x491866(0x1e3)]);while(_0x43b1fb[_0x491866(0x20d)](this[_0x491866(0x1c1)]['length'],0x0)){const _0x25c70c=this[_0x491866(0x1c1)][_0x491866(0x1dc)](0x0,BATCH_SIZE);this[_0x491866(0x1c1)][_0x491866(0x1f1)](0x0,BATCH_SIZE),await this[_0x491866(0x1d8)](this['eventUrl'],_0x43b1fb['lOpqy'],_0x25c70c);}_0x43b1fb[_0x491866(0x20d)](this[_0x491866(0x1f4)],0x0)&&_0x43b1fb[_0x491866(0x205)](debug,_0x491866(0x1e9)+this[_0x491866(0x1f4)]);};[a85_0x301dff(0x1d8)]=async(_0xdddc0d,_0x1404ec,_0x3cea68)=>{const _0x3c0e4d=a85_0x301dff,_0x51758f={'PXvoZ':function(_0x4b5ff0,_0x3dfbc5){return _0x4b5ff0(_0x3dfbc5);},'HQOKE':_0x3c0e4d(0x1c0),'FXUkn':function(_0x4c5692){return _0x4c5692();},'SNXRX':function(_0x58cb09,_0xd1dac7,_0x576df9,_0x1a9d1c,_0xa178df){return _0x58cb09(_0xd1dac7,_0x576df9,_0x1a9d1c,_0xa178df);},'bCqYp':'POST','omhLV':function(_0x3124ce,_0x12ee53){return _0x3124ce(_0x12ee53);},'jjwkI':function(_0x4e3efa,_0x54944d){return _0x4e3efa-_0x54944d;},'mduNf':function(_0x391e76,_0x5cfee7){return _0x391e76-_0x5cfee7;}};let _0x483a45='';try{_0x483a45=_0x3cea68[_0x3c0e4d(0x1b7)](_0x4248a4=>'\x27'+_0x4248a4[_0x3c0e4d(0x1cf)]+'\x27:'+(nestedKeyValue(_0x4248a4,[_0x3c0e4d(0x1d3),_0x3c0e4d(0x216)])||nestedKeyValue(_0x4248a4,[_0x3c0e4d(0x1c4),_0x3c0e4d(0x216)])))[_0x3c0e4d(0x1b9)](','),_0x51758f[_0x3c0e4d(0x1f3)](debug,'Processing\x20batch\x20events\x20for\x20'+_0x1404ec+'.\x20Request\x20Size\x20-\x20'+Buffer['byteLength'](util[_0x3c0e4d(0x1e7)]('%j',_0x3cea68),_0x51758f['HQOKE'])+_0x3c0e4d(0x1f7)+_0x483a45);}catch(_0x599b45){_0x51758f[_0x3c0e4d(0x1f3)](debug,_0x3c0e4d(0x211)+util[_0x3c0e4d(0x1e7)](_0x599b45)+'}');}const _0x7b8750={'headers':_0x51758f[_0x3c0e4d(0x1f2)](getDefaultHeaders)};try{const _0x232e8d=await _0x51758f[_0x3c0e4d(0x1de)](nodeRequest,_0x51758f['bCqYp'],_0xdddc0d,_0x3cea68,_0x7b8750);if(_0x232e8d[_0x3c0e4d(0x218)][_0x3c0e4d(0x214)]){const _0x31ea9c={};_0x31ea9c['message']=_0x232e8d[_0x3c0e4d(0x218)][_0x3c0e4d(0x214)];throw _0x31ea9c;}else _0x51758f[_0x3c0e4d(0x1bc)](debug,_0x1404ec+_0x3c0e4d(0x1ed)+_0x483a45+'\x20--\x20'+util[_0x3c0e4d(0x1e7)]('%j',_0x232e8d[_0x3c0e4d(0x218)])),this[_0x3c0e4d(0x1f4)]=Math[_0x3c0e4d(0x209)](0x0,_0x51758f[_0x3c0e4d(0x1d1)](this['pendingUploads'],_0x3cea68[_0x3c0e4d(0x1ba)]));}catch(_0x528921){_0x528921['response']?_0x51758f['omhLV'](debug,'EXCEPTION\x20IN\x20'+_0x1404ec+_0x3c0e4d(0x1f0)+_0x528921[_0x3c0e4d(0x1b8)]['status']+'\x20'+_0x528921[_0x3c0e4d(0x1b8)][_0x3c0e4d(0x20c)]+'\x20'+util['format']('%j',_0x528921['response'])):_0x51758f['omhLV'](debug,_0x3c0e4d(0x1d4)+_0x1404ec+_0x3c0e4d(0x1f0)+(_0x528921[_0x3c0e4d(0x1c7)]||_0x528921)),this[_0x3c0e4d(0x1f4)]=Math[_0x3c0e4d(0x209)](0x0,_0x51758f['mduNf'](this[_0x3c0e4d(0x1f4)],_0x3cea68[_0x3c0e4d(0x1ba)]));}};[a85_0x301dff(0x1ce)]=()=>{const _0x2fb698=a85_0x301dff,_0x323441={'FgcuX':function(_0x2b5dca,_0x55b768){return _0x2b5dca>_0x55b768;},'mbFhi':function(_0x54fb11,_0x4ee763){return _0x54fb11(_0x4ee763);},'HeAFz':_0x2fb698(0x215),'LNLbw':function(_0x16785f,_0xabe5d5){return _0x16785f(_0xabe5d5);},'rRsIh':function(_0x29c40e,_0x384b1e,_0x5e3e13){return _0x29c40e(_0x384b1e,_0x5e3e13);}};this[_0x2fb698(0x1dd)]=_0x323441[_0x2fb698(0x207)](setInterval,async()=>{const _0x275337=_0x2fb698;if(_0x323441[_0x275337(0x208)](this['queue'][_0x275337(0x1ba)],0x0)){_0x323441['mbFhi'](trace,'Processing\x20events.\x20Queue\x20Length\x20-\x20'+this[_0x275337(0x1c1)]['length']);const _0x20992c=this[_0x275337(0x1c1)][_0x275337(0x1dc)](0x0,BATCH_SIZE);this[_0x275337(0x1c1)][_0x275337(0x1f1)](0x0,BATCH_SIZE),await this[_0x275337(0x1d8)](this[_0x275337(0x1f5)],_0x323441['HeAFz'],_0x20992c),_0x323441['LNLbw'](trace,_0x275337(0x1df)+this['queue']['length']);}},BATCH_INTERVAL);};[a85_0x301dff(0x1e2)]=()=>{const _0x25f630=a85_0x301dff,_0x50f731={};_0x50f731[_0x25f630(0x1ec)]=_0x25f630(0x1e1);const _0x4b3556=_0x50f731;this['removeEventBatchPolling'](_0x4b3556[_0x25f630(0x1ec)]),this[_0x25f630(0x1ce)]();};[a85_0x301dff(0x1cb)]=_0x4191e2=>{const _0x56dabb=a85_0x301dff,_0x1e4b53={'mJTRR':function(_0x1128c1,_0x484e1a){return _0x1128c1(_0x484e1a);},'dnuEP':function(_0x532e3d,_0x1fc35a){return _0x532e3d===_0x1fc35a;},'guLKt':_0x56dabb(0x1cd)};this[_0x56dabb(0x1dd)]&&(_0x1e4b53[_0x56dabb(0x200)](clearInterval,this[_0x56dabb(0x1dd)]),this[_0x56dabb(0x1dd)]=null,_0x1e4b53['dnuEP'](_0x4191e2,_0x1e4b53[_0x56dabb(0x1f8)])&&(this['started']=![]));};['shouldProceed']=()=>{const _0x5c04bc=a85_0x301dff,_0x47a86a={};_0x47a86a[_0x5c04bc(0x1d7)]=function(_0x4b1114,_0x1df96a){return _0x4b1114>=_0x1df96a;};const _0x1978c3=_0x47a86a;return _0x1978c3[_0x5c04bc(0x1d7)](this[_0x5c04bc(0x1c1)]['length'],BATCH_SIZE);};async[a85_0x301dff(0x210)](_0x2b9b00=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x22c685=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x5ce539=a85_0x301dff,_0x2c123e={'dnTtL':function(_0x847437,_0x3f26ed){return _0x847437<=_0x3f26ed;},'quwtv':function(_0x1c6e06,_0x415c8e){return _0x1c6e06(_0x415c8e);},'PWeIB':function(_0x4da706,_0x57819c){return _0x4da706-_0x57819c;}};if(_0x2c123e[_0x5ce539(0x1fa)](this['pendingUploads'],0x0)||_0x2c123e[_0x5ce539(0x1fa)](_0x2b9b00,0x0))return;return await _0x2c123e['quwtv'](sleep,_0x22c685),this[_0x5ce539(0x210)](_0x2c123e[_0x5ce539(0x1fb)](_0x2b9b00,_0x22c685));}}module[a85_0x301dff(0x212)]=RequestQueueHandler;
@@ -1 +1 @@
1
- const a86_0x397126=a86_0x2577;(function(_0x1fe0f6,_0x1a7704){const _0x399d91=a86_0x2577,_0x3548bd=_0x1fe0f6();while(!![]){try{const _0x242f7f=parseInt(_0x399d91(0x136))/0x1*(-parseInt(_0x399d91(0x194))/0x2)+parseInt(_0x399d91(0x144))/0x3*(-parseInt(_0x399d91(0x146))/0x4)+parseInt(_0x399d91(0x174))/0x5+parseInt(_0x399d91(0x139))/0x6+-parseInt(_0x399d91(0x1b7))/0x7+-parseInt(_0x399d91(0x173))/0x8+parseInt(_0x399d91(0x152))/0x9*(parseInt(_0x399d91(0x147))/0xa);if(_0x242f7f===_0x1a7704)break;else _0x3548bd['push'](_0x3548bd['shift']());}catch(_0x4f0af2){_0x3548bd['push'](_0x3548bd['shift']());}}}(a86_0xefad,0xabbc6));function a86_0xefad(){const _0x5c3983=['NPQnK','HaAYV','1789518CSJJuw','jKxnh','BzshZ','BS_TESTOPS_ALLOW_SCREENSHOTS','ERROR_ACCESS_DENIED','toISOString','BROWSERSTACK_TESTHUB_JWT','VIWyy','statusText','XskjJ','xfnOC','3JfBVjA','jVCeH','3229396dqbBxG','23828570UnpFgq','Log_Upload','iRnwY','BS_TESTOPS_JWT','getCiInfo','application/json','includes','SqFBT','bFMRl','response','wnOUe','9QOxalz','basename','mluvW','hQZTB','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','Bearer\x20','getAgentVersion','Test_Skipped_Upload','GTtQx','eAmok','dCPGG','./utils','projectName','NjNpf','YKjIc','Uuvou','waitForBuildStatus','start','./requestQueueHandler','success','POST','LJyWj','getInstance','tGDET','ZGmSv','getGitMetaData','nestedKeyValue','TestRunSkipped','BS_A11Y_JWT','BIhZU','length','qprjd','OSuNa','8326760librGR','6482915EHKZjU','zRZTl','ZHWxG','api/v1/event','max','Batch-Queue','pendingUploads','Hook_Start_Upload','headers','qdpUw','sftXx','SLFKP','frameworkVersion','event_type','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20missing\x20authentication\x20token','CBT_Upload','password','../../helpers/testhub/utils','AiREG','nfSXY','message','oYuIs','build_hashed_id','browserstackAutomation','eventUrl','CBskO','BS_TESTOPS_BUILD_COMPLETED','BROWSERSTACK_BUILD_RUN_IDENTIFIER','Processing\x20event\x20-\x20\x27','HookRunStarted','LSTrB','qOtwO','100022iRmErw','bNWJw','idglv','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20',']\x20event\x20successful!','neqhj','env','info','true','RGNXK','json','uuid','buildName','buildDescription','EXCEPTION\x20IN\x20','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','data','test_run','Embmj','TestRunStarted','TestRunFinished','Data\x20upload\x20to\x20BrowserStack\x20Test\x20Observability\x20failed\x20due\x20to\x20','X-BSTACK-TESTOPS','allow_screenshots','frameworkName','fJXWm','launch','Content-Type','stringify','BROWSERSTACK_TESTHUB_UUID','Test_End_Upload','AWuVv','CREDENTIALS_FOR_CRASH_REPORTING','add','api/v1/builds','8582175UwFyPx','requestQueueHandler','app','uploadEventData','getAccessKey','jwt','BS_TESTOPS_BUILD_HASHED_ID','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','status','false','sJPJF','username','WxkyY','../logger','error','toString','HhpcN','ERROR_INVALID_CREDENTIALS','cwd','4eZYzmw'];a86_0xefad=function(){return _0x5c3983;};return a86_0xefad();}function a86_0x2577(_0x1e424f,_0x5294ac){const _0xefade7=a86_0xefad();return a86_0x2577=function(_0x25774f,_0x3d127e){_0x25774f=_0x25774f-0x131;let _0x110ff8=_0xefade7[_0x25774f];return _0x110ff8;},a86_0x2577(_0x1e424f,_0x5294ac);}const bsSetupHelper=require('../helper'),path=require('path'),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,sleep,isTestObservabilitySession,trace}=require(a86_0x397126(0x15d)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require('./constants'),RequestQueueHandler=require(a86_0x397126(0x164)),logger=require(a86_0x397126(0x1c4))['winstonLogger'],{shouldProcessEventForTesthub,isPercyBuild,getProductMap}=require(a86_0x397126(0x185));class SessionHandler{static ['requestQueueHandler']=RequestQueueHandler[a86_0x397126(0x168)]();static async[a86_0x397126(0x1ae)](_0x181006,_0x5383ce){const _0x487469=a86_0x397126,_0x23f32c={'wnOUe':function(_0x4f84d4,_0x47cb3b){return _0x4f84d4||_0x47cb3b;},'sJPJF':function(_0x238a29,_0x480aa4){return _0x238a29||_0x480aa4;},'RGNXK':function(_0x506d39,_0x556da1){return _0x506d39===_0x556da1;},'HhpcN':function(_0x85e2c5,_0x2649dc){return _0x85e2c5(_0x2649dc);},'ZUIpX':_0x487469(0x1a3),'qdpUw':'false','hQZTB':_0x487469(0x19e),'tGDET':function(_0x322489,_0x4cc115){return _0x322489(_0x4cc115);},'oanxQ':function(_0x4acad9,_0x20f6ad,_0x573487,_0x5b6ac1,_0x1310fb){return _0x4acad9(_0x20f6ad,_0x573487,_0x5b6ac1,_0x1310fb);},'dCPGG':_0x487469(0x166),'WFeES':_0x487469(0x1b6),'NBdOr':'Build\x20creation\x20successful!','xKFFE':function(_0x83de9c){return _0x83de9c();},'LJyWj':_0x487469(0x19c),'YKjIc':'null','eAmok':function(_0x29363f,_0x39b32a){return _0x29363f(_0x39b32a);},'CBskO':_0x487469(0x134),'HaAYV':_0x487469(0x13d),'hGjLD':'ERROR_SDK_DEPRECATED'},_0x42c6b2=bsSetupHelper['getUserName'](_0x181006),_0x3fa0ef=bsSetupHelper[_0x487469(0x1bb)](_0x181006),_0x257425=_0x23f32c[_0x487469(0x151)](_0x42c6b2,'')+':'+_0x23f32c[_0x487469(0x1c1)](_0x3fa0ef,'');if(_0x23f32c[_0x487469(0x19d)](_0x257425,':'))return _0x23f32c['HhpcN'](debug,_0x23f32c['ZUIpX']),process[_0x487469(0x19a)]['BS_TESTOPS_BUILD_COMPLETED']=_0x23f32c['qdpUw'],[null,null];let _0x2be04c=![],_0x31566f=![];if(_0x181006[_0x487469(0x18b)]&&_0x181006[_0x487469(0x1b9)])_0x31566f=!![];else _0x181006[_0x487469(0x18b)]&&(_0x2be04c=!![]);try{const _0x485390={'format':_0x23f32c[_0x487469(0x155)],'project_name':_0x181006[_0x487469(0x15e)]||'','name':_0x181006[_0x487469(0x1a0)]||path[_0x487469(0x153)](path['resolve'](process[_0x487469(0x135)]())),'build_identifier':_0x181006['buildIdentifier'],'description':_0x181006[_0x487469(0x1a1)]||'','start_time':new Date()[_0x487469(0x13e)](),'tags':_0x23f32c[_0x487469(0x169)](getCustomTags,_0x181006),'host_info':bsSetupHelper['getHostInfo'](),'ci_info':bsSetupHelper[_0x487469(0x14b)](),'build_run_identifier':process[_0x487469(0x19a)][_0x487469(0x18f)],'failed_tests_rerun':process[_0x487469(0x19a)]['BROWSERSTACK_RERUN']||![],'version_control':await bsSetupHelper[_0x487469(0x16b)](),'observability_version':{'frameworkName':_0x5383ce[_0x487469(0x1ac)],'frameworkVersion':_0x5383ce[_0x487469(0x180)],'sdkVersion':bsSetupHelper[_0x487469(0x158)]()},'product_map':_0x23f32c[_0x487469(0x133)](getProductMap,_0x181006)},_0x4c65d6={};_0x4c65d6[_0x487469(0x1c2)]=_0x42c6b2,_0x4c65d6[_0x487469(0x184)]=_0x3fa0ef;const _0x5b7e5a={'auth':_0x4c65d6,'headers':_0x23f32c[_0x487469(0x169)](getDefaultHeaders,![])},_0x1db06e=await _0x23f32c['oanxQ'](nodeRequest,_0x23f32c[_0x487469(0x15c)],_0x23f32c['WFeES'],_0x485390,_0x5b7e5a);_0x23f32c['tGDET'](debug,_0x23f32c['NBdOr']);const _0x30fdf9=_0x1db06e[_0x487469(0x1a4)];_0x30fdf9['build_hashed_id']&&(process[_0x487469(0x19a)]['BROWSERSTACK_TESTHUB_UUID']=_0x30fdf9['build_hashed_id']);if(_0x23f32c['xKFFE'](isTestObservabilitySession)){process[_0x487469(0x19a)]['BS_TESTOPS_BUILD_COMPLETED']=_0x23f32c[_0x487469(0x167)];if(_0x30fdf9[_0x487469(0x1bc)]){process['env'][_0x487469(0x14a)]=_0x30fdf9[_0x487469(0x1bc)];const _0x23f690={};_0x23f690[_0x487469(0x1c2)]=_0x42c6b2,_0x23f690[_0x487469(0x184)]=_0x3fa0ef,process[_0x487469(0x19a)][_0x487469(0x1b4)]=JSON[_0x487469(0x1b0)](_0x23f690);}_0x30fdf9[_0x487469(0x18a)]&&(process[_0x487469(0x19a)][_0x487469(0x1bd)]=_0x30fdf9[_0x487469(0x18a)]),_0x30fdf9[_0x487469(0x1ab)]&&(process[_0x487469(0x19a)][_0x487469(0x13c)]=_0x30fdf9[_0x487469(0x1ab)][_0x487469(0x132)]());}return[_0x1db06e['data'][_0x487469(0x1bc)],_0x1db06e['data'][_0x487469(0x18a)],_0x1db06e[_0x487469(0x1a4)][_0x487469(0x1ab)]];}catch(_0x59efd3){process[_0x487469(0x19a)][_0x487469(0x1b1)]=_0x23f32c[_0x487469(0x160)],process[_0x487469(0x19a)][_0x487469(0x18e)]=_0x23f32c[_0x487469(0x17d)],process['env']['BS_TESTOPS_JWT']=_0x23f32c[_0x487469(0x160)],process[_0x487469(0x19a)][_0x487469(0x1bd)]=_0x23f32c[_0x487469(0x160)],process[_0x487469(0x19a)][_0x487469(0x13c)]=_0x23f32c[_0x487469(0x160)];_0x59efd3[_0x487469(0x150)]?_0x23f32c['HhpcN'](debug,_0x487469(0x1be)+_0x59efd3[_0x487469(0x150)][_0x487469(0x1bf)]+'\x20'+_0x59efd3[_0x487469(0x150)][_0x487469(0x141)]+'\x20'+JSON[_0x487469(0x1b0)](_0x59efd3[_0x487469(0x150)][_0x487469(0x1a4)])):_0x23f32c[_0x487469(0x15b)](debug,_0x487469(0x1be)+(_0x59efd3[_0x487469(0x188)]||_0x59efd3));if(_0x59efd3&&_0x59efd3[_0x487469(0x188)]){const _0x110cec=_0x59efd3[_0x487469(0x188)];switch(_0x59efd3['errorType']){case _0x23f32c[_0x487469(0x18d)]:logger[_0x487469(0x131)](_0x110cec);break;case _0x23f32c[_0x487469(0x138)]:logger['info'](_0x110cec);break;case _0x23f32c['hGjLD']:logger[_0x487469(0x131)](_0x110cec);break;default:logger[_0x487469(0x131)](_0x110cec);}}else console[_0x487469(0x19b)](_0x487469(0x1a9)+_0x59efd3);return[null,null,null];}}static async[a86_0x397126(0x162)](){const _0x25a0d0=a86_0x397126,_0x9f448d={'OSuNa':_0x25a0d0(0x19c),'qOtwO':'false','BIhZU':function(_0x372553,_0x2a4bcc){return _0x372553(_0x2a4bcc);}},_0x18a676=process[_0x25a0d0(0x19a)][_0x25a0d0(0x18e)];if([_0x9f448d[_0x25a0d0(0x172)],_0x9f448d[_0x25a0d0(0x193)]]['includes'](_0x18a676))return;while([_0x9f448d['OSuNa'],_0x9f448d[_0x25a0d0(0x193)]][_0x25a0d0(0x14d)](_0x18a676)){await _0x9f448d[_0x25a0d0(0x16f)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static async[a86_0x397126(0x1ba)](_0x1967df,_0x4bff08=0x0){const _0x488d6c=a86_0x397126,_0x2566b0={'jVCeH':function(_0x42ab6,_0x3e50eb){return _0x42ab6+_0x3e50eb;},'SstME':'Test_Start_Upload','XskjJ':_0x488d6c(0x1b2),'NjIKo':_0x488d6c(0x159),'Uuvou':_0x488d6c(0x148),'fJXWm':_0x488d6c(0x17b),'aJOIO':'Hook_End_Upload','iRnwY':_0x488d6c(0x183),'zRZTl':function(_0x510ee5,_0x49d5b0){return _0x510ee5(_0x49d5b0);},'neqhj':_0x488d6c(0x1a5),'xfnOC':_0x488d6c(0x19f),'eUxaE':'hook_run','SqFBT':function(_0x3217f4,_0x4d31b3,_0x42a0f2){return _0x3217f4(_0x4d31b3,_0x42a0f2);},'iptDv':'uploadEventData','sftXx':function(_0x3cd39a,_0x3de505){return _0x3cd39a===_0x3de505;},'ZGmSv':function(_0x3d040e,_0xe1aca3){return _0x3d040e!==_0xe1aca3;},'jKxnh':'null','bFMRl':'true','bNWJw':function(_0x2d0413){return _0x2d0413();},'SLFKP':function(_0x50ae7d,_0x3e5f96){return _0x50ae7d===_0x3e5f96;},'oYuIs':function(_0x1ac71a,_0x16e3c0){return _0x1ac71a-_0x16e3c0;},'Embmj':_0x488d6c(0x131),'GTtQx':'Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','AiREG':_0x488d6c(0x14c),'NPQnK':function(_0x12300c,_0x3593b4,_0x388286,_0x5805f0,_0x2961a7){return _0x12300c(_0x3593b4,_0x388286,_0x5805f0,_0x2961a7);},'jmmgK':_0x488d6c(0x166),'LSTrB':function(_0x266f56,_0x3cc45b){return _0x266f56!==_0x3cc45b;},'ZHWxG':_0x488d6c(0x179),'idglv':function(_0x38b952,_0x13ccc1){return _0x38b952-_0x13ccc1;},'nfSXY':function(_0x45bd80,_0x2c76b3){return _0x45bd80===_0x2c76b3;},'WxkyY':_0x488d6c(0x177),'qprjd':_0x488d6c(0x165),'AWuVv':function(_0x326209,_0x24d5e7){return _0x326209(_0x24d5e7);},'JRLPe':function(_0x5e8032,_0x3ab3e6){return _0x5e8032!==_0x3ab3e6;},'yPOGZ':function(_0x2f3944,_0xd38589){return _0x2f3944-_0xd38589;},'hTzdc':function(_0x300ef8,_0x4e133a){return _0x300ef8===_0x4e133a;},'kYWly':function(_0x4d4fdc,_0x4644a4){return _0x4d4fdc>=_0x4644a4;},'BzshZ':function(_0x5e1a2c,_0x4d9a77){return _0x5e1a2c(_0x4d9a77);},'VIWyy':function(_0x13b0b3,_0x832fc2){return _0x13b0b3!==_0x832fc2;},'Fzsgc':function(_0x1ab23e,_0x1e1147){return _0x1ab23e-_0x1e1147;},'NjNpf':'Retry\x20runs\x20exceeded','mluvW':_0x488d6c(0x1c0)},_0x523e15={};_0x523e15[_0x488d6c(0x1a7)]=_0x2566b0['SstME'],_0x523e15[_0x488d6c(0x1a8)]=_0x2566b0[_0x488d6c(0x142)],_0x523e15[_0x488d6c(0x16d)]=_0x2566b0['NjIKo'],_0x523e15['LogCreated']=_0x2566b0[_0x488d6c(0x161)],_0x523e15[_0x488d6c(0x191)]=_0x2566b0[_0x488d6c(0x1ad)],_0x523e15['HookRunFinished']=_0x2566b0['aJOIO'],_0x523e15['CBTSessionCreated']=_0x2566b0[_0x488d6c(0x149)];const _0x3cc8b8=_0x523e15[_0x1967df['event_type']];_0x2566b0[_0x488d6c(0x175)](trace,_0x488d6c(0x190)+_0x1967df[_0x488d6c(0x181)]+'\x27\x20'+(bsSetupHelper[_0x488d6c(0x16c)](_0x1967df,[_0x2566b0[_0x488d6c(0x199)],_0x2566b0['xfnOC']])||bsSetupHelper[_0x488d6c(0x16c)](_0x1967df,[_0x2566b0['eUxaE'],_0x2566b0[_0x488d6c(0x143)]])));if(!_0x2566b0[_0x488d6c(0x14e)](shouldProcessEventForTesthub,_0x1967df[_0x488d6c(0x181)],_0x2566b0['iptDv']))return;_0x2566b0[_0x488d6c(0x17e)](_0x4bff08,0x0)&&process['env']['BROWSERSTACK_TESTHUB_JWT']&&_0x2566b0[_0x488d6c(0x16a)](process[_0x488d6c(0x19a)]['BROWSERSTACK_TESTHUB_JWT'],_0x2566b0[_0x488d6c(0x13a)])&&(this[_0x488d6c(0x1b8)][_0x488d6c(0x17a)]+=0x1);if(_0x2566b0[_0x488d6c(0x17e)](process[_0x488d6c(0x19a)][_0x488d6c(0x18e)],_0x2566b0[_0x488d6c(0x14f)])||process[_0x488d6c(0x19a)][_0x488d6c(0x16e)]||_0x2566b0[_0x488d6c(0x195)](isPercyBuild)){if(_0x2566b0[_0x488d6c(0x17f)](process[_0x488d6c(0x19a)][_0x488d6c(0x13f)],_0x2566b0[_0x488d6c(0x13a)])){_0x2566b0[_0x488d6c(0x175)](debug,_0x488d6c(0x1a2)+_0x3cc8b8+_0x488d6c(0x182)),this[_0x488d6c(0x1b8)]['pendingUploads']=Math[_0x488d6c(0x178)](0x0,_0x2566b0[_0x488d6c(0x189)](this[_0x488d6c(0x1b8)][_0x488d6c(0x17a)],0x1));const _0x2efd12={};return _0x2efd12[_0x488d6c(0x1bf)]=_0x2566b0[_0x488d6c(0x1a6)],_0x2efd12[_0x488d6c(0x188)]=_0x2566b0[_0x488d6c(0x15a)],_0x2efd12;}let _0xa0fd21=_0x1967df,_0x4da9ec=EVENT_ENDPOINT;this[_0x488d6c(0x1b8)][_0x488d6c(0x163)]();const {shouldProceed:_0x3dd154,proceedWithData:_0x73d31b,proceedWithUrl:_0x392e1f}=this['requestQueueHandler'][_0x488d6c(0x1b5)](_0x1967df);if(!_0x3dd154)return;else _0x73d31b&&(_0xa0fd21=_0x73d31b,_0x4da9ec=_0x392e1f);const _0xe69411={};_0xe69411['Authorization']=_0x488d6c(0x157)+process['env'][_0x488d6c(0x13f)],_0xe69411[_0x488d6c(0x1af)]=_0x2566b0[_0x488d6c(0x186)],_0xe69411[_0x488d6c(0x1aa)]=_0x2566b0['bFMRl'];const _0x143ac9={};_0x143ac9[_0x488d6c(0x17c)]=_0xe69411;const _0x33d865=_0x143ac9;try{const _0x10d750=await _0x2566b0[_0x488d6c(0x137)](nodeRequest,_0x2566b0['jmmgK'],_0x4da9ec,_0xa0fd21,_0x33d865);if(_0x10d750[_0x488d6c(0x1a4)][_0x488d6c(0x131)]){const _0x53d43e={};_0x53d43e[_0x488d6c(0x188)]=_0x10d750[_0x488d6c(0x1a4)][_0x488d6c(0x131)];throw _0x53d43e;}else{_0x2566b0['zRZTl'](debug,(_0x2566b0[_0x488d6c(0x192)](_0x4da9ec,this[_0x488d6c(0x1b8)]['eventUrl'])?_0x3cc8b8:_0x2566b0['ZHWxG'])+'['+_0x4bff08+_0x488d6c(0x198)),this[_0x488d6c(0x1b8)][_0x488d6c(0x17a)]=Math[_0x488d6c(0x178)](0x0,_0x2566b0[_0x488d6c(0x196)](this['requestQueueHandler'][_0x488d6c(0x17a)],_0x2566b0[_0x488d6c(0x187)](_0x4da9ec,_0x2566b0[_0x488d6c(0x1c3)])?0x1:_0xa0fd21[_0x488d6c(0x170)]));const _0x3f1443={};return _0x3f1443[_0x488d6c(0x1bf)]=_0x2566b0[_0x488d6c(0x171)],_0x3f1443[_0x488d6c(0x188)]='',_0x3f1443;}}catch(_0x45e022){_0x45e022['response']?_0x2566b0[_0x488d6c(0x1b3)](debug,_0x488d6c(0x1a2)+(_0x2566b0['JRLPe'](_0x4da9ec,this['requestQueueHandler'][_0x488d6c(0x18c)])?_0x3cc8b8:_0x2566b0[_0x488d6c(0x176)])+_0x488d6c(0x156)+_0x45e022[_0x488d6c(0x150)][_0x488d6c(0x1bf)]+'\x20'+_0x45e022[_0x488d6c(0x150)]['statusText']+'\x20'+JSON[_0x488d6c(0x1b0)](_0x45e022[_0x488d6c(0x150)][_0x488d6c(0x1a4)])):_0x2566b0['zRZTl'](debug,_0x488d6c(0x1a2)+(_0x2566b0['ZGmSv'](_0x4da9ec,this[_0x488d6c(0x1b8)][_0x488d6c(0x18c)])?_0x3cc8b8:_0x2566b0['ZHWxG'])+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20'+(_0x45e022[_0x488d6c(0x188)]||_0x45e022));this[_0x488d6c(0x1b8)][_0x488d6c(0x17a)]=Math['max'](0x0,_0x2566b0['yPOGZ'](this[_0x488d6c(0x1b8)]['pendingUploads'],_0x2566b0['hTzdc'](_0x4da9ec,_0x2566b0[_0x488d6c(0x1c3)])?0x1:_0xa0fd21['length']));const _0x22153e={};return _0x22153e[_0x488d6c(0x1bf)]=_0x2566b0[_0x488d6c(0x1a6)],_0x22153e[_0x488d6c(0x188)]=_0x45e022[_0x488d6c(0x188)]||(_0x45e022[_0x488d6c(0x150)]?_0x45e022['response']['status']+':'+_0x45e022['response'][_0x488d6c(0x141)]:_0x45e022),_0x22153e;}}else{if(_0x2566b0['kYWly'](_0x4bff08,0x5)){_0x2566b0[_0x488d6c(0x13b)](debug,_0x488d6c(0x1a2)+_0x3cc8b8+_0x488d6c(0x197)+_0x3cc8b8+'\x20retry\x20runs\x20exceeded');_0x2566b0['VIWyy'](process[_0x488d6c(0x19a)][_0x488d6c(0x13f)],_0x2566b0[_0x488d6c(0x13a)])&&(this['requestQueueHandler'][_0x488d6c(0x17a)]=Math[_0x488d6c(0x178)](0x0,_0x2566b0['Fzsgc'](this[_0x488d6c(0x1b8)][_0x488d6c(0x17a)],0x1)));const _0x4c339e={};return _0x4c339e[_0x488d6c(0x1bf)]=_0x2566b0[_0x488d6c(0x1a6)],_0x4c339e[_0x488d6c(0x188)]=_0x2566b0[_0x488d6c(0x15f)],_0x4c339e;}else _0x2566b0[_0x488d6c(0x140)](process['env']['BS_TESTOPS_BUILD_COMPLETED'],_0x2566b0[_0x488d6c(0x154)])&&_0x2566b0[_0x488d6c(0x14e)](setTimeout,()=>{const _0x339c7c=_0x488d6c;this[_0x339c7c(0x1ba)](_0x1967df,_0x2566b0[_0x339c7c(0x145)](_0x4bff08,0x1));},0x3e8);}}}module['exports']=SessionHandler;
1
+ const a86_0x5817a7=a86_0xf73f;(function(_0x133ebb,_0x4e2e00){const _0xa50dfa=a86_0xf73f,_0x436fd2=_0x133ebb();while(!![]){try{const _0x1c8ffc=parseInt(_0xa50dfa(0x123))/0x1*(-parseInt(_0xa50dfa(0xf5))/0x2)+-parseInt(_0xa50dfa(0x105))/0x3+-parseInt(_0xa50dfa(0x13b))/0x4+-parseInt(_0xa50dfa(0xff))/0x5+-parseInt(_0xa50dfa(0x10f))/0x6*(parseInt(_0xa50dfa(0xcf))/0x7)+-parseInt(_0xa50dfa(0xf1))/0x8*(-parseInt(_0xa50dfa(0x14b))/0x9)+parseInt(_0xa50dfa(0x127))/0xa;if(_0x1c8ffc===_0x4e2e00)break;else _0x436fd2['push'](_0x436fd2['shift']());}catch(_0x58e123){_0x436fd2['push'](_0x436fd2['shift']());}}}(a86_0x8379,0xd2501));function a86_0xf73f(_0x199ce,_0x690534){const _0x837927=a86_0x8379();return a86_0xf73f=function(_0xf73fd9,_0x577820){_0xf73fd9=_0xf73fd9-0xc3;let _0x16d494=_0x837927[_0xf73fd9];return _0x16d494;},a86_0xf73f(_0x199ce,_0x690534);}const bsSetupHelper=require('../helper'),path=require(a86_0x5817a7(0x138)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,sleep,isTestObservabilitySession,trace}=require('./utils'),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require('./constants'),RequestQueueHandler=require('./requestQueueHandler'),logger=require(a86_0x5817a7(0xdd))['winstonLogger'],{shouldProcessEventForTesthub,isPercyBuild,getProductMap}=require(a86_0x5817a7(0x12b));class SessionHandler{static [a86_0x5817a7(0x13d)]=RequestQueueHandler[a86_0x5817a7(0xe7)]();static async[a86_0x5817a7(0x121)](_0xdabe09,_0x14c567){const _0x18f830=a86_0x5817a7,_0x265838={'MYJcf':function(_0x5606e7,_0x59510a){return _0x5606e7||_0x59510a;},'JIOBo':function(_0x501ad7,_0x3eea1d){return _0x501ad7||_0x3eea1d;},'Uaxmy':function(_0x53bf78,_0x480623){return _0x53bf78===_0x480623;},'Wegns':function(_0x184625,_0x2e6e9f){return _0x184625(_0x2e6e9f);},'vfTSU':'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','sOaWW':_0x18f830(0x119),'oWpwU':'json','GoLSa':function(_0x24ec0c,_0x3f74cd){return _0x24ec0c(_0x3f74cd);},'QKdzH':function(_0x187887,_0x2eda19,_0x2dabfb,_0x125914,_0x7021ab){return _0x187887(_0x2eda19,_0x2dabfb,_0x125914,_0x7021ab);},'VCIfz':_0x18f830(0xfc),'tcYdN':_0x18f830(0xd5),'smvEb':function(_0x34c39d,_0x26e0f8){return _0x34c39d(_0x26e0f8);},'mHyBD':_0x18f830(0xf6),'TQvwK':function(_0x34cdc2){return _0x34cdc2();},'jBWix':'true','mMACl':_0x18f830(0x152),'TzVlC':function(_0x3bee8f,_0x4f3fc2){return _0x3bee8f(_0x4f3fc2);},'WfzIk':_0x18f830(0xd9),'bmmVk':_0x18f830(0xd8),'weZus':'ERROR_SDK_DEPRECATED'},_0x5f197c=bsSetupHelper[_0x18f830(0xc7)](_0xdabe09),_0x404af1=bsSetupHelper[_0x18f830(0xe4)](_0xdabe09),_0x104e91=_0x265838[_0x18f830(0xc5)](_0x5f197c,'')+':'+_0x265838[_0x18f830(0xd7)](_0x404af1,'');if(_0x265838['Uaxmy'](_0x104e91,':'))return _0x265838['Wegns'](debug,_0x265838[_0x18f830(0xd6)]),process[_0x18f830(0xf7)]['BS_TESTOPS_BUILD_COMPLETED']=_0x265838[_0x18f830(0xd4)],[null,null];let _0x19e091=![],_0x43904f=![];if(_0xdabe09[_0x18f830(0x115)]&&_0xdabe09[_0x18f830(0xc8)])_0x43904f=!![];else _0xdabe09[_0x18f830(0x115)]&&(_0x19e091=!![]);try{const _0x4879a1={'format':_0x265838[_0x18f830(0xcd)],'project_name':_0xdabe09[_0x18f830(0x148)]||'','name':_0xdabe09[_0x18f830(0x131)]||path[_0x18f830(0x14c)](path[_0x18f830(0xe2)](process['cwd']())),'build_identifier':_0xdabe09[_0x18f830(0x103)],'description':_0xdabe09[_0x18f830(0x109)]||'','start_time':new Date()['toISOString'](),'tags':_0x265838[_0x18f830(0x154)](getCustomTags,_0xdabe09),'host_info':bsSetupHelper[_0x18f830(0xfe)](),'ci_info':bsSetupHelper['getCiInfo'](),'build_run_identifier':process[_0x18f830(0xf7)][_0x18f830(0x11a)],'failed_tests_rerun':process[_0x18f830(0xf7)]['BROWSERSTACK_RERUN']||![],'version_control':await bsSetupHelper[_0x18f830(0x151)](),'observability_version':{'frameworkName':_0x14c567[_0x18f830(0x136)],'frameworkVersion':_0x14c567[_0x18f830(0xc4)],'sdkVersion':bsSetupHelper[_0x18f830(0x101)]()},'product_map':_0x265838[_0x18f830(0x13c)](getProductMap,_0xdabe09)},_0x440e29={};_0x440e29[_0x18f830(0xe1)]=_0x5f197c,_0x440e29[_0x18f830(0x12a)]=_0x404af1;const _0x49136d={'auth':_0x440e29,'headers':_0x265838[_0x18f830(0x13c)](getDefaultHeaders,![])},_0xc038e6=await _0x265838[_0x18f830(0x135)](nodeRequest,_0x265838[_0x18f830(0xe5)],_0x265838['tcYdN'],_0x4879a1,_0x49136d);_0x265838['smvEb'](debug,_0x265838[_0x18f830(0x13a)]);const _0x3909d6=_0xc038e6[_0x18f830(0x146)];_0x3909d6['build_hashed_id']&&(process[_0x18f830(0xf7)][_0x18f830(0x112)]=_0x3909d6[_0x18f830(0xe0)]);if(_0x265838[_0x18f830(0x10c)](isTestObservabilitySession)){process[_0x18f830(0xf7)][_0x18f830(0xe9)]=_0x265838['jBWix'];if(_0x3909d6['jwt']){process[_0x18f830(0xf7)]['BS_TESTOPS_JWT']=_0x3909d6[_0x18f830(0x110)];const _0x1bc567={};_0x1bc567[_0x18f830(0xe1)]=_0x5f197c,_0x1bc567['password']=_0x404af1,process[_0x18f830(0xf7)][_0x18f830(0x111)]=JSON[_0x18f830(0xdc)](_0x1bc567);}_0x3909d6[_0x18f830(0xe0)]&&(process[_0x18f830(0xf7)][_0x18f830(0x129)]=_0x3909d6[_0x18f830(0xe0)]),_0x3909d6[_0x18f830(0x118)]&&(process['env']['BS_TESTOPS_ALLOW_SCREENSHOTS']=_0x3909d6[_0x18f830(0x118)][_0x18f830(0xe6)]());}return[_0xc038e6[_0x18f830(0x146)][_0x18f830(0x110)],_0xc038e6[_0x18f830(0x146)][_0x18f830(0xe0)],_0xc038e6[_0x18f830(0x146)][_0x18f830(0x118)]];}catch(_0x154796){process[_0x18f830(0xf7)]['BROWSERSTACK_TESTHUB_UUID']=_0x265838[_0x18f830(0x139)],process[_0x18f830(0xf7)][_0x18f830(0xe9)]=_0x265838[_0x18f830(0xd4)],process[_0x18f830(0xf7)][_0x18f830(0x117)]=_0x265838[_0x18f830(0x139)],process[_0x18f830(0xf7)][_0x18f830(0x129)]=_0x265838['mMACl'],process['env'][_0x18f830(0xd0)]=_0x265838[_0x18f830(0x139)];_0x154796[_0x18f830(0x10a)]?_0x265838[_0x18f830(0x130)](debug,_0x18f830(0xea)+_0x154796['response'][_0x18f830(0x147)]+'\x20'+_0x154796[_0x18f830(0x10a)][_0x18f830(0x11d)]+'\x20'+JSON[_0x18f830(0xdc)](_0x154796[_0x18f830(0x10a)]['data'])):_0x265838[_0x18f830(0x104)](debug,_0x18f830(0xea)+(_0x154796[_0x18f830(0xeb)]||_0x154796));if(_0x154796&&_0x154796[_0x18f830(0xeb)]){const _0x2dbc00=_0x154796[_0x18f830(0xeb)];switch(_0x154796[_0x18f830(0x12f)]){case _0x265838[_0x18f830(0xc3)]:logger[_0x18f830(0xde)](_0x2dbc00);break;case _0x265838['bmmVk']:logger['info'](_0x2dbc00);break;case _0x265838[_0x18f830(0x102)]:logger[_0x18f830(0xde)](_0x2dbc00);break;default:logger[_0x18f830(0xde)](_0x2dbc00);}}else console[_0x18f830(0xfb)](_0x18f830(0x116)+_0x154796);return[null,null,null];}}static async[a86_0x5817a7(0xc9)](){const _0x41e716=a86_0x5817a7,_0x2c2ab8={'TlKVl':_0x41e716(0x126),'cNKqN':_0x41e716(0x119),'nWhtg':function(_0x5a8bd4,_0x35742b){return _0x5a8bd4(_0x35742b);}},_0x8406ed=process[_0x41e716(0xf7)]['BS_TESTOPS_BUILD_COMPLETED'];if([_0x2c2ab8['TlKVl'],_0x2c2ab8[_0x41e716(0x106)]]['includes'](_0x8406ed))return;while([_0x2c2ab8[_0x41e716(0xf4)],_0x2c2ab8[_0x41e716(0x106)]]['includes'](_0x8406ed)){await _0x2c2ab8[_0x41e716(0xda)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static async[a86_0x5817a7(0xe8)](_0x2c2b5c,_0x4b9b4a=0x0){const _0x503c27=a86_0x5817a7,_0x1cd14a={'vkNhw':function(_0x3419d4,_0x5f5a90){return _0x3419d4+_0x5f5a90;},'xZQXQ':'Test_Start_Upload','wUqLo':'Test_End_Upload','sYCvb':_0x503c27(0xf8),'fTeeu':'Log_Upload','EUXjb':'Hook_Start_Upload','uYFkt':'Hook_End_Upload','kQgty':_0x503c27(0xc6),'IeeOf':function(_0x5ac806,_0x341e70){return _0x5ac806(_0x341e70);},'MiTsF':'test_run','PAhUb':_0x503c27(0x14d),'UxSLP':_0x503c27(0xe3),'fIHme':function(_0x32ece9,_0x4adff4,_0xe8fa07){return _0x32ece9(_0x4adff4,_0xe8fa07);},'AHCCd':_0x503c27(0xe8),'VirlH':function(_0x17c9b6,_0x30da8f){return _0x17c9b6===_0x30da8f;},'vQOCL':function(_0x20f0f9,_0x245491){return _0x20f0f9!==_0x245491;},'LGfNz':_0x503c27(0x152),'adjjG':function(_0x3d372e,_0x24cb1c){return _0x3d372e===_0x24cb1c;},'etoMT':_0x503c27(0x126),'JJSqL':function(_0x2b3ae3){return _0x2b3ae3();},'rUBPw':function(_0xded59,_0x58c3c0){return _0xded59-_0x58c3c0;},'UWiMN':_0x503c27(0xde),'UnhTH':_0x503c27(0xd1),'iMwuL':_0x503c27(0x140),'oGcYA':function(_0x27d08c,_0x43d6af,_0x1a58e6,_0xa88110,_0x1be9b6){return _0x27d08c(_0x43d6af,_0x1a58e6,_0xa88110,_0x1be9b6);},'srKzl':_0x503c27(0xfc),'fOEHU':_0x503c27(0x155),'pJfZB':function(_0x526672,_0xa98100){return _0x526672===_0xa98100;},'poiYe':'api/v1/event','mFxty':'success','tSOto':function(_0x4cb521,_0x4e8e8c){return _0x4cb521(_0x4e8e8c);},'RVFsk':function(_0x6074c0,_0x48b570){return _0x6074c0(_0x48b570);},'SrLUU':function(_0x27d8f4,_0x1fd623){return _0x27d8f4!==_0x1fd623;},'GaXWO':function(_0x2ea64d,_0x449402){return _0x2ea64d>=_0x449402;},'JAeVS':function(_0x5f0bcf,_0x49b722){return _0x5f0bcf(_0x49b722);},'yvqiP':function(_0x949cd7,_0x441f2b){return _0x949cd7!==_0x441f2b;},'avVIz':function(_0x1d8113,_0x1350fd){return _0x1d8113-_0x1350fd;},'lGhzj':_0x503c27(0x11c),'dVDeo':function(_0x803341,_0x3cb622){return _0x803341!==_0x3cb622;},'EEPXE':_0x503c27(0x119),'xpQfU':function(_0x512c45,_0x505075,_0x20e544){return _0x512c45(_0x505075,_0x20e544);}},_0x15b4d7={};_0x15b4d7['TestRunStarted']=_0x1cd14a['xZQXQ'],_0x15b4d7['TestRunFinished']=_0x1cd14a[_0x503c27(0xf2)],_0x15b4d7[_0x503c27(0x128)]=_0x1cd14a[_0x503c27(0x10b)],_0x15b4d7['LogCreated']=_0x1cd14a[_0x503c27(0x141)],_0x15b4d7[_0x503c27(0xcc)]=_0x1cd14a['EUXjb'],_0x15b4d7[_0x503c27(0x12c)]=_0x1cd14a['uYFkt'],_0x15b4d7['CBTSessionCreated']=_0x1cd14a[_0x503c27(0x11e)];const _0x1718be=_0x15b4d7[_0x2c2b5c[_0x503c27(0x132)]];_0x1cd14a['IeeOf'](trace,'Processing\x20event\x20-\x20\x27'+_0x2c2b5c[_0x503c27(0x132)]+'\x27\x20'+(bsSetupHelper['nestedKeyValue'](_0x2c2b5c,[_0x1cd14a[_0x503c27(0x125)],_0x1cd14a[_0x503c27(0x150)]])||bsSetupHelper[_0x503c27(0x100)](_0x2c2b5c,[_0x1cd14a[_0x503c27(0x11b)],_0x1cd14a[_0x503c27(0x150)]])));if(!_0x1cd14a[_0x503c27(0x137)](shouldProcessEventForTesthub,_0x2c2b5c[_0x503c27(0x132)],_0x1cd14a['AHCCd']))return;_0x1cd14a['VirlH'](_0x4b9b4a,0x0)&&process[_0x503c27(0xf7)][_0x503c27(0x12d)]&&_0x1cd14a[_0x503c27(0xef)](process[_0x503c27(0xf7)]['BROWSERSTACK_TESTHUB_JWT'],_0x1cd14a[_0x503c27(0x14a)])&&(this['requestQueueHandler'][_0x503c27(0xfa)]+=0x1);if(_0x1cd14a[_0x503c27(0x113)](process['env'][_0x503c27(0xe9)],_0x1cd14a[_0x503c27(0x149)])||process['env']['BS_A11Y_JWT']||_0x1cd14a[_0x503c27(0xf0)](isPercyBuild)){if(_0x1cd14a[_0x503c27(0x113)](process[_0x503c27(0xf7)][_0x503c27(0x12d)],_0x1cd14a[_0x503c27(0x14a)])){_0x1cd14a[_0x503c27(0x108)](debug,_0x503c27(0x153)+_0x1718be+_0x503c27(0x133)),this[_0x503c27(0x13d)]['pendingUploads']=Math[_0x503c27(0x13f)](0x0,_0x1cd14a[_0x503c27(0x13e)](this[_0x503c27(0x13d)][_0x503c27(0xfa)],0x1));const _0x1f78cd={};return _0x1f78cd[_0x503c27(0x147)]=_0x1cd14a['UWiMN'],_0x1f78cd[_0x503c27(0xeb)]=_0x1cd14a[_0x503c27(0x11f)],_0x1f78cd;}let _0x479252=_0x2c2b5c,_0x167c9a=EVENT_ENDPOINT;this[_0x503c27(0x13d)][_0x503c27(0x114)]();const {shouldProceed:_0x2c92,proceedWithData:_0x26d550,proceedWithUrl:_0x184a1c}=this[_0x503c27(0x13d)][_0x503c27(0xce)](_0x2c2b5c);if(!_0x2c92)return;else _0x26d550&&(_0x479252=_0x26d550,_0x167c9a=_0x184a1c);const _0x3875af={};_0x3875af[_0x503c27(0x144)]='Bearer\x20'+process['env'][_0x503c27(0x12d)],_0x3875af['Content-Type']=_0x1cd14a[_0x503c27(0xfd)],_0x3875af[_0x503c27(0x145)]=_0x1cd14a[_0x503c27(0x149)];const _0x1ecc3a={};_0x1ecc3a['headers']=_0x3875af;const _0x265d4c=_0x1ecc3a;try{const _0xc791e7=await _0x1cd14a['oGcYA'](nodeRequest,_0x1cd14a[_0x503c27(0xd2)],_0x167c9a,_0x479252,_0x265d4c);if(_0xc791e7[_0x503c27(0x146)][_0x503c27(0xde)]){const _0x1bfc52={};_0x1bfc52[_0x503c27(0xeb)]=_0xc791e7['data']['error'];throw _0x1bfc52;}else{_0x1cd14a[_0x503c27(0x108)](debug,(_0x1cd14a['vQOCL'](_0x167c9a,this[_0x503c27(0x13d)][_0x503c27(0x124)])?_0x1718be:_0x1cd14a[_0x503c27(0xdf)])+'['+_0x4b9b4a+_0x503c27(0x143)),this[_0x503c27(0x13d)][_0x503c27(0xfa)]=Math['max'](0x0,_0x1cd14a[_0x503c27(0x13e)](this[_0x503c27(0x13d)]['pendingUploads'],_0x1cd14a[_0x503c27(0x107)](_0x167c9a,_0x1cd14a[_0x503c27(0xcb)])?0x1:_0x479252[_0x503c27(0x120)]));const _0x428f05={};return _0x428f05[_0x503c27(0x147)]=_0x1cd14a[_0x503c27(0xf3)],_0x428f05[_0x503c27(0xeb)]='',_0x428f05;}}catch(_0x4e5c61){_0x4e5c61[_0x503c27(0x10a)]?_0x1cd14a[_0x503c27(0xf9)](debug,_0x503c27(0x153)+(_0x1cd14a[_0x503c27(0xef)](_0x167c9a,this['requestQueueHandler'][_0x503c27(0x124)])?_0x1718be:_0x1cd14a[_0x503c27(0xdf)])+_0x503c27(0xca)+_0x4e5c61[_0x503c27(0x10a)]['status']+'\x20'+_0x4e5c61['response'][_0x503c27(0x11d)]+'\x20'+JSON['stringify'](_0x4e5c61[_0x503c27(0x10a)][_0x503c27(0x146)])):_0x1cd14a[_0x503c27(0xdb)](debug,'EXCEPTION\x20IN\x20'+(_0x1cd14a[_0x503c27(0x12e)](_0x167c9a,this['requestQueueHandler'][_0x503c27(0x124)])?_0x1718be:_0x1cd14a['fOEHU'])+_0x503c27(0xca)+(_0x4e5c61[_0x503c27(0xeb)]||_0x4e5c61));this[_0x503c27(0x13d)][_0x503c27(0xfa)]=Math[_0x503c27(0x13f)](0x0,_0x1cd14a[_0x503c27(0x13e)](this[_0x503c27(0x13d)][_0x503c27(0xfa)],_0x1cd14a[_0x503c27(0x113)](_0x167c9a,_0x1cd14a[_0x503c27(0xcb)])?0x1:_0x479252[_0x503c27(0x120)]));const _0x5b7381={};return _0x5b7381[_0x503c27(0x147)]=_0x1cd14a[_0x503c27(0xed)],_0x5b7381[_0x503c27(0xeb)]=_0x4e5c61[_0x503c27(0xeb)]||(_0x4e5c61[_0x503c27(0x10a)]?_0x4e5c61[_0x503c27(0x10a)][_0x503c27(0x147)]+':'+_0x4e5c61[_0x503c27(0x10a)][_0x503c27(0x11d)]:_0x4e5c61),_0x5b7381;}}else{if(_0x1cd14a[_0x503c27(0x10e)](_0x4b9b4a,0x5)){_0x1cd14a[_0x503c27(0x14f)](debug,_0x503c27(0x153)+_0x1718be+_0x503c27(0xee)+_0x1718be+'\x20retry\x20runs\x20exceeded');_0x1cd14a[_0x503c27(0x10d)](process[_0x503c27(0xf7)][_0x503c27(0x12d)],_0x1cd14a['LGfNz'])&&(this[_0x503c27(0x13d)][_0x503c27(0xfa)]=Math['max'](0x0,_0x1cd14a[_0x503c27(0x142)](this[_0x503c27(0x13d)]['pendingUploads'],0x1)));const _0x499a29={};return _0x499a29[_0x503c27(0x147)]=_0x1cd14a['UWiMN'],_0x499a29['message']=_0x1cd14a[_0x503c27(0x122)],_0x499a29;}else _0x1cd14a[_0x503c27(0x134)](process['env'][_0x503c27(0xe9)],_0x1cd14a['EEPXE'])&&_0x1cd14a[_0x503c27(0xec)](setTimeout,()=>{const _0x51943a=_0x503c27;this[_0x51943a(0xe8)](_0x2c2b5c,_0x1cd14a[_0x51943a(0x14e)](_0x4b9b4a,0x1));},0x3e8);}}}module[a86_0x5817a7(0xd3)]=SessionHandler;function a86_0x8379(){const _0x1a1175=['username','resolve','hook_run','getAccessKey','VCIfz','toString','getInstance','uploadEventData','BS_TESTOPS_BUILD_COMPLETED','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','message','xpQfU','UWiMN','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','vQOCL','JJSqL','1580504rKiLDO','wUqLo','mFxty','TlKVl','1701822hLRcTY','Build\x20creation\x20successful!','env','Test_Skipped_Upload','tSOto','pendingUploads','info','POST','iMwuL','getHostInfo','5166205VJfCDp','nestedKeyValue','getAgentVersion','weZus','buildIdentifier','TzVlC','5151588WEBbsy','cNKqN','pJfZB','IeeOf','buildDescription','response','sYCvb','TQvwK','yvqiP','GaXWO','279258sTCLIv','jwt','CREDENTIALS_FOR_CRASH_REPORTING','BROWSERSTACK_TESTHUB_UUID','adjjG','start','browserstackAutomation','Data\x20upload\x20to\x20BrowserStack\x20Test\x20Observability\x20failed\x20due\x20to\x20','BS_TESTOPS_JWT','allow_screenshots','false','BROWSERSTACK_BUILD_RUN_IDENTIFIER','UxSLP','Retry\x20runs\x20exceeded','statusText','kQgty','UnhTH','length','launch','lGhzj','1pgmUIO','eventUrl','MiTsF','true','48510060rIiuWS','TestRunSkipped','BS_TESTOPS_BUILD_HASHED_ID','password','../../helpers/testhub/utils','HookRunFinished','BROWSERSTACK_TESTHUB_JWT','SrLUU','errorType','smvEb','buildName','event_type','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20missing\x20authentication\x20token','dVDeo','QKdzH','frameworkName','fIHme','path','mMACl','mHyBD','568612hWZLkM','GoLSa','requestQueueHandler','rUBPw','max','application/json','fTeeu','avVIz',']\x20event\x20successful!','Authorization','X-BSTACK-TESTOPS','data','status','projectName','etoMT','LGfNz','63FvZwcN','basename','uuid','vkNhw','JAeVS','PAhUb','getGitMetaData','null','EXCEPTION\x20IN\x20','Wegns','Batch-Queue','WfzIk','frameworkVersion','MYJcf','CBT_Upload','getUserName','app','waitForBuildStatus','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','poiYe','HookRunStarted','oWpwU','add','245IxJsAT','BS_TESTOPS_ALLOW_SCREENSHOTS','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','srKzl','exports','sOaWW','api/v1/builds','vfTSU','JIOBo','ERROR_ACCESS_DENIED','ERROR_INVALID_CREDENTIALS','nWhtg','RVFsk','stringify','../logger','error','fOEHU','build_hashed_id'];a86_0x8379=function(){return _0x1a1175;};return a86_0x8379();}