browserstack-node-sdk 1.34.47 → 1.34.48
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/precheck.js +1 -0
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -0
- 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/templates/nginx/pods-and-services.yaml +1 -1
- package/ats/src/templates/nginx/private-pods-and-services.yaml +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_0xfde7b9=a79_0x3e12;(function(_0x1d8d79,_0x404761){const _0x371dcf=a79_0x3e12,_0x559b62=_0x1d8d79();while(!![]){try{const _0x1f42b=parseInt(_0x371dcf(0x24b))/0x1*(parseInt(_0x371dcf(0x1dd))/0x2)+-parseInt(_0x371dcf(0x1ef))/0x3+parseInt(_0x371dcf(0x1b7))/0x4*(-parseInt(_0x371dcf(0x246))/0x5)+-parseInt(_0x371dcf(0x20c))/0x6+-parseInt(_0x371dcf(0x226))/0x7*(-parseInt(_0x371dcf(0x212))/0x8)+-parseInt(_0x371dcf(0x221))/0x9+parseInt(_0x371dcf(0x1df))/0xa;if(_0x1f42b===_0x404761)break;else _0x559b62['push'](_0x559b62['shift']());}catch(_0x44d817){_0x559b62['push'](_0x559b62['shift']());}}}(a79_0x2273,0x6f5ea));const fs=require('fs'),fsPromise=require(a79_0xfde7b9(0x23c)),{performance,PerformanceObserver}=require(a79_0xfde7b9(0x1f5)),path=require(a79_0xfde7b9(0x21a)),util=require(a79_0xfde7b9(0x24a)),logger=require('../logger')[a79_0xfde7b9(0x209)],{getProcessId,sleep,debug,getTestName}=require(a79_0xfde7b9(0x1d4));function a79_0x2273(){const _0x1193ed=['push','pushErrors','appendFileSync','utf-8','SGonz','disconnect','index','stopMonitoring','false','errorReportDirName','../processHelper','errors','apply','failure','kKgVH','then','QPmCj','finalizePerfMeasures','function','4WaQCjA','mkdirSync','21208070bAjfiZ','readFile','format','end','ePDVt','log','pPgqz','forEach','opndh','ymKLe','map','writeFileSync','mark','NKjJZ','toJSON','mkXSZ','1794954iZwEXt','writeFile','debug','bkPWB','slice','kdzXm','perf_hooks','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','stringify','BVWtE','all','IGKFG','eohtk','errorReportFileName','concat','EuDNq','sjxrh','exports','startMonitoring','reduce','entryType','/performance-report-','qXQYN','stopAndGenerate','isEnabled','details','winstonLogger','Time\x20for\x20','errorFile','2266626xMhWaW','entryTypes','-end','finalizeErrors','assign','browserStackCwd','26944cqMEPt','worker','jsonReportDirPath','/error-report-','name','WNnlJ','_errorEvents','jsonReportFileName','path','hmLMD','VSiIC','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','observe','Error\x20in\x20writing\x20html\x20','<tr><td>','8067222EhVpHR','buffered','Nsffw','bJXTG','error-report','1295TmgUjH','-start','readFileSync','_observer','IULEM','duration','measure','getEventsFromJSON','started','pushPerfMeasures','toString','length','VSJFq','calculateTimesFromMultipleFiles','meta','parse','readdirSync','__platformCaps','</td><td>','match','measures','eventsMap','fs/promises','VGvTc','join','getCleanedPerfEvents','splice','getEntries','Error\x20while\x20removing\x20files:\x20','finalize','generateJSON','\x20for\x20all\x20processes\x20is\x20','10UovcEP','JSmDq','jsonReportDirName','platform','util','73337WlAgNz','catch','</tbody></table></body></html>','Performance\x20report\x20is\x20at\x20','lhChw','zPKXm','calculateTimeFromEvents','getPerformance','WtajS','xeClK','1123888VujUlI','QJMZK','FqvJZ','mhxRD','performance-report','_measureEvents','_events','stack','bHLIx','RUoGb','env','success','unlinkSync','existsSync','Jtviq','start','.json','measureWrapper','UuDKa'];a79_0x2273=function(){return _0x1193ed;};return a79_0x2273();}class PerformanceTester{static [a79_0xfde7b9(0x229)];static [a79_0xfde7b9(0x1bd)]=[];static [a79_0xfde7b9(0x1bc)]=[];static [a79_0xfde7b9(0x218)]=[];static [a79_0xfde7b9(0x22e)]=![];static [a79_0xfde7b9(0x248)]=a79_0xfde7b9(0x1bb);static [a79_0xfde7b9(0x214)]=process[a79_0xfde7b9(0x1c1)]['browserStackCwd']?path[a79_0xfde7b9(0x23e)](process[a79_0xfde7b9(0x1c1)]['browserStackCwd'],this[a79_0xfde7b9(0x248)]):path[a79_0xfde7b9(0x23e)](process['cwd'](),a79_0xfde7b9(0x1e4),this['jsonReportDirName']);static ['errorReportDirName']=process[a79_0xfde7b9(0x1c1)]['browserStackCwd']?path[a79_0xfde7b9(0x23e)](process[a79_0xfde7b9(0x1c1)][a79_0xfde7b9(0x211)],'error-report'):path['join'](process['cwd'](),a79_0xfde7b9(0x225));static [a79_0xfde7b9(0x219)]=this[a79_0xfde7b9(0x214)]+a79_0xfde7b9(0x204)+getProcessId()+'.json';static [a79_0xfde7b9(0x1fc)]=this[a79_0xfde7b9(0x1d3)]+a79_0xfde7b9(0x215)+getProcessId()+'.json';static ['details']={};static [a79_0xfde7b9(0x23b)]={};static[a79_0xfde7b9(0x201)](_0x3eef67=this[a79_0xfde7b9(0x214)]+a79_0xfde7b9(0x204)+getProcessId()+'.json',_0x2e99da=this[a79_0xfde7b9(0x1d3)]+a79_0xfde7b9(0x215)+getProcessId()+a79_0xfde7b9(0x1c7)){const _0x20b4c2=a79_0xfde7b9,_0x36f678={};_0x36f678[_0x20b4c2(0x223)]=function(_0x1d2eb0,_0x265cb9){return _0x1d2eb0===_0x265cb9;},_0x36f678[_0x20b4c2(0x1d8)]=_0x20b4c2(0x22c),_0x36f678['eGVpJ']=function(_0x399042,_0xd6e08b){return _0x399042+_0xd6e08b;},_0x36f678[_0x20b4c2(0x1b5)]='Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20',_0x36f678[_0x20b4c2(0x21c)]=_0x20b4c2(0x1dc);const _0x26c8d1=_0x36f678;try{!fs[_0x20b4c2(0x1c4)](this[_0x20b4c2(0x214)])&&fs[_0x20b4c2(0x1de)](this['jsonReportDirPath']);}catch(_0x2fa18f){logger[_0x20b4c2(0x1f1)](_0x26c8d1['eGVpJ'](_0x26c8d1[_0x20b4c2(0x1b5)],_0x2fa18f));}if(this[_0x20b4c2(0x22e)]||!this['isEnabled']())return;this[_0x20b4c2(0x229)]=new PerformanceObserver(_0x4c4eb0=>{const _0x558c06=_0x20b4c2,_0x922f09={'bHLIx':function(_0x7209fa,_0x3811e4){const _0x2c7713=a79_0x3e12;return _0x26c8d1[_0x2c7713(0x223)](_0x7209fa,_0x3811e4);},'mkXSZ':_0x26c8d1[_0x558c06(0x1d8)]};_0x4c4eb0[_0x558c06(0x241)]()[_0x558c06(0x1e6)](_0x2e1f0f=>{const _0x581e08=_0x558c06;if(_0x922f09[_0x581e08(0x1bf)](_0x2e1f0f[_0x581e08(0x203)],_0x922f09[_0x581e08(0x1ee)])){let _0x562baf={};if(_0x2e1f0f[_0x581e08(0x1ed)])_0x562baf=_0x2e1f0f[_0x581e08(0x1ed)]();else for(const _0x3e871b in _0x2e1f0f){_0x562baf[_0x3e871b]=_0x2e1f0f[_0x3e871b];}this['details'][_0x2e1f0f[_0x581e08(0x216)]]&&(_0x562baf=Object[_0x581e08(0x210)](_0x562baf,this[_0x581e08(0x208)][_0x2e1f0f[_0x581e08(0x216)]])),delete this[_0x581e08(0x208)][_0x2e1f0f['name']],this[_0x581e08(0x1bc)][_0x581e08(0x1ca)](_0x562baf);}else this[_0x581e08(0x1bd)][_0x581e08(0x1ca)](_0x2e1f0f);});});const _0x5e633b={};_0x5e633b[_0x20b4c2(0x222)]=!![],_0x5e633b[_0x20b4c2(0x20d)]=[_0x26c8d1[_0x20b4c2(0x21c)],_0x26c8d1[_0x20b4c2(0x1d8)]],this[_0x20b4c2(0x229)][_0x20b4c2(0x21e)](_0x5e633b),this[_0x20b4c2(0x22e)]=!![],this[_0x20b4c2(0x219)]=_0x3eef67,this[_0x20b4c2(0x1fc)]=_0x2e99da;}static[a79_0xfde7b9(0x1b4)](){return performance;}static[a79_0xfde7b9(0x1b3)](_0x1286bc,_0x317e7c){const _0x1a7819=a79_0xfde7b9,_0x2803e3={};_0x2803e3[_0x1a7819(0x1e8)]=function(_0x1a9927,_0x53847d){return _0x1a9927+_0x53847d;},_0x2803e3[_0x1a7819(0x1f4)]=function(_0x3253e2,_0x26a8ff){return _0x3253e2||_0x26a8ff;},_0x2803e3[_0x1a7819(0x1e7)]=function(_0x366ab7,_0x2932e4){return _0x366ab7===_0x2932e4;};const _0x5bb507=_0x2803e3,_0x5dac09={};if(!_0x1286bc||_0x5bb507[_0x1a7819(0x1e7)](_0x1286bc[_0x1a7819(0x231)],0x0))return;_0x1286bc['map'](_0x1bde06=>{const _0x32d47b=_0x1a7819;!_0x5dac09[_0x1bde06[_0x32d47b(0x216)]]&&(_0x5dac09[_0x1bde06[_0x32d47b(0x216)]]=0x0),_0x5dac09[_0x1bde06[_0x32d47b(0x216)]]+=_0x1bde06[_0x32d47b(0x22b)];});const _0x21252b=_0x317e7c[_0x1a7819(0x202)]((_0x4f302a,_0x228fe4)=>{const _0x1a01ea=_0x1a7819;return _0x5bb507[_0x1a01ea(0x1e8)](_0x5dac09[_0x228fe4],_0x5bb507[_0x1a01ea(0x1f4)](_0x4f302a,0x0));},0x0);return _0x21252b;}static async[a79_0xfde7b9(0x233)](_0x508ca1,_0x1fcdd9){const _0x4c829e=a79_0xfde7b9,_0x3fe6e8={'RkPLS':function(_0x32fb3f,_0x403e21){return _0x32fb3f+_0x403e21;},'FqvJZ':function(_0x289bc5,_0x95a7b9){return _0x289bc5||_0x95a7b9;},'YPAFe':function(_0x3946bd,_0x3bb0b2){return _0x3946bd===_0x3bb0b2;},'BVWtE':function(_0x2f49d3,_0x18cd7a){return _0x2f49d3(_0x18cd7a);}};if(!_0x508ca1||_0x3fe6e8['YPAFe'](_0x508ca1[_0x4c829e(0x231)],0x0))return 0x0;const _0x1bdbde=[];for(const _0x37eac3 of _0x508ca1){const _0x28ca4a=path['join']('.',_0x37eac3);try{const _0x445ebd=this['getEventsFromJSON'](_0x28ca4a);_0x445ebd[_0x4c829e(0x1e9)](_0x2d4479=>{const _0xfd4f7a=_0x4c829e;!_0x1bdbde[_0x2d4479[_0xfd4f7a(0x216)]]&&(_0x1bdbde[_0x2d4479[_0xfd4f7a(0x216)]]=0x0),_0x1bdbde[_0x2d4479[_0xfd4f7a(0x216)]]+=_0x2d4479['duration'];});}catch(_0x120502){_0x3fe6e8[_0x4c829e(0x1f8)](debug,'Error\x20in\x20doing\x20csv\x20operations:\x20'+_0x120502['toString']());}}const _0x3036bb=_0x1fcdd9['reduce']((_0x3cb51f,_0x46700c)=>{const _0x672748=_0x4c829e;return _0x3fe6e8['RkPLS'](_0x1bdbde[_0x46700c],_0x3fe6e8[_0x672748(0x1b9)](_0x3cb51f,0x0));},0x0);return _0x3fe6e8[_0x4c829e(0x1f8)](debug,_0x4c829e(0x20a)+_0x1fcdd9+_0x4c829e(0x245)+_0x3036bb),_0x3036bb;}static[a79_0xfde7b9(0x22d)](_0x39b4d0){const _0x1c6d4b=a79_0xfde7b9;if(!fs[_0x1c6d4b(0x1c4)](_0x39b4d0))return[];return JSON[_0x1c6d4b(0x235)](fs[_0x1c6d4b(0x228)](_0x39b4d0)[_0x1c6d4b(0x230)]());}static async[a79_0xfde7b9(0x206)](_0x59b70a='performance-own.html',_0x46aa8b=null){const _0x732d97=a79_0xfde7b9,_0x3e0089={'ePDVt':function(_0x4b74e5,_0x5b670f){return _0x4b74e5(_0x5b670f);}};if(!this['started'])return;await _0x3e0089[_0x732d97(0x1e3)](sleep,0x1e),this[_0x732d97(0x229)][_0x732d97(0x1cf)](),this[_0x732d97(0x22e)]=![],this[_0x732d97(0x244)](this['_events']);const _0x1b2895=this['generateHTMLReport'](this[_0x732d97(0x1bd)]),_0x27ae9b=path[_0x732d97(0x23e)](process['cwd'](),_0x59b70a);fs[_0x732d97(0x1f0)](_0x27ae9b,_0x1b2895,_0x24232a=>{const _0x503dae=_0x732d97;if(_0x24232a){_0x3e0089[_0x503dae(0x1e3)](debug,_0x503dae(0x21f)+_0x24232a[_0x503dae(0x230)]());return;}_0x3e0089[_0x503dae(0x1e3)](debug,_0x503dae(0x1b0)+_0x27ae9b);});if(_0x46aa8b)return this['calculateTimeFromEvents'](this[_0x732d97(0x1bd)],_0x46aa8b);}static['generateHTMLReport'](_0x37c6e6){const _0x53f413=a79_0xfde7b9,_0x42aaea={};_0x42aaea[_0x53f413(0x1b1)]=_0x53f413(0x21d),_0x42aaea[_0x53f413(0x1ce)]='<h1>Performance\x20Report</h1>',_0x42aaea[_0x53f413(0x1ba)]=_0x53f413(0x1f6),_0x42aaea[_0x53f413(0x1ec)]=_0x53f413(0x24d);const _0x32e7f2=_0x42aaea;let _0x3f0c8d=_0x32e7f2[_0x53f413(0x1b1)];return _0x3f0c8d+=_0x32e7f2[_0x53f413(0x1ce)],_0x3f0c8d+=_0x32e7f2['mhxRD'],_0x37c6e6['forEach'](_0x5902b9=>{const _0x22ff0d=_0x53f413;_0x3f0c8d+=_0x22ff0d(0x220)+_0x5902b9['name']+_0x22ff0d(0x238)+_0x5902b9[_0x22ff0d(0x22b)]+'</td></tr>';}),_0x3f0c8d+=_0x32e7f2[_0x53f413(0x1ec)],_0x3f0c8d;}static['generateJSON'](_0x73f6fc){const _0x27aaeb=a79_0xfde7b9;if(!this[_0x27aaeb(0x219)])return;const _0x7aaede={};_0x73f6fc[_0x27aaeb(0x1e9)](_0x45ebf2=>{const _0x25516b=_0x27aaeb;!_0x7aaede[_0x45ebf2[_0x25516b(0x216)]]&&(_0x7aaede[_0x45ebf2[_0x25516b(0x216)]]=0x0),_0x7aaede[_0x45ebf2[_0x25516b(0x216)]]+=_0x45ebf2[_0x25516b(0x22b)];});const _0x290771=Object['entries'](_0x7aaede)[_0x27aaeb(0x1e9)](([_0x5a564c,_0x520be7])=>{const _0x2714eb=_0x27aaeb,_0x3597c1={};return _0x3597c1[_0x2714eb(0x216)]=_0x5a564c,_0x3597c1[_0x2714eb(0x22b)]=_0x520be7,_0x3597c1;});fs[_0x27aaeb(0x1ea)](this['jsonReportFileName'],JSON[_0x27aaeb(0x1f7)](_0x290771));}static['isEnabled'](){const _0x275896=a79_0xfde7b9,_0x425713={};_0x425713[_0x275896(0x1b6)]=function(_0xc100d0,_0x11b35f){return _0xc100d0===_0x11b35f;},_0x425713[_0x275896(0x1fb)]=_0x275896(0x1d2);const _0x32bea3=_0x425713;return!_0x32bea3['xeClK'](process[_0x275896(0x1c1)]['BROWSERSTACK_SDK_INSTRUMENTATION'],_0x32bea3[_0x275896(0x1fb)]);}static[a79_0xfde7b9(0x22c)](_0xe1252e,_0x2391de,_0x530c6a=null,_0x33c0e6={},_0x5f7285=null){const _0x582395=a79_0xfde7b9,_0x2d6b1c={'bJXTG':function(_0x42ae3b,_0x54f5cd){return _0x42ae3b(_0x54f5cd);},'pPgqz':function(_0xc8c284,_0xdaf8d){return _0xc8c284 instanceof _0xdaf8d;}};try{if(this[_0x582395(0x22e)]&&this[_0x582395(0x207)]()){let _0x36c75f=_0xe1252e;_0x530c6a&&(_0x36c75f=_0xe1252e+'['+JSON[_0x582395(0x1f7)](_0x530c6a)+']');PerformanceTester['start'](_0x36c75f),this[_0x582395(0x208)]&&(this[_0x582395(0x208)][_0x36c75f]=_0x33c0e6);try{const _0x52da7f=_0x2391de[_0x582395(0x1d6)](null,_0x5f7285);if(_0x2d6b1c[_0x582395(0x1e5)](_0x52da7f,Promise))return new Promise((_0x585a21,_0xad26e6)=>{const _0x4f85bb=_0x582395,_0x408617={'zPKXm':function(_0x41c470,_0x5f0543){const _0x13ddd9=a79_0x3e12;return _0x2d6b1c[_0x13ddd9(0x224)](_0x41c470,_0x5f0543);}};_0x52da7f[_0x4f85bb(0x1d9)](_0x5d9266=>{const _0x513f94=_0x4f85bb;PerformanceTester['end'](_0x36c75f),_0x408617[_0x513f94(0x1b2)](_0x585a21,_0x5d9266);})[_0x4f85bb(0x24c)](_0x161500=>{const _0x3366c1=_0x4f85bb;PerformanceTester[_0x3366c1(0x1e2)](_0x36c75f,![],util[_0x3366c1(0x1e1)](_0x161500)),_0x2d6b1c[_0x3366c1(0x224)](_0xad26e6,_0x161500);});});;return PerformanceTester[_0x582395(0x1e2)](_0x36c75f),_0x52da7f;}catch(_0x39d9a0){PerformanceTester[_0x582395(0x1e2)](_0x36c75f,![],util[_0x582395(0x1e1)](_0x39d9a0));throw _0x39d9a0;}};return _0x2391de['apply'](null,_0x5f7285);}catch(_0xa24fff){return _0x2391de['apply'](null,_0x5f7285);}}static[a79_0xfde7b9(0x1c8)](_0x150ae2,_0x3ac32b,_0x47ecf9={}){const _0x24ce9a=a79_0xfde7b9,_0x37516f={'VGvTc':function(_0x1c6ee4){return _0x1c6ee4();},'VSJFq':function(_0xc28766){return _0xc28766();}},_0x1d8b39=this;return _0x47ecf9[_0x24ce9a(0x213)]=_0x37516f[_0x24ce9a(0x23d)](getProcessId),_0x47ecf9['testName']=_0x37516f[_0x24ce9a(0x232)](getTestName),_0x47ecf9[_0x24ce9a(0x249)]=global[_0x24ce9a(0x237)]&&global[_0x24ce9a(0x237)][_0x24ce9a(0x1d0)],function(){const _0x30b846=_0x24ce9a,_0xfb35a9=[_0x150ae2,_0x3ac32b,null,_0x47ecf9][_0x30b846(0x1fd)](arguments);return _0x1d8b39[_0x30b846(0x22c)]['apply'](_0x1d8b39,_0xfb35a9);};}static[a79_0xfde7b9(0x23f)](){const _0x384888=a79_0xfde7b9,_0x4c088f=/(^.*)\[(.*)\]$/,_0x359fae={},_0x5cf3ee={},_0x503a3c=[],_0x436cd1=this[_0x384888(0x1bc)][_0x384888(0x240)](0x0,this[_0x384888(0x1bc)]['length']);for(const _0x3ff490 of _0x436cd1){const _0x24b513=_0x3ff490[_0x384888(0x216)][_0x384888(0x239)](_0x4c088f),_0x5a762d=Object['assign']({},_0x3ff490);_0x24b513&&(_0x5a762d[_0x384888(0x216)]=_0x24b513[0x1],_0x5a762d[_0x384888(0x234)]=JSON['parse'](_0x24b513[0x2])),_0x503a3c[_0x384888(0x1ca)](_0x5a762d);}return _0x503a3c;}static[a79_0xfde7b9(0x22f)](){const _0x3150bc=a79_0xfde7b9,_0x5925b9={};_0x5925b9[_0x3150bc(0x1da)]=function(_0x2affa7,_0xda3c38){return _0x2affa7+_0xda3c38;},_0x5925b9[_0x3150bc(0x247)]=_0x3150bc(0x242),_0x5925b9[_0x3150bc(0x217)]=function(_0x2cb320,_0x1cdbcc){return _0x2cb320===_0x1cdbcc;};const _0x92d6c8=_0x5925b9;try{if(fs[_0x3150bc(0x1c4)](this['jsonReportDirPath'])){const _0x16ea00=fs[_0x3150bc(0x236)](this[_0x3150bc(0x214)]);for(const _0x375786 of _0x16ea00){fs[_0x3150bc(0x1c3)](path[_0x3150bc(0x23e)](this[_0x3150bc(0x214)],_0x375786));}}}catch(_0x155114){logger[_0x3150bc(0x1f1)](_0x92d6c8[_0x3150bc(0x1da)](_0x92d6c8['JSmDq'],_0x155114));}if(_0x92d6c8[_0x3150bc(0x217)](this[_0x3150bc(0x1bc)][_0x3150bc(0x231)],0x0))return;const _0x32240a=this[_0x3150bc(0x23f)](),_0x16378c=JSON['stringify'](_0x32240a),_0x21b048=_0x92d6c8['QPmCj'](_0x16378c[_0x3150bc(0x1f3)](0x1,-0x1),',');fs[_0x3150bc(0x1cc)](this[_0x3150bc(0x219)],_0x21b048);}static async[a79_0xfde7b9(0x1db)](){const _0x49dbbf=a79_0xfde7b9,_0x3e5bec={};_0x3e5bec['EuDNq']=function(_0x11b3a9,_0x9d0c57){return _0x11b3a9===_0x9d0c57;},_0x3e5bec[_0x49dbbf(0x1f2)]=function(_0x36a7ff,_0x4bae38){return _0x36a7ff>_0x4bae38;};const _0x4b9049=_0x3e5bec;if(!this[_0x49dbbf(0x22e)]||_0x4b9049[_0x49dbbf(0x1fe)](this[_0x49dbbf(0x1bc)][_0x49dbbf(0x231)],0x0))return[];if(!fs[_0x49dbbf(0x1c4)](this[_0x49dbbf(0x214)]))return this[_0x49dbbf(0x1bc)];const _0x4f0d80=(await fsPromise['readdir'](this[_0x49dbbf(0x214)]))[_0x49dbbf(0x1e9)](_0x3828b8=>path['resolve'](this[_0x49dbbf(0x214)],_0x3828b8));let _0x18ea7f=(await Promise[_0x49dbbf(0x1f9)](_0x4f0d80[_0x49dbbf(0x1e9)](_0x112b49=>fsPromise[_0x49dbbf(0x1e0)](_0x112b49,_0x49dbbf(0x1cd)))))[_0x49dbbf(0x1e9)](_0x5b2666=>'['+_0x5b2666[_0x49dbbf(0x1f3)](0x0,-0x1)+']')[_0x49dbbf(0x1e9)](_0x518bbe=>JSON[_0x49dbbf(0x235)](_0x518bbe))['flat']();return _0x4b9049['bkPWB'](this[_0x49dbbf(0x1bc)][_0x49dbbf(0x231)],0x0)&&(_0x18ea7f=_0x18ea7f[_0x49dbbf(0x1fd)](this[_0x49dbbf(0x23f)]())),this[_0x49dbbf(0x229)][_0x49dbbf(0x1cf)](),_0x18ea7f;}static[a79_0xfde7b9(0x1cb)](){const _0x481d1a=a79_0xfde7b9,_0xcd2f82={};_0xcd2f82[_0x481d1a(0x21b)]=function(_0x374ac6,_0x30c9c6){return _0x374ac6===_0x30c9c6;},_0xcd2f82[_0x481d1a(0x22a)]=function(_0x3ed6ed,_0x1210aa){return _0x3ed6ed+_0x1210aa;};const _0x3998e7=_0xcd2f82;if(_0x3998e7[_0x481d1a(0x21b)](this[_0x481d1a(0x218)][_0x481d1a(0x231)],0x0))return;const _0x1f022b=JSON['stringify'](this['_errorEvents']),_0x1541a8=_0x3998e7[_0x481d1a(0x22a)](_0x1f022b[_0x481d1a(0x1f3)](0x1,-0x1),',');fs[_0x481d1a(0x1cc)](this[_0x481d1a(0x20b)],_0x1541a8);}static[a79_0xfde7b9(0x20f)](){const _0x3e07de=a79_0xfde7b9,_0x2b4669={};_0x2b4669[_0x3e07de(0x1c9)]=function(_0x1859c3,_0x2fe7d2){return _0x1859c3>_0x2fe7d2;};const _0x59bedf=_0x2b4669;if(!fs['existsSync'](this[_0x3e07de(0x1fc)]))return this[_0x3e07de(0x218)];let _0x189a07=fs[_0x3e07de(0x228)](this['errorReportFileName'])[_0x3e07de(0x230)]();_0x189a07='['+_0x189a07[_0x3e07de(0x1f3)](0x0,-0x1)+']';let _0x261b3c=JSON[_0x3e07de(0x235)](_0x189a07);return _0x59bedf[_0x3e07de(0x1c9)](this[_0x3e07de(0x218)][_0x3e07de(0x231)],0x0)&&(_0x261b3c=_0x261b3c[_0x3e07de(0x1fd)](this[_0x3e07de(0x218)])),fs[_0x3e07de(0x1c3)](this[_0x3e07de(0x1fc)]),_0x261b3c;}static['captureError'](_0x2b82f3){const _0x1fe05c=a79_0xfde7b9;if(!this[_0x1fe05c(0x207)]())return;this[_0x1fe05c(0x218)][_0x1fe05c(0x1ca)]({'message':_0x2b82f3['message'],'trace':_0x2b82f3[_0x1fe05c(0x1be)],'code':_0x2b82f3['code']||null,'time':new Date()});}static[a79_0xfde7b9(0x1d1)](){const _0x1f385d=a79_0xfde7b9;try{if(!this[_0x1f385d(0x207)]())return;this[_0x1f385d(0x229)][_0x1f385d(0x1cf)](),this[_0x1f385d(0x22f)](),this[_0x1f385d(0x1cb)]();}catch(_0x218a60){logger[_0x1f385d(0x1f1)]('Error\x20stopping\x20monitoring\x20'+util[_0x1f385d(0x1e1)](_0x218a60));}}static async[a79_0xfde7b9(0x243)](){const _0x112ccb=a79_0xfde7b9,_0x11137a={'sjxrh':function(_0x48f4f1,_0x340f98){return _0x48f4f1(_0x340f98);}};await _0x11137a[_0x112ccb(0x1ff)](sleep,0x1e);const _0x1ec857=await this[_0x112ccb(0x1db)](),_0x5354e2=this[_0x112ccb(0x20f)]();if(!this[_0x112ccb(0x207)]()){const _0x47d809={};return _0x47d809[_0x112ccb(0x23a)]=[],_0x47d809[_0x112ccb(0x1d5)]=[],_0x47d809;}const _0x17a431={};return _0x17a431[_0x112ccb(0x23a)]=_0x1ec857,_0x17a431['errors']=_0x5354e2,_0x17a431;}static[a79_0xfde7b9(0x1c6)](_0x2bc0e0){const _0x381489=a79_0xfde7b9,_0x2ae450={};_0x2ae450[_0x381489(0x1c5)]=function(_0x1997e3,_0x205d93){return _0x1997e3+_0x205d93;},_0x2ae450[_0x381489(0x1fa)]=_0x381489(0x227);const _0x23671b=_0x2ae450,_0x2fa5d0=_0x23671b[_0x381489(0x1c5)](_0x2bc0e0,_0x23671b[_0x381489(0x1fa)]);if(this['eventsMap'][_0x2fa5d0])return;performance[_0x381489(0x1eb)](_0x2fa5d0),this[_0x381489(0x23b)][_0x2fa5d0]=0x1;}static[a79_0xfde7b9(0x1e2)](_0x4474de,_0x27e8fe=!![],_0x53178c=null,_0x18fc0e={}){const _0x17a64b=a79_0xfde7b9,_0x5e9082={'RUoGb':function(_0x53cfab,_0x2ccacd){return _0x53cfab+_0x2ccacd;},'qXQYN':_0x17a64b(0x20e),'ZiTFU':function(_0x50e9aa,_0x174466){return _0x50e9aa+_0x174466;},'IFAiN':_0x17a64b(0x227),'QJMZK':function(_0x2a4dbb){return _0x2a4dbb();}};performance['mark'](_0x5e9082['RUoGb'](_0x4474de,_0x5e9082['qXQYN'])),performance[_0x17a64b(0x22c)](_0x4474de,_0x5e9082['ZiTFU'](_0x4474de,_0x5e9082['IFAiN']),_0x5e9082[_0x17a64b(0x1c0)](_0x4474de,_0x5e9082[_0x17a64b(0x205)]));const _0x4e5bc1={};_0x4e5bc1[_0x17a64b(0x1c2)]=_0x27e8fe,_0x4e5bc1[_0x17a64b(0x1d7)]=_0x53178c,this[_0x17a64b(0x208)][_0x4474de]=Object['assign'](_0x4e5bc1,Object['assign'](Object[_0x17a64b(0x210)]({'worker':_0x5e9082[_0x17a64b(0x1b8)](getProcessId),'platform':global[_0x17a64b(0x237)]&&global[_0x17a64b(0x237)]['index'],'testName':_0x5e9082[_0x17a64b(0x1b8)](getTestName)},_0x18fc0e),this['details'][_0x4474de]||{}));}}function a79_0x3e12(_0x52d016,_0x54e917){const _0x2273f4=a79_0x2273();return a79_0x3e12=function(_0x3e12e6,_0x42e2e8){_0x3e12e6=_0x3e12e6-0x1b0;let _0x1a4091=_0x2273f4[_0x3e12e6];return _0x1a4091;},a79_0x3e12(_0x52d016,_0x54e917);}module[a79_0xfde7b9(0x200)]=PerformanceTester;
|
|
1
|
+
const a79_0x18eb8c=a79_0x2c47;function a79_0x2c47(_0x45f8f1,_0x32f302){const _0x572df6=a79_0x572d();return a79_0x2c47=function(_0x2c4755,_0x4e27f6){_0x2c4755=_0x2c4755-0xa5;let _0x1cc4d7=_0x572df6[_0x2c4755];return _0x1cc4d7;},a79_0x2c47(_0x45f8f1,_0x32f302);}(function(_0x153fa9,_0x9d17de){const _0x5c6989=a79_0x2c47,_0x1514a3=_0x153fa9();while(!![]){try{const _0x28bea8=-parseInt(_0x5c6989(0x134))/0x1*(-parseInt(_0x5c6989(0x143))/0x2)+parseInt(_0x5c6989(0xd6))/0x3*(-parseInt(_0x5c6989(0x122))/0x4)+-parseInt(_0x5c6989(0xf5))/0x5+-parseInt(_0x5c6989(0xad))/0x6*(-parseInt(_0x5c6989(0xbc))/0x7)+-parseInt(_0x5c6989(0x110))/0x8*(-parseInt(_0x5c6989(0xdf))/0x9)+parseInt(_0x5c6989(0x108))/0xa+parseInt(_0x5c6989(0xcb))/0xb*(-parseInt(_0x5c6989(0xeb))/0xc);if(_0x28bea8===_0x9d17de)break;else _0x1514a3['push'](_0x1514a3['shift']());}catch(_0x234892){_0x1514a3['push'](_0x1514a3['shift']());}}}(a79_0x572d,0x2c06e));const fs=require('fs'),fsPromise=require(a79_0x18eb8c(0xc2)),{performance,PerformanceObserver}=require(a79_0x18eb8c(0xe1)),path=require(a79_0x18eb8c(0xde)),util=require(a79_0x18eb8c(0x107)),logger=require('../logger')[a79_0x18eb8c(0x10d)],{getProcessId,sleep,debug,getTestName}=require(a79_0x18eb8c(0xd1));class PerformanceTester{static [a79_0x18eb8c(0x140)];static ['_events']=[];static ['_measureEvents']=[];static [a79_0x18eb8c(0x12b)]=[];static [a79_0x18eb8c(0x12d)]=![];static [a79_0x18eb8c(0x100)]=a79_0x18eb8c(0x11a);static [a79_0x18eb8c(0x144)]=process[a79_0x18eb8c(0xda)]['browserStackCwd']?path['join'](process[a79_0x18eb8c(0xda)][a79_0x18eb8c(0xb3)],this[a79_0x18eb8c(0x100)]):path[a79_0x18eb8c(0x11d)](process[a79_0x18eb8c(0x12e)](),a79_0x18eb8c(0x125),this['jsonReportDirName']);static ['errorReportDirName']=process[a79_0x18eb8c(0xda)]['browserStackCwd']?path[a79_0x18eb8c(0x11d)](process['env'][a79_0x18eb8c(0xb3)],'error-report'):path['join'](process[a79_0x18eb8c(0x12e)](),a79_0x18eb8c(0xf6));static ['jsonReportFileName']=this[a79_0x18eb8c(0x144)]+a79_0x18eb8c(0x12c)+getProcessId()+a79_0x18eb8c(0x145);static [a79_0x18eb8c(0xbe)]=this[a79_0x18eb8c(0xa7)]+a79_0x18eb8c(0xe5)+getProcessId()+'.json';static [a79_0x18eb8c(0x133)]={};static [a79_0x18eb8c(0xc0)]={};static[a79_0x18eb8c(0x126)](_0x2c5ed1=this['jsonReportDirPath']+a79_0x18eb8c(0x12c)+getProcessId()+a79_0x18eb8c(0x145),_0x40ef04=this[a79_0x18eb8c(0xa7)]+'/error-report-'+getProcessId()+a79_0x18eb8c(0x145)){const _0x4f830b=a79_0x18eb8c,_0x403651={};_0x403651[_0x4f830b(0x118)]=function(_0x60bcd1,_0x597da6){return _0x60bcd1===_0x597da6;},_0x403651[_0x4f830b(0xee)]=_0x4f830b(0xf9),_0x403651[_0x4f830b(0x10f)]=function(_0x27f6f6,_0xa1c985){return _0x27f6f6+_0xa1c985;},_0x403651[_0x4f830b(0xab)]=_0x4f830b(0xdb),_0x403651[_0x4f830b(0x141)]=_0x4f830b(0xc8);const _0x12ec9b=_0x403651;try{!fs[_0x4f830b(0xfa)](this[_0x4f830b(0x144)])&&fs[_0x4f830b(0xd3)](this[_0x4f830b(0x144)]);}catch(_0xc00024){logger[_0x4f830b(0xb7)](_0x12ec9b['ozBrP'](_0x12ec9b[_0x4f830b(0xab)],_0xc00024));}if(this[_0x4f830b(0x12d)]||!this[_0x4f830b(0xd2)]())return;this[_0x4f830b(0x140)]=new PerformanceObserver(_0x35976c=>{const _0x29db7c=_0x4f830b;_0x35976c[_0x29db7c(0xfb)]()[_0x29db7c(0xaa)](_0x2eb9d0=>{const _0x46d763=_0x29db7c;if(_0x12ec9b[_0x46d763(0x118)](_0x2eb9d0[_0x46d763(0xa6)],_0x12ec9b['JVlsr'])){let _0x2fb746={};if(_0x2eb9d0['toJSON'])_0x2fb746=_0x2eb9d0[_0x46d763(0xc1)]();else for(const _0x2498ce in _0x2eb9d0){_0x2fb746[_0x2498ce]=_0x2eb9d0[_0x2498ce];}this[_0x46d763(0x133)][_0x2eb9d0[_0x46d763(0xd8)]]&&(_0x2fb746=Object['assign'](_0x2fb746,this['details'][_0x2eb9d0[_0x46d763(0xd8)]])),delete this['details'][_0x2eb9d0['name']],this[_0x46d763(0xcd)][_0x46d763(0xd9)](_0x2fb746);}else this['_events'][_0x46d763(0xd9)](_0x2eb9d0);});});const _0x421ab6={};_0x421ab6[_0x4f830b(0xd5)]=!![],_0x421ab6[_0x4f830b(0x121)]=[_0x12ec9b[_0x4f830b(0x141)],_0x12ec9b[_0x4f830b(0xee)]],this[_0x4f830b(0x140)][_0x4f830b(0x103)](_0x421ab6),this[_0x4f830b(0x12d)]=!![],this[_0x4f830b(0xe2)]=_0x2c5ed1,this[_0x4f830b(0xbe)]=_0x40ef04;}static[a79_0x18eb8c(0xf2)](){return performance;}static[a79_0x18eb8c(0xbf)](_0xdca4f9,_0x1e59a3){const _0x794e0e=a79_0x18eb8c,_0xacb32={};_0xacb32[_0x794e0e(0x127)]=function(_0x2d94ce,_0x46b9d5){return _0x2d94ce+_0x46b9d5;},_0xacb32[_0x794e0e(0x105)]=function(_0xaf7f4b,_0xc2a17c){return _0xaf7f4b||_0xc2a17c;},_0xacb32[_0x794e0e(0xfd)]=function(_0x4c5100,_0xd2a3ee){return _0x4c5100===_0xd2a3ee;};const _0xb100b3=_0xacb32,_0x443d32={};if(!_0xdca4f9||_0xb100b3[_0x794e0e(0xfd)](_0xdca4f9[_0x794e0e(0x120)],0x0))return;_0xdca4f9[_0x794e0e(0xe8)](_0x276c68=>{const _0x29113d=_0x794e0e;!_0x443d32[_0x276c68['name']]&&(_0x443d32[_0x276c68[_0x29113d(0xd8)]]=0x0),_0x443d32[_0x276c68[_0x29113d(0xd8)]]+=_0x276c68['duration'];});const _0x434efd=_0x1e59a3[_0x794e0e(0x106)]((_0x2a380f,_0x139ed3)=>{const _0x5eafa5=_0x794e0e;return _0xb100b3['TaKOr'](_0x443d32[_0x139ed3],_0xb100b3[_0x5eafa5(0x105)](_0x2a380f,0x0));},0x0);return _0x434efd;}static async['calculateTimesFromMultipleFiles'](_0x4914b4,_0x2e4501){const _0x58cf24=a79_0x18eb8c,_0x34105e={'lhcHZ':function(_0x4a8335,_0x18c913){return _0x4a8335+_0x18c913;},'SAUDS':function(_0x32c4ab,_0x451263){return _0x32c4ab||_0x451263;},'oFNMr':function(_0x2cb90a,_0x4a6cfa){return _0x2cb90a===_0x4a6cfa;},'QIleQ':function(_0x19dfc2,_0x9ccdba){return _0x19dfc2(_0x9ccdba);},'hURVw':function(_0x1bb559,_0x5523ab){return _0x1bb559(_0x5523ab);}};if(!_0x4914b4||_0x34105e[_0x58cf24(0x137)](_0x4914b4[_0x58cf24(0x120)],0x0))return 0x0;const _0x820ed=[];for(const _0x1443bd of _0x4914b4){const _0x19a75d=path[_0x58cf24(0x11d)]('.',_0x1443bd);try{const _0xa59d62=this[_0x58cf24(0xf7)](_0x19a75d);_0xa59d62[_0x58cf24(0xe8)](_0x13fa8a=>{const _0x1d1b3a=_0x58cf24;!_0x820ed[_0x13fa8a['name']]&&(_0x820ed[_0x13fa8a[_0x1d1b3a(0xd8)]]=0x0),_0x820ed[_0x13fa8a[_0x1d1b3a(0xd8)]]+=_0x13fa8a[_0x1d1b3a(0xf0)];});}catch(_0x1f40a6){_0x34105e[_0x58cf24(0x138)](debug,_0x58cf24(0xef)+_0x1f40a6[_0x58cf24(0xb8)]());}}const _0x511515=_0x2e4501[_0x58cf24(0x106)]((_0x522a43,_0x1b9f94)=>{const _0x2ebf36=_0x58cf24;return _0x34105e[_0x2ebf36(0x135)](_0x820ed[_0x1b9f94],_0x34105e[_0x2ebf36(0x13b)](_0x522a43,0x0));},0x0);return _0x34105e[_0x58cf24(0xed)](debug,'Time\x20for\x20'+_0x2e4501+_0x58cf24(0xb2)+_0x511515),_0x511515;}static[a79_0x18eb8c(0xf7)](_0x1ce650){const _0x4f9c19=a79_0x18eb8c;if(!fs[_0x4f9c19(0xfa)](_0x1ce650))return[];return JSON['parse'](fs[_0x4f9c19(0xca)](_0x1ce650)['toString']());}static async[a79_0x18eb8c(0xac)](_0x3ec90d=a79_0x18eb8c(0xa9),_0x420f88=null){const _0x2e0e8b=a79_0x18eb8c,_0x14024f={'Znlzr':function(_0x317485,_0x280599){return _0x317485(_0x280599);},'VDFus':function(_0x3ec022,_0xbcae11){return _0x3ec022(_0xbcae11);}};if(!this['started'])return;await _0x14024f[_0x2e0e8b(0xc4)](sleep,0x1e),this[_0x2e0e8b(0x140)]['disconnect'](),this[_0x2e0e8b(0x12d)]=![],this[_0x2e0e8b(0xcf)](this[_0x2e0e8b(0x11e)]);const _0x5b0b1d=this[_0x2e0e8b(0x101)](this[_0x2e0e8b(0x11e)]),_0x3d60fa=path['join'](process['cwd'](),_0x3ec90d);fs[_0x2e0e8b(0x13a)](_0x3d60fa,_0x5b0b1d,_0x35db4d=>{const _0x24c768=_0x2e0e8b;if(_0x35db4d){_0x14024f[_0x24c768(0x116)](debug,_0x24c768(0x124)+_0x35db4d[_0x24c768(0xb8)]());return;}_0x14024f[_0x24c768(0x116)](debug,_0x24c768(0xbd)+_0x3d60fa);});if(_0x420f88)return this[_0x2e0e8b(0xbf)](this['_events'],_0x420f88);}static[a79_0x18eb8c(0x101)](_0x395877){const _0x3b9710=a79_0x18eb8c,_0x1b0f9d={};_0x1b0f9d['sPOYI']=_0x3b9710(0x117),_0x1b0f9d[_0x3b9710(0x13c)]='<h1>Performance\x20Report</h1>',_0x1b0f9d['rUcBM']='<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>',_0x1b0f9d['pnclF']=_0x3b9710(0xd4);const _0x9bf64a=_0x1b0f9d;let _0x310d53=_0x9bf64a['sPOYI'];return _0x310d53+=_0x9bf64a[_0x3b9710(0x13c)],_0x310d53+=_0x9bf64a['rUcBM'],_0x395877[_0x3b9710(0xaa)](_0x35f891=>{const _0x52d715=_0x3b9710;_0x310d53+=_0x52d715(0x109)+_0x35f891['name']+_0x52d715(0xae)+_0x35f891[_0x52d715(0xf0)]+'</td></tr>';}),_0x310d53+=_0x9bf64a['pnclF'],_0x310d53;}static[a79_0x18eb8c(0xcf)](_0x313537){const _0x16fdde=a79_0x18eb8c;if(!this[_0x16fdde(0xe2)])return;const _0xf95e34={};_0x313537[_0x16fdde(0xe8)](_0x432ecd=>{const _0x1c3852=_0x16fdde;!_0xf95e34[_0x432ecd[_0x1c3852(0xd8)]]&&(_0xf95e34[_0x432ecd[_0x1c3852(0xd8)]]=0x0),_0xf95e34[_0x432ecd[_0x1c3852(0xd8)]]+=_0x432ecd['duration'];});const _0x416e3c=Object[_0x16fdde(0x123)](_0xf95e34)['map'](([_0x38c03b,_0x29b3ee])=>{const _0x239faa=_0x16fdde,_0x29d17e={};return _0x29d17e[_0x239faa(0xd8)]=_0x38c03b,_0x29d17e['duration']=_0x29b3ee,_0x29d17e;});fs['writeFileSync'](this[_0x16fdde(0xe2)],JSON[_0x16fdde(0x11b)](_0x416e3c));}static[a79_0x18eb8c(0xd2)](){const _0x3897f6=a79_0x18eb8c,_0x5e3282={};_0x5e3282[_0x3897f6(0xb1)]=function(_0x47db12,_0x31af43){return _0x47db12===_0x31af43;},_0x5e3282[_0x3897f6(0xf1)]='false';const _0x47e2dc=_0x5e3282;return!_0x47e2dc[_0x3897f6(0xb1)](process[_0x3897f6(0xda)]['BROWSERSTACK_SDK_INSTRUMENTATION'],_0x47e2dc[_0x3897f6(0xf1)]);}static[a79_0x18eb8c(0xf9)](_0x337300,_0x52ee6b,_0x55adfc=null,_0x1cd767={},_0x5001f0=null){const _0x3fc07b=a79_0x18eb8c,_0x33f23a={'vkLXu':function(_0x11f80d,_0x58b435){return _0x11f80d(_0x58b435);},'ujOyu':function(_0x156cbb,_0x21f3fb){return _0x156cbb instanceof _0x21f3fb;}};try{if(this[_0x3fc07b(0x12d)]&&this[_0x3fc07b(0xd2)]()){let _0x3679b0=_0x337300;_0x55adfc&&(_0x3679b0=_0x337300+'['+JSON[_0x3fc07b(0x11b)](_0x55adfc)+']');PerformanceTester['start'](_0x3679b0),this[_0x3fc07b(0x133)]&&(this['details'][_0x3679b0]=_0x1cd767);try{const _0xffc177=_0x52ee6b[_0x3fc07b(0xba)](null,_0x5001f0);if(_0x33f23a['ujOyu'](_0xffc177,Promise))return new Promise((_0x1d4e7c,_0x1a3846)=>{const _0x410c92=_0x3fc07b;_0xffc177[_0x410c92(0x114)](_0x221e6d=>{const _0x4428c7=_0x410c92;PerformanceTester[_0x4428c7(0x13f)](_0x3679b0),_0x33f23a['vkLXu'](_0x1d4e7c,_0x221e6d);})[_0x410c92(0x136)](_0x51e589=>{const _0x37aa54=_0x410c92;PerformanceTester[_0x37aa54(0x13f)](_0x3679b0,![],util[_0x37aa54(0xe3)](_0x51e589)),_0x33f23a[_0x37aa54(0x13e)](_0x1a3846,_0x51e589);});});;return PerformanceTester['end'](_0x3679b0),_0xffc177;}catch(_0x5d4a7f){PerformanceTester[_0x3fc07b(0x13f)](_0x3679b0,![],util['format'](_0x5d4a7f));throw _0x5d4a7f;}};return _0x52ee6b[_0x3fc07b(0xba)](null,_0x5001f0);}catch(_0x228d58){return _0x52ee6b['apply'](null,_0x5001f0);}}static[a79_0x18eb8c(0xb6)](_0x23a61b,_0x51d38e,_0x242d7b={}){const _0xabf618=a79_0x18eb8c,_0x48e2b9={'IMdBG':function(_0x3e9789){return _0x3e9789();}},_0xfc6394=this;return _0x242d7b[_0xabf618(0xc9)]=_0x48e2b9[_0xabf618(0xc5)](getProcessId),_0x242d7b[_0xabf618(0xf8)]=_0x48e2b9[_0xabf618(0xc5)](getTestName),_0x242d7b['platform']=global[_0xabf618(0x10e)]&&global[_0xabf618(0x10e)][_0xabf618(0x10a)],function(){const _0x471516=_0xabf618,_0x5e44cc=[_0x23a61b,_0x51d38e,null,_0x242d7b][_0x471516(0x11c)](arguments);return _0xfc6394[_0x471516(0xf9)][_0x471516(0xba)](_0xfc6394,_0x5e44cc);};}static[a79_0x18eb8c(0x104)](){const _0xcd5c9d=a79_0x18eb8c,_0x2d716c=/(^.*)\[(.*)\]$/,_0xd26f39={},_0x321d58={},_0x108027=[],_0x318aec=this[_0xcd5c9d(0xcd)][_0xcd5c9d(0xfe)](0x0,this[_0xcd5c9d(0xcd)][_0xcd5c9d(0x120)]);for(const _0x1b6950 of _0x318aec){const _0x4e1524=_0x1b6950[_0xcd5c9d(0xd8)][_0xcd5c9d(0xf4)](_0x2d716c),_0x516843=Object[_0xcd5c9d(0x129)]({},_0x1b6950);_0x4e1524&&(_0x516843[_0xcd5c9d(0xd8)]=_0x4e1524[0x1],_0x516843[_0xcd5c9d(0x128)]=JSON[_0xcd5c9d(0xec)](_0x4e1524[0x2])),_0x108027['push'](_0x516843);}return _0x108027;}static[a79_0x18eb8c(0xdd)](){const _0x2ff13c=a79_0x18eb8c,_0x4b546d={};_0x4b546d[_0x2ff13c(0x10b)]=function(_0x1acebe,_0x2b7e0e){return _0x1acebe+_0x2b7e0e;},_0x4b546d['lVNJs']='Error\x20while\x20removing\x20files:\x20',_0x4b546d[_0x2ff13c(0xdc)]=function(_0x5f0cff,_0x2684d7){return _0x5f0cff===_0x2684d7;};const _0x20f903=_0x4b546d;try{if(fs['existsSync'](this['jsonReportDirPath'])){const _0x3e907c=fs[_0x2ff13c(0xe9)](this[_0x2ff13c(0x144)]);for(const _0x3a8d29 of _0x3e907c){fs['unlinkSync'](path[_0x2ff13c(0x11d)](this[_0x2ff13c(0x144)],_0x3a8d29));}}}catch(_0x31c185){logger[_0x2ff13c(0xb7)](_0x20f903[_0x2ff13c(0x10b)](_0x20f903[_0x2ff13c(0x11f)],_0x31c185));}if(_0x20f903[_0x2ff13c(0xdc)](this[_0x2ff13c(0xcd)]['length'],0x0))return;const _0x1951e3=this[_0x2ff13c(0x104)](),_0x2fdfbb=JSON[_0x2ff13c(0x11b)](_0x1951e3),_0x53e70f=_0x20f903[_0x2ff13c(0x10b)](_0x2fdfbb[_0x2ff13c(0xb5)](0x1,-0x1),',');fs[_0x2ff13c(0xc7)](this['jsonReportFileName'],_0x53e70f);}static async[a79_0x18eb8c(0xea)](){const _0x2e1675=a79_0x18eb8c,_0x448747={};_0x448747[_0x2e1675(0x112)]=function(_0x3ebded,_0x329648){return _0x3ebded===_0x329648;},_0x448747['Hgoqj']=function(_0x3e442a,_0xe31c1c){return _0x3e442a>_0xe31c1c;};const _0x47934d=_0x448747;if(!this[_0x2e1675(0x12d)]||_0x47934d[_0x2e1675(0x112)](this[_0x2e1675(0xcd)][_0x2e1675(0x120)],0x0))return[];if(!fs[_0x2e1675(0xfa)](this['jsonReportDirPath']))return this[_0x2e1675(0xcd)];const _0x2ea7bd=(await fsPromise[_0x2e1675(0x132)](this['jsonReportDirPath']))['map'](_0x20f04c=>path[_0x2e1675(0x130)](this[_0x2e1675(0x144)],_0x20f04c));let _0x3656c7=(await Promise['all'](_0x2ea7bd['map'](_0x2fb19e=>fsPromise[_0x2e1675(0x12a)](_0x2fb19e,'utf-8'))))[_0x2e1675(0xe8)](_0x438138=>'['+_0x438138[_0x2e1675(0xb5)](0x0,-0x1)+']')[_0x2e1675(0xe8)](_0x32d097=>JSON[_0x2e1675(0xec)](_0x32d097))['flat']();return _0x47934d['Hgoqj'](this[_0x2e1675(0xcd)][_0x2e1675(0x120)],0x0)&&(_0x3656c7=_0x3656c7[_0x2e1675(0x11c)](this[_0x2e1675(0x104)]())),this['_observer'][_0x2e1675(0x115)](),_0x3656c7;}static[a79_0x18eb8c(0x13d)](){const _0x1fa1e2=a79_0x18eb8c,_0x2ee54e={};_0x2ee54e[_0x1fa1e2(0xb4)]=function(_0x20c64f,_0x3914e0){return _0x20c64f===_0x3914e0;},_0x2ee54e[_0x1fa1e2(0xa5)]=function(_0x47aa7d,_0x207a25){return _0x47aa7d+_0x207a25;};const _0x221ef5=_0x2ee54e;if(_0x221ef5[_0x1fa1e2(0xb4)](this[_0x1fa1e2(0x12b)]['length'],0x0))return;const _0x1a669f=JSON[_0x1fa1e2(0x11b)](this[_0x1fa1e2(0x12b)]),_0x364eed=_0x221ef5[_0x1fa1e2(0xa5)](_0x1a669f[_0x1fa1e2(0xb5)](0x1,-0x1),',');fs['appendFileSync'](this[_0x1fa1e2(0xbb)],_0x364eed);}static['finalizeErrors'](){const _0x30dccc=a79_0x18eb8c,_0x26a02b={};_0x26a02b[_0x30dccc(0xa8)]=function(_0x5af83c,_0x5dea02){return _0x5af83c>_0x5dea02;};const _0x31a4f1=_0x26a02b;if(!fs[_0x30dccc(0xfa)](this[_0x30dccc(0xbe)]))return this[_0x30dccc(0x12b)];let _0x5ae5fe=fs['readFileSync'](this[_0x30dccc(0xbe)])[_0x30dccc(0xb8)]();_0x5ae5fe='['+_0x5ae5fe[_0x30dccc(0xb5)](0x0,-0x1)+']';let _0x514115=JSON[_0x30dccc(0xec)](_0x5ae5fe);return _0x31a4f1[_0x30dccc(0xa8)](this[_0x30dccc(0x12b)][_0x30dccc(0x120)],0x0)&&(_0x514115=_0x514115[_0x30dccc(0x11c)](this['_errorEvents'])),fs[_0x30dccc(0x139)](this[_0x30dccc(0xbe)]),_0x514115;}static[a79_0x18eb8c(0xce)](_0x57402e){const _0x3a99d4=a79_0x18eb8c;if(!this[_0x3a99d4(0xd2)]())return;this[_0x3a99d4(0x12b)][_0x3a99d4(0xd9)]({'message':_0x57402e['message'],'trace':_0x57402e[_0x3a99d4(0xff)],'code':_0x57402e[_0x3a99d4(0xd0)]||null,'time':new Date()});}static[a79_0x18eb8c(0x102)](){const _0x583f80=a79_0x18eb8c;try{if(!this[_0x583f80(0xd2)]())return;this[_0x583f80(0x140)][_0x583f80(0x115)](),this[_0x583f80(0xdd)](),this[_0x583f80(0x13d)]();}catch(_0x5b4c4f){logger[_0x583f80(0xb7)](_0x583f80(0xd7)+util[_0x583f80(0xe3)](_0x5b4c4f));}}static async[a79_0x18eb8c(0xaf)](){const _0x28324c=a79_0x18eb8c,_0x35f28c={'qOeQr':function(_0x214321,_0x3c6580){return _0x214321(_0x3c6580);}};await _0x35f28c[_0x28324c(0xe4)](sleep,0x1e);const _0x5ac077=await this[_0x28324c(0xea)](),_0x4cbaf5=this[_0x28324c(0xc6)]();if(!this[_0x28324c(0xd2)]()){const _0x47403c={};return _0x47403c[_0x28324c(0x142)]=[],_0x47403c[_0x28324c(0x111)]=[],_0x47403c;}const _0x5c0ec2={};return _0x5c0ec2['measures']=_0x5ac077,_0x5c0ec2[_0x28324c(0x111)]=_0x4cbaf5,_0x5c0ec2;}static[a79_0x18eb8c(0xc3)](_0xba8477){const _0x490715=a79_0x18eb8c,_0x47fa1a={};_0x47fa1a[_0x490715(0xb9)]=function(_0xc5add1,_0x50809e){return _0xc5add1+_0x50809e;},_0x47fa1a[_0x490715(0x113)]='-start';const _0x2b6309=_0x47fa1a,_0x239e6e=_0x2b6309[_0x490715(0xb9)](_0xba8477,_0x2b6309[_0x490715(0x113)]);if(this[_0x490715(0xc0)][_0x239e6e])return;performance[_0x490715(0xf3)](_0x239e6e),this[_0x490715(0xc0)][_0x239e6e]=0x1;}static[a79_0x18eb8c(0x13f)](_0x35c8a2,_0x37b29e=!![],_0x960d79=null,_0x398fd3={}){const _0x27bbf8=a79_0x18eb8c,_0x229b3={'vRhPz':function(_0xfe7d81,_0x283ef0){return _0xfe7d81+_0x283ef0;},'HagUn':_0x27bbf8(0xe7),'pILES':'-start','BHgse':function(_0x53aaeb,_0x5e7f7f){return _0x53aaeb+_0x5e7f7f;},'qODGs':function(_0x277998){return _0x277998();},'UOUEP':function(_0xcafa95){return _0xcafa95();}};performance[_0x27bbf8(0xf3)](_0x229b3[_0x27bbf8(0x131)](_0x35c8a2,_0x229b3['HagUn'])),performance[_0x27bbf8(0xf9)](_0x35c8a2,_0x229b3[_0x27bbf8(0x131)](_0x35c8a2,_0x229b3[_0x27bbf8(0x119)]),_0x229b3[_0x27bbf8(0xcc)](_0x35c8a2,_0x229b3[_0x27bbf8(0xb0)]));const _0x599fed={};_0x599fed[_0x27bbf8(0x12f)]=_0x37b29e,_0x599fed[_0x27bbf8(0xfc)]=_0x960d79,this[_0x27bbf8(0x133)][_0x35c8a2]=Object['assign'](_0x599fed,Object[_0x27bbf8(0x129)](Object[_0x27bbf8(0x129)]({'worker':_0x229b3[_0x27bbf8(0xe0)](getProcessId),'platform':global[_0x27bbf8(0x10e)]&&global[_0x27bbf8(0x10e)]['index'],'testName':_0x229b3[_0x27bbf8(0x10c)](getTestName)},_0x398fd3),this[_0x27bbf8(0x133)][_0x35c8a2]||{}));}}function a79_0x572d(){const _0x579bd1=['IMdBG','finalizeErrors','appendFileSync','function','worker','readFileSync','44iOBPBq','BHgse','_measureEvents','captureError','generateJSON','code','../processHelper','isEnabled','mkdirSync','</tbody></table></body></html>','buffered','591unoogt','Error\x20stopping\x20monitoring\x20','name','push','env','Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','LYGbN','pushPerfMeasures','path','9rCJqXx','qODGs','perf_hooks','jsonReportFileName','format','qOeQr','/error-report-','exports','-end','map','readdirSync','finalizePerfMeasures','1986636QKfePc','parse','hURVw','JVlsr','Error\x20in\x20doing\x20csv\x20operations:\x20','duration','vktEG','getPerformance','mark','match','559255fgOjny','error-report','getEventsFromJSON','testName','measure','existsSync','getEntries','failure','MvcHN','splice','stack','jsonReportDirName','generateHTMLReport','stopMonitoring','observe','getCleanedPerfEvents','RecEk','reduce','util','3011870nqITGA','<tr><td>','index','Gxikq','UOUEP','winstonLogger','__platformCaps','ozBrP','2744968XcvCqF','errors','Rmutb','BDVbU','then','disconnect','Znlzr','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','kKMDl','pILES','performance-report','stringify','concat','join','_events','lVNJs','length','entryTypes','1516SYoLOS','entries','Error\x20in\x20writing\x20html\x20','log','startMonitoring','TaKOr','meta','assign','readFile','_errorEvents','/performance-report-','started','cwd','success','resolve','vRhPz','readdir','details','30232gWqPhV','lhcHZ','catch','oFNMr','QIleQ','unlinkSync','writeFile','SAUDS','DgUTG','pushErrors','vkLXu','end','_observer','yTOZG','measures','10fVvTXR','jsonReportDirPath','.json','XkETC','entryType','errorReportDirName','IIapj','performance-own.html','forEach','ARiam','stopAndGenerate','72YHilyc','</td><td>','finalize','HagUn','YZTDu','\x20for\x20all\x20processes\x20is\x20','browserStackCwd','QwQtw','slice','measureWrapper','debug','toString','nlmpn','apply','errorFile','136262MwgYup','Performance\x20report\x20is\x20at\x20','errorReportFileName','calculateTimeFromEvents','eventsMap','toJSON','fs/promises','start','VDFus'];a79_0x572d=function(){return _0x579bd1;};return a79_0x572d();}module[a79_0x18eb8c(0xe6)]=PerformanceTester;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a80_0x49f173=a80_0x3267;function a80_0x3267(_0xc2547f,_0x2a0fb2){const _0x1386cd=a80_0x1386();return a80_0x3267=function(_0x32678d,_0x23e307){_0x32678d=_0x32678d-0x1e0;let _0x4a42c3=_0x1386cd[_0x32678d];return _0x4a42c3;},a80_0x3267(_0xc2547f,_0x2a0fb2);}function a80_0x1386(){const _0x4e2e80=['getProcessId','262191sCwvvB','./test-observability/constants','4943480zdcTDm','2372262jgGoIr','][\x20OBSERVABILITY\x20]\x20','./logger','getGlobal','./globals','2137712bSOJYJ','threadId','7qPInMW','2kpneYq','25viVoVG','browserstackTestName','MvbjP','debug','pid','true','478023UsTjVX','MZhmq','372472ZQAJqT','aRHVu','getTestName','log','env','toISOString','3471606XdJTCl'];a80_0x1386=function(){return _0x4e2e80;};return a80_0x1386();}(function(_0x46595f,_0x1dc7b2){const _0x2aecad=a80_0x3267,_0x344ae3=_0x46595f();while(!![]){try{const _0x5b5d89=-parseInt(_0x2aecad(0x1e9))/0x1*(parseInt(_0x2aecad(0x1f4))/0x2)+-parseInt(_0x2aecad(0x1fb))/0x3+parseInt(_0x2aecad(0x1e1))/0x4*(parseInt(_0x2aecad(0x1f5))/0x5)+-parseInt(_0x2aecad(0x1ec))/0x6*(parseInt(_0x2aecad(0x1f3))/0x7)+-parseInt(_0x2aecad(0x1f1))/0x8+parseInt(_0x2aecad(0x1e7))/0x9+parseInt(_0x2aecad(0x1eb))/0xa;if(_0x5b5d89===_0x1dc7b2)break;else _0x344ae3['push'](_0x344ae3['shift']());}catch(_0x44c337){_0x344ae3['push'](_0x344ae3['shift']());}}}(a80_0x1386,0x3fdad));const worker=require('worker_threads'),{fileLogger}=require(a80_0x49f173(0x1ee)),{consoleHolder}=require(a80_0x49f173(0x1ea)),globals=require(a80_0x49f173(0x1f0));exports[a80_0x49f173(0x1e8)]=()=>{const _0xf09704=a80_0x49f173;return process[_0xf09704(0x1f9)]+'-'+worker[_0xf09704(0x1f2)];},exports[a80_0x49f173(0x1e3)]=()=>{const _0x2106ca=a80_0x49f173,_0x344280={};_0x344280['aRHVu']=_0x2106ca(0x1f6);const _0x2da1ad=_0x344280;return globals[_0x2106ca(0x1ef)](_0x2da1ad[_0x2106ca(0x1e2)]);},exports['sleep']=(_0x58dcda=0x64)=>new Promise(_0xecc7b1=>setTimeout(_0xecc7b1,_0x58dcda)),exports[a80_0x49f173(0x1f8)]=_0x58c197=>{const _0x6cf844=a80_0x49f173,_0x585f42={};_0x585f42[_0x6cf844(0x1f7)]=function(_0x410c1f,_0x18dad4){return _0x410c1f===_0x18dad4;},_0x585f42['MZhmq']=_0x6cf844(0x1fa);const _0x110ed6=_0x585f42;fileLogger['debug']('['+new Date()[_0x6cf844(0x1e6)]()+_0x6cf844(0x1ed)+_0x58c197),(_0x110ed6[_0x6cf844(0x1f7)](process['env']['BROWSERSTACK_OBSERVABILITY_DEBUG'],_0x110ed6[_0x6cf844(0x1e0)])||_0x110ed6[_0x6cf844(0x1f7)](process[_0x6cf844(0x1e5)]['BROWSERSTACK_OBSERVABILITY_DEBUG'],'1'))&&consoleHolder[_0x6cf844(0x1e4)]('\x0a['+new Date()[_0x6cf844(0x1e6)]()+'][\x20OBSERVABILITY\x20]\x20'+_0x58c197+'\x0a');};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a81_0x21b595=a81_0xc2a2;(function(_0x4850e9,_0x6de9d4){const _0x172dc4=a81_0xc2a2,_0x741826=_0x4850e9();while(!![]){try{const _0xec1e42=-parseInt(_0x172dc4(0xd2))/0x1+parseInt(_0x172dc4(0xc4))/0x2+parseInt(_0x172dc4(0xd3))/0x3+-parseInt(_0x172dc4(0xe7))/0x4+-parseInt(_0x172dc4(0xcd))/0x5*(parseInt(_0x172dc4(0xcc))/0x6)+-parseInt(_0x172dc4(0xdb))/0x7*(-parseInt(_0x172dc4(0xef))/0x8)+parseInt(_0x172dc4(0xc9))/0x9;if(_0xec1e42===_0x6de9d4)break;else _0x741826['push'](_0x741826['shift']());}catch(_0x5c551a){_0x741826['push'](_0x741826['shift']());}}}(a81_0x9758,0xe8822));const http=require(a81_0x21b595(0xe4)),https=require('https'),monkeypatch=require('monkeypatch');function spy(_0x4c9245){const _0x5b7421=a81_0x21b595,_0x9dd7da={'fZsRN':function(_0x26c3fa,_0x39e9e2,_0x3d5fa1){return _0x26c3fa(_0x39e9e2,_0x3d5fa1);},'htrUn':function(_0x4e5f03,..._0x627598){return _0x4e5f03(..._0x627598);},'oXcBo':function(_0x4accfe,_0x371829){return _0x4accfe instanceof _0x371829;},'EfHaE':function(_0x13b3ae,_0x1c7bc0){return _0x13b3ae===_0x1c7bc0;},'AiAYT':'object','AJtkJ':function(_0xa8359b,_0x34d486){return _0xa8359b-_0x34d486;},'RcKbJ':'error','YFpsH':_0x5b7421(0xeb),'WlUIe':'socket','TnNnY':function(_0x2008f9,_0x3c6530,_0x5e49ae,_0x34c93d){return _0x2008f9(_0x3c6530,_0x5e49ae,_0x34c93d);},'TzOjh':_0x5b7421(0xd6),'ZXAGZ':'request','iUKEb':function(_0x1a74e8,_0x15fcc8,_0x3906fe,_0x12e913){return _0x1a74e8(_0x15fcc8,_0x3906fe,_0x12e913);}},_0x106a69=function(){const _0xc12e52=_0x5b7421,_0x2ed47f={'Mtjbc':function(_0x507172,_0x35ed4d){const _0xa8519f=a81_0xc2a2;return _0x9dd7da[_0xa8519f(0xe8)](_0x507172,_0x35ed4d);},'BebzZ':function(_0x177e68,_0x55c08e){const _0x1a3382=a81_0xc2a2;return _0x9dd7da[_0x1a3382(0xc6)](_0x177e68,_0x55c08e);},'OmEtV':_0x9dd7da[_0xc12e52(0xe5)],'jUYZA':function(_0x4b67d6,_0x5d936f){const _0x5d23a8=_0xc12e52;return _0x9dd7da[_0x5d23a8(0xd9)](_0x4b67d6,_0x5d936f);},'YarAb':function(_0x2d1ee7,_0xd62af0,_0x3b708a){const _0xc526ab=_0xc12e52;return _0x9dd7da[_0xc526ab(0xea)](_0x2d1ee7,_0xd62af0,_0x3b708a);},'NXqex':_0x9dd7da[_0xc12e52(0xda)]},_0x3539b8=arguments[0x0],_0x1ec9bb=Array[_0xc12e52(0xcf)][_0xc12e52(0xe3)][_0xc12e52(0xc5)](arguments,0x1),_0x1b39b7=_0x3539b8[_0xc12e52(0xd0)](this,_0x1ec9bb);let _0x3c1e68=Date[_0xc12e52(0xe1)](),_0x1b3d8d;const _0xe013b5={};_0x1ec9bb['forEach'](_0x1e5b27=>{const _0x20a803=_0xc12e52;if(_0x2ed47f[_0x20a803(0xce)](_0x1e5b27,URL)){const _0x1cd71d={};_0x1cd71d[_0x20a803(0xc3)]=_0x1e5b27,Object[_0x20a803(0xc7)](_0xe013b5,_0x1cd71d);}else _0x2ed47f[_0x20a803(0xe6)](typeof _0x1e5b27,_0x2ed47f['OmEtV'])&&Object[_0x20a803(0xc7)](_0xe013b5,_0x1e5b27);});const _0x171170=_0x30631f=>{const _0x1599ef=_0xc12e52,_0x22ed32={};_0x22ed32[_0x1599ef(0xe0)]=_0xe013b5[_0x1599ef(0xe0)]||_0xe013b5[_0x1599ef(0xc2)]||_0xe013b5[_0x1599ef(0xc3)]&&(_0xe013b5[_0x1599ef(0xc3)][_0x1599ef(0xe0)]||_0xe013b5[_0x1599ef(0xc3)][_0x1599ef(0xc2)]),_0x22ed32['path']=_0xe013b5['path']||_0xe013b5[_0x1599ef(0xc3)]&&_0xe013b5[_0x1599ef(0xc3)][_0x1599ef(0xec)],_0x22ed32[_0x1599ef(0xed)]=_0xe013b5[_0x1599ef(0xed)],_0x22ed32[_0x1599ef(0xf1)]=_0xe013b5['headers'],_0x9dd7da[_0x1599ef(0xea)](_0x4c9245,_0x30631f,_0x22ed32);};return _0x1b39b7['once'](_0x9dd7da['YFpsH'],_0x1a4943=>{const _0x5d4dc4=_0xc12e52,_0x4bc37d=_0x2ed47f[_0x5d4dc4(0xd5)](Date[_0x5d4dc4(0xe1)](),_0x3c1e68),_0x4d5e9f={};_0x4d5e9f['hostname']=_0xe013b5[_0x5d4dc4(0xe0)]||_0xe013b5[_0x5d4dc4(0xc2)]||_0xe013b5[_0x5d4dc4(0xc3)]&&(_0xe013b5[_0x5d4dc4(0xc3)]['host']||_0xe013b5[_0x5d4dc4(0xc3)][_0x5d4dc4(0xc2)]),_0x4d5e9f['path']=_0xe013b5[_0x5d4dc4(0xc1)]||_0xe013b5['url']&&_0xe013b5[_0x5d4dc4(0xc3)][_0x5d4dc4(0xec)],_0x4d5e9f['method']=_0xe013b5['method'],_0x4d5e9f[_0x5d4dc4(0xf1)]=_0xe013b5[_0x5d4dc4(0xf1)],_0x4d5e9f[_0x5d4dc4(0xde)]=_0x1a4943[_0x5d4dc4(0xe9)],_0x4d5e9f[_0x5d4dc4(0xdd)]=_0x4bc37d,_0x2ed47f[_0x5d4dc4(0xe2)](_0x4c9245,null,_0x4d5e9f),_0x1b3d8d[_0x5d4dc4(0xd1)](_0x2ed47f[_0x5d4dc4(0xee)],_0x171170);}),_0x1b39b7['on'](_0x9dd7da[_0xc12e52(0xd7)],_0x2e6e7d=>{const _0x1c8b09=_0xc12e52;_0x1b3d8d=_0x2e6e7d,_0x2e6e7d[_0x1c8b09(0xdc)](_0x2ed47f[_0x1c8b09(0xee)],_0x171170);}),_0x9dd7da['TnNnY'](monkeypatch,_0x1b39b7,_0x9dd7da[_0xc12e52(0xf0)],(_0x4e292f,..._0x5c6153)=>{const _0x3dcbbf=_0xc12e52;_0x3c1e68=Date[_0x3dcbbf(0xe1)](),_0x9dd7da['htrUn'](_0x4e292f,..._0x5c6153);}),_0x1b39b7;};_0x9dd7da[_0x5b7421(0xdf)](monkeypatch,http,_0x9dd7da[_0x5b7421(0xca)],_0x106a69),_0x9dd7da['iUKEb'](monkeypatch,https,_0x9dd7da[_0x5b7421(0xca)],_0x106a69);}function restore(){const _0x435953=a81_0x21b595;http['request'][_0x435953(0xd8)](),https['request'][_0x435953(0xd8)]();}const a81_0x23c1a5={};function a81_0xc2a2(_0x2254ae,_0x464cf7){const _0x9758f=a81_0x9758();return a81_0xc2a2=function(_0xc2a29b,_0x5b8327){_0xc2a29b=_0xc2a29b-0xc1;let _0x5d36e5=_0x9758f[_0xc2a29b];return _0x5d36e5;},a81_0xc2a2(_0x2254ae,_0x464cf7);}a81_0x23c1a5[a81_0x21b595(0xcb)]=spy,a81_0x23c1a5[a81_0x21b595(0xc8)]=restore,module[a81_0x21b595(0xd4)]=a81_0x23c1a5;function a81_0x9758(){const _0x393726=['6708880iUtTFY','oXcBo','statusCode','fZsRN','response','pathname','method','NXqex','50552JNiJYA','TzOjh','headers','path','hostname','url','2255684aEtNRO','call','EfHaE','assign','restore','18903051YQKJfV','ZXAGZ','spy','6rWOCyT','3071235RmuOGV','Mtjbc','prototype','apply','removeListener','1785884KxRMCc','2523108ODayQg','exports','jUYZA','end','WlUIe','unpatch','AJtkJ','RcKbJ','1064HeuhCi','once','duration_ms','status_code','TnNnY','host','now','YarAb','slice','http','AiAYT','BebzZ'];a81_0x9758=function(){return _0x393726;};return a81_0x9758();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a82_0x158b(){const _0x2d6e57=['fQSoJ','1107114rusbdj','hasOwnProperty','153914tblrVr','LGfGk','./performance/constants','keepAliveMsecs','https','exports','1626708aYDLzU','keepAlive','http','globalAgent','agent','HGfAq','3171051RdzUOR','KocsN','yOMAR','call','234792IBTgoL','5BmdjNx','2233301AfXvSD','request','protocol','2BwGZaw','Agent','1413555XgBdJh','measureWrapper','KEEP_ALIVE','https:'];a82_0x158b=function(){return _0x2d6e57;};return a82_0x158b();}const a82_0x28af1d=a82_0xb31f;function a82_0xb31f(_0x4ec7ce,_0x2f33d9){const _0x158b59=a82_0x158b();return a82_0xb31f=function(_0xb31fa9,_0x20ec21){_0xb31fa9=_0xb31fa9-0x150;let _0x7606fc=_0x158b59[_0xb31fa9];return _0x7606fc;},a82_0xb31f(_0x4ec7ce,_0x2f33d9);}(function(_0x26ce95,_0x3d3108){const _0x14a825=a82_0xb31f,_0xc03963=_0x26ce95();while(!![]){try{const _0xe12c2e=-parseInt(_0x14a825(0x15a))/0x1*(parseInt(_0x14a825(0x151))/0x2)+parseInt(_0x14a825(0x153))/0x3+-parseInt(_0x14a825(0x160))/0x4*(-parseInt(_0x14a825(0x16b))/0x5)+parseInt(_0x14a825(0x158))/0x6+-parseInt(_0x14a825(0x16c))/0x7+parseInt(_0x14a825(0x16a))/0x8+-parseInt(_0x14a825(0x166))/0x9;if(_0xe12c2e===_0x3d3108)break;else _0xc03963['push'](_0xc03963['shift']());}catch(_0x1eb5fa){_0xc03963['push'](_0xc03963['shift']());}}}(a82_0x158b,0x410c2));const PerformanceTester=require('./performance/performance-tester'),{AUTOMATE_EVENTS:PerformanceEvents}=require(a82_0x28af1d(0x15c));module[a82_0x28af1d(0x15f)]=PerformanceTester[a82_0x28af1d(0x154)](PerformanceEvents[a82_0x28af1d(0x155)],function(){const _0xc218c0=a82_0x28af1d,_0x2179c7={'KocsN':function(_0x2ca36f,_0x188692){return _0x2ca36f===_0x188692;},'yOMAR':_0xc218c0(0x156),'ChYsD':_0xc218c0(0x164),'HGfAq':function(_0x200643,_0x3edac5,_0x3baa2e){return _0x200643(_0x3edac5,_0x3baa2e);},'IwbQz':function(_0x473a93,_0x51f7d2){return _0x473a93(_0x51f7d2);},'PvTTZ':_0xc218c0(0x162),'LGfGk':_0xc218c0(0x15e),'XREFq':function(_0x5c8402,_0xb28976){return _0x5c8402*_0xb28976;},'fQSoJ':_0xc218c0(0x161)},_0x98ace7=_0x2179c7['IwbQz'](require,_0x2179c7['PvTTZ']),_0x390a7d=_0x2179c7['IwbQz'](require,_0x2179c7[_0xc218c0(0x15b)]),_0x4878fa=_0x2179c7['XREFq'](0x1e,0x3e8);if(_0x98ace7['globalAgent']&&Object['prototype'][_0xc218c0(0x159)][_0xc218c0(0x169)](_0x98ace7[_0xc218c0(0x163)],_0x2179c7[_0xc218c0(0x157)]))_0x98ace7[_0xc218c0(0x163)]['keepAlive']=!![],_0x390a7d['globalAgent'][_0xc218c0(0x161)]=!![],_0x98ace7[_0xc218c0(0x163)][_0xc218c0(0x15d)]=_0x4878fa,_0x390a7d[_0xc218c0(0x163)][_0xc218c0(0x15d)]=_0x4878fa;else{const _0xfd697a={};_0xfd697a[_0xc218c0(0x161)]=!![],_0xfd697a[_0xc218c0(0x15d)]=_0x4878fa;const _0xe98196=new _0x98ace7[(_0xc218c0(0x152))](_0xfd697a),_0x3af838={};_0x3af838['keepAlive']=!![],_0x3af838['keepAliveMsecs']=_0x4878fa;const _0x1eb564=new _0x390a7d['Agent'](_0x3af838),_0x4ad28f=_0x98ace7['request'],_0x3aa51a=_0x390a7d[_0xc218c0(0x16d)];_0x98ace7['request']=function(_0x4ea291,_0x4de630){const _0x562d5f=_0xc218c0;if(_0x2179c7[_0x562d5f(0x167)](_0x4ea291[_0x562d5f(0x150)],_0x2179c7[_0x562d5f(0x168)]))return _0x4ea291[_0x2179c7['ChYsD']]=_0x1eb564,_0x2179c7[_0x562d5f(0x165)](_0x3aa51a,_0x4ea291,_0x4de630);return _0x4ea291[_0x2179c7['ChYsD']]=_0xe98196,_0x2179c7[_0x562d5f(0x165)](_0x4ad28f,_0x4ea291,_0x4de630);};}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a83_0xcfad(){var _0x17d4e0=['jest','12gdMyjB','3757090FpJCuD','449505eWEwys','CODECEPT','2IFclac','MOCHA','assign','exports','api/v1/event','1459733XjogCR','PLAYWRIGHT','Playwright','321420FbSsRI','8Haxrpe','1621575gplBhC','CUCUMBER','api/v1/screenshots','api/v1/batch','https://upload-observability.browserstack.com','12EcLmGQ','codeceptjs','233365YxWodn','JEST','https://collector-observability.browserstack.com','110752XNIxOu','18SWHlIQ'];a83_0xcfad=function(){return _0x17d4e0;};return a83_0xcfad();}var a83_0x330a94=a83_0x54d3;function a83_0x54d3(_0x248ac3,_0x51f793){var _0xcfad67=a83_0xcfad();return a83_0x54d3=function(_0x54d344,_0x4f2cf3){_0x54d344=_0x54d344-0xb5;var _0x479b19=_0xcfad67[_0x54d344];return _0x479b19;},a83_0x54d3(_0x248ac3,_0x51f793);}(function(_0x54c812,_0x23325e){var _0x195d2b=a83_0x54d3,_0x32cade=_0x54c812();while(!![]){try{var _0x15b2e9=parseInt(_0x195d2b(0xcd))/0x1*(parseInt(_0x195d2b(0xc6))/0x2)+-parseInt(_0x195d2b(0xba))/0x3+parseInt(_0x195d2b(0xc9))/0x4*(parseInt(_0x195d2b(0xc3))/0x5)+parseInt(_0x195d2b(0xc7))/0x6*(-parseInt(_0x195d2b(0xcb))/0x7)+-parseInt(_0x195d2b(0xbb))/0x8*(parseInt(_0x195d2b(0xbc))/0x9)+parseInt(_0x195d2b(0xca))/0xa+-parseInt(_0x195d2b(0xb7))/0xb*(-parseInt(_0x195d2b(0xc1))/0xc);if(_0x15b2e9===_0x23325e)break;else _0x32cade['push'](_0x32cade['shift']());}catch(_0x58da88){_0x32cade['push'](_0x32cade['shift']());}}}(a83_0xcfad,0x442b7));var a83_0x1c04e7={};a83_0x1c04e7[a83_0x330a94(0xb8)]=a83_0x330a94(0xb9),a83_0x1c04e7[a83_0x330a94(0xce)]='mocha',a83_0x1c04e7[a83_0x330a94(0xcc)]=a83_0x330a94(0xc2),a83_0x1c04e7[a83_0x330a94(0xc4)]=a83_0x330a94(0xc8),a83_0x1c04e7[a83_0x330a94(0xbd)]='cucumber',module[a83_0x330a94(0xb5)]={'consoleHolder':Object[a83_0x330a94(0xcf)]({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':a83_0x330a94(0xc5),'OBSERVABILITY_UPLOAD_API_URL':a83_0x330a94(0xc0),'EVENT_ENDPOINT':a83_0x330a94(0xb6),'BATCH_ENDPOINT':a83_0x330a94(0xbf),'SCREENSHOT_ENDPOINT':a83_0x330a94(0xbe),'UPLOAD_ATTACHMENT_ENDPOINT':'upload-attachments','DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS':0xea60,'MAX_ALLOWED_PLAYWRIGHT_TRACE_SIZE':0x64*0x400*0x400,'DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS':0x64,'DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS':0x1f4,'TEMP_STORE_DIR_NAME':'.obs_test_details','FRAMEWORKS':a83_0x1c04e7};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a84_0x3c1120=a84_0x43eb;(function(_0x491f34,_0xc352ac){const _0x20a2dc=a84_0x43eb,_0xf67c74=_0x491f34();while(!![]){try{const _0x1371e1=parseInt(_0x20a2dc(0x1f2))/0x1+-parseInt(_0x20a2dc(0x245))/0x2*(parseInt(_0x20a2dc(0x226))/0x3)+-parseInt(_0x20a2dc(0x1eb))/0x4+-parseInt(_0x20a2dc(0x1fa))/0x5*(parseInt(_0x20a2dc(0x1e5))/0x6)+parseInt(_0x20a2dc(0x1e8))/0x7+-parseInt(_0x20a2dc(0x20a))/0x8+-parseInt(_0x20a2dc(0x203))/0x9*(-parseInt(_0x20a2dc(0x248))/0xa);if(_0x1371e1===_0xc352ac)break;else _0xf67c74['push'](_0xf67c74['shift']());}catch(_0x268e47){_0xf67c74['push'](_0xf67c74['shift']());}}}(a84_0xd927,0x1c7a1));function a84_0xd927(){const _0x3bfeb4=['xDtal','hzOSc','parse','setCredentials','getCredentials','password','72158MBsJWk','BS_TESTOPS_BUILD_HASHED_ID','application/json','keys','../helper','accessKey','BNkpB','ElXvc','1565bscQoK','UkFGO','getPerformance','POST','Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20','setConfigDetails','Nzpyl','defineProperty','includes','708498QUaGUM','JzZOr','then','function','exports','timerify','HiaSl','1351792maurov','Error\x20in\x20executing\x20','call','\x20--\x20','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','stack','user','DvRrT','frameworkDetails','./utils','.\x20Error\x20-\x20','tJKpg','VFaOJ','QLGYp','captureError','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','length','key','auaRn','X-BSTACK-TESTOPS','frameworkVersion','CREDENTIALS_FOR_CRASH_REPORTING','NhlMj','Content-Type','frameworkName','ZDEQR','rhqbD','o11yClassErrorHandler','256782jrkqVk','env',',\x20Argument\x20-\x20','../performance/performance-tester','Started\x20::\x20','credentials','toString','ailnZ','username','recursivelyDeletePIIKeysFromObject','.\x20Args\x20-\x20','getFramework','USER_CONFIG_FOR_REPORTING','[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','HFRsT','true','headers','oQbsH','filterPII','initialize','toLowerCase','ovbKF','userConfig','util','CrashReporter','ajoGG','XIuWQ','format','[Crash_Report_Upload]\x20Success\x20response:\x20',',\x20PID\x20-\x20','forEach','2SwZAht','Finished\x20::\x20','stringify','40NWqeoc','hQhvm','setFrameworkDetails','o11yErrorHandler','getConfig','setAllDetails','BROWSERSTACK_O11Y_PERF_MEASUREMENT','zTlhE','Pcvak','rbyog','inspect','name','catch','constructor','QaAwT','2622NmaZWs','auth','iDbTr','992138PeinQH','GwhRJ','object','83160UDXDBq'];a84_0xd927=function(){return _0x3bfeb4;};return a84_0xd927();}const util=require(a84_0x3c1120(0x23d)),PerformanceTester=require(a84_0x3c1120(0x229)),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require(a84_0x3c1120(0x213)),{getAgentVersion,nestedKeyValue}=require(a84_0x3c1120(0x1f6)),o11yErrorHandler=(_0x40fd50,_0x3a8440='',_0x505577=[''],_0x8541cf=![])=>{const _0x2da73b={'ZDEQR':function(_0xc4bcbc,_0xb014f4){return _0xc4bcbc(_0xb014f4);},'HiaSl':function(_0x105b4f,_0x5f0d86,_0x302239){return _0x105b4f(_0x5f0d86,_0x302239);},'VFaOJ':function(_0x4e6009,_0x23c952){return _0x4e6009 instanceof _0x23c952;},'DvRrT':function(_0x25da36,_0x12d59b,_0x3001db,_0x34d7f5,_0x5be570){return _0x25da36(_0x12d59b,_0x3001db,_0x34d7f5,_0x5be570);}};return function(..._0x597d49){const _0x5b0518=a84_0x43eb;try{let _0x24a674=_0x40fd50;process[_0x5b0518(0x227)][_0x5b0518(0x1dc)]&&(_0x24a674=PerformanceTester[_0x5b0518(0x1fc)]()[_0x5b0518(0x208)](_0x24a674));_0x8541cf&&_0x2da73b[_0x5b0518(0x223)](trace,_0x5b0518(0x22a)+_0x3a8440+_0x5b0518(0x243)+process['pid']+_0x5b0518(0x228)+_0x2da73b[_0x5b0518(0x209)](nestedKeyValue,arguments[0x0],_0x505577));const _0x55c7ec=_0x24a674['apply'](null,arguments);_0x8541cf&&_0x2da73b['ZDEQR'](trace,_0x5b0518(0x246)+_0x3a8440+_0x5b0518(0x243)+process['pid']+',\x20Argument\x20-\x20'+_0x2da73b['HiaSl'](nestedKeyValue,arguments[0x0],_0x505577));if(_0x2da73b[_0x5b0518(0x216)](_0x55c7ec,Promise))return _0x55c7ec[_0x5b0518(0x1e2)](_0x278a3a=>processError(_0x278a3a,_0x40fd50,_0x597d49,_0x3a8440));return _0x55c7ec;}catch(_0xa892e1){_0x2da73b[_0x5b0518(0x211)](processError,_0xa892e1,_0x40fd50,_0x597d49,_0x3a8440);}};},o11yClassErrorHandler=(_0x47cdca,_0x2964d8,_0x4d9b0a='')=>{const _0x2841c4=a84_0x3c1120,_0x77340f={'AeWdR':function(_0x96859,_0x518811){return _0x96859 instanceof _0x518811;},'hzOSc':function(_0x3a8880,_0x43a209,_0x308ac6,_0x1a00ff,_0x2125e0){return _0x3a8880(_0x43a209,_0x308ac6,_0x1a00ff,_0x2125e0);},'JzZOr':function(_0x430bb4,_0x8797e4){return _0x430bb4===_0x8797e4;},'FxHxP':_0x2841c4(0x206),'auaRn':function(_0x37c471,_0x3f555b){return _0x37c471!==_0x3f555b;},'zTlhE':_0x2841c4(0x1e3),'Pcvak':function(_0x1a60fc,_0x95f6fd){return _0x1a60fc<_0x95f6fd;}},_0x25926c=_0x47cdca['prototype'];if(_0x77340f[_0x2841c4(0x1de)](Object['getOwnPropertyNames'](_0x25926c)[_0x2841c4(0x21a)],0x2))return _0x47cdca;return Object['getOwnPropertyNames'](_0x25926c)[_0x2841c4(0x244)](_0x325b23=>{const _0x269fc2=_0x2841c4;if(!(_0x2964d8&&_0x2964d8['includes'](_0x325b23)))return;const _0x4bdc55=_0x25926c[_0x325b23];_0x77340f[_0x269fc2(0x204)](typeof _0x4bdc55,_0x77340f['FxHxP'])&&_0x77340f[_0x269fc2(0x21c)](_0x325b23,_0x77340f[_0x269fc2(0x1dd)])&&Object[_0x269fc2(0x201)](_0x25926c,_0x325b23,{'writable':!![],'value':function(..._0x473bab){const _0x1aff44=_0x269fc2;try{const _0x3c69ef=(process[_0x1aff44(0x227)]['BROWSERSTACK_O11Y_PERF_MEASUREMENT']?PerformanceTester[_0x1aff44(0x1fc)]()[_0x1aff44(0x208)](_0x4bdc55):_0x4bdc55)[_0x1aff44(0x20c)](this,..._0x473bab);if(_0x77340f['AeWdR'](_0x3c69ef,Promise))return _0x3c69ef[_0x1aff44(0x1e2)](_0x41a16a=>processError(_0x41a16a,_0x4bdc55,_0x473bab,_0x4d9b0a));return _0x3c69ef;}catch(_0x106164){_0x77340f[_0x1aff44(0x1ed)](processError,_0x106164,_0x4bdc55,_0x473bab,_0x4d9b0a);}}});}),_0x47cdca;};function processError(_0x243538,_0x58ccb9,_0x1788ba,_0x1fa324){const _0x429077=a84_0x3c1120,_0x35670c={'oQbsH':function(_0x1ecc15,_0x428299){return _0x1ecc15(_0x428299);}};_0x35670c[_0x429077(0x237)](debug,_0x429077(0x20b)+_0x58ccb9['name']+_0x429077(0x20d)+_0x1fa324+'.\x20Error\x20-\x20'+_0x243538+_0x429077(0x230)+_0x1788ba+'.'),PerformanceTester[_0x429077(0x218)](_0x243538);let _0x9e5173;try{_0x9e5173=JSON[_0x429077(0x247)](_0x1788ba);}catch(_0xc9c3ba){const _0x26a83d={};_0x26a83d['depth']=0x2,_0x9e5173=util[_0x429077(0x1e0)](_0x1788ba,_0x26a83d);}CrashReporter['uploadCrashReport']('Error\x20in\x20executing\x20'+_0x58ccb9[_0x429077(0x1e1)]+'\x20--\x20'+_0x1fa324+_0x429077(0x214)+_0x243538+_0x429077(0x230)+_0x9e5173+'.',_0x243538&&_0x243538[_0x429077(0x20f)]);}function a84_0x43eb(_0x21d55b,_0x560372){const _0xd92715=a84_0xd927();return a84_0x43eb=function(_0x43eb47,_0x3e0cc2){_0x43eb47=_0x43eb47-0x1d9;let _0x46ef05=_0xd92715[_0x43eb47];return _0x46ef05;},a84_0x43eb(_0x21d55b,_0x560372);}class CrashReporter{static [a84_0x3c1120(0x23c)]={};static [a84_0x3c1120(0x22b)];static ['frameworkDetails']={};static[a84_0x3c1120(0x239)](_0x2d021c,_0x2d2018,_0x5814f0=null){const _0x3870f7=a84_0x3c1120,_0xc9e6a7={'Nzpyl':function(_0x309bc9,_0x2aa5ef){return _0x309bc9(_0x2aa5ef);}},_0x537def=_0x2d021c[_0x3870f7(0x222)],_0x299ae9=_0x2d021c['frameworkVersion'];!_0x5814f0&&(_0x5814f0=_0xc9e6a7[_0x3870f7(0x200)](getBrowserStackConfig,_0x537def));!_0x299ae9&&_0xc9e6a7[_0x3870f7(0x200)](getFrameworkVersion,_0x537def);const _0x2a492f={};_0x2a492f[_0x3870f7(0x222)]=_0x537def,_0x2a492f[_0x3870f7(0x21e)]=_0x299ae9,this[_0x3870f7(0x1db)](_0x2a492f,_0x2d2018,_0xc9e6a7[_0x3870f7(0x200)](getUserCredentials,_0x5814f0));}static[a84_0x3c1120(0x1ef)](_0x4de4e7,_0x38dbed){const _0x4294b8=a84_0x3c1120,_0x426635={};_0x426635[_0x4294b8(0x22e)]=_0x4de4e7,_0x426635[_0x4294b8(0x1f7)]=_0x38dbed,this[_0x4294b8(0x22b)]=_0x426635,process[_0x4294b8(0x227)]['CREDENTIALS_FOR_CRASH_REPORTING']=JSON[_0x4294b8(0x247)](this[_0x4294b8(0x22b)]);}static[a84_0x3c1120(0x1f0)](){const _0x283da5=a84_0x3c1120,_0x1abed9={'HFRsT':function(_0x58fc44,_0x549e0){return _0x58fc44(_0x549e0);}};if(!this[_0x283da5(0x22b)]&&process[_0x283da5(0x227)][_0x283da5(0x21f)])try{this[_0x283da5(0x22b)]=JSON[_0x283da5(0x1ee)](process[_0x283da5(0x227)][_0x283da5(0x21f)]);}catch(_0x52ff10){_0x1abed9[_0x283da5(0x234)](debug,_0x283da5(0x219)+_0x52ff10[_0x283da5(0x22c)]());}return this['credentials'];}static[a84_0x3c1120(0x1ff)](_0x5385cf){const _0x2e2056=a84_0x3c1120;this[_0x2e2056(0x23c)]=this[_0x2e2056(0x238)](_0x5385cf),process['env']['USER_CONFIG_FOR_REPORTING']=JSON['stringify'](this[_0x2e2056(0x23c)]);}static[a84_0x3c1120(0x1da)](){const _0x4e68bf=a84_0x3c1120,_0x3a4ccd={'dUqfb':function(_0x27392a,_0x37e472){return _0x27392a===_0x37e472;},'UkFGO':function(_0x114587,_0x5de56a){return _0x114587(_0x5de56a);}};if(_0x3a4ccd['dUqfb'](Object[_0x4e68bf(0x1f5)](this[_0x4e68bf(0x23c)])['length'],0x0)&&process['env'][_0x4e68bf(0x232)])try{this[_0x4e68bf(0x23c)]=JSON[_0x4e68bf(0x1ee)](process['env'][_0x4e68bf(0x232)]);}catch(_0x28253b){_0x3a4ccd[_0x4e68bf(0x1fb)](debug,_0x4e68bf(0x1fe)+_0x28253b[_0x4e68bf(0x22c)]()),this[_0x4e68bf(0x23c)]={};}return this[_0x4e68bf(0x23c)];}static[a84_0x3c1120(0x24a)](_0x3caafe){const _0x134143=a84_0x3c1120;this[_0x134143(0x212)]=_0x3caafe,process['env']['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS']=JSON[_0x134143(0x247)](this[_0x134143(0x212)]);}static['getFramework'](){const _0x529632=a84_0x3c1120,_0x4c5095={'QaAwT':function(_0x4fa8c8,_0x46dd32){return _0x4fa8c8===_0x46dd32;},'ovbKF':function(_0x3a11f6,_0x140f35){return _0x3a11f6(_0x140f35);}};if(_0x4c5095[_0x529632(0x1e4)](Object[_0x529632(0x1f5)](this['frameworkDetails'])['length'],0x0)&&process['env'][_0x529632(0x20e)])try{this[_0x529632(0x212)]=JSON[_0x529632(0x1ee)](process['env'][_0x529632(0x20e)]);}catch(_0x54da0f){_0x4c5095[_0x529632(0x23b)](debug,'Error\x20in\x20parsing\x20credentials\x20from\x20env\x20'+_0x54da0f[_0x529632(0x22c)]());}return this[_0x529632(0x212)];}static[a84_0x3c1120(0x1db)](_0x269ea0,_0x11c5bc,_0x4557ac){const _0x519e46=a84_0x3c1120;_0x269ea0&&this[_0x519e46(0x24a)](_0x269ea0),_0x11c5bc&&this[_0x519e46(0x1ff)](_0x11c5bc),_0x4557ac&&this[_0x519e46(0x1ef)](_0x4557ac[_0x519e46(0x22e)],_0x4557ac[_0x519e46(0x1f7)]);}static async['uploadCrashReport'](_0x382fbe,_0x4c7c17){const _0x1905d5=a84_0x3c1120,_0x1b702b={'NhlMj':function(_0x2a6450,_0x34d074){return _0x2a6450(_0x34d074);},'rbyog':_0x1905d5(0x233),'GwhRJ':function(_0x2a4876){return _0x2a4876();},'rhqbD':'/api/v1/analytics','HevSm':_0x1905d5(0x1f4),'XIuWQ':_0x1905d5(0x235),'hQhvm':function(_0x4cb2a8,_0x4d6ddc,_0x3e705,_0x5d5d72,_0x376c48,_0x2c1ff1){return _0x4cb2a8(_0x4d6ddc,_0x3e705,_0x5d5d72,_0x376c48,_0x2c1ff1);},'QLGYp':_0x1905d5(0x1fd)};this[_0x1905d5(0x1f0)]();if(!this[_0x1905d5(0x22b)])return _0x1b702b[_0x1905d5(0x220)](debug,_0x1b702b[_0x1905d5(0x1df)]);this[_0x1905d5(0x1da)](),this[_0x1905d5(0x231)]();const _0x21994e={'hashed_id':process['env'][_0x1905d5(0x1f3)],'observability_version':{'sdkVersion':_0x1b702b[_0x1905d5(0x1e9)](getAgentVersion),'frameworkName':this['frameworkDetails']['frameworkName'],'frameworkVersion':this['frameworkDetails']['frameworkVersion']},'exception':{'error':_0x382fbe[_0x1905d5(0x22c)](),'stackTrace':_0x4c7c17},'config':this[_0x1905d5(0x23c)]},_0x188e51=_0x1b702b[_0x1905d5(0x224)],_0x360ada={};_0x360ada['username']=this[_0x1905d5(0x22b)][_0x1905d5(0x22e)],_0x360ada['password']=this[_0x1905d5(0x22b)][_0x1905d5(0x1f7)];const _0x52c63f={};_0x52c63f[_0x1905d5(0x221)]=_0x1b702b['HevSm'],_0x52c63f[_0x1905d5(0x21d)]=_0x1b702b[_0x1905d5(0x240)];const _0x20d806={};_0x20d806[_0x1905d5(0x1e6)]=_0x360ada,_0x20d806[_0x1905d5(0x236)]=_0x52c63f;const _0x1a03a9=_0x20d806;_0x1b702b[_0x1905d5(0x249)](nodeRequest,_0x1b702b[_0x1905d5(0x217)],_0x188e51,_0x21994e,_0x1a03a9,![])[_0x1905d5(0x205)](_0x7c8292=>{const _0x3508dd=_0x1905d5;_0x1b702b['NhlMj'](debug,_0x3508dd(0x242)+JSON[_0x3508dd(0x247)](_0x7c8292));})[_0x1905d5(0x1e2)](_0x37f57d=>{const _0x471b71=_0x1905d5;_0x1b702b[_0x471b71(0x220)](debug,'[Crash_Report_Upload]\x20Failed\x20due\x20to\x20'+util[_0x471b71(0x241)](_0x37f57d));});}static[a84_0x3c1120(0x22f)](_0x9876ef){const _0x585adf=a84_0x3c1120,_0x508087={};_0x508087[_0x585adf(0x1f8)]=_0x585adf(0x210),_0x508087['ailnZ']=_0x585adf(0x22e),_0x508087[_0x585adf(0x1f9)]=_0x585adf(0x21b),_0x508087[_0x585adf(0x1e7)]=_0x585adf(0x1f7),_0x508087[_0x585adf(0x23f)]=_0x585adf(0x1f1),_0x508087['xDtal']=function(_0x4b2fe4,_0x459bb1){return _0x4b2fe4===_0x459bb1;},_0x508087[_0x585adf(0x215)]=_0x585adf(0x1ea);const _0x7ac49a=_0x508087;if(!_0x9876ef)return;const _0x3f7085=[_0x7ac49a[_0x585adf(0x1f8)],_0x7ac49a[_0x585adf(0x22d)],_0x7ac49a[_0x585adf(0x1f9)],_0x7ac49a['iDbTr'],_0x7ac49a[_0x585adf(0x23f)]];for(const _0x5bbc89 in _0x9876ef){if(_0x3f7085[_0x585adf(0x202)](_0x5bbc89[_0x585adf(0x23a)]()))delete _0x9876ef[_0x5bbc89];else _0x7ac49a[_0x585adf(0x1ec)](typeof _0x9876ef[_0x5bbc89],_0x7ac49a[_0x585adf(0x215)])&&this[_0x585adf(0x22f)](_0x9876ef[_0x5bbc89]);}}static[a84_0x3c1120(0x238)](_0x31bda8){const _0x378a1a=a84_0x3c1120,_0x2e7c25=JSON['parse'](JSON['stringify'](_0x31bda8));return this[_0x378a1a(0x22f)](_0x2e7c25),_0x2e7c25;}}const a84_0x364739={};a84_0x364739[a84_0x3c1120(0x1d9)]=o11yErrorHandler,a84_0x364739[a84_0x3c1120(0x225)]=o11yClassErrorHandler,a84_0x364739[a84_0x3c1120(0x23e)]=CrashReporter,module[a84_0x3c1120(0x207)]=a84_0x364739;
|
|
1
|
+
function a84_0x3f68(_0x3f063b,_0x202237){const _0x49a62a=a84_0x49a6();return a84_0x3f68=function(_0x3f68df,_0x4ea3dc){_0x3f68df=_0x3f68df-0x85;let _0x2b8d46=_0x49a62a[_0x3f68df];return _0x2b8d46;},a84_0x3f68(_0x3f063b,_0x202237);}const a84_0x177ec7=a84_0x3f68;(function(_0x3c5180,_0x5a1675){const _0x56a28b=a84_0x3f68,_0x23a06c=_0x3c5180();while(!![]){try{const _0x82ee17=parseInt(_0x56a28b(0x8c))/0x1+-parseInt(_0x56a28b(0xc3))/0x2*(-parseInt(_0x56a28b(0xba))/0x3)+parseInt(_0x56a28b(0xd6))/0x4*(-parseInt(_0x56a28b(0xd5))/0x5)+-parseInt(_0x56a28b(0xbe))/0x6+-parseInt(_0x56a28b(0xd9))/0x7*(parseInt(_0x56a28b(0xf1))/0x8)+parseInt(_0x56a28b(0xd4))/0x9*(-parseInt(_0x56a28b(0x96))/0xa)+-parseInt(_0x56a28b(0xd7))/0xb*(-parseInt(_0x56a28b(0xa9))/0xc);if(_0x82ee17===_0x5a1675)break;else _0x23a06c['push'](_0x23a06c['shift']());}catch(_0x417a71){_0x23a06c['push'](_0x23a06c['shift']());}}}(a84_0x49a6,0x87f56));const util=require('util'),PerformanceTester=require(a84_0x177ec7(0x9f)),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require('./utils'),{getAgentVersion,nestedKeyValue}=require(a84_0x177ec7(0xa4)),o11yErrorHandler=(_0x173a7c,_0x37031c='',_0x284828=[''],_0x4d77d6=![])=>{const _0x273c97={'FqRDN':function(_0x332a01,_0x12c145){return _0x332a01(_0x12c145);},'GJcbi':function(_0x110098,_0x1e0152,_0x43c3a0){return _0x110098(_0x1e0152,_0x43c3a0);},'MmrDw':function(_0x39b2e2,_0x5dbf71){return _0x39b2e2 instanceof _0x5dbf71;},'dCvVV':function(_0x4e00fb,_0x4f4295,_0x4a9ccd,_0x2544d6,_0x275a9c){return _0x4e00fb(_0x4f4295,_0x4a9ccd,_0x2544d6,_0x275a9c);}};return function(..._0x4d149f){const _0x53b600=a84_0x3f68;try{let _0xb559cd=_0x173a7c;process[_0x53b600(0xb4)][_0x53b600(0xbf)]&&(_0xb559cd=PerformanceTester['getPerformance']()['timerify'](_0xb559cd));_0x4d77d6&&_0x273c97[_0x53b600(0xad)](trace,_0x53b600(0xe2)+_0x37031c+_0x53b600(0xa6)+process[_0x53b600(0xe6)]+_0x53b600(0x95)+_0x273c97[_0x53b600(0xe5)](nestedKeyValue,arguments[0x0],_0x284828));const _0x2cb4ab=_0xb559cd[_0x53b600(0x89)](null,arguments);_0x4d77d6&&_0x273c97[_0x53b600(0xad)](trace,_0x53b600(0x92)+_0x37031c+_0x53b600(0xa6)+process[_0x53b600(0xe6)]+_0x53b600(0x95)+_0x273c97[_0x53b600(0xe5)](nestedKeyValue,arguments[0x0],_0x284828));if(_0x273c97['MmrDw'](_0x2cb4ab,Promise))return _0x2cb4ab[_0x53b600(0xbc)](_0x4df313=>processError(_0x4df313,_0x173a7c,_0x4d149f,_0x37031c));return _0x2cb4ab;}catch(_0x5ab76d){_0x273c97['dCvVV'](processError,_0x5ab76d,_0x173a7c,_0x4d149f,_0x37031c);}};},o11yClassErrorHandler=(_0x1c321c,_0x12ad6f,_0x3e4e1e='')=>{const _0x4cceb5=a84_0x177ec7,_0x3b7367={'fdHZd':function(_0xb5e9a2,_0x505de3){return _0xb5e9a2 instanceof _0x505de3;},'QRtXL':function(_0x1d1019,_0xc7e0ae,_0x12a18e,_0x166a92,_0x5677cc){return _0x1d1019(_0xc7e0ae,_0x12a18e,_0x166a92,_0x5677cc);},'iyukt':function(_0x550670,_0x223897){return _0x550670===_0x223897;},'uFINM':'function','xytPb':function(_0x1ed71b,_0x2a4338){return _0x1ed71b!==_0x2a4338;},'bmITz':'constructor','inxmc':function(_0x365156,_0x3f99db){return _0x365156<_0x3f99db;}},_0x3235e3=_0x1c321c[_0x4cceb5(0xde)];if(_0x3b7367[_0x4cceb5(0xd3)](Object[_0x4cceb5(0xa3)](_0x3235e3)[_0x4cceb5(0xa2)],0x2))return _0x1c321c;return Object[_0x4cceb5(0xa3)](_0x3235e3)[_0x4cceb5(0xd0)](_0x4d1b7e=>{const _0x928bd5=_0x4cceb5,_0x4e14cb={'kiyre':function(_0x381ae6,_0x4f8564){const _0x285c11=a84_0x3f68;return _0x3b7367[_0x285c11(0x9d)](_0x381ae6,_0x4f8564);},'UEKkL':function(_0x58a015,_0x2184dd,_0x3cb285,_0xaa734d,_0x46a163){const _0x48c396=a84_0x3f68;return _0x3b7367[_0x48c396(0xd8)](_0x58a015,_0x2184dd,_0x3cb285,_0xaa734d,_0x46a163);}};if(!(_0x12ad6f&&_0x12ad6f[_0x928bd5(0x8f)](_0x4d1b7e)))return;const _0xbdb3c7=_0x3235e3[_0x4d1b7e];_0x3b7367['iyukt'](typeof _0xbdb3c7,_0x3b7367['uFINM'])&&_0x3b7367['xytPb'](_0x4d1b7e,_0x3b7367[_0x928bd5(0xb5)])&&Object['defineProperty'](_0x3235e3,_0x4d1b7e,{'writable':!![],'value':function(..._0x51c304){const _0x4bc588=_0x928bd5;try{const _0x3adb9b=(process[_0x4bc588(0xb4)][_0x4bc588(0xbf)]?PerformanceTester[_0x4bc588(0xb0)]()[_0x4bc588(0xeb)](_0xbdb3c7):_0xbdb3c7)['call'](this,..._0x51c304);if(_0x4e14cb[_0x4bc588(0xe7)](_0x3adb9b,Promise))return _0x3adb9b[_0x4bc588(0xbc)](_0x567fb4=>processError(_0x567fb4,_0xbdb3c7,_0x51c304,_0x3e4e1e));return _0x3adb9b;}catch(_0x2311cc){_0x4e14cb[_0x4bc588(0xb7)](processError,_0x2311cc,_0xbdb3c7,_0x51c304,_0x3e4e1e);}}});}),_0x1c321c;};function processError(_0x222418,_0x14e12f,_0x284584,_0x2600c6){const _0x55a8da=a84_0x177ec7,_0x2324c7={'ZekPK':function(_0x594f22,_0x29c378){return _0x594f22(_0x29c378);}};_0x2324c7[_0x55a8da(0xdb)](debug,_0x55a8da(0xda)+_0x14e12f[_0x55a8da(0xdc)]+_0x55a8da(0x98)+_0x2600c6+_0x55a8da(0xbb)+_0x222418+_0x55a8da(0x94)+_0x284584+'.'),PerformanceTester['captureError'](_0x222418);let _0x23d9ba;try{_0x23d9ba=JSON[_0x55a8da(0xed)](_0x284584);}catch(_0x3b7ede){const _0x3da62c={};_0x3da62c['depth']=0x2,_0x23d9ba=util[_0x55a8da(0x8b)](_0x284584,_0x3da62c);}CrashReporter[_0x55a8da(0xcf)](_0x55a8da(0xda)+_0x14e12f[_0x55a8da(0xdc)]+_0x55a8da(0x98)+_0x2600c6+'.\x20Error\x20-\x20'+_0x222418+_0x55a8da(0x94)+_0x23d9ba+'.',_0x222418&&_0x222418['stack']);}class CrashReporter{static ['userConfig']={};static [a84_0x177ec7(0xb2)];static ['frameworkDetails']={};static[a84_0x177ec7(0xe1)](_0x22510e,_0x3723c6,_0x4ed78d=null){const _0x12e559=a84_0x177ec7,_0x5ab584={'PTORh':function(_0x365a61,_0x2fed8f){return _0x365a61(_0x2fed8f);},'uWVZS':function(_0xbb2f58,_0x4d7867){return _0xbb2f58(_0x4d7867);}},_0x5bcccb=_0x22510e[_0x12e559(0xc7)],_0x29f7c6=_0x22510e['frameworkVersion'];!_0x4ed78d&&(_0x4ed78d=_0x5ab584[_0x12e559(0xcb)](getBrowserStackConfig,_0x5bcccb));!_0x29f7c6&&_0x5ab584[_0x12e559(0xb6)](getFrameworkVersion,_0x5bcccb);const _0xa0beed={};_0xa0beed[_0x12e559(0xc7)]=_0x5bcccb,_0xa0beed[_0x12e559(0x97)]=_0x29f7c6,this['setAllDetails'](_0xa0beed,_0x3723c6,_0x5ab584[_0x12e559(0xcb)](getUserCredentials,_0x4ed78d));}static[a84_0x177ec7(0x91)](_0x4454d8,_0x57464d){const _0x24fbb6=a84_0x177ec7,_0x20c412={};_0x20c412['username']=_0x4454d8,_0x20c412['accessKey']=_0x57464d,this[_0x24fbb6(0xb2)]=_0x20c412,process[_0x24fbb6(0xb4)][_0x24fbb6(0xcd)]=JSON[_0x24fbb6(0xed)](this[_0x24fbb6(0xb2)]);}static[a84_0x177ec7(0x8e)](){const _0xc042df=a84_0x177ec7,_0x91ccb7={'zpYUf':function(_0x47659b,_0x25848e){return _0x47659b(_0x25848e);}};if(!this[_0xc042df(0xb2)]&&process[_0xc042df(0xb4)][_0xc042df(0xcd)])try{this[_0xc042df(0xb2)]=JSON[_0xc042df(0xd2)](process[_0xc042df(0xb4)]['CREDENTIALS_FOR_CRASH_REPORTING']);}catch(_0x5346f5){_0x91ccb7['zpYUf'](debug,_0xc042df(0xc6)+_0x5346f5[_0xc042df(0x8a)]());}return this[_0xc042df(0xb2)];}static[a84_0x177ec7(0xd1)](_0xacb448){const _0x23d6a0=a84_0x177ec7;this['userConfig']=this[_0x23d6a0(0xdd)](_0xacb448),process[_0x23d6a0(0xb4)][_0x23d6a0(0xc4)]=JSON['stringify'](this['userConfig']);}static[a84_0x177ec7(0xc2)](){const _0x10cb0f=a84_0x177ec7,_0x5bba93={'AqJoP':function(_0x77669f,_0x3ba61e){return _0x77669f===_0x3ba61e;},'SaVJn':function(_0x8c37f1,_0x462f42){return _0x8c37f1(_0x462f42);}};if(_0x5bba93['AqJoP'](Object['keys'](this[_0x10cb0f(0xca)])[_0x10cb0f(0xa2)],0x0)&&process[_0x10cb0f(0xb4)][_0x10cb0f(0xc4)])try{this[_0x10cb0f(0xca)]=JSON[_0x10cb0f(0xd2)](process[_0x10cb0f(0xb4)]['USER_CONFIG_FOR_REPORTING']);}catch(_0x140eb7){_0x5bba93[_0x10cb0f(0xce)](debug,_0x10cb0f(0xc9)+_0x140eb7['toString']()),this[_0x10cb0f(0xca)]={};}return this[_0x10cb0f(0xca)];}static['setFrameworkDetails'](_0x51979b){const _0x265d75=a84_0x177ec7;this['frameworkDetails']=_0x51979b,process['env'][_0x265d75(0x9e)]=JSON[_0x265d75(0xed)](this[_0x265d75(0xae)]);}static['getFramework'](){const _0x4c727e=a84_0x177ec7,_0xb41ed7={'rbHEs':function(_0x4f365c,_0x46d5f1){return _0x4f365c===_0x46d5f1;},'dwDJP':function(_0x4faa09,_0x5505cd){return _0x4faa09(_0x5505cd);}};if(_0xb41ed7[_0x4c727e(0x87)](Object['keys'](this['frameworkDetails'])[_0x4c727e(0xa2)],0x0)&&process[_0x4c727e(0xb4)][_0x4c727e(0x9e)])try{this[_0x4c727e(0xae)]=JSON['parse'](process[_0x4c727e(0xb4)][_0x4c727e(0x9e)]);}catch(_0x267339){_0xb41ed7[_0x4c727e(0xa7)](debug,_0x4c727e(0xc6)+_0x267339['toString']());}return this[_0x4c727e(0xae)];}static[a84_0x177ec7(0xef)](_0x1d179b,_0x211a49,_0x45bccc){const _0x399f5b=a84_0x177ec7;_0x1d179b&&this[_0x399f5b(0x93)](_0x1d179b),_0x211a49&&this[_0x399f5b(0xd1)](_0x211a49),_0x45bccc&&this[_0x399f5b(0x91)](_0x45bccc[_0x399f5b(0x86)],_0x45bccc['accessKey']);}static async[a84_0x177ec7(0xcf)](_0x50e024,_0x41f346){const _0x420b3d=a84_0x177ec7,_0x525b68={'UFtwV':function(_0x48e160,_0x546777){return _0x48e160(_0x546777);},'XqsSj':function(_0x42575c,_0x39e8da){return _0x42575c(_0x39e8da);},'noyyg':'[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','XpDEl':function(_0x5913cc){return _0x5913cc();},'NlXJU':_0x420b3d(0xe3),'sztXe':_0x420b3d(0xf0),'FppFM':_0x420b3d(0xea),'EGgla':function(_0x4406c2,_0x9e5753,_0x19dfe3,_0x28c944,_0x425e0b,_0x54fd6c){return _0x4406c2(_0x9e5753,_0x19dfe3,_0x28c944,_0x425e0b,_0x54fd6c);},'olsvk':_0x420b3d(0xb9)};this[_0x420b3d(0x8e)]();if(!this[_0x420b3d(0xb2)])return _0x525b68[_0x420b3d(0xb3)](debug,_0x525b68['noyyg']);this['getConfig'](),this[_0x420b3d(0xa1)]();const _0x1ba764={'hashed_id':process[_0x420b3d(0xb4)][_0x420b3d(0xe9)],'observability_version':{'sdkVersion':_0x525b68[_0x420b3d(0x90)](getAgentVersion),'frameworkName':this[_0x420b3d(0xae)][_0x420b3d(0xc7)],'frameworkVersion':this['frameworkDetails'][_0x420b3d(0x97)]},'exception':{'error':_0x50e024[_0x420b3d(0x8a)](),'stackTrace':_0x41f346},'config':this['userConfig']},_0x18f9f3=_0x525b68[_0x420b3d(0xaa)],_0x5afc75={};_0x5afc75[_0x420b3d(0x86)]=this[_0x420b3d(0xb2)][_0x420b3d(0x86)],_0x5afc75[_0x420b3d(0x88)]=this[_0x420b3d(0xb2)][_0x420b3d(0xcc)];const _0x48dda9={};_0x48dda9[_0x420b3d(0xc1)]=_0x525b68['sztXe'],_0x48dda9[_0x420b3d(0xb1)]=_0x525b68['FppFM'];const _0x7e7298={};_0x7e7298['auth']=_0x5afc75,_0x7e7298[_0x420b3d(0xbd)]=_0x48dda9;const _0x3c52b3=_0x7e7298;_0x525b68[_0x420b3d(0xee)](nodeRequest,_0x525b68[_0x420b3d(0xec)],_0x18f9f3,_0x1ba764,_0x3c52b3,![])[_0x420b3d(0xa5)](_0x315068=>{const _0x2f6812=_0x420b3d;_0x525b68['UFtwV'](debug,_0x2f6812(0x99)+JSON[_0x2f6812(0xed)](_0x315068));})[_0x420b3d(0xbc)](_0x3a7315=>{const _0x3f22f7=_0x420b3d;_0x525b68[_0x3f22f7(0xc8)](debug,_0x3f22f7(0x9c)+util[_0x3f22f7(0xaf)](_0x3a7315));});}static[a84_0x177ec7(0xa8)](_0x5cea1e){const _0x180873=a84_0x177ec7,_0x35cacc={};_0x35cacc['GCXNp']=_0x180873(0xe8),_0x35cacc[_0x180873(0x9a)]=_0x180873(0x86),_0x35cacc['Dnqlu']=_0x180873(0xe4),_0x35cacc[_0x180873(0xe0)]=_0x180873(0xcc),_0x35cacc[_0x180873(0xc0)]=_0x180873(0x88),_0x35cacc[_0x180873(0x9b)]=function(_0x2200e1,_0x3279b4){return _0x2200e1===_0x3279b4;},_0x35cacc[_0x180873(0x85)]=_0x180873(0xac);const _0x2f2e42=_0x35cacc;if(!_0x5cea1e)return;const _0x50b878=[_0x2f2e42['GCXNp'],_0x2f2e42[_0x180873(0x9a)],_0x2f2e42[_0x180873(0xdf)],_0x2f2e42[_0x180873(0xe0)],_0x2f2e42[_0x180873(0xc0)]];for(const _0x1faed8 in _0x5cea1e){if(_0x50b878['includes'](_0x1faed8[_0x180873(0xb8)]()))delete _0x5cea1e[_0x1faed8];else _0x2f2e42[_0x180873(0x9b)](typeof _0x5cea1e[_0x1faed8],_0x2f2e42[_0x180873(0x85)])&&this[_0x180873(0xa8)](_0x5cea1e[_0x1faed8]);}}static[a84_0x177ec7(0xdd)](_0x3687f2){const _0x1129bf=a84_0x177ec7,_0x1e8477=JSON[_0x1129bf(0xd2)](JSON[_0x1129bf(0xed)](_0x3687f2));return this['recursivelyDeletePIIKeysFromObject'](_0x1e8477),_0x1e8477;}}function a84_0x49a6(){const _0x3192cb=['setAllDetails','application/json','335656EaqULQ','nqugU','username','rbHEs','password','apply','toString','inspect','959473gheyBc','exports','getCredentials','includes','XpDEl','setCredentials','Finished\x20::\x20','setFrameworkDetails','.\x20Args\x20-\x20',',\x20Argument\x20-\x20','3290lQrJAY','frameworkVersion','\x20--\x20','[Crash_Report_Upload]\x20Success\x20response:\x20','ejOnl','gZwqr','[Crash_Report_Upload]\x20Failed\x20due\x20to\x20','fdHZd','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','../performance/performance-tester','o11yClassErrorHandler','getFramework','length','getOwnPropertyNames','../helper','then',',\x20PID\x20-\x20','dwDJP','recursivelyDeletePIIKeysFromObject','15305220sDTwQi','NlXJU','CrashReporter','object','FqRDN','frameworkDetails','format','getPerformance','X-BSTACK-TESTOPS','credentials','XqsSj','env','bmITz','uWVZS','UEKkL','toLowerCase','POST','572853bCpYii','.\x20Error\x20-\x20','catch','headers','1515210uPUDxA','BROWSERSTACK_O11Y_PERF_MEASUREMENT','GxikS','Content-Type','getConfig','6ZWzztL','USER_CONFIG_FOR_REPORTING','o11yErrorHandler','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','frameworkName','UFtwV','Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20','userConfig','PTORh','accessKey','CREDENTIALS_FOR_CRASH_REPORTING','SaVJn','uploadCrashReport','forEach','setConfigDetails','parse','inxmc','18261KzbrMW','10oqGZMG','1738544CsCaZZ','11tVQswe','QRtXL','77XsDcMW','Error\x20in\x20executing\x20','ZekPK','name','filterPII','prototype','Dnqlu','KEeDg','initialize','Started\x20::\x20','/api/v1/analytics','key','GJcbi','pid','kiyre','user','BS_TESTOPS_BUILD_HASHED_ID','true','timerify','olsvk','stringify','EGgla'];a84_0x49a6=function(){return _0x3192cb;};return a84_0x49a6();}const a84_0xd83f00={};a84_0xd83f00[a84_0x177ec7(0xc5)]=o11yErrorHandler,a84_0xd83f00[a84_0x177ec7(0xa0)]=o11yClassErrorHandler,a84_0xd83f00[a84_0x177ec7(0xab)]=CrashReporter,module[a84_0x177ec7(0x8d)]=a84_0xd83f00;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a85_0x22a140=a85_0xe068;function a85_0x3a8f(){const _0x2fdd17=['lpzwh','push','IXtcb','api/v1/screenshots','REMOVING','22KILlQD','message','1245200xEkoGu','18EStVCI','3|6|2|1|5|0|4','LMksN','resetEventBatchPolling','proceedWithData','xCGMw','QmplD','RESETTING','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','FwZlQ','BATCH_EVENT_TYPES','splice','2486460EZOMer','data','RiWSf','../helper','format','TestRunFinished','lFaNO','sstaT','queue','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','wbtqL','zTgcJ','TEST_ATTACHMENT','pendingUploads','instance','OcnfB','mBOxu','event_type','eventUrl','\x20bytes.\x20Events\x20are\x20','error','getInstance','35yWbbwL','NFzxG','includes','util','upload-attachments','POST','tePOe','EXCEPTION\x20IN\x20','DRAal','191910PjZTtH','split','NhIFU','HACIJ','pollEventBatchInterval','JCRFz','UUfuR','uploadPending','started','BgzkO','cWGvz','21514872lVQVkr','length','XbnkF','max','1130860ZzFzJX','shutdown','uploadAttachmentUrl','\x20--\x20','AkJdu','1056KdSLdo','shouldProceed','1558yIMxoD','.\x20Request\x20Size\x20-\x20','eCWsP','logs','AnsJf','pVWvB','test_run','HookRunFinished','byteLength','kqhFu','HookRunStarted','slice','wxFXi','removeEventBatchPolling','TestRunStarted','Processing\x20batch\x20events\x20for\x20','42HtvIPS','screenshotEventUrl','TestRunSkipped','nMKdI','kind','764528yDhjDf','AsAhw','Processing\x20events.\x20Queue\x20Length\x20-\x20','./constants','uGcxa','response','LogCreated','startEventBatchPolling','TEST_SCREENSHOT','fRYap','uuid','exports','./utils','proceedWithUrl','start','Remaining\x20Queue\x20Length\x20-\x20','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','api/v1/batch','add','map','join','MEBWI','VWOHg','WLdag'];a85_0x3a8f=function(){return _0x2fdd17;};return a85_0x3a8f();}(function(_0x43df94,_0x395bab){const _0x1b7839=a85_0xe068,_0x1a1cde=_0x43df94();while(!![]){try{const _0x3a0fbe=-parseInt(_0x1b7839(0x1cb))/0x1+parseInt(_0x1b7839(0x22c))/0x2*(-parseInt(_0x1b7839(0x22a))/0x3)+-parseInt(_0x1b7839(0x1f7))/0x4+-parseInt(_0x1b7839(0x20d))/0x5*(parseInt(_0x1b7839(0x216))/0x6)+-parseInt(_0x1b7839(0x1c6))/0x7*(parseInt(_0x1b7839(0x1ea))/0x8)+parseInt(_0x1b7839(0x1eb))/0x9*(-parseInt(_0x1b7839(0x225))/0xa)+-parseInt(_0x1b7839(0x1e8))/0xb*(-parseInt(_0x1b7839(0x221))/0xc);if(_0x3a0fbe===_0x395bab)break;else _0x1a1cde['push'](_0x1a1cde['shift']());}catch(_0x50844f){_0x1a1cde['push'](_0x1a1cde['shift']());}}}(a85_0x3a8f,0x84336));const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require(a85_0x22a140(0x1ce)),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require(a85_0x22a140(0x1d7)),{nestedKeyValue}=require(a85_0x22a140(0x1fa)),util=require(a85_0x22a140(0x210));function a85_0xe068(_0x2682c9,_0x246c99){const _0x3a8f65=a85_0x3a8f();return a85_0xe068=function(_0xe06834,_0x3aeccf){_0xe06834=_0xe06834-0x1bb;let _0x8385d6=_0x3a8f65[_0xe06834];return _0x8385d6;},a85_0xe068(_0x2682c9,_0x246c99);}class RequestQueueHandler{static [a85_0x22a140(0x205)];['pendingUploads']=0x0;constructor(){const _0x285d01=a85_0x22a140,_0xb536b3={};_0xb536b3[_0x285d01(0x1cc)]=_0x285d01(0x1ec),_0xb536b3[_0x285d01(0x1d4)]=_0x285d01(0x1d1),_0xb536b3[_0x285d01(0x201)]='CBTSessionCreated',_0xb536b3[_0x285d01(0x1f0)]=_0x285d01(0x1fc),_0xb536b3[_0x285d01(0x220)]=_0x285d01(0x1c8),_0xb536b3[_0x285d01(0x22e)]=_0x285d01(0x1bd),_0xb536b3['LMksN']=_0x285d01(0x1c4),_0xb536b3[_0x285d01(0x1cf)]=_0x285d01(0x1c0),_0xb536b3['AnsJf']=_0x285d01(0x1e6),_0xb536b3['UUfuR']=_0x285d01(0x1dc),_0xb536b3[_0x285d01(0x1e1)]=_0x285d01(0x211);const _0x2be8ca=_0xb536b3,_0x24ff84=_0x2be8ca[_0x285d01(0x1cc)][_0x285d01(0x217)]('|');let _0x520a70=0x0;while(!![]){switch(_0x24ff84[_0x520a70++]){case'0':this[_0x285d01(0x1f5)]=[_0x2be8ca[_0x285d01(0x1d4)],_0x2be8ca[_0x285d01(0x201)],_0x2be8ca[_0x285d01(0x1f0)],_0x2be8ca[_0x285d01(0x220)],_0x2be8ca[_0x285d01(0x22e)],_0x2be8ca[_0x285d01(0x1ed)],_0x2be8ca[_0x285d01(0x1cf)]];continue;case'1':this[_0x285d01(0x1c7)]=_0x2be8ca[_0x285d01(0x230)];continue;case'2':this[_0x285d01(0x209)]=_0x2be8ca[_0x285d01(0x21c)];continue;case'3':this['queue']=[];continue;case'4':this[_0x285d01(0x21a)]=null;continue;case'5':this[_0x285d01(0x227)]=_0x2be8ca[_0x285d01(0x1e1)];continue;case'6':this[_0x285d01(0x21e)]=![];continue;}break;}}static[a85_0x22a140(0x20c)](){const _0x391395=a85_0x22a140;return!RequestQueueHandler[_0x391395(0x205)]&&(RequestQueueHandler[_0x391395(0x205)]=new RequestQueueHandler()),RequestQueueHandler['instance'];}[a85_0x22a140(0x1d9)]=()=>{const _0x1fa9fd=a85_0x22a140;!this[_0x1fa9fd(0x21e)]&&(this[_0x1fa9fd(0x21e)]=!![],this['startEventBatchPolling']());};[a85_0x22a140(0x1dd)]=_0xa3ab90=>{const _0x509dcb=a85_0x22a140,_0x37953b={'hIoat':function(_0x3f4250,_0x3f4284){return _0x3f4250===_0x3f4284;},'lpzwh':_0x509dcb(0x1d3),'BgzkO':function(_0x243c5d,_0x2cb524){return _0x243c5d>_0x2cb524;},'pVWvB':_0x509dcb(0x203),'rfECw':function(_0x28e089,_0x3fea59){return _0x28e089!==_0x3fea59;},'FwZlQ':_0x509dcb(0x1fc),'YDalG':function(_0x391592,_0x53e61f){return _0x391592(_0x53e61f);},'kqhFu':_0x509dcb(0x200)};if(this[_0x509dcb(0x1f5)][_0x509dcb(0x20f)](_0xa3ab90['event_type'])){if(_0xa3ab90[_0x509dcb(0x22f)]&&_0xa3ab90['logs'][0x0]&&_0x37953b['hIoat'](_0xa3ab90[_0x509dcb(0x22f)][0x0][_0x509dcb(0x1ca)],_0x37953b[_0x509dcb(0x1e3)])){const _0xaabc2d={};return _0xaabc2d[_0x509dcb(0x22b)]=!![],_0xaabc2d['proceedWithData']=[_0xa3ab90],_0xaabc2d[_0x509dcb(0x1d8)]=this[_0x509dcb(0x1c7)],_0xaabc2d;}if(_0xa3ab90[_0x509dcb(0x22f)]&&_0x37953b[_0x509dcb(0x21f)](_0xa3ab90[_0x509dcb(0x22f)][_0x509dcb(0x222)],0x0)&&_0x37953b['hIoat'](_0xa3ab90[_0x509dcb(0x22f)][0x0][_0x509dcb(0x1ca)],_0x37953b[_0x509dcb(0x1bb)])&&_0x37953b['rfECw'](_0xa3ab90['event_type'],_0x37953b[_0x509dcb(0x1f4)])){const _0x47c5f6={};return _0x47c5f6[_0x509dcb(0x22b)]=!![],_0x47c5f6[_0x509dcb(0x1ef)]=[_0xa3ab90],_0x47c5f6[_0x509dcb(0x1d8)]=this[_0x509dcb(0x227)],_0x47c5f6;}this[_0x509dcb(0x1ff)][_0x509dcb(0x1e4)](_0xa3ab90);let _0x125cc9=null;const _0x400bd9=this['shouldProceed']();_0x400bd9&&(_0x37953b['YDalG'](trace,_0x37953b[_0x509dcb(0x1bf)]),_0x125cc9=this[_0x509dcb(0x1ff)][_0x509dcb(0x1c1)](0x0,BATCH_SIZE),this[_0x509dcb(0x1ff)][_0x509dcb(0x1f6)](0x0,BATCH_SIZE),this[_0x509dcb(0x1ee)]());const _0x5c835c={};return _0x5c835c[_0x509dcb(0x22b)]=_0x400bd9,_0x5c835c[_0x509dcb(0x1ef)]=_0x125cc9,_0x5c835c[_0x509dcb(0x1d8)]=this['eventUrl'],_0x5c835c;}const _0x38cd5b={};return _0x38cd5b[_0x509dcb(0x22b)]=!![],_0x38cd5b;};[a85_0x22a140(0x226)]=async()=>{const _0x3aa328=a85_0x22a140,_0x9aaec9={'QmplD':_0x3aa328(0x1e7),'lFaNO':function(_0x5ddd5f,_0x1a920b){return _0x5ddd5f>_0x1a920b;},'RiWSf':'Shutdown-Queue','OcnfB':function(_0x53fd74,_0x13e53d){return _0x53fd74>_0x13e53d;},'nFIOM':function(_0x9c849c,_0x231ee8){return _0x9c849c(_0x231ee8);}};await this[_0x3aa328(0x21d)](),this[_0x3aa328(0x1c3)](_0x9aaec9[_0x3aa328(0x1f1)]);while(_0x9aaec9[_0x3aa328(0x1fd)](this['queue'][_0x3aa328(0x222)],0x0)){const _0x278751=this[_0x3aa328(0x1ff)][_0x3aa328(0x1c1)](0x0,BATCH_SIZE);this[_0x3aa328(0x1ff)][_0x3aa328(0x1f6)](0x0,BATCH_SIZE),await this['batchAndPostEvents'](this[_0x3aa328(0x209)],_0x9aaec9[_0x3aa328(0x1f9)],_0x278751);}_0x9aaec9[_0x3aa328(0x206)](this['pendingUploads'],0x0)&&_0x9aaec9['nFIOM'](debug,'Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20'+this[_0x3aa328(0x204)]);};['batchAndPostEvents']=async(_0x305ae8,_0x2f8f8c,_0x730b02)=>{const _0x5c79e0=a85_0x22a140,_0x5521c9={'QGQBJ':function(_0x19f5cc,_0x736091){return _0x19f5cc(_0x736091);},'KQSvN':'utf8','wxFXi':function(_0x359f69,_0x573457){return _0x359f69(_0x573457);},'eMOpD':function(_0x2c482f){return _0x2c482f();},'NFzxG':function(_0x4aab65,_0x139a83,_0xbeea7f,_0x379a67,_0x1964f3){return _0x4aab65(_0x139a83,_0xbeea7f,_0x379a67,_0x1964f3);},'IXtcb':_0x5c79e0(0x212),'WLdag':function(_0x4c069f,_0x343a54){return _0x4c069f-_0x343a54;},'MEBWI':function(_0xaceaaf,_0x45ab36){return _0xaceaaf(_0x45ab36);}};let _0x1ea292='';try{_0x1ea292=_0x730b02[_0x5c79e0(0x1de)](_0xe2db70=>'\x27'+_0xe2db70[_0x5c79e0(0x208)]+'\x27:'+(nestedKeyValue(_0xe2db70,[_0x5c79e0(0x1bc),'uuid'])||nestedKeyValue(_0xe2db70,['hook_run',_0x5c79e0(0x1d5)])))[_0x5c79e0(0x1df)](','),_0x5521c9['QGQBJ'](debug,_0x5c79e0(0x1c5)+_0x2f8f8c+_0x5c79e0(0x22d)+Buffer[_0x5c79e0(0x1be)](util[_0x5c79e0(0x1fb)]('%j',_0x730b02),_0x5521c9['KQSvN'])+_0x5c79e0(0x20a)+_0x1ea292);}catch(_0x236b75){_0x5521c9[_0x5c79e0(0x1c2)](debug,_0x5c79e0(0x1db)+util[_0x5c79e0(0x1fb)](_0x236b75)+'}');}const _0x392a5c={'headers':_0x5521c9['eMOpD'](getDefaultHeaders)};try{const _0x30aa3d=await _0x5521c9[_0x5c79e0(0x20e)](nodeRequest,_0x5521c9[_0x5c79e0(0x1e5)],_0x305ae8,_0x730b02,_0x392a5c);if(_0x30aa3d['data'][_0x5c79e0(0x20b)]){const _0x67aaf8={};_0x67aaf8[_0x5c79e0(0x1e9)]=_0x30aa3d[_0x5c79e0(0x1f8)][_0x5c79e0(0x20b)];throw _0x67aaf8;}else _0x5521c9[_0x5c79e0(0x1c2)](debug,_0x2f8f8c+'\x20event\x20successful\x20for\x20events\x20'+_0x1ea292+_0x5c79e0(0x228)+util[_0x5c79e0(0x1fb)]('%j',_0x30aa3d[_0x5c79e0(0x1f8)])),this[_0x5c79e0(0x204)]=Math[_0x5c79e0(0x224)](0x0,_0x5521c9[_0x5c79e0(0x1e2)](this['pendingUploads'],_0x730b02[_0x5c79e0(0x222)]));}catch(_0x413875){_0x413875[_0x5c79e0(0x1d0)]?_0x5521c9[_0x5c79e0(0x1e0)](debug,'EXCEPTION\x20IN\x20'+_0x2f8f8c+_0x5c79e0(0x1f3)+_0x413875['response']['status']+'\x20'+_0x413875[_0x5c79e0(0x1d0)]['statusText']+'\x20'+util[_0x5c79e0(0x1fb)]('%j',_0x413875[_0x5c79e0(0x1d0)])):_0x5521c9[_0x5c79e0(0x1c2)](debug,_0x5c79e0(0x214)+_0x2f8f8c+_0x5c79e0(0x1f3)+(_0x413875['message']||_0x413875)),this[_0x5c79e0(0x204)]=Math[_0x5c79e0(0x224)](0x0,_0x5521c9[_0x5c79e0(0x1e2)](this[_0x5c79e0(0x204)],_0x730b02[_0x5c79e0(0x222)]));}};[a85_0x22a140(0x1d2)]=()=>{const _0x685cf5=a85_0x22a140,_0x16446c={'dEdpb':function(_0x5dbff1,_0x5cbed5){return _0x5dbff1>_0x5cbed5;},'DRAal':function(_0x180584,_0x131d0f){return _0x180584(_0x131d0f);},'AkJdu':'Interval-Queue','nMKdI':function(_0xfd00fd,_0x1b349e){return _0xfd00fd(_0x1b349e);},'JCRFz':function(_0x56159f,_0x4d56fc,_0x4bf39d){return _0x56159f(_0x4d56fc,_0x4bf39d);}};this[_0x685cf5(0x21a)]=_0x16446c[_0x685cf5(0x21b)](setInterval,async()=>{const _0x18d512=_0x685cf5;if(_0x16446c['dEdpb'](this[_0x18d512(0x1ff)]['length'],0x0)){_0x16446c[_0x18d512(0x215)](trace,_0x18d512(0x1cd)+this['queue'][_0x18d512(0x222)]);const _0x2b418b=this['queue'][_0x18d512(0x1c1)](0x0,BATCH_SIZE);this[_0x18d512(0x1ff)][_0x18d512(0x1f6)](0x0,BATCH_SIZE),await this['batchAndPostEvents'](this[_0x18d512(0x209)],_0x16446c[_0x18d512(0x229)],_0x2b418b),_0x16446c[_0x18d512(0x1c9)](trace,_0x18d512(0x1da)+this[_0x18d512(0x1ff)][_0x18d512(0x222)]);}},BATCH_INTERVAL);};[a85_0x22a140(0x1ee)]=()=>{const _0x2943a6=a85_0x22a140,_0x100622={};_0x100622[_0x2943a6(0x1fe)]=_0x2943a6(0x1f2);const _0x67cbb7=_0x100622;this[_0x2943a6(0x1c3)](_0x67cbb7[_0x2943a6(0x1fe)]),this[_0x2943a6(0x1d2)]();};[a85_0x22a140(0x1c3)]=_0x4966c2=>{const _0x3cbbe9=a85_0x22a140,_0x2c2435={'HACIJ':function(_0x2970d8,_0x413227){return _0x2970d8(_0x413227);},'QfZXE':function(_0x276671,_0xc9386f){return _0x276671===_0xc9386f;},'tePOe':_0x3cbbe9(0x1e7)};this[_0x3cbbe9(0x21a)]&&(_0x2c2435[_0x3cbbe9(0x219)](clearInterval,this[_0x3cbbe9(0x21a)]),this['pollEventBatchInterval']=null,_0x2c2435['QfZXE'](_0x4966c2,_0x2c2435[_0x3cbbe9(0x213)])&&(this[_0x3cbbe9(0x21e)]=![]));};[a85_0x22a140(0x22b)]=()=>{const _0x42b5ec=a85_0x22a140,_0x1b57de={};_0x1b57de[_0x42b5ec(0x202)]=function(_0x5494af,_0x548a81){return _0x5494af>=_0x548a81;};const _0x5685ea=_0x1b57de;return _0x5685ea[_0x42b5ec(0x202)](this[_0x42b5ec(0x1ff)]['length'],BATCH_SIZE);};async[a85_0x22a140(0x21d)](_0x70182=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x3db34b=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x53358d=a85_0x22a140,_0x568acd={'NhIFU':function(_0x58de2d,_0x1281d9){return _0x58de2d<=_0x1281d9;},'XbnkF':function(_0x48306a,_0x3a8620){return _0x48306a(_0x3a8620);},'mBOxu':function(_0x22ea1f,_0x4512ad){return _0x22ea1f-_0x4512ad;}};if(_0x568acd['NhIFU'](this[_0x53358d(0x204)],0x0)||_0x568acd[_0x53358d(0x218)](_0x70182,0x0))return;return await _0x568acd[_0x53358d(0x223)](sleep,_0x3db34b),this[_0x53358d(0x21d)](_0x568acd[_0x53358d(0x207)](_0x70182,_0x3db34b));}}module[a85_0x22a140(0x1d6)]=RequestQueueHandler;
|
|
1
|
+
const a85_0x3da21d=a85_0x4b78;(function(_0x5b6ba1,_0x20bb90){const _0x5c6816=a85_0x4b78,_0x4ba4e2=_0x5b6ba1();while(!![]){try{const _0xead0dd=parseInt(_0x5c6816(0x1d4))/0x1*(-parseInt(_0x5c6816(0x202))/0x2)+-parseInt(_0x5c6816(0x1ba))/0x3+-parseInt(_0x5c6816(0x1b7))/0x4*(-parseInt(_0x5c6816(0x1f6))/0x5)+parseInt(_0x5c6816(0x1c0))/0x6*(-parseInt(_0x5c6816(0x204))/0x7)+parseInt(_0x5c6816(0x1b4))/0x8+-parseInt(_0x5c6816(0x1dc))/0x9*(parseInt(_0x5c6816(0x217))/0xa)+parseInt(_0x5c6816(0x1ee))/0xb;if(_0xead0dd===_0x20bb90)break;else _0x4ba4e2['push'](_0x4ba4e2['shift']());}catch(_0x4ffb38){_0x4ba4e2['push'](_0x4ba4e2['shift']());}}}(a85_0x2ae2,0x2e416));function a85_0x4b78(_0x3bf25f,_0x355808){const _0x2ae224=a85_0x2ae2();return a85_0x4b78=function(_0x4b78f8,_0x484319){_0x4b78f8=_0x4b78f8-0x1ac;let _0xc7d5ba=_0x2ae224[_0x4b78f8];return _0xc7d5ba;},a85_0x4b78(_0x3bf25f,_0x355808);}const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require('./constants'),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require(a85_0x3da21d(0x216)),{nestedKeyValue}=require(a85_0x3da21d(0x1c5)),util=require(a85_0x3da21d(0x1cb));class RequestQueueHandler{static [a85_0x3da21d(0x1c9)];['pendingUploads']=0x0;constructor(){const _0x2242f4=a85_0x3da21d,_0x1d9ec7={};_0x1d9ec7[_0x2242f4(0x1b6)]='5|6|0|4|1|2|3',_0x1d9ec7[_0x2242f4(0x1f1)]=_0x2242f4(0x1e5),_0x1d9ec7['gTyRs']=_0x2242f4(0x1c4),_0x1d9ec7['hIxNc']=_0x2242f4(0x206),_0x1d9ec7[_0x2242f4(0x1fb)]=_0x2242f4(0x1fa),_0x1d9ec7[_0x2242f4(0x1eb)]=_0x2242f4(0x21e),_0x1d9ec7['PFGUt']=_0x2242f4(0x1c8),_0x1d9ec7[_0x2242f4(0x21d)]='HookRunFinished',_0x1d9ec7['FHkCD']=_0x2242f4(0x1ed),_0x1d9ec7[_0x2242f4(0x213)]=_0x2242f4(0x1cc),_0x1d9ec7[_0x2242f4(0x1ca)]=_0x2242f4(0x1f8);const _0x49bd59=_0x1d9ec7,_0x38ba8c=_0x49bd59[_0x2242f4(0x1b6)][_0x2242f4(0x1da)]('|');let _0x55cee0=0x0;while(!![]){switch(_0x38ba8c[_0x55cee0++]){case'0':this[_0x2242f4(0x1ea)]=_0x49bd59['daOxD'];continue;case'1':this[_0x2242f4(0x21c)]=_0x49bd59['gTyRs'];continue;case'2':this['BATCH_EVENT_TYPES']=[_0x49bd59['hIxNc'],_0x49bd59[_0x2242f4(0x1fb)],_0x49bd59[_0x2242f4(0x1eb)],_0x49bd59[_0x2242f4(0x1d0)],_0x49bd59['kSTgJ'],_0x49bd59[_0x2242f4(0x205)],_0x49bd59[_0x2242f4(0x213)]];continue;case'3':this[_0x2242f4(0x218)]=null;continue;case'4':this['screenshotEventUrl']=_0x49bd59[_0x2242f4(0x1ca)];continue;case'5':this['queue']=[];continue;case'6':this['started']=![];continue;}break;}}static[a85_0x3da21d(0x1e4)](){const _0x466fe0=a85_0x3da21d;return!RequestQueueHandler[_0x466fe0(0x1c9)]&&(RequestQueueHandler['instance']=new RequestQueueHandler()),RequestQueueHandler[_0x466fe0(0x1c9)];}[a85_0x3da21d(0x1ce)]=()=>{const _0x914a1f=a85_0x3da21d;!this['started']&&(this[_0x914a1f(0x1e6)]=!![],this[_0x914a1f(0x1b5)]());};[a85_0x3da21d(0x1ff)]=_0x4dc47f=>{const _0x2240c3=a85_0x3da21d,_0x59c0dc={'XoafN':function(_0x327b50,_0x11f0dd){return _0x327b50===_0x11f0dd;},'XrpYj':'TEST_SCREENSHOT','jhggo':function(_0x2ade13,_0x4b0700){return _0x2ade13>_0x4b0700;},'yltIv':_0x2240c3(0x1f9),'avuys':function(_0x454fcb,_0x3e3be7){return _0x454fcb!==_0x3e3be7;},'fOIGq':'TestRunFinished','CvWdp':function(_0x2ea772,_0x175af4){return _0x2ea772(_0x175af4);},'mHmtT':_0x2240c3(0x1d2)};if(this[_0x2240c3(0x20a)]['includes'](_0x4dc47f[_0x2240c3(0x1d1)])){if(_0x4dc47f[_0x2240c3(0x1d7)]&&_0x4dc47f[_0x2240c3(0x1d7)][0x0]&&_0x59c0dc[_0x2240c3(0x1cd)](_0x4dc47f['logs'][0x0][_0x2240c3(0x21f)],_0x59c0dc[_0x2240c3(0x1c6)])){const _0x176b5b={};return _0x176b5b[_0x2240c3(0x1c7)]=!![],_0x176b5b[_0x2240c3(0x215)]=[_0x4dc47f],_0x176b5b[_0x2240c3(0x1ec)]=this[_0x2240c3(0x1b0)],_0x176b5b;}if(_0x4dc47f['logs']&&_0x59c0dc['jhggo'](_0x4dc47f[_0x2240c3(0x1d7)][_0x2240c3(0x1f7)],0x0)&&_0x59c0dc[_0x2240c3(0x1cd)](_0x4dc47f[_0x2240c3(0x1d7)][0x0][_0x2240c3(0x21f)],_0x59c0dc[_0x2240c3(0x200)])&&_0x59c0dc[_0x2240c3(0x1bb)](_0x4dc47f['event_type'],_0x59c0dc[_0x2240c3(0x1f0)])){const _0x3bd001={};return _0x3bd001['shouldProceed']=!![],_0x3bd001[_0x2240c3(0x215)]=[_0x4dc47f],_0x3bd001[_0x2240c3(0x1ec)]=this[_0x2240c3(0x21c)],_0x3bd001;}this[_0x2240c3(0x1b9)][_0x2240c3(0x1db)](_0x4dc47f);let _0x5805b9=null;const _0x4c830f=this[_0x2240c3(0x1c7)]();_0x4c830f&&(_0x59c0dc['CvWdp'](trace,_0x59c0dc[_0x2240c3(0x1d5)]),_0x5805b9=this['queue'][_0x2240c3(0x201)](0x0,BATCH_SIZE),this[_0x2240c3(0x1b9)][_0x2240c3(0x1f5)](0x0,BATCH_SIZE),this[_0x2240c3(0x20b)]());const _0x30243d={};return _0x30243d['shouldProceed']=_0x4c830f,_0x30243d[_0x2240c3(0x215)]=_0x5805b9,_0x30243d[_0x2240c3(0x1ec)]=this[_0x2240c3(0x1ea)],_0x30243d;}const _0x4bbd7b={};return _0x4bbd7b[_0x2240c3(0x1c7)]=!![],_0x4bbd7b;};[a85_0x3da21d(0x1e7)]=async()=>{const _0x1c536e=a85_0x3da21d,_0x524c93={'NAORF':'REMOVING','xoFyP':function(_0x1eb2cf,_0x2e1a91){return _0x1eb2cf>_0x2e1a91;},'ocTeC':'Shutdown-Queue','yNOQo':function(_0x51d96e,_0x252e11){return _0x51d96e>_0x252e11;},'xWwXj':function(_0x1362ae,_0x43030d){return _0x1362ae(_0x43030d);}};await this[_0x1c536e(0x1df)](),this[_0x1c536e(0x211)](_0x524c93[_0x1c536e(0x208)]);while(_0x524c93[_0x1c536e(0x1ae)](this[_0x1c536e(0x1b9)][_0x1c536e(0x1f7)],0x0)){const _0x5c65e4=this[_0x1c536e(0x1b9)]['slice'](0x0,BATCH_SIZE);this[_0x1c536e(0x1b9)]['splice'](0x0,BATCH_SIZE),await this[_0x1c536e(0x1bf)](this[_0x1c536e(0x1ea)],_0x524c93[_0x1c536e(0x1de)],_0x5c65e4);}_0x524c93[_0x1c536e(0x1b2)](this['pendingUploads'],0x0)&&_0x524c93[_0x1c536e(0x1d6)](debug,'Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20'+this[_0x1c536e(0x207)]);};[a85_0x3da21d(0x1bf)]=async(_0x470eec,_0x38a421,_0xc590b8)=>{const _0x564f69=a85_0x3da21d,_0x363801={'UccST':function(_0xba0733,_0x3f5eb4){return _0xba0733(_0x3f5eb4);},'EpdKa':_0x564f69(0x1ad),'MZtCy':function(_0x421450){return _0x421450();},'ruKVU':function(_0x14439a,_0x2f6721,_0x2e7a56,_0x43d0a8,_0x136021){return _0x14439a(_0x2f6721,_0x2e7a56,_0x43d0a8,_0x136021);},'zNHUW':'POST','bPOsz':function(_0x302391,_0x45c33e){return _0x302391(_0x45c33e);},'xHSnc':function(_0x193551,_0x4a36bf){return _0x193551-_0x4a36bf;},'lSGBr':function(_0x257d47,_0x17319b){return _0x257d47(_0x17319b);},'llSes':function(_0x13f657,_0x5a10d0){return _0x13f657(_0x5a10d0);}};let _0x1a93cf='';try{_0x1a93cf=_0xc590b8[_0x564f69(0x1be)](_0x3328cd=>'\x27'+_0x3328cd[_0x564f69(0x1d1)]+'\x27:'+(nestedKeyValue(_0x3328cd,[_0x564f69(0x21b),_0x564f69(0x1b8)])||nestedKeyValue(_0x3328cd,[_0x564f69(0x1e1),_0x564f69(0x1b8)])))['join'](','),_0x363801[_0x564f69(0x1cf)](debug,'Processing\x20batch\x20events\x20for\x20'+_0x38a421+_0x564f69(0x214)+Buffer[_0x564f69(0x212)](util[_0x564f69(0x1ef)]('%j',_0xc590b8),_0x363801[_0x564f69(0x209)])+_0x564f69(0x20f)+_0x1a93cf);}catch(_0x35f813){_0x363801[_0x564f69(0x1cf)](debug,_0x564f69(0x1f2)+util[_0x564f69(0x1ef)](_0x35f813)+'}');}const _0x326374={'headers':_0x363801[_0x564f69(0x1c1)](getDefaultHeaders)};try{const _0x441654=await _0x363801[_0x564f69(0x1bd)](nodeRequest,_0x363801[_0x564f69(0x1b1)],_0x470eec,_0xc590b8,_0x326374);if(_0x441654[_0x564f69(0x1f3)]['error']){const _0x566225={};_0x566225[_0x564f69(0x1fd)]=_0x441654[_0x564f69(0x1f3)][_0x564f69(0x1d9)];throw _0x566225;}else _0x363801[_0x564f69(0x1bc)](debug,_0x38a421+'\x20event\x20successful\x20for\x20events\x20'+_0x1a93cf+_0x564f69(0x1f4)+util[_0x564f69(0x1ef)]('%j',_0x441654[_0x564f69(0x1f3)])),this['pendingUploads']=Math[_0x564f69(0x1af)](0x0,_0x363801[_0x564f69(0x1e0)](this[_0x564f69(0x207)],_0xc590b8[_0x564f69(0x1f7)]));}catch(_0x3b1c00){_0x3b1c00['response']?_0x363801[_0x564f69(0x20c)](debug,_0x564f69(0x1dd)+_0x38a421+_0x564f69(0x21a)+_0x3b1c00['response']['status']+'\x20'+_0x3b1c00[_0x564f69(0x1d8)][_0x564f69(0x1fc)]+'\x20'+util[_0x564f69(0x1ef)]('%j',_0x3b1c00[_0x564f69(0x1d8)])):_0x363801[_0x564f69(0x1d3)](debug,_0x564f69(0x1dd)+_0x38a421+_0x564f69(0x21a)+(_0x3b1c00['message']||_0x3b1c00)),this['pendingUploads']=Math[_0x564f69(0x1af)](0x0,_0x363801['xHSnc'](this[_0x564f69(0x207)],_0xc590b8[_0x564f69(0x1f7)]));}};[a85_0x3da21d(0x1b5)]=()=>{const _0x3f8002=a85_0x3da21d,_0x74bcbb={'OfKUy':function(_0x560e0a,_0x3657ea){return _0x560e0a>_0x3657ea;},'FWywh':function(_0x178d2a,_0x2a5868){return _0x178d2a(_0x2a5868);},'VEniI':'Interval-Queue','AMLel':function(_0x6ffad8,_0x155617){return _0x6ffad8(_0x155617);},'PadVx':function(_0x57def2,_0x4a158d,_0x3bbf4c){return _0x57def2(_0x4a158d,_0x3bbf4c);}};this['pollEventBatchInterval']=_0x74bcbb[_0x3f8002(0x1c3)](setInterval,async()=>{const _0x240f88=_0x3f8002;if(_0x74bcbb[_0x240f88(0x20e)](this['queue'][_0x240f88(0x1f7)],0x0)){_0x74bcbb['FWywh'](trace,_0x240f88(0x219)+this[_0x240f88(0x1b9)][_0x240f88(0x1f7)]);const _0x34392e=this[_0x240f88(0x1b9)][_0x240f88(0x201)](0x0,BATCH_SIZE);this[_0x240f88(0x1b9)]['splice'](0x0,BATCH_SIZE),await this[_0x240f88(0x1bf)](this['eventUrl'],_0x74bcbb['VEniI'],_0x34392e),_0x74bcbb[_0x240f88(0x1e8)](trace,'Remaining\x20Queue\x20Length\x20-\x20'+this[_0x240f88(0x1b9)][_0x240f88(0x1f7)]);}},BATCH_INTERVAL);};['resetEventBatchPolling']=()=>{const _0x3fbfbe=a85_0x3da21d,_0x18b138={};_0x18b138[_0x3fbfbe(0x1ac)]=_0x3fbfbe(0x20d);const _0x1a459b=_0x18b138;this[_0x3fbfbe(0x211)](_0x1a459b['erzbj']),this[_0x3fbfbe(0x1b5)]();};['removeEventBatchPolling']=_0x1d0ca7=>{const _0x321b8c=a85_0x3da21d,_0x4a252b={'qMEJJ':function(_0x1c0844,_0x1efe83){return _0x1c0844(_0x1efe83);},'bEbsD':function(_0x1a0842,_0x54036f){return _0x1a0842===_0x54036f;},'EIVJb':_0x321b8c(0x1fe)};this[_0x321b8c(0x218)]&&(_0x4a252b[_0x321b8c(0x210)](clearInterval,this[_0x321b8c(0x218)]),this[_0x321b8c(0x218)]=null,_0x4a252b['bEbsD'](_0x1d0ca7,_0x4a252b[_0x321b8c(0x1e3)])&&(this[_0x321b8c(0x1e6)]=![]));};[a85_0x3da21d(0x1c7)]=()=>{const _0x3ba7c2=a85_0x3da21d,_0x261ffa={};_0x261ffa[_0x3ba7c2(0x1e2)]=function(_0x44a15c,_0x13357c){return _0x44a15c>=_0x13357c;};const _0x4aad05=_0x261ffa;return _0x4aad05['EekSq'](this[_0x3ba7c2(0x1b9)][_0x3ba7c2(0x1f7)],BATCH_SIZE);};async[a85_0x3da21d(0x1df)](_0x4267a7=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x490349=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x4dd804=a85_0x3da21d,_0x2414f4={'FQVuu':function(_0x564f18,_0x2ec39b){return _0x564f18<=_0x2ec39b;},'suYsK':function(_0x391274,_0x503018){return _0x391274(_0x503018);},'fickO':function(_0x4d12a2,_0x2d6fb9){return _0x4d12a2-_0x2d6fb9;}};if(_0x2414f4[_0x4dd804(0x1b3)](this[_0x4dd804(0x207)],0x0)||_0x2414f4['FQVuu'](_0x4267a7,0x0))return;return await _0x2414f4[_0x4dd804(0x1c2)](sleep,_0x490349),this['uploadPending'](_0x2414f4[_0x4dd804(0x203)](_0x4267a7,_0x490349));}}module[a85_0x3da21d(0x1e9)]=RequestQueueHandler;function a85_0x2ae2(){const _0x5d7e7f=['OfKUy','\x20bytes.\x20Events\x20are\x20','qMEJJ','removeEventBatchPolling','byteLength','UUtDs','.\x20Request\x20Size\x20-\x20','proceedWithData','./utils','790eBRQsF','pollEventBatchInterval','Processing\x20events.\x20Queue\x20Length\x20-\x20','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','test_run','uploadAttachmentUrl','kSTgJ','TestRunFinished','kind','erzbj','utf8','xoFyP','max','screenshotEventUrl','zNHUW','yNOQo','FQVuu','1823552iWLTCA','startEventBatchPolling','jTFRc','29776kVxWop','uuid','queue','329268tIDOIF','avuys','bPOsz','ruKVU','map','batchAndPostEvents','149538emKdXV','MZtCy','suYsK','PadVx','upload-attachments','../helper','XrpYj','shouldProceed','TestRunSkipped','instance','lAxnn','util','HookRunStarted','XoafN','start','UccST','PFGUt','event_type','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','llSes','102sKQxgI','mHmtT','xWwXj','logs','response','error','split','push','28881OuCoOv','EXCEPTION\x20IN\x20','ocTeC','uploadPending','xHSnc','hook_run','EekSq','EIVJb','getInstance','api/v1/batch','started','shutdown','AMLel','exports','eventUrl','OqhXk','proceedWithUrl','TestRunStarted','1703273AuyByS','format','fOIGq','daOxD','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','data','\x20--\x20','splice','215RqqrfD','length','api/v1/screenshots','TEST_ATTACHMENT','CBTSessionCreated','FvyZQ','statusText','message','REMOVING','add','yltIv','slice','12qbHAdv','fickO','42vrPkdI','FHkCD','LogCreated','pendingUploads','NAORF','EpdKa','BATCH_EVENT_TYPES','resetEventBatchPolling','lSGBr','RESETTING'];a85_0x2ae2=function(){return _0x5d7e7f;};return a85_0x2ae2();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a86_0x5ad2bb=a86_0x679f;(function(_0xc9eb59,_0x371052){const _0x3751d3=a86_0x679f,_0x537591=_0xc9eb59();while(!![]){try{const _0x4482e6=parseInt(_0x3751d3(0xc8))/0x1+parseInt(_0x3751d3(0x106))/0x2*(parseInt(_0x3751d3(0x118))/0x3)+-parseInt(_0x3751d3(0x115))/0x4+-parseInt(_0x3751d3(0xde))/0x5*(parseInt(_0x3751d3(0x129))/0x6)+-parseInt(_0x3751d3(0xbc))/0x7+parseInt(_0x3751d3(0x120))/0x8*(parseInt(_0x3751d3(0x100))/0x9)+parseInt(_0x3751d3(0xf7))/0xa;if(_0x4482e6===_0x371052)break;else _0x537591['push'](_0x537591['shift']());}catch(_0x2011bb){_0x537591['push'](_0x537591['shift']());}}}(a86_0x44fa,0x5a564));const bsSetupHelper=require(a86_0x5ad2bb(0x8d)),path=require('path'),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a86_0x5ad2bb(0xe4)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a86_0x5ad2bb(0x132)),RequestQueueHandler=require('./requestQueueHandler'),logger=require(a86_0x5ad2bb(0xfd))[a86_0x5ad2bb(0x12a)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap}=require(a86_0x5ad2bb(0x127)),util=require(a86_0x5ad2bb(0xbe));class SessionHandler{static [a86_0x5ad2bb(0xab)]=RequestQueueHandler['getInstance']();static async[a86_0x5ad2bb(0xad)](_0x54145f,_0x3a6d31){const _0x18ddc8=a86_0x5ad2bb,_0x5acd27={'BuzWh':function(_0x70fc37,_0x543683){return _0x70fc37||_0x543683;},'ZuEFQ':function(_0x2b511d,_0x392acf){return _0x2b511d||_0x392acf;},'ZdiCT':function(_0x18b310,_0x32ec72){return _0x18b310===_0x32ec72;},'BCbEM':function(_0x1cf402,_0x4ab7a6){return _0x1cf402(_0x4ab7a6);},'Jktgz':_0x18ddc8(0x9b),'GmIvn':_0x18ddc8(0x8b),'gZkCl':'json','RMnjW':function(_0x17d38b,_0x30e7e8){return _0x17d38b(_0x30e7e8);},'XYXIG':function(_0xc1f9cf,_0x59290a,_0x5cc372,_0x3ac46f,_0x4b29af){return _0xc1f9cf(_0x59290a,_0x5cc372,_0x3ac46f,_0x4b29af);},'HBYcP':_0x18ddc8(0x11f),'oihXf':_0x18ddc8(0x125),'VcEEv':function(_0x378abb,_0x61c999){return _0x378abb(_0x61c999);},'AgBmR':_0x18ddc8(0x11a),'KVEgD':function(_0x3fa21e){return _0x3fa21e();},'BQRmx':'true','MTuem':'null','ApLud':function(_0x5727fd,_0x5c30bc){return _0x5727fd(_0x5c30bc);},'eLZWB':'ERROR_INVALID_CREDENTIALS','SjDTK':_0x18ddc8(0xb3),'FMHuh':_0x18ddc8(0xdf)},_0x470522=bsSetupHelper[_0x18ddc8(0xc3)](_0x54145f),_0x1db020=bsSetupHelper[_0x18ddc8(0x9c)](_0x54145f),_0x5d36f7=_0x5acd27['BuzWh'](_0x470522,'')+':'+_0x5acd27[_0x18ddc8(0xc4)](_0x1db020,'');if(_0x5acd27[_0x18ddc8(0xa6)](_0x5d36f7,':'))return _0x5acd27[_0x18ddc8(0xfa)](debug,_0x5acd27[_0x18ddc8(0xf8)]),process[_0x18ddc8(0x10a)]['BS_TESTOPS_BUILD_COMPLETED']=_0x5acd27[_0x18ddc8(0x107)],[null,null];let _0x4ba922=![],_0x12ee32=![];if(_0x54145f[_0x18ddc8(0x103)]&&_0x54145f[_0x18ddc8(0xd5)])_0x12ee32=!![];else _0x54145f[_0x18ddc8(0x103)]&&(_0x4ba922=!![]);try{const _0x8ff9d0={'format':_0x5acd27[_0x18ddc8(0xe0)],'project_name':_0x54145f[_0x18ddc8(0xe7)]||'','name':_0x54145f[_0x18ddc8(0xb9)]||path[_0x18ddc8(0x95)](path[_0x18ddc8(0xa2)](process[_0x18ddc8(0xf6)]())),'build_identifier':_0x54145f['buildIdentifier'],'description':_0x54145f['buildDescription']||'','start_time':new Date()[_0x18ddc8(0xa8)](),'tags':_0x5acd27[_0x18ddc8(0xdd)](getCustomTags,_0x54145f),'host_info':bsSetupHelper[_0x18ddc8(0xca)](),'ci_info':bsSetupHelper[_0x18ddc8(0xc6)](),'build_run_identifier':process['env'][_0x18ddc8(0x128)],'failed_tests_rerun':process[_0x18ddc8(0x10a)]['BROWSERSTACK_RERUN']||![],'version_control':await bsSetupHelper[_0x18ddc8(0xe9)](),'observability_version':{'frameworkName':_0x3a6d31[_0x18ddc8(0xd1)],'frameworkVersion':_0x3a6d31[_0x18ddc8(0xe6)],'sdkVersion':bsSetupHelper['getAgentVersion']()},'product_map':_0x5acd27['RMnjW'](getProductMap,_0x54145f)},_0x2e7fa3={};_0x2e7fa3[_0x18ddc8(0xd4)]=_0x470522,_0x2e7fa3['password']=_0x1db020;const _0x3429f5={'auth':_0x2e7fa3,'headers':_0x5acd27['RMnjW'](getDefaultHeaders,![])},_0x310f96=await _0x5acd27[_0x18ddc8(0xa0)](nodeRequest,_0x5acd27[_0x18ddc8(0xd3)],_0x5acd27[_0x18ddc8(0x130)],_0x8ff9d0,_0x3429f5);_0x5acd27['VcEEv'](debug,_0x5acd27['AgBmR']);const _0x45e647=_0x310f96[_0x18ddc8(0xa5)];_0x45e647[_0x18ddc8(0xaf)]&&(process[_0x18ddc8(0x10a)]['BROWSERSTACK_TESTHUB_UUID']=_0x45e647[_0x18ddc8(0xaf)]);if(_0x5acd27[_0x18ddc8(0xe5)](isTestObservabilitySession)){process['env'][_0x18ddc8(0xd0)]=_0x5acd27[_0x18ddc8(0x113)];if(_0x45e647[_0x18ddc8(0x121)]){process[_0x18ddc8(0x10a)][_0x18ddc8(0xec)]=_0x45e647[_0x18ddc8(0x121)];const _0x1ab835={};_0x1ab835['username']=_0x470522,_0x1ab835[_0x18ddc8(0x104)]=_0x1db020,process[_0x18ddc8(0x10a)][_0x18ddc8(0xeb)]=JSON[_0x18ddc8(0xb5)](_0x1ab835);}_0x45e647[_0x18ddc8(0xaf)]&&(process['env'][_0x18ddc8(0x90)]=_0x45e647[_0x18ddc8(0xaf)]),_0x45e647['allow_screenshots']&&(process[_0x18ddc8(0x10a)][_0x18ddc8(0x101)]=_0x45e647[_0x18ddc8(0x122)][_0x18ddc8(0x126)]());}return[_0x310f96[_0x18ddc8(0xa5)]['jwt'],_0x310f96[_0x18ddc8(0xa5)][_0x18ddc8(0xaf)],_0x310f96[_0x18ddc8(0xa5)][_0x18ddc8(0x122)]];}catch(_0x5eca11){process['env']['BROWSERSTACK_TESTHUB_UUID']=_0x5acd27['MTuem'],process[_0x18ddc8(0x10a)][_0x18ddc8(0xd0)]=_0x5acd27[_0x18ddc8(0x107)],process[_0x18ddc8(0x10a)][_0x18ddc8(0xec)]=_0x5acd27[_0x18ddc8(0xaa)],process[_0x18ddc8(0x10a)]['BS_TESTOPS_BUILD_HASHED_ID']=_0x5acd27[_0x18ddc8(0xaa)],process[_0x18ddc8(0x10a)][_0x18ddc8(0x101)]=_0x5acd27[_0x18ddc8(0xaa)];_0x5eca11[_0x18ddc8(0x91)]?_0x5acd27['VcEEv'](debug,'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20'+_0x5eca11[_0x18ddc8(0x91)][_0x18ddc8(0xff)]+'\x20'+_0x5eca11[_0x18ddc8(0x91)]['statusText']+'\x20'+JSON[_0x18ddc8(0xb5)](_0x5eca11[_0x18ddc8(0x91)]['data'])):_0x5acd27['ApLud'](debug,'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20'+(_0x5eca11[_0x18ddc8(0x98)]||_0x5eca11));if(_0x5eca11&&_0x5eca11[_0x18ddc8(0x98)]){const _0xb6dc5=_0x5eca11[_0x18ddc8(0x98)];switch(_0x5eca11[_0x18ddc8(0x94)]){case _0x5acd27[_0x18ddc8(0xd2)]:logger[_0x18ddc8(0x9f)](_0xb6dc5);break;case _0x5acd27[_0x18ddc8(0x12f)]:logger[_0x18ddc8(0x9a)](_0xb6dc5);break;case _0x5acd27[_0x18ddc8(0x97)]:logger[_0x18ddc8(0x9f)](_0xb6dc5);break;default:logger[_0x18ddc8(0x9f)](_0xb6dc5);}}else console['info'](_0x18ddc8(0x96)+_0x5eca11);return[null,null,null];}}static async[a86_0x5ad2bb(0x123)](){const _0x430173=a86_0x5ad2bb,_0x545509={'cuXSn':_0x430173(0xbf),'AMaVo':_0x430173(0x8b),'wNFbh':function(_0x301f9e,_0x2df5ee){return _0x301f9e(_0x2df5ee);}},_0x15a5e6=process[_0x430173(0x10a)][_0x430173(0xd0)];if([_0x545509['cuXSn'],_0x545509[_0x430173(0x12e)]][_0x430173(0x88)](_0x15a5e6))return;while([_0x545509[_0x430173(0xef)],_0x545509[_0x430173(0x12e)]][_0x430173(0x88)](_0x15a5e6)){await _0x545509[_0x430173(0xf0)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static['getLogTag'](_0x18c211){const _0x2b830b=a86_0x5ad2bb,_0x2da80f={};_0x2da80f[_0x2b830b(0xd9)]='Test_Start_Upload',_0x2da80f[_0x2b830b(0xcf)]=_0x2b830b(0xa4),_0x2da80f[_0x2b830b(0xda)]=_0x2b830b(0xd6),_0x2da80f[_0x2b830b(0x9e)]=_0x2b830b(0x11d),_0x2da80f[_0x2b830b(0x116)]=_0x2b830b(0xe1),_0x2da80f[_0x2b830b(0x110)]='Hook_End_Upload',_0x2da80f['gGAgB']=_0x2b830b(0xc7);const _0x162df9=_0x2da80f,_0x3a14c4={};return _0x3a14c4['TestRunStarted']=_0x162df9['naJYK'],_0x3a14c4[_0x2b830b(0x11c)]=_0x162df9[_0x2b830b(0xcf)],_0x3a14c4['TestRunSkipped']=_0x162df9[_0x2b830b(0xda)],_0x3a14c4[_0x2b830b(0x99)]=_0x162df9[_0x2b830b(0x9e)],_0x3a14c4[_0x2b830b(0xf4)]=_0x162df9[_0x2b830b(0x116)],_0x3a14c4['HookRunFinished']=_0x162df9[_0x2b830b(0x110)],_0x3a14c4[_0x2b830b(0xe8)]=_0x162df9['gGAgB'],_0x3a14c4[_0x18c211[_0x2b830b(0x87)]];}static async[a86_0x5ad2bb(0xba)](_0x10ff8b,_0x122180=0x0,_0x1de5d9=null){const _0x278df8=a86_0x5ad2bb,_0x5bbe54={'VXwzS':function(_0x41ee11,_0xa78868){return _0x41ee11===_0xa78868;},'GbcAp':'sendTraceZip','KZiqf':function(_0x30d19c,_0x19edc1){return _0x30d19c!==_0x19edc1;},'ldJOK':_0x278df8(0x8a),'mTyst':'true','Bkzgv':function(_0x5beef7,_0x51142f){return _0x5beef7===_0x51142f;},'OZcHQ':function(_0x3d89b4,_0x13cd4a,_0x1fee19,_0x305b2c,_0x339547){return _0x3d89b4(_0x13cd4a,_0x1fee19,_0x305b2c,_0x339547);},'uGtwd':_0x278df8(0x11f),'CFDkI':function(_0xbb91bd,_0x397998){return _0xbb91bd(_0x397998);},'angfd':_0x278df8(0xe3),'afXNq':function(_0x113675,_0x9d2ba5){return _0x113675-_0x9d2ba5;},'HkiOa':_0x278df8(0xea),'dnzJA':'success','Dypty':function(_0x596cb4,_0x3b2d08){return _0x596cb4(_0x3b2d08);},'piHGD':function(_0x3aa021,_0x574c71){return _0x3aa021===_0x574c71;},'elMrj':_0x278df8(0x9f)};_0x5bbe54[_0x278df8(0xa3)](_0x1de5d9,_0x5bbe54[_0x278df8(0xcb)])&&logger[_0x278df8(0xf3)](_0x278df8(0xa1)+_0x10ff8b[_0x278df8(0xc9)][0x0][_0x278df8(0xdc)]);const _0xf9f931=await this[_0x278df8(0x112)](_0x10ff8b);let _0xf5cf30=_0x10ff8b,_0x48863a=EVENT_ENDPOINT;_0x5bbe54[_0x278df8(0x109)](_0x1de5d9,_0x5bbe54[_0x278df8(0xcb)])&&this[_0x278df8(0xab)][_0x278df8(0x111)]();const {shouldProceed:_0x4b672b,proceedWithData:_0x4475f2,proceedWithUrl:_0x4b1be4}=this[_0x278df8(0xab)][_0x278df8(0x9d)](_0x10ff8b);if(!_0x4b672b)return;else _0x4475f2&&(_0xf5cf30=_0x4475f2,_0x48863a=_0x4b1be4);const _0x1824a0={};_0x1824a0[_0x278df8(0xb6)]=_0x278df8(0x12b)+process[_0x278df8(0x10a)]['BROWSERSTACK_TESTHUB_JWT'],_0x1824a0[_0x278df8(0x105)]=_0x5bbe54['ldJOK'],_0x1824a0[_0x278df8(0xa9)]=_0x5bbe54['mTyst'];const _0x339024={};_0x339024['headers']=_0x1824a0;const _0x3ae4f8=_0x339024;let _0x31e434;try{_0x5bbe54[_0x278df8(0xb7)](_0x1de5d9,_0x5bbe54['GbcAp'])?(logger[_0x278df8(0xf3)](_0x278df8(0x12d)+_0x10ff8b?.['logs'][0x0]?.[_0x278df8(0xdc)]),_0x31e434=await _0x5bbe54[_0x278df8(0xb2)](asyncAwaitNodeReq,_0x5bbe54[_0x278df8(0xcc)],_0x48863a,_0xf5cf30,_0x3ae4f8),logger[_0x278df8(0xf3)](_0x278df8(0x10d)+_0x10ff8b?.[_0x278df8(0xc9)][0x0]?.['test_run_uuid'])):_0x31e434=await _0x5bbe54['OZcHQ'](nodeRequest,_0x5bbe54[_0x278df8(0xcc)],_0x48863a,_0xf5cf30,_0x3ae4f8);if(_0x31e434[_0x278df8(0xa5)]['error']){const _0x4bd314={};_0x4bd314[_0x278df8(0x98)]=_0x31e434[_0x278df8(0xa5)][_0x278df8(0x9f)];throw _0x4bd314;}else{_0x5bbe54[_0x278df8(0x133)](debug,(_0x5bbe54['KZiqf'](_0x48863a,this[_0x278df8(0xab)][_0x278df8(0x12c)])?_0xf9f931:_0x5bbe54['angfd'])+'['+_0x122180+_0x278df8(0xae)),this[_0x278df8(0xab)][_0x278df8(0xb4)]=Math['max'](0x0,_0x5bbe54[_0x278df8(0xc1)](this[_0x278df8(0xab)][_0x278df8(0xb4)],_0x5bbe54[_0x278df8(0xb7)](_0x48863a,_0x5bbe54[_0x278df8(0x114)])?0x1:_0xf5cf30['length']));const _0x1ff90d={};return _0x1ff90d[_0x278df8(0xff)]=_0x5bbe54[_0x278df8(0x10b)],_0x1ff90d[_0x278df8(0x98)]='',_0x1ff90d;}}catch(_0x559264){_0x559264[_0x278df8(0x91)]?_0x5bbe54[_0x278df8(0xee)](debug,_0x278df8(0xf2)+(_0x5bbe54[_0x278df8(0x109)](_0x48863a,this['requestQueueHandler'][_0x278df8(0x12c)])?_0xf9f931:_0x5bbe54[_0x278df8(0x131)])+_0x278df8(0xbb)+_0x559264[_0x278df8(0x91)]['status']+'\x20'+_0x559264[_0x278df8(0x91)]['statusText']+'\x20'+util['format'](_0x559264[_0x278df8(0x91)]['data'])):_0x5bbe54['CFDkI'](debug,_0x278df8(0xf2)+(_0x5bbe54[_0x278df8(0x109)](_0x48863a,this[_0x278df8(0xab)][_0x278df8(0x12c)])?_0xf9f931:_0x5bbe54[_0x278df8(0x131)])+_0x278df8(0xbb)+util[_0x278df8(0xb1)](_0x559264));this['requestQueueHandler'][_0x278df8(0xb4)]=Math[_0x278df8(0xb8)](0x0,_0x5bbe54['afXNq'](this[_0x278df8(0xab)][_0x278df8(0xb4)],_0x5bbe54['piHGD'](_0x48863a,_0x5bbe54[_0x278df8(0x114)])?0x1:_0xf5cf30[_0x278df8(0xc2)]));const _0x2ad674={};return _0x2ad674[_0x278df8(0xff)]=_0x5bbe54[_0x278df8(0x119)],_0x2ad674[_0x278df8(0x98)]=_0x559264[_0x278df8(0x98)]||(_0x559264[_0x278df8(0x91)]?_0x559264[_0x278df8(0x91)][_0x278df8(0xff)]+':'+_0x559264['response']['statusText']:_0x559264),_0x2ad674;}}static async[a86_0x5ad2bb(0x92)](_0x1d9cff,_0x301eb1=0x0){const _0x3c6b67=a86_0x5ad2bb,_0x16c137={'iHPoV':function(_0x5c68ba,_0x14afe8){return _0x5c68ba+_0x14afe8;},'kDzvV':function(_0x517c83,_0x1274b4){return _0x517c83(_0x1274b4);},'seTRj':_0x3c6b67(0xed),'CLpDX':_0x3c6b67(0x10e),'aXGjl':_0x3c6b67(0x8f),'sAbBo':function(_0x5bfe3d,_0x27a76c,_0x16e9f8){return _0x5bfe3d(_0x27a76c,_0x16e9f8);},'DfUzp':'uploadEventData','CvPhd':function(_0x39dcd,_0xd5999f){return _0x39dcd===_0xd5999f;},'ajfqv':function(_0x4d1709,_0x3a22f3){return _0x4d1709!==_0x3a22f3;},'PIvAj':_0x3c6b67(0xfb),'eXWuD':_0x3c6b67(0xbf),'niwdM':function(_0x428971){return _0x428971();},'Sdrdz':function(_0x1c5985,_0x256ba6){return _0x1c5985(_0x256ba6);},'TvxDh':function(_0x12e436,_0x3177a4){return _0x12e436-_0x3177a4;},'Qglxq':_0x3c6b67(0x9f),'gnDpV':_0x3c6b67(0xac),'RwUWp':function(_0x1c97a8,_0x3cef5e){return _0x1c97a8>=_0x3cef5e;},'kjwAj':function(_0x577948,_0x4ae8ba){return _0x577948(_0x4ae8ba);},'HVftN':function(_0x3dee69,_0x19ee55){return _0x3dee69-_0x19ee55;},'YLheT':'Retry\x20runs\x20exceeded','wYLwC':_0x3c6b67(0x8b)},_0x32b947=this[_0x3c6b67(0x112)](_0x1d9cff);_0x16c137[_0x3c6b67(0xc5)](trace,_0x3c6b67(0xf5)+_0x1d9cff['event_type']+'\x27\x20'+(bsSetupHelper[_0x3c6b67(0x10f)](_0x1d9cff,[_0x16c137[_0x3c6b67(0x89)],_0x16c137[_0x3c6b67(0xd7)]])||bsSetupHelper['nestedKeyValue'](_0x1d9cff,[_0x16c137[_0x3c6b67(0x108)],_0x16c137[_0x3c6b67(0xd7)]])));if(!_0x16c137[_0x3c6b67(0x124)](shouldProcessEventForTesthub,_0x1d9cff[_0x3c6b67(0x87)],_0x16c137[_0x3c6b67(0x10c)]))return;_0x16c137[_0x3c6b67(0x117)](_0x301eb1,0x0)&&process[_0x3c6b67(0x10a)][_0x3c6b67(0xdb)]&&_0x16c137[_0x3c6b67(0xcd)](process['env'][_0x3c6b67(0xdb)],_0x16c137[_0x3c6b67(0x11b)])&&(this[_0x3c6b67(0xab)][_0x3c6b67(0xb4)]+=0x1);if(_0x16c137[_0x3c6b67(0x117)](process[_0x3c6b67(0x10a)][_0x3c6b67(0xd0)],_0x16c137[_0x3c6b67(0xfc)])||process['env'][_0x3c6b67(0x102)]||_0x16c137[_0x3c6b67(0xf9)](isPercyBuild)){if(_0x16c137[_0x3c6b67(0x117)](process[_0x3c6b67(0x10a)]['BROWSERSTACK_TESTHUB_JWT'],_0x16c137['PIvAj'])){_0x16c137[_0x3c6b67(0xe2)](debug,_0x3c6b67(0xf2)+_0x32b947+_0x3c6b67(0xbd)),this['requestQueueHandler'][_0x3c6b67(0xb4)]=Math['max'](0x0,_0x16c137[_0x3c6b67(0x93)](this[_0x3c6b67(0xab)][_0x3c6b67(0xb4)],0x1));const _0x312ea7={};return _0x312ea7[_0x3c6b67(0xff)]=_0x16c137[_0x3c6b67(0xf1)],_0x312ea7[_0x3c6b67(0x98)]=_0x16c137['gnDpV'],_0x312ea7;}return await this[_0x3c6b67(0xba)](_0x1d9cff,_0x301eb1);}else{if(_0x16c137[_0x3c6b67(0xd8)](_0x301eb1,0x5)){_0x16c137[_0x3c6b67(0x8c)](debug,'EXCEPTION\x20IN\x20'+_0x32b947+_0x3c6b67(0x8e)+_0x32b947+_0x3c6b67(0xfe));_0x16c137['ajfqv'](process[_0x3c6b67(0x10a)][_0x3c6b67(0xdb)],_0x16c137[_0x3c6b67(0x11b)])&&(this[_0x3c6b67(0xab)][_0x3c6b67(0xb4)]=Math[_0x3c6b67(0xb8)](0x0,_0x16c137[_0x3c6b67(0xb0)](this[_0x3c6b67(0xab)]['pendingUploads'],0x1)));const _0x3ca7dd={};return _0x3ca7dd[_0x3c6b67(0xff)]=_0x16c137[_0x3c6b67(0xf1)],_0x3ca7dd[_0x3c6b67(0x98)]=_0x16c137[_0x3c6b67(0xce)],_0x3ca7dd;}else _0x16c137[_0x3c6b67(0xcd)](process[_0x3c6b67(0x10a)][_0x3c6b67(0xd0)],_0x16c137[_0x3c6b67(0xc0)])&&_0x16c137[_0x3c6b67(0x124)](setTimeout,()=>{const _0x450879=_0x3c6b67;this[_0x450879(0x92)](_0x1d9cff,_0x16c137[_0x450879(0xa7)](_0x301eb1,0x1));},0x3e8);}}}module[a86_0x5ad2bb(0x11e)]=SessionHandler;function a86_0x679f(_0x508f65,_0x1c03ca){const _0x44fa4c=a86_0x44fa();return a86_0x679f=function(_0x679f79,_0x104bfe){_0x679f79=_0x679f79-0x87;let _0x341062=_0x44fa4c[_0x679f79];return _0x341062;},a86_0x679f(_0x508f65,_0x1c03ca);}function a86_0x44fa(){const _0x362ce=['getHostInfo','GbcAp','uGtwd','ajfqv','YLheT','VXrKV','BS_TESTOPS_BUILD_COMPLETED','frameworkName','eLZWB','HBYcP','username','app','Test_Skipped_Upload','CLpDX','RwUWp','naJYK','YxTBB','BROWSERSTACK_TESTHUB_JWT','test_run_uuid','RMnjW','27250oGMwun','ERROR_SDK_DEPRECATED','gZkCl','Hook_Start_Upload','Sdrdz','Batch-Queue','./utils','KVEgD','frameworkVersion','projectName','CBTSessionCreated','getGitMetaData','api/v1/event','CREDENTIALS_FOR_CRASH_REPORTING','BS_TESTOPS_JWT','test_run','Dypty','cuXSn','wNFbh','Qglxq','EXCEPTION\x20IN\x20','debug','HookRunStarted','Processing\x20event\x20-\x20\x27','cwd','11259040XZoJVT','Jktgz','niwdM','BCbEM','null','eXWuD','../logger','\x20retry\x20runs\x20exceeded','status','481284pPBqCc','BS_TESTOPS_ALLOW_SCREENSHOTS','BS_A11Y_JWT','browserstackAutomation','password','Content-Type','12442OWinfy','GmIvn','aXGjl','KZiqf','env','dnzJA','DfUzp','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','uuid','nestedKeyValue','kczoo','start','getLogTag','BQRmx','HkiOa','1145436SBEMUw','FZdQc','CvPhd','222LEeKRs','elMrj','Build\x20creation\x20successful!','PIvAj','TestRunFinished','Log_Upload','exports','POST','16kwGlOp','jwt','allow_screenshots','waitForBuildStatus','sAbBo','api/v1/builds','toString','../../helpers/testhub/utils','BROWSERSTACK_BUILD_RUN_IDENTIFIER','612VIgJba','winstonLogger','Bearer\x20','eventUrl','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','AMaVo','SjDTK','oihXf','angfd','./constants','CFDkI','event_type','includes','seTRj','application/json','false','kjwAj','../helper','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','hook_run','BS_TESTOPS_BUILD_HASHED_ID','response','uploadEventData','TvxDh','errorType','basename','Data\x20upload\x20to\x20BrowserStack\x20Test\x20Observability\x20failed\x20due\x20to\x20','FMHuh','message','LogCreated','info','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','getAccessKey','add','ONVCo','error','XYXIG','Sending\x20trace\x20zip\x20for\x20test:\x20','resolve','VXwzS','Test_End_Upload','data','ZdiCT','iHPoV','toISOString','X-BSTACK-TESTOPS','MTuem','requestQueueHandler','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','launch',']\x20event\x20successful!','build_hashed_id','HVftN','format','OZcHQ','ERROR_ACCESS_DENIED','pendingUploads','stringify','Authorization','Bkzgv','max','buildName','sendEventData','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','4585182WpZcnm','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20missing\x20authentication\x20token','util','true','wYLwC','afXNq','length','getUserName','ZuEFQ','kDzvV','getCiInfo','CBT_Upload','174095uAJlJt','logs'];a86_0x44fa=function(){return _0x362ce;};return a86_0x44fa();}
|
|
1
|
+
function a86_0x4d92(_0x402e23,_0x5c74aa){const _0xff4bc2=a86_0xff4b();return a86_0x4d92=function(_0x4d924c,_0x113faf){_0x4d924c=_0x4d924c-0xec;let _0x1cd7ad=_0xff4bc2[_0x4d924c];return _0x1cd7ad;},a86_0x4d92(_0x402e23,_0x5c74aa);}const a86_0x3b47d2=a86_0x4d92;(function(_0x4ac01b,_0x316bde){const _0x5d9431=a86_0x4d92,_0x1198ac=_0x4ac01b();while(!![]){try{const _0x915f77=parseInt(_0x5d9431(0x179))/0x1*(-parseInt(_0x5d9431(0x141))/0x2)+parseInt(_0x5d9431(0x169))/0x3+parseInt(_0x5d9431(0x164))/0x4*(-parseInt(_0x5d9431(0x18e))/0x5)+-parseInt(_0x5d9431(0x110))/0x6+-parseInt(_0x5d9431(0x16b))/0x7*(-parseInt(_0x5d9431(0x108))/0x8)+parseInt(_0x5d9431(0x18a))/0x9*(-parseInt(_0x5d9431(0x124))/0xa)+parseInt(_0x5d9431(0x12e))/0xb;if(_0x915f77===_0x316bde)break;else _0x1198ac['push'](_0x1198ac['shift']());}catch(_0x71c6d5){_0x1198ac['push'](_0x1198ac['shift']());}}}(a86_0xff4b,0x2ba64));const bsSetupHelper=require(a86_0x3b47d2(0x162)),path=require(a86_0x3b47d2(0x156)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a86_0x3b47d2(0x136)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a86_0x3b47d2(0x17c)),RequestQueueHandler=require(a86_0x3b47d2(0x128)),logger=require(a86_0x3b47d2(0x10a))['winstonLogger'],{shouldProcessEventForTesthub,isPercyBuild,getProductMap}=require(a86_0x3b47d2(0x14f)),util=require(a86_0x3b47d2(0x13f));function a86_0xff4b(){const _0x4879ae=['1cnlnvZ','VGURG','pBOhX','./constants','stringify','format','BROWSERSTACK_TESTHUB_JWT','nkDsw','quXKZ','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20missing\x20authentication\x20token','KSuKQ','requestQueueHandler','TAsyv','json','Retry\x20runs\x20exceeded','frameworkName','fBSIX','16281VTeZzj','data','username','ERROR_ACCESS_DENIED','5WApMwv','TestRunFinished','fQahW','JSbGq','CyVSH','pREOe',']\x20event\x20successful!','kxggO','BS_A11Y_JWT','getLogTag','xBBhO','Batch-Queue','SCAkD','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','event_type','LogCreated','app','Test_Skipped_Upload','XfYtN','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','flsbS','BmHvk','\x20retry\x20runs\x20exceeded','AZwHt','EBcLB','JifJf','XnfLm','browserstackAutomation','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','FjFbk','info','api/v1/builds','ERROR_SDK_DEPRECATED','uuid','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','Test_End_Upload','toString','Hook_End_Upload','IZiBB','5240Znrlzv','getUserName','../logger','kColJ','launch','ZRVns','EsGRa','BS_TESTOPS_BUILD_COMPLETED','2070684qHdgaT','logs','ysuVA','response','POST','JvyUK','sendEventData','status','BROWSERSTACK_TESTHUB_UUID','nsfHH','WngKi','HMlfr','yOoeU','getHostInfo','ERROR_INVALID_CREDENTIALS','env','oDFQr','cwd','exports','cfhqP','1370xXYiwN','sendTraceZip','build_hashed_id','eZYnn','./requestQueueHandler','Data\x20upload\x20to\x20BrowserStack\x20Test\x20Observability\x20failed\x20due\x20to\x20','MhEio','getInstance','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','FRFaj','6785680wSviJh','bgyQN','projectName','debug','basename','Processing\x20event\x20-\x20\x27','test_run','layHH','./utils','eEyWe','BROWSERSTACK_RERUN','woggG','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','lAptE','statusText','success','length','util','OgrOL','1766UBXscm','false','sYeVx','HookRunFinished','NdJYk','headers','BS_TESTOPS_JWT','max','Content-Type','eventUrl','null','includes','allow_screenshots','api/v1/event','../../helpers/testhub/utils','JskHk','YtBpf','nestedKeyValue','KXCvc','ypGrC','uploadEventData','path','test_run_uuid','EXCEPTION\x20IN\x20','RbFEH','VbJCM','password','X-BSTACK-TESTOPS','hook_run','KNLsd','getAgentVersion','BROWSERSTACK_BUILD_RUN_IDENTIFIER','jwt','../helper','TxaxM','1060460DxGvuI','Bearer\x20','DJXeL','getCiInfo','true','667164ROQFie','Authorization','2121fCpIIP','start','BS_TESTOPS_BUILD_HASHED_ID','getAccessKey','Thdzg','Sending\x20trace\x20zip\x20for\x20test:\x20','Test_Start_Upload','HPPRb','iVXvu','error','pendingUploads','waitForBuildStatus','JaBKu','message'];a86_0xff4b=function(){return _0x4879ae;};return a86_0xff4b();}class SessionHandler{static [a86_0x3b47d2(0x184)]=RequestQueueHandler[a86_0x3b47d2(0x12b)]();static async[a86_0x3b47d2(0x10c)](_0x384386,_0x465cec){const _0xab097f=a86_0x3b47d2,_0x223ca3={'kColJ':function(_0xde5bd1,_0x1ee72d){return _0xde5bd1||_0x1ee72d;},'sYeVx':function(_0x2762b3,_0x15b577){return _0x2762b3===_0x15b577;},'RbFEH':function(_0x53ceae,_0x4c63c9){return _0x53ceae(_0x4c63c9);},'VGURG':_0xab097f(0x12c),'fBSIX':_0xab097f(0x142),'WngKi':_0xab097f(0x186),'Thdzg':function(_0x2379de,_0x521c20,_0x3abe3c,_0x52e3ee,_0x1e28b9){return _0x2379de(_0x521c20,_0x3abe3c,_0x52e3ee,_0x1e28b9);},'uHAad':_0xab097f(0x114),'TAsyv':_0xab097f(0x100),'JskHk':function(_0x5b66b1,_0x22c239){return _0x5b66b1(_0x22c239);},'BwACu':'Build\x20creation\x20successful!','XfYtN':function(_0x2ad3dd){return _0x2ad3dd();},'KXCvc':'true','TxaxM':_0xab097f(0x14b),'XnfLm':function(_0x205f03,_0x25b93a){return _0x205f03(_0x25b93a);},'YtBpf':_0xab097f(0x11e),'flsbS':_0xab097f(0x18d),'layHH':_0xab097f(0x101)},_0x303606=bsSetupHelper[_0xab097f(0x109)](_0x384386),_0x4eac0a=bsSetupHelper[_0xab097f(0x16e)](_0x384386),_0x8f2573=_0x223ca3[_0xab097f(0x10b)](_0x303606,'')+':'+_0x223ca3[_0xab097f(0x10b)](_0x4eac0a,'');if(_0x223ca3[_0xab097f(0x143)](_0x8f2573,':'))return _0x223ca3[_0xab097f(0x159)](debug,_0x223ca3[_0xab097f(0x17a)]),process['env'][_0xab097f(0x10f)]=_0x223ca3[_0xab097f(0x189)],[null,null];let _0xc0c7e4=![],_0x497022=![];if(_0x384386[_0xab097f(0xfc)]&&_0x384386[_0xab097f(0xf1)])_0x497022=!![];else _0x384386['browserstackAutomation']&&(_0xc0c7e4=!![]);try{const _0x5bb249={'format':_0x223ca3[_0xab097f(0x11a)],'project_name':_0x384386[_0xab097f(0x130)]||'','name':_0x384386['buildName']||path[_0xab097f(0x132)](path['resolve'](process[_0xab097f(0x121)]())),'build_identifier':_0x384386['buildIdentifier'],'description':_0x384386['buildDescription']||'','start_time':new Date()['toISOString'](),'tags':_0x223ca3[_0xab097f(0x159)](getCustomTags,_0x384386),'host_info':bsSetupHelper[_0xab097f(0x11d)](),'ci_info':bsSetupHelper[_0xab097f(0x167)](),'build_run_identifier':process['env'][_0xab097f(0x160)],'failed_tests_rerun':process[_0xab097f(0x11f)][_0xab097f(0x138)]||![],'version_control':await bsSetupHelper['getGitMetaData'](),'observability_version':{'frameworkName':_0x465cec[_0xab097f(0x188)],'frameworkVersion':_0x465cec['frameworkVersion'],'sdkVersion':bsSetupHelper[_0xab097f(0x15f)]()},'product_map':_0x223ca3[_0xab097f(0x159)](getProductMap,_0x384386)},_0x134304={};_0x134304[_0xab097f(0x18c)]=_0x303606,_0x134304[_0xab097f(0x15b)]=_0x4eac0a;const _0x1d699c={'auth':_0x134304,'headers':_0x223ca3[_0xab097f(0x159)](getDefaultHeaders,![])},_0x1840df=await _0x223ca3[_0xab097f(0x16f)](nodeRequest,_0x223ca3['uHAad'],_0x223ca3[_0xab097f(0x185)],_0x5bb249,_0x1d699c);_0x223ca3[_0xab097f(0x150)](debug,_0x223ca3['BwACu']);const _0x34173c=_0x1840df[_0xab097f(0x18b)];_0x34173c[_0xab097f(0x126)]&&(process[_0xab097f(0x11f)][_0xab097f(0x118)]=_0x34173c[_0xab097f(0x126)]);if(_0x223ca3[_0xab097f(0xf3)](isTestObservabilitySession)){process[_0xab097f(0x11f)]['BS_TESTOPS_BUILD_COMPLETED']=_0x223ca3[_0xab097f(0x153)];if(_0x34173c[_0xab097f(0x161)]){process['env'][_0xab097f(0x147)]=_0x34173c['jwt'];const _0x55d4be={};_0x55d4be[_0xab097f(0x18c)]=_0x303606,_0x55d4be[_0xab097f(0x15b)]=_0x4eac0a,process[_0xab097f(0x11f)]['CREDENTIALS_FOR_CRASH_REPORTING']=JSON[_0xab097f(0x17d)](_0x55d4be);}_0x34173c['build_hashed_id']&&(process[_0xab097f(0x11f)][_0xab097f(0x16d)]=_0x34173c[_0xab097f(0x126)]),_0x34173c[_0xab097f(0x14d)]&&(process[_0xab097f(0x11f)]['BS_TESTOPS_ALLOW_SCREENSHOTS']=_0x34173c[_0xab097f(0x14d)][_0xab097f(0x105)]());}return[_0x1840df[_0xab097f(0x18b)]['jwt'],_0x1840df['data'][_0xab097f(0x126)],_0x1840df[_0xab097f(0x18b)][_0xab097f(0x14d)]];}catch(_0x1d9aa1){process[_0xab097f(0x11f)]['BROWSERSTACK_TESTHUB_UUID']=_0x223ca3[_0xab097f(0x163)],process['env'][_0xab097f(0x10f)]=_0x223ca3[_0xab097f(0x189)],process[_0xab097f(0x11f)][_0xab097f(0x147)]=_0x223ca3[_0xab097f(0x163)],process['env'][_0xab097f(0x16d)]=_0x223ca3[_0xab097f(0x163)],process['env']['BS_TESTOPS_ALLOW_SCREENSHOTS']=_0x223ca3[_0xab097f(0x163)];_0x1d9aa1['response']?_0x223ca3[_0xab097f(0xfb)](debug,_0xab097f(0x103)+_0x1d9aa1['response'][_0xab097f(0x117)]+'\x20'+_0x1d9aa1['response'][_0xab097f(0x13c)]+'\x20'+JSON[_0xab097f(0x17d)](_0x1d9aa1[_0xab097f(0x113)][_0xab097f(0x18b)])):_0x223ca3[_0xab097f(0xfb)](debug,_0xab097f(0x103)+(_0x1d9aa1[_0xab097f(0x178)]||_0x1d9aa1));if(_0x1d9aa1&&_0x1d9aa1[_0xab097f(0x178)]){const _0x4057e7=_0x1d9aa1[_0xab097f(0x178)];switch(_0x1d9aa1['errorType']){case _0x223ca3[_0xab097f(0x151)]:logger[_0xab097f(0x174)](_0x4057e7);break;case _0x223ca3[_0xab097f(0xf5)]:logger[_0xab097f(0xff)](_0x4057e7);break;case _0x223ca3[_0xab097f(0x135)]:logger['error'](_0x4057e7);break;default:logger[_0xab097f(0x174)](_0x4057e7);}}else console['info'](_0xab097f(0x129)+_0x1d9aa1);return[null,null,null];}}static async[a86_0x3b47d2(0x176)](){const _0x3c6a03=a86_0x3b47d2,_0x3d351d={'fQahW':_0x3c6a03(0x168),'MhEio':_0x3c6a03(0x142),'AZwHt':function(_0x29c5f1,_0x399ed1){return _0x29c5f1(_0x399ed1);}},_0x558e97=process[_0x3c6a03(0x11f)][_0x3c6a03(0x10f)];if([_0x3d351d[_0x3c6a03(0x190)],_0x3d351d[_0x3c6a03(0x12a)]][_0x3c6a03(0x14c)](_0x558e97))return;while([_0x3d351d[_0x3c6a03(0x190)],_0x3d351d[_0x3c6a03(0x12a)]][_0x3c6a03(0x14c)](_0x558e97)){await _0x3d351d[_0x3c6a03(0xf8)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a86_0x3b47d2(0x197)](_0x27df87){const _0xbf0c39=a86_0x3b47d2,_0x3f5d77={};_0x3f5d77[_0xbf0c39(0x173)]=_0xbf0c39(0x171),_0x3f5d77[_0xbf0c39(0x154)]=_0xbf0c39(0x104),_0x3f5d77[_0xbf0c39(0x193)]=_0xbf0c39(0xf2),_0x3f5d77[_0xbf0c39(0x195)]='Log_Upload',_0x3f5d77[_0xbf0c39(0x115)]='Hook_Start_Upload',_0x3f5d77['BmHvk']=_0xbf0c39(0x106),_0x3f5d77[_0xbf0c39(0xed)]='CBT_Upload';const _0x3b038c=_0x3f5d77,_0x224258={};return _0x224258['TestRunStarted']=_0x3b038c[_0xbf0c39(0x173)],_0x224258[_0xbf0c39(0x18f)]=_0x3b038c[_0xbf0c39(0x154)],_0x224258['TestRunSkipped']=_0x3b038c['pREOe'],_0x224258[_0xbf0c39(0xf0)]=_0x3b038c['kxggO'],_0x224258['HookRunStarted']=_0x3b038c[_0xbf0c39(0x115)],_0x224258[_0xbf0c39(0x144)]=_0x3b038c[_0xbf0c39(0xf6)],_0x224258['CBTSessionCreated']=_0x3b038c[_0xbf0c39(0xed)],_0x224258[_0x27df87[_0xbf0c39(0xef)]];}static async[a86_0x3b47d2(0x116)](_0x32f4a7,_0x638a92=0x0,_0x5520a2=null){const _0x243b47=a86_0x3b47d2,_0x4265bb={'DJXeL':function(_0x1f3c13,_0x285b25){return _0x1f3c13===_0x285b25;},'lAptE':_0x243b47(0x125),'EsGRa':function(_0x102263,_0x33650e){return _0x102263!==_0x33650e;},'oDFQr':'application/json','quXKZ':_0x243b47(0x168),'IZiBB':function(_0x27bbcb,_0x44de58,_0x3d3cd2,_0x5b3397,_0x24c7ec){return _0x27bbcb(_0x44de58,_0x3d3cd2,_0x5b3397,_0x24c7ec);},'FjFbk':_0x243b47(0x114),'CyVSH':function(_0x38d250,_0x5f1624,_0x432795,_0x34fc07,_0x50979d){return _0x38d250(_0x5f1624,_0x432795,_0x34fc07,_0x50979d);},'yOoeU':function(_0x10beae,_0x1563c2){return _0x10beae(_0x1563c2);},'OgrOL':function(_0x8606fa,_0x3602bd){return _0x8606fa!==_0x3602bd;},'woggG':_0x243b47(0xec),'HPPRb':function(_0x31a9fe,_0x414c9c){return _0x31a9fe-_0x414c9c;},'qXTcE':function(_0x41f458,_0x2a84b7){return _0x41f458===_0x2a84b7;},'JifJf':_0x243b47(0x14e),'JSbGq':_0x243b47(0x13d),'EBcLB':function(_0x4440b6,_0x4d8d0f){return _0x4440b6(_0x4d8d0f);},'jSwMv':function(_0x2efe59,_0x12e4c9){return _0x2efe59!==_0x12e4c9;},'FRFaj':_0x243b47(0x174)};_0x4265bb[_0x243b47(0x166)](_0x5520a2,_0x4265bb['lAptE'])&&logger[_0x243b47(0x131)](_0x243b47(0x170)+_0x32f4a7[_0x243b47(0x111)][0x0][_0x243b47(0x157)]);const _0xdf8708=await this['getLogTag'](_0x32f4a7);let _0x53d73f=_0x32f4a7,_0x127b92=EVENT_ENDPOINT;_0x4265bb[_0x243b47(0x10e)](_0x5520a2,_0x4265bb[_0x243b47(0x13b)])&&this[_0x243b47(0x184)][_0x243b47(0x16c)]();const {shouldProceed:_0x4ea418,proceedWithData:_0x1bc86d,proceedWithUrl:_0x419a39}=this[_0x243b47(0x184)]['add'](_0x32f4a7);if(!_0x4ea418)return;else _0x1bc86d&&(_0x53d73f=_0x1bc86d,_0x127b92=_0x419a39);const _0x63e84a={};_0x63e84a[_0x243b47(0x16a)]=_0x243b47(0x165)+process[_0x243b47(0x11f)]['BROWSERSTACK_TESTHUB_JWT'],_0x63e84a[_0x243b47(0x149)]=_0x4265bb[_0x243b47(0x120)],_0x63e84a[_0x243b47(0x15c)]=_0x4265bb[_0x243b47(0x181)];const _0x499f35={};_0x499f35[_0x243b47(0x146)]=_0x63e84a;const _0x55b2e9=_0x499f35;let _0x30c498;try{_0x4265bb[_0x243b47(0x166)](_0x5520a2,_0x4265bb[_0x243b47(0x13b)])?(logger[_0x243b47(0x131)](_0x243b47(0xf4)+_0x32f4a7?.['logs'][0x0]?.[_0x243b47(0x157)]),_0x30c498=await _0x4265bb[_0x243b47(0x107)](asyncAwaitNodeReq,_0x4265bb[_0x243b47(0xfe)],_0x127b92,_0x53d73f,_0x55b2e9),logger[_0x243b47(0x131)]('Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20'+_0x32f4a7?.['logs'][0x0]?.[_0x243b47(0x157)])):_0x30c498=await _0x4265bb[_0x243b47(0x192)](nodeRequest,_0x4265bb[_0x243b47(0xfe)],_0x127b92,_0x53d73f,_0x55b2e9);if(_0x30c498[_0x243b47(0x18b)][_0x243b47(0x174)]){const _0xd31a61={};_0xd31a61[_0x243b47(0x178)]=_0x30c498['data'][_0x243b47(0x174)];throw _0xd31a61;}else{_0x4265bb[_0x243b47(0x11c)](debug,(_0x4265bb[_0x243b47(0x140)](_0x127b92,this[_0x243b47(0x184)][_0x243b47(0x14a)])?_0xdf8708:_0x4265bb['woggG'])+'['+_0x638a92+_0x243b47(0x194)),this['requestQueueHandler'][_0x243b47(0x175)]=Math[_0x243b47(0x148)](0x0,_0x4265bb[_0x243b47(0x172)](this[_0x243b47(0x184)][_0x243b47(0x175)],_0x4265bb['qXTcE'](_0x127b92,_0x4265bb[_0x243b47(0xfa)])?0x1:_0x53d73f[_0x243b47(0x13e)]));const _0x58946c={};return _0x58946c['status']=_0x4265bb[_0x243b47(0x191)],_0x58946c['message']='',_0x58946c;}}catch(_0x4f20c9){_0x4f20c9['response']?_0x4265bb[_0x243b47(0xf9)](debug,'EXCEPTION\x20IN\x20'+(_0x4265bb[_0x243b47(0x140)](_0x127b92,this[_0x243b47(0x184)][_0x243b47(0x14a)])?_0xdf8708:_0x4265bb[_0x243b47(0x139)])+_0x243b47(0xfd)+_0x4f20c9[_0x243b47(0x113)][_0x243b47(0x117)]+'\x20'+_0x4f20c9[_0x243b47(0x113)][_0x243b47(0x13c)]+'\x20'+util['format'](_0x4f20c9[_0x243b47(0x113)][_0x243b47(0x18b)])):_0x4265bb[_0x243b47(0x11c)](debug,'EXCEPTION\x20IN\x20'+(_0x4265bb['jSwMv'](_0x127b92,this[_0x243b47(0x184)][_0x243b47(0x14a)])?_0xdf8708:_0x4265bb[_0x243b47(0x139)])+_0x243b47(0xfd)+util[_0x243b47(0x17e)](_0x4f20c9));this[_0x243b47(0x184)][_0x243b47(0x175)]=Math[_0x243b47(0x148)](0x0,_0x4265bb[_0x243b47(0x172)](this['requestQueueHandler']['pendingUploads'],_0x4265bb['DJXeL'](_0x127b92,_0x4265bb[_0x243b47(0xfa)])?0x1:_0x53d73f[_0x243b47(0x13e)]));const _0x5bf17c={};return _0x5bf17c[_0x243b47(0x117)]=_0x4265bb[_0x243b47(0x12d)],_0x5bf17c['message']=_0x4f20c9[_0x243b47(0x178)]||(_0x4f20c9['response']?_0x4f20c9[_0x243b47(0x113)]['status']+':'+_0x4f20c9[_0x243b47(0x113)][_0x243b47(0x13c)]:_0x4f20c9),_0x5bf17c;}}static async[a86_0x3b47d2(0x155)](_0x9b4248,_0x4a319c=0x0){const _0x2d68b1=a86_0x3b47d2,_0x3be8d5={'eEyWe':function(_0x421ba7,_0x5a3cd3){return _0x421ba7+_0x5a3cd3;},'vWgpy':function(_0x412b72,_0x9478d){return _0x412b72(_0x9478d);},'KSuKQ':_0x2d68b1(0x134),'cfhqP':_0x2d68b1(0x102),'iLqfx':_0x2d68b1(0x15d),'VbJCM':function(_0x3af44b,_0x5f5187,_0x4cb126){return _0x3af44b(_0x5f5187,_0x4cb126);},'pBOhX':'uploadEventData','nkDsw':function(_0x5387ac,_0x2d9123){return _0x5387ac===_0x2d9123;},'xBBhO':function(_0xb3754a,_0x10362c){return _0xb3754a!==_0x10362c;},'HMlfr':'null','zWWFe':_0x2d68b1(0x168),'NdJYk':function(_0x3feaf5){return _0x3feaf5();},'bgyQN':function(_0x58bc13,_0x49466d){return _0x58bc13-_0x49466d;},'nsfHH':_0x2d68b1(0x174),'KNLsd':_0x2d68b1(0x13a),'ysuVA':function(_0x58fd7d,_0x2810e4){return _0x58fd7d>=_0x2810e4;},'JaBKu':function(_0x2668a1,_0x68221c){return _0x2668a1(_0x68221c);},'eZYnn':_0x2d68b1(0x187),'ZRVns':_0x2d68b1(0x142)},_0x3ec842=this[_0x2d68b1(0x197)](_0x9b4248);_0x3be8d5['vWgpy'](trace,_0x2d68b1(0x133)+_0x9b4248['event_type']+'\x27\x20'+(bsSetupHelper[_0x2d68b1(0x152)](_0x9b4248,[_0x3be8d5[_0x2d68b1(0x183)],_0x3be8d5[_0x2d68b1(0x123)]])||bsSetupHelper[_0x2d68b1(0x152)](_0x9b4248,[_0x3be8d5['iLqfx'],_0x3be8d5[_0x2d68b1(0x123)]])));if(!_0x3be8d5[_0x2d68b1(0x15a)](shouldProcessEventForTesthub,_0x9b4248[_0x2d68b1(0xef)],_0x3be8d5[_0x2d68b1(0x17b)]))return;_0x3be8d5[_0x2d68b1(0x180)](_0x4a319c,0x0)&&process['env']['BROWSERSTACK_TESTHUB_JWT']&&_0x3be8d5[_0x2d68b1(0x198)](process[_0x2d68b1(0x11f)][_0x2d68b1(0x17f)],_0x3be8d5[_0x2d68b1(0x11b)])&&(this[_0x2d68b1(0x184)][_0x2d68b1(0x175)]+=0x1);if(_0x3be8d5[_0x2d68b1(0x180)](process[_0x2d68b1(0x11f)][_0x2d68b1(0x10f)],_0x3be8d5['zWWFe'])||process[_0x2d68b1(0x11f)][_0x2d68b1(0x196)]||_0x3be8d5[_0x2d68b1(0x145)](isPercyBuild)){if(_0x3be8d5[_0x2d68b1(0x180)](process['env']['BROWSERSTACK_TESTHUB_JWT'],_0x3be8d5[_0x2d68b1(0x11b)])){_0x3be8d5['vWgpy'](debug,_0x2d68b1(0x158)+_0x3ec842+_0x2d68b1(0x182)),this['requestQueueHandler'][_0x2d68b1(0x175)]=Math[_0x2d68b1(0x148)](0x0,_0x3be8d5[_0x2d68b1(0x12f)](this['requestQueueHandler'][_0x2d68b1(0x175)],0x1));const _0x35e06e={};return _0x35e06e['status']=_0x3be8d5['nsfHH'],_0x35e06e[_0x2d68b1(0x178)]=_0x3be8d5[_0x2d68b1(0x15e)],_0x35e06e;}return await this['sendEventData'](_0x9b4248,_0x4a319c);}else{if(_0x3be8d5[_0x2d68b1(0x112)](_0x4a319c,0x5)){_0x3be8d5[_0x2d68b1(0x177)](debug,_0x2d68b1(0x158)+_0x3ec842+_0x2d68b1(0xee)+_0x3ec842+_0x2d68b1(0xf7));_0x3be8d5[_0x2d68b1(0x198)](process[_0x2d68b1(0x11f)][_0x2d68b1(0x17f)],_0x3be8d5[_0x2d68b1(0x11b)])&&(this[_0x2d68b1(0x184)][_0x2d68b1(0x175)]=Math[_0x2d68b1(0x148)](0x0,_0x3be8d5[_0x2d68b1(0x12f)](this[_0x2d68b1(0x184)]['pendingUploads'],0x1)));const _0x351639={};return _0x351639['status']=_0x3be8d5[_0x2d68b1(0x119)],_0x351639[_0x2d68b1(0x178)]=_0x3be8d5[_0x2d68b1(0x127)],_0x351639;}else _0x3be8d5[_0x2d68b1(0x198)](process[_0x2d68b1(0x11f)]['BS_TESTOPS_BUILD_COMPLETED'],_0x3be8d5[_0x2d68b1(0x10d)])&&_0x3be8d5[_0x2d68b1(0x15a)](setTimeout,()=>{const _0x1bcddf=_0x2d68b1;this['uploadEventData'](_0x9b4248,_0x3be8d5[_0x1bcddf(0x137)](_0x4a319c,0x1));},0x3e8);}}}module[a86_0x3b47d2(0x122)]=SessionHandler;
|