browserstack-node-sdk 1.55.5 → 1.55.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/generated/sdk-messages_pb.d.ts +40 -0
- package/generated/sdk-messages_pb.js +322 -2
- package/package.json +2 -2
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.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.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.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/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.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/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.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/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.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/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.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/accessibilityRetryHelper.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/caCertHelper.js +1 -0
- 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/classLogger.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/metadata.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/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.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/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.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 a132_0x2b7818=a132_0x3496;function a132_0x1a3c(){const _0x41453a=['hfmrO','Performance\x20report\x20is\x20at\x20','rYNOg','5554RObSMs','pushErrors','performance-own.html','generateJSON','BROWSERSTACK_SDK_INSTRUMENTATION','getPerformance','measureWrapper','wkDtA','function','Error\x20in\x20writing\x20html\x20','EjtBr','ggryb','worker','appendFileSync','_measureEvents','uyBYi','neBCC','BUfzN','/performance-report-','bQWKs','key-metrics.json','Error\x20processing\x20key-metrics.json:\x20%s','getCleanedPerfEvents','push','apply','YORWO','BdCYF','readdir','error\x20in\x20measure\x20','_errorEvents','stopMonitoring','10928610jUHLNP','__platformCaps','errorReportDirName','rjqwR','Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','</tbody></table></body></html>','ZZNQD','map','cwd','errorReportFileName','code','observe','end','match','disconnect','finalizeErrors','BXgdc','details','HuDGl','catch','all','DPTrb','GjtcV','523nlSwas','splice','debug','readFileSync','Time\x20for\x20','FVyjt','-end','DuuOh','\x20for\x20all\x20processes\x20is\x20','env','finalizePerfMeasures','_observer','549609YLWyxW','errorFile','jsonReportDirName','fAfst','stringify','-start','entryTypes','duration','MAwJh','</td><td>','util','captureError','syEri','concat','yUIuu','<tr><td>','WZAAo','dSkDv','F_OK','_events','jsonReportDirPath','isEnabled','dEeiO','toString','started','measure','flat','MbWEo','entryType','Error\x20stopping\x20monitoring\x20','getEntries','exports','info','unlinkSync','25466120npJmiz','meta','mark','format','Error\x20while\x20removing\x20files:\x20','message','11846600zqSAQn','VyEiz','browserStackCwd','AqlVp','utf-8','isArray','readFile','ObmBC','11haeUgZ','KVKLW','stopAndGenerate','calculateTimeFromEvents','OQHMT','generateHTMLReport','QxScj','writeFileSync','slice','existsSync','HJZFt','UfRxH','stack','314923QDrjdM','KJJnU','parse','start','path','pushPerfMeasures','reduce','tDxAy','constants','waasH','/error-report-','HAKUA','15HVJsxS','../logger','FhcPJ','errors','name','failure','forEach','eventsMap','VIHLG','.json','key-metrics.json\x20file\x20not\x20found,\x20skipping\x20processing\x20for\x20event\x20for\x20cli.','eCAfP','length','startMonitoring','toJSON','then','jsonReportFileName','join','getEventsFromJSON','KiTcn','measures','resolve','2645586LmAXot','assign','writeFile','winstonLogger','BfogK','jtnBM','buffered','</td></tr>','dBIqF','28IwYNZF','finalize'];a132_0x1a3c=function(){return _0x41453a;};return a132_0x1a3c();}(function(_0x1d2815,_0x3abd56){const _0xb04bca=a132_0x3496,_0xee665e=_0x1d2815();while(!![]){try{const _0x24c610=parseInt(_0xb04bca(0x166))/0x1*(-parseInt(_0xb04bca(0x130))/0x2)+parseInt(_0xb04bca(0x172))/0x3*(parseInt(_0xb04bca(0x12b))/0x4)+-parseInt(_0xb04bca(0x10c))/0x5*(parseInt(_0xb04bca(0x122))/0x6)+parseInt(_0xb04bca(0x100))/0x7+-parseInt(_0xb04bca(0x19a))/0x8+parseInt(_0xb04bca(0x14f))/0x9+-parseInt(_0xb04bca(0x194))/0xa*(-parseInt(_0xb04bca(0xf3))/0xb);if(_0x24c610===_0x3abd56)break;else _0xee665e['push'](_0xee665e['shift']());}catch(_0xb79aec){_0xee665e['push'](_0xee665e['shift']());}}}(a132_0x1a3c,0xcb343));const fs=require('fs'),fsPromise=require('fs/promises'),{performance,PerformanceObserver}=require('perf_hooks'),path=require(a132_0x2b7818(0x104)),util=require(a132_0x2b7818(0x17c)),logger=require(a132_0x2b7818(0x10d))[a132_0x2b7818(0x125)],{getLogDir}=require(a132_0x2b7818(0x10d)),{getProcessId,sleep,debug,getTestName}=require('../processHelper');class PerformanceTester{static [a132_0x2b7818(0x171)];static [a132_0x2b7818(0x185)]=[];static ['_measureEvents']=[];static [a132_0x2b7818(0x14d)]=[];static [a132_0x2b7818(0x18a)]=![];static [a132_0x2b7818(0x174)]='performance-report';static [a132_0x2b7818(0x151)]=process['env'][a132_0x2b7818(0x19c)]?path[a132_0x2b7818(0x11d)](process[a132_0x2b7818(0x16f)][a132_0x2b7818(0x19c)],'error-report'):path['join'](process[a132_0x2b7818(0x157)](),'error-report');static ['errorReportFileName']=this[a132_0x2b7818(0x151)]+a132_0x2b7818(0x10a)+getProcessId()+a132_0x2b7818(0x115);static ['details']={};static [a132_0x2b7818(0x113)]={};static[a132_0x2b7818(0x119)](_0x12f94d,_0x18677d=this[a132_0x2b7818(0x151)]+'/error-report-'+getProcessId()+a132_0x2b7818(0x115)){const _0x556cc0=a132_0x2b7818,_0x30b1a2={'OxqXD':function(_0x49b302,_0x5a374a){return _0x49b302===_0x5a374a;},'MbWEo':_0x556cc0(0x18b),'VIHLG':function(_0x28b81a){return _0x28b81a();},'poUto':function(_0x2a5607){return _0x2a5607();},'BUfzN':function(_0xe67a9e,_0x361320){return _0xe67a9e+_0x361320;},'bQWKs':_0x556cc0(0x153),'FhcPJ':_0x556cc0(0x138)};try{this[_0x556cc0(0x186)]=path[_0x556cc0(0x11d)](_0x30b1a2[_0x556cc0(0x114)](getLogDir),this['jsonReportDirName']),!_0x12f94d&&(_0x12f94d=this['jsonReportDirPath']+_0x556cc0(0x142)+_0x30b1a2['poUto'](getProcessId)+'.json'),!fs[_0x556cc0(0xfc)](this[_0x556cc0(0x186)])&&fs['mkdirSync'](this[_0x556cc0(0x186)]);}catch(_0x195cb4){logger[_0x556cc0(0x168)](_0x30b1a2[_0x556cc0(0x141)](_0x30b1a2[_0x556cc0(0x143)],_0x195cb4));}if(this[_0x556cc0(0x18a)]||!this[_0x556cc0(0x187)]())return;this['_observer']=new PerformanceObserver(_0x2dcfc3=>{const _0xf92fe8=_0x556cc0;_0x2dcfc3[_0xf92fe8(0x190)]()[_0xf92fe8(0x112)](_0x6d815d=>{const _0x48c244=_0xf92fe8;if(_0x30b1a2['OxqXD'](_0x6d815d[_0x48c244(0x18e)],_0x30b1a2[_0x48c244(0x18d)])){let _0x430b2f={};if(_0x6d815d[_0x48c244(0x11a)])_0x430b2f=_0x6d815d[_0x48c244(0x11a)]();else for(const _0x71d6b in _0x6d815d){_0x430b2f[_0x71d6b]=_0x6d815d[_0x71d6b];}this['details'][_0x6d815d['name']]&&(_0x430b2f=Object[_0x48c244(0x123)](_0x430b2f,this['details'][_0x6d815d[_0x48c244(0x110)]])),delete this['details'][_0x6d815d['name']],this[_0x48c244(0x13e)][_0x48c244(0x147)](_0x430b2f);}else this[_0x48c244(0x185)][_0x48c244(0x147)](_0x6d815d);});});const _0x3ac39e={};_0x3ac39e[_0x556cc0(0x128)]=!![],_0x3ac39e[_0x556cc0(0x178)]=[_0x30b1a2[_0x556cc0(0x10e)],_0x30b1a2[_0x556cc0(0x18d)]],this[_0x556cc0(0x171)][_0x556cc0(0x15a)](_0x3ac39e),this[_0x556cc0(0x18a)]=!![],this['jsonReportFileName']=_0x12f94d,this['errorReportFileName']=_0x18677d;}static[a132_0x2b7818(0x135)](){return performance;}static[a132_0x2b7818(0xf6)](_0x3c8c09,_0x175721){const _0x142c4a=a132_0x2b7818,_0x175f6a={};_0x175f6a[_0x142c4a(0x17a)]=function(_0x47975b,_0x1be6f8){return _0x47975b+_0x1be6f8;},_0x175f6a[_0x142c4a(0x161)]=function(_0x46cea5,_0x4183f4){return _0x46cea5||_0x4183f4;},_0x175f6a[_0x142c4a(0xfd)]=function(_0x1ac622,_0x25a9c9){return _0x1ac622===_0x25a9c9;};const _0x38217c=_0x175f6a,_0xacc9b9={};if(!_0x3c8c09||_0x38217c[_0x142c4a(0xfd)](_0x3c8c09[_0x142c4a(0x118)],0x0))return;_0x3c8c09['map'](_0x379be5=>{const _0x30d2ca=_0x142c4a;!_0xacc9b9[_0x379be5[_0x30d2ca(0x110)]]&&(_0xacc9b9[_0x379be5[_0x30d2ca(0x110)]]=0x0),_0xacc9b9[_0x379be5[_0x30d2ca(0x110)]]+=_0x379be5[_0x30d2ca(0x179)];});const _0x383c3=_0x175721['reduce']((_0x32b9cd,_0x32b303)=>{const _0x30fdc1=_0x142c4a;return _0x38217c[_0x30fdc1(0x17a)](_0xacc9b9[_0x32b303],_0x38217c[_0x30fdc1(0x161)](_0x32b9cd,0x0));},0x0);return _0x383c3;}static async['calculateTimesFromMultipleFiles'](_0x91a616,_0x4ac840){const _0x42835e=a132_0x2b7818,_0x17d54d={'VyEiz':function(_0x29597d,_0x37b242){return _0x29597d+_0x37b242;},'fAfst':function(_0x1fbf81,_0x27ea40){return _0x1fbf81||_0x27ea40;},'hfmrO':function(_0x42929,_0x3a8de4){return _0x42929===_0x3a8de4;},'UfRxH':function(_0x127e65,_0x46ab1b){return _0x127e65(_0x46ab1b);},'RiasL':function(_0x2c916d,_0x336856){return _0x2c916d(_0x336856);}};if(!_0x91a616||_0x17d54d[_0x42835e(0x12d)](_0x91a616['length'],0x0))return 0x0;const _0x2e4890=[];for(const _0x575461 of _0x91a616){const _0x30b458=path[_0x42835e(0x11d)]('.',_0x575461);try{const _0x202573=this[_0x42835e(0x11e)](_0x30b458);_0x202573[_0x42835e(0x156)](_0x1e6748=>{const _0x12b935=_0x42835e;!_0x2e4890[_0x1e6748['name']]&&(_0x2e4890[_0x1e6748[_0x12b935(0x110)]]=0x0),_0x2e4890[_0x1e6748[_0x12b935(0x110)]]+=_0x1e6748[_0x12b935(0x179)];});}catch(_0x461dff){_0x17d54d[_0x42835e(0xfe)](debug,'Error\x20in\x20doing\x20csv\x20operations:\x20'+_0x461dff['toString']());}}const _0x5e9e60=_0x4ac840[_0x42835e(0x106)]((_0x12c3ee,_0x5cc9aa)=>{const _0x212a2c=_0x42835e;return _0x17d54d[_0x212a2c(0x19b)](_0x2e4890[_0x5cc9aa],_0x17d54d[_0x212a2c(0x175)](_0x12c3ee,0x0));},0x0);return _0x17d54d['RiasL'](debug,_0x42835e(0x16a)+_0x4ac840+_0x42835e(0x16e)+_0x5e9e60),_0x5e9e60;}static[a132_0x2b7818(0x11e)](_0x386d85){const _0x17ca4f=a132_0x2b7818;if(_0x386d85){if(!fs['existsSync'](_0x386d85))return[];return JSON['parse'](fs[_0x17ca4f(0x169)](_0x386d85)['toString']());}}static async[a132_0x2b7818(0xf5)](_0x20f661=a132_0x2b7818(0x132),_0x4a6016=null){const _0x4a2b57=a132_0x2b7818,_0x3f6662={'NGXDB':function(_0x4d4e5d,_0x4b6fcd){return _0x4d4e5d(_0x4b6fcd);},'wkDtA':function(_0x81d666,_0x550677){return _0x81d666(_0x550677);},'DuuOh':function(_0x1ce01d,_0x3fe5d9){return _0x1ce01d(_0x3fe5d9);}};if(!this[_0x4a2b57(0x18a)])return;await _0x3f6662[_0x4a2b57(0x16d)](sleep,0x1e),this['_observer'][_0x4a2b57(0x15d)](),this['started']=![],this[_0x4a2b57(0x133)](this[_0x4a2b57(0x185)]);const _0x3e0344=this[_0x4a2b57(0xf8)](this[_0x4a2b57(0x185)]),_0x17928d=path[_0x4a2b57(0x11d)](process[_0x4a2b57(0x157)](),_0x20f661);fs[_0x4a2b57(0x124)](_0x17928d,_0x3e0344,_0x1cbda8=>{const _0x56130f=_0x4a2b57;if(_0x1cbda8){_0x3f6662['NGXDB'](debug,_0x56130f(0x139)+_0x1cbda8[_0x56130f(0x189)]());return;}_0x3f6662[_0x56130f(0x137)](debug,_0x56130f(0x12e)+_0x17928d);});if(_0x4a6016)return this['calculateTimeFromEvents'](this['_events'],_0x4a6016);}static['generateHTMLReport'](_0x4d7d5a){const _0x691bec=a132_0x2b7818,_0x4c7580={};_0x4c7580['YORWO']='<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>',_0x4c7580[_0x691bec(0x17e)]='<h1>Performance\x20Report</h1>',_0x4c7580[_0x691bec(0x12f)]='<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>',_0x4c7580[_0x691bec(0xf4)]=_0x691bec(0x154);const _0x28e61a=_0x4c7580;let _0x43d7eb=_0x28e61a[_0x691bec(0x149)];return _0x43d7eb+=_0x28e61a['syEri'],_0x43d7eb+=_0x28e61a[_0x691bec(0x12f)],_0x4d7d5a[_0x691bec(0x112)](_0x3aa0f8=>{const _0x49f949=_0x691bec;_0x43d7eb+=_0x49f949(0x181)+_0x3aa0f8[_0x49f949(0x110)]+_0x49f949(0x17b)+_0x3aa0f8[_0x49f949(0x179)]+_0x49f949(0x129);}),_0x43d7eb+=_0x28e61a['KVKLW'],_0x43d7eb;}static[a132_0x2b7818(0x133)](_0x31c1fe){const _0x16e0aa=a132_0x2b7818;if(!this['jsonReportFileName'])return;const _0x3df6b3={};_0x31c1fe['map'](_0x5bb697=>{const _0x18bc58=a132_0x3496;!_0x3df6b3[_0x5bb697[_0x18bc58(0x110)]]&&(_0x3df6b3[_0x5bb697['name']]=0x0),_0x3df6b3[_0x5bb697['name']]+=_0x5bb697[_0x18bc58(0x179)];});const _0x345ccd=Object['entries'](_0x3df6b3)[_0x16e0aa(0x156)](([_0x5a7fdc,_0x464a72])=>{const _0x527469=_0x16e0aa,_0x835997={};return _0x835997[_0x527469(0x110)]=_0x5a7fdc,_0x835997[_0x527469(0x179)]=_0x464a72,_0x835997;});fs[_0x16e0aa(0xfa)](this[_0x16e0aa(0x11c)],JSON[_0x16e0aa(0x176)](_0x345ccd));}static['isEnabled'](){const _0x3b0f2f=a132_0x2b7818,_0x4922e4={};_0x4922e4[_0x3b0f2f(0x165)]=function(_0x3365e1,_0x58b37c){return _0x3365e1===_0x58b37c;},_0x4922e4[_0x3b0f2f(0xf2)]='false';const _0x108cd6=_0x4922e4;return!_0x108cd6['GjtcV'](process[_0x3b0f2f(0x16f)][_0x3b0f2f(0x134)],_0x108cd6[_0x3b0f2f(0xf2)]);}static[a132_0x2b7818(0x18b)](_0x430c69,_0x1eddb2,_0x4ecf1c=null,_0x4358a9={},_0x4626b9=null){const _0x5b9d88=a132_0x2b7818,_0x46d8e3={'rjqwR':function(_0x326aa6,_0x5dadeb){return _0x326aa6(_0x5dadeb);},'lFHyM':function(_0x47103c,_0x54b19a){return _0x47103c(_0x54b19a);},'FVyjt':function(_0x514809,_0x2c3977){return _0x514809 instanceof _0x2c3977;}};try{if(this[_0x5b9d88(0x18a)]&&this['isEnabled']()){let _0x114c33=_0x430c69;_0x4ecf1c&&(_0x114c33=_0x430c69+'['+JSON['stringify'](_0x4ecf1c)+']');PerformanceTester[_0x5b9d88(0x103)](_0x114c33),this['details']&&(this[_0x5b9d88(0x160)][_0x114c33]=_0x4358a9);try{const _0x519bf0=_0x1eddb2[_0x5b9d88(0x148)](null,_0x4626b9);if(_0x46d8e3[_0x5b9d88(0x16b)](_0x519bf0,Promise))return new Promise((_0xab1d1,_0x214f19)=>{const _0x4f138c=_0x5b9d88;_0x519bf0[_0x4f138c(0x11b)](_0xa72b0d=>{const _0x367d84=_0x4f138c;PerformanceTester[_0x367d84(0x15b)](_0x114c33),_0x46d8e3[_0x367d84(0x152)](_0xab1d1,_0xa72b0d);})[_0x4f138c(0x162)](_0x43299f=>{const _0x19bbd4=_0x4f138c;PerformanceTester[_0x19bbd4(0x15b)](_0x114c33,![],util[_0x19bbd4(0x197)](_0x43299f)),_0x46d8e3['lFHyM'](_0x214f19,_0x43299f);});});;return PerformanceTester['end'](_0x114c33),_0x519bf0;}catch(_0x4786f9){PerformanceTester['end'](_0x114c33,![],util['format'](_0x4786f9));throw _0x4786f9;}};return _0x1eddb2['apply'](null,_0x4626b9);}catch(_0x45c768){return logger[_0x5b9d88(0x168)](_0x5b9d88(0x14c)+(_0x45c768[_0x5b9d88(0xff)]||_0x45c768[_0x5b9d88(0x199)]||_0x45c768)),_0x1eddb2[_0x5b9d88(0x148)](null,_0x4626b9);}}static[a132_0x2b7818(0x136)](_0x4c8114,_0x49ae5b,_0x479694={}){const _0x23782a=a132_0x2b7818,_0x118788={'neBCC':function(_0x499be5){return _0x499be5();}},_0x76374f=this;return _0x479694[_0x23782a(0x13c)]=_0x118788['neBCC'](getProcessId),_0x479694['testName']=_0x118788[_0x23782a(0x140)](getTestName),_0x479694['platform']=global[_0x23782a(0x150)]&&global[_0x23782a(0x150)]['index'],function(){const _0xa5faf0=_0x23782a,_0x52e8d3=[_0x4c8114,_0x49ae5b,null,_0x479694]['concat'](arguments);return _0x76374f[_0xa5faf0(0x18b)][_0xa5faf0(0x148)](_0x76374f,_0x52e8d3);};}static[a132_0x2b7818(0x146)](){const _0x4197bc=a132_0x2b7818,_0x1755d5=/(^.*)\[(.*)\]$/,_0x1ccc24={},_0x44a935={},_0x34d17f=[],_0x33db31=this[_0x4197bc(0x13e)][_0x4197bc(0x167)](0x0,this[_0x4197bc(0x13e)][_0x4197bc(0x118)]);for(const _0x175746 of _0x33db31){const _0x5316d9=_0x175746[_0x4197bc(0x110)][_0x4197bc(0x15c)](_0x1755d5),_0x30b746=Object[_0x4197bc(0x123)]({},_0x175746);_0x5316d9&&(_0x30b746[_0x4197bc(0x110)]=_0x5316d9[0x1],_0x30b746[_0x4197bc(0x195)]=JSON['parse'](_0x5316d9[0x2])),_0x34d17f['push'](_0x30b746);}return _0x34d17f;}static[a132_0x2b7818(0x105)](){const _0x4b7254=a132_0x2b7818,_0x53d4ac={'nfBxW':function(_0x2f1b40){return _0x2f1b40();},'ZZNQD':function(_0x37c9d0,_0x29a6ee){return _0x37c9d0+_0x29a6ee;},'KJJnU':_0x4b7254(0x198),'ggryb':function(_0x4d58ba,_0x1e3304){return _0x4d58ba===_0x1e3304;},'eCAfP':function(_0x28ea42,_0x415e4a){return _0x28ea42+_0x415e4a;}};try{this['jsonReportDirPath']=path[_0x4b7254(0x11d)](_0x53d4ac['nfBxW'](getLogDir),this[_0x4b7254(0x174)]);if(fs[_0x4b7254(0xfc)](this[_0x4b7254(0x186)])){const _0x169bd3=fs['readdirSync'](this[_0x4b7254(0x186)]);for(const _0x14d271 of _0x169bd3){fs['unlinkSync'](path['join'](this[_0x4b7254(0x186)],_0x14d271));}}}catch(_0x50bad0){logger['debug'](_0x53d4ac[_0x4b7254(0x155)](_0x53d4ac[_0x4b7254(0x101)],_0x50bad0));}if(_0x53d4ac[_0x4b7254(0x13b)](this[_0x4b7254(0x13e)][_0x4b7254(0x118)],0x0))return;const _0x599510=this[_0x4b7254(0x146)](),_0x5168b0=JSON[_0x4b7254(0x176)](_0x599510),_0x4a16b2=_0x53d4ac[_0x4b7254(0x117)](_0x5168b0[_0x4b7254(0xfb)](0x1,-0x1),',');fs['appendFileSync'](this['jsonReportFileName'],_0x4a16b2);}static async[a132_0x2b7818(0x170)](){const _0x5c092e=a132_0x2b7818,_0x4a222f={'BfogK':function(_0x131bf5){return _0x131bf5();},'TsYFE':function(_0x1a54f2,_0x36a0e2){return _0x1a54f2===_0x36a0e2;},'QxScj':_0x5c092e(0x144),'ExaJl':_0x5c092e(0xef),'OQHMT':'modified-key-metrics.json','EjtBr':function(_0x3df4a7,_0xbdb85b){return _0x3df4a7+_0xbdb85b;},'lQqKu':function(_0x62c80,_0x481c9c){return _0x62c80+_0x481c9c;},'AqlVp':_0x5c092e(0x145),'dEeiO':_0x5c092e(0x116),'waasH':'Error\x20in\x20getting\x20key-metrics.json\x20file:\x20%s','KiTcn':function(_0x4a1403,_0x3abcfd){return _0x4a1403>_0x3abcfd;}};this[_0x5c092e(0x186)]=path[_0x5c092e(0x11d)](_0x4a222f[_0x5c092e(0x126)](getLogDir),this[_0x5c092e(0x174)]);if(!this[_0x5c092e(0x18a)]||_0x4a222f['TsYFE'](this[_0x5c092e(0x13e)]['length'],0x0))return[];if(!fs[_0x5c092e(0xfc)](this['jsonReportDirPath']))return this[_0x5c092e(0x13e)];const _0x2e5bd7=(await fsPromise[_0x5c092e(0x14b)](this[_0x5c092e(0x186)]))[_0x5c092e(0x156)](_0x5aff6e=>path[_0x5c092e(0x121)](this['jsonReportDirPath'],_0x5aff6e));try{const _0x388bb6=path['dirname'](this[_0x5c092e(0x186)]),_0x39b130=path[_0x5c092e(0x11d)](_0x388bb6,_0x4a222f[_0x5c092e(0xf9)]);if(fs[_0x5c092e(0xfc)](_0x39b130))try{await fsPromise['access'](_0x39b130,fs[_0x5c092e(0x108)][_0x5c092e(0x184)]);const _0x5370bf=await fsPromise[_0x5c092e(0xf1)](_0x39b130,_0x4a222f['ExaJl']),_0x2578b4=JSON[_0x5c092e(0x102)](_0x5370bf),_0x18332a=path[_0x5c092e(0x11d)](this['jsonReportDirPath'],_0x4a222f[_0x5c092e(0xf7)]);let _0xefa3b7='';Array[_0x5c092e(0xf0)](_0x2578b4)?_0xefa3b7=_0x4a222f[_0x5c092e(0x13a)](_0x2578b4[_0x5c092e(0x156)](_0x42876d=>JSON[_0x5c092e(0x176)](_0x42876d))[_0x5c092e(0x11d)](','),','):_0xefa3b7=_0x4a222f['lQqKu'](JSON['stringify'](_0x2578b4),','),await fsPromise[_0x5c092e(0x124)](_0x18332a,_0xefa3b7),_0x2e5bd7[_0x5c092e(0x147)](_0x18332a),await fsPromise['unlink'](_0x39b130);}catch(_0xd4f606){logger['info'](util['format'](_0x4a222f[_0x5c092e(0xee)],_0xd4f606[_0x5c092e(0xff)]||_0xd4f606[_0x5c092e(0x199)]||_0xd4f606));}else logger[_0x5c092e(0x192)](_0x4a222f[_0x5c092e(0x188)]);}catch(_0x191492){logger['info'](util[_0x5c092e(0x197)](_0x4a222f[_0x5c092e(0x109)],_0x191492[_0x5c092e(0xff)]||_0x191492[_0x5c092e(0x199)]||_0x191492));}let _0x50e520=(await Promise[_0x5c092e(0x163)](_0x2e5bd7['map'](_0x2f2f78=>fsPromise[_0x5c092e(0xf1)](_0x2f2f78,_0x5c092e(0xef)))))[_0x5c092e(0x156)](_0x45f5e4=>'['+_0x45f5e4[_0x5c092e(0xfb)](0x0,-0x1)+']')[_0x5c092e(0x156)](_0x53d2de=>JSON[_0x5c092e(0x102)](_0x53d2de))[_0x5c092e(0x18c)]();return _0x4a222f[_0x5c092e(0x11f)](this[_0x5c092e(0x13e)][_0x5c092e(0x118)],0x0)&&(_0x50e520=_0x50e520[_0x5c092e(0x17f)](this[_0x5c092e(0x146)]())),this[_0x5c092e(0x171)][_0x5c092e(0x15d)](),_0x50e520;}static[a132_0x2b7818(0x131)](){const _0x3e1fbf=a132_0x2b7818,_0xb7bdad={};_0xb7bdad[_0x3e1fbf(0x182)]=function(_0x43370b,_0x54a502){return _0x43370b===_0x54a502;},_0xb7bdad[_0x3e1fbf(0x12a)]=function(_0x4eaae0,_0x2dfdf4){return _0x4eaae0+_0x2dfdf4;};const _0x421685=_0xb7bdad;if(_0x421685[_0x3e1fbf(0x182)](this[_0x3e1fbf(0x14d)]['length'],0x0))return;const _0xbcb94a=JSON[_0x3e1fbf(0x176)](this['_errorEvents']),_0x3964c2=_0x421685[_0x3e1fbf(0x12a)](_0xbcb94a['slice'](0x1,-0x1),',');fs[_0x3e1fbf(0x13d)](this[_0x3e1fbf(0x173)],_0x3964c2);}static[a132_0x2b7818(0x15e)](){const _0x240117=a132_0x2b7818,_0x5771b5={};_0x5771b5[_0x240117(0x164)]=function(_0x248c65,_0x3244da){return _0x248c65>_0x3244da;};const _0x37e657=_0x5771b5;if(this[_0x240117(0x158)]){if(!fs['existsSync'](this['errorReportFileName']))return this[_0x240117(0x14d)];let _0x16b156=fs[_0x240117(0x169)](this['errorReportFileName'])['toString']();_0x16b156='['+_0x16b156[_0x240117(0xfb)](0x0,-0x1)+']';let _0x69c3a=JSON['parse'](_0x16b156);return _0x37e657[_0x240117(0x164)](this[_0x240117(0x14d)][_0x240117(0x118)],0x0)&&(_0x69c3a=_0x69c3a[_0x240117(0x17f)](this[_0x240117(0x14d)])),fs[_0x240117(0x193)](this[_0x240117(0x158)]),_0x69c3a;}}static[a132_0x2b7818(0x17d)](_0x3a0020){const _0x346276=a132_0x2b7818;if(!this[_0x346276(0x187)]())return;this['_errorEvents']['push']({'message':_0x3a0020[_0x346276(0x199)],'trace':_0x3a0020[_0x346276(0xff)],'code':_0x3a0020[_0x346276(0x159)]||null,'time':new Date()});}static[a132_0x2b7818(0x14e)](){const _0x2882e3=a132_0x2b7818;try{if(!this[_0x2882e3(0x187)]())return;this[_0x2882e3(0x171)][_0x2882e3(0x15d)](),this[_0x2882e3(0x105)](),this[_0x2882e3(0x131)]();}catch(_0x24b82b){logger[_0x2882e3(0x168)](_0x2882e3(0x18f)+util['format'](_0x24b82b));}}static async[a132_0x2b7818(0x12c)](){const _0x38d80d=a132_0x2b7818,_0x591c1b={'tDxAy':function(_0x1496f8,_0x17e950){return _0x1496f8(_0x17e950);}};await _0x591c1b[_0x38d80d(0x107)](sleep,0x1e);const _0x2ad8fd=await this[_0x38d80d(0x170)](),_0x4a9aba=this[_0x38d80d(0x15e)]();if(!this[_0x38d80d(0x187)]()){const _0x788c5a={};return _0x788c5a[_0x38d80d(0x120)]=[],_0x788c5a[_0x38d80d(0x10f)]=[],_0x788c5a;}const _0xc04c91={};return _0xc04c91[_0x38d80d(0x120)]=_0x2ad8fd,_0xc04c91[_0x38d80d(0x10f)]=_0x4a9aba,_0xc04c91;}static[a132_0x2b7818(0x103)](_0x59522d){const _0x1c273b=a132_0x2b7818,_0x5e9735={};_0x5e9735[_0x1c273b(0x15f)]=function(_0x24b5d7,_0x440764){return _0x24b5d7+_0x440764;},_0x5e9735[_0x1c273b(0x180)]='-start';const _0x298185=_0x5e9735,_0x5146b5=_0x298185['BXgdc'](_0x59522d,_0x298185['yUIuu']);if(this[_0x1c273b(0x113)][_0x5146b5])return;performance[_0x1c273b(0x196)](_0x5146b5),this[_0x1c273b(0x113)][_0x5146b5]=0x1;}static[a132_0x2b7818(0x15b)](_0x5649c4,_0x12bffd=!![],_0x3d6821=null,_0x30fcbf={}){const _0x122a04=a132_0x2b7818,_0x1bc98c={'uyBYi':function(_0x574b51,_0xf1fd5b){return _0x574b51+_0xf1fd5b;},'HAKUA':_0x122a04(0x16c),'BdCYF':_0x122a04(0x177),'DmptN':function(_0x501989,_0x4bbb18){return _0x501989+_0x4bbb18;},'jtnBM':function(_0x59416d){return _0x59416d();},'dSkDv':function(_0x355ace){return _0x355ace();}};performance[_0x122a04(0x196)](_0x1bc98c[_0x122a04(0x13f)](_0x5649c4,_0x1bc98c['HAKUA'])),performance[_0x122a04(0x18b)](_0x5649c4,_0x1bc98c[_0x122a04(0x13f)](_0x5649c4,_0x1bc98c[_0x122a04(0x14a)]),_0x1bc98c[_0x122a04(0x13f)](_0x5649c4,_0x1bc98c[_0x122a04(0x10b)])),delete this[_0x122a04(0x113)][_0x1bc98c['DmptN'](_0x5649c4,_0x1bc98c[_0x122a04(0x14a)])];const _0x253e14={};_0x253e14['success']=_0x12bffd,_0x253e14[_0x122a04(0x111)]=_0x3d6821,this[_0x122a04(0x160)][_0x5649c4]=Object[_0x122a04(0x123)](_0x253e14,Object['assign'](Object[_0x122a04(0x123)]({'worker':_0x1bc98c[_0x122a04(0x127)](getProcessId),'platform':global[_0x122a04(0x150)]&&global[_0x122a04(0x150)]['index'],'testName':_0x1bc98c[_0x122a04(0x183)](getTestName)},_0x30fcbf),this[_0x122a04(0x160)][_0x5649c4]||{}));}}function a132_0x3496(_0xd20b6b,_0xab3b9c){const _0x1a3c4b=a132_0x1a3c();return a132_0x3496=function(_0x34963d,_0x557c35){_0x34963d=_0x34963d-0xee;let _0x34446a=_0x1a3c4b[_0x34963d];return _0x34446a;},a132_0x3496(_0xd20b6b,_0xab3b9c);}module[a132_0x2b7818(0x191)]=PerformanceTester;
|
|
1
|
+
const a133_0x19726e=a133_0x4f70;function a133_0x2b12(){const _0x767d9=['unlinkSync','Bggfi','match','GKphA','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','KSZwj','readdir','measures','Time\x20for\x20','index','apply','zKIqx','Error\x20while\x20removing\x20files:\x20','bVKkS','meta','generateHTMLReport','_observer','pmlAi','started','duration','errorReportFileName','EMdEg','WuemE','qTWoP','jycUL','292JJEPtN','toString','writeFile','testName','finalize','LnjJq','</tbody></table></body></html>','info','appendFileSync','GURGm','concat','F_OK','WBmvH','pushErrors','1087191lhrpOX','fs/promises','getEntries','calculateTimesFromMultipleFiles','isArray','error-report','function','Performance\x20report\x20is\x20at\x20','UOQpR','jsonReportDirName','12710jQOrIa','errors','stringify','RyaOr','path','buffered','aLVIU','name','getCleanedPerfEvents','errorFile','finalizeErrors','worker','_events','CQHUj','ucXkI','24251pOPCcZ','BULDa','Error\x20stopping\x20monitoring\x20','then','8zYYECJ','MlkBg','stopMonitoring','pushPerfMeasures','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','NtVhC','lnYCH','\x20for\x20all\x20processes\x20is\x20','assign','browserStackCwd','-start','mkdirSync','format','yKPzF','constants','util','vtwjq','isEnabled','4189380lbhgRm','mark','readFile','start','end','oUnDK','env','oZyPz','eHIze','resolve','fkNby','ypvGp','reduce','push','SNfpO','pttYG','rXkeS','key-metrics.json\x20file\x20not\x20found,\x20skipping\x20processing\x20for\x20event\x20for\x20cli.','getEventsFromJSON','message','_errorEvents','startMonitoring','Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','URVnV','CNtGq','Error\x20processing\x20key-metrics.json:\x20%s','646818PyRwnm','errorReportDirName','bvSBR','readdirSync','jsonReportFileName','disconnect','dwEOg','success','calculateTimeFromEvents','XYxIc','measureWrapper','debug','<tr><td>','length','slice','2071269YvcjUi','performance-own.html','</td></tr>','oAxFm','map','NYiRd','../logger','flat','stopAndGenerate','__platformCaps','unlink','key-metrics.json','modified-key-metrics.json','generateJSON','code','eventsMap','ovqOA','exports','vCqHj','_measureEvents','vZbGg','parse','entries','sgtwj','details','writeFileSync','Error\x20in\x20getting\x20key-metrics.json\x20file:\x20%s','/error-report-','<h1>Performance\x20Report</h1>','Error\x20in\x20writing\x20html\x20','2tpwaOh','catch','jsonReportDirPath','stack','join','ghhcu','1394970bIzmLz','forEach','PNYuw','failure','toJSON','false','.json','splice','existsSync','</td><td>','entryTypes','measure','DozkX','fEVGy'];a133_0x2b12=function(){return _0x767d9;};return a133_0x2b12();}(function(_0x4be98c,_0x2ebbe9){const _0x2c21f6=a133_0x4f70,_0x3d1ac4=_0x4be98c();while(!![]){try{const _0x108877=-parseInt(_0x2c21f6(0x260))/0x1*(parseInt(_0x2c21f6(0x20c))/0x2)+-parseInt(_0x2c21f6(0x1df))/0x3+parseInt(_0x2c21f6(0x239))/0x4*(parseInt(_0x2c21f6(0x251))/0x5)+parseInt(_0x2c21f6(0x212))/0x6+parseInt(_0x2c21f6(0x247))/0x7+parseInt(_0x2c21f6(0x264))/0x8*(parseInt(_0x2c21f6(0x1ee))/0x9)+-parseInt(_0x2c21f6(0x276))/0xa;if(_0x108877===_0x2ebbe9)break;else _0x3d1ac4['push'](_0x3d1ac4['shift']());}catch(_0x1c5a2e){_0x3d1ac4['push'](_0x3d1ac4['shift']());}}}(a133_0x2b12,0x23550));const fs=require('fs'),fsPromise=require(a133_0x19726e(0x248)),{performance,PerformanceObserver}=require('perf_hooks'),path=require(a133_0x19726e(0x255)),util=require(a133_0x19726e(0x273)),logger=require(a133_0x19726e(0x1f4))['winstonLogger'],{getLogDir}=require('../logger'),{getProcessId,sleep,debug,getTestName}=require('../processHelper');class PerformanceTester{static [a133_0x19726e(0x230)];static [a133_0x19726e(0x25d)]=[];static [a133_0x19726e(0x201)]=[];static [a133_0x19726e(0x1d9)]=[];static ['started']=![];static [a133_0x19726e(0x250)]='performance-report';static ['errorReportDirName']=process[a133_0x19726e(0x27c)][a133_0x19726e(0x26d)]?path['join'](process[a133_0x19726e(0x27c)][a133_0x19726e(0x26d)],a133_0x19726e(0x24c)):path['join'](process['cwd'](),a133_0x19726e(0x24c));static [a133_0x19726e(0x234)]=this[a133_0x19726e(0x1e0)]+a133_0x19726e(0x209)+getProcessId()+'.json';static [a133_0x19726e(0x206)]={};static [a133_0x19726e(0x1fd)]={};static[a133_0x19726e(0x1da)](_0x1295ea,_0x2bc396=this[a133_0x19726e(0x1e0)]+a133_0x19726e(0x209)+getProcessId()+a133_0x19726e(0x218)){const _0x1fc1c2=a133_0x19726e,_0x21ab92={'vCqHj':function(_0xda5ee5,_0x58a182){return _0xda5ee5===_0x58a182;},'eHIze':_0x1fc1c2(0x21d),'puCkw':function(_0x1b387f){return _0x1b387f();},'XYxIc':function(_0x5d82b7){return _0x5d82b7();},'rXkeS':function(_0x55986e,_0x1ae2be){return _0x55986e+_0x1ae2be;},'Bggfi':_0x1fc1c2(0x1db),'MlkBg':_0x1fc1c2(0x24d)};try{this['jsonReportDirPath']=path['join'](_0x21ab92['puCkw'](getLogDir),this['jsonReportDirName']),!_0x1295ea&&(_0x1295ea=this[_0x1fc1c2(0x20e)]+'/performance-report-'+_0x21ab92[_0x1fc1c2(0x1e8)](getProcessId)+_0x1fc1c2(0x218)),!fs['existsSync'](this['jsonReportDirPath'])&&fs[_0x1fc1c2(0x26f)](this[_0x1fc1c2(0x20e)]);}catch(_0x548860){logger[_0x1fc1c2(0x1ea)](_0x21ab92[_0x1fc1c2(0x286)](_0x21ab92[_0x1fc1c2(0x221)],_0x548860));}if(this['started']||!this[_0x1fc1c2(0x275)]())return;this[_0x1fc1c2(0x230)]=new PerformanceObserver(_0x155f96=>{const _0x36cf7a=_0x1fc1c2;_0x155f96[_0x36cf7a(0x249)]()[_0x36cf7a(0x213)](_0x1e9a4f=>{const _0x4e7e1f=_0x36cf7a;if(_0x21ab92[_0x4e7e1f(0x200)](_0x1e9a4f['entryType'],_0x21ab92[_0x4e7e1f(0x27e)])){let _0x234f92={};if(_0x1e9a4f[_0x4e7e1f(0x216)])_0x234f92=_0x1e9a4f[_0x4e7e1f(0x216)]();else for(const _0x43cc1d in _0x1e9a4f){_0x234f92[_0x43cc1d]=_0x1e9a4f[_0x43cc1d];}this['details'][_0x1e9a4f['name']]&&(_0x234f92=Object[_0x4e7e1f(0x26c)](_0x234f92,this[_0x4e7e1f(0x206)][_0x1e9a4f[_0x4e7e1f(0x258)]])),delete this['details'][_0x1e9a4f[_0x4e7e1f(0x258)]],this[_0x4e7e1f(0x201)][_0x4e7e1f(0x283)](_0x234f92);}else this[_0x4e7e1f(0x25d)][_0x4e7e1f(0x283)](_0x1e9a4f);});});const _0x15b9dd={};_0x15b9dd[_0x1fc1c2(0x256)]=!![],_0x15b9dd[_0x1fc1c2(0x21c)]=[_0x21ab92[_0x1fc1c2(0x265)],_0x21ab92['eHIze']],this['_observer']['observe'](_0x15b9dd),this[_0x1fc1c2(0x232)]=!![],this[_0x1fc1c2(0x1e3)]=_0x1295ea,this['errorReportFileName']=_0x2bc396;}static['getPerformance'](){return performance;}static[a133_0x19726e(0x1e7)](_0x12104b,_0x3d5824){const _0xb51e6e=a133_0x19726e,_0x373a6a={};_0x373a6a['ucXkI']=function(_0x1fbf55,_0x1cb44a){return _0x1fbf55+_0x1cb44a;},_0x373a6a[_0xb51e6e(0x214)]=function(_0x2263c3,_0x38285c){return _0x2263c3||_0x38285c;},_0x373a6a[_0xb51e6e(0x237)]=function(_0x41fbbc,_0x5e85dd){return _0x41fbbc===_0x5e85dd;};const _0x2403ec=_0x373a6a,_0x12ae76={};if(!_0x12104b||_0x2403ec[_0xb51e6e(0x237)](_0x12104b[_0xb51e6e(0x1ec)],0x0))return;_0x12104b[_0xb51e6e(0x1f2)](_0x57a252=>{const _0x317dd3=_0xb51e6e;!_0x12ae76[_0x57a252['name']]&&(_0x12ae76[_0x57a252[_0x317dd3(0x258)]]=0x0),_0x12ae76[_0x57a252[_0x317dd3(0x258)]]+=_0x57a252[_0x317dd3(0x233)];});const _0xf76268=_0x3d5824['reduce']((_0x5e90f1,_0x4b2ace)=>{const _0x4f2aa1=_0xb51e6e;return _0x2403ec[_0x4f2aa1(0x25f)](_0x12ae76[_0x4b2ace],_0x2403ec[_0x4f2aa1(0x214)](_0x5e90f1,0x0));},0x0);return _0xf76268;}static async[a133_0x19726e(0x24a)](_0xb9f916,_0x1754dd){const _0x4ade22=a133_0x19726e,_0xdb7297={'oZyPz':function(_0x31b5d3,_0x2cc233){return _0x31b5d3+_0x2cc233;},'xqxNt':function(_0x1ba51b,_0xfd38d6){return _0x1ba51b||_0xfd38d6;},'WpDNg':function(_0x3355a7,_0x55f779){return _0x3355a7===_0x55f779;},'GURGm':function(_0x346959,_0x1fccc0){return _0x346959(_0x1fccc0);}};if(!_0xb9f916||_0xdb7297['WpDNg'](_0xb9f916[_0x4ade22(0x1ec)],0x0))return 0x0;const _0x5da539=[];for(const _0x5cd817 of _0xb9f916){const _0x2fb5a=path['join']('.',_0x5cd817);try{const _0x5296c0=this[_0x4ade22(0x1d7)](_0x2fb5a);_0x5296c0['map'](_0x1d9805=>{const _0x4f642b=_0x4ade22;!_0x5da539[_0x1d9805[_0x4f642b(0x258)]]&&(_0x5da539[_0x1d9805[_0x4f642b(0x258)]]=0x0),_0x5da539[_0x1d9805[_0x4f642b(0x258)]]+=_0x1d9805[_0x4f642b(0x233)];});}catch(_0x511f3f){_0xdb7297[_0x4ade22(0x242)](debug,'Error\x20in\x20doing\x20csv\x20operations:\x20'+_0x511f3f[_0x4ade22(0x23a)]());}}const _0x13fe1d=_0x1754dd[_0x4ade22(0x282)]((_0xfae181,_0x474b18)=>{const _0x3f2e65=_0x4ade22;return _0xdb7297[_0x3f2e65(0x27d)](_0x5da539[_0x474b18],_0xdb7297['xqxNt'](_0xfae181,0x0));},0x0);return _0xdb7297[_0x4ade22(0x242)](debug,_0x4ade22(0x228)+_0x1754dd+_0x4ade22(0x26b)+_0x13fe1d),_0x13fe1d;}static[a133_0x19726e(0x1d7)](_0x4a7da4){const _0x130235=a133_0x19726e;if(_0x4a7da4){if(!fs[_0x130235(0x21a)](_0x4a7da4))return[];return JSON['parse'](fs['readFileSync'](_0x4a7da4)[_0x130235(0x23a)]());}}static async[a133_0x19726e(0x1f6)](_0x1e3689=a133_0x19726e(0x1ef),_0x37ddb0=null){const _0xc01f41=a133_0x19726e,_0x3185a1={'vFvLC':function(_0x2b3687,_0x420709){return _0x2b3687(_0x420709);},'vZbGg':function(_0x179e8c,_0x179cf6){return _0x179e8c(_0x179cf6);},'WuemE':function(_0x2eb461,_0x2d29ac){return _0x2eb461(_0x2d29ac);}};if(!this[_0xc01f41(0x232)])return;await _0x3185a1[_0xc01f41(0x236)](sleep,0x1e),this[_0xc01f41(0x230)][_0xc01f41(0x1e4)](),this[_0xc01f41(0x232)]=![],this[_0xc01f41(0x1fb)](this[_0xc01f41(0x25d)]);const _0x8f0fa6=this[_0xc01f41(0x22f)](this[_0xc01f41(0x25d)]),_0x3cc663=path[_0xc01f41(0x210)](process['cwd'](),_0x1e3689);fs[_0xc01f41(0x23b)](_0x3cc663,_0x8f0fa6,_0x1478e9=>{const _0x2dddd3=_0xc01f41;if(_0x1478e9){_0x3185a1['vFvLC'](debug,_0x2dddd3(0x20b)+_0x1478e9[_0x2dddd3(0x23a)]());return;}_0x3185a1[_0x2dddd3(0x202)](debug,_0x2dddd3(0x24e)+_0x3cc663);});if(_0x37ddb0)return this[_0xc01f41(0x1e7)](this['_events'],_0x37ddb0);}static[a133_0x19726e(0x22f)](_0x47a20c){const _0x391e02=a133_0x19726e,_0x318484={};_0x318484[_0x391e02(0x26a)]=_0x391e02(0x224),_0x318484[_0x391e02(0x1f1)]=_0x391e02(0x20a),_0x318484[_0x391e02(0x22b)]=_0x391e02(0x268),_0x318484['bVKkS']=_0x391e02(0x23f);const _0x3d110c=_0x318484;let _0x13a8cb=_0x3d110c[_0x391e02(0x26a)];return _0x13a8cb+=_0x3d110c[_0x391e02(0x1f1)],_0x13a8cb+=_0x3d110c[_0x391e02(0x22b)],_0x47a20c[_0x391e02(0x213)](_0x382221=>{const _0x214be4=_0x391e02;_0x13a8cb+=_0x214be4(0x1eb)+_0x382221[_0x214be4(0x258)]+_0x214be4(0x21b)+_0x382221[_0x214be4(0x233)]+_0x214be4(0x1f0);}),_0x13a8cb+=_0x3d110c[_0x391e02(0x22d)],_0x13a8cb;}static[a133_0x19726e(0x1fb)](_0x5700ad){const _0xa26363=a133_0x19726e;if(!this['jsonReportFileName'])return;const _0x1958cd={};_0x5700ad[_0xa26363(0x1f2)](_0x21535d=>{const _0x3dcb02=_0xa26363;!_0x1958cd[_0x21535d['name']]&&(_0x1958cd[_0x21535d['name']]=0x0),_0x1958cd[_0x21535d[_0x3dcb02(0x258)]]+=_0x21535d[_0x3dcb02(0x233)];});const _0x56b3ff=Object[_0xa26363(0x204)](_0x1958cd)[_0xa26363(0x1f2)](([_0x198ab0,_0x2a34cc])=>{const _0x2c8a4d=_0xa26363,_0x408368={};return _0x408368[_0x2c8a4d(0x258)]=_0x198ab0,_0x408368[_0x2c8a4d(0x233)]=_0x2a34cc,_0x408368;});fs[_0xa26363(0x207)](this['jsonReportFileName'],JSON[_0xa26363(0x253)](_0x56b3ff));}static[a133_0x19726e(0x275)](){const _0xe206f=a133_0x19726e,_0xcf253b={};_0xcf253b[_0xe206f(0x245)]=function(_0x247510,_0x4e198b){return _0x247510===_0x4e198b;},_0xcf253b[_0xe206f(0x1fe)]=_0xe206f(0x217);const _0xcceb93=_0xcf253b;return!_0xcceb93['WBmvH'](process[_0xe206f(0x27c)]['BROWSERSTACK_SDK_INSTRUMENTATION'],_0xcceb93[_0xe206f(0x1fe)]);}static[a133_0x19726e(0x21d)](_0x1348f0,_0x16125f,_0x1763e3=null,_0x3c4cc8={},_0x277dcd=null){const _0x409dc2=a133_0x19726e,_0x8b5563={'SNfpO':function(_0x49bc2f,_0x1a7c88){return _0x49bc2f(_0x1a7c88);},'Wsrag':function(_0x348897,_0x577acd){return _0x348897 instanceof _0x577acd;}};try{if(this[_0x409dc2(0x232)]&&this[_0x409dc2(0x275)]()){let _0x5825ad=_0x1348f0;_0x1763e3&&(_0x5825ad=_0x1348f0+'['+JSON[_0x409dc2(0x253)](_0x1763e3)+']');PerformanceTester[_0x409dc2(0x279)](_0x5825ad),this['details']&&(this[_0x409dc2(0x206)][_0x5825ad]=_0x3c4cc8);try{const _0x4cde2f=_0x16125f[_0x409dc2(0x22a)](null,_0x277dcd);if(_0x8b5563['Wsrag'](_0x4cde2f,Promise))return new Promise((_0x1caa6f,_0x3e419f)=>{const _0x23897b=_0x409dc2,_0x2a87af={'RyaOr':function(_0x4e0348,_0x2ed898){const _0x205295=a133_0x4f70;return _0x8b5563[_0x205295(0x284)](_0x4e0348,_0x2ed898);}};_0x4cde2f[_0x23897b(0x263)](_0x5e7f30=>{const _0x49c972=_0x23897b;PerformanceTester[_0x49c972(0x27a)](_0x5825ad),_0x8b5563[_0x49c972(0x284)](_0x1caa6f,_0x5e7f30);})[_0x23897b(0x20d)](_0x560fcb=>{const _0xacdb81=_0x23897b;PerformanceTester[_0xacdb81(0x27a)](_0x5825ad,![],util['format'](_0x560fcb)),_0x2a87af[_0xacdb81(0x254)](_0x3e419f,_0x560fcb);});});;return PerformanceTester[_0x409dc2(0x27a)](_0x5825ad),_0x4cde2f;}catch(_0x193ea9){PerformanceTester[_0x409dc2(0x27a)](_0x5825ad,![],util[_0x409dc2(0x270)](_0x193ea9));throw _0x193ea9;}};return _0x16125f[_0x409dc2(0x22a)](null,_0x277dcd);}catch(_0x3e61e7){return logger[_0x409dc2(0x1ea)]('error\x20in\x20measure\x20'+(_0x3e61e7['stack']||_0x3e61e7[_0x409dc2(0x1d8)]||_0x3e61e7)),_0x16125f['apply'](null,_0x277dcd);}}static[a133_0x19726e(0x1e9)](_0x13ce5e,_0x466bb8,_0x2ec8e1={}){const _0x35759a=a133_0x19726e,_0x2ac6c3={'UOQpR':function(_0x4a5e41){return _0x4a5e41();},'CQHUj':function(_0x10b984){return _0x10b984();}},_0xbd6477=this;return _0x2ec8e1[_0x35759a(0x25c)]=_0x2ac6c3[_0x35759a(0x24f)](getProcessId),_0x2ec8e1[_0x35759a(0x23c)]=_0x2ac6c3[_0x35759a(0x25e)](getTestName),_0x2ec8e1['platform']=global['__platformCaps']&&global[_0x35759a(0x1f7)][_0x35759a(0x229)],function(){const _0x2d2da1=_0x35759a,_0x4b76c3=[_0x13ce5e,_0x466bb8,null,_0x2ec8e1]['concat'](arguments);return _0xbd6477[_0x2d2da1(0x21d)]['apply'](_0xbd6477,_0x4b76c3);};}static[a133_0x19726e(0x259)](){const _0x3056b5=a133_0x19726e,_0x775c3a=/(^.*)\[(.*)\]$/,_0x177bdb={},_0x815ea9={},_0xf1c685=[],_0x4fe079=this[_0x3056b5(0x201)][_0x3056b5(0x219)](0x0,this[_0x3056b5(0x201)][_0x3056b5(0x1ec)]);for(const _0x2e7d00 of _0x4fe079){const _0x13a463=_0x2e7d00['name'][_0x3056b5(0x222)](_0x775c3a),_0x4c94c1=Object[_0x3056b5(0x26c)]({},_0x2e7d00);_0x13a463&&(_0x4c94c1[_0x3056b5(0x258)]=_0x13a463[0x1],_0x4c94c1[_0x3056b5(0x22e)]=JSON[_0x3056b5(0x203)](_0x13a463[0x2])),_0xf1c685[_0x3056b5(0x283)](_0x4c94c1);}return _0xf1c685;}static[a133_0x19726e(0x267)](){const _0x540a3c=a133_0x19726e,_0x4f7403={'EMdEg':function(_0x145846){return _0x145846();},'jycUL':function(_0x14ada4,_0x259039){return _0x14ada4+_0x259039;},'aLVIU':_0x540a3c(0x22c),'ypvGp':function(_0x797637,_0x4596a2){return _0x797637===_0x4596a2;},'bvSBR':function(_0x4b3420,_0x516e33){return _0x4b3420+_0x516e33;}};try{this[_0x540a3c(0x20e)]=path['join'](_0x4f7403[_0x540a3c(0x235)](getLogDir),this[_0x540a3c(0x250)]);if(fs[_0x540a3c(0x21a)](this[_0x540a3c(0x20e)])){const _0x1243c4=fs[_0x540a3c(0x1e2)](this['jsonReportDirPath']);for(const _0x570692 of _0x1243c4){fs[_0x540a3c(0x220)](path['join'](this['jsonReportDirPath'],_0x570692));}}}catch(_0x449f33){logger['debug'](_0x4f7403[_0x540a3c(0x238)](_0x4f7403[_0x540a3c(0x257)],_0x449f33));}if(_0x4f7403[_0x540a3c(0x281)](this['_measureEvents'][_0x540a3c(0x1ec)],0x0))return;const _0x5289d1=this[_0x540a3c(0x259)](),_0x5415d1=JSON['stringify'](_0x5289d1),_0x53d4c7=_0x4f7403[_0x540a3c(0x1e1)](_0x5415d1[_0x540a3c(0x1ed)](0x1,-0x1),',');fs[_0x540a3c(0x241)](this[_0x540a3c(0x1e3)],_0x53d4c7);}static async['finalizePerfMeasures'](){const _0x5e3598=a133_0x19726e,_0x13ae27={'URVnV':function(_0x8432b7){return _0x8432b7();},'fEVGy':function(_0x4d2946,_0x285522){return _0x4d2946===_0x285522;},'KSZwj':_0x5e3598(0x1f9),'DozkX':'utf-8','GKphA':_0x5e3598(0x1fa),'NtVhC':function(_0x18960a,_0x3e9e2c){return _0x18960a+_0x3e9e2c;},'CNtGq':_0x5e3598(0x1de),'fkNby':_0x5e3598(0x1d6),'NYiRd':_0x5e3598(0x208),'PlQgl':function(_0x27f315,_0x250d08){return _0x27f315>_0x250d08;}};this['jsonReportDirPath']=path[_0x5e3598(0x210)](_0x13ae27[_0x5e3598(0x1dc)](getLogDir),this[_0x5e3598(0x250)]);if(!this[_0x5e3598(0x232)]||_0x13ae27[_0x5e3598(0x21f)](this['_measureEvents'][_0x5e3598(0x1ec)],0x0))return[];if(!fs[_0x5e3598(0x21a)](this['jsonReportDirPath']))return this[_0x5e3598(0x201)];const _0x23d3ac=(await fsPromise[_0x5e3598(0x226)](this['jsonReportDirPath']))[_0x5e3598(0x1f2)](_0x843f56=>path[_0x5e3598(0x27f)](this[_0x5e3598(0x20e)],_0x843f56));try{const _0x54d95e=path['dirname'](this['jsonReportDirPath']),_0x2ee057=path['join'](_0x54d95e,_0x13ae27[_0x5e3598(0x225)]);if(fs[_0x5e3598(0x21a)](_0x2ee057))try{await fsPromise['access'](_0x2ee057,fs[_0x5e3598(0x272)][_0x5e3598(0x244)]);const _0x1678e5=await fsPromise[_0x5e3598(0x278)](_0x2ee057,_0x13ae27[_0x5e3598(0x21e)]),_0x57db83=JSON['parse'](_0x1678e5),_0x85c20b=path[_0x5e3598(0x210)](this[_0x5e3598(0x20e)],_0x13ae27[_0x5e3598(0x223)]);let _0x5a289a='';Array[_0x5e3598(0x24b)](_0x57db83)?_0x5a289a=_0x13ae27['NtVhC'](_0x57db83['map'](_0x4f9167=>JSON[_0x5e3598(0x253)](_0x4f9167))[_0x5e3598(0x210)](','),','):_0x5a289a=_0x13ae27[_0x5e3598(0x269)](JSON['stringify'](_0x57db83),','),await fsPromise[_0x5e3598(0x23b)](_0x85c20b,_0x5a289a),_0x23d3ac['push'](_0x85c20b),await fsPromise[_0x5e3598(0x1f8)](_0x2ee057);}catch(_0x2c12d4){logger[_0x5e3598(0x240)](util[_0x5e3598(0x270)](_0x13ae27[_0x5e3598(0x1dd)],_0x2c12d4[_0x5e3598(0x20f)]||_0x2c12d4['message']||_0x2c12d4));}else logger[_0x5e3598(0x240)](_0x13ae27[_0x5e3598(0x280)]);}catch(_0x238928){logger[_0x5e3598(0x240)](util[_0x5e3598(0x270)](_0x13ae27[_0x5e3598(0x1f3)],_0x238928[_0x5e3598(0x20f)]||_0x238928[_0x5e3598(0x1d8)]||_0x238928));}let _0x596fa5=(await Promise['all'](_0x23d3ac['map'](_0x39ff52=>fsPromise[_0x5e3598(0x278)](_0x39ff52,'utf-8'))))[_0x5e3598(0x1f2)](_0x175b30=>'['+_0x175b30['slice'](0x0,-0x1)+']')[_0x5e3598(0x1f2)](_0x5a6f11=>JSON[_0x5e3598(0x203)](_0x5a6f11))[_0x5e3598(0x1f5)]();return _0x13ae27['PlQgl'](this[_0x5e3598(0x201)]['length'],0x0)&&(_0x596fa5=_0x596fa5['concat'](this[_0x5e3598(0x259)]())),this[_0x5e3598(0x230)]['disconnect'](),_0x596fa5;}static[a133_0x19726e(0x246)](){const _0x29ba85=a133_0x19726e,_0x2bdb1a={};_0x2bdb1a['pttYG']=function(_0x20f63c,_0xb0ef1b){return _0x20f63c===_0xb0ef1b;},_0x2bdb1a['vtwjq']=function(_0x2b4671,_0x555fae){return _0x2b4671+_0x555fae;};const _0x11cc34=_0x2bdb1a;if(_0x11cc34[_0x29ba85(0x285)](this['_errorEvents'][_0x29ba85(0x1ec)],0x0))return;const _0x534d58=JSON['stringify'](this[_0x29ba85(0x1d9)]),_0x1d6d3a=_0x11cc34[_0x29ba85(0x274)](_0x534d58[_0x29ba85(0x1ed)](0x1,-0x1),',');fs[_0x29ba85(0x241)](this[_0x29ba85(0x25a)],_0x1d6d3a);}static[a133_0x19726e(0x25b)](){const _0x57976a=a133_0x19726e,_0x370303={};_0x370303[_0x57976a(0x231)]=function(_0x3e533e,_0x569e79){return _0x3e533e>_0x569e79;};const _0xa4f860=_0x370303;if(this[_0x57976a(0x234)]){if(!fs[_0x57976a(0x21a)](this[_0x57976a(0x234)]))return this[_0x57976a(0x1d9)];let _0x7cb2c5=fs['readFileSync'](this['errorReportFileName'])['toString']();_0x7cb2c5='['+_0x7cb2c5[_0x57976a(0x1ed)](0x0,-0x1)+']';let _0x46c49d=JSON[_0x57976a(0x203)](_0x7cb2c5);return _0xa4f860[_0x57976a(0x231)](this[_0x57976a(0x1d9)]['length'],0x0)&&(_0x46c49d=_0x46c49d[_0x57976a(0x243)](this['_errorEvents'])),fs[_0x57976a(0x220)](this[_0x57976a(0x234)]),_0x46c49d;}}static['captureError'](_0x50b5c6){const _0xeed8cd=a133_0x19726e;if(!this[_0xeed8cd(0x275)]())return;this['_errorEvents']['push']({'message':_0x50b5c6[_0xeed8cd(0x1d8)],'trace':_0x50b5c6['stack'],'code':_0x50b5c6[_0xeed8cd(0x1fc)]||null,'time':new Date()});}static[a133_0x19726e(0x266)](){const _0x3673a9=a133_0x19726e;try{if(!this[_0x3673a9(0x275)]())return;this[_0x3673a9(0x230)][_0x3673a9(0x1e4)](),this['pushPerfMeasures'](),this[_0x3673a9(0x246)]();}catch(_0x52e4d1){logger[_0x3673a9(0x1ea)](_0x3673a9(0x262)+util[_0x3673a9(0x270)](_0x52e4d1));}}static async[a133_0x19726e(0x23d)](){const _0x5ec03d=a133_0x19726e,_0x440e5d={'sgtwj':function(_0x5b3e27,_0x169a65){return _0x5b3e27(_0x169a65);}};await _0x440e5d[_0x5ec03d(0x205)](sleep,0x1e);const _0x49a784=await this['finalizePerfMeasures'](),_0x40fc38=this[_0x5ec03d(0x25b)]();if(!this['isEnabled']()){const _0x5047eb={};return _0x5047eb[_0x5ec03d(0x227)]=[],_0x5047eb[_0x5ec03d(0x252)]=[],_0x5047eb;}const _0x3f1fc6={};return _0x3f1fc6[_0x5ec03d(0x227)]=_0x49a784,_0x3f1fc6[_0x5ec03d(0x252)]=_0x40fc38,_0x3f1fc6;}static[a133_0x19726e(0x279)](_0x1a04b0){const _0x119bb2=a133_0x19726e,_0x22719a={};_0x22719a[_0x119bb2(0x271)]=function(_0x536b6a,_0x8b6b16){return _0x536b6a+_0x8b6b16;},_0x22719a['JOCMR']=_0x119bb2(0x26e);const _0x443fef=_0x22719a,_0xc1e10b=_0x443fef['yKPzF'](_0x1a04b0,_0x443fef['JOCMR']);if(this[_0x119bb2(0x1fd)][_0xc1e10b])return;performance[_0x119bb2(0x277)](_0xc1e10b),this[_0x119bb2(0x1fd)][_0xc1e10b]=0x1;}static[a133_0x19726e(0x27a)](_0x3d8abe,_0x158fff=!![],_0x1c3bbb=null,_0x1acc34={}){const _0x52a21d=a133_0x19726e,_0x5ced1f={'LnjJq':function(_0x272913,_0x154d2c){return _0x272913+_0x154d2c;},'BULDa':'-end','oUnDK':function(_0x3318b6,_0x402c47){return _0x3318b6+_0x402c47;},'YfXuP':'-start','dwEOg':function(_0x31274b,_0x3c2837){return _0x31274b+_0x3c2837;},'ghhcu':function(_0xd410e6){return _0xd410e6();}};performance['mark'](_0x5ced1f[_0x52a21d(0x23e)](_0x3d8abe,_0x5ced1f[_0x52a21d(0x261)])),performance[_0x52a21d(0x21d)](_0x3d8abe,_0x5ced1f[_0x52a21d(0x27b)](_0x3d8abe,_0x5ced1f['YfXuP']),_0x5ced1f[_0x52a21d(0x1e5)](_0x3d8abe,_0x5ced1f[_0x52a21d(0x261)])),delete this[_0x52a21d(0x1fd)][_0x5ced1f[_0x52a21d(0x1e5)](_0x3d8abe,_0x5ced1f['YfXuP'])];const _0x168bc6={};_0x168bc6[_0x52a21d(0x1e6)]=_0x158fff,_0x168bc6[_0x52a21d(0x215)]=_0x1c3bbb,this['details'][_0x3d8abe]=Object[_0x52a21d(0x26c)](_0x168bc6,Object[_0x52a21d(0x26c)](Object[_0x52a21d(0x26c)]({'worker':_0x5ced1f[_0x52a21d(0x211)](getProcessId),'platform':global['__platformCaps']&&global[_0x52a21d(0x1f7)][_0x52a21d(0x229)],'testName':_0x5ced1f[_0x52a21d(0x211)](getTestName)},_0x1acc34),this['details'][_0x3d8abe]||{}));}}function a133_0x4f70(_0x2e3491,_0x4dfcb4){const _0x2b1257=a133_0x2b12();return a133_0x4f70=function(_0x4f70f4,_0x3e43e5){_0x4f70f4=_0x4f70f4-0x1d6;let _0x59e0ba=_0x2b1257[_0x4f70f4];return _0x59e0ba;},a133_0x4f70(_0x2e3491,_0x4dfcb4);}module[a133_0x19726e(0x1ff)]=PerformanceTester;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a133_0x80b5f=a133_0x56be;(function(_0x5e0cb5,_0x2fc9be){const _0x42f340=a133_0x56be,_0x480a40=_0x5e0cb5();while(!![]){try{const _0x5ad5fd=-parseInt(_0x42f340(0x1e6))/0x1*(parseInt(_0x42f340(0x218))/0x2)+-parseInt(_0x42f340(0x1d3))/0x3*(parseInt(_0x42f340(0x1f5))/0x4)+-parseInt(_0x42f340(0x20e))/0x5+parseInt(_0x42f340(0x214))/0x6*(-parseInt(_0x42f340(0x21f))/0x7)+parseInt(_0x42f340(0x20f))/0x8+-parseInt(_0x42f340(0x220))/0x9*(-parseInt(_0x42f340(0x1c0))/0xa)+-parseInt(_0x42f340(0x1e3))/0xb*(-parseInt(_0x42f340(0x1c1))/0xc);if(_0x5ad5fd===_0x2fc9be)break;else _0x480a40['push'](_0x480a40['shift']());}catch(_0x198628){_0x480a40['push'](_0x480a40['shift']());}}}(a133_0x4889,0x4809a));const path=require(a133_0x80b5f(0x1e8)),util=require('util'),{importFileFromPWCore}=require(a133_0x80b5f(0x1dd)),helper=require('./helper'),logger=require('./logger')['winstonLogger'],W3CMapping=require(a133_0x80b5f(0x211))[a133_0x80b5f(0x1f1)](),constants=require(a133_0x80b5f(0x1ea)),BrowserstackCLI=require('../bin/v2/browserstackCLI'),CLIUtils=require(a133_0x80b5f(0x222));function a133_0x56be(_0x51e1a8,_0x4a4952){const _0x48893b=a133_0x4889();return a133_0x56be=function(_0x56beee,_0xf3d1a6){_0x56beee=_0x56beee-0x1bb;let _0x24dae0=_0x48893b[_0x56beee];return _0x24dae0;},a133_0x56be(_0x51e1a8,_0x4a4952);}function a133_0x4889(){const _0x48c624=['Requesting\x20modified\x20Playwright\x20config\x20from\x20gRPC\x20for\x20cucumberjs-pw','GtWmh','cliConfig','572334VcNYQD','warn','BROWSERSTACK_PRODUCT_MAP','HiHDr','[A11Y]\x20connectOverCDP\x20attempt\x20','env','dHwRt','platformCaps','framework','cucumberjs-pw','./helper','\x20for\x20','bXmbz','pIGbD','length','generatePlaywrightUrl','22TQYpXJ','projects','workers','1rhtLJO','use','path','playwrightConfigObject','../bin/utils/constants','mEiDk','AQBmq','getBrowserTypePath\x20is\x20deprecated,\x20use\x20importFileFromPWCore\x20instead','Hkvfh','BROWSERSTACK_TESTHUB_UUID','No\x20usable\x20capabilities\x20found\x20in\x20modified\x20config\x20response','W3CMapping','__accessibilityOptions','bstack:options','dpZWc','4tshZKp','config','browserType.js','parse','isArray','Detected\x20Playwright\x20version\x20','Received\x20modified\x20config\x20from\x20gRPC:\x20','SLcTQ','browserstack.accessibilityOptions.authToken','YfQVd','browserstack.accessibilityOptions.scannerProcessingTimeout','MOtrP','chrome','configPath','OTJBI','zMhlN','getConfig','getPlaywrightUrl','No\x20modified\x20config\x20received\x20from\x20gRPC','getPlaywrightModulePath','VCOnI','xFcFh','Could\x20not\x20import\x20GrpcClient:\x20','\x20failed\x20with\x20transient\x20error,\x20retrying\x20in\x20','client','587145TGHOrO','260592wfRdZI','kRcEC','./w3cMapping','BrowserType','stringify','1797414gwpSQW','getPlaywrightBrowserType','setBrowserstackConfig','entries','223518SAlmGt','Ucjho','error','qzghu','__platformCaps','browser','importFileFromPWCore','7IeesPR','333RfoAaT','aRgGQ','../bin/v2/cliUtils','hDVPK','browserstack.accessibilityOptions.wcagVersion','xyouT','JMsDW','getPlaywrightConfig','capabilities','jxjSx','QUGZs','RGNTl','Error\x20getting\x20modified\x20config\x20from\x20gRPC:\x20','getModifiedConfigFromCLI','lib','browserstack.testhubBuildUuid','getBrowserTypePath','message','./testhub/utils','FRAMEWORKS','setFrameworkDetail','Target\x20page,\x20context\x20or\x20browser\x20has\x20been\x20closed','oyICG','includes','BS_A11Y_JWT','debug','RKBMh','ylWLv','Error\x20getting\x20Playwright\x20BrowserType:\x20','convertW3CToJsonWire','Dxmho','Unable\x20to\x20merge\x20accessibility\x20capabilities\x20into\x20Playwright\x20URL\x20caps:\x20','zivfI','__launchCaps','amMeH','DBUpO','tACTh','bootstrap','join','131490mLkxZu','2973084nkeOXQ','format','aHeFz','TnXFf','GrpcClient\x20not\x20available,\x20skipping\x20modified\x20config\x20request','Converted\x20W3C\x20caps\x20to\x20JSONWire:\x20','apply','../bin/v2/grpcClient','getInstance','bHDve','connectOverCDP','\x20flow','getBrowserFromCaps','WNHiA','inUur'];a133_0x4889=function(){return _0x48c624;};return a133_0x4889();}let GrpcClient;try{GrpcClient=require(a133_0x80b5f(0x1c8));}catch(a133_0x142c56){logger[a133_0x80b5f(0x239)](a133_0x80b5f(0x20b)+a133_0x142c56['message']),GrpcClient=null;}const convertW3CToJsonWire=_0x4d7df1=>{const _0x3d7526=a133_0x80b5f,_0x486eb4={};_0x486eb4[_0x3d7526(0x22b)]=function(_0x29486b,_0x31e54c){return _0x29486b||_0x31e54c;},_0x486eb4[_0x3d7526(0x203)]=function(_0x4ea75b,_0x1b8539){return _0x4ea75b===_0x1b8539;},_0x486eb4[_0x3d7526(0x226)]=_0x3d7526(0x1f3),_0x486eb4[_0x3d7526(0x240)]=function(_0x1fa9e7,_0x190737){return _0x1fa9e7===_0x190737;},_0x486eb4[_0x3d7526(0x229)]=function(_0x452982,_0x46ea28){return _0x452982 in _0x46ea28;};const _0x1e348b=_0x486eb4,_0x534f0a={};for(const [_0x380f4e,_0x523372]of Object[_0x3d7526(0x217)](_0x1e348b[_0x3d7526(0x22b)](_0x4d7df1,{}))){if(_0x1e348b[_0x3d7526(0x203)](_0x380f4e,_0x1e348b['JMsDW']))continue;let _0x2d43d3=![];for(const [_0x613ea0,_0x5bf3d6]of Object['entries'](W3CMapping)){if(_0x1e348b[_0x3d7526(0x240)](_0x380f4e,_0x5bf3d6)){_0x534f0a[_0x613ea0]=_0x523372,_0x2d43d3=!![];break;}}!_0x2d43d3&&(_0x534f0a[_0x380f4e]=_0x523372);}const _0x47511b=_0x4d7df1[_0x1e348b[_0x3d7526(0x226)]]||{};for(const [_0x32950b,_0x155f7f]of Object[_0x3d7526(0x217)](_0x47511b)){let _0x40281b=![];for(const [_0x48c0ad,_0x3b2daa]of Object['entries'](W3CMapping)){if(_0x1e348b[_0x3d7526(0x203)](_0x32950b,_0x3b2daa)){_0x534f0a[_0x48c0ad]=_0x155f7f,_0x40281b=!![];break;}}!_0x40281b&&!_0x1e348b[_0x3d7526(0x229)](_0x32950b,_0x534f0a)&&(_0x534f0a[_0x32950b]=_0x155f7f);}return logger[_0x3d7526(0x239)](_0x3d7526(0x1c6)+JSON[_0x3d7526(0x213)](_0x534f0a)),_0x534f0a;},getModifiedConfigFromCLI=async _0x56935f=>{const _0x59aae4=a133_0x80b5f,_0x411b43={};_0x411b43[_0x59aae4(0x1d6)]=_0x59aae4(0x1c5),_0x411b43[_0x59aae4(0x1ce)]=_0x59aae4(0x1dc),_0x411b43[_0x59aae4(0x1bb)]=_0x59aae4(0x1d0),_0x411b43['AQBmq']=_0x59aae4(0x207),_0x411b43[_0x59aae4(0x1fe)]=function(_0x52f203,_0x4a5e23){return _0x52f203>_0x4a5e23;},_0x411b43['MOtrP']=_0x59aae4(0x1f0);const _0x5165d6=_0x411b43;try{if(!GrpcClient)return logger['debug'](_0x5165d6[_0x59aae4(0x1d6)]),null;const _0x250021={};_0x250021[_0x59aae4(0x228)]=_0x56935f,_0x250021[_0x59aae4(0x1db)]=_0x5165d6[_0x59aae4(0x1ce)],_0x250021[_0x59aae4(0x1e5)]=0x1,_0x250021['projects']=[];const _0xbf1e67=_0x250021;logger['debug'](_0x5165d6[_0x59aae4(0x1bb)]);const _0x158ca5={};_0x158ca5[_0x59aae4(0x1e9)]=_0xbf1e67;const _0x3d3f35=await GrpcClient['getInstance']()[_0x59aae4(0x227)](_0x158ca5);if(!_0x3d3f35['getConfig']())return logger[_0x59aae4(0x239)](_0x5165d6[_0x59aae4(0x1ec)]),null;const _0x38083d=JSON[_0x59aae4(0x1f8)](_0x3d3f35[_0x59aae4(0x205)]());logger['debug'](_0x59aae4(0x1fb)+JSON['stringify'](_0x38083d));if(_0x38083d['capabilities']&&Array[_0x59aae4(0x1f9)](_0x38083d[_0x59aae4(0x228)])&&_0x5165d6[_0x59aae4(0x1fe)](_0x38083d[_0x59aae4(0x228)][_0x59aae4(0x1e1)],0x0))return _0x38083d[_0x59aae4(0x228)][0x0];else{if(_0x38083d[_0x59aae4(0x1e4)]&&Array[_0x59aae4(0x1f9)](_0x38083d[_0x59aae4(0x1e4)])&&_0x5165d6[_0x59aae4(0x1fe)](_0x38083d['projects'][_0x59aae4(0x1e1)],0x0)){const _0xd1bd90=_0x38083d['projects'][0x0];if(_0xd1bd90[_0x59aae4(0x1e7)]&&_0xd1bd90['use'][_0x59aae4(0x1da)])return _0xd1bd90[_0x59aae4(0x1e7)][_0x59aae4(0x1da)];}}return logger[_0x59aae4(0x239)](_0x5165d6[_0x59aae4(0x200)]),null;}catch(_0x1c7caf){logger[_0x59aae4(0x21a)](_0x59aae4(0x22c)+_0x1c7caf[_0x59aae4(0x231)]);throw _0x1c7caf;}},generatePlaywrightUrl=(_0x4140c1,_0x1cdcd5)=>{const _0x37c31d=a133_0x80b5f,_0x4d5e21={'Dxmho':function(_0x342fca,_0x21fb99){return _0x342fca!==_0x21fb99;},'aHeFz':function(_0xf4cdb7,_0x925d48){return _0xf4cdb7!==_0x925d48;},'RKBMh':function(_0x15bada,_0x3a08aa){return _0x15bada!==_0x3a08aa;},'SLcTQ':function(_0x35ca1d,_0x2d8c6b){return _0x35ca1d(_0x2d8c6b);},'bHDve':function(_0x1e2b73,_0x167343){return _0x1e2b73||_0x167343;},'TnXFf':_0x37c31d(0x1fd),'zJPYr':function(_0x7332ad,_0x348b66){return _0x7332ad(_0x348b66);},'oyICG':_0x37c31d(0x224),'mEiDk':'browserstack.accessibilityOptions.scannerVersion','SYlOM':function(_0x398461,_0x1e2286){return _0x398461(_0x1e2286);},'inUur':_0x37c31d(0x1ff),'qzghu':_0x37c31d(0x22f),'pIGbD':'browserstack.buildProductMap','OXrAu':function(_0x5ddf26,_0x480b9e){return _0x5ddf26+_0x480b9e;}},_0x13f11c=helper[_0x37c31d(0x206)](_0x4140c1),_0x21d959=_0x4d5e21[_0x37c31d(0x1fc)](convertW3CToJsonWire,_0x1cdcd5);try{const _0x43b9b9=[_0x4d5e21[_0x37c31d(0x1ca)](_0x1cdcd5,{}),global[_0x37c31d(0x241)]||{},global[_0x37c31d(0x21c)]||{},global[_0x37c31d(0x1f2)]||{}],_0x2e993f=_0x4983c2=>{const _0x4ff01a=_0x37c31d;if(_0x4d5e21['Dxmho'](_0x21d959[_0x4983c2],undefined)&&_0x4d5e21[_0x4ff01a(0x23e)](_0x21d959[_0x4983c2],null)&&_0x4d5e21[_0x4ff01a(0x23e)](_0x21d959[_0x4983c2],''))return;for(const _0x279439 of _0x43b9b9){if(_0x279439&&_0x4d5e21[_0x4ff01a(0x1c3)](_0x279439[_0x4983c2],undefined)&&_0x4d5e21[_0x4ff01a(0x23e)](_0x279439[_0x4983c2],null)&&_0x4d5e21[_0x4ff01a(0x23a)](_0x279439[_0x4983c2],'')){_0x21d959[_0x4983c2]=_0x279439[_0x4983c2];return;}}};_0x4d5e21[_0x37c31d(0x1fc)](_0x2e993f,_0x4d5e21[_0x37c31d(0x1c4)]),_0x4d5e21['zJPYr'](_0x2e993f,_0x4d5e21[_0x37c31d(0x236)]),_0x4d5e21[_0x37c31d(0x1fc)](_0x2e993f,_0x4d5e21[_0x37c31d(0x1eb)]),_0x4d5e21['SYlOM'](_0x2e993f,_0x4d5e21[_0x37c31d(0x1cf)]),!_0x21d959[_0x4d5e21[_0x37c31d(0x1c4)]]&&process[_0x37c31d(0x1d8)][_0x37c31d(0x238)]&&(_0x21d959[_0x4d5e21['TnXFf']]=process[_0x37c31d(0x1d8)][_0x37c31d(0x238)]);}catch(_0x27a728){logger[_0x37c31d(0x239)](_0x37c31d(0x23f)+util[_0x37c31d(0x1c2)](_0x27a728));}return _0x21d959[_0x4d5e21[_0x37c31d(0x21b)]]=process[_0x37c31d(0x1d8)][_0x37c31d(0x1ef)],_0x21d959[_0x4d5e21[_0x37c31d(0x1e0)]]=helper['getBuildProductMap'](),_0x4d5e21['OXrAu'](_0x13f11c,_0x4d5e21[_0x37c31d(0x1fc)](encodeURIComponent,JSON[_0x37c31d(0x213)](_0x21d959)));},getBrowserFromCaps=_0x33ff3a=>{const _0x31efbc=a133_0x80b5f,_0x10cfcd={};_0x10cfcd[_0x31efbc(0x223)]=_0x31efbc(0x201);const _0x126754=_0x10cfcd;return _0x33ff3a['browserName']||_0x33ff3a[_0x31efbc(0x21d)]||_0x126754[_0x31efbc(0x223)];},isPlaywrightAvailable=()=>{const _0x5246d6=a133_0x80b5f,_0x514bc0={'aRgGQ':_0x5246d6(0x22e),'kRcEC':'client','VCOnI':'browserType.js','EWdmx':function(_0x26c405,_0x3298b7){return _0x26c405(_0x3298b7);}};try{const _0x305957=path[_0x5246d6(0x1bf)](_0x514bc0[_0x5246d6(0x221)],_0x514bc0[_0x5246d6(0x210)],_0x514bc0[_0x5246d6(0x209)]),_0x189ac0=_0x514bc0['EWdmx'](importFileFromPWCore,_0x305957);return!!_0x189ac0;}catch(_0x45efd0){return logger['debug']('Playwright\x20not\x20available:\x20'+util[_0x5246d6(0x1c2)](_0x45efd0)),![];}},getPlaywrightBrowserType=()=>{const _0x4c2144=a133_0x80b5f,_0x64999d={'Hkvfh':_0x4c2144(0x22e),'xyouT':_0x4c2144(0x20d),'GtWmh':_0x4c2144(0x1f7),'zMhlN':function(_0x12db6f,_0x1ec85b){return _0x12db6f(_0x1ec85b);}};try{const _0x4508c3=path['join'](_0x64999d[_0x4c2144(0x1ee)],_0x64999d[_0x4c2144(0x225)],_0x64999d[_0x4c2144(0x1d1)]),_0x2f841d=_0x64999d[_0x4c2144(0x204)](importFileFromPWCore,_0x4508c3);return _0x2f841d?_0x2f841d[_0x4c2144(0x212)]:null;}catch(_0x2cca3a){return logger[_0x4c2144(0x239)](_0x4c2144(0x23c)+util[_0x4c2144(0x1c2)](_0x2cca3a)),null;}},getPlaywrightModulePath=()=>{const _0x4c2c1b=a133_0x80b5f,_0x98101e={};_0x98101e[_0x4c2c1b(0x1f4)]='getPlaywrightModulePath\x20is\x20deprecated,\x20use\x20importFileFromPWCore\x20instead';const _0x184fe7=_0x98101e;return logger[_0x4c2c1b(0x239)](_0x184fe7[_0x4c2c1b(0x1f4)]),null;},getBrowserTypePath=()=>{const _0x9b8977=a133_0x80b5f,_0x3efef5={};_0x3efef5[_0x9b8977(0x1d9)]=_0x9b8977(0x1ed);const _0x1593e0=_0x3efef5;return logger['debug'](_0x1593e0[_0x9b8977(0x1d9)]),null;},checkPwandBootstrapCli=async(_0x2e937c,_0x6d57c2,_0x1d6797)=>{const _0x284cd3=a133_0x80b5f,_0x1ad0a={'nkpHH':function(_0x2c11cb,_0x349d60){return _0x2c11cb(_0x349d60);},'tACTh':_0x284cd3(0x232),'THcie':function(_0x14c14f,_0x4643ab){return _0x14c14f(_0x4643ab);}};if(_0x2e937c){const _0x3e7cda=constants[_0x284cd3(0x233)]['PLAYWRIGHT'];logger[_0x284cd3(0x239)](_0x284cd3(0x1fa)+_0x2e937c+_0x284cd3(0x1de)+_0x6d57c2+_0x284cd3(0x1cc)),CLIUtils[_0x284cd3(0x234)](_0x6d57c2,_0x3e7cda);const {getProductMap:_0x1b658d}=_0x1ad0a['nkpHH'](require,_0x1ad0a[_0x284cd3(0x1bd)]);process['env'][_0x284cd3(0x1d5)]=JSON[_0x284cd3(0x213)](_0x1ad0a['THcie'](_0x1b658d,_0x1d6797[_0x284cd3(0x1f6)])),BrowserstackCLI[_0x284cd3(0x1c9)]()[_0x284cd3(0x216)](_0x1d6797[_0x284cd3(0x1f6)],_0x1d6797[_0x284cd3(0x202)],_0x1d6797[_0x284cd3(0x1d2)]),await BrowserstackCLI['getInstance']()[_0x284cd3(0x1be)]();}},connectOverCDPWithRetry=async(_0x46cac3,_0x19c256,_0x2a3b86,_0x411d01=0x3,_0x2d942d=0x1f4)=>{const _0x3f6e69=a133_0x80b5f,_0x35cea5={};_0x35cea5[_0x3f6e69(0x22a)]=function(_0x70e5d2,_0x565128){return _0x70e5d2<=_0x565128;},_0x35cea5[_0x3f6e69(0x219)]=_0x3f6e69(0x235),_0x35cea5['ylWLv']=function(_0x50b78d,_0x2d2c3c){return _0x50b78d===_0x2d2c3c;},_0x35cea5[_0x3f6e69(0x1bc)]=function(_0x404038,_0x59189d){return _0x404038*_0x59189d;},_0x35cea5['bXmbz']=function(_0x580fcf,_0x55980a){return _0x580fcf+_0x55980a;},_0x35cea5[_0x3f6e69(0x20a)]=function(_0x13495a,_0x186682){return _0x13495a+_0x186682;};const _0x4ad138=_0x35cea5;let _0x3f7dc9;for(let _0x5d44ea=0x0;_0x4ad138[_0x3f6e69(0x22a)](_0x5d44ea,_0x411d01);_0x5d44ea++){try{return await _0x46cac3[_0x3f6e69(0x1cb)][_0x3f6e69(0x1c7)](_0x19c256,_0x2a3b86);}catch(_0x2ba86b){_0x3f7dc9=_0x2ba86b;const _0x53d1a4=_0x2ba86b&&_0x2ba86b[_0x3f6e69(0x231)]||'',_0x3dae0b=_0x53d1a4[_0x3f6e69(0x237)](_0x4ad138[_0x3f6e69(0x219)]);if(!_0x3dae0b||_0x4ad138[_0x3f6e69(0x23b)](_0x5d44ea,_0x411d01))throw _0x2ba86b;const _0x3b027b=_0x4ad138[_0x3f6e69(0x1bc)](_0x2d942d,_0x4ad138[_0x3f6e69(0x1df)](_0x5d44ea,0x1));logger[_0x3f6e69(0x1d4)](_0x3f6e69(0x1d7)+_0x4ad138[_0x3f6e69(0x20a)](_0x5d44ea,0x1)+_0x3f6e69(0x20c)+_0x3b027b+'ms'),await new Promise(_0x5dcc31=>setTimeout(_0x5dcc31,_0x3b027b));}}throw _0x3f7dc9;},a133_0x455153={};a133_0x455153[a133_0x80b5f(0x23d)]=convertW3CToJsonWire,a133_0x455153[a133_0x80b5f(0x22d)]=getModifiedConfigFromCLI,a133_0x455153[a133_0x80b5f(0x1e2)]=generatePlaywrightUrl,a133_0x455153[a133_0x80b5f(0x1cd)]=getBrowserFromCaps,a133_0x455153['isPlaywrightAvailable']=isPlaywrightAvailable,a133_0x455153[a133_0x80b5f(0x215)]=getPlaywrightBrowserType,a133_0x455153[a133_0x80b5f(0x208)]=getPlaywrightModulePath,a133_0x455153[a133_0x80b5f(0x230)]=getBrowserTypePath,a133_0x455153[a133_0x80b5f(0x21e)]=importFileFromPWCore,a133_0x455153['checkPwandBootstrapCli']=checkPwandBootstrapCli,a133_0x455153['connectOverCDPWithRetry']=connectOverCDPWithRetry,module['exports']=a133_0x455153;
|
|
1
|
+
function a134_0x1cfc(_0x42a96a,_0x463570){const _0x2d2b7f=a134_0x2d2b();return a134_0x1cfc=function(_0x1cfcca,_0x244747){_0x1cfcca=_0x1cfcca-0xe7;let _0x375074=_0x2d2b7f[_0x1cfcca];return _0x375074;},a134_0x1cfc(_0x42a96a,_0x463570);}function a134_0x2d2b(){const _0x58e978=['./w3cMapping','./testhub/utils','error','FIGEU','FRAMEWORKS','browserstack.buildProductMap','UIuAT','Target\x20page,\x20context\x20or\x20browser\x20has\x20been\x20closed','ymYYP','join','zYthk','VdeMR','getPlaywrightModulePath\x20is\x20deprecated,\x20use\x20importFileFromPWCore\x20instead','getPlaywrightModulePath','bootstrap','../bin/utils/constants','llGmo','\x20flow','getBrowserTypePath\x20is\x20deprecated,\x20use\x20importFileFromPWCore\x20instead','isArray','897016HUwfyB','GfvzM','env','getPlaywrightBrowserType','stringify','QxRLT','message','Converted\x20W3C\x20caps\x20to\x20JSONWire:\x20','QSLOs','connectOverCDPWithRetry','format','projects','debug','browserstack.accessibilityOptions.authToken','browserstack.accessibilityOptions.wcagVersion','parse','util','jqDEr','Playwright\x20not\x20available:\x20','[A11Y]\x20connectOverCDP\x20gave\x20up\x20after\x20','ECONNRESET','WebSocket\x20error','setFrameworkDetail','SDK-5318:\x20getBundledConnectionClass\x20called\x20before\x20_connection\x20populated;\x20returning\x20null','length','copSN','BgVIq','ECONNREFUSED','playwrightConfigObject','BROWSERSTACK_PRODUCT_MAP','),\x20retrying\x20in\x20','getPlaywrightUrl','pwTZF','apply','getInstance','903588Mcetfz','webkit','__accessibilityOptions','UcQPX','\x20failed\x20(','Vxkam','SDK-5318:\x20getBundledConnectionClass\x20walk\x20failed:\x20','capabilities','ubBzs','connectOverCDP:\x20CDPSession','../bin/v2/grpcClient','Unable\x20to\x20merge\x20accessibility\x20capabilities\x20into\x20Playwright\x20URL\x20caps:\x20','129VUpNaO','browserType.js','BROWSERSTACK_TESTHUB_UUID','getConfig','getBrowserFromCaps','Requesting\x20modified\x20Playwright\x20config\x20from\x20gRPC\x20for\x20cucumberjs-pw','chromium','yqqmJ','133988sAWyre','getBuildProductMap','Timeout','PLAYWRIGHT','firefox','use','ZhqjL','OCBHH','constructor','vApjW','getPWCorePath','requirePWModule','SkKHR','aZWhs','BrowserType','lhCsQ','Error\x20loading\x20bundled\x20Playwright\x20entry:\x20','entries','chrome','setBrowserstackConfig','BS_A11Y_JWT','platformCaps','[A11Y]\x20connectOverCDP\x20attempt\x20','IZaCe','W3CMapping','../bin/v2/cliUtils','lib','RQKoN','nlAsE','configPath','IPlcu','530UVmaEv','84642nnVeGz','SbgIN','includes','idTfH','unDUd','16972329opTgQi','NPTxB','getBundledConnectionClass','AvyVa','\x20for\x20','PKrlo','bstack:options','wtcdZ','browser','getBrowserTypePath','1328BctTYf','browserstack.testhubBuildUuid','../bin/v2/browserstackCLI','getPlaywrightConfig','__platformCaps','config','aZvby','BaWDV','No\x20usable\x20capabilities\x20found\x20in\x20modified\x20config\x20response','91cgoYoZ','fcajL','27MKsJtG','10jlSCsM','workers','2091792ASkiWK','kltZG','sfssn','./helper','2298nMFeNX','OFeSd','oyGqf','cliConfig','bteAS','getModifiedConfigFromCLI','beAsD','framework','_connection','./logger','client','LVWPO'];a134_0x2d2b=function(){return _0x58e978;};return a134_0x2d2b();}const a134_0x322310=a134_0x1cfc;(function(_0x17bc9b,_0xf85efa){const _0x55f7e3=a134_0x1cfc,_0x5e3154=_0x17bc9b();while(!![]){try{const _0x1011d3=-parseInt(_0x55f7e3(0x15d))/0x1*(parseInt(_0x55f7e3(0x14b))/0x2)+-parseInt(_0x55f7e3(0x114))/0x3*(-parseInt(_0x55f7e3(0x11c))/0x4)+parseInt(_0x55f7e3(0x13b))/0x5*(parseInt(_0x55f7e3(0x13c))/0x6)+parseInt(_0x55f7e3(0x108))/0x7+parseInt(_0x55f7e3(0x17d))/0x8*(-parseInt(_0x55f7e3(0x156))/0x9)+parseInt(_0x55f7e3(0x157))/0xa*(-parseInt(_0x55f7e3(0x141))/0xb)+-parseInt(_0x55f7e3(0x159))/0xc*(-parseInt(_0x55f7e3(0x154))/0xd);if(_0x1011d3===_0xf85efa)break;else _0x5e3154['push'](_0x5e3154['shift']());}catch(_0xff7aaa){_0x5e3154['push'](_0x5e3154['shift']());}}}(a134_0x2d2b,0xd6cc9));const path=require('path'),util=require(a134_0x322310(0xf5)),{importFileFromPWCore}=require('./helper'),helper=require(a134_0x322310(0x15c)),logger=require(a134_0x322310(0x166))['winstonLogger'],W3CMapping=require(a134_0x322310(0x169))[a134_0x322310(0x134)](),constants=require(a134_0x322310(0x178)),BrowserstackCLI=require(a134_0x322310(0x14d)),CLIUtils=require(a134_0x322310(0x135));let GrpcClient;try{GrpcClient=require(a134_0x322310(0x112));}catch(a134_0x293bec){logger[a134_0x322310(0xf1)]('Could\x20not\x20import\x20GrpcClient:\x20'+a134_0x293bec[a134_0x322310(0xeb)]),GrpcClient=null;}const convertW3CToJsonWire=_0x213161=>{const _0x3676cb=a134_0x322310,_0x4485fa={};_0x4485fa[_0x3676cb(0x142)]=function(_0x40ab5b,_0x239430){return _0x40ab5b||_0x239430;},_0x4485fa[_0x3676cb(0x168)]=function(_0x437592,_0x500920){return _0x437592===_0x500920;},_0x4485fa[_0x3676cb(0xea)]=_0x3676cb(0x147),_0x4485fa[_0x3676cb(0xff)]=function(_0x414adf,_0x205ac4){return _0x414adf in _0x205ac4;};const _0x5557c8=_0x4485fa,_0x57b8b7={};for(const [_0x1ad007,_0xd3642b]of Object[_0x3676cb(0x12d)](_0x5557c8['NPTxB'](_0x213161,{}))){if(_0x5557c8['LVWPO'](_0x1ad007,_0x5557c8[_0x3676cb(0xea)]))continue;let _0x218249=![];for(const [_0x30da15,_0x4f218c]of Object[_0x3676cb(0x12d)](W3CMapping)){if(_0x5557c8[_0x3676cb(0x168)](_0x1ad007,_0x4f218c)){_0x57b8b7[_0x30da15]=_0xd3642b,_0x218249=!![];break;}}!_0x218249&&(_0x57b8b7[_0x1ad007]=_0xd3642b);}const _0x2c9efa=_0x213161[_0x5557c8[_0x3676cb(0xea)]]||{};for(const [_0x26f2e1,_0x52d772]of Object['entries'](_0x2c9efa)){let _0x24ef2c=![];for(const [_0x3b8e10,_0x53f864]of Object['entries'](W3CMapping)){if(_0x5557c8[_0x3676cb(0x168)](_0x26f2e1,_0x53f864)){_0x57b8b7[_0x3b8e10]=_0x52d772,_0x24ef2c=!![];break;}}!_0x24ef2c&&!_0x5557c8[_0x3676cb(0xff)](_0x26f2e1,_0x57b8b7)&&(_0x57b8b7[_0x26f2e1]=_0x52d772);}return logger[_0x3676cb(0xf1)](_0x3676cb(0xec)+JSON[_0x3676cb(0xe9)](_0x57b8b7)),_0x57b8b7;},getModifiedConfigFromCLI=async _0x5b1071=>{const _0x552312=a134_0x322310,_0x1602ad={};_0x1602ad[_0x552312(0x10b)]='GrpcClient\x20not\x20available,\x20skipping\x20modified\x20config\x20request',_0x1602ad['DmDic']='cucumberjs-pw',_0x1602ad[_0x552312(0x16f)]=_0x552312(0x119),_0x1602ad[_0x552312(0xed)]='No\x20modified\x20config\x20received\x20from\x20gRPC',_0x1602ad[_0x552312(0x10d)]=function(_0x592b15,_0x202e22){return _0x592b15>_0x202e22;},_0x1602ad['lhCsQ']=function(_0x35b83f,_0x3106e8){return _0x35b83f>_0x3106e8;},_0x1602ad[_0x552312(0x15a)]=_0x552312(0x153);const _0x5cc275=_0x1602ad;try{if(!GrpcClient)return logger['debug'](_0x5cc275['UcQPX']),null;const _0xecd149={};_0xecd149[_0x552312(0x10f)]=_0x5b1071,_0xecd149[_0x552312(0x164)]=_0x5cc275['DmDic'],_0xecd149[_0x552312(0x158)]=0x1,_0xecd149[_0x552312(0xf0)]=[];const _0x4a37b0=_0xecd149;logger[_0x552312(0xf1)](_0x5cc275[_0x552312(0x16f)]);const _0x180a6d={};_0x180a6d[_0x552312(0x101)]=_0x4a37b0;const _0x4134c4=await GrpcClient[_0x552312(0x107)]()[_0x552312(0x14e)](_0x180a6d);if(!_0x4134c4[_0x552312(0x117)]())return logger[_0x552312(0xf1)](_0x5cc275[_0x552312(0xed)]),null;const _0x56ff72=JSON[_0x552312(0xf4)](_0x4134c4[_0x552312(0x117)]());logger['debug']('Received\x20modified\x20config\x20from\x20gRPC:\x20'+JSON['stringify'](_0x56ff72));if(_0x56ff72[_0x552312(0x10f)]&&Array['isArray'](_0x56ff72[_0x552312(0x10f)])&&_0x5cc275[_0x552312(0x10d)](_0x56ff72[_0x552312(0x10f)][_0x552312(0xfd)],0x0))return _0x56ff72[_0x552312(0x10f)][0x0];else{if(_0x56ff72[_0x552312(0xf0)]&&Array[_0x552312(0x17c)](_0x56ff72[_0x552312(0xf0)])&&_0x5cc275[_0x552312(0x12b)](_0x56ff72[_0x552312(0xf0)][_0x552312(0xfd)],0x0)){const _0x3c9df5=_0x56ff72[_0x552312(0xf0)][0x0];if(_0x3c9df5[_0x552312(0x121)]&&_0x3c9df5[_0x552312(0x121)][_0x552312(0x131)])return _0x3c9df5[_0x552312(0x121)][_0x552312(0x131)];}}return logger[_0x552312(0xf1)](_0x5cc275[_0x552312(0x15a)]),null;}catch(_0x30fd59){logger[_0x552312(0x16b)]('Error\x20getting\x20modified\x20config\x20from\x20gRPC:\x20'+_0x30fd59[_0x552312(0xeb)]);throw _0x30fd59;}},generatePlaywrightUrl=(_0x37cfa4,_0xcc4bfe)=>{const _0x1f1c3d=a134_0x322310,_0x260445={'FIGEU':function(_0x454c5f,_0x464788){return _0x454c5f!==_0x464788;},'yqqmJ':function(_0x415d91,_0x2d25ab){return _0x415d91!==_0x2d25ab;},'sfssn':function(_0x3d157a,_0x2d2fda){return _0x3d157a!==_0x2d2fda;},'SkKHR':function(_0x38e444,_0x4cc385){return _0x38e444(_0x4cc385);},'unDUd':function(_0x3e70b2,_0x36e9bd){return _0x3e70b2||_0x36e9bd;},'ubBzs':function(_0x5d6dbc,_0x581dba){return _0x5d6dbc(_0x581dba);},'ZhqjL':_0x1f1c3d(0xf2),'BaWDV':function(_0x18c0f1,_0xa398b){return _0x18c0f1(_0xa398b);},'RQKoN':_0x1f1c3d(0xf3),'nlAsE':'browserstack.accessibilityOptions.scannerVersion','zYthk':'browserstack.accessibilityOptions.scannerProcessingTimeout','aZWhs':_0x1f1c3d(0x14c),'bteAS':_0x1f1c3d(0x16e),'llGmo':function(_0x3392f3,_0x424b98){return _0x3392f3+_0x424b98;},'ZYsPe':function(_0x3ef5a3,_0x43f21f){return _0x3ef5a3(_0x43f21f);}},_0x2b8069=helper[_0x1f1c3d(0x104)](_0x37cfa4),_0x2ef4d3=_0x260445[_0x1f1c3d(0x128)](convertW3CToJsonWire,_0xcc4bfe);try{const _0x29bb31=[_0x260445[_0x1f1c3d(0x140)](_0xcc4bfe,{}),global['__launchCaps']||{},global[_0x1f1c3d(0x14f)]||{},global[_0x1f1c3d(0x10a)]||{}],_0x37bb85=_0x47d410=>{const _0x4b73ba=_0x1f1c3d;if(_0x260445[_0x4b73ba(0x16c)](_0x2ef4d3[_0x47d410],undefined)&&_0x260445['FIGEU'](_0x2ef4d3[_0x47d410],null)&&_0x260445[_0x4b73ba(0x11b)](_0x2ef4d3[_0x47d410],''))return;for(const _0x25a3e7 of _0x29bb31){if(_0x25a3e7&&_0x260445[_0x4b73ba(0x11b)](_0x25a3e7[_0x47d410],undefined)&&_0x260445[_0x4b73ba(0x11b)](_0x25a3e7[_0x47d410],null)&&_0x260445[_0x4b73ba(0x15b)](_0x25a3e7[_0x47d410],'')){_0x2ef4d3[_0x47d410]=_0x25a3e7[_0x47d410];return;}}};_0x260445[_0x1f1c3d(0x110)](_0x37bb85,_0x260445['ZhqjL']),_0x260445[_0x1f1c3d(0x152)](_0x37bb85,_0x260445[_0x1f1c3d(0x137)]),_0x260445['BaWDV'](_0x37bb85,_0x260445[_0x1f1c3d(0x138)]),_0x260445['ubBzs'](_0x37bb85,_0x260445[_0x1f1c3d(0x173)]),!_0x2ef4d3[_0x260445[_0x1f1c3d(0x122)]]&&process[_0x1f1c3d(0xe7)][_0x1f1c3d(0x130)]&&(_0x2ef4d3[_0x260445[_0x1f1c3d(0x122)]]=process['env'][_0x1f1c3d(0x130)]);}catch(_0x254195){logger['debug'](_0x1f1c3d(0x113)+util[_0x1f1c3d(0xef)](_0x254195));}return _0x2ef4d3[_0x260445[_0x1f1c3d(0x129)]]=process[_0x1f1c3d(0xe7)][_0x1f1c3d(0x116)],_0x2ef4d3[_0x260445[_0x1f1c3d(0x161)]]=helper[_0x1f1c3d(0x11d)](),_0x260445[_0x1f1c3d(0x179)](_0x2b8069,_0x260445['ZYsPe'](encodeURIComponent,JSON[_0x1f1c3d(0xe9)](_0x2ef4d3)));},getBrowserFromCaps=_0x13233f=>{const _0x6aafed=a134_0x322310,_0x3e0581={};_0x3e0581[_0x6aafed(0xfe)]=_0x6aafed(0x12e);const _0x2b359c=_0x3e0581;return _0x13233f['browserName']||_0x13233f[_0x6aafed(0x149)]||_0x2b359c['copSN'];},getBrowserTypeFromBundledPlaywright=()=>{const _0x17bcd0=a134_0x322310;try{const _0x58b441=helper[_0x17bcd0(0x126)]();if(!_0x58b441)return null;const _0x3057cc=helper[_0x17bcd0(0x127)](_0x58b441),_0x1559b3=_0x3057cc&&(_0x3057cc[_0x17bcd0(0x11a)]||_0x3057cc['firefox']||_0x3057cc[_0x17bcd0(0x109)]);if(!_0x1559b3)return null;return _0x1559b3[_0x17bcd0(0x124)]||null;}catch(_0x4f6b79){return logger[_0x17bcd0(0xf1)](_0x17bcd0(0x12c)+util[_0x17bcd0(0xef)](_0x4f6b79)),null;}},getBundledConnectionClass=()=>{const _0x13470d=a134_0x322310,_0x149681={};_0x149681[_0x13470d(0x17e)]=_0x13470d(0xfc);const _0x55e2f6=_0x149681;try{const _0x131931=helper[_0x13470d(0x126)]();if(!_0x131931)return null;const _0x1a0db7=helper['requirePWModule'](_0x131931),_0x116b03=_0x1a0db7&&(_0x1a0db7[_0x13470d(0x11a)]||_0x1a0db7[_0x13470d(0x120)]||_0x1a0db7[_0x13470d(0x109)]);if(!_0x116b03)return null;if(!_0x116b03[_0x13470d(0x165)])return logger[_0x13470d(0xf1)](_0x55e2f6[_0x13470d(0x17e)]),null;if(!_0x116b03[_0x13470d(0x165)][_0x13470d(0x124)])return null;return _0x116b03[_0x13470d(0x165)][_0x13470d(0x124)];}catch(_0x515c7b){return logger[_0x13470d(0xf1)](_0x13470d(0x10e)+util[_0x13470d(0xef)](_0x515c7b)),null;}},isPlaywrightAvailable=()=>{const _0xdd5938=a134_0x322310,_0x4571b1={'ymYYP':_0xdd5938(0x136),'VdeMR':_0xdd5938(0x167),'KhzkU':_0xdd5938(0x115),'ySxnW':function(_0x13bad9,_0x44c0e0){return _0x13bad9(_0x44c0e0);},'tXRMS':function(_0x431266){return _0x431266();}};try{const _0xba6589=path[_0xdd5938(0x172)](_0x4571b1[_0xdd5938(0x171)],_0x4571b1[_0xdd5938(0x174)],_0x4571b1['KhzkU']),_0x3072db=_0x4571b1['ySxnW'](importFileFromPWCore,_0xba6589);if(_0x3072db)return!![];return!!_0x4571b1['tXRMS'](getBrowserTypeFromBundledPlaywright);}catch(_0x2422d8){return logger[_0xdd5938(0xf1)](_0xdd5938(0xf7)+util[_0xdd5938(0xef)](_0x2422d8)),![];}},getPlaywrightBrowserType=()=>{const _0x1e657e=a134_0x322310,_0x380bda={'AvHyK':'lib','Hgoje':_0x1e657e(0x167),'RLOGx':_0x1e657e(0x115),'vNvBF':function(_0x4b0b46,_0x51bb0a){return _0x4b0b46(_0x51bb0a);},'IPlcu':function(_0x24f3c0){return _0x24f3c0();}};try{const _0x124d10=path[_0x1e657e(0x172)](_0x380bda['AvHyK'],_0x380bda['Hgoje'],_0x380bda['RLOGx']),_0x20667b=_0x380bda['vNvBF'](importFileFromPWCore,_0x124d10);if(_0x20667b&&_0x20667b[_0x1e657e(0x12a)])return _0x20667b[_0x1e657e(0x12a)];return _0x380bda[_0x1e657e(0x13a)](getBrowserTypeFromBundledPlaywright);}catch(_0x2f1989){return logger[_0x1e657e(0xf1)]('Error\x20getting\x20Playwright\x20BrowserType:\x20'+util[_0x1e657e(0xef)](_0x2f1989)),null;}},getPlaywrightModulePath=()=>{const _0x52b822=a134_0x322310,_0x52af7f={};_0x52af7f['aZvby']=_0x52b822(0x175);const _0x126fa4=_0x52af7f;return logger[_0x52b822(0xf1)](_0x126fa4[_0x52b822(0x151)]),null;},getBrowserTypePath=()=>{const _0x4974cd=a134_0x322310,_0x10c3ef={};_0x10c3ef[_0x4974cd(0x133)]=_0x4974cd(0x17b);const _0x66b7ba=_0x10c3ef;return logger[_0x4974cd(0xf1)](_0x66b7ba['IZaCe']),null;},checkPwandBootstrapCli=async(_0x157327,_0x562126,_0x22499c)=>{const _0x1abe08=a134_0x322310,_0x496205={'beAsD':function(_0x476f7e,_0x55b3ad){return _0x476f7e(_0x55b3ad);},'pwTZF':_0x1abe08(0x16a)};if(_0x157327){const _0x19cb8c=constants[_0x1abe08(0x16d)][_0x1abe08(0x11f)];logger[_0x1abe08(0xf1)]('Detected\x20Playwright\x20version\x20'+_0x157327+_0x1abe08(0x145)+_0x562126+_0x1abe08(0x17a)),CLIUtils[_0x1abe08(0xfb)](_0x562126,_0x19cb8c);const {getProductMap:_0x4d8588}=_0x496205[_0x1abe08(0x163)](require,_0x496205[_0x1abe08(0x105)]);process[_0x1abe08(0xe7)][_0x1abe08(0x102)]=JSON[_0x1abe08(0xe9)](_0x496205[_0x1abe08(0x163)](_0x4d8588,_0x22499c[_0x1abe08(0x150)])),BrowserstackCLI[_0x1abe08(0x107)]()[_0x1abe08(0x12f)](_0x22499c[_0x1abe08(0x150)],_0x22499c[_0x1abe08(0x139)],_0x22499c[_0x1abe08(0x160)]),await BrowserstackCLI[_0x1abe08(0x107)]()[_0x1abe08(0x177)]();}},connectOverCDPWithRetry=async(_0x5eb61c,_0x646dd5,_0x11540b,_0x278878=0x3,_0x47af2a=0x1f4)=>{const _0x2d6a8f=a134_0x322310,_0x4b8a7c={};_0x4b8a7c['OCBHH']=function(_0x2e8553,_0x501bb2){return _0x2e8553<=_0x501bb2;},_0x4b8a7c['NjXdy']=_0x2d6a8f(0x170),_0x4b8a7c[_0x2d6a8f(0xf6)]=_0x2d6a8f(0x11e),_0x4b8a7c[_0x2d6a8f(0x13d)]=_0x2d6a8f(0xfa),_0x4b8a7c[_0x2d6a8f(0x13f)]=_0x2d6a8f(0x111),_0x4b8a7c[_0x2d6a8f(0x155)]=_0x2d6a8f(0xf9),_0x4b8a7c['wtcdZ']=_0x2d6a8f(0x100),_0x4b8a7c[_0x2d6a8f(0x15f)]=function(_0x34303c,_0x20733f){return _0x34303c===_0x20733f;},_0x4b8a7c[_0x2d6a8f(0x146)]=function(_0xa41b33,_0x1f46bb){return _0xa41b33+_0x1f46bb;},_0x4b8a7c['vApjW']=function(_0x5812c3,_0x58a718){return _0x5812c3*_0x58a718;},_0x4b8a7c[_0x2d6a8f(0x15e)]=function(_0x24bdd3,_0x3c6fe2){return _0x24bdd3+_0x3c6fe2;},_0x4b8a7c[_0x2d6a8f(0x144)]=function(_0x34e051,_0x1b1d7e){return _0x34e051+_0x1b1d7e;};const _0x4d0b2d=_0x4b8a7c;let _0x5d6297;for(let _0x11e326=0x0;_0x4d0b2d[_0x2d6a8f(0x123)](_0x11e326,_0x278878);_0x11e326++){try{return await _0x5eb61c['connectOverCDP'][_0x2d6a8f(0x106)](_0x646dd5,_0x11540b);}catch(_0x321a33){_0x5d6297=_0x321a33;const _0x3e93bc=_0x321a33&&_0x321a33[_0x2d6a8f(0xeb)]||'',_0x176fe3=_0x3e93bc[_0x2d6a8f(0x13e)](_0x4d0b2d['NjXdy'])||_0x3e93bc[_0x2d6a8f(0x13e)](_0x4d0b2d['jqDEr'])||_0x3e93bc['includes'](_0x4d0b2d[_0x2d6a8f(0x13d)])||_0x3e93bc['includes'](_0x4d0b2d[_0x2d6a8f(0x13f)])||_0x3e93bc[_0x2d6a8f(0x13e)](_0x4d0b2d[_0x2d6a8f(0x155)])||_0x3e93bc[_0x2d6a8f(0x13e)](_0x4d0b2d[_0x2d6a8f(0x148)]);if(!_0x176fe3||_0x4d0b2d[_0x2d6a8f(0x15f)](_0x11e326,_0x278878)){_0x176fe3&&logger['warn'](_0x2d6a8f(0xf8)+_0x4d0b2d[_0x2d6a8f(0x146)](_0x11e326,0x1)+'\x20attempts\x20—\x20surfacing\x20error:\x20'+_0x3e93bc);throw _0x321a33;}const _0x530770=_0x4d0b2d[_0x2d6a8f(0x125)](_0x47af2a,_0x4d0b2d[_0x2d6a8f(0x146)](_0x11e326,0x1));logger['warn'](_0x2d6a8f(0x132)+_0x4d0b2d[_0x2d6a8f(0x15e)](_0x11e326,0x1)+'/'+_0x4d0b2d['AvyVa'](_0x278878,0x1)+_0x2d6a8f(0x10c)+_0x3e93bc+_0x2d6a8f(0x103)+_0x530770+'ms'),await new Promise(_0x14205a=>setTimeout(_0x14205a,_0x530770));}}throw _0x5d6297;},a134_0x55390e={};a134_0x55390e['convertW3CToJsonWire']=convertW3CToJsonWire,a134_0x55390e[a134_0x322310(0x162)]=getModifiedConfigFromCLI,a134_0x55390e['generatePlaywrightUrl']=generatePlaywrightUrl,a134_0x55390e[a134_0x322310(0x118)]=getBrowserFromCaps,a134_0x55390e['isPlaywrightAvailable']=isPlaywrightAvailable,a134_0x55390e[a134_0x322310(0xe8)]=getPlaywrightBrowserType,a134_0x55390e[a134_0x322310(0x176)]=getPlaywrightModulePath,a134_0x55390e[a134_0x322310(0x14a)]=getBrowserTypePath,a134_0x55390e['importFileFromPWCore']=importFileFromPWCore,a134_0x55390e['checkPwandBootstrapCli']=checkPwandBootstrapCli,a134_0x55390e[a134_0x322310(0xee)]=connectOverCDPWithRetry,a134_0x55390e[a134_0x322310(0x143)]=getBundledConnectionClass,module['exports']=a134_0x55390e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a135_0x207db1=a135_0x1aa7;function a135_0x3e3f(){const _0x1acab9=['RuaxY','176756cFHegG','1cZaojk','toISOString','99AhczLE','275ZEIBnl','browserstackTestName','172HVfxXi','NXRMR','getGlobal','sleep','\x20]\x20','1363360TyJYdg','9852lLrAxd','TgUxp','./globals','env','160260QHvdKa','TEST_REPORTING_ANALYTICS','./logger','getTestName','BROWSERSTACK_TEST_REPORTING_DEBUG','250455xploSt','6JtXYii','uVPhj','1494262sOgxrN','5984rQLXbA','BROWSERSTACK_OBSERVABILITY_DEBUG','../bin/utils/constants','getProcessId','debug','./test-observability/constants'];a135_0x3e3f=function(){return _0x1acab9;};return a135_0x3e3f();}function a135_0x1aa7(_0x38d012,_0x321efd){const _0x3e3f97=a135_0x3e3f();return a135_0x1aa7=function(_0x1aa71b,_0x1d3ac9){_0x1aa71b=_0x1aa71b-0x1b7;let _0x11de36=_0x3e3f97[_0x1aa71b];return _0x11de36;},a135_0x1aa7(_0x38d012,_0x321efd);}(function(_0x4e655e,_0x213e32){const _0x5b2f91=a135_0x1aa7,_0x4ce162=_0x4e655e();while(!![]){try{const _0x34096f=-parseInt(_0x5b2f91(0x1c0))/0x1*(parseInt(_0x5b2f91(0x1bf))/0x2)+-parseInt(_0x5b2f91(0x1cb))/0x3*(-parseInt(_0x5b2f91(0x1c5))/0x4)+-parseInt(_0x5b2f91(0x1d4))/0x5*(-parseInt(_0x5b2f91(0x1d5))/0x6)+parseInt(_0x5b2f91(0x1b7))/0x7+-parseInt(_0x5b2f91(0x1b8))/0x8*(-parseInt(_0x5b2f91(0x1c2))/0x9)+parseInt(_0x5b2f91(0x1ca))/0xa+-parseInt(_0x5b2f91(0x1c3))/0xb*(parseInt(_0x5b2f91(0x1cf))/0xc);if(_0x34096f===_0x213e32)break;else _0x4ce162['push'](_0x4ce162['shift']());}catch(_0x49d4fb){_0x4ce162['push'](_0x4ce162['shift']());}}}(a135_0x3e3f,0x1f068));const worker=require('worker_threads'),{fileLogger}=require(a135_0x207db1(0x1d1)),{consoleHolder}=require(a135_0x207db1(0x1bd)),globals=require(a135_0x207db1(0x1cd)),constants=require(a135_0x207db1(0x1ba));exports[a135_0x207db1(0x1bb)]=()=>{return process['pid']+'-'+worker['threadId'];},exports[a135_0x207db1(0x1d2)]=()=>{const _0x31046d=a135_0x207db1,_0x33eba0={};_0x33eba0[_0x31046d(0x1c6)]=_0x31046d(0x1c4);const _0x31406c=_0x33eba0;return globals[_0x31046d(0x1c7)](_0x31406c[_0x31046d(0x1c6)]);},exports[a135_0x207db1(0x1c8)]=(_0x2da0ed=0x64)=>new Promise(_0x5aecb2=>setTimeout(_0x5aecb2,_0x2da0ed)),exports[a135_0x207db1(0x1bc)]=_0x532d20=>{const _0x3ec5f6=a135_0x207db1,_0x5259a0={};_0x5259a0[_0x3ec5f6(0x1d6)]=function(_0x401a8f,_0x1bf062){return _0x401a8f===_0x1bf062;},_0x5259a0['RuaxY']='true',_0x5259a0[_0x3ec5f6(0x1cc)]=function(_0x137608,_0x3262f6){return _0x137608===_0x3262f6;};const _0x5d731d=_0x5259a0;fileLogger[_0x3ec5f6(0x1bc)]('['+new Date()['toISOString']()+'][\x20'+constants[_0x3ec5f6(0x1d0)]+'\x20]\x20'+_0x532d20),(_0x5d731d[_0x3ec5f6(0x1d6)](process['env'][_0x3ec5f6(0x1d3)],_0x5d731d[_0x3ec5f6(0x1be)])||_0x5d731d[_0x3ec5f6(0x1cc)](process[_0x3ec5f6(0x1ce)][_0x3ec5f6(0x1d3)],'1')||_0x5d731d['uVPhj'](process[_0x3ec5f6(0x1ce)]['BROWSERSTACK_OBSERVABILITY_DEBUG'],_0x5d731d[_0x3ec5f6(0x1be)])||_0x5d731d[_0x3ec5f6(0x1d6)](process[_0x3ec5f6(0x1ce)][_0x3ec5f6(0x1b9)],'1'))&&consoleHolder['log']('\x0a['+new Date()[_0x3ec5f6(0x1c1)]()+'][\x20'+constants[_0x3ec5f6(0x1d0)]+_0x3ec5f6(0x1c9)+_0x532d20+'\x0a');};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a136_0x52397e=a136_0xf7d7;(function(_0x538744,_0x277300){const _0x4f3a82=a136_0xf7d7,_0xf599ba=_0x538744();while(!![]){try{const _0x5f2d66=-parseInt(_0x4f3a82(0x19a))/0x1+-parseInt(_0x4f3a82(0x19d))/0x2+parseInt(_0x4f3a82(0x1ab))/0x3*(parseInt(_0x4f3a82(0x187))/0x4)+-parseInt(_0x4f3a82(0x188))/0x5+-parseInt(_0x4f3a82(0x1ac))/0x6*(parseInt(_0x4f3a82(0x198))/0x7)+-parseInt(_0x4f3a82(0x184))/0x8*(parseInt(_0x4f3a82(0x1a8))/0x9)+parseInt(_0x4f3a82(0x17c))/0xa;if(_0x5f2d66===_0x277300)break;else _0xf599ba['push'](_0xf599ba['shift']());}catch(_0x5e72be){_0xf599ba['push'](_0xf599ba['shift']());}}}(a136_0x324f,0x8b2b5));const util=require(a136_0x52397e(0x1ba)),helper=require(a136_0x52397e(0x1a5)),logger=require('./logger')['winstonLogger'],W3CMapping=require('./w3cMapping')['W3CMapping'](),constants=require(a136_0x52397e(0x1a2)),BrowserstackCLI=require(a136_0x52397e(0x1b2)),CLIUtils=require('../bin/v2/cliUtils'),getAPIUtilityMethods=()=>{const _0x2e5872=a136_0x52397e,_0x429343={'diRVI':function(_0x286aeb,_0x5782df){return _0x286aeb(_0x5782df);},'jLkNr':_0x2e5872(0x1b7)};return _0x429343['diRVI'](require,_0x429343['jLkNr']);},getPuppeteerUrl=_0x1e07f8=>{const _0x247622=a136_0x52397e,_0x22324c={'oNNqP':function(_0x9c37f6){return _0x9c37f6();}};if(_0x1e07f8['turboScaleUrl'])return _0x1e07f8[_0x247622(0x191)];const _0x35731a=_0x22324c[_0x247622(0x195)](getAPIUtilityMethods);return _0x35731a[_0x247622(0x181)]('');},convertW3CToJsonWire=_0x378e13=>{const _0x5694d6=a136_0x52397e,_0x31b702={};_0x31b702[_0x5694d6(0x1aa)]=function(_0x1f00ff,_0x365261){return _0x1f00ff||_0x365261;},_0x31b702[_0x5694d6(0x189)]=function(_0x407907,_0x347160){return _0x407907===_0x347160;},_0x31b702[_0x5694d6(0x186)]=_0x5694d6(0x1b1),_0x31b702['YkkAa']=function(_0x7ed13a,_0x5bd2d1){return _0x7ed13a===_0x5bd2d1;},_0x31b702[_0x5694d6(0x1b6)]=function(_0x116ce0,_0x2c850a){return _0x116ce0===_0x2c850a;},_0x31b702[_0x5694d6(0x17e)]=function(_0xec2418,_0x14c0bc){return _0xec2418 in _0x14c0bc;};const _0x292b00=_0x31b702,_0x436e72={};for(const [_0x1adee1,_0x7d2e64]of Object[_0x5694d6(0x17d)](_0x292b00[_0x5694d6(0x1aa)](_0x378e13,{}))){if(_0x292b00['zJmOD'](_0x1adee1,_0x292b00[_0x5694d6(0x186)]))continue;let _0x125dad=![];for(const [_0x146394,_0x168a1f]of Object['entries'](W3CMapping)){if(_0x292b00[_0x5694d6(0x18f)](_0x1adee1,_0x168a1f)){_0x436e72[_0x146394]=_0x7d2e64,_0x125dad=!![];break;}}!_0x125dad&&(_0x436e72[_0x1adee1]=_0x7d2e64);}const _0x4d0442=_0x378e13[_0x292b00[_0x5694d6(0x186)]]||{};for(const [_0x5562b2,_0xdfec54]of Object[_0x5694d6(0x17d)](_0x4d0442)){let _0x3d34a8=![];for(const [_0x977c63,_0x2ec4c1]of Object[_0x5694d6(0x17d)](W3CMapping)){if(_0x292b00[_0x5694d6(0x1b6)](_0x5562b2,_0x2ec4c1)){_0x436e72[_0x977c63]=_0xdfec54,_0x3d34a8=!![];break;}}!_0x3d34a8&&!_0x292b00[_0x5694d6(0x17e)](_0x5562b2,_0x436e72)&&(_0x436e72[_0x5562b2]=_0xdfec54);}return logger[_0x5694d6(0x18b)]('[PuppeteerHelper]\x20Converted\x20W3C\x20caps\x20to\x20JSONWire:\x20'+JSON[_0x5694d6(0x190)](_0x436e72)),_0x436e72;},generatePuppeteerUrl=(_0x54cb7c,_0x2bf212)=>{const _0x4d7dca=a136_0x52397e,_0x5da7fc={'LIjVs':function(_0xb29236,_0x33e56a){return _0xb29236(_0x33e56a);},'eDgAY':function(_0x13e3bc,_0x1651ac){return _0x13e3bc(_0x1651ac);},'KzRxj':_0x4d7dca(0x1a4),'FDcPB':_0x4d7dca(0x1a1),'hSMhL':function(_0x3aba31,_0x3dbdb4){return _0x3aba31+_0x3dbdb4;},'ZsUYA':function(_0x97b5a6,_0x647acc){return _0x97b5a6(_0x647acc);}},_0x33b4bd=_0x5da7fc['LIjVs'](getPuppeteerUrl,_0x54cb7c),_0x493e36=_0x5da7fc[_0x4d7dca(0x1a0)](convertW3CToJsonWire,_0x2bf212);return _0x493e36[_0x5da7fc[_0x4d7dca(0x19c)]]=process[_0x4d7dca(0x185)][_0x4d7dca(0x18d)],_0x493e36[_0x5da7fc[_0x4d7dca(0x17f)]]=helper['getBuildProductMap'](),_0x5da7fc['hSMhL'](_0x33b4bd,_0x5da7fc[_0x4d7dca(0x197)](encodeURIComponent,JSON[_0x4d7dca(0x190)](_0x493e36)));},isPuppeteerAvailable=()=>{const _0x5de938=a136_0x52397e,_0x3e6343={};_0x3e6343[_0x5de938(0x19e)]=_0x5de938(0x19f),_0x3e6343['cmwon']=_0x5de938(0x1b9);const _0x31a150=_0x3e6343;try{return require[_0x5de938(0x199)](_0x31a150[_0x5de938(0x19e)]),!![];}catch{try{return require['resolve'](_0x31a150[_0x5de938(0x1ad)]),!![];}catch{return![];}}},getPuppeteerVersion=()=>{const _0x43457c=a136_0x52397e,_0x484da0={};_0x484da0[_0x43457c(0x192)]=_0x43457c(0x19f),_0x484da0['cUXqM']='puppeteer';const _0x469f0d=_0x484da0;return helper[_0x43457c(0x1b5)](_0x469f0d[_0x43457c(0x192)])||helper[_0x43457c(0x1b5)](_0x469f0d[_0x43457c(0x182)]);},checkPuppeteerAndBootstrapCli=async(_0x3c48a3,_0x495cbe,_0x128d3e)=>{const _0x28e09b=a136_0x52397e,_0x44ca5d={'pWHqk':_0x28e09b(0x1a6),'deHUf':function(_0x1e5418,_0x1255d7){return _0x1e5418(_0x1255d7);},'KoHXl':'./testhub/utils'};if(_0x3c48a3){const _0x5371bb=constants['FRAMEWORKS'][_0x28e09b(0x1bb)];logger[_0x28e09b(0x18b)](_0x28e09b(0x193)+_0x3c48a3+_0x28e09b(0x1b8)+_0x495cbe+_0x28e09b(0x183)),process[_0x28e09b(0x185)][_0x28e09b(0x1ae)]=_0x44ca5d['pWHqk'],CLIUtils[_0x28e09b(0x1bc)](_0x495cbe,_0x5371bb);const {getProductMap:_0x49cadd}=_0x44ca5d[_0x28e09b(0x19b)](require,_0x44ca5d[_0x28e09b(0x18a)]);process[_0x28e09b(0x185)]['BROWSERSTACK_PRODUCT_MAP']=JSON['stringify'](_0x44ca5d[_0x28e09b(0x19b)](_0x49cadd,_0x128d3e[_0x28e09b(0x1af)])),BrowserstackCLI[_0x28e09b(0x18e)]()[_0x28e09b(0x1b3)](_0x128d3e[_0x28e09b(0x1af)],_0x128d3e[_0x28e09b(0x196)],_0x128d3e[_0x28e09b(0x1b0)]),await BrowserstackCLI[_0x28e09b(0x18e)]()[_0x28e09b(0x1b4)]();}},a136_0x3778a9={};function a136_0xf7d7(_0x39e61c,_0x138b40){const _0x324f5b=a136_0x324f();return a136_0xf7d7=function(_0xf7d7cf,_0x199c85){_0xf7d7cf=_0xf7d7cf-0x17c;let _0x1b733b=_0x324f5b[_0xf7d7cf];return _0x1b733b;},a136_0xf7d7(_0x39e61c,_0x138b40);}a136_0x3778a9[a136_0x52397e(0x18c)]=getPuppeteerUrl,a136_0x3778a9[a136_0x52397e(0x180)]=convertW3CToJsonWire,a136_0x3778a9['generatePuppeteerUrl']=generatePuppeteerUrl,a136_0x3778a9[a136_0x52397e(0x194)]=isPuppeteerAvailable,a136_0x3778a9[a136_0x52397e(0x1a9)]=getPuppeteerVersion,a136_0x3778a9[a136_0x52397e(0x1a7)]=checkPuppeteerAndBootstrapCli,module[a136_0x52397e(0x1a3)]=a136_0x3778a9;function a136_0x324f(){const _0x3b4537=['1207128OtttuY','dQSnR','puppeteer-core','eDgAY','browserstack.buildProductMap','../bin/utils/constants','exports','browserstack.testhubBuildUuid','./helper','true','checkPuppeteerAndBootstrapCli','9LfUCXk','getPuppeteerVersion','nCfWD','73572KtoXsY','19284aJaLbB','cmwon','BROWSERSTACK_PUPPETEER','config','cliConfig','bstack:options','../bin/v2/browserstackCLI','setBrowserstackConfig','bootstrap','getPackageVersion','CDCWD','../bin/utils/apiUtilityMethods','\x20for\x20','puppeteer','util','PUPPETEER','setFrameworkDetail','38849000HEFfwz','entries','fipsQ','FDcPB','convertW3CToJsonWire','getPuppeteerHubUrl','cUXqM','\x20flow','792144UHAwWx','env','HdJDW','4ggpRpc','4768555IPBSbR','zJmOD','KoHXl','debug','getPuppeteerUrl','BROWSERSTACK_TESTHUB_UUID','getInstance','YkkAa','stringify','turboScaleUrl','aEmnT','[PuppeteerHelper]\x20Detected\x20Puppeteer\x20version\x20','isPuppeteerAvailable','oNNqP','configPath','ZsUYA','1722RDQblZ','resolve','892450RijDXT','deHUf','KzRxj'];a136_0x324f=function(){return _0x3b4537;};return a136_0x324f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a137_0x1cf184=a137_0x1224;(function(_0x131599,_0x5eebca){const _0x2f5482=a137_0x1224,_0x2cb818=_0x131599();while(!![]){try{const _0x4ec3c6=-parseInt(_0x2f5482(0xe5))/0x1*(parseInt(_0x2f5482(0xf4))/0x2)+-parseInt(_0x2f5482(0xfd))/0x3*(parseInt(_0x2f5482(0xf1))/0x4)+-parseInt(_0x2f5482(0xeb))/0x5*(-parseInt(_0x2f5482(0x105))/0x6)+-parseInt(_0x2f5482(0xf8))/0x7*(-parseInt(_0x2f5482(0x116))/0x8)+parseInt(_0x2f5482(0x10a))/0x9+-parseInt(_0x2f5482(0x115))/0xa*(-parseInt(_0x2f5482(0xe6))/0xb)+-parseInt(_0x2f5482(0x102))/0xc;if(_0x4ec3c6===_0x5eebca)break;else _0x2cb818['push'](_0x2cb818['shift']());}catch(_0x401a2d){_0x2cb818['push'](_0x2cb818['shift']());}}}(a137_0x559b,0xf0107));function a137_0x559b(){const _0x1d7d92=['status_code','request','headers','1651460rhSbrm','url','sXgGN','2czTQCZ','monkeypatch','assign','hostname','1737799lUJVSw','pathname','yBlad','path','znkFa','3jnnmtp','http','TzFYi','call','GHYTH','14074632DqRqxk','EiVzp','end','13866RfqUZw','EtLFE','prototype','pQsst','zocNI','4869747ZnkKwG','exports','removeListener','RBwnQ','slice','unpatch','response','method','statusCode','once','now','7160RxDPvL','32RGPqZR','restore','error','https','wlvPa','1024163Jtmlpi','29007QqADfO','rNSwV','socket','lYken','object','370ysbuAN','BFBWV','host'];a137_0x559b=function(){return _0x1d7d92;};return a137_0x559b();}const http=require(a137_0x1cf184(0xfe)),https=require(a137_0x1cf184(0xe3)),monkeypatch=require(a137_0x1cf184(0xf5));function spy(_0x1a26cc){const _0x215ea6=a137_0x1cf184,_0x176c89={'EiVzp':function(_0x381a85,_0x3571ba){return _0x381a85-_0x3571ba;},'GHYTH':function(_0x459628,_0x524f65,_0x53053c){return _0x459628(_0x524f65,_0x53053c);},'yBlad':_0x215ea6(0xe2),'RBwnQ':function(_0x52dd2e,..._0x38e948){return _0x52dd2e(..._0x38e948);},'sXgGN':function(_0x295f11,_0x3f0dc8){return _0x295f11 instanceof _0x3f0dc8;},'TzFYi':function(_0x5acd29,_0x8f9928){return _0x5acd29===_0x8f9928;},'wdfQn':_0x215ea6(0xea),'lYken':_0x215ea6(0x110),'qJdYT':_0x215ea6(0xe8),'BFBWV':function(_0x57e003,_0x53f101,_0x405195,_0x3ebb7f){return _0x57e003(_0x53f101,_0x405195,_0x3ebb7f);},'znkFa':_0x215ea6(0x104),'rNSwV':function(_0x3f814b,_0x66ee,_0x21770a,_0x329843){return _0x3f814b(_0x66ee,_0x21770a,_0x329843);},'pQsst':_0x215ea6(0xef)},_0x3aa718=function(){const _0x22f2a1=_0x215ea6,_0x41edf8={'wlvPa':function(_0x5bab23,_0x132c75){const _0x50fb06=a137_0x1224;return _0x176c89[_0x50fb06(0xf3)](_0x5bab23,_0x132c75);},'uDBBo':function(_0x18b7e0,_0x261c20){const _0x5f4976=a137_0x1224;return _0x176c89[_0x5f4976(0xff)](_0x18b7e0,_0x261c20);},'zocNI':_0x176c89['wdfQn'],'EtLFE':function(_0x2dd051,_0x12775d,_0x2ccbb){const _0x4994ef=a137_0x1224;return _0x176c89[_0x4994ef(0x101)](_0x2dd051,_0x12775d,_0x2ccbb);}},_0x51be93=arguments[0x0],_0x37693c=Array[_0x22f2a1(0x107)][_0x22f2a1(0x10e)][_0x22f2a1(0x100)](arguments,0x1),_0x2c2948=_0x51be93['apply'](this,_0x37693c);let _0x54d292=Date[_0x22f2a1(0x114)](),_0x2b7998;const _0x522b5d={};_0x37693c['forEach'](_0x55d1a0=>{const _0x1eaefe=_0x22f2a1;if(_0x41edf8[_0x1eaefe(0xe4)](_0x55d1a0,URL)){const _0x54fb7f={};_0x54fb7f['url']=_0x55d1a0,Object[_0x1eaefe(0xf6)](_0x522b5d,_0x54fb7f);}else _0x41edf8['uDBBo'](typeof _0x55d1a0,_0x41edf8[_0x1eaefe(0x109)])&&Object[_0x1eaefe(0xf6)](_0x522b5d,_0x55d1a0);});const _0x5cb58f=_0x2fca0e=>{const _0x2bd7e2=_0x22f2a1,_0x2c6d39={};_0x2c6d39[_0x2bd7e2(0xed)]=_0x522b5d[_0x2bd7e2(0xed)]||_0x522b5d[_0x2bd7e2(0xf7)]||_0x522b5d['url']&&(_0x522b5d[_0x2bd7e2(0xf2)]['host']||_0x522b5d[_0x2bd7e2(0xf2)][_0x2bd7e2(0xf7)]),_0x2c6d39[_0x2bd7e2(0xfb)]=_0x522b5d[_0x2bd7e2(0xfb)]||_0x522b5d[_0x2bd7e2(0xf2)]&&_0x522b5d[_0x2bd7e2(0xf2)][_0x2bd7e2(0xf9)],_0x2c6d39[_0x2bd7e2(0x111)]=_0x522b5d[_0x2bd7e2(0x111)],_0x2c6d39[_0x2bd7e2(0xf0)]=_0x522b5d['headers'],_0x41edf8[_0x2bd7e2(0x106)](_0x1a26cc,_0x2fca0e,_0x2c6d39);};return _0x2c2948[_0x22f2a1(0x113)](_0x176c89[_0x22f2a1(0xe9)],_0xcbd92b=>{const _0x2b46e8=_0x22f2a1,_0x2b9b24=_0x176c89[_0x2b46e8(0x103)](Date[_0x2b46e8(0x114)](),_0x54d292),_0xdb17e={};_0xdb17e[_0x2b46e8(0xf7)]=_0x522b5d['host']||_0x522b5d[_0x2b46e8(0xf7)]||_0x522b5d[_0x2b46e8(0xf2)]&&(_0x522b5d['url']['host']||_0x522b5d['url'][_0x2b46e8(0xf7)]),_0xdb17e[_0x2b46e8(0xfb)]=_0x522b5d['path']||_0x522b5d[_0x2b46e8(0xf2)]&&_0x522b5d[_0x2b46e8(0xf2)][_0x2b46e8(0xf9)],_0xdb17e[_0x2b46e8(0x111)]=_0x522b5d[_0x2b46e8(0x111)],_0xdb17e[_0x2b46e8(0xf0)]=_0x522b5d[_0x2b46e8(0xf0)],_0xdb17e[_0x2b46e8(0xee)]=_0xcbd92b[_0x2b46e8(0x112)],_0xdb17e['duration_ms']=_0x2b9b24,_0x176c89['GHYTH'](_0x1a26cc,null,_0xdb17e),_0x2b7998[_0x2b46e8(0x10c)](_0x176c89[_0x2b46e8(0xfa)],_0x5cb58f);}),_0x2c2948['on'](_0x176c89['qJdYT'],_0x341ed8=>{const _0x31c457=_0x22f2a1;_0x2b7998=_0x341ed8,_0x341ed8[_0x31c457(0x113)](_0x176c89['yBlad'],_0x5cb58f);}),_0x176c89[_0x22f2a1(0xec)](monkeypatch,_0x2c2948,_0x176c89[_0x22f2a1(0xfc)],(_0x360df0,..._0x482a44)=>{const _0x1d3409=_0x22f2a1;_0x54d292=Date['now'](),_0x176c89[_0x1d3409(0x10d)](_0x360df0,..._0x482a44);}),_0x2c2948;};_0x176c89['rNSwV'](monkeypatch,http,_0x176c89[_0x215ea6(0x108)],_0x3aa718),_0x176c89[_0x215ea6(0xe7)](monkeypatch,https,_0x176c89[_0x215ea6(0x108)],_0x3aa718);}function a137_0x1224(_0x101238,_0x4c1fbb){const _0x559bd0=a137_0x559b();return a137_0x1224=function(_0x12240c,_0x2fb70b){_0x12240c=_0x12240c-0xe1;let _0x60a6f8=_0x559bd0[_0x12240c];return _0x60a6f8;},a137_0x1224(_0x101238,_0x4c1fbb);}function restore(){const _0x2f394f=a137_0x1cf184;http['request'][_0x2f394f(0x10f)](),https['request']['unpatch']();}const a137_0x51cf23={};a137_0x51cf23['spy']=spy,a137_0x51cf23[a137_0x1cf184(0xe1)]=restore,module[a137_0x1cf184(0x10b)]=a137_0x51cf23;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a138_0x24cc(_0x2c1c98,_0x39e176){const _0x57257c=a138_0x5725();return a138_0x24cc=function(_0x24cc45,_0x5b523){_0x24cc45=_0x24cc45-0x1d1;let _0x36aa5f=_0x57257c[_0x24cc45];return _0x36aa5f;},a138_0x24cc(_0x2c1c98,_0x39e176);}function a138_0x5725(){const _0x502622=['fDnDj','./performance/performance-tester','9hctNtH','5639160qLdWgz','497873HOjJlG','keepAliveMsecs','EvQKf','387863OkGuTR','PbTHp','agent','prototype','LdUyr','4NXqYxy','./performance/constants','Agent','577209QxBGrr','protocol','6vJfcWF','503545VrNckf','TjsGh','4075672FYdGNV','NoeFH','globalAgent','CxWVp','request','CWjBh','hasOwnProperty','keepAlive','https','http','KEEP_ALIVE','cCxcx','https:','measureWrapper','920016FCqzCB'];a138_0x5725=function(){return _0x502622;};return a138_0x5725();}const a138_0x46a46d=a138_0x24cc;(function(_0x4b419b,_0x387393){const _0x3612fd=a138_0x24cc,_0x23b6ba=_0x4b419b();while(!![]){try{const _0x5acb0a=-parseInt(_0x3612fd(0x1d3))/0x1+parseInt(_0x3612fd(0x1f1))/0x2+-parseInt(_0x3612fd(0x1de))/0x3*(-parseInt(_0x3612fd(0x1db))/0x4)+-parseInt(_0x3612fd(0x1e1))/0x5*(-parseInt(_0x3612fd(0x1e0))/0x6)+parseInt(_0x3612fd(0x1d6))/0x7+-parseInt(_0x3612fd(0x1e3))/0x8*(-parseInt(_0x3612fd(0x1d1))/0x9)+-parseInt(_0x3612fd(0x1d2))/0xa;if(_0x5acb0a===_0x387393)break;else _0x23b6ba['push'](_0x23b6ba['shift']());}catch(_0x1b04f4){_0x23b6ba['push'](_0x23b6ba['shift']());}}}(a138_0x5725,0x3e8c7));const PerformanceTester=require(a138_0x46a46d(0x1f3)),{AUTOMATE_EVENTS:PerformanceEvents}=require(a138_0x46a46d(0x1dc));module['exports']=PerformanceTester[a138_0x46a46d(0x1f0)](PerformanceEvents[a138_0x46a46d(0x1ed)],function(){const _0x4f0171=a138_0x46a46d,_0x1796d2={'LdUyr':function(_0x37aae4,_0x2817bc){return _0x37aae4===_0x2817bc;},'fDnDj':_0x4f0171(0x1ef),'NoeFH':_0x4f0171(0x1d8),'cCxcx':function(_0x46e582,_0xae4e41,_0x50db08){return _0x46e582(_0xae4e41,_0x50db08);},'CWjBh':function(_0x43fcab,_0x488b46,_0x1a5a6f){return _0x43fcab(_0x488b46,_0x1a5a6f);},'TjsGh':function(_0x5d93ac,_0x4dbba7){return _0x5d93ac(_0x4dbba7);},'EtHHw':_0x4f0171(0x1ec),'PbTHp':function(_0x3284dd,_0x40a4a8){return _0x3284dd(_0x40a4a8);},'EvQKf':_0x4f0171(0x1eb),'CxWVp':function(_0x18707f,_0x71d869){return _0x18707f*_0x71d869;},'cCWuo':_0x4f0171(0x1ea)},_0x490bda=_0x1796d2[_0x4f0171(0x1e2)](require,_0x1796d2['EtHHw']),_0x59d8a3=_0x1796d2[_0x4f0171(0x1d7)](require,_0x1796d2[_0x4f0171(0x1d5)]),_0x331fa7=_0x1796d2[_0x4f0171(0x1e6)](0x1e,0x3e8);if(_0x490bda['globalAgent']&&Object[_0x4f0171(0x1d9)][_0x4f0171(0x1e9)]['call'](_0x490bda[_0x4f0171(0x1e5)],_0x1796d2['cCWuo']))_0x490bda['globalAgent'][_0x4f0171(0x1ea)]=!![],_0x59d8a3['globalAgent']['keepAlive']=!![],_0x490bda[_0x4f0171(0x1e5)][_0x4f0171(0x1d4)]=_0x331fa7,_0x59d8a3[_0x4f0171(0x1e5)][_0x4f0171(0x1d4)]=_0x331fa7;else{const _0x3f4926={};_0x3f4926['keepAlive']=!![],_0x3f4926[_0x4f0171(0x1d4)]=_0x331fa7;const _0x5cc2fe=new _0x490bda[(_0x4f0171(0x1dd))](_0x3f4926),_0x23a280={};_0x23a280[_0x4f0171(0x1ea)]=!![],_0x23a280[_0x4f0171(0x1d4)]=_0x331fa7;const _0xddfa52=new _0x59d8a3[(_0x4f0171(0x1dd))](_0x23a280),_0x2ecb11=_0x490bda[_0x4f0171(0x1e7)],_0x2eaba8=_0x59d8a3[_0x4f0171(0x1e7)];_0x490bda[_0x4f0171(0x1e7)]=function(_0xe14ad8,_0x2af24f){const _0x2773b4=_0x4f0171;if(_0x1796d2[_0x2773b4(0x1da)](_0xe14ad8[_0x2773b4(0x1df)],_0x1796d2[_0x2773b4(0x1f2)]))return _0xe14ad8[_0x1796d2[_0x2773b4(0x1e4)]]=_0xddfa52,_0x1796d2[_0x2773b4(0x1ee)](_0x2eaba8,_0xe14ad8,_0x2af24f);return _0xe14ad8[_0x1796d2[_0x2773b4(0x1e4)]]=_0x5cc2fe,_0x1796d2[_0x2773b4(0x1e8)](_0x2ecb11,_0xe14ad8,_0x2af24f);};}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a139_0x1ec3(_0x4dc8f2,_0x44785e){const _0x371ab2=a139_0x371a();return a139_0x1ec3=function(_0x1ec340,_0x57c231){_0x1ec340=_0x1ec340-0x1dd;let _0x4e3363=_0x371ab2[_0x1ec340];return _0x4e3363;},a139_0x1ec3(_0x4dc8f2,_0x44785e);}const a139_0x204803=a139_0x1ec3;(function(_0x522724,_0x461b62){const _0xae2497=a139_0x1ec3,_0x18740e=_0x522724();while(!![]){try{const _0x253274=parseInt(_0xae2497(0x1eb))/0x1+parseInt(_0xae2497(0x1ee))/0x2*(parseInt(_0xae2497(0x1dd))/0x3)+-parseInt(_0xae2497(0x1ec))/0x4*(-parseInt(_0xae2497(0x1e4))/0x5)+parseInt(_0xae2497(0x1e9))/0x6*(parseInt(_0xae2497(0x1de))/0x7)+-parseInt(_0xae2497(0x1f7))/0x8*(parseInt(_0xae2497(0x1ea))/0x9)+-parseInt(_0xae2497(0x1ef))/0xa*(-parseInt(_0xae2497(0x1e7))/0xb)+-parseInt(_0xae2497(0x1f6))/0xc*(parseInt(_0xae2497(0x1e3))/0xd);if(_0x253274===_0x461b62)break;else _0x18740e['push'](_0x18740e['shift']());}catch(_0x4acd6f){_0x18740e['push'](_0x18740e['shift']());}}}(a139_0x371a,0xcf844));function isInternalFrameFile(_0xb61963){const _0x1bad59=a139_0x1ec3,_0x493c68={};_0x493c68[_0x1bad59(0x1f4)]=_0x1bad59(0x1e2),_0x493c68[_0x1bad59(0x1fb)]=_0x1bad59(0x1f3),_0x493c68['Qbjcc']=_0x1bad59(0x1f0),_0x493c68[_0x1bad59(0x1e0)]=_0x1bad59(0x1e8),_0x493c68[_0x1bad59(0x1f5)]='internal/';const _0x3271d0=_0x493c68,_0x28b028=_0x3271d0[_0x1bad59(0x1f4)]['split']('|');let _0x470168=0x0;while(!![]){switch(_0x28b028[_0x470168++]){case'0':if(_0xb61963[_0x1bad59(0x1e6)](_0x3271d0['yQode']))return!![];continue;case'1':if(_0xb61963[_0x1bad59(0x1e6)](_0x3271d0[_0x1bad59(0x1e1)]))return!![];continue;case'2':if(!_0xb61963)return!![];continue;case'3':if(_0xb61963[_0x1bad59(0x1fa)](_0x3271d0[_0x1bad59(0x1e0)])||_0xb61963[_0x1bad59(0x1fa)](_0x3271d0[_0x1bad59(0x1f5)]))return!![];continue;case'4':return![];}break;}}function pickUserFrameFile(_0x4f4b9b){const _0xd7f2e1=a139_0x1ec3,_0x117da1={'DJxSK':function(_0x7a4fa1,_0xebb8f9){return _0x7a4fa1!==_0xebb8f9;},'VgXML':'function','pYDBq':function(_0x15c0d6,_0x4db9c7){return _0x15c0d6(_0x4db9c7);}};if(!Array[_0xd7f2e1(0x1e5)](_0x4f4b9b))return null;for(const _0x3f7997 of _0x4f4b9b){if(!_0x3f7997||_0x117da1[_0xd7f2e1(0x1f8)](typeof _0x3f7997[_0xd7f2e1(0x1f9)],_0x117da1[_0xd7f2e1(0x1df)]))continue;const _0x438f16=_0x3f7997[_0xd7f2e1(0x1f9)]();if(!_0x117da1[_0xd7f2e1(0x1f2)](isInternalFrameFile,_0x438f16))return _0x438f16;}return null;}function a139_0x371a(){const _0x1a0bdc=['node_modules','isInternalFrameFile','pYDBq','<anonymous>','qgBfL','HUjpu','21180iBOHqz','84264DZphcf','DJxSK','getFileName','startsWith','yQode','375YEmFMO','10446709NHfAqf','VgXML','bzhSW','Qbjcc','2|1|3|0|4','24128bPbNpD','581810jmvOWA','isArray','includes','363egpXht','node:','6fTJZpx','747kFjjFS','1055600wQwFKZ','4aKhQFE','pickUserFrameFile','22286XylKWN','285710DtrGHf'];a139_0x371a=function(){return _0x1a0bdc;};return a139_0x371a();}const a139_0x35db65={};a139_0x35db65[a139_0x204803(0x1f1)]=isInternalFrameFile,a139_0x35db65[a139_0x204803(0x1ed)]=pickUserFrameFile,module['exports']=a139_0x35db65;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a140_0x301c(_0x55d805,_0x55b067){const _0x423dbb=a140_0x423d();return a140_0x301c=function(_0x301c75,_0x5e752e){_0x301c75=_0x301c75-0xa3;let _0x5d859f=_0x423dbb[_0x301c75];return _0x5d859f;},a140_0x301c(_0x55d805,_0x55b067);}const a140_0x5e2c21=a140_0x301c;(function(_0xaf2044,_0x4cc03c){const _0x40b580=a140_0x301c,_0x337064=_0xaf2044();while(!![]){try{const _0x40c2b0=parseInt(_0x40b580(0xba))/0x1+-parseInt(_0x40b580(0xad))/0x2*(parseInt(_0x40b580(0xa8))/0x3)+-parseInt(_0x40b580(0xb7))/0x4*(parseInt(_0x40b580(0xab))/0x5)+parseInt(_0x40b580(0xc4))/0x6*(-parseInt(_0x40b580(0xa6))/0x7)+parseInt(_0x40b580(0xa3))/0x8*(parseInt(_0x40b580(0xa7))/0x9)+parseInt(_0x40b580(0xc9))/0xa+parseInt(_0x40b580(0xbc))/0xb;if(_0x40c2b0===_0x4cc03c)break;else _0x337064['push'](_0x337064['shift']());}catch(_0x132509){_0x337064['push'](_0x337064['shift']());}}}(a140_0x423d,0x52bc9));const path=require(a140_0x5e2c21(0xb1)),{logDir}=require('../logger'),a140_0x868cb7={};a140_0x868cb7[a140_0x5e2c21(0xb9)]='Playwright',a140_0x868cb7[a140_0x5e2c21(0xb0)]=a140_0x5e2c21(0xc0),a140_0x868cb7['CODECEPT']='codeceptjs',a140_0x868cb7[a140_0x5e2c21(0xc2)]=a140_0x5e2c21(0xb6),a140_0x868cb7['JEST']='jest',a140_0x868cb7[a140_0x5e2c21(0xbe)]='cucumber',a140_0x868cb7[a140_0x5e2c21(0xca)]='puppeteer',a140_0x868cb7[a140_0x5e2c21(0xa9)]=a140_0x5e2c21(0xae),module[a140_0x5e2c21(0xa5)]={'consoleHolder':Object[a140_0x5e2c21(0xb2)]({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':a140_0x5e2c21(0xaa),'OBSERVABILITY_UPLOAD_API_URL':'https://upload-observability.browserstack.com','EVENT_ENDPOINT':a140_0x5e2c21(0xc3),'BATCH_ENDPOINT':'api/v1/batch','SCREENSHOT_ENDPOINT':a140_0x5e2c21(0xc8),'UPLOAD_ATTACHMENT_ENDPOINT':a140_0x5e2c21(0xbb),'DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS':0xea60,'MAX_ALLOWED_PLAYWRIGHT_TRACE_SIZE':0x64*0x400*0x400,'DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS':0x64,'DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS':0x1f4,'TEMP_STORE_DIR_NAME':path[a140_0x5e2c21(0xbf)](logDir,a140_0x5e2c21(0xb3)),'FRAMEWORKS':a140_0x868cb7};function a140_0x423d(){const _0x261cbc=['stag','MOCHA','path','assign','.obs_test_details','https://upload-observability-preprod.bsstag.com','BROWSERSTACK_ENV','codeceptjs-cucumber','101672KrtHST','https://collector-observability-devtestops.bsstag.com','PLAYWRIGHT','463742aooYWG','upload-attachments','4233405pdbJMs','https://upload-observability-devtestops-ssi.bsstag.com','CUCUMBER','join','mocha','OBSERVABILITY_UPLOAD_API_URL','CODECEPT_CUCUMBER','api/v1/event','6GsjImM','prod','pre-prod','env','api/v1/screenshots','5923650aHdVtU','PUPPETEER','1435160AeKodv','https://collector-observability-preprod.bsstag.com','exports','3792005XYjzyt','9EjNNtI','21MpsEIn','NEWMAN','https://collector-observability.browserstack.com','35cJAezg','staging','160522TNWPrn','newman'];a140_0x423d=function(){return _0x261cbc;};return a140_0x423d();}const _env=(process[a140_0x5e2c21(0xc7)][a140_0x5e2c21(0xb5)]||a140_0x5e2c21(0xc5))['toLowerCase']();if(_env===a140_0x5e2c21(0xac)||_env===a140_0x5e2c21(0xaf))module[a140_0x5e2c21(0xa5)]['API_URL']=a140_0x5e2c21(0xb8),module[a140_0x5e2c21(0xa5)][a140_0x5e2c21(0xc1)]=a140_0x5e2c21(0xbd);else(_env==='preprod'||_env===a140_0x5e2c21(0xc6))&&(module[a140_0x5e2c21(0xa5)]['API_URL']=a140_0x5e2c21(0xa4),module[a140_0x5e2c21(0xa5)][a140_0x5e2c21(0xc1)]=a140_0x5e2c21(0xb4));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a140_0xaf780c=a140_0x22a7;(function(_0x5ceb3b,_0x452c55){const _0x4d8ce2=a140_0x22a7,_0x16e8bd=_0x5ceb3b();while(!![]){try{const _0x3988d5=parseInt(_0x4d8ce2(0x1e4))/0x1+parseInt(_0x4d8ce2(0x237))/0x2+-parseInt(_0x4d8ce2(0x1e3))/0x3*(parseInt(_0x4d8ce2(0x203))/0x4)+-parseInt(_0x4d8ce2(0x24b))/0x5+parseInt(_0x4d8ce2(0x1fd))/0x6*(parseInt(_0x4d8ce2(0x213))/0x7)+parseInt(_0x4d8ce2(0x1ee))/0x8+parseInt(_0x4d8ce2(0x221))/0x9*(-parseInt(_0x4d8ce2(0x231))/0xa);if(_0x3988d5===_0x452c55)break;else _0x16e8bd['push'](_0x16e8bd['shift']());}catch(_0x31f55d){_0x16e8bd['push'](_0x16e8bd['shift']());}}}(a140_0x14c0,0x81a84));function a140_0x14c0(){const _0x36e714=['JIZTh','tfVUl','[Crash_Report_Upload]\x20Failed\x20due\x20to\x20','true','YoukX','frameworkName','initialize','password','forEach','o11yErrorHandler','DhLIf','AVWfK','Finished\x20::\x20','1141udAmcg','USER_CONFIG_FOR_REPORTING','csQge','setAllDetails','frameworkVersion','env','util','gRZPW','CrashReporter','../performance/performance-tester','Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20','YbyKE','sBHBZ','call','9bQhlmP','tWMlK','\x20--\x20','kQwUk','frameworkDetails','stringify','accessKey','/api/v1/analytics','pid','../helper','jkeLe','user','name','HmYNl','getCredentials','exports','2025360hfDRAD','uploadCrashReport','function','Lmlwu','setConfigDetails','uvUVS','1319764ZEMijg','X-BSTACK-TESTOPS','CDraO','apply','.\x20Error\x20-\x20','username','[Crash_Report_Upload]\x20Success\x20response:\x20','getConfig','kWuqY','qnfSj','JNynr','credentials','BS_TESTOPS_BUILD_HASHED_ID','DrWzk','fzjNH','lWyAO','VCDtr','captureError','DDCcJ','MjdQa','1411205Tbrmef',',\x20PID\x20-\x20','174tXOgDy','409434frrjpN','WlxqD','setFrameworkDetails','userConfig','BROWSERSTACK_O11Y_PERF_MEASUREMENT','CREDENTIALS_FOR_CRASH_REPORTING','catch','getPerformance','Error\x20in\x20executing\x20','dyAdx','5879456RucRfk','includes','getFramework','timerify','then','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','KvikU','Qwysf',',\x20Argument\x20-\x20','filterPII','.\x20Args\x20-\x20','toString','o11yClassErrorHandler','toLowerCase','format','222gYOkoF','keys','recursivelyDeletePIIKeysFromObject','length','setCredentials','constructor','54788VGMlhP','auth','parse'];a140_0x14c0=function(){return _0x36e714;};return a140_0x14c0();}const util=require(a140_0xaf780c(0x219)),PerformanceTester=require(a140_0xaf780c(0x21c)),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require('./utils'),{getAgentVersion,nestedKeyValue}=require(a140_0xaf780c(0x22a)),o11yErrorHandler=(_0x415a5e,_0x23570a='',_0x47c9a3=[''],_0x429489=![])=>{const _0x19f11b={'sBHBZ':function(_0x48faea,_0x25f711){return _0x48faea(_0x25f711);},'YbyKE':function(_0xf680c1,_0x2f644c,_0x17f433){return _0xf680c1(_0x2f644c,_0x17f433);},'AVWfK':function(_0x269f79,_0x54e476,_0x1c66ab){return _0x269f79(_0x54e476,_0x1c66ab);},'dyAdx':function(_0x2bd178,_0x583f36){return _0x2bd178 instanceof _0x583f36;},'DDCcJ':function(_0x4e0c8a,_0x44ce1b,_0x2bfa8b,_0x588a96,_0x336faf){return _0x4e0c8a(_0x44ce1b,_0x2bfa8b,_0x588a96,_0x336faf);}};return function(..._0x20c8f3){const _0x2182a5=a140_0x22a7;try{let _0x1b14db=_0x415a5e;process['env'][_0x2182a5(0x1e8)]&&(_0x1b14db=PerformanceTester['getPerformance']()['timerify'](_0x1b14db));_0x429489&&_0x19f11b[_0x2182a5(0x21f)](trace,'Started\x20::\x20'+_0x23570a+_0x2182a5(0x1e2)+process[_0x2182a5(0x229)]+',\x20Argument\x20-\x20'+_0x19f11b[_0x2182a5(0x21e)](nestedKeyValue,arguments[0x0],_0x47c9a3));const _0x3b177b=_0x1b14db[_0x2182a5(0x23a)](null,arguments);_0x429489&&_0x19f11b[_0x2182a5(0x21f)](trace,_0x2182a5(0x212)+_0x23570a+_0x2182a5(0x1e2)+process[_0x2182a5(0x229)]+_0x2182a5(0x1f6)+_0x19f11b[_0x2182a5(0x211)](nestedKeyValue,arguments[0x0],_0x47c9a3));if(_0x19f11b[_0x2182a5(0x1ed)](_0x3b177b,Promise))return _0x3b177b[_0x2182a5(0x1ea)](_0x263736=>processError(_0x263736,_0x415a5e,_0x20c8f3,_0x23570a));return _0x3b177b;}catch(_0x4e9a71){_0x19f11b[_0x2182a5(0x249)](processError,_0x4e9a71,_0x415a5e,_0x20c8f3,_0x23570a);}};},o11yClassErrorHandler=(_0x412332,_0x39e8a1,_0x2b21ae='')=>{const _0x32556d=a140_0xaf780c,_0x5c0c4f={'kQwUk':function(_0x5aae33,_0x589068){return _0x5aae33 instanceof _0x589068;},'uvUVS':function(_0x24acce,_0x11b09b,_0x53042e,_0x5b6946,_0x4eeb36){return _0x24acce(_0x11b09b,_0x53042e,_0x5b6946,_0x4eeb36);},'DhLIf':function(_0x5e9d58,_0x395b98){return _0x5e9d58===_0x395b98;},'gRZPW':_0x32556d(0x233),'ieTyB':function(_0x59fdb2,_0x14c37c){return _0x59fdb2!==_0x14c37c;},'UXyut':_0x32556d(0x202),'DrWzk':function(_0x2eaa83,_0x17baff){return _0x2eaa83<_0x17baff;}},_0x5f1b87=_0x412332['prototype'];if(_0x5c0c4f[_0x32556d(0x244)](Object['getOwnPropertyNames'](_0x5f1b87)[_0x32556d(0x200)],0x2))return _0x412332;return Object['getOwnPropertyNames'](_0x5f1b87)[_0x32556d(0x20e)](_0x283211=>{const _0x4be22c=_0x32556d,_0x3450c5={'qnfSj':function(_0x4e4a17,_0x8870fd){const _0x239806=a140_0x22a7;return _0x5c0c4f[_0x239806(0x224)](_0x4e4a17,_0x8870fd);},'CDraO':function(_0x3aadc2,_0x27bd35,_0x4bf5bc,_0x585f5f,_0x310722){const _0x4208c4=a140_0x22a7;return _0x5c0c4f[_0x4208c4(0x236)](_0x3aadc2,_0x27bd35,_0x4bf5bc,_0x585f5f,_0x310722);}};if(!(_0x39e8a1&&_0x39e8a1[_0x4be22c(0x1ef)](_0x283211)))return;const _0x329c21=_0x5f1b87[_0x283211];_0x5c0c4f[_0x4be22c(0x210)](typeof _0x329c21,_0x5c0c4f[_0x4be22c(0x21a)])&&_0x5c0c4f['ieTyB'](_0x283211,_0x5c0c4f['UXyut'])&&Object['defineProperty'](_0x5f1b87,_0x283211,{'writable':!![],'value':function(..._0xaeadb2){const _0x59c88d=_0x4be22c;try{const _0x2cc77d=(process[_0x59c88d(0x218)][_0x59c88d(0x1e8)]?PerformanceTester[_0x59c88d(0x1eb)]()[_0x59c88d(0x1f1)](_0x329c21):_0x329c21)[_0x59c88d(0x220)](this,..._0xaeadb2);if(_0x3450c5[_0x59c88d(0x240)](_0x2cc77d,Promise))return _0x2cc77d[_0x59c88d(0x1ea)](_0x433e0e=>processError(_0x433e0e,_0x329c21,_0xaeadb2,_0x2b21ae));return _0x2cc77d;}catch(_0x3de633){_0x3450c5[_0x59c88d(0x239)](processError,_0x3de633,_0x329c21,_0xaeadb2,_0x2b21ae);}}});}),_0x412332;};function processError(_0x260d2d,_0x529915,_0x2c6d15,_0x274dd6){const _0x47155d=a140_0xaf780c,_0x2924b={'GwQYd':function(_0x469c87,_0x4421f5){return _0x469c87(_0x4421f5);}};_0x2924b['GwQYd'](debug,_0x47155d(0x1ec)+_0x529915[_0x47155d(0x22d)]+_0x47155d(0x223)+_0x274dd6+_0x47155d(0x23b)+util[_0x47155d(0x1fc)](_0x260d2d)+_0x47155d(0x1f8)+_0x2c6d15+'.'),PerformanceTester[_0x47155d(0x248)](_0x260d2d);let _0x503ecb;try{_0x503ecb=JSON[_0x47155d(0x226)](_0x2c6d15);}catch(_0x21e4c6){const _0x36f917={};_0x36f917['depth']=0x2,_0x503ecb=util['inspect'](_0x2c6d15,_0x36f917);}CrashReporter['uploadCrashReport'](_0x47155d(0x1ec)+_0x529915[_0x47155d(0x22d)]+'\x20--\x20'+_0x274dd6+'.\x20Error\x20-\x20'+_0x260d2d+_0x47155d(0x1f8)+_0x503ecb+'.',_0x260d2d&&_0x260d2d['stack']);}class CrashReporter{static [a140_0xaf780c(0x1e7)]={};static [a140_0xaf780c(0x242)];static [a140_0xaf780c(0x225)]={};static[a140_0xaf780c(0x20c)](_0x407ddc,_0x18a057,_0x483623=null){const _0x42af0f=a140_0xaf780c,_0x5e4560={'MjdQa':function(_0x184ad1,_0x4d8dcd){return _0x184ad1(_0x4d8dcd);},'JIZTh':function(_0x15a91c,_0x829b02){return _0x15a91c(_0x829b02);}},_0x6c1732=_0x407ddc['frameworkName'],_0x4267a6=_0x407ddc[_0x42af0f(0x217)];!_0x483623&&(_0x483623=_0x5e4560['MjdQa'](getBrowserStackConfig,_0x6c1732));!_0x4267a6&&_0x5e4560[_0x42af0f(0x206)](getFrameworkVersion,_0x6c1732);const _0x220947={};_0x220947[_0x42af0f(0x20b)]=_0x6c1732,_0x220947[_0x42af0f(0x217)]=_0x4267a6,this[_0x42af0f(0x216)](_0x220947,_0x18a057,_0x5e4560[_0x42af0f(0x24a)](getUserCredentials,_0x483623));}static[a140_0xaf780c(0x201)](_0x19750d,_0x4a0342){const _0x43ebb8=a140_0xaf780c,_0x221511={};_0x221511[_0x43ebb8(0x23c)]=_0x19750d,_0x221511['accessKey']=_0x4a0342,this[_0x43ebb8(0x242)]=_0x221511,process['env']['CREDENTIALS_FOR_CRASH_REPORTING']=JSON['stringify'](this[_0x43ebb8(0x242)]);}static['getCredentials'](){const _0x180a31=a140_0xaf780c,_0x1a71c5={'SaknJ':function(_0x24eb99,_0x43a92b){return _0x24eb99(_0x43a92b);}};if(!this[_0x180a31(0x242)]&&process[_0x180a31(0x218)][_0x180a31(0x1e9)])try{this[_0x180a31(0x242)]=JSON[_0x180a31(0x205)](process[_0x180a31(0x218)][_0x180a31(0x1e9)]);}catch(_0x143860){_0x1a71c5['SaknJ'](debug,'Error\x20in\x20parsing\x20credentials\x20from\x20env\x20'+_0x143860[_0x180a31(0x1f9)]());}return this[_0x180a31(0x242)];}static[a140_0xaf780c(0x235)](_0x3b1b0b){const _0x42c9b1=a140_0xaf780c;this[_0x42c9b1(0x1e7)]=this[_0x42c9b1(0x1f7)](_0x3b1b0b),process['env']['USER_CONFIG_FOR_REPORTING']=JSON[_0x42c9b1(0x226)](this[_0x42c9b1(0x1e7)]);}static[a140_0xaf780c(0x23e)](){const _0x5d593a=a140_0xaf780c,_0x54be99={'XFZmW':function(_0xd5fa96,_0x1320f7){return _0xd5fa96===_0x1320f7;},'TDHwz':function(_0x161bc3,_0x154e22){return _0x161bc3(_0x154e22);}};if(_0x54be99['XFZmW'](Object[_0x5d593a(0x1fe)](this['userConfig'])[_0x5d593a(0x200)],0x0)&&process[_0x5d593a(0x218)][_0x5d593a(0x214)])try{this[_0x5d593a(0x1e7)]=JSON[_0x5d593a(0x205)](process[_0x5d593a(0x218)][_0x5d593a(0x214)]);}catch(_0x180f66){_0x54be99['TDHwz'](debug,_0x5d593a(0x21d)+_0x180f66[_0x5d593a(0x1f9)]()),this[_0x5d593a(0x1e7)]={};}return this[_0x5d593a(0x1e7)];}static['setFrameworkDetails'](_0x15b798){const _0xd4c890=a140_0xaf780c;this[_0xd4c890(0x225)]=_0x15b798,process[_0xd4c890(0x218)]['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS']=JSON[_0xd4c890(0x226)](this[_0xd4c890(0x225)]);}static[a140_0xaf780c(0x1f0)](){const _0x2708e9=a140_0xaf780c,_0x3dfe85={'zEWDs':function(_0x5dedf9,_0x239cec){return _0x5dedf9===_0x239cec;},'YoukX':function(_0x1569d5,_0x10ef06){return _0x1569d5(_0x10ef06);}};if(_0x3dfe85['zEWDs'](Object['keys'](this[_0x2708e9(0x225)])[_0x2708e9(0x200)],0x0)&&process[_0x2708e9(0x218)][_0x2708e9(0x1f3)])try{this[_0x2708e9(0x225)]=JSON[_0x2708e9(0x205)](process[_0x2708e9(0x218)][_0x2708e9(0x1f3)]);}catch(_0x47f597){_0x3dfe85[_0x2708e9(0x20a)](debug,'Error\x20in\x20parsing\x20credentials\x20from\x20env\x20'+_0x47f597['toString']());}return this[_0x2708e9(0x225)];}static[a140_0xaf780c(0x216)](_0x1eae0e,_0x189df3,_0x43c6d0){const _0x2ed992=a140_0xaf780c;_0x1eae0e&&this[_0x2ed992(0x1e6)](_0x1eae0e),_0x189df3&&this[_0x2ed992(0x235)](_0x189df3),_0x43c6d0&&this[_0x2ed992(0x201)](_0x43c6d0[_0x2ed992(0x23c)],_0x43c6d0[_0x2ed992(0x227)]);}static async[a140_0xaf780c(0x232)](_0x377e3f,_0x1db335){const _0xd24049=a140_0xaf780c,_0x1ac28c={'tfVUl':function(_0x476789,_0x2c2101){return _0x476789(_0x2c2101);},'Lmlwu':function(_0x4de79a,_0x561de3){return _0x4de79a(_0x561de3);},'csQge':'[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','QHTgI':function(_0x12dbf5){return _0x12dbf5();},'KvikU':_0xd24049(0x228),'jkeLe':'application/json','kWuqY':_0xd24049(0x209),'sSdnf':function(_0x2cefd0,_0x49bb4c,_0x5e1e7b,_0x558934,_0x21d63d,_0x3d7aa8){return _0x2cefd0(_0x49bb4c,_0x5e1e7b,_0x558934,_0x21d63d,_0x3d7aa8);},'Qwysf':'POST'};this[_0xd24049(0x22f)]();if(!this[_0xd24049(0x242)])return _0x1ac28c[_0xd24049(0x234)](debug,_0x1ac28c[_0xd24049(0x215)]);this[_0xd24049(0x23e)](),this[_0xd24049(0x1f0)]();const _0x1ff310={'hashed_id':process[_0xd24049(0x218)][_0xd24049(0x243)],'observability_version':{'sdkVersion':_0x1ac28c['QHTgI'](getAgentVersion),'frameworkName':this[_0xd24049(0x225)][_0xd24049(0x20b)],'frameworkVersion':this['frameworkDetails'][_0xd24049(0x217)]},'exception':{'error':_0x377e3f[_0xd24049(0x1f9)](),'stackTrace':_0x1db335},'config':this[_0xd24049(0x1e7)]},_0x4f11af=_0x1ac28c[_0xd24049(0x1f4)],_0x578ec8={};_0x578ec8['username']=this['credentials'][_0xd24049(0x23c)],_0x578ec8['password']=this['credentials'][_0xd24049(0x227)];const _0x2cabfe={};_0x2cabfe['Content-Type']=_0x1ac28c[_0xd24049(0x22b)],_0x2cabfe[_0xd24049(0x238)]=_0x1ac28c[_0xd24049(0x23f)];const _0x4e0952={};_0x4e0952[_0xd24049(0x204)]=_0x578ec8,_0x4e0952['headers']=_0x2cabfe;const _0x27ac1a=_0x4e0952;_0x1ac28c['sSdnf'](nodeRequest,_0x1ac28c[_0xd24049(0x1f5)],_0x4f11af,_0x1ff310,_0x27ac1a,![])[_0xd24049(0x1f2)](_0x5dece4=>{const _0x58ee03=_0xd24049;_0x1ac28c['tfVUl'](debug,_0x58ee03(0x23d)+JSON['stringify'](_0x5dece4));})[_0xd24049(0x1ea)](_0x562326=>{const _0x42002f=_0xd24049;_0x1ac28c[_0x42002f(0x207)](debug,_0x42002f(0x208)+util[_0x42002f(0x1fc)](_0x562326));});}static[a140_0xaf780c(0x1ff)](_0x2df44b){const _0x47ae80=a140_0xaf780c,_0x31db5f={};_0x31db5f[_0x47ae80(0x1e5)]=_0x47ae80(0x22c),_0x31db5f[_0x47ae80(0x22e)]=_0x47ae80(0x23c),_0x31db5f[_0x47ae80(0x241)]='key',_0x31db5f[_0x47ae80(0x246)]='accessKey',_0x31db5f[_0x47ae80(0x245)]=_0x47ae80(0x20d),_0x31db5f[_0x47ae80(0x247)]=function(_0xa81d78,_0x5cf490){return _0xa81d78===_0x5cf490;},_0x31db5f[_0x47ae80(0x222)]='object';const _0x56aefb=_0x31db5f;if(!_0x2df44b)return;const _0x2f51cc=[_0x56aefb[_0x47ae80(0x1e5)],_0x56aefb[_0x47ae80(0x22e)],_0x56aefb[_0x47ae80(0x241)],_0x56aefb['lWyAO'],_0x56aefb[_0x47ae80(0x245)]];for(const _0xa9cc73 in _0x2df44b){if(_0x2f51cc[_0x47ae80(0x1ef)](_0xa9cc73[_0x47ae80(0x1fb)]()))delete _0x2df44b[_0xa9cc73];else _0x56aefb['VCDtr'](typeof _0x2df44b[_0xa9cc73],_0x56aefb[_0x47ae80(0x222)])&&this[_0x47ae80(0x1ff)](_0x2df44b[_0xa9cc73]);}}static[a140_0xaf780c(0x1f7)](_0x3ceb35){const _0x2f61de=a140_0xaf780c,_0x560cee=JSON[_0x2f61de(0x205)](JSON[_0x2f61de(0x226)](_0x3ceb35));return this['recursivelyDeletePIIKeysFromObject'](_0x560cee),_0x560cee;}}const a140_0x2b370f={};function a140_0x22a7(_0x484ac4,_0x1e0f12){const _0x14c04f=a140_0x14c0();return a140_0x22a7=function(_0x22a7cb,_0x7ce886){_0x22a7cb=_0x22a7cb-0x1e2;let _0x324ad2=_0x14c04f[_0x22a7cb];return _0x324ad2;},a140_0x22a7(_0x484ac4,_0x1e0f12);}a140_0x2b370f[a140_0xaf780c(0x20f)]=o11yErrorHandler,a140_0x2b370f[a140_0xaf780c(0x1fa)]=o11yClassErrorHandler,a140_0x2b370f[a140_0xaf780c(0x21b)]=CrashReporter,module[a140_0xaf780c(0x230)]=a140_0x2b370f;
|
|
1
|
+
const a141_0x303aa2=a141_0x26ea;function a141_0x4bfe(){const _0x26c798=['[Crash_Report_Upload]\x20Success\x20response:\x20','NPbuS','515961RRnbeV','key','USER_CONFIG_FOR_REPORTING','format','MBFVX','fTCbO','getPerformance','OQbCs','function','includes','frameworkDetails','env','.\x20Error\x20-\x20','length','catch','getFramework','getOwnPropertyNames','setConfigDetails','4516570eAkkno','parse','[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','919102kvLZSy','398089oPHqtA','eARuR','xcpjJ','10423rhDamI','credentials','name','BROWSERSTACK_O11Y_PERF_MEASUREMENT','Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20','edKrQ','constructor','setFrameworkDetails','headers','UYbbU','getCredentials','recursivelyDeletePIIKeysFromObject','stack','toString','userConfig','exports','toLowerCase','then','filterPII','SWjEw','16xYGbpg','apply','lrWVW','PutEQ','password','timerify',',\x20PID\x20-\x20','Error\x20in\x20executing\x20','uploadCrashReport','stringify','Jlicw','xOuiZ','sVMTH','YFBiO','inspect','/api/v1/analytics','setAllDetails','frameworkName','call','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','474ajYFPP','setCredentials','\x20--\x20','o11yClassErrorHandler','keys','pid','25ORdJmH','Content-Type','frameworkVersion','WdPQU','username','true','Finished\x20::\x20','IZubN','HHPVa','sKULR','depth','QDiaj','CrashReporter','POST','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS',',\x20Argument\x20-\x20','iHDHf','ldLKg','.\x20Args\x20-\x20','1527342SdUQVp','hqKZz','ttvQm','JGqCI','X-BSTACK-TESTOPS','oFpRv','CREDENTIALS_FOR_CRASH_REPORTING','accessKey','182380XizdRs','mjjlR'];a141_0x4bfe=function(){return _0x26c798;};return a141_0x4bfe();}(function(_0x5315ea,_0x2fe7e1){const _0x2ab53a=a141_0x26ea,_0x27015=_0x5315ea();while(!![]){try{const _0x3d7151=-parseInt(_0x2ab53a(0x12a))/0x1+-parseInt(_0x2ab53a(0x129))/0x2+parseInt(_0x2ab53a(0x108))/0x3+-parseInt(_0x2ab53a(0x110))/0x4*(-parseInt(_0x2ab53a(0xf5))/0x5)+parseInt(_0x2ab53a(0xef))/0x6*(-parseInt(_0x2ab53a(0x12d))/0x7)+-parseInt(_0x2ab53a(0x141))/0x8*(-parseInt(_0x2ab53a(0x114))/0x9)+parseInt(_0x2ab53a(0x126))/0xa;if(_0x3d7151===_0x2fe7e1)break;else _0x27015['push'](_0x27015['shift']());}catch(_0xad9436){_0x27015['push'](_0x27015['shift']());}}}(a141_0x4bfe,0x501c5));const util=require('util'),PerformanceTester=require('../performance/performance-tester'),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require('./utils'),{getAgentVersion,nestedKeyValue}=require('../helper'),o11yErrorHandler=(_0x2b2ade,_0x60de36='',_0x1815e4=[''],_0x36d8ab=![])=>{const _0x5a6680={'UYbbU':function(_0x27224d,_0x1b10e5){return _0x27224d(_0x1b10e5);},'QDiaj':function(_0x1472b9,_0x4022d9,_0xc45dea){return _0x1472b9(_0x4022d9,_0xc45dea);},'TQHjU':function(_0x6aff99,_0x45d55b){return _0x6aff99(_0x45d55b);},'LUHMw':function(_0x3b902c,_0x361962,_0x556eee){return _0x3b902c(_0x361962,_0x556eee);},'qnUUJ':function(_0x418858,_0x23659b){return _0x418858 instanceof _0x23659b;},'DKbyn':function(_0x5b63e5,_0x22b8dd,_0x45dbcb,_0x5e7f74,_0x5c9b70){return _0x5b63e5(_0x22b8dd,_0x45dbcb,_0x5e7f74,_0x5c9b70);}};return function(..._0x32a905){const _0x41ddea=a141_0x26ea;try{let _0x4d3870=_0x2b2ade;process[_0x41ddea(0x11f)]['BROWSERSTACK_O11Y_PERF_MEASUREMENT']&&(_0x4d3870=PerformanceTester['getPerformance']()[_0x41ddea(0x146)](_0x4d3870));_0x36d8ab&&_0x5a6680[_0x41ddea(0x136)](trace,'Started\x20::\x20'+_0x60de36+_0x41ddea(0x147)+process['pid']+',\x20Argument\x20-\x20'+_0x5a6680[_0x41ddea(0x100)](nestedKeyValue,arguments[0x0],_0x1815e4));const _0x3a5369=_0x4d3870[_0x41ddea(0x142)](null,arguments);_0x36d8ab&&_0x5a6680['TQHjU'](trace,_0x41ddea(0xfb)+_0x60de36+_0x41ddea(0x147)+process[_0x41ddea(0xf4)]+_0x41ddea(0x104)+_0x5a6680['LUHMw'](nestedKeyValue,arguments[0x0],_0x1815e4));if(_0x5a6680['qnUUJ'](_0x3a5369,Promise))return _0x3a5369[_0x41ddea(0x122)](_0x3f9ea=>processError(_0x3f9ea,_0x2b2ade,_0x32a905,_0x60de36));return _0x3a5369;}catch(_0xfc0887){_0x5a6680['DKbyn'](processError,_0xfc0887,_0x2b2ade,_0x32a905,_0x60de36);}};},o11yClassErrorHandler=(_0x1302da,_0x533b3d,_0x2f2649='')=>{const _0x5efa32=a141_0x26ea,_0x52d1ae={'JGqCI':function(_0x4246c7,_0x28beea){return _0x4246c7 instanceof _0x28beea;},'fTCbO':function(_0x282360,_0x55dcbb,_0x1597e5,_0x4c4e59,_0x2f064d){return _0x282360(_0x55dcbb,_0x1597e5,_0x4c4e59,_0x2f064d);},'PutEQ':function(_0x5ddf7b,_0x48fc44){return _0x5ddf7b===_0x48fc44;},'ldLKg':_0x5efa32(0x11c),'qaAfa':function(_0x462513,_0x533d13){return _0x462513!==_0x533d13;},'sVMTH':_0x5efa32(0x133),'tntCh':function(_0xa18d20,_0x3e757b){return _0xa18d20<_0x3e757b;}},_0x461439=_0x1302da['prototype'];if(_0x52d1ae['tntCh'](Object[_0x5efa32(0x124)](_0x461439)[_0x5efa32(0x121)],0x2))return _0x1302da;return Object[_0x5efa32(0x124)](_0x461439)['forEach'](_0x28f7c2=>{const _0x2080a9=_0x5efa32;if(!(_0x533b3d&&_0x533b3d[_0x2080a9(0x11d)](_0x28f7c2)))return;const _0x79d80e=_0x461439[_0x28f7c2];_0x52d1ae[_0x2080a9(0x144)](typeof _0x79d80e,_0x52d1ae[_0x2080a9(0x106)])&&_0x52d1ae['qaAfa'](_0x28f7c2,_0x52d1ae[_0x2080a9(0xe7)])&&Object['defineProperty'](_0x461439,_0x28f7c2,{'writable':!![],'value':function(..._0x3c20d1){const _0x4b5c6b=_0x2080a9;try{const _0x8f5970=(process[_0x4b5c6b(0x11f)][_0x4b5c6b(0x130)]?PerformanceTester[_0x4b5c6b(0x11a)]()['timerify'](_0x79d80e):_0x79d80e)[_0x4b5c6b(0xed)](this,..._0x3c20d1);if(_0x52d1ae[_0x4b5c6b(0x10b)](_0x8f5970,Promise))return _0x8f5970['catch'](_0x18109c=>processError(_0x18109c,_0x79d80e,_0x3c20d1,_0x2f2649));return _0x8f5970;}catch(_0x502c7c){_0x52d1ae[_0x4b5c6b(0x119)](processError,_0x502c7c,_0x79d80e,_0x3c20d1,_0x2f2649);}}});}),_0x1302da;};function a141_0x26ea(_0x103e49,_0xe02f1){const _0x4bfe07=a141_0x4bfe();return a141_0x26ea=function(_0x26ea68,_0x2f74fc){_0x26ea68=_0x26ea68-0xe7;let _0x180bde=_0x4bfe07[_0x26ea68];return _0x180bde;},a141_0x26ea(_0x103e49,_0xe02f1);}function processError(_0x47548c,_0xa8eade,_0x264584,_0x62452a){const _0x423fc0=a141_0x26ea,_0x187576={'iHDHf':function(_0x253f8d,_0x8621f3){return _0x253f8d(_0x8621f3);}};_0x187576[_0x423fc0(0x105)](debug,_0x423fc0(0x148)+_0xa8eade[_0x423fc0(0x12f)]+_0x423fc0(0xf1)+_0x62452a+_0x423fc0(0x120)+util[_0x423fc0(0x117)](_0x47548c)+_0x423fc0(0x107)+_0x264584+'.'),PerformanceTester['captureError'](_0x47548c);let _0x32603e;try{_0x32603e=JSON[_0x423fc0(0x14a)](_0x264584);}catch(_0x47d4f0){const _0x25d984={};_0x25d984[_0x423fc0(0xff)]=0x2,_0x32603e=util[_0x423fc0(0xe9)](_0x264584,_0x25d984);}CrashReporter[_0x423fc0(0x149)](_0x423fc0(0x148)+_0xa8eade[_0x423fc0(0x12f)]+_0x423fc0(0xf1)+_0x62452a+_0x423fc0(0x120)+_0x47548c+'.\x20Args\x20-\x20'+_0x32603e+'.',_0x47548c&&_0x47548c[_0x423fc0(0x139)]);}class CrashReporter{static [a141_0x303aa2(0x13b)]={};static [a141_0x303aa2(0x12e)];static [a141_0x303aa2(0x11e)]={};static['initialize'](_0x111c9b,_0x3031ca,_0x2058f1=null){const _0x36e110=a141_0x303aa2,_0x2d633d={'Jlicw':function(_0x3c95e6,_0x38a30d){return _0x3c95e6(_0x38a30d);},'hqKZz':function(_0xee60ed,_0x4120d6){return _0xee60ed(_0x4120d6);}},_0x4e0c70=_0x111c9b[_0x36e110(0xec)],_0x416def=_0x111c9b[_0x36e110(0xf7)];!_0x2058f1&&(_0x2058f1=_0x2d633d[_0x36e110(0x14b)](getBrowserStackConfig,_0x4e0c70));!_0x416def&&_0x2d633d[_0x36e110(0x14b)](getFrameworkVersion,_0x4e0c70);const _0x4422b1={};_0x4422b1['frameworkName']=_0x4e0c70,_0x4422b1[_0x36e110(0xf7)]=_0x416def,this[_0x36e110(0xeb)](_0x4422b1,_0x3031ca,_0x2d633d[_0x36e110(0x109)](getUserCredentials,_0x2058f1));}static['setCredentials'](_0x4492dd,_0x59c229){const _0x4b69b8=a141_0x303aa2,_0x1dc926={};_0x1dc926[_0x4b69b8(0xf9)]=_0x4492dd,_0x1dc926[_0x4b69b8(0x10f)]=_0x59c229,this[_0x4b69b8(0x12e)]=_0x1dc926,process[_0x4b69b8(0x11f)][_0x4b69b8(0x10e)]=JSON[_0x4b69b8(0x14a)](this[_0x4b69b8(0x12e)]);}static[a141_0x303aa2(0x137)](){const _0x3c8597=a141_0x303aa2,_0x536a4b={'lrWVW':function(_0x1a1a6e,_0x57d2c2){return _0x1a1a6e(_0x57d2c2);}};if(!this[_0x3c8597(0x12e)]&&process[_0x3c8597(0x11f)][_0x3c8597(0x10e)])try{this['credentials']=JSON[_0x3c8597(0x127)](process[_0x3c8597(0x11f)]['CREDENTIALS_FOR_CRASH_REPORTING']);}catch(_0x234b9d){_0x536a4b[_0x3c8597(0x143)](debug,'Error\x20in\x20parsing\x20credentials\x20from\x20env\x20'+_0x234b9d[_0x3c8597(0x13a)]());}return this[_0x3c8597(0x12e)];}static[a141_0x303aa2(0x125)](_0x215e40){const _0x45cccb=a141_0x303aa2;this[_0x45cccb(0x13b)]=this[_0x45cccb(0x13f)](_0x215e40),process[_0x45cccb(0x11f)][_0x45cccb(0x116)]=JSON['stringify'](this[_0x45cccb(0x13b)]);}static['getConfig'](){const _0x23edde=a141_0x303aa2,_0x5e9e97={'BeVhv':function(_0x192c38,_0x41f3b4){return _0x192c38===_0x41f3b4;},'eARuR':function(_0x24916b,_0x590a2f){return _0x24916b(_0x590a2f);}};if(_0x5e9e97['BeVhv'](Object[_0x23edde(0xf3)](this['userConfig'])['length'],0x0)&&process[_0x23edde(0x11f)]['USER_CONFIG_FOR_REPORTING'])try{this[_0x23edde(0x13b)]=JSON[_0x23edde(0x127)](process['env'][_0x23edde(0x116)]);}catch(_0x58eb28){_0x5e9e97[_0x23edde(0x12b)](debug,_0x23edde(0x131)+_0x58eb28['toString']()),this[_0x23edde(0x13b)]={};}return this[_0x23edde(0x13b)];}static[a141_0x303aa2(0x134)](_0x558da8){const _0x3495c7=a141_0x303aa2;this[_0x3495c7(0x11e)]=_0x558da8,process['env']['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS']=JSON[_0x3495c7(0x14a)](this[_0x3495c7(0x11e)]);}static[a141_0x303aa2(0x123)](){const _0x442319=a141_0x303aa2,_0x44cc1d={'LvokS':function(_0x456213,_0x33a7b5){return _0x456213===_0x33a7b5;},'edKrQ':function(_0x13e854,_0x15dffc){return _0x13e854(_0x15dffc);}};if(_0x44cc1d['LvokS'](Object[_0x442319(0xf3)](this[_0x442319(0x11e)])[_0x442319(0x121)],0x0)&&process[_0x442319(0x11f)][_0x442319(0x103)])try{this[_0x442319(0x11e)]=JSON['parse'](process[_0x442319(0x11f)][_0x442319(0x103)]);}catch(_0x49cf8a){_0x44cc1d[_0x442319(0x132)](debug,_0x442319(0xee)+_0x49cf8a[_0x442319(0x13a)]());}return this[_0x442319(0x11e)];}static[a141_0x303aa2(0xeb)](_0x3cc9ce,_0x2f31e4,_0x590263){const _0x25fb7f=a141_0x303aa2;_0x3cc9ce&&this[_0x25fb7f(0x134)](_0x3cc9ce),_0x2f31e4&&this[_0x25fb7f(0x125)](_0x2f31e4),_0x590263&&this[_0x25fb7f(0xf0)](_0x590263[_0x25fb7f(0xf9)],_0x590263['accessKey']);}static async[a141_0x303aa2(0x149)](_0x1fa2f7,_0x33c832){const _0x38f764=a141_0x303aa2,_0x34f665={'xcpjJ':function(_0x4c67eb,_0x155d0c){return _0x4c67eb(_0x155d0c);},'oFpRv':function(_0x44fc84,_0x227110){return _0x44fc84(_0x227110);},'NPbuS':_0x38f764(0x128),'mjjlR':function(_0x190af7){return _0x190af7();},'WdPQU':_0x38f764(0xea),'XvTgB':'application/json','ttvQm':_0x38f764(0xfa),'MBFVX':function(_0x43635d,_0x3b71f0,_0x1442d6,_0x50327e,_0x5ce38e,_0xfece66){return _0x43635d(_0x3b71f0,_0x1442d6,_0x50327e,_0x5ce38e,_0xfece66);},'jpuZv':_0x38f764(0x102)};this['getCredentials']();if(!this[_0x38f764(0x12e)])return _0x34f665[_0x38f764(0x10d)](debug,_0x34f665[_0x38f764(0x113)]);this['getConfig'](),this[_0x38f764(0x123)]();const _0x5750ed={'hashed_id':process[_0x38f764(0x11f)]['BS_TESTOPS_BUILD_HASHED_ID'],'observability_version':{'sdkVersion':_0x34f665[_0x38f764(0x111)](getAgentVersion),'frameworkName':this[_0x38f764(0x11e)][_0x38f764(0xec)],'frameworkVersion':this[_0x38f764(0x11e)][_0x38f764(0xf7)]},'exception':{'error':_0x1fa2f7[_0x38f764(0x13a)](),'stackTrace':_0x33c832},'config':this[_0x38f764(0x13b)]},_0x45e739=_0x34f665[_0x38f764(0xf8)],_0x287271={};_0x287271[_0x38f764(0xf9)]=this[_0x38f764(0x12e)][_0x38f764(0xf9)],_0x287271['password']=this['credentials']['accessKey'];const _0x2cf485={};_0x2cf485[_0x38f764(0xf6)]=_0x34f665['XvTgB'],_0x2cf485[_0x38f764(0x10c)]=_0x34f665[_0x38f764(0x10a)];const _0x478adf={};_0x478adf['auth']=_0x287271,_0x478adf[_0x38f764(0x135)]=_0x2cf485;const _0x4c5da9=_0x478adf;_0x34f665[_0x38f764(0x118)](nodeRequest,_0x34f665['jpuZv'],_0x45e739,_0x5750ed,_0x4c5da9,![])[_0x38f764(0x13e)](_0x20fcdf=>{const _0x523697=_0x38f764;_0x34f665[_0x523697(0x12c)](debug,_0x523697(0x112)+JSON['stringify'](_0x20fcdf));})['catch'](_0x4cfceb=>{const _0x973c72=_0x38f764;_0x34f665[_0x973c72(0x10d)](debug,'[Crash_Report_Upload]\x20Failed\x20due\x20to\x20'+util['format'](_0x4cfceb));});}static[a141_0x303aa2(0x138)](_0x5b2dfc){const _0x746d7c=a141_0x303aa2,_0x46785b={};_0x46785b[_0x746d7c(0x140)]='user',_0x46785b[_0x746d7c(0xfc)]='username',_0x46785b[_0x746d7c(0x14c)]=_0x746d7c(0x115),_0x46785b[_0x746d7c(0xe8)]='accessKey',_0x46785b[_0x746d7c(0x11b)]=_0x746d7c(0x145),_0x46785b[_0x746d7c(0xfd)]=function(_0x386407,_0x5e1794){return _0x386407===_0x5e1794;},_0x46785b[_0x746d7c(0xfe)]='object';const _0x407853=_0x46785b;if(!_0x5b2dfc)return;const _0x4caa0e=[_0x407853[_0x746d7c(0x140)],_0x407853[_0x746d7c(0xfc)],_0x407853['xOuiZ'],_0x407853[_0x746d7c(0xe8)],_0x407853[_0x746d7c(0x11b)]];for(const _0x1d588a in _0x5b2dfc){if(_0x4caa0e[_0x746d7c(0x11d)](_0x1d588a[_0x746d7c(0x13d)]()))delete _0x5b2dfc[_0x1d588a];else _0x407853['HHPVa'](typeof _0x5b2dfc[_0x1d588a],_0x407853['sKULR'])&&this[_0x746d7c(0x138)](_0x5b2dfc[_0x1d588a]);}}static['filterPII'](_0x285977){const _0x1a3365=a141_0x303aa2,_0x1330ef=JSON[_0x1a3365(0x127)](JSON[_0x1a3365(0x14a)](_0x285977));return this[_0x1a3365(0x138)](_0x1330ef),_0x1330ef;}}const a141_0xc667e1={};a141_0xc667e1['o11yErrorHandler']=o11yErrorHandler,a141_0xc667e1[a141_0x303aa2(0xf2)]=o11yClassErrorHandler,a141_0xc667e1[a141_0x303aa2(0x101)]=CrashReporter,module[a141_0x303aa2(0x13c)]=a141_0xc667e1;
|