browserstack-node-sdk 1.57.2 → 1.59.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/generated/sdk-messages_pb.d.ts +376 -36
- package/generated/sdk-messages_pb.js +2955 -279
- package/generated/sdk_grpc_pb.d.ts +5 -0
- package/generated/sdk_grpc_pb.js +51 -0
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -0
- package/src/bin/jasmine/command.js +2 -0
- package/src/bin/jasmine/test.setup.js +1 -0
- package/src/bin/jasmine/testRunMap.js +1 -0
- 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 -0
- package/src/bin/testcafe/command.js +2 -0
- package/src/bin/testcafe/reporter/index.js +1 -0
- package/src/bin/testcafe/reporter/tcUtils.js +1 -0
- package/src/bin/testcafe/session-registry.js +1 -0
- package/src/bin/testcafe/stdout-interceptor.js +1 -0
- package/src/bin/testcafe/testcafe-action-patcher.js +1 -0
- package/src/bin/testcafe/w3c-driver.js +1 -0
- 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 -0
- package/src/bin/v2/framework/testcafeTestFramework.js +1 -0
- 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 -0
- 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 a122_0x5eee5a=a122_0x288e;(function(_0x2cc2c4,_0x39fd34){const _0x4b2b2a=a122_0x288e,_0x2ea8d4=_0x2cc2c4();while(!![]){try{const _0x36ebbd=-parseInt(_0x4b2b2a(0xa0))/0x1*(-parseInt(_0x4b2b2a(0xbd))/0x2)+-parseInt(_0x4b2b2a(0xe1))/0x3+-parseInt(_0x4b2b2a(0xdd))/0x4+-parseInt(_0x4b2b2a(0xd7))/0x5+-parseInt(_0x4b2b2a(0xd0))/0x6*(parseInt(_0x4b2b2a(0xa7))/0x7)+parseInt(_0x4b2b2a(0xb4))/0x8+parseInt(_0x4b2b2a(0xc9))/0x9;if(_0x36ebbd===_0x39fd34)break;else _0x2ea8d4['push'](_0x2ea8d4['shift']());}catch(_0x5b6c5d){_0x2ea8d4['push'](_0x2ea8d4['shift']());}}}(a122_0x354c,0x4961c));const winston=require(a122_0x5eee5a(0xc2)),path=require(a122_0x5eee5a(0xe2)),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME,DEBUG_CLI_LOG_FILE_NAME}=require('../bin/utils/constants'),tempLogDir=a122_0x5eee5a(0xc0);let redactRegex=null,lastConfigHash='';const logFormat=winston['format'](_0x507e54=>{const _0x560624=a122_0x5eee5a,_0x5d597e={};_0x5d597e[_0x560624(0xe3)]=function(_0x3a44f1,_0x348927){return _0x3a44f1!==_0x348927;},_0x5d597e[_0x560624(0xea)]=_0x560624(0xe6),_0x5d597e[_0x560624(0xc7)]=function(_0x5e3f6d,_0x2b588d){return _0x5e3f6d+_0x2b588d;},_0x5d597e[_0x560624(0xe8)]=function(_0x2787ad,_0x28afcf){return _0x2787ad!==_0x28afcf;},_0x5d597e[_0x560624(0xac)]=function(_0x103667,_0x51451a){return _0x103667>_0x51451a;},_0x5d597e['iUfYJ']=_0x560624(0xb5);const _0x2ba85f=_0x5d597e;_0x2ba85f['zIuqh'](typeof _0x507e54[_0x560624(0xec)],_0x2ba85f['Iuwxs'])&&(_0x507e54[_0x560624(0xec)]=JSON[_0x560624(0xbb)](_0x507e54[_0x560624(0xec)]));const _0xa1c5ca=global[_0x560624(0xa9)]&&global[_0x560624(0xa9)]['userName']||'',_0x58124e=global[_0x560624(0xa9)]&&global[_0x560624(0xa9)][_0x560624(0xb8)]||'',_0x4c94f1=_0x2ba85f[_0x560624(0xc7)](_0x2ba85f[_0x560624(0xc7)](_0xa1c5ca,'|'),_0x58124e);if(_0x2ba85f[_0x560624(0xe8)](_0x4c94f1,lastConfigHash)){lastConfigHash=_0x4c94f1;const _0xe7294d=[_0xa1c5ca,_0x58124e]['filter'](Boolean);if(_0x2ba85f[_0x560624(0xac)](_0xe7294d[_0x560624(0xa2)],0x0)){const _0x550888=_0xe7294d[_0x560624(0xc1)](_0x55ea72=>_0x55ea72['replace'](/[.*+?^${}()|[\]\\]/g,'\x5c$&'))[_0x560624(0xe7)]('|');redactRegex=new RegExp(_0x550888,'g');}else redactRegex=null;}return redactRegex&&(_0x507e54['message']=_0x507e54[_0x560624(0xec)][_0x560624(0xd9)](redactRegex,_0x2ba85f['iUfYJ'])),_0x507e54;}),fetchLogDir=()=>{const _0xca1b4c=a122_0x5eee5a;if(process[_0xca1b4c(0xb6)]['BROWSERSTACK_INTERNAL_LOG_DIR'])return process[_0xca1b4c(0xb6)][_0xca1b4c(0xd4)];else!fs['existsSync'](tempLogDir)&&fs[_0xca1b4c(0xbf)](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),getInitialLogLevel=()=>{const _0x1dcd21=a122_0x5eee5a,_0x57536d={};_0x57536d['JQrxo']=_0x1dcd21(0xcb);const _0x40d36d=_0x57536d,_0x365f7d=process[_0x1dcd21(0xb6)]['BROWSERSTACK_LOG_LEVEL'],_0x8aa1ab=Object[_0x1dcd21(0xcd)](winston[_0x1dcd21(0xa9)][_0x1dcd21(0xc5)][_0x1dcd21(0x9c)]);if(_0x365f7d&&_0x8aa1ab[_0x1dcd21(0xce)](_0x365f7d[_0x1dcd21(0xd5)]()))return _0x365f7d[_0x1dcd21(0xd5)]();return _0x40d36d[_0x1dcd21(0xdc)];},initialLogLevel=getInitialLogLevel(),a122_0xf26841={};function a122_0x288e(_0x3d26e9,_0x4e5be1){const _0x354cf4=a122_0x354c();return a122_0x288e=function(_0x288eea,_0x4a75da){_0x288eea=_0x288eea-0x9b;let _0x267f54=_0x354cf4[_0x288eea];return _0x267f54;},a122_0x288e(_0x3d26e9,_0x4e5be1);}function a122_0x354c(){const _0x126a3b=['remove','EPIPE','40187LGHKeV','Console','config','BROWSERSTACK_AUTOMATION_LOGS','KynrF','wXUvC','silly','debugLoggerFile','uncolorize','File','automationLogger','printf','combine','409888QyhHce','[REDACTED]','env','level','accessKey','loggerFile','add','stringify','\x20-\x20','955642rSjVtN','format','mkdirSync','log','map','winston','fileLogger','YYYY-MM-DD\x20HH:mm:ss','npm','ibCvm','kPyhz','console.info','6523515ozlFjN','debug','info','http','keys','includes','logDir','414NdshDk','initialize','/usage.log','colorize','BROWSERSTACK_INTERNAL_LOG_DIR','toLowerCase','winstonLogger','371770AqdAfZ','debugCliLoggerFile','replace','error','XcCQe','JQrxo','220932Pktzie','ALRLQ','timestamp','name','1282812ZfHUje','path','zIuqh','automation.log','buildLinkTransport','string','join','wpzUZ','loggerConsole','Iuwxs','automationLoggerFile','message','warn','levels','/usage-debug.log','createLogger','EPIPE\x20error\x20occurred\x20in\x20loggerConsole:','1dmTcMZ','true','length','transports','code'];a122_0x354c=function(){return _0x126a3b;};return a122_0x354c();}a122_0xf26841[a122_0x5eee5a(0xe0)]=a122_0x5eee5a(0xc8),a122_0xf26841[a122_0x5eee5a(0xb7)]=initialLogLevel;const transports={'loggerConsole':new winston['transports'][(a122_0x5eee5a(0xa8))](a122_0xf26841),'loggerFile':new winston[(a122_0x5eee5a(0xa3))][(a122_0x5eee5a(0xb0))]({'filename':path[a122_0x5eee5a(0xe7)](logDir,a122_0x5eee5a(0xd2)),'level':initialLogLevel}),'debugLoggerFile':new winston['transports'][(a122_0x5eee5a(0xb0))]({'filename':path[a122_0x5eee5a(0xe7)](logDir,a122_0x5eee5a(0x9d)),'level':a122_0x5eee5a(0xad)}),'debugCliLoggerFile':new winston['transports'][(a122_0x5eee5a(0xb0))]({'filename':path[a122_0x5eee5a(0xe7)](logDir,DEBUG_CLI_LOG_FILE_NAME),'level':a122_0x5eee5a(0xad)}),'buildLinkTransport':new winston[(a122_0x5eee5a(0xa3))]['File']({'filename':path[a122_0x5eee5a(0xe7)](logDir,a122_0x5eee5a(0xd2)),'level':a122_0x5eee5a(0xad)})},automationTransports={};process['env'][a122_0x5eee5a(0xaa)]===a122_0x5eee5a(0xa1)&&(automationTransports[a122_0x5eee5a(0xeb)]=new winston[(a122_0x5eee5a(0xa3))][(a122_0x5eee5a(0xb0))]({'filename':path[a122_0x5eee5a(0xe7)](logDir,a122_0x5eee5a(0xe4)),'level':a122_0x5eee5a(0xad)}));transports[a122_0x5eee5a(0xe9)]['on'](a122_0x5eee5a(0xda),_0x4b5a46=>{const _0x2603df=a122_0x5eee5a,_0x178118={};_0x178118['XcCQe']=function(_0x36aef0,_0x547aa8){return _0x36aef0===_0x547aa8;},_0x178118[_0x2603df(0xc6)]=_0x2603df(0xa6),_0x178118[_0x2603df(0xab)]=_0x2603df(0x9f);const _0x142d9c=_0x178118;if(_0x142d9c[_0x2603df(0xdb)](_0x4b5a46[_0x2603df(0xa4)],_0x142d9c[_0x2603df(0xc6)])){console[_0x2603df(0xc0)](_0x142d9c['KynrF'],_0x4b5a46[_0x2603df(0xec)]);return;}throw _0x4b5a46;});const a122_0x2685de={};a122_0x2685de[a122_0x5eee5a(0xbe)]=a122_0x5eee5a(0xc4);const a122_0x1700bb={};a122_0x1700bb['level']=!![];const winstonLoggerParams={'format':winston['format'][a122_0x5eee5a(0xb3)](winston[a122_0x5eee5a(0xbe)][a122_0x5eee5a(0xdf)](a122_0x2685de),winston[a122_0x5eee5a(0xbe)]['colorize'](a122_0x1700bb),winston[a122_0x5eee5a(0xbe)][a122_0x5eee5a(0xb2)](_0x278593=>_0x278593[a122_0x5eee5a(0xdf)]+a122_0x5eee5a(0xbc)+_0x278593[a122_0x5eee5a(0xb7)]+':\x20'+_0x278593[a122_0x5eee5a(0xec)])),'transports':[transports[a122_0x5eee5a(0xe9)]]},a122_0x156b02={};a122_0x156b02[a122_0x5eee5a(0xbe)]='YYYY-MM-DD\x20HH:mm:ss';const a122_0x1c4449={};a122_0x1c4449[a122_0x5eee5a(0xb7)]=!![];const winstonFileLoggerParams={'format':winston[a122_0x5eee5a(0xbe)]['combine'](winston[a122_0x5eee5a(0xbe)]['timestamp'](a122_0x156b02),winston[a122_0x5eee5a(0xbe)][a122_0x5eee5a(0xd3)](a122_0x1c4449),winston[a122_0x5eee5a(0xbe)]['printf'](_0x750d80=>_0x750d80[a122_0x5eee5a(0xb7)]+':\x20'+_0x750d80[a122_0x5eee5a(0xec)])),'transports':[]},a122_0xe1e68={};a122_0xe1e68[a122_0x5eee5a(0xbe)]=a122_0x5eee5a(0xc4);const a122_0x59bb9a={};a122_0x59bb9a[a122_0x5eee5a(0xb7)]=!![];const a122_0x2f14cb={};a122_0x2f14cb[a122_0x5eee5a(0xb7)]=a122_0x5eee5a(0xad);const BuildLoggerParams={'format':winston[a122_0x5eee5a(0xbe)][a122_0x5eee5a(0xb3)](winston['format'][a122_0x5eee5a(0xdf)](a122_0xe1e68),winston[a122_0x5eee5a(0xbe)][a122_0x5eee5a(0xd3)](a122_0x59bb9a),winston['format']['printf'](_0x1b3e1c=>_0x1b3e1c[a122_0x5eee5a(0xdf)]+a122_0x5eee5a(0xbc)+_0x1b3e1c[a122_0x5eee5a(0xb7)]+':\x20'+_0x1b3e1c[a122_0x5eee5a(0xec)])),'transports':[transports[a122_0x5eee5a(0xe5)],new winston[(a122_0x5eee5a(0xa3))]['Console'](a122_0x2f14cb)]},a122_0x509f22={};a122_0x509f22[a122_0x5eee5a(0xcc)]=()=>{},a122_0x509f22[a122_0x5eee5a(0xcb)]=()=>{},a122_0x509f22[a122_0x5eee5a(0x9b)]=()=>{},a122_0x509f22[a122_0x5eee5a(0xda)]=()=>{},a122_0x509f22[a122_0x5eee5a(0xca)]=()=>{},a122_0x509f22[a122_0x5eee5a(0xad)]=()=>{},exports[a122_0x5eee5a(0xb1)]=process[a122_0x5eee5a(0xb6)]['BROWSERSTACK_AUTOMATION_LOGS']==='true'?winston['createLogger']({'format':winston['format'][a122_0x5eee5a(0xb3)](winston[a122_0x5eee5a(0xbe)][a122_0x5eee5a(0xaf)](),winston[a122_0x5eee5a(0xbe)][a122_0x5eee5a(0xdf)](),logFormat(),winston[a122_0x5eee5a(0xbe)]['printf'](_0x1bf7e0=>_0x1bf7e0[a122_0x5eee5a(0xb7)]+':\x20'+_0x1bf7e0['message'])),'transports':[automationTransports[a122_0x5eee5a(0xeb)]]}):a122_0x509f22;const initialize=()=>{const _0x5e4604=a122_0x5eee5a,_0x5c831a={};_0x5c831a[_0x5e4604(0xde)]='silly';const _0x4eb729=_0x5c831a,_0x4cd9df=transports[_0x5e4604(0xe9)][_0x5e4604(0xb7)]||initialLogLevel;transports[_0x5e4604(0xb9)]&&(exports[_0x5e4604(0xd6)][_0x5e4604(0xa5)](transports[_0x5e4604(0xb9)]),exports[_0x5e4604(0xc3)][_0x5e4604(0xa5)](transports[_0x5e4604(0xb9)])),transports[_0x5e4604(0xae)]&&(exports[_0x5e4604(0xd6)][_0x5e4604(0xa5)](transports[_0x5e4604(0xae)]),exports[_0x5e4604(0xc3)]['remove'](transports[_0x5e4604(0xae)])),transports[_0x5e4604(0xb9)]=new winston['transports'][(_0x5e4604(0xb0))]({'filename':path[_0x5e4604(0xe7)](exports[_0x5e4604(0xcf)],LOG_FILE_NAME),'level':_0x4cd9df}),transports[_0x5e4604(0xae)]=new winston[(_0x5e4604(0xa3))]['File']({'filename':path['join'](exports[_0x5e4604(0xcf)],DEBUG_LOG_FILE_NAME),'level':_0x4eb729[_0x5e4604(0xde)]}),transports[_0x5e4604(0xd8)]=new winston[(_0x5e4604(0xa3))][(_0x5e4604(0xb0))]({'filename':path[_0x5e4604(0xe7)](exports['logDir'],DEBUG_CLI_LOG_FILE_NAME),'level':_0x4eb729[_0x5e4604(0xde)]}),exports[_0x5e4604(0xd6)][_0x5e4604(0xba)](transports[_0x5e4604(0xb9)]),exports['winstonLogger'][_0x5e4604(0xba)](transports[_0x5e4604(0xae)]),exports[_0x5e4604(0xc3)][_0x5e4604(0xba)](transports[_0x5e4604(0xb9)]),exports[_0x5e4604(0xc3)][_0x5e4604(0xba)](transports[_0x5e4604(0xae)]);};exports['winstonLogger']=new winston[(a122_0x5eee5a(0x9e))](winstonLoggerParams),exports['fileLogger']=new winston[(a122_0x5eee5a(0x9e))](winstonFileLoggerParams),exports['buildLogger']=new winston[(a122_0x5eee5a(0x9e))](BuildLoggerParams),exports[a122_0x5eee5a(0xcf)]=logDir,exports['getLogDir']=()=>{const _0x5515d9=a122_0x5eee5a;return exports[_0x5515d9(0xcf)];},exports[a122_0x5eee5a(0xa3)]=transports,exports[a122_0x5eee5a(0xd1)]=initialize;logDir&&initialize();
|
|
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();
|
package/src/helpers/metadata.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a138_0x1ade(){const _0x275aea=['uQHol','lcnc','./logger','uvfrW','The\x20metadata\x20object\x20is\x20not\x20valid.','getCentralUser','string','3926712FuNfym','./helper','bgVXJ','kzlwp','testRunUUID','./globals','961235AkhGxi','testMeta','6507186BlaFvM','7483615TrrTix','kccDN','3289672bLqytf','8dRyCqR','testMeta-','setGlobal','12187994pTIuJm','getGlobal','iwdKk','warn','5233695MECAmC'];a138_0x1ade=function(){return _0x275aea;};return a138_0x1ade();}function a138_0x1fc9(_0x3da4b9,_0x541efb){const _0x1ade2c=a138_0x1ade();return a138_0x1fc9=function(_0x1fc96f,_0x26729f){_0x1fc96f=_0x1fc96f-0x127;let _0x521113=_0x1ade2c[_0x1fc96f];return _0x521113;},a138_0x1fc9(_0x3da4b9,_0x541efb);}const a138_0x57c1b3=a138_0x1fc9;(function(_0x214904,_0x4fcb01){const _0x193657=a138_0x1fc9,_0x1ce0d8=_0x214904();while(!![]){try{const _0x52f130=parseInt(_0x193657(0x134))/0x1+-parseInt(_0x193657(0x139))/0x2+parseInt(_0x193657(0x141))/0x3+-parseInt(_0x193657(0x12e))/0x4+parseInt(_0x193657(0x137))/0x5+parseInt(_0x193657(0x136))/0x6+-parseInt(_0x193657(0x13d))/0x7*(parseInt(_0x193657(0x13a))/0x8);if(_0x52f130===_0x4fcb01)break;else _0x1ce0d8['push'](_0x1ce0d8['shift']());}catch(_0x3c3d31){_0x1ce0d8['push'](_0x1ce0d8['shift']());}}}(a138_0x1ade,0xe0766));const globals=require(a138_0x57c1b3(0x133)),helper=require(a138_0x57c1b3(0x12f)),logger=require(a138_0x57c1b3(0x129))['winstonLogger'];module['exports']=class TestMetadata{static['set'](_0x5746d4={}){const _0x21b537=a138_0x57c1b3,_0x2387fa={};_0x2387fa[_0x21b537(0x131)]=_0x21b537(0x132),_0x2387fa[_0x21b537(0x12a)]=function(_0x4d49eb,_0x14a342){return _0x4d49eb===_0x14a342;},_0x2387fa['PLdzd']=_0x21b537(0x12d),_0x2387fa[_0x21b537(0x13f)]=function(_0xd95009,_0x594ce2){return _0xd95009<=_0x594ce2;},_0x2387fa[_0x21b537(0x130)]=_0x21b537(0x135),_0x2387fa[_0x21b537(0x138)]=_0x21b537(0x12b);const _0x1c9eee=_0x2387fa,_0x123476=globals['getGlobal'](_0x1c9eee[_0x21b537(0x131)]),_0x546358=_0x5746d4['identifier'];helper[_0x21b537(0x12c)]()[_0x21b537(0x128)]&&(_0x1c9eee[_0x21b537(0x12a)](typeof _0x546358,_0x1c9eee['PLdzd'])&&_0x1c9eee[_0x21b537(0x13f)](_0x546358['length'],0x28)?_0x123476?globals['setGlobal'](_0x21b537(0x13b)+_0x123476,_0x5746d4):globals[_0x21b537(0x13c)](_0x1c9eee[_0x21b537(0x130)],_0x5746d4):logger[_0x21b537(0x140)](_0x1c9eee[_0x21b537(0x138)]));}static['get'](_0x47ddaa){const _0x4fe169=a138_0x57c1b3,_0x2741b0={};_0x2741b0[_0x4fe169(0x127)]=_0x4fe169(0x135);const _0x99b96=_0x2741b0;if(helper[_0x4fe169(0x12c)]()['lcnc'])return globals[_0x4fe169(0x13e)](_0x4fe169(0x13b)+_0x47ddaa)||globals[_0x4fe169(0x13e)](_0x99b96['uQHol'])||{};return{};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a124_0x2a472f=a124_0x4d00;(function(_0x52ee19,_0x4a1eaf){const _0x148194=a124_0x4d00,_0x5070a0=_0x52ee19();while(!![]){try{const _0x22f877=parseInt(_0x148194(0x122))/0x1+parseInt(_0x148194(0x113))/0x2*(parseInt(_0x148194(0x13e))/0x3)+parseInt(_0x148194(0x148))/0x4+-parseInt(_0x148194(0xdc))/0x5*(-parseInt(_0x148194(0xf6))/0x6)+-parseInt(_0x148194(0xf0))/0x7+-parseInt(_0x148194(0x11e))/0x8+parseInt(_0x148194(0x103))/0x9*(-parseInt(_0x148194(0x118))/0xa);if(_0x22f877===_0x4a1eaf)break;else _0x5070a0['push'](_0x5070a0['shift']());}catch(_0x3592e3){_0x5070a0['push'](_0x5070a0['shift']());}}}(a124_0x37fb,0x419d8));const {aiSdkWrapper}=require(a124_0x2a472f(0x12a)),{commandRepository}=require(a124_0x2a472f(0x14b)),PerformanceTester=require(a124_0x2a472f(0x12d)),globals=require('./globals'),{winstonLogger:logger,automationLogger}=require(a124_0x2a472f(0x117)),helper=require(a124_0x2a472f(0xf9)),constants=require(a124_0x2a472f(0xe9)),{DRIVER_EVENT:PerformanceDriverEvents}=require(a124_0x2a472f(0x116)),util=require(a124_0x2a472f(0x104));exports[a124_0x2a472f(0x11f)]=(_0x1d2d47,_0x501a2b)=>{const _0xb5cd95=a124_0x2a472f,_0x294f4f={'IPtgr':_0xb5cd95(0xef),'fowIi':_0xb5cd95(0xcf),'XyVuZ':function(_0x2f6926){return _0x2f6926();},'oNCyL':_0xb5cd95(0x106),'GOuty':function(_0x518677,_0x2a7f21){return _0x518677===_0x2a7f21;},'PRkfG':_0xb5cd95(0x10e),'IZrrg':'aiHeal_isHealingEnabled','rRyLv':_0xb5cd95(0xdf),'Ngvcx':function(_0xc0dc84){return _0xc0dc84();},'ZqfRM':'Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','bwBTp':function(_0x53f255,_0x34decc){return _0x53f255===_0x34decc;},'wGHPh':_0xb5cd95(0x137),'ztTwU':'JavascriptError','fHkgP':_0xb5cd95(0xf3),'KyiWD':function(_0x37493b,_0x70f480){return _0x37493b+_0x70f480;},'OtuTy':_0xb5cd95(0x132),'ZZLeQ':_0xb5cd95(0x11d),'XdxnI':_0xb5cd95(0x11a),'QWQMg':'aiHeal:findElementFailure','rWBUU':function(_0x527928,_0x4db801){return _0x527928&&_0x4db801;},'GSNLD':function(_0x42db01,_0x540a9a){return _0x42db01===_0x540a9a;},'ZVUaj':function(_0x5e41b4,_0xdbfa1d){return _0x5e41b4+_0xdbfa1d;},'CPhrf':'Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','IAWxx':function(_0x3f09d8,_0x381690){return _0x3f09d8+_0x381690;},'PuMAV':_0xb5cd95(0x114),'LzKNE':_0xb5cd95(0x12e),'rdoBp':function(_0x4b522a,_0xcf518a){return _0x4b522a+_0xcf518a;},'OYSwI':_0xb5cd95(0x136),'RebGv':'get','lHduU':_0xb5cd95(0xd1),'xWyee':_0xb5cd95(0xf4),'FHWvz':'Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','kyNdW':function(_0x470629,_0x2f6b57){return _0x470629===_0x2f6b57;},'weXgy':_0xb5cd95(0x140),'crtct':_0xb5cd95(0x149),'WIYdU':function(_0x5d541c,_0x442376){return _0x5d541c===_0x442376;},'YDoUA':_0xb5cd95(0x112),'cFedD':_0xb5cd95(0xe7),'NdHaF':_0xb5cd95(0xca),'OKWxi':_0xb5cd95(0xdb),'wUHBs':_0xb5cd95(0x133)},_0xd03dff=_0x1d2d47['patchExecute']||(helper[_0xb5cd95(0x107)](_0x501a2b,[_0x294f4f['cFedD'],_0x294f4f['NdHaF']])||helper[_0xb5cd95(0x107)](_0x501a2b,[_0x294f4f[_0xb5cd95(0xd5)],_0x294f4f['OKWxi'],_0x294f4f['wUHBs']]));if(!globals[_0xb5cd95(0xd9)](_0x294f4f[_0xb5cd95(0x125)])&&!globals[_0xb5cd95(0xd9)](_0x294f4f[_0xb5cd95(0xeb)])&&_0xd03dff)return;_0x1d2d47[_0xb5cd95(0x131)]=!![],_0x1d2d47[_0xb5cd95(0xf2)]=_0x1d2d47[_0xb5cd95(0x135)],_0x1d2d47['execute']=async _0x7a97aa=>{const _0x176d84=_0xb5cd95,_0x6cc138={'FBWWP':_0x294f4f[_0x176d84(0x125)],'yAVMe':_0x294f4f[_0x176d84(0x11c)],'EwWiR':function(_0x5ea79c,_0xd61d40){const _0x44b459=_0x176d84;return _0x294f4f[_0x44b459(0x119)](_0x5ea79c,_0xd61d40);},'DZCjf':_0x294f4f[_0x176d84(0x111)],'DJFzK':_0x294f4f['ztTwU'],'fuusl':_0x294f4f[_0x176d84(0x13b)],'xKNKe':_0x294f4f[_0x176d84(0xeb)],'TfCur':_0x294f4f[_0x176d84(0x14d)],'nwOEN':function(_0x215dde,_0x260f43){return _0x294f4f['KyiWD'](_0x215dde,_0x260f43);},'wfgoC':_0x294f4f['OtuTy'],'Wctnt':_0x294f4f[_0x176d84(0xf1)],'BYsjx':_0x294f4f[_0x176d84(0x108)],'FqKlX':_0x294f4f[_0x176d84(0x121)],'Jsbht':function(_0x5179a1){const _0x5715dd=_0x176d84;return _0x294f4f[_0x5715dd(0xe5)](_0x5179a1);},'guOAo':function(_0xc70555,_0x150737){const _0x2c6aa9=_0x176d84;return _0x294f4f[_0x2c6aa9(0x138)](_0xc70555,_0x150737);},'MtKWb':function(_0x28ceb5,_0x5da16a){return _0x294f4f['GSNLD'](_0x28ceb5,_0x5da16a);},'vXLEK':function(_0xa4c71,_0x415624){const _0x10b078=_0x176d84;return _0x294f4f[_0x10b078(0x127)](_0xa4c71,_0x415624);},'nhBzb':_0x294f4f['CPhrf'],'NwhLq':function(_0x55bbe3,_0x4daacc){return _0x294f4f['IAWxx'](_0x55bbe3,_0x4daacc);},'UpdmF':function(_0x20d048,_0x5d103f){const _0x500414=_0x176d84;return _0x294f4f[_0x500414(0xdd)](_0x20d048,_0x5d103f);},'CEsjI':_0x294f4f[_0x176d84(0xd7)],'ZYaIa':function(_0x29f936,_0x42df83){const _0x52ec23=_0x176d84;return _0x294f4f[_0x52ec23(0xe3)](_0x29f936,_0x42df83);},'ADbyy':_0x294f4f[_0x176d84(0xf7)],'PeMJh':function(_0x3ef393,_0x4b60d7){const _0x2c909b=_0x176d84;return _0x294f4f[_0x2c909b(0x139)](_0x3ef393,_0x4b60d7);},'zkdpm':function(_0x4a0d55,_0x58c52e){const _0x107157=_0x176d84;return _0x294f4f[_0x107157(0xdd)](_0x4a0d55,_0x58c52e);},'YsbSS':function(_0x5ca219,_0x414f32){return _0x294f4f['rdoBp'](_0x5ca219,_0x414f32);},'EYDOr':_0x294f4f['OYSwI'],'wfXWf':function(_0x4ddee8,_0x2ec339){return _0x294f4f['GOuty'](_0x4ddee8,_0x2ec339);},'ydeQl':_0x294f4f[_0x176d84(0x10d)],'qOQNe':_0x294f4f[_0x176d84(0x141)],'HcSiM':_0x294f4f['xWyee'],'eGfou':_0x294f4f['FHWvz']};try{const _0x1ce0cc={};_0x1ce0cc['command']=_0x7a97aa[_0x176d84(0xe1)],await PerformanceTester[_0x176d84(0x124)](PerformanceDriverEvents['PRE_EXECUTE'],async()=>{const _0x31510b=_0x176d84;if(!commandRepository[_0x31510b(0x10f)]()&&globals[_0x31510b(0xd9)](_0x294f4f[_0x31510b(0x125)])){const _0x433c1b=PerformanceTester[_0x31510b(0x124)](_0x294f4f[_0x31510b(0x126)],async()=>{const _0x25e2c7=_0x31510b;try{commandRepository['setTcgTokenStatus'](!![]),await aiSdkWrapper['setTcgToken']((await _0x1d2d47[_0x25e2c7(0x14c)]())[_0x25e2c7(0xe0)]());const _0x17c6df=globals[_0x25e2c7(0xd9)](_0x6cc138[_0x25e2c7(0x12f)]);_0x17c6df&&commandRepository['setAiSessionTimeStamp']((await _0x1d2d47['getSession']())[_0x25e2c7(0xe0)]());}catch(_0x53ad6c){logger[_0x25e2c7(0xcd)](_0x25e2c7(0x123)+_0x53ad6c);}});await _0x294f4f['XyVuZ'](_0x433c1b);}},_0x1ce0cc)();const _0x2dbb16=await _0x1d2d47[_0x176d84(0xf2)](_0x7a97aa);try{if(_0x294f4f['kyNdW'](_0x7a97aa[_0x176d84(0xe1)],_0x294f4f[_0x176d84(0xed)])||_0x294f4f[_0x176d84(0x142)](_0x7a97aa[_0x176d84(0xe1)],_0x294f4f[_0x176d84(0x11b)])){const _0x4fec0d=_0x7a97aa['parameters_']&&_0x7a97aa[_0x176d84(0xd1)][_0x176d84(0xd0)],_0x3c0362=_0x7a97aa['parameters_']&&_0x7a97aa[_0x176d84(0xd1)][_0x176d84(0x100)],_0x28d852=_0x3c0362&&util[_0x176d84(0xfd)]('%j',_0x3c0362);if(_0x4fec0d&&_0x294f4f[_0x176d84(0x12c)](typeof _0x4fec0d,_0x294f4f[_0x176d84(0xde)])){const _0x3865c8=constants[_0x176d84(0x128)][_0x176d84(0xe8)](_0x1524ce=>_0x4fec0d[_0x176d84(0x145)](_0x1524ce)||_0x28d852&&_0x28d852[_0x176d84(0x145)](_0x1524ce));if(_0x3865c8){const _0x2f3672={};_0x2f3672[_0x176d84(0xf8)]=_0x3865c8,_0x2f3672[_0x176d84(0xd8)]=_0x3c0362;const _0x793833={};_0x793833['body']=_0x2dbb16;const _0xb4b53b={};_0xb4b53b[_0x176d84(0x115)]=_0x2f3672,_0xb4b53b[_0x176d84(0x143)]=_0x793833,automationLogger[_0x176d84(0xe2)]('['+new Date()[_0x176d84(0xf5)]()+'][\x20SDK-AUTOMATION\x20]\x20'+util[_0x176d84(0xfd)]('%j',_0xb4b53b));}}}}catch(_0x37d1e6){logger['silly'](_0x176d84(0xee)+_0x37d1e6[_0x176d84(0x13a)]);}return await PerformanceTester[_0x176d84(0x124)](PerformanceDriverEvents[_0x176d84(0xd2)],async()=>{const _0x2dc079=_0x176d84;if(!helper['isBrowserstackInfra']()&&(commandRepository[_0x2dc079(0xcc)]()||globals[_0x2dc079(0xd9)](_0x294f4f['oNCyL']))&&_0x294f4f[_0x2dc079(0xe3)](_0x7a97aa[_0x2dc079(0xe1)],_0x294f4f['PRkfG'])&&!_0x7a97aa[_0x2dc079(0xcb)]&&globals[_0x2dc079(0xd9)](_0x294f4f[_0x2dc079(0x125)])&&globals['getGlobal'](_0x294f4f[_0x2dc079(0xeb)])){const _0x25da0d=new Date(),_0x205c84=PerformanceTester[_0x2dc079(0x124)](_0x294f4f[_0x2dc079(0x120)],async()=>{const _0x29ad8c=_0x2dc079;return await aiSdkWrapper[_0x29ad8c(0x129)](_0x501a2b,_0x1d2d47,_0x7a97aa);});await _0x294f4f[_0x2dc079(0xe5)](_0x205c84);}},{'command':_0x7a97aa[_0x176d84(0xe1)]})(),_0x2dbb16;}catch(_0x7d35a0){await PerformanceTester[_0x176d84(0x124)](PerformanceDriverEvents[_0x176d84(0xd2)],async()=>{const _0x3c56b5=_0x176d84;logger[_0x3c56b5(0x130)](_0x6cc138[_0x3c56b5(0x12b)]);try{if(!helper[_0x3c56b5(0xce)]()&&(_0x6cc138[_0x3c56b5(0x13d)](_0x7d35a0[_0x3c56b5(0xd4)],_0x6cc138['DZCjf'])||_0x6cc138[_0x3c56b5(0x13d)](_0x7d35a0[_0x3c56b5(0xd4)],_0x6cc138[_0x3c56b5(0x10b)]))&&_0x6cc138['EwWiR'](_0x7a97aa[_0x3c56b5(0xe1)],_0x6cc138['fuusl'])&&commandRepository[_0x3c56b5(0xcc)]()&&globals[_0x3c56b5(0xd9)](_0x6cc138[_0x3c56b5(0x12f)])&&globals['getGlobal'](_0x6cc138[_0x3c56b5(0xda)])){_0x6cc138[_0x3c56b5(0x13d)](_0x7a97aa[_0x3c56b5(0xd1)]['using'],_0x6cc138[_0x3c56b5(0x14a)])?logger['info'](_0x6cc138[_0x3c56b5(0xe4)](_0x6cc138['nwOEN'](_0x6cc138[_0x3c56b5(0xfe)],_0x7a97aa[_0x3c56b5(0xd1)][_0x3c56b5(0x105)]),_0x6cc138['Wctnt'])):logger[_0x3c56b5(0xd3)](_0x6cc138[_0x3c56b5(0xe4)](_0x6cc138['nwOEN'](_0x6cc138[_0x3c56b5(0xe4)](_0x6cc138['nwOEN'](_0x6cc138[_0x3c56b5(0x13c)],_0x7a97aa[_0x3c56b5(0xd1)][_0x3c56b5(0x110)]),':\x20'),_0x7a97aa[_0x3c56b5(0xd1)]['value']),_0x6cc138['Wctnt']));const _0x5e4110=PerformanceTester[_0x3c56b5(0x124)](_0x6cc138['FqKlX'],async()=>{const _0x5c9e33=_0x3c56b5;return await aiSdkWrapper[_0x5c9e33(0xd6)](_0x501a2b,_0x1d2d47,_0x7a97aa);}),_0xdf24d1=new Date(),{locatorType:_0x421de8,locatorValue:_0x1fd334,commandHealed:_0x16a4bb}=await _0x6cc138[_0x3c56b5(0x13f)](_0x5e4110);if(_0x6cc138['guOAo'](_0x421de8,_0x1fd334)){_0x7a97aa[_0x3c56b5(0xd1)][_0x3c56b5(0x110)]=_0x421de8,_0x7a97aa[_0x3c56b5(0xd1)][_0x3c56b5(0x105)]=_0x1fd334,_0x7a97aa['skipHealingSuccess']=!![];const _0x4dcadb=_0x1d2d47['execute'](_0x7a97aa);return _0x6cc138[_0x3c56b5(0x134)](_0x421de8,_0x6cc138[_0x3c56b5(0x14a)])?logger[_0x3c56b5(0xd3)](_0x6cc138[_0x3c56b5(0x147)](_0x6cc138[_0x3c56b5(0xfa)],_0x1fd334)):logger[_0x3c56b5(0xd3)](_0x6cc138['vXLEK'](_0x6cc138['NwhLq'](_0x6cc138['UpdmF'](_0x6cc138[_0x3c56b5(0x144)],_0x421de8),':\x20'),_0x1fd334)),_0x4dcadb;}else!_0x16a4bb&&(_0x6cc138[_0x3c56b5(0xea)](_0x421de8,_0x6cc138[_0x3c56b5(0x14a)])?logger['info'](_0x6cc138['vXLEK'](_0x6cc138[_0x3c56b5(0x146)],_0x7a97aa[_0x3c56b5(0xd1)][_0x3c56b5(0x105)])):logger['info'](_0x6cc138[_0x3c56b5(0x102)](_0x6cc138[_0x3c56b5(0xfb)](_0x6cc138[_0x3c56b5(0x14e)](_0x6cc138[_0x3c56b5(0x101)],_0x7a97aa['parameters_']['using']),':\x20'),_0x7a97aa[_0x3c56b5(0xd1)][_0x3c56b5(0x105)])));}!_0xd03dff&&_0x6cc138[_0x3c56b5(0xe6)](_0x7a97aa[_0x3c56b5(0xe1)],_0x6cc138[_0x3c56b5(0x10c)])&&helper[_0x3c56b5(0x107)](_0x7a97aa,[_0x6cc138[_0x3c56b5(0x10a)],_0x6cc138[_0x3c56b5(0xfc)]])&&!!constants[_0x3c56b5(0x109)][_0x3c56b5(0xe8)](_0x1fe41a=>{const _0x33b6ce=_0x3c56b5;return _0x7d35a0[_0x33b6ce(0xff)]()[_0x33b6ce(0x145)](_0x1fe41a);})&&helper['getNudgeLocalNotSetError'](_0x7a97aa[_0x3c56b5(0xd1)][_0x3c56b5(0xf4)],!![]);}catch(_0x165371){logger[_0x3c56b5(0x130)](_0x6cc138[_0x3c56b5(0xec)],_0x165371);}},{'success':![],'failure':_0x7d35a0})();throw _0x7d35a0;}};};function a124_0x4d00(_0x5c5808,_0x53a8ef){const _0x37fb4c=a124_0x37fb();return a124_0x4d00=function(_0x4d001b,_0x8dcba3){_0x4d001b=_0x4d001b-0xca;let _0x511cdf=_0x37fb4c[_0x4d001b];return _0x511cdf;},a124_0x4d00(_0x5c5808,_0x53a8ef);}function a124_0x37fb(){const _0x2266f7=['MtKWb','execute','Healing\x20failed\x20for\x20command\x20using\x20','NoSuchElementError','rWBUU','IAWxx','message','PRkfG','BYsjx','EwWiR','366YjHbjh','Jsbht','executeAsyncScript','lHduU','GSNLD','response','CEsjI','includes','ADbyy','vXLEK','935048VeddVd','executeScript','TfCur','./ai-sdk/autoHealHelper','getSession','fHkgP','YsbSS','browserstack.local','skipHealingSuccess','isSelfHealEnabled','error','isBrowserstackInfra','aiHeal:setToken','script','parameters_','POST_EXECUTE','info','name','cFedD','handleFailure','PuMAV','parameters','getGlobal','xKNKe','bstack:options','270bMibZY','KyiWD','YDoUA','aiHeal:findElementSuccess','getId','name_','silly','GOuty','nwOEN','Ngvcx','wfXWf','capability','find','../bin/utils/constants','ZYaIa','IZrrg','eGfou','weXgy','Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20','aiHeal_isAuthenticated','635656zHxPiQ','ZZLeQ','initExecute','css\x20selector','url','toISOString','51666vTyHyK','LzKNE','command','./helper','nhBzb','zkdpm','HcSiM','format','wfgoC','toString','args','EYDOr','PeMJh','2169JVhqCE','util','value','aiSdk_defaultLogDataEnabled','nestedKeyValue','XdxnI','NUDGE_LOCAL_ERRORS','qOQNe','DJFzK','ydeQl','RebGv','findElement','getTcgTokenStatus','using','wGHPh','string','4324xzAbBv','Successfully\x20healed\x20command\x20using\x20new\x20','request','./performance/constants','./logger','28550BcmIVg','bwBTp','findElement\x20command\x20failed\x20with\x20','crtct','ZqfRM',';\x20Trying\x20to\x20heal','1946848APnkfl','overrideExecute','rRyLv','QWQMg','328459OHFfMO','Error\x20in\x20handling\x20TCG\x20Auth:\x20','measureWrapper','IPtgr','fowIi','ZVUaj','AUTOMATION_LOG_COMMANDS','handleSuccess','./ai-sdk/aiSdkWrapper','yAVMe','WIYdU','./performance/performance-tester','Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','FBWWP','debug','patchExecute','findElement\x20command\x20failed\x20with\x20cssPath:\x20','local'];a124_0x37fb=function(){return _0x2266f7;};return a124_0x37fb();}
|
|
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 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a140_0x397064=a140_0x5aab;(function(_0x50d344,_0x3de060){const _0x2977ec=a140_0x5aab,_0xbc514a=_0x50d344();while(!![]){try{const _0x2c313e=parseInt(_0x2977ec(0x177))/0x1*(-parseInt(_0x2977ec(0x171))/0x2)+parseInt(_0x2977ec(0x169))/0x3*(-parseInt(_0x2977ec(0x164))/0x4)+-parseInt(_0x2977ec(0x163))/0x5*(parseInt(_0x2977ec(0x168))/0x6)+-parseInt(_0x2977ec(0x17b))/0x7+-parseInt(_0x2977ec(0x16b))/0x8+-parseInt(_0x2977ec(0x16f))/0x9+parseInt(_0x2977ec(0x17d))/0xa;if(_0x2c313e===_0x3de060)break;else _0xbc514a['push'](_0xbc514a['shift']());}catch(_0x4d6d7){_0xbc514a['push'](_0xbc514a['shift']());}}}(a140_0x31fa,0xb230e));function a140_0x31fa(){const _0x1a1a1a=['115swrRzw','4iagrdy','then','quitCount_','overrideTakeScreenshot','8556ViKXwB','3447750rsjVxi','Vtzce','1906736DmmBxs','./performance/constants','initQuit','kxSNw','4944978yskZYM','toISOString','63502BQzwjI','emit','initScreenshot','TAKE_SCREENSHOT','UiKxO','XJidD','1HCklJE','WVzcS','overrideQuit','end','9496704HUBueH','quit','40881250ALsHVp','patchScreenshot','true','bs:addLog:','patchQuit','Cahcd','takeScreenshot','O11y_EVENTS','pid','TEST_SCREENSHOT'];a140_0x31fa=function(){return _0x1a1a1a;};return a140_0x31fa();}function a140_0x5aab(_0x32a428,_0x3c356c){const _0x31faeb=a140_0x31fa();return a140_0x5aab=function(_0x5aab66,_0x2ed4c0){_0x5aab66=_0x5aab66-0x161;let _0x9f6ee2=_0x31faeb[_0x5aab66];return _0x9f6ee2;},a140_0x5aab(_0x32a428,_0x3c356c);}const PerformanceTester=require('./performance/performance-tester'),O11yEvents=require(a140_0x397064(0x16c))[a140_0x397064(0x184)];exports[a140_0x397064(0x167)]=_0x13620a=>{const _0x4d45a8=a140_0x397064,_0x4febe8={'WVzcS':_0x4d45a8(0x162),'UiKxO':function(_0x198d3e,_0x50ba0e){return _0x198d3e(_0x50ba0e);},'UDqVK':function(_0x2cda20,_0x179768){return _0x2cda20!==_0x179768;},'Cahcd':_0x4d45a8(0x17f)};if(_0x4febe8['UDqVK'](process['env']['BS_TESTOPS_ALLOW_SCREENSHOTS'],_0x4febe8[_0x4d45a8(0x182)]))return;if(_0x13620a['patchScreenshot'])return;_0x13620a[_0x4d45a8(0x17e)]=!![],_0x13620a['initScreenshot']=_0x13620a['takeScreenshot'],_0x13620a[_0x4d45a8(0x183)]=()=>{const _0x4b5eec=_0x4d45a8,_0x45e2d0={'BszJt':_0x4febe8[_0x4b5eec(0x178)],'Vtzce':function(_0xfc0eba,_0x403fcd){const _0x1915df=_0x4b5eec;return _0x4febe8[_0x1915df(0x175)](_0xfc0eba,_0x403fcd);}};return new Promise(function(_0x4906d5,_0xea9b13){const _0x3a43cc=_0x4b5eec;_0x13620a[_0x3a43cc(0x173)]()[_0x3a43cc(0x165)](_0x4d3e52=>{const _0x27002a=_0x3a43cc;PerformanceTester['start'](O11yEvents[_0x27002a(0x174)]),process[_0x27002a(0x172)](_0x27002a(0x180)+process[_0x27002a(0x161)],{'timestamp':new Date()[_0x27002a(0x170)](),'message':_0x4d3e52,'kind':_0x45e2d0['BszJt']}),_0x45e2d0[_0x27002a(0x16a)](_0x4906d5,_0x4d3e52),PerformanceTester[_0x27002a(0x17a)](O11yEvents[_0x27002a(0x174)]);})['catch'](_0x965d90=>{const _0x57763e=_0x3a43cc;PerformanceTester[_0x57763e(0x17a)](O11yEvents['TAKE_SCREENSHOT']),_0x45e2d0[_0x57763e(0x16a)](_0xea9b13,_0x965d90);});});};},exports[a140_0x397064(0x179)]=(_0x3cca48,_0x49773a=null)=>{const _0x2fc223=a140_0x397064,_0x42380f={'kxSNw':function(_0x43ff26){return _0x43ff26();},'XJidD':function(_0x11621e,_0x1ef8b8){return _0x11621e>_0x1ef8b8;}};if(_0x3cca48[_0x2fc223(0x181)])return;_0x3cca48[_0x2fc223(0x181)]=!![],_0x3cca48[_0x2fc223(0x16d)]=_0x3cca48[_0x2fc223(0x17c)],_0x3cca48[_0x2fc223(0x17c)]=()=>{const _0x4ec9f3=_0x2fc223;if(_0x49773a){_0x49773a[_0x4ec9f3(0x166)]+=0x1;if(_0x42380f[_0x4ec9f3(0x176)](_0x49773a['quitCount_'],0x1))return _0x3cca48[_0x4ec9f3(0x16d)]();}else{_0x3cca48[_0x4ec9f3(0x166)]+=0x1;if(_0x42380f['XJidD'](_0x3cca48[_0x4ec9f3(0x166)],0x1))return _0x3cca48[_0x4ec9f3(0x16d)]();}return new Promise(function(_0x522ebf){const _0x1b3f0b=_0x4ec9f3;_0x42380f[_0x1b3f0b(0x16e)](_0x522ebf);});};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a141_0x55bd(_0x5214fe,_0x230bbe){const _0x5e051b=a141_0x5e05();return a141_0x55bd=function(_0x55bd19,_0xee3e46){_0x55bd19=_0x55bd19-0x1dc;let _0x1e9632=_0x5e051b[_0x55bd19];return _0x1e9632;},a141_0x55bd(_0x5214fe,_0x230bbe);}const a141_0x38e87d=a141_0x55bd;(function(_0x2669da,_0xf2e77f){const _0x407e4b=a141_0x55bd,_0x5e6b9e=_0x2669da();while(!![]){try{const _0x40441f=-parseInt(_0x407e4b(0x229))/0x1*(-parseInt(_0x407e4b(0x202))/0x2)+parseInt(_0x407e4b(0x1ea))/0x3*(parseInt(_0x407e4b(0x216))/0x4)+-parseInt(_0x407e4b(0x1e3))/0x5+parseInt(_0x407e4b(0x21f))/0x6+parseInt(_0x407e4b(0x22e))/0x7+parseInt(_0x407e4b(0x215))/0x8*(-parseInt(_0x407e4b(0x1ef))/0x9)+-parseInt(_0x407e4b(0x21c))/0xa*(parseInt(_0x407e4b(0x1e2))/0xb);if(_0x40441f===_0xf2e77f)break;else _0x5e6b9e['push'](_0x5e6b9e['shift']());}catch(_0x5e7e8){_0x5e6b9e['push'](_0x5e6b9e['shift']());}}}(a141_0x5e05,0x75c46));function a141_0x5e05(){const _0x1af6ab=['app:exec','jlSII','ZsfSE','automate','YzxXF','pipe','../../helpers/testhub/constants','2071592CcCvIi','44468kQUmJq','ZXdRL','http://localhost:5338','error','data','assign','27310DWjeTE','percy.json','Percy\x20config\x20created\x20at\x20','1810416RZLaZD','nodeRequest','../../helpers/performance/performance-tester','GET','isRunning','fetchPercyToken','GODYB','writeFile','./PercyBinary','stdout','299248cfQgSX','join','healthcheck','env','../../helpers/performance/constants','12180MsiBin','api/app_percy/get_project_token?name=','path','AdqUK','../logger','JGpaj','xWPsI','exec','ujjSA','eUptg','2519pPlAnC','728870fVYpdq','kKrgS','percyOptions','BROWSERSTACK_TESTHUB_UUID','CTSqh','percy/healthcheck','child_process','84cRXcvu','neFWd','push','start','winstonLogger','9vfWPAv','iBnDl','flags','qkDCZ','debug','ZAwhW','vUbPT','close','xWcGw','Percy\x20healthcheck\x20successful','prnpJ','vdEDl','vvsXa','isProcessRunning','../helper','createPercyConfig','percy.log','getBinaryPath','kNjif','6chXPVj','stop','version','NRoni','app','BzgvS','projectName','end','ENV_VAR','token','DOWNLOAD','stderr'];a141_0x5e05=function(){return _0x1af6ab;};return a141_0x5e05();}const fs=require('fs'),path=require(a141_0x38e87d(0x230)),os=require('os'),{spawn}=require(a141_0x38e87d(0x1e9)),helper=require(a141_0x38e87d(0x1fd)),logger=require(a141_0x38e87d(0x1dc))[a141_0x38e87d(0x1ee)],{getLogDir}=require(a141_0x38e87d(0x1dc)),testHubConstants=require(a141_0x38e87d(0x214)),PerformanceTester=require(a141_0x38e87d(0x221)),{PERCY_EVENTS:PerformanceEvents}=require(a141_0x38e87d(0x22d)),PercyBinary=require(a141_0x38e87d(0x227));class Percy{#logfile=path['join'](getLogDir(),a141_0x38e87d(0x1ff));#address=process[a141_0x38e87d(0x22c)]['PERCY_SERVER_ADDRESS']||a141_0x38e87d(0x218);#binaryPath=null;#config=null;#proc=null;#logStream=null;#isApp=![];['isProcessRunning']=![];constructor(_0x3c3bce){this.#config=_0x3c3bce,!!_0x3c3bce['app']&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x129621=a141_0x38e87d;if(!this.#binaryPath){const _0x237551=new PercyBinary();PerformanceTester[_0x129621(0x1ed)](PerformanceEvents[_0x129621(0x20c)]),this.#binaryPath=await _0x237551[_0x129621(0x200)](this.#config),PerformanceTester[_0x129621(0x209)](PerformanceEvents[_0x129621(0x20c)]);}return this.#binaryPath;}async #sleep(_0x1a3165){return new Promise(_0x1696c2=>setTimeout(_0x1696c2,_0x1a3165));}async[a141_0x38e87d(0x22b)](){const _0x241fb4=a141_0x38e87d,_0x3d8806={};_0x3d8806[_0x241fb4(0x212)]='GET',_0x3d8806['xWcGw']=_0x241fb4(0x1e8);const _0x4ea664=_0x3d8806;try{const _0x1c3636=await helper[_0x241fb4(0x220)](_0x4ea664[_0x241fb4(0x212)],_0x4ea664[_0x241fb4(0x1f7)],null,null,this.#address);if(_0x1c3636)return!![];}catch(_0x58e15f){return![];}}async[a141_0x38e87d(0x1ed)](){const _0x4ac998=a141_0x38e87d,_0x396fd2={'neFWd':_0x4ac998(0x20e),'vdEDl':_0x4ac998(0x1df),'JGpaj':function(_0x3c1949,_0x4b328d,_0xcb602f,_0x28df12){return _0x3c1949(_0x4b328d,_0xcb602f,_0x28df12);},'eUptg':'close','GODYB':_0x4ac998(0x1f8)},_0xfab8c1=await this.#getBinaryPath(),_0x500d09={};_0x500d09[_0x4ac998(0x1f1)]='a',this.#logStream=fs['createWriteStream'](this.#logfile,_0x500d09);const _0x27853c=await this[_0x4ac998(0x224)](),_0x48dd92=await this['createPercyConfig']();if(!_0x27853c)return![];const _0x5c8d31=[(this.#isApp?_0x396fd2[_0x4ac998(0x1eb)]:_0x396fd2[_0x4ac998(0x1fa)])+':start'];_0x48dd92&&_0x5c8d31[_0x4ac998(0x1ec)]('-c',_0x48dd92);this.#proc=_0x396fd2[_0x4ac998(0x1dd)](spawn,_0xfab8c1,_0x5c8d31,{'env':Object[_0x4ac998(0x21b)](process[_0x4ac998(0x22c)],{'PERCY_TOKEN':_0x27853c,'TH_BUILD_UUID':process[_0x4ac998(0x22c)][testHubConstants[_0x4ac998(0x20a)][_0x4ac998(0x1e6)]]})}),this.#proc[_0x4ac998(0x228)][_0x4ac998(0x213)](this.#logStream),this.#proc[_0x4ac998(0x20d)][_0x4ac998(0x213)](this.#logStream),this[_0x4ac998(0x1fc)]=!![];var _0x292458=this;this.#proc['on'](_0x396fd2[_0x4ac998(0x1e1)],function(_0xc4dfc7){const _0x2a0cbf=_0x4ac998;_0x292458[_0x2a0cbf(0x1fc)]=![];});do{const _0x6f0609=await this['healthcheck']();if(_0x6f0609)return logger['debug'](_0x396fd2[_0x4ac998(0x225)]),!![];await this.#sleep(0x3e8);}while(this['isProcessRunning']);return![];}async[a141_0x38e87d(0x203)](){const _0x391a94=a141_0x38e87d,_0x525b2c={'kKrgS':function(_0x71ec21,_0x39d727){return _0x71ec21(_0x39d727);},'ZAwhW':function(_0x26f31e,_0x434015,_0x187ec1){return _0x26f31e(_0x434015,_0x187ec1);},'kNjif':'exec:stop','xWPsI':_0x391a94(0x1f6)},_0x20cc61=await this.#getBinaryPath();return new Promise((_0x55513d,_0x10cfee)=>{const _0x1d1f13=_0x391a94,_0x582e21={'AdqUK':function(_0x22fb22,_0x3abcb8){const _0x100f72=a141_0x55bd;return _0x525b2c[_0x100f72(0x1e4)](_0x22fb22,_0x3abcb8);}},_0xc46244=_0x525b2c[_0x1d1f13(0x1f4)](spawn,_0x20cc61,[_0x525b2c[_0x1d1f13(0x201)]]);_0xc46244['on'](_0x525b2c[_0x1d1f13(0x1de)],_0x33aa4d=>{const _0x5b00db=_0x1d1f13;this[_0x5b00db(0x1fc)]=![],this.#logStream&&(this.#logStream['end'](),this.#logStream=null),_0x582e21[_0x5b00db(0x231)](_0x55513d,_0x33aa4d);});});}[a141_0x38e87d(0x223)](){const _0x19fac0=a141_0x38e87d;return this[_0x19fac0(0x1fc)];}async['fetchPercyToken'](){const _0x217b9c=a141_0x38e87d,_0xe5041c={};_0xe5041c['ZXdRL']=_0x217b9c(0x206),_0xe5041c[_0x217b9c(0x207)]=_0x217b9c(0x211),_0xe5041c[_0x217b9c(0x1f2)]=_0x217b9c(0x222),_0xe5041c[_0x217b9c(0x1f0)]='Percy\x20fetch\x20token\x20success';const _0x4dcef2=_0xe5041c,_0x22632e=this.#config[_0x217b9c(0x208)];try{const _0x409326=this.#isApp?_0x4dcef2[_0x217b9c(0x217)]:_0x4dcef2['BzgvS'],_0x5c318a=await helper[_0x217b9c(0x220)](_0x4dcef2[_0x217b9c(0x1f2)],_0x217b9c(0x22f)+_0x22632e+'&type='+_0x409326,{},this.#config),_0x404ffa=_0x5c318a[_0x217b9c(0x21a)];return logger['debug'](_0x4dcef2[_0x217b9c(0x1f0)]),_0x404ffa[_0x217b9c(0x20b)];}catch(_0x1730c4){return logger[_0x217b9c(0x219)]('Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20'+_0x1730c4),null;}}async[a141_0x38e87d(0x1fe)](){const _0x4ab055=a141_0x38e87d,_0xa4347c={'ZsfSE':function(_0x251243,_0xe183b1){return _0x251243(_0xe183b1);},'prnpJ':function(_0x473b22,_0x156d03){return _0x473b22+_0x156d03;},'CdMfp':_0x4ab055(0x21e),'CTSqh':function(_0x1358d7,_0x37f965){return _0x1358d7(_0x37f965);},'vvsXa':_0x4ab055(0x21d)};if(!this.#config['percyOptions'])return null;const _0x5575dd=path[_0x4ab055(0x22a)](os['tmpdir'](),_0xa4347c[_0x4ab055(0x1fb)]),_0x238b95=this.#config[_0x4ab055(0x1e5)];return!_0x238b95[_0x4ab055(0x204)]&&(_0x238b95['version']='2'),new Promise((_0x326726,_0x3c3a70)=>{const _0x199258=_0x4ab055,_0x26921e={'jlSII':function(_0x2dceca,_0x5331b8){const _0x3cdce9=a141_0x55bd;return _0xa4347c[_0x3cdce9(0x210)](_0x2dceca,_0x5331b8);},'NRoni':function(_0x49b8f6,_0x434717){const _0x57cd05=a141_0x55bd;return _0xa4347c[_0x57cd05(0x1f9)](_0x49b8f6,_0x434717);},'vUbPT':_0xa4347c['CdMfp'],'ujjSA':function(_0x3d0e09,_0x12effe){const _0x5d795a=a141_0x55bd;return _0xa4347c[_0x5d795a(0x1e7)](_0x3d0e09,_0x12effe);}};fs[_0x199258(0x226)](_0x5575dd,JSON['stringify'](_0x238b95),_0x32b0ea=>{const _0x5bf95a=_0x199258;_0x32b0ea&&(logger[_0x5bf95a(0x219)]('Error\x20creating\x20percy\x20config:\x20'+_0x32b0ea),_0x26921e[_0x5bf95a(0x20f)](_0x326726,null)),logger[_0x5bf95a(0x1f3)](_0x26921e[_0x5bf95a(0x205)](_0x26921e[_0x5bf95a(0x1f5)],_0x5575dd)),_0x26921e[_0x5bf95a(0x1e0)](_0x326726,_0x5575dd);});});}}module['exports']=Percy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a127_0x4d59(_0x1ba6f2,_0x20e5a0){const _0x336cd5=a127_0x336c();return a127_0x4d59=function(_0x4d590d,_0x31c8f9){_0x4d590d=_0x4d590d-0x12c;let _0x23483a=_0x336cd5[_0x4d590d];return _0x23483a;},a127_0x4d59(_0x1ba6f2,_0x20e5a0);}const a127_0x1fe38e=a127_0x4d59;(function(_0x3a1a9c,_0x387539){const _0x29774c=a127_0x4d59,_0x3f2dcf=_0x3a1a9c();while(!![]){try{const _0x3dd04e=-parseInt(_0x29774c(0x1a7))/0x1*(-parseInt(_0x29774c(0x16b))/0x2)+-parseInt(_0x29774c(0x163))/0x3+-parseInt(_0x29774c(0x18b))/0x4+-parseInt(_0x29774c(0x1ab))/0x5*(-parseInt(_0x29774c(0x134))/0x6)+-parseInt(_0x29774c(0x14f))/0x7*(parseInt(_0x29774c(0x140))/0x8)+-parseInt(_0x29774c(0x1ba))/0x9+-parseInt(_0x29774c(0x137))/0xa*(-parseInt(_0x29774c(0x170))/0xb);if(_0x3dd04e===_0x387539)break;else _0x3f2dcf['push'](_0x3f2dcf['shift']());}catch(_0x16436d){_0x3f2dcf['push'](_0x3f2dcf['shift']());}}}(a127_0x336c,0xcfacb));function a127_0x336c(){const _0x4e4f54=['LNAME','jVVVq','match','QiwST','ygcCE','pipe','platform','106168WWSUCW','YUmGE','extractAndSaveBinary','CQubd','VuCVG','readEntry','Saved\x20new\x20ETag\x20for\x20percy\x20binary','NRvYM','nXqNC','0755','statSync','then','jGhHg','pnYba','../logger','665SjCNMU','https-proxy-agent','CTqPG','lazyEntries','writeFileSync','warn','hmRem','pfaJN','/percy-osx.zip','/Users/','zBxiz','host','uIHiP','WAzVq','close','accessSync','USERPROFILE','HOMEPATH','HOME','percy.exe','2351865QAgfim','test','fjmlB','/percy-win.zip','dgOCw','bRHzI','entry','data','3526MeIlmB','linux','.browserstack','getBinaryPath','New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','3421JpOKvQ','darwin','readFileSync','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','--version','env','zFMvH','binaryPath','statusCode','UAdQi','jFRut','url','createWriteStream','gMwCg','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20','SPCnn','function','fUXSh','yauzl','tmpdir','getuid','download','utf8','fileName','mkdirSync','DKUrQ','R_OK','1652956aVPnkE','bYxHI','headers','join','error','TqtQB','hwGLm','child_process','validateBinary','useCaCertificate','qebGG','length','fRGUt','destroy','https://github.com/percy/cli/releases/latest/download','mMvqT','QRXcU','/root','EYlvz','percy','.etag','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20','trim','.zip','OiUdc','LOGNAME','lLxCd','EGhHy','357bBaYFc','KGHNi','dRbuf','exports','15515KsexbR','proxyHost','OAgjz','HOMEDRIVE','win32','gVtug','rQozp','JvYOI','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20','chmod','stdout','end','UOGqW','/percy-linux.zip','follow-redirects','12516723TaGDSh','VUbzo','agent','openReadStream','proxyPort','debug','ItWRY','X_OK','parse','XVMZS','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','If-None-Match','once','EVsno','hpzUh','Failed\x20to\x20read\x20ETag\x20file:\x20','needsUpdate','Connection','xYcSH','642qOKqVj','PeQSI','open','120190oVZtwy','qLkpT'];a127_0x336c=function(){return _0x4e4f54;};return a127_0x336c();}const {https}=require(a127_0x1fe38e(0x1b9)),url=require(a127_0x1fe38e(0x17b)),yauzl=require(a127_0x1fe38e(0x182)),fs=require('fs'),path=require('path'),os=require('os'),{spawn}=require(a127_0x1fe38e(0x192)),HttpsProxyAgent=require(a127_0x1fe38e(0x150)),logger=require(a127_0x1fe38e(0x14e))['winstonLogger'];class PercyBinary{#hostOS=process[a127_0x1fe38e(0x13f)];#httpPath=null;#binaryName=a127_0x1fe38e(0x19e);#orderedPaths=[path[a127_0x1fe38e(0x18e)](this.#homedir(),a127_0x1fe38e(0x16d)),process['cwd'](),os[a127_0x1fe38e(0x183)]()];constructor(){const _0x34b261=a127_0x1fe38e,_0x4b9f78={};_0x4b9f78['qebGG']=_0x34b261(0x199),_0x4b9f78['hpzUh']=function(_0x28c5a5,_0x26e4ff){return _0x28c5a5+_0x26e4ff;},_0x4b9f78[_0x34b261(0x13d)]=_0x34b261(0x157),_0x4b9f78['sgzVj']=_0x34b261(0x166),_0x4b9f78[_0x34b261(0x13c)]=_0x34b261(0x162),_0x4b9f78[_0x34b261(0x1a9)]=_0x34b261(0x1b8);const _0x112357=_0x4b9f78,_0x31d236=_0x112357[_0x34b261(0x195)];if(this.#hostOS[_0x34b261(0x13b)](/darwin|mac os/i))this.#httpPath=_0x112357[_0x34b261(0x12f)](_0x31d236,_0x112357[_0x34b261(0x13d)]);else this.#hostOS[_0x34b261(0x13b)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x112357[_0x34b261(0x12f)](_0x31d236,_0x112357['sgzVj']),this.#binaryName=_0x112357[_0x34b261(0x13c)]):this.#httpPath=_0x112357[_0x34b261(0x12f)](_0x31d236,_0x112357[_0x34b261(0x1a9)]);}#getAvailableDirs(){const _0x41ca96=a127_0x1fe38e,_0x24d507={};_0x24d507[_0x41ca96(0x159)]=function(_0x27225f,_0x3992d6){return _0x27225f<_0x3992d6;},_0x24d507[_0x41ca96(0x1b2)]='Error\x20trying\x20to\x20download\x20percy\x20binary';const _0x95a5b8=_0x24d507;for(var _0x54d484=0x0;_0x95a5b8[_0x41ca96(0x159)](_0x54d484,this.#orderedPaths[_0x41ca96(0x196)]);_0x54d484++){var _0x597309=this.#orderedPaths[_0x54d484];if(this.#makePath(_0x597309))return _0x597309;}throw new Error(_0x95a5b8[_0x41ca96(0x1b2)]);}#makePath(_0x9ce188){const _0x1d9407=a127_0x1fe38e;try{return _0x9ce188&&!this.#checkPath(_0x9ce188)&&fs[_0x1d9407(0x188)](_0x9ce188),!![];}catch{return![];}}#checkPath(_0x164326,_0x45f8f6){const _0x1a8dd1=a127_0x1fe38e,_0x33bbc7={};_0x33bbc7['mMvqT']=function(_0x3b7e95,_0x1efa60){return _0x3b7e95|_0x1efa60;},_0x33bbc7[_0x1a8dd1(0x141)]=function(_0x5364fd,_0x557bf0){return _0x5364fd!==_0x557bf0;},_0x33bbc7['uIHiP']='undefined';const _0x547f12=_0x33bbc7;_0x45f8f6=_0x45f8f6||_0x547f12[_0x1a8dd1(0x19a)](fs[_0x1a8dd1(0x18a)],fs['W_OK']);try{return fs[_0x1a8dd1(0x15e)](_0x164326,_0x45f8f6),!![];}catch(_0x21b424){if(_0x547f12[_0x1a8dd1(0x141)](typeof fs['accessSync'],_0x547f12[_0x1a8dd1(0x15b)]))return![];try{return fs[_0x1a8dd1(0x14a)](_0x164326),!![];}catch(_0x31901a){return![];}}}#getETagPath(_0x4a393c){const _0x9ebdc3=a127_0x1fe38e;return path['join'](_0x4a393c,this.#binaryName+_0x9ebdc3(0x19f));}#loadETag(_0x22efe8){const _0xd8b9=a127_0x1fe38e,_0x1cee1c={};_0x1cee1c[_0xd8b9(0x144)]=_0xd8b9(0x186);const _0x3d107b=_0x1cee1c,_0xe5bc0b=this.#getETagPath(_0x22efe8);if(this.#checkPath(_0xe5bc0b))try{return fs[_0xd8b9(0x172)](_0xe5bc0b,_0x3d107b['VuCVG'])[_0xd8b9(0x1a1)]();}catch(_0x29f9ce){logger['warn'](_0xd8b9(0x130)+_0x29f9ce);}return null;}#saveETag(_0x533543,_0x2113ad){const _0x27cea0=a127_0x1fe38e,_0x3e5204={};_0x3e5204[_0x27cea0(0x1bb)]=_0x27cea0(0x146);const _0x4a62fb=_0x3e5204;if(!_0x2113ad)return;try{const _0x18cbb6=this.#getETagPath(_0x533543);fs[_0x27cea0(0x153)](_0x18cbb6,_0x2113ad),logger['debug'](_0x4a62fb[_0x27cea0(0x1bb)]);}catch(_0x3661cb){logger[_0x27cea0(0x154)]('Failed\x20to\x20save\x20ETag\x20file:\x20'+_0x3661cb);}}async #handleBinaryDownload(_0x14c2bf,_0x535be6,_0x177bfc){const _0x46908b=a127_0x1fe38e,_0x1b5d33={};_0x1b5d33[_0x46908b(0x19d)]=_0x46908b(0x173);const _0x1df702=_0x1b5d33,_0x4299c8=await this['validateBinary'](_0x14c2bf[_0x46908b(0x177)]);if(!_0x4299c8){logger[_0x46908b(0x18f)](_0x1df702['EYlvz']);const _0x18f829=await this[_0x46908b(0x185)](_0x535be6,_0x177bfc);return _0x18f829[_0x46908b(0x177)];}return _0x14c2bf[_0x46908b(0x177)];}async[a127_0x1fe38e(0x16e)](_0x275bce){const _0x511b9d=a127_0x1fe38e,_0xd9baa9={};_0xd9baa9['UAdQi']='Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)',_0xd9baa9[_0x511b9d(0x147)]=_0x511b9d(0x16f);const _0x418fd2=_0xd9baa9,_0x20de1d=this.#getAvailableDirs(),_0x3da887=path[_0x511b9d(0x18e)](_0x20de1d,this.#binaryName);if(this.#checkPath(_0x3da887,fs[_0x511b9d(0x1c1)])){const _0x5414da=this.#loadETag(_0x20de1d);if(_0x5414da)try{const _0x2db49f=await this['download'](_0x275bce,_0x20de1d,_0x5414da);if(!_0x2db49f['needsUpdate'])return logger[_0x511b9d(0x1bf)](_0x418fd2[_0x511b9d(0x179)]),_0x3da887;return logger['debug'](_0x418fd2[_0x511b9d(0x147)]),await this.#handleBinaryDownload(_0x2db49f,_0x275bce,_0x20de1d);}catch(_0x1a9831){return logger[_0x511b9d(0x154)]('Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20'+_0x1a9831),_0x3da887;}}const _0x455011=await this[_0x511b9d(0x185)](_0x275bce,_0x20de1d);return await this.#handleBinaryDownload(_0x455011,_0x275bce,_0x20de1d);}[a127_0x1fe38e(0x185)](_0x5a9bd1,_0x4a70f8,_0x35d619=null){const _0x32e1e7=a127_0x1fe38e,_0x120680={'gMwCg':function(_0x67d1e,_0x2f4a8e){return _0x67d1e(_0x2f4a8e);},'bRHzI':function(_0x8c69af,_0x5a3161){return _0x8c69af===_0x5a3161;},'EVsno':_0x32e1e7(0x18f),'jFRut':_0x32e1e7(0x15d),'rQozp':function(_0x3fa3da,_0x2c6bed){return _0x3fa3da(_0x2c6bed);},'KGHNi':function(_0x4a008d,_0x5c8a64){return _0x4a008d(_0x5c8a64);},'AYRRs':function(_0x4894a3,_0x2f1e8f){return _0x4894a3+_0x2f1e8f;},'WAzVq':_0x32e1e7(0x1a2)};_0x4a70f8&&!this.#checkPath(_0x4a70f8)&&fs[_0x32e1e7(0x188)](_0x4a70f8);const _0x233034=this.#binaryName,_0x42f319=path[_0x32e1e7(0x18e)](_0x4a70f8,_0x120680['AYRRs'](_0x233034,_0x120680[_0x32e1e7(0x15c)])),_0x796cef=fs[_0x32e1e7(0x17c)](_0x42f319),_0x55a006=url[_0x32e1e7(0x1c2)](this.#httpPath);if(_0x5a9bd1[_0x32e1e7(0x1ac)]&&_0x5a9bd1['proxyPort']){const _0x333b29={};_0x333b29[_0x32e1e7(0x15a)]=_0x5a9bd1[_0x32e1e7(0x1ac)],_0x333b29['port']=_0x5a9bd1[_0x32e1e7(0x1be)],_0x55a006[_0x32e1e7(0x1bc)]=new HttpsProxyAgent(_0x333b29);}if(_0x5a9bd1[_0x32e1e7(0x194)])try{_0x55a006['ca']=fs[_0x32e1e7(0x172)](_0x5a9bd1[_0x32e1e7(0x194)]);}catch(_0x50ef4c){logger[_0x32e1e7(0x18f)](_0x32e1e7(0x1a0)+_0x50ef4c);}if(_0x35d619){const _0x469771={};_0x469771[_0x32e1e7(0x12c)]=_0x35d619,_0x469771[_0x32e1e7(0x132)]=_0x120680[_0x32e1e7(0x17a)],_0x55a006[_0x32e1e7(0x18d)]=_0x469771;}else{const _0x2d1c1f={};_0x2d1c1f[_0x32e1e7(0x132)]=_0x120680[_0x32e1e7(0x17a)],_0x55a006[_0x32e1e7(0x18d)]=_0x2d1c1f;}return new Promise((_0x5813cd,_0x355c0b)=>{const _0x589074=_0x32e1e7,_0x225604={'qLkpT':function(_0x1f8760,_0x3f6451){const _0x420224=a127_0x4d59;return _0x120680[_0x420224(0x1a8)](_0x1f8760,_0x3f6451);}};https['get'](_0x55a006,_0x3b974b=>{const _0x505b51=a127_0x4d59,_0x2d3631={'QRXcU':function(_0x432525,_0x51d0fb){return _0x120680['gMwCg'](_0x432525,_0x51d0fb);}};if(_0x35d619&&_0x120680[_0x505b51(0x168)](_0x3b974b[_0x505b51(0x178)],0x130)){_0x796cef[_0x505b51(0x198)]();const _0x4b457={};_0x4b457[_0x505b51(0x131)]=![],_0x120680[_0x505b51(0x17d)](_0x5813cd,_0x4b457);return;}const _0x1d1908=_0x3b974b[_0x505b51(0x18d)]['etag'];_0x1d1908&&this.#saveETag(_0x4a70f8,_0x1d1908),_0x3b974b[_0x505b51(0x13e)](_0x796cef),_0x3b974b['on'](_0x120680[_0x505b51(0x12e)],function(_0x2eb377){const _0x5f3e12=_0x505b51;logger[_0x5f3e12(0x18f)](_0x5f3e12(0x1c4)+_0x2eb377),_0x2d3631[_0x5f3e12(0x19b)](_0x355c0b,_0x2eb377);}),_0x796cef['on'](_0x120680[_0x505b51(0x12e)],function(_0xfa1478){const _0x3fa99d=_0x505b51;logger[_0x3fa99d(0x18f)](_0x3fa99d(0x1b3)+_0xfa1478),_0x225604[_0x3fa99d(0x138)](_0x355c0b,_0xfa1478);}),_0x796cef['on'](_0x120680[_0x505b51(0x17a)],()=>{const _0x2abebf=_0x505b51;this['extractAndSaveBinary'](_0x42f319,_0x4a70f8)[_0x2abebf(0x14b)](_0x28222e=>_0x5813cd({'needsUpdate':!![],'binaryPath':_0x28222e}))['catch'](_0x355c0b);});})['on'](_0x120680[_0x589074(0x12e)],function(_0x3177da){const _0x2b2ccd=_0x589074;logger[_0x2b2ccd(0x18f)](_0x2b2ccd(0x17e)+_0x3177da),_0x120680[_0x2b2ccd(0x1b1)](_0x355c0b,_0x3177da);});});}[a127_0x1fe38e(0x142)](_0x6306a5,_0x260c2b){const _0x30f780=a127_0x1fe38e,_0x574f5b={'fUXSh':function(_0x4eff4b,_0x331a4e){return _0x4eff4b(_0x331a4e);},'fRGUt':_0x30f780(0x169),'fjmlB':_0x30f780(0x18f),'nXqNC':_0x30f780(0x1b6),'aiJOy':function(_0x4b42f2,_0x75d87d){return _0x4b42f2===_0x75d87d;},'KhtFa':function(_0x17aefa,_0x4e9067){return _0x17aefa(_0x4e9067);},'zFMvH':_0x30f780(0x149)},_0xe8705=this.#binaryName,_0x286ec8=path[_0x30f780(0x18e)](_0x260c2b,_0xe8705);return new Promise((_0x132d3b,_0xbdc1c1)=>{const _0x1fbea3=_0x30f780,_0x53e489={'CQubd':function(_0x8e6e39,_0x4f298e){const _0x952093=a127_0x4d59;return _0x574f5b[_0x952093(0x181)](_0x8e6e39,_0x4f298e);},'UOGqW':_0x574f5b['nXqNC'],'pfaJN':function(_0x4728cc,_0x345d1b){return _0x574f5b['aiJOy'](_0x4728cc,_0x345d1b);},'jVVVq':function(_0x4b664e,_0x438aee){return _0x574f5b['KhtFa'](_0x4b664e,_0x438aee);},'Tqxqx':_0x574f5b[_0x1fbea3(0x176)]},_0x356ac2={};_0x356ac2[_0x1fbea3(0x152)]=!![],yauzl[_0x1fbea3(0x136)](_0x6306a5,_0x356ac2,function(_0x2a73e2,_0x45d5e6){const _0x1e4337=_0x1fbea3;_0x2a73e2&&_0x574f5b[_0x1e4337(0x181)](_0xbdc1c1,_0x2a73e2),_0x45d5e6[_0x1e4337(0x145)](),_0x45d5e6['on'](_0x574f5b[_0x1e4337(0x197)],_0x4a12e1=>{const _0x173bc7=_0x1e4337,_0x226c23={'OAgjz':function(_0x2a8e74,_0xe389ce){return _0x53e489['CQubd'](_0x2a8e74,_0xe389ce);},'xYcSH':_0x53e489[_0x173bc7(0x1b7)]};if(/\/$/[_0x173bc7(0x164)](_0x4a12e1['fileName']))_0x45d5e6[_0x173bc7(0x145)]();else{const _0xc87f14=fs[_0x173bc7(0x17c)](path['join'](_0x260c2b,_0x4a12e1[_0x173bc7(0x187)]));_0x45d5e6[_0x173bc7(0x1bd)](_0x4a12e1,function(_0x24b0cb,_0x552e64){const _0x284af1=_0x173bc7;_0x24b0cb&&_0x226c23[_0x284af1(0x1ad)](_0xbdc1c1,_0x2a73e2),_0x552e64['on'](_0x226c23[_0x284af1(0x133)],function(){const _0x265bd4=_0x284af1;_0xc87f14[_0x265bd4(0x15d)](),_0x45d5e6[_0x265bd4(0x145)]();}),_0x552e64[_0x284af1(0x13e)](_0xc87f14);}),_0x53e489[_0x173bc7(0x156)](_0x4a12e1[_0x173bc7(0x187)],_0xe8705)&&_0x45d5e6[_0x173bc7(0x15d)]();}}),_0x45d5e6['on'](_0x574f5b[_0x1e4337(0x165)],_0x1a5820=>{const _0x4f38b1=_0x1e4337;_0x53e489[_0x4f38b1(0x13a)](_0xbdc1c1,_0x1a5820);}),_0x45d5e6[_0x1e4337(0x12d)](_0x574f5b[_0x1e4337(0x148)],()=>{const _0x12af54=_0x1e4337,_0x48e6c9={'ItWRY':function(_0xf1585a,_0x54e4e1){const _0xbaecaa=a127_0x4d59;return _0x53e489[_0xbaecaa(0x143)](_0xf1585a,_0x54e4e1);}};fs[_0x12af54(0x1b4)](_0x286ec8,_0x53e489['Tqxqx'],function(_0x2a5c0f){const _0x1e861a=_0x12af54;_0x2a5c0f&&_0x48e6c9[_0x1e861a(0x1c0)](_0xbdc1c1,_0x2a5c0f),_0x48e6c9[_0x1e861a(0x1c0)](_0x132d3b,_0x286ec8);}),_0x45d5e6[_0x12af54(0x15d)]();});});});}async[a127_0x1fe38e(0x193)](_0x2867ac){const _0x5e757f=a127_0x1fe38e,_0xb0febd={'xYwxW':function(_0x515ace,_0x10fa2d){return _0x515ace(_0x10fa2d);},'hmRem':function(_0x162e86,_0x68defd,_0x3bd702,_0x39df4c){return _0x162e86(_0x68defd,_0x3bd702,_0x39df4c);},'TzWAF':_0x5e757f(0x174),'lkSab':_0x5e757f(0x16a),'hwGLm':_0x5e757f(0x15d)},_0x2da034=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x502fd1,_0x5bde1b)=>{const _0x5a69c9=_0x5e757f,_0x11c3dd={'SPCnn':function(_0x50a5c0,_0x1ad492){return _0xb0febd['xYwxW'](_0x50a5c0,_0x1ad492);}},_0x2f3c57={};_0x2f3c57[_0x5a69c9(0x175)]=process['env'];const _0x2610ff=_0xb0febd[_0x5a69c9(0x155)](spawn,_0x2867ac,[_0xb0febd['TzWAF']],_0x2f3c57);_0x2610ff[_0x5a69c9(0x1b5)]['on'](_0xb0febd['lkSab'],_0x50ec0d=>{const _0xa3b07d=_0x5a69c9;_0x2da034[_0xa3b07d(0x164)](_0x50ec0d)&&_0x11c3dd['SPCnn'](_0x502fd1,!![]);}),_0x2610ff['on'](_0xb0febd[_0x5a69c9(0x191)],()=>{const _0x24b0e1=_0x5a69c9;_0x11c3dd[_0x24b0e1(0x17f)](_0x502fd1,![]);});});}#homedir(){const _0x5433f2=a127_0x1fe38e,_0x1fd288={};_0x1fd288[_0x5433f2(0x151)]=function(_0x2522b1,_0x13cffe){return _0x2522b1===_0x13cffe;},_0x1fd288[_0x5433f2(0x190)]=_0x5433f2(0x180),_0x1fd288[_0x5433f2(0x189)]=function(_0x3abf46,_0x3f0e7d){return _0x3abf46===_0x3f0e7d;},_0x1fd288['bYxHI']=_0x5433f2(0x1af),_0x1fd288[_0x5433f2(0x1a6)]=function(_0xb427b3,_0x54635f){return _0xb427b3+_0x54635f;},_0x1fd288[_0x5433f2(0x135)]=_0x5433f2(0x171),_0x1fd288[_0x5433f2(0x1a3)]=function(_0x2190ea,_0x5a763c){return _0x2190ea+_0x5a763c;},_0x1fd288[_0x5433f2(0x1b0)]=_0x5433f2(0x158),_0x1fd288['uHUKE']=_0x5433f2(0x16c),_0x1fd288['XVMZS']=function(_0x489711,_0x10804c){return _0x489711===_0x10804c;},_0x1fd288[_0x5433f2(0x14c)]=_0x5433f2(0x19c),_0x1fd288['lLxCd']=function(_0x25f261,_0x13336b){return _0x25f261+_0x13336b;},_0x1fd288['pnYba']='/home/',_0x1fd288[_0x5433f2(0x167)]=function(_0x1e4232,_0x413924){return _0x1e4232||_0x413924;};const _0x48e2b2=_0x1fd288;if(_0x48e2b2[_0x5433f2(0x151)](typeof os['homedir'],_0x48e2b2[_0x5433f2(0x190)]))return os['homedir']();const _0x5c7fde=process[_0x5433f2(0x175)],_0x466915=_0x5c7fde[_0x5433f2(0x161)],_0x1e19af=_0x5c7fde[_0x5433f2(0x1a4)]||_0x5c7fde['USER']||_0x5c7fde[_0x5433f2(0x139)]||_0x5c7fde['USERNAME'];if(_0x48e2b2[_0x5433f2(0x189)](process[_0x5433f2(0x13f)],_0x48e2b2[_0x5433f2(0x18c)]))return _0x5c7fde[_0x5433f2(0x15f)]||_0x48e2b2[_0x5433f2(0x1a6)](_0x5c7fde[_0x5433f2(0x1ae)],_0x5c7fde[_0x5433f2(0x160)])||_0x466915||null;if(_0x48e2b2['DKUrQ'](process[_0x5433f2(0x13f)],_0x48e2b2[_0x5433f2(0x135)]))return _0x466915||(_0x1e19af?_0x48e2b2[_0x5433f2(0x1a3)](_0x48e2b2[_0x5433f2(0x1b0)],_0x1e19af):null);if(_0x48e2b2[_0x5433f2(0x189)](process[_0x5433f2(0x13f)],_0x48e2b2['uHUKE']))return _0x466915||(_0x48e2b2[_0x5433f2(0x1c3)](process[_0x5433f2(0x184)](),0x0)?_0x48e2b2[_0x5433f2(0x14c)]:_0x1e19af?_0x48e2b2[_0x5433f2(0x1a5)](_0x48e2b2[_0x5433f2(0x14d)],_0x1e19af):null);return _0x48e2b2['dgOCw'](_0x466915,null);}}module[a127_0x1fe38e(0x1aa)]=PercyBinary;
|
|
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 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a143_0x111b(){var _0x1cf65d=['exports','getName','247062ZhuTvS','7672326ohEIsp','3FVMlJH','5UMPjhl','2323209rzGUwH','7983VltCfl','9581350IvFgph','increment','2328zemPig','109060svBThX','get','1822420qIBhRz'];a143_0x111b=function(){return _0x1cf65d;};return a143_0x111b();}var a143_0x68aac6=a143_0x8d49;(function(_0x1b108d,_0x3dafcc){var _0xfc9a7=a143_0x8d49,_0x146d70=_0x1b108d();while(!![]){try{var _0x4bc999=parseInt(_0xfc9a7(0x1aa))/0x1*(parseInt(_0xfc9a7(0x1a8))/0x2)+parseInt(_0xfc9a7(0x1ac))/0x3+-parseInt(_0xfc9a7(0x1a5))/0x4+parseInt(_0xfc9a7(0x1ab))/0x5*(-parseInt(_0xfc9a7(0x1a9))/0x6)+parseInt(_0xfc9a7(0x1a3))/0x7+parseInt(_0xfc9a7(0x1b0))/0x8*(parseInt(_0xfc9a7(0x1ad))/0x9)+parseInt(_0xfc9a7(0x1ae))/0xa;if(_0x4bc999===_0x3dafcc)break;else _0x146d70['push'](_0x146d70['shift']());}catch(_0x3ae9c6){_0x146d70['push'](_0x146d70['shift']());}}}(a143_0x111b,0x9cdc6));function a143_0x8d49(_0x569a90,_0x17ec97){var _0x111b64=a143_0x111b();return a143_0x8d49=function(_0x8d4960,_0x3f767f){_0x8d4960=_0x8d4960-0x1a3;var _0x521be9=_0x111b64[_0x8d4960];return _0x521be9;},a143_0x8d49(_0x569a90,_0x17ec97);}class PercyCaptureMap{#map={};[a143_0x68aac6(0x1af)](_0xf47f9f,_0x58b9c1){!this.#map[_0xf47f9f]&&(this.#map[_0xf47f9f]={}),!this.#map[_0xf47f9f][_0x58b9c1]&&(this.#map[_0xf47f9f][_0x58b9c1]=0x0),this.#map[_0xf47f9f][_0x58b9c1]++;}[a143_0x68aac6(0x1a7)](_0x3bc903,_0x57ee72){var _0x20a7d2=a143_0x68aac6;return _0x3bc903+'-'+_0x57ee72+'-'+this[_0x20a7d2(0x1a4)](_0x3bc903,_0x57ee72);}['get'](_0x245abe,_0x6de79){if(!this.#map[_0x245abe])return 0x0;if(!this.#map[_0x245abe][_0x6de79])return 0x0;return this.#map[_0x245abe][_0x6de79];}}module[a143_0x68aac6(0x1a6)]=PercyCaptureMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a144_0x36c8ed=a144_0x510f;(function(_0x542bdc,_0x701055){var _0x46b171=a144_0x510f,_0x5f26cc=_0x542bdc();while(!![]){try{var _0x415d29=-parseInt(_0x46b171(0x111))/0x1*(-parseInt(_0x46b171(0x116))/0x2)+-parseInt(_0x46b171(0x11b))/0x3+parseInt(_0x46b171(0x115))/0x4+-parseInt(_0x46b171(0x10d))/0x5+-parseInt(_0x46b171(0x113))/0x6+parseInt(_0x46b171(0x117))/0x7*(parseInt(_0x46b171(0x114))/0x8)+parseInt(_0x46b171(0x11a))/0x9;if(_0x415d29===_0x701055)break;else _0x5f26cc['push'](_0x5f26cc['shift']());}catch(_0x3cd4bf){_0x5f26cc['push'](_0x5f26cc['shift']());}}}(a144_0x3ede,0xeacac));var a144_0xd800a6={};a144_0xd800a6['driver']=[a144_0x36c8ed(0x10f)],a144_0xd800a6['element']=['click','sendKeys'];var a144_0x67a144={};a144_0x67a144[a144_0x36c8ed(0x110)]=[a144_0x36c8ed(0x10f)];var a144_0x2dffe3={};a144_0x2dffe3['element']=[a144_0x36c8ed(0x119)];function a144_0x510f(_0x764e2,_0x5a116c){var _0x3ede4c=a144_0x3ede();return a144_0x510f=function(_0x510ff9,_0x4bb66c){_0x510ff9=_0x510ff9-0x10d;var _0x18e9dc=_0x3ede4c[_0x510ff9];return _0x18e9dc;},a144_0x510f(_0x764e2,_0x5a116c);}var a144_0x2ba96f={};a144_0x2ba96f[a144_0x36c8ed(0x10e)]=a144_0xd800a6,a144_0x2ba96f['screenshot']=a144_0x67a144,a144_0x2ba96f['click']=a144_0x2dffe3,a144_0x2ba96f[a144_0x36c8ed(0x118)]={},a144_0x2ba96f[a144_0x36c8ed(0x112)]={},module['exports']=a144_0x2ba96f;function a144_0x3ede(){var _0x40fa59=['11310408BCrLUX','7082664kBqcHj','1873892PIMUaD','476yorEoZ','14vrAUUq','testcase','click','14667768JxlJRD','2605518WTHinA','3070695jeViCF','auto','takeScreenshot','driver','1935wimJFG','manual'];a144_0x3ede=function(){return _0x40fa59;};return a144_0x3ede();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a145_0x1c2773=a145_0x8d66;(function(_0x532f5c,_0x38a240){const _0x1e8edc=a145_0x8d66,_0x20bdc7=_0x532f5c();while(!![]){try{const _0x4ce418=-parseInt(_0x1e8edc(0x1de))/0x1*(parseInt(_0x1e8edc(0x1d4))/0x2)+parseInt(_0x1e8edc(0x1e4))/0x3+-parseInt(_0x1e8edc(0x1c1))/0x4+-parseInt(_0x1e8edc(0x1c6))/0x5+-parseInt(_0x1e8edc(0x1d8))/0x6+parseInt(_0x1e8edc(0x1d0))/0x7+parseInt(_0x1e8edc(0x1d2))/0x8;if(_0x4ce418===_0x38a240)break;else _0x20bdc7['push'](_0x20bdc7['shift']());}catch(_0x5b6ca4){_0x20bdc7['push'](_0x20bdc7['shift']());}}}(a145_0x48ef,0x363f2));const tryRequire=function(_0xe87dd7,_0x4afb92){const _0x53f5ac=a145_0x8d66,_0x5225e2={'TdGoN':function(_0x1298ad,_0x263ae8){return _0x1298ad(_0x263ae8);}};try{return _0x5225e2[_0x53f5ac(0x1e5)](require,_0xe87dd7);}catch{return _0x4afb92;}},percySnapshot=tryRequire(a145_0x1c2773(0x1c4),null),{percyScreenshot}=tryRequire('@percy/selenium-webdriver',{}),percyAppScreenshot=require(a145_0x1c2773(0x1c5)),{getCurrentTestData}=require(a145_0x1c2773(0x1c8)),PerformanceTester=require(a145_0x1c2773(0x1d3)),{PERCY_EVENTS:PerformanceEvents}=require('../performance/constants'),logger=require(a145_0x1c2773(0x1e0))[a145_0x1c2773(0x1c3)];function a145_0x8d66(_0x20e604,_0x4ffb9b){const _0x48ef4c=a145_0x48ef();return a145_0x8d66=function(_0x8d668c,_0x2d4a2e){_0x8d668c=_0x8d668c-0x1c0;let _0x3d4286=_0x48ef4c[_0x8d668c];return _0x3d4286;},a145_0x8d66(_0x20e604,_0x4ffb9b);}function a145_0x48ef(){const _0x23f782=['1504415GVmunp','length','../../helpers/testhub/utils','testCase','browserstackPlatformIndex','uuid','apply','kmprd','screenshotApp','SCREENSHOT_APP','902237yGAMus','qtyYk','8219216XvDGzs','../performance/performance-tester','6XXJWVV','measure','SNAPSHOT','screenshot','2358570CIjAVN','name','IUopc','error','Tuvtz','thTestCaseExecutionId','26437VdIOCy','platformIndex','../logger','holSA','IUbQJ','rMtRh','318786OXGYPn','TdGoN','snapshot','1068288gEjtYh','Unsupported\x20driver\x20for\x20percy','winstonLogger','@percy/selenium-webdriver','@percy/appium-app'];a145_0x48ef=function(){return _0x23f782;};return a145_0x48ef();}percySnapshot&&(exports[a145_0x1c2773(0x1c0)]=async function(){const _0x731744=a145_0x1c2773,_0xaa46da={'IUbQJ':function(_0x2942b0,_0x11dbb2){return _0x2942b0!==_0x11dbb2;},'kmprd':function(_0x25b0a0,_0x1b2390){return _0x25b0a0>=_0x1b2390;},'Tuvtz':function(_0x314f10){return _0x314f10();}};if(global[_0x731744(0x1ca)]&&_0xaa46da[_0x731744(0x1e2)](global[_0x731744(0x1ca)],global['browserstackPercyBestPlatform']))return;const _0x3efcb9=_0xaa46da[_0x731744(0x1cd)](arguments[_0x731744(0x1c7)],0x2)?arguments[0x1]:'',_0x506483=_0xaa46da[_0x731744(0x1dc)](getCurrentTestData),_0x203e8d={};return _0x203e8d[_0x731744(0x1d9)]=_0x3efcb9,_0x203e8d[_0x731744(0x1c9)]=_0x506483[_0x731744(0x1d9)]||'',_0x203e8d[_0x731744(0x1dd)]=_0x506483[_0x731744(0x1cb)]||'',_0x203e8d['platformIndex']=global[_0x731744(0x1ca)],await PerformanceTester[_0x731744(0x1d5)](PerformanceEvents[_0x731744(0x1d6)],()=>percySnapshot[_0x731744(0x1cc)](null,arguments),_0x203e8d);});percyScreenshot?exports[a145_0x1c2773(0x1d7)]=async function(){const _0x289581=a145_0x1c2773,_0xb2092e={'rMtRh':function(_0x4da1e2,_0xd1da60){return _0x4da1e2>=_0xd1da60;},'IUopc':function(_0x550acd){return _0x550acd();}},_0x473d78=_0xb2092e[_0x289581(0x1e3)](arguments[_0x289581(0x1c7)],0x2)?arguments[0x1]:'',_0x3cc959=_0xb2092e[_0x289581(0x1da)](getCurrentTestData),_0x158deb={};return _0x158deb[_0x289581(0x1d9)]=_0x473d78,_0x158deb['testCase']=_0x3cc959[_0x289581(0x1d9)]||'',_0x158deb['thTestCaseExecutionId']=_0x3cc959[_0x289581(0x1cb)]||'',_0x158deb[_0x289581(0x1df)]=global[_0x289581(0x1ca)],await PerformanceTester[_0x289581(0x1d5)](PerformanceEvents['SCREENSHOT'],()=>percyScreenshot['apply'](null,arguments),_0x158deb);}:exports[a145_0x1c2773(0x1d7)]=()=>{const _0x196774=a145_0x1c2773,_0x1a3140={};_0x1a3140['qtyYk']=_0x196774(0x1c2);const _0x5a4386=_0x1a3140;logger[_0x196774(0x1db)](_0x5a4386[_0x196774(0x1d1)]);};exports[a145_0x1c2773(0x1ce)]=async function(){const _0x2eb2e9=a145_0x1c2773,_0x4a5bec={'holSA':function(_0x9c77bf,_0x551cd6){return _0x9c77bf>=_0x551cd6;},'DxOgA':function(_0x4ccc14){return _0x4ccc14();}},_0x47d2eb=_0x4a5bec[_0x2eb2e9(0x1e1)](arguments[_0x2eb2e9(0x1c7)],0x2)?arguments[0x1]:'',_0x18006c=_0x4a5bec['DxOgA'](getCurrentTestData),_0x4bd43c={};return _0x4bd43c[_0x2eb2e9(0x1d9)]=_0x47d2eb,_0x4bd43c[_0x2eb2e9(0x1c9)]=_0x18006c[_0x2eb2e9(0x1d9)]||'',_0x4bd43c[_0x2eb2e9(0x1dd)]=_0x18006c[_0x2eb2e9(0x1cb)]||'',_0x4bd43c['platformIndex']=global['browserstackPlatformIndex'],await PerformanceTester['measure'](PerformanceEvents[_0x2eb2e9(0x1cf)],()=>percyAppScreenshot[_0x2eb2e9(0x1cc)](null,arguments),_0x4bd43c);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a146_0x5bc0(){var _0x5233c5=['494240jEWoLV','4448742irLgnb','238704YyBdjd','3022WPaVcG','11TMyWrY','77iKEAIY','3195IjCgUB','./Percy','7elKmic','9182020ERnHEv','6279651QiUble','3012qwVByp'];a146_0x5bc0=function(){return _0x5233c5;};return a146_0x5bc0();}var a146_0x63de=a146_0x574b;function a146_0x574b(_0x411acf,_0x5a490d){var _0x5bc0ef=a146_0x5bc0();return a146_0x574b=function(_0x574bf9,_0xd737c7){_0x574bf9=_0x574bf9-0xfe;var _0x1f1d35=_0x5bc0ef[_0x574bf9];return _0x1f1d35;},a146_0x574b(_0x411acf,_0x5a490d);}(function(_0x33d5d0,_0x13fffc){var _0x52d529=a146_0x574b,_0x309a98=_0x33d5d0();while(!![]){try{var _0x1ba37f=parseInt(_0x52d529(0xff))/0x1*(-parseInt(_0x52d529(0x109))/0x2)+parseInt(_0x52d529(0x108))/0x3+-parseInt(_0x52d529(0x105))/0x4*(parseInt(_0x52d529(0x100))/0x5)+parseInt(_0x52d529(0x107))/0x6*(parseInt(_0x52d529(0x102))/0x7)+parseInt(_0x52d529(0x106))/0x8+-parseInt(_0x52d529(0x104))/0x9+parseInt(_0x52d529(0x103))/0xa*(parseInt(_0x52d529(0xfe))/0xb);if(_0x1ba37f===_0x13fffc)break;else _0x309a98['push'](_0x309a98['shift']());}catch(_0x2087da){_0x309a98['push'](_0x309a98['shift']());}}}(a146_0x5bc0,0x7b79a),module['exports']=require(a146_0x63de(0x101)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a147_0x2fba(_0x23df70,_0x509d99){const _0x11e334=a147_0x11e3();return a147_0x2fba=function(_0x2fbabc,_0x5ede11){_0x2fbabc=_0x2fbabc-0x14d;let _0x51c0f1=_0x11e334[_0x2fbabc];return _0x51c0f1;},a147_0x2fba(_0x23df70,_0x509d99);}const a147_0x53dd23=a147_0x2fba;function a147_0x11e3(){const _0x333e48=['measureWrapper','5119352qgFnds','chrome','VFXkJ','../performance/constants','vsItS','2JOzhGB','increment','376dtiIPf','./PercyCaptureModes','174060XZaxJc','driver','browserName','../performance/performance-tester','debug','then','uKozK','prototype','START','xMcMa','winstonLogger','safari','reduce','qdzvw','33085150IxhftG','error','106115PxrLST','patchDriverPercy','deviceName','AUTO_CAPTURE','app','getName','apply','auto','getPercyOptions','element','forEach','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','patch','STOP','228ntijEk','ZOXep','Stopping\x20percy','eteNo','getBestPlatformForPercySnapshot','1070805dmcyAd','screenshotApp','getDriver','tnFbw','1100222YPUUNI','gENDC','percyAutoCapture','stopPercy','browser','percy','browserstackPercyBestPlatform','startPercy','ZNBUb','./PercyCaptureMap','isUndefined','percyCaptureMode','browserstackSessionName','browserstackPercyMap','3815063aqVtys','browserStackPercyOptions','Error\x20patching\x20','platforms','RqMpj','firefox','njnpe','OjlCq','overrideXforPercy','toLowerCase'];a147_0x11e3=function(){return _0x333e48;};return a147_0x11e3();}(function(_0x4ade36,_0x4a4abe){const _0xf7e2c2=a147_0x2fba,_0x16faac=_0x4ade36();while(!![]){try{const _0x42c28f=parseInt(_0xf7e2c2(0x183))/0x1*(-parseInt(_0xf7e2c2(0x165))/0x2)+parseInt(_0xf7e2c2(0x161))/0x3+-parseInt(_0xf7e2c2(0x17e))/0x4+-parseInt(_0xf7e2c2(0x14e))/0x5*(parseInt(_0xf7e2c2(0x15c))/0x6)+-parseInt(_0xf7e2c2(0x173))/0x7+parseInt(_0xf7e2c2(0x185))/0x8*(parseInt(_0xf7e2c2(0x187))/0x9)+parseInt(_0xf7e2c2(0x195))/0xa;if(_0x42c28f===_0x4a4abe)break;else _0x16faac['push'](_0x16faac['shift']());}catch(_0x364239){_0x16faac['push'](_0x16faac['shift']());}}}(a147_0x11e3,0xcdc87));const Percy=require('./Percy'),PercySDK=require('./PercySDK'),PercyCaptureModes=require(a147_0x53dd23(0x186)),PercyCaptureMap=require(a147_0x53dd23(0x16e)),logger=require('../logger')[a147_0x53dd23(0x191)],helper=require('../helper'),PerformanceTester=require(a147_0x53dd23(0x18a)),{PERCY_EVENTS:PerformanceEvents}=require(a147_0x53dd23(0x181));exports[a147_0x53dd23(0x16c)]=PerformanceTester['measureWrapper'](PerformanceEvents[a147_0x53dd23(0x18f)],async _0x4b7374=>{const _0x198034=a147_0x53dd23,_0x1eaf78={};_0x1eaf78[_0x198034(0x15f)]='Starting\x20percy';const _0x32e7ad=_0x1eaf78;logger['debug'](_0x32e7ad[_0x198034(0x15f)]);const _0x3c377d=new Percy(_0x4b7374),_0x13765d=await _0x3c377d['start']();if(_0x13765d)return _0x3c377d;return null;}),exports[a147_0x53dd23(0x168)]=PerformanceTester['measureWrapper'](PerformanceEvents[a147_0x53dd23(0x15b)],async _0x3cef5a=>{const _0x5e99b3=a147_0x53dd23,_0x4ac4ce={};_0x4ac4ce[_0x5e99b3(0x190)]=_0x5e99b3(0x15e);const _0x288361=_0x4ac4ce;return logger['debug'](_0x288361[_0x5e99b3(0x190)]),_0x3cef5a['stop']();}),exports[a147_0x53dd23(0x160)]=_0x30df0c=>{const _0x569057=a147_0x53dd23,_0x46e781={};_0x46e781[_0x569057(0x18d)]=function(_0x3e7e9a,_0x25c708){return _0x3e7e9a<_0x25c708;};const _0x457160=_0x46e781,_0x3b10e8={};_0x3b10e8[_0x569057(0x17f)]=0x0,_0x3b10e8[_0x569057(0x178)]=0x1,_0x3b10e8['edge']=0x2,_0x3b10e8[_0x569057(0x192)]=0x3;const _0x1c3fa8=_0x3b10e8;return _0x30df0c[_0x569057(0x193)]((_0x338919,_0x5c4707,_0x177334)=>{const _0x255e3d=_0x569057,_0x43eb17=_0x30df0c[_0x338919];if(_0x5c4707[_0x255e3d(0x150)])return _0x338919;if(_0x43eb17['deviceName'])return _0x177334;const _0x2fdc6b=_0x5c4707['browser']?_0x5c4707[_0x255e3d(0x169)]:_0x5c4707[_0x255e3d(0x189)];if(_0x2fdc6b&&_0x457160['uKozK'](_0x1c3fa8[_0x2fdc6b[_0x255e3d(0x17c)]()],_0x1c3fa8[_0x2fdc6b['toLowerCase']()]))return _0x177334;return _0x338919;},0x0);},exports['percyAutoCapture']=PerformanceTester[a147_0x53dd23(0x17d)](PerformanceEvents[a147_0x53dd23(0x151)],async(_0x545083,_0x1c1fe1,_0x25218b)=>{const _0x20bb76=a147_0x53dd23,_0x2e6ba3={};_0x2e6ba3[_0x20bb76(0x17a)]=_0x20bb76(0x159);const _0xf836e5=_0x2e6ba3,_0x370f02=_0x545083[_0x20bb76(0x172)];if(helper[_0x20bb76(0x16f)](_0x545083[_0x20bb76(0x171)])){logger[_0x20bb76(0x18b)](_0xf836e5[_0x20bb76(0x17a)]);return;}const _0x529728=_0x370f02[_0x20bb76(0x153)](_0x545083[_0x20bb76(0x171)],_0x1c1fe1);_0x25218b[_0x20bb76(0x152)]?await PercySDK[_0x20bb76(0x162)](_0x545083,_0x529728):await PercySDK['screenshot'](_0x545083,_0x529728),_0x370f02[_0x20bb76(0x184)](_0x545083[_0x20bb76(0x171)],_0x1c1fe1);}),exports[a147_0x53dd23(0x14f)]=(_0x2cb9f5,_0x51c4e7,_0x3c28ca)=>{const _0x32f734=a147_0x53dd23,_0x40f13f={};_0x40f13f[_0x32f734(0x16d)]=_0x32f734(0x174),_0x40f13f[_0x32f734(0x164)]='percy',_0x40f13f['ZOXep']=function(_0xa60a92,_0x14b6cf){return _0xa60a92!==_0x14b6cf;},_0x40f13f[_0x32f734(0x180)]='manual';const _0x215e0c=_0x40f13f;if(!helper['nestedKeyValue'](_0x3c28ca,[_0x215e0c[_0x32f734(0x16d)],_0x215e0c['tnFbw']]))return;if(_0x3c28ca['browserStackPercyOptions']['percy']&&_0x3c28ca['browserStackPercyOptions'][_0x32f734(0x170)]&&_0x215e0c[_0x32f734(0x15d)](_0x3c28ca[_0x32f734(0x174)]['percyCaptureMode'],_0x215e0c[_0x32f734(0x180)])&&!_0x2cb9f5[_0x32f734(0x172)]){global[_0x32f734(0x171)]&&(_0x2cb9f5[_0x32f734(0x171)]=global[_0x32f734(0x171)]),_0x2cb9f5['browserstackPercyMap']=new PercyCaptureMap();const _0x1ea222=PercyCaptureModes[_0x3c28ca['browserStackPercyOptions'][_0x32f734(0x170)]];_0x1ea222[_0x32f734(0x188)]&&_0x1ea222['driver'][_0x32f734(0x158)](_0x5596e5=>this[_0x32f734(0x17b)](_0x2cb9f5,_0x5596e5,_0x3c28ca)),_0x1ea222[_0x32f734(0x157)]&&_0x1ea222['element'][_0x32f734(0x158)](_0x2fce02=>{const _0x514037=_0x32f734;if(_0x51c4e7[_0x514037(0x18e)][_0x514037(0x15a)+_0x2fce02])return;_0x51c4e7[_0x514037(0x18e)][_0x514037(0x15a)+_0x2fce02]=!![];const _0x1fe390=_0x51c4e7[_0x514037(0x18e)][_0x2fce02];_0x51c4e7[_0x514037(0x18e)][_0x2fce02]=async function(){const _0x5a0a62=_0x514037;let _0x3f113e=_0x1fe390['apply'](this,arguments);_0x3f113e&&_0x3f113e[_0x5a0a62(0x18c)]&&(_0x3f113e=await _0x3f113e);try{const _0x1d26bc=this[_0x5a0a62(0x163)]();await exports['percyAutoCapture'](_0x1d26bc,_0x2fce02,_0x3c28ca);}catch(_0x3f4743){logger[_0x5a0a62(0x14d)](_0x5a0a62(0x175)+_0x2fce02+'\x20for\x20percy\x20'+_0x3f4743);}return _0x3f113e;};});}},exports[a147_0x53dd23(0x17b)]=function(_0x2d9ac5,_0x1c6832,_0x43c0ae){const _0x177073=a147_0x53dd23,_0xdf40c4={};_0xdf40c4[_0x177073(0x194)]=function(_0x5ab85c,_0x4124cd){return _0x5ab85c+_0x4124cd;},_0xdf40c4['vsItS']=_0x177073(0x15a),_0xdf40c4['gENDC']=function(_0x1fa3cb,_0x488651){return _0x1fa3cb+_0x488651;},_0xdf40c4['njnpe']='init';const _0x275e76=_0xdf40c4,_0x17f32=_0x275e76[_0x177073(0x194)](_0x275e76[_0x177073(0x182)],_0x1c6832),_0x783ba4=_0x275e76[_0x177073(0x166)](_0x275e76[_0x177073(0x179)],_0x1c6832),_0x2713c2=this;if(_0x2d9ac5[_0x17f32]||!_0x2d9ac5[_0x1c6832])return;_0x2d9ac5[_0x17f32]=!![],_0x2d9ac5[_0x783ba4]=_0x2d9ac5[_0x1c6832],_0x2d9ac5[_0x1c6832]=async()=>{const _0x163019=_0x177073;try{await _0x2713c2[_0x163019(0x167)](_0x2d9ac5,_0x1c6832,_0x43c0ae);}catch(_0xe2334){logger[_0x163019(0x14d)]('Error\x20patching\x20'+_0x1c6832+'\x20for\x20percy\x20'+_0xe2334);}return await _0x2d9ac5[_0x783ba4][_0x163019(0x154)](_0x2d9ac5,arguments);};},exports[a147_0x53dd23(0x156)]=_0x4b7289=>{const _0x111081=a147_0x53dd23,_0x18d54b={};_0x18d54b[_0x111081(0x177)]=_0x111081(0x155);const _0x93400b=_0x18d54b,_0x14e831={};_0x14e831['percy']=_0x4b7289['percy'],_0x14e831[_0x111081(0x170)]=_0x4b7289[_0x111081(0x170)]||_0x93400b[_0x111081(0x177)];const _0x1a827d=_0x14e831;_0x4b7289[_0x111081(0x16a)]&&(_0x1a827d[_0x111081(0x16b)]=exports[_0x111081(0x160)](_0x4b7289[_0x111081(0x176)]));;return _0x1a827d;};
|