browserstack-node-sdk 1.59.0 → 1.60.0
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 -3
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/assets/report.html +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/jasmine/bstack-reporter/customReporter.js +1 -1
- package/src/bin/jasmine/command.js +1 -1
- package/src/bin/jasmine/test.setup.js +1 -1
- package/src/bin/jasmine/testRunMap.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/testcafe/a11y-runner.js +1 -1
- package/src/bin/testcafe/command.js +1 -1
- package/src/bin/testcafe/reporter/index.js +1 -1
- package/src/bin/testcafe/reporter/tcUtils.js +1 -1
- package/src/bin/testcafe/session-registry.js +1 -1
- package/src/bin/testcafe/stdout-interceptor.js +1 -1
- package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
- package/src/bin/testcafe/w3c-driver.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/framework/testcafeAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testcafeTestFramework.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/testcafeDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/caCertHelper.js +1 -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/driverInitErrorReporter.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
package/src/helpers/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a137_0x377720=a137_0x32a3;(function(_0x40470c,_0x2ea4f1){const _0x152e3d=a137_0x32a3,_0x42637e=_0x40470c();while(!![]){try{const _0x1d6c68=-parseInt(_0x152e3d(0x1e9))/0x1*(parseInt(_0x152e3d(0x1b0))/0x2)+parseInt(_0x152e3d(0x1c2))/0x3+-parseInt(_0x152e3d(0x1b1))/0x4*(parseInt(_0x152e3d(0x1bb))/0x5)+-parseInt(_0x152e3d(0x1b2))/0x6+parseInt(_0x152e3d(0x1b9))/0x7*(-parseInt(_0x152e3d(0x1cb))/0x8)+-parseInt(_0x152e3d(0x1c9))/0x9*(parseInt(_0x152e3d(0x1a9))/0xa)+parseInt(_0x152e3d(0x1f1))/0xb;if(_0x1d6c68===_0x2ea4f1)break;else _0x42637e['push'](_0x42637e['shift']());}catch(_0x53e750){_0x42637e['push'](_0x42637e['shift']());}}}(a137_0x5a5b,0xc01f5));function a137_0x5a5b(){const _0x443858=['AIVvd','keys','/usage-debug.log','LdcNQ','cTrqs','[REDACTED]','stringify','YQimY','automationLogger','\x20-\x20','npm','24591xjmkzN','\x5c$&','true','loggerConsole','test','QFvWk','../bin/utils/constants','buildLogger','24680392rJfrbT','path','add','fileLogger','File','printf','debugLoggerFile','filter','BROWSERSTACK_AUTOMATION_LOGS','dfeJt','/usage.log','object','uskjT','config','Console','initialize','EPIPE','LyNWe','buildLinkTransport','77770vFIzqB','format','error','includes','silly','createLogger','debug','66YYuPak','619924tcacnz','163170zGuMaQ','existsSync','sAgcx','winston','level','name','transports','2877rjjABT','tlqaZ','5TCgPdV','[REDACTED\x20HEADERS]','remove','timestamp','uncolorize','BROWSERSTACK_INTERNAL_LOG_DIR','info','3401526QUOGpT','BROWSERSTACK_LOG_LEVEL','userName','replace','combine','log','toLowerCase','531xEgESl','mkdirSync','22152xZpTwe','maskHeaders','length','YVvYX','message','thTAx','join','colorize','levels','http','winstonLogger','Cvkxd','loggerFile','eUblw','env','logDir','YYYY-MM-DD\x20HH:mm:ss','automationLoggerFile','debugCliLoggerFile'];a137_0x5a5b=function(){return _0x443858;};return a137_0x5a5b();}const winston=require(a137_0x377720(0x1b5)),path=require(a137_0x377720(0x1f2)),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME,DEBUG_CLI_LOG_FILE_NAME}=require(a137_0x377720(0x1ef)),tempLogDir=a137_0x377720(0x1c7);let redactRegex=null,lastConfigHash='';const logFormat=winston[a137_0x377720(0x1aa)](_0x11a1c8=>{const _0x3dd351=a137_0x377720,_0x3361f1={};_0x3361f1['Cvkxd']=function(_0xa58c7f,_0x48a3ad){return _0xa58c7f!==_0x48a3ad;},_0x3361f1['AIVvd']='string',_0x3361f1[_0x3dd351(0x1e1)]=function(_0x28b77e,_0xdd06ba){return _0x28b77e+_0xdd06ba;},_0x3361f1[_0x3dd351(0x1d8)]=function(_0x4a553b,_0x366bad){return _0x4a553b!==_0x366bad;},_0x3361f1[_0x3dd351(0x1e2)]=function(_0x3b5973,_0x4d15e0){return _0x3b5973>_0x4d15e0;},_0x3361f1[_0x3dd351(0x1e5)]=_0x3dd351(0x1e3);const _0x567500=_0x3361f1;_0x567500[_0x3dd351(0x1d6)](typeof _0x11a1c8['message'],_0x567500[_0x3dd351(0x1de)])&&(_0x11a1c8[_0x3dd351(0x1cf)]=JSON[_0x3dd351(0x1e4)](_0x11a1c8[_0x3dd351(0x1cf)]));const _0x30fda6=global['config']&&global['config'][_0x3dd351(0x1c4)]||'',_0x951b6f=global[_0x3dd351(0x1fe)]&&global[_0x3dd351(0x1fe)]['accessKey']||'',_0x521305=_0x567500[_0x3dd351(0x1e1)](_0x567500[_0x3dd351(0x1e1)](_0x30fda6,'|'),_0x951b6f);if(_0x567500[_0x3dd351(0x1d8)](_0x521305,lastConfigHash)){lastConfigHash=_0x521305;const _0x169a0a=[_0x30fda6,_0x951b6f][_0x3dd351(0x1f8)](Boolean);if(_0x567500[_0x3dd351(0x1e2)](_0x169a0a[_0x3dd351(0x1cd)],0x0)){const _0x547c1f=_0x169a0a['map'](_0x30f6d4=>_0x30f6d4[_0x3dd351(0x1c5)](/[.*+?^${}()|[\]\\]/g,_0x3dd351(0x1ea)))['join']('|');redactRegex=new RegExp(_0x547c1f,'g');}else redactRegex=null;}return redactRegex&&(_0x11a1c8[_0x3dd351(0x1cf)]=_0x11a1c8[_0x3dd351(0x1cf)][_0x3dd351(0x1c5)](redactRegex,_0x567500['YQimY'])),_0x11a1c8;}),SENSITIVE_HEADER_REGEX=/authorization|token|cookie|secret|^x-api-key$|accesskey|password/i,maskHeaders=_0x17c2ab=>{const _0x5ae337=a137_0x377720,_0x5e7b0e={};_0x5e7b0e['LyNWe']=function(_0x18a4c6,_0x474431){return _0x18a4c6!==_0x474431;},_0x5e7b0e['GHxBV']=_0x5ae337(0x1fc),_0x5e7b0e[_0x5ae337(0x1ee)]='[REDACTED]',_0x5e7b0e[_0x5ae337(0x1d0)]=_0x5ae337(0x1bc);const _0x302713=_0x5e7b0e;try{if(!_0x17c2ab||_0x302713[_0x5ae337(0x1a7)](typeof _0x17c2ab,_0x302713['GHxBV']))return _0x17c2ab;const _0x126c17={};for(const _0x5ee7ff of Object[_0x5ae337(0x1df)](_0x17c2ab)){_0x126c17[_0x5ee7ff]=SENSITIVE_HEADER_REGEX[_0x5ae337(0x1ed)](_0x5ee7ff)?_0x302713['QFvWk']:_0x17c2ab[_0x5ee7ff];}return _0x126c17;}catch{return _0x302713[_0x5ae337(0x1d0)];}},fetchLogDir=()=>{const _0x321082=a137_0x377720;if(process['env'][_0x321082(0x1c0)])return process[_0x321082(0x1d9)][_0x321082(0x1c0)];else!fs[_0x321082(0x1b3)](tempLogDir)&&fs[_0x321082(0x1ca)](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),getInitialLogLevel=()=>{const _0x241c07=a137_0x377720,_0x2aa51e={};_0x2aa51e[_0x241c07(0x1fa)]=_0x241c07(0x1c1);const _0x3326a6=_0x2aa51e,_0x4a2364=process[_0x241c07(0x1d9)][_0x241c07(0x1c3)],_0x270d39=Object[_0x241c07(0x1df)](winston[_0x241c07(0x1fe)][_0x241c07(0x1e8)][_0x241c07(0x1d3)]);if(_0x4a2364&&_0x270d39[_0x241c07(0x1ac)](_0x4a2364[_0x241c07(0x1c8)]()))return _0x4a2364[_0x241c07(0x1c8)]();return _0x3326a6[_0x241c07(0x1fa)];},initialLogLevel=getInitialLogLevel(),a137_0x53d327={};a137_0x53d327[a137_0x377720(0x1b7)]='console.info',a137_0x53d327[a137_0x377720(0x1b6)]=initialLogLevel;const transports={'loggerConsole':new winston['transports'][(a137_0x377720(0x1ff))](a137_0x53d327),'loggerFile':new winston[(a137_0x377720(0x1b8))][(a137_0x377720(0x1f5))]({'filename':path[a137_0x377720(0x1d1)](logDir,a137_0x377720(0x1fb)),'level':initialLogLevel}),'debugLoggerFile':new winston[(a137_0x377720(0x1b8))][(a137_0x377720(0x1f5))]({'filename':path[a137_0x377720(0x1d1)](logDir,a137_0x377720(0x1e0)),'level':a137_0x377720(0x1ad)}),'debugCliLoggerFile':new winston[(a137_0x377720(0x1b8))][(a137_0x377720(0x1f5))]({'filename':path[a137_0x377720(0x1d1)](logDir,DEBUG_CLI_LOG_FILE_NAME),'level':a137_0x377720(0x1ad)}),'buildLinkTransport':new winston[(a137_0x377720(0x1b8))][(a137_0x377720(0x1f5))]({'filename':path[a137_0x377720(0x1d1)](logDir,a137_0x377720(0x1fb)),'level':a137_0x377720(0x1ad)})},automationTransports={};process[a137_0x377720(0x1d9)][a137_0x377720(0x1f9)]===a137_0x377720(0x1eb)&&(automationTransports['automationLoggerFile']=new winston[(a137_0x377720(0x1b8))][(a137_0x377720(0x1f5))]({'filename':path['join'](logDir,'automation.log'),'level':a137_0x377720(0x1ad)}));transports[a137_0x377720(0x1ec)]['on'](a137_0x377720(0x1ab),_0x46c2c0=>{const _0xf416d8=a137_0x377720,_0x309dda={};_0x309dda[_0xf416d8(0x1fd)]=function(_0x3b3971,_0x33713c){return _0x3b3971===_0x33713c;},_0x309dda[_0xf416d8(0x1ba)]=_0xf416d8(0x1a6),_0x309dda[_0xf416d8(0x1b4)]='EPIPE\x20error\x20occurred\x20in\x20loggerConsole:';const _0x56d0ce=_0x309dda;if(_0x56d0ce['uskjT'](_0x46c2c0['code'],_0x56d0ce[_0xf416d8(0x1ba)])){console[_0xf416d8(0x1c7)](_0x56d0ce[_0xf416d8(0x1b4)],_0x46c2c0[_0xf416d8(0x1cf)]);return;}throw _0x46c2c0;});const a137_0x3f11f1={};a137_0x3f11f1[a137_0x377720(0x1aa)]=a137_0x377720(0x1db);const a137_0xb35f44={};a137_0xb35f44[a137_0x377720(0x1b6)]=!![];const winstonLoggerParams={'format':winston[a137_0x377720(0x1aa)][a137_0x377720(0x1c6)](winston[a137_0x377720(0x1aa)][a137_0x377720(0x1be)](a137_0x3f11f1),winston[a137_0x377720(0x1aa)]['colorize'](a137_0xb35f44),winston[a137_0x377720(0x1aa)]['printf'](_0x578b35=>_0x578b35[a137_0x377720(0x1be)]+a137_0x377720(0x1e7)+_0x578b35['level']+':\x20'+_0x578b35[a137_0x377720(0x1cf)])),'transports':[transports[a137_0x377720(0x1ec)]]},a137_0xdc90bf={};a137_0xdc90bf['format']=a137_0x377720(0x1db);const a137_0x485e0c={};a137_0x485e0c[a137_0x377720(0x1b6)]=!![];const winstonFileLoggerParams={'format':winston['format'][a137_0x377720(0x1c6)](winston[a137_0x377720(0x1aa)][a137_0x377720(0x1be)](a137_0xdc90bf),winston['format'][a137_0x377720(0x1d2)](a137_0x485e0c),winston['format'][a137_0x377720(0x1f6)](_0x777755=>_0x777755['level']+':\x20'+_0x777755[a137_0x377720(0x1cf)])),'transports':[]},a137_0x3e4d82={};a137_0x3e4d82[a137_0x377720(0x1aa)]=a137_0x377720(0x1db);const a137_0x5ec079={};a137_0x5ec079[a137_0x377720(0x1b6)]=!![];const a137_0x5ec74c={};a137_0x5ec74c['level']='silly';function a137_0x32a3(_0x2ca2a6,_0x45a8b9){const _0x5a5bab=a137_0x5a5b();return a137_0x32a3=function(_0x32a3c7,_0x258e07){_0x32a3c7=_0x32a3c7-0x1a6;let _0x47337f=_0x5a5bab[_0x32a3c7];return _0x47337f;},a137_0x32a3(_0x2ca2a6,_0x45a8b9);}const BuildLoggerParams={'format':winston['format']['combine'](winston['format']['timestamp'](a137_0x3e4d82),winston[a137_0x377720(0x1aa)][a137_0x377720(0x1d2)](a137_0x5ec079),winston[a137_0x377720(0x1aa)]['printf'](_0x2802ac=>_0x2802ac['timestamp']+a137_0x377720(0x1e7)+_0x2802ac['level']+':\x20'+_0x2802ac['message'])),'transports':[transports[a137_0x377720(0x1a8)],new winston[(a137_0x377720(0x1b8))][(a137_0x377720(0x1ff))](a137_0x5ec74c)]},a137_0x4bcb32={};a137_0x4bcb32[a137_0x377720(0x1d4)]=()=>{},a137_0x4bcb32[a137_0x377720(0x1c1)]=()=>{},a137_0x4bcb32['warn']=()=>{},a137_0x4bcb32['error']=()=>{},a137_0x4bcb32[a137_0x377720(0x1af)]=()=>{},a137_0x4bcb32[a137_0x377720(0x1ad)]=()=>{},exports[a137_0x377720(0x1e6)]=process[a137_0x377720(0x1d9)][a137_0x377720(0x1f9)]===a137_0x377720(0x1eb)?winston[a137_0x377720(0x1ae)]({'format':winston[a137_0x377720(0x1aa)][a137_0x377720(0x1c6)](winston['format'][a137_0x377720(0x1bf)](),winston[a137_0x377720(0x1aa)]['timestamp'](),logFormat(),winston[a137_0x377720(0x1aa)][a137_0x377720(0x1f6)](_0x345970=>_0x345970[a137_0x377720(0x1b6)]+':\x20'+_0x345970[a137_0x377720(0x1cf)])),'transports':[automationTransports[a137_0x377720(0x1dc)]]}):a137_0x4bcb32;const initialize=()=>{const _0x104e14=a137_0x377720,_0x262d00={};_0x262d00[_0x104e14(0x1ce)]=_0x104e14(0x1ad);const _0x51699e=_0x262d00,_0x125a80=transports['loggerConsole'][_0x104e14(0x1b6)]||initialLogLevel;transports[_0x104e14(0x1d7)]&&(exports[_0x104e14(0x1d5)][_0x104e14(0x1bd)](transports[_0x104e14(0x1d7)]),exports[_0x104e14(0x1f4)][_0x104e14(0x1bd)](transports[_0x104e14(0x1d7)])),transports['debugLoggerFile']&&(exports[_0x104e14(0x1d5)]['remove'](transports['debugLoggerFile']),exports[_0x104e14(0x1f4)][_0x104e14(0x1bd)](transports['debugLoggerFile'])),transports[_0x104e14(0x1d7)]=new winston['transports'][(_0x104e14(0x1f5))]({'filename':path[_0x104e14(0x1d1)](exports['logDir'],LOG_FILE_NAME),'level':_0x125a80}),transports[_0x104e14(0x1f7)]=new winston['transports'][(_0x104e14(0x1f5))]({'filename':path[_0x104e14(0x1d1)](exports['logDir'],DEBUG_LOG_FILE_NAME),'level':_0x51699e[_0x104e14(0x1ce)]}),transports[_0x104e14(0x1dd)]=new winston[(_0x104e14(0x1b8))]['File']({'filename':path[_0x104e14(0x1d1)](exports[_0x104e14(0x1da)],DEBUG_CLI_LOG_FILE_NAME),'level':_0x51699e[_0x104e14(0x1ce)]}),exports[_0x104e14(0x1d5)]['add'](transports[_0x104e14(0x1d7)]),exports['winstonLogger'][_0x104e14(0x1f3)](transports[_0x104e14(0x1f7)]),exports[_0x104e14(0x1f4)][_0x104e14(0x1f3)](transports['loggerFile']),exports[_0x104e14(0x1f4)][_0x104e14(0x1f3)](transports['debugLoggerFile']);};exports[a137_0x377720(0x1d5)]=new winston[(a137_0x377720(0x1ae))](winstonLoggerParams),exports['fileLogger']=new winston[(a137_0x377720(0x1ae))](winstonFileLoggerParams),exports[a137_0x377720(0x1f0)]=new winston[(a137_0x377720(0x1ae))](BuildLoggerParams),exports[a137_0x377720(0x1da)]=logDir,exports['getLogDir']=()=>{const _0x5b40d8=a137_0x377720;return exports[_0x5b40d8(0x1da)];},exports[a137_0x377720(0x1b8)]=transports,exports[a137_0x377720(0x200)]=initialize,exports[a137_0x377720(0x1cc)]=maskHeaders;logDir&&initialize();
|
|
1
|
+
const a137_0x1227f2=a137_0x2f8b;(function(_0x36a6bd,_0x268fa7){const _0x208167=a137_0x2f8b,_0x32d38d=_0x36a6bd();while(!![]){try{const _0xef9074=parseInt(_0x208167(0x11d))/0x1*(-parseInt(_0x208167(0xde))/0x2)+parseInt(_0x208167(0xd9))/0x3*(parseInt(_0x208167(0xf6))/0x4)+parseInt(_0x208167(0xfe))/0x5*(parseInt(_0x208167(0xf1))/0x6)+parseInt(_0x208167(0xcd))/0x7+-parseInt(_0x208167(0x10a))/0x8*(parseInt(_0x208167(0xf2))/0x9)+parseInt(_0x208167(0xe1))/0xa*(-parseInt(_0x208167(0xf0))/0xb)+parseInt(_0x208167(0xdc))/0xc;if(_0xef9074===_0x268fa7)break;else _0x32d38d['push'](_0x32d38d['shift']());}catch(_0xa33e0b){_0x32d38d['push'](_0x32d38d['shift']());}}}(a137_0x5a83,0x8204a));const winston=require(a137_0x1227f2(0x114)),path=require(a137_0x1227f2(0x10b)),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME,DEBUG_CLI_LOG_FILE_NAME}=require(a137_0x1227f2(0xd7)),tempLogDir=a137_0x1227f2(0xee);let redactRegex=null,lastConfigHash='';const logFormat=winston[a137_0x1227f2(0xda)](_0xe3b290=>{const _0xe0d333=a137_0x1227f2,_0x75fb5c={};_0x75fb5c[_0xe0d333(0xf4)]=function(_0x42c2d9,_0x3708ad){return _0x42c2d9!==_0x3708ad;},_0x75fb5c[_0xe0d333(0x109)]='string',_0x75fb5c[_0xe0d333(0xf9)]=function(_0x4fca68,_0x3d49db){return _0x4fca68+_0x3d49db;},_0x75fb5c[_0xe0d333(0xe0)]=function(_0x53ed17,_0x356806){return _0x53ed17>_0x356806;},_0x75fb5c['dHlgI']=_0xe0d333(0xe2);const _0x49c35b=_0x75fb5c;_0x49c35b[_0xe0d333(0xf4)](typeof _0xe3b290[_0xe0d333(0x11e)],_0x49c35b['zMtkL'])&&(_0xe3b290[_0xe0d333(0x11e)]=JSON[_0xe0d333(0x106)](_0xe3b290[_0xe0d333(0x11e)]));const _0x30020a=global[_0xe0d333(0xe6)]&&global[_0xe0d333(0xe6)][_0xe0d333(0x10c)]||'',_0x23134e=global[_0xe0d333(0xe6)]&&global[_0xe0d333(0xe6)][_0xe0d333(0x101)]||'',_0x446ad3=_0x49c35b[_0xe0d333(0xf9)](_0x49c35b[_0xe0d333(0xf9)](_0x30020a,'|'),_0x23134e);if(_0x49c35b[_0xe0d333(0xf4)](_0x446ad3,lastConfigHash)){lastConfigHash=_0x446ad3;const _0x2d59fb=[_0x30020a,_0x23134e][_0xe0d333(0xea)](Boolean);if(_0x49c35b['PUlas'](_0x2d59fb[_0xe0d333(0xd1)],0x0)){const _0x113ecd=_0x2d59fb[_0xe0d333(0xfd)](_0x248fb4=>_0x248fb4[_0xe0d333(0xd8)](/[.*+?^${}()|[\]\\]/g,'\x5c$&'))[_0xe0d333(0xfa)]('|');redactRegex=new RegExp(_0x113ecd,'g');}else redactRegex=null;}return redactRegex&&(_0xe3b290[_0xe0d333(0x11e)]=_0xe3b290[_0xe0d333(0x11e)][_0xe0d333(0xd8)](redactRegex,_0x49c35b[_0xe0d333(0xf7)])),_0xe3b290;}),SENSITIVE_HEADER_REGEX=/authorization|token|cookie|secret|^x-api-key$|accesskey|password/i,maskHeaders=_0x5c0e1b=>{const _0x54f6a7=a137_0x1227f2,_0x19ceb2={};_0x19ceb2[_0x54f6a7(0x121)]=function(_0x7d77d9,_0x315a54){return _0x7d77d9!==_0x315a54;},_0x19ceb2[_0x54f6a7(0x107)]=_0x54f6a7(0xfb),_0x19ceb2[_0x54f6a7(0xe9)]=_0x54f6a7(0xe2),_0x19ceb2[_0x54f6a7(0x116)]=_0x54f6a7(0xdf);const _0x1e8d14=_0x19ceb2;try{if(!_0x5c0e1b||_0x1e8d14[_0x54f6a7(0x121)](typeof _0x5c0e1b,_0x1e8d14[_0x54f6a7(0x107)]))return _0x5c0e1b;const _0x34eea0={};for(const _0x56022d of Object[_0x54f6a7(0x100)](_0x5c0e1b)){_0x34eea0[_0x56022d]=SENSITIVE_HEADER_REGEX[_0x54f6a7(0x10d)](_0x56022d)?_0x1e8d14[_0x54f6a7(0xe9)]:_0x5c0e1b[_0x56022d];}return _0x34eea0;}catch{return _0x1e8d14[_0x54f6a7(0x116)];}},fetchLogDir=()=>{const _0x229061=a137_0x1227f2;if(process[_0x229061(0x119)][_0x229061(0xcb)])return process[_0x229061(0x119)]['BROWSERSTACK_INTERNAL_LOG_DIR'];else!fs[_0x229061(0x124)](tempLogDir)&&fs[_0x229061(0x10e)](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),getInitialLogLevel=()=>{const _0x159d23=a137_0x1227f2,_0x422700={};_0x422700[_0x159d23(0x11c)]=_0x159d23(0xf3);const _0x5f13ff=_0x422700,_0x56b256=process[_0x159d23(0x119)][_0x159d23(0x11b)],_0x1bc2ba=Object[_0x159d23(0x100)](winston[_0x159d23(0xe6)][_0x159d23(0x118)]['levels']);if(_0x56b256&&_0x1bc2ba['includes'](_0x56b256[_0x159d23(0xd0)]()))return _0x56b256['toLowerCase']();return _0x5f13ff[_0x159d23(0x11c)];},initialLogLevel=getInitialLogLevel(),a137_0x5030ab={};a137_0x5030ab['name']='console.info',a137_0x5030ab[a137_0x1227f2(0xe5)]=initialLogLevel;const transports={'loggerConsole':new winston[(a137_0x1227f2(0xec))]['Console'](a137_0x5030ab),'loggerFile':new winston[(a137_0x1227f2(0xec))][(a137_0x1227f2(0x11f))]({'filename':path['join'](logDir,'/usage.log'),'level':initialLogLevel}),'debugLoggerFile':new winston[(a137_0x1227f2(0xec))]['File']({'filename':path['join'](logDir,a137_0x1227f2(0xd3)),'level':a137_0x1227f2(0x110)}),'debugCliLoggerFile':new winston[(a137_0x1227f2(0xec))][(a137_0x1227f2(0x11f))]({'filename':path['join'](logDir,DEBUG_CLI_LOG_FILE_NAME),'level':a137_0x1227f2(0x110)}),'buildLinkTransport':new winston[(a137_0x1227f2(0xec))]['File']({'filename':path[a137_0x1227f2(0xfa)](logDir,a137_0x1227f2(0x108)),'level':a137_0x1227f2(0x110)})},automationTransports={};process[a137_0x1227f2(0x119)][a137_0x1227f2(0xcf)]===a137_0x1227f2(0xe3)&&(automationTransports[a137_0x1227f2(0x120)]=new winston['transports'][(a137_0x1227f2(0x11f))]({'filename':path[a137_0x1227f2(0xfa)](logDir,'automation.log'),'level':a137_0x1227f2(0x110)}));transports['loggerConsole']['on'](a137_0x1227f2(0x123),_0x537684=>{const _0x1d66bd=a137_0x1227f2,_0x2ef0a2={};_0x2ef0a2[_0x1d66bd(0xff)]=function(_0x2399fe,_0x2e3ecd){return _0x2399fe===_0x2e3ecd;},_0x2ef0a2['JgArO']='EPIPE',_0x2ef0a2[_0x1d66bd(0xe4)]=_0x1d66bd(0xed);const _0x24d0cb=_0x2ef0a2;if(_0x24d0cb['EicLa'](_0x537684[_0x1d66bd(0xcc)],_0x24d0cb[_0x1d66bd(0x112)])){console[_0x1d66bd(0xee)](_0x24d0cb['dGniQ'],_0x537684[_0x1d66bd(0x11e)]);return;}throw _0x537684;});const a137_0x9a0122={};a137_0x9a0122[a137_0x1227f2(0xda)]=a137_0x1227f2(0x113);const a137_0x4f1232={};a137_0x4f1232[a137_0x1227f2(0xe5)]=!![];const winstonLoggerParams={'format':winston[a137_0x1227f2(0xda)][a137_0x1227f2(0xdd)](winston[a137_0x1227f2(0xda)]['timestamp'](a137_0x9a0122),winston[a137_0x1227f2(0xda)][a137_0x1227f2(0x105)](a137_0x4f1232),winston[a137_0x1227f2(0xda)][a137_0x1227f2(0xeb)](_0x2b3c7f=>_0x2b3c7f[a137_0x1227f2(0x115)]+'\x20-\x20'+_0x2b3c7f['level']+':\x20'+_0x2b3c7f['message'])),'transports':[transports[a137_0x1227f2(0xd5)]]},a137_0x31e46f={};a137_0x31e46f[a137_0x1227f2(0xda)]=a137_0x1227f2(0x113);const a137_0x5b28cb={};a137_0x5b28cb[a137_0x1227f2(0xe5)]=!![];const winstonFileLoggerParams={'format':winston[a137_0x1227f2(0xda)][a137_0x1227f2(0xdd)](winston[a137_0x1227f2(0xda)][a137_0x1227f2(0x115)](a137_0x31e46f),winston['format'][a137_0x1227f2(0x105)](a137_0x5b28cb),winston[a137_0x1227f2(0xda)]['printf'](_0x3268fa=>_0x3268fa['level']+':\x20'+_0x3268fa[a137_0x1227f2(0x11e)])),'transports':[]},a137_0x32d96b={};a137_0x32d96b[a137_0x1227f2(0xda)]=a137_0x1227f2(0x113);const a137_0x435d3f={};a137_0x435d3f[a137_0x1227f2(0xe5)]=!![];const a137_0x2f93d5={};function a137_0x2f8b(_0x3e7e7f,_0x49043a){const _0x5a834e=a137_0x5a83();return a137_0x2f8b=function(_0x2f8bb1,_0x5c473d){_0x2f8bb1=_0x2f8bb1-0xca;let _0x4d0e6a=_0x5a834e[_0x2f8bb1];return _0x4d0e6a;},a137_0x2f8b(_0x3e7e7f,_0x49043a);}a137_0x2f93d5[a137_0x1227f2(0xe5)]=a137_0x1227f2(0x110);const BuildLoggerParams={'format':winston[a137_0x1227f2(0xda)][a137_0x1227f2(0xdd)](winston['format']['timestamp'](a137_0x32d96b),winston[a137_0x1227f2(0xda)][a137_0x1227f2(0x105)](a137_0x435d3f),winston[a137_0x1227f2(0xda)][a137_0x1227f2(0xeb)](_0x1dedcd=>_0x1dedcd[a137_0x1227f2(0x115)]+a137_0x1227f2(0xce)+_0x1dedcd[a137_0x1227f2(0xe5)]+':\x20'+_0x1dedcd[a137_0x1227f2(0x11e)])),'transports':[transports[a137_0x1227f2(0xd6)],new winston['transports'][(a137_0x1227f2(0x104))](a137_0x2f93d5)]},a137_0x3c2599={};a137_0x3c2599[a137_0x1227f2(0xfc)]=()=>{},a137_0x3c2599[a137_0x1227f2(0xf3)]=()=>{},a137_0x3c2599[a137_0x1227f2(0xe7)]=()=>{},a137_0x3c2599['error']=()=>{},a137_0x3c2599['debug']=()=>{},a137_0x3c2599['silly']=()=>{},exports[a137_0x1227f2(0x11a)]=process[a137_0x1227f2(0x119)][a137_0x1227f2(0xcf)]===a137_0x1227f2(0xe3)?winston[a137_0x1227f2(0x103)]({'format':winston[a137_0x1227f2(0xda)]['combine'](winston[a137_0x1227f2(0xda)][a137_0x1227f2(0xf5)](),winston['format']['timestamp'](),logFormat(),winston[a137_0x1227f2(0xda)][a137_0x1227f2(0xeb)](_0x12276f=>_0x12276f['level']+':\x20'+_0x12276f['message'])),'transports':[automationTransports[a137_0x1227f2(0x120)]]}):a137_0x3c2599;const initialize=()=>{const _0x3971c9=a137_0x1227f2,_0x245202={};_0x245202[_0x3971c9(0x117)]=_0x3971c9(0x110);const _0x1f371e=_0x245202,_0x562402=transports[_0x3971c9(0xd5)]['level']||initialLogLevel;transports[_0x3971c9(0x122)]&&(exports[_0x3971c9(0xe8)][_0x3971c9(0xf8)](transports[_0x3971c9(0x122)]),exports['fileLogger']['remove'](transports[_0x3971c9(0x122)])),transports[_0x3971c9(0xef)]&&(exports[_0x3971c9(0xe8)]['remove'](transports[_0x3971c9(0xef)]),exports[_0x3971c9(0x111)][_0x3971c9(0xf8)](transports[_0x3971c9(0xef)])),transports[_0x3971c9(0x122)]=new winston['transports'][(_0x3971c9(0x11f))]({'filename':path[_0x3971c9(0xfa)](exports[_0x3971c9(0xd4)],LOG_FILE_NAME),'level':_0x562402}),transports[_0x3971c9(0xef)]=new winston[(_0x3971c9(0xec))][(_0x3971c9(0x11f))]({'filename':path['join'](exports[_0x3971c9(0xd4)],DEBUG_LOG_FILE_NAME),'level':_0x1f371e[_0x3971c9(0x117)]}),transports[_0x3971c9(0xdb)]=new winston['transports'][(_0x3971c9(0x11f))]({'filename':path[_0x3971c9(0xfa)](exports['logDir'],DEBUG_CLI_LOG_FILE_NAME),'level':_0x1f371e[_0x3971c9(0x117)]}),exports[_0x3971c9(0xe8)][_0x3971c9(0xca)](transports['loggerFile']),exports[_0x3971c9(0xe8)]['add'](transports[_0x3971c9(0xef)]),exports['fileLogger'][_0x3971c9(0xca)](transports[_0x3971c9(0x122)]),exports[_0x3971c9(0x111)][_0x3971c9(0xca)](transports[_0x3971c9(0xef)]);};function a137_0x5a83(){const _0x5c9743=['length','initialize','/usage-debug.log','logDir','loggerConsole','buildLinkTransport','../bin/utils/constants','replace','3ZXlpgE','format','debugCliLoggerFile','14149260chvSnd','combine','21074ANUhqb','[REDACTED\x20HEADERS]','PUlas','1934420YDetrA','[REDACTED]','true','dGniQ','level','config','warn','winstonLogger','QUZJt','filter','printf','transports','EPIPE\x20error\x20occurred\x20in\x20loggerConsole:','log','debugLoggerFile','33wWuEkD','234390YBhJqA','59481INyBOV','info','uEwkS','uncolorize','2341884FTOJvI','dHlgI','remove','oRiOz','join','object','http','map','25KBlPWt','EicLa','keys','accessKey','buildLogger','createLogger','Console','colorize','stringify','XIrla','/usage.log','zMtkL','488xevlEf','path','userName','test','mkdirSync','maskHeaders','silly','fileLogger','JgArO','YYYY-MM-DD\x20HH:mm:ss','winston','timestamp','BYHPR','WRaAn','npm','env','automationLogger','BROWSERSTACK_LOG_LEVEL','lwilq','61OaKboF','message','File','automationLoggerFile','LBJfA','loggerFile','error','existsSync','add','BROWSERSTACK_INTERNAL_LOG_DIR','code','1392195IIGoBs','\x20-\x20','BROWSERSTACK_AUTOMATION_LOGS','toLowerCase'];a137_0x5a83=function(){return _0x5c9743;};return a137_0x5a83();}exports[a137_0x1227f2(0xe8)]=new winston[(a137_0x1227f2(0x103))](winstonLoggerParams),exports[a137_0x1227f2(0x111)]=new winston[(a137_0x1227f2(0x103))](winstonFileLoggerParams),exports[a137_0x1227f2(0x102)]=new winston[(a137_0x1227f2(0x103))](BuildLoggerParams),exports[a137_0x1227f2(0xd4)]=logDir,exports['getLogDir']=()=>{return exports['logDir'];},exports[a137_0x1227f2(0xec)]=transports,exports[a137_0x1227f2(0xd2)]=initialize,exports[a137_0x1227f2(0x10f)]=maskHeaders;logDir&&initialize();
|
package/src/helpers/metadata.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a138_0x3dbb(){const _0x46577a=['12380bIFidm','xXTLU','194330vrxPSg','9bssRMQ','set','string','5iBFmJE','34590djzzne','onRjV','6115848tEQzVX','./globals','NUgwo','exports','2xVlFpu','getCentralUser','1529AJpxyf','length','cggfi','getGlobal','setGlobal','294010XLyLdX','KMACw','lcnc','230556HCaGlC','identifier','The\x20metadata\x20object\x20is\x20not\x20valid.','testMeta-','warn','testMeta','621tsuhhG','4782428QuJMsP','get','./helper','KuhNI','JXFAw','testRunUUID'];a138_0x3dbb=function(){return _0x46577a;};return a138_0x3dbb();}const a138_0x140b9e=a138_0x5e3b;(function(_0x5d12e7,_0x2821b7){const _0x38d97a=a138_0x5e3b,_0x17cca5=_0x5d12e7();while(!![]){try{const _0x34182f=parseInt(_0x38d97a(0xae))/0x1*(-parseInt(_0x38d97a(0x95))/0x2)+-parseInt(_0x38d97a(0xa5))/0x3*(parseInt(_0x38d97a(0xac))/0x4)+-parseInt(_0x38d97a(0x8e))/0x5*(parseInt(_0x38d97a(0x8f))/0x6)+-parseInt(_0x38d97a(0xa6))/0x7+-parseInt(_0x38d97a(0x91))/0x8+-parseInt(_0x38d97a(0xaf))/0x9*(-parseInt(_0x38d97a(0x9c))/0xa)+-parseInt(_0x38d97a(0x97))/0xb*(-parseInt(_0x38d97a(0x9f))/0xc);if(_0x34182f===_0x2821b7)break;else _0x17cca5['push'](_0x17cca5['shift']());}catch(_0x583e3e){_0x17cca5['push'](_0x17cca5['shift']());}}}(a138_0x3dbb,0x647ab));const globals=require(a138_0x140b9e(0x92)),helper=require(a138_0x140b9e(0xa8)),logger=require('./logger')['winstonLogger'];function a138_0x5e3b(_0x4ab394,_0x2b9251){const _0x3dbb0b=a138_0x3dbb();return a138_0x5e3b=function(_0x5e3b8a,_0x325c50){_0x5e3b8a=_0x5e3b8a-0x8d;let _0x2cecfe=_0x3dbb0b[_0x5e3b8a];return _0x2cecfe;},a138_0x5e3b(_0x4ab394,_0x2b9251);}module[a138_0x140b9e(0x94)]=class TestMetadata{static[a138_0x140b9e(0xb0)](_0x58a009={}){const _0x5e6598=a138_0x140b9e,_0x2d561b={};_0x2d561b['KuhNI']=_0x5e6598(0xab),_0x2d561b[_0x5e6598(0x99)]=function(_0x3f2529,_0x2fdc5c){return _0x3f2529===_0x2fdc5c;},_0x2d561b[_0x5e6598(0x93)]=_0x5e6598(0x8d),_0x2d561b[_0x5e6598(0x90)]=function(_0x174eb6,_0x211d63){return _0x174eb6<=_0x211d63;},_0x2d561b[_0x5e6598(0xad)]='testMeta',_0x2d561b[_0x5e6598(0x9d)]=_0x5e6598(0xa1);const _0x136e5b=_0x2d561b,_0x3c07fc=globals[_0x5e6598(0x9a)](_0x136e5b[_0x5e6598(0xa9)]),_0x36670a=_0x58a009[_0x5e6598(0xa0)];helper['getCentralUser']()[_0x5e6598(0x9e)]&&(_0x136e5b[_0x5e6598(0x99)](typeof _0x36670a,_0x136e5b[_0x5e6598(0x93)])&&_0x136e5b[_0x5e6598(0x90)](_0x36670a[_0x5e6598(0x98)],0x28)?_0x3c07fc?globals[_0x5e6598(0x9b)]('testMeta-'+_0x3c07fc,_0x58a009):globals['setGlobal'](_0x136e5b['xXTLU'],_0x58a009):logger[_0x5e6598(0xa3)](_0x136e5b[_0x5e6598(0x9d)]));}static[a138_0x140b9e(0xa7)](_0x1ba76d){const _0x288de9=a138_0x140b9e,_0x327b03={};_0x327b03[_0x288de9(0xaa)]=_0x288de9(0xa4);const _0x78ea10=_0x327b03;if(helper[_0x288de9(0x96)]()[_0x288de9(0x9e)])return globals[_0x288de9(0x9a)](_0x288de9(0xa2)+_0x1ba76d)||globals[_0x288de9(0x9a)](_0x78ea10[_0x288de9(0xaa)])||{};return{};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a139_0x5b59(){const _0x30ff31=['Itnqm','KUpLO','findElement','silly','includes','getNudgeLocalNotSetError','request','Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','./performance/performance-tester','VnqEJ','skipHealingSuccess','format','executeAsyncScript','bmsvM','jSItt','ysSpn','getGlobal','cvcqa','value','uOGgM','Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','setTcgTokenStatus','body','HsLiS','6305094USqOaF','wXbnx','execute','kMANO','vPzYz','parameters','initExecute','response','24zbntuy','Healing\x20failed\x20for\x20command\x20using\x20','./ai-sdk/aiSdkWrapper','./globals','getId','Error\x20in\x20handling\x20TCG\x20Auth:\x20','4bLZVvx','Successfully\x20healed\x20command\x20using\x20new\x20','CPmQK','qpkqm','browserstack.local','yjiUe','Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','wJwBE','name_','aiHeal:findElementSuccess','eEgPQ','IHErg','aiHeal:findElementFailure','DNwVi','patchExecute','hMqvr','WCmpW','UTXrP','aiHeal_isAuthenticated','BeKNo','RAKgM','AUTOMATION_LOG_COMMANDS','./logger','getSession','DKuEN','XppRJ','JavascriptError','using','GGFPo','./helper','zZlGo','handleSuccess','HysWU','getTcgTokenStatus','lmNCk','setAiSessionTimeStamp','args','28993527zWtvbq','parameters_','pldDH','nNyaO','handleFailure','TVcWl','DeuLI','BhXmB','1482764wyALcc','abmJA','iPDJe','qLams','TWVNh','wBOtU',';\x20Trying\x20to\x20heal','aiSdk_defaultLogDataEnabled','aiHeal:setToken','find','script','LaxyF','wPajO','qeGvf','2354821cSyFib','450467cbjEjT','./ai-sdk/autoHealHelper','YhREi','name','JcMoV','682641UtufEa','DQkot','YANgH','capability','setTcgToken','jcVrM','lFXBB','./performance/constants','local','info','bstack:options','../bin/utils/constants','findElement\x20command\x20failed\x20with\x20cssPath:\x20','10GSyHdN','nestedKeyValue','overrideExecute','string','isBrowserstackInfra','uueYF','iLtaP','url','isSelfHealEnabled','message','YYaBN','JvHzN','OfMGI','measureWrapper','oiekP','zoeaI','4813850GEmITp','util','executeScript','DZtYk','yFGPT','WwmyP'];a139_0x5b59=function(){return _0x30ff31;};return a139_0x5b59();}function a139_0x1bad(_0x23a910,_0x37605a){const _0x5b59ee=a139_0x5b59();return a139_0x1bad=function(_0x1badae,_0x46edaf){_0x1badae=_0x1badae-0xe0;let _0x34b220=_0x5b59ee[_0x1badae];return _0x34b220;},a139_0x1bad(_0x23a910,_0x37605a);}const a139_0x2e28de=a139_0x1bad;(function(_0x22adc7,_0x40940f){const _0x1edf12=a139_0x1bad,_0x4201bf=_0x22adc7();while(!![]){try{const _0x236f66=parseInt(_0x1edf12(0x15a))/0x1*(parseInt(_0x1edf12(0x11e))/0x2)+parseInt(_0x1edf12(0x15f))/0x3+-parseInt(_0x1edf12(0x14b))/0x4+parseInt(_0x1edf12(0xf2))/0x5+parseInt(_0x1edf12(0x110))/0x6+parseInt(_0x1edf12(0x159))/0x7*(parseInt(_0x1edf12(0x118))/0x8)+-parseInt(_0x1edf12(0x143))/0x9*(parseInt(_0x1edf12(0xe2))/0xa);if(_0x236f66===_0x40940f)break;else _0x4201bf['push'](_0x4201bf['shift']());}catch(_0xb668ea){_0x4201bf['push'](_0x4201bf['shift']());}}}(a139_0x5b59,0x8880b));const {aiSdkWrapper}=require(a139_0x2e28de(0x11a)),{commandRepository}=require(a139_0x2e28de(0x15b)),PerformanceTester=require(a139_0x2e28de(0x100)),globals=require(a139_0x2e28de(0x11b)),{winstonLogger:logger,automationLogger}=require(a139_0x2e28de(0x134)),helper=require(a139_0x2e28de(0x13b)),constants=require(a139_0x2e28de(0xe0)),{DRIVER_EVENT:PerformanceDriverEvents}=require(a139_0x2e28de(0x166)),util=require(a139_0x2e28de(0xf3));exports[a139_0x2e28de(0xe4)]=(_0x2ae9a3,_0x49e6cf)=>{const _0x53eaa8=a139_0x2e28de,_0x5b7c44={'qeGvf':_0x53eaa8(0x130),'wXbnx':_0x53eaa8(0x153),'iPDJe':function(_0x4d639a){return _0x4d639a();},'bmsvM':_0x53eaa8(0x152),'oiekP':function(_0x35fe14,_0x53c539){return _0x35fe14===_0x53c539;},'uueYF':_0x53eaa8(0xfa),'jSItt':'aiHeal_isHealingEnabled','kMANO':_0x53eaa8(0x127),'SbCEv':function(_0xf7dbf8){return _0xf7dbf8();},'YhREi':_0x53eaa8(0x124),'gpFVX':function(_0x37041e,_0x472a63){return _0x37041e===_0x472a63;},'xDsHX':'NoSuchElementError','iLtaP':_0x53eaa8(0x138),'eEgPQ':function(_0x2da0af,_0x34d81b){return _0x2da0af===_0x34d81b;},'qLams':'css\x20selector','cvcqa':function(_0x6f5e89,_0x212196){return _0x6f5e89+_0x212196;},'JvHzN':function(_0x2a3c8c,_0x127c01){return _0x2a3c8c+_0x127c01;},'DQkot':_0x53eaa8(0xe1),'RNlxK':_0x53eaa8(0x151),'IHErg':function(_0x306801,_0x27c904){return _0x306801+_0x27c904;},'YYaBN':function(_0x4eba31,_0x1b8caf){return _0x4eba31+_0x1b8caf;},'ysSpn':function(_0x501a50,_0x55625f){return _0x501a50+_0x55625f;},'RsglH':'findElement\x20command\x20failed\x20with\x20','wCAxl':_0x53eaa8(0x12a),'jcVrM':function(_0x4694c2,_0x114cb5){return _0x4694c2&&_0x114cb5;},'IHvHP':'Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','zZlGo':function(_0x349476,_0x40a2c4){return _0x349476+_0x40a2c4;},'WCmpW':_0x53eaa8(0x11f),'lFXBB':function(_0xe35ebc,_0x246e27){return _0xe35ebc===_0x246e27;},'KUpLO':_0x53eaa8(0x10c),'HysWU':function(_0x57c4e8,_0x5105c6){return _0x57c4e8+_0x5105c6;},'HsLiS':_0x53eaa8(0x119),'hMqvr':'get','wJwBE':_0x53eaa8(0x144),'OfMGI':_0x53eaa8(0xe9),'YANgH':_0x53eaa8(0xff),'DeuLI':_0x53eaa8(0x104),'DNwVi':function(_0x28bbdf,_0x46c3de){return _0x28bbdf===_0x46c3de;},'TRzCU':_0x53eaa8(0xf4),'VnqEJ':function(_0x45104f,_0x450de0){return _0x45104f===_0x450de0;},'wPajO':_0x53eaa8(0xe5),'qpkqm':_0x53eaa8(0x162),'LaxyF':_0x53eaa8(0x122),'iimdV':_0x53eaa8(0x169),'nNyaO':_0x53eaa8(0x167)},_0x3b5af6=_0x2ae9a3[_0x53eaa8(0x12c)]||(helper[_0x53eaa8(0xe3)](_0x49e6cf,[_0x5b7c44['qpkqm'],_0x5b7c44[_0x53eaa8(0x156)]])||helper['nestedKeyValue'](_0x49e6cf,[_0x5b7c44[_0x53eaa8(0x121)],_0x5b7c44['iimdV'],_0x5b7c44[_0x53eaa8(0x146)]]));if(!globals[_0x53eaa8(0x108)](_0x5b7c44[_0x53eaa8(0x158)])&&!globals[_0x53eaa8(0x108)](_0x5b7c44[_0x53eaa8(0x106)])&&_0x3b5af6)return;_0x2ae9a3['patchExecute']=!![],_0x2ae9a3[_0x53eaa8(0x116)]=_0x2ae9a3['execute'],_0x2ae9a3[_0x53eaa8(0x112)]=async _0x546f47=>{const _0x1a056f=_0x53eaa8,_0x442e85={'TVcWl':_0x5b7c44[_0x1a056f(0x15c)],'abmJA':function(_0x561ba1,_0x20ce52){return _0x5b7c44['gpFVX'](_0x561ba1,_0x20ce52);},'DKuEN':_0x5b7c44['xDsHX'],'aEQwC':_0x5b7c44[_0x1a056f(0xe8)],'DZtYk':function(_0x3b433a,_0x4c579d){const _0x3dfbfa=_0x1a056f;return _0x5b7c44[_0x3dfbfa(0x128)](_0x3b433a,_0x4c579d);},'iGCVj':_0x5b7c44[_0x1a056f(0xe7)],'XppRJ':_0x5b7c44[_0x1a056f(0x158)],'MnhNE':_0x5b7c44['jSItt'],'uOGgM':_0x5b7c44[_0x1a056f(0x14e)],'WwmyP':function(_0x41705a,_0x2e1e23){const _0x3d88f7=_0x1a056f;return _0x5b7c44[_0x3d88f7(0x109)](_0x41705a,_0x2e1e23);},'yjiUe':function(_0x40aabb,_0x35ff60){const _0x349feb=_0x1a056f;return _0x5b7c44[_0x349feb(0xed)](_0x40aabb,_0x35ff60);},'TWVNh':_0x5b7c44[_0x1a056f(0x160)],'yFGPT':_0x5b7c44['RNlxK'],'pldDH':function(_0x545419,_0x15d41d){const _0x2dd51a=_0x1a056f;return _0x5b7c44[_0x2dd51a(0x129)](_0x545419,_0x15d41d);},'CPmQK':function(_0xb51b20,_0x4d0885){const _0xd03633=_0x1a056f;return _0x5b7c44[_0xd03633(0xec)](_0xb51b20,_0x4d0885);},'RAKgM':function(_0x2c57c5,_0x2e0a77){const _0x3fa85f=_0x1a056f;return _0x5b7c44[_0x3fa85f(0x107)](_0x2c57c5,_0x2e0a77);},'UTXrP':_0x5b7c44['RsglH'],'UCoVz':_0x5b7c44['wCAxl'],'qagKF':function(_0x4780c8){const _0x1365dd=_0x1a056f;return _0x5b7c44[_0x1365dd(0x14d)](_0x4780c8);},'BeKNo':function(_0x514a83,_0x2f0d12){const _0x5e3c76=_0x1a056f;return _0x5b7c44[_0x5e3c76(0x164)](_0x514a83,_0x2f0d12);},'BhXmB':_0x5b7c44['IHvHP'],'GGFPo':function(_0x1d18ab,_0x260faf){const _0x159f1d=_0x1a056f;return _0x5b7c44[_0x159f1d(0x13c)](_0x1d18ab,_0x260faf);},'eJQbT':function(_0x913ae2,_0x54d82c){const _0x114a59=_0x1a056f;return _0x5b7c44[_0x114a59(0x129)](_0x913ae2,_0x54d82c);},'mcDSl':_0x5b7c44[_0x1a056f(0x12e)],'vPzYz':function(_0x6a4cd4,_0x4b390b){const _0x4b41ae=_0x1a056f;return _0x5b7c44[_0x4b41ae(0x165)](_0x6a4cd4,_0x4b390b);},'JcMoV':_0x5b7c44[_0x1a056f(0xf9)],'TxzYy':function(_0x2563dc,_0x560b28){const _0x8e5114=_0x1a056f;return _0x5b7c44[_0x8e5114(0x13e)](_0x2563dc,_0x560b28);},'lmNCk':_0x5b7c44[_0x1a056f(0x10f)],'KACen':_0x5b7c44[_0x1a056f(0x12d)],'wBOtU':_0x5b7c44[_0x1a056f(0x125)],'Itnqm':_0x5b7c44[_0x1a056f(0xee)],'utVZf':_0x5b7c44[_0x1a056f(0x161)]};try{const _0x5a8b02={};_0x5a8b02['command']=_0x546f47[_0x1a056f(0x126)],await PerformanceTester['measureWrapper'](PerformanceDriverEvents['PRE_EXECUTE'],async()=>{const _0x2d792f=_0x1a056f,_0x397976={};_0x397976[_0x2d792f(0xf1)]=_0x5b7c44[_0x2d792f(0x158)];const _0x176091=_0x397976;if(!commandRepository[_0x2d792f(0x13f)]()&&globals['getGlobal'](_0x5b7c44[_0x2d792f(0x158)])){const _0x4d48e7=PerformanceTester['measureWrapper'](_0x5b7c44[_0x2d792f(0x111)],async()=>{const _0x371f2e=_0x2d792f;try{commandRepository[_0x371f2e(0x10d)](!![]),await aiSdkWrapper[_0x371f2e(0x163)]((await _0x2ae9a3[_0x371f2e(0x135)]())[_0x371f2e(0x11c)]());const _0x341339=globals[_0x371f2e(0x108)](_0x176091[_0x371f2e(0xf1)]);_0x341339&&commandRepository[_0x371f2e(0x141)]((await _0x2ae9a3[_0x371f2e(0x135)]())[_0x371f2e(0x11c)]());}catch(_0x4c88ce){logger['error'](_0x371f2e(0x11d)+_0x4c88ce);}});await _0x5b7c44[_0x2d792f(0x14d)](_0x4d48e7);}},_0x5a8b02)();const _0x3b2b91=await _0x2ae9a3[_0x1a056f(0x116)](_0x546f47);try{if(_0x5b7c44['gpFVX'](_0x546f47[_0x1a056f(0x126)],_0x5b7c44[_0x1a056f(0x149)])||_0x5b7c44[_0x1a056f(0x12b)](_0x546f47['name_'],_0x5b7c44['TRzCU'])){const _0x1cd989=_0x546f47[_0x1a056f(0x144)]&&_0x546f47[_0x1a056f(0x144)][_0x1a056f(0x155)],_0x12c215=_0x546f47[_0x1a056f(0x144)]&&_0x546f47[_0x1a056f(0x144)][_0x1a056f(0x142)],_0x23b94c=_0x12c215&&util['format']('%j',_0x12c215);if(_0x1cd989&&_0x5b7c44[_0x1a056f(0x101)](typeof _0x1cd989,_0x5b7c44[_0x1a056f(0x157)])){const _0x12deaf=constants[_0x1a056f(0x133)][_0x1a056f(0x154)](_0x11956d=>_0x1cd989[_0x1a056f(0xfc)](_0x11956d)||_0x23b94c&&_0x23b94c['includes'](_0x11956d));if(_0x12deaf){const _0x49fa71={};_0x49fa71['command']=_0x12deaf,_0x49fa71[_0x1a056f(0x115)]=_0x12c215;const _0x4cde5f={};_0x4cde5f[_0x1a056f(0x10e)]=_0x3b2b91;const _0x2e113c={};_0x2e113c[_0x1a056f(0xfe)]=_0x49fa71,_0x2e113c[_0x1a056f(0x117)]=_0x4cde5f,automationLogger[_0x1a056f(0xfb)]('['+new Date()['toISOString']()+'][\x20SDK-AUTOMATION\x20]\x20'+util[_0x1a056f(0x103)]('%j',_0x2e113c));}}}}catch(_0x2853de){logger[_0x1a056f(0xfb)]('Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20'+_0x2853de[_0x1a056f(0xeb)]);}return await PerformanceTester['measureWrapper'](PerformanceDriverEvents['POST_EXECUTE'],async()=>{const _0x289952=_0x1a056f;if(!helper['isBrowserstackInfra']()&&(commandRepository['isSelfHealEnabled']()||globals[_0x289952(0x108)](_0x5b7c44[_0x289952(0x105)]))&&_0x5b7c44[_0x289952(0xf0)](_0x546f47[_0x289952(0x126)],_0x5b7c44[_0x289952(0xe7)])&&!_0x546f47[_0x289952(0x102)]&&globals[_0x289952(0x108)](_0x5b7c44['qeGvf'])&&globals[_0x289952(0x108)](_0x5b7c44[_0x289952(0x106)])){const _0x391c7b=new Date(),_0x25bf91=PerformanceTester[_0x289952(0xef)](_0x5b7c44[_0x289952(0x113)],async()=>{const _0x2ce2cd=_0x289952;return await aiSdkWrapper[_0x2ce2cd(0x13d)](_0x49e6cf,_0x2ae9a3,_0x546f47);});await _0x5b7c44['SbCEv'](_0x25bf91);}},{'command':_0x546f47[_0x1a056f(0x126)]})(),_0x3b2b91;}catch(_0x590140){await PerformanceTester['measureWrapper'](PerformanceDriverEvents['POST_EXECUTE'],async()=>{const _0x5176dc=_0x1a056f;logger['debug'](_0x442e85[_0x5176dc(0x148)]);try{if(!helper[_0x5176dc(0xe6)]()&&(_0x442e85[_0x5176dc(0x14c)](_0x590140[_0x5176dc(0x15d)],_0x442e85[_0x5176dc(0x136)])||_0x442e85[_0x5176dc(0x14c)](_0x590140['name'],_0x442e85['aEQwC']))&&_0x442e85[_0x5176dc(0xf5)](_0x546f47[_0x5176dc(0x126)],_0x442e85['iGCVj'])&&commandRepository[_0x5176dc(0xea)]()&&globals['getGlobal'](_0x442e85[_0x5176dc(0x137)])&&globals[_0x5176dc(0x108)](_0x442e85['MnhNE'])){_0x442e85['DZtYk'](_0x546f47[_0x5176dc(0x144)][_0x5176dc(0x139)],_0x442e85['uOGgM'])?logger[_0x5176dc(0x168)](_0x442e85[_0x5176dc(0xf7)](_0x442e85[_0x5176dc(0x123)](_0x442e85[_0x5176dc(0x14f)],_0x546f47[_0x5176dc(0x144)]['value']),_0x442e85[_0x5176dc(0xf6)])):logger['info'](_0x442e85[_0x5176dc(0x145)](_0x442e85[_0x5176dc(0xf7)](_0x442e85[_0x5176dc(0x120)](_0x442e85[_0x5176dc(0x132)](_0x442e85[_0x5176dc(0x12f)],_0x546f47['parameters_'][_0x5176dc(0x139)]),':\x20'),_0x546f47['parameters_']['value']),_0x442e85['yFGPT']));const _0x361631=PerformanceTester[_0x5176dc(0xef)](_0x442e85['UCoVz'],async()=>{const _0x55e0ac=_0x5176dc;return await aiSdkWrapper[_0x55e0ac(0x147)](_0x49e6cf,_0x2ae9a3,_0x546f47);}),_0x301608=new Date(),{locatorType:_0x2ced65,locatorValue:_0x1f76e5,commandHealed:_0x52c83d}=await _0x442e85['qagKF'](_0x361631);if(_0x442e85[_0x5176dc(0x131)](_0x2ced65,_0x1f76e5)){_0x546f47[_0x5176dc(0x144)][_0x5176dc(0x139)]=_0x2ced65,_0x546f47[_0x5176dc(0x144)][_0x5176dc(0x10a)]=_0x1f76e5,_0x546f47['skipHealingSuccess']=!![];const _0x9cd46e=_0x2ae9a3[_0x5176dc(0x112)](_0x546f47);return _0x442e85[_0x5176dc(0x14c)](_0x2ced65,_0x442e85['uOGgM'])?logger[_0x5176dc(0x168)](_0x442e85[_0x5176dc(0x120)](_0x442e85[_0x5176dc(0x14a)],_0x1f76e5)):logger[_0x5176dc(0x168)](_0x442e85[_0x5176dc(0x132)](_0x442e85[_0x5176dc(0x13a)](_0x442e85['eJQbT'](_0x442e85['mcDSl'],_0x2ced65),':\x20'),_0x1f76e5)),_0x9cd46e;}else!_0x52c83d&&(_0x442e85[_0x5176dc(0x114)](_0x2ced65,_0x442e85[_0x5176dc(0x10b)])?logger[_0x5176dc(0x168)](_0x442e85[_0x5176dc(0x13a)](_0x442e85[_0x5176dc(0x15e)],_0x546f47['parameters_'][_0x5176dc(0x10a)])):logger[_0x5176dc(0x168)](_0x442e85[_0x5176dc(0x120)](_0x442e85[_0x5176dc(0x120)](_0x442e85['TxzYy'](_0x442e85[_0x5176dc(0x140)],_0x546f47[_0x5176dc(0x144)][_0x5176dc(0x139)]),':\x20'),_0x546f47['parameters_']['value'])));}!_0x3b5af6&&_0x442e85['abmJA'](_0x546f47[_0x5176dc(0x126)],_0x442e85['KACen'])&&helper['nestedKeyValue'](_0x546f47,[_0x442e85[_0x5176dc(0x150)],_0x442e85[_0x5176dc(0xf8)]])&&!!constants['NUDGE_LOCAL_ERRORS']['find'](_0x53ad5e=>{const _0x4d4cbb=_0x5176dc;return _0x590140['toString']()[_0x4d4cbb(0xfc)](_0x53ad5e);})&&helper[_0x5176dc(0xfd)](_0x546f47[_0x5176dc(0x144)][_0x5176dc(0xe9)],!![]);}catch(_0x5718a5){logger['debug'](_0x442e85['utVZf'],_0x5718a5);}},{'success':![],'failure':_0x590140})();throw _0x590140;}};};
|
|
1
|
+
function a139_0xb129(_0x912415,_0x2ba4ee){const _0x3d0233=a139_0x3d02();return a139_0xb129=function(_0xb129d6,_0x4f5bfd){_0xb129d6=_0xb129d6-0xdd;let _0x22f2ba=_0x3d0233[_0xb129d6];return _0x22f2ba;},a139_0xb129(_0x912415,_0x2ba4ee);}const a139_0x310d61=a139_0xb129;function a139_0x3d02(){const _0x185d06=['isSelfHealEnabled','pSGzV','1890700zSkhcB','YFKYF','format','debug','getSession','wSGPv','YqtsX','BjyIw','CYzyF','fOxVm','includes','ZdfLj','lvJGS','robcy','name_','body','mxekD','aiHeal:findElementSuccess','TOZNW','handleFailure','aiHeal:findElementFailure','zHYjv','JavascriptError','lfFAN',';\x20Trying\x20to\x20heal','nestedKeyValue','parameters_','OKiGY','message','Oyvub','6YhqHCa','getNudgeLocalNotSetError','RcBRA','2378676KYfUph','hybKP','jzeBP','vYVJW','LtKdg','KQmCM','eqaPK','aiHeal_isHealingEnabled','AKrMX','value','oSpZO','setTcgToken','script','url','chBcF','setAiSessionTimeStamp','parameters','289897bcwZRH','AUTOMATION_LOG_COMMANDS','sDAzA','SIVGi','find','info','bstack:options','YITDh','AakFy','overrideExecute','./logger','browserstack.local','JQiMn','zhHGc','aiHeal_isAuthenticated','Error\x20in\x20handling\x20TCG\x20Auth:\x20','wWwVI','string','ouYBt','POST_EXECUTE','][\x20SDK-AUTOMATION\x20]\x20','css\x20selector','patchExecute','NUDGE_LOCAL_ERRORS','Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','inaBL','getGlobal','NoSuchElementError','aiSdk_defaultLogDataEnabled','zjDLo','PLbyP','cpJgX','getTcgTokenStatus','name','wqOaL','OJsQi','Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','ATDaS','response','Ydwrk','Successfully\x20healed\x20command\x20using\x20new\x20','Healing\x20failed\x20for\x20command\x20using\x20','../bin/utils/constants','handleSuccess','silly','./ai-sdk/autoHealHelper','prtRb','executeAsyncScript','toString','8FuGNpy','1145266IhJMwz','getId','Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','isBrowserstackInfra','Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20','2106174CBSwOA','PRE_EXECUTE','util','initExecute','1868295BDybOS','7434261zcGrpD','LgwPY','./helper','local','Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','geiIj','LpOeq','using','toISOString','skipHealingSuccess','YowtB','CqWdA','execute','dYrHg','SDtSQ','FuSUw','findElement\x20command\x20failed\x20with\x20cssPath:\x20','RlPlb','HXhzq','measureWrapper','NkKEG','WEUCO','executeScript'];a139_0x3d02=function(){return _0x185d06;};return a139_0x3d02();}(function(_0x307c69,_0x559e0c){const _0x301035=a139_0xb129,_0x19a0e7=_0x307c69();while(!![]){try{const _0x10cd00=parseInt(_0x301035(0xe3))/0x1+-parseInt(_0x301035(0x115))/0x2+-parseInt(_0x301035(0x11e))/0x3+parseInt(_0x301035(0x159))/0x4+-parseInt(_0x301035(0x138))/0x5+parseInt(_0x301035(0x156))/0x6*(parseInt(_0x301035(0x11a))/0x7)+parseInt(_0x301035(0x114))/0x8*(parseInt(_0x301035(0x11f))/0x9);if(_0x10cd00===_0x559e0c)break;else _0x19a0e7['push'](_0x19a0e7['shift']());}catch(_0x3e873a){_0x19a0e7['push'](_0x19a0e7['shift']());}}}(a139_0x3d02,0x6aeb3));const {aiSdkWrapper}=require('./ai-sdk/aiSdkWrapper'),{commandRepository}=require(a139_0x310d61(0x110)),PerformanceTester=require('./performance/performance-tester'),globals=require('./globals'),{winstonLogger:logger,automationLogger}=require(a139_0x310d61(0xed)),helper=require(a139_0x310d61(0x121)),constants=require(a139_0x310d61(0x10d)),{DRIVER_EVENT:PerformanceDriverEvents}=require('./performance/constants'),util=require(a139_0x310d61(0x11c));exports[a139_0x310d61(0xec)]=(_0x283603,_0x3ba7df)=>{const _0x56c122=a139_0x310d61,_0x5c7871={'cpJgX':_0x56c122(0xff),'iZIpt':function(_0x2fa753,_0x55d05a){return _0x2fa753===_0x55d05a;},'LpOeq':'findElement','CqWdA':_0x56c122(0xf1),'AakFy':_0x56c122(0x160),'CYzyF':_0x56c122(0x149),'RlPlb':function(_0x4d1a33){return _0x4d1a33();},'NkKEG':'aiHeal:setToken','fOxVm':function(_0x55b225){return _0x55b225();},'sDAzA':_0x56c122(0xfb),'OKiGY':function(_0x25b888,_0x87d04d){return _0x25b888===_0x87d04d;},'DIEJw':_0x56c122(0xfe),'TOZNW':function(_0x591b93,_0x2e7adf){return _0x591b93===_0x2e7adf;},'LtKdg':_0x56c122(0x14e),'YFKYF':function(_0x17ebe1,_0x445a85){return _0x17ebe1===_0x445a85;},'uIrAw':_0x56c122(0xf8),'robcy':function(_0x66a8e2,_0x9567c2){return _0x66a8e2+_0x9567c2;},'aLyZP':_0x56c122(0x12f),'WEUCO':_0x56c122(0x150),'MREoT':function(_0x3472e4,_0x4704f8){return _0x3472e4+_0x4704f8;},'vYVJW':function(_0xfedd65,_0x13e9d4){return _0xfedd65+_0x13e9d4;},'OJsQi':'findElement\x20command\x20failed\x20with\x20','YqtsX':_0x56c122(0x14c),'ATDaS':function(_0x417e27,_0x454673){return _0x417e27&&_0x454673;},'JQiMn':_0x56c122(0x117),'lvJGS':_0x56c122(0x10b),'Pdzzv':_0x56c122(0x107),'mxekD':_0x56c122(0x10c),'qihDZ':'get','PLbyP':_0x56c122(0x152),'wSGPv':_0x56c122(0xdf),'zHYjv':_0x56c122(0x123),'Oyvub':function(_0xc45c8,_0xdc52bd){return _0xc45c8===_0xdc52bd;},'chBcF':_0x56c122(0x112),'RcBRA':function(_0x4f7810,_0x3205b6){return _0x4f7810===_0x3205b6;},'LWAUH':_0x56c122(0x135),'eztEZ':_0x56c122(0xf4),'wqOaL':'capability','kQZGW':_0x56c122(0xee),'zKTDI':_0x56c122(0xe9),'KQmCM':_0x56c122(0x122)},_0x4b5acb=_0x283603[_0x56c122(0xf9)]||(helper[_0x56c122(0x151)](_0x3ba7df,[_0x5c7871[_0x56c122(0x105)],_0x5c7871['kQZGW']])||helper[_0x56c122(0x151)](_0x3ba7df,[_0x5c7871[_0x56c122(0x105)],_0x5c7871['zKTDI'],_0x5c7871[_0x56c122(0x15e)]]));if(!globals['getGlobal'](_0x5c7871[_0x56c122(0x12a)])&&!globals[_0x56c122(0xfd)](_0x5c7871[_0x56c122(0xeb)])&&_0x4b5acb)return;_0x283603['patchExecute']=!![],_0x283603[_0x56c122(0x11d)]=_0x283603[_0x56c122(0x12b)],_0x283603[_0x56c122(0x12b)]=async _0x3dcb73=>{const _0x6c19f6=_0x56c122,_0x2b058c={'zhHGc':_0x5c7871[_0x6c19f6(0x12a)],'prtRb':_0x5c7871[_0x6c19f6(0x133)],'hybKP':function(_0x505dc6){const _0x645d9=_0x6c19f6;return _0x5c7871[_0x645d9(0x141)](_0x505dc6);},'BjyIw':_0x5c7871[_0x6c19f6(0xe5)],'inaBL':function(_0x1bfe52,_0x557f5e){const _0x4002e8=_0x6c19f6;return _0x5c7871[_0x4002e8(0x153)](_0x1bfe52,_0x557f5e);},'GESDB':_0x5c7871['DIEJw'],'dYrHg':function(_0x2ee07d,_0x5d48c4){const _0x58b21a=_0x6c19f6;return _0x5c7871[_0x58b21a(0x14a)](_0x2ee07d,_0x5d48c4);},'ESdzL':_0x5c7871[_0x6c19f6(0x15d)],'MQJdH':function(_0x56aedb,_0x3300a5){const _0x1e4a27=_0x6c19f6;return _0x5c7871[_0x1e4a27(0x139)](_0x56aedb,_0x3300a5);},'YITDh':_0x5c7871[_0x6c19f6(0x125)],'oSpZO':_0x5c7871[_0x6c19f6(0xeb)],'eqaPK':_0x5c7871['uIrAw'],'AKrMX':function(_0x5c0813,_0x2447d1){const _0x4c8a1d=_0x6c19f6;return _0x5c7871[_0x4c8a1d(0x145)](_0x5c0813,_0x2447d1);},'ZdfLj':_0x5c7871['aLyZP'],'HXhzq':_0x5c7871[_0x6c19f6(0x134)],'jzeBP':function(_0x161e5e,_0x1c7016){return _0x5c7871['robcy'](_0x161e5e,_0x1c7016);},'FuSUw':function(_0x5eac78,_0xee5195){return _0x5c7871['MREoT'](_0x5eac78,_0xee5195);},'YowtB':function(_0x3bc197,_0x6f6f50){const _0x3ad60b=_0x6c19f6;return _0x5c7871[_0x3ad60b(0x15c)](_0x3bc197,_0x6f6f50);},'pSGzV':_0x5c7871[_0x6c19f6(0x106)],'kmcDA':_0x5c7871[_0x6c19f6(0x13e)],'oGfXL':function(_0x2e782d,_0x2f60c2){const _0x4bc5b9=_0x6c19f6;return _0x5c7871[_0x4bc5b9(0x108)](_0x2e782d,_0x2f60c2);},'SDtSQ':function(_0x1475fe,_0x5de74d){return _0x5c7871['MREoT'](_0x1475fe,_0x5de74d);},'TwIwO':_0x5c7871[_0x6c19f6(0xef)],'NYzaa':function(_0x2053c7,_0x43f9c5){return _0x5c7871['MREoT'](_0x2053c7,_0x43f9c5);},'LgwPY':function(_0x57b1e9,_0x2073f5){return _0x5c7871['MREoT'](_0x57b1e9,_0x2073f5);},'ouYBt':_0x5c7871[_0x6c19f6(0x144)],'wWwVI':_0x5c7871['Pdzzv'],'zjDLo':_0x5c7871[_0x6c19f6(0x148)],'Ydwrk':function(_0x49a755,_0x505eb3){const _0x491c1b=_0x6c19f6;return _0x5c7871[_0x491c1b(0x139)](_0x49a755,_0x505eb3);},'geiIj':_0x5c7871['qihDZ'],'lfFAN':_0x5c7871[_0x6c19f6(0x101)],'SIVGi':_0x5c7871[_0x6c19f6(0x13d)],'FCpIa':_0x5c7871[_0x6c19f6(0x14d)]};try{const _0x38513b={};_0x38513b['command']=_0x3dcb73[_0x6c19f6(0x146)],await PerformanceTester['measureWrapper'](PerformanceDriverEvents[_0x6c19f6(0x11b)],async()=>{const _0x485a1f=_0x6c19f6;if(!commandRepository[_0x485a1f(0x103)]()&&globals[_0x485a1f(0xfd)](_0x2b058c[_0x485a1f(0xf0)])){const _0x1a42b6=PerformanceTester[_0x485a1f(0x132)](_0x2b058c[_0x485a1f(0x111)],async()=>{const _0x13a233=_0x485a1f;try{commandRepository['setTcgTokenStatus'](!![]),await aiSdkWrapper[_0x13a233(0xdd)]((await _0x283603[_0x13a233(0x13c)]())[_0x13a233(0x116)]());const _0x445458=globals[_0x13a233(0xfd)](_0x2b058c[_0x13a233(0xf0)]);_0x445458&&commandRepository[_0x13a233(0xe1)]((await _0x283603[_0x13a233(0x13c)]())[_0x13a233(0x116)]());}catch(_0x1eb328){logger['error'](_0x13a233(0xf2)+_0x1eb328);}});await _0x2b058c[_0x485a1f(0x15a)](_0x1a42b6);}},_0x38513b)();const _0x59bf48=await _0x283603[_0x6c19f6(0x11d)](_0x3dcb73);try{if(_0x5c7871[_0x6c19f6(0x155)](_0x3dcb73[_0x6c19f6(0x146)],_0x5c7871[_0x6c19f6(0xe0)])||_0x5c7871[_0x6c19f6(0x158)](_0x3dcb73['name_'],_0x5c7871['LWAUH'])){const _0x3f4b67=_0x3dcb73[_0x6c19f6(0x152)]&&_0x3dcb73[_0x6c19f6(0x152)][_0x6c19f6(0xde)],_0x33e4f5=_0x3dcb73[_0x6c19f6(0x152)]&&_0x3dcb73[_0x6c19f6(0x152)]['args'],_0xb3582d=_0x33e4f5&&util[_0x6c19f6(0x13a)]('%j',_0x33e4f5);if(_0x3f4b67&&_0x5c7871[_0x6c19f6(0x158)](typeof _0x3f4b67,_0x5c7871['eztEZ'])){const _0xb0b704=constants[_0x6c19f6(0xe4)][_0x6c19f6(0xe7)](_0x48624d=>_0x3f4b67[_0x6c19f6(0x142)](_0x48624d)||_0xb3582d&&_0xb3582d['includes'](_0x48624d));if(_0xb0b704){const _0xb64092={};_0xb64092['command']=_0xb0b704,_0xb64092[_0x6c19f6(0xe2)]=_0x33e4f5;const _0xad036b={};_0xad036b[_0x6c19f6(0x147)]=_0x59bf48;const _0x21f143={};_0x21f143['request']=_0xb64092,_0x21f143[_0x6c19f6(0x109)]=_0xad036b,automationLogger[_0x6c19f6(0x10f)]('['+new Date()[_0x6c19f6(0x127)]()+_0x6c19f6(0xf7)+util[_0x6c19f6(0x13a)]('%j',_0x21f143));}}}}catch(_0x3e1652){logger[_0x6c19f6(0x10f)](_0x6c19f6(0x119)+_0x3e1652[_0x6c19f6(0x154)]);}return await PerformanceTester['measureWrapper'](PerformanceDriverEvents[_0x6c19f6(0xf6)],async()=>{const _0x100334=_0x6c19f6;if(!helper[_0x100334(0x118)]()&&(commandRepository[_0x100334(0x136)]()||globals[_0x100334(0xfd)](_0x5c7871[_0x100334(0x102)]))&&_0x5c7871['iZIpt'](_0x3dcb73[_0x100334(0x146)],_0x5c7871[_0x100334(0x125)])&&!_0x3dcb73[_0x100334(0x128)]&&globals['getGlobal'](_0x5c7871[_0x100334(0x12a)])&&globals[_0x100334(0xfd)](_0x5c7871[_0x100334(0xeb)])){const _0x4e3491=new Date(),_0x4c03a8=PerformanceTester[_0x100334(0x132)](_0x5c7871[_0x100334(0x140)],async()=>{const _0x2991ce=_0x100334;return await aiSdkWrapper[_0x2991ce(0x10e)](_0x3ba7df,_0x283603,_0x3dcb73);});await _0x5c7871[_0x100334(0x130)](_0x4c03a8);}},{'command':_0x3dcb73[_0x6c19f6(0x146)]})(),_0x59bf48;}catch(_0x5891fa){await PerformanceTester[_0x6c19f6(0x132)](PerformanceDriverEvents['POST_EXECUTE'],async()=>{const _0x1b35a9=_0x6c19f6;logger[_0x1b35a9(0x13b)](_0x2b058c[_0x1b35a9(0x13f)]);try{if(!helper[_0x1b35a9(0x118)]()&&(_0x2b058c[_0x1b35a9(0xfc)](_0x5891fa['name'],_0x2b058c['GESDB'])||_0x2b058c[_0x1b35a9(0x12c)](_0x5891fa[_0x1b35a9(0x104)],_0x2b058c['ESdzL']))&&_0x2b058c['MQJdH'](_0x3dcb73['name_'],_0x2b058c[_0x1b35a9(0xea)])&&commandRepository['isSelfHealEnabled']()&&globals[_0x1b35a9(0xfd)](_0x2b058c[_0x1b35a9(0xf0)])&&globals[_0x1b35a9(0xfd)](_0x2b058c[_0x1b35a9(0x163)])){_0x2b058c[_0x1b35a9(0xfc)](_0x3dcb73['parameters_'][_0x1b35a9(0x126)],_0x2b058c[_0x1b35a9(0x15f)])?logger[_0x1b35a9(0xe8)](_0x2b058c['AKrMX'](_0x2b058c[_0x1b35a9(0x161)](_0x2b058c[_0x1b35a9(0x143)],_0x3dcb73[_0x1b35a9(0x152)][_0x1b35a9(0x162)]),_0x2b058c['HXhzq'])):logger[_0x1b35a9(0xe8)](_0x2b058c[_0x1b35a9(0x15b)](_0x2b058c[_0x1b35a9(0x15b)](_0x2b058c[_0x1b35a9(0x12e)](_0x2b058c[_0x1b35a9(0x129)](_0x2b058c[_0x1b35a9(0x137)],_0x3dcb73['parameters_']['using']),':\x20'),_0x3dcb73[_0x1b35a9(0x152)]['value']),_0x2b058c[_0x1b35a9(0x131)]));const _0x581874=PerformanceTester[_0x1b35a9(0x132)](_0x2b058c['kmcDA'],async()=>{const _0x4ffd8f=_0x1b35a9;return await aiSdkWrapper[_0x4ffd8f(0x14b)](_0x3ba7df,_0x283603,_0x3dcb73);}),_0x3088d4=new Date(),{locatorType:_0x1370e8,locatorValue:_0x4bf9dc,commandHealed:_0x2664ae}=await _0x2b058c['hybKP'](_0x581874);if(_0x2b058c['oGfXL'](_0x1370e8,_0x4bf9dc)){_0x3dcb73['parameters_'][_0x1b35a9(0x126)]=_0x1370e8,_0x3dcb73[_0x1b35a9(0x152)][_0x1b35a9(0x162)]=_0x4bf9dc,_0x3dcb73[_0x1b35a9(0x128)]=!![];const _0x4fbbeb=_0x283603[_0x1b35a9(0x12b)](_0x3dcb73);return _0x2b058c[_0x1b35a9(0xfc)](_0x1370e8,_0x2b058c[_0x1b35a9(0x15f)])?logger[_0x1b35a9(0xe8)](_0x2b058c[_0x1b35a9(0x12d)](_0x2b058c['TwIwO'],_0x4bf9dc)):logger[_0x1b35a9(0xe8)](_0x2b058c['NYzaa'](_0x2b058c['LgwPY'](_0x2b058c[_0x1b35a9(0x120)](_0x2b058c[_0x1b35a9(0xf5)],_0x1370e8),':\x20'),_0x4bf9dc)),_0x4fbbeb;}else!_0x2664ae&&(_0x2b058c[_0x1b35a9(0x12c)](_0x1370e8,_0x2b058c[_0x1b35a9(0x15f)])?logger[_0x1b35a9(0xe8)](_0x2b058c[_0x1b35a9(0x12d)](_0x2b058c[_0x1b35a9(0xf3)],_0x3dcb73[_0x1b35a9(0x152)][_0x1b35a9(0x162)])):logger[_0x1b35a9(0xe8)](_0x2b058c['YowtB'](_0x2b058c[_0x1b35a9(0x161)](_0x2b058c[_0x1b35a9(0x129)](_0x2b058c[_0x1b35a9(0x100)],_0x3dcb73[_0x1b35a9(0x152)][_0x1b35a9(0x126)]),':\x20'),_0x3dcb73[_0x1b35a9(0x152)][_0x1b35a9(0x162)])));}!_0x4b5acb&&_0x2b058c[_0x1b35a9(0x10a)](_0x3dcb73[_0x1b35a9(0x146)],_0x2b058c[_0x1b35a9(0x124)])&&helper['nestedKeyValue'](_0x3dcb73,[_0x2b058c[_0x1b35a9(0x14f)],_0x2b058c[_0x1b35a9(0xe6)]])&&!!constants[_0x1b35a9(0xfa)][_0x1b35a9(0xe7)](_0x805f7=>{const _0x43df2c=_0x1b35a9;return _0x5891fa[_0x43df2c(0x113)]()['includes'](_0x805f7);})&&helper[_0x1b35a9(0x157)](_0x3dcb73['parameters_'][_0x1b35a9(0xdf)],!![]);}catch(_0xd346c5){logger[_0x1b35a9(0x13b)](_0x2b058c['FCpIa'],_0xd346c5);}},{'success':![],'failure':_0x5891fa})();throw _0x5891fa;}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a140_0x504d72=a140_0x2956;function a140_0x5112(){const _0x5764e5=['2581132UPxjxZ','./performance/performance-tester','1922535NwAPVS','initQuit','O11y_EVENTS','catch','quit','pid','WBlng','6215853qjMEDS','ScvwE','nbBXX','patchQuit','quitCount_','takeScreenshot','true','then','./performance/constants','mNoOS','HyhZt','TAKE_SCREENSHOT','BS_TESTOPS_ALLOW_SCREENSHOTS','end','bBpuf','TEST_SCREENSHOT','137DTOMEz','408681kjXWYM','emit','bs:addLog:','2846520PsBYAg','initScreenshot','patchScreenshot','1430994fiUldA','HYOzg','env','136JUDKJf','GMTCs','toISOString','1912mJsmhS'];a140_0x5112=function(){return _0x5764e5;};return a140_0x5112();}(function(_0xdf03d4,_0x6d118f){const _0x28cbe9=a140_0x2956,_0x3e44a5=_0xdf03d4();while(!![]){try{const _0x45dabb=parseInt(_0x28cbe9(0xc9))/0x1*(parseInt(_0x28cbe9(0xd6))/0x2)+parseInt(_0x28cbe9(0xd9))/0x3+parseInt(_0x28cbe9(0xd7))/0x4+parseInt(_0x28cbe9(0xcd))/0x5+parseInt(_0x28cbe9(0xd0))/0x6+-parseInt(_0x28cbe9(0xe0))/0x7+parseInt(_0x28cbe9(0xd3))/0x8*(-parseInt(_0x28cbe9(0xca))/0x9);if(_0x45dabb===_0x6d118f)break;else _0x3e44a5['push'](_0x3e44a5['shift']());}catch(_0x2f5d9c){_0x3e44a5['push'](_0x3e44a5['shift']());}}}(a140_0x5112,0x89eeb));function a140_0x2956(_0x3494ef,_0x24b572){const _0x5112e0=a140_0x5112();return a140_0x2956=function(_0x29562a,_0xdc843c){_0x29562a=_0x29562a-0xc4;let _0x5a92ea=_0x5112e0[_0x29562a];return _0x5a92ea;},a140_0x2956(_0x3494ef,_0x24b572);}const PerformanceTester=require(a140_0x504d72(0xd8)),O11yEvents=require(a140_0x504d72(0xe8))[a140_0x504d72(0xdb)];exports['overrideTakeScreenshot']=_0x2a9be1=>{const _0x5bbf5d=a140_0x504d72,_0x59ee61={'bBpuf':_0x5bbf5d(0xc8),'dhVFw':function(_0x4a1988,_0x420445){return _0x4a1988(_0x420445);},'HyhZt':function(_0x40cecd,_0x5a2a9d){return _0x40cecd!==_0x5a2a9d;},'GMTCs':_0x5bbf5d(0xe6)};if(_0x59ee61[_0x5bbf5d(0xea)](process[_0x5bbf5d(0xd2)][_0x5bbf5d(0xc5)],_0x59ee61[_0x5bbf5d(0xd4)]))return;if(_0x2a9be1[_0x5bbf5d(0xcf)])return;_0x2a9be1[_0x5bbf5d(0xcf)]=!![],_0x2a9be1[_0x5bbf5d(0xce)]=_0x2a9be1[_0x5bbf5d(0xe5)],_0x2a9be1['takeScreenshot']=()=>{const _0x201f1a=_0x5bbf5d,_0x281f44={'bsveN':_0x59ee61[_0x201f1a(0xc7)],'iKYNO':function(_0x194eb5,_0x35e01b){return _0x59ee61['dhVFw'](_0x194eb5,_0x35e01b);},'nbBXX':function(_0x4d4f89,_0x2305b6){return _0x59ee61['dhVFw'](_0x4d4f89,_0x2305b6);}};return new Promise(function(_0x1e618b,_0x58dcfa){const _0x5fe5b8=_0x201f1a,_0x592e8b={'ScvwE':function(_0xc9e48e,_0x415337){const _0x3ed9ef=a140_0x2956;return _0x281f44[_0x3ed9ef(0xe2)](_0xc9e48e,_0x415337);}};_0x2a9be1[_0x5fe5b8(0xce)]()[_0x5fe5b8(0xe7)](_0x3fb1c6=>{const _0x4623c0=_0x5fe5b8;PerformanceTester['start'](O11yEvents[_0x4623c0(0xc4)]),process[_0x4623c0(0xcb)](_0x4623c0(0xcc)+process[_0x4623c0(0xde)],{'timestamp':new Date()[_0x4623c0(0xd5)](),'message':_0x3fb1c6,'kind':_0x281f44['bsveN']}),_0x281f44['iKYNO'](_0x1e618b,_0x3fb1c6),PerformanceTester[_0x4623c0(0xc6)](O11yEvents[_0x4623c0(0xc4)]);})[_0x5fe5b8(0xdc)](_0x2b1fa9=>{const _0x4dcbb4=_0x5fe5b8;PerformanceTester[_0x4dcbb4(0xc6)](O11yEvents[_0x4dcbb4(0xc4)]),_0x592e8b[_0x4dcbb4(0xe1)](_0x58dcfa,_0x2b1fa9);});});};},exports['overrideQuit']=(_0x4362e5,_0x219395=null)=>{const _0x39c88e=a140_0x504d72,_0x4ccde5={'WBlng':function(_0x5f2319){return _0x5f2319();},'HYOzg':function(_0x121d41,_0x49e844){return _0x121d41>_0x49e844;},'mNoOS':function(_0x1962d9,_0x1f958b){return _0x1962d9>_0x1f958b;}};if(_0x4362e5[_0x39c88e(0xe3)])return;_0x4362e5[_0x39c88e(0xe3)]=!![],_0x4362e5['initQuit']=_0x4362e5[_0x39c88e(0xdd)],_0x4362e5[_0x39c88e(0xdd)]=()=>{const _0x4ed1fc=_0x39c88e;if(_0x219395){_0x219395[_0x4ed1fc(0xe4)]+=0x1;if(_0x4ccde5[_0x4ed1fc(0xd1)](_0x219395['quitCount_'],0x1))return _0x4362e5[_0x4ed1fc(0xda)]();}else{_0x4362e5['quitCount_']+=0x1;if(_0x4ccde5[_0x4ed1fc(0xe9)](_0x4362e5[_0x4ed1fc(0xe4)],0x1))return _0x4362e5[_0x4ed1fc(0xda)]();}return new Promise(function(_0x3dd63a){const _0x1cce33=_0x4ed1fc;_0x4ccde5[_0x1cce33(0xdf)](_0x3dd63a);});};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a141_0x129b(_0x2fd7aa,_0x30e3b0){const _0x1e228b=a141_0x1e22();return a141_0x129b=function(_0x129bf8,_0x2d48f4){_0x129bf8=_0x129bf8-0xb3;let _0x1d06d9=_0x1e228b[_0x129bf8];return _0x1d06d9;},a141_0x129b(_0x2fd7aa,_0x30e3b0);}const a141_0x317113=a141_0x129b;(function(_0x560e83,_0x29e176){const _0x500d20=a141_0x129b,_0x457f47=_0x560e83();while(!![]){try{const _0x17ca96=parseInt(_0x500d20(0xbb))/0x1*(parseInt(_0x500d20(0xd5))/0x2)+parseInt(_0x500d20(0xb6))/0x3*(-parseInt(_0x500d20(0xee))/0x4)+parseInt(_0x500d20(0xbc))/0x5*(parseInt(_0x500d20(0xc2))/0x6)+parseInt(_0x500d20(0xda))/0x7*(parseInt(_0x500d20(0xc5))/0x8)+-parseInt(_0x500d20(0xf7))/0x9*(-parseInt(_0x500d20(0xce))/0xa)+parseInt(_0x500d20(0xf5))/0xb+-parseInt(_0x500d20(0xd4))/0xc;if(_0x17ca96===_0x29e176)break;else _0x457f47['push'](_0x457f47['shift']());}catch(_0x13e347){_0x457f47['push'](_0x457f47['shift']());}}}(a141_0x1e22,0xae3b0));function a141_0x1e22(){const _0x71db4f=['app:exec','330RLLDaN','api/app_percy/get_project_token?name=','NSuxM','percy.log','BROWSERSTACK_TESTHUB_UUID','1ZWFYzX','4092635mSSSXK','end','createPercyConfig','jTKXS','stringify','pipe','6MNozkl','healthcheck','percy.json','10216aKRZea','start','ENV_VAR','app','itDJn','percy/healthcheck','mcqqv','child_process','http://localhost:5338','12772580mxPXrF','percyOptions','MzVTp','Percy\x20fetch\x20token\x20success','debug','DTiMd','30914820vTXlYk','54828lWtbpy','token','tmpdir','../../helpers/performance/constants','stderr','3192VVRcmS','stdout','close','exec','createWriteStream','isProcessRunning','exec:stop','giHoS','Percy\x20healthcheck\x20successful','../../helpers/performance/performance-tester','DOWNLOAD','BilYs','error','assign','path','wsnnZ','push','nodeRequest','UBAxD','uwlep','23268smnTqW','MRmrV','&type=','version','../logger','kGxtt','fetchPercyToken','13466662HYoKwc','tEnzS','9xcSGXo','join','env','GET'];a141_0x1e22=function(){return _0x71db4f;};return a141_0x1e22();}const fs=require('fs'),path=require(a141_0x317113(0xe8)),os=require('os'),{spawn}=require(a141_0x317113(0xcc)),helper=require('../helper'),logger=require(a141_0x317113(0xf2))['winstonLogger'],{getLogDir}=require(a141_0x317113(0xf2)),testHubConstants=require('../../helpers/testhub/constants'),PerformanceTester=require(a141_0x317113(0xe3)),{PERCY_EVENTS:PerformanceEvents}=require(a141_0x317113(0xd8)),PercyBinary=require('./PercyBinary');class Percy{#logfile=path[a141_0x317113(0xf8)](getLogDir(),a141_0x317113(0xb9));#address=process['env']['PERCY_SERVER_ADDRESS']||a141_0x317113(0xcd);#binaryPath=null;#config=null;#proc=null;#logStream=null;#isApp=![];[a141_0x317113(0xdf)]=![];constructor(_0x48a58a){const _0x4f991d=a141_0x317113;this.#config=_0x48a58a,!!_0x48a58a[_0x4f991d(0xc8)]&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x50188a=a141_0x317113;if(!this.#binaryPath){const _0x2c8781=new PercyBinary();PerformanceTester[_0x50188a(0xc6)](PerformanceEvents['DOWNLOAD']),this.#binaryPath=await _0x2c8781['getBinaryPath'](this.#config),PerformanceTester[_0x50188a(0xbd)](PerformanceEvents[_0x50188a(0xe4)]);}return this.#binaryPath;}async #sleep(_0x1046d7){return new Promise(_0xd8d8bf=>setTimeout(_0xd8d8bf,_0x1046d7));}async['healthcheck'](){const _0x3f6443=a141_0x317113,_0x5bde86={};_0x5bde86['AZTZk']=_0x3f6443(0xb4),_0x5bde86['tEnzS']=_0x3f6443(0xca);const _0x4713cf=_0x5bde86;try{const _0x877b35=await helper[_0x3f6443(0xeb)](_0x4713cf['AZTZk'],_0x4713cf[_0x3f6443(0xf6)],null,null,this.#address);if(_0x877b35)return!![];}catch(_0x555cf9){return![];}}async[a141_0x317113(0xc6)](){const _0x73f000=a141_0x317113,_0x4280fd={'VjwAI':_0x73f000(0xb5),'itDJn':_0x73f000(0xdd),'uwlep':function(_0x46defb,_0x3f3b09,_0x248ddb,_0x1123a5){return _0x46defb(_0x3f3b09,_0x248ddb,_0x1123a5);},'IuvmW':_0x73f000(0xdc),'PcCfH':_0x73f000(0xe2)},_0x2371ac=await this.#getBinaryPath(),_0x403ba8={};_0x403ba8['flags']='a',this.#logStream=fs[_0x73f000(0xde)](this.#logfile,_0x403ba8);const _0x225474=await this['fetchPercyToken'](),_0x39cc92=await this[_0x73f000(0xbe)]();if(!_0x225474)return![];const _0x22ed01=[(this.#isApp?_0x4280fd['VjwAI']:_0x4280fd[_0x73f000(0xc9)])+':start'];_0x39cc92&&_0x22ed01[_0x73f000(0xea)]('-c',_0x39cc92);this.#proc=_0x4280fd[_0x73f000(0xed)](spawn,_0x2371ac,_0x22ed01,{'env':Object[_0x73f000(0xe7)](process[_0x73f000(0xb3)],{'PERCY_TOKEN':_0x225474,'TH_BUILD_UUID':process['env'][testHubConstants[_0x73f000(0xc7)][_0x73f000(0xba)]]})}),this.#proc[_0x73f000(0xdb)][_0x73f000(0xc1)](this.#logStream),this.#proc[_0x73f000(0xd9)][_0x73f000(0xc1)](this.#logStream),this[_0x73f000(0xdf)]=!![];var _0x293ae1=this;this.#proc['on'](_0x4280fd['IuvmW'],function(_0x4112cb){const _0x4837e0=_0x73f000;_0x293ae1[_0x4837e0(0xdf)]=![];});do{const _0x5b0f57=await this[_0x73f000(0xc3)]();if(_0x5b0f57)return logger['debug'](_0x4280fd['PcCfH']),!![];await this.#sleep(0x3e8);}while(this[_0x73f000(0xdf)]);return![];}async['stop'](){const _0x4edb15=a141_0x317113,_0x50f338={'wsnnZ':function(_0x52311a,_0x218cef){return _0x52311a(_0x218cef);},'MRmrV':function(_0x3c9832,_0x531e80,_0x54384b){return _0x3c9832(_0x531e80,_0x54384b);},'OuRjt':_0x4edb15(0xe0),'viLmD':_0x4edb15(0xdc)},_0x5eb0ca=await this.#getBinaryPath();return new Promise((_0x4a9bb7,_0x56d3f7)=>{const _0x47e987=_0x4edb15,_0x2ec0fc={'XcDzJ':function(_0x563352,_0x16bf25){const _0x4ade73=a141_0x129b;return _0x50f338[_0x4ade73(0xe9)](_0x563352,_0x16bf25);}},_0x3ae4e5=_0x50f338[_0x47e987(0xef)](spawn,_0x5eb0ca,[_0x50f338['OuRjt']]);_0x3ae4e5['on'](_0x50f338['viLmD'],_0x305436=>{const _0x5eecdd=_0x47e987;this[_0x5eecdd(0xdf)]=![],this.#logStream&&(this.#logStream['end'](),this.#logStream=null),_0x2ec0fc['XcDzJ'](_0x4a9bb7,_0x305436);});});}['isRunning'](){return this['isProcessRunning'];}async[a141_0x317113(0xf4)](){const _0x57a492=a141_0x317113,_0x350044={};_0x350044['BilYs']='app',_0x350044[_0x57a492(0xcb)]='automate',_0x350044[_0x57a492(0xd3)]='GET',_0x350044['MzVTp']=_0x57a492(0xd1);const _0x3f45ba=_0x350044,_0x569565=this.#config['projectName'];try{const _0x2f7d6d=this.#isApp?_0x3f45ba[_0x57a492(0xe5)]:_0x3f45ba['mcqqv'],_0x463d37=await helper[_0x57a492(0xeb)](_0x3f45ba[_0x57a492(0xd3)],_0x57a492(0xb7)+_0x569565+_0x57a492(0xf0)+_0x2f7d6d,{},this.#config),_0xc78e2=_0x463d37['data'];return logger[_0x57a492(0xd2)](_0x3f45ba[_0x57a492(0xd0)]),_0xc78e2[_0x57a492(0xd6)];}catch(_0x3b4733){return logger[_0x57a492(0xe6)]('Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20'+_0x3b4733),null;}}async['createPercyConfig'](){const _0x329050=a141_0x317113,_0x289bdc={'qrnyA':function(_0x277e72,_0x4c820c){return _0x277e72(_0x4c820c);},'YEgKa':function(_0x169317,_0x4f75b0){return _0x169317+_0x4f75b0;},'NSuxM':'Percy\x20config\x20created\x20at\x20','giHoS':_0x329050(0xc4)};if(!this.#config[_0x329050(0xcf)])return null;const _0x33b9a9=path[_0x329050(0xf8)](os[_0x329050(0xd7)](),_0x289bdc[_0x329050(0xe1)]),_0x165c6c=this.#config['percyOptions'];return!_0x165c6c[_0x329050(0xf1)]&&(_0x165c6c['version']='2'),new Promise((_0x8abb34,_0xcb2485)=>{const _0x35bac7=_0x329050,_0x556d07={'UBAxD':function(_0x4771b8,_0x1627a2){return _0x289bdc['qrnyA'](_0x4771b8,_0x1627a2);},'jTKXS':function(_0x394901,_0x2aff06){return _0x289bdc['YEgKa'](_0x394901,_0x2aff06);},'kGxtt':_0x289bdc[_0x35bac7(0xb8)]};fs['writeFile'](_0x33b9a9,JSON[_0x35bac7(0xc0)](_0x165c6c),_0x479958=>{const _0x5c75a7=_0x35bac7;_0x479958&&(logger[_0x5c75a7(0xe6)]('Error\x20creating\x20percy\x20config:\x20'+_0x479958),_0x556d07['UBAxD'](_0x8abb34,null)),logger[_0x5c75a7(0xd2)](_0x556d07[_0x5c75a7(0xbf)](_0x556d07[_0x5c75a7(0xf3)],_0x33b9a9)),_0x556d07[_0x5c75a7(0xec)](_0x8abb34,_0x33b9a9);});});}}module['exports']=Percy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a142_0xb708(_0x3c9b5c,_0x1021d3){const _0x1a9faf=a142_0x1a9f();return a142_0xb708=function(_0xb708bf,_0x1f9e55){_0xb708bf=_0xb708bf-0x1da;let _0xf38afe=_0x1a9faf[_0xb708bf];return _0xf38afe;},a142_0xb708(_0x3c9b5c,_0x1021d3);}const a142_0x43732b=a142_0xb708;(function(_0x2df0af,_0x444ea3){const _0x4729f2=a142_0xb708,_0x50d707=_0x2df0af();while(!![]){try{const _0x4101a7=parseInt(_0x4729f2(0x273))/0x1*(parseInt(_0x4729f2(0x22d))/0x2)+-parseInt(_0x4729f2(0x271))/0x3*(parseInt(_0x4729f2(0x26f))/0x4)+parseInt(_0x4729f2(0x23a))/0x5*(parseInt(_0x4729f2(0x234))/0x6)+parseInt(_0x4729f2(0x266))/0x7*(parseInt(_0x4729f2(0x25a))/0x8)+parseInt(_0x4729f2(0x21d))/0x9*(-parseInt(_0x4729f2(0x257))/0xa)+-parseInt(_0x4729f2(0x228))/0xb*(-parseInt(_0x4729f2(0x1e2))/0xc)+parseInt(_0x4729f2(0x265))/0xd;if(_0x4101a7===_0x444ea3)break;else _0x50d707['push'](_0x50d707['shift']());}catch(_0x18f267){_0x50d707['push'](_0x50d707['shift']());}}}(a142_0x1a9f,0x38436));function a142_0x1a9f(){const _0x3f7228=['uUYck','ZWkJv','ZJCVJ','Rwdpb','test','yESrC','zYJQT','hDEat','mlEXm','NOgda','100OUdNxf','writeFileSync','Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20','32iRDGYe','download','/root','chmod','Connection','utf8','Saved\x20new\x20ETag\x20for\x20percy\x20binary','PfcjL','https-proxy-agent','accessSync','Error\x20trying\x20to\x20download\x20percy\x20binary','465257rvYBPY','87003OWehsK','pipe','rOhQL','YmDhH','needsUpdate','jxEig','readEntry','cXhin','createWriteStream','4GHADoH','ohbam','87459KWZVrs','port','1ixzOvg','tWoDk','EGLaR','proxyPort','trim','.zip','parse','length','yQweS','187284OHKZXy','JAGFk','destroy','tmpdir','RdlDL','function','close','.browserstack','match','agent','uXLdO','Egmlq','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20','https://github.com/percy/cli/releases/latest/download','openReadStream','RISvj','QKtRO','get','HOME','xUvZh','mkdirSync','/percy-win.zip','join','OfNiE','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)','winstonLogger','binaryPath','ZVcaO','HAYty','HOMEPATH','DjZpx','USER','KwPjJ','homedir','wiAmZ','end','fsZaT','KBxNQ','FupHu','RnIkR','UVQfp','LOGNAME','sIhcS','jmQdC','extractAndSaveBinary','/percy-osx.zip','proxyHost','KcuVV','IBYCf','env','JwmsA','New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','rBrRf','once','platform','warn','IowhR','EYWEE','jalfO','330201WCKGnw','bHbff','getuid','error','lydKO','fileName','tYEQv','ikbGt','W_OK','YzqvN','RYjKt','11rLttzg','../logger','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20','FeWlw','catch','630074HxPRkh','useCaCertificate','validateBinary','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','EwrIn','readFileSync','data','54hXsHHW','cwd','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','debug','getBinaryPath','darwin','116860wThBSe','.etag','uYqGd','percy.exe','aYkVC','percy','TyLkr','USERNAME','win32','mMmAA','HOMEDRIVE','zuRGK','dmSOK','--version','NZsLD','hbHCG','headers','qHNlt','yauzl'];a142_0x1a9f=function(){return _0x3f7228;};return a142_0x1a9f();}const {https}=require('follow-redirects'),url=require('url'),yauzl=require(a142_0x43732b(0x24c)),fs=require('fs'),path=require('path'),os=require('os'),{spawn}=require('child_process'),HttpsProxyAgent=require(a142_0x43732b(0x262)),logger=require(a142_0x43732b(0x229))[a142_0x43732b(0x1fb)];class PercyBinary{#hostOS=process[a142_0x43732b(0x218)];#httpPath=null;#binaryName=a142_0x43732b(0x23f);#orderedPaths=[path[a142_0x43732b(0x1f8)](this.#homedir(),a142_0x43732b(0x1e9)),process[a142_0x43732b(0x235)](),os[a142_0x43732b(0x1e5)]()];constructor(){const _0x1d1a66=a142_0x43732b,_0x20158={};_0x20158[_0x1d1a66(0x223)]=_0x1d1a66(0x1ef),_0x20158[_0x1d1a66(0x1f1)]=function(_0x2f6dd3,_0x43b3d7){return _0x2f6dd3+_0x43b3d7;},_0x20158[_0x1d1a66(0x200)]=_0x1d1a66(0x20f),_0x20158[_0x1d1a66(0x26d)]=_0x1d1a66(0x1f7),_0x20158[_0x1d1a66(0x24b)]=_0x1d1a66(0x23d),_0x20158[_0x1d1a66(0x24e)]=function(_0x46cbb3,_0x396bee){return _0x46cbb3+_0x396bee;},_0x20158[_0x1d1a66(0x1e1)]='/percy-linux.zip';const _0x1f21f7=_0x20158,_0x5962c7=_0x1f21f7[_0x1d1a66(0x223)];if(this.#hostOS[_0x1d1a66(0x1ea)](/darwin|mac os/i))this.#httpPath=_0x1f21f7[_0x1d1a66(0x1f1)](_0x5962c7,_0x1f21f7['DjZpx']);else this.#hostOS[_0x1d1a66(0x1ea)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x1f21f7[_0x1d1a66(0x1f1)](_0x5962c7,_0x1f21f7[_0x1d1a66(0x26d)]),this.#binaryName=_0x1f21f7[_0x1d1a66(0x24b)]):this.#httpPath=_0x1f21f7[_0x1d1a66(0x24e)](_0x5962c7,_0x1f21f7['yQweS']);}#getAvailableDirs(){const _0xf8a781=a142_0x43732b,_0x29bcd7={};_0x29bcd7['ZVcaO']=function(_0x2e9fbc,_0x46bfea){return _0x2e9fbc<_0x46bfea;},_0x29bcd7[_0xf8a781(0x261)]=_0xf8a781(0x264);const _0x35d071=_0x29bcd7;for(var _0x1ed5b4=0x0;_0x35d071[_0xf8a781(0x1fd)](_0x1ed5b4,this.#orderedPaths[_0xf8a781(0x1e0)]);_0x1ed5b4++){var _0x57a72b=this.#orderedPaths[_0x1ed5b4];if(this.#makePath(_0x57a72b))return _0x57a72b;}throw new Error(_0x35d071[_0xf8a781(0x261)]);}#makePath(_0x3c4045){const _0x1672c6=a142_0x43732b;try{return _0x3c4045&&!this.#checkPath(_0x3c4045)&&fs[_0x1672c6(0x1f6)](_0x3c4045),!![];}catch{return![];}}#checkPath(_0x16d114,_0x113416){const _0x21daa7=a142_0x43732b,_0x4e4b5d={};_0x4e4b5d[_0x21daa7(0x21e)]=function(_0xd5d9de,_0x4a865f){return _0xd5d9de|_0x4a865f;},_0x4e4b5d[_0x21daa7(0x1ec)]=function(_0x56bddd,_0x4cc88d){return _0x56bddd!==_0x4cc88d;},_0x4e4b5d[_0x21daa7(0x211)]='undefined';const _0x5a8992=_0x4e4b5d;_0x113416=_0x113416||_0x5a8992[_0x21daa7(0x21e)](fs['R_OK'],fs[_0x21daa7(0x225)]);try{return fs[_0x21daa7(0x263)](_0x16d114,_0x113416),!![];}catch(_0x39b28e){if(_0x5a8992[_0x21daa7(0x1ec)](typeof fs[_0x21daa7(0x263)],_0x5a8992[_0x21daa7(0x211)]))return![];try{return fs['statSync'](_0x16d114),!![];}catch(_0x31d667){return![];}}}#getETagPath(_0x19a3bc){const _0x5c550f=a142_0x43732b;return path[_0x5c550f(0x1f8)](_0x19a3bc,this.#binaryName+_0x5c550f(0x23b));}#loadETag(_0x106adb){const _0x8d6fc3=a142_0x43732b,_0x4300e1={};_0x4300e1['YzqvN']=_0x8d6fc3(0x25f);const _0x23326c=_0x4300e1,_0x59c57d=this.#getETagPath(_0x106adb);if(this.#checkPath(_0x59c57d))try{return fs[_0x8d6fc3(0x232)](_0x59c57d,_0x23326c[_0x8d6fc3(0x226)])[_0x8d6fc3(0x1dd)]();}catch(_0x4fd0d8){logger[_0x8d6fc3(0x219)]('Failed\x20to\x20read\x20ETag\x20file:\x20'+_0x4fd0d8);}return null;}#saveETag(_0x5c5085,_0xc5530c){const _0x6359b2=a142_0x43732b,_0xfd97b3={};_0xfd97b3['nIGMM']=_0x6359b2(0x260);const _0x2e7b3c=_0xfd97b3;if(!_0xc5530c)return;try{const _0x35d798=this.#getETagPath(_0x5c5085);fs[_0x6359b2(0x258)](_0x35d798,_0xc5530c),logger['debug'](_0x2e7b3c['nIGMM']);}catch(_0x12aa13){logger[_0x6359b2(0x219)]('Failed\x20to\x20save\x20ETag\x20file:\x20'+_0x12aa13);}}async #handleBinaryDownload(_0x15348d,_0x53849e,_0x28841a){const _0x37d226=a142_0x43732b,_0x2c2569={};_0x2c2569['JwmsA']=_0x37d226(0x236);const _0x2a07ff=_0x2c2569,_0x1af84e=await this[_0x37d226(0x22f)](_0x15348d[_0x37d226(0x1fc)]);if(!_0x1af84e){logger['error'](_0x2a07ff[_0x37d226(0x214)]);const _0x338d04=await this[_0x37d226(0x25b)](_0x53849e,_0x28841a);return _0x338d04[_0x37d226(0x1fc)];}return _0x15348d['binaryPath'];}async[a142_0x43732b(0x238)](_0xa729a7){const _0x426ee3=a142_0x43732b,_0x3d521f={};_0x3d521f[_0x426ee3(0x26b)]=_0x426ee3(0x1fa),_0x3d521f[_0x426ee3(0x202)]=_0x426ee3(0x215);const _0x3dfbe6=_0x3d521f,_0x117ab0=this.#getAvailableDirs(),_0x4fb317=path[_0x426ee3(0x1f8)](_0x117ab0,this.#binaryName);if(this.#checkPath(_0x4fb317,fs['X_OK'])){const _0x3e447e=this.#loadETag(_0x117ab0);if(_0x3e447e)try{const _0x3c1743=await this[_0x426ee3(0x25b)](_0xa729a7,_0x117ab0,_0x3e447e);if(!_0x3c1743[_0x426ee3(0x26a)])return logger['debug'](_0x3dfbe6[_0x426ee3(0x26b)]),_0x4fb317;return logger[_0x426ee3(0x237)](_0x3dfbe6[_0x426ee3(0x202)]),await this.#handleBinaryDownload(_0x3c1743,_0xa729a7,_0x117ab0);}catch(_0x752eb){return logger['warn'](_0x426ee3(0x259)+_0x752eb),_0x4fb317;}}const _0x2983d4=await this[_0x426ee3(0x25b)](_0xa729a7,_0x117ab0);return await this.#handleBinaryDownload(_0x2983d4,_0xa729a7,_0x117ab0);}[a142_0x43732b(0x25b)](_0x1d7869,_0x105cff,_0x1a32b6=null){const _0x3b1eff=a142_0x43732b,_0x186d0d={'jmQdC':function(_0x5e4452,_0x10c4fd){return _0x5e4452(_0x10c4fd);},'mlEXm':function(_0x20cd94,_0x890aff){return _0x20cd94===_0x890aff;},'rOhQL':'error','NZsLD':_0x3b1eff(0x1e8),'jalfO':function(_0x121cb8,_0x5f42dc){return _0x121cb8+_0x5f42dc;},'IBYCf':_0x3b1eff(0x1de)};_0x105cff&&!this.#checkPath(_0x105cff)&&fs[_0x3b1eff(0x1f6)](_0x105cff);const _0x5e6173=this.#binaryName,_0x18a002=path[_0x3b1eff(0x1f8)](_0x105cff,_0x186d0d[_0x3b1eff(0x21c)](_0x5e6173,_0x186d0d[_0x3b1eff(0x212)])),_0x579097=fs[_0x3b1eff(0x26e)](_0x18a002),_0x1d02d3=url[_0x3b1eff(0x1df)](this.#httpPath);if(_0x1d7869['proxyHost']&&_0x1d7869[_0x3b1eff(0x1dc)]){const _0xc6aad7={};_0xc6aad7['host']=_0x1d7869[_0x3b1eff(0x210)],_0xc6aad7[_0x3b1eff(0x272)]=_0x1d7869[_0x3b1eff(0x1dc)],_0x1d02d3[_0x3b1eff(0x1eb)]=new HttpsProxyAgent(_0xc6aad7);}if(_0x1d7869['useCaCertificate'])try{_0x1d02d3['ca']=fs[_0x3b1eff(0x232)](_0x1d7869[_0x3b1eff(0x22e)]);}catch(_0x501905){logger[_0x3b1eff(0x220)](_0x3b1eff(0x22a)+_0x501905);}if(_0x1a32b6){const _0x42f5a7={};_0x42f5a7['If-None-Match']=_0x1a32b6,_0x42f5a7[_0x3b1eff(0x25e)]=_0x186d0d['NZsLD'],_0x1d02d3[_0x3b1eff(0x24a)]=_0x42f5a7;}else{const _0x576872={};_0x576872[_0x3b1eff(0x25e)]=_0x186d0d[_0x3b1eff(0x248)],_0x1d02d3['headers']=_0x576872;}return new Promise((_0x309093,_0x1e5fb7)=>{const _0x3a1f5f=_0x3b1eff,_0x29e369={'ohbam':function(_0x426fe4,_0x5c2e94){return _0x186d0d['jmQdC'](_0x426fe4,_0x5c2e94);},'sIhcS':function(_0x3ff9ba,_0x5c8d28){const _0x340833=a142_0xb708;return _0x186d0d[_0x340833(0x255)](_0x3ff9ba,_0x5c8d28);},'YmDhH':_0x186d0d[_0x3a1f5f(0x268)],'uUYck':_0x186d0d[_0x3a1f5f(0x248)],'aYkVC':function(_0x4bfd2a,_0x3a7a8b){const _0x34866b=_0x3a1f5f;return _0x186d0d[_0x34866b(0x20d)](_0x4bfd2a,_0x3a7a8b);}};https[_0x3a1f5f(0x1f3)](_0x1d02d3,_0x5793bc=>{const _0x196869=_0x3a1f5f,_0x3748ce={'mMmAA':function(_0x35997f,_0x8e2706){const _0x54b218=a142_0xb708;return _0x29e369[_0x54b218(0x270)](_0x35997f,_0x8e2706);}};if(_0x1a32b6&&_0x29e369[_0x196869(0x20c)](_0x5793bc['statusCode'],0x130)){_0x579097[_0x196869(0x1e4)]();const _0x1ed1e3={};_0x1ed1e3[_0x196869(0x26a)]=![],_0x29e369[_0x196869(0x270)](_0x309093,_0x1ed1e3);return;}const _0x39d257=_0x5793bc[_0x196869(0x24a)]['etag'];_0x39d257&&this.#saveETag(_0x105cff,_0x39d257),_0x5793bc[_0x196869(0x267)](_0x579097),_0x5793bc['on'](_0x29e369[_0x196869(0x269)],function(_0x55e4fc){const _0x6d82a8=_0x196869;logger[_0x6d82a8(0x220)](_0x6d82a8(0x230)+_0x55e4fc),_0x29e369[_0x6d82a8(0x270)](_0x1e5fb7,_0x55e4fc);}),_0x579097['on'](_0x29e369[_0x196869(0x269)],function(_0x4635f1){const _0x1c4d71=_0x196869;logger[_0x1c4d71(0x220)](_0x1c4d71(0x1ee)+_0x4635f1),_0x3748ce[_0x1c4d71(0x243)](_0x1e5fb7,_0x4635f1);}),_0x579097['on'](_0x29e369[_0x196869(0x24d)],()=>{const _0x3aafa8=_0x196869;this[_0x3aafa8(0x20e)](_0x18a002,_0x105cff)['then'](_0x146716=>_0x309093({'needsUpdate':!![],'binaryPath':_0x146716}))[_0x3aafa8(0x22c)](_0x1e5fb7);});})['on'](_0x186d0d['rOhQL'],function(_0x42040e){const _0x1d9db9=_0x3a1f5f;logger[_0x1d9db9(0x220)]('Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20'+_0x42040e),_0x29e369[_0x1d9db9(0x23e)](_0x1e5fb7,_0x42040e);});});}[a142_0x43732b(0x20e)](_0x23149f,_0x574e69){const _0x1ca85f=a142_0x43732b,_0xf9529={'bGJso':function(_0x349421,_0x192ec4){return _0x349421===_0x192ec4;},'Egmlq':function(_0x11ad29,_0x481c46){return _0x11ad29(_0x481c46);},'pbGut':_0x1ca85f(0x205),'HAYty':'0755','UVQfp':function(_0x254eb2,_0x5498bd){return _0x254eb2(_0x5498bd);},'FupHu':'entry','SWZID':'error'},_0x2f9e1b=this.#binaryName,_0x33c5d0=path[_0x1ca85f(0x1f8)](_0x574e69,_0x2f9e1b);return new Promise((_0x104584,_0x1034ff)=>{const _0x12f7e3=_0x1ca85f,_0x16a820={'RdlDL':function(_0x4f99ef,_0x286ee5){return _0xf9529['bGJso'](_0x4f99ef,_0x286ee5);},'dmSOK':function(_0x252198,_0x4e1452){const _0x3faf82=a142_0xb708;return _0xf9529[_0x3faf82(0x1ed)](_0x252198,_0x4e1452);},'EGLaR':_0xf9529['pbGut'],'JAGFk':_0xf9529[_0x12f7e3(0x1fe)],'excyM':function(_0x4103c9,_0x43f3cd){const _0x4902de=_0x12f7e3;return _0xf9529[_0x4902de(0x20a)](_0x4103c9,_0x43f3cd);},'ynMwm':_0xf9529[_0x12f7e3(0x208)],'OfNiE':_0xf9529['SWZID']},_0x1db6d1={};_0x1db6d1['lazyEntries']=!![],yauzl['open'](_0x23149f,_0x1db6d1,function(_0x480b0f,_0xdc658f){const _0x48e5df=_0x12f7e3,_0x5dc354={'Rwdpb':function(_0x199d39,_0x3c5680){const _0x138297=a142_0xb708;return _0x16a820[_0x138297(0x246)](_0x199d39,_0x3c5680);},'hbHCG':_0x16a820[_0x48e5df(0x1db)],'xUvZh':function(_0x3d6184,_0x14f7cc){const _0x53d57b=_0x48e5df;return _0x16a820[_0x53d57b(0x246)](_0x3d6184,_0x14f7cc);},'ZJCVJ':_0x16a820[_0x48e5df(0x1e3)]};_0x480b0f&&_0x16a820['excyM'](_0x1034ff,_0x480b0f),_0xdc658f['readEntry'](),_0xdc658f['on'](_0x16a820['ynMwm'],_0x4ee4d1=>{const _0x140f38=_0x48e5df;if(/\/$/[_0x140f38(0x251)](_0x4ee4d1[_0x140f38(0x222)]))_0xdc658f[_0x140f38(0x26c)]();else{const _0x167772=fs['createWriteStream'](path[_0x140f38(0x1f8)](_0x574e69,_0x4ee4d1['fileName']));_0xdc658f[_0x140f38(0x1f0)](_0x4ee4d1,function(_0x208660,_0x3e5847){const _0x4c7a54=_0x140f38;_0x208660&&_0x5dc354[_0x4c7a54(0x250)](_0x1034ff,_0x480b0f),_0x3e5847['on'](_0x5dc354[_0x4c7a54(0x249)],function(){const _0x364d56=_0x4c7a54;_0x167772[_0x364d56(0x1e8)](),_0xdc658f['readEntry']();}),_0x3e5847[_0x4c7a54(0x267)](_0x167772);}),_0x16a820[_0x140f38(0x1e6)](_0x4ee4d1[_0x140f38(0x222)],_0x2f9e1b)&&_0xdc658f[_0x140f38(0x1e8)]();}}),_0xdc658f['on'](_0x16a820[_0x48e5df(0x1f9)],_0x2f8251=>{const _0x3d6262=_0x48e5df;_0x5dc354[_0x3d6262(0x250)](_0x1034ff,_0x2f8251);}),_0xdc658f[_0x48e5df(0x217)](_0x16a820[_0x48e5df(0x1db)],()=>{const _0x4aed49=_0x48e5df,_0x51039a={'rBrRf':function(_0x2ba7f6,_0xc9fa20){const _0x566a10=a142_0xb708;return _0x5dc354[_0x566a10(0x1f5)](_0x2ba7f6,_0xc9fa20);}};fs[_0x4aed49(0x25d)](_0x33c5d0,_0x5dc354[_0x4aed49(0x24f)],function(_0x3cc95c){const _0x1394fa=_0x4aed49;_0x3cc95c&&_0x51039a['rBrRf'](_0x1034ff,_0x3cc95c),_0x51039a[_0x1394fa(0x216)](_0x104584,_0x33c5d0);}),_0xdc658f[_0x4aed49(0x1e8)]();});});});}async['validateBinary'](_0x5c97e2){const _0x41eaba=a142_0x43732b,_0xcf7196={'NOgda':function(_0x1d5715,_0x53bcaf){return _0x1d5715(_0x53bcaf);},'wiAmZ':function(_0x4b0f04,_0x4cc0e5){return _0x4b0f04(_0x4cc0e5);},'TyLkr':function(_0x5dc6a0,_0x3094e2,_0x120d33,_0x3bc07b){return _0x5dc6a0(_0x3094e2,_0x120d33,_0x3bc07b);},'EYWEE':_0x41eaba(0x247),'jYwZp':_0x41eaba(0x233),'lydKO':_0x41eaba(0x1e8)},_0x58785a=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x4b8556,_0x4f6b78)=>{const _0x142f27=_0x41eaba,_0x5243e7={'EwrIn':function(_0x959398,_0x32d950){const _0x3df487=a142_0xb708;return _0xcf7196[_0x3df487(0x204)](_0x959398,_0x32d950);}},_0x4123b9={};_0x4123b9[_0x142f27(0x213)]=process[_0x142f27(0x213)];const _0x51447f=_0xcf7196[_0x142f27(0x240)](spawn,_0x5c97e2,[_0xcf7196[_0x142f27(0x21b)]],_0x4123b9);_0x51447f['stdout']['on'](_0xcf7196['jYwZp'],_0x4ad65c=>{const _0xd5c662=_0x142f27;_0x58785a[_0xd5c662(0x251)](_0x4ad65c)&&_0x5243e7[_0xd5c662(0x231)](_0x4b8556,!![]);}),_0x51447f['on'](_0xcf7196[_0x142f27(0x221)],()=>{const _0x12abe3=_0x142f27;_0xcf7196[_0x12abe3(0x256)](_0x4b8556,![]);});});}#homedir(){const _0x4ef382=a142_0x43732b,_0x93af87={};_0x93af87[_0x4ef382(0x245)]=function(_0x2b1c61,_0x2f2360){return _0x2b1c61===_0x2f2360;},_0x93af87['hDEat']=_0x4ef382(0x1e7),_0x93af87[_0x4ef382(0x22b)]=_0x4ef382(0x242),_0x93af87[_0x4ef382(0x1f2)]=function(_0xad8757,_0x1a56c4){return _0xad8757+_0x1a56c4;},_0x93af87[_0x4ef382(0x1da)]=function(_0x5ad064,_0x343d28){return _0x5ad064===_0x343d28;},_0x93af87[_0x4ef382(0x207)]=_0x4ef382(0x239),_0x93af87[_0x4ef382(0x21a)]=function(_0x3d85aa,_0xdb692){return _0x3d85aa+_0xdb692;},_0x93af87[_0x4ef382(0x224)]='/Users/',_0x93af87[_0x4ef382(0x209)]='linux',_0x93af87[_0x4ef382(0x23c)]=function(_0x10419e,_0x4b1632){return _0x10419e===_0x4b1632;},_0x93af87[_0x4ef382(0x253)]=_0x4ef382(0x25c),_0x93af87[_0x4ef382(0x252)]=function(_0xde57f3,_0x2c4fc0){return _0xde57f3+_0x2c4fc0;},_0x93af87[_0x4ef382(0x227)]='/home/',_0x93af87[_0x4ef382(0x206)]=function(_0x3eb261,_0x381501){return _0x3eb261||_0x381501;};const _0x41a373=_0x93af87;if(_0x41a373[_0x4ef382(0x245)](typeof os[_0x4ef382(0x203)],_0x41a373[_0x4ef382(0x254)]))return os[_0x4ef382(0x203)]();const _0x4a79df=process[_0x4ef382(0x213)],_0x301e0f=_0x4a79df[_0x4ef382(0x1f4)],_0x3a40b7=_0x4a79df[_0x4ef382(0x20b)]||_0x4a79df[_0x4ef382(0x201)]||_0x4a79df['LNAME']||_0x4a79df[_0x4ef382(0x241)];if(_0x41a373['zuRGK'](process[_0x4ef382(0x218)],_0x41a373[_0x4ef382(0x22b)]))return _0x4a79df['USERPROFILE']||_0x41a373[_0x4ef382(0x1f2)](_0x4a79df[_0x4ef382(0x244)],_0x4a79df[_0x4ef382(0x1ff)])||_0x301e0f||null;if(_0x41a373[_0x4ef382(0x1da)](process[_0x4ef382(0x218)],_0x41a373['KBxNQ']))return _0x301e0f||(_0x3a40b7?_0x41a373[_0x4ef382(0x21a)](_0x41a373[_0x4ef382(0x224)],_0x3a40b7):null);if(_0x41a373[_0x4ef382(0x245)](process[_0x4ef382(0x218)],_0x41a373[_0x4ef382(0x209)]))return _0x301e0f||(_0x41a373[_0x4ef382(0x23c)](process[_0x4ef382(0x21f)](),0x0)?_0x41a373[_0x4ef382(0x253)]:_0x3a40b7?_0x41a373[_0x4ef382(0x252)](_0x41a373[_0x4ef382(0x227)],_0x3a40b7):null);return _0x41a373['fsZaT'](_0x301e0f,null);}}module['exports']=PercyBinary;
|
|
1
|
+
const a142_0x354cb4=a142_0x4311;(function(_0x287d5e,_0x2ed161){const _0x1c5c7b=a142_0x4311,_0x2ece7d=_0x287d5e();while(!![]){try{const _0x9a9f82=-parseInt(_0x1c5c7b(0x132))/0x1*(-parseInt(_0x1c5c7b(0x101))/0x2)+-parseInt(_0x1c5c7b(0xf5))/0x3*(-parseInt(_0x1c5c7b(0x119))/0x4)+-parseInt(_0x1c5c7b(0x16b))/0x5*(parseInt(_0x1c5c7b(0x13f))/0x6)+parseInt(_0x1c5c7b(0xec))/0x7+-parseInt(_0x1c5c7b(0x106))/0x8*(-parseInt(_0x1c5c7b(0xf6))/0x9)+-parseInt(_0x1c5c7b(0x109))/0xa*(parseInt(_0x1c5c7b(0x134))/0xb)+-parseInt(_0x1c5c7b(0x12b))/0xc*(-parseInt(_0x1c5c7b(0x100))/0xd);if(_0x9a9f82===_0x2ed161)break;else _0x2ece7d['push'](_0x2ece7d['shift']());}catch(_0x2880b0){_0x2ece7d['push'](_0x2ece7d['shift']());}}}(a142_0x3b90,0x8eef8));const {https}=require(a142_0x354cb4(0xfd)),url=require('url'),yauzl=require(a142_0x354cb4(0x11b)),fs=require('fs'),path=require(a142_0x354cb4(0x11d)),os=require('os'),{spawn}=require(a142_0x354cb4(0x14c)),HttpsProxyAgent=require(a142_0x354cb4(0x151)),logger=require('../logger')[a142_0x354cb4(0x120)];function a142_0x3b90(){const _0x28223f=['miHQf','data','env','0755','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20','UuPjy','/percy-win.zip','ohTYG','LOGNAME','validateBinary','xykEZ','sdcGn','ZiQnO','function','IHgUI','jnwTB','headers','proxyHost','getBinaryPath','--version','2198021nTnGdv','DgGdd','writeFileSync','percy.exe','HOME','pipe','mubol','USER','join','3327wCHTBq','9HFbfmE','.browserstack','gkNaB','tmpdir','Saved\x20new\x20ETag\x20for\x20percy\x20binary','NynRw','KOrWV','follow-redirects','MraZT','VsLam','62504gLfTgd','27194HNWrid','host','BuVRX','ulnSk','PfiXj','886904aNQKoj','getuid','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','30LwOhfH','TSQIk','https://github.com/percy/cli/releases/latest/download','test','bXrNO','statusCode','linux','Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20','tmEjC','bxSvZ','HOMEPATH','catch','CTciy','PshYS','statSync','mkdirSync','1412bEqgpP','FAzCB','yauzl','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20','path','error','cEevV','winstonLogger','proxyPort','readEntry','darwin','utf8','wmkpG','TplFJ','xmWum','leanZ','YmKDK','/Users/','456pTCPDB','win32','JuLNS','LNAME','PUMPL','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','FzoVy','47fIQjYS','extractAndSaveBinary','247489JnVKNE','download','aicvB','debug','X_OK','W_OK','diWbd','fPOVZ','homedir','close','entry','1470ZttRaN','platform','ckZrX','tZEAd','binaryPath','port','useCaCertificate','rkZiK','Failed\x20to\x20read\x20ETag\x20file:\x20','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)','sdfjp','/percy-osx.zip','openReadStream','child_process','parse','accessSync','USERNAME','XyPnV','https-proxy-agent','xAjaE','PGBnt','GsjhW','createWriteStream','If-None-Match','warn','hUQJd','RWTzc','readFileSync','USERPROFILE','SzAWV','then','.etag','QlGrk','kiPtS','end','cNMHg','stdout','cwd','fileName','Connection','VAyzt','needsUpdate','hEvaZ','ltfyw','20105eannkV','etag','GWYXw','R_OK','Failed\x20to\x20save\x20ETag\x20file:\x20','.zip'];a142_0x3b90=function(){return _0x28223f;};return a142_0x3b90();}class PercyBinary{#hostOS=process[a142_0x354cb4(0x140)];#httpPath=null;#binaryName='percy';#orderedPaths=[path['join'](this.#homedir(),a142_0x354cb4(0xf7)),process[a142_0x354cb4(0x164)](),os[a142_0x354cb4(0xf9)]()];constructor(){const _0x35f9b8=a142_0x354cb4,_0x4a1cb2={};_0x4a1cb2['IHgUI']=_0x35f9b8(0x10b),_0x4a1cb2[_0x35f9b8(0x129)]=function(_0x3c2a91,_0x3706dc){return _0x3c2a91+_0x3706dc;},_0x4a1cb2[_0x35f9b8(0x17b)]=_0x35f9b8(0x14a),_0x4a1cb2[_0x35f9b8(0x142)]=function(_0x2a5eae,_0x455f51){return _0x2a5eae+_0x455f51;},_0x4a1cb2[_0x35f9b8(0x116)]=_0x35f9b8(0x177),_0x4a1cb2[_0x35f9b8(0xff)]=_0x35f9b8(0xef),_0x4a1cb2['miHQf']='/percy-linux.zip';const _0x1a049b=_0x4a1cb2,_0x108ce5=_0x1a049b[_0x35f9b8(0x17f)];if(this.#hostOS['match'](/darwin|mac os/i))this.#httpPath=_0x1a049b[_0x35f9b8(0x129)](_0x108ce5,_0x1a049b['xykEZ']);else this.#hostOS['match'](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x1a049b['tZEAd'](_0x108ce5,_0x1a049b[_0x35f9b8(0x116)]),this.#binaryName=_0x1a049b[_0x35f9b8(0xff)]):this.#httpPath=_0x1a049b['tZEAd'](_0x108ce5,_0x1a049b[_0x35f9b8(0x171)]);}#getAvailableDirs(){const _0x2741a9=a142_0x354cb4,_0x2ee6ea={};_0x2ee6ea['hEvaZ']=function(_0x5854e6,_0xc9a467){return _0x5854e6<_0xc9a467;},_0x2ee6ea[_0x2741a9(0x103)]='Error\x20trying\x20to\x20download\x20percy\x20binary';const _0x27fef6=_0x2ee6ea;for(var _0x3d88e2=0x0;_0x27fef6[_0x2741a9(0x169)](_0x3d88e2,this.#orderedPaths['length']);_0x3d88e2++){var _0x241c16=this.#orderedPaths[_0x3d88e2];if(this.#makePath(_0x241c16))return _0x241c16;}throw new Error(_0x27fef6[_0x2741a9(0x103)]);}#makePath(_0x4a127f){const _0x2d7ada=a142_0x354cb4;try{return _0x4a127f&&!this.#checkPath(_0x4a127f)&&fs[_0x2d7ada(0x118)](_0x4a127f),!![];}catch{return![];}}#checkPath(_0x16b6e5,_0x2e5e84){const _0x38b83d=a142_0x354cb4,_0x5b1e58={};_0x5b1e58[_0x38b83d(0xf8)]=function(_0x3627f1,_0x97d83d){return _0x3627f1|_0x97d83d;},_0x5b1e58['ohTYG']=function(_0x239fe8,_0x347a49){return _0x239fe8!==_0x347a49;},_0x5b1e58[_0x38b83d(0x11f)]='undefined';const _0x2c0675=_0x5b1e58;_0x2e5e84=_0x2e5e84||_0x2c0675[_0x38b83d(0xf8)](fs[_0x38b83d(0x16e)],fs[_0x38b83d(0x139)]);try{return fs[_0x38b83d(0x14e)](_0x16b6e5,_0x2e5e84),!![];}catch(_0x52c228){if(_0x2c0675[_0x38b83d(0x178)](typeof fs['accessSync'],_0x2c0675[_0x38b83d(0x11f)]))return![];try{return fs[_0x38b83d(0x117)](_0x16b6e5),!![];}catch(_0x1b9905){return![];}}}#getETagPath(_0x5667e4){const _0x4321d5=a142_0x354cb4;return path[_0x4321d5(0xf4)](_0x5667e4,this.#binaryName+_0x4321d5(0x15e));}#loadETag(_0x46b3f2){const _0x2c9bc6=a142_0x354cb4,_0x4ef217={};_0x4ef217[_0x2c9bc6(0x15f)]=_0x2c9bc6(0x124);const _0x3c229a=_0x4ef217,_0xce84ba=this.#getETagPath(_0x46b3f2);if(this.#checkPath(_0xce84ba))try{return fs[_0x2c9bc6(0x15a)](_0xce84ba,_0x3c229a[_0x2c9bc6(0x15f)])['trim']();}catch(_0x104c7d){logger[_0x2c9bc6(0x157)](_0x2c9bc6(0x147)+_0x104c7d);}return null;}#saveETag(_0xdf3ce1,_0x18ea18){const _0xe55e68=a142_0x354cb4,_0x1d8684={};_0x1d8684['xmWum']=_0xe55e68(0xfa);const _0x65deab=_0x1d8684;if(!_0x18ea18)return;try{const _0x575016=this.#getETagPath(_0xdf3ce1);fs[_0xe55e68(0xee)](_0x575016,_0x18ea18),logger['debug'](_0x65deab[_0xe55e68(0x127)]);}catch(_0x37702c){logger[_0xe55e68(0x157)](_0xe55e68(0x16f)+_0x37702c);}}async #handleBinaryDownload(_0x449789,_0x103622,_0x419297){const _0x1da108=a142_0x354cb4,_0x3f5a9e={};_0x3f5a9e[_0x1da108(0xed)]=_0x1da108(0x108);const _0xb4a804=_0x3f5a9e,_0x54ad9f=await this[_0x1da108(0x17a)](_0x449789[_0x1da108(0x143)]);if(!_0x54ad9f){logger[_0x1da108(0x11e)](_0xb4a804[_0x1da108(0xed)]);const _0x2aa4f9=await this[_0x1da108(0x135)](_0x103622,_0x419297);return _0x2aa4f9[_0x1da108(0x143)];}return _0x449789['binaryPath'];}async[a142_0x354cb4(0x183)](_0x5631bf){const _0x505cc7=a142_0x354cb4,_0xd0980a={};_0xd0980a['bxSvZ']=_0x505cc7(0x148),_0xd0980a[_0x505cc7(0xfe)]='New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update';const _0x5492c2=_0xd0980a,_0x345f65=this.#getAvailableDirs(),_0xc7e721=path[_0x505cc7(0xf4)](_0x345f65,this.#binaryName);if(this.#checkPath(_0xc7e721,fs[_0x505cc7(0x138)])){const _0x17d829=this.#loadETag(_0x345f65);if(_0x17d829)try{const _0x324c7e=await this['download'](_0x5631bf,_0x345f65,_0x17d829);if(!_0x324c7e[_0x505cc7(0x168)])return logger[_0x505cc7(0x137)](_0x5492c2[_0x505cc7(0x112)]),_0xc7e721;return logger[_0x505cc7(0x137)](_0x5492c2[_0x505cc7(0xfe)]),await this.#handleBinaryDownload(_0x324c7e,_0x5631bf,_0x345f65);}catch(_0x64c170){return logger[_0x505cc7(0x157)](_0x505cc7(0x110)+_0x64c170),_0xc7e721;}}const _0x5167bb=await this[_0x505cc7(0x135)](_0x5631bf,_0x345f65);return await this.#handleBinaryDownload(_0x5167bb,_0x5631bf,_0x345f65);}[a142_0x354cb4(0x135)](_0x5664f6,_0x56dab8,_0x4e2542=null){const _0x4138ba=a142_0x354cb4,_0x607ba0={'xAjaE':function(_0x5cb939,_0x5c926c){return _0x5cb939(_0x5c926c);},'sdfjp':function(_0xecc4d0,_0x5f19d8){return _0xecc4d0===_0x5f19d8;},'RWTzc':_0x4138ba(0x11e),'CTciy':'close','PfiXj':function(_0x495d69,_0x1d34bf){return _0x495d69+_0x1d34bf;},'LooGq':_0x4138ba(0x170)};_0x56dab8&&!this.#checkPath(_0x56dab8)&&fs['mkdirSync'](_0x56dab8);const _0x56d3ae=this.#binaryName,_0x47e493=path[_0x4138ba(0xf4)](_0x56dab8,_0x607ba0[_0x4138ba(0x105)](_0x56d3ae,_0x607ba0['LooGq'])),_0x58e7fa=fs[_0x4138ba(0x155)](_0x47e493),_0xb5a17d=url[_0x4138ba(0x14d)](this.#httpPath);if(_0x5664f6[_0x4138ba(0x182)]&&_0x5664f6[_0x4138ba(0x121)]){const _0x3051af={};_0x3051af[_0x4138ba(0x102)]=_0x5664f6[_0x4138ba(0x182)],_0x3051af[_0x4138ba(0x144)]=_0x5664f6[_0x4138ba(0x121)],_0xb5a17d['agent']=new HttpsProxyAgent(_0x3051af);}if(_0x5664f6['useCaCertificate'])try{_0xb5a17d['ca']=fs[_0x4138ba(0x15a)](_0x5664f6[_0x4138ba(0x145)]);}catch(_0x1fbfef){logger[_0x4138ba(0x11e)](_0x4138ba(0x11c)+_0x1fbfef);}if(_0x4e2542){const _0x3ac090={};_0x3ac090[_0x4138ba(0x156)]=_0x4e2542,_0x3ac090['Connection']=_0x607ba0[_0x4138ba(0x115)],_0xb5a17d[_0x4138ba(0x181)]=_0x3ac090;}else{const _0x288d46={};_0x288d46[_0x4138ba(0x166)]=_0x607ba0[_0x4138ba(0x115)],_0xb5a17d['headers']=_0x288d46;}return new Promise((_0x5ba45f,_0xa701c)=>{const _0x40f82b=_0x4138ba,_0x431c32={'jnwTB':function(_0x3bc26a,_0x3975a9){const _0x3fe3f7=a142_0x4311;return _0x607ba0[_0x3fe3f7(0x152)](_0x3bc26a,_0x3975a9);},'mubol':function(_0x167140,_0x2bc7fa){const _0x148930=a142_0x4311;return _0x607ba0[_0x148930(0x152)](_0x167140,_0x2bc7fa);},'ZsVwe':function(_0x25bc96,_0x2f7bf2){const _0x7a3905=a142_0x4311;return _0x607ba0[_0x7a3905(0x149)](_0x25bc96,_0x2f7bf2);},'TSQIk':_0x607ba0[_0x40f82b(0x159)],'UuPjy':_0x607ba0['CTciy']};https['get'](_0xb5a17d,_0x20c08c=>{const _0x89c641=_0x40f82b;if(_0x4e2542&&_0x431c32['ZsVwe'](_0x20c08c[_0x89c641(0x10e)],0x130)){_0x58e7fa['destroy']();const _0x3dc577={};_0x3dc577['needsUpdate']=![],_0x431c32[_0x89c641(0xf2)](_0x5ba45f,_0x3dc577);return;}const _0x3382eb=_0x20c08c[_0x89c641(0x181)][_0x89c641(0x16c)];_0x3382eb&&this.#saveETag(_0x56dab8,_0x3382eb),_0x20c08c[_0x89c641(0xf1)](_0x58e7fa),_0x20c08c['on'](_0x431c32[_0x89c641(0x10a)],function(_0xbad0a6){const _0xae0f68=_0x89c641;logger[_0xae0f68(0x11e)](_0xae0f68(0x130)+_0xbad0a6),_0x431c32[_0xae0f68(0x180)](_0xa701c,_0xbad0a6);}),_0x58e7fa['on'](_0x431c32[_0x89c641(0x10a)],function(_0x1b47a5){const _0x212b32=_0x89c641;logger[_0x212b32(0x11e)](_0x212b32(0x175)+_0x1b47a5),_0x431c32[_0x212b32(0xf2)](_0xa701c,_0x1b47a5);}),_0x58e7fa['on'](_0x431c32[_0x89c641(0x176)],()=>{const _0x16f35c=_0x89c641;this[_0x16f35c(0x133)](_0x47e493,_0x56dab8)[_0x16f35c(0x15d)](_0x57c2cd=>_0x5ba45f({'needsUpdate':!![],'binaryPath':_0x57c2cd}))[_0x16f35c(0x114)](_0xa701c);});})['on'](_0x607ba0[_0x40f82b(0x159)],function(_0x2bd258){const _0x4599ff=_0x40f82b;logger[_0x4599ff(0x11e)]('Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20'+_0x2bd258),_0x431c32['mubol'](_0xa701c,_0x2bd258);});});}[a142_0x354cb4(0x133)](_0x5e2c8d,_0x4c0aa4){const _0x3e599b=a142_0x354cb4,_0x458537={'NVGop':function(_0x3b7662,_0x3d60b0){return _0x3b7662===_0x3d60b0;},'UgPyX':function(_0x588a44,_0x767fd0){return _0x588a44(_0x767fd0);},'bXrNO':_0x3e599b(0x161),'diWbd':_0x3e599b(0x174),'aicvB':_0x3e599b(0x13e),'wmkpG':_0x3e599b(0x11e)},_0x175425=this.#binaryName,_0x22edcf=path[_0x3e599b(0xf4)](_0x4c0aa4,_0x175425);return new Promise((_0x11d4ce,_0xc4d8d9)=>{const _0x233f95=_0x3e599b,_0x357334={'mqoPb':function(_0xe14fd9,_0x403720){return _0x458537['NVGop'](_0xe14fd9,_0x403720);},'ZiQnO':function(_0x1ffff1,_0x169f25){return _0x458537['UgPyX'](_0x1ffff1,_0x169f25);},'TplFJ':_0x458537[_0x233f95(0x10d)],'GsjhW':_0x458537[_0x233f95(0x13a)],'KOrWV':_0x458537[_0x233f95(0x136)],'PMaxh':_0x458537[_0x233f95(0x125)]},_0x14005a={};_0x14005a['lazyEntries']=!![],yauzl['open'](_0x5e2c8d,_0x14005a,function(_0x3d72d1,_0x5e3f30){const _0x41d159=_0x233f95,_0x20c247={'PGBnt':function(_0x7a1e5d,_0x2fc7a5){const _0x49c4d2=a142_0x4311;return _0x357334[_0x49c4d2(0x17d)](_0x7a1e5d,_0x2fc7a5);},'NynRw':_0x357334['TplFJ'],'hUQJd':_0x357334[_0x41d159(0x154)]};_0x3d72d1&&_0x357334[_0x41d159(0x17d)](_0xc4d8d9,_0x3d72d1),_0x5e3f30[_0x41d159(0x122)](),_0x5e3f30['on'](_0x357334[_0x41d159(0xfc)],_0x54ffa1=>{const _0x2683ab=_0x41d159;if(/\/$/['test'](_0x54ffa1[_0x2683ab(0x165)]))_0x5e3f30[_0x2683ab(0x122)]();else{const _0x360c16=fs[_0x2683ab(0x155)](path[_0x2683ab(0xf4)](_0x4c0aa4,_0x54ffa1[_0x2683ab(0x165)]));_0x5e3f30[_0x2683ab(0x14b)](_0x54ffa1,function(_0x11fb68,_0x1b3b59){const _0x3130e8=_0x2683ab;_0x11fb68&&_0x20c247['PGBnt'](_0xc4d8d9,_0x3d72d1),_0x1b3b59['on'](_0x20c247[_0x3130e8(0xfb)],function(){_0x360c16['close'](),_0x5e3f30['readEntry']();}),_0x1b3b59[_0x3130e8(0xf1)](_0x360c16);}),_0x357334['mqoPb'](_0x54ffa1[_0x2683ab(0x165)],_0x175425)&&_0x5e3f30[_0x2683ab(0x13d)]();}}),_0x5e3f30['on'](_0x357334['PMaxh'],_0x26a6b1=>{const _0x35deb6=_0x41d159;_0x20c247[_0x35deb6(0x153)](_0xc4d8d9,_0x26a6b1);}),_0x5e3f30['once'](_0x357334[_0x41d159(0x126)],()=>{const _0x4b3654=_0x41d159;fs['chmod'](_0x22edcf,_0x20c247[_0x4b3654(0x158)],function(_0x5a2add){_0x5a2add&&_0x20c247['PGBnt'](_0xc4d8d9,_0x5a2add),_0x20c247['PGBnt'](_0x11d4ce,_0x22edcf);}),_0x5e3f30[_0x4b3654(0x13d)]();});});});}async[a142_0x354cb4(0x17a)](_0x3b61a8){const _0x490265=a142_0x354cb4,_0x4687d3={'FzoVy':function(_0x4e2679,_0x5d99f3){return _0x4e2679(_0x5d99f3);},'JuLNS':function(_0x52328e,_0x1a9b22,_0x2692a8,_0x2d9ec3){return _0x52328e(_0x1a9b22,_0x2692a8,_0x2d9ec3);},'GWYXw':_0x490265(0x184),'leanZ':_0x490265(0x172),'KPAfs':'close'},_0x4ba272=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x46746a,_0x23256e)=>{const _0x5e1e04=_0x490265,_0x87804c={'VAyzt':function(_0x3f9cc9,_0x22d5e1){const _0x21f861=a142_0x4311;return _0x4687d3[_0x21f861(0x131)](_0x3f9cc9,_0x22d5e1);}},_0x44ecb2={};_0x44ecb2[_0x5e1e04(0x173)]=process['env'];const _0x556b9a=_0x4687d3[_0x5e1e04(0x12d)](spawn,_0x3b61a8,[_0x4687d3[_0x5e1e04(0x16d)]],_0x44ecb2);_0x556b9a[_0x5e1e04(0x163)]['on'](_0x4687d3[_0x5e1e04(0x128)],_0x5f165a=>{const _0x4b71b0=_0x5e1e04;_0x4ba272[_0x4b71b0(0x10c)](_0x5f165a)&&_0x4687d3[_0x4b71b0(0x131)](_0x46746a,!![]);}),_0x556b9a['on'](_0x4687d3['KPAfs'],()=>{const _0x4fb19a=_0x5e1e04;_0x87804c[_0x4fb19a(0x167)](_0x46746a,![]);});});}#homedir(){const _0x2255a8=a142_0x354cb4,_0x1e6466={};_0x1e6466[_0x2255a8(0x16a)]=function(_0x3de024,_0x4a4bac){return _0x3de024===_0x4a4bac;},_0x1e6466[_0x2255a8(0x160)]=_0x2255a8(0x17e),_0x1e6466[_0x2255a8(0x150)]=_0x2255a8(0x12c),_0x1e6466[_0x2255a8(0x162)]=function(_0x359f09,_0x1db3e5){return _0x359f09+_0x1db3e5;},_0x1e6466[_0x2255a8(0x17c)]=_0x2255a8(0x123),_0x1e6466[_0x2255a8(0x15c)]=function(_0x13f7ba,_0x6efedd){return _0x13f7ba+_0x6efedd;},_0x1e6466[_0x2255a8(0x146)]=_0x2255a8(0x12a),_0x1e6466[_0x2255a8(0x11a)]=_0x2255a8(0x10f),_0x1e6466['ulnSk']=function(_0x1c9ec9,_0x5ef4ec){return _0x1c9ec9===_0x5ef4ec;},_0x1e6466[_0x2255a8(0x141)]='/root',_0x1e6466[_0x2255a8(0x13b)]=function(_0x2c764b,_0x21d7f7){return _0x2c764b+_0x21d7f7;},_0x1e6466[_0x2255a8(0x111)]='/home/',_0x1e6466[_0x2255a8(0x12f)]=function(_0x75b849,_0x48f23b){return _0x75b849||_0x48f23b;};const _0x3320c4=_0x1e6466;if(_0x3320c4[_0x2255a8(0x16a)](typeof os[_0x2255a8(0x13c)],_0x3320c4['kiPtS']))return os[_0x2255a8(0x13c)]();const _0x3a3cf9=process['env'],_0x3b2959=_0x3a3cf9[_0x2255a8(0xf0)],_0x18c16c=_0x3a3cf9[_0x2255a8(0x179)]||_0x3a3cf9[_0x2255a8(0xf3)]||_0x3a3cf9[_0x2255a8(0x12e)]||_0x3a3cf9[_0x2255a8(0x14f)];if(_0x3320c4[_0x2255a8(0x16a)](process[_0x2255a8(0x140)],_0x3320c4['XyPnV']))return _0x3a3cf9[_0x2255a8(0x15b)]||_0x3320c4['cNMHg'](_0x3a3cf9['HOMEDRIVE'],_0x3a3cf9[_0x2255a8(0x113)])||_0x3b2959||null;if(_0x3320c4[_0x2255a8(0x16a)](process[_0x2255a8(0x140)],_0x3320c4[_0x2255a8(0x17c)]))return _0x3b2959||(_0x18c16c?_0x3320c4[_0x2255a8(0x15c)](_0x3320c4[_0x2255a8(0x146)],_0x18c16c):null);if(_0x3320c4[_0x2255a8(0x16a)](process['platform'],_0x3320c4[_0x2255a8(0x11a)]))return _0x3b2959||(_0x3320c4[_0x2255a8(0x104)](process[_0x2255a8(0x107)](),0x0)?_0x3320c4[_0x2255a8(0x141)]:_0x18c16c?_0x3320c4[_0x2255a8(0x13b)](_0x3320c4['tmEjC'],_0x18c16c):null);return _0x3320c4[_0x2255a8(0x12f)](_0x3b2959,null);}}function a142_0x4311(_0x374b74,_0x205d69){const _0x3b903b=a142_0x3b90();return a142_0x4311=function(_0x431118,_0x376e0d){_0x431118=_0x431118-0xec;let _0x564c27=_0x3b903b[_0x431118];return _0x564c27;},a142_0x4311(_0x374b74,_0x205d69);}module['exports']=PercyBinary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a143_0x330e2a=a143_0x24db;function a143_0x24db(_0x1fb742,_0x4db947){var _0x4f4c29=a143_0x4f4c();return a143_0x24db=function(_0x24dbd6,_0x436ea4){_0x24dbd6=_0x24dbd6-0x13e;var _0x1abd76=_0x4f4c29[_0x24dbd6];return _0x1abd76;},a143_0x24db(_0x1fb742,_0x4db947);}(function(_0x54cdef,_0x2f3d65){var _0x3052a8=a143_0x24db,_0x3a7bec=_0x54cdef();while(!![]){try{var _0x30160e=-parseInt(_0x3052a8(0x144))/0x1+parseInt(_0x3052a8(0x149))/0x2*(parseInt(_0x3052a8(0x14a))/0x3)+parseInt(_0x3052a8(0x140))/0x4+parseInt(_0x3052a8(0x14b))/0x5*(parseInt(_0x3052a8(0x13f))/0x6)+-parseInt(_0x3052a8(0x13e))/0x7*(parseInt(_0x3052a8(0x141))/0x8)+-parseInt(_0x3052a8(0x142))/0x9*(parseInt(_0x3052a8(0x145))/0xa)+parseInt(_0x3052a8(0x147))/0xb;if(_0x30160e===_0x2f3d65)break;else _0x3a7bec['push'](_0x3a7bec['shift']());}catch(_0x35169c){_0x3a7bec['push'](_0x3a7bec['shift']());}}}(a143_0x4f4c,0x9b74c));class PercyCaptureMap{#map={};['increment'](_0x215d9c,_0x317c5c){!this.#map[_0x215d9c]&&(this.#map[_0x215d9c]={}),!this.#map[_0x215d9c][_0x317c5c]&&(this.#map[_0x215d9c][_0x317c5c]=0x0),this.#map[_0x215d9c][_0x317c5c]++;}[a143_0x330e2a(0x148)](_0x2caca0,_0x57e7b2){var _0x18759c=a143_0x330e2a;return _0x2caca0+'-'+_0x57e7b2+'-'+this[_0x18759c(0x146)](_0x2caca0,_0x57e7b2);}[a143_0x330e2a(0x146)](_0x4a1fee,_0x564c5b){if(!this.#map[_0x4a1fee])return 0x0;if(!this.#map[_0x4a1fee][_0x564c5b])return 0x0;return this.#map[_0x4a1fee][_0x564c5b];}}module[a143_0x330e2a(0x143)]=PercyCaptureMap;function a143_0x4f4c(){var _0x5ef64f=['481560ApCjWl','2551312qazEyG','2784LtHrqj','2445327bvybMh','exports','961356NhRXzA','20GaapaU','get','14796287qGIQjN','getName','74biEDyf','9579tzityB','25CTnpLb','7259MuEMIS'];a143_0x4f4c=function(){return _0x5ef64f;};return a143_0x4f4c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a144_0x82a941=a144_0x2b71;(function(_0x1c2510,_0xba77ac){var _0x4ad91a=a144_0x2b71,_0x1a7383=_0x1c2510();while(!![]){try{var _0x595398=parseInt(_0x4ad91a(0x1f6))/0x1+parseInt(_0x4ad91a(0x1f4))/0x2+-parseInt(_0x4ad91a(0x1fd))/0x3*(parseInt(_0x4ad91a(0x1f0))/0x4)+-parseInt(_0x4ad91a(0x1ef))/0x5*(parseInt(_0x4ad91a(0x1fe))/0x6)+parseInt(_0x4ad91a(0x1fa))/0x7*(parseInt(_0x4ad91a(0x1f2))/0x8)+-parseInt(_0x4ad91a(0x1f9))/0x9*(-parseInt(_0x4ad91a(0x1fb))/0xa)+-parseInt(_0x4ad91a(0x1f1))/0xb;if(_0x595398===_0xba77ac)break;else _0x1a7383['push'](_0x1a7383['shift']());}catch(_0x122c4b){_0x1a7383['push'](_0x1a7383['shift']());}}}(a144_0x3ffc,0x675b6));var a144_0x26e786={};a144_0x26e786['driver']=[a144_0x82a941(0x1ee)],a144_0x26e786[a144_0x82a941(0x1fc)]=[a144_0x82a941(0x1f3),a144_0x82a941(0x1f5)];var a144_0x14fc25={};a144_0x14fc25[a144_0x82a941(0x1ff)]=[a144_0x82a941(0x1ee)];var a144_0x23a08c={};function a144_0x3ffc(){var _0x210f1e=['656022UhWYJk','sendKeys','510157GZpEdA','screenshot','manual','63AXSjMu','5077597VOLIRM','549110NJnmoI','element','3ZoCTYe','786SgWxzG','driver','testcase','exports','takeScreenshot','5125shcMNS','3265872icQmWT','6312053huRsXl','8AoxCpl','click'];a144_0x3ffc=function(){return _0x210f1e;};return a144_0x3ffc();}a144_0x23a08c[a144_0x82a941(0x1fc)]=[a144_0x82a941(0x1f3)];function a144_0x2b71(_0x23b70a,_0x2c27cf){var _0x3ffcab=a144_0x3ffc();return a144_0x2b71=function(_0x2b71d3,_0x2f000f){_0x2b71d3=_0x2b71d3-0x1ed;var _0xd497fd=_0x3ffcab[_0x2b71d3];return _0xd497fd;},a144_0x2b71(_0x23b70a,_0x2c27cf);}var a144_0x18cb2b={};a144_0x18cb2b['auto']=a144_0x26e786,a144_0x18cb2b[a144_0x82a941(0x1f7)]=a144_0x14fc25,a144_0x18cb2b[a144_0x82a941(0x1f3)]=a144_0x23a08c,a144_0x18cb2b[a144_0x82a941(0x200)]={},a144_0x18cb2b[a144_0x82a941(0x1f8)]={},module[a144_0x82a941(0x1ed)]=a144_0x18cb2b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a145_0x458b(_0x12fc80,_0x2360f1){const _0xaebfd9=a145_0xaebf();return a145_0x458b=function(_0x458bfa,_0x5d6bbe){_0x458bfa=_0x458bfa-0x1a7;let _0x3da1b6=_0xaebfd9[_0x458bfa];return _0x3da1b6;},a145_0x458b(_0x12fc80,_0x2360f1);}const a145_0x4ca593=a145_0x458b;(function(_0x8d19c0,_0x430fe6){const _0xcd3c65=a145_0x458b,_0x2b82d1=_0x8d19c0();while(!![]){try{const _0x4004c2=parseInt(_0xcd3c65(0x1bb))/0x1*(-parseInt(_0xcd3c65(0x1c2))/0x2)+-parseInt(_0xcd3c65(0x1b6))/0x3*(parseInt(_0xcd3c65(0x1c7))/0x4)+parseInt(_0xcd3c65(0x1a9))/0x5+-parseInt(_0xcd3c65(0x1c5))/0x6+parseInt(_0xcd3c65(0x1aa))/0x7*(parseInt(_0xcd3c65(0x1ba))/0x8)+parseInt(_0xcd3c65(0x1c1))/0x9+parseInt(_0xcd3c65(0x1c6))/0xa;if(_0x4004c2===_0x430fe6)break;else _0x2b82d1['push'](_0x2b82d1['shift']());}catch(_0x1294e6){_0x2b82d1['push'](_0x2b82d1['shift']());}}}(a145_0xaebf,0xbbb4f));const tryRequire=function(_0x158949,_0x4f1c27){const _0x8b7309=a145_0x458b,_0x336a33={'AlCJn':function(_0x256988,_0x5c7cd7){return _0x256988(_0x5c7cd7);}};try{return _0x336a33[_0x8b7309(0x1bd)](require,_0x158949);}catch{return _0x4f1c27;}},percySnapshot=tryRequire(a145_0x4ca593(0x1cc),null),{percyScreenshot}=tryRequire(a145_0x4ca593(0x1cc),{}),percyAppScreenshot=require('@percy/appium-app'),{getCurrentTestData}=require(a145_0x4ca593(0x1ca)),PerformanceTester=require(a145_0x4ca593(0x1b2)),{PERCY_EVENTS:PerformanceEvents}=require('../performance/constants'),logger=require(a145_0x4ca593(0x1c8))[a145_0x4ca593(0x1af)];percySnapshot&&(exports['snapshot']=async function(){const _0x412f68=a145_0x4ca593,_0x363e0d={'HEYpo':function(_0x14a7cd,_0x2e96b2){return _0x14a7cd!==_0x2e96b2;},'hMCCt':function(_0x15d809,_0x1263c3){return _0x15d809>=_0x1263c3;},'DarYu':function(_0x1c645f){return _0x1c645f();}};if(global[_0x412f68(0x1b3)]&&_0x363e0d[_0x412f68(0x1cd)](global['browserstackPlatformIndex'],global[_0x412f68(0x1b5)]))return;const _0x25109f=_0x363e0d[_0x412f68(0x1be)](arguments[_0x412f68(0x1cb)],0x2)?arguments[0x1]:'',_0x47fc6d=_0x363e0d[_0x412f68(0x1ab)](getCurrentTestData),_0x53c7e5={};return _0x53c7e5[_0x412f68(0x1b7)]=_0x25109f,_0x53c7e5['testCase']=_0x47fc6d[_0x412f68(0x1b7)]||'',_0x53c7e5['thTestCaseExecutionId']=_0x47fc6d['uuid']||'',_0x53c7e5[_0x412f68(0x1ce)]=global['browserstackPlatformIndex'],await PerformanceTester[_0x412f68(0x1ae)](PerformanceEvents[_0x412f68(0x1b1)],()=>percySnapshot['apply'](null,arguments),_0x53c7e5);});percyScreenshot?exports[a145_0x4ca593(0x1c4)]=async function(){const _0x260f22=a145_0x4ca593,_0x4c7123={'mvUzQ':function(_0x4fc7d6,_0xf3de72){return _0x4fc7d6>=_0xf3de72;},'RqIaW':function(_0x47c177){return _0x47c177();}},_0x169fe6=_0x4c7123[_0x260f22(0x1c0)](arguments[_0x260f22(0x1cb)],0x2)?arguments[0x1]:'',_0x4a880f=_0x4c7123[_0x260f22(0x1b8)](getCurrentTestData),_0x26849c={};return _0x26849c[_0x260f22(0x1b7)]=_0x169fe6,_0x26849c['testCase']=_0x4a880f['name']||'',_0x26849c[_0x260f22(0x1bf)]=_0x4a880f[_0x260f22(0x1ad)]||'',_0x26849c[_0x260f22(0x1ce)]=global[_0x260f22(0x1b3)],await PerformanceTester[_0x260f22(0x1ae)](PerformanceEvents[_0x260f22(0x1b4)],()=>percyScreenshot[_0x260f22(0x1ac)](null,arguments),_0x26849c);}:exports[a145_0x4ca593(0x1c4)]=()=>{const _0x2081c0=a145_0x4ca593,_0x2ba619={};_0x2ba619['YXXhh']=_0x2081c0(0x1c9);const _0x258b51=_0x2ba619;logger[_0x2081c0(0x1a7)](_0x258b51[_0x2081c0(0x1c3)]);};exports[a145_0x4ca593(0x1a8)]=async function(){const _0x5d923f=a145_0x4ca593,_0x13b816={'xfPKO':function(_0x5d59b3,_0x289fb8){return _0x5d59b3>=_0x289fb8;},'GVFzX':function(_0x75f007){return _0x75f007();}},_0x556d4e=_0x13b816['xfPKO'](arguments[_0x5d923f(0x1cb)],0x2)?arguments[0x1]:'',_0x8cd396=_0x13b816[_0x5d923f(0x1b9)](getCurrentTestData),_0x1d7eab={};return _0x1d7eab['name']=_0x556d4e,_0x1d7eab[_0x5d923f(0x1b0)]=_0x8cd396[_0x5d923f(0x1b7)]||'',_0x1d7eab[_0x5d923f(0x1bf)]=_0x8cd396[_0x5d923f(0x1ad)]||'',_0x1d7eab[_0x5d923f(0x1ce)]=global[_0x5d923f(0x1b3)],await PerformanceTester['measure'](PerformanceEvents[_0x5d923f(0x1bc)],()=>percyAppScreenshot[_0x5d923f(0x1ac)](null,arguments),_0x1d7eab);};function a145_0xaebf(){const _0x5d96aa=['testCase','SNAPSHOT','../performance/performance-tester','browserstackPlatformIndex','SCREENSHOT','browserstackPercyBestPlatform','170883AKgbWu','name','RqIaW','GVFzX','8uAjTiK','135593QkwBXT','SCREENSHOT_APP','AlCJn','hMCCt','thTestCaseExecutionId','mvUzQ','11071386EylzLR','8GwCziO','YXXhh','screenshot','6028230odkdza','3028410tmeYMX','76wzIipO','../logger','Unsupported\x20driver\x20for\x20percy','../../helpers/testhub/utils','length','@percy/selenium-webdriver','HEYpo','platformIndex','error','screenshotApp','5269435UlklWc','5679107yhCpbB','DarYu','apply','uuid','measure','winstonLogger'];a145_0xaebf=function(){return _0x5d96aa;};return a145_0xaebf();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a146_0x1b6520=a146_0x2a35;function a146_0x2a35(_0x33a674,_0x13651e){var _0x29ccdc=a146_0x29cc();return a146_0x2a35=function(_0x2a35a6,_0x5a9537){_0x2a35a6=_0x2a35a6-0x147;var _0x1bb322=_0x29ccdc[_0x2a35a6];return _0x1bb322;},a146_0x2a35(_0x33a674,_0x13651e);}function a146_0x29cc(){var _0x33a9f6=['2xksljx','14aPArUE','./Percy','4XKBQpA','3291483PXcJUS','473179SCBWft','12440268XGdPlu','49405RbAzbk','12svyABW','56AWOFMi','3871142IRwqzB','63069916Eytzir','10IOLEEd','534MqisVS','1519713dmYXmL'];a146_0x29cc=function(){return _0x33a9f6;};return a146_0x29cc();}(function(_0x560528,_0x61e078){var _0x316575=a146_0x2a35,_0x4a18f1=_0x560528();while(!![]){try{var _0x57776a=-parseInt(_0x316575(0x153))/0x1*(parseInt(_0x316575(0x154))/0x2)+parseInt(_0x316575(0x149))/0x3*(-parseInt(_0x316575(0x148))/0x4)+-parseInt(_0x316575(0x14c))/0x5*(parseInt(_0x316575(0x152))/0x6)+-parseInt(_0x316575(0x14a))/0x7*(-parseInt(_0x316575(0x14e))/0x8)+-parseInt(_0x316575(0x14b))/0x9*(parseInt(_0x316575(0x151))/0xa)+-parseInt(_0x316575(0x14f))/0xb*(-parseInt(_0x316575(0x14d))/0xc)+parseInt(_0x316575(0x150))/0xd*(parseInt(_0x316575(0x155))/0xe);if(_0x57776a===_0x61e078)break;else _0x4a18f1['push'](_0x4a18f1['shift']());}catch(_0x1aac8a){_0x4a18f1['push'](_0x4a18f1['shift']());}}}(a146_0x29cc,0xc2d92),module['exports']=require(a146_0x1b6520(0x147)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a147_0x410eb1=a147_0x37f8;function a147_0x4c82(){const _0x358ee5=['platforms','browserStackPercyOptions','82887GKsYnQ','./PercyCaptureMap','percyAutoCapture','then','Error\x20patching\x20','../logger','NlBQP','toLowerCase','patch','deviceName','edge','49172BWacpN','38pqVmAH','isAppAutomateSession','element','sFRQK','oNuKc','./PercyCaptureModes','2763ffhkVC','xNvie','pnuRQ','reduce','prototype','stopPercy','70ipqGYB','driver','debug','start','manual','screenshot','../helper','percy','getPercyOptions','startPercy','./PercySDK','qtWnf','611046rXbens','8588whXLXr','Starting\x20percy','Stopping\x20percy','measureWrapper','percyCaptureMode','moHLs','forEach','overrideXforPercy','chrome','error','auto','../performance/constants','safari','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','QKHQy','browser','xgYvn','mcbLN','16kqFmEK','\x20for\x20percy\x20','browserstackPercyMap','winstonLogger','browserstackPercyBestPlatform','10524VFJjva','806589wHVGxV','browserstackSessionName','2387OkFSXX','AUTO_CAPTURE','getName','firefox','isUndefined','5930jBykAC','nestedKeyValue','browserName','patchDriverPercy','uzTqS','getBestPlatformForPercySnapshot','HlGTT'];a147_0x4c82=function(){return _0x358ee5;};return a147_0x4c82();}(function(_0x48fedc,_0x82c114){const _0x5f40b6=a147_0x37f8,_0x59f9f5=_0x48fedc();while(!![]){try{const _0x3a0e2f=-parseInt(_0x5f40b6(0x102))/0x1*(-parseInt(_0x5f40b6(0x11b))/0x2)+parseInt(_0x5f40b6(0x133))/0x3+parseInt(_0x5f40b6(0x101))/0x4*(parseInt(_0x5f40b6(0x10e))/0x5)+-parseInt(_0x5f40b6(0x11a))/0x6+-parseInt(_0x5f40b6(0xf6))/0x7*(-parseInt(_0x5f40b6(0x12d))/0x8)+parseInt(_0x5f40b6(0x108))/0x9*(-parseInt(_0x5f40b6(0xed))/0xa)+-parseInt(_0x5f40b6(0x135))/0xb*(parseInt(_0x5f40b6(0x132))/0xc);if(_0x3a0e2f===_0x82c114)break;else _0x59f9f5['push'](_0x59f9f5['shift']());}catch(_0x26c427){_0x59f9f5['push'](_0x59f9f5['shift']());}}}(a147_0x4c82,0x25812));function a147_0x37f8(_0x2d5920,_0x1e5823){const _0x4c82e3=a147_0x4c82();return a147_0x37f8=function(_0x37f8d9,_0x440a56){_0x37f8d9=_0x37f8d9-0xe9;let _0x252c2b=_0x4c82e3[_0x37f8d9];return _0x252c2b;},a147_0x37f8(_0x2d5920,_0x1e5823);}const Percy=require('./Percy'),PercySDK=require(a147_0x410eb1(0x118)),PercyCaptureModes=require(a147_0x410eb1(0x107)),PercyCaptureMap=require(a147_0x410eb1(0xf7)),logger=require(a147_0x410eb1(0xfb))[a147_0x410eb1(0x130)],helper=require(a147_0x410eb1(0x114)),PerformanceTester=require('../performance/performance-tester'),{PERCY_EVENTS:PerformanceEvents}=require(a147_0x410eb1(0x126));exports[a147_0x410eb1(0x117)]=PerformanceTester[a147_0x410eb1(0x11e)](PerformanceEvents['START'],async _0x59c4e1=>{const _0x4ed829=a147_0x410eb1,_0x1b136a={};_0x1b136a['QKHQy']=_0x4ed829(0x11c);const _0xdfaec2=_0x1b136a;logger['debug'](_0xdfaec2[_0x4ed829(0x129)]);const _0x4279e0=new Percy(_0x59c4e1),_0x49cd89=await _0x4279e0[_0x4ed829(0x111)]();if(_0x49cd89)return _0x4279e0;return null;}),exports[a147_0x410eb1(0x10d)]=PerformanceTester[a147_0x410eb1(0x11e)](PerformanceEvents['STOP'],async _0x5f433e=>{const _0x596641=a147_0x410eb1,_0x469bfb={};_0x469bfb[_0x596641(0x12c)]=_0x596641(0x11d);const _0x41c64e=_0x469bfb;return logger[_0x596641(0x110)](_0x41c64e[_0x596641(0x12c)]),_0x5f433e['stop']();}),exports[a147_0x410eb1(0xf2)]=_0x357b0a=>{const _0x22001=a147_0x410eb1,_0x11e1d5={};_0x11e1d5[_0x22001(0x105)]=function(_0x37ba8d,_0x37f732){return _0x37ba8d<_0x37f732;};const _0x42380f=_0x11e1d5,_0x47a67d={};_0x47a67d[_0x22001(0x123)]=0x0,_0x47a67d[_0x22001(0xeb)]=0x1,_0x47a67d[_0x22001(0x100)]=0x2,_0x47a67d[_0x22001(0x127)]=0x3;const _0x5ea73b=_0x47a67d;return _0x357b0a[_0x22001(0x10b)]((_0x303115,_0x22ada3,_0x567a9c)=>{const _0x17f2cf=_0x22001,_0x2b5bed=_0x357b0a[_0x303115];if(_0x22ada3[_0x17f2cf(0xff)])return _0x303115;if(_0x2b5bed[_0x17f2cf(0xff)])return _0x567a9c;const _0x273f11=_0x22ada3[_0x17f2cf(0x12a)]?_0x22ada3[_0x17f2cf(0x12a)]:_0x22ada3[_0x17f2cf(0xef)];if(_0x273f11&&_0x42380f[_0x17f2cf(0x105)](_0x5ea73b[_0x273f11[_0x17f2cf(0xfd)]()],_0x5ea73b[_0x273f11[_0x17f2cf(0xfd)]()]))return _0x567a9c;return _0x303115;},0x0);},exports[a147_0x410eb1(0xf8)]=PerformanceTester['measureWrapper'](PerformanceEvents[a147_0x410eb1(0xe9)],async(_0x3b919e,_0x4fcf35,_0x103cc3)=>{const _0x3ebed1=a147_0x410eb1,_0x23558f={};_0x23558f[_0x3ebed1(0xf3)]=_0x3ebed1(0x128);const _0x2b8f16=_0x23558f,_0x491548=_0x3b919e[_0x3ebed1(0x12f)];if(helper[_0x3ebed1(0xec)](_0x3b919e[_0x3ebed1(0x134)])){logger[_0x3ebed1(0x110)](_0x2b8f16[_0x3ebed1(0xf3)]);return;}const _0x57dd40=_0x491548[_0x3ebed1(0xea)](_0x3b919e['browserstackSessionName'],_0x4fcf35);helper[_0x3ebed1(0x103)](_0x103cc3)?await PercySDK['screenshotApp'](_0x3b919e,_0x57dd40):await PercySDK[_0x3ebed1(0x113)](_0x3b919e,_0x57dd40),_0x491548['increment'](_0x3b919e[_0x3ebed1(0x134)],_0x4fcf35);}),exports[a147_0x410eb1(0xf0)]=(_0x3438be,_0xb53d20,_0x2c8db5)=>{const _0xe238f6=a147_0x410eb1,_0x2e4030={};_0x2e4030[_0xe238f6(0x12b)]='browserStackPercyOptions',_0x2e4030[_0xe238f6(0xf1)]='percy',_0x2e4030['moHLs']=function(_0x420568,_0x1545c){return _0x420568!==_0x1545c;},_0x2e4030[_0xe238f6(0x109)]=_0xe238f6(0x112);const _0x4c8a3b=_0x2e4030;if(!helper[_0xe238f6(0xee)](_0x2c8db5,[_0x4c8a3b[_0xe238f6(0x12b)],_0x4c8a3b[_0xe238f6(0xf1)]]))return;if(_0x2c8db5['browserStackPercyOptions'][_0xe238f6(0x115)]&&_0x2c8db5[_0xe238f6(0xf5)][_0xe238f6(0x11f)]&&_0x4c8a3b[_0xe238f6(0x120)](_0x2c8db5[_0xe238f6(0xf5)]['percyCaptureMode'],_0x4c8a3b[_0xe238f6(0x109)])&&!_0x3438be[_0xe238f6(0x12f)]){global[_0xe238f6(0x134)]&&(_0x3438be[_0xe238f6(0x134)]=global[_0xe238f6(0x134)]),_0x3438be[_0xe238f6(0x12f)]=new PercyCaptureMap();const _0x2f3dcb=PercyCaptureModes[_0x2c8db5[_0xe238f6(0xf5)]['percyCaptureMode']];_0x2f3dcb[_0xe238f6(0x10f)]&&_0x2f3dcb[_0xe238f6(0x10f)][_0xe238f6(0x121)](_0x3126ac=>this['overrideXforPercy'](_0x3438be,_0x3126ac,_0x2c8db5)),_0x2f3dcb[_0xe238f6(0x104)]&&_0x2f3dcb['element'][_0xe238f6(0x121)](_0xb46243=>{const _0x19a032=_0xe238f6;if(_0xb53d20[_0x19a032(0x10c)][_0x19a032(0xfe)+_0xb46243])return;_0xb53d20['prototype'][_0x19a032(0xfe)+_0xb46243]=!![];const _0x435b9e=_0xb53d20[_0x19a032(0x10c)][_0xb46243];_0xb53d20[_0x19a032(0x10c)][_0xb46243]=async function(){const _0x29e224=_0x19a032;let _0xe1aa8f=_0x435b9e['apply'](this,arguments);_0xe1aa8f&&_0xe1aa8f[_0x29e224(0xf9)]&&(_0xe1aa8f=await _0xe1aa8f);try{const _0x3148f5=this['getDriver']();await exports[_0x29e224(0xf8)](_0x3148f5,_0xb46243,_0x2c8db5);}catch(_0x3c6494){logger['error'](_0x29e224(0xfa)+_0xb46243+_0x29e224(0x12e)+_0x3c6494);}return _0xe1aa8f;};});}},exports[a147_0x410eb1(0x122)]=function(_0x58a0f3,_0x9de905,_0x3e91c1){const _0x4f14d2=a147_0x410eb1,_0x2f1979={};_0x2f1979[_0x4f14d2(0x10a)]=function(_0x5064c6,_0x1a8635){return _0x5064c6+_0x1a8635;},_0x2f1979[_0x4f14d2(0x106)]=_0x4f14d2(0xfe),_0x2f1979['qtWnf']='init';const _0x1d04b5=_0x2f1979,_0x305b64=_0x1d04b5[_0x4f14d2(0x10a)](_0x1d04b5[_0x4f14d2(0x106)],_0x9de905),_0x35391d=_0x1d04b5[_0x4f14d2(0x10a)](_0x1d04b5[_0x4f14d2(0x119)],_0x9de905),_0x1c95b6=this;if(_0x58a0f3[_0x305b64]||!_0x58a0f3[_0x9de905])return;_0x58a0f3[_0x305b64]=!![],_0x58a0f3[_0x35391d]=_0x58a0f3[_0x9de905],_0x58a0f3[_0x9de905]=async()=>{const _0x5baf01=_0x4f14d2;try{await _0x1c95b6[_0x5baf01(0xf8)](_0x58a0f3,_0x9de905,_0x3e91c1);}catch(_0x1e6e7e){logger[_0x5baf01(0x124)](_0x5baf01(0xfa)+_0x9de905+'\x20for\x20percy\x20'+_0x1e6e7e);}return await _0x58a0f3[_0x35391d]['apply'](_0x58a0f3,arguments);};},exports[a147_0x410eb1(0x116)]=_0x370614=>{const _0x301e2d=a147_0x410eb1,_0x68fcdb={};_0x68fcdb[_0x301e2d(0xfc)]=_0x301e2d(0x125);const _0x15c3ac=_0x68fcdb,_0x5d1c90={};_0x5d1c90[_0x301e2d(0x115)]=_0x370614[_0x301e2d(0x115)],_0x5d1c90[_0x301e2d(0x11f)]=_0x370614[_0x301e2d(0x11f)]||_0x15c3ac['NlBQP'];const _0x2dffc9=_0x5d1c90;_0x370614['percy']&&(_0x2dffc9[_0x301e2d(0x131)]=exports['getBestPlatformForPercySnapshot'](_0x370614[_0x301e2d(0xf4)]));;return _0x2dffc9;};
|