browserstack-node-sdk 1.34.35 → 1.34.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a79_0x172fb2=a79_0x5775;(function(_0x149fa4,_0x23dde0){const _0x119649=a79_0x5775,_0x35e52c=_0x149fa4();while(!![]){try{const _0x2e5416=-parseInt(_0x119649(0x1fe))/0x1*(parseInt(_0x119649(0x1ed))/0x2)+parseInt(_0x119649(0x22c))/0x3*(parseInt(_0x119649(0x253))/0x4)+-parseInt(_0x119649(0x24f))/0x5*(-parseInt(_0x119649(0x200))/0x6)+parseInt(_0x119649(0x27b))/0x7+-parseInt(_0x119649(0x224))/0x8+-parseInt(_0x119649(0x255))/0x9+parseInt(_0x119649(0x23e))/0xa*(-parseInt(_0x119649(0x1fc))/0xb);if(_0x2e5416===_0x23dde0)break;else _0x35e52c['push'](_0x35e52c['shift']());}catch(_0x50aec4){_0x35e52c['push'](_0x35e52c['shift']());}}}(a79_0x37db,0xac0ac));const fs=require('fs'),fsPromise=require(a79_0x172fb2(0x268)),{performance,PerformanceObserver}=require(a79_0x172fb2(0x270)),path=require(a79_0x172fb2(0x242)),util=require(a79_0x172fb2(0x21e)),logger=require(a79_0x172fb2(0x26b))[a79_0x172fb2(0x236)],{getProcessId,sleep,debug,getTestName}=require('../processHelper');class PerformanceTester{static [a79_0x172fb2(0x20b)];static [a79_0x172fb2(0x1f3)]=[];static [a79_0x172fb2(0x272)]=[];static [a79_0x172fb2(0x21a)]=[];static ['started']=![];static [a79_0x172fb2(0x248)]=a79_0x172fb2(0x205);static ['jsonReportDirPath']=process[a79_0x172fb2(0x207)]['browserStackCwd']?path[a79_0x172fb2(0x245)](process[a79_0x172fb2(0x207)][a79_0x172fb2(0x21c)],this[a79_0x172fb2(0x248)]):path[a79_0x172fb2(0x245)](process['cwd'](),'log',this[a79_0x172fb2(0x248)]);static [a79_0x172fb2(0x25c)]=process[a79_0x172fb2(0x207)]['browserStackCwd']?path[a79_0x172fb2(0x245)](process[a79_0x172fb2(0x207)]['browserStackCwd'],a79_0x172fb2(0x24c)):path[a79_0x172fb2(0x245)](process[a79_0x172fb2(0x274)](),a79_0x172fb2(0x24c));static [a79_0x172fb2(0x1ec)]=this['jsonReportDirPath']+'/performance-report-'+getProcessId()+'.json';static ['errorReportFileName']=this[a79_0x172fb2(0x25c)]+a79_0x172fb2(0x269)+getProcessId()+'.json';static [a79_0x172fb2(0x25b)]={};static ['eventsMap']={};static[a79_0x172fb2(0x217)](_0x54608d=this[a79_0x172fb2(0x208)]+a79_0x172fb2(0x229)+getProcessId()+'.json',_0x51744b=this[a79_0x172fb2(0x25c)]+a79_0x172fb2(0x269)+getProcessId()+a79_0x172fb2(0x262)){const _0x4e86ce=a79_0x172fb2,_0x5d5238={};_0x5d5238[_0x4e86ce(0x1f7)]=function(_0x43ef6f,_0x1204fa){return _0x43ef6f===_0x1204fa;},_0x5d5238[_0x4e86ce(0x226)]=_0x4e86ce(0x227),_0x5d5238['wHpgK']=function(_0x45d91a,_0x16b16f){return _0x45d91a+_0x16b16f;},_0x5d5238[_0x4e86ce(0x1f8)]='Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20',_0x5d5238[_0x4e86ce(0x24b)]='function';const _0x230890=_0x5d5238;try{!fs['existsSync'](this[_0x4e86ce(0x208)])&&fs[_0x4e86ce(0x1f9)](this['jsonReportDirPath']);}catch(_0x40a7a1){logger['debug'](_0x230890[_0x4e86ce(0x235)](_0x230890[_0x4e86ce(0x1f8)],_0x40a7a1));}if(this[_0x4e86ce(0x1ee)]||!this[_0x4e86ce(0x278)]())return;this['_observer']=new PerformanceObserver(_0x1fb076=>{const _0x509bf8=_0x4e86ce;_0x1fb076[_0x509bf8(0x218)]()[_0x509bf8(0x250)](_0x1fb6c5=>{const _0x4297be=_0x509bf8;if(_0x230890['CqlVG'](_0x1fb6c5[_0x4297be(0x1f0)],_0x230890[_0x4297be(0x226)])){let _0x43ef8e={};if(_0x1fb6c5[_0x4297be(0x216)])_0x43ef8e=_0x1fb6c5['toJSON']();else for(const _0x27eafa in _0x1fb6c5){_0x43ef8e[_0x27eafa]=_0x1fb6c5[_0x27eafa];}this[_0x4297be(0x25b)][_0x1fb6c5[_0x4297be(0x26c)]]&&(_0x43ef8e=Object[_0x4297be(0x1fb)](_0x43ef8e,this['details'][_0x1fb6c5[_0x4297be(0x26c)]])),delete this[_0x4297be(0x25b)][_0x1fb6c5[_0x4297be(0x26c)]],this[_0x4297be(0x272)]['push'](_0x43ef8e);}else this[_0x4297be(0x1f3)][_0x4297be(0x258)](_0x1fb6c5);});});const _0x28cd24={};_0x28cd24[_0x4e86ce(0x24e)]=!![],_0x28cd24[_0x4e86ce(0x282)]=[_0x230890[_0x4e86ce(0x24b)],_0x230890[_0x4e86ce(0x226)]],this['_observer'][_0x4e86ce(0x256)](_0x28cd24),this[_0x4e86ce(0x1ee)]=!![],this['jsonReportFileName']=_0x54608d,this[_0x4e86ce(0x21d)]=_0x51744b;}static[a79_0x172fb2(0x26d)](){return performance;}static[a79_0x172fb2(0x247)](_0xda440f,_0x2b1a6f){const _0x12003a=a79_0x172fb2,_0x1d35c7={};_0x1d35c7['YHIvy']=function(_0x17fb63,_0x5bb7a9){return _0x17fb63+_0x5bb7a9;},_0x1d35c7[_0x12003a(0x279)]=function(_0x27d6bb,_0x540f16){return _0x27d6bb||_0x540f16;},_0x1d35c7[_0x12003a(0x231)]=function(_0xa59e30,_0x3e0913){return _0xa59e30===_0x3e0913;};const _0x58c6ba=_0x1d35c7,_0xf9dff7={};if(!_0xda440f||_0x58c6ba[_0x12003a(0x231)](_0xda440f[_0x12003a(0x222)],0x0))return;_0xda440f[_0x12003a(0x27f)](_0x50d252=>{const _0x2495bd=_0x12003a;!_0xf9dff7[_0x50d252['name']]&&(_0xf9dff7[_0x50d252[_0x2495bd(0x26c)]]=0x0),_0xf9dff7[_0x50d252[_0x2495bd(0x26c)]]+=_0x50d252[_0x2495bd(0x280)];});const _0x14378b=_0x2b1a6f['reduce']((_0x49c59b,_0x598272)=>{const _0x491834=_0x12003a;return _0x58c6ba['YHIvy'](_0xf9dff7[_0x598272],_0x58c6ba[_0x491834(0x279)](_0x49c59b,0x0));},0x0);return _0x14378b;}static async[a79_0x172fb2(0x223)](_0x41246e,_0x39fbde){const _0x11a57f=a79_0x172fb2,_0x541946={'iVRpx':function(_0x3f766e,_0x45bdcc){return _0x3f766e+_0x45bdcc;},'QRlrg':function(_0x189aab,_0x4d369d){return _0x189aab||_0x4d369d;},'hAKJZ':function(_0x3a005f,_0x30c981){return _0x3a005f===_0x30c981;},'bqlLZ':function(_0x54ddfe,_0x25e7bb){return _0x54ddfe(_0x25e7bb);},'pOJDX':function(_0x4ab577,_0x503218){return _0x4ab577(_0x503218);}};if(!_0x41246e||_0x541946['hAKJZ'](_0x41246e['length'],0x0))return 0x0;const _0x3d590a=[];for(const _0xe95a85 of _0x41246e){const _0x21dd07=path[_0x11a57f(0x245)]('.',_0xe95a85);try{const _0x237b8c=this[_0x11a57f(0x209)](_0x21dd07);_0x237b8c[_0x11a57f(0x27f)](_0x2cb719=>{const _0x16adf2=_0x11a57f;!_0x3d590a[_0x2cb719[_0x16adf2(0x26c)]]&&(_0x3d590a[_0x2cb719[_0x16adf2(0x26c)]]=0x0),_0x3d590a[_0x2cb719[_0x16adf2(0x26c)]]+=_0x2cb719[_0x16adf2(0x280)];});}catch(_0x56af10){_0x541946[_0x11a57f(0x204)](debug,_0x11a57f(0x241)+_0x56af10[_0x11a57f(0x1ea)]());}}const _0x3db55b=_0x39fbde[_0x11a57f(0x206)]((_0x19a9bc,_0x229654)=>{const _0x5de860=_0x11a57f;return _0x541946[_0x5de860(0x225)](_0x3d590a[_0x229654],_0x541946[_0x5de860(0x266)](_0x19a9bc,0x0));},0x0);return _0x541946['pOJDX'](debug,_0x11a57f(0x221)+_0x39fbde+_0x11a57f(0x238)+_0x3db55b),_0x3db55b;}static[a79_0x172fb2(0x209)](_0x36bfa6){const _0x47eac1=a79_0x172fb2;if(!fs[_0x47eac1(0x27e)](_0x36bfa6))return[];return JSON[_0x47eac1(0x249)](fs[_0x47eac1(0x261)](_0x36bfa6)[_0x47eac1(0x1ea)]());}static async[a79_0x172fb2(0x244)](_0x3b719e=a79_0x172fb2(0x26a),_0x5602fb=null){const _0x3b0ef1=a79_0x172fb2,_0x2ffa58={'gDxJT':function(_0x569c31,_0x5930c2){return _0x569c31(_0x5930c2);},'sSIar':function(_0x301b44,_0x497990){return _0x301b44(_0x497990);}};if(!this[_0x3b0ef1(0x1ee)])return;await _0x2ffa58[_0x3b0ef1(0x202)](sleep,0x1e),this[_0x3b0ef1(0x20b)][_0x3b0ef1(0x22e)](),this[_0x3b0ef1(0x1ee)]=![],this[_0x3b0ef1(0x1ff)](this[_0x3b0ef1(0x1f3)]);const _0x2d9f94=this[_0x3b0ef1(0x21f)](this['_events']),_0x38d162=path['join'](process['cwd'](),_0x3b719e);fs['writeFile'](_0x38d162,_0x2d9f94,_0x3fd233=>{const _0x679e16=_0x3b0ef1;if(_0x3fd233){_0x2ffa58['gDxJT'](debug,_0x679e16(0x243)+_0x3fd233['toString']());return;}_0x2ffa58[_0x679e16(0x237)](debug,_0x679e16(0x219)+_0x38d162);});if(_0x5602fb)return this['calculateTimeFromEvents'](this['_events'],_0x5602fb);}static['generateHTMLReport'](_0x24429b){const _0x3e2893=a79_0x172fb2,_0x1f1ccf={};_0x1f1ccf[_0x3e2893(0x228)]=_0x3e2893(0x23c),_0x1f1ccf[_0x3e2893(0x1fd)]=_0x3e2893(0x267),_0x1f1ccf['qFLNE']=_0x3e2893(0x210),_0x1f1ccf['PCsHF']=_0x3e2893(0x25a);const _0x1e693f=_0x1f1ccf;let _0x4fb27e=_0x1e693f['qIRjX'];return _0x4fb27e+=_0x1e693f[_0x3e2893(0x1fd)],_0x4fb27e+=_0x1e693f[_0x3e2893(0x211)],_0x24429b[_0x3e2893(0x250)](_0x19838f=>{const _0x1dc507=_0x3e2893;_0x4fb27e+=_0x1dc507(0x21b)+_0x19838f[_0x1dc507(0x26c)]+_0x1dc507(0x1fa)+_0x19838f[_0x1dc507(0x280)]+'</td></tr>';}),_0x4fb27e+=_0x1e693f[_0x3e2893(0x23b)],_0x4fb27e;}static['generateJSON'](_0x494087){const _0x31aa9f=a79_0x172fb2;if(!this[_0x31aa9f(0x1ec)])return;const _0x36fca4={};_0x494087[_0x31aa9f(0x27f)](_0x3b01a9=>{const _0xd4d89b=_0x31aa9f;!_0x36fca4[_0x3b01a9[_0xd4d89b(0x26c)]]&&(_0x36fca4[_0x3b01a9[_0xd4d89b(0x26c)]]=0x0),_0x36fca4[_0x3b01a9[_0xd4d89b(0x26c)]]+=_0x3b01a9['duration'];});const _0xbc52b6=Object['entries'](_0x36fca4)[_0x31aa9f(0x27f)](([_0x182302,_0x1637ca])=>{const _0x242b7e=_0x31aa9f,_0x5eb3d8={};return _0x5eb3d8[_0x242b7e(0x26c)]=_0x182302,_0x5eb3d8['duration']=_0x1637ca,_0x5eb3d8;});fs[_0x31aa9f(0x22b)](this[_0x31aa9f(0x1ec)],JSON[_0x31aa9f(0x1ef)](_0xbc52b6));}static[a79_0x172fb2(0x278)](){const _0x26baab=a79_0x172fb2,_0x14edbc={};_0x14edbc['TyIsd']=function(_0x9cf93c,_0x254ab0){return _0x9cf93c===_0x254ab0;},_0x14edbc[_0x26baab(0x212)]=_0x26baab(0x220);const _0x516dec=_0x14edbc;return!_0x516dec[_0x26baab(0x23f)](process[_0x26baab(0x207)][_0x26baab(0x203)],_0x516dec[_0x26baab(0x212)]);}static[a79_0x172fb2(0x227)](_0x1b2ed3,_0x332605,_0x9aa47=null,_0x561f7e={},_0x3ac387=null){const _0x48b9d6=a79_0x172fb2,_0x1ae33f={'IIaME':function(_0x5e1899,_0x7340d7){return _0x5e1899(_0x7340d7);},'ImPRV':function(_0x22b730,_0x1af031){return _0x22b730(_0x1af031);},'iWiNg':function(_0x343107,_0x250d0b){return _0x343107 instanceof _0x250d0b;}};try{if(this['started']&&this[_0x48b9d6(0x278)]()){let _0x553719=_0x1b2ed3;_0x9aa47&&(_0x553719=_0x1b2ed3+'['+JSON[_0x48b9d6(0x1ef)](_0x9aa47)+']');PerformanceTester[_0x48b9d6(0x24d)](_0x553719),this['details']&&(this['details'][_0x553719]=_0x561f7e);try{const _0x4c180a=_0x332605[_0x48b9d6(0x260)](null,_0x3ac387);if(_0x1ae33f['iWiNg'](_0x4c180a,Promise))return new Promise((_0x1f5c31,_0x5395b8)=>{const _0x3d968b=_0x48b9d6,_0x280fd1={'JDFoi':function(_0xff9196,_0x2320a3){return _0x1ae33f['ImPRV'](_0xff9196,_0x2320a3);}};_0x4c180a[_0x3d968b(0x1f4)](_0x18f7ed=>{const _0x51a45a=_0x3d968b;PerformanceTester[_0x51a45a(0x263)](_0x553719),_0x280fd1['JDFoi'](_0x1f5c31,_0x18f7ed);})['catch'](_0x39d838=>{const _0x482685=_0x3d968b;PerformanceTester[_0x482685(0x263)](_0x553719,![],util['format'](_0x39d838)),_0x1ae33f[_0x482685(0x27d)](_0x5395b8,_0x39d838);});});;return PerformanceTester['end'](_0x553719),_0x4c180a;}catch(_0x44bb31){PerformanceTester[_0x48b9d6(0x263)](_0x553719,![],util[_0x48b9d6(0x22d)](_0x44bb31));throw _0x44bb31;}};return _0x332605[_0x48b9d6(0x260)](null,_0x3ac387);}catch(_0x1ef8fb){return _0x332605[_0x48b9d6(0x260)](null,_0x3ac387);}}static[a79_0x172fb2(0x251)](_0x2a102b,_0x31d5ed,_0x43931d={}){const _0x5b355b=a79_0x172fb2,_0x278db8={'QzKFE':function(_0x1f1baf){return _0x1f1baf();},'dTMLw':function(_0x37cf3b){return _0x37cf3b();}},_0x5809b5=this;return _0x43931d['worker']=_0x278db8[_0x5b355b(0x1f5)](getProcessId),_0x43931d[_0x5b355b(0x275)]=_0x278db8[_0x5b355b(0x1f1)](getTestName),_0x43931d[_0x5b355b(0x20e)]=global[_0x5b355b(0x27a)]&&global[_0x5b355b(0x27a)][_0x5b355b(0x259)],function(){const _0x5b5159=_0x5b355b,_0x1d1f70=[_0x2a102b,_0x31d5ed,null,_0x43931d]['concat'](arguments);return _0x5809b5[_0x5b5159(0x227)]['apply'](_0x5809b5,_0x1d1f70);};}static[a79_0x172fb2(0x233)](){const _0x4ac44e=a79_0x172fb2,_0x5d1a78=/(^.*)\[(.*)\]$/,_0x31a1f5={},_0x2369db={},_0x4123d2=[],_0x2db7af=this[_0x4ac44e(0x272)]['splice'](0x0,this['_measureEvents'][_0x4ac44e(0x222)]);for(const _0x2e72dc of _0x2db7af){const _0x177d6b=_0x2e72dc[_0x4ac44e(0x26c)][_0x4ac44e(0x1f2)](_0x5d1a78),_0x4e5a25=Object[_0x4ac44e(0x1fb)]({},_0x2e72dc);_0x177d6b&&(_0x4e5a25[_0x4ac44e(0x26c)]=_0x177d6b[0x1],_0x4e5a25[_0x4ac44e(0x20a)]=JSON['parse'](_0x177d6b[0x2])),_0x4123d2[_0x4ac44e(0x258)](_0x4e5a25);}return _0x4123d2;}static[a79_0x172fb2(0x234)](){const _0x61baaa=a79_0x172fb2,_0x1435ab={};_0x1435ab[_0x61baaa(0x26f)]=function(_0x1a4a80,_0x1a083b){return _0x1a4a80+_0x1a083b;},_0x1435ab[_0x61baaa(0x25f)]=_0x61baaa(0x276),_0x1435ab[_0x61baaa(0x26e)]=function(_0x442c61,_0x539087){return _0x442c61===_0x539087;};const _0x4db063=_0x1435ab;try{if(fs[_0x61baaa(0x27e)](this[_0x61baaa(0x208)])){const _0x184d43=fs[_0x61baaa(0x277)](this[_0x61baaa(0x208)]);for(const _0x1f92a9 of _0x184d43){fs['unlinkSync'](path[_0x61baaa(0x245)](this['jsonReportDirPath'],_0x1f92a9));}}}catch(_0x52b7dc){logger['debug'](_0x4db063[_0x61baaa(0x26f)](_0x4db063[_0x61baaa(0x25f)],_0x52b7dc));}if(_0x4db063[_0x61baaa(0x26e)](this[_0x61baaa(0x272)][_0x61baaa(0x222)],0x0))return;const _0x227bf3=this[_0x61baaa(0x233)](),_0x4be802=JSON[_0x61baaa(0x1ef)](_0x227bf3),_0x48a5b2=_0x4db063[_0x61baaa(0x26f)](_0x4be802[_0x61baaa(0x27c)](0x1,-0x1),',');fs[_0x61baaa(0x232)](this[_0x61baaa(0x1ec)],_0x48a5b2);}static async['finalizePerfMeasures'](){const _0x20905b=a79_0x172fb2,_0x36eeca={};_0x36eeca[_0x20905b(0x22a)]=function(_0x1ff88a,_0x4fb3c6){return _0x1ff88a===_0x4fb3c6;},_0x36eeca[_0x20905b(0x213)]=function(_0x147838,_0x1c513c){return _0x147838>_0x1c513c;};const _0x3c2fdc=_0x36eeca;if(!this[_0x20905b(0x1ee)]||_0x3c2fdc[_0x20905b(0x22a)](this['_measureEvents'][_0x20905b(0x222)],0x0))return[];if(!fs[_0x20905b(0x27e)](this[_0x20905b(0x208)]))return this['_measureEvents'];const _0xaf0914=(await fsPromise['readdir'](this[_0x20905b(0x208)]))[_0x20905b(0x27f)](_0x49dda0=>path['resolve'](this[_0x20905b(0x208)],_0x49dda0));let _0x2b63b4=(await Promise[_0x20905b(0x215)](_0xaf0914[_0x20905b(0x27f)](_0x49bf11=>fsPromise[_0x20905b(0x271)](_0x49bf11,_0x20905b(0x273)))))[_0x20905b(0x27f)](_0x3f413a=>'['+_0x3f413a['slice'](0x0,-0x1)+']')[_0x20905b(0x27f)](_0x42367e=>JSON[_0x20905b(0x249)](_0x42367e))[_0x20905b(0x252)]();return _0x3c2fdc['gmTDI'](this[_0x20905b(0x272)]['length'],0x0)&&(_0x2b63b4=_0x2b63b4[_0x20905b(0x1e8)](this[_0x20905b(0x233)]())),this['_observer']['disconnect'](),_0x2b63b4;}static[a79_0x172fb2(0x264)](){const _0x1196a6=a79_0x172fb2,_0x4a00f7={};_0x4a00f7['LKiPR']=function(_0x5e3249,_0xfa0ac3){return _0x5e3249===_0xfa0ac3;},_0x4a00f7[_0x1196a6(0x24a)]=function(_0x5ddf04,_0xd7aa9f){return _0x5ddf04+_0xd7aa9f;};const _0x1b0d41=_0x4a00f7;if(_0x1b0d41[_0x1196a6(0x25e)](this[_0x1196a6(0x21a)][_0x1196a6(0x222)],0x0))return;const _0x3030c0=JSON[_0x1196a6(0x1ef)](this[_0x1196a6(0x21a)]),_0x10ef0d=_0x1b0d41[_0x1196a6(0x24a)](_0x3030c0[_0x1196a6(0x27c)](0x1,-0x1),',');fs[_0x1196a6(0x232)](this[_0x1196a6(0x1f6)],_0x10ef0d);}static['finalizeErrors'](){const _0x27df04=a79_0x172fb2,_0x3e9622={};_0x3e9622[_0x27df04(0x254)]=function(_0x2c5fc7,_0x48c920){return _0x2c5fc7>_0x48c920;};const _0x713548=_0x3e9622;if(!fs[_0x27df04(0x27e)](this[_0x27df04(0x21d)]))return this[_0x27df04(0x21a)];let _0x48131f=fs[_0x27df04(0x261)](this[_0x27df04(0x21d)])[_0x27df04(0x1ea)]();_0x48131f='['+_0x48131f[_0x27df04(0x27c)](0x0,-0x1)+']';let _0x57eeb6=JSON['parse'](_0x48131f);return _0x713548[_0x27df04(0x254)](this[_0x27df04(0x21a)][_0x27df04(0x222)],0x0)&&(_0x57eeb6=_0x57eeb6[_0x27df04(0x1e8)](this[_0x27df04(0x21a)])),fs[_0x27df04(0x20c)](this['errorReportFileName']),_0x57eeb6;}static['captureError'](_0x6603b7){const _0x57f3dc=a79_0x172fb2;if(!this[_0x57f3dc(0x278)]())return;this[_0x57f3dc(0x21a)][_0x57f3dc(0x258)]({'message':_0x6603b7[_0x57f3dc(0x23a)],'trace':_0x6603b7['stack'],'code':_0x6603b7['code']||null,'time':new Date()});}static[a79_0x172fb2(0x20d)](){const _0x536427=a79_0x172fb2;try{if(!this['isEnabled']())return;this[_0x536427(0x20b)]['disconnect'](),this[_0x536427(0x234)](),this[_0x536427(0x264)]();}catch(_0x2b1e91){logger[_0x536427(0x265)](_0x536427(0x1e9)+util[_0x536427(0x22d)](_0x2b1e91));}}static async['finalize'](){const _0x216db5=a79_0x172fb2,_0x285735={'JDECG':function(_0x6dda1c,_0x397a9c){return _0x6dda1c(_0x397a9c);}};await _0x285735[_0x216db5(0x23d)](sleep,0x1e);const _0xe750c1=await this['finalizePerfMeasures'](),_0x3c9211=this['finalizeErrors']();if(!this['isEnabled']()){const _0x165ac2={};return _0x165ac2[_0x216db5(0x25d)]=[],_0x165ac2[_0x216db5(0x246)]=[],_0x165ac2;}const _0x420b39={};return _0x420b39[_0x216db5(0x25d)]=_0xe750c1,_0x420b39[_0x216db5(0x246)]=_0x3c9211,_0x420b39;}static['start'](_0x5c98dd){const _0x183a1d=a79_0x172fb2,_0x3cd59c={};_0x3cd59c[_0x183a1d(0x201)]=function(_0x3b1734,_0x29bd98){return _0x3b1734+_0x29bd98;},_0x3cd59c[_0x183a1d(0x20f)]=_0x183a1d(0x239);const _0x56c351=_0x3cd59c,_0x805a4a=_0x56c351[_0x183a1d(0x201)](_0x5c98dd,_0x56c351[_0x183a1d(0x20f)]);if(this['eventsMap'][_0x805a4a])return;performance[_0x183a1d(0x1eb)](_0x805a4a),this[_0x183a1d(0x230)][_0x805a4a]=0x1;}static[a79_0x172fb2(0x263)](_0x1bc8f7,_0x273168=!![],_0x32ec7b=null,_0x4c7ea6={}){const _0x24e4e0=a79_0x172fb2,_0x195273={'WlMQJ':function(_0x3eb80f,_0x31425a){return _0x3eb80f+_0x31425a;},'qzMxA':_0x24e4e0(0x283),'wJjIs':'-start','wfsQL':function(_0xf4c635){return _0xf4c635();}};performance[_0x24e4e0(0x1eb)](_0x195273[_0x24e4e0(0x240)](_0x1bc8f7,_0x195273[_0x24e4e0(0x257)])),performance[_0x24e4e0(0x227)](_0x1bc8f7,_0x195273['WlMQJ'](_0x1bc8f7,_0x195273[_0x24e4e0(0x281)]),_0x195273[_0x24e4e0(0x240)](_0x1bc8f7,_0x195273[_0x24e4e0(0x257)]));const _0x5cc264={};_0x5cc264[_0x24e4e0(0x214)]=_0x273168,_0x5cc264[_0x24e4e0(0x1e7)]=_0x32ec7b,this[_0x24e4e0(0x25b)][_0x1bc8f7]=Object['assign'](_0x5cc264,Object[_0x24e4e0(0x1fb)](Object[_0x24e4e0(0x1fb)]({'worker':_0x195273[_0x24e4e0(0x22f)](getProcessId),'platform':global['__platformCaps']&&global[_0x24e4e0(0x27a)][_0x24e4e0(0x259)],'testName':_0x195273[_0x24e4e0(0x22f)](getTestName)},_0x4c7ea6),this[_0x24e4e0(0x25b)][_0x1bc8f7]||{}));}}function a79_0x37db(){const _0x176530=['WIDHJ','gDxJT','BROWSERSTACK_SDK_INSTRUMENTATION','bqlLZ','performance-report','reduce','env','jsonReportDirPath','getEventsFromJSON','meta','_observer','unlinkSync','stopMonitoring','platform','zbtYB','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','qFLNE','tVkVG','gmTDI','success','all','toJSON','startMonitoring','getEntries','Performance\x20report\x20is\x20at\x20','_errorEvents','<tr><td>','browserStackCwd','errorReportFileName','util','generateHTMLReport','false','Time\x20for\x20','length','calculateTimesFromMultipleFiles','896944UXUpwh','iVRpx','gPEEw','measure','qIRjX','/performance-report-','lCmEP','writeFileSync','3edHqEX','format','disconnect','wfsQL','eventsMap','zVvlP','appendFileSync','getCleanedPerfEvents','pushPerfMeasures','wHpgK','winstonLogger','sSIar','\x20for\x20all\x20processes\x20is\x20','-start','message','PCsHF','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','JDECG','9612970SCEOXO','TyIsd','WlMQJ','Error\x20in\x20doing\x20csv\x20operations:\x20','path','Error\x20in\x20writing\x20html\x20','stopAndGenerate','join','errors','calculateTimeFromEvents','jsonReportDirName','parse','EoJJV','pJVLo','error-report','start','buffered','1677355EnfpKx','forEach','measureWrapper','flat','2374212nlmDql','KEEap','3925629iIqOYZ','observe','qzMxA','push','index','</tbody></table></body></html>','details','errorReportDirName','measures','LKiPR','RRfmR','apply','readFileSync','.json','end','pushErrors','debug','QRlrg','<h1>Performance\x20Report</h1>','fs/promises','/error-report-','performance-own.html','../logger','name','getPerformance','fuDAL','lXgvz','perf_hooks','readFile','_measureEvents','utf-8','cwd','testName','Error\x20while\x20removing\x20files:\x20','readdirSync','isEnabled','dFWCy','__platformCaps','6103762bJWIDp','slice','IIaME','existsSync','map','duration','wJjIs','entryTypes','-end','failure','concat','Error\x20stopping\x20monitoring\x20','toString','mark','jsonReportFileName','1186246LGmwJm','started','stringify','entryType','dTMLw','match','_events','then','QzKFE','errorFile','CqlVG','ENKsd','mkdirSync','</td><td>','assign','11RqkIJG','RHvRR','1hupZnt','generateJSON','24cmTQdc'];a79_0x37db=function(){return _0x176530;};return a79_0x37db();}function a79_0x5775(_0x117200,_0x33d952){const _0x37db44=a79_0x37db();return a79_0x5775=function(_0x57753d,_0x4b0d01){_0x57753d=_0x57753d-0x1e7;let _0x5c7cd4=_0x37db44[_0x57753d];return _0x5c7cd4;},a79_0x5775(_0x117200,_0x33d952);}module['exports']=PerformanceTester;
|
|
1
|
+
function a79_0x778e(_0x48bd1a,_0x3b353e){const _0x5a6e58=a79_0x5a6e();return a79_0x778e=function(_0x778ec1,_0x4d1f00){_0x778ec1=_0x778ec1-0x142;let _0x390d72=_0x5a6e58[_0x778ec1];return _0x390d72;},a79_0x778e(_0x48bd1a,_0x3b353e);}const a79_0x4a8470=a79_0x778e;(function(_0x56b7dc,_0x3726c8){const _0x2a4f3c=a79_0x778e,_0xf43480=_0x56b7dc();while(!![]){try{const _0x43d140=-parseInt(_0x2a4f3c(0x1ba))/0x1+parseInt(_0x2a4f3c(0x191))/0x2*(parseInt(_0x2a4f3c(0x183))/0x3)+parseInt(_0x2a4f3c(0x1ca))/0x4*(-parseInt(_0x2a4f3c(0x176))/0x5)+-parseInt(_0x2a4f3c(0x150))/0x6*(parseInt(_0x2a4f3c(0x153))/0x7)+parseInt(_0x2a4f3c(0x154))/0x8*(parseInt(_0x2a4f3c(0x158))/0x9)+-parseInt(_0x2a4f3c(0x1af))/0xa+parseInt(_0x2a4f3c(0x1bb))/0xb;if(_0x43d140===_0x3726c8)break;else _0xf43480['push'](_0xf43480['shift']());}catch(_0x1ca7b6){_0xf43480['push'](_0xf43480['shift']());}}}(a79_0x5a6e,0x9a34b));function a79_0x5a6e(){const _0x353cc8=['buffered','resolve','</td></tr>','entryTypes','OCYsP','<h1>Performance\x20Report</h1>','MSCRq','map','performance-own.html','duration','BROWSERSTACK_SDK_INSTRUMENTATION','cwd','Sfsfy','/performance-report-','captureError','env','stringify','mkdirSync','parse','hipbj','ZxxJz','ueOTs','BpzdI','start','apply','perf_hooks','btSbE','xAoyH','Performance\x20report\x20is\x20at\x20','jsonReportFileName','winstonLogger','WbnDm','format','fs/promises','6614286XuuZuF','assign','jFbNT','7LttLKY','3344736NxagYn','cNoVi','qsYSz','MeqCo','18PHXNBd','toJSON','false','measures','testName','debug','success','readFileSync','gupvG','mark','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','-start','details','gIBWH','ajcGc','performance-report','errorFile','gXYQO','worker','eventsMap','../processHelper','index','forEach','pushPerfMeasures','push','all','stack','EKCRb','calculateTimesFromMultipleFiles','cjYjF','253355PfEjkT','started','getPerformance','/error-report-','BRnFU','jsonReportDirName','errorReportFileName','reduce','finalizeErrors','IzUJx','stopMonitoring','disconnect','length','13791DrWOVo','hwIEz','toString','unlinkSync','getEntries','appendFileSync','utf-8','entries','end','measureWrapper','slice','_events','Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','isEnabled','26jyKpyp','VvePB','_measureEvents','getEventsFromJSON','jZeDU','calculateTimeFromEvents','writeFileSync','concat','Error\x20stopping\x20monitoring\x20','RKNaa','errorReportDirName','startMonitoring','existsSync','function','writeFile','getCleanedPerfEvents','mwhFy','vCawS','LGANQ','generateJSON','finalizePerfMeasures','-end','readdir','svkLI','message','Error\x20in\x20doing\x20csv\x20operations:\x20','pushErrors','error-report','pKyXX','generateHTMLReport','10571870iTwgDu','then','errors','azqJQ','_errorEvents','splice','gtkiu','jsonReportDirPath','ZeVQB','code','lWEVw','921393lvaFKQ','33212597SoBsNA','meta','join','measure','__platformCaps','_observer','readFile','Error\x20while\x20removing\x20files:\x20','.json','ECQzO','name','browserStackCwd','util','LHVTf','finalize','16hamfup','</td><td>'];a79_0x5a6e=function(){return _0x353cc8;};return a79_0x5a6e();}const fs=require('fs'),fsPromise=require(a79_0x4a8470(0x14f)),{performance,PerformanceObserver}=require(a79_0x4a8470(0x147)),path=require('path'),util=require(a79_0x4a8470(0x1c7)),logger=require('../logger')[a79_0x4a8470(0x14c)],{getProcessId,sleep,debug,getTestName}=require(a79_0x4a8470(0x16c));class PerformanceTester{static [a79_0x4a8470(0x1c0)];static [a79_0x4a8470(0x18e)]=[];static [a79_0x4a8470(0x193)]=[];static ['_errorEvents']=[];static ['started']=![];static [a79_0x4a8470(0x17b)]=a79_0x4a8470(0x167);static [a79_0x4a8470(0x1b6)]=process[a79_0x4a8470(0x1db)][a79_0x4a8470(0x1c6)]?path['join'](process['env']['browserStackCwd'],this[a79_0x4a8470(0x17b)]):path[a79_0x4a8470(0x1bd)](process[a79_0x4a8470(0x1d7)](),'log',this[a79_0x4a8470(0x17b)]);static [a79_0x4a8470(0x19b)]=process['env'][a79_0x4a8470(0x1c6)]?path['join'](process[a79_0x4a8470(0x1db)][a79_0x4a8470(0x1c6)],a79_0x4a8470(0x1ac)):path[a79_0x4a8470(0x1bd)](process['cwd'](),a79_0x4a8470(0x1ac));static ['jsonReportFileName']=this[a79_0x4a8470(0x1b6)]+a79_0x4a8470(0x1d9)+getProcessId()+'.json';static [a79_0x4a8470(0x17c)]=this['errorReportDirName']+a79_0x4a8470(0x179)+getProcessId()+a79_0x4a8470(0x1c3);static ['details']={};static [a79_0x4a8470(0x16b)]={};static[a79_0x4a8470(0x19c)](_0x1ca7e1=this[a79_0x4a8470(0x1b6)]+a79_0x4a8470(0x1d9)+getProcessId()+a79_0x4a8470(0x1c3),_0x5c6845=this['errorReportDirName']+a79_0x4a8470(0x179)+getProcessId()+a79_0x4a8470(0x1c3)){const _0x3bb9c8=a79_0x4a8470,_0xc00094={};_0xc00094[_0x3bb9c8(0x1a1)]=function(_0x3f0b20,_0x4ed62c){return _0x3f0b20===_0x4ed62c;},_0xc00094[_0x3bb9c8(0x1c4)]='measure',_0xc00094['qbHnc']=function(_0x10f598,_0xbc16cf){return _0x10f598+_0xbc16cf;},_0xc00094[_0x3bb9c8(0x1b9)]=_0x3bb9c8(0x18f),_0xc00094['azqJQ']=_0x3bb9c8(0x19e);const _0x3e2e56=_0xc00094;try{!fs[_0x3bb9c8(0x19d)](this['jsonReportDirPath'])&&fs[_0x3bb9c8(0x1dd)](this[_0x3bb9c8(0x1b6)]);}catch(_0x147b1d){logger['debug'](_0x3e2e56['qbHnc'](_0x3e2e56[_0x3bb9c8(0x1b9)],_0x147b1d));}if(this[_0x3bb9c8(0x177)]||!this[_0x3bb9c8(0x190)]())return;this['_observer']=new PerformanceObserver(_0xd28330=>{const _0x61007=_0x3bb9c8;_0xd28330[_0x61007(0x187)]()[_0x61007(0x16e)](_0x4ecf95=>{const _0x1fcf9b=_0x61007;if(_0x3e2e56[_0x1fcf9b(0x1a1)](_0x4ecf95['entryType'],_0x3e2e56[_0x1fcf9b(0x1c4)])){let _0x3ff4f8={};if(_0x4ecf95[_0x1fcf9b(0x159)])_0x3ff4f8=_0x4ecf95[_0x1fcf9b(0x159)]();else for(const _0x1096da in _0x4ecf95){_0x3ff4f8[_0x1096da]=_0x4ecf95[_0x1096da];}this[_0x1fcf9b(0x164)][_0x4ecf95[_0x1fcf9b(0x1c5)]]&&(_0x3ff4f8=Object[_0x1fcf9b(0x151)](_0x3ff4f8,this[_0x1fcf9b(0x164)][_0x4ecf95[_0x1fcf9b(0x1c5)]])),delete this['details'][_0x4ecf95[_0x1fcf9b(0x1c5)]],this[_0x1fcf9b(0x193)]['push'](_0x3ff4f8);}else this[_0x1fcf9b(0x18e)]['push'](_0x4ecf95);});});const _0x4b6bac={};_0x4b6bac[_0x3bb9c8(0x1cc)]=!![],_0x4b6bac[_0x3bb9c8(0x1cf)]=[_0x3e2e56[_0x3bb9c8(0x1b2)],_0x3e2e56[_0x3bb9c8(0x1c4)]],this['_observer']['observe'](_0x4b6bac),this[_0x3bb9c8(0x177)]=!![],this['jsonReportFileName']=_0x1ca7e1,this['errorReportFileName']=_0x5c6845;}static[a79_0x4a8470(0x178)](){return performance;}static[a79_0x4a8470(0x196)](_0x53dce9,_0x4d4d9a){const _0x3d481c=a79_0x4a8470,_0x204dc1={};_0x204dc1[_0x3d481c(0x152)]=function(_0x407a18,_0x262626){return _0x407a18+_0x262626;},_0x204dc1[_0x3d481c(0x166)]=function(_0x194b77,_0x4abcc2){return _0x194b77||_0x4abcc2;},_0x204dc1[_0x3d481c(0x175)]=function(_0x136fe8,_0xa45d57){return _0x136fe8===_0xa45d57;};const _0x376522=_0x204dc1,_0x45d6b2={};if(!_0x53dce9||_0x376522[_0x3d481c(0x175)](_0x53dce9[_0x3d481c(0x182)],0x0))return;_0x53dce9['map'](_0x1a2ac7=>{const _0x122d37=_0x3d481c;!_0x45d6b2[_0x1a2ac7['name']]&&(_0x45d6b2[_0x1a2ac7[_0x122d37(0x1c5)]]=0x0),_0x45d6b2[_0x1a2ac7[_0x122d37(0x1c5)]]+=_0x1a2ac7[_0x122d37(0x1d5)];});const _0x5550fe=_0x4d4d9a[_0x3d481c(0x17d)]((_0x4c85e8,_0x54bdfe)=>{const _0x4821f6=_0x3d481c;return _0x376522[_0x4821f6(0x152)](_0x45d6b2[_0x54bdfe],_0x376522[_0x4821f6(0x166)](_0x4c85e8,0x0));},0x0);return _0x5550fe;}static async[a79_0x4a8470(0x174)](_0x9867c5,_0x285a6c){const _0x12bc57=a79_0x4a8470,_0x12d5ab={'btSbE':function(_0x2b75db,_0x343ebe){return _0x2b75db+_0x343ebe;},'xAoyH':function(_0x430eb4,_0x2f857d){return _0x430eb4||_0x2f857d;},'LHVTf':function(_0x185a15,_0x5e4eda){return _0x185a15===_0x5e4eda;},'ZeVQB':function(_0x2d7217,_0xfdfe04){return _0x2d7217(_0xfdfe04);}};if(!_0x9867c5||_0x12d5ab[_0x12bc57(0x1c8)](_0x9867c5[_0x12bc57(0x182)],0x0))return 0x0;const _0x3f64e4=[];for(const _0x45e9f3 of _0x9867c5){const _0x4b5412=path[_0x12bc57(0x1bd)]('.',_0x45e9f3);try{const _0x2a8e2c=this[_0x12bc57(0x194)](_0x4b5412);_0x2a8e2c[_0x12bc57(0x1d3)](_0x37cdca=>{const _0x255d15=_0x12bc57;!_0x3f64e4[_0x37cdca[_0x255d15(0x1c5)]]&&(_0x3f64e4[_0x37cdca[_0x255d15(0x1c5)]]=0x0),_0x3f64e4[_0x37cdca[_0x255d15(0x1c5)]]+=_0x37cdca['duration'];});}catch(_0x341ee9){_0x12d5ab[_0x12bc57(0x1b7)](debug,_0x12bc57(0x1aa)+_0x341ee9['toString']());}}const _0x463231=_0x285a6c[_0x12bc57(0x17d)]((_0x1a59fa,_0x256d92)=>{const _0x14b8ad=_0x12bc57;return _0x12d5ab[_0x14b8ad(0x148)](_0x3f64e4[_0x256d92],_0x12d5ab[_0x14b8ad(0x149)](_0x1a59fa,0x0));},0x0);return _0x12d5ab['ZeVQB'](debug,'Time\x20for\x20'+_0x285a6c+'\x20for\x20all\x20processes\x20is\x20'+_0x463231),_0x463231;}static[a79_0x4a8470(0x194)](_0x28ca90){const _0x5512e6=a79_0x4a8470;if(!fs[_0x5512e6(0x19d)](_0x28ca90))return[];return JSON[_0x5512e6(0x1de)](fs[_0x5512e6(0x15f)](_0x28ca90)[_0x5512e6(0x185)]());}static async['stopAndGenerate'](_0x355bf7=a79_0x4a8470(0x1d4),_0x53b975=null){const _0x50a34e=a79_0x4a8470,_0x3ef8a3={'dhcOl':function(_0x2398c0,_0x5e0231){return _0x2398c0(_0x5e0231);},'hipbj':function(_0x7fa75c,_0x4d8fdc){return _0x7fa75c(_0x4d8fdc);},'cNoVi':function(_0x52ce1b,_0x713f47){return _0x52ce1b(_0x713f47);}};if(!this['started'])return;await _0x3ef8a3[_0x50a34e(0x155)](sleep,0x1e),this[_0x50a34e(0x1c0)][_0x50a34e(0x181)](),this[_0x50a34e(0x177)]=![],this['generateJSON'](this['_events']);const _0x278229=this[_0x50a34e(0x1ae)](this[_0x50a34e(0x18e)]),_0x413f8e=path[_0x50a34e(0x1bd)](process['cwd'](),_0x355bf7);fs[_0x50a34e(0x19f)](_0x413f8e,_0x278229,_0x197b75=>{const _0x48c530=_0x50a34e;if(_0x197b75){_0x3ef8a3['dhcOl'](debug,'Error\x20in\x20writing\x20html\x20'+_0x197b75['toString']());return;}_0x3ef8a3[_0x48c530(0x1df)](debug,_0x48c530(0x14a)+_0x413f8e);});if(_0x53b975)return this[_0x50a34e(0x196)](this[_0x50a34e(0x18e)],_0x53b975);}static['generateHTMLReport'](_0x1d82dd){const _0x1f51ff=a79_0x4a8470,_0x5722d4={};_0x5722d4[_0x1f51ff(0x143)]='<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>',_0x5722d4[_0x1f51ff(0x17f)]=_0x1f51ff(0x1d1),_0x5722d4['OCYsP']=_0x1f51ff(0x162),_0x5722d4[_0x1f51ff(0x173)]='</tbody></table></body></html>';const _0x220279=_0x5722d4;let _0x1c22bd=_0x220279['ueOTs'];return _0x1c22bd+=_0x220279['IzUJx'],_0x1c22bd+=_0x220279[_0x1f51ff(0x1d0)],_0x1d82dd['forEach'](_0x3a28c1=>{const _0x417e23=_0x1f51ff;_0x1c22bd+='<tr><td>'+_0x3a28c1[_0x417e23(0x1c5)]+_0x417e23(0x1cb)+_0x3a28c1[_0x417e23(0x1d5)]+_0x417e23(0x1ce);}),_0x1c22bd+=_0x220279[_0x1f51ff(0x173)],_0x1c22bd;}static[a79_0x4a8470(0x1a4)](_0x3d22d1){const _0x4b8112=a79_0x4a8470;if(!this[_0x4b8112(0x14b)])return;const _0x2c0a0c={};_0x3d22d1['map'](_0x10dec4=>{const _0x10a9ea=_0x4b8112;!_0x2c0a0c[_0x10dec4[_0x10a9ea(0x1c5)]]&&(_0x2c0a0c[_0x10dec4[_0x10a9ea(0x1c5)]]=0x0),_0x2c0a0c[_0x10dec4[_0x10a9ea(0x1c5)]]+=_0x10dec4[_0x10a9ea(0x1d5)];});const _0x342061=Object[_0x4b8112(0x18a)](_0x2c0a0c)[_0x4b8112(0x1d3)](([_0x4a431c,_0x278f9d])=>{const _0x4c8929=_0x4b8112,_0x1a0895={};return _0x1a0895[_0x4c8929(0x1c5)]=_0x4a431c,_0x1a0895[_0x4c8929(0x1d5)]=_0x278f9d,_0x1a0895;});fs[_0x4b8112(0x197)](this[_0x4b8112(0x14b)],JSON['stringify'](_0x342061));}static[a79_0x4a8470(0x190)](){const _0x5c89ec=a79_0x4a8470,_0x4e0966={};_0x4e0966[_0x5c89ec(0x192)]=function(_0x463205,_0x21869a){return _0x463205===_0x21869a;},_0x4e0966[_0x5c89ec(0x165)]=_0x5c89ec(0x15a);const _0x337f96=_0x4e0966;return!_0x337f96[_0x5c89ec(0x192)](process[_0x5c89ec(0x1db)][_0x5c89ec(0x1d6)],_0x337f96[_0x5c89ec(0x165)]);}static[a79_0x4a8470(0x1be)](_0x1af058,_0x177c3f,_0x409efa=null,_0x21d034={},_0x361bb9=null){const _0x43f3c0=a79_0x4a8470,_0xd26e52={'gtkiu':function(_0x551e66,_0x3bd382){return _0x551e66(_0x3bd382);},'WCJiF':function(_0x4aeec8,_0x5b8693){return _0x4aeec8 instanceof _0x5b8693;}};try{if(this['started']&&this[_0x43f3c0(0x190)]()){let _0x2cb2de=_0x1af058;_0x409efa&&(_0x2cb2de=_0x1af058+'['+JSON[_0x43f3c0(0x1dc)](_0x409efa)+']');PerformanceTester[_0x43f3c0(0x145)](_0x2cb2de),this[_0x43f3c0(0x164)]&&(this[_0x43f3c0(0x164)][_0x2cb2de]=_0x21d034);try{const _0x1967fd=_0x177c3f[_0x43f3c0(0x146)](null,_0x361bb9);if(_0xd26e52['WCJiF'](_0x1967fd,Promise))return new Promise((_0x4c5b3f,_0x1aa16a)=>{const _0x32aeda=_0x43f3c0;_0x1967fd[_0x32aeda(0x1b0)](_0x2d8f5b=>{const _0x1ef756=_0x32aeda;PerformanceTester['end'](_0x2cb2de),_0xd26e52[_0x1ef756(0x1b5)](_0x4c5b3f,_0x2d8f5b);})['catch'](_0xd10cd0=>{const _0x1344a4=_0x32aeda;PerformanceTester[_0x1344a4(0x18b)](_0x2cb2de,![],util[_0x1344a4(0x14e)](_0xd10cd0)),_0xd26e52[_0x1344a4(0x1b5)](_0x1aa16a,_0xd10cd0);});});;return PerformanceTester['end'](_0x2cb2de),_0x1967fd;}catch(_0x561730){PerformanceTester[_0x43f3c0(0x18b)](_0x2cb2de,![],util[_0x43f3c0(0x14e)](_0x561730));throw _0x561730;}};return _0x177c3f['apply'](null,_0x361bb9);}catch(_0x4a6202){return _0x177c3f['apply'](null,_0x361bb9);}}static[a79_0x4a8470(0x18c)](_0x45a152,_0x4ac276,_0xc1470={}){const _0x5d1817=a79_0x4a8470,_0x1d5576={'luHUZ':function(_0xcb5092){return _0xcb5092();},'LGANQ':function(_0x1aab71){return _0x1aab71();}},_0x2ccaed=this;return _0xc1470[_0x5d1817(0x16a)]=_0x1d5576['luHUZ'](getProcessId),_0xc1470[_0x5d1817(0x15c)]=_0x1d5576[_0x5d1817(0x1a3)](getTestName),_0xc1470['platform']=global[_0x5d1817(0x1bf)]&&global[_0x5d1817(0x1bf)][_0x5d1817(0x16d)],function(){const _0x46a35b=_0x5d1817,_0x1cc2bc=[_0x45a152,_0x4ac276,null,_0xc1470][_0x46a35b(0x198)](arguments);return _0x2ccaed['measure'][_0x46a35b(0x146)](_0x2ccaed,_0x1cc2bc);};}static[a79_0x4a8470(0x1a0)](){const _0x4774fe=a79_0x4a8470,_0x5603db=/(^.*)\[(.*)\]$/,_0x566083={},_0x8c7a2={},_0xc6a34b=[],_0x5297a7=this[_0x4774fe(0x193)][_0x4774fe(0x1b4)](0x0,this[_0x4774fe(0x193)][_0x4774fe(0x182)]);for(const _0x10c063 of _0x5297a7){const _0x23dc2d=_0x10c063['name']['match'](_0x5603db),_0x55d09d=Object[_0x4774fe(0x151)]({},_0x10c063);_0x23dc2d&&(_0x55d09d[_0x4774fe(0x1c5)]=_0x23dc2d[0x1],_0x55d09d[_0x4774fe(0x1bc)]=JSON[_0x4774fe(0x1de)](_0x23dc2d[0x2])),_0xc6a34b[_0x4774fe(0x170)](_0x55d09d);}return _0xc6a34b;}static[a79_0x4a8470(0x16f)](){const _0x4a61e3=a79_0x4a8470,_0x294053={};_0x294053[_0x4a61e3(0x17a)]=function(_0x3c6d9e,_0x3fe75c){return _0x3c6d9e+_0x3fe75c;},_0x294053[_0x4a61e3(0x160)]=_0x4a61e3(0x1c2),_0x294053[_0x4a61e3(0x1ad)]=function(_0x19cd43,_0x2f676e){return _0x19cd43===_0x2f676e;},_0x294053['LCLpZ']=function(_0x4521be,_0x54812a){return _0x4521be+_0x54812a;};const _0x546361=_0x294053;try{if(fs[_0x4a61e3(0x19d)](this['jsonReportDirPath'])){const _0x3d96ad=fs['readdirSync'](this[_0x4a61e3(0x1b6)]);for(const _0x187fde of _0x3d96ad){fs[_0x4a61e3(0x186)](path[_0x4a61e3(0x1bd)](this[_0x4a61e3(0x1b6)],_0x187fde));}}}catch(_0xb315ce){logger[_0x4a61e3(0x15d)](_0x546361[_0x4a61e3(0x17a)](_0x546361[_0x4a61e3(0x160)],_0xb315ce));}if(_0x546361['pKyXX'](this['_measureEvents'][_0x4a61e3(0x182)],0x0))return;const _0x1071e0=this[_0x4a61e3(0x1a0)](),_0x2cb1a4=JSON[_0x4a61e3(0x1dc)](_0x1071e0),_0x3d2381=_0x546361['LCLpZ'](_0x2cb1a4[_0x4a61e3(0x18d)](0x1,-0x1),',');fs[_0x4a61e3(0x188)](this[_0x4a61e3(0x14b)],_0x3d2381);}static async[a79_0x4a8470(0x1a5)](){const _0xfc81aa=a79_0x4a8470,_0x503756={};_0x503756[_0xfc81aa(0x1d8)]=function(_0x1e77ed,_0x21c2de){return _0x1e77ed===_0x21c2de;},_0x503756[_0xfc81aa(0x157)]=function(_0x545ffe,_0x38c84b){return _0x545ffe>_0x38c84b;};const _0x2f4c6f=_0x503756;if(!this['started']||_0x2f4c6f['Sfsfy'](this[_0xfc81aa(0x193)][_0xfc81aa(0x182)],0x0))return[];if(!fs['existsSync'](this[_0xfc81aa(0x1b6)]))return this['_measureEvents'];const _0x2d49c5=(await fsPromise[_0xfc81aa(0x1a7)](this['jsonReportDirPath']))[_0xfc81aa(0x1d3)](_0x184ef7=>path[_0xfc81aa(0x1cd)](this['jsonReportDirPath'],_0x184ef7));let _0x1043f7=(await Promise[_0xfc81aa(0x171)](_0x2d49c5[_0xfc81aa(0x1d3)](_0x3994e7=>fsPromise[_0xfc81aa(0x1c1)](_0x3994e7,_0xfc81aa(0x189)))))['map'](_0x106d67=>'['+_0x106d67[_0xfc81aa(0x18d)](0x0,-0x1)+']')[_0xfc81aa(0x1d3)](_0x32b9f8=>JSON[_0xfc81aa(0x1de)](_0x32b9f8))['flat']();return _0x2f4c6f[_0xfc81aa(0x157)](this['_measureEvents'][_0xfc81aa(0x182)],0x0)&&(_0x1043f7=_0x1043f7[_0xfc81aa(0x198)](this['getCleanedPerfEvents']())),this[_0xfc81aa(0x1c0)][_0xfc81aa(0x181)](),_0x1043f7;}static[a79_0x4a8470(0x1ab)](){const _0x4695f1=a79_0x4a8470,_0x18e7f1={};_0x18e7f1[_0x4695f1(0x169)]=function(_0x3b1b37,_0x4635f1){return _0x3b1b37===_0x4635f1;},_0x18e7f1[_0x4695f1(0x1d2)]=function(_0x3d41f6,_0x2e57a1){return _0x3d41f6+_0x2e57a1;};const _0x585c1d=_0x18e7f1;if(_0x585c1d[_0x4695f1(0x169)](this[_0x4695f1(0x1b3)][_0x4695f1(0x182)],0x0))return;const _0x1cd80f=JSON[_0x4695f1(0x1dc)](this['_errorEvents']),_0x5ed8e5=_0x585c1d[_0x4695f1(0x1d2)](_0x1cd80f[_0x4695f1(0x18d)](0x1,-0x1),',');fs[_0x4695f1(0x188)](this[_0x4695f1(0x168)],_0x5ed8e5);}static['finalizeErrors'](){const _0x156c1e=a79_0x4a8470,_0x34c62d={};_0x34c62d[_0x156c1e(0x1a2)]=function(_0x2c84b4,_0x5aab8b){return _0x2c84b4>_0x5aab8b;};const _0x3cb95b=_0x34c62d;if(!fs[_0x156c1e(0x19d)](this[_0x156c1e(0x17c)]))return this[_0x156c1e(0x1b3)];let _0x589d05=fs[_0x156c1e(0x15f)](this[_0x156c1e(0x17c)])[_0x156c1e(0x185)]();_0x589d05='['+_0x589d05['slice'](0x0,-0x1)+']';let _0x2ba848=JSON[_0x156c1e(0x1de)](_0x589d05);return _0x3cb95b[_0x156c1e(0x1a2)](this[_0x156c1e(0x1b3)][_0x156c1e(0x182)],0x0)&&(_0x2ba848=_0x2ba848[_0x156c1e(0x198)](this[_0x156c1e(0x1b3)])),fs[_0x156c1e(0x186)](this[_0x156c1e(0x17c)]),_0x2ba848;}static[a79_0x4a8470(0x1da)](_0xab6608){const _0x2f8c34=a79_0x4a8470;if(!this[_0x2f8c34(0x190)]())return;this[_0x2f8c34(0x1b3)][_0x2f8c34(0x170)]({'message':_0xab6608[_0x2f8c34(0x1a9)],'trace':_0xab6608[_0x2f8c34(0x172)],'code':_0xab6608[_0x2f8c34(0x1b8)]||null,'time':new Date()});}static[a79_0x4a8470(0x180)](){const _0x4540b2=a79_0x4a8470;try{if(!this['isEnabled']())return;this[_0x4540b2(0x1c0)]['disconnect'](),this[_0x4540b2(0x16f)](),this[_0x4540b2(0x1ab)]();}catch(_0x1419e2){logger['debug'](_0x4540b2(0x199)+util[_0x4540b2(0x14e)](_0x1419e2));}}static async[a79_0x4a8470(0x1c9)](){const _0x175cb4=a79_0x4a8470,_0x39ccf0={'BpzdI':function(_0x7e1eca,_0x2b8a87){return _0x7e1eca(_0x2b8a87);}};await _0x39ccf0[_0x175cb4(0x144)](sleep,0x1e);const _0x5164a6=await this[_0x175cb4(0x1a5)](),_0x2b9e7b=this[_0x175cb4(0x17e)]();if(!this[_0x175cb4(0x190)]()){const _0x1ed540={};return _0x1ed540[_0x175cb4(0x15b)]=[],_0x1ed540[_0x175cb4(0x1b1)]=[],_0x1ed540;}const _0x257905={};return _0x257905['measures']=_0x5164a6,_0x257905[_0x175cb4(0x1b1)]=_0x2b9e7b,_0x257905;}static[a79_0x4a8470(0x145)](_0x2622b8){const _0x3fced8=a79_0x4a8470,_0x282f55={};_0x282f55[_0x3fced8(0x19a)]=function(_0x41b7cd,_0x4d2b8a){return _0x41b7cd+_0x4d2b8a;},_0x282f55[_0x3fced8(0x156)]='-start';const _0x20339b=_0x282f55,_0x131118=_0x20339b[_0x3fced8(0x19a)](_0x2622b8,_0x20339b[_0x3fced8(0x156)]);if(this['eventsMap'][_0x131118])return;performance[_0x3fced8(0x161)](_0x131118),this[_0x3fced8(0x16b)][_0x131118]=0x1;}static[a79_0x4a8470(0x18b)](_0x38c6e5,_0x2b3d12=!![],_0x1c638e=null,_0x52f998={}){const _0x73c058=a79_0x4a8470,_0x4a2061={'svkLI':function(_0x4ae9d9,_0x349f24){return _0x4ae9d9+_0x349f24;},'ZxxJz':_0x73c058(0x1a6),'jZeDU':function(_0x582caf,_0x3a91fd){return _0x582caf+_0x3a91fd;},'WbnDm':_0x73c058(0x163),'hwIEz':function(_0x578085){return _0x578085();},'bObew':function(_0x2e1d20){return _0x2e1d20();}};performance['mark'](_0x4a2061['svkLI'](_0x38c6e5,_0x4a2061[_0x73c058(0x142)])),performance['measure'](_0x38c6e5,_0x4a2061[_0x73c058(0x195)](_0x38c6e5,_0x4a2061[_0x73c058(0x14d)]),_0x4a2061[_0x73c058(0x1a8)](_0x38c6e5,_0x4a2061['ZxxJz']));const _0x5ca7c6={};_0x5ca7c6[_0x73c058(0x15e)]=_0x2b3d12,_0x5ca7c6['failure']=_0x1c638e,this[_0x73c058(0x164)][_0x38c6e5]=Object['assign'](_0x5ca7c6,Object['assign'](Object['assign']({'worker':_0x4a2061[_0x73c058(0x184)](getProcessId),'platform':global['__platformCaps']&&global[_0x73c058(0x1bf)][_0x73c058(0x16d)],'testName':_0x4a2061['bObew'](getTestName)},_0x52f998),this['details'][_0x38c6e5]||{}));}}module['exports']=PerformanceTester;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a80_0x5c1e63=a80_0x5346;(function(_0x168579,_0x3f76de){const _0x5361c0=a80_0x5346,_0x3f7bcf=_0x168579();while(!![]){try{const _0x6bbf45=parseInt(_0x5361c0(0x171))/0x1+parseInt(_0x5361c0(0x169))/0x2+-parseInt(_0x5361c0(0x178))/0x3+parseInt(_0x5361c0(0x17b))/0x4*(parseInt(_0x5361c0(0x17d))/0x5)+parseInt(_0x5361c0(0x17a))/0x6*(parseInt(_0x5361c0(0x16d))/0x7)+parseInt(_0x5361c0(0x165))/0x8+-parseInt(_0x5361c0(0x170))/0x9;if(_0x6bbf45===_0x3f76de)break;else _0x3f7bcf['push'](_0x3f7bcf['shift']());}catch(_0x1b8912){_0x3f7bcf['push'](_0x3f7bcf['shift']());}}}(a80_0x1c15,0xefb76));const worker=require(a80_0x5c1e63(0x16a)),{fileLogger}=require('./logger'),{consoleHolder}=require(a80_0x5c1e63(0x168)),globals=require(a80_0x5c1e63(0x177));function a80_0x5346(_0x345e2a,_0xe62a8b){const _0x1c15a3=a80_0x1c15();return a80_0x5346=function(_0x534618,_0x14d5ee){_0x534618=_0x534618-0x164;let _0x344088=_0x1c15a3[_0x534618];return _0x344088;},a80_0x5346(_0x345e2a,_0xe62a8b);}function a80_0x1c15(){const _0x51bc18=['24099993JdkWSe','1081061VpnotG','sleep','][\x20OBSERVABILITY\x20]\x20','browserstackTestName','env','getGlobal','./globals','3246867EBWNlS','true','4026VzbiLr','474764sXvByy','BROWSERSTACK_OBSERVABILITY_DEBUG','10uGDMbr','getTestName','log','pqXcQ','debug','13473168fOfArP','hJSNz','ApWOb','./test-observability/constants','985274hPNdCy','worker_threads','UXtCk','getProcessId','13006CPpmvT','threadId','toISOString'];a80_0x1c15=function(){return _0x51bc18;};return a80_0x1c15();}exports[a80_0x5c1e63(0x16c)]=()=>{const _0x5754b8=a80_0x5c1e63;return process['pid']+'-'+worker[_0x5754b8(0x16e)];},exports[a80_0x5c1e63(0x17e)]=()=>{const _0xc19920=a80_0x5c1e63,_0x16b99a={};_0x16b99a[_0xc19920(0x166)]=_0xc19920(0x174);const _0x29617a=_0x16b99a;return globals[_0xc19920(0x176)](_0x29617a[_0xc19920(0x166)]);},exports[a80_0x5c1e63(0x172)]=(_0x5d77bb=0x64)=>new Promise(_0x7c4259=>setTimeout(_0x7c4259,_0x5d77bb)),exports[a80_0x5c1e63(0x164)]=_0x358ee1=>{const _0x3b22f5=a80_0x5c1e63,_0x459243={};_0x459243['pqXcQ']=function(_0x457006,_0x12e674){return _0x457006===_0x12e674;},_0x459243[_0x3b22f5(0x16b)]=_0x3b22f5(0x179),_0x459243['ApWOb']=function(_0x2695ef,_0x4adfcc){return _0x2695ef===_0x4adfcc;};const _0x189fc7=_0x459243;fileLogger['debug']('['+new Date()[_0x3b22f5(0x16f)]()+_0x3b22f5(0x173)+_0x358ee1),(_0x189fc7[_0x3b22f5(0x180)](process[_0x3b22f5(0x175)][_0x3b22f5(0x17c)],_0x189fc7[_0x3b22f5(0x16b)])||_0x189fc7[_0x3b22f5(0x167)](process[_0x3b22f5(0x175)]['BROWSERSTACK_OBSERVABILITY_DEBUG'],'1'))&&consoleHolder[_0x3b22f5(0x17f)]('\x0a['+new Date()['toISOString']()+_0x3b22f5(0x173)+_0x358ee1+'\x0a');};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a81_0x4c3d(_0x459027,_0x536002){const _0x22b82d=a81_0x22b8();return a81_0x4c3d=function(_0x4c3d10,_0x4580f8){_0x4c3d10=_0x4c3d10-0xa7;let _0x1eebcf=_0x22b82d[_0x4c3d10];return _0x1eebcf;},a81_0x4c3d(_0x459027,_0x536002);}const a81_0xd9fe01=a81_0x4c3d;(function(_0x397551,_0xa851c9){const _0x2bec00=a81_0x4c3d,_0x2376dc=_0x397551();while(!![]){try{const _0x153dc1=parseInt(_0x2bec00(0xa8))/0x1+parseInt(_0x2bec00(0xad))/0x2+-parseInt(_0x2bec00(0xcd))/0x3+-parseInt(_0x2bec00(0xd8))/0x4*(-parseInt(_0x2bec00(0xd1))/0x5)+parseInt(_0x2bec00(0xb1))/0x6*(-parseInt(_0x2bec00(0xd4))/0x7)+parseInt(_0x2bec00(0xc6))/0x8+parseInt(_0x2bec00(0xc8))/0x9*(-parseInt(_0x2bec00(0xb7))/0xa);if(_0x153dc1===_0xa851c9)break;else _0x2376dc['push'](_0x2376dc['shift']());}catch(_0x1aa528){_0x2376dc['push'](_0x2376dc['shift']());}}}(a81_0x22b8,0x43622));function a81_0x22b8(){const _0x225ae0=['QWEwt','duration_ms','932904ZbZfsm','host','pathname','end','2489055hPtFds','spy','slice','223923GwdtFY','restore','pzPiW','exports','4CMYupZ','LVpYj','51476cUbKbP','JPNMP','forEach','headers','url','1012170sBCYqw','monkeypatch','hostname','object','6TAexxM','statusCode','apply','now','socket','YLKxi','20VyAOXm','kswgV','http','method','HZxdI','response','IODkU','removeListener','once','unpatch','error','path','assign','xsdnD','SGqlO','1426744yVFzBi','https','2766402uxjXov','prototype','request'];a81_0x22b8=function(){return _0x225ae0;};return a81_0x22b8();}const http=require(a81_0xd9fe01(0xb9)),https=require(a81_0xd9fe01(0xc7)),monkeypatch=require(a81_0xd9fe01(0xae));function spy(_0x412a8f){const _0x438df6=a81_0xd9fe01,_0x43c748={'YLKxi':function(_0x26f6a6,_0x5d00b){return _0x26f6a6 instanceof _0x5d00b;},'kswgV':function(_0x19c482,_0x867450){return _0x19c482===_0x867450;},'NhVVt':_0x438df6(0xb0),'xsdnD':function(_0x6cb4c7,_0x1f8747,_0x48b151){return _0x6cb4c7(_0x1f8747,_0x48b151);},'pzPiW':function(_0xcb6ff,_0x11420e){return _0xcb6ff-_0x11420e;},'bhbKm':function(_0x3a95e1,_0xab05b9,_0x2e82ed){return _0x3a95e1(_0xab05b9,_0x2e82ed);},'LVpYj':_0x438df6(0xc1),'TXiqT':function(_0x5c2b83,..._0x3779cf){return _0x5c2b83(..._0x3779cf);},'PmoHJ':_0x438df6(0xbc),'SGqlO':_0x438df6(0xb5),'HZxdI':function(_0x41158b,_0x55e07d,_0x198929,_0x591967){return _0x41158b(_0x55e07d,_0x198929,_0x591967);},'QWEwt':_0x438df6(0xd0),'JPNMP':function(_0x2206b3,_0x2b17c3,_0x1e3954,_0x3ecea4){return _0x2206b3(_0x2b17c3,_0x1e3954,_0x3ecea4);},'IODkU':_0x438df6(0xca)},_0x32a8a8=function(){const _0x3fc894=_0x438df6,_0x1e2238=arguments[0x0],_0x1a89aa=Array[_0x3fc894(0xc9)][_0x3fc894(0xd3)]['call'](arguments,0x1),_0x7f9cf1=_0x1e2238[_0x3fc894(0xb3)](this,_0x1a89aa);let _0x3320b9=Date[_0x3fc894(0xb4)](),_0x57131a;const _0x175ee5={};_0x1a89aa[_0x3fc894(0xaa)](_0x359fa0=>{const _0x2b9c47=_0x3fc894;if(_0x43c748[_0x2b9c47(0xb6)](_0x359fa0,URL)){const _0x425fb3={};_0x425fb3[_0x2b9c47(0xac)]=_0x359fa0,Object[_0x2b9c47(0xc3)](_0x175ee5,_0x425fb3);}else _0x43c748[_0x2b9c47(0xb8)](typeof _0x359fa0,_0x43c748['NhVVt'])&&Object[_0x2b9c47(0xc3)](_0x175ee5,_0x359fa0);});const _0x26ce16=_0x39920b=>{const _0x503947=_0x3fc894,_0x14bfc9={};_0x14bfc9[_0x503947(0xce)]=_0x175ee5[_0x503947(0xce)]||_0x175ee5['hostname']||_0x175ee5['url']&&(_0x175ee5['url']['host']||_0x175ee5[_0x503947(0xac)][_0x503947(0xaf)]),_0x14bfc9['path']=_0x175ee5[_0x503947(0xc2)]||_0x175ee5[_0x503947(0xac)]&&_0x175ee5['url']['pathname'],_0x14bfc9[_0x503947(0xba)]=_0x175ee5[_0x503947(0xba)],_0x14bfc9[_0x503947(0xab)]=_0x175ee5[_0x503947(0xab)],_0x43c748[_0x503947(0xc4)](_0x412a8f,_0x39920b,_0x14bfc9);};return _0x7f9cf1[_0x3fc894(0xbf)](_0x43c748['PmoHJ'],_0x3363d5=>{const _0x490b72=_0x3fc894,_0x4d5f24=_0x43c748[_0x490b72(0xd6)](Date['now'](),_0x3320b9),_0x414988={};_0x414988['hostname']=_0x175ee5[_0x490b72(0xce)]||_0x175ee5[_0x490b72(0xaf)]||_0x175ee5[_0x490b72(0xac)]&&(_0x175ee5['url']['host']||_0x175ee5[_0x490b72(0xac)]['hostname']),_0x414988[_0x490b72(0xc2)]=_0x175ee5[_0x490b72(0xc2)]||_0x175ee5[_0x490b72(0xac)]&&_0x175ee5[_0x490b72(0xac)][_0x490b72(0xcf)],_0x414988[_0x490b72(0xba)]=_0x175ee5['method'],_0x414988[_0x490b72(0xab)]=_0x175ee5[_0x490b72(0xab)],_0x414988['status_code']=_0x3363d5[_0x490b72(0xb2)],_0x414988[_0x490b72(0xcc)]=_0x4d5f24,_0x43c748['bhbKm'](_0x412a8f,null,_0x414988),_0x57131a[_0x490b72(0xbe)](_0x43c748[_0x490b72(0xa7)],_0x26ce16);}),_0x7f9cf1['on'](_0x43c748[_0x3fc894(0xc5)],_0x14a2b9=>{_0x57131a=_0x14a2b9,_0x14a2b9['once'](_0x43c748['LVpYj'],_0x26ce16);}),_0x43c748[_0x3fc894(0xbb)](monkeypatch,_0x7f9cf1,_0x43c748[_0x3fc894(0xcb)],(_0x1a3bc2,..._0xe855d)=>{_0x3320b9=Date['now'](),_0x43c748['TXiqT'](_0x1a3bc2,..._0xe855d);}),_0x7f9cf1;};_0x43c748[_0x438df6(0xa9)](monkeypatch,http,_0x43c748[_0x438df6(0xbd)],_0x32a8a8),_0x43c748[_0x438df6(0xa9)](monkeypatch,https,_0x43c748[_0x438df6(0xbd)],_0x32a8a8);}function restore(){const _0x31477b=a81_0xd9fe01;http['request'][_0x31477b(0xc0)](),https[_0x31477b(0xca)]['unpatch']();}const a81_0x29ee56={};a81_0x29ee56[a81_0xd9fe01(0xd2)]=spy,a81_0x29ee56[a81_0xd9fe01(0xd5)]=restore,module[a81_0xd9fe01(0xd7)]=a81_0x29ee56;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a82_0x5ed170=a82_0x1d5d;(function(_0x1fe332,_0x1026f8){const _0x4a6ec6=a82_0x1d5d,_0x354b60=_0x1fe332();while(!![]){try{const _0x55809c=-parseInt(_0x4a6ec6(0x204))/0x1+-parseInt(_0x4a6ec6(0x203))/0x2+parseInt(_0x4a6ec6(0x1ec))/0x3+-parseInt(_0x4a6ec6(0x1f2))/0x4+-parseInt(_0x4a6ec6(0x1f6))/0x5*(-parseInt(_0x4a6ec6(0x1f4))/0x6)+-parseInt(_0x4a6ec6(0x1fd))/0x7*(parseInt(_0x4a6ec6(0x20e))/0x8)+parseInt(_0x4a6ec6(0x20d))/0x9;if(_0x55809c===_0x1026f8)break;else _0x354b60['push'](_0x354b60['shift']());}catch(_0x58ca8d){_0x354b60['push'](_0x354b60['shift']());}}}(a82_0x5865,0x8c2b2));function a82_0x1d5d(_0x4dd78a,_0x17883e){const _0x586552=a82_0x5865();return a82_0x1d5d=function(_0x1d5dd3,_0x39b6c7){_0x1d5dd3=_0x1d5dd3-0x1ec;let _0x57ecf4=_0x586552[_0x1d5dd3];return _0x57ecf4;},a82_0x1d5d(_0x4dd78a,_0x17883e);}function a82_0x5865(){const _0x3af24b=['http','4985jyOzjy','./performance/constants','agent','https:','measureWrapper','SVjlo','globalAgent','396641uETise','KEEP_ALIVE','request','yoBSn','Agent','https','310702UGgenO','974620WrJBOS','cjjLR','protocol','prototype','keepAliveMsecs','lzfJV','QlMMc','CJFtQ','TWlTX','11225466TNLWlj','24REENDZ','234285mQkjqJ','exports','WjzlG','call','uEuIq','./performance/performance-tester','2255724eQElul','keepAlive','6696XWmAhn'];a82_0x5865=function(){return _0x3af24b;};return a82_0x5865();}const PerformanceTester=require(a82_0x5ed170(0x1f1)),{AUTOMATE_EVENTS:PerformanceEvents}=require(a82_0x5ed170(0x1f7));module[a82_0x5ed170(0x1ed)]=PerformanceTester[a82_0x5ed170(0x1fa)](PerformanceEvents[a82_0x5ed170(0x1fe)],function(){const _0x1b5405=a82_0x5ed170,_0x33ca0c={'QlMMc':function(_0x4c05bd,_0x243bfe){return _0x4c05bd===_0x243bfe;},'CJFtQ':_0x1b5405(0x1f9),'uEuIq':_0x1b5405(0x1f8),'TWlTX':function(_0x15c40a,_0x47e3dd,_0x46eb3f){return _0x15c40a(_0x47e3dd,_0x46eb3f);},'yoBSn':function(_0x34137e,_0x3e6eaf){return _0x34137e(_0x3e6eaf);},'cjjLR':_0x1b5405(0x1f5),'SVjlo':function(_0x890cea,_0x5c3a08){return _0x890cea(_0x5c3a08);},'GMvMj':_0x1b5405(0x202),'lzfJV':function(_0x24c5f8,_0x3c8702){return _0x24c5f8*_0x3c8702;},'WjzlG':_0x1b5405(0x1f3)},_0x23368c=_0x33ca0c[_0x1b5405(0x200)](require,_0x33ca0c[_0x1b5405(0x205)]),_0x50ca3f=_0x33ca0c[_0x1b5405(0x1fb)](require,_0x33ca0c['GMvMj']),_0x23bfb0=_0x33ca0c[_0x1b5405(0x209)](0x1e,0x3e8);if(_0x23368c[_0x1b5405(0x1fc)]&&Object[_0x1b5405(0x207)]['hasOwnProperty'][_0x1b5405(0x1ef)](_0x23368c['globalAgent'],_0x33ca0c[_0x1b5405(0x1ee)]))_0x23368c[_0x1b5405(0x1fc)][_0x1b5405(0x1f3)]=!![],_0x50ca3f[_0x1b5405(0x1fc)][_0x1b5405(0x1f3)]=!![],_0x23368c[_0x1b5405(0x1fc)]['keepAliveMsecs']=_0x23bfb0,_0x50ca3f[_0x1b5405(0x1fc)][_0x1b5405(0x208)]=_0x23bfb0;else{const _0x551240={};_0x551240[_0x1b5405(0x1f3)]=!![],_0x551240[_0x1b5405(0x208)]=_0x23bfb0;const _0x1886b7=new _0x23368c[(_0x1b5405(0x201))](_0x551240),_0x25c5ee={};_0x25c5ee[_0x1b5405(0x1f3)]=!![],_0x25c5ee[_0x1b5405(0x208)]=_0x23bfb0;const _0xe90198=new _0x50ca3f['Agent'](_0x25c5ee),_0x19dcea=_0x23368c[_0x1b5405(0x1ff)],_0x39cb30=_0x50ca3f[_0x1b5405(0x1ff)];_0x23368c[_0x1b5405(0x1ff)]=function(_0x1e2ead,_0x2c67bd){const _0x141152=_0x1b5405;if(_0x33ca0c[_0x141152(0x20a)](_0x1e2ead[_0x141152(0x206)],_0x33ca0c[_0x141152(0x20b)]))return _0x1e2ead[_0x33ca0c[_0x141152(0x1f0)]]=_0xe90198,_0x33ca0c['TWlTX'](_0x39cb30,_0x1e2ead,_0x2c67bd);return _0x1e2ead[_0x33ca0c['uEuIq']]=_0x1886b7,_0x33ca0c[_0x141152(0x20c)](_0x19dcea,_0x1e2ead,_0x2c67bd);};}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a83_0x4db1(_0x530faa,_0x3b1b0c){var _0x48943a=a83_0x4894();return a83_0x4db1=function(_0x4db19c,_0x3d7b8b){_0x4db19c=_0x4db19c-0x18b;var _0x2e4c37=_0x48943a[_0x4db19c];return _0x2e4c37;},a83_0x4db1(_0x530faa,_0x3b1b0c);}var a83_0x5b7489=a83_0x4db1;function a83_0x4894(){var _0x5b50d6=['cucumber','PLAYWRIGHT','.obs_test_details','codeceptjs','17WbNPyk','1714455NExMsE','CUCUMBER','Playwright','api/v1/screenshots','8222490OahXtr','exports','api/v1/batch','546012HcCFjm','jest','2092sWeFrU','7cLqNcL','2406mGRQwr','4677750qoUvDu','11tiODfm','23740JMTrbq','JEST','311392sRIzHo','mocha'];a83_0x4894=function(){return _0x5b50d6;};return a83_0x4894();}(function(_0x576140,_0x334f4b){var _0x3cd3b7=a83_0x4db1,_0x139fbb=_0x576140();while(!![]){try{var _0xff771=parseInt(_0x3cd3b7(0x199))/0x1*(-parseInt(_0x3cd3b7(0x191))/0x2)+parseInt(_0x3cd3b7(0x18e))/0x3*(parseInt(_0x3cd3b7(0x18c))/0x4)+-parseInt(_0x3cd3b7(0x19a))/0x5+parseInt(_0x3cd3b7(0x1a1))/0x6+parseInt(_0x3cd3b7(0x18d))/0x7*(parseInt(_0x3cd3b7(0x193))/0x8)+-parseInt(_0x3cd3b7(0x18f))/0x9+-parseInt(_0x3cd3b7(0x19e))/0xa*(-parseInt(_0x3cd3b7(0x190))/0xb);if(_0xff771===_0x334f4b)break;else _0x139fbb['push'](_0x139fbb['shift']());}catch(_0x57bc13){_0x139fbb['push'](_0x139fbb['shift']());}}}(a83_0x4894,0x4aff6));var a83_0x2a16cb={};a83_0x2a16cb[a83_0x5b7489(0x196)]=a83_0x5b7489(0x19c),a83_0x2a16cb['MOCHA']=a83_0x5b7489(0x194),a83_0x2a16cb['CODECEPT']=a83_0x5b7489(0x198),a83_0x2a16cb[a83_0x5b7489(0x192)]=a83_0x5b7489(0x18b),a83_0x2a16cb[a83_0x5b7489(0x19b)]=a83_0x5b7489(0x195),module[a83_0x5b7489(0x19f)]={'consoleHolder':Object['assign']({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':'https://collector-observability.browserstack.com','EVENT_ENDPOINT':'api/v1/event','BATCH_ENDPOINT':a83_0x5b7489(0x1a0),'SCREENSHOT_ENDPOINT':a83_0x5b7489(0x19d),'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_0x5b7489(0x197),'FRAMEWORKS':a83_0x2a16cb};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a84_0x19b627=a84_0x231f;(function(_0x38f9f2,_0x52daa4){const _0x33bd2d=a84_0x231f,_0x19db8a=_0x38f9f2();while(!![]){try{const _0x160c55=parseInt(_0x33bd2d(0x216))/0x1+-parseInt(_0x33bd2d(0x1f6))/0x2+-parseInt(_0x33bd2d(0x21a))/0x3*(parseInt(_0x33bd2d(0x1f1))/0x4)+-parseInt(_0x33bd2d(0x1c1))/0x5+-parseInt(_0x33bd2d(0x21c))/0x6+-parseInt(_0x33bd2d(0x217))/0x7+parseInt(_0x33bd2d(0x22b))/0x8;if(_0x160c55===_0x52daa4)break;else _0x19db8a['push'](_0x19db8a['shift']());}catch(_0x5c6380){_0x19db8a['push'](_0x19db8a['shift']());}}}(a84_0x17ce,0x4d704));function a84_0x17ce(){const _0x1ad312=['apply','.\x20Error\x20-\x20','user','Started\x20::\x20','jqcYO','true','setCredentials','parse','key','BS_TESTOPS_BUILD_HASHED_ID','Content-Type','FxOVC','o11yClassErrorHandler','frameworkName','setAllDetails','POST','defineProperty','RhSgf','constructor','env','CzOCC','GwAkk','toLowerCase','object','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','31708ECLzSO','uploadCrashReport','headers',',\x20Argument\x20-\x20','XDRoV','876094MAjWoz','setFrameworkDetails','getConfig','catch','[Crash_Report_Upload]\x20Failed\x20due\x20to\x20','\x20--\x20','KftnQ','getPerformance','depth','[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','keys','lvkKC','BTNmp','username','CREDENTIALS_FOR_CRASH_REPORTING','application/json','BzRUX','mZWSo','includes','gtDvS','LFJPq','stringify','uKDHQ','prototype','password','lDdyH','bCrMu','o11yErrorHandler','userConfig','NGRLk','getCredentials','greAi','188733ntvwqi','4131015wBhGcd','rnFfx','filterPII','39EfsJpL','BROWSERSTACK_O11Y_PERF_MEASUREMENT','2076156QyBDyM','CrashReporter','stack','AKatM','Finished\x20::\x20','frameworkDetails','.\x20Args\x20-\x20','FxPWd','cEVDh','timerify',',\x20PID\x20-\x20','initialize','getOwnPropertyNames','pid','GCSpk','17434200XMyvIi','credentials','tyyEc','forEach','/api/v1/analytics','../performance/performance-tester','JysRU','2867755AWobmV','length','setConfigDetails','SaYwz','MNahH','USER_CONFIG_FOR_REPORTING','accessKey','Cflyv','wHAMi','Error\x20in\x20executing\x20','../helper','function','captureError','OicRL','mjXUa','IMshs','recursivelyDeletePIIKeysFromObject','toString','X-BSTACK-TESTOPS','frameworkVersion','name','call','bwEwI'];a84_0x17ce=function(){return _0x1ad312;};return a84_0x17ce();}const util=require('util'),PerformanceTester=require(a84_0x19b627(0x1bf)),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require('./utils'),{getAgentVersion,nestedKeyValue}=require(a84_0x19b627(0x1cb)),o11yErrorHandler=(_0x1211e6,_0x241844='',_0x395aae=[''],_0x34fa1f=![])=>{const _0x35ac4e={'cEVDh':function(_0x23f04a,_0x4e9357){return _0x23f04a(_0x4e9357);},'lvkKC':function(_0x1cf35a,_0xd29851,_0x1656f5){return _0x1cf35a(_0xd29851,_0x1656f5);},'GCSpk':function(_0x278106,_0x12b112){return _0x278106(_0x12b112);},'wHAMi':function(_0x1ec35d,_0x53f566){return _0x1ec35d instanceof _0x53f566;},'LFJPq':function(_0x4a4225,_0x4f8637,_0xcdc4aa,_0x1601bf,_0x4440a3){return _0x4a4225(_0x4f8637,_0xcdc4aa,_0x1601bf,_0x4440a3);}};return function(..._0x5ce486){const _0x206bbc=a84_0x231f;try{let _0x4d812e=_0x1211e6;process[_0x206bbc(0x1eb)][_0x206bbc(0x21b)]&&(_0x4d812e=PerformanceTester[_0x206bbc(0x1fd)]()['timerify'](_0x4d812e));_0x34fa1f&&_0x35ac4e[_0x206bbc(0x224)](trace,_0x206bbc(0x1db)+_0x241844+_0x206bbc(0x226)+process[_0x206bbc(0x229)]+_0x206bbc(0x1f4)+_0x35ac4e[_0x206bbc(0x201)](nestedKeyValue,arguments[0x0],_0x395aae));const _0x5a2613=_0x4d812e[_0x206bbc(0x1d8)](null,arguments);_0x34fa1f&&_0x35ac4e[_0x206bbc(0x22a)](trace,_0x206bbc(0x220)+_0x241844+',\x20PID\x20-\x20'+process[_0x206bbc(0x229)]+_0x206bbc(0x1f4)+_0x35ac4e[_0x206bbc(0x201)](nestedKeyValue,arguments[0x0],_0x395aae));if(_0x35ac4e[_0x206bbc(0x1c9)](_0x5a2613,Promise))return _0x5a2613[_0x206bbc(0x1f9)](_0x499157=>processError(_0x499157,_0x1211e6,_0x5ce486,_0x241844));return _0x5a2613;}catch(_0x2bb237){_0x35ac4e[_0x206bbc(0x20a)](processError,_0x2bb237,_0x1211e6,_0x5ce486,_0x241844);}};},o11yClassErrorHandler=(_0x58703f,_0x58cf97,_0x2f9056='')=>{const _0x239e74=a84_0x19b627,_0x5aa2a8={'gtDvS':function(_0x125674,_0x47c7ba){return _0x125674 instanceof _0x47c7ba;},'kfBNX':function(_0x4ffca3,_0x1d094b,_0x222b55,_0x40bdf2,_0x33e08b){return _0x4ffca3(_0x1d094b,_0x222b55,_0x40bdf2,_0x33e08b);},'BTNmp':function(_0x32a61a,_0x1e56ae){return _0x32a61a===_0x1e56ae;},'bwEwI':_0x239e74(0x1cc),'CzOCC':function(_0x18b04e,_0x685ad){return _0x18b04e!==_0x685ad;},'BzRUX':_0x239e74(0x1ea),'uKDHQ':function(_0x41d962,_0x15e00b){return _0x41d962<_0x15e00b;}},_0x1f97c3=_0x58703f[_0x239e74(0x20d)];if(_0x5aa2a8[_0x239e74(0x20c)](Object['getOwnPropertyNames'](_0x1f97c3)[_0x239e74(0x1c2)],0x2))return _0x58703f;return Object[_0x239e74(0x228)](_0x1f97c3)[_0x239e74(0x22e)](_0x7285fb=>{const _0x5d3aec=_0x239e74;if(!(_0x58cf97&&_0x58cf97[_0x5d3aec(0x208)](_0x7285fb)))return;const _0x3ca335=_0x1f97c3[_0x7285fb];_0x5aa2a8[_0x5d3aec(0x202)](typeof _0x3ca335,_0x5aa2a8[_0x5d3aec(0x1d7)])&&_0x5aa2a8[_0x5d3aec(0x1ec)](_0x7285fb,_0x5aa2a8[_0x5d3aec(0x206)])&&Object[_0x5d3aec(0x1e8)](_0x1f97c3,_0x7285fb,{'writable':!![],'value':function(..._0x4d694e){const _0x2376e8=_0x5d3aec;try{const _0x141710=(process[_0x2376e8(0x1eb)][_0x2376e8(0x21b)]?PerformanceTester[_0x2376e8(0x1fd)]()[_0x2376e8(0x225)](_0x3ca335):_0x3ca335)[_0x2376e8(0x1d6)](this,..._0x4d694e);if(_0x5aa2a8[_0x2376e8(0x209)](_0x141710,Promise))return _0x141710[_0x2376e8(0x1f9)](_0xc332d3=>processError(_0xc332d3,_0x3ca335,_0x4d694e,_0x2f9056));return _0x141710;}catch(_0x46cb52){_0x5aa2a8['kfBNX'](processError,_0x46cb52,_0x3ca335,_0x4d694e,_0x2f9056);}}});}),_0x58703f;};function processError(_0x32be95,_0x2a389b,_0x3527af,_0x4370e0){const _0x48e39d=a84_0x19b627,_0x77c700={'mjXUa':function(_0x16c63f,_0x59982b){return _0x16c63f(_0x59982b);}};_0x77c700[_0x48e39d(0x1cf)](debug,_0x48e39d(0x1ca)+_0x2a389b[_0x48e39d(0x1d5)]+_0x48e39d(0x1fb)+_0x4370e0+_0x48e39d(0x1d9)+_0x32be95+_0x48e39d(0x222)+_0x3527af+'.'),PerformanceTester[_0x48e39d(0x1cd)](_0x32be95);let _0x3bc1fc;try{_0x3bc1fc=JSON['stringify'](_0x3527af);}catch(_0x22cfaa){const _0x432336={};_0x432336[_0x48e39d(0x1fe)]=0x2,_0x3bc1fc=util['inspect'](_0x3527af,_0x432336);}CrashReporter['uploadCrashReport'](_0x48e39d(0x1ca)+_0x2a389b['name']+_0x48e39d(0x1fb)+_0x4370e0+_0x48e39d(0x1d9)+_0x32be95+_0x48e39d(0x222)+_0x3bc1fc+'.',_0x32be95&&_0x32be95[_0x48e39d(0x21e)]);}function a84_0x231f(_0x4d49d3,_0x25c09c){const _0x17cee7=a84_0x17ce();return a84_0x231f=function(_0x231f0f,_0x13ca5d){_0x231f0f=_0x231f0f-0x1be;let _0x39c482=_0x17cee7[_0x231f0f];return _0x39c482;},a84_0x231f(_0x4d49d3,_0x25c09c);}class CrashReporter{static [a84_0x19b627(0x212)]={};static ['credentials'];static [a84_0x19b627(0x221)]={};static[a84_0x19b627(0x227)](_0x279888,_0x206fa2,_0x15695b=null){const _0x436446=a84_0x19b627,_0x5651ea={'JysRU':function(_0x599fa7,_0x1e1693){return _0x599fa7(_0x1e1693);}},_0x560ad5=_0x279888['frameworkName'],_0x5d2c98=_0x279888[_0x436446(0x1d4)];!_0x15695b&&(_0x15695b=_0x5651ea[_0x436446(0x1c0)](getBrowserStackConfig,_0x560ad5));!_0x5d2c98&&_0x5651ea[_0x436446(0x1c0)](getFrameworkVersion,_0x560ad5);const _0x3100bd={};_0x3100bd[_0x436446(0x1e5)]=_0x560ad5,_0x3100bd['frameworkVersion']=_0x5d2c98,this[_0x436446(0x1e6)](_0x3100bd,_0x206fa2,_0x5651ea['JysRU'](getUserCredentials,_0x15695b));}static[a84_0x19b627(0x1de)](_0x7c9c39,_0xa1aeba){const _0x191a2d=a84_0x19b627,_0x897ae3={};_0x897ae3[_0x191a2d(0x203)]=_0x7c9c39,_0x897ae3[_0x191a2d(0x1c7)]=_0xa1aeba,this[_0x191a2d(0x22c)]=_0x897ae3,process[_0x191a2d(0x1eb)][_0x191a2d(0x204)]=JSON[_0x191a2d(0x20b)](this[_0x191a2d(0x22c)]);}static[a84_0x19b627(0x214)](){const _0x3d30cf=a84_0x19b627,_0x34b39c={'fxyvR':function(_0x1cab00,_0xa116c7){return _0x1cab00(_0xa116c7);}};if(!this[_0x3d30cf(0x22c)]&&process[_0x3d30cf(0x1eb)][_0x3d30cf(0x204)])try{this['credentials']=JSON[_0x3d30cf(0x1df)](process['env'][_0x3d30cf(0x204)]);}catch(_0xc772cb){_0x34b39c['fxyvR'](debug,'Error\x20in\x20parsing\x20credentials\x20from\x20env\x20'+_0xc772cb[_0x3d30cf(0x1d2)]());}return this[_0x3d30cf(0x22c)];}static[a84_0x19b627(0x1c3)](_0x532148){const _0x174b38=a84_0x19b627;this[_0x174b38(0x212)]=this[_0x174b38(0x219)](_0x532148),process[_0x174b38(0x1eb)]['USER_CONFIG_FOR_REPORTING']=JSON[_0x174b38(0x20b)](this[_0x174b38(0x212)]);}static[a84_0x19b627(0x1f8)](){const _0x23a0a7=a84_0x19b627,_0x237524={'GwAkk':function(_0x302497,_0x5863d9){return _0x302497===_0x5863d9;},'bCrMu':function(_0x3d61ec,_0x490ab5){return _0x3d61ec(_0x490ab5);}};if(_0x237524[_0x23a0a7(0x1ed)](Object[_0x23a0a7(0x200)](this['userConfig'])[_0x23a0a7(0x1c2)],0x0)&&process['env']['USER_CONFIG_FOR_REPORTING'])try{this[_0x23a0a7(0x212)]=JSON[_0x23a0a7(0x1df)](process[_0x23a0a7(0x1eb)][_0x23a0a7(0x1c6)]);}catch(_0x36607f){_0x237524[_0x23a0a7(0x210)](debug,'Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20'+_0x36607f[_0x23a0a7(0x1d2)]()),this[_0x23a0a7(0x212)]={};}return this['userConfig'];}static[a84_0x19b627(0x1f7)](_0x54b24a){const _0x526349=a84_0x19b627;this['frameworkDetails']=_0x54b24a,process[_0x526349(0x1eb)][_0x526349(0x1f0)]=JSON[_0x526349(0x20b)](this[_0x526349(0x221)]);}static['getFramework'](){const _0x29aa16=a84_0x19b627,_0x4ec57e={'jqcYO':function(_0xfbd33,_0x422aea){return _0xfbd33===_0x422aea;},'FxPWd':function(_0x4c95f5,_0x518fd3){return _0x4c95f5(_0x518fd3);}};if(_0x4ec57e[_0x29aa16(0x1dc)](Object['keys'](this[_0x29aa16(0x221)])[_0x29aa16(0x1c2)],0x0)&&process[_0x29aa16(0x1eb)]['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS'])try{this[_0x29aa16(0x221)]=JSON['parse'](process[_0x29aa16(0x1eb)]['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS']);}catch(_0x55d3aa){_0x4ec57e[_0x29aa16(0x223)](debug,'Error\x20in\x20parsing\x20credentials\x20from\x20env\x20'+_0x55d3aa['toString']());}return this[_0x29aa16(0x221)];}static['setAllDetails'](_0x5d7d23,_0x1fdee2,_0x186ac6){const _0x51d42a=a84_0x19b627;_0x5d7d23&&this[_0x51d42a(0x1f7)](_0x5d7d23),_0x1fdee2&&this[_0x51d42a(0x1c3)](_0x1fdee2),_0x186ac6&&this['setCredentials'](_0x186ac6[_0x51d42a(0x203)],_0x186ac6[_0x51d42a(0x1c7)]);}static async[a84_0x19b627(0x1f2)](_0x46555b,_0x32f082){const _0xcb5a8e=a84_0x19b627,_0x2c8618={'rnFfx':function(_0x586eee,_0x51335e){return _0x586eee(_0x51335e);},'tyyEc':function(_0x5c0530,_0x22f6e3){return _0x5c0530(_0x22f6e3);},'NGRLk':_0xcb5a8e(0x1ff),'KftnQ':function(_0x26d517){return _0x26d517();},'MNahH':_0xcb5a8e(0x1be),'greAi':_0xcb5a8e(0x205),'XDRoV':_0xcb5a8e(0x1dd),'IMshs':function(_0x1ead02,_0x549360,_0x5bf04e,_0x311215,_0x18f419,_0x1b7aba){return _0x1ead02(_0x549360,_0x5bf04e,_0x311215,_0x18f419,_0x1b7aba);},'RhSgf':_0xcb5a8e(0x1e7)};this['getCredentials']();if(!this[_0xcb5a8e(0x22c)])return _0x2c8618[_0xcb5a8e(0x22d)](debug,_0x2c8618[_0xcb5a8e(0x213)]);this[_0xcb5a8e(0x1f8)](),this['getFramework']();const _0x4caa70={'hashed_id':process[_0xcb5a8e(0x1eb)][_0xcb5a8e(0x1e1)],'observability_version':{'sdkVersion':_0x2c8618[_0xcb5a8e(0x1fc)](getAgentVersion),'frameworkName':this[_0xcb5a8e(0x221)]['frameworkName'],'frameworkVersion':this['frameworkDetails'][_0xcb5a8e(0x1d4)]},'exception':{'error':_0x46555b['toString'](),'stackTrace':_0x32f082},'config':this[_0xcb5a8e(0x212)]},_0x39ad6c=_0x2c8618[_0xcb5a8e(0x1c5)],_0x14b70e={};_0x14b70e[_0xcb5a8e(0x203)]=this['credentials'][_0xcb5a8e(0x203)],_0x14b70e[_0xcb5a8e(0x20e)]=this[_0xcb5a8e(0x22c)][_0xcb5a8e(0x1c7)];const _0x2c6fcf={};_0x2c6fcf[_0xcb5a8e(0x1e2)]=_0x2c8618[_0xcb5a8e(0x215)],_0x2c6fcf[_0xcb5a8e(0x1d3)]=_0x2c8618[_0xcb5a8e(0x1f5)];const _0x3c3e2f={};_0x3c3e2f['auth']=_0x14b70e,_0x3c3e2f[_0xcb5a8e(0x1f3)]=_0x2c6fcf;const _0x49c297=_0x3c3e2f;_0x2c8618[_0xcb5a8e(0x1d0)](nodeRequest,_0x2c8618[_0xcb5a8e(0x1e9)],_0x39ad6c,_0x4caa70,_0x49c297,![])['then'](_0xe8164f=>{const _0x3ac64b=_0xcb5a8e;_0x2c8618[_0x3ac64b(0x218)](debug,'[Crash_Report_Upload]\x20Success\x20response:\x20'+JSON[_0x3ac64b(0x20b)](_0xe8164f));})['catch'](_0x4c1ab9=>{const _0x3f0e2b=_0xcb5a8e;_0x2c8618[_0x3f0e2b(0x218)](debug,_0x3f0e2b(0x1fa)+util['format'](_0x4c1ab9));});}static['recursivelyDeletePIIKeysFromObject'](_0x307acf){const _0x2cbb24=a84_0x19b627,_0x345d45={};_0x345d45[_0x2cbb24(0x1c4)]=_0x2cbb24(0x1da),_0x345d45[_0x2cbb24(0x1c8)]='username',_0x345d45[_0x2cbb24(0x207)]=_0x2cbb24(0x1e0),_0x345d45[_0x2cbb24(0x1ce)]=_0x2cbb24(0x1c7),_0x345d45['lDdyH']=_0x2cbb24(0x20e),_0x345d45[_0x2cbb24(0x1e3)]=function(_0x168027,_0x377bc7){return _0x168027===_0x377bc7;},_0x345d45[_0x2cbb24(0x21f)]=_0x2cbb24(0x1ef);const _0x64ac53=_0x345d45;if(!_0x307acf)return;const _0xf1e943=[_0x64ac53[_0x2cbb24(0x1c4)],_0x64ac53['Cflyv'],_0x64ac53[_0x2cbb24(0x207)],_0x64ac53['OicRL'],_0x64ac53[_0x2cbb24(0x20f)]];for(const _0x39d00f in _0x307acf){if(_0xf1e943[_0x2cbb24(0x208)](_0x39d00f[_0x2cbb24(0x1ee)]()))delete _0x307acf[_0x39d00f];else _0x64ac53['FxOVC'](typeof _0x307acf[_0x39d00f],_0x64ac53['AKatM'])&&this[_0x2cbb24(0x1d1)](_0x307acf[_0x39d00f]);}}static['filterPII'](_0x29fd4e){const _0xb1900c=a84_0x19b627,_0x2a822d=JSON[_0xb1900c(0x1df)](JSON[_0xb1900c(0x20b)](_0x29fd4e));return this[_0xb1900c(0x1d1)](_0x2a822d),_0x2a822d;}}const a84_0x23c57f={};a84_0x23c57f[a84_0x19b627(0x211)]=o11yErrorHandler,a84_0x23c57f[a84_0x19b627(0x1e4)]=o11yClassErrorHandler,a84_0x23c57f[a84_0x19b627(0x21d)]=CrashReporter,module['exports']=a84_0x23c57f;
|
|
1
|
+
const a84_0x1e496c=a84_0x3c7b;(function(_0x120e16,_0x52cf56){const _0x20a9c1=a84_0x3c7b,_0x262224=_0x120e16();while(!![]){try{const _0x19cb9c=-parseInt(_0x20a9c1(0x153))/0x1*(-parseInt(_0x20a9c1(0x12f))/0x2)+-parseInt(_0x20a9c1(0x129))/0x3*(-parseInt(_0x20a9c1(0x136))/0x4)+-parseInt(_0x20a9c1(0x15d))/0x5+parseInt(_0x20a9c1(0x15c))/0x6+-parseInt(_0x20a9c1(0x166))/0x7*(-parseInt(_0x20a9c1(0x13a))/0x8)+parseInt(_0x20a9c1(0x133))/0x9+-parseInt(_0x20a9c1(0x147))/0xa;if(_0x19cb9c===_0x52cf56)break;else _0x262224['push'](_0x262224['shift']());}catch(_0x4791b1){_0x262224['push'](_0x262224['shift']());}}}(a84_0x32e3,0x93157));const util=require(a84_0x1e496c(0x114)),PerformanceTester=require(a84_0x1e496c(0x160)),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require('./utils'),{getAgentVersion,nestedKeyValue}=require('../helper'),o11yErrorHandler=(_0x4531c9,_0x2f1d03='',_0x41cd00=[''],_0x5d3205=![])=>{const _0x15cf82={'mLIhR':function(_0x52e00c,_0x561257){return _0x52e00c(_0x561257);},'hyHYw':function(_0x1a56e3,_0x5c1402,_0x5a6967){return _0x1a56e3(_0x5c1402,_0x5a6967);},'YRsok':function(_0x1f37f5,_0x325af2){return _0x1f37f5(_0x325af2);},'mEXdz':function(_0x325701,_0x42be97,_0x4a72de){return _0x325701(_0x42be97,_0x4a72de);},'CfnVu':function(_0x39de5c,_0x33b452){return _0x39de5c instanceof _0x33b452;},'iLNOG':function(_0x14b204,_0x518982,_0x32fc0d,_0x375cc9,_0x4e4659){return _0x14b204(_0x518982,_0x32fc0d,_0x375cc9,_0x4e4659);}};return function(..._0x63eb5a){const _0x4701ce=a84_0x3c7b;try{let _0xc722ba=_0x4531c9;process['env'][_0x4701ce(0x151)]&&(_0xc722ba=PerformanceTester['getPerformance']()[_0x4701ce(0x107)](_0xc722ba));_0x5d3205&&_0x15cf82['mLIhR'](trace,_0x4701ce(0x168)+_0x2f1d03+_0x4701ce(0x16c)+process[_0x4701ce(0x11a)]+_0x4701ce(0x144)+_0x15cf82[_0x4701ce(0x12e)](nestedKeyValue,arguments[0x0],_0x41cd00));const _0x587946=_0xc722ba['apply'](null,arguments);_0x5d3205&&_0x15cf82[_0x4701ce(0x105)](trace,_0x4701ce(0x142)+_0x2f1d03+_0x4701ce(0x16c)+process[_0x4701ce(0x11a)]+',\x20Argument\x20-\x20'+_0x15cf82[_0x4701ce(0x12b)](nestedKeyValue,arguments[0x0],_0x41cd00));if(_0x15cf82[_0x4701ce(0x123)](_0x587946,Promise))return _0x587946['catch'](_0x5bf331=>processError(_0x5bf331,_0x4531c9,_0x63eb5a,_0x2f1d03));return _0x587946;}catch(_0x3ecc99){_0x15cf82[_0x4701ce(0x10f)](processError,_0x3ecc99,_0x4531c9,_0x63eb5a,_0x2f1d03);}};},o11yClassErrorHandler=(_0xb218d5,_0x50e4d9,_0x5dc82a='')=>{const _0x5e0f77=a84_0x1e496c,_0x568777={'iOceN':function(_0x3cc6bc,_0x310300){return _0x3cc6bc instanceof _0x310300;},'mzmfp':function(_0x255f96,_0x572e9e,_0x26fe2c,_0x21694b,_0xce33fb){return _0x255f96(_0x572e9e,_0x26fe2c,_0x21694b,_0xce33fb);},'JhaOP':function(_0xaa2995,_0x1e70cf){return _0xaa2995===_0x1e70cf;},'zHQCy':'function','druds':function(_0x5995fe,_0x4e1e3d){return _0x5995fe!==_0x4e1e3d;},'vEUbu':_0x5e0f77(0x165),'lGbqZ':function(_0x4fa646,_0x2a544e){return _0x4fa646<_0x2a544e;}},_0x3e7bec=_0xb218d5[_0x5e0f77(0x16f)];if(_0x568777['lGbqZ'](Object[_0x5e0f77(0x130)](_0x3e7bec)[_0x5e0f77(0x15e)],0x2))return _0xb218d5;return Object[_0x5e0f77(0x130)](_0x3e7bec)[_0x5e0f77(0x115)](_0x14e034=>{const _0x366d2d=_0x5e0f77,_0x44508f={'QRPmG':function(_0xcbc548,_0x136494){const _0x1b1289=a84_0x3c7b;return _0x568777[_0x1b1289(0x10d)](_0xcbc548,_0x136494);},'QFksC':function(_0x263b10,_0x4ff24b,_0x507da5,_0xe04a3f,_0x24aacd){const _0x84e384=a84_0x3c7b;return _0x568777[_0x84e384(0x154)](_0x263b10,_0x4ff24b,_0x507da5,_0xe04a3f,_0x24aacd);}};if(!(_0x50e4d9&&_0x50e4d9[_0x366d2d(0x119)](_0x14e034)))return;const _0x227099=_0x3e7bec[_0x14e034];_0x568777[_0x366d2d(0x161)](typeof _0x227099,_0x568777['zHQCy'])&&_0x568777[_0x366d2d(0x157)](_0x14e034,_0x568777['vEUbu'])&&Object['defineProperty'](_0x3e7bec,_0x14e034,{'writable':!![],'value':function(..._0x3aead3){const _0x59ff6a=_0x366d2d;try{const _0x1d8d9b=(process[_0x59ff6a(0x164)][_0x59ff6a(0x151)]?PerformanceTester[_0x59ff6a(0x16b)]()['timerify'](_0x227099):_0x227099)[_0x59ff6a(0x155)](this,..._0x3aead3);if(_0x44508f['QRPmG'](_0x1d8d9b,Promise))return _0x1d8d9b['catch'](_0x1bb036=>processError(_0x1bb036,_0x227099,_0x3aead3,_0x5dc82a));return _0x1d8d9b;}catch(_0x3532c2){_0x44508f[_0x59ff6a(0x14d)](processError,_0x3532c2,_0x227099,_0x3aead3,_0x5dc82a);}}});}),_0xb218d5;};function a84_0x3c7b(_0x45f1a5,_0x21e5e9){const _0x32e351=a84_0x32e3();return a84_0x3c7b=function(_0x3c7b23,_0x6cb486){_0x3c7b23=_0x3c7b23-0x105;let _0x42c41f=_0x32e351[_0x3c7b23];return _0x42c41f;},a84_0x3c7b(_0x45f1a5,_0x21e5e9);}function a84_0x32e3(){const _0x306469=['KEWhH','ZZaDz','YRsok','setCredentials','timerify','LvHRM','stringify','frameworkVersion','setConfigDetails','ItcJc','iOceN','auth','iLNOG','then','exports','setAllDetails','BahFr','util','forEach','frameworkName','.\x20Args\x20-\x20','tywDP','includes','pid','HamZR','Content-Type','true','setFrameworkDetails','Error\x20in\x20executing\x20','accessKey','depth','uploadCrashReport','CfnVu','o11yErrorHandler','CREDENTIALS_FOR_CRASH_REPORTING','key','parse','credentials','10137IUyHBo','JGxwp','mEXdz','cVYXu','filterPII','hyHYw','54284HvWuck','getOwnPropertyNames','headers','X-BSTACK-TESTOPS','7933347cuxsrr','stack','AOIMI','724odpuGo','toString','tlrKV','format','9141376JGBRLi','POST','getConfig','frameworkDetails','pJILA','[Crash_Report_Upload]\x20Success\x20response:\x20','captureError','RWXmI','Finished\x20::\x20','oELSW',',\x20Argument\x20-\x20','username','[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','27276920hGpoXO','myGaP','getFramework','fORXG','QEDYb','recursivelyDeletePIIKeysFromObject','QFksC','userConfig','getCredentials','DDEiO','BROWSERSTACK_O11Y_PERF_MEASUREMENT','user','34VwqlVu','mzmfp','call','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','druds','name','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','initialize','bhSUJ','5515200ClCYIp','5738175rXpGjD','length','CrashReporter','../performance/performance-tester','JhaOP','.\x20Error\x20-\x20','password','env','constructor','7WfKDax','catch','Started\x20::\x20','iEAte','/api/v1/analytics','getPerformance',',\x20PID\x20-\x20','keys','USER_CONFIG_FOR_REPORTING','prototype','\x20--\x20','pVXbC','o11yClassErrorHandler'];a84_0x32e3=function(){return _0x306469;};return a84_0x32e3();}function processError(_0x45d055,_0x55621f,_0x68b5ba,_0x4f9a74){const _0x1c7bd7=a84_0x1e496c,_0xf07326={'BahFr':function(_0x231401,_0xeeb950){return _0x231401(_0xeeb950);}};_0xf07326[_0x1c7bd7(0x113)](debug,_0x1c7bd7(0x11f)+_0x55621f[_0x1c7bd7(0x158)]+_0x1c7bd7(0x170)+_0x4f9a74+'.\x20Error\x20-\x20'+_0x45d055+_0x1c7bd7(0x117)+_0x68b5ba+'.'),PerformanceTester[_0x1c7bd7(0x140)](_0x45d055);let _0x637959;try{_0x637959=JSON[_0x1c7bd7(0x109)](_0x68b5ba);}catch(_0x19249f){const _0x492c38={};_0x492c38[_0x1c7bd7(0x121)]=0x2,_0x637959=util['inspect'](_0x68b5ba,_0x492c38);}CrashReporter[_0x1c7bd7(0x122)](_0x1c7bd7(0x11f)+_0x55621f[_0x1c7bd7(0x158)]+'\x20--\x20'+_0x4f9a74+_0x1c7bd7(0x162)+_0x45d055+'.\x20Args\x20-\x20'+_0x637959+'.',_0x45d055&&_0x45d055[_0x1c7bd7(0x134)]);}class CrashReporter{static [a84_0x1e496c(0x14e)]={};static ['credentials'];static [a84_0x1e496c(0x13d)]={};static[a84_0x1e496c(0x15a)](_0x5bb5af,_0xf56691,_0xb146e1=null){const _0x2dd488=a84_0x1e496c,_0x351b96={'bhSUJ':function(_0x5b51c5,_0x35c837){return _0x5b51c5(_0x35c837);},'uVOcn':function(_0x3f5410,_0x26310c){return _0x3f5410(_0x26310c);},'tlrKV':function(_0x23b27a,_0x3f66f2){return _0x23b27a(_0x3f66f2);}},_0x3a3232=_0x5bb5af[_0x2dd488(0x116)],_0x147feb=_0x5bb5af[_0x2dd488(0x10a)];!_0xb146e1&&(_0xb146e1=_0x351b96[_0x2dd488(0x15b)](getBrowserStackConfig,_0x3a3232));!_0x147feb&&_0x351b96['uVOcn'](getFrameworkVersion,_0x3a3232);const _0x3e8d61={};_0x3e8d61[_0x2dd488(0x116)]=_0x3a3232,_0x3e8d61[_0x2dd488(0x10a)]=_0x147feb,this[_0x2dd488(0x112)](_0x3e8d61,_0xf56691,_0x351b96[_0x2dd488(0x138)](getUserCredentials,_0xb146e1));}static[a84_0x1e496c(0x106)](_0x3938ed,_0xcf9ef7){const _0x5c8614=a84_0x1e496c,_0x192d0d={};_0x192d0d[_0x5c8614(0x145)]=_0x3938ed,_0x192d0d['accessKey']=_0xcf9ef7,this[_0x5c8614(0x128)]=_0x192d0d,process[_0x5c8614(0x164)][_0x5c8614(0x125)]=JSON[_0x5c8614(0x109)](this[_0x5c8614(0x128)]);}static[a84_0x1e496c(0x14f)](){const _0x3c24b8=a84_0x1e496c,_0x34323d={'KEWhH':function(_0x2eb2f9,_0x3f489e){return _0x2eb2f9(_0x3f489e);}};if(!this[_0x3c24b8(0x128)]&&process[_0x3c24b8(0x164)][_0x3c24b8(0x125)])try{this[_0x3c24b8(0x128)]=JSON['parse'](process[_0x3c24b8(0x164)]['CREDENTIALS_FOR_CRASH_REPORTING']);}catch(_0x13a7da){_0x34323d[_0x3c24b8(0x173)](debug,'Error\x20in\x20parsing\x20credentials\x20from\x20env\x20'+_0x13a7da[_0x3c24b8(0x137)]());}return this['credentials'];}static[a84_0x1e496c(0x10b)](_0x198323){const _0x947d42=a84_0x1e496c;this[_0x947d42(0x14e)]=this[_0x947d42(0x12d)](_0x198323),process[_0x947d42(0x164)][_0x947d42(0x16e)]=JSON[_0x947d42(0x109)](this[_0x947d42(0x14e)]);}static[a84_0x1e496c(0x13c)](){const _0x2ce453=a84_0x1e496c,_0x4711a3={'RWXmI':function(_0x18ebb8,_0x46ce61){return _0x18ebb8===_0x46ce61;},'HamZR':function(_0x1c75d0,_0x1f0268){return _0x1c75d0(_0x1f0268);}};if(_0x4711a3[_0x2ce453(0x141)](Object['keys'](this[_0x2ce453(0x14e)])[_0x2ce453(0x15e)],0x0)&&process['env']['USER_CONFIG_FOR_REPORTING'])try{this[_0x2ce453(0x14e)]=JSON[_0x2ce453(0x127)](process[_0x2ce453(0x164)][_0x2ce453(0x16e)]);}catch(_0x3118b4){_0x4711a3[_0x2ce453(0x11b)](debug,'Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20'+_0x3118b4[_0x2ce453(0x137)]()),this['userConfig']={};}return this[_0x2ce453(0x14e)];}static[a84_0x1e496c(0x11e)](_0x40286f){const _0x3dc557=a84_0x1e496c;this['frameworkDetails']=_0x40286f,process[_0x3dc557(0x164)][_0x3dc557(0x156)]=JSON['stringify'](this[_0x3dc557(0x13d)]);}static[a84_0x1e496c(0x149)](){const _0x3a9bcf=a84_0x1e496c,_0x56e0ed={'xfECt':function(_0x5888bd,_0x4f687a){return _0x5888bd===_0x4f687a;},'QEDYb':function(_0x4f60c0,_0x21a033){return _0x4f60c0(_0x21a033);}};if(_0x56e0ed['xfECt'](Object[_0x3a9bcf(0x16d)](this[_0x3a9bcf(0x13d)])['length'],0x0)&&process['env'][_0x3a9bcf(0x156)])try{this[_0x3a9bcf(0x13d)]=JSON['parse'](process[_0x3a9bcf(0x164)][_0x3a9bcf(0x156)]);}catch(_0x37f60d){_0x56e0ed[_0x3a9bcf(0x14b)](debug,_0x3a9bcf(0x159)+_0x37f60d['toString']());}return this[_0x3a9bcf(0x13d)];}static[a84_0x1e496c(0x112)](_0x1a6f2d,_0x4c9292,_0x5740f9){const _0x2b0cb4=a84_0x1e496c;_0x1a6f2d&&this[_0x2b0cb4(0x11e)](_0x1a6f2d),_0x4c9292&&this['setConfigDetails'](_0x4c9292),_0x5740f9&&this['setCredentials'](_0x5740f9[_0x2b0cb4(0x145)],_0x5740f9[_0x2b0cb4(0x120)]);}static async[a84_0x1e496c(0x122)](_0x501029,_0x4f2e7c){const _0x41419f=a84_0x1e496c,_0x23aeff={'DDEiO':function(_0xeb05fa,_0x2e71c6){return _0xeb05fa(_0x2e71c6);},'myGaP':function(_0x5adc0c,_0x58d8ed){return _0x5adc0c(_0x58d8ed);},'ZZaDz':_0x41419f(0x146),'AOIMI':function(_0x57fe4d){return _0x57fe4d();},'fORXG':_0x41419f(0x16a),'LvHRM':'application/json','CyNPK':_0x41419f(0x11d),'pRGVW':function(_0x1d5647,_0x2aa4e3,_0x571e0e,_0x19ef43,_0x2c2b5b,_0x49dca9){return _0x1d5647(_0x2aa4e3,_0x571e0e,_0x19ef43,_0x2c2b5b,_0x49dca9);},'tywDP':_0x41419f(0x13b)};this['getCredentials']();if(!this[_0x41419f(0x128)])return _0x23aeff['myGaP'](debug,_0x23aeff[_0x41419f(0x174)]);this['getConfig'](),this['getFramework']();const _0x24b83c={'hashed_id':process[_0x41419f(0x164)]['BS_TESTOPS_BUILD_HASHED_ID'],'observability_version':{'sdkVersion':_0x23aeff[_0x41419f(0x135)](getAgentVersion),'frameworkName':this[_0x41419f(0x13d)]['frameworkName'],'frameworkVersion':this['frameworkDetails'][_0x41419f(0x10a)]},'exception':{'error':_0x501029[_0x41419f(0x137)](),'stackTrace':_0x4f2e7c},'config':this[_0x41419f(0x14e)]},_0x7256d4=_0x23aeff[_0x41419f(0x14a)],_0x20531a={};_0x20531a[_0x41419f(0x145)]=this[_0x41419f(0x128)][_0x41419f(0x145)],_0x20531a[_0x41419f(0x163)]=this[_0x41419f(0x128)]['accessKey'];const _0x7e4a98={};_0x7e4a98[_0x41419f(0x11c)]=_0x23aeff[_0x41419f(0x108)],_0x7e4a98[_0x41419f(0x132)]=_0x23aeff['CyNPK'];const _0xcfa4a8={};_0xcfa4a8[_0x41419f(0x10e)]=_0x20531a,_0xcfa4a8[_0x41419f(0x131)]=_0x7e4a98;const _0x3e08bb=_0xcfa4a8;_0x23aeff['pRGVW'](nodeRequest,_0x23aeff[_0x41419f(0x118)],_0x7256d4,_0x24b83c,_0x3e08bb,![])[_0x41419f(0x110)](_0x1af4ad=>{const _0x45080f=_0x41419f;_0x23aeff[_0x45080f(0x150)](debug,_0x45080f(0x13f)+JSON[_0x45080f(0x109)](_0x1af4ad));})[_0x41419f(0x167)](_0x4d79f1=>{const _0x80dcd2=_0x41419f;_0x23aeff[_0x80dcd2(0x148)](debug,'[Crash_Report_Upload]\x20Failed\x20due\x20to\x20'+util[_0x80dcd2(0x139)](_0x4d79f1));});}static[a84_0x1e496c(0x14c)](_0x2cfae9){const _0x1183f2=a84_0x1e496c,_0x3d0c13={};_0x3d0c13[_0x1183f2(0x12c)]=_0x1183f2(0x152),_0x3d0c13['oELSW']=_0x1183f2(0x145),_0x3d0c13[_0x1183f2(0x13e)]=_0x1183f2(0x126),_0x3d0c13[_0x1183f2(0x169)]=_0x1183f2(0x120),_0x3d0c13[_0x1183f2(0x12a)]=_0x1183f2(0x163),_0x3d0c13[_0x1183f2(0x10c)]=function(_0x4d3d81,_0x17e603){return _0x4d3d81===_0x17e603;},_0x3d0c13[_0x1183f2(0x171)]='object';const _0x66db16=_0x3d0c13;if(!_0x2cfae9)return;const _0xf16a71=[_0x66db16[_0x1183f2(0x12c)],_0x66db16[_0x1183f2(0x143)],_0x66db16[_0x1183f2(0x13e)],_0x66db16[_0x1183f2(0x169)],_0x66db16[_0x1183f2(0x12a)]];for(const _0x5221be in _0x2cfae9){if(_0xf16a71[_0x1183f2(0x119)](_0x5221be['toLowerCase']()))delete _0x2cfae9[_0x5221be];else _0x66db16['ItcJc'](typeof _0x2cfae9[_0x5221be],_0x66db16[_0x1183f2(0x171)])&&this[_0x1183f2(0x14c)](_0x2cfae9[_0x5221be]);}}static['filterPII'](_0x10e4e6){const _0x15e444=a84_0x1e496c,_0x23bed0=JSON[_0x15e444(0x127)](JSON[_0x15e444(0x109)](_0x10e4e6));return this['recursivelyDeletePIIKeysFromObject'](_0x23bed0),_0x23bed0;}}const a84_0x151ea4={};a84_0x151ea4[a84_0x1e496c(0x124)]=o11yErrorHandler,a84_0x151ea4[a84_0x1e496c(0x172)]=o11yClassErrorHandler,a84_0x151ea4[a84_0x1e496c(0x15f)]=CrashReporter,module[a84_0x1e496c(0x111)]=a84_0x151ea4;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a85_0x47c3(_0x4533c4,_0x5a9b25){const _0x900195=a85_0x9001();return a85_0x47c3=function(_0x47c368,_0x25fbdc){_0x47c368=_0x47c368-0x1cf;let _0x890507=_0x900195[_0x47c368];return _0x890507;},a85_0x47c3(_0x4533c4,_0x5a9b25);}function a85_0x9001(){const _0x2af12c=['9337205zQdlEL','resetEventBatchPolling','TestRunFinished','screenshotEventUrl','kind','queue','AXTqY','includes','exports','startEventBatchPolling','CBTSessionCreated','push','api/v1/batch','BmTFx','TXyog','90doPMgP','logs','yPUfu','Remaining\x20Queue\x20Length\x20-\x20','started','4|2|5|1|3|0','Ckfkm','./constants','dlCGT','POST','HookRunStarted','965072nyiMgH','pendingUploads','Processing\x20batch\x20events\x20for\x20','slice','COZmj','7054700KjldhX','TEST_SCREENSHOT','ZzFbt','message','join','add','removeEventBatchPolling','getInstance','KGAAF','start','TestRunStarted','EXCEPTION\x20IN\x20','xqeOF','Interval-Queue','pollEventBatchInterval','JJCFm','map','vOSOo','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','urdKU','Processing\x20events.\x20Queue\x20Length\x20-\x20','42auKppF','LVNoS','hook_run','lgBvr','ibnyJ','YoliB','uuid','jtbju','FgGCn','REMOVING','22bUWjgk','49kduNhB','ZxMfV','qjYlk','util','HookRunFinished','rcmeF','instance','test_run','GpOoR','1292571KljOKU','\x20--\x20','.\x20Request\x20Size\x20-\x20','RQptO','byteLength','5231400NxCHun','uijdG','67538WGwHEn','proceedWithUrl','event_type','52459750eDLDdW','mRAzP','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','RESETTING','shouldProceed','rdKmG','shutdown','RuJXC','data','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','error','gqirA','utf8','format','status','max','LogCreated','OojNO','Shutdown-Queue','splice','tDsGo','ClOVr','LmAEe','eventUrl','batchAndPostEvents','BATCH_EVENT_TYPES','statusText','gMmew','length','response','proceedWithData','PIJSO','\x20bytes.\x20Events\x20are\x20','NoqmV','../helper','WnJvA','uploadPending','UGcSx'];a85_0x9001=function(){return _0x2af12c;};return a85_0x9001();}const a85_0x52cb68=a85_0x47c3;(function(_0x4c932e,_0x2cb054){const _0x1771bf=a85_0x47c3,_0x576544=_0x4c932e();while(!![]){try{const _0x2d9aae=parseInt(_0x1771bf(0x225))/0x1*(-parseInt(_0x1771bf(0x235))/0x2)+-parseInt(_0x1771bf(0x233))/0x3+-parseInt(_0x1771bf(0x205))/0x4+-parseInt(_0x1771bf(0x1e6))/0x5+-parseInt(_0x1771bf(0x21a))/0x6*(parseInt(_0x1771bf(0x22e))/0x7)+-parseInt(_0x1771bf(0x200))/0x8*(parseInt(_0x1771bf(0x1f5))/0x9)+parseInt(_0x1771bf(0x238))/0xa*(parseInt(_0x1771bf(0x224))/0xb);if(_0x2d9aae===_0x2cb054)break;else _0x576544['push'](_0x576544['shift']());}catch(_0xf41d35){_0x576544['push'](_0x576544['shift']());}}}(a85_0x9001,0xeb372));const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require(a85_0x52cb68(0x1fc)),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require('./utils'),{nestedKeyValue}=require(a85_0x52cb68(0x1e2)),util=require(a85_0x52cb68(0x228));class RequestQueueHandler{static [a85_0x52cb68(0x22b)];[a85_0x52cb68(0x201)]=0x0;constructor(){const _0x3cf46e=a85_0x52cb68,_0x346910={};_0x346910['KGAAF']=_0x3cf46e(0x1fa),_0x346910[_0x3cf46e(0x22a)]='api/v1/screenshots',_0x346910[_0x3cf46e(0x23f)]=_0x3cf46e(0x1d0),_0x346910[_0x3cf46e(0x231)]=_0x3cf46e(0x1f0),_0x346910[_0x3cf46e(0x239)]=_0x3cf46e(0x1e8),_0x346910[_0x3cf46e(0x207)]='TestRunSkipped',_0x346910[_0x3cf46e(0x211)]=_0x3cf46e(0x229),_0x346910[_0x3cf46e(0x21d)]=_0x3cf46e(0x20f),_0x346910['TXyog']=_0x3cf46e(0x1ff),_0x346910[_0x3cf46e(0x1e5)]=_0x3cf46e(0x1f2);const _0x6020c0=_0x346910,_0x4cb2f0=_0x6020c0[_0x3cf46e(0x20d)]['split']('|');let _0x27a5fd=0x0;while(!![]){switch(_0x4cb2f0[_0x27a5fd++]){case'0':this[_0x3cf46e(0x213)]=null;continue;case'1':this[_0x3cf46e(0x1e9)]=_0x6020c0[_0x3cf46e(0x22a)];continue;case'2':this[_0x3cf46e(0x1f9)]=![];continue;case'3':this['BATCH_EVENT_TYPES']=[_0x6020c0['RuJXC'],_0x6020c0[_0x3cf46e(0x231)],_0x6020c0['mRAzP'],_0x6020c0[_0x3cf46e(0x207)],_0x6020c0['xqeOF'],_0x6020c0['lgBvr'],_0x6020c0[_0x3cf46e(0x1f4)]];continue;case'4':this['queue']=[];continue;case'5':this['eventUrl']=_0x6020c0[_0x3cf46e(0x1e5)];continue;}break;}}static[a85_0x52cb68(0x20c)](){const _0x15f6bd=a85_0x52cb68;return!RequestQueueHandler[_0x15f6bd(0x22b)]&&(RequestQueueHandler['instance']=new RequestQueueHandler()),RequestQueueHandler[_0x15f6bd(0x22b)];}[a85_0x52cb68(0x20e)]=()=>{const _0x2094fe=a85_0x52cb68;!this[_0x2094fe(0x1f9)]&&(this[_0x2094fe(0x1f9)]=!![],this[_0x2094fe(0x1ef)]());};[a85_0x52cb68(0x20a)]=_0xb0bafe=>{const _0x44512b=a85_0x52cb68,_0x415df8={'BmTFx':function(_0x18349e,_0xe1982b){return _0x18349e===_0xe1982b;},'DIGdz':_0x44512b(0x206),'ibnyJ':function(_0x29e3e7,_0xf57775){return _0x29e3e7(_0xf57775);},'yPUfu':_0x44512b(0x23a)};if(this[_0x44512b(0x1d9)][_0x44512b(0x1ed)](_0xb0bafe[_0x44512b(0x237)])){if(_0xb0bafe[_0x44512b(0x1f6)]&&_0xb0bafe[_0x44512b(0x1f6)][0x0]&&_0x415df8[_0x44512b(0x1f3)](_0xb0bafe[_0x44512b(0x1f6)][0x0][_0x44512b(0x1ea)],_0x415df8['DIGdz'])){const _0x2f88a0={};return _0x2f88a0['shouldProceed']=!![],_0x2f88a0[_0x44512b(0x1de)]=[_0xb0bafe],_0x2f88a0[_0x44512b(0x236)]=this['screenshotEventUrl'],_0x2f88a0;}this[_0x44512b(0x1eb)][_0x44512b(0x1f1)](_0xb0bafe);let _0x22a62b=null;const _0x3ba474=this['shouldProceed']();_0x3ba474&&(_0x415df8[_0x44512b(0x21e)](trace,_0x415df8[_0x44512b(0x1f7)]),_0x22a62b=this[_0x44512b(0x1eb)]['slice'](0x0,BATCH_SIZE),this[_0x44512b(0x1eb)][_0x44512b(0x1d3)](0x0,BATCH_SIZE),this[_0x44512b(0x1e7)]());const _0x50af6f={};return _0x50af6f[_0x44512b(0x23c)]=_0x3ba474,_0x50af6f[_0x44512b(0x1de)]=_0x22a62b,_0x50af6f[_0x44512b(0x236)]=this['eventUrl'],_0x50af6f;}const _0x3ed9c8={};return _0x3ed9c8[_0x44512b(0x23c)]=!![],_0x3ed9c8;};[a85_0x52cb68(0x23e)]=async()=>{const _0x16e868=a85_0x52cb68,_0x261b0a={'mktbW':_0x16e868(0x223),'ClOVr':function(_0x44b6d2,_0x5b204b){return _0x44b6d2>_0x5b204b;},'LVNoS':_0x16e868(0x1d2),'Ckfkm':function(_0x5b913c,_0x2cfb8f){return _0x5b913c(_0x2cfb8f);}};await this['uploadPending'](),this[_0x16e868(0x20b)](_0x261b0a['mktbW']);while(_0x261b0a['ClOVr'](this['queue'][_0x16e868(0x1dc)],0x0)){const _0x19015e=this['queue']['slice'](0x0,BATCH_SIZE);this[_0x16e868(0x1eb)][_0x16e868(0x1d3)](0x0,BATCH_SIZE),await this['batchAndPostEvents'](this[_0x16e868(0x1d7)],_0x261b0a[_0x16e868(0x21b)],_0x19015e);}_0x261b0a[_0x16e868(0x1d5)](this[_0x16e868(0x201)],0x0)&&_0x261b0a[_0x16e868(0x1fb)](debug,'Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20'+this[_0x16e868(0x201)]);};[a85_0x52cb68(0x1d8)]=async(_0x3cee38,_0x45d247,_0x3e7626)=>{const _0xcff4a2=a85_0x52cb68,_0xbbecb2={'uijdG':function(_0x4419e1,_0x28bfb3){return _0x4419e1(_0x28bfb3);},'WnJvA':_0xcff4a2(0x244),'YoliB':function(_0x4c4954,_0x5355ef){return _0x4c4954(_0x5355ef);},'NoqmV':function(_0x5e856f){return _0x5e856f();},'FgGCn':function(_0x5103e5,_0x2345b8,_0x26e77d,_0x2b614c,_0x5aad01){return _0x5103e5(_0x2345b8,_0x26e77d,_0x2b614c,_0x5aad01);},'dlCGT':_0xcff4a2(0x1fe),'JJCFm':function(_0x290c68,_0xf6895b){return _0x290c68-_0xf6895b;},'OojNO':function(_0x1d3543,_0x5e9928){return _0x1d3543(_0x5e9928);}};let _0x38e907='';try{_0x38e907=_0x3e7626[_0xcff4a2(0x215)](_0x13a262=>'\x27'+_0x13a262[_0xcff4a2(0x237)]+'\x27:'+(nestedKeyValue(_0x13a262,[_0xcff4a2(0x22c),_0xcff4a2(0x220)])||nestedKeyValue(_0x13a262,[_0xcff4a2(0x21c),'uuid'])))[_0xcff4a2(0x209)](','),_0xbbecb2[_0xcff4a2(0x234)](debug,_0xcff4a2(0x202)+_0x45d247+_0xcff4a2(0x230)+Buffer[_0xcff4a2(0x232)](util['format']('%j',_0x3e7626),_0xbbecb2[_0xcff4a2(0x1e3)])+_0xcff4a2(0x1e0)+_0x38e907);}catch(_0x4e818e){_0xbbecb2[_0xcff4a2(0x21f)](debug,_0xcff4a2(0x241)+util[_0xcff4a2(0x245)](_0x4e818e)+'}');}const _0x89c086={'headers':_0xbbecb2[_0xcff4a2(0x1e1)](getDefaultHeaders)};try{const _0x28a728=await _0xbbecb2[_0xcff4a2(0x222)](nodeRequest,_0xbbecb2[_0xcff4a2(0x1fd)],_0x3cee38,_0x3e7626,_0x89c086);if(_0x28a728[_0xcff4a2(0x240)][_0xcff4a2(0x242)]){const _0x27ee32={};_0x27ee32[_0xcff4a2(0x208)]=_0x28a728[_0xcff4a2(0x240)][_0xcff4a2(0x242)];throw _0x27ee32;}else _0xbbecb2[_0xcff4a2(0x21f)](debug,_0x45d247+'\x20event\x20successful\x20for\x20events\x20'+_0x38e907+_0xcff4a2(0x22f)+util['format']('%j',_0x28a728[_0xcff4a2(0x240)])),this['pendingUploads']=Math[_0xcff4a2(0x1cf)](0x0,_0xbbecb2[_0xcff4a2(0x214)](this['pendingUploads'],_0x3e7626[_0xcff4a2(0x1dc)]));}catch(_0x2cc1b8){_0x2cc1b8['response']?_0xbbecb2[_0xcff4a2(0x21f)](debug,_0xcff4a2(0x210)+_0x45d247+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20'+_0x2cc1b8['response'][_0xcff4a2(0x246)]+'\x20'+_0x2cc1b8[_0xcff4a2(0x1dd)][_0xcff4a2(0x1da)]+'\x20'+JSON['stringify'](_0x2cc1b8[_0xcff4a2(0x1dd)])):_0xbbecb2[_0xcff4a2(0x1d1)](debug,_0xcff4a2(0x210)+_0x45d247+_0xcff4a2(0x217)+(_0x2cc1b8[_0xcff4a2(0x208)]||_0x2cc1b8)),this[_0xcff4a2(0x201)]=Math['max'](0x0,_0xbbecb2['JJCFm'](this[_0xcff4a2(0x201)],_0x3e7626['length']));}};['startEventBatchPolling']=()=>{const _0x4d7930=a85_0x52cb68,_0x586ab7={'AXTqY':function(_0x146b19,_0x4e5e1f){return _0x146b19>_0x4e5e1f;},'rdKmG':function(_0x420e2a,_0x156a7d){return _0x420e2a(_0x156a7d);},'LmAEe':_0x4d7930(0x212),'vOSOo':function(_0x43d0bc,_0x3de4f1){return _0x43d0bc(_0x3de4f1);},'gqirA':function(_0x2230b5,_0x4f395b,_0x125a19){return _0x2230b5(_0x4f395b,_0x125a19);}};this['pollEventBatchInterval']=_0x586ab7[_0x4d7930(0x243)](setInterval,async()=>{const _0x75feb2=_0x4d7930;if(_0x586ab7[_0x75feb2(0x1ec)](this[_0x75feb2(0x1eb)][_0x75feb2(0x1dc)],0x0)){_0x586ab7[_0x75feb2(0x23d)](trace,_0x75feb2(0x219)+this['queue'][_0x75feb2(0x1dc)]);const _0x5e7395=this['queue'][_0x75feb2(0x203)](0x0,BATCH_SIZE);this[_0x75feb2(0x1eb)][_0x75feb2(0x1d3)](0x0,BATCH_SIZE),await this['batchAndPostEvents'](this[_0x75feb2(0x1d7)],_0x586ab7[_0x75feb2(0x1d6)],_0x5e7395),_0x586ab7[_0x75feb2(0x216)](trace,_0x75feb2(0x1f8)+this[_0x75feb2(0x1eb)][_0x75feb2(0x1dc)]);}},BATCH_INTERVAL);};['resetEventBatchPolling']=()=>{const _0x1fe51a=a85_0x52cb68,_0xe318f={};_0xe318f[_0x1fe51a(0x218)]=_0x1fe51a(0x23b);const _0x5a28cf=_0xe318f;this['removeEventBatchPolling'](_0x5a28cf[_0x1fe51a(0x218)]),this[_0x1fe51a(0x1ef)]();};['removeEventBatchPolling']=_0x1d998d=>{const _0x575554=a85_0x52cb68,_0x4e78ea={'tDsGo':function(_0x1bb55f,_0xa33826){return _0x1bb55f(_0xa33826);},'GpOoR':function(_0x4cec6b,_0x4cd6b6){return _0x4cec6b===_0x4cd6b6;},'jtbju':_0x575554(0x223)};this[_0x575554(0x213)]&&(_0x4e78ea[_0x575554(0x1d4)](clearInterval,this['pollEventBatchInterval']),this[_0x575554(0x213)]=null,_0x4e78ea[_0x575554(0x22d)](_0x1d998d,_0x4e78ea[_0x575554(0x221)])&&(this['started']=![]));};[a85_0x52cb68(0x23c)]=()=>{const _0x77a156=a85_0x52cb68,_0x15cc0d={};_0x15cc0d[_0x77a156(0x226)]=function(_0x1927ca,_0x506e69){return _0x1927ca>=_0x506e69;};const _0x4a836c=_0x15cc0d;return _0x4a836c[_0x77a156(0x226)](this['queue']['length'],BATCH_SIZE);};async[a85_0x52cb68(0x1e4)](_0x54c0a3=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x2d6736=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x13ba10=a85_0x52cb68,_0x1a632e={'qjYlk':function(_0x47c844,_0x1a89e7){return _0x47c844<=_0x1a89e7;},'gMmew':function(_0x163619,_0x4a8d7f){return _0x163619<=_0x4a8d7f;},'COZmj':function(_0x32a017,_0x5be9ea){return _0x32a017(_0x5be9ea);},'PIJSO':function(_0x438686,_0x7aaa3c){return _0x438686-_0x7aaa3c;}};if(_0x1a632e[_0x13ba10(0x227)](this[_0x13ba10(0x201)],0x0)||_0x1a632e[_0x13ba10(0x1db)](_0x54c0a3,0x0))return;return await _0x1a632e[_0x13ba10(0x204)](sleep,_0x2d6736),this[_0x13ba10(0x1e4)](_0x1a632e[_0x13ba10(0x1df)](_0x54c0a3,_0x2d6736));}}module[a85_0x52cb68(0x1ee)]=RequestQueueHandler;
|
|
1
|
+
const a85_0x8b56c9=a85_0x4a20;(function(_0x37d962,_0x49dcdf){const _0xc9ee96=a85_0x4a20,_0x2d2a30=_0x37d962();while(!![]){try{const _0x1ab9bf=parseInt(_0xc9ee96(0x106))/0x1+parseInt(_0xc9ee96(0xbb))/0x2*(parseInt(_0xc9ee96(0xaf))/0x3)+-parseInt(_0xc9ee96(0xdb))/0x4*(parseInt(_0xc9ee96(0x9e))/0x5)+-parseInt(_0xc9ee96(0xb2))/0x6+-parseInt(_0xc9ee96(0xb0))/0x7*(parseInt(_0xc9ee96(0x102))/0x8)+-parseInt(_0xc9ee96(0xfb))/0x9*(parseInt(_0xc9ee96(0xaa))/0xa)+parseInt(_0xc9ee96(0xb7))/0xb;if(_0x1ab9bf===_0x49dcdf)break;else _0x2d2a30['push'](_0x2d2a30['shift']());}catch(_0x2aee8d){_0x2d2a30['push'](_0x2d2a30['shift']());}}}(a85_0x53c5,0xeafc4));const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require(a85_0x8b56c9(0x103)),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require(a85_0x8b56c9(0xdd)),{nestedKeyValue}=require(a85_0x8b56c9(0xd7)),util=require(a85_0x8b56c9(0xff));class RequestQueueHandler{static [a85_0x8b56c9(0xa4)];[a85_0x8b56c9(0x9b)]=0x0;constructor(){const _0x433152=a85_0x8b56c9,_0x1f210e={};_0x1f210e[_0x433152(0xe9)]='2|4|0|1|5|3',_0x1f210e[_0x433152(0xd1)]=_0x433152(0x101),_0x1f210e[_0x433152(0x98)]='api/v1/screenshots',_0x1f210e[_0x433152(0xcc)]=_0x433152(0xb8),_0x1f210e[_0x433152(0x9d)]=_0x433152(0xdc),_0x1f210e[_0x433152(0xa0)]=_0x433152(0xd3),_0x1f210e[_0x433152(0x104)]=_0x433152(0xd6),_0x1f210e[_0x433152(0xba)]=_0x433152(0x9f),_0x1f210e[_0x433152(0xc0)]='TestRunStarted',_0x1f210e['gloSR']=_0x433152(0xd9);const _0x16c008=_0x1f210e,_0x3c8cce=_0x16c008[_0x433152(0xe9)]['split']('|');let _0x4f7f61=0x0;while(!![]){switch(_0x3c8cce[_0x4f7f61++]){case'0':this[_0x433152(0x99)]=_0x16c008[_0x433152(0xd1)];continue;case'1':this[_0x433152(0xe3)]=_0x16c008['MBiJW'];continue;case'2':this[_0x433152(0xef)]=[];continue;case'3':this[_0x433152(0xf2)]=null;continue;case'4':this['started']=![];continue;case'5':this['BATCH_EVENT_TYPES']=[_0x16c008[_0x433152(0xcc)],_0x16c008['DsjpY'],_0x16c008[_0x433152(0xa0)],_0x16c008[_0x433152(0x104)],_0x16c008[_0x433152(0xba)],_0x16c008['BQOfD'],_0x16c008[_0x433152(0xc1)]];continue;}break;}}static[a85_0x8b56c9(0xbc)](){const _0x1b338b=a85_0x8b56c9;return!RequestQueueHandler[_0x1b338b(0xa4)]&&(RequestQueueHandler[_0x1b338b(0xa4)]=new RequestQueueHandler()),RequestQueueHandler[_0x1b338b(0xa4)];}['start']=()=>{const _0x305c41=a85_0x8b56c9;!this[_0x305c41(0xfd)]&&(this[_0x305c41(0xfd)]=!![],this[_0x305c41(0xe6)]());};[a85_0x8b56c9(0xa5)]=_0x327df7=>{const _0x1889d2=a85_0x8b56c9,_0x19e623={'jTImY':function(_0x3ee95d,_0x12ffc5){return _0x3ee95d===_0x12ffc5;},'pxaTn':_0x1889d2(0xf4),'TNCrO':function(_0x3eff26,_0x2f4c3b){return _0x3eff26(_0x2f4c3b);},'XUDFG':_0x1889d2(0xcd)};if(this['BATCH_EVENT_TYPES'][_0x1889d2(0xb4)](_0x327df7[_0x1889d2(0xec)])){if(_0x327df7['logs']&&_0x327df7[_0x1889d2(0xd0)][0x0]&&_0x19e623[_0x1889d2(0xe2)](_0x327df7[_0x1889d2(0xd0)][0x0]['kind'],_0x19e623[_0x1889d2(0xf9)])){const _0x2af5c5={};return _0x2af5c5[_0x1889d2(0xce)]=!![],_0x2af5c5[_0x1889d2(0xcf)]=[_0x327df7],_0x2af5c5[_0x1889d2(0xa2)]=this['screenshotEventUrl'],_0x2af5c5;}this[_0x1889d2(0xef)][_0x1889d2(0xa9)](_0x327df7);let _0x217837=null;const _0x3bdd72=this[_0x1889d2(0xce)]();_0x3bdd72&&(_0x19e623[_0x1889d2(0xf3)](trace,_0x19e623[_0x1889d2(0xca)]),_0x217837=this[_0x1889d2(0xef)][_0x1889d2(0xde)](0x0,BATCH_SIZE),this['queue'][_0x1889d2(0xd2)](0x0,BATCH_SIZE),this['resetEventBatchPolling']());const _0x45161a={};return _0x45161a[_0x1889d2(0xce)]=_0x3bdd72,_0x45161a['proceedWithData']=_0x217837,_0x45161a[_0x1889d2(0xa2)]=this[_0x1889d2(0x99)],_0x45161a;}const _0x25fb37={};return _0x25fb37[_0x1889d2(0xce)]=!![],_0x25fb37;};[a85_0x8b56c9(0xc6)]=async()=>{const _0xc4e242=a85_0x8b56c9,_0x5a355c={'bnrXE':_0xc4e242(0xeb),'BcmIC':function(_0x1d6c2c,_0x24d620){return _0x1d6c2c>_0x24d620;},'VkWTQ':'Shutdown-Queue','vpjJV':function(_0x12c56d,_0x17a7af){return _0x12c56d(_0x17a7af);}};await this[_0xc4e242(0x97)](),this[_0xc4e242(0xbd)](_0x5a355c['bnrXE']);while(_0x5a355c[_0xc4e242(0xac)](this[_0xc4e242(0xef)][_0xc4e242(0x9a)],0x0)){const _0x4a0c41=this[_0xc4e242(0xef)][_0xc4e242(0xde)](0x0,BATCH_SIZE);this[_0xc4e242(0xef)][_0xc4e242(0xd2)](0x0,BATCH_SIZE),await this[_0xc4e242(0x9c)](this[_0xc4e242(0x99)],_0x5a355c['VkWTQ'],_0x4a0c41);}_0x5a355c[_0xc4e242(0xac)](this[_0xc4e242(0x9b)],0x0)&&_0x5a355c['vpjJV'](debug,_0xc4e242(0xc9)+this[_0xc4e242(0x9b)]);};['batchAndPostEvents']=async(_0x396db2,_0x469126,_0x60e64c)=>{const _0x549c2d=a85_0x8b56c9,_0xc3ce={'agBMg':function(_0x15e8d7,_0xfdf3c7){return _0x15e8d7(_0xfdf3c7);},'GGVEK':_0x549c2d(0xa3),'JKUIN':function(_0x402405,_0x433703){return _0x402405(_0x433703);},'IpsVS':function(_0x2dbc06){return _0x2dbc06();},'jkvsG':function(_0x5ca566,_0x4457e6,_0x2eef92,_0x53414e,_0x38d352){return _0x5ca566(_0x4457e6,_0x2eef92,_0x53414e,_0x38d352);},'OwUhT':_0x549c2d(0xf8),'AkUQr':function(_0x2ddc43,_0x4c575a){return _0x2ddc43(_0x4c575a);},'DhEUr':function(_0x59fdaf,_0x18003d){return _0x59fdaf-_0x18003d;},'nipCz':function(_0xb75737,_0x4693bf){return _0xb75737(_0x4693bf);},'aWwZh':function(_0x507bf8,_0x38b707){return _0x507bf8(_0x38b707);},'VVaVm':function(_0xb072e5,_0x49d9cb){return _0xb072e5-_0x49d9cb;}};let _0x5769f2='';try{_0x5769f2=_0x60e64c['map'](_0x2ce78f=>'\x27'+_0x2ce78f[_0x549c2d(0xec)]+'\x27:'+(nestedKeyValue(_0x2ce78f,[_0x549c2d(0xa7),_0x549c2d(0xcb)])||nestedKeyValue(_0x2ce78f,[_0x549c2d(0xc3),_0x549c2d(0xcb)])))[_0x549c2d(0xc2)](','),_0xc3ce[_0x549c2d(0xe7)](debug,_0x549c2d(0xea)+_0x469126+_0x549c2d(0xe5)+Buffer[_0x549c2d(0xb5)](util['format']('%j',_0x60e64c),_0xc3ce[_0x549c2d(0xe4)])+_0x549c2d(0xc7)+_0x5769f2);}catch(_0xe72be0){_0xc3ce[_0x549c2d(0xbf)](debug,_0x549c2d(0xf1)+util[_0x549c2d(0xee)](_0xe72be0)+'}');}const _0x266710={'headers':_0xc3ce['IpsVS'](getDefaultHeaders)};try{const _0x1ec8da=await _0xc3ce[_0x549c2d(0xa8)](nodeRequest,_0xc3ce[_0x549c2d(0xe1)],_0x396db2,_0x60e64c,_0x266710);if(_0x1ec8da['data'][_0x549c2d(0xb3)]){const _0x45b483={};_0x45b483[_0x549c2d(0xf5)]=_0x1ec8da[_0x549c2d(0xa1)]['error'];throw _0x45b483;}else _0xc3ce['AkUQr'](debug,_0x469126+_0x549c2d(0xc4)+_0x5769f2+_0x549c2d(0xf7)+util['format']('%j',_0x1ec8da['data'])),this[_0x549c2d(0x9b)]=Math[_0x549c2d(0x100)](0x0,_0xc3ce[_0x549c2d(0x105)](this[_0x549c2d(0x9b)],_0x60e64c[_0x549c2d(0x9a)]));}catch(_0x1c4ae5){_0x1c4ae5[_0x549c2d(0xc5)]?_0xc3ce[_0x549c2d(0xc8)](debug,_0x549c2d(0xdf)+_0x469126+_0x549c2d(0xb9)+_0x1c4ae5[_0x549c2d(0xc5)][_0x549c2d(0xfe)]+'\x20'+_0x1c4ae5[_0x549c2d(0xc5)][_0x549c2d(0xda)]+'\x20'+JSON[_0x549c2d(0xe0)](_0x1c4ae5[_0x549c2d(0xc5)])):_0xc3ce['aWwZh'](debug,_0x549c2d(0xdf)+_0x469126+_0x549c2d(0xb9)+(_0x1c4ae5[_0x549c2d(0xf5)]||_0x1c4ae5)),this[_0x549c2d(0x9b)]=Math['max'](0x0,_0xc3ce[_0x549c2d(0xd8)](this[_0x549c2d(0x9b)],_0x60e64c[_0x549c2d(0x9a)]));}};[a85_0x8b56c9(0xe6)]=()=>{const _0x18b764=a85_0x8b56c9,_0x2e894a={'ScThL':function(_0x2f1a38,_0x45a0f2){return _0x2f1a38>_0x45a0f2;},'eraTV':function(_0x37f630,_0x15da9a){return _0x37f630(_0x15da9a);},'VvBXw':_0x18b764(0xd4),'GrNaj':function(_0x482acc,_0x133824){return _0x482acc(_0x133824);},'KDEFW':function(_0x835b44,_0x1a67ce,_0x290b75){return _0x835b44(_0x1a67ce,_0x290b75);}};this[_0x18b764(0xf2)]=_0x2e894a[_0x18b764(0xbe)](setInterval,async()=>{const _0x592c13=_0x18b764;if(_0x2e894a[_0x592c13(0xf0)](this[_0x592c13(0xef)][_0x592c13(0x9a)],0x0)){_0x2e894a['eraTV'](trace,'Processing\x20events.\x20Queue\x20Length\x20-\x20'+this['queue'][_0x592c13(0x9a)]);const _0xc9796a=this['queue'][_0x592c13(0xde)](0x0,BATCH_SIZE);this[_0x592c13(0xef)]['splice'](0x0,BATCH_SIZE),await this[_0x592c13(0x9c)](this['eventUrl'],_0x2e894a[_0x592c13(0xa6)],_0xc9796a),_0x2e894a[_0x592c13(0xed)](trace,'Remaining\x20Queue\x20Length\x20-\x20'+this[_0x592c13(0xef)][_0x592c13(0x9a)]);}},BATCH_INTERVAL);};['resetEventBatchPolling']=()=>{const _0x3a9d7d=a85_0x8b56c9,_0x2514c3={};_0x2514c3[_0x3a9d7d(0xd5)]=_0x3a9d7d(0xab);const _0xb20350=_0x2514c3;this[_0x3a9d7d(0xbd)](_0xb20350[_0x3a9d7d(0xd5)]),this[_0x3a9d7d(0xe6)]();};[a85_0x8b56c9(0xbd)]=_0x1be06d=>{const _0x3ebb9b=a85_0x8b56c9,_0x2b8bbd={'ZHJmB':function(_0x12a9f3,_0x5b015c){return _0x12a9f3(_0x5b015c);},'fcekn':function(_0x570137,_0x484719){return _0x570137===_0x484719;},'WEFaX':_0x3ebb9b(0xeb)};this[_0x3ebb9b(0xf2)]&&(_0x2b8bbd[_0x3ebb9b(0xad)](clearInterval,this[_0x3ebb9b(0xf2)]),this[_0x3ebb9b(0xf2)]=null,_0x2b8bbd[_0x3ebb9b(0xfa)](_0x1be06d,_0x2b8bbd[_0x3ebb9b(0xfc)])&&(this[_0x3ebb9b(0xfd)]=![]));};[a85_0x8b56c9(0xce)]=()=>{const _0x40062e=a85_0x8b56c9,_0x49c9f7={};_0x49c9f7[_0x40062e(0xb6)]=function(_0x548561,_0x2c8c69){return _0x548561>=_0x2c8c69;};const _0x4b934a=_0x49c9f7;return _0x4b934a[_0x40062e(0xb6)](this['queue'][_0x40062e(0x9a)],BATCH_SIZE);};async[a85_0x8b56c9(0x97)](_0x24b851=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x498f60=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x3d0079=a85_0x8b56c9,_0x57563b={'gELwu':function(_0x5abbcb,_0x4a6940){return _0x5abbcb<=_0x4a6940;},'ivqeA':function(_0x2a56c1,_0x51c737){return _0x2a56c1<=_0x51c737;},'qbVZg':function(_0x55e2e8,_0x1f5dd1){return _0x55e2e8(_0x1f5dd1);},'zQbcl':function(_0x4f8ea0,_0x6787ef){return _0x4f8ea0-_0x6787ef;}};if(_0x57563b[_0x3d0079(0xb1)](this[_0x3d0079(0x9b)],0x0)||_0x57563b[_0x3d0079(0xf6)](_0x24b851,0x0))return;return await _0x57563b[_0x3d0079(0xe8)](sleep,_0x498f60),this[_0x3d0079(0x97)](_0x57563b['zQbcl'](_0x24b851,_0x498f60));}}module[a85_0x8b56c9(0xae)]=RequestQueueHandler;function a85_0x4a20(_0x18fd8d,_0x30675b){const _0x53c5fe=a85_0x53c5();return a85_0x4a20=function(_0x4a2030,_0x42b865){_0x4a2030=_0x4a2030-0x97;let _0xcdbdb=_0x53c5fe[_0x4a2030];return _0xcdbdb;},a85_0x4a20(_0x18fd8d,_0x30675b);}function a85_0x53c5(){const _0x3fb0f3=['includes','byteLength','eIMaM','22202829TgVAbm','LogCreated','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','PxVdL','2REVmFJ','getInstance','removeEventBatchPolling','KDEFW','JKUIN','BQOfD','gloSR','join','hook_run','\x20event\x20successful\x20for\x20events\x20','response','shutdown','\x20bytes.\x20Events\x20are\x20','nipCz','Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20','XUDFG','uuid','nIfKc','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','shouldProceed','proceedWithData','logs','wvuWP','splice','TestRunFinished','Interval-Queue','CUiMh','TestRunSkipped','../helper','VVaVm','HookRunStarted','statusText','40VKrERh','CBTSessionCreated','./utils','slice','EXCEPTION\x20IN\x20','stringify','OwUhT','jTImY','screenshotEventUrl','GGVEK','.\x20Request\x20Size\x20-\x20','startEventBatchPolling','agBMg','qbVZg','NOYOr','Processing\x20batch\x20events\x20for\x20','REMOVING','event_type','GrNaj','format','queue','ScThL','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','pollEventBatchInterval','TNCrO','TEST_SCREENSHOT','message','ivqeA','\x20--\x20','POST','pxaTn','fcekn','342ardKQx','WEFaX','started','status','util','max','api/v1/batch','2088lJonDu','./constants','GTdnl','DhEUr','953309hrdtCl','uploadPending','MBiJW','eventUrl','length','pendingUploads','batchAndPostEvents','DsjpY','545785UocOMr','HookRunFinished','vsZUX','data','proceedWithUrl','utf8','instance','add','VvBXw','test_run','jkvsG','push','284410Nivngu','RESETTING','BcmIC','ZHJmB','exports','5271291HvvpMA','12754PgIIJb','gELwu','6710850XKmDGQ','error'];a85_0x53c5=function(){return _0x3fb0f3;};return a85_0x53c5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a86_0x9dfea=a86_0x2ad3;(function(_0xb1a2a7,_0x27ae8a){const _0x567ede=a86_0x2ad3,_0x23c657=_0xb1a2a7();while(!![]){try{const _0x478da5=parseInt(_0x567ede(0xd1))/0x1+-parseInt(_0x567ede(0x125))/0x2*(-parseInt(_0x567ede(0xbc))/0x3)+parseInt(_0x567ede(0x11b))/0x4+-parseInt(_0x567ede(0xc8))/0x5+parseInt(_0x567ede(0xec))/0x6*(-parseInt(_0x567ede(0x117))/0x7)+-parseInt(_0x567ede(0xbd))/0x8+-parseInt(_0x567ede(0x128))/0x9;if(_0x478da5===_0x27ae8a)break;else _0x23c657['push'](_0x23c657['shift']());}catch(_0x5d97c3){_0x23c657['push'](_0x23c657['shift']());}}}(a86_0x1542,0x33518));const bsSetupHelper=require(a86_0x9dfea(0x115)),path=require(a86_0x9dfea(0xf1)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,sleep,isTestObservabilitySession,trace}=require('./utils'),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a86_0x9dfea(0xd0)),RequestQueueHandler=require(a86_0x9dfea(0xd4)),logger=require('../logger')['winstonLogger'],{shouldProcessEventForTesthub,isPercyBuild,getProductMap}=require(a86_0x9dfea(0x12f));function a86_0x1542(){const _0x4f6359=['BS_TESTOPS_BUILD_COMPLETED','Content-Type','407265shNKtP','104872AyCYZa','api/v1/builds','frameworkVersion','pendingUploads','sTpoq','Retry\x20runs\x20exceeded','TVkRs','eDKhy','password','gjGXv','HookRunFinished','714410oXOxyJ','BS_TESTOPS_JWT','ERROR_INVALID_CREDENTIALS','add','nestedKeyValue','BS_A11Y_JWT','AasrI','X-BSTACK-TESTOPS','./constants','399123zXRSNP','waitForBuildStatus','true','./requestQueueHandler','Mnlyc','YxrCv','LcZli','YGWwv','projectName','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','Hook_Start_Upload','hook_run','status','api/v1/event','OVCsT','hDtYa','GrCrx','XTrwn','POST','json','TzqGc','PyHEX','HookRunStarted','getUserName','KatIR','EdFWl','6pRrYsN','allow_screenshots','AGdXR','requestQueueHandler','response','path','cQdEZ','BROWSERSTACK_RERUN','RwvOr','HyJGN','CBT_Upload','exports','RpYye','data','application/json','YpXaB','tOyHZ','dVAmH','resolve','info','zsZCr','BS_TESTOPS_BUILD_HASHED_ID','buildDescription','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','LSQbW','Authorization','OOXOm','EXCEPTION\x20IN\x20','Build\x20creation\x20successful!','HeuZR','browserstackAutomation','Hook_End_Upload','headers','error','TestRunSkipped','env','lBrpN','LogCreated','eventUrl','Data\x20upload\x20to\x20BrowserStack\x20Test\x20Observability\x20failed\x20due\x20to\x20','buildIdentifier','../helper','qTfIw','1579739JTSCDs','TestRunFinished','getCiInfo','frameworkName','1090500BUaBao','ERROR_SDK_DEPRECATED','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20missing\x20authentication\x20token','cIDuX','build_hashed_id','oEara','MCjxT','zoFnQ','length','max','2tgHKPN','username','app','1940715KtfzcK','VrlUE','toString','start','event_type','toISOString','getHostInfo','../../helpers/testhub/utils','tMtyU','BROWSERSTACK_TESTHUB_JWT','hadpV','buildName','BROWSERSTACK_TESTHUB_UUID','yIpCp','uuid','stringify','XDuZb','false','PbYGe','statusText','null','piouk','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','message','uploadEventData','test_run','jwt','aUVnR','dODkt','CREDENTIALS_FOR_CRASH_REPORTING','CBTSessionCreated','XlijR','BROWSERSTACK_BUILD_RUN_IDENTIFIER','jxxdv','getAgentVersion','RUZst','Test_Start_Upload','includes','BS_TESTOPS_ALLOW_SCREENSHOTS','\x20retry\x20runs\x20exceeded','rnTcE','mkjeb','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','cZlQz'];a86_0x1542=function(){return _0x4f6359;};return a86_0x1542();}function a86_0x2ad3(_0xd0a98a,_0x76707f){const _0x1542f2=a86_0x1542();return a86_0x2ad3=function(_0x2ad3c2,_0x3b66d9){_0x2ad3c2=_0x2ad3c2-0xb4;let _0x43263b=_0x1542f2[_0x2ad3c2];return _0x43263b;},a86_0x2ad3(_0xd0a98a,_0x76707f);}class SessionHandler{static ['requestQueueHandler']=RequestQueueHandler['getInstance']();static async['launch'](_0x30fa73,_0x55d75e){const _0x251ee7=a86_0x9dfea,_0x4dde59={'Uvkeq':function(_0x59305b,_0x3734dc){return _0x59305b||_0x3734dc;},'yIpCp':function(_0x3d859f,_0x29678b){return _0x3d859f||_0x29678b;},'AErtZ':function(_0x4dd6fb,_0x2d952b){return _0x4dd6fb===_0x2d952b;},'cQdEZ':function(_0x4d7230,_0x13bfaf){return _0x4d7230(_0x13bfaf);},'HeuZR':_0x251ee7(0x103),'oEara':'false','BSihx':_0x251ee7(0xe5),'rnTcE':function(_0x101549,_0x1a576f){return _0x101549(_0x1a576f);},'AGdXR':function(_0x191a3c,_0x3c3da7){return _0x191a3c(_0x3c3da7);},'hDtYa':function(_0x21b71f,_0x54d335,_0xa9d028,_0x4ddc06,_0x5032a1){return _0x21b71f(_0x54d335,_0xa9d028,_0x4ddc06,_0x5032a1);},'PbYGe':'POST','YxrCv':_0x251ee7(0xbe),'MCjxT':_0x251ee7(0x108),'AasrI':function(_0x1f42b5){return _0x1f42b5();},'OOXOm':'true','PyHEX':_0x251ee7(0x13c),'TzqGc':function(_0x472e24,_0x31093f){return _0x472e24(_0x31093f);},'cIDuX':_0x251ee7(0xca),'zsZCr':'ERROR_ACCESS_DENIED','OVCsT':_0x251ee7(0x11c)},_0x4ce8b6=bsSetupHelper[_0x251ee7(0xe9)](_0x30fa73),_0x12ae7a=bsSetupHelper['getAccessKey'](_0x30fa73),_0xe39c0b=_0x4dde59['Uvkeq'](_0x4ce8b6,'')+':'+_0x4dde59[_0x251ee7(0x135)](_0x12ae7a,'');if(_0x4dde59['AErtZ'](_0xe39c0b,':'))return _0x4dde59[_0x251ee7(0xf2)](debug,_0x4dde59[_0x251ee7(0x109)]),process[_0x251ee7(0x10f)][_0x251ee7(0xba)]=_0x4dde59['oEara'],[null,null];let _0x3a79a3=![],_0x555a90=![];if(_0x30fa73[_0x251ee7(0x10a)]&&_0x30fa73[_0x251ee7(0x127)])_0x555a90=!![];else _0x30fa73[_0x251ee7(0x10a)]&&(_0x3a79a3=!![]);try{const _0x2d18b4={'format':_0x4dde59['BSihx'],'project_name':_0x30fa73[_0x251ee7(0xd9)]||'','name':_0x30fa73[_0x251ee7(0x133)]||path['basename'](path[_0x251ee7(0xfe)](process['cwd']())),'build_identifier':_0x30fa73[_0x251ee7(0x114)],'description':_0x30fa73[_0x251ee7(0x102)]||'','start_time':new Date()[_0x251ee7(0x12d)](),'tags':_0x4dde59[_0x251ee7(0xb6)](getCustomTags,_0x30fa73),'host_info':bsSetupHelper[_0x251ee7(0x12e)](),'ci_info':bsSetupHelper[_0x251ee7(0x119)](),'build_run_identifier':process[_0x251ee7(0x10f)][_0x251ee7(0x148)],'failed_tests_rerun':process[_0x251ee7(0x10f)][_0x251ee7(0xf3)]||![],'version_control':await bsSetupHelper['getGitMetaData'](),'observability_version':{'frameworkName':_0x55d75e[_0x251ee7(0x11a)],'frameworkVersion':_0x55d75e[_0x251ee7(0xbf)],'sdkVersion':bsSetupHelper[_0x251ee7(0x14a)]()},'product_map':_0x4dde59['cQdEZ'](getProductMap,_0x30fa73)},_0x483a47={};_0x483a47[_0x251ee7(0x126)]=_0x4ce8b6,_0x483a47[_0x251ee7(0xc5)]=_0x12ae7a;const _0x467d6c={'auth':_0x483a47,'headers':_0x4dde59[_0x251ee7(0xee)](getDefaultHeaders,![])},_0x1a35b8=await _0x4dde59[_0x251ee7(0xe1)](nodeRequest,_0x4dde59[_0x251ee7(0x13a)],_0x4dde59[_0x251ee7(0xd6)],_0x2d18b4,_0x467d6c);_0x4dde59['rnTcE'](debug,_0x4dde59[_0x251ee7(0x121)]);const _0x4277a4=_0x1a35b8['data'];_0x4277a4['build_hashed_id']&&(process[_0x251ee7(0x10f)]['BROWSERSTACK_TESTHUB_UUID']=_0x4277a4[_0x251ee7(0x11f)]);if(_0x4dde59[_0x251ee7(0xce)](isTestObservabilitySession)){process[_0x251ee7(0x10f)][_0x251ee7(0xba)]=_0x4dde59[_0x251ee7(0x106)];if(_0x4277a4['jwt']){process[_0x251ee7(0x10f)][_0x251ee7(0xc9)]=_0x4277a4[_0x251ee7(0x142)];const _0x535614={};_0x535614[_0x251ee7(0x126)]=_0x4ce8b6,_0x535614[_0x251ee7(0xc5)]=_0x12ae7a,process['env'][_0x251ee7(0x145)]=JSON[_0x251ee7(0x137)](_0x535614);}_0x4277a4[_0x251ee7(0x11f)]&&(process[_0x251ee7(0x10f)][_0x251ee7(0x101)]=_0x4277a4[_0x251ee7(0x11f)]),_0x4277a4[_0x251ee7(0xed)]&&(process[_0x251ee7(0x10f)][_0x251ee7(0xb4)]=_0x4277a4[_0x251ee7(0xed)][_0x251ee7(0x12a)]());}return[_0x1a35b8[_0x251ee7(0xf9)]['jwt'],_0x1a35b8[_0x251ee7(0xf9)]['build_hashed_id'],_0x1a35b8[_0x251ee7(0xf9)]['allow_screenshots']];}catch(_0x1bd020){process[_0x251ee7(0x10f)][_0x251ee7(0x134)]=_0x4dde59[_0x251ee7(0xe7)],process['env'][_0x251ee7(0xba)]=_0x4dde59[_0x251ee7(0x120)],process['env'][_0x251ee7(0xc9)]=_0x4dde59[_0x251ee7(0xe7)],process['env'][_0x251ee7(0x101)]=_0x4dde59[_0x251ee7(0xe7)],process['env'][_0x251ee7(0xb4)]=_0x4dde59[_0x251ee7(0xe7)];_0x1bd020['response']?_0x4dde59[_0x251ee7(0xee)](debug,_0x251ee7(0xdb)+_0x1bd020[_0x251ee7(0xf0)][_0x251ee7(0xde)]+'\x20'+_0x1bd020[_0x251ee7(0xf0)][_0x251ee7(0x13b)]+'\x20'+JSON[_0x251ee7(0x137)](_0x1bd020[_0x251ee7(0xf0)][_0x251ee7(0xf9)])):_0x4dde59[_0x251ee7(0xe6)](debug,_0x251ee7(0xdb)+(_0x1bd020['message']||_0x1bd020));if(_0x1bd020&&_0x1bd020[_0x251ee7(0x13f)]){const _0x5f383e=_0x1bd020['message'];switch(_0x1bd020['errorType']){case _0x4dde59[_0x251ee7(0x11e)]:logger['error'](_0x5f383e);break;case _0x4dde59[_0x251ee7(0x100)]:logger[_0x251ee7(0xff)](_0x5f383e);break;case _0x4dde59[_0x251ee7(0xe0)]:logger[_0x251ee7(0x10d)](_0x5f383e);break;default:logger[_0x251ee7(0x10d)](_0x5f383e);}}else console[_0x251ee7(0xff)](_0x251ee7(0x113)+_0x1bd020);return[null,null,null];}}static async[a86_0x9dfea(0xd2)](){const _0x3ae21e=a86_0x9dfea,_0x354ae5={'LSQbW':'true','LcZli':'false','KatIR':function(_0x27ab0f,_0x1088b3){return _0x27ab0f(_0x1088b3);}},_0x441aff=process[_0x3ae21e(0x10f)][_0x3ae21e(0xba)];if([_0x354ae5[_0x3ae21e(0x104)],_0x354ae5[_0x3ae21e(0xd7)]]['includes'](_0x441aff))return;while([_0x354ae5[_0x3ae21e(0x104)],_0x354ae5[_0x3ae21e(0xd7)]][_0x3ae21e(0x14d)](_0x441aff)){await _0x354ae5[_0x3ae21e(0xea)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static async[a86_0x9dfea(0x140)](_0x31dd33,_0x92344b=0x0){const _0x23834f=a86_0x9dfea,_0x222322={'hgcCz':function(_0x588d64,_0x257975){return _0x588d64+_0x257975;},'puYJg':_0x23834f(0x14c),'aUVnR':'Test_End_Upload','tMtyU':'Test_Skipped_Upload','HyJGN':'Log_Upload','zoFnQ':_0x23834f(0xdc),'mDrVC':_0x23834f(0x10b),'cZlQz':_0x23834f(0xf6),'EdFWl':function(_0x56fdbf,_0xcb51f2){return _0x56fdbf(_0xcb51f2);},'jxxdv':_0x23834f(0x141),'Mnlyc':_0x23834f(0x136),'piouk':_0x23834f(0xdd),'GrCrx':function(_0x207abc,_0x5c2666,_0x11e353){return _0x207abc(_0x5c2666,_0x11e353);},'jlhKD':_0x23834f(0x140),'dVAmH':function(_0xeee5d9,_0x4f4d73){return _0xeee5d9===_0x4f4d73;},'YGWwv':function(_0x3a3bda,_0x7fa83c){return _0x3a3bda!==_0x7fa83c;},'XlijR':_0x23834f(0x13c),'XDuZb':_0x23834f(0xd3),'TVkRs':function(_0x51d05e){return _0x51d05e();},'eDKhy':function(_0x1bbb35,_0x495674){return _0x1bbb35(_0x495674);},'RpYye':function(_0x2ea92a,_0x3dc730){return _0x2ea92a-_0x3dc730;},'qTfIw':_0x23834f(0x10d),'pEFhJ':_0x23834f(0xda),'TTHEa':_0x23834f(0xfa),'VrlUE':function(_0x277b85,_0x1418b1,_0x11de3f,_0x3b5f47,_0x570faf){return _0x277b85(_0x1418b1,_0x11de3f,_0x3b5f47,_0x570faf);},'tOyHZ':_0x23834f(0xe4),'RUZst':function(_0x249b14,_0x36e964){return _0x249b14!==_0x36e964;},'dODkt':'Batch-Queue','YpXaB':function(_0x3933d9,_0x539a80){return _0x3933d9-_0x539a80;},'UkghE':function(_0x1b1529,_0x598a8c){return _0x1b1529===_0x598a8c;},'gjGXv':_0x23834f(0xdf),'JrhGb':'success','jQWqP':function(_0x41b10f,_0x531fc9){return _0x41b10f(_0x531fc9);},'XTrwn':function(_0x4c49f1,_0x5e1f13){return _0x4c49f1-_0x5e1f13;},'lBrpN':function(_0x102651,_0x1217c8){return _0x102651===_0x1217c8;},'sTpoq':function(_0x1458f8,_0x4bdcd6){return _0x1458f8>=_0x4bdcd6;},'mkjeb':function(_0x5b7af2,_0x1b8630){return _0x5b7af2!==_0x1b8630;},'FEPxl':_0x23834f(0xc2),'hadpV':_0x23834f(0x139),'RwvOr':function(_0x399cf5,_0x3b5916,_0xd14ae5){return _0x399cf5(_0x3b5916,_0xd14ae5);}},_0x2f850d={};_0x2f850d['TestRunStarted']=_0x222322['puYJg'],_0x2f850d[_0x23834f(0x118)]=_0x222322[_0x23834f(0x143)],_0x2f850d[_0x23834f(0x10e)]=_0x222322[_0x23834f(0x130)],_0x2f850d[_0x23834f(0x111)]=_0x222322[_0x23834f(0xf5)],_0x2f850d[_0x23834f(0xe8)]=_0x222322[_0x23834f(0x122)],_0x2f850d[_0x23834f(0xc7)]=_0x222322['mDrVC'],_0x2f850d[_0x23834f(0x146)]=_0x222322[_0x23834f(0xb9)];const _0x28447c=_0x2f850d[_0x31dd33[_0x23834f(0x12c)]];_0x222322[_0x23834f(0xeb)](trace,'Processing\x20event\x20-\x20\x27'+_0x31dd33[_0x23834f(0x12c)]+'\x27\x20'+(bsSetupHelper[_0x23834f(0xcc)](_0x31dd33,[_0x222322[_0x23834f(0x149)],_0x222322[_0x23834f(0xd5)]])||bsSetupHelper['nestedKeyValue'](_0x31dd33,[_0x222322[_0x23834f(0x13d)],_0x222322[_0x23834f(0xd5)]])));if(!_0x222322[_0x23834f(0xe2)](shouldProcessEventForTesthub,_0x31dd33['event_type'],_0x222322['jlhKD']))return;_0x222322[_0x23834f(0xfd)](_0x92344b,0x0)&&process[_0x23834f(0x10f)]['BROWSERSTACK_TESTHUB_JWT']&&_0x222322[_0x23834f(0xd8)](process[_0x23834f(0x10f)][_0x23834f(0x131)],_0x222322[_0x23834f(0x147)])&&(this[_0x23834f(0xef)][_0x23834f(0xc0)]+=0x1);if(_0x222322[_0x23834f(0xfd)](process[_0x23834f(0x10f)]['BS_TESTOPS_BUILD_COMPLETED'],_0x222322['XDuZb'])||process[_0x23834f(0x10f)][_0x23834f(0xcd)]||_0x222322[_0x23834f(0xc3)](isPercyBuild)){if(_0x222322[_0x23834f(0xfd)](process[_0x23834f(0x10f)][_0x23834f(0x131)],_0x222322[_0x23834f(0x147)])){_0x222322[_0x23834f(0xc4)](debug,'EXCEPTION\x20IN\x20'+_0x28447c+_0x23834f(0x11d)),this[_0x23834f(0xef)][_0x23834f(0xc0)]=Math[_0x23834f(0x124)](0x0,_0x222322['RpYye'](this[_0x23834f(0xef)][_0x23834f(0xc0)],0x1));const _0x104a5f={};return _0x104a5f['status']=_0x222322['qTfIw'],_0x104a5f[_0x23834f(0x13f)]=_0x222322['pEFhJ'],_0x104a5f;}let _0x487e7e=_0x31dd33,_0x456343=EVENT_ENDPOINT;this[_0x23834f(0xef)][_0x23834f(0x12b)]();const {shouldProceed:_0x290936,proceedWithData:_0x549426,proceedWithUrl:_0x115cbf}=this['requestQueueHandler'][_0x23834f(0xcb)](_0x31dd33);if(!_0x290936)return;else _0x549426&&(_0x487e7e=_0x549426,_0x456343=_0x115cbf);const _0x3e3008={};_0x3e3008[_0x23834f(0x105)]='Bearer\x20'+process[_0x23834f(0x10f)][_0x23834f(0x131)],_0x3e3008[_0x23834f(0xbb)]=_0x222322['TTHEa'],_0x3e3008[_0x23834f(0xcf)]=_0x222322[_0x23834f(0x138)];const _0x5c0e50={};_0x5c0e50[_0x23834f(0x10c)]=_0x3e3008;const _0x348457=_0x5c0e50;try{const _0x4bed49=await _0x222322[_0x23834f(0x129)](nodeRequest,_0x222322[_0x23834f(0xfc)],_0x456343,_0x487e7e,_0x348457);if(_0x4bed49[_0x23834f(0xf9)][_0x23834f(0x10d)]){const _0x389d51={};_0x389d51[_0x23834f(0x13f)]=_0x4bed49[_0x23834f(0xf9)][_0x23834f(0x10d)];throw _0x389d51;}else{_0x222322['eDKhy'](debug,(_0x222322[_0x23834f(0x14b)](_0x456343,this[_0x23834f(0xef)][_0x23834f(0x112)])?_0x28447c:_0x222322[_0x23834f(0x144)])+'['+_0x92344b+']\x20event\x20successful!'),this[_0x23834f(0xef)][_0x23834f(0xc0)]=Math['max'](0x0,_0x222322[_0x23834f(0xfb)](this[_0x23834f(0xef)][_0x23834f(0xc0)],_0x222322['UkghE'](_0x456343,_0x222322[_0x23834f(0xc6)])?0x1:_0x487e7e[_0x23834f(0x123)]));const _0x40813e={};return _0x40813e[_0x23834f(0xde)]=_0x222322['JrhGb'],_0x40813e[_0x23834f(0x13f)]='',_0x40813e;}}catch(_0x4c9c1c){_0x4c9c1c[_0x23834f(0xf0)]?_0x222322['jQWqP'](debug,_0x23834f(0x107)+(_0x222322[_0x23834f(0xd8)](_0x456343,this[_0x23834f(0xef)][_0x23834f(0x112)])?_0x28447c:_0x222322[_0x23834f(0x144)])+_0x23834f(0x13e)+_0x4c9c1c['response'][_0x23834f(0xde)]+'\x20'+_0x4c9c1c[_0x23834f(0xf0)][_0x23834f(0x13b)]+'\x20'+JSON[_0x23834f(0x137)](_0x4c9c1c[_0x23834f(0xf0)][_0x23834f(0xf9)])):_0x222322['EdFWl'](debug,_0x23834f(0x107)+(_0x222322[_0x23834f(0x14b)](_0x456343,this[_0x23834f(0xef)][_0x23834f(0x112)])?_0x28447c:_0x222322['dODkt'])+_0x23834f(0x13e)+(_0x4c9c1c['message']||_0x4c9c1c));this[_0x23834f(0xef)][_0x23834f(0xc0)]=Math[_0x23834f(0x124)](0x0,_0x222322[_0x23834f(0xe3)](this[_0x23834f(0xef)][_0x23834f(0xc0)],_0x222322[_0x23834f(0x110)](_0x456343,_0x222322[_0x23834f(0xc6)])?0x1:_0x487e7e[_0x23834f(0x123)]));const _0xe53917={};return _0xe53917[_0x23834f(0xde)]=_0x222322[_0x23834f(0x116)],_0xe53917[_0x23834f(0x13f)]=_0x4c9c1c[_0x23834f(0x13f)]||(_0x4c9c1c[_0x23834f(0xf0)]?_0x4c9c1c[_0x23834f(0xf0)][_0x23834f(0xde)]+':'+_0x4c9c1c[_0x23834f(0xf0)][_0x23834f(0x13b)]:_0x4c9c1c),_0xe53917;}}else{if(_0x222322[_0x23834f(0xc1)](_0x92344b,0x5)){_0x222322['EdFWl'](debug,_0x23834f(0x107)+_0x28447c+_0x23834f(0xb8)+_0x28447c+_0x23834f(0xb5));_0x222322[_0x23834f(0xb7)](process[_0x23834f(0x10f)][_0x23834f(0x131)],_0x222322[_0x23834f(0x147)])&&(this['requestQueueHandler'][_0x23834f(0xc0)]=Math[_0x23834f(0x124)](0x0,_0x222322[_0x23834f(0xf8)](this[_0x23834f(0xef)][_0x23834f(0xc0)],0x1)));const _0x53d7b2={};return _0x53d7b2['status']=_0x222322[_0x23834f(0x116)],_0x53d7b2[_0x23834f(0x13f)]=_0x222322['FEPxl'],_0x53d7b2;}else _0x222322[_0x23834f(0x14b)](process[_0x23834f(0x10f)][_0x23834f(0xba)],_0x222322[_0x23834f(0x132)])&&_0x222322[_0x23834f(0xf4)](setTimeout,()=>{const _0x28add4=_0x23834f;this[_0x28add4(0x140)](_0x31dd33,_0x222322['hgcCz'](_0x92344b,0x1));},0x3e8);}}}module[a86_0x9dfea(0xf7)]=SessionHandler;
|
|
1
|
+
const a86_0x2922d9=a86_0x3a8a;(function(_0x5ddcfd,_0x2774a7){const _0x36f4ee=a86_0x3a8a,_0x1924cc=_0x5ddcfd();while(!![]){try{const _0x1b1906=parseInt(_0x36f4ee(0x220))/0x1*(parseInt(_0x36f4ee(0x1f6))/0x2)+-parseInt(_0x36f4ee(0x211))/0x3+parseInt(_0x36f4ee(0x256))/0x4+-parseInt(_0x36f4ee(0x26a))/0x5*(parseInt(_0x36f4ee(0x1f9))/0x6)+-parseInt(_0x36f4ee(0x1f7))/0x7*(parseInt(_0x36f4ee(0x251))/0x8)+parseInt(_0x36f4ee(0x1fc))/0x9*(parseInt(_0x36f4ee(0x209))/0xa)+-parseInt(_0x36f4ee(0x216))/0xb*(parseInt(_0x36f4ee(0x20a))/0xc);if(_0x1b1906===_0x2774a7)break;else _0x1924cc['push'](_0x1924cc['shift']());}catch(_0xa5a432){_0x1924cc['push'](_0x1924cc['shift']());}}}(a86_0x5aee,0x532aa));function a86_0x3a8a(_0x1be52e,_0x154d71){const _0x5aee58=a86_0x5aee();return a86_0x3a8a=function(_0x3a8a0c,_0x5f356b){_0x3a8a0c=_0x3a8a0c-0x1d2;let _0x5b889d=_0x5aee58[_0x3a8a0c];return _0x5b889d;},a86_0x3a8a(_0x1be52e,_0x154d71);}function a86_0x5aee(){const _0x45a5b5=['data','jUxQC','ArpXc','build_hashed_id','wjNAt','DbhDg','ELjdK','qCCOU','dAyTA','YwHdg','DNpde','20wBtifK','1608dajXeI','false','IAjaJ','nestedKeyValue','BS_TESTOPS_ALLOW_SCREENSHOTS','resolve','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','415536WdNnNN','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','QXkdO','qUPBg','getGitMetaData','33407NLireQ','CRCdH','buildIdentifier','TestRunSkipped','zdfji','max','app','status','getCiInfo','CBT_Upload','1beyZMQ','afzXQ','POST','browserstackAutomation','DNVDs','IydvA','rRept','uploadEventData',']\x20event\x20successful!','errorType','X-BSTACK-TESTOPS','\x20retry\x20runs\x20exceeded','stringify','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','KgOYz','statusText','GsbOg','./requestQueueHandler','BROWSERSTACK_TESTHUB_UUID','eventUrl','Content-Type','path','headers','CBTSessionCreated','TestRunFinished','start','aacQZ','response','Batch-Queue','buildDescription','password','Hook_Start_Upload','getInstance','aLjrk','api/v1/builds','waitForBuildStatus','success','basename','dQmHn','hpjpR','BS_TESTOPS_JWT','EXCEPTION\x20IN\x20','kpxpq','FZEic','BS_A11Y_JWT','sOqPd','smJtL','HookRunStarted','allow_screenshots','289832ZWrHJz','info','EWwiC','getAgentVersion','requestQueueHandler','2228628hOgaha','env','Data\x20upload\x20to\x20BrowserStack\x20Test\x20Observability\x20failed\x20due\x20to\x20','ZSDxk','togQY','Test_End_Upload','ZXBgn','pendingUploads','buildName','BupBu','gpXOf','TestRunStarted','null','Log_Upload','MiUtW','getAccessKey','ncfJd','LogCreated','application/json','message','2855qRMihC','ERROR_SDK_DEPRECATED','BROWSERSTACK_TESTHUB_JWT','eXPEC','Authorization','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20missing\x20authentication\x20token','hook_run','BS_TESTOPS_BUILD_HASHED_ID','gaTAX','./constants','qEvDP','KtGIf','BROWSERSTACK_RERUN','toISOString','length','event_type','SbzjX','FnALT','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','uuid','jwt','../../helpers/testhub/utils','../logger','wQFbd','Test_Skipped_Upload','Retry\x20runs\x20exceeded','QbPlR','error','frameworkVersion','projectName','getUserName','Build\x20creation\x20successful!','true','Test_Start_Upload','BROWSERSTACK_BUILD_RUN_IDENTIFIER','includes','test_run','LbNyr','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','klHje','851450OUwZsX','7uoFrrt','ERROR_ACCESS_DENIED','1074VbnLkK','BS_TESTOPS_BUILD_COMPLETED','eVzVV','187542MAOGPW','toString'];a86_0x5aee=function(){return _0x45a5b5;};return a86_0x5aee();}const bsSetupHelper=require('../helper'),path=require(a86_0x2922d9(0x235)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,sleep,isTestObservabilitySession,trace}=require('./utils'),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a86_0x2922d9(0x1d7)),RequestQueueHandler=require(a86_0x2922d9(0x231)),logger=require(a86_0x2922d9(0x1e4))['winstonLogger'],{shouldProcessEventForTesthub,isPercyBuild,getProductMap}=require(a86_0x2922d9(0x1e3));class SessionHandler{static [a86_0x2922d9(0x255)]=RequestQueueHandler[a86_0x2922d9(0x240)]();static async['launch'](_0xdb9b47,_0x58707a){const _0x4e626c=a86_0x2922d9,_0x4e8788={'gpXOf':function(_0x5804ba,_0x15fa9a){return _0x5804ba||_0x15fa9a;},'sOqPd':function(_0x4bf42b,_0x4f1922){return _0x4bf42b===_0x4f1922;},'kpxpq':function(_0x30b771,_0x55cf5d){return _0x30b771(_0x55cf5d);},'JZLeI':_0x4e626c(0x22d),'FZEic':_0x4e626c(0x20b),'QXkdO':'json','ZSDxk':function(_0x20e6f0,_0x14610f){return _0x20e6f0(_0x14610f);},'LbNyr':function(_0x2e3709,_0x1dcb81){return _0x2e3709(_0x1dcb81);},'GsbOg':function(_0x505f92,_0x480166){return _0x505f92(_0x480166);},'BupBu':function(_0x262be7,_0x5cc3db,_0x3c0b7d,_0x4f1230,_0x306667){return _0x262be7(_0x5cc3db,_0x3c0b7d,_0x4f1230,_0x306667);},'mInRw':'POST','lCUWD':_0x4e626c(0x242),'aacQZ':function(_0x3c270b,_0x25f668){return _0x3c270b(_0x25f668);},'wjNAt':_0x4e626c(0x1ed),'hoMff':function(_0x2365df){return _0x2365df();},'Txsqo':_0x4e626c(0x1ee),'SbzjX':_0x4e626c(0x262),'hpjpR':'ERROR_INVALID_CREDENTIALS','IydvA':_0x4e626c(0x1f8),'dQmHn':_0x4e626c(0x26b)},_0x5a2bbe=bsSetupHelper[_0x4e626c(0x1ec)](_0xdb9b47),_0x4563f8=bsSetupHelper[_0x4e626c(0x265)](_0xdb9b47),_0x41ae4b=_0x4e8788[_0x4e626c(0x260)](_0x5a2bbe,'')+':'+_0x4e8788[_0x4e626c(0x260)](_0x4563f8,'');if(_0x4e8788[_0x4e626c(0x24d)](_0x41ae4b,':'))return _0x4e8788[_0x4e626c(0x24a)](debug,_0x4e8788['JZLeI']),process[_0x4e626c(0x257)][_0x4e626c(0x1fa)]=_0x4e8788['FZEic'],[null,null];let _0x418d63=![],_0x199dd9=![];if(_0xdb9b47['browserstackAutomation']&&_0xdb9b47[_0x4e626c(0x21c)])_0x199dd9=!![];else _0xdb9b47[_0x4e626c(0x223)]&&(_0x418d63=!![]);try{const _0x17ee68={'format':_0x4e8788[_0x4e626c(0x213)],'project_name':_0xdb9b47[_0x4e626c(0x1eb)]||'','name':_0xdb9b47[_0x4e626c(0x25e)]||path[_0x4e626c(0x245)](path[_0x4e626c(0x20f)](process['cwd']())),'build_identifier':_0xdb9b47[_0x4e626c(0x218)],'description':_0xdb9b47[_0x4e626c(0x23d)]||'','start_time':new Date()[_0x4e626c(0x1db)](),'tags':_0x4e8788[_0x4e626c(0x259)](getCustomTags,_0xdb9b47),'host_info':bsSetupHelper['getHostInfo'](),'ci_info':bsSetupHelper[_0x4e626c(0x21e)](),'build_run_identifier':process[_0x4e626c(0x257)][_0x4e626c(0x1f0)],'failed_tests_rerun':process[_0x4e626c(0x257)][_0x4e626c(0x1da)]||![],'version_control':await bsSetupHelper[_0x4e626c(0x215)](),'observability_version':{'frameworkName':_0x58707a['frameworkName'],'frameworkVersion':_0x58707a[_0x4e626c(0x1ea)],'sdkVersion':bsSetupHelper[_0x4e626c(0x254)]()},'product_map':_0x4e8788[_0x4e626c(0x1f3)](getProductMap,_0xdb9b47)},_0x392a4a={};_0x392a4a['username']=_0x5a2bbe,_0x392a4a[_0x4e626c(0x23e)]=_0x4563f8;const _0x5e68d0={'auth':_0x392a4a,'headers':_0x4e8788[_0x4e626c(0x230)](getDefaultHeaders,![])},_0x550731=await _0x4e8788[_0x4e626c(0x25f)](nodeRequest,_0x4e8788['mInRw'],_0x4e8788['lCUWD'],_0x17ee68,_0x5e68d0);_0x4e8788[_0x4e626c(0x23a)](debug,_0x4e8788[_0x4e626c(0x202)]);const _0x24c1be=_0x550731['data'];_0x24c1be[_0x4e626c(0x201)]&&(process[_0x4e626c(0x257)][_0x4e626c(0x232)]=_0x24c1be['build_hashed_id']);if(_0x4e8788['hoMff'](isTestObservabilitySession)){process[_0x4e626c(0x257)][_0x4e626c(0x1fa)]=_0x4e8788['Txsqo'];if(_0x24c1be['jwt']){process[_0x4e626c(0x257)][_0x4e626c(0x248)]=_0x24c1be['jwt'];const _0x30eb8f={};_0x30eb8f['username']=_0x5a2bbe,_0x30eb8f[_0x4e626c(0x23e)]=_0x4563f8,process[_0x4e626c(0x257)]['CREDENTIALS_FOR_CRASH_REPORTING']=JSON[_0x4e626c(0x22c)](_0x30eb8f);}_0x24c1be[_0x4e626c(0x201)]&&(process[_0x4e626c(0x257)][_0x4e626c(0x1d5)]=_0x24c1be[_0x4e626c(0x201)]),_0x24c1be[_0x4e626c(0x250)]&&(process[_0x4e626c(0x257)][_0x4e626c(0x20e)]=_0x24c1be[_0x4e626c(0x250)][_0x4e626c(0x1fd)]());}return[_0x550731[_0x4e626c(0x1fe)][_0x4e626c(0x1e2)],_0x550731[_0x4e626c(0x1fe)][_0x4e626c(0x201)],_0x550731[_0x4e626c(0x1fe)][_0x4e626c(0x250)]];}catch(_0x3ca0dc){process['env'][_0x4e626c(0x232)]=_0x4e8788[_0x4e626c(0x1de)],process['env'][_0x4e626c(0x1fa)]=_0x4e8788[_0x4e626c(0x24b)],process['env'][_0x4e626c(0x248)]=_0x4e8788[_0x4e626c(0x1de)],process[_0x4e626c(0x257)][_0x4e626c(0x1d5)]=_0x4e8788[_0x4e626c(0x1de)],process[_0x4e626c(0x257)][_0x4e626c(0x20e)]=_0x4e8788[_0x4e626c(0x1de)];_0x3ca0dc['response']?_0x4e8788[_0x4e626c(0x1f3)](debug,_0x4e626c(0x1f4)+_0x3ca0dc[_0x4e626c(0x23b)][_0x4e626c(0x21d)]+'\x20'+_0x3ca0dc[_0x4e626c(0x23b)][_0x4e626c(0x22f)]+'\x20'+JSON['stringify'](_0x3ca0dc[_0x4e626c(0x23b)][_0x4e626c(0x1fe)])):_0x4e8788[_0x4e626c(0x24a)](debug,_0x4e626c(0x1f4)+(_0x3ca0dc[_0x4e626c(0x269)]||_0x3ca0dc));if(_0x3ca0dc&&_0x3ca0dc[_0x4e626c(0x269)]){const _0x1e5b59=_0x3ca0dc[_0x4e626c(0x269)];switch(_0x3ca0dc[_0x4e626c(0x229)]){case _0x4e8788[_0x4e626c(0x247)]:logger[_0x4e626c(0x1e9)](_0x1e5b59);break;case _0x4e8788[_0x4e626c(0x225)]:logger[_0x4e626c(0x252)](_0x1e5b59);break;case _0x4e8788[_0x4e626c(0x246)]:logger[_0x4e626c(0x1e9)](_0x1e5b59);break;default:logger[_0x4e626c(0x1e9)](_0x1e5b59);}}else console['info'](_0x4e626c(0x258)+_0x3ca0dc);return[null,null,null];}}static async[a86_0x2922d9(0x243)](){const _0x34c1e4=a86_0x2922d9,_0x392e5a={'IAjaJ':'true','wQFbd':_0x34c1e4(0x20b),'EWwiC':function(_0x224642,_0x1c9ecf){return _0x224642(_0x1c9ecf);}},_0x2c3ff0=process[_0x34c1e4(0x257)]['BS_TESTOPS_BUILD_COMPLETED'];if([_0x392e5a[_0x34c1e4(0x20c)],_0x392e5a['wQFbd']]['includes'](_0x2c3ff0))return;while([_0x392e5a[_0x34c1e4(0x20c)],_0x392e5a[_0x34c1e4(0x1e5)]][_0x34c1e4(0x1f1)](_0x2c3ff0)){await _0x392e5a[_0x34c1e4(0x253)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static async['uploadEventData'](_0x4b0e68,_0x236155=0x0){const _0x521f71=a86_0x2922d9,_0x3f0456={'IToGo':function(_0x24d0db,_0x7947bf){return _0x24d0db+_0x7947bf;},'FnALT':_0x521f71(0x1ef),'DbhDg':_0x521f71(0x25b),'gaTAX':_0x521f71(0x1e6),'jUxQC':_0x521f71(0x263),'qCCOU':_0x521f71(0x23f),'tgutU':'Hook_End_Upload','tIamu':_0x521f71(0x21f),'YwHdg':function(_0x2656c3,_0x4d8aaf){return _0x2656c3(_0x4d8aaf);},'OfTIt':_0x521f71(0x1f2),'eVzVV':_0x521f71(0x1e1),'CRCdH':_0x521f71(0x1d4),'aLjrk':function(_0x4f10f4,_0x4b43d1,_0x14c8c4){return _0x4f10f4(_0x4b43d1,_0x14c8c4);},'TDXQX':'uploadEventData','ZCdiB':function(_0x201622,_0x42dcbc){return _0x201622===_0x42dcbc;},'ArpXc':function(_0x31e270,_0x184422){return _0x31e270!==_0x184422;},'zdfji':'null','afzXQ':function(_0x16eb75,_0x2ed9f5){return _0x16eb75===_0x2ed9f5;},'togQY':_0x521f71(0x1ee),'qEvDP':function(_0x337a28){return _0x337a28();},'KjkXR':function(_0x114eac,_0x4b5b72){return _0x114eac-_0x4b5b72;},'klHje':_0x521f71(0x1e9),'QbPlR':_0x521f71(0x1e0),'ncfJd':_0x521f71(0x268),'DNVDs':function(_0xc830c8,_0x47afff,_0x52ca32,_0xc26f44,_0x4ec737){return _0xc830c8(_0x47afff,_0x52ca32,_0xc26f44,_0x4ec737);},'ELjdK':_0x521f71(0x222),'KtGIf':function(_0x4b2a62,_0x5df111){return _0x4b2a62(_0x5df111);},'eXPEC':function(_0x8edfb8,_0x2d7588){return _0x8edfb8!==_0x2d7588;},'rRept':_0x521f71(0x23c),'ZXBgn':function(_0x46c2be,_0x5df7bb){return _0x46c2be-_0x5df7bb;},'kPbvM':function(_0x5050bc,_0x5ab5f1){return _0x5050bc===_0x5ab5f1;},'smJtL':'api/v1/event','NoMOa':_0x521f71(0x244),'MiUtW':function(_0x29cc1a,_0x189d07){return _0x29cc1a!==_0x189d07;},'KgOYz':function(_0x961085,_0x405575){return _0x961085===_0x405575;},'vsZvX':function(_0x23b8e1,_0x65c707){return _0x23b8e1>=_0x65c707;},'qUPBg':function(_0x244ff6,_0xc2c031){return _0x244ff6(_0xc2c031);},'jRJtW':function(_0x271ccc,_0x233177){return _0x271ccc!==_0x233177;},'XkmrT':_0x521f71(0x1e7),'dAyTA':'false','DNpde':function(_0x1de01e,_0x23c405,_0xc79d03){return _0x1de01e(_0x23c405,_0xc79d03);}},_0x3eeee6={};_0x3eeee6[_0x521f71(0x261)]=_0x3f0456[_0x521f71(0x1df)],_0x3eeee6[_0x521f71(0x238)]=_0x3f0456[_0x521f71(0x203)],_0x3eeee6[_0x521f71(0x219)]=_0x3f0456[_0x521f71(0x1d6)],_0x3eeee6[_0x521f71(0x267)]=_0x3f0456[_0x521f71(0x1ff)],_0x3eeee6[_0x521f71(0x24f)]=_0x3f0456[_0x521f71(0x205)],_0x3eeee6['HookRunFinished']=_0x3f0456['tgutU'],_0x3eeee6[_0x521f71(0x237)]=_0x3f0456['tIamu'];const _0x3bf7d4=_0x3eeee6[_0x4b0e68[_0x521f71(0x1dd)]];_0x3f0456[_0x521f71(0x207)](trace,'Processing\x20event\x20-\x20\x27'+_0x4b0e68[_0x521f71(0x1dd)]+'\x27\x20'+(bsSetupHelper['nestedKeyValue'](_0x4b0e68,[_0x3f0456['OfTIt'],_0x3f0456[_0x521f71(0x1fb)]])||bsSetupHelper[_0x521f71(0x20d)](_0x4b0e68,[_0x3f0456[_0x521f71(0x217)],_0x3f0456[_0x521f71(0x1fb)]])));if(!_0x3f0456[_0x521f71(0x241)](shouldProcessEventForTesthub,_0x4b0e68['event_type'],_0x3f0456['TDXQX']))return;_0x3f0456['ZCdiB'](_0x236155,0x0)&&process[_0x521f71(0x257)][_0x521f71(0x26c)]&&_0x3f0456[_0x521f71(0x200)](process[_0x521f71(0x257)][_0x521f71(0x26c)],_0x3f0456[_0x521f71(0x21a)])&&(this[_0x521f71(0x255)][_0x521f71(0x25d)]+=0x1);if(_0x3f0456[_0x521f71(0x221)](process[_0x521f71(0x257)][_0x521f71(0x1fa)],_0x3f0456['togQY'])||process[_0x521f71(0x257)][_0x521f71(0x24c)]||_0x3f0456[_0x521f71(0x1d8)](isPercyBuild)){if(_0x3f0456['ZCdiB'](process[_0x521f71(0x257)][_0x521f71(0x26c)],_0x3f0456[_0x521f71(0x21a)])){_0x3f0456[_0x521f71(0x207)](debug,_0x521f71(0x249)+_0x3bf7d4+_0x521f71(0x1d3)),this['requestQueueHandler']['pendingUploads']=Math[_0x521f71(0x21b)](0x0,_0x3f0456['KjkXR'](this[_0x521f71(0x255)][_0x521f71(0x25d)],0x1));const _0x10cbc8={};return _0x10cbc8[_0x521f71(0x21d)]=_0x3f0456[_0x521f71(0x1f5)],_0x10cbc8[_0x521f71(0x269)]=_0x3f0456[_0x521f71(0x1e8)],_0x10cbc8;}let _0x1e4b19=_0x4b0e68,_0x5da3a5=EVENT_ENDPOINT;this[_0x521f71(0x255)][_0x521f71(0x239)]();const {shouldProceed:_0x9f8810,proceedWithData:_0x3e2f7e,proceedWithUrl:_0x337e8c}=this[_0x521f71(0x255)]['add'](_0x4b0e68);if(!_0x9f8810)return;else _0x3e2f7e&&(_0x1e4b19=_0x3e2f7e,_0x5da3a5=_0x337e8c);const _0x3e53b5={};_0x3e53b5[_0x521f71(0x1d2)]='Bearer\x20'+process[_0x521f71(0x257)][_0x521f71(0x26c)],_0x3e53b5[_0x521f71(0x234)]=_0x3f0456[_0x521f71(0x266)],_0x3e53b5[_0x521f71(0x22a)]=_0x3f0456[_0x521f71(0x25a)];const _0x43f6a9={};_0x43f6a9[_0x521f71(0x236)]=_0x3e53b5;const _0x2772e7=_0x43f6a9;try{const _0x1dc71a=await _0x3f0456[_0x521f71(0x224)](nodeRequest,_0x3f0456[_0x521f71(0x204)],_0x5da3a5,_0x1e4b19,_0x2772e7);if(_0x1dc71a[_0x521f71(0x1fe)][_0x521f71(0x1e9)]){const _0x20c847={};_0x20c847[_0x521f71(0x269)]=_0x1dc71a[_0x521f71(0x1fe)]['error'];throw _0x20c847;}else{_0x3f0456[_0x521f71(0x1d9)](debug,(_0x3f0456[_0x521f71(0x26d)](_0x5da3a5,this['requestQueueHandler'][_0x521f71(0x233)])?_0x3bf7d4:_0x3f0456[_0x521f71(0x226)])+'['+_0x236155+_0x521f71(0x228)),this['requestQueueHandler'][_0x521f71(0x25d)]=Math[_0x521f71(0x21b)](0x0,_0x3f0456[_0x521f71(0x25c)](this[_0x521f71(0x255)][_0x521f71(0x25d)],_0x3f0456['kPbvM'](_0x5da3a5,_0x3f0456[_0x521f71(0x24e)])?0x1:_0x1e4b19[_0x521f71(0x1dc)]));const _0x5db0fe={};return _0x5db0fe[_0x521f71(0x21d)]=_0x3f0456['NoMOa'],_0x5db0fe[_0x521f71(0x269)]='',_0x5db0fe;}}catch(_0x5b7d61){_0x5b7d61['response']?_0x3f0456[_0x521f71(0x1d9)](debug,_0x521f71(0x249)+(_0x3f0456[_0x521f71(0x26d)](_0x5da3a5,this[_0x521f71(0x255)][_0x521f71(0x233)])?_0x3bf7d4:_0x3f0456[_0x521f71(0x226)])+_0x521f71(0x210)+_0x5b7d61[_0x521f71(0x23b)][_0x521f71(0x21d)]+'\x20'+_0x5b7d61[_0x521f71(0x23b)][_0x521f71(0x22f)]+'\x20'+JSON[_0x521f71(0x22c)](_0x5b7d61[_0x521f71(0x23b)][_0x521f71(0x1fe)])):_0x3f0456['KtGIf'](debug,_0x521f71(0x249)+(_0x3f0456[_0x521f71(0x264)](_0x5da3a5,this[_0x521f71(0x255)]['eventUrl'])?_0x3bf7d4:_0x3f0456[_0x521f71(0x226)])+_0x521f71(0x210)+(_0x5b7d61[_0x521f71(0x269)]||_0x5b7d61));this['requestQueueHandler'][_0x521f71(0x25d)]=Math[_0x521f71(0x21b)](0x0,_0x3f0456[_0x521f71(0x25c)](this['requestQueueHandler'][_0x521f71(0x25d)],_0x3f0456[_0x521f71(0x22e)](_0x5da3a5,_0x3f0456['smJtL'])?0x1:_0x1e4b19['length']));const _0xf5775d={};return _0xf5775d[_0x521f71(0x21d)]=_0x3f0456[_0x521f71(0x1f5)],_0xf5775d['message']=_0x5b7d61[_0x521f71(0x269)]||(_0x5b7d61[_0x521f71(0x23b)]?_0x5b7d61[_0x521f71(0x23b)][_0x521f71(0x21d)]+':'+_0x5b7d61[_0x521f71(0x23b)]['statusText']:_0x5b7d61),_0xf5775d;}}else{if(_0x3f0456['vsZvX'](_0x236155,0x5)){_0x3f0456[_0x521f71(0x214)](debug,'EXCEPTION\x20IN\x20'+_0x3bf7d4+_0x521f71(0x212)+_0x3bf7d4+_0x521f71(0x22b));_0x3f0456['jRJtW'](process[_0x521f71(0x257)][_0x521f71(0x26c)],_0x3f0456[_0x521f71(0x21a)])&&(this[_0x521f71(0x255)][_0x521f71(0x25d)]=Math[_0x521f71(0x21b)](0x0,_0x3f0456['KjkXR'](this[_0x521f71(0x255)][_0x521f71(0x25d)],0x1)));const _0x418045={};return _0x418045[_0x521f71(0x21d)]=_0x3f0456[_0x521f71(0x1f5)],_0x418045['message']=_0x3f0456['XkmrT'],_0x418045;}else _0x3f0456[_0x521f71(0x264)](process['env'][_0x521f71(0x1fa)],_0x3f0456[_0x521f71(0x206)])&&_0x3f0456[_0x521f71(0x208)](setTimeout,()=>{const _0x2cfd39=_0x521f71;this[_0x2cfd39(0x227)](_0x4b0e68,_0x3f0456['IToGo'](_0x236155,0x1));},0x3e8);}}}module['exports']=SessionHandler;
|