browserstack-node-sdk 1.34.32 → 1.34.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.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_0xff0b2b=a79_0x2429;(function(_0x1bd560,_0x1f1aa1){const _0x2d0332=a79_0x2429,_0x2c0101=_0x1bd560();while(!![]){try{const _0x3aa637=parseInt(_0x2d0332(0x22e))/0x1+-parseInt(_0x2d0332(0x204))/0x2*(parseInt(_0x2d0332(0x217))/0x3)+-parseInt(_0x2d0332(0x1e9))/0x4+-parseInt(_0x2d0332(0x233))/0x5+parseInt(_0x2d0332(0x219))/0x6*(-parseInt(_0x2d0332(0x1e1))/0x7)+-parseInt(_0x2d0332(0x23a))/0x8*(-parseInt(_0x2d0332(0x1f6))/0x9)+parseInt(_0x2d0332(0x258))/0xa;if(_0x3aa637===_0x1f1aa1)break;else _0x2c0101['push'](_0x2c0101['shift']());}catch(_0x3a5f26){_0x2c0101['push'](_0x2c0101['shift']());}}}(a79_0x6326,0xc45dc));function a79_0x2429(_0xb2e06c,_0x266ebd){const _0x6326c5=a79_0x6326();return a79_0x2429=function(_0x2429d5,_0x44bd11){_0x2429d5=_0x2429d5-0x1bb;let _0x3f9295=_0x6326c5[_0x2429d5];return _0x3f9295;},a79_0x2429(_0xb2e06c,_0x266ebd);}const fs=require('fs'),fsPromise=require(a79_0xff0b2b(0x1c4)),{performance,PerformanceObserver}=require(a79_0xff0b2b(0x1db)),path=require(a79_0xff0b2b(0x1d7)),util=require(a79_0xff0b2b(0x1e2)),logger=require('../logger')[a79_0xff0b2b(0x200)],{getProcessId,sleep,debug,getTestName}=require(a79_0xff0b2b(0x247));function a79_0x6326(){const _0x55a2c3=['<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','_measureEvents','JKNbx','_errorEvents','false','Rhjis','../processHelper','QyyCd','eventsMap','reduce','observe','AUZDu','</tbody></table></body></html>','xgQaJ','errorReportFileName','KhsfK','env','apply','started','iqQrf','flat','YypLu','UyBZz','24876320yiCRIe','entryType','readdirSync','existsSync','readFile','getCleanedPerfEvents','duration','LenWH','start','unlinkSync','fs/promises','<tr><td>','YspZz','OPSTR','startMonitoring','appendFileSync','then','testName','-end','eoVID','KRFUh','VfKre','Time\x20for\x20','Error\x20in\x20writing\x20html\x20','errors','/performance-report-','Error\x20in\x20doing\x20csv\x20operations:\x20','CWMQq','iaMDp','path','debug','details','stopAndGenerate','perf_hooks','YThKr','finalizeErrors','error-report','qBlrv','-start','2751WgNeuj','util','generateJSON','toJSON','push','jsonReportDirName','writeFile','jsonReportFileName','1294556mfnuJu','length','slice','parse','wbSRg','NQTJr','STGFi','calculateTimeFromEvents','format','resolve','meta','vHKfr','jsonReportDirPath','1147599NODNfj','worker','writeFileSync','mark','Error\x20while\x20removing\x20files:\x20','PnpND','readdir','buffered','measureWrapper','Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','winstonLogger','forEach','getEventsFromJSON','match','1928GvCayi','nkCFu','join','performance-report','platform','efbFu','end','splice','.json','rMGEK','stringify','message','stopMonitoring','\x20for\x20all\x20processes\x20is\x20','entryTypes','uejmz','__platformCaps','index','finalizePerfMeasures','4296nNaUzQ','generateHTMLReport','10770tFdoKN','NKRfz','dfiul','_observer','disconnect','name','Performance\x20report\x20is\x20at\x20','pmjSd','map','concat','browserStackCwd','gqTUR','</td></tr>','WdkOq','toString','measure','isEnabled','entries','AJDES','BROWSERSTACK_SDK_INSTRUMENTATION','_events','436700lGknxN','FHQLV','bHsWg','success','<h1>Performance\x20Report</h1>','2377800qnTshS','utf-8','function','iulNI','OlLOd','all','assign','48kXKnRg','captureError','cwd','errorReportDirName','pushPerfMeasures','/error-report-','dGdVh'];a79_0x6326=function(){return _0x55a2c3;};return a79_0x6326();}class PerformanceTester{static [a79_0xff0b2b(0x21c)];static [a79_0xff0b2b(0x22d)]=[];static [a79_0xff0b2b(0x242)]=[];static ['_errorEvents']=[];static [a79_0xff0b2b(0x253)]=![];static [a79_0xff0b2b(0x1e6)]=a79_0xff0b2b(0x207);static [a79_0xff0b2b(0x1f5)]=process[a79_0xff0b2b(0x251)][a79_0xff0b2b(0x223)]?path[a79_0xff0b2b(0x206)](process[a79_0xff0b2b(0x251)][a79_0xff0b2b(0x223)],this['jsonReportDirName']):path[a79_0xff0b2b(0x206)](process[a79_0xff0b2b(0x23c)](),'log',this[a79_0xff0b2b(0x1e6)]);static ['errorReportDirName']=process[a79_0xff0b2b(0x251)]['browserStackCwd']?path[a79_0xff0b2b(0x206)](process[a79_0xff0b2b(0x251)][a79_0xff0b2b(0x223)],a79_0xff0b2b(0x1de)):path['join'](process['cwd'](),a79_0xff0b2b(0x1de));static ['jsonReportFileName']=this[a79_0xff0b2b(0x1f5)]+a79_0xff0b2b(0x1d3)+getProcessId()+a79_0xff0b2b(0x20c);static ['errorReportFileName']=this[a79_0xff0b2b(0x23d)]+a79_0xff0b2b(0x23f)+getProcessId()+a79_0xff0b2b(0x20c);static [a79_0xff0b2b(0x1d9)]={};static [a79_0xff0b2b(0x249)]={};static[a79_0xff0b2b(0x1c8)](_0x1efc70=this[a79_0xff0b2b(0x1f5)]+a79_0xff0b2b(0x1d3)+getProcessId()+a79_0xff0b2b(0x20c),_0x2cc8e4=this[a79_0xff0b2b(0x23d)]+'/error-report-'+getProcessId()+'.json'){const _0x18718e=a79_0xff0b2b,_0xaeb239={};_0xaeb239['KRFUh']=function(_0x57bad4,_0x270bc5){return _0x57bad4===_0x270bc5;},_0xaeb239[_0x18718e(0x1ed)]='measure',_0xaeb239[_0x18718e(0x220)]=function(_0x3953fc,_0x20861d){return _0x3953fc+_0x20861d;},_0xaeb239[_0x18718e(0x1df)]=_0x18718e(0x1ff),_0xaeb239[_0x18718e(0x256)]=_0x18718e(0x235);const _0x2739c1=_0xaeb239;try{!fs[_0x18718e(0x1bd)](this['jsonReportDirPath'])&&fs['mkdirSync'](this[_0x18718e(0x1f5)]);}catch(_0x37a006){logger[_0x18718e(0x1d8)](_0x2739c1[_0x18718e(0x220)](_0x2739c1['qBlrv'],_0x37a006));}if(this[_0x18718e(0x253)]||!this[_0x18718e(0x229)]())return;this[_0x18718e(0x21c)]=new PerformanceObserver(_0x37b9e8=>{const _0x4cff9c=_0x18718e,_0x2b3ba2={'nwSOm':function(_0x31fc1a,_0x53be2c){const _0x3ce194=a79_0x2429;return _0x2739c1[_0x3ce194(0x1ce)](_0x31fc1a,_0x53be2c);},'OlLOd':_0x2739c1['wbSRg']};_0x37b9e8['getEntries']()[_0x4cff9c(0x201)](_0x328c67=>{const _0x7c1e7d=_0x4cff9c;if(_0x2b3ba2['nwSOm'](_0x328c67[_0x7c1e7d(0x1bb)],_0x2b3ba2[_0x7c1e7d(0x237)])){let _0xd81b9a={};if(_0x328c67[_0x7c1e7d(0x1e4)])_0xd81b9a=_0x328c67[_0x7c1e7d(0x1e4)]();else for(const _0x4489ae in _0x328c67){_0xd81b9a[_0x4489ae]=_0x328c67[_0x4489ae];}this[_0x7c1e7d(0x1d9)][_0x328c67[_0x7c1e7d(0x21e)]]&&(_0xd81b9a=Object[_0x7c1e7d(0x239)](_0xd81b9a,this[_0x7c1e7d(0x1d9)][_0x328c67[_0x7c1e7d(0x21e)]])),delete this[_0x7c1e7d(0x1d9)][_0x328c67[_0x7c1e7d(0x21e)]],this[_0x7c1e7d(0x242)][_0x7c1e7d(0x1e5)](_0xd81b9a);}else this[_0x7c1e7d(0x22d)]['push'](_0x328c67);});});const _0x2a57f2={};_0x2a57f2[_0x18718e(0x1fd)]=!![],_0x2a57f2[_0x18718e(0x212)]=[_0x2739c1[_0x18718e(0x256)],_0x2739c1[_0x18718e(0x1ed)]],this['_observer'][_0x18718e(0x24b)](_0x2a57f2),this[_0x18718e(0x253)]=!![],this[_0x18718e(0x1e8)]=_0x1efc70,this[_0x18718e(0x24f)]=_0x2cc8e4;}static['getPerformance'](){return performance;}static['calculateTimeFromEvents'](_0x1145b3,_0xbcffac){const _0x14a929=a79_0xff0b2b,_0x375af7={};_0x375af7['iaMDp']=function(_0x481616,_0xee723f){return _0x481616+_0xee723f;},_0x375af7[_0x14a929(0x24e)]=function(_0x301aef,_0x398303){return _0x301aef||_0x398303;},_0x375af7[_0x14a929(0x1c7)]=function(_0x1f9c44,_0x10555b){return _0x1f9c44===_0x10555b;};const _0x15f942=_0x375af7,_0x4c0d5d={};if(!_0x1145b3||_0x15f942['OPSTR'](_0x1145b3['length'],0x0))return;_0x1145b3[_0x14a929(0x221)](_0x36929e=>{const _0x48d455=_0x14a929;!_0x4c0d5d[_0x36929e[_0x48d455(0x21e)]]&&(_0x4c0d5d[_0x36929e[_0x48d455(0x21e)]]=0x0),_0x4c0d5d[_0x36929e['name']]+=_0x36929e['duration'];});const _0x5ca097=_0xbcffac[_0x14a929(0x24a)]((_0x50ce7c,_0x1a5898)=>{const _0x81de96=_0x14a929;return _0x15f942[_0x81de96(0x1d6)](_0x4c0d5d[_0x1a5898],_0x15f942[_0x81de96(0x24e)](_0x50ce7c,0x0));},0x0);return _0x5ca097;}static async['calculateTimesFromMultipleFiles'](_0x43bc45,_0x4208e5){const _0x14d31e=a79_0xff0b2b,_0x3a158f={'QyyCd':function(_0x27c0b2,_0x589b94){return _0x27c0b2+_0x589b94;},'UyBZz':function(_0x136588,_0x2451a5){return _0x136588||_0x2451a5;},'SIXFG':function(_0x3545d8,_0x3825be){return _0x3545d8===_0x3825be;},'NQTJr':function(_0x4284f7,_0x52c19e){return _0x4284f7(_0x52c19e);},'dfiul':function(_0x26b4c9,_0x523ead){return _0x26b4c9(_0x523ead);}};if(!_0x43bc45||_0x3a158f['SIXFG'](_0x43bc45[_0x14d31e(0x1ea)],0x0))return 0x0;const _0x1c8510=[];for(const _0xaeea82 of _0x43bc45){const _0x16695f=path['join']('.',_0xaeea82);try{const _0xeb2feb=this[_0x14d31e(0x202)](_0x16695f);_0xeb2feb[_0x14d31e(0x221)](_0x1a1d8c=>{const _0x3bf85f=_0x14d31e;!_0x1c8510[_0x1a1d8c[_0x3bf85f(0x21e)]]&&(_0x1c8510[_0x1a1d8c[_0x3bf85f(0x21e)]]=0x0),_0x1c8510[_0x1a1d8c[_0x3bf85f(0x21e)]]+=_0x1a1d8c['duration'];});}catch(_0x1a0394){_0x3a158f[_0x14d31e(0x1ee)](debug,_0x14d31e(0x1d4)+_0x1a0394[_0x14d31e(0x227)]());}}const _0x285f63=_0x4208e5[_0x14d31e(0x24a)]((_0x3f5084,_0x3b8db8)=>{const _0x5334ad=_0x14d31e;return _0x3a158f[_0x5334ad(0x248)](_0x1c8510[_0x3b8db8],_0x3a158f[_0x5334ad(0x257)](_0x3f5084,0x0));},0x0);return _0x3a158f[_0x14d31e(0x21b)](debug,_0x14d31e(0x1d0)+_0x4208e5+_0x14d31e(0x211)+_0x285f63),_0x285f63;}static[a79_0xff0b2b(0x202)](_0x4483cb){const _0x22eede=a79_0xff0b2b;if(!fs['existsSync'](_0x4483cb))return[];return JSON[_0x22eede(0x1ec)](fs['readFileSync'](_0x4483cb)[_0x22eede(0x227)]());}static async[a79_0xff0b2b(0x1da)](_0x37aa8f='performance-own.html',_0x327854=null){const _0x594e49=a79_0xff0b2b,_0x5bc74c={'iulNI':function(_0x4ff3e6,_0x195b0f){return _0x4ff3e6(_0x195b0f);}};if(!this[_0x594e49(0x253)])return;await _0x5bc74c[_0x594e49(0x236)](sleep,0x1e),this[_0x594e49(0x21c)][_0x594e49(0x21d)](),this['started']=![],this[_0x594e49(0x1e3)](this[_0x594e49(0x22d)]);const _0x2ad099=this['generateHTMLReport'](this[_0x594e49(0x22d)]),_0xb497df=path['join'](process['cwd'](),_0x37aa8f);fs[_0x594e49(0x1e7)](_0xb497df,_0x2ad099,_0x45c30a=>{const _0x359154=_0x594e49;if(_0x45c30a){_0x5bc74c['iulNI'](debug,_0x359154(0x1d1)+_0x45c30a[_0x359154(0x227)]());return;}_0x5bc74c[_0x359154(0x236)](debug,_0x359154(0x21f)+_0xb497df);});if(_0x327854)return this[_0x594e49(0x1f0)](this['_events'],_0x327854);}static[a79_0xff0b2b(0x218)](_0x4a9930){const _0x312f81=a79_0xff0b2b,_0x46cd69={};_0x46cd69['Rhjis']=_0x312f81(0x241),_0x46cd69[_0x312f81(0x1d5)]=_0x312f81(0x232),_0x46cd69[_0x312f81(0x1c1)]='<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>',_0x46cd69[_0x312f81(0x230)]=_0x312f81(0x24d);const _0x79d7fb=_0x46cd69;let _0x3b20c7=_0x79d7fb[_0x312f81(0x246)];return _0x3b20c7+=_0x79d7fb[_0x312f81(0x1d5)],_0x3b20c7+=_0x79d7fb[_0x312f81(0x1c1)],_0x4a9930[_0x312f81(0x201)](_0x573b87=>{const _0x30b9c9=_0x312f81;_0x3b20c7+=_0x30b9c9(0x1c5)+_0x573b87['name']+'</td><td>'+_0x573b87[_0x30b9c9(0x1c0)]+_0x30b9c9(0x225);}),_0x3b20c7+=_0x79d7fb['bHsWg'],_0x3b20c7;}static['generateJSON'](_0x376508){const _0x38d93d=a79_0xff0b2b;if(!this['jsonReportFileName'])return;const _0x3cbe23={};_0x376508[_0x38d93d(0x221)](_0x391c13=>{const _0x3169f3=_0x38d93d;!_0x3cbe23[_0x391c13[_0x3169f3(0x21e)]]&&(_0x3cbe23[_0x391c13[_0x3169f3(0x21e)]]=0x0),_0x3cbe23[_0x391c13[_0x3169f3(0x21e)]]+=_0x391c13[_0x3169f3(0x1c0)];});const _0x29186b=Object[_0x38d93d(0x22a)](_0x3cbe23)[_0x38d93d(0x221)](([_0x2fb1d6,_0x3707fe])=>{const _0xb72418=_0x38d93d,_0xfedba6={};return _0xfedba6[_0xb72418(0x21e)]=_0x2fb1d6,_0xfedba6[_0xb72418(0x1c0)]=_0x3707fe,_0xfedba6;});fs[_0x38d93d(0x1f8)](this[_0x38d93d(0x1e8)],JSON[_0x38d93d(0x20e)](_0x29186b));}static['isEnabled'](){const _0x37dff6=a79_0xff0b2b,_0xffa021={};_0xffa021[_0x37dff6(0x1f4)]=function(_0x10c32e,_0x132b07){return _0x10c32e===_0x132b07;},_0xffa021[_0x37dff6(0x226)]=_0x37dff6(0x245);const _0x2b180e=_0xffa021;return!_0x2b180e[_0x37dff6(0x1f4)](process[_0x37dff6(0x251)][_0x37dff6(0x22c)],_0x2b180e[_0x37dff6(0x226)]);}static[a79_0xff0b2b(0x228)](_0x1f6bf1,_0x358955,_0x29561c=null,_0x3adf94={},_0x28be9b=null){const _0x78c2bb=a79_0xff0b2b,_0x545213={'dGdVh':function(_0x2fc454,_0x4043f2){return _0x2fc454(_0x4043f2);},'kKtuJ':function(_0x57f848,_0x5714bc){return _0x57f848 instanceof _0x5714bc;}};try{if(this[_0x78c2bb(0x253)]&&this[_0x78c2bb(0x229)]()){let _0x10d8f9=_0x1f6bf1;_0x29561c&&(_0x10d8f9=_0x1f6bf1+'['+JSON[_0x78c2bb(0x20e)](_0x29561c)+']');PerformanceTester['start'](_0x10d8f9),this[_0x78c2bb(0x1d9)]&&(this[_0x78c2bb(0x1d9)][_0x10d8f9]=_0x3adf94);try{const _0x491086=_0x358955['apply'](null,_0x28be9b);if(_0x545213['kKtuJ'](_0x491086,Promise))return new Promise((_0x5e27b5,_0x5033db)=>{const _0x51c363=_0x78c2bb,_0x172697={'NKRfz':function(_0x325a95,_0xb6dbfe){return _0x545213['dGdVh'](_0x325a95,_0xb6dbfe);}};_0x491086[_0x51c363(0x1ca)](_0x20c387=>{const _0x24999a=_0x51c363;PerformanceTester['end'](_0x10d8f9),_0x172697[_0x24999a(0x21a)](_0x5e27b5,_0x20c387);})['catch'](_0x1cf2de=>{const _0x455670=_0x51c363;PerformanceTester[_0x455670(0x20a)](_0x10d8f9,![],util[_0x455670(0x1f1)](_0x1cf2de)),_0x545213[_0x455670(0x240)](_0x5033db,_0x1cf2de);});});;return PerformanceTester[_0x78c2bb(0x20a)](_0x10d8f9),_0x491086;}catch(_0x219c49){PerformanceTester[_0x78c2bb(0x20a)](_0x10d8f9,![],util[_0x78c2bb(0x1f1)](_0x219c49));throw _0x219c49;}};return _0x358955['apply'](null,_0x28be9b);}catch(_0x1092fe){return _0x358955[_0x78c2bb(0x252)](null,_0x28be9b);}}static[a79_0xff0b2b(0x1fe)](_0x3f4008,_0x3200e3,_0x2c42f1={}){const _0xcf099=a79_0xff0b2b,_0x1f1cd9={'rMGEK':function(_0x1bd50d){return _0x1bd50d();}},_0x5e489e=this;return _0x2c42f1[_0xcf099(0x1f7)]=_0x1f1cd9[_0xcf099(0x20d)](getProcessId),_0x2c42f1[_0xcf099(0x1cb)]=_0x1f1cd9[_0xcf099(0x20d)](getTestName),_0x2c42f1[_0xcf099(0x208)]=global[_0xcf099(0x214)]&&global[_0xcf099(0x214)][_0xcf099(0x215)],function(){const _0x4467fe=_0xcf099,_0x37add2=[_0x3f4008,_0x3200e3,null,_0x2c42f1]['concat'](arguments);return _0x5e489e[_0x4467fe(0x228)][_0x4467fe(0x252)](_0x5e489e,_0x37add2);};}static[a79_0xff0b2b(0x1bf)](){const _0x54c741=a79_0xff0b2b,_0x629f64=/(^.*)\[(.*)\]$/,_0x49c34d={},_0x1acf87={},_0x32d655=[],_0x3f4353=this['_measureEvents'][_0x54c741(0x20b)](0x0,this[_0x54c741(0x242)]['length']);for(const _0x137e19 of _0x3f4353){const _0xc8007a=_0x137e19['name'][_0x54c741(0x203)](_0x629f64),_0x23b2d8=Object[_0x54c741(0x239)]({},_0x137e19);_0xc8007a&&(_0x23b2d8['name']=_0xc8007a[0x1],_0x23b2d8[_0x54c741(0x1f3)]=JSON[_0x54c741(0x1ec)](_0xc8007a[0x2])),_0x32d655[_0x54c741(0x1e5)](_0x23b2d8);}return _0x32d655;}static['pushPerfMeasures'](){const _0x3120a3=a79_0xff0b2b,_0x40ac8a={};_0x40ac8a[_0x3120a3(0x243)]=function(_0x47dcb9,_0x417205){return _0x47dcb9+_0x417205;},_0x40ac8a['uejmz']=_0x3120a3(0x1fa),_0x40ac8a['eoVID']=function(_0x24c8a6,_0x21ea81){return _0x24c8a6===_0x21ea81;};const _0x382b95=_0x40ac8a;try{if(fs[_0x3120a3(0x1bd)](this[_0x3120a3(0x1f5)])){const _0x4e1dbe=fs[_0x3120a3(0x1bc)](this[_0x3120a3(0x1f5)]);for(const _0x1bb35f of _0x4e1dbe){fs[_0x3120a3(0x1c3)](path[_0x3120a3(0x206)](this[_0x3120a3(0x1f5)],_0x1bb35f));}}}catch(_0x545511){logger[_0x3120a3(0x1d8)](_0x382b95[_0x3120a3(0x243)](_0x382b95[_0x3120a3(0x213)],_0x545511));}if(_0x382b95[_0x3120a3(0x1cd)](this[_0x3120a3(0x242)][_0x3120a3(0x1ea)],0x0))return;const _0x2a71ee=this['getCleanedPerfEvents'](),_0x3b9397=JSON[_0x3120a3(0x20e)](_0x2a71ee),_0x263a57=_0x382b95[_0x3120a3(0x243)](_0x3b9397[_0x3120a3(0x1eb)](0x1,-0x1),',');fs[_0x3120a3(0x1c9)](this['jsonReportFileName'],_0x263a57);}static async[a79_0xff0b2b(0x216)](){const _0x45eb82=a79_0xff0b2b,_0x43ea3b={};_0x43ea3b[_0x45eb82(0x209)]=function(_0x28cd71,_0x71fc83){return _0x28cd71===_0x71fc83;},_0x43ea3b['STGFi']=function(_0x38a1f3,_0x447cd2){return _0x38a1f3>_0x447cd2;};const _0x4b149e=_0x43ea3b;if(!this[_0x45eb82(0x253)]||_0x4b149e[_0x45eb82(0x209)](this[_0x45eb82(0x242)][_0x45eb82(0x1ea)],0x0))return[];if(!fs[_0x45eb82(0x1bd)](this[_0x45eb82(0x1f5)]))return this[_0x45eb82(0x242)];const _0x2d99ff=(await fsPromise[_0x45eb82(0x1fc)](this[_0x45eb82(0x1f5)]))[_0x45eb82(0x221)](_0x4f7633=>path[_0x45eb82(0x1f2)](this[_0x45eb82(0x1f5)],_0x4f7633));let _0x54ef74=(await Promise[_0x45eb82(0x238)](_0x2d99ff[_0x45eb82(0x221)](_0x294d19=>fsPromise[_0x45eb82(0x1be)](_0x294d19,_0x45eb82(0x234)))))[_0x45eb82(0x221)](_0x3893f4=>'['+_0x3893f4[_0x45eb82(0x1eb)](0x0,-0x1)+']')['map'](_0x4ec283=>JSON[_0x45eb82(0x1ec)](_0x4ec283))[_0x45eb82(0x255)]();return _0x4b149e[_0x45eb82(0x1ef)](this[_0x45eb82(0x242)][_0x45eb82(0x1ea)],0x0)&&(_0x54ef74=_0x54ef74[_0x45eb82(0x222)](this[_0x45eb82(0x1bf)]())),this[_0x45eb82(0x21c)]['disconnect'](),_0x54ef74;}static['pushErrors'](){const _0x45b82e=a79_0xff0b2b,_0xc6cc89={};_0xc6cc89['YThKr']=function(_0x942b71,_0x194cad){return _0x942b71===_0x194cad;},_0xc6cc89['KhsfK']=function(_0x194fd9,_0x4f6ebd){return _0x194fd9+_0x4f6ebd;};const _0x30f536=_0xc6cc89;if(_0x30f536[_0x45b82e(0x1dc)](this['_errorEvents'][_0x45b82e(0x1ea)],0x0))return;const _0x554a10=JSON[_0x45b82e(0x20e)](this['_errorEvents']),_0x53081a=_0x30f536[_0x45b82e(0x250)](_0x554a10['slice'](0x1,-0x1),',');fs[_0x45b82e(0x1c9)](this['errorFile'],_0x53081a);}static['finalizeErrors'](){const _0x3d5415=a79_0xff0b2b,_0x2679dc={};_0x2679dc[_0x3d5415(0x1cf)]=function(_0x26f9da,_0xdaec4){return _0x26f9da>_0xdaec4;};const _0x572627=_0x2679dc;if(!fs[_0x3d5415(0x1bd)](this[_0x3d5415(0x24f)]))return this[_0x3d5415(0x244)];let _0x3c7fe9=fs['readFileSync'](this[_0x3d5415(0x24f)])['toString']();_0x3c7fe9='['+_0x3c7fe9['slice'](0x0,-0x1)+']';let _0x198b09=JSON[_0x3d5415(0x1ec)](_0x3c7fe9);return _0x572627[_0x3d5415(0x1cf)](this[_0x3d5415(0x244)][_0x3d5415(0x1ea)],0x0)&&(_0x198b09=_0x198b09[_0x3d5415(0x222)](this[_0x3d5415(0x244)])),fs[_0x3d5415(0x1c3)](this[_0x3d5415(0x24f)]),_0x198b09;}static[a79_0xff0b2b(0x23b)](_0x1aadaa){const _0x3e2cb8=a79_0xff0b2b;if(!this['isEnabled']())return;this[_0x3e2cb8(0x244)]['push']({'message':_0x1aadaa[_0x3e2cb8(0x20f)],'trace':_0x1aadaa['stack'],'code':_0x1aadaa['code']||null,'time':new Date()});}static[a79_0xff0b2b(0x210)](){const _0x3e4c00=a79_0xff0b2b;try{if(!this[_0x3e4c00(0x229)]())return;this[_0x3e4c00(0x21c)][_0x3e4c00(0x21d)](),this[_0x3e4c00(0x23e)](),this['pushErrors']();}catch(_0x277f64){logger[_0x3e4c00(0x1d8)]('Error\x20stopping\x20monitoring\x20'+util[_0x3e4c00(0x1f1)](_0x277f64));}}static async['finalize'](){const _0x2480c4=a79_0xff0b2b,_0x4e7d49={'nkCFu':function(_0x295751,_0x73b99c){return _0x295751(_0x73b99c);}};await _0x4e7d49[_0x2480c4(0x205)](sleep,0x1e);const _0x14bae8=await this['finalizePerfMeasures'](),_0x14ff72=this[_0x2480c4(0x1dd)]();if(!this[_0x2480c4(0x229)]()){const _0x190b19={};return _0x190b19['measures']=[],_0x190b19[_0x2480c4(0x1d2)]=[],_0x190b19;}const _0x3b20e6={};return _0x3b20e6['measures']=_0x14bae8,_0x3b20e6[_0x2480c4(0x1d2)]=_0x14ff72,_0x3b20e6;}static[a79_0xff0b2b(0x1c2)](_0x39b25c){const _0x26a323=a79_0xff0b2b,_0x401d74={};_0x401d74[_0x26a323(0x1c6)]=function(_0x21991b,_0x3627f0){return _0x21991b+_0x3627f0;},_0x401d74[_0x26a323(0x224)]='-start';const _0x42c69e=_0x401d74,_0x25f9e2=_0x42c69e[_0x26a323(0x1c6)](_0x39b25c,_0x42c69e[_0x26a323(0x224)]);if(this['eventsMap'][_0x25f9e2])return;performance['mark'](_0x25f9e2),this[_0x26a323(0x249)][_0x25f9e2]=0x1;}static['end'](_0xc111bd,_0x22e008=!![],_0x279463=null,_0x49f645={}){const _0x2e8543=a79_0xff0b2b,_0x514cfd={'AUZDu':function(_0x300beb,_0x270ef3){return _0x300beb+_0x270ef3;},'iqQrf':_0x2e8543(0x1cc),'DGCei':_0x2e8543(0x1e0),'AJDES':function(_0x277d2f,_0x35bc48){return _0x277d2f+_0x35bc48;},'FHQLV':function(_0x3e4f16){return _0x3e4f16();},'PnpND':function(_0x218cd){return _0x218cd();}};performance[_0x2e8543(0x1f9)](_0x514cfd[_0x2e8543(0x24c)](_0xc111bd,_0x514cfd[_0x2e8543(0x254)])),performance[_0x2e8543(0x228)](_0xc111bd,_0x514cfd[_0x2e8543(0x24c)](_0xc111bd,_0x514cfd['DGCei']),_0x514cfd[_0x2e8543(0x22b)](_0xc111bd,_0x514cfd[_0x2e8543(0x254)]));const _0x35cef3={};_0x35cef3[_0x2e8543(0x231)]=_0x22e008,_0x35cef3['failure']=_0x279463,this[_0x2e8543(0x1d9)][_0xc111bd]=Object[_0x2e8543(0x239)](_0x35cef3,Object[_0x2e8543(0x239)](Object['assign']({'worker':_0x514cfd[_0x2e8543(0x22f)](getProcessId),'platform':global['__platformCaps']&&global['__platformCaps']['index'],'testName':_0x514cfd[_0x2e8543(0x1fb)](getTestName)},_0x49f645),this[_0x2e8543(0x1d9)][_0xc111bd]||{}));}}module['exports']=PerformanceTester;
|
|
1
|
+
const a79_0x2171e5=a79_0x4e7a;(function(_0x3d5e6c,_0x5d64db){const _0x4dc9c9=a79_0x4e7a,_0x51b4ae=_0x3d5e6c();while(!![]){try{const _0x5d2cd6=parseInt(_0x4dc9c9(0x169))/0x1*(-parseInt(_0x4dc9c9(0x17a))/0x2)+parseInt(_0x4dc9c9(0x193))/0x3+-parseInt(_0x4dc9c9(0x147))/0x4+parseInt(_0x4dc9c9(0x110))/0x5*(-parseInt(_0x4dc9c9(0x150))/0x6)+parseInt(_0x4dc9c9(0x160))/0x7*(parseInt(_0x4dc9c9(0x175))/0x8)+-parseInt(_0x4dc9c9(0xfd))/0x9+-parseInt(_0x4dc9c9(0x10f))/0xa*(-parseInt(_0x4dc9c9(0x176))/0xb);if(_0x5d2cd6===_0x5d64db)break;else _0x51b4ae['push'](_0x51b4ae['shift']());}catch(_0x34359f){_0x51b4ae['push'](_0x51b4ae['shift']());}}}(a79_0x4d08,0xcb10e));const fs=require('fs'),fsPromise=require(a79_0x2171e5(0x183)),{performance,PerformanceObserver}=require(a79_0x2171e5(0x143)),path=require(a79_0x2171e5(0x180)),util=require(a79_0x2171e5(0x10d)),logger=require(a79_0x2171e5(0x116))[a79_0x2171e5(0x129)],{getProcessId,sleep,debug,getTestName}=require(a79_0x2171e5(0x179));function a79_0x4e7a(_0x261ea1,_0x1e17db){const _0x4d0879=a79_0x4d08();return a79_0x4e7a=function(_0x4e7a03,_0x2abf16){_0x4e7a03=_0x4e7a03-0xfd;let _0x374a15=_0x4d0879[_0x4e7a03];return _0x374a15;},a79_0x4e7a(_0x261ea1,_0x1e17db);}class PerformanceTester{static ['_observer'];static [a79_0x2171e5(0x178)]=[];static [a79_0x2171e5(0x12b)]=[];static [a79_0x2171e5(0x16b)]=[];static [a79_0x2171e5(0xff)]=![];static [a79_0x2171e5(0x149)]=a79_0x2171e5(0x170);static [a79_0x2171e5(0x18d)]=process['env']['browserStackCwd']?path['join'](process['env'][a79_0x2171e5(0x130)],this[a79_0x2171e5(0x149)]):path['join'](process[a79_0x2171e5(0x148)](),a79_0x2171e5(0x114),this[a79_0x2171e5(0x149)]);static [a79_0x2171e5(0x152)]=process[a79_0x2171e5(0x11f)][a79_0x2171e5(0x130)]?path[a79_0x2171e5(0x133)](process[a79_0x2171e5(0x11f)][a79_0x2171e5(0x130)],a79_0x2171e5(0x105)):path[a79_0x2171e5(0x133)](process[a79_0x2171e5(0x148)](),a79_0x2171e5(0x105));static [a79_0x2171e5(0x142)]=this[a79_0x2171e5(0x18d)]+'/performance-report-'+getProcessId()+a79_0x2171e5(0x144);static [a79_0x2171e5(0x163)]=this[a79_0x2171e5(0x152)]+a79_0x2171e5(0x196)+getProcessId()+a79_0x2171e5(0x144);static ['details']={};static [a79_0x2171e5(0x135)]={};static[a79_0x2171e5(0x13a)](_0x5637f2=this[a79_0x2171e5(0x18d)]+a79_0x2171e5(0x155)+getProcessId()+a79_0x2171e5(0x144),_0x56de31=this[a79_0x2171e5(0x152)]+a79_0x2171e5(0x196)+getProcessId()+a79_0x2171e5(0x144)){const _0x41a626=a79_0x2171e5,_0x2b248b={};_0x2b248b['rMRKb']=function(_0x407be3,_0x45a1cd){return _0x407be3===_0x45a1cd;},_0x2b248b[_0x41a626(0x119)]=_0x41a626(0x15b),_0x2b248b['vxwUs']=function(_0x41cb63,_0x1d6c5a){return _0x41cb63+_0x1d6c5a;},_0x2b248b[_0x41a626(0x128)]=_0x41a626(0x108),_0x2b248b[_0x41a626(0x19d)]='function';const _0xa0e7d5=_0x2b248b;try{!fs['existsSync'](this[_0x41a626(0x18d)])&&fs[_0x41a626(0x18a)](this['jsonReportDirPath']);}catch(_0x3db683){logger[_0x41a626(0x192)](_0xa0e7d5[_0x41a626(0x112)](_0xa0e7d5[_0x41a626(0x128)],_0x3db683));}if(this[_0x41a626(0xff)]||!this[_0x41a626(0x199)]())return;this['_observer']=new PerformanceObserver(_0x2f2d43=>{const _0x370be5=_0x41a626,_0x5bfe3d={'rZxRL':function(_0x41569c,_0x2681d2){const _0x2b89d7=a79_0x4e7a;return _0xa0e7d5[_0x2b89d7(0x14c)](_0x41569c,_0x2681d2);},'MxNMI':_0xa0e7d5[_0x370be5(0x119)]};_0x2f2d43[_0x370be5(0x195)]()[_0x370be5(0x16e)](_0x478750=>{const _0x2e0d48=_0x370be5;if(_0x5bfe3d['rZxRL'](_0x478750[_0x2e0d48(0x197)],_0x5bfe3d[_0x2e0d48(0x194)])){let _0x2f313c={};if(_0x478750[_0x2e0d48(0x13c)])_0x2f313c=_0x478750[_0x2e0d48(0x13c)]();else for(const _0x3e319a in _0x478750){_0x2f313c[_0x3e319a]=_0x478750[_0x3e319a];}this[_0x2e0d48(0x109)][_0x478750[_0x2e0d48(0x127)]]&&(_0x2f313c=Object[_0x2e0d48(0x191)](_0x2f313c,this['details'][_0x478750[_0x2e0d48(0x127)]])),delete this[_0x2e0d48(0x109)][_0x478750[_0x2e0d48(0x127)]],this[_0x2e0d48(0x12b)][_0x2e0d48(0x140)](_0x2f313c);}else this[_0x2e0d48(0x178)]['push'](_0x478750);});});const _0x2b0514={};_0x2b0514['buffered']=!![],_0x2b0514['entryTypes']=[_0xa0e7d5[_0x41a626(0x19d)],_0xa0e7d5[_0x41a626(0x119)]],this[_0x41a626(0x145)][_0x41a626(0x137)](_0x2b0514),this[_0x41a626(0xff)]=!![],this['jsonReportFileName']=_0x5637f2,this[_0x41a626(0x163)]=_0x56de31;}static[a79_0x2171e5(0x153)](){return performance;}static[a79_0x2171e5(0x13b)](_0x26f8ab,_0x2332c1){const _0x508db3=a79_0x2171e5,_0x25a6c5={};_0x25a6c5[_0x508db3(0x113)]=function(_0x983d24,_0x4a9644){return _0x983d24+_0x4a9644;},_0x25a6c5[_0x508db3(0x16d)]=function(_0x544619,_0x48ca02){return _0x544619||_0x48ca02;},_0x25a6c5[_0x508db3(0x151)]=function(_0x13d1d7,_0x59cbda){return _0x13d1d7===_0x59cbda;};const _0x418f5b=_0x25a6c5,_0x4732bf={};if(!_0x26f8ab||_0x418f5b[_0x508db3(0x151)](_0x26f8ab[_0x508db3(0x166)],0x0))return;_0x26f8ab[_0x508db3(0x126)](_0x434375=>{const _0x548d73=_0x508db3;!_0x4732bf[_0x434375[_0x548d73(0x127)]]&&(_0x4732bf[_0x434375[_0x548d73(0x127)]]=0x0),_0x4732bf[_0x434375['name']]+=_0x434375['duration'];});const _0x2a30b9=_0x2332c1[_0x508db3(0x12d)]((_0x27f6c9,_0x46a85c)=>{const _0x360121=_0x508db3;return _0x418f5b['jkjcK'](_0x4732bf[_0x46a85c],_0x418f5b[_0x360121(0x16d)](_0x27f6c9,0x0));},0x0);return _0x2a30b9;}static async[a79_0x2171e5(0x16c)](_0x3ad14c,_0x359434){const _0x3e16a8=a79_0x2171e5,_0x1d21e7={'cXkuQ':function(_0x2a4c09,_0x207546){return _0x2a4c09+_0x207546;},'NCRFq':function(_0x45865c,_0x3e70ba){return _0x45865c||_0x3e70ba;},'jwRwm':function(_0x245ce8,_0x5811f6){return _0x245ce8===_0x5811f6;},'aPEKr':function(_0x48ff4b,_0x55f92a){return _0x48ff4b(_0x55f92a);},'wYbpI':function(_0x46b316,_0x3d5579){return _0x46b316(_0x3d5579);}};if(!_0x3ad14c||_0x1d21e7[_0x3e16a8(0x162)](_0x3ad14c[_0x3e16a8(0x166)],0x0))return 0x0;const _0x143039=[];for(const _0x1bf139 of _0x3ad14c){const _0x2f6874=path[_0x3e16a8(0x133)]('.',_0x1bf139);try{const _0x4498b9=this['getEventsFromJSON'](_0x2f6874);_0x4498b9[_0x3e16a8(0x126)](_0x49f6b5=>{const _0xcc57bb=_0x3e16a8;!_0x143039[_0x49f6b5['name']]&&(_0x143039[_0x49f6b5[_0xcc57bb(0x127)]]=0x0),_0x143039[_0x49f6b5[_0xcc57bb(0x127)]]+=_0x49f6b5[_0xcc57bb(0x12e)];});}catch(_0x405408){_0x1d21e7['aPEKr'](debug,_0x3e16a8(0x17c)+_0x405408[_0x3e16a8(0x15e)]());}}const _0x13b02f=_0x359434[_0x3e16a8(0x12d)]((_0x52fe2e,_0x5bcc22)=>{const _0x2220bb=_0x3e16a8;return _0x1d21e7[_0x2220bb(0x181)](_0x143039[_0x5bcc22],_0x1d21e7[_0x2220bb(0x171)](_0x52fe2e,0x0));},0x0);return _0x1d21e7[_0x3e16a8(0x106)](debug,_0x3e16a8(0x132)+_0x359434+_0x3e16a8(0x189)+_0x13b02f),_0x13b02f;}static[a79_0x2171e5(0x185)](_0x2f3918){const _0x773a70=a79_0x2171e5;if(!fs[_0x773a70(0x12a)](_0x2f3918))return[];return JSON[_0x773a70(0x182)](fs[_0x773a70(0x136)](_0x2f3918)['toString']());}static async['stopAndGenerate'](_0x3fb6bc=a79_0x2171e5(0x184),_0x5c9a4c=null){const _0x2ef31f=a79_0x2171e5,_0xfe25d1={'oDLMY':function(_0x4ad5dc,_0x46414f){return _0x4ad5dc(_0x46414f);}};if(!this[_0x2ef31f(0xff)])return;await _0xfe25d1[_0x2ef31f(0x15d)](sleep,0x1e),this[_0x2ef31f(0x145)][_0x2ef31f(0x159)](),this[_0x2ef31f(0xff)]=![],this[_0x2ef31f(0x141)](this[_0x2ef31f(0x178)]);const _0x5b097a=this[_0x2ef31f(0x134)](this[_0x2ef31f(0x178)]),_0x59163f=path[_0x2ef31f(0x133)](process['cwd'](),_0x3fb6bc);fs[_0x2ef31f(0x11d)](_0x59163f,_0x5b097a,_0x26516c=>{const _0x159da3=_0x2ef31f;if(_0x26516c){_0xfe25d1[_0x159da3(0x15d)](debug,'Error\x20in\x20writing\x20html\x20'+_0x26516c['toString']());return;}_0xfe25d1['oDLMY'](debug,'Performance\x20report\x20is\x20at\x20'+_0x59163f);});if(_0x5c9a4c)return this[_0x2ef31f(0x13b)](this[_0x2ef31f(0x178)],_0x5c9a4c);}static[a79_0x2171e5(0x134)](_0x4dde81){const _0x4d364f=a79_0x2171e5,_0x1b53fa={};_0x1b53fa['qzdYX']=_0x4d364f(0x12f),_0x1b53fa['zPqfA']=_0x4d364f(0x15a),_0x1b53fa[_0x4d364f(0x14e)]='<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>',_0x1b53fa[_0x4d364f(0x107)]=_0x4d364f(0x11b);const _0x20472c=_0x1b53fa;let _0x22bac2=_0x20472c[_0x4d364f(0x17b)];return _0x22bac2+=_0x20472c[_0x4d364f(0x18c)],_0x22bac2+=_0x20472c[_0x4d364f(0x14e)],_0x4dde81[_0x4d364f(0x16e)](_0xe85055=>{const _0x2a53a2=_0x4d364f;_0x22bac2+=_0x2a53a2(0x18e)+_0xe85055[_0x2a53a2(0x127)]+'</td><td>'+_0xe85055[_0x2a53a2(0x12e)]+_0x2a53a2(0x14f);}),_0x22bac2+=_0x20472c[_0x4d364f(0x107)],_0x22bac2;}static[a79_0x2171e5(0x141)](_0x188f4b){const _0x1b3797=a79_0x2171e5;if(!this['jsonReportFileName'])return;const _0x249706={};_0x188f4b[_0x1b3797(0x126)](_0x1a62ea=>{const _0x5ab293=_0x1b3797;!_0x249706[_0x1a62ea[_0x5ab293(0x127)]]&&(_0x249706[_0x1a62ea[_0x5ab293(0x127)]]=0x0),_0x249706[_0x1a62ea['name']]+=_0x1a62ea[_0x5ab293(0x12e)];});const _0x15f8bc=Object['entries'](_0x249706)['map'](([_0x24cb94,_0x227c45])=>{const _0x5bde1e=_0x1b3797,_0x5879ad={};return _0x5879ad[_0x5bde1e(0x127)]=_0x24cb94,_0x5879ad[_0x5bde1e(0x12e)]=_0x227c45,_0x5879ad;});fs[_0x1b3797(0x104)](this[_0x1b3797(0x142)],JSON[_0x1b3797(0x139)](_0x15f8bc));}static[a79_0x2171e5(0x199)](){const _0x4bb649=a79_0x2171e5,_0xeb773d={};_0xeb773d[_0x4bb649(0x10c)]=function(_0xd4a358,_0x2c6caf){return _0xd4a358===_0x2c6caf;},_0xeb773d[_0x4bb649(0x177)]=_0x4bb649(0x118);const _0x4345c3=_0xeb773d;return!_0x4345c3[_0x4bb649(0x10c)](process[_0x4bb649(0x11f)][_0x4bb649(0x186)],_0x4345c3[_0x4bb649(0x177)]);}static[a79_0x2171e5(0x15b)](_0xdfd67a,_0x64bdf8,_0x21f11c=null,_0x95817a={},_0x34ce92=null){const _0x1dfe4c=a79_0x2171e5,_0x390e72={'XpwHG':function(_0x3601e0,_0x2d877a){return _0x3601e0(_0x2d877a);},'CWdkl':function(_0x3fa66b,_0x5f37ee){return _0x3fa66b(_0x5f37ee);},'sUuIa':function(_0x1971a5,_0x2a8a07){return _0x1971a5 instanceof _0x2a8a07;}};try{if(this[_0x1dfe4c(0xff)]&&this[_0x1dfe4c(0x199)]()){let _0x108cac=_0xdfd67a;_0x21f11c&&(_0x108cac=_0xdfd67a+'['+JSON['stringify'](_0x21f11c)+']');PerformanceTester[_0x1dfe4c(0x11a)](_0x108cac),this[_0x1dfe4c(0x109)]&&(this['details'][_0x108cac]=_0x95817a);try{const _0x300665=_0x64bdf8['apply'](null,_0x34ce92);if(_0x390e72['sUuIa'](_0x300665,Promise))return new Promise((_0x33e009,_0xcb631)=>{const _0x276ebd=_0x1dfe4c,_0x591486={'chiKv':function(_0x537a69,_0x369c6a){const _0x1da94a=a79_0x4e7a;return _0x390e72[_0x1da94a(0x19a)](_0x537a69,_0x369c6a);},'FEdnW':function(_0x10ae3f,_0x38076c){const _0x2548a9=a79_0x4e7a;return _0x390e72[_0x2548a9(0x131)](_0x10ae3f,_0x38076c);}};_0x300665[_0x276ebd(0x188)](_0x9a89b=>{const _0x490e8b=_0x276ebd;PerformanceTester['end'](_0x108cac),_0x591486[_0x490e8b(0x12c)](_0x33e009,_0x9a89b);})[_0x276ebd(0x111)](_0x488bd8=>{const _0xd0be38=_0x276ebd;PerformanceTester[_0xd0be38(0x10a)](_0x108cac,![],util[_0xd0be38(0x146)](_0x488bd8)),_0x591486['FEdnW'](_0xcb631,_0x488bd8);});});;return PerformanceTester['end'](_0x108cac),_0x300665;}catch(_0x26337c){PerformanceTester[_0x1dfe4c(0x10a)](_0x108cac,![],util[_0x1dfe4c(0x146)](_0x26337c));throw _0x26337c;}};return _0x64bdf8[_0x1dfe4c(0x167)](null,_0x34ce92);}catch(_0x4baa12){return _0x64bdf8['apply'](null,_0x34ce92);}}static[a79_0x2171e5(0x168)](_0xf803df,_0x3aedf4,_0x25b12b={}){const _0x3efca8=a79_0x2171e5,_0x2ba7d2={'pfLoH':function(_0x461bb8){return _0x461bb8();}},_0xbc1ca9=this;return _0x25b12b['worker']=_0x2ba7d2[_0x3efca8(0x16f)](getProcessId),_0x25b12b[_0x3efca8(0x17f)]=_0x2ba7d2['pfLoH'](getTestName),_0x25b12b[_0x3efca8(0x122)]=global['__platformCaps']&&global[_0x3efca8(0x101)][_0x3efca8(0x125)],function(){const _0xd9cbe1=_0x3efca8,_0x12f874=[_0xf803df,_0x3aedf4,null,_0x25b12b][_0xd9cbe1(0x10b)](arguments);return _0xbc1ca9[_0xd9cbe1(0x15b)]['apply'](_0xbc1ca9,_0x12f874);};}static[a79_0x2171e5(0x10e)](){const _0x327fca=a79_0x2171e5,_0x460f03=/(^.*)\[(.*)\]$/,_0x15f5dc={},_0x457e76={},_0x5502c1=[],_0x46e17e=this['_measureEvents']['splice'](0x0,this['_measureEvents'][_0x327fca(0x166)]);for(const _0x40f629 of _0x46e17e){const _0x26dddd=_0x40f629['name'][_0x327fca(0x16a)](_0x460f03),_0x520e3c=Object[_0x327fca(0x191)]({},_0x40f629);_0x26dddd&&(_0x520e3c[_0x327fca(0x127)]=_0x26dddd[0x1],_0x520e3c[_0x327fca(0x187)]=JSON[_0x327fca(0x182)](_0x26dddd[0x2])),_0x5502c1[_0x327fca(0x140)](_0x520e3c);}return _0x5502c1;}static[a79_0x2171e5(0x156)](){const _0xf4f57c=a79_0x2171e5,_0x2855e9={};_0x2855e9[_0xf4f57c(0x154)]=function(_0x4023e6,_0x4ce3d1){return _0x4023e6+_0x4ce3d1;},_0x2855e9[_0xf4f57c(0x100)]=_0xf4f57c(0x102),_0x2855e9[_0xf4f57c(0x18b)]=function(_0x546d80,_0x30011e){return _0x546d80===_0x30011e;};const _0x5ef60b=_0x2855e9;try{if(fs[_0xf4f57c(0x12a)](this[_0xf4f57c(0x18d)])){const _0x35951a=fs[_0xf4f57c(0x158)](this[_0xf4f57c(0x18d)]);for(const _0x1bfcfe of _0x35951a){fs[_0xf4f57c(0x15f)](path[_0xf4f57c(0x133)](this[_0xf4f57c(0x18d)],_0x1bfcfe));}}}catch(_0x4a6696){logger[_0xf4f57c(0x192)](_0x5ef60b['sBzgD'](_0x5ef60b[_0xf4f57c(0x100)],_0x4a6696));}if(_0x5ef60b[_0xf4f57c(0x18b)](this[_0xf4f57c(0x12b)][_0xf4f57c(0x166)],0x0))return;const _0x806cc5=this[_0xf4f57c(0x10e)](),_0x68e705=JSON[_0xf4f57c(0x139)](_0x806cc5),_0x3f00b3=_0x5ef60b[_0xf4f57c(0x154)](_0x68e705[_0xf4f57c(0x19b)](0x1,-0x1),',');fs[_0xf4f57c(0x11c)](this['jsonReportFileName'],_0x3f00b3);}static async[a79_0x2171e5(0x138)](){const _0x2443b9=a79_0x2171e5,_0x3736c9={};_0x3736c9[_0x2443b9(0x115)]=function(_0x1ceea5,_0x1b740c){return _0x1ceea5===_0x1b740c;},_0x3736c9[_0x2443b9(0x124)]=function(_0x551c62,_0x51afd9){return _0x551c62>_0x51afd9;};const _0x2e822c=_0x3736c9;if(!this[_0x2443b9(0xff)]||_0x2e822c[_0x2443b9(0x115)](this[_0x2443b9(0x12b)]['length'],0x0))return[];if(!fs[_0x2443b9(0x12a)](this[_0x2443b9(0x18d)]))return this[_0x2443b9(0x12b)];const _0x550839=(await fsPromise['readdir'](this[_0x2443b9(0x18d)]))[_0x2443b9(0x126)](_0x9cd69=>path[_0x2443b9(0x14a)](this[_0x2443b9(0x18d)],_0x9cd69));let _0xe165c=(await Promise[_0x2443b9(0x123)](_0x550839[_0x2443b9(0x126)](_0x23f8bb=>fsPromise[_0x2443b9(0x198)](_0x23f8bb,_0x2443b9(0x117)))))['map'](_0x579a81=>'['+_0x579a81[_0x2443b9(0x19b)](0x0,-0x1)+']')['map'](_0x25bacc=>JSON[_0x2443b9(0x182)](_0x25bacc))['flat']();return _0x2e822c[_0x2443b9(0x124)](this[_0x2443b9(0x12b)][_0x2443b9(0x166)],0x0)&&(_0xe165c=_0xe165c[_0x2443b9(0x10b)](this['getCleanedPerfEvents']())),this[_0x2443b9(0x145)][_0x2443b9(0x159)](),_0xe165c;}static[a79_0x2171e5(0x121)](){const _0x183923=a79_0x2171e5,_0x3a708a={};_0x3a708a[_0x183923(0x190)]=function(_0x531e77,_0x4c2fe4){return _0x531e77===_0x4c2fe4;},_0x3a708a['RUEFn']=function(_0x2eda9e,_0x21b2ac){return _0x2eda9e+_0x21b2ac;};const _0x38dcec=_0x3a708a;if(_0x38dcec[_0x183923(0x190)](this[_0x183923(0x16b)]['length'],0x0))return;const _0x47e57d=JSON['stringify'](this[_0x183923(0x16b)]),_0x12a052=_0x38dcec['RUEFn'](_0x47e57d['slice'](0x1,-0x1),',');fs['appendFileSync'](this[_0x183923(0x174)],_0x12a052);}static[a79_0x2171e5(0x11e)](){const _0x10cba7=a79_0x2171e5,_0x55f7de={};_0x55f7de['mapNG']=function(_0xac1368,_0x12de17){return _0xac1368>_0x12de17;};const _0x1c653e=_0x55f7de;if(!fs[_0x10cba7(0x12a)](this[_0x10cba7(0x163)]))return this[_0x10cba7(0x16b)];let _0x2e4111=fs[_0x10cba7(0x136)](this['errorReportFileName'])[_0x10cba7(0x15e)]();_0x2e4111='['+_0x2e4111[_0x10cba7(0x19b)](0x0,-0x1)+']';let _0x30b962=JSON[_0x10cba7(0x182)](_0x2e4111);return _0x1c653e[_0x10cba7(0x172)](this[_0x10cba7(0x16b)][_0x10cba7(0x166)],0x0)&&(_0x30b962=_0x30b962[_0x10cba7(0x10b)](this[_0x10cba7(0x16b)])),fs['unlinkSync'](this['errorReportFileName']),_0x30b962;}static[a79_0x2171e5(0x14b)](_0x1a0469){const _0xafba72=a79_0x2171e5;if(!this['isEnabled']())return;this[_0xafba72(0x16b)][_0xafba72(0x140)]({'message':_0x1a0469[_0xafba72(0x14d)],'trace':_0x1a0469['stack'],'code':_0x1a0469[_0xafba72(0x17e)]||null,'time':new Date()});}static[a79_0x2171e5(0x13e)](){const _0x3f93a7=a79_0x2171e5;try{if(!this[_0x3f93a7(0x199)]())return;this[_0x3f93a7(0x145)][_0x3f93a7(0x159)](),this[_0x3f93a7(0x156)](),this[_0x3f93a7(0x121)]();}catch(_0x19bb15){logger[_0x3f93a7(0x192)](_0x3f93a7(0x164)+util[_0x3f93a7(0x146)](_0x19bb15));}}static async['finalize'](){const _0x1e9c3c=a79_0x2171e5,_0x1a8635={'OgKoR':function(_0x4197b3,_0x1538ca){return _0x4197b3(_0x1538ca);}};await _0x1a8635[_0x1e9c3c(0x13d)](sleep,0x1e);const _0x3b338e=await this[_0x1e9c3c(0x138)](),_0x3ac6bb=this[_0x1e9c3c(0x11e)]();if(!this[_0x1e9c3c(0x199)]()){const _0x436ea8={};return _0x436ea8[_0x1e9c3c(0x173)]=[],_0x436ea8[_0x1e9c3c(0xfe)]=[],_0x436ea8;}const _0x2c5f05={};return _0x2c5f05[_0x1e9c3c(0x173)]=_0x3b338e,_0x2c5f05['errors']=_0x3ac6bb,_0x2c5f05;}static[a79_0x2171e5(0x11a)](_0x201010){const _0x4255f9=a79_0x2171e5,_0x4d8b18={};_0x4d8b18[_0x4255f9(0x165)]=function(_0x5b1afc,_0x4aaeca){return _0x5b1afc+_0x4aaeca;},_0x4d8b18['hDARE']=_0x4255f9(0x161);const _0x146b19=_0x4d8b18,_0x42eeb8=_0x146b19[_0x4255f9(0x165)](_0x201010,_0x146b19[_0x4255f9(0x17d)]);if(this[_0x4255f9(0x135)][_0x42eeb8])return;performance[_0x4255f9(0x19c)](_0x42eeb8),this[_0x4255f9(0x135)][_0x42eeb8]=0x1;}static[a79_0x2171e5(0x10a)](_0x1f3b60,_0x2cab66=!![],_0x17c773=null,_0x215614={}){const _0x11327d=a79_0x2171e5,_0x244bcb={'ItqOc':function(_0x5e825a,_0xb94c0d){return _0x5e825a+_0xb94c0d;},'pICxN':_0x11327d(0x157),'GKhAg':function(_0x49eac0,_0x17d45d){return _0x49eac0+_0x17d45d;},'SBkMk':'-start','oKOaM':function(_0x49159d){return _0x49159d();}};performance[_0x11327d(0x19c)](_0x244bcb['ItqOc'](_0x1f3b60,_0x244bcb[_0x11327d(0x18f)])),performance[_0x11327d(0x15b)](_0x1f3b60,_0x244bcb[_0x11327d(0x15c)](_0x1f3b60,_0x244bcb[_0x11327d(0x103)]),_0x244bcb[_0x11327d(0x15c)](_0x1f3b60,_0x244bcb[_0x11327d(0x18f)]));const _0x3bd1e2={};_0x3bd1e2['success']=_0x2cab66,_0x3bd1e2['failure']=_0x17c773,this[_0x11327d(0x109)][_0x1f3b60]=Object['assign'](_0x3bd1e2,Object[_0x11327d(0x191)](Object[_0x11327d(0x191)]({'worker':_0x244bcb[_0x11327d(0x13f)](getProcessId),'platform':global[_0x11327d(0x101)]&&global['__platformCaps'][_0x11327d(0x125)],'testName':_0x244bcb['oKOaM'](getTestName)},_0x215614),this[_0x11327d(0x109)][_0x1f3b60]||{}));}}module[a79_0x2171e5(0x120)]=PerformanceTester;function a79_0x4d08(){const _0x34dc2c=['resolve','captureError','rMRKb','message','sRwRJ','</td></tr>','5208vrRiJd','buzGZ','errorReportDirName','getPerformance','sBzgD','/performance-report-','pushPerfMeasures','-end','readdirSync','disconnect','<h1>Performance\x20Report</h1>','measure','GKhAg','oDLMY','toString','unlinkSync','80598nRtJEd','-start','jwRwm','errorReportFileName','Error\x20stopping\x20monitoring\x20','yQULi','length','apply','measureWrapper','5QFzBne','match','_errorEvents','calculateTimesFromMultipleFiles','nduaH','forEach','pfLoH','performance-report','NCRFq','mapNG','measures','errorFile','656AevnVv','46412707jKBWfI','sekVd','_events','../processHelper','560530WfuxLP','qzdYX','Error\x20in\x20doing\x20csv\x20operations:\x20','hDARE','code','testName','path','cXkuQ','parse','fs/promises','performance-own.html','getEventsFromJSON','BROWSERSTACK_SDK_INSTRUMENTATION','meta','then','\x20for\x20all\x20processes\x20is\x20','mkdirSync','pPuTw','zPqfA','jsonReportDirPath','<tr><td>','pICxN','nNGrF','assign','debug','782643DKCFMG','MxNMI','getEntries','/error-report-','entryType','readFile','isEnabled','XpwHG','slice','mark','kePeo','9733257VivGcn','errors','started','OUzgE','__platformCaps','Error\x20while\x20removing\x20files:\x20','SBkMk','writeFileSync','error-report','wYbpI','attmK','Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','details','end','concat','Gtfvk','util','getCleanedPerfEvents','10tfnvRV','4985mRettU','catch','vxwUs','jkjcK','log','Xzxpt','../logger','utf-8','false','rmUCh','start','</tbody></table></body></html>','appendFileSync','writeFile','finalizeErrors','env','exports','pushErrors','platform','all','hwBVX','index','map','name','mEVJw','winstonLogger','existsSync','_measureEvents','chiKv','reduce','duration','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','browserStackCwd','CWdkl','Time\x20for\x20','join','generateHTMLReport','eventsMap','readFileSync','observe','finalizePerfMeasures','stringify','startMonitoring','calculateTimeFromEvents','toJSON','OgKoR','stopMonitoring','oKOaM','push','generateJSON','jsonReportFileName','perf_hooks','.json','_observer','format','4977656aiBUlZ','cwd','jsonReportDirName'];a79_0x4d08=function(){return _0x34dc2c;};return a79_0x4d08();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a80_0x1a04ae=a80_0x78a7;(function(_0xe76749,_0x559fa7){const _0x4cd3e3=a80_0x78a7,_0x2699f0=_0xe76749();while(!![]){try{const _0x3abcb5=parseInt(_0x4cd3e3(0x6e))/0x1*(-parseInt(_0x4cd3e3(0x6a))/0x2)+-parseInt(_0x4cd3e3(0x73))/0x3*(-parseInt(_0x4cd3e3(0x83))/0x4)+parseInt(_0x4cd3e3(0x6c))/0x5+parseInt(_0x4cd3e3(0x7d))/0x6+parseInt(_0x4cd3e3(0x6d))/0x7+parseInt(_0x4cd3e3(0x82))/0x8+-parseInt(_0x4cd3e3(0x7b))/0x9*(parseInt(_0x4cd3e3(0x71))/0xa);if(_0x3abcb5===_0x559fa7)break;else _0x2699f0['push'](_0x2699f0['shift']());}catch(_0x48ab5a){_0x2699f0['push'](_0x2699f0['shift']());}}}(a80_0x243d,0x6bde2));function a80_0x78a7(_0x4c17fe,_0x160751){const _0x243de8=a80_0x243d();return a80_0x78a7=function(_0x78a7e5,_0x33e8fd){_0x78a7e5=_0x78a7e5-0x6a;let _0x39e41e=_0x243de8[_0x78a7e5];return _0x39e41e;},a80_0x78a7(_0x4c17fe,_0x160751);}const worker=require(a80_0x1a04ae(0x6b)),{fileLogger}=require(a80_0x1a04ae(0x88)),{consoleHolder}=require(a80_0x1a04ae(0x79)),globals=require(a80_0x1a04ae(0x7f));exports[a80_0x1a04ae(0x7c)]=()=>{const _0xcd9b50=a80_0x1a04ae;return process[_0xcd9b50(0x7a)]+'-'+worker['threadId'];},exports[a80_0x1a04ae(0x86)]=()=>{const _0x2d4ad3=a80_0x1a04ae,_0x12ffc0={};_0x12ffc0[_0x2d4ad3(0x70)]=_0x2d4ad3(0x77);const _0x39487b=_0x12ffc0;return globals[_0x2d4ad3(0x78)](_0x39487b['AiBMU']);},exports[a80_0x1a04ae(0x6f)]=(_0x514444=0x64)=>new Promise(_0x3f3ba1=>setTimeout(_0x3f3ba1,_0x514444)),exports[a80_0x1a04ae(0x81)]=_0x2ef348=>{const _0x440c2f=a80_0x1a04ae,_0x2dabdb={};_0x2dabdb[_0x440c2f(0x87)]=function(_0x93946,_0xbbf002){return _0x93946===_0xbbf002;},_0x2dabdb[_0x440c2f(0x75)]=_0x440c2f(0x85),_0x2dabdb['FBrtp']=function(_0x44adba,_0x51c4c1){return _0x44adba===_0x51c4c1;};const _0x2bc7a6=_0x2dabdb;fileLogger[_0x440c2f(0x81)]('['+new Date()[_0x440c2f(0x7e)]()+_0x440c2f(0x76)+_0x2ef348),(_0x2bc7a6['MZQeH'](process[_0x440c2f(0x74)][_0x440c2f(0x84)],_0x2bc7a6['yhlKD'])||_0x2bc7a6[_0x440c2f(0x80)](process[_0x440c2f(0x74)]['BROWSERSTACK_OBSERVABILITY_DEBUG'],'1'))&&consoleHolder[_0x440c2f(0x72)]('\x0a['+new Date()[_0x440c2f(0x7e)]()+_0x440c2f(0x76)+_0x2ef348+'\x0a');};function a80_0x243d(){const _0x2b2219=['43755DzDwsH','env','yhlKD','][\x20OBSERVABILITY\x20]\x20','browserstackTestName','getGlobal','./test-observability/constants','pid','245772qymDNC','getProcessId','2561856jaqinJ','toISOString','./globals','FBrtp','debug','3588216DPmjzm','188hbxTpg','BROWSERSTACK_OBSERVABILITY_DEBUG','true','getTestName','MZQeH','./logger','58eIbchR','worker_threads','58560SzYcON','6118931ATToUm','2281gfwpcJ','sleep','AiBMU','710Sflyil','log'];a80_0x243d=function(){return _0x2b2219;};return a80_0x243d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a81_0x157f1c=a81_0x5f4b;function a81_0x5f4b(_0x21c7f5,_0x17ba18){const _0x370c26=a81_0x370c();return a81_0x5f4b=function(_0x5f4b4c,_0x4c6dba){_0x5f4b4c=_0x5f4b4c-0x11e;let _0x5d2994=_0x370c26[_0x5f4b4c];return _0x5d2994;},a81_0x5f4b(_0x21c7f5,_0x17ba18);}(function(_0x1cfa33,_0x576347){const _0x54cf0a=a81_0x5f4b,_0x46d588=_0x1cfa33();while(!![]){try{const _0x38dc41=-parseInt(_0x54cf0a(0x133))/0x1+parseInt(_0x54cf0a(0x152))/0x2+-parseInt(_0x54cf0a(0x11e))/0x3+parseInt(_0x54cf0a(0x12b))/0x4*(-parseInt(_0x54cf0a(0x139))/0x5)+-parseInt(_0x54cf0a(0x14a))/0x6*(-parseInt(_0x54cf0a(0x14e))/0x7)+parseInt(_0x54cf0a(0x14b))/0x8+parseInt(_0x54cf0a(0x13e))/0x9*(parseInt(_0x54cf0a(0x125))/0xa);if(_0x38dc41===_0x576347)break;else _0x46d588['push'](_0x46d588['shift']());}catch(_0x5b1fa6){_0x46d588['push'](_0x46d588['shift']());}}}(a81_0x370c,0x1ab13));const http=require(a81_0x157f1c(0x12e)),https=require(a81_0x157f1c(0x137)),monkeypatch=require(a81_0x157f1c(0x13a));function spy(_0x5a5b1e){const _0x47e4c1=a81_0x157f1c,_0x4337fc={'RPXcE':function(_0xa196f7,_0x29ee9d){return _0xa196f7 instanceof _0x29ee9d;},'jLtPi':function(_0x10fefe,_0x3f34cf){return _0x10fefe===_0x3f34cf;},'qhQyN':_0x47e4c1(0x129),'fQhkq':function(_0x26b50b,_0x2677cb,_0x5c2d41){return _0x26b50b(_0x2677cb,_0x5c2d41);},'BgsvY':function(_0x12cd86,_0x41ad14){return _0x12cd86-_0x41ad14;},'XfEhO':function(_0x1610f1,_0x25da92,_0x4feb06){return _0x1610f1(_0x25da92,_0x4feb06);},'nalzX':_0x47e4c1(0x138),'edwDZ':function(_0x6436bd,..._0x4dd29d){return _0x6436bd(..._0x4dd29d);},'qHpYy':_0x47e4c1(0x13d),'FJEGK':_0x47e4c1(0x143),'jFbkF':function(_0x231bdb,_0x5abe76,_0xd5c960,_0x1bfc1c){return _0x231bdb(_0x5abe76,_0xd5c960,_0x1bfc1c);},'eakOY':_0x47e4c1(0x132),'CBXYF':'request'},_0x22fa60=function(){const _0x4d873a=_0x47e4c1,_0x346920={'WfNmx':function(_0x3cba47,_0x42a615){const _0x2a1306=a81_0x5f4b;return _0x4337fc[_0x2a1306(0x135)](_0x3cba47,_0x42a615);},'OHyox':function(_0x275ea0,_0x347d48,_0x35bc0e){const _0x49253f=a81_0x5f4b;return _0x4337fc[_0x49253f(0x121)](_0x275ea0,_0x347d48,_0x35bc0e);},'DAzio':_0x4337fc[_0x4d873a(0x150)],'Nisyz':function(_0x27eddd,..._0x4cb9cc){const _0x80bf93=_0x4d873a;return _0x4337fc[_0x80bf93(0x128)](_0x27eddd,..._0x4cb9cc);}},_0x48a00d=arguments[0x0],_0x28e153=Array[_0x4d873a(0x141)][_0x4d873a(0x14c)][_0x4d873a(0x11f)](arguments,0x1),_0x3bc204=_0x48a00d['apply'](this,_0x28e153);let _0x29ea72=Date[_0x4d873a(0x14f)](),_0x41b7e7;const _0x41ac3e={};_0x28e153['forEach'](_0x5353e2=>{const _0x2a4e5a=_0x4d873a;if(_0x4337fc[_0x2a4e5a(0x148)](_0x5353e2,URL)){const _0x3345e9={};_0x3345e9['url']=_0x5353e2,Object['assign'](_0x41ac3e,_0x3345e9);}else _0x4337fc[_0x2a4e5a(0x140)](typeof _0x5353e2,_0x4337fc[_0x2a4e5a(0x12d)])&&Object[_0x2a4e5a(0x130)](_0x41ac3e,_0x5353e2);});const _0x4abd7c=_0x24f9c6=>{const _0x31385c=_0x4d873a,_0x1b311f={};_0x1b311f[_0x31385c(0x131)]=_0x41ac3e[_0x31385c(0x131)]||_0x41ac3e[_0x31385c(0x151)]||_0x41ac3e['url']&&(_0x41ac3e[_0x31385c(0x12f)][_0x31385c(0x131)]||_0x41ac3e[_0x31385c(0x12f)][_0x31385c(0x151)]),_0x1b311f[_0x31385c(0x122)]=_0x41ac3e[_0x31385c(0x122)]||_0x41ac3e[_0x31385c(0x12f)]&&_0x41ac3e[_0x31385c(0x12f)]['pathname'],_0x1b311f[_0x31385c(0x124)]=_0x41ac3e[_0x31385c(0x124)],_0x1b311f[_0x31385c(0x127)]=_0x41ac3e[_0x31385c(0x127)],_0x4337fc['fQhkq'](_0x5a5b1e,_0x24f9c6,_0x1b311f);};return _0x3bc204['once'](_0x4337fc[_0x4d873a(0x146)],_0x2a8d18=>{const _0x24d8b6=_0x4d873a,_0xf1dfe9=_0x346920[_0x24d8b6(0x13f)](Date[_0x24d8b6(0x14f)](),_0x29ea72),_0x2ca3aa={};_0x2ca3aa['hostname']=_0x41ac3e[_0x24d8b6(0x131)]||_0x41ac3e[_0x24d8b6(0x151)]||_0x41ac3e[_0x24d8b6(0x12f)]&&(_0x41ac3e[_0x24d8b6(0x12f)]['host']||_0x41ac3e[_0x24d8b6(0x12f)][_0x24d8b6(0x151)]),_0x2ca3aa[_0x24d8b6(0x122)]=_0x41ac3e[_0x24d8b6(0x122)]||_0x41ac3e[_0x24d8b6(0x12f)]&&_0x41ac3e['url']['pathname'],_0x2ca3aa[_0x24d8b6(0x124)]=_0x41ac3e['method'],_0x2ca3aa[_0x24d8b6(0x127)]=_0x41ac3e[_0x24d8b6(0x127)],_0x2ca3aa[_0x24d8b6(0x123)]=_0x2a8d18[_0x24d8b6(0x13c)],_0x2ca3aa['duration_ms']=_0xf1dfe9,_0x346920[_0x24d8b6(0x145)](_0x5a5b1e,null,_0x2ca3aa),_0x41b7e7[_0x24d8b6(0x12c)](_0x346920[_0x24d8b6(0x142)],_0x4abd7c);}),_0x3bc204['on'](_0x4337fc[_0x4d873a(0x120)],_0x5e233=>{const _0x3b9cc8=_0x4d873a;_0x41b7e7=_0x5e233,_0x5e233[_0x3b9cc8(0x147)](_0x346920[_0x3b9cc8(0x142)],_0x4abd7c);}),_0x4337fc[_0x4d873a(0x144)](monkeypatch,_0x3bc204,_0x4337fc[_0x4d873a(0x126)],(_0x3cd6ce,..._0x56b1f2)=>{const _0x364548=_0x4d873a;_0x29ea72=Date[_0x364548(0x14f)](),_0x346920[_0x364548(0x12a)](_0x3cd6ce,..._0x56b1f2);}),_0x3bc204;};_0x4337fc[_0x47e4c1(0x144)](monkeypatch,http,_0x4337fc[_0x47e4c1(0x13b)],_0x22fa60),_0x4337fc[_0x47e4c1(0x144)](monkeypatch,https,_0x4337fc[_0x47e4c1(0x13b)],_0x22fa60);}function a81_0x370c(){const _0x44e330=['eakOY','headers','edwDZ','object','Nisyz','4rNkQcu','removeListener','qhQyN','http','url','assign','host','end','211823dffHzI','request','BgsvY','spy','https','error','705315PQzTgu','monkeypatch','CBXYF','statusCode','response','1813275phKphO','WfNmx','jLtPi','prototype','DAzio','socket','jFbkF','OHyox','qHpYy','once','RPXcE','restore','186twNtXY','1146240FvWjEj','slice','unpatch','4256UYFKJu','now','nalzX','hostname','241258PZUgyS','66045LomuuL','call','FJEGK','XfEhO','path','status_code','method','10NMZzGX'];a81_0x370c=function(){return _0x44e330;};return a81_0x370c();}function restore(){const _0x137c5d=a81_0x157f1c;http[_0x137c5d(0x134)][_0x137c5d(0x14d)](),https['request'][_0x137c5d(0x14d)]();}const a81_0x3de105={};a81_0x3de105[a81_0x157f1c(0x136)]=spy,a81_0x3de105[a81_0x157f1c(0x149)]=restore,module['exports']=a81_0x3de105;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a82_0x662bf7=a82_0x55a7;function a82_0x55a7(_0x440a6f,_0xcf7e3b){const _0x50e559=a82_0x50e5();return a82_0x55a7=function(_0x55a7ac,_0x3a9b79){_0x55a7ac=_0x55a7ac-0x135;let _0x12ee6a=_0x50e559[_0x55a7ac];return _0x12ee6a;},a82_0x55a7(_0x440a6f,_0xcf7e3b);}(function(_0x543dd8,_0x217ce9){const _0x4fe7b7=a82_0x55a7,_0x353db6=_0x543dd8();while(!![]){try{const _0x6502b4=-parseInt(_0x4fe7b7(0x13d))/0x1*(parseInt(_0x4fe7b7(0x136))/0x2)+parseInt(_0x4fe7b7(0x153))/0x3+-parseInt(_0x4fe7b7(0x143))/0x4+parseInt(_0x4fe7b7(0x13e))/0x5*(parseInt(_0x4fe7b7(0x13a))/0x6)+parseInt(_0x4fe7b7(0x146))/0x7*(-parseInt(_0x4fe7b7(0x13b))/0x8)+-parseInt(_0x4fe7b7(0x152))/0x9*(-parseInt(_0x4fe7b7(0x139))/0xa)+-parseInt(_0x4fe7b7(0x155))/0xb*(parseInt(_0x4fe7b7(0x135))/0xc);if(_0x6502b4===_0x217ce9)break;else _0x353db6['push'](_0x353db6['shift']());}catch(_0x5602ee){_0x353db6['push'](_0x353db6['shift']());}}}(a82_0x50e5,0xc126f));const PerformanceTester=require(a82_0x662bf7(0x140)),{AUTOMATE_EVENTS:PerformanceEvents}=require(a82_0x662bf7(0x14d));module[a82_0x662bf7(0x142)]=PerformanceTester[a82_0x662bf7(0x137)](PerformanceEvents[a82_0x662bf7(0x145)],function(){const _0x527f7b=a82_0x662bf7,_0x5f2242={'UcndZ':function(_0x2281f8,_0x515506){return _0x2281f8===_0x515506;},'kCKfX':_0x527f7b(0x14a),'gyIQO':_0x527f7b(0x13c),'OekXa':function(_0x15d43f,_0x27e5f4,_0x61e5ac){return _0x15d43f(_0x27e5f4,_0x61e5ac);},'dftfr':function(_0x4c22f8,_0x32623a,_0x2ebde5){return _0x4c22f8(_0x32623a,_0x2ebde5);},'ETMYm':function(_0xf6d931,_0x1abfd0){return _0xf6d931(_0x1abfd0);},'prNeI':'http','xANqp':_0x527f7b(0x154),'VZtTa':function(_0xdc4490,_0x5df414){return _0xdc4490*_0x5df414;},'KLnpi':_0x527f7b(0x14c)},_0x351bcd=_0x5f2242['ETMYm'](require,_0x5f2242[_0x527f7b(0x156)]),_0x17ac9b=_0x5f2242[_0x527f7b(0x141)](require,_0x5f2242['xANqp']),_0x926ff2=_0x5f2242[_0x527f7b(0x138)](0x1e,0x3e8);if(_0x351bcd['globalAgent']&&Object[_0x527f7b(0x14f)][_0x527f7b(0x14e)]['call'](_0x351bcd[_0x527f7b(0x148)],_0x5f2242['KLnpi']))_0x351bcd['globalAgent'][_0x527f7b(0x14c)]=!![],_0x17ac9b['globalAgent']['keepAlive']=!![],_0x351bcd['globalAgent'][_0x527f7b(0x151)]=_0x926ff2,_0x17ac9b['globalAgent']['keepAliveMsecs']=_0x926ff2;else{const _0x26047d={};_0x26047d[_0x527f7b(0x14c)]=!![],_0x26047d['keepAliveMsecs']=_0x926ff2;const _0x173855=new _0x351bcd[(_0x527f7b(0x144))](_0x26047d),_0x19089b={};_0x19089b[_0x527f7b(0x14c)]=!![],_0x19089b['keepAliveMsecs']=_0x926ff2;const _0x57a7ad=new _0x17ac9b[(_0x527f7b(0x144))](_0x19089b),_0x162d40=_0x351bcd[_0x527f7b(0x14b)],_0x3b915b=_0x17ac9b['request'];_0x351bcd[_0x527f7b(0x14b)]=function(_0xc82186,_0xfcb9f4){const _0x1c3f38=_0x527f7b;if(_0x5f2242[_0x1c3f38(0x147)](_0xc82186['protocol'],_0x5f2242[_0x1c3f38(0x13f)]))return _0xc82186[_0x5f2242[_0x1c3f38(0x150)]]=_0x57a7ad,_0x5f2242[_0x1c3f38(0x149)](_0x3b915b,_0xc82186,_0xfcb9f4);return _0xc82186[_0x5f2242[_0x1c3f38(0x150)]]=_0x173855,_0x5f2242['dftfr'](_0x162d40,_0xc82186,_0xfcb9f4);};}});function a82_0x50e5(){const _0x2df183=['measureWrapper','VZtTa','70TYxtRt','6nbLxuF','12688ytqpnY','agent','107RdKinr','7741495xCLBOn','kCKfX','./performance/performance-tester','ETMYm','exports','5061380QVNLSh','Agent','KEEP_ALIVE','707dBqFdg','UcndZ','globalAgent','OekXa','https:','request','keepAlive','./performance/constants','hasOwnProperty','prototype','gyIQO','keepAliveMsecs','95625ITUShI','3584691zXCkaJ','https','360866vlqpSF','prNeI','96rkwCbk','6326lKdQtJ'];a82_0x50e5=function(){return _0x2df183;};return a82_0x50e5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a83_0x247a(_0x284d8f,_0x51b690){var _0x5eca0a=a83_0x5eca();return a83_0x247a=function(_0x247aec,_0x5db48e){_0x247aec=_0x247aec-0x85;var _0x18042e=_0x5eca0a[_0x247aec];return _0x18042e;},a83_0x247a(_0x284d8f,_0x51b690);}var a83_0x4ad21d=a83_0x247a;(function(_0x32bb77,_0x2aa0a1){var _0x12cc51=a83_0x247a,_0x1db0b9=_0x32bb77();while(!![]){try{var _0x3ba6c7=-parseInt(_0x12cc51(0x90))/0x1*(-parseInt(_0x12cc51(0x97))/0x2)+-parseInt(_0x12cc51(0x92))/0x3*(parseInt(_0x12cc51(0x86))/0x4)+-parseInt(_0x12cc51(0x99))/0x5*(-parseInt(_0x12cc51(0x8d))/0x6)+parseInt(_0x12cc51(0x95))/0x7*(parseInt(_0x12cc51(0x8a))/0x8)+-parseInt(_0x12cc51(0x98))/0x9+-parseInt(_0x12cc51(0x96))/0xa+parseInt(_0x12cc51(0x88))/0xb;if(_0x3ba6c7===_0x2aa0a1)break;else _0x1db0b9['push'](_0x1db0b9['shift']());}catch(_0x4ad437){_0x1db0b9['push'](_0x1db0b9['shift']());}}}(a83_0x5eca,0xaf1c4));function a83_0x5eca(){var _0x16f700=['2FMWYYO','jest','57RFdoQw','assign','.obs_test_details','43078IOvRQd','1043990IqzIKd','1304220cVVzfJ','2525841fposqV','30bOAsSs','api/v1/screenshots','Playwright','api/v1/event','exports','api/v1/batch','287588AlPQLw','PLAYWRIGHT','4883945tMLbCs','mocha','568zMVoqf','codeceptjs','JEST','283194PCDBGs','MOCHA','https://collector-observability.browserstack.com'];a83_0x5eca=function(){return _0x16f700;};return a83_0x5eca();}var a83_0x4aa4cf={};a83_0x4aa4cf[a83_0x4ad21d(0x87)]=a83_0x4ad21d(0x9b),a83_0x4aa4cf[a83_0x4ad21d(0x8e)]=a83_0x4ad21d(0x89),a83_0x4aa4cf['CODECEPT']=a83_0x4ad21d(0x8b),a83_0x4aa4cf[a83_0x4ad21d(0x8c)]=a83_0x4ad21d(0x91),a83_0x4aa4cf['CUCUMBER']='cucumber',module[a83_0x4ad21d(0x9d)]={'consoleHolder':Object[a83_0x4ad21d(0x93)]({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':a83_0x4ad21d(0x8f),'EVENT_ENDPOINT':a83_0x4ad21d(0x9c),'BATCH_ENDPOINT':a83_0x4ad21d(0x85),'SCREENSHOT_ENDPOINT':a83_0x4ad21d(0x9a),'DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS':0xea60,'DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS':0x64,'DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS':0x1f4,'TEMP_STORE_DIR_NAME':a83_0x4ad21d(0x94),'FRAMEWORKS':a83_0x4aa4cf};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a84_0xa6c687=a84_0x192d;(function(_0x50b69c,_0x5e2c90){const _0xbc2dff=a84_0x192d,_0x3cfb54=_0x50b69c();while(!![]){try{const _0xe18e8a=-parseInt(_0xbc2dff(0x1b7))/0x1*(-parseInt(_0xbc2dff(0x1c0))/0x2)+-parseInt(_0xbc2dff(0x1c8))/0x3*(parseInt(_0xbc2dff(0x17d))/0x4)+parseInt(_0xbc2dff(0x1b8))/0x5*(parseInt(_0xbc2dff(0x19e))/0x6)+-parseInt(_0xbc2dff(0x1a4))/0x7+-parseInt(_0xbc2dff(0x166))/0x8+-parseInt(_0xbc2dff(0x1cb))/0x9+parseInt(_0xbc2dff(0x1cc))/0xa;if(_0xe18e8a===_0x5e2c90)break;else _0x3cfb54['push'](_0x3cfb54['shift']());}catch(_0xa5d6a4){_0x3cfb54['push'](_0x3cfb54['shift']());}}}(a84_0x59e8,0x1f29f));const util=require(a84_0xa6c687(0x186)),PerformanceTester=require('../performance/performance-tester'),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require(a84_0xa6c687(0x182)),{getAgentVersion,nestedKeyValue}=require(a84_0xa6c687(0x168)),o11yErrorHandler=(_0x441f56,_0x590f6e='',_0x44e9fd=[''],_0x46019a=![])=>{const _0x442b47={'dyngc':function(_0x4f10e1,_0x7177ad){return _0x4f10e1(_0x7177ad);},'rDUVt':function(_0x4d1314,_0x4446d2,_0x58b4d9){return _0x4d1314(_0x4446d2,_0x58b4d9);},'Ikxmm':function(_0x21dca5,_0x566253){return _0x21dca5(_0x566253);},'YeiIG':function(_0x58120a,_0x2ac424,_0x3b7ccc){return _0x58120a(_0x2ac424,_0x3b7ccc);},'Afiwp':function(_0x25c09b,_0x24a9e1){return _0x25c09b instanceof _0x24a9e1;},'hGQqf':function(_0x26a411,_0x2f158c,_0x31259c,_0x559422,_0x5d8f43){return _0x26a411(_0x2f158c,_0x31259c,_0x559422,_0x5d8f43);}};return function(..._0x4659d1){const _0x13bc4d=a84_0x192d;try{let _0x168a97=_0x441f56;process[_0x13bc4d(0x1b4)][_0x13bc4d(0x184)]&&(_0x168a97=PerformanceTester[_0x13bc4d(0x18b)]()['timerify'](_0x168a97));_0x46019a&&_0x442b47[_0x13bc4d(0x1be)](trace,_0x13bc4d(0x193)+_0x590f6e+_0x13bc4d(0x187)+process[_0x13bc4d(0x18e)]+_0x13bc4d(0x19d)+_0x442b47['rDUVt'](nestedKeyValue,arguments[0x0],_0x44e9fd));const _0x3e8514=_0x168a97[_0x13bc4d(0x1a3)](null,arguments);_0x46019a&&_0x442b47[_0x13bc4d(0x170)](trace,'Finished\x20::\x20'+_0x590f6e+_0x13bc4d(0x187)+process[_0x13bc4d(0x18e)]+_0x13bc4d(0x19d)+_0x442b47['YeiIG'](nestedKeyValue,arguments[0x0],_0x44e9fd));if(_0x442b47[_0x13bc4d(0x16a)](_0x3e8514,Promise))return _0x3e8514[_0x13bc4d(0x1a7)](_0x3d8919=>processError(_0x3d8919,_0x441f56,_0x4659d1,_0x590f6e));return _0x3e8514;}catch(_0x415939){_0x442b47['hGQqf'](processError,_0x415939,_0x441f56,_0x4659d1,_0x590f6e);}};},o11yClassErrorHandler=(_0x455fde,_0xefd9a5,_0x2bef4f='')=>{const _0x31059e=a84_0xa6c687,_0x589a48={'DNwLb':function(_0x2ca9af,_0x9d4ec9){return _0x2ca9af instanceof _0x9d4ec9;},'RwOTW':function(_0x1b8453,_0x2a292a,_0x134c9a,_0x4f7456,_0x24e66c){return _0x1b8453(_0x2a292a,_0x134c9a,_0x4f7456,_0x24e66c);},'UQzeY':function(_0x3aaf80,_0x5b1f3e){return _0x3aaf80===_0x5b1f3e;},'QcQMi':'function','uTjUE':function(_0x50d214,_0x30bd18){return _0x50d214!==_0x30bd18;},'OPQtG':_0x31059e(0x177),'tMgKL':function(_0x3725ca,_0x4158b0){return _0x3725ca<_0x4158b0;}},_0x205736=_0x455fde['prototype'];if(_0x589a48[_0x31059e(0x179)](Object['getOwnPropertyNames'](_0x205736)[_0x31059e(0x169)],0x2))return _0x455fde;return Object[_0x31059e(0x18c)](_0x205736)['forEach'](_0x538f86=>{const _0x4c2149=_0x31059e;if(!(_0xefd9a5&&_0xefd9a5[_0x4c2149(0x189)](_0x538f86)))return;const _0x39d4c7=_0x205736[_0x538f86];_0x589a48[_0x4c2149(0x172)](typeof _0x39d4c7,_0x589a48[_0x4c2149(0x1c6)])&&_0x589a48['uTjUE'](_0x538f86,_0x589a48['OPQtG'])&&Object[_0x4c2149(0x178)](_0x205736,_0x538f86,{'writable':!![],'value':function(..._0x55e2ff){const _0x4ede16=_0x4c2149;try{const _0x4f325e=(process['env'][_0x4ede16(0x184)]?PerformanceTester[_0x4ede16(0x18b)]()[_0x4ede16(0x195)](_0x39d4c7):_0x39d4c7)[_0x4ede16(0x175)](this,..._0x55e2ff);if(_0x589a48[_0x4ede16(0x188)](_0x4f325e,Promise))return _0x4f325e['catch'](_0x1e88aa=>processError(_0x1e88aa,_0x39d4c7,_0x55e2ff,_0x2bef4f));return _0x4f325e;}catch(_0x7c5e85){_0x589a48[_0x4ede16(0x1bf)](processError,_0x7c5e85,_0x39d4c7,_0x55e2ff,_0x2bef4f);}}});}),_0x455fde;};function processError(_0x53698e,_0x25b230,_0x1f7584,_0x1be739){const _0x1035c4=a84_0xa6c687,_0x2e6767={'vlWsE':function(_0x14d10f,_0x7b39f1){return _0x14d10f(_0x7b39f1);}};_0x2e6767['vlWsE'](debug,_0x1035c4(0x1b3)+_0x25b230[_0x1035c4(0x19b)]+_0x1035c4(0x1ab)+_0x1be739+'.\x20Error\x20-\x20'+_0x53698e+_0x1035c4(0x1a0)+_0x1f7584+'.'),PerformanceTester[_0x1035c4(0x16c)](_0x53698e);let _0x40547e;try{_0x40547e=JSON[_0x1035c4(0x1b2)](_0x1f7584);}catch(_0x525c8d){const _0x5c9fab={};_0x5c9fab[_0x1035c4(0x1c7)]=0x2,_0x40547e=util[_0x1035c4(0x1ca)](_0x1f7584,_0x5c9fab);}CrashReporter[_0x1035c4(0x1a2)](_0x1035c4(0x1b3)+_0x25b230[_0x1035c4(0x19b)]+'\x20--\x20'+_0x1be739+_0x1035c4(0x1c9)+_0x53698e+'.\x20Args\x20-\x20'+_0x40547e+'.',_0x53698e&&_0x53698e[_0x1035c4(0x18d)]);}class CrashReporter{static ['userConfig']={};static [a84_0xa6c687(0x1a5)];static [a84_0xa6c687(0x17f)]={};static['initialize'](_0xe045c0,_0x3f0089,_0x2e9d13=null){const _0x7c9490=a84_0xa6c687,_0x92ddd9={'oWkvZ':function(_0x300a50,_0x3f393a){return _0x300a50(_0x3f393a);},'OWiJw':function(_0xe4c460,_0x2c12f7){return _0xe4c460(_0x2c12f7);},'xNqPa':function(_0x1b0e95,_0x4968a4){return _0x1b0e95(_0x4968a4);}},_0x3a4d7c=_0xe045c0[_0x7c9490(0x165)],_0x79aae3=_0xe045c0[_0x7c9490(0x1a9)];!_0x2e9d13&&(_0x2e9d13=_0x92ddd9[_0x7c9490(0x196)](getBrowserStackConfig,_0x3a4d7c));!_0x79aae3&&_0x92ddd9[_0x7c9490(0x1c1)](getFrameworkVersion,_0x3a4d7c);const _0x21dfd3={};_0x21dfd3[_0x7c9490(0x165)]=_0x3a4d7c,_0x21dfd3['frameworkVersion']=_0x79aae3,this[_0x7c9490(0x17e)](_0x21dfd3,_0x3f0089,_0x92ddd9[_0x7c9490(0x197)](getUserCredentials,_0x2e9d13));}static[a84_0xa6c687(0x1ad)](_0x423868,_0x43a985){const _0x5ac105=a84_0xa6c687,_0x4ab0a3={};_0x4ab0a3['username']=_0x423868,_0x4ab0a3['accessKey']=_0x43a985,this[_0x5ac105(0x1a5)]=_0x4ab0a3,process[_0x5ac105(0x1b4)][_0x5ac105(0x17b)]=JSON[_0x5ac105(0x1b2)](this[_0x5ac105(0x1a5)]);}static['getCredentials'](){const _0x4c386c=a84_0xa6c687,_0x4b4cc0={'qJWsM':function(_0x2ef0a6,_0x590633){return _0x2ef0a6(_0x590633);}};if(!this[_0x4c386c(0x1a5)]&&process[_0x4c386c(0x1b4)][_0x4c386c(0x17b)])try{this['credentials']=JSON[_0x4c386c(0x1ae)](process[_0x4c386c(0x1b4)][_0x4c386c(0x17b)]);}catch(_0x500f22){_0x4b4cc0[_0x4c386c(0x17a)](debug,_0x4c386c(0x17c)+_0x500f22[_0x4c386c(0x1a1)]());}return this[_0x4c386c(0x1a5)];}static[a84_0xa6c687(0x1ba)](_0xcfc2e8){const _0x46583a=a84_0xa6c687;this[_0x46583a(0x1a8)]=this['filterPII'](_0xcfc2e8),process[_0x46583a(0x1b4)][_0x46583a(0x199)]=JSON[_0x46583a(0x1b2)](this[_0x46583a(0x1a8)]);}static[a84_0xa6c687(0x19f)](){const _0x33c5e7=a84_0xa6c687,_0x3b368a={'MHBSN':function(_0x1bb9ff,_0x23ccb6){return _0x1bb9ff===_0x23ccb6;},'Pyeaj':function(_0x8a6399,_0x15c6a5){return _0x8a6399(_0x15c6a5);}};if(_0x3b368a[_0x33c5e7(0x191)](Object['keys'](this[_0x33c5e7(0x1a8)])['length'],0x0)&&process['env'][_0x33c5e7(0x199)])try{this['userConfig']=JSON['parse'](process['env']['USER_CONFIG_FOR_REPORTING']);}catch(_0x31feea){_0x3b368a[_0x33c5e7(0x16d)](debug,_0x33c5e7(0x1b1)+_0x31feea[_0x33c5e7(0x1a1)]()),this[_0x33c5e7(0x1a8)]={};}return this[_0x33c5e7(0x1a8)];}static[a84_0xa6c687(0x176)](_0x165007){const _0x13723b=a84_0xa6c687;this[_0x13723b(0x17f)]=_0x165007,process['env'][_0x13723b(0x1ac)]=JSON[_0x13723b(0x1b2)](this[_0x13723b(0x17f)]);}static[a84_0xa6c687(0x18f)](){const _0x4b0c6c=a84_0xa6c687,_0x45bc5c={'cdguI':function(_0x47bfcd,_0x348869){return _0x47bfcd===_0x348869;},'xADDJ':function(_0x2b6b2e,_0x447102){return _0x2b6b2e(_0x447102);}};if(_0x45bc5c[_0x4b0c6c(0x190)](Object[_0x4b0c6c(0x1c4)](this['frameworkDetails'])[_0x4b0c6c(0x169)],0x0)&&process[_0x4b0c6c(0x1b4)][_0x4b0c6c(0x1ac)])try{this['frameworkDetails']=JSON[_0x4b0c6c(0x1ae)](process['env'][_0x4b0c6c(0x1ac)]);}catch(_0xe51c82){_0x45bc5c['xADDJ'](debug,'Error\x20in\x20parsing\x20credentials\x20from\x20env\x20'+_0xe51c82[_0x4b0c6c(0x1a1)]());}return this[_0x4b0c6c(0x17f)];}static['setAllDetails'](_0x48d0f9,_0x19cbdb,_0x176f64){const _0x42d7df=a84_0xa6c687;_0x48d0f9&&this[_0x42d7df(0x176)](_0x48d0f9),_0x19cbdb&&this[_0x42d7df(0x1ba)](_0x19cbdb),_0x176f64&&this[_0x42d7df(0x1ad)](_0x176f64[_0x42d7df(0x1b9)],_0x176f64[_0x42d7df(0x1b0)]);}static async['uploadCrashReport'](_0x5da9de,_0x479a63){const _0x2e360e=a84_0xa6c687,_0x146d18={'wsghy':function(_0x13b20e,_0x54b293){return _0x13b20e(_0x54b293);},'JwURu':function(_0x1a9e2a,_0x3b39e0){return _0x1a9e2a(_0x3b39e0);},'YDHzi':function(_0x582ddd,_0x1bbb8a){return _0x582ddd(_0x1bbb8a);},'itWzC':'[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','RZGdK':function(_0x1f74b3){return _0x1f74b3();},'aVjpn':_0x2e360e(0x1c3),'aTsKs':_0x2e360e(0x183),'Rfwfu':'true','jaxRG':function(_0x3d4b09,_0x171a94,_0x4d4d37,_0x341b64,_0x36109e,_0x4d6767){return _0x3d4b09(_0x171a94,_0x4d4d37,_0x341b64,_0x36109e,_0x4d6767);},'wziJN':'POST'};this['getCredentials']();if(!this[_0x2e360e(0x1a5)])return _0x146d18[_0x2e360e(0x167)](debug,_0x146d18[_0x2e360e(0x1c2)]);this[_0x2e360e(0x19f)](),this['getFramework']();const _0x7f6368={'hashed_id':process['env']['BS_TESTOPS_BUILD_HASHED_ID'],'observability_version':{'sdkVersion':_0x146d18['RZGdK'](getAgentVersion),'frameworkName':this[_0x2e360e(0x17f)][_0x2e360e(0x165)],'frameworkVersion':this[_0x2e360e(0x17f)]['frameworkVersion']},'exception':{'error':_0x5da9de['toString'](),'stackTrace':_0x479a63},'config':this[_0x2e360e(0x1a8)]},_0xddad06=_0x146d18[_0x2e360e(0x173)],_0x5a1fd6={};_0x5a1fd6[_0x2e360e(0x1b9)]=this[_0x2e360e(0x1a5)][_0x2e360e(0x1b9)],_0x5a1fd6[_0x2e360e(0x16b)]=this[_0x2e360e(0x1a5)][_0x2e360e(0x1b0)];const _0x4dd2bb={};_0x4dd2bb['Content-Type']=_0x146d18['aTsKs'],_0x4dd2bb[_0x2e360e(0x18a)]=_0x146d18['Rfwfu'];const _0xfb034={};_0xfb034[_0x2e360e(0x1b5)]=_0x5a1fd6,_0xfb034[_0x2e360e(0x1bd)]=_0x4dd2bb;const _0x45a830=_0xfb034;_0x146d18['jaxRG'](nodeRequest,_0x146d18[_0x2e360e(0x198)],_0xddad06,_0x7f6368,_0x45a830,![])['then'](_0x243d60=>{const _0x453054=_0x2e360e;_0x146d18[_0x453054(0x192)](debug,'[Crash_Report_Upload]\x20Success\x20response:\x20'+JSON[_0x453054(0x1b2)](_0x243d60));})['catch'](_0x503b3b=>{const _0x1ec518=_0x2e360e;_0x146d18[_0x1ec518(0x1b6)](debug,_0x1ec518(0x194)+util['format'](_0x503b3b));});}static[a84_0xa6c687(0x1bc)](_0x530e8b){const _0x2a67bf=a84_0xa6c687,_0x28188e={};_0x28188e['AgBlY']=_0x2a67bf(0x1aa),_0x28188e[_0x2a67bf(0x174)]=_0x2a67bf(0x1b9),_0x28188e[_0x2a67bf(0x1c5)]=_0x2a67bf(0x16f),_0x28188e[_0x2a67bf(0x171)]=_0x2a67bf(0x1b0),_0x28188e[_0x2a67bf(0x181)]=_0x2a67bf(0x16b),_0x28188e[_0x2a67bf(0x1af)]=function(_0x138077,_0x4ff983){return _0x138077===_0x4ff983;},_0x28188e['xVSVd']=_0x2a67bf(0x1bb);const _0x140377=_0x28188e;if(!_0x530e8b)return;const _0x2697ba=[_0x140377[_0x2a67bf(0x19a)],_0x140377[_0x2a67bf(0x174)],_0x140377[_0x2a67bf(0x1c5)],_0x140377['GGebt'],_0x140377[_0x2a67bf(0x181)]];for(const _0x49947c in _0x530e8b){if(_0x2697ba['includes'](_0x49947c[_0x2a67bf(0x19c)]()))delete _0x530e8b[_0x49947c];else _0x140377[_0x2a67bf(0x1af)](typeof _0x530e8b[_0x49947c],_0x140377['xVSVd'])&&this[_0x2a67bf(0x1bc)](_0x530e8b[_0x49947c]);}}static[a84_0xa6c687(0x185)](_0x3a5629){const _0x989093=a84_0xa6c687,_0xb889aa=JSON[_0x989093(0x1ae)](JSON['stringify'](_0x3a5629));return this[_0x989093(0x1bc)](_0xb889aa),_0xb889aa;}}const a84_0x551db2={};function a84_0x192d(_0x571a74,_0x5d6531){const _0x59e832=a84_0x59e8();return a84_0x192d=function(_0x192d4c,_0x52feea){_0x192d4c=_0x192d4c-0x165;let _0x332ad2=_0x59e832[_0x192d4c];return _0x332ad2;},a84_0x192d(_0x571a74,_0x5d6531);}a84_0x551db2[a84_0xa6c687(0x16e)]=o11yErrorHandler,a84_0x551db2[a84_0xa6c687(0x1a6)]=o11yClassErrorHandler,a84_0x551db2[a84_0xa6c687(0x180)]=CrashReporter,module['exports']=a84_0x551db2;function a84_0x59e8(){const _0x58b808=['xNqPa','wziJN','USER_CONFIG_FOR_REPORTING','AgBlY','name','toLowerCase',',\x20Argument\x20-\x20','4080jfjHki','getConfig','.\x20Args\x20-\x20','toString','uploadCrashReport','apply','1219400ingfKu','credentials','o11yClassErrorHandler','catch','userConfig','frameworkVersion','user','\x20--\x20','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','setCredentials','parse','oMrMZ','accessKey','Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20','stringify','Error\x20in\x20executing\x20','env','auth','JwURu','9209kNIrPc','905woMFto','username','setConfigDetails','object','recursivelyDeletePIIKeysFromObject','headers','dyngc','RwOTW','2bkkjyR','OWiJw','itWzC','/api/v1/analytics','keys','mTcTF','QcQMi','depth','1884BVqWLD','.\x20Error\x20-\x20','inspect','1998648oAYNqY','7066390fJejVj','frameworkName','1168616JbNYdy','YDHzi','../helper','length','Afiwp','password','captureError','Pyeaj','o11yErrorHandler','key','Ikxmm','GGebt','UQzeY','aVjpn','CsQKw','call','setFrameworkDetails','constructor','defineProperty','tMgKL','qJWsM','CREDENTIALS_FOR_CRASH_REPORTING','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','1076hdBaDj','setAllDetails','frameworkDetails','CrashReporter','QOvBb','./utils','application/json','BROWSERSTACK_O11Y_PERF_MEASUREMENT','filterPII','util',',\x20PID\x20-\x20','DNwLb','includes','X-BSTACK-TESTOPS','getPerformance','getOwnPropertyNames','stack','pid','getFramework','cdguI','MHBSN','wsghy','Started\x20::\x20','[Crash_Report_Upload]\x20Failed\x20due\x20to\x20','timerify','oWkvZ'];a84_0x59e8=function(){return _0x58b808;};return a84_0x59e8();}
|
|
1
|
+
const a84_0xc4892f=a84_0x13b6;function a84_0x1f43(){const _0x73dd1d=['yLUDB','\x20--\x20','KnPDv','object','toString','name','then','env','UYAho','captureError','GmFUQ','MLqpF','.\x20Args\x20-\x20','CREDENTIALS_FOR_CRASH_REPORTING','getFramework','TkpDN','JrnQr','.\x20Error\x20-\x20','format','filterPII','auth','PKJFg','6403485GOCrHF','forEach','mvqAJ','4070ILmHru','setConfigDetails','o11yErrorHandler','stringify','constructor','apply','./utils','parse','RTypf','true','mIhGG','length','25143ySzIuA','../helper','22KhjbWc','VeqSW','15264eNcCrh','840310ehWRXU','userConfig','includes','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','XLpZZ','application/json','../performance/performance-tester','rBwzr','headers','Finished\x20::\x20','o11yClassErrorHandler','frameworkVersion','8kryyBh','credentials','username','TnJRA','getPerformance','GZJoX','[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','setAllDetails','cUDgF','initialize','password','inspect','toLowerCase','depth','prototype','QNHMT','RJLqq','199293GwhGPi','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','function','pid','user','POST','accessKey','setCredentials','NpeqA','Error\x20in\x20executing\x20','uploadCrashReport','12NmZBQt','Started\x20::\x20','ITGiZ','77833HTYMXX',',\x20Argument\x20-\x20','frameworkDetails','getOwnPropertyNames','getCredentials','frameworkName','keys',',\x20PID\x20-\x20','QzmQW','catch','stack','setFrameworkDetails','[Crash_Report_Upload]\x20Success\x20response:\x20','call','9FlDJSZ','78iRlgzW','recursivelyDeletePIIKeysFromObject','UBErg','USER_CONFIG_FOR_REPORTING','Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20','yybTA'];a84_0x1f43=function(){return _0x73dd1d;};return a84_0x1f43();}(function(_0x468f7a,_0x33fec0){const _0x250d0f=a84_0x13b6,_0x5da327=_0x468f7a();while(!![]){try{const _0x5de236=-parseInt(_0x250d0f(0x1e4))/0x1+-parseInt(_0x250d0f(0x1c4))/0x2*(parseInt(_0x250d0f(0x1c2))/0x3)+-parseInt(_0x250d0f(0x1c6))/0x4+-parseInt(_0x250d0f(0x1b6))/0x5*(parseInt(_0x250d0f(0x201))/0x6)+parseInt(_0x250d0f(0x1f2))/0x7*(-parseInt(_0x250d0f(0x1d3))/0x8)+parseInt(_0x250d0f(0x200))/0x9*(-parseInt(_0x250d0f(0x1c7))/0xa)+-parseInt(_0x250d0f(0x1b3))/0xb*(-parseInt(_0x250d0f(0x1ef))/0xc);if(_0x5de236===_0x33fec0)break;else _0x5da327['push'](_0x5da327['shift']());}catch(_0x27781d){_0x5da327['push'](_0x5da327['shift']());}}}(a84_0x1f43,0x2c36f));const util=require('util'),PerformanceTester=require(a84_0xc4892f(0x1cd)),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require(a84_0xc4892f(0x1bc)),{getAgentVersion,nestedKeyValue}=require(a84_0xc4892f(0x1c3)),o11yErrorHandler=(_0x4adb44,_0x33b7ad='',_0x181803=[''],_0x3b44c1=![])=>{const _0x368fa5={'rBwzr':function(_0x1bd3fe,_0x3cef3e){return _0x1bd3fe(_0x3cef3e);},'UBErg':function(_0x23eb5d,_0x392f5d,_0xf9e5a8){return _0x23eb5d(_0x392f5d,_0xf9e5a8);},'JrnQr':function(_0x27aa59,_0x192cb3,_0x39b473){return _0x27aa59(_0x192cb3,_0x39b473);},'MLqpF':function(_0x11895d,_0x5a7767){return _0x11895d instanceof _0x5a7767;},'ITGiZ':function(_0x41e650,_0x326b2c,_0x228729,_0x407d87,_0x3aa25c){return _0x41e650(_0x326b2c,_0x228729,_0x407d87,_0x3aa25c);}};return function(..._0x1d5db4){const _0x5e29f4=a84_0x13b6;try{let _0x6bf7a6=_0x4adb44;process['env']['BROWSERSTACK_O11Y_PERF_MEASUREMENT']&&(_0x6bf7a6=PerformanceTester[_0x5e29f4(0x1d7)]()['timerify'](_0x6bf7a6));_0x3b44c1&&_0x368fa5[_0x5e29f4(0x1ce)](trace,_0x5e29f4(0x1f0)+_0x33b7ad+_0x5e29f4(0x1f9)+process[_0x5e29f4(0x1e7)]+',\x20Argument\x20-\x20'+_0x368fa5[_0x5e29f4(0x203)](nestedKeyValue,arguments[0x0],_0x181803));const _0x4c5485=_0x6bf7a6[_0x5e29f4(0x1bb)](null,arguments);_0x3b44c1&&_0x368fa5[_0x5e29f4(0x1ce)](trace,_0x5e29f4(0x1d0)+_0x33b7ad+_0x5e29f4(0x1f9)+process[_0x5e29f4(0x1e7)]+_0x5e29f4(0x1f3)+_0x368fa5[_0x5e29f4(0x1ad)](nestedKeyValue,arguments[0x0],_0x181803));if(_0x368fa5[_0x5e29f4(0x1a8)](_0x4c5485,Promise))return _0x4c5485[_0x5e29f4(0x1fb)](_0x1ebd2d=>processError(_0x1ebd2d,_0x4adb44,_0x1d5db4,_0x33b7ad));return _0x4c5485;}catch(_0x52ed26){_0x368fa5[_0x5e29f4(0x1f1)](processError,_0x52ed26,_0x4adb44,_0x1d5db4,_0x33b7ad);}};},o11yClassErrorHandler=(_0x2901bc,_0x285d5b,_0x5048c3='')=>{const _0x2293d7=a84_0xc4892f,_0x27a4c0={'QmktY':function(_0x5e90e1,_0x5aff1f){return _0x5e90e1 instanceof _0x5aff1f;},'RUukS':function(_0x51dc54,_0x18dd88,_0x3c1ad8,_0xa810a7,_0x3ef105){return _0x51dc54(_0x18dd88,_0x3c1ad8,_0xa810a7,_0x3ef105);},'XLpZZ':function(_0x4050ec,_0x3070cf){return _0x4050ec===_0x3070cf;},'DCAkr':_0x2293d7(0x1e6),'CvBpw':function(_0xa42d6f,_0x251965){return _0xa42d6f!==_0x251965;},'yLUDB':_0x2293d7(0x1ba),'cMPgi':function(_0x290c93,_0x4a5df6){return _0x290c93<_0x4a5df6;}},_0x2c7b2b=_0x2901bc[_0x2293d7(0x1e1)];if(_0x27a4c0['cMPgi'](Object[_0x2293d7(0x1f5)](_0x2c7b2b)['length'],0x2))return _0x2901bc;return Object[_0x2293d7(0x1f5)](_0x2c7b2b)[_0x2293d7(0x1b4)](_0x556870=>{const _0x43952e=_0x2293d7;if(!(_0x285d5b&&_0x285d5b[_0x43952e(0x1c9)](_0x556870)))return;const _0x40d2e1=_0x2c7b2b[_0x556870];_0x27a4c0[_0x43952e(0x1cb)](typeof _0x40d2e1,_0x27a4c0['DCAkr'])&&_0x27a4c0['CvBpw'](_0x556870,_0x27a4c0[_0x43952e(0x207)])&&Object['defineProperty'](_0x2c7b2b,_0x556870,{'writable':!![],'value':function(..._0x5e2fcd){const _0xd132e4=_0x43952e;try{const _0x45335c=(process[_0xd132e4(0x1a4)]['BROWSERSTACK_O11Y_PERF_MEASUREMENT']?PerformanceTester[_0xd132e4(0x1d7)]()['timerify'](_0x40d2e1):_0x40d2e1)[_0xd132e4(0x1ff)](this,..._0x5e2fcd);if(_0x27a4c0['QmktY'](_0x45335c,Promise))return _0x45335c[_0xd132e4(0x1fb)](_0x1a7ccd=>processError(_0x1a7ccd,_0x40d2e1,_0x5e2fcd,_0x5048c3));return _0x45335c;}catch(_0x52c0d2){_0x27a4c0['RUukS'](processError,_0x52c0d2,_0x40d2e1,_0x5e2fcd,_0x5048c3);}}});}),_0x2901bc;};function processError(_0x18ee40,_0x1d6a9e,_0x3cfee8,_0x17a368){const _0x4ecb3b=a84_0xc4892f,_0x4538e={'RJLqq':function(_0x5c3856,_0x457db6){return _0x5c3856(_0x457db6);}};_0x4538e[_0x4ecb3b(0x1e3)](debug,_0x4ecb3b(0x1ed)+_0x1d6a9e[_0x4ecb3b(0x20c)]+'\x20--\x20'+_0x17a368+'.\x20Error\x20-\x20'+_0x18ee40+_0x4ecb3b(0x1a9)+_0x3cfee8+'.'),PerformanceTester[_0x4ecb3b(0x1a6)](_0x18ee40);let _0x3188c2;try{_0x3188c2=JSON['stringify'](_0x3cfee8);}catch(_0x1d3513){const _0x394b0a={};_0x394b0a[_0x4ecb3b(0x1e0)]=0x2,_0x3188c2=util[_0x4ecb3b(0x1de)](_0x3cfee8,_0x394b0a);}CrashReporter['uploadCrashReport'](_0x4ecb3b(0x1ed)+_0x1d6a9e[_0x4ecb3b(0x20c)]+_0x4ecb3b(0x208)+_0x17a368+_0x4ecb3b(0x1ae)+_0x18ee40+_0x4ecb3b(0x1a9)+_0x3188c2+'.',_0x18ee40&&_0x18ee40[_0x4ecb3b(0x1fc)]);}class CrashReporter{static [a84_0xc4892f(0x1c8)]={};static ['credentials'];static [a84_0xc4892f(0x1f4)]={};static[a84_0xc4892f(0x1dc)](_0x24f642,_0x57bf2c,_0x187d22=null){const _0x1c465e=a84_0xc4892f,_0x671764={'UYAho':function(_0xb57682,_0x1c9dab){return _0xb57682(_0x1c9dab);},'Aoeau':function(_0x4e40a1,_0x57a80d){return _0x4e40a1(_0x57a80d);}},_0xfc4a38=_0x24f642['frameworkName'],_0x3eb53a=_0x24f642[_0x1c465e(0x1d2)];!_0x187d22&&(_0x187d22=_0x671764[_0x1c465e(0x1a5)](getBrowserStackConfig,_0xfc4a38));!_0x3eb53a&&_0x671764['UYAho'](getFrameworkVersion,_0xfc4a38);const _0x29ff38={};_0x29ff38[_0x1c465e(0x1f7)]=_0xfc4a38,_0x29ff38[_0x1c465e(0x1d2)]=_0x3eb53a,this['setAllDetails'](_0x29ff38,_0x57bf2c,_0x671764['Aoeau'](getUserCredentials,_0x187d22));}static[a84_0xc4892f(0x1eb)](_0x37ac39,_0x10d661){const _0x33d40d=a84_0xc4892f,_0x18e0c9={};_0x18e0c9['username']=_0x37ac39,_0x18e0c9[_0x33d40d(0x1ea)]=_0x10d661,this[_0x33d40d(0x1d4)]=_0x18e0c9,process['env'][_0x33d40d(0x1aa)]=JSON[_0x33d40d(0x1b9)](this[_0x33d40d(0x1d4)]);}static[a84_0xc4892f(0x1f6)](){const _0x3f02c1=a84_0xc4892f,_0x198b5a={'mIhGG':function(_0x4a6a6e,_0x234ec0){return _0x4a6a6e(_0x234ec0);}};if(!this['credentials']&&process[_0x3f02c1(0x1a4)]['CREDENTIALS_FOR_CRASH_REPORTING'])try{this[_0x3f02c1(0x1d4)]=JSON[_0x3f02c1(0x1bd)](process[_0x3f02c1(0x1a4)][_0x3f02c1(0x1aa)]);}catch(_0x5d10f5){_0x198b5a[_0x3f02c1(0x1c0)](debug,_0x3f02c1(0x1e5)+_0x5d10f5[_0x3f02c1(0x20b)]());}return this[_0x3f02c1(0x1d4)];}static[a84_0xc4892f(0x1b7)](_0x10dc4a){const _0xd3a2b1=a84_0xc4892f;this[_0xd3a2b1(0x1c8)]=this['filterPII'](_0x10dc4a),process[_0xd3a2b1(0x1a4)][_0xd3a2b1(0x204)]=JSON[_0xd3a2b1(0x1b9)](this[_0xd3a2b1(0x1c8)]);}static['getConfig'](){const _0x109197=a84_0xc4892f,_0x2d703b={'PKJFg':function(_0x30c5ec,_0x3ef912){return _0x30c5ec===_0x3ef912;},'Gnkfw':function(_0x24a91c,_0x1ba403){return _0x24a91c(_0x1ba403);}};if(_0x2d703b[_0x109197(0x1b2)](Object[_0x109197(0x1f8)](this[_0x109197(0x1c8)])[_0x109197(0x1c1)],0x0)&&process['env'][_0x109197(0x204)])try{this[_0x109197(0x1c8)]=JSON['parse'](process['env'][_0x109197(0x204)]);}catch(_0x24a869){_0x2d703b['Gnkfw'](debug,_0x109197(0x205)+_0x24a869[_0x109197(0x20b)]()),this[_0x109197(0x1c8)]={};}return this[_0x109197(0x1c8)];}static[a84_0xc4892f(0x1fd)](_0x543b7e){const _0x3273eb=a84_0xc4892f;this[_0x3273eb(0x1f4)]=_0x543b7e,process[_0x3273eb(0x1a4)][_0x3273eb(0x1ca)]=JSON['stringify'](this[_0x3273eb(0x1f4)]);}static[a84_0xc4892f(0x1ab)](){const _0x26d613=a84_0xc4892f,_0x1ecdd0={'VeqSW':function(_0x4405e9,_0x1f1170){return _0x4405e9===_0x1f1170;},'JntrF':function(_0x3bc1e1,_0x44255a){return _0x3bc1e1(_0x44255a);}};if(_0x1ecdd0[_0x26d613(0x1c5)](Object['keys'](this[_0x26d613(0x1f4)])[_0x26d613(0x1c1)],0x0)&&process[_0x26d613(0x1a4)]['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS'])try{this[_0x26d613(0x1f4)]=JSON['parse'](process[_0x26d613(0x1a4)][_0x26d613(0x1ca)]);}catch(_0x90522d){_0x1ecdd0['JntrF'](debug,_0x26d613(0x1e5)+_0x90522d[_0x26d613(0x20b)]());}return this[_0x26d613(0x1f4)];}static[a84_0xc4892f(0x1da)](_0x5ed613,_0x5c59b3,_0x725d3b){const _0x3fdd1f=a84_0xc4892f;_0x5ed613&&this['setFrameworkDetails'](_0x5ed613),_0x5c59b3&&this[_0x3fdd1f(0x1b7)](_0x5c59b3),_0x725d3b&&this[_0x3fdd1f(0x1eb)](_0x725d3b['username'],_0x725d3b[_0x3fdd1f(0x1ea)]);}static async[a84_0xc4892f(0x1ee)](_0x10a3ba,_0x301307){const _0x2612e4=a84_0xc4892f,_0x79cc4a={'cmzTk':function(_0x5aaf9a,_0x43d4ff){return _0x5aaf9a(_0x43d4ff);},'KnPDv':function(_0x48144c,_0x3232ed){return _0x48144c(_0x3232ed);},'TkpDN':_0x2612e4(0x1d9),'YtoaQ':function(_0x442c84){return _0x442c84();},'BaIwW':'/api/v1/analytics','QzmQW':_0x2612e4(0x1cc),'QNHMT':_0x2612e4(0x1bf),'GmFUQ':function(_0x19c4de,_0x5621c2,_0x5740fc,_0x45002f,_0x5a5d37,_0x287bc0){return _0x19c4de(_0x5621c2,_0x5740fc,_0x45002f,_0x5a5d37,_0x287bc0);},'yybTA':_0x2612e4(0x1e9)};this[_0x2612e4(0x1f6)]();if(!this[_0x2612e4(0x1d4)])return _0x79cc4a[_0x2612e4(0x209)](debug,_0x79cc4a[_0x2612e4(0x1ac)]);this['getConfig'](),this[_0x2612e4(0x1ab)]();const _0x24b077={'hashed_id':process[_0x2612e4(0x1a4)]['BS_TESTOPS_BUILD_HASHED_ID'],'observability_version':{'sdkVersion':_0x79cc4a['YtoaQ'](getAgentVersion),'frameworkName':this['frameworkDetails'][_0x2612e4(0x1f7)],'frameworkVersion':this[_0x2612e4(0x1f4)][_0x2612e4(0x1d2)]},'exception':{'error':_0x10a3ba[_0x2612e4(0x20b)](),'stackTrace':_0x301307},'config':this[_0x2612e4(0x1c8)]},_0x5562cb=_0x79cc4a['BaIwW'],_0x3a6efa={};_0x3a6efa[_0x2612e4(0x1d5)]=this[_0x2612e4(0x1d4)]['username'],_0x3a6efa[_0x2612e4(0x1dd)]=this[_0x2612e4(0x1d4)][_0x2612e4(0x1ea)];const _0x57b36a={};_0x57b36a['Content-Type']=_0x79cc4a[_0x2612e4(0x1fa)],_0x57b36a['X-BSTACK-TESTOPS']=_0x79cc4a[_0x2612e4(0x1e2)];const _0x3f2b01={};_0x3f2b01[_0x2612e4(0x1b1)]=_0x3a6efa,_0x3f2b01[_0x2612e4(0x1cf)]=_0x57b36a;const _0x21f76c=_0x3f2b01;_0x79cc4a[_0x2612e4(0x1a7)](nodeRequest,_0x79cc4a[_0x2612e4(0x206)],_0x5562cb,_0x24b077,_0x21f76c,![])[_0x2612e4(0x20d)](_0x37a50a=>{const _0x85946e=_0x2612e4;_0x79cc4a['cmzTk'](debug,_0x85946e(0x1fe)+JSON['stringify'](_0x37a50a));})[_0x2612e4(0x1fb)](_0x262d03=>{const _0x3d93cd=_0x2612e4;_0x79cc4a[_0x3d93cd(0x209)](debug,'[Crash_Report_Upload]\x20Failed\x20due\x20to\x20'+util[_0x3d93cd(0x1af)](_0x262d03));});}static['recursivelyDeletePIIKeysFromObject'](_0x148eaa){const _0x5d764b=a84_0xc4892f,_0x53f8eb={};_0x53f8eb[_0x5d764b(0x1d6)]=_0x5d764b(0x1e8),_0x53f8eb[_0x5d764b(0x1db)]=_0x5d764b(0x1d5),_0x53f8eb[_0x5d764b(0x1ec)]='key',_0x53f8eb[_0x5d764b(0x1be)]=_0x5d764b(0x1ea),_0x53f8eb[_0x5d764b(0x1d8)]=_0x5d764b(0x1dd),_0x53f8eb['udEJw']=function(_0x54fe15,_0x5bb232){return _0x54fe15===_0x5bb232;},_0x53f8eb[_0x5d764b(0x1b5)]=_0x5d764b(0x20a);const _0xd7959d=_0x53f8eb;if(!_0x148eaa)return;const _0xb63e30=[_0xd7959d['TnJRA'],_0xd7959d[_0x5d764b(0x1db)],_0xd7959d[_0x5d764b(0x1ec)],_0xd7959d[_0x5d764b(0x1be)],_0xd7959d[_0x5d764b(0x1d8)]];for(const _0xfd9d26 in _0x148eaa){if(_0xb63e30[_0x5d764b(0x1c9)](_0xfd9d26[_0x5d764b(0x1df)]()))delete _0x148eaa[_0xfd9d26];else _0xd7959d['udEJw'](typeof _0x148eaa[_0xfd9d26],_0xd7959d[_0x5d764b(0x1b5)])&&this[_0x5d764b(0x202)](_0x148eaa[_0xfd9d26]);}}static[a84_0xc4892f(0x1b0)](_0x36da68){const _0x5f87af=a84_0xc4892f,_0x18a787=JSON[_0x5f87af(0x1bd)](JSON[_0x5f87af(0x1b9)](_0x36da68));return this['recursivelyDeletePIIKeysFromObject'](_0x18a787),_0x18a787;}}const a84_0x2eb5d0={};function a84_0x13b6(_0x1397ca,_0x2988be){const _0x1f4372=a84_0x1f43();return a84_0x13b6=function(_0x13b658,_0x119470){_0x13b658=_0x13b658-0x1a4;let _0x533cd8=_0x1f4372[_0x13b658];return _0x533cd8;},a84_0x13b6(_0x1397ca,_0x2988be);}a84_0x2eb5d0[a84_0xc4892f(0x1b8)]=o11yErrorHandler,a84_0x2eb5d0[a84_0xc4892f(0x1d1)]=o11yClassErrorHandler,a84_0x2eb5d0['CrashReporter']=CrashReporter,module['exports']=a84_0x2eb5d0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a85_0x269334=a85_0x158e;(function(_0x196d5f,_0x452376){const _0x497662=a85_0x158e,_0x18034d=_0x196d5f();while(!![]){try{const _0x2daf9e=parseInt(_0x497662(0x94))/0x1+-parseInt(_0x497662(0x8d))/0x2+parseInt(_0x497662(0x87))/0x3+-parseInt(_0x497662(0xbc))/0x4*(parseInt(_0x497662(0x80))/0x5)+parseInt(_0x497662(0xc2))/0x6*(parseInt(_0x497662(0xd6))/0x7)+-parseInt(_0x497662(0xb1))/0x8*(-parseInt(_0x497662(0x78))/0x9)+-parseInt(_0x497662(0xb7))/0xa*(parseInt(_0x497662(0xb3))/0xb);if(_0x2daf9e===_0x452376)break;else _0x18034d['push'](_0x18034d['shift']());}catch(_0x3e7954){_0x18034d['push'](_0x18034d['shift']());}}}(a85_0x2eef,0xa1636));const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require(a85_0x269334(0xc9)),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require('./utils'),{nestedKeyValue}=require(a85_0x269334(0xbd)),util=require('util');class RequestQueueHandler{static ['instance'];[a85_0x269334(0x6e)]=0x0;constructor(){const _0x53088e=a85_0x269334,_0x55bf04={};_0x55bf04[_0x53088e(0xc0)]='2|0|3|1|4|5',_0x55bf04[_0x53088e(0x73)]=_0x53088e(0x8b),_0x55bf04[_0x53088e(0xa6)]='api/v1/batch',_0x55bf04[_0x53088e(0xb2)]=_0x53088e(0xac),_0x55bf04[_0x53088e(0x9d)]=_0x53088e(0xcf),_0x55bf04[_0x53088e(0x6f)]=_0x53088e(0xa7),_0x55bf04['OiWuc']=_0x53088e(0x8c),_0x55bf04['nJvdq']=_0x53088e(0xd9),_0x55bf04[_0x53088e(0x82)]=_0x53088e(0x95),_0x55bf04[_0x53088e(0xd5)]=_0x53088e(0x81);const _0x354e92=_0x55bf04,_0x32cb08=_0x354e92[_0x53088e(0xc0)][_0x53088e(0x93)]('|');let _0x407e32=0x0;while(!![]){switch(_0x32cb08[_0x407e32++]){case'0':this['started']=![];continue;case'1':this[_0x53088e(0x70)]=_0x354e92[_0x53088e(0x73)];continue;case'2':this[_0x53088e(0x76)]=[];continue;case'3':this[_0x53088e(0xc1)]=_0x354e92['MkxNp'];continue;case'4':this[_0x53088e(0xab)]=[_0x354e92[_0x53088e(0xb2)],_0x354e92[_0x53088e(0x9d)],_0x354e92[_0x53088e(0x6f)],_0x354e92[_0x53088e(0x96)],_0x354e92[_0x53088e(0x69)],_0x354e92[_0x53088e(0x82)],_0x354e92[_0x53088e(0xd5)]];continue;case'5':this[_0x53088e(0xaa)]=null;continue;}break;}}static[a85_0x269334(0x88)](){const _0x19abf7=a85_0x269334;return!RequestQueueHandler[_0x19abf7(0x9f)]&&(RequestQueueHandler['instance']=new RequestQueueHandler()),RequestQueueHandler[_0x19abf7(0x9f)];}[a85_0x269334(0xa5)]=()=>{const _0x46e1a0=a85_0x269334;!this[_0x46e1a0(0xd3)]&&(this[_0x46e1a0(0xd3)]=!![],this[_0x46e1a0(0xb0)]());};['add']=_0x454523=>{const _0x4d7fd5=a85_0x269334,_0x43c0f0={'wdpBG':function(_0x5a0580,_0x15508f){return _0x5a0580===_0x15508f;},'tPXvU':_0x4d7fd5(0xc5),'oWFFU':function(_0x534bca,_0x15a3e2){return _0x534bca(_0x15a3e2);},'EkYoO':_0x4d7fd5(0xca)};if(this[_0x4d7fd5(0xab)][_0x4d7fd5(0xb6)](_0x454523[_0x4d7fd5(0x90)])){if(_0x454523['logs']&&_0x454523[_0x4d7fd5(0x6b)][0x0]&&_0x43c0f0[_0x4d7fd5(0x7d)](_0x454523[_0x4d7fd5(0x6b)][0x0]['kind'],_0x43c0f0[_0x4d7fd5(0x79)])){const _0x3f1ccc={};return _0x3f1ccc['shouldProceed']=!![],_0x3f1ccc[_0x4d7fd5(0xd8)]=[_0x454523],_0x3f1ccc[_0x4d7fd5(0xba)]=this[_0x4d7fd5(0x70)],_0x3f1ccc;}this[_0x4d7fd5(0x76)][_0x4d7fd5(0xc6)](_0x454523);let _0x3a93a6=null;const _0xd08447=this[_0x4d7fd5(0x7e)]();_0xd08447&&(_0x43c0f0[_0x4d7fd5(0xa4)](trace,_0x43c0f0[_0x4d7fd5(0x8a)]),_0x3a93a6=this['queue']['slice'](0x0,BATCH_SIZE),this['queue'][_0x4d7fd5(0x85)](0x0,BATCH_SIZE),this[_0x4d7fd5(0x89)]());const _0xcd1228={};return _0xcd1228[_0x4d7fd5(0x7e)]=_0xd08447,_0xcd1228[_0x4d7fd5(0xd8)]=_0x3a93a6,_0xcd1228[_0x4d7fd5(0xba)]=this[_0x4d7fd5(0xc1)],_0xcd1228;}const _0x529f36={};return _0x529f36[_0x4d7fd5(0x7e)]=!![],_0x529f36;};[a85_0x269334(0xa8)]=async()=>{const _0x53d61f=a85_0x269334,_0x1a0d93={'STPBn':_0x53d61f(0x7f),'PjRRB':function(_0x2f3da7,_0x26b7ff){return _0x2f3da7>_0x26b7ff;},'QIOOe':'Shutdown-Queue','ZwKFS':function(_0x5cdec0,_0x1f6b03){return _0x5cdec0>_0x1f6b03;},'nujXl':function(_0x26daba,_0x275ee1){return _0x26daba(_0x275ee1);}};await this[_0x53d61f(0x97)](),this[_0x53d61f(0x6c)](_0x1a0d93['STPBn']);while(_0x1a0d93[_0x53d61f(0x6a)](this[_0x53d61f(0x76)][_0x53d61f(0xc8)],0x0)){const _0x386d70=this[_0x53d61f(0x76)][_0x53d61f(0xa1)](0x0,BATCH_SIZE);this['queue']['splice'](0x0,BATCH_SIZE),await this['batchAndPostEvents'](this[_0x53d61f(0xc1)],_0x1a0d93[_0x53d61f(0x98)],_0x386d70);}_0x1a0d93[_0x53d61f(0xce)](this['pendingUploads'],0x0)&&_0x1a0d93[_0x53d61f(0xd0)](debug,_0x53d61f(0xbe)+this['pendingUploads']);};[a85_0x269334(0x9c)]=async(_0xdef4,_0x33da74,_0xc50acf)=>{const _0x30215d=a85_0x269334,_0x3d8bd7={'NvlDJ':function(_0x37f3ae,_0x3b3034){return _0x37f3ae(_0x3b3034);},'qpTaJ':'utf8','PMrLb':function(_0x1e29c2){return _0x1e29c2();},'vlJLT':function(_0x5c3b2b,_0x1798be,_0x525566,_0x33b7b0,_0xd4ce73){return _0x5c3b2b(_0x1798be,_0x525566,_0x33b7b0,_0xd4ce73);},'zapzb':_0x30215d(0x71),'FbZAP':function(_0x54217b,_0x16e598){return _0x54217b(_0x16e598);},'SOCFR':function(_0x388dbe,_0x45d6ba){return _0x388dbe-_0x45d6ba;},'fVwcc':function(_0x283a73,_0x46bc8c){return _0x283a73(_0x46bc8c);}};let _0x4f2efc='';try{_0x4f2efc=_0xc50acf['map'](_0x1ea61b=>'\x27'+_0x1ea61b[_0x30215d(0x90)]+'\x27:'+(nestedKeyValue(_0x1ea61b,['test_run',_0x30215d(0x99)])||nestedKeyValue(_0x1ea61b,[_0x30215d(0x77),_0x30215d(0x99)])))[_0x30215d(0x7b)](','),_0x3d8bd7[_0x30215d(0xc4)](debug,_0x30215d(0xa0)+_0x33da74+_0x30215d(0xc3)+Buffer['byteLength'](util[_0x30215d(0x84)]('%j',_0xc50acf),_0x3d8bd7[_0x30215d(0xb8)])+_0x30215d(0x91)+_0x4f2efc);}catch(_0x4e83d8){_0x3d8bd7[_0x30215d(0xc4)](debug,_0x30215d(0x83)+util[_0x30215d(0x84)](_0x4e83d8)+'}');}const _0x253805={'headers':_0x3d8bd7[_0x30215d(0xd7)](getDefaultHeaders)};try{const _0x2dc0d2=await _0x3d8bd7[_0x30215d(0xd4)](nodeRequest,_0x3d8bd7[_0x30215d(0xcb)],_0xdef4,_0xc50acf,_0x253805);if(_0x2dc0d2[_0x30215d(0xb9)][_0x30215d(0x74)]){const _0x522ce9={};_0x522ce9[_0x30215d(0xd1)]=_0x2dc0d2[_0x30215d(0xb9)][_0x30215d(0x74)];throw _0x522ce9;}else _0x3d8bd7[_0x30215d(0xb4)](debug,_0x33da74+'\x20event\x20successful\x20for\x20events\x20'+_0x4f2efc+_0x30215d(0x8f)+util[_0x30215d(0x84)]('%j',_0x2dc0d2[_0x30215d(0xb9)])),this[_0x30215d(0x6e)]=Math['max'](0x0,_0x3d8bd7[_0x30215d(0x7c)](this[_0x30215d(0x6e)],_0xc50acf[_0x30215d(0xc8)]));}catch(_0x3c379b){_0x3c379b[_0x30215d(0xad)]?_0x3d8bd7[_0x30215d(0xa9)](debug,_0x30215d(0x9b)+_0x33da74+_0x30215d(0x72)+_0x3c379b[_0x30215d(0xad)][_0x30215d(0x75)]+'\x20'+_0x3c379b[_0x30215d(0xad)][_0x30215d(0xa3)]+'\x20'+JSON[_0x30215d(0xbf)](_0x3c379b[_0x30215d(0xad)])):_0x3d8bd7[_0x30215d(0xc4)](debug,_0x30215d(0x9b)+_0x33da74+_0x30215d(0x72)+(_0x3c379b[_0x30215d(0xd1)]||_0x3c379b)),this[_0x30215d(0x6e)]=Math[_0x30215d(0xbb)](0x0,_0x3d8bd7['SOCFR'](this['pendingUploads'],_0xc50acf[_0x30215d(0xc8)]));}};['startEventBatchPolling']=()=>{const _0x36fef2=a85_0x269334,_0x50edc2={'zfphb':function(_0x1aabf2,_0x4fc80f){return _0x1aabf2>_0x4fc80f;},'EREeO':function(_0x17dac0,_0xfcc631){return _0x17dac0(_0xfcc631);},'Odvsv':_0x36fef2(0xd2),'kGRgC':function(_0x53c071,_0x283076,_0x2382a8){return _0x53c071(_0x283076,_0x2382a8);}};this[_0x36fef2(0xaa)]=_0x50edc2[_0x36fef2(0xcc)](setInterval,async()=>{const _0x19d800=_0x36fef2;if(_0x50edc2['zfphb'](this[_0x19d800(0x76)][_0x19d800(0xc8)],0x0)){_0x50edc2[_0x19d800(0xaf)](trace,_0x19d800(0x8e)+this[_0x19d800(0x76)][_0x19d800(0xc8)]);const _0x563b4d=this[_0x19d800(0x76)][_0x19d800(0xa1)](0x0,BATCH_SIZE);this[_0x19d800(0x76)][_0x19d800(0x85)](0x0,BATCH_SIZE),await this[_0x19d800(0x9c)](this[_0x19d800(0xc1)],_0x50edc2[_0x19d800(0xae)],_0x563b4d),_0x50edc2[_0x19d800(0xaf)](trace,_0x19d800(0xc7)+this[_0x19d800(0x76)][_0x19d800(0xc8)]);}},BATCH_INTERVAL);};[a85_0x269334(0x89)]=()=>{const _0x2dc1c7=a85_0x269334,_0x141973={};_0x141973[_0x2dc1c7(0x86)]=_0x2dc1c7(0x6d);const _0x5eb8c7=_0x141973;this[_0x2dc1c7(0x6c)](_0x5eb8c7['GNoWn']),this[_0x2dc1c7(0xb0)]();};['removeEventBatchPolling']=_0x4900c7=>{const _0x4c05dc=a85_0x269334,_0xf40e8e={'jQxJO':function(_0x468035,_0x25b296){return _0x468035(_0x25b296);},'mrfqv':function(_0x59db20,_0x53da88){return _0x59db20===_0x53da88;},'MuclZ':'REMOVING'};this[_0x4c05dc(0xaa)]&&(_0xf40e8e[_0x4c05dc(0xb5)](clearInterval,this[_0x4c05dc(0xaa)]),this[_0x4c05dc(0xaa)]=null,_0xf40e8e[_0x4c05dc(0x9a)](_0x4900c7,_0xf40e8e['MuclZ'])&&(this[_0x4c05dc(0xd3)]=![]));};[a85_0x269334(0x7e)]=()=>{const _0x5d0e8d=a85_0x269334,_0x35f1c3={};_0x35f1c3['ruOwL']=function(_0x308f59,_0x45ecdf){return _0x308f59>=_0x45ecdf;};const _0x5daa29=_0x35f1c3;return _0x5daa29[_0x5d0e8d(0xa2)](this[_0x5d0e8d(0x76)][_0x5d0e8d(0xc8)],BATCH_SIZE);};async[a85_0x269334(0x97)](_0x18fb06=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x310256=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x5c85d9=a85_0x269334,_0x13d28f={'zZteO':function(_0x3d667b,_0x5a727c){return _0x3d667b<=_0x5a727c;},'wmnxT':function(_0x31c5d1,_0x4b6518){return _0x31c5d1(_0x4b6518);},'IMReg':function(_0x4ace5c,_0x24d648){return _0x4ace5c-_0x24d648;}};if(_0x13d28f['zZteO'](this[_0x5c85d9(0x6e)],0x0)||_0x13d28f[_0x5c85d9(0xcd)](_0x18fb06,0x0))return;return await _0x13d28f[_0x5c85d9(0x9e)](sleep,_0x310256),this['uploadPending'](_0x13d28f[_0x5c85d9(0x92)](_0x18fb06,_0x310256));}}function a85_0x158e(_0x473bbf,_0x4a2c74){const _0x2eef12=a85_0x2eef();return a85_0x158e=function(_0x158e31,_0x49aff0){_0x158e31=_0x158e31-0x69;let _0x423c94=_0x2eef12[_0x158e31];return _0x423c94;},a85_0x158e(_0x473bbf,_0x4a2c74);}module[a85_0x269334(0x7a)]=RequestQueueHandler;function a85_0x2eef(){const _0xceb9f0=['api/v1/screenshots','TestRunSkipped','2483834Mlnmsj','Processing\x20events.\x20Queue\x20Length\x20-\x20','\x20--\x20','event_type','\x20bytes.\x20Events\x20are\x20','IMReg','split','677964DbUiMI','TestRunStarted','OiWuc','uploadPending','QIOOe','uuid','mrfqv','EXCEPTION\x20IN\x20','batchAndPostEvents','jPrEp','wmnxT','instance','Processing\x20batch\x20events\x20for\x20','slice','ruOwL','statusText','oWFFU','start','MkxNp','TestRunFinished','shutdown','fVwcc','pollEventBatchInterval','BATCH_EVENT_TYPES','LogCreated','response','Odvsv','EREeO','startEventBatchPolling','45104MbDPCk','uighq','205271futAJw','FbZAP','jQxJO','includes','890deviov','qpTaJ','data','proceedWithUrl','max','4oGLWuj','../helper','Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20','stringify','sBnmg','eventUrl','55662HTcjnM','.\x20Request\x20Size\x20-\x20','NvlDJ','TEST_SCREENSHOT','push','Remaining\x20Queue\x20Length\x20-\x20','length','./constants','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','zapzb','kGRgC','zZteO','ZwKFS','CBTSessionCreated','nujXl','message','Interval-Queue','started','vlJLT','HsNfI','959dEdipp','PMrLb','proceedWithData','HookRunFinished','nJvdq','PjRRB','logs','removeEventBatchPolling','RESETTING','pendingUploads','fkqbJ','screenshotEventUrl','POST','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','wwfuP','error','status','queue','hook_run','1926ZZICxD','tPXvU','exports','join','SOCFR','wdpBG','shouldProceed','REMOVING','1952985lXcKOd','HookRunStarted','xkzYP','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','format','splice','GNoWn','2396832SSzMwE','getInstance','resetEventBatchPolling','EkYoO'];a85_0x2eef=function(){return _0xceb9f0;};return a85_0x2eef();}
|
|
1
|
+
const a85_0x2bf13d=a85_0x2670;(function(_0x480a96,_0x40320d){const _0x4f5238=a85_0x2670,_0x42fcd1=_0x480a96();while(!![]){try{const _0x219f67=-parseInt(_0x4f5238(0x6c))/0x1*(parseInt(_0x4f5238(0x6e))/0x2)+parseInt(_0x4f5238(0x9d))/0x3+parseInt(_0x4f5238(0x69))/0x4+parseInt(_0x4f5238(0x96))/0x5*(parseInt(_0x4f5238(0xbb))/0x6)+-parseInt(_0x4f5238(0x97))/0x7*(-parseInt(_0x4f5238(0x6a))/0x8)+parseInt(_0x4f5238(0x88))/0x9+parseInt(_0x4f5238(0xc1))/0xa*(-parseInt(_0x4f5238(0x90))/0xb);if(_0x219f67===_0x40320d)break;else _0x42fcd1['push'](_0x42fcd1['shift']());}catch(_0x48ac9d){_0x42fcd1['push'](_0x42fcd1['shift']());}}}(a85_0x1748,0x87983));function a85_0x2670(_0x531364,_0x574575){const _0x17488e=a85_0x1748();return a85_0x2670=function(_0x26709d,_0x44c163){_0x26709d=_0x26709d-0x67;let _0x434a6e=_0x17488e[_0x26709d];return _0x434a6e;},a85_0x2670(_0x531364,_0x574575);}const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require(a85_0x2bf13d(0x9c)),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require(a85_0x2bf13d(0x7b)),{nestedKeyValue}=require(a85_0x2bf13d(0xae)),util=require(a85_0x2bf13d(0xb4));class RequestQueueHandler{static ['instance'];[a85_0x2bf13d(0xbd)]=0x0;constructor(){const _0x152788=a85_0x2bf13d,_0x54a764={};_0x54a764['KeCQQ']='5|1|3|2|4|0',_0x54a764[_0x152788(0x73)]=_0x152788(0x87),_0x54a764['OUDlu']='api/v1/batch',_0x54a764[_0x152788(0x83)]=_0x152788(0xca),_0x54a764[_0x152788(0x9e)]=_0x152788(0x70),_0x54a764[_0x152788(0x9a)]=_0x152788(0xac),_0x54a764[_0x152788(0xaf)]=_0x152788(0xb2),_0x54a764[_0x152788(0xc8)]=_0x152788(0xc7),_0x54a764[_0x152788(0xc9)]=_0x152788(0x89),_0x54a764['qvjrp']=_0x152788(0x9b);const _0x4854be=_0x54a764,_0x358e9b=_0x4854be[_0x152788(0x8c)][_0x152788(0x6b)]('|');let _0x195712=0x0;while(!![]){switch(_0x358e9b[_0x195712++]){case'0':this[_0x152788(0x9f)]=null;continue;case'1':this[_0x152788(0xce)]=![];continue;case'2':this['screenshotEventUrl']=_0x4854be[_0x152788(0x73)];continue;case'3':this['eventUrl']=_0x4854be[_0x152788(0xc6)];continue;case'4':this[_0x152788(0xad)]=[_0x4854be[_0x152788(0x83)],_0x4854be[_0x152788(0x9e)],_0x4854be['Ytwfz'],_0x4854be[_0x152788(0xaf)],_0x4854be[_0x152788(0xc8)],_0x4854be[_0x152788(0xc9)],_0x4854be[_0x152788(0x8f)]];continue;case'5':this['queue']=[];continue;}break;}}static[a85_0x2bf13d(0x80)](){const _0x2c1d92=a85_0x2bf13d;return!RequestQueueHandler[_0x2c1d92(0x81)]&&(RequestQueueHandler['instance']=new RequestQueueHandler()),RequestQueueHandler['instance'];}[a85_0x2bf13d(0xa6)]=()=>{const _0x1d1d08=a85_0x2bf13d;!this[_0x1d1d08(0xce)]&&(this['started']=!![],this['startEventBatchPolling']());};[a85_0x2bf13d(0xcf)]=_0x3fd311=>{const _0x3167c8=a85_0x2bf13d,_0x51de73={'WebCZ':function(_0x31faab,_0x355bd4){return _0x31faab===_0x355bd4;},'HWbAQ':'TEST_SCREENSHOT','RdVXu':function(_0x542c16,_0x57b1d8){return _0x542c16(_0x57b1d8);},'gtzlC':_0x3167c8(0xbc)};if(this[_0x3167c8(0xad)][_0x3167c8(0x7a)](_0x3fd311[_0x3167c8(0x6f)])){if(_0x3fd311[_0x3167c8(0xc5)]&&_0x3fd311[_0x3167c8(0xc5)][0x0]&&_0x51de73[_0x3167c8(0xb6)](_0x3fd311['logs'][0x0][_0x3167c8(0x94)],_0x51de73[_0x3167c8(0xba)])){const _0x556a11={};return _0x556a11[_0x3167c8(0x74)]=!![],_0x556a11['proceedWithData']=[_0x3fd311],_0x556a11[_0x3167c8(0xcb)]=this['screenshotEventUrl'],_0x556a11;}this[_0x3167c8(0xcc)]['push'](_0x3fd311);let _0x3aad08=null;const _0x508213=this['shouldProceed']();_0x508213&&(_0x51de73[_0x3167c8(0xb1)](trace,_0x51de73[_0x3167c8(0x8a)]),_0x3aad08=this['queue']['slice'](0x0,BATCH_SIZE),this[_0x3167c8(0xcc)][_0x3167c8(0x75)](0x0,BATCH_SIZE),this[_0x3167c8(0x92)]());const _0x202709={};return _0x202709[_0x3167c8(0x74)]=_0x508213,_0x202709['proceedWithData']=_0x3aad08,_0x202709[_0x3167c8(0xcb)]=this[_0x3167c8(0xb7)],_0x202709;}const _0x24b01b={};return _0x24b01b['shouldProceed']=!![],_0x24b01b;};['shutdown']=async()=>{const _0x2ae6f5=a85_0x2bf13d,_0x5bd43b={'akwGc':_0x2ae6f5(0xc0),'YGiPN':function(_0xcdb58f,_0x5df5bc){return _0xcdb58f>_0x5df5bc;},'bUyFZ':_0x2ae6f5(0x91),'tMqaC':function(_0x266a4d,_0x3c0ec2){return _0x266a4d(_0x3c0ec2);}};await this[_0x2ae6f5(0xc2)](),this[_0x2ae6f5(0xb9)](_0x5bd43b[_0x2ae6f5(0x7f)]);while(_0x5bd43b[_0x2ae6f5(0xb8)](this['queue'][_0x2ae6f5(0x86)],0x0)){const _0x2ff1fa=this['queue']['slice'](0x0,BATCH_SIZE);this[_0x2ae6f5(0xcc)][_0x2ae6f5(0x75)](0x0,BATCH_SIZE),await this[_0x2ae6f5(0xcd)](this[_0x2ae6f5(0xb7)],_0x5bd43b['bUyFZ'],_0x2ff1fa);}_0x5bd43b[_0x2ae6f5(0xb8)](this[_0x2ae6f5(0xbd)],0x0)&&_0x5bd43b[_0x2ae6f5(0x85)](debug,_0x2ae6f5(0xa2)+this['pendingUploads']);};['batchAndPostEvents']=async(_0x212ed2,_0x546bcb,_0x1c52c5)=>{const _0x215996=a85_0x2bf13d,_0x5a1f5a={'hfVga':function(_0x1d78cf,_0x188545){return _0x1d78cf(_0x188545);},'WEcSe':_0x215996(0xb5),'AhxRV':function(_0x21e6ea,_0x3f8e3c){return _0x21e6ea(_0x3f8e3c);},'LqGjU':function(_0x3ee68b){return _0x3ee68b();},'OVnTr':function(_0x3d03f5,_0x260122,_0x30b485,_0x1e5ae7,_0x983fde){return _0x3d03f5(_0x260122,_0x30b485,_0x1e5ae7,_0x983fde);},'nVCWN':_0x215996(0xb0),'xVbtF':function(_0x4d6954,_0x4810b6){return _0x4d6954-_0x4810b6;},'ffGuO':function(_0x33d517,_0xf67b7f){return _0x33d517-_0xf67b7f;}};let _0x5afe06='';try{_0x5afe06=_0x1c52c5[_0x215996(0x8d)](_0x1f31e8=>'\x27'+_0x1f31e8['event_type']+'\x27:'+(nestedKeyValue(_0x1f31e8,[_0x215996(0x67),'uuid'])||nestedKeyValue(_0x1f31e8,[_0x215996(0x68),'uuid'])))[_0x215996(0xab)](','),_0x5a1f5a['hfVga'](debug,_0x215996(0xc4)+_0x546bcb+'.\x20Request\x20Size\x20-\x20'+Buffer[_0x215996(0x93)](util[_0x215996(0xa7)]('%j',_0x1c52c5),_0x5a1f5a['WEcSe'])+_0x215996(0x7d)+_0x5afe06);}catch(_0x453b28){_0x5a1f5a[_0x215996(0x78)](debug,_0x215996(0xc3)+util[_0x215996(0xa7)](_0x453b28)+'}');}const _0x501f0e={'headers':_0x5a1f5a['LqGjU'](getDefaultHeaders)};try{const _0x3fcc74=await _0x5a1f5a[_0x215996(0xbf)](nodeRequest,_0x5a1f5a[_0x215996(0xbe)],_0x212ed2,_0x1c52c5,_0x501f0e);if(_0x3fcc74[_0x215996(0x82)]['error']){const _0x14d11e={};_0x14d11e[_0x215996(0xa3)]=_0x3fcc74[_0x215996(0x82)]['error'];throw _0x14d11e;}else _0x5a1f5a['AhxRV'](debug,_0x546bcb+_0x215996(0x79)+_0x5afe06+_0x215996(0x7e)+util[_0x215996(0xa7)]('%j',_0x3fcc74['data'])),this['pendingUploads']=Math[_0x215996(0x72)](0x0,_0x5a1f5a[_0x215996(0x77)](this[_0x215996(0xbd)],_0x1c52c5[_0x215996(0x86)]));}catch(_0x9b0b96){_0x9b0b96[_0x215996(0xa8)]?_0x5a1f5a[_0x215996(0x78)](debug,_0x215996(0x6d)+_0x546bcb+_0x215996(0xa4)+_0x9b0b96[_0x215996(0xa8)][_0x215996(0x98)]+'\x20'+_0x9b0b96[_0x215996(0xa8)]['statusText']+'\x20'+JSON['stringify'](_0x9b0b96['response'])):_0x5a1f5a[_0x215996(0x78)](debug,_0x215996(0x6d)+_0x546bcb+_0x215996(0xa4)+(_0x9b0b96[_0x215996(0xa3)]||_0x9b0b96)),this[_0x215996(0xbd)]=Math['max'](0x0,_0x5a1f5a['ffGuO'](this[_0x215996(0xbd)],_0x1c52c5[_0x215996(0x86)]));}};[a85_0x2bf13d(0x76)]=()=>{const _0x2328df=a85_0x2bf13d,_0x219681={'wGtuO':function(_0x36f843,_0x1461b4){return _0x36f843>_0x1461b4;},'QEgis':function(_0x2c4d22,_0xe4a27d){return _0x2c4d22(_0xe4a27d);},'vifNV':'Interval-Queue','jHPge':function(_0x216a1a,_0x56377a,_0x4935e0){return _0x216a1a(_0x56377a,_0x4935e0);}};this[_0x2328df(0x9f)]=_0x219681[_0x2328df(0xb3)](setInterval,async()=>{const _0x4c39d3=_0x2328df;if(_0x219681['wGtuO'](this[_0x4c39d3(0xcc)]['length'],0x0)){_0x219681[_0x4c39d3(0x84)](trace,_0x4c39d3(0x95)+this[_0x4c39d3(0xcc)][_0x4c39d3(0x86)]);const _0x326842=this[_0x4c39d3(0xcc)]['slice'](0x0,BATCH_SIZE);this['queue'][_0x4c39d3(0x75)](0x0,BATCH_SIZE),await this[_0x4c39d3(0xcd)](this[_0x4c39d3(0xb7)],_0x219681[_0x4c39d3(0x99)],_0x326842),_0x219681[_0x4c39d3(0x84)](trace,'Remaining\x20Queue\x20Length\x20-\x20'+this[_0x4c39d3(0xcc)][_0x4c39d3(0x86)]);}},BATCH_INTERVAL);};['resetEventBatchPolling']=()=>{const _0x260dab=a85_0x2bf13d,_0x414100={};_0x414100[_0x260dab(0xa0)]=_0x260dab(0x8b);const _0x26c8db=_0x414100;this[_0x260dab(0xb9)](_0x26c8db[_0x260dab(0xa0)]),this[_0x260dab(0x76)]();};[a85_0x2bf13d(0xb9)]=_0x27243c=>{const _0xa33944=a85_0x2bf13d,_0x2a4e97={'wohjB':function(_0x1cffd1,_0x256dcb){return _0x1cffd1(_0x256dcb);},'bKqUZ':function(_0x1f2b94,_0x40967b){return _0x1f2b94===_0x40967b;},'jWPVy':'REMOVING'};this[_0xa33944(0x9f)]&&(_0x2a4e97[_0xa33944(0xa9)](clearInterval,this[_0xa33944(0x9f)]),this[_0xa33944(0x9f)]=null,_0x2a4e97[_0xa33944(0xa5)](_0x27243c,_0x2a4e97[_0xa33944(0x8e)])&&(this[_0xa33944(0xce)]=![]));};[a85_0x2bf13d(0x74)]=()=>{const _0x525bef=a85_0x2bf13d,_0x4e890={};_0x4e890[_0x525bef(0x7c)]=function(_0xac0801,_0x18c4de){return _0xac0801>=_0x18c4de;};const _0x227b1e=_0x4e890;return _0x227b1e[_0x525bef(0x7c)](this[_0x525bef(0xcc)][_0x525bef(0x86)],BATCH_SIZE);};async[a85_0x2bf13d(0xc2)](_0x23d187=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x26380d=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x5c7eb0=a85_0x2bf13d,_0x537b7a={'WHILX':function(_0x1cd849,_0x45bb69){return _0x1cd849<=_0x45bb69;},'LLUCj':function(_0x2fb6a3,_0x5be6cb){return _0x2fb6a3<=_0x5be6cb;},'DsSoA':function(_0x45d143,_0x921ffe){return _0x45d143(_0x921ffe);},'oobQF':function(_0x6a33c4,_0x1242e2){return _0x6a33c4-_0x1242e2;}};if(_0x537b7a[_0x5c7eb0(0x71)](this[_0x5c7eb0(0xbd)],0x0)||_0x537b7a['LLUCj'](_0x23d187,0x0))return;return await _0x537b7a[_0x5c7eb0(0xaa)](sleep,_0x26380d),this['uploadPending'](_0x537b7a[_0x5c7eb0(0xa1)](_0x23d187,_0x26380d));}}function a85_0x1748(){const _0x471f10=['LogCreated','proceedWithUrl','queue','batchAndPostEvents','started','add','test_run','hook_run','2581780eQfDCz','8nBTtWv','split','1969QcamgD','EXCEPTION\x20IN\x20','130MhmfyS','event_type','CBTSessionCreated','WHILX','max','ZPjTf','shouldProceed','splice','startEventBatchPolling','xVbtF','AhxRV','\x20event\x20successful\x20for\x20events\x20','includes','./utils','aeCSn','\x20bytes.\x20Events\x20are\x20','\x20--\x20','akwGc','getInstance','instance','data','FnBAP','QEgis','tMqaC','length','api/v1/screenshots','6306408FFjcbF','TestRunStarted','gtzlC','RESETTING','KeCQQ','map','jWPVy','qvjrp','22MGEpdJ','Shutdown-Queue','resetEventBatchPolling','byteLength','kind','Processing\x20events.\x20Queue\x20Length\x20-\x20','3439510OJjGnD','5319349eHeVGR','status','vifNV','Ytwfz','HookRunStarted','./constants','1595286UVZsDb','TVaPo','pollEventBatchInterval','ikZpc','oobQF','Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20','message','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','bKqUZ','start','format','response','wohjB','DsSoA','join','TestRunFinished','BATCH_EVENT_TYPES','../helper','mxvyu','POST','RdVXu','TestRunSkipped','jHPge','util','utf8','WebCZ','eventUrl','YGiPN','removeEventBatchPolling','HWbAQ','6FRAfTi','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','pendingUploads','nVCWN','OVnTr','REMOVING','13211740vaGoPP','uploadPending','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','Processing\x20batch\x20events\x20for\x20','logs','OUDlu','HookRunFinished','Ttgky','YZcxh'];a85_0x1748=function(){return _0x471f10;};return a85_0x1748();}module['exports']=RequestQueueHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a86_0x19fc3e=a86_0x5960;function a86_0x19f4(){const _0x48c65c=['frameworkVersion','92596XJiwVZ','projectName','YoAVQ','ozwIm','Content-Type','BS_TESTOPS_BUILD_HASHED_ID','pfkAa','max','ayusf','ykQaF','length','CREDENTIALS_FOR_CRASH_REPORTING','TestRunStarted','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20missing\x20authentication\x20token','JpLsY','api/v1/builds','QmZuO','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','../../helpers/testhub/utils','qLIrt','message','BROWSERSTACK_TESTHUB_UUID','BS_A11Y_JWT','POST','ERROR_SDK_DEPRECATED','ilwjM','eventUrl','LZTgK','IrzUj','getAccessKey','stringify','username','WwcjI','nXIQg','oGgia','includes','VWyQJ','exports','getInstance','null','Gevmp','info','headers','zIMZt','BzNRX','Bearer\x20','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','rbvqq','NNwkO','dMSAI','getHostInfo','statusText','XcMhV','2031368tqNwox','dccXL','application/json','eRAeb','getUserName','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','HookRunStarted','bFrHI','launch','false','unksj','qLfkY','status','DLioX','Test_End_Upload','error','toISOString','json','Test_Start_Upload','nestedKeyValue','bAqKC','success','ERROR_INVALID_CREDENTIALS','buildName','winstonLogger','./requestQueueHandler','fgdoR','XTLyy','1940pdxsvO','NTbIl','CMDIk','api/v1/event','PAxbr','zoXnq','cwd','ulMpP','futJL','xHozf','requestQueueHandler','CBT_Upload','Build\x20creation\x20successful!','974853YHqTgw','448kYBUgJ','11496txdQIh','nqghz','oFXHH','browserstackAutomation','ktPHp','TJGyz','../helper','Hook_Start_Upload','534031wShRvs','event_type','BROWSERSTACK_BUILD_RUN_IDENTIFIER','./utils','../logger','jwt','xEmoI','Batch-Queue','Retry\x20runs\x20exceeded','igjvQ','LNpVg','BROWSERSTACK_TESTHUB_JWT','data','BS_TESTOPS_JWT','toString','path','getGitMetaData','oCClk','Processing\x20event\x20-\x20\x27',']\x20event\x20successful!','./constants','LogCreated','ImwIu','allow_screenshots','HookRunFinished','env','build_hashed_id','lQWna','resolve','aKTJV','uploadEventData','BS_TESTOPS_BUILD_COMPLETED','app','test_run','jSwBq','true','EXCEPTION\x20IN\x20','161301CKsUzz','response','4735407jFhMpO','BS_TESTOPS_ALLOW_SCREENSHOTS','HXHxh','avQbB','GTzIL','TestRunSkipped','basename','UZuGK','MuQOS','pendingUploads','uuid','KLnWH','bJslh','frameworkName','hook_run','110HnXKFS','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','Data\x20upload\x20to\x20BrowserStack\x20Test\x20Observability\x20failed\x20due\x20to\x20','buildDescription'];a86_0x19f4=function(){return _0x48c65c;};return a86_0x19f4();}(function(_0x365aeb,_0x18e500){const _0xe82269=a86_0x5960,_0x3a3626=_0x365aeb();while(!![]){try{const _0x48b039=-parseInt(_0xe82269(0xc8))/0x1+-parseInt(_0xe82269(0x103))/0x2+parseInt(_0xe82269(0xef))/0x3+parseInt(_0xe82269(0x95))/0x4+parseInt(_0xe82269(0xb1))/0x5*(-parseInt(_0xe82269(0xc0))/0x6)+parseInt(_0xe82269(0xed))/0x7*(parseInt(_0xe82269(0xbf))/0x8)+parseInt(_0xe82269(0xbe))/0x9*(-parseInt(_0xe82269(0xfe))/0xa);if(_0x48b039===_0x18e500)break;else _0x3a3626['push'](_0x3a3626['shift']());}catch(_0x4a739c){_0x3a3626['push'](_0x3a3626['shift']());}}}(a86_0x19f4,0xd2537));const bsSetupHelper=require(a86_0x19fc3e(0xc6)),path=require(a86_0x19fc3e(0xd7)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,sleep,isTestObservabilitySession,trace}=require(a86_0x19fc3e(0xcb)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a86_0x19fc3e(0xdc)),RequestQueueHandler=require(a86_0x19fc3e(0xae)),logger=require(a86_0x19fc3e(0xcc))[a86_0x19fc3e(0xad)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap}=require(a86_0x19fc3e(0x72));function a86_0x5960(_0x3b2fff,_0xdb7626){const _0x19f456=a86_0x19f4();return a86_0x5960=function(_0x59602c,_0x50f97c){_0x59602c=_0x59602c-0x67;let _0x52f402=_0x19f456[_0x59602c];return _0x52f402;},a86_0x5960(_0x3b2fff,_0xdb7626);}class SessionHandler{static [a86_0x19fc3e(0xbb)]=RequestQueueHandler[a86_0x19fc3e(0x86)]();static async[a86_0x19fc3e(0x9d)](_0x422e7c,_0x46c6ce){const _0x2da675=a86_0x19fc3e,_0x32c0e2={'KLnWH':function(_0x43cdcc,_0x160ae2){return _0x43cdcc||_0x160ae2;},'XcMhV':function(_0x184c11,_0x238001){return _0x184c11||_0x238001;},'xHozf':function(_0x48ea5c,_0x44853b){return _0x48ea5c===_0x44853b;},'ktPHp':function(_0x27a4ba,_0x57ca22){return _0x27a4ba(_0x57ca22);},'bAqKC':'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','lQWna':_0x2da675(0x9e),'DLioX':_0x2da675(0xa6),'IUjqH':function(_0x42d989,_0x21d470){return _0x42d989(_0x21d470);},'pfkAa':function(_0x65ad8e,_0x2f1423){return _0x65ad8e(_0x2f1423);},'qLIrt':function(_0x2d75ae,_0x41fba4,_0x51bd05,_0x6628a2,_0x143ca1){return _0x2d75ae(_0x41fba4,_0x51bd05,_0x6628a2,_0x143ca1);},'aKTJV':_0x2da675(0x77),'CMDIk':_0x2da675(0x6f),'IStyH':_0x2da675(0xbd),'NTbIl':function(_0x57a38e){return _0x57a38e();},'eRAeb':_0x2da675(0xeb),'ImwIu':_0x2da675(0x87),'Gevmp':function(_0x65415d,_0x289d47){return _0x65415d(_0x289d47);},'avQbB':_0x2da675(0xab),'ayusf':'ERROR_ACCESS_DENIED','NNwkO':_0x2da675(0x78)},_0x16e442=bsSetupHelper[_0x2da675(0x99)](_0x422e7c),_0x5d1b02=bsSetupHelper[_0x2da675(0x7d)](_0x422e7c),_0x2f7182=_0x32c0e2[_0x2da675(0xfa)](_0x16e442,'')+':'+_0x32c0e2[_0x2da675(0x94)](_0x5d1b02,'');if(_0x32c0e2[_0x2da675(0xba)](_0x2f7182,':'))return _0x32c0e2['ktPHp'](debug,_0x32c0e2[_0x2da675(0xa9)]),process[_0x2da675(0xe1)][_0x2da675(0xe7)]=_0x32c0e2[_0x2da675(0xe3)],[null,null];let _0x2fb6ce=![],_0x4fafed=![];if(_0x422e7c['browserstackAutomation']&&_0x422e7c[_0x2da675(0xe8)])_0x4fafed=!![];else _0x422e7c[_0x2da675(0xc3)]&&(_0x2fb6ce=!![]);try{const _0x40a145={'format':_0x32c0e2[_0x2da675(0xa2)],'project_name':_0x422e7c[_0x2da675(0x104)]||'','name':_0x422e7c[_0x2da675(0xac)]||path[_0x2da675(0xf5)](path[_0x2da675(0xe4)](process[_0x2da675(0xb7)]())),'build_identifier':_0x422e7c['buildIdentifier'],'description':_0x422e7c[_0x2da675(0x101)]||'','start_time':new Date()[_0x2da675(0xa5)](),'tags':_0x32c0e2['IUjqH'](getCustomTags,_0x422e7c),'host_info':bsSetupHelper[_0x2da675(0x92)](),'ci_info':bsSetupHelper['getCiInfo'](),'build_run_identifier':process[_0x2da675(0xe1)][_0x2da675(0xca)],'failed_tests_rerun':process[_0x2da675(0xe1)]['BROWSERSTACK_RERUN']||![],'version_control':await bsSetupHelper[_0x2da675(0xd8)](),'observability_version':{'frameworkName':_0x46c6ce[_0x2da675(0xfc)],'frameworkVersion':_0x46c6ce[_0x2da675(0x102)],'sdkVersion':bsSetupHelper['getAgentVersion']()},'product_map':_0x32c0e2['ktPHp'](getProductMap,_0x422e7c)},_0xde2db2={};_0xde2db2[_0x2da675(0x7f)]=_0x16e442,_0xde2db2['password']=_0x5d1b02;const _0x3490e2={'auth':_0xde2db2,'headers':_0x32c0e2[_0x2da675(0x109)](getDefaultHeaders,![])},_0x825cc=await _0x32c0e2[_0x2da675(0x73)](nodeRequest,_0x32c0e2[_0x2da675(0xe5)],_0x32c0e2[_0x2da675(0xb3)],_0x40a145,_0x3490e2);_0x32c0e2[_0x2da675(0x109)](debug,_0x32c0e2['IStyH']);const _0x455aa9=_0x825cc['data'];_0x455aa9[_0x2da675(0xe2)]&&(process[_0x2da675(0xe1)][_0x2da675(0x75)]=_0x455aa9[_0x2da675(0xe2)]);if(_0x32c0e2[_0x2da675(0xb2)](isTestObservabilitySession)){process[_0x2da675(0xe1)][_0x2da675(0xe7)]=_0x32c0e2[_0x2da675(0x98)];if(_0x455aa9[_0x2da675(0xcd)]){process[_0x2da675(0xe1)][_0x2da675(0xd5)]=_0x455aa9[_0x2da675(0xcd)];const _0x4ae500={};_0x4ae500[_0x2da675(0x7f)]=_0x16e442,_0x4ae500['password']=_0x5d1b02,process[_0x2da675(0xe1)][_0x2da675(0x6b)]=JSON[_0x2da675(0x7e)](_0x4ae500);}_0x455aa9[_0x2da675(0xe2)]&&(process[_0x2da675(0xe1)][_0x2da675(0x108)]=_0x455aa9[_0x2da675(0xe2)]),_0x455aa9[_0x2da675(0xdf)]&&(process[_0x2da675(0xe1)][_0x2da675(0xf0)]=_0x455aa9['allow_screenshots'][_0x2da675(0xd6)]());}return[_0x825cc[_0x2da675(0xd4)][_0x2da675(0xcd)],_0x825cc['data'][_0x2da675(0xe2)],_0x825cc[_0x2da675(0xd4)]['allow_screenshots']];}catch(_0x1c5769){process[_0x2da675(0xe1)]['BROWSERSTACK_TESTHUB_UUID']=_0x32c0e2[_0x2da675(0xde)],process[_0x2da675(0xe1)]['BS_TESTOPS_BUILD_COMPLETED']=_0x32c0e2[_0x2da675(0xe3)],process[_0x2da675(0xe1)][_0x2da675(0xd5)]=_0x32c0e2['ImwIu'],process['env'][_0x2da675(0x108)]=_0x32c0e2[_0x2da675(0xde)],process['env'][_0x2da675(0xf0)]=_0x32c0e2[_0x2da675(0xde)];_0x1c5769[_0x2da675(0xee)]?_0x32c0e2[_0x2da675(0xc4)](debug,'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20'+_0x1c5769['response']['status']+'\x20'+_0x1c5769[_0x2da675(0xee)][_0x2da675(0x93)]+'\x20'+JSON[_0x2da675(0x7e)](_0x1c5769[_0x2da675(0xee)][_0x2da675(0xd4)])):_0x32c0e2[_0x2da675(0x88)](debug,_0x2da675(0x8e)+(_0x1c5769[_0x2da675(0x74)]||_0x1c5769));if(_0x1c5769&&_0x1c5769[_0x2da675(0x74)]){const _0xf6f8d3=_0x1c5769['message'];switch(_0x1c5769['errorType']){case _0x32c0e2[_0x2da675(0xf2)]:logger[_0x2da675(0xa4)](_0xf6f8d3);break;case _0x32c0e2[_0x2da675(0x68)]:logger[_0x2da675(0x89)](_0xf6f8d3);break;case _0x32c0e2[_0x2da675(0x90)]:logger[_0x2da675(0xa4)](_0xf6f8d3);break;default:logger['error'](_0xf6f8d3);}}else console[_0x2da675(0x89)](_0x2da675(0x100)+_0x1c5769);return[null,null,null];}}static async['waitForBuildStatus'](){const _0x337a04=a86_0x19fc3e,_0x5d5260={'IrzUj':_0x337a04(0xeb),'oGgia':_0x337a04(0x9e),'ulMpP':function(_0x42b248,_0x3b5d5d){return _0x42b248(_0x3b5d5d);}},_0x4a6e8d=process['env'][_0x337a04(0xe7)];if([_0x5d5260['IrzUj'],_0x5d5260['oGgia']][_0x337a04(0x83)](_0x4a6e8d))return;while([_0x5d5260[_0x337a04(0x7c)],_0x5d5260[_0x337a04(0x82)]][_0x337a04(0x83)](_0x4a6e8d)){await _0x5d5260[_0x337a04(0xb8)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static async[a86_0x19fc3e(0xe6)](_0x4bc2a0,_0x4f5a6f=0x0){const _0x59fe34=a86_0x19fc3e,_0x2827e5={'jSwBq':function(_0x674d94,_0x2fdcad){return _0x674d94+_0x2fdcad;},'igjvQ':_0x59fe34(0xa7),'qfNIL':_0x59fe34(0xa3),'fgdoR':'Test_Skipped_Upload','QmZuO':'Log_Upload','bFrHI':_0x59fe34(0xc7),'LNpVg':'Hook_End_Upload','MuQOS':_0x59fe34(0xbc),'nXIQg':function(_0x3ec1cc,_0x331885){return _0x3ec1cc(_0x331885);},'dccXL':_0x59fe34(0xe9),'ilwjM':_0x59fe34(0xf9),'NPlvg':_0x59fe34(0xfd),'YoAVQ':function(_0x475c84,_0x134f0f,_0x5aaa57){return _0x475c84(_0x134f0f,_0x5aaa57);},'TiwJX':_0x59fe34(0xe6),'xEmoI':function(_0x1436f9,_0x4b7dec){return _0x1436f9===_0x4b7dec;},'futJL':function(_0x297e53,_0x2c975d){return _0x297e53!==_0x2c975d;},'WwcjI':_0x59fe34(0x87),'UZuGK':function(_0x2be2f6,_0x2b512f){return _0x2be2f6===_0x2b512f;},'dMSAI':_0x59fe34(0xeb),'PAxbr':function(_0x94b167){return _0x94b167();},'XTLyy':function(_0x4f86f9,_0x45d1a5){return _0x4f86f9===_0x45d1a5;},'rbvqq':function(_0x1a26ca,_0x4a3dd1){return _0x1a26ca(_0x4a3dd1);},'oFXHH':function(_0x3be905,_0x426b7f){return _0x3be905-_0x426b7f;},'ykQaF':_0x59fe34(0xa4),'BzNRX':_0x59fe34(0x71),'zIMZt':_0x59fe34(0x97),'GTzIL':function(_0x4e2fe3,_0x4324f5,_0x1b09f6,_0x22ca98,_0x3f0655){return _0x4e2fe3(_0x4324f5,_0x1b09f6,_0x22ca98,_0x3f0655);},'unksj':_0x59fe34(0x77),'qLfkY':function(_0x467d3a,_0x14eb53){return _0x467d3a!==_0x14eb53;},'TJGyz':_0x59fe34(0xcf),'NMgVk':function(_0xffbf32,_0x442ed8){return _0xffbf32-_0x442ed8;},'zoXnq':_0x59fe34(0xb4),'bJslh':_0x59fe34(0xaa),'LZTgK':function(_0x21b094,_0x304907){return _0x21b094!==_0x304907;},'kgJWX':function(_0x55db57,_0x226507){return _0x55db57(_0x226507);},'nqghz':function(_0x427894,_0x19de5c){return _0x427894>=_0x19de5c;},'VWyQJ':function(_0x240031,_0x58d20a){return _0x240031(_0x58d20a);},'HXHxh':function(_0x43094c,_0x2ccbd1){return _0x43094c-_0x2ccbd1;},'oCClk':_0x59fe34(0xd0),'ozwIm':_0x59fe34(0x9e),'JpLsY':function(_0x1d2d5b,_0x480441,_0x418c5c){return _0x1d2d5b(_0x480441,_0x418c5c);}},_0x53b241={};_0x53b241[_0x59fe34(0x6c)]=_0x2827e5[_0x59fe34(0xd1)],_0x53b241['TestRunFinished']=_0x2827e5['qfNIL'],_0x53b241[_0x59fe34(0xf4)]=_0x2827e5[_0x59fe34(0xaf)],_0x53b241[_0x59fe34(0xdd)]=_0x2827e5[_0x59fe34(0x70)],_0x53b241[_0x59fe34(0x9b)]=_0x2827e5[_0x59fe34(0x9c)],_0x53b241[_0x59fe34(0xe0)]=_0x2827e5[_0x59fe34(0xd2)],_0x53b241['CBTSessionCreated']=_0x2827e5[_0x59fe34(0xf7)];const _0x398ab0=_0x53b241[_0x4bc2a0[_0x59fe34(0xc9)]];_0x2827e5[_0x59fe34(0x81)](trace,_0x59fe34(0xda)+_0x4bc2a0[_0x59fe34(0xc9)]+'\x27\x20'+(bsSetupHelper[_0x59fe34(0xa8)](_0x4bc2a0,[_0x2827e5[_0x59fe34(0x96)],_0x2827e5[_0x59fe34(0x79)]])||bsSetupHelper[_0x59fe34(0xa8)](_0x4bc2a0,[_0x2827e5['NPlvg'],_0x2827e5['ilwjM']])));if(!_0x2827e5[_0x59fe34(0x105)](shouldProcessEventForTesthub,_0x4bc2a0['event_type'],_0x2827e5['TiwJX']))return;_0x2827e5[_0x59fe34(0xce)](_0x4f5a6f,0x0)&&process['env'][_0x59fe34(0xd3)]&&_0x2827e5[_0x59fe34(0xb9)](process[_0x59fe34(0xe1)][_0x59fe34(0xd3)],_0x2827e5['WwcjI'])&&(this[_0x59fe34(0xbb)][_0x59fe34(0xf8)]+=0x1);if(_0x2827e5[_0x59fe34(0xf6)](process['env'][_0x59fe34(0xe7)],_0x2827e5[_0x59fe34(0x91)])||process['env'][_0x59fe34(0x76)]||_0x2827e5[_0x59fe34(0xb5)](isPercyBuild)){if(_0x2827e5[_0x59fe34(0xb0)](process[_0x59fe34(0xe1)][_0x59fe34(0xd3)],_0x2827e5[_0x59fe34(0x80)])){_0x2827e5[_0x59fe34(0x8f)](debug,_0x59fe34(0xec)+_0x398ab0+_0x59fe34(0x6d)),this['requestQueueHandler'][_0x59fe34(0xf8)]=Math[_0x59fe34(0x67)](0x0,_0x2827e5[_0x59fe34(0xc2)](this[_0x59fe34(0xbb)]['pendingUploads'],0x1));const _0x487784={};return _0x487784[_0x59fe34(0xa1)]=_0x2827e5[_0x59fe34(0x69)],_0x487784[_0x59fe34(0x74)]=_0x2827e5[_0x59fe34(0x8c)],_0x487784;}let _0x3b3c37=_0x4bc2a0,_0x291280=EVENT_ENDPOINT;this[_0x59fe34(0xbb)]['start']();const {shouldProceed:_0x210b83,proceedWithData:_0x379dbf,proceedWithUrl:_0x97d3f5}=this[_0x59fe34(0xbb)]['add'](_0x4bc2a0);if(!_0x210b83)return;else _0x379dbf&&(_0x3b3c37=_0x379dbf,_0x291280=_0x97d3f5);const _0x4401a3={};_0x4401a3['Authorization']=_0x59fe34(0x8d)+process[_0x59fe34(0xe1)][_0x59fe34(0xd3)],_0x4401a3[_0x59fe34(0x107)]=_0x2827e5[_0x59fe34(0x8b)],_0x4401a3['X-BSTACK-TESTOPS']=_0x2827e5[_0x59fe34(0x91)];const _0x4b2b66={};_0x4b2b66[_0x59fe34(0x8a)]=_0x4401a3;const _0x44db60=_0x4b2b66;try{const _0x122ae6=await _0x2827e5[_0x59fe34(0xf3)](nodeRequest,_0x2827e5[_0x59fe34(0x9f)],_0x291280,_0x3b3c37,_0x44db60);if(_0x122ae6[_0x59fe34(0xd4)][_0x59fe34(0xa4)]){const _0x21950b={};_0x21950b[_0x59fe34(0x74)]=_0x122ae6[_0x59fe34(0xd4)][_0x59fe34(0xa4)];throw _0x21950b;}else{_0x2827e5['rbvqq'](debug,(_0x2827e5[_0x59fe34(0xa0)](_0x291280,this[_0x59fe34(0xbb)]['eventUrl'])?_0x398ab0:_0x2827e5[_0x59fe34(0xc5)])+'['+_0x4f5a6f+_0x59fe34(0xdb)),this[_0x59fe34(0xbb)][_0x59fe34(0xf8)]=Math[_0x59fe34(0x67)](0x0,_0x2827e5['NMgVk'](this[_0x59fe34(0xbb)][_0x59fe34(0xf8)],_0x2827e5[_0x59fe34(0xb0)](_0x291280,_0x2827e5[_0x59fe34(0xb6)])?0x1:_0x3b3c37['length']));const _0x476103={};return _0x476103[_0x59fe34(0xa1)]=_0x2827e5[_0x59fe34(0xfb)],_0x476103[_0x59fe34(0x74)]='',_0x476103;}}catch(_0x3346e8){_0x3346e8['response']?_0x2827e5[_0x59fe34(0x81)](debug,_0x59fe34(0xec)+(_0x2827e5[_0x59fe34(0x7b)](_0x291280,this[_0x59fe34(0xbb)][_0x59fe34(0x7a)])?_0x398ab0:_0x2827e5[_0x59fe34(0xc5)])+_0x59fe34(0x9a)+_0x3346e8['response']['status']+'\x20'+_0x3346e8[_0x59fe34(0xee)]['statusText']+'\x20'+JSON[_0x59fe34(0x7e)](_0x3346e8[_0x59fe34(0xee)][_0x59fe34(0xd4)])):_0x2827e5['kgJWX'](debug,_0x59fe34(0xec)+(_0x2827e5[_0x59fe34(0xb9)](_0x291280,this[_0x59fe34(0xbb)][_0x59fe34(0x7a)])?_0x398ab0:_0x2827e5['TJGyz'])+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20'+(_0x3346e8['message']||_0x3346e8));this[_0x59fe34(0xbb)][_0x59fe34(0xf8)]=Math[_0x59fe34(0x67)](0x0,_0x2827e5[_0x59fe34(0xc2)](this[_0x59fe34(0xbb)][_0x59fe34(0xf8)],_0x2827e5[_0x59fe34(0xce)](_0x291280,_0x2827e5['zoXnq'])?0x1:_0x3b3c37[_0x59fe34(0x6a)]));const _0x49edde={};return _0x49edde[_0x59fe34(0xa1)]=_0x2827e5[_0x59fe34(0x69)],_0x49edde[_0x59fe34(0x74)]=_0x3346e8['message']||(_0x3346e8['response']?_0x3346e8['response'][_0x59fe34(0xa1)]+':'+_0x3346e8[_0x59fe34(0xee)]['statusText']:_0x3346e8),_0x49edde;}}else{if(_0x2827e5[_0x59fe34(0xc1)](_0x4f5a6f,0x5)){_0x2827e5[_0x59fe34(0x84)](debug,_0x59fe34(0xec)+_0x398ab0+_0x59fe34(0xff)+_0x398ab0+'\x20retry\x20runs\x20exceeded');_0x2827e5[_0x59fe34(0x7b)](process[_0x59fe34(0xe1)][_0x59fe34(0xd3)],_0x2827e5['WwcjI'])&&(this[_0x59fe34(0xbb)]['pendingUploads']=Math[_0x59fe34(0x67)](0x0,_0x2827e5[_0x59fe34(0xf1)](this['requestQueueHandler'][_0x59fe34(0xf8)],0x1)));const _0x4b867b={};return _0x4b867b['status']=_0x2827e5['ykQaF'],_0x4b867b[_0x59fe34(0x74)]=_0x2827e5[_0x59fe34(0xd9)],_0x4b867b;}else _0x2827e5[_0x59fe34(0xa0)](process['env'][_0x59fe34(0xe7)],_0x2827e5[_0x59fe34(0x106)])&&_0x2827e5[_0x59fe34(0x6e)](setTimeout,()=>{const _0x4162e0=_0x59fe34;this[_0x4162e0(0xe6)](_0x4bc2a0,_0x2827e5[_0x4162e0(0xea)](_0x4f5a6f,0x1));},0x3e8);}}}module[a86_0x19fc3e(0x85)]=SessionHandler;
|
|
1
|
+
function a86_0x1cb8(){const _0x548ef=['NLVnZ','jwt','eventUrl','getGitMetaData','Test_Skipped_Upload','ALuFn','mIlPL','basename','allow_screenshots','70nCEcTW','headers','cwd','BJFVS','15953094qiyvof','toString','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','X-BSTACK-TESTOPS','1749IXzcrO','OHSAz','rUGhy','POST','requestQueueHandler','BS_TESTOPS_BUILD_HASHED_ID','buildDescription','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','Processing\x20event\x20-\x20\x27','\x20retry\x20runs\x20exceeded','message','231340JKWGkG','lxWoj','KTcQN','Data\x20upload\x20to\x20BrowserStack\x20Test\x20Observability\x20failed\x20due\x20to\x20','waitForBuildStatus','LogCreated','tGtDr','adKnm','bkNIu','../helper','YNwng','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','api/v1/event','TestRunFinished','json','nestedKeyValue','Hook_End_Upload','../logger','dHmxV','BROWSERSTACK_TESTHUB_UUID','data','KQdNi','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','TestRunStarted','Ddjhc','null','resolve','jtLVw','CqKNy','qvAAL','CBT_Upload','xWreE','frameworkName','Retry\x20runs\x20exceeded','password','CREDENTIALS_FOR_CRASH_REPORTING','lhDwI','build_hashed_id','getAccessKey','uploadEventData','false','Hook_Start_Upload','error','includes','AnIyE','4807940kZDisJ','BS_TESTOPS_ALLOW_SCREENSHOTS','Bearer\x20','BROWSERSTACK_TESTHUB_JWT','status','gieXM','LGkHF','Build\x20creation\x20successful!','Test_Start_Upload','env','gimVf','pendingUploads','projectName','ERROR_ACCESS_DENIED','eRpzR','aDgcQ','BROWSERSTACK_BUILD_RUN_IDENTIFIER','uuid','zUUdK','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20missing\x20authentication\x20token','app','event_type','stringify','jAZhb','shbYl','OtWpW','statusText','KzfCQ','getUserName','rxDIW','otcdV','info','start','EXCEPTION\x20IN\x20','getAgentVersion','vqCBK','./utils','VbywR','api/v1/builds','BROWSERSTACK_RERUN','launch','2KMDAKS','BS_TESTOPS_BUILD_COMPLETED','BS_TESTOPS_JWT','path','LhXEe','JcWee','true','ERROR_INVALID_CREDENTIALS','exports','5445561xzyqXA','length','Test_End_Upload','1606902ZgeCMq','VwHso','YOylw','FyUUe','username','eMKoK','response','JSsFu',']\x20event\x20successful!','CNanC','10001208otIxhu','xNniq','HookRunFinished','browserstackAutomation','RrVjq','UpoCG','HookRunStarted','eyOjZ','1336864gOIDRr','Authorization','./constants','jmfwP','max','5SUvYcj','buildIdentifier','bidPu','TestRunSkipped','PZJbg','CBTSessionCreated'];a86_0x1cb8=function(){return _0x548ef;};return a86_0x1cb8();}const a86_0x566e5f=a86_0x563c;(function(_0x2d6553,_0x546e1a){const _0x25e7ce=a86_0x563c,_0x495974=_0x2d6553();while(!![]){try{const _0x3379f9=-parseInt(_0x25e7ce(0xbb))/0x1+-parseInt(_0x25e7ce(0xaf))/0x2*(-parseInt(_0x25e7ce(0xb8))/0x3)+parseInt(_0x25e7ce(0x121))/0x4*(-parseInt(_0x25e7ce(0xd2))/0x5)+-parseInt(_0x25e7ce(0xc5))/0x6+-parseInt(_0x25e7ce(0xe1))/0x7*(-parseInt(_0x25e7ce(0xcd))/0x8)+-parseInt(_0x25e7ce(0xe5))/0x9+parseInt(_0x25e7ce(0xf4))/0xa*(parseInt(_0x25e7ce(0xe9))/0xb);if(_0x3379f9===_0x546e1a)break;else _0x495974['push'](_0x495974['shift']());}catch(_0x1bd60b){_0x495974['push'](_0x495974['shift']());}}}(a86_0x1cb8,0xdfb1c));const bsSetupHelper=require(a86_0x566e5f(0xfd)),path=require(a86_0x566e5f(0xb2)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,sleep,isTestObservabilitySession,trace}=require(a86_0x566e5f(0x145)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a86_0x566e5f(0xcf)),RequestQueueHandler=require('./requestQueueHandler'),logger=require(a86_0x566e5f(0x105))['winstonLogger'],{shouldProcessEventForTesthub,isPercyBuild,getProductMap}=require('../../helpers/testhub/utils');function a86_0x563c(_0x1d1078,_0x32a57d){const _0x1cb8c8=a86_0x1cb8();return a86_0x563c=function(_0x563c1c,_0x34e73f){_0x563c1c=_0x563c1c-0xaf;let _0x42fc54=_0x1cb8c8[_0x563c1c];return _0x42fc54;},a86_0x563c(_0x1d1078,_0x32a57d);}class SessionHandler{static [a86_0x566e5f(0xed)]=RequestQueueHandler['getInstance']();static async[a86_0x566e5f(0x149)](_0x4d1602,_0x1d2bf1){const _0x533c5d=a86_0x566e5f,_0x2094bc={'qgZxY':function(_0x40110b,_0x1a5ac9){return _0x40110b||_0x1a5ac9;},'NLVnZ':function(_0x2b6c52,_0x3f9cca){return _0x2b6c52||_0x3f9cca;},'KTcQN':function(_0x5b17b7,_0x4c9319){return _0x5b17b7===_0x4c9319;},'xWreE':function(_0x3ba643,_0x3172d4){return _0x3ba643(_0x3172d4);},'bidPu':'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','VwHso':'false','LhXEe':_0x533c5d(0x102),'adKnm':function(_0x3cafd4,_0x308e6a){return _0x3cafd4(_0x308e6a);},'NIlDv':function(_0x1d728c,_0x4b7b4d,_0x54cd30,_0x9c6a5a,_0x164d41){return _0x1d728c(_0x4b7b4d,_0x54cd30,_0x9c6a5a,_0x164d41);},'JSsFu':'POST','Ddjhc':_0x533c5d(0x147),'JcWee':function(_0x45e3d7,_0x1e6ed6){return _0x45e3d7(_0x1e6ed6);},'OtWpW':_0x533c5d(0x128),'RrVjq':function(_0x4d82f1){return _0x4d82f1();},'lhDwI':'true','rxDIW':'null','VbywR':_0x533c5d(0xb6),'BJFVS':_0x533c5d(0x12e),'YmgOW':'ERROR_SDK_DEPRECATED'},_0x2b5069=bsSetupHelper[_0x533c5d(0x13d)](_0x4d1602),_0x647cc6=bsSetupHelper[_0x533c5d(0x11a)](_0x4d1602),_0x2b903c=_0x2094bc['qgZxY'](_0x2b5069,'')+':'+_0x2094bc[_0x533c5d(0xd8)](_0x647cc6,'');if(_0x2094bc[_0x533c5d(0xf6)](_0x2b903c,':'))return _0x2094bc[_0x533c5d(0x113)](debug,_0x2094bc[_0x533c5d(0xd4)]),process[_0x533c5d(0x12a)][_0x533c5d(0xb0)]=_0x2094bc[_0x533c5d(0xbc)],[null,null];let _0xf8700c=![],_0x5a6b05=![];if(_0x4d1602[_0x533c5d(0xc8)]&&_0x4d1602[_0x533c5d(0x135)])_0x5a6b05=!![];else _0x4d1602[_0x533c5d(0xc8)]&&(_0xf8700c=!![]);try{const _0x391865={'format':_0x2094bc[_0x533c5d(0xb3)],'project_name':_0x4d1602[_0x533c5d(0x12d)]||'','name':_0x4d1602['buildName']||path[_0x533c5d(0xdf)](path[_0x533c5d(0x10e)](process[_0x533c5d(0xe3)]())),'build_identifier':_0x4d1602[_0x533c5d(0xd3)],'description':_0x4d1602[_0x533c5d(0xef)]||'','start_time':new Date()['toISOString'](),'tags':_0x2094bc[_0x533c5d(0x113)](getCustomTags,_0x4d1602),'host_info':bsSetupHelper['getHostInfo'](),'ci_info':bsSetupHelper['getCiInfo'](),'build_run_identifier':process['env'][_0x533c5d(0x131)],'failed_tests_rerun':process[_0x533c5d(0x12a)][_0x533c5d(0x148)]||![],'version_control':await bsSetupHelper[_0x533c5d(0xdb)](),'observability_version':{'frameworkName':_0x1d2bf1[_0x533c5d(0x114)],'frameworkVersion':_0x1d2bf1['frameworkVersion'],'sdkVersion':bsSetupHelper[_0x533c5d(0x143)]()},'product_map':_0x2094bc[_0x533c5d(0xfb)](getProductMap,_0x4d1602)},_0x168e77={};_0x168e77[_0x533c5d(0xbf)]=_0x2b5069,_0x168e77[_0x533c5d(0x116)]=_0x647cc6;const _0x57f819={'auth':_0x168e77,'headers':_0x2094bc[_0x533c5d(0xfb)](getDefaultHeaders,![])},_0x216d6a=await _0x2094bc['NIlDv'](nodeRequest,_0x2094bc[_0x533c5d(0xc2)],_0x2094bc[_0x533c5d(0x10c)],_0x391865,_0x57f819);_0x2094bc[_0x533c5d(0xb4)](debug,_0x2094bc[_0x533c5d(0x13a)]);const _0x1b1c40=_0x216d6a['data'];_0x1b1c40['build_hashed_id']&&(process[_0x533c5d(0x12a)][_0x533c5d(0x107)]=_0x1b1c40['build_hashed_id']);if(_0x2094bc[_0x533c5d(0xc9)](isTestObservabilitySession)){process[_0x533c5d(0x12a)][_0x533c5d(0xb0)]=_0x2094bc[_0x533c5d(0x118)];if(_0x1b1c40[_0x533c5d(0xd9)]){process[_0x533c5d(0x12a)][_0x533c5d(0xb1)]=_0x1b1c40[_0x533c5d(0xd9)];const _0x361a0a={};_0x361a0a[_0x533c5d(0xbf)]=_0x2b5069,_0x361a0a[_0x533c5d(0x116)]=_0x647cc6,process['env'][_0x533c5d(0x117)]=JSON[_0x533c5d(0x137)](_0x361a0a);}_0x1b1c40[_0x533c5d(0x119)]&&(process[_0x533c5d(0x12a)][_0x533c5d(0xee)]=_0x1b1c40['build_hashed_id']),_0x1b1c40['allow_screenshots']&&(process[_0x533c5d(0x12a)][_0x533c5d(0x122)]=_0x1b1c40['allow_screenshots'][_0x533c5d(0xe6)]());}return[_0x216d6a[_0x533c5d(0x108)][_0x533c5d(0xd9)],_0x216d6a[_0x533c5d(0x108)][_0x533c5d(0x119)],_0x216d6a[_0x533c5d(0x108)][_0x533c5d(0xe0)]];}catch(_0x4d30f8){process[_0x533c5d(0x12a)][_0x533c5d(0x107)]=_0x2094bc['rxDIW'],process[_0x533c5d(0x12a)][_0x533c5d(0xb0)]=_0x2094bc['VwHso'],process[_0x533c5d(0x12a)][_0x533c5d(0xb1)]=_0x2094bc[_0x533c5d(0x13e)],process[_0x533c5d(0x12a)][_0x533c5d(0xee)]=_0x2094bc[_0x533c5d(0x13e)],process['env']['BS_TESTOPS_ALLOW_SCREENSHOTS']=_0x2094bc['rxDIW'];_0x4d30f8[_0x533c5d(0xc1)]?_0x2094bc[_0x533c5d(0x113)](debug,_0x533c5d(0x10a)+_0x4d30f8[_0x533c5d(0xc1)][_0x533c5d(0x125)]+'\x20'+_0x4d30f8['response'][_0x533c5d(0x13b)]+'\x20'+JSON[_0x533c5d(0x137)](_0x4d30f8['response']['data'])):_0x2094bc[_0x533c5d(0xb4)](debug,_0x533c5d(0x10a)+(_0x4d30f8['message']||_0x4d30f8));if(_0x4d30f8&&_0x4d30f8[_0x533c5d(0xf3)]){const _0x37923d=_0x4d30f8[_0x533c5d(0xf3)];switch(_0x4d30f8['errorType']){case _0x2094bc[_0x533c5d(0x146)]:logger[_0x533c5d(0x11e)](_0x37923d);break;case _0x2094bc[_0x533c5d(0xe4)]:logger[_0x533c5d(0x140)](_0x37923d);break;case _0x2094bc['YmgOW']:logger['error'](_0x37923d);break;default:logger[_0x533c5d(0x11e)](_0x37923d);}}else console[_0x533c5d(0x140)](_0x533c5d(0xf7)+_0x4d30f8);return[null,null,null];}}static async[a86_0x566e5f(0xf8)](){const _0x2237af=a86_0x566e5f,_0x1d4ff8={'aDgcQ':_0x2237af(0xb5),'zUUdK':_0x2237af(0x11c),'CNanC':function(_0x117d32,_0x31f5cf){return _0x117d32(_0x31f5cf);}},_0x596756=process[_0x2237af(0x12a)][_0x2237af(0xb0)];if([_0x1d4ff8[_0x2237af(0x130)],_0x1d4ff8[_0x2237af(0x133)]][_0x2237af(0x11f)](_0x596756))return;while([_0x1d4ff8[_0x2237af(0x130)],_0x1d4ff8['zUUdK']][_0x2237af(0x11f)](_0x596756)){await _0x1d4ff8[_0x2237af(0xc4)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static async[a86_0x566e5f(0x11b)](_0xe8101c,_0x4fb6d5=0x0){const _0x56c7ea=a86_0x566e5f,_0x1b425f={'PZJbg':function(_0x6c996c,_0x54c141){return _0x6c996c+_0x54c141;},'kZuhy':_0x56c7ea(0x129),'xNsME':_0x56c7ea(0xba),'bkNIu':_0x56c7ea(0xdc),'jsFJn':'Log_Upload','eyOjZ':_0x56c7ea(0x11d),'oGBgn':_0x56c7ea(0x104),'mIlPL':_0x56c7ea(0x112),'FyUUe':function(_0x3370d1,_0x523ddc){return _0x3370d1(_0x523ddc);},'pIvRf':'test_run','KQdNi':_0x56c7ea(0x132),'tGtDr':'hook_run','ujWZJ':function(_0x172b5a,_0x2cfa1f,_0x68320d){return _0x172b5a(_0x2cfa1f,_0x68320d);},'DEfqO':_0x56c7ea(0x11b),'AnIyE':function(_0x2a0b9d,_0x16a1a5){return _0x2a0b9d===_0x16a1a5;},'jAZhb':function(_0x2b5e85,_0x33de0e){return _0x2b5e85!==_0x33de0e;},'CqKNy':_0x56c7ea(0x10d),'LGkHF':function(_0x2a5637,_0x2da97a){return _0x2a5637===_0x2da97a;},'qvAAL':_0x56c7ea(0xb5),'MFfww':function(_0x5efd87){return _0x5efd87();},'PowGK':function(_0xd3b6eb,_0x5038c3){return _0xd3b6eb-_0x5038c3;},'gCZWy':_0x56c7ea(0x11e),'eRpzR':_0x56c7ea(0xff),'vqCBK':'application/json','KzfCQ':function(_0x31d2d5,_0x53599b,_0x363bf5,_0x3bdad1,_0xdb9963){return _0x31d2d5(_0x53599b,_0x363bf5,_0x3bdad1,_0xdb9963);},'YOylw':_0x56c7ea(0xec),'luzIS':function(_0x20b85b,_0x11e696){return _0x20b85b(_0x11e696);},'jtLVw':function(_0x532fe4,_0x4d39de){return _0x532fe4!==_0x4d39de;},'lxWoj':'Batch-Queue','otcdV':function(_0x56b95f,_0x114051){return _0x56b95f-_0x114051;},'gieXM':_0x56c7ea(0x100),'ALuFn':'success','gimVf':function(_0xca5294,_0x2f7212){return _0xca5294(_0x2f7212);},'OHSAz':function(_0x35f97d,_0x27208e){return _0x35f97d!==_0x27208e;},'rUGhy':function(_0x5a362e,_0x118b5f){return _0x5a362e===_0x118b5f;},'eMKoK':function(_0x36eec2,_0xe47b){return _0x36eec2>=_0xe47b;},'jmfwP':function(_0x4840e1,_0x737166){return _0x4840e1(_0x737166);},'UpoCG':function(_0xac70a8,_0x5c3d79){return _0xac70a8!==_0x5c3d79;},'YNwng':function(_0x42a975,_0x20b1ab){return _0x42a975-_0x20b1ab;},'shbYl':_0x56c7ea(0x115),'xNniq':_0x56c7ea(0x11c),'dHmxV':function(_0x1feb3b,_0x59b480,_0x29b294){return _0x1feb3b(_0x59b480,_0x29b294);}},_0x586777={};_0x586777[_0x56c7ea(0x10b)]=_0x1b425f['kZuhy'],_0x586777[_0x56c7ea(0x101)]=_0x1b425f['xNsME'],_0x586777[_0x56c7ea(0xd5)]=_0x1b425f[_0x56c7ea(0xfc)],_0x586777[_0x56c7ea(0xf9)]=_0x1b425f['jsFJn'],_0x586777[_0x56c7ea(0xcb)]=_0x1b425f[_0x56c7ea(0xcc)],_0x586777[_0x56c7ea(0xc7)]=_0x1b425f['oGBgn'],_0x586777[_0x56c7ea(0xd7)]=_0x1b425f[_0x56c7ea(0xde)];const _0x53e6dc=_0x586777[_0xe8101c[_0x56c7ea(0x136)]];_0x1b425f[_0x56c7ea(0xbe)](trace,_0x56c7ea(0xf1)+_0xe8101c[_0x56c7ea(0x136)]+'\x27\x20'+(bsSetupHelper[_0x56c7ea(0x103)](_0xe8101c,[_0x1b425f['pIvRf'],_0x1b425f[_0x56c7ea(0x109)]])||bsSetupHelper[_0x56c7ea(0x103)](_0xe8101c,[_0x1b425f[_0x56c7ea(0xfa)],_0x1b425f[_0x56c7ea(0x109)]])));if(!_0x1b425f['ujWZJ'](shouldProcessEventForTesthub,_0xe8101c[_0x56c7ea(0x136)],_0x1b425f['DEfqO']))return;_0x1b425f[_0x56c7ea(0x120)](_0x4fb6d5,0x0)&&process[_0x56c7ea(0x12a)]['BROWSERSTACK_TESTHUB_JWT']&&_0x1b425f[_0x56c7ea(0x138)](process['env']['BROWSERSTACK_TESTHUB_JWT'],_0x1b425f[_0x56c7ea(0x110)])&&(this[_0x56c7ea(0xed)]['pendingUploads']+=0x1);if(_0x1b425f[_0x56c7ea(0x127)](process[_0x56c7ea(0x12a)][_0x56c7ea(0xb0)],_0x1b425f[_0x56c7ea(0x111)])||process[_0x56c7ea(0x12a)]['BS_A11Y_JWT']||_0x1b425f['MFfww'](isPercyBuild)){if(_0x1b425f[_0x56c7ea(0x127)](process['env'][_0x56c7ea(0x124)],_0x1b425f[_0x56c7ea(0x110)])){_0x1b425f[_0x56c7ea(0xbe)](debug,'EXCEPTION\x20IN\x20'+_0x53e6dc+_0x56c7ea(0x134)),this[_0x56c7ea(0xed)]['pendingUploads']=Math[_0x56c7ea(0xd1)](0x0,_0x1b425f['PowGK'](this[_0x56c7ea(0xed)]['pendingUploads'],0x1));const _0x1d6be5={};return _0x1d6be5[_0x56c7ea(0x125)]=_0x1b425f['gCZWy'],_0x1d6be5[_0x56c7ea(0xf3)]=_0x1b425f[_0x56c7ea(0x12f)],_0x1d6be5;}let _0x59440e=_0xe8101c,_0x277731=EVENT_ENDPOINT;this[_0x56c7ea(0xed)][_0x56c7ea(0x141)]();const {shouldProceed:_0x6650d,proceedWithData:_0x4629ea,proceedWithUrl:_0xc156ab}=this['requestQueueHandler']['add'](_0xe8101c);if(!_0x6650d)return;else _0x4629ea&&(_0x59440e=_0x4629ea,_0x277731=_0xc156ab);const _0x52ca0={};_0x52ca0[_0x56c7ea(0xce)]=_0x56c7ea(0x123)+process['env']['BROWSERSTACK_TESTHUB_JWT'],_0x52ca0['Content-Type']=_0x1b425f[_0x56c7ea(0x144)],_0x52ca0[_0x56c7ea(0xe8)]=_0x1b425f[_0x56c7ea(0x111)];const _0x25215b={};_0x25215b[_0x56c7ea(0xe2)]=_0x52ca0;const _0x3110e0=_0x25215b;try{const _0x589308=await _0x1b425f[_0x56c7ea(0x13c)](nodeRequest,_0x1b425f[_0x56c7ea(0xbd)],_0x277731,_0x59440e,_0x3110e0);if(_0x589308[_0x56c7ea(0x108)]['error']){const _0x19b725={};_0x19b725[_0x56c7ea(0xf3)]=_0x589308[_0x56c7ea(0x108)][_0x56c7ea(0x11e)];throw _0x19b725;}else{_0x1b425f['luzIS'](debug,(_0x1b425f[_0x56c7ea(0x10f)](_0x277731,this[_0x56c7ea(0xed)][_0x56c7ea(0xda)])?_0x53e6dc:_0x1b425f['lxWoj'])+'['+_0x4fb6d5+_0x56c7ea(0xc3)),this[_0x56c7ea(0xed)]['pendingUploads']=Math[_0x56c7ea(0xd1)](0x0,_0x1b425f[_0x56c7ea(0x13f)](this[_0x56c7ea(0xed)][_0x56c7ea(0x12c)],_0x1b425f['AnIyE'](_0x277731,_0x1b425f['gieXM'])?0x1:_0x59440e[_0x56c7ea(0xb9)]));const _0x4e2bc6={};return _0x4e2bc6[_0x56c7ea(0x125)]=_0x1b425f[_0x56c7ea(0xdd)],_0x4e2bc6[_0x56c7ea(0xf3)]='',_0x4e2bc6;}}catch(_0x2a3842){_0x2a3842[_0x56c7ea(0xc1)]?_0x1b425f[_0x56c7ea(0x12b)](debug,'EXCEPTION\x20IN\x20'+(_0x1b425f[_0x56c7ea(0x10f)](_0x277731,this[_0x56c7ea(0xed)]['eventUrl'])?_0x53e6dc:_0x1b425f[_0x56c7ea(0xf5)])+_0x56c7ea(0xf0)+_0x2a3842['response'][_0x56c7ea(0x125)]+'\x20'+_0x2a3842['response'][_0x56c7ea(0x13b)]+'\x20'+JSON[_0x56c7ea(0x137)](_0x2a3842['response'][_0x56c7ea(0x108)])):_0x1b425f[_0x56c7ea(0xbe)](debug,_0x56c7ea(0x142)+(_0x1b425f[_0x56c7ea(0xea)](_0x277731,this[_0x56c7ea(0xed)][_0x56c7ea(0xda)])?_0x53e6dc:_0x1b425f['lxWoj'])+_0x56c7ea(0xf0)+(_0x2a3842[_0x56c7ea(0xf3)]||_0x2a3842));this[_0x56c7ea(0xed)][_0x56c7ea(0x12c)]=Math[_0x56c7ea(0xd1)](0x0,_0x1b425f['otcdV'](this[_0x56c7ea(0xed)][_0x56c7ea(0x12c)],_0x1b425f[_0x56c7ea(0xeb)](_0x277731,_0x1b425f[_0x56c7ea(0x126)])?0x1:_0x59440e[_0x56c7ea(0xb9)]));const _0x5213c3={};return _0x5213c3[_0x56c7ea(0x125)]=_0x1b425f['gCZWy'],_0x5213c3[_0x56c7ea(0xf3)]=_0x2a3842[_0x56c7ea(0xf3)]||(_0x2a3842['response']?_0x2a3842[_0x56c7ea(0xc1)]['status']+':'+_0x2a3842[_0x56c7ea(0xc1)][_0x56c7ea(0x13b)]:_0x2a3842),_0x5213c3;}}else{if(_0x1b425f[_0x56c7ea(0xc0)](_0x4fb6d5,0x5)){_0x1b425f[_0x56c7ea(0xd0)](debug,_0x56c7ea(0x142)+_0x53e6dc+_0x56c7ea(0xe7)+_0x53e6dc+_0x56c7ea(0xf2));_0x1b425f[_0x56c7ea(0xca)](process[_0x56c7ea(0x12a)]['BROWSERSTACK_TESTHUB_JWT'],_0x1b425f[_0x56c7ea(0x110)])&&(this[_0x56c7ea(0xed)][_0x56c7ea(0x12c)]=Math[_0x56c7ea(0xd1)](0x0,_0x1b425f[_0x56c7ea(0xfe)](this[_0x56c7ea(0xed)]['pendingUploads'],0x1)));const _0x4b3826={};return _0x4b3826[_0x56c7ea(0x125)]=_0x1b425f['gCZWy'],_0x4b3826[_0x56c7ea(0xf3)]=_0x1b425f[_0x56c7ea(0x139)],_0x4b3826;}else _0x1b425f[_0x56c7ea(0xea)](process[_0x56c7ea(0x12a)][_0x56c7ea(0xb0)],_0x1b425f[_0x56c7ea(0xc6)])&&_0x1b425f[_0x56c7ea(0x106)](setTimeout,()=>{const _0x4a95d2=_0x56c7ea;this[_0x4a95d2(0x11b)](_0xe8101c,_0x1b425f[_0x4a95d2(0xd6)](_0x4fb6d5,0x1));},0x3e8);}}}module[a86_0x566e5f(0xb7)]=SessionHandler;
|