browserstack-node-sdk 1.50.1 → 1.50.3
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/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/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/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/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/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/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.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/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/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/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/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
|
-
function a94_0x434e(_0x3c018c,_0x16bab7){const _0xc16b80=a94_0xc16b();return a94_0x434e=function(_0x434ee6,_0x309b14){_0x434ee6=_0x434ee6-0x1c4;let _0xc3b420=_0xc16b80[_0x434ee6];return _0xc3b420;},a94_0x434e(_0x3c018c,_0x16bab7);}const a94_0xc863f9=a94_0x434e;(function(_0xba3cba,_0x24009b){const _0x27342e=a94_0x434e,_0x402397=_0xba3cba();while(!![]){try{const _0x38f3d7=parseInt(_0x27342e(0x1df))/0x1+parseInt(_0x27342e(0x25f))/0x2*(parseInt(_0x27342e(0x27f))/0x3)+-parseInt(_0x27342e(0x23c))/0x4*(parseInt(_0x27342e(0x282))/0x5)+parseInt(_0x27342e(0x230))/0x6+-parseInt(_0x27342e(0x227))/0x7+-parseInt(_0x27342e(0x20c))/0x8*(-parseInt(_0x27342e(0x28b))/0x9)+parseInt(_0x27342e(0x2ac))/0xa*(-parseInt(_0x27342e(0x217))/0xb);if(_0x38f3d7===_0x24009b)break;else _0x402397['push'](_0x402397['shift']());}catch(_0x22a5be){_0x402397['push'](_0x402397['shift']());}}}(a94_0xc16b,0x35e5a));const util=require(a94_0xc863f9(0x2b4)),os=require('os'),path=require(a94_0xc863f9(0x2c0)),{v4:uuidv4}=require(a94_0xc863f9(0x264)),fs=require('fs'),constants=require('../bin/utils/constants'),logger=require(a94_0xc863f9(0x28c))['winstonLogger'],fileLogger=require(a94_0xc863f9(0x28c))['fileLogger'],{getLogDir}=require('./logger'),helper=require(a94_0xc863f9(0x1c4)),utilities=require(a94_0xc863f9(0x237)),percyHelper=require(a94_0xc863f9(0x20b)),hubAllocator=require(a94_0xc863f9(0x27e)),PerformanceTester=require(a94_0xc863f9(0x283)),{EVENTS:PerformanceEvents,AUTOMATE_EVENTS:PerformanceAutEvents}=require(a94_0xc863f9(0x266)),{setPercyFlag}=require(a94_0xc863f9(0x2ca)),TestHubHandler=require(a94_0xc863f9(0x202)),timeoutPromise=require(a94_0xc863f9(0x223)),BrowserstackCLI=require(a94_0xc863f9(0x221)),LoadTestModule=require(a94_0xc863f9(0x2c5)),{getEdsInstrumentationAPIUrl}=require(a94_0xc863f9(0x29c)),ClientTroubleShootingService=require(a94_0xc863f9(0x1e2));function a94_0xc16b(){const _0x49bc00=['warn','init','Something\x20went\x20wrong.\x20Disabling\x20healing\x20for\x20this\x20session.\x20Please\x20try\x20again\x20later.','Percy\x20stopped','22594rVoYFq','Shutdown\x20triggered\x20by\x20','Few\x20SDK\x20features\x20were\x20not\x20activated\x20as\x20platforms\x20object\x20was\x20not\x20defined','Jomkq','XRSPQ','uuid','isTrialGrid','./performance/constants','iBhAj','pDfgu','Data\x20sent\x20successfully\x20to\x20','Zotnp','includes','mFohF','statusCode','getAccessKey','Local\x20binary\x20not\x20started\x20as\x20skipBinaryInitialisation\x20is\x20enabled','unhandledErrors','killSignal','luYRj','DPBoX','setLogLevel','JHruu','vfCkT','HUB_MANAGEMENT','ELRyC','win32','constructor','browserstackLocal','VCdql','vkjCM','../hubAllocationMethods','60aoDyHs','IhVrd','Failed\x20to\x20send\x20data\x20to\x20','5pvAzUu','./performance/performance-tester','central_scanner','format','setProxySettings','5|18|7|6|9|11|3|13|22|1|4|15|16|8|0|2|17|19|21|20|23|12|14|10','platforms','toString','readConfig','702234JONdEO','./logger','handleExceptions','playwrightUrl','SIGABRT','Tsomu','HUB\x20URL\x20SET\x20TO\x20TurboScale\x20HUB\x20-\x20','tKytr','ODHTT','then','finalize','race','stopBrowserstackLocal','writeFileSync','UPGRADE_REQUIRED','selenium-webdriver','percy','../bin/utils/apiUtilityMethods','cggdg','integrations','setCLICaps','setupBrowserstackLocal','setupKeepAlive','proxyUrl','Calling\x20Build\x20Stop\x20from\x20ExitHandler','platform','selfHeal','close','fireFunnelTestEvent','turboScaleUrl','Healing\x20is\x20not\x20enabled\x20for\x20your\x20group,\x20please\x20contact\x20the\x20admin','JAbRE','join','90NeUrZx','__isPlaywrightInstalled','SRQsi','measures','skipSessionName','false','SIGBREAK','TCG_URL','util','ehShZ','Error\x20in\x20sending\x20testhub\x20stop:\x20','accessKey','umlHM','startMonitoring','CXdVe','hubUrl','hmVlH','No\x20config\x20provided.','split','isAuthenticated','path','proxy','SIGQUIT','NYKxw','jWdfa','../bin/v2/modules/loadTestModule','errorMessage','envConfig','version','FGVQi','./testhub/utils','status','startPercy','reportFinalDetectionState','EvIeS','startLocalBinary','KsGCm','SDK\x20run\x20started\x20with\x20id:\x20','pnZzi','./helper','SDK_CLEANUP','fNGqc','exceptions','Error\x20occured\x20while\x20stopping\x20local\x20binary','stringify','skipSessionStatus','1|0|6|5|7|3|2|4','bind','TCG_AUTH_FAILURE','playwright','preInitialize','Error\x20in\x20percy\x20setup\x20','stop','url','exitHandler','jTaAb','getPackageVersion','compareVersions','getUserName','bstackConfig','SIGINT','BROWSERSTACK_PERCY','beforeExit','GpdyB','allocateHub','cliConfig','414066IrEcIP','isNotUndefined','ipoFb','../bin/utils/clientTroubleshootingService','Error\x20in\x20Fire\x20SDKTestAttempted.\x20Stacktrace:\x20','ZiggS','message','TCG_DOWN','nMmDw','getConfigPath','\x20with\x20error\x20','AI_PROXY_FAILURE','ZhlAp','error','toLowerCase','customRepeaters','setCredentialsFromYmlConfig','AI_INIT_SUCCESSFUL','default','localIdentifier','../ai-sdk-node/bundle','events.json','kSjhC','FRAMEWORK','SIGHUP','useW3C','QuUuh','userName\x20or\x20accessKey\x20is\x20not\x20defined','uncaughtException','initialize','gGtaU','testContextOptions','configPath','framework','OVRGw','./testhub/testhubHandler','lFyTF','setBrowserstackInfraFromConfig','length','vjrDG','BrowserstackHealingInitFailed','isBrowserstackInfra','isUndefined','INVALID_INIT_RESP_WITH_USER_IMPACT','./percy/utils','8cuhUAu','generateLocalIdentifier','HigkW','\x20with\x20response\x20','unhandledRejection','getInstance','sdkRunId','ernjv','stopLocalBinary','tglGu','mbmQm','250206OoFAwt','isTrue','parallelsPerPlatform','./setKeepAlive','config','info','setHandlePWError','isRunning','SBpex','VUYoz','../bin/v2/browserstackCLI','MwrqQ','./timeoutPromise','jByjG','Authentication\x20Failed.\x20Disabling\x20Healing\x20for\x20this\x20session.','isTurboScaleSession','2443819xWaaOk','aiHeal:tcgAuth','push','BROWSERSTACK_TURBOSCALE','Local\x20binary\x20started\x20successfully','jjCoG','ltmUl','TjdfO','AI_INIT_FAILURE','1961826vpHxsY','oqAsc','browserStackLocalOptions','setUpHubUrl','dhNTh','mZBpw','skipBinaryInitialisation','./utilities','4.5.0','hfXRd','intExitHandler','isHealingEnabled','1081640lfOXmF','getTurboScaleGridDetails','sendToEDS','getLocalIdentifier','BrowserstackHealing.init','nHRdE','sanitizeCaps','end','CiZwW','setupTcgConfigFile','BvwTZ','XpuAF','Please\x20upgrade\x20Browserstack\x20SDK\x20to\x20the\x20latest\x20version\x20to\x20use\x20the\x20self-healing\x20feature.','true','turboScaleOptions','setLogDir','pnJPS','forceLocal','env','getFinalCaps','tcgAuthConfig','Local\x20binary\x20stopped','isLTSSession','turboScaleGridDetails','RQxFZ','stopPercy','SDKTestAttempted','setEnvCaps','mWonC','debug','LUnjB'];a94_0xc16b=function(){return _0x49bc00;};return a94_0xc16b();}class BrowserStackSetup{constructor(_0x5320b4,_0x433d10){const _0x52e4d8=a94_0xc863f9,_0x398111={'IFHkO':_0x52e4d8(0x287),'ZhlAp':_0x52e4d8(0x2bd),'vfCkT':function(_0x1f99fe){return _0x1f99fe();}},_0x15bf50=_0x398111['IFHkO']['split']('|');let _0x14b8e6=0x0;while(!![]){switch(_0x15bf50[_0x14b8e6++]){case'0':if(helper['isUndefined'](this['config']))throw new Error(_0x398111[_0x52e4d8(0x1eb)]);continue;case'1':this[_0x52e4d8(0x21b)][_0x52e4d8(0x1fe)]=this[_0x52e4d8(0x21b)]['testContextOptions']||{};continue;case'2':if(this['config'][_0x52e4d8(0x1ec)])throw new Error(this[_0x52e4d8(0x21b)]['error']);continue;case'3':this[_0x52e4d8(0x21b)]=helper[_0x52e4d8(0x28a)](this[_0x52e4d8(0x1ff)]);continue;case'4':this[_0x52e4d8(0x2c6)]={};continue;case'5':this['unhandledErrors']=[];continue;case'6':this[_0x52e4d8(0x27b)]=null;continue;case'7':this[_0x52e4d8(0x2c7)]=helper[_0x52e4d8(0x257)]();continue;case'8':global[_0x52e4d8(0x200)]=_0x433d10;continue;case'9':this[_0x52e4d8(0x29b)]=null;continue;case'10':PerformanceTester[_0x52e4d8(0x2b9)]();continue;case'11':this[_0x52e4d8(0x1ff)]=helper[_0x52e4d8(0x1e8)](_0x5320b4);continue;case'12':helper[_0x52e4d8(0x24b)](this[_0x52e4d8(0x21b)]);continue;case'13':this[_0x52e4d8(0x1de)]=helper[_0x52e4d8(0x29f)](_0x5320b4);continue;case'14':helper[_0x52e4d8(0x274)](this[_0x52e4d8(0x21b)],this[_0x52e4d8(0x1de)],this[_0x52e4d8(0x2c7)]);continue;case'15':this[_0x52e4d8(0x212)]=_0x398111[_0x52e4d8(0x276)](uuidv4);continue;case'16':this[_0x52e4d8(0x200)]=_0x433d10;continue;case'17':helper[_0x52e4d8(0x204)](this[_0x52e4d8(0x21b)],this[_0x52e4d8(0x1de)]);continue;case'18':helper['normalizeTestReportingEnvVars']();continue;case'19':helper[_0x52e4d8(0x1ef)](this[_0x52e4d8(0x21b)]);continue;case'20':this[_0x52e4d8(0x21b)]['testContextOptions'][_0x52e4d8(0x2b0)]=!helper['isBrowserstackInfra']()||helper['isTrue'](this[_0x52e4d8(0x21b)][_0x52e4d8(0x1fe)][_0x52e4d8(0x2b0)]);continue;case'21':this[_0x52e4d8(0x21b)][_0x52e4d8(0x1fe)]['skipSessionStatus']=!helper[_0x52e4d8(0x208)]()||helper['isTrue'](this['config'][_0x52e4d8(0x1fe)][_0x52e4d8(0x1ca)]);continue;case'22':this[_0x52e4d8(0x21b)][_0x52e4d8(0x288)]=this[_0x52e4d8(0x21b)]['platforms']||[];continue;case'23':helper[_0x52e4d8(0x24f)](this['config'],this[_0x52e4d8(0x1de)],this[_0x52e4d8(0x2c7)]);continue;}break;}}[a94_0xc863f9(0x1cf)](_0x438d57){const _0x396dad=a94_0xc863f9,_0x4ef92d={'RQxFZ':_0x396dad(0x1fa),'FGVQi':function(_0x327f6c,_0x1007e1){return _0x327f6c===_0x1007e1;},'fNGqc':_0x396dad(0x29e),'LEHcv':_0x396dad(0x256),'JHruu':function(_0x1f7eeb,_0xb18acc){return _0x1f7eeb<_0xb18acc;},'mWonC':function(_0x167ed7,_0x22516d){return _0x167ed7(_0x22516d);},'vkjCM':_0x396dad(0x29a),'eraes':_0x396dad(0x238),'LUnjB':_0x396dad(0x261),'pnZzi':'parallelsPerPlatform\x20was\x20ignored\x20as\x20platforms\x20object\x20was\x20not\x20defined','cggdg':'SIGTERM','kSjhC':_0x396dad(0x1d9),'TjdfO':_0x396dad(0x1f7),'jjCoG':function(_0xcfad31,_0x39c209){return _0xcfad31!==_0x39c209;},'DPBoX':_0x396dad(0x279),'oDWfV':_0x396dad(0x28f),'KsGCm':_0x396dad(0x2c2),'XRSPQ':_0x396dad(0x2b2),'ZiggS':_0x396dad(0x1db)},_0x202418=this[_0x396dad(0x200)];global[_0x396dad(0x21b)]=this[_0x396dad(0x21b)],helper[_0x396dad(0x242)](this[_0x396dad(0x21b)]),this[_0x396dad(0x271)]=null,global[_0x396dad(0x212)]=this[_0x396dad(0x212)],logger[_0x396dad(0x21c)](_0x396dad(0x2d1)+this[_0x396dad(0x212)]),!this[_0x396dad(0x21b)][_0x396dad(0x232)]&&(this[_0x396dad(0x21b)][_0x396dad(0x232)]=this[_0x396dad(0x21b)]['localOptions']||{});if(helper[_0x396dad(0x209)](helper[_0x396dad(0x1d7)](this[_0x396dad(0x21b)]))||helper['isUndefined'](helper[_0x396dad(0x26e)](this[_0x396dad(0x21b)])))throw new Error(_0x4ef92d[_0x396dad(0x254)]);helper['getLocalConfig'](this[_0x396dad(0x21b)])&&helper[_0x396dad(0x209)](helper[_0x396dad(0x23f)](this[_0x396dad(0x21b)]))&&(!helper[_0x396dad(0x209)](this['config'][_0x396dad(0x232)])&&_0x4ef92d['FGVQi'](this[_0x396dad(0x21b)][_0x396dad(0x232)][_0x396dad(0x27a)],Object)?!helper[_0x396dad(0x218)](this[_0x396dad(0x21b)]['browserStackLocalOptions'][_0x396dad(0x236)])&&(this[_0x396dad(0x21b)]['browserStackLocalOptions'][_0x396dad(0x1f2)]=helper[_0x396dad(0x20d)]()):this[_0x396dad(0x21b)][_0x396dad(0x232)]={'localIdentifier':helper[_0x396dad(0x20d)]()});this[_0x396dad(0x21b)][_0x396dad(0x232)][_0x396dad(0x236)]=helper['isTrue'](this['config'][_0x396dad(0x232)]['skipBinaryInitialisation']),helper[_0x396dad(0x21d)](this[_0x396dad(0x21b)]);if(_0x4ef92d['FGVQi'](_0x202418,_0x4ef92d[_0x396dad(0x1c6)]))return;this[_0x396dad(0x28d)]();process[_0x396dad(0x24e)]['BROWSERSTACK_TURBOSCALE']&&(this[_0x396dad(0x21b)]['turboScale']=helper[_0x396dad(0x218)](process['env']['BROWSERSTACK_TURBOSCALE']),this['config'][_0x396dad(0x24a)]=this['config'][_0x396dad(0x24a)]||{});helper[_0x396dad(0x226)](this[_0x396dad(0x21b)])&&(process[_0x396dad(0x24e)][_0x396dad(0x22a)]=!![]);LoadTestModule[_0x396dad(0x252)](this[_0x396dad(0x21b)])&&logger['debug']('LTS\x20session\x20enabled\x20for\x20this\x20run.\x20SDK\x20run\x20id:\x20'+this[_0x396dad(0x212)]);if(!helper[_0x396dad(0x208)]()){try{process['env'][_0x396dad(0x1f6)]=_0x202418,utilities[_0x396dad(0x2a7)](_0x4ef92d['LEHcv'],{},this[_0x396dad(0x21b)],this['framework']);}catch(_0x4b5e44){logger[_0x396dad(0x259)](_0x396dad(0x1e3)+_0x4b5e44);}return;}if(helper['requireSeleniumWebdriverCheck'](_0x202418)){if(global[_0x396dad(0x2ad)])return;_0x4ef92d[_0x396dad(0x275)](_0x4ef92d[_0x396dad(0x258)](parseInt,helper[_0x396dad(0x1d5)](_0x4ef92d[_0x396dad(0x27d)])),0x3)&&(this['config'][_0x396dad(0x1f8)]=![]),_0x4ef92d[_0x396dad(0x2c9)](helper[_0x396dad(0x1d6)](helper[_0x396dad(0x1d5)](_0x4ef92d[_0x396dad(0x27d)]),_0x4ef92d['eraes']),0x1)&&(this['config']['useW3C']=!![]);}(helper['isUndefined'](this[_0x396dad(0x21b)][_0x396dad(0x288)])||helper[_0x396dad(0x209)](this[_0x396dad(0x21b)]['platforms'][_0x396dad(0x205)]))&&(helper[_0x396dad(0x209)](this[_0x396dad(0x21b)][_0x396dad(0x219)])?logger[_0x396dad(0x21c)](_0x4ef92d[_0x396dad(0x25a)]):logger[_0x396dad(0x25b)](_0x4ef92d[_0x396dad(0x2d2)]),this[_0x396dad(0x21b)]['platforms']=[]);!this[_0x396dad(0x21b)][_0x396dad(0x1fe)]&&(this[_0x396dad(0x21b)][_0x396dad(0x1fe)]={});try{process[_0x396dad(0x24e)][_0x396dad(0x1f6)]=_0x438d57['_'][0x0],utilities[_0x396dad(0x2a7)](_0x4ef92d['LEHcv'],{},this[_0x396dad(0x21b)],this[_0x396dad(0x200)]);}catch(_0x3f2fa8){logger[_0x396dad(0x259)]('Error\x20in\x20Fire\x20SDKTestAttempted.\x20Stacktrace:\x20'+_0x3f2fa8);}!this[_0x396dad(0x21b)]['disableAutoCaptureLogs']&&logger['info'](constants['AUTOLOGCAPTURE_NOTIFICATION']),this[_0x396dad(0x23a)]=this[_0x396dad(0x23a)][_0x396dad(0x1cc)](this),process['on'](_0x4ef92d[_0x396dad(0x29d)],this['intExitHandler']),process['on'](_0x4ef92d[_0x396dad(0x1f5)],this['intExitHandler']),process['on'](_0x4ef92d[_0x396dad(0x22e)],this['intExitHandler']),_0x4ef92d[_0x396dad(0x22c)](process[_0x396dad(0x2a4)],_0x4ef92d[_0x396dad(0x273)])?(process['on'](_0x4ef92d['oDWfV'],this['intExitHandler']),process['on'](_0x4ef92d[_0x396dad(0x2d0)],this[_0x396dad(0x23a)])):process['on'](_0x4ef92d[_0x396dad(0x263)],this[_0x396dad(0x23a)]),process['on'](_0x4ef92d[_0x396dad(0x1e4)],this[_0x396dad(0x1d3)]());}async[a94_0xc863f9(0x1fc)](_0xae3aa1){const _0x2b10fd=a94_0xc863f9,_0x4df0a7={'EPJRp':'ats-repeater','jByjG':'custom-repeater','OVRGw':_0x2b10fd(0x249),'mFohF':function(_0x4274a0,_0x42f290){return _0x4274a0===_0x42f290;},'Jomkq':_0x2b10fd(0x1ce),'SBpex':function(_0x6bdeb3,_0x16eb7c){return _0x6bdeb3+_0x16eb7c;},'lFyTF':'?caps=','ELRyC':function(_0x25f6d6,_0x56c00){return _0x25f6d6(_0x56c00);},'mbmQm':'codeceptjs'};this[_0x2b10fd(0x1cf)](_0xae3aa1);if(helper['isTurboScaleSession'](this[_0x2b10fd(0x21b)])){const _0x402b56=await helper[_0x2b10fd(0x23d)](this[_0x2b10fd(0x21b)]);this[_0x2b10fd(0x21b)][_0x2b10fd(0x253)]=_0x402b56,_0x402b56[_0x2b10fd(0x265)]&&helper[_0x2b10fd(0x1e0)](this[_0x2b10fd(0x21b)][_0x2b10fd(0x27b)])&&helper[_0x2b10fd(0x218)](this['config'][_0x2b10fd(0x27b)])&&(this[_0x2b10fd(0x21b)][_0x2b10fd(0x232)]['localIdentifier']=_0x4df0a7['EPJRp'],this[_0x2b10fd(0x21b)][_0x2b10fd(0x232)][_0x4df0a7[_0x2b10fd(0x224)]]=_0x402b56[_0x2b10fd(0x1ee)]['join'](','),this[_0x2b10fd(0x21b)][_0x2b10fd(0x232)][_0x2b10fd(0x24d)]=_0x4df0a7[_0x2b10fd(0x201)]),this[_0x2b10fd(0x21b)][_0x2b10fd(0x2a8)]=_0x402b56[_0x2b10fd(0x1d2)],this[_0x2b10fd(0x200)]&&_0x4df0a7[_0x2b10fd(0x26c)](this[_0x2b10fd(0x200)][_0x2b10fd(0x1ed)](),_0x4df0a7['Jomkq'])?this['config'][_0x2b10fd(0x2a8)]=_0x4df0a7[_0x2b10fd(0x21f)](_0x402b56[_0x2b10fd(0x28e)],_0x4df0a7[_0x2b10fd(0x203)]):constants[_0x2b10fd(0x2bb)]=helper['getHubUrl'](this[_0x2b10fd(0x21b)]),logger[_0x2b10fd(0x259)](_0x2b10fd(0x291)+constants[_0x2b10fd(0x2bb)]);}helper[_0x2b10fd(0x286)](this['config']),this[_0x2b10fd(0x2a1)](),_0x4df0a7[_0x2b10fd(0x278)](setPercyFlag,this),await this[_0x2b10fd(0x2a0)](),![_0x4df0a7[_0x2b10fd(0x216)],_0x4df0a7[_0x2b10fd(0x262)]][_0x2b10fd(0x26b)](this[_0x2b10fd(0x200)])&&!helper[_0x2b10fd(0x226)](this['config'])&&!helper['getCentralUser']()[_0x2b10fd(0x284)]&&await this['setUpHubUrl']();}async['setupPercy'](){const _0x1148f2=a94_0xc863f9,_0x5750be={};_0x5750be[_0x1148f2(0x1f9)]=function(_0x1d3111,_0x17704c){return _0x1d3111===_0x17704c;},_0x5750be[_0x1148f2(0x222)]=_0x1148f2(0x2b1),_0x5750be[_0x1148f2(0x292)]='Could\x20not\x20start\x20percy,\x20check\x20percy\x20logs\x20for\x20info.',_0x5750be['IbtdM']='Percy\x20started\x20successfully',_0x5750be[_0x1148f2(0x2ae)]=_0x1148f2(0x249),_0x5750be[_0x1148f2(0x267)]=_0x1148f2(0x1db);const _0x430c90=_0x5750be;if(helper['isTrue'](this[_0x1148f2(0x21b)][_0x1148f2(0x29b)])&&(!this[_0x1148f2(0x29b)]||!this[_0x1148f2(0x29b)][_0x1148f2(0x21e)]()))try{this[_0x1148f2(0x29b)]=await percyHelper[_0x1148f2(0x2cc)](this[_0x1148f2(0x21b)]);if(!this[_0x1148f2(0x29b)]){process[_0x1148f2(0x24e)][_0x1148f2(0x1da)]=_0x430c90['MwrqQ'];throw new Error(_0x430c90[_0x1148f2(0x292)]);}logger[_0x1148f2(0x21c)](_0x430c90['IbtdM']),process[_0x1148f2(0x24e)][_0x1148f2(0x1da)]=_0x430c90[_0x1148f2(0x2ae)];let _0x3135cc=0x0;const _0x378836=async()=>{const _0x3e157e=_0x1148f2;_0x3135cc++,_0x430c90[_0x3e157e(0x1f9)](_0x3135cc,0x1)&&await this['stopPercy']();};process['on'](_0x430c90[_0x1148f2(0x267)],_0x378836);}catch(_0x385412){process[_0x1148f2(0x24e)][_0x1148f2(0x1da)]=_0x430c90[_0x1148f2(0x222)],logger[_0x1148f2(0x259)](_0x1148f2(0x1d0)+_0x385412);throw new Error(_0x385412[_0x1148f2(0x289)]());}}async[a94_0xc863f9(0x255)](){const _0xb32c55=a94_0xc863f9,_0x2e53f1={};_0x2e53f1[_0xb32c55(0x234)]=_0xb32c55(0x25e),_0x2e53f1['UteyH']='Error\x20occured\x20while\x20stopping\x20percy';const _0x20d483=_0x2e53f1;if(this[_0xb32c55(0x29b)]&&this[_0xb32c55(0x29b)]['isRunning']())try{await percyHelper[_0xb32c55(0x255)](this[_0xb32c55(0x29b)]),logger[_0xb32c55(0x21c)](_0x20d483[_0xb32c55(0x234)]);}catch(_0x567dd7){logger['error'](_0x20d483['UteyH'],_0x567dd7['message']);}}async[a94_0xc863f9(0x2a0)](){const _0x3c1708=a94_0xc863f9,_0x1b6938={};_0x1b6938[_0x3c1708(0x246)]=_0x3c1708(0x26f),_0x1b6938[_0x3c1708(0x247)]=_0x3c1708(0x22b);const _0x320323=_0x1b6938;if(helper[_0x3c1708(0x208)]()&&helper[_0x3c1708(0x218)](this[_0x3c1708(0x21b)]['browserstackLocal'])&&(!this[_0x3c1708(0x27b)]||!this[_0x3c1708(0x27b)][_0x3c1708(0x21e)]()))try{if(this[_0x3c1708(0x21b)][_0x3c1708(0x232)][_0x3c1708(0x236)]){logger['debug'](_0x320323[_0x3c1708(0x246)]);return;}this[_0x3c1708(0x27b)]=await helper[_0x3c1708(0x2cf)](this[_0x3c1708(0x21b)]),logger[_0x3c1708(0x21c)](_0x320323[_0x3c1708(0x247)]);}catch(_0x5d961a){logger[_0x3c1708(0x259)](_0x5d961a);throw new Error(_0x5d961a[_0x3c1708(0x289)]());}}async[a94_0xc863f9(0x297)](){const _0x3077ef=a94_0xc863f9,_0x237d6b={};_0x237d6b[_0x3077ef(0x293)]=_0x3077ef(0x251),_0x237d6b[_0x3077ef(0x235)]=_0x3077ef(0x1c8);const _0x464e91=_0x237d6b;if(this[_0x3077ef(0x27b)]&&this[_0x3077ef(0x27b)][_0x3077ef(0x21e)]())try{await helper[_0x3077ef(0x214)](this[_0x3077ef(0x27b)]),logger['info'](_0x464e91[_0x3077ef(0x293)]);}catch(_0x1095fa){logger['error'](_0x464e91[_0x3077ef(0x235)],_0x1095fa[_0x3077ef(0x1e5)]);}}async[a94_0xc863f9(0x233)](){const _0x22ba52=a94_0xc863f9;return PerformanceTester['measureWrapper'](PerformanceAutEvents[_0x22ba52(0x277)],async()=>{const _0x3dea93=_0x22ba52;await hubAllocator[_0x3dea93(0x1dd)](this[_0x3dea93(0x21b)]);})();}async['setupTCGAuth'](){const _0x4d6725=a94_0xc863f9,_0x82afde={'ehShZ':function(_0x574786,_0x3581eb){return _0x574786(_0x3581eb);},'HigkW':_0x4d6725(0x1f3),'SDjFi':function(_0xc31595,_0x57d4c1,_0x351779,_0x4f033f,_0x5f21c2,_0x51a1de,_0x135209){return _0xc31595(_0x57d4c1,_0x351779,_0x4f033f,_0x5f21c2,_0x51a1de,_0x135209);},'CXdVe':'BrowserstackHealing.init\x20method\x20timed\x20out','ipoFb':_0x4d6725(0x207),'nMmDw':'../../package.json','hmVlH':_0x4d6725(0x240),'tglGu':function(_0x1c27bd,_0x552490){return _0x1c27bd(_0x552490);},'ltmUl':function(_0x55b77f,_0x2a1882){return _0x55b77f===_0x2a1882;},'jWdfa':_0x4d6725(0x249),'nHRdE':function(_0x205310,_0x4ba968){return _0x205310===_0x4ba968;},'LBBIl':_0x4d6725(0x248),'aVgWA':function(_0x3d07ef,_0x3a0042){return _0x3d07ef===_0x3a0042;},'oqAsc':_0x4d6725(0x25d),'jDPJO':_0x4d6725(0x225),'bEpYl':function(_0x333229,_0x27d9cb){return _0x333229(_0x27d9cb);},'hfXRd':_0x4d6725(0x2a9),'pDfgu':function(_0x3f0c9a,_0x22e84d){return _0x3f0c9a>=_0x22e84d;},'GpdyB':function(_0x162a04,_0x149f4b){return _0x162a04<_0x149f4b;},'VUYoz':function(_0x30effd,_0x2c420f){return _0x30effd>=_0x2c420f;},'jTaAb':'tcg\x20config\x20setup\x20successful.','Zotnp':_0x4d6725(0x228),'oaMNS':function(_0x4bb8e0){return _0x4bb8e0();}},_0x58e875=PerformanceTester['measureWrapper'](_0x82afde[_0x4d6725(0x26a)],async()=>{const _0x3fd8ce=_0x4d6725;try{const _0x148711=new Date(),_0x49dbfa=helper['getProxyConfigForTcg'](this[_0x3fd8ce(0x21b)]),_0x33666d=_0x82afde[_0x3fd8ce(0x2b5)](require,path[_0x3fd8ce(0x2ab)](__dirname,_0x82afde[_0x3fd8ce(0x20e)])),_0x2fcd36=_0x82afde['SDjFi'](timeoutPromise,constants['TCG_AUTH_TIMEOUT'],_0x82afde[_0x3fd8ce(0x2ba)],_0x82afde[_0x3fd8ce(0x1e1)],_0x148711,this['config'],this[_0x3fd8ce(0x200)]),_0x5053ae={'tcgUrl':constants['TCG_URL'],'sdkVersion':_0x82afde[_0x3fd8ce(0x2b5)](require,_0x82afde['nMmDw'])[_0x3fd8ce(0x2c8)],'methodUsed':_0x82afde[_0x3fd8ce(0x2bc)],'proxyConfig':_0x49dbfa,'os':os['platform']()};if(_0x49dbfa&&_0x49dbfa[_0x3fd8ce(0x2a2)]){utilities['fireFunnelTestEvent'](constants[_0x3fd8ce(0x1ea)],_0x5053ae,this[_0x3fd8ce(0x21b)],this['framework']);return;}const _0x2a39d7={};_0x2a39d7[_0x3fd8ce(0x2c1)]=_0x49dbfa;const _0x297b72=await Promise[_0x3fd8ce(0x296)]([_0x33666d[_0x3fd8ce(0x25c)](this[_0x3fd8ce(0x21b)][_0x3fd8ce(0x2b7)],this[_0x3fd8ce(0x21b)]['userName'],constants[_0x3fd8ce(0x2b3)],_0x82afde[_0x3fd8ce(0x215)](require,_0x82afde[_0x3fd8ce(0x1e7)])[_0x3fd8ce(0x2c8)],_0x2a39d7)[_0x3fd8ce(0x294)](_0x2f46d4=>{return _0x2fcd36['cancel'](),_0x2f46d4;}),_0x2fcd36]);_0x297b72[_0x3fd8ce(0x23b)]=_0x82afde['ltmUl'](_0x297b72[_0x3fd8ce(0x23b)],_0x82afde['jWdfa'])||_0x82afde[_0x3fd8ce(0x241)](_0x297b72[_0x3fd8ce(0x23b)],!![]);const _0x98c09b=_0x82afde[_0x3fd8ce(0x22d)](this['config'][_0x3fd8ce(0x2a5)],!![])||_0x82afde[_0x3fd8ce(0x241)](this[_0x3fd8ce(0x21b)][_0x3fd8ce(0x2a5)],_0x82afde[_0x3fd8ce(0x2c4)]);if(_0x82afde[_0x3fd8ce(0x241)](_0x297b72[_0x3fd8ce(0x1e5)],constants[_0x3fd8ce(0x299)])&&_0x98c09b)logger['info'](_0x82afde['LBBIl']);else{if(!_0x297b72[_0x3fd8ce(0x2bf)]&&_0x82afde['aVgWA'](_0x297b72[_0x3fd8ce(0x2cb)],0x1f7)&&_0x98c09b)logger[_0x3fd8ce(0x21c)](_0x82afde[_0x3fd8ce(0x231)]),utilities['fireFunnelTestEvent'](constants[_0x3fd8ce(0x1e6)],_0x5053ae,this['config'],this[_0x3fd8ce(0x200)]);else{if(!_0x297b72[_0x3fd8ce(0x2bf)]&&_0x98c09b){logger[_0x3fd8ce(0x21c)](_0x82afde['jDPJO']);const _0x3a0b40={'tcgUrl':constants[_0x3fd8ce(0x2b3)],'sdkVersion':_0x82afde['bEpYl'](require,_0x82afde[_0x3fd8ce(0x1e7)])[_0x3fd8ce(0x2c8)],'methodUsed':_0x82afde[_0x3fd8ce(0x2bc)],'proxyConfig':_0x49dbfa,'os':os[_0x3fd8ce(0x2a4)]()};utilities[_0x3fd8ce(0x2a7)](constants[_0x3fd8ce(0x1cd)],_0x3a0b40,this[_0x3fd8ce(0x21b)],this[_0x3fd8ce(0x200)]);}else{if(_0x297b72[_0x3fd8ce(0x2bf)]&&!_0x297b72[_0x3fd8ce(0x23b)]&&_0x98c09b)logger[_0x3fd8ce(0x21c)](_0x82afde[_0x3fd8ce(0x239)]);else{if(_0x82afde[_0x3fd8ce(0x268)](_0x297b72['status'],0xc8)&&_0x82afde[_0x3fd8ce(0x1dc)](_0x297b72[_0x3fd8ce(0x2cb)],0x12c))utilities[_0x3fd8ce(0x2a7)](constants[_0x3fd8ce(0x1f0)],_0x5053ae,this[_0x3fd8ce(0x21b)],this[_0x3fd8ce(0x200)]);else{if(_0x82afde[_0x3fd8ce(0x220)](_0x297b72['status'],0x190))_0x5053ae[_0x3fd8ce(0x2cb)]=_0x297b72['status'],utilities[_0x3fd8ce(0x2a7)](constants[_0x3fd8ce(0x22f)],_0x5053ae,this[_0x3fd8ce(0x21b)],this[_0x3fd8ce(0x200)]);else!_0x297b72[_0x3fd8ce(0x2cb)]&&utilities[_0x3fd8ce(0x2a7)](constants[_0x3fd8ce(0x20a)],_0x5053ae,this['config'],this['framework']);}}}}}if(_0x297b72[_0x3fd8ce(0x2bf)]&&_0x297b72[_0x3fd8ce(0x23b)]){const _0x16e78d={};_0x16e78d[_0x3fd8ce(0x250)]=_0x297b72;const _0x1a97fc=_0x16e78d;_0x49dbfa&&(_0x1a97fc['proxyConfig']=_0x49dbfa),_0x1a97fc[_0x3fd8ce(0x200)]=this[_0x3fd8ce(0x200)],_0x1a97fc[_0x3fd8ce(0x1d8)]=this['config'],helper[_0x3fd8ce(0x245)](_0x1a97fc),logger[_0x3fd8ce(0x259)](_0x82afde[_0x3fd8ce(0x1d4)]);}}catch(_0x2e9a5c){logger[_0x3fd8ce(0x259)]('Error\x20in\x20setting\x20up\x20tcg\x20authconfig.\x20Error:\x20'+(_0x2e9a5c[_0x3fd8ce(0x1e5)]?_0x2e9a5c[_0x3fd8ce(0x1e5)]:''));}});await _0x82afde['oaMNS'](_0x58e875);}['setupKeepAlive'](){const _0x3aa77e=a94_0xc863f9,_0x317cd7={'vjrDG':function(_0x44d6d8,_0x10e89f){return _0x44d6d8(_0x10e89f);},'lqzNb':_0x3aa77e(0x21a)};_0x317cd7[_0x3aa77e(0x206)](require,_0x317cd7['lqzNb'])();}[a94_0xc863f9(0x28d)](){const _0x4d6a85=a94_0xc863f9,_0x44365d={};_0x44365d[_0x4d6a85(0x272)]='2|3|1|0|4',_0x44365d[_0x4d6a85(0x2aa)]=_0x4d6a85(0x210),_0x44365d['CiZwW']=_0x4d6a85(0x1fb);const _0x883c23=_0x44365d,_0x422727=_0xecec63=>{const _0x4d24cb=_0x4d6a85,_0x5e6bba=_0x883c23[_0x4d24cb(0x272)][_0x4d24cb(0x2be)]('|');let _0x4a101f=0x0;while(!![]){switch(_0x5e6bba[_0x4a101f++]){case'0':PerformanceTester['captureError'](_0xecec63);continue;case'1':this[_0x4d24cb(0x270)][_0x4d24cb(0x229)](util[_0x4d24cb(0x285)]('%j',_0xecec63));continue;case'2':logger[_0x4d24cb(0x1ec)](_0xecec63['message']);continue;case'3':logger['debug'](util[_0x4d24cb(0x285)](_0xecec63));continue;case'4':ClientTroubleShootingService[_0x4d24cb(0x2cd)]();continue;}break;}};process['on'](_0x883c23[_0x4d6a85(0x2aa)],_0x422727),process['on'](_0x883c23[_0x4d6a85(0x244)],_0x422727);}async[a94_0xc863f9(0x23a)](_0x25a9e7){const _0x2bc168=a94_0xc863f9,_0x27c5e2={};_0x27c5e2[_0x2bc168(0x2c3)]=_0x2bc168(0x1cb),_0x27c5e2['xbfek']=function(_0x3c7a49,_0x5e60eb){return _0x3c7a49+_0x5e60eb;},_0x27c5e2['EvIeS']='handled',_0x27c5e2['Tsomu']=function(_0x2beb7e,_0x2c2267){return _0x2beb7e+_0x2c2267;},_0x27c5e2[_0x2bc168(0x213)]=_0x2bc168(0x260);const _0x27e795=_0x27c5e2,_0x15a8af=_0x27e795[_0x2bc168(0x2c3)]['split']('|');let _0x37be63=0x0;while(!![]){switch(_0x15a8af[_0x37be63++]){case'0':this[_0x27e795['xbfek'](_0x27e795[_0x2bc168(0x2ce)],_0x25a9e7)]=!![];continue;case'1':if(this[_0x27e795[_0x2bc168(0x290)](_0x27e795[_0x2bc168(0x2ce)],_0x25a9e7)])return;continue;case'2':await ClientTroubleShootingService[_0x2bc168(0x2cd)]();continue;case'3':await TestHubHandler[_0x2bc168(0x1d1)](_0x25a9e7);continue;case'4':await BrowserstackCLI[_0x2bc168(0x211)]()[_0x2bc168(0x1d1)]();continue;case'5':this[_0x2bc168(0x271)]=_0x25a9e7;continue;case'6':logger['info'](_0x27e795['xbfek'](_0x27e795[_0x2bc168(0x213)],_0x25a9e7));continue;case'7':await ClientTroubleShootingService['reportProcessInterruptionSituation'](_0x25a9e7);continue;}break;}}[a94_0xc863f9(0x1d3)](){const _0x457a81=a94_0xc863f9,_0x1ae947={'umlHM':function(_0x28dfa2,_0x3039ad){return _0x28dfa2===_0x3039ad;},'sOoAY':_0x457a81(0x2a3),'VCdql':function(_0x2cb8a6,_0x50ad6f){return _0x2cb8a6>_0x50ad6f;},'IhVrd':function(_0x1d2835,_0x5b9eb4){return _0x1d2835(_0x5b9eb4);},'gGtaU':function(_0x2cfda2){return _0x2cfda2();},'pnJPS':_0x457a81(0x1f4)};let _0x4a4fe8=0x0;return async()=>{const _0x3d9811=_0x457a81;_0x4a4fe8++;if(_0x1ae947[_0x3d9811(0x2b8)](_0x4a4fe8,0x1)){helper['checkStopLocalBinaryOnExit'](this[_0x3d9811(0x200)])&&await this[_0x3d9811(0x297)]();try{logger['debug'](_0x1ae947['sOoAY']),await TestHubHandler['stop'](_0x4a4fe8),await ClientTroubleShootingService['reportFinalDetectionState'](),await BrowserstackCLI[_0x3d9811(0x211)]()[_0x3d9811(0x1d1)]('1');}catch(_0x3eb1e0){logger['debug'](_0x3d9811(0x2b6)+util[_0x3d9811(0x285)](_0x3eb1e0));}PerformanceTester[_0x3d9811(0x243)](PerformanceEvents[_0x3d9811(0x1c5)]);if(PerformanceTester['isEnabled']()){const {measures:_0xb2467e,errors:_0x4c5b3f}=await PerformanceTester[_0x3d9811(0x295)](),_0x1b8c69={};if(_0xb2467e&&_0x1ae947[_0x3d9811(0x27c)](_0xb2467e[_0x3d9811(0x205)],0x0)||_0x4c5b3f&&_0x1ae947['VCdql'](_0x4c5b3f['length'],0x0)){const _0x332af8={};_0x332af8[_0x3d9811(0x2af)]=_0xb2467e,_0x332af8[_0x3d9811(0x1c7)]=_0x4c5b3f,Object['assign'](_0x1b8c69,_0x332af8);}try{const _0xaf75f4=await helper[_0x3d9811(0x23e)](_0x1b8c69,this['config']);logger[_0x3d9811(0x259)](_0x3d9811(0x269)+_0x1ae947[_0x3d9811(0x280)](getEdsInstrumentationAPIUrl,'')+_0x3d9811(0x20f)+_0xaf75f4[_0x3d9811(0x26d)]);}catch(_0xdae21f){logger[_0x3d9811(0x259)](_0x3d9811(0x281)+_0x1ae947[_0x3d9811(0x280)](getEdsInstrumentationAPIUrl,'')+_0x3d9811(0x1e9)+util[_0x3d9811(0x285)](_0xdae21f));}try{fs[_0x3d9811(0x298)](path[_0x3d9811(0x2ab)](_0x1ae947[_0x3d9811(0x1fd)](getLogDir),_0x1ae947[_0x3d9811(0x24c)]),JSON[_0x3d9811(0x1c9)](_0x1b8c69));}catch(_0x52b961){logger['debug']('Error\x20in\x20writing\x20events\x20to\x20file\x20'+_0x52b961);}}}logger&&logger[_0x3d9811(0x2a6)](),fileLogger&&fileLogger[_0x3d9811(0x2a6)]();};}}exports[a94_0xc863f9(0x1f1)]=BrowserStackSetup;
|
|
1
|
+
function a94_0x5016(){const _0x19cce6=['FRAMEWORK','../bin/v2/browserstackCLI','isAuthenticated','getCentralUser','setBrowserstackInfraFromConfig','startMonitoring','\x20with\x20response\x20','3sLNTcM','readConfig','toString','84PaFLLM','Error\x20occured\x20while\x20stopping\x20percy','oZJnN','eVeWg','win32','MAOug','VlWlu','2|3|1|4|0','setUpHubUrl','warn','bstackConfig','cancel','YwtbV','\x20with\x20error\x20','../bin/v2/modules/loadTestModule','pUoSC','qaGbg','setupTCGAuth','JBjLZ','race','userName','end','customRepeaters','status','SIGBREAK','exceptions','url','preInitialize','stopPercy','SIGHUP','../bin/utils/apiUtilityMethods','tcg\x20config\x20setup\x20successful.','stopLocalBinary','percy','wboHC','isLTSSession','push','exitHandler','No\x20config\x20provided.','NDJcH','getAccessKey','SIGTERM','measures','framework','SIGABRT','setupTcgConfigFile','winstonLogger','Tluim','turboScaleUrl','split','NdlXJ','LrRct','../bin/utils/clientTroubleshootingService','setLogLevel','playwright','XwohQ','env','lvoXy','selenium-webdriver','userName\x20or\x20accessKey\x20is\x20not\x20defined','getInstance','HUB_MANAGEMENT','Error\x20in\x20sending\x20testhub\x20stop:\x20','startLocalBinary','envConfig','yfEjo','GPKVe','generateLocalIdentifier','isEnabled','bZwIi','setCLICaps','AOAis','isTurboScaleSession','platforms','BrowserstackHealing.init','isHealingEnabled','config','dsKuR','8298279ixPobo','turboScaleOptions','./helper','testContextOptions','info','NEHkQ','Local\x20binary\x20not\x20started\x20as\x20skipBinaryInitialisation\x20is\x20enabled','Local\x20binary\x20started\x20successfully','constructor','getHubUrl','measureWrapper','sdkRunId','playwrightUrl','../bin/utils/constants','close','accessKey','UZjXZ','intExitHandler','requireSeleniumWebdriverCheck','handled','Healing\x20is\x20not\x20enabled\x20for\x20your\x20group,\x20please\x20contact\x20the\x20admin','getFinalCaps','GglKM','isNotUndefined','11cRuirb','4.5.0','BMNLy','nEETs','killSignal','unhandledRejection','cliConfig','5431120yLztWa','beforeExit','initialize','Shutdown\x20triggered\x20by\x20','?caps=','2184NClEEE','isUndefined','proxyConfig','Local\x20binary\x20stopped','setupKeepAlive','TCG_DOWN','FPJLR','WzrpC','HxwAz','../ai-sdk-node/bundle','AUTOLOGCAPTURE_NOTIFICATION','useW3C','__isPlaywrightInstalled','UPGRADE_REQUIRED','4841705HiTmAl','./performance/constants','pnKyL','setEnvCaps','includes','AI_INIT_SUCCESSFUL','error','./testhub/testhubHandler','4186812RGbkof','PYfYf','AEKIz','events.json','isTrue','skipSessionName','stringify','BROWSERSTACK_PERCY','vAPxZ','stop','errorMessage','SIGQUIT','Error\x20in\x20Fire\x20SDKTestAttempted.\x20Stacktrace:\x20','getLocalIdentifier','2|19|5|16|10|0|11|9|4|18|21|23|15|17|13|14|1|22|20|8|12|7|6|3','tfyEo','osphY','skipBinaryInitialisation','dzfie','aiHeal:tcgAuth','PXigz','wUcpM','dqyqQ','kHwnS','ANRZz','ats-repeater','bthOq','debug','join','skipSessionStatus','vDoaS','browserstackLocal','statusCode','assign','PnVpF','setHandlePWError','selfHeal','configPath','init','Please\x20upgrade\x20Browserstack\x20SDK\x20to\x20the\x20latest\x20version\x20to\x20use\x20the\x20self-healing\x20feature.','QQdVo','false','kKpMi','disableAutoCaptureLogs','LKKrH','parallelsPerPlatform\x20was\x20ignored\x20as\x20platforms\x20object\x20was\x20not\x20defined','proxyUrl','./setKeepAlive','./timeoutPromise','iIZrZ','7|3|2|6|4|0|5|1','handleExceptions','29267oqGeWa','10716579tMNyGM','Calling\x20Build\x20Stop\x20from\x20ExitHandler','captureError','setLogDir','Percy\x20stopped','unhandledErrors','eKVxL','uuid','tcgAuthConfig','TCG_AUTH_TIMEOUT','10BxfBNy','getPackageVersion','272770suWAfB','SDK_CLEANUP','proxy','reportFinalDetectionState','writeFileSync','ABdPq','Odjzy','AI_INIT_FAILURE','Failed\x20to\x20send\x20data\x20to\x20','vQZmA','xMREz','../../package.json','fireFunnelTestEvent','wpHht','default','IkPhR','uLcUt','SDK\x20run\x20started\x20with\x20id:\x20','./logger','./testhub/utils','isRunning','isBrowserstackInfra','getUserName','XUhXG','sanitizeCaps','TCG_URL','QuDlJ','length','integrations','browserStackLocalOptions','getTurboScaleGridDetails','MRmFZ','localIdentifier','setupBrowserstackLocal','xIYWk','true','jjnSo','SIGINT','aBmsG','qhJLz','localOptions','AI_PROXY_FAILURE','path','UGrsn','format','turboScale','version','util','platform','allocateHub','Error\x20in\x20writing\x20events\x20to\x20file\x20','MxAHB','vnaJF','BROWSERSTACK_TURBOSCALE','RYmue','setCredentialsFromYmlConfig','message'];a94_0x5016=function(){return _0x19cce6;};return a94_0x5016();}const a94_0x43d472=a94_0x1dd6;(function(_0x49a4da,_0x4b3c64){const _0x46979e=a94_0x1dd6,_0x3f2213=_0x49a4da();while(!![]){try{const _0x300380=-parseInt(_0x46979e(0x142))/0x1*(parseInt(_0x46979e(0x99))/0x2)+-parseInt(_0x46979e(0xd9))/0x3*(parseInt(_0x46979e(0x149))/0x4)+-parseInt(_0x46979e(0x15c))/0x5+-parseInt(_0x46979e(0x164))/0x6+-parseInt(_0x46979e(0x8c))/0x7*(parseInt(_0x46979e(0x14e))/0x8)+-parseInt(_0x46979e(0x8d))/0x9*(-parseInt(_0x46979e(0x97))/0xa)+-parseInt(_0x46979e(0x12a))/0xb*(-parseInt(_0x46979e(0xdc))/0xc);if(_0x300380===_0x4b3c64)break;else _0x3f2213['push'](_0x3f2213['shift']());}catch(_0x1a593c){_0x3f2213['push'](_0x3f2213['shift']());}}}(a94_0x5016,0xc4bfb));function a94_0x1dd6(_0x484b5a,_0x5edb4b){const _0x5016da=a94_0x5016();return a94_0x1dd6=function(_0x1dd69f,_0xf190e5){_0x1dd69f=_0x1dd69f-0x73;let _0xe727ca=_0x5016da[_0x1dd69f];return _0xe727ca;},a94_0x1dd6(_0x484b5a,_0x5edb4b);}const util=require(a94_0x43d472(0xc8)),os=require('os'),path=require(a94_0x43d472(0xc3)),{v4:uuidv4}=require(a94_0x43d472(0x94)),fs=require('fs'),constants=require(a94_0x43d472(0x137)),logger=require(a94_0x43d472(0xab))[a94_0x43d472(0x10a)],fileLogger=require('./logger')['fileLogger'],{getLogDir}=require('./logger'),helper=require(a94_0x43d472(0x12c)),utilities=require('./utilities'),percyHelper=require('./percy/utils'),hubAllocator=require('../hubAllocationMethods'),PerformanceTester=require('./performance/performance-tester'),{EVENTS:PerformanceEvents,AUTOMATE_EVENTS:PerformanceAutEvents}=require(a94_0x43d472(0x15d)),{setPercyFlag}=require(a94_0x43d472(0xac)),TestHubHandler=require(a94_0x43d472(0x163)),timeoutPromise=require(a94_0x43d472(0x88)),BrowserstackCLI=require(a94_0x43d472(0xd3)),LoadTestModule=require(a94_0x43d472(0xea)),{getEdsInstrumentationAPIUrl}=require(a94_0x43d472(0xfa)),ClientTroubleShootingService=require(a94_0x43d472(0x110));class BrowserStackSetup{constructor(_0x37d616,_0x52d50c){const _0x5be73c=a94_0x43d472,_0x22a194={'tfyEo':_0x5be73c(0x172),'XXzMZ':_0x5be73c(0x102),'Tluim':function(_0x404902){return _0x404902();}},_0x1d282f=_0x22a194[_0x5be73c(0x173)][_0x5be73c(0x10d)]('|');let _0xa99bb4=0x0;while(!![]){switch(_0x1d282f[_0xa99bb4++]){case'0':this[_0x5be73c(0x7d)]=helper['getConfigPath'](_0x37d616);continue;case'1':helper[_0x5be73c(0xd6)](this[_0x5be73c(0x128)],this[_0x5be73c(0x148)]);continue;case'2':this[_0x5be73c(0x92)]=[];continue;case'3':PerformanceTester[_0x5be73c(0xd7)]();continue;case'4':this[_0x5be73c(0x128)][_0x5be73c(0x125)]=this[_0x5be73c(0x128)][_0x5be73c(0x125)]||[];continue;case'5':this['envConfig']=helper[_0x5be73c(0x15f)]();continue;case'6':helper[_0x5be73c(0x111)](this[_0x5be73c(0x128)],this['cliConfig'],this[_0x5be73c(0x11c)]);continue;case'7':helper[_0x5be73c(0x90)](this[_0x5be73c(0x128)]);continue;case'8':this[_0x5be73c(0x128)][_0x5be73c(0x12d)]['skipSessionName']=!helper[_0x5be73c(0xae)]()||helper[_0x5be73c(0x168)](this[_0x5be73c(0x128)][_0x5be73c(0x12d)][_0x5be73c(0x169)]);continue;case'9':this[_0x5be73c(0x148)]=helper[_0x5be73c(0x122)](_0x37d616);continue;case'10':this[_0x5be73c(0xfd)]=null;continue;case'11':this[_0x5be73c(0x128)]=helper[_0x5be73c(0xda)](this[_0x5be73c(0x7d)]);continue;case'12':helper[_0x5be73c(0x13f)](this[_0x5be73c(0x128)],this[_0x5be73c(0x148)],this[_0x5be73c(0x11c)]);continue;case'13':if(helper['isUndefined'](this['config']))throw new Error(_0x22a194['XXzMZ']);continue;case'14':if(this[_0x5be73c(0x128)][_0x5be73c(0x162)])throw new Error(this[_0x5be73c(0x128)][_0x5be73c(0x162)]);continue;case'15':this['framework']=_0x52d50c;continue;case'16':this[_0x5be73c(0x77)]=null;continue;case'17':global[_0x5be73c(0x107)]=_0x52d50c;continue;case'18':this['config'][_0x5be73c(0x12d)]=this[_0x5be73c(0x128)][_0x5be73c(0x12d)]||{};continue;case'19':helper['normalizeTestReportingEnvVars']();continue;case'20':this[_0x5be73c(0x128)]['testContextOptions'][_0x5be73c(0x75)]=!helper[_0x5be73c(0xae)]()||helper[_0x5be73c(0x168)](this['config'][_0x5be73c(0x12d)][_0x5be73c(0x75)]);continue;case'21':this[_0x5be73c(0x16e)]={};continue;case'22':helper[_0x5be73c(0xd0)](this[_0x5be73c(0x128)]);continue;case'23':this['sdkRunId']=_0x22a194[_0x5be73c(0x10b)](uuidv4);continue;}break;}}[a94_0x43d472(0xf7)](_0x4c2787){const _0x4dd970=a94_0x43d472,_0x18cd7e={'YwtbV':_0x4dd970(0x117),'XUhXG':function(_0x4d377e,_0x30091e){return _0x4d377e===_0x30091e;},'wUcpM':function(_0x3284ca,_0x2bf23f){return _0x3284ca===_0x2bf23f;},'xMREz':_0x4dd970(0xb5),'dzfie':'SDKTestAttempted','jjnSo':function(_0x255a70,_0x52ac20){return _0x255a70<_0x52ac20;},'yfEjo':function(_0xf598e5,_0x255fff){return _0xf598e5(_0x255fff);},'vAPxZ':_0x4dd970(0x116),'vOYLg':function(_0x5c7dd2,_0x287967){return _0x5c7dd2===_0x287967;},'eKVxL':_0x4dd970(0x143),'pnKyL':'Few\x20SDK\x20features\x20were\x20not\x20activated\x20as\x20platforms\x20object\x20was\x20not\x20defined','qaGbg':_0x4dd970(0x85),'uLcUt':_0x4dd970(0x105),'BVXJV':_0x4dd970(0xbe),'Odjzy':_0x4dd970(0xf9),'DYFTM':function(_0x2dcc8d,_0x2d9c94){return _0x2dcc8d!==_0x2d9c94;},'XwohQ':_0x4dd970(0xe0),'GglKM':_0x4dd970(0x108),'GPKVe':_0x4dd970(0x16f),'dqyqQ':_0x4dd970(0xf4),'FPJLR':_0x4dd970(0x14a)},_0x1aac83=this['framework'];global[_0x4dd970(0x128)]=this[_0x4dd970(0x128)],helper[_0x4dd970(0xb1)](this[_0x4dd970(0x128)]),this[_0x4dd970(0x146)]=null,global[_0x4dd970(0x135)]=this[_0x4dd970(0x135)],logger['info'](_0x4dd970(0xaa)+this['sdkRunId']),!this[_0x4dd970(0x128)][_0x4dd970(0xb6)]&&(this[_0x4dd970(0x128)][_0x4dd970(0xb6)]=this[_0x4dd970(0x128)][_0x4dd970(0xc1)]||{});if(helper[_0x4dd970(0x14f)](helper[_0x4dd970(0xaf)](this[_0x4dd970(0x128)]))||helper['isUndefined'](helper[_0x4dd970(0x104)](this[_0x4dd970(0x128)])))throw new Error(_0x18cd7e[_0x4dd970(0xe8)]);helper['getLocalConfig'](this[_0x4dd970(0x128)])&&helper[_0x4dd970(0x14f)](helper[_0x4dd970(0x171)](this['config']))&&(!helper[_0x4dd970(0x14f)](this[_0x4dd970(0x128)][_0x4dd970(0xb6)])&&_0x18cd7e[_0x4dd970(0xb0)](this[_0x4dd970(0x128)]['browserStackLocalOptions'][_0x4dd970(0x132)],Object)?!helper[_0x4dd970(0x168)](this[_0x4dd970(0x128)]['browserStackLocalOptions'][_0x4dd970(0x175)])&&(this['config'][_0x4dd970(0xb6)][_0x4dd970(0xb9)]=helper['generateLocalIdentifier']()):this['config'][_0x4dd970(0xb6)]={'localIdentifier':helper[_0x4dd970(0x11f)]()});this['config'][_0x4dd970(0xb6)][_0x4dd970(0x175)]=helper[_0x4dd970(0x168)](this[_0x4dd970(0x128)][_0x4dd970(0xb6)][_0x4dd970(0x175)]),helper[_0x4dd970(0x7b)](this['config']);if(_0x18cd7e[_0x4dd970(0x179)](_0x1aac83,_0x18cd7e[_0x4dd970(0xa3)]))return;this['handleExceptions']();process['env'][_0x4dd970(0xce)]&&(this[_0x4dd970(0x128)][_0x4dd970(0xc6)]=helper['isTrue'](process[_0x4dd970(0x114)][_0x4dd970(0xce)]),this['config'][_0x4dd970(0x12b)]=this[_0x4dd970(0x128)][_0x4dd970(0x12b)]||{});helper['isTurboScaleSession'](this[_0x4dd970(0x128)])&&(process[_0x4dd970(0x114)][_0x4dd970(0xce)]=!![]);LoadTestModule[_0x4dd970(0xff)](this['config'])&&logger[_0x4dd970(0x73)]('LTS\x20session\x20enabled\x20for\x20this\x20run.\x20SDK\x20run\x20id:\x20'+this[_0x4dd970(0x135)]);if(!helper['isBrowserstackInfra']()){try{process[_0x4dd970(0x114)][_0x4dd970(0xd2)]=_0x1aac83,utilities[_0x4dd970(0xa5)](_0x18cd7e[_0x4dd970(0x176)],{},this['config'],this['framework']);}catch(_0x101880){logger[_0x4dd970(0x73)](_0x4dd970(0x170)+_0x101880);}return;}if(helper[_0x4dd970(0x13c)](_0x1aac83)){if(global[_0x4dd970(0x15a)])return;_0x18cd7e[_0x4dd970(0xbd)](_0x18cd7e[_0x4dd970(0x11d)](parseInt,helper['getPackageVersion'](_0x18cd7e[_0x4dd970(0x16c)])),0x3)&&(this[_0x4dd970(0x128)][_0x4dd970(0x159)]=![]),_0x18cd7e['vOYLg'](helper['compareVersions'](helper[_0x4dd970(0x98)](_0x18cd7e[_0x4dd970(0x16c)]),_0x18cd7e[_0x4dd970(0x93)]),0x1)&&(this['config'][_0x4dd970(0x159)]=!![]);}(helper['isUndefined'](this[_0x4dd970(0x128)]['platforms'])||helper[_0x4dd970(0x14f)](this[_0x4dd970(0x128)][_0x4dd970(0x125)][_0x4dd970(0xb4)]))&&(helper[_0x4dd970(0x14f)](this['config']['parallelsPerPlatform'])?logger[_0x4dd970(0x12e)](_0x18cd7e[_0x4dd970(0x15e)]):logger[_0x4dd970(0xe5)](_0x18cd7e[_0x4dd970(0xec)]),this['config'][_0x4dd970(0x125)]=[]);!this[_0x4dd970(0x128)][_0x4dd970(0x12d)]&&(this['config'][_0x4dd970(0x12d)]={});try{process[_0x4dd970(0x114)]['FRAMEWORK']=_0x4c2787['_'][0x0],utilities[_0x4dd970(0xa5)](_0x18cd7e[_0x4dd970(0x176)],{},this[_0x4dd970(0x128)],this['framework']);}catch(_0x3bd8f0){logger[_0x4dd970(0x73)](_0x4dd970(0x170)+_0x3bd8f0);}!this[_0x4dd970(0x128)][_0x4dd970(0x83)]&&logger[_0x4dd970(0x12e)](constants[_0x4dd970(0x158)]),this[_0x4dd970(0x13b)]=this[_0x4dd970(0x13b)]['bind'](this),process['on'](_0x18cd7e[_0x4dd970(0xa9)],this[_0x4dd970(0x13b)]),process['on'](_0x18cd7e['BVXJV'],this[_0x4dd970(0x13b)]),process['on'](_0x18cd7e[_0x4dd970(0x9f)],this[_0x4dd970(0x13b)]),_0x18cd7e['DYFTM'](process[_0x4dd970(0xc9)],_0x18cd7e[_0x4dd970(0x113)])?(process['on'](_0x18cd7e[_0x4dd970(0x140)],this[_0x4dd970(0x13b)]),process['on'](_0x18cd7e[_0x4dd970(0x11e)],this[_0x4dd970(0x13b)])):process['on'](_0x18cd7e[_0x4dd970(0x17a)],this[_0x4dd970(0x13b)]),process['on'](_0x18cd7e[_0x4dd970(0x154)],this['exitHandler']());}async[a94_0x43d472(0x14b)](_0x28a16c){const _0xd90a9f=a94_0x43d472,_0x1abedf={'vQZmA':_0xd90a9f(0x17d),'wboHC':'custom-repeater','PXigz':_0xd90a9f(0xbc),'VlWlu':function(_0x4db4e2,_0x362024){return _0x4db4e2===_0x362024;},'AEKIz':_0xd90a9f(0x112),'lvoXy':function(_0x5869f8,_0x294afb){return _0x5869f8+_0x294afb;},'UZjXZ':_0xd90a9f(0x14d),'EynLy':function(_0x4cf609,_0x52b603){return _0x4cf609(_0x52b603);},'BMNLy':'codeceptjs'};this[_0xd90a9f(0xf7)](_0x28a16c);if(helper[_0xd90a9f(0x124)](this[_0xd90a9f(0x128)])){const _0x5e4e3c=await helper[_0xd90a9f(0xb7)](this[_0xd90a9f(0x128)]);this[_0xd90a9f(0x128)]['turboScaleGridDetails']=_0x5e4e3c,_0x5e4e3c['isTrialGrid']&&helper[_0xd90a9f(0x141)](this[_0xd90a9f(0x128)]['browserstackLocal'])&&helper[_0xd90a9f(0x168)](this[_0xd90a9f(0x128)][_0xd90a9f(0x77)])&&(this[_0xd90a9f(0x128)][_0xd90a9f(0xb6)][_0xd90a9f(0xb9)]=_0x1abedf[_0xd90a9f(0xa2)],this[_0xd90a9f(0x128)][_0xd90a9f(0xb6)][_0x1abedf[_0xd90a9f(0xfe)]]=_0x5e4e3c[_0xd90a9f(0xf2)][_0xd90a9f(0x74)](','),this['config'][_0xd90a9f(0xb6)]['forceLocal']=_0x1abedf[_0xd90a9f(0x178)]),this[_0xd90a9f(0x128)][_0xd90a9f(0x10c)]=_0x5e4e3c[_0xd90a9f(0xf6)],this[_0xd90a9f(0x107)]&&_0x1abedf[_0xd90a9f(0xe2)](this['framework']['toLowerCase'](),_0x1abedf[_0xd90a9f(0x166)])?this[_0xd90a9f(0x128)][_0xd90a9f(0x10c)]=_0x1abedf[_0xd90a9f(0x115)](_0x5e4e3c[_0xd90a9f(0x136)],_0x1abedf[_0xd90a9f(0x13a)]):constants['hubUrl']=helper[_0xd90a9f(0x133)](this[_0xd90a9f(0x128)]),logger['debug']('HUB\x20URL\x20SET\x20TO\x20TurboScale\x20HUB\x20-\x20'+constants['hubUrl']);}helper['setProxySettings'](this[_0xd90a9f(0x128)]),this[_0xd90a9f(0x152)](),_0x1abedf['EynLy'](setPercyFlag,this),await this[_0xd90a9f(0xba)](),![_0x1abedf[_0xd90a9f(0x144)],_0x1abedf['AEKIz']][_0xd90a9f(0x160)](this[_0xd90a9f(0x107)])&&!helper[_0xd90a9f(0x124)](this[_0xd90a9f(0x128)])&&!helper[_0xd90a9f(0xd5)]()['central_scanner']&&await this['setUpHubUrl']();}async['setupPercy'](){const _0x38a7e0=a94_0x43d472,_0x1aa515={};_0x1aa515['RYmue']=function(_0x526303,_0x141612){return _0x526303===_0x141612;},_0x1aa515[_0x38a7e0(0xde)]=_0x38a7e0(0x81),_0x1aa515[_0x38a7e0(0xc4)]='Could\x20not\x20start\x20percy,\x20check\x20percy\x20logs\x20for\x20info.',_0x1aa515[_0x38a7e0(0xc0)]='Percy\x20started\x20successfully',_0x1aa515[_0x38a7e0(0x123)]=_0x38a7e0(0xbc),_0x1aa515[_0x38a7e0(0x7a)]=_0x38a7e0(0x14a);const _0x1ad260=_0x1aa515;if(helper[_0x38a7e0(0x168)](this['config']['percy'])&&(!this[_0x38a7e0(0xfd)]||!this['percy']['isRunning']()))try{this['percy']=await percyHelper['startPercy'](this[_0x38a7e0(0x128)]);if(!this[_0x38a7e0(0xfd)]){process['env']['BROWSERSTACK_PERCY']=_0x1ad260[_0x38a7e0(0xde)];throw new Error(_0x1ad260[_0x38a7e0(0xc4)]);}logger[_0x38a7e0(0x12e)](_0x1ad260['qhJLz']),process['env'][_0x38a7e0(0x16b)]=_0x1ad260[_0x38a7e0(0x123)];let _0x493ee3=0x0;const _0x5dde1c=async()=>{const _0x4307d0=_0x38a7e0;_0x493ee3++,_0x1ad260[_0x4307d0(0xcf)](_0x493ee3,0x1)&&await this['stopPercy']();};process['on'](_0x1ad260[_0x38a7e0(0x7a)],_0x5dde1c);}catch(_0x36af49){process[_0x38a7e0(0x114)][_0x38a7e0(0x16b)]=_0x1ad260['oZJnN'],logger[_0x38a7e0(0x73)]('Error\x20in\x20percy\x20setup\x20'+_0x36af49);throw new Error(_0x36af49[_0x38a7e0(0xdb)]());}}async[a94_0x43d472(0xf8)](){const _0x4bbea5=a94_0x43d472,_0x122cd2={};_0x122cd2[_0x4bbea5(0xb8)]=_0x4bbea5(0x91),_0x122cd2[_0x4bbea5(0x89)]=_0x4bbea5(0xdd);const _0x34962e=_0x122cd2;if(this[_0x4bbea5(0xfd)]&&this[_0x4bbea5(0xfd)]['isRunning']())try{await percyHelper[_0x4bbea5(0xf8)](this[_0x4bbea5(0xfd)]),logger[_0x4bbea5(0x12e)](_0x34962e[_0x4bbea5(0xb8)]);}catch(_0x25e5c0){logger[_0x4bbea5(0x162)](_0x34962e[_0x4bbea5(0x89)],_0x25e5c0['message']);}}async[a94_0x43d472(0xba)](){const _0xf9ee74=a94_0x43d472,_0x27297d={};_0x27297d['TRWUH']=_0xf9ee74(0x130),_0x27297d[_0xf9ee74(0xcd)]=_0xf9ee74(0x131);const _0x3d1354=_0x27297d;if(helper[_0xf9ee74(0xae)]()&&helper[_0xf9ee74(0x168)](this[_0xf9ee74(0x128)][_0xf9ee74(0x77)])&&(!this['browserstackLocal']||!this[_0xf9ee74(0x77)]['isRunning']()))try{if(this[_0xf9ee74(0x128)]['browserStackLocalOptions'][_0xf9ee74(0x175)]){logger[_0xf9ee74(0x73)](_0x3d1354['TRWUH']);return;}this[_0xf9ee74(0x77)]=await helper[_0xf9ee74(0x11b)](this[_0xf9ee74(0x128)]),logger['info'](_0x3d1354['vnaJF']);}catch(_0x47297c){logger[_0xf9ee74(0x73)](_0x47297c);throw new Error(_0x47297c[_0xf9ee74(0xdb)]());}}async['stopBrowserstackLocal'](){const _0x3f95bf=a94_0x43d472,_0x2c40de={};_0x2c40de[_0x3f95bf(0xa6)]=_0x3f95bf(0x151),_0x2c40de[_0x3f95bf(0x174)]='Error\x20occured\x20while\x20stopping\x20local\x20binary';const _0x2f5576=_0x2c40de;if(this[_0x3f95bf(0x77)]&&this[_0x3f95bf(0x77)][_0x3f95bf(0xad)]())try{await helper[_0x3f95bf(0xfc)](this[_0x3f95bf(0x77)]),logger[_0x3f95bf(0x12e)](_0x2f5576[_0x3f95bf(0xa6)]);}catch(_0xb4e9e1){logger['error'](_0x2f5576['osphY'],_0xb4e9e1['message']);}}async[a94_0x43d472(0xe4)](){const _0xf7b6bb=a94_0x43d472;return PerformanceTester[_0xf7b6bb(0x134)](PerformanceAutEvents[_0xf7b6bb(0x119)],async()=>{const _0x2346ef=_0xf7b6bb;await hubAllocator[_0x2346ef(0xca)](this[_0x2346ef(0x128)]);})();}async[a94_0x43d472(0xed)](){const _0x53bb85=a94_0x43d472,_0x30f39d={'HxwAz':function(_0x58d40d,_0x26347d){return _0x58d40d(_0x26347d);},'JBjLZ':_0x53bb85(0x157),'dsKuR':function(_0x169ddc,_0x4a941a,_0x263a32,_0x58dd40,_0x4b39fd,_0xd4d104,_0x552bfb){return _0x169ddc(_0x4a941a,_0x263a32,_0x58dd40,_0x4b39fd,_0xd4d104,_0x552bfb);},'ABdPq':'BrowserstackHealing.init\x20method\x20timed\x20out','eVeWg':'BrowserstackHealingInitFailed','xIYWk':_0x53bb85(0xa4),'vDoaS':_0x53bb85(0x126),'VLktO':function(_0x143453,_0x2780c7){return _0x143453(_0x2780c7);},'WzrpC':function(_0x6fb601,_0x46d9cd){return _0x6fb601===_0x46d9cd;},'nEETs':_0x53bb85(0xbc),'RSltf':function(_0x496887,_0x3f972e){return _0x496887===_0x3f972e;},'bthOq':function(_0x2e34ae,_0xfd17a7){return _0x2e34ae===_0xfd17a7;},'LKKrH':_0x53bb85(0x7f),'KbNtt':function(_0x3721b4,_0x3c800e){return _0x3721b4===_0x3c800e;},'ORYqY':'Something\x20went\x20wrong.\x20Disabling\x20healing\x20for\x20this\x20session.\x20Please\x20try\x20again\x20later.','SJgyV':'Authentication\x20Failed.\x20Disabling\x20Healing\x20for\x20this\x20session.','klrCQ':_0x53bb85(0x13e),'NdlXJ':function(_0x25f0d3,_0x2ed0df){return _0x25f0d3>=_0x2ed0df;},'aBmsG':function(_0x502972,_0x1fc633){return _0x502972<_0x1fc633;},'PYfYf':_0x53bb85(0xfb),'LrRct':_0x53bb85(0x177),'MxAHB':function(_0x3bae23){return _0x3bae23();}},_0x89c4e9=PerformanceTester[_0x53bb85(0x134)](_0x30f39d[_0x53bb85(0x10f)],async()=>{const _0x10e5ef=_0x53bb85;try{const _0x31a9d8=new Date(),_0x58bbc3=helper['getProxyConfigForTcg'](this[_0x10e5ef(0x128)]),_0x5349a8=_0x30f39d[_0x10e5ef(0x156)](require,path[_0x10e5ef(0x74)](__dirname,_0x30f39d[_0x10e5ef(0xee)])),_0x3dd662=_0x30f39d[_0x10e5ef(0x129)](timeoutPromise,constants[_0x10e5ef(0x96)],_0x30f39d[_0x10e5ef(0x9e)],_0x30f39d[_0x10e5ef(0xdf)],_0x31a9d8,this['config'],this['framework']),_0x33939f={'tcgUrl':constants[_0x10e5ef(0xb2)],'sdkVersion':_0x30f39d['HxwAz'](require,_0x30f39d[_0x10e5ef(0xbb)])[_0x10e5ef(0xc7)],'methodUsed':_0x30f39d[_0x10e5ef(0x76)],'proxyConfig':_0x58bbc3,'os':os[_0x10e5ef(0xc9)]()};if(_0x58bbc3&&_0x58bbc3[_0x10e5ef(0x86)]){utilities[_0x10e5ef(0xa5)](constants[_0x10e5ef(0xc2)],_0x33939f,this['config'],this[_0x10e5ef(0x107)]);return;}const _0x536b59={};_0x536b59[_0x10e5ef(0x9b)]=_0x58bbc3;const _0x374c27=await Promise[_0x10e5ef(0xef)]([_0x5349a8[_0x10e5ef(0x7e)](this[_0x10e5ef(0x128)][_0x10e5ef(0x139)],this['config'][_0x10e5ef(0xf0)],constants[_0x10e5ef(0xb2)],_0x30f39d['VLktO'](require,_0x30f39d[_0x10e5ef(0xbb)])[_0x10e5ef(0xc7)],_0x536b59)['then'](_0x35e000=>{const _0x1b0541=_0x10e5ef;return _0x3dd662[_0x1b0541(0xe7)](),_0x35e000;}),_0x3dd662]);_0x374c27[_0x10e5ef(0x127)]=_0x30f39d[_0x10e5ef(0x155)](_0x374c27[_0x10e5ef(0x127)],_0x30f39d[_0x10e5ef(0x145)])||_0x30f39d['RSltf'](_0x374c27[_0x10e5ef(0x127)],!![]);const _0x4baad7=_0x30f39d[_0x10e5ef(0x155)](this['config'][_0x10e5ef(0x7c)],!![])||_0x30f39d[_0x10e5ef(0x17e)](this[_0x10e5ef(0x128)]['selfHeal'],_0x30f39d[_0x10e5ef(0x145)]);if(_0x30f39d[_0x10e5ef(0x155)](_0x374c27[_0x10e5ef(0xd1)],constants[_0x10e5ef(0x15b)])&&_0x4baad7)logger[_0x10e5ef(0x12e)](_0x30f39d[_0x10e5ef(0x84)]);else{if(!_0x374c27[_0x10e5ef(0xd4)]&&_0x30f39d['KbNtt'](_0x374c27[_0x10e5ef(0xf3)],0x1f7)&&_0x4baad7)logger['info'](_0x30f39d['ORYqY']),utilities[_0x10e5ef(0xa5)](constants[_0x10e5ef(0x153)],_0x33939f,this[_0x10e5ef(0x128)],this[_0x10e5ef(0x107)]);else{if(!_0x374c27[_0x10e5ef(0xd4)]&&_0x4baad7){logger['info'](_0x30f39d['SJgyV']);const _0xd9f657={'tcgUrl':constants['TCG_URL'],'sdkVersion':_0x30f39d['HxwAz'](require,_0x30f39d['xIYWk'])[_0x10e5ef(0xc7)],'methodUsed':_0x30f39d[_0x10e5ef(0x76)],'proxyConfig':_0x58bbc3,'os':os[_0x10e5ef(0xc9)]()};utilities[_0x10e5ef(0xa5)](constants['TCG_AUTH_FAILURE'],_0xd9f657,this[_0x10e5ef(0x128)],this[_0x10e5ef(0x107)]);}else{if(_0x374c27[_0x10e5ef(0xd4)]&&!_0x374c27[_0x10e5ef(0x127)]&&_0x4baad7)logger[_0x10e5ef(0x12e)](_0x30f39d['klrCQ']);else{if(_0x30f39d[_0x10e5ef(0x10e)](_0x374c27[_0x10e5ef(0xf3)],0xc8)&&_0x30f39d[_0x10e5ef(0xbf)](_0x374c27[_0x10e5ef(0xf3)],0x12c))utilities['fireFunnelTestEvent'](constants[_0x10e5ef(0x161)],_0x33939f,this[_0x10e5ef(0x128)],this['framework']);else{if(_0x30f39d['NdlXJ'](_0x374c27['status'],0x190))_0x33939f[_0x10e5ef(0xf3)]=_0x374c27[_0x10e5ef(0xf3)],utilities[_0x10e5ef(0xa5)](constants[_0x10e5ef(0xa0)],_0x33939f,this[_0x10e5ef(0x128)],this[_0x10e5ef(0x107)]);else!_0x374c27['status']&&utilities['fireFunnelTestEvent'](constants['INVALID_INIT_RESP_WITH_USER_IMPACT'],_0x33939f,this[_0x10e5ef(0x128)],this['framework']);}}}}}if(_0x374c27[_0x10e5ef(0xd4)]&&_0x374c27[_0x10e5ef(0x127)]){const _0xc83ba1={};_0xc83ba1[_0x10e5ef(0x95)]=_0x374c27;const _0xda5cf9=_0xc83ba1;_0x58bbc3&&(_0xda5cf9[_0x10e5ef(0x150)]=_0x58bbc3),_0xda5cf9['framework']=this[_0x10e5ef(0x107)],_0xda5cf9[_0x10e5ef(0xe6)]=this[_0x10e5ef(0x128)],helper[_0x10e5ef(0x109)](_0xda5cf9),logger[_0x10e5ef(0x73)](_0x30f39d[_0x10e5ef(0x165)]);}}catch(_0x18161){logger[_0x10e5ef(0x73)]('Error\x20in\x20setting\x20up\x20tcg\x20authconfig.\x20Error:\x20'+(_0x18161[_0x10e5ef(0xd1)]?_0x18161[_0x10e5ef(0xd1)]:''));}});await _0x30f39d[_0x53bb85(0xcc)](_0x89c4e9);}[a94_0x43d472(0x152)](){const _0x550a85=a94_0x43d472,_0x1e22be={'pzEXZ':function(_0x56b61a,_0x58ba37){return _0x56b61a(_0x58ba37);},'Hyxvy':_0x550a85(0x87)};_0x1e22be['pzEXZ'](require,_0x1e22be['Hyxvy'])();}[a94_0x43d472(0x8b)](){const _0x1af6d9=a94_0x43d472,_0x1e1062={};_0x1e1062['NDJcH']=_0x1af6d9(0xe3),_0x1e1062[_0x1af6d9(0x17b)]=_0x1af6d9(0x147),_0x1e1062[_0x1af6d9(0x12f)]='uncaughtException';const _0x36a577=_0x1e1062,_0x15ccff=_0x472af3=>{const _0x5dacd2=_0x1af6d9,_0x1d8f5c=_0x36a577[_0x5dacd2(0x103)][_0x5dacd2(0x10d)]('|');let _0x4b22a9=0x0;while(!![]){switch(_0x1d8f5c[_0x4b22a9++]){case'0':ClientTroubleShootingService[_0x5dacd2(0x9c)]();continue;case'1':this[_0x5dacd2(0x92)][_0x5dacd2(0x100)](util[_0x5dacd2(0xc5)]('%j',_0x472af3));continue;case'2':logger[_0x5dacd2(0x162)](_0x472af3[_0x5dacd2(0xd1)]);continue;case'3':logger[_0x5dacd2(0x73)](util[_0x5dacd2(0xc5)](_0x472af3));continue;case'4':PerformanceTester[_0x5dacd2(0x8f)](_0x472af3);continue;}break;}};process['on'](_0x36a577[_0x1af6d9(0x17b)],_0x15ccff),process['on'](_0x36a577[_0x1af6d9(0x12f)],_0x15ccff);}async['intExitHandler'](_0x316f57){const _0x226c49=a94_0x43d472,_0x27340b={};_0x27340b[_0x226c49(0xeb)]=_0x226c49(0x8a),_0x27340b['ANRZz']=function(_0x368e0b,_0x2f62ce){return _0x368e0b+_0x2f62ce;},_0x27340b[_0x226c49(0xb3)]=_0x226c49(0x14c),_0x27340b[_0x226c49(0x80)]=_0x226c49(0x13d);const _0x5e00eb=_0x27340b,_0x28ce46=_0x5e00eb[_0x226c49(0xeb)][_0x226c49(0x10d)]('|');let _0x431f3e=0x0;while(!![]){switch(_0x28ce46[_0x431f3e++]){case'0':await TestHubHandler[_0x226c49(0x16d)](_0x316f57);continue;case'1':await BrowserstackCLI[_0x226c49(0x118)]()['stop']();continue;case'2':logger[_0x226c49(0x12e)](_0x5e00eb[_0x226c49(0x17c)](_0x5e00eb['QuDlJ'],_0x316f57));continue;case'3':this[_0x5e00eb['ANRZz'](_0x5e00eb[_0x226c49(0x80)],_0x316f57)]=!![];continue;case'4':await ClientTroubleShootingService['reportProcessInterruptionSituation'](_0x316f57);continue;case'5':await ClientTroubleShootingService[_0x226c49(0x9c)]();continue;case'6':this['killSignal']=_0x316f57;continue;case'7':if(this[_0x5e00eb[_0x226c49(0x17c)](_0x5e00eb[_0x226c49(0x80)],_0x316f57)])return;continue;}break;}}[a94_0x43d472(0x101)](){const _0x1d67c3=a94_0x43d472,_0x394575={'IkPhR':function(_0x3bd52d,_0x590ccc){return _0x3bd52d===_0x590ccc;},'MAOug':_0x1d67c3(0x8e),'AWtgl':function(_0x5d1096,_0x3559a9){return _0x5d1096>_0x3559a9;},'kKpMi':function(_0x47b73c,_0x355b4b){return _0x47b73c>_0x355b4b;},'bZwIi':function(_0x3b5c2e,_0x3510ed){return _0x3b5c2e(_0x3510ed);},'HWOos':function(_0x35f3e2){return _0x35f3e2();},'pPuzk':_0x1d67c3(0x167)};let _0x1f25ce=0x0;return async()=>{const _0x55d2d8=_0x1d67c3;_0x1f25ce++;if(_0x394575[_0x55d2d8(0xa8)](_0x1f25ce,0x1)){helper['checkStopLocalBinaryOnExit'](this['framework'])&&await this['stopBrowserstackLocal']();try{logger[_0x55d2d8(0x73)](_0x394575[_0x55d2d8(0xe1)]),await TestHubHandler[_0x55d2d8(0x16d)](_0x1f25ce),await ClientTroubleShootingService[_0x55d2d8(0x9c)](),await BrowserstackCLI[_0x55d2d8(0x118)]()[_0x55d2d8(0x16d)]('1');}catch(_0x1627c7){logger[_0x55d2d8(0x73)](_0x55d2d8(0x11a)+util['format'](_0x1627c7));}PerformanceTester[_0x55d2d8(0xf1)](PerformanceEvents[_0x55d2d8(0x9a)]);if(PerformanceTester[_0x55d2d8(0x120)]()){const {measures:_0x34f31c,errors:_0x599437}=await PerformanceTester['finalize'](),_0x19122c={};if(_0x34f31c&&_0x394575['AWtgl'](_0x34f31c[_0x55d2d8(0xb4)],0x0)||_0x599437&&_0x394575[_0x55d2d8(0x82)](_0x599437['length'],0x0)){const _0x2ab939={};_0x2ab939[_0x55d2d8(0x106)]=_0x34f31c,_0x2ab939[_0x55d2d8(0xf5)]=_0x599437,Object[_0x55d2d8(0x79)](_0x19122c,_0x2ab939);}try{const _0x4765bc=await helper['sendToEDS'](_0x19122c,this[_0x55d2d8(0x128)]);logger[_0x55d2d8(0x73)]('Data\x20sent\x20successfully\x20to\x20'+_0x394575['bZwIi'](getEdsInstrumentationAPIUrl,'')+_0x55d2d8(0xd8)+_0x4765bc[_0x55d2d8(0x78)]);}catch(_0x57b5b2){logger[_0x55d2d8(0x73)](_0x55d2d8(0xa1)+_0x394575[_0x55d2d8(0x121)](getEdsInstrumentationAPIUrl,'')+_0x55d2d8(0xe9)+util[_0x55d2d8(0xc5)](_0x57b5b2));}try{fs[_0x55d2d8(0x9d)](path[_0x55d2d8(0x74)](_0x394575['HWOos'](getLogDir),_0x394575['pPuzk']),JSON[_0x55d2d8(0x16a)](_0x19122c));}catch(_0x4037e4){logger['debug'](_0x55d2d8(0xcb)+_0x4037e4);}}}logger&&logger[_0x55d2d8(0x138)](),fileLogger&&fileLogger[_0x55d2d8(0x138)]();};}}exports[a94_0x43d472(0xa7)]=BrowserStackSetup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a95_0x45be(_0x5c1863,_0x1deec3){const _0x24dacb=a95_0x24da();return a95_0x45be=function(_0x45beb2,_0x40e84e){_0x45beb2=_0x45beb2-0x123;let _0x57ce5b=_0x24dacb[_0x45beb2];return _0x57ce5b;},a95_0x45be(_0x5c1863,_0x1deec3);}const a95_0x1729f6=a95_0x45be;(function(_0x5657fe,_0x5bf711){const _0x25a494=a95_0x45be,_0x527c62=_0x5657fe();while(!![]){try{const _0x42fba6=parseInt(_0x25a494(0x1a6))/0x1+parseInt(_0x25a494(0x13f))/0x2*(parseInt(_0x25a494(0x186))/0x3)+-parseInt(_0x25a494(0x152))/0x4*(-parseInt(_0x25a494(0x141))/0x5)+-parseInt(_0x25a494(0x142))/0x6*(parseInt(_0x25a494(0x128))/0x7)+-parseInt(_0x25a494(0x177))/0x8+-parseInt(_0x25a494(0x15a))/0x9+parseInt(_0x25a494(0x1cf))/0xa;if(_0x42fba6===_0x5bf711)break;else _0x527c62['push'](_0x527c62['shift']());}catch(_0x2d6b17){_0x527c62['push'](_0x527c62['shift']());}}}(a95_0x24da,0xd926a));const util=require(a95_0x1729f6(0x1d6)),logger=require(a95_0x1729f6(0x170))[a95_0x1729f6(0x156)],accessibilityHelper=require(a95_0x1729f6(0x164)),globals=require(a95_0x1729f6(0x1b5)),scripts=require(a95_0x1729f6(0x1d2)),PerformanceTester=require(a95_0x1729f6(0x182)),{A11Y_EVENTS:PerformanceA11yEvents}=require('../performance/constants'),BrowserstackCLI=require('../../bin/v2/browserstackCLI');let playwrightA11yHelper=null;try{playwrightA11yHelper=require('../../bin/playwright/accessibility-helper');}catch(a95_0x5d6715){logger[a95_0x1729f6(0x1da)]('Playwright\x20accessibility\x20helper\x20not\x20available');}const a95_0x1feb08={};a95_0x1feb08[a95_0x1729f6(0x167)]=0x1,a95_0x1feb08[a95_0x1729f6(0x15d)]=0x7530,a95_0x1feb08[a95_0x1729f6(0x151)]=0x7530;function a95_0x24da(){const _0x5d787c=['scanSucceeded','LKxAJ','Accessibility\x20results\x20retrieved\x20successfully\x20on\x20attempt\x20',').\x20Error:\x20','\x20failed\x20(','max','iWTyT','isPlaywrightPage','setPlaywrightScriptTimeout','zGwOd','executeAsyncScript','PAfwM','defaultTimeoutMs','8syjlIK','qOBOL','ms\x20using\x20setTimeouts\x20API','Comprehensive\x20accessibility\x20scan\x20failed\x20(','winstonLogger','dktCN','xPvqK','FJMIg','9557154qeGvZU','isRunning','UgUNG','timeoutMs','KVKTK','playwright-page','aufuC','fulfilled','BROWSERSTACK_TEST_ACCESSIBILITY_SCRIPT_TIMEOUT','ukOgv','./helper','mVzAz','WebDriver','maxRetries','setScriptTimeout','reason','setTimeouts','name','GxAqH','GwTCY','browserStackEvaluate','Page','../logger','ms\x20using\x20setScriptTimeout\x20API','uYanv','Unknown\x20error','type','ukBOt','BTESQ','4366400IXOxTv','saveAccessibilityResultsWithRetry','Accessibility\x20scan\x20attempt\x20','\x20completed\x20successfully.','goto','hEOXw','\x20-\x20not\x20applicable','hVDlZ','mKNdn','url','driverType','../performance/performance-tester','timeouts','rejected','wfaxq','21vFrBFp','PfhYl','ljZwl','info',')\x20with\x20error:\x20','Scan\x20attempt\x20','Selenium\x20WebDriver\x20manage()\x20method\x20not\x20available,\x20skipping\x20timeout\x20setting','):\x20','Skipping\x20timeout\x20setting\x20for\x20','performComprehensiveAccessibilityScanWithRetry','Accessibility\x20results\x20save\x20attempt\x20','Not\x20a\x20valid\x20Accessibility\x20Automation\x20session\x20for\x20','scannerProcessingTimeout','MwPpx','isAccessibilityAutomationSession','updateRetryConfig','BtNNg','yUqBJ','evaluate','value','KRKCr','saveTestResults','bstackA11yShouldScan','JXTRD','kQGgw','zdptT','Unknown\x20driver/page\x20type:\x20','performScanWithRetry','gZxZC','Accessibility\x20results\x20summary\x20retrieval\x20attempt\x20','Accessibility\x20results\x20retrieval\x20attempt\x20','NTxFG','1353707SOzpMl',').\x20Last\x20error:\x20','Set\x20Playwright\x20page\x20default\x20timeout\x20to\x20','All\x20accessibility\x20results\x20summary\x20retrieval\x20attempts\x20failed\x20(','summary','DzUDp','isSeleniumDriver','NxIyE','gMfTu','RYAGc','constructor','sEvNJ','dRkai','YXobS',',\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary\x20with\x20retry.','../globals','ihYod','stringify','unknown_method','\x20for\x20method:\x20','status','selenium-webdriver','__workerDetails','UkQqb','uamzC','getAccessibilityResultsSummaryWithRetry','getAccessibilityResultsWithRetry','AogZp',',\x20cannot\x20retrieve\x20Accessibility\x20results\x20with\x20retry.','All\x20accessibility\x20results\x20retrieval\x20attempts\x20failed\x20(','getSession','getGlobal','qWiKg','getCurrentUrl','getInstance','fEyCh','puMlj','ZfoWS','Ljmzk','results','vxPgD','22811950VYrlTq','manage','race','./scripts','WVjkR','capabilitiesList','isAccessibilityPlatform','util','PERFORM_SCAN','Set\x20Selenium\x20WebDriver\x20script\x20timeout\x20to\x20','message','debug','error','accessibilityPlatform','Unknown\x20error\x20during\x20comprehensive\x20accessibility\x20scan','setDefaultTimeout','env','pUtHF','getAccessibilityResults','ZmKCY','Accessibility\x20results\x20summary\x20retrieved\x20successfully\x20on\x20attempt\x20','SXCpj','accessibilityConfig','ybrZe','pKVMw','VFYBc','warn','Failed\x20to\x20retrieve\x20accessibility\x20results\x20(','138901hAqIWu','CDKbi','script','ODJBG','options','function','wAjRW','Failed\x20to\x20set\x20Selenium\x20script\x20timeout:\x20','OWLbi','setSeleniumScriptTimeout','GLwCo','isPlaywright','playwright-codecept-driver','getAccessibilityResultsSummary','amUpH','YVVNW','OUNKj','bKzPM','currentTest','getCapabilities','XRRUn','fuBZb','getAccessibilityModule','53654dASdkF','performScan','803585pwhJDU','498GJFPNC','MnxnJ','Failed\x20to\x20retrieve\x20accessibility\x20summary\x20('];a95_0x24da=function(){return _0x5d787c;};return a95_0x24da();}const RETRY_CONFIG=a95_0x1feb08,setConfigTimeout=(_0x581f39,_0x1d46e9=null)=>{const _0x4c001e=a95_0x1729f6,_0x160c19={'ZNsue':function(_0x3970b7,_0x544ea6){return _0x3970b7===_0x544ea6;},'xPvqK':_0x4c001e(0x192),'ZmKCY':function(_0x334555,_0x3eaa21){return _0x334555===_0x3eaa21;},'OUNKj':function(_0x1a6327,_0x8bb184){return _0x1a6327*_0x8bb184;},'kQGgw':function(_0x1d1302,_0x4395f3){return _0x1d1302(_0x4395f3);},'aufuC':function(_0x3e9455,_0x51f14f){return _0x3e9455*_0x51f14f;}};if(BrowserstackCLI[_0x4c001e(0x1c8)]()[_0x4c001e(0x15b)]()&&BrowserstackCLI[_0x4c001e(0x1c8)]()[_0x4c001e(0x13e)]()){const _0x3bc1c3=BrowserstackCLI['getInstance']()['getAccessibilityModule']()[_0x4c001e(0x1e5)],_0x2d902f=_0x3bc1c3[_0x4c001e(0x12c)][_0x4c001e(0x1d4)]||[];for(const _0x357acd of _0x2d902f){_0x160c19['ZNsue'](_0x357acd[_0x4c001e(0x16b)],_0x160c19[_0x4c001e(0x158)])&&_0x160c19[_0x4c001e(0x1e2)](_0x1d46e9,null)&&(_0x581f39[_0x4c001e(0x15d)]=_0x160c19[_0x4c001e(0x138)](_0x160c19['kQGgw'](parseInt,_0x357acd[_0x4c001e(0x199)]),0x3e8));}}else process[_0x4c001e(0x1df)][_0x4c001e(0x162)]&&(_0x581f39[_0x4c001e(0x15d)]=_0x160c19[_0x4c001e(0x160)](_0x160c19[_0x4c001e(0x19e)](parseInt,process[_0x4c001e(0x1df)][_0x4c001e(0x162)]),0x3e8));},detectDriverType=_0x3730fc=>{const _0x39c643=a95_0x1729f6,_0xfadaf5={};_0xfadaf5[_0x39c643(0x1e4)]='unknown',_0xfadaf5['YVVNW']=function(_0x3c0164,_0xd280b4){return _0x3c0164===_0xd280b4;},_0xfadaf5[_0x39c643(0x187)]=_0x39c643(0x12d),_0xfadaf5[_0x39c643(0x125)]=function(_0x1ff9cc,_0x54964a){return _0x1ff9cc===_0x54964a;},_0xfadaf5[_0x39c643(0x1b3)]=_0x39c643(0x15f),_0xfadaf5[_0x39c643(0x1cb)]=function(_0x31cae3,_0x3afd5e){return _0x31cae3===_0x3afd5e;},_0xfadaf5[_0x39c643(0x143)]=_0x39c643(0x1bb),_0xfadaf5[_0x39c643(0x153)]=_0x39c643(0x16f),_0xfadaf5['CDKbi']=_0x39c643(0x166),_0xfadaf5[_0x39c643(0x130)]=function(_0xcbdff3,_0x41e0a8){return _0xcbdff3===_0x41e0a8;},_0xfadaf5[_0x39c643(0x17e)]='Playwright',_0xfadaf5[_0x39c643(0x1b1)]=_0x39c643(0x134),_0xfadaf5['pKVMw']=function(_0x5479e6,_0x44f878){return _0x5479e6||_0x44f878;},_0xfadaf5[_0x39c643(0x1ae)]='undefined';const _0x10d30f=_0xfadaf5;if(!_0x3730fc){const _0x34091a={};return _0x34091a[_0x39c643(0x133)]=![],_0x34091a[_0x39c643(0x174)]=_0x10d30f[_0x39c643(0x1e4)],_0x34091a;}if(_0x10d30f['YVVNW'](typeof _0x3730fc[_0x39c643(0x198)],_0x10d30f[_0x39c643(0x187)])&&_0x10d30f[_0x39c643(0x137)](typeof _0x3730fc[_0x39c643(0x180)],_0x10d30f[_0x39c643(0x187)])&&_0x10d30f['VFYBc'](typeof _0x3730fc[_0x39c643(0x17b)],_0x10d30f[_0x39c643(0x187)])){const _0x495892={};return _0x495892[_0x39c643(0x133)]=!![],_0x495892['type']=_0x10d30f[_0x39c643(0x1b3)],_0x495892;}if(_0x10d30f[_0x39c643(0x125)](typeof _0x3730fc[_0x39c643(0x14f)],_0x10d30f[_0x39c643(0x187)])&&_0x10d30f['ZfoWS'](typeof _0x3730fc[_0x39c643(0x13b)],_0x10d30f[_0x39c643(0x187)])){const _0xed78d={};return _0xed78d[_0x39c643(0x133)]=![],_0xed78d['type']=_0x10d30f['MnxnJ'],_0xed78d;}const _0x389f51=_0x3730fc[_0x39c643(0x1b0)]?.[_0x39c643(0x16b)];if(_0x10d30f[_0x39c643(0x125)](_0x389f51,_0x10d30f['qOBOL'])){const _0x1ac36f={};return _0x1ac36f[_0x39c643(0x133)]=!![],_0x1ac36f[_0x39c643(0x174)]=_0x10d30f['YXobS'],_0x1ac36f;}if(_0x10d30f[_0x39c643(0x137)](_0x389f51,_0x10d30f[_0x39c643(0x129)])){const _0x59d35a={};return _0x59d35a['isPlaywright']=![],_0x59d35a[_0x39c643(0x174)]=_0x10d30f[_0x39c643(0x143)],_0x59d35a;}if(_0x10d30f[_0x39c643(0x130)](_0x389f51,_0x10d30f[_0x39c643(0x17e)])){const _0x50ca74={};return _0x50ca74[_0x39c643(0x133)]=!![],_0x50ca74['type']=_0x10d30f[_0x39c643(0x1b1)],_0x50ca74;}logger[_0x39c643(0x126)](_0x39c643(0x1a0)+_0x10d30f[_0x39c643(0x124)](_0x389f51,_0x10d30f[_0x39c643(0x1ae)]));const _0x36e183={};return _0x36e183[_0x39c643(0x133)]=![],_0x36e183[_0x39c643(0x174)]=_0x10d30f['SXCpj'],_0x36e183;},withTimeout=(_0x2d464a,_0x56237d)=>{const _0x188e09=a95_0x1729f6;return Promise[_0x188e09(0x1d1)]([_0x2d464a,new Promise((_0x1ef5f3,_0x486934)=>setTimeout(()=>_0x486934(new Error('Operation\x20timed\x20out\x20after\x20'+_0x56237d+'ms')),_0x56237d))]);};exports['performScanWithRetry']=async(_0x339caf,_0x125b5a=null,_0x13439f=null,_0x34a4a4=![])=>{const _0x48d0c4=a95_0x1729f6,_0x490201={'uYanv':function(_0x4eb1e0,_0x33eaf6){return _0x4eb1e0&&_0x33eaf6;},'Ljmzk':function(_0x2f8d7b,_0x54a7e1,_0x384ab6){return _0x2f8d7b(_0x54a7e1,_0x384ab6);},'mVzAz':function(_0x2962b2,_0x27879c){return _0x2962b2===_0x27879c;},'iWTyT':_0x48d0c4(0x134),'WVjkR':function(_0x5d69b3,_0x41e456,_0x2f7555){return _0x5d69b3(_0x41e456,_0x2f7555);},'ukOgv':function(_0x2240eb,_0x9ceb66){return _0x2240eb(_0x9ceb66);},'yUqBJ':_0x48d0c4(0x1d5),'RYAGc':function(_0x195038,_0x1a1f08){return _0x195038!==_0x1a1f08;},'NTxFG':_0x48d0c4(0x19c),'XRRUn':function(_0x4d29d4,_0x4f156c){return _0x4d29d4===_0x4f156c;},'zdptT':'[Accessibility]\x20Scan\x20skipped\x20-\x20scanning\x20is\x20currently\x20disabled\x20(partial\x20scan\x20mode)','BTESQ':_0x48d0c4(0x1b8),'MwPpx':_0x48d0c4(0x12d),'jNLxu':function(_0x1a0a69,_0x4aff03){return _0x1a0a69<=_0x4aff03;},'puMlj':function(_0x29605b,_0x55efc3){return _0x29605b+_0x55efc3;},'ihYod':_0x48d0c4(0x173)},{isPlaywright:_0x4a4d59,type:_0x35ee67}=_0x490201[_0x48d0c4(0x163)](detectDriverType,_0x339caf),_0x28928c=_0x4a4d59?global[_0x48d0c4(0x1dc)]&&(_0x34a4a4||_0x490201[_0x48d0c4(0x165)](global['bstackA11yShouldScan'],!![])):accessibilityHelper[_0x48d0c4(0x194)]()&&globals[_0x48d0c4(0x1c5)](_0x490201[_0x48d0c4(0x197)])&&(_0x34a4a4||_0x490201[_0x48d0c4(0x1af)](globals['getGlobal'](_0x490201[_0x48d0c4(0x1a5)]),![]));if(!_0x28928c)return _0x4a4d59&&global[_0x48d0c4(0x1dc)]&&_0x490201[_0x48d0c4(0x13c)](global[_0x48d0c4(0x19c)],![])?logger['debug'](_0x490201[_0x48d0c4(0x19f)]):logger['warn'](_0x48d0c4(0x191)+_0x35ee67+',\x20cannot\x20perform\x20scan\x20with\x20retry.'),![];const _0x4a9b90=_0x125b5a||global['browserstackSessionName']||_0x490201[_0x48d0c4(0x176)];let _0x448543=null;const _0x3df51f={'testhub_btcer_uuid':global[_0x48d0c4(0x1bc)]?.[_0x48d0c4(0x13a)]?.['id'],'url':_0x490201[_0x48d0c4(0x13c)](typeof _0x339caf[_0x48d0c4(0x180)],_0x490201['MwPpx'])?await _0x339caf['url']():_0x490201['mVzAz'](typeof _0x339caf['getCurrentUrl'],_0x490201[_0x48d0c4(0x193)])?await _0x339caf[_0x48d0c4(0x1c7)]():'','automate_session_id':_0x490201[_0x48d0c4(0x13c)](typeof _0x339caf[_0x48d0c4(0x1c4)],_0x490201[_0x48d0c4(0x193)])?(await _0x339caf[_0x48d0c4(0x1c4)]())['getId']():''};for(let _0x2e4f87=0x1;_0x490201['jNLxu'](_0x2e4f87,_0x490201['puMlj'](RETRY_CONFIG[_0x48d0c4(0x167)],0x1));_0x2e4f87++){try{return logger[_0x48d0c4(0x1da)](_0x48d0c4(0x179)+_0x2e4f87+'/'+_0x490201[_0x48d0c4(0x1ca)](RETRY_CONFIG[_0x48d0c4(0x167)],0x1)+_0x48d0c4(0x1b9)+_0x4a9b90+'\x20('+_0x35ee67+')'),await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x48d0c4(0x1d7)],async()=>{const _0x18f00a=_0x48d0c4;let _0x24ad41;if(_0x490201[_0x18f00a(0x172)](_0x4a4d59,playwrightA11yHelper)){_0x490201[_0x18f00a(0x1cc)](setConfigTimeout,RETRY_CONFIG,null),await exports[_0x18f00a(0x14d)](_0x339caf,RETRY_CONFIG[_0x18f00a(0x15d)]);let _0xc3847e=_0x339caf;_0x490201['mVzAz'](_0x35ee67,_0x490201[_0x18f00a(0x14b)])&&(_0xc3847e=_0x339caf['page']),_0x24ad41=await _0x490201[_0x18f00a(0x1d3)](withTimeout,playwrightA11yHelper[_0x18f00a(0x140)](_0xc3847e,_0x4a9b90),RETRY_CONFIG[_0x18f00a(0x15d)]),await exports[_0x18f00a(0x14d)](_0x339caf,RETRY_CONFIG['defaultTimeoutMs']);}else await exports['setSeleniumScriptTimeout'](_0x339caf,RETRY_CONFIG['timeoutMs']),_0x24ad41=await _0x490201[_0x18f00a(0x1cc)](withTimeout,accessibilityHelper['performScan'](_0x339caf,_0x4a9b90),RETRY_CONFIG[_0x18f00a(0x15d)]),await exports[_0x18f00a(0x131)](_0x339caf,RETRY_CONFIG['defaultTimeoutMs']);logger[_0x18f00a(0x1da)](_0x18f00a(0x18b)+_0x2e4f87+_0x18f00a(0x17a));},{'command':_0x4a9b90,..._0x3df51f})(),logger[_0x48d0c4(0x189)]('Accessibility\x20scan\x20succeeded\x20on\x20attempt\x20'+_0x2e4f87+'.'),!![];}catch(_0x3d960f){_0x448543=_0x3d960f,logger[_0x48d0c4(0x1da)](_0x48d0c4(0x179)+_0x2e4f87+'\x20failed\x20for\x20method:\x20'+_0x4a9b90+'\x20('+_0x35ee67+_0x48d0c4(0x148)+_0x3d960f[_0x48d0c4(0x1d9)]);}}return logger[_0x48d0c4(0x1db)]('All\x20accessibility\x20scan\x20attempts\x20failed\x20for\x20method:\x20'+_0x4a9b90+'\x20('+_0x35ee67+_0x48d0c4(0x18a)+(_0x448543?.[_0x48d0c4(0x1d9)]||_0x490201[_0x48d0c4(0x1b6)])),![];},exports[a95_0x1729f6(0x1c0)]=async(_0x59ad62,_0x95cd91)=>{const _0x36f965=a95_0x1729f6,_0x4efe5b={'KVKTK':function(_0x404980,_0x1e3c43){return _0x404980(_0x1e3c43);},'BtNNg':_0x36f965(0x1d5),'ybrZe':_0x36f965(0x19c),'FJMIg':function(_0x23ae20,_0x562c3e){return _0x23ae20<=_0x562c3e;},'UgUNG':function(_0x49cf03,_0x599648){return _0x49cf03+_0x599648;},'wfaxq':function(_0x4305bb,_0x59eaaf){return _0x4305bb&&_0x59eaaf;},'ODJBG':function(_0x2a5473,_0x5729fa,_0x28cad5){return _0x2a5473(_0x5729fa,_0x28cad5);},'GwTCY':function(_0x417660,_0x2be13a,_0x17fcc8){return _0x417660(_0x2be13a,_0x17fcc8);},'wXRmV':_0x36f965(0x173)},{isPlaywright:_0x23c3fd,type:_0x4a8dbb}=_0x4efe5b[_0x36f965(0x15e)](detectDriverType,_0x59ad62),_0x58e84e=_0x23c3fd?_0x95cd91[_0x36f965(0x1dc)]:accessibilityHelper[_0x36f965(0x194)]()&&globals[_0x36f965(0x1c5)](_0x4efe5b[_0x36f965(0x196)])&&globals[_0x36f965(0x1c5)](_0x4efe5b[_0x36f965(0x123)]);if(!_0x58e84e)return logger[_0x36f965(0x126)](_0x36f965(0x191)+_0x4a8dbb+_0x36f965(0x1c2)),[];let _0x87c495=null;for(let _0x4ba216=0x1;_0x4efe5b[_0x36f965(0x159)](_0x4ba216,_0x4efe5b[_0x36f965(0x15c)](RETRY_CONFIG['maxRetries'],0x1));_0x4ba216++){try{logger[_0x36f965(0x1da)](_0x36f965(0x1a4)+_0x4ba216+'/'+_0x4efe5b[_0x36f965(0x15c)](RETRY_CONFIG['maxRetries'],0x1)+'\x20('+_0x4a8dbb+')');let _0x29a336;return _0x4efe5b[_0x36f965(0x185)](_0x23c3fd,playwrightA11yHelper)?(_0x4efe5b[_0x36f965(0x12b)](setConfigTimeout,RETRY_CONFIG,null),await exports[_0x36f965(0x14d)](_0x59ad62,RETRY_CONFIG[_0x36f965(0x15d)]),_0x29a336=await _0x4efe5b['GwTCY'](withTimeout,playwrightA11yHelper[_0x36f965(0x1e1)](_0x59ad62),RETRY_CONFIG[_0x36f965(0x15d)]),await exports[_0x36f965(0x14d)](_0x59ad62,RETRY_CONFIG[_0x36f965(0x151)])):(await exports[_0x36f965(0x131)](_0x59ad62,RETRY_CONFIG[_0x36f965(0x15d)]),_0x29a336=await _0x4efe5b[_0x36f965(0x16d)](withTimeout,accessibilityHelper['getAccessibilityResults'](_0x59ad62,_0x95cd91),RETRY_CONFIG['timeoutMs']),await exports[_0x36f965(0x131)](_0x59ad62,RETRY_CONFIG[_0x36f965(0x151)])),logger[_0x36f965(0x189)](_0x36f965(0x147)+_0x4ba216+'\x20('+_0x4a8dbb+')'),_0x29a336;}catch(_0x767a2){_0x87c495=_0x767a2,logger[_0x36f965(0x126)](_0x36f965(0x1a4)+_0x4ba216+_0x36f965(0x149)+_0x4a8dbb+_0x36f965(0x148)+_0x767a2[_0x36f965(0x1d9)]);}}return logger[_0x36f965(0x1db)](_0x36f965(0x1c3)+_0x4a8dbb+_0x36f965(0x1a7)+(_0x87c495?.[_0x36f965(0x1d9)]||_0x4efe5b['wXRmV'])),[];},exports[a95_0x1729f6(0x1bf)]=async(_0x51252d,_0x705d9)=>{const _0x75fdb6=a95_0x1729f6,_0x1d4b09={'KRKCr':function(_0x4f1035,_0x1e866d){return _0x4f1035(_0x1e866d);},'nljzg':'isAccessibilityPlatform','zGwOd':'bstackA11yShouldScan','oxhNW':function(_0x1a67cc,_0x3688e3){return _0x1a67cc<=_0x3688e3;},'dktCN':function(_0x28953f,_0x2fb1b7){return _0x28953f+_0x2fb1b7;},'PAfwM':function(_0x2944d1,_0x104d9c){return _0x2944d1&&_0x104d9c;},'DzUDp':function(_0xb1865a,_0x24cd81,_0x4efd2d){return _0xb1865a(_0x24cd81,_0x4efd2d);},'dRkai':'Unknown\x20error'},{isPlaywright:_0x28e9e5,type:_0x1a3841}=_0x1d4b09[_0x75fdb6(0x19a)](detectDriverType,_0x51252d),_0x483478=_0x28e9e5?_0x705d9[_0x75fdb6(0x1dc)]:accessibilityHelper[_0x75fdb6(0x194)]()&&globals[_0x75fdb6(0x1c5)](_0x1d4b09['nljzg'])&&globals['getGlobal'](_0x1d4b09[_0x75fdb6(0x14e)]);if(!_0x483478)return logger[_0x75fdb6(0x126)](_0x75fdb6(0x191)+_0x1a3841+_0x75fdb6(0x1b4)),{};let _0x2f0ac3=null;for(let _0x376ed2=0x1;_0x1d4b09['oxhNW'](_0x376ed2,_0x1d4b09[_0x75fdb6(0x157)](RETRY_CONFIG[_0x75fdb6(0x167)],0x1));_0x376ed2++){try{logger[_0x75fdb6(0x1da)](_0x75fdb6(0x1a3)+_0x376ed2+'/'+_0x1d4b09[_0x75fdb6(0x157)](RETRY_CONFIG['maxRetries'],0x1)+'\x20('+_0x1a3841+')');let _0x84d15f;return _0x1d4b09[_0x75fdb6(0x150)](_0x28e9e5,playwrightA11yHelper)?(_0x1d4b09[_0x75fdb6(0x1ab)](setConfigTimeout,RETRY_CONFIG,null),await exports[_0x75fdb6(0x14d)](_0x51252d,RETRY_CONFIG[_0x75fdb6(0x15d)]),_0x84d15f=await _0x1d4b09['DzUDp'](withTimeout,playwrightA11yHelper[_0x75fdb6(0x135)](_0x51252d),RETRY_CONFIG[_0x75fdb6(0x15d)]),await exports[_0x75fdb6(0x14d)](_0x51252d,RETRY_CONFIG[_0x75fdb6(0x151)])):(await exports['setSeleniumScriptTimeout'](_0x51252d,RETRY_CONFIG[_0x75fdb6(0x15d)]),_0x84d15f=await _0x1d4b09[_0x75fdb6(0x1ab)](withTimeout,accessibilityHelper[_0x75fdb6(0x135)](_0x51252d,_0x705d9),RETRY_CONFIG['timeoutMs']),await exports['setSeleniumScriptTimeout'](_0x51252d,RETRY_CONFIG['defaultTimeoutMs'])),logger[_0x75fdb6(0x189)](_0x75fdb6(0x1e3)+_0x376ed2+'\x20('+_0x1a3841+')'),_0x84d15f;}catch(_0x7fe22d){_0x2f0ac3=_0x7fe22d,logger['warn'](_0x75fdb6(0x1a3)+_0x376ed2+_0x75fdb6(0x149)+_0x1a3841+_0x75fdb6(0x148)+_0x7fe22d[_0x75fdb6(0x1d9)]);}}return logger[_0x75fdb6(0x1db)](_0x75fdb6(0x1a9)+_0x1a3841+_0x75fdb6(0x1a7)+(_0x2f0ac3?.[_0x75fdb6(0x1d9)]||_0x1d4b09[_0x75fdb6(0x1b2)])),{};},exports[a95_0x1729f6(0x18f)]=async(_0x4c414b,_0x57ac6b,_0x3e3a9b=null)=>{const _0x5e5a87=a95_0x1729f6,_0x5eef11={'hEOXw':function(_0x1b5452,_0x3f121c){return _0x1b5452(_0x3f121c);},'ElRPI':function(_0x39f5c2,_0x36fb51){return _0x39f5c2===_0x36fb51;},'uamzC':_0x5e5a87(0x161),'VnITS':function(_0x43c103,_0x55b062){return _0x43c103===_0x55b062;},'vxPgD':function(_0x484014,_0xfe1e9e){return _0x484014===_0xfe1e9e;},'fEyCh':_0x5e5a87(0x184),'GLwCo':_0x5e5a87(0x1dd)},{isPlaywright:_0x58a4ec,type:_0x39e15e}=_0x5eef11[_0x5e5a87(0x17c)](detectDriverType,_0x4c414b),_0x25e797={};_0x25e797[_0x5e5a87(0x145)]=![],_0x25e797[_0x5e5a87(0x1cd)]=[],_0x25e797[_0x5e5a87(0x1aa)]={},_0x25e797[_0x5e5a87(0x1db)]=null,_0x25e797[_0x5e5a87(0x181)]=_0x39e15e;const _0x5f4ad1=_0x25e797;try{_0x5f4ad1[_0x5e5a87(0x145)]=await exports[_0x5e5a87(0x1a1)](_0x4c414b,_0x3e3a9b);if(_0x5f4ad1[_0x5e5a87(0x145)]){const [_0x126db3,_0x142426]=await Promise['allSettled']([exports['getAccessibilityResultsWithRetry'](_0x4c414b,_0x57ac6b),exports[_0x5e5a87(0x1bf)](_0x4c414b,_0x57ac6b)]);_0x5f4ad1[_0x5e5a87(0x1cd)]=_0x5eef11['ElRPI'](_0x126db3[_0x5e5a87(0x1ba)],_0x5eef11[_0x5e5a87(0x1be)])?_0x126db3[_0x5e5a87(0x199)]:[],_0x5f4ad1[_0x5e5a87(0x1aa)]=_0x5eef11['VnITS'](_0x142426[_0x5e5a87(0x1ba)],_0x5eef11['uamzC'])?_0x142426[_0x5e5a87(0x199)]:{},_0x5eef11['vxPgD'](_0x126db3[_0x5e5a87(0x1ba)],_0x5eef11[_0x5e5a87(0x1c9)])&&logger[_0x5e5a87(0x126)](_0x5e5a87(0x127)+_0x39e15e+_0x5e5a87(0x18d)+_0x126db3[_0x5e5a87(0x169)]?.[_0x5e5a87(0x1d9)]),_0x5eef11[_0x5e5a87(0x1ce)](_0x142426[_0x5e5a87(0x1ba)],_0x5eef11[_0x5e5a87(0x1c9)])&&logger['warn'](_0x5e5a87(0x144)+_0x39e15e+_0x5e5a87(0x18d)+_0x142426[_0x5e5a87(0x169)]?.[_0x5e5a87(0x1d9)]);}}catch(_0x3ed43e){_0x5f4ad1['error']=_0x3ed43e[_0x5e5a87(0x1d9)]||_0x5eef11[_0x5e5a87(0x132)],logger[_0x5e5a87(0x1db)](_0x5e5a87(0x155)+_0x39e15e+_0x5e5a87(0x18d)+_0x5f4ad1[_0x5e5a87(0x1db)]);}return _0x5f4ad1;},exports[a95_0x1729f6(0x195)]=_0xd4b807=>{const _0x1e05e0=a95_0x1729f6,_0xd40fd0={};_0xd40fd0[_0x1e05e0(0x1bd)]=function(_0x259f5d,_0x1575d7){return _0x259f5d!==_0x1575d7;},_0xd40fd0[_0x1e05e0(0x13d)]=function(_0x46db69,_0x2b7942){return _0x46db69!==_0x2b7942;};const _0x45ce41=_0xd40fd0;_0x45ce41[_0x1e05e0(0x1bd)](_0xd4b807['maxRetries'],undefined)&&(RETRY_CONFIG[_0x1e05e0(0x167)]=Math[_0x1e05e0(0x14a)](0x0,_0xd4b807[_0x1e05e0(0x167)])),_0x45ce41[_0x1e05e0(0x13d)](_0xd4b807[_0x1e05e0(0x15d)],undefined)&&(RETRY_CONFIG['timeoutMs']=Math[_0x1e05e0(0x14a)](0x3e8,_0xd4b807['timeoutMs'])),logger[_0x1e05e0(0x1da)]('Accessibility\x20retry\x20configuration\x20updated:\x20'+JSON[_0x1e05e0(0x1b7)](RETRY_CONFIG));},exports['getRetryConfig']=()=>{const _0xab4a6={...RETRY_CONFIG};return _0xab4a6;},exports[a95_0x1729f6(0x14c)]=_0x4d3eda=>{const _0x336b24=a95_0x1729f6,_0x3be77f={'JXTRD':function(_0x586aca,_0xa7e23b){return _0x586aca(_0xa7e23b);}};return _0x3be77f[_0x336b24(0x19d)](detectDriverType,_0x4d3eda)[_0x336b24(0x133)];},exports[a95_0x1729f6(0x1ac)]=_0x5520ad=>{const _0x5de866=a95_0x1729f6,_0x6d873f={'GxAqH':function(_0x3b5fcf,_0x325244){return _0x3b5fcf(_0x325244);},'qIDlh':function(_0x5aaf4a,_0x78b2ff){return _0x5aaf4a===_0x78b2ff;},'bKzPM':_0x5de866(0x1bb)},{isPlaywright:_0x18089e,type:_0x34b5b0}=_0x6d873f[_0x5de866(0x16c)](detectDriverType,_0x5520ad);return!_0x18089e&&_0x6d873f['qIDlh'](_0x34b5b0,_0x6d873f[_0x5de866(0x139)]);},exports[a95_0x1729f6(0x14d)]=async(_0x5237fb,_0x1ba2d3=null)=>{const _0x572eef=a95_0x1729f6,_0xb82b3a={'gZxZC':function(_0x469cd6,_0x38dd02){return _0x469cd6(_0x38dd02);},'AYtWe':function(_0x88b498,_0x1e1af6){return _0x88b498===_0x1e1af6;},'pUtHF':_0x572eef(0x12d)},{isPlaywright:_0x4eec0a,type:_0x255624}=_0xb82b3a[_0x572eef(0x1a2)](detectDriverType,_0x5237fb);if(!_0x4eec0a)return logger['debug'](_0x572eef(0x18e)+_0x255624+_0x572eef(0x17d)),!![];const _0x4ba9ee=_0x1ba2d3||RETRY_CONFIG[_0x572eef(0x151)];try{return _0x5237fb&&_0xb82b3a['AYtWe'](typeof _0x5237fb['setDefaultTimeout'],_0xb82b3a[_0x572eef(0x1e0)])&&(await _0x5237fb[_0x572eef(0x1de)](_0x4ba9ee),logger[_0x572eef(0x1da)](_0x572eef(0x1a8)+_0x4ba9ee+'ms')),!![];}catch(_0x1d906f){return logger['warn']('Failed\x20to\x20set\x20Playwright\x20script\x20timeout:\x20'+_0x1d906f['message']),![];}},exports[a95_0x1729f6(0x131)]=async(_0x1d7bcb,_0x547627=null)=>{const _0x719e38=a95_0x1729f6,_0x49fa56={};_0x49fa56[_0x719e38(0x1c6)]='Cannot\x20set\x20script\x20timeout:\x20not\x20a\x20Selenium\x20WebDriver',_0x49fa56['mKNdn']=function(_0x56124a,_0x3217fb){return _0x56124a===_0x3217fb;},_0x49fa56[_0x719e38(0x1ad)]='function',_0x49fa56[_0x719e38(0x12e)]='Selenium\x20WebDriver\x20timeout\x20API\x20not\x20available,\x20skipping\x20timeout\x20setting',_0x49fa56['LKxAJ']=_0x719e38(0x18c);const _0x570627=_0x49fa56;if(!exports[_0x719e38(0x1ac)](_0x1d7bcb))return logger['warn'](_0x570627['qWiKg']),![];const _0x3e43b0=_0x547627||RETRY_CONFIG[_0x719e38(0x151)];try{if(_0x1d7bcb&&_0x570627[_0x719e38(0x17f)](typeof _0x1d7bcb[_0x719e38(0x1d0)],_0x570627[_0x719e38(0x1ad)])){const _0xcd967e=_0x1d7bcb[_0x719e38(0x1d0)]();if(_0xcd967e&&_0x570627[_0x719e38(0x17f)](typeof _0xcd967e[_0x719e38(0x183)],_0x570627[_0x719e38(0x1ad)]))await _0xcd967e[_0x719e38(0x183)]()[_0x719e38(0x168)](_0x3e43b0),logger[_0x719e38(0x1da)](_0x719e38(0x1d8)+_0x3e43b0+'ms\x20using\x20timeouts()\x20API');else{if(_0xcd967e&&_0x570627[_0x719e38(0x17f)](typeof _0xcd967e[_0x719e38(0x16a)],_0x570627[_0x719e38(0x1ad)])){const _0x4832bf={};_0x4832bf[_0x719e38(0x12a)]=_0x3e43b0,await _0xcd967e[_0x719e38(0x16a)](_0x4832bf),logger[_0x719e38(0x1da)](_0x719e38(0x1d8)+_0x3e43b0+_0x719e38(0x154));}else{if(_0xcd967e&&_0x570627[_0x719e38(0x17f)](typeof _0xcd967e['setScriptTimeout'],_0x570627['NxIyE']))await _0xcd967e['setScriptTimeout'](_0x3e43b0),logger[_0x719e38(0x1da)](_0x719e38(0x1d8)+_0x3e43b0+_0x719e38(0x171));else return logger['debug'](_0x570627[_0x719e38(0x12e)]),!![];}}}else return logger[_0x719e38(0x1da)](_0x570627[_0x719e38(0x146)]),!![];return!![];}catch(_0x19469f){return logger[_0x719e38(0x126)](_0x719e38(0x12f)+_0x19469f[_0x719e38(0x1d9)]),![];}},exports[a95_0x1729f6(0x178)]=async(_0x101c66,_0x2ed1e8)=>{const _0x24a7d9=a95_0x1729f6,_0x4e8d88={'AogZp':function(_0xf876a7,_0x5bebb7){return _0xf876a7(_0x5bebb7);},'AwrQA':'isAccessibilityPlatform','ahIUo':_0x24a7d9(0x19c),'fCyGJ':function(_0x4a1326,_0x1bf3d2){return _0x4a1326<=_0x1bf3d2;},'sfydU':function(_0x4b029b,_0xf1e5a9){return _0x4b029b+_0xf1e5a9;},'amUpH':function(_0x49f4b9,_0x55cd0c){return _0x49f4b9+_0x55cd0c;},'ljZwl':function(_0x218ca1,_0x51beba){return _0x218ca1&&_0x51beba;},'ukBOt':function(_0x5c9441,_0x857e97,_0x90537b){return _0x5c9441(_0x857e97,_0x90537b);},'qrowW':function(_0x587a08,_0x28ecf9,_0x4fad05){return _0x587a08(_0x28ecf9,_0x4fad05);},'cwmNS':_0x24a7d9(0x173)},{isPlaywright:_0x4e5681,type:_0x5e3f34}=_0x4e8d88[_0x24a7d9(0x1c1)](detectDriverType,_0x101c66),_0x59ef84=_0x4e5681?global[_0x24a7d9(0x1dc)]:accessibilityHelper['isAccessibilityAutomationSession']()&&globals[_0x24a7d9(0x1c5)](_0x4e8d88['AwrQA'])&&globals[_0x24a7d9(0x1c5)](_0x4e8d88['ahIUo']);if(!_0x59ef84)return logger[_0x24a7d9(0x126)]('Not\x20a\x20valid\x20Accessibility\x20Automation\x20session\x20for\x20'+_0x5e3f34+',\x20cannot\x20save\x20accessibility\x20results\x20with\x20retry.'),![];let _0x495863=null;for(let _0x3b78b5=0x1;_0x4e8d88['fCyGJ'](_0x3b78b5,_0x4e8d88['sfydU'](RETRY_CONFIG[_0x24a7d9(0x167)],0x1));_0x3b78b5++){try{return logger[_0x24a7d9(0x1da)](_0x24a7d9(0x190)+_0x3b78b5+'/'+_0x4e8d88[_0x24a7d9(0x136)](RETRY_CONFIG[_0x24a7d9(0x167)],0x1)+'\x20('+_0x5e3f34+')'),_0x4e8d88[_0x24a7d9(0x188)](_0x4e5681,playwrightA11yHelper)?(_0x4e8d88[_0x24a7d9(0x175)](setConfigTimeout,RETRY_CONFIG,null),await exports[_0x24a7d9(0x14d)](_0x101c66,RETRY_CONFIG['timeoutMs']),await _0x4e8d88[_0x24a7d9(0x175)](withTimeout,playwrightA11yHelper[_0x24a7d9(0x16e)](_0x101c66,scripts[_0x24a7d9(0x19b)],_0x2ed1e8),RETRY_CONFIG[_0x24a7d9(0x15d)]),await exports[_0x24a7d9(0x14d)](_0x101c66,RETRY_CONFIG[_0x24a7d9(0x151)])):(await exports[_0x24a7d9(0x131)](_0x101c66,RETRY_CONFIG[_0x24a7d9(0x15d)]),await _0x4e8d88['qrowW'](withTimeout,_0x101c66[_0x24a7d9(0x14f)](scripts[_0x24a7d9(0x19b)],_0x2ed1e8),RETRY_CONFIG[_0x24a7d9(0x15d)]),await exports[_0x24a7d9(0x131)](_0x101c66,RETRY_CONFIG[_0x24a7d9(0x151)])),logger[_0x24a7d9(0x189)]('Accessibility\x20results\x20saved\x20successfully\x20on\x20attempt\x20'+_0x3b78b5+'\x20('+_0x5e3f34+')'),!![];}catch(_0x441313){_0x495863=_0x441313,logger['warn'](_0x24a7d9(0x190)+_0x3b78b5+_0x24a7d9(0x149)+_0x5e3f34+').\x20Error:\x20'+_0x441313['message']);}}return logger[_0x24a7d9(0x1db)]('All\x20accessibility\x20results\x20save\x20attempts\x20failed\x20('+_0x5e3f34+_0x24a7d9(0x1a7)+(_0x495863?.[_0x24a7d9(0x1d9)]||_0x4e8d88['cwmNS'])),![];};
|
|
1
|
+
const a95_0x533540=a95_0x59d1;function a95_0x3696(){const _0x523efd=['getId','Accessibility\x20scan\x20attempt\x20','QTkXt','wKoxq','capabilitiesList',').\x20Error:\x20','Scan\x20attempt\x20','performScan','page','setPlaywrightScriptTimeout','bcVlU','Selenium\x20WebDriver\x20manage()\x20method\x20not\x20available,\x20skipping\x20timeout\x20setting','4xlwodh','yvsVi','scanSucceeded','Failed\x20to\x20set\x20Selenium\x20script\x20timeout:\x20','env','ZmJcY','FJWGb','\x20failed\x20for\x20method:\x20','message','All\x20accessibility\x20scan\x20attempts\x20failed\x20for\x20method:\x20','../globals','ZuADC','nQhuk','VEEoj','OPavt','fulfilled','updateRetryConfig','\x20-\x20not\x20applicable','currentTest','wMxOq','Accessibility\x20retry\x20configuration\x20updated:\x20','Page','playwright-codecept-driver','rejected','zNJyI','TaTlT','[Accessibility]\x20Scan\x20skipped\x20-\x20scanning\x20is\x20currently\x20disabled\x20(partial\x20scan\x20mode)','ioYtV','ElrNB','manage','status','NxyjK','ms\x20using\x20setTimeouts\x20API','tKelm','771840NNmmKe','ySGox','ciKRD','JBYmt','measureWrapper','getCapabilities','selenium-webdriver','biPkX','Skipping\x20timeout\x20setting\x20for\x20','ms\x20using\x20timeouts()\x20API',',\x20cannot\x20save\x20accessibility\x20results\x20with\x20retry.','dqWFX','getAccessibilityResultsSummary',',\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary\x20with\x20retry.','qnXLX','WebDriver','Accessibility\x20results\x20saved\x20successfully\x20on\x20attempt\x20','timeoutMs','Accessibility\x20results\x20retrieval\x20attempt\x20',')\x20with\x20error:\x20','executeAsyncScript','maxRetries','\x20failed\x20(','BFYAJ','JQbbd','__workerDetails','warn','getAccessibilityResultsWithRetry','zGBPx','AfBJK','wXewl','isPlaywright','function','Unknown\x20error','dZfmr','getGlobal',',\x20cannot\x20perform\x20scan\x20with\x20retry.','aNnWg','../../bin/v2/browserstackCLI','getInstance','Accessibility\x20results\x20retrieved\x20successfully\x20on\x20attempt\x20','wYIIn','NthDL','getCurrentUrl','xkYQe','oWvZn','saveTestResults','getAccessibilityResults','results','nYsib','butwi','1664878fcqbUT','Accessibility\x20results\x20summary\x20retrieval\x20attempt\x20','Accessibility\x20results\x20save\x20attempt\x20','unknown_method','performComprehensiveAccessibilityScanWithRetry','JvUHx','hjMfc','uIylP','max','util','ifcLn','447555OKQjVK','setSeleniumScriptTimeout','timeouts','value','RlYqD','GFANy','Selenium\x20WebDriver\x20timeout\x20API\x20not\x20available,\x20skipping\x20timeout\x20setting','error','getAccessibilityModule','uebff','setTimeouts','../../bin/playwright/accessibility-helper','isAccessibilityPlatform','vyyKq','name','setScriptTimeout','isSeleniumDriver','dyIeB','svAUU','Failed\x20to\x20set\x20Playwright\x20script\x20timeout:\x20','AKbsc','All\x20accessibility\x20results\x20save\x20attempts\x20failed\x20(','yPtPM','Operation\x20timed\x20out\x20after\x20','driverType','dYGYQ','WvtXt',').\x20Last\x20error:\x20','All\x20accessibility\x20results\x20retrieval\x20attempts\x20failed\x20(','mYyXM','QnBMi','29981cEHejc','24kssuzq','NksBm','2449704pWikAO','HsIJi','type','ijaSl','JEFHU','PKEur','options','bstackA11yShouldScan','1434xwqsDq','info','scannerProcessingTimeout','url','undefined','):\x20','./helper','RLVot','constructor','wVegB','Set\x20Selenium\x20WebDriver\x20script\x20timeout\x20to\x20','melUC','fjgvB','3538100wdNwzT','pscOc','vxKmF','Playwright\x20accessibility\x20helper\x20not\x20available','cmugL','playwright-page','TERjc','debug','summary','nNjYI','HJtub','browserstackSessionName','goto','pSQwu','ms\x20using\x20setScriptTimeout\x20API','lINTu','getRetryConfig','unknown','BROWSERSTACK_TEST_ACCESSIBILITY_SCRIPT_TIMEOUT','IcEiE','uXKYJ','LKNiu','isAccessibilityAutomationSession','Accessibility\x20scan\x20succeeded\x20on\x20attempt\x20','3512637FjMEie','reason','accessibilityPlatform','sNEIe','setDefaultTimeout','accessibilityConfig','QZuFE','WpxaA','getSession','race','Cannot\x20set\x20script\x20timeout:\x20not\x20a\x20Selenium\x20WebDriver','Not\x20a\x20valid\x20Accessibility\x20Automation\x20session\x20for\x20','evaluate','mWqVZ','dIqAR','KWmRx','oPrHO','Unknown\x20driver/page\x20type:\x20','defaultTimeoutMs','Failed\x20to\x20retrieve\x20accessibility\x20results\x20(','Unknown\x20error\x20during\x20comprehensive\x20accessibility\x20scan'];a95_0x3696=function(){return _0x523efd;};return a95_0x3696();}(function(_0x59c908,_0x51b400){const _0x2c5599=a95_0x59d1,_0xbe40b0=_0x59c908();while(!![]){try{const _0x466470=-parseInt(_0x2c5599(0x1e3))/0x1+-parseInt(_0x2c5599(0x18e))/0x2*(-parseInt(_0x2c5599(0x1ee))/0x3)+-parseInt(_0x2c5599(0x140))/0x4+parseInt(_0x2c5599(0x155))/0x5+-parseInt(_0x2c5599(0x148))/0x6*(-parseInt(_0x2c5599(0x13d))/0x7)+parseInt(_0x2c5599(0x13e))/0x8*(parseInt(_0x2c5599(0x16d))/0x9)+-parseInt(_0x2c5599(0x1b0))/0xa;if(_0x466470===_0x51b400)break;else _0xbe40b0['push'](_0xbe40b0['shift']());}catch(_0x425b22){_0xbe40b0['push'](_0xbe40b0['shift']());}}}(a95_0x3696,0xce8c2));const util=require(a95_0x533540(0x1ec)),logger=require('../logger')['winstonLogger'],accessibilityHelper=require(a95_0x533540(0x14e)),globals=require(a95_0x533540(0x198)),scripts=require('./scripts'),PerformanceTester=require('../performance/performance-tester'),{A11Y_EVENTS:PerformanceA11yEvents}=require('../performance/constants'),BrowserstackCLI=require(a95_0x533540(0x1d6));let playwrightA11yHelper=null;try{playwrightA11yHelper=require(a95_0x533540(0x1f9));}catch(a95_0x408b05){logger[a95_0x533540(0x15c)](a95_0x533540(0x158));}const a95_0x3b596c={};function a95_0x59d1(_0x4197b1,_0x5c7738){const _0x3696d6=a95_0x3696();return a95_0x59d1=function(_0x59d155,_0x3c21d3){_0x59d155=_0x59d155-0x13d;let _0xa17fa1=_0x3696d6[_0x59d155];return _0xa17fa1;},a95_0x59d1(_0x4197b1,_0x5c7738);}a95_0x3b596c[a95_0x533540(0x1c5)]=0x1,a95_0x3b596c['timeoutMs']=0x7530,a95_0x3b596c[a95_0x533540(0x17f)]=0x7530;const RETRY_CONFIG=a95_0x3b596c,setConfigTimeout=(_0x2fd437,_0x114dc8=null)=>{const _0x1cefac=a95_0x533540,_0x3948ef={'nNjYI':function(_0x1477e5,_0x22a969){return _0x1477e5===_0x22a969;},'biPkX':_0x1cefac(0x14a),'QnBMi':function(_0x32901e,_0x45b15d){return _0x32901e===_0x45b15d;},'KWmRx':function(_0x35e96f,_0x15c87f){return _0x35e96f*_0x15c87f;},'aNnWg':function(_0x35eedb,_0xcfa577){return _0x35eedb(_0xcfa577);},'WpxaA':function(_0x55410c,_0x604524){return _0x55410c(_0x604524);}};if(BrowserstackCLI[_0x1cefac(0x1d7)]()['isRunning']()&&BrowserstackCLI[_0x1cefac(0x1d7)]()[_0x1cefac(0x1f6)]()){const _0x6b07ed=BrowserstackCLI[_0x1cefac(0x1d7)]()[_0x1cefac(0x1f6)]()[_0x1cefac(0x172)],_0x1bb68f=_0x6b07ed[_0x1cefac(0x146)][_0x1cefac(0x186)]||[];for(const _0x562a8d of _0x1bb68f){_0x3948ef[_0x1cefac(0x15e)](_0x562a8d[_0x1cefac(0x1fc)],_0x3948ef[_0x1cefac(0x1b7)])&&_0x3948ef[_0x1cefac(0x20c)](_0x114dc8,null)&&(_0x2fd437[_0x1cefac(0x1c1)]=_0x3948ef[_0x1cefac(0x17c)](_0x3948ef[_0x1cefac(0x1d5)](parseInt,_0x562a8d['value']),0x3e8));}}else process[_0x1cefac(0x192)]['BROWSERSTACK_TEST_ACCESSIBILITY_SCRIPT_TIMEOUT']&&(_0x2fd437['timeoutMs']=_0x3948ef[_0x1cefac(0x17c)](_0x3948ef[_0x1cefac(0x174)](parseInt,process['env'][_0x1cefac(0x167)]),0x3e8));},detectDriverType=_0x41a793=>{const _0xbde57f=a95_0x533540,_0x26b05c={};_0x26b05c[_0xbde57f(0x1e2)]=_0xbde57f(0x166),_0x26b05c[_0xbde57f(0x1b3)]=function(_0x2dfca9,_0x703a4){return _0x2dfca9===_0x703a4;},_0x26b05c['dIqAR']=_0xbde57f(0x1d0),_0x26b05c[_0xbde57f(0x1af)]=_0xbde57f(0x15a),_0x26b05c[_0xbde57f(0x1da)]=function(_0x44512b,_0x38bf8c){return _0x44512b===_0x38bf8c;},_0x26b05c[_0xbde57f(0x19a)]=function(_0x514753,_0x149809){return _0x514753===_0x149809;},_0x26b05c[_0xbde57f(0x13f)]=_0xbde57f(0x1b6),_0x26b05c[_0xbde57f(0x1fb)]=function(_0x3319d4,_0x2ad317){return _0x3319d4===_0x2ad317;},_0x26b05c[_0xbde57f(0x170)]=_0xbde57f(0x1a3),_0x26b05c[_0xbde57f(0x193)]=function(_0x1c7ed4,_0x35d38f){return _0x1c7ed4===_0x35d38f;},_0x26b05c['FJWGb']=_0xbde57f(0x1bf),_0x26b05c[_0xbde57f(0x1c7)]='Playwright',_0x26b05c['IcEiE']='playwright-codecept-driver',_0x26b05c[_0xbde57f(0x1cd)]=function(_0x3b3372,_0x5ca60e){return _0x3b3372||_0x5ca60e;},_0x26b05c['wMnPL']=_0xbde57f(0x14c);const _0x3525bd=_0x26b05c;if(!_0x41a793){const _0x2971cb={};return _0x2971cb[_0xbde57f(0x1cf)]=![],_0x2971cb['type']=_0x3525bd['butwi'],_0x2971cb;}if(_0x3525bd['JBYmt'](typeof _0x41a793[_0xbde57f(0x179)],_0x3525bd[_0xbde57f(0x17b)])&&_0x3525bd[_0xbde57f(0x1b3)](typeof _0x41a793[_0xbde57f(0x14b)],_0x3525bd[_0xbde57f(0x17b)])&&_0x3525bd[_0xbde57f(0x1b3)](typeof _0x41a793[_0xbde57f(0x161)],_0x3525bd[_0xbde57f(0x17b)])){const _0x9dac18={};return _0x9dac18[_0xbde57f(0x1cf)]=!![],_0x9dac18[_0xbde57f(0x142)]=_0x3525bd[_0xbde57f(0x1af)],_0x9dac18;}if(_0x3525bd[_0xbde57f(0x1da)](typeof _0x41a793[_0xbde57f(0x1c4)],_0x3525bd[_0xbde57f(0x17b)])&&_0x3525bd[_0xbde57f(0x19a)](typeof _0x41a793[_0xbde57f(0x1b5)],_0x3525bd[_0xbde57f(0x17b)])){const _0x32984a={};return _0x32984a[_0xbde57f(0x1cf)]=![],_0x32984a[_0xbde57f(0x142)]=_0x3525bd[_0xbde57f(0x13f)],_0x32984a;}const _0x4ddd9b=_0x41a793[_0xbde57f(0x150)]?.[_0xbde57f(0x1fc)];if(_0x3525bd[_0xbde57f(0x1fb)](_0x4ddd9b,_0x3525bd['sNEIe'])){const _0x19880e={};return _0x19880e['isPlaywright']=!![],_0x19880e[_0xbde57f(0x142)]=_0x3525bd['tKelm'],_0x19880e;}if(_0x3525bd[_0xbde57f(0x193)](_0x4ddd9b,_0x3525bd[_0xbde57f(0x194)])){const _0x57c6bb={};return _0x57c6bb[_0xbde57f(0x1cf)]=![],_0x57c6bb[_0xbde57f(0x142)]=_0x3525bd[_0xbde57f(0x13f)],_0x57c6bb;}if(_0x3525bd[_0xbde57f(0x1da)](_0x4ddd9b,_0x3525bd['BFYAJ'])){const _0xb4697b={};return _0xb4697b[_0xbde57f(0x1cf)]=!![],_0xb4697b['type']=_0x3525bd[_0xbde57f(0x168)],_0xb4697b;}logger[_0xbde57f(0x1ca)](_0xbde57f(0x17e)+_0x3525bd[_0xbde57f(0x1cd)](_0x4ddd9b,_0x3525bd['wMnPL']));const _0x4b6c85={};return _0x4b6c85['isPlaywright']=![],_0x4b6c85['type']=_0x3525bd[_0xbde57f(0x1e2)],_0x4b6c85;},withTimeout=(_0x4ca3a8,_0x44d0d6)=>{const _0x127258=a95_0x533540;return Promise[_0x127258(0x176)]([_0x4ca3a8,new Promise((_0xfe5971,_0x407b62)=>setTimeout(()=>_0x407b62(new Error(_0x127258(0x205)+_0x44d0d6+'ms')),_0x44d0d6))]);};exports['performScanWithRetry']=async(_0x1e8dc5,_0xe2014d=null,_0x212ca7=null,_0x1b7364=![])=>{const _0x25fe3b=a95_0x533540,_0x2c3419={'nImtH':function(_0x32c5ff,_0x2164d4){return _0x32c5ff&&_0x2164d4;},'RZXfD':function(_0x30bb51,_0x3c03fb,_0x28be50){return _0x30bb51(_0x3c03fb,_0x28be50);},'vxKmF':function(_0x22019b,_0x23e035){return _0x22019b===_0x23e035;},'PnQbc':_0x25fe3b(0x1a4),'pscOc':function(_0x480688,_0x39adfd,_0x1a1ba4){return _0x480688(_0x39adfd,_0x1a1ba4);},'cmugL':function(_0x2e5ae3,_0x41fbcf){return _0x2e5ae3(_0x41fbcf);},'GFANy':'isAccessibilityPlatform','TaTlT':function(_0x3190b5,_0x554924){return _0x3190b5!==_0x554924;},'uIylP':'bstackA11yShouldScan','ioYtV':function(_0x2c2e8f,_0x195c84){return _0x2c2e8f===_0x195c84;},'ijaSl':_0x25fe3b(0x1a8),'wVegB':_0x25fe3b(0x1e6),'mibci':function(_0x1b34ec,_0x3b1f9d){return _0x1b34ec===_0x3b1f9d;},'xkYQe':_0x25fe3b(0x1d0),'ciKRD':function(_0x6d4e1d,_0x362e6a){return _0x6d4e1d===_0x362e6a;},'JQbbd':function(_0x283b0e,_0xc7fc96){return _0x283b0e<=_0xc7fc96;},'wYIIn':function(_0x3c670,_0x599d17){return _0x3c670+_0x599d17;},'iCApP':_0x25fe3b(0x1d1)},{isPlaywright:_0x1663ff,type:_0x82a9d0}=_0x2c3419[_0x25fe3b(0x159)](detectDriverType,_0x1e8dc5),_0x41dab4=_0x1663ff?global[_0x25fe3b(0x16f)]&&(_0x1b7364||_0x2c3419['vxKmF'](global[_0x25fe3b(0x147)],!![])):accessibilityHelper['isAccessibilityAutomationSession']()&&globals[_0x25fe3b(0x1d3)](_0x2c3419[_0x25fe3b(0x1f3)])&&(_0x1b7364||_0x2c3419[_0x25fe3b(0x1a7)](globals[_0x25fe3b(0x1d3)](_0x2c3419[_0x25fe3b(0x1ea)]),![]));if(!_0x41dab4)return _0x1663ff&&global[_0x25fe3b(0x16f)]&&_0x2c3419[_0x25fe3b(0x1a9)](global['bstackA11yShouldScan'],![])?logger[_0x25fe3b(0x15c)](_0x2c3419[_0x25fe3b(0x143)]):logger[_0x25fe3b(0x1ca)](_0x25fe3b(0x178)+_0x82a9d0+_0x25fe3b(0x1d4)),![];const _0x3c7abf=_0xe2014d||global[_0x25fe3b(0x160)]||_0x2c3419[_0x25fe3b(0x151)];let _0x5cad1f=null;const _0x532469={'testhub_btcer_uuid':global[_0x25fe3b(0x1c9)]?.[_0x25fe3b(0x1a0)]?.['id'],'url':_0x2c3419['mibci'](typeof _0x1e8dc5[_0x25fe3b(0x14b)],_0x2c3419[_0x25fe3b(0x1dc)])?await _0x1e8dc5['url']():_0x2c3419['vxKmF'](typeof _0x1e8dc5['getCurrentUrl'],_0x2c3419[_0x25fe3b(0x1dc)])?await _0x1e8dc5[_0x25fe3b(0x1db)]():'','automate_session_id':_0x2c3419[_0x25fe3b(0x1b2)](typeof _0x1e8dc5[_0x25fe3b(0x175)],_0x2c3419[_0x25fe3b(0x1dc)])?(await _0x1e8dc5[_0x25fe3b(0x175)]())[_0x25fe3b(0x182)]():''};for(let _0x2b7efc=0x1;_0x2c3419[_0x25fe3b(0x1c8)](_0x2b7efc,_0x2c3419['wYIIn'](RETRY_CONFIG[_0x25fe3b(0x1c5)],0x1));_0x2b7efc++){try{return logger[_0x25fe3b(0x15c)](_0x25fe3b(0x183)+_0x2b7efc+'/'+_0x2c3419[_0x25fe3b(0x1d9)](RETRY_CONFIG[_0x25fe3b(0x1c5)],0x1)+'\x20for\x20method:\x20'+_0x3c7abf+'\x20('+_0x82a9d0+')'),await PerformanceTester[_0x25fe3b(0x1b4)](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x421a8f=_0x25fe3b;let _0x27aa88;if(_0x2c3419['nImtH'](_0x1663ff,playwrightA11yHelper)){_0x2c3419['RZXfD'](setConfigTimeout,RETRY_CONFIG,null),await exports[_0x421a8f(0x18b)](_0x1e8dc5,RETRY_CONFIG[_0x421a8f(0x1c1)]);let _0x5868f7=_0x1e8dc5;_0x2c3419[_0x421a8f(0x157)](_0x82a9d0,_0x2c3419['PnQbc'])&&(_0x5868f7=_0x1e8dc5[_0x421a8f(0x18a)]),_0x27aa88=await _0x2c3419[_0x421a8f(0x156)](withTimeout,playwrightA11yHelper[_0x421a8f(0x189)](_0x5868f7,_0x3c7abf),RETRY_CONFIG[_0x421a8f(0x1c1)]),await exports['setPlaywrightScriptTimeout'](_0x1e8dc5,RETRY_CONFIG[_0x421a8f(0x17f)]);}else await exports[_0x421a8f(0x1ef)](_0x1e8dc5,RETRY_CONFIG[_0x421a8f(0x1c1)]),_0x27aa88=await _0x2c3419[_0x421a8f(0x156)](withTimeout,accessibilityHelper[_0x421a8f(0x189)](_0x1e8dc5,_0x3c7abf),RETRY_CONFIG['timeoutMs']),await exports[_0x421a8f(0x1ef)](_0x1e8dc5,RETRY_CONFIG[_0x421a8f(0x17f)]);logger[_0x421a8f(0x15c)](_0x421a8f(0x188)+_0x2b7efc+'\x20completed\x20successfully.');},{'command':_0x3c7abf,..._0x532469})(),logger[_0x25fe3b(0x149)](_0x25fe3b(0x16c)+_0x2b7efc+'.'),!![];}catch(_0x132299){_0x5cad1f=_0x132299,logger[_0x25fe3b(0x15c)](_0x25fe3b(0x183)+_0x2b7efc+_0x25fe3b(0x195)+_0x3c7abf+'\x20('+_0x82a9d0+_0x25fe3b(0x187)+_0x132299[_0x25fe3b(0x196)]);}}return logger['error'](_0x25fe3b(0x197)+_0x3c7abf+'\x20('+_0x82a9d0+_0x25fe3b(0x1c3)+(_0x5cad1f?.[_0x25fe3b(0x196)]||_0x2c3419['iCApP'])),![];},exports[a95_0x533540(0x1cb)]=async(_0x1ac749,_0x39a7aa)=>{const _0x3cb1bd=a95_0x533540,_0x20e017={'ElrNB':function(_0x1cc4ee,_0x2ce32b){return _0x1cc4ee(_0x2ce32b);},'fjgvB':'isAccessibilityPlatform','dYGYQ':_0x3cb1bd(0x147),'ZuADC':function(_0x191f7e,_0xbc10cc){return _0x191f7e<=_0xbc10cc;},'HJtub':function(_0x23be92,_0x3405ed){return _0x23be92+_0x3405ed;},'uXKYJ':function(_0x584afa,_0x88850){return _0x584afa+_0x88850;},'hjMfc':function(_0x26bb24,_0x33ce57){return _0x26bb24&&_0x33ce57;},'MOwVK':function(_0x963133,_0x429ecc,_0x3938f1){return _0x963133(_0x429ecc,_0x3938f1);},'HJHdQ':function(_0x335903,_0x4a3085,_0x1c52dc){return _0x335903(_0x4a3085,_0x1c52dc);},'wXewl':function(_0x507b04,_0x14c695,_0x46ed37){return _0x507b04(_0x14c695,_0x46ed37);},'mWqVZ':_0x3cb1bd(0x1d1)},{isPlaywright:_0x4c2340,type:_0x46d784}=_0x20e017[_0x3cb1bd(0x1aa)](detectDriverType,_0x1ac749),_0x2acc8c=_0x4c2340?_0x39a7aa[_0x3cb1bd(0x16f)]:accessibilityHelper['isAccessibilityAutomationSession']()&&globals[_0x3cb1bd(0x1d3)](_0x20e017[_0x3cb1bd(0x154)])&&globals[_0x3cb1bd(0x1d3)](_0x20e017[_0x3cb1bd(0x207)]);if(!_0x2acc8c)return logger[_0x3cb1bd(0x1ca)](_0x3cb1bd(0x178)+_0x46d784+',\x20cannot\x20retrieve\x20Accessibility\x20results\x20with\x20retry.'),[];let _0x363c47=null;for(let _0x72b68=0x1;_0x20e017[_0x3cb1bd(0x199)](_0x72b68,_0x20e017[_0x3cb1bd(0x15f)](RETRY_CONFIG[_0x3cb1bd(0x1c5)],0x1));_0x72b68++){try{logger[_0x3cb1bd(0x15c)](_0x3cb1bd(0x1c2)+_0x72b68+'/'+_0x20e017[_0x3cb1bd(0x169)](RETRY_CONFIG[_0x3cb1bd(0x1c5)],0x1)+'\x20('+_0x46d784+')');let _0x3b84c1;return _0x20e017[_0x3cb1bd(0x1e9)](_0x4c2340,playwrightA11yHelper)?(_0x20e017['MOwVK'](setConfigTimeout,RETRY_CONFIG,null),await exports[_0x3cb1bd(0x18b)](_0x1ac749,RETRY_CONFIG[_0x3cb1bd(0x1c1)]),_0x3b84c1=await _0x20e017['HJHdQ'](withTimeout,playwrightA11yHelper[_0x3cb1bd(0x1df)](_0x1ac749),RETRY_CONFIG['timeoutMs']),await exports[_0x3cb1bd(0x18b)](_0x1ac749,RETRY_CONFIG[_0x3cb1bd(0x17f)])):(await exports[_0x3cb1bd(0x1ef)](_0x1ac749,RETRY_CONFIG['timeoutMs']),_0x3b84c1=await _0x20e017[_0x3cb1bd(0x1ce)](withTimeout,accessibilityHelper['getAccessibilityResults'](_0x1ac749,_0x39a7aa),RETRY_CONFIG[_0x3cb1bd(0x1c1)]),await exports['setSeleniumScriptTimeout'](_0x1ac749,RETRY_CONFIG['defaultTimeoutMs'])),logger[_0x3cb1bd(0x149)](_0x3cb1bd(0x1d8)+_0x72b68+'\x20('+_0x46d784+')'),_0x3b84c1;}catch(_0x37faa9){_0x363c47=_0x37faa9,logger[_0x3cb1bd(0x1ca)](_0x3cb1bd(0x1c2)+_0x72b68+_0x3cb1bd(0x1c6)+_0x46d784+_0x3cb1bd(0x187)+_0x37faa9[_0x3cb1bd(0x196)]);}}return logger['error'](_0x3cb1bd(0x20a)+_0x46d784+_0x3cb1bd(0x209)+(_0x363c47?.[_0x3cb1bd(0x196)]||_0x20e017[_0x3cb1bd(0x17a)])),[];},exports['getAccessibilityResultsSummaryWithRetry']=async(_0x14c7b4,_0x16df1f)=>{const _0x4376b6=a95_0x533540,_0x2a1279={'svAUU':function(_0xb2c5e6,_0x4125e6){return _0xb2c5e6(_0x4125e6);},'VEEoj':'isAccessibilityPlatform','oPrHO':_0x4376b6(0x147),'ifcLn':function(_0x37b1b5,_0xa76372){return _0x37b1b5<=_0xa76372;},'JvUHx':function(_0x35c457,_0x115506){return _0x35c457+_0x115506;},'dZfmr':function(_0x4e92b9,_0x39375b){return _0x4e92b9+_0x39375b;},'HsIJi':function(_0x365972,_0x5482aa){return _0x365972&&_0x5482aa;},'wMxOq':function(_0x4793a6,_0x18a768,_0x24e84b){return _0x4793a6(_0x18a768,_0x24e84b);},'yPtPM':function(_0x583763,_0x297323,_0x34be7b){return _0x583763(_0x297323,_0x34be7b);},'mYyXM':function(_0x520cdf,_0x3c071b,_0x5f2493){return _0x520cdf(_0x3c071b,_0x5f2493);},'QZuFE':_0x4376b6(0x1d1)},{isPlaywright:_0x22c0ad,type:_0x5a2d88}=_0x2a1279[_0x4376b6(0x200)](detectDriverType,_0x14c7b4),_0x5e2025=_0x22c0ad?_0x16df1f[_0x4376b6(0x16f)]:accessibilityHelper[_0x4376b6(0x16b)]()&&globals[_0x4376b6(0x1d3)](_0x2a1279[_0x4376b6(0x19b)])&&globals['getGlobal'](_0x2a1279[_0x4376b6(0x17d)]);if(!_0x5e2025)return logger[_0x4376b6(0x1ca)](_0x4376b6(0x178)+_0x5a2d88+_0x4376b6(0x1bd)),{};let _0x35cf03=null;for(let _0x1f3830=0x1;_0x2a1279[_0x4376b6(0x1ed)](_0x1f3830,_0x2a1279[_0x4376b6(0x1e8)](RETRY_CONFIG['maxRetries'],0x1));_0x1f3830++){try{logger[_0x4376b6(0x15c)](_0x4376b6(0x1e4)+_0x1f3830+'/'+_0x2a1279[_0x4376b6(0x1d2)](RETRY_CONFIG[_0x4376b6(0x1c5)],0x1)+'\x20('+_0x5a2d88+')');let _0x2064ad;return _0x2a1279[_0x4376b6(0x141)](_0x22c0ad,playwrightA11yHelper)?(_0x2a1279[_0x4376b6(0x1a1)](setConfigTimeout,RETRY_CONFIG,null),await exports[_0x4376b6(0x18b)](_0x14c7b4,RETRY_CONFIG[_0x4376b6(0x1c1)]),_0x2064ad=await _0x2a1279[_0x4376b6(0x204)](withTimeout,playwrightA11yHelper[_0x4376b6(0x1bc)](_0x14c7b4),RETRY_CONFIG['timeoutMs']),await exports[_0x4376b6(0x18b)](_0x14c7b4,RETRY_CONFIG[_0x4376b6(0x17f)])):(await exports[_0x4376b6(0x1ef)](_0x14c7b4,RETRY_CONFIG[_0x4376b6(0x1c1)]),_0x2064ad=await _0x2a1279[_0x4376b6(0x20b)](withTimeout,accessibilityHelper[_0x4376b6(0x1bc)](_0x14c7b4,_0x16df1f),RETRY_CONFIG[_0x4376b6(0x1c1)]),await exports[_0x4376b6(0x1ef)](_0x14c7b4,RETRY_CONFIG[_0x4376b6(0x17f)])),logger[_0x4376b6(0x149)]('Accessibility\x20results\x20summary\x20retrieved\x20successfully\x20on\x20attempt\x20'+_0x1f3830+'\x20('+_0x5a2d88+')'),_0x2064ad;}catch(_0x3dbcd9){_0x35cf03=_0x3dbcd9,logger[_0x4376b6(0x1ca)](_0x4376b6(0x1e4)+_0x1f3830+_0x4376b6(0x1c6)+_0x5a2d88+').\x20Error:\x20'+_0x3dbcd9[_0x4376b6(0x196)]);}}return logger['error']('All\x20accessibility\x20results\x20summary\x20retrieval\x20attempts\x20failed\x20('+_0x5a2d88+_0x4376b6(0x209)+(_0x35cf03?.[_0x4376b6(0x196)]||_0x2a1279[_0x4376b6(0x173)])),{};},exports[a95_0x533540(0x1e7)]=async(_0xb2890f,_0xeda6b0,_0x321a1b=null)=>{const _0x8877ec=a95_0x533540,_0x56e86e={'wBMuw':function(_0x1ecd45,_0x473d86){return _0x1ecd45(_0x473d86);},'QTkXt':function(_0xe93c07,_0x24f968){return _0xe93c07===_0x24f968;},'qnXLX':_0x8877ec(0x19d),'zGBPx':function(_0x15435b,_0x21b036){return _0x15435b===_0x21b036;},'ySGox':function(_0x2b0187,_0x74a9b0){return _0x2b0187===_0x74a9b0;},'gbdaE':_0x8877ec(0x1a5),'OPavt':function(_0x337679,_0x49d98e){return _0x337679===_0x49d98e;},'NxyjK':_0x8877ec(0x181)},{isPlaywright:_0x355ace,type:_0x193616}=_0x56e86e['wBMuw'](detectDriverType,_0xb2890f),_0x3456d0={};_0x3456d0['scanSucceeded']=![],_0x3456d0[_0x8877ec(0x1e0)]=[],_0x3456d0[_0x8877ec(0x15d)]={},_0x3456d0[_0x8877ec(0x1f5)]=null,_0x3456d0[_0x8877ec(0x206)]=_0x193616;const _0x3ff510=_0x3456d0;try{_0x3ff510[_0x8877ec(0x190)]=await exports['performScanWithRetry'](_0xb2890f,_0x321a1b);if(_0x3ff510[_0x8877ec(0x190)]){const [_0x54dc5a,_0x185e58]=await Promise['allSettled']([exports[_0x8877ec(0x1cb)](_0xb2890f,_0xeda6b0),exports['getAccessibilityResultsSummaryWithRetry'](_0xb2890f,_0xeda6b0)]);_0x3ff510['results']=_0x56e86e[_0x8877ec(0x184)](_0x54dc5a['status'],_0x56e86e['qnXLX'])?_0x54dc5a[_0x8877ec(0x1f1)]:[],_0x3ff510[_0x8877ec(0x15d)]=_0x56e86e[_0x8877ec(0x1cc)](_0x185e58[_0x8877ec(0x1ac)],_0x56e86e[_0x8877ec(0x1be)])?_0x185e58[_0x8877ec(0x1f1)]:{},_0x56e86e[_0x8877ec(0x1b1)](_0x54dc5a[_0x8877ec(0x1ac)],_0x56e86e['gbdaE'])&&logger[_0x8877ec(0x1ca)](_0x8877ec(0x180)+_0x193616+'):\x20'+_0x54dc5a[_0x8877ec(0x16e)]?.['message']),_0x56e86e[_0x8877ec(0x19c)](_0x185e58[_0x8877ec(0x1ac)],_0x56e86e['gbdaE'])&&logger[_0x8877ec(0x1ca)]('Failed\x20to\x20retrieve\x20accessibility\x20summary\x20('+_0x193616+_0x8877ec(0x14d)+_0x185e58[_0x8877ec(0x16e)]?.[_0x8877ec(0x196)]);}}catch(_0x4692b2){_0x3ff510[_0x8877ec(0x1f5)]=_0x4692b2[_0x8877ec(0x196)]||_0x56e86e[_0x8877ec(0x1ad)],logger['error']('Comprehensive\x20accessibility\x20scan\x20failed\x20('+_0x193616+_0x8877ec(0x14d)+_0x3ff510[_0x8877ec(0x1f5)]);}return _0x3ff510;},exports[a95_0x533540(0x19e)]=_0x1b9974=>{const _0x5fbbf7=a95_0x533540,_0x2690be={};_0x2690be['LKNiu']=function(_0x2d3f71,_0x5668e3){return _0x2d3f71!==_0x5668e3;},_0x2690be[_0x5fbbf7(0x14f)]=function(_0x23757c,_0x639133){return _0x23757c!==_0x639133;};const _0x4b9ec5=_0x2690be;_0x4b9ec5[_0x5fbbf7(0x16a)](_0x1b9974['maxRetries'],undefined)&&(RETRY_CONFIG[_0x5fbbf7(0x1c5)]=Math[_0x5fbbf7(0x1eb)](0x0,_0x1b9974[_0x5fbbf7(0x1c5)])),_0x4b9ec5['RLVot'](_0x1b9974['timeoutMs'],undefined)&&(RETRY_CONFIG[_0x5fbbf7(0x1c1)]=Math[_0x5fbbf7(0x1eb)](0x3e8,_0x1b9974[_0x5fbbf7(0x1c1)])),logger[_0x5fbbf7(0x15c)](_0x5fbbf7(0x1a2)+JSON['stringify'](RETRY_CONFIG));},exports[a95_0x533540(0x165)]=()=>{const _0x2a6fbb={...RETRY_CONFIG};return _0x2a6fbb;},exports['isPlaywrightPage']=_0x20434e=>{const _0x46293f=a95_0x533540,_0x3885b4={'lINTu':function(_0x14aa4c,_0x348e64){return _0x14aa4c(_0x348e64);}};return _0x3885b4[_0x46293f(0x164)](detectDriverType,_0x20434e)['isPlaywright'];},exports['isSeleniumDriver']=_0x419d34=>{const _0x4931bf=a95_0x533540,_0x2b084e={'zNJyI':function(_0x1a4849,_0x4ed116){return _0x1a4849(_0x4ed116);},'dqWFX':function(_0x197267,_0x1ce650){return _0x197267===_0x1ce650;},'aZOcW':'selenium-webdriver'},{isPlaywright:_0x721051,type:_0x3f596d}=_0x2b084e[_0x4931bf(0x1a6)](detectDriverType,_0x419d34);return!_0x721051&&_0x2b084e[_0x4931bf(0x1bb)](_0x3f596d,_0x2b084e['aZOcW']);},exports[a95_0x533540(0x18b)]=async(_0x5a705e,_0x5b0099=null)=>{const _0x3746dd=a95_0x533540,_0x45c66b={'QqpTH':function(_0x3bd90e,_0x1b4b52){return _0x3bd90e(_0x1b4b52);},'pSQwu':function(_0x2f646e,_0x38aab6){return _0x2f646e===_0x38aab6;},'OIBgV':'function'},{isPlaywright:_0x36a8a0,type:_0x369422}=_0x45c66b['QqpTH'](detectDriverType,_0x5a705e);if(!_0x36a8a0)return logger[_0x3746dd(0x15c)](_0x3746dd(0x1b8)+_0x369422+_0x3746dd(0x19f)),!![];const _0x4bf776=_0x5b0099||RETRY_CONFIG['defaultTimeoutMs'];try{return _0x5a705e&&_0x45c66b[_0x3746dd(0x162)](typeof _0x5a705e[_0x3746dd(0x171)],_0x45c66b['OIBgV'])&&(await _0x5a705e[_0x3746dd(0x171)](_0x4bf776),logger[_0x3746dd(0x15c)]('Set\x20Playwright\x20page\x20default\x20timeout\x20to\x20'+_0x4bf776+'ms')),!![];}catch(_0x505ad5){return logger[_0x3746dd(0x1ca)](_0x3746dd(0x201)+_0x505ad5[_0x3746dd(0x196)]),![];}},exports['setSeleniumScriptTimeout']=async(_0x19643f,_0x18f383=null)=>{const _0x50a1f1=a95_0x533540,_0x58bbf8={};_0x58bbf8['nYsib']=_0x50a1f1(0x177),_0x58bbf8[_0x50a1f1(0x208)]=function(_0x47ecbb,_0x8d00bc){return _0x47ecbb===_0x8d00bc;},_0x58bbf8[_0x50a1f1(0x1dd)]=_0x50a1f1(0x1d0),_0x58bbf8[_0x50a1f1(0x1ff)]=function(_0x4630dc,_0x4009a2){return _0x4630dc===_0x4009a2;},_0x58bbf8['AKbsc']=_0x50a1f1(0x1f4),_0x58bbf8[_0x50a1f1(0x18c)]=_0x50a1f1(0x18d);const _0x55cd46=_0x58bbf8;if(!exports[_0x50a1f1(0x1fe)](_0x19643f))return logger['warn'](_0x55cd46[_0x50a1f1(0x1e1)]),![];const _0x568bb5=_0x18f383||RETRY_CONFIG[_0x50a1f1(0x17f)];try{if(_0x19643f&&_0x55cd46[_0x50a1f1(0x208)](typeof _0x19643f['manage'],_0x55cd46[_0x50a1f1(0x1dd)])){const _0x57514e=_0x19643f[_0x50a1f1(0x1ab)]();if(_0x57514e&&_0x55cd46['dyIeB'](typeof _0x57514e['timeouts'],_0x55cd46['oWvZn']))await _0x57514e[_0x50a1f1(0x1f0)]()[_0x50a1f1(0x1fd)](_0x568bb5),logger[_0x50a1f1(0x15c)](_0x50a1f1(0x152)+_0x568bb5+_0x50a1f1(0x1b9));else{if(_0x57514e&&_0x55cd46[_0x50a1f1(0x208)](typeof _0x57514e[_0x50a1f1(0x1f8)],_0x55cd46['oWvZn'])){const _0x58e3f1={};_0x58e3f1['script']=_0x568bb5,await _0x57514e['setTimeouts'](_0x58e3f1),logger[_0x50a1f1(0x15c)](_0x50a1f1(0x152)+_0x568bb5+_0x50a1f1(0x1ae));}else{if(_0x57514e&&_0x55cd46['WvtXt'](typeof _0x57514e[_0x50a1f1(0x1fd)],_0x55cd46[_0x50a1f1(0x1dd)]))await _0x57514e[_0x50a1f1(0x1fd)](_0x568bb5),logger[_0x50a1f1(0x15c)](_0x50a1f1(0x152)+_0x568bb5+_0x50a1f1(0x163));else return logger[_0x50a1f1(0x15c)](_0x55cd46[_0x50a1f1(0x202)]),!![];}}}else return logger[_0x50a1f1(0x15c)](_0x55cd46['bcVlU']),!![];return!![];}catch(_0x52df4f){return logger[_0x50a1f1(0x1ca)](_0x50a1f1(0x191)+_0x52df4f[_0x50a1f1(0x196)]),![];}},exports['saveAccessibilityResultsWithRetry']=async(_0x2e598b,_0xdc05a5)=>{const _0x1d5fd6=a95_0x533540,_0x4c8749={'yvsVi':function(_0x133af7,_0x2edfe3){return _0x133af7(_0x2edfe3);},'uebff':_0x1d5fd6(0x1fa),'TERjc':_0x1d5fd6(0x147),'RlYqD':function(_0x31f17c,_0x59d81e){return _0x31f17c<=_0x59d81e;},'wKoxq':function(_0x35e432,_0x3fc140){return _0x35e432+_0x3fc140;},'PKEur':function(_0x225f03,_0x405604){return _0x225f03+_0x405604;},'lnyuE':function(_0xd90fa,_0x1ecb46){return _0xd90fa&&_0x1ecb46;},'JEFHU':function(_0x4f730d,_0x33479c,_0x5b17c6){return _0x4f730d(_0x33479c,_0x5b17c6);},'melUC':_0x1d5fd6(0x1d1)},{isPlaywright:_0x3e899b,type:_0x3f19de}=_0x4c8749[_0x1d5fd6(0x18f)](detectDriverType,_0x2e598b),_0x52c5eb=_0x3e899b?global[_0x1d5fd6(0x16f)]:accessibilityHelper[_0x1d5fd6(0x16b)]()&&globals[_0x1d5fd6(0x1d3)](_0x4c8749[_0x1d5fd6(0x1f7)])&&globals[_0x1d5fd6(0x1d3)](_0x4c8749[_0x1d5fd6(0x15b)]);if(!_0x52c5eb)return logger['warn']('Not\x20a\x20valid\x20Accessibility\x20Automation\x20session\x20for\x20'+_0x3f19de+_0x1d5fd6(0x1ba)),![];let _0x36d3b5=null;for(let _0x46e382=0x1;_0x4c8749[_0x1d5fd6(0x1f2)](_0x46e382,_0x4c8749[_0x1d5fd6(0x185)](RETRY_CONFIG[_0x1d5fd6(0x1c5)],0x1));_0x46e382++){try{return logger[_0x1d5fd6(0x15c)](_0x1d5fd6(0x1e5)+_0x46e382+'/'+_0x4c8749[_0x1d5fd6(0x145)](RETRY_CONFIG[_0x1d5fd6(0x1c5)],0x1)+'\x20('+_0x3f19de+')'),_0x4c8749['lnyuE'](_0x3e899b,playwrightA11yHelper)?(_0x4c8749[_0x1d5fd6(0x144)](setConfigTimeout,RETRY_CONFIG,null),await exports[_0x1d5fd6(0x18b)](_0x2e598b,RETRY_CONFIG[_0x1d5fd6(0x1c1)]),await _0x4c8749[_0x1d5fd6(0x144)](withTimeout,playwrightA11yHelper['browserStackEvaluate'](_0x2e598b,scripts[_0x1d5fd6(0x1de)],_0xdc05a5),RETRY_CONFIG[_0x1d5fd6(0x1c1)]),await exports[_0x1d5fd6(0x18b)](_0x2e598b,RETRY_CONFIG[_0x1d5fd6(0x17f)])):(await exports[_0x1d5fd6(0x1ef)](_0x2e598b,RETRY_CONFIG[_0x1d5fd6(0x1c1)]),await _0x4c8749[_0x1d5fd6(0x144)](withTimeout,_0x2e598b[_0x1d5fd6(0x1c4)](scripts[_0x1d5fd6(0x1de)],_0xdc05a5),RETRY_CONFIG['timeoutMs']),await exports['setSeleniumScriptTimeout'](_0x2e598b,RETRY_CONFIG[_0x1d5fd6(0x17f)])),logger[_0x1d5fd6(0x149)](_0x1d5fd6(0x1c0)+_0x46e382+'\x20('+_0x3f19de+')'),!![];}catch(_0x195f1a){_0x36d3b5=_0x195f1a,logger['warn']('Accessibility\x20results\x20save\x20attempt\x20'+_0x46e382+_0x1d5fd6(0x1c6)+_0x3f19de+_0x1d5fd6(0x187)+_0x195f1a[_0x1d5fd6(0x196)]);}}return logger['error'](_0x1d5fd6(0x203)+_0x3f19de+_0x1d5fd6(0x209)+(_0x36d3b5?.['message']||_0x4c8749[_0x1d5fd6(0x153)])),![];};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a96_0x4ab2(){var _0x4aa7a8=['MINIMUM_BROWSER_VERSION_ACCESSIBILITY','1376488abLQvZ','1298682XrrQuJ','479646lhcWaD','MINIMUM_BROWSER_VERSION_NON_BS_INFRA_ACCESSIBILITY','3DMPsBu','1776845RkdPod','100','1335412DyRTJi','API_URL','85966YTsXsY','2447382eMCVCI'];a96_0x4ab2=function(){return _0x4aa7a8;};return a96_0x4ab2();}function a96_0x9590(_0x3152dd,_0x52d90d){var _0x4ab2a5=a96_0x4ab2();return a96_0x9590=function(_0x959058,_0x52c15c){_0x959058=_0x959058-0x72;var _0x17ee63=_0x4ab2a5[_0x959058];return _0x17ee63;},a96_0x9590(_0x3152dd,_0x52d90d);}var a96_0x1f4f1c=a96_0x9590;(function(_0x2c9457,_0x5dad6f){var _0x146fd6=a96_0x9590,_0x5ca24c=_0x2c9457();while(!![]){try{var _0x269a20=-parseInt(_0x146fd6(0x78))/0x1*(-parseInt(_0x146fd6(0x7d))/0x2)+parseInt(_0x146fd6(0x76))/0x3+parseInt(_0x146fd6(0x7b))/0x4+parseInt(_0x146fd6(0x79))/0x5+-parseInt(_0x146fd6(0x75))/0x6+-parseInt(_0x146fd6(0x72))/0x7+-parseInt(_0x146fd6(0x74))/0x8;if(_0x269a20===_0x5dad6f)break;else _0x5ca24c['push'](_0x5ca24c['shift']());}catch(_0x3879ae){_0x5ca24c['push'](_0x5ca24c['shift']());}}}(a96_0x4ab2,0x3a92f),exports[a96_0x1f4f1c(0x7c)]='https://accessibility.browserstack.com/api',exports[a96_0x1f4f1c(0x73)]='94',exports[a96_0x1f4f1c(0x77)]=a96_0x1f4f1c(0x7a));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a97_0x350bf4=a97_0x4083;function a97_0x431e(){const _0x52d59e=['cnjSg','MWHOs','omeiK','options_','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','Exception\x20while\x20creating\x20test\x20run\x20for\x20BrowserStack\x20Accessibility\x20Automation:\x20Missing\x20authentication\x20token','ooUdk','get','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20perform\x20scan.','./scripts','stack','VeeMl','method','getTestFrameworkDetails','browserName','getAgentVersion','playwright','yFHTb','btjuv','scannerVersion','device','javascript','Performing\x20scan\x20before\x20getting\x20results','pwMxp','spdrl','getBrowserVersion','chromeOptions_','1132500cxuueh','CJcbm','selenium-webdriver/chrome.js','NJFvB','IugKV','Zkeyy','join','mpdVA','goog:chromeOptions','Performed\x20scan\x20with\x20result:\x20','ezITF','ZBHOq','getHostInfo','null','basename','message','GET_RESULTS','parseFromJson','Exception\x20in\x20fetching\x20platform\x20details\x20with\x20error\x20:\x20','gwtlC','nodeRequest','iEAjt','Content-Type','OtLvP','BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM','RhYDk','browserstackSessionName','projectName','gJHkb','../helper','235086bOULPE','Authorization','817040tDeMoE','faNxN','Options','error','assign','jIYJG','IRQlp','application/json','auth','statusText','__cloud_provider___','getCiInfo','HJikM','getAccessibilityResults','a11y:stop','getResultsSummary','msudg','browserstack_executor','BS_A11Y_JWT','test_runs/stop','../globals','Bearer\x20','LoyTC','mYTTE','script','isArray','vXgas','chromeOptions','LfnKI','length','XMtRP','getGlobal','false','xOZlk','excludeTagsInTestingScope','isTrue','4497815cOPKaZ','Exception\x20while\x20creating\x20test\x20run\x20for\x20BrowserStack\x20Accessibility\x20Automation:\x20','uOVvX','chrome','4630962MEQbUm','HYYVK','response','790540GnxzCs','VUsQB','warn','stringify','XuDzk','--headless','Exception\x20in\x20checking\x20accessibility\x20key\x20in\x20platform\x20config.\x20Error\x20','8PKoXGG','Accessibility\x20Automation\x20will\x20not\x20run\x20on\x20legacy\x20headless\x20mode.\x20Switch\x20to\x20new\x20headless\x20mode\x20or\x20avoid\x20using\x20headless\x20mode.','headers','EBaYN','Performing\x20scan\x20before\x20getting\x20results\x20summary','toISOString','sLaDK','isBrowserstackInfra','json','debug','QClao','wZRSI','toJson','buildName','zAtLR','performScan','ddXjR','qsmJU','Invalid\x20configuration\x20passed.','mergeDeep','stopAccessibilityTestRun','a11y:start','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','isAccessibilityAutomationSession','getAccessKey','getCapabilities','body','includeTagsInTestingScope','parse','set','lZYbC','ChromeExtension','aEODu','Build\x20creation\x20had\x20failed.','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','iDHZN','getAccessibilityResultsSummary','executeAsyncScript','bstackA11yShouldScan','capabilities_','No\x20accessibility\x20summary\x20was\x20found.','data','PkPsl','../performance/constants','ZFMfO','NAneQ','selenium-webdriver','Error\x20while\x20validating\x20test\x20case\x20for\x20accessibility\x20before\x20scanning.\x20Error\x20:\x20','eWzyT','status','success','CjxOK','nestedKeyValue','2913113hKSEQw','format','resolve','getBrowserName','platforms','OTFuT','checkAccessibilityPlatformConfig','getPackageVersion','args','HlrER','WdvEX','measureWrapper','PERFORM_SCAN','CltAE','PUT','errors','ZjFpF','isUndefined','BROWSERSTACK_TEST_ACCESSIBILITY_YML','some','getPlatform','string','util','Exception\x20while\x20marking\x20completion\x20of\x20BrowserStack\x20Accessibility\x20Automation\x20Test\x20Run:\x20','user','env','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','Invalid\x20request:\x20','getUserName','vATjj','deviceName','oPshU','gAatP','KOYuq','isAccessibilityPlatform','browserVersion','qZudl','uSWrf','getResults','fptGF','../performance/performance-tester','nonBstackPlatformValidation','includes'];a97_0x431e=function(){return _0x52d59e;};return a97_0x431e();}function a97_0x4083(_0x5c5e35,_0x46ce4f){const _0x431ec8=a97_0x431e();return a97_0x4083=function(_0x4083c8,_0x2a0287){_0x4083c8=_0x4083c8-0x7b;let _0x2c0eb3=_0x431ec8[_0x4083c8];return _0x2c0eb3;},a97_0x4083(_0x5c5e35,_0x46ce4f);}(function(_0x1850a9,_0x52defd){const _0x5d02b1=a97_0x4083,_0x35be52=_0x1850a9();while(!![]){try{const _0x26c6a4=parseInt(_0x5d02b1(0xe3))/0x1+parseInt(_0x5d02b1(0xe1))/0x2+parseInt(_0x5d02b1(0xc3))/0x3+-parseInt(_0x5d02b1(0x10e))/0x4+-parseInt(_0x5d02b1(0x107))/0x5+parseInt(_0x5d02b1(0x10b))/0x6+-parseInt(_0x5d02b1(0x7d))/0x7*(parseInt(_0x5d02b1(0x115))/0x8);if(_0x26c6a4===_0x52defd)break;else _0x35be52['push'](_0x35be52['shift']());}catch(_0x21f491){_0x35be52['push'](_0x35be52['shift']());}}}(a97_0x431e,0x8b4b9));const path=require('path'),util=require(a97_0x350bf4(0x93)),bsSetupHelper=require(a97_0x350bf4(0xe0)),logger=require('../logger')['winstonLogger'],{API_URL,MINIMUM_BROWSER_VERSION_NON_BS_INFRA_ACCESSIBILITY}=require('./constants'),PerformanceTester=require(a97_0x350bf4(0xa5)),scripts=require(a97_0x350bf4(0xb1)),globals=require(a97_0x350bf4(0xf7)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a97_0x350bf4(0x140));exports['fetchPlatformDetails']=async _0x58fc10=>{const _0x37128f=a97_0x350bf4,_0x3df20a={};_0x3df20a[_0x37128f(0xf9)]=function(_0x445784,_0x1ae497){return _0x445784===_0x1ae497;},_0x3df20a[_0x37128f(0x9e)]='browserstack';const _0x34d738=_0x3df20a;let _0x1b0fc8={};try{const _0x366682=await _0x58fc10[_0x37128f(0x12e)]();_0x1b0fc8={'os_name':_0x366682[_0x37128f(0x91)](),'os_version':bsSetupHelper['getPlatformVersion'](_0x34d738[_0x37128f(0xf9)](global[_0x37128f(0xed)],_0x34d738[_0x37128f(0x9e)])),'browser_name':_0x366682[_0x37128f(0x80)](),'browser_version':_0x366682[_0x37128f(0xc1)]()};}catch(_0x1a82ef){logger[_0x37128f(0x11e)](_0x37128f(0xd5)+_0x1a82ef);}return _0x1b0fc8;},exports[a97_0x350bf4(0x12c)]=()=>{const _0x345435=a97_0x350bf4,_0x3a4b33={};_0x3a4b33[_0x345435(0xda)]=function(_0x45633d,_0x1573bf){return _0x45633d===_0x1573bf;},_0x3a4b33['ZBHOq']=_0x345435(0x92),_0x3a4b33[_0x345435(0xe9)]=function(_0x4bd8c4,_0x4f8e65){return _0x4bd8c4>_0x4f8e65;},_0x3a4b33['fptGF']=function(_0x3632ae,_0x48225d){return _0x3632ae!==_0x48225d;},_0x3a4b33[_0x345435(0x112)]=_0x345435(0xd0),_0x3a4b33[_0x345435(0xff)]=function(_0x2c8e9f,_0x107345){return _0x2c8e9f&&_0x107345;};const _0x5b85c6=_0x3a4b33;try{const _0x3f0f47=bsSetupHelper['isTrue'](process[_0x345435(0x96)][_0x345435(0x8f)])||bsSetupHelper[_0x345435(0x106)](process[_0x345435(0x96)][_0x345435(0xdb)]),_0x461edb=_0x5b85c6[_0x345435(0xda)](typeof process[_0x345435(0x96)][_0x345435(0xf5)],_0x5b85c6[_0x345435(0xce)])&&_0x5b85c6[_0x345435(0xe9)](process[_0x345435(0x96)][_0x345435(0xf5)][_0x345435(0x100)],0x0)&&_0x5b85c6[_0x345435(0xa4)](process[_0x345435(0x96)]['BS_A11Y_JWT'],_0x5b85c6[_0x345435(0x112)]);return _0x5b85c6[_0x345435(0xff)](_0x3f0f47,_0x461edb);}catch(_0xa229d5){logger[_0x345435(0x11e)]('Exception\x20in\x20verifying\x20the\x20Accessibility\x20session\x20with\x20error\x20:\x20'+_0xa229d5);}return![];},exports[a97_0x350bf4(0xa6)]=(_0x3d37f9,_0x364546)=>{const _0x235458=a97_0x350bf4,_0x363dbb={'ezITF':_0x235458(0xb6),'CjxOK':function(_0x4d7b3f,_0x5af4e3){return _0x4d7b3f(_0x5af4e3);},'uOVvX':_0x235458(0xa0),'PkPsl':'version','vXgas':'bstack:options','vATjj':_0x235458(0x9b),'HYYVK':_0x235458(0xbc),'msudg':_0x235458(0x12b),'KmBnV':_0x235458(0xc5),'gJHkb':_0x235458(0x143),'faNxN':_0x235458(0xab),'xOZlk':_0x235458(0x85),'RhYDk':_0x235458(0xfe),'WdvEX':_0x235458(0x113),'OwVlQ':_0x235458(0x116),'LJkEb':_0x235458(0xcb),'NAneQ':function(_0x406337,_0xe0f2e6){return _0x406337===_0xe0f2e6;},'eWzyT':_0x235458(0x10a),'vSaDH':function(_0x25c596,_0x300d69){return _0x25c596>=_0x300d69;}},_0x1c7b48=_0x3d37f9['get'](_0x363dbb[_0x235458(0xcd)]),_0xcf3637=_0x363dbb[_0x235458(0x7b)](parseFloat,_0x3d37f9['get'](_0x363dbb[_0x235458(0x109)]))||_0x363dbb[_0x235458(0x7b)](parseFloat,_0x3d37f9[_0x235458(0xaf)](_0x363dbb[_0x235458(0x13f)])),_0x745ec0=_0x3d37f9['get'](_0x363dbb['vXgas'])||{},_0x153d8c=_0x363dbb[_0x235458(0x7b)](parseFloat,MINIMUM_BROWSER_VERSION_NON_BS_INFRA_ACCESSIBILITY),_0x1b9ea6=_0x745ec0[_0x363dbb[_0x235458(0x9a)]]||_0x3d37f9[_0x235458(0xaf)](_0x363dbb[_0x235458(0x10c)])||![];if(_0x1b9ea6)return logger[_0x235458(0x110)](_0x363dbb[_0x235458(0xf3)]),![];let _0x1036de;try{_0x1036de=bsSetupHelper['requireModule'](_0x363dbb['KmBnV'],_0x363dbb[_0x235458(0xdf)]);}catch(_0x3bfe2d){return![];}const _0x3e1946=new _0x1036de[(_0x235458(0xe5))](_0x364546[_0x235458(0xc2)]),_0x12aea2=bsSetupHelper['nestedKeyValue'](_0x3e1946,[_0x363dbb[_0x235458(0xe4)],_0x363dbb['xOZlk']])||bsSetupHelper[_0x235458(0x7c)](_0x364546[_0x235458(0x13c)],[_0x363dbb[_0x235458(0xfd)],_0x363dbb['RhYDk'],_0x363dbb[_0x235458(0x104)]])||bsSetupHelper[_0x235458(0x7c)](_0x364546[_0x235458(0x13c)],[_0x363dbb[_0x235458(0xdc)],_0x363dbb[_0x235458(0x104)]])||[];if(_0x12aea2[_0x235458(0xa7)](_0x363dbb[_0x235458(0x87)]))return logger[_0x235458(0x110)](_0x363dbb['OwVlQ']),![];const _0x46e1c5=_0x364546['capabilities_']||{},_0x3f99ac=bsSetupHelper[_0x235458(0x7c)](_0x46e1c5,[_0x363dbb['LJkEb']])||{},_0x56fad4=bsSetupHelper[_0x235458(0x7c)](_0x3f99ac,[_0x363dbb['xOZlk']])||[];if(_0x56fad4[_0x235458(0xa7)](_0x363dbb['WdvEX']))return logger[_0x235458(0x110)](_0x363dbb['OwVlQ']),![];if(_0x363dbb[_0x235458(0x142)](_0x1c7b48['toLowerCase'](),_0x363dbb[_0x235458(0x145)])&&_0x363dbb['vSaDH'](_0xcf3637,_0x153d8c))return!![];return logger[_0x235458(0x110)]('Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20'+MINIMUM_BROWSER_VERSION_NON_BS_INFRA_ACCESSIBILITY+'.'),![];},exports['setNonBstackInfraCapabilities']=_0x2eeb95=>{const _0x582263=a97_0x350bf4,_0x2e9f68={};_0x2e9f68['qsmJU']='goog:chromeOptions',_0x2e9f68['nfihC']=function(_0x3117e3,_0x155c10){return _0x3117e3||_0x155c10;},_0x2e9f68['gwtlC']='Not\x20a\x20Accessibility\x20Session';const _0x10e5e4=_0x2e9f68,_0x556b02=scripts[_0x582263(0x134)];try{const _0x47d425=bsSetupHelper['isTrue'](process[_0x582263(0x96)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'])||bsSetupHelper[_0x582263(0x106)](process[_0x582263(0x96)]['BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM']);if((!bsSetupHelper['isBrowserstackInfra']()||process['env']['BROWSERSTACK_TURBOSCALE'])&&_0x47d425){const _0x7b4438=_0x2eeb95[_0x582263(0x12e)](),_0x1ffb36=_0x7b4438[_0x582263(0xaf)](_0x10e5e4['qsmJU']),_0x50ee7c=_0x10e5e4['nfihC'](_0x1ffb36,{});bsSetupHelper[_0x582263(0x128)](_0x50ee7c,_0x556b02),_0x2eeb95['getCapabilities']()[_0x582263(0x132)](_0x10e5e4[_0x582263(0x126)],_0x50ee7c);}else logger['warn'](_0x10e5e4[_0x582263(0xd6)]);}catch(_0x1e264a){logger[_0x582263(0xe6)]('Error\x20while\x20adding\x20Non-Bstack\x20capabilities:\x20'+_0x1e264a);}},exports['shouldScanTestForAccessibility']=(_0x4882e3=null,_0x12c842=!![],_0x1cb7d6=[])=>{const _0x45ce0e=a97_0x350bf4,_0x4079aa={};_0x4079aa['cvZly']=function(_0x1c9560,_0x3c1359){return _0x1c9560==_0x3c1359;},_0x4079aa[_0x45ce0e(0x8a)]=function(_0x209335,_0x4c1d75){return _0x209335>_0x4c1d75;},_0x4079aa[_0x45ce0e(0xe8)]=function(_0x2b0ebf,_0xf0ab9f){return _0x2b0ebf===_0xf0ab9f;},_0x4079aa[_0x45ce0e(0x11b)]=function(_0x4864cb,_0x5d7939){return _0x4864cb&&_0x5d7939;},_0x4079aa[_0x45ce0e(0xa9)]=function(_0x1e8210,_0x263f27){return _0x1e8210===_0x263f27;};const _0x455e00=_0x4079aa;if(_0x455e00['cvZly'](process[_0x45ce0e(0x96)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'],null))return!![];try{const _0x46e58b=JSON[_0x45ce0e(0x131)](process[_0x45ce0e(0x96)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']),_0x2cdb6c=Array[_0x45ce0e(0xfc)](_0x46e58b[_0x45ce0e(0x130)])?_0x46e58b[_0x45ce0e(0x130)]:[],_0x336dcb=Array[_0x45ce0e(0xfc)](_0x46e58b[_0x45ce0e(0x105)])?_0x46e58b[_0x45ce0e(0x105)]:[];if(bsSetupHelper[_0x45ce0e(0x8e)](_0x4882e3)){if(_0x455e00[_0x45ce0e(0x8a)](_0x1cb7d6[_0x45ce0e(0x100)],0x0)){const _0x5a903e=_0x336dcb[_0x45ce0e(0x90)](_0xfa7397=>_0x1cb7d6['includes'](_0xfa7397)),_0xbe4729=_0x455e00[_0x45ce0e(0xe8)](_0x2cdb6c[_0x45ce0e(0x100)],0x0)||_0x2cdb6c['some'](_0x29b04c=>_0x1cb7d6[_0x45ce0e(0xa7)](_0x29b04c));return _0x455e00[_0x45ce0e(0x11b)](!_0x5a903e,_0xbe4729);}return!![];}let _0x5aeb6e;_0x12c842?_0x5aeb6e=_0x4882e3[_0x45ce0e(0xc9)]('/'):_0x5aeb6e=_0x4882e3;const _0x3adb38=_0x336dcb[_0x45ce0e(0x90)](_0x2b554a=>_0x5aeb6e[_0x45ce0e(0xa7)](_0x2b554a)),_0x59ae99=_0x455e00[_0x45ce0e(0xa9)](_0x2cdb6c[_0x45ce0e(0x100)],0x0)||_0x2cdb6c[_0x45ce0e(0x90)](_0x2420f8=>_0x5aeb6e[_0x45ce0e(0xa7)](_0x2420f8));return _0x455e00['sLaDK'](!_0x3adb38,_0x59ae99);}catch(_0x576a96){logger[_0x45ce0e(0x11e)](_0x45ce0e(0x144)+util['format'](_0x576a96));}return![];},exports[a97_0x350bf4(0x83)]=_0x28f486=>{const _0xbff20b=a97_0x350bf4;let _0x3f82de=![];try{_0x28f486[_0xbff20b(0x81)]['forEach'](_0x3d8f9a=>{const _0x67e6b3=_0xbff20b;if(bsSetupHelper[_0x67e6b3(0x106)](_0x3d8f9a['accessibility']))return _0x3f82de=!![],!![];});}catch(_0x49f9f6){logger['debug'](_0xbff20b(0x114)+_0x49f9f6);}return _0x3f82de||bsSetupHelper[_0xbff20b(0x106)](_0x28f486['accessibility']);},exports['createAccessibilityTestRun']=PerformanceTester[a97_0x350bf4(0x88)](a97_0x350bf4(0x12a),async function(_0xf5e27b,_0x281fa5){const _0x57b5cc=a97_0x350bf4,_0x4dd0ef={};_0x4dd0ef['omeiK']=_0x57b5cc(0xad),_0x4dd0ef[_0x57b5cc(0x9d)]=_0x57b5cc(0xb8),_0x4dd0ef['btjuv']=_0x57b5cc(0xbd),_0x4dd0ef[_0x57b5cc(0x10f)]=_0x57b5cc(0xea),_0x4dd0ef[_0x57b5cc(0x118)]='POST',_0x4dd0ef[_0x57b5cc(0xc7)]='v2/test_runs',_0x4dd0ef['spdrl']=function(_0x597c0b,_0x1b6774){return _0x597c0b===_0x1b6774;},_0x4dd0ef['iEAjt']=_0x57b5cc(0x127),_0x4dd0ef['mpdVA']=_0x57b5cc(0x103);const _0x43087b=_0x4dd0ef,_0xa06fcc=bsSetupHelper[_0x57b5cc(0x99)](_0xf5e27b),_0x3fbf46=bsSetupHelper[_0x57b5cc(0x12d)](_0xf5e27b);if(bsSetupHelper[_0x57b5cc(0x8e)](_0xa06fcc)||bsSetupHelper[_0x57b5cc(0x8e)](_0x3fbf46))return logger[_0x57b5cc(0xe6)](_0x43087b[_0x57b5cc(0xaa)]),[null,null];try{let _0xcb35c5;bsSetupHelper[_0x57b5cc(0x8e)](process[_0x57b5cc(0x96)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])?_0xcb35c5={}:_0xcb35c5=JSON[_0x57b5cc(0x131)](process[_0x57b5cc(0x96)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']);const {name:_0x39eb3a,version:_0x562d2e}=bsSetupHelper[_0x57b5cc(0xb5)](_0xf5e27b,_0x281fa5),_0xc7c57f={'projectName':_0xf5e27b[_0x57b5cc(0xde)],'buildName':_0xf5e27b[_0x57b5cc(0x122)]||path[_0x57b5cc(0xd1)](path[_0x57b5cc(0x7f)](process['cwd']())),'startTime':new Date()['toISOString'](),'description':_0xf5e27b['buildDescription']||'','source':{'frameworkName':_0x281fa5[_0x57b5cc(0xa7)](_0x43087b[_0x57b5cc(0x9d)])?_0x43087b[_0x57b5cc(0x9d)]:_0x281fa5,'frameworkVersion':bsSetupHelper[_0x57b5cc(0x84)](_0x281fa5),'sdkVersion':bsSetupHelper[_0x57b5cc(0xb7)](),'language':_0x43087b[_0x57b5cc(0xba)],'testFramework':_0x39eb3a,'testFrameworkVersion':_0x562d2e},'settings':_0xcb35c5,'versionControl':await bsSetupHelper['getGitMetaData'](),'ciInfo':bsSetupHelper[_0x57b5cc(0xee)](),'hostInfo':bsSetupHelper[_0x57b5cc(0xcf)](),'browserstackAutomation':bsSetupHelper[_0x57b5cc(0x11c)]()},_0xe12f43={};_0xe12f43[_0x57b5cc(0x95)]=_0xa06fcc,_0xe12f43['pass']=_0x3fbf46;const _0x483425={};_0x483425[_0x57b5cc(0xd9)]=_0x43087b[_0x57b5cc(0x10f)];const _0x45b8de={};_0x45b8de[_0x57b5cc(0xeb)]=_0xe12f43,_0x45b8de[_0x57b5cc(0x117)]=_0x483425;const _0x5ba3c2=_0x45b8de,_0xc2c146={};_0xc2c146[_0x57b5cc(0x12f)]=_0xc7c57f,_0xc2c146['json']=!![];const _0x399805=Object[_0x57b5cc(0xe7)](_0x5ba3c2,_0xc2c146),_0x3a72a8=await bsSetupHelper['nodeRequest'](_0x43087b[_0x57b5cc(0x118)],_0x43087b[_0x57b5cc(0xc7)],_0x399805,_0xf5e27b,API_URL);let _0xf623ee=process[_0x57b5cc(0x96)][_0x57b5cc(0xac)];return _0xf623ee?_0xf623ee=JSON[_0x57b5cc(0x131)](process['env'][_0x57b5cc(0xac)]):_0xf623ee={},scripts[_0x57b5cc(0xd4)](_0x3a72a8[_0x57b5cc(0x13e)][_0x57b5cc(0x13e)]),scripts[_0x57b5cc(0x121)](),_0xf623ee[_0x57b5cc(0xbb)]=_0x3a72a8['data'][_0x57b5cc(0x13e)][_0x57b5cc(0xbb)],process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x57b5cc(0x111)](_0xf623ee),[_0x3a72a8['data'][_0x57b5cc(0x13e)]['accessibilityToken'],_0x3a72a8[_0x57b5cc(0x13e)]['data']['id']];}catch(_0xa3bb21){if(_0xa3bb21[_0x57b5cc(0x10d)])logger[_0x57b5cc(0xe6)](_0x57b5cc(0x108)+_0xa3bb21[_0x57b5cc(0x10d)][_0x57b5cc(0x146)]+'\x20'+_0xa3bb21[_0x57b5cc(0x10d)][_0x57b5cc(0xec)]+'\x20'+JSON[_0x57b5cc(0x111)](_0xa3bb21[_0x57b5cc(0x10d)][_0x57b5cc(0x13e)]));else{if(_0x43087b[_0x57b5cc(0xc0)](_0xa3bb21[_0x57b5cc(0xd2)],_0x43087b[_0x57b5cc(0xd8)])){logger[_0x57b5cc(0xe6)]('Exception\x20while\x20creating\x20test\x20run\x20for\x20BrowserStack\x20Accessibility\x20Automation:\x20'+(_0xa3bb21[_0x57b5cc(0xd2)]||_0xa3bb21[_0x57b5cc(0xb2)]));for(const _0x5b21fc of _0xa3bb21[_0x57b5cc(0x8c)]){logger[_0x57b5cc(0xe6)](_0x5b21fc[_0x57b5cc(0xd2)]);}process[_0x57b5cc(0x96)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x43087b[_0x57b5cc(0xca)],process[_0x57b5cc(0x96)][_0x57b5cc(0xdb)]=_0x43087b[_0x57b5cc(0xca)];}else logger[_0x57b5cc(0xe6)](_0x57b5cc(0x108)+(_0xa3bb21[_0x57b5cc(0xd2)]||_0xa3bb21['stack']));}return[null,null];}}),exports[a97_0x350bf4(0x129)]=PerformanceTester[a97_0x350bf4(0x88)](a97_0x350bf4(0xf1),async function(_0x438efe){const _0x4dd36b=a97_0x350bf4,_0x524515={};_0x524515[_0x4dd36b(0x138)]=function(_0x2b626c,_0x43c1f8){return _0x2b626c!==_0x43c1f8;},_0x524515[_0x4dd36b(0x135)]='string',_0x524515['uSWrf']=_0x4dd36b(0xe6),_0x524515[_0x4dd36b(0xc8)]=_0x4dd36b(0x136),_0x524515[_0x4dd36b(0xa1)]=_0x4dd36b(0xea),_0x524515[_0x4dd36b(0xfa)]=_0x4dd36b(0x8b),_0x524515[_0x4dd36b(0x125)]=_0x4dd36b(0xf6),_0x524515['Tltrg']=function(_0x4c60c0,_0x72436){return _0x4c60c0+_0x72436;},_0x524515[_0x4dd36b(0xbf)]=_0x4dd36b(0x98),_0x524515['hhxqW']=_0x4dd36b(0x147);const _0x55d15e=_0x524515;if(bsSetupHelper['isUndefined'](process[_0x4dd36b(0x96)][_0x4dd36b(0xf5)])||_0x55d15e['iDHZN'](typeof process[_0x4dd36b(0x96)][_0x4dd36b(0xf5)],_0x55d15e[_0x4dd36b(0x135)])){const _0x2c4c12={};return _0x2c4c12[_0x4dd36b(0x146)]=_0x55d15e[_0x4dd36b(0xa2)],_0x2c4c12[_0x4dd36b(0xd2)]=_0x55d15e[_0x4dd36b(0xc8)],_0x2c4c12;}const _0x2b5f16={'endTime':new Date()[_0x4dd36b(0x11a)]()},_0x14f055={};_0x14f055[_0x4dd36b(0xe2)]=_0x4dd36b(0xf8)+process[_0x4dd36b(0x96)][_0x4dd36b(0xf5)],_0x14f055['Content-Type']=_0x55d15e['qZudl'];const _0x2bd66e={};_0x2bd66e[_0x4dd36b(0x117)]=_0x14f055;const _0x1cf15c=_0x2bd66e,_0x555ca1={};_0x555ca1[_0x4dd36b(0x12f)]=_0x2b5f16,_0x555ca1[_0x4dd36b(0xeb)]=null,_0x555ca1[_0x4dd36b(0x11d)]=!![];const _0x2dfc9c=Object[_0x4dd36b(0xe7)](_0x1cf15c,_0x555ca1);try{const _0x4fc941=await bsSetupHelper[_0x4dd36b(0xd7)](_0x55d15e[_0x4dd36b(0xfa)],_0x55d15e[_0x4dd36b(0x125)],_0x2dfc9c,_0x438efe,API_URL);if(_0x4fc941['data'][_0x4dd36b(0xe6)])throw new Error(_0x55d15e['Tltrg'](_0x55d15e[_0x4dd36b(0xbf)],_0x4fc941[_0x4dd36b(0x13e)][_0x4dd36b(0xe6)]));else{logger['info']('BrowserStack\x20Accessibility\x20Automation\x20Test\x20Run\x20marked\x20as\x20completed\x20at\x20'+new Date()[_0x4dd36b(0x11a)]());const _0x2a4ada={};return _0x2a4ada[_0x4dd36b(0x146)]=_0x55d15e['hhxqW'],_0x2a4ada[_0x4dd36b(0xd2)]='',_0x2a4ada;}}catch(_0x579aab){_0x579aab[_0x4dd36b(0x10d)]?logger['error'](_0x4dd36b(0x94)+_0x579aab[_0x4dd36b(0x10d)][_0x4dd36b(0x146)]+'\x20'+_0x579aab[_0x4dd36b(0x10d)]['statusText']+'\x20'+JSON[_0x4dd36b(0x111)](_0x579aab[_0x4dd36b(0x10d)]['data'])):logger['error'](_0x4dd36b(0x94)+(_0x579aab[_0x4dd36b(0xd2)]||util[_0x4dd36b(0x7e)](_0x579aab)));const _0x337777={};return _0x337777[_0x4dd36b(0x146)]=_0x55d15e[_0x4dd36b(0xa2)],_0x337777['message']=_0x579aab[_0x4dd36b(0xd2)]||(_0x579aab[_0x4dd36b(0x10d)]?_0x579aab[_0x4dd36b(0x10d)][_0x4dd36b(0x146)]+':'+_0x579aab[_0x4dd36b(0x10d)]['statusText']:_0x579aab),_0x337777;}}),exports['performScan']=async(_0x4ea4e4,_0x158f08=null)=>{const _0x433066=a97_0x350bf4,_0xccf2d6={};_0xccf2d6[_0x433066(0xae)]='isAccessibilityPlatform',_0xccf2d6[_0x433066(0x123)]='bstackA11yShouldScan',_0xccf2d6[_0x433066(0x11f)]=_0x433066(0xb0);const _0xdc6c52=_0xccf2d6;if(!this[_0x433066(0x12c)]()||!globals[_0x433066(0x102)](_0xdc6c52[_0x433066(0xae)])||!globals[_0x433066(0x102)](_0xdc6c52[_0x433066(0x123)])){logger[_0x433066(0x110)](_0xdc6c52[_0x433066(0x11f)]);return;}return await PerformanceTester[_0x433066(0x88)](PerformanceA11yEvents[_0x433066(0x89)],async()=>{const _0x579319=_0x433066,_0x189bae={};_0x189bae[_0x579319(0xb4)]=_0x158f08||global['browserstackSessionName'];const _0x15a5b8=util[_0x579319(0x7e)](await _0x4ea4e4[_0x579319(0x13a)](scripts['performScan'],_0x189bae));return logger[_0x579319(0x11e)](_0x579319(0xcc)+_0x15a5b8),_0x15a5b8;},{'command':_0x158f08})();},exports[a97_0x350bf4(0xf0)]=async(_0x132b0f,_0x51326e)=>{const _0x6ca932=a97_0x350bf4,_0x3e6540={};_0x3e6540[_0x6ca932(0xef)]=_0x6ca932(0xbe),_0x3e6540[_0x6ca932(0x101)]=_0x6ca932(0x9f),_0x3e6540[_0x6ca932(0xb3)]=_0x6ca932(0x13b),_0x3e6540[_0x6ca932(0x8d)]=_0x6ca932(0x97),_0x3e6540[_0x6ca932(0x141)]=_0x6ca932(0xf0),_0x3e6540['yFHTb']='No\x20accessibility\x20results\x20were\x20found.';const _0x11e47a=_0x3e6540;if(!this['isAccessibilityAutomationSession']()||!globals[_0x6ca932(0x102)](_0x11e47a['XMtRP'])||!globals[_0x6ca932(0x102)](_0x11e47a[_0x6ca932(0xb3)]))return logger[_0x6ca932(0x110)](_0x11e47a[_0x6ca932(0x8d)]),[];try{return await PerformanceTester[_0x6ca932(0x88)](PerformanceA11yEvents[_0x6ca932(0x89)],async()=>{const _0x2269f3=_0x6ca932;logger[_0x2269f3(0x11e)](_0x11e47a['HJikM']);const _0x2fb133={};_0x2fb133['method']=_0x51326e[_0x2269f3(0xdd)],logger[_0x2269f3(0x11e)](util[_0x2269f3(0x7e)](await _0x132b0f[_0x2269f3(0x13a)](scripts['performScan'],_0x2fb133)));},{'command':_0x11e47a[_0x6ca932(0x141)]})(),await PerformanceTester[_0x6ca932(0x88)](PerformanceA11yEvents[_0x6ca932(0xd3)],async()=>{const _0x49861b=_0x6ca932,_0x3d3e66=await _0x132b0f[_0x49861b(0x13a)](scripts[_0x49861b(0xa3)]);return _0x3d3e66;})();}catch{return logger[_0x6ca932(0xe6)](_0x11e47a[_0x6ca932(0xb9)]),[];}},exports[a97_0x350bf4(0x139)]=async(_0x17350f,_0x431d88)=>{const _0x4afdd2=a97_0x350bf4,_0x16571f={};_0x16571f[_0x4afdd2(0xc4)]=_0x4afdd2(0x119),_0x16571f[_0x4afdd2(0xa8)]='isAccessibilityPlatform',_0x16571f[_0x4afdd2(0x86)]=_0x4afdd2(0x13b),_0x16571f['uINPd']=_0x4afdd2(0x137),_0x16571f[_0x4afdd2(0xc6)]='getAccessibilityResultsSummary',_0x16571f[_0x4afdd2(0x133)]=_0x4afdd2(0x13d);const _0x1f61cc=_0x16571f;if(!this['isAccessibilityAutomationSession']()||!globals[_0x4afdd2(0x102)](_0x1f61cc[_0x4afdd2(0xa8)])||!globals[_0x4afdd2(0x102)](_0x1f61cc[_0x4afdd2(0x86)]))return logger[_0x4afdd2(0x110)](_0x1f61cc['uINPd']),{};try{return await PerformanceTester[_0x4afdd2(0x88)](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x43e525=_0x4afdd2;logger[_0x43e525(0x11e)](_0x1f61cc[_0x43e525(0xc4)]);const _0x39dae2={};_0x39dae2['method']=_0x431d88['browserstackSessionName'],logger['debug'](util[_0x43e525(0x7e)](await _0x17350f[_0x43e525(0x13a)](scripts[_0x43e525(0x124)],_0x39dae2)));},{'command':_0x1f61cc[_0x4afdd2(0xc6)]})(),await PerformanceTester['measureWrapper'](PerformanceA11yEvents['GET_RESULTS_SUMMARY'],async()=>{const _0xff60f8=_0x4afdd2,_0x10f86a=await _0x17350f[_0xff60f8(0x13a)](scripts[_0xff60f8(0xf2)]);return _0x10f86a;})();}catch{return logger['error'](_0x1f61cc[_0x4afdd2(0x133)]),{};}},exports['isBrowserStackCommandExecutor']=_0x2cc6c1=>{const _0x3b56f2=a97_0x350bf4,_0x284d6e={};_0x284d6e[_0x3b56f2(0x120)]=function(_0x270efa,_0x538ac1){return _0x270efa===_0x538ac1;},_0x284d6e[_0x3b56f2(0x82)]='string',_0x284d6e[_0x3b56f2(0x9c)]=_0x3b56f2(0xf4);const _0x26d506=_0x284d6e;if(_0x2cc6c1&&_0x2cc6c1['script']&&_0x26d506['wZRSI'](typeof _0x2cc6c1['script'],_0x26d506[_0x3b56f2(0x82)]))return _0x2cc6c1[_0x3b56f2(0xfb)][_0x3b56f2(0xa7)](_0x26d506[_0x3b56f2(0x9c)]);return![];};
|
|
1
|
+
function a97_0x2d94(){const _0x16dc2c=['BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM','KrcMA','../globals','isArray','getPlatformVersion','4FHAdXW','goog:chromeOptions','sNDTe','executeAsyncScript','4140291DQVBTg','includes','application/json','../logger','xgtiu','v2/test_runs','No\x20accessibility\x20summary\x20was\x20found.','FSlYd','bstack:options','requireModule','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20','tgDTF','browserstackSessionName','info','YjDYt','statusText','fsAQQ','assign','options_','Performing\x20scan\x20before\x20getting\x20results\x20summary','LqPGR','hFXSr','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','parse','status','isTrue','UfyoI','8664035tWzYjK','2807BdDxJA','stopAccessibilityTestRun','QYwcD','device','Exception\x20in\x20verifying\x20the\x20Accessibility\x20session\x20with\x20error\x20:\x20','Authorization','19048NwMrcn','resolve','yXtZf','Accessibility\x20Automation\x20will\x20not\x20run\x20on\x20legacy\x20headless\x20mode.\x20Switch\x20to\x20new\x20headless\x20mode\x20or\x20avoid\x20using\x20headless\x20mode.','9lbWPqO','ERasa','BROWSERSTACK_TURBOSCALE','fMpvI','../performance/constants','../performance/performance-tester','isBrowserstackInfra','stack','No\x20accessibility\x20results\x20were\x20found.','BROWSERSTACK_TEST_ACCESSIBILITY_YML','Exception\x20in\x20fetching\x20platform\x20details\x20with\x20error\x20:\x20','jPFeR','khljt','accessibility','pass','LoLjS','qKNvm','141798eebjQj','44915ZrvEWR','forEach','EwYRr','AOtWE','join','Exception\x20while\x20creating\x20test\x20run\x20for\x20BrowserStack\x20Accessibility\x20Automation:\x20','buildName','response','getUserName','getResultsSummary','data','platforms','isBrowserStackCommandExecutor','getAccessKey','ggkyC','ZAPem','projectName','debug','Ldrbi','getResults','selenium-webdriver','playwright','error','measureWrapper','iLRbe','aJQjD','gyGHt','GET_RESULTS','22873850rvTrUg','stringify','nonBstackPlatformValidation','oXrAs','chromeOptions','nodeRequest','method','headers','POST','PUT','performScan','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','isAccessibilityPlatform','MXcxh','Exception\x20while\x20creating\x20test\x20run\x20for\x20BrowserStack\x20Accessibility\x20Automation:\x20Missing\x20authentication\x20token','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','yilIu','XGVVR','message','toJson','UoNAf','./constants','util','SeOda','rYOgX','isAccessibilityAutomationSession','browserName','SCwnE','sRWYg','VFTXs','basename','iLkVP','getGlobal','whrky','excludeTagsInTestingScope','Error\x20while\x20validating\x20test\x20case\x20for\x20accessibility\x20before\x20scanning.\x20Error\x20:\x20','TJeeS','YruTT','PijRJ','LfRYL','QaUnc','Exception\x20while\x20marking\x20completion\x20of\x20BrowserStack\x20Accessibility\x20Automation\x20Test\x20Run:\x20','cEccK','Bearer\x20','a11y:stop','WgEZa','args','parseFromJson','createAccessibilityTestRun','PERFORM_SCAN','body','version','mergeDeep','json','szVoH','getBrowserVersion','getCiInfo','browserVersion','--headless','./scripts','getAgentVersion','null','warn','getPlatform','eYTsb','auth','getAccessibilityResults','checkAccessibilityPlatformConfig','dcxGc','toISOString','wNQbW','Invalid\x20request:\x20','ExHvO','includeTagsInTestingScope','length','Error\x20while\x20adding\x20Non-Bstack\x20capabilities:\x20','format','getGitMetaData','nAxQc','errors','iSrsy','Invalid\x20configuration\x20passed.','dABzH','wSxXg','some','bstackA11yShouldScan','scannerVersion','Exception\x20in\x20checking\x20accessibility\x20key\x20in\x20platform\x20config.\x20Error\x20','getHostInfo','Content-Type','fsouM','hjZwe','hgaPW','pMNzn','getCapabilities','zSwmc','Performing\x20scan\x20before\x20getting\x20results','test_runs/stop','getTestFrameworkDetails','nestedKeyValue','jbSAP','getPackageVersion','browserstack_executor','capabilities_','set','jftFs','MhDho','GET_RESULTS_SUMMARY','script','string','1405208oHhayJ','akFsh','cjwpS','path','CZyVn','pAeOm','setNonBstackInfraCapabilities','isUndefined','getAccessibilityResultsSummary','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20perform\x20scan.','WcYMK','get','Qvbzv','buildDescription','BS_A11Y_JWT','browserstack','mMZvx','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','env','Performed\x20scan\x20with\x20result:\x20','Not\x20a\x20Accessibility\x20Session','BrowserStack\x20Accessibility\x20Automation\x20Test\x20Run\x20marked\x20as\x20completed\x20at\x20'];a97_0x2d94=function(){return _0x16dc2c;};return a97_0x2d94();}const a97_0x446f97=a97_0xa5c3;(function(_0x716f46,_0x5cf116){const _0x2ff446=a97_0xa5c3,_0x12bb85=_0x716f46();while(!![]){try{const _0x8c574b=-parseInt(_0x2ff446(0x1ce))/0x1+-parseInt(_0x2ff446(0x258))/0x2+-parseInt(_0x2ff446(0x277))/0x3*(parseInt(_0x2ff446(0x273))/0x4)+parseInt(_0x2ff446(0x292))/0x5+parseInt(_0x2ff446(0x1cd))/0x6+parseInt(_0x2ff446(0x293))/0x7*(-parseInt(_0x2ff446(0x299))/0x8)+-parseInt(_0x2ff446(0x29d))/0x9*(-parseInt(_0x2ff446(0x1ea))/0xa);if(_0x8c574b===_0x5cf116)break;else _0x12bb85['push'](_0x12bb85['shift']());}catch(_0x418ab4){_0x12bb85['push'](_0x12bb85['shift']());}}}(a97_0x2d94,0xeab94));const path=require(a97_0x446f97(0x25b)),util=require(a97_0x446f97(0x200)),bsSetupHelper=require('../helper'),logger=require(a97_0x446f97(0x27a))['winstonLogger'],{API_URL,MINIMUM_BROWSER_VERSION_NON_BS_INFRA_ACCESSIBILITY}=require(a97_0x446f97(0x1ff)),PerformanceTester=require(a97_0x446f97(0x2a2)),scripts=require(a97_0x446f97(0x225)),globals=require(a97_0x446f97(0x270)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a97_0x446f97(0x2a1));function a97_0xa5c3(_0x156d01,_0x41f7e3){const _0x2d94e1=a97_0x2d94();return a97_0xa5c3=function(_0xa5c368,_0x5b20f2){_0xa5c368=_0xa5c368-0x1cd;let _0x551501=_0x2d94e1[_0xa5c368];return _0x551501;},a97_0xa5c3(_0x156d01,_0x41f7e3);}exports['fetchPlatformDetails']=async _0x1a3a85=>{const _0x51f6e5=a97_0x446f97,_0xb61b52={};_0xb61b52[_0x51f6e5(0x201)]=function(_0x5df5d7,_0x3f8abb){return _0x5df5d7===_0x3f8abb;},_0xb61b52[_0x51f6e5(0x23a)]=_0x51f6e5(0x267);const _0xc6c942=_0xb61b52;let _0x5bd822={};try{const _0x247922=await _0x1a3a85[_0x51f6e5(0x248)]();_0x5bd822={'os_name':_0x247922[_0x51f6e5(0x229)](),'os_version':bsSetupHelper[_0x51f6e5(0x272)](_0xc6c942[_0x51f6e5(0x201)](global['__cloud_provider___'],_0xc6c942[_0x51f6e5(0x23a)])),'browser_name':_0x247922['getBrowserName'](),'browser_version':_0x247922[_0x51f6e5(0x221)]()};}catch(_0x4680a0){logger[_0x51f6e5(0x1df)](_0x51f6e5(0x2a7)+_0x4680a0);}return _0x5bd822;},exports['isAccessibilityAutomationSession']=()=>{const _0x212137=a97_0x446f97,_0x155f1a={};_0x155f1a[_0x212137(0x1ed)]=function(_0x344e31,_0xfded66){return _0x344e31===_0xfded66;},_0x155f1a['hFXSr']='string',_0x155f1a['Ldrbi']=function(_0x5e4f36,_0x1d20ca){return _0x5e4f36>_0x1d20ca;},_0x155f1a[_0x212137(0x2ac)]=function(_0x50a2f6,_0x40cb84){return _0x50a2f6!==_0x40cb84;},_0x155f1a[_0x212137(0x28b)]=_0x212137(0x227),_0x155f1a[_0x212137(0x244)]=function(_0x39517b,_0x10a9c9){return _0x39517b&&_0x10a9c9;};const _0x359fd0=_0x155f1a;try{const _0x537e93=bsSetupHelper[_0x212137(0x290)](process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_YML'])||bsSetupHelper[_0x212137(0x290)](process[_0x212137(0x26a)][_0x212137(0x26e)]),_0x5c6f3f=_0x359fd0[_0x212137(0x1ed)](typeof process['env']['BS_A11Y_JWT'],_0x359fd0[_0x212137(0x28c)])&&_0x359fd0[_0x212137(0x1e0)](process[_0x212137(0x26a)][_0x212137(0x266)][_0x212137(0x234)],0x0)&&_0x359fd0['LoLjS'](process[_0x212137(0x26a)][_0x212137(0x266)],_0x359fd0[_0x212137(0x28b)]);return _0x359fd0[_0x212137(0x244)](_0x537e93,_0x5c6f3f);}catch(_0x52f04d){logger[_0x212137(0x1df)](_0x212137(0x297)+_0x52f04d);}return![];},exports[a97_0x446f97(0x1ec)]=(_0x1e9ecf,_0x58317c)=>{const _0x7e30d6=a97_0x446f97,_0x5b2a0c={'YruTT':_0x7e30d6(0x204),'Qvbzv':function(_0x5278e3,_0x115b79){return _0x5278e3(_0x115b79);},'ggkyC':_0x7e30d6(0x223),'CZyVn':_0x7e30d6(0x21d),'TJeeS':_0x7e30d6(0x27f),'WcYMK':'deviceName','sRWYg':_0x7e30d6(0x296),'JJXLG':_0x7e30d6(0x1f5),'UfyoI':'selenium-webdriver/chrome.js','zSwmc':_0x7e30d6(0x1e2),'pMNzn':_0x7e30d6(0x289),'SCwnE':_0x7e30d6(0x218),'akFsh':_0x7e30d6(0x1ee),'AOtWE':_0x7e30d6(0x224),'aJQjD':_0x7e30d6(0x29c),'WgEZa':_0x7e30d6(0x274),'cEccK':function(_0x5c30ea,_0xb38090){return _0x5c30ea===_0xb38090;},'QYwcD':'chrome','iLRbe':function(_0x3e8216,_0x52961b){return _0x3e8216>=_0x52961b;}},_0xc414f7=_0x1e9ecf[_0x7e30d6(0x263)](_0x5b2a0c[_0x7e30d6(0x20f)]),_0x754a0a=_0x5b2a0c[_0x7e30d6(0x264)](parseFloat,_0x1e9ecf[_0x7e30d6(0x263)](_0x5b2a0c[_0x7e30d6(0x1dc)]))||_0x5b2a0c[_0x7e30d6(0x264)](parseFloat,_0x1e9ecf[_0x7e30d6(0x263)](_0x5b2a0c[_0x7e30d6(0x25c)])),_0x3dc682=_0x1e9ecf['get'](_0x5b2a0c['TJeeS'])||{},_0x2f8c87=_0x5b2a0c[_0x7e30d6(0x264)](parseFloat,MINIMUM_BROWSER_VERSION_NON_BS_INFRA_ACCESSIBILITY),_0x418fcd=_0x3dc682[_0x5b2a0c[_0x7e30d6(0x262)]]||_0x1e9ecf[_0x7e30d6(0x263)](_0x5b2a0c[_0x7e30d6(0x206)])||![];if(_0x418fcd)return logger[_0x7e30d6(0x228)](_0x5b2a0c['JJXLG']),![];let _0xe45188;try{_0xe45188=bsSetupHelper[_0x7e30d6(0x280)](_0x5b2a0c[_0x7e30d6(0x291)],_0x5b2a0c[_0x7e30d6(0x249)]);}catch(_0x47f615){return![];}const _0x118393=new _0xe45188['Options'](_0x58317c['chromeOptions_']),_0x393fe9=bsSetupHelper[_0x7e30d6(0x24d)](_0x118393,[_0x5b2a0c[_0x7e30d6(0x247)],_0x5b2a0c['SCwnE']])||bsSetupHelper[_0x7e30d6(0x24d)](_0x58317c[_0x7e30d6(0x251)],[_0x5b2a0c[_0x7e30d6(0x20e)],_0x5b2a0c[_0x7e30d6(0x259)],_0x5b2a0c[_0x7e30d6(0x205)]])||bsSetupHelper[_0x7e30d6(0x24d)](_0x58317c[_0x7e30d6(0x251)],[_0x5b2a0c['akFsh'],_0x5b2a0c[_0x7e30d6(0x205)]])||[];if(_0x393fe9[_0x7e30d6(0x278)](_0x5b2a0c['AOtWE']))return logger['warn'](_0x5b2a0c[_0x7e30d6(0x1e7)]),![];const _0x1bc404=_0x58317c[_0x7e30d6(0x251)]||{},_0x1c5e1a=bsSetupHelper[_0x7e30d6(0x24d)](_0x1bc404,[_0x5b2a0c[_0x7e30d6(0x217)]])||{},_0x9975d1=bsSetupHelper[_0x7e30d6(0x24d)](_0x1c5e1a,[_0x5b2a0c['SCwnE']])||[];if(_0x9975d1['includes'](_0x5b2a0c[_0x7e30d6(0x1d1)]))return logger[_0x7e30d6(0x228)](_0x5b2a0c[_0x7e30d6(0x1e7)]),![];if(_0x5b2a0c[_0x7e30d6(0x214)](_0xc414f7['toLowerCase'](),_0x5b2a0c[_0x7e30d6(0x295)])&&_0x5b2a0c[_0x7e30d6(0x1e6)](_0x754a0a,_0x2f8c87))return!![];return logger[_0x7e30d6(0x228)](_0x7e30d6(0x281)+MINIMUM_BROWSER_VERSION_NON_BS_INFRA_ACCESSIBILITY+'.'),![];},exports[a97_0x446f97(0x25e)]=_0x39fc6=>{const _0x43841b=a97_0x446f97,_0x5888b7={};_0x5888b7[_0x43841b(0x23c)]=_0x43841b(0x274),_0x5888b7[_0x43841b(0x268)]=function(_0x14d3bc,_0x303419){return _0x14d3bc||_0x303419;},_0x5888b7[_0x43841b(0x1f7)]=_0x43841b(0x26c);const _0x4cbc39=_0x5888b7,_0x4a2175=scripts['ChromeExtension'];try{const _0x3ae7b7=bsSetupHelper[_0x43841b(0x290)](process[_0x43841b(0x26a)][_0x43841b(0x2a6)])||bsSetupHelper[_0x43841b(0x290)](process[_0x43841b(0x26a)][_0x43841b(0x26e)]);if((!bsSetupHelper['isBrowserstackInfra']()||process[_0x43841b(0x26a)][_0x43841b(0x29f)])&&_0x3ae7b7){const _0x5b0e12=_0x39fc6[_0x43841b(0x248)](),_0x43334d=_0x5b0e12[_0x43841b(0x263)](_0x4cbc39[_0x43841b(0x23c)]),_0xd5c711=_0x4cbc39[_0x43841b(0x268)](_0x43334d,{});bsSetupHelper[_0x43841b(0x21e)](_0xd5c711,_0x4a2175),_0x39fc6[_0x43841b(0x248)]()[_0x43841b(0x252)](_0x4cbc39[_0x43841b(0x23c)],_0xd5c711);}else logger['warn'](_0x4cbc39[_0x43841b(0x1f7)]);}catch(_0x289a61){logger[_0x43841b(0x1e4)](_0x43841b(0x235)+_0x289a61);}},exports['shouldScanTestForAccessibility']=(_0x8e1a1f=null,_0x2a2e04=!![],_0x2df48a=[])=>{const _0x37b57d=a97_0x446f97,_0x5bf053={};_0x5bf053[_0x37b57d(0x253)]=function(_0x459eda,_0x5f2494){return _0x459eda==_0x5f2494;},_0x5bf053[_0x37b57d(0x27b)]=function(_0x5ce584,_0x483209){return _0x5ce584>_0x483209;},_0x5bf053[_0x37b57d(0x230)]=function(_0x25690c,_0xc9f09e){return _0x25690c===_0xc9f09e;},_0x5bf053[_0x37b57d(0x246)]=function(_0x41e739,_0xd0eb90){return _0x41e739&&_0xd0eb90;},_0x5bf053[_0x37b57d(0x202)]=function(_0x1c4b78,_0x1bc70e){return _0x1c4b78===_0x1bc70e;};const _0x355476=_0x5bf053;if(_0x355476['jftFs'](process[_0x37b57d(0x26a)][_0x37b57d(0x269)],null))return!![];try{const _0x1bb325=JSON[_0x37b57d(0x28e)](process['env'][_0x37b57d(0x269)]),_0x39811d=Array[_0x37b57d(0x271)](_0x1bb325[_0x37b57d(0x233)])?_0x1bb325[_0x37b57d(0x233)]:[],_0x57b0e7=Array[_0x37b57d(0x271)](_0x1bb325[_0x37b57d(0x20c)])?_0x1bb325['excludeTagsInTestingScope']:[];if(bsSetupHelper['isUndefined'](_0x8e1a1f)){if(_0x355476[_0x37b57d(0x27b)](_0x2df48a[_0x37b57d(0x234)],0x0)){const _0xe7e6df=_0x57b0e7[_0x37b57d(0x23e)](_0x2bb373=>_0x2df48a[_0x37b57d(0x278)](_0x2bb373)),_0x48c64a=_0x355476['wNQbW'](_0x39811d[_0x37b57d(0x234)],0x0)||_0x39811d[_0x37b57d(0x23e)](_0x41edd8=>_0x2df48a['includes'](_0x41edd8));return _0x355476['hgaPW'](!_0xe7e6df,_0x48c64a);}return!![];}let _0x3d246b;_0x2a2e04?_0x3d246b=_0x8e1a1f[_0x37b57d(0x1d2)]('/'):_0x3d246b=_0x8e1a1f;const _0x4cd464=_0x57b0e7['some'](_0x1eda55=>_0x3d246b[_0x37b57d(0x278)](_0x1eda55)),_0x563782=_0x355476[_0x37b57d(0x202)](_0x39811d['length'],0x0)||_0x39811d[_0x37b57d(0x23e)](_0x3c4968=>_0x3d246b[_0x37b57d(0x278)](_0x3c4968));return _0x355476[_0x37b57d(0x246)](!_0x4cd464,_0x563782);}catch(_0x21e9f1){logger['debug'](_0x37b57d(0x20d)+util[_0x37b57d(0x236)](_0x21e9f1));}return![];},exports[a97_0x446f97(0x22d)]=_0x2a4a03=>{const _0x4205e4=a97_0x446f97;let _0x4602c4=![];try{_0x2a4a03[_0x4205e4(0x1d9)][_0x4205e4(0x1cf)](_0x3ef1a1=>{const _0x329ed7=_0x4205e4;if(bsSetupHelper[_0x329ed7(0x290)](_0x3ef1a1['accessibility']))return _0x4602c4=!![],!![];});}catch(_0x468ad0){logger['debug'](_0x4205e4(0x241)+_0x468ad0);}return _0x4602c4||bsSetupHelper[_0x4205e4(0x290)](_0x2a4a03[_0x4205e4(0x2aa)]);},exports[a97_0x446f97(0x21a)]=PerformanceTester[a97_0x446f97(0x1e5)]('a11y:start',async function(_0x4475df,_0x47e2a6){const _0x476f2e=a97_0x446f97,_0x54a66f={};_0x54a66f['UoNAf']=_0x476f2e(0x1f8),_0x54a66f[_0x476f2e(0x212)]=_0x476f2e(0x1e3),_0x54a66f[_0x476f2e(0x1fa)]='javascript',_0x54a66f[_0x476f2e(0x1dd)]='application/json',_0x54a66f[_0x476f2e(0x287)]=_0x476f2e(0x1f2),_0x54a66f[_0x476f2e(0x25a)]=_0x476f2e(0x27c),_0x54a66f[_0x476f2e(0x207)]=function(_0x2adb44,_0x41e1cd){return _0x2adb44===_0x41e1cd;},_0x54a66f['YjDYt']=_0x476f2e(0x23b),_0x54a66f[_0x476f2e(0x232)]='false';const _0x1e909b=_0x54a66f,_0x1101d4=bsSetupHelper[_0x476f2e(0x1d6)](_0x4475df),_0xf1fe6b=bsSetupHelper[_0x476f2e(0x1db)](_0x4475df);if(bsSetupHelper['isUndefined'](_0x1101d4)||bsSetupHelper[_0x476f2e(0x25f)](_0xf1fe6b))return logger['error'](_0x1e909b[_0x476f2e(0x1fe)]),[null,null];try{let _0x4aa7f9;bsSetupHelper[_0x476f2e(0x25f)](process[_0x476f2e(0x26a)][_0x476f2e(0x269)])?_0x4aa7f9={}:_0x4aa7f9=JSON[_0x476f2e(0x28e)](process[_0x476f2e(0x26a)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']);const {name:_0x5f1250,version:_0x369c8a}=bsSetupHelper[_0x476f2e(0x24c)](_0x4475df,_0x47e2a6),_0x5e3209={'projectName':_0x4475df[_0x476f2e(0x1de)],'buildName':_0x4475df[_0x476f2e(0x1d4)]||path[_0x476f2e(0x208)](path[_0x476f2e(0x29a)](process['cwd']())),'startTime':new Date()[_0x476f2e(0x22f)](),'description':_0x4475df[_0x476f2e(0x265)]||'','source':{'frameworkName':_0x47e2a6['includes'](_0x1e909b[_0x476f2e(0x212)])?_0x1e909b[_0x476f2e(0x212)]:_0x47e2a6,'frameworkVersion':bsSetupHelper[_0x476f2e(0x24f)](_0x47e2a6),'sdkVersion':bsSetupHelper[_0x476f2e(0x226)](),'language':_0x1e909b['yilIu'],'testFramework':_0x5f1250,'testFrameworkVersion':_0x369c8a},'settings':_0x4aa7f9,'versionControl':await bsSetupHelper[_0x476f2e(0x237)](),'ciInfo':bsSetupHelper[_0x476f2e(0x222)](),'hostInfo':bsSetupHelper[_0x476f2e(0x242)](),'browserstackAutomation':bsSetupHelper[_0x476f2e(0x2a3)]()},_0x5d61d7={};_0x5d61d7['user']=_0x1101d4,_0x5d61d7[_0x476f2e(0x2ab)]=_0xf1fe6b;const _0x5d4cda={};_0x5d4cda['Content-Type']=_0x1e909b[_0x476f2e(0x1dd)];const _0x1ad798={};_0x1ad798[_0x476f2e(0x22b)]=_0x5d61d7,_0x1ad798[_0x476f2e(0x1f1)]=_0x5d4cda;const _0x32ef21=_0x1ad798,_0xf8e61b={};_0xf8e61b[_0x476f2e(0x21c)]=_0x5e3209,_0xf8e61b['json']=!![];const _0x159681=Object['assign'](_0x32ef21,_0xf8e61b),_0x136259=await bsSetupHelper['nodeRequest'](_0x1e909b['fsAQQ'],_0x1e909b[_0x476f2e(0x25a)],_0x159681,_0x4475df,API_URL);let _0x54fa92=process[_0x476f2e(0x26a)][_0x476f2e(0x269)];return _0x54fa92?_0x54fa92=JSON[_0x476f2e(0x28e)](process[_0x476f2e(0x26a)][_0x476f2e(0x269)]):_0x54fa92={},scripts[_0x476f2e(0x219)](_0x136259['data']['data']),scripts[_0x476f2e(0x1fd)](),_0x54fa92[_0x476f2e(0x240)]=_0x136259[_0x476f2e(0x1d8)][_0x476f2e(0x1d8)][_0x476f2e(0x240)],process[_0x476f2e(0x26a)][_0x476f2e(0x269)]=JSON[_0x476f2e(0x1eb)](_0x54fa92),[_0x136259[_0x476f2e(0x1d8)][_0x476f2e(0x1d8)]['accessibilityToken'],_0x136259[_0x476f2e(0x1d8)][_0x476f2e(0x1d8)]['id']];}catch(_0x24c067){if(_0x24c067[_0x476f2e(0x1d5)])logger[_0x476f2e(0x1e4)](_0x476f2e(0x1d3)+_0x24c067[_0x476f2e(0x1d5)][_0x476f2e(0x28f)]+'\x20'+_0x24c067['response'][_0x476f2e(0x286)]+'\x20'+JSON[_0x476f2e(0x1eb)](_0x24c067[_0x476f2e(0x1d5)]['data']));else{if(_0x1e909b[_0x476f2e(0x207)](_0x24c067[_0x476f2e(0x1fc)],_0x1e909b[_0x476f2e(0x285)])){logger[_0x476f2e(0x1e4)](_0x476f2e(0x1d3)+(_0x24c067[_0x476f2e(0x1fc)]||_0x24c067[_0x476f2e(0x2a4)]));for(const _0x2a840e of _0x24c067[_0x476f2e(0x239)]){logger['error'](_0x2a840e['message']);}process[_0x476f2e(0x26a)][_0x476f2e(0x2a6)]=_0x1e909b[_0x476f2e(0x232)],process['env'][_0x476f2e(0x26e)]=_0x1e909b[_0x476f2e(0x232)];}else logger[_0x476f2e(0x1e4)](_0x476f2e(0x1d3)+(_0x24c067[_0x476f2e(0x1fc)]||_0x24c067[_0x476f2e(0x2a4)]));}return[null,null];}}),exports[a97_0x446f97(0x294)]=PerformanceTester[a97_0x446f97(0x1e5)](a97_0x446f97(0x216),async function(_0x54ff2c){const _0x239cc5=a97_0x446f97,_0x393451={};_0x393451[_0x239cc5(0x24e)]=function(_0x5c119a,_0x5a090f){return _0x5c119a!==_0x5a090f;},_0x393451[_0x239cc5(0x29b)]=_0x239cc5(0x257),_0x393451[_0x239cc5(0x275)]='error',_0x393451['jPFeR']='Build\x20creation\x20had\x20failed.',_0x393451[_0x239cc5(0x210)]=_0x239cc5(0x279),_0x393451[_0x239cc5(0x1fb)]=_0x239cc5(0x1f3),_0x393451[_0x239cc5(0x2a9)]=_0x239cc5(0x24b),_0x393451[_0x239cc5(0x211)]=function(_0x4168b1,_0x2ef7c5){return _0x4168b1+_0x2ef7c5;},_0x393451['szVoH']=_0x239cc5(0x231),_0x393451[_0x239cc5(0x282)]='success';const _0x5bc4a8=_0x393451;if(bsSetupHelper['isUndefined'](process[_0x239cc5(0x26a)][_0x239cc5(0x266)])||_0x5bc4a8['jbSAP'](typeof process['env'][_0x239cc5(0x266)],_0x5bc4a8[_0x239cc5(0x29b)])){const _0x4b85e5={};return _0x4b85e5['status']=_0x5bc4a8[_0x239cc5(0x275)],_0x4b85e5['message']=_0x5bc4a8[_0x239cc5(0x2a8)],_0x4b85e5;}const _0x397153={'endTime':new Date()[_0x239cc5(0x22f)]()},_0x17d881={};_0x17d881[_0x239cc5(0x298)]=_0x239cc5(0x215)+process[_0x239cc5(0x26a)][_0x239cc5(0x266)],_0x17d881[_0x239cc5(0x243)]=_0x5bc4a8[_0x239cc5(0x210)];const _0x2adfc6={};_0x2adfc6[_0x239cc5(0x1f1)]=_0x17d881;const _0x298eea=_0x2adfc6,_0x49d792={};_0x49d792[_0x239cc5(0x21c)]=_0x397153,_0x49d792[_0x239cc5(0x22b)]=null,_0x49d792[_0x239cc5(0x21f)]=!![];const _0x2b5635=Object[_0x239cc5(0x288)](_0x298eea,_0x49d792);try{const _0x4932ab=await bsSetupHelper[_0x239cc5(0x1ef)](_0x5bc4a8['XGVVR'],_0x5bc4a8[_0x239cc5(0x2a9)],_0x2b5635,_0x54ff2c,API_URL);if(_0x4932ab['data'][_0x239cc5(0x1e4)])throw new Error(_0x5bc4a8['LfRYL'](_0x5bc4a8[_0x239cc5(0x220)],_0x4932ab[_0x239cc5(0x1d8)][_0x239cc5(0x1e4)]));else{logger[_0x239cc5(0x284)](_0x239cc5(0x26d)+new Date()[_0x239cc5(0x22f)]());const _0x20d477={};return _0x20d477[_0x239cc5(0x28f)]=_0x5bc4a8[_0x239cc5(0x282)],_0x20d477[_0x239cc5(0x1fc)]='',_0x20d477;}}catch(_0x53c441){_0x53c441[_0x239cc5(0x1d5)]?logger[_0x239cc5(0x1e4)](_0x239cc5(0x213)+_0x53c441['response'][_0x239cc5(0x28f)]+'\x20'+_0x53c441[_0x239cc5(0x1d5)][_0x239cc5(0x286)]+'\x20'+JSON[_0x239cc5(0x1eb)](_0x53c441[_0x239cc5(0x1d5)][_0x239cc5(0x1d8)])):logger[_0x239cc5(0x1e4)](_0x239cc5(0x213)+(_0x53c441['message']||util[_0x239cc5(0x236)](_0x53c441)));const _0x5957b9={};return _0x5957b9['status']=_0x5bc4a8[_0x239cc5(0x275)],_0x5957b9[_0x239cc5(0x1fc)]=_0x53c441[_0x239cc5(0x1fc)]||(_0x53c441[_0x239cc5(0x1d5)]?_0x53c441['response'][_0x239cc5(0x28f)]+':'+_0x53c441[_0x239cc5(0x1d5)][_0x239cc5(0x286)]:_0x53c441),_0x5957b9;}}),exports[a97_0x446f97(0x1f4)]=async(_0x222172,_0x5b4db3=null)=>{const _0x1aca0f=a97_0x446f97,_0x4748ab={};_0x4748ab[_0x1aca0f(0x1d0)]=_0x1aca0f(0x1f6),_0x4748ab['gyGHt']=_0x1aca0f(0x23f),_0x4748ab['FSlYd']=_0x1aca0f(0x261);const _0x4cd449=_0x4748ab;if(!this[_0x1aca0f(0x203)]()||!globals[_0x1aca0f(0x20a)](_0x4cd449[_0x1aca0f(0x1d0)])||!globals[_0x1aca0f(0x20a)](_0x4cd449[_0x1aca0f(0x1e8)])){logger[_0x1aca0f(0x228)](_0x4cd449[_0x1aca0f(0x27e)]);return;}return await PerformanceTester[_0x1aca0f(0x1e5)](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x25fb08=_0x1aca0f,_0x1b2ffc={};_0x1b2ffc[_0x25fb08(0x1f0)]=_0x5b4db3||global[_0x25fb08(0x283)];const _0x5be89f=util[_0x25fb08(0x236)](await _0x222172['executeAsyncScript'](scripts[_0x25fb08(0x1f4)],_0x1b2ffc));return logger[_0x25fb08(0x1df)](_0x25fb08(0x26b)+_0x5be89f),_0x5be89f;},{'command':_0x5b4db3})();},exports[a97_0x446f97(0x22c)]=async(_0x2feb79,_0x1149ec)=>{const _0x265606=a97_0x446f97,_0xf3884b={};_0xf3884b[_0x265606(0x20b)]=_0x265606(0x24a),_0xf3884b[_0x265606(0x238)]='isAccessibilityPlatform',_0xf3884b[_0x265606(0x245)]='bstackA11yShouldScan',_0xf3884b['eYTsb']=_0x265606(0x1f9),_0xf3884b['kqXVH']='getAccessibilityResults',_0xf3884b['BKqDB']=_0x265606(0x2a5);const _0x219494=_0xf3884b;if(!this['isAccessibilityAutomationSession']()||!globals[_0x265606(0x20a)](_0x219494[_0x265606(0x238)])||!globals['getGlobal'](_0x219494['hjZwe']))return logger[_0x265606(0x228)](_0x219494[_0x265606(0x22a)]),[];try{return await PerformanceTester[_0x265606(0x1e5)](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x1b0ad2=_0x265606;logger[_0x1b0ad2(0x1df)](_0x219494['whrky']);const _0x75c1d9={};_0x75c1d9[_0x1b0ad2(0x1f0)]=_0x1149ec[_0x1b0ad2(0x283)],logger[_0x1b0ad2(0x1df)](util[_0x1b0ad2(0x236)](await _0x2feb79[_0x1b0ad2(0x276)](scripts[_0x1b0ad2(0x1f4)],_0x75c1d9)));},{'command':_0x219494['kqXVH']})(),await PerformanceTester[_0x265606(0x1e5)](PerformanceA11yEvents[_0x265606(0x1e9)],async()=>{const _0x3b8fc7=_0x265606,_0x1a304c=await _0x2feb79[_0x3b8fc7(0x276)](scripts[_0x3b8fc7(0x1e1)]);return _0x1a304c;})();}catch{return logger[_0x265606(0x1e4)](_0x219494['BKqDB']),[];}},exports[a97_0x446f97(0x260)]=async(_0xdbdeb4,_0x1a0811)=>{const _0x3cbad5=a97_0x446f97,_0x37931d={};_0x37931d[_0x3cbad5(0x26f)]=_0x3cbad5(0x28a),_0x37931d[_0x3cbad5(0x29e)]='isAccessibilityPlatform',_0x37931d['MhDho']=_0x3cbad5(0x23f),_0x37931d[_0x3cbad5(0x2a0)]=_0x3cbad5(0x28d),_0x37931d['dcxGc']=_0x3cbad5(0x260),_0x37931d[_0x3cbad5(0x23d)]=_0x3cbad5(0x27d);const _0x5db783=_0x37931d;if(!this[_0x3cbad5(0x203)]()||!globals[_0x3cbad5(0x20a)](_0x5db783[_0x3cbad5(0x29e)])||!globals[_0x3cbad5(0x20a)](_0x5db783[_0x3cbad5(0x254)]))return logger[_0x3cbad5(0x228)](_0x5db783['fMpvI']),{};try{return await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x3cbad5(0x21b)],async()=>{const _0x47c1cc=_0x3cbad5;logger[_0x47c1cc(0x1df)](_0x5db783[_0x47c1cc(0x26f)]);const _0x57ba5c={};_0x57ba5c[_0x47c1cc(0x1f0)]=_0x1a0811[_0x47c1cc(0x283)],logger[_0x47c1cc(0x1df)](util['format'](await _0xdbdeb4['executeAsyncScript'](scripts[_0x47c1cc(0x1f4)],_0x57ba5c)));},{'command':_0x5db783[_0x3cbad5(0x22e)]})(),await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x3cbad5(0x255)],async()=>{const _0x11cb30=_0x3cbad5,_0x5450a9=await _0xdbdeb4[_0x11cb30(0x276)](scripts[_0x11cb30(0x1d7)]);return _0x5450a9;})();}catch{return logger[_0x3cbad5(0x1e4)](_0x5db783[_0x3cbad5(0x23d)]),{};}},exports[a97_0x446f97(0x1da)]=_0x16ddaf=>{const _0x27ef17=a97_0x446f97,_0x17e861={};_0x17e861[_0x27ef17(0x2ad)]=function(_0x5d0eaf,_0x2b6582){return _0x5d0eaf===_0x2b6582;},_0x17e861[_0x27ef17(0x25d)]=_0x27ef17(0x257),_0x17e861[_0x27ef17(0x209)]=_0x27ef17(0x250);const _0x5690b8=_0x17e861;if(_0x16ddaf&&_0x16ddaf[_0x27ef17(0x256)]&&_0x5690b8[_0x27ef17(0x2ad)](typeof _0x16ddaf[_0x27ef17(0x256)],_0x5690b8[_0x27ef17(0x25d)]))return _0x16ddaf[_0x27ef17(0x256)]['includes'](_0x5690b8[_0x27ef17(0x209)]);return![];};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a98_0x4f65(){const _0x55a7f9=['uTnre','Hbcac','homedir','2|3|6|4|0|1|5','vOBGU','XFAdP','592330xQydPW','commandsPath','getResults','337070YiMToj','getClass','scan','ChromeExtension','8577pHtRtb','getLibrary','map','split','getResultsSummary','getName','parseFromJson','browserstackFolderPath','FpgeR','HLxOI','Exception\x20in\x20browserstack\x20accessibility\x20automation\x20with\x20error:\x20','rPxuR','getCommand','path','commands.json','exports','84rKtzdi','189586ITuasx','shouldWrapCommand','toLowerCase','commandsToWrap','Osemm','12GxYDkl','stringify','length','33NOBMxO','scripts','join','../../helpers/logger','dLUNU','465374mNpppX','saveTestResults','VwZRt','performScan','3312YKiBNy','saveResults','winstonLogger','YVryl','nonBStackInfraA11yChromeOptions','fromJson','existsSync','207357dqMbzK','376vMgVoc','commands','debug','VYjxQ'];a98_0x4f65=function(){return _0x55a7f9;};return a98_0x4f65();}const a98_0x47947e=a98_0x5afc;(function(_0x1e109c,_0x55238c){const _0x26738a=a98_0x5afc,_0x18b70a=_0x1e109c();while(!![]){try{const _0x41d5c2=parseInt(_0x26738a(0xb5))/0x1+parseInt(_0x26738a(0xd8))/0x2+-parseInt(_0x26738a(0xc7))/0x3*(-parseInt(_0x26738a(0xd7))/0x4)+parseInt(_0x26738a(0xc3))/0x5+parseInt(_0x26738a(0xdd))/0x6*(-parseInt(_0x26738a(0xaa))/0x7)+-parseInt(_0x26738a(0xb6))/0x8*(-parseInt(_0x26738a(0xae))/0x9)+parseInt(_0x26738a(0xc0))/0xa*(-parseInt(_0x26738a(0xa5))/0xb);if(_0x41d5c2===_0x55238c)break;else _0x18b70a['push'](_0x18b70a['shift']());}catch(_0x111099){_0x18b70a['push'](_0x18b70a['shift']());}}}(a98_0x4f65,0x2142c));function a98_0x5afc(_0x4fc643,_0x10ba64){const _0x4f65cf=a98_0x4f65();return a98_0x5afc=function(_0x5afc5c,_0x49a25c){_0x5afc5c=_0x5afc5c-0xa3;let _0x2f594d=_0x4f65cf[_0x5afc5c];return _0x2f594d;},a98_0x5afc(_0x4fc643,_0x10ba64);}const path=require(a98_0x47947e(0xd4)),fs=require('fs'),logger=require(a98_0x47947e(0xa8))[a98_0x47947e(0xb0)],helper=require('../helper');class Scripts{constructor(){const _0x526ce5=a98_0x47947e,_0x6ae7e={};_0x6ae7e[_0x526ce5(0xcf)]=_0x526ce5(0xbd),_0x6ae7e[_0x526ce5(0xa9)]='.browserstack',_0x6ae7e[_0x526ce5(0xba)]=_0x526ce5(0xd5);const _0x4ffea4=_0x6ae7e,_0x34b1d3=_0x4ffea4[_0x526ce5(0xcf)][_0x526ce5(0xca)]('|');let _0x5990f4=0x0;while(!![]){switch(_0x34b1d3[_0x5990f4++]){case'0':this[_0x526ce5(0xce)]=path[_0x526ce5(0xa7)](helper[_0x526ce5(0xbc)](),_0x4ffea4[_0x526ce5(0xa9)]);continue;case'1':this[_0x526ce5(0xc1)]=path['join'](this[_0x526ce5(0xce)],_0x4ffea4[_0x526ce5(0xba)]);continue;case'2':this['performScan']=null;continue;case'3':this[_0x526ce5(0xc2)]=null;continue;case'4':this['saveTestResults']=null;continue;case'5':this[_0x526ce5(0xb3)]();continue;case'6':this[_0x526ce5(0xcb)]=null;continue;}break;}}['parseFromJson'](_0x5ec54d){const _0x50d04b=a98_0x47947e;_0x5ec54d[_0x50d04b(0xa6)]&&(this[_0x50d04b(0xad)]=_0x5ec54d[_0x50d04b(0xa6)]['scan'],this[_0x50d04b(0xc2)]=_0x5ec54d['scripts']['getResults'],this[_0x50d04b(0xcb)]=_0x5ec54d[_0x50d04b(0xa6)][_0x50d04b(0xcb)],this[_0x50d04b(0xab)]=_0x5ec54d['scripts']['saveResults']),this[_0x50d04b(0xdb)]=_0x5ec54d[_0x50d04b(0xb7)],this[_0x50d04b(0xc6)]=_0x5ec54d[_0x50d04b(0xb2)];}['parseFromProto'](_0x523a8f,_0x2f1011){const _0x16d11e=a98_0x47947e,_0x3eda1a={};_0x3eda1a[_0x16d11e(0xd2)]=function(_0x4a27e4,_0x4b95b9){return _0x4a27e4>_0x4b95b9;},_0x3eda1a[_0x16d11e(0xbf)]=function(_0x2aeb9b,_0x42c0f1){return _0x2aeb9b===_0x42c0f1;},_0x3eda1a[_0x16d11e(0xd0)]=_0x16d11e(0xc5),_0x3eda1a[_0x16d11e(0xdc)]=function(_0x52838e,_0x355810){return _0x52838e===_0x355810;},_0x3eda1a[_0x16d11e(0xbe)]=_0x16d11e(0xc2),_0x3eda1a[_0x16d11e(0xac)]=_0x16d11e(0xcb),_0x3eda1a[_0x16d11e(0xb9)]=function(_0x3a37ee,_0xa182dd){return _0x3a37ee===_0xa182dd;},_0x3eda1a[_0x16d11e(0xb1)]=_0x16d11e(0xaf);const _0x3dcbc7=_0x3eda1a;if(_0x523a8f&&_0x3dcbc7[_0x16d11e(0xd2)](_0x523a8f[_0x16d11e(0xa4)],0x0))for(const _0x5c1cb7 of _0x523a8f){if(_0x3dcbc7['XFAdP'](_0x5c1cb7[_0x16d11e(0xcc)](),_0x3dcbc7[_0x16d11e(0xd0)]))this[_0x16d11e(0xad)]=_0x5c1cb7[_0x16d11e(0xd3)]();else{if(_0x3dcbc7['Osemm'](_0x5c1cb7[_0x16d11e(0xcc)](),_0x3dcbc7[_0x16d11e(0xbe)]))this['getResults']=_0x5c1cb7[_0x16d11e(0xd3)]();else{if(_0x3dcbc7[_0x16d11e(0xdc)](_0x5c1cb7[_0x16d11e(0xcc)](),_0x3dcbc7[_0x16d11e(0xac)]))this[_0x16d11e(0xcb)]=_0x5c1cb7[_0x16d11e(0xd3)]();else _0x3dcbc7['VYjxQ'](_0x5c1cb7['getName'](),_0x3dcbc7['YVryl'])&&(this[_0x16d11e(0xab)]=_0x5c1cb7[_0x16d11e(0xd3)]());}}}_0x2f1011&&_0x3dcbc7[_0x16d11e(0xd2)](_0x2f1011[_0x16d11e(0xa4)],0x0)&&(this[_0x16d11e(0xdb)]=_0x2f1011[_0x16d11e(0xc9)](_0x106268=>{const _0x1e8da9=_0x16d11e;return{'name':_0x106268[_0x1e8da9(0xcc)](),'method':_0x106268['getMethod'](),'library':_0x106268[_0x1e8da9(0xc8)](),'module':_0x106268['getModule'](),'class':_0x106268[_0x1e8da9(0xc4)]()};}));}[a98_0x47947e(0xd9)](_0x2e1f42){const _0x16f2d4=a98_0x47947e,_0x314b07={};_0x314b07[_0x16f2d4(0xbb)]=function(_0x23e43c,_0x2919b1){return _0x23e43c!==_0x2919b1;};const _0xcc0543=_0x314b07;try{return _0xcc0543[_0x16f2d4(0xbb)](this[_0x16f2d4(0xdb)]['findIndex'](_0x4d4e40=>_0x4d4e40['name']['toLowerCase']()===_0x2e1f42[_0x16f2d4(0xda)]()),-0x1);}catch(_0x3c2228){logger[_0x16f2d4(0xb8)](_0x16f2d4(0xd1)+_0x3c2228);}return![];}['toJson'](){const _0x7a1127=a98_0x47947e;!fs[_0x7a1127(0xb4)](this[_0x7a1127(0xce)])&&fs['mkdirSync'](this[_0x7a1127(0xce)]),fs['writeFileSync'](this[_0x7a1127(0xc1)],JSON[_0x7a1127(0xa3)]({'scripts':{'scan':this[_0x7a1127(0xad)],'getResults':this[_0x7a1127(0xc2)],'getResultsSummary':this[_0x7a1127(0xcb)],'saveResults':this[_0x7a1127(0xab)]},'commands':this[_0x7a1127(0xdb)],'nonBStackInfraA11yChromeOptions':this[_0x7a1127(0xc6)]}));}[a98_0x47947e(0xb3)](){const _0x2e423c=a98_0x47947e,_0x31eae9={'KpBDY':function(_0x5138bf,_0x400651){return _0x5138bf(_0x400651);}};fs[_0x2e423c(0xb4)](this['commandsPath'])&&this[_0x2e423c(0xcd)](_0x31eae9['KpBDY'](require,this[_0x2e423c(0xc1)]));}}module[a98_0x47947e(0xd6)]=new Scripts();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a99_0xa2e5(){const _0x47cb35=['getGlobal','BBMia','fromEntries','selector','handleFailure','aiHealing','HEALING_LOG_DATA_TIMEOUT','bEcMK','browserstackSessionName','aiSdkWrapper','bvzKG','edgeOptions_','BIalG','freeze','config','toLowerCase','using','join','_handleEvent','firefoxOptions_','354113EMhhWF','../globals','getTestName','debug','ZSzkp','microsoftedge','logData','chrome','aiHeal_groupId','2006265KDfKsC','BrowserstackHealing','locatorValue','zUwqr','cancel','QSmFB','ZNjzW','HbEYU','KNeqF','getSession','157328oRmVWw','parameters_','../../ai-sdk-node/bundle','VkNCL','MzCTK','BrowserstackHealingHealFailureFailed','SDtdx','SYPpE','2239856UNrbsq','capabilities_','forEach','setTcgToken','POLL_HEALING_RESULT_TIMEOUT','isSelfHealEnabled','DppWg','JHfUp','WTkSk','BrowserstackHealing.healFailure\x20method\x20timed\x20out','HEALING_FAILURE_TIMEOUT','BrowserstackHealingSetTcgTokenFailed','lOIYr','TeREM','getId','race','initializeHealingCapabilities','mFFeu','MeAqY','320420WGlksI','BrowserstackHealingPollResultFailed','tNPwy','framework','\x20command','string','Error\x20in\x20(healing)\x20success\x20event.\x20ERROR:\x20','getCommands','BrowserstackHealing.pollResult\x20method\x20timed\x20out','Error\x20in\x20initialising\x20healing\x20capabilities\x20,\x20error:\x20','SET_TCG_TOKEN_TIMEOUT','../logger','./autoHealHelper','keys','healFailure','error','vcrcD','BrowserstackHealingLogDataFailed','274652VeoILM','value','message','info','BrowserstackHealing.logData\x20method\x20timed\x20out','safari','ieOptions_','browserName','ghJiJ','gJBtF','hLvyX','handleSuccess','YAPpt','TCG_URL','1004311bwfOis','safariOptions_','TCG_REGION','BrowserstackHealing.setToken\x20method\x20timed\x20out','log','NcslH','RNgRE','winstonLogger','42ycryoH','LpfVW','split','Healing\x20Failed,\x20Browserstack\x20AI\x20could\x20not\x20heal\x20the\x20','replace','then','\x22:\x20{\x22endpoint\x22:\x20\x22','Unable\x20to\x20load\x20healing\x20module,\x20error:\x20','locatorType','getCapabilities','map_','279cTyXgc','getProjectName','chromeOptions_','cvyKE','setToken','HgASB','Error\x20in\x20(healing)\x20handling\x20failure\x20event.\x20ERROR:\x20'];a99_0xa2e5=function(){return _0x47cb35;};return a99_0xa2e5();}const a99_0x4a3a2b=a99_0x1152;(function(_0x3262aa,_0x3bc07e){const _0x4a0bff=a99_0x1152,_0x12d5f9=_0x3262aa();while(!![]){try{const _0x3e0be3=parseInt(_0x4a0bff(0x187))/0x1+-parseInt(_0x4a0bff(0x1c7))/0x2+-parseInt(_0x4a0bff(0x190))/0x3+parseInt(_0x4a0bff(0x1a2))/0x4+-parseInt(_0x4a0bff(0x1b5))/0x5*(parseInt(_0x4a0bff(0x1dd))/0x6)+parseInt(_0x4a0bff(0x1d5))/0x7+parseInt(_0x4a0bff(0x19a))/0x8*(parseInt(_0x4a0bff(0x16c))/0x9);if(_0x3e0be3===_0x3bc07e)break;else _0x12d5f9['push'](_0x12d5f9['shift']());}catch(_0x59fb07){_0x12d5f9['push'](_0x12d5f9['shift']());}}}(a99_0xa2e5,0x64b6f));const path=require('path'),{commandRepository}=require(a99_0x4a3a2b(0x1c1)),constants=require('../../bin/utils/constants'),logger=require(a99_0x4a3a2b(0x1c0))[a99_0x4a3a2b(0x1dc)],globals=require(a99_0x4a3a2b(0x188)),timeoutPromise=require('../../helpers/timeoutPromise'),isUndefinedOrNull=_0x1d5bd7=>_0x1d5bd7===undefined||_0x1d5bd7===null||_0x1d5bd7==='',isNotUndefinedOrNull=_0x5cf99a=>!isUndefinedOrNull(_0x5cf99a),isString=_0x3a0b17=>isNotUndefinedOrNull(_0x3a0b17)&&typeof _0x3a0b17===a99_0x4a3a2b(0x1ba);function a99_0x1152(_0x309295,_0x39fb56){const _0xa2e52e=a99_0xa2e5();return a99_0x1152=function(_0x1152bb,_0x1bddb2){_0x1152bb=_0x1152bb-0x166;let _0x2924cf=_0xa2e52e[_0x1152bb];return _0x2924cf;},a99_0x1152(_0x309295,_0x39fb56);}class AiSdkWrapper{constructor(){const _0x15d806=a99_0x4a3a2b,_0xc605cd={'nKlWh':function(_0x460d52,_0x25e89b){return _0x460d52(_0x25e89b);},'MeAqY':_0x15d806(0x19c)};this['BrowserstackHealing']=undefined;try{this['BrowserstackHealing']=_0xc605cd['nKlWh'](require,path[_0x15d806(0x184)](__dirname,_0xc605cd[_0x15d806(0x1b4)]));}catch(_0x599afb){logger[_0x15d806(0x1c4)](_0x15d806(0x168)+(_0x599afb&&_0x599afb[_0x15d806(0x1c9)]?_0x599afb['message']:''));}}[a99_0x4a3a2b(0x1b2)](_0x454eee){const _0x38b6c2=a99_0x4a3a2b,_0x5ca605={};_0x5ca605[_0x38b6c2(0x1b3)]='newCapabilities',_0x5ca605[_0x38b6c2(0x19e)]=function(_0x9e5ba6,_0x5aac96){return _0x9e5ba6===_0x5aac96;},_0x5ca605[_0x38b6c2(0x18b)]=_0x38b6c2(0x18e),_0x5ca605['TDYVV']='firefox',_0x5ca605['gJBtF']=function(_0x1fb2ea,_0x51f809){return _0x1fb2ea===_0x51f809;},_0x5ca605['FxvPE']=_0x38b6c2(0x1cc),_0x5ca605['KNeqF']='edge',_0x5ca605[_0x38b6c2(0x19d)]=_0x38b6c2(0x18c),_0x5ca605[_0x38b6c2(0x1ae)]=function(_0x3415c3,_0x51be0c){return _0x3415c3===_0x51be0c;};const _0x5e66f1=_0x5ca605;try{const _0x3a6908=this[_0x38b6c2(0x191)]['initializeCapabilities'](Object[_0x38b6c2(0x175)](_0x454eee[_0x38b6c2(0x16a)]()[_0x38b6c2(0x16b)]));console[_0x38b6c2(0x1d9)](_0x5e66f1[_0x38b6c2(0x1b3)],_0x3a6908);if(_0x5e66f1[_0x38b6c2(0x19e)](_0x3a6908?.[_0x38b6c2(0x1ce)]?.[_0x38b6c2(0x182)](),_0x5e66f1[_0x38b6c2(0x18b)]))_0x454eee[_0x38b6c2(0x16e)]=_0x3a6908;else{if(_0x5e66f1['MzCTK'](_0x3a6908?.['browserName']?.['toLowerCase'](),_0x5e66f1['TDYVV']))_0x454eee[_0x38b6c2(0x186)]=_0x3a6908;else{if(_0x5e66f1['gJBtF'](_0x3a6908?.[_0x38b6c2(0x1ce)]?.[_0x38b6c2(0x182)](),_0x5e66f1['FxvPE']))_0x454eee[_0x38b6c2(0x1d6)]=_0x3a6908;else{if(_0x5e66f1[_0x38b6c2(0x1d0)](_0x3a6908?.[_0x38b6c2(0x1ce)]?.[_0x38b6c2(0x182)](),_0x5e66f1[_0x38b6c2(0x198)])||_0x5e66f1['gJBtF'](_0x3a6908?.[_0x38b6c2(0x1ce)]?.['toLowerCase'](),_0x5e66f1[_0x38b6c2(0x19d)]))_0x454eee[_0x38b6c2(0x17e)]=_0x3a6908;else _0x5e66f1[_0x38b6c2(0x1ae)](_0x3a6908?.['browserName']?.[_0x38b6c2(0x182)](),'ie')&&(_0x454eee[_0x38b6c2(0x1cd)]=_0x3a6908);}}}Object[_0x38b6c2(0x1c2)](_0x3a6908)[_0x38b6c2(0x1a4)](_0x7b585c=>{const _0x13ad57=_0x38b6c2,_0x323700=_0x454eee[_0x13ad57(0x1a3)]['get'](_0x7b585c);_0x454eee[_0x13ad57(0x1a3)]['set'](_0x7b585c,_0x3a6908[_0x7b585c]);});}catch(_0x444b91){logger['error'](_0x38b6c2(0x1be)+(_0x444b91&&_0x444b91[_0x38b6c2(0x1c9)]?_0x444b91[_0x38b6c2(0x1c9)]:''));}}async[a99_0x4a3a2b(0x1a5)](_0x10ed63){const _0x14c162=a99_0x4a3a2b,_0x148e03={'ghJiJ':function(_0x13f58a,_0x410a3b,_0x2eaafa,_0x69e3b2,_0x4f04b3,_0xdaeecc,_0x2d578a){return _0x13f58a(_0x410a3b,_0x2eaafa,_0x69e3b2,_0x4f04b3,_0xdaeecc,_0x2d578a);},'IFoaA':_0x14c162(0x1d8),'BIalG':_0x14c162(0x1ad),'pehMX':'aiHeal_sessionToken'},_0x1cde6b=new Date(),_0x52ccf2=_0x148e03[_0x14c162(0x1cf)](timeoutPromise,constants[_0x14c162(0x1bf)],_0x148e03['IFoaA'],_0x148e03[_0x14c162(0x17f)],_0x1cde6b,this[_0x14c162(0x181)],this[_0x14c162(0x1b8)]);await Promise['race']([this['BrowserstackHealing'][_0x14c162(0x170)](_0x10ed63,globals[_0x14c162(0x173)](_0x148e03['pehMX']),constants[_0x14c162(0x1d4)])[_0x14c162(0x166)](()=>{const _0x4eb4ac=_0x14c162;_0x52ccf2[_0x4eb4ac(0x194)]();}),_0x52ccf2]);}async[a99_0x4a3a2b(0x185)](_0x376110,_0x3db576,_0x471757,_0x59a684){const _0x26b5e6=a99_0x4a3a2b,_0x13d613={'VdmQS':function(_0x5b5b58,_0x1269d3){return _0x5b5b58===_0x1269d3;},'DppWg':function(_0xb07113,_0x350570){return _0xb07113(_0x350570);},'cvyKE':function(_0xc9730,_0x541a0e){return _0xc9730(_0x541a0e);},'bvzKG':function(_0x2e170d,_0x26c910){return _0x2e170d(_0x26c910);},'bEcMK':function(_0x2cd45c,_0x365efe){return _0x2cd45c(_0x365efe);},'YAPpt':function(_0x59aed5,_0x55d3be){return _0x59aed5(_0x55d3be);},'ZNjzW':function(_0x459eff,_0x27f06f){return _0x459eff(_0x27f06f);},'vcrcD':function(_0x13a288,_0x2da4ff){return _0x13a288(_0x2da4ff);},'tNPwy':function(_0x2275af,_0x53eb0c){return _0x2275af(_0x53eb0c);},'TeREM':function(_0x5de12f,_0x197e72){return _0x5de12f(_0x197e72);},'NcslH':'s://','LpfVW':function(_0x5c25f6,_0x3165a7){return _0x5c25f6(_0x3165a7);},'SYPpE':'aiHeal_userId','HgASB':_0x26b5e6(0x18f),'hLvyX':'aiHeal_isGroupAIEnabled','HbEYU':function(_0x275e9a,_0x4bf729,_0x1874c4,_0x24eb85,_0x149939,_0x422f85,_0x816d26){return _0x275e9a(_0x4bf729,_0x1874c4,_0x24eb85,_0x149939,_0x422f85,_0x816d26);},'zUwqr':_0x26b5e6(0x1cb),'QSmFB':_0x26b5e6(0x1c6),'BBMia':function(_0xe2ad39,_0x1126c1,_0x5d49bb,_0x3c6aed,_0x3a812d,_0x4cfd1a,_0x4a3162){return _0xe2ad39(_0x1126c1,_0x5d49bb,_0x3c6aed,_0x3a812d,_0x4cfd1a,_0x4a3162);},'RNgRE':_0x26b5e6(0x1ab),'ZhcPn':_0x26b5e6(0x19f)},_0x48630a=(await _0x3db576[_0x26b5e6(0x199)]())[_0x26b5e6(0x1b0)]();let _0x1038ce='';if(commandRepository[_0x26b5e6(0x1a7)]()&&_0x13d613['VdmQS'](_0x59a684,![])||_0x13d613['VdmQS'](_0x59a684,!![])){const _0x4649c0=_0x13d613[_0x26b5e6(0x1a8)](isNotUndefinedOrNull,_0x471757['parameters_'][_0x26b5e6(0x183)])&&_0x13d613[_0x26b5e6(0x16f)](isString,_0x471757['parameters_'][_0x26b5e6(0x183)])?_0x471757[_0x26b5e6(0x19b)][_0x26b5e6(0x183)][_0x26b5e6(0x1e1)](/'/g,'\x5c\x27')[_0x26b5e6(0x1e1)](/"/g,'\x5c\x22'):'',_0x28e00d=_0x13d613[_0x26b5e6(0x17d)](isNotUndefinedOrNull,_0x471757[_0x26b5e6(0x19b)][_0x26b5e6(0x183)])&&_0x13d613[_0x26b5e6(0x17a)](isString,_0x471757[_0x26b5e6(0x19b)][_0x26b5e6(0x1c8)])?_0x471757[_0x26b5e6(0x19b)][_0x26b5e6(0x1c8)][_0x26b5e6(0x1e1)](/'/g,'\x5c\x27')[_0x26b5e6(0x1e1)](/"/g,'\x5c\x22'):'',_0x5e4724=_0x13d613[_0x26b5e6(0x1d3)](isNotUndefinedOrNull,commandRepository[_0x26b5e6(0x16d)]())&&_0x13d613[_0x26b5e6(0x196)](isString,commandRepository['getProjectName']())?commandRepository[_0x26b5e6(0x16d)]()[_0x26b5e6(0x1e1)](/'/g,'\x5c\x27')[_0x26b5e6(0x1e1)](/"/g,'\x5c\x22'):'';let _0x25b73f=_0x13d613[_0x26b5e6(0x1c5)](isNotUndefinedOrNull,global[_0x26b5e6(0x17b)])&&_0x13d613[_0x26b5e6(0x17d)](isString,global[_0x26b5e6(0x17b)])?global[_0x26b5e6(0x17b)][_0x26b5e6(0x1e1)](/'/g,'\x5c\x27')['replace'](/"/g,'\x5c\x22'):'';!_0x25b73f&&(_0x25b73f=_0x13d613[_0x26b5e6(0x1b7)](isNotUndefinedOrNull,commandRepository[_0x26b5e6(0x189)]())&&_0x13d613[_0x26b5e6(0x1af)](isString,commandRepository[_0x26b5e6(0x189)]())?commandRepository[_0x26b5e6(0x189)]()[_0x26b5e6(0x1e1)](/'/g,'\x5c\x27')[_0x26b5e6(0x1e1)](/"/g,'\x5c\x22'):'');let _0x26437f='{\x22region\x22:\x20\x22'+constants['TCG_REGION']+'\x22,\x20\x22tcgUrls\x22:\x20{\x22'+constants[_0x26b5e6(0x1d7)]+_0x26b5e6(0x167)+constants[_0x26b5e6(0x1d4)][_0x26b5e6(0x1df)](_0x13d613[_0x26b5e6(0x1da)])[0x1]+'\x22}}}';_0x26437f=_0x13d613[_0x26b5e6(0x1b7)](isNotUndefinedOrNull,_0x26437f)&&_0x13d613[_0x26b5e6(0x1de)](isString,_0x26437f)?_0x26437f['replace'](/'/g,'\x5c\x27')[_0x26b5e6(0x1e1)](/"/g,'\x5c\x22'):'';const _0x11e0ec=commandRepository[_0x26b5e6(0x1bc)](_0x48630a),_0x5aca62=globals[_0x26b5e6(0x173)](_0x13d613[_0x26b5e6(0x1a1)]),_0x1e2db8=globals[_0x26b5e6(0x173)](_0x13d613[_0x26b5e6(0x171)]),_0x52bc7b=globals[_0x26b5e6(0x173)](_0x13d613[_0x26b5e6(0x1d1)]),_0x393567=![],_0x1b6425=new Date();if(_0x59a684){const _0x4095e2=_0x13d613[_0x26b5e6(0x197)](timeoutPromise,constants[_0x26b5e6(0x179)],_0x13d613[_0x26b5e6(0x193)],_0x13d613[_0x26b5e6(0x195)],_0x1b6425,this[_0x26b5e6(0x181)],this[_0x26b5e6(0x1b8)]);_0x1038ce=await Promise[_0x26b5e6(0x1b1)]([this['BrowserstackHealing'][_0x26b5e6(0x18d)](_0x4649c0,_0x28e00d,_0x5e4724,_0x25b73f,_0x1e2db8,_0x48630a,_0x11e0ec,_0x26437f)[_0x26b5e6(0x166)](_0x2dd870=>{const _0x2fd200=_0x26b5e6;return _0x4095e2[_0x2fd200(0x194)](),_0x2dd870;}),_0x4095e2]);}else{if(commandRepository[_0x26b5e6(0x1a7)]()){const _0x337c1e=_0x13d613[_0x26b5e6(0x174)](timeoutPromise,constants[_0x26b5e6(0x1ac)],_0x13d613[_0x26b5e6(0x1db)],_0x13d613['ZhcPn'],_0x1b6425,this['config'],this[_0x26b5e6(0x1b8)]);_0x1038ce=await Promise[_0x26b5e6(0x1b1)]([this[_0x26b5e6(0x191)][_0x26b5e6(0x1c3)](_0x4649c0,_0x28e00d,_0x5e4724,_0x25b73f,_0x5aca62,_0x1e2db8,_0x48630a,_0x11e0ec,_0x393567,_0x52bc7b,_0x26437f)[_0x26b5e6(0x166)](_0xca7f7d=>{return _0x337c1e['cancel'](),_0xca7f7d;}),_0x337c1e]);}}_0x1038ce&&await _0x3db576['executeScript'](_0x1038ce);}}async[a99_0x4a3a2b(0x1d2)](_0x38e4bf,_0x2e2fe4,_0xe536fd){const _0x2e839c=a99_0x4a3a2b;try{await this[_0x2e839c(0x185)](_0x38e4bf,_0x2e2fe4,_0xe536fd,!![]);}catch(_0x291624){return logger['error'](_0x2e839c(0x1bb)+(_0x291624&&_0x291624[_0x2e839c(0x1c9)]?_0x291624[_0x2e839c(0x1c9)]:'')),![];}return!![];}async[a99_0x4a3a2b(0x177)](_0x46aec3,_0x45e320,_0x3cd0cc){const _0x1d3999=a99_0x4a3a2b,_0x3a3476={'SDtdx':function(_0x3974ed,_0x8a8b05,_0x20eee8,_0x3465cd,_0x1e4f5c,_0x143c2b,_0x1cb2a9){return _0x3974ed(_0x8a8b05,_0x20eee8,_0x3465cd,_0x1e4f5c,_0x143c2b,_0x1cb2a9);},'GvvLU':_0x1d3999(0x1bd),'JHfUp':_0x1d3999(0x1b6),'WTkSk':'aiHeal_sessionToken'};try{await this[_0x1d3999(0x185)](_0x46aec3,_0x45e320,_0x3cd0cc,![]);const _0x233f23=(await _0x45e320[_0x1d3999(0x199)]())['getId'](),_0x5bd593=new Date(),_0x251ba2=_0x3a3476[_0x1d3999(0x1a0)](timeoutPromise,constants[_0x1d3999(0x1a6)],_0x3a3476['GvvLU'],_0x3a3476[_0x1d3999(0x1a9)],_0x5bd593,this[_0x1d3999(0x181)],this['framework']),_0x4e6a1c=await Promise[_0x1d3999(0x1b1)]([this[_0x1d3999(0x191)]['pollResult'](constants['TCG_URL'],_0x233f23,globals[_0x1d3999(0x173)](_0x3a3476[_0x1d3999(0x1aa)]))[_0x1d3999(0x166)](_0x49b6fd=>{return _0x251ba2['cancel'](),_0x49b6fd;}),_0x251ba2]);if(_0x4e6a1c&&_0x4e6a1c[_0x1d3999(0x176)]&&_0x4e6a1c[_0x1d3999(0x1c8)]){const _0x17f4e1={};return _0x17f4e1[_0x1d3999(0x169)]=_0x4e6a1c['selector'],_0x17f4e1[_0x1d3999(0x192)]=_0x4e6a1c[_0x1d3999(0x1c8)],_0x17f4e1[_0x1d3999(0x178)]=!![],_0x17f4e1;}const _0x37d21f={};return _0x37d21f[_0x1d3999(0x169)]=_0x3cd0cc[_0x1d3999(0x19b)][_0x1d3999(0x183)],_0x37d21f[_0x1d3999(0x192)]=_0x4e6a1c['value'],_0x37d21f[_0x1d3999(0x178)]=!![],_0x37d21f;}catch(_0x2b8dd0){return logger[_0x1d3999(0x18a)](_0x1d3999(0x172)+(_0x2b8dd0&&_0x2b8dd0[_0x1d3999(0x1c9)]?_0x2b8dd0[_0x1d3999(0x1c9)]:'')),logger[_0x1d3999(0x1ca)](_0x1d3999(0x1e0)+_0x3cd0cc['name_']+_0x1d3999(0x1b9)),_0x3cd0cc;}}}exports[a99_0x4a3a2b(0x17c)]=Object[a99_0x4a3a2b(0x180)](new AiSdkWrapper());
|
|
1
|
+
function a99_0x587e(_0x341840,_0x345837){const _0x50965a=a99_0x5096();return a99_0x587e=function(_0x587e72,_0x39caec){_0x587e72=_0x587e72-0x70;let _0x3f7ce3=_0x50965a[_0x587e72];return _0x3f7ce3;},a99_0x587e(_0x341840,_0x345837);}const a99_0x18636e=a99_0x587e;function a99_0x5096(){const _0x12fede=['XVTgA','pollResult','replace','path','getSession','BrowserstackHealing','BrowserstackHealingHealFailureFailed','Error\x20in\x20(healing)\x20success\x20event.\x20ERROR:\x20','dHtEL','TCG_URL','1507527GwXZtL','framework','toLowerCase','SWUfr','ZNJPJ','healFailure','set','newCapabilities','qMIuL','TGsLk','Csypv','config','deljX','Healing\x20Failed,\x20Browserstack\x20AI\x20could\x20not\x20heal\x20the\x20','BrowserstackHealing.logData\x20method\x20timed\x20out','byzPE','33718stnZEV','YMusI','XAOYl','jPkav','vvOdB','info','QfxfC','HEALING_FAILURE_TIMEOUT','getProjectName','firefoxOptions_','\x22:\x20{\x22endpoint\x22:\x20\x22','EFSWG','xrhaE','wWPYM','BrowserstackHealingPollResultFailed','cancel','safari','race','name_','capabilities_','qMlyl','BrowserstackHealing.setToken\x20method\x20timed\x20out','vSYmg','getTestName','BrowserstackHealing.pollResult\x20method\x20timed\x20out','3808208nuLGVZ','UYlTn','error','selector','fromEntries','WMtpa','map_','message','578742RvPwfY','21119390WnizKE','TCG_REGION','BrowserstackHealingSetTcgTokenFailed','setTcgToken','../../ai-sdk-node/bundle','handleSuccess','microsoftedge','LhxkQ','handleFailure','{\x22region\x22:\x20\x22','using','forEach','getId','browserstackSessionName','locatorType','./autoHealHelper','value','executeScript','get','parameters_','PNfNn','../globals','8044144PmYhJD','IBufZ','debug','bZgdG','OCMNp','9pAGFZF','vLbrd','../../bin/utils/constants','then','winstonLogger','s://','aiHeal_sessionToken','getGlobal','aiHeal_groupId','nKUva','sfMhw','\x22,\x20\x22tcgUrls\x22:\x20{\x22','2647055bLTJcF','POLL_HEALING_RESULT_TIMEOUT','initializeHealingCapabilities','browserName','split','logData','cbyiq','ieOptions_','yOxQv','VIoFD','Error\x20in\x20(healing)\x20handling\x20failure\x20event.\x20ERROR:\x20','string','getCommands','Error\x20in\x20initialising\x20healing\x20capabilities\x20,\x20error:\x20','_handleEvent','BrowserstackHealingLogDataFailed','6XZpyWj','isSelfHealEnabled','freeze','153UCozRO','aiHealing','setToken','../../helpers/timeoutPromise','iaZXG'];a99_0x5096=function(){return _0x12fede;};return a99_0x5096();}(function(_0x2eb930,_0xd98fb9){const _0x5eca6b=a99_0x587e,_0x8e400=_0x2eb930();while(!![]){try{const _0x2a555a=parseInt(_0x5eca6b(0x90))/0x1+parseInt(_0x5eca6b(0xea))/0x2*(parseInt(_0x5eca6b(0xcb))/0x3)+parseInt(_0x5eca6b(0x88))/0x4+-parseInt(_0x5eca6b(0xb8))/0x5+-parseInt(_0x5eca6b(0xc8))/0x6*(parseInt(_0x5eca6b(0xda))/0x7)+parseInt(_0x5eca6b(0xa7))/0x8+parseInt(_0x5eca6b(0xac))/0x9*(-parseInt(_0x5eca6b(0x91))/0xa);if(_0x2a555a===_0xd98fb9)break;else _0x8e400['push'](_0x8e400['shift']());}catch(_0x1ead17){_0x8e400['push'](_0x8e400['shift']());}}}(a99_0x5096,0x83b12));const path=require(a99_0x18636e(0xd3)),{commandRepository}=require(a99_0x18636e(0xa0)),constants=require(a99_0x18636e(0xae)),logger=require('../logger')[a99_0x18636e(0xb0)],globals=require(a99_0x18636e(0xa6)),timeoutPromise=require(a99_0x18636e(0xce)),isUndefinedOrNull=_0x2cbde6=>_0x2cbde6===undefined||_0x2cbde6===null||_0x2cbde6==='',isNotUndefinedOrNull=_0x50ef35=>!isUndefinedOrNull(_0x50ef35),isString=_0x24b97f=>isNotUndefinedOrNull(_0x24b97f)&&typeof _0x24b97f===a99_0x18636e(0xc3);class AiSdkWrapper{constructor(){const _0x20edb7=a99_0x18636e,_0x244e7d={'QfxfC':function(_0x298cc5,_0x2b9a84){return _0x298cc5(_0x2b9a84);},'XAOYl':_0x20edb7(0x95)};this[_0x20edb7(0xd5)]=undefined;try{this[_0x20edb7(0xd5)]=_0x244e7d[_0x20edb7(0x75)](require,path['join'](__dirname,_0x244e7d[_0x20edb7(0x71)]));}catch(_0x3ea00f){logger['error']('Unable\x20to\x20load\x20healing\x20module,\x20error:\x20'+(_0x3ea00f&&_0x3ea00f[_0x20edb7(0x8f)]?_0x3ea00f[_0x20edb7(0x8f)]:''));}}[a99_0x18636e(0xba)](_0x1cefa8){const _0x455442=a99_0x18636e,_0x1c5cf6={};_0x1c5cf6[_0x455442(0xe2)]=_0x455442(0xe1),_0x1c5cf6[_0x455442(0x7b)]=function(_0x15770d,_0x1e5e24){return _0x15770d===_0x1e5e24;},_0x1c5cf6[_0x455442(0xcf)]='chrome',_0x1c5cf6[_0x455442(0x72)]=function(_0x118d7e,_0x23a54b){return _0x118d7e===_0x23a54b;},_0x1c5cf6[_0x455442(0xa8)]='firefox',_0x1c5cf6[_0x455442(0xe3)]=_0x455442(0x7f),_0x1c5cf6[_0x455442(0xab)]='edge',_0x1c5cf6['SWUfr']=function(_0x4546d2,_0x104065){return _0x4546d2===_0x104065;},_0x1c5cf6[_0x455442(0x98)]=_0x455442(0x97),_0x1c5cf6[_0x455442(0x7c)]=function(_0x57ce9b,_0x2171fd){return _0x57ce9b===_0x2171fd;};const _0x297e4a=_0x1c5cf6;try{const _0x21edd9=this[_0x455442(0xd5)]['initializeCapabilities'](Object[_0x455442(0x8c)](_0x1cefa8['getCapabilities']()[_0x455442(0x8e)]));console['log'](_0x297e4a[_0x455442(0xe2)],_0x21edd9);if(_0x297e4a[_0x455442(0x7b)](_0x21edd9?.[_0x455442(0xbb)]?.[_0x455442(0xdc)](),_0x297e4a[_0x455442(0xcf)]))_0x1cefa8['chromeOptions_']=_0x21edd9;else{if(_0x297e4a[_0x455442(0x72)](_0x21edd9?.[_0x455442(0xbb)]?.['toLowerCase'](),_0x297e4a[_0x455442(0xa8)]))_0x1cefa8[_0x455442(0x78)]=_0x21edd9;else{if(_0x297e4a[_0x455442(0x7b)](_0x21edd9?.['browserName']?.[_0x455442(0xdc)](),_0x297e4a[_0x455442(0xe3)]))_0x1cefa8['safariOptions_']=_0x21edd9;else{if(_0x297e4a[_0x455442(0x7b)](_0x21edd9?.['browserName']?.[_0x455442(0xdc)](),_0x297e4a[_0x455442(0xab)])||_0x297e4a[_0x455442(0xdd)](_0x21edd9?.['browserName']?.['toLowerCase'](),_0x297e4a['LhxkQ']))_0x1cefa8['edgeOptions_']=_0x21edd9;else _0x297e4a[_0x455442(0x7c)](_0x21edd9?.[_0x455442(0xbb)]?.[_0x455442(0xdc)](),'ie')&&(_0x1cefa8[_0x455442(0xbf)]=_0x21edd9);}}}Object['keys'](_0x21edd9)[_0x455442(0x9c)](_0x48f81a=>{const _0x2ec350=_0x455442,_0x4b2d41=_0x1cefa8['capabilities_'][_0x2ec350(0xa3)](_0x48f81a);_0x1cefa8[_0x2ec350(0x82)][_0x2ec350(0xe0)](_0x48f81a,_0x21edd9[_0x48f81a]);});}catch(_0x51b7c7){logger[_0x455442(0x8a)](_0x455442(0xc5)+(_0x51b7c7&&_0x51b7c7[_0x455442(0x8f)]?_0x51b7c7[_0x455442(0x8f)]:''));}}async[a99_0x18636e(0x94)](_0x43071f){const _0x311467=a99_0x18636e,_0x1ab692={'RPLLP':function(_0x8eb232,_0x35759d,_0x340b28,_0x3b13ce,_0x4fe37b,_0x5fe861,_0x11aec3){return _0x8eb232(_0x35759d,_0x340b28,_0x3b13ce,_0x4fe37b,_0x5fe861,_0x11aec3);},'UYlTn':_0x311467(0x84),'cbyiq':_0x311467(0x93),'deljX':_0x311467(0xb2)},_0x1888ac=new Date(),_0x3b3c2e=_0x1ab692['RPLLP'](timeoutPromise,constants['SET_TCG_TOKEN_TIMEOUT'],_0x1ab692[_0x311467(0x89)],_0x1ab692[_0x311467(0xbe)],_0x1888ac,this[_0x311467(0xe5)],this[_0x311467(0xdb)]);await Promise[_0x311467(0x80)]([this[_0x311467(0xd5)][_0x311467(0xcd)](_0x43071f,globals[_0x311467(0xb3)](_0x1ab692[_0x311467(0xe6)]),constants[_0x311467(0xd9)])[_0x311467(0xaf)](()=>{_0x3b3c2e['cancel']();}),_0x3b3c2e]);}async[a99_0x18636e(0xc6)](_0x35f418,_0x4c9800,_0x40be86,_0x36c23c){const _0x2881ad=a99_0x18636e,_0x466631={'sfMhw':function(_0x43b752,_0x2a238d){return _0x43b752===_0x2a238d;},'MhFIO':function(_0x122916,_0x15138c){return _0x122916===_0x15138c;},'PNfNn':function(_0x4d909c,_0x10aad5){return _0x4d909c(_0x10aad5);},'MszfX':function(_0x582e2f,_0x4dcbd9){return _0x582e2f(_0x4dcbd9);},'WMtpa':function(_0x411c7b,_0x56e858){return _0x411c7b(_0x56e858);},'VIoFD':function(_0x140073,_0x470fd1){return _0x140073(_0x470fd1);},'dHtEL':function(_0x45be3a,_0x2e71de){return _0x45be3a(_0x2e71de);},'yOxQv':function(_0x2ce832,_0x12984a){return _0x2ce832(_0x12984a);},'Csypv':_0x2881ad(0xb1),'vLbrd':function(_0x50cfb9,_0x4851d9){return _0x50cfb9(_0x4851d9);},'vvOdB':function(_0x293aaf,_0xfb4b87){return _0x293aaf(_0xfb4b87);},'byzPE':'aiHeal_userId','jyhUd':_0x2881ad(0xb4),'YMusI':'aiHeal_isGroupAIEnabled','qMlyl':function(_0x148c78,_0x1fa947,_0x15fb44,_0x44da8c,_0xdbbb8e,_0x1dd7f3,_0x201b8e){return _0x148c78(_0x1fa947,_0x15fb44,_0x44da8c,_0xdbbb8e,_0x1dd7f3,_0x201b8e);},'ZNJPJ':_0x2881ad(0xe8),'tAmDR':_0x2881ad(0xc7),'cRFFh':function(_0x444f7d,_0xa1e134,_0xf99218,_0x13de18,_0x2a1ddd,_0x4ce63a,_0x1fb1ca){return _0x444f7d(_0xa1e134,_0xf99218,_0x13de18,_0x2a1ddd,_0x4ce63a,_0x1fb1ca);},'XVTgA':'BrowserstackHealing.healFailure\x20method\x20timed\x20out','EFSWG':_0x2881ad(0xd6)},_0x5d4352=(await _0x4c9800[_0x2881ad(0xd4)]())[_0x2881ad(0x9d)]();let _0x32695e='';if(commandRepository['isSelfHealEnabled']()&&_0x466631[_0x2881ad(0xb6)](_0x36c23c,![])||_0x466631['MhFIO'](_0x36c23c,!![])){const _0x384889=_0x466631[_0x2881ad(0xa5)](isNotUndefinedOrNull,_0x40be86[_0x2881ad(0xa4)][_0x2881ad(0x9b)])&&_0x466631[_0x2881ad(0xa5)](isString,_0x40be86['parameters_'][_0x2881ad(0x9b)])?_0x40be86['parameters_'][_0x2881ad(0x9b)]['replace'](/'/g,'\x5c\x27')[_0x2881ad(0xd2)](/"/g,'\x5c\x22'):'',_0xccd71c=_0x466631['MszfX'](isNotUndefinedOrNull,_0x40be86[_0x2881ad(0xa4)][_0x2881ad(0x9b)])&&_0x466631['PNfNn'](isString,_0x40be86[_0x2881ad(0xa4)][_0x2881ad(0xa1)])?_0x40be86[_0x2881ad(0xa4)][_0x2881ad(0xa1)][_0x2881ad(0xd2)](/'/g,'\x5c\x27')[_0x2881ad(0xd2)](/"/g,'\x5c\x22'):'',_0x44b93a=_0x466631[_0x2881ad(0x8d)](isNotUndefinedOrNull,commandRepository[_0x2881ad(0x77)]())&&_0x466631[_0x2881ad(0xc1)](isString,commandRepository['getProjectName']())?commandRepository[_0x2881ad(0x77)]()[_0x2881ad(0xd2)](/'/g,'\x5c\x27')[_0x2881ad(0xd2)](/"/g,'\x5c\x22'):'';let _0x42dd8c=_0x466631[_0x2881ad(0x8d)](isNotUndefinedOrNull,global[_0x2881ad(0x9e)])&&_0x466631[_0x2881ad(0xd8)](isString,global[_0x2881ad(0x9e)])?global['browserstackSessionName']['replace'](/'/g,'\x5c\x27')[_0x2881ad(0xd2)](/"/g,'\x5c\x22'):'';!_0x42dd8c&&(_0x42dd8c=_0x466631[_0x2881ad(0xc0)](isNotUndefinedOrNull,commandRepository[_0x2881ad(0x86)]())&&_0x466631[_0x2881ad(0xc1)](isString,commandRepository[_0x2881ad(0x86)]())?commandRepository[_0x2881ad(0x86)]()[_0x2881ad(0xd2)](/'/g,'\x5c\x27')[_0x2881ad(0xd2)](/"/g,'\x5c\x22'):'');let _0x57794e=_0x2881ad(0x9a)+constants[_0x2881ad(0x92)]+_0x2881ad(0xb7)+constants[_0x2881ad(0x92)]+_0x2881ad(0x79)+constants['TCG_URL'][_0x2881ad(0xbc)](_0x466631[_0x2881ad(0xe4)])[0x1]+'\x22}}}';_0x57794e=_0x466631[_0x2881ad(0xad)](isNotUndefinedOrNull,_0x57794e)&&_0x466631[_0x2881ad(0x73)](isString,_0x57794e)?_0x57794e[_0x2881ad(0xd2)](/'/g,'\x5c\x27')['replace'](/"/g,'\x5c\x22'):'';const _0x238138=commandRepository[_0x2881ad(0xc4)](_0x5d4352),_0x4b294c=globals[_0x2881ad(0xb3)](_0x466631[_0x2881ad(0xe9)]),_0x2f74b3=globals[_0x2881ad(0xb3)](_0x466631['jyhUd']),_0x2d8937=globals[_0x2881ad(0xb3)](_0x466631[_0x2881ad(0x70)]),_0x48f14e=![],_0x53b06a=new Date();if(_0x36c23c){const _0x540c8d=_0x466631[_0x2881ad(0x83)](timeoutPromise,constants['HEALING_LOG_DATA_TIMEOUT'],_0x466631[_0x2881ad(0xde)],_0x466631['tAmDR'],_0x53b06a,this[_0x2881ad(0xe5)],this[_0x2881ad(0xdb)]);_0x32695e=await Promise[_0x2881ad(0x80)]([this[_0x2881ad(0xd5)][_0x2881ad(0xbd)](_0x384889,_0xccd71c,_0x44b93a,_0x42dd8c,_0x2f74b3,_0x5d4352,_0x238138,_0x57794e)[_0x2881ad(0xaf)](_0xb1de11=>{const _0x56ca9a=_0x2881ad;return _0x540c8d[_0x56ca9a(0x7e)](),_0xb1de11;}),_0x540c8d]);}else{if(commandRepository[_0x2881ad(0xc9)]()){const _0x406399=_0x466631['cRFFh'](timeoutPromise,constants[_0x2881ad(0x76)],_0x466631[_0x2881ad(0xd0)],_0x466631[_0x2881ad(0x7a)],_0x53b06a,this['config'],this[_0x2881ad(0xdb)]);_0x32695e=await Promise['race']([this[_0x2881ad(0xd5)][_0x2881ad(0xdf)](_0x384889,_0xccd71c,_0x44b93a,_0x42dd8c,_0x4b294c,_0x2f74b3,_0x5d4352,_0x238138,_0x48f14e,_0x2d8937,_0x57794e)['then'](_0x208a44=>{const _0xa4802b=_0x2881ad;return _0x406399[_0xa4802b(0x7e)](),_0x208a44;}),_0x406399]);}}_0x32695e&&await _0x4c9800[_0x2881ad(0xa2)](_0x32695e);}}async[a99_0x18636e(0x96)](_0x4cf23f,_0x500c89,_0x33e24e){const _0x4962b7=a99_0x18636e;try{await this[_0x4962b7(0xc6)](_0x4cf23f,_0x500c89,_0x33e24e,!![]);}catch(_0x531ea3){return logger[_0x4962b7(0x8a)](_0x4962b7(0xd7)+(_0x531ea3&&_0x531ea3['message']?_0x531ea3['message']:'')),![];}return!![];}async[a99_0x18636e(0x99)](_0xfda66f,_0x33cb63,_0xfccbfd){const _0x114767=a99_0x18636e,_0x3b1e17={'vSYmg':function(_0x104d05,_0x11f620,_0x27f1a4,_0x432136,_0x337841,_0x4b8485,_0x13d70b){return _0x104d05(_0x11f620,_0x27f1a4,_0x432136,_0x337841,_0x4b8485,_0x13d70b);},'nKUva':_0x114767(0x87),'bZgdG':_0x114767(0x7d),'zCJNw':_0x114767(0xb2)};try{await this['_handleEvent'](_0xfda66f,_0x33cb63,_0xfccbfd,![]);const _0x2688f0=(await _0x33cb63[_0x114767(0xd4)]())[_0x114767(0x9d)](),_0x2d5181=new Date(),_0x4626a0=_0x3b1e17[_0x114767(0x85)](timeoutPromise,constants[_0x114767(0xb9)],_0x3b1e17[_0x114767(0xb5)],_0x3b1e17[_0x114767(0xaa)],_0x2d5181,this[_0x114767(0xe5)],this[_0x114767(0xdb)]),_0x265250=await Promise[_0x114767(0x80)]([this[_0x114767(0xd5)][_0x114767(0xd1)](constants[_0x114767(0xd9)],_0x2688f0,globals[_0x114767(0xb3)](_0x3b1e17['zCJNw']))[_0x114767(0xaf)](_0x314d4a=>{const _0x448f70=_0x114767;return _0x4626a0[_0x448f70(0x7e)](),_0x314d4a;}),_0x4626a0]);if(_0x265250&&_0x265250[_0x114767(0x8b)]&&_0x265250[_0x114767(0xa1)]){const _0x245a27={};return _0x245a27[_0x114767(0x9f)]=_0x265250[_0x114767(0x8b)],_0x245a27['locatorValue']=_0x265250[_0x114767(0xa1)],_0x245a27[_0x114767(0xcc)]=!![],_0x245a27;}const _0x26a0da={};return _0x26a0da[_0x114767(0x9f)]=_0xfccbfd[_0x114767(0xa4)]['using'],_0x26a0da['locatorValue']=_0x265250[_0x114767(0xa1)],_0x26a0da[_0x114767(0xcc)]=!![],_0x26a0da;}catch(_0x2d9e68){return logger[_0x114767(0xa9)](_0x114767(0xc2)+(_0x2d9e68&&_0x2d9e68[_0x114767(0x8f)]?_0x2d9e68[_0x114767(0x8f)]:'')),logger[_0x114767(0x74)](_0x114767(0xe7)+_0xfccbfd[_0x114767(0x81)]+'\x20command'),_0xfccbfd;}}}exports['aiSdkWrapper']=Object[a99_0x18636e(0xca)](new AiSdkWrapper());
|