browserstack-node-sdk 1.40.6 → 1.40.7
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/browserstack.pw.yml.sample +1 -0
- package/browserstack.yml.sample +1 -0
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/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_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/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/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/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/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/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.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/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 a97_0x4aafdd=a97_0x4e72;(function(_0x4026d9,_0x2fe8fc){const _0x3075e1=a97_0x4e72,_0x5b3b10=_0x4026d9();while(!![]){try{const _0x5360a3=-parseInt(_0x3075e1(0x1e9))/0x1+-parseInt(_0x3075e1(0x1cc))/0x2*(parseInt(_0x3075e1(0x1e0))/0x3)+parseInt(_0x3075e1(0x1fb))/0x4*(-parseInt(_0x3075e1(0x1d9))/0x5)+parseInt(_0x3075e1(0x1ef))/0x6*(-parseInt(_0x3075e1(0x202))/0x7)+parseInt(_0x3075e1(0x1da))/0x8*(-parseInt(_0x3075e1(0x1ea))/0x9)+parseInt(_0x3075e1(0x1dc))/0xa*(parseInt(_0x3075e1(0x1d2))/0xb)+parseInt(_0x3075e1(0x1de))/0xc*(parseInt(_0x3075e1(0x1c7))/0xd);if(_0x5360a3===_0x2fe8fc)break;else _0x5b3b10['push'](_0x5b3b10['shift']());}catch(_0x25f0eb){_0x5b3b10['push'](_0x5b3b10['shift']());}}}(a97_0x5539,0x66451));const winston=require(a97_0x4aafdd(0x1c5)),path=require('path'),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME}=require('../bin/utils/constants'),tempLogDir=a97_0x4aafdd(0x1d8),logFormat=winston[a97_0x4aafdd(0x1c0)](_0x392162=>{const _0x59eaac=a97_0x4aafdd,_0x936a20={};_0x936a20[_0x59eaac(0x1f6)]=function(_0x1ef2f4,_0x423e1c){return _0x1ef2f4!==_0x423e1c;},_0x936a20[_0x59eaac(0x1e4)]='string',_0x936a20['JGiuW']=function(_0x13ee0a,_0x243b57){return _0x13ee0a===_0x243b57;},_0x936a20[_0x59eaac(0x1db)]=_0x59eaac(0x1d0),_0x936a20['OMcig']=function(_0x3ad7d4,_0x541935){return _0x3ad7d4===_0x541935;};const _0xf2bd8e=_0x936a20;return _0xf2bd8e['BqLdP'](typeof _0x392162[_0x59eaac(0x1d1)],_0xf2bd8e[_0x59eaac(0x1e4)])&&(_0x392162['message']=JSON[_0x59eaac(0x1d3)](_0x392162['message'])),global[_0x59eaac(0x203)]?.[_0x59eaac(0x1f3)]?.[_0x59eaac(0x1ca)]&&_0xf2bd8e[_0x59eaac(0x1ff)](typeof _0x392162[_0x59eaac(0x1d1)],_0xf2bd8e[_0x59eaac(0x1e4)])&&(_0x392162[_0x59eaac(0x1d1)]=_0x392162[_0x59eaac(0x1d1)]['replace'](new RegExp(global[_0x59eaac(0x203)][_0x59eaac(0x1f3)]['userName'],'g'),_0xf2bd8e[_0x59eaac(0x1db)])),global[_0x59eaac(0x203)]?.['config']?.[_0x59eaac(0x1cd)]&&_0xf2bd8e[_0x59eaac(0x1c6)](typeof _0x392162[_0x59eaac(0x1d1)],_0xf2bd8e['gcNjK'])&&(_0x392162[_0x59eaac(0x1d1)]=_0x392162['message'][_0x59eaac(0x1d5)](new RegExp(global[_0x59eaac(0x203)][_0x59eaac(0x1f3)]['accessKey'],'g'),_0xf2bd8e['feCDn'])),_0x392162;}),fetchLogDir=()=>{const _0x2eaec8=a97_0x4aafdd;if(process[_0x2eaec8(0x1eb)][_0x2eaec8(0x207)])return process[_0x2eaec8(0x1eb)][_0x2eaec8(0x207)];else!fs['existsSync'](tempLogDir)&&fs['mkdirSync'](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),a97_0x19ec73={};a97_0x19ec73['name']=a97_0x4aafdd(0x1fa);const transports={'loggerConsole':new winston[(a97_0x4aafdd(0x1fc))][(a97_0x4aafdd(0x1fd))](a97_0x19ec73),'loggerFile':new winston[(a97_0x4aafdd(0x1fc))][(a97_0x4aafdd(0x1fe))]({'filename':path[a97_0x4aafdd(0x1f7)](logDir,a97_0x4aafdd(0x1f4))}),'debugLoggerFile':new winston['transports'][(a97_0x4aafdd(0x1fe))]({'filename':path[a97_0x4aafdd(0x1f7)](logDir,a97_0x4aafdd(0x1cb)),'level':'silly'}),'debugCliLoggerFile':new winston[(a97_0x4aafdd(0x1fc))][(a97_0x4aafdd(0x1fe))]({'filename':path[a97_0x4aafdd(0x1f7)](logDir,a97_0x4aafdd(0x1bf)),'level':a97_0x4aafdd(0x1ce)})},automationTransports={};process[a97_0x4aafdd(0x1eb)][a97_0x4aafdd(0x1e2)]===a97_0x4aafdd(0x1f0)&&(automationTransports['automationLoggerFile']=new winston[(a97_0x4aafdd(0x1fc))]['File']({'filename':path['join'](logDir,a97_0x4aafdd(0x1f9)),'level':a97_0x4aafdd(0x1ce)}));transports[a97_0x4aafdd(0x204)]['on']('error',_0x2d89f1=>{const _0x538c00=a97_0x4aafdd,_0x14546f={};_0x14546f[_0x538c00(0x1e3)]=function(_0x5c17ea,_0xcad603){return _0x5c17ea===_0xcad603;},_0x14546f[_0x538c00(0x1ec)]='EPIPE',_0x14546f[_0x538c00(0x1f1)]=_0x538c00(0x1e1);const _0x3f0328=_0x14546f;if(_0x3f0328[_0x538c00(0x1e3)](_0x2d89f1[_0x538c00(0x1c3)],_0x3f0328[_0x538c00(0x1ec)])){console['log'](_0x3f0328[_0x538c00(0x1f1)],_0x2d89f1[_0x538c00(0x1d1)]);return;}throw _0x2d89f1;});const a97_0x2ad274={};a97_0x2ad274[a97_0x4aafdd(0x1c0)]='YYYY-MM-DD\x20HH:mm:ss';const a97_0x50c62f={};a97_0x50c62f[a97_0x4aafdd(0x1d4)]=!![];function a97_0x4e72(_0x33a76f,_0x66710e){const _0x5539d0=a97_0x5539();return a97_0x4e72=function(_0x4e723b,_0x557a97){_0x4e723b=_0x4e723b-0x1bf;let _0x28460f=_0x5539d0[_0x4e723b];return _0x28460f;},a97_0x4e72(_0x33a76f,_0x66710e);}const winstonLoggerParams={'format':winston['format'][a97_0x4aafdd(0x1d7)](winston[a97_0x4aafdd(0x1c0)][a97_0x4aafdd(0x1f2)](a97_0x2ad274),winston['format'][a97_0x4aafdd(0x1dd)](a97_0x50c62f),winston[a97_0x4aafdd(0x1c0)]['printf'](_0x3e1841=>_0x3e1841[a97_0x4aafdd(0x1f2)]+a97_0x4aafdd(0x1c1)+_0x3e1841[a97_0x4aafdd(0x1d4)]+':\x20'+_0x3e1841[a97_0x4aafdd(0x1d1)])),'transports':[transports[a97_0x4aafdd(0x204)]]},a97_0x2d1213={};a97_0x2d1213[a97_0x4aafdd(0x1c0)]='YYYY-MM-DD\x20HH:mm:ss';const a97_0x187c93={};function a97_0x5539(){const _0x4d603b=['true','HkzNU','timestamp','config','/usage.log','error','BqLdP','join','automationLogger','automation.log','console.info','8728pwuBpW','transports','Console','File','JGiuW','logDir','info','35uKNIJP','session','loggerConsole','oeAlB','getLogDir','BROWSERSTACK_INTERNAL_LOG_DIR','add','/sdk-cli-debug.log','format','\x20-\x20','debug','code','initialize','winston','OMcig','36884393cbRfEf','winstonLogger','createLogger','userName','/usage-debug.log','478492xmtVUe','accessKey','silly','fileLogger','[REDACTED]','message','106161jiimKn','stringify','level','replace','dCUxM','combine','log','1915IgVZIp','107088kwDMMz','feCDn','190KWGoSJ','colorize','12vIlrdG','printf','9WGolFa','EPIPE\x20error\x20occurred\x20in\x20loggerConsole:','BROWSERSTACK_AUTOMATION_LOGS','LaXNj','gcNjK','warn','loggerFile','split','debugLoggerFile','103810JSogOw','441jjHrYb','env','xgiNC','http','1|0|5|3|4|2','346278jlMbgR'];a97_0x5539=function(){return _0x4d603b;};return a97_0x5539();}a97_0x187c93[a97_0x4aafdd(0x1d4)]=!![];const winstonFileLoggerParams={'format':winston[a97_0x4aafdd(0x1c0)][a97_0x4aafdd(0x1d7)](winston[a97_0x4aafdd(0x1c0)][a97_0x4aafdd(0x1f2)](a97_0x2d1213),winston[a97_0x4aafdd(0x1c0)][a97_0x4aafdd(0x1dd)](a97_0x187c93),winston['format']['printf'](_0x3a43b1=>_0x3a43b1[a97_0x4aafdd(0x1d4)]+':\x20'+_0x3a43b1[a97_0x4aafdd(0x1d1)])),'transports':[]},a97_0x4cfc05={};a97_0x4cfc05[a97_0x4aafdd(0x1ed)]=()=>{},a97_0x4cfc05[a97_0x4aafdd(0x201)]=()=>{},a97_0x4cfc05[a97_0x4aafdd(0x1e5)]=()=>{},a97_0x4cfc05[a97_0x4aafdd(0x1f5)]=()=>{},a97_0x4cfc05[a97_0x4aafdd(0x1c2)]=()=>{},a97_0x4cfc05['silly']=()=>{},exports[a97_0x4aafdd(0x1f8)]=process[a97_0x4aafdd(0x1eb)][a97_0x4aafdd(0x1e2)]===a97_0x4aafdd(0x1f0)?winston[a97_0x4aafdd(0x1c9)]({'format':winston['format'][a97_0x4aafdd(0x1d7)](winston[a97_0x4aafdd(0x1c0)]['uncolorize'](),winston[a97_0x4aafdd(0x1c0)]['timestamp'](),logFormat(),winston['format'][a97_0x4aafdd(0x1df)](_0x5d2b32=>_0x5d2b32[a97_0x4aafdd(0x1d4)]+':\x20'+_0x5d2b32[a97_0x4aafdd(0x1d1)])),'transports':[automationTransports['automationLoggerFile']]}):a97_0x4cfc05;const initialize=()=>{const _0x237455=a97_0x4aafdd,_0x30b9aa={};_0x30b9aa[_0x237455(0x205)]=_0x237455(0x1ee),_0x30b9aa[_0x237455(0x1d6)]=_0x237455(0x1ce);const _0x24d13f=_0x30b9aa,_0xcdca67=_0x24d13f[_0x237455(0x205)][_0x237455(0x1e7)]('|');let _0x41704b=0x0;while(!![]){switch(_0xcdca67[_0x41704b++]){case'0':transports['debugLoggerFile']=new winston[(_0x237455(0x1fc))]['File']({'filename':path[_0x237455(0x1f7)](exports[_0x237455(0x200)],DEBUG_LOG_FILE_NAME),'level':_0x24d13f[_0x237455(0x1d6)]});continue;case'1':transports['loggerFile']=new winston[(_0x237455(0x1fc))]['File']({'filename':path[_0x237455(0x1f7)](exports['logDir'],LOG_FILE_NAME)});continue;case'2':exports['fileLogger']['add'](transports[_0x237455(0x1e8)]);continue;case'3':exports[_0x237455(0x1c8)][_0x237455(0x208)](transports['debugLoggerFile']);continue;case'4':exports[_0x237455(0x1cf)][_0x237455(0x208)](transports[_0x237455(0x1e6)]);continue;case'5':exports['winstonLogger'][_0x237455(0x208)](transports[_0x237455(0x1e6)]);continue;}break;}};exports['winstonLogger']=new winston[(a97_0x4aafdd(0x1c9))](winstonLoggerParams),exports['fileLogger']=new winston[(a97_0x4aafdd(0x1c9))](winstonFileLoggerParams),exports[a97_0x4aafdd(0x200)]=logDir,exports[a97_0x4aafdd(0x206)]=()=>{return exports['logDir'];},exports[a97_0x4aafdd(0x1fc)]=transports,exports[a97_0x4aafdd(0x1c4)]=initialize;logDir&&initialize();
|
package/src/helpers/metadata.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a98_0x4ded(_0x3f7074,_0x4e6c9d){const _0x1b838d=a98_0x1b83();return a98_0x4ded=function(_0x4ded48,_0x3d3521){_0x4ded48=_0x4ded48-0x11e;let _0x43e0d5=_0x1b838d[_0x4ded48];return _0x43e0d5;},a98_0x4ded(_0x3f7074,_0x4e6c9d);}const a98_0x59b75f=a98_0x4ded;(function(_0x234190,_0x324c74){const _0x144420=a98_0x4ded,_0x269785=_0x234190();while(!![]){try{const _0xdea84f=-parseInt(_0x144420(0x12d))/0x1+parseInt(_0x144420(0x131))/0x2+-parseInt(_0x144420(0x133))/0x3*(parseInt(_0x144420(0x138))/0x4)+parseInt(_0x144420(0x12b))/0x5+parseInt(_0x144420(0x125))/0x6*(-parseInt(_0x144420(0x139))/0x7)+parseInt(_0x144420(0x11e))/0x8*(parseInt(_0x144420(0x121))/0x9)+parseInt(_0x144420(0x12a))/0xa;if(_0xdea84f===_0x324c74)break;else _0x269785['push'](_0x269785['shift']());}catch(_0x37d02e){_0x269785['push'](_0x269785['shift']());}}}(a98_0x1b83,0x3e953));function a98_0x1b83(){const _0x1eee9a=['1908oRlbQv','identifier','usLIq','KTUPP','52014vFMgNc','SEumL','exports','testMeta','warn','7801720GhqBsx','395945fJbpGY','testMeta-','271757gzBgFT','get','lcnc','./logger','507476gHKtpW','./globals','179427GZrmXA','winstonLogger','KCgol','getGlobal','wwpri','32IcbGjo','161EjLSpb','length','./helper','vjcTE','The\x20metadata\x20object\x20is\x20not\x20valid.','setGlobal','3504AnyPme','EBZIl','getCentralUser'];a98_0x1b83=function(){return _0x1eee9a;};return a98_0x1b83();}const globals=require(a98_0x59b75f(0x132)),helper=require(a98_0x59b75f(0x13b)),logger=require(a98_0x59b75f(0x130))[a98_0x59b75f(0x134)];module[a98_0x59b75f(0x127)]=class TestMetadata{static['set'](_0x5a33af={}){const _0x310bc7=a98_0x59b75f,_0x5503b9={};_0x5503b9['KCgol']='testRunUUID',_0x5503b9[_0x310bc7(0x11f)]=function(_0x465e41,_0x53e666){return _0x465e41===_0x53e666;},_0x5503b9[_0x310bc7(0x123)]='string',_0x5503b9[_0x310bc7(0x137)]=function(_0x401df5,_0x38f563){return _0x401df5<=_0x38f563;},_0x5503b9['SEumL']=_0x310bc7(0x128),_0x5503b9['KTUPP']=_0x310bc7(0x13d);const _0x587f29=_0x5503b9,_0xd121f1=globals[_0x310bc7(0x136)](_0x587f29[_0x310bc7(0x135)]),_0x15defc=_0x5a33af[_0x310bc7(0x122)];helper[_0x310bc7(0x120)]()[_0x310bc7(0x12f)]&&(_0x587f29[_0x310bc7(0x11f)](typeof _0x15defc,_0x587f29['usLIq'])&&_0x587f29['wwpri'](_0x15defc[_0x310bc7(0x13a)],0x28)?_0xd121f1?globals['setGlobal'](_0x310bc7(0x12c)+_0xd121f1,_0x5a33af):globals[_0x310bc7(0x13e)](_0x587f29[_0x310bc7(0x126)],_0x5a33af):logger[_0x310bc7(0x129)](_0x587f29[_0x310bc7(0x124)]));}static[a98_0x59b75f(0x12e)](_0x188163){const _0x28ce9e=a98_0x59b75f,_0x1c867f={};_0x1c867f[_0x28ce9e(0x13c)]=_0x28ce9e(0x128);const _0x492ad1=_0x1c867f;if(helper[_0x28ce9e(0x120)]()[_0x28ce9e(0x12f)])return globals[_0x28ce9e(0x136)](_0x28ce9e(0x12c)+_0x188163)||globals['getGlobal'](_0x492ad1[_0x28ce9e(0x13c)])||{};return{};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a99_0x2520ad=a99_0x2c97;(function(_0x891454,_0x568c59){const _0x1714db=a99_0x2c97,_0x3b005d=_0x891454();while(!![]){try{const _0x456ab1=-parseInt(_0x1714db(0x115))/0x1*(-parseInt(_0x1714db(0x10c))/0x2)+parseInt(_0x1714db(0xe9))/0x3*(parseInt(_0x1714db(0x139))/0x4)+parseInt(_0x1714db(0x147))/0x5+parseInt(_0x1714db(0x146))/0x6*(parseInt(_0x1714db(0x10d))/0x7)+parseInt(_0x1714db(0xe0))/0x8+parseInt(_0x1714db(0x12a))/0x9*(parseInt(_0x1714db(0xff))/0xa)+-parseInt(_0x1714db(0x127))/0xb;if(_0x456ab1===_0x568c59)break;else _0x3b005d['push'](_0x3b005d['shift']());}catch(_0x1758d1){_0x3b005d['push'](_0x3b005d['shift']());}}}(a99_0x13dc,0x6fb58));function a99_0x13dc(){const _0x20e995=['TYwdy','getSession','568856XiGewQ','LiufB','PAJLz','rlcuh','MvasM','dWmZR','name','aiHeal:setToken','handleSuccess','218388gYUNAw','ueZMF','initExecute','TQUtv','./globals','puPBy','winstonLogger','OAJoc','./ai-sdk/aiSdkWrapper','name_','./performance/constants','find','getNudgeLocalNotSetError','Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','skipHealingSuccess','aiHeal:findElementFailure','PRE_EXECUTE','BjCof','capability','ygrIZ','setTcgToken','vcWSM','878390yDgOUZ','ahFih','gWDcp','Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','toString','VuaYm','HLNpu','NUDGE_LOCAL_ERRORS','./ai-sdk/autoHealHelper','vEVrO','rgPFA','../bin/utils/constants','ZDPxC','202gYegGe','1316zykDsB','hKWDw','MHXSr','aiSdk_defaultLogDataEnabled','debug','XGosW','fqScO','xlFiR','3004mscNUZ','isSelfHealEnabled','local','xhHvw','error','JQhHD','command','aiHeal_isHealingEnabled','bstack:options','value','execute','MUmop','url','POST_EXECUTE','iFNdI','vlxbs','cyxWY','getId','15899664ZbLsBF','eIcve','./logger','63QxeveT','TWSXO','HMJHq','handleFailure','Healing\x20failed\x20for\x20command\x20using\x20','DpjBD','zZjgZ','ohDTb','XoYwI','lAExb','sNSYR','gdONt','aiHeal:findElementSuccess','overrideExecute','parameters_','28ULTbXw','yJgZf','StyEk','findElement\x20command\x20failed\x20with\x20','UKRyd','gSUei','mfCrk','JavascriptError','unLWW','measureWrapper','./performance/performance-tester','Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','Successfully\x20healed\x20command\x20using\x20new\x20','9726OrGHRA','496400ceaqNF','hbUSP','MCVIy','KgDEG','fHOQy','BHJfd','patchExecute','nestedKeyValue','using','Error\x20in\x20handling\x20TCG\x20Auth:\x20','setTcgTokenStatus','cadHz','setAiSessionTimeStamp','hWTMz','NoSuchElementError','info','getGlobal','browserstack.local','otZZP'];a99_0x13dc=function(){return _0x20e995;};return a99_0x13dc();}function a99_0x2c97(_0x49c47c,_0x17565f){const _0x13dced=a99_0x13dc();return a99_0x2c97=function(_0x2c976e,_0x5943b8){_0x2c976e=_0x2c976e-0xd6;let _0x1bda52=_0x13dced[_0x2c976e];return _0x1bda52;},a99_0x2c97(_0x49c47c,_0x17565f);}const {aiSdkWrapper}=require(a99_0x2520ad(0xf1)),{commandRepository}=require(a99_0x2520ad(0x107)),PerformanceTester=require(a99_0x2520ad(0x143)),globals=require(a99_0x2520ad(0xed)),logger=require(a99_0x2520ad(0x129))[a99_0x2520ad(0xef)],helper=require('./helper'),constants=require(a99_0x2520ad(0x10a)),{DRIVER_EVENT:PerformanceDriverEvents}=require(a99_0x2520ad(0xf3));exports[a99_0x2520ad(0x137)]=(_0x36703a,_0x49befd)=>{const _0x485320=a99_0x2520ad,_0x106332={'MHXSr':'aiHeal_isAuthenticated','dWmZR':_0x485320(0xe7),'hbUSP':function(_0x55cc6b){return _0x55cc6b();},'JQhHD':_0x485320(0x110),'vEVrO':function(_0x3dfd9d,_0xe446f5){return _0x3dfd9d===_0xe446f5;},'GheMw':'findElement','cadHz':_0x485320(0x11c),'snPtl':_0x485320(0x136),'ncILI':_0x485320(0xf6),'TQUtv':function(_0x4ed54c,_0x3f18f8){return _0x4ed54c===_0x3f18f8;},'KgDEG':_0x485320(0xd9),'BHJfd':_0x485320(0x140),'yJgZf':'css\x20selector','TWSXO':function(_0x541cbc,_0x96b47f){return _0x541cbc+_0x96b47f;},'MCVIy':function(_0x2ff7dd,_0x4ebb3c){return _0x2ff7dd+_0x4ebb3c;},'vKdFt':'findElement\x20command\x20failed\x20with\x20cssPath:\x20','ZDPxC':';\x20Trying\x20to\x20heal','vDxXx':function(_0x156f96,_0x562d0e){return _0x156f96+_0x562d0e;},'xhHvw':function(_0x698b90,_0x5b3fbc){return _0x698b90+_0x5b3fbc;},'TYwdy':_0x485320(0x13c),'VPHMo':_0x485320(0xf8),'rgPFA':function(_0x514976,_0x51774b){return _0x514976&&_0x51774b;},'DpjBD':_0x485320(0x144),'PUxRE':_0x485320(0x145),'pOIoe':'Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','xlFiR':_0x485320(0x12e),'zZjgZ':function(_0x3d89b9,_0x2f8194){return _0x3d89b9===_0x2f8194;},'XoYwI':'get','ygrIZ':_0x485320(0x138),'NOTZZ':_0x485320(0x121),'XyvZw':_0x485320(0x102),'fqScO':_0x485320(0xfb),'vcWSM':_0x485320(0xdc),'BjCof':_0x485320(0x11d),'gdONt':_0x485320(0x117)},_0x392bc0=_0x36703a[_0x485320(0x14d)]||(helper[_0x485320(0x14e)](_0x49befd,[_0x106332[_0x485320(0x113)],_0x106332[_0x485320(0xfe)]])||helper[_0x485320(0x14e)](_0x49befd,[_0x106332[_0x485320(0x113)],_0x106332[_0x485320(0xfa)],_0x106332[_0x485320(0x135)]]));if(!globals[_0x485320(0xdb)](_0x106332[_0x485320(0x10f)])&&!globals[_0x485320(0xdb)](_0x106332['cadHz'])&&_0x392bc0)return;_0x36703a[_0x485320(0x14d)]=!![],_0x36703a[_0x485320(0xeb)]=_0x36703a[_0x485320(0x11f)],_0x36703a[_0x485320(0x11f)]=async _0x357406=>{const _0x22338e=_0x485320,_0x160218={'ahFih':_0x106332[_0x22338e(0x11a)],'XGosW':function(_0x2adec8,_0x2d1ad9){const _0x15af18=_0x22338e;return _0x106332[_0x15af18(0x108)](_0x2adec8,_0x2d1ad9);},'fHOQy':_0x106332['GheMw'],'OAJoc':_0x106332[_0x22338e(0x10f)],'unLWW':_0x106332[_0x22338e(0xd6)],'StyEk':_0x106332['snPtl'],'cyxWY':function(_0x406aa7){const _0x250b78=_0x22338e;return _0x106332[_0x250b78(0x148)](_0x406aa7);},'PAJLz':_0x106332['ncILI'],'ueZMF':function(_0x1dc572,_0x4e00f5){const _0x165f7d=_0x22338e;return _0x106332[_0x165f7d(0xec)](_0x1dc572,_0x4e00f5);},'ohDTb':_0x106332[_0x22338e(0x14a)],'CYAUX':_0x106332[_0x22338e(0x14c)],'WLQbD':function(_0x322bc1,_0x3fc231){const _0x12b49b=_0x22338e;return _0x106332[_0x12b49b(0xec)](_0x322bc1,_0x3fc231);},'puPBy':_0x106332[_0x22338e(0x13a)],'rlcuh':function(_0x22a870,_0x386c1f){const _0x285ae1=_0x22338e;return _0x106332[_0x285ae1(0x12b)](_0x22a870,_0x386c1f);},'gSUei':function(_0x24d7a8,_0x388fad){const _0x38eb77=_0x22338e;return _0x106332[_0x38eb77(0x149)](_0x24d7a8,_0x388fad);},'cRAMm':_0x106332['vKdFt'],'Qnmxa':_0x106332[_0x22338e(0x10b)],'MvasM':function(_0x4f09ff,_0x56ddb9){const _0x27cea9=_0x22338e;return _0x106332[_0x27cea9(0x12b)](_0x4f09ff,_0x56ddb9);},'lAExb':function(_0x365493,_0x163e60){return _0x106332['vDxXx'](_0x365493,_0x163e60);},'sNSYR':function(_0x23d3ee,_0x58fa00){return _0x106332['xhHvw'](_0x23d3ee,_0x58fa00);},'HLNpu':_0x106332[_0x22338e(0xde)],'LiufB':_0x106332['VPHMo'],'MUmop':function(_0x2bbfa4,_0x5adc0a){const _0x1c3ad4=_0x22338e;return _0x106332[_0x1c3ad4(0x109)](_0x2bbfa4,_0x5adc0a);},'iFNdI':function(_0x34f240,_0x2eea6e){return _0x106332['xhHvw'](_0x34f240,_0x2eea6e);},'otZZP':_0x106332[_0x22338e(0x12f)],'hWTMz':function(_0x317d1d,_0x3ae244){const _0x3d085f=_0x22338e;return _0x106332[_0x3d085f(0x149)](_0x317d1d,_0x3ae244);},'zOfSm':_0x106332['PUxRE'],'hKWDw':function(_0x2dbc71,_0x198090){const _0x2d18f6=_0x22338e;return _0x106332[_0x2d18f6(0x118)](_0x2dbc71,_0x198090);},'HMJHq':_0x106332['pOIoe'],'VuaYm':function(_0x4871bb,_0xbcf06f){return _0x106332['xhHvw'](_0x4871bb,_0xbcf06f);},'UKRyd':_0x106332[_0x22338e(0x114)],'gWDcp':function(_0x2ba2f4,_0x22edf0){const _0x3879ad=_0x22338e;return _0x106332[_0x3879ad(0x130)](_0x2ba2f4,_0x22edf0);},'cBuDy':_0x106332[_0x22338e(0x132)],'eIcve':_0x106332[_0x22338e(0xfc)],'mfCrk':_0x106332['NOTZZ'],'vlxbs':_0x106332['XyvZw']};try{const _0x2e54e1={};_0x2e54e1[_0x22338e(0x11b)]=_0x357406[_0x22338e(0xf2)],await PerformanceTester['measureWrapper'](PerformanceDriverEvents[_0x22338e(0xf9)],async()=>{const _0x282d9c=_0x22338e,_0xdc9c4={};_0xdc9c4['tXPsU']=_0x106332[_0x282d9c(0x10f)];const _0x1e384e=_0xdc9c4;if(!commandRepository['getTcgTokenStatus']()&&globals[_0x282d9c(0xdb)](_0x106332[_0x282d9c(0x10f)])){const _0x3f68f4=PerformanceTester[_0x282d9c(0x142)](_0x106332[_0x282d9c(0xe5)],async()=>{const _0xdb08b8=_0x282d9c;try{commandRepository[_0xdb08b8(0x151)](!![]),await aiSdkWrapper[_0xdb08b8(0xfd)]((await _0x36703a[_0xdb08b8(0xdf)]())[_0xdb08b8(0x126)]());const _0x2aa23b=globals[_0xdb08b8(0xdb)](_0x1e384e['tXPsU']);_0x2aa23b&&commandRepository[_0xdb08b8(0xd7)]((await _0x36703a[_0xdb08b8(0xdf)]())[_0xdb08b8(0x126)]());}catch(_0x99d68e){logger[_0xdb08b8(0x119)](_0xdb08b8(0x150)+_0x99d68e);}});await _0x106332[_0x282d9c(0x148)](_0x3f68f4);}},_0x2e54e1)();const _0x36fe8e=await _0x36703a[_0x22338e(0xeb)](_0x357406);return await PerformanceTester[_0x22338e(0x142)](PerformanceDriverEvents[_0x22338e(0x122)],async()=>{const _0x2fc913=_0x22338e;if(!helper['isBrowserstackInfra']()&&(commandRepository[_0x2fc913(0x116)]()||globals[_0x2fc913(0xdb)](_0x160218[_0x2fc913(0x100)]))&&_0x160218[_0x2fc913(0x112)](_0x357406[_0x2fc913(0xf2)],_0x160218[_0x2fc913(0x14b)])&&!_0x357406['skipHealingSuccess']&&globals['getGlobal'](_0x160218[_0x2fc913(0xf0)])&&globals['getGlobal'](_0x160218['unLWW'])){const _0x511058=new Date(),_0x30cac1=PerformanceTester[_0x2fc913(0x142)](_0x160218[_0x2fc913(0x13b)],async()=>{const _0x35b165=_0x2fc913;return await aiSdkWrapper[_0x35b165(0xe8)](_0x49befd,_0x36703a,_0x357406);});await _0x160218[_0x2fc913(0x125)](_0x30cac1);}},{'command':_0x357406[_0x22338e(0xf2)]})(),_0x36fe8e;}catch(_0x4f25c4){await PerformanceTester[_0x22338e(0x142)](PerformanceDriverEvents['POST_EXECUTE'],async()=>{const _0x3b6056=_0x22338e;logger[_0x3b6056(0x111)](_0x160218[_0x3b6056(0xe2)]);try{if(!helper['isBrowserstackInfra']()&&(_0x160218[_0x3b6056(0xea)](_0x4f25c4[_0x3b6056(0xe6)],_0x160218[_0x3b6056(0x131)])||_0x160218[_0x3b6056(0x112)](_0x4f25c4[_0x3b6056(0xe6)],_0x160218['CYAUX']))&&_0x160218['WLQbD'](_0x357406[_0x3b6056(0xf2)],_0x160218['fHOQy'])&&commandRepository[_0x3b6056(0x116)]()&&globals['getGlobal'](_0x160218['OAJoc'])&&globals['getGlobal'](_0x160218[_0x3b6056(0x141)])){_0x160218[_0x3b6056(0xea)](_0x357406['parameters_'][_0x3b6056(0x14f)],_0x160218[_0x3b6056(0xee)])?logger[_0x3b6056(0xda)](_0x160218[_0x3b6056(0xe3)](_0x160218[_0x3b6056(0x13e)](_0x160218['cRAMm'],_0x357406[_0x3b6056(0x138)][_0x3b6056(0x11e)]),_0x160218['Qnmxa'])):logger['info'](_0x160218[_0x3b6056(0xe4)](_0x160218[_0x3b6056(0x133)](_0x160218[_0x3b6056(0xe4)](_0x160218[_0x3b6056(0x134)](_0x160218[_0x3b6056(0x105)],_0x357406[_0x3b6056(0x138)][_0x3b6056(0x14f)]),':\x20'),_0x357406[_0x3b6056(0x138)][_0x3b6056(0x11e)]),_0x160218['Qnmxa']));const _0x132dbf=PerformanceTester[_0x3b6056(0x142)](_0x160218[_0x3b6056(0xe1)],async()=>{const _0x1dfafc=_0x3b6056;return await aiSdkWrapper[_0x1dfafc(0x12d)](_0x49befd,_0x36703a,_0x357406);}),_0x4fb81a=new Date(),{locatorType:_0xf0d5e4,locatorValue:_0x110735,commandHealed:_0x99e4b8}=await _0x160218[_0x3b6056(0x125)](_0x132dbf);if(_0x160218[_0x3b6056(0x120)](_0xf0d5e4,_0x110735)){_0x357406[_0x3b6056(0x138)][_0x3b6056(0x14f)]=_0xf0d5e4,_0x357406[_0x3b6056(0x138)][_0x3b6056(0x11e)]=_0x110735,_0x357406[_0x3b6056(0xf7)]=!![];const _0x1c8182=_0x36703a[_0x3b6056(0x11f)](_0x357406);return _0x160218[_0x3b6056(0x112)](_0xf0d5e4,_0x160218[_0x3b6056(0xee)])?logger[_0x3b6056(0xda)](_0x160218[_0x3b6056(0x123)](_0x160218[_0x3b6056(0xdd)],_0x110735)):logger[_0x3b6056(0xda)](_0x160218[_0x3b6056(0xd8)](_0x160218[_0x3b6056(0x134)](_0x160218[_0x3b6056(0x134)](_0x160218['zOfSm'],_0xf0d5e4),':\x20'),_0x110735)),_0x1c8182;}else!_0x99e4b8&&(_0x160218[_0x3b6056(0xea)](_0xf0d5e4,_0x160218[_0x3b6056(0xee)])?logger[_0x3b6056(0xda)](_0x160218[_0x3b6056(0x10e)](_0x160218[_0x3b6056(0x12c)],_0x357406[_0x3b6056(0x138)][_0x3b6056(0x11e)])):logger[_0x3b6056(0xda)](_0x160218[_0x3b6056(0x104)](_0x160218['gSUei'](_0x160218[_0x3b6056(0x123)](_0x160218[_0x3b6056(0x13d)],_0x357406['parameters_'][_0x3b6056(0x14f)]),':\x20'),_0x357406['parameters_'][_0x3b6056(0x11e)])));}!_0x392bc0&&_0x160218[_0x3b6056(0x101)](_0x357406[_0x3b6056(0xf2)],_0x160218['cBuDy'])&&helper[_0x3b6056(0x14e)](_0x357406,[_0x160218[_0x3b6056(0x128)],_0x160218[_0x3b6056(0x13f)]])&&!!constants[_0x3b6056(0x106)][_0x3b6056(0xf4)](_0x4bc36a=>{const _0x2ab23f=_0x3b6056;return _0x4f25c4[_0x2ab23f(0x103)]()['includes'](_0x4bc36a);})&&helper[_0x3b6056(0xf5)](_0x357406[_0x3b6056(0x138)]['url'],!![]);}catch(_0x544a5a){logger[_0x3b6056(0x111)](_0x160218[_0x3b6056(0x124)],_0x544a5a);}},{'success':![],'failure':_0x4f25c4})();throw _0x4f25c4;}};};
|
|
1
|
+
function a99_0x34ec(){const _0x2627b9=['ESmoF','5055FiiIVy','BtgAl','using','name_','./globals','findElement','parameters_','info','WWPzz','getSession','NJNvX','VZpwL','css\x20selector','YGncO','lLEdN','command','ZzjvJ','218iKwhBI','MRhdK','execute','./performance/performance-tester','ugGdK','rZbAr','handleFailure','aiHeal:findElementSuccess','kXBMI','JSaEp','63490180NfUooW','setAiSessionTimeStamp','xWYKb','Hwdmj','aiHeal_isAuthenticated','XlqPw','measureWrapper','aiHeal:setToken','10001772wgoYlv','sIixh','11qVOGZb','POST_EXECUTE','Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','WGFLi','Healing\x20failed\x20for\x20command\x20using\x20','handleSuccess','find','error','1216255jtNLEy','xVUBJ','isSelfHealEnabled','NoSuchElementError','Hbkke','ISTdo','GyRgc','Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','iSzLP','getGlobal','getTcgTokenStatus','initExecute','findElement\x20command\x20failed\x20with\x20','capability','GrSwX','getId','findElement\x20command\x20failed\x20with\x20cssPath:\x20','jCgdn','winstonLogger','Successfully\x20healed\x20command\x20using\x20new\x20','7cYiAVD','axOyE','CGfCI','value','kdWjG','olmbu','649770aQLowJ','qxmey','oudhK','LYODo','aiHeal_isHealingEnabled','setTcgToken','name','./ai-sdk/aiSdkWrapper','overrideExecute','browserstack.local','XfNMN','ptNFk','Laubh','nestedKeyValue','toString','4VUXscl','PRE_EXECUTE','KmwPd','./ai-sdk/autoHealHelper','jfwqY','6272615IpeklH','eLRvV','patchExecute','url','Error\x20in\x20handling\x20TCG\x20Auth:\x20','tqkEm','aiSdk_defaultLogDataEnabled',';\x20Trying\x20to\x20heal','local','12028192cwvKAv','includes'];a99_0x34ec=function(){return _0x2627b9;};return a99_0x34ec();}const a99_0x20e1f3=a99_0x4cf7;(function(_0x1c3868,_0xe3ad8){const _0x4ea4eb=a99_0x4cf7,_0x5a342b=_0x1c3868();while(!![]){try{const _0x350ab6=-parseInt(_0x4ea4eb(0x107))/0x1+parseInt(_0x4ea4eb(0xeb))/0x2*(-parseInt(_0x4ea4eb(0xda))/0x3)+parseInt(_0x4ea4eb(0x130))/0x4*(-parseInt(_0x4ea4eb(0x135))/0x5)+-parseInt(_0x4ea4eb(0x121))/0x6+parseInt(_0x4ea4eb(0x11b))/0x7*(-parseInt(_0x4ea4eb(0xd7))/0x8)+-parseInt(_0x4ea4eb(0xfd))/0x9+-parseInt(_0x4ea4eb(0xf5))/0xa*(-parseInt(_0x4ea4eb(0xff))/0xb);if(_0x350ab6===_0xe3ad8)break;else _0x5a342b['push'](_0x5a342b['shift']());}catch(_0x422f7a){_0x5a342b['push'](_0x5a342b['shift']());}}}(a99_0x34ec,0xed2b8));const {aiSdkWrapper}=require(a99_0x20e1f3(0x128)),{commandRepository}=require(a99_0x20e1f3(0x133)),PerformanceTester=require(a99_0x20e1f3(0xee)),globals=require(a99_0x20e1f3(0xde)),logger=require('./logger')[a99_0x20e1f3(0x119)],helper=require('./helper'),constants=require('../bin/utils/constants'),{DRIVER_EVENT:PerformanceDriverEvents}=require('./performance/constants');function a99_0x4cf7(_0x80619,_0x3425b4){const _0x34ec49=a99_0x34ec();return a99_0x4cf7=function(_0x4cf7b9,_0x46964f){_0x4cf7b9=_0x4cf7b9-0xd3;let _0x1ef4a1=_0x34ec49[_0x4cf7b9];return _0x1ef4a1;},a99_0x4cf7(_0x80619,_0x3425b4);}exports[a99_0x20e1f3(0x129)]=(_0x916424,_0x54570a)=>{const _0x48a340=a99_0x20e1f3,_0x5e0576={'FdtwQ':'Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','JSaEp':function(_0x1c5a5d,_0x10cbe1){return _0x1c5a5d===_0x10cbe1;},'dgCOx':_0x48a340(0x10a),'wDRre':'JavascriptError','WGFLi':function(_0x36888f,_0x197dc1){return _0x36888f===_0x197dc1;},'eLRvV':_0x48a340(0xdf),'WWPzz':_0x48a340(0xf9),'XfNMN':_0x48a340(0x125),'YGncO':function(_0x525f13,_0x39be54){return _0x525f13===_0x39be54;},'ZzjvJ':_0x48a340(0xe6),'KmwPd':function(_0x46239b,_0x400872){return _0x46239b+_0x400872;},'VDhxE':_0x48a340(0x117),'NJNvX':_0x48a340(0xd5),'xWYKb':function(_0x40f6d5,_0x333551){return _0x40f6d5+_0x333551;},'GrSwX':function(_0x552fdc,_0x2ad0c2){return _0x552fdc+_0x2ad0c2;},'GyRgc':_0x48a340(0x113),'ESmoF':'aiHeal:findElementFailure','olmbu':function(_0x57fd1e){return _0x57fd1e();},'VZpwL':function(_0x21e403,_0x3603d3){return _0x21e403&&_0x3603d3;},'IwQfE':'Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','CGfCI':function(_0x16852a,_0x3d62b5){return _0x16852a+_0x3d62b5;},'NbBgK':_0x48a340(0x11a),'axOyE':_0x48a340(0x10e),'LYODo':function(_0x273a28,_0xfcac06){return _0x273a28+_0xfcac06;},'kdWjG':_0x48a340(0x103),'XlqPw':'get','jCgdn':'parameters_','rZbAr':_0x48a340(0x138),'BtgAl':_0x48a340(0x101),'Laubh':_0x48a340(0xfc),'ptNFk':_0x48a340(0xd4),'GKiPI':function(_0x2481b2,_0xe06723){return _0x2481b2===_0xe06723;},'oudhK':_0x48a340(0xf2),'iSzLP':function(_0xd360fa){return _0xd360fa();},'qxmey':_0x48a340(0x114),'xVUBJ':_0x48a340(0x12a),'MRhdK':'bstack:options','kXBMI':_0x48a340(0xd6)},_0x4c434f=_0x916424[_0x48a340(0x137)]||(helper['nestedKeyValue'](_0x54570a,[_0x5e0576['qxmey'],_0x5e0576[_0x48a340(0x108)]])||helper['nestedKeyValue'](_0x54570a,[_0x5e0576[_0x48a340(0x122)],_0x5e0576[_0x48a340(0xec)],_0x5e0576[_0x48a340(0xf3)]]));if(!globals[_0x48a340(0x110)](_0x5e0576[_0x48a340(0xe2)])&&!globals[_0x48a340(0x110)](_0x5e0576[_0x48a340(0x12b)])&&_0x4c434f)return;_0x916424['patchExecute']=!![],_0x916424[_0x48a340(0x112)]=_0x916424[_0x48a340(0xed)],_0x916424[_0x48a340(0xed)]=async _0x188229=>{const _0x451e0f=_0x48a340,_0x58b256={'ugGdK':_0x5e0576[_0x451e0f(0xe2)],'tqkEm':_0x5e0576[_0x451e0f(0x12d)],'Hbkke':function(_0x308a58){const _0x3a9de4=_0x451e0f;return _0x5e0576[_0x3a9de4(0x120)](_0x308a58);},'BXWdy':_0x5e0576[_0x451e0f(0x12c)],'lLEdN':function(_0x432f07,_0x5aa2a1){return _0x5e0576['GKiPI'](_0x432f07,_0x5aa2a1);},'ISTdo':_0x5e0576[_0x451e0f(0x136)],'sIixh':_0x5e0576[_0x451e0f(0x12b)],'DtbCn':_0x5e0576[_0x451e0f(0x123)],'Hwdmj':function(_0x240b56){const _0x4fe152=_0x451e0f;return _0x5e0576[_0x4fe152(0x10f)](_0x240b56);}};try{const _0x4f67ca={};_0x4f67ca[_0x451e0f(0xe9)]=_0x188229[_0x451e0f(0xdd)],await PerformanceTester[_0x451e0f(0xfb)](PerformanceDriverEvents[_0x451e0f(0x131)],async()=>{const _0xce6446=_0x451e0f,_0x1d24e5={};_0x1d24e5[_0xce6446(0x134)]=_0x58b256[_0xce6446(0xef)];const _0x108870=_0x1d24e5;if(!commandRepository[_0xce6446(0x111)]()&&globals[_0xce6446(0x110)](_0x58b256['ugGdK'])){const _0x3dc603=PerformanceTester['measureWrapper'](_0x58b256[_0xce6446(0xd3)],async()=>{const _0x14c994=_0xce6446;try{commandRepository['setTcgTokenStatus'](!![]),await aiSdkWrapper[_0x14c994(0x126)]((await _0x916424['getSession']())[_0x14c994(0x116)]());const _0x3b0506=globals['getGlobal'](_0x108870[_0x14c994(0x134)]);_0x3b0506&&commandRepository[_0x14c994(0xf6)]((await _0x916424[_0x14c994(0xe3)]())[_0x14c994(0x116)]());}catch(_0x3e631f){logger[_0x14c994(0x106)](_0x14c994(0x139)+_0x3e631f);}});await _0x58b256[_0xce6446(0x10b)](_0x3dc603);}},_0x4f67ca)();const _0x4d20cf=await _0x916424[_0x451e0f(0x112)](_0x188229);return await PerformanceTester[_0x451e0f(0xfb)](PerformanceDriverEvents[_0x451e0f(0x100)],async()=>{const _0x423fe0=_0x451e0f;if(!helper['isBrowserstackInfra']()&&(commandRepository[_0x423fe0(0x109)]()||globals[_0x423fe0(0x110)](_0x58b256['BXWdy']))&&_0x58b256[_0x423fe0(0xe8)](_0x188229[_0x423fe0(0xdd)],_0x58b256[_0x423fe0(0x10c)])&&!_0x188229['skipHealingSuccess']&&globals[_0x423fe0(0x110)](_0x58b256[_0x423fe0(0xef)])&&globals[_0x423fe0(0x110)](_0x58b256[_0x423fe0(0xfe)])){const _0x2ad17d=new Date(),_0x541d85=PerformanceTester[_0x423fe0(0xfb)](_0x58b256['DtbCn'],async()=>{const _0x13a234=_0x423fe0;return await aiSdkWrapper[_0x13a234(0x104)](_0x54570a,_0x916424,_0x188229);});await _0x58b256[_0x423fe0(0xf8)](_0x541d85);}},{'command':_0x188229[_0x451e0f(0xdd)]})(),_0x4d20cf;}catch(_0x2a0fff){await PerformanceTester[_0x451e0f(0xfb)](PerformanceDriverEvents['POST_EXECUTE'],async()=>{const _0x27ab5a=_0x451e0f;logger['debug'](_0x5e0576['FdtwQ']);try{if(!helper['isBrowserstackInfra']()&&(_0x5e0576['JSaEp'](_0x2a0fff[_0x27ab5a(0x127)],_0x5e0576['dgCOx'])||_0x5e0576[_0x27ab5a(0xf4)](_0x2a0fff[_0x27ab5a(0x127)],_0x5e0576['wDRre']))&&_0x5e0576[_0x27ab5a(0x102)](_0x188229[_0x27ab5a(0xdd)],_0x5e0576[_0x27ab5a(0x136)])&&commandRepository[_0x27ab5a(0x109)]()&&globals[_0x27ab5a(0x110)](_0x5e0576[_0x27ab5a(0xe2)])&&globals[_0x27ab5a(0x110)](_0x5e0576[_0x27ab5a(0x12b)])){_0x5e0576[_0x27ab5a(0xe7)](_0x188229[_0x27ab5a(0xe0)]['using'],_0x5e0576[_0x27ab5a(0xea)])?logger[_0x27ab5a(0xe1)](_0x5e0576[_0x27ab5a(0x132)](_0x5e0576[_0x27ab5a(0x132)](_0x5e0576['VDhxE'],_0x188229[_0x27ab5a(0xe0)][_0x27ab5a(0x11e)]),_0x5e0576[_0x27ab5a(0xe4)])):logger[_0x27ab5a(0xe1)](_0x5e0576[_0x27ab5a(0x132)](_0x5e0576['xWYKb'](_0x5e0576[_0x27ab5a(0x132)](_0x5e0576['GrSwX'](_0x5e0576[_0x27ab5a(0x10d)],_0x188229[_0x27ab5a(0xe0)][_0x27ab5a(0xdc)]),':\x20'),_0x188229[_0x27ab5a(0xe0)][_0x27ab5a(0x11e)]),_0x5e0576[_0x27ab5a(0xe4)]));const _0x1de057=PerformanceTester['measureWrapper'](_0x5e0576[_0x27ab5a(0xd9)],async()=>{const _0x23706f=_0x27ab5a;return await aiSdkWrapper[_0x23706f(0xf1)](_0x54570a,_0x916424,_0x188229);}),_0x1f2f68=new Date(),{locatorType:_0x50570a,locatorValue:_0x5c3d78,commandHealed:_0x23c6ea}=await _0x5e0576[_0x27ab5a(0x120)](_0x1de057);if(_0x5e0576[_0x27ab5a(0xe5)](_0x50570a,_0x5c3d78)){_0x188229[_0x27ab5a(0xe0)][_0x27ab5a(0xdc)]=_0x50570a,_0x188229[_0x27ab5a(0xe0)]['value']=_0x5c3d78,_0x188229['skipHealingSuccess']=!![];const _0x4be965=_0x916424[_0x27ab5a(0xed)](_0x188229);return _0x5e0576[_0x27ab5a(0x102)](_0x50570a,_0x5e0576[_0x27ab5a(0xea)])?logger[_0x27ab5a(0xe1)](_0x5e0576[_0x27ab5a(0xf7)](_0x5e0576['IwQfE'],_0x5c3d78)):logger[_0x27ab5a(0xe1)](_0x5e0576['CGfCI'](_0x5e0576['CGfCI'](_0x5e0576[_0x27ab5a(0x115)](_0x5e0576['NbBgK'],_0x50570a),':\x20'),_0x5c3d78)),_0x4be965;}else!_0x23c6ea&&(_0x5e0576[_0x27ab5a(0x102)](_0x50570a,_0x5e0576[_0x27ab5a(0xea)])?logger[_0x27ab5a(0xe1)](_0x5e0576[_0x27ab5a(0x115)](_0x5e0576[_0x27ab5a(0x11c)],_0x188229['parameters_'][_0x27ab5a(0x11e)])):logger[_0x27ab5a(0xe1)](_0x5e0576[_0x27ab5a(0x11d)](_0x5e0576[_0x27ab5a(0x11d)](_0x5e0576[_0x27ab5a(0x124)](_0x5e0576[_0x27ab5a(0x11f)],_0x188229[_0x27ab5a(0xe0)][_0x27ab5a(0xdc)]),':\x20'),_0x188229[_0x27ab5a(0xe0)][_0x27ab5a(0x11e)])));}!_0x4c434f&&_0x5e0576[_0x27ab5a(0xe7)](_0x188229[_0x27ab5a(0xdd)],_0x5e0576[_0x27ab5a(0xfa)])&&helper[_0x27ab5a(0x12e)](_0x188229,[_0x5e0576[_0x27ab5a(0x118)],_0x5e0576[_0x27ab5a(0xf0)]])&&!!constants['NUDGE_LOCAL_ERRORS'][_0x27ab5a(0x105)](_0x53d520=>{const _0x373ed1=_0x27ab5a;return _0x2a0fff[_0x373ed1(0x12f)]()[_0x373ed1(0xd8)](_0x53d520);})&&helper['getNudgeLocalNotSetError'](_0x188229['parameters_'][_0x27ab5a(0x138)],!![]);}catch(_0x444600){logger['debug'](_0x5e0576[_0x27ab5a(0xdb)],_0x444600);}},{'success':![],'failure':_0x2a0fff})();throw _0x2a0fff;}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a100_0x1d7664=a100_0x3103;(function(_0x56267f,_0x1fa3b3){const _0x45950e=a100_0x3103,_0x18b810=_0x56267f();while(!![]){try{const _0x54d3ec=-parseInt(_0x45950e(0xef))/0x1+parseInt(_0x45950e(0xd1))/0x2*(parseInt(_0x45950e(0xe1))/0x3)+-parseInt(_0x45950e(0xd9))/0x4*(parseInt(_0x45950e(0xe3))/0x5)+-parseInt(_0x45950e(0xe4))/0x6+-parseInt(_0x45950e(0xda))/0x7+-parseInt(_0x45950e(0xe2))/0x8+parseInt(_0x45950e(0xeb))/0x9;if(_0x54d3ec===_0x1fa3b3)break;else _0x18b810['push'](_0x18b810['shift']());}catch(_0x1b4a09){_0x18b810['push'](_0x18b810['shift']());}}}(a100_0x8e01,0xe0b76));function a100_0x3103(_0x31921a,_0xbf97d0){const _0x8e01e5=a100_0x8e01();return a100_0x3103=function(_0x310380,_0x37ba3a){_0x310380=_0x310380-0xd1;let _0x37d24d=_0x8e01e5[_0x310380];return _0x37d24d;},a100_0x3103(_0x31921a,_0xbf97d0);}const PerformanceTester=require(a100_0x1d7664(0xd4)),O11yEvents=require(a100_0x1d7664(0xde))[a100_0x1d7664(0xe7)];function a100_0x8e01(){const _0xe2259c=['true','22166946fXIcvI','wtZHF','emit','kLcFT','197743ZIuLgX','overrideQuit','TAKE_SCREENSHOT','xKGYy','TEST_SCREENSHOT','kqbOA','229492lzqRml','cEtFn','dbDON','./performance/performance-tester','catch','quitCount_','quit','initQuit','1464FfLWoy','3766189EAXcxK','toISOString','env','initScreenshot','./performance/constants','bs:addLog:','patchQuit','6IcfaNa','2249768eEvwAr','5685ZWYubI','2033490FEGWpO','end','EDTgA','O11y_EVENTS','takeScreenshot','jcQSc'];a100_0x8e01=function(){return _0xe2259c;};return a100_0x8e01();}exports['overrideTakeScreenshot']=_0x93ecf=>{const _0x489f17=a100_0x1d7664,_0x683c0f={'wtZHF':_0x489f17(0xf3),'kqikb':function(_0xb08bd1,_0x3d9b21){return _0xb08bd1(_0x3d9b21);},'tujSM':function(_0x32ac99,_0xa438e9){return _0x32ac99(_0xa438e9);},'dbDON':function(_0x57f8a0,_0x59093c){return _0x57f8a0!==_0x59093c;},'kqbOA':_0x489f17(0xea)};if(_0x683c0f[_0x489f17(0xd3)](process[_0x489f17(0xdc)]['BS_TESTOPS_ALLOW_SCREENSHOTS'],_0x683c0f[_0x489f17(0xf4)]))return;if(_0x93ecf['patchScreenshot'])return;_0x93ecf['patchScreenshot']=!![],_0x93ecf[_0x489f17(0xdd)]=_0x93ecf[_0x489f17(0xe8)],_0x93ecf[_0x489f17(0xe8)]=()=>{const _0x5daedf=_0x489f17,_0x341deb={'lQDsk':_0x683c0f[_0x5daedf(0xec)],'kLcFT':function(_0x26f4d,_0x258ea4){return _0x683c0f['kqikb'](_0x26f4d,_0x258ea4);},'cEtFn':function(_0x307871,_0x3662d1){return _0x683c0f['tujSM'](_0x307871,_0x3662d1);}};return new Promise(function(_0x4c278a,_0x43d606){const _0x101f84=_0x5daedf;_0x93ecf[_0x101f84(0xdd)]()['then'](_0x5d21ac=>{const _0x140606=_0x101f84;PerformanceTester['start'](O11yEvents[_0x140606(0xf1)]),process[_0x140606(0xed)](_0x140606(0xdf)+process['pid'],{'timestamp':new Date()[_0x140606(0xdb)](),'message':_0x5d21ac,'kind':_0x341deb['lQDsk']}),_0x341deb[_0x140606(0xee)](_0x4c278a,_0x5d21ac),PerformanceTester[_0x140606(0xe5)](O11yEvents['TAKE_SCREENSHOT']);})[_0x101f84(0xd5)](_0x238a7a=>{const _0x3199af=_0x101f84;PerformanceTester[_0x3199af(0xe5)](O11yEvents[_0x3199af(0xf1)]),_0x341deb[_0x3199af(0xd2)](_0x43d606,_0x238a7a);});});};},exports[a100_0x1d7664(0xf0)]=(_0x54c74e,_0x1a088d=null)=>{const _0x32c95f=a100_0x1d7664,_0x50b259={'xKGYy':function(_0x36c6dc){return _0x36c6dc();},'TrFoz':function(_0x1b1235,_0x2d03ef){return _0x1b1235>_0x2d03ef;},'jcQSc':function(_0xcfdb6c,_0x461afa){return _0xcfdb6c>_0x461afa;}};if(_0x54c74e[_0x32c95f(0xe0)])return;_0x54c74e[_0x32c95f(0xe0)]=!![],_0x54c74e[_0x32c95f(0xd8)]=_0x54c74e[_0x32c95f(0xd7)],_0x54c74e['quit']=()=>{const _0x4cd362=_0x32c95f,_0x372725={'EDTgA':function(_0xaa6923){const _0x126f60=a100_0x3103;return _0x50b259[_0x126f60(0xf2)](_0xaa6923);}};if(_0x1a088d){_0x1a088d[_0x4cd362(0xd6)]+=0x1;if(_0x50b259['TrFoz'](_0x1a088d[_0x4cd362(0xd6)],0x1))return _0x54c74e['initQuit']();}else{_0x54c74e[_0x4cd362(0xd6)]+=0x1;if(_0x50b259[_0x4cd362(0xe9)](_0x54c74e[_0x4cd362(0xd6)],0x1))return _0x54c74e['initQuit']();}return new Promise(function(_0x42d126){const _0x3c57e2=_0x4cd362;_0x372725[_0x3c57e2(0xe6)](_0x42d126);});};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a101_0x63409e=a101_0x4646;function a101_0x32fc(){const _0x93452=['7764417CIRCov','stringify','../logger','isProcessRunning','flags','start','wMWFP','error','1197712vFtTDZ','createPercyConfig','42PUvhCQ','percy.json','data','token','app','Percy\x20config\x20created\x20at\x20','pipe','stderr','DOWNLOAD','./PercyBinary','PkzHB','join','version','app:exec','Error\x20creating\x20percy\x20config:\x20','QsBst','path','QLJOe','fetchPercyToken','nodeRequest','wcVYK','606024pccnHQ','isRunning','exec','GkaAA','writeFile','maAYI','ENV_VAR','child_process','percy/healthcheck','1013592ksguNE','debug','env','GET','stop','evHtz','Binvg','vqqdp','DVRSA','createWriteStream','close','kHZlh','2380970nGTKnu','stdout','&type=','4aTWyHZ','winstonLogger','536402HxCUyz','xtRoI','BROWSERSTACK_TESTHUB_UUID','Percy\x20fetch\x20token\x20success','healthcheck','2471148DIocvY','eudGz','hiHkt','api/app_percy/get_project_token?name=','exec:stop','percy.log','PERCY_SERVER_ADDRESS','../helper','getBinaryPath','end','../../helpers/testhub/constants','../../helpers/performance/constants'];a101_0x32fc=function(){return _0x93452;};return a101_0x32fc();}(function(_0x2f54dd,_0x39e5f1){const _0x2edde2=a101_0x4646,_0x22adbf=_0x2f54dd();while(!![]){try{const _0x488f78=-parseInt(_0x2edde2(0xfe))/0x1+-parseInt(_0x2edde2(0x117))/0x2+parseInt(_0x2edde2(0xed))/0x3+-parseInt(_0x2edde2(0xfc))/0x4*(-parseInt(_0x2edde2(0xf9))/0x5)+parseInt(_0x2edde2(0x103))/0x6+parseInt(_0x2edde2(0xcf))/0x7*(-parseInt(_0x2edde2(0xe4))/0x8)+parseInt(_0x2edde2(0x10f))/0x9;if(_0x488f78===_0x39e5f1)break;else _0x22adbf['push'](_0x22adbf['shift']());}catch(_0x5bcf98){_0x22adbf['push'](_0x22adbf['shift']());}}}(a101_0x32fc,0x79ca5));const fs=require('fs'),path=require(a101_0x63409e(0xdf)),os=require('os'),{spawn}=require(a101_0x63409e(0xeb)),helper=require(a101_0x63409e(0x10a)),logger=require(a101_0x63409e(0x111))[a101_0x63409e(0xfd)],{getLogDir}=require(a101_0x63409e(0x111)),testHubConstants=require(a101_0x63409e(0x10d)),PerformanceTester=require('../../helpers/performance/performance-tester'),{PERCY_EVENTS:PerformanceEvents}=require(a101_0x63409e(0x10e)),PercyBinary=require(a101_0x63409e(0xd8));class Percy{#logfile=path[a101_0x63409e(0xda)](getLogDir(),a101_0x63409e(0x108));#address=process['env'][a101_0x63409e(0x109)]||'http://localhost:5338';#binaryPath=null;#config=null;#proc=null;#isApp=![];[a101_0x63409e(0x112)]=![];constructor(_0xdc29fd){const _0x4760ca=a101_0x63409e;this.#config=_0xdc29fd,!!_0xdc29fd[_0x4760ca(0xd3)]&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x480c46=a101_0x63409e;if(!this.#binaryPath){const _0x551a21=new PercyBinary();PerformanceTester[_0x480c46(0x114)](PerformanceEvents[_0x480c46(0xd7)]),this.#binaryPath=await _0x551a21[_0x480c46(0x10b)](this.#config),PerformanceTester[_0x480c46(0x10c)](PerformanceEvents[_0x480c46(0xd7)]);}return this.#binaryPath;}async #sleep(_0x1766c4){return new Promise(_0x5219ea=>setTimeout(_0x5219ea,_0x1766c4));}async['healthcheck'](){const _0x4830a7=a101_0x63409e,_0x5dcba8={};_0x5dcba8[_0x4830a7(0xf5)]=_0x4830a7(0xf0),_0x5dcba8[_0x4830a7(0xd9)]=_0x4830a7(0xec);const _0x15bfad=_0x5dcba8;try{const _0x522241=await helper['nodeRequest'](_0x15bfad[_0x4830a7(0xf5)],_0x15bfad[_0x4830a7(0xd9)],null,null,this.#address);if(_0x522241)return!![];}catch(_0x5561de){return![];}}async[a101_0x63409e(0x114)](){const _0x1c6f0a=a101_0x63409e,_0xad7676={'dkbYd':_0x1c6f0a(0xdc),'QLJOe':_0x1c6f0a(0xe6),'cmCUy':function(_0x760e5,_0x5f2a35,_0x3eadb1,_0x21698d){return _0x760e5(_0x5f2a35,_0x3eadb1,_0x21698d);},'GkaAA':_0x1c6f0a(0xf7),'vqqdp':'Percy\x20healthcheck\x20successful'},_0x4d3afb=await this.#getBinaryPath(),_0x451e74={};_0x451e74[_0x1c6f0a(0x113)]='a';const _0x5a2b0c=fs[_0x1c6f0a(0xf6)](this.#logfile,_0x451e74),_0x5dc03f=await this['fetchPercyToken'](),_0x5f30ac=await this[_0x1c6f0a(0x118)]();if(!_0x5dc03f)return![];const _0x155c60=[(this.#isApp?_0xad7676['dkbYd']:_0xad7676[_0x1c6f0a(0xe0)])+':start'];_0x5f30ac&&_0x155c60['push']('-c',_0x5f30ac);this.#proc=_0xad7676['cmCUy'](spawn,_0x4d3afb,_0x155c60,{'env':Object['assign'](process[_0x1c6f0a(0xef)],{'PERCY_TOKEN':_0x5dc03f,'TH_BUILD_UUID':process[_0x1c6f0a(0xef)][testHubConstants[_0x1c6f0a(0xea)][_0x1c6f0a(0x100)]]})}),this.#proc[_0x1c6f0a(0xfa)][_0x1c6f0a(0xd5)](_0x5a2b0c),this.#proc[_0x1c6f0a(0xd6)][_0x1c6f0a(0xd5)](_0x5a2b0c),this['isProcessRunning']=!![];var _0x4900a1=this;this.#proc['on'](_0xad7676[_0x1c6f0a(0xe7)],function(_0x50d67b){const _0x312847=_0x1c6f0a;_0x4900a1[_0x312847(0x112)]=![];});do{const _0x11ffa2=await this[_0x1c6f0a(0x102)]();if(_0x11ffa2)return logger[_0x1c6f0a(0xee)](_0xad7676[_0x1c6f0a(0xf4)]),!![];await this.#sleep(0x3e8);}while(this[_0x1c6f0a(0x112)]);return![];}async[a101_0x63409e(0xf1)](){const _0x3a5bc1=a101_0x63409e,_0xe0fd6d={'evHtz':function(_0x537dd1,_0x4f7881){return _0x537dd1(_0x4f7881);},'maAYI':function(_0x1f5b01,_0x3b46d7,_0x4e0bf6){return _0x1f5b01(_0x3b46d7,_0x4e0bf6);},'wcVYK':_0x3a5bc1(0x107),'QsBst':_0x3a5bc1(0xf7)},_0x5ac8bb=await this.#getBinaryPath();return new Promise((_0x5eddff,_0xe55f4a)=>{const _0x54ce3f=_0x3a5bc1,_0x2b9263={'IzaED':function(_0x2626c8,_0x98fbc0){const _0x1b1426=a101_0x4646;return _0xe0fd6d[_0x1b1426(0xf2)](_0x2626c8,_0x98fbc0);}},_0x2e689e=_0xe0fd6d[_0x54ce3f(0xe9)](spawn,_0x5ac8bb,[_0xe0fd6d[_0x54ce3f(0xe3)]]);_0x2e689e['on'](_0xe0fd6d[_0x54ce3f(0xde)],_0x463d28=>{const _0x50b862=_0x54ce3f;this[_0x50b862(0x112)]=![],_0x2b9263['IzaED'](_0x5eddff,_0x463d28);});});}[a101_0x63409e(0xe5)](){const _0x3c27b8=a101_0x63409e;return this[_0x3c27b8(0x112)];}async[a101_0x63409e(0xe1)](){const _0x1b5f7f=a101_0x63409e,_0xb69598={};_0xb69598[_0x1b5f7f(0xff)]=_0x1b5f7f(0xd3),_0xb69598[_0x1b5f7f(0xf3)]='automate',_0xb69598[_0x1b5f7f(0x104)]='GET',_0xb69598[_0x1b5f7f(0x115)]=_0x1b5f7f(0x101);const _0x2dd8f9=_0xb69598,_0x25c3ec=this.#config['projectName'];try{const _0x154425=this.#isApp?_0x2dd8f9[_0x1b5f7f(0xff)]:_0x2dd8f9[_0x1b5f7f(0xf3)],_0x7e9a87=await helper[_0x1b5f7f(0xe2)](_0x2dd8f9[_0x1b5f7f(0x104)],_0x1b5f7f(0x106)+_0x25c3ec+_0x1b5f7f(0xfb)+_0x154425,{},this.#config),_0x253fa9=_0x7e9a87[_0x1b5f7f(0xd1)];return logger['debug'](_0x2dd8f9[_0x1b5f7f(0x115)]),_0x253fa9[_0x1b5f7f(0xd2)];}catch(_0x5e9591){return logger[_0x1b5f7f(0x116)]('Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20'+_0x5e9591),null;}}async[a101_0x63409e(0x118)](){const _0xdba5ba=a101_0x63409e,_0x5722f8={'mLGrO':function(_0x363712,_0xf7609a){return _0x363712(_0xf7609a);},'hiHkt':function(_0x1d3516,_0x6bfd25){return _0x1d3516+_0x6bfd25;},'gGUiw':_0xdba5ba(0xd4),'kHZlh':function(_0x220a66,_0xc88f3a){return _0x220a66(_0xc88f3a);},'MdUJw':_0xdba5ba(0xd0)};if(!this.#config['percyOptions'])return null;const _0x59974b=path[_0xdba5ba(0xda)](os['tmpdir'](),_0x5722f8['MdUJw']),_0x1c6a6a=this.#config['percyOptions'];return!_0x1c6a6a[_0xdba5ba(0xdb)]&&(_0x1c6a6a[_0xdba5ba(0xdb)]='2'),new Promise((_0x1dc4a8,_0x1b93df)=>{const _0x22b38e=_0xdba5ba;fs[_0x22b38e(0xe8)](_0x59974b,JSON[_0x22b38e(0x110)](_0x1c6a6a),_0x4393b1=>{const _0x9985c4=_0x22b38e;_0x4393b1&&(logger[_0x9985c4(0x116)](_0x9985c4(0xdd)+_0x4393b1),_0x5722f8['mLGrO'](_0x1dc4a8,null)),logger[_0x9985c4(0xee)](_0x5722f8[_0x9985c4(0x105)](_0x5722f8['gGUiw'],_0x59974b)),_0x5722f8[_0x9985c4(0xf8)](_0x1dc4a8,_0x59974b);});});}}function a101_0x4646(_0x4f8db6,_0x230cc1){const _0x32fceb=a101_0x32fc();return a101_0x4646=function(_0x464696,_0x51e69d){_0x464696=_0x464696-0xcf;let _0xc7bf7b=_0x32fceb[_0x464696];return _0xc7bf7b;},a101_0x4646(_0x4f8db6,_0x230cc1);}module['exports']=Percy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a102_0x4937bf=a102_0x3dd5;(function(_0x3d9ee9,_0x5efdd9){const _0x539946=a102_0x3dd5,_0x4cc930=_0x3d9ee9();while(!![]){try{const _0x2c5238=-parseInt(_0x539946(0x25b))/0x1*(-parseInt(_0x539946(0x1ff))/0x2)+parseInt(_0x539946(0x277))/0x3*(-parseInt(_0x539946(0x251))/0x4)+-parseInt(_0x539946(0x24a))/0x5*(parseInt(_0x539946(0x20a))/0x6)+parseInt(_0x539946(0x1f8))/0x7*(-parseInt(_0x539946(0x23e))/0x8)+parseInt(_0x539946(0x24e))/0x9*(-parseInt(_0x539946(0x20f))/0xa)+-parseInt(_0x539946(0x271))/0xb*(-parseInt(_0x539946(0x264))/0xc)+parseInt(_0x539946(0x215))/0xd;if(_0x2c5238===_0x5efdd9)break;else _0x4cc930['push'](_0x4cc930['shift']());}catch(_0x5f4c29){_0x4cc930['push'](_0x4cc930['shift']());}}}(a102_0x38e3,0x37a99));const {https}=require(a102_0x4937bf(0x236)),url=require('url'),yauzl=require(a102_0x4937bf(0x1e1)),fs=require('fs'),path=require(a102_0x4937bf(0x24f)),os=require('os'),{spawn}=require(a102_0x4937bf(0x242)),HttpsProxyAgent=require(a102_0x4937bf(0x269)),logger=require(a102_0x4937bf(0x210))[a102_0x4937bf(0x229)];class PercyBinary{#hostOS=process[a102_0x4937bf(0x20c)];#httpPath=null;#binaryName=a102_0x4937bf(0x222);#orderedPaths=[path[a102_0x4937bf(0x234)](this.#homedir(),a102_0x4937bf(0x1f9)),process['cwd'](),os[a102_0x4937bf(0x250)]()];constructor(){const _0x4361cc=a102_0x4937bf,_0xf47c46={};_0xf47c46[_0x4361cc(0x1e8)]=_0x4361cc(0x22e),_0xf47c46[_0x4361cc(0x237)]=function(_0x497148,_0x107c46){return _0x497148+_0x107c46;},_0xf47c46[_0x4361cc(0x235)]=_0x4361cc(0x24b),_0xf47c46[_0x4361cc(0x279)]=_0x4361cc(0x262),_0xf47c46[_0x4361cc(0x27a)]=_0x4361cc(0x27e),_0xf47c46[_0x4361cc(0x239)]=function(_0x2fbc11,_0x1f429c){return _0x2fbc11+_0x1f429c;},_0xf47c46[_0x4361cc(0x23c)]=_0x4361cc(0x207);const _0x4066c9=_0xf47c46,_0x553d87=_0x4066c9['EoCBr'];if(this.#hostOS[_0x4361cc(0x227)](/darwin|mac os/i))this.#httpPath=_0x4066c9['LijHa'](_0x553d87,_0x4066c9[_0x4361cc(0x235)]);else this.#hostOS[_0x4361cc(0x227)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x4066c9['LijHa'](_0x553d87,_0x4066c9[_0x4361cc(0x279)]),this.#binaryName=_0x4066c9['Icrco']):this.#httpPath=_0x4066c9['WrgeA'](_0x553d87,_0x4066c9['wdrXX']);}#getAvailableDirs(){const _0x3d1400=a102_0x4937bf,_0xf1f2b2={};_0xf1f2b2[_0x3d1400(0x1e5)]=function(_0x577f5b,_0x2bf053){return _0x577f5b<_0x2bf053;},_0xf1f2b2[_0x3d1400(0x26c)]=_0x3d1400(0x233);const _0x11a84f=_0xf1f2b2;for(var _0x398139=0x0;_0x11a84f['BfxBj'](_0x398139,this.#orderedPaths[_0x3d1400(0x25c)]);_0x398139++){var _0x14aedc=this.#orderedPaths[_0x398139];if(this.#makePath(_0x14aedc))return _0x14aedc;}throw new Error(_0x11a84f[_0x3d1400(0x26c)]);}#makePath(_0x1a6bbe){try{return _0x1a6bbe&&!this.#checkPath(_0x1a6bbe)&&fs['mkdirSync'](_0x1a6bbe),!![];}catch{return![];}}#checkPath(_0x5882b0,_0x3c0886){const _0x82c97b=a102_0x4937bf,_0x4c8102={};_0x4c8102[_0x82c97b(0x21c)]=function(_0x3e22d1,_0x4ef4f5){return _0x3e22d1|_0x4ef4f5;},_0x4c8102[_0x82c97b(0x258)]=function(_0x51d804,_0x2cd6b6){return _0x51d804!==_0x2cd6b6;},_0x4c8102['aGSCX']=_0x82c97b(0x273);const _0x5a07b=_0x4c8102;_0x3c0886=_0x3c0886||_0x5a07b[_0x82c97b(0x21c)](fs[_0x82c97b(0x22a)],fs['W_OK']);try{return fs[_0x82c97b(0x1eb)](_0x5882b0,_0x3c0886),!![];}catch(_0x4d2fa5){if(_0x5a07b[_0x82c97b(0x258)](typeof fs['accessSync'],_0x5a07b[_0x82c97b(0x228)]))return![];try{return fs[_0x82c97b(0x1e7)](_0x5882b0),!![];}catch(_0x53ed0c){return![];}}}#getETagPath(_0xef8d30){const _0x34ad78=a102_0x4937bf;return path[_0x34ad78(0x234)](_0xef8d30,this.#binaryName+_0x34ad78(0x21b));}#loadETag(_0x94e18e){const _0x160989=a102_0x4937bf,_0x59c709={};_0x59c709[_0x160989(0x21a)]=_0x160989(0x27f);const _0x3f9fcb=_0x59c709,_0x34fda2=this.#getETagPath(_0x94e18e);if(this.#checkPath(_0x34fda2))try{return fs[_0x160989(0x204)](_0x34fda2,_0x3f9fcb['qapqY'])[_0x160989(0x256)]();}catch(_0x760de9){logger[_0x160989(0x1fa)]('Failed\x20to\x20read\x20ETag\x20file:\x20'+_0x760de9);}return null;}#saveETag(_0x3039b0,_0x189eac){const _0x17865e=a102_0x4937bf,_0x2fcbd7={};_0x2fcbd7[_0x17865e(0x1fc)]=_0x17865e(0x24c);const _0x23a74a=_0x2fcbd7;if(!_0x189eac)return;try{const _0x4bb2d3=this.#getETagPath(_0x3039b0);fs[_0x17865e(0x21d)](_0x4bb2d3,_0x189eac),logger[_0x17865e(0x1df)](_0x23a74a[_0x17865e(0x1fc)]);}catch(_0x5ae2bb){logger[_0x17865e(0x1fa)](_0x17865e(0x261)+_0x5ae2bb);}}async #handleBinaryDownload(_0x45b721,_0x5251f4,_0x26d2c2){const _0x5630eb=a102_0x4937bf,_0x428d51={};_0x428d51['BhFot']=_0x5630eb(0x1e6);const _0x295bb6=_0x428d51,_0x3694b8=await this[_0x5630eb(0x253)](_0x45b721[_0x5630eb(0x248)]);if(!_0x3694b8){logger[_0x5630eb(0x22c)](_0x295bb6[_0x5630eb(0x22d)]);const _0x3811f7=await this[_0x5630eb(0x1f4)](_0x5251f4,_0x26d2c2);return _0x3811f7[_0x5630eb(0x248)];}return _0x45b721[_0x5630eb(0x248)];}async[a102_0x4937bf(0x1fe)](_0x3b2bc4){const _0x1ddfc4=a102_0x4937bf,_0xb8679a={};_0xb8679a[_0x1ddfc4(0x231)]=_0x1ddfc4(0x260),_0xb8679a[_0x1ddfc4(0x259)]=_0x1ddfc4(0x216);const _0x1727f7=_0xb8679a,_0x4a1864=this.#getAvailableDirs(),_0x451d8f=path[_0x1ddfc4(0x234)](_0x4a1864,this.#binaryName);if(this.#checkPath(_0x451d8f,fs[_0x1ddfc4(0x20d)])){const _0xf652bf=this.#loadETag(_0x4a1864);if(_0xf652bf)try{const _0x1b9ab4=await this['download'](_0x3b2bc4,_0x4a1864,_0xf652bf);if(!_0x1b9ab4[_0x1ddfc4(0x280)])return logger['debug'](_0x1727f7['ySymd']),_0x451d8f;return logger[_0x1ddfc4(0x1df)](_0x1727f7['urpfu']),await this.#handleBinaryDownload(_0x1b9ab4,_0x3b2bc4,_0x4a1864);}catch(_0xa81154){return logger[_0x1ddfc4(0x1fa)]('Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20'+_0xa81154),_0x451d8f;}}const _0x3efe76=await this[_0x1ddfc4(0x1f4)](_0x3b2bc4,_0x4a1864);return await this.#handleBinaryDownload(_0x3efe76,_0x3b2bc4,_0x4a1864);}['download'](_0x45651c,_0x3da513,_0x53fe5f=null){const _0x229492=a102_0x4937bf,_0x16e59b={'CoLuO':function(_0x4ab85b,_0x71e23c){return _0x4ab85b(_0x71e23c);},'boXCx':function(_0x5e8ab0,_0x45cf1d){return _0x5e8ab0(_0x45cf1d);},'VcuNX':function(_0x3700a4,_0x2a15d5){return _0x3700a4===_0x2a15d5;},'jRaUq':_0x229492(0x22c),'Ylnax':_0x229492(0x1ee),'SGZym':function(_0x5390db,_0x5e9e44){return _0x5390db+_0x5e9e44;},'ANkZK':_0x229492(0x203)};_0x3da513&&!this.#checkPath(_0x3da513)&&fs['mkdirSync'](_0x3da513);const _0x46dc02=this.#binaryName,_0x3a27d9=path['join'](_0x3da513,_0x16e59b[_0x229492(0x1e9)](_0x46dc02,_0x16e59b[_0x229492(0x245)])),_0x5dcee5=fs[_0x229492(0x270)](_0x3a27d9),_0x3bdc90=url[_0x229492(0x206)](this.#httpPath);if(_0x45651c['proxyHost']&&_0x45651c[_0x229492(0x275)]){const _0x126a85={};_0x126a85[_0x229492(0x1ed)]=_0x45651c[_0x229492(0x27b)],_0x126a85[_0x229492(0x238)]=_0x45651c[_0x229492(0x275)],_0x3bdc90[_0x229492(0x249)]=new HttpsProxyAgent(_0x126a85);}if(_0x45651c[_0x229492(0x1dc)])try{_0x3bdc90['ca']=fs[_0x229492(0x204)](_0x45651c[_0x229492(0x1dc)]);}catch(_0xc1786b){logger['error'](_0x229492(0x1e0)+_0xc1786b);}if(_0x53fe5f){const _0x14aa59={};_0x14aa59[_0x229492(0x263)]=_0x53fe5f,_0x3bdc90[_0x229492(0x274)]=_0x14aa59;}return new Promise((_0x46f4bc,_0x538489)=>{const _0x56782f=_0x229492,_0x35077d={'VIUjC':function(_0x384ce3,_0x2dd096){const _0x3900ee=a102_0x3dd5;return _0x16e59b[_0x3900ee(0x272)](_0x384ce3,_0x2dd096);},'roBco':function(_0x180a4a,_0x261c87){const _0x769283=a102_0x3dd5;return _0x16e59b[_0x769283(0x22b)](_0x180a4a,_0x261c87);},'XwBEr':function(_0x1464b8,_0xbf44c3){const _0x575d50=a102_0x3dd5;return _0x16e59b[_0x575d50(0x1e4)](_0x1464b8,_0xbf44c3);},'afpqL':_0x16e59b['jRaUq'],'OWBZf':_0x16e59b[_0x56782f(0x247)]};https['get'](_0x3bdc90,_0xa44414=>{const _0x470e33=_0x56782f,_0x41da75={'HGdew':function(_0xc56756,_0x5d9a63){const _0x3fa6bd=a102_0x3dd5;return _0x35077d[_0x3fa6bd(0x26e)](_0xc56756,_0x5d9a63);}};if(_0x53fe5f&&_0x35077d[_0x470e33(0x254)](_0xa44414[_0x470e33(0x1e3)],0x130)){const _0x3ba9b3={};_0x3ba9b3[_0x470e33(0x280)]=![],_0x35077d[_0x470e33(0x26e)](_0x46f4bc,_0x3ba9b3);return;}const _0x36f824=_0xa44414['headers']['etag'];_0x36f824&&this.#saveETag(_0x3da513,_0x36f824),_0xa44414[_0x470e33(0x240)](_0x5dcee5),_0xa44414['on'](_0x35077d[_0x470e33(0x268)],function(_0x1e32ad){const _0x4bbd44=_0x470e33;logger[_0x4bbd44(0x22c)](_0x4bbd44(0x252)+_0x1e32ad),_0x41da75[_0x4bbd44(0x1ea)](_0x538489,_0x1e32ad);}),_0x5dcee5['on'](_0x35077d[_0x470e33(0x268)],function(_0x868b83){const _0x15be79=_0x470e33;logger['error'](_0x15be79(0x23f)+_0x868b83),_0x35077d['VIUjC'](_0x538489,_0x868b83);}),_0x5dcee5['on'](_0x35077d['OWBZf'],()=>{const _0x562ce8=_0x470e33;this[_0x562ce8(0x25d)](_0x3a27d9,_0x3da513)[_0x562ce8(0x214)](_0xe08ed=>_0x46f4bc({'needsUpdate':!![],'binaryPath':_0xe08ed}))[_0x562ce8(0x1f2)](_0x538489);});})['on'](_0x16e59b[_0x56782f(0x226)],function(_0x38b1dd){const _0x86caf8=_0x56782f;logger['error'](_0x86caf8(0x1dd)+_0x38b1dd),_0x35077d['roBco'](_0x538489,_0x38b1dd);});});}['extractAndSaveBinary'](_0x2bc1d4,_0x2bc5fb){const _0x2df250=a102_0x4937bf,_0x7a44a8={'yvhwb':function(_0x5ce9e2,_0x548999){return _0x5ce9e2(_0x548999);},'bPeci':_0x2df250(0x200),'INZXY':_0x2df250(0x1fb),'ydHuF':function(_0x2ee3ff,_0xa259c6){return _0x2ee3ff===_0xa259c6;},'nhgAS':_0x2df250(0x26f),'NdNkB':_0x2df250(0x22c)},_0x12b980=this.#binaryName,_0x5ab394=path['join'](_0x2bc5fb,_0x12b980);return new Promise((_0x21ff42,_0x2e6ea7)=>{const _0x2aa846=_0x2df250,_0x120b7a={'LcIKj':function(_0x109e9f,_0xff5f7e){const _0x477240=a102_0x3dd5;return _0x7a44a8[_0x477240(0x265)](_0x109e9f,_0xff5f7e);},'itLmE':_0x7a44a8[_0x2aa846(0x1de)],'XQfJo':function(_0x1f8a14,_0x2892eb){const _0x5ac46e=_0x2aa846;return _0x7a44a8[_0x5ac46e(0x265)](_0x1f8a14,_0x2892eb);},'xtLOv':_0x7a44a8[_0x2aa846(0x266)],'SSbXx':function(_0x64b17d,_0x2e1c5b){return _0x7a44a8['ydHuF'](_0x64b17d,_0x2e1c5b);},'Pczsz':function(_0x51e6c,_0x120752){return _0x7a44a8['yvhwb'](_0x51e6c,_0x120752);},'sxuJX':_0x7a44a8[_0x2aa846(0x21e)],'wNfPf':_0x7a44a8['NdNkB']},_0x717f94={};_0x717f94['lazyEntries']=!![],yauzl[_0x2aa846(0x25a)](_0x2bc1d4,_0x717f94,function(_0x153409,_0x3d079f){const _0x8201ad=_0x2aa846,_0x34efe9={'wdxeQ':function(_0x515c68,_0x44a2a2){const _0x58303f=a102_0x3dd5;return _0x120b7a[_0x58303f(0x278)](_0x515c68,_0x44a2a2);},'OvVyw':_0x120b7a['xtLOv'],'KcRfW':function(_0x2b6229,_0x37aec7){const _0x1b1fb9=a102_0x3dd5;return _0x120b7a[_0x1b1fb9(0x22f)](_0x2b6229,_0x37aec7);},'ffRRU':function(_0x449323,_0x1919ce){const _0x358f1c=a102_0x3dd5;return _0x120b7a[_0x358f1c(0x23a)](_0x449323,_0x1919ce);}};_0x153409&&_0x120b7a[_0x8201ad(0x27c)](_0x2e6ea7,_0x153409),_0x3d079f['readEntry'](),_0x3d079f['on'](_0x120b7a[_0x8201ad(0x208)],_0x2a55cd=>{const _0x4bb9bb=_0x8201ad;if(/\/$/[_0x4bb9bb(0x213)](_0x2a55cd['fileName']))_0x3d079f[_0x4bb9bb(0x217)]();else{const _0x2c481a=fs['createWriteStream'](path[_0x4bb9bb(0x234)](_0x2bc5fb,_0x2a55cd[_0x4bb9bb(0x221)]));_0x3d079f[_0x4bb9bb(0x219)](_0x2a55cd,function(_0x326077,_0x2df381){const _0x9a8437=_0x4bb9bb;_0x326077&&_0x34efe9[_0x9a8437(0x1ef)](_0x2e6ea7,_0x153409),_0x2df381['on'](_0x34efe9[_0x9a8437(0x241)],function(){const _0x476900=_0x9a8437;_0x2c481a[_0x476900(0x1ee)](),_0x3d079f[_0x476900(0x217)]();}),_0x2df381[_0x9a8437(0x240)](_0x2c481a);}),_0x34efe9[_0x4bb9bb(0x1f6)](_0x2a55cd['fileName'],_0x12b980)&&_0x3d079f[_0x4bb9bb(0x1ee)]();}}),_0x3d079f['on'](_0x120b7a['wNfPf'],_0x34c954=>{const _0x14a568=_0x8201ad;_0x34efe9[_0x14a568(0x23b)](_0x2e6ea7,_0x34c954);}),_0x3d079f[_0x8201ad(0x201)](_0x120b7a[_0x8201ad(0x267)],()=>{const _0x19cf91=_0x8201ad,_0x580962={'LlqOc':function(_0x4bb86c,_0x39aa68){return _0x120b7a['LcIKj'](_0x4bb86c,_0x39aa68);}};fs['chmod'](_0x5ab394,_0x120b7a[_0x19cf91(0x230)],function(_0x56261a){const _0x19efe5=_0x19cf91;_0x56261a&&_0x580962[_0x19efe5(0x20e)](_0x2e6ea7,_0x56261a),_0x580962[_0x19efe5(0x20e)](_0x21ff42,_0x5ab394);}),_0x3d079f['close']();});});});}async[a102_0x4937bf(0x253)](_0x2b8647){const _0x318a59=a102_0x4937bf,_0x1d2b02={'BaRzJ':function(_0x2502c6,_0x44855a){return _0x2502c6(_0x44855a);},'ZdzAu':function(_0x33e97a,_0x31f4d5,_0x3bf3e7,_0x6ee137){return _0x33e97a(_0x31f4d5,_0x3bf3e7,_0x6ee137);},'MnNTH':_0x318a59(0x26b),'IGlGW':_0x318a59(0x24d),'stZXx':_0x318a59(0x1ee)},_0x3ea973=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x221e26,_0x1c3802)=>{const _0x236224=_0x318a59,_0x23caf8={};_0x23caf8['env']=process['env'];const _0x4616d6=_0x1d2b02[_0x236224(0x202)](spawn,_0x2b8647,[_0x1d2b02[_0x236224(0x209)]],_0x23caf8);_0x4616d6[_0x236224(0x232)]['on'](_0x1d2b02['IGlGW'],_0x27841a=>{const _0x5897c8=_0x236224;_0x3ea973[_0x5897c8(0x213)](_0x27841a)&&_0x1d2b02[_0x5897c8(0x25f)](_0x221e26,!![]);}),_0x4616d6['on'](_0x1d2b02[_0x236224(0x21f)],()=>{const _0x5d2f96=_0x236224;_0x1d2b02[_0x5d2f96(0x25f)](_0x221e26,![]);});});}#homedir(){const _0x2e598b=a102_0x4937bf,_0xae53f0={};_0xae53f0[_0x2e598b(0x1f5)]=function(_0xeab4de,_0x4f8ff7){return _0xeab4de===_0x4f8ff7;},_0xae53f0['TSwFJ']=_0x2e598b(0x225),_0xae53f0[_0x2e598b(0x25e)]=function(_0x3613d9,_0x4301a9){return _0x3613d9===_0x4301a9;},_0xae53f0['qYBjI']='win32',_0xae53f0[_0x2e598b(0x1fd)]=function(_0x335343,_0x422b81){return _0x335343+_0x422b81;},_0xae53f0[_0x2e598b(0x1e2)]=function(_0x2185e1,_0x2ad081){return _0x2185e1===_0x2ad081;},_0xae53f0[_0x2e598b(0x223)]='darwin',_0xae53f0[_0x2e598b(0x243)]=function(_0x4df4b6,_0x354826){return _0x4df4b6+_0x354826;},_0xae53f0['vrtkv']=_0x2e598b(0x23d),_0xae53f0[_0x2e598b(0x1f1)]=function(_0x43dfec,_0x302474){return _0x43dfec===_0x302474;},_0xae53f0[_0x2e598b(0x211)]=_0x2e598b(0x1ec),_0xae53f0[_0x2e598b(0x212)]=function(_0x3ff07e,_0x458859){return _0x3ff07e===_0x458859;},_0xae53f0[_0x2e598b(0x276)]='/root',_0xae53f0['Bruzy']=function(_0x3b2588,_0x3f292f){return _0x3b2588+_0x3f292f;},_0xae53f0['EAZzm']=_0x2e598b(0x1f0),_0xae53f0[_0x2e598b(0x26d)]=function(_0x1140cb,_0x4e4644){return _0x1140cb||_0x4e4644;};const _0x27b074=_0xae53f0;if(_0x27b074['zNKcL'](typeof os['homedir'],_0x27b074[_0x2e598b(0x224)]))return os['homedir']();const _0x1e3a0a=process[_0x2e598b(0x26a)],_0xe0d507=_0x1e3a0a[_0x2e598b(0x1f7)],_0x26da6f=_0x1e3a0a[_0x2e598b(0x257)]||_0x1e3a0a['USER']||_0x1e3a0a[_0x2e598b(0x255)]||_0x1e3a0a['USERNAME'];if(_0x27b074[_0x2e598b(0x25e)](process[_0x2e598b(0x20c)],_0x27b074[_0x2e598b(0x246)]))return _0x1e3a0a[_0x2e598b(0x218)]||_0x27b074[_0x2e598b(0x1fd)](_0x1e3a0a[_0x2e598b(0x220)],_0x1e3a0a[_0x2e598b(0x20b)])||_0xe0d507||null;if(_0x27b074[_0x2e598b(0x1e2)](process['platform'],_0x27b074[_0x2e598b(0x223)]))return _0xe0d507||(_0x26da6f?_0x27b074['EjMiI'](_0x27b074['vrtkv'],_0x26da6f):null);if(_0x27b074['VuVgI'](process[_0x2e598b(0x20c)],_0x27b074[_0x2e598b(0x211)]))return _0xe0d507||(_0x27b074[_0x2e598b(0x212)](process[_0x2e598b(0x205)](),0x0)?_0x27b074['KQYbI']:_0x26da6f?_0x27b074[_0x2e598b(0x27d)](_0x27b074[_0x2e598b(0x244)],_0x26da6f):null);return _0x27b074[_0x2e598b(0x26d)](_0xe0d507,null);}}function a102_0x38e3(){const _0x5a1909=['statusCode','VcuNX','BfxBj','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','statSync','EoCBr','SGZym','HGdew','accessSync','linux','host','close','wdxeQ','/home/','VuVgI','catch','exports','download','zNKcL','KcRfW','HOME','196iaDrvd','.browserstack','warn','end','YTrnU','PnSgK','getBinaryPath','2apKEMb','0755','once','ZdzAu','.zip','readFileSync','getuid','parse','/percy-linux.zip','sxuJX','MnNTH','23892EVIfma','HOMEPATH','platform','X_OK','LlqOc','370PUFUUC','../logger','BklqL','lquYb','test','then','573495JuHJnO','New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','readEntry','USERPROFILE','openReadStream','qapqY','.etag','ZvlFI','writeFileSync','nhgAS','stZXx','HOMEDRIVE','fileName','percy','ljhQG','TSwFJ','function','jRaUq','match','aGSCX','winstonLogger','R_OK','boXCx','error','BhFot','https://github.com/percy/cli/releases/latest/download','SSbXx','itLmE','ySymd','stdout','Error\x20trying\x20to\x20download\x20percy\x20binary','join','ymrGy','follow-redirects','LijHa','port','WrgeA','Pczsz','ffRRU','wdrXX','/Users/','1456JxFDhH','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20','pipe','OvVyw','child_process','EjMiI','EAZzm','ANkZK','qYBjI','Ylnax','binaryPath','agent','5kEdFHs','/percy-osx.zip','Saved\x20new\x20ETag\x20for\x20percy\x20binary','data','17244VVBHIC','path','tmpdir','4DluOIP','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','validateBinary','XwBEr','LNAME','trim','LOGNAME','fjjDf','urpfu','open','296146wcLuit','length','extractAndSaveBinary','iqXLj','BaRzJ','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)','Failed\x20to\x20save\x20ETag\x20file:\x20','/percy-win.zip','If-None-Match','25404XoaIjO','yvhwb','INZXY','xtLOv','afpqL','https-proxy-agent','env','--version','HtLau','lNIeA','roBco','entry','createWriteStream','1595SLPulQ','CoLuO','undefined','headers','proxyPort','KQYbI','1017789XhyJfs','XQfJo','yqpWB','Icrco','proxyHost','LcIKj','Bruzy','percy.exe','utf8','needsUpdate','useCaCertificate','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20','bPeci','debug','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20','yauzl','mkwqy'];a102_0x38e3=function(){return _0x5a1909;};return a102_0x38e3();}function a102_0x3dd5(_0x17dc5c,_0x11b346){const _0x38e313=a102_0x38e3();return a102_0x3dd5=function(_0x3dd5c,_0x1dc92e){_0x3dd5c=_0x3dd5c-0x1dc;let _0x489b42=_0x38e313[_0x3dd5c];return _0x489b42;},a102_0x3dd5(_0x17dc5c,_0x11b346);}module[a102_0x4937bf(0x1f3)]=PercyBinary;
|
|
1
|
+
const a102_0x4f7346=a102_0x5bc2;(function(_0x2fd02b,_0x5eaab7){const _0x197154=a102_0x5bc2,_0x2d2e8c=_0x2fd02b();while(!![]){try{const _0x21a9c5=parseInt(_0x197154(0x1b4))/0x1*(parseInt(_0x197154(0x1d9))/0x2)+parseInt(_0x197154(0x194))/0x3+-parseInt(_0x197154(0x1d5))/0x4+parseInt(_0x197154(0x1f9))/0x5*(parseInt(_0x197154(0x1b3))/0x6)+-parseInt(_0x197154(0x190))/0x7+parseInt(_0x197154(0x1b1))/0x8*(-parseInt(_0x197154(0x202))/0x9)+-parseInt(_0x197154(0x174))/0xa*(-parseInt(_0x197154(0x1c0))/0xb);if(_0x21a9c5===_0x5eaab7)break;else _0x2d2e8c['push'](_0x2d2e8c['shift']());}catch(_0x273791){_0x2d2e8c['push'](_0x2d2e8c['shift']());}}}(a102_0x7901,0x5f2cf));const {https}=require('follow-redirects'),url=require('url'),yauzl=require(a102_0x4f7346(0x1bd)),fs=require('fs'),path=require(a102_0x4f7346(0x1ab)),os=require('os'),{spawn}=require(a102_0x4f7346(0x178)),HttpsProxyAgent=require(a102_0x4f7346(0x16e)),logger=require(a102_0x4f7346(0x1fc))[a102_0x4f7346(0x1b6)];function a102_0x5bc2(_0x424ce1,_0x33885c){const _0x79017b=a102_0x7901();return a102_0x5bc2=function(_0x5bc222,_0x20163a){_0x5bc222=_0x5bc222-0x165;let _0x3c95de=_0x79017b[_0x5bc222];return _0x3c95de;},a102_0x5bc2(_0x424ce1,_0x33885c);}class PercyBinary{#hostOS=process['platform'];#httpPath=null;#binaryName=a102_0x4f7346(0x1bc);#orderedPaths=[path[a102_0x4f7346(0x200)](this.#homedir(),a102_0x4f7346(0x187)),process[a102_0x4f7346(0x16f)](),os[a102_0x4f7346(0x1e9)]()];constructor(){const _0x45baa5=a102_0x4f7346,_0x178e15={};_0x178e15['CeZck']=_0x45baa5(0x19e),_0x178e15[_0x45baa5(0x1a6)]=function(_0x529d79,_0x150b47){return _0x529d79+_0x150b47;},_0x178e15[_0x45baa5(0x1e8)]=_0x45baa5(0x1e1),_0x178e15[_0x45baa5(0x19a)]=_0x45baa5(0x1f3),_0x178e15[_0x45baa5(0x1ae)]=_0x45baa5(0x1fa),_0x178e15[_0x45baa5(0x205)]=function(_0x174bad,_0x15a2d8){return _0x174bad+_0x15a2d8;},_0x178e15[_0x45baa5(0x168)]='/percy-linux.zip';const _0x1d07f=_0x178e15,_0x172037=_0x1d07f[_0x45baa5(0x172)];if(this.#hostOS['match'](/darwin|mac os/i))this.#httpPath=_0x1d07f['yBsKg'](_0x172037,_0x1d07f[_0x45baa5(0x1e8)]);else this.#hostOS[_0x45baa5(0x1b0)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x1d07f[_0x45baa5(0x1a6)](_0x172037,_0x1d07f[_0x45baa5(0x19a)]),this.#binaryName=_0x1d07f[_0x45baa5(0x1ae)]):this.#httpPath=_0x1d07f[_0x45baa5(0x205)](_0x172037,_0x1d07f[_0x45baa5(0x168)]);}#getAvailableDirs(){const _0x1ad394=a102_0x4f7346,_0x40b598={};_0x40b598['MalOl']=function(_0x488973,_0x2ef49a){return _0x488973<_0x2ef49a;},_0x40b598['cbmxb']=_0x1ad394(0x1cb);const _0x37cd0e=_0x40b598;for(var _0x46d774=0x0;_0x37cd0e[_0x1ad394(0x165)](_0x46d774,this.#orderedPaths[_0x1ad394(0x199)]);_0x46d774++){var _0x5b1da7=this.#orderedPaths[_0x46d774];if(this.#makePath(_0x5b1da7))return _0x5b1da7;}throw new Error(_0x37cd0e['cbmxb']);}#makePath(_0x352d1f){const _0x50d281=a102_0x4f7346;try{return _0x352d1f&&!this.#checkPath(_0x352d1f)&&fs[_0x50d281(0x1ac)](_0x352d1f),!![];}catch{return![];}}#checkPath(_0x9c40f9,_0x435d94){const _0x4ec34a=a102_0x4f7346,_0x51e72b={};_0x51e72b['LnnWg']=function(_0x28d27b,_0xbc63cd){return _0x28d27b|_0xbc63cd;},_0x51e72b[_0x4ec34a(0x17d)]=function(_0x467719,_0x35123c){return _0x467719!==_0x35123c;},_0x51e72b[_0x4ec34a(0x1a1)]='undefined';const _0x494aa5=_0x51e72b;_0x435d94=_0x435d94||_0x494aa5[_0x4ec34a(0x1fe)](fs['R_OK'],fs['W_OK']);try{return fs[_0x4ec34a(0x17c)](_0x9c40f9,_0x435d94),!![];}catch(_0x432872){if(_0x494aa5[_0x4ec34a(0x17d)](typeof fs[_0x4ec34a(0x17c)],_0x494aa5[_0x4ec34a(0x1a1)]))return![];try{return fs[_0x4ec34a(0x1c7)](_0x9c40f9),!![];}catch(_0xa9f929){return![];}}}#getETagPath(_0x226f80){const _0x213b69=a102_0x4f7346;return path[_0x213b69(0x200)](_0x226f80,this.#binaryName+_0x213b69(0x1ff));}#loadETag(_0x19830a){const _0x32a656=a102_0x4f7346,_0x2691ec={};_0x2691ec['bPLrd']=_0x32a656(0x182);const _0x54f136=_0x2691ec,_0x547e52=this.#getETagPath(_0x19830a);if(this.#checkPath(_0x547e52))try{return fs[_0x32a656(0x186)](_0x547e52,_0x54f136[_0x32a656(0x1fd)])[_0x32a656(0x1f7)]();}catch(_0x193522){logger[_0x32a656(0x167)]('Failed\x20to\x20read\x20ETag\x20file:\x20'+_0x193522);}return null;}#saveETag(_0x1ac89b,_0x21bf58){const _0x1f575b=a102_0x4f7346,_0x4fa107={};_0x4fa107[_0x1f575b(0x1f0)]=_0x1f575b(0x19f);const _0x1b782e=_0x4fa107;if(!_0x21bf58)return;try{const _0x16109d=this.#getETagPath(_0x1ac89b);fs[_0x1f575b(0x18d)](_0x16109d,_0x21bf58),logger[_0x1f575b(0x204)](_0x1b782e[_0x1f575b(0x1f0)]);}catch(_0x1819d8){logger[_0x1f575b(0x167)](_0x1f575b(0x1df)+_0x1819d8);}}async #handleBinaryDownload(_0x33ec7d,_0x558a65,_0x5cbbf4){const _0x20f0eb=a102_0x4f7346,_0x19c9d1={};_0x19c9d1[_0x20f0eb(0x1f8)]=_0x20f0eb(0x176);const _0x464988=_0x19c9d1,_0x2c0581=await this[_0x20f0eb(0x1d7)](_0x33ec7d[_0x20f0eb(0x1cd)]);if(!_0x2c0581){logger[_0x20f0eb(0x1d3)](_0x464988[_0x20f0eb(0x1f8)]);const _0x4281aa=await this[_0x20f0eb(0x17b)](_0x558a65,_0x5cbbf4);return _0x4281aa[_0x20f0eb(0x1cd)];}return _0x33ec7d[_0x20f0eb(0x1cd)];}async[a102_0x4f7346(0x180)](_0x30c504){const _0x1c0c0f=a102_0x4f7346,_0x57f7db={};_0x57f7db[_0x1c0c0f(0x1c9)]='Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)',_0x57f7db[_0x1c0c0f(0x1d8)]=_0x1c0c0f(0x1ef);const _0x10110a=_0x57f7db,_0x2644d4=this.#getAvailableDirs(),_0x1be58e=path['join'](_0x2644d4,this.#binaryName);if(this.#checkPath(_0x1be58e,fs['X_OK'])){const _0x45c488=this.#loadETag(_0x2644d4);if(_0x45c488)try{const _0x4eee9e=await this['download'](_0x30c504,_0x2644d4,_0x45c488);if(!_0x4eee9e[_0x1c0c0f(0x1b9)])return logger[_0x1c0c0f(0x204)](_0x10110a[_0x1c0c0f(0x1c9)]),_0x1be58e;return logger[_0x1c0c0f(0x204)](_0x10110a[_0x1c0c0f(0x1d8)]),await this.#handleBinaryDownload(_0x4eee9e,_0x30c504,_0x2644d4);}catch(_0x5a61d9){return logger[_0x1c0c0f(0x167)](_0x1c0c0f(0x171)+_0x5a61d9),_0x1be58e;}}const _0x1f4bcf=await this[_0x1c0c0f(0x17b)](_0x30c504,_0x2644d4);return await this.#handleBinaryDownload(_0x1f4bcf,_0x30c504,_0x2644d4);}[a102_0x4f7346(0x17b)](_0x1e3bae,_0x3df920,_0x44602f=null){const _0x4cc59c=a102_0x4f7346,_0x3f21b4={'fGwFa':function(_0x5b1d6a,_0x4a0cca){return _0x5b1d6a(_0x4a0cca);},'oMuUt':function(_0x1fed64,_0x51314a){return _0x1fed64===_0x51314a;},'aMkvE':function(_0x540867,_0x220b74){return _0x540867(_0x220b74);},'YYsix':_0x4cc59c(0x1d3),'eGNRR':'close','OFPeS':function(_0x552ff5,_0x4c54a5){return _0x552ff5(_0x4c54a5);},'qBJak':function(_0x3a5132,_0x4817f6){return _0x3a5132+_0x4817f6;},'GnXMD':_0x4cc59c(0x1a2)};_0x3df920&&!this.#checkPath(_0x3df920)&&fs['mkdirSync'](_0x3df920);const _0x5d60a1=this.#binaryName,_0x1538c8=path['join'](_0x3df920,_0x3f21b4[_0x4cc59c(0x1c8)](_0x5d60a1,_0x3f21b4['GnXMD'])),_0x46502b=fs[_0x4cc59c(0x1a4)](_0x1538c8),_0x44ba31=url[_0x4cc59c(0x188)](this.#httpPath);if(_0x1e3bae['proxyHost']&&_0x1e3bae[_0x4cc59c(0x1b7)]){const _0x31c401={};_0x31c401[_0x4cc59c(0x1ea)]=_0x1e3bae[_0x4cc59c(0x18c)],_0x31c401[_0x4cc59c(0x1ba)]=_0x1e3bae[_0x4cc59c(0x1b7)],_0x44ba31['agent']=new HttpsProxyAgent(_0x31c401);}if(_0x1e3bae[_0x4cc59c(0x169)])try{_0x44ba31['ca']=fs[_0x4cc59c(0x186)](_0x1e3bae[_0x4cc59c(0x169)]);}catch(_0xee500f){logger[_0x4cc59c(0x1d3)]('Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20'+_0xee500f);}if(_0x44602f){const _0x559280={};_0x559280[_0x4cc59c(0x1d1)]=_0x44602f,_0x44ba31['headers']=_0x559280;}return new Promise((_0x2c9c63,_0x495f3b)=>{const _0x5ec9c9=_0x4cc59c,_0x1e2673={'VOIyz':function(_0x48e46e,_0x12c502){const _0x57e7b5=a102_0x5bc2;return _0x3f21b4[_0x57e7b5(0x1a0)](_0x48e46e,_0x12c502);},'GXVRM':function(_0x14474e,_0x12852e){const _0x27e652=a102_0x5bc2;return _0x3f21b4[_0x27e652(0x1a0)](_0x14474e,_0x12852e);},'xYFGi':function(_0x547bef,_0x3de4b5){const _0x183ef7=a102_0x5bc2;return _0x3f21b4[_0x183ef7(0x1d6)](_0x547bef,_0x3de4b5);},'AbxJP':function(_0x3105b4,_0x598e59){const _0x182fd3=a102_0x5bc2;return _0x3f21b4[_0x182fd3(0x1e2)](_0x3105b4,_0x598e59);},'fvzmB':_0x3f21b4[_0x5ec9c9(0x197)],'Hbapf':_0x3f21b4[_0x5ec9c9(0x1a8)],'PWZIx':function(_0x29877b,_0x227f82){return _0x3f21b4['OFPeS'](_0x29877b,_0x227f82);}};https[_0x5ec9c9(0x17f)](_0x44ba31,_0x9494f6=>{const _0x35155e=_0x5ec9c9,_0x2f4eb3={'QJgjB':function(_0x12f14a,_0x11def2){const _0x7e6dfe=a102_0x5bc2;return _0x1e2673[_0x7e6dfe(0x184)](_0x12f14a,_0x11def2);},'arRsj':function(_0x4da8bc,_0x1ca7c5){const _0x4f13f1=a102_0x5bc2;return _0x1e2673[_0x4f13f1(0x1bb)](_0x4da8bc,_0x1ca7c5);}};if(_0x44602f&&_0x1e2673[_0x35155e(0x18f)](_0x9494f6['statusCode'],0x130)){const _0x25fe36={};_0x25fe36[_0x35155e(0x1b9)]=![],_0x1e2673[_0x35155e(0x18a)](_0x2c9c63,_0x25fe36);return;}const _0x3c83b1=_0x9494f6[_0x35155e(0x1f4)]['etag'];_0x3c83b1&&this.#saveETag(_0x3df920,_0x3c83b1),_0x9494f6[_0x35155e(0x1af)](_0x46502b),_0x9494f6['on'](_0x1e2673['fvzmB'],function(_0x4987ee){const _0xd49739=_0x35155e;logger['error'](_0xd49739(0x1eb)+_0x4987ee),_0x2f4eb3[_0xd49739(0x1dd)](_0x495f3b,_0x4987ee);}),_0x46502b['on'](_0x1e2673[_0x35155e(0x19c)],function(_0x36a6a6){const _0x4d5ad7=_0x35155e;logger[_0x4d5ad7(0x1d3)](_0x4d5ad7(0x16a)+_0x36a6a6),_0x2f4eb3[_0x4d5ad7(0x1a7)](_0x495f3b,_0x36a6a6);}),_0x46502b['on'](_0x1e2673[_0x35155e(0x1e6)],()=>{const _0x3a7773=_0x35155e;this[_0x3a7773(0x1f1)](_0x1538c8,_0x3df920)[_0x3a7773(0x17e)](_0x47e68b=>_0x2c9c63({'needsUpdate':!![],'binaryPath':_0x47e68b}))[_0x3a7773(0x1ad)](_0x495f3b);});})['on'](_0x3f21b4[_0x5ec9c9(0x197)],function(_0x4ef11c){const _0x260a33=_0x5ec9c9;logger[_0x260a33(0x1d3)]('Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20'+_0x4ef11c),_0x1e2673[_0x260a33(0x1c2)](_0x495f3b,_0x4ef11c);});});}[a102_0x4f7346(0x1f1)](_0x547cc8,_0x44838f){const _0x388d23=a102_0x4f7346,_0x1cd3c9={'wJsoI':function(_0x2ffe7b,_0x413fa7){return _0x2ffe7b(_0x413fa7);},'gSrbA':'0755','DTRDY':_0x388d23(0x1d4),'RInmP':function(_0x384c75,_0x258f06){return _0x384c75===_0x258f06;},'LcsnL':function(_0x5667c6,_0x425eeb){return _0x5667c6(_0x425eeb);},'mNWre':_0x388d23(0x1fb),'xbgXP':_0x388d23(0x1d3)},_0xfb02fc=this.#binaryName,_0x2a0dba=path[_0x388d23(0x200)](_0x44838f,_0xfb02fc);return new Promise((_0x539081,_0x336e63)=>{const _0x3fda2f=_0x388d23,_0x588e58={'CICVd':function(_0x294b2e,_0x285ea1){return _0x1cd3c9['wJsoI'](_0x294b2e,_0x285ea1);},'ueIPy':_0x1cd3c9[_0x3fda2f(0x19b)],'UOUEw':function(_0x55a9af,_0x42047f){const _0x2fe780=_0x3fda2f;return _0x1cd3c9[_0x2fe780(0x18b)](_0x55a9af,_0x42047f);},'ZPYoy':_0x1cd3c9[_0x3fda2f(0x1dc)],'lQovq':function(_0x5b63d3,_0x5f3862){const _0x514a7f=_0x3fda2f;return _0x1cd3c9[_0x514a7f(0x1ec)](_0x5b63d3,_0x5f3862);},'sWfvC':function(_0x1c91c1,_0x556c77){const _0x403f49=_0x3fda2f;return _0x1cd3c9[_0x403f49(0x175)](_0x1c91c1,_0x556c77);},'XFkTm':function(_0x3e6914,_0x36d677){const _0x2d20e6=_0x3fda2f;return _0x1cd3c9[_0x2d20e6(0x18b)](_0x3e6914,_0x36d677);},'wivyV':_0x1cd3c9[_0x3fda2f(0x1d0)],'rTJRj':_0x1cd3c9[_0x3fda2f(0x1f2)]},_0xf00e35={};_0xf00e35[_0x3fda2f(0x1e3)]=!![],yauzl[_0x3fda2f(0x203)](_0x547cc8,_0xf00e35,function(_0x2e811e,_0x648949){const _0x4940f7=_0x3fda2f,_0x3c9a7b={'oOMxZ':function(_0x4c9d36,_0x4ea86a){return _0x588e58['UOUEw'](_0x4c9d36,_0x4ea86a);},'xbSUY':_0x588e58[_0x4940f7(0x179)],'WaDsp':function(_0x55191f,_0x2e9b0b){const _0xf0a89c=_0x4940f7;return _0x588e58[_0xf0a89c(0x1a5)](_0x55191f,_0x2e9b0b);},'GMAYk':function(_0x18d069,_0xa8447b){return _0x588e58['sWfvC'](_0x18d069,_0xa8447b);}};_0x2e811e&&_0x588e58['XFkTm'](_0x336e63,_0x2e811e),_0x648949['readEntry'](),_0x648949['on'](_0x588e58[_0x4940f7(0x1d2)],_0x50f3c6=>{const _0x4282e5=_0x4940f7,_0x32b9cf={'unRXi':function(_0x298743,_0x11e0af){const _0x39969c=a102_0x5bc2;return _0x3c9a7b[_0x39969c(0x18e)](_0x298743,_0x11e0af);},'VWtwT':_0x3c9a7b['xbSUY']};if(/\/$/['test'](_0x50f3c6[_0x4282e5(0x1e4)]))_0x648949[_0x4282e5(0x1cc)]();else{const _0x5cdaa9=fs['createWriteStream'](path[_0x4282e5(0x200)](_0x44838f,_0x50f3c6['fileName']));_0x648949['openReadStream'](_0x50f3c6,function(_0x3a759c,_0x71598a){const _0x255af6=_0x4282e5;_0x3a759c&&_0x32b9cf['unRXi'](_0x336e63,_0x2e811e),_0x71598a['on'](_0x32b9cf[_0x255af6(0x1ed)],function(){const _0x507dae=_0x255af6;_0x5cdaa9[_0x507dae(0x1c3)](),_0x648949[_0x507dae(0x1cc)]();}),_0x71598a['pipe'](_0x5cdaa9);}),_0x3c9a7b[_0x4282e5(0x189)](_0x50f3c6[_0x4282e5(0x1e4)],_0xfb02fc)&&_0x648949[_0x4282e5(0x1c3)]();}}),_0x648949['on'](_0x588e58[_0x4940f7(0x193)],_0x582ec1=>{_0x3c9a7b['GMAYk'](_0x336e63,_0x582ec1);}),_0x648949[_0x4940f7(0x16c)](_0x588e58['ZPYoy'],()=>{const _0x5c308b=_0x4940f7,_0x4165f0={'kQrOi':function(_0x3e8abe,_0x1e05a4){const _0x295b66=a102_0x5bc2;return _0x588e58[_0x295b66(0x1b8)](_0x3e8abe,_0x1e05a4);}};fs[_0x5c308b(0x1ce)](_0x2a0dba,_0x588e58[_0x5c308b(0x191)],function(_0x47ebd0){const _0x20c234=_0x5c308b;_0x47ebd0&&_0x4165f0[_0x20c234(0x183)](_0x336e63,_0x47ebd0),_0x4165f0[_0x20c234(0x183)](_0x539081,_0x2a0dba);}),_0x648949[_0x5c308b(0x1c3)]();});});});}async['validateBinary'](_0x17357d){const _0x3a4876=a102_0x4f7346,_0x57116c={'Sstln':function(_0x3885f2,_0x16e10c){return _0x3885f2(_0x16e10c);},'fObiu':function(_0x198e44,_0x8efd62,_0x567a34,_0x2a27bf){return _0x198e44(_0x8efd62,_0x567a34,_0x2a27bf);},'obSok':'--version','kPwba':_0x3a4876(0x1bf),'HUnsc':'close'},_0x180a2d=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x2976f4,_0x4b0670)=>{const _0x44e341=_0x3a4876,_0x1a51a6={'xFaAb':function(_0x219601,_0x2c4f2e){const _0x329e14=a102_0x5bc2;return _0x57116c[_0x329e14(0x1b5)](_0x219601,_0x2c4f2e);}},_0x3eb439={};_0x3eb439[_0x44e341(0x185)]=process['env'];const _0x718594=_0x57116c[_0x44e341(0x1e5)](spawn,_0x17357d,[_0x57116c['obSok']],_0x3eb439);_0x718594[_0x44e341(0x1c4)]['on'](_0x57116c['kPwba'],_0x4bb436=>{const _0x4c9ea4=_0x44e341;_0x180a2d['test'](_0x4bb436)&&_0x57116c[_0x4c9ea4(0x1b5)](_0x2976f4,!![]);}),_0x718594['on'](_0x57116c[_0x44e341(0x16d)],()=>{_0x1a51a6['xFaAb'](_0x2976f4,![]);});});}#homedir(){const _0x31299e=a102_0x4f7346,_0x2c9b37={};_0x2c9b37[_0x31299e(0x1a9)]=function(_0x590ad0,_0x28b30){return _0x590ad0===_0x28b30;},_0x2c9b37[_0x31299e(0x1c5)]=_0x31299e(0x177),_0x2c9b37['CvJPl']=_0x31299e(0x1c6),_0x2c9b37[_0x31299e(0x1e0)]=function(_0x1d3caf,_0x37cfb9){return _0x1d3caf+_0x37cfb9;},_0x2c9b37[_0x31299e(0x19d)]=function(_0x138e7b,_0x32d601){return _0x138e7b===_0x32d601;},_0x2c9b37['BPQCa']='darwin',_0x2c9b37[_0x31299e(0x192)]=function(_0x252fbd,_0x4fb151){return _0x252fbd+_0x4fb151;},_0x2c9b37[_0x31299e(0x1c1)]=_0x31299e(0x1cf),_0x2c9b37[_0x31299e(0x1a3)]=function(_0x46c785,_0x3eaaa5){return _0x46c785===_0x3eaaa5;},_0x2c9b37[_0x31299e(0x1be)]=_0x31299e(0x166),_0x2c9b37[_0x31299e(0x1ca)]=function(_0x2af1ab,_0x140eee){return _0x2af1ab===_0x140eee;},_0x2c9b37[_0x31299e(0x170)]=_0x31299e(0x1aa),_0x2c9b37[_0x31299e(0x198)]=_0x31299e(0x1f5),_0x2c9b37[_0x31299e(0x195)]=function(_0x4fbd90,_0x331a1e){return _0x4fbd90||_0x331a1e;};const _0x2f4a4d=_0x2c9b37;if(_0x2f4a4d[_0x31299e(0x1a9)](typeof os[_0x31299e(0x196)],_0x2f4a4d[_0x31299e(0x1c5)]))return os[_0x31299e(0x196)]();const _0x2d22b5=process[_0x31299e(0x185)],_0x438b=_0x2d22b5[_0x31299e(0x1db)],_0x455a5e=_0x2d22b5[_0x31299e(0x1f6)]||_0x2d22b5[_0x31299e(0x1e7)]||_0x2d22b5[_0x31299e(0x1b2)]||_0x2d22b5[_0x31299e(0x173)];if(_0x2f4a4d[_0x31299e(0x1a9)](process[_0x31299e(0x1ee)],_0x2f4a4d[_0x31299e(0x16b)]))return _0x2d22b5[_0x31299e(0x181)]||_0x2f4a4d[_0x31299e(0x1e0)](_0x2d22b5[_0x31299e(0x1da)],_0x2d22b5[_0x31299e(0x1de)])||_0x438b||null;if(_0x2f4a4d['YXrlk'](process[_0x31299e(0x1ee)],_0x2f4a4d[_0x31299e(0x201)]))return _0x438b||(_0x455a5e?_0x2f4a4d[_0x31299e(0x192)](_0x2f4a4d[_0x31299e(0x1c1)],_0x455a5e):null);if(_0x2f4a4d[_0x31299e(0x1a3)](process[_0x31299e(0x1ee)],_0x2f4a4d[_0x31299e(0x1be)]))return _0x438b||(_0x2f4a4d[_0x31299e(0x1ca)](process[_0x31299e(0x17a)](),0x0)?_0x2f4a4d['rtPUz']:_0x455a5e?_0x2f4a4d['rxIcf'](_0x2f4a4d[_0x31299e(0x198)],_0x455a5e):null);return _0x2f4a4d['VYqut'](_0x438b,null);}}function a102_0x7901(){const _0x456dc0=['CvJPl','once','HUnsc','https-proxy-agent','cwd','rtPUz','Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20','CeZck','USERNAME','3297170aSolaq','LcsnL','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','function','child_process','ZPYoy','getuid','download','accessSync','iqtdw','then','get','getBinaryPath','USERPROFILE','utf8','kQrOi','VOIyz','env','readFileSync','.browserstack','parse','WaDsp','AbxJP','wJsoI','proxyHost','writeFileSync','oOMxZ','xYFGi','548744ipMPMo','ueIPy','rxIcf','rTJRj','756675QbqxVl','VYqut','homedir','YYsix','PabOu','length','itRRp','gSrbA','fvzmB','YXrlk','https://github.com/percy/cli/releases/latest/download','Saved\x20new\x20ETag\x20for\x20percy\x20binary','fGwFa','loIqP','.zip','IZSdB','createWriteStream','lQovq','yBsKg','arRsj','eGNRR','gOLfN','/root','path','mkdirSync','catch','Ipddb','pipe','match','6424FZNvSM','LNAME','642juYYZC','224207KfQXQe','Sstln','winstonLogger','proxyPort','CICVd','needsUpdate','port','GXVRM','percy','yauzl','InwpG','data','11cRHTCy','TdEJw','PWZIx','close','stdout','iOage','win32','statSync','qBJak','HEycH','edbOY','Error\x20trying\x20to\x20download\x20percy\x20binary','readEntry','binaryPath','chmod','/Users/','mNWre','If-None-Match','wivyV','error','end','2793592Iyagpz','oMuUt','validateBinary','FdgOC','4nZgnNg','HOMEDRIVE','HOME','DTRDY','QJgjB','HOMEPATH','Failed\x20to\x20save\x20ETag\x20file:\x20','HWHdi','/percy-osx.zip','aMkvE','lazyEntries','fileName','fObiu','Hbapf','USER','iYvnQ','tmpdir','host','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','RInmP','VWtwT','platform','New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','HNwkQ','extractAndSaveBinary','xbgXP','/percy-win.zip','headers','/home/','LOGNAME','trim','AoMAZ','33835bsJMdC','percy.exe','entry','../logger','bPLrd','LnnWg','.etag','join','BPQCa','6588wMaosD','open','debug','wtkfF','MalOl','linux','warn','ecmJt','useCaCertificate','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20'];a102_0x7901=function(){return _0x456dc0;};return a102_0x7901();}module['exports']=PercyBinary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a103_0x41c4a6=a103_0x2897;(function(_0x415849,_0xcf4bae){var _0x4f6c6b=a103_0x2897,_0x1005ed=_0x415849();while(!![]){try{var _0x55b323=-parseInt(_0x4f6c6b(0x14f))/0x1*(-parseInt(_0x4f6c6b(0x157))/0x2)+parseInt(_0x4f6c6b(0x155))/0x3*(parseInt(_0x4f6c6b(0x14d))/0x4)+parseInt(_0x4f6c6b(0x152))/0x5+-parseInt(_0x4f6c6b(0x158))/0x6+-parseInt(_0x4f6c6b(0x154))/0x7*(-parseInt(_0x4f6c6b(0x153))/0x8)+parseInt(_0x4f6c6b(0x156))/0x9+-parseInt(_0x4f6c6b(0x151))/0xa;if(_0x55b323===_0xcf4bae)break;else _0x1005ed['push'](_0x1005ed['shift']());}catch(_0x339c2a){_0x1005ed['push'](_0x1005ed['shift']());}}}(a103_0x34c2,0x54324));class PercyCaptureMap{#map={};[a103_0x41c4a6(0x150)](_0x13eae8,_0x56de28){!this.#map[_0x13eae8]&&(this.#map[_0x13eae8]={}),!this.#map[_0x13eae8][_0x56de28]&&(this.#map[_0x13eae8][_0x56de28]=0x0),this.#map[_0x13eae8][_0x56de28]++;}[a103_0x41c4a6(0x159)](_0x37af95,_0x3aba82){return _0x37af95+'-'+_0x3aba82+'-'+this['get'](_0x37af95,_0x3aba82);}[a103_0x41c4a6(0x15a)](_0x25bb58,_0x45ce13){if(!this.#map[_0x25bb58])return 0x0;if(!this.#map[_0x25bb58][_0x45ce13])return 0x0;return this.#map[_0x25bb58][_0x45ce13];}}function a103_0x34c2(){var _0x17781a=['3qAkNVx','1054107rkJIYM','793736SSpzVE','312300WIwcLp','getName','get','2547052rqSXIJ','exports','1cReSZi','increment','9407850KGxNzz','297895ISxVsE','1880MqPqqN','3794NNEgmG'];a103_0x34c2=function(){return _0x17781a;};return a103_0x34c2();}function a103_0x2897(_0x2cfed7,_0x1549e3){var _0x34c2c3=a103_0x34c2();return a103_0x2897=function(_0x28977a,_0x4c0acc){_0x28977a=_0x28977a-0x14d;var _0x3afab4=_0x34c2c3[_0x28977a];return _0x3afab4;},a103_0x2897(_0x2cfed7,_0x1549e3);}module[a103_0x41c4a6(0x14e)]=PercyCaptureMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a104_0xba2f08=a104_0x1b70;function a104_0x37a7(){var _0x5645c8=['4040760Zjfacg','testcase','takeScreenshot','4Pwazik','click','screenshot','driver','473910qsBWzT','288vURAku','auto','sendKeys','3505416zOaxlC','12868dsmaqG','27ejKAIi','exports','manual','1225004duzogP','35573270OQBSqC','1973559yYZMDR'];a104_0x37a7=function(){return _0x5645c8;};return a104_0x37a7();}(function(_0x4a51fc,_0x53ccb2){var _0x5d81bf=a104_0x1b70,_0x1dda20=_0x4a51fc();while(!![]){try{var _0x427580=-parseInt(_0x5d81bf(0x97))/0x1+-parseInt(_0x5d81bf(0x93))/0x2*(parseInt(_0x5d81bf(0x8f))/0x3)+-parseInt(_0x5d81bf(0x8a))/0x4*(parseInt(_0x5d81bf(0x8e))/0x5)+parseInt(_0x5d81bf(0x92))/0x6+parseInt(_0x5d81bf(0x99))/0x7+-parseInt(_0x5d81bf(0x9a))/0x8*(parseInt(_0x5d81bf(0x94))/0x9)+parseInt(_0x5d81bf(0x98))/0xa;if(_0x427580===_0x53ccb2)break;else _0x1dda20['push'](_0x1dda20['shift']());}catch(_0x827929){_0x1dda20['push'](_0x1dda20['shift']());}}}(a104_0x37a7,0xed00d));var a104_0x1b62fa={};a104_0x1b62fa[a104_0xba2f08(0x8d)]=['takeScreenshot'],a104_0x1b62fa['element']=[a104_0xba2f08(0x8b),a104_0xba2f08(0x91)];var a104_0x473f13={};a104_0x473f13[a104_0xba2f08(0x8d)]=[a104_0xba2f08(0x89)];var a104_0x45bb9f={};a104_0x45bb9f['element']=['click'];var a104_0x2f6ee8={};function a104_0x1b70(_0x317b54,_0x1be9ee){var _0x37a763=a104_0x37a7();return a104_0x1b70=function(_0x1b7010,_0x4730bf){_0x1b7010=_0x1b7010-0x89;var _0x40f243=_0x37a763[_0x1b7010];return _0x40f243;},a104_0x1b70(_0x317b54,_0x1be9ee);}a104_0x2f6ee8[a104_0xba2f08(0x90)]=a104_0x1b62fa,a104_0x2f6ee8[a104_0xba2f08(0x8c)]=a104_0x473f13,a104_0x2f6ee8[a104_0xba2f08(0x8b)]=a104_0x45bb9f,a104_0x2f6ee8[a104_0xba2f08(0x9b)]={},a104_0x2f6ee8[a104_0xba2f08(0x96)]={},module[a104_0xba2f08(0x95)]=a104_0x2f6ee8;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a105_0x4ee2(_0x5886cf,_0x37b6ca){const _0x441250=a105_0x4412();return a105_0x4ee2=function(_0x4ee263,_0x3c5d5a){_0x4ee263=_0x4ee263-0x1bc;let _0x3d899d=_0x441250[_0x4ee263];return _0x3d899d;},a105_0x4ee2(_0x5886cf,_0x37b6ca);}const a105_0x7f462f=a105_0x4ee2;(function(_0x200ac5,_0x320a2f){const _0x3f8076=a105_0x4ee2,_0x453981=_0x200ac5();while(!![]){try{const _0x126974=-parseInt(_0x3f8076(0x1d1))/0x1+parseInt(_0x3f8076(0x1e2))/0x2*(-parseInt(_0x3f8076(0x1d4))/0x3)+-parseInt(_0x3f8076(0x1bf))/0x4*(parseInt(_0x3f8076(0x1e3))/0x5)+-parseInt(_0x3f8076(0x1c1))/0x6*(-parseInt(_0x3f8076(0x1e5))/0x7)+-parseInt(_0x3f8076(0x1e4))/0x8*(parseInt(_0x3f8076(0x1ca))/0x9)+-parseInt(_0x3f8076(0x1da))/0xa*(-parseInt(_0x3f8076(0x1d2))/0xb)+-parseInt(_0x3f8076(0x1e1))/0xc*(-parseInt(_0x3f8076(0x1d3))/0xd);if(_0x126974===_0x320a2f)break;else _0x453981['push'](_0x453981['shift']());}catch(_0x483278){_0x453981['push'](_0x453981['shift']());}}}(a105_0x4412,0x93f8b));function a105_0x4412(){const _0x517fc5=['wLFwN','ipcsF','SNAPSHOT','apply','9fIGiAQ','screenshot','browserstackPlatformIndex','Unsupported\x20driver\x20for\x20percy','RLQUi','phTjf','LXvrD','781407zmvDDt','11KWHgBh','2756YZbRIO','3uTpdsz','platformIndex','../performance/constants','KrgUB','KHFWj','name','548740lRgXSJ','testCase','screenshotApp','winstonLogger','@percy/selenium-webdriver','snapshot','measure','95100fNoSLY','589534jThHyN','35XFoWYE','7195024FPiExx','560SqbaAC','SCREENSHOT','../performance/performance-tester','uuid','95572BjSxCC','browserstackPercyBestPlatform','76044FhrERk','error','thTestCaseExecutionId','length','../logger'];a105_0x4412=function(){return _0x517fc5;};return a105_0x4412();}const tryRequire=function(_0x21bc1e,_0x429ebc){const _0x488e40={'dAWUn':function(_0xefde33,_0x2d9e4c){return _0xefde33(_0x2d9e4c);}};try{return _0x488e40['dAWUn'](require,_0x21bc1e);}catch{return _0x429ebc;}},percySnapshot=tryRequire(a105_0x7f462f(0x1de),null),{percyScreenshot}=tryRequire(a105_0x7f462f(0x1de),{}),percyAppScreenshot=require('@percy/appium-app'),{getCurrentTestData}=require('../../helpers/testhub/utils'),PerformanceTester=require(a105_0x7f462f(0x1bd)),{PERCY_EVENTS:PerformanceEvents}=require(a105_0x7f462f(0x1d6)),logger=require(a105_0x7f462f(0x1c5))[a105_0x7f462f(0x1dd)];percySnapshot&&(exports[a105_0x7f462f(0x1df)]=async function(){const _0x2fa216=a105_0x7f462f,_0xbe9765={'wLFwN':function(_0x384532,_0x30de06){return _0x384532!==_0x30de06;},'KHFWj':function(_0x246faa,_0x5cbbe6){return _0x246faa>=_0x5cbbe6;},'LXvrD':function(_0x3c61f5){return _0x3c61f5();}};if(global[_0x2fa216(0x1cc)]&&_0xbe9765[_0x2fa216(0x1c6)](global['browserstackPlatformIndex'],global[_0x2fa216(0x1c0)]))return;const _0x326680=_0xbe9765[_0x2fa216(0x1d8)](arguments[_0x2fa216(0x1c4)],0x2)?arguments[0x1]:'',_0x5f110c=_0xbe9765[_0x2fa216(0x1d0)](getCurrentTestData),_0x621bce={};return _0x621bce[_0x2fa216(0x1d9)]=_0x326680,_0x621bce[_0x2fa216(0x1db)]=_0x5f110c[_0x2fa216(0x1d9)]||'',_0x621bce[_0x2fa216(0x1c3)]=_0x5f110c[_0x2fa216(0x1be)]||'',_0x621bce[_0x2fa216(0x1d5)]=global[_0x2fa216(0x1cc)],await PerformanceTester['measure'](PerformanceEvents[_0x2fa216(0x1c8)],()=>percySnapshot[_0x2fa216(0x1c9)](null,arguments),_0x621bce);});percyScreenshot?exports[a105_0x7f462f(0x1cb)]=async function(){const _0x2aa995=a105_0x7f462f,_0x5fa0c4={'jtdmJ':function(_0x4d4448,_0x449f71){return _0x4d4448>=_0x449f71;},'ipcsF':function(_0x363efb){return _0x363efb();}},_0x1e6631=_0x5fa0c4['jtdmJ'](arguments[_0x2aa995(0x1c4)],0x2)?arguments[0x1]:'',_0x5b6dc5=_0x5fa0c4[_0x2aa995(0x1c7)](getCurrentTestData),_0xee5b78={};return _0xee5b78[_0x2aa995(0x1d9)]=_0x1e6631,_0xee5b78[_0x2aa995(0x1db)]=_0x5b6dc5[_0x2aa995(0x1d9)]||'',_0xee5b78[_0x2aa995(0x1c3)]=_0x5b6dc5[_0x2aa995(0x1be)]||'',_0xee5b78['platformIndex']=global[_0x2aa995(0x1cc)],await PerformanceTester[_0x2aa995(0x1e0)](PerformanceEvents[_0x2aa995(0x1bc)],()=>percyScreenshot['apply'](null,arguments),_0xee5b78);}:exports[a105_0x7f462f(0x1cb)]=()=>{const _0x17781f=a105_0x7f462f,_0xc52b9c={};_0xc52b9c[_0x17781f(0x1ce)]=_0x17781f(0x1cd);const _0xa827c5=_0xc52b9c;logger[_0x17781f(0x1c2)](_0xa827c5['RLQUi']);};exports[a105_0x7f462f(0x1dc)]=async function(){const _0x47d597=a105_0x7f462f,_0x2248b1={'phTjf':function(_0x22cbd4,_0x13789){return _0x22cbd4>=_0x13789;},'KrgUB':function(_0x508553){return _0x508553();}},_0x4e274d=_0x2248b1[_0x47d597(0x1cf)](arguments[_0x47d597(0x1c4)],0x2)?arguments[0x1]:'',_0x160461=_0x2248b1[_0x47d597(0x1d7)](getCurrentTestData),_0x24832c={};return _0x24832c[_0x47d597(0x1d9)]=_0x4e274d,_0x24832c[_0x47d597(0x1db)]=_0x160461[_0x47d597(0x1d9)]||'',_0x24832c[_0x47d597(0x1c3)]=_0x160461['uuid']||'',_0x24832c[_0x47d597(0x1d5)]=global['browserstackPlatformIndex'],await PerformanceTester['measure'](PerformanceEvents['SCREENSHOT_APP'],()=>percyAppScreenshot[_0x47d597(0x1c9)](null,arguments),_0x24832c);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a106_0x4ab7(_0x22b512,_0x2355d2){var _0x5e7f33=a106_0x5e7f();return a106_0x4ab7=function(_0x4ab751,_0x87f7ee){_0x4ab751=_0x4ab751-0x7d;var _0x1f8c6c=_0x5e7f33[_0x4ab751];return _0x1f8c6c;},a106_0x4ab7(_0x22b512,_0x2355d2);}function a106_0x5e7f(){var _0x545033=['341rwNGKM','1273256ECGZqY','318VebPBt','1015160HIEhiL','5095350frnZXS','exports','2520GDVnbC','11631402IWCzOY','42PcHYFR','449432Mabfgj','138gfejtK','./Percy','181835hJhuDB'];a106_0x5e7f=function(){return _0x545033;};return a106_0x5e7f();}var a106_0xa6e970=a106_0x4ab7;(function(_0x255a96,_0x36f55f){var _0x560c17=a106_0x4ab7,_0x4f2bcf=_0x255a96();while(!![]){try{var _0x31dc24=parseInt(_0x560c17(0x7e))/0x1*(-parseInt(_0x560c17(0x87))/0x2)+parseInt(_0x560c17(0x89))/0x3+parseInt(_0x560c17(0x86))/0x4+parseInt(_0x560c17(0x84))/0x5*(parseInt(_0x560c17(0x82))/0x6)+parseInt(_0x560c17(0x80))/0x7*(parseInt(_0x560c17(0x81))/0x8)+parseInt(_0x560c17(0x7f))/0x9+parseInt(_0x560c17(0x88))/0xa*(-parseInt(_0x560c17(0x85))/0xb);if(_0x31dc24===_0x36f55f)break;else _0x4f2bcf['push'](_0x4f2bcf['shift']());}catch(_0x1a417d){_0x4f2bcf['push'](_0x4f2bcf['shift']());}}}(a106_0x5e7f,0xe4445),module[a106_0xa6e970(0x7d)]=require(a106_0xa6e970(0x83)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a107_0x11aa(_0x345654,_0x4ccd86){const _0x2781ec=a107_0x2781();return a107_0x11aa=function(_0x11aac0,_0x323e87){_0x11aac0=_0x11aac0-0x1a5;let _0xbb2c8c=_0x2781ec[_0x11aac0];return _0xbb2c8c;},a107_0x11aa(_0x345654,_0x4ccd86);}function a107_0x2781(){const _0x19c7ea=['element','960112TeWfpW','percyCaptureMode','TIwWf','browserStackPercyOptions','percy','measureWrapper','browserName','545442sEgWnO','../performance/constants','AUTO_CAPTURE','isUndefined','safari','nestedKeyValue','browser','debug','increment','browserstackSessionName','./PercyCaptureModes','IFReV','patch','reduce','ckPuv','chrome','browserstackPercyMap','813688zQaKAT','./Percy','getBestPlatformForPercySnapshot','getName','yIyvT','stopPercy','195LXoTzh','manual','Stopping\x20percy','apply','stqyX','auto','forEach','screenshot','getDriver','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','init','Error\x20patching\x20','YrGQI','error','iDaTk','9EEsINX','browserstackPercyBestPlatform','3814356PHWZgT','\x20for\x20percy\x20','platforms','sDICv','268354isLPUv','../helper','driver','app','edge','747085Gryxev','firefox','../logger','STOP','toLowerCase','emaOl','winstonLogger','QSVYU','startPercy','Starting\x20percy','then','screenshotApp','patchDriverPercy','../performance/performance-tester','percyAutoCapture','START','PRsbk','qhoQx','prototype','33052tYlMNp','overrideXforPercy','getPercyOptions'];a107_0x2781=function(){return _0x19c7ea;};return a107_0x2781();}const a107_0x462552=a107_0x11aa;(function(_0x4166ce,_0x236dcf){const _0x49a065=a107_0x11aa,_0x5cfadc=_0x4166ce();while(!![]){try{const _0x3002a5=-parseInt(_0x49a065(0x1df))/0x1+-parseInt(_0x49a065(0x1ac))/0x2+-parseInt(_0x49a065(0x1ca))/0x3*(-parseInt(_0x49a065(0x1a8))/0x4)+parseInt(_0x49a065(0x1e4))/0x5+-parseInt(_0x49a065(0x1b3))/0x6+parseInt(_0x49a065(0x1db))/0x7+parseInt(_0x49a065(0x1c4))/0x8*(-parseInt(_0x49a065(0x1d9))/0x9);if(_0x3002a5===_0x236dcf)break;else _0x5cfadc['push'](_0x5cfadc['shift']());}catch(_0x398e0b){_0x5cfadc['push'](_0x5cfadc['shift']());}}}(a107_0x2781,0x46e58));const Percy=require(a107_0x462552(0x1c5)),PercySDK=require('./PercySDK'),PercyCaptureModes=require(a107_0x462552(0x1bd)),PercyCaptureMap=require('./PercyCaptureMap'),logger=require(a107_0x462552(0x1e6))[a107_0x462552(0x1ea)],helper=require(a107_0x462552(0x1e0)),PerformanceTester=require(a107_0x462552(0x1f1)),{PERCY_EVENTS:PerformanceEvents}=require(a107_0x462552(0x1b4));exports[a107_0x462552(0x1ec)]=PerformanceTester[a107_0x462552(0x1b1)](PerformanceEvents[a107_0x462552(0x1f3)],async _0x3e9aae=>{const _0x5ce6aa=a107_0x462552,_0x20bdb0={};_0x20bdb0[_0x5ce6aa(0x1a5)]=_0x5ce6aa(0x1ed);const _0x19822b=_0x20bdb0;logger[_0x5ce6aa(0x1ba)](_0x19822b['PRsbk']);const _0x3125c4=new Percy(_0x3e9aae),_0x567f95=await _0x3125c4['start']();if(_0x567f95)return _0x3125c4;return null;}),exports[a107_0x462552(0x1c9)]=PerformanceTester[a107_0x462552(0x1b1)](PerformanceEvents[a107_0x462552(0x1e7)],async _0x44d8af=>{const _0x37b02a=a107_0x462552,_0x1cb8ee={};_0x1cb8ee['QSVYU']=_0x37b02a(0x1cc);const _0x14c73d=_0x1cb8ee;return logger[_0x37b02a(0x1ba)](_0x14c73d[_0x37b02a(0x1eb)]),_0x44d8af['stop']();}),exports[a107_0x462552(0x1c6)]=_0x1dafe9=>{const _0x1fec07=a107_0x462552,_0x990be8={};_0x990be8[_0x1fec07(0x1de)]=function(_0x36d818,_0xb71fdf){return _0x36d818<_0xb71fdf;};const _0x3fa31d=_0x990be8,_0x5d8488={};_0x5d8488[_0x1fec07(0x1c2)]=0x0,_0x5d8488[_0x1fec07(0x1e5)]=0x1,_0x5d8488[_0x1fec07(0x1e3)]=0x2,_0x5d8488[_0x1fec07(0x1b7)]=0x3;const _0x4b7651=_0x5d8488;return _0x1dafe9[_0x1fec07(0x1c0)]((_0x304518,_0x42bbea,_0x359104)=>{const _0x5c2349=_0x1fec07,_0x405d80=_0x1dafe9[_0x304518];if(_0x42bbea['deviceName'])return _0x304518;if(_0x405d80['deviceName'])return _0x359104;const _0x2ed910=_0x42bbea[_0x5c2349(0x1b9)]?_0x42bbea['browser']:_0x42bbea[_0x5c2349(0x1b2)];if(_0x2ed910&&_0x3fa31d['sDICv'](_0x4b7651[_0x2ed910[_0x5c2349(0x1e8)]()],_0x4b7651[_0x2ed910[_0x5c2349(0x1e8)]()]))return _0x359104;return _0x304518;},0x0);},exports[a107_0x462552(0x1f2)]=PerformanceTester[a107_0x462552(0x1b1)](PerformanceEvents[a107_0x462552(0x1b5)],async(_0x4cd3c1,_0x4e040c,_0x8f9841)=>{const _0x37bd2b=a107_0x462552,_0x49869f={};_0x49869f[_0x37bd2b(0x1ce)]=_0x37bd2b(0x1d3);const _0x16b76e=_0x49869f,_0x4aabda=_0x4cd3c1[_0x37bd2b(0x1c3)];if(helper[_0x37bd2b(0x1b6)](_0x4cd3c1[_0x37bd2b(0x1bc)])){logger[_0x37bd2b(0x1ba)](_0x16b76e[_0x37bd2b(0x1ce)]);return;}const _0x234ddf=_0x4aabda[_0x37bd2b(0x1c7)](_0x4cd3c1[_0x37bd2b(0x1bc)],_0x4e040c);_0x8f9841[_0x37bd2b(0x1e2)]?await PercySDK[_0x37bd2b(0x1ef)](_0x4cd3c1,_0x234ddf):await PercySDK[_0x37bd2b(0x1d1)](_0x4cd3c1,_0x234ddf),_0x4aabda[_0x37bd2b(0x1bb)](_0x4cd3c1[_0x37bd2b(0x1bc)],_0x4e040c);}),exports[a107_0x462552(0x1f0)]=(_0x149289,_0x36c592,_0x66b385)=>{const _0x1945e3=a107_0x462552,_0x197326={};_0x197326[_0x1945e3(0x1c1)]=_0x1945e3(0x1af),_0x197326[_0x1945e3(0x1c8)]=_0x1945e3(0x1b0),_0x197326['HuQTv']=function(_0x1fe23c,_0x7997b4){return _0x1fe23c!==_0x7997b4;},_0x197326[_0x1945e3(0x1a6)]=_0x1945e3(0x1cb);const _0x7399c1=_0x197326;if(!helper[_0x1945e3(0x1b8)](_0x66b385,[_0x7399c1[_0x1945e3(0x1c1)],_0x7399c1[_0x1945e3(0x1c8)]]))return;if(_0x66b385[_0x1945e3(0x1af)][_0x1945e3(0x1b0)]&&_0x66b385[_0x1945e3(0x1af)][_0x1945e3(0x1ad)]&&_0x7399c1['HuQTv'](_0x66b385['browserStackPercyOptions'][_0x1945e3(0x1ad)],_0x7399c1[_0x1945e3(0x1a6)])&&!_0x149289[_0x1945e3(0x1c3)]){global[_0x1945e3(0x1bc)]&&(_0x149289[_0x1945e3(0x1bc)]=global[_0x1945e3(0x1bc)]),_0x149289[_0x1945e3(0x1c3)]=new PercyCaptureMap();const _0x4e28ee=PercyCaptureModes[_0x66b385[_0x1945e3(0x1af)][_0x1945e3(0x1ad)]];_0x4e28ee[_0x1945e3(0x1e1)]&&_0x4e28ee[_0x1945e3(0x1e1)][_0x1945e3(0x1d0)](_0x7f7651=>this[_0x1945e3(0x1a9)](_0x149289,_0x7f7651,_0x66b385)),_0x4e28ee[_0x1945e3(0x1ab)]&&_0x4e28ee[_0x1945e3(0x1ab)][_0x1945e3(0x1d0)](_0xb12ccc=>{const _0x2a4d82=_0x1945e3;if(_0x36c592['prototype'][_0x2a4d82(0x1bf)+_0xb12ccc])return;_0x36c592[_0x2a4d82(0x1a7)][_0x2a4d82(0x1bf)+_0xb12ccc]=!![];const _0x74b47a=_0x36c592[_0x2a4d82(0x1a7)][_0xb12ccc];_0x36c592[_0x2a4d82(0x1a7)][_0xb12ccc]=async function(){const _0x258973=_0x2a4d82;let _0x37eb20=_0x74b47a[_0x258973(0x1cd)](this,arguments);_0x37eb20&&_0x37eb20[_0x258973(0x1ee)]&&(_0x37eb20=await _0x37eb20);try{const _0x32853c=this[_0x258973(0x1d2)]();await exports['percyAutoCapture'](_0x32853c,_0xb12ccc,_0x66b385);}catch(_0x3d06c9){logger[_0x258973(0x1d7)]('Error\x20patching\x20'+_0xb12ccc+_0x258973(0x1dc)+_0x3d06c9);}return _0x37eb20;};});}},exports[a107_0x462552(0x1a9)]=function(_0x10d9da,_0x3dd5d8,_0x347fcc){const _0x32f25c=a107_0x462552,_0x531ea5={};_0x531ea5[_0x32f25c(0x1d6)]=function(_0x13f266,_0x1a7e7e){return _0x13f266+_0x1a7e7e;},_0x531ea5['iDaTk']=_0x32f25c(0x1bf),_0x531ea5[_0x32f25c(0x1e9)]=function(_0x534722,_0x2b6126){return _0x534722+_0x2b6126;},_0x531ea5[_0x32f25c(0x1be)]=_0x32f25c(0x1d4);const _0x49748b=_0x531ea5,_0x395884=_0x49748b[_0x32f25c(0x1d6)](_0x49748b[_0x32f25c(0x1d8)],_0x3dd5d8),_0x3d1af4=_0x49748b[_0x32f25c(0x1e9)](_0x49748b[_0x32f25c(0x1be)],_0x3dd5d8),_0x5902a5=this;if(_0x10d9da[_0x395884]||!_0x10d9da[_0x3dd5d8])return;_0x10d9da[_0x395884]=!![],_0x10d9da[_0x3d1af4]=_0x10d9da[_0x3dd5d8],_0x10d9da[_0x3dd5d8]=async()=>{const _0x5063d7=_0x32f25c;try{await _0x5902a5['percyAutoCapture'](_0x10d9da,_0x3dd5d8,_0x347fcc);}catch(_0x5555e8){logger[_0x5063d7(0x1d7)](_0x5063d7(0x1d5)+_0x3dd5d8+'\x20for\x20percy\x20'+_0x5555e8);}return await _0x10d9da[_0x3d1af4][_0x5063d7(0x1cd)](_0x10d9da,arguments);};},exports[a107_0x462552(0x1aa)]=_0xdd4793=>{const _0x57ae68=a107_0x462552,_0x27b428={};_0x27b428[_0x57ae68(0x1ae)]=_0x57ae68(0x1cf);const _0x25c824=_0x27b428,_0x1aaddb={};_0x1aaddb[_0x57ae68(0x1b0)]=_0xdd4793[_0x57ae68(0x1b0)],_0x1aaddb[_0x57ae68(0x1ad)]=_0xdd4793[_0x57ae68(0x1ad)]||_0x25c824[_0x57ae68(0x1ae)];const _0x3077eb=_0x1aaddb;_0xdd4793['percy']&&(_0x3077eb[_0x57ae68(0x1da)]=exports[_0x57ae68(0x1c6)](_0xdd4793[_0x57ae68(0x1dd)]));;return _0x3077eb;};
|