browserstack-node-sdk 1.34.40 → 1.34.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +2 -2
- 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_0x46207b=a79_0x8da2;(function(_0x2542f2,_0x100c91){const _0x23a926=a79_0x8da2,_0x2d30d3=_0x2542f2();while(!![]){try{const _0x27842d=-parseInt(_0x23a926(0x1b7))/0x1+parseInt(_0x23a926(0x228))/0x2*(parseInt(_0x23a926(0x1b1))/0x3)+parseInt(_0x23a926(0x225))/0x4*(parseInt(_0x23a926(0x1e5))/0x5)+-parseInt(_0x23a926(0x202))/0x6*(parseInt(_0x23a926(0x22b))/0x7)+-parseInt(_0x23a926(0x237))/0x8*(-parseInt(_0x23a926(0x1a0))/0x9)+parseInt(_0x23a926(0x22f))/0xa*(parseInt(_0x23a926(0x1d0))/0xb)+-parseInt(_0x23a926(0x1e6))/0xc*(parseInt(_0x23a926(0x235))/0xd);if(_0x27842d===_0x100c91)break;else _0x2d30d3['push'](_0x2d30d3['shift']());}catch(_0x303748){_0x2d30d3['push'](_0x2d30d3['shift']());}}}(a79_0x460a,0x9582e));const fs=require('fs'),fsPromise=require(a79_0x46207b(0x20b)),{performance,PerformanceObserver}=require(a79_0x46207b(0x1c8)),path=require(a79_0x46207b(0x1da)),util=require(a79_0x46207b(0x1e3)),logger=require('../logger')[a79_0x46207b(0x1f8)],{getProcessId,sleep,debug,getTestName}=require(a79_0x46207b(0x1f6));class PerformanceTester{static [a79_0x46207b(0x1cf)];static [a79_0x46207b(0x19d)]=[];static [a79_0x46207b(0x23d)]=[];static [a79_0x46207b(0x208)]=[];static [a79_0x46207b(0x209)]=![];static ['jsonReportDirName']=a79_0x46207b(0x1b4);static ['jsonReportDirPath']=process[a79_0x46207b(0x1d7)][a79_0x46207b(0x1e1)]?path['join'](process[a79_0x46207b(0x1d7)][a79_0x46207b(0x1e1)],this['jsonReportDirName']):path[a79_0x46207b(0x1ec)](process[a79_0x46207b(0x1c4)](),'log',this['jsonReportDirName']);static [a79_0x46207b(0x1bb)]=process[a79_0x46207b(0x1d7)][a79_0x46207b(0x1e1)]?path[a79_0x46207b(0x1ec)](process[a79_0x46207b(0x1d7)][a79_0x46207b(0x1e1)],a79_0x46207b(0x222)):path['join'](process[a79_0x46207b(0x1c4)](),'error-report');static [a79_0x46207b(0x1eb)]=this[a79_0x46207b(0x200)]+a79_0x46207b(0x1c0)+getProcessId()+'.json';static [a79_0x46207b(0x19e)]=this['errorReportDirName']+a79_0x46207b(0x19b)+getProcessId()+a79_0x46207b(0x1ee);static [a79_0x46207b(0x1ed)]={};static [a79_0x46207b(0x1ba)]={};static[a79_0x46207b(0x1a9)](_0x58e4aa=this[a79_0x46207b(0x200)]+a79_0x46207b(0x1c0)+getProcessId()+a79_0x46207b(0x1ee),_0x433940=this[a79_0x46207b(0x1bb)]+a79_0x46207b(0x19b)+getProcessId()+'.json'){const _0x483b4e=a79_0x46207b,_0x2343a5={};_0x2343a5[_0x483b4e(0x1f9)]=function(_0x2ab0a5,_0x1a3352){return _0x2ab0a5===_0x1a3352;},_0x2343a5['lJAzi']='measure',_0x2343a5[_0x483b4e(0x1a4)]=function(_0x57eaf2,_0x1c5027){return _0x57eaf2+_0x1c5027;},_0x2343a5[_0x483b4e(0x1c2)]=_0x483b4e(0x1b6),_0x2343a5[_0x483b4e(0x211)]=_0x483b4e(0x203);const _0x16a4f3=_0x2343a5;try{!fs[_0x483b4e(0x1fb)](this[_0x483b4e(0x200)])&&fs['mkdirSync'](this[_0x483b4e(0x200)]);}catch(_0x5c188f){logger['debug'](_0x16a4f3[_0x483b4e(0x1a4)](_0x16a4f3[_0x483b4e(0x1c2)],_0x5c188f));}if(this[_0x483b4e(0x209)]||!this[_0x483b4e(0x23b)]())return;this[_0x483b4e(0x1cf)]=new PerformanceObserver(_0x503a36=>{const _0xa94281=_0x483b4e,_0x12ed77={'EsLsg':function(_0x536ee2,_0x1bc2b7){const _0x4c41b0=a79_0x8da2;return _0x16a4f3[_0x4c41b0(0x1f9)](_0x536ee2,_0x1bc2b7);},'drkYW':_0x16a4f3[_0xa94281(0x23e)]};_0x503a36[_0xa94281(0x20e)]()[_0xa94281(0x1b5)](_0x430286=>{const _0xc11894=_0xa94281;if(_0x12ed77['EsLsg'](_0x430286[_0xc11894(0x21e)],_0x12ed77['drkYW'])){let _0x45d7b1={};if(_0x430286[_0xc11894(0x1a7)])_0x45d7b1=_0x430286[_0xc11894(0x1a7)]();else for(const _0xf99288 in _0x430286){_0x45d7b1[_0xf99288]=_0x430286[_0xf99288];}this[_0xc11894(0x1ed)][_0x430286[_0xc11894(0x21f)]]&&(_0x45d7b1=Object[_0xc11894(0x1dc)](_0x45d7b1,this[_0xc11894(0x1ed)][_0x430286[_0xc11894(0x21f)]])),delete this[_0xc11894(0x1ed)][_0x430286[_0xc11894(0x21f)]],this['_measureEvents'][_0xc11894(0x241)](_0x45d7b1);}else this[_0xc11894(0x19d)][_0xc11894(0x241)](_0x430286);});});const _0x3ffc76={};_0x3ffc76[_0x483b4e(0x1be)]=!![],_0x3ffc76[_0x483b4e(0x1a3)]=[_0x16a4f3['JDZYk'],_0x16a4f3['lJAzi']],this['_observer'][_0x483b4e(0x227)](_0x3ffc76),this[_0x483b4e(0x209)]=!![],this[_0x483b4e(0x1eb)]=_0x58e4aa,this[_0x483b4e(0x19e)]=_0x433940;}static[a79_0x46207b(0x1b2)](){return performance;}static[a79_0x46207b(0x1c6)](_0x4d86e1,_0x5afd23){const _0x4e17ac=a79_0x46207b,_0x20a609={};_0x20a609['RUOng']=function(_0x29140d,_0x25121f){return _0x29140d+_0x25121f;},_0x20a609['eJGkn']=function(_0x2b1a6a,_0x32c943){return _0x2b1a6a||_0x32c943;},_0x20a609[_0x4e17ac(0x1ce)]=function(_0x2461f0,_0x41b6eb){return _0x2461f0===_0x41b6eb;};const _0x42891a=_0x20a609,_0x27a6ac={};if(!_0x4d86e1||_0x42891a[_0x4e17ac(0x1ce)](_0x4d86e1[_0x4e17ac(0x1af)],0x0))return;_0x4d86e1[_0x4e17ac(0x1ea)](_0x1a0f3d=>{const _0x33ac0e=_0x4e17ac;!_0x27a6ac[_0x1a0f3d[_0x33ac0e(0x21f)]]&&(_0x27a6ac[_0x1a0f3d[_0x33ac0e(0x21f)]]=0x0),_0x27a6ac[_0x1a0f3d['name']]+=_0x1a0f3d['duration'];});const _0x4df670=_0x5afd23[_0x4e17ac(0x1cd)]((_0x1c2689,_0x17e125)=>{const _0x1af28e=_0x4e17ac;return _0x42891a[_0x1af28e(0x215)](_0x27a6ac[_0x17e125],_0x42891a[_0x1af28e(0x1d8)](_0x1c2689,0x0));},0x0);return _0x4df670;}static async[a79_0x46207b(0x1ef)](_0x356ca5,_0xbdb48a){const _0x198d91=a79_0x46207b,_0xaa9ec1={'KUPgi':function(_0x10baf4,_0x2fc21b){return _0x10baf4+_0x2fc21b;},'BBuJb':function(_0x149d30,_0x889ba2){return _0x149d30||_0x889ba2;},'VZjJr':function(_0x341c14,_0x2dbdd6){return _0x341c14===_0x2dbdd6;},'LBVoc':function(_0xe4bfe7,_0xc41fd5){return _0xe4bfe7(_0xc41fd5);},'TecnS':function(_0x20c19c,_0xd7118d){return _0x20c19c(_0xd7118d);}};if(!_0x356ca5||_0xaa9ec1['VZjJr'](_0x356ca5[_0x198d91(0x1af)],0x0))return 0x0;const _0x2320b3=[];for(const _0x4a8ca0 of _0x356ca5){const _0x4e669e=path[_0x198d91(0x1ec)]('.',_0x4a8ca0);try{const _0x46d4af=this[_0x198d91(0x1e2)](_0x4e669e);_0x46d4af[_0x198d91(0x1ea)](_0x2837f4=>{const _0x214bd0=_0x198d91;!_0x2320b3[_0x2837f4[_0x214bd0(0x21f)]]&&(_0x2320b3[_0x2837f4[_0x214bd0(0x21f)]]=0x0),_0x2320b3[_0x2837f4[_0x214bd0(0x21f)]]+=_0x2837f4['duration'];});}catch(_0x2f149e){_0xaa9ec1[_0x198d91(0x20c)](debug,'Error\x20in\x20doing\x20csv\x20operations:\x20'+_0x2f149e[_0x198d91(0x204)]());}}const _0x368b57=_0xbdb48a[_0x198d91(0x1cd)]((_0x2c31a4,_0x1de6b2)=>{const _0x35de59=_0x198d91;return _0xaa9ec1[_0x35de59(0x1f1)](_0x2320b3[_0x1de6b2],_0xaa9ec1[_0x35de59(0x224)](_0x2c31a4,0x0));},0x0);return _0xaa9ec1['TecnS'](debug,_0x198d91(0x1d9)+_0xbdb48a+'\x20for\x20all\x20processes\x20is\x20'+_0x368b57),_0x368b57;}static[a79_0x46207b(0x1e2)](_0x609093){const _0x207dce=a79_0x46207b;if(!fs[_0x207dce(0x1fb)](_0x609093))return[];return JSON[_0x207dce(0x1c7)](fs[_0x207dce(0x223)](_0x609093)[_0x207dce(0x204)]());}static async[a79_0x46207b(0x1d3)](_0x2cb211=a79_0x46207b(0x1dd),_0x24ddcd=null){const _0x3b89eb=a79_0x46207b,_0xeba1ac={'gdRvb':function(_0xe6d36a,_0xe81975){return _0xe6d36a(_0xe81975);}};if(!this[_0x3b89eb(0x209)])return;await _0xeba1ac[_0x3b89eb(0x19f)](sleep,0x1e),this['_observer'][_0x3b89eb(0x1fe)](),this[_0x3b89eb(0x209)]=![],this[_0x3b89eb(0x21b)](this[_0x3b89eb(0x19d)]);const _0x57e7cb=this[_0x3b89eb(0x23c)](this[_0x3b89eb(0x19d)]),_0x1b2e17=path[_0x3b89eb(0x1ec)](process[_0x3b89eb(0x1c4)](),_0x2cb211);fs['writeFile'](_0x1b2e17,_0x57e7cb,_0x3ef6b1=>{const _0x2204ba=_0x3b89eb;if(_0x3ef6b1){_0xeba1ac['gdRvb'](debug,_0x2204ba(0x1a5)+_0x3ef6b1['toString']());return;}_0xeba1ac['gdRvb'](debug,_0x2204ba(0x213)+_0x1b2e17);});if(_0x24ddcd)return this[_0x3b89eb(0x1c6)](this[_0x3b89eb(0x19d)],_0x24ddcd);}static[a79_0x46207b(0x23c)](_0xe051e8){const _0x2af24e=a79_0x46207b,_0x40f90d={};_0x40f90d[_0x2af24e(0x1b9)]=_0x2af24e(0x1e4),_0x40f90d[_0x2af24e(0x21a)]='<h1>Performance\x20Report</h1>',_0x40f90d[_0x2af24e(0x242)]=_0x2af24e(0x1b8),_0x40f90d[_0x2af24e(0x243)]=_0x2af24e(0x1fd);const _0x3497c4=_0x40f90d;let _0x34eba1=_0x3497c4[_0x2af24e(0x1b9)];return _0x34eba1+=_0x3497c4['KuOuO'],_0x34eba1+=_0x3497c4['mPwNH'],_0xe051e8[_0x2af24e(0x1b5)](_0x11b6ed=>{const _0x48d49e=_0x2af24e;_0x34eba1+=_0x48d49e(0x240)+_0x11b6ed[_0x48d49e(0x21f)]+_0x48d49e(0x230)+_0x11b6ed[_0x48d49e(0x22d)]+_0x48d49e(0x217);}),_0x34eba1+=_0x3497c4[_0x2af24e(0x243)],_0x34eba1;}static[a79_0x46207b(0x21b)](_0x2dd94b){const _0x50170f=a79_0x46207b;if(!this['jsonReportFileName'])return;const _0x32ec84={};_0x2dd94b[_0x50170f(0x1ea)](_0x5cb73e=>{const _0x31184a=_0x50170f;!_0x32ec84[_0x5cb73e[_0x31184a(0x21f)]]&&(_0x32ec84[_0x5cb73e['name']]=0x0),_0x32ec84[_0x5cb73e[_0x31184a(0x21f)]]+=_0x5cb73e[_0x31184a(0x22d)];});const _0x1e6653=Object[_0x50170f(0x1f0)](_0x32ec84)['map'](([_0x371193,_0x7ee44f])=>{const _0x38b49b=_0x50170f,_0x4c1aab={};return _0x4c1aab['name']=_0x371193,_0x4c1aab[_0x38b49b(0x22d)]=_0x7ee44f,_0x4c1aab;});fs[_0x50170f(0x23f)](this[_0x50170f(0x1eb)],JSON[_0x50170f(0x1cc)](_0x1e6653));}static['isEnabled'](){const _0x675142=a79_0x46207b,_0x5dca84={};_0x5dca84[_0x675142(0x1d2)]=function(_0x1def37,_0x57fb9c){return _0x1def37===_0x57fb9c;},_0x5dca84[_0x675142(0x221)]=_0x675142(0x218);const _0x3c601a=_0x5dca84;return!_0x3c601a[_0x675142(0x1d2)](process[_0x675142(0x1d7)][_0x675142(0x1ca)],_0x3c601a[_0x675142(0x221)]);}static[a79_0x46207b(0x1c1)](_0x34c427,_0x37715d,_0x1d127b=null,_0x233104={},_0x4efcaf=null){const _0x4c157d=a79_0x46207b,_0x5e3b33={'DhLwI':function(_0x2690ac,_0x1a60ef){return _0x2690ac(_0x1a60ef);},'PGCvP':function(_0x240077,_0x44ba36){return _0x240077 instanceof _0x44ba36;}};try{if(this[_0x4c157d(0x209)]&&this[_0x4c157d(0x23b)]()){let _0x58e00f=_0x34c427;_0x1d127b&&(_0x58e00f=_0x34c427+'['+JSON[_0x4c157d(0x1cc)](_0x1d127b)+']');PerformanceTester['start'](_0x58e00f),this[_0x4c157d(0x1ed)]&&(this[_0x4c157d(0x1ed)][_0x58e00f]=_0x233104);try{const _0x3c5916=_0x37715d[_0x4c157d(0x1df)](null,_0x4efcaf);if(_0x5e3b33[_0x4c157d(0x1aa)](_0x3c5916,Promise))return new Promise((_0xf2ad8b,_0xfedce)=>{const _0x483c45=_0x4c157d,_0x5a763c={'XguCk':function(_0x278c96,_0x53268d){return _0x5e3b33['DhLwI'](_0x278c96,_0x53268d);}};_0x3c5916[_0x483c45(0x220)](_0x2cc394=>{const _0x566d8f=_0x483c45;PerformanceTester[_0x566d8f(0x1ae)](_0x58e00f),_0x5a763c[_0x566d8f(0x1bc)](_0xf2ad8b,_0x2cc394);})[_0x483c45(0x214)](_0x7c1f8c=>{const _0x1602cc=_0x483c45;PerformanceTester[_0x1602cc(0x1ae)](_0x58e00f,![],util['format'](_0x7c1f8c)),_0x5e3b33[_0x1602cc(0x229)](_0xfedce,_0x7c1f8c);});});;return PerformanceTester[_0x4c157d(0x1ae)](_0x58e00f),_0x3c5916;}catch(_0x47a213){PerformanceTester[_0x4c157d(0x1ae)](_0x58e00f,![],util[_0x4c157d(0x232)](_0x47a213));throw _0x47a213;}};return _0x37715d[_0x4c157d(0x1df)](null,_0x4efcaf);}catch(_0x19f414){return _0x37715d[_0x4c157d(0x1df)](null,_0x4efcaf);}}static['measureWrapper'](_0x17257e,_0x4c8b50,_0x3763be={}){const _0x277953=a79_0x46207b,_0x32c6fa={'jHAJW':function(_0x4e7416){return _0x4e7416();}},_0x3d9804=this;return _0x3763be[_0x277953(0x1a2)]=_0x32c6fa['jHAJW'](getProcessId),_0x3763be[_0x277953(0x1cb)]=_0x32c6fa[_0x277953(0x219)](getTestName),_0x3763be[_0x277953(0x22a)]=global[_0x277953(0x1ad)]&&global[_0x277953(0x1ad)][_0x277953(0x210)],function(){const _0x2f36c2=_0x277953,_0x3c9e9a=[_0x17257e,_0x4c8b50,null,_0x3763be][_0x2f36c2(0x1d6)](arguments);return _0x3d9804[_0x2f36c2(0x1c1)][_0x2f36c2(0x1df)](_0x3d9804,_0x3c9e9a);};}static[a79_0x46207b(0x1e8)](){const _0x2a2254=a79_0x46207b,_0x4d98bc=/(^.*)\[(.*)\]$/,_0x427f4c={},_0x3d8a78={},_0x2d78b0=[],_0x164ba9=this[_0x2a2254(0x23d)][_0x2a2254(0x233)](0x0,this['_measureEvents']['length']);for(const _0xc58048 of _0x164ba9){const _0x4b67dd=_0xc58048[_0x2a2254(0x21f)][_0x2a2254(0x226)](_0x4d98bc),_0x29e1af=Object[_0x2a2254(0x1dc)]({},_0xc58048);_0x4b67dd&&(_0x29e1af[_0x2a2254(0x21f)]=_0x4b67dd[0x1],_0x29e1af[_0x2a2254(0x20f)]=JSON['parse'](_0x4b67dd[0x2])),_0x2d78b0['push'](_0x29e1af);}return _0x2d78b0;}static['pushPerfMeasures'](){const _0x4466b8=a79_0x46207b,_0x43cd73={};_0x43cd73['jTNix']=function(_0x48a28d,_0x5a8d49){return _0x48a28d+_0x5a8d49;},_0x43cd73[_0x4466b8(0x1e9)]=_0x4466b8(0x1d4),_0x43cd73[_0x4466b8(0x21c)]=function(_0x2d342e,_0x4baff0){return _0x2d342e===_0x4baff0;};const _0x322492=_0x43cd73;try{if(fs['existsSync'](this[_0x4466b8(0x200)])){const _0x34e21d=fs[_0x4466b8(0x1bd)](this[_0x4466b8(0x200)]);for(const _0x44c71c of _0x34e21d){fs[_0x4466b8(0x238)](path['join'](this[_0x4466b8(0x200)],_0x44c71c));}}}catch(_0x1a95f1){logger[_0x4466b8(0x1f3)](_0x322492[_0x4466b8(0x1e7)](_0x322492[_0x4466b8(0x1e9)],_0x1a95f1));}if(_0x322492[_0x4466b8(0x21c)](this[_0x4466b8(0x23d)][_0x4466b8(0x1af)],0x0))return;const _0xa024f6=this[_0x4466b8(0x1e8)](),_0x5a8572=JSON[_0x4466b8(0x1cc)](_0xa024f6),_0x3973a6=_0x322492[_0x4466b8(0x1e7)](_0x5a8572[_0x4466b8(0x1ab)](0x1,-0x1),',');fs[_0x4466b8(0x1a1)](this['jsonReportFileName'],_0x3973a6);}static async[a79_0x46207b(0x1c5)](){const _0x15dbae=a79_0x46207b,_0x1c53a1={};_0x1c53a1[_0x15dbae(0x1b0)]=function(_0x109b9a,_0x33a95f){return _0x109b9a===_0x33a95f;},_0x1c53a1[_0x15dbae(0x1c9)]=function(_0xfd8a3d,_0x572ecd){return _0xfd8a3d>_0x572ecd;};const _0x70c1f8=_0x1c53a1;if(!this[_0x15dbae(0x209)]||_0x70c1f8[_0x15dbae(0x1b0)](this[_0x15dbae(0x23d)]['length'],0x0))return[];if(!fs[_0x15dbae(0x1fb)](this[_0x15dbae(0x200)]))return this[_0x15dbae(0x23d)];const _0x4fd677=(await fsPromise[_0x15dbae(0x216)](this[_0x15dbae(0x200)]))[_0x15dbae(0x1ea)](_0x5b72c0=>path[_0x15dbae(0x1a6)](this[_0x15dbae(0x200)],_0x5b72c0));let _0x5d9a79=(await Promise[_0x15dbae(0x231)](_0x4fd677[_0x15dbae(0x1ea)](_0x2f851f=>fsPromise[_0x15dbae(0x206)](_0x2f851f,_0x15dbae(0x1bf)))))[_0x15dbae(0x1ea)](_0x2873bf=>'['+_0x2873bf[_0x15dbae(0x1ab)](0x0,-0x1)+']')[_0x15dbae(0x1ea)](_0x242ec7=>JSON[_0x15dbae(0x1c7)](_0x242ec7))[_0x15dbae(0x1d1)]();return _0x70c1f8[_0x15dbae(0x1c9)](this['_measureEvents'][_0x15dbae(0x1af)],0x0)&&(_0x5d9a79=_0x5d9a79['concat'](this['getCleanedPerfEvents']())),this['_observer']['disconnect'](),_0x5d9a79;}static[a79_0x46207b(0x1fa)](){const _0x7b730=a79_0x46207b,_0x418fa6={};_0x418fa6[_0x7b730(0x22c)]=function(_0x44acec,_0x7eafad){return _0x44acec===_0x7eafad;},_0x418fa6[_0x7b730(0x1ac)]=function(_0x595c2e,_0x3befd4){return _0x595c2e+_0x3befd4;};const _0x4a23b0=_0x418fa6;if(_0x4a23b0[_0x7b730(0x22c)](this['_errorEvents'][_0x7b730(0x1af)],0x0))return;const _0x4b4945=JSON[_0x7b730(0x1cc)](this[_0x7b730(0x208)]),_0x1b67cd=_0x4a23b0['SzZlg'](_0x4b4945[_0x7b730(0x1ab)](0x1,-0x1),',');fs[_0x7b730(0x1a1)](this[_0x7b730(0x1fc)],_0x1b67cd);}static[a79_0x46207b(0x22e)](){const _0x35dbfc=a79_0x46207b,_0x420e89={};_0x420e89[_0x35dbfc(0x201)]=function(_0x1339ae,_0x1a029d){return _0x1339ae>_0x1a029d;};const _0x28475c=_0x420e89;if(!fs['existsSync'](this[_0x35dbfc(0x19e)]))return this[_0x35dbfc(0x208)];let _0x522b5b=fs['readFileSync'](this[_0x35dbfc(0x19e)])[_0x35dbfc(0x204)]();_0x522b5b='['+_0x522b5b[_0x35dbfc(0x1ab)](0x0,-0x1)+']';let _0x584bc9=JSON[_0x35dbfc(0x1c7)](_0x522b5b);return _0x28475c[_0x35dbfc(0x201)](this[_0x35dbfc(0x208)][_0x35dbfc(0x1af)],0x0)&&(_0x584bc9=_0x584bc9['concat'](this[_0x35dbfc(0x208)])),fs[_0x35dbfc(0x238)](this[_0x35dbfc(0x19e)]),_0x584bc9;}static[a79_0x46207b(0x205)](_0xec183){const _0x28dc08=a79_0x46207b;if(!this['isEnabled']())return;this[_0x28dc08(0x208)][_0x28dc08(0x241)]({'message':_0xec183[_0x28dc08(0x212)],'trace':_0xec183['stack'],'code':_0xec183[_0x28dc08(0x23a)]||null,'time':new Date()});}static[a79_0x46207b(0x1a8)](){const _0x15df4e=a79_0x46207b;try{if(!this[_0x15df4e(0x23b)]())return;this[_0x15df4e(0x1cf)][_0x15df4e(0x1fe)](),this['pushPerfMeasures'](),this[_0x15df4e(0x1fa)]();}catch(_0x42cc37){logger[_0x15df4e(0x1f3)](_0x15df4e(0x20d)+util[_0x15df4e(0x232)](_0x42cc37));}}static async[a79_0x46207b(0x1c3)](){const _0x56524a=a79_0x46207b,_0x16b5d5={'yykUY':function(_0x4fcd17,_0x5806c4){return _0x4fcd17(_0x5806c4);}};await _0x16b5d5[_0x56524a(0x207)](sleep,0x1e);const _0x594554=await this['finalizePerfMeasures'](),_0x5c952d=this[_0x56524a(0x22e)]();if(!this[_0x56524a(0x23b)]()){const _0x266bd0={};return _0x266bd0['measures']=[],_0x266bd0['errors']=[],_0x266bd0;}const _0x44cac9={};return _0x44cac9[_0x56524a(0x19c)]=_0x594554,_0x44cac9[_0x56524a(0x1f2)]=_0x5c952d,_0x44cac9;}static[a79_0x46207b(0x1f5)](_0x49daae){const _0x56b6fd=a79_0x46207b,_0x30e6ec={};_0x30e6ec[_0x56b6fd(0x236)]=function(_0x459346,_0x506574){return _0x459346+_0x506574;},_0x30e6ec[_0x56b6fd(0x1d5)]=_0x56b6fd(0x1e0);const _0x524264=_0x30e6ec,_0x339755=_0x524264[_0x56b6fd(0x236)](_0x49daae,_0x524264[_0x56b6fd(0x1d5)]);if(this['eventsMap'][_0x339755])return;performance['mark'](_0x339755),this[_0x56b6fd(0x1ba)][_0x339755]=0x1;}static['end'](_0x43a49b,_0x5eed6f=!![],_0x346368=null,_0x49f0ea={}){const _0x503165=a79_0x46207b,_0x58920e={'taXlh':function(_0x202b2c,_0x18fc75){return _0x202b2c+_0x18fc75;},'RZMWg':_0x503165(0x239),'VAIWL':function(_0x394d9f,_0x164015){return _0x394d9f+_0x164015;},'kilWf':'-start','iCQNy':function(_0x1c979c){return _0x1c979c();}};performance[_0x503165(0x1b3)](_0x58920e[_0x503165(0x1f7)](_0x43a49b,_0x58920e['RZMWg'])),performance['measure'](_0x43a49b,_0x58920e[_0x503165(0x21d)](_0x43a49b,_0x58920e[_0x503165(0x234)]),_0x58920e['taXlh'](_0x43a49b,_0x58920e[_0x503165(0x1de)]));const _0x52d2fd={};_0x52d2fd[_0x503165(0x1ff)]=_0x5eed6f,_0x52d2fd[_0x503165(0x1db)]=_0x346368,this['details'][_0x43a49b]=Object[_0x503165(0x1dc)](_0x52d2fd,Object[_0x503165(0x1dc)](Object[_0x503165(0x1dc)]({'worker':_0x58920e[_0x503165(0x20a)](getProcessId),'platform':global['__platformCaps']&&global[_0x503165(0x1ad)][_0x503165(0x210)],'testName':_0x58920e[_0x503165(0x20a)](getTestName)},_0x49f0ea),this[_0x503165(0x1ed)][_0x43a49b]||{}));}}function a79_0x460a(){const _0x49cb09=['captureError','readFile','yykUY','_errorEvents','started','iCQNy','fs/promises','LBVoc','Error\x20stopping\x20monitoring\x20','getEntries','meta','index','JDZYk','message','Performance\x20report\x20is\x20at\x20','catch','RUOng','readdir','</td></tr>','false','jHAJW','KuOuO','generateJSON','VvYqh','VAIWL','entryType','name','then','iswRF','error-report','readFileSync','BBuJb','236GMFScU','match','observe','140EDJrIf','DhLwI','platform','98akaKnd','dtDJu','duration','finalizeErrors','437770bSidGj','</td><td>','all','format','splice','kilWf','52ascssX','wYSAi','2712aUDyYj','unlinkSync','-end','code','isEnabled','generateHTMLReport','_measureEvents','lJAzi','writeFileSync','<tr><td>','push','mPwNH','CWGIZ','/error-report-','measures','_events','errorReportFileName','gdRvb','18135rOiXfg','appendFileSync','worker','entryTypes','kYTOG','Error\x20in\x20writing\x20html\x20','resolve','toJSON','stopMonitoring','startMonitoring','PGCvP','slice','SzZlg','__platformCaps','end','length','EFkXn','26487VUxCoW','getPerformance','mark','performance-report','forEach','Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','97028kSYZNa','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','ENWAA','eventsMap','errorReportDirName','XguCk','readdirSync','buffered','utf-8','/performance-report-','measure','kuOAg','finalize','cwd','finalizePerfMeasures','calculateTimeFromEvents','parse','perf_hooks','dNssT','BROWSERSTACK_SDK_INSTRUMENTATION','testName','stringify','reduce','JKGqp','_observer','253HoykDv','flat','isyHx','stopAndGenerate','Error\x20while\x20removing\x20files:\x20','kOVkq','concat','env','eJGkn','Time\x20for\x20','path','failure','assign','performance-own.html','RZMWg','apply','-start','browserStackCwd','getEventsFromJSON','util','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','4870whRxsb','4195404chMFan','jTNix','getCleanedPerfEvents','qtMcj','map','jsonReportFileName','join','details','.json','calculateTimesFromMultipleFiles','entries','KUPgi','errors','debug','exports','start','../processHelper','taXlh','winstonLogger','iBefS','pushErrors','existsSync','errorFile','</tbody></table></body></html>','disconnect','success','jsonReportDirPath','yKTDZ','110382BKvvFF','function','toString'];a79_0x460a=function(){return _0x49cb09;};return a79_0x460a();}function a79_0x8da2(_0x4f7b17,_0x536fb3){const _0x460a4e=a79_0x460a();return a79_0x8da2=function(_0x8da252,_0x274aea){_0x8da252=_0x8da252-0x19b;let _0x5fda76=_0x460a4e[_0x8da252];return _0x5fda76;},a79_0x8da2(_0x4f7b17,_0x536fb3);}module[a79_0x46207b(0x1f4)]=PerformanceTester;
|
|
1
|
+
const a79_0xbdbeda=a79_0x5768;(function(_0x651d61,_0x26951e){const _0x29cf11=a79_0x5768,_0x460974=_0x651d61();while(!![]){try{const _0x5b0c8b=-parseInt(_0x29cf11(0x252))/0x1*(parseInt(_0x29cf11(0x202))/0x2)+parseInt(_0x29cf11(0x1f1))/0x3*(-parseInt(_0x29cf11(0x215))/0x4)+-parseInt(_0x29cf11(0x228))/0x5*(-parseInt(_0x29cf11(0x222))/0x6)+parseInt(_0x29cf11(0x1e6))/0x7*(parseInt(_0x29cf11(0x1c1))/0x8)+parseInt(_0x29cf11(0x1cd))/0x9+-parseInt(_0x29cf11(0x211))/0xa*(-parseInt(_0x29cf11(0x1eb))/0xb)+-parseInt(_0x29cf11(0x1f7))/0xc;if(_0x5b0c8b===_0x26951e)break;else _0x460974['push'](_0x460974['shift']());}catch(_0x1b4c63){_0x460974['push'](_0x460974['shift']());}}}(a79_0xb1b2,0x60c5e));function a79_0xb1b2(){const _0x3da30a=['91zALGQP','lPXPe','Error\x20in\x20doing\x20csv\x20operations:\x20','Ooufx','format','33XrangO','cJbhe','pushPerfMeasures','getEntries','\x20for\x20all\x20processes\x20is\x20','errorReportDirName','43971VMFtgw','utf-8','slice','entryType','unlinkSync','vroWW','6446544rrvhYu','started','Error\x20stopping\x20monitoring\x20','success','browserStackCwd','stopAndGenerate','performance-report','errorReportFileName','entryTypes','zezyD','join','124594RpktMm','_events','_observer','KNZvf','vSUaA','assign','jmpBn','ayQke','Performance\x20report\x20is\x20at\x20','NXQMN','env','zhBXU','worker','eventsMap','writeFileSync','1765370xEQFwQ','forEach','finalize','measureWrapper','4hSKcHb','MMeSa','path','opcTL','exports','stopMonitoring','false','BweWU','<h1>Performance\x20Report</h1>','testName','end','zYmWo','error-report','12fIFKBW','Error\x20while\x20removing\x20files:\x20','psjbp','index','message','jsonReportDirName','132920GRvpCS','uHIjz','jChBF','resolve','mark','ZMRta','winstonLogger','generateHTMLReport','aShrk','details','_measureEvents','appendFileSync','code','util','LjmCq','mkdirSync','readdir','getCleanedPerfEvents','/performance-report-','-end','finalizePerfMeasures','errors','mlYlk','calculateTimeFromEvents','WKGGQ','existsSync','qOScO','Error\x20in\x20writing\x20html\x20','isEnabled','readdirSync','readFileSync','_errorEvents','HWkfj','OwjuB','BROWSERSTACK_SDK_INSTRUMENTATION','platform','Time\x20for\x20','log','length','__platformCaps','FWzin','push','1yswrqm','name','.json','disconnect','calculateTimesFromMultipleFiles','cnILU','mmnQA','toJSON','reduce','TFjVo','jsonReportDirPath','all','</td><td>','173944xeBlGm','parse','then','vsOzp','HSAiB','cwd','function','generateJSON','readFile','finalizeErrors','stringify','pSnep','1305990uGBAYQ','buffered','catch','pushErrors','apply','jsonReportFileName','duration','tbxbl','toString','MLAJS','measure','</tbody></table></body></html>','</td></tr>','/error-report-','concat','../logger','fs/promises','EZEZn','entries','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','match','map','perf_hooks','measures','getEventsFromJSON'];a79_0xb1b2=function(){return _0x3da30a;};return a79_0xb1b2();}const fs=require('fs'),fsPromise=require(a79_0xbdbeda(0x1dd)),{performance,PerformanceObserver}=require(a79_0xbdbeda(0x1e3)),path=require(a79_0xbdbeda(0x217)),util=require(a79_0xbdbeda(0x235)),logger=require(a79_0xbdbeda(0x1dc))[a79_0xbdbeda(0x22e)],{getProcessId,sleep,debug,getTestName}=require('../processHelper');function a79_0x5768(_0x424031,_0x55c1a4){const _0xb1b2c=a79_0xb1b2();return a79_0x5768=function(_0x576807,_0x459534){_0x576807=_0x576807-0x1b5;let _0x4c9d21=_0xb1b2c[_0x576807];return _0x4c9d21;},a79_0x5768(_0x424031,_0x55c1a4);}class PerformanceTester{static ['_observer'];static ['_events']=[];static [a79_0xbdbeda(0x232)]=[];static [a79_0xbdbeda(0x247)]=[];static ['started']=![];static [a79_0xbdbeda(0x227)]=a79_0xbdbeda(0x1fd);static [a79_0xbdbeda(0x1be)]=process[a79_0xbdbeda(0x20c)][a79_0xbdbeda(0x1fb)]?path[a79_0xbdbeda(0x201)](process[a79_0xbdbeda(0x20c)][a79_0xbdbeda(0x1fb)],this[a79_0xbdbeda(0x227)]):path[a79_0xbdbeda(0x201)](process['cwd'](),a79_0xbdbeda(0x24d),this[a79_0xbdbeda(0x227)]);static [a79_0xbdbeda(0x1f0)]=process[a79_0xbdbeda(0x20c)][a79_0xbdbeda(0x1fb)]?path[a79_0xbdbeda(0x201)](process[a79_0xbdbeda(0x20c)][a79_0xbdbeda(0x1fb)],a79_0xbdbeda(0x221)):path[a79_0xbdbeda(0x201)](process['cwd'](),a79_0xbdbeda(0x221));static [a79_0xbdbeda(0x1d2)]=this[a79_0xbdbeda(0x1be)]+a79_0xbdbeda(0x23a)+getProcessId()+a79_0xbdbeda(0x1b6);static [a79_0xbdbeda(0x1fe)]=this[a79_0xbdbeda(0x1f0)]+'/error-report-'+getProcessId()+'.json';static [a79_0xbdbeda(0x231)]={};static [a79_0xbdbeda(0x20f)]={};static['startMonitoring'](_0x228d21=this[a79_0xbdbeda(0x1be)]+'/performance-report-'+getProcessId()+a79_0xbdbeda(0x1b6),_0x1d1a76=this[a79_0xbdbeda(0x1f0)]+a79_0xbdbeda(0x1da)+getProcessId()+a79_0xbdbeda(0x1b6)){const _0x5063a4=a79_0xbdbeda,_0x840c20={};_0x840c20[_0x5063a4(0x22d)]=function(_0x58a6c0,_0x3664ca){return _0x58a6c0===_0x3664ca;},_0x840c20[_0x5063a4(0x20b)]=_0x5063a4(0x1d7),_0x840c20[_0x5063a4(0x205)]=function(_0x3c14aa,_0x4270b6){return _0x3c14aa+_0x4270b6;},_0x840c20[_0x5063a4(0x229)]='Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20',_0x840c20['OvTWF']=_0x5063a4(0x1c7);const _0x111227=_0x840c20;try{!fs[_0x5063a4(0x241)](this['jsonReportDirPath'])&&fs[_0x5063a4(0x237)](this[_0x5063a4(0x1be)]);}catch(_0x11b5a9){logger['debug'](_0x111227[_0x5063a4(0x205)](_0x111227[_0x5063a4(0x229)],_0x11b5a9));}if(this[_0x5063a4(0x1f8)]||!this[_0x5063a4(0x244)]())return;this[_0x5063a4(0x204)]=new PerformanceObserver(_0x15a17a=>{const _0x3a6172=_0x5063a4;_0x15a17a[_0x3a6172(0x1ee)]()[_0x3a6172(0x212)](_0x51c286=>{const _0x20d42e=_0x3a6172;if(_0x111227['ZMRta'](_0x51c286[_0x20d42e(0x1f4)],_0x111227['NXQMN'])){let _0x1178e5={};if(_0x51c286[_0x20d42e(0x1bb)])_0x1178e5=_0x51c286[_0x20d42e(0x1bb)]();else for(const _0x2bf040 in _0x51c286){_0x1178e5[_0x2bf040]=_0x51c286[_0x2bf040];}this['details'][_0x51c286['name']]&&(_0x1178e5=Object[_0x20d42e(0x207)](_0x1178e5,this[_0x20d42e(0x231)][_0x51c286[_0x20d42e(0x1b5)]])),delete this[_0x20d42e(0x231)][_0x51c286[_0x20d42e(0x1b5)]],this[_0x20d42e(0x232)][_0x20d42e(0x251)](_0x1178e5);}else this[_0x20d42e(0x203)]['push'](_0x51c286);});});const _0x607d80={};_0x607d80[_0x5063a4(0x1ce)]=!![],_0x607d80[_0x5063a4(0x1ff)]=[_0x111227['OvTWF'],_0x111227[_0x5063a4(0x20b)]],this['_observer']['observe'](_0x607d80),this['started']=!![],this['jsonReportFileName']=_0x228d21,this[_0x5063a4(0x1fe)]=_0x1d1a76;}static['getPerformance'](){return performance;}static[a79_0xbdbeda(0x23f)](_0x4db0c2,_0xb0db26){const _0x1ed0a6=a79_0xbdbeda,_0x3412c2={};_0x3412c2[_0x1ed0a6(0x1e7)]=function(_0x323e43,_0x119947){return _0x323e43+_0x119947;},_0x3412c2['mlYlk']=function(_0x311a0c,_0x4ade88){return _0x311a0c||_0x4ade88;},_0x3412c2['ZNwcB']=function(_0x6c0236,_0x48d4fe){return _0x6c0236===_0x48d4fe;};const _0x20d171=_0x3412c2,_0x30edb2={};if(!_0x4db0c2||_0x20d171['ZNwcB'](_0x4db0c2[_0x1ed0a6(0x24e)],0x0))return;_0x4db0c2[_0x1ed0a6(0x1e2)](_0x56c472=>{const _0x7ee3bd=_0x1ed0a6;!_0x30edb2[_0x56c472[_0x7ee3bd(0x1b5)]]&&(_0x30edb2[_0x56c472[_0x7ee3bd(0x1b5)]]=0x0),_0x30edb2[_0x56c472['name']]+=_0x56c472[_0x7ee3bd(0x1d3)];});const _0x1764f6=_0xb0db26['reduce']((_0x9a43a9,_0x220268)=>{const _0x287daf=_0x1ed0a6;return _0x20d171[_0x287daf(0x1e7)](_0x30edb2[_0x220268],_0x20d171[_0x287daf(0x23e)](_0x9a43a9,0x0));},0x0);return _0x1764f6;}static async[a79_0xbdbeda(0x1b8)](_0x25d250,_0x573a7e){const _0x4e2ba0=a79_0xbdbeda,_0x36e13c={'mmnQA':function(_0x1fb2ab,_0x26438e){return _0x1fb2ab+_0x26438e;},'vroWW':function(_0x3464a8,_0x57de06){return _0x3464a8||_0x57de06;},'jChBF':function(_0x2b1be3,_0x471609){return _0x2b1be3===_0x471609;},'jmpBn':function(_0x30cd61,_0x4ff8af){return _0x30cd61(_0x4ff8af);},'BweWU':function(_0x55ff65,_0x2c0d22){return _0x55ff65(_0x2c0d22);}};if(!_0x25d250||_0x36e13c[_0x4e2ba0(0x22a)](_0x25d250[_0x4e2ba0(0x24e)],0x0))return 0x0;const _0x100e1b=[];for(const _0x4de2fd of _0x25d250){const _0x5c7356=path['join']('.',_0x4de2fd);try{const _0x3d6d74=this[_0x4e2ba0(0x1e5)](_0x5c7356);_0x3d6d74[_0x4e2ba0(0x1e2)](_0x591661=>{const _0x3d644d=_0x4e2ba0;!_0x100e1b[_0x591661[_0x3d644d(0x1b5)]]&&(_0x100e1b[_0x591661['name']]=0x0),_0x100e1b[_0x591661[_0x3d644d(0x1b5)]]+=_0x591661[_0x3d644d(0x1d3)];});}catch(_0x4b13c5){_0x36e13c[_0x4e2ba0(0x208)](debug,_0x4e2ba0(0x1e8)+_0x4b13c5[_0x4e2ba0(0x1d5)]());}}const _0x4b6004=_0x573a7e[_0x4e2ba0(0x1bc)]((_0x3e889d,_0x18fb9a)=>{const _0x5e5653=_0x4e2ba0;return _0x36e13c[_0x5e5653(0x1ba)](_0x100e1b[_0x18fb9a],_0x36e13c[_0x5e5653(0x1f6)](_0x3e889d,0x0));},0x0);return _0x36e13c[_0x4e2ba0(0x21c)](debug,_0x4e2ba0(0x24c)+_0x573a7e+_0x4e2ba0(0x1ef)+_0x4b6004),_0x4b6004;}static[a79_0xbdbeda(0x1e5)](_0x312678){const _0x3d62c5=a79_0xbdbeda;if(!fs[_0x3d62c5(0x241)](_0x312678))return[];return JSON[_0x3d62c5(0x1c2)](fs[_0x3d62c5(0x246)](_0x312678)[_0x3d62c5(0x1d5)]());}static async[a79_0xbdbeda(0x1fc)](_0x45d421='performance-own.html',_0x4df4e9=null){const _0x45a3e9=a79_0xbdbeda,_0x334f72={'HSAiB':function(_0x1a3e16,_0x2ec681){return _0x1a3e16(_0x2ec681);},'tbxbl':function(_0x41028b,_0x80abb9){return _0x41028b(_0x80abb9);}};if(!this[_0x45a3e9(0x1f8)])return;await _0x334f72[_0x45a3e9(0x1d4)](sleep,0x1e),this[_0x45a3e9(0x204)][_0x45a3e9(0x1b7)](),this[_0x45a3e9(0x1f8)]=![],this[_0x45a3e9(0x1c8)](this[_0x45a3e9(0x203)]);const _0xffb2d3=this[_0x45a3e9(0x22f)](this['_events']),_0x4c19b2=path['join'](process[_0x45a3e9(0x1c6)](),_0x45d421);fs['writeFile'](_0x4c19b2,_0xffb2d3,_0x36e98d=>{const _0x17ac10=_0x45a3e9;if(_0x36e98d){_0x334f72[_0x17ac10(0x1c5)](debug,_0x17ac10(0x243)+_0x36e98d[_0x17ac10(0x1d5)]());return;}_0x334f72[_0x17ac10(0x1c5)](debug,_0x17ac10(0x20a)+_0x4c19b2);});if(_0x4df4e9)return this['calculateTimeFromEvents'](this['_events'],_0x4df4e9);}static[a79_0xbdbeda(0x22f)](_0x43159a){const _0x1dacd0=a79_0xbdbeda,_0x395ba4={};_0x395ba4[_0x1dacd0(0x209)]='<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>',_0x395ba4[_0x1dacd0(0x1e9)]=_0x1dacd0(0x21d),_0x395ba4['zezyD']=_0x1dacd0(0x1e0),_0x395ba4[_0x1dacd0(0x240)]=_0x1dacd0(0x1d8);const _0x1af416=_0x395ba4;let _0x54eb6c=_0x1af416[_0x1dacd0(0x209)];return _0x54eb6c+=_0x1af416[_0x1dacd0(0x1e9)],_0x54eb6c+=_0x1af416[_0x1dacd0(0x200)],_0x43159a['forEach'](_0x4dd094=>{const _0x175eef=_0x1dacd0;_0x54eb6c+='<tr><td>'+_0x4dd094[_0x175eef(0x1b5)]+_0x175eef(0x1c0)+_0x4dd094['duration']+_0x175eef(0x1d9);}),_0x54eb6c+=_0x1af416['WKGGQ'],_0x54eb6c;}static[a79_0xbdbeda(0x1c8)](_0x5c67ca){const _0x1623e0=a79_0xbdbeda;if(!this[_0x1623e0(0x1d2)])return;const _0x2da919={};_0x5c67ca[_0x1623e0(0x1e2)](_0x20cb90=>{const _0x1eb67d=_0x1623e0;!_0x2da919[_0x20cb90[_0x1eb67d(0x1b5)]]&&(_0x2da919[_0x20cb90[_0x1eb67d(0x1b5)]]=0x0),_0x2da919[_0x20cb90[_0x1eb67d(0x1b5)]]+=_0x20cb90['duration'];});const _0xa7e5e6=Object[_0x1623e0(0x1df)](_0x2da919)[_0x1623e0(0x1e2)](([_0x52b1d0,_0x2e4eec])=>{const _0x54f19d=_0x1623e0,_0x221d85={};return _0x221d85[_0x54f19d(0x1b5)]=_0x52b1d0,_0x221d85[_0x54f19d(0x1d3)]=_0x2e4eec,_0x221d85;});fs[_0x1623e0(0x210)](this['jsonReportFileName'],JSON[_0x1623e0(0x1cb)](_0xa7e5e6));}static['isEnabled'](){const _0x3bb0d8=a79_0xbdbeda,_0x11ab54={};_0x11ab54[_0x3bb0d8(0x224)]=function(_0x51c2ce,_0x123020){return _0x51c2ce===_0x123020;},_0x11ab54[_0x3bb0d8(0x1c4)]=_0x3bb0d8(0x21b);const _0xef3599=_0x11ab54;return!_0xef3599[_0x3bb0d8(0x224)](process[_0x3bb0d8(0x20c)][_0x3bb0d8(0x24a)],_0xef3599['vsOzp']);}static[a79_0xbdbeda(0x1d7)](_0xe2d685,_0xbf0cd1,_0x680af7=null,_0x1d3584={},_0x2230f2=null){const _0x3baf5f=a79_0xbdbeda,_0x481427={'TFjVo':function(_0x5a5158,_0x525481){return _0x5a5158(_0x525481);},'YsqfB':function(_0x350efe,_0x234126){return _0x350efe(_0x234126);},'MLAJS':function(_0x5f1970,_0x392f86){return _0x5f1970 instanceof _0x392f86;}};try{if(this[_0x3baf5f(0x1f8)]&&this[_0x3baf5f(0x244)]()){let _0x2707ea=_0xe2d685;_0x680af7&&(_0x2707ea=_0xe2d685+'['+JSON[_0x3baf5f(0x1cb)](_0x680af7)+']');PerformanceTester['start'](_0x2707ea),this[_0x3baf5f(0x231)]&&(this[_0x3baf5f(0x231)][_0x2707ea]=_0x1d3584);try{const _0x128e1b=_0xbf0cd1[_0x3baf5f(0x1d1)](null,_0x2230f2);if(_0x481427[_0x3baf5f(0x1d6)](_0x128e1b,Promise))return new Promise((_0xc35150,_0x335577)=>{const _0x2d94c7=_0x3baf5f,_0x44377c={'zYmWo':function(_0x59c437,_0x358cc5){return _0x481427['YsqfB'](_0x59c437,_0x358cc5);}};_0x128e1b[_0x2d94c7(0x1c3)](_0x461793=>{const _0x4bace5=_0x2d94c7;PerformanceTester[_0x4bace5(0x21f)](_0x2707ea),_0x44377c[_0x4bace5(0x220)](_0xc35150,_0x461793);})[_0x2d94c7(0x1cf)](_0x9b8bc4=>{const _0x59d60c=_0x2d94c7;PerformanceTester[_0x59d60c(0x21f)](_0x2707ea,![],util[_0x59d60c(0x1ea)](_0x9b8bc4)),_0x481427[_0x59d60c(0x1bd)](_0x335577,_0x9b8bc4);});});;return PerformanceTester[_0x3baf5f(0x21f)](_0x2707ea),_0x128e1b;}catch(_0x390af5){PerformanceTester[_0x3baf5f(0x21f)](_0x2707ea,![],util['format'](_0x390af5));throw _0x390af5;}};return _0xbf0cd1[_0x3baf5f(0x1d1)](null,_0x2230f2);}catch(_0x4a0c2f){return _0xbf0cd1[_0x3baf5f(0x1d1)](null,_0x2230f2);}}static[a79_0xbdbeda(0x214)](_0x10a6e5,_0x28071e,_0xaeed17={}){const _0x15ed98=a79_0xbdbeda,_0x5a5328={'MMeSa':function(_0x21e1cd){return _0x21e1cd();}},_0x28032f=this;return _0xaeed17[_0x15ed98(0x20e)]=_0x5a5328['MMeSa'](getProcessId),_0xaeed17[_0x15ed98(0x21e)]=_0x5a5328[_0x15ed98(0x216)](getTestName),_0xaeed17[_0x15ed98(0x24b)]=global[_0x15ed98(0x24f)]&&global[_0x15ed98(0x24f)][_0x15ed98(0x225)],function(){const _0x2b608d=_0x15ed98,_0x46f9de=[_0x10a6e5,_0x28071e,null,_0xaeed17][_0x2b608d(0x1db)](arguments);return _0x28032f[_0x2b608d(0x1d7)]['apply'](_0x28032f,_0x46f9de);};}static[a79_0xbdbeda(0x239)](){const _0x482840=a79_0xbdbeda,_0x11150d=/(^.*)\[(.*)\]$/,_0x417309={},_0x50208d={},_0x73b13b=[],_0x456570=this[_0x482840(0x232)]['splice'](0x0,this[_0x482840(0x232)][_0x482840(0x24e)]);for(const _0x279490 of _0x456570){const _0x42f3d6=_0x279490[_0x482840(0x1b5)][_0x482840(0x1e1)](_0x11150d),_0x245054=Object[_0x482840(0x207)]({},_0x279490);_0x42f3d6&&(_0x245054[_0x482840(0x1b5)]=_0x42f3d6[0x1],_0x245054['meta']=JSON[_0x482840(0x1c2)](_0x42f3d6[0x2])),_0x73b13b['push'](_0x245054);}return _0x73b13b;}static[a79_0xbdbeda(0x1ed)](){const _0x306286=a79_0xbdbeda,_0x28deaa={};_0x28deaa[_0x306286(0x218)]=function(_0x231324,_0x2f5ac5){return _0x231324+_0x2f5ac5;},_0x28deaa[_0x306286(0x249)]=_0x306286(0x223),_0x28deaa[_0x306286(0x1b9)]=function(_0x4a56a6,_0x403090){return _0x4a56a6===_0x403090;},_0x28deaa[_0x306286(0x250)]=function(_0x3dd97e,_0x1ae28f){return _0x3dd97e+_0x1ae28f;};const _0x384150=_0x28deaa;try{if(fs[_0x306286(0x241)](this[_0x306286(0x1be)])){const _0x198bb6=fs[_0x306286(0x245)](this[_0x306286(0x1be)]);for(const _0x13a421 of _0x198bb6){fs['unlinkSync'](path[_0x306286(0x201)](this['jsonReportDirPath'],_0x13a421));}}}catch(_0xe6af20){logger['debug'](_0x384150[_0x306286(0x218)](_0x384150['OwjuB'],_0xe6af20));}if(_0x384150['cnILU'](this[_0x306286(0x232)][_0x306286(0x24e)],0x0))return;const _0x5be8a9=this['getCleanedPerfEvents'](),_0x532253=JSON[_0x306286(0x1cb)](_0x5be8a9),_0x28570a=_0x384150[_0x306286(0x250)](_0x532253[_0x306286(0x1f3)](0x1,-0x1),',');fs[_0x306286(0x233)](this[_0x306286(0x1d2)],_0x28570a);}static async[a79_0xbdbeda(0x23c)](){const _0x2e603e=a79_0xbdbeda,_0xcebcc={};_0xcebcc[_0x2e603e(0x236)]=function(_0x37487c,_0x447740){return _0x37487c===_0x447740;},_0xcebcc[_0x2e603e(0x1ec)]=function(_0x4c3cbd,_0x1c5ce9){return _0x4c3cbd>_0x1c5ce9;};const _0x322346=_0xcebcc;if(!this['started']||_0x322346['LjmCq'](this[_0x2e603e(0x232)][_0x2e603e(0x24e)],0x0))return[];if(!fs['existsSync'](this['jsonReportDirPath']))return this[_0x2e603e(0x232)];const _0xc0519a=(await fsPromise[_0x2e603e(0x238)](this[_0x2e603e(0x1be)]))[_0x2e603e(0x1e2)](_0x2d683e=>path[_0x2e603e(0x22b)](this[_0x2e603e(0x1be)],_0x2d683e));let _0x5b7a11=(await Promise[_0x2e603e(0x1bf)](_0xc0519a[_0x2e603e(0x1e2)](_0xc1265d=>fsPromise[_0x2e603e(0x1c9)](_0xc1265d,_0x2e603e(0x1f2)))))[_0x2e603e(0x1e2)](_0x3b05b2=>'['+_0x3b05b2[_0x2e603e(0x1f3)](0x0,-0x1)+']')[_0x2e603e(0x1e2)](_0x754ac=>JSON[_0x2e603e(0x1c2)](_0x754ac))['flat']();return _0x322346['cJbhe'](this['_measureEvents'][_0x2e603e(0x24e)],0x0)&&(_0x5b7a11=_0x5b7a11['concat'](this[_0x2e603e(0x239)]())),this[_0x2e603e(0x204)][_0x2e603e(0x1b7)](),_0x5b7a11;}static[a79_0xbdbeda(0x1d0)](){const _0x3e926b=a79_0xbdbeda,_0x5ab31e={};_0x5ab31e[_0x3e926b(0x248)]=function(_0x5bea01,_0x254fe1){return _0x5bea01===_0x254fe1;},_0x5ab31e[_0x3e926b(0x1de)]=function(_0x30653a,_0x50dec5){return _0x30653a+_0x50dec5;};const _0x486163=_0x5ab31e;if(_0x486163[_0x3e926b(0x248)](this[_0x3e926b(0x247)][_0x3e926b(0x24e)],0x0))return;const _0x5c0440=JSON[_0x3e926b(0x1cb)](this['_errorEvents']),_0x23c759=_0x486163[_0x3e926b(0x1de)](_0x5c0440['slice'](0x1,-0x1),',');fs[_0x3e926b(0x233)](this['errorFile'],_0x23c759);}static['finalizeErrors'](){const _0x4ee4bc=a79_0xbdbeda,_0x9139d5={};_0x9139d5[_0x4ee4bc(0x20d)]=function(_0x503c08,_0x206d29){return _0x503c08>_0x206d29;};const _0x1d5f04=_0x9139d5;if(!fs[_0x4ee4bc(0x241)](this[_0x4ee4bc(0x1fe)]))return this['_errorEvents'];let _0x4768a6=fs[_0x4ee4bc(0x246)](this[_0x4ee4bc(0x1fe)])['toString']();_0x4768a6='['+_0x4768a6[_0x4ee4bc(0x1f3)](0x0,-0x1)+']';let _0xc4b303=JSON['parse'](_0x4768a6);return _0x1d5f04['zhBXU'](this[_0x4ee4bc(0x247)][_0x4ee4bc(0x24e)],0x0)&&(_0xc4b303=_0xc4b303['concat'](this['_errorEvents'])),fs[_0x4ee4bc(0x1f5)](this[_0x4ee4bc(0x1fe)]),_0xc4b303;}static['captureError'](_0x5cb1cf){const _0x5de572=a79_0xbdbeda;if(!this['isEnabled']())return;this['_errorEvents'][_0x5de572(0x251)]({'message':_0x5cb1cf[_0x5de572(0x226)],'trace':_0x5cb1cf['stack'],'code':_0x5cb1cf[_0x5de572(0x234)]||null,'time':new Date()});}static[a79_0xbdbeda(0x21a)](){const _0x3a382c=a79_0xbdbeda;try{if(!this['isEnabled']())return;this[_0x3a382c(0x204)][_0x3a382c(0x1b7)](),this['pushPerfMeasures'](),this[_0x3a382c(0x1d0)]();}catch(_0x556842){logger['debug'](_0x3a382c(0x1f9)+util[_0x3a382c(0x1ea)](_0x556842));}}static async[a79_0xbdbeda(0x213)](){const _0x571bb5=a79_0xbdbeda,_0x1d9a93={'vSUaA':function(_0x3a8924,_0x2ba816){return _0x3a8924(_0x2ba816);}};await _0x1d9a93[_0x571bb5(0x206)](sleep,0x1e);const _0x4b199c=await this['finalizePerfMeasures'](),_0x50da3e=this[_0x571bb5(0x1ca)]();if(!this[_0x571bb5(0x244)]()){const _0x2dcaa9={};return _0x2dcaa9[_0x571bb5(0x1e4)]=[],_0x2dcaa9[_0x571bb5(0x23d)]=[],_0x2dcaa9;}const _0x4df276={};return _0x4df276['measures']=_0x4b199c,_0x4df276[_0x571bb5(0x23d)]=_0x50da3e,_0x4df276;}static['start'](_0x3f9b1e){const _0x45d898=a79_0xbdbeda,_0x28f7c0={};_0x28f7c0['rFupV']=function(_0x5ae765,_0xdab5b6){return _0x5ae765+_0xdab5b6;},_0x28f7c0['pSnep']='-start';const _0x16db80=_0x28f7c0,_0x4314b2=_0x16db80['rFupV'](_0x3f9b1e,_0x16db80[_0x45d898(0x1cc)]);if(this['eventsMap'][_0x4314b2])return;performance[_0x45d898(0x22c)](_0x4314b2),this[_0x45d898(0x20f)][_0x4314b2]=0x1;}static[a79_0xbdbeda(0x21f)](_0xab9dfe,_0x4882aa=!![],_0x255201=null,_0x4f3c87={}){const _0x2ba2cd=a79_0xbdbeda,_0x353f58={'GawBQ':function(_0x4fc6f7,_0x549982){return _0x4fc6f7+_0x549982;},'aShrk':_0x2ba2cd(0x23b),'qOScO':function(_0xed74ab,_0x479e58){return _0xed74ab+_0x479e58;},'weUJn':'-start','iUwra':function(_0x3793ae,_0x4f853f){return _0x3793ae+_0x4f853f;},'tRlca':function(_0x271384){return _0x271384();},'mNDgH':function(_0x1a4a8b){return _0x1a4a8b();}};performance[_0x2ba2cd(0x22c)](_0x353f58['GawBQ'](_0xab9dfe,_0x353f58['aShrk'])),performance['measure'](_0xab9dfe,_0x353f58[_0x2ba2cd(0x242)](_0xab9dfe,_0x353f58['weUJn']),_0x353f58['iUwra'](_0xab9dfe,_0x353f58[_0x2ba2cd(0x230)]));const _0x200987={};_0x200987[_0x2ba2cd(0x1fa)]=_0x4882aa,_0x200987['failure']=_0x255201,this['details'][_0xab9dfe]=Object[_0x2ba2cd(0x207)](_0x200987,Object[_0x2ba2cd(0x207)](Object[_0x2ba2cd(0x207)]({'worker':_0x353f58['tRlca'](getProcessId),'platform':global[_0x2ba2cd(0x24f)]&&global[_0x2ba2cd(0x24f)][_0x2ba2cd(0x225)],'testName':_0x353f58['mNDgH'](getTestName)},_0x4f3c87),this[_0x2ba2cd(0x231)][_0xab9dfe]||{}));}}module[a79_0xbdbeda(0x219)]=PerformanceTester;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a80_0x3f737b=a80_0x236c;(function(_0x4a0ec8,_0x2cd429){const _0x4bfcb2=a80_0x236c,_0x4c6b93=_0x4a0ec8();while(!![]){try{const _0x6ff794=parseInt(_0x4bfcb2(0x1a0))/0x1*(-parseInt(_0x4bfcb2(0x1a5))/0x2)+-parseInt(_0x4bfcb2(0x19a))/0x3+-parseInt(_0x4bfcb2(0x1a8))/0x4+parseInt(_0x4bfcb2(0x19b))/0x5*(-parseInt(_0x4bfcb2(0x1a6))/0x6)+parseInt(_0x4bfcb2(0x198))/0x7+-parseInt(_0x4bfcb2(0x1a1))/0x8*(parseInt(_0x4bfcb2(0x193))/0x9)+parseInt(_0x4bfcb2(0x195))/0xa;if(_0x6ff794===_0x2cd429)break;else _0x4c6b93['push'](_0x4c6b93['shift']());}catch(_0x3e84b4){_0x4c6b93['push'](_0x4c6b93['shift']());}}}(a80_0x481e,0x4bc7d));const worker=require('worker_threads'),{fileLogger}=require(a80_0x3f737b(0x19c)),{consoleHolder}=require('./test-observability/constants'),globals=require(a80_0x3f737b(0x1a4));function a80_0x236c(_0x405426,_0x4f7a0b){const _0x481e39=a80_0x481e();return a80_0x236c=function(_0x236c07,_0x29de07){_0x236c07=_0x236c07-0x18f;let _0x48cb5=_0x481e39[_0x236c07];return _0x48cb5;},a80_0x236c(_0x405426,_0x4f7a0b);}function a80_0x481e(){const _0x19b06d=['5eGknYB','./logger','xCKXC','BROWSERSTACK_OBSERVABILITY_DEBUG','toISOString','1NrNCPH','7432PQmLiJ','env','threadId','./globals','574754ArqSRC','2100642HeuOeK','teEJT','756104rgzBky','][\x20OBSERVABILITY\x20]\x20','pid','getGlobal','log','3609BPqQoh','debug','14675310EkvwjX','WtPwt','sleep','757085fGSQOs','AvQxK','198750vEfMol'];a80_0x481e=function(){return _0x19b06d;};return a80_0x481e();}exports['getProcessId']=()=>{const _0x55bec3=a80_0x3f737b;return process[_0x55bec3(0x190)]+'-'+worker[_0x55bec3(0x1a3)];},exports['getTestName']=()=>{const _0x23fd90=a80_0x3f737b,_0x132da0={};_0x132da0[_0x23fd90(0x196)]='browserstackTestName';const _0x3e3595=_0x132da0;return globals[_0x23fd90(0x191)](_0x3e3595[_0x23fd90(0x196)]);},exports[a80_0x3f737b(0x197)]=(_0x252017=0x64)=>new Promise(_0x3ff6c9=>setTimeout(_0x3ff6c9,_0x252017)),exports['debug']=_0x41c56b=>{const _0x465e2a=a80_0x3f737b,_0x31aaa6={};_0x31aaa6['AvQxK']=function(_0x5d25f3,_0x54d178){return _0x5d25f3===_0x54d178;},_0x31aaa6['xCKXC']='true',_0x31aaa6['teEJT']=function(_0x555d24,_0x3340e3){return _0x555d24===_0x3340e3;};const _0xde34ff=_0x31aaa6;fileLogger[_0x465e2a(0x194)]('['+new Date()[_0x465e2a(0x19f)]()+'][\x20OBSERVABILITY\x20]\x20'+_0x41c56b),(_0xde34ff[_0x465e2a(0x199)](process[_0x465e2a(0x1a2)][_0x465e2a(0x19e)],_0xde34ff[_0x465e2a(0x19d)])||_0xde34ff[_0x465e2a(0x1a7)](process[_0x465e2a(0x1a2)][_0x465e2a(0x19e)],'1'))&&consoleHolder[_0x465e2a(0x192)]('\x0a['+new Date()[_0x465e2a(0x19f)]()+_0x465e2a(0x18f)+_0x41c56b+'\x0a');};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a81_0x6658d1=a81_0x4e8f;function a81_0x4e8f(_0x31b46a,_0x172c73){const _0x28402b=a81_0x2840();return a81_0x4e8f=function(_0x4e8f90,_0xc2089){_0x4e8f90=_0x4e8f90-0x151;let _0x41804f=_0x28402b[_0x4e8f90];return _0x41804f;},a81_0x4e8f(_0x31b46a,_0x172c73);}(function(_0xc6476c,_0x5284f9){const _0x43e9ae=a81_0x4e8f,_0x5f0671=_0xc6476c();while(!![]){try{const _0x275772=-parseInt(_0x43e9ae(0x179))/0x1*(-parseInt(_0x43e9ae(0x15e))/0x2)+-parseInt(_0x43e9ae(0x16f))/0x3*(-parseInt(_0x43e9ae(0x16e))/0x4)+-parseInt(_0x43e9ae(0x168))/0x5+parseInt(_0x43e9ae(0x16a))/0x6*(-parseInt(_0x43e9ae(0x17a))/0x7)+parseInt(_0x43e9ae(0x158))/0x8*(-parseInt(_0x43e9ae(0x164))/0x9)+parseInt(_0x43e9ae(0x161))/0xa+parseInt(_0x43e9ae(0x156))/0xb*(parseInt(_0x43e9ae(0x163))/0xc);if(_0x275772===_0x5284f9)break;else _0x5f0671['push'](_0x5f0671['shift']());}catch(_0x23e3be){_0x5f0671['push'](_0x5f0671['shift']());}}}(a81_0x2840,0x23dfb));const http=require(a81_0x6658d1(0x151)),https=require(a81_0x6658d1(0x183)),monkeypatch=require(a81_0x6658d1(0x159));function spy(_0x328e7d){const _0x47c112=a81_0x6658d1,_0x2fe2db={'miGfi':function(_0x536685,_0xea87f4){return _0x536685-_0xea87f4;},'LhKmo':function(_0x1db91f,_0x95519a,_0x534d25){return _0x1db91f(_0x95519a,_0x534d25);},'WhzeU':_0x47c112(0x181),'cRNpM':function(_0xfcf02b,_0x4152ae){return _0xfcf02b instanceof _0x4152ae;},'QKRTC':function(_0x4ddd06,_0x40a891){return _0x4ddd06===_0x40a891;},'uAOXQ':_0x47c112(0x15b),'zjmzJ':function(_0x520e18,_0x5cccad,_0xc83e31){return _0x520e18(_0x5cccad,_0xc83e31);},'snfxy':function(_0x5ee737,..._0x4c5f7b){return _0x5ee737(..._0x4c5f7b);},'Kbdhe':_0x47c112(0x186),'FBVRu':'socket','RElwe':function(_0x92ed8d,_0x152263,_0x4783e7,_0x3fa424){return _0x92ed8d(_0x152263,_0x4783e7,_0x3fa424);},'HxvMA':_0x47c112(0x169),'LnsGX':_0x47c112(0x171)},_0x56fc19=function(){const _0x1f2076=_0x47c112,_0x4b40da={'vaZvL':function(_0x483a94,_0x34e692){return _0x2fe2db['cRNpM'](_0x483a94,_0x34e692);},'bPqrE':function(_0x55da34,_0x7e58e3){const _0x2a557c=a81_0x4e8f;return _0x2fe2db[_0x2a557c(0x17b)](_0x55da34,_0x7e58e3);},'Zypkv':_0x2fe2db[_0x1f2076(0x178)],'eGQeu':function(_0x35e521,_0x49278e,_0x5c2c5a){const _0x55d4d4=_0x1f2076;return _0x2fe2db[_0x55d4d4(0x154)](_0x35e521,_0x49278e,_0x5c2c5a);},'WWLXX':function(_0x49e509,..._0x2062bc){const _0x687428=_0x1f2076;return _0x2fe2db[_0x687428(0x177)](_0x49e509,..._0x2062bc);}},_0x589e38=arguments[0x0],_0x39eafe=Array[_0x1f2076(0x184)][_0x1f2076(0x170)]['call'](arguments,0x1),_0x4b63a7=_0x589e38[_0x1f2076(0x16c)](this,_0x39eafe);let _0x13a2be=Date[_0x1f2076(0x155)](),_0x38a158;const _0x38544b={};_0x39eafe['forEach'](_0xdfce0a=>{const _0x3ebab2=_0x1f2076;if(_0x4b40da[_0x3ebab2(0x174)](_0xdfce0a,URL)){const _0x40afab={};_0x40afab[_0x3ebab2(0x17c)]=_0xdfce0a,Object[_0x3ebab2(0x185)](_0x38544b,_0x40afab);}else _0x4b40da['bPqrE'](typeof _0xdfce0a,_0x4b40da['Zypkv'])&&Object[_0x3ebab2(0x185)](_0x38544b,_0xdfce0a);});const _0x2fccb4=_0x2a59ff=>{const _0x34437b=_0x1f2076,_0x2956e4={};_0x2956e4[_0x34437b(0x180)]=_0x38544b['host']||_0x38544b['hostname']||_0x38544b[_0x34437b(0x17c)]&&(_0x38544b['url'][_0x34437b(0x180)]||_0x38544b[_0x34437b(0x17c)]['hostname']),_0x2956e4[_0x34437b(0x15f)]=_0x38544b[_0x34437b(0x15f)]||_0x38544b[_0x34437b(0x17c)]&&_0x38544b[_0x34437b(0x17c)][_0x34437b(0x182)],_0x2956e4[_0x34437b(0x153)]=_0x38544b[_0x34437b(0x153)],_0x2956e4[_0x34437b(0x15d)]=_0x38544b[_0x34437b(0x15d)],_0x4b40da[_0x34437b(0x16b)](_0x328e7d,_0x2a59ff,_0x2956e4);};return _0x4b63a7[_0x1f2076(0x17f)](_0x2fe2db[_0x1f2076(0x16d)],_0x436b2d=>{const _0x1b0c3e=_0x1f2076,_0x48a05d=_0x2fe2db[_0x1b0c3e(0x157)](Date[_0x1b0c3e(0x155)](),_0x13a2be),_0x1050b5={};_0x1050b5[_0x1b0c3e(0x166)]=_0x38544b['host']||_0x38544b[_0x1b0c3e(0x166)]||_0x38544b[_0x1b0c3e(0x17c)]&&(_0x38544b['url'][_0x1b0c3e(0x180)]||_0x38544b[_0x1b0c3e(0x17c)][_0x1b0c3e(0x166)]),_0x1050b5['path']=_0x38544b[_0x1b0c3e(0x15f)]||_0x38544b['url']&&_0x38544b['url']['pathname'],_0x1050b5['method']=_0x38544b['method'],_0x1050b5['headers']=_0x38544b[_0x1b0c3e(0x15d)],_0x1050b5['status_code']=_0x436b2d[_0x1b0c3e(0x15c)],_0x1050b5[_0x1b0c3e(0x176)]=_0x48a05d,_0x2fe2db[_0x1b0c3e(0x167)](_0x328e7d,null,_0x1050b5),_0x38a158[_0x1b0c3e(0x172)](_0x2fe2db[_0x1b0c3e(0x162)],_0x2fccb4);}),_0x4b63a7['on'](_0x2fe2db['FBVRu'],_0x5ceb54=>{_0x38a158=_0x5ceb54,_0x5ceb54['once'](_0x2fe2db['WhzeU'],_0x2fccb4);}),_0x2fe2db[_0x1f2076(0x17d)](monkeypatch,_0x4b63a7,_0x2fe2db[_0x1f2076(0x173)],(_0xa74083,..._0xa6b10e)=>{const _0xf5bbf3=_0x1f2076;_0x13a2be=Date[_0xf5bbf3(0x155)](),_0x4b40da[_0xf5bbf3(0x175)](_0xa74083,..._0xa6b10e);}),_0x4b63a7;};_0x2fe2db[_0x47c112(0x17d)](monkeypatch,http,_0x2fe2db[_0x47c112(0x15a)],_0x56fc19),_0x2fe2db[_0x47c112(0x17d)](monkeypatch,https,_0x2fe2db[_0x47c112(0x15a)],_0x56fc19);}function restore(){const _0x5cbb4c=a81_0x6658d1;http[_0x5cbb4c(0x171)][_0x5cbb4c(0x165)](),https[_0x5cbb4c(0x171)]['unpatch']();}const a81_0x4708fb={};a81_0x4708fb[a81_0x6658d1(0x152)]=spy,a81_0x4708fb[a81_0x6658d1(0x17e)]=restore,module[a81_0x6658d1(0x160)]=a81_0x4708fb;function a81_0x2840(){const _0x5b18af=['WWLXX','duration_ms','snfxy','uAOXQ','2AEAjFp','844970SQfoAy','QKRTC','url','RElwe','restore','once','host','error','pathname','https','prototype','assign','response','http','spy','method','zjmzJ','now','473eYDfwZ','miGfi','8QBDasJ','monkeypatch','LnsGX','object','statusCode','headers','185090bTSQLM','path','exports','502580lgchAB','WhzeU','145272TwQrvK','2384703saKepB','unpatch','hostname','LhKmo','1039890LMfxbI','end','12qbFepi','eGQeu','apply','Kbdhe','8EiNzDe','158097MuHofh','slice','request','removeListener','HxvMA','vaZvL'];a81_0x2840=function(){return _0x5b18af;};return a81_0x2840();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a82_0x5aa5(){const _0x41a914=['./performance/constants','Agent','qYLeD','call','request','http','40DEtcAY','202170lpXqAO','163250djOXLQ','135WBNwGP','agent','KEEP_ALIVE','globalAgent','uSlFv','18HdwWRz','kmXUE','121915krnJan','prototype','hasOwnProperty','394416HAOHgQ','EgSnV','https','1372180Cyebef','jjtqs','keepAliveMsecs','32417kWDQvY','keepAlive','https:','measureWrapper','HsYds','protocol','XvTSu','JzcZj','302316LqFNvF','rVNAC'];a82_0x5aa5=function(){return _0x41a914;};return a82_0x5aa5();}const a82_0x4488ce=a82_0xccb9;(function(_0x44f62b,_0x23dbef){const _0x34b276=a82_0xccb9,_0x1041ea=_0x44f62b();while(!![]){try{const _0x58cc6d=parseInt(_0x34b276(0xdd))/0x1+parseInt(_0x34b276(0xf6))/0x2+-parseInt(_0x34b276(0xe8))/0x3+parseInt(_0x34b276(0xeb))/0x4+-parseInt(_0x34b276(0xe5))/0x5*(parseInt(_0x34b276(0xe3))/0x6)+-parseInt(_0x34b276(0xee))/0x7*(-parseInt(_0x34b276(0xdb))/0x8)+parseInt(_0x34b276(0xde))/0x9*(-parseInt(_0x34b276(0xdc))/0xa);if(_0x58cc6d===_0x23dbef)break;else _0x1041ea['push'](_0x1041ea['shift']());}catch(_0x3300ff){_0x1041ea['push'](_0x1041ea['shift']());}}}(a82_0x5aa5,0x2a2bc));function a82_0xccb9(_0x1ee1ef,_0x26c5ad){const _0x5aa547=a82_0x5aa5();return a82_0xccb9=function(_0xccb9ef,_0x3c6a6e){_0xccb9ef=_0xccb9ef-0xd9;let _0x4cc2e3=_0x5aa547[_0xccb9ef];return _0x4cc2e3;},a82_0xccb9(_0x1ee1ef,_0x26c5ad);}const PerformanceTester=require('./performance/performance-tester'),{AUTOMATE_EVENTS:PerformanceEvents}=require(a82_0x4488ce(0xf8));module['exports']=PerformanceTester[a82_0x4488ce(0xf1)](PerformanceEvents[a82_0x4488ce(0xe0)],function(){const _0x4bf7e0=a82_0x4488ce,_0x344d9f={'kmXUE':function(_0x4e380d,_0x54a66c){return _0x4e380d===_0x54a66c;},'jjtqs':_0x4bf7e0(0xf0),'qYLeD':_0x4bf7e0(0xdf),'JzcZj':function(_0x4320ea,_0x1fed99,_0x482a4e){return _0x4320ea(_0x1fed99,_0x482a4e);},'XvTSu':function(_0x6a37fc,_0xe601be,_0x391568){return _0x6a37fc(_0xe601be,_0x391568);},'uSlFv':function(_0x33ea85,_0x131a7d){return _0x33ea85(_0x131a7d);},'RGPyB':_0x4bf7e0(0xda),'cRaBJ':function(_0x437d35,_0x5943c1){return _0x437d35(_0x5943c1);},'rVNAC':_0x4bf7e0(0xea),'EgSnV':function(_0x8036ea,_0x1488a6){return _0x8036ea*_0x1488a6;},'HsYds':_0x4bf7e0(0xef)},_0x2c765d=_0x344d9f[_0x4bf7e0(0xe2)](require,_0x344d9f['RGPyB']),_0xbff6a3=_0x344d9f['cRaBJ'](require,_0x344d9f[_0x4bf7e0(0xf7)]),_0x4c3f8f=_0x344d9f[_0x4bf7e0(0xe9)](0x1e,0x3e8);if(_0x2c765d[_0x4bf7e0(0xe1)]&&Object[_0x4bf7e0(0xe6)][_0x4bf7e0(0xe7)][_0x4bf7e0(0xfb)](_0x2c765d[_0x4bf7e0(0xe1)],_0x344d9f[_0x4bf7e0(0xf2)]))_0x2c765d[_0x4bf7e0(0xe1)][_0x4bf7e0(0xef)]=!![],_0xbff6a3['globalAgent'][_0x4bf7e0(0xef)]=!![],_0x2c765d[_0x4bf7e0(0xe1)][_0x4bf7e0(0xed)]=_0x4c3f8f,_0xbff6a3[_0x4bf7e0(0xe1)][_0x4bf7e0(0xed)]=_0x4c3f8f;else{const _0x2cca57={};_0x2cca57[_0x4bf7e0(0xef)]=!![],_0x2cca57[_0x4bf7e0(0xed)]=_0x4c3f8f;const _0x5d36e8=new _0x2c765d[(_0x4bf7e0(0xf9))](_0x2cca57),_0x961e20={};_0x961e20[_0x4bf7e0(0xef)]=!![],_0x961e20['keepAliveMsecs']=_0x4c3f8f;const _0x44fffb=new _0xbff6a3[(_0x4bf7e0(0xf9))](_0x961e20),_0x1dcf6b=_0x2c765d[_0x4bf7e0(0xd9)],_0x5a1c5b=_0xbff6a3['request'];_0x2c765d[_0x4bf7e0(0xd9)]=function(_0x464746,_0x1deb1c){const _0x42e145=_0x4bf7e0;if(_0x344d9f[_0x42e145(0xe4)](_0x464746[_0x42e145(0xf3)],_0x344d9f[_0x42e145(0xec)]))return _0x464746[_0x344d9f[_0x42e145(0xfa)]]=_0x44fffb,_0x344d9f[_0x42e145(0xf5)](_0x5a1c5b,_0x464746,_0x1deb1c);return _0x464746[_0x344d9f[_0x42e145(0xfa)]]=_0x5d36e8,_0x344d9f[_0x42e145(0xf4)](_0x1dcf6b,_0x464746,_0x1deb1c);};}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a83_0x522207=a83_0x4df4;(function(_0x9ada66,_0xe4ea89){var _0x4714b1=a83_0x4df4,_0x3025a0=_0x9ada66();while(!![]){try{var _0x2012db=-parseInt(_0x4714b1(0xfe))/0x1+parseInt(_0x4714b1(0xfc))/0x2+-parseInt(_0x4714b1(0xf8))/0x3*(-parseInt(_0x4714b1(0xef))/0x4)+-parseInt(_0x4714b1(0xf0))/0x5*(-parseInt(_0x4714b1(0xf2))/0x6)+-parseInt(_0x4714b1(0xfd))/0x7+parseInt(_0x4714b1(0xf4))/0x8+-parseInt(_0x4714b1(0x103))/0x9*(parseInt(_0x4714b1(0xff))/0xa);if(_0x2012db===_0xe4ea89)break;else _0x3025a0['push'](_0x3025a0['shift']());}catch(_0x1d535f){_0x3025a0['push'](_0x3025a0['shift']());}}}(a83_0x232e,0x252d3));var a83_0x5b430d={};function a83_0x232e(){var _0x4778f7=['api/v1/batch','375282JxSzVG','1390214xtDRvj','86496iYBcNE','5210pszHAr','mocha','PLAYWRIGHT','MOCHA','3420mQmYyC','exports','JEST','16syCdqb','108795KRtpir','CUCUMBER','66jbUtqH','https://collector-observability.browserstack.com','928024gutWbe','.obs_test_details','assign','cucumber','69270ITkiHt','Playwright','jest'];a83_0x232e=function(){return _0x4778f7;};return a83_0x232e();}function a83_0x4df4(_0x157450,_0x5c8b1e){var _0x232e3a=a83_0x232e();return a83_0x4df4=function(_0x4df424,_0x4c9424){_0x4df424=_0x4df424-0xee;var _0x1952e1=_0x232e3a[_0x4df424];return _0x1952e1;},a83_0x4df4(_0x157450,_0x5c8b1e);}a83_0x5b430d[a83_0x522207(0x101)]=a83_0x522207(0xf9),a83_0x5b430d[a83_0x522207(0x102)]=a83_0x522207(0x100),a83_0x5b430d['CODECEPT']='codeceptjs',a83_0x5b430d[a83_0x522207(0xee)]=a83_0x522207(0xfa),a83_0x5b430d[a83_0x522207(0xf1)]=a83_0x522207(0xf7),module[a83_0x522207(0x104)]={'consoleHolder':Object[a83_0x522207(0xf6)]({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':a83_0x522207(0xf3),'EVENT_ENDPOINT':'api/v1/event','BATCH_ENDPOINT':a83_0x522207(0xfb),'SCREENSHOT_ENDPOINT':'api/v1/screenshots','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_0x522207(0xf5),'FRAMEWORKS':a83_0x5b430d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a84_0x3cacbc=a84_0x329c;(function(_0xd35e7c,_0x4cc31c){const _0x5afe58=a84_0x329c,_0x560926=_0xd35e7c();while(!![]){try{const _0x568831=-parseInt(_0x5afe58(0x136))/0x1*(parseInt(_0x5afe58(0x135))/0x2)+-parseInt(_0x5afe58(0x142))/0x3+-parseInt(_0x5afe58(0x100))/0x4+-parseInt(_0x5afe58(0xdc))/0x5+parseInt(_0x5afe58(0x111))/0x6+parseInt(_0x5afe58(0xf5))/0x7+parseInt(_0x5afe58(0x141))/0x8;if(_0x568831===_0x4cc31c)break;else _0x560926['push'](_0x560926['shift']());}catch(_0xe0bb6c){_0x560926['push'](_0x560926['shift']());}}}(a84_0x2b9e,0xbad6c));const util=require(a84_0x3cacbc(0xf0)),PerformanceTester=require(a84_0x3cacbc(0xe8)),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require(a84_0x3cacbc(0x10e)),{getAgentVersion,nestedKeyValue}=require(a84_0x3cacbc(0xea)),o11yErrorHandler=(_0x18ec90,_0x4d3764='',_0x171220=[''],_0x2a7819=![])=>{const _0x2dd4e5={'LYVRe':function(_0x596c8b,_0x3b2c04){return _0x596c8b(_0x3b2c04);},'AfUMr':function(_0x4ed6eb,_0x8c0d76,_0x5d3cff){return _0x4ed6eb(_0x8c0d76,_0x5d3cff);},'nxbPB':function(_0x367a6c,_0x5ca4d3,_0x297045){return _0x367a6c(_0x5ca4d3,_0x297045);},'YATdn':function(_0x2e13c4,_0x284c04){return _0x2e13c4 instanceof _0x284c04;},'fiEvG':function(_0x493d1a,_0x5ac1ba,_0x40cf0e,_0x368684,_0x5418ee){return _0x493d1a(_0x5ac1ba,_0x40cf0e,_0x368684,_0x5418ee);}};return function(..._0x46cbb1){const _0x529ebf=a84_0x329c;try{let _0x19f2e5=_0x18ec90;process[_0x529ebf(0x12f)]['BROWSERSTACK_O11Y_PERF_MEASUREMENT']&&(_0x19f2e5=PerformanceTester[_0x529ebf(0x107)]()[_0x529ebf(0x132)](_0x19f2e5));_0x2a7819&&_0x2dd4e5[_0x529ebf(0xf8)](trace,_0x529ebf(0x11b)+_0x4d3764+_0x529ebf(0x101)+process['pid']+',\x20Argument\x20-\x20'+_0x2dd4e5[_0x529ebf(0xe3)](nestedKeyValue,arguments[0x0],_0x171220));const _0x342358=_0x19f2e5['apply'](null,arguments);_0x2a7819&&_0x2dd4e5[_0x529ebf(0xf8)](trace,'Finished\x20::\x20'+_0x4d3764+_0x529ebf(0x101)+process[_0x529ebf(0x10c)]+',\x20Argument\x20-\x20'+_0x2dd4e5[_0x529ebf(0x137)](nestedKeyValue,arguments[0x0],_0x171220));if(_0x2dd4e5[_0x529ebf(0x12c)](_0x342358,Promise))return _0x342358[_0x529ebf(0x116)](_0x48a369=>processError(_0x48a369,_0x18ec90,_0x46cbb1,_0x4d3764));return _0x342358;}catch(_0x4007cd){_0x2dd4e5[_0x529ebf(0xe5)](processError,_0x4007cd,_0x18ec90,_0x46cbb1,_0x4d3764);}};},o11yClassErrorHandler=(_0x1e2324,_0x2a0dd0,_0x4ed426='')=>{const _0x39db12=a84_0x3cacbc,_0x599058={'yxElD':function(_0x18b744,_0x4c3b04){return _0x18b744 instanceof _0x4c3b04;},'MqADX':function(_0x398d88,_0x13bf2a,_0x195543,_0x2e16dc,_0x2d9f58){return _0x398d88(_0x13bf2a,_0x195543,_0x2e16dc,_0x2d9f58);},'bpbcG':function(_0x10c861,_0x2a0d7d){return _0x10c861===_0x2a0d7d;},'yQxWo':_0x39db12(0xee),'HOFzR':function(_0x4bfac7,_0x1b8768){return _0x4bfac7!==_0x1b8768;},'CffvC':_0x39db12(0x115),'OppHX':function(_0x2e7d09,_0x1761da){return _0x2e7d09<_0x1761da;}},_0x456a52=_0x1e2324['prototype'];if(_0x599058['OppHX'](Object[_0x39db12(0x13a)](_0x456a52)[_0x39db12(0x129)],0x2))return _0x1e2324;return Object[_0x39db12(0x13a)](_0x456a52)[_0x39db12(0xe4)](_0x48bdb6=>{const _0x5cb4bf=_0x39db12;if(!(_0x2a0dd0&&_0x2a0dd0[_0x5cb4bf(0x108)](_0x48bdb6)))return;const _0x138450=_0x456a52[_0x48bdb6];_0x599058[_0x5cb4bf(0x112)](typeof _0x138450,_0x599058[_0x5cb4bf(0xe2)])&&_0x599058[_0x5cb4bf(0x106)](_0x48bdb6,_0x599058[_0x5cb4bf(0x113)])&&Object[_0x5cb4bf(0xf9)](_0x456a52,_0x48bdb6,{'writable':!![],'value':function(..._0x17b770){const _0x9e8007=_0x5cb4bf;try{const _0x553b1a=(process[_0x9e8007(0x12f)]['BROWSERSTACK_O11Y_PERF_MEASUREMENT']?PerformanceTester[_0x9e8007(0x107)]()[_0x9e8007(0x132)](_0x138450):_0x138450)[_0x9e8007(0x133)](this,..._0x17b770);if(_0x599058[_0x9e8007(0xf6)](_0x553b1a,Promise))return _0x553b1a[_0x9e8007(0x116)](_0x3b7446=>processError(_0x3b7446,_0x138450,_0x17b770,_0x4ed426));return _0x553b1a;}catch(_0xe823e0){_0x599058[_0x9e8007(0xde)](processError,_0xe823e0,_0x138450,_0x17b770,_0x4ed426);}}});}),_0x1e2324;};function a84_0x2b9e(){const _0xfe5f90=['getConfig','depth','721425kZKNxF','frameworkDetails','MqADX','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','MeGob','name','yQxWo','AfUMr','forEach','fiEvG','fFUvW','user','../performance/performance-tester','\x20--\x20','../helper','auth','credentials','frameworkName','function','setCredentials','util','mHpvP','USER_CONFIG_FOR_REPORTING','userConfig','filterPII','3642919uAPOOM','yxElD','VDgmx','LYVRe','defineProperty','username','xRlAO','toString','stringify','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','true','2998020JrUGlu',',\x20PID\x20-\x20','o11yClassErrorHandler','ywRNR','LPyUS','BS_TESTOPS_BUILD_HASHED_ID','HOFzR','getPerformance','includes','then','.\x20Args\x20-\x20','ehBdZ','pid','recursivelyDeletePIIKeysFromObject','./utils','parse','Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20','6045138qYkqOc','bpbcG','CffvC','password','constructor','catch','keys','VtkvA','setAllDetails','JKYKy','Started\x20::\x20','setConfigDetails','CREDENTIALS_FOR_CRASH_REPORTING','application/json','[Crash_Report_Upload]\x20Success\x20response:\x20','X-BSTACK-TESTOPS','key','format','exports','rjEco','KIvqn','[Crash_Report_Upload]\x20Failed\x20due\x20to\x20','DNAst','inspect','length','headers','POST','YATdn','DFkTy','getCredentials','env','Content-Type','Error\x20in\x20executing\x20','timerify','call','/api/v1/analytics','204RtWyCd','13666ghQSQR','nxbPB','accessKey','frameworkVersion','getOwnPropertyNames','uploadCrashReport','.\x20Error\x20-\x20','CrashReporter','VvVHa','getFramework','setFrameworkDetails','22434992gRQUts','3837900vQQTqe','captureError'];a84_0x2b9e=function(){return _0xfe5f90;};return a84_0x2b9e();}function a84_0x329c(_0x2f8a2a,_0x3f6e56){const _0x2b9e04=a84_0x2b9e();return a84_0x329c=function(_0x329cfe,_0x1f37ff){_0x329cfe=_0x329cfe-0xda;let _0x1f7d1a=_0x2b9e04[_0x329cfe];return _0x1f7d1a;},a84_0x329c(_0x2f8a2a,_0x3f6e56);}function processError(_0x1c316b,_0x194ce4,_0x5b6928,_0x85e72d){const _0x3b343f=a84_0x3cacbc,_0x1048e3={'gAihB':function(_0x231bb,_0x4544c2){return _0x231bb(_0x4544c2);}};_0x1048e3['gAihB'](debug,_0x3b343f(0x131)+_0x194ce4[_0x3b343f(0xe1)]+_0x3b343f(0xe9)+_0x85e72d+_0x3b343f(0x13c)+_0x1c316b+_0x3b343f(0x10a)+_0x5b6928+'.'),PerformanceTester[_0x3b343f(0x143)](_0x1c316b);let _0x3ce605;try{_0x3ce605=JSON[_0x3b343f(0xfd)](_0x5b6928);}catch(_0x3a0e79){const _0x45a1e2={};_0x45a1e2[_0x3b343f(0xdb)]=0x2,_0x3ce605=util[_0x3b343f(0x128)](_0x5b6928,_0x45a1e2);}CrashReporter[_0x3b343f(0x13b)]('Error\x20in\x20executing\x20'+_0x194ce4[_0x3b343f(0xe1)]+_0x3b343f(0xe9)+_0x85e72d+_0x3b343f(0x13c)+_0x1c316b+_0x3b343f(0x10a)+_0x3ce605+'.',_0x1c316b&&_0x1c316b['stack']);}class CrashReporter{static ['userConfig']={};static [a84_0x3cacbc(0xec)];static [a84_0x3cacbc(0xdd)]={};static['initialize'](_0xefe494,_0x5f119f,_0x4e269b=null){const _0x4f9387=a84_0x3cacbc,_0x4bda71={'VtkvA':function(_0x5142aa,_0x5d5ce0){return _0x5142aa(_0x5d5ce0);},'ktVgr':function(_0x4aaa04,_0x207a01){return _0x4aaa04(_0x207a01);},'ehBdZ':function(_0x133d1e,_0x25fee6){return _0x133d1e(_0x25fee6);}},_0x95c37d=_0xefe494[_0x4f9387(0xed)],_0x5cf474=_0xefe494[_0x4f9387(0x139)];!_0x4e269b&&(_0x4e269b=_0x4bda71[_0x4f9387(0x118)](getBrowserStackConfig,_0x95c37d));!_0x5cf474&&_0x4bda71['ktVgr'](getFrameworkVersion,_0x95c37d);const _0x405932={};_0x405932[_0x4f9387(0xed)]=_0x95c37d,_0x405932['frameworkVersion']=_0x5cf474,this['setAllDetails'](_0x405932,_0x5f119f,_0x4bda71[_0x4f9387(0x10b)](getUserCredentials,_0x4e269b));}static['setCredentials'](_0x3a6f47,_0x3d82bd){const _0x4640eb=a84_0x3cacbc,_0x144a00={};_0x144a00['username']=_0x3a6f47,_0x144a00[_0x4640eb(0x138)]=_0x3d82bd,this[_0x4640eb(0xec)]=_0x144a00,process['env'][_0x4640eb(0x11d)]=JSON[_0x4640eb(0xfd)](this[_0x4640eb(0xec)]);}static['getCredentials'](){const _0x552b33=a84_0x3cacbc,_0x2ea28c={'VDgmx':function(_0xdebabd,_0x279717){return _0xdebabd(_0x279717);}};if(!this[_0x552b33(0xec)]&&process[_0x552b33(0x12f)][_0x552b33(0x11d)])try{this[_0x552b33(0xec)]=JSON[_0x552b33(0x10f)](process[_0x552b33(0x12f)][_0x552b33(0x11d)]);}catch(_0x4b6f95){_0x2ea28c[_0x552b33(0xf7)](debug,_0x552b33(0xdf)+_0x4b6f95[_0x552b33(0xfc)]());}return this[_0x552b33(0xec)];}static[a84_0x3cacbc(0x11c)](_0x32af95){const _0x53858b=a84_0x3cacbc;this['userConfig']=this[_0x53858b(0xf4)](_0x32af95),process['env']['USER_CONFIG_FOR_REPORTING']=JSON[_0x53858b(0xfd)](this[_0x53858b(0xf3)]);}static[a84_0x3cacbc(0xda)](){const _0x40a0ce=a84_0x3cacbc,_0x46e882={'YyuLd':function(_0x1f08b4,_0x4718ad){return _0x1f08b4===_0x4718ad;},'Cblum':function(_0x17292d,_0x391603){return _0x17292d(_0x391603);}};if(_0x46e882['YyuLd'](Object[_0x40a0ce(0x117)](this['userConfig'])[_0x40a0ce(0x129)],0x0)&&process['env'][_0x40a0ce(0xf2)])try{this['userConfig']=JSON[_0x40a0ce(0x10f)](process['env'][_0x40a0ce(0xf2)]);}catch(_0x205d2a){_0x46e882['Cblum'](debug,_0x40a0ce(0x110)+_0x205d2a[_0x40a0ce(0xfc)]()),this[_0x40a0ce(0xf3)]={};}return this['userConfig'];}static[a84_0x3cacbc(0x140)](_0x9b3a9c){const _0x45534d=a84_0x3cacbc;this[_0x45534d(0xdd)]=_0x9b3a9c,process['env'][_0x45534d(0xfe)]=JSON[_0x45534d(0xfd)](this[_0x45534d(0xdd)]);}static['getFramework'](){const _0x330bb7=a84_0x3cacbc,_0xda04bb={'otHTT':function(_0x93a050,_0x5b999a){return _0x93a050===_0x5b999a;},'MeGob':function(_0x58d359,_0x5917f7){return _0x58d359(_0x5917f7);}};if(_0xda04bb['otHTT'](Object[_0x330bb7(0x117)](this[_0x330bb7(0xdd)])[_0x330bb7(0x129)],0x0)&&process['env']['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS'])try{this['frameworkDetails']=JSON[_0x330bb7(0x10f)](process['env'][_0x330bb7(0xfe)]);}catch(_0x186f89){_0xda04bb[_0x330bb7(0xe0)](debug,'Error\x20in\x20parsing\x20credentials\x20from\x20env\x20'+_0x186f89[_0x330bb7(0xfc)]());}return this[_0x330bb7(0xdd)];}static[a84_0x3cacbc(0x119)](_0x20fe22,_0x5c2ebf,_0x46b9db){const _0x1f5fbc=a84_0x3cacbc;_0x20fe22&&this['setFrameworkDetails'](_0x20fe22),_0x5c2ebf&&this[_0x1f5fbc(0x11c)](_0x5c2ebf),_0x46b9db&&this[_0x1f5fbc(0xef)](_0x46b9db[_0x1f5fbc(0xfa)],_0x46b9db[_0x1f5fbc(0x138)]);}static async[a84_0x3cacbc(0x13b)](_0x2f8d9b,_0x1a47b){const _0x205ed0=a84_0x3cacbc,_0x44b28b={'ywRNR':function(_0xb8e81a,_0x423064){return _0xb8e81a(_0x423064);},'JKYKy':function(_0x14ddf7,_0xda3f2c){return _0x14ddf7(_0xda3f2c);},'LPyUS':'[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','DNAst':function(_0x404b6d){return _0x404b6d();},'VvVHa':_0x205ed0(0x134),'FnJZo':_0x205ed0(0x11e),'fFUvW':_0x205ed0(0xff),'eIhiC':function(_0x556f06,_0xeb767b,_0x27efb0,_0x1ca007,_0x4298ac,_0x5a3567){return _0x556f06(_0xeb767b,_0x27efb0,_0x1ca007,_0x4298ac,_0x5a3567);},'zhODE':_0x205ed0(0x12b)};this[_0x205ed0(0x12e)]();if(!this[_0x205ed0(0xec)])return _0x44b28b[_0x205ed0(0x11a)](debug,_0x44b28b[_0x205ed0(0x104)]);this[_0x205ed0(0xda)](),this[_0x205ed0(0x13f)]();const _0x53e955={'hashed_id':process[_0x205ed0(0x12f)][_0x205ed0(0x105)],'observability_version':{'sdkVersion':_0x44b28b[_0x205ed0(0x127)](getAgentVersion),'frameworkName':this[_0x205ed0(0xdd)]['frameworkName'],'frameworkVersion':this[_0x205ed0(0xdd)]['frameworkVersion']},'exception':{'error':_0x2f8d9b['toString'](),'stackTrace':_0x1a47b},'config':this[_0x205ed0(0xf3)]},_0x4cef25=_0x44b28b[_0x205ed0(0x13e)],_0x4070ad={};_0x4070ad['username']=this[_0x205ed0(0xec)]['username'],_0x4070ad[_0x205ed0(0x114)]=this[_0x205ed0(0xec)][_0x205ed0(0x138)];const _0x2c5e54={};_0x2c5e54[_0x205ed0(0x130)]=_0x44b28b['FnJZo'],_0x2c5e54[_0x205ed0(0x120)]=_0x44b28b[_0x205ed0(0xe6)];const _0x5ca69e={};_0x5ca69e[_0x205ed0(0xeb)]=_0x4070ad,_0x5ca69e[_0x205ed0(0x12a)]=_0x2c5e54;const _0x8d30bd=_0x5ca69e;_0x44b28b['eIhiC'](nodeRequest,_0x44b28b['zhODE'],_0x4cef25,_0x53e955,_0x8d30bd,![])[_0x205ed0(0x109)](_0x2db1da=>{const _0x1bf10c=_0x205ed0;_0x44b28b[_0x1bf10c(0x103)](debug,_0x1bf10c(0x11f)+JSON[_0x1bf10c(0xfd)](_0x2db1da));})[_0x205ed0(0x116)](_0x548299=>{const _0x54d224=_0x205ed0;_0x44b28b[_0x54d224(0x103)](debug,_0x54d224(0x126)+util[_0x54d224(0x122)](_0x548299));});}static[a84_0x3cacbc(0x10d)](_0x4f31bd){const _0x5f40c6=a84_0x3cacbc,_0x5f483a={};_0x5f483a[_0x5f40c6(0xf1)]=_0x5f40c6(0xe7),_0x5f483a['yicJP']='username',_0x5f483a['Lgyhe']=_0x5f40c6(0x121),_0x5f483a[_0x5f40c6(0x125)]=_0x5f40c6(0x138),_0x5f483a['DFkTy']=_0x5f40c6(0x114),_0x5f483a[_0x5f40c6(0x124)]=function(_0x15e24a,_0x20cfe6){return _0x15e24a===_0x20cfe6;},_0x5f483a[_0x5f40c6(0xfb)]='object';const _0x333ecf=_0x5f483a;if(!_0x4f31bd)return;const _0x51a541=[_0x333ecf[_0x5f40c6(0xf1)],_0x333ecf['yicJP'],_0x333ecf['Lgyhe'],_0x333ecf[_0x5f40c6(0x125)],_0x333ecf[_0x5f40c6(0x12d)]];for(const _0x47a058 in _0x4f31bd){if(_0x51a541['includes'](_0x47a058['toLowerCase']()))delete _0x4f31bd[_0x47a058];else _0x333ecf[_0x5f40c6(0x124)](typeof _0x4f31bd[_0x47a058],_0x333ecf['xRlAO'])&&this[_0x5f40c6(0x10d)](_0x4f31bd[_0x47a058]);}}static[a84_0x3cacbc(0xf4)](_0x1839b1){const _0x3b3d49=a84_0x3cacbc,_0xba1640=JSON[_0x3b3d49(0x10f)](JSON['stringify'](_0x1839b1));return this[_0x3b3d49(0x10d)](_0xba1640),_0xba1640;}}const a84_0x26e494={};a84_0x26e494['o11yErrorHandler']=o11yErrorHandler,a84_0x26e494[a84_0x3cacbc(0x102)]=o11yClassErrorHandler,a84_0x26e494[a84_0x3cacbc(0x13d)]=CrashReporter,module[a84_0x3cacbc(0x123)]=a84_0x26e494;
|
|
1
|
+
function a84_0x2726(){const _0x57f0a1=['POST','keys','Hjyxj','setAllDetails','[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','credentials','TkPfl','CrashReporter','stringify','kDCUB','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','HiFrO','defineProperty','UqGeV',',\x20PID\x20-\x20','1269929TFSzRn','BROWSERSTACK_O11Y_PERF_MEASUREMENT','IHOUd','frameworkVersion','constructor','GnYul','Finished\x20::\x20','KvdqS','esNpa','getCredentials','format','GsWcs','nbEHs','getOwnPropertyNames','tkjJN','.\x20Error\x20-\x20','name','object','CREDENTIALS_FOR_CRASH_REPORTING','recursivelyDeletePIIKeysFromObject','getConfig','uploadCrashReport','nNfLr','setFrameworkDetails','setCredentials','tUrNU','VIxls','parse','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','getPerformance','catch','env','\x20--\x20','MzNkk','byRyM','YnpoM','lOEGK','QeJgv','timerify','frameworkName','userConfig','getFramework','true','USER_CONFIG_FOR_REPORTING','function','MfJoG','key','qOiPT','6stPnTr','apply','X-BSTACK-TESTOPS','stack','Started\x20::\x20','../performance/performance-tester','PNyLJ','cScwr','BS_TESTOPS_BUILD_HASHED_ID','./utils','util','accessKey','password','initialize','3EoQdCG','FZUHF','application/json','user','toString','captureError','[Crash_Report_Upload]\x20Success\x20response:\x20','o11yErrorHandler','rKkRC','Content-Type','length','SEwXu','[Crash_Report_Upload]\x20Failed\x20due\x20to\x20','prototype','o11yClassErrorHandler','MDPqP','zlLgz','Error\x20in\x20executing\x20','3037522jAoPkj','38998224glkQyh','pid','SYIya','lsrdK','../helper','Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20','exports','EDCum','filterPII','ZZWBY','8582238MpLvlv','719784lrRxPf','VZihP','11895792qEBeDz','inspect','/api/v1/analytics','1359190yYyBPK','frameworkDetails','MEZAG','headers',',\x20Argument\x20-\x20','setConfigDetails','.\x20Args\x20-\x20','username','KawGR'];a84_0x2726=function(){return _0x57f0a1;};return a84_0x2726();}function a84_0x1961(_0x11d876,_0x1d4845){const _0x272615=a84_0x2726();return a84_0x1961=function(_0x1961f0,_0x38ac1f){_0x1961f0=_0x1961f0-0x123;let _0x2e5063=_0x272615[_0x1961f0];return _0x2e5063;},a84_0x1961(_0x11d876,_0x1d4845);}const a84_0x51a09e=a84_0x1961;(function(_0xbefb6e,_0x46e38a){const _0x44a624=a84_0x1961,_0x48d9fa=_0xbefb6e();while(!![]){try{const _0xb0c250=-parseInt(_0x44a624(0x166))/0x1+-parseInt(_0x44a624(0x13d))/0x2+parseInt(_0x44a624(0x12b))/0x3*(-parseInt(_0x44a624(0x149))/0x4)+parseInt(_0x44a624(0x14e))/0x5*(-parseInt(_0x44a624(0x196))/0x6)+parseInt(_0x44a624(0x148))/0x7+-parseInt(_0x44a624(0x14b))/0x8+parseInt(_0x44a624(0x13e))/0x9;if(_0xb0c250===_0x46e38a)break;else _0x48d9fa['push'](_0x48d9fa['shift']());}catch(_0x159fdf){_0x48d9fa['push'](_0x48d9fa['shift']());}}}(a84_0x2726,0xcb0ea));const util=require(a84_0x51a09e(0x127)),PerformanceTester=require(a84_0x51a09e(0x19b)),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require(a84_0x51a09e(0x126)),{getAgentVersion,nestedKeyValue}=require(a84_0x51a09e(0x142)),o11yErrorHandler=(_0x24d49d,_0x1ee0be='',_0x27cdc9=[''],_0x4b02c5=![])=>{const _0x31dd63={'esNpa':function(_0x143f66,_0x372c3b){return _0x143f66(_0x372c3b);},'MDPqP':function(_0xb250fc,_0x52af14,_0x3ca7ce){return _0xb250fc(_0x52af14,_0x3ca7ce);},'fvmzm':function(_0x38a5ce,_0x17aa5e){return _0x38a5ce(_0x17aa5e);},'kyxeg':function(_0x7b37ee,_0x335461,_0x2171be){return _0x7b37ee(_0x335461,_0x2171be);},'GnYul':function(_0x40d2a5,_0x10e34d){return _0x40d2a5 instanceof _0x10e34d;},'rKkRC':function(_0x43d89d,_0x19d11d,_0x49bf90,_0x3a393f,_0x4702cc){return _0x43d89d(_0x19d11d,_0x49bf90,_0x3a393f,_0x4702cc);}};return function(..._0xed8556){const _0x17b51d=a84_0x1961;try{let _0x431e6c=_0x24d49d;process[_0x17b51d(0x185)][_0x17b51d(0x167)]&&(_0x431e6c=PerformanceTester[_0x17b51d(0x183)]()[_0x17b51d(0x18c)](_0x431e6c));_0x4b02c5&&_0x31dd63[_0x17b51d(0x16e)](trace,_0x17b51d(0x19a)+_0x1ee0be+_0x17b51d(0x165)+process[_0x17b51d(0x13f)]+_0x17b51d(0x152)+_0x31dd63[_0x17b51d(0x13a)](nestedKeyValue,arguments[0x0],_0x27cdc9));const _0xd90cfd=_0x431e6c[_0x17b51d(0x197)](null,arguments);_0x4b02c5&&_0x31dd63['fvmzm'](trace,_0x17b51d(0x16c)+_0x1ee0be+_0x17b51d(0x165)+process[_0x17b51d(0x13f)]+',\x20Argument\x20-\x20'+_0x31dd63['kyxeg'](nestedKeyValue,arguments[0x0],_0x27cdc9));if(_0x31dd63[_0x17b51d(0x16b)](_0xd90cfd,Promise))return _0xd90cfd[_0x17b51d(0x184)](_0x5757aa=>processError(_0x5757aa,_0x24d49d,_0xed8556,_0x1ee0be));return _0xd90cfd;}catch(_0x2bc389){_0x31dd63[_0x17b51d(0x133)](processError,_0x2bc389,_0x24d49d,_0xed8556,_0x1ee0be);}};},o11yClassErrorHandler=(_0x46d135,_0x5e5c13,_0x305d02='')=>{const _0x343b2d=a84_0x51a09e,_0x1d270a={'qOiPT':function(_0x1a7edf,_0x4b6506){return _0x1a7edf instanceof _0x4b6506;},'MfJoG':function(_0x30a186,_0xa98595,_0x46418f,_0x24937b,_0x3be7ce){return _0x30a186(_0xa98595,_0x46418f,_0x24937b,_0x3be7ce);},'VIxls':function(_0x1812c2,_0x8ec3c6){return _0x1812c2===_0x8ec3c6;},'GsWcs':_0x343b2d(0x192),'nbEHs':function(_0x2f8dd1,_0x169a59){return _0x2f8dd1!==_0x169a59;},'GNUkR':_0x343b2d(0x16a),'ZZWBY':function(_0x1951a7,_0x16fa77){return _0x1951a7<_0x16fa77;}},_0x1dd9cc=_0x46d135[_0x343b2d(0x138)];if(_0x1d270a[_0x343b2d(0x147)](Object[_0x343b2d(0x173)](_0x1dd9cc)[_0x343b2d(0x135)],0x2))return _0x46d135;return Object[_0x343b2d(0x173)](_0x1dd9cc)['forEach'](_0x2583b3=>{const _0x39bc24=_0x343b2d,_0x2b1d5c={'FZUHF':function(_0x3251a0,_0x307594){const _0x3dde9e=a84_0x1961;return _0x1d270a[_0x3dde9e(0x195)](_0x3251a0,_0x307594);},'HiFrO':function(_0x1e7187,_0x23d8d9,_0x9361de,_0x463253,_0x5edfde){const _0x4f50e1=a84_0x1961;return _0x1d270a[_0x4f50e1(0x193)](_0x1e7187,_0x23d8d9,_0x9361de,_0x463253,_0x5edfde);}};if(!(_0x5e5c13&&_0x5e5c13['includes'](_0x2583b3)))return;const _0x4ce131=_0x1dd9cc[_0x2583b3];_0x1d270a[_0x39bc24(0x180)](typeof _0x4ce131,_0x1d270a[_0x39bc24(0x171)])&&_0x1d270a[_0x39bc24(0x172)](_0x2583b3,_0x1d270a['GNUkR'])&&Object[_0x39bc24(0x163)](_0x1dd9cc,_0x2583b3,{'writable':!![],'value':function(..._0x46c2bf){const _0x512dd9=_0x39bc24;try{const _0x29c6e5=(process[_0x512dd9(0x185)][_0x512dd9(0x167)]?PerformanceTester['getPerformance']()[_0x512dd9(0x18c)](_0x4ce131):_0x4ce131)['call'](this,..._0x46c2bf);if(_0x2b1d5c[_0x512dd9(0x12c)](_0x29c6e5,Promise))return _0x29c6e5[_0x512dd9(0x184)](_0x18ec48=>processError(_0x18ec48,_0x4ce131,_0x46c2bf,_0x305d02));return _0x29c6e5;}catch(_0x43727b){_0x2b1d5c[_0x512dd9(0x162)](processError,_0x43727b,_0x4ce131,_0x46c2bf,_0x305d02);}}});}),_0x46d135;};function processError(_0x4d6406,_0x12eeee,_0x168939,_0x134edb){const _0x3c752c=a84_0x51a09e,_0x4ecb56={'cScwr':function(_0x3b7563,_0x5c8b96){return _0x3b7563(_0x5c8b96);}};_0x4ecb56[_0x3c752c(0x124)](debug,_0x3c752c(0x13c)+_0x12eeee[_0x3c752c(0x176)]+_0x3c752c(0x186)+_0x134edb+_0x3c752c(0x175)+_0x4d6406+_0x3c752c(0x154)+_0x168939+'.'),PerformanceTester[_0x3c752c(0x130)](_0x4d6406);let _0x8c7b4e;try{_0x8c7b4e=JSON['stringify'](_0x168939);}catch(_0x22495a){const _0x2041ca={};_0x2041ca['depth']=0x2,_0x8c7b4e=util[_0x3c752c(0x14c)](_0x168939,_0x2041ca);}CrashReporter[_0x3c752c(0x17b)]('Error\x20in\x20executing\x20'+_0x12eeee[_0x3c752c(0x176)]+_0x3c752c(0x186)+_0x134edb+_0x3c752c(0x175)+_0x4d6406+_0x3c752c(0x154)+_0x8c7b4e+'.',_0x4d6406&&_0x4d6406[_0x3c752c(0x199)]);}class CrashReporter{static [a84_0x51a09e(0x18e)]={};static [a84_0x51a09e(0x15c)];static [a84_0x51a09e(0x14f)]={};static[a84_0x51a09e(0x12a)](_0x2ec1d9,_0x75b533,_0xb6ca15=null){const _0x4a5038=a84_0x51a09e,_0x57809d={'kDCUB':function(_0x15cfcb,_0x382ac9){return _0x15cfcb(_0x382ac9);},'IHOUd':function(_0x3a3e17,_0x4df9f5){return _0x3a3e17(_0x4df9f5);},'VZihP':function(_0x4e0be1,_0x2fd362){return _0x4e0be1(_0x2fd362);}},_0xa0b1ed=_0x2ec1d9[_0x4a5038(0x18d)],_0x26ad58=_0x2ec1d9[_0x4a5038(0x169)];!_0xb6ca15&&(_0xb6ca15=_0x57809d[_0x4a5038(0x160)](getBrowserStackConfig,_0xa0b1ed));!_0x26ad58&&_0x57809d[_0x4a5038(0x168)](getFrameworkVersion,_0xa0b1ed);const _0x52d2b4={};_0x52d2b4[_0x4a5038(0x18d)]=_0xa0b1ed,_0x52d2b4['frameworkVersion']=_0x26ad58,this[_0x4a5038(0x15a)](_0x52d2b4,_0x75b533,_0x57809d[_0x4a5038(0x14a)](getUserCredentials,_0xb6ca15));}static[a84_0x51a09e(0x17e)](_0x5714bd,_0x28c506){const _0x1c7e20=a84_0x51a09e,_0x215fa1={};_0x215fa1[_0x1c7e20(0x155)]=_0x5714bd,_0x215fa1[_0x1c7e20(0x128)]=_0x28c506,this[_0x1c7e20(0x15c)]=_0x215fa1,process[_0x1c7e20(0x185)][_0x1c7e20(0x178)]=JSON['stringify'](this[_0x1c7e20(0x15c)]);}static[a84_0x51a09e(0x16f)](){const _0x1d2912=a84_0x51a09e,_0x3aee74={'UqGeV':function(_0x1cf8e5,_0x115b4f){return _0x1cf8e5(_0x115b4f);}};if(!this[_0x1d2912(0x15c)]&&process[_0x1d2912(0x185)]['CREDENTIALS_FOR_CRASH_REPORTING'])try{this[_0x1d2912(0x15c)]=JSON['parse'](process[_0x1d2912(0x185)][_0x1d2912(0x178)]);}catch(_0x2ec768){_0x3aee74[_0x1d2912(0x164)](debug,_0x1d2912(0x182)+_0x2ec768[_0x1d2912(0x12f)]());}return this[_0x1d2912(0x15c)];}static['setConfigDetails'](_0x3aa90e){const _0x53dabb=a84_0x51a09e;this['userConfig']=this[_0x53dabb(0x146)](_0x3aa90e),process[_0x53dabb(0x185)][_0x53dabb(0x191)]=JSON[_0x53dabb(0x15f)](this[_0x53dabb(0x18e)]);}static[a84_0x51a09e(0x17a)](){const _0xdad6ef=a84_0x51a09e,_0x3488e0={'NnFma':function(_0x1a5445,_0x2f7eab){return _0x1a5445===_0x2f7eab;},'SEwXu':function(_0x1f1279,_0x52c48a){return _0x1f1279(_0x52c48a);}};if(_0x3488e0['NnFma'](Object[_0xdad6ef(0x158)](this[_0xdad6ef(0x18e)])[_0xdad6ef(0x135)],0x0)&&process[_0xdad6ef(0x185)][_0xdad6ef(0x191)])try{this['userConfig']=JSON[_0xdad6ef(0x181)](process[_0xdad6ef(0x185)][_0xdad6ef(0x191)]);}catch(_0x5b7204){_0x3488e0[_0xdad6ef(0x136)](debug,_0xdad6ef(0x143)+_0x5b7204[_0xdad6ef(0x12f)]()),this[_0xdad6ef(0x18e)]={};}return this['userConfig'];}static[a84_0x51a09e(0x17d)](_0x3c39cf){const _0x5206ac=a84_0x51a09e;this[_0x5206ac(0x14f)]=_0x3c39cf,process['env'][_0x5206ac(0x161)]=JSON['stringify'](this[_0x5206ac(0x14f)]);}static['getFramework'](){const _0x30f8b8=a84_0x51a09e,_0x5356fb={'MEZAG':function(_0x5d7bab,_0x5bb401){return _0x5d7bab===_0x5bb401;},'lOEGK':function(_0x544586,_0x52da91){return _0x544586(_0x52da91);}};if(_0x5356fb[_0x30f8b8(0x150)](Object['keys'](this[_0x30f8b8(0x14f)])[_0x30f8b8(0x135)],0x0)&&process[_0x30f8b8(0x185)]['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS'])try{this[_0x30f8b8(0x14f)]=JSON[_0x30f8b8(0x181)](process[_0x30f8b8(0x185)]['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS']);}catch(_0x51dbe8){_0x5356fb[_0x30f8b8(0x18a)](debug,_0x30f8b8(0x182)+_0x51dbe8[_0x30f8b8(0x12f)]());}return this[_0x30f8b8(0x14f)];}static[a84_0x51a09e(0x15a)](_0x1f5c41,_0x343ece,_0x325ede){const _0x4d4487=a84_0x51a09e;_0x1f5c41&&this[_0x4d4487(0x17d)](_0x1f5c41),_0x343ece&&this[_0x4d4487(0x153)](_0x343ece),_0x325ede&&this[_0x4d4487(0x17e)](_0x325ede[_0x4d4487(0x155)],_0x325ede[_0x4d4487(0x128)]);}static async[a84_0x51a09e(0x17b)](_0x13ab56,_0x20a61d){const _0x32b08f=a84_0x51a09e,_0x4d6e7a={'QeJgv':function(_0x1de3cc,_0x1b9d72){return _0x1de3cc(_0x1b9d72);},'byRyM':function(_0x1ece16,_0x459dfe){return _0x1ece16(_0x459dfe);},'MzNkk':function(_0x48c282,_0x1987ca){return _0x48c282(_0x1987ca);},'Hjyxj':_0x32b08f(0x15b),'PNyLJ':function(_0x3619f2){return _0x3619f2();},'KvdqS':_0x32b08f(0x14d),'TkPfl':_0x32b08f(0x12d),'KawGR':_0x32b08f(0x190),'YnpoM':function(_0x49d40f,_0x1f92f5,_0xdfcd67,_0x19cbfc,_0x4638dc,_0x92178b){return _0x49d40f(_0x1f92f5,_0xdfcd67,_0x19cbfc,_0x4638dc,_0x92178b);},'GgQex':_0x32b08f(0x157)};this[_0x32b08f(0x16f)]();if(!this[_0x32b08f(0x15c)])return _0x4d6e7a[_0x32b08f(0x187)](debug,_0x4d6e7a[_0x32b08f(0x159)]);this[_0x32b08f(0x17a)](),this[_0x32b08f(0x18f)]();const _0x55edeb={'hashed_id':process[_0x32b08f(0x185)][_0x32b08f(0x125)],'observability_version':{'sdkVersion':_0x4d6e7a[_0x32b08f(0x123)](getAgentVersion),'frameworkName':this['frameworkDetails'][_0x32b08f(0x18d)],'frameworkVersion':this[_0x32b08f(0x14f)]['frameworkVersion']},'exception':{'error':_0x13ab56[_0x32b08f(0x12f)](),'stackTrace':_0x20a61d},'config':this[_0x32b08f(0x18e)]},_0x56c2c7=_0x4d6e7a[_0x32b08f(0x16d)],_0x481de7={};_0x481de7[_0x32b08f(0x155)]=this['credentials'][_0x32b08f(0x155)],_0x481de7[_0x32b08f(0x129)]=this['credentials']['accessKey'];const _0x296477={};_0x296477[_0x32b08f(0x134)]=_0x4d6e7a[_0x32b08f(0x15d)],_0x296477[_0x32b08f(0x198)]=_0x4d6e7a[_0x32b08f(0x156)];const _0x21c1f4={};_0x21c1f4['auth']=_0x481de7,_0x21c1f4[_0x32b08f(0x151)]=_0x296477;const _0x58c8ff=_0x21c1f4;_0x4d6e7a[_0x32b08f(0x189)](nodeRequest,_0x4d6e7a['GgQex'],_0x56c2c7,_0x55edeb,_0x58c8ff,![])['then'](_0x20bbc2=>{const _0x3ffdda=_0x32b08f;_0x4d6e7a[_0x3ffdda(0x18b)](debug,_0x3ffdda(0x131)+JSON[_0x3ffdda(0x15f)](_0x20bbc2));})['catch'](_0x4a53c1=>{const _0x564c8c=_0x32b08f;_0x4d6e7a[_0x564c8c(0x188)](debug,_0x564c8c(0x137)+util[_0x564c8c(0x170)](_0x4a53c1));});}static[a84_0x51a09e(0x179)](_0x35deb4){const _0x480cb5=a84_0x51a09e,_0x2a4f0f={};_0x2a4f0f[_0x480cb5(0x145)]=_0x480cb5(0x12e),_0x2a4f0f[_0x480cb5(0x174)]=_0x480cb5(0x155),_0x2a4f0f[_0x480cb5(0x17c)]=_0x480cb5(0x194),_0x2a4f0f[_0x480cb5(0x140)]=_0x480cb5(0x128),_0x2a4f0f[_0x480cb5(0x13b)]=_0x480cb5(0x129),_0x2a4f0f[_0x480cb5(0x17f)]=function(_0xea9499,_0x167996){return _0xea9499===_0x167996;},_0x2a4f0f[_0x480cb5(0x141)]=_0x480cb5(0x177);const _0x42ed60=_0x2a4f0f;if(!_0x35deb4)return;const _0x1179d5=[_0x42ed60['EDCum'],_0x42ed60[_0x480cb5(0x174)],_0x42ed60['nNfLr'],_0x42ed60['SYIya'],_0x42ed60[_0x480cb5(0x13b)]];for(const _0x3852e9 in _0x35deb4){if(_0x1179d5['includes'](_0x3852e9['toLowerCase']()))delete _0x35deb4[_0x3852e9];else _0x42ed60[_0x480cb5(0x17f)](typeof _0x35deb4[_0x3852e9],_0x42ed60['lsrdK'])&&this['recursivelyDeletePIIKeysFromObject'](_0x35deb4[_0x3852e9]);}}static[a84_0x51a09e(0x146)](_0x2de621){const _0x13c3ac=a84_0x51a09e,_0x202279=JSON[_0x13c3ac(0x181)](JSON[_0x13c3ac(0x15f)](_0x2de621));return this[_0x13c3ac(0x179)](_0x202279),_0x202279;}}const a84_0x17630f={};a84_0x17630f[a84_0x51a09e(0x132)]=o11yErrorHandler,a84_0x17630f[a84_0x51a09e(0x139)]=o11yClassErrorHandler,a84_0x17630f[a84_0x51a09e(0x15e)]=CrashReporter,module[a84_0x51a09e(0x144)]=a84_0x17630f;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a85_0x30bb(){const _0x21d2bc=['CBTSessionCreated','jLBkG','.\x20Request\x20Size\x20-\x20','724244XxXlTx','XWeMt','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','started','splice','TgWzr','TTLgQ','EXCEPTION\x20IN\x20','data','HookRunStarted','5|3|0|4|1|2','hsTsh','aRIjc','includes','dBlxR','resetEventBatchPolling','logs','TestRunFinished','eventUrl','Processing\x20batch\x20events\x20for\x20','PTdOP','zpTtw','yNsws','18cecUtR','response','wUdgc','BScVM','2849072zkSAec','util','uuid','WNQnu','pollEventBatchInterval','FbxWg','byteLength','qBEAk','2778610YPLZrB','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','length','JZNMY','pendingUploads','utf8','format','BnhsR','max','map','message','bjEbp','batchAndPostEvents','aNXjp','TEST_SCREENSHOT','TestRunStarted','12007930ZVANrN','kind','split','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','hook_run','\x20event\x20successful\x20for\x20events\x20','join','Interval-Queue','Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20','30vzdZpC','queue','bETbF','9azmqXz','LogCreated','startEventBatchPolling','screenshotEventUrl','statusText','stringify','removeEventBatchPolling','2344EaezQz','XLaEi','VjfiT','Shutdown-Queue','11ixYoum','TBnbY','event_type','error','zLyqq','add','\x20--\x20','RESETTING','jCXOE','proceedWithData','instance','HookRunFinished','438BxIsnV','Remaining\x20Queue\x20Length\x20-\x20','YsZoc','REMOVING','JnsBm','TAlXD','api/v1/screenshots','804BbhOBK','shutdown','uploadPending','proceedWithUrl','shouldProceed','383117YiTCBS','slice','78065MWSfLu','orhlt','exports','QHcBd','BATCH_EVENT_TYPES','wnAKE','fIgOF','getInstance','api/v1/batch','test_run'];a85_0x30bb=function(){return _0x21d2bc;};return a85_0x30bb();}const a85_0x3bd5dc=a85_0x337a;(function(_0x2678de,_0x5194c1){const _0xf4e9d3=a85_0x337a,_0x75ca96=_0x2678de();while(!![]){try{const _0x1d2b67=parseInt(_0xf4e9d3(0xdc))/0x1*(-parseInt(_0xf4e9d3(0xec))/0x2)+-parseInt(_0xf4e9d3(0x11e))/0x3*(-parseInt(_0xf4e9d3(0x107))/0x4)+-parseInt(_0xf4e9d3(0x12a))/0x5+-parseInt(_0xf4e9d3(0xd2))/0x6*(parseInt(_0xf4e9d3(0xf8))/0x7)+-parseInt(_0xf4e9d3(0x122))/0x8*(-parseInt(_0xf4e9d3(0xd5))/0x9)+-parseInt(_0xf4e9d3(0xc9))/0xa*(-parseInt(_0xf4e9d3(0xe0))/0xb)+parseInt(_0xf4e9d3(0xf3))/0xc*(-parseInt(_0xf4e9d3(0xfa))/0xd);if(_0x1d2b67===_0x5194c1)break;else _0x75ca96['push'](_0x75ca96['shift']());}catch(_0xaa3f31){_0x75ca96['push'](_0x75ca96['shift']());}}}(a85_0x30bb,0xdb4c5));function a85_0x337a(_0x2922ee,_0x3e63be){const _0x30bbfb=a85_0x30bb();return a85_0x337a=function(_0x337a3b,_0x4201fc){_0x337a3b=_0x337a3b-0xc0;let _0x50fb59=_0x30bbfb[_0x337a3b];return _0x50fb59;},a85_0x337a(_0x2922ee,_0x3e63be);}const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require('./constants'),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require('./utils'),{nestedKeyValue}=require('../helper'),util=require(a85_0x3bd5dc(0x123));class RequestQueueHandler{static [a85_0x3bd5dc(0xea)];[a85_0x3bd5dc(0x12e)]=0x0;constructor(){const _0x37a3bf=a85_0x3bd5dc,_0x26dccc={};_0x26dccc['CvccE']=_0x37a3bf(0x111),_0x26dccc[_0x37a3bf(0xe8)]=_0x37a3bf(0x102),_0x26dccc[_0x37a3bf(0x113)]=_0x37a3bf(0xd6),_0x26dccc[_0x37a3bf(0xf0)]=_0x37a3bf(0x104),_0x26dccc[_0x37a3bf(0x115)]=_0x37a3bf(0x118),_0x26dccc[_0x37a3bf(0xe4)]='TestRunSkipped',_0x26dccc['QHcBd']=_0x37a3bf(0xeb),_0x26dccc[_0x37a3bf(0x100)]=_0x37a3bf(0xc8),_0x26dccc[_0x37a3bf(0xfb)]=_0x37a3bf(0x110),_0x26dccc[_0x37a3bf(0x10c)]=_0x37a3bf(0xf2);const _0x19cb59=_0x26dccc,_0xfb61e8=_0x19cb59['CvccE'][_0x37a3bf(0xcb)]('|');let _0xd102e9=0x0;while(!![]){switch(_0xfb61e8[_0xd102e9++]){case'0':this['eventUrl']=_0x19cb59[_0x37a3bf(0xe8)];continue;case'1':this[_0x37a3bf(0xfe)]=[_0x19cb59[_0x37a3bf(0x113)],_0x19cb59[_0x37a3bf(0xf0)],_0x19cb59[_0x37a3bf(0x115)],_0x19cb59['zLyqq'],_0x19cb59[_0x37a3bf(0xfd)],_0x19cb59[_0x37a3bf(0x100)],_0x19cb59[_0x37a3bf(0xfb)]];continue;case'2':this[_0x37a3bf(0x126)]=null;continue;case'3':this[_0x37a3bf(0x10a)]=![];continue;case'4':this[_0x37a3bf(0xd8)]=_0x19cb59['TgWzr'];continue;case'5':this[_0x37a3bf(0xd3)]=[];continue;}break;}}static[a85_0x3bd5dc(0x101)](){const _0x272478=a85_0x3bd5dc;return!RequestQueueHandler[_0x272478(0xea)]&&(RequestQueueHandler[_0x272478(0xea)]=new RequestQueueHandler()),RequestQueueHandler['instance'];}['start']=()=>{const _0x58ac8c=a85_0x3bd5dc;!this[_0x58ac8c(0x10a)]&&(this['started']=!![],this[_0x58ac8c(0xd7)]());};[a85_0x3bd5dc(0xe5)]=_0x3c3707=>{const _0x4578b6=a85_0x3bd5dc,_0x425ef5={'eYscB':function(_0x4240b3,_0x3a9010){return _0x4240b3===_0x3a9010;},'qhpsI':_0x4578b6(0xc7),'hASAr':function(_0x18bfe5,_0x3b89b0){return _0x18bfe5(_0x3b89b0);},'XWeMt':_0x4578b6(0xcc)};if(this[_0x4578b6(0xfe)][_0x4578b6(0x114)](_0x3c3707['event_type'])){if(_0x3c3707[_0x4578b6(0x117)]&&_0x3c3707[_0x4578b6(0x117)][0x0]&&_0x425ef5['eYscB'](_0x3c3707['logs'][0x0][_0x4578b6(0xca)],_0x425ef5['qhpsI'])){const _0x2ffb33={};return _0x2ffb33['shouldProceed']=!![],_0x2ffb33[_0x4578b6(0xe9)]=[_0x3c3707],_0x2ffb33['proceedWithUrl']=this[_0x4578b6(0xd8)],_0x2ffb33;}this[_0x4578b6(0xd3)]['push'](_0x3c3707);let _0x3bcfbf=null;const _0x3499b5=this[_0x4578b6(0xf7)]();_0x3499b5&&(_0x425ef5['hASAr'](trace,_0x425ef5[_0x4578b6(0x108)]),_0x3bcfbf=this[_0x4578b6(0xd3)][_0x4578b6(0xf9)](0x0,BATCH_SIZE),this[_0x4578b6(0xd3)][_0x4578b6(0x10b)](0x0,BATCH_SIZE),this[_0x4578b6(0x116)]());const _0xf9142c={};return _0xf9142c['shouldProceed']=_0x3499b5,_0xf9142c['proceedWithData']=_0x3bcfbf,_0xf9142c[_0x4578b6(0xf6)]=this[_0x4578b6(0x119)],_0xf9142c;}const _0x1a565d={};return _0x1a565d[_0x4578b6(0xf7)]=!![],_0x1a565d;};[a85_0x3bd5dc(0xf4)]=async()=>{const _0x32b0a1=a85_0x3bd5dc,_0x49d7d0={'PTdOP':_0x32b0a1(0xef),'OkQGF':function(_0x4954ef,_0x425878){return _0x4954ef>_0x425878;},'WNQnu':_0x32b0a1(0xdf),'VjfiT':function(_0x551228,_0x270576){return _0x551228(_0x270576);}};await this[_0x32b0a1(0xf5)](),this[_0x32b0a1(0xdb)](_0x49d7d0[_0x32b0a1(0x11b)]);while(_0x49d7d0['OkQGF'](this[_0x32b0a1(0xd3)][_0x32b0a1(0x12c)],0x0)){const _0x2b23d4=this[_0x32b0a1(0xd3)]['slice'](0x0,BATCH_SIZE);this[_0x32b0a1(0xd3)]['splice'](0x0,BATCH_SIZE),await this[_0x32b0a1(0xc5)](this[_0x32b0a1(0x119)],_0x49d7d0[_0x32b0a1(0x125)],_0x2b23d4);}_0x49d7d0['OkQGF'](this[_0x32b0a1(0x12e)],0x0)&&_0x49d7d0[_0x32b0a1(0xde)](debug,_0x32b0a1(0xd1)+this[_0x32b0a1(0x12e)]);};[a85_0x3bd5dc(0xc5)]=async(_0x1b6207,_0x112dbc,_0x55288f)=>{const _0x2766f0=a85_0x3bd5dc,_0x4bf8c2={'qBEAk':function(_0x5bc2c4,_0x1ee498){return _0x5bc2c4(_0x1ee498);},'TTLgQ':_0x2766f0(0x12f),'FbxWg':function(_0x56d7d2){return _0x56d7d2();},'BnhsR':function(_0xec3e01,_0x425beb,_0x46b7e5,_0x2ebe48,_0x509691){return _0xec3e01(_0x425beb,_0x46b7e5,_0x2ebe48,_0x509691);},'hsTsh':'POST','zpTtw':function(_0x28c5c8,_0x1d95b2){return _0x28c5c8(_0x1d95b2);},'JZNMY':function(_0x127a1a,_0x58369f){return _0x127a1a-_0x58369f;},'bjEbp':function(_0x2e62ce,_0x57d82e){return _0x2e62ce(_0x57d82e);}};let _0x3a0932='';try{_0x3a0932=_0x55288f[_0x2766f0(0xc2)](_0xb2b222=>'\x27'+_0xb2b222[_0x2766f0(0xe2)]+'\x27:'+(nestedKeyValue(_0xb2b222,[_0x2766f0(0x103),_0x2766f0(0x124)])||nestedKeyValue(_0xb2b222,[_0x2766f0(0xcd),_0x2766f0(0x124)])))[_0x2766f0(0xcf)](','),_0x4bf8c2[_0x2766f0(0x129)](debug,_0x2766f0(0x11a)+_0x112dbc+_0x2766f0(0x106)+Buffer[_0x2766f0(0x128)](util[_0x2766f0(0x130)]('%j',_0x55288f),_0x4bf8c2[_0x2766f0(0x10d)])+'\x20bytes.\x20Events\x20are\x20'+_0x3a0932);}catch(_0x3a160e){_0x4bf8c2[_0x2766f0(0x129)](debug,_0x2766f0(0x12b)+util[_0x2766f0(0x130)](_0x3a160e)+'}');}const _0x189b0b={'headers':_0x4bf8c2[_0x2766f0(0x127)](getDefaultHeaders)};try{const _0x3cfffc=await _0x4bf8c2[_0x2766f0(0xc0)](nodeRequest,_0x4bf8c2[_0x2766f0(0x112)],_0x1b6207,_0x55288f,_0x189b0b);if(_0x3cfffc[_0x2766f0(0x10f)][_0x2766f0(0xe3)]){const _0xf411be={};_0xf411be['message']=_0x3cfffc['data']['error'];throw _0xf411be;}else _0x4bf8c2[_0x2766f0(0x11c)](debug,_0x112dbc+_0x2766f0(0xce)+_0x3a0932+_0x2766f0(0xe6)+util[_0x2766f0(0x130)]('%j',_0x3cfffc['data'])),this[_0x2766f0(0x12e)]=Math[_0x2766f0(0xc1)](0x0,_0x4bf8c2[_0x2766f0(0x12d)](this[_0x2766f0(0x12e)],_0x55288f[_0x2766f0(0x12c)]));}catch(_0x1cd5a2){_0x1cd5a2[_0x2766f0(0x11f)]?_0x4bf8c2[_0x2766f0(0xc4)](debug,_0x2766f0(0x10e)+_0x112dbc+_0x2766f0(0x109)+_0x1cd5a2[_0x2766f0(0x11f)]['status']+'\x20'+_0x1cd5a2[_0x2766f0(0x11f)][_0x2766f0(0xd9)]+'\x20'+JSON[_0x2766f0(0xda)](_0x1cd5a2[_0x2766f0(0x11f)])):_0x4bf8c2[_0x2766f0(0x11c)](debug,_0x2766f0(0x10e)+_0x112dbc+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20'+(_0x1cd5a2[_0x2766f0(0xc3)]||_0x1cd5a2)),this['pendingUploads']=Math[_0x2766f0(0xc1)](0x0,_0x4bf8c2['JZNMY'](this['pendingUploads'],_0x55288f['length']));}};[a85_0x3bd5dc(0xd7)]=()=>{const _0x4e60ef=a85_0x3bd5dc,_0xc78019={'jLBkG':function(_0x34e6d8,_0x397d06){return _0x34e6d8>_0x397d06;},'Uowmh':function(_0x358ce5,_0x39374c){return _0x358ce5(_0x39374c);},'wnAKE':_0x4e60ef(0xd0),'BScVM':function(_0x4f0477,_0x5b3385){return _0x4f0477(_0x5b3385);},'YsZoc':function(_0x4b2e68,_0x1cb38d,_0x4496e6){return _0x4b2e68(_0x1cb38d,_0x4496e6);}};this['pollEventBatchInterval']=_0xc78019[_0x4e60ef(0xee)](setInterval,async()=>{const _0x2d5f0e=_0x4e60ef;if(_0xc78019[_0x2d5f0e(0x105)](this[_0x2d5f0e(0xd3)][_0x2d5f0e(0x12c)],0x0)){_0xc78019['Uowmh'](trace,'Processing\x20events.\x20Queue\x20Length\x20-\x20'+this['queue'][_0x2d5f0e(0x12c)]);const _0x40dec5=this[_0x2d5f0e(0xd3)]['slice'](0x0,BATCH_SIZE);this['queue'][_0x2d5f0e(0x10b)](0x0,BATCH_SIZE),await this[_0x2d5f0e(0xc5)](this[_0x2d5f0e(0x119)],_0xc78019[_0x2d5f0e(0xff)],_0x40dec5),_0xc78019[_0x2d5f0e(0x121)](trace,_0x2d5f0e(0xed)+this[_0x2d5f0e(0xd3)]['length']);}},BATCH_INTERVAL);};[a85_0x3bd5dc(0x116)]=()=>{const _0x32679f=a85_0x3bd5dc,_0x495106={};_0x495106[_0x32679f(0xdd)]=_0x32679f(0xe7);const _0x307637=_0x495106;this[_0x32679f(0xdb)](_0x307637[_0x32679f(0xdd)]),this['startEventBatchPolling']();};[a85_0x3bd5dc(0xdb)]=_0x501b1e=>{const _0x5b614c=a85_0x3bd5dc,_0x56d288={'TAlXD':function(_0x2920ee,_0x695941){return _0x2920ee(_0x695941);},'yNsws':function(_0x8e63f3,_0x57bd6a){return _0x8e63f3===_0x57bd6a;},'bETbF':_0x5b614c(0xef)};this['pollEventBatchInterval']&&(_0x56d288[_0x5b614c(0xf1)](clearInterval,this['pollEventBatchInterval']),this[_0x5b614c(0x126)]=null,_0x56d288[_0x5b614c(0x11d)](_0x501b1e,_0x56d288[_0x5b614c(0xd4)])&&(this[_0x5b614c(0x10a)]=![]));};[a85_0x3bd5dc(0xf7)]=()=>{const _0x2b828f=a85_0x3bd5dc,_0x944ea2={};_0x944ea2[_0x2b828f(0x120)]=function(_0x4d793e,_0x15064c){return _0x4d793e>=_0x15064c;};const _0x4ba052=_0x944ea2;return _0x4ba052[_0x2b828f(0x120)](this[_0x2b828f(0xd3)][_0x2b828f(0x12c)],BATCH_SIZE);};async[a85_0x3bd5dc(0xf5)](_0x7a2527=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x267ac1=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x56d9f5=a85_0x3bd5dc,_0x499142={'aNXjp':function(_0x142410,_0x25415e){return _0x142410<=_0x25415e;},'UXQGa':function(_0x1c1f88,_0x4b8d09){return _0x1c1f88(_0x4b8d09);},'TBnbY':function(_0x3148be,_0x47ef2c){return _0x3148be-_0x47ef2c;}};if(_0x499142['aNXjp'](this['pendingUploads'],0x0)||_0x499142[_0x56d9f5(0xc6)](_0x7a2527,0x0))return;return await _0x499142['UXQGa'](sleep,_0x267ac1),this[_0x56d9f5(0xf5)](_0x499142[_0x56d9f5(0xe1)](_0x7a2527,_0x267ac1));}}module[a85_0x3bd5dc(0xfc)]=RequestQueueHandler;
|
|
1
|
+
const a85_0x566d1f=a85_0x476c;(function(_0x2cc0e8,_0x5143fe){const _0x1fc5c2=a85_0x476c,_0x4a9042=_0x2cc0e8();while(!![]){try{const _0x4aa8fc=parseInt(_0x1fc5c2(0x105))/0x1+-parseInt(_0x1fc5c2(0x106))/0x2*(parseInt(_0x1fc5c2(0x107))/0x3)+-parseInt(_0x1fc5c2(0xc3))/0x4*(parseInt(_0x1fc5c2(0xf9))/0x5)+-parseInt(_0x1fc5c2(0x12c))/0x6+parseInt(_0x1fc5c2(0xd7))/0x7+-parseInt(_0x1fc5c2(0x12d))/0x8+parseInt(_0x1fc5c2(0xfd))/0x9;if(_0x4aa8fc===_0x5143fe)break;else _0x4a9042['push'](_0x4a9042['shift']());}catch(_0x236126){_0x4a9042['push'](_0x4a9042['shift']());}}}(a85_0x4386,0x3fc93));function a85_0x476c(_0x252da8,_0x20adcd){const _0x438635=a85_0x4386();return a85_0x476c=function(_0x476cfc,_0x2dd03c){_0x476cfc=_0x476cfc-0xbf;let _0x56c953=_0x438635[_0x476cfc];return _0x56c953;},a85_0x476c(_0x252da8,_0x20adcd);}const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require(a85_0x566d1f(0xd0)),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require('./utils'),{nestedKeyValue}=require(a85_0x566d1f(0x12e)),util=require('util');class RequestQueueHandler{static [a85_0x566d1f(0xdf)];[a85_0x566d1f(0xe3)]=0x0;constructor(){const _0x8dad06=a85_0x566d1f,_0x4d3bc5={};_0x4d3bc5[_0x8dad06(0x103)]='1|5|0|3|2|4',_0x4d3bc5[_0x8dad06(0xd2)]='api/v1/batch',_0x4d3bc5[_0x8dad06(0x109)]=_0x8dad06(0xd6),_0x4d3bc5['Qntaw']='CBTSessionCreated',_0x4d3bc5[_0x8dad06(0x127)]=_0x8dad06(0xc1),_0x4d3bc5[_0x8dad06(0xd8)]=_0x8dad06(0xcb),_0x4d3bc5[_0x8dad06(0x116)]='HookRunFinished',_0x4d3bc5['TAeCU']=_0x8dad06(0xc5),_0x4d3bc5['sHDDk']=_0x8dad06(0xc0),_0x4d3bc5['SBeag']=_0x8dad06(0x120);const _0x8a80af=_0x4d3bc5,_0x4efbf3=_0x8a80af['ErXpN'][_0x8dad06(0x10f)]('|');let _0x1e5e9d=0x0;while(!![]){switch(_0x4efbf3[_0x1e5e9d++]){case'0':this[_0x8dad06(0xeb)]=_0x8a80af[_0x8dad06(0xd2)];continue;case'1':this[_0x8dad06(0xc6)]=[];continue;case'2':this[_0x8dad06(0x11b)]=[_0x8a80af['fWulv'],_0x8a80af[_0x8dad06(0xcf)],_0x8a80af[_0x8dad06(0x127)],_0x8a80af['EQQFw'],_0x8a80af[_0x8dad06(0x116)],_0x8a80af[_0x8dad06(0xfe)],_0x8a80af[_0x8dad06(0x10d)]];continue;case'3':this[_0x8dad06(0x123)]=_0x8a80af[_0x8dad06(0xf1)];continue;case'4':this[_0x8dad06(0xe2)]=null;continue;case'5':this['started']=![];continue;}break;}}static[a85_0x566d1f(0xf0)](){const _0x324125=a85_0x566d1f;return!RequestQueueHandler[_0x324125(0xdf)]&&(RequestQueueHandler['instance']=new RequestQueueHandler()),RequestQueueHandler['instance'];}[a85_0x566d1f(0xf2)]=()=>{const _0x1bf603=a85_0x566d1f;!this[_0x1bf603(0xe9)]&&(this[_0x1bf603(0xe9)]=!![],this[_0x1bf603(0xd9)]());};[a85_0x566d1f(0x12b)]=_0x4d0c61=>{const _0x2412a6=a85_0x566d1f,_0x460d6f={'kEmTT':function(_0x30aa9f,_0x504389){return _0x30aa9f===_0x504389;},'RfQHs':_0x2412a6(0x11d),'TsqQu':function(_0x260b8f,_0x557cb2){return _0x260b8f(_0x557cb2);},'wtoOw':_0x2412a6(0x108)};if(this[_0x2412a6(0x11b)][_0x2412a6(0x124)](_0x4d0c61[_0x2412a6(0xc4)])){if(_0x4d0c61[_0x2412a6(0xe7)]&&_0x4d0c61[_0x2412a6(0xe7)][0x0]&&_0x460d6f[_0x2412a6(0xee)](_0x4d0c61[_0x2412a6(0xe7)][0x0][_0x2412a6(0xbf)],_0x460d6f[_0x2412a6(0xed)])){const _0x540323={};return _0x540323[_0x2412a6(0x125)]=!![],_0x540323[_0x2412a6(0xda)]=[_0x4d0c61],_0x540323[_0x2412a6(0x113)]=this[_0x2412a6(0x123)],_0x540323;}this['queue'][_0x2412a6(0x117)](_0x4d0c61);let _0x4c5253=null;const _0x421f93=this[_0x2412a6(0x125)]();_0x421f93&&(_0x460d6f[_0x2412a6(0x10e)](trace,_0x460d6f['wtoOw']),_0x4c5253=this['queue'][_0x2412a6(0xc8)](0x0,BATCH_SIZE),this[_0x2412a6(0xc6)]['splice'](0x0,BATCH_SIZE),this[_0x2412a6(0xe8)]());const _0x67932e={};return _0x67932e[_0x2412a6(0x125)]=_0x421f93,_0x67932e[_0x2412a6(0xda)]=_0x4c5253,_0x67932e[_0x2412a6(0x113)]=this['eventUrl'],_0x67932e;}const _0x56b243={};return _0x56b243[_0x2412a6(0x125)]=!![],_0x56b243;};[a85_0x566d1f(0xd3)]=async()=>{const _0x3d0e3c=a85_0x566d1f,_0x27e4ad={'UTitj':_0x3d0e3c(0xc7),'anJPe':function(_0x269dd8,_0x1365b3){return _0x269dd8>_0x1365b3;},'ktmvs':_0x3d0e3c(0x126),'OuhpQ':function(_0x259f3a,_0x388aec){return _0x259f3a>_0x388aec;},'sUOfO':function(_0x57f4c0,_0x29b7d6){return _0x57f4c0(_0x29b7d6);}};await this[_0x3d0e3c(0xf3)](),this['removeEventBatchPolling'](_0x27e4ad['UTitj']);while(_0x27e4ad[_0x3d0e3c(0xef)](this[_0x3d0e3c(0xc6)]['length'],0x0)){const _0x2ce0fa=this[_0x3d0e3c(0xc6)][_0x3d0e3c(0xc8)](0x0,BATCH_SIZE);this['queue'][_0x3d0e3c(0xe5)](0x0,BATCH_SIZE),await this[_0x3d0e3c(0x12f)](this[_0x3d0e3c(0xeb)],_0x27e4ad[_0x3d0e3c(0x111)],_0x2ce0fa);}_0x27e4ad[_0x3d0e3c(0xea)](this['pendingUploads'],0x0)&&_0x27e4ad[_0x3d0e3c(0xff)](debug,'Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20'+this[_0x3d0e3c(0xe3)]);};[a85_0x566d1f(0x12f)]=async(_0x7b5c31,_0x4f10fe,_0x297e98)=>{const _0x28372a=a85_0x566d1f,_0x55d368={'HSyta':function(_0x2533ea,_0x37f9db){return _0x2533ea(_0x37f9db);},'NwAgB':_0x28372a(0xdd),'rIUoM':function(_0xd66551){return _0xd66551();},'pKjNC':function(_0x14dd66,_0x55dbd5,_0x1c9046,_0x7e0799,_0x4ae35b){return _0x14dd66(_0x55dbd5,_0x1c9046,_0x7e0799,_0x4ae35b);},'HVvgK':'POST','dMnAy':function(_0xdee380,_0x55409f){return _0xdee380(_0x55409f);},'QwIcu':function(_0x286b39,_0x410a56){return _0x286b39-_0x410a56;},'WXNky':function(_0x302229,_0x500ead){return _0x302229(_0x500ead);},'YQKUI':function(_0x5c04f5,_0x49f245){return _0x5c04f5(_0x49f245);}};let _0x7cfa88='';try{_0x7cfa88=_0x297e98['map'](_0x48e269=>'\x27'+_0x48e269[_0x28372a(0xc4)]+'\x27:'+(nestedKeyValue(_0x48e269,[_0x28372a(0x11c),'uuid'])||nestedKeyValue(_0x48e269,[_0x28372a(0x100),_0x28372a(0xfc)])))[_0x28372a(0xf4)](','),_0x55d368[_0x28372a(0xca)](debug,_0x28372a(0x12a)+_0x4f10fe+_0x28372a(0xcd)+Buffer[_0x28372a(0x10b)](util['format']('%j',_0x297e98),_0x55d368[_0x28372a(0xcc)])+_0x28372a(0x129)+_0x7cfa88);}catch(_0x50f4f2){_0x55d368[_0x28372a(0xca)](debug,_0x28372a(0x118)+util[_0x28372a(0x10a)](_0x50f4f2)+'}');}const _0x4e175e={'headers':_0x55d368[_0x28372a(0xe6)](getDefaultHeaders)};try{const _0x510813=await _0x55d368[_0x28372a(0xd5)](nodeRequest,_0x55d368[_0x28372a(0xc9)],_0x7b5c31,_0x297e98,_0x4e175e);if(_0x510813['data'][_0x28372a(0xf7)]){const _0x5eccaa={};_0x5eccaa['message']=_0x510813['data'][_0x28372a(0xf7)];throw _0x5eccaa;}else _0x55d368[_0x28372a(0x119)](debug,_0x4f10fe+_0x28372a(0xd1)+_0x7cfa88+_0x28372a(0xfb)+util[_0x28372a(0x10a)]('%j',_0x510813['data'])),this[_0x28372a(0xe3)]=Math[_0x28372a(0x102)](0x0,_0x55d368[_0x28372a(0xdb)](this[_0x28372a(0xe3)],_0x297e98['length']));}catch(_0x4a717c){_0x4a717c[_0x28372a(0x115)]?_0x55d368[_0x28372a(0xde)](debug,_0x28372a(0x11a)+_0x4f10fe+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20'+_0x4a717c[_0x28372a(0x115)][_0x28372a(0xd4)]+'\x20'+_0x4a717c[_0x28372a(0x115)][_0x28372a(0x101)]+'\x20'+JSON['stringify'](_0x4a717c[_0x28372a(0x115)])):_0x55d368[_0x28372a(0xf5)](debug,_0x28372a(0x11a)+_0x4f10fe+_0x28372a(0xe1)+(_0x4a717c[_0x28372a(0x114)]||_0x4a717c)),this['pendingUploads']=Math['max'](0x0,_0x55d368[_0x28372a(0xdb)](this[_0x28372a(0xe3)],_0x297e98[_0x28372a(0xfa)]));}};['startEventBatchPolling']=()=>{const _0x29a874=a85_0x566d1f,_0x4eb725={'DUDgD':function(_0x23fbe1,_0x5cbbaf){return _0x23fbe1>_0x5cbbaf;},'kCSKq':function(_0x53316e,_0x4dd93c){return _0x53316e(_0x4dd93c);},'ScQQE':'Interval-Queue','UoMkh':function(_0x5ec415,_0x2f6a75){return _0x5ec415(_0x2f6a75);},'qMFcJ':function(_0x2e4839,_0x22223c,_0x529aa8){return _0x2e4839(_0x22223c,_0x529aa8);}};this['pollEventBatchInterval']=_0x4eb725[_0x29a874(0x11e)](setInterval,async()=>{const _0x4ea32d=_0x29a874;if(_0x4eb725[_0x4ea32d(0xce)](this[_0x4ea32d(0xc6)][_0x4ea32d(0xfa)],0x0)){_0x4eb725[_0x4ea32d(0xe0)](trace,_0x4ea32d(0xf8)+this['queue'][_0x4ea32d(0xfa)]);const _0x1c3513=this[_0x4ea32d(0xc6)][_0x4ea32d(0xc8)](0x0,BATCH_SIZE);this['queue'][_0x4ea32d(0xe5)](0x0,BATCH_SIZE),await this[_0x4ea32d(0x12f)](this[_0x4ea32d(0xeb)],_0x4eb725[_0x4ea32d(0x11f)],_0x1c3513),_0x4eb725[_0x4ea32d(0xdc)](trace,_0x4ea32d(0xf6)+this['queue'][_0x4ea32d(0xfa)]);}},BATCH_INTERVAL);};['resetEventBatchPolling']=()=>{const _0x410985=a85_0x566d1f,_0x351553={};_0x351553[_0x410985(0xe4)]=_0x410985(0x122);const _0x407a29=_0x351553;this['removeEventBatchPolling'](_0x407a29[_0x410985(0xe4)]),this[_0x410985(0xd9)]();};[a85_0x566d1f(0x121)]=_0x3b1567=>{const _0x37f207=a85_0x566d1f,_0x17a69a={'vXhvn':function(_0x517156,_0x30f4bc){return _0x517156(_0x30f4bc);},'oYgyw':function(_0x5d0944,_0x11dc71){return _0x5d0944===_0x11dc71;},'bgpHQ':_0x37f207(0xc7)};this[_0x37f207(0xe2)]&&(_0x17a69a[_0x37f207(0xc2)](clearInterval,this[_0x37f207(0xe2)]),this[_0x37f207(0xe2)]=null,_0x17a69a[_0x37f207(0x128)](_0x3b1567,_0x17a69a[_0x37f207(0xec)])&&(this[_0x37f207(0xe9)]=![]));};['shouldProceed']=()=>{const _0x5d5c77=a85_0x566d1f,_0x2bd005={};_0x2bd005[_0x5d5c77(0x112)]=function(_0x4df357,_0x5c6dbe){return _0x4df357>=_0x5c6dbe;};const _0xd960a5=_0x2bd005;return _0xd960a5[_0x5d5c77(0x112)](this[_0x5d5c77(0xc6)][_0x5d5c77(0xfa)],BATCH_SIZE);};async['uploadPending'](_0x5f1bac=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x106e08=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x4ad79d=a85_0x566d1f,_0x377052={'DURoE':function(_0x2eab85,_0x133d30){return _0x2eab85<=_0x133d30;},'zCntR':function(_0x23b5b5,_0x2b9318){return _0x23b5b5<=_0x2b9318;},'qkNcB':function(_0x35ff0a,_0x571451){return _0x35ff0a(_0x571451);},'Hnaww':function(_0x39f67d,_0x2510a5){return _0x39f67d-_0x2510a5;}};if(_0x377052['DURoE'](this[_0x4ad79d(0xe3)],0x0)||_0x377052['zCntR'](_0x5f1bac,0x0))return;return await _0x377052[_0x4ad79d(0x110)](sleep,_0x106e08),this[_0x4ad79d(0xf3)](_0x377052[_0x4ad79d(0x104)](_0x5f1bac,_0x106e08));}}module[a85_0x566d1f(0x10c)]=RequestQueueHandler;function a85_0x4386(){const _0x19067e=['utf8','WXNky','instance','kCSKq','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','pollEventBatchInterval','pendingUploads','LYOkT','splice','rIUoM','logs','resetEventBatchPolling','started','OuhpQ','eventUrl','bgpHQ','RfQHs','kEmTT','anJPe','getInstance','SBeag','start','uploadPending','join','YQKUI','Remaining\x20Queue\x20Length\x20-\x20','error','Processing\x20events.\x20Queue\x20Length\x20-\x20','4180cdAjlR','length','\x20--\x20','uuid','11919132fWOyiT','TAeCU','sUOfO','hook_run','statusText','max','ErXpN','Hnaww','34339DcOysP','32138wltlwH','45MBmjIv','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','fWulv','format','byteLength','exports','sHDDk','TsqQu','split','qkNcB','ktmvs','kKfJQ','proceedWithUrl','message','response','GyZFT','push','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','dMnAy','EXCEPTION\x20IN\x20','BATCH_EVENT_TYPES','test_run','TEST_SCREENSHOT','qMFcJ','ScQQE','api/v1/screenshots','removeEventBatchPolling','RESETTING','screenshotEventUrl','includes','shouldProceed','Shutdown-Queue','piJDh','oYgyw','\x20bytes.\x20Events\x20are\x20','Processing\x20batch\x20events\x20for\x20','add','2605296gEPXag','1935672CJcYLh','../helper','batchAndPostEvents','kind','HookRunStarted','TestRunFinished','vXhvn','1124jpMrWU','event_type','TestRunStarted','queue','REMOVING','slice','HVvgK','HSyta','TestRunSkipped','NwAgB','.\x20Request\x20Size\x20-\x20','DUDgD','Qntaw','./constants','\x20event\x20successful\x20for\x20events\x20','LVcQj','shutdown','status','pKjNC','LogCreated','382942joekXf','EQQFw','startEventBatchPolling','proceedWithData','QwIcu','UoMkh'];a85_0x4386=function(){return _0x19067e;};return a85_0x4386();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a86_0x2acaaf=a86_0x5407;(function(_0x4f79c4,_0x2bd5e8){const _0x57362b=a86_0x5407,_0x23b871=_0x4f79c4();while(!![]){try{const _0x3a6eff=-parseInt(_0x57362b(0x19c))/0x1+parseInt(_0x57362b(0x139))/0x2+parseInt(_0x57362b(0x17d))/0x3*(parseInt(_0x57362b(0x1a5))/0x4)+parseInt(_0x57362b(0x1a7))/0x5+parseInt(_0x57362b(0x121))/0x6+parseInt(_0x57362b(0x1aa))/0x7+-parseInt(_0x57362b(0x17c))/0x8;if(_0x3a6eff===_0x2bd5e8)break;else _0x23b871['push'](_0x23b871['shift']());}catch(_0x1f1aef){_0x23b871['push'](_0x23b871['shift']());}}}(a86_0x3c48,0x7796d));const bsSetupHelper=require(a86_0x2acaaf(0x15a)),path=require(a86_0x2acaaf(0x178)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,sleep,isTestObservabilitySession,trace}=require('./utils'),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a86_0x2acaaf(0x135)),RequestQueueHandler=require(a86_0x2acaaf(0x14d)),logger=require(a86_0x2acaaf(0x127))[a86_0x2acaaf(0x133)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap}=require(a86_0x2acaaf(0x174));class SessionHandler{static ['requestQueueHandler']=RequestQueueHandler[a86_0x2acaaf(0x170)]();static async[a86_0x2acaaf(0x17e)](_0x2d394f,_0x55ffd5){const _0x310cc4=a86_0x2acaaf,_0x1ac79a={'feVpz':function(_0x5bee7b,_0x56dbca){return _0x5bee7b||_0x56dbca;},'GEqYg':function(_0x390029,_0x88f112){return _0x390029||_0x88f112;},'uIEwl':function(_0x1d2159,_0x167e2f){return _0x1d2159===_0x167e2f;},'shtAS':function(_0x453180,_0x42967f){return _0x453180(_0x42967f);},'XKSAH':_0x310cc4(0x19a),'RfzgS':_0x310cc4(0x17a),'BVToM':_0x310cc4(0x129),'SJqsc':function(_0x3d8a6b,_0x4fa8d5){return _0x3d8a6b(_0x4fa8d5);},'NdsVZ':function(_0x39dd76,_0x5f5972){return _0x39dd76(_0x5f5972);},'BmVFr':function(_0x18787e,_0x331f2b,_0x56211c,_0x20efbd,_0x2b88b2){return _0x18787e(_0x331f2b,_0x56211c,_0x20efbd,_0x2b88b2);},'bMFac':_0x310cc4(0x11c),'INJpJ':'api/v1/builds','iOFZr':'Build\x20creation\x20successful!','bmKzI':function(_0x5ef33d){return _0x5ef33d();},'HusBt':'true','NYwKr':_0x310cc4(0x16d),'eDxUH':'ERROR_INVALID_CREDENTIALS','qNWTC':'ERROR_ACCESS_DENIED','JWHVR':_0x310cc4(0x196)},_0x30e332=bsSetupHelper['getUserName'](_0x2d394f),_0x439ac6=bsSetupHelper[_0x310cc4(0x18f)](_0x2d394f),_0xe27d31=_0x1ac79a['feVpz'](_0x30e332,'')+':'+_0x1ac79a['GEqYg'](_0x439ac6,'');if(_0x1ac79a[_0x310cc4(0x159)](_0xe27d31,':'))return _0x1ac79a[_0x310cc4(0x19b)](debug,_0x1ac79a[_0x310cc4(0x118)]),process[_0x310cc4(0x15e)][_0x310cc4(0x182)]=_0x1ac79a['RfzgS'],[null,null];let _0x358a70=![],_0x3806cf=![];if(_0x2d394f[_0x310cc4(0x173)]&&_0x2d394f[_0x310cc4(0x13a)])_0x3806cf=!![];else _0x2d394f['browserstackAutomation']&&(_0x358a70=!![]);try{const _0x1e2ce2={'format':_0x1ac79a[_0x310cc4(0x113)],'project_name':_0x2d394f[_0x310cc4(0x1a6)]||'','name':_0x2d394f[_0x310cc4(0x137)]||path[_0x310cc4(0x1a3)](path[_0x310cc4(0x145)](process[_0x310cc4(0x141)]())),'build_identifier':_0x2d394f[_0x310cc4(0x195)],'description':_0x2d394f[_0x310cc4(0x1a2)]||'','start_time':new Date()['toISOString'](),'tags':_0x1ac79a[_0x310cc4(0x19b)](getCustomTags,_0x2d394f),'host_info':bsSetupHelper[_0x310cc4(0x11b)](),'ci_info':bsSetupHelper[_0x310cc4(0x172)](),'build_run_identifier':process[_0x310cc4(0x15e)][_0x310cc4(0x1a9)],'failed_tests_rerun':process[_0x310cc4(0x15e)][_0x310cc4(0x153)]||![],'version_control':await bsSetupHelper[_0x310cc4(0x193)](),'observability_version':{'frameworkName':_0x55ffd5[_0x310cc4(0x147)],'frameworkVersion':_0x55ffd5[_0x310cc4(0x132)],'sdkVersion':bsSetupHelper['getAgentVersion']()},'product_map':_0x1ac79a[_0x310cc4(0x124)](getProductMap,_0x2d394f)},_0x9184f8={};_0x9184f8['username']=_0x30e332,_0x9184f8[_0x310cc4(0x181)]=_0x439ac6;const _0x54d582={'auth':_0x9184f8,'headers':_0x1ac79a[_0x310cc4(0x13e)](getDefaultHeaders,![])},_0x491afa=await _0x1ac79a[_0x310cc4(0x144)](nodeRequest,_0x1ac79a[_0x310cc4(0x12a)],_0x1ac79a['INJpJ'],_0x1e2ce2,_0x54d582);_0x1ac79a[_0x310cc4(0x124)](debug,_0x1ac79a[_0x310cc4(0x18b)]);const _0x3e6a8e=_0x491afa[_0x310cc4(0x14a)];_0x3e6a8e[_0x310cc4(0x13b)]&&(process[_0x310cc4(0x15e)][_0x310cc4(0x123)]=_0x3e6a8e[_0x310cc4(0x13b)]);if(_0x1ac79a[_0x310cc4(0x14b)](isTestObservabilitySession)){process['env'][_0x310cc4(0x182)]=_0x1ac79a['HusBt'];if(_0x3e6a8e[_0x310cc4(0x190)]){process[_0x310cc4(0x15e)][_0x310cc4(0x187)]=_0x3e6a8e[_0x310cc4(0x190)];const _0xd961f3={};_0xd961f3[_0x310cc4(0x119)]=_0x30e332,_0xd961f3[_0x310cc4(0x181)]=_0x439ac6,process[_0x310cc4(0x15e)]['CREDENTIALS_FOR_CRASH_REPORTING']=JSON[_0x310cc4(0x192)](_0xd961f3);}_0x3e6a8e[_0x310cc4(0x13b)]&&(process['env'][_0x310cc4(0x12f)]=_0x3e6a8e['build_hashed_id']),_0x3e6a8e[_0x310cc4(0x19e)]&&(process[_0x310cc4(0x15e)][_0x310cc4(0x11f)]=_0x3e6a8e['allow_screenshots'][_0x310cc4(0x16a)]());}return[_0x491afa[_0x310cc4(0x14a)][_0x310cc4(0x190)],_0x491afa[_0x310cc4(0x14a)][_0x310cc4(0x13b)],_0x491afa['data'][_0x310cc4(0x19e)]];}catch(_0x9941d0){process['env'][_0x310cc4(0x123)]=_0x1ac79a['NYwKr'],process['env'][_0x310cc4(0x182)]=_0x1ac79a[_0x310cc4(0x12c)],process[_0x310cc4(0x15e)][_0x310cc4(0x187)]=_0x1ac79a[_0x310cc4(0x169)],process[_0x310cc4(0x15e)][_0x310cc4(0x12f)]=_0x1ac79a[_0x310cc4(0x169)],process[_0x310cc4(0x15e)][_0x310cc4(0x11f)]=_0x1ac79a[_0x310cc4(0x169)];_0x9941d0[_0x310cc4(0x11d)]?_0x1ac79a[_0x310cc4(0x124)](debug,_0x310cc4(0x18a)+_0x9941d0[_0x310cc4(0x11d)][_0x310cc4(0x158)]+'\x20'+_0x9941d0[_0x310cc4(0x11d)][_0x310cc4(0x155)]+'\x20'+JSON['stringify'](_0x9941d0[_0x310cc4(0x11d)]['data'])):_0x1ac79a['NdsVZ'](debug,_0x310cc4(0x18a)+(_0x9941d0[_0x310cc4(0x183)]||_0x9941d0));if(_0x9941d0&&_0x9941d0[_0x310cc4(0x183)]){const _0x4107f6=_0x9941d0['message'];switch(_0x9941d0[_0x310cc4(0x160)]){case _0x1ac79a[_0x310cc4(0x146)]:logger[_0x310cc4(0x17f)](_0x4107f6);break;case _0x1ac79a[_0x310cc4(0x184)]:logger[_0x310cc4(0x131)](_0x4107f6);break;case _0x1ac79a[_0x310cc4(0x166)]:logger[_0x310cc4(0x17f)](_0x4107f6);break;default:logger['error'](_0x4107f6);}}else console['info'](_0x310cc4(0x198)+_0x9941d0);return[null,null,null];}}static async[a86_0x2acaaf(0x194)](){const _0x352707=a86_0x2acaaf,_0x16b553={'TkiWg':_0x352707(0x11e),'fRrYZ':_0x352707(0x17a),'QpNnj':function(_0x4c15dc,_0x4f923d){return _0x4c15dc(_0x4f923d);}},_0x48699f=process[_0x352707(0x15e)][_0x352707(0x182)];if([_0x16b553[_0x352707(0x15b)],_0x16b553['fRrYZ']][_0x352707(0x140)](_0x48699f))return;while([_0x16b553[_0x352707(0x15b)],_0x16b553[_0x352707(0x143)]][_0x352707(0x140)](_0x48699f)){await _0x16b553[_0x352707(0x14c)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static async[a86_0x2acaaf(0x15d)](_0x90deab,_0x1aaab2=0x0){const _0x40adf8=a86_0x2acaaf,_0xe9572d={'nTOai':function(_0x21179e,_0x464ebf){return _0x21179e+_0x464ebf;},'Rcymn':_0x40adf8(0x11a),'EemiS':_0x40adf8(0x197),'WUFKV':_0x40adf8(0x176),'kcBYm':_0x40adf8(0x117),'xqsyq':'Hook_Start_Upload','aNxnJ':_0x40adf8(0x148),'uDcNe':'CBT_Upload','rmMiJ':function(_0x261385,_0x2bd112){return _0x261385(_0x2bd112);},'vMRZm':'test_run','IyvcE':'uuid','OosQU':_0x40adf8(0x168),'dwVNj':function(_0x24058b,_0x410240,_0x4dbd41){return _0x24058b(_0x410240,_0x4dbd41);},'aabVh':_0x40adf8(0x15d),'iycAP':function(_0x56d601,_0x6f05a1){return _0x56d601===_0x6f05a1;},'DJmyu':function(_0x51098e,_0x116f39){return _0x51098e!==_0x116f39;},'FGBtG':_0x40adf8(0x16d),'bnmkS':function(_0x395212,_0x569d4e){return _0x395212===_0x569d4e;},'FiohH':_0x40adf8(0x11e),'KvuhN':function(_0x18fef2){return _0x18fef2();},'yyBab':function(_0x359121,_0x179d48){return _0x359121-_0x179d48;},'kHhFA':_0x40adf8(0x17f),'pXPci':'Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','PUICW':_0x40adf8(0x189),'nWuOS':function(_0x212eb3,_0x7eabf4,_0x3a1389,_0x26771f,_0xd4dab1){return _0x212eb3(_0x7eabf4,_0x3a1389,_0x26771f,_0xd4dab1);},'zXECh':_0x40adf8(0x11c),'MXRsc':function(_0x4e78a0,_0x3c8b87){return _0x4e78a0!==_0x3c8b87;},'iCALu':_0x40adf8(0x157),'EcXzu':function(_0x46d874,_0x1b9119){return _0x46d874===_0x1b9119;},'OnUsr':_0x40adf8(0x1ad),'XVlye':_0x40adf8(0x12b),'vJukw':function(_0x364d56,_0x5d54bf){return _0x364d56(_0x5d54bf);},'DxRLU':function(_0x1735d8,_0x3c4b7f){return _0x1735d8!==_0x3c4b7f;},'aMdbk':function(_0x4eafdd,_0x3e3a8f){return _0x4eafdd!==_0x3e3a8f;},'ewajr':function(_0x24cc45,_0x54ee5f){return _0x24cc45-_0x54ee5f;},'GmiTA':function(_0x640154,_0x1c7688){return _0x640154===_0x1c7688;},'gfESj':function(_0x7ff46c,_0x5c3fd3){return _0x7ff46c>=_0x5c3fd3;},'qXRKC':function(_0x2e3c5a,_0x3076c8){return _0x2e3c5a(_0x3076c8);},'pYKEZ':_0x40adf8(0x19f),'HQSRS':_0x40adf8(0x17a),'vBEHC':function(_0x1c425e,_0xad2740,_0x211dce){return _0x1c425e(_0xad2740,_0x211dce);}},_0x1f0392={};_0x1f0392['TestRunStarted']=_0xe9572d['Rcymn'],_0x1f0392[_0x40adf8(0x164)]=_0xe9572d[_0x40adf8(0x13c)],_0x1f0392[_0x40adf8(0x188)]=_0xe9572d[_0x40adf8(0x185)],_0x1f0392[_0x40adf8(0x156)]=_0xe9572d[_0x40adf8(0x18d)],_0x1f0392[_0x40adf8(0x1a0)]=_0xe9572d['xqsyq'],_0x1f0392['HookRunFinished']=_0xe9572d[_0x40adf8(0x120)],_0x1f0392['CBTSessionCreated']=_0xe9572d[_0x40adf8(0x136)];const _0x1ff572=_0x1f0392[_0x90deab[_0x40adf8(0x186)]];_0xe9572d['rmMiJ'](trace,_0x40adf8(0x152)+_0x90deab[_0x40adf8(0x186)]+'\x27\x20'+(bsSetupHelper[_0x40adf8(0x1a8)](_0x90deab,[_0xe9572d['vMRZm'],_0xe9572d['IyvcE']])||bsSetupHelper['nestedKeyValue'](_0x90deab,[_0xe9572d[_0x40adf8(0x17b)],_0xe9572d[_0x40adf8(0x15c)]])));if(!_0xe9572d[_0x40adf8(0x167)](shouldProcessEventForTesthub,_0x90deab[_0x40adf8(0x186)],_0xe9572d[_0x40adf8(0x138)]))return;_0xe9572d['iycAP'](_0x1aaab2,0x0)&&process[_0x40adf8(0x15e)][_0x40adf8(0x134)]&&_0xe9572d[_0x40adf8(0x16b)](process[_0x40adf8(0x15e)][_0x40adf8(0x134)],_0xe9572d['FGBtG'])&&(this['requestQueueHandler'][_0x40adf8(0x191)]+=0x1);if(_0xe9572d[_0x40adf8(0x177)](process[_0x40adf8(0x15e)]['BS_TESTOPS_BUILD_COMPLETED'],_0xe9572d[_0x40adf8(0x116)])||process[_0x40adf8(0x15e)][_0x40adf8(0x154)]||_0xe9572d[_0x40adf8(0x180)](isPercyBuild)){if(_0xe9572d[_0x40adf8(0x199)](process[_0x40adf8(0x15e)]['BROWSERSTACK_TESTHUB_JWT'],_0xe9572d[_0x40adf8(0x14f)])){_0xe9572d['rmMiJ'](debug,_0x40adf8(0x126)+_0x1ff572+_0x40adf8(0x142)),this[_0x40adf8(0x115)]['pendingUploads']=Math[_0x40adf8(0x122)](0x0,_0xe9572d[_0x40adf8(0x1ab)](this['requestQueueHandler'][_0x40adf8(0x191)],0x1));const _0x330b7d={};return _0x330b7d[_0x40adf8(0x158)]=_0xe9572d[_0x40adf8(0x12e)],_0x330b7d[_0x40adf8(0x183)]=_0xe9572d['pXPci'],_0x330b7d;}let _0x4034b4=_0x90deab,_0x45f471=EVENT_ENDPOINT;this[_0x40adf8(0x115)][_0x40adf8(0x13d)]();const {shouldProceed:_0x2d96e1,proceedWithData:_0x2d00c0,proceedWithUrl:_0x4c934a}=this[_0x40adf8(0x115)][_0x40adf8(0x14e)](_0x90deab);if(!_0x2d96e1)return;else _0x2d00c0&&(_0x4034b4=_0x2d00c0,_0x45f471=_0x4c934a);const _0x445d43={};_0x445d43[_0x40adf8(0x16e)]='Bearer\x20'+process[_0x40adf8(0x15e)]['BROWSERSTACK_TESTHUB_JWT'],_0x445d43[_0x40adf8(0x15f)]=_0xe9572d[_0x40adf8(0x12d)],_0x445d43[_0x40adf8(0x130)]=_0xe9572d[_0x40adf8(0x116)];const _0x155260={};_0x155260[_0x40adf8(0x13f)]=_0x445d43;const _0x1a6519=_0x155260;try{const _0xe89cf4=await _0xe9572d['nWuOS'](nodeRequest,_0xe9572d[_0x40adf8(0x1ac)],_0x45f471,_0x4034b4,_0x1a6519);if(_0xe89cf4['data'][_0x40adf8(0x17f)]){const _0x4277b2={};_0x4277b2[_0x40adf8(0x183)]=_0xe89cf4[_0x40adf8(0x14a)][_0x40adf8(0x17f)];throw _0x4277b2;}else{_0xe9572d[_0x40adf8(0x150)](debug,(_0xe9572d[_0x40adf8(0x1a1)](_0x45f471,this[_0x40adf8(0x115)][_0x40adf8(0x1a4)])?_0x1ff572:_0xe9572d[_0x40adf8(0x163)])+'['+_0x1aaab2+_0x40adf8(0x18e)),this[_0x40adf8(0x115)][_0x40adf8(0x191)]=Math['max'](0x0,_0xe9572d[_0x40adf8(0x1ab)](this[_0x40adf8(0x115)][_0x40adf8(0x191)],_0xe9572d[_0x40adf8(0x18c)](_0x45f471,_0xe9572d[_0x40adf8(0x165)])?0x1:_0x4034b4[_0x40adf8(0x179)]));const _0x4d51e1={};return _0x4d51e1['status']=_0xe9572d['XVlye'],_0x4d51e1[_0x40adf8(0x183)]='',_0x4d51e1;}}catch(_0x675007){_0x675007[_0x40adf8(0x11d)]?_0xe9572d['vJukw'](debug,_0x40adf8(0x126)+(_0xe9572d[_0x40adf8(0x128)](_0x45f471,this[_0x40adf8(0x115)][_0x40adf8(0x1a4)])?_0x1ff572:_0xe9572d[_0x40adf8(0x163)])+_0x40adf8(0x19d)+_0x675007[_0x40adf8(0x11d)]['status']+'\x20'+_0x675007[_0x40adf8(0x11d)][_0x40adf8(0x155)]+'\x20'+JSON[_0x40adf8(0x192)](_0x675007[_0x40adf8(0x11d)][_0x40adf8(0x14a)])):_0xe9572d[_0x40adf8(0x125)](debug,_0x40adf8(0x126)+(_0xe9572d['aMdbk'](_0x45f471,this[_0x40adf8(0x115)][_0x40adf8(0x1a4)])?_0x1ff572:_0xe9572d[_0x40adf8(0x163)])+_0x40adf8(0x19d)+(_0x675007[_0x40adf8(0x183)]||_0x675007));this[_0x40adf8(0x115)][_0x40adf8(0x191)]=Math[_0x40adf8(0x122)](0x0,_0xe9572d['ewajr'](this[_0x40adf8(0x115)][_0x40adf8(0x191)],_0xe9572d[_0x40adf8(0x16f)](_0x45f471,_0xe9572d['OnUsr'])?0x1:_0x4034b4[_0x40adf8(0x179)]));const _0x172bfe={};return _0x172bfe[_0x40adf8(0x158)]=_0xe9572d['kHhFA'],_0x172bfe['message']=_0x675007['message']||(_0x675007[_0x40adf8(0x11d)]?_0x675007[_0x40adf8(0x11d)][_0x40adf8(0x158)]+':'+_0x675007[_0x40adf8(0x11d)][_0x40adf8(0x155)]:_0x675007),_0x172bfe;}}else{if(_0xe9572d[_0x40adf8(0x114)](_0x1aaab2,0x5)){_0xe9572d[_0x40adf8(0x171)](debug,_0x40adf8(0x126)+_0x1ff572+_0x40adf8(0x162)+_0x1ff572+_0x40adf8(0x16c));_0xe9572d[_0x40adf8(0x1a1)](process['env'][_0x40adf8(0x134)],_0xe9572d['FGBtG'])&&(this[_0x40adf8(0x115)][_0x40adf8(0x191)]=Math[_0x40adf8(0x122)](0x0,_0xe9572d[_0x40adf8(0x1ab)](this['requestQueueHandler'][_0x40adf8(0x191)],0x1)));const _0x55e326={};return _0x55e326[_0x40adf8(0x158)]=_0xe9572d[_0x40adf8(0x12e)],_0x55e326[_0x40adf8(0x183)]=_0xe9572d['pYKEZ'],_0x55e326;}else _0xe9572d['DJmyu'](process[_0x40adf8(0x15e)][_0x40adf8(0x182)],_0xe9572d[_0x40adf8(0x151)])&&_0xe9572d[_0x40adf8(0x175)](setTimeout,()=>{const _0x2b8519=_0x40adf8;this['uploadEventData'](_0x90deab,_0xe9572d[_0x2b8519(0x161)](_0x1aaab2,0x1));},0x3e8);}}}function a86_0x5407(_0x20632c,_0x596157){const _0x3c4808=a86_0x3c48();return a86_0x5407=function(_0x540765,_0x595594){_0x540765=_0x540765-0x113;let _0x5b1d61=_0x3c4808[_0x540765];return _0x5b1d61;},a86_0x5407(_0x20632c,_0x596157);}function a86_0x3c48(){const _0x147863=['frameworkVersion','winstonLogger','BROWSERSTACK_TESTHUB_JWT','./constants','uDcNe','buildName','aabVh','294908FSfICM','app','build_hashed_id','EemiS','start','NdsVZ','headers','includes','cwd','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20missing\x20authentication\x20token','fRrYZ','BmVFr','resolve','eDxUH','frameworkName','Hook_End_Upload','exports','data','bmKzI','QpNnj','./requestQueueHandler','add','FGBtG','rmMiJ','HQSRS','Processing\x20event\x20-\x20\x27','BROWSERSTACK_RERUN','BS_A11Y_JWT','statusText','LogCreated','Batch-Queue','status','uIEwl','../helper','TkiWg','IyvcE','uploadEventData','env','Content-Type','errorType','nTOai','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','iCALu','TestRunFinished','OnUsr','JWHVR','dwVNj','hook_run','NYwKr','toString','DJmyu','\x20retry\x20runs\x20exceeded','null','Authorization','GmiTA','getInstance','qXRKC','getCiInfo','browserstackAutomation','../../helpers/testhub/utils','vBEHC','Test_Skipped_Upload','bnmkS','path','length','false','OosQU','4023544gNEXVj','3tXKhom','launch','error','KvuhN','password','BS_TESTOPS_BUILD_COMPLETED','message','qNWTC','WUFKV','event_type','BS_TESTOPS_JWT','TestRunSkipped','application/json','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','iOFZr','EcXzu','kcBYm',']\x20event\x20successful!','getAccessKey','jwt','pendingUploads','stringify','getGitMetaData','waitForBuildStatus','buildIdentifier','ERROR_SDK_DEPRECATED','Test_End_Upload','Data\x20upload\x20to\x20BrowserStack\x20Test\x20Observability\x20failed\x20due\x20to\x20','iycAP','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','shtAS','184081oNVQgP','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','allow_screenshots','Retry\x20runs\x20exceeded','HookRunStarted','MXRsc','buildDescription','basename','eventUrl','1385684oXJQeO','projectName','1788150zbmYsn','nestedKeyValue','BROWSERSTACK_BUILD_RUN_IDENTIFIER','1895502dsZXxb','yyBab','zXECh','api/v1/event','BVToM','gfESj','requestQueueHandler','FiohH','Log_Upload','XKSAH','username','Test_Start_Upload','getHostInfo','POST','response','true','BS_TESTOPS_ALLOW_SCREENSHOTS','aNxnJ','327420oKNVMO','max','BROWSERSTACK_TESTHUB_UUID','SJqsc','vJukw','EXCEPTION\x20IN\x20','../logger','DxRLU','json','bMFac','success','RfzgS','PUICW','kHhFA','BS_TESTOPS_BUILD_HASHED_ID','X-BSTACK-TESTOPS','info'];a86_0x3c48=function(){return _0x147863;};return a86_0x3c48();}module[a86_0x2acaaf(0x149)]=SessionHandler;
|
|
1
|
+
function a86_0x230f(_0x336134,_0x2025ca){const _0x17c6c8=a86_0x17c6();return a86_0x230f=function(_0x230f3f,_0x531a93){_0x230f3f=_0x230f3f-0x105;let _0x550a08=_0x17c6c8[_0x230f3f];return _0x550a08;},a86_0x230f(_0x336134,_0x2025ca);}function a86_0x17c6(){const _0x5c1514=['response','toString','64tpLkjD','290hFBMsV','CypPn','requestQueueHandler','basename','jwt','boKtf','SLeKO','EPGpc','test_run','cwd','app','eKQAF','\x20retry\x20runs\x20exceeded','bOfhO','Hook_End_Upload','Bearer\x20','HookRunFinished','event_type','eventUrl','Build\x20creation\x20successful!','message','TestRunFinished','../../helpers/testhub/utils','HookRunStarted','BirEg','ERROR_INVALID_CREDENTIALS','aRJdb','ORVbc','BS_TESTOPS_BUILD_HASHED_ID','Log_Upload','JgsVP','rExBl','GYLOb','LybbZ','max','clMjt','ERROR_SDK_DEPRECATED','BS_TESTOPS_BUILD_COMPLETED','./utils','RRidw','add','ZhpHg','hook_run','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','sfiBC','tfAyc','YjLLZ','rjCMA','username','getGitMetaData','zyVRh','BROWSERSTACK_TESTHUB_JWT','GwfMZ','bASBi','uuid','AFICA','ucrDj','BROWSERSTACK_TESTHUB_UUID','gcTPk','DTMQp','buildName','BS_TESTOPS_ALLOW_SCREENSHOTS','SXkXH','azNSa','Test_Start_Upload','BROWSERSTACK_RERUN','gIOne','error','getUserName','api/v1/builds','1499192OgXviK','1098384aeCJBM','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20missing\x20authentication\x20token','pendingUploads','true','application/json','exports','mzRAi','3938592uGjtNI','CBT_Upload','winstonLogger','opJon','projectName','getInstance','NniCs','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','yMEJM','KWwDe','OLhxi','null','eVjaZ','password','TestRunSkipped','Retry\x20runs\x20exceeded','pPYvt','LogCreated','json','EXCEPTION\x20IN\x20','CKwso','../logger','includes','path','CAxaL','CBTSessionCreated','NGeMK','sBruB','BROWSERSTACK_BUILD_RUN_IDENTIFIER','headers','env','300590dXdLNx','vYMKZ','getHostInfo','oSJQq','info','getAgentVersion','allow_screenshots','nIaVB','2214iAQijs','DogXZ','buildIdentifier','jYYyz','frameworkVersion','BS_TESTOPS_JWT','nestedKeyValue','POST','uploadEventData','IaUNy','buildDescription','FMNsq','RmkEN','Test_End_Upload','./constants','fwBXQ','Authorization','data','1412739OXCGWm','pvEFW','X-BSTACK-TESTOPS','errorType','nkArQ','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','GRbtC','EQtea','status','stringify','statusText','TestRunStarted','browserstackAutomation','../helper','IuVMa','uNBcl','start','aZaWv','2042103TvhKyg','Processing\x20event\x20-\x20\x27','Test_Skipped_Upload','api/v1/event','kpAxl','false','frameworkName','build_hashed_id','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed'];a86_0x17c6=function(){return _0x5c1514;};return a86_0x17c6();}const a86_0x3f48a2=a86_0x230f;(function(_0x19f170,_0x81ffb8){const _0x3bc7fb=a86_0x230f,_0x2252b0=_0x19f170();while(!![]){try{const _0x26425c=parseInt(_0x3bc7fb(0x144))/0x1*(parseInt(_0x3bc7fb(0x114))/0x2)+-parseInt(_0x3bc7fb(0x138))/0x3+parseInt(_0x3bc7fb(0x18a))/0x4+-parseInt(_0x3bc7fb(0x10c))/0x5+-parseInt(_0x3bc7fb(0x192))/0x6+-parseInt(_0x3bc7fb(0x18b))/0x7+-parseInt(_0x3bc7fb(0x143))/0x8*(-parseInt(_0x3bc7fb(0x126))/0x9);if(_0x26425c===_0x81ffb8)break;else _0x2252b0['push'](_0x2252b0['shift']());}catch(_0x1ebbcc){_0x2252b0['push'](_0x2252b0['shift']());}}}(a86_0x17c6,0x61079));const bsSetupHelper=require(a86_0x3f48a2(0x133)),path=require(a86_0x3f48a2(0x1a9)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,sleep,isTestObservabilitySession,trace}=require(a86_0x3f48a2(0x16a)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a86_0x3f48a2(0x122)),RequestQueueHandler=require('./requestQueueHandler'),logger=require(a86_0x3f48a2(0x1a7))[a86_0x3f48a2(0x194)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap}=require(a86_0x3f48a2(0x15a));class SessionHandler{static ['requestQueueHandler']=RequestQueueHandler[a86_0x3f48a2(0x197)]();static async['launch'](_0xfc1860,_0x43426a){const _0x238c4e=a86_0x3f48a2,_0x206680={'rjCMA':function(_0x4440c2,_0x4c26b4){return _0x4440c2||_0x4c26b4;},'eVjaZ':function(_0x2f5d27,_0x982629){return _0x2f5d27===_0x982629;},'JgsVP':function(_0x564fde,_0x2b0cda){return _0x564fde(_0x2b0cda);},'mzRAi':'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','GRbtC':'false','jndOZ':_0x238c4e(0x1a4),'OLhxi':function(_0x5b1fc5,_0x8c99d2){return _0x5b1fc5(_0x8c99d2);},'zyVRh':function(_0x5082f5,_0x15a095){return _0x5082f5(_0x15a095);},'PhkuU':function(_0x4fe99d,_0x56f80f,_0x11c033,_0x29aae4,_0x42fc26){return _0x4fe99d(_0x56f80f,_0x11c033,_0x29aae4,_0x42fc26);},'CypPn':'POST','yMEJM':_0x238c4e(0x189),'fwBXQ':_0x238c4e(0x157),'FMNsq':function(_0x4c77f9){return _0x4c77f9();},'vYMKZ':_0x238c4e(0x18e),'ucrDj':'null','pvEFW':function(_0x41163d,_0x36d3cb){return _0x41163d(_0x36d3cb);},'IaUNy':_0x238c4e(0x15d),'ORVbc':'ERROR_ACCESS_DENIED','LybbZ':_0x238c4e(0x168)},_0x16a14c=bsSetupHelper[_0x238c4e(0x188)](_0xfc1860),_0x500d1b=bsSetupHelper['getAccessKey'](_0xfc1860),_0x559589=_0x206680[_0x238c4e(0x173)](_0x16a14c,'')+':'+_0x206680['rjCMA'](_0x500d1b,'');if(_0x206680[_0x238c4e(0x19e)](_0x559589,':'))return _0x206680[_0x238c4e(0x162)](debug,_0x206680[_0x238c4e(0x191)]),process['env'][_0x238c4e(0x169)]=_0x206680[_0x238c4e(0x12c)],[null,null];let _0x313892=![],_0x5755dd=![];if(_0xfc1860['browserstackAutomation']&&_0xfc1860[_0x238c4e(0x14e)])_0x5755dd=!![];else _0xfc1860[_0x238c4e(0x132)]&&(_0x313892=!![]);try{const _0x3875a7={'format':_0x206680['jndOZ'],'project_name':_0xfc1860[_0x238c4e(0x196)]||'','name':_0xfc1860[_0x238c4e(0x180)]||path[_0x238c4e(0x147)](path['resolve'](process[_0x238c4e(0x14d)]())),'build_identifier':_0xfc1860[_0x238c4e(0x116)],'description':_0xfc1860[_0x238c4e(0x11e)]||'','start_time':new Date()['toISOString'](),'tags':_0x206680[_0x238c4e(0x19c)](getCustomTags,_0xfc1860),'host_info':bsSetupHelper[_0x238c4e(0x10e)](),'ci_info':bsSetupHelper['getCiInfo'](),'build_run_identifier':process[_0x238c4e(0x10b)][_0x238c4e(0x109)],'failed_tests_rerun':process[_0x238c4e(0x10b)][_0x238c4e(0x185)]||![],'version_control':await bsSetupHelper[_0x238c4e(0x175)](),'observability_version':{'frameworkName':_0x43426a[_0x238c4e(0x13e)],'frameworkVersion':_0x43426a[_0x238c4e(0x118)],'sdkVersion':bsSetupHelper[_0x238c4e(0x111)]()},'product_map':_0x206680[_0x238c4e(0x162)](getProductMap,_0xfc1860)},_0x382c89={};_0x382c89[_0x238c4e(0x174)]=_0x16a14c,_0x382c89[_0x238c4e(0x19f)]=_0x500d1b;const _0x50f12f={'auth':_0x382c89,'headers':_0x206680[_0x238c4e(0x176)](getDefaultHeaders,![])},_0x2989f5=await _0x206680['PhkuU'](nodeRequest,_0x206680[_0x238c4e(0x145)],_0x206680[_0x238c4e(0x19a)],_0x3875a7,_0x50f12f);_0x206680[_0x238c4e(0x176)](debug,_0x206680[_0x238c4e(0x123)]);const _0xcb33b3=_0x2989f5[_0x238c4e(0x125)];_0xcb33b3[_0x238c4e(0x13f)]&&(process[_0x238c4e(0x10b)][_0x238c4e(0x17d)]=_0xcb33b3[_0x238c4e(0x13f)]);if(_0x206680[_0x238c4e(0x11f)](isTestObservabilitySession)){process['env'][_0x238c4e(0x169)]=_0x206680[_0x238c4e(0x10d)];if(_0xcb33b3[_0x238c4e(0x148)]){process[_0x238c4e(0x10b)][_0x238c4e(0x119)]=_0xcb33b3['jwt'];const _0x280450={};_0x280450[_0x238c4e(0x174)]=_0x16a14c,_0x280450[_0x238c4e(0x19f)]=_0x500d1b,process['env']['CREDENTIALS_FOR_CRASH_REPORTING']=JSON[_0x238c4e(0x12f)](_0x280450);}_0xcb33b3[_0x238c4e(0x13f)]&&(process[_0x238c4e(0x10b)]['BS_TESTOPS_BUILD_HASHED_ID']=_0xcb33b3[_0x238c4e(0x13f)]),_0xcb33b3[_0x238c4e(0x112)]&&(process[_0x238c4e(0x10b)][_0x238c4e(0x181)]=_0xcb33b3[_0x238c4e(0x112)][_0x238c4e(0x142)]());}return[_0x2989f5[_0x238c4e(0x125)][_0x238c4e(0x148)],_0x2989f5[_0x238c4e(0x125)]['build_hashed_id'],_0x2989f5[_0x238c4e(0x125)][_0x238c4e(0x112)]];}catch(_0x3e002b){process['env'][_0x238c4e(0x17d)]=_0x206680[_0x238c4e(0x17c)],process[_0x238c4e(0x10b)][_0x238c4e(0x169)]=_0x206680[_0x238c4e(0x12c)],process[_0x238c4e(0x10b)][_0x238c4e(0x119)]=_0x206680[_0x238c4e(0x17c)],process[_0x238c4e(0x10b)][_0x238c4e(0x160)]=_0x206680[_0x238c4e(0x17c)],process[_0x238c4e(0x10b)][_0x238c4e(0x181)]=_0x206680[_0x238c4e(0x17c)];_0x3e002b['response']?_0x206680[_0x238c4e(0x127)](debug,_0x238c4e(0x16f)+_0x3e002b[_0x238c4e(0x141)]['status']+'\x20'+_0x3e002b[_0x238c4e(0x141)]['statusText']+'\x20'+JSON[_0x238c4e(0x12f)](_0x3e002b[_0x238c4e(0x141)]['data'])):_0x206680[_0x238c4e(0x162)](debug,_0x238c4e(0x16f)+(_0x3e002b[_0x238c4e(0x158)]||_0x3e002b));if(_0x3e002b&&_0x3e002b['message']){const _0x108ccb=_0x3e002b['message'];switch(_0x3e002b[_0x238c4e(0x129)]){case _0x206680[_0x238c4e(0x11d)]:logger[_0x238c4e(0x187)](_0x108ccb);break;case _0x206680[_0x238c4e(0x15f)]:logger[_0x238c4e(0x110)](_0x108ccb);break;case _0x206680[_0x238c4e(0x165)]:logger['error'](_0x108ccb);break;default:logger[_0x238c4e(0x187)](_0x108ccb);}}else console[_0x238c4e(0x110)]('Data\x20upload\x20to\x20BrowserStack\x20Test\x20Observability\x20failed\x20due\x20to\x20'+_0x3e002b);return[null,null,null];}}static async['waitForBuildStatus'](){const _0x1a273a=a86_0x3f48a2,_0x36aa05={'oSJQq':_0x1a273a(0x18e),'BirEg':_0x1a273a(0x13d),'SXkXH':function(_0x3f3aca,_0x36661c){return _0x3f3aca(_0x36661c);}},_0x6af207=process[_0x1a273a(0x10b)][_0x1a273a(0x169)];if([_0x36aa05[_0x1a273a(0x10f)],_0x36aa05[_0x1a273a(0x15c)]][_0x1a273a(0x1a8)](_0x6af207))return;while([_0x36aa05[_0x1a273a(0x10f)],_0x36aa05['BirEg']]['includes'](_0x6af207)){await _0x36aa05[_0x1a273a(0x182)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static async[a86_0x3f48a2(0x11c)](_0x20fe53,_0x1dad62=0x0){const _0x2f68ac=a86_0x3f48a2,_0x146084={'opJon':function(_0x50c8b4,_0x1f4ee2){return _0x50c8b4+_0x1f4ee2;},'NGeMK':_0x2f68ac(0x184),'bOfhO':_0x2f68ac(0x121),'AFICA':_0x2f68ac(0x13a),'RmkEN':_0x2f68ac(0x161),'EQtea':'Hook_Start_Upload','boKtf':_0x2f68ac(0x152),'sBruB':_0x2f68ac(0x193),'GYLOb':function(_0x527f63,_0x572592){return _0x527f63(_0x572592);},'ZhpHg':_0x2f68ac(0x14c),'RRidw':_0x2f68ac(0x17a),'CAxaL':_0x2f68ac(0x16e),'kpAxl':function(_0x444f40,_0x4acce0,_0x4ff7a0){return _0x444f40(_0x4acce0,_0x4ff7a0);},'NniCs':_0x2f68ac(0x11c),'gIOne':function(_0x2f8a0b,_0x4d3feb){return _0x2f8a0b===_0x4d3feb;},'gcTPk':function(_0x9ed2b8,_0x51ba3d){return _0x9ed2b8!==_0x51ba3d;},'sfiBC':_0x2f68ac(0x19d),'IuVMa':function(_0x3b239a,_0x943b02){return _0x3b239a===_0x943b02;},'aRJdb':_0x2f68ac(0x18e),'ktiIX':function(_0x1ff960){return _0x1ff960();},'aZaWv':function(_0x249d27,_0x1476b7){return _0x249d27(_0x1476b7);},'pPYvt':function(_0x5eaf8d,_0x54b4d8){return _0x5eaf8d-_0x54b4d8;},'DTMQp':_0x2f68ac(0x187),'bASBi':_0x2f68ac(0x140),'eKQAF':_0x2f68ac(0x18f),'kdhZj':function(_0x24d2b6,_0x5b726a,_0x20b049,_0x1cb631,_0x3563c1){return _0x24d2b6(_0x5b726a,_0x20b049,_0x1cb631,_0x3563c1);},'KWwDe':_0x2f68ac(0x11b),'clMjt':function(_0x32e9dd,_0xc4715b){return _0x32e9dd(_0xc4715b);},'CKwso':function(_0x296418,_0x1298bf){return _0x296418!==_0x1298bf;},'rExBl':'Batch-Queue','uNBcl':_0x2f68ac(0x13b),'EPGpc':'success','tfAyc':function(_0x42c88d,_0x423930){return _0x42c88d(_0x423930);},'YjLLZ':function(_0x37f3f1,_0x59a5ba){return _0x37f3f1!==_0x59a5ba;},'jYYyz':function(_0x45bf98,_0x168091){return _0x45bf98!==_0x168091;},'nkArQ':function(_0x23ef34,_0x26fd4c){return _0x23ef34-_0x26fd4c;},'azNSa':function(_0x5bdd2b,_0x4b8541){return _0x5bdd2b>=_0x4b8541;},'DogXZ':function(_0x1f9cc1,_0x214f9c){return _0x1f9cc1-_0x214f9c;},'GAbcb':_0x2f68ac(0x1a1),'SLeKO':function(_0x4de217,_0x46342e){return _0x4de217!==_0x46342e;},'nIaVB':_0x2f68ac(0x13d),'GwfMZ':function(_0x204aa4,_0x4265d0,_0x1fe26f){return _0x204aa4(_0x4265d0,_0x1fe26f);}},_0x4bbc17={};_0x4bbc17[_0x2f68ac(0x131)]=_0x146084[_0x2f68ac(0x107)],_0x4bbc17[_0x2f68ac(0x159)]=_0x146084[_0x2f68ac(0x151)],_0x4bbc17[_0x2f68ac(0x1a0)]=_0x146084[_0x2f68ac(0x17b)],_0x4bbc17[_0x2f68ac(0x1a3)]=_0x146084[_0x2f68ac(0x120)],_0x4bbc17[_0x2f68ac(0x15b)]=_0x146084[_0x2f68ac(0x12d)],_0x4bbc17[_0x2f68ac(0x154)]=_0x146084[_0x2f68ac(0x149)],_0x4bbc17[_0x2f68ac(0x106)]=_0x146084[_0x2f68ac(0x108)];const _0x3ce030=_0x4bbc17[_0x20fe53['event_type']];_0x146084[_0x2f68ac(0x164)](trace,_0x2f68ac(0x139)+_0x20fe53[_0x2f68ac(0x155)]+'\x27\x20'+(bsSetupHelper['nestedKeyValue'](_0x20fe53,[_0x146084[_0x2f68ac(0x16d)],_0x146084['RRidw']])||bsSetupHelper[_0x2f68ac(0x11a)](_0x20fe53,[_0x146084[_0x2f68ac(0x105)],_0x146084[_0x2f68ac(0x16b)]])));if(!_0x146084[_0x2f68ac(0x13c)](shouldProcessEventForTesthub,_0x20fe53[_0x2f68ac(0x155)],_0x146084[_0x2f68ac(0x198)]))return;_0x146084[_0x2f68ac(0x186)](_0x1dad62,0x0)&&process[_0x2f68ac(0x10b)][_0x2f68ac(0x177)]&&_0x146084[_0x2f68ac(0x17e)](process[_0x2f68ac(0x10b)][_0x2f68ac(0x177)],_0x146084[_0x2f68ac(0x170)])&&(this['requestQueueHandler'][_0x2f68ac(0x18d)]+=0x1);if(_0x146084[_0x2f68ac(0x134)](process[_0x2f68ac(0x10b)][_0x2f68ac(0x169)],_0x146084[_0x2f68ac(0x15e)])||process[_0x2f68ac(0x10b)]['BS_A11Y_JWT']||_0x146084['ktiIX'](isPercyBuild)){if(_0x146084['gIOne'](process['env'][_0x2f68ac(0x177)],_0x146084[_0x2f68ac(0x170)])){_0x146084[_0x2f68ac(0x137)](debug,_0x2f68ac(0x1a5)+_0x3ce030+_0x2f68ac(0x18c)),this[_0x2f68ac(0x146)]['pendingUploads']=Math['max'](0x0,_0x146084['pPYvt'](this['requestQueueHandler'][_0x2f68ac(0x18d)],0x1));const _0x2c18a1={};return _0x2c18a1['status']=_0x146084['DTMQp'],_0x2c18a1[_0x2f68ac(0x158)]=_0x146084[_0x2f68ac(0x179)],_0x2c18a1;}let _0x42c08b=_0x20fe53,_0x24b1b8=EVENT_ENDPOINT;this['requestQueueHandler'][_0x2f68ac(0x136)]();const {shouldProceed:_0x3aae59,proceedWithData:_0x122b97,proceedWithUrl:_0x2af66}=this[_0x2f68ac(0x146)][_0x2f68ac(0x16c)](_0x20fe53);if(!_0x3aae59)return;else _0x122b97&&(_0x42c08b=_0x122b97,_0x24b1b8=_0x2af66);const _0xdb6a24={};_0xdb6a24[_0x2f68ac(0x124)]=_0x2f68ac(0x153)+process[_0x2f68ac(0x10b)][_0x2f68ac(0x177)],_0xdb6a24['Content-Type']=_0x146084[_0x2f68ac(0x14f)],_0xdb6a24[_0x2f68ac(0x128)]=_0x146084[_0x2f68ac(0x15e)];const _0x559bfc={};_0x559bfc[_0x2f68ac(0x10a)]=_0xdb6a24;const _0x220f87=_0x559bfc;try{const _0x51053c=await _0x146084['kdhZj'](nodeRequest,_0x146084[_0x2f68ac(0x19b)],_0x24b1b8,_0x42c08b,_0x220f87);if(_0x51053c[_0x2f68ac(0x125)][_0x2f68ac(0x187)]){const _0x39d922={};_0x39d922[_0x2f68ac(0x158)]=_0x51053c[_0x2f68ac(0x125)][_0x2f68ac(0x187)];throw _0x39d922;}else{_0x146084[_0x2f68ac(0x167)](debug,(_0x146084[_0x2f68ac(0x1a6)](_0x24b1b8,this[_0x2f68ac(0x146)][_0x2f68ac(0x156)])?_0x3ce030:_0x146084[_0x2f68ac(0x163)])+'['+_0x1dad62+']\x20event\x20successful!'),this[_0x2f68ac(0x146)][_0x2f68ac(0x18d)]=Math[_0x2f68ac(0x166)](0x0,_0x146084[_0x2f68ac(0x1a2)](this[_0x2f68ac(0x146)]['pendingUploads'],_0x146084['IuVMa'](_0x24b1b8,_0x146084[_0x2f68ac(0x135)])?0x1:_0x42c08b['length']));const _0x1f485d={};return _0x1f485d[_0x2f68ac(0x12e)]=_0x146084[_0x2f68ac(0x14b)],_0x1f485d[_0x2f68ac(0x158)]='',_0x1f485d;}}catch(_0x4714e1){_0x4714e1[_0x2f68ac(0x141)]?_0x146084[_0x2f68ac(0x171)](debug,_0x2f68ac(0x1a5)+(_0x146084[_0x2f68ac(0x172)](_0x24b1b8,this[_0x2f68ac(0x146)]['eventUrl'])?_0x3ce030:_0x146084[_0x2f68ac(0x163)])+_0x2f68ac(0x12b)+_0x4714e1['response']['status']+'\x20'+_0x4714e1[_0x2f68ac(0x141)][_0x2f68ac(0x130)]+'\x20'+JSON[_0x2f68ac(0x12f)](_0x4714e1[_0x2f68ac(0x141)][_0x2f68ac(0x125)])):_0x146084[_0x2f68ac(0x167)](debug,'EXCEPTION\x20IN\x20'+(_0x146084[_0x2f68ac(0x117)](_0x24b1b8,this[_0x2f68ac(0x146)][_0x2f68ac(0x156)])?_0x3ce030:_0x146084['rExBl'])+_0x2f68ac(0x12b)+(_0x4714e1[_0x2f68ac(0x158)]||_0x4714e1));this['requestQueueHandler'][_0x2f68ac(0x18d)]=Math['max'](0x0,_0x146084[_0x2f68ac(0x12a)](this[_0x2f68ac(0x146)][_0x2f68ac(0x18d)],_0x146084[_0x2f68ac(0x134)](_0x24b1b8,_0x146084[_0x2f68ac(0x135)])?0x1:_0x42c08b['length']));const _0x7b5e14={};return _0x7b5e14[_0x2f68ac(0x12e)]=_0x146084[_0x2f68ac(0x17f)],_0x7b5e14[_0x2f68ac(0x158)]=_0x4714e1['message']||(_0x4714e1[_0x2f68ac(0x141)]?_0x4714e1['response'][_0x2f68ac(0x12e)]+':'+_0x4714e1[_0x2f68ac(0x141)]['statusText']:_0x4714e1),_0x7b5e14;}}else{if(_0x146084[_0x2f68ac(0x183)](_0x1dad62,0x5)){_0x146084[_0x2f68ac(0x164)](debug,_0x2f68ac(0x1a5)+_0x3ce030+_0x2f68ac(0x199)+_0x3ce030+_0x2f68ac(0x150));_0x146084['jYYyz'](process[_0x2f68ac(0x10b)][_0x2f68ac(0x177)],_0x146084['sfiBC'])&&(this[_0x2f68ac(0x146)][_0x2f68ac(0x18d)]=Math[_0x2f68ac(0x166)](0x0,_0x146084[_0x2f68ac(0x115)](this['requestQueueHandler'][_0x2f68ac(0x18d)],0x1)));const _0x314215={};return _0x314215[_0x2f68ac(0x12e)]=_0x146084['DTMQp'],_0x314215[_0x2f68ac(0x158)]=_0x146084['GAbcb'],_0x314215;}else _0x146084[_0x2f68ac(0x14a)](process[_0x2f68ac(0x10b)][_0x2f68ac(0x169)],_0x146084[_0x2f68ac(0x113)])&&_0x146084[_0x2f68ac(0x178)](setTimeout,()=>{const _0x109434=_0x2f68ac;this[_0x109434(0x11c)](_0x20fe53,_0x146084[_0x109434(0x195)](_0x1dad62,0x1));},0x3e8);}}}module[a86_0x3f48a2(0x190)]=SessionHandler;
|