browserstack-node-sdk 1.34.42 → 1.34.43
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.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- 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_0x100adf=a79_0x3a64;function a79_0x5df2(){const _0x58bec9=['disconnect','<tr><td>','zJRyX','stopMonitoring','jsonReportFileName','378GrxmHx','.json','iUIXK','measure','entryTypes','cwd','readdir','errorReportDirName','_measureEvents','</tbody></table></body></html>','_observer','eventsMap','HMMHM','toString','VvIIl','iTuaM','entries','XHUIW','writeFileSync','calculateTimesFromMultipleFiles','browserStackCwd','parse','mark','errors','xCJqg','entryType','generateHTMLReport','CevVl','/performance-report-','KuAfb','worker','path','finalizePerfMeasures','measures','failure','_errorEvents','kEgpH','startMonitoring','getEntries','2002058oEGXRD','reduce','flat','Error\x20while\x20removing\x20files:\x20','log','Error\x20in\x20writing\x20html\x20','LczSP','80SYSclV','oUEcm','FpOee','appendFileSync','Performance\x20report\x20is\x20at\x20','jsonReportDirName','pushPerfMeasures','getCleanedPerfEvents','WxNxK','3GGbJKT','perf_hooks','start','QtbiH','Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','fs/promises','ZCFcF','QzEwB','nsHXs','error-report','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','existsSync','index','FqWuM','toJSON','observe','details','stack','map','eqORw','concat','_events','ZHAPc','jsonReportDirPath','aSRvp','sPymL','mkdirSync','join','LilcN','getEventsFromJSON','632168kJTRSG','generateJSON','GuVeE','__platformCaps','readdirSync','/error-report-','push','BROWSERSTACK_SDK_INSTRUMENTATION','BKdWR','1200129dodXZk','finalizeErrors','measureWrapper','crvlm','getPerformance','gIWHd','env','name','LucZr','-end','readFileSync','writeFile','Time\x20for\x20','105928nBGuyQ','buffered','jDgJz','Error\x20stopping\x20monitoring\x20','length','all','errorReportFileName','1266DXQqyF','success','duration','AxIru','apply','../logger','xszPq','forEach','end','platform','format','\x20for\x20all\x20processes\x20is\x20','calculateTimeFromEvents','winstonLogger','YxaMD','LMSUi','catch','performance-own.html','EOMLm','false','stringify','-start','started','debug','eaZTM','resolve','assign','readFile','ZTMXX','unlinkSync','utf-8','errorFile','</td></tr>','function','stopAndGenerate','mnlAM','then','isEnabled','AtiWk','3938820BHzBcE','1067555pnXwoF','slice'];a79_0x5df2=function(){return _0x58bec9;};return a79_0x5df2();}(function(_0x2e5eb9,_0x5a4e83){const _0x202343=a79_0x3a64,_0x234f5=_0x2e5eb9();while(!![]){try{const _0x54092a=-parseInt(_0x202343(0x7d))/0x1+-parseInt(_0x202343(0xab))/0x2*(-parseInt(_0x202343(0xbb))/0x3)+-parseInt(_0x202343(0xd9))/0x4+-parseInt(_0x202343(0xb2))/0x5*(parseInt(_0x202343(0xf6))/0x6)+-parseInt(_0x202343(0xe2))/0x7+parseInt(_0x202343(0xef))/0x8*(parseInt(_0x202343(0x84))/0x9)+parseInt(_0x202343(0x7c))/0xa;if(_0x54092a===_0x5a4e83)break;else _0x234f5['push'](_0x234f5['shift']());}catch(_0x4edb69){_0x234f5['push'](_0x234f5['shift']());}}}(a79_0x5df2,0x866d5));const fs=require('fs'),fsPromise=require(a79_0x100adf(0xc0)),{performance,PerformanceObserver}=require(a79_0x100adf(0xbc)),path=require(a79_0x100adf(0xa3)),util=require('util'),logger=require(a79_0x100adf(0xfb))[a79_0x100adf(0x103)],{getProcessId,sleep,debug,getTestName}=require('../processHelper');function a79_0x3a64(_0x52440e,_0x3a8223){const _0x5df26e=a79_0x5df2();return a79_0x3a64=function(_0x3a64cb,_0x1e95ec){_0x3a64cb=_0x3a64cb-0x67;let _0x1350fb=_0x5df26e[_0x3a64cb];return _0x1350fb;},a79_0x3a64(_0x52440e,_0x3a8223);}class PerformanceTester{static ['_observer'];static [a79_0x100adf(0xd0)]=[];static [a79_0x100adf(0x8c)]=[];static ['_errorEvents']=[];static [a79_0x100adf(0x6b)]=![];static [a79_0x100adf(0xb7)]='performance-report';static [a79_0x100adf(0xd2)]=process[a79_0x100adf(0xe8)]['browserStackCwd']?path['join'](process[a79_0x100adf(0xe8)][a79_0x100adf(0x98)],this[a79_0x100adf(0xb7)]):path[a79_0x100adf(0xd6)](process[a79_0x100adf(0x89)](),a79_0x100adf(0xaf),this[a79_0x100adf(0xb7)]);static ['errorReportDirName']=process[a79_0x100adf(0xe8)]['browserStackCwd']?path['join'](process['env'][a79_0x100adf(0x98)],'error-report'):path[a79_0x100adf(0xd6)](process[a79_0x100adf(0x89)](),a79_0x100adf(0xc4));static [a79_0x100adf(0x83)]=this[a79_0x100adf(0xd2)]+a79_0x100adf(0xa0)+getProcessId()+a79_0x100adf(0x85);static [a79_0x100adf(0xf5)]=this[a79_0x100adf(0x8b)]+a79_0x100adf(0xde)+getProcessId()+'.json';static [a79_0x100adf(0xcb)]={};static ['eventsMap']={};static[a79_0x100adf(0xa9)](_0x2b3173=this['jsonReportDirPath']+'/performance-report-'+getProcessId()+'.json',_0x2d608a=this[a79_0x100adf(0x8b)]+a79_0x100adf(0xde)+getProcessId()+a79_0x100adf(0x85)){const _0xff5347=a79_0x100adf,_0x43d280={};_0x43d280[_0xff5347(0xb4)]=function(_0x31f9b7,_0x2afccf){return _0x31f9b7===_0x2afccf;},_0x43d280[_0xff5347(0x93)]=_0xff5347(0x87),_0x43d280[_0xff5347(0x95)]=function(_0x1e9c21,_0x401022){return _0x1e9c21+_0x401022;},_0x43d280[_0xff5347(0xce)]=_0xff5347(0xbf),_0x43d280['CevVl']=_0xff5347(0x76);const _0x1f6351=_0x43d280;try{!fs['existsSync'](this[_0xff5347(0xd2)])&&fs[_0xff5347(0xd5)](this['jsonReportDirPath']);}catch(_0x26cb74){logger['debug'](_0x1f6351[_0xff5347(0x95)](_0x1f6351[_0xff5347(0xce)],_0x26cb74));}if(this[_0xff5347(0x6b)]||!this[_0xff5347(0x7a)]())return;this[_0xff5347(0x8e)]=new PerformanceObserver(_0x43c398=>{const _0x526f2e=_0xff5347,_0x508a59={'xszPq':function(_0x2bb658,_0x24acc9){const _0x25fbc8=a79_0x3a64;return _0x1f6351[_0x25fbc8(0xb4)](_0x2bb658,_0x24acc9);},'aSRvp':_0x1f6351[_0x526f2e(0x93)]};_0x43c398[_0x526f2e(0xaa)]()['forEach'](_0x7e8263=>{const _0x34973=_0x526f2e;if(_0x508a59[_0x34973(0xfc)](_0x7e8263[_0x34973(0x9d)],_0x508a59[_0x34973(0xd3)])){let _0x36ea43={};if(_0x7e8263[_0x34973(0xc9)])_0x36ea43=_0x7e8263[_0x34973(0xc9)]();else for(const _0x14922e in _0x7e8263){_0x36ea43[_0x14922e]=_0x7e8263[_0x14922e];}this[_0x34973(0xcb)][_0x7e8263[_0x34973(0xe9)]]&&(_0x36ea43=Object['assign'](_0x36ea43,this[_0x34973(0xcb)][_0x7e8263[_0x34973(0xe9)]])),delete this[_0x34973(0xcb)][_0x7e8263[_0x34973(0xe9)]],this[_0x34973(0x8c)][_0x34973(0xdf)](_0x36ea43);}else this[_0x34973(0xd0)][_0x34973(0xdf)](_0x7e8263);});});const _0x55d48e={};_0x55d48e[_0xff5347(0xf0)]=!![],_0x55d48e[_0xff5347(0x88)]=[_0x1f6351[_0xff5347(0x9f)],_0x1f6351['iTuaM']],this['_observer'][_0xff5347(0xca)](_0x55d48e),this[_0xff5347(0x6b)]=!![],this[_0xff5347(0x83)]=_0x2b3173,this[_0xff5347(0xf5)]=_0x2d608a;}static[a79_0x100adf(0xe6)](){return performance;}static['calculateTimeFromEvents'](_0x551a5f,_0x56a825){const _0x4a68e6=a79_0x100adf,_0x10a7aa={};_0x10a7aa[_0x4a68e6(0x71)]=function(_0x3682f9,_0x1f4b82){return _0x3682f9+_0x1f4b82;},_0x10a7aa['EOMLm']=function(_0x5d729c,_0x44d7d6){return _0x5d729c||_0x44d7d6;},_0x10a7aa[_0x4a68e6(0xf9)]=function(_0x4690ed,_0x4132e6){return _0x4690ed===_0x4132e6;};const _0x2d218d=_0x10a7aa,_0x995b9c={};if(!_0x551a5f||_0x2d218d[_0x4a68e6(0xf9)](_0x551a5f[_0x4a68e6(0xf3)],0x0))return;_0x551a5f[_0x4a68e6(0xcd)](_0x3bdaaf=>{const _0x14865e=_0x4a68e6;!_0x995b9c[_0x3bdaaf[_0x14865e(0xe9)]]&&(_0x995b9c[_0x3bdaaf['name']]=0x0),_0x995b9c[_0x3bdaaf['name']]+=_0x3bdaaf[_0x14865e(0xf8)];});const _0x215aa7=_0x56a825['reduce']((_0x2ebb6a,_0xb656a3)=>{const _0xd8262d=_0x4a68e6;return _0x2d218d[_0xd8262d(0x71)](_0x995b9c[_0xb656a3],_0x2d218d[_0xd8262d(0x67)](_0x2ebb6a,0x0));},0x0);return _0x215aa7;}static async[a79_0x100adf(0x97)](_0x20b60f,_0x37882e){const _0x70a42e=a79_0x100adf,_0x372014={'wbNFN':function(_0x214661,_0x6dffb5){return _0x214661+_0x6dffb5;},'HMMHM':function(_0x1de3ef,_0xb55a96){return _0x1de3ef||_0xb55a96;},'BKdWR':function(_0x5a415c,_0x395c1c){return _0x5a415c===_0x395c1c;},'AtiWk':function(_0xc0cc28,_0x4700bc){return _0xc0cc28(_0x4700bc);}};if(!_0x20b60f||_0x372014[_0x70a42e(0xe1)](_0x20b60f['length'],0x0))return 0x0;const _0x5d99a8=[];for(const _0x41c3d9 of _0x20b60f){const _0x1dec6a=path[_0x70a42e(0xd6)]('.',_0x41c3d9);try{const _0x1a1974=this[_0x70a42e(0xd8)](_0x1dec6a);_0x1a1974[_0x70a42e(0xcd)](_0x3e36aa=>{const _0x5a1ec8=_0x70a42e;!_0x5d99a8[_0x3e36aa['name']]&&(_0x5d99a8[_0x3e36aa[_0x5a1ec8(0xe9)]]=0x0),_0x5d99a8[_0x3e36aa[_0x5a1ec8(0xe9)]]+=_0x3e36aa[_0x5a1ec8(0xf8)];});}catch(_0x5d1ad8){_0x372014[_0x70a42e(0x7b)](debug,'Error\x20in\x20doing\x20csv\x20operations:\x20'+_0x5d1ad8[_0x70a42e(0x91)]());}}const _0x3e1137=_0x37882e[_0x70a42e(0xac)]((_0x49878e,_0x525c23)=>{const _0x50dd1d=_0x70a42e;return _0x372014['wbNFN'](_0x5d99a8[_0x525c23],_0x372014[_0x50dd1d(0x90)](_0x49878e,0x0));},0x0);return _0x372014[_0x70a42e(0x7b)](debug,_0x70a42e(0xee)+_0x37882e+_0x70a42e(0x101)+_0x3e1137),_0x3e1137;}static[a79_0x100adf(0xd8)](_0x5d8f31){const _0x32d6dd=a79_0x100adf;if(!fs[_0x32d6dd(0xc6)](_0x5d8f31))return[];return JSON['parse'](fs['readFileSync'](_0x5d8f31)[_0x32d6dd(0x91)]());}static async[a79_0x100adf(0x77)](_0x1be635=a79_0x100adf(0x107),_0x1ff018=null){const _0x279211=a79_0x100adf,_0x142578={'eaZTM':function(_0x20a09f,_0x106c05){return _0x20a09f(_0x106c05);},'VvIIl':function(_0x36a6ed,_0x452292){return _0x36a6ed(_0x452292);}};if(!this[_0x279211(0x6b)])return;await _0x142578['eaZTM'](sleep,0x1e),this['_observer'][_0x279211(0x7f)](),this[_0x279211(0x6b)]=![],this[_0x279211(0xda)](this[_0x279211(0xd0)]);const _0x54bb44=this[_0x279211(0x9e)](this['_events']),_0x417868=path[_0x279211(0xd6)](process['cwd'](),_0x1be635);fs[_0x279211(0xed)](_0x417868,_0x54bb44,_0x54debe=>{const _0x1e6f91=_0x279211;if(_0x54debe){_0x142578[_0x1e6f91(0x6d)](debug,_0x1e6f91(0xb0)+_0x54debe[_0x1e6f91(0x91)]());return;}_0x142578[_0x1e6f91(0x92)](debug,_0x1e6f91(0xb6)+_0x417868);});if(_0x1ff018)return this[_0x279211(0x102)](this[_0x279211(0xd0)],_0x1ff018);}static['generateHTMLReport'](_0x533d36){const _0x3247b2=a79_0x100adf,_0xbe8cbf={};_0xbe8cbf['YxaMD']='<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>',_0xbe8cbf[_0x3247b2(0x105)]='<h1>Performance\x20Report</h1>',_0xbe8cbf['XkMvy']=_0x3247b2(0xc5),_0xbe8cbf['ZHAPc']=_0x3247b2(0x8d);const _0x42472c=_0xbe8cbf;let _0xa7f7fa=_0x42472c[_0x3247b2(0x104)];return _0xa7f7fa+=_0x42472c[_0x3247b2(0x105)],_0xa7f7fa+=_0x42472c['XkMvy'],_0x533d36[_0x3247b2(0xfd)](_0x5f30e5=>{const _0x3ceeab=_0x3247b2;_0xa7f7fa+=_0x3ceeab(0x80)+_0x5f30e5[_0x3ceeab(0xe9)]+'</td><td>'+_0x5f30e5[_0x3ceeab(0xf8)]+_0x3ceeab(0x75);}),_0xa7f7fa+=_0x42472c[_0x3247b2(0xd1)],_0xa7f7fa;}static[a79_0x100adf(0xda)](_0x348979){const _0x394f25=a79_0x100adf;if(!this[_0x394f25(0x83)])return;const _0x52d179={};_0x348979['map'](_0x286b05=>{const _0xefc4a9=_0x394f25;!_0x52d179[_0x286b05[_0xefc4a9(0xe9)]]&&(_0x52d179[_0x286b05[_0xefc4a9(0xe9)]]=0x0),_0x52d179[_0x286b05[_0xefc4a9(0xe9)]]+=_0x286b05[_0xefc4a9(0xf8)];});const _0x5c2f48=Object[_0x394f25(0x94)](_0x52d179)[_0x394f25(0xcd)](([_0x4c9792,_0x5c7110])=>{const _0x21c53a=_0x394f25,_0x2e9b85={};return _0x2e9b85[_0x21c53a(0xe9)]=_0x4c9792,_0x2e9b85[_0x21c53a(0xf8)]=_0x5c7110,_0x2e9b85;});fs[_0x394f25(0x96)](this[_0x394f25(0x83)],JSON[_0x394f25(0x69)](_0x5c2f48));}static[a79_0x100adf(0x7a)](){const _0x3d03a8=a79_0x100adf,_0x3d6c2b={};_0x3d6c2b[_0x3d03a8(0xf1)]=function(_0x1943ca,_0x240828){return _0x1943ca===_0x240828;},_0x3d6c2b[_0x3d03a8(0xc8)]=_0x3d03a8(0x68);const _0x527d1c=_0x3d6c2b;return!_0x527d1c[_0x3d03a8(0xf1)](process['env'][_0x3d03a8(0xe0)],_0x527d1c[_0x3d03a8(0xc8)]);}static[a79_0x100adf(0x87)](_0x4cff03,_0x1524e9,_0xd2343=null,_0x5d0704={},_0x1a6a34=null){const _0x3f4f53=a79_0x100adf,_0x466afc={'kjbMp':function(_0x2aca57,_0x2a951e){return _0x2aca57(_0x2a951e);},'bjxmS':function(_0x355ed3,_0x209aec){return _0x355ed3(_0x209aec);},'GuVeE':function(_0x187008,_0x3d10ca){return _0x187008 instanceof _0x3d10ca;}};try{if(this[_0x3f4f53(0x6b)]&&this['isEnabled']()){let _0x39f4d4=_0x4cff03;_0xd2343&&(_0x39f4d4=_0x4cff03+'['+JSON[_0x3f4f53(0x69)](_0xd2343)+']');PerformanceTester[_0x3f4f53(0xbd)](_0x39f4d4),this[_0x3f4f53(0xcb)]&&(this[_0x3f4f53(0xcb)][_0x39f4d4]=_0x5d0704);try{const _0x5a2c0f=_0x1524e9[_0x3f4f53(0xfa)](null,_0x1a6a34);if(_0x466afc[_0x3f4f53(0xdb)](_0x5a2c0f,Promise))return new Promise((_0x16133e,_0x2adb78)=>{const _0x2fbd2c=_0x3f4f53,_0x1bb5ce={'UjdLe':function(_0x5e9603,_0x57eaec){return _0x466afc['bjxmS'](_0x5e9603,_0x57eaec);}};_0x5a2c0f[_0x2fbd2c(0x79)](_0x1c15a4=>{PerformanceTester['end'](_0x39f4d4),_0x1bb5ce['UjdLe'](_0x16133e,_0x1c15a4);})[_0x2fbd2c(0x106)](_0x5815b3=>{PerformanceTester['end'](_0x39f4d4,![],util['format'](_0x5815b3)),_0x466afc['kjbMp'](_0x2adb78,_0x5815b3);});});;return PerformanceTester[_0x3f4f53(0xfe)](_0x39f4d4),_0x5a2c0f;}catch(_0x30cc77){PerformanceTester[_0x3f4f53(0xfe)](_0x39f4d4,![],util[_0x3f4f53(0x100)](_0x30cc77));throw _0x30cc77;}};return _0x1524e9[_0x3f4f53(0xfa)](null,_0x1a6a34);}catch(_0x79f096){return _0x1524e9[_0x3f4f53(0xfa)](null,_0x1a6a34);}}static[a79_0x100adf(0xe4)](_0x1cefea,_0x3bf1fa,_0x4c0f90={}){const _0x25ce5b=a79_0x100adf,_0x29f04b={'mnlAM':function(_0x2595cf){return _0x2595cf();}},_0x4d632a=this;return _0x4c0f90[_0x25ce5b(0xa2)]=_0x29f04b['mnlAM'](getProcessId),_0x4c0f90['testName']=_0x29f04b[_0x25ce5b(0x78)](getTestName),_0x4c0f90[_0x25ce5b(0xff)]=global['__platformCaps']&&global[_0x25ce5b(0xdc)][_0x25ce5b(0xc7)],function(){const _0x48d105=_0x25ce5b,_0x5366bf=[_0x1cefea,_0x3bf1fa,null,_0x4c0f90][_0x48d105(0xcf)](arguments);return _0x4d632a[_0x48d105(0x87)][_0x48d105(0xfa)](_0x4d632a,_0x5366bf);};}static[a79_0x100adf(0xb9)](){const _0x5d9ad4=a79_0x100adf,_0x1b9cb0=/(^.*)\[(.*)\]$/,_0x48b919={},_0x54060e={},_0x2de2e6=[],_0x2096a8=this[_0x5d9ad4(0x8c)]['splice'](0x0,this[_0x5d9ad4(0x8c)][_0x5d9ad4(0xf3)]);for(const _0x1d5d6e of _0x2096a8){const _0x5c67ad=_0x1d5d6e['name']['match'](_0x1b9cb0),_0x9b6c23=Object[_0x5d9ad4(0x6f)]({},_0x1d5d6e);_0x5c67ad&&(_0x9b6c23[_0x5d9ad4(0xe9)]=_0x5c67ad[0x1],_0x9b6c23['meta']=JSON['parse'](_0x5c67ad[0x2])),_0x2de2e6['push'](_0x9b6c23);}return _0x2de2e6;}static['pushPerfMeasures'](){const _0x20ac49=a79_0x100adf,_0x17313b={};_0x17313b['WxNxK']=function(_0x293c9e,_0x49e5b4){return _0x293c9e+_0x49e5b4;},_0x17313b[_0x20ac49(0x81)]=_0x20ac49(0xae),_0x17313b[_0x20ac49(0xc3)]=function(_0x37342c,_0x47b434){return _0x37342c===_0x47b434;},_0x17313b[_0x20ac49(0xc1)]=function(_0x15528b,_0x5a3a7f){return _0x15528b+_0x5a3a7f;};const _0x545b16=_0x17313b;try{if(fs[_0x20ac49(0xc6)](this['jsonReportDirPath'])){const _0x324634=fs[_0x20ac49(0xdd)](this['jsonReportDirPath']);for(const _0x23e8d0 of _0x324634){fs['unlinkSync'](path[_0x20ac49(0xd6)](this[_0x20ac49(0xd2)],_0x23e8d0));}}}catch(_0x32f6b0){logger[_0x20ac49(0x6c)](_0x545b16[_0x20ac49(0xba)](_0x545b16[_0x20ac49(0x81)],_0x32f6b0));}if(_0x545b16['nsHXs'](this[_0x20ac49(0x8c)]['length'],0x0))return;const _0x41bd7d=this[_0x20ac49(0xb9)](),_0x4b6718=JSON[_0x20ac49(0x69)](_0x41bd7d),_0x5aba7a=_0x545b16[_0x20ac49(0xc1)](_0x4b6718[_0x20ac49(0x7e)](0x1,-0x1),',');fs[_0x20ac49(0xb5)](this[_0x20ac49(0x83)],_0x5aba7a);}static async[a79_0x100adf(0xa4)](){const _0x5f29ec=a79_0x100adf,_0x3530fb={};_0x3530fb[_0x5f29ec(0x9c)]=function(_0x4424c6,_0x460b53){return _0x4424c6===_0x460b53;},_0x3530fb[_0x5f29ec(0xbe)]=function(_0x4c72f9,_0x3abae8){return _0x4c72f9>_0x3abae8;};const _0x2c5eb2=_0x3530fb;if(!this[_0x5f29ec(0x6b)]||_0x2c5eb2['xCJqg'](this[_0x5f29ec(0x8c)][_0x5f29ec(0xf3)],0x0))return[];if(!fs['existsSync'](this[_0x5f29ec(0xd2)]))return this[_0x5f29ec(0x8c)];const _0x2dfa07=(await fsPromise[_0x5f29ec(0x8a)](this[_0x5f29ec(0xd2)]))['map'](_0x59313d=>path[_0x5f29ec(0x6e)](this[_0x5f29ec(0xd2)],_0x59313d));let _0x285996=(await Promise[_0x5f29ec(0xf4)](_0x2dfa07['map'](_0xf9a4aa=>fsPromise[_0x5f29ec(0x70)](_0xf9a4aa,_0x5f29ec(0x73)))))[_0x5f29ec(0xcd)](_0x11cb7c=>'['+_0x11cb7c[_0x5f29ec(0x7e)](0x0,-0x1)+']')[_0x5f29ec(0xcd)](_0x10044a=>JSON[_0x5f29ec(0x99)](_0x10044a))[_0x5f29ec(0xad)]();return _0x2c5eb2[_0x5f29ec(0xbe)](this['_measureEvents'][_0x5f29ec(0xf3)],0x0)&&(_0x285996=_0x285996[_0x5f29ec(0xcf)](this[_0x5f29ec(0xb9)]())),this[_0x5f29ec(0x8e)][_0x5f29ec(0x7f)](),_0x285996;}static['pushErrors'](){const _0x426004=a79_0x100adf,_0x2b9e86={};_0x2b9e86['iUIXK']=function(_0x3422d9,_0x2394fd){return _0x3422d9===_0x2394fd;},_0x2b9e86[_0x426004(0xe7)]=function(_0x2ff1bd,_0x201135){return _0x2ff1bd+_0x201135;};const _0xd627bd=_0x2b9e86;if(_0xd627bd[_0x426004(0x86)](this[_0x426004(0xa7)][_0x426004(0xf3)],0x0))return;const _0x365815=JSON[_0x426004(0x69)](this[_0x426004(0xa7)]),_0x2700fc=_0xd627bd[_0x426004(0xe7)](_0x365815[_0x426004(0x7e)](0x1,-0x1),',');fs[_0x426004(0xb5)](this[_0x426004(0x74)],_0x2700fc);}static[a79_0x100adf(0xe3)](){const _0x29c7ec=a79_0x100adf,_0x50abfa={};_0x50abfa[_0x29c7ec(0xd7)]=function(_0x494e70,_0x5e80c5){return _0x494e70>_0x5e80c5;};const _0x46a4d2=_0x50abfa;if(!fs[_0x29c7ec(0xc6)](this['errorReportFileName']))return this[_0x29c7ec(0xa7)];let _0x153cbf=fs[_0x29c7ec(0xec)](this[_0x29c7ec(0xf5)])['toString']();_0x153cbf='['+_0x153cbf[_0x29c7ec(0x7e)](0x0,-0x1)+']';let _0x167f12=JSON[_0x29c7ec(0x99)](_0x153cbf);return _0x46a4d2['LilcN'](this[_0x29c7ec(0xa7)][_0x29c7ec(0xf3)],0x0)&&(_0x167f12=_0x167f12['concat'](this[_0x29c7ec(0xa7)])),fs[_0x29c7ec(0x72)](this[_0x29c7ec(0xf5)]),_0x167f12;}static['captureError'](_0x25ad78){const _0x3b2c7e=a79_0x100adf;if(!this[_0x3b2c7e(0x7a)]())return;this[_0x3b2c7e(0xa7)][_0x3b2c7e(0xdf)]({'message':_0x25ad78['message'],'trace':_0x25ad78[_0x3b2c7e(0xcc)],'code':_0x25ad78['code']||null,'time':new Date()});}static[a79_0x100adf(0x82)](){const _0x47f9dd=a79_0x100adf;try{if(!this[_0x47f9dd(0x7a)]())return;this[_0x47f9dd(0x8e)][_0x47f9dd(0x7f)](),this[_0x47f9dd(0xb8)](),this['pushErrors']();}catch(_0x39ffb3){logger[_0x47f9dd(0x6c)](_0x47f9dd(0xf2)+util[_0x47f9dd(0x100)](_0x39ffb3));}}static async['finalize'](){const _0x3d8219=a79_0x100adf,_0x287e16={'KuAfb':function(_0x398aba,_0x2d89e6){return _0x398aba(_0x2d89e6);}};await _0x287e16[_0x3d8219(0xa1)](sleep,0x1e);const _0x5334f3=await this['finalizePerfMeasures'](),_0x577cac=this[_0x3d8219(0xe3)]();if(!this[_0x3d8219(0x7a)]()){const _0x5209b1={};return _0x5209b1['measures']=[],_0x5209b1['errors']=[],_0x5209b1;}const _0x31bb6c={};return _0x31bb6c[_0x3d8219(0xa5)]=_0x5334f3,_0x31bb6c[_0x3d8219(0x9b)]=_0x577cac,_0x31bb6c;}static[a79_0x100adf(0xbd)](_0x17465c){const _0x55b4fa=a79_0x100adf,_0x3e1e9a={};_0x3e1e9a[_0x55b4fa(0xd4)]=function(_0x2d7d82,_0x4aa8f2){return _0x2d7d82+_0x4aa8f2;},_0x3e1e9a[_0x55b4fa(0xc2)]=_0x55b4fa(0x6a);const _0x3f1290=_0x3e1e9a,_0x590ed3=_0x3f1290[_0x55b4fa(0xd4)](_0x17465c,_0x3f1290[_0x55b4fa(0xc2)]);if(this[_0x55b4fa(0x8f)][_0x590ed3])return;performance[_0x55b4fa(0x9a)](_0x590ed3),this[_0x55b4fa(0x8f)][_0x590ed3]=0x1;}static['end'](_0x34deb3,_0x3f10f3=!![],_0x473aa4=null,_0x5d21e1={}){const _0x1e2134=a79_0x100adf,_0x4e9a6d={'LczSP':function(_0x20082f,_0x3999ce){return _0x20082f+_0x3999ce;},'LucZr':_0x1e2134(0xeb),'kEgpH':function(_0x3cdb02,_0x4f1edd){return _0x3cdb02+_0x4f1edd;},'crvlm':_0x1e2134(0x6a),'Oyifn':function(_0x303257){return _0x303257();},'oUEcm':function(_0x2c5094){return _0x2c5094();}};performance[_0x1e2134(0x9a)](_0x4e9a6d[_0x1e2134(0xb1)](_0x34deb3,_0x4e9a6d[_0x1e2134(0xea)])),performance[_0x1e2134(0x87)](_0x34deb3,_0x4e9a6d[_0x1e2134(0xa8)](_0x34deb3,_0x4e9a6d[_0x1e2134(0xe5)]),_0x4e9a6d['kEgpH'](_0x34deb3,_0x4e9a6d['LucZr']));const _0x471252={};_0x471252[_0x1e2134(0xf7)]=_0x3f10f3,_0x471252[_0x1e2134(0xa6)]=_0x473aa4,this[_0x1e2134(0xcb)][_0x34deb3]=Object[_0x1e2134(0x6f)](_0x471252,Object[_0x1e2134(0x6f)](Object[_0x1e2134(0x6f)]({'worker':_0x4e9a6d['Oyifn'](getProcessId),'platform':global[_0x1e2134(0xdc)]&&global[_0x1e2134(0xdc)][_0x1e2134(0xc7)],'testName':_0x4e9a6d[_0x1e2134(0xb3)](getTestName)},_0x5d21e1),this[_0x1e2134(0xcb)][_0x34deb3]||{}));}}module['exports']=PerformanceTester;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a80_0x55ee78=a80_0x377a;function a80_0x377a(_0x494917,_0x2044b8){const _0x1c5210=a80_0x1c52();return a80_0x377a=function(_0x377a4f,_0x109932){_0x377a4f=_0x377a4f-0x133;let _0x55e542=_0x1c5210[_0x377a4f];return _0x55e542;},a80_0x377a(_0x494917,_0x2044b8);}(function(_0x52238d,_0x2262ea){const _0x43b594=a80_0x377a,_0x26ba2e=_0x52238d();while(!![]){try{const _0x13a60e=-parseInt(_0x43b594(0x142))/0x1*(parseInt(_0x43b594(0x140))/0x2)+-parseInt(_0x43b594(0x139))/0x3*(parseInt(_0x43b594(0x14f))/0x4)+parseInt(_0x43b594(0x14a))/0x5*(parseInt(_0x43b594(0x145))/0x6)+parseInt(_0x43b594(0x135))/0x7*(parseInt(_0x43b594(0x13f))/0x8)+parseInt(_0x43b594(0x141))/0x9+-parseInt(_0x43b594(0x14b))/0xa*(-parseInt(_0x43b594(0x136))/0xb)+-parseInt(_0x43b594(0x143))/0xc;if(_0x13a60e===_0x2262ea)break;else _0x26ba2e['push'](_0x26ba2e['shift']());}catch(_0x44927b){_0x26ba2e['push'](_0x26ba2e['shift']());}}}(a80_0x1c52,0xa061c));function a80_0x1c52(){const _0x442b6e=['pid','7GHzdLJ','3851628fgiJJD','worker_threads','getProcessId','161589favyPp','toISOString','znFsM','BROWSERSTACK_OBSERVABILITY_DEBUG','env','][\x20OBSERVABILITY\x20]\x20','6509664CUAWwh','300680xPlAIq','7344144HZSBMR','4fGMjtf','14385072wsNbfB','log','30054NycLjU','threadId','true','vHTwv','stbjV','530EkHZXY','30tCfFea','getGlobal','sleep','debug','56INpfDp','./globals'];a80_0x1c52=function(){return _0x442b6e;};return a80_0x1c52();}const worker=require(a80_0x55ee78(0x137)),{fileLogger}=require('./logger'),{consoleHolder}=require('./test-observability/constants'),globals=require(a80_0x55ee78(0x133));exports[a80_0x55ee78(0x138)]=()=>{const _0x39e1f4=a80_0x55ee78;return process[_0x39e1f4(0x134)]+'-'+worker[_0x39e1f4(0x146)];},exports['getTestName']=()=>{const _0x7de020=a80_0x55ee78,_0x5b1422={};_0x5b1422[_0x7de020(0x13b)]='browserstackTestName';const _0xd0f121=_0x5b1422;return globals[_0x7de020(0x14c)](_0xd0f121[_0x7de020(0x13b)]);},exports[a80_0x55ee78(0x14d)]=(_0x2db7b7=0x64)=>new Promise(_0x2b620d=>setTimeout(_0x2b620d,_0x2db7b7)),exports['debug']=_0x3d935b=>{const _0x4e4767=a80_0x55ee78,_0x3045f5={};_0x3045f5['vHTwv']=function(_0x29a140,_0x4f50b2){return _0x29a140===_0x4f50b2;},_0x3045f5[_0x4e4767(0x149)]=_0x4e4767(0x147);const _0xce4bb1=_0x3045f5;fileLogger[_0x4e4767(0x14e)]('['+new Date()[_0x4e4767(0x13a)]()+_0x4e4767(0x13e)+_0x3d935b),(_0xce4bb1[_0x4e4767(0x148)](process[_0x4e4767(0x13d)][_0x4e4767(0x13c)],_0xce4bb1['stbjV'])||_0xce4bb1['vHTwv'](process[_0x4e4767(0x13d)][_0x4e4767(0x13c)],'1'))&&consoleHolder[_0x4e4767(0x144)]('\x0a['+new Date()[_0x4e4767(0x13a)]()+_0x4e4767(0x13e)+_0x3d935b+'\x0a');};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a81_0x5709e9=a81_0x426b;function a81_0x426b(_0x579b7f,_0x39d26a){const _0xa35a59=a81_0xa35a();return a81_0x426b=function(_0x426bf2,_0x1531a9){_0x426bf2=_0x426bf2-0x8b;let _0x417fad=_0xa35a59[_0x426bf2];return _0x417fad;},a81_0x426b(_0x579b7f,_0x39d26a);}(function(_0x152147,_0x47de2f){const _0x319fc4=a81_0x426b,_0x386848=_0x152147();while(!![]){try{const _0x56fa37=-parseInt(_0x319fc4(0xa7))/0x1+parseInt(_0x319fc4(0xb7))/0x2+parseInt(_0x319fc4(0x9a))/0x3*(-parseInt(_0x319fc4(0xb8))/0x4)+-parseInt(_0x319fc4(0x93))/0x5*(-parseInt(_0x319fc4(0xb3))/0x6)+-parseInt(_0x319fc4(0xa5))/0x7*(-parseInt(_0x319fc4(0x9d))/0x8)+-parseInt(_0x319fc4(0xa3))/0x9*(-parseInt(_0x319fc4(0xa8))/0xa)+parseInt(_0x319fc4(0x9c))/0xb*(-parseInt(_0x319fc4(0x97))/0xc);if(_0x56fa37===_0x47de2f)break;else _0x386848['push'](_0x386848['shift']());}catch(_0x509896){_0x386848['push'](_0x386848['shift']());}}}(a81_0xa35a,0x53cd5));const http=require(a81_0x5709e9(0xb0)),https=require(a81_0x5709e9(0x99)),monkeypatch=require(a81_0x5709e9(0xa0));function a81_0xa35a(){const _0x2c1c95=['hostname','assign','9FbNpEI','duration_ms','21BfWcTT','forEach','68146kvSCkZ','337510kzjwJd','TDAzv','once','gcJNn','response','pathname','method','headers','http','XtuMV','Shhbk','6LTkIOg','end','YShPe','WqJLF','321170OgdxGG','4UibkGV','host','now','url','call','prototype','unpatch','object','mUVqf','690695PBuPfz','qVQTv','tKsPX','ELzzw','651156VjrIVO','exports','https','1373322nHrQxK','request','11CVMZly','1575896VFHHUn','KtMpy','path','monkeypatch'];a81_0xa35a=function(){return _0x2c1c95;};return a81_0xa35a();}function spy(_0x15b19c){const _0xc2bc4c=a81_0x5709e9,_0x55e0bb={'bCPvj':function(_0x29f0b1,_0x4e1330){return _0x29f0b1 instanceof _0x4e1330;},'Shhbk':function(_0x4e4c0b,_0x55509c){return _0x4e4c0b===_0x55509c;},'KtMpy':_0xc2bc4c(0x91),'WqJLF':function(_0x150f1f,_0x4e6b27,_0x1425b1){return _0x150f1f(_0x4e6b27,_0x1425b1);},'qVQTv':function(_0x2d14d5,_0x44f952){return _0x2d14d5-_0x44f952;},'tKsPX':'error','XtuMV':function(_0x2de39c,..._0xd86a25){return _0x2de39c(..._0xd86a25);},'TDAzv':_0xc2bc4c(0xac),'kLFaX':'socket','ELzzw':function(_0x47d821,_0xf0f245,_0x5c0ab7,_0x18d39e){return _0x47d821(_0xf0f245,_0x5c0ab7,_0x18d39e);},'gcJNn':_0xc2bc4c(0xb4),'YShPe':_0xc2bc4c(0x9b),'mUVqf':function(_0x46fcdf,_0x9ddb11,_0x23c60c,_0x2051be){return _0x46fcdf(_0x9ddb11,_0x23c60c,_0x2051be);}},_0x285181=function(){const _0x21718b=_0xc2bc4c,_0x4ce969=arguments[0x0],_0x4c66d7=Array[_0x21718b(0x8f)]['slice'][_0x21718b(0x8e)](arguments,0x1),_0x38013f=_0x4ce969['apply'](this,_0x4c66d7);let _0x2dcb31=Date[_0x21718b(0x8c)](),_0x2c2e3a;const _0x59a72e={};_0x4c66d7[_0x21718b(0xa6)](_0x1cbd17=>{const _0x7be66c=_0x21718b;if(_0x55e0bb['bCPvj'](_0x1cbd17,URL)){const _0x1b68b5={};_0x1b68b5[_0x7be66c(0x8d)]=_0x1cbd17,Object[_0x7be66c(0xa2)](_0x59a72e,_0x1b68b5);}else _0x55e0bb[_0x7be66c(0xb2)](typeof _0x1cbd17,_0x55e0bb[_0x7be66c(0x9e)])&&Object['assign'](_0x59a72e,_0x1cbd17);});const _0x2b8f87=_0x42d445=>{const _0xc36f8f=_0x21718b,_0x2a1deb={};_0x2a1deb['host']=_0x59a72e[_0xc36f8f(0x8b)]||_0x59a72e[_0xc36f8f(0xa1)]||_0x59a72e[_0xc36f8f(0x8d)]&&(_0x59a72e[_0xc36f8f(0x8d)][_0xc36f8f(0x8b)]||_0x59a72e['url'][_0xc36f8f(0xa1)]),_0x2a1deb['path']=_0x59a72e[_0xc36f8f(0x9f)]||_0x59a72e[_0xc36f8f(0x8d)]&&_0x59a72e['url'][_0xc36f8f(0xad)],_0x2a1deb['method']=_0x59a72e[_0xc36f8f(0xae)],_0x2a1deb[_0xc36f8f(0xaf)]=_0x59a72e[_0xc36f8f(0xaf)],_0x55e0bb[_0xc36f8f(0xb6)](_0x15b19c,_0x42d445,_0x2a1deb);};return _0x38013f[_0x21718b(0xaa)](_0x55e0bb[_0x21718b(0xa9)],_0x12ea23=>{const _0x430adc=_0x21718b,_0x2074ac=_0x55e0bb[_0x430adc(0x94)](Date['now'](),_0x2dcb31),_0x45646c={};_0x45646c['hostname']=_0x59a72e[_0x430adc(0x8b)]||_0x59a72e[_0x430adc(0xa1)]||_0x59a72e['url']&&(_0x59a72e[_0x430adc(0x8d)][_0x430adc(0x8b)]||_0x59a72e[_0x430adc(0x8d)][_0x430adc(0xa1)]),_0x45646c[_0x430adc(0x9f)]=_0x59a72e[_0x430adc(0x9f)]||_0x59a72e[_0x430adc(0x8d)]&&_0x59a72e[_0x430adc(0x8d)]['pathname'],_0x45646c[_0x430adc(0xae)]=_0x59a72e[_0x430adc(0xae)],_0x45646c[_0x430adc(0xaf)]=_0x59a72e[_0x430adc(0xaf)],_0x45646c['status_code']=_0x12ea23['statusCode'],_0x45646c[_0x430adc(0xa4)]=_0x2074ac,_0x55e0bb[_0x430adc(0xb6)](_0x15b19c,null,_0x45646c),_0x2c2e3a['removeListener'](_0x55e0bb[_0x430adc(0x95)],_0x2b8f87);}),_0x38013f['on'](_0x55e0bb['kLFaX'],_0x1621eb=>{const _0xa0185a=_0x21718b;_0x2c2e3a=_0x1621eb,_0x1621eb[_0xa0185a(0xaa)](_0x55e0bb[_0xa0185a(0x95)],_0x2b8f87);}),_0x55e0bb[_0x21718b(0x96)](monkeypatch,_0x38013f,_0x55e0bb[_0x21718b(0xab)],(_0x564072,..._0xc1384b)=>{const _0x54b9da=_0x21718b;_0x2dcb31=Date[_0x54b9da(0x8c)](),_0x55e0bb[_0x54b9da(0xb1)](_0x564072,..._0xc1384b);}),_0x38013f;};_0x55e0bb[_0xc2bc4c(0x96)](monkeypatch,http,_0x55e0bb[_0xc2bc4c(0xb5)],_0x285181),_0x55e0bb[_0xc2bc4c(0x92)](monkeypatch,https,_0x55e0bb['YShPe'],_0x285181);}function restore(){const _0x136fbf=a81_0x5709e9;http[_0x136fbf(0x9b)][_0x136fbf(0x90)](),https['request'][_0x136fbf(0x90)]();}const a81_0x50100f={};a81_0x50100f['spy']=spy,a81_0x50100f['restore']=restore,module[a81_0x5709e9(0x98)]=a81_0x50100f;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a82_0x2c3ae8=a82_0x1904;(function(_0x54558a,_0x3eab9d){const _0x515448=a82_0x1904,_0x5e1656=_0x54558a();while(!![]){try{const _0x193ead=parseInt(_0x515448(0x171))/0x1*(-parseInt(_0x515448(0x16f))/0x2)+-parseInt(_0x515448(0x183))/0x3*(-parseInt(_0x515448(0x16d))/0x4)+-parseInt(_0x515448(0x167))/0x5*(-parseInt(_0x515448(0x177))/0x6)+-parseInt(_0x515448(0x170))/0x7*(parseInt(_0x515448(0x173))/0x8)+-parseInt(_0x515448(0x165))/0x9*(-parseInt(_0x515448(0x175))/0xa)+-parseInt(_0x515448(0x182))/0xb+parseInt(_0x515448(0x17e))/0xc;if(_0x193ead===_0x3eab9d)break;else _0x5e1656['push'](_0x5e1656['shift']());}catch(_0x4d2d3d){_0x5e1656['push'](_0x5e1656['shift']());}}}(a82_0x1fed,0x9a96c));function a82_0x1fed(){const _0x26a2a1=['442440yksonK','keepAliveMsecs','6njssQr','keepAlive','./performance/performance-tester','Agent','Mvfgm','https','oOdWa','14414736NJykKp','protocol','VsGvO','MZiGN','8089147uZRyJt','2654559YmgsDm','yObqT','globalAgent','90AoAGgf','agent','3219700FytBEv','request','BSMyb','measureWrapper','hasOwnProperty','call','4KtLVNF','http','1779156RPnEZe','2133390LFyBEJ','1yAxoGY','bZoDC','24nUXaur','KEEP_ALIVE'];a82_0x1fed=function(){return _0x26a2a1;};return a82_0x1fed();}function a82_0x1904(_0x4c959a,_0x23a047){const _0x1fed8c=a82_0x1fed();return a82_0x1904=function(_0x190470,_0x50f5d6){_0x190470=_0x190470-0x163;let _0x976ecf=_0x1fed8c[_0x190470];return _0x976ecf;},a82_0x1904(_0x4c959a,_0x23a047);}const PerformanceTester=require(a82_0x2c3ae8(0x179)),{AUTOMATE_EVENTS:PerformanceEvents}=require('./performance/constants');module['exports']=PerformanceTester[a82_0x2c3ae8(0x16a)](PerformanceEvents[a82_0x2c3ae8(0x174)],function(){const _0x316c5f=a82_0x2c3ae8,_0x39d3cb={'IIzYi':function(_0x2760f5,_0x3ade45){return _0x2760f5===_0x3ade45;},'BSMyb':'https:','Mvfgm':_0x316c5f(0x166),'VsGvO':function(_0x7beef8,_0x57f260,_0x13b404){return _0x7beef8(_0x57f260,_0x13b404);},'MZiGN':function(_0x233093,_0x5574ab){return _0x233093(_0x5574ab);},'InfOz':_0x316c5f(0x16e),'bZoDC':_0x316c5f(0x17c),'oOdWa':function(_0x7825d7,_0x15555f){return _0x7825d7*_0x15555f;},'yObqT':_0x316c5f(0x178)},_0x1afad9=_0x39d3cb['MZiGN'](require,_0x39d3cb['InfOz']),_0x1131bf=_0x39d3cb[_0x316c5f(0x181)](require,_0x39d3cb[_0x316c5f(0x172)]),_0xdc7ce3=_0x39d3cb[_0x316c5f(0x17d)](0x1e,0x3e8);if(_0x1afad9[_0x316c5f(0x164)]&&Object['prototype'][_0x316c5f(0x16b)][_0x316c5f(0x16c)](_0x1afad9[_0x316c5f(0x164)],_0x39d3cb[_0x316c5f(0x163)]))_0x1afad9[_0x316c5f(0x164)][_0x316c5f(0x178)]=!![],_0x1131bf['globalAgent'][_0x316c5f(0x178)]=!![],_0x1afad9['globalAgent'][_0x316c5f(0x176)]=_0xdc7ce3,_0x1131bf[_0x316c5f(0x164)]['keepAliveMsecs']=_0xdc7ce3;else{const _0x23d845={};_0x23d845[_0x316c5f(0x178)]=!![],_0x23d845[_0x316c5f(0x176)]=_0xdc7ce3;const _0x236285=new _0x1afad9['Agent'](_0x23d845),_0x59cb67={};_0x59cb67['keepAlive']=!![],_0x59cb67[_0x316c5f(0x176)]=_0xdc7ce3;const _0x12f0a6=new _0x1131bf[(_0x316c5f(0x17a))](_0x59cb67),_0x56cff9=_0x1afad9[_0x316c5f(0x168)],_0x240663=_0x1131bf[_0x316c5f(0x168)];_0x1afad9[_0x316c5f(0x168)]=function(_0x28c1d7,_0x4e89cd){const _0x28da64=_0x316c5f;if(_0x39d3cb['IIzYi'](_0x28c1d7[_0x28da64(0x17f)],_0x39d3cb[_0x28da64(0x169)]))return _0x28c1d7[_0x39d3cb[_0x28da64(0x17b)]]=_0x12f0a6,_0x39d3cb[_0x28da64(0x180)](_0x240663,_0x28c1d7,_0x4e89cd);return _0x28c1d7[_0x39d3cb[_0x28da64(0x17b)]]=_0x236285,_0x39d3cb['VsGvO'](_0x56cff9,_0x28c1d7,_0x4e89cd);};}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a83_0x2d3027=a83_0x4250;function a83_0x4066(){var _0x339b9d=['733SntZwm','api/v1/batch','cucumber','JEST','api/v1/event','Playwright','55235uurlLv','3307563szCEYN','10606392RCNBHD','codeceptjs','MOCHA','CODECEPT','jest','1768vOayvF','704CrNROa','https://collector-observability.browserstack.com','api/v1/screenshots','4yDoEWK','33453hkxFzv','PLAYWRIGHT','.obs_test_details','482UGyHlj','8311182MXNhDl','254420FTTqJS'];a83_0x4066=function(){return _0x339b9d;};return a83_0x4066();}(function(_0x5a11e3,_0x439e5a){var _0x2148f3=a83_0x4250,_0x52cdf7=_0x5a11e3();while(!![]){try{var _0x57f600=-parseInt(_0x2148f3(0x17a))/0x1*(-parseInt(_0x2148f3(0x177))/0x2)+parseInt(_0x2148f3(0x181))/0x3+-parseInt(_0x2148f3(0x173))/0x4*(-parseInt(_0x2148f3(0x180))/0x5)+parseInt(_0x2148f3(0x178))/0x6+parseInt(_0x2148f3(0x174))/0x7*(parseInt(_0x2148f3(0x187))/0x8)+-parseInt(_0x2148f3(0x182))/0x9+parseInt(_0x2148f3(0x179))/0xa*(-parseInt(_0x2148f3(0x188))/0xb);if(_0x57f600===_0x439e5a)break;else _0x52cdf7['push'](_0x52cdf7['shift']());}catch(_0x5086b6){_0x52cdf7['push'](_0x52cdf7['shift']());}}}(a83_0x4066,0xe1c81));function a83_0x4250(_0x19223b,_0x4ef7fb){var _0x4066ef=a83_0x4066();return a83_0x4250=function(_0x425089,_0x9dc4a){_0x425089=_0x425089-0x171;var _0x2afc20=_0x4066ef[_0x425089];return _0x2afc20;},a83_0x4250(_0x19223b,_0x4ef7fb);}var a83_0x5be6c2={};a83_0x5be6c2[a83_0x2d3027(0x175)]=a83_0x2d3027(0x17f),a83_0x5be6c2[a83_0x2d3027(0x184)]='mocha',a83_0x5be6c2[a83_0x2d3027(0x185)]=a83_0x2d3027(0x183),a83_0x5be6c2[a83_0x2d3027(0x17d)]=a83_0x2d3027(0x186),a83_0x5be6c2['CUCUMBER']=a83_0x2d3027(0x17c),module['exports']={'consoleHolder':Object['assign']({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':a83_0x2d3027(0x171),'EVENT_ENDPOINT':a83_0x2d3027(0x17e),'BATCH_ENDPOINT':a83_0x2d3027(0x17b),'SCREENSHOT_ENDPOINT':a83_0x2d3027(0x172),'DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS':0xea60,'DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS':0x64,'DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS':0x1f4,'TEMP_STORE_DIR_NAME':a83_0x2d3027(0x176),'FRAMEWORKS':a83_0x5be6c2};
|
|
@@ -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
|
+
const a84_0xa3cf37=a84_0x41a4;(function(_0x5c49ee,_0x99e410){const _0x1d264a=a84_0x41a4,_0x5c7a01=_0x5c49ee();while(!![]){try{const _0x51e99b=-parseInt(_0x1d264a(0x222))/0x1*(parseInt(_0x1d264a(0x210))/0x2)+-parseInt(_0x1d264a(0x22b))/0x3+-parseInt(_0x1d264a(0x255))/0x4+-parseInt(_0x1d264a(0x1f5))/0x5+parseInt(_0x1d264a(0x234))/0x6*(parseInt(_0x1d264a(0x208))/0x7)+-parseInt(_0x1d264a(0x20e))/0x8+parseInt(_0x1d264a(0x233))/0x9*(parseInt(_0x1d264a(0x232))/0xa);if(_0x51e99b===_0x99e410)break;else _0x5c7a01['push'](_0x5c7a01['shift']());}catch(_0x1f9205){_0x5c7a01['push'](_0x5c7a01['shift']());}}}(a84_0x21dd,0x1b489));const util=require('util'),PerformanceTester=require(a84_0xa3cf37(0x200)),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require(a84_0xa3cf37(0x22d)),{getAgentVersion,nestedKeyValue}=require(a84_0xa3cf37(0x21b)),o11yErrorHandler=(_0x519aee,_0x34cf1b='',_0x148880=[''],_0x2599cc=![])=>{const _0x3d94c9={'fQYyG':function(_0x7ba58a,_0x4f9b74){return _0x7ba58a(_0x4f9b74);},'kvMSF':function(_0xd1f595,_0xcc716c,_0x13ffca){return _0xd1f595(_0xcc716c,_0x13ffca);},'tONdv':function(_0x376673,_0x28d1ae){return _0x376673(_0x28d1ae);},'ziPEO':function(_0x35a2ba,_0x1b2ac1,_0x4408c5){return _0x35a2ba(_0x1b2ac1,_0x4408c5);},'SumYE':function(_0xa0f2ac,_0x32f075){return _0xa0f2ac instanceof _0x32f075;},'vIyyd':function(_0x19d62c,_0x1770c6,_0x530167,_0x39bb5b,_0x42fdf2){return _0x19d62c(_0x1770c6,_0x530167,_0x39bb5b,_0x42fdf2);}};return function(..._0x23d547){const _0x2a0da7=a84_0x41a4;try{let _0x5ded91=_0x519aee;process[_0x2a0da7(0x1ed)][_0x2a0da7(0x1fb)]&&(_0x5ded91=PerformanceTester['getPerformance']()['timerify'](_0x5ded91));_0x2599cc&&_0x3d94c9[_0x2a0da7(0x20b)](trace,_0x2a0da7(0x235)+_0x34cf1b+_0x2a0da7(0x203)+process[_0x2a0da7(0x1f9)]+_0x2a0da7(0x217)+_0x3d94c9['kvMSF'](nestedKeyValue,arguments[0x0],_0x148880));const _0x2de6a5=_0x5ded91['apply'](null,arguments);_0x2599cc&&_0x3d94c9[_0x2a0da7(0x246)](trace,'Finished\x20::\x20'+_0x34cf1b+',\x20PID\x20-\x20'+process[_0x2a0da7(0x1f9)]+_0x2a0da7(0x217)+_0x3d94c9[_0x2a0da7(0x1fc)](nestedKeyValue,arguments[0x0],_0x148880));if(_0x3d94c9[_0x2a0da7(0x254)](_0x2de6a5,Promise))return _0x2de6a5[_0x2a0da7(0x230)](_0x707a8e=>processError(_0x707a8e,_0x519aee,_0x23d547,_0x34cf1b));return _0x2de6a5;}catch(_0x136c3b){_0x3d94c9['vIyyd'](processError,_0x136c3b,_0x519aee,_0x23d547,_0x34cf1b);}};},o11yClassErrorHandler=(_0x22ecc9,_0xd43255,_0x50dbf3='')=>{const _0x424de3=a84_0xa3cf37,_0x49d23e={'jydDy':function(_0x66d9fd,_0x129d78){return _0x66d9fd instanceof _0x129d78;},'odCSU':function(_0x333ef6,_0x462bba,_0x5c0417,_0x3a5a6f,_0x54b574){return _0x333ef6(_0x462bba,_0x5c0417,_0x3a5a6f,_0x54b574);},'FKGgY':function(_0x5d9278,_0x28f4ed){return _0x5d9278===_0x28f4ed;},'uqotF':'function','puNBS':function(_0x2928bb,_0x241b5a){return _0x2928bb!==_0x241b5a;},'AuaJK':_0x424de3(0x229),'DefQW':function(_0x429a10,_0x4f4aa7){return _0x429a10<_0x4f4aa7;}},_0x352b8b=_0x22ecc9['prototype'];if(_0x49d23e['DefQW'](Object[_0x424de3(0x218)](_0x352b8b)['length'],0x2))return _0x22ecc9;return Object['getOwnPropertyNames'](_0x352b8b)[_0x424de3(0x216)](_0x1bf29c=>{const _0x189365=_0x424de3;if(!(_0xd43255&&_0xd43255[_0x189365(0x219)](_0x1bf29c)))return;const _0x5a21da=_0x352b8b[_0x1bf29c];_0x49d23e[_0x189365(0x21d)](typeof _0x5a21da,_0x49d23e[_0x189365(0x204)])&&_0x49d23e[_0x189365(0x1e9)](_0x1bf29c,_0x49d23e[_0x189365(0x24d)])&&Object[_0x189365(0x231)](_0x352b8b,_0x1bf29c,{'writable':!![],'value':function(..._0x305937){const _0x2b00d0=_0x189365;try{const _0x22739b=(process[_0x2b00d0(0x1ed)][_0x2b00d0(0x1fb)]?PerformanceTester[_0x2b00d0(0x238)]()[_0x2b00d0(0x236)](_0x5a21da):_0x5a21da)[_0x2b00d0(0x23f)](this,..._0x305937);if(_0x49d23e[_0x2b00d0(0x24b)](_0x22739b,Promise))return _0x22739b[_0x2b00d0(0x230)](_0x29a42c=>processError(_0x29a42c,_0x5a21da,_0x305937,_0x50dbf3));return _0x22739b;}catch(_0x4d9329){_0x49d23e[_0x2b00d0(0x23b)](processError,_0x4d9329,_0x5a21da,_0x305937,_0x50dbf3);}}});}),_0x22ecc9;};function a84_0x21dd(){const _0x51cf0a=['Started\x20::\x20','timerify','QEzLP','getPerformance','/api/v1/analytics','length','odCSU','USER_CONFIG_FOR_REPORTING','parse','user','call','QbAwL','application/json','Error\x20in\x20executing\x20','frameworkDetails','auth','setFrameworkDetails','tONdv','Content-Type','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','setConfigDetails','getCredentials','jydDy','toString','AuaJK','userConfig','true','exports','POST','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','inspect','SumYE','542384PrfhET','recursivelyDeletePIIKeysFromObject','puNBS','PFGdD','wZrrB','iTLMP','env','key','FKmjB','cWckc','depth','[Crash_Report_Upload]\x20Failed\x20due\x20to\x20','Kghia','awhtx','720950JBAJTU','ZAbDZ','keys','UZnir','pid','filterPII','BROWSERSTACK_O11Y_PERF_MEASUREMENT','ziPEO','X-BSTACK-TESTOPS','wcPKL','captureError','../performance/performance-tester','[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','password',',\x20PID\x20-\x20','uqotF','format','CREDENTIALS_FOR_CRASH_REPORTING','DXsii','24941tdzabG','skcUz','Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20','fQYyG','credentials','o11yClassErrorHandler','1481256XGjOVq','BS_TESTOPS_BUILD_HASHED_ID','69250vCQbfT','stringify','\x20--\x20','headers','.\x20Error\x20-\x20','frameworkName','forEach',',\x20Argument\x20-\x20','getOwnPropertyNames','includes','uploadCrashReport','../helper','accessKey','FKGgY','frameworkVersion','NFmHQ','Blnbp','hMIKL','5llhwjp','bHdgL','setAllDetails','o11yErrorHandler','username','getConfig','name','constructor','getFramework','446994uNAmqV','SRcxS','./utils','object','UTgSS','catch','defineProperty','410BhMwdP','160542WGEqGu','282boTYSW'];a84_0x21dd=function(){return _0x51cf0a;};return a84_0x21dd();}function a84_0x41a4(_0x2abc97,_0xd9c490){const _0x21dded=a84_0x21dd();return a84_0x41a4=function(_0x41a477,_0x3909d0){_0x41a477=_0x41a477-0x1e9;let _0x3a2c9e=_0x21dded[_0x41a477];return _0x3a2c9e;},a84_0x41a4(_0x2abc97,_0xd9c490);}function processError(_0x4bc565,_0x5ecb4b,_0x4da170,_0x2eb75b){const _0xee7d08=a84_0xa3cf37,_0x25fa98={'yHBeo':function(_0x4414a6,_0x1ace5a){return _0x4414a6(_0x1ace5a);}};_0x25fa98['yHBeo'](debug,_0xee7d08(0x242)+_0x5ecb4b[_0xee7d08(0x228)]+'\x20--\x20'+_0x2eb75b+_0xee7d08(0x214)+_0x4bc565+'.\x20Args\x20-\x20'+_0x4da170+'.'),PerformanceTester[_0xee7d08(0x1ff)](_0x4bc565);let _0xe958da;try{_0xe958da=JSON['stringify'](_0x4da170);}catch(_0x32cb63){const _0x1ad71d={};_0x1ad71d[_0xee7d08(0x1f1)]=0x2,_0xe958da=util[_0xee7d08(0x253)](_0x4da170,_0x1ad71d);}CrashReporter[_0xee7d08(0x21a)]('Error\x20in\x20executing\x20'+_0x5ecb4b[_0xee7d08(0x228)]+_0xee7d08(0x212)+_0x2eb75b+_0xee7d08(0x214)+_0x4bc565+'.\x20Args\x20-\x20'+_0xe958da+'.',_0x4bc565&&_0x4bc565['stack']);}class CrashReporter{static [a84_0xa3cf37(0x24e)]={};static [a84_0xa3cf37(0x20c)];static [a84_0xa3cf37(0x243)]={};static['initialize'](_0x584010,_0x32cce4,_0x130c64=null){const _0x4e5ddd=a84_0xa3cf37,_0x298757={'hMIKL':function(_0xdab55b,_0x118363){return _0xdab55b(_0x118363);},'QEzLP':function(_0x3346db,_0x14c39d){return _0x3346db(_0x14c39d);},'wcPKL':function(_0x248844,_0x4ee46b){return _0x248844(_0x4ee46b);}},_0x5b13d3=_0x584010['frameworkName'],_0x5f3329=_0x584010[_0x4e5ddd(0x21e)];!_0x130c64&&(_0x130c64=_0x298757[_0x4e5ddd(0x221)](getBrowserStackConfig,_0x5b13d3));!_0x5f3329&&_0x298757[_0x4e5ddd(0x237)](getFrameworkVersion,_0x5b13d3);const _0x599697={};_0x599697['frameworkName']=_0x5b13d3,_0x599697['frameworkVersion']=_0x5f3329,this[_0x4e5ddd(0x224)](_0x599697,_0x32cce4,_0x298757[_0x4e5ddd(0x1fe)](getUserCredentials,_0x130c64));}static['setCredentials'](_0x3a2980,_0x392e74){const _0xbed86c=a84_0xa3cf37,_0x126d2e={};_0x126d2e[_0xbed86c(0x226)]=_0x3a2980,_0x126d2e[_0xbed86c(0x21c)]=_0x392e74,this[_0xbed86c(0x20c)]=_0x126d2e,process[_0xbed86c(0x1ed)]['CREDENTIALS_FOR_CRASH_REPORTING']=JSON[_0xbed86c(0x211)](this[_0xbed86c(0x20c)]);}static[a84_0xa3cf37(0x24a)](){const _0x1c7434=a84_0xa3cf37,_0x13e4e5={'Blnbp':function(_0x33f177,_0x33cf6b){return _0x33f177(_0x33cf6b);}};if(!this[_0x1c7434(0x20c)]&&process['env'][_0x1c7434(0x206)])try{this['credentials']=JSON[_0x1c7434(0x23d)](process['env'][_0x1c7434(0x206)]);}catch(_0x4ac9bb){_0x13e4e5[_0x1c7434(0x220)](debug,'Error\x20in\x20parsing\x20credentials\x20from\x20env\x20'+_0x4ac9bb['toString']());}return this[_0x1c7434(0x20c)];}static['setConfigDetails'](_0x26bc1c){const _0x538ce6=a84_0xa3cf37;this[_0x538ce6(0x24e)]=this[_0x538ce6(0x1fa)](_0x26bc1c),process['env']['USER_CONFIG_FOR_REPORTING']=JSON[_0x538ce6(0x211)](this[_0x538ce6(0x24e)]);}static['getConfig'](){const _0x15c3e8=a84_0xa3cf37,_0x410a42={'UZnir':function(_0x57cbf3,_0x2e48a3){return _0x57cbf3===_0x2e48a3;},'SRcxS':function(_0xbc7e62,_0x1f9965){return _0xbc7e62(_0x1f9965);}};if(_0x410a42[_0x15c3e8(0x1f8)](Object[_0x15c3e8(0x1f7)](this[_0x15c3e8(0x24e)])[_0x15c3e8(0x23a)],0x0)&&process[_0x15c3e8(0x1ed)][_0x15c3e8(0x23c)])try{this['userConfig']=JSON[_0x15c3e8(0x23d)](process[_0x15c3e8(0x1ed)][_0x15c3e8(0x23c)]);}catch(_0x188393){_0x410a42[_0x15c3e8(0x22c)](debug,_0x15c3e8(0x20a)+_0x188393[_0x15c3e8(0x24c)]()),this[_0x15c3e8(0x24e)]={};}return this[_0x15c3e8(0x24e)];}static[a84_0xa3cf37(0x245)](_0x52e2e2){const _0x3dcc65=a84_0xa3cf37;this[_0x3dcc65(0x243)]=_0x52e2e2,process['env'][_0x3dcc65(0x248)]=JSON[_0x3dcc65(0x211)](this[_0x3dcc65(0x243)]);}static[a84_0xa3cf37(0x22a)](){const _0x3b2aba=a84_0xa3cf37,_0x139490={'skcUz':function(_0x5d77e8,_0x423c3c){return _0x5d77e8===_0x423c3c;},'UsDLR':function(_0x1c19f0,_0x589696){return _0x1c19f0(_0x589696);}};if(_0x139490[_0x3b2aba(0x209)](Object[_0x3b2aba(0x1f7)](this[_0x3b2aba(0x243)])[_0x3b2aba(0x23a)],0x0)&&process[_0x3b2aba(0x1ed)]['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS'])try{this[_0x3b2aba(0x243)]=JSON[_0x3b2aba(0x23d)](process[_0x3b2aba(0x1ed)][_0x3b2aba(0x248)]);}catch(_0x12edda){_0x139490['UsDLR'](debug,_0x3b2aba(0x252)+_0x12edda['toString']());}return this[_0x3b2aba(0x243)];}static[a84_0xa3cf37(0x224)](_0x177fe7,_0x4fd5c9,_0x3719b9){const _0x494081=a84_0xa3cf37;_0x177fe7&&this['setFrameworkDetails'](_0x177fe7),_0x4fd5c9&&this[_0x494081(0x249)](_0x4fd5c9),_0x3719b9&&this['setCredentials'](_0x3719b9[_0x494081(0x226)],_0x3719b9['accessKey']);}static async[a84_0xa3cf37(0x21a)](_0x5d9be5,_0xfaf0b7){const _0x44e96e=a84_0xa3cf37,_0x4bcc27={'PFGdD':function(_0x62615c,_0x4e924c){return _0x62615c(_0x4e924c);},'cWckc':function(_0x508844,_0x11007a){return _0x508844(_0x11007a);},'ZAbDZ':_0x44e96e(0x201),'awhtx':function(_0x2a728a){return _0x2a728a();},'AFjpL':_0x44e96e(0x239),'yrQmW':_0x44e96e(0x241),'wZrrB':_0x44e96e(0x24f),'ccscR':function(_0x436b1b,_0x5d79bd,_0x419778,_0x460346,_0x21315d,_0x17074c){return _0x436b1b(_0x5d79bd,_0x419778,_0x460346,_0x21315d,_0x17074c);},'Kghia':_0x44e96e(0x251)};this[_0x44e96e(0x24a)]();if(!this[_0x44e96e(0x20c)])return _0x4bcc27[_0x44e96e(0x1f0)](debug,_0x4bcc27[_0x44e96e(0x1f6)]);this[_0x44e96e(0x227)](),this[_0x44e96e(0x22a)]();const _0x579f5b={'hashed_id':process['env'][_0x44e96e(0x20f)],'observability_version':{'sdkVersion':_0x4bcc27[_0x44e96e(0x1f4)](getAgentVersion),'frameworkName':this[_0x44e96e(0x243)][_0x44e96e(0x215)],'frameworkVersion':this[_0x44e96e(0x243)]['frameworkVersion']},'exception':{'error':_0x5d9be5[_0x44e96e(0x24c)](),'stackTrace':_0xfaf0b7},'config':this[_0x44e96e(0x24e)]},_0x423537=_0x4bcc27['AFjpL'],_0x586127={};_0x586127['username']=this[_0x44e96e(0x20c)][_0x44e96e(0x226)],_0x586127[_0x44e96e(0x202)]=this[_0x44e96e(0x20c)]['accessKey'];const _0x35f935={};_0x35f935[_0x44e96e(0x247)]=_0x4bcc27['yrQmW'],_0x35f935[_0x44e96e(0x1fd)]=_0x4bcc27[_0x44e96e(0x1eb)];const _0x4e86f4={};_0x4e86f4[_0x44e96e(0x244)]=_0x586127,_0x4e86f4[_0x44e96e(0x213)]=_0x35f935;const _0x2954a5=_0x4e86f4;_0x4bcc27['ccscR'](nodeRequest,_0x4bcc27[_0x44e96e(0x1f3)],_0x423537,_0x579f5b,_0x2954a5,![])['then'](_0x4f53d6=>{const _0x4d776b=_0x44e96e;_0x4bcc27[_0x4d776b(0x1ea)](debug,'[Crash_Report_Upload]\x20Success\x20response:\x20'+JSON[_0x4d776b(0x211)](_0x4f53d6));})[_0x44e96e(0x230)](_0x434bc1=>{const _0x13e6da=_0x44e96e;_0x4bcc27[_0x13e6da(0x1f0)](debug,_0x13e6da(0x1f2)+util[_0x13e6da(0x205)](_0x434bc1));});}static[a84_0xa3cf37(0x256)](_0x28677a){const _0x27c410=a84_0xa3cf37,_0x1b62c7={};_0x1b62c7[_0x27c410(0x21f)]=_0x27c410(0x23e),_0x1b62c7[_0x27c410(0x1ec)]=_0x27c410(0x226),_0x1b62c7[_0x27c410(0x1ef)]=_0x27c410(0x1ee),_0x1b62c7['QbAwL']=_0x27c410(0x21c),_0x1b62c7[_0x27c410(0x223)]=_0x27c410(0x202),_0x1b62c7['UTgSS']=function(_0x3d640c,_0x534fa6){return _0x3d640c===_0x534fa6;},_0x1b62c7[_0x27c410(0x207)]=_0x27c410(0x22e);const _0x420183=_0x1b62c7;if(!_0x28677a)return;const _0x325a95=[_0x420183[_0x27c410(0x21f)],_0x420183[_0x27c410(0x1ec)],_0x420183[_0x27c410(0x1ef)],_0x420183[_0x27c410(0x240)],_0x420183[_0x27c410(0x223)]];for(const _0x4e8c92 in _0x28677a){if(_0x325a95['includes'](_0x4e8c92['toLowerCase']()))delete _0x28677a[_0x4e8c92];else _0x420183[_0x27c410(0x22f)](typeof _0x28677a[_0x4e8c92],_0x420183[_0x27c410(0x207)])&&this[_0x27c410(0x256)](_0x28677a[_0x4e8c92]);}}static[a84_0xa3cf37(0x1fa)](_0x387877){const _0x53eefe=a84_0xa3cf37,_0x28af19=JSON[_0x53eefe(0x23d)](JSON[_0x53eefe(0x211)](_0x387877));return this['recursivelyDeletePIIKeysFromObject'](_0x28af19),_0x28af19;}}const a84_0xfbb68e={};a84_0xfbb68e[a84_0xa3cf37(0x225)]=o11yErrorHandler,a84_0xfbb68e[a84_0xa3cf37(0x20d)]=o11yClassErrorHandler,a84_0xfbb68e['CrashReporter']=CrashReporter,module[a84_0xa3cf37(0x250)]=a84_0xfbb68e;
|
|
@@ -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
|
+
const a85_0x104d6=a85_0x39cf;(function(_0x1f521d,_0x334034){const _0x307e8e=a85_0x39cf,_0x134263=_0x1f521d();while(!![]){try{const _0x52881f=-parseInt(_0x307e8e(0x190))/0x1*(parseInt(_0x307e8e(0x1ce))/0x2)+-parseInt(_0x307e8e(0x1f0))/0x3*(parseInt(_0x307e8e(0x1e0))/0x4)+parseInt(_0x307e8e(0x1d2))/0x5+-parseInt(_0x307e8e(0x1b5))/0x6+parseInt(_0x307e8e(0x1dd))/0x7*(parseInt(_0x307e8e(0x195))/0x8)+-parseInt(_0x307e8e(0x1ba))/0x9+parseInt(_0x307e8e(0x1ed))/0xa*(parseInt(_0x307e8e(0x1eb))/0xb);if(_0x52881f===_0x334034)break;else _0x134263['push'](_0x134263['shift']());}catch(_0x4703dd){_0x134263['push'](_0x134263['shift']());}}}(a85_0xaa36,0x5294d));const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require(a85_0x104d6(0x1c9)),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require(a85_0x104d6(0x1c3)),{nestedKeyValue}=require(a85_0x104d6(0x1d0)),util=require('util');function a85_0xaa36(){const _0x316572=['slice','QKKKo','xWNLJ','CBTSessionCreated','Interval-Queue','ReQkN','RESETTING','TEST_SCREENSHOT','max','2|3|4|5|0|1','3115314rJQlpk','response','kind','utf8','\x20--\x20','2004984UgKBZt','kGoJA','afgZJ','push','logs','eUIbq','started','Shutdown-Queue','startEventBatchPolling','./utils','rADua','format','bxRAY','byteLength','Processing\x20batch\x20events\x20for\x20','./constants','bJSDD','start','YEZnS','error','23670PNjboU','uploadPending','../helper','HBxsT','1207025vndjCR','pendingUploads','NNeHB','uuid','TgEnr','instance','HabwS','eventUrl','POST','data','join','365953EtGUGo','vPZob','map','248rquUKm','TestRunFinished','REMOVING','splice','status','BATCH_EVENT_TYPES','utrFN','qyjzu','\x20bytes.\x20Events\x20are\x20','OamAb','Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20','154vLBqYo','statusText','764140wiIdRR','resetEventBatchPolling','length','19242eHLqde','.\x20Request\x20Size\x20-\x20','exmSS','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','removeEventBatchPolling','8SFriVA','pollEventBatchInterval','\x20event\x20successful\x20for\x20events\x20','test_run','includes','40JUEXxV','AfLdd','cROLT','JbjCd','batchAndPostEvents','hook_run','vEVEv','shouldProceed','uQTid','split','HookRunStarted','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','EXCEPTION\x20IN\x20','screenshotEventUrl','proceedWithData','Ieogs','message','TestRunSkipped','event_type','queue','JEbpq','HyfMz'];a85_0xaa36=function(){return _0x316572;};return a85_0xaa36();}class RequestQueueHandler{static ['instance'];[a85_0x104d6(0x1d3)]=0x0;constructor(){const _0x61c137=a85_0x104d6,_0x53ad0f={};_0x53ad0f['AfLdd']=_0x61c137(0x1b4),_0x53ad0f[_0x61c137(0x1bc)]='LogCreated',_0x53ad0f[_0x61c137(0x19d)]=_0x61c137(0x1ae),_0x53ad0f[_0x61c137(0x197)]=_0x61c137(0x1e1),_0x53ad0f[_0x61c137(0x1c4)]=_0x61c137(0x1a6),_0x53ad0f['bJSDD']='HookRunFinished',_0x53ad0f[_0x61c137(0x1e9)]='TestRunStarted',_0x53ad0f['QewAd']=_0x61c137(0x19f),_0x53ad0f['JEbpq']='api/v1/batch',_0x53ad0f[_0x61c137(0x1d4)]='api/v1/screenshots';const _0x3e29b4=_0x53ad0f,_0x5664d5=_0x3e29b4[_0x61c137(0x196)][_0x61c137(0x19e)]('|');let _0x374df3=0x0;while(!![]){switch(_0x5664d5[_0x374df3++]){case'0':this[_0x61c137(0x1e5)]=[_0x3e29b4['afgZJ'],_0x3e29b4[_0x61c137(0x19d)],_0x3e29b4[_0x61c137(0x197)],_0x3e29b4['rADua'],_0x3e29b4[_0x61c137(0x1ca)],_0x3e29b4[_0x61c137(0x1e9)],_0x3e29b4['QewAd']];continue;case'1':this[_0x61c137(0x191)]=null;continue;case'2':this[_0x61c137(0x1a8)]=[];continue;case'3':this[_0x61c137(0x1c0)]=![];continue;case'4':this[_0x61c137(0x1d9)]=_0x3e29b4[_0x61c137(0x1a9)];continue;case'5':this[_0x61c137(0x1a2)]=_0x3e29b4[_0x61c137(0x1d4)];continue;}break;}}static['getInstance'](){const _0x338af4=a85_0x104d6;return!RequestQueueHandler['instance']&&(RequestQueueHandler[_0x338af4(0x1d7)]=new RequestQueueHandler()),RequestQueueHandler['instance'];}[a85_0x104d6(0x1cb)]=()=>{const _0x6201d4=a85_0x104d6;!this[_0x6201d4(0x1c0)]&&(this[_0x6201d4(0x1c0)]=!![],this[_0x6201d4(0x1c2)]());};['add']=_0x296856=>{const _0x15a28b=a85_0x104d6,_0xc0014e={'gKoVy':function(_0x35d69d,_0x38df8c){return _0x35d69d===_0x38df8c;},'HyfMz':_0x15a28b(0x1b2),'YPbOF':function(_0x21ed57,_0x21c010){return _0x21ed57(_0x21c010);},'bxRAY':_0x15a28b(0x1a0)};if(this[_0x15a28b(0x1e5)][_0x15a28b(0x194)](_0x296856[_0x15a28b(0x1a7)])){if(_0x296856[_0x15a28b(0x1be)]&&_0x296856[_0x15a28b(0x1be)][0x0]&&_0xc0014e['gKoVy'](_0x296856[_0x15a28b(0x1be)][0x0][_0x15a28b(0x1b7)],_0xc0014e[_0x15a28b(0x1aa)])){const _0x21c57f={};return _0x21c57f[_0x15a28b(0x19c)]=!![],_0x21c57f[_0x15a28b(0x1a3)]=[_0x296856],_0x21c57f['proceedWithUrl']=this[_0x15a28b(0x1a2)],_0x21c57f;}this['queue'][_0x15a28b(0x1bd)](_0x296856);let _0x177c1b=null;const _0x8c603c=this[_0x15a28b(0x19c)]();_0x8c603c&&(_0xc0014e['YPbOF'](trace,_0xc0014e[_0x15a28b(0x1c6)]),_0x177c1b=this['queue'][_0x15a28b(0x1ab)](0x0,BATCH_SIZE),this[_0x15a28b(0x1a8)][_0x15a28b(0x1e3)](0x0,BATCH_SIZE),this[_0x15a28b(0x1ee)]());const _0x1efed4={};return _0x1efed4[_0x15a28b(0x19c)]=_0x8c603c,_0x1efed4[_0x15a28b(0x1a3)]=_0x177c1b,_0x1efed4['proceedWithUrl']=this[_0x15a28b(0x1d9)],_0x1efed4;}const _0x4b74fb={};return _0x4b74fb[_0x15a28b(0x19c)]=!![],_0x4b74fb;};['shutdown']=async()=>{const _0x4de12a=a85_0x104d6,_0x2cc2c9={'vlhzd':_0x4de12a(0x1e2),'ReQkN':function(_0x1b5865,_0xe7a2f7){return _0x1b5865>_0xe7a2f7;},'qyjzu':_0x4de12a(0x1c1),'xWNLJ':function(_0x4d57e2,_0x1a3404){return _0x4d57e2(_0x1a3404);}};await this[_0x4de12a(0x1cf)](),this[_0x4de12a(0x18f)](_0x2cc2c9['vlhzd']);while(_0x2cc2c9[_0x4de12a(0x1b0)](this[_0x4de12a(0x1a8)][_0x4de12a(0x1ef)],0x0)){const _0x47bc7d=this[_0x4de12a(0x1a8)][_0x4de12a(0x1ab)](0x0,BATCH_SIZE);this[_0x4de12a(0x1a8)][_0x4de12a(0x1e3)](0x0,BATCH_SIZE),await this['batchAndPostEvents'](this[_0x4de12a(0x1d9)],_0x2cc2c9[_0x4de12a(0x1e7)],_0x47bc7d);}_0x2cc2c9['ReQkN'](this[_0x4de12a(0x1d3)],0x0)&&_0x2cc2c9[_0x4de12a(0x1ad)](debug,_0x4de12a(0x1ea)+this[_0x4de12a(0x1d3)]);};[a85_0x104d6(0x199)]=async(_0x5bc3e2,_0x47a53a,_0x2af64c)=>{const _0x5e07fe=a85_0x104d6,_0x27cb70={'kGoJA':function(_0x184bdc,_0x12057e){return _0x184bdc(_0x12057e);},'Ieogs':_0x5e07fe(0x1b8),'KrCcp':function(_0x515cdf){return _0x515cdf();},'pXvjA':function(_0x22f7f6,_0xc3ca70,_0x1615d1,_0x19614e,_0x50c075){return _0x22f7f6(_0xc3ca70,_0x1615d1,_0x19614e,_0x50c075);},'JbjCd':_0x5e07fe(0x1da),'QKKKo':function(_0x18e659,_0x4e132f){return _0x18e659-_0x4e132f;}};let _0x187434='';try{_0x187434=_0x2af64c[_0x5e07fe(0x1df)](_0x3d2392=>'\x27'+_0x3d2392[_0x5e07fe(0x1a7)]+'\x27:'+(nestedKeyValue(_0x3d2392,[_0x5e07fe(0x193),_0x5e07fe(0x1d5)])||nestedKeyValue(_0x3d2392,[_0x5e07fe(0x19a),_0x5e07fe(0x1d5)])))[_0x5e07fe(0x1dc)](','),_0x27cb70[_0x5e07fe(0x1bb)](debug,_0x5e07fe(0x1c8)+_0x47a53a+_0x5e07fe(0x18c)+Buffer[_0x5e07fe(0x1c7)](util['format']('%j',_0x2af64c),_0x27cb70[_0x5e07fe(0x1a4)])+_0x5e07fe(0x1e8)+_0x187434);}catch(_0x1b218e){_0x27cb70[_0x5e07fe(0x1bb)](debug,_0x5e07fe(0x18e)+util[_0x5e07fe(0x1c5)](_0x1b218e)+'}');}const _0x4f5e10={'headers':_0x27cb70['KrCcp'](getDefaultHeaders)};try{const _0x323dfe=await _0x27cb70['pXvjA'](nodeRequest,_0x27cb70[_0x5e07fe(0x198)],_0x5bc3e2,_0x2af64c,_0x4f5e10);if(_0x323dfe[_0x5e07fe(0x1db)][_0x5e07fe(0x1cd)]){const _0x5d5575={};_0x5d5575[_0x5e07fe(0x1a5)]=_0x323dfe[_0x5e07fe(0x1db)][_0x5e07fe(0x1cd)];throw _0x5d5575;}else _0x27cb70['kGoJA'](debug,_0x47a53a+_0x5e07fe(0x192)+_0x187434+_0x5e07fe(0x1b9)+util[_0x5e07fe(0x1c5)]('%j',_0x323dfe[_0x5e07fe(0x1db)])),this[_0x5e07fe(0x1d3)]=Math['max'](0x0,_0x27cb70['QKKKo'](this['pendingUploads'],_0x2af64c[_0x5e07fe(0x1ef)]));}catch(_0x195541){_0x195541[_0x5e07fe(0x1b6)]?_0x27cb70[_0x5e07fe(0x1bb)](debug,_0x5e07fe(0x1a1)+_0x47a53a+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20'+_0x195541[_0x5e07fe(0x1b6)][_0x5e07fe(0x1e4)]+'\x20'+_0x195541[_0x5e07fe(0x1b6)][_0x5e07fe(0x1ec)]+'\x20'+util[_0x5e07fe(0x1c5)]('%j',_0x195541[_0x5e07fe(0x1b6)])):_0x27cb70[_0x5e07fe(0x1bb)](debug,_0x5e07fe(0x1a1)+_0x47a53a+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20'+(_0x195541['message']||_0x195541)),this['pendingUploads']=Math[_0x5e07fe(0x1b3)](0x0,_0x27cb70[_0x5e07fe(0x1ac)](this[_0x5e07fe(0x1d3)],_0x2af64c[_0x5e07fe(0x1ef)]));}};[a85_0x104d6(0x1c2)]=()=>{const _0x19618e=a85_0x104d6,_0x52501e={'utrFN':function(_0x5826ed,_0x4b1a18){return _0x5826ed>_0x4b1a18;},'TgEnr':function(_0x789ac5,_0x50bd82){return _0x789ac5(_0x50bd82);},'pHcLU':_0x19618e(0x1af),'vPZob':function(_0x480ab6,_0x3bc91e,_0x2afe36){return _0x480ab6(_0x3bc91e,_0x2afe36);}};this[_0x19618e(0x191)]=_0x52501e[_0x19618e(0x1de)](setInterval,async()=>{const _0x4d462d=_0x19618e;if(_0x52501e[_0x4d462d(0x1e6)](this['queue']['length'],0x0)){_0x52501e[_0x4d462d(0x1d6)](trace,'Processing\x20events.\x20Queue\x20Length\x20-\x20'+this[_0x4d462d(0x1a8)]['length']);const _0x24c14f=this['queue']['slice'](0x0,BATCH_SIZE);this['queue']['splice'](0x0,BATCH_SIZE),await this[_0x4d462d(0x199)](this['eventUrl'],_0x52501e['pHcLU'],_0x24c14f),_0x52501e[_0x4d462d(0x1d6)](trace,'Remaining\x20Queue\x20Length\x20-\x20'+this[_0x4d462d(0x1a8)]['length']);}},BATCH_INTERVAL);};[a85_0x104d6(0x1ee)]=()=>{const _0x527f76=a85_0x104d6,_0x569316={};_0x569316['HabwS']=_0x527f76(0x1b1);const _0x4885d1=_0x569316;this[_0x527f76(0x18f)](_0x4885d1[_0x527f76(0x1d8)]),this[_0x527f76(0x1c2)]();};['removeEventBatchPolling']=_0x1f26f1=>{const _0x51af1c=a85_0x104d6,_0x368d6b={'eUIbq':function(_0x274984,_0x29a6fc){return _0x274984(_0x29a6fc);},'HRcpK':function(_0x5473b4,_0x1a5193){return _0x5473b4===_0x1a5193;},'HExVB':_0x51af1c(0x1e2)};this[_0x51af1c(0x191)]&&(_0x368d6b[_0x51af1c(0x1bf)](clearInterval,this[_0x51af1c(0x191)]),this[_0x51af1c(0x191)]=null,_0x368d6b['HRcpK'](_0x1f26f1,_0x368d6b['HExVB'])&&(this['started']=![]));};[a85_0x104d6(0x19c)]=()=>{const _0x261f8f=a85_0x104d6,_0xc2f84e={};_0xc2f84e[_0x261f8f(0x1cc)]=function(_0x5c3b87,_0x5c31fe){return _0x5c3b87>=_0x5c31fe;};const _0x4a014d=_0xc2f84e;return _0x4a014d[_0x261f8f(0x1cc)](this[_0x261f8f(0x1a8)]['length'],BATCH_SIZE);};async[a85_0x104d6(0x1cf)](_0x5bd8d0=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x434939=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x1d56f6=a85_0x104d6,_0x346a62={'vEVEv':function(_0x4dbcf6,_0x369eee){return _0x4dbcf6<=_0x369eee;},'HBxsT':function(_0x48d3ed,_0x4ec3eb){return _0x48d3ed(_0x4ec3eb);},'exmSS':function(_0x25de4f,_0x2e0ab6){return _0x25de4f-_0x2e0ab6;}};if(_0x346a62[_0x1d56f6(0x19b)](this[_0x1d56f6(0x1d3)],0x0)||_0x346a62['vEVEv'](_0x5bd8d0,0x0))return;return await _0x346a62[_0x1d56f6(0x1d1)](sleep,_0x434939),this[_0x1d56f6(0x1cf)](_0x346a62[_0x1d56f6(0x18d)](_0x5bd8d0,_0x434939));}}function a85_0x39cf(_0x44eb09,_0x220e5e){const _0xaa3649=a85_0xaa36();return a85_0x39cf=function(_0x39cf84,_0x33f923){_0x39cf84=_0x39cf84-0x18c;let _0x47324c=_0xaa3649[_0x39cf84];return _0x47324c;},a85_0x39cf(_0x44eb09,_0x220e5e);}module['exports']=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_0x58d831=a86_0x570a;(function(_0x18d29f,_0x1d592d){const _0x56d6c7=a86_0x570a,_0x5c5215=_0x18d29f();while(!![]){try{const _0x2e88dd=parseInt(_0x56d6c7(0x1ca))/0x1+parseInt(_0x56d6c7(0x1c3))/0x2*(-parseInt(_0x56d6c7(0x1ae))/0x3)+parseInt(_0x56d6c7(0x165))/0x4+-parseInt(_0x56d6c7(0x1d4))/0x5+-parseInt(_0x56d6c7(0x1b9))/0x6+parseInt(_0x56d6c7(0x1e8))/0x7+parseInt(_0x56d6c7(0x1cd))/0x8;if(_0x2e88dd===_0x1d592d)break;else _0x5c5215['push'](_0x5c5215['shift']());}catch(_0xf61788){_0x5c5215['push'](_0x5c5215['shift']());}}}(a86_0x5969,0xf32dc));const bsSetupHelper=require(a86_0x58d831(0x1d5)),path=require('path'),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,sleep,isTestObservabilitySession,trace}=require('./utils'),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a86_0x58d831(0x168)),RequestQueueHandler=require('./requestQueueHandler'),logger=require('../logger')[a86_0x58d831(0x17a)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap}=require(a86_0x58d831(0x1b7));function a86_0x5969(){const _0x30f65a=['bZhzL','cnkzr','api/v1/builds','HookRunStarted','\x20retry\x20runs\x20exceeded','12863949YvSUjS','tAVoD','launch','QbILR','POST','UderK','info','IyGEm','application/json','Hook_Start_Upload','BS_A11Y_JWT','test_run','projectName','api/v1/event','add','app','buildDescription','FzOnl','VYqDZ','error','4441720PfJVZU','Bearer\x20','iIPtk','./constants','stringify','gJIOa','RKjhd','jsYDk','JxmFj','NORFK','false','uploadEventData','vqEdK','hFjcb','ERROR_ACCESS_DENIED','getCiInfo','Processing\x20event\x20-\x20\x27','OuINK','env','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','hook_run','winstonLogger','Batch-Queue','fKiUD','getUserName','Build\x20creation\x20successful!','X-BSTACK-TESTOPS','BS_TESTOPS_BUILD_HASHED_ID','allow_screenshots','ERROR_SDK_DEPRECATED','statusText','build_hashed_id','length','BROWSERSTACK_TESTHUB_JWT','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','json','PqWYP','includes','EXCEPTION\x20IN\x20','frameworkName','GJZEK','CBTSessionCreated','CREDENTIALS_FOR_CRASH_REPORTING','lyVgU','fjTPU','Test_Start_Upload','FIZAA','resolve','ZCuZr','eQGvx','MLtiz','TestRunStarted','eXAIC','CBT_Upload','FKGLE','eventUrl','EDQPl',']\x20event\x20successful!','HlIXJ','browserstackAutomation','username','cZUzp','requestQueueHandler','getHostInfo','BROWSERSTACK_TESTHUB_UUID','xhPss','password','headers','event_type','vOvLW','BROWSERSTACK_RERUN','success','910419JVcGGT','cwd','true','hfAyO','TestRunSkipped','ERROR_INVALID_CREDENTIALS','BS_TESTOPS_ALLOW_SCREENSHOTS','dCKGQ','TxWOZ','../../helpers/testhub/utils','jwt','909180lKPUTS','XJTKF','response','status','max','BS_TESTOPS_JWT','start','toISOString','cgcgh','UVEZT','8SeGPtv','zyyvP','cIUmu','DfktW','vLsmR','GoQqc','uAKGi','35601ZVDNJv','buildName','Content-Type','9221200BbmeLW','Authorization','Test_Skipped_Upload','data','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20missing\x20authentication\x20token','message','HneUO','8874530QYpBlw','../helper','Hook_End_Upload','nestedKeyValue','BS_TESTOPS_BUILD_COMPLETED','errorType','Retry\x20runs\x20exceeded','pendingUploads','BROWSERSTACK_BUILD_RUN_IDENTIFIER','bEKfe','exports','ZbqAK','getAccessKey','getAgentVersion','HookRunFinished'];a86_0x5969=function(){return _0x30f65a;};return a86_0x5969();}function a86_0x570a(_0x2ac5d5,_0x3d6eee){const _0x596920=a86_0x5969();return a86_0x570a=function(_0x570ac2,_0x5f5c79){_0x570ac2=_0x570ac2-0x15c;let _0x2e77f8=_0x596920[_0x570ac2];return _0x2e77f8;},a86_0x570a(_0x2ac5d5,_0x3d6eee);}class SessionHandler{static ['requestQueueHandler']=RequestQueueHandler['getInstance']();static async[a86_0x58d831(0x1ea)](_0xbb589d,_0x7335ce){const _0x489a93=a86_0x58d831,_0x9ece8c={'zyyvP':function(_0x41afdc,_0x171eea){return _0x41afdc||_0x171eea;},'gJIOa':function(_0xaf7bf4,_0x2dbe45){return _0xaf7bf4||_0x2dbe45;},'DfktW':function(_0x28d434,_0x43dc41){return _0x28d434===_0x43dc41;},'vOvLW':function(_0x59b485,_0xc0d9ff){return _0x59b485(_0xc0d9ff);},'iIPtk':'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','cgcgh':_0x489a93(0x16f),'FIZAA':_0x489a93(0x189),'UderK':function(_0x3c4e4a,_0x2926dc,_0x4163fe,_0x140af8,_0x3fd7e5){return _0x3c4e4a(_0x2926dc,_0x4163fe,_0x140af8,_0x3fd7e5);},'dCKGQ':_0x489a93(0x1ec),'RTGgl':_0x489a93(0x1e5),'tAVoD':_0x489a93(0x17e),'QVWlu':function(_0x1202df){return _0x1202df();},'xhPss':_0x489a93(0x1b0),'IyGEm':'null','RKjhd':function(_0xa88bc7,_0x360eb1){return _0xa88bc7(_0x360eb1);},'GoQqc':_0x489a93(0x1b3),'rISFt':_0x489a93(0x173),'zzJuv':_0x489a93(0x182)},_0xd2bdbf=bsSetupHelper[_0x489a93(0x17d)](_0xbb589d),_0x5726ac=bsSetupHelper[_0x489a93(0x1e0)](_0xbb589d),_0x1e2230=_0x9ece8c[_0x489a93(0x1c4)](_0xd2bdbf,'')+':'+_0x9ece8c[_0x489a93(0x16a)](_0x5726ac,'');if(_0x9ece8c[_0x489a93(0x1c6)](_0x1e2230,':'))return _0x9ece8c[_0x489a93(0x1ab)](debug,_0x9ece8c[_0x489a93(0x167)]),process[_0x489a93(0x177)][_0x489a93(0x1d8)]=_0x9ece8c[_0x489a93(0x1c1)],[null,null];let _0x3daca4=![],_0x12e231=![];if(_0xbb589d['browserstackAutomation']&&_0xbb589d[_0x489a93(0x160)])_0x12e231=!![];else _0xbb589d[_0x489a93(0x1a1)]&&(_0x3daca4=!![]);try{const _0xe6c10f={'format':_0x9ece8c[_0x489a93(0x194)],'project_name':_0xbb589d[_0x489a93(0x15d)]||'','name':_0xbb589d[_0x489a93(0x1cb)]||path['basename'](path[_0x489a93(0x195)](process[_0x489a93(0x1af)]())),'build_identifier':_0xbb589d['buildIdentifier'],'description':_0xbb589d[_0x489a93(0x161)]||'','start_time':new Date()[_0x489a93(0x1c0)](),'tags':_0x9ece8c['vOvLW'](getCustomTags,_0xbb589d),'host_info':bsSetupHelper[_0x489a93(0x1a5)](),'ci_info':bsSetupHelper[_0x489a93(0x174)](),'build_run_identifier':process[_0x489a93(0x177)][_0x489a93(0x1dc)],'failed_tests_rerun':process['env'][_0x489a93(0x1ac)]||![],'version_control':await bsSetupHelper['getGitMetaData'](),'observability_version':{'frameworkName':_0x7335ce[_0x489a93(0x18d)],'frameworkVersion':_0x7335ce['frameworkVersion'],'sdkVersion':bsSetupHelper[_0x489a93(0x1e1)]()},'product_map':_0x9ece8c[_0x489a93(0x1ab)](getProductMap,_0xbb589d)},_0x7f6dfb={};_0x7f6dfb['username']=_0xd2bdbf,_0x7f6dfb[_0x489a93(0x1a8)]=_0x5726ac;const _0x196a1d={'auth':_0x7f6dfb,'headers':_0x9ece8c[_0x489a93(0x1ab)](getDefaultHeaders,![])},_0x52fd6c=await _0x9ece8c[_0x489a93(0x1ed)](nodeRequest,_0x9ece8c[_0x489a93(0x1b5)],_0x9ece8c['RTGgl'],_0xe6c10f,_0x196a1d);_0x9ece8c['vOvLW'](debug,_0x9ece8c[_0x489a93(0x1e9)]);const _0x158447=_0x52fd6c[_0x489a93(0x1d0)];_0x158447[_0x489a93(0x184)]&&(process[_0x489a93(0x177)][_0x489a93(0x1a6)]=_0x158447['build_hashed_id']);if(_0x9ece8c['QVWlu'](isTestObservabilitySession)){process[_0x489a93(0x177)]['BS_TESTOPS_BUILD_COMPLETED']=_0x9ece8c[_0x489a93(0x1a7)];if(_0x158447[_0x489a93(0x1b8)]){process[_0x489a93(0x177)]['BS_TESTOPS_JWT']=_0x158447[_0x489a93(0x1b8)];const _0x2ac646={};_0x2ac646[_0x489a93(0x1a2)]=_0xd2bdbf,_0x2ac646[_0x489a93(0x1a8)]=_0x5726ac,process[_0x489a93(0x177)][_0x489a93(0x190)]=JSON[_0x489a93(0x169)](_0x2ac646);}_0x158447['build_hashed_id']&&(process[_0x489a93(0x177)][_0x489a93(0x180)]=_0x158447[_0x489a93(0x184)]),_0x158447[_0x489a93(0x181)]&&(process[_0x489a93(0x177)]['BS_TESTOPS_ALLOW_SCREENSHOTS']=_0x158447[_0x489a93(0x181)]['toString']());}return[_0x52fd6c[_0x489a93(0x1d0)][_0x489a93(0x1b8)],_0x52fd6c['data']['build_hashed_id'],_0x52fd6c['data'][_0x489a93(0x181)]];}catch(_0x4a55e4){process[_0x489a93(0x177)][_0x489a93(0x1a6)]=_0x9ece8c[_0x489a93(0x1ef)],process[_0x489a93(0x177)][_0x489a93(0x1d8)]=_0x9ece8c[_0x489a93(0x1c1)],process[_0x489a93(0x177)][_0x489a93(0x1be)]=_0x9ece8c[_0x489a93(0x1ef)],process['env']['BS_TESTOPS_BUILD_HASHED_ID']=_0x9ece8c['IyGEm'],process[_0x489a93(0x177)][_0x489a93(0x1b4)]=_0x9ece8c[_0x489a93(0x1ef)];_0x4a55e4[_0x489a93(0x1bb)]?_0x9ece8c['vOvLW'](debug,'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20'+_0x4a55e4[_0x489a93(0x1bb)][_0x489a93(0x1bc)]+'\x20'+_0x4a55e4[_0x489a93(0x1bb)]['statusText']+'\x20'+JSON['stringify'](_0x4a55e4[_0x489a93(0x1bb)][_0x489a93(0x1d0)])):_0x9ece8c[_0x489a93(0x16b)](debug,_0x489a93(0x178)+(_0x4a55e4[_0x489a93(0x1d2)]||_0x4a55e4));if(_0x4a55e4&&_0x4a55e4[_0x489a93(0x1d2)]){const _0x10ed69=_0x4a55e4[_0x489a93(0x1d2)];switch(_0x4a55e4[_0x489a93(0x1d9)]){case _0x9ece8c[_0x489a93(0x1c8)]:logger[_0x489a93(0x164)](_0x10ed69);break;case _0x9ece8c['rISFt']:logger['info'](_0x10ed69);break;case _0x9ece8c['zzJuv']:logger[_0x489a93(0x164)](_0x10ed69);break;default:logger[_0x489a93(0x164)](_0x10ed69);}}else console[_0x489a93(0x1ee)]('Data\x20upload\x20to\x20BrowserStack\x20Test\x20Observability\x20failed\x20due\x20to\x20'+_0x4a55e4);return[null,null,null];}}static async['waitForBuildStatus'](){const _0x15ebf1=a86_0x58d831,_0x405a05={'eXAIC':_0x15ebf1(0x1b0),'EdsCY':'false','qMGop':function(_0x48c69c,_0x3dc416){return _0x48c69c(_0x3dc416);}},_0x21342a=process[_0x15ebf1(0x177)][_0x15ebf1(0x1d8)];if([_0x405a05[_0x15ebf1(0x19a)],_0x405a05['EdsCY']][_0x15ebf1(0x18b)](_0x21342a))return;while([_0x405a05[_0x15ebf1(0x19a)],_0x405a05['EdsCY']]['includes'](_0x21342a)){await _0x405a05['qMGop'](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static async[a86_0x58d831(0x170)](_0x44a1cd,_0x122853=0x0){const _0x22f688=a86_0x58d831,_0x140970={'cnkzr':function(_0x24dac1,_0x24f841){return _0x24dac1+_0x24f841;},'GJZEK':_0x22f688(0x193),'cZUzp':'Test_End_Upload','vqEdK':_0x22f688(0x1cf),'cIUmu':'Log_Upload','HlIXJ':_0x22f688(0x1f1),'vLsmR':_0x22f688(0x1d6),'EDQPl':_0x22f688(0x19b),'UVEZT':function(_0x463779,_0x4a2bf1){return _0x463779(_0x4a2bf1);},'hCVUU':_0x22f688(0x15c),'QbILR':'uuid','vVdAT':_0x22f688(0x179),'bZhzL':function(_0x55ec37,_0x3f4dca,_0x3aa4e4){return _0x55ec37(_0x3f4dca,_0x3aa4e4);},'fKiUD':_0x22f688(0x170),'lyVgU':function(_0x313ac8,_0x44827b){return _0x313ac8===_0x44827b;},'eQGvx':function(_0x3ba615,_0x37a407){return _0x3ba615!==_0x37a407;},'PqWYP':'null','ZCuZr':function(_0x3a53d9,_0x1171a4){return _0x3a53d9===_0x1171a4;},'VYqDZ':_0x22f688(0x1b0),'FKGLE':function(_0x5d2dea){return _0x5d2dea();},'HneUO':function(_0xa73c24,_0x2d7404){return _0xa73c24(_0x2d7404);},'FzOnl':function(_0x5f74e9,_0x3512c1){return _0x5f74e9-_0x3512c1;},'OuINK':_0x22f688(0x164),'uAKGi':_0x22f688(0x188),'WLsfu':_0x22f688(0x1f0),'fjTPU':function(_0x2ee45c,_0x1f27a6,_0x4b57dc,_0x5523d8,_0x288602){return _0x2ee45c(_0x1f27a6,_0x4b57dc,_0x5523d8,_0x288602);},'JxmFj':_0x22f688(0x1ec),'hFjcb':function(_0x560baa,_0x128adb){return _0x560baa(_0x128adb);},'hfAyO':_0x22f688(0x17b),'IdjeJ':function(_0x39e31a,_0x529795){return _0x39e31a===_0x529795;},'NORFK':_0x22f688(0x15e),'XJTKF':_0x22f688(0x1ad),'MLtiz':function(_0x7ca9ea,_0x3462e8){return _0x7ca9ea(_0x3462e8);},'bEKfe':function(_0x20aca4,_0x32d47f){return _0x20aca4!==_0x32d47f;},'jsYDk':function(_0x549e70,_0x597c71){return _0x549e70>=_0x597c71;},'TxWOZ':function(_0x5ad67f,_0x3682e9){return _0x5ad67f(_0x3682e9);},'jPQxG':_0x22f688(0x1da),'ZbqAK':'false'},_0x2aada7={};_0x2aada7[_0x22f688(0x199)]=_0x140970[_0x22f688(0x18e)],_0x2aada7['TestRunFinished']=_0x140970[_0x22f688(0x1a3)],_0x2aada7[_0x22f688(0x1b2)]=_0x140970[_0x22f688(0x171)],_0x2aada7['LogCreated']=_0x140970[_0x22f688(0x1c5)],_0x2aada7[_0x22f688(0x1e6)]=_0x140970[_0x22f688(0x1a0)],_0x2aada7[_0x22f688(0x1e2)]=_0x140970[_0x22f688(0x1c7)],_0x2aada7[_0x22f688(0x18f)]=_0x140970[_0x22f688(0x19e)];const _0xf63529=_0x2aada7[_0x44a1cd[_0x22f688(0x1aa)]];_0x140970[_0x22f688(0x1c2)](trace,_0x22f688(0x175)+_0x44a1cd[_0x22f688(0x1aa)]+'\x27\x20'+(bsSetupHelper[_0x22f688(0x1d7)](_0x44a1cd,[_0x140970['hCVUU'],_0x140970[_0x22f688(0x1eb)]])||bsSetupHelper['nestedKeyValue'](_0x44a1cd,[_0x140970['vVdAT'],_0x140970[_0x22f688(0x1eb)]])));if(!_0x140970[_0x22f688(0x1e3)](shouldProcessEventForTesthub,_0x44a1cd['event_type'],_0x140970[_0x22f688(0x17c)]))return;_0x140970[_0x22f688(0x191)](_0x122853,0x0)&&process[_0x22f688(0x177)]['BROWSERSTACK_TESTHUB_JWT']&&_0x140970['eQGvx'](process[_0x22f688(0x177)][_0x22f688(0x186)],_0x140970['PqWYP'])&&(this[_0x22f688(0x1a4)][_0x22f688(0x1db)]+=0x1);if(_0x140970[_0x22f688(0x196)](process[_0x22f688(0x177)][_0x22f688(0x1d8)],_0x140970[_0x22f688(0x163)])||process[_0x22f688(0x177)][_0x22f688(0x1f2)]||_0x140970[_0x22f688(0x19c)](isPercyBuild)){if(_0x140970['ZCuZr'](process['env']['BROWSERSTACK_TESTHUB_JWT'],_0x140970['PqWYP'])){_0x140970['HneUO'](debug,_0x22f688(0x18c)+_0xf63529+_0x22f688(0x1d1)),this['requestQueueHandler'][_0x22f688(0x1db)]=Math[_0x22f688(0x1bd)](0x0,_0x140970[_0x22f688(0x162)](this[_0x22f688(0x1a4)][_0x22f688(0x1db)],0x1));const _0x3c604e={};return _0x3c604e[_0x22f688(0x1bc)]=_0x140970['OuINK'],_0x3c604e['message']=_0x140970[_0x22f688(0x1c9)],_0x3c604e;}let _0x1054f8=_0x44a1cd,_0x4d2a09=EVENT_ENDPOINT;this[_0x22f688(0x1a4)][_0x22f688(0x1bf)]();const {shouldProceed:_0x4c044b,proceedWithData:_0x42a402,proceedWithUrl:_0x559aac}=this['requestQueueHandler'][_0x22f688(0x15f)](_0x44a1cd);if(!_0x4c044b)return;else _0x42a402&&(_0x1054f8=_0x42a402,_0x4d2a09=_0x559aac);const _0x1fc7e0={};_0x1fc7e0[_0x22f688(0x1ce)]=_0x22f688(0x166)+process[_0x22f688(0x177)][_0x22f688(0x186)],_0x1fc7e0[_0x22f688(0x1cc)]=_0x140970['WLsfu'],_0x1fc7e0[_0x22f688(0x17f)]=_0x140970[_0x22f688(0x163)];const _0x30642e={};_0x30642e[_0x22f688(0x1a9)]=_0x1fc7e0;const _0x3b16ba=_0x30642e;try{const _0x43f478=await _0x140970[_0x22f688(0x192)](nodeRequest,_0x140970[_0x22f688(0x16d)],_0x4d2a09,_0x1054f8,_0x3b16ba);if(_0x43f478[_0x22f688(0x1d0)]['error']){const _0x2a151e={};_0x2a151e[_0x22f688(0x1d2)]=_0x43f478[_0x22f688(0x1d0)][_0x22f688(0x164)];throw _0x2a151e;}else{_0x140970[_0x22f688(0x172)](debug,(_0x140970[_0x22f688(0x197)](_0x4d2a09,this[_0x22f688(0x1a4)][_0x22f688(0x19d)])?_0xf63529:_0x140970[_0x22f688(0x1b1)])+'['+_0x122853+_0x22f688(0x19f)),this['requestQueueHandler'][_0x22f688(0x1db)]=Math[_0x22f688(0x1bd)](0x0,_0x140970[_0x22f688(0x162)](this[_0x22f688(0x1a4)][_0x22f688(0x1db)],_0x140970['IdjeJ'](_0x4d2a09,_0x140970['NORFK'])?0x1:_0x1054f8[_0x22f688(0x185)]));const _0x32e451={};return _0x32e451['status']=_0x140970[_0x22f688(0x1ba)],_0x32e451[_0x22f688(0x1d2)]='',_0x32e451;}}catch(_0x48a376){_0x48a376[_0x22f688(0x1bb)]?_0x140970[_0x22f688(0x1d3)](debug,_0x22f688(0x18c)+(_0x140970['eQGvx'](_0x4d2a09,this[_0x22f688(0x1a4)][_0x22f688(0x19d)])?_0xf63529:_0x140970[_0x22f688(0x1b1)])+_0x22f688(0x187)+_0x48a376[_0x22f688(0x1bb)][_0x22f688(0x1bc)]+'\x20'+_0x48a376[_0x22f688(0x1bb)][_0x22f688(0x183)]+'\x20'+JSON['stringify'](_0x48a376['response']['data'])):_0x140970[_0x22f688(0x198)](debug,_0x22f688(0x18c)+(_0x140970[_0x22f688(0x1dd)](_0x4d2a09,this[_0x22f688(0x1a4)][_0x22f688(0x19d)])?_0xf63529:_0x140970[_0x22f688(0x1b1)])+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20'+(_0x48a376[_0x22f688(0x1d2)]||_0x48a376));this[_0x22f688(0x1a4)]['pendingUploads']=Math[_0x22f688(0x1bd)](0x0,_0x140970['FzOnl'](this[_0x22f688(0x1a4)][_0x22f688(0x1db)],_0x140970[_0x22f688(0x191)](_0x4d2a09,_0x140970[_0x22f688(0x16e)])?0x1:_0x1054f8[_0x22f688(0x185)]));const _0x550ced={};return _0x550ced[_0x22f688(0x1bc)]=_0x140970[_0x22f688(0x176)],_0x550ced[_0x22f688(0x1d2)]=_0x48a376[_0x22f688(0x1d2)]||(_0x48a376['response']?_0x48a376['response']['status']+':'+_0x48a376[_0x22f688(0x1bb)][_0x22f688(0x183)]:_0x48a376),_0x550ced;}}else{if(_0x140970[_0x22f688(0x16c)](_0x122853,0x5)){_0x140970[_0x22f688(0x1b6)](debug,'EXCEPTION\x20IN\x20'+_0xf63529+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20'+_0xf63529+_0x22f688(0x1e7));_0x140970[_0x22f688(0x197)](process[_0x22f688(0x177)][_0x22f688(0x186)],_0x140970[_0x22f688(0x18a)])&&(this[_0x22f688(0x1a4)][_0x22f688(0x1db)]=Math[_0x22f688(0x1bd)](0x0,_0x140970['FzOnl'](this[_0x22f688(0x1a4)][_0x22f688(0x1db)],0x1)));const _0x1b7754={};return _0x1b7754[_0x22f688(0x1bc)]=_0x140970[_0x22f688(0x176)],_0x1b7754[_0x22f688(0x1d2)]=_0x140970['jPQxG'],_0x1b7754;}else _0x140970[_0x22f688(0x197)](process[_0x22f688(0x177)][_0x22f688(0x1d8)],_0x140970[_0x22f688(0x1df)])&&_0x140970[_0x22f688(0x1e3)](setTimeout,()=>{const _0x35b508=_0x22f688;this[_0x35b508(0x170)](_0x44a1cd,_0x140970[_0x35b508(0x1e4)](_0x122853,0x1));},0x3e8);}}}module[a86_0x58d831(0x1de)]=SessionHandler;
|