browserstack-node-sdk 1.52.0 → 1.52.2
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 +2 -2
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a38_0x5d202d=a38_0xf490;(function(_0x350c1a,_0x444c04){const _0x31ea1d=a38_0xf490,_0xbd582=_0x350c1a();while(!![]){try{const _0x560508=parseInt(_0x31ea1d(0x233))/0x1*(-parseInt(_0x31ea1d(0x245))/0x2)+-parseInt(_0x31ea1d(0x1f0))/0x3*(-parseInt(_0x31ea1d(0x1ee))/0x4)+parseInt(_0x31ea1d(0x1fa))/0x5*(parseInt(_0x31ea1d(0x23f))/0x6)+-parseInt(_0x31ea1d(0x1d1))/0x7+parseInt(_0x31ea1d(0x1e3))/0x8*(parseInt(_0x31ea1d(0x209))/0x9)+-parseInt(_0x31ea1d(0x215))/0xa+parseInt(_0x31ea1d(0x243))/0xb*(parseInt(_0x31ea1d(0x210))/0xc);if(_0x560508===_0x444c04)break;else _0xbd582['push'](_0xbd582['shift']());}catch(_0x436179){_0xbd582['push'](_0xbd582['shift']());}}}(a38_0x4af4,0xaafbb));function a38_0xf490(_0x525ca3,_0x37261f){const _0x4af488=a38_0x4af4();return a38_0xf490=function(_0xf4902e,_0x44917d){_0xf4902e=_0xf4902e-0x1d1;let _0x102017=_0x4af488[_0xf4902e];return _0x102017;},a38_0xf490(_0x525ca3,_0x37261f);}function a38_0x4af4(){const _0xaf1538=['evaluate','keys','aPzoR','133176oCeMCV','on\x20non-BrowserStack\x20infrastructure\x20','warn','setAccessibilityCapabilities','isBrowserSupportedForAccessibility','3746650Ldoppn','includePartOfPageScope','dsbha','xQXZN','browserName','parse','pmfcE','WxArm','Rxozb','No\x20summaryResults\x20found.','constructor','../../helpers/logger','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','find','../../helpers/performance/constants','isVersionSupported','PERFORM_SCAN','../../helpers/accessibility-automation/helper','includeIssueType','latest','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','../../helpers/accessibility-automation/scripts','AbxYP','testInfo','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','name','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','getAccessibilityResultsSummary','][\x20SDK-AUTOMATION\x20]\x20','BtuWN','1hkQOkK','\x20page:\x20','accessibilityOptions.scannerProcessingTimeout','WebDriver','QJuJR','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','\x20or\x20higher\x20','bestPractice','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20','MiBhZ','scannerProcessingTimeout','138jxnIBm','silly','browser_version','replace','1078UxHuqv','message','1734074MhYCkq','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','WNsCC','accessibilityOptions.scannerVersion','browserstack.accessibility','\x20browser\x20version\x20','response','yAHKK','scannerVersion','lnRwh','getBrowserDisplayName','project','startsWith','request','pLnEU','vCLeS','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','utSFN','uzZMD','YPjLj','7551642blxoGn','giiSo','../../helpers/performance/performance-tester','performScan','debug','yAvtL','platformValidation','XxuFz','winstonLogger','atONv','nsXmM','WPYsw','frhtP','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','body','KIIhX','ejXRv','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','7220240SkASQN','string','gQCmM','XPnGF','wcagVersion','deviceName','CAITJ','util','url','executeScript','workerInfo','143628wGiYhv','env','51etrkjq','wsEndpoint','error','browserstack.accessibilityOptions','../utils/constants','getMinVersionForBrowser','executeAsyncScript','command','accessibilityOptions.includeIssueType.needsReview','forEach','91370jrFdNR','iCqNp','accessibilityOptions','connectOptions','Performing\x20scan\x20with\x20method:\x20','No\x20accessibility\x20results\x20were\x20found.','tZuxe','accessibilityPlatform','fgLIl','format','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','stringify','BS_A11Y_JWT','pWZGw','use','9DFEuMc','WdkPU','measureWrapper','[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20'];a38_0x4af4=function(){return _0xaf1538;};return a38_0x4af4();}const util=require(a38_0x5d202d(0x1ea)),logger=require(a38_0x5d202d(0x220))[a38_0x5d202d(0x1d9)],{automationLogger}=require(a38_0x5d202d(0x220)),{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined,isBrowserstackInfra}=require('../../helpers/helper'),scripts=require(a38_0x5d202d(0x22a)),PerformanceTester=require(a38_0x5d202d(0x1d3)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a38_0x5d202d(0x223)),accessibilityHelper=require(a38_0x5d202d(0x226)),{AUTOMATION_LOG_COMMANDS}=require(a38_0x5d202d(0x1f4));exports['browserStackEvaluate']=async(_0x883bd2,_0x165f9e,_0x41746e={})=>{const _0x217cbe=a38_0x5d202d,_0x3cf130={};_0x3cf130['pmfcE']='bstackSdkArgs',_0x3cf130['WdkPU']=function(_0x21991d,_0x2fa7d1){return _0x21991d===_0x2fa7d1;},_0x3cf130['gQCmM']=_0x217cbe(0x1e4);const _0x271783=_0x3cf130,_0x39903c=await _0x883bd2[_0x217cbe(0x20d)](_0x217cbe(0x238)+_0x165f9e[_0x217cbe(0x242)](/arguments/g,_0x271783[_0x217cbe(0x21b)])+_0x217cbe(0x1e2)+JSON['stringify'](_0x41746e)+')');try{if(_0x165f9e&&_0x271783[_0x217cbe(0x20a)](typeof _0x165f9e,_0x271783[_0x217cbe(0x1e5)])){const _0x320c4c=AUTOMATION_LOG_COMMANDS[_0x217cbe(0x222)](_0x2e1241=>_0x165f9e['includes'](_0x2e1241));if(_0x320c4c){const _0x33affd={};_0x33affd[_0x217cbe(0x1f7)]=_0x320c4c,_0x33affd['parameters']=[_0x41746e];const _0x4602ba={};_0x4602ba[_0x217cbe(0x1df)]=_0x39903c;const _0x250ca2={};_0x250ca2[_0x217cbe(0x252)]=_0x33affd,_0x250ca2[_0x217cbe(0x24b)]=_0x4602ba,automationLogger[_0x217cbe(0x240)]('['+new Date()['toISOString']()+_0x217cbe(0x231)+JSON[_0x217cbe(0x205)](_0x250ca2));}}}catch(_0x4f4fc8){logger[_0x217cbe(0x1d5)](_0x217cbe(0x20c)+_0x4f4fc8[_0x217cbe(0x244)]);}return _0x39903c;},exports['browserStackExecuteDriver']=async(_0x205267,_0x5b227d,_0x168983={})=>{const _0x1a457f=a38_0x5d202d,_0x31fc09={};_0x31fc09[_0x1a457f(0x237)]=function(_0x1fa4b7,_0x396e9f){return _0x1fa4b7===_0x396e9f;},_0x31fc09['XxuFz']=_0x1a457f(0x236),_0x31fc09['dsbha']=function(_0x461ed2,_0x5b5938){return _0x461ed2===_0x5b5938;},_0x31fc09[_0x1a457f(0x22b)]='Playwright',_0x31fc09[_0x1a457f(0x1d2)]='bstackSdkArgs';const _0x174820=_0x31fc09;if(_0x174820[_0x1a457f(0x237)](_0x205267[_0x1a457f(0x21f)][_0x1a457f(0x22e)],_0x174820[_0x1a457f(0x1d8)]))return await _0x205267[_0x1a457f(0x1f6)](_0x5b227d,_0x168983);else{if(_0x174820[_0x1a457f(0x217)](_0x205267['constructor']['name'],_0x174820[_0x1a457f(0x22b)]))return await _0x205267[_0x1a457f(0x1ec)](_0x1a457f(0x23c)+_0x5b227d[_0x1a457f(0x242)](/arguments/g,_0x174820['giiSo'])+_0x1a457f(0x1de)+JSON['stringify'](_0x168983)+')');}},exports[a38_0x5d202d(0x213)]=async _0x4410e6=>{const _0xd2b68e=a38_0x5d202d,_0x492d3c={};_0x492d3c[_0xd2b68e(0x258)]='accessibilityOptions.wcagVersion',_0x492d3c['aPzoR']=_0xd2b68e(0x235),_0x492d3c[_0xd2b68e(0x21c)]='accessibilityOptions.includeIssueType.bestPractice',_0x492d3c['tZuxe']=_0xd2b68e(0x1f8),_0x492d3c[_0xd2b68e(0x1e9)]='accessibilityOptions.authToken',_0x492d3c['yAvtL']=_0xd2b68e(0x248);const _0x50dafd=_0x492d3c;_0x4410e6[_0xd2b68e(0x1fc)]&&(_0x4410e6[_0xd2b68e(0x1fc)][_0xd2b68e(0x1e7)]&&(_0x4410e6[_0x50dafd[_0xd2b68e(0x258)]]=_0x4410e6[_0xd2b68e(0x1fc)][_0xd2b68e(0x1e7)]),_0x4410e6[_0xd2b68e(0x1fc)][_0xd2b68e(0x23e)]&&(_0x4410e6[_0x50dafd[_0xd2b68e(0x20f)]]=_0x4410e6['accessibilityOptions'][_0xd2b68e(0x23e)]),_0x4410e6['accessibilityOptions']['includeIssueType']&&(_0x4410e6[_0x50dafd[_0xd2b68e(0x21c)]]=_0x4410e6[_0xd2b68e(0x1fc)]['includeIssueType'][_0xd2b68e(0x23b)],_0x4410e6[_0x50dafd[_0xd2b68e(0x200)]]=_0x4410e6[_0xd2b68e(0x1fc)][_0xd2b68e(0x227)]['needsReview']));const _0x47bd7a=JSON[_0xd2b68e(0x21a)](process['env'][_0xd2b68e(0x229)])[_0xd2b68e(0x24d)];_0x4410e6[_0x50dafd[_0xd2b68e(0x1e9)]]=process[_0xd2b68e(0x1ef)][_0xd2b68e(0x206)],_0x4410e6[_0x50dafd[_0xd2b68e(0x1d6)]]=_0x47bd7a,delete _0x4410e6[_0xd2b68e(0x1fc)];},exports['getAccessibilityResults']=async _0x168d1e=>{const _0x1cffc5=a38_0x5d202d,_0x5477ae={};_0x5477ae[_0x1cffc5(0x23d)]=_0x1cffc5(0x1ff),_0x5477ae[_0x1cffc5(0x21d)]=_0x1cffc5(0x255);const _0x590dd3=_0x5477ae;if(global['accessibilityPlatform'])try{const details={'url':await _0x168d1e.url(),'testhub_btcer_uuid':global.__workerDetails?.currentTest?.id};logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x168d1e,scripts.performScan)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x168d1e,scripts.getResults);},{...details})();return res;}catch{return logger[_0x1cffc5(0x1f2)](_0x590dd3[_0x1cffc5(0x23d)]),[];}else return logger[_0x1cffc5(0x212)](_0x590dd3[_0x1cffc5(0x21d)]),[];},exports[a38_0x5d202d(0x1d4)]=async(_0x4f4f81,_0x4bc6e3='',_0x365a9a={})=>{const _0x1720c8=a38_0x5d202d;logger[_0x1720c8(0x1d5)](_0x1720c8(0x1fe)+_0x4bc6e3+_0x1720c8(0x234)+_0x4f4f81);const _0x3a3ba1={'url':await _0x4f4f81[_0x1720c8(0x1eb)](),'testhub_btcer_uuid':global['__workerDetails']?.['currentTest']?.['id']};if(global[_0x1720c8(0x201)])return await PerformanceTester[_0x1720c8(0x20b)](PerformanceA11yEvents[_0x1720c8(0x225)],async()=>{const _0x24bf65=_0x1720c8,_0x137763={};_0x137763[_0x24bf65(0x1f7)]=_0x4bc6e3;const _0x49e30b=_0x137763;_0x365a9a&&_0x365a9a[_0x24bf65(0x216)]&&(_0x49e30b['includePartOfPageScope']=_0x365a9a[_0x24bf65(0x216)]);const _0x4f89bf=await exports['browserStackEvaluate'](_0x4f4f81,scripts['performScan'],_0x49e30b);return _0x4f89bf;},{'command':_0x4bc6e3,..._0x3a3ba1})();},exports[a38_0x5d202d(0x230)]=async _0x99e7c8=>{const _0x2e5d63=a38_0x5d202d,_0x562ac8={};_0x562ac8[_0x2e5d63(0x202)]=_0x2e5d63(0x21e),_0x562ac8[_0x2e5d63(0x256)]=_0x2e5d63(0x22d);const _0x329a0f=_0x562ac8;if(global[_0x2e5d63(0x201)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x99e7c8,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x99e7c8,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x2e5d63(0x1d5)](_0x329a0f[_0x2e5d63(0x202)]),{};}else return logger['warn'](_0x329a0f[_0x2e5d63(0x256)]),{};},exports[a38_0x5d202d(0x1d7)]=_0x311967=>{const _0x58b714=a38_0x5d202d,_0x489542={'KIIhX':function(_0x3a37e8,_0x42cff5){return _0x3a37e8!==_0x42cff5;},'nsXmM':_0x58b714(0x246),'pWZGw':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','XPnGF':function(_0x475b3b,_0x5f4ff1){return _0x475b3b!==_0x5f4ff1;},'cTFEe':'latest','uzZMD':function(_0x1d2094){return _0x1d2094();},'vCLeS':'on\x20non-BrowserStack\x20infrastructure\x20'};try{if(!_0x489542[_0x58b714(0x1e0)](_0x311967[_0x58b714(0x1e8)],''))return logger[_0x58b714(0x212)](_0x489542[_0x58b714(0x1db)]),![];const _0x24ff01=_0x311967['browser'],_0x20df8c=_0x311967[_0x58b714(0x241)];if(!accessibilityHelper[_0x58b714(0x214)](_0x24ff01))return logger[_0x58b714(0x212)](_0x489542[_0x58b714(0x207)]),![];if(_0x489542[_0x58b714(0x1e6)](_0x20df8c,_0x489542['cTFEe'])){const _0x5c9659=_0x489542[_0x58b714(0x257)](isBrowserstackInfra),_0x5c9dd9=accessibilityHelper[_0x58b714(0x1f5)](_0x24ff01,_0x5c9659),_0x392300=accessibilityHelper[_0x58b714(0x24f)](_0x24ff01);if(!accessibilityHelper[_0x58b714(0x224)](_0x20df8c,_0x5c9dd9)){const _0x132afa=_0x5c9659?'':_0x489542[_0x58b714(0x254)];return logger[_0x58b714(0x212)]('Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20'+_0x392300+_0x58b714(0x24a)+_0x5c9dd9+_0x58b714(0x23a)+_0x132afa+'.'),![];}}}catch(_0x43f5fc){logger['debug'](_0x58b714(0x239)+util[_0x58b714(0x203)](_0x43f5fc));}return!![];},exports['processAccessibilityCaps']=(_0x2b7cf9,_0x2af436,_0xb337bb)=>{const _0x38af75=a38_0x5d202d,_0x23986d={'iCqNp':_0x38af75(0x1f3),'WNsCC':function(_0x5bd904){return _0x5bd904();},'yAHKK':_0x38af75(0x249),'BtuWN':_0x38af75(0x221),'atONv':function(_0x213ddb,_0x5354d7){return _0x213ddb!==_0x5354d7;},'pLnEU':_0x38af75(0x228),'lnRwh':function(_0x31eb9d){return _0x31eb9d();},'xQXZN':_0x38af75(0x211),'frhtP':function(_0xe35c75,_0x4eba31){return _0xe35c75(_0x4eba31);},'WPYsw':_0x38af75(0x246),'ejXRv':function(_0x59ee41,_0x19199a){return _0x59ee41+_0x19199a;}};try{if(_0x23986d[_0x38af75(0x247)](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x2b7cf9[_0x23986d[_0x38af75(0x24c)]]&&(global[_0x38af75(0x201)]=![]);const _0x18a54f=_0x2b7cf9[_0x38af75(0x219)]||_0x2b7cf9['browser'],_0x5654ca=_0x2b7cf9[_0x38af75(0x241)];!accessibilityHelper[_0x38af75(0x214)](_0x18a54f)&&(logger[_0x38af75(0x212)](_0x23986d[_0x38af75(0x232)]),global[_0x38af75(0x201)]=![]);if(_0x23986d[_0x38af75(0x1da)](_0x5654ca,_0x23986d[_0x38af75(0x253)])){const _0x437d7c=_0x23986d[_0x38af75(0x24e)](isBrowserstackInfra),_0x5e831d=accessibilityHelper['getMinVersionForBrowser'](_0x18a54f,_0x437d7c),_0x48ebec=accessibilityHelper['getBrowserDisplayName'](_0x18a54f);if(!accessibilityHelper['isVersionSupported'](_0x5654ca,_0x5e831d)){const _0x508711=_0x437d7c?'':_0x23986d[_0x38af75(0x218)];logger[_0x38af75(0x212)](_0x38af75(0x204)+_0x48ebec+_0x38af75(0x24a)+_0x5e831d+'\x20or\x20higher\x20'+_0x508711+'.'),global[_0x38af75(0x201)]=![];}}!_0x23986d[_0x38af75(0x1dd)](isUndefined,_0x2b7cf9[_0x38af75(0x1e8)])&&(logger[_0x38af75(0x212)](_0x23986d[_0x38af75(0x1dc)]),global['accessibilityPlatform']=![]);if(!global[_0x38af75(0x201)]){_0x2b7cf9[_0x23986d[_0x38af75(0x24c)]]=![],Object[_0x38af75(0x20e)](_0x2b7cf9)[_0x38af75(0x1f9)](_0x29a7df=>{const _0x185ac3=_0x38af75;_0x29a7df[_0x185ac3(0x251)](_0x23986d[_0x185ac3(0x1fb)])&&delete _0x2b7cf9[_0x29a7df];});const _0x292421=_0x23986d[_0x38af75(0x1e1)](_0x2af436,_0x23986d[_0x38af75(0x1dd)](encodeURIComponent,JSON[_0x38af75(0x205)](_0x2b7cf9)));_0xb337bb&&(_0xb337bb['currentTest'][_0x38af75(0x22c)]['project']['use'][_0x38af75(0x1fd)][_0x38af75(0x1f1)]=_0x292421,_0xb337bb[_0x38af75(0x1ed)][_0x38af75(0x250)][_0x38af75(0x208)][_0x38af75(0x1fd)][_0x38af75(0x1f1)]=_0x292421);}}else global[_0x38af75(0x201)]=![];}catch(_0x29229d){logger['debug'](_0x38af75(0x22f)+util[_0x38af75(0x203)](_0x29229d));}};
|
|
1
|
+
const a38_0x30fa2a=a38_0x1c5a;function a38_0x1c5a(_0x470a60,_0x249ca4){const _0x491a4d=a38_0x491a();return a38_0x1c5a=function(_0x1c5ad3,_0x3dacbe){_0x1c5ad3=_0x1c5ad3-0x7a;let _0x35708b=_0x491a4d[_0x1c5ad3];return _0x35708b;},a38_0x1c5a(_0x470a60,_0x249ca4);}(function(_0x1d9c83,_0x5d46d1){const _0xf4ff71=a38_0x1c5a,_0x3c1dd8=_0x1d9c83();while(!![]){try{const _0x436965=-parseInt(_0xf4ff71(0xf9))/0x1*(-parseInt(_0xf4ff71(0xee))/0x2)+-parseInt(_0xf4ff71(0x7b))/0x3*(parseInt(_0xf4ff71(0xa0))/0x4)+-parseInt(_0xf4ff71(0xce))/0x5*(parseInt(_0xf4ff71(0xc1))/0x6)+parseInt(_0xf4ff71(0xcf))/0x7+-parseInt(_0xf4ff71(0x7f))/0x8+parseInt(_0xf4ff71(0xd4))/0x9+parseInt(_0xf4ff71(0xe3))/0xa*(-parseInt(_0xf4ff71(0xe8))/0xb);if(_0x436965===_0x5d46d1)break;else _0x3c1dd8['push'](_0x3c1dd8['shift']());}catch(_0x266de3){_0x3c1dd8['push'](_0x3c1dd8['shift']());}}}(a38_0x491a,0x940c7));function a38_0x491a(){const _0x5796cb=['../../helpers/accessibility-automation/helper','DYZCW','processAccessibilityCaps','find','21717fyiefF','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','isBrowserSupportedForAccessibility','scannerProcessingTimeout','evaluate','body','workerInfo','9315piCpXP','qVTuN','needsReview','[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20','2317448tPaLmT','error','OrrND','bVawh','browser_version','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','accessibilityOptions.scannerProcessingTimeout','platformValidation','wcagVersion','currentTest','request','browserStackExecuteDriver','env','FhsLr','mqsJD','][\x20SDK-AUTOMATION\x20]\x20','Gkiuo','accessibilityOptions.wcagVersion','util','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','rNQtP','string','keys','message','YsvXS','bestPractice','wsEndpoint','accessibilityOptions.authToken','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','isVersionSupported','toISOString','EIdPg','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','412HxWHEq','winstonLogger','connectOptions','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','tbXxx','browser','command','Tvqny','includeIssueType','url','parse','stringify','IgvKG','use','AIFzD','parameters','../../helpers/accessibility-automation/scripts','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20','accessibilityOptions.includeIssueType.needsReview','Mgyzt','response','testInfo','../../helpers/helper','format','project','oATxj','bqWmU','forEach','accessibilityOptions.includeIssueType.bestPractice','../../helpers/logger','phOtl','kdMfM','getAccessibilityResults','539598cJndiF','BS_A11Y_JWT','constructor','latest','No\x20accessibility\x20results\x20were\x20found.','performScan','executeScript','WebDriver','getMinVersionForBrowser','../../helpers/performance/performance-tester','warn','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','No\x20summaryResults\x20found.','10usBecJ','7917700NJljtJ','yVmqC','includePartOfPageScope','bstackSdkArgs','deviceName','9614313OhXeZT','accessibilityOptions','fkcqu','name','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20','UoCEy','setAccessibilityCapabilities','PERFORM_SCAN','debug','dYPXe','\x20or\x20higher\x20','bkEDF','on\x20non-BrowserStack\x20infrastructure\x20','includes','replace','10CbbcIW','POBMY','\x20page:\x20','khjwl','FvDKJ','10511677XKlIAN','NrXrH','accessibilityPlatform','../../helpers/performance/constants','browserstack.accessibility','UPPPg','14iQECLG','getBrowserDisplayName','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','__workerDetails','MUKwT','DVYLb','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.'];a38_0x491a=function(){return _0x5796cb;};return a38_0x491a();}const util=require(a38_0x30fa2a(0x91)),logger=require(a38_0x30fa2a(0xbd))[a38_0x30fa2a(0xa1)],{automationLogger}=require(a38_0x30fa2a(0xbd)),{isAccessibilityAutomationSession}=require(a38_0x30fa2a(0xf5)),{isUndefined,isBrowserstackInfra}=require(a38_0x30fa2a(0xb6)),scripts=require(a38_0x30fa2a(0xb0)),PerformanceTester=require(a38_0x30fa2a(0xca)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a38_0x30fa2a(0xeb)),accessibilityHelper=require(a38_0x30fa2a(0xf5)),{AUTOMATION_LOG_COMMANDS}=require('../utils/constants');exports['browserStackEvaluate']=async(_0x45892e,_0x429de8,_0x6f2508={})=>{const _0x3dd9d6=a38_0x30fa2a,_0x3910f1={};_0x3910f1[_0x3dd9d6(0xa4)]=_0x3dd9d6(0xd2),_0x3910f1['SQgsV']=function(_0xbc13a1,_0x21428c){return _0xbc13a1===_0x21428c;},_0x3910f1[_0x3dd9d6(0x8f)]=_0x3dd9d6(0x94);const _0xda3386=_0x3910f1,_0x2f4448=await _0x45892e[_0x3dd9d6(0xfd)](_0x3dd9d6(0xb1)+_0x429de8['replace'](/arguments/g,_0xda3386[_0x3dd9d6(0xa4)])+_0x3dd9d6(0xa3)+JSON[_0x3dd9d6(0xab)](_0x6f2508)+')');try{if(_0x429de8&&_0xda3386['SQgsV'](typeof _0x429de8,_0xda3386[_0x3dd9d6(0x8f)])){const _0x3965db=AUTOMATION_LOG_COMMANDS[_0x3dd9d6(0xf8)](_0x134559=>_0x429de8[_0x3dd9d6(0xe1)](_0x134559));if(_0x3965db){const _0xa75b44={};_0xa75b44[_0x3dd9d6(0xa6)]=_0x3965db,_0xa75b44[_0x3dd9d6(0xaf)]=[_0x6f2508];const _0x2ca8e3={};_0x2ca8e3[_0x3dd9d6(0xfe)]=_0x2f4448;const _0x9565ff={};_0x9565ff[_0x3dd9d6(0x89)]=_0xa75b44,_0x9565ff[_0x3dd9d6(0xb4)]=_0x2ca8e3,automationLogger['silly']('['+new Date()[_0x3dd9d6(0x9d)]()+_0x3dd9d6(0x8e)+JSON[_0x3dd9d6(0xab)](_0x9565ff));}}}catch(_0x3eddc9){logger[_0x3dd9d6(0xdc)](_0x3dd9d6(0x7e)+_0x3eddc9[_0x3dd9d6(0x96)]);}return _0x2f4448;},exports[a38_0x30fa2a(0x8a)]=async(_0x1205b2,_0x11f536,_0x10bfa6={})=>{const _0x23e097=a38_0x30fa2a,_0x578cc7={};_0x578cc7['ZjaEh']=function(_0x337457,_0x1b67d3){return _0x337457===_0x1b67d3;},_0x578cc7[_0x23e097(0xbf)]=_0x23e097(0xc8),_0x578cc7[_0x23e097(0xf2)]=function(_0x41ddf3,_0x2d9e6c){return _0x41ddf3===_0x2d9e6c;},_0x578cc7[_0x23e097(0x82)]='Playwright',_0x578cc7['FvDKJ']=_0x23e097(0xd2);const _0x1e022d=_0x578cc7;if(_0x1e022d['ZjaEh'](_0x1205b2[_0x23e097(0xc3)]['name'],_0x1e022d[_0x23e097(0xbf)]))return await _0x1205b2['executeAsyncScript'](_0x11f536,_0x10bfa6);else{if(_0x1e022d['MUKwT'](_0x1205b2[_0x23e097(0xc3)][_0x23e097(0xd7)],_0x1e022d['bVawh']))return await _0x1205b2[_0x23e097(0xc7)](_0x23e097(0xd8)+_0x11f536[_0x23e097(0xe2)](/arguments/g,_0x1e022d[_0x23e097(0xe7)])+_0x23e097(0xfa)+JSON['stringify'](_0x10bfa6)+')');}},exports[a38_0x30fa2a(0xda)]=async _0x323bfa=>{const _0x3d2012=a38_0x30fa2a,_0x459f58={};_0x459f58[_0x3d2012(0x9e)]=_0x3d2012(0x90),_0x459f58[_0x3d2012(0x8d)]=_0x3d2012(0x85),_0x459f58[_0x3d2012(0xf6)]=_0x3d2012(0xbc),_0x459f58[_0x3d2012(0xe4)]=_0x3d2012(0xb2),_0x459f58[_0x3d2012(0xdf)]=_0x3d2012(0x9a),_0x459f58[_0x3d2012(0xd0)]='accessibilityOptions.scannerVersion';const _0x4fded4=_0x459f58;_0x323bfa[_0x3d2012(0xd5)]&&(_0x323bfa[_0x3d2012(0xd5)][_0x3d2012(0x87)]&&(_0x323bfa[_0x4fded4[_0x3d2012(0x9e)]]=_0x323bfa[_0x3d2012(0xd5)][_0x3d2012(0x87)]),_0x323bfa[_0x3d2012(0xd5)]['scannerProcessingTimeout']&&(_0x323bfa[_0x4fded4[_0x3d2012(0x8d)]]=_0x323bfa[_0x3d2012(0xd5)][_0x3d2012(0xfc)]),_0x323bfa[_0x3d2012(0xd5)]['includeIssueType']&&(_0x323bfa[_0x4fded4[_0x3d2012(0xf6)]]=_0x323bfa[_0x3d2012(0xd5)][_0x3d2012(0xa8)][_0x3d2012(0x98)],_0x323bfa[_0x4fded4[_0x3d2012(0xe4)]]=_0x323bfa['accessibilityOptions'][_0x3d2012(0xa8)][_0x3d2012(0x7d)]));const _0x387629=JSON[_0x3d2012(0xaa)](process[_0x3d2012(0x8b)][_0x3d2012(0xf0)])['scannerVersion'];_0x323bfa[_0x4fded4[_0x3d2012(0xdf)]]=process[_0x3d2012(0x8b)][_0x3d2012(0xc2)],_0x323bfa[_0x4fded4[_0x3d2012(0xd0)]]=_0x387629,delete _0x323bfa[_0x3d2012(0xd5)];},exports[a38_0x30fa2a(0xc0)]=async _0x203347=>{const _0x211543=a38_0x30fa2a,_0x25e83b={};_0x25e83b[_0x211543(0xac)]=_0x211543(0xc5),_0x25e83b[_0x211543(0xed)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0x42fce9=_0x25e83b;if(global[_0x211543(0xea)])try{const details={'url':await _0x203347.url(),'testhub_btcer_uuid':global.__workerDetails?.currentTest?.id};logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x203347,scripts.performScan)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x203347,scripts.getResults);},{...details})();return res;}catch{return logger[_0x211543(0x80)](_0x42fce9['IgvKG']),[];}else return logger[_0x211543(0xcb)](_0x42fce9[_0x211543(0xed)]),[];},exports[a38_0x30fa2a(0xc6)]=async(_0x4816ba,_0x7772b='',_0x50e9ed={})=>{const _0x38ad87=a38_0x30fa2a;logger[_0x38ad87(0xdc)]('Performing\x20scan\x20with\x20method:\x20'+_0x7772b+_0x38ad87(0xe5)+_0x4816ba);const _0x2794d2={'url':await _0x4816ba[_0x38ad87(0xa9)](),'testhub_btcer_uuid':global[_0x38ad87(0xf1)]?.[_0x38ad87(0x88)]?.['id']};if(global['accessibilityPlatform'])return await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x38ad87(0xdb)],async()=>{const _0x105fca=_0x38ad87,_0x44c950={};_0x44c950[_0x105fca(0xa6)]=_0x7772b;const _0x29435c=_0x44c950;_0x50e9ed&&_0x50e9ed[_0x105fca(0xd1)]&&(_0x29435c[_0x105fca(0xd1)]=_0x50e9ed[_0x105fca(0xd1)]);const _0x147970=await exports['browserStackEvaluate'](_0x4816ba,scripts[_0x105fca(0xc6)],_0x29435c);return _0x147970;},{'command':_0x7772b,..._0x2794d2})();},exports['getAccessibilityResultsSummary']=async _0x4a7584=>{const _0x291f36=a38_0x30fa2a,_0x7cfb83={};_0x7cfb83[_0x291f36(0x93)]=_0x291f36(0xcd),_0x7cfb83['DVYLb']=_0x291f36(0xcc);const _0x46e28f=_0x7cfb83;if(global[_0x291f36(0xea)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x4a7584,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x4a7584,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x291f36(0xdc)](_0x46e28f[_0x291f36(0x93)]),{};}else return logger['warn'](_0x46e28f[_0x291f36(0xf3)]),{};},exports[a38_0x30fa2a(0x86)]=_0x35893=>{const _0x544a1a=a38_0x30fa2a,_0x34d58f={'OrrND':function(_0x579fa2,_0x2118aa){return _0x579fa2!==_0x2118aa;},'khjwl':_0x544a1a(0x9f),'rzAkC':_0x544a1a(0xf4),'phOtl':_0x544a1a(0xc4),'fkcqu':function(_0x5bc64d){return _0x5bc64d();},'YsvXS':_0x544a1a(0xe0)};try{if(!_0x34d58f[_0x544a1a(0x81)](_0x35893[_0x544a1a(0xd3)],''))return logger[_0x544a1a(0xcb)](_0x34d58f[_0x544a1a(0xe6)]),![];const _0x234bdd=_0x35893[_0x544a1a(0xa5)],_0x53b9d6=_0x35893[_0x544a1a(0x83)];if(!accessibilityHelper[_0x544a1a(0xfb)](_0x234bdd))return logger[_0x544a1a(0xcb)](_0x34d58f['rzAkC']),![];if(_0x34d58f[_0x544a1a(0x81)](_0x53b9d6,_0x34d58f[_0x544a1a(0xbe)])){const _0x57688f=_0x34d58f[_0x544a1a(0xd6)](isBrowserstackInfra),_0x4292f9=accessibilityHelper[_0x544a1a(0xc9)](_0x234bdd,_0x57688f),_0x4174f7=accessibilityHelper[_0x544a1a(0xef)](_0x234bdd);if(!accessibilityHelper[_0x544a1a(0x9c)](_0x53b9d6,_0x4292f9)){const _0x57091c=_0x57688f?'':_0x34d58f[_0x544a1a(0x97)];return logger['warn'](_0x544a1a(0x84)+_0x4174f7+'\x20browser\x20version\x20'+_0x4292f9+_0x544a1a(0xde)+_0x57091c+'.'),![];}}}catch(_0x175b0e){logger[_0x544a1a(0xdc)](_0x544a1a(0x9b)+util[_0x544a1a(0xb7)](_0x175b0e));}return!![];},exports[a38_0x30fa2a(0xf7)]=(_0x2afa08,_0x38dbd8,_0x590edd)=>{const _0x5b67f1=a38_0x30fa2a,_0x31cbcc={'yfWkv':'browserstack.accessibilityOptions','oATxj':function(_0x596995){return _0x596995();},'UoCEy':_0x5b67f1(0xec),'Tvqny':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','FhsLr':function(_0x28f6f9,_0x2d6a6f){return _0x28f6f9!==_0x2d6a6f;},'qVTuN':_0x5b67f1(0xc4),'NrXrH':function(_0x2c39f1){return _0x2c39f1();},'dYPXe':_0x5b67f1(0xe0),'MjuUC':function(_0x46138d,_0x1352d8){return _0x46138d(_0x1352d8);},'Mgyzt':_0x5b67f1(0x9f),'bqWmU':function(_0x19180a,_0x4c9a83){return _0x19180a+_0x4c9a83;},'AIFzD':function(_0x3ea994,_0x5dd665){return _0x3ea994(_0x5dd665);}};try{if(_0x31cbcc[_0x5b67f1(0xb9)](isAccessibilityAutomationSession)){global[_0x5b67f1(0xea)]=!![];!_0x2afa08[_0x31cbcc[_0x5b67f1(0xd9)]]&&(global[_0x5b67f1(0xea)]=![]);const _0x3c553e=_0x2afa08['browserName']||_0x2afa08['browser'],_0x1dccf3=_0x2afa08[_0x5b67f1(0x83)];!accessibilityHelper[_0x5b67f1(0xfb)](_0x3c553e)&&(logger[_0x5b67f1(0xcb)](_0x31cbcc[_0x5b67f1(0xa7)]),global[_0x5b67f1(0xea)]=![]);if(_0x31cbcc[_0x5b67f1(0x8c)](_0x1dccf3,_0x31cbcc[_0x5b67f1(0x7c)])){const _0x4d684a=_0x31cbcc[_0x5b67f1(0xe9)](isBrowserstackInfra),_0xe71779=accessibilityHelper['getMinVersionForBrowser'](_0x3c553e,_0x4d684a),_0x31d6dd=accessibilityHelper[_0x5b67f1(0xef)](_0x3c553e);if(!accessibilityHelper[_0x5b67f1(0x9c)](_0x1dccf3,_0xe71779)){const _0x34d1f1=_0x4d684a?'':_0x31cbcc[_0x5b67f1(0xdd)];logger[_0x5b67f1(0xcb)](_0x5b67f1(0x84)+_0x31d6dd+'\x20browser\x20version\x20'+_0xe71779+_0x5b67f1(0xde)+_0x34d1f1+'.'),global['accessibilityPlatform']=![];}}!_0x31cbcc['MjuUC'](isUndefined,_0x2afa08[_0x5b67f1(0xd3)])&&(logger[_0x5b67f1(0xcb)](_0x31cbcc[_0x5b67f1(0xb3)]),global[_0x5b67f1(0xea)]=![]);if(!global[_0x5b67f1(0xea)]){_0x2afa08[_0x31cbcc[_0x5b67f1(0xd9)]]=![],Object[_0x5b67f1(0x95)](_0x2afa08)[_0x5b67f1(0xbb)](_0x29f86f=>{_0x29f86f['startsWith'](_0x31cbcc['yfWkv'])&&delete _0x2afa08[_0x29f86f];});const _0x42b83b=_0x31cbcc[_0x5b67f1(0xba)](_0x38dbd8,_0x31cbcc[_0x5b67f1(0xae)](encodeURIComponent,JSON[_0x5b67f1(0xab)](_0x2afa08)));_0x590edd&&(_0x590edd[_0x5b67f1(0x88)][_0x5b67f1(0xb5)][_0x5b67f1(0xb8)][_0x5b67f1(0xad)][_0x5b67f1(0xa2)][_0x5b67f1(0x99)]=_0x42b83b,_0x590edd[_0x5b67f1(0x7a)][_0x5b67f1(0xb8)][_0x5b67f1(0xad)][_0x5b67f1(0xa2)][_0x5b67f1(0x99)]=_0x42b83b);}}else global[_0x5b67f1(0xea)]=![];}catch(_0x162050){logger[_0x5b67f1(0xdc)](_0x5b67f1(0x92)+util[_0x5b67f1(0xb7)](_0x162050));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function a39_0x44f1(_0xd1c05,_0x24f79e){const _0x51b8ca=a39_0x51b8();return a39_0x44f1=function(_0x44f1ba,_0x3ed41d){_0x44f1ba=_0x44f1ba-0x1ed;let _0x17b55d=_0x51b8ca[_0x44f1ba];return _0x17b55d;},a39_0x44f1(_0xd1c05,_0x24f79e);}const a39_0xe6a64e=a39_0x44f1;function a39_0x51b8(){const _0x1a6a5c=['SMORo','SDK_CLEANUP','RKJxn','nYekG','XVwos','Error\x20in\x20closing\x20playwright','start','vyzIT','isFalse','USER_CONFIG_DETAILS_PATH','AEqbi','apply','--disable-browserstack-automation','automation','--grep','env','--disable-test-observability','win32','length','nestedKeyValue','npx','serializeToYamlString','hmqMA','pw_result.json','XjDRD','stop','BROWSERSTACK_PW_CONFIG_DIR','INTERNALLY_USED_ENV_VARS','isRunning','../v2/cliUtils','7977673XTjesi','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20process.env.GLOBAL_AGENT_NO_PROXY=\x22','xEKOp','7610790FuZqPW','../../helpers/BrowserStackSetup','yarn','initialize','Hyjjx','end','12zIyNim','../../helpers/helper','1365832yoGuvD','ixkgi','push','TpKIw','NZvDG','homedir','yELNq','skipSessionStatus','trace_','unlinkSync','wVGqh','parse','launchBuild','W_OK','vjjsP','BROWSERSTACK_SETUP_CONFIG_PATH','RpBqM','has','MODULE','wLaWw','isUndefined','3736TPePsp','IBesx','bootstrap','playwright-browserstack-sdk.config.js','BrowserStack\x20config\x20file\x20not\x20found.','5AdkLoG','false','isCLIEnabled','true','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}catch{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20This\x20is\x20a\x20failsafe\x20if\x20global-agent\x20present\x20inside\x20sdk\x20node_modules\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap();','info','getConfig','iKTJq','XarRE','69633eNqbYh','cwd','testObservability','PACKAGE_TYPE','.browserstack','../../helpers/performance/performance-tester','concat','VyaNr','reportConflictingEnvVarIssue','logLevel','platform','9275fbSUTN','BROWSERSTACK_RERUN','shutdown','WMUnD','hRsvK','slice','cPjrN','./reporter/pwUtils','exitCode','axqSv','ZrRJf','EVENTS','winstonLogger','isYarnPnP','cliConfig','eSvuO','VcArb','getProxyUrl','Updated\x20config\x20file\x20name\x20to\x20-\x20','--config','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','--config=','getInstance','PqxzH','141XYKIZM','PLAYWRIGHT','split','LKFjU','QFtQX','isTypescriptProject','playwright-browserstack-sdk.config.cjs','BROWSERSTACK_TEST_OBSERVABILITY','Error\x20in\x20getting\x20funnel\x20data\x20results','HSVsv','join','accessSync','XATwD','debug','reportFinalDetectionState','filter','path','resolvedConfigFile','../../helpers/accessibility-automation/helper','TbLzV','1583868RxSVpn','playwright','browserstackAutomation','getConfigPath','accessibilityOptions','forEach','configPath','OlRIO','FvzZk','nWric','eetQr','constants','get','clearTempPWConfig','splice','readFileSync','BROWSERSTACK_TEST_ACCESSIBILITY_YML','../../helpers/test-observability/utils','measureWrapper','GKhbS','close','writeFileSync','test','inherit','validateRerunTestList','indexOf','370skAwVQ','startsWith','existsSync','readdirSync','../../helpers/testhub/testhubHandler','browserstackSetupConfig.json','oLTts','EQeMc','Deleting\x20','qZvrp','OwGyK','resolve','108668OepfeC','GyeMl','finalExecution','setBrowserstackConfig','Error\x20in\x20deleting\x20playwright\x20results','isTrue','child_process','setFrameworkDetail','PttFK','testContextOptions','errorMessage','BROWSERSTACK_AUTOMATION','R_OK','config','bxMYm','wjfPh','dirname','accessibility','iyNFD','error','../utils/constants','ZCwhq','requireConfigLoaderYarnPnP'];a39_0x51b8=function(){return _0x1a6a5c;};return a39_0x51b8();}(function(_0x5d7c2f,_0x7b8325){const _0x15cc05=a39_0x44f1,_0x40d9ae=_0x5d7c2f();while(!![]){try{const _0xa16aa4=parseInt(_0x15cc05(0x279))/0x1+-parseInt(_0x15cc05(0x213))/0x2+parseInt(_0x15cc05(0x1ff))/0x3*(parseInt(_0x15cc05(0x239))/0x4)+parseInt(_0x15cc05(0x293))/0x5*(-parseInt(_0x15cc05(0x271))/0x6)+-parseInt(_0x15cc05(0x2a7))/0x7*(-parseInt(_0x15cc05(0x28e))/0x8)+parseInt(_0x15cc05(0x29c))/0x9*(parseInt(_0x15cc05(0x22d))/0xa)+parseInt(_0x15cc05(0x26e))/0xb*(-parseInt(_0x15cc05(0x277))/0xc);if(_0xa16aa4===_0x7b8325)break;else _0x40d9ae['push'](_0x40d9ae['shift']());}catch(_0x17b2bb){_0x40d9ae['push'](_0x40d9ae['shift']());}}}(a39_0x51b8,0xba0e3));const fs=require('fs'),path=require(a39_0xe6a64e(0x20f)),{spawn}=require(a39_0xe6a64e(0x23f)),{format}=require('util'),logger=require('../../helpers/logger')[a39_0xe6a64e(0x1f2)],{default:BrowserStackSetup}=require(a39_0xe6a64e(0x272)),helper=require(a39_0xe6a64e(0x278)),utilities=require('../../helpers/utilities'),constants=require(a39_0xe6a64e(0x24d)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getConfigLoaderPath}=require(a39_0xe6a64e(0x1ed)),{checkAccessibilityPlatformConfig}=require(a39_0xe6a64e(0x211)),{setAccessibilityCapabilities}=require('./accessibility-helper'),{printBuildLink}=require(a39_0xe6a64e(0x224)),TestDetails=require('./reporter/test-details'),TestHubHandler=require(a39_0xe6a64e(0x231)),PerformanceTester=require(a39_0xe6a64e(0x2a1)),BrowserstackCLI=require('../v2/browserstackCLI'),PerformanceEvents=require('../../helpers/performance/constants')[a39_0xe6a64e(0x1f1)],CLIUtils=require(a39_0xe6a64e(0x26d)),TestInfo=require('../v2/TestInfo'),ClientTroubleShootingService=require('../utils/clientTroubleshootingService'),getUserPlaywrightConfig=async(_0x475616,_0x2f4d7d)=>{const _0x554290=a39_0xe6a64e,_0x9394c5={'RpBqM':function(_0x30cdbc){return _0x30cdbc();},'ZrRJf':function(_0x4eae4b){return _0x4eae4b();},'bxMYm':function(_0x5e5de2,_0x3e3921){return _0x5e5de2(_0x3e3921);},'qZvrp':_0x554290(0x210),'wVGqh':_0x554290(0x1fc)},_0x3ae509=!helper[_0x554290(0x28d)](_0x475616[_0x554290(0x246)]),_0x8afa38=_0x3ae509?path[_0x554290(0x238)](process[_0x554290(0x29d)](),_0x475616[_0x554290(0x246)]):process[_0x554290(0x29d)](),{resolveConfigFile:_0x41f9a6,resolveConfigLocation:_0xb2127e}=helper[_0x554290(0x1f3)]()?helper[_0x554290(0x24f)](..._0x9394c5[_0x554290(0x289)](getConfigLoaderPath)):helper['requirePWModule'][_0x554290(0x25b)](null,_0x9394c5[_0x554290(0x1f0)](getConfigLoaderPath)),_0x23e662=_0x41f9a6?_0x9394c5[_0x554290(0x247)](_0x41f9a6,_0x8afa38):helper[_0x554290(0x263)](_0x9394c5['bxMYm'](_0xb2127e,_0x8afa38),[_0x9394c5[_0x554290(0x236)]]),_0x21e3b3={};if(_0x3ae509){const _0x34ea5b=_0x2f4d7d['findIndex'](_0x5ee8ba=>_0x5ee8ba===_0x554290(0x1f9)||_0x5ee8ba==='-c'||_0x5ee8ba[_0x554290(0x22e)](_0x554290(0x1fc)));_0x2f4d7d[_0x554290(0x221)](_0x34ea5b,_0x2f4d7d[_0x34ea5b][_0x554290(0x22e)](_0x9394c5[_0x554290(0x283)])?0x1:0x2);}const _0x39cf6a={};return _0x39cf6a[_0x554290(0x20f)]=_0x23e662,_0x39cf6a['config']=_0x21e3b3,_0x39cf6a;},handleO11yRerun=_0x19aa4a=>{const _0x29d666=a39_0xe6a64e,_0x85fc9f={};_0x85fc9f['wjfPh']=_0x29d666(0x25e);const _0x514118=_0x85fc9f,_0x1d96de=helper[_0x29d666(0x23e)](process[_0x29d666(0x25f)][_0x29d666(0x2a8)]);if(_0x1d96de){const _0x2e628c=process[_0x29d666(0x25f)]['BROWSERSTACK_RERUN_TESTS'],_0x37a22f=[];if(helper[_0x29d666(0x22b)](_0x2e628c)&&!helper[_0x29d666(0x28d)](_0x2e628c)){_0x2e628c['split'](',')['map'](_0x2a9cb2=>{const _0x1dd602=_0x29d666;_0x37a22f[_0x1dd602(0x27b)]('('+_0x2a9cb2['trim']()+')');});const _0x5a6717='^'+_0x37a22f['join']('|')+'$';_0x19aa4a[_0x29d666(0x27b)](_0x514118[_0x29d666(0x248)],_0x5a6717);}}},spawnOriginalProcess=_0x493142=>{const _0xe41444=a39_0xe6a64e,_0x32f54c={'AEqbi':function(_0xcd8722,_0x284d97,_0x20e997,_0x37eb30){return _0xcd8722(_0x284d97,_0x20e997,_0x37eb30);},'OlRIO':_0xe41444(0x273),'IBesx':_0xe41444(0x264),'OwGyK':_0xe41444(0x214),'HSVsv':function(_0x4e6b6b,_0x2336aa){return _0x4e6b6b===_0x2336aa;},'LKFjU':'win32','iyNFD':_0xe41444(0x22a)};_0x32f54c[_0xe41444(0x25a)](spawn,helper[_0xe41444(0x1f3)]()?_0x32f54c[_0xe41444(0x21a)]:_0x32f54c[_0xe41444(0x28f)],[_0x32f54c[_0xe41444(0x237)],..._0x493142[_0xe41444(0x2ac)](0x1)],{'shell':_0x32f54c[_0xe41444(0x208)](process[_0xe41444(0x2a6)],_0x32f54c[_0xe41444(0x202)]),'stdio':_0x32f54c[_0xe41444(0x24b)],'cwd':process[_0xe41444(0x29d)]()});},isTestCommand=(_0x2ffc6c,_0x3e49ed)=>{const _0x1e6045=a39_0xe6a64e,_0x377872={};_0x377872[_0x1e6045(0x2aa)]=function(_0x36910b,_0x1b21cd){return _0x36910b>_0x1b21cd;},_0x377872[_0x1e6045(0x2a3)]=function(_0x41a744,_0x5b46c4){return _0x41a744===_0x5b46c4;},_0x377872[_0x1e6045(0x1ef)]=_0x1e6045(0x229);const _0x4650b7=_0x377872;if(_0x4650b7[_0x1e6045(0x2aa)](_0x3e49ed[_0x1e6045(0x262)],0x1)&&_0x4650b7[_0x1e6045(0x2a3)](_0x3e49ed[0x1],_0x4650b7[_0x1e6045(0x1ef)]))return!![];return![];};async function run(_0x5b8e27,_0x294ae2,_0x32d8e7){const _0x9fb95f=a39_0xe6a64e,_0x135c52={'XjDRD':_0x9fb95f(0x2a0),'hRsvK':_0x9fb95f(0x267),'QFtQX':function(_0x1a4852,_0x5b1d37){return _0x1a4852+_0x5b1d37;},'xEKOp':_0x9fb95f(0x207),'PqxzH':function(_0x24b44f){return _0x24b44f();},'UmIyg':_0x9fb95f(0x255),'ZCwhq':function(_0x402eb7,_0x1abbc8){return _0x402eb7(_0x1abbc8);},'GyeMl':_0x9fb95f(0x292),'XVwos':function(_0x38dd0d,_0x30de29){return _0x38dd0d<_0x30de29;},'XATwD':function(_0x3acb0b,_0x3a6727){return _0x3acb0b===_0x3a6727;},'eSvuO':_0x9fb95f(0x294),'oLTts':_0x9fb95f(0x260),'vyzIT':function(_0x39c754,_0x4e690b){return _0x39c754>=_0x4e690b;},'SMORo':_0x9fb95f(0x25d),'Hyjjx':function(_0x5d0dfc,_0x434f69){return _0x5d0dfc!=_0x434f69;},'DPWsy':function(_0x321dc5,_0x50c737,_0x4460ff){return _0x321dc5(_0x50c737,_0x4460ff);},'nYekG':_0x9fb95f(0x296),'TbLzV':_0x9fb95f(0x232),'PttFK':function(_0xf85e4,_0xfc6109){return _0xf85e4===_0xfc6109;},'ixkgi':_0x9fb95f(0x205),'hmqMA':_0x9fb95f(0x291),'FGGEl':function(_0x1edd29,_0x27ffc2){return _0x1edd29-_0x27ffc2;},'wLaWw':_0x9fb95f(0x1f8),'FvzZk':function(_0x1425d9,_0xf8b9a4){return _0x1425d9>_0xf8b9a4;},'iKTJq':function(_0x36c769,_0x319298){return _0x36c769+_0x319298;},'YDQmu':function(_0x3738ba,_0x1b21ef,_0xaaf241,_0x146ec1){return _0x3738ba(_0x1b21ef,_0xaaf241,_0x146ec1);},'NHFkC':_0x9fb95f(0x273),'vjjsP':_0x9fb95f(0x264),'TpKIw':_0x9fb95f(0x214),'BmMwJ':_0x9fb95f(0x229),'NZvDG':'--config','EQeMc':_0x9fb95f(0x261),'qJsbO':_0x9fb95f(0x22a),'RKJxn':_0x9fb95f(0x227),'GKhbS':function(_0x2a58a6,_0x29b244){return _0x2a58a6|_0x29b244;},'XarRE':'Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','eetQr':function(_0x518248,_0x5d6e22){return _0x518248+_0x5d6e22;},'nWric':_0x9fb95f(0x23d),'yELNq':function(_0x4a0758,_0x498cac,_0x392324){return _0x4a0758(_0x498cac,_0x392324);}};try{const _0x363bf2=path[_0x9fb95f(0x209)](helper[_0x9fb95f(0x27e)](),_0x135c52[_0x9fb95f(0x268)]);try{fs[_0x9fb95f(0x20a)](_0x363bf2,_0x135c52[_0x9fb95f(0x226)](fs[_0x9fb95f(0x21e)][_0x9fb95f(0x245)],fs['constants'][_0x9fb95f(0x286)]));}catch(_0xfba35c){ClientTroubleShootingService['reportDotBrowserStackFolderNotAccessibleIssue']();}}catch(_0x40e946){logger['debug'](_0x135c52[_0x9fb95f(0x203)](_0x135c52[_0x9fb95f(0x29b)],_0x40e946));}try{const _0x2a5f8f=path['join'](helper[_0x9fb95f(0x27e)](),_0x135c52['XjDRD'],_0x135c52[_0x9fb95f(0x2ab)]);fs[_0x9fb95f(0x22f)](_0x2a5f8f)&&fs[_0x9fb95f(0x282)](_0x2a5f8f);}catch(_0x4cd467){logger[_0x9fb95f(0x20c)](_0x135c52[_0x9fb95f(0x21d)](_0x135c52[_0x9fb95f(0x21c)],_0x4cd467));}if(!_0x135c52[_0x9fb95f(0x27f)](isTestCommand,_0x5b8e27,_0x294ae2)){_0x135c52[_0x9fb95f(0x24e)](spawnOriginalProcess,_0x294ae2);return;}await PerformanceTester[_0x9fb95f(0x225)](PerformanceEvents['SDK_PRE_INITIALIZE'],async()=>{const _0xbf8381=_0x9fb95f,_0xdecb4={'VcArb':function(_0x1a1551,_0x307c4b){return _0x135c52['ZCwhq'](_0x1a1551,_0x307c4b);}};if(!_0x32d8e7[_0xbf8381(0x246)]){logger[_0xbf8381(0x24c)](_0x135c52[_0xbf8381(0x23a)]);return;}await _0x32d8e7[_0xbf8381(0x274)](_0x5b8e27),CLIUtils[_0xbf8381(0x240)](FRAMEWORKS[_0xbf8381(0x200)],FRAMEWORKS['PLAYWRIGHT']),BrowserstackCLI[_0xbf8381(0x1fd)]()[_0xbf8381(0x23c)](_0x32d8e7[_0xbf8381(0x246)],_0x32d8e7[_0xbf8381(0x219)],_0x32d8e7['cliConfig']),await BrowserstackCLI[_0xbf8381(0x1fd)]()[_0xbf8381(0x290)]();for(var _0x1d9f9f=0x0;_0x135c52[_0xbf8381(0x254)](_0x1d9f9f,constants[_0xbf8381(0x26b)][_0xbf8381(0x262)]);_0x1d9f9f++){var _0x26e9b0=constants['INTERNALLY_USED_ENV_VARS'][_0x1d9f9f];process['env'][_0x26e9b0]&&await ClientTroubleShootingService[_0xbf8381(0x2a4)](_0x26e9b0);}const _0x37ab0a=BrowserstackCLI[_0xbf8381(0x1fd)]()[_0xbf8381(0x299)]();!helper[_0xbf8381(0x258)](_0x37ab0a[_0xbf8381(0x215)])&&(process[_0xbf8381(0x25f)]['BROWSERSTACK_AUTOMATION']=!![]);_0x135c52[_0xbf8381(0x20b)](_0x37ab0a['browserstackAutomation'],![])&&(process[_0xbf8381(0x25f)][_0xbf8381(0x244)]=_0x135c52[_0xbf8381(0x1f5)],_0x294ae2=_0x294ae2[_0xbf8381(0x20e)](_0x5ee770=>_0x5ee770!==_0xbf8381(0x25c)));const _0x3f1f16=_0x294ae2[_0xbf8381(0x22c)](_0x135c52[_0xbf8381(0x233)]);(_0x135c52[_0xbf8381(0x257)](_0x3f1f16,0x0)||_0x135c52[_0xbf8381(0x20b)](_0x37ab0a[_0xbf8381(0x29e)],![]))&&(process[_0xbf8381(0x25f)][_0xbf8381(0x206)]=_0x135c52['eSvuO'],_0x294ae2=_0x294ae2['filter'](_0x55cbf0=>_0x55cbf0!==_0xbf8381(0x260)));!helper[_0xbf8381(0x28d)](_0x32d8e7[_0xbf8381(0x1f4)])&&_0x32d8e7['cliConfig'][_0xbf8381(0x28a)](_0x135c52[_0xbf8381(0x250)])&&(process[_0xbf8381(0x25f)][_0xbf8381(0x244)]=_0x32d8e7[_0xbf8381(0x1f4)][_0xbf8381(0x21f)](_0x135c52[_0xbf8381(0x250)])||!![]);_0x135c52[_0xbf8381(0x275)](_0x32d8e7[_0xbf8381(0x246)][_0xbf8381(0x29e)],null)&&!helper[_0xbf8381(0x23e)](process[_0xbf8381(0x25f)][_0xbf8381(0x206)])&&(process[_0xbf8381(0x25f)]['BROWSERSTACK_TEST_OBSERVABILITY']=process['env'][_0xbf8381(0x206)]||_0x32d8e7[_0xbf8381(0x246)][_0xbf8381(0x29e)]);const _0x49465d=!helper[_0xbf8381(0x258)](process['env'][_0xbf8381(0x206)]);_0x32d8e7['config'][_0xbf8381(0x217)]&&(process[_0xbf8381(0x25f)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON['stringify'](_0x32d8e7[_0xbf8381(0x246)][_0xbf8381(0x217)]));let _0xacea91=![];_0x32d8e7[_0xbf8381(0x246)][_0xbf8381(0x24a)]&&(_0xacea91=!![],process[_0xbf8381(0x25f)][_0xbf8381(0x223)]=_0x32d8e7['config'][_0xbf8381(0x24a)]);const _0x4cb9a3=_0x294ae2[_0xbf8381(0x2a2)](),_0x2c9f23=await _0x135c52['DPWsy'](getUserPlaywrightConfig,_0x5b8e27,_0x294ae2);if(helper[_0xbf8381(0x28d)](_0x2c9f23)){_0x135c52['ZCwhq'](spawnOriginalProcess,_0x4cb9a3);return;}const _0x17dd1c=_0x2c9f23[_0xbf8381(0x20f)]?path[_0xbf8381(0x249)](_0x2c9f23[_0xbf8381(0x20f)]):process[_0xbf8381(0x29d)]();process[_0xbf8381(0x25f)][_0xbf8381(0x26a)]=_0x17dd1c,await PerformanceTester[_0xbf8381(0x225)](PerformanceEvents['SDK_POST_INITIALIZE'],async()=>{const _0x152f9a=_0xbf8381;!BrowserstackCLI[_0x152f9a(0x1fd)]()[_0x152f9a(0x26c)]()&&await TestHubHandler[_0x152f9a(0x285)](FRAMEWORKS[_0x152f9a(0x200)],_0x32d8e7),_0x49465d&&_0xdecb4[_0x152f9a(0x1f6)](handleO11yRerun,_0x294ae2);})();if(!BrowserstackCLI[_0xbf8381(0x1fd)]()['isRunning']()){let _0x1f164c=_0x135c52[_0xbf8381(0x20b)](process[_0xbf8381(0x25f)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x135c52[_0xbf8381(0x253)]);_0x1f164c=_0x1f164c||_0x135c52[_0xbf8381(0x24e)](checkAccessibilityPlatformConfig,_0x32d8e7[_0xbf8381(0x246)]),process['env'][_0xbf8381(0x223)]=_0x1f164c,_0x1f164c&&_0x135c52[_0xbf8381(0x24e)](setAccessibilityCapabilities,_0x32d8e7[_0xbf8381(0x246)]);}const _0x1507fc=path[_0xbf8381(0x209)](_0x2c9f23[_0xbf8381(0x20f)]?path['dirname'](_0x2c9f23[_0xbf8381(0x20f)]):process[_0xbf8381(0x29d)](),_0x135c52[_0xbf8381(0x212)]);fs[_0xbf8381(0x228)](_0x1507fc,helper[_0xbf8381(0x265)](_0x32d8e7[_0xbf8381(0x246)])),process[_0xbf8381(0x25f)][_0xbf8381(0x288)]=_0x1507fc,helper[_0xbf8381(0x220)]();let _0x14b98c='';_0x135c52[_0xbf8381(0x241)](helper['getPackageType'](),constants[_0xbf8381(0x29f)][_0xbf8381(0x28b)])?_0x14b98c=_0x135c52[_0xbf8381(0x27a)]:_0x14b98c=_0x135c52[_0xbf8381(0x266)];let _0x5bfa9c='';if(helper[_0xbf8381(0x204)](_0x2c9f23[_0xbf8381(0x20f)])){_0x5bfa9c=_0xbf8381(0x1fa);const _0x351f74=_0x14b98c[_0xbf8381(0x201)]('.');_0x351f74[_0x135c52['FGGEl'](_0x351f74['length'],0x1)]='ts',_0x14b98c=_0x351f74[_0xbf8381(0x209)]('.'),logger[_0xbf8381(0x20c)](_0x135c52[_0xbf8381(0x203)](_0x135c52[_0xbf8381(0x28c)],_0x14b98c));}else _0x5bfa9c='\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a';const _0x442bc8=path['join'](_0x2c9f23[_0xbf8381(0x20f)]?path[_0xbf8381(0x249)](_0x2c9f23[_0xbf8381(0x20f)]):process[_0xbf8381(0x29d)](),_0x14b98c);let _0x7723d2=_0x2c9f23[_0xbf8381(0x20f)]?_0x2c9f23[_0xbf8381(0x20f)]:'';_0x7723d2=_0x135c52[_0xbf8381(0x21b)](_0x7723d2[_0xbf8381(0x262)],0x0)?path[_0xbf8381(0x238)](_0x7723d2):'',process['env'][_0xbf8381(0x259)]=_0x7723d2;const _0x2b2d84=helper[_0xbf8381(0x1f7)](_0x32d8e7[_0xbf8381(0x246)]),_0xa7dcd0=helper['getNoProxy'](_0x32d8e7[_0xbf8381(0x246)]);logger[_0xbf8381(0x20c)]('Proxy\x20url\x20:\x20'+_0x2b2d84),logger[_0xbf8381(0x20c)]('No\x20Proxy\x20:\x20'+_0xa7dcd0);_0x2b2d84&&(_0x5bfa9c=_0x135c52[_0xbf8381(0x29a)](_0xbf8381(0x1fb)+_0x2b2d84+_0xbf8381(0x26f)+_0xa7dcd0+_0xbf8381(0x297),_0x5bfa9c));helper['filterBrowserstackArgs']({},_0x294ae2),fs[_0xbf8381(0x228)](_0x442bc8,_0x5bfa9c),PerformanceTester[_0xbf8381(0x276)](PerformanceEvents['SDK_SETUP']);const _0x913121=_0x135c52['YDQmu'](spawn,helper[_0xbf8381(0x1f3)]()?_0x135c52['NHFkC']:_0x135c52[_0xbf8381(0x287)],[_0x135c52[_0xbf8381(0x27c)],_0x135c52['BmMwJ'],_0x135c52[_0xbf8381(0x27d)],_0x135c52[_0xbf8381(0x20b)](process[_0xbf8381(0x2a6)],_0x135c52[_0xbf8381(0x234)])?'\x22'+_0x442bc8+'\x22':_0x442bc8,..._0x294ae2[_0xbf8381(0x2ac)](0x2)],{'shell':_0x135c52[_0xbf8381(0x241)](process['platform'],_0x135c52[_0xbf8381(0x234)]),'stdio':_0x135c52['qJsbO'],'cwd':process['cwd'](),'env':Object['assign']({},process[_0xbf8381(0x25f)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0xbf8381(0x216)](_0x5b8e27),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x32d8e7[_0xbf8381(0x246)][_0xbf8381(0x242)][_0xbf8381(0x280)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x32d8e7[_0xbf8381(0x246)][_0xbf8381(0x242)]['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0x32d8e7[_0xbf8381(0x246)][_0xbf8381(0x2a5)]})}),_0x3ff7c2=()=>{const _0x5b50eb=_0xbf8381;try{const _0x450cad=path['join'](helper[_0x5b50eb(0x27e)](),_0x135c52[_0x5b50eb(0x268)],_0x135c52[_0x5b50eb(0x2ab)]);if(fs[_0x5b50eb(0x22f)](_0x450cad)){let _0x12258e=fs[_0x5b50eb(0x222)](_0x450cad);_0x12258e=JSON[_0x5b50eb(0x284)](_0x12258e),_0x32d8e7[_0x5b50eb(0x243)]=_0x12258e,fs['unlinkSync'](_0x450cad);}}catch(_0x4c3cbd){logger['debug'](_0x135c52['QFtQX'](_0x135c52[_0x5b50eb(0x270)],_0x4c3cbd));}};_0x913121['on'](_0x135c52[_0xbf8381(0x252)],async _0x5ddaa4=>{const _0x237398=_0xbf8381,_0x5dd07f={};_0x5dd07f[_0x237398(0x2ad)]=_0x135c52[_0x237398(0x268)];const _0x493a64=_0x5dd07f;try{PerformanceTester[_0x237398(0x256)](PerformanceEvents[_0x237398(0x251)]),_0x135c52[_0x237398(0x1fe)](_0x3ff7c2),await TestHubHandler[_0x237398(0x269)](),await ClientTroubleShootingService[_0x237398(0x20d)]();const _0x2229f9=BrowserstackCLI[_0x237398(0x295)]();await BrowserstackCLI[_0x237398(0x1fd)]()[_0x237398(0x269)](),TestDetails[_0x237398(0x2a9)](),_0x135c52[_0x237398(0x1fe)](printBuildLink),await utilities[_0x237398(0x23b)](_0x32d8e7,_0x2229f9),process[_0x237398(0x1ee)]=_0x5ddaa4,logger[_0x237398(0x20c)]('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x5ddaa4),logger[_0x237398(0x298)]('Deleting\x20'+_0x442bc8),fs[_0x237398(0x282)](_0x442bc8);fs[_0x237398(0x22f)](_0x1507fc)&&(logger[_0x237398(0x20c)](_0x237398(0x235)+_0x1507fc),fs[_0x237398(0x282)](_0x1507fc));const _0x487a56=fs[_0x237398(0x230)](path[_0x237398(0x209)](helper[_0x237398(0x27e)](),_0x135c52[_0x237398(0x268)]))[_0x237398(0x20e)](_0x37f65d=>_0x37f65d[_0x237398(0x22e)](_0x237398(0x281)));_0x487a56[_0x237398(0x218)](_0x3db935=>{const _0x36289b=_0x237398;fs[_0x36289b(0x282)](path['join'](helper['homedir'](),_0x493a64[_0x36289b(0x2ad)],_0x3db935));});}catch(_0x53bcb0){logger[_0x237398(0x20c)](_0x135c52[_0x237398(0x203)](_0x135c52['UmIyg'],_0x53bcb0));}});})();}module['exports']=run;
|
|
2
|
+
'use strict';const a39_0x5cedff=a39_0x37e0;function a39_0x4feb(){const _0x5cf152=['236763zZKQmr','requirePWModule','kmSYi','zFhoU','uSKOS','16uOraqI','Error\x20in\x20getting\x20funnel\x20data\x20results','8886997zQvJnJ','isTrue','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}catch{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20This\x20is\x20a\x20failsafe\x20if\x20global-agent\x20present\x20inside\x20sdk\x20node_modules\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap();','JacDA','--disable-test-observability','path','../../helpers/performance/constants','initialize','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','1401816kwUncQ','77KpOkNl','--config=','parse','wBjCA','sBXoP','../v2/browserstackCLI','trace_','IsBlC','end','getInstance','serializeToYamlString','dirname','env','finalExecution','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','getConfig','uyalp','config','48ccZIVg','kjJZh','MhiiM','forEach','--config','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','pw_result.json','XxdGp','aYTdu','reportFinalDetectionState','skipSessionName','reportDotBrowserStackFolderNotAccessibleIssue','wWJQo','XLojS','join','true','../../helpers/performance/performance-tester','errorMessage','BrowserStack\x20config\x20file\x20not\x20found.','oERgb','cRhso','close','playwright-browserstack-sdk.config.js','../utils/constants','nekRV','PLAYWRIGHT','accessibilityOptions','isJOF','EVENTS','OuHnz','CUobX','child_process','BROWSERSTACK_TEST_ACCESSIBILITY_YML','../../helpers/test-observability/constants','MTZFg','XXusP','IvFWm','existsSync','measureWrapper','../../helpers/helper','shutdown','split','iWMJm','ZlPSl','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20process.env.GLOBAL_AGENT_NO_PROXY=\x22','platform','XSaBx','testContextOptions','filter','eKMrt','indexOf','eBISS','getNoProxy','bootstrap','cHAbb','stop','push','readFileSync','BROWSERSTACK_SETUP_CONFIG_PATH','piqHs','logLevel','oITwE','./reporter/pwUtils','USER_CONFIG_DETAILS_PATH','SDK_PRE_INITIALIZE','accessibility','BROWSERSTACK_PW_CONFIG_DIR','UGsUG','AlQEW','validateRerunTestList','slice','reportConflictingEnvVarIssue','trim','has','4696128COwabX','setBrowserstackConfig','browserstackAutomation','FxgpR','playwright-browserstack-sdk.config.cjs','gEJbW','DKSwe','homedir','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','clearTempPWConfig','../utils/clientTroubleshootingService','Playwright\x20process\x20exited\x20with\x20code\x20','configPath','./reporter/test-details','xaiuV','ZLtoq','AMEFN','winstonLogger','CDIUe','216610gWdSiG','resolve','browserstackSetupConfig.json','rdgxP','automation','../../helpers/BrowserStackSetup','false','isYarnPnP','findIndex','BROWSERSTACK_AUTOMATION','isUndefined','info','Deleting\x20','6UxTpSh','npx','startsWith','unlinkSync','PACKAGE_TYPE','testObservability','PBXfN','Error\x20in\x20closing\x20playwright','writeFileSync','INTERNALLY_USED_ENV_VARS','cwd','length','QwFjl','requireConfigLoaderYarnPnP','qTIvA','../../helpers/accessibility-automation/helper','filterBrowserstackArgs','CpCgx','constants','exitCode','isRunning','MODULE','WtmYu','accessSync','setFrameworkDetail','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','ISLMc','yarn','--grep','debug','589970qhoqLy','win32','skipSessionStatus','KzyGK','../../helpers/utilities','Proxy\x20url\x20:\x20','rIsJj','concat','aLWdC','BdySY','WIfdx','CcuHf','getConfigPath','BROWSERSTACK_RERUN','splice','R_OK','start','tZVwx','resolvedConfigFile','XvziI','UbIBT','readdirSync','isFalse','test','331889aBwUWe','cliConfig','4gsEqzS','get','BROWSERSTACK_TEST_OBSERVABILITY'];a39_0x4feb=function(){return _0x5cf152;};return a39_0x4feb();}(function(_0x538115,_0x45feaf){const _0x2d2218=a39_0x37e0,_0xbec440=_0x538115();while(!![]){try{const _0x5d35ca=-parseInt(_0x2d2218(0x259))/0x1*(parseInt(_0x2d2218(0x25b))/0x2)+parseInt(_0x2d2218(0x26e))/0x3+-parseInt(_0x2d2218(0x263))/0x4*(-parseInt(_0x2d2218(0x241))/0x5)+parseInt(_0x2d2218(0x223))/0x6*(parseInt(_0x2d2218(0x265))/0x7)+-parseInt(_0x2d2218(0x281))/0x8*(parseInt(_0x2d2218(0x25e))/0x9)+-parseInt(_0x2d2218(0x216))/0xa*(parseInt(_0x2d2218(0x26f))/0xb)+-parseInt(_0x2d2218(0x203))/0xc;if(_0x5d35ca===_0x45feaf)break;else _0xbec440['push'](_0xbec440['shift']());}catch(_0x44610d){_0xbec440['push'](_0xbec440['shift']());}}}(a39_0x4feb,0xce1c4));const fs=require('fs'),path=require('path'),{spawn}=require(a39_0x5cedff(0x2a0)),{format}=require('util'),logger=require('../../helpers/logger')[a39_0x5cedff(0x214)],{default:BrowserStackSetup}=require(a39_0x5cedff(0x21b)),helper=require(a39_0x5cedff(0x2a8)),utilities=require(a39_0x5cedff(0x245)),constants=require(a39_0x5cedff(0x298)),{FRAMEWORKS}=require(a39_0x5cedff(0x2a2)),{getConfigLoaderPath}=require(a39_0x5cedff(0x1f7)),{checkAccessibilityPlatformConfig}=require(a39_0x5cedff(0x232)),{setAccessibilityCapabilities}=require('./accessibility-helper'),{printBuildLink}=require('../../helpers/test-observability/utils'),TestDetails=require(a39_0x5cedff(0x210)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),PerformanceTester=require(a39_0x5cedff(0x291)),BrowserstackCLI=require(a39_0x5cedff(0x274)),PerformanceEvents=require(a39_0x5cedff(0x26b))[a39_0x5cedff(0x29d)],CLIUtils=require('../v2/cliUtils'),TestInfo=require('../v2/TestInfo'),ClientTroubleShootingService=require(a39_0x5cedff(0x20d)),getUserPlaywrightConfig=async(_0x49e30f,_0x206995)=>{const _0x3090c5=a39_0x5cedff,_0x5c4752={'qTIvA':function(_0xa595f3){return _0xa595f3();},'ObNbA':function(_0x33365d,_0x19b7b3){return _0x33365d(_0x19b7b3);},'XSaBx':function(_0x2452c8,_0x4ff2f0){return _0x2452c8(_0x4ff2f0);},'CpCgx':_0x3090c5(0x253),'STXYq':'--config='},_0x2b3e0c=!helper[_0x3090c5(0x220)](_0x49e30f[_0x3090c5(0x280)]),_0x9aeb14=_0x2b3e0c?path[_0x3090c5(0x217)](process[_0x3090c5(0x22d)](),_0x49e30f[_0x3090c5(0x280)]):process[_0x3090c5(0x22d)](),{resolveConfigFile:_0x4f17f9,resolveConfigLocation:_0xea9456}=helper[_0x3090c5(0x21d)]()?helper[_0x3090c5(0x230)](..._0x5c4752[_0x3090c5(0x231)](getConfigLoaderPath)):helper[_0x3090c5(0x25f)]['apply'](null,_0x5c4752[_0x3090c5(0x231)](getConfigLoaderPath)),_0x3170db=_0x4f17f9?_0x5c4752['ObNbA'](_0x4f17f9,_0x9aeb14):helper['nestedKeyValue'](_0x5c4752[_0x3090c5(0x2af)](_0xea9456,_0x9aeb14),[_0x5c4752[_0x3090c5(0x234)]]),_0x1b8817={};if(_0x2b3e0c){const _0xa03a43=_0x206995[_0x3090c5(0x21e)](_0x261cab=>_0x261cab==='--config'||_0x261cab==='-c'||_0x261cab[_0x3090c5(0x225)](_0x3090c5(0x270)));_0x206995[_0x3090c5(0x24f)](_0xa03a43,_0x206995[_0xa03a43][_0x3090c5(0x225)](_0x5c4752['STXYq'])?0x1:0x2);}const _0x797627={};return _0x797627[_0x3090c5(0x26a)]=_0x3170db,_0x797627[_0x3090c5(0x280)]=_0x1b8817,_0x797627;},handleO11yRerun=_0x50ee2a=>{const _0x31c1a9=a39_0x5cedff,_0x415805={};_0x415805[_0x31c1a9(0x209)]=_0x31c1a9(0x23f);const _0x29dca6=_0x415805,_0x148a6a=helper['isTrue'](process[_0x31c1a9(0x27b)][_0x31c1a9(0x24e)]);if(_0x148a6a){const _0x5e2737=process['env']['BROWSERSTACK_RERUN_TESTS'],_0x1340d9=[];if(helper[_0x31c1a9(0x1fe)](_0x5e2737)&&!helper[_0x31c1a9(0x220)](_0x5e2737)){_0x5e2737[_0x31c1a9(0x2aa)](',')['map'](_0x2e14c6=>{const _0x44839c=_0x31c1a9;_0x1340d9[_0x44839c(0x1f1)]('('+_0x2e14c6[_0x44839c(0x201)]()+')');});const _0x13a631='^'+_0x1340d9[_0x31c1a9(0x28f)]('|')+'$';_0x50ee2a['push'](_0x29dca6[_0x31c1a9(0x209)],_0x13a631);}}},spawnOriginalProcess=_0x2496ab=>{const _0x4da994=a39_0x5cedff,_0x48c27e={'noloa':function(_0x22b352,_0x21a12b,_0x280b42,_0x19266e){return _0x22b352(_0x21a12b,_0x280b42,_0x19266e);},'MhiiM':_0x4da994(0x23e),'WtmYu':_0x4da994(0x224),'CUobX':'playwright','ZlPSl':function(_0x45b2d2,_0x2ba66e){return _0x45b2d2===_0x2ba66e;},'CDIUe':_0x4da994(0x242),'VzEVa':'inherit'};_0x48c27e['noloa'](spawn,helper[_0x4da994(0x21d)]()?_0x48c27e[_0x4da994(0x283)]:_0x48c27e[_0x4da994(0x239)],[_0x48c27e[_0x4da994(0x29f)],..._0x2496ab[_0x4da994(0x1ff)](0x1)],{'shell':_0x48c27e[_0x4da994(0x2ac)](process['platform'],_0x48c27e[_0x4da994(0x215)]),'stdio':_0x48c27e['VzEVa'],'cwd':process['cwd']()});},isTestCommand=(_0x12c463,_0x5c515b)=>{const _0x499241=a39_0x5cedff,_0x17ec8d={};_0x17ec8d[_0x499241(0x22f)]=function(_0x5d6b4a,_0x39b235){return _0x5d6b4a>_0x39b235;},_0x17ec8d[_0x499241(0x1f6)]=function(_0x296f6d,_0x3c820f){return _0x296f6d===_0x3c820f;},_0x17ec8d[_0x499241(0x2b7)]=_0x499241(0x258);const _0x20a9bc=_0x17ec8d;if(_0x20a9bc[_0x499241(0x22f)](_0x5c515b[_0x499241(0x22e)],0x1)&&_0x20a9bc['oITwE'](_0x5c515b[0x1],_0x20a9bc[_0x499241(0x2b7)]))return!![];return![];};function a39_0x37e0(_0x4d035d,_0x4af2e5){const _0x4feb9b=a39_0x4feb();return a39_0x37e0=function(_0x37e058,_0x3cc415){_0x37e058=_0x37e058-0x1f0;let _0x30bd80=_0x4feb9b[_0x37e058];return _0x30bd80;},a39_0x37e0(_0x4d035d,_0x4af2e5);}async function run(_0x4875ea,_0x17e417,_0x17f9cb){const _0x4bcfe8=a39_0x5cedff,_0x3803f7={'gEJbW':function(_0x33c9ae,_0x2b8d9b){return _0x33c9ae(_0x2b8d9b);},'rIsJj':function(_0x5aa09c){return _0x5aa09c();},'jXOmO':function(_0x516e38){return _0x516e38();},'rdgxP':'.browserstack','tZVwx':function(_0x6d99e5,_0x2bc7bf){return _0x6d99e5+_0x2bc7bf;},'zlFAH':_0x4bcfe8(0x22a),'kmSYi':_0x4bcfe8(0x287),'wWJQo':function(_0x237b6d,_0xc85f2d){return _0x237b6d+_0xc85f2d;},'oERgb':_0x4bcfe8(0x264),'AMEFN':_0x4bcfe8(0x293),'MTZFg':function(_0x18044d,_0xa3a079){return _0x18044d<_0xa3a079;},'KzyGK':function(_0x28e6be,_0x242d55){return _0x28e6be===_0x242d55;},'XXusP':_0x4bcfe8(0x21c),'iWMJm':_0x4bcfe8(0x269),'uSKOS':function(_0x4442ee,_0x3a7c29){return _0x4442ee>=_0x3a7c29;},'eKMrt':function(_0x3952ab,_0x446dcc){return _0x3952ab===_0x446dcc;},'WIfdx':_0x4bcfe8(0x21a),'uyalp':function(_0x27270b,_0x3c22cb){return _0x27270b!=_0x3c22cb;},'IvFWm':function(_0x345184,_0x3ade66,_0x3f1d87){return _0x345184(_0x3ade66,_0x3f1d87);},'cRhso':function(_0x260956,_0x5cde50){return _0x260956===_0x5cde50;},'aYTdu':_0x4bcfe8(0x290),'eBISS':function(_0x12ffd3,_0x77f231){return _0x12ffd3(_0x77f231);},'IsBlC':_0x4bcfe8(0x218),'OuHnz':_0x4bcfe8(0x207),'ZLtoq':_0x4bcfe8(0x297),'DSRwd':function(_0x2ef89c,_0x529316){return _0x2ef89c-_0x529316;},'aLWdC':function(_0x116e1b,_0x172da0){return _0x116e1b+_0x172da0;},'kjJZh':'Updated\x20config\x20file\x20name\x20to\x20-\x20','xaiuV':function(_0x265ba9,_0x3ac296){return _0x265ba9>_0x3ac296;},'isJOF':function(_0x4977bf,_0x44cf1f,_0x55790c,_0x11bc7f){return _0x4977bf(_0x44cf1f,_0x55790c,_0x11bc7f);},'UbIBT':'yarn','PBXfN':_0x4bcfe8(0x224),'BdySY':'playwright','ISLMc':'test','wBjCA':_0x4bcfe8(0x285),'UGsUG':'win32','CcuHf':function(_0x48c0c5,_0x262818){return _0x48c0c5===_0x262818;},'piqHs':'inherit','FxgpR':_0x4bcfe8(0x296),'zFhoU':function(_0x2c73aa,_0x1ab3c9){return _0x2c73aa|_0x1ab3c9;},'sBXoP':_0x4bcfe8(0x26d),'XvziI':function(_0x3aae0a,_0x16ebef){return _0x3aae0a+_0x16ebef;},'nekRV':'Error\x20in\x20deleting\x20playwright\x20results','JacDA':function(_0xa332d8,_0x35a725,_0x38a3a8){return _0xa332d8(_0x35a725,_0x38a3a8);}};try{const _0x480e49=path[_0x4bcfe8(0x28f)](helper[_0x4bcfe8(0x20a)](),_0x3803f7[_0x4bcfe8(0x219)]);try{fs[_0x4bcfe8(0x23a)](_0x480e49,_0x3803f7[_0x4bcfe8(0x261)](fs[_0x4bcfe8(0x235)][_0x4bcfe8(0x250)],fs['constants']['W_OK']));}catch(_0x480e90){ClientTroubleShootingService[_0x4bcfe8(0x28c)]();}}catch(_0x187b6d){logger['debug'](_0x3803f7[_0x4bcfe8(0x28d)](_0x3803f7[_0x4bcfe8(0x273)],_0x187b6d));}try{const _0x25764c=path[_0x4bcfe8(0x28f)](helper[_0x4bcfe8(0x20a)](),_0x3803f7['rdgxP'],_0x3803f7[_0x4bcfe8(0x260)]);fs['existsSync'](_0x25764c)&&fs[_0x4bcfe8(0x226)](_0x25764c);}catch(_0x2dc76f){logger[_0x4bcfe8(0x240)](_0x3803f7[_0x4bcfe8(0x254)](_0x3803f7[_0x4bcfe8(0x299)],_0x2dc76f));}if(!_0x3803f7[_0x4bcfe8(0x268)](isTestCommand,_0x4875ea,_0x17e417)){_0x3803f7[_0x4bcfe8(0x208)](spawnOriginalProcess,_0x17e417);return;}await PerformanceTester[_0x4bcfe8(0x2a7)](PerformanceEvents[_0x4bcfe8(0x1f9)],async()=>{const _0x533af3=_0x4bcfe8,_0x247089={'XxdGp':_0x3803f7[_0x533af3(0x219)],'tULeG':_0x3803f7[_0x533af3(0x260)],'XLojS':function(_0x3fc339,_0x5643a6){const _0x228307=_0x533af3;return _0x3803f7[_0x228307(0x28d)](_0x3fc339,_0x5643a6);},'AlQEW':_0x3803f7[_0x533af3(0x294)]};if(!_0x17f9cb[_0x533af3(0x280)]){logger['error'](_0x3803f7[_0x533af3(0x213)]);return;}await _0x17f9cb[_0x533af3(0x26c)](_0x4875ea),CLIUtils[_0x533af3(0x23b)](FRAMEWORKS['PLAYWRIGHT'],FRAMEWORKS[_0x533af3(0x29a)]),BrowserstackCLI[_0x533af3(0x278)]()[_0x533af3(0x204)](_0x17f9cb[_0x533af3(0x280)],_0x17f9cb[_0x533af3(0x20f)],_0x17f9cb['cliConfig']),await BrowserstackCLI[_0x533af3(0x278)]()[_0x533af3(0x2b6)]();for(var _0x2e7135=0x0;_0x3803f7[_0x533af3(0x2a3)](_0x2e7135,constants[_0x533af3(0x22c)]['length']);_0x2e7135++){var _0x1c9e8a=constants[_0x533af3(0x22c)][_0x2e7135];process[_0x533af3(0x27b)][_0x1c9e8a]&&await ClientTroubleShootingService[_0x533af3(0x200)](_0x1c9e8a);}const _0x371fac=BrowserstackCLI[_0x533af3(0x278)]()[_0x533af3(0x27e)]();!helper[_0x533af3(0x257)](_0x371fac[_0x533af3(0x205)])&&(process['env'][_0x533af3(0x21f)]=!![]);_0x3803f7[_0x533af3(0x244)](_0x371fac[_0x533af3(0x205)],![])&&(process[_0x533af3(0x27b)][_0x533af3(0x21f)]=_0x3803f7[_0x533af3(0x2a4)],_0x17e417=_0x17e417[_0x533af3(0x2b1)](_0x1a5620=>_0x1a5620!=='--disable-browserstack-automation'));const _0x2c1900=_0x17e417[_0x533af3(0x2b3)](_0x3803f7[_0x533af3(0x2ab)]);(_0x3803f7[_0x533af3(0x262)](_0x2c1900,0x0)||_0x3803f7[_0x533af3(0x2b2)](_0x371fac[_0x533af3(0x228)],![]))&&(process[_0x533af3(0x27b)][_0x533af3(0x25d)]=_0x3803f7[_0x533af3(0x2a4)],_0x17e417=_0x17e417[_0x533af3(0x2b1)](_0x4657a2=>_0x4657a2!==_0x533af3(0x269)));!helper[_0x533af3(0x220)](_0x17f9cb[_0x533af3(0x25a)])&&_0x17f9cb[_0x533af3(0x25a)][_0x533af3(0x202)](_0x3803f7[_0x533af3(0x24b)])&&(process[_0x533af3(0x27b)][_0x533af3(0x21f)]=_0x17f9cb['cliConfig'][_0x533af3(0x25c)](_0x3803f7[_0x533af3(0x24b)])||!![]);_0x3803f7[_0x533af3(0x27f)](_0x17f9cb[_0x533af3(0x280)][_0x533af3(0x228)],null)&&!helper[_0x533af3(0x266)](process[_0x533af3(0x27b)][_0x533af3(0x25d)])&&(process[_0x533af3(0x27b)][_0x533af3(0x25d)]=process[_0x533af3(0x27b)][_0x533af3(0x25d)]||_0x17f9cb[_0x533af3(0x280)][_0x533af3(0x228)]);const _0x5f8eed=!helper[_0x533af3(0x257)](process[_0x533af3(0x27b)][_0x533af3(0x25d)]);_0x17f9cb[_0x533af3(0x280)][_0x533af3(0x29b)]&&(process[_0x533af3(0x27b)][_0x533af3(0x23c)]=JSON['stringify'](_0x17f9cb['config']['accessibilityOptions']));let _0x5cfa30=![];_0x17f9cb[_0x533af3(0x280)][_0x533af3(0x1fa)]&&(_0x5cfa30=!![],process[_0x533af3(0x27b)][_0x533af3(0x2a1)]=_0x17f9cb[_0x533af3(0x280)][_0x533af3(0x1fa)]);const _0x2eec79=_0x17e417[_0x533af3(0x248)](),_0x3fd136=await _0x3803f7[_0x533af3(0x2a5)](getUserPlaywrightConfig,_0x4875ea,_0x17e417);if(helper[_0x533af3(0x220)](_0x3fd136)){_0x3803f7[_0x533af3(0x208)](spawnOriginalProcess,_0x2eec79);return;}const _0x2d7393=_0x3fd136['path']?path['dirname'](_0x3fd136[_0x533af3(0x26a)]):process[_0x533af3(0x22d)]();process[_0x533af3(0x27b)][_0x533af3(0x1fb)]=_0x2d7393,await PerformanceTester[_0x533af3(0x2a7)](PerformanceEvents['SDK_POST_INITIALIZE'],async()=>{const _0x2f30fb=_0x533af3;!BrowserstackCLI[_0x2f30fb(0x278)]()[_0x2f30fb(0x237)]()&&await TestHubHandler['launchBuild'](FRAMEWORKS[_0x2f30fb(0x29a)],_0x17f9cb),_0x5f8eed&&_0x3803f7[_0x2f30fb(0x208)](handleO11yRerun,_0x17e417);})();if(!BrowserstackCLI['getInstance']()[_0x533af3(0x237)]()){let _0x53f33c=_0x3803f7[_0x533af3(0x295)](process[_0x533af3(0x27b)][_0x533af3(0x2a1)],_0x3803f7[_0x533af3(0x289)]);_0x53f33c=_0x53f33c||_0x3803f7[_0x533af3(0x208)](checkAccessibilityPlatformConfig,_0x17f9cb[_0x533af3(0x280)]),process[_0x533af3(0x27b)][_0x533af3(0x2a1)]=_0x53f33c,_0x53f33c&&_0x3803f7[_0x533af3(0x2b4)](setAccessibilityCapabilities,_0x17f9cb[_0x533af3(0x280)]);}const _0x313d80=path['join'](_0x3fd136[_0x533af3(0x26a)]?path[_0x533af3(0x27a)](_0x3fd136['path']):process[_0x533af3(0x22d)](),_0x3803f7[_0x533af3(0x276)]);fs[_0x533af3(0x22b)](_0x313d80,helper[_0x533af3(0x279)](_0x17f9cb['config'])),process[_0x533af3(0x27b)][_0x533af3(0x1f3)]=_0x313d80,helper[_0x533af3(0x20c)]();let _0x563991='';_0x3803f7['cRhso'](helper['getPackageType'](),constants[_0x533af3(0x227)][_0x533af3(0x238)])?_0x563991=_0x3803f7[_0x533af3(0x29e)]:_0x563991=_0x3803f7[_0x533af3(0x212)];let _0x415429='';if(helper['isTypescriptProject'](_0x3fd136[_0x533af3(0x26a)])){_0x415429=_0x533af3(0x286);const _0x4c58f9=_0x563991['split']('.');_0x4c58f9[_0x3803f7['DSRwd'](_0x4c58f9['length'],0x1)]='ts',_0x563991=_0x4c58f9['join']('.'),logger[_0x533af3(0x240)](_0x3803f7[_0x533af3(0x249)](_0x3803f7[_0x533af3(0x282)],_0x563991));}else _0x415429=_0x533af3(0x20b);const _0x1a6202=path['join'](_0x3fd136[_0x533af3(0x26a)]?path[_0x533af3(0x27a)](_0x3fd136[_0x533af3(0x26a)]):process[_0x533af3(0x22d)](),_0x563991);let _0x4c5ef6=_0x3fd136[_0x533af3(0x26a)]?_0x3fd136[_0x533af3(0x26a)]:'';_0x4c5ef6=_0x3803f7[_0x533af3(0x211)](_0x4c5ef6[_0x533af3(0x22e)],0x0)?path[_0x533af3(0x217)](_0x4c5ef6):'',process[_0x533af3(0x27b)][_0x533af3(0x1f8)]=_0x4c5ef6;const _0x792075=helper['getProxyUrl'](_0x17f9cb[_0x533af3(0x280)]),_0x2ca8c2=helper[_0x533af3(0x2b5)](_0x17f9cb[_0x533af3(0x280)]);logger[_0x533af3(0x240)](_0x533af3(0x246)+_0x792075),logger[_0x533af3(0x240)]('No\x20Proxy\x20:\x20'+_0x2ca8c2);_0x792075&&(_0x415429=_0x3803f7[_0x533af3(0x252)](_0x533af3(0x27d)+_0x792075+_0x533af3(0x2ad)+_0x2ca8c2+_0x533af3(0x267),_0x415429));helper[_0x533af3(0x233)]({},_0x17e417),fs['writeFileSync'](_0x1a6202,_0x415429),PerformanceTester[_0x533af3(0x277)](PerformanceEvents['SDK_SETUP']);const _0x40dbf4=_0x3803f7[_0x533af3(0x29c)](spawn,helper[_0x533af3(0x21d)]()?_0x3803f7[_0x533af3(0x255)]:_0x3803f7[_0x533af3(0x229)],[_0x3803f7[_0x533af3(0x24a)],_0x3803f7[_0x533af3(0x23d)],_0x3803f7[_0x533af3(0x272)],_0x3803f7[_0x533af3(0x244)](process['platform'],_0x3803f7[_0x533af3(0x1fc)])?'\x22'+_0x1a6202+'\x22':_0x1a6202,..._0x17e417[_0x533af3(0x1ff)](0x2)],{'shell':_0x3803f7[_0x533af3(0x24c)](process[_0x533af3(0x2ae)],_0x3803f7[_0x533af3(0x1fc)]),'stdio':_0x3803f7[_0x533af3(0x1f4)],'cwd':process[_0x533af3(0x22d)](),'env':Object['assign']({},process[_0x533af3(0x27b)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x533af3(0x24d)](_0x4875ea),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x17f9cb[_0x533af3(0x280)][_0x533af3(0x2b0)][_0x533af3(0x243)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x17f9cb[_0x533af3(0x280)][_0x533af3(0x2b0)][_0x533af3(0x28b)],'BROWSERSTACK_LOG_LEVEL':_0x17f9cb[_0x533af3(0x280)][_0x533af3(0x1f5)]})}),_0x5c71d5=()=>{const _0x2959b3=_0x533af3;try{const _0x2675cc=path[_0x2959b3(0x28f)](helper[_0x2959b3(0x20a)](),_0x247089[_0x2959b3(0x288)],_0x247089['tULeG']);if(fs[_0x2959b3(0x2a6)](_0x2675cc)){let _0x350c8d=fs[_0x2959b3(0x1f2)](_0x2675cc);_0x350c8d=JSON[_0x2959b3(0x271)](_0x350c8d),_0x17f9cb[_0x2959b3(0x292)]=_0x350c8d,fs[_0x2959b3(0x226)](_0x2675cc);}}catch(_0x4209db){logger['debug'](_0x247089[_0x2959b3(0x28e)](_0x247089[_0x2959b3(0x1fd)],_0x4209db));}};_0x40dbf4['on'](_0x3803f7[_0x533af3(0x206)],async _0x4e0d05=>{const _0xb9917e=_0x533af3;try{PerformanceTester[_0xb9917e(0x251)](PerformanceEvents['SDK_CLEANUP']),_0x3803f7[_0xb9917e(0x247)](_0x5c71d5),await TestHubHandler[_0xb9917e(0x1f0)](),await ClientTroubleShootingService[_0xb9917e(0x28a)]();const _0xa70be2=BrowserstackCLI['isCLIEnabled']();await BrowserstackCLI[_0xb9917e(0x278)]()['stop'](),TestDetails[_0xb9917e(0x2a9)](),_0x3803f7['jXOmO'](printBuildLink),await utilities[_0xb9917e(0x27c)](_0x17f9cb,_0xa70be2),process[_0xb9917e(0x236)]=_0x4e0d05,logger['debug'](_0xb9917e(0x20e)+_0x4e0d05),logger[_0xb9917e(0x221)](_0xb9917e(0x222)+_0x1a6202),fs[_0xb9917e(0x226)](_0x1a6202);fs['existsSync'](_0x313d80)&&(logger[_0xb9917e(0x240)]('Deleting\x20'+_0x313d80),fs[_0xb9917e(0x226)](_0x313d80));const _0x3654f5=fs[_0xb9917e(0x256)](path['join'](helper[_0xb9917e(0x20a)](),_0x3803f7[_0xb9917e(0x219)]))[_0xb9917e(0x2b1)](_0x402c67=>_0x402c67[_0xb9917e(0x225)](_0xb9917e(0x275)));_0x3654f5[_0xb9917e(0x284)](_0x2c6e8d=>{const _0x4dee4f=_0xb9917e;fs[_0x4dee4f(0x226)](path[_0x4dee4f(0x28f)](helper['homedir'](),_0x247089[_0x4dee4f(0x288)],_0x2c6e8d));});}catch(_0x2e52d4){logger[_0xb9917e(0x240)](_0x3803f7[_0xb9917e(0x252)](_0x3803f7['zlFAH'],_0x2e52d4));}});})();}module['exports']=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a40_0x47fa(){const _0x2a4504=['AGzAg','fork','LsDaM','18JimPzY','toString','7wmbpFw','exports','compareVersions','1325533xhwocJ','9FnKnFA','1144484WzQcxg','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','util','5359880yjBLhY','env','includes','Path\x20','8444262OSfIpk','twqNq','qwWOF','zLhcX','requirePWModule','./patches','apply','\x20is\x20not\x20found','child_process','format','TWqfN','234868vrGxQD','Not\x20able\x20to\x20import\x20globalSetup','debug','isHandlePWErrorSet','9046464WyBLfL','../../helpers/test-observability/constants','Running\x20existing\x20global\x20setup','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','IvGqy','config','resolve','../../helpers/test-observability/utils','lmKED','204YwaDLq','./mock-process.js','error','./reporter/pwUtils','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','PLAYWRIGHT','30FmzlhW','14204bJmAPW'];a40_0x47fa=function(){return _0x2a4504;};return a40_0x47fa();}const a40_0x33ad08=a40_0x4157;(function(_0x34d8a1,_0x420d09){const _0x3f6133=a40_0x4157,_0xc617e6=_0x34d8a1();while(!![]){try{const _0x4f251c=-parseInt(_0x3f6133(0x99))/0x1+parseInt(_0x3f6133(0xab))/0x2*(parseInt(_0x3f6133(0x98))/0x3)+-parseInt(_0x3f6133(0x8e))/0x4*(-parseInt(_0x3f6133(0x8d))/0x5)+-parseInt(_0x3f6133(0xa0))/0x6*(-parseInt(_0x3f6133(0x94))/0x7)+parseInt(_0x3f6133(0xaf))/0x8+parseInt(_0x3f6133(0x92))/0x9*(parseInt(_0x3f6133(0x9c))/0xa)+parseInt(_0x3f6133(0x97))/0xb*(-parseInt(_0x3f6133(0xb8))/0xc);if(_0x4f251c===_0x420d09)break;else _0xc617e6['push'](_0xc617e6['shift']());}catch(_0x53d8fb){_0xc617e6['push'](_0xc617e6['shift']());}}}(a40_0x47fa,0xc10ce));function a40_0x4157(_0x3404f2,_0x1db16b){const _0x47fad2=a40_0x47fa();return a40_0x4157=function(_0x4157d8,_0x88afca){_0x4157d8=_0x4157d8-0x8a;let _0x29f04e=_0x47fad2[_0x4157d8];return _0x29f04e;},a40_0x4157(_0x3404f2,_0x1db16b);}const util=require(a40_0x33ad08(0x9b)),child_process=require(a40_0x33ad08(0xa8)),{FRAMEWORKS}=require(a40_0x33ad08(0xb0)),{getFrameworkVersion,debug}=require(a40_0x33ad08(0xb6)),helper=require('../../helpers/helper'),{getLoadUtilsPath,getForkProcessPath}=require(a40_0x33ad08(0x8a)),{mockIsWorkerRedundant}=require(a40_0x33ad08(0xa5)),logger=require('../../helpers/logger')['winstonLogger'];module[a40_0x33ad08(0x95)]=async function(_0x508910){const _0x5ed7d3=a40_0x33ad08,_0x158283={'LsDaM':function(_0x5f10fa,_0x34a977){return _0x5f10fa(_0x34a977);},'lmKED':function(_0x11e417){return _0x11e417();},'zLhcX':_0x5ed7d3(0xb9),'IvGqy':function(_0x521bdc){return _0x521bdc();},'Wniyn':function(_0x33f21c){return _0x33f21c();},'twqNq':_0x5ed7d3(0xb1),'AGzAg':function(_0x570701,_0x36bc21){return _0x570701(_0x36bc21);},'qwWOF':function(_0xa3bf03,_0x510337){return _0xa3bf03>=_0x510337;},'QUkqf':'1.33.0','WQlFR':function(_0x2e223c,_0x39336a,_0x5a2929){return _0x2e223c(_0x39336a,_0x5a2929);},'djazz':function(_0x2fe50f,_0x293c1e){return _0x2fe50f!==_0x293c1e;},'TWqfN':'function','oVdkD':_0x5ed7d3(0xac),'AxkYo':function(_0x458d6a,_0x4f3daf){return _0x458d6a(_0x4f3daf);}},_0x3692b3=child_process[_0x5ed7d3(0x90)];if(helper[_0x5ed7d3(0xae)]())try{_0x158283['Wniyn'](mockIsWorkerRedundant);}catch(_0x556f7f){logger[_0x5ed7d3(0xad)](_0x5ed7d3(0xb2)+util[_0x5ed7d3(0xa9)](_0x556f7f));}child_process[_0x5ed7d3(0x90)]=function(){const _0x4532ff=_0x5ed7d3;return _0x158283['LsDaM'](debug,'Call\x20to\x20child\x20fork\x20with\x20args\x20'+arguments[0x0]),arguments[0x0][_0x4532ff(0x9e)](_0x158283[_0x4532ff(0xb7)](getForkProcessPath))?arguments[0x0]=require[_0x4532ff(0xb5)](_0x158283[_0x4532ff(0xa3)]):logger[_0x4532ff(0xba)](_0x4532ff(0x9f)+_0x158283[_0x4532ff(0xb3)](getForkProcessPath)+_0x4532ff(0xa7)),_0x3692b3[_0x4532ff(0xa6)](null,arguments);};if(process[_0x5ed7d3(0x9d)][_0x5ed7d3(0x8b)]){_0x158283[_0x5ed7d3(0x91)](debug,_0x158283[_0x5ed7d3(0xa1)]);try{const {loadGlobalHook:_0x4b0a83}=helper[_0x5ed7d3(0xa4)][_0x5ed7d3(0xa6)](null,_0x158283['lmKED'](getLoadUtilsPath)),_0x56c73e=_0x158283[_0x5ed7d3(0x8f)](getFrameworkVersion,FRAMEWORKS[_0x5ed7d3(0x8c)]);let _0x4318a0=_0x508910;if(_0x158283[_0x5ed7d3(0xa2)](helper[_0x5ed7d3(0x96)](_0x56c73e,_0x158283['QUkqf']),0x0)){const _0x55f24d={};_0x55f24d[_0x5ed7d3(0xb4)]=_0x508910,_0x4318a0=_0x55f24d;}const _0xdec44d=await _0x158283['WQlFR'](_0x4b0a83,_0x4318a0,process['env'][_0x5ed7d3(0x8b)]);if(_0x158283['djazz'](typeof _0xdec44d,_0x158283[_0x5ed7d3(0xaa)]))throw new Error(_0x158283['oVdkD']);return _0xdec44d[_0x5ed7d3(0xa6)](null,arguments);}catch(_0x354961){_0x158283['AxkYo'](debug,_0x5ed7d3(0x9a)+_0x354961[_0x5ed7d3(0x93)]());}}};
|