browserstack-node-sdk 1.55.4 → 1.55.5
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 +3 -2
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.js +1 -0
- 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
package/src/helpers/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a120_0xfb3a1f=a120_0x2ce6;(function(_0x51b5ae,_0x5dfce0){const _0x5941cf=a120_0x2ce6,_0x2877cb=_0x51b5ae();while(!![]){try{const _0x271f58=-parseInt(_0x5941cf(0x15f))/0x1*(parseInt(_0x5941cf(0x15b))/0x2)+parseInt(_0x5941cf(0x173))/0x3*(-parseInt(_0x5941cf(0x13c))/0x4)+-parseInt(_0x5941cf(0x136))/0x5+parseInt(_0x5941cf(0x146))/0x6*(parseInt(_0x5941cf(0x13a))/0x7)+-parseInt(_0x5941cf(0x161))/0x8+parseInt(_0x5941cf(0x137))/0x9*(parseInt(_0x5941cf(0x14d))/0xa)+-parseInt(_0x5941cf(0x143))/0xb*(-parseInt(_0x5941cf(0x150))/0xc);if(_0x271f58===_0x5dfce0)break;else _0x2877cb['push'](_0x2877cb['shift']());}catch(_0x578d64){_0x2877cb['push'](_0x2877cb['shift']());}}}(a120_0x1035,0x444e8));const winston=require(a120_0xfb3a1f(0x175)),path=require('path'),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME,DEBUG_CLI_LOG_FILE_NAME}=require(a120_0xfb3a1f(0x13e)),tempLogDir=a120_0xfb3a1f(0x176);let redactRegex=null,lastConfigHash='';const logFormat=winston[a120_0xfb3a1f(0x138)](_0x17f2f0=>{const _0xe48fe6=a120_0xfb3a1f,_0x2299a5={};_0x2299a5[_0xe48fe6(0x165)]=function(_0x1a8eb9,_0x188056){return _0x1a8eb9!==_0x188056;},_0x2299a5[_0xe48fe6(0x14c)]=_0xe48fe6(0x134),_0x2299a5[_0xe48fe6(0x158)]=function(_0x30c7ab,_0xc5dbad){return _0x30c7ab+_0xc5dbad;},_0x2299a5[_0xe48fe6(0x170)]=function(_0x557410,_0x4a3b7a){return _0x557410!==_0x4a3b7a;},_0x2299a5[_0xe48fe6(0x127)]=function(_0x42d01a,_0x5a97e7){return _0x42d01a>_0x5a97e7;},_0x2299a5[_0xe48fe6(0x151)]='[REDACTED]';const _0x46a67f=_0x2299a5;_0x46a67f[_0xe48fe6(0x165)](typeof _0x17f2f0['message'],_0x46a67f[_0xe48fe6(0x14c)])&&(_0x17f2f0['message']=JSON[_0xe48fe6(0x133)](_0x17f2f0['message']));const _0x1b63f2=global[_0xe48fe6(0x129)]&&global['config']['userName']||'',_0x3e5193=global[_0xe48fe6(0x129)]&&global[_0xe48fe6(0x129)][_0xe48fe6(0x13f)]||'',_0x5b161f=_0x46a67f[_0xe48fe6(0x158)](_0x46a67f[_0xe48fe6(0x158)](_0x1b63f2,'|'),_0x3e5193);if(_0x46a67f[_0xe48fe6(0x170)](_0x5b161f,lastConfigHash)){lastConfigHash=_0x5b161f;const _0x1add94=[_0x1b63f2,_0x3e5193]['filter'](Boolean);if(_0x46a67f[_0xe48fe6(0x127)](_0x1add94[_0xe48fe6(0x132)],0x0)){const _0x3e6983=_0x1add94[_0xe48fe6(0x148)](_0x53a125=>_0x53a125[_0xe48fe6(0x152)](/[.*+?^${}()|[\]\\]/g,_0xe48fe6(0x149)))[_0xe48fe6(0x167)]('|');redactRegex=new RegExp(_0x3e6983,'g');}else redactRegex=null;}return redactRegex&&(_0x17f2f0[_0xe48fe6(0x157)]=_0x17f2f0[_0xe48fe6(0x157)][_0xe48fe6(0x152)](redactRegex,_0x46a67f[_0xe48fe6(0x151)])),_0x17f2f0;}),fetchLogDir=()=>{const _0x225e12=a120_0xfb3a1f;if(process[_0x225e12(0x16b)][_0x225e12(0x14b)])return process[_0x225e12(0x16b)][_0x225e12(0x14b)];else!fs[_0x225e12(0x15d)](tempLogDir)&&fs['mkdirSync'](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),getInitialLogLevel=()=>{const _0x3351d0=a120_0xfb3a1f,_0x561344={};_0x561344[_0x3351d0(0x12b)]=_0x3351d0(0x14f);const _0x14e5e0=_0x561344,_0x48c313=process[_0x3351d0(0x16b)]['BROWSERSTACK_LOG_LEVEL'],_0x3ed9da=Object[_0x3351d0(0x128)](winston[_0x3351d0(0x129)]['npm'][_0x3351d0(0x145)]);if(_0x48c313&&_0x3ed9da[_0x3351d0(0x16c)](_0x48c313[_0x3351d0(0x164)]()))return _0x48c313[_0x3351d0(0x164)]();return _0x14e5e0[_0x3351d0(0x12b)];},initialLogLevel=getInitialLogLevel(),a120_0x4ccd67={};a120_0x4ccd67['name']='console.info',a120_0x4ccd67[a120_0xfb3a1f(0x168)]=initialLogLevel;const transports={'loggerConsole':new winston[(a120_0xfb3a1f(0x13d))]['Console'](a120_0x4ccd67),'loggerFile':new winston[(a120_0xfb3a1f(0x13d))][(a120_0xfb3a1f(0x14a))]({'filename':path[a120_0xfb3a1f(0x167)](logDir,a120_0xfb3a1f(0x140)),'level':initialLogLevel}),'debugLoggerFile':new winston[(a120_0xfb3a1f(0x13d))][(a120_0xfb3a1f(0x14a))]({'filename':path[a120_0xfb3a1f(0x167)](logDir,a120_0xfb3a1f(0x160)),'level':'silly'}),'debugCliLoggerFile':new winston[(a120_0xfb3a1f(0x13d))][(a120_0xfb3a1f(0x14a))]({'filename':path[a120_0xfb3a1f(0x167)](logDir,DEBUG_CLI_LOG_FILE_NAME),'level':a120_0xfb3a1f(0x144)}),'buildLinkTransport':new winston[(a120_0xfb3a1f(0x13d))]['File']({'filename':path[a120_0xfb3a1f(0x167)](logDir,a120_0xfb3a1f(0x140)),'level':a120_0xfb3a1f(0x144)})},automationTransports={};process[a120_0xfb3a1f(0x16b)]['BROWSERSTACK_AUTOMATION_LOGS']===a120_0xfb3a1f(0x169)&&(automationTransports[a120_0xfb3a1f(0x16d)]=new winston[(a120_0xfb3a1f(0x13d))]['File']({'filename':path[a120_0xfb3a1f(0x167)](logDir,a120_0xfb3a1f(0x147)),'level':a120_0xfb3a1f(0x144)}));transports[a120_0xfb3a1f(0x12c)]['on'](a120_0xfb3a1f(0x13b),_0x310497=>{const _0x9fa5f5=a120_0xfb3a1f,_0x255738={};_0x255738['Dawbj']=function(_0x1c6648,_0x26406b){return _0x1c6648===_0x26406b;},_0x255738[_0x9fa5f5(0x162)]=_0x9fa5f5(0x12f),_0x255738[_0x9fa5f5(0x159)]=_0x9fa5f5(0x12d);const _0x1140bd=_0x255738;if(_0x1140bd['Dawbj'](_0x310497[_0x9fa5f5(0x15e)],_0x1140bd['tkMiL'])){console[_0x9fa5f5(0x176)](_0x1140bd[_0x9fa5f5(0x159)],_0x310497[_0x9fa5f5(0x157)]);return;}throw _0x310497;});const a120_0x5e7a35={};a120_0x5e7a35['format']=a120_0xfb3a1f(0x12e);const a120_0x284338={};a120_0x284338[a120_0xfb3a1f(0x168)]=!![];const winstonLoggerParams={'format':winston[a120_0xfb3a1f(0x138)][a120_0xfb3a1f(0x155)](winston['format']['timestamp'](a120_0x5e7a35),winston[a120_0xfb3a1f(0x138)][a120_0xfb3a1f(0x166)](a120_0x284338),winston[a120_0xfb3a1f(0x138)][a120_0xfb3a1f(0x126)](_0x5d0cd7=>_0x5d0cd7[a120_0xfb3a1f(0x156)]+a120_0xfb3a1f(0x135)+_0x5d0cd7['level']+':\x20'+_0x5d0cd7[a120_0xfb3a1f(0x157)])),'transports':[transports[a120_0xfb3a1f(0x12c)]]},a120_0xa02e91={};a120_0xa02e91[a120_0xfb3a1f(0x138)]=a120_0xfb3a1f(0x12e);const a120_0x11dbf4={};a120_0x11dbf4[a120_0xfb3a1f(0x168)]=!![];function a120_0x1035(){const _0x387b47=['EPIPE\x20error\x20occurred\x20in\x20loggerConsole:','YYYY-MM-DD\x20HH:mm:ss','EPIPE','BROWSERSTACK_AUTOMATION_LOGS','winstonLogger','length','stringify','string','\x20-\x20','1567250nlCgug','67887MgcTye','format','createLogger','710927idveYY','error','1660452mjrRZv','transports','../bin/utils/constants','accessKey','/usage.log','http','debug','110lDlMsG','silly','levels','30boWOAW','automation.log','map','\x5c$&','File','BROWSERSTACK_INTERNAL_LOG_DIR','aYplk','290OihXDo','debugLoggerFile','info','964740JPxmTr','HAjNk','replace','warn','RDDWL','combine','timestamp','message','qETPf','hHtFf','fileLogger','123986qiZPMa','loggerFile','existsSync','code','1FqXUeR','/usage-debug.log','3681296iODIev','tkMiL','remove','toLowerCase','Idwdd','colorize','join','level','true','automationLogger','env','includes','automationLoggerFile','initialize','buildLinkTransport','kPZHw','uncolorize','logDir','3kuFvPJ','add','winston','log','getLogDir','printf','jaFFy','keys','config','buildLogger','ivhqP','loggerConsole'];a120_0x1035=function(){return _0x387b47;};return a120_0x1035();}const winstonFileLoggerParams={'format':winston['format'][a120_0xfb3a1f(0x155)](winston['format'][a120_0xfb3a1f(0x156)](a120_0xa02e91),winston[a120_0xfb3a1f(0x138)][a120_0xfb3a1f(0x166)](a120_0x11dbf4),winston['format'][a120_0xfb3a1f(0x126)](_0xe6ac08=>_0xe6ac08[a120_0xfb3a1f(0x168)]+':\x20'+_0xe6ac08[a120_0xfb3a1f(0x157)])),'transports':[]},a120_0x243e7f={};function a120_0x2ce6(_0x122afe,_0x462016){const _0x1035c5=a120_0x1035();return a120_0x2ce6=function(_0x2ce606,_0x1c89e8){_0x2ce606=_0x2ce606-0x125;let _0x57f9de=_0x1035c5[_0x2ce606];return _0x57f9de;},a120_0x2ce6(_0x122afe,_0x462016);}a120_0x243e7f['format']=a120_0xfb3a1f(0x12e);const a120_0x28a119={};a120_0x28a119[a120_0xfb3a1f(0x168)]=!![];const a120_0x1d7cb1={};a120_0x1d7cb1[a120_0xfb3a1f(0x168)]=a120_0xfb3a1f(0x144);const BuildLoggerParams={'format':winston[a120_0xfb3a1f(0x138)][a120_0xfb3a1f(0x155)](winston[a120_0xfb3a1f(0x138)][a120_0xfb3a1f(0x156)](a120_0x243e7f),winston[a120_0xfb3a1f(0x138)][a120_0xfb3a1f(0x166)](a120_0x28a119),winston[a120_0xfb3a1f(0x138)][a120_0xfb3a1f(0x126)](_0x2ddf97=>_0x2ddf97[a120_0xfb3a1f(0x156)]+'\x20-\x20'+_0x2ddf97['level']+':\x20'+_0x2ddf97['message'])),'transports':[transports[a120_0xfb3a1f(0x16f)],new winston[(a120_0xfb3a1f(0x13d))]['Console'](a120_0x1d7cb1)]},a120_0x147017={};a120_0x147017[a120_0xfb3a1f(0x141)]=()=>{},a120_0x147017['info']=()=>{},a120_0x147017[a120_0xfb3a1f(0x153)]=()=>{},a120_0x147017[a120_0xfb3a1f(0x13b)]=()=>{},a120_0x147017[a120_0xfb3a1f(0x142)]=()=>{},a120_0x147017[a120_0xfb3a1f(0x144)]=()=>{},exports[a120_0xfb3a1f(0x16a)]=process[a120_0xfb3a1f(0x16b)][a120_0xfb3a1f(0x130)]===a120_0xfb3a1f(0x169)?winston['createLogger']({'format':winston[a120_0xfb3a1f(0x138)][a120_0xfb3a1f(0x155)](winston[a120_0xfb3a1f(0x138)][a120_0xfb3a1f(0x171)](),winston[a120_0xfb3a1f(0x138)][a120_0xfb3a1f(0x156)](),logFormat(),winston['format'][a120_0xfb3a1f(0x126)](_0x4a90f6=>_0x4a90f6[a120_0xfb3a1f(0x168)]+':\x20'+_0x4a90f6[a120_0xfb3a1f(0x157)])),'transports':[automationTransports[a120_0xfb3a1f(0x16d)]]}):a120_0x147017;const initialize=()=>{const _0x101df7=a120_0xfb3a1f,_0x1c033d={};_0x1c033d['RDDWL']=_0x101df7(0x144);const _0x1e67a6=_0x1c033d,_0x4dbf96=transports[_0x101df7(0x12c)]['level']||initialLogLevel;transports[_0x101df7(0x15c)]&&(exports['winstonLogger'][_0x101df7(0x163)](transports[_0x101df7(0x15c)]),exports['fileLogger'][_0x101df7(0x163)](transports['loggerFile'])),transports[_0x101df7(0x14e)]&&(exports[_0x101df7(0x131)]['remove'](transports['debugLoggerFile']),exports[_0x101df7(0x15a)]['remove'](transports[_0x101df7(0x14e)])),transports['loggerFile']=new winston[(_0x101df7(0x13d))][(_0x101df7(0x14a))]({'filename':path[_0x101df7(0x167)](exports[_0x101df7(0x172)],LOG_FILE_NAME),'level':_0x4dbf96}),transports[_0x101df7(0x14e)]=new winston[(_0x101df7(0x13d))][(_0x101df7(0x14a))]({'filename':path[_0x101df7(0x167)](exports[_0x101df7(0x172)],DEBUG_LOG_FILE_NAME),'level':_0x1e67a6[_0x101df7(0x154)]}),transports['debugCliLoggerFile']=new winston['transports'][(_0x101df7(0x14a))]({'filename':path['join'](exports[_0x101df7(0x172)],DEBUG_CLI_LOG_FILE_NAME),'level':_0x1e67a6[_0x101df7(0x154)]}),exports['winstonLogger'][_0x101df7(0x174)](transports['loggerFile']),exports[_0x101df7(0x131)][_0x101df7(0x174)](transports[_0x101df7(0x14e)]),exports[_0x101df7(0x15a)][_0x101df7(0x174)](transports['loggerFile']),exports['fileLogger'][_0x101df7(0x174)](transports[_0x101df7(0x14e)]);};exports[a120_0xfb3a1f(0x131)]=new winston[(a120_0xfb3a1f(0x139))](winstonLoggerParams),exports[a120_0xfb3a1f(0x15a)]=new winston[(a120_0xfb3a1f(0x139))](winstonFileLoggerParams),exports[a120_0xfb3a1f(0x12a)]=new winston[(a120_0xfb3a1f(0x139))](BuildLoggerParams),exports['logDir']=logDir,exports[a120_0xfb3a1f(0x125)]=()=>{const _0x3e1a3f=a120_0xfb3a1f;return exports[_0x3e1a3f(0x172)];},exports[a120_0xfb3a1f(0x13d)]=transports,exports[a120_0xfb3a1f(0x16e)]=initialize;logDir&&initialize();
|
|
1
|
+
const a120_0x331c47=a120_0x1a17;(function(_0x13510a,_0x4f1335){const _0xcbc4cc=a120_0x1a17,_0x4ffca1=_0x13510a();while(!![]){try{const _0x3bb8ca=parseInt(_0xcbc4cc(0x11f))/0x1*(-parseInt(_0xcbc4cc(0xe0))/0x2)+parseInt(_0xcbc4cc(0x119))/0x3+parseInt(_0xcbc4cc(0x11b))/0x4+-parseInt(_0xcbc4cc(0xf7))/0x5*(-parseInt(_0xcbc4cc(0x115))/0x6)+parseInt(_0xcbc4cc(0x103))/0x7*(-parseInt(_0xcbc4cc(0x113))/0x8)+-parseInt(_0xcbc4cc(0xf1))/0x9*(-parseInt(_0xcbc4cc(0xff))/0xa)+parseInt(_0xcbc4cc(0x109))/0xb;if(_0x3bb8ca===_0x4f1335)break;else _0x4ffca1['push'](_0x4ffca1['shift']());}catch(_0x17abad){_0x4ffca1['push'](_0x4ffca1['shift']());}}}(a120_0x2d76,0x3fa21));const winston=require(a120_0x331c47(0xe2)),path=require(a120_0x331c47(0xfe)),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME,DEBUG_CLI_LOG_FILE_NAME}=require('../bin/utils/constants'),tempLogDir=a120_0x331c47(0x105);let redactRegex=null,lastConfigHash='';const logFormat=winston[a120_0x331c47(0x102)](_0x50a62c=>{const _0x1b6294=a120_0x331c47,_0x338c26={};_0x338c26[_0x1b6294(0xe6)]=function(_0x1892d8,_0x141df9){return _0x1892d8!==_0x141df9;},_0x338c26[_0x1b6294(0xd2)]=_0x1b6294(0x117),_0x338c26[_0x1b6294(0xd1)]=function(_0x1c95a0,_0x1632ca){return _0x1c95a0+_0x1632ca;},_0x338c26[_0x1b6294(0xf0)]=function(_0x336a93,_0x780b3c){return _0x336a93+_0x780b3c;},_0x338c26['nLoUA']=function(_0x567eaa,_0x3b6d43){return _0x567eaa>_0x3b6d43;},_0x338c26[_0x1b6294(0x10e)]='[REDACTED]';const _0x3cfd24=_0x338c26;_0x3cfd24[_0x1b6294(0xe6)](typeof _0x50a62c['message'],_0x3cfd24['TnMPA'])&&(_0x50a62c[_0x1b6294(0x106)]=JSON['stringify'](_0x50a62c[_0x1b6294(0x106)]));const _0x1745aa=global[_0x1b6294(0x110)]&&global[_0x1b6294(0x110)][_0x1b6294(0xdf)]||'',_0x5abd1c=global[_0x1b6294(0x110)]&&global[_0x1b6294(0x110)][_0x1b6294(0xe9)]||'',_0x4809de=_0x3cfd24['DePQD'](_0x3cfd24['OSsqr'](_0x1745aa,'|'),_0x5abd1c);if(_0x3cfd24[_0x1b6294(0xe6)](_0x4809de,lastConfigHash)){lastConfigHash=_0x4809de;const _0x3a0c38=[_0x1745aa,_0x5abd1c][_0x1b6294(0x111)](Boolean);if(_0x3cfd24[_0x1b6294(0xcd)](_0x3a0c38[_0x1b6294(0x10c)],0x0)){const _0x4a831e=_0x3a0c38[_0x1b6294(0xe1)](_0x3e5849=>_0x3e5849['replace'](/[.*+?^${}()|[\]\\]/g,'\x5c$&'))['join']('|');redactRegex=new RegExp(_0x4a831e,'g');}else redactRegex=null;}return redactRegex&&(_0x50a62c[_0x1b6294(0x106)]=_0x50a62c[_0x1b6294(0x106)][_0x1b6294(0x11d)](redactRegex,_0x3cfd24[_0x1b6294(0x10e)])),_0x50a62c;}),fetchLogDir=()=>{const _0x147945=a120_0x331c47;if(process[_0x147945(0xfd)][_0x147945(0xfb)])return process['env'][_0x147945(0xfb)];else!fs[_0x147945(0xd6)](tempLogDir)&&fs[_0x147945(0x10d)](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),getInitialLogLevel=()=>{const _0xc25008=a120_0x331c47,_0x8d01c5={};_0x8d01c5['cPDvh']=_0xc25008(0xfa);const _0x52a7c0=_0x8d01c5,_0x292f14=process[_0xc25008(0xfd)]['BROWSERSTACK_LOG_LEVEL'],_0x3dfa73=Object[_0xc25008(0xef)](winston[_0xc25008(0x110)]['npm'][_0xc25008(0x114)]);if(_0x292f14&&_0x3dfa73[_0xc25008(0x10a)](_0x292f14[_0xc25008(0xea)]()))return _0x292f14[_0xc25008(0xea)]();return _0x52a7c0[_0xc25008(0xee)];},initialLogLevel=getInitialLogLevel(),a120_0x2257f0={};a120_0x2257f0[a120_0x331c47(0xce)]=a120_0x331c47(0xf5),a120_0x2257f0[a120_0x331c47(0xdd)]=initialLogLevel;const transports={'loggerConsole':new winston[(a120_0x331c47(0xdb))]['Console'](a120_0x2257f0),'loggerFile':new winston['transports'][(a120_0x331c47(0xf8))]({'filename':path[a120_0x331c47(0xda)](logDir,a120_0x331c47(0xeb)),'level':initialLogLevel}),'debugLoggerFile':new winston[(a120_0x331c47(0xdb))]['File']({'filename':path['join'](logDir,a120_0x331c47(0xf3)),'level':a120_0x331c47(0x112)}),'debugCliLoggerFile':new winston[(a120_0x331c47(0xdb))][(a120_0x331c47(0xf8))]({'filename':path['join'](logDir,DEBUG_CLI_LOG_FILE_NAME),'level':a120_0x331c47(0x112)}),'buildLinkTransport':new winston[(a120_0x331c47(0xdb))][(a120_0x331c47(0xf8))]({'filename':path['join'](logDir,'/usage.log'),'level':'silly'})},automationTransports={};process[a120_0x331c47(0xfd)][a120_0x331c47(0xec)]===a120_0x331c47(0x10b)&&(automationTransports[a120_0x331c47(0x104)]=new winston['transports'][(a120_0x331c47(0xf8))]({'filename':path[a120_0x331c47(0xda)](logDir,a120_0x331c47(0x11a)),'level':a120_0x331c47(0x112)}));transports[a120_0x331c47(0x11e)]['on'](a120_0x331c47(0x116),_0x43e129=>{const _0xa7d5a4=a120_0x331c47,_0x186069={};_0x186069[_0xa7d5a4(0xcf)]=function(_0x3028a5,_0x4cfac4){return _0x3028a5===_0x4cfac4;},_0x186069[_0xa7d5a4(0xd8)]=_0xa7d5a4(0x108),_0x186069[_0xa7d5a4(0x10f)]='EPIPE\x20error\x20occurred\x20in\x20loggerConsole:';const _0x5132f1=_0x186069;if(_0x5132f1[_0xa7d5a4(0xcf)](_0x43e129[_0xa7d5a4(0xe5)],_0x5132f1['pmYhw'])){console[_0xa7d5a4(0x105)](_0x5132f1['TUTHm'],_0x43e129[_0xa7d5a4(0x106)]);return;}throw _0x43e129;});const a120_0x78d858={};a120_0x78d858['format']=a120_0x331c47(0xe8);const a120_0x41fdd4={};a120_0x41fdd4[a120_0x331c47(0xdd)]=!![];const winstonLoggerParams={'format':winston[a120_0x331c47(0x102)]['combine'](winston[a120_0x331c47(0x102)][a120_0x331c47(0xfc)](a120_0x78d858),winston[a120_0x331c47(0x102)]['colorize'](a120_0x41fdd4),winston[a120_0x331c47(0x102)]['printf'](_0x2d9b50=>_0x2d9b50[a120_0x331c47(0xfc)]+a120_0x331c47(0x11c)+_0x2d9b50[a120_0x331c47(0xdd)]+':\x20'+_0x2d9b50[a120_0x331c47(0x106)])),'transports':[transports[a120_0x331c47(0x11e)]]},a120_0x28b861={};a120_0x28b861[a120_0x331c47(0x102)]=a120_0x331c47(0xe8);function a120_0x1a17(_0xfdcdca,_0x44b3fe){const _0x2d76e1=a120_0x2d76();return a120_0x1a17=function(_0x1a17ab,_0x5f3e08){_0x1a17ab=_0x1a17ab-0xcc;let _0x353812=_0x2d76e1[_0x1a17ab];return _0x353812;},a120_0x1a17(_0xfdcdca,_0x44b3fe);}const a120_0x4b6821={};a120_0x4b6821['level']=!![];const winstonFileLoggerParams={'format':winston['format'][a120_0x331c47(0xe7)](winston['format'][a120_0x331c47(0xfc)](a120_0x28b861),winston[a120_0x331c47(0x102)][a120_0x331c47(0x100)](a120_0x4b6821),winston['format'][a120_0x331c47(0x118)](_0x232e6a=>_0x232e6a[a120_0x331c47(0xdd)]+':\x20'+_0x232e6a[a120_0x331c47(0x106)])),'transports':[]},a120_0x500b79={};a120_0x500b79[a120_0x331c47(0x102)]=a120_0x331c47(0xe8);function a120_0x2d76(){const _0x5cfc1b=['fileLogger','code','dSZpj','combine','YYYY-MM-DD\x20HH:mm:ss','accessKey','toLowerCase','/usage.log','BROWSERSTACK_AUTOMATION_LOGS','http','cPDvh','keys','OSsqr','135ZAjWGn','createLogger','/usage-debug.log','buildLogger','console.info','getLogDir','529190HHfYQt','File','debugLoggerFile','info','BROWSERSTACK_INTERNAL_LOG_DIR','timestamp','env','path','31840ywJULp','colorize','add','format','364231YZrfGO','automationLoggerFile','log','message','XEzOE','EPIPE','779229XUbyFv','includes','true','length','mkdirSync','jKuzP','TUTHm','config','filter','silly','80VNasAq','levels','24pvpQMR','error','string','printf','1237803PzNAng','automation.log','874656RrIEQt','\x20-\x20','replace','loggerConsole','392245LTVBmL','initialize','nLoUA','name','cvcsI','debugCliLoggerFile','DePQD','TnMPA','automationLogger','Console','winstonLogger','existsSync','logDir','pmYhw','debug','join','transports','loggerFile','level','warn','userName','2KzmBAF','map','winston','remove'];a120_0x2d76=function(){return _0x5cfc1b;};return a120_0x2d76();}const a120_0x2a6f7f={};a120_0x2a6f7f[a120_0x331c47(0xdd)]=!![];const a120_0x43b6d4={};a120_0x43b6d4['level']=a120_0x331c47(0x112);const BuildLoggerParams={'format':winston[a120_0x331c47(0x102)][a120_0x331c47(0xe7)](winston[a120_0x331c47(0x102)][a120_0x331c47(0xfc)](a120_0x500b79),winston['format'][a120_0x331c47(0x100)](a120_0x2a6f7f),winston[a120_0x331c47(0x102)][a120_0x331c47(0x118)](_0x3874f3=>_0x3874f3[a120_0x331c47(0xfc)]+a120_0x331c47(0x11c)+_0x3874f3[a120_0x331c47(0xdd)]+':\x20'+_0x3874f3[a120_0x331c47(0x106)])),'transports':[transports['buildLinkTransport'],new winston[(a120_0x331c47(0xdb))][(a120_0x331c47(0xd4))](a120_0x43b6d4)]},a120_0x35baee={};a120_0x35baee[a120_0x331c47(0xed)]=()=>{},a120_0x35baee[a120_0x331c47(0xfa)]=()=>{},a120_0x35baee[a120_0x331c47(0xde)]=()=>{},a120_0x35baee[a120_0x331c47(0x116)]=()=>{},a120_0x35baee[a120_0x331c47(0xd9)]=()=>{},a120_0x35baee[a120_0x331c47(0x112)]=()=>{},exports[a120_0x331c47(0xd3)]=process[a120_0x331c47(0xfd)][a120_0x331c47(0xec)]===a120_0x331c47(0x10b)?winston[a120_0x331c47(0xf2)]({'format':winston[a120_0x331c47(0x102)][a120_0x331c47(0xe7)](winston[a120_0x331c47(0x102)]['uncolorize'](),winston[a120_0x331c47(0x102)]['timestamp'](),logFormat(),winston[a120_0x331c47(0x102)][a120_0x331c47(0x118)](_0x340cf9=>_0x340cf9[a120_0x331c47(0xdd)]+':\x20'+_0x340cf9['message'])),'transports':[automationTransports['automationLoggerFile']]}):a120_0x35baee;const initialize=()=>{const _0xf6dbef=a120_0x331c47,_0x35d750={};_0x35d750[_0xf6dbef(0x107)]=_0xf6dbef(0x112);const _0x5aa1f1=_0x35d750,_0x53420f=transports[_0xf6dbef(0x11e)][_0xf6dbef(0xdd)]||initialLogLevel;transports[_0xf6dbef(0xdc)]&&(exports[_0xf6dbef(0xd5)]['remove'](transports[_0xf6dbef(0xdc)]),exports[_0xf6dbef(0xe4)]['remove'](transports[_0xf6dbef(0xdc)])),transports[_0xf6dbef(0xf9)]&&(exports[_0xf6dbef(0xd5)][_0xf6dbef(0xe3)](transports[_0xf6dbef(0xf9)]),exports[_0xf6dbef(0xe4)][_0xf6dbef(0xe3)](transports[_0xf6dbef(0xf9)])),transports['loggerFile']=new winston['transports'][(_0xf6dbef(0xf8))]({'filename':path[_0xf6dbef(0xda)](exports[_0xf6dbef(0xd7)],LOG_FILE_NAME),'level':_0x53420f}),transports[_0xf6dbef(0xf9)]=new winston[(_0xf6dbef(0xdb))][(_0xf6dbef(0xf8))]({'filename':path[_0xf6dbef(0xda)](exports[_0xf6dbef(0xd7)],DEBUG_LOG_FILE_NAME),'level':_0x5aa1f1[_0xf6dbef(0x107)]}),transports[_0xf6dbef(0xd0)]=new winston[(_0xf6dbef(0xdb))][(_0xf6dbef(0xf8))]({'filename':path['join'](exports[_0xf6dbef(0xd7)],DEBUG_CLI_LOG_FILE_NAME),'level':_0x5aa1f1['XEzOE']}),exports[_0xf6dbef(0xd5)][_0xf6dbef(0x101)](transports[_0xf6dbef(0xdc)]),exports[_0xf6dbef(0xd5)]['add'](transports[_0xf6dbef(0xf9)]),exports[_0xf6dbef(0xe4)][_0xf6dbef(0x101)](transports['loggerFile']),exports['fileLogger'][_0xf6dbef(0x101)](transports[_0xf6dbef(0xf9)]);};exports[a120_0x331c47(0xd5)]=new winston[(a120_0x331c47(0xf2))](winstonLoggerParams),exports['fileLogger']=new winston[(a120_0x331c47(0xf2))](winstonFileLoggerParams),exports[a120_0x331c47(0xf4)]=new winston[(a120_0x331c47(0xf2))](BuildLoggerParams),exports[a120_0x331c47(0xd7)]=logDir,exports[a120_0x331c47(0xf6)]=()=>{const _0x5eabee=a120_0x331c47;return exports[_0x5eabee(0xd7)];},exports[a120_0x331c47(0xdb)]=transports,exports[a120_0x331c47(0xcc)]=initialize;logDir&&initialize();
|
package/src/helpers/metadata.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a121_0x545a(_0x505ce9,_0x1388b2){const _0x1cd708=a121_0x1cd7();return a121_0x545a=function(_0x545a3c,_0x1f0b02){_0x545a3c=_0x545a3c-0x10a;let _0xea2f3d=_0x1cd708[_0x545a3c];return _0xea2f3d;},a121_0x545a(_0x505ce9,_0x1388b2);}const a121_0xf791ac=a121_0x545a;(function(_0x5c329e,_0x4f66dd){const _0x335e32=a121_0x545a,_0x1c23f9=_0x5c329e();while(!![]){try{const _0x252c10=-parseInt(_0x335e32(0x113))/0x1+-parseInt(_0x335e32(0x11f))/0x2+parseInt(_0x335e32(0x110))/0x3+-parseInt(_0x335e32(0x120))/0x4*(-parseInt(_0x335e32(0x10b))/0x5)+parseInt(_0x335e32(0x111))/0x6+parseInt(_0x335e32(0x10f))/0x7*(-parseInt(_0x335e32(0x11e))/0x8)+-parseInt(_0x335e32(0x116))/0x9;if(_0x252c10===_0x4f66dd)break;else _0x1c23f9['push'](_0x1c23f9['shift']());}catch(_0x443713){_0x1c23f9['push'](_0x1c23f9['shift']());}}}(a121_0x1cd7,0x1acfe));function a121_0x1cd7(){const _0x5073a0=['set','GjGGU','lcnc','TBxJO','ncGkC','string','65AVinqv','qRMLE','warn','get','224GdLMEK','65877fNOxkS','868458lhSVLJ','zhONN','64875iMBVcm','GsevW','setGlobal','123975admGwS','./helper','The\x20metadata\x20object\x20is\x20not\x20valid.','length','testMeta-','testMeta','identifier','getGlobal','10432jPSPIJ','105184jrKuuW','35720IYPGZt','getCentralUser'];a121_0x1cd7=function(){return _0x5073a0;};return a121_0x1cd7();}const globals=require('./globals'),helper=require(a121_0xf791ac(0x117)),logger=require('./logger')['winstonLogger'];module['exports']=class TestMetadata{static[a121_0xf791ac(0x122)](_0x4d611a={}){const _0x751878=a121_0xf791ac,_0x181526={};_0x181526[_0x751878(0x10c)]='testRunUUID',_0x181526[_0x751878(0x126)]=function(_0x300846,_0x186a24){return _0x300846===_0x186a24;},_0x181526['otkcW']=_0x751878(0x10a),_0x181526[_0x751878(0x123)]=function(_0x3690ba,_0x33d276){return _0x3690ba<=_0x33d276;},_0x181526[_0x751878(0x114)]=_0x751878(0x11b),_0x181526['TBxJO']=_0x751878(0x118);const _0x166149=_0x181526,_0x1103b6=globals['getGlobal'](_0x166149[_0x751878(0x10c)]),_0x4bc880=_0x4d611a[_0x751878(0x11c)];helper[_0x751878(0x121)]()[_0x751878(0x124)]&&(_0x166149[_0x751878(0x126)](typeof _0x4bc880,_0x166149['otkcW'])&&_0x166149[_0x751878(0x123)](_0x4bc880[_0x751878(0x119)],0x28)?_0x1103b6?globals[_0x751878(0x115)](_0x751878(0x11a)+_0x1103b6,_0x4d611a):globals[_0x751878(0x115)](_0x166149[_0x751878(0x114)],_0x4d611a):logger[_0x751878(0x10d)](_0x166149[_0x751878(0x125)]));}static[a121_0xf791ac(0x10e)](_0x480ef5){const _0x34e3ca=a121_0xf791ac,_0x50f2a1={};_0x50f2a1[_0x34e3ca(0x112)]=_0x34e3ca(0x11b);const _0x4447f5=_0x50f2a1;if(helper['getCentralUser']()['lcnc'])return globals[_0x34e3ca(0x11d)](_0x34e3ca(0x11a)+_0x480ef5)||globals[_0x34e3ca(0x11d)](_0x4447f5['zhONN'])||{};return{};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a122_0x5bb1(_0xff3b69,_0x5d1f0a){const _0x33f894=a122_0x33f8();return a122_0x5bb1=function(_0x5bb156,_0x4d7891){_0x5bb156=_0x5bb156-0x14f;let _0x2633c1=_0x33f894[_0x5bb156];return _0x2633c1;},a122_0x5bb1(_0xff3b69,_0x5d1f0a);}const a122_0x32ce10=a122_0x5bb1;function a122_0x33f8(){const _0x2d44ec=['script','TbsnC','xjXGp','lpMZT','jkZxy','AUTOMATION_LOG_COMMANDS','name_','findElement','ZOVlH','toString','local','./performance/constants','aTCfO','isBrowserstackInfra','findElement\x20command\x20failed\x20with\x20cssPath:\x20','getNudgeLocalNotSetError','emlXR','KBfuI','ENMDU','Gvred','lyCap','util','JavascriptError','GuvGf','POST_EXECUTE','fKVhk','isSelfHealEnabled','overrideExecute','findElement\x20command\x20failed\x20with\x20','efxfk','uwfHh','silly','getGlobal','aiSdk_defaultLogDataEnabled','4163912hpFUov','356516kGfrUJ','ZxSxD','NUDGE_LOCAL_ERRORS','find','skipHealingSuccess','Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','Xrauo','1270UihUob','aiHeal_isHealingEnabled','6138RHwaZY','nestedKeyValue','./ai-sdk/autoHealHelper','setTcgToken','15JCNlOm','QyLGI','moYKm','args','9oGyJln','setTcgTokenStatus','debug','sUCQo','aiHeal:findElementSuccess','error','jqjBR','includes','format','][\x20SDK-AUTOMATION\x20]\x20','iwpnT','pkNYE','594642aBgUsn','getId','mHMqW','../bin/utils/constants','command','thnhO','./helper','name','aiHeal:setToken','HdWHs','vwvFE','xKGlw','Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','toISOString','IFRMv','./ai-sdk/aiSdkWrapper','162638SjybQa','url','./logger','get',';\x20Trying\x20to\x20heal','tvLmI','bstack:options','message','7510335cZXxiT','430544nGmLQP','cNRSd','jhvrV','Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','getSession','TxfSV','Successfully\x20healed\x20command\x20using\x20new\x20','request','./performance/performance-tester','mVOgI','372KDPrlP','initExecute','NxGRj','parameters_','iPQnQ','ziMzd','kflBH','JCrkv','jBpuF','Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20','value','mzbex','execute','getTcgTokenStatus','RjIcI','YOVcS','response','setAiSessionTimeStamp','body','measureWrapper','patchExecute','vTabv','info','JDVNl','aiHeal_isAuthenticated','mVHoB','OAZMP'];a122_0x33f8=function(){return _0x2d44ec;};return a122_0x33f8();}(function(_0x43e2a5,_0x48732e){const _0xd5a8a9=a122_0x5bb1,_0x50d5ee=_0x43e2a5();while(!![]){try{const _0x57ae1f=-parseInt(_0xd5a8a9(0x1cc))/0x1+-parseInt(_0xd5a8a9(0x167))/0x2*(-parseInt(_0xd5a8a9(0x1bc))/0x3)+parseInt(_0xd5a8a9(0x1af))/0x4+-parseInt(_0xd5a8a9(0x166))/0x5+-parseInt(_0xd5a8a9(0x171))/0x6*(-parseInt(_0xd5a8a9(0x15e))/0x7)+-parseInt(_0xd5a8a9(0x1ae))/0x8*(-parseInt(_0xd5a8a9(0x1c0))/0x9)+parseInt(_0xd5a8a9(0x1b6))/0xa*(-parseInt(_0xd5a8a9(0x1b8))/0xb);if(_0x57ae1f===_0x48732e)break;else _0x50d5ee['push'](_0x50d5ee['shift']());}catch(_0x539d52){_0x50d5ee['push'](_0x50d5ee['shift']());}}}(a122_0x33f8,0xea1bf));const {aiSdkWrapper}=require(a122_0x32ce10(0x15d)),{commandRepository}=require(a122_0x32ce10(0x1ba)),PerformanceTester=require(a122_0x32ce10(0x16f)),globals=require('./globals'),{winstonLogger:logger,automationLogger}=require(a122_0x32ce10(0x160)),helper=require(a122_0x32ce10(0x154)),constants=require(a122_0x32ce10(0x151)),{DRIVER_EVENT:PerformanceDriverEvents}=require(a122_0x32ce10(0x197)),util=require(a122_0x32ce10(0x1a1));exports[a122_0x32ce10(0x1a7)]=(_0x4f5e1c,_0x2272c7)=>{const _0x317f86=a122_0x32ce10,_0x2933d5={'GuvGf':'Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','mVHoB':function(_0x4f28ef,_0x33321a){return _0x4f28ef===_0x33321a;},'TbsnC':'NoSuchElementError','sUCQo':_0x317f86(0x1a2),'kflBH':_0x317f86(0x193),'HdWHs':_0x317f86(0x189),'emlXR':_0x317f86(0x1b7),'efxfk':'css\x20selector','ZxSxD':function(_0x47cde6,_0x33ba72){return _0x47cde6+_0x33ba72;},'OAZMP':function(_0x2d6b41,_0x2cb304){return _0x2d6b41+_0x2cb304;},'NxGRj':_0x317f86(0x19a),'IFRMv':_0x317f86(0x162),'QyLGI':_0x317f86(0x1a8),'lpMZT':'aiHeal:findElementFailure','fKVhk':function(_0x49203b){return _0x49203b();},'YOVcS':function(_0x53d128,_0x5ee618){return _0x53d128&&_0x5ee618;},'moYKm':function(_0x11118c,_0xd02b36){return _0x11118c+_0xd02b36;},'mHMqW':_0x317f86(0x1b4),'Xrauo':function(_0xecf2b1,_0x38ca7a){return _0xecf2b1+_0x38ca7a;},'thnhO':function(_0x46da43,_0x30d690){return _0x46da43+_0x30d690;},'lyCap':_0x317f86(0x16d),'vTabv':function(_0x3820fe,_0x136fbc){return _0x3820fe+_0x136fbc;},'lNnGw':_0x317f86(0x16a),'wwrOD':function(_0x4725e0,_0x7ceb1a){return _0x4725e0+_0x7ceb1a;},'vwvFE':function(_0x3e7fb0,_0x3f9357){return _0x3e7fb0+_0x3f9357;},'pkNYE':function(_0x19085b,_0xd626ca){return _0x19085b+_0xd626ca;},'TxfSV':'Healing\x20failed\x20for\x20command\x20using\x20','ZQHZa':_0x317f86(0x161),'cNRSd':_0x317f86(0x174),'uwfHh':_0x317f86(0x15f),'xjXGp':_0x317f86(0x15a),'jkZxy':_0x317f86(0x156),'ouwtC':_0x317f86(0x1ad),'aTCfO':_0x317f86(0x1c4),'JDVNl':function(_0xdca565){return _0xdca565();},'iwpnT':function(_0x4f7320,_0x571e6b){return _0x4f7320===_0x571e6b;},'ZOVlH':'executeAsyncScript','JCrkv':'executeScript','jBpuF':'string','mVOgI':'capability','xKGlw':'browserstack.local','iPQnQ':_0x317f86(0x164),'Gvred':_0x317f86(0x196)},_0x2db034=_0x4f5e1c[_0x317f86(0x185)]||(helper['nestedKeyValue'](_0x2272c7,[_0x2933d5[_0x317f86(0x170)],_0x2933d5[_0x317f86(0x159)]])||helper[_0x317f86(0x1b9)](_0x2272c7,[_0x2933d5[_0x317f86(0x170)],_0x2933d5[_0x317f86(0x175)],_0x2933d5[_0x317f86(0x19f)]]));if(!globals[_0x317f86(0x1ac)](_0x2933d5['HdWHs'])&&!globals[_0x317f86(0x1ac)](_0x2933d5[_0x317f86(0x19c)])&&_0x2db034)return;_0x4f5e1c[_0x317f86(0x185)]=!![],_0x4f5e1c[_0x317f86(0x172)]=_0x4f5e1c[_0x317f86(0x17d)],_0x4f5e1c[_0x317f86(0x17d)]=async _0x4c95d5=>{const _0xff893e=_0x317f86,_0x594c2a={'ziMzd':_0x2933d5[_0xff893e(0x157)],'jqjBR':_0x2933d5[_0xff893e(0x190)],'jhvrV':function(_0x2db836){const _0x3198e4=_0xff893e;return _0x2933d5[_0x3198e4(0x1a5)](_0x2db836);},'tvLmI':_0x2933d5['ouwtC'],'RjIcI':function(_0x3b2852,_0xf1ba25){const _0x5389ed=_0xff893e;return _0x2933d5[_0x5389ed(0x18a)](_0x3b2852,_0xf1ba25);},'PNoQH':_0x2933d5[_0xff893e(0x177)],'ENMDU':_0x2933d5[_0xff893e(0x19c)],'KBfuI':_0x2933d5[_0xff893e(0x198)],'mzbex':function(_0x5160db){const _0x464414=_0xff893e;return _0x2933d5[_0x464414(0x188)](_0x5160db);}};try{const _0x13e92c={};_0x13e92c[_0xff893e(0x152)]=_0x4c95d5[_0xff893e(0x192)],await PerformanceTester[_0xff893e(0x184)](PerformanceDriverEvents['PRE_EXECUTE'],async()=>{const _0x5bc3ae=_0xff893e;if(!commandRepository[_0x5bc3ae(0x17e)]()&&globals[_0x5bc3ae(0x1ac)](_0x594c2a[_0x5bc3ae(0x176)])){const _0x492e24=PerformanceTester[_0x5bc3ae(0x184)](_0x594c2a[_0x5bc3ae(0x1c6)],async()=>{const _0x5dfb71=_0x5bc3ae;try{commandRepository[_0x5dfb71(0x1c1)](!![]),await aiSdkWrapper[_0x5dfb71(0x1bb)]((await _0x4f5e1c[_0x5dfb71(0x16b)]())[_0x5dfb71(0x14f)]());const _0x333e2c=globals[_0x5dfb71(0x1ac)](_0x594c2a['ziMzd']);_0x333e2c&&commandRepository[_0x5dfb71(0x182)]((await _0x4f5e1c[_0x5dfb71(0x16b)]())[_0x5dfb71(0x14f)]());}catch(_0x257245){logger[_0x5dfb71(0x1c5)]('Error\x20in\x20handling\x20TCG\x20Auth:\x20'+_0x257245);}});await _0x594c2a[_0x5bc3ae(0x169)](_0x492e24);}},_0x13e92c)();const _0x55f56d=await _0x4f5e1c[_0xff893e(0x172)](_0x4c95d5);try{if(_0x2933d5[_0xff893e(0x1ca)](_0x4c95d5[_0xff893e(0x192)],_0x2933d5[_0xff893e(0x194)])||_0x2933d5['mVHoB'](_0x4c95d5[_0xff893e(0x192)],_0x2933d5[_0xff893e(0x178)])){const _0x129052=_0x4c95d5[_0xff893e(0x174)]&&_0x4c95d5[_0xff893e(0x174)][_0xff893e(0x18c)],_0x5ce9b6=_0x4c95d5['parameters_']&&_0x4c95d5['parameters_'][_0xff893e(0x1bf)],_0x1e97f2=_0x5ce9b6&&util[_0xff893e(0x1c8)]('%j',_0x5ce9b6);if(_0x129052&&_0x2933d5['iwpnT'](typeof _0x129052,_0x2933d5[_0xff893e(0x179)])){const _0x445fbb=constants[_0xff893e(0x191)][_0xff893e(0x1b2)](_0x90b1c2=>_0x129052['includes'](_0x90b1c2)||_0x1e97f2&&_0x1e97f2['includes'](_0x90b1c2));if(_0x445fbb){const _0x416635={};_0x416635[_0xff893e(0x152)]=_0x445fbb,_0x416635['parameters']=_0x5ce9b6;const _0x450565={};_0x450565[_0xff893e(0x183)]=_0x55f56d;const _0x5620c8={};_0x5620c8[_0xff893e(0x16e)]=_0x416635,_0x5620c8[_0xff893e(0x181)]=_0x450565,automationLogger[_0xff893e(0x1ab)]('['+new Date()[_0xff893e(0x15b)]()+_0xff893e(0x1c9)+util['format']('%j',_0x5620c8));}}}}catch(_0x35d850){logger['silly'](_0xff893e(0x17a)+_0x35d850[_0xff893e(0x165)]);}return await PerformanceTester[_0xff893e(0x184)](PerformanceDriverEvents[_0xff893e(0x1a4)],async()=>{const _0x221369=_0xff893e;if(!helper[_0x221369(0x199)]()&&(commandRepository[_0x221369(0x1a6)]()||globals[_0x221369(0x1ac)](_0x594c2a[_0x221369(0x163)]))&&_0x594c2a[_0x221369(0x17f)](_0x4c95d5[_0x221369(0x192)],_0x594c2a['PNoQH'])&&!_0x4c95d5[_0x221369(0x1b3)]&&globals['getGlobal'](_0x594c2a[_0x221369(0x176)])&&globals[_0x221369(0x1ac)](_0x594c2a[_0x221369(0x19e)])){const _0x34138b=new Date(),_0x4e96ee=PerformanceTester[_0x221369(0x184)](_0x594c2a[_0x221369(0x19d)],async()=>{return await aiSdkWrapper['handleSuccess'](_0x2272c7,_0x4f5e1c,_0x4c95d5);});await _0x594c2a[_0x221369(0x17c)](_0x4e96ee);}},{'command':_0x4c95d5[_0xff893e(0x192)]})(),_0x55f56d;}catch(_0x2d2b3f){await PerformanceTester[_0xff893e(0x184)](PerformanceDriverEvents[_0xff893e(0x1a4)],async()=>{const _0x83a7fc=_0xff893e;logger[_0x83a7fc(0x1c2)](_0x2933d5[_0x83a7fc(0x1a3)]);try{if(!helper[_0x83a7fc(0x199)]()&&(_0x2933d5[_0x83a7fc(0x18a)](_0x2d2b3f[_0x83a7fc(0x155)],_0x2933d5[_0x83a7fc(0x18d)])||_0x2933d5['mVHoB'](_0x2d2b3f[_0x83a7fc(0x155)],_0x2933d5[_0x83a7fc(0x1c3)]))&&_0x2933d5[_0x83a7fc(0x18a)](_0x4c95d5[_0x83a7fc(0x192)],_0x2933d5[_0x83a7fc(0x177)])&&commandRepository['isSelfHealEnabled']()&&globals[_0x83a7fc(0x1ac)](_0x2933d5[_0x83a7fc(0x157)])&&globals[_0x83a7fc(0x1ac)](_0x2933d5['emlXR'])){_0x2933d5[_0x83a7fc(0x18a)](_0x4c95d5[_0x83a7fc(0x174)]['using'],_0x2933d5[_0x83a7fc(0x1a9)])?logger['info'](_0x2933d5[_0x83a7fc(0x1b0)](_0x2933d5[_0x83a7fc(0x18b)](_0x2933d5[_0x83a7fc(0x173)],_0x4c95d5['parameters_']['value']),_0x2933d5['IFRMv'])):logger[_0x83a7fc(0x187)](_0x2933d5['ZxSxD'](_0x2933d5[_0x83a7fc(0x1b0)](_0x2933d5[_0x83a7fc(0x1b0)](_0x2933d5[_0x83a7fc(0x18b)](_0x2933d5[_0x83a7fc(0x1bd)],_0x4c95d5[_0x83a7fc(0x174)]['using']),':\x20'),_0x4c95d5[_0x83a7fc(0x174)][_0x83a7fc(0x17b)]),_0x2933d5[_0x83a7fc(0x15c)]));const _0x3fffdc=PerformanceTester[_0x83a7fc(0x184)](_0x2933d5[_0x83a7fc(0x18f)],async()=>{return await aiSdkWrapper['handleFailure'](_0x2272c7,_0x4f5e1c,_0x4c95d5);}),_0x9d46fc=new Date(),{locatorType:_0x297ea2,locatorValue:_0x3a285a,commandHealed:_0x1f6f43}=await _0x2933d5[_0x83a7fc(0x1a5)](_0x3fffdc);if(_0x2933d5[_0x83a7fc(0x180)](_0x297ea2,_0x3a285a)){_0x4c95d5[_0x83a7fc(0x174)]['using']=_0x297ea2,_0x4c95d5[_0x83a7fc(0x174)]['value']=_0x3a285a,_0x4c95d5[_0x83a7fc(0x1b3)]=!![];const _0x360b25=_0x4f5e1c[_0x83a7fc(0x17d)](_0x4c95d5);return _0x2933d5[_0x83a7fc(0x18a)](_0x297ea2,_0x2933d5[_0x83a7fc(0x1a9)])?logger[_0x83a7fc(0x187)](_0x2933d5[_0x83a7fc(0x1be)](_0x2933d5[_0x83a7fc(0x150)],_0x3a285a)):logger[_0x83a7fc(0x187)](_0x2933d5['Xrauo'](_0x2933d5[_0x83a7fc(0x1b5)](_0x2933d5[_0x83a7fc(0x153)](_0x2933d5[_0x83a7fc(0x1a0)],_0x297ea2),':\x20'),_0x3a285a)),_0x360b25;}else!_0x1f6f43&&(_0x2933d5[_0x83a7fc(0x18a)](_0x297ea2,_0x2933d5[_0x83a7fc(0x1a9)])?logger[_0x83a7fc(0x187)](_0x2933d5[_0x83a7fc(0x186)](_0x2933d5['lNnGw'],_0x4c95d5[_0x83a7fc(0x174)][_0x83a7fc(0x17b)])):logger[_0x83a7fc(0x187)](_0x2933d5['wwrOD'](_0x2933d5[_0x83a7fc(0x158)](_0x2933d5[_0x83a7fc(0x1cb)](_0x2933d5[_0x83a7fc(0x16c)],_0x4c95d5[_0x83a7fc(0x174)]['using']),':\x20'),_0x4c95d5[_0x83a7fc(0x174)]['value'])));}!_0x2db034&&_0x2933d5[_0x83a7fc(0x18a)](_0x4c95d5[_0x83a7fc(0x192)],_0x2933d5['ZQHZa'])&&helper[_0x83a7fc(0x1b9)](_0x4c95d5,[_0x2933d5[_0x83a7fc(0x168)],_0x2933d5[_0x83a7fc(0x1aa)]])&&!!constants[_0x83a7fc(0x1b1)][_0x83a7fc(0x1b2)](_0x21e8b7=>{const _0x516b04=_0x83a7fc;return _0x2d2b3f[_0x516b04(0x195)]()[_0x516b04(0x1c7)](_0x21e8b7);})&&helper[_0x83a7fc(0x19b)](_0x4c95d5[_0x83a7fc(0x174)]['url'],!![]);}catch(_0x5e0e3a){logger[_0x83a7fc(0x1c2)](_0x2933d5[_0x83a7fc(0x18e)],_0x5e0e3a);}},{'success':![],'failure':_0x2d2b3f})();throw _0x2d2b3f;}};};
|
|
1
|
+
const a122_0x315441=a122_0x3f49;(function(_0x153127,_0x11bf67){const _0x8a109e=a122_0x3f49,_0x939bdc=_0x153127();while(!![]){try{const _0x2dbf8d=parseInt(_0x8a109e(0x212))/0x1+parseInt(_0x8a109e(0x1ea))/0x2+-parseInt(_0x8a109e(0x201))/0x3+-parseInt(_0x8a109e(0x1f9))/0x4*(-parseInt(_0x8a109e(0x20d))/0x5)+parseInt(_0x8a109e(0x1b5))/0x6+-parseInt(_0x8a109e(0x1dc))/0x7+-parseInt(_0x8a109e(0x1da))/0x8;if(_0x2dbf8d===_0x11bf67)break;else _0x939bdc['push'](_0x939bdc['shift']());}catch(_0xf07aa1){_0x939bdc['push'](_0x939bdc['shift']());}}}(a122_0x325b,0x849af));function a122_0x3f49(_0x1a8398,_0x16502f){const _0x325b66=a122_0x325b();return a122_0x3f49=function(_0x3f49fe,_0x3271bb){_0x3f49fe=_0x3f49fe-0x1b1;let _0x3721a4=_0x325b66[_0x3f49fe];return _0x3721a4;},a122_0x3f49(_0x1a8398,_0x16502f);}function a122_0x325b(){const _0x5be806=['name','NUDGE_LOCAL_ERRORS','nestedKeyValue','message','AUTOMATION_LOG_COMMANDS','error','1761510VCIszf','response','aiHeal:findElementSuccess','gxFMU','KeGYC','YaRqy','executeAsyncScript','aiHeal:findElementFailure','findElement\x20command\x20failed\x20with\x20','getNudgeLocalNotSetError','findElement\x20command\x20failed\x20with\x20cssPath:\x20','pFWeI','body','get','patchExecute','11732FQouhT','Successfully\x20healed\x20command\x20using\x20new\x20','Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20','css\x20selector','POST_EXECUTE','DLLJL','../bin/utils/constants','LIDnk','1337796BXRuZY','umqJo','browserstack.local','HIlZx','command','args','crPvZ','util','Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','string','ippmQ','name_','675XmGaPD','./ai-sdk/aiSdkWrapper','nYwyb','url','JavascriptError','221392zeaEEW','./logger','rAlsR','CLxVg','measureWrapper','iIDRf','value','silly','initExecute','OrKGm','Error\x20in\x20handling\x20TCG\x20Auth:\x20','toISOString','script','5634888rftOFu','setTcgToken','qYYjl','SgYPv','getGlobal','getId','VZihx','VYvAK','klkfT','info',';\x20Trying\x20to\x20heal','xvQAu','handleSuccess','TOjFb','execute','overrideExecute','isSelfHealEnabled','skipHealingSuccess','using','DzIFF','Healing\x20failed\x20for\x20command\x20using\x20','Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','yrOWP','Kzutc','DRSPo','local','find','AGbPA','aiHeal_isAuthenticated','debug','./performance/performance-tester','bstack:options','RwdVK','OkIcF','Wdktx','setTcgTokenStatus','QYmHS','5222456YJQevk','getTcgTokenStatus','5567520PdIgeG','getSession','bRevi','parameters','isBrowserstackInfra','./helper','parameters_','includes'];a122_0x325b=function(){return _0x5be806;};return a122_0x325b();}const {aiSdkWrapper}=require(a122_0x315441(0x20e)),{commandRepository}=require('./ai-sdk/autoHealHelper'),PerformanceTester=require(a122_0x315441(0x1d3)),globals=require('./globals'),{winstonLogger:logger,automationLogger}=require(a122_0x315441(0x213)),helper=require(a122_0x315441(0x1e1)),constants=require(a122_0x315441(0x1ff)),{DRIVER_EVENT:PerformanceDriverEvents}=require('./performance/constants'),util=require(a122_0x315441(0x208));exports[a122_0x315441(0x1c4)]=(_0x1b09d9,_0x40c732)=>{const _0x26d001=a122_0x315441,_0xb8450e={'Kzutc':_0x26d001(0x1d1),'EvMRU':'aiHeal:setToken','VZihx':function(_0x16b335){return _0x16b335();},'Wdktx':'aiSdk_defaultLogDataEnabled','LIDnk':function(_0x23acf6,_0x232bdd){return _0x23acf6===_0x232bdd;},'yrOWP':'findElement','bRevi':'aiHeal_isHealingEnabled','VYvAK':_0x26d001(0x1ec),'vKDyn':'Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','iIDRf':'NoSuchElementError','TOjFb':function(_0x18abb2,_0x24e5f8){return _0x18abb2===_0x24e5f8;},'ylTdV':_0x26d001(0x211),'OkIcF':_0x26d001(0x1fc),'DLLJL':function(_0x5236df,_0x2c3b9e){return _0x5236df+_0x2c3b9e;},'pFWeI':_0x26d001(0x1f4),'AGbPA':_0x26d001(0x1bf),'SgYPv':function(_0x3e9529,_0x1298bb){return _0x3e9529+_0x1298bb;},'OmThR':_0x26d001(0x1f2),'rAlsR':_0x26d001(0x1f1),'CLxVg':function(_0x237266,_0x22aa71){return _0x237266&&_0x22aa71;},'umqJo':_0x26d001(0x1ca),'YaRqy':function(_0x22c410,_0x4cfbd0){return _0x22c410+_0x4cfbd0;},'qYYjl':_0x26d001(0x1fa),'HIlZx':'Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','OrKGm':function(_0x2fb9c8,_0x27a3ee){return _0x2fb9c8+_0x27a3ee;},'RwdVK':_0x26d001(0x1c9),'XOfIg':_0x26d001(0x1f7),'KeGYC':'parameters_','DRSPo':_0x26d001(0x210),'FAfmS':_0x26d001(0x209),'ippmQ':_0x26d001(0x1f0),'gxFMU':'executeScript','XrtvS':function(_0x189c52,_0x5b8317){return _0x189c52===_0x5b8317;},'xvQAu':_0x26d001(0x20a),'klkfT':'capability','nYwyb':_0x26d001(0x203),'crPvZ':_0x26d001(0x1d4),'QYmHS':_0x26d001(0x1ce)},_0x48b6fd=_0x1b09d9[_0x26d001(0x1f8)]||(helper[_0x26d001(0x1e6)](_0x40c732,[_0xb8450e['klkfT'],_0xb8450e[_0x26d001(0x20f)]])||helper[_0x26d001(0x1e6)](_0x40c732,[_0xb8450e[_0x26d001(0x1bd)],_0xb8450e[_0x26d001(0x207)],_0xb8450e[_0x26d001(0x1d9)]]));if(!globals[_0x26d001(0x1b9)](_0xb8450e[_0x26d001(0x1cc)])&&!globals[_0x26d001(0x1b9)](_0xb8450e[_0x26d001(0x1de)])&&_0x48b6fd)return;_0x1b09d9[_0x26d001(0x1f8)]=!![],_0x1b09d9[_0x26d001(0x21a)]=_0x1b09d9[_0x26d001(0x1c3)],_0x1b09d9[_0x26d001(0x1c3)]=async _0x2dac6e=>{const _0x5f47c1=_0x26d001;try{const _0x2ba145={};_0x2ba145[_0x5f47c1(0x205)]=_0x2dac6e[_0x5f47c1(0x20c)],await PerformanceTester[_0x5f47c1(0x216)](PerformanceDriverEvents['PRE_EXECUTE'],async()=>{const _0x8261c0=_0x5f47c1,_0x3a1119={};_0x3a1119['DzIFF']=_0xb8450e[_0x8261c0(0x1cc)];const _0x3ec3a8=_0x3a1119;if(!commandRepository[_0x8261c0(0x1db)]()&&globals[_0x8261c0(0x1b9)](_0xb8450e[_0x8261c0(0x1cc)])){const _0x42a25d=PerformanceTester[_0x8261c0(0x216)](_0xb8450e['EvMRU'],async()=>{const _0x2e5a4d=_0x8261c0;try{commandRepository[_0x2e5a4d(0x1d8)](!![]),await aiSdkWrapper[_0x2e5a4d(0x1b6)]((await _0x1b09d9[_0x2e5a4d(0x1dd)]())['getId']());const _0x4aefe7=globals[_0x2e5a4d(0x1b9)](_0x3ec3a8[_0x2e5a4d(0x1c8)]);_0x4aefe7&&commandRepository['setAiSessionTimeStamp']((await _0x1b09d9['getSession']())[_0x2e5a4d(0x1ba)]());}catch(_0x5530c7){logger[_0x2e5a4d(0x1e9)](_0x2e5a4d(0x1b2)+_0x5530c7);}});await _0xb8450e[_0x8261c0(0x1bb)](_0x42a25d);}},_0x2ba145)();const _0x22e8cd=await _0x1b09d9['initExecute'](_0x2dac6e);try{if(_0xb8450e[_0x5f47c1(0x200)](_0x2dac6e[_0x5f47c1(0x20c)],_0xb8450e[_0x5f47c1(0x20b)])||_0xb8450e[_0x5f47c1(0x1c2)](_0x2dac6e['name_'],_0xb8450e[_0x5f47c1(0x1ed)])){const _0x56d8bf=_0x2dac6e[_0x5f47c1(0x1e2)]&&_0x2dac6e[_0x5f47c1(0x1e2)][_0x5f47c1(0x1b4)],_0x133f59=_0x2dac6e[_0x5f47c1(0x1e2)]&&_0x2dac6e[_0x5f47c1(0x1e2)][_0x5f47c1(0x206)],_0x1afb08=_0x133f59&&util['format']('%j',_0x133f59);if(_0x56d8bf&&_0xb8450e['XrtvS'](typeof _0x56d8bf,_0xb8450e[_0x5f47c1(0x1c0)])){const _0x50be5f=constants[_0x5f47c1(0x1e8)]['find'](_0x1f3897=>_0x56d8bf['includes'](_0x1f3897)||_0x1afb08&&_0x1afb08['includes'](_0x1f3897));if(_0x50be5f){const _0xa6a325={};_0xa6a325[_0x5f47c1(0x205)]=_0x50be5f,_0xa6a325[_0x5f47c1(0x1df)]=_0x133f59;const _0x177741={};_0x177741[_0x5f47c1(0x1f6)]=_0x22e8cd;const _0x544da3={};_0x544da3['request']=_0xa6a325,_0x544da3[_0x5f47c1(0x1eb)]=_0x177741,automationLogger[_0x5f47c1(0x219)]('['+new Date()[_0x5f47c1(0x1b3)]()+'][\x20SDK-AUTOMATION\x20]\x20'+util['format']('%j',_0x544da3));}}}}catch(_0x24b861){logger[_0x5f47c1(0x219)](_0x5f47c1(0x1fb)+_0x24b861[_0x5f47c1(0x1e7)]);}return await PerformanceTester[_0x5f47c1(0x216)](PerformanceDriverEvents['POST_EXECUTE'],async()=>{const _0x56dbb0=_0x5f47c1;if(!helper[_0x56dbb0(0x1e0)]()&&(commandRepository[_0x56dbb0(0x1c5)]()||globals[_0x56dbb0(0x1b9)](_0xb8450e[_0x56dbb0(0x1d7)]))&&_0xb8450e['LIDnk'](_0x2dac6e[_0x56dbb0(0x20c)],_0xb8450e[_0x56dbb0(0x1cb)])&&!_0x2dac6e['skipHealingSuccess']&&globals[_0x56dbb0(0x1b9)](_0xb8450e[_0x56dbb0(0x1cc)])&&globals['getGlobal'](_0xb8450e[_0x56dbb0(0x1de)])){const _0x43d596=new Date(),_0x9ee607=PerformanceTester[_0x56dbb0(0x216)](_0xb8450e[_0x56dbb0(0x1bc)],async()=>{const _0xd92bf1=_0x56dbb0;return await aiSdkWrapper[_0xd92bf1(0x1c1)](_0x40c732,_0x1b09d9,_0x2dac6e);});await _0xb8450e[_0x56dbb0(0x1bb)](_0x9ee607);}},{'command':_0x2dac6e[_0x5f47c1(0x20c)]})(),_0x22e8cd;}catch(_0x103e20){await PerformanceTester[_0x5f47c1(0x216)](PerformanceDriverEvents[_0x5f47c1(0x1fd)],async()=>{const _0x31fa64=_0x5f47c1;logger[_0x31fa64(0x1d2)](_0xb8450e['vKDyn']);try{if(!helper['isBrowserstackInfra']()&&(_0xb8450e[_0x31fa64(0x200)](_0x103e20[_0x31fa64(0x1e4)],_0xb8450e[_0x31fa64(0x217)])||_0xb8450e[_0x31fa64(0x1c2)](_0x103e20[_0x31fa64(0x1e4)],_0xb8450e['ylTdV']))&&_0xb8450e[_0x31fa64(0x1c2)](_0x2dac6e[_0x31fa64(0x20c)],_0xb8450e[_0x31fa64(0x1cb)])&&commandRepository[_0x31fa64(0x1c5)]()&&globals[_0x31fa64(0x1b9)](_0xb8450e[_0x31fa64(0x1cc)])&&globals[_0x31fa64(0x1b9)](_0xb8450e['bRevi'])){_0xb8450e[_0x31fa64(0x1c2)](_0x2dac6e[_0x31fa64(0x1e2)][_0x31fa64(0x1c7)],_0xb8450e[_0x31fa64(0x1d6)])?logger[_0x31fa64(0x1be)](_0xb8450e['DLLJL'](_0xb8450e[_0x31fa64(0x1fe)](_0xb8450e[_0x31fa64(0x1f5)],_0x2dac6e['parameters_'][_0x31fa64(0x218)]),_0xb8450e[_0x31fa64(0x1d0)])):logger[_0x31fa64(0x1be)](_0xb8450e[_0x31fa64(0x1fe)](_0xb8450e[_0x31fa64(0x1fe)](_0xb8450e[_0x31fa64(0x1fe)](_0xb8450e[_0x31fa64(0x1b8)](_0xb8450e['OmThR'],_0x2dac6e[_0x31fa64(0x1e2)]['using']),':\x20'),_0x2dac6e[_0x31fa64(0x1e2)][_0x31fa64(0x218)]),_0xb8450e[_0x31fa64(0x1d0)]));const _0x122284=PerformanceTester[_0x31fa64(0x216)](_0xb8450e[_0x31fa64(0x214)],async()=>{return await aiSdkWrapper['handleFailure'](_0x40c732,_0x1b09d9,_0x2dac6e);}),_0x857370=new Date(),{locatorType:_0x11219b,locatorValue:_0xb321c6,commandHealed:_0x9e78c8}=await _0xb8450e['VZihx'](_0x122284);if(_0xb8450e[_0x31fa64(0x215)](_0x11219b,_0xb321c6)){_0x2dac6e['parameters_'][_0x31fa64(0x1c7)]=_0x11219b,_0x2dac6e['parameters_'][_0x31fa64(0x218)]=_0xb321c6,_0x2dac6e[_0x31fa64(0x1c6)]=!![];const _0xb17154=_0x1b09d9['execute'](_0x2dac6e);return _0xb8450e[_0x31fa64(0x200)](_0x11219b,_0xb8450e[_0x31fa64(0x1d6)])?logger[_0x31fa64(0x1be)](_0xb8450e[_0x31fa64(0x1fe)](_0xb8450e[_0x31fa64(0x202)],_0xb321c6)):logger[_0x31fa64(0x1be)](_0xb8450e[_0x31fa64(0x1ef)](_0xb8450e['DLLJL'](_0xb8450e['DLLJL'](_0xb8450e[_0x31fa64(0x1b7)],_0x11219b),':\x20'),_0xb321c6)),_0xb17154;}else!_0x9e78c8&&(_0xb8450e[_0x31fa64(0x1c2)](_0x11219b,_0xb8450e['OkIcF'])?logger[_0x31fa64(0x1be)](_0xb8450e[_0x31fa64(0x1fe)](_0xb8450e[_0x31fa64(0x204)],_0x2dac6e['parameters_'][_0x31fa64(0x218)])):logger[_0x31fa64(0x1be)](_0xb8450e[_0x31fa64(0x1b1)](_0xb8450e[_0x31fa64(0x1b1)](_0xb8450e[_0x31fa64(0x1ef)](_0xb8450e[_0x31fa64(0x1d5)],_0x2dac6e[_0x31fa64(0x1e2)][_0x31fa64(0x1c7)]),':\x20'),_0x2dac6e['parameters_'][_0x31fa64(0x218)])));}!_0x48b6fd&&_0xb8450e[_0x31fa64(0x200)](_0x2dac6e[_0x31fa64(0x20c)],_0xb8450e['XOfIg'])&&helper[_0x31fa64(0x1e6)](_0x2dac6e,[_0xb8450e[_0x31fa64(0x1ee)],_0xb8450e[_0x31fa64(0x1cd)]])&&!!constants[_0x31fa64(0x1e5)][_0x31fa64(0x1cf)](_0x5e9650=>{const _0x117a79=_0x31fa64;return _0x103e20['toString']()[_0x117a79(0x1e3)](_0x5e9650);})&&helper[_0x31fa64(0x1f3)](_0x2dac6e['parameters_'][_0x31fa64(0x210)],!![]);}catch(_0x4735bb){logger[_0x31fa64(0x1d2)](_0xb8450e['FAfmS'],_0x4735bb);}},{'success':![],'failure':_0x103e20})();throw _0x103e20;}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a123_0x186f(_0x5afef2,_0x44c131){const _0xfd13ac=a123_0xfd13();return a123_0x186f=function(_0x186f17,_0x586e09){_0x186f17=_0x186f17-0x1b6;let _0x23c2c4=_0xfd13ac[_0x186f17];return _0x23c2c4;},a123_0x186f(_0x5afef2,_0x44c131);}const a123_0x568fe9=a123_0x186f;(function(_0x1ee4f6,_0x3b869c){const _0x587ed6=a123_0x186f,_0xb5b647=_0x1ee4f6();while(!![]){try{const _0x581417=-parseInt(_0x587ed6(0x1d0))/0x1+-parseInt(_0x587ed6(0x1ca))/0x2*(parseInt(_0x587ed6(0x1be))/0x3)+parseInt(_0x587ed6(0x1ba))/0x4*(-parseInt(_0x587ed6(0x1b8))/0x5)+parseInt(_0x587ed6(0x1c6))/0x6*(-parseInt(_0x587ed6(0x1bb))/0x7)+parseInt(_0x587ed6(0x1d9))/0x8+parseInt(_0x587ed6(0x1bc))/0x9+parseInt(_0x587ed6(0x1cb))/0xa;if(_0x581417===_0x3b869c)break;else _0xb5b647['push'](_0xb5b647['shift']());}catch(_0xc7937a){_0xb5b647['push'](_0xb5b647['shift']());}}}(a123_0xfd13,0x269fe));const PerformanceTester=require('./performance/performance-tester'),O11yEvents=require(a123_0x568fe9(0x1c0))[a123_0x568fe9(0x1cd)];exports[a123_0x568fe9(0x1c3)]=_0x4a2d6d=>{const _0x4d8355=a123_0x568fe9,_0x4ef6be={'aLPmJ':_0x4d8355(0x1da),'PfLqV':function(_0x11a7a8,_0x4243b4){return _0x11a7a8(_0x4243b4);},'cWIfv':function(_0x49f9da,_0x51fadf){return _0x49f9da!==_0x51fadf;},'cLKOD':_0x4d8355(0x1bd)};if(_0x4ef6be['cWIfv'](process[_0x4d8355(0x1cc)][_0x4d8355(0x1c9)],_0x4ef6be[_0x4d8355(0x1d3)]))return;if(_0x4a2d6d[_0x4d8355(0x1ce)])return;_0x4a2d6d[_0x4d8355(0x1ce)]=!![],_0x4a2d6d[_0x4d8355(0x1d6)]=_0x4a2d6d[_0x4d8355(0x1b9)],_0x4a2d6d['takeScreenshot']=()=>{const _0x4312aa=_0x4d8355,_0x278cc1={'hWQlz':_0x4ef6be[_0x4312aa(0x1c1)],'CekgY':function(_0x3e2c4f,_0x4a837f){const _0x44a517=_0x4312aa;return _0x4ef6be[_0x44a517(0x1db)](_0x3e2c4f,_0x4a837f);}};return new Promise(function(_0x4f6da7,_0x383b09){const _0x1233a4=_0x4312aa,_0x232dbb={'gARsx':function(_0x5b4071,_0x52dc35){const _0x5d855a=a123_0x186f;return _0x278cc1[_0x5d855a(0x1d8)](_0x5b4071,_0x52dc35);}};_0x4a2d6d[_0x1233a4(0x1d6)]()[_0x1233a4(0x1c5)](_0x14168e=>{const _0x3f1b68=_0x1233a4;PerformanceTester[_0x3f1b68(0x1d5)](O11yEvents[_0x3f1b68(0x1cf)]),process[_0x3f1b68(0x1d4)](_0x3f1b68(0x1d7)+process['pid'],{'timestamp':new Date()[_0x3f1b68(0x1b6)](),'message':_0x14168e,'kind':_0x278cc1[_0x3f1b68(0x1c4)]}),_0x278cc1[_0x3f1b68(0x1d8)](_0x4f6da7,_0x14168e),PerformanceTester[_0x3f1b68(0x1c8)](O11yEvents['TAKE_SCREENSHOT']);})['catch'](_0x4a0ed3=>{const _0x37e6a1=_0x1233a4;PerformanceTester[_0x37e6a1(0x1c8)](O11yEvents[_0x37e6a1(0x1cf)]),_0x232dbb[_0x37e6a1(0x1dc)](_0x383b09,_0x4a0ed3);});});};},exports[a123_0x568fe9(0x1d2)]=(_0xfaa9ff,_0x1acef3=null)=>{const _0x5a9f59=a123_0x568fe9,_0x5583c2={'fgdNG':function(_0x5a5ecc){return _0x5a5ecc();},'byxQv':function(_0x4facea,_0x17873d){return _0x4facea>_0x17873d;},'jKIUc':function(_0x5d0f29,_0x5060c5){return _0x5d0f29>_0x5060c5;}};if(_0xfaa9ff['patchQuit'])return;_0xfaa9ff[_0x5a9f59(0x1c2)]=!![],_0xfaa9ff[_0x5a9f59(0x1bf)]=_0xfaa9ff[_0x5a9f59(0x1d1)],_0xfaa9ff[_0x5a9f59(0x1d1)]=()=>{const _0x2812a6=_0x5a9f59,_0x583ed9={'EXksd':function(_0xaa1470){const _0x339e4c=a123_0x186f;return _0x5583c2[_0x339e4c(0x1de)](_0xaa1470);}};if(_0x1acef3){_0x1acef3[_0x2812a6(0x1b7)]+=0x1;if(_0x5583c2[_0x2812a6(0x1c7)](_0x1acef3[_0x2812a6(0x1b7)],0x1))return _0xfaa9ff[_0x2812a6(0x1bf)]();}else{_0xfaa9ff[_0x2812a6(0x1b7)]+=0x1;if(_0x5583c2[_0x2812a6(0x1dd)](_0xfaa9ff[_0x2812a6(0x1b7)],0x1))return _0xfaa9ff[_0x2812a6(0x1bf)]();}return new Promise(function(_0x3a6d1e){_0x583ed9['EXksd'](_0x3a6d1e);});};};function a123_0xfd13(){const _0x103534=['overrideQuit','cLKOD','emit','start','initScreenshot','bs:addLog:','CekgY','663432EDhzpW','TEST_SCREENSHOT','PfLqV','gARsx','jKIUc','fgdNG','toISOString','quitCount_','467375FBwpzG','takeScreenshot','8XOyDES','259JWqYbq','1196307PrtEnT','true','12171ChWIry','initQuit','./performance/constants','aLPmJ','patchQuit','overrideTakeScreenshot','hWQlz','then','34416QAGuYV','byxQv','end','BS_TESTOPS_ALLOW_SCREENSHOTS','94GMhcIW','5760250MYxVUG','env','O11y_EVENTS','patchScreenshot','TAKE_SCREENSHOT','43810vcvmZf','quit'];a123_0xfd13=function(){return _0x103534;};return a123_0xfd13();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a124_0x58331d=a124_0x54ff;(function(_0x3ba0d4,_0x468d70){const _0x32c892=a124_0x54ff,_0x351394=_0x3ba0d4();while(!![]){try{const _0x3df8bb=parseInt(_0x32c892(0x21e))/0x1*(-parseInt(_0x32c892(0x1ed))/0x2)+parseInt(_0x32c892(0x213))/0x3+parseInt(_0x32c892(0x215))/0x4*(-parseInt(_0x32c892(0x237))/0x5)+-parseInt(_0x32c892(0x222))/0x6*(parseInt(_0x32c892(0x200))/0x7)+parseInt(_0x32c892(0x227))/0x8+-parseInt(_0x32c892(0x1fe))/0x9+parseInt(_0x32c892(0x233))/0xa;if(_0x3df8bb===_0x468d70)break;else _0x351394['push'](_0x351394['shift']());}catch(_0x42229a){_0x351394['push'](_0x351394['shift']());}}}(a124_0x2efb,0xf30cd));const fs=require('fs'),path=require('path'),os=require('os'),{spawn}=require(a124_0x58331d(0x20e)),helper=require(a124_0x58331d(0x221)),logger=require(a124_0x58331d(0x235))[a124_0x58331d(0x20c)],{getLogDir}=require(a124_0x58331d(0x235)),testHubConstants=require(a124_0x58331d(0x219)),PerformanceTester=require(a124_0x58331d(0x225)),{PERCY_EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),PercyBinary=require(a124_0x58331d(0x212));function a124_0x54ff(_0xc3912d,_0x27524c){const _0x2efbbb=a124_0x2efb();return a124_0x54ff=function(_0x54ff80,_0x3b170e){_0x54ff80=_0x54ff80-0x1ec;let _0x375a7a=_0x2efbbb[_0x54ff80];return _0x375a7a;},a124_0x54ff(_0xc3912d,_0x27524c);}function a124_0x2efb(){const _0x1f27d4=['../../helpers/testhub/constants','env','data',':start','createPercyConfig','64ZEjEmv','isRunning','start','../helper','6zsgLKA','EoRNM','getBinaryPath','../../helpers/performance/performance-tester','sSbqL','14761440mabsZp','qNohw','error','percy.json','Percy\x20fetch\x20token\x20success','http://localhost:5338','debug','token','MsQXF','PERCY_SERVER_ADDRESS','YYNhK','Percy\x20healthcheck\x20successful','32321580ZZSBPB','exec:stop','../logger','automate','12790gXQFZK','bumNZ','vUsIj','push','58078csDsjP','fpvcg','XLnNw','fetchPercyToken','flags','kroGU','end','Percy\x20config\x20created\x20at\x20','FENKh','iWIaG','tmpdir','wFdZh','assign','stop','tSArg','exports','ENV_VAR','11022426LVDVou','version','8071147qSEnhV','percyOptions','&type=','percy/healthcheck','close','Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20','DOWNLOAD','healthcheck','fRgzy','app:exec','writeFile','URqRF','winstonLogger','BROWSERSTACK_TESTHUB_UUID','child_process','GET','isProcessRunning','stderr','./PercyBinary','4676304UlMoTu','dbtSk','2196TlnNuF','stdout','Error\x20creating\x20percy\x20config:\x20','join'];a124_0x2efb=function(){return _0x1f27d4;};return a124_0x2efb();}class Percy{#logfile=path[a124_0x58331d(0x218)](getLogDir(),'percy.log');#address=process[a124_0x58331d(0x21a)][a124_0x58331d(0x230)]||a124_0x58331d(0x22c);#binaryPath=null;#config=null;#proc=null;#logStream=null;#isApp=![];[a124_0x58331d(0x210)]=![];constructor(_0xbf7257){this.#config=_0xbf7257,!!_0xbf7257['app']&&(this.#isApp=!![]);}async #getBinaryPath(){const _0xc8cc13=a124_0x58331d;if(!this.#binaryPath){const _0x1112ca=new PercyBinary();PerformanceTester[_0xc8cc13(0x220)](PerformanceEvents[_0xc8cc13(0x206)]),this.#binaryPath=await _0x1112ca[_0xc8cc13(0x224)](this.#config),PerformanceTester[_0xc8cc13(0x1f3)](PerformanceEvents['DOWNLOAD']);}return this.#binaryPath;}async #sleep(_0x167203){return new Promise(_0x2b6f68=>setTimeout(_0x2b6f68,_0x167203));}async[a124_0x58331d(0x207)](){const _0x2122c0=a124_0x58331d,_0xbcafc9={};_0xbcafc9[_0x2122c0(0x22f)]='GET',_0xbcafc9['fpvcg']=_0x2122c0(0x203);const _0x11330f=_0xbcafc9;try{const _0x1c3a14=await helper['nodeRequest'](_0x11330f['MsQXF'],_0x11330f[_0x2122c0(0x1ee)],null,null,this.#address);if(_0x1c3a14)return!![];}catch(_0x241121){return![];}}async[a124_0x58331d(0x220)](){const _0x31c684=a124_0x58331d,_0x3cd5e9={'DWRPB':_0x31c684(0x209),'iHkGY':'exec','wFdZh':function(_0x61a46d,_0x4fdff7,_0x56dfb8,_0x36459e){return _0x61a46d(_0x4fdff7,_0x56dfb8,_0x36459e);},'URqRF':_0x31c684(0x204),'kroGU':_0x31c684(0x232)},_0x5b843b=await this.#getBinaryPath(),_0x1b89b1={};_0x1b89b1[_0x31c684(0x1f1)]='a',this.#logStream=fs['createWriteStream'](this.#logfile,_0x1b89b1);const _0x52e84b=await this[_0x31c684(0x1f0)](),_0x3524e=await this[_0x31c684(0x21d)]();if(!_0x52e84b)return![];const _0x3c40ab=[(this.#isApp?_0x3cd5e9['DWRPB']:_0x3cd5e9['iHkGY'])+_0x31c684(0x21c)];_0x3524e&&_0x3c40ab[_0x31c684(0x1ec)]('-c',_0x3524e);this.#proc=_0x3cd5e9[_0x31c684(0x1f8)](spawn,_0x5b843b,_0x3c40ab,{'env':Object[_0x31c684(0x1f9)](process['env'],{'PERCY_TOKEN':_0x52e84b,'TH_BUILD_UUID':process[_0x31c684(0x21a)][testHubConstants[_0x31c684(0x1fd)][_0x31c684(0x20d)]]})}),this.#proc[_0x31c684(0x216)]['pipe'](this.#logStream),this.#proc[_0x31c684(0x211)]['pipe'](this.#logStream),this['isProcessRunning']=!![];var _0x12b372=this;this.#proc['on'](_0x3cd5e9[_0x31c684(0x20b)],function(_0x1d84f8){const _0x940e72=_0x31c684;_0x12b372[_0x940e72(0x210)]=![];});do{const _0x33311a=await this[_0x31c684(0x207)]();if(_0x33311a)return logger[_0x31c684(0x22d)](_0x3cd5e9[_0x31c684(0x1f2)]),!![];await this.#sleep(0x3e8);}while(this[_0x31c684(0x210)]);return![];}async[a124_0x58331d(0x1fa)](){const _0x43249d=a124_0x58331d,_0x534704={'XLnNw':function(_0x5c480c,_0x4a075d){return _0x5c480c(_0x4a075d);},'vUsIj':function(_0x30a60f,_0x5e2c69,_0xe3b236){return _0x30a60f(_0x5e2c69,_0xe3b236);},'YYNhK':_0x43249d(0x234),'tSArg':_0x43249d(0x204)},_0x455015=await this.#getBinaryPath();return new Promise((_0x4a37f3,_0x11e5fe)=>{const _0x5daf78=_0x43249d,_0x29a5d0={'bumNZ':function(_0x17242d,_0x40c7a0){const _0x431fa3=a124_0x54ff;return _0x534704[_0x431fa3(0x1ef)](_0x17242d,_0x40c7a0);}},_0x4e92af=_0x534704[_0x5daf78(0x239)](spawn,_0x455015,[_0x534704[_0x5daf78(0x231)]]);_0x4e92af['on'](_0x534704[_0x5daf78(0x1fb)],_0x63e98c=>{const _0x5edf84=_0x5daf78;this[_0x5edf84(0x210)]=![],this.#logStream&&(this.#logStream[_0x5edf84(0x1f3)](),this.#logStream=null),_0x29a5d0[_0x5edf84(0x238)](_0x4a37f3,_0x63e98c);});});}[a124_0x58331d(0x21f)](){const _0x49341c=a124_0x58331d;return this[_0x49341c(0x210)];}async[a124_0x58331d(0x1f0)](){const _0x26c17d=a124_0x58331d,_0x247361={};_0x247361[_0x26c17d(0x208)]='app',_0x247361[_0x26c17d(0x223)]=_0x26c17d(0x236),_0x247361[_0x26c17d(0x228)]=_0x26c17d(0x20f),_0x247361[_0x26c17d(0x1f6)]=_0x26c17d(0x22b);const _0x387da4=_0x247361,_0x122537=this.#config['projectName'];try{const _0x396e0b=this.#isApp?_0x387da4['fRgzy']:_0x387da4[_0x26c17d(0x223)],_0x4a0de1=await helper['nodeRequest'](_0x387da4['qNohw'],'api/app_percy/get_project_token?name='+_0x122537+_0x26c17d(0x202)+_0x396e0b,{},this.#config),_0x27cb04=_0x4a0de1[_0x26c17d(0x21b)];return logger[_0x26c17d(0x22d)](_0x387da4[_0x26c17d(0x1f6)]),_0x27cb04[_0x26c17d(0x22e)];}catch(_0x5881a1){return logger['error'](_0x26c17d(0x205)+_0x5881a1),null;}}async[a124_0x58331d(0x21d)](){const _0x3bea79=a124_0x58331d,_0xfd8f81={'sSbqL':function(_0x8b5c90,_0x14c8d9){return _0x8b5c90(_0x14c8d9);},'xVihG':function(_0x1e5a59,_0x5ef46d){return _0x1e5a59+_0x5ef46d;},'dbtSk':_0x3bea79(0x1f4),'FENKh':_0x3bea79(0x22a)};if(!this.#config[_0x3bea79(0x201)])return null;const _0x2e81fe=path[_0x3bea79(0x218)](os[_0x3bea79(0x1f7)](),_0xfd8f81[_0x3bea79(0x1f5)]),_0x398ed8=this.#config['percyOptions'];return!_0x398ed8[_0x3bea79(0x1ff)]&&(_0x398ed8['version']='2'),new Promise((_0x5013f6,_0x382ada)=>{const _0x27c373=_0x3bea79;fs[_0x27c373(0x20a)](_0x2e81fe,JSON['stringify'](_0x398ed8),_0x4e9c5a=>{const _0x4a7f70=_0x27c373;_0x4e9c5a&&(logger[_0x4a7f70(0x229)](_0x4a7f70(0x217)+_0x4e9c5a),_0xfd8f81[_0x4a7f70(0x226)](_0x5013f6,null)),logger[_0x4a7f70(0x22d)](_0xfd8f81['xVihG'](_0xfd8f81[_0x4a7f70(0x214)],_0x2e81fe)),_0xfd8f81['sSbqL'](_0x5013f6,_0x2e81fe);});});}}module[a124_0x58331d(0x1fc)]=Percy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a125_0x44302e=a125_0x508b;(function(_0x1f7c88,_0x2c6c75){const _0x3d9d12=a125_0x508b,_0x24e6f3=_0x1f7c88();while(!![]){try{const _0x46c42f=-parseInt(_0x3d9d12(0x11c))/0x1+parseInt(_0x3d9d12(0x151))/0x2*(-parseInt(_0x3d9d12(0x173))/0x3)+-parseInt(_0x3d9d12(0x176))/0x4+-parseInt(_0x3d9d12(0x157))/0x5+-parseInt(_0x3d9d12(0xfa))/0x6+-parseInt(_0x3d9d12(0xed))/0x7*(parseInt(_0x3d9d12(0x112))/0x8)+-parseInt(_0x3d9d12(0x12f))/0x9*(-parseInt(_0x3d9d12(0x106))/0xa);if(_0x46c42f===_0x2c6c75)break;else _0x24e6f3['push'](_0x24e6f3['shift']());}catch(_0x506fef){_0x24e6f3['push'](_0x24e6f3['shift']());}}}(a125_0x59c3,0xcb1da));const {https}=require(a125_0x44302e(0x13d)),url=require(a125_0x44302e(0x170)),yauzl=require(a125_0x44302e(0x147)),fs=require('fs'),path=require(a125_0x44302e(0x16f)),os=require('os'),{spawn}=require(a125_0x44302e(0xec)),HttpsProxyAgent=require(a125_0x44302e(0x107)),logger=require(a125_0x44302e(0x152))[a125_0x44302e(0x16b)];function a125_0x508b(_0x2d4c13,_0x879b1){const _0x59c39f=a125_0x59c3();return a125_0x508b=function(_0x508b63,_0x506727){_0x508b63=_0x508b63-0xe0;let _0x593f30=_0x59c39f[_0x508b63];return _0x593f30;},a125_0x508b(_0x2d4c13,_0x879b1);}class PercyBinary{#hostOS=process['platform'];#httpPath=null;#binaryName=a125_0x44302e(0x108);#orderedPaths=[path[a125_0x44302e(0x17b)](this.#homedir(),a125_0x44302e(0x156)),process[a125_0x44302e(0x13c)](),os[a125_0x44302e(0x11d)]()];constructor(){const _0x4d2eb0=a125_0x44302e,_0x28426f={};_0x28426f[_0x4d2eb0(0x172)]=_0x4d2eb0(0xf7),_0x28426f['ZsmWo']=function(_0x53b7f3,_0x15fcdb){return _0x53b7f3+_0x15fcdb;},_0x28426f[_0x4d2eb0(0x109)]=_0x4d2eb0(0x129),_0x28426f[_0x4d2eb0(0x160)]=function(_0x147a8f,_0x13575b){return _0x147a8f+_0x13575b;},_0x28426f[_0x4d2eb0(0xe7)]='/percy-win.zip',_0x28426f[_0x4d2eb0(0x171)]=_0x4d2eb0(0x15e),_0x28426f[_0x4d2eb0(0x126)]=function(_0x4b86de,_0x1b9717){return _0x4b86de+_0x1b9717;},_0x28426f['RzaBf']=_0x4d2eb0(0x10b);const _0x524e11=_0x28426f,_0x2d87f6=_0x524e11[_0x4d2eb0(0x172)];if(this.#hostOS[_0x4d2eb0(0x127)](/darwin|mac os/i))this.#httpPath=_0x524e11['ZsmWo'](_0x2d87f6,_0x524e11[_0x4d2eb0(0x109)]);else this.#hostOS['match'](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x524e11['oHknS'](_0x2d87f6,_0x524e11[_0x4d2eb0(0xe7)]),this.#binaryName=_0x524e11[_0x4d2eb0(0x171)]):this.#httpPath=_0x524e11[_0x4d2eb0(0x126)](_0x2d87f6,_0x524e11[_0x4d2eb0(0x16a)]);}#getAvailableDirs(){const _0x6a7cfa=a125_0x44302e,_0x13e951={};_0x13e951[_0x6a7cfa(0x163)]=function(_0x1f9723,_0x16cbe2){return _0x1f9723<_0x16cbe2;},_0x13e951[_0x6a7cfa(0xf1)]=_0x6a7cfa(0x16c);const _0x3656c6=_0x13e951;for(var _0x228d49=0x0;_0x3656c6['VEIUX'](_0x228d49,this.#orderedPaths[_0x6a7cfa(0x158)]);_0x228d49++){var _0x39c9aa=this.#orderedPaths[_0x228d49];if(this.#makePath(_0x39c9aa))return _0x39c9aa;}throw new Error(_0x3656c6[_0x6a7cfa(0xf1)]);}#makePath(_0x3deea4){const _0x562485=a125_0x44302e;try{return _0x3deea4&&!this.#checkPath(_0x3deea4)&&fs[_0x562485(0x174)](_0x3deea4),!![];}catch{return![];}}#checkPath(_0x113147,_0x1be49f){const _0x4fda6b=a125_0x44302e,_0x3e6c5e={};_0x3e6c5e[_0x4fda6b(0x145)]=function(_0x4647df,_0x5b2338){return _0x4647df|_0x5b2338;},_0x3e6c5e[_0x4fda6b(0xe6)]=function(_0xd0a56b,_0x1e9afd){return _0xd0a56b!==_0x1e9afd;},_0x3e6c5e[_0x4fda6b(0xeb)]=_0x4fda6b(0x11a);const _0x4cafb2=_0x3e6c5e;_0x1be49f=_0x1be49f||_0x4cafb2[_0x4fda6b(0x145)](fs['R_OK'],fs[_0x4fda6b(0x17c)]);try{return fs[_0x4fda6b(0x139)](_0x113147,_0x1be49f),!![];}catch(_0x46539c){if(_0x4cafb2[_0x4fda6b(0xe6)](typeof fs[_0x4fda6b(0x139)],_0x4cafb2['DDHRn']))return![];try{return fs[_0x4fda6b(0x15d)](_0x113147),!![];}catch(_0x1791e6){return![];}}}#getETagPath(_0x1d6bbf){const _0x179959=a125_0x44302e;return path[_0x179959(0x17b)](_0x1d6bbf,this.#binaryName+'.etag');}#loadETag(_0x42c2bd){const _0x6d838c=a125_0x44302e,_0xa43ef3={};_0xa43ef3['JjUkh']=_0x6d838c(0x118);const _0x576391=_0xa43ef3,_0x2eab78=this.#getETagPath(_0x42c2bd);if(this.#checkPath(_0x2eab78))try{return fs[_0x6d838c(0x128)](_0x2eab78,_0x576391[_0x6d838c(0x136)])[_0x6d838c(0x137)]();}catch(_0x43c51c){logger[_0x6d838c(0x166)](_0x6d838c(0xf0)+_0x43c51c);}return null;}#saveETag(_0x451c2e,_0x52e76f){const _0x49c271=a125_0x44302e,_0x5d6e80={};_0x5d6e80[_0x49c271(0x131)]=_0x49c271(0x140);const _0x1fe7d4=_0x5d6e80;if(!_0x52e76f)return;try{const _0x4a0ee6=this.#getETagPath(_0x451c2e);fs[_0x49c271(0x161)](_0x4a0ee6,_0x52e76f),logger[_0x49c271(0x123)](_0x1fe7d4[_0x49c271(0x131)]);}catch(_0x552c05){logger[_0x49c271(0x166)](_0x49c271(0xe9)+_0x552c05);}}async #handleBinaryDownload(_0x7e46ce,_0x4d4d32,_0x17fae0){const _0x946cce=a125_0x44302e,_0x407b42={};_0x407b42['FaBYo']=_0x946cce(0x167);const _0x59c0bc=_0x407b42,_0x5b0adc=await this[_0x946cce(0x150)](_0x7e46ce[_0x946cce(0x120)]);if(!_0x5b0adc){logger['error'](_0x59c0bc['FaBYo']);const _0x2b7d7f=await this[_0x946cce(0xee)](_0x4d4d32,_0x17fae0);return _0x2b7d7f[_0x946cce(0x120)];}return _0x7e46ce[_0x946cce(0x120)];}async[a125_0x44302e(0x178)](_0x9af315){const _0x118ea1=a125_0x44302e,_0x274540={};_0x274540[_0x118ea1(0x12c)]=_0x118ea1(0x14c),_0x274540[_0x118ea1(0xf9)]='New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update';const _0x53c523=_0x274540,_0x1375bb=this.#getAvailableDirs(),_0x5aee5e=path['join'](_0x1375bb,this.#binaryName);if(this.#checkPath(_0x5aee5e,fs['X_OK'])){const _0x45cd5e=this.#loadETag(_0x1375bb);if(_0x45cd5e)try{const _0x54d84e=await this['download'](_0x9af315,_0x1375bb,_0x45cd5e);if(!_0x54d84e[_0x118ea1(0x116)])return logger[_0x118ea1(0x123)](_0x53c523[_0x118ea1(0x12c)]),_0x5aee5e;return logger[_0x118ea1(0x123)](_0x53c523['FKbqi']),await this.#handleBinaryDownload(_0x54d84e,_0x9af315,_0x1375bb);}catch(_0x5f1a6){return logger[_0x118ea1(0x166)]('Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20'+_0x5f1a6),_0x5aee5e;}}const _0x3c989a=await this[_0x118ea1(0xee)](_0x9af315,_0x1375bb);return await this.#handleBinaryDownload(_0x3c989a,_0x9af315,_0x1375bb);}[a125_0x44302e(0xee)](_0x17c055,_0x441830,_0x40a24a=null){const _0x1713fd=a125_0x44302e,_0x2f81ed={'YgXiI':function(_0x830886,_0x48af0d){return _0x830886(_0x48af0d);},'SWDql':function(_0x18327d,_0x10aacf){return _0x18327d===_0x10aacf;},'UjZqd':_0x1713fd(0x10d),'CnRxl':_0x1713fd(0x16d),'QbCAD':function(_0x140001,_0x383fed){return _0x140001+_0x383fed;},'VjFrH':'.zip'};_0x441830&&!this.#checkPath(_0x441830)&&fs[_0x1713fd(0x174)](_0x441830);const _0x46a2e8=this.#binaryName,_0xe26108=path['join'](_0x441830,_0x2f81ed[_0x1713fd(0x125)](_0x46a2e8,_0x2f81ed[_0x1713fd(0xfb)])),_0x451a00=fs['createWriteStream'](_0xe26108),_0x467ebb=url['parse'](this.#httpPath);if(_0x17c055[_0x1713fd(0x132)]&&_0x17c055[_0x1713fd(0x103)]){const _0x3c22ad={};_0x3c22ad[_0x1713fd(0x105)]=_0x17c055[_0x1713fd(0x132)],_0x3c22ad['port']=_0x17c055['proxyPort'],_0x467ebb[_0x1713fd(0x177)]=new HttpsProxyAgent(_0x3c22ad);}if(_0x17c055['useCaCertificate'])try{_0x467ebb['ca']=fs['readFileSync'](_0x17c055[_0x1713fd(0xe0)]);}catch(_0x23a854){logger[_0x1713fd(0x10d)](_0x1713fd(0x10a)+_0x23a854);}if(_0x40a24a){const _0x1bb197={};_0x1bb197[_0x1713fd(0xf5)]=_0x40a24a,_0x1bb197[_0x1713fd(0x113)]=_0x2f81ed['CnRxl'],_0x467ebb[_0x1713fd(0xfd)]=_0x1bb197;}else{const _0x411a20={};_0x411a20[_0x1713fd(0x113)]=_0x2f81ed['CnRxl'],_0x467ebb[_0x1713fd(0xfd)]=_0x411a20;}return new Promise((_0x1de54e,_0x3db8c5)=>{const _0x3dcdcc=_0x1713fd,_0x39e026={'GjwRR':function(_0x850187,_0x7e43c5){const _0x185357=a125_0x508b;return _0x2f81ed[_0x185357(0xef)](_0x850187,_0x7e43c5);},'fXSfS':function(_0x1eac8d,_0x125cea){const _0x57e858=a125_0x508b;return _0x2f81ed[_0x57e858(0x143)](_0x1eac8d,_0x125cea);},'pQuIQ':function(_0xd1c0,_0x355796){const _0xc98ccb=a125_0x508b;return _0x2f81ed[_0xc98ccb(0xef)](_0xd1c0,_0x355796);},'pboCA':_0x2f81ed[_0x3dcdcc(0xe1)],'IthMm':_0x2f81ed[_0x3dcdcc(0x10c)],'QZMNr':function(_0x357176,_0x47243f){return _0x2f81ed['YgXiI'](_0x357176,_0x47243f);}};https[_0x3dcdcc(0x15f)](_0x467ebb,_0x2a4b8f=>{const _0x5dbf2d=_0x3dcdcc,_0x3928a7={'uiLYO':function(_0x1178ab,_0x5c8ca9){const _0x549620=a125_0x508b;return _0x39e026[_0x549620(0x102)](_0x1178ab,_0x5c8ca9);}};if(_0x40a24a&&_0x39e026['fXSfS'](_0x2a4b8f[_0x5dbf2d(0xe4)],0x130)){_0x451a00['destroy']();const _0x368334={};_0x368334[_0x5dbf2d(0x116)]=![],_0x39e026[_0x5dbf2d(0x10f)](_0x1de54e,_0x368334);return;}const _0xa5a933=_0x2a4b8f[_0x5dbf2d(0xfd)][_0x5dbf2d(0x13e)];_0xa5a933&&this.#saveETag(_0x441830,_0xa5a933),_0x2a4b8f[_0x5dbf2d(0x15a)](_0x451a00),_0x2a4b8f['on'](_0x39e026[_0x5dbf2d(0x12a)],function(_0x5ff4d9){const _0xe6bd9e=_0x5dbf2d;logger[_0xe6bd9e(0x10d)](_0xe6bd9e(0x179)+_0x5ff4d9),_0x3928a7[_0xe6bd9e(0x104)](_0x3db8c5,_0x5ff4d9);}),_0x451a00['on'](_0x39e026[_0x5dbf2d(0x12a)],function(_0x28dccc){const _0x4ac421=_0x5dbf2d;logger['error'](_0x4ac421(0x11e)+_0x28dccc),_0x3928a7[_0x4ac421(0x104)](_0x3db8c5,_0x28dccc);}),_0x451a00['on'](_0x39e026[_0x5dbf2d(0xf6)],()=>{const _0x17291a=_0x5dbf2d;this[_0x17291a(0x169)](_0xe26108,_0x441830)[_0x17291a(0x13b)](_0x6ef6a=>_0x1de54e({'needsUpdate':!![],'binaryPath':_0x6ef6a}))['catch'](_0x3db8c5);});})['on'](_0x2f81ed['UjZqd'],function(_0xda7ba8){const _0x475f73=_0x3dcdcc;logger[_0x475f73(0x10d)]('Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20'+_0xda7ba8),_0x39e026[_0x475f73(0x14e)](_0x3db8c5,_0xda7ba8);});});}['extractAndSaveBinary'](_0x736c18,_0xbb2fd1){const _0x211247=a125_0x44302e,_0x55455a={'punsf':function(_0x551ed4,_0x17349){return _0x551ed4===_0x17349;},'IlGCK':_0x211247(0xf2),'XGXwX':function(_0x3c4891,_0x47bf29){return _0x3c4891(_0x47bf29);},'Oikyu':_0x211247(0x14f),'IUShZ':function(_0x27d9c2,_0x1424ba){return _0x27d9c2(_0x1424ba);},'sxZMt':_0x211247(0x162),'bKWOQ':_0x211247(0x10d)},_0x110572=this.#binaryName,_0x180121=path[_0x211247(0x17b)](_0xbb2fd1,_0x110572);return new Promise((_0x307495,_0x522671)=>{const _0x5be014=_0x211247,_0x3dbc4e={'EEomt':function(_0x19d29a,_0x3d5e5c){const _0x595875=a125_0x508b;return _0x55455a[_0x595875(0x114)](_0x19d29a,_0x3d5e5c);},'hhblW':_0x55455a[_0x5be014(0x168)],'zMxAB':function(_0x5575db,_0x2e38a9){const _0x2e9d2d=_0x5be014;return _0x55455a[_0x2e9d2d(0x12d)](_0x5575db,_0x2e38a9);},'CiKua':_0x55455a[_0x5be014(0x119)],'xpEOz':function(_0x585166,_0x2af1be){const _0x3d8d4d=_0x5be014;return _0x55455a[_0x3d8d4d(0x17a)](_0x585166,_0x2af1be);},'gEppH':_0x55455a[_0x5be014(0xea)],'DqOKf':_0x55455a[_0x5be014(0x14b)]},_0x557b77={};_0x557b77[_0x5be014(0xe2)]=!![],yauzl['open'](_0x736c18,_0x557b77,function(_0xa39370,_0x2d597d){const _0x316405=_0x5be014,_0x323b70={'ybUKf':function(_0x321e2b,_0x42928f){return _0x3dbc4e['zMxAB'](_0x321e2b,_0x42928f);},'NJGlq':_0x3dbc4e['CiKua'],'JNMud':function(_0x1f128b,_0x3f2d52){const _0x4033fe=a125_0x508b;return _0x3dbc4e[_0x4033fe(0x121)](_0x1f128b,_0x3f2d52);}};_0xa39370&&_0x3dbc4e[_0x316405(0x13f)](_0x522671,_0xa39370),_0x2d597d[_0x316405(0x146)](),_0x2d597d['on'](_0x3dbc4e[_0x316405(0x138)],_0x530b89=>{const _0x59507d=_0x316405;if(/\/$/['test'](_0x530b89['fileName']))_0x2d597d[_0x59507d(0x146)]();else{const _0x39f072=fs[_0x59507d(0xf3)](path[_0x59507d(0x17b)](_0xbb2fd1,_0x530b89[_0x59507d(0xff)]));_0x2d597d[_0x59507d(0x133)](_0x530b89,function(_0x2db1c0,_0x3d0c90){const _0x48738f=_0x59507d;_0x2db1c0&&_0x323b70[_0x48738f(0x15c)](_0x522671,_0xa39370),_0x3d0c90['on'](_0x323b70[_0x48738f(0x14d)],function(){const _0x7555e0=_0x48738f;_0x39f072[_0x7555e0(0x16d)](),_0x2d597d[_0x7555e0(0x146)]();}),_0x3d0c90[_0x48738f(0x15a)](_0x39f072);}),_0x3dbc4e['EEomt'](_0x530b89[_0x59507d(0xff)],_0x110572)&&_0x2d597d[_0x59507d(0x16d)]();}}),_0x2d597d['on'](_0x3dbc4e[_0x316405(0x164)],_0x1f9c59=>{_0x323b70['JNMud'](_0x522671,_0x1f9c59);}),_0x2d597d['once'](_0x3dbc4e[_0x316405(0x165)],()=>{const _0x20ade5=_0x316405;fs[_0x20ade5(0x153)](_0x180121,_0x3dbc4e[_0x20ade5(0x11f)],function(_0x1595ec){const _0x234509=_0x20ade5;_0x1595ec&&_0x323b70[_0x234509(0xf8)](_0x522671,_0x1595ec),_0x323b70['JNMud'](_0x307495,_0x180121);}),_0x2d597d[_0x20ade5(0x16d)]();});});});}async[a125_0x44302e(0x150)](_0x432f8f){const _0x182b17=a125_0x44302e,_0x5c58cb={'YhxgL':function(_0x1c2451,_0x32b5d8){return _0x1c2451(_0x32b5d8);},'FqWUK':function(_0x1aeda1,_0x35bba4){return _0x1aeda1(_0x35bba4);},'tqvtD':function(_0x5a01ad,_0x48f76b,_0x516bd6,_0xa86972){return _0x5a01ad(_0x48f76b,_0x516bd6,_0xa86972);},'hpuei':_0x182b17(0x110),'YIlSC':_0x182b17(0xe8),'wWffT':_0x182b17(0x16d)},_0x3c07e2=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0xb1f62d,_0x4d2aa1)=>{const _0x69348=_0x182b17,_0x19ea19={};_0x19ea19['env']=process[_0x69348(0xfe)];const _0x3c1fdb=_0x5c58cb[_0x69348(0x130)](spawn,_0x432f8f,[_0x5c58cb['hpuei']],_0x19ea19);_0x3c1fdb['stdout']['on'](_0x5c58cb[_0x69348(0x154)],_0x31ec4c=>{const _0xe803c5=_0x69348;_0x3c07e2[_0xe803c5(0x13a)](_0x31ec4c)&&_0x5c58cb[_0xe803c5(0xe5)](_0xb1f62d,!![]);}),_0x3c1fdb['on'](_0x5c58cb[_0x69348(0xe3)],()=>{const _0x35d88d=_0x69348;_0x5c58cb[_0x35d88d(0x159)](_0xb1f62d,![]);});});}#homedir(){const _0x5175a5=a125_0x44302e,_0x2e31f2={};_0x2e31f2[_0x5175a5(0x122)]=function(_0x56adef,_0x3a955a){return _0x56adef===_0x3a955a;},_0x2e31f2['YurcY']='function',_0x2e31f2[_0x5175a5(0x117)]=_0x5175a5(0x115),_0x2e31f2[_0x5175a5(0x124)]=function(_0x1b4ee4,_0xb8885b){return _0x1b4ee4+_0xb8885b;},_0x2e31f2[_0x5175a5(0x175)]=_0x5175a5(0x12e),_0x2e31f2[_0x5175a5(0x11b)]='/Users/',_0x2e31f2['AkNmB']=function(_0x40c5e5,_0x297cd3){return _0x40c5e5===_0x297cd3;},_0x2e31f2[_0x5175a5(0x16e)]=_0x5175a5(0xfc),_0x2e31f2[_0x5175a5(0x149)]=_0x5175a5(0x144),_0x2e31f2['yCKbW']=_0x5175a5(0xf4),_0x2e31f2[_0x5175a5(0x12b)]=function(_0x37a554,_0x5cd98c){return _0x37a554||_0x5cd98c;};const _0x23ca08=_0x2e31f2;if(_0x23ca08[_0x5175a5(0x122)](typeof os[_0x5175a5(0x101)],_0x23ca08[_0x5175a5(0x142)]))return os['homedir']();const _0x5c9339=process[_0x5175a5(0xfe)],_0x45f825=_0x5c9339[_0x5175a5(0x141)],_0x5c4fb9=_0x5c9339[_0x5175a5(0x100)]||_0x5c9339[_0x5175a5(0x15b)]||_0x5c9339['LNAME']||_0x5c9339[_0x5175a5(0x111)];if(_0x23ca08[_0x5175a5(0x122)](process[_0x5175a5(0x10e)],_0x23ca08[_0x5175a5(0x117)]))return _0x5c9339[_0x5175a5(0x14a)]||_0x23ca08['ELRWf'](_0x5c9339['HOMEDRIVE'],_0x5c9339[_0x5175a5(0x134)])||_0x45f825||null;if(_0x23ca08['RxPeq'](process[_0x5175a5(0x10e)],_0x23ca08[_0x5175a5(0x175)]))return _0x45f825||(_0x5c4fb9?_0x23ca08[_0x5175a5(0x124)](_0x23ca08[_0x5175a5(0x11b)],_0x5c4fb9):null);if(_0x23ca08[_0x5175a5(0x135)](process['platform'],_0x23ca08['WYsDq']))return _0x45f825||(_0x23ca08['RxPeq'](process['getuid'](),0x0)?_0x23ca08[_0x5175a5(0x149)]:_0x5c4fb9?_0x23ca08[_0x5175a5(0x124)](_0x23ca08[_0x5175a5(0x155)],_0x5c4fb9):null);return _0x23ca08[_0x5175a5(0x12b)](_0x45f825,null);}}function a125_0x59c3(){const _0x3b6cb3=['extractAndSaveBinary','RzaBf','winstonLogger','Error\x20trying\x20to\x20download\x20percy\x20binary','close','WYsDq','path','url','DVDWt','DhSlO','354OvHMDy','mkdirSync','bSfzU','5625724DWHNPD','agent','getBinaryPath','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','IUShZ','join','W_OK','useCaCertificate','UjZqd','lazyEntries','wWffT','statusCode','YhxgL','jJVtZ','sIcPP','data','Failed\x20to\x20save\x20ETag\x20file:\x20','sxZMt','DDHRn','child_process','21dUEcYg','download','YgXiI','Failed\x20to\x20read\x20ETag\x20file:\x20','BUgUj','0755','createWriteStream','/home/','If-None-Match','IthMm','https://github.com/percy/cli/releases/latest/download','JNMud','FKbqi','6024696yPbxKS','VjFrH','linux','headers','env','fileName','LOGNAME','homedir','GjwRR','proxyPort','uiLYO','host','2353690bYVhgf','https-proxy-agent','percy','upxdJ','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20','/percy-linux.zip','CnRxl','error','platform','pQuIQ','--version','USERNAME','3150488gAVyrx','Connection','punsf','win32','needsUpdate','oUAnE','utf8','Oikyu','undefined','Oymio','1656493oDBhuf','tmpdir','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20','hhblW','binaryPath','zMxAB','RxPeq','debug','ELRWf','QbCAD','kwQOC','match','readFileSync','/percy-osx.zip','pboCA','KfauS','KYzvb','XGXwX','darwin','297BOpkXZ','tqvtD','TEtXv','proxyHost','openReadStream','HOMEPATH','AkNmB','JjUkh','trim','gEppH','accessSync','test','then','cwd','follow-redirects','etag','xpEOz','Saved\x20new\x20ETag\x20for\x20percy\x20binary','HOME','YurcY','SWDql','/root','tWONn','readEntry','yauzl','exports','HCgII','USERPROFILE','bKWOQ','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)','NJGlq','QZMNr','end','validateBinary','25260jXxoRX','../logger','chmod','YIlSC','yCKbW','.browserstack','982010bMwvZk','length','FqWUK','pipe','USER','ybUKf','statSync','percy.exe','get','oHknS','writeFileSync','entry','VEIUX','DqOKf','CiKua','warn','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','IlGCK'];a125_0x59c3=function(){return _0x3b6cb3;};return a125_0x59c3();}module[a125_0x44302e(0x148)]=PercyBinary;
|
|
1
|
+
function a125_0x5e03(){const _0x266c4f=['close','OmHqY','validateBinary','mkdirSync','fileName','ygsyc','EIgFA','BfSvq','112977bhsQtX','174DCmZXl','oKvqR','destroy','dqjjx','AFZha','function','goXnV','warn','ZfOpp','iTGph','headers','get','stdout','.etag','winstonLogger','path','data','open','lazyEntries','145971gwUdoM','LOGNAME','nDfwW','percy.exe','openReadStream','USERPROFILE','/root','agent','statusCode','error','ZTVNo','tmpdir','pXJne','REcXT','TkeHO','.zip','QPTwL','/percy-osx.zip','join','127315gqVGsx','New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','197019PsjNIa','Connection','once','iANEj','yDoPD','readEntry','entry','DrPLE','length','download','56833YozkSD','port','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20','proxyHost','needsUpdate','proxyPort','gcDhw','getBinaryPath','https-proxy-agent','NJaBr','NDAIO','JJupF','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20','xrQto','BwUqb','env','exports','debug','etag','ehTrw','16CvbMqo','Failed\x20to\x20save\x20ETag\x20file:\x20','end','FuOMv','yauzl','percy','CHhDQ','platform','readFileSync','homedir','USER','utf8','/Users/','createWriteStream','jBCUw','8CikVqq','url','Bgvrg','fzIgw','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','zpkoe','LnEbK','cwd','useCaCertificate','https://github.com/percy/cli/releases/latest/download','/home/','HOMEDRIVE','child_process','cbAJQ','WVcaR','zIzHb','aSHlI','qqzud','pzvVC','HOME','pNRUS','IMJwR','chmod','test','binaryPath','extractAndSaveBinary','Saved\x20new\x20ETag\x20for\x20percy\x20binary','YLDxv','CxrLP','bSklo','getuid','win32','accessSync','host','trim','SNqsZ','/percy-win.zip','ZSGgI','6476690uZveNu','Failed\x20to\x20read\x20ETag\x20file:\x20','MYwhd','X_OK','oADOl','0755','R_OK','HOMEPATH','parse','mVWYb','match','pipe','catch','mjrch','Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20','UbHjv','--version','302264jXpGoq','XdnOF','LHkYH'];a125_0x5e03=function(){return _0x266c4f;};return a125_0x5e03();}const a125_0x3bbd42=a125_0x2148;function a125_0x2148(_0x10b749,_0x55491e){const _0x5e0309=a125_0x5e03();return a125_0x2148=function(_0x214861,_0x16aa0b){_0x214861=_0x214861-0x1ea;let _0x13415e=_0x5e0309[_0x214861];return _0x13415e;},a125_0x2148(_0x10b749,_0x55491e);}(function(_0x39a9bc,_0xfd93cd){const _0x302989=a125_0x2148,_0x33c1b0=_0x39a9bc();while(!![]){try{const _0x1acd58=parseInt(_0x302989(0x234))/0x1+-parseInt(_0x302989(0x215))/0x2+-parseInt(_0x302989(0x249))/0x3*(parseInt(_0x302989(0x267))/0x4)+-parseInt(_0x302989(0x247))/0x5+-parseInt(_0x302989(0x221))/0x6*(parseInt(_0x302989(0x253))/0x7)+parseInt(_0x302989(0x276))/0x8*(parseInt(_0x302989(0x220))/0x9)+parseInt(_0x302989(0x204))/0xa;if(_0x1acd58===_0xfd93cd)break;else _0x33c1b0['push'](_0x33c1b0['shift']());}catch(_0xd1bb02){_0x33c1b0['push'](_0x33c1b0['shift']());}}}(a125_0x5e03,0x2017f));const {https}=require('follow-redirects'),url=require(a125_0x3bbd42(0x277)),yauzl=require(a125_0x3bbd42(0x26b)),fs=require('fs'),path=require(a125_0x3bbd42(0x230)),os=require('os'),{spawn}=require(a125_0x3bbd42(0x1ea)),HttpsProxyAgent=require(a125_0x3bbd42(0x25b)),logger=require('../logger')[a125_0x3bbd42(0x22f)];class PercyBinary{#hostOS=process[a125_0x3bbd42(0x26e)];#httpPath=null;#binaryName=a125_0x3bbd42(0x26c);#orderedPaths=[path[a125_0x3bbd42(0x246)](this.#homedir(),'.browserstack'),process[a125_0x3bbd42(0x27d)](),os[a125_0x3bbd42(0x23f)]()];constructor(){const _0x2c8b2f=a125_0x3bbd42,_0x15e94a={};_0x15e94a['MYwhd']=_0x2c8b2f(0x27f),_0x15e94a[_0x2c8b2f(0x217)]=function(_0x4e0e6d,_0x5ecd11){return _0x4e0e6d+_0x5ecd11;},_0x15e94a[_0x2c8b2f(0x21f)]=_0x2c8b2f(0x245),_0x15e94a[_0x2c8b2f(0x203)]=_0x2c8b2f(0x202),_0x15e94a[_0x2c8b2f(0x22a)]=_0x2c8b2f(0x237),_0x15e94a['TLbzT']=function(_0x3e6692,_0x4c0835){return _0x3e6692+_0x4c0835;},_0x15e94a['cbAJQ']='/percy-linux.zip';const _0x7ecf55=_0x15e94a,_0x1c677c=_0x7ecf55[_0x2c8b2f(0x206)];if(this.#hostOS[_0x2c8b2f(0x20e)](/darwin|mac os/i))this.#httpPath=_0x7ecf55[_0x2c8b2f(0x217)](_0x1c677c,_0x7ecf55['BfSvq']);else this.#hostOS[_0x2c8b2f(0x20e)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x7ecf55[_0x2c8b2f(0x217)](_0x1c677c,_0x7ecf55[_0x2c8b2f(0x203)]),this.#binaryName=_0x7ecf55[_0x2c8b2f(0x22a)]):this.#httpPath=_0x7ecf55['TLbzT'](_0x1c677c,_0x7ecf55[_0x2c8b2f(0x1eb)]);}#getAvailableDirs(){const _0x17d08a=a125_0x3bbd42,_0x18b1b5={};_0x18b1b5['XdnOF']=function(_0x298aaa,_0x466270){return _0x298aaa<_0x466270;},_0x18b1b5['ehTrw']='Error\x20trying\x20to\x20download\x20percy\x20binary';const _0x5293d3=_0x18b1b5;for(var _0x22eb67=0x0;_0x5293d3[_0x17d08a(0x216)](_0x22eb67,this.#orderedPaths[_0x17d08a(0x251)]);_0x22eb67++){var _0x4003b5=this.#orderedPaths[_0x22eb67];if(this.#makePath(_0x4003b5))return _0x4003b5;}throw new Error(_0x5293d3[_0x17d08a(0x266)]);}#makePath(_0x508d25){const _0x2fcd07=a125_0x3bbd42;try{return _0x508d25&&!this.#checkPath(_0x508d25)&&fs[_0x2fcd07(0x21b)](_0x508d25),!![];}catch{return![];}}#checkPath(_0xd4a637,_0x53d3dd){const _0x28af68=a125_0x3bbd42,_0xd1ddf={};_0xd1ddf['pzvVC']=function(_0x5d0622,_0x11a683){return _0x5d0622|_0x11a683;},_0xd1ddf['goXnV']=function(_0x267577,_0x22ea24){return _0x267577!==_0x22ea24;},_0xd1ddf['zIzHb']='undefined';const _0x352403=_0xd1ddf;_0x53d3dd=_0x53d3dd||_0x352403[_0x28af68(0x1f0)](fs[_0x28af68(0x20a)],fs['W_OK']);try{return fs[_0x28af68(0x1fe)](_0xd4a637,_0x53d3dd),!![];}catch(_0x561512){if(_0x352403[_0x28af68(0x227)](typeof fs[_0x28af68(0x1fe)],_0x352403[_0x28af68(0x1ed)]))return![];try{return fs['statSync'](_0xd4a637),!![];}catch(_0x44ec09){return![];}}}#getETagPath(_0x1633d8){const _0x29e909=a125_0x3bbd42;return path['join'](_0x1633d8,this.#binaryName+_0x29e909(0x22e));}#loadETag(_0x52be69){const _0x3fabca=a125_0x3bbd42,_0x1278e2={};_0x1278e2[_0x3fabca(0x25c)]=_0x3fabca(0x272);const _0x34d8e6=_0x1278e2,_0x4625ff=this.#getETagPath(_0x52be69);if(this.#checkPath(_0x4625ff))try{return fs[_0x3fabca(0x26f)](_0x4625ff,_0x34d8e6['NJaBr'])[_0x3fabca(0x200)]();}catch(_0x54747f){logger['warn'](_0x3fabca(0x205)+_0x54747f);}return null;}#saveETag(_0x3430bc,_0x50b7cd){const _0x47d3fb=a125_0x3bbd42,_0xab6c18={};_0xab6c18['wXvAm']=_0x47d3fb(0x1f8);const _0x590473=_0xab6c18;if(!_0x50b7cd)return;try{const _0x2a59fd=this.#getETagPath(_0x3430bc);fs['writeFileSync'](_0x2a59fd,_0x50b7cd),logger[_0x47d3fb(0x264)](_0x590473['wXvAm']);}catch(_0x199ff8){logger[_0x47d3fb(0x228)](_0x47d3fb(0x268)+_0x199ff8);}}async #handleBinaryDownload(_0x13c2ff,_0xcadf32,_0x4dfb8b){const _0x339c39=a125_0x3bbd42,_0x386baf={};_0x386baf['zpkoe']=_0x339c39(0x27a);const _0x4dc845=_0x386baf,_0x2e9643=await this[_0x339c39(0x21a)](_0x13c2ff[_0x339c39(0x1f6)]);if(!_0x2e9643){logger['error'](_0x4dc845[_0x339c39(0x27b)]);const _0x1062ed=await this[_0x339c39(0x252)](_0xcadf32,_0x4dfb8b);return _0x1062ed[_0x339c39(0x1f6)];}return _0x13c2ff['binaryPath'];}async[a125_0x3bbd42(0x25a)](_0x4e51b1){const _0x5e5085=a125_0x3bbd42,_0x57ae12={};_0x57ae12[_0x5e5085(0x21e)]='Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)',_0x57ae12['SNqsZ']=_0x5e5085(0x248);const _0x2cd25c=_0x57ae12,_0x44fa43=this.#getAvailableDirs(),_0x8184a3=path[_0x5e5085(0x246)](_0x44fa43,this.#binaryName);if(this.#checkPath(_0x8184a3,fs[_0x5e5085(0x207)])){const _0x7118e0=this.#loadETag(_0x44fa43);if(_0x7118e0)try{const _0x5957f9=await this[_0x5e5085(0x252)](_0x4e51b1,_0x44fa43,_0x7118e0);if(!_0x5957f9[_0x5e5085(0x257)])return logger['debug'](_0x2cd25c[_0x5e5085(0x21e)]),_0x8184a3;return logger[_0x5e5085(0x264)](_0x2cd25c[_0x5e5085(0x201)]),await this.#handleBinaryDownload(_0x5957f9,_0x4e51b1,_0x44fa43);}catch(_0x5910d6){return logger[_0x5e5085(0x228)](_0x5e5085(0x212)+_0x5910d6),_0x8184a3;}}const _0x9d28d1=await this[_0x5e5085(0x252)](_0x4e51b1,_0x44fa43);return await this.#handleBinaryDownload(_0x9d28d1,_0x4e51b1,_0x44fa43);}['download'](_0x104df8,_0x162bdb,_0x526db8=null){const _0x45f1a5=a125_0x3bbd42,_0x5a25bb={'pNRUS':function(_0x2ee468,_0x18ca57){return _0x2ee468(_0x18ca57);},'WVcaR':function(_0x312635,_0x5733ba){return _0x312635===_0x5733ba;},'fzIgw':_0x45f1a5(0x23d),'FuOMv':_0x45f1a5(0x218),'zQuOQ':function(_0x1cfed7,_0x4e174d){return _0x1cfed7+_0x4e174d;},'IMJwR':_0x45f1a5(0x243)};_0x162bdb&&!this.#checkPath(_0x162bdb)&&fs[_0x45f1a5(0x21b)](_0x162bdb);const _0x415178=this.#binaryName,_0x3f5fa9=path[_0x45f1a5(0x246)](_0x162bdb,_0x5a25bb['zQuOQ'](_0x415178,_0x5a25bb[_0x45f1a5(0x1f3)])),_0x507775=fs[_0x45f1a5(0x274)](_0x3f5fa9),_0x2d9d4e=url[_0x45f1a5(0x20c)](this.#httpPath);if(_0x104df8['proxyHost']&&_0x104df8[_0x45f1a5(0x258)]){const _0x4b59e1={};_0x4b59e1[_0x45f1a5(0x1ff)]=_0x104df8[_0x45f1a5(0x256)],_0x4b59e1[_0x45f1a5(0x254)]=_0x104df8[_0x45f1a5(0x258)],_0x2d9d4e[_0x45f1a5(0x23b)]=new HttpsProxyAgent(_0x4b59e1);}if(_0x104df8['useCaCertificate'])try{_0x2d9d4e['ca']=fs[_0x45f1a5(0x26f)](_0x104df8[_0x45f1a5(0x27e)]);}catch(_0x4aaefc){logger[_0x45f1a5(0x23d)]('Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20'+_0x4aaefc);}if(_0x526db8){const _0x3ba7b0={};_0x3ba7b0['If-None-Match']=_0x526db8,_0x3ba7b0[_0x45f1a5(0x24a)]=_0x5a25bb[_0x45f1a5(0x26a)],_0x2d9d4e[_0x45f1a5(0x22b)]=_0x3ba7b0;}else{const _0x4cd87f={};_0x4cd87f[_0x45f1a5(0x24a)]=_0x5a25bb['FuOMv'],_0x2d9d4e[_0x45f1a5(0x22b)]=_0x4cd87f;}return new Promise((_0x16ef22,_0x28c529)=>{const _0x5b8e5e=_0x45f1a5,_0x4a5235={'UbHjv':function(_0x372a7f,_0x5db384){const _0x540780=a125_0x2148;return _0x5a25bb[_0x540780(0x1f2)](_0x372a7f,_0x5db384);},'LNROM':function(_0xcc7065,_0x546e75){const _0x2c33d1=a125_0x2148;return _0x5a25bb[_0x2c33d1(0x1ec)](_0xcc7065,_0x546e75);},'YLDxv':_0x5a25bb[_0x5b8e5e(0x279)],'ZfOpp':_0x5a25bb[_0x5b8e5e(0x26a)]};https[_0x5b8e5e(0x22c)](_0x2d9d4e,_0x5e070d=>{const _0xfb40f3=_0x5b8e5e,_0x3e298c={'pXJne':function(_0x2e26d2,_0x3555a5){return _0x4a5235['UbHjv'](_0x2e26d2,_0x3555a5);},'iTJWE':function(_0x3ae1f0,_0x2a3716){return _0x4a5235['UbHjv'](_0x3ae1f0,_0x2a3716);}};if(_0x526db8&&_0x4a5235['LNROM'](_0x5e070d[_0xfb40f3(0x23c)],0x130)){_0x507775[_0xfb40f3(0x223)]();const _0x317f9a={};_0x317f9a[_0xfb40f3(0x257)]=![],_0x4a5235[_0xfb40f3(0x213)](_0x16ef22,_0x317f9a);return;}const _0x9d4ffe=_0x5e070d[_0xfb40f3(0x22b)][_0xfb40f3(0x265)];_0x9d4ffe&&this.#saveETag(_0x162bdb,_0x9d4ffe),_0x5e070d[_0xfb40f3(0x20f)](_0x507775),_0x5e070d['on'](_0x4a5235[_0xfb40f3(0x1f9)],function(_0x89bae9){const _0x23b5e1=_0xfb40f3;logger['error']('Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20'+_0x89bae9),_0x3e298c[_0x23b5e1(0x240)](_0x28c529,_0x89bae9);}),_0x507775['on'](_0x4a5235[_0xfb40f3(0x1f9)],function(_0x4db09a){const _0x18b47=_0xfb40f3;logger[_0x18b47(0x23d)](_0x18b47(0x25f)+_0x4db09a),_0x3e298c['iTJWE'](_0x28c529,_0x4db09a);}),_0x507775['on'](_0x4a5235[_0xfb40f3(0x229)],()=>{const _0x453515=_0xfb40f3;this['extractAndSaveBinary'](_0x3f5fa9,_0x162bdb)['then'](_0x4f0f7a=>_0x16ef22({'needsUpdate':!![],'binaryPath':_0x4f0f7a}))[_0x453515(0x210)](_0x28c529);});})['on'](_0x5a25bb[_0x5b8e5e(0x279)],function(_0x52ac23){const _0x8499e7=_0x5b8e5e;logger['error'](_0x8499e7(0x255)+_0x52ac23),_0x5a25bb['pNRUS'](_0x28c529,_0x52ac23);});});}[a125_0x3bbd42(0x1f7)](_0x597aae,_0x1ba166){const _0x4f01fa=a125_0x3bbd42,_0x47e15c={'gcDhw':function(_0x38efd2,_0x542769){return _0x38efd2(_0x542769);},'iQYLL':_0x4f01fa(0x209),'JJupF':function(_0x2d0eb7,_0x1a1340){return _0x2d0eb7(_0x1a1340);},'OmHqY':_0x4f01fa(0x269),'QPTwL':function(_0x2420b6,_0x2b055b){return _0x2420b6===_0x2b055b;},'qqzud':_0x4f01fa(0x24f),'jBCUw':_0x4f01fa(0x23d)},_0x23261f=this.#binaryName,_0x213801=path[_0x4f01fa(0x246)](_0x1ba166,_0x23261f);return new Promise((_0x50a0ee,_0x3d096e)=>{const _0x164579=_0x4f01fa,_0x287515={'iANEj':function(_0x45ed73,_0x379a4f){const _0x4ddf77=a125_0x2148;return _0x47e15c[_0x4ddf77(0x259)](_0x45ed73,_0x379a4f);},'sAqqZ':_0x47e15c['iQYLL'],'mVWYb':function(_0x8b76d3,_0x2f0a23){const _0x47fc09=a125_0x2148;return _0x47e15c[_0x47fc09(0x25e)](_0x8b76d3,_0x2f0a23);},'LnEbK':_0x47e15c[_0x164579(0x219)],'dqjjx':function(_0x19a928,_0x3388f2){const _0x44f028=_0x164579;return _0x47e15c[_0x44f028(0x244)](_0x19a928,_0x3388f2);},'bSklo':_0x47e15c[_0x164579(0x1ef)],'qBdRG':_0x47e15c[_0x164579(0x275)]},_0x5c146c={};_0x5c146c[_0x164579(0x233)]=!![],yauzl[_0x164579(0x232)](_0x597aae,_0x5c146c,function(_0x3285fd,_0x176653){const _0x3e0e65=_0x164579,_0x451d13={'ygsyc':function(_0x4ee82d,_0x4546aa){const _0x453fc1=a125_0x2148;return _0x287515[_0x453fc1(0x20d)](_0x4ee82d,_0x4546aa);},'oKvqR':_0x287515[_0x3e0e65(0x27c)],'zzjxB':function(_0x252ee4,_0x243765){const _0x3194ea=_0x3e0e65;return _0x287515[_0x3194ea(0x224)](_0x252ee4,_0x243765);},'BwUqb':function(_0x10ad98,_0x23de78){return _0x287515['iANEj'](_0x10ad98,_0x23de78);}};_0x3285fd&&_0x287515['iANEj'](_0x3d096e,_0x3285fd),_0x176653[_0x3e0e65(0x24e)](),_0x176653['on'](_0x287515[_0x3e0e65(0x1fb)],_0xff39a2=>{const _0x2092f4=_0x3e0e65;if(/\/$/[_0x2092f4(0x1f5)](_0xff39a2[_0x2092f4(0x21c)]))_0x176653[_0x2092f4(0x24e)]();else{const _0x571ddb=fs[_0x2092f4(0x274)](path[_0x2092f4(0x246)](_0x1ba166,_0xff39a2[_0x2092f4(0x21c)]));_0x176653[_0x2092f4(0x238)](_0xff39a2,function(_0x2aff76,_0x3136d8){const _0x1bc569=_0x2092f4;_0x2aff76&&_0x451d13[_0x1bc569(0x21d)](_0x3d096e,_0x3285fd),_0x3136d8['on'](_0x451d13[_0x1bc569(0x222)],function(){const _0x101211=_0x1bc569;_0x571ddb['close'](),_0x176653[_0x101211(0x24e)]();}),_0x3136d8[_0x1bc569(0x20f)](_0x571ddb);}),_0x451d13['zzjxB'](_0xff39a2[_0x2092f4(0x21c)],_0x23261f)&&_0x176653[_0x2092f4(0x218)]();}}),_0x176653['on'](_0x287515['qBdRG'],_0x4c6cd0=>{const _0x1dc34b=_0x3e0e65;_0x287515[_0x1dc34b(0x24c)](_0x3d096e,_0x4c6cd0);}),_0x176653[_0x3e0e65(0x24b)](_0x287515[_0x3e0e65(0x27c)],()=>{const _0x381bc8=_0x3e0e65;fs[_0x381bc8(0x1f4)](_0x213801,_0x287515['sAqqZ'],function(_0x427a22){const _0x5919c8=_0x381bc8;_0x427a22&&_0x451d13[_0x5919c8(0x261)](_0x3d096e,_0x427a22),_0x451d13[_0x5919c8(0x261)](_0x50a0ee,_0x213801);}),_0x176653[_0x381bc8(0x218)]();});});});}async['validateBinary'](_0x4e7906){const _0x57c5ec=a125_0x3bbd42,_0x4f529f={'yDoPD':function(_0x596ae4,_0x275a58){return _0x596ae4(_0x275a58);},'AFZha':function(_0x471dfa,_0x4b79cf,_0x397508,_0x4b6179){return _0x471dfa(_0x4b79cf,_0x397508,_0x4b6179);},'TkeHO':_0x57c5ec(0x214),'CxrLP':_0x57c5ec(0x231),'oADOl':'close'},_0xb2664b=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x3f7c3f,_0x119892)=>{const _0x5053de=_0x57c5ec,_0x465a8c={'NDAIO':function(_0x207621,_0x183d7d){const _0x81870d=a125_0x2148;return _0x4f529f[_0x81870d(0x24d)](_0x207621,_0x183d7d);}},_0x19a70d={};_0x19a70d[_0x5053de(0x262)]=process['env'];const _0x2e8b0b=_0x4f529f[_0x5053de(0x225)](spawn,_0x4e7906,[_0x4f529f[_0x5053de(0x242)]],_0x19a70d);_0x2e8b0b[_0x5053de(0x22d)]['on'](_0x4f529f[_0x5053de(0x1fa)],_0x561fd2=>{const _0x58bfdc=_0x5053de;_0xb2664b[_0x58bfdc(0x1f5)](_0x561fd2)&&_0x465a8c[_0x58bfdc(0x25d)](_0x3f7c3f,!![]);}),_0x2e8b0b['on'](_0x4f529f[_0x5053de(0x208)],()=>{const _0xc9ae6c=_0x5053de;_0x4f529f[_0xc9ae6c(0x24d)](_0x3f7c3f,![]);});});}#homedir(){const _0x298448=a125_0x3bbd42,_0x4f215b={};_0x4f215b[_0x298448(0x250)]=function(_0xac020e,_0x4f5504){return _0xac020e===_0x4f5504;},_0x4f215b['ITiBB']=_0x298448(0x226),_0x4f215b[_0x298448(0x260)]=_0x298448(0x1fd),_0x4f215b[_0x298448(0x241)]=function(_0x3b90bd,_0x54d12c){return _0x3b90bd+_0x54d12c;},_0x4f215b['qvOpX']='darwin',_0x4f215b['CHhDQ']=_0x298448(0x273),_0x4f215b[_0x298448(0x23e)]=function(_0x3a3b72,_0x144cc5){return _0x3a3b72===_0x144cc5;},_0x4f215b[_0x298448(0x1ee)]='linux',_0x4f215b['Bgvrg']=_0x298448(0x23a),_0x4f215b[_0x298448(0x236)]=_0x298448(0x280),_0x4f215b[_0x298448(0x211)]=function(_0x4bc876,_0x499c78){return _0x4bc876||_0x499c78;};const _0x3023fb=_0x4f215b;if(_0x3023fb[_0x298448(0x250)](typeof os[_0x298448(0x270)],_0x3023fb['ITiBB']))return os[_0x298448(0x270)]();const _0x555244=process['env'],_0x17a31d=_0x555244[_0x298448(0x1f1)],_0x1a7b67=_0x555244[_0x298448(0x235)]||_0x555244[_0x298448(0x271)]||_0x555244['LNAME']||_0x555244['USERNAME'];if(_0x3023fb[_0x298448(0x250)](process[_0x298448(0x26e)],_0x3023fb[_0x298448(0x260)]))return _0x555244[_0x298448(0x239)]||_0x3023fb[_0x298448(0x241)](_0x555244[_0x298448(0x281)],_0x555244[_0x298448(0x20b)])||_0x17a31d||null;if(_0x3023fb[_0x298448(0x250)](process['platform'],_0x3023fb['qvOpX']))return _0x17a31d||(_0x1a7b67?_0x3023fb[_0x298448(0x241)](_0x3023fb[_0x298448(0x26d)],_0x1a7b67):null);if(_0x3023fb[_0x298448(0x23e)](process['platform'],_0x3023fb[_0x298448(0x1ee)]))return _0x17a31d||(_0x3023fb[_0x298448(0x250)](process[_0x298448(0x1fc)](),0x0)?_0x3023fb[_0x298448(0x278)]:_0x1a7b67?_0x3023fb['REcXT'](_0x3023fb[_0x298448(0x236)],_0x1a7b67):null);return _0x3023fb[_0x298448(0x211)](_0x17a31d,null);}}module[a125_0x3bbd42(0x263)]=PercyBinary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a126_0x369161=a126_0x51fe;function a126_0x51fe(_0x2183fb,_0x591dfa){var _0x19f733=a126_0x19f7();return a126_0x51fe=function(_0x51fee8,_0x42d63f){_0x51fee8=_0x51fee8-0x186;var _0x50e6b9=_0x19f733[_0x51fee8];return _0x50e6b9;},a126_0x51fe(_0x2183fb,_0x591dfa);}(function(_0x5a4995,_0x5d1b02){var _0x68d9b3=a126_0x51fe,_0x5dc31d=_0x5a4995();while(!![]){try{var _0x1c0f8e=-parseInt(_0x68d9b3(0x190))/0x1*(parseInt(_0x68d9b3(0x187))/0x2)+parseInt(_0x68d9b3(0x18f))/0x3+-parseInt(_0x68d9b3(0x18d))/0x4+-parseInt(_0x68d9b3(0x191))/0x5+-parseInt(_0x68d9b3(0x18b))/0x6*(parseInt(_0x68d9b3(0x192))/0x7)+parseInt(_0x68d9b3(0x189))/0x8+parseInt(_0x68d9b3(0x186))/0x9*(parseInt(_0x68d9b3(0x188))/0xa);if(_0x1c0f8e===_0x5d1b02)break;else _0x5dc31d['push'](_0x5dc31d['shift']());}catch(_0x547cd3){_0x5dc31d['push'](_0x5dc31d['shift']());}}}(a126_0x19f7,0xbcef0));class PercyCaptureMap{#map={};[a126_0x369161(0x193)](_0x6ed1f2,_0x527c31){!this.#map[_0x6ed1f2]&&(this.#map[_0x6ed1f2]={}),!this.#map[_0x6ed1f2][_0x527c31]&&(this.#map[_0x6ed1f2][_0x527c31]=0x0),this.#map[_0x6ed1f2][_0x527c31]++;}[a126_0x369161(0x18c)](_0x2d278f,_0x677282){var _0x4ac703=a126_0x369161;return _0x2d278f+'-'+_0x677282+'-'+this[_0x4ac703(0x18a)](_0x2d278f,_0x677282);}[a126_0x369161(0x18a)](_0x55c87e,_0x5d1aac){if(!this.#map[_0x55c87e])return 0x0;if(!this.#map[_0x55c87e][_0x5d1aac])return 0x0;return this.#map[_0x55c87e][_0x5d1aac];}}module[a126_0x369161(0x18e)]=PercyCaptureMap;function a126_0x19f7(){var _0x27ffd0=['getName','4124524NrmcVf','exports','2140107fvDAlS','1pkNvwQ','5720295iLenJx','49grGXod','increment','2925JBlFmF','423774mTysfC','53540DgfXcc','9357136RNEDmS','get','396096PrjRsP'];a126_0x19f7=function(){return _0x27ffd0;};return a126_0x19f7();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a127_0x3aee(_0x3921f8,_0x13e023){var _0x5f496b=a127_0x5f49();return a127_0x3aee=function(_0x3aee8f,_0x3a94b4){_0x3aee8f=_0x3aee8f-0x17c;var _0x10ab73=_0x5f496b[_0x3aee8f];return _0x10ab73;},a127_0x3aee(_0x3921f8,_0x13e023);}function a127_0x5f49(){var _0xdfcb51=['5028800xoSANs','driver','takeScreenshot','354moDSVy','3784RNwNMB','manual','exports','2255335WKNhDO','20583gGHDDt','sendKeys','auto','testcase','31RIYWdI','22730YAoyEI','click','element','91441wkElnG','23385730KVvVDZ','1871277mZtlao'];a127_0x5f49=function(){return _0xdfcb51;};return a127_0x5f49();}var a127_0x2b268f=a127_0x3aee;(function(_0x2e9326,_0x18dcc8){var _0x396ddf=a127_0x3aee,_0x58ded8=_0x2e9326();while(!![]){try{var _0xa920a4=-parseInt(_0x396ddf(0x180))/0x1*(-parseInt(_0x396ddf(0x181))/0x2)+parseInt(_0x396ddf(0x186))/0x3+parseInt(_0x396ddf(0x187))/0x4+parseInt(_0x396ddf(0x18e))/0x5+parseInt(_0x396ddf(0x18a))/0x6*(-parseInt(_0x396ddf(0x184))/0x7)+-parseInt(_0x396ddf(0x18b))/0x8*(-parseInt(_0x396ddf(0x17c))/0x9)+-parseInt(_0x396ddf(0x185))/0xa;if(_0xa920a4===_0x18dcc8)break;else _0x58ded8['push'](_0x58ded8['shift']());}catch(_0x1987c0){_0x58ded8['push'](_0x58ded8['shift']());}}}(a127_0x5f49,0xa05a2));var a127_0x10a9ce={};a127_0x10a9ce[a127_0x2b268f(0x188)]=['takeScreenshot'],a127_0x10a9ce[a127_0x2b268f(0x183)]=[a127_0x2b268f(0x182),a127_0x2b268f(0x17d)];var a127_0x11af17={};a127_0x11af17[a127_0x2b268f(0x188)]=[a127_0x2b268f(0x189)];var a127_0x5a8b02={};a127_0x5a8b02[a127_0x2b268f(0x183)]=[a127_0x2b268f(0x182)];var a127_0x34faf9={};a127_0x34faf9[a127_0x2b268f(0x17e)]=a127_0x10a9ce,a127_0x34faf9['screenshot']=a127_0x11af17,a127_0x34faf9[a127_0x2b268f(0x182)]=a127_0x5a8b02,a127_0x34faf9[a127_0x2b268f(0x17f)]={},a127_0x34faf9[a127_0x2b268f(0x18c)]={},module[a127_0x2b268f(0x18d)]=a127_0x34faf9;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a128_0x3fe075=a128_0x3bb1;(function(_0x27e17d,_0xcf867a){const _0x4faeb7=a128_0x3bb1,_0x3b7e61=_0x27e17d();while(!![]){try{const _0x2c3b7e=-parseInt(_0x4faeb7(0x17e))/0x1*(parseInt(_0x4faeb7(0x16f))/0x2)+parseInt(_0x4faeb7(0x184))/0x3*(parseInt(_0x4faeb7(0x167))/0x4)+parseInt(_0x4faeb7(0x18a))/0x5+parseInt(_0x4faeb7(0x165))/0x6*(parseInt(_0x4faeb7(0x189))/0x7)+parseInt(_0x4faeb7(0x16c))/0x8+parseInt(_0x4faeb7(0x17f))/0x9+-parseInt(_0x4faeb7(0x176))/0xa;if(_0x2c3b7e===_0xcf867a)break;else _0x3b7e61['push'](_0x3b7e61['shift']());}catch(_0x534dd8){_0x3b7e61['push'](_0x3b7e61['shift']());}}}(a128_0x517e,0x7da96));const tryRequire=function(_0x36d41c,_0x50cbe1){const _0x2a4059=a128_0x3bb1,_0x59b25d={'idLZz':function(_0x86819e,_0x32e564){return _0x86819e(_0x32e564);}};try{return _0x59b25d[_0x2a4059(0x177)](require,_0x36d41c);}catch{return _0x50cbe1;}},percySnapshot=tryRequire('@percy/selenium-webdriver',null),{percyScreenshot}=tryRequire(a128_0x3fe075(0x181),{}),percyAppScreenshot=require(a128_0x3fe075(0x182)),{getCurrentTestData}=require(a128_0x3fe075(0x169)),PerformanceTester=require(a128_0x3fe075(0x186)),{PERCY_EVENTS:PerformanceEvents}=require(a128_0x3fe075(0x183)),logger=require('../logger')['winstonLogger'];percySnapshot&&(exports[a128_0x3fe075(0x16a)]=async function(){const _0x4f5341=a128_0x3fe075,_0xeb2101={'mxqYR':function(_0x41a7eb,_0x18982d){return _0x41a7eb!==_0x18982d;},'PpauF':function(_0x55259f,_0x4637d4){return _0x55259f>=_0x4637d4;},'oCnKp':function(_0x34c87e){return _0x34c87e();}};if(global[_0x4f5341(0x17a)]&&_0xeb2101['mxqYR'](global[_0x4f5341(0x17a)],global[_0x4f5341(0x170)]))return;const _0x5dd6d0=_0xeb2101[_0x4f5341(0x187)](arguments[_0x4f5341(0x174)],0x2)?arguments[0x1]:'',_0x867470=_0xeb2101[_0x4f5341(0x179)](getCurrentTestData),_0x643ade={};return _0x643ade[_0x4f5341(0x17d)]=_0x5dd6d0,_0x643ade[_0x4f5341(0x188)]=_0x867470[_0x4f5341(0x17d)]||'',_0x643ade[_0x4f5341(0x16d)]=_0x867470[_0x4f5341(0x175)]||'',_0x643ade[_0x4f5341(0x178)]=global['browserstackPlatformIndex'],await PerformanceTester['measure'](PerformanceEvents[_0x4f5341(0x171)],()=>percySnapshot[_0x4f5341(0x180)](null,arguments),_0x643ade);});function a128_0x3bb1(_0x309bee,_0x2550e0){const _0x517eff=a128_0x517e();return a128_0x3bb1=function(_0x3bb1ff,_0x1d0074){_0x3bb1ff=_0x3bb1ff-0x165;let _0x558714=_0x517eff[_0x3bb1ff];return _0x558714;},a128_0x3bb1(_0x309bee,_0x2550e0);}percyScreenshot?exports[a128_0x3fe075(0x185)]=async function(){const _0x4709f7=a128_0x3fe075,_0x5236f4={'asSxj':function(_0x2bc410,_0x790b17){return _0x2bc410>=_0x790b17;},'ktZMU':function(_0x3dd29d){return _0x3dd29d();}},_0x4603df=_0x5236f4['asSxj'](arguments[_0x4709f7(0x174)],0x2)?arguments[0x1]:'',_0x575399=_0x5236f4[_0x4709f7(0x172)](getCurrentTestData),_0x366d5f={};return _0x366d5f[_0x4709f7(0x17d)]=_0x4603df,_0x366d5f[_0x4709f7(0x188)]=_0x575399['name']||'',_0x366d5f['thTestCaseExecutionId']=_0x575399[_0x4709f7(0x175)]||'',_0x366d5f[_0x4709f7(0x178)]=global['browserstackPlatformIndex'],await PerformanceTester[_0x4709f7(0x168)](PerformanceEvents[_0x4709f7(0x16b)],()=>percyScreenshot[_0x4709f7(0x180)](null,arguments),_0x366d5f);}:exports[a128_0x3fe075(0x185)]=()=>{const _0x5c1df4=a128_0x3fe075,_0x5e534e={};_0x5e534e[_0x5c1df4(0x173)]=_0x5c1df4(0x17c);const _0x34d6c9=_0x5e534e;logger[_0x5c1df4(0x166)](_0x34d6c9[_0x5c1df4(0x173)]);};exports[a128_0x3fe075(0x17b)]=async function(){const _0x46705d=a128_0x3fe075,_0x1df683={'vovHI':function(_0xd518d9,_0x283375){return _0xd518d9>=_0x283375;},'WEtXi':function(_0x43f354){return _0x43f354();}},_0xa94bca=_0x1df683[_0x46705d(0x16e)](arguments['length'],0x2)?arguments[0x1]:'',_0x54fa57=_0x1df683['WEtXi'](getCurrentTestData),_0x32e2a8={};return _0x32e2a8[_0x46705d(0x17d)]=_0xa94bca,_0x32e2a8[_0x46705d(0x188)]=_0x54fa57[_0x46705d(0x17d)]||'',_0x32e2a8[_0x46705d(0x16d)]=_0x54fa57[_0x46705d(0x175)]||'',_0x32e2a8[_0x46705d(0x178)]=global[_0x46705d(0x17a)],await PerformanceTester[_0x46705d(0x168)](PerformanceEvents[_0x46705d(0x18b)],()=>percyAppScreenshot['apply'](null,arguments),_0x32e2a8);};function a128_0x517e(){const _0x1325ef=['SCREENSHOT_APP','18oGUKbo','error','4qdiAsN','measure','../../helpers/testhub/utils','snapshot','SCREENSHOT','5786104xoPlWA','thTestCaseExecutionId','vovHI','902XkEZrp','browserstackPercyBestPlatform','SNAPSHOT','ktZMU','ixGIM','length','uuid','16975750DXOLpk','idLZz','platformIndex','oCnKp','browserstackPlatformIndex','screenshotApp','Unsupported\x20driver\x20for\x20percy','name','1829FDLxWz','8908002QJPMJY','apply','@percy/selenium-webdriver','@percy/appium-app','../performance/constants','936933MbxMHS','screenshot','../performance/performance-tester','PpauF','testCase','1908193WUUktB','970075lITAWP'];a128_0x517e=function(){return _0x1325ef;};return a128_0x517e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a129_0x26dd(_0x2e4a4c,_0x1dcf59){var _0x55e0aa=a129_0x55e0();return a129_0x26dd=function(_0x26dd29,_0x579e29){_0x26dd29=_0x26dd29-0xa0;var _0x43aeea=_0x55e0aa[_0x26dd29];return _0x43aeea;},a129_0x26dd(_0x2e4a4c,_0x1dcf59);}function a129_0x55e0(){var _0x1b2464=['12juESFr','8473755fLJNQT','10387750pjsCRm','8593443qtztOf','exports','10982531GzkvMo','./Percy','2409zRaets','10829022bWGUVA','163288fFwwpY','16WCZdOg','836zkOSRa'];a129_0x55e0=function(){return _0x1b2464;};return a129_0x55e0();}var a129_0x410d35=a129_0x26dd;(function(_0x15c680,_0x285a8e){var _0x41c1d2=a129_0x26dd,_0x20c88b=_0x15c680();while(!![]){try{var _0x3e11f1=-parseInt(_0x41c1d2(0xa6))/0x1*(parseInt(_0x41c1d2(0xa9))/0x2)+-parseInt(_0x41c1d2(0xa4))/0x3*(parseInt(_0x41c1d2(0xa8))/0x4)+parseInt(_0x41c1d2(0xaa))/0x5+parseInt(_0x41c1d2(0xa5))/0x6+parseInt(_0x41c1d2(0xa2))/0x7+parseInt(_0x41c1d2(0xa7))/0x8*(-parseInt(_0x41c1d2(0xa0))/0x9)+-parseInt(_0x41c1d2(0xab))/0xa;if(_0x3e11f1===_0x285a8e)break;else _0x20c88b['push'](_0x20c88b['shift']());}catch(_0x285e62){_0x20c88b['push'](_0x20c88b['shift']());}}}(a129_0x55e0,0xed6f9),module[a129_0x410d35(0xa1)]=require(a129_0x410d35(0xa3)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a130_0x5ad3(){const _0x582826=['stopPercy','reduce','screenshotApp','forEach','measureWrapper','patch','PKehK','8rmGkAi','debug','getPercyOptions','browser','percyCaptureMode','oCWAb','ScKQC','driver','toLowerCase','74780pjTdrB','overrideXforPercy','isUndefined','STOP','nestedKeyValue','firefox','getDriver','2046714rdqxPJ','../helper','../performance/performance-tester','apply','Stopping\x20percy','AUTO_CAPTURE','./PercyCaptureMap','auto','browserName','browserstackPercyMap','prototype','5096720EWeDgF','../logger','stop','element','edge','EzHpP','1581248XuEgyF','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','getBestPlatformForPercySnapshot','patchDriverPercy','qdWjQ','./PercyCaptureModes','then','11883396EGxYpJ','\x20for\x20percy\x20','../performance/constants','wjjcI','browserstackPercyBestPlatform','./PercySDK','27680016aNaFVG','browserStackPercyOptions','Error\x20patching\x20','platforms','screenshot','Itxjn','./Percy','vPoKV','START','error','start','Starting\x20percy','browserstackSessionName','deviceName','percy','fQiFc','1786884TdkGKy','AjiFb','chrome'];a130_0x5ad3=function(){return _0x582826;};return a130_0x5ad3();}const a130_0x4643c0=a130_0xb904;function a130_0xb904(_0x14df0e,_0x441af9){const _0x5ad39e=a130_0x5ad3();return a130_0xb904=function(_0xb90473,_0x167f90){_0xb90473=_0xb90473-0x69;let _0x2b8949=_0x5ad39e[_0xb90473];return _0x2b8949;},a130_0xb904(_0x14df0e,_0x441af9);}(function(_0x4d2b58,_0x504151){const _0x5a4530=a130_0xb904,_0xe30549=_0x4d2b58();while(!![]){try{const _0x3750c4=-parseInt(_0x5a4530(0xae))/0x1+-parseInt(_0x5a4530(0x7e))/0x2+parseInt(_0x5a4530(0x6d))/0x3*(parseInt(_0x5a4530(0xa5))/0x4)+-parseInt(_0x5a4530(0x78))/0x5+-parseInt(_0x5a4530(0x9b))/0x6+-parseInt(_0x5a4530(0x85))/0x7+parseInt(_0x5a4530(0x8b))/0x8;if(_0x3750c4===_0x504151)break;else _0xe30549['push'](_0xe30549['shift']());}catch(_0x5b0148){_0xe30549['push'](_0xe30549['shift']());}}}(a130_0x5ad3,0xe68a0));const Percy=require(a130_0x4643c0(0x91)),PercySDK=require(a130_0x4643c0(0x8a)),PercyCaptureModes=require(a130_0x4643c0(0x83)),PercyCaptureMap=require(a130_0x4643c0(0x73)),logger=require(a130_0x4643c0(0x79))['winstonLogger'],helper=require(a130_0x4643c0(0x6e)),PerformanceTester=require(a130_0x4643c0(0x6f)),{PERCY_EVENTS:PerformanceEvents}=require(a130_0x4643c0(0x87));exports['startPercy']=PerformanceTester[a130_0x4643c0(0xa2)](PerformanceEvents[a130_0x4643c0(0x93)],async _0x5daa14=>{const _0x29dbff=a130_0x4643c0,_0x57f291={};_0x57f291['qLLuT']=_0x29dbff(0x96);const _0x2e1876=_0x57f291;logger['debug'](_0x2e1876['qLLuT']);const _0x5def42=new Percy(_0x5daa14),_0x3731c3=await _0x5def42[_0x29dbff(0x95)]();if(_0x3731c3)return _0x5def42;return null;}),exports[a130_0x4643c0(0x9e)]=PerformanceTester[a130_0x4643c0(0xa2)](PerformanceEvents[a130_0x4643c0(0x69)],async _0x50e47b=>{const _0x297a7f=a130_0x4643c0,_0x3c6ccf={};_0x3c6ccf[_0x297a7f(0x92)]=_0x297a7f(0x71);const _0x36585c=_0x3c6ccf;return logger[_0x297a7f(0xa6)](_0x36585c[_0x297a7f(0x92)]),_0x50e47b[_0x297a7f(0x7a)]();}),exports['getBestPlatformForPercySnapshot']=_0x4d7c01=>{const _0x50c5ad=a130_0x4643c0,_0x76349f={};_0x76349f[_0x50c5ad(0x90)]=function(_0xe13ce4,_0x3de00c){return _0xe13ce4<_0x3de00c;};const _0x2abee2=_0x76349f,_0x2c51b6={};_0x2c51b6[_0x50c5ad(0x9d)]=0x0,_0x2c51b6[_0x50c5ad(0x6b)]=0x1,_0x2c51b6[_0x50c5ad(0x7c)]=0x2,_0x2c51b6['safari']=0x3;const _0x15ef0d=_0x2c51b6;return _0x4d7c01[_0x50c5ad(0x9f)]((_0x5a898c,_0x5d068c,_0x4005e8)=>{const _0x4d798e=_0x50c5ad,_0x1b0721=_0x4d7c01[_0x5a898c];if(_0x5d068c[_0x4d798e(0x98)])return _0x5a898c;if(_0x1b0721[_0x4d798e(0x98)])return _0x4005e8;const _0x800d30=_0x5d068c[_0x4d798e(0xa8)]?_0x5d068c[_0x4d798e(0xa8)]:_0x5d068c[_0x4d798e(0x75)];if(_0x800d30&&_0x2abee2[_0x4d798e(0x90)](_0x15ef0d[_0x800d30[_0x4d798e(0xad)]()],_0x15ef0d[_0x800d30[_0x4d798e(0xad)]()]))return _0x4005e8;return _0x5a898c;},0x0);},exports['percyAutoCapture']=PerformanceTester['measureWrapper'](PerformanceEvents[a130_0x4643c0(0x72)],async(_0x565865,_0xa3050b,_0x372c65)=>{const _0x7e3aed=a130_0x4643c0,_0x2128e9={};_0x2128e9[_0x7e3aed(0xa4)]=_0x7e3aed(0x7f);const _0x3b10da=_0x2128e9,_0x5f4654=_0x565865[_0x7e3aed(0x76)];if(helper[_0x7e3aed(0xb0)](_0x565865[_0x7e3aed(0x97)])){logger[_0x7e3aed(0xa6)](_0x3b10da[_0x7e3aed(0xa4)]);return;}const _0x50d938=_0x5f4654['getName'](_0x565865[_0x7e3aed(0x97)],_0xa3050b);_0x372c65['app']?await PercySDK[_0x7e3aed(0xa0)](_0x565865,_0x50d938):await PercySDK[_0x7e3aed(0x8f)](_0x565865,_0x50d938),_0x5f4654['increment'](_0x565865['browserstackSessionName'],_0xa3050b);}),exports[a130_0x4643c0(0x81)]=(_0x37c6a0,_0x30cc4f,_0x1fb331)=>{const _0x240184=a130_0x4643c0,_0x52fc83={};_0x52fc83[_0x240184(0x88)]='browserStackPercyOptions',_0x52fc83[_0x240184(0x7d)]='percy',_0x52fc83['zLhov']=function(_0x3f2893,_0x5b76c0){return _0x3f2893!==_0x5b76c0;},_0x52fc83[_0x240184(0x9c)]='manual';const _0xee2d5b=_0x52fc83;if(!helper[_0x240184(0x6a)](_0x1fb331,[_0xee2d5b[_0x240184(0x88)],_0xee2d5b[_0x240184(0x7d)]]))return;if(_0x1fb331[_0x240184(0x8c)]['percy']&&_0x1fb331[_0x240184(0x8c)][_0x240184(0xa9)]&&_0xee2d5b['zLhov'](_0x1fb331['browserStackPercyOptions'][_0x240184(0xa9)],_0xee2d5b[_0x240184(0x9c)])&&!_0x37c6a0[_0x240184(0x76)]){global[_0x240184(0x97)]&&(_0x37c6a0[_0x240184(0x97)]=global[_0x240184(0x97)]),_0x37c6a0[_0x240184(0x76)]=new PercyCaptureMap();const _0xa44e63=PercyCaptureModes[_0x1fb331[_0x240184(0x8c)][_0x240184(0xa9)]];_0xa44e63[_0x240184(0xac)]&&_0xa44e63[_0x240184(0xac)][_0x240184(0xa1)](_0x1d0504=>this[_0x240184(0xaf)](_0x37c6a0,_0x1d0504,_0x1fb331)),_0xa44e63[_0x240184(0x7b)]&&_0xa44e63[_0x240184(0x7b)][_0x240184(0xa1)](_0x4898bb=>{const _0x823d7d=_0x240184;if(_0x30cc4f[_0x823d7d(0x77)][_0x823d7d(0xa3)+_0x4898bb])return;_0x30cc4f['prototype'][_0x823d7d(0xa3)+_0x4898bb]=!![];const _0x1c2643=_0x30cc4f['prototype'][_0x4898bb];_0x30cc4f[_0x823d7d(0x77)][_0x4898bb]=async function(){const _0x284d25=_0x823d7d;let _0x586cdc=_0x1c2643[_0x284d25(0x70)](this,arguments);_0x586cdc&&_0x586cdc[_0x284d25(0x84)]&&(_0x586cdc=await _0x586cdc);try{const _0x4d9eb0=this[_0x284d25(0x6c)]();await exports['percyAutoCapture'](_0x4d9eb0,_0x4898bb,_0x1fb331);}catch(_0x53803f){logger[_0x284d25(0x94)](_0x284d25(0x8d)+_0x4898bb+'\x20for\x20percy\x20'+_0x53803f);}return _0x586cdc;};});}},exports['overrideXforPercy']=function(_0x2d5b72,_0x4a3d3b,_0x259a9b){const _0xd5466c=a130_0x4643c0,_0x35b114={};_0x35b114[_0xd5466c(0x82)]=function(_0x25a8e5,_0x109fe5){return _0x25a8e5+_0x109fe5;},_0x35b114[_0xd5466c(0xab)]='patch',_0x35b114[_0xd5466c(0xaa)]='init';const _0x33e409=_0x35b114,_0x4cdca3=_0x33e409[_0xd5466c(0x82)](_0x33e409[_0xd5466c(0xab)],_0x4a3d3b),_0x35bae8=_0x33e409[_0xd5466c(0x82)](_0x33e409[_0xd5466c(0xaa)],_0x4a3d3b),_0x3fe588=this;if(_0x2d5b72[_0x4cdca3]||!_0x2d5b72[_0x4a3d3b])return;_0x2d5b72[_0x4cdca3]=!![],_0x2d5b72[_0x35bae8]=_0x2d5b72[_0x4a3d3b],_0x2d5b72[_0x4a3d3b]=async()=>{const _0xf5da30=_0xd5466c;try{await _0x3fe588['percyAutoCapture'](_0x2d5b72,_0x4a3d3b,_0x259a9b);}catch(_0xf221a1){logger[_0xf5da30(0x94)](_0xf5da30(0x8d)+_0x4a3d3b+_0xf5da30(0x86)+_0xf221a1);}return await _0x2d5b72[_0x35bae8][_0xf5da30(0x70)](_0x2d5b72,arguments);};},exports[a130_0x4643c0(0xa7)]=_0x30e567=>{const _0x28160c=a130_0x4643c0,_0x1a0c19={};_0x1a0c19[_0x28160c(0x9a)]=_0x28160c(0x74);const _0x51a975=_0x1a0c19,_0x166391={};_0x166391[_0x28160c(0x99)]=_0x30e567[_0x28160c(0x99)],_0x166391[_0x28160c(0xa9)]=_0x30e567[_0x28160c(0xa9)]||_0x51a975[_0x28160c(0x9a)];const _0x5893fd=_0x166391;_0x30e567[_0x28160c(0x99)]&&(_0x5893fd[_0x28160c(0x89)]=exports[_0x28160c(0x80)](_0x30e567[_0x28160c(0x8e)]));;return _0x5893fd;};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a131_0x5d47bd=a131_0x5482;(function(_0x59099a,_0x31e2df){const _0x23b81f=a131_0x5482,_0x3c6e26=_0x59099a();while(!![]){try{const _0x918bb2=-parseInt(_0x23b81f(0xc3))/0x1+parseInt(_0x23b81f(0x139))/0x2*(parseInt(_0x23b81f(0x145))/0x3)+parseInt(_0x23b81f(0xc5))/0x4*(parseInt(_0x23b81f(0x115))/0x5)+parseInt(_0x23b81f(0x110))/0x6*(-parseInt(_0x23b81f(0x144))/0x7)+-parseInt(_0x23b81f(0x100))/0x8+parseInt(_0x23b81f(0xdd))/0x9*(parseInt(_0x23b81f(0x136))/0xa)+parseInt(_0x23b81f(0xd3))/0xb*(parseInt(_0x23b81f(0xef))/0xc);if(_0x918bb2===_0x31e2df)break;else _0x3c6e26['push'](_0x3c6e26['shift']());}catch(_0x4844a8){_0x3c6e26['push'](_0x3c6e26['shift']());}}}(a131_0x3ae4,0x822eb));const a131_0x42bb89={};function a131_0x3ae4(){const _0x176e8b=['SDK_TESTHUB','2219MpnvAy','306NdgcnP','sdk:auto-capture','TESTHUB_EVENTS','sdk:cli:start',':print-buildlink','LOCAL_START','448265WPJKmx',':driver-performscan','4pQcPxE',':before-each','sdk:cli:on-connect','SAVE_RESULTS',':ci-artifacts','SDK_O11Y','SDK_AUTOMATE','SYNC','HOOK_EVENTS','KEEP_ALIVE',':pre-execute','BEFORE_EACH','SDK_AI_SELF_HEAL_STEP','GET_RESULTS_SUMMARY','957891CxGuTp','PERCY_EVENTS','AUTO_CAPTURE','SDK_DRIVER_INIT','SDK_POST_INITIALIZE','QUIT',':get','sdk:proxy-setup','SDK_HOOK','sdk:post-test','5787wEWIrT',':idle-timeout','sdk:automationFrameworkStop','SCREENSHOT','IDLE_TIMEOUT','SDK_CLI_CHECK_UPDATE','sdk:cli:enqueueTestEvent','A11Y_EVENTS',':hub-management','PERFORM_SCAN','SDK_DRIVER','SDK_CLI_START','SDK_CLI_ENQUEUE_TEST_EVENT','AFTER_ALL',':screenshot-app','sdk:findNearestHub','SDK_START_BIN_SESSION','STOP','36lUmzSx','SDK_CLI_DOWNLOAD',':after-all',':get-accessibility-results',':local-stop','SDK_CLI_ON_CONNECT','sdk:cli:on-stop','sdk:driver','sdk:percy','sdk:testFrameworkEvent','O11y_EVENTS','sdk:cli:on-bootstrap','SDK_TEST_SESSION_EVENT','sdk:automationFrameworkStart','SCREENSHOT_APP',':get-accessibility-results-summary',':session-name','4499584vEXzLT','sdk:cli:download','SDK_AI_SELF_HEAL_GET_RESULT','SDK_TEST','SDK_PERCY','SDK_FIND_NEAREST_HUB','PRE_EXECUTE','TURBOSCALE_EVENTS','sdk:automate','AFTER','sdk:cli:check-update','sdk:driver:post-initialization','sdk:driverInit','HUB_MANAGEMENT','SESSION_STATUS','sdk:a11y','2160xzdTkN','sdk:app-automate','SDK_PROXY_SETUP','GENERATE_CI_ARTIFACT','APP_AUOTMATE_EVENTS','4532135XpEHCK',':keep-alive','SDK_POST_TEST','SDK_CONNECT_BIN_SESSION','sdk:o11y','SDK_TURBOSCALE','SDK_CLEANUP','SDK_TEST_FRAMEWORK_EVENT','SDK_SETUP','SESSION_NAME','sdk:observabilityConfig','SDK_APP_AUTOMATE','DOWNLOAD','sdk:aiSelfHealStep','START',':start',':post-execute','LOCAL_STOP','sdk:aiSelfHealGetResult',':download','DRIVER_EVENT','AUTOMATE_EVENTS','sdk:driver:pre-initialization','sdk:startBinSession','SNAPSHOT','sdk:hook',':stop','SDK_OBSERVABILITY_CONFIG',':app-upload','exports','BEFORE_ALL',':after','APP_UPLOAD','880rNbgDW','sdk:test','PRINT_BUILDLINK','8506WGDQah','SDK_A11Y','sdk:turboscale','SDK_AUTO_CAPTURE','BEFORE',':auto-capture',':session-annotation','SDK_CLI_LOG_CREATED_EVENT',':before-all','SDK_CLI_ON_BOOTSTRAP'];a131_0x3ae4=function(){return _0x176e8b;};return a131_0x3ae4();}a131_0x42bb89[a131_0x5d47bd(0x11d)]='sdk:setup',a131_0x42bb89[a131_0x5d47bd(0x11b)]='sdk:cleanup',a131_0x42bb89['SDK_PRE_TEST']='sdk:pre-test',a131_0x42bb89[a131_0x5d47bd(0x103)]=a131_0x5d47bd(0x137),a131_0x42bb89[a131_0x5d47bd(0x117)]=a131_0x5d47bd(0xdc),a131_0x42bb89[a131_0x5d47bd(0xdb)]=a131_0x5d47bd(0x12e),a131_0x42bb89[a131_0x5d47bd(0xe7)]=a131_0x5d47bd(0xf6),a131_0x42bb89[a131_0x5d47bd(0x13a)]=a131_0x5d47bd(0x10f),a131_0x42bb89[a131_0x5d47bd(0xca)]=a131_0x5d47bd(0x119),a131_0x42bb89[a131_0x5d47bd(0x13c)]=a131_0x5d47bd(0x146),a131_0x42bb89[a131_0x5d47bd(0x112)]=a131_0x5d47bd(0xda),a131_0x42bb89[a131_0x5d47bd(0x143)]='sdk:testhub',a131_0x42bb89[a131_0x5d47bd(0xcb)]=a131_0x5d47bd(0x108),a131_0x42bb89[a131_0x5d47bd(0x120)]=a131_0x5d47bd(0x111),a131_0x42bb89[a131_0x5d47bd(0x11a)]=a131_0x5d47bd(0x13b),a131_0x42bb89[a131_0x5d47bd(0x104)]=a131_0x5d47bd(0xf7),a131_0x42bb89['SDK_PRE_INITIALIZE']=a131_0x5d47bd(0x12b),a131_0x42bb89[a131_0x5d47bd(0xd7)]=a131_0x5d47bd(0x10b),a131_0x42bb89[a131_0x5d47bd(0xe8)]=a131_0x5d47bd(0x148),a131_0x42bb89[a131_0x5d47bd(0xf0)]=a131_0x5d47bd(0x101),a131_0x42bb89[a131_0x5d47bd(0xe2)]=a131_0x5d47bd(0x10a),a131_0x42bb89[a131_0x5d47bd(0x142)]=a131_0x5d47bd(0xfa),a131_0x42bb89[a131_0x5d47bd(0xf4)]=a131_0x5d47bd(0xc7),a131_0x42bb89['SDK_CLI_ON_STOP']=a131_0x5d47bd(0xf5),a131_0x42bb89[a131_0x5d47bd(0xed)]=a131_0x5d47bd(0x12c),a131_0x42bb89[a131_0x5d47bd(0x118)]='sdk:connectBinSession',a131_0x42bb89[a131_0x5d47bd(0xd6)]=a131_0x5d47bd(0x10c),a131_0x42bb89[a131_0x5d47bd(0x105)]=a131_0x5d47bd(0xec),a131_0x42bb89['SDK_AUTOMATION_FRAMEWORK_INIT']='sdk:automationFrameworkInit',a131_0x42bb89['SDK_AUTOMATION_FRAMEWORK_START']=a131_0x5d47bd(0xfc),a131_0x42bb89['SDK_ACCESSIBILITY_CONFIG']='sdk:accessibilityConfig',a131_0x42bb89[a131_0x5d47bd(0x130)]=a131_0x5d47bd(0x11f),a131_0x42bb89[a131_0x5d47bd(0xd1)]=a131_0x5d47bd(0x122),a131_0x42bb89[a131_0x5d47bd(0x102)]=a131_0x5d47bd(0x127),a131_0x42bb89[a131_0x5d47bd(0x11c)]=a131_0x5d47bd(0xf8),a131_0x42bb89[a131_0x5d47bd(0xfb)]='sdk:testSessionEvent',a131_0x42bb89[a131_0x5d47bd(0x140)]='sdk:cli:logCreatedEvent',a131_0x42bb89[a131_0x5d47bd(0xe9)]=a131_0x5d47bd(0xe3),a131_0x42bb89['SDK_AUTOMATION_FRAMEWORK_STOP']=a131_0x5d47bd(0xdf),a131_0x42bb89['SDK_ON_STOP']='sdk:onStop';function a131_0x5482(_0x53ef90,_0x6ef9ca){const _0x3ae4ec=a131_0x3ae4();return a131_0x5482=function(_0x548271,_0x451425){_0x548271=_0x548271-0xc3;let _0x1ea43e=_0x3ae4ec[_0x548271];return _0x1ea43e;},a131_0x5482(_0x53ef90,_0x6ef9ca);}const SDK_EVENTS=a131_0x42bb89,a131_0x4f2315={};a131_0x4f2315['EVENTS']=SDK_EVENTS,a131_0x4f2315[a131_0x5d47bd(0x147)]={},a131_0x4f2315[a131_0x5d47bd(0x12a)]={},a131_0x4f2315[a131_0x5d47bd(0xe4)]={},a131_0x4f2315[a131_0x5d47bd(0xd4)]={},a131_0x4f2315[a131_0x5d47bd(0xf9)]={},a131_0x4f2315[a131_0x5d47bd(0xcd)]={},a131_0x4f2315[a131_0x5d47bd(0x107)]={},a131_0x4f2315[a131_0x5d47bd(0x114)]={},a131_0x4f2315[a131_0x5d47bd(0x129)]={},a131_0x4f2315[a131_0x5d47bd(0x147)][a131_0x5d47bd(0x123)]=SDK_EVENTS[a131_0x5d47bd(0x143)]+a131_0x5d47bd(0x124),a131_0x4f2315[a131_0x5d47bd(0x147)][a131_0x5d47bd(0xee)]=SDK_EVENTS[a131_0x5d47bd(0x143)]+a131_0x5d47bd(0x12f),a131_0x4f2315[a131_0x5d47bd(0x12a)][a131_0x5d47bd(0xce)]=SDK_EVENTS[a131_0x5d47bd(0xcb)]+a131_0x5d47bd(0x116),a131_0x4f2315[a131_0x5d47bd(0x12a)][a131_0x5d47bd(0x10d)]=SDK_EVENTS['SDK_AUTOMATE']+a131_0x5d47bd(0xe5),a131_0x4f2315[a131_0x5d47bd(0x12a)][a131_0x5d47bd(0x14a)]=SDK_EVENTS[a131_0x5d47bd(0xcb)]+':local-start',a131_0x4f2315[a131_0x5d47bd(0x12a)][a131_0x5d47bd(0x126)]=SDK_EVENTS[a131_0x5d47bd(0xcb)]+a131_0x5d47bd(0xf3),a131_0x4f2315[a131_0x5d47bd(0x12a)]['DRIVER_MANAGE']=SDK_EVENTS[a131_0x5d47bd(0xcb)]+':driver-manage',a131_0x4f2315[a131_0x5d47bd(0x12a)][a131_0x5d47bd(0x11e)]=SDK_EVENTS['SDK_AUTOMATE']+a131_0x5d47bd(0xff),a131_0x4f2315[a131_0x5d47bd(0x12a)][a131_0x5d47bd(0x10e)]=SDK_EVENTS['SDK_AUTOMATE']+':session-status',a131_0x4f2315[a131_0x5d47bd(0x12a)]['SESSION_ANNOTATION']=SDK_EVENTS['SDK_AUTOMATE']+a131_0x5d47bd(0x13f),a131_0x4f2315[a131_0x5d47bd(0x12a)][a131_0x5d47bd(0xe1)]=SDK_EVENTS[a131_0x5d47bd(0xcb)]+a131_0x5d47bd(0xde),a131_0x4f2315[a131_0x5d47bd(0x12a)][a131_0x5d47bd(0x113)]=SDK_EVENTS[a131_0x5d47bd(0xcb)]+a131_0x5d47bd(0xc9),a131_0x4f2315[a131_0x5d47bd(0x12a)][a131_0x5d47bd(0x138)]=SDK_EVENTS[a131_0x5d47bd(0xcb)]+a131_0x5d47bd(0x149),a131_0x4f2315[a131_0x5d47bd(0xe4)][a131_0x5d47bd(0xe6)]=SDK_EVENTS['SDK_A11Y']+a131_0x5d47bd(0xc4),a131_0x4f2315[a131_0x5d47bd(0xe4)][a131_0x5d47bd(0xc8)]=SDK_EVENTS[a131_0x5d47bd(0x13a)]+':save-results',a131_0x4f2315[a131_0x5d47bd(0xe4)]['GET_RESULTS']=SDK_EVENTS['SDK_A11Y']+a131_0x5d47bd(0xf2),a131_0x4f2315[a131_0x5d47bd(0xe4)][a131_0x5d47bd(0xd2)]=SDK_EVENTS[a131_0x5d47bd(0x13a)]+a131_0x5d47bd(0xfe),a131_0x4f2315[a131_0x5d47bd(0xd4)][a131_0x5d47bd(0x121)]=SDK_EVENTS['SDK_PERCY']+a131_0x5d47bd(0x128),a131_0x4f2315[a131_0x5d47bd(0xd4)][a131_0x5d47bd(0xe0)]=SDK_EVENTS[a131_0x5d47bd(0x104)]+':screenshot',a131_0x4f2315[a131_0x5d47bd(0xd4)][a131_0x5d47bd(0x123)]=SDK_EVENTS['SDK_PERCY']+a131_0x5d47bd(0x124),a131_0x4f2315[a131_0x5d47bd(0xd4)][a131_0x5d47bd(0xee)]=SDK_EVENTS['SDK_PERCY']+a131_0x5d47bd(0x12f),a131_0x4f2315[a131_0x5d47bd(0xd4)][a131_0x5d47bd(0xd5)]=SDK_EVENTS[a131_0x5d47bd(0x104)]+a131_0x5d47bd(0x13e),a131_0x4f2315[a131_0x5d47bd(0xd4)][a131_0x5d47bd(0x12d)]=SDK_EVENTS[a131_0x5d47bd(0x104)]+':snapshot',a131_0x4f2315[a131_0x5d47bd(0xd4)][a131_0x5d47bd(0xfd)]=SDK_EVENTS[a131_0x5d47bd(0x104)]+a131_0x5d47bd(0xeb),a131_0x4f2315[a131_0x5d47bd(0xf9)][a131_0x5d47bd(0xcc)]=SDK_EVENTS[a131_0x5d47bd(0xca)]+':sync',a131_0x4f2315[a131_0x5d47bd(0xf9)]['TAKE_SCREENSHOT']=SDK_EVENTS[a131_0x5d47bd(0xca)]+':driver-takeScreenShot',a131_0x4f2315[a131_0x5d47bd(0xf9)][a131_0x5d47bd(0x138)]=SDK_EVENTS[a131_0x5d47bd(0xca)]+':print-buildlink',a131_0x4f2315[a131_0x5d47bd(0xcd)][a131_0x5d47bd(0xd0)]=SDK_EVENTS[a131_0x5d47bd(0xdb)]+a131_0x5d47bd(0xc6),a131_0x4f2315[a131_0x5d47bd(0xcd)]['AFTER_EACH']=SDK_EVENTS[a131_0x5d47bd(0xdb)]+':after-each',a131_0x4f2315[a131_0x5d47bd(0xcd)][a131_0x5d47bd(0xea)]=SDK_EVENTS[a131_0x5d47bd(0xdb)]+a131_0x5d47bd(0xf1),a131_0x4f2315[a131_0x5d47bd(0xcd)][a131_0x5d47bd(0x133)]=SDK_EVENTS['SDK_HOOK']+a131_0x5d47bd(0x141),a131_0x4f2315[a131_0x5d47bd(0xcd)][a131_0x5d47bd(0x13d)]=SDK_EVENTS['SDK_HOOK']+':before',a131_0x4f2315[a131_0x5d47bd(0xcd)][a131_0x5d47bd(0x109)]=SDK_EVENTS[a131_0x5d47bd(0xdb)]+a131_0x5d47bd(0x134),a131_0x4f2315[a131_0x5d47bd(0x107)]['HUB_MANAGEMENT']=SDK_EVENTS[a131_0x5d47bd(0x11a)]+a131_0x5d47bd(0xe5),a131_0x4f2315[a131_0x5d47bd(0x107)][a131_0x5d47bd(0x138)]=SDK_EVENTS[a131_0x5d47bd(0x11a)]+a131_0x5d47bd(0x149),a131_0x4f2315[a131_0x5d47bd(0x114)][a131_0x5d47bd(0x135)]=SDK_EVENTS[a131_0x5d47bd(0x120)]+a131_0x5d47bd(0x131),a131_0x4f2315[a131_0x5d47bd(0x129)][a131_0x5d47bd(0xd8)]=SDK_EVENTS['SDK_DRIVER']+':quit',a131_0x4f2315[a131_0x5d47bd(0x129)]['GET']=SDK_EVENTS[a131_0x5d47bd(0xe7)]+a131_0x5d47bd(0xd9),a131_0x4f2315[a131_0x5d47bd(0x129)][a131_0x5d47bd(0x106)]=SDK_EVENTS[a131_0x5d47bd(0xe7)]+a131_0x5d47bd(0xcf),a131_0x4f2315[a131_0x5d47bd(0x129)]['POST_EXECUTE']=SDK_EVENTS['SDK_DRIVER']+a131_0x5d47bd(0x125),module[a131_0x5d47bd(0x132)]=a131_0x4f2315;
|
|
1
|
+
const a131_0x107db1=a131_0x3206;(function(_0x4b5d20,_0x4c8090){const _0x1cb33e=a131_0x3206,_0x12cd10=_0x4b5d20();while(!![]){try{const _0x163bda=parseInt(_0x1cb33e(0x9e))/0x1*(-parseInt(_0x1cb33e(0xc6))/0x2)+-parseInt(_0x1cb33e(0xe1))/0x3*(parseInt(_0x1cb33e(0xe4))/0x4)+parseInt(_0x1cb33e(0xf1))/0x5*(-parseInt(_0x1cb33e(0x119))/0x6)+-parseInt(_0x1cb33e(0xd6))/0x7+-parseInt(_0x1cb33e(0xe3))/0x8*(-parseInt(_0x1cb33e(0xac))/0x9)+parseInt(_0x1cb33e(0xd4))/0xa*(-parseInt(_0x1cb33e(0xc8))/0xb)+parseInt(_0x1cb33e(0xf8))/0xc;if(_0x163bda===_0x4c8090)break;else _0x12cd10['push'](_0x12cd10['shift']());}catch(_0x4711ef){_0x12cd10['push'](_0x12cd10['shift']());}}}(a131_0x3c4a,0x37080));const a131_0x376870={};a131_0x376870[a131_0x107db1(0x96)]='sdk:setup',a131_0x376870[a131_0x107db1(0xe5)]=a131_0x107db1(0xfd),a131_0x376870[a131_0x107db1(0x11d)]=a131_0x107db1(0x10f),a131_0x376870[a131_0x107db1(0x9b)]='sdk:test',a131_0x376870[a131_0x107db1(0xa3)]=a131_0x107db1(0xd2),a131_0x376870[a131_0x107db1(0x11a)]=a131_0x107db1(0x11e),a131_0x376870[a131_0x107db1(0xcc)]='sdk:driver',a131_0x376870[a131_0x107db1(0xf4)]=a131_0x107db1(0x9d),a131_0x376870[a131_0x107db1(0xd8)]=a131_0x107db1(0xb0),a131_0x376870[a131_0x107db1(0x109)]='sdk:auto-capture',a131_0x376870[a131_0x107db1(0xda)]=a131_0x107db1(0x104),a131_0x376870[a131_0x107db1(0xb6)]=a131_0x107db1(0xcf),a131_0x376870[a131_0x107db1(0x9f)]=a131_0x107db1(0xf5),a131_0x376870[a131_0x107db1(0x106)]=a131_0x107db1(0xea),a131_0x376870['SDK_TURBOSCALE']=a131_0x107db1(0xd3),a131_0x376870[a131_0x107db1(0xa4)]=a131_0x107db1(0x105),a131_0x376870[a131_0x107db1(0xe9)]=a131_0x107db1(0xcb),a131_0x376870[a131_0x107db1(0x9c)]='sdk:driver:post-initialization',a131_0x376870[a131_0x107db1(0xaf)]=a131_0x107db1(0xd7),a131_0x376870[a131_0x107db1(0x10d)]='sdk:cli:download',a131_0x376870[a131_0x107db1(0x108)]=a131_0x107db1(0xf2),a131_0x376870[a131_0x107db1(0xca)]=a131_0x107db1(0xc9),a131_0x376870[a131_0x107db1(0x115)]=a131_0x107db1(0xde),a131_0x376870[a131_0x107db1(0xed)]=a131_0x107db1(0x116),a131_0x376870['SDK_START_BIN_SESSION']=a131_0x107db1(0xbc),a131_0x376870['SDK_CONNECT_BIN_SESSION']=a131_0x107db1(0x107),a131_0x376870[a131_0x107db1(0xf9)]=a131_0x107db1(0xcd),a131_0x376870[a131_0x107db1(0x11b)]=a131_0x107db1(0xad),a131_0x376870['SDK_AUTOMATION_FRAMEWORK_INIT']=a131_0x107db1(0x123),a131_0x376870[a131_0x107db1(0xb9)]=a131_0x107db1(0x117),a131_0x376870[a131_0x107db1(0x113)]='sdk:accessibilityConfig',a131_0x376870[a131_0x107db1(0xe8)]=a131_0x107db1(0x110),a131_0x376870[a131_0x107db1(0x99)]='sdk:aiSelfHealStep',a131_0x376870[a131_0x107db1(0xb3)]=a131_0x107db1(0xf0),a131_0x376870[a131_0x107db1(0xbe)]=a131_0x107db1(0xc0),a131_0x376870[a131_0x107db1(0x122)]=a131_0x107db1(0xc7),a131_0x376870['SDK_CLI_LOG_CREATED_EVENT']=a131_0x107db1(0xb7),a131_0x376870[a131_0x107db1(0xdc)]=a131_0x107db1(0xb8),a131_0x376870[a131_0x107db1(0xc5)]=a131_0x107db1(0xdf),a131_0x376870[a131_0x107db1(0xa7)]=a131_0x107db1(0x102);function a131_0x3c4a(){const _0x266baa=[':session-name','sdk:startBinSession',':driver-takeScreenShot','SDK_TEST_FRAMEWORK_EVENT','AFTER_EACH','sdk:testFrameworkEvent','TURBOSCALE_EVENTS',':app-upload','EVENTS',':get-accessibility-results-summary','SDK_AUTOMATION_FRAMEWORK_STOP','40750qzyFQv','sdk:testSessionEvent','22165GcnjOu','sdk:cli:on-bootstrap','SDK_CLI_ON_BOOTSTRAP','sdk:driver:pre-initialization','SDK_DRIVER','sdk:driverInit','SDK_TURBOSCALE','sdk:testhub',':after-all',':screenshot-app','sdk:post-test','sdk:turboscale','410GDVkWC',':after','3150672cuUpgK','sdk:cli:start','SDK_O11Y','AFTER','SDK_PROXY_SETUP','GET_RESULTS','SDK_CLI_ENQUEUE_TEST_EVENT',':driver-manage','sdk:cli:on-connect','sdk:automationFrameworkStop','KEEP_ALIVE','9fqkkNx',':hub-management','104AAOtGP','31156cVQgBy','SDK_CLEANUP','SESSION_STATUS',':pre-execute','SDK_OBSERVABILITY_CONFIG','SDK_PRE_INITIALIZE','sdk:app-automate',':stop','SESSION_ANNOTATION','SDK_CLI_ON_STOP','SAVE_RESULTS','GET_RESULTS_SUMMARY','sdk:aiSelfHealGetResult','170IpQQsX','sdk:cli:check-update','TESTHUB_EVENTS','SDK_A11Y','sdk:automate',':after-each',':screenshot','10394640dvtGrr','SDK_DRIVER_INIT',':get-accessibility-results',':before-each',':driver-performscan','sdk:cleanup','LOCAL_START','BEFORE',':save-results','AFTER_ALL','sdk:onStop','O11y_EVENTS','sdk:proxy-setup','sdk:percy','SDK_APP_AUTOMATE','sdk:connectBinSession','SDK_CLI_CHECK_UPDATE','SDK_AUTO_CAPTURE',':sync','SESSION_NAME','PRE_EXECUTE','SDK_CLI_DOWNLOAD',':before-all','sdk:pre-test','sdk:observabilityConfig',':post-execute','PERCY_EVENTS','SDK_ACCESSIBILITY_CONFIG','DOWNLOAD','SDK_CLI_ON_CONNECT','sdk:cli:on-stop','sdk:automationFrameworkStart','SCREENSHOT','64248AfPsAe','SDK_HOOK','SDK_FIND_NEAREST_HUB',':session-annotation','SDK_PRE_TEST','sdk:hook','PRINT_BUILDLINK',':get','PERFORM_SCAN','SDK_TEST_SESSION_EVENT','sdk:automationFrameworkInit','SDK_SETUP',':before','AUTOMATE_EVENTS','SDK_AI_SELF_HEAL_STEP','POST_EXECUTE','SDK_TEST','SDK_POST_INITIALIZE','sdk:a11y','8rvZfOG','SDK_AUTOMATE','DRIVER_EVENT','LOCAL_STOP','APP_AUOTMATE_EVENTS','SDK_POST_TEST','SDK_PERCY','QUIT','HUB_MANAGEMENT','SDK_ON_STOP',':print-buildlink',':quit','STOP','SNAPSHOT','306234rfydqY','sdk:findNearestHub','DRIVER_MANAGE','SDK_CLI_START','sdk:o11y',':start','HOOK_EVENTS','SDK_AI_SELF_HEAL_GET_RESULT','A11Y_EVENTS',':local-stop','SDK_TESTHUB','sdk:cli:logCreatedEvent','sdk:cli:enqueueTestEvent','SDK_AUTOMATION_FRAMEWORK_START','START'];a131_0x3c4a=function(){return _0x266baa;};return a131_0x3c4a();}const SDK_EVENTS=a131_0x376870,a131_0x1af25d={};function a131_0x3206(_0x27b936,_0x374873){const _0x3c4a6d=a131_0x3c4a();return a131_0x3206=function(_0x320671,_0x118100){_0x320671=_0x320671-0x96;let _0xc6109f=_0x3c4a6d[_0x320671];return _0xc6109f;},a131_0x3206(_0x27b936,_0x374873);}a131_0x1af25d[a131_0x107db1(0xc3)]=SDK_EVENTS,a131_0x1af25d[a131_0x107db1(0xf3)]={},a131_0x1af25d[a131_0x107db1(0x98)]={},a131_0x1af25d[a131_0x107db1(0xb4)]={},a131_0x1af25d[a131_0x107db1(0x112)]={},a131_0x1af25d[a131_0x107db1(0x103)]={},a131_0x1af25d[a131_0x107db1(0xb2)]={},a131_0x1af25d[a131_0x107db1(0xc1)]={},a131_0x1af25d[a131_0x107db1(0xa2)]={},a131_0x1af25d[a131_0x107db1(0xa0)]={},a131_0x1af25d[a131_0x107db1(0xf3)][a131_0x107db1(0xba)]=SDK_EVENTS[a131_0x107db1(0xb6)]+a131_0x107db1(0xb1),a131_0x1af25d[a131_0x107db1(0xf3)]['STOP']=SDK_EVENTS[a131_0x107db1(0xb6)]+a131_0x107db1(0xeb),a131_0x1af25d[a131_0x107db1(0x98)][a131_0x107db1(0xe0)]=SDK_EVENTS[a131_0x107db1(0x9f)]+':keep-alive',a131_0x1af25d[a131_0x107db1(0x98)][a131_0x107db1(0xa6)]=SDK_EVENTS[a131_0x107db1(0x9f)]+a131_0x107db1(0xe2),a131_0x1af25d[a131_0x107db1(0x98)][a131_0x107db1(0xfe)]=SDK_EVENTS[a131_0x107db1(0x9f)]+':local-start',a131_0x1af25d[a131_0x107db1(0x98)][a131_0x107db1(0xa1)]=SDK_EVENTS[a131_0x107db1(0x9f)]+a131_0x107db1(0xb5),a131_0x1af25d[a131_0x107db1(0x98)][a131_0x107db1(0xae)]=SDK_EVENTS[a131_0x107db1(0x9f)]+a131_0x107db1(0xdd),a131_0x1af25d[a131_0x107db1(0x98)][a131_0x107db1(0x10b)]=SDK_EVENTS[a131_0x107db1(0x9f)]+a131_0x107db1(0xbb),a131_0x1af25d[a131_0x107db1(0x98)][a131_0x107db1(0xe6)]=SDK_EVENTS['SDK_AUTOMATE']+':session-status',a131_0x1af25d[a131_0x107db1(0x98)][a131_0x107db1(0xec)]=SDK_EVENTS['SDK_AUTOMATE']+a131_0x107db1(0x11c),a131_0x1af25d[a131_0x107db1(0x98)]['IDLE_TIMEOUT']=SDK_EVENTS['SDK_AUTOMATE']+':idle-timeout',a131_0x1af25d[a131_0x107db1(0x98)]['GENERATE_CI_ARTIFACT']=SDK_EVENTS[a131_0x107db1(0x9f)]+':ci-artifacts',a131_0x1af25d[a131_0x107db1(0x98)][a131_0x107db1(0x11f)]=SDK_EVENTS[a131_0x107db1(0x9f)]+':print-buildlink',a131_0x1af25d[a131_0x107db1(0xb4)][a131_0x107db1(0x121)]=SDK_EVENTS[a131_0x107db1(0xf4)]+a131_0x107db1(0xfc),a131_0x1af25d[a131_0x107db1(0xb4)][a131_0x107db1(0xee)]=SDK_EVENTS[a131_0x107db1(0xf4)]+a131_0x107db1(0x100),a131_0x1af25d[a131_0x107db1(0xb4)][a131_0x107db1(0xdb)]=SDK_EVENTS[a131_0x107db1(0xf4)]+a131_0x107db1(0xfa),a131_0x1af25d[a131_0x107db1(0xb4)][a131_0x107db1(0xef)]=SDK_EVENTS[a131_0x107db1(0xf4)]+a131_0x107db1(0xc4),a131_0x1af25d[a131_0x107db1(0x112)][a131_0x107db1(0x114)]=SDK_EVENTS[a131_0x107db1(0xa4)]+':download',a131_0x1af25d[a131_0x107db1(0x112)][a131_0x107db1(0x118)]=SDK_EVENTS[a131_0x107db1(0xa4)]+a131_0x107db1(0xf7),a131_0x1af25d[a131_0x107db1(0x112)][a131_0x107db1(0xba)]=SDK_EVENTS[a131_0x107db1(0xa4)]+':start',a131_0x1af25d[a131_0x107db1(0x112)][a131_0x107db1(0xaa)]=SDK_EVENTS[a131_0x107db1(0xa4)]+a131_0x107db1(0xeb),a131_0x1af25d[a131_0x107db1(0x112)]['AUTO_CAPTURE']=SDK_EVENTS[a131_0x107db1(0xa4)]+':auto-capture',a131_0x1af25d[a131_0x107db1(0x112)][a131_0x107db1(0xab)]=SDK_EVENTS[a131_0x107db1(0xa4)]+':snapshot',a131_0x1af25d[a131_0x107db1(0x112)]['SCREENSHOT_APP']=SDK_EVENTS['SDK_PERCY']+a131_0x107db1(0xd1),a131_0x1af25d[a131_0x107db1(0x103)]['SYNC']=SDK_EVENTS[a131_0x107db1(0xd8)]+a131_0x107db1(0x10a),a131_0x1af25d[a131_0x107db1(0x103)]['TAKE_SCREENSHOT']=SDK_EVENTS[a131_0x107db1(0xd8)]+a131_0x107db1(0xbd),a131_0x1af25d[a131_0x107db1(0x103)]['PRINT_BUILDLINK']=SDK_EVENTS[a131_0x107db1(0xd8)]+a131_0x107db1(0xa8),a131_0x1af25d[a131_0x107db1(0xb2)]['BEFORE_EACH']=SDK_EVENTS['SDK_HOOK']+a131_0x107db1(0xfb),a131_0x1af25d[a131_0x107db1(0xb2)][a131_0x107db1(0xbf)]=SDK_EVENTS[a131_0x107db1(0x11a)]+a131_0x107db1(0xf6),a131_0x1af25d[a131_0x107db1(0xb2)][a131_0x107db1(0x101)]=SDK_EVENTS[a131_0x107db1(0x11a)]+a131_0x107db1(0xd0),a131_0x1af25d[a131_0x107db1(0xb2)]['BEFORE_ALL']=SDK_EVENTS[a131_0x107db1(0x11a)]+a131_0x107db1(0x10e),a131_0x1af25d[a131_0x107db1(0xb2)][a131_0x107db1(0xff)]=SDK_EVENTS['SDK_HOOK']+a131_0x107db1(0x97),a131_0x1af25d[a131_0x107db1(0xb2)][a131_0x107db1(0xd9)]=SDK_EVENTS[a131_0x107db1(0x11a)]+a131_0x107db1(0xd5),a131_0x1af25d[a131_0x107db1(0xc1)][a131_0x107db1(0xa6)]=SDK_EVENTS[a131_0x107db1(0xce)]+a131_0x107db1(0xe2),a131_0x1af25d[a131_0x107db1(0xc1)]['PRINT_BUILDLINK']=SDK_EVENTS[a131_0x107db1(0xce)]+a131_0x107db1(0xa8),a131_0x1af25d[a131_0x107db1(0xa2)]['APP_UPLOAD']=SDK_EVENTS['SDK_APP_AUTOMATE']+a131_0x107db1(0xc2),a131_0x1af25d[a131_0x107db1(0xa0)][a131_0x107db1(0xa5)]=SDK_EVENTS[a131_0x107db1(0xcc)]+a131_0x107db1(0xa9),a131_0x1af25d[a131_0x107db1(0xa0)]['GET']=SDK_EVENTS['SDK_DRIVER']+a131_0x107db1(0x120),a131_0x1af25d[a131_0x107db1(0xa0)][a131_0x107db1(0x10c)]=SDK_EVENTS[a131_0x107db1(0xcc)]+a131_0x107db1(0xe7),a131_0x1af25d[a131_0x107db1(0xa0)][a131_0x107db1(0x9a)]=SDK_EVENTS[a131_0x107db1(0xcc)]+a131_0x107db1(0x111),module['exports']=a131_0x1af25d;
|