browserstack-node-sdk 1.50.4 → 1.50.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +2 -2
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
package/src/helpers/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a109_0x13479d=a109_0x1421;(function(_0x3ef444,_0x4a2284){const _0x38b337=a109_0x1421,_0x37b1df=_0x3ef444();while(!![]){try{const _0x76afb9=-parseInt(_0x38b337(0x102))/0x1+-parseInt(_0x38b337(0x103))/0x2*(parseInt(_0x38b337(0x124))/0x3)+parseInt(_0x38b337(0x108))/0x4*(parseInt(_0x38b337(0x118))/0x5)+-parseInt(_0x38b337(0x10f))/0x6+parseInt(_0x38b337(0x116))/0x7+-parseInt(_0x38b337(0x12b))/0x8*(parseInt(_0x38b337(0x130))/0x9)+-parseInt(_0x38b337(0x126))/0xa*(-parseInt(_0x38b337(0x115))/0xb);if(_0x76afb9===_0x4a2284)break;else _0x37b1df['push'](_0x37b1df['shift']());}catch(_0x5cd1ab){_0x37b1df['push'](_0x37b1df['shift']());}}}(a109_0x43c9,0x88a9b));const winston=require('winston'),path=require(a109_0x13479d(0x138)),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME}=require(a109_0x13479d(0x13a)),tempLogDir=a109_0x13479d(0x12c),logFormat=winston[a109_0x13479d(0x133)](_0x1704db=>{const _0x5a4d17=a109_0x13479d,_0x9de291={};_0x9de291[_0x5a4d17(0x11f)]=function(_0x85f948,_0x320a7c){return _0x85f948!==_0x320a7c;},_0x9de291[_0x5a4d17(0x142)]=_0x5a4d17(0x14f),_0x9de291[_0x5a4d17(0x12d)]=function(_0x36ad61,_0x49b335){return _0x36ad61===_0x49b335;},_0x9de291[_0x5a4d17(0x14c)]=_0x5a4d17(0x10b);const _0x40c0cd=_0x9de291;return _0x40c0cd['RkrVD'](typeof _0x1704db[_0x5a4d17(0x113)],_0x40c0cd[_0x5a4d17(0x142)])&&(_0x1704db[_0x5a4d17(0x113)]=JSON[_0x5a4d17(0x127)](_0x1704db['message'])),global['session']?.['config']?.[_0x5a4d17(0x112)]&&_0x40c0cd[_0x5a4d17(0x12d)](typeof _0x1704db[_0x5a4d17(0x113)],_0x40c0cd[_0x5a4d17(0x142)])&&(_0x1704db[_0x5a4d17(0x113)]=_0x1704db[_0x5a4d17(0x113)]['replace'](new RegExp(global[_0x5a4d17(0x132)]['config'][_0x5a4d17(0x112)],'g'),_0x40c0cd[_0x5a4d17(0x14c)])),global[_0x5a4d17(0x132)]?.[_0x5a4d17(0x13f)]?.[_0x5a4d17(0x14b)]&&_0x40c0cd[_0x5a4d17(0x12d)](typeof _0x1704db[_0x5a4d17(0x113)],_0x40c0cd['UgBNQ'])&&(_0x1704db['message']=_0x1704db['message'][_0x5a4d17(0x128)](new RegExp(global[_0x5a4d17(0x132)][_0x5a4d17(0x13f)]['accessKey'],'g'),_0x40c0cd[_0x5a4d17(0x14c)])),_0x1704db;}),fetchLogDir=()=>{const _0xfc9412=a109_0x13479d;if(process[_0xfc9412(0x105)][_0xfc9412(0x11e)])return process['env'][_0xfc9412(0x11e)];else!fs[_0xfc9412(0x119)](tempLogDir)&&fs['mkdirSync'](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),getInitialLogLevel=()=>{const _0x1803ac=a109_0x13479d,_0x186c56={};_0x186c56[_0x1803ac(0x129)]=_0x1803ac(0x143);const _0x32f53b=_0x186c56,_0x2b527d=process[_0x1803ac(0x105)][_0x1803ac(0x107)],_0x3e0323=Object[_0x1803ac(0x120)](winston[_0x1803ac(0x13f)][_0x1803ac(0x13e)][_0x1803ac(0x12f)]);if(_0x2b527d&&_0x3e0323[_0x1803ac(0x122)](_0x2b527d[_0x1803ac(0x14d)]()))return _0x2b527d[_0x1803ac(0x14d)]();return _0x32f53b[_0x1803ac(0x129)];},initialLogLevel=getInitialLogLevel(),a109_0x5a2ea7={};a109_0x5a2ea7[a109_0x13479d(0x151)]=a109_0x13479d(0x150),a109_0x5a2ea7[a109_0x13479d(0x139)]=initialLogLevel;const transports={'loggerConsole':new winston[(a109_0x13479d(0x11a))]['Console'](a109_0x5a2ea7),'loggerFile':new winston[(a109_0x13479d(0x11a))]['File']({'filename':path['join'](logDir,'/usage.log'),'level':initialLogLevel}),'debugLoggerFile':new winston['transports'][(a109_0x13479d(0x114))]({'filename':path['join'](logDir,a109_0x13479d(0x149)),'level':a109_0x13479d(0x13b)}),'debugCliLoggerFile':new winston['transports'][(a109_0x13479d(0x114))]({'filename':path[a109_0x13479d(0x111)](logDir,a109_0x13479d(0x12e)),'level':a109_0x13479d(0x13b)}),'buildLinkTransport':new winston[(a109_0x13479d(0x11a))]['File']({'filename':path[a109_0x13479d(0x111)](logDir,a109_0x13479d(0x135)),'level':a109_0x13479d(0x13b)})},automationTransports={};function a109_0x43c9(){const _0x4db008=['add','\x20-\x20','Console','BROWSERSTACK_INTERNAL_LOG_DIR','RkrVD','keys','buildLinkTransport','includes','colorize','132euRmsO','Kpmwj','15059960aaHMSQ','stringify','replace','WWpjw','createLogger','24DLdEGc','log','HOyEH','/sdk-cli-debug.log','levels','1529397dAIajW','automationLogger','session','format','winstonLogger','/usage.log','error','YYYY-MM-DD\x20HH:mm:ss','path','level','../bin/utils/constants','silly','warn','code','npm','config','combine','buildLogger','UgBNQ','info','loggerFile','logDir','timestamp','true','loggerConsole','/usage-debug.log','fileLogger','accessKey','PSmwb','toLowerCase','debugLoggerFile','string','console.info','name','printf','583086bEdvMI','16420YeyPQh','http','env','EPIPE\x20error\x20occurred\x20in\x20loggerConsole:','BROWSERSTACK_LOG_LEVEL','250388risPLi','uncolorize','mmeOR','[REDACTED]','wbyyr','debug','automationLoggerFile','412728FktyYb','automation.log','join','userName','message','File','11ciPALM','3598637AExxax','BROWSERSTACK_AUTOMATION_LOGS','5KYAzoY','existsSync','transports'];a109_0x43c9=function(){return _0x4db008;};return a109_0x43c9();}process[a109_0x13479d(0x105)][a109_0x13479d(0x117)]===a109_0x13479d(0x147)&&(automationTransports[a109_0x13479d(0x10e)]=new winston[(a109_0x13479d(0x11a))][(a109_0x13479d(0x114))]({'filename':path[a109_0x13479d(0x111)](logDir,a109_0x13479d(0x110)),'level':a109_0x13479d(0x13b)}));transports['loggerConsole']['on']('error',_0x5bad9e=>{const _0x40e40c=a109_0x13479d,_0x32034a={};_0x32034a[_0x40e40c(0x10c)]=function(_0x178afe,_0x2f8e22){return _0x178afe===_0x2f8e22;},_0x32034a['mOBIU']='EPIPE',_0x32034a[_0x40e40c(0x10a)]=_0x40e40c(0x106);const _0x55daf5=_0x32034a;if(_0x55daf5[_0x40e40c(0x10c)](_0x5bad9e[_0x40e40c(0x13d)],_0x55daf5['mOBIU'])){console['log'](_0x55daf5[_0x40e40c(0x10a)],_0x5bad9e['message']);return;}throw _0x5bad9e;});const a109_0x23909a={};a109_0x23909a[a109_0x13479d(0x133)]=a109_0x13479d(0x137);const a109_0x3784ca={};a109_0x3784ca[a109_0x13479d(0x139)]=!![];const winstonLoggerParams={'format':winston[a109_0x13479d(0x133)][a109_0x13479d(0x140)](winston[a109_0x13479d(0x133)][a109_0x13479d(0x146)](a109_0x23909a),winston[a109_0x13479d(0x133)][a109_0x13479d(0x123)](a109_0x3784ca),winston[a109_0x13479d(0x133)][a109_0x13479d(0x101)](_0x5b9c48=>_0x5b9c48['timestamp']+a109_0x13479d(0x11c)+_0x5b9c48['level']+':\x20'+_0x5b9c48[a109_0x13479d(0x113)])),'transports':[transports['loggerConsole']]},a109_0x43005d={};a109_0x43005d[a109_0x13479d(0x133)]=a109_0x13479d(0x137);const a109_0x311237={};a109_0x311237['level']=!![];const winstonFileLoggerParams={'format':winston[a109_0x13479d(0x133)][a109_0x13479d(0x140)](winston[a109_0x13479d(0x133)]['timestamp'](a109_0x43005d),winston[a109_0x13479d(0x133)][a109_0x13479d(0x123)](a109_0x311237),winston[a109_0x13479d(0x133)][a109_0x13479d(0x101)](_0x27a9e8=>_0x27a9e8[a109_0x13479d(0x139)]+':\x20'+_0x27a9e8['message'])),'transports':[]},a109_0x388528={};a109_0x388528['format']=a109_0x13479d(0x137);const a109_0x29f02f={};a109_0x29f02f[a109_0x13479d(0x139)]=!![];const a109_0x2c6e05={};a109_0x2c6e05[a109_0x13479d(0x139)]=a109_0x13479d(0x13b);const BuildLoggerParams={'format':winston[a109_0x13479d(0x133)]['combine'](winston[a109_0x13479d(0x133)][a109_0x13479d(0x146)](a109_0x388528),winston['format'][a109_0x13479d(0x123)](a109_0x29f02f),winston[a109_0x13479d(0x133)]['printf'](_0x396c40=>_0x396c40['timestamp']+'\x20-\x20'+_0x396c40['level']+':\x20'+_0x396c40[a109_0x13479d(0x113)])),'transports':[transports[a109_0x13479d(0x121)],new winston['transports'][(a109_0x13479d(0x11d))](a109_0x2c6e05)]},a109_0x4a2080={};a109_0x4a2080[a109_0x13479d(0x104)]=()=>{},a109_0x4a2080[a109_0x13479d(0x143)]=()=>{},a109_0x4a2080[a109_0x13479d(0x13c)]=()=>{},a109_0x4a2080[a109_0x13479d(0x136)]=()=>{},a109_0x4a2080[a109_0x13479d(0x10d)]=()=>{},a109_0x4a2080['silly']=()=>{},exports[a109_0x13479d(0x131)]=process[a109_0x13479d(0x105)][a109_0x13479d(0x117)]===a109_0x13479d(0x147)?winston[a109_0x13479d(0x12a)]({'format':winston[a109_0x13479d(0x133)][a109_0x13479d(0x140)](winston[a109_0x13479d(0x133)][a109_0x13479d(0x109)](),winston[a109_0x13479d(0x133)][a109_0x13479d(0x146)](),logFormat(),winston['format']['printf'](_0xa5e7bd=>_0xa5e7bd['level']+':\x20'+_0xa5e7bd['message'])),'transports':[automationTransports[a109_0x13479d(0x10e)]]}):a109_0x4a2080;const initialize=()=>{const _0x38bd30=a109_0x13479d,_0x3aef3f={};_0x3aef3f[_0x38bd30(0x125)]=_0x38bd30(0x13b);const _0x38d2aa=_0x3aef3f,_0x41f2f5=transports[_0x38bd30(0x148)][_0x38bd30(0x139)]||initialLogLevel;transports['loggerFile']=new winston[(_0x38bd30(0x11a))][(_0x38bd30(0x114))]({'filename':path[_0x38bd30(0x111)](exports[_0x38bd30(0x145)],LOG_FILE_NAME),'level':_0x41f2f5}),transports[_0x38bd30(0x14e)]=new winston[(_0x38bd30(0x11a))]['File']({'filename':path[_0x38bd30(0x111)](exports[_0x38bd30(0x145)],DEBUG_LOG_FILE_NAME),'level':_0x38d2aa[_0x38bd30(0x125)]}),exports[_0x38bd30(0x134)]['add'](transports[_0x38bd30(0x144)]),exports[_0x38bd30(0x134)][_0x38bd30(0x11b)](transports[_0x38bd30(0x14e)]),exports[_0x38bd30(0x14a)][_0x38bd30(0x11b)](transports['loggerFile']),exports['fileLogger'][_0x38bd30(0x11b)](transports[_0x38bd30(0x14e)]);};function a109_0x1421(_0x298fef,_0x3cf35d){const _0x43c913=a109_0x43c9();return a109_0x1421=function(_0x142104,_0x41cc67){_0x142104=_0x142104-0x101;let _0xe81fca=_0x43c913[_0x142104];return _0xe81fca;},a109_0x1421(_0x298fef,_0x3cf35d);}exports[a109_0x13479d(0x134)]=new winston[(a109_0x13479d(0x12a))](winstonLoggerParams),exports[a109_0x13479d(0x14a)]=new winston[(a109_0x13479d(0x12a))](winstonFileLoggerParams),exports[a109_0x13479d(0x141)]=new winston['createLogger'](BuildLoggerParams),exports[a109_0x13479d(0x145)]=logDir,exports['getLogDir']=()=>{const _0x23738b=a109_0x13479d;return exports[_0x23738b(0x145)];},exports['transports']=transports,exports['initialize']=initialize;logDir&&initialize();
|
package/src/helpers/metadata.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a110_0x2809(_0x531ef3,_0x3fe02e){const _0x2a637f=a110_0x2a63();return a110_0x2809=function(_0x280915,_0x25f1e4){_0x280915=_0x280915-0x1d9;let _0x5b2495=_0x2a637f[_0x280915];return _0x5b2495;},a110_0x2809(_0x531ef3,_0x3fe02e);}const a110_0x56914f=a110_0x2809;(function(_0x199c67,_0x2df710){const _0x4ff8ac=a110_0x2809,_0x404be3=_0x199c67();while(!![]){try{const _0x49f82d=-parseInt(_0x4ff8ac(0x1f9))/0x1*(parseInt(_0x4ff8ac(0x1d9))/0x2)+-parseInt(_0x4ff8ac(0x1ee))/0x3*(parseInt(_0x4ff8ac(0x1e7))/0x4)+-parseInt(_0x4ff8ac(0x1f7))/0x5+-parseInt(_0x4ff8ac(0x1f8))/0x6+parseInt(_0x4ff8ac(0x1e4))/0x7*(-parseInt(_0x4ff8ac(0x1ec))/0x8)+parseInt(_0x4ff8ac(0x1dc))/0x9*(-parseInt(_0x4ff8ac(0x1f0))/0xa)+parseInt(_0x4ff8ac(0x1f4))/0xb;if(_0x49f82d===_0x2df710)break;else _0x404be3['push'](_0x404be3['shift']());}catch(_0x3e1c9c){_0x404be3['push'](_0x404be3['shift']());}}}(a110_0x2a63,0xc993b));const globals=require(a110_0x56914f(0x1ea)),helper=require(a110_0x56914f(0x1f3)),logger=require(a110_0x56914f(0x1da))[a110_0x56914f(0x1f2)];function a110_0x2a63(){const _0x377330=['testMeta-','8334fZCjaA','aefoK','testRunUUID','ghLHG','getCentralUser','AlsjZ','setGlobal','get','7GgZigk','VlfSl','length','910000YbiBKJ','warn','testMeta','./globals','pjKYK','12138184DwiQQP','kDlef','18pmTzEu','nDJCF','10160JafmLn','string','winstonLogger','./helper','72230323OXZUBd','The\x20metadata\x20object\x20is\x20not\x20valid.','lcnc','4443995CziJvb','4605462VrRlio','261269KATyAe','getGlobal','set','2DCvlxv','./logger'];a110_0x2a63=function(){return _0x377330;};return a110_0x2a63();}module['exports']=class TestMetadata{static[a110_0x56914f(0x1fb)](_0x3ecd7b={}){const _0x580855=a110_0x56914f,_0x19694b={};_0x19694b[_0x580855(0x1e1)]=_0x580855(0x1de),_0x19694b[_0x580855(0x1e5)]=function(_0x58aafa,_0x18c1cd){return _0x58aafa===_0x18c1cd;},_0x19694b[_0x580855(0x1dd)]=_0x580855(0x1f1),_0x19694b[_0x580855(0x1eb)]=function(_0x498269,_0x549eee){return _0x498269<=_0x549eee;},_0x19694b[_0x580855(0x1ef)]=_0x580855(0x1e9),_0x19694b[_0x580855(0x1df)]=_0x580855(0x1f5);const _0x2bfe64=_0x19694b,_0x2d8e9a=globals['getGlobal'](_0x2bfe64['AlsjZ']),_0x642e86=_0x3ecd7b['identifier'];helper[_0x580855(0x1e0)]()[_0x580855(0x1f6)]&&(_0x2bfe64[_0x580855(0x1e5)](typeof _0x642e86,_0x2bfe64[_0x580855(0x1dd)])&&_0x2bfe64['pjKYK'](_0x642e86[_0x580855(0x1e6)],0x28)?_0x2d8e9a?globals[_0x580855(0x1e2)](_0x580855(0x1db)+_0x2d8e9a,_0x3ecd7b):globals['setGlobal'](_0x2bfe64[_0x580855(0x1ef)],_0x3ecd7b):logger[_0x580855(0x1e8)](_0x2bfe64[_0x580855(0x1df)]));}static[a110_0x56914f(0x1e3)](_0x486d24){const _0x5ae60d=a110_0x56914f,_0x416e4f={};_0x416e4f['kDlef']='testMeta';const _0x4e0c58=_0x416e4f;if(helper[_0x5ae60d(0x1e0)]()[_0x5ae60d(0x1f6)])return globals[_0x5ae60d(0x1fa)]('testMeta-'+_0x486d24)||globals[_0x5ae60d(0x1fa)](_0x4e0c58[_0x5ae60d(0x1ed)])||{};return{};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a111_0x380e(){const _0x36d18e=['Nyyhy','aiHeal_isAuthenticated','UEXNI','Urefb','WOUDh','326106KJBzhj','131745OSCkIv','CiIhj','findElement\x20command\x20failed\x20with\x20','7UKMULy','value','get','1623678YMvLUJ','format','bstack:options','Jmskv','toISOString','error','find','name','util','TOkVl','tCEho','./ai-sdk/autoHealHelper','sMJbr','browserstack.local','][\x20SDK-AUTOMATION\x20]\x20','includes','../bin/utils/constants','using','1655kyazQy','response','yVAxb','isBrowserstackInfra','DmPdk','Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','QXOJb','skipHealingSuccess','zPpiB','aiHeal:findElementFailure','getId','1337288OQFVTF','args','TWqgh','getTcgTokenStatus','FFXVZ','executeScript','measureWrapper','mdTiV','DKvQB','POST_EXECUTE','AUTOMATION_LOG_COMMANDS','2376XDuyfW','aGnAq','UEqgo','114064AKnxXo','info','./globals','getGlobal','fvBeL',';\x20Trying\x20to\x20heal','./performance/performance-tester','request','handleSuccess','JavascriptError','zCzJF','setTcgToken','body','capability','string','QYtVH','VRRTO','findElement\x20command\x20failed\x20with\x20cssPath:\x20','getSession','debug','kbtlw','initExecute','aiHeal:setToken','jmxsI','ChVxT','wIyOM','parameters_','Error\x20in\x20handling\x20TCG\x20Auth:\x20','./performance/constants','254088huuthb','Healing\x20failed\x20for\x20command\x20using\x20','css\x20selector','setTcgTokenStatus','message','OfxDX','overrideExecute','zikCK','getNudgeLocalNotSetError','VqjPq','WAqEI','parameters','DeEVR','toString','DqNwe','command','findElement','isSelfHealEnabled','patchExecute','name_','RSFUH','qUMET','PRE_EXECUTE','aiHeal_isHealingEnabled','rNFQc','nestedKeyValue','silly','Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','url','Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge'];a111_0x380e=function(){return _0x36d18e;};return a111_0x380e();}const a111_0x544e45=a111_0x3a35;(function(_0x3f2366,_0x2e3760){const _0x3a6fc8=a111_0x3a35,_0x15da37=_0x3f2366();while(!![]){try{const _0x186bf8=-parseInt(_0x3a6fc8(0x1ba))/0x1+-parseInt(_0x3a6fc8(0x1d7))/0x2+parseInt(_0x3a6fc8(0x189))/0x3+parseInt(_0x3a6fc8(0x1b7))/0x4*(parseInt(_0x3a6fc8(0x1a1))/0x5)+parseInt(_0x3a6fc8(0x18f))/0x6+-parseInt(_0x3a6fc8(0x18c))/0x7*(parseInt(_0x3a6fc8(0x1ac))/0x8)+parseInt(_0x3a6fc8(0x188))/0x9;if(_0x186bf8===_0x2e3760)break;else _0x15da37['push'](_0x15da37['shift']());}catch(_0x1fac4c){_0x15da37['push'](_0x15da37['shift']());}}}(a111_0x380e,0x21f63));function a111_0x3a35(_0x2df58f,_0x45b33c){const _0x380ef7=a111_0x380e();return a111_0x3a35=function(_0x3a3598,_0x145c08){_0x3a3598=_0x3a3598-0x16e;let _0x15511f=_0x380ef7[_0x3a3598];return _0x15511f;},a111_0x3a35(_0x2df58f,_0x45b33c);}const {aiSdkWrapper}=require('./ai-sdk/aiSdkWrapper'),{commandRepository}=require(a111_0x544e45(0x19a)),PerformanceTester=require(a111_0x544e45(0x1c0)),globals=require(a111_0x544e45(0x1bc)),{winstonLogger:logger,automationLogger}=require('./logger'),helper=require('./helper'),constants=require(a111_0x544e45(0x19f)),{DRIVER_EVENT:PerformanceDriverEvents}=require(a111_0x544e45(0x1d6)),util=require(a111_0x544e45(0x197));exports[a111_0x544e45(0x1dd)]=(_0x449bad,_0x55d58a)=>{const _0x480e8c=a111_0x544e45,_0x433dc7={'mdTiV':_0x480e8c(0x184),'DKvQB':_0x480e8c(0x1d0),'zPpiB':function(_0x115d9e){return _0x115d9e();},'CiIhj':'aiSdk_defaultLogDataEnabled','TOkVl':function(_0x3d35dd,_0x543b5f){return _0x3d35dd===_0x543b5f;},'ChVxT':_0x480e8c(0x175),'yVAxb':_0x480e8c(0x17c),'TWqgh':'aiHeal:findElementSuccess','tCEho':function(_0x54f565){return _0x54f565();},'DqNwe':_0x480e8c(0x182),'RSFUH':'NoSuchElementError','UEXNI':function(_0x5238f4,_0x3377dc){return _0x5238f4===_0x3377dc;},'QYtVH':_0x480e8c(0x1c3),'Urefb':_0x480e8c(0x1d9),'zlbYQ':function(_0x4f613a,_0x3630cd){return _0x4f613a+_0x3630cd;},'FFXVZ':function(_0x1c4bac,_0x4ee484){return _0x1c4bac+_0x4ee484;},'zCzJF':_0x480e8c(0x1cb),'rNFQc':_0x480e8c(0x1bf),'DmPdk':function(_0x19018a,_0x308ba3){return _0x19018a+_0x308ba3;},'Jmskv':function(_0x102410,_0x46ef6e){return _0x102410+_0x46ef6e;},'sMJbr':function(_0x15c2d4,_0x2175c0){return _0x15c2d4+_0x2175c0;},'qUMET':_0x480e8c(0x18b),'OfxDX':_0x480e8c(0x1aa),'WAqEI':function(_0x5a60ef,_0x1a0a0e){return _0x5a60ef&&_0x1a0a0e;},'PVNmu':'Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','Gqmno':function(_0x318e20,_0x48312d){return _0x318e20+_0x48312d;},'zikCK':function(_0x1659fc,_0x110931){return _0x1659fc+_0x110931;},'UEqgo':'Successfully\x20healed\x20command\x20using\x20new\x20','WOUDh':_0x480e8c(0x1a6),'MFMox':function(_0x171b4e,_0x2ab48f){return _0x171b4e+_0x2ab48f;},'OpYFn':_0x480e8c(0x1d8),'wIyOM':_0x480e8c(0x18e),'DeEVR':_0x480e8c(0x1d4),'VRRTO':_0x480e8c(0x181),'QXOJb':_0x480e8c(0x180),'ZYZZG':function(_0x3d35c8,_0x5d70c1){return _0x3d35c8===_0x5d70c1;},'HNjWn':'executeAsyncScript','fvBeL':function(_0x43a9ad,_0x5b3845){return _0x43a9ad===_0x5b3845;},'aGnAq':_0x480e8c(0x1b1),'pDGTG':_0x480e8c(0x1c8),'Nyyhy':_0x480e8c(0x1c7),'VqjPq':_0x480e8c(0x19c),'MNxCK':_0x480e8c(0x191),'jmxsI':'local'},_0x4dc493=_0x449bad[_0x480e8c(0x177)]||(helper[_0x480e8c(0x17e)](_0x55d58a,[_0x433dc7[_0x480e8c(0x183)],_0x433dc7[_0x480e8c(0x16e)]])||helper['nestedKeyValue'](_0x55d58a,[_0x433dc7['Nyyhy'],_0x433dc7['MNxCK'],_0x433dc7[_0x480e8c(0x1d1)]]));if(!globals['getGlobal'](_0x433dc7[_0x480e8c(0x1b3)])&&!globals[_0x480e8c(0x1bd)](_0x433dc7[_0x480e8c(0x1a3)])&&_0x4dc493)return;_0x449bad['patchExecute']=!![],_0x449bad[_0x480e8c(0x1cf)]=_0x449bad['execute'],_0x449bad['execute']=async _0x30acee=>{const _0x5e2bfc=_0x480e8c,_0x17112d={};_0x17112d['kbtlw']=_0x433dc7['mdTiV'];const _0x25368a=_0x17112d;try{const _0x1e810e={};_0x1e810e[_0x5e2bfc(0x174)]=_0x30acee[_0x5e2bfc(0x178)],await PerformanceTester[_0x5e2bfc(0x1b2)](PerformanceDriverEvents[_0x5e2bfc(0x17b)],async()=>{const _0x2187e3=_0x5e2bfc;if(!commandRepository[_0x2187e3(0x1af)]()&&globals[_0x2187e3(0x1bd)](_0x433dc7[_0x2187e3(0x1b3)])){const _0xb7eb0a=PerformanceTester[_0x2187e3(0x1b2)](_0x433dc7[_0x2187e3(0x1b4)],async()=>{const _0x784720=_0x2187e3;try{commandRepository[_0x784720(0x1da)](!![]),await aiSdkWrapper[_0x784720(0x1c5)]((await _0x449bad[_0x784720(0x1cc)]())[_0x784720(0x1ab)]());const _0x23da3c=globals[_0x784720(0x1bd)](_0x25368a[_0x784720(0x1ce)]);_0x23da3c&&commandRepository['setAiSessionTimeStamp']((await _0x449bad['getSession']())[_0x784720(0x1ab)]());}catch(_0xe0f3ea){logger[_0x784720(0x194)](_0x784720(0x1d5)+_0xe0f3ea);}});await _0x433dc7[_0x2187e3(0x1a9)](_0xb7eb0a);}},_0x1e810e)();const _0x233244=await _0x449bad[_0x5e2bfc(0x1cf)](_0x30acee);try{if(_0x433dc7['ZYZZG'](_0x30acee[_0x5e2bfc(0x178)],_0x433dc7['HNjWn'])||_0x433dc7[_0x5e2bfc(0x1be)](_0x30acee[_0x5e2bfc(0x178)],_0x433dc7[_0x5e2bfc(0x1b8)])){const _0xbc2a97=_0x30acee[_0x5e2bfc(0x1d4)]&&_0x30acee[_0x5e2bfc(0x1d4)]['script'],_0x59e21e=_0x30acee[_0x5e2bfc(0x1d4)]&&_0x30acee[_0x5e2bfc(0x1d4)][_0x5e2bfc(0x1ad)],_0x5ad0f4=_0x59e21e&&util[_0x5e2bfc(0x190)]('%j',_0x59e21e);if(_0xbc2a97&&_0x433dc7[_0x5e2bfc(0x1be)](typeof _0xbc2a97,_0x433dc7['pDGTG'])){const _0x268013=constants[_0x5e2bfc(0x1b6)][_0x5e2bfc(0x195)](_0x575614=>_0xbc2a97['includes'](_0x575614)||_0x5ad0f4&&_0x5ad0f4[_0x5e2bfc(0x19e)](_0x575614));if(_0x268013){const _0x4718fc={};_0x4718fc[_0x5e2bfc(0x174)]=_0x268013,_0x4718fc[_0x5e2bfc(0x170)]=_0x59e21e;const _0x219f60={};_0x219f60[_0x5e2bfc(0x1c6)]=_0x233244;const _0x4219cc={};_0x4219cc[_0x5e2bfc(0x1c1)]=_0x4718fc,_0x4219cc[_0x5e2bfc(0x1a2)]=_0x219f60,automationLogger[_0x5e2bfc(0x17f)]('['+new Date()[_0x5e2bfc(0x193)]()+_0x5e2bfc(0x19d)+util[_0x5e2bfc(0x190)]('%j',_0x4219cc));}}}}catch(_0x59daf3){logger[_0x5e2bfc(0x17f)]('Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20'+_0x59daf3[_0x5e2bfc(0x1db)]);}return await PerformanceTester['measureWrapper'](PerformanceDriverEvents['POST_EXECUTE'],async()=>{const _0x3c5649=_0x5e2bfc;if(!helper[_0x3c5649(0x1a4)]()&&(commandRepository['isSelfHealEnabled']()||globals[_0x3c5649(0x1bd)](_0x433dc7[_0x3c5649(0x18a)]))&&_0x433dc7[_0x3c5649(0x198)](_0x30acee[_0x3c5649(0x178)],_0x433dc7[_0x3c5649(0x1d2)])&&!_0x30acee[_0x3c5649(0x1a8)]&&globals[_0x3c5649(0x1bd)](_0x433dc7[_0x3c5649(0x1b3)])&&globals[_0x3c5649(0x1bd)](_0x433dc7[_0x3c5649(0x1a3)])){const _0x4db77c=new Date(),_0x5e2193=PerformanceTester[_0x3c5649(0x1b2)](_0x433dc7[_0x3c5649(0x1ae)],async()=>{const _0x7dfdb9=_0x3c5649;return await aiSdkWrapper[_0x7dfdb9(0x1c2)](_0x55d58a,_0x449bad,_0x30acee);});await _0x433dc7[_0x3c5649(0x199)](_0x5e2193);}},{'command':_0x30acee['name_']})(),_0x233244;}catch(_0x1963d0){await PerformanceTester[_0x5e2bfc(0x1b2)](PerformanceDriverEvents[_0x5e2bfc(0x1b5)],async()=>{const _0x218cbb=_0x5e2bfc;logger[_0x218cbb(0x1cd)](_0x433dc7[_0x218cbb(0x173)]);try{if(!helper[_0x218cbb(0x1a4)]()&&(_0x433dc7[_0x218cbb(0x198)](_0x1963d0['name'],_0x433dc7[_0x218cbb(0x179)])||_0x433dc7[_0x218cbb(0x185)](_0x1963d0[_0x218cbb(0x196)],_0x433dc7[_0x218cbb(0x1c9)]))&&_0x433dc7[_0x218cbb(0x185)](_0x30acee[_0x218cbb(0x178)],_0x433dc7['ChVxT'])&&commandRepository[_0x218cbb(0x176)]()&&globals[_0x218cbb(0x1bd)](_0x433dc7['mdTiV'])&&globals[_0x218cbb(0x1bd)](_0x433dc7[_0x218cbb(0x1a3)])){_0x433dc7[_0x218cbb(0x185)](_0x30acee[_0x218cbb(0x1d4)]['using'],_0x433dc7[_0x218cbb(0x186)])?logger[_0x218cbb(0x1bb)](_0x433dc7['zlbYQ'](_0x433dc7[_0x218cbb(0x1b0)](_0x433dc7[_0x218cbb(0x1c4)],_0x30acee[_0x218cbb(0x1d4)]['value']),_0x433dc7[_0x218cbb(0x17d)])):logger[_0x218cbb(0x1bb)](_0x433dc7[_0x218cbb(0x1a5)](_0x433dc7['DmPdk'](_0x433dc7['Jmskv'](_0x433dc7['sMJbr'](_0x433dc7[_0x218cbb(0x17a)],_0x30acee[_0x218cbb(0x1d4)][_0x218cbb(0x1a0)]),':\x20'),_0x30acee[_0x218cbb(0x1d4)][_0x218cbb(0x18d)]),_0x433dc7[_0x218cbb(0x17d)]));const _0x47c098=PerformanceTester[_0x218cbb(0x1b2)](_0x433dc7[_0x218cbb(0x1dc)],async()=>{return await aiSdkWrapper['handleFailure'](_0x55d58a,_0x449bad,_0x30acee);}),_0x508672=new Date(),{locatorType:_0x46fbbb,locatorValue:_0x99f355,commandHealed:_0x6c36b3}=await _0x433dc7[_0x218cbb(0x1a9)](_0x47c098);if(_0x433dc7[_0x218cbb(0x16f)](_0x46fbbb,_0x99f355)){_0x30acee['parameters_'][_0x218cbb(0x1a0)]=_0x46fbbb,_0x30acee[_0x218cbb(0x1d4)][_0x218cbb(0x18d)]=_0x99f355,_0x30acee[_0x218cbb(0x1a8)]=!![];const _0x39c11e=_0x449bad['execute'](_0x30acee);return _0x433dc7[_0x218cbb(0x185)](_0x46fbbb,_0x433dc7[_0x218cbb(0x186)])?logger[_0x218cbb(0x1bb)](_0x433dc7[_0x218cbb(0x19b)](_0x433dc7['PVNmu'],_0x99f355)):logger[_0x218cbb(0x1bb)](_0x433dc7['Gqmno'](_0x433dc7[_0x218cbb(0x1de)](_0x433dc7[_0x218cbb(0x1de)](_0x433dc7[_0x218cbb(0x1b9)],_0x46fbbb),':\x20'),_0x99f355)),_0x39c11e;}else!_0x6c36b3&&(_0x433dc7[_0x218cbb(0x198)](_0x46fbbb,_0x433dc7[_0x218cbb(0x186)])?logger['info'](_0x433dc7[_0x218cbb(0x1de)](_0x433dc7[_0x218cbb(0x187)],_0x30acee[_0x218cbb(0x1d4)][_0x218cbb(0x18d)])):logger['info'](_0x433dc7[_0x218cbb(0x192)](_0x433dc7['MFMox'](_0x433dc7[_0x218cbb(0x1a5)](_0x433dc7['OpYFn'],_0x30acee['parameters_'][_0x218cbb(0x1a0)]),':\x20'),_0x30acee[_0x218cbb(0x1d4)][_0x218cbb(0x18d)])));}!_0x4dc493&&_0x433dc7[_0x218cbb(0x185)](_0x30acee[_0x218cbb(0x178)],_0x433dc7[_0x218cbb(0x1d3)])&&helper[_0x218cbb(0x17e)](_0x30acee,[_0x433dc7[_0x218cbb(0x171)],_0x433dc7[_0x218cbb(0x1ca)]])&&!!constants['NUDGE_LOCAL_ERRORS'][_0x218cbb(0x195)](_0x5c26b1=>{const _0x4e6b1c=_0x218cbb;return _0x1963d0[_0x4e6b1c(0x172)]()[_0x4e6b1c(0x19e)](_0x5c26b1);})&&helper[_0x218cbb(0x1df)](_0x30acee[_0x218cbb(0x1d4)][_0x218cbb(0x181)],!![]);}catch(_0x5dbf0f){logger['debug'](_0x433dc7[_0x218cbb(0x1a7)],_0x5dbf0f);}},{'success':![],'failure':_0x1963d0})();throw _0x1963d0;}};};
|
|
1
|
+
function a111_0x3132(_0x1402df,_0x1f7b21){const _0x15b606=a111_0x15b6();return a111_0x3132=function(_0x3132f6,_0x2b3001){_0x3132f6=_0x3132f6-0x1e3;let _0x4b2988=_0x15b606[_0x3132f6];return _0x4b2988;},a111_0x3132(_0x1402df,_0x1f7b21);}function a111_0x15b6(){const _0x18bdc9=['5816fuEaYR','fmdBJ','handleSuccess','browserstack.local','aiHeal:setToken','DcmvR','POST_EXECUTE','vdRwV','jIYcn','1131BxDMOh','tqxDf','setTcgToken','nestedKeyValue','OMFsD','find','zNkAA','2998CwBBKo','url','sfNKb','parameters_','ECTSP','bstack:options','findElement','fXuiw','UiqtS','aiSdk_defaultLogDataEnabled','kUAAr','Error\x20in\x20handling\x20TCG\x20Auth:\x20','script','request','getGlobal','initExecute','executeAsyncScript','aiHeal_isHealingEnabled','UmCQN','isBrowserstackInfra','JavascriptError','hXjts','debug','getId','format','./helper','bRirh','esfyy','1256MUjzSj','oztly','KiaEm','name_','cHlWe','GkFuA','name','CVAoX','skipHealingSuccess','body','get','includes','aiHeal:findElementFailure','Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20','JjEGZ','GDsiv','KaiHn','1117629SbFpxz','getNudgeLocalNotSetError','measureWrapper','aiHeal_isAuthenticated','capability','parameters','LiiTT','782390XVKook','patchExecute','setAiSessionTimeStamp','./ai-sdk/autoHealHelper','SFieh','execute','ICAME','silly','error','message','SrlIM','NoSuchElementError','2044SWwJDc','Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','NUDGE_LOCAL_ERRORS','11jASsre','IdCnG','getTcgTokenStatus','jnDyP','./ai-sdk/aiSdkWrapper','Healing\x20failed\x20for\x20command\x20using\x20','findElement\x20command\x20failed\x20with\x20','command','lNpSU','aiHeal:findElementSuccess','AUTOMATION_LOG_COMMANDS','2990664rkElGb',';\x20Trying\x20to\x20heal','RgOyh','getSession','using','./performance/constants','args','Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','overrideExecute','Successfully\x20healed\x20command\x20using\x20new\x20','FFTUw','./logger','./globals','OMQoo','info','executeScript','HJZxT','acedE','JpTVT','175yJMFqz','css\x20selector','value','wJMPK','gxviR','69XsUakc','AEGHP','16554rxyCBd','isSelfHealEnabled'];a111_0x15b6=function(){return _0x18bdc9;};return a111_0x15b6();}const a111_0x5ef990=a111_0x3132;(function(_0x44eea2,_0x55f366){const _0x445d6f=a111_0x3132,_0x3db25f=_0x44eea2();while(!![]){try{const _0x310b1b=-parseInt(_0x445d6f(0x215))/0x1*(-parseInt(_0x445d6f(0x229))/0x2)+parseInt(_0x445d6f(0x222))/0x3*(-parseInt(_0x445d6f(0x245))/0x4)+parseInt(_0x445d6f(0x210))/0x5*(parseInt(_0x445d6f(0x217))/0x6)+parseInt(_0x445d6f(0x1ef))/0x7*(-parseInt(_0x445d6f(0x219))/0x8)+parseInt(_0x445d6f(0x257))/0x9+-parseInt(_0x445d6f(0x1e3))/0xa*(parseInt(_0x445d6f(0x1f2))/0xb)+parseInt(_0x445d6f(0x1fd))/0xc;if(_0x310b1b===_0x55f366)break;else _0x3db25f['push'](_0x3db25f['shift']());}catch(_0x5203d7){_0x3db25f['push'](_0x3db25f['shift']());}}}(a111_0x15b6,0x28292));const {aiSdkWrapper}=require(a111_0x5ef990(0x1f6)),{commandRepository}=require(a111_0x5ef990(0x1e6)),PerformanceTester=require('./performance/performance-tester'),globals=require(a111_0x5ef990(0x209)),{winstonLogger:logger,automationLogger}=require(a111_0x5ef990(0x208)),helper=require(a111_0x5ef990(0x242)),constants=require('../bin/utils/constants'),{DRIVER_EVENT:PerformanceDriverEvents}=require(a111_0x5ef990(0x202)),util=require('util');exports[a111_0x5ef990(0x205)]=(_0x50107a,_0x2724cf)=>{const _0x53a435=a111_0x5ef990,_0x23f907={'SrlIM':_0x53a435(0x25a),'Dvdsw':_0x53a435(0x21d),'LiiTT':function(_0xa6e0e){return _0xa6e0e();},'IdCnG':_0x53a435(0x232),'GkFuA':function(_0x1e244e,_0x4d7c29){return _0x1e244e===_0x4d7c29;},'OMQoo':_0x53a435(0x22f),'kUAAr':_0x53a435(0x23a),'tQzZD':_0x53a435(0x1fb),'fmdBJ':_0x53a435(0x204),'dmBEx':_0x53a435(0x1ee),'hBvkX':function(_0x3830f9,_0x10a03c){return _0x3830f9===_0x10a03c;},'HJZxT':_0x53a435(0x23d),'jnDyP':function(_0x4fc2db,_0xe35656){return _0x4fc2db===_0xe35656;},'KMDUN':function(_0x19e727,_0x1d43e9){return _0x19e727===_0x1d43e9;},'ICAME':_0x53a435(0x211),'CVAoX':function(_0x2b4b4a,_0x58eadf){return _0x2b4b4a+_0x58eadf;},'bRirh':function(_0x210f48,_0x23f8cd){return _0x210f48+_0x23f8cd;},'cHlWe':'findElement\x20command\x20failed\x20with\x20cssPath:\x20','JjEGZ':_0x53a435(0x1fe),'JpTVT':function(_0x343a5f,_0x38625a){return _0x343a5f+_0x38625a;},'AEGHP':_0x53a435(0x1f8),'SFieh':_0x53a435(0x251),'fXuiw':function(_0x201d2a){return _0x201d2a();},'RgOyh':function(_0x2813db,_0x5274a1){return _0x2813db&&_0x5274a1;},'UmCQN':function(_0x22d3ab,_0x1b2295){return _0x22d3ab===_0x1b2295;},'esfyy':function(_0x4e103c,_0x4acc33){return _0x4e103c+_0x4acc33;},'lNpSU':'Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','HfeXG':_0x53a435(0x206),'zNkAA':function(_0x135c27,_0x3ba4fe){return _0x135c27===_0x3ba4fe;},'FFTUw':function(_0x534dc0,_0x167082){return _0x534dc0+_0x167082;},'vdRwV':_0x53a435(0x1f0),'jIYcn':function(_0x33c884,_0x97c8fa){return _0x33c884+_0x97c8fa;},'wJMPK':function(_0x218372,_0x1ba25b){return _0x218372+_0x1ba25b;},'ECTSP':_0x53a435(0x1f7),'KiaEm':_0x53a435(0x24f),'sfNKb':_0x53a435(0x22c),'gxviR':_0x53a435(0x22a),'xunIl':_0x53a435(0x252),'UiqtS':_0x53a435(0x239),'DcmvR':function(_0x3df972,_0x4e020b){return _0x3df972===_0x4e020b;},'VMneG':_0x53a435(0x20c),'tqxDf':function(_0x5d90ec,_0x51a55a){return _0x5d90ec===_0x51a55a;},'hXjts':'string','GDsiv':_0x53a435(0x25b),'OMFsD':_0x53a435(0x21c),'oztly':_0x53a435(0x22e),'acedE':'local'},_0x5a813e=_0x50107a[_0x53a435(0x1e4)]||(helper[_0x53a435(0x225)](_0x2724cf,[_0x23f907[_0x53a435(0x255)],_0x23f907[_0x53a435(0x226)]])||helper['nestedKeyValue'](_0x2724cf,[_0x23f907[_0x53a435(0x255)],_0x23f907[_0x53a435(0x246)],_0x23f907[_0x53a435(0x20e)]]));if(!globals['getGlobal'](_0x23f907[_0x53a435(0x1ed)])&&!globals[_0x53a435(0x237)](_0x23f907[_0x53a435(0x233)])&&_0x5a813e)return;_0x50107a[_0x53a435(0x1e4)]=!![],_0x50107a[_0x53a435(0x238)]=_0x50107a[_0x53a435(0x1e8)],_0x50107a['execute']=async _0x344335=>{const _0x17fd1d=_0x53a435,_0x42707d={};_0x42707d[_0x17fd1d(0x256)]=_0x23f907[_0x17fd1d(0x1ed)];const _0x4d7b95=_0x42707d;try{const _0x1f4470={};_0x1f4470[_0x17fd1d(0x1f9)]=_0x344335['name_'],await PerformanceTester['measureWrapper'](PerformanceDriverEvents['PRE_EXECUTE'],async()=>{const _0xcb054c=_0x17fd1d;if(!commandRepository[_0xcb054c(0x1f4)]()&&globals[_0xcb054c(0x237)](_0x23f907[_0xcb054c(0x1ed)])){const _0x3041d7=PerformanceTester[_0xcb054c(0x259)](_0x23f907['Dvdsw'],async()=>{const _0xac2df8=_0xcb054c;try{commandRepository['setTcgTokenStatus'](!![]),await aiSdkWrapper[_0xac2df8(0x224)]((await _0x50107a[_0xac2df8(0x200)]())['getId']());const _0x3e22d8=globals[_0xac2df8(0x237)](_0x4d7b95['KaiHn']);_0x3e22d8&&commandRepository[_0xac2df8(0x1e5)]((await _0x50107a[_0xac2df8(0x200)]())[_0xac2df8(0x240)]());}catch(_0x51fd0a){logger[_0xac2df8(0x1eb)](_0xac2df8(0x234)+_0x51fd0a);}});await _0x23f907[_0xcb054c(0x25d)](_0x3041d7);}},_0x1f4470)();const _0x5c7675=await _0x50107a[_0x17fd1d(0x238)](_0x344335);try{if(_0x23f907[_0x17fd1d(0x1f5)](_0x344335['name_'],_0x23f907[_0x17fd1d(0x231)])||_0x23f907[_0x17fd1d(0x21e)](_0x344335[_0x17fd1d(0x248)],_0x23f907['VMneG'])){const _0x4e03a8=_0x344335[_0x17fd1d(0x22c)]&&_0x344335[_0x17fd1d(0x22c)][_0x17fd1d(0x235)],_0x3fc6dd=_0x344335[_0x17fd1d(0x22c)]&&_0x344335[_0x17fd1d(0x22c)][_0x17fd1d(0x203)],_0x25168e=_0x3fc6dd&&util['format']('%j',_0x3fc6dd);if(_0x4e03a8&&_0x23f907[_0x17fd1d(0x223)](typeof _0x4e03a8,_0x23f907[_0x17fd1d(0x23e)])){const _0x459f21=constants[_0x17fd1d(0x1fc)][_0x17fd1d(0x227)](_0x20013c=>_0x4e03a8[_0x17fd1d(0x250)](_0x20013c)||_0x25168e&&_0x25168e['includes'](_0x20013c));if(_0x459f21){const _0x277b65={};_0x277b65['command']=_0x459f21,_0x277b65[_0x17fd1d(0x25c)]=_0x3fc6dd;const _0x4aa8d3={};_0x4aa8d3[_0x17fd1d(0x24e)]=_0x5c7675;const _0x2c1dc4={};_0x2c1dc4[_0x17fd1d(0x236)]=_0x277b65,_0x2c1dc4['response']=_0x4aa8d3,automationLogger[_0x17fd1d(0x1ea)]('['+new Date()['toISOString']()+'][\x20SDK-AUTOMATION\x20]\x20'+util[_0x17fd1d(0x241)]('%j',_0x2c1dc4));}}}}catch(_0x2688d4){logger[_0x17fd1d(0x1ea)](_0x17fd1d(0x253)+_0x2688d4[_0x17fd1d(0x1ec)]);}return await PerformanceTester[_0x17fd1d(0x259)](PerformanceDriverEvents[_0x17fd1d(0x21f)],async()=>{const _0x2f2ced=_0x17fd1d;if(!helper[_0x2f2ced(0x23c)]()&&(commandRepository[_0x2f2ced(0x218)]()||globals['getGlobal'](_0x23f907[_0x2f2ced(0x1f3)]))&&_0x23f907[_0x2f2ced(0x24a)](_0x344335['name_'],_0x23f907['OMQoo'])&&!_0x344335['skipHealingSuccess']&&globals[_0x2f2ced(0x237)](_0x23f907['SrlIM'])&&globals[_0x2f2ced(0x237)](_0x23f907[_0x2f2ced(0x233)])){const _0x7637f6=new Date(),_0x3e77ec=PerformanceTester[_0x2f2ced(0x259)](_0x23f907['tQzZD'],async()=>{const _0x3b3f74=_0x2f2ced;return await aiSdkWrapper[_0x3b3f74(0x21b)](_0x2724cf,_0x50107a,_0x344335);});await _0x23f907[_0x2f2ced(0x25d)](_0x3e77ec);}},{'command':_0x344335[_0x17fd1d(0x248)]})(),_0x5c7675;}catch(_0x38f1d8){await PerformanceTester['measureWrapper'](PerformanceDriverEvents[_0x17fd1d(0x21f)],async()=>{const _0x4b4554=_0x17fd1d;logger[_0x4b4554(0x23f)](_0x23f907[_0x4b4554(0x21a)]);try{if(!helper[_0x4b4554(0x23c)]()&&(_0x23f907[_0x4b4554(0x24a)](_0x38f1d8[_0x4b4554(0x24b)],_0x23f907['dmBEx'])||_0x23f907['hBvkX'](_0x38f1d8[_0x4b4554(0x24b)],_0x23f907[_0x4b4554(0x20d)]))&&_0x23f907[_0x4b4554(0x1f5)](_0x344335[_0x4b4554(0x248)],_0x23f907[_0x4b4554(0x20a)])&&commandRepository[_0x4b4554(0x218)]()&&globals['getGlobal'](_0x23f907[_0x4b4554(0x1ed)])&&globals[_0x4b4554(0x237)](_0x23f907[_0x4b4554(0x233)])){_0x23f907['KMDUN'](_0x344335['parameters_'][_0x4b4554(0x201)],_0x23f907[_0x4b4554(0x1e9)])?logger['info'](_0x23f907[_0x4b4554(0x24c)](_0x23f907[_0x4b4554(0x243)](_0x23f907[_0x4b4554(0x249)],_0x344335['parameters_']['value']),_0x23f907['JjEGZ'])):logger[_0x4b4554(0x20b)](_0x23f907[_0x4b4554(0x243)](_0x23f907['CVAoX'](_0x23f907[_0x4b4554(0x243)](_0x23f907[_0x4b4554(0x20f)](_0x23f907[_0x4b4554(0x216)],_0x344335[_0x4b4554(0x22c)]['using']),':\x20'),_0x344335[_0x4b4554(0x22c)][_0x4b4554(0x212)]),_0x23f907[_0x4b4554(0x254)]));const _0x3eeeaa=PerformanceTester[_0x4b4554(0x259)](_0x23f907[_0x4b4554(0x1e7)],async()=>{return await aiSdkWrapper['handleFailure'](_0x2724cf,_0x50107a,_0x344335);}),_0x34da92=new Date(),{locatorType:_0x5b0df5,locatorValue:_0x100a40,commandHealed:_0x53dbf1}=await _0x23f907[_0x4b4554(0x230)](_0x3eeeaa);if(_0x23f907[_0x4b4554(0x1ff)](_0x5b0df5,_0x100a40)){_0x344335['parameters_'][_0x4b4554(0x201)]=_0x5b0df5,_0x344335[_0x4b4554(0x22c)][_0x4b4554(0x212)]=_0x100a40,_0x344335[_0x4b4554(0x24d)]=!![];const _0x143a5c=_0x50107a[_0x4b4554(0x1e8)](_0x344335);return _0x23f907[_0x4b4554(0x23b)](_0x5b0df5,_0x23f907[_0x4b4554(0x1e9)])?logger[_0x4b4554(0x20b)](_0x23f907['esfyy'](_0x23f907[_0x4b4554(0x1fa)],_0x100a40)):logger[_0x4b4554(0x20b)](_0x23f907[_0x4b4554(0x20f)](_0x23f907[_0x4b4554(0x244)](_0x23f907['bRirh'](_0x23f907['HfeXG'],_0x5b0df5),':\x20'),_0x100a40)),_0x143a5c;}else!_0x53dbf1&&(_0x23f907['zNkAA'](_0x5b0df5,_0x23f907[_0x4b4554(0x1e9)])?logger[_0x4b4554(0x20b)](_0x23f907[_0x4b4554(0x207)](_0x23f907[_0x4b4554(0x220)],_0x344335[_0x4b4554(0x22c)][_0x4b4554(0x212)])):logger[_0x4b4554(0x20b)](_0x23f907[_0x4b4554(0x207)](_0x23f907[_0x4b4554(0x221)](_0x23f907[_0x4b4554(0x213)](_0x23f907[_0x4b4554(0x22d)],_0x344335[_0x4b4554(0x22c)][_0x4b4554(0x201)]),':\x20'),_0x344335[_0x4b4554(0x22c)]['value'])));}!_0x5a813e&&_0x23f907[_0x4b4554(0x228)](_0x344335[_0x4b4554(0x248)],_0x23f907[_0x4b4554(0x247)])&&helper[_0x4b4554(0x225)](_0x344335,[_0x23f907[_0x4b4554(0x22b)],_0x23f907[_0x4b4554(0x214)]])&&!!constants[_0x4b4554(0x1f1)][_0x4b4554(0x227)](_0x481fee=>{const _0xdf625d=_0x4b4554;return _0x38f1d8['toString']()[_0xdf625d(0x250)](_0x481fee);})&&helper[_0x4b4554(0x258)](_0x344335['parameters_'][_0x4b4554(0x22a)],!![]);}catch(_0x3053f2){logger[_0x4b4554(0x23f)](_0x23f907['xunIl'],_0x3053f2);}},{'success':![],'failure':_0x38f1d8})();throw _0x38f1d8;}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a112_0x3293f6=a112_0x1608;(function(_0x7486ca,_0x514e8d){const _0x149859=a112_0x1608,_0x16af36=_0x7486ca();while(!![]){try{const _0x26d9b0=parseInt(_0x149859(0x1d6))/0x1*(-parseInt(_0x149859(0x1d7))/0x2)+-parseInt(_0x149859(0x1db))/0x3+parseInt(_0x149859(0x1e4))/0x4*(-parseInt(_0x149859(0x1e3))/0x5)+-parseInt(_0x149859(0x1ec))/0x6*(parseInt(_0x149859(0x1ed))/0x7)+parseInt(_0x149859(0x1e0))/0x8+parseInt(_0x149859(0x1e8))/0x9*(parseInt(_0x149859(0x1d2))/0xa)+-parseInt(_0x149859(0x1d5))/0xb*(-parseInt(_0x149859(0x1ea))/0xc);if(_0x26d9b0===_0x514e8d)break;else _0x16af36['push'](_0x16af36['shift']());}catch(_0x1e6ac7){_0x16af36['push'](_0x16af36['shift']());}}}(a112_0x2a6f,0x90535));function a112_0x1608(_0x2d4a20,_0x58f92b){const _0x2a6fb1=a112_0x2a6f();return a112_0x1608=function(_0x1608d6,_0x2f125c){_0x1608d6=_0x1608d6-0x1c8;let _0x29ab3b=_0x2a6fb1[_0x1608d6];return _0x29ab3b;},a112_0x1608(_0x2d4a20,_0x58f92b);}const PerformanceTester=require(a112_0x3293f6(0x1f2)),O11yEvents=require('./performance/constants')[a112_0x3293f6(0x1cc)];function a112_0x2a6f(){const _0x5ec28a=['5167FpGgyU','326RCfrRX','end','TAKE_SCREENSHOT','TEST_SCREENSHOT','2104674aPLOux','catch','initQuit','bs:addLog:','then','7271952IZzGnO','sWPmK','MkVtL','4100715HzwwKi','4yhXlsA','quit','overrideTakeScreenshot','emit','9JdfYhs','initScreenshot','108aGwZPT','DCiyR','1996272FKrLkp','7JOqivd','takeScreenshot','start','overrideQuit','DDAEo','./performance/performance-tester','Jsvcm','BS_TESTOPS_ALLOW_SCREENSHOTS','RRMwF','true','O11y_EVENTS','patchScreenshot','env','patchQuit','quitCount_','IIoax','4555780hQOBXV','LxNLL','YLiae','2350601eWsyyx'];a112_0x2a6f=function(){return _0x5ec28a;};return a112_0x2a6f();}exports[a112_0x3293f6(0x1e6)]=_0x2e110f=>{const _0x461e86=a112_0x3293f6,_0x3b40f3={'LxNLL':_0x461e86(0x1da),'MkVtL':function(_0x39802c,_0x113c00){return _0x39802c(_0x113c00);},'IIoax':function(_0x484a09,_0x5d73de){return _0x484a09!==_0x5d73de;},'DDAEo':_0x461e86(0x1cb)};if(_0x3b40f3[_0x461e86(0x1d1)](process[_0x461e86(0x1ce)][_0x461e86(0x1c9)],_0x3b40f3[_0x461e86(0x1f1)]))return;if(_0x2e110f[_0x461e86(0x1cd)])return;_0x2e110f['patchScreenshot']=!![],_0x2e110f[_0x461e86(0x1e9)]=_0x2e110f[_0x461e86(0x1ee)],_0x2e110f['takeScreenshot']=()=>{return new Promise(function(_0x1032c7,_0x5058ec){const _0xe8b9eb=a112_0x1608,_0x5816b6={'Jsvcm':_0x3b40f3[_0xe8b9eb(0x1d3)],'DCiyR':function(_0x4eaf33,_0x987055){const _0x2f110e=_0xe8b9eb;return _0x3b40f3[_0x2f110e(0x1e2)](_0x4eaf33,_0x987055);},'sWPmK':function(_0x32a7e9,_0x2c04e8){return _0x3b40f3['MkVtL'](_0x32a7e9,_0x2c04e8);}};_0x2e110f[_0xe8b9eb(0x1e9)]()[_0xe8b9eb(0x1df)](_0x162132=>{const _0x5dffa3=_0xe8b9eb;PerformanceTester[_0x5dffa3(0x1ef)](O11yEvents[_0x5dffa3(0x1d9)]),process[_0x5dffa3(0x1e7)](_0x5dffa3(0x1de)+process['pid'],{'timestamp':new Date()['toISOString'](),'message':_0x162132,'kind':_0x5816b6[_0x5dffa3(0x1c8)]}),_0x5816b6[_0x5dffa3(0x1eb)](_0x1032c7,_0x162132),PerformanceTester['end'](O11yEvents[_0x5dffa3(0x1d9)]);})[_0xe8b9eb(0x1dc)](_0x180f06=>{const _0x1da441=_0xe8b9eb;PerformanceTester[_0x1da441(0x1d8)](O11yEvents[_0x1da441(0x1d9)]),_0x5816b6[_0x1da441(0x1e1)](_0x5058ec,_0x180f06);});});};},exports[a112_0x3293f6(0x1f0)]=(_0x27ea43,_0x48ff26=null)=>{const _0x1671ac=a112_0x3293f6,_0x211940={'OWRtr':function(_0x41f3b4){return _0x41f3b4();},'RRMwF':function(_0x57c63f,_0x510438){return _0x57c63f>_0x510438;}};if(_0x27ea43[_0x1671ac(0x1cf)])return;_0x27ea43[_0x1671ac(0x1cf)]=!![],_0x27ea43[_0x1671ac(0x1dd)]=_0x27ea43[_0x1671ac(0x1e5)],_0x27ea43[_0x1671ac(0x1e5)]=()=>{const _0x4a92ba=_0x1671ac,_0x5002a4={'YLiae':function(_0x46ff84){return _0x211940['OWRtr'](_0x46ff84);}};if(_0x48ff26){_0x48ff26['quitCount_']+=0x1;if(_0x211940[_0x4a92ba(0x1ca)](_0x48ff26['quitCount_'],0x1))return _0x27ea43[_0x4a92ba(0x1dd)]();}else{_0x27ea43[_0x4a92ba(0x1d0)]+=0x1;if(_0x211940[_0x4a92ba(0x1ca)](_0x27ea43[_0x4a92ba(0x1d0)],0x1))return _0x27ea43[_0x4a92ba(0x1dd)]();}return new Promise(function(_0x3e12f3){const _0x412db3=_0x4a92ba;_0x5002a4[_0x412db3(0x1d4)](_0x3e12f3);});};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a113_0x561529=a113_0xeb0f;function a113_0xeb0f(_0x5216b8,_0x124cda){const _0x54d171=a113_0x54d1();return a113_0xeb0f=function(_0xeb0f70,_0x34994f){_0xeb0f70=_0xeb0f70-0xf8;let _0x39d313=_0x54d171[_0xeb0f70];return _0x39d313;},a113_0xeb0f(_0x5216b8,_0x124cda);}(function(_0x367fbd,_0x5d1fea){const _0xd76f65=a113_0xeb0f,_0xd65b45=_0x367fbd();while(!![]){try{const _0x1940ab=parseInt(_0xd76f65(0x146))/0x1*(-parseInt(_0xd76f65(0x131))/0x2)+-parseInt(_0xd76f65(0x116))/0x3*(parseInt(_0xd76f65(0x110))/0x4)+parseInt(_0xd76f65(0x11a))/0x5+parseInt(_0xd76f65(0x127))/0x6+parseInt(_0xd76f65(0x10f))/0x7*(parseInt(_0xd76f65(0x13c))/0x8)+-parseInt(_0xd76f65(0x10c))/0x9*(-parseInt(_0xd76f65(0x12b))/0xa)+parseInt(_0xd76f65(0x103))/0xb*(parseInt(_0xd76f65(0x144))/0xc);if(_0x1940ab===_0x5d1fea)break;else _0xd65b45['push'](_0xd65b45['shift']());}catch(_0x127d35){_0xd65b45['push'](_0xd65b45['shift']());}}}(a113_0x54d1,0x6e5d7));const fs=require('fs'),path=require(a113_0x561529(0x112)),os=require('os'),{spawn}=require(a113_0x561529(0x13f)),helper=require(a113_0x561529(0x117)),logger=require('../logger')['winstonLogger'],{getLogDir}=require(a113_0x561529(0xfd)),testHubConstants=require(a113_0x561529(0x118)),PerformanceTester=require(a113_0x561529(0x12e)),{PERCY_EVENTS:PerformanceEvents}=require(a113_0x561529(0x13e)),PercyBinary=require(a113_0x561529(0x128));class Percy{#logfile=path['join'](getLogDir(),a113_0x561529(0x11b));#address=process[a113_0x561529(0x121)][a113_0x561529(0x12f)]||'http://localhost:5338';#binaryPath=null;#config=null;#proc=null;#logStream=null;#isApp=![];['isProcessRunning']=![];constructor(_0x4cf83d){const _0xd82adf=a113_0x561529;this.#config=_0x4cf83d,!!_0x4cf83d[_0xd82adf(0xff)]&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x1b0f87=a113_0x561529;if(!this.#binaryPath){const _0x4ee049=new PercyBinary();PerformanceTester[_0x1b0f87(0x132)](PerformanceEvents[_0x1b0f87(0x12c)]),this.#binaryPath=await _0x4ee049[_0x1b0f87(0x143)](this.#config),PerformanceTester[_0x1b0f87(0x114)](PerformanceEvents[_0x1b0f87(0x12c)]);}return this.#binaryPath;}async #sleep(_0x7d5b4b){return new Promise(_0x1d2747=>setTimeout(_0x1d2747,_0x7d5b4b));}async[a113_0x561529(0x138)](){const _0x334512=a113_0x561529,_0x53b0e1={};_0x53b0e1[_0x334512(0x135)]=_0x334512(0x136),_0x53b0e1[_0x334512(0xf9)]='percy/healthcheck';const _0x3be3a6=_0x53b0e1;try{const _0x226eb4=await helper[_0x334512(0x125)](_0x3be3a6[_0x334512(0x135)],_0x3be3a6[_0x334512(0xf9)],null,null,this.#address);if(_0x226eb4)return!![];}catch(_0x260439){return![];}}async[a113_0x561529(0x132)](){const _0xf776a=a113_0x561529,_0x2c744b={'cVBps':_0xf776a(0x119),'GNLNr':_0xf776a(0x11e),'EKEqt':function(_0x1566b1,_0x5a7c20,_0x5604b3,_0x13f42a){return _0x1566b1(_0x5a7c20,_0x5604b3,_0x13f42a);},'gUBiL':_0xf776a(0x108),'dHoQO':_0xf776a(0x11c)},_0xc55cb0=await this.#getBinaryPath(),_0x367f73={};_0x367f73['flags']='a',this.#logStream=fs['createWriteStream'](this.#logfile,_0x367f73);const _0x57b34d=await this[_0xf776a(0x130)](),_0x3e3afb=await this['createPercyConfig']();if(!_0x57b34d)return![];const _0x7199ab=[(this.#isApp?_0x2c744b[_0xf776a(0x129)]:_0x2c744b['GNLNr'])+_0xf776a(0x123)];_0x3e3afb&&_0x7199ab[_0xf776a(0xfe)]('-c',_0x3e3afb);this.#proc=_0x2c744b['EKEqt'](spawn,_0xc55cb0,_0x7199ab,{'env':Object[_0xf776a(0xfb)](process[_0xf776a(0x121)],{'PERCY_TOKEN':_0x57b34d,'TH_BUILD_UUID':process[_0xf776a(0x121)][testHubConstants[_0xf776a(0x134)][_0xf776a(0x109)]]})}),this.#proc[_0xf776a(0x120)][_0xf776a(0x101)](this.#logStream),this.#proc['stderr'][_0xf776a(0x101)](this.#logStream),this['isProcessRunning']=!![];var _0x2e1f88=this;this.#proc['on'](_0x2c744b[_0xf776a(0x13a)],function(_0x534976){_0x2e1f88['isProcessRunning']=![];});do{const _0x13c865=await this[_0xf776a(0x138)]();if(_0x13c865)return logger['debug'](_0x2c744b[_0xf776a(0x11f)]),!![];await this.#sleep(0x3e8);}while(this[_0xf776a(0x102)]);return![];}async['stop'](){const _0x57746f=a113_0x561529,_0x33d83e={'pUGGL':function(_0x369e7a,_0x183808){return _0x369e7a(_0x183808);},'KYcBG':function(_0x379af2,_0xfeeca4,_0x51aea8){return _0x379af2(_0xfeeca4,_0x51aea8);},'YQSUs':_0x57746f(0x10d),'wSydU':_0x57746f(0x108)},_0x10a91a=await this.#getBinaryPath();return new Promise((_0x8319cc,_0x3ed578)=>{const _0x1f3140=_0x57746f,_0x62d57e=_0x33d83e['KYcBG'](spawn,_0x10a91a,[_0x33d83e[_0x1f3140(0x126)]]);_0x62d57e['on'](_0x33d83e[_0x1f3140(0x105)],_0x5e5182=>{const _0x7302c4=_0x1f3140;this[_0x7302c4(0x102)]=![],this.#logStream&&(this.#logStream[_0x7302c4(0x114)](),this.#logStream=null),_0x33d83e[_0x7302c4(0x139)](_0x8319cc,_0x5e5182);});});}[a113_0x561529(0xfa)](){const _0x43ee2d=a113_0x561529;return this[_0x43ee2d(0x102)];}async[a113_0x561529(0x130)](){const _0x420143=a113_0x561529,_0x19107b={};_0x19107b[_0x420143(0x13d)]=_0x420143(0xff),_0x19107b[_0x420143(0x11d)]=_0x420143(0x106),_0x19107b[_0x420143(0x147)]=_0x420143(0x136),_0x19107b[_0x420143(0x133)]=_0x420143(0xf8);const _0x231e5f=_0x19107b,_0x8080e=this.#config['projectName'];try{const _0x3510f1=this.#isApp?_0x231e5f[_0x420143(0x13d)]:_0x231e5f[_0x420143(0x11d)],_0x4c7b27=await helper['nodeRequest'](_0x231e5f[_0x420143(0x147)],_0x420143(0x113)+_0x8080e+_0x420143(0x10b)+_0x3510f1,{},this.#config),_0x569250=_0x4c7b27[_0x420143(0x122)];return logger[_0x420143(0x145)](_0x231e5f[_0x420143(0x133)]),_0x569250[_0x420143(0x137)];}catch(_0x5aa1f0){return logger['error']('Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20'+_0x5aa1f0),null;}}async[a113_0x561529(0x100)](){const _0x15d6bd=a113_0x561529,_0x4a3ddd={'POqYo':function(_0x35d611,_0xfe4597){return _0x35d611(_0xfe4597);},'sdtwK':function(_0x9f9d1a,_0x196e3a){return _0x9f9d1a+_0x196e3a;},'VzpHE':'Percy\x20config\x20created\x20at\x20','yWxaW':_0x15d6bd(0x115)};if(!this.#config[_0x15d6bd(0x12a)])return null;const _0x39ea77=path[_0x15d6bd(0x140)](os[_0x15d6bd(0x13b)](),_0x4a3ddd['yWxaW']),_0x5af48b=this.#config['percyOptions'];return!_0x5af48b[_0x15d6bd(0x141)]&&(_0x5af48b['version']='2'),new Promise((_0x2f2807,_0xdb432)=>{const _0x3216e6=_0x15d6bd,_0x409b0e={'emuuu':function(_0x418220,_0x30cb16){const _0xb99e6a=a113_0xeb0f;return _0x4a3ddd[_0xb99e6a(0x10e)](_0x418220,_0x30cb16);},'eFdTg':function(_0x3117f0,_0x3059f7){return _0x4a3ddd['sdtwK'](_0x3117f0,_0x3059f7);},'aanan':_0x4a3ddd['VzpHE']};fs[_0x3216e6(0x104)](_0x39ea77,JSON[_0x3216e6(0x111)](_0x5af48b),_0x243c73=>{const _0x14f8dc=_0x3216e6;_0x243c73&&(logger[_0x14f8dc(0xfc)](_0x14f8dc(0x107)+_0x243c73),_0x409b0e[_0x14f8dc(0x124)](_0x2f2807,null)),logger['debug'](_0x409b0e[_0x14f8dc(0x142)](_0x409b0e[_0x14f8dc(0x12d)],_0x39ea77)),_0x409b0e[_0x14f8dc(0x124)](_0x2f2807,_0x39ea77);});});}}module[a113_0x561529(0x10a)]=Percy;function a113_0x54d1(){const _0x2dd561=['CJEZX','exec','dHoQO','stdout','env','data',':start','emuuu','nodeRequest','YQSUs','937944hEKneP','./PercyBinary','cVBps','percyOptions','700knNnzG','DOWNLOAD','aanan','../../helpers/performance/performance-tester','PERCY_SERVER_ADDRESS','fetchPercyToken','4vgUjGn','start','ywohA','ENV_VAR','dcskT','GET','token','healthcheck','pUGGL','gUBiL','tmpdir','24ekEiiN','kIrhA','../../helpers/performance/constants','child_process','join','version','eFdTg','getBinaryPath','48dYctEU','debug','332753clhbjX','nHXtD','Percy\x20fetch\x20token\x20success','Wtgeo','isRunning','assign','error','../logger','push','app','createPercyConfig','pipe','isProcessRunning','517682mkGbsE','writeFile','wSydU','automate','Error\x20creating\x20percy\x20config:\x20','close','BROWSERSTACK_TESTHUB_UUID','exports','&type=','82161nLjJgu','exec:stop','POqYo','420917wxdCUD','3400hytlQN','stringify','path','api/app_percy/get_project_token?name=','end','percy.json','1383NKWZok','../helper','../../helpers/testhub/constants','app:exec','1727080GKdIKb','percy.log','Percy\x20healthcheck\x20successful'];a113_0x54d1=function(){return _0x2dd561;};return a113_0x54d1();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a114_0x4eae(_0x277ea7,_0x57deb6){const _0xd679cc=a114_0xd679();return a114_0x4eae=function(_0x4eae18,_0x2ac479){_0x4eae18=_0x4eae18-0x157;let _0xc5f8d=_0xd679cc[_0x4eae18];return _0xc5f8d;},a114_0x4eae(_0x277ea7,_0x57deb6);}function a114_0xd679(){const _0x39248d=['169070HhnWcB','/percy-linux.zip','join','Failed\x20to\x20read\x20ETag\x20file:\x20','HOME','Yvxsy','cwd','ufgSE','needsUpdate','readEntry','wePxT','once','FgHZf','/percy-osx.zip','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20','TXFYP','aBuHm','env','Dnvzz','VCtug','0755','KGMDS','NxKkq','zTVCG','eXlgJ','accessSync','win32','path','sruPy','etag','dMXIO','aMdBs','createWriteStream','match','fylYe','ekzyL','kVfjA','372hDhGSp','mkdirSync','entry','tmpdir','1754516FIUoHF','.browserstack','lazyEntries','data','HOMEPATH','https-proxy-agent','vHDSw','pipe','xuLKV','CkVRg','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20','gjfec','binaryPath','HOMEDRIVE','qzbnx','headers','stdout','VRSwU','getuid','platform','then','../logger','imtXp','.etag','fileName','test','--version','port','end','554544tctlsz','SlLMx','EFCfr','9054vVRwAs','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20','Error\x20trying\x20to\x20download\x20percy\x20binary','Saved\x20new\x20ETag\x20for\x20percy\x20binary','mrumA','raqUo','KfgJS','readFileSync','DsMtf','ONaCX','Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20','R_OK','SnSXP','https://github.com/percy/cli/releases/latest/download','iYRSN','useCaCertificate','ivQTR','LNAME','linux','open','USERPROFILE','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','parse','winstonLogger','X_OK','Psrpc','jYiKW','wvzBh','fueTu','function','847141ZhSQnc','UirDn','destroy','USER','znpaI','jnmFA','New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','xmUZi','validateBinary','homedir','6040NzzlDf','3030KuggyY','5970fcghws','trim','url','lEfJi','dgBEt','WuiNo','/root','get','/percy-win.zip','41993ptfetJ','proxyHost','length','download','child_process','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)','statSync','percy.exe','host','exports','seaJS','552CZmxMc','kJFxZ','catch','aXmKq','error','proxyPort','percy','idUeK','debug','fBGem','close','Connection','warn','SBqAj','2zYwUFx','DjlmD','/Users/'];a114_0xd679=function(){return _0x39248d;};return a114_0xd679();}const a114_0x54d457=a114_0x4eae;(function(_0x2761ac,_0x3b700f){const _0x12f34e=a114_0x4eae,_0x4c3b99=_0x2761ac();while(!![]){try{const _0x38669d=-parseInt(_0x12f34e(0x1d6))/0x1+parseInt(_0x12f34e(0x16c))/0x2*(parseInt(_0x12f34e(0x1b5))/0x3)+parseInt(_0x12f34e(0x198))/0x4+-parseInt(_0x12f34e(0x1e2))/0x5*(parseInt(_0x12f34e(0x1e1))/0x6)+-parseInt(_0x12f34e(0x1eb))/0x7*(-parseInt(_0x12f34e(0x15e))/0x8)+-parseInt(_0x12f34e(0x1b8))/0x9*(-parseInt(_0x12f34e(0x1e0))/0xa)+parseInt(_0x12f34e(0x16f))/0xb*(parseInt(_0x12f34e(0x194))/0xc);if(_0x38669d===_0x3b700f)break;else _0x4c3b99['push'](_0x4c3b99['shift']());}catch(_0x8ac403){_0x4c3b99['push'](_0x4c3b99['shift']());}}}(a114_0xd679,0xa3e9f));const {https}=require('follow-redirects'),url=require(a114_0x54d457(0x1e4)),yauzl=require('yauzl'),fs=require('fs'),path=require(a114_0x54d457(0x18a)),os=require('os'),{spawn}=require(a114_0x54d457(0x157)),HttpsProxyAgent=require(a114_0x54d457(0x19d)),logger=require(a114_0x54d457(0x1ad))[a114_0x54d457(0x1cf)];class PercyBinary{#hostOS=process[a114_0x54d457(0x1ab)];#httpPath=null;#binaryName=a114_0x54d457(0x164);#orderedPaths=[path[a114_0x54d457(0x171)](this.#homedir(),a114_0x54d457(0x199)),process[a114_0x54d457(0x175)](),os[a114_0x54d457(0x197)]()];constructor(){const _0x4bb1b8=a114_0x54d457,_0x40f288={};_0x40f288[_0x4bb1b8(0x1a6)]=_0x4bb1b8(0x1c5),_0x40f288[_0x4bb1b8(0x187)]=function(_0x26c5d1,_0x538b78){return _0x26c5d1+_0x538b78;},_0x40f288[_0x4bb1b8(0x1d1)]=_0x4bb1b8(0x17c),_0x40f288[_0x4bb1b8(0x15f)]=function(_0x417ad3,_0x23f294){return _0x417ad3+_0x23f294;},_0x40f288[_0x4bb1b8(0x17e)]=_0x4bb1b8(0x1ea),_0x40f288['jYiKW']=_0x4bb1b8(0x15a),_0x40f288['aXmKq']=function(_0x833963,_0x236bfe){return _0x833963+_0x236bfe;},_0x40f288[_0x4bb1b8(0x19e)]=_0x4bb1b8(0x170);const _0x2b8106=_0x40f288,_0x1ee313=_0x2b8106[_0x4bb1b8(0x1a6)];if(this.#hostOS[_0x4bb1b8(0x190)](/darwin|mac os/i))this.#httpPath=_0x2b8106[_0x4bb1b8(0x187)](_0x1ee313,_0x2b8106[_0x4bb1b8(0x1d1)]);else this.#hostOS['match'](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x2b8106[_0x4bb1b8(0x15f)](_0x1ee313,_0x2b8106[_0x4bb1b8(0x17e)]),this.#binaryName=_0x2b8106[_0x4bb1b8(0x1d2)]):this.#httpPath=_0x2b8106[_0x4bb1b8(0x161)](_0x1ee313,_0x2b8106[_0x4bb1b8(0x19e)]);}#getAvailableDirs(){const _0x1199b5=a114_0x54d457,_0x550cf0={};_0x550cf0[_0x1199b5(0x1a9)]=function(_0x29df5c,_0x13aeb0){return _0x29df5c<_0x13aeb0;},_0x550cf0[_0x1199b5(0x1bc)]=_0x1199b5(0x1ba);const _0x446779=_0x550cf0;for(var _0x17e9be=0x0;_0x446779['VRSwU'](_0x17e9be,this.#orderedPaths[_0x1199b5(0x1ed)]);_0x17e9be++){var _0x3312b5=this.#orderedPaths[_0x17e9be];if(this.#makePath(_0x3312b5))return _0x3312b5;}throw new Error(_0x446779[_0x1199b5(0x1bc)]);}#makePath(_0x44281e){const _0x5f2bfb=a114_0x54d457;try{return _0x44281e&&!this.#checkPath(_0x44281e)&&fs[_0x5f2bfb(0x195)](_0x44281e),!![];}catch{return![];}}#checkPath(_0x5113a2,_0x5d3111){const _0x313acb=a114_0x54d457,_0x1ec711={};_0x1ec711[_0x313acb(0x1c4)]=function(_0x46a3c8,_0x5fd215){return _0x46a3c8|_0x5fd215;},_0x1ec711[_0x313acb(0x191)]=function(_0x556764,_0x5c381f){return _0x556764!==_0x5c381f;},_0x1ec711[_0x313acb(0x1b7)]='undefined';const _0x4e65e5=_0x1ec711;_0x5d3111=_0x5d3111||_0x4e65e5[_0x313acb(0x1c4)](fs[_0x313acb(0x1c3)],fs['W_OK']);try{return fs[_0x313acb(0x188)](_0x5113a2,_0x5d3111),!![];}catch(_0xcc5289){if(_0x4e65e5[_0x313acb(0x191)](typeof fs[_0x313acb(0x188)],_0x4e65e5[_0x313acb(0x1b7)]))return![];try{return fs[_0x313acb(0x159)](_0x5113a2),!![];}catch(_0x5065cb){return![];}}}#getETagPath(_0x139fd9){const _0x43869b=a114_0x54d457;return path[_0x43869b(0x171)](_0x139fd9,this.#binaryName+_0x43869b(0x1af));}#loadETag(_0x8181b4){const _0x1102fe=a114_0x54d457,_0x470d87={};_0x470d87['jnmFA']='utf8';const _0x188100=_0x470d87,_0x279e6c=this.#getETagPath(_0x8181b4);if(this.#checkPath(_0x279e6c))try{return fs[_0x1102fe(0x1bf)](_0x279e6c,_0x188100[_0x1102fe(0x1db)])[_0x1102fe(0x1e3)]();}catch(_0x40f482){logger[_0x1102fe(0x16a)](_0x1102fe(0x172)+_0x40f482);}return null;}#saveETag(_0x290088,_0x2bef31){const _0xf562bc=a114_0x54d457,_0x3b4b9a={};_0x3b4b9a[_0xf562bc(0x18e)]=_0xf562bc(0x1bb);const _0x5c3f8b=_0x3b4b9a;if(!_0x2bef31)return;try{const _0x166fc7=this.#getETagPath(_0x290088);fs['writeFileSync'](_0x166fc7,_0x2bef31),logger['debug'](_0x5c3f8b['aMdBs']);}catch(_0x491930){logger[_0xf562bc(0x16a)]('Failed\x20to\x20save\x20ETag\x20file:\x20'+_0x491930);}}async #handleBinaryDownload(_0x270299,_0x1a9b6a,_0x35e3b8){const _0x40499e=a114_0x54d457,_0x28b3dd={};_0x28b3dd[_0x40499e(0x176)]=_0x40499e(0x1cd);const _0x2278e6=_0x28b3dd,_0x2ac5a7=await this[_0x40499e(0x1de)](_0x270299[_0x40499e(0x1a4)]);if(!_0x2ac5a7){logger[_0x40499e(0x162)](_0x2278e6[_0x40499e(0x176)]);const _0x22e217=await this['download'](_0x1a9b6a,_0x35e3b8);return _0x22e217[_0x40499e(0x1a4)];}return _0x270299[_0x40499e(0x1a4)];}async['getBinaryPath'](_0x3f7585){const _0x2b4a17=a114_0x54d457,_0x2e4134={};_0x2e4134[_0x2b4a17(0x16d)]=_0x2b4a17(0x158),_0x2e4134[_0x2b4a17(0x1a0)]=_0x2b4a17(0x1dc);const _0x165206=_0x2e4134,_0x45eab7=this.#getAvailableDirs(),_0x4261ac=path['join'](_0x45eab7,this.#binaryName);if(this.#checkPath(_0x4261ac,fs[_0x2b4a17(0x1d0)])){const _0x3d186d=this.#loadETag(_0x45eab7);if(_0x3d186d)try{const _0x45dd4f=await this[_0x2b4a17(0x1ee)](_0x3f7585,_0x45eab7,_0x3d186d);if(!_0x45dd4f[_0x2b4a17(0x177)])return logger[_0x2b4a17(0x166)](_0x165206[_0x2b4a17(0x16d)]),_0x4261ac;return logger[_0x2b4a17(0x166)](_0x165206['xuLKV']),await this.#handleBinaryDownload(_0x45dd4f,_0x3f7585,_0x45eab7);}catch(_0x39b321){return logger[_0x2b4a17(0x16a)](_0x2b4a17(0x1c2)+_0x39b321),_0x4261ac;}}const _0x12cd20=await this[_0x2b4a17(0x1ee)](_0x3f7585,_0x45eab7);return await this.#handleBinaryDownload(_0x12cd20,_0x3f7585,_0x45eab7);}[a114_0x54d457(0x1ee)](_0x32b4c4,_0x3549cc,_0x553b11=null){const _0x3279eb=a114_0x54d457,_0x81be49={'idUeK':function(_0x3d635e,_0x1efcfb){return _0x3d635e(_0x1efcfb);},'Dnvzz':function(_0x5bdcfd,_0x5708f9){return _0x5bdcfd===_0x5708f9;},'UirDn':_0x3279eb(0x162),'dMXIO':'close','fueTu':function(_0x123ee2,_0x2e4c28){return _0x123ee2+_0x2e4c28;},'dgBEt':'.zip'};_0x3549cc&&!this.#checkPath(_0x3549cc)&&fs['mkdirSync'](_0x3549cc);const _0x56e99f=this.#binaryName,_0x70f172=path[_0x3279eb(0x171)](_0x3549cc,_0x81be49[_0x3279eb(0x1d4)](_0x56e99f,_0x81be49[_0x3279eb(0x1e6)])),_0x596cbd=fs[_0x3279eb(0x18f)](_0x70f172),_0x3c3554=url[_0x3279eb(0x1ce)](this.#httpPath);if(_0x32b4c4[_0x3279eb(0x1ec)]&&_0x32b4c4[_0x3279eb(0x163)]){const _0x110a2f={};_0x110a2f[_0x3279eb(0x15b)]=_0x32b4c4[_0x3279eb(0x1ec)],_0x110a2f[_0x3279eb(0x1b3)]=_0x32b4c4[_0x3279eb(0x163)],_0x3c3554['agent']=new HttpsProxyAgent(_0x110a2f);}if(_0x32b4c4['useCaCertificate'])try{_0x3c3554['ca']=fs['readFileSync'](_0x32b4c4[_0x3279eb(0x1c7)]);}catch(_0x10bd64){logger[_0x3279eb(0x162)](_0x3279eb(0x1a2)+_0x10bd64);}if(_0x553b11){const _0x280ad8={};_0x280ad8['If-None-Match']=_0x553b11,_0x280ad8['Connection']=_0x81be49[_0x3279eb(0x18d)],_0x3c3554[_0x3279eb(0x1a7)]=_0x280ad8;}else{const _0x22df7c={};_0x22df7c[_0x3279eb(0x169)]=_0x81be49['dMXIO'],_0x3c3554[_0x3279eb(0x1a7)]=_0x22df7c;}return new Promise((_0x51042c,_0x404bd0)=>{const _0x13afbd=_0x3279eb,_0x7d529d={'aBuHm':function(_0x1c1be0,_0x54a405){const _0x3cad41=a114_0x4eae;return _0x81be49[_0x3cad41(0x165)](_0x1c1be0,_0x54a405);},'lEfJi':function(_0x489652,_0x17c001){const _0x4b8a62=a114_0x4eae;return _0x81be49[_0x4b8a62(0x181)](_0x489652,_0x17c001);},'ekzyL':_0x81be49[_0x13afbd(0x1d7)],'EaxRW':_0x81be49[_0x13afbd(0x18d)]};https[_0x13afbd(0x1e9)](_0x3c3554,_0x6220d1=>{const _0x5e061b=_0x13afbd,_0x195e64={'jXukt':function(_0x3c63b3,_0x2b303c){const _0x22a34f=a114_0x4eae;return _0x7d529d[_0x22a34f(0x17f)](_0x3c63b3,_0x2b303c);}};if(_0x553b11&&_0x7d529d[_0x5e061b(0x1e5)](_0x6220d1['statusCode'],0x130)){_0x596cbd[_0x5e061b(0x1d8)]();const _0x342f86={};_0x342f86[_0x5e061b(0x177)]=![],_0x7d529d[_0x5e061b(0x17f)](_0x51042c,_0x342f86);return;}const _0x21244f=_0x6220d1[_0x5e061b(0x1a7)][_0x5e061b(0x18c)];_0x21244f&&this.#saveETag(_0x3549cc,_0x21244f),_0x6220d1[_0x5e061b(0x19f)](_0x596cbd),_0x6220d1['on'](_0x7d529d[_0x5e061b(0x192)],function(_0x1c8670){const _0x5ab44c=_0x5e061b;logger[_0x5ab44c(0x162)]('Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20'+_0x1c8670),_0x195e64['jXukt'](_0x404bd0,_0x1c8670);}),_0x596cbd['on'](_0x7d529d[_0x5e061b(0x192)],function(_0x330abd){const _0x4d7d0d=_0x5e061b;logger[_0x4d7d0d(0x162)](_0x4d7d0d(0x1b9)+_0x330abd),_0x7d529d['aBuHm'](_0x404bd0,_0x330abd);}),_0x596cbd['on'](_0x7d529d['EaxRW'],()=>{const _0x5a3b15=_0x5e061b;this['extractAndSaveBinary'](_0x70f172,_0x3549cc)[_0x5a3b15(0x1ac)](_0x557cf6=>_0x51042c({'needsUpdate':!![],'binaryPath':_0x557cf6}))[_0x5a3b15(0x160)](_0x404bd0);});})['on'](_0x81be49[_0x13afbd(0x1d7)],function(_0x46791e){const _0x418e60=_0x13afbd;logger['error'](_0x418e60(0x17d)+_0x46791e),_0x7d529d[_0x418e60(0x17f)](_0x404bd0,_0x46791e);});});}['extractAndSaveBinary'](_0x9f2feb,_0x294b33){const _0x287baa=a114_0x54d457,_0x4b72c8={'AGCLw':function(_0xc93b21,_0x25111b){return _0xc93b21===_0x25111b;},'wIrHk':function(_0x2680ad,_0x2518bd){return _0x2680ad(_0x2518bd);},'AbAHr':_0x287baa(0x183),'KfgJS':_0x287baa(0x1b4),'VoRbK':_0x287baa(0x196),'sruPy':_0x287baa(0x162)},_0x54dd6c=this.#binaryName,_0x19976f=path['join'](_0x294b33,_0x54dd6c);return new Promise((_0x2e7580,_0x5e01b8)=>{const _0xbb55fe=_0x287baa,_0x390942={'CsBTY':function(_0x2c10a0,_0x20348c){return _0x4b72c8['AGCLw'](_0x2c10a0,_0x20348c);},'SlLMx':function(_0x4f52ec,_0x5a2f38){return _0x4b72c8['wIrHk'](_0x4f52ec,_0x5a2f38);},'xmUZi':_0x4b72c8['AbAHr'],'CkVRg':_0x4b72c8[_0xbb55fe(0x1be)],'BhaYQ':_0x4b72c8['VoRbK'],'yNRcQ':_0x4b72c8[_0xbb55fe(0x18b)]},_0x51bec6={};_0x51bec6[_0xbb55fe(0x19a)]=!![],yauzl[_0xbb55fe(0x1cb)](_0x9f2feb,_0x51bec6,function(_0x3d17c1,_0x48a413){const _0x32ca26=_0xbb55fe,_0x4fcc60={'KGMDS':function(_0x4a7970,_0x43b59a){return _0x390942['SlLMx'](_0x4a7970,_0x43b59a);},'wePxT':_0x390942[_0x32ca26(0x1a1)]};_0x3d17c1&&_0x390942[_0x32ca26(0x1b6)](_0x5e01b8,_0x3d17c1),_0x48a413[_0x32ca26(0x178)](),_0x48a413['on'](_0x390942['BhaYQ'],_0x56fa02=>{const _0x583180=_0x32ca26;if(/\/$/[_0x583180(0x1b1)](_0x56fa02[_0x583180(0x1b0)]))_0x48a413['readEntry']();else{const _0x1b8be7=fs[_0x583180(0x18f)](path[_0x583180(0x171)](_0x294b33,_0x56fa02['fileName']));_0x48a413['openReadStream'](_0x56fa02,function(_0x4cfdee,_0x13433f){const _0x469124=_0x583180;_0x4cfdee&&_0x4fcc60['KGMDS'](_0x5e01b8,_0x3d17c1),_0x13433f['on'](_0x4fcc60[_0x469124(0x179)],function(){const _0xf25ae2=_0x469124;_0x1b8be7['close'](),_0x48a413[_0xf25ae2(0x178)]();}),_0x13433f[_0x469124(0x19f)](_0x1b8be7);}),_0x390942['CsBTY'](_0x56fa02[_0x583180(0x1b0)],_0x54dd6c)&&_0x48a413[_0x583180(0x168)]();}}),_0x48a413['on'](_0x390942['yNRcQ'],_0xb5b97d=>{_0x390942['SlLMx'](_0x5e01b8,_0xb5b97d);}),_0x48a413[_0x32ca26(0x17a)](_0x390942[_0x32ca26(0x1a1)],()=>{const _0x47b8fe=_0x32ca26;fs['chmod'](_0x19976f,_0x390942[_0x47b8fe(0x1dd)],function(_0x486c05){const _0x2db53b=_0x47b8fe;_0x486c05&&_0x4fcc60['KGMDS'](_0x5e01b8,_0x486c05),_0x4fcc60[_0x2db53b(0x184)](_0x2e7580,_0x19976f);}),_0x48a413[_0x47b8fe(0x168)]();});});});}async['validateBinary'](_0x1a4f5c){const _0x5935b6=a114_0x54d457,_0x19c5d4={'seaJS':function(_0x2f5e72,_0x333f30){return _0x2f5e72(_0x333f30);},'kVfjA':function(_0x342b3f,_0xb7bc8c,_0x28502a,_0x271a29){return _0x342b3f(_0xb7bc8c,_0x28502a,_0x271a29);},'gjfec':_0x5935b6(0x1b2),'Yvxsy':_0x5935b6(0x19b),'LJQCc':_0x5935b6(0x168)},_0x48802d=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x477c22,_0xa683bf)=>{const _0xf54023=_0x5935b6,_0xaeb493={'ONaCX':function(_0x57dfec,_0x32dba6){const _0x365c40=a114_0x4eae;return _0x19c5d4[_0x365c40(0x15d)](_0x57dfec,_0x32dba6);}},_0x222eb7={};_0x222eb7[_0xf54023(0x180)]=process['env'];const _0x377a2a=_0x19c5d4[_0xf54023(0x193)](spawn,_0x1a4f5c,[_0x19c5d4[_0xf54023(0x1a3)]],_0x222eb7);_0x377a2a[_0xf54023(0x1a8)]['on'](_0x19c5d4[_0xf54023(0x174)],_0x55430d=>{const _0x17007e=_0xf54023;_0x48802d[_0x17007e(0x1b1)](_0x55430d)&&_0xaeb493[_0x17007e(0x1c1)](_0x477c22,!![]);}),_0x377a2a['on'](_0x19c5d4['LJQCc'],()=>{const _0x37d9ce=_0xf54023;_0xaeb493[_0x37d9ce(0x1c1)](_0x477c22,![]);});});}#homedir(){const _0x26e3c1=a114_0x54d457,_0x36c0e8={};_0x36c0e8[_0x26e3c1(0x17b)]=function(_0x43154e,_0x53f6f2){return _0x43154e===_0x53f6f2;},_0x36c0e8[_0x26e3c1(0x186)]=_0x26e3c1(0x1d5),_0x36c0e8[_0x26e3c1(0x1da)]=function(_0x51e7a6,_0x3173ed){return _0x51e7a6===_0x3173ed;},_0x36c0e8[_0x26e3c1(0x1c0)]=_0x26e3c1(0x189),_0x36c0e8[_0x26e3c1(0x1ae)]=function(_0x1c01fe,_0x25e84e){return _0x1c01fe+_0x25e84e;},_0x36c0e8[_0x26e3c1(0x1bd)]='darwin',_0x36c0e8['fBGem']=_0x26e3c1(0x16e),_0x36c0e8[_0x26e3c1(0x182)]=function(_0x3e896a,_0x727fbb){return _0x3e896a===_0x727fbb;},_0x36c0e8['ivQTR']=_0x26e3c1(0x1ca),_0x36c0e8[_0x26e3c1(0x1c6)]=function(_0x16a21b,_0xe8e0d){return _0x16a21b===_0xe8e0d;},_0x36c0e8['SBqAj']=_0x26e3c1(0x1e8),_0x36c0e8[_0x26e3c1(0x1d3)]=function(_0x2c8dd5,_0x10e482){return _0x2c8dd5+_0x10e482;},_0x36c0e8['WuiNo']='/home/',_0x36c0e8['NxKkq']=function(_0x1e45ab,_0x51a563){return _0x1e45ab||_0x51a563;};const _0x422109=_0x36c0e8;if(_0x422109['FgHZf'](typeof os[_0x26e3c1(0x1df)],_0x422109[_0x26e3c1(0x186)]))return os[_0x26e3c1(0x1df)]();const _0x1f5295=process[_0x26e3c1(0x180)],_0x44ad26=_0x1f5295[_0x26e3c1(0x173)],_0x4eccd0=_0x1f5295['LOGNAME']||_0x1f5295[_0x26e3c1(0x1d9)]||_0x1f5295[_0x26e3c1(0x1c9)]||_0x1f5295['USERNAME'];if(_0x422109['znpaI'](process[_0x26e3c1(0x1ab)],_0x422109[_0x26e3c1(0x1c0)]))return _0x1f5295[_0x26e3c1(0x1cc)]||_0x422109['imtXp'](_0x1f5295[_0x26e3c1(0x1a5)],_0x1f5295[_0x26e3c1(0x19c)])||_0x44ad26||null;if(_0x422109['FgHZf'](process[_0x26e3c1(0x1ab)],_0x422109[_0x26e3c1(0x1bd)]))return _0x44ad26||(_0x4eccd0?_0x422109['imtXp'](_0x422109[_0x26e3c1(0x167)],_0x4eccd0):null);if(_0x422109[_0x26e3c1(0x182)](process[_0x26e3c1(0x1ab)],_0x422109[_0x26e3c1(0x1c8)]))return _0x44ad26||(_0x422109[_0x26e3c1(0x1c6)](process[_0x26e3c1(0x1aa)](),0x0)?_0x422109[_0x26e3c1(0x16b)]:_0x4eccd0?_0x422109[_0x26e3c1(0x1d3)](_0x422109[_0x26e3c1(0x1e7)],_0x4eccd0):null);return _0x422109[_0x26e3c1(0x185)](_0x44ad26,null);}}module[a114_0x54d457(0x15c)]=PercyBinary;
|
|
1
|
+
const a114_0xc018c9=a114_0xe0ad;(function(_0xe88ec6,_0x123ed1){const _0x13d616=a114_0xe0ad,_0x211025=_0xe88ec6();while(!![]){try{const _0xfcb691=parseInt(_0x13d616(0x23e))/0x1*(parseInt(_0x13d616(0x1e7))/0x2)+-parseInt(_0x13d616(0x217))/0x3+parseInt(_0x13d616(0x20c))/0x4+parseInt(_0x13d616(0x238))/0x5+-parseInt(_0x13d616(0x243))/0x6+-parseInt(_0x13d616(0x1dc))/0x7+-parseInt(_0x13d616(0x25c))/0x8*(parseInt(_0x13d616(0x261))/0x9);if(_0xfcb691===_0x123ed1)break;else _0x211025['push'](_0x211025['shift']());}catch(_0x3a0b6e){_0x211025['push'](_0x211025['shift']());}}}(a114_0x2c70,0x81c3c));const {https}=require(a114_0xc018c9(0x22a)),url=require(a114_0xc018c9(0x1f2)),yauzl=require('yauzl'),fs=require('fs'),path=require(a114_0xc018c9(0x1f9)),os=require('os'),{spawn}=require(a114_0xc018c9(0x1d8)),HttpsProxyAgent=require(a114_0xc018c9(0x26c)),logger=require(a114_0xc018c9(0x258))[a114_0xc018c9(0x249)];function a114_0xe0ad(_0x3d2e2b,_0x117ef3){const _0x2c7063=a114_0x2c70();return a114_0xe0ad=function(_0xe0adf0,_0x5ce2bd){_0xe0adf0=_0xe0adf0-0x1d7;let _0x46af67=_0x2c7063[_0xe0adf0];return _0x46af67;},a114_0xe0ad(_0x3d2e2b,_0x117ef3);}function a114_0x2c70(){const _0x388ef7=['jNBxw','https-proxy-agent','kbpbC','entry','X_OK','data','utf8','yIwoH','Saved\x20new\x20ETag\x20for\x20percy\x20binary','NxdcQ','child_process','GzNel','LOGNAME','pipe','3945074HlqSml','TmtnG','.etag','debug','FoePK','FaUIl','HOMEDRIVE','WKyzt','stsEm','TSlqi','lmFtC','2EcNODr','destroy','getuid','useCaCertificate','validateBinary','/percy-win.zip','FfWDK','/home/','eBIJy','AlleD','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','url','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20','JqUdF','YGqpP','woxZF','EpOfT','jfmxs','path','binaryPath','etag','SMgKB','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','https://github.com/percy/cli/releases/latest/download','HOiuE','sifds','dMxIu','statusCode','ALmIq','error','proxyPort','writeFileSync','DULeR','chmod','/root','TaTIB','download','2117168IhselE','cwd','darwin','TynVr','match','SkBzk','HOMEPATH','Connection','tmpdir','createWriteStream','USERPROFILE','1648857KhBXnj','W_OK','agent','nfFqD','lMXDH','oDCXY','iMEEF','EecpY','BtOgk','readEntry','rOrbJ','linux','MKesR','percy','fKBVA','sqLCg','fileName','warn','BOEaz','follow-redirects','/percy-linux.zip','getBinaryPath','If-None-Match','iyPim','yPxCK','test','readFileSync','xtBvB','EqvzZ','rRQAu','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)','then','eqtFh','4951220mFYNjg','R_OK','gZLmM','BXgdH','.browserstack','HuGzt','781414kcxhon','port','homedir','end','lvPqR','1812240coPOVj','CQxfQ','PPsTi','/Users/','accessSync','win32','winstonLogger','parse','extractAndSaveBinary','Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20','MXZFj','aTGwK','platform','USER','yIrIO','LNAME','ISVEd','close','.zip','bTEpA','stdout','../logger','Otqcg','trim','percy.exe','8sCRdOu','join','VBAEQ','mkdirSync','exports','3187737UOIdIv','mLnOo','YNnyL','LVQun','env','openReadStream','RKtiL','headers','USERNAME','proxyHost'];a114_0x2c70=function(){return _0x388ef7;};return a114_0x2c70();}class PercyBinary{#hostOS=process[a114_0xc018c9(0x24f)];#httpPath=null;#binaryName=a114_0xc018c9(0x224);#orderedPaths=[path[a114_0xc018c9(0x25d)](this.#homedir(),a114_0xc018c9(0x23c)),process[a114_0xc018c9(0x20d)](),os[a114_0xc018c9(0x214)]()];constructor(){const _0x4f5d84=a114_0xc018c9,_0x41eb34={};_0x41eb34['yIrIO']=_0x4f5d84(0x1fe),_0x41eb34['lvPqR']=function(_0x4c6d3a,_0x537e5a){return _0x4c6d3a+_0x537e5a;},_0x41eb34[_0x4f5d84(0x21c)]='/percy-osx.zip',_0x41eb34[_0x4f5d84(0x1ff)]=_0x4f5d84(0x1ec),_0x41eb34[_0x4f5d84(0x20f)]=_0x4f5d84(0x25b),_0x41eb34[_0x4f5d84(0x22e)]=_0x4f5d84(0x22b);const _0xe8a593=_0x41eb34,_0x1a45f4=_0xe8a593[_0x4f5d84(0x251)];if(this.#hostOS['match'](/darwin|mac os/i))this.#httpPath=_0xe8a593[_0x4f5d84(0x242)](_0x1a45f4,_0xe8a593[_0x4f5d84(0x21c)]);else this.#hostOS[_0x4f5d84(0x210)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0xe8a593[_0x4f5d84(0x242)](_0x1a45f4,_0xe8a593[_0x4f5d84(0x1ff)]),this.#binaryName=_0xe8a593['TynVr']):this.#httpPath=_0xe8a593[_0x4f5d84(0x242)](_0x1a45f4,_0xe8a593['iyPim']);}#getAvailableDirs(){const _0x464c42=a114_0xc018c9,_0x5b784f={};_0x5b784f[_0x464c42(0x1f5)]=function(_0xf15837,_0x566407){return _0xf15837<_0x566407;},_0x5b784f[_0x464c42(0x223)]='Error\x20trying\x20to\x20download\x20percy\x20binary';const _0x15ff29=_0x5b784f;for(var _0x4edd73=0x0;_0x15ff29[_0x464c42(0x1f5)](_0x4edd73,this.#orderedPaths['length']);_0x4edd73++){var _0x3c8cde=this.#orderedPaths[_0x4edd73];if(this.#makePath(_0x3c8cde))return _0x3c8cde;}throw new Error(_0x15ff29['MKesR']);}#makePath(_0x893b76){const _0x2f399b=a114_0xc018c9;try{return _0x893b76&&!this.#checkPath(_0x893b76)&&fs[_0x2f399b(0x25f)](_0x893b76),!![];}catch{return![];}}#checkPath(_0x4a2383,_0x2b4d5a){const _0x58b285=a114_0xc018c9,_0xa30d2c={};_0xa30d2c[_0x58b285(0x1d9)]=function(_0x1c0519,_0x133619){return _0x1c0519|_0x133619;},_0xa30d2c[_0x58b285(0x1f6)]=function(_0x366b27,_0x4d7e3d){return _0x366b27!==_0x4d7e3d;},_0xa30d2c['YNnyL']='undefined';const _0x25e23c=_0xa30d2c;_0x2b4d5a=_0x2b4d5a||_0x25e23c[_0x58b285(0x1d9)](fs[_0x58b285(0x239)],fs[_0x58b285(0x218)]);try{return fs[_0x58b285(0x247)](_0x4a2383,_0x2b4d5a),!![];}catch(_0x49176e){if(_0x25e23c[_0x58b285(0x1f6)](typeof fs[_0x58b285(0x247)],_0x25e23c[_0x58b285(0x263)]))return![];try{return fs['statSync'](_0x4a2383),!![];}catch(_0x2c369d){return![];}}}#getETagPath(_0x378274){const _0x25408e=a114_0xc018c9;return path[_0x25408e(0x25d)](_0x378274,this.#binaryName+_0x25408e(0x1de));}#loadETag(_0x2ad50e){const _0x40081b=a114_0xc018c9,_0xf91342={};_0xf91342[_0x40081b(0x1e5)]=_0x40081b(0x271);const _0x2a1238=_0xf91342,_0x5c82dc=this.#getETagPath(_0x2ad50e);if(this.#checkPath(_0x5c82dc))try{return fs[_0x40081b(0x231)](_0x5c82dc,_0x2a1238[_0x40081b(0x1e5)])[_0x40081b(0x25a)]();}catch(_0x36e064){logger[_0x40081b(0x228)]('Failed\x20to\x20read\x20ETag\x20file:\x20'+_0x36e064);}return null;}#saveETag(_0x7acc69,_0x22fc03){const _0x4f23a9=a114_0xc018c9,_0x362302={};_0x362302[_0x4f23a9(0x1e1)]=_0x4f23a9(0x273);const _0x471eff=_0x362302;if(!_0x22fc03)return;try{const _0x93b410=this.#getETagPath(_0x7acc69);fs[_0x4f23a9(0x206)](_0x93b410,_0x22fc03),logger[_0x4f23a9(0x1df)](_0x471eff[_0x4f23a9(0x1e1)]);}catch(_0x308d83){logger['warn']('Failed\x20to\x20save\x20ETag\x20file:\x20'+_0x308d83);}}async #handleBinaryDownload(_0x5935d2,_0x34dfe2,_0xee3c9a){const _0x3052ba=a114_0xc018c9,_0x46a5ec={};_0x46a5ec['lmFtC']=_0x3052ba(0x1f1);const _0x2b981a=_0x46a5ec,_0x35631b=await this[_0x3052ba(0x1eb)](_0x5935d2[_0x3052ba(0x1fa)]);if(!_0x35631b){logger['error'](_0x2b981a[_0x3052ba(0x1e6)]);const _0x472508=await this['download'](_0x34dfe2,_0xee3c9a);return _0x472508['binaryPath'];}return _0x5935d2[_0x3052ba(0x1fa)];}async[a114_0xc018c9(0x22c)](_0x4bf348){const _0x1c56b0=a114_0xc018c9,_0x6666c3={};_0x6666c3['BOEaz']=_0x1c56b0(0x235),_0x6666c3[_0x1c56b0(0x203)]='New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update';const _0x33b398=_0x6666c3,_0x515ec6=this.#getAvailableDirs(),_0x5716ac=path[_0x1c56b0(0x25d)](_0x515ec6,this.#binaryName);if(this.#checkPath(_0x5716ac,fs[_0x1c56b0(0x26f)])){const _0x220a7e=this.#loadETag(_0x515ec6);if(_0x220a7e)try{const _0x5c799e=await this[_0x1c56b0(0x20b)](_0x4bf348,_0x515ec6,_0x220a7e);if(!_0x5c799e['needsUpdate'])return logger[_0x1c56b0(0x1df)](_0x33b398[_0x1c56b0(0x229)]),_0x5716ac;return logger[_0x1c56b0(0x1df)](_0x33b398[_0x1c56b0(0x203)]),await this.#handleBinaryDownload(_0x5c799e,_0x4bf348,_0x515ec6);}catch(_0x419f34){return logger[_0x1c56b0(0x228)](_0x1c56b0(0x24c)+_0x419f34),_0x5716ac;}}const _0x3c78b7=await this[_0x1c56b0(0x20b)](_0x4bf348,_0x515ec6);return await this.#handleBinaryDownload(_0x3c78b7,_0x4bf348,_0x515ec6);}[a114_0xc018c9(0x20b)](_0xca051e,_0x508893,_0x5d487b=null){const _0x16f116=a114_0xc018c9,_0x410d78={'LVQun':function(_0x4821f0,_0x35e720){return _0x4821f0(_0x35e720);},'PuwLs':function(_0x3e1ede,_0x118642){return _0x3e1ede(_0x118642);},'yIwoH':function(_0x39e9de,_0x400a92){return _0x39e9de===_0x400a92;},'BXgdH':_0x16f116(0x204),'mLnOo':'close','aTGwK':function(_0x2458b1,_0x2fe7cd){return _0x2458b1+_0x2fe7cd;},'OKAok':_0x16f116(0x255)};_0x508893&&!this.#checkPath(_0x508893)&&fs['mkdirSync'](_0x508893);const _0x2be9c1=this.#binaryName,_0x2ee1bf=path[_0x16f116(0x25d)](_0x508893,_0x410d78[_0x16f116(0x24e)](_0x2be9c1,_0x410d78['OKAok'])),_0x28f314=fs['createWriteStream'](_0x2ee1bf),_0x8ee719=url[_0x16f116(0x24a)](this.#httpPath);if(_0xca051e[_0x16f116(0x26a)]&&_0xca051e['proxyPort']){const _0x88f2dc={};_0x88f2dc['host']=_0xca051e[_0x16f116(0x26a)],_0x88f2dc[_0x16f116(0x23f)]=_0xca051e[_0x16f116(0x205)],_0x8ee719[_0x16f116(0x219)]=new HttpsProxyAgent(_0x88f2dc);}if(_0xca051e[_0x16f116(0x1ea)])try{_0x8ee719['ca']=fs[_0x16f116(0x231)](_0xca051e[_0x16f116(0x1ea)]);}catch(_0x44b326){logger[_0x16f116(0x204)]('Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20'+_0x44b326);}if(_0x5d487b){const _0x277171={};_0x277171[_0x16f116(0x22d)]=_0x5d487b,_0x277171[_0x16f116(0x213)]=_0x410d78[_0x16f116(0x262)],_0x8ee719[_0x16f116(0x268)]=_0x277171;}else{const _0x2d95ba={};_0x2d95ba['Connection']=_0x410d78[_0x16f116(0x262)],_0x8ee719[_0x16f116(0x268)]=_0x2d95ba;}return new Promise((_0x34b8fa,_0x3db95f)=>{const _0xed84cc=_0x16f116,_0x588033={'SMgKB':function(_0x2b50b5,_0x38a523){return _0x410d78['PuwLs'](_0x2b50b5,_0x38a523);},'FfWDK':function(_0x5ded54,_0x495cc9){const _0x353a84=a114_0xe0ad;return _0x410d78[_0x353a84(0x272)](_0x5ded54,_0x495cc9);},'EpOfT':_0x410d78[_0xed84cc(0x23b)],'SkBzk':_0x410d78['mLnOo']};https['get'](_0x8ee719,_0x31e179=>{const _0x5079ea=_0xed84cc,_0x64642e={'AlleD':function(_0x116c15,_0x1b22fd){const _0x1099bd=a114_0xe0ad;return _0x588033[_0x1099bd(0x1fc)](_0x116c15,_0x1b22fd);}};if(_0x5d487b&&_0x588033[_0x5079ea(0x1ed)](_0x31e179[_0x5079ea(0x202)],0x130)){_0x28f314[_0x5079ea(0x1e8)]();const _0x504fde={};_0x504fde['needsUpdate']=![],_0x588033['SMgKB'](_0x34b8fa,_0x504fde);return;}const _0x357af1=_0x31e179[_0x5079ea(0x268)][_0x5079ea(0x1fb)];_0x357af1&&this.#saveETag(_0x508893,_0x357af1),_0x31e179[_0x5079ea(0x1db)](_0x28f314),_0x31e179['on'](_0x588033[_0x5079ea(0x1f7)],function(_0x537cab){const _0x92bb53=_0x5079ea;logger[_0x92bb53(0x204)](_0x92bb53(0x1fd)+_0x537cab),_0x64642e[_0x92bb53(0x1f0)](_0x3db95f,_0x537cab);}),_0x28f314['on'](_0x588033[_0x5079ea(0x1f7)],function(_0x398e98){const _0xc5edbc=_0x5079ea;logger[_0xc5edbc(0x204)]('Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20'+_0x398e98),_0x64642e[_0xc5edbc(0x1f0)](_0x3db95f,_0x398e98);}),_0x28f314['on'](_0x588033[_0x5079ea(0x211)],()=>{const _0x577484=_0x5079ea;this[_0x577484(0x24b)](_0x2ee1bf,_0x508893)[_0x577484(0x236)](_0x2430d5=>_0x34b8fa({'needsUpdate':!![],'binaryPath':_0x2430d5}))['catch'](_0x3db95f);});})['on'](_0x410d78[_0xed84cc(0x23b)],function(_0x4ea0fe){const _0x596089=_0xed84cc;logger[_0x596089(0x204)](_0x596089(0x1f3)+_0x4ea0fe),_0x410d78[_0x596089(0x264)](_0x3db95f,_0x4ea0fe);});});}[a114_0xc018c9(0x24b)](_0x37a847,_0x375aff){const _0x5551b4=a114_0xc018c9,_0x71c6d9={'rOrbJ':function(_0x1bbe35,_0x3246f6){return _0x1bbe35(_0x3246f6);},'ypzJK':_0x5551b4(0x241),'sifds':function(_0x360047,_0xe9e8ed){return _0x360047===_0xe9e8ed;},'eBIJy':'0755','tVYcT':function(_0x53b52d,_0x290195){return _0x53b52d(_0x290195);},'TaTIB':_0x5551b4(0x26e),'rRQAu':_0x5551b4(0x204)},_0x589ff5=this.#binaryName,_0x2c298d=path[_0x5551b4(0x25d)](_0x375aff,_0x589ff5);return new Promise((_0x27e951,_0x5d0e71)=>{const _0x146309=_0x5551b4,_0x9577ad={'RKtiL':function(_0x207102,_0xdde692){return _0x71c6d9['rOrbJ'](_0x207102,_0xdde692);},'cccKn':function(_0xc9bb4c,_0x203e8a){return _0x71c6d9['rOrbJ'](_0xc9bb4c,_0x203e8a);},'fKBVA':_0x71c6d9['ypzJK'],'HuGzt':function(_0x331f9b,_0x3585b7){const _0x5e0aef=a114_0xe0ad;return _0x71c6d9[_0x5e0aef(0x200)](_0x331f9b,_0x3585b7);},'stsEm':function(_0x1d85fa,_0x6b8974){return _0x71c6d9['rOrbJ'](_0x1d85fa,_0x6b8974);},'VBAEQ':function(_0x394849,_0x4478f7){const _0x46addb=a114_0xe0ad;return _0x71c6d9[_0x46addb(0x221)](_0x394849,_0x4478f7);},'PPsTi':_0x71c6d9[_0x146309(0x1ef)],'HZhHC':function(_0x2b31aa,_0x42f986){return _0x71c6d9['tVYcT'](_0x2b31aa,_0x42f986);},'jNBxw':_0x71c6d9[_0x146309(0x20a)],'xtBvB':_0x71c6d9[_0x146309(0x234)]},_0x28dd35={};_0x28dd35['lazyEntries']=!![],yauzl['open'](_0x37a847,_0x28dd35,function(_0x54b64b,_0x4ac6af){const _0x5a83be=_0x146309,_0x2fdebc={'NxdcQ':function(_0x33b886,_0x4dd6d4){return _0x9577ad['cccKn'](_0x33b886,_0x4dd6d4);},'kbpbC':_0x9577ad['fKBVA'],'sqLCg':function(_0x3e664c,_0x49e89b){const _0x3dfcee=a114_0xe0ad;return _0x9577ad[_0x3dfcee(0x23d)](_0x3e664c,_0x49e89b);},'FoePK':function(_0x29c35f,_0x1345e9){const _0x1a20ae=a114_0xe0ad;return _0x9577ad[_0x1a20ae(0x1e4)](_0x29c35f,_0x1345e9);},'dMxIu':function(_0x34d83b,_0x408755){const _0x5f460c=a114_0xe0ad;return _0x9577ad[_0x5f460c(0x25e)](_0x34d83b,_0x408755);},'vQoUI':_0x9577ad[_0x5a83be(0x245)]};_0x54b64b&&_0x9577ad['HZhHC'](_0x5d0e71,_0x54b64b),_0x4ac6af['readEntry'](),_0x4ac6af['on'](_0x9577ad[_0x5a83be(0x26b)],_0x253b74=>{const _0x12e0c0=_0x5a83be,_0xa71adb={'ISVEd':function(_0x16ec9e,_0x34da03){const _0xf7e69c=a114_0xe0ad;return _0x2fdebc[_0xf7e69c(0x1d7)](_0x16ec9e,_0x34da03);},'cuELx':_0x2fdebc[_0x12e0c0(0x26d)]};if(/\/$/[_0x12e0c0(0x230)](_0x253b74[_0x12e0c0(0x227)]))_0x4ac6af[_0x12e0c0(0x220)]();else{const _0x4cdd04=fs[_0x12e0c0(0x215)](path[_0x12e0c0(0x25d)](_0x375aff,_0x253b74[_0x12e0c0(0x227)]));_0x4ac6af[_0x12e0c0(0x266)](_0x253b74,function(_0x55f369,_0xad54e7){const _0x35a891=_0x12e0c0;_0x55f369&&_0xa71adb[_0x35a891(0x253)](_0x5d0e71,_0x54b64b),_0xad54e7['on'](_0xa71adb['cuELx'],function(){const _0x33933d=_0x35a891;_0x4cdd04[_0x33933d(0x254)](),_0x4ac6af['readEntry']();}),_0xad54e7[_0x35a891(0x1db)](_0x4cdd04);}),_0x2fdebc[_0x12e0c0(0x226)](_0x253b74['fileName'],_0x589ff5)&&_0x4ac6af['close']();}}),_0x4ac6af['on'](_0x9577ad[_0x5a83be(0x232)],_0x1aff49=>{const _0x1765fb=_0x5a83be;_0x9577ad[_0x1765fb(0x267)](_0x5d0e71,_0x1aff49);}),_0x4ac6af['once'](_0x9577ad[_0x5a83be(0x225)],()=>{const _0x3c67ff=_0x5a83be;fs[_0x3c67ff(0x208)](_0x2c298d,_0x2fdebc['vQoUI'],function(_0x88f07e){const _0x183e46=_0x3c67ff;_0x88f07e&&_0x2fdebc[_0x183e46(0x1e0)](_0x5d0e71,_0x88f07e),_0x2fdebc[_0x183e46(0x201)](_0x27e951,_0x2c298d);}),_0x4ac6af[_0x3c67ff(0x254)]();});});});}async[a114_0xc018c9(0x1eb)](_0x5b8bf8){const _0x1fe67a=a114_0xc018c9,_0x1dd681={'CQxfQ':function(_0x2e9ac0,_0xb46639){return _0x2e9ac0(_0xb46639);},'JqUdF':function(_0xd87ed4,_0x58700c,_0x499045,_0xc720d7){return _0xd87ed4(_0x58700c,_0x499045,_0xc720d7);},'yPxCK':'--version','nfFqD':_0x1fe67a(0x270),'BtOgk':_0x1fe67a(0x254)},_0x3a9cf6=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x2fd151,_0xafe36d)=>{const _0x475441=_0x1fe67a,_0x312dcb={'EgvMD':function(_0x540bed,_0x37279c){const _0x2c4a10=a114_0xe0ad;return _0x1dd681[_0x2c4a10(0x244)](_0x540bed,_0x37279c);}},_0x4edd11={};_0x4edd11[_0x475441(0x265)]=process['env'];const _0x5a9401=_0x1dd681[_0x475441(0x1f4)](spawn,_0x5b8bf8,[_0x1dd681[_0x475441(0x22f)]],_0x4edd11);_0x5a9401[_0x475441(0x257)]['on'](_0x1dd681[_0x475441(0x21a)],_0x3d5aae=>{const _0x230b21=_0x475441;_0x3a9cf6[_0x230b21(0x230)](_0x3d5aae)&&_0x1dd681[_0x230b21(0x244)](_0x2fd151,!![]);}),_0x5a9401['on'](_0x1dd681[_0x475441(0x21f)],()=>{_0x312dcb['EgvMD'](_0x2fd151,![]);});});}#homedir(){const _0x214336=a114_0xc018c9,_0x402cb8={};_0x402cb8['Otqcg']=function(_0x31e11b,_0x484a3a){return _0x31e11b===_0x484a3a;},_0x402cb8[_0x214336(0x1f8)]='function',_0x402cb8[_0x214336(0x21d)]=function(_0x58054e,_0x167935){return _0x58054e===_0x167935;},_0x402cb8[_0x214336(0x256)]=_0x214336(0x248),_0x402cb8[_0x214336(0x21b)]=function(_0x503579,_0x3995ff){return _0x503579+_0x3995ff;},_0x402cb8[_0x214336(0x207)]=function(_0x33cfe3,_0xb52e89){return _0x33cfe3===_0xb52e89;},_0x402cb8['eNczf']=_0x214336(0x20e),_0x402cb8[_0x214336(0x23a)]=function(_0x1cb59f,_0xe713e3){return _0x1cb59f+_0xe713e3;},_0x402cb8[_0x214336(0x237)]=_0x214336(0x246),_0x402cb8['EecpY']=function(_0x28bcfb,_0x34d707){return _0x28bcfb===_0x34d707;},_0x402cb8[_0x214336(0x1e3)]=_0x214336(0x222),_0x402cb8[_0x214336(0x24d)]=_0x214336(0x209),_0x402cb8[_0x214336(0x1dd)]=function(_0x3f9328,_0x3ca52d){return _0x3f9328+_0x3ca52d;},_0x402cb8[_0x214336(0x233)]=_0x214336(0x1ee),_0x402cb8['txTwR']=function(_0x52f42d,_0x287fce){return _0x52f42d||_0x287fce;};const _0x258d38=_0x402cb8;if(_0x258d38[_0x214336(0x259)](typeof os[_0x214336(0x240)],_0x258d38[_0x214336(0x1f8)]))return os[_0x214336(0x240)]();const _0x5f40fb=process[_0x214336(0x265)],_0x1fba40=_0x5f40fb['HOME'],_0xb16638=_0x5f40fb[_0x214336(0x1da)]||_0x5f40fb[_0x214336(0x250)]||_0x5f40fb[_0x214336(0x252)]||_0x5f40fb[_0x214336(0x269)];if(_0x258d38[_0x214336(0x21d)](process[_0x214336(0x24f)],_0x258d38[_0x214336(0x256)]))return _0x5f40fb[_0x214336(0x216)]||_0x258d38[_0x214336(0x21b)](_0x5f40fb[_0x214336(0x1e2)],_0x5f40fb[_0x214336(0x212)])||_0x1fba40||null;if(_0x258d38[_0x214336(0x207)](process[_0x214336(0x24f)],_0x258d38['eNczf']))return _0x1fba40||(_0xb16638?_0x258d38[_0x214336(0x23a)](_0x258d38[_0x214336(0x237)],_0xb16638):null);if(_0x258d38[_0x214336(0x21e)](process[_0x214336(0x24f)],_0x258d38[_0x214336(0x1e3)]))return _0x1fba40||(_0x258d38[_0x214336(0x259)](process[_0x214336(0x1e9)](),0x0)?_0x258d38[_0x214336(0x24d)]:_0xb16638?_0x258d38[_0x214336(0x1dd)](_0x258d38[_0x214336(0x233)],_0xb16638):null);return _0x258d38['txTwR'](_0x1fba40,null);}}module[a114_0xc018c9(0x260)]=PercyBinary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a115_0x18e8(){var _0x36a4a0=['327897iZaRva','694972lnxJbM','increment','3684076PQzFqQ','285761YVKeLr','13048173XkRujk','15140tExuZB','getName','get','154947SASlcQ','40VyZFYV','1590imqXdB','exports'];a115_0x18e8=function(){return _0x36a4a0;};return a115_0x18e8();}function a115_0xee84(_0x3c411d,_0x524a33){var _0x18e8b9=a115_0x18e8();return a115_0xee84=function(_0xee84e2,_0x4ba4b4){_0xee84e2=_0xee84e2-0x108;var _0x1be91f=_0x18e8b9[_0xee84e2];return _0x1be91f;},a115_0xee84(_0x3c411d,_0x524a33);}var a115_0x1b8c10=a115_0xee84;(function(_0x244456,_0x434b7f){var _0x5a1ab3=a115_0xee84,_0x597dd=_0x244456();while(!![]){try{var _0x4e60ef=parseInt(_0x5a1ab3(0x10e))/0x1+parseInt(_0x5a1ab3(0x113))/0x2+-parseInt(_0x5a1ab3(0x112))/0x3+parseInt(_0x5a1ab3(0x108))/0x4+-parseInt(_0x5a1ab3(0x10b))/0x5*(-parseInt(_0x5a1ab3(0x110))/0x6)+-parseInt(_0x5a1ab3(0x109))/0x7*(parseInt(_0x5a1ab3(0x10f))/0x8)+-parseInt(_0x5a1ab3(0x10a))/0x9;if(_0x4e60ef===_0x434b7f)break;else _0x597dd['push'](_0x597dd['shift']());}catch(_0x58e90a){_0x597dd['push'](_0x597dd['shift']());}}}(a115_0x18e8,0x70f45));class PercyCaptureMap{#map={};[a115_0x1b8c10(0x114)](_0x2904f2,_0x44e866){!this.#map[_0x2904f2]&&(this.#map[_0x2904f2]={}),!this.#map[_0x2904f2][_0x44e866]&&(this.#map[_0x2904f2][_0x44e866]=0x0),this.#map[_0x2904f2][_0x44e866]++;}[a115_0x1b8c10(0x10c)](_0x1507aa,_0x1447c8){var _0x50290e=a115_0x1b8c10;return _0x1507aa+'-'+_0x1447c8+'-'+this[_0x50290e(0x10d)](_0x1507aa,_0x1447c8);}['get'](_0x4ce5d7,_0x18f9ed){if(!this.#map[_0x4ce5d7])return 0x0;if(!this.#map[_0x4ce5d7][_0x18f9ed])return 0x0;return this.#map[_0x4ce5d7][_0x18f9ed];}}module[a115_0x1b8c10(0x111)]=PercyCaptureMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a116_0x54ee83=a116_0x53e2;(function(_0x549248,_0x12a481){var _0x1f576a=a116_0x53e2,_0x2887cf=_0x549248();while(!![]){try{var _0x4a02c6=parseInt(_0x1f576a(0xba))/0x1+-parseInt(_0x1f576a(0xc0))/0x2+-parseInt(_0x1f576a(0xb9))/0x3*(parseInt(_0x1f576a(0xbf))/0x4)+-parseInt(_0x1f576a(0xb6))/0x5*(parseInt(_0x1f576a(0xaf))/0x6)+-parseInt(_0x1f576a(0xb1))/0x7*(parseInt(_0x1f576a(0xb0))/0x8)+-parseInt(_0x1f576a(0xb7))/0x9*(parseInt(_0x1f576a(0xbe))/0xa)+parseInt(_0x1f576a(0xb2))/0xb;if(_0x4a02c6===_0x12a481)break;else _0x2887cf['push'](_0x2887cf['shift']());}catch(_0x5920ec){_0x2887cf['push'](_0x2887cf['shift']());}}}(a116_0x315c,0xdcedd));var a116_0x540e50={};a116_0x540e50[a116_0x54ee83(0xb5)]=[a116_0x54ee83(0xc1)],a116_0x540e50['element']=['click',a116_0x54ee83(0xb8)];var a116_0x35c6bd={};function a116_0x315c(){var _0x2b13d6=['7952Baedgc','10101gPsgoZ','65042494XrgOhh','testcase','auto','driver','1585390nvozIH','12630699bQtmqm','sendKeys','589929JEVdWv','1359056bIodje','screenshot','element','click','10ZtjAKX','20OsjSgE','2555610UsJJSF','takeScreenshot','exports','24uASDvb'];a116_0x315c=function(){return _0x2b13d6;};return a116_0x315c();}a116_0x35c6bd[a116_0x54ee83(0xb5)]=[a116_0x54ee83(0xc1)];var a116_0x5e9947={};function a116_0x53e2(_0x4885b5,_0x1bc620){var _0x315cfb=a116_0x315c();return a116_0x53e2=function(_0x53e2c1,_0x3727a9){_0x53e2c1=_0x53e2c1-0xae;var _0x484078=_0x315cfb[_0x53e2c1];return _0x484078;},a116_0x53e2(_0x4885b5,_0x1bc620);}a116_0x5e9947[a116_0x54ee83(0xbc)]=['click'];var a116_0x1fd6d6={};a116_0x1fd6d6[a116_0x54ee83(0xb4)]=a116_0x540e50,a116_0x1fd6d6[a116_0x54ee83(0xbb)]=a116_0x35c6bd,a116_0x1fd6d6[a116_0x54ee83(0xbd)]=a116_0x5e9947,a116_0x1fd6d6[a116_0x54ee83(0xb3)]={},a116_0x1fd6d6['manual']={},module[a116_0x54ee83(0xae)]=a116_0x1fd6d6;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a117_0x49f6(){const _0x3299a7=['uuid','error','screenshot','391023UbmGIv','@percy/selenium-webdriver','NItEe','1293436gFxGoF','dlgam','../../helpers/testhub/utils','qWWYi','platformIndex','name','browserstackPlatformIndex','SCREENSHOT','thTestCaseExecutionId','5GAZAsm','winstonLogger','UtoPJ','../logger','11915428dUvQYO','ckMXi','Unsupported\x20driver\x20for\x20percy','length','@percy/appium-app','1567226rWYFDu','9076206mhdKye','testCase','1309813UcIpZU','224AnlqeB','measure','612843ALHrMM','rKQbK','EyRva','apply','../performance/constants','SCREENSHOT_APP','../performance/performance-tester','nWXGj','browserstackPercyBestPlatform'];a117_0x49f6=function(){return _0x3299a7;};return a117_0x49f6();}const a117_0x3b0cf4=a117_0x13d0;function a117_0x13d0(_0xf7df75,_0x291932){const _0x49f665=a117_0x49f6();return a117_0x13d0=function(_0x13d03d,_0x35f9e4){_0x13d03d=_0x13d03d-0x94;let _0xfd2971=_0x49f665[_0x13d03d];return _0xfd2971;},a117_0x13d0(_0xf7df75,_0x291932);}(function(_0x34f299,_0x4758a9){const _0x113f3f=a117_0x13d0,_0x15b90e=_0x34f299();while(!![]){try{const _0x4cd8a1=-parseInt(_0x113f3f(0xac))/0x1+parseInt(_0x113f3f(0xa9))/0x2+-parseInt(_0x113f3f(0xaf))/0x3+-parseInt(_0x113f3f(0x97))/0x4+parseInt(_0x113f3f(0xa0))/0x5*(parseInt(_0x113f3f(0xaa))/0x6)+parseInt(_0x113f3f(0xa4))/0x7+-parseInt(_0x113f3f(0xad))/0x8*(parseInt(_0x113f3f(0x94))/0x9);if(_0x4cd8a1===_0x4758a9)break;else _0x15b90e['push'](_0x15b90e['shift']());}catch(_0x43a3c5){_0x15b90e['push'](_0x15b90e['shift']());}}}(a117_0x49f6,0xe69a5));const tryRequire=function(_0x17b6c0,_0x4fd80){const _0x442e31=a117_0x13d0,_0x5c0d0f={'UtoPJ':function(_0x502c39,_0x585a3a){return _0x502c39(_0x585a3a);}};try{return _0x5c0d0f[_0x442e31(0xa2)](require,_0x17b6c0);}catch{return _0x4fd80;}},percySnapshot=tryRequire('@percy/selenium-webdriver',null),{percyScreenshot}=tryRequire(a117_0x3b0cf4(0x95),{}),percyAppScreenshot=require(a117_0x3b0cf4(0xa8)),{getCurrentTestData}=require(a117_0x3b0cf4(0x99)),PerformanceTester=require(a117_0x3b0cf4(0xb5)),{PERCY_EVENTS:PerformanceEvents}=require(a117_0x3b0cf4(0xb3)),logger=require(a117_0x3b0cf4(0xa3))[a117_0x3b0cf4(0xa1)];percySnapshot&&(exports['snapshot']=async function(){const _0xf2074f=a117_0x3b0cf4,_0xb58cbc={'qWWYi':function(_0x36730e,_0x56e18c){return _0x36730e!==_0x56e18c;},'EyRva':function(_0x4205f2,_0x2c6bec){return _0x4205f2>=_0x2c6bec;},'nWXGj':function(_0x480ddf){return _0x480ddf();}};if(global[_0xf2074f(0x9d)]&&_0xb58cbc[_0xf2074f(0x9a)](global[_0xf2074f(0x9d)],global[_0xf2074f(0xb7)]))return;const _0x32df7c=_0xb58cbc[_0xf2074f(0xb1)](arguments[_0xf2074f(0xa7)],0x2)?arguments[0x1]:'',_0x131d6a=_0xb58cbc[_0xf2074f(0xb6)](getCurrentTestData),_0x26a428={};return _0x26a428[_0xf2074f(0x9c)]=_0x32df7c,_0x26a428['testCase']=_0x131d6a[_0xf2074f(0x9c)]||'',_0x26a428[_0xf2074f(0x9f)]=_0x131d6a[_0xf2074f(0xb8)]||'',_0x26a428['platformIndex']=global['browserstackPlatformIndex'],await PerformanceTester[_0xf2074f(0xae)](PerformanceEvents['SNAPSHOT'],()=>percySnapshot[_0xf2074f(0xb2)](null,arguments),_0x26a428);});percyScreenshot?exports[a117_0x3b0cf4(0xba)]=async function(){const _0x5e62d0=a117_0x3b0cf4,_0x984156={'dlgam':function(_0x52e456,_0x1ab06c){return _0x52e456>=_0x1ab06c;},'CCcby':function(_0x44fa99){return _0x44fa99();}},_0x52a85b=_0x984156[_0x5e62d0(0x98)](arguments[_0x5e62d0(0xa7)],0x2)?arguments[0x1]:'',_0x527542=_0x984156['CCcby'](getCurrentTestData),_0xd8910f={};return _0xd8910f[_0x5e62d0(0x9c)]=_0x52a85b,_0xd8910f[_0x5e62d0(0xab)]=_0x527542[_0x5e62d0(0x9c)]||'',_0xd8910f[_0x5e62d0(0x9f)]=_0x527542[_0x5e62d0(0xb8)]||'',_0xd8910f['platformIndex']=global[_0x5e62d0(0x9d)],await PerformanceTester[_0x5e62d0(0xae)](PerformanceEvents[_0x5e62d0(0x9e)],()=>percyScreenshot[_0x5e62d0(0xb2)](null,arguments),_0xd8910f);}:exports[a117_0x3b0cf4(0xba)]=()=>{const _0x3f44a=a117_0x3b0cf4,_0xd6f7d8={};_0xd6f7d8['rKQbK']=_0x3f44a(0xa6);const _0x58bf7a=_0xd6f7d8;logger[_0x3f44a(0xb9)](_0x58bf7a[_0x3f44a(0xb0)]);};exports['screenshotApp']=async function(){const _0xf4b00d=a117_0x3b0cf4,_0x353eb1={'ckMXi':function(_0x404cfb,_0x35a438){return _0x404cfb>=_0x35a438;},'NItEe':function(_0x5207f8){return _0x5207f8();}},_0x313c77=_0x353eb1[_0xf4b00d(0xa5)](arguments[_0xf4b00d(0xa7)],0x2)?arguments[0x1]:'',_0x3207dd=_0x353eb1[_0xf4b00d(0x96)](getCurrentTestData),_0x1e8f9c={};return _0x1e8f9c[_0xf4b00d(0x9c)]=_0x313c77,_0x1e8f9c[_0xf4b00d(0xab)]=_0x3207dd[_0xf4b00d(0x9c)]||'',_0x1e8f9c[_0xf4b00d(0x9f)]=_0x3207dd[_0xf4b00d(0xb8)]||'',_0x1e8f9c[_0xf4b00d(0x9b)]=global[_0xf4b00d(0x9d)],await PerformanceTester[_0xf4b00d(0xae)](PerformanceEvents[_0xf4b00d(0xb4)],()=>percyAppScreenshot[_0xf4b00d(0xb2)](null,arguments),_0x1e8f9c);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a118_0x503a21=a118_0x35e6;function a118_0x35e6(_0x2aed35,_0x552a46){var _0x451dee=a118_0x451d();return a118_0x35e6=function(_0x35e6ab,_0x54a1d0){_0x35e6ab=_0x35e6ab-0x183;var _0x38820a=_0x451dee[_0x35e6ab];return _0x38820a;},a118_0x35e6(_0x2aed35,_0x552a46);}function a118_0x451d(){var _0x57dffa=['7oGqvKY','88605nisnIZ','609pKXknN','28036JDOwge','403292oKOayp','12779919MwyqHI','2286109lXCwuK','11eLyBbn','./Percy','18KXSNzO','18976210NarsBY','5055848JVtBrL'];a118_0x451d=function(){return _0x57dffa;};return a118_0x451d();}(function(_0x402eac,_0x3bed58){var _0x480d37=a118_0x35e6,_0x19216f=_0x402eac();while(!![]){try{var _0x252813=parseInt(_0x480d37(0x188))/0x1*(parseInt(_0x480d37(0x18c))/0x2)+parseInt(_0x480d37(0x18a))/0x3*(-parseInt(_0x480d37(0x18b))/0x4)+parseInt(_0x480d37(0x189))/0x5+parseInt(_0x480d37(0x185))/0x6*(parseInt(_0x480d37(0x18e))/0x7)+-parseInt(_0x480d37(0x187))/0x8+-parseInt(_0x480d37(0x18d))/0x9+-parseInt(_0x480d37(0x186))/0xa*(-parseInt(_0x480d37(0x183))/0xb);if(_0x252813===_0x3bed58)break;else _0x19216f['push'](_0x19216f['shift']());}catch(_0x50d42c){_0x19216f['push'](_0x19216f['shift']());}}}(a118_0x451d,0xcb152),module['exports']=require(a118_0x503a21(0x184)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a119_0x340357=a119_0x4927;function a119_0x4001(){const _0x7ab330=['apply','toLowerCase','460698YUzDwC','54308MpGFWS','element','prototype','./PercySDK','getDriver','browserName','3092170lEzCbS','screenshot','eFXUu','getBestPlatformForPercySnapshot','measureWrapper','DPXuG','321420NUifTD','../performance/constants','11BdtmUm','percy','browser','browserStackPercyOptions','overrideXforPercy','urFMp','20tJFVRz','forEach','vBorq','percyCaptureMode','stop','qMOim','deviceName','browserstackSessionName','Stopping\x20percy','bmxdU','safari','reduce','./PercyCaptureModes','nestedKeyValue','then','AUTO_CAPTURE','../performance/performance-tester','39oeTmvV','ozIUo','stopPercy','7iHsetH','init','\x20for\x20percy\x20','firefox','PcENk','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','8JrjpQr','browserstackPercyBestPlatform','lPIym','getPercyOptions','patch','5622744aCnQUc','debug','STOP','driver','browserstackPercyMap','START','error','VRVzt','percyAutoCapture','start','winstonLogger','keVVr','platforms','chrome','2614023UMzMNh','DuhhK','isUndefined','startPercy','95456GAoCVX'];a119_0x4001=function(){return _0x7ab330;};return a119_0x4001();}(function(_0x51159b,_0xa6cb04){const _0x3f4656=a119_0x4927,_0x38ab38=_0x51159b();while(!![]){try{const _0x36b75b=-parseInt(_0x3f4656(0x185))/0x1+-parseInt(_0x3f4656(0x140))/0x2*(parseInt(_0x3f4656(0x165))/0x3)+parseInt(_0x3f4656(0x14c))/0x4*(-parseInt(_0x3f4656(0x154))/0x5)+-parseInt(_0x3f4656(0x188))/0x6*(parseInt(_0x3f4656(0x168))/0x7)+-parseInt(_0x3f4656(0x16e))/0x8*(-parseInt(_0x3f4656(0x181))/0x9)+parseInt(_0x3f4656(0x146))/0xa*(parseInt(_0x3f4656(0x14e))/0xb)+parseInt(_0x3f4656(0x173))/0xc;if(_0x36b75b===_0xa6cb04)break;else _0x38ab38['push'](_0x38ab38['shift']());}catch(_0xd329e8){_0x38ab38['push'](_0x38ab38['shift']());}}}(a119_0x4001,0x3617d));function a119_0x4927(_0x59128f,_0x1cea3a){const _0x400176=a119_0x4001();return a119_0x4927=function(_0x492763,_0x2887df){_0x492763=_0x492763-0x140;let _0x5ca2cd=_0x400176[_0x492763];return _0x5ca2cd;},a119_0x4927(_0x59128f,_0x1cea3a);}const Percy=require('./Percy'),PercySDK=require(a119_0x340357(0x143)),PercyCaptureModes=require(a119_0x340357(0x160)),PercyCaptureMap=require('./PercyCaptureMap'),logger=require('../logger')[a119_0x340357(0x17d)],helper=require('../helper'),PerformanceTester=require(a119_0x340357(0x164)),{PERCY_EVENTS:PerformanceEvents}=require(a119_0x340357(0x14d));exports[a119_0x340357(0x184)]=PerformanceTester['measureWrapper'](PerformanceEvents[a119_0x340357(0x178)],async _0xd36902=>{const _0x48c152=a119_0x340357,_0x2506bc={};_0x2506bc[_0x48c152(0x182)]='Starting\x20percy';const _0x504281=_0x2506bc;logger['debug'](_0x504281[_0x48c152(0x182)]);const _0x412400=new Percy(_0xd36902),_0x1a68f2=await _0x412400[_0x48c152(0x17c)]();if(_0x1a68f2)return _0x412400;return null;}),exports[a119_0x340357(0x167)]=PerformanceTester[a119_0x340357(0x14a)](PerformanceEvents[a119_0x340357(0x175)],async _0xdb1ef8=>{const _0x219bb=a119_0x340357,_0x2bc21b={};_0x2bc21b['bmxdU']=_0x219bb(0x15c);const _0x52ab54=_0x2bc21b;return logger['debug'](_0x52ab54[_0x219bb(0x15d)]),_0xdb1ef8[_0x219bb(0x158)]();}),exports['getBestPlatformForPercySnapshot']=_0x45a64e=>{const _0x1b63a9=a119_0x340357,_0x28520f={};_0x28520f[_0x1b63a9(0x17e)]=function(_0x12f3f9,_0x3c7756){return _0x12f3f9<_0x3c7756;};const _0x11fc2c=_0x28520f,_0xae4714={};_0xae4714[_0x1b63a9(0x180)]=0x0,_0xae4714[_0x1b63a9(0x16b)]=0x1,_0xae4714['edge']=0x2,_0xae4714[_0x1b63a9(0x15e)]=0x3;const _0x6e4ba7=_0xae4714;return _0x45a64e[_0x1b63a9(0x15f)]((_0x3a305c,_0x166d08,_0x288977)=>{const _0x7cbe26=_0x1b63a9,_0xd2e55b=_0x45a64e[_0x3a305c];if(_0x166d08[_0x7cbe26(0x15a)])return _0x3a305c;if(_0xd2e55b[_0x7cbe26(0x15a)])return _0x288977;const _0x1f89fa=_0x166d08[_0x7cbe26(0x150)]?_0x166d08[_0x7cbe26(0x150)]:_0x166d08[_0x7cbe26(0x145)];if(_0x1f89fa&&_0x11fc2c[_0x7cbe26(0x17e)](_0x6e4ba7[_0x1f89fa[_0x7cbe26(0x187)]()],_0x6e4ba7[_0x1f89fa[_0x7cbe26(0x187)]()]))return _0x288977;return _0x3a305c;},0x0);},exports[a119_0x340357(0x17b)]=PerformanceTester['measureWrapper'](PerformanceEvents[a119_0x340357(0x163)],async(_0x458807,_0x1af390,_0x23c034)=>{const _0x1b76c6=a119_0x340357,_0x3ea650={};_0x3ea650['vBorq']=_0x1b76c6(0x16d);const _0x2b03b0=_0x3ea650,_0x51e613=_0x458807[_0x1b76c6(0x177)];if(helper[_0x1b76c6(0x183)](_0x458807[_0x1b76c6(0x15b)])){logger[_0x1b76c6(0x174)](_0x2b03b0[_0x1b76c6(0x156)]);return;}const _0x172d42=_0x51e613['getName'](_0x458807[_0x1b76c6(0x15b)],_0x1af390);_0x23c034['app']?await PercySDK['screenshotApp'](_0x458807,_0x172d42):await PercySDK[_0x1b76c6(0x147)](_0x458807,_0x172d42),_0x51e613['increment'](_0x458807['browserstackSessionName'],_0x1af390);}),exports['patchDriverPercy']=(_0x39fad7,_0x566923,_0x1b470b)=>{const _0x414f7a=a119_0x340357,_0x2f7b84={};_0x2f7b84[_0x414f7a(0x148)]=_0x414f7a(0x151),_0x2f7b84[_0x414f7a(0x166)]=_0x414f7a(0x14f),_0x2f7b84[_0x414f7a(0x17a)]=function(_0x1c111b,_0x42815b){return _0x1c111b!==_0x42815b;},_0x2f7b84['OZjFK']='manual';const _0x3d7326=_0x2f7b84;if(!helper[_0x414f7a(0x161)](_0x1b470b,[_0x3d7326[_0x414f7a(0x148)],_0x3d7326['ozIUo']]))return;if(_0x1b470b['browserStackPercyOptions'][_0x414f7a(0x14f)]&&_0x1b470b['browserStackPercyOptions'][_0x414f7a(0x157)]&&_0x3d7326[_0x414f7a(0x17a)](_0x1b470b[_0x414f7a(0x151)][_0x414f7a(0x157)],_0x3d7326['OZjFK'])&&!_0x39fad7[_0x414f7a(0x177)]){global[_0x414f7a(0x15b)]&&(_0x39fad7['browserstackSessionName']=global[_0x414f7a(0x15b)]),_0x39fad7[_0x414f7a(0x177)]=new PercyCaptureMap();const _0x283e47=PercyCaptureModes[_0x1b470b[_0x414f7a(0x151)]['percyCaptureMode']];_0x283e47[_0x414f7a(0x176)]&&_0x283e47['driver'][_0x414f7a(0x155)](_0x1d1e6f=>this['overrideXforPercy'](_0x39fad7,_0x1d1e6f,_0x1b470b)),_0x283e47[_0x414f7a(0x141)]&&_0x283e47[_0x414f7a(0x141)][_0x414f7a(0x155)](_0x2f59d6=>{const _0x30e99e=_0x414f7a;if(_0x566923[_0x30e99e(0x142)][_0x30e99e(0x172)+_0x2f59d6])return;_0x566923[_0x30e99e(0x142)][_0x30e99e(0x172)+_0x2f59d6]=!![];const _0x33c40b=_0x566923[_0x30e99e(0x142)][_0x2f59d6];_0x566923['prototype'][_0x2f59d6]=async function(){const _0x60329a=_0x30e99e;let _0x557694=_0x33c40b[_0x60329a(0x186)](this,arguments);_0x557694&&_0x557694[_0x60329a(0x162)]&&(_0x557694=await _0x557694);try{const _0x42a1a7=this[_0x60329a(0x144)]();await exports[_0x60329a(0x17b)](_0x42a1a7,_0x2f59d6,_0x1b470b);}catch(_0x34eea3){logger[_0x60329a(0x179)]('Error\x20patching\x20'+_0x2f59d6+_0x60329a(0x16a)+_0x34eea3);}return _0x557694;};});}},exports[a119_0x340357(0x152)]=function(_0x2c5fc7,_0x16ccf,_0x4b330b){const _0x1412e1=a119_0x340357,_0x5d27b8={};_0x5d27b8[_0x1412e1(0x159)]=function(_0x2073bc,_0x369b6c){return _0x2073bc+_0x369b6c;},_0x5d27b8[_0x1412e1(0x153)]=_0x1412e1(0x172),_0x5d27b8[_0x1412e1(0x170)]=function(_0x341821,_0x388f1a){return _0x341821+_0x388f1a;},_0x5d27b8[_0x1412e1(0x14b)]=_0x1412e1(0x169);const _0x8aaa20=_0x5d27b8,_0x402b33=_0x8aaa20[_0x1412e1(0x159)](_0x8aaa20[_0x1412e1(0x153)],_0x16ccf),_0x3e8c82=_0x8aaa20[_0x1412e1(0x170)](_0x8aaa20['DPXuG'],_0x16ccf),_0x2d80ff=this;if(_0x2c5fc7[_0x402b33]||!_0x2c5fc7[_0x16ccf])return;_0x2c5fc7[_0x402b33]=!![],_0x2c5fc7[_0x3e8c82]=_0x2c5fc7[_0x16ccf],_0x2c5fc7[_0x16ccf]=async()=>{const _0xe9fc1=_0x1412e1;try{await _0x2d80ff[_0xe9fc1(0x17b)](_0x2c5fc7,_0x16ccf,_0x4b330b);}catch(_0x31fc28){logger['error']('Error\x20patching\x20'+_0x16ccf+'\x20for\x20percy\x20'+_0x31fc28);}return await _0x2c5fc7[_0x3e8c82]['apply'](_0x2c5fc7,arguments);};},exports[a119_0x340357(0x171)]=_0x53bd9c=>{const _0x23a48a=a119_0x340357,_0x1637fe={};_0x1637fe[_0x23a48a(0x16c)]='auto';const _0x3ae9f5=_0x1637fe,_0x1daf49={};_0x1daf49['percy']=_0x53bd9c[_0x23a48a(0x14f)],_0x1daf49['percyCaptureMode']=_0x53bd9c[_0x23a48a(0x157)]||_0x3ae9f5[_0x23a48a(0x16c)];const _0x4523e3=_0x1daf49;_0x53bd9c[_0x23a48a(0x14f)]&&(_0x4523e3[_0x23a48a(0x16f)]=exports[_0x23a48a(0x149)](_0x53bd9c[_0x23a48a(0x17f)]));;return _0x4523e3;};
|