browserstack-node-sdk 1.46.7 → 1.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/generated/sdk-messages_pb.d.ts +18 -0
- package/generated/sdk-messages_pb.js +147 -3
- 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.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -0
- 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/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -0
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
package/src/helpers/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a108_0x3209f=a108_0x56e3;(function(_0x4250dd,_0x578543){const _0x4d1514=a108_0x56e3,_0x57b819=_0x4250dd();while(!![]){try{const _0xaa4b9e=parseInt(_0x4d1514(0x1e4))/0x1*(-parseInt(_0x4d1514(0x215))/0x2)+parseInt(_0x4d1514(0x214))/0x3+-parseInt(_0x4d1514(0x200))/0x4+parseInt(_0x4d1514(0x210))/0x5*(parseInt(_0x4d1514(0x1eb))/0x6)+-parseInt(_0x4d1514(0x213))/0x7+-parseInt(_0x4d1514(0x20c))/0x8+-parseInt(_0x4d1514(0x1f5))/0x9*(-parseInt(_0x4d1514(0x21c))/0xa);if(_0xaa4b9e===_0x578543)break;else _0x57b819['push'](_0x57b819['shift']());}catch(_0x45a5ad){_0x57b819['push'](_0x57b819['shift']());}}}(a108_0x5b0c,0xeeaef));const winston=require(a108_0x3209f(0x219)),path=require(a108_0x3209f(0x1fa)),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME}=require('../bin/utils/constants'),tempLogDir=a108_0x3209f(0x1e6),logFormat=winston[a108_0x3209f(0x1e0)](_0x368bb7=>{const _0x255a09=a108_0x3209f,_0xa159b8={};_0xa159b8[_0x255a09(0x1db)]=function(_0x3516e1,_0x1baee9){return _0x3516e1!==_0x1baee9;},_0xa159b8[_0x255a09(0x1e2)]=_0x255a09(0x21d),_0xa159b8['fxDCB']=function(_0x445ef4,_0x5d7bef){return _0x445ef4===_0x5d7bef;},_0xa159b8[_0x255a09(0x21e)]=_0x255a09(0x203),_0xa159b8[_0x255a09(0x1ea)]=function(_0x4e24d8,_0x476275){return _0x4e24d8===_0x476275;};const _0x1d0d7c=_0xa159b8;return _0x1d0d7c[_0x255a09(0x1db)](typeof _0x368bb7['message'],_0x1d0d7c['Qxyyp'])&&(_0x368bb7['message']=JSON['stringify'](_0x368bb7['message'])),global[_0x255a09(0x202)]?.[_0x255a09(0x1f2)]?.[_0x255a09(0x21b)]&&_0x1d0d7c[_0x255a09(0x1de)](typeof _0x368bb7[_0x255a09(0x1fe)],_0x1d0d7c[_0x255a09(0x1e2)])&&(_0x368bb7[_0x255a09(0x1fe)]=_0x368bb7[_0x255a09(0x1fe)][_0x255a09(0x20b)](new RegExp(global['session'][_0x255a09(0x1f2)][_0x255a09(0x21b)],'g'),_0x1d0d7c['IjqHY'])),global[_0x255a09(0x202)]?.[_0x255a09(0x1f2)]?.[_0x255a09(0x1e9)]&&_0x1d0d7c[_0x255a09(0x1ea)](typeof _0x368bb7[_0x255a09(0x1fe)],_0x1d0d7c[_0x255a09(0x1e2)])&&(_0x368bb7['message']=_0x368bb7[_0x255a09(0x1fe)][_0x255a09(0x20b)](new RegExp(global['session']['config'][_0x255a09(0x1e9)],'g'),_0x1d0d7c[_0x255a09(0x21e)])),_0x368bb7;}),fetchLogDir=()=>{const _0x4c567b=a108_0x3209f;if(process[_0x4c567b(0x1dc)][_0x4c567b(0x1f9)])return process[_0x4c567b(0x1dc)]['BROWSERSTACK_INTERNAL_LOG_DIR'];else!fs[_0x4c567b(0x204)](tempLogDir)&&fs['mkdirSync'](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),a108_0x3b05f2={};a108_0x3b05f2[a108_0x3209f(0x1f4)]=a108_0x3209f(0x208);const transports={'loggerConsole':new winston[(a108_0x3209f(0x201))][(a108_0x3209f(0x20e))](a108_0x3b05f2),'loggerFile':new winston[(a108_0x3209f(0x201))][(a108_0x3209f(0x1e7))]({'filename':path['join'](logDir,a108_0x3209f(0x221))}),'debugLoggerFile':new winston[(a108_0x3209f(0x201))][(a108_0x3209f(0x1e7))]({'filename':path[a108_0x3209f(0x222)](logDir,a108_0x3209f(0x206)),'level':a108_0x3209f(0x1f1)}),'debugCliLoggerFile':new winston['transports'][(a108_0x3209f(0x1e7))]({'filename':path[a108_0x3209f(0x222)](logDir,a108_0x3209f(0x1ee)),'level':a108_0x3209f(0x1f1)}),'buildLinkTransport':new winston['transports']['File']({'filename':path[a108_0x3209f(0x222)](logDir,a108_0x3209f(0x221)),'level':a108_0x3209f(0x1f1)})},automationTransports={};process[a108_0x3209f(0x1dc)][a108_0x3209f(0x1fd)]==='true'&&(automationTransports[a108_0x3209f(0x218)]=new winston[(a108_0x3209f(0x201))][(a108_0x3209f(0x1e7))]({'filename':path[a108_0x3209f(0x222)](logDir,a108_0x3209f(0x1ff)),'level':'silly'}));transports[a108_0x3209f(0x220)]['on'](a108_0x3209f(0x1fc),_0x4d9eaa=>{const _0x3ede05=a108_0x3209f,_0x4e5867={};_0x4e5867[_0x3ede05(0x217)]=function(_0x47bce2,_0x48d61a){return _0x47bce2===_0x48d61a;},_0x4e5867[_0x3ede05(0x205)]='EPIPE',_0x4e5867['AfsOj']=_0x3ede05(0x20d);const _0x50656a=_0x4e5867;if(_0x50656a[_0x3ede05(0x217)](_0x4d9eaa[_0x3ede05(0x211)],_0x50656a[_0x3ede05(0x205)])){console[_0x3ede05(0x1e6)](_0x50656a['AfsOj'],_0x4d9eaa['message']);return;}throw _0x4d9eaa;});function a108_0x56e3(_0x343fc0,_0x1d81cc){const _0x5b0c57=a108_0x5b0c();return a108_0x56e3=function(_0x56e304,_0x1764a4){_0x56e304=_0x56e304-0x1db;let _0x52922b=_0x5b0c57[_0x56e304];return _0x52922b;},a108_0x56e3(_0x343fc0,_0x1d81cc);}const a108_0x3cf19e={};a108_0x3cf19e[a108_0x3209f(0x1e0)]='YYYY-MM-DD\x20HH:mm:ss';const a108_0x62058a={};a108_0x62058a[a108_0x3209f(0x209)]=!![];const winstonLoggerParams={'format':winston[a108_0x3209f(0x1e0)][a108_0x3209f(0x207)](winston[a108_0x3209f(0x1e0)][a108_0x3209f(0x1e1)](a108_0x3cf19e),winston['format']['colorize'](a108_0x62058a),winston[a108_0x3209f(0x1e0)][a108_0x3209f(0x20f)](_0x1b6244=>_0x1b6244[a108_0x3209f(0x1e1)]+a108_0x3209f(0x1e3)+_0x1b6244[a108_0x3209f(0x209)]+':\x20'+_0x1b6244['message'])),'transports':[transports['loggerConsole']]},a108_0x1e32bf={};a108_0x1e32bf['format']=a108_0x3209f(0x1f7);const a108_0x180a70={};function a108_0x5b0c(){const _0xab2846=['name','5274qoHpDI','winstonLogger','YYYY-MM-DD\x20HH:mm:ss','debug','BROWSERSTACK_INTERNAL_LOG_DIR','path','sBRKo','error','BROWSERSTACK_AUTOMATION_LOGS','message','automation.log','4520340rwCsDY','transports','session','[REDACTED]','existsSync','SNZPm','/usage-debug.log','combine','console.info','level','thuYY','replace','14503400qTNkGe','EPIPE\x20error\x20occurred\x20in\x20loggerConsole:','Console','printf','5NRzZtK','code','getLogDir','2030861KEClcV','892449WnCWDR','74AObfef','initialize','wOHvk','automationLoggerFile','winston','colorize','userName','64070nnWvlF','string','IjqHY','add','loggerConsole','/usage.log','join','uhHRU','env','buildLogger','fxDCB','loggerFile','format','timestamp','Qxyyp','\x20-\x20','39927xQhhfr','automationLogger','log','File','uncolorize','accessKey','jBymn','9816564AUrekn','debugLoggerFile','fileLogger','/sdk-cli-debug.log','true','logDir','silly','config','createLogger'];a108_0x5b0c=function(){return _0xab2846;};return a108_0x5b0c();}a108_0x180a70[a108_0x3209f(0x209)]=!![];const winstonFileLoggerParams={'format':winston[a108_0x3209f(0x1e0)][a108_0x3209f(0x207)](winston[a108_0x3209f(0x1e0)]['timestamp'](a108_0x1e32bf),winston[a108_0x3209f(0x1e0)]['colorize'](a108_0x180a70),winston[a108_0x3209f(0x1e0)]['printf'](_0x48bbb7=>_0x48bbb7['level']+':\x20'+_0x48bbb7['message'])),'transports':[]},a108_0x57402a={};a108_0x57402a[a108_0x3209f(0x1e0)]=a108_0x3209f(0x1f7);const a108_0x1daf3d={};a108_0x1daf3d['level']=!![];const a108_0x2614ba={};a108_0x2614ba[a108_0x3209f(0x209)]='silly';const BuildLoggerParams={'format':winston['format']['combine'](winston[a108_0x3209f(0x1e0)]['timestamp'](a108_0x57402a),winston[a108_0x3209f(0x1e0)][a108_0x3209f(0x21a)](a108_0x1daf3d),winston[a108_0x3209f(0x1e0)][a108_0x3209f(0x20f)](_0x3907ba=>_0x3907ba[a108_0x3209f(0x1e1)]+'\x20-\x20'+_0x3907ba[a108_0x3209f(0x209)]+':\x20'+_0x3907ba[a108_0x3209f(0x1fe)])),'transports':[transports['buildLinkTransport'],new winston[(a108_0x3209f(0x201))][(a108_0x3209f(0x20e))](a108_0x2614ba)]},a108_0x398748={};a108_0x398748['http']=()=>{},a108_0x398748['info']=()=>{},a108_0x398748['warn']=()=>{},a108_0x398748[a108_0x3209f(0x1fc)]=()=>{},a108_0x398748[a108_0x3209f(0x1f8)]=()=>{},a108_0x398748[a108_0x3209f(0x1f1)]=()=>{},exports[a108_0x3209f(0x1e5)]=process[a108_0x3209f(0x1dc)][a108_0x3209f(0x1fd)]===a108_0x3209f(0x1ef)?winston[a108_0x3209f(0x1f3)]({'format':winston['format'][a108_0x3209f(0x207)](winston[a108_0x3209f(0x1e0)][a108_0x3209f(0x1e8)](),winston[a108_0x3209f(0x1e0)][a108_0x3209f(0x1e1)](),logFormat(),winston['format'][a108_0x3209f(0x20f)](_0x14472e=>_0x14472e['level']+':\x20'+_0x14472e['message'])),'transports':[automationTransports[a108_0x3209f(0x218)]]}):a108_0x398748;const initialize=()=>{const _0x4b8faa=a108_0x3209f,_0x3e8cb5={};_0x3e8cb5['thuYY']='2|0|3|5|4|1',_0x3e8cb5['sBRKo']=_0x4b8faa(0x1f1);const _0x227ffd=_0x3e8cb5,_0x45deab=_0x227ffd[_0x4b8faa(0x20a)]['split']('|');let _0x1fc678=0x0;while(!![]){switch(_0x45deab[_0x1fc678++]){case'0':transports[_0x4b8faa(0x1ec)]=new winston[(_0x4b8faa(0x201))][(_0x4b8faa(0x1e7))]({'filename':path['join'](exports[_0x4b8faa(0x1f0)],DEBUG_LOG_FILE_NAME),'level':_0x227ffd[_0x4b8faa(0x1fb)]});continue;case'1':exports['fileLogger'][_0x4b8faa(0x21f)](transports[_0x4b8faa(0x1ec)]);continue;case'2':transports['loggerFile']=new winston[(_0x4b8faa(0x201))][(_0x4b8faa(0x1e7))]({'filename':path[_0x4b8faa(0x222)](exports['logDir'],LOG_FILE_NAME)});continue;case'3':exports[_0x4b8faa(0x1f6)][_0x4b8faa(0x21f)](transports['loggerFile']);continue;case'4':exports[_0x4b8faa(0x1ed)][_0x4b8faa(0x21f)](transports[_0x4b8faa(0x1df)]);continue;case'5':exports['winstonLogger']['add'](transports[_0x4b8faa(0x1ec)]);continue;}break;}};exports[a108_0x3209f(0x1f6)]=new winston[(a108_0x3209f(0x1f3))](winstonLoggerParams),exports['fileLogger']=new winston[(a108_0x3209f(0x1f3))](winstonFileLoggerParams),exports[a108_0x3209f(0x1dd)]=new winston[(a108_0x3209f(0x1f3))](BuildLoggerParams),exports[a108_0x3209f(0x1f0)]=logDir,exports[a108_0x3209f(0x212)]=()=>{return exports['logDir'];},exports[a108_0x3209f(0x201)]=transports,exports[a108_0x3209f(0x216)]=initialize;logDir&&initialize();
|
package/src/helpers/metadata.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a109_0x491cbf=a109_0x7d4f;(function(_0x1a8d0c,_0x51d5ec){const _0x9ce70d=a109_0x7d4f,_0x25f1d1=_0x1a8d0c();while(!![]){try{const _0x4ba61c=-parseInt(_0x9ce70d(0x181))/0x1+parseInt(_0x9ce70d(0x183))/0x2+parseInt(_0x9ce70d(0x176))/0x3+-parseInt(_0x9ce70d(0x173))/0x4+-parseInt(_0x9ce70d(0x172))/0x5*(-parseInt(_0x9ce70d(0x177))/0x6)+parseInt(_0x9ce70d(0x186))/0x7*(parseInt(_0x9ce70d(0x175))/0x8)+-parseInt(_0x9ce70d(0x179))/0x9;if(_0x4ba61c===_0x51d5ec)break;else _0x25f1d1['push'](_0x25f1d1['shift']());}catch(_0x2ce85d){_0x25f1d1['push'](_0x25f1d1['shift']());}}}(a109_0x51f8,0xbc247));const globals=require(a109_0x491cbf(0x17a)),helper=require(a109_0x491cbf(0x16a)),logger=require(a109_0x491cbf(0x16b))[a109_0x491cbf(0x17f)];function a109_0x51f8(){const _0x5415b2=['setGlobal','156863LhQNrx','DSAZL','testMeta-','length','./helper','./logger','get','YlZAr','warn','NltZU','exports','set','751715lSXswj','1183448ptaobO','testMeta','296KiuGDA','1611558ywFoqh','30ygGxrF','The\x20metadata\x20object\x20is\x20not\x20valid.','8373267gpfbeJ','./globals','getGlobal','hsEgg','getCentralUser','identifier','winstonLogger','string','1523933wcsbVv','UhrvN','2805510ZOsBDS','lcnc'];a109_0x51f8=function(){return _0x5415b2;};return a109_0x51f8();}function a109_0x7d4f(_0x47dae6,_0x4edca0){const _0x51f84d=a109_0x51f8();return a109_0x7d4f=function(_0x7d4fd0,_0x370f7b){_0x7d4fd0=_0x7d4fd0-0x169;let _0x3af44c=_0x51f84d[_0x7d4fd0];return _0x3af44c;},a109_0x7d4f(_0x47dae6,_0x4edca0);}module[a109_0x491cbf(0x170)]=class TestMetadata{static[a109_0x491cbf(0x171)](_0x3dd39f={}){const _0x39a7b2=a109_0x491cbf,_0x57ffc8={};_0x57ffc8[_0x39a7b2(0x17c)]='testRunUUID',_0x57ffc8['DSAZL']=function(_0x3c978a,_0x15c685){return _0x3c978a===_0x15c685;},_0x57ffc8['WeoCy']=_0x39a7b2(0x180),_0x57ffc8[_0x39a7b2(0x16d)]=function(_0x24ac04,_0x2c2257){return _0x24ac04<=_0x2c2257;},_0x57ffc8[_0x39a7b2(0x182)]=_0x39a7b2(0x174),_0x57ffc8[_0x39a7b2(0x16f)]=_0x39a7b2(0x178);const _0x279285=_0x57ffc8,_0x4b7bee=globals[_0x39a7b2(0x17b)](_0x279285['hsEgg']),_0x286e00=_0x3dd39f[_0x39a7b2(0x17e)];helper[_0x39a7b2(0x17d)]()[_0x39a7b2(0x184)]&&(_0x279285[_0x39a7b2(0x187)](typeof _0x286e00,_0x279285['WeoCy'])&&_0x279285[_0x39a7b2(0x16d)](_0x286e00[_0x39a7b2(0x169)],0x28)?_0x4b7bee?globals[_0x39a7b2(0x185)](_0x39a7b2(0x188)+_0x4b7bee,_0x3dd39f):globals['setGlobal'](_0x279285['UhrvN'],_0x3dd39f):logger[_0x39a7b2(0x16e)](_0x279285['NltZU']));}static[a109_0x491cbf(0x16c)](_0x30e53c){const _0x3148b5=a109_0x491cbf,_0x579c05={};_0x579c05['ZFjnE']=_0x3148b5(0x174);const _0x56acfa=_0x579c05;if(helper[_0x3148b5(0x17d)]()[_0x3148b5(0x184)])return globals[_0x3148b5(0x17b)](_0x3148b5(0x188)+_0x30e53c)||globals[_0x3148b5(0x17b)](_0x56acfa['ZFjnE'])||{};return{};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a108_0x43d7(){const _0x49c758=['oiMmA','wWprG','RRaDV','44262860vsdrMg','name_','ntCPx','command','toString','WERre','TmGGQ','aKRSy','621462zwqPyL','nestedKeyValue','isBrowserstackInfra','GVQuc','value','Xuvsm','cCrbC','PFJlz','handleFailure','PRE_EXECUTE','LfEOq','cpzew','JavascriptError','Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','execute','executeAsyncScript','FHwyj','local','args','overrideExecute','getId','vtjGv','initExecute','./logger','format','KrqRJ','dqnqW','isSelfHealEnabled','QSndI','setTcgTokenStatus','KtzqP','UpCFQ','BmBnc','./performance/performance-tester','using','fVXgU','hXZdE','NoSuchElementError','ZimLr','parameters','url','kVWzq','capability','1186gRbDgg','handleSuccess','getTcgTokenStatus','gdgum','util','message','toISOString','skipHealingSuccess','EbPNl','find','DtFHD','AXGOz','info','5402184XvgVsy','response','vQNGr','findElement','SqoBX','wYwfz','NUDGE_LOCAL_ERRORS','Successfully\x20healed\x20command\x20using\x20new\x20','getSession','aiHeal:findElementSuccess','vjZFx','qwMZe','./globals','ivGoh','3yqsMTR','aiSdk_defaultLogDataEnabled','LrsXL','zoQeh','diAhu','body','qNWor','kJqYz','gmThe','aiHeal_isAuthenticated','setTcgToken','./performance/constants','ikGKb','1133420sZCvAy','debug','./helper','POST_EXECUTE','bstack:options','Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','388ICREml','WAxtl','TrBNy','yfALO','YRJmW','NmdeI','patchExecute','][\x20SDK-AUTOMATION\x20]\x20','Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20','parameters_','KhgcS','setAiSessionTimeStamp','CuQEF','ezskg',';\x20Trying\x20to\x20heal','aiHeal_isHealingEnabled','AUTOMATION_LOG_COMMANDS','error','bCQdC','findElement\x20command\x20failed\x20with\x20','opPcj','9121833IhlAoa','getGlobal','includes','eLtUX','5062547flrhCx','./ai-sdk/autoHealHelper','./ai-sdk/aiSdkWrapper','getNudgeLocalNotSetError','LOJjH','silly','45TRNYZB','Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','HuPdz','measureWrapper','MSzYm','lVGvQ','mVcxI','qcCDL','KrCCv','Maeru','../bin/utils/constants','aceKn','uAYhl','GFJCV'];a108_0x43d7=function(){return _0x49c758;};return a108_0x43d7();}const a108_0x13a3a8=a108_0x2455;(function(_0x286916,_0x1f91d9){const _0x1e693e=a108_0x2455,_0x543191=_0x286916();while(!![]){try{const _0x27c51e=-parseInt(_0x1e693e(0x168))/0x1*(parseInt(_0x1e693e(0x196))/0x2)+parseInt(_0x1e693e(0x183))/0x3*(-parseInt(_0x1e693e(0x190))/0x4)+parseInt(_0x1e693e(0x1b5))/0x5*(-parseInt(_0x1e693e(0x1ce))/0x6)+-parseInt(_0x1e693e(0x1af))/0x7+-parseInt(_0x1e693e(0x175))/0x8+-parseInt(_0x1e693e(0x1ab))/0x9+parseInt(_0x1e693e(0x1c6))/0xa;if(_0x27c51e===_0x1f91d9)break;else _0x543191['push'](_0x543191['shift']());}catch(_0x46df88){_0x543191['push'](_0x543191['shift']());}}}(a108_0x43d7,0x8ad2f));function a108_0x2455(_0x4f83a9,_0x4ff8f9){const _0x43d7c0=a108_0x43d7();return a108_0x2455=function(_0x245513,_0x153a23){_0x245513=_0x245513-0x159;let _0x55d51f=_0x43d7c0[_0x245513];return _0x55d51f;},a108_0x2455(_0x4f83a9,_0x4ff8f9);}const {aiSdkWrapper}=require(a108_0x13a3a8(0x1b1)),{commandRepository}=require(a108_0x13a3a8(0x1b0)),PerformanceTester=require(a108_0x13a3a8(0x15e)),globals=require(a108_0x13a3a8(0x181)),{winstonLogger:logger,automationLogger}=require(a108_0x13a3a8(0x1e5)),helper=require(a108_0x13a3a8(0x192)),constants=require(a108_0x13a3a8(0x1bf)),{DRIVER_EVENT:PerformanceDriverEvents}=require(a108_0x13a3a8(0x18e)),util=require(a108_0x13a3a8(0x16c));exports[a108_0x13a3a8(0x1e1)]=(_0x4d8299,_0x5a3db0)=>{const _0x44c34f=a108_0x13a3a8,_0x21978d={'qcCDL':_0x44c34f(0x18c),'ezskg':'aiHeal:setToken','vQNGr':function(_0x434a54){return _0x434a54();},'AOuiN':_0x44c34f(0x184),'bCQdC':function(_0x161b99,_0x37d77b){return _0x161b99===_0x37d77b;},'oiMmA':_0x44c34f(0x178),'kLSMQ':_0x44c34f(0x1a5),'qNWor':_0x44c34f(0x17e),'WERre':_0x44c34f(0x1b6),'TrBNy':_0x44c34f(0x162),'qwMZe':function(_0x412246,_0x182f93){return _0x412246===_0x182f93;},'opPcj':_0x44c34f(0x1da),'AXGOz':'css\x20selector','UpCFQ':function(_0x6b061a,_0x5ecb83){return _0x6b061a+_0x5ecb83;},'mVcxI':'findElement\x20command\x20failed\x20with\x20cssPath:\x20','hXZdE':_0x44c34f(0x1a4),'kvIhR':function(_0x5df247,_0x38e0cf){return _0x5df247+_0x38e0cf;},'yfALO':_0x44c34f(0x1a9),'LfEOq':'aiHeal:findElementFailure','PPtMQ':function(_0x445f8a){return _0x445f8a();},'aceKn':function(_0x4e1fe7,_0x19e882){return _0x4e1fe7&&_0x19e882;},'KtzqP':_0x44c34f(0x1db),'ikGKb':function(_0x3108f4,_0x4a761e){return _0x3108f4+_0x4a761e;},'LrsXL':_0x44c34f(0x17c),'EbPNl':function(_0x1d8d72,_0x564926){return _0x1d8d72+_0x564926;},'CuQEF':'Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','zoQeh':function(_0x53485c,_0x3d2322){return _0x53485c+_0x3d2322;},'fVXgU':'Healing\x20failed\x20for\x20command\x20using\x20','BmBnc':'get','vjZFx':_0x44c34f(0x19f),'wWprG':_0x44c34f(0x165),'PVApc':_0x44c34f(0x195),'ivGoh':function(_0x643902,_0xfaac18){return _0x643902===_0xfaac18;},'GTaxM':_0x44c34f(0x1dd),'kJqYz':function(_0xec2477,_0x2b35e){return _0xec2477===_0x2b35e;},'LOJjH':'executeScript','KrCCv':'string','YRJmW':_0x44c34f(0x167),'lQcMM':'browserstack.local','pZiNk':_0x44c34f(0x194),'QSndI':_0x44c34f(0x1df)},_0x59670f=_0x4d8299[_0x44c34f(0x19c)]||(helper[_0x44c34f(0x1cf)](_0x5a3db0,[_0x21978d[_0x44c34f(0x19a)],_0x21978d['lQcMM']])||helper[_0x44c34f(0x1cf)](_0x5a3db0,[_0x21978d[_0x44c34f(0x19a)],_0x21978d['pZiNk'],_0x21978d[_0x44c34f(0x159)]]));if(!globals[_0x44c34f(0x1ac)](_0x21978d['qcCDL'])&&!globals[_0x44c34f(0x1ac)](_0x21978d['kLSMQ'])&&_0x59670f)return;_0x4d8299[_0x44c34f(0x19c)]=!![],_0x4d8299[_0x44c34f(0x1e4)]=_0x4d8299[_0x44c34f(0x1dc)],_0x4d8299[_0x44c34f(0x1dc)]=async _0x5135a4=>{const _0x3efe1d=_0x44c34f,_0x5ed0bd={'WAxtl':_0x21978d['AOuiN'],'SqoBX':function(_0x3d3d6a,_0x12efc5){const _0x2b2af6=a108_0x2455;return _0x21978d[_0x2b2af6(0x1a8)](_0x3d3d6a,_0x12efc5);},'lVGvQ':_0x21978d[_0x3efe1d(0x1c3)],'PFJlz':_0x21978d[_0x3efe1d(0x1bc)],'KhgcS':_0x21978d['kLSMQ'],'FHwyj':_0x21978d[_0x3efe1d(0x189)],'GFJCV':function(_0x3295e7){return _0x21978d['vQNGr'](_0x3295e7);},'nWQoU':_0x21978d[_0x3efe1d(0x1cb)],'HuPdz':function(_0x15a495,_0xe9e567){return _0x21978d['bCQdC'](_0x15a495,_0xe9e567);},'ESqCo':_0x21978d[_0x3efe1d(0x198)],'kVWzq':function(_0x3fa726,_0x36fda4){const _0x972c96=_0x3efe1d;return _0x21978d[_0x972c96(0x180)](_0x3fa726,_0x36fda4);},'cCrbC':_0x21978d[_0x3efe1d(0x1aa)],'gmThe':function(_0x2af8f1,_0xb01ed8){const _0x5e8f9d=_0x3efe1d;return _0x21978d[_0x5e8f9d(0x1a8)](_0x2af8f1,_0xb01ed8);},'ZimLr':_0x21978d[_0x3efe1d(0x173)],'Maeru':function(_0x1d336d,_0x1febe2){const _0x468764=_0x3efe1d;return _0x21978d[_0x468764(0x15c)](_0x1d336d,_0x1febe2);},'Xuvsm':_0x21978d[_0x3efe1d(0x1bb)],'NmdeI':_0x21978d[_0x3efe1d(0x161)],'ntCPx':function(_0x7967bf,_0x18c8ea){return _0x21978d['kvIhR'](_0x7967bf,_0x18c8ea);},'cpzew':_0x21978d[_0x3efe1d(0x199)],'MSzYm':_0x21978d[_0x3efe1d(0x1d8)],'gdgum':function(_0x48ef26){return _0x21978d['PPtMQ'](_0x48ef26);},'RhiBr':function(_0x1c506c,_0xda2ce6){const _0x570780=_0x3efe1d;return _0x21978d[_0x570780(0x1c0)](_0x1c506c,_0xda2ce6);},'diAhu':function(_0x2cc575,_0x512509){const _0x32d28e=_0x3efe1d;return _0x21978d[_0x32d28e(0x1a8)](_0x2cc575,_0x512509);},'EVLrK':_0x21978d[_0x3efe1d(0x15b)],'uAYhl':function(_0x437d0e,_0x429c05){const _0x21aa7d=_0x3efe1d;return _0x21978d[_0x21aa7d(0x15c)](_0x437d0e,_0x429c05);},'KrqRJ':function(_0x403971,_0x273f96){return _0x21978d['ikGKb'](_0x403971,_0x273f96);},'wYwfz':function(_0x172ce0,_0x38bbfd){const _0x3cf0cd=_0x3efe1d;return _0x21978d[_0x3cf0cd(0x18f)](_0x172ce0,_0x38bbfd);},'quuQA':_0x21978d[_0x3efe1d(0x185)],'DtFHD':function(_0x39b1aa,_0xd4399){const _0x39956d=_0x3efe1d;return _0x21978d[_0x39956d(0x170)](_0x39b1aa,_0xd4399);},'vtjGv':_0x21978d[_0x3efe1d(0x1a2)],'HcTFR':function(_0x294ef7,_0x3f8c0d){const _0x177807=_0x3efe1d;return _0x21978d[_0x177807(0x186)](_0x294ef7,_0x3f8c0d);},'dqnqW':_0x21978d[_0x3efe1d(0x160)],'aKRSy':function(_0x591ad4,_0xb0ef2f){return _0x21978d['bCQdC'](_0x591ad4,_0xb0ef2f);},'RRaDV':_0x21978d[_0x3efe1d(0x15d)],'GVQuc':_0x21978d[_0x3efe1d(0x17f)],'eLtUX':_0x21978d[_0x3efe1d(0x1c4)],'ZIxgb':_0x21978d['PVApc']};try{const _0x470644={};_0x470644[_0x3efe1d(0x1c9)]=_0x5135a4['name_'],await PerformanceTester[_0x3efe1d(0x1b8)](PerformanceDriverEvents[_0x3efe1d(0x1d7)],async()=>{const _0x47f034=_0x3efe1d,_0x21e95c={};_0x21e95c[_0x47f034(0x1cc)]=_0x21978d[_0x47f034(0x1bc)];const _0x446538=_0x21e95c;if(!commandRepository[_0x47f034(0x16a)]()&&globals['getGlobal'](_0x21978d[_0x47f034(0x1bc)])){const _0x71e2f5=PerformanceTester[_0x47f034(0x1b8)](_0x21978d[_0x47f034(0x1a3)],async()=>{const _0x3b12d1=_0x47f034;try{commandRepository[_0x3b12d1(0x15a)](!![]),await aiSdkWrapper[_0x3b12d1(0x18d)]((await _0x4d8299['getSession']())[_0x3b12d1(0x1e2)]());const _0x5e96a6=globals[_0x3b12d1(0x1ac)](_0x446538[_0x3b12d1(0x1cc)]);_0x5e96a6&&commandRepository[_0x3b12d1(0x1a1)]((await _0x4d8299[_0x3b12d1(0x17d)]())[_0x3b12d1(0x1e2)]());}catch(_0x282f50){logger[_0x3b12d1(0x1a7)]('Error\x20in\x20handling\x20TCG\x20Auth:\x20'+_0x282f50);}});await _0x21978d[_0x47f034(0x177)](_0x71e2f5);}},_0x470644)();const _0x54f92c=await _0x4d8299[_0x3efe1d(0x1e4)](_0x5135a4);try{if(_0x21978d[_0x3efe1d(0x182)](_0x5135a4[_0x3efe1d(0x1c7)],_0x21978d['GTaxM'])||_0x21978d[_0x3efe1d(0x18a)](_0x5135a4[_0x3efe1d(0x1c7)],_0x21978d[_0x3efe1d(0x1b3)])){const _0x5848f9=_0x5135a4[_0x3efe1d(0x19f)]&&_0x5135a4[_0x3efe1d(0x19f)]['script'],_0x530b3f=_0x5135a4['parameters_']&&_0x5135a4['parameters_'][_0x3efe1d(0x1e0)],_0x554816=_0x530b3f&&util['format']('%j',_0x530b3f);if(_0x5848f9&&_0x21978d[_0x3efe1d(0x182)](typeof _0x5848f9,_0x21978d[_0x3efe1d(0x1bd)])){const _0x719391=constants[_0x3efe1d(0x1a6)][_0x3efe1d(0x171)](_0x59e8bb=>_0x5848f9[_0x3efe1d(0x1ad)](_0x59e8bb)||_0x554816&&_0x554816[_0x3efe1d(0x1ad)](_0x59e8bb));if(_0x719391){const _0x3d1726={};_0x3d1726[_0x3efe1d(0x1c9)]=_0x719391,_0x3d1726[_0x3efe1d(0x164)]=_0x530b3f;const _0xe59b8={};_0xe59b8[_0x3efe1d(0x188)]=_0x54f92c;const _0x459640={};_0x459640['request']=_0x3d1726,_0x459640[_0x3efe1d(0x176)]=_0xe59b8,automationLogger['silly']('['+new Date()[_0x3efe1d(0x16e)]()+_0x3efe1d(0x19d)+util[_0x3efe1d(0x1e6)]('%j',_0x459640));}}}}catch(_0x4b7a05){logger[_0x3efe1d(0x1b4)](_0x3efe1d(0x19e)+_0x4b7a05[_0x3efe1d(0x16d)]);}return await PerformanceTester[_0x3efe1d(0x1b8)](PerformanceDriverEvents[_0x3efe1d(0x193)],async()=>{const _0x47dd4f=_0x3efe1d;if(!helper[_0x47dd4f(0x1d0)]()&&(commandRepository[_0x47dd4f(0x1e9)]()||globals[_0x47dd4f(0x1ac)](_0x5ed0bd[_0x47dd4f(0x197)]))&&_0x5ed0bd[_0x47dd4f(0x179)](_0x5135a4['name_'],_0x5ed0bd[_0x47dd4f(0x1ba)])&&!_0x5135a4[_0x47dd4f(0x16f)]&&globals['getGlobal'](_0x5ed0bd[_0x47dd4f(0x1d5)])&&globals[_0x47dd4f(0x1ac)](_0x5ed0bd[_0x47dd4f(0x1a0)])){const _0x5524be=new Date(),_0x320aa1=PerformanceTester[_0x47dd4f(0x1b8)](_0x5ed0bd[_0x47dd4f(0x1de)],async()=>{const _0x2c2208=_0x47dd4f;return await aiSdkWrapper[_0x2c2208(0x169)](_0x5a3db0,_0x4d8299,_0x5135a4);});await _0x5ed0bd[_0x47dd4f(0x1c2)](_0x320aa1);}},{'command':_0x5135a4[_0x3efe1d(0x1c7)]})(),_0x54f92c;}catch(_0x4c070f){await PerformanceTester[_0x3efe1d(0x1b8)](PerformanceDriverEvents[_0x3efe1d(0x193)],async()=>{const _0x2af67a=_0x3efe1d;logger[_0x2af67a(0x191)](_0x5ed0bd['nWQoU']);try{if(!helper[_0x2af67a(0x1d0)]()&&(_0x5ed0bd[_0x2af67a(0x1b7)](_0x4c070f['name'],_0x5ed0bd['ESqCo'])||_0x5ed0bd['kVWzq'](_0x4c070f['name'],_0x5ed0bd[_0x2af67a(0x1d4)]))&&_0x5ed0bd[_0x2af67a(0x18b)](_0x5135a4[_0x2af67a(0x1c7)],_0x5ed0bd['lVGvQ'])&&commandRepository[_0x2af67a(0x1e9)]()&&globals['getGlobal'](_0x5ed0bd[_0x2af67a(0x1d5)])&&globals[_0x2af67a(0x1ac)](_0x5ed0bd[_0x2af67a(0x1a0)])){_0x5ed0bd[_0x2af67a(0x166)](_0x5135a4[_0x2af67a(0x19f)][_0x2af67a(0x15f)],_0x5ed0bd[_0x2af67a(0x163)])?logger['info'](_0x5ed0bd['Maeru'](_0x5ed0bd[_0x2af67a(0x1be)](_0x5ed0bd[_0x2af67a(0x1d3)],_0x5135a4[_0x2af67a(0x19f)]['value']),_0x5ed0bd[_0x2af67a(0x19b)])):logger[_0x2af67a(0x174)](_0x5ed0bd[_0x2af67a(0x1c8)](_0x5ed0bd[_0x2af67a(0x1be)](_0x5ed0bd['ntCPx'](_0x5ed0bd[_0x2af67a(0x1be)](_0x5ed0bd[_0x2af67a(0x1d9)],_0x5135a4[_0x2af67a(0x19f)]['using']),':\x20'),_0x5135a4[_0x2af67a(0x19f)]['value']),_0x5ed0bd['NmdeI']));const _0x24ebc2=PerformanceTester[_0x2af67a(0x1b8)](_0x5ed0bd[_0x2af67a(0x1b9)],async()=>{const _0x28f97e=_0x2af67a;return await aiSdkWrapper[_0x28f97e(0x1d6)](_0x5a3db0,_0x4d8299,_0x5135a4);}),_0x1238da=new Date(),{locatorType:_0x51876d,locatorValue:_0x3ba063,commandHealed:_0x3a4ba7}=await _0x5ed0bd[_0x2af67a(0x16b)](_0x24ebc2);if(_0x5ed0bd['RhiBr'](_0x51876d,_0x3ba063)){_0x5135a4['parameters_'][_0x2af67a(0x15f)]=_0x51876d,_0x5135a4['parameters_']['value']=_0x3ba063,_0x5135a4[_0x2af67a(0x16f)]=!![];const _0x5e9839=_0x4d8299[_0x2af67a(0x1dc)](_0x5135a4);return _0x5ed0bd[_0x2af67a(0x187)](_0x51876d,_0x5ed0bd['ZimLr'])?logger[_0x2af67a(0x174)](_0x5ed0bd[_0x2af67a(0x1be)](_0x5ed0bd['EVLrK'],_0x3ba063)):logger[_0x2af67a(0x174)](_0x5ed0bd[_0x2af67a(0x1c1)](_0x5ed0bd[_0x2af67a(0x1e7)](_0x5ed0bd[_0x2af67a(0x17a)](_0x5ed0bd['quuQA'],_0x51876d),':\x20'),_0x3ba063)),_0x5e9839;}else!_0x3a4ba7&&(_0x5ed0bd[_0x2af67a(0x18b)](_0x51876d,_0x5ed0bd[_0x2af67a(0x163)])?logger[_0x2af67a(0x174)](_0x5ed0bd[_0x2af67a(0x172)](_0x5ed0bd[_0x2af67a(0x1e3)],_0x5135a4[_0x2af67a(0x19f)][_0x2af67a(0x1d2)])):logger[_0x2af67a(0x174)](_0x5ed0bd[_0x2af67a(0x1be)](_0x5ed0bd[_0x2af67a(0x172)](_0x5ed0bd['HcTFR'](_0x5ed0bd[_0x2af67a(0x1e8)],_0x5135a4['parameters_'][_0x2af67a(0x15f)]),':\x20'),_0x5135a4[_0x2af67a(0x19f)][_0x2af67a(0x1d2)])));}!_0x59670f&&_0x5ed0bd[_0x2af67a(0x1cd)](_0x5135a4[_0x2af67a(0x1c7)],_0x5ed0bd[_0x2af67a(0x1c5)])&&helper[_0x2af67a(0x1cf)](_0x5135a4,[_0x5ed0bd[_0x2af67a(0x1d1)],_0x5ed0bd[_0x2af67a(0x1ae)]])&&!!constants[_0x2af67a(0x17b)]['find'](_0x1d7b3d=>{const _0x939103=_0x2af67a;return _0x4c070f[_0x939103(0x1ca)]()[_0x939103(0x1ad)](_0x1d7b3d);})&&helper[_0x2af67a(0x1b2)](_0x5135a4['parameters_'][_0x2af67a(0x165)],!![]);}catch(_0x1e3763){logger['debug'](_0x5ed0bd['ZIxgb'],_0x1e3763);}},{'success':![],'failure':_0x4c070f})();throw _0x4c070f;}};};
|
|
1
|
+
const a110_0x30312c=a110_0x4ad4;(function(_0x366474,_0x56dd5d){const _0x2bcd28=a110_0x4ad4,_0x174627=_0x366474();while(!![]){try{const _0x1aa229=parseInt(_0x2bcd28(0x124))/0x1*(-parseInt(_0x2bcd28(0x125))/0x2)+parseInt(_0x2bcd28(0x136))/0x3*(-parseInt(_0x2bcd28(0x190))/0x4)+-parseInt(_0x2bcd28(0x15b))/0x5+parseInt(_0x2bcd28(0x160))/0x6+parseInt(_0x2bcd28(0x179))/0x7+parseInt(_0x2bcd28(0x149))/0x8+-parseInt(_0x2bcd28(0x180))/0x9;if(_0x1aa229===_0x56dd5d)break;else _0x174627['push'](_0x174627['shift']());}catch(_0x2acfe9){_0x174627['push'](_0x174627['shift']());}}}(a110_0x21d2,0xa505b));function a110_0x4ad4(_0x50298c,_0x14fdfe){const _0x21d2ed=a110_0x21d2();return a110_0x4ad4=function(_0x4ad4f7,_0x54c501){_0x4ad4f7=_0x4ad4f7-0x117;let _0x48b8e8=_0x21d2ed[_0x4ad4f7];return _0x48b8e8;},a110_0x4ad4(_0x50298c,_0x14fdfe);}const {aiSdkWrapper}=require(a110_0x30312c(0x167)),{commandRepository}=require('./ai-sdk/autoHealHelper'),PerformanceTester=require('./performance/performance-tester'),globals=require('./globals'),{winstonLogger:logger,automationLogger}=require(a110_0x30312c(0x147)),helper=require(a110_0x30312c(0x13d)),constants=require('../bin/utils/constants'),{DRIVER_EVENT:PerformanceDriverEvents}=require(a110_0x30312c(0x138)),util=require(a110_0x30312c(0x13c));function a110_0x21d2(){const _0x5175a6=['browserstack.local','10415512tZdCjS','execute','BzpSL','setTcgTokenStatus','ExEpN','gBCLF','AuEST','HPDuJ','skipHealingSuccess','handleFailure','url','OILBC','xaAJS','name','handleSuccess','isBrowserstackInfra','info','format','1768765xaVnCJ','QOEIM','Successfully\x20healed\x20command\x20using\x20new\x20','sEaTV','ESxwL','2425710hmKpfU','Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','getGlobal','isSelfHealEnabled','initExecute','parameters_','ZVYGI','./ai-sdk/aiSdkWrapper','yyFip','DwbXi','Healing\x20failed\x20for\x20command\x20using\x20','aiHeal:findElementSuccess','aiHeal_isAuthenticated','aiHeal:findElementFailure','getId','FdYFu','PtLHX','MKMbe','ERJKg','PtpyC','FVzdM','hCrPL','klFBt','executeScript','get','8385713fwLTuC','DqoGu','request','message','qfBDd','aiHeal:setToken','debug','444564psJiiU','BGvxQ','aiHeal_isHealingEnabled','patchExecute','getNudgeLocalNotSetError','GMfBK','Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','find','CUdCp','NBDYC','POST_EXECUTE','Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20','yWyws','value','XfDrw','response','388DoYcJI','string','getTcgTokenStatus','aiSdk_defaultLogDataEnabled',';\x20Trying\x20to\x20heal','eabqb','ykFcE','KQXXt','pMHnb','lkTMk','findElement\x20command\x20failed\x20with\x20','cKyaz','SqfLT','kGqvh','using','HNWdE','getSession','toISOString','command','FEAGR','findElement','itjhR','24VVDGaT','102824bVyoFg','IpAAF','findElement\x20command\x20failed\x20with\x20cssPath:\x20','Error\x20in\x20handling\x20TCG\x20Auth:\x20','overrideExecute','includes','silly','nestedKeyValue','qvRQa','lLASP','cCeTl','name_','WMmEK','FdvAx','script','Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','gsyRg','18285vHygwd','AUTOMATION_LOG_COMMANDS','./performance/constants','TZQmm','kIjBP','UofpN','util','./helper','iSLFC','JavascriptError','capability','NUDGE_LOCAL_ERRORS','measureWrapper','axlfW','sTrhQ','jfiYs','Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','./logger'];a110_0x21d2=function(){return _0x5175a6;};return a110_0x21d2();}exports[a110_0x30312c(0x129)]=(_0x214050,_0x3c77fc)=>{const _0x37411d=a110_0x30312c,_0x48804e={'SqfLT':_0x37411d(0x16c),'jfiYs':_0x37411d(0x17e),'OILBC':function(_0x4dd500){return _0x4dd500();},'ykFcE':_0x37411d(0x193),'qfBDd':function(_0x339f15,_0x293ae0){return _0x339f15===_0x293ae0;},'qvRQa':_0x37411d(0x122),'eabqb':_0x37411d(0x182),'MKMbe':_0x37411d(0x16b),'yyFip':function(_0x124d71){return _0x124d71();},'HNWdE':_0x37411d(0x161),'VmvGQ':'NoSuchElementError','QKGIN':_0x37411d(0x13f),'klFBt':'css\x20selector','ESxwL':function(_0xf552db,_0xc2ac2f){return _0xf552db+_0xc2ac2f;},'ZVYGI':_0x37411d(0x127),'AuEST':_0x37411d(0x194),'NBDYC':function(_0x2d594f,_0x585bb9){return _0x2d594f+_0x585bb9;},'CUdCp':_0x37411d(0x118),'kGqvh':_0x37411d(0x16d),'ERJKg':function(_0x3dbc8d,_0x2b8d49){return _0x3dbc8d&&_0x2b8d49;},'gBCLF':_0x37411d(0x146),'dqtfM':_0x37411d(0x15d),'EdHGf':_0x37411d(0x186),'lkTMk':_0x37411d(0x16a),'tnXLO':_0x37411d(0x178),'QOEIM':'parameters_','lLASP':_0x37411d(0x153),'pMHnb':_0x37411d(0x134),'hCrPL':'executeAsyncScript','DqoGu':function(_0x195298,_0x320265){return _0x195298===_0x320265;},'xaAJS':_0x37411d(0x177),'gsyRg':function(_0x16474d,_0x580c58){return _0x16474d===_0x580c58;},'KQXXt':_0x37411d(0x191),'iSLFC':_0x37411d(0x140),'oqsjD':_0x37411d(0x148),'WWqYv':'bstack:options','FdYFu':'local'},_0x3ff518=_0x214050[_0x37411d(0x183)]||(helper['nestedKeyValue'](_0x3c77fc,[_0x48804e['iSLFC'],_0x48804e['oqsjD']])||helper[_0x37411d(0x12c)](_0x3c77fc,[_0x48804e[_0x37411d(0x13e)],_0x48804e['WWqYv'],_0x48804e[_0x37411d(0x16f)]]));if(!globals['getGlobal'](_0x48804e['SqfLT'])&&!globals[_0x37411d(0x162)](_0x48804e[_0x37411d(0x195)])&&_0x3ff518)return;_0x214050['patchExecute']=!![],_0x214050['initExecute']=_0x214050[_0x37411d(0x14a)],_0x214050[_0x37411d(0x14a)]=async _0x3ad960=>{const _0x24e0ba=_0x37411d,_0x1eab57={'XfDrw':_0x48804e[_0x24e0ba(0x11a)],'IpAAF':_0x48804e[_0x24e0ba(0x11d)],'PtLHX':function(_0x462b6b,_0x375006){return _0x48804e['qfBDd'](_0x462b6b,_0x375006);},'SbYaU':_0x48804e['VmvGQ'],'sTrhQ':_0x48804e['QKGIN'],'HPDuJ':_0x48804e[_0x24e0ba(0x12d)],'TZQmm':_0x48804e[_0x24e0ba(0x195)],'WMmEK':function(_0x6864b7,_0x4fee09){const _0x30d2c7=_0x24e0ba;return _0x48804e[_0x30d2c7(0x17d)](_0x6864b7,_0x4fee09);},'FEAGR':_0x48804e[_0x24e0ba(0x176)],'FdvAx':function(_0x19e4c4,_0x3e5798){return _0x48804e['ESxwL'](_0x19e4c4,_0x3e5798);},'FVzdM':function(_0x17588e,_0x4f64e2){return _0x48804e['ESxwL'](_0x17588e,_0x4f64e2);},'MmNia':_0x48804e[_0x24e0ba(0x166)],'GMfBK':_0x48804e[_0x24e0ba(0x14f)],'qLXEd':function(_0x1b3462,_0x2f00a0){const _0x1f8576=_0x24e0ba;return _0x48804e[_0x1f8576(0x15f)](_0x1b3462,_0x2f00a0);},'kIjBP':function(_0x328fdc,_0x361fee){const _0x21a2a8=_0x24e0ba;return _0x48804e[_0x21a2a8(0x189)](_0x328fdc,_0x361fee);},'axlfW':_0x48804e[_0x24e0ba(0x188)],'DwbXi':_0x48804e[_0x24e0ba(0x11b)],'itjhR':function(_0x5b470c){return _0x48804e['OILBC'](_0x5b470c);},'BGvxQ':function(_0x4e6dce,_0x39a525){const _0x3c91ae=_0x24e0ba;return _0x48804e[_0x3c91ae(0x172)](_0x4e6dce,_0x39a525);},'cKyaz':function(_0x2cc0c3,_0x5d2385){return _0x48804e['qfBDd'](_0x2cc0c3,_0x5d2385);},'PtpyC':_0x48804e[_0x24e0ba(0x14e)],'cCeTl':function(_0x3886e7,_0x3f41cb){const _0x48c09d=_0x24e0ba;return _0x48804e[_0x48c09d(0x189)](_0x3886e7,_0x3f41cb);},'XzYws':_0x48804e['dqtfM'],'ExEpN':function(_0x2a566b,_0x4fed3f){const _0x23727a=_0x24e0ba;return _0x48804e[_0x23727a(0x189)](_0x2a566b,_0x4fed3f);},'ySlTD':_0x48804e['EdHGf'],'BzpSL':function(_0x97d482,_0x488a77){const _0x59d447=_0x24e0ba;return _0x48804e[_0x59d447(0x189)](_0x97d482,_0x488a77);},'iWWSc':_0x48804e[_0x24e0ba(0x117)],'yWyws':_0x48804e['tnXLO'],'sEaTV':_0x48804e[_0x24e0ba(0x15c)],'UofpN':_0x48804e[_0x24e0ba(0x12e)],'XcQkX':_0x48804e[_0x24e0ba(0x198)]};try{const _0x2a04e8={};_0x2a04e8['command']=_0x3ad960['name_'],await PerformanceTester[_0x24e0ba(0x142)](PerformanceDriverEvents['PRE_EXECUTE'],async()=>{const _0x34a223=_0x24e0ba;if(!commandRepository[_0x34a223(0x192)]()&&globals[_0x34a223(0x162)](_0x48804e['SqfLT'])){const _0x516bab=PerformanceTester[_0x34a223(0x142)](_0x48804e[_0x34a223(0x145)],async()=>{const _0x4f92a3=_0x34a223;try{commandRepository[_0x4f92a3(0x14c)](!![]),await aiSdkWrapper['setTcgToken']((await _0x214050[_0x4f92a3(0x11e)]())[_0x4f92a3(0x16e)]());const _0x3d82b3=globals[_0x4f92a3(0x162)](_0x1eab57['XfDrw']);_0x3d82b3&&commandRepository['setAiSessionTimeStamp']((await _0x214050[_0x4f92a3(0x11e)]())['getId']());}catch(_0x47ba01){logger['error'](_0x4f92a3(0x128)+_0x47ba01);}});await _0x48804e[_0x34a223(0x154)](_0x516bab);}},_0x2a04e8)();const _0x14cce1=await _0x214050[_0x24e0ba(0x164)](_0x3ad960);try{if(_0x48804e[_0x24e0ba(0x17d)](_0x3ad960[_0x24e0ba(0x130)],_0x48804e[_0x24e0ba(0x175)])||_0x48804e[_0x24e0ba(0x17a)](_0x3ad960[_0x24e0ba(0x130)],_0x48804e[_0x24e0ba(0x155)])){const _0x55e1ec=_0x3ad960['parameters_']&&_0x3ad960['parameters_'][_0x24e0ba(0x133)],_0x302455=_0x3ad960['parameters_']&&_0x3ad960[_0x24e0ba(0x165)]['args'],_0x341945=_0x302455&&util[_0x24e0ba(0x15a)]('%j',_0x302455);if(_0x55e1ec&&_0x48804e[_0x24e0ba(0x135)](typeof _0x55e1ec,_0x48804e[_0x24e0ba(0x197)])){const _0x1cfe1d=constants[_0x24e0ba(0x137)][_0x24e0ba(0x187)](_0x145f14=>_0x55e1ec['includes'](_0x145f14)||_0x341945&&_0x341945['includes'](_0x145f14));if(_0x1cfe1d){const _0x67818b={};_0x67818b[_0x24e0ba(0x120)]=_0x1cfe1d,_0x67818b['parameters']=_0x302455;const _0x5df767={};_0x5df767['body']=_0x14cce1;const _0xeae0d1={};_0xeae0d1[_0x24e0ba(0x17b)]=_0x67818b,_0xeae0d1[_0x24e0ba(0x18f)]=_0x5df767,automationLogger[_0x24e0ba(0x12b)]('['+new Date()[_0x24e0ba(0x11f)]()+'][\x20SDK-AUTOMATION\x20]\x20'+util[_0x24e0ba(0x15a)]('%j',_0xeae0d1));}}}}catch(_0xef213){logger[_0x24e0ba(0x12b)](_0x24e0ba(0x18b)+_0xef213[_0x24e0ba(0x17c)]);}return await PerformanceTester[_0x24e0ba(0x142)](PerformanceDriverEvents[_0x24e0ba(0x18a)],async()=>{const _0x7325fa=_0x24e0ba;if(!helper[_0x7325fa(0x158)]()&&(commandRepository[_0x7325fa(0x163)]()||globals[_0x7325fa(0x162)](_0x48804e[_0x7325fa(0x196)]))&&_0x48804e[_0x7325fa(0x17d)](_0x3ad960[_0x7325fa(0x130)],_0x48804e[_0x7325fa(0x12d)])&&!_0x3ad960[_0x7325fa(0x151)]&&globals['getGlobal'](_0x48804e[_0x7325fa(0x11a)])&&globals['getGlobal'](_0x48804e[_0x7325fa(0x195)])){const _0x959bf4=new Date(),_0x5df975=PerformanceTester[_0x7325fa(0x142)](_0x48804e[_0x7325fa(0x171)],async()=>{const _0x15eb9e=_0x7325fa;return await aiSdkWrapper[_0x15eb9e(0x157)](_0x3c77fc,_0x214050,_0x3ad960);});await _0x48804e[_0x7325fa(0x168)](_0x5df975);}},{'command':_0x3ad960[_0x24e0ba(0x130)]})(),_0x14cce1;}catch(_0x5ef56d){await PerformanceTester[_0x24e0ba(0x142)](PerformanceDriverEvents[_0x24e0ba(0x18a)],async()=>{const _0x51786c=_0x24e0ba;logger['debug'](_0x1eab57[_0x51786c(0x126)]);try{if(!helper[_0x51786c(0x158)]()&&(_0x1eab57['PtLHX'](_0x5ef56d[_0x51786c(0x156)],_0x1eab57['SbYaU'])||_0x1eab57['PtLHX'](_0x5ef56d[_0x51786c(0x156)],_0x1eab57[_0x51786c(0x144)]))&&_0x1eab57[_0x51786c(0x170)](_0x3ad960[_0x51786c(0x130)],_0x1eab57[_0x51786c(0x150)])&&commandRepository[_0x51786c(0x163)]()&&globals['getGlobal'](_0x1eab57[_0x51786c(0x18e)])&&globals[_0x51786c(0x162)](_0x1eab57[_0x51786c(0x139)])){_0x1eab57[_0x51786c(0x131)](_0x3ad960[_0x51786c(0x165)][_0x51786c(0x11c)],_0x1eab57[_0x51786c(0x121)])?logger[_0x51786c(0x159)](_0x1eab57[_0x51786c(0x132)](_0x1eab57['FVzdM'](_0x1eab57['MmNia'],_0x3ad960['parameters_'][_0x51786c(0x18d)]),_0x1eab57['GMfBK'])):logger[_0x51786c(0x159)](_0x1eab57['FdvAx'](_0x1eab57['qLXEd'](_0x1eab57[_0x51786c(0x132)](_0x1eab57[_0x51786c(0x13a)](_0x1eab57[_0x51786c(0x143)],_0x3ad960['parameters_'][_0x51786c(0x11c)]),':\x20'),_0x3ad960[_0x51786c(0x165)][_0x51786c(0x18d)]),_0x1eab57[_0x51786c(0x185)]));const _0x272a0a=PerformanceTester['measureWrapper'](_0x1eab57[_0x51786c(0x169)],async()=>{const _0x3ba830=_0x51786c;return await aiSdkWrapper[_0x3ba830(0x152)](_0x3c77fc,_0x214050,_0x3ad960);}),_0x269d05=new Date(),{locatorType:_0x51d10f,locatorValue:_0x5c159f,commandHealed:_0x5c4d24}=await _0x1eab57[_0x51786c(0x123)](_0x272a0a);if(_0x1eab57[_0x51786c(0x181)](_0x51d10f,_0x5c159f)){_0x3ad960['parameters_'][_0x51786c(0x11c)]=_0x51d10f,_0x3ad960[_0x51786c(0x165)][_0x51786c(0x18d)]=_0x5c159f,_0x3ad960['skipHealingSuccess']=!![];const _0x4061ab=_0x214050['execute'](_0x3ad960);return _0x1eab57['cKyaz'](_0x51d10f,_0x1eab57[_0x51786c(0x121)])?logger[_0x51786c(0x159)](_0x1eab57[_0x51786c(0x174)](_0x1eab57[_0x51786c(0x173)],_0x5c159f)):logger[_0x51786c(0x159)](_0x1eab57[_0x51786c(0x12f)](_0x1eab57[_0x51786c(0x174)](_0x1eab57[_0x51786c(0x174)](_0x1eab57['XzYws'],_0x51d10f),':\x20'),_0x5c159f)),_0x4061ab;}else!_0x5c4d24&&(_0x1eab57[_0x51786c(0x119)](_0x51d10f,_0x1eab57['FEAGR'])?logger[_0x51786c(0x159)](_0x1eab57[_0x51786c(0x14d)](_0x1eab57['ySlTD'],_0x3ad960[_0x51786c(0x165)]['value'])):logger[_0x51786c(0x159)](_0x1eab57[_0x51786c(0x14b)](_0x1eab57[_0x51786c(0x12f)](_0x1eab57[_0x51786c(0x14b)](_0x1eab57['iWWSc'],_0x3ad960[_0x51786c(0x165)]['using']),':\x20'),_0x3ad960[_0x51786c(0x165)][_0x51786c(0x18d)])));}!_0x3ff518&&_0x1eab57[_0x51786c(0x170)](_0x3ad960[_0x51786c(0x130)],_0x1eab57[_0x51786c(0x18c)])&&helper[_0x51786c(0x12c)](_0x3ad960,[_0x1eab57[_0x51786c(0x15e)],_0x1eab57[_0x51786c(0x13b)]])&&!!constants[_0x51786c(0x141)]['find'](_0x18bf63=>{const _0x2d3dd4=_0x51786c;return _0x5ef56d['toString']()[_0x2d3dd4(0x12a)](_0x18bf63);})&&helper[_0x51786c(0x184)](_0x3ad960['parameters_']['url'],!![]);}catch(_0x13faa3){logger[_0x51786c(0x17f)](_0x1eab57['XcQkX'],_0x13faa3);}},{'success':![],'failure':_0x5ef56d})();throw _0x5ef56d;}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a111_0x730c9f=a111_0x2179;function a111_0x2179(_0x4fd5e9,_0x5f10ff){const _0x2f12bc=a111_0x2f12();return a111_0x2179=function(_0x21798d,_0x5cabd2){_0x21798d=_0x21798d-0x1d0;let _0x57deb9=_0x2f12bc[_0x21798d];return _0x57deb9;},a111_0x2179(_0x4fd5e9,_0x5f10ff);}function a111_0x2f12(){const _0x58b1ba=['RtvPf','pid','O11y_EVENTS','6341490DHQnsW','1083090uXLiZJ','TEST_SCREENSHOT','BjFes','BS_TESTOPS_ALLOW_SCREENSHOTS','end','then','./performance/performance-tester','MimEv','quit','initQuit','zLGwg','DWuyV','patchQuit','TAKE_SCREENSHOT','true','patchScreenshot','takeScreenshot','wkcFA','vBwKe','2558822JUTcAR','2zidjqf','5604NNmuoe','toISOString','quitCount_','catch','419072RavRqP','initScreenshot','start','./performance/constants','overrideTakeScreenshot','692LJIoqv','2492224TEuwOJ','UFliI','1262920AJarNO','dXCQX'];a111_0x2f12=function(){return _0x58b1ba;};return a111_0x2f12();}(function(_0x4516da,_0x4fbcad){const _0xe18bf6=a111_0x2179,_0x428c8f=_0x4516da();while(!![]){try{const _0x2d25df=-parseInt(_0xe18bf6(0x1dc))/0x1*(-parseInt(_0xe18bf6(0x1d7))/0x2)+parseInt(_0xe18bf6(0x1d8))/0x3*(parseInt(_0xe18bf6(0x1e1))/0x4)+-parseInt(_0xe18bf6(0x1e4))/0x5+-parseInt(_0xe18bf6(0x1ea))/0x6+-parseInt(_0xe18bf6(0x1d6))/0x7+-parseInt(_0xe18bf6(0x1e2))/0x8+parseInt(_0xe18bf6(0x1e9))/0x9;if(_0x2d25df===_0x4fbcad)break;else _0x428c8f['push'](_0x428c8f['shift']());}catch(_0x32083a){_0x428c8f['push'](_0x428c8f['shift']());}}}(a111_0x2f12,0x52321));const PerformanceTester=require(a111_0x730c9f(0x1f0)),O11yEvents=require(a111_0x730c9f(0x1df))[a111_0x730c9f(0x1e8)];exports[a111_0x730c9f(0x1e0)]=_0x2eb214=>{const _0x22a4a7=a111_0x730c9f,_0x6a944d={'RtvPf':_0x22a4a7(0x1eb),'zLGwg':function(_0x3d06d2,_0x20417c){return _0x3d06d2(_0x20417c);},'TQbUK':function(_0x6b4799,_0x122373){return _0x6b4799(_0x122373);},'MimEv':function(_0x2f1099,_0x5a9f5b){return _0x2f1099!==_0x5a9f5b;},'vBwKe':_0x22a4a7(0x1d1)};if(_0x6a944d[_0x22a4a7(0x1f1)](process['env'][_0x22a4a7(0x1ed)],_0x6a944d[_0x22a4a7(0x1d5)]))return;if(_0x2eb214[_0x22a4a7(0x1d2)])return;_0x2eb214['patchScreenshot']=!![],_0x2eb214[_0x22a4a7(0x1dd)]=_0x2eb214[_0x22a4a7(0x1d3)],_0x2eb214[_0x22a4a7(0x1d3)]=()=>{const _0x4b37cc={'dXCQX':function(_0x857cae,_0x12f550){return _0x6a944d['TQbUK'](_0x857cae,_0x12f550);}};return new Promise(function(_0x2bb680,_0x5d7287){const _0x3be907=a111_0x2179,_0x504837={'zZtVc':_0x6a944d[_0x3be907(0x1e6)],'HDpvo':function(_0x5851bf,_0x32f1eb){const _0x48950f=_0x3be907;return _0x6a944d[_0x48950f(0x1f4)](_0x5851bf,_0x32f1eb);}};_0x2eb214[_0x3be907(0x1dd)]()[_0x3be907(0x1ef)](_0x31c727=>{const _0x20608d=_0x3be907;PerformanceTester[_0x20608d(0x1de)](O11yEvents[_0x20608d(0x1d0)]),process['emit']('bs:addLog:'+process[_0x20608d(0x1e7)],{'timestamp':new Date()[_0x20608d(0x1d9)](),'message':_0x31c727,'kind':_0x504837['zZtVc']}),_0x504837['HDpvo'](_0x2bb680,_0x31c727),PerformanceTester['end'](O11yEvents[_0x20608d(0x1d0)]);})[_0x3be907(0x1db)](_0x4f36d2=>{const _0x2c2d5d=_0x3be907;PerformanceTester[_0x2c2d5d(0x1ee)](O11yEvents[_0x2c2d5d(0x1d0)]),_0x4b37cc[_0x2c2d5d(0x1e5)](_0x5d7287,_0x4f36d2);});});};},exports['overrideQuit']=(_0x4d78b2,_0x206e3f=null)=>{const _0x5243c2=a111_0x730c9f,_0x19d108={'UFliI':function(_0x3ae4ca){return _0x3ae4ca();},'DWuyV':function(_0x331ae9,_0x4dc80e){return _0x331ae9>_0x4dc80e;},'wkcFA':function(_0x2c31f0,_0x5a2e3a){return _0x2c31f0>_0x5a2e3a;}};if(_0x4d78b2[_0x5243c2(0x1f6)])return;_0x4d78b2[_0x5243c2(0x1f6)]=!![],_0x4d78b2['initQuit']=_0x4d78b2[_0x5243c2(0x1f2)],_0x4d78b2['quit']=()=>{const _0x58156d=_0x5243c2,_0x300f0e={'BjFes':function(_0x44807f){const _0x5cff5c=a111_0x2179;return _0x19d108[_0x5cff5c(0x1e3)](_0x44807f);}};if(_0x206e3f){_0x206e3f['quitCount_']+=0x1;if(_0x19d108[_0x58156d(0x1f5)](_0x206e3f['quitCount_'],0x1))return _0x4d78b2['initQuit']();}else{_0x4d78b2[_0x58156d(0x1da)]+=0x1;if(_0x19d108[_0x58156d(0x1d4)](_0x4d78b2[_0x58156d(0x1da)],0x1))return _0x4d78b2[_0x58156d(0x1f3)]();}return new Promise(function(_0x3422c8){const _0x3c785d=_0x58156d;_0x300f0e[_0x3c785d(0x1ec)](_0x3422c8);});};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a112_0x491ec2=a112_0x3bbf;function a112_0x5eae(){const _0x4901dd=['10gXKHPq','../logger','joMyl','520651buZmQX','wObqK','bxoeu','getBinaryPath','app','error','start','9656vqMiSt','http://localhost:5338','../../helpers/performance/constants','stderr','stdout','isRunning','stop','OujIH','7788087MhrWKK','6393BvEkUL','nodeRequest','app:exec','TMseF','Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20','Percy\x20healthcheck\x20successful','Error\x20creating\x20percy\x20config:\x20','percyOptions','CbUbk','child_process','2502120EMrRzb','BiyLU','Percy\x20config\x20created\x20at\x20','join','end',':start','../helper','env','./PercyBinary','fetchPercyToken','LUFvl','version','data','../../helpers/testhub/constants','percy.log','isProcessRunning','MiDZp','GET','1582ZHECVC','402UBKjrH','NPPKT','../../helpers/performance/performance-tester','debug','path','exports','oFwKz','ltaVr','2342604eadYZu','nisAz','lejTY','stringify','winstonLogger','TsFcX','DpvVF','Percy\x20fetch\x20token\x20success','yyKWY','DOWNLOAD','tmpdir','NcsOV','PERCY_SERVER_ADDRESS','close','jZvbX','healthcheck','assign','2778875JlPmdJ','flags'];a112_0x5eae=function(){return _0x4901dd;};return a112_0x5eae();}(function(_0x20b2ef,_0x394189){const _0x11b53a=a112_0x3bbf,_0x2ecfab=_0x20b2ef();while(!![]){try{const _0x4f5a5d=parseInt(_0x11b53a(0xb5))/0x1+parseInt(_0x11b53a(0xe2))/0x2*(-parseInt(_0x11b53a(0xc5))/0x3)+parseInt(_0x11b53a(0x9f))/0x4+-parseInt(_0x11b53a(0xb0))/0x5+-parseInt(_0x11b53a(0xcf))/0x6+-parseInt(_0x11b53a(0xe1))/0x7*(parseInt(_0x11b53a(0xbc))/0x8)+-parseInt(_0x11b53a(0xc4))/0x9*(-parseInt(_0x11b53a(0xb2))/0xa);if(_0x4f5a5d===_0x394189)break;else _0x2ecfab['push'](_0x2ecfab['shift']());}catch(_0x228d9d){_0x2ecfab['push'](_0x2ecfab['shift']());}}}(a112_0x5eae,0x48b09));const fs=require('fs'),path=require(a112_0x491ec2(0xe6)),os=require('os'),{spawn}=require(a112_0x491ec2(0xce)),helper=require(a112_0x491ec2(0xd5)),logger=require('../logger')[a112_0x491ec2(0xa3)],{getLogDir}=require(a112_0x491ec2(0xb3)),testHubConstants=require(a112_0x491ec2(0xdc)),PerformanceTester=require(a112_0x491ec2(0xe4)),{PERCY_EVENTS:PerformanceEvents}=require(a112_0x491ec2(0xbe)),PercyBinary=require(a112_0x491ec2(0xd7));function a112_0x3bbf(_0x1a9136,_0x1a91f1){const _0x5eaefe=a112_0x5eae();return a112_0x3bbf=function(_0x3bbfc7,_0x573346){_0x3bbfc7=_0x3bbfc7-0x9f;let _0x51255d=_0x5eaefe[_0x3bbfc7];return _0x51255d;},a112_0x3bbf(_0x1a9136,_0x1a91f1);}class Percy{#logfile=path[a112_0x491ec2(0xd2)](getLogDir(),a112_0x491ec2(0xdd));#address=process[a112_0x491ec2(0xd6)][a112_0x491ec2(0xab)]||a112_0x491ec2(0xbd);#binaryPath=null;#config=null;#proc=null;#logStream=null;#isApp=![];[a112_0x491ec2(0xde)]=![];constructor(_0x4177d3){const _0x1cc70c=a112_0x491ec2;this.#config=_0x4177d3,!!_0x4177d3[_0x1cc70c(0xb9)]&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x3f06eb=a112_0x491ec2;if(!this.#binaryPath){const _0x50246a=new PercyBinary();PerformanceTester[_0x3f06eb(0xbb)](PerformanceEvents[_0x3f06eb(0xa8)]),this.#binaryPath=await _0x50246a[_0x3f06eb(0xb8)](this.#config),PerformanceTester[_0x3f06eb(0xd3)](PerformanceEvents['DOWNLOAD']);}return this.#binaryPath;}async #sleep(_0x118492){return new Promise(_0x1ed5f8=>setTimeout(_0x1ed5f8,_0x118492));}async['healthcheck'](){const _0x297ba9=a112_0x491ec2,_0x499ecb={};_0x499ecb[_0x297ba9(0xad)]=_0x297ba9(0xe0),_0x499ecb[_0x297ba9(0xd9)]='percy/healthcheck';const _0x318921=_0x499ecb;try{const _0x489185=await helper['nodeRequest'](_0x318921['jZvbX'],_0x318921[_0x297ba9(0xd9)],null,null,this.#address);if(_0x489185)return!![];}catch(_0x2f34bc){return![];}}async[a112_0x491ec2(0xbb)](){const _0x27b90a=a112_0x491ec2,_0x72d2b0={'TMseF':_0x27b90a(0xc7),'NcsOV':'exec','NPPKT':function(_0x223a5d,_0x2bf977,_0x1c4f20,_0x5910b8){return _0x223a5d(_0x2bf977,_0x1c4f20,_0x5910b8);},'wObqK':_0x27b90a(0xac),'ibsmh':_0x27b90a(0xca)},_0x3da342=await this.#getBinaryPath(),_0x26f120={};_0x26f120[_0x27b90a(0xb1)]='a',this.#logStream=fs['createWriteStream'](this.#logfile,_0x26f120);const _0x26bfe4=await this[_0x27b90a(0xd8)](),_0x10c6e1=await this['createPercyConfig']();if(!_0x26bfe4)return![];const _0x26efb9=[(this.#isApp?_0x72d2b0[_0x27b90a(0xc8)]:_0x72d2b0[_0x27b90a(0xaa)])+_0x27b90a(0xd4)];_0x10c6e1&&_0x26efb9['push']('-c',_0x10c6e1);this.#proc=_0x72d2b0[_0x27b90a(0xe3)](spawn,_0x3da342,_0x26efb9,{'env':Object[_0x27b90a(0xaf)](process[_0x27b90a(0xd6)],{'PERCY_TOKEN':_0x26bfe4,'TH_BUILD_UUID':process[_0x27b90a(0xd6)][testHubConstants['ENV_VAR']['BROWSERSTACK_TESTHUB_UUID']]})}),this.#proc[_0x27b90a(0xc0)]['pipe'](this.#logStream),this.#proc[_0x27b90a(0xbf)]['pipe'](this.#logStream),this[_0x27b90a(0xde)]=!![];var _0x189109=this;this.#proc['on'](_0x72d2b0[_0x27b90a(0xb6)],function(_0x1c48ff){const _0x254444=_0x27b90a;_0x189109[_0x254444(0xde)]=![];});do{const _0x5589c2=await this[_0x27b90a(0xae)]();if(_0x5589c2)return logger[_0x27b90a(0xe5)](_0x72d2b0['ibsmh']),!![];await this.#sleep(0x3e8);}while(this[_0x27b90a(0xde)]);return![];}async[a112_0x491ec2(0xc2)](){const _0x54d2c4=a112_0x491ec2,_0x5aa829={'CbUbk':function(_0x3c6277,_0x10a644){return _0x3c6277(_0x10a644);},'BiyLU':function(_0x2543d2,_0x4a44ff,_0x4a27d6){return _0x2543d2(_0x4a44ff,_0x4a27d6);},'lejTY':'exec:stop','ltaVr':_0x54d2c4(0xac)},_0x4db1fc=await this.#getBinaryPath();return new Promise((_0x1a39cd,_0xbd1f44)=>{const _0x480a18=_0x54d2c4,_0x50532e=_0x5aa829[_0x480a18(0xd0)](spawn,_0x4db1fc,[_0x5aa829[_0x480a18(0xa1)]]);_0x50532e['on'](_0x5aa829[_0x480a18(0xe9)],_0x11ad96=>{const _0x27cefc=_0x480a18;this[_0x27cefc(0xde)]=![],this.#logStream&&(this.#logStream[_0x27cefc(0xd3)](),this.#logStream=null),_0x5aa829[_0x27cefc(0xcd)](_0x1a39cd,_0x11ad96);});});}[a112_0x491ec2(0xc1)](){return this['isProcessRunning'];}async[a112_0x491ec2(0xd8)](){const _0x4c91c8=a112_0x491ec2,_0x23c05f={};_0x23c05f['OujIH']=_0x4c91c8(0xb9),_0x23c05f['yyKWY']='automate',_0x23c05f['oFwKz']=_0x4c91c8(0xe0),_0x23c05f[_0x4c91c8(0xa5)]=_0x4c91c8(0xa6);const _0x52c9ec=_0x23c05f,_0x5cf875=this.#config['projectName'];try{const _0x2e1450=this.#isApp?_0x52c9ec[_0x4c91c8(0xc3)]:_0x52c9ec[_0x4c91c8(0xa7)],_0x25bd1b=await helper[_0x4c91c8(0xc6)](_0x52c9ec[_0x4c91c8(0xe8)],'api/app_percy/get_project_token?name='+_0x5cf875+'&type='+_0x2e1450,{},this.#config),_0x4a497d=_0x25bd1b[_0x4c91c8(0xdb)];return logger[_0x4c91c8(0xe5)](_0x52c9ec[_0x4c91c8(0xa5)]),_0x4a497d['token'];}catch(_0x343342){return logger[_0x4c91c8(0xba)](_0x4c91c8(0xc9)+_0x343342),null;}}async['createPercyConfig'](){const _0x855ec8=a112_0x491ec2,_0x228f74={'joMyl':function(_0x419227,_0x2c26b5){return _0x419227(_0x2c26b5);},'bxoeu':function(_0x4a54da,_0x59ac61){return _0x4a54da+_0x59ac61;},'dgMnA':_0x855ec8(0xd1),'IOwTi':function(_0x4869df,_0xd8a72a){return _0x4869df(_0xd8a72a);},'nisAz':'percy.json'};if(!this.#config[_0x855ec8(0xcc)])return null;const _0x1dc020=path['join'](os[_0x855ec8(0xa9)](),_0x228f74[_0x855ec8(0xa0)]),_0x16182b=this.#config[_0x855ec8(0xcc)];return!_0x16182b[_0x855ec8(0xda)]&&(_0x16182b[_0x855ec8(0xda)]='2'),new Promise((_0x649dde,_0x5b0565)=>{const _0x2ac558=_0x855ec8,_0x2aa750={'TsFcX':function(_0x61ed47,_0x54078e){const _0x4d8ddd=a112_0x3bbf;return _0x228f74[_0x4d8ddd(0xb4)](_0x61ed47,_0x54078e);},'gXjlf':function(_0x2fe1b2,_0x57705e){const _0x9b2c6d=a112_0x3bbf;return _0x228f74[_0x9b2c6d(0xb7)](_0x2fe1b2,_0x57705e);},'MxsJu':_0x228f74['dgMnA'],'MiDZp':function(_0x25e8bd,_0xea1cd8){return _0x228f74['IOwTi'](_0x25e8bd,_0xea1cd8);}};fs['writeFile'](_0x1dc020,JSON[_0x2ac558(0xa2)](_0x16182b),_0x47ed42=>{const _0x17f559=_0x2ac558;_0x47ed42&&(logger[_0x17f559(0xba)](_0x17f559(0xcb)+_0x47ed42),_0x2aa750[_0x17f559(0xa4)](_0x649dde,null)),logger[_0x17f559(0xe5)](_0x2aa750['gXjlf'](_0x2aa750['MxsJu'],_0x1dc020)),_0x2aa750[_0x17f559(0xdf)](_0x649dde,_0x1dc020);});});}}module[a112_0x491ec2(0xe7)]=Percy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a111_0x24a3(_0x5c5e4c,_0x4ada57){const _0x2fd297=a111_0x2fd2();return a111_0x24a3=function(_0x24a343,_0x562986){_0x24a343=_0x24a343-0x1c1;let _0x262174=_0x2fd297[_0x24a343];return _0x262174;},a111_0x24a3(_0x5c5e4c,_0x4ada57);}const a111_0x3cde2b=a111_0x24a3;(function(_0x12f59d,_0x4a1f5a){const _0x11ab5d=a111_0x24a3,_0x43f7bb=_0x12f59d();while(!![]){try{const _0x46a95a=-parseInt(_0x11ab5d(0x23f))/0x1+parseInt(_0x11ab5d(0x240))/0x2+parseInt(_0x11ab5d(0x215))/0x3*(-parseInt(_0x11ab5d(0x223))/0x4)+-parseInt(_0x11ab5d(0x1e1))/0x5+-parseInt(_0x11ab5d(0x24a))/0x6*(-parseInt(_0x11ab5d(0x239))/0x7)+parseInt(_0x11ab5d(0x1cb))/0x8+-parseInt(_0x11ab5d(0x1c7))/0x9*(-parseInt(_0x11ab5d(0x246))/0xa);if(_0x46a95a===_0x4a1f5a)break;else _0x43f7bb['push'](_0x43f7bb['shift']());}catch(_0x164009){_0x43f7bb['push'](_0x43f7bb['shift']());}}}(a111_0x2fd2,0xd411e));const {https}=require(a111_0x3cde2b(0x1f1)),url=require(a111_0x3cde2b(0x1cf)),yauzl=require('yauzl'),fs=require('fs'),path=require(a111_0x3cde2b(0x21b)),os=require('os'),{spawn}=require('child_process'),HttpsProxyAgent=require(a111_0x3cde2b(0x1d3)),logger=require(a111_0x3cde2b(0x227))[a111_0x3cde2b(0x249)];function a111_0x2fd2(){const _0x46587e=['KNsRb','hlCeo','mDudK','jVWvP','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)','stdout','8432430VDVuXR','join','mHkZx','fileName','ADSip','HOME','URGYi','cwd','download','nKIGr','lZDOZ','binaryPath','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','tqjDk','Ovcgd','USERNAME','follow-redirects','hasfq','bDTpz','close','https://github.com/percy/cli/releases/latest/download','hVpOx','linux','nuuhr','YhYpK','mNxGP','exports','Saved\x20new\x20ETag\x20for\x20percy\x20binary','proxyHost','bTxjS','function','/Users/','WuWTW','HOMEDRIVE','etag','srueV','LoOsp','openReadStream','If-None-Match','mEjQN','getuid','proxyPort','zOwoH','HgjSn','Error\x20trying\x20to\x20download\x20percy\x20binary','WKoHn','Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20','mkdirSync','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20','ulRUH','platform','match','188715NlPiwn','lazyEntries','createWriteStream','catch','RlVxQ','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20','path','W_OK','BQsgy','extractAndSaveBinary','statusCode','error','DHuNY','nRfPt','100OSYkKu','Yoruz','Okkjn','rqeSP','../logger','rATUv','X_OK','headers','LNAME','KKxih','useCaCertificate','R_OK','xtrgZ','New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','HOMEPATH','NCklE','Failed\x20to\x20read\x20ETag\x20file:\x20','ehwDY','--version','QbvZU','YQIjA','/percy-win.zip','698474NUaJRV','wuASD','sfFnC','readEntry','LIicC','qlLdY','1318039XVGrPL','180416QWzZjM','YPEqV','port','AxBjU','tXojS','ZuutP','10iQFewX','DqhIs','mjXNG','winstonLogger','48UZqyVM','test','entry','homedir','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20','destroy','chmod','warn','utf8','then','env','win32','getBinaryPath','tynGq','debug','pipe','accessSync','26022069dDZDgH','host','writeFileSync','bneQN','13327864AAQRmT','wHltP','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','needsUpdate','url','.browserstack','Connection','Failed\x20to\x20save\x20ETag\x20file:\x20','https-proxy-agent','CdnKq','validateBinary','get','.zip','readFileSync','percy.exe','undefined'];a111_0x2fd2=function(){return _0x46587e;};return a111_0x2fd2();}class PercyBinary{#hostOS=process[a111_0x3cde2b(0x213)];#httpPath=null;#binaryName='percy';#orderedPaths=[path[a111_0x3cde2b(0x1e2)](this.#homedir(),a111_0x3cde2b(0x1d0)),process[a111_0x3cde2b(0x1e8)](),os['tmpdir']()];constructor(){const _0x4a3e76=a111_0x3cde2b,_0x5dead6={};_0x5dead6[_0x4a3e76(0x23b)]=_0x4a3e76(0x1f5),_0x5dead6['wuASD']=function(_0x382c8e,_0x49ffb4){return _0x382c8e+_0x49ffb4;},_0x5dead6[_0x4a3e76(0x21d)]='/percy-osx.zip',_0x5dead6[_0x4a3e76(0x205)]=_0x4a3e76(0x238),_0x5dead6[_0x4a3e76(0x20e)]=_0x4a3e76(0x1d9),_0x5dead6['xtrgZ']=function(_0x116cd5,_0x2b1546){return _0x116cd5+_0x2b1546;},_0x5dead6[_0x4a3e76(0x1dc)]='/percy-linux.zip';const _0xa23e98=_0x5dead6,_0x3fe505=_0xa23e98['sfFnC'];if(this.#hostOS[_0x4a3e76(0x214)](/darwin|mac os/i))this.#httpPath=_0xa23e98[_0x4a3e76(0x23a)](_0x3fe505,_0xa23e98['BQsgy']);else this.#hostOS[_0x4a3e76(0x214)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0xa23e98[_0x4a3e76(0x23a)](_0x3fe505,_0xa23e98['LoOsp']),this.#binaryName=_0xa23e98['WKoHn']):this.#httpPath=_0xa23e98[_0x4a3e76(0x22f)](_0x3fe505,_0xa23e98[_0x4a3e76(0x1dc)]);}#getAvailableDirs(){const _0x1df25c=a111_0x3cde2b,_0x484132={};_0x484132[_0x1df25c(0x1e5)]=function(_0x4bd2a3,_0x1f3f2b){return _0x4bd2a3<_0x1f3f2b;},_0x484132[_0x1df25c(0x244)]=_0x1df25c(0x20d);const _0x455e60=_0x484132;for(var _0x138bcd=0x0;_0x455e60[_0x1df25c(0x1e5)](_0x138bcd,this.#orderedPaths['length']);_0x138bcd++){var _0x39e04e=this.#orderedPaths[_0x138bcd];if(this.#makePath(_0x39e04e))return _0x39e04e;}throw new Error(_0x455e60['tXojS']);}#makePath(_0x585c0e){const _0x3cf8d6=a111_0x3cde2b;try{return _0x585c0e&&!this.#checkPath(_0x585c0e)&&fs[_0x3cf8d6(0x210)](_0x585c0e),!![];}catch{return![];}}#checkPath(_0x46c547,_0x57a392){const _0x264ebb=a111_0x3cde2b,_0x15b786={};_0x15b786[_0x264ebb(0x1ee)]=function(_0x3e1b87,_0x565b0d){return _0x3e1b87|_0x565b0d;},_0x15b786[_0x264ebb(0x1cc)]=function(_0x2e4d47,_0x218f39){return _0x2e4d47!==_0x218f39;},_0x15b786[_0x264ebb(0x1de)]=_0x264ebb(0x1da);const _0x4c5dc2=_0x15b786;_0x57a392=_0x57a392||_0x4c5dc2['tqjDk'](fs[_0x264ebb(0x22e)],fs[_0x264ebb(0x21c)]);try{return fs['accessSync'](_0x46c547,_0x57a392),!![];}catch(_0xf2fd80){if(_0x4c5dc2['wHltP'](typeof fs[_0x264ebb(0x1c6)],_0x4c5dc2[_0x264ebb(0x1de)]))return![];try{return fs['statSync'](_0x46c547),!![];}catch(_0x7862e){return![];}}}#getETagPath(_0x301b0f){const _0x1c1a21=a111_0x3cde2b;return path[_0x1c1a21(0x1e2)](_0x301b0f,this.#binaryName+'.etag');}#loadETag(_0x40fe51){const _0xdb4b02=a111_0x3cde2b,_0x2a770d={};_0x2a770d[_0xdb4b02(0x23e)]=_0xdb4b02(0x252);const _0x3c4eb4=_0x2a770d,_0x5728bc=this.#getETagPath(_0x40fe51);if(this.#checkPath(_0x5728bc))try{return fs[_0xdb4b02(0x1d8)](_0x5728bc,_0x3c4eb4[_0xdb4b02(0x23e)])['trim']();}catch(_0x231b67){logger['warn'](_0xdb4b02(0x233)+_0x231b67);}return null;}#saveETag(_0x45533f,_0x1c1973){const _0xe7260c=a111_0x3cde2b,_0x2b739f={};_0x2b739f[_0xe7260c(0x1d4)]=_0xe7260c(0x1fc);const _0x57c400=_0x2b739f;if(!_0x1c1973)return;try{const _0x116ca3=this.#getETagPath(_0x45533f);fs[_0xe7260c(0x1c9)](_0x116ca3,_0x1c1973),logger[_0xe7260c(0x1c4)](_0x57c400[_0xe7260c(0x1d4)]);}catch(_0x115ce6){logger[_0xe7260c(0x251)](_0xe7260c(0x1d2)+_0x115ce6);}}async #handleBinaryDownload(_0x2c51b9,_0x2b9c8c,_0x2aee0f){const _0x313cc4=a111_0x3cde2b,_0x264f8a={};_0x264f8a[_0x313cc4(0x20b)]=_0x313cc4(0x1ed);const _0x1a8997=_0x264f8a,_0x385382=await this[_0x313cc4(0x1d5)](_0x2c51b9[_0x313cc4(0x1ec)]);if(!_0x385382){logger[_0x313cc4(0x220)](_0x1a8997[_0x313cc4(0x20b)]);const _0x28d3de=await this[_0x313cc4(0x1e9)](_0x2b9c8c,_0x2aee0f);return _0x28d3de[_0x313cc4(0x1ec)];}return _0x2c51b9[_0x313cc4(0x1ec)];}async[a111_0x3cde2b(0x1c2)](_0xa3f4c5){const _0x3ad7ef=a111_0x3cde2b,_0x3e1d22={};_0x3e1d22[_0x3ad7ef(0x1fa)]=_0x3ad7ef(0x1df),_0x3e1d22[_0x3ad7ef(0x1ef)]=_0x3ad7ef(0x230);const _0x198a66=_0x3e1d22,_0x507aad=this.#getAvailableDirs(),_0x875f77=path['join'](_0x507aad,this.#binaryName);if(this.#checkPath(_0x875f77,fs[_0x3ad7ef(0x229)])){const _0x2ba55c=this.#loadETag(_0x507aad);if(_0x2ba55c)try{const _0x19f745=await this[_0x3ad7ef(0x1e9)](_0xa3f4c5,_0x507aad,_0x2ba55c);if(!_0x19f745[_0x3ad7ef(0x1ce)])return logger[_0x3ad7ef(0x1c4)](_0x198a66[_0x3ad7ef(0x1fa)]),_0x875f77;return logger[_0x3ad7ef(0x1c4)](_0x198a66['Ovcgd']),await this.#handleBinaryDownload(_0x19f745,_0xa3f4c5,_0x507aad);}catch(_0xf3e39b){return logger[_0x3ad7ef(0x251)](_0x3ad7ef(0x20f)+_0xf3e39b),_0x875f77;}}const _0x45dccf=await this[_0x3ad7ef(0x1e9)](_0xa3f4c5,_0x507aad);return await this.#handleBinaryDownload(_0x45dccf,_0xa3f4c5,_0x507aad);}[a111_0x3cde2b(0x1e9)](_0x69f8db,_0x277d86,_0x189008=null){const _0x257047=a111_0x3cde2b,_0x3add7e={'QbvZU':function(_0x4927eb,_0x1d4094){return _0x4927eb(_0x1d4094);},'mHkZx':function(_0x41facc,_0x1b038e){return _0x41facc===_0x1b038e;},'ulRUH':_0x257047(0x220),'Okkjn':_0x257047(0x1f4),'jvDat':function(_0x1edfbb,_0x5b72b4){return _0x1edfbb+_0x5b72b4;},'RlVxQ':_0x257047(0x1d7)};_0x277d86&&!this.#checkPath(_0x277d86)&&fs['mkdirSync'](_0x277d86);const _0x1e7b6b=this.#binaryName,_0x231a71=path['join'](_0x277d86,_0x3add7e['jvDat'](_0x1e7b6b,_0x3add7e[_0x257047(0x219)])),_0xce7f5e=fs[_0x257047(0x217)](_0x231a71),_0xb0aaa2=url['parse'](this.#httpPath);if(_0x69f8db[_0x257047(0x1fd)]&&_0x69f8db[_0x257047(0x20a)]){const _0x4fe021={};_0x4fe021[_0x257047(0x1c8)]=_0x69f8db[_0x257047(0x1fd)],_0x4fe021[_0x257047(0x242)]=_0x69f8db[_0x257047(0x20a)],_0xb0aaa2['agent']=new HttpsProxyAgent(_0x4fe021);}if(_0x69f8db['useCaCertificate'])try{_0xb0aaa2['ca']=fs[_0x257047(0x1d8)](_0x69f8db[_0x257047(0x22d)]);}catch(_0x199164){logger[_0x257047(0x220)](_0x257047(0x21a)+_0x199164);}if(_0x189008){const _0x4f27d8={};_0x4f27d8[_0x257047(0x207)]=_0x189008,_0x4f27d8[_0x257047(0x1d1)]=_0x3add7e['Okkjn'],_0xb0aaa2[_0x257047(0x22a)]=_0x4f27d8;}else{const _0x3d628a={};_0x3d628a[_0x257047(0x1d1)]=_0x3add7e[_0x257047(0x225)],_0xb0aaa2[_0x257047(0x22a)]=_0x3d628a;}return new Promise((_0x52279c,_0x213ad9)=>{const _0x1c15d3=_0x257047,_0x4cebd6={'uOAvK':function(_0x303a5d,_0x51613f){const _0x16f1d9=a111_0x24a3;return _0x3add7e[_0x16f1d9(0x236)](_0x303a5d,_0x51613f);}};https[_0x1c15d3(0x1d6)](_0xb0aaa2,_0x1ab1c2=>{const _0x45e0d6=_0x1c15d3,_0x4fc93e={'hasfq':function(_0x175f85,_0x17d6f9){const _0x457d25=a111_0x24a3;return _0x3add7e[_0x457d25(0x236)](_0x175f85,_0x17d6f9);}};if(_0x189008&&_0x3add7e[_0x45e0d6(0x1e3)](_0x1ab1c2[_0x45e0d6(0x21f)],0x130)){_0xce7f5e[_0x45e0d6(0x24f)]();const _0x5942ad={};_0x5942ad['needsUpdate']=![],_0x3add7e[_0x45e0d6(0x236)](_0x52279c,_0x5942ad);return;}const _0x28de2d=_0x1ab1c2[_0x45e0d6(0x22a)][_0x45e0d6(0x203)];_0x28de2d&&this.#saveETag(_0x277d86,_0x28de2d),_0x1ab1c2['pipe'](_0xce7f5e),_0x1ab1c2['on'](_0x3add7e[_0x45e0d6(0x212)],function(_0x20e070){const _0x5e0cba=_0x45e0d6;logger[_0x5e0cba(0x220)](_0x5e0cba(0x1cd)+_0x20e070),_0x4fc93e[_0x5e0cba(0x1f2)](_0x213ad9,_0x20e070);}),_0xce7f5e['on'](_0x3add7e[_0x45e0d6(0x212)],function(_0x4b669d){const _0xf298bc=_0x45e0d6;logger[_0xf298bc(0x220)](_0xf298bc(0x24e)+_0x4b669d),_0x4cebd6['uOAvK'](_0x213ad9,_0x4b669d);}),_0xce7f5e['on'](_0x3add7e['Okkjn'],()=>{const _0x273c5d=_0x45e0d6;this['extractAndSaveBinary'](_0x231a71,_0x277d86)[_0x273c5d(0x253)](_0x4c4d10=>_0x52279c({'needsUpdate':!![],'binaryPath':_0x4c4d10}))[_0x273c5d(0x218)](_0x213ad9);});})['on'](_0x3add7e[_0x1c15d3(0x212)],function(_0x2f3b9b){const _0xd150c0=_0x1c15d3;logger[_0xd150c0(0x220)](_0xd150c0(0x211)+_0x2f3b9b),_0x3add7e[_0xd150c0(0x236)](_0x213ad9,_0x2f3b9b);});});}[a111_0x3cde2b(0x21e)](_0xdc77f2,_0x4a75e0){const _0x48f513=a111_0x3cde2b,_0x1e519a={'NCklE':function(_0x4d6b55,_0x46ddd0){return _0x4d6b55(_0x46ddd0);},'srueV':'end','SBgFE':function(_0x5d8892,_0x28b875){return _0x5d8892===_0x28b875;},'HgjSn':function(_0x3fd934,_0x3ac329){return _0x3fd934(_0x3ac329);},'nRfPt':_0x48f513(0x24c),'DqhIs':_0x48f513(0x220),'mDudK':function(_0x534b9e,_0x5810c2){return _0x534b9e(_0x5810c2);},'bneQN':'0755'},_0x57076b=this.#binaryName,_0x3d451f=path[_0x48f513(0x1e2)](_0x4a75e0,_0x57076b);return new Promise((_0x316748,_0x50ab19)=>{const _0x270924=_0x48f513,_0x5ed4f9={'mjXNG':function(_0x1afecd,_0x495c1c){const _0x1d1546=a111_0x24a3;return _0x1e519a[_0x1d1546(0x20c)](_0x1afecd,_0x495c1c);},'rATUv':function(_0x3d03b5,_0x44c846){const _0x4fa4b2=a111_0x24a3;return _0x1e519a[_0x4fa4b2(0x1dd)](_0x3d03b5,_0x44c846);},'ZuutP':_0x1e519a[_0x270924(0x1ca)]},_0x494c8c={};_0x494c8c[_0x270924(0x216)]=!![],yauzl['open'](_0xdc77f2,_0x494c8c,function(_0x4bc82f,_0xdcf762){const _0x35d736=_0x270924,_0x583d0f={'hVpOx':function(_0x29a39e,_0x39ba02){const _0x20ece6=a111_0x24a3;return _0x1e519a[_0x20ece6(0x232)](_0x29a39e,_0x39ba02);},'jLMId':_0x1e519a[_0x35d736(0x204)],'KNsRb':function(_0x337c49,_0x57cda5){return _0x1e519a['SBgFE'](_0x337c49,_0x57cda5);}};_0x4bc82f&&_0x1e519a[_0x35d736(0x20c)](_0x50ab19,_0x4bc82f),_0xdcf762[_0x35d736(0x23c)](),_0xdcf762['on'](_0x1e519a[_0x35d736(0x222)],_0x4180c3=>{const _0x2c7c86=_0x35d736;if(/\/$/[_0x2c7c86(0x24b)](_0x4180c3['fileName']))_0xdcf762['readEntry']();else{const _0x337ee9=fs['createWriteStream'](path[_0x2c7c86(0x1e2)](_0x4a75e0,_0x4180c3['fileName']));_0xdcf762[_0x2c7c86(0x206)](_0x4180c3,function(_0x2bd8c2,_0x88e2e){const _0x43d87b=_0x2c7c86;_0x2bd8c2&&_0x583d0f['hVpOx'](_0x50ab19,_0x4bc82f),_0x88e2e['on'](_0x583d0f['jLMId'],function(){const _0x3559a8=a111_0x24a3;_0x337ee9[_0x3559a8(0x1f4)](),_0xdcf762[_0x3559a8(0x23c)]();}),_0x88e2e[_0x43d87b(0x1c5)](_0x337ee9);}),_0x583d0f[_0x2c7c86(0x1db)](_0x4180c3[_0x2c7c86(0x1e4)],_0x57076b)&&_0xdcf762[_0x2c7c86(0x1f4)]();}}),_0xdcf762['on'](_0x1e519a[_0x35d736(0x247)],_0x59ff3a=>{const _0x5aaa2c=_0x35d736;_0x583d0f[_0x5aaa2c(0x1f6)](_0x50ab19,_0x59ff3a);}),_0xdcf762['once'](_0x1e519a[_0x35d736(0x204)],()=>{const _0x514983=_0x35d736,_0x34a2c6={'DHuNY':function(_0x7c86c1,_0x4eb650){const _0x5d0729=a111_0x24a3;return _0x5ed4f9[_0x5d0729(0x248)](_0x7c86c1,_0x4eb650);},'nKIGr':function(_0x580cfc,_0x157acd){const _0x3b3a07=a111_0x24a3;return _0x5ed4f9[_0x3b3a07(0x228)](_0x580cfc,_0x157acd);}};fs[_0x514983(0x250)](_0x3d451f,_0x5ed4f9[_0x514983(0x245)],function(_0x563ccc){const _0x1664f3=_0x514983;_0x563ccc&&_0x34a2c6[_0x1664f3(0x221)](_0x50ab19,_0x563ccc),_0x34a2c6[_0x1664f3(0x1ea)](_0x316748,_0x3d451f);}),_0xdcf762[_0x514983(0x1f4)]();});});});}async['validateBinary'](_0x3ab20b){const _0x193514=a111_0x3cde2b,_0x3edc6a={'YQIjA':function(_0x32087e,_0x324ca0){return _0x32087e(_0x324ca0);},'ijaac':function(_0x1ae4b5,_0x25141b,_0x80b9f0,_0x491402){return _0x1ae4b5(_0x25141b,_0x80b9f0,_0x491402);},'Yoruz':_0x193514(0x235),'PIMIf':'data','AxBjU':_0x193514(0x1f4)},_0x3717ab=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0xf4ea6f,_0x6eff1f)=>{const _0x5d6fee=_0x193514,_0x505867={};_0x505867[_0x5d6fee(0x254)]=process[_0x5d6fee(0x254)];const _0x42c924=_0x3edc6a['ijaac'](spawn,_0x3ab20b,[_0x3edc6a[_0x5d6fee(0x224)]],_0x505867);_0x42c924[_0x5d6fee(0x1e0)]['on'](_0x3edc6a['PIMIf'],_0x402e2d=>{const _0x5bf351=_0x5d6fee;_0x3717ab[_0x5bf351(0x24b)](_0x402e2d)&&_0x3edc6a[_0x5bf351(0x237)](_0xf4ea6f,!![]);}),_0x42c924['on'](_0x3edc6a[_0x5d6fee(0x243)],()=>{_0x3edc6a['YQIjA'](_0xf4ea6f,![]);});});}#homedir(){const _0x1c5532=a111_0x3cde2b,_0x4b6cb2={};_0x4b6cb2['YhYpK']=function(_0x466888,_0x47ad0b){return _0x466888===_0x47ad0b;},_0x4b6cb2[_0x1c5532(0x201)]=_0x1c5532(0x1ff),_0x4b6cb2[_0x1c5532(0x226)]=_0x1c5532(0x1c1),_0x4b6cb2['nuuhr']=function(_0x9baae,_0xe09135){return _0x9baae+_0xe09135;},_0x4b6cb2[_0x1c5532(0x1f3)]=function(_0x441f15,_0x11df29){return _0x441f15===_0x11df29;},_0x4b6cb2[_0x1c5532(0x208)]='darwin',_0x4b6cb2[_0x1c5532(0x22c)]=function(_0x4de271,_0x334d76){return _0x4de271+_0x334d76;},_0x4b6cb2['bTxjS']=_0x1c5532(0x200),_0x4b6cb2[_0x1c5532(0x241)]=function(_0x10d607,_0xd9812e){return _0x10d607===_0xd9812e;},_0x4b6cb2[_0x1c5532(0x23d)]=_0x1c5532(0x1f7),_0x4b6cb2[_0x1c5532(0x1c3)]=function(_0x44daf4,_0x117214){return _0x44daf4===_0x117214;},_0x4b6cb2['URGYi']='/root',_0x4b6cb2[_0x1c5532(0x234)]='/home/',_0x4b6cb2[_0x1c5532(0x1eb)]=function(_0x2685fc,_0x138fdf){return _0x2685fc||_0x138fdf;};const _0x2d2c3b=_0x4b6cb2;if(_0x2d2c3b['YhYpK'](typeof os['homedir'],_0x2d2c3b[_0x1c5532(0x201)]))return os[_0x1c5532(0x24d)]();const _0x395240=process[_0x1c5532(0x254)],_0x492ea0=_0x395240[_0x1c5532(0x1e6)],_0x2788fb=_0x395240['LOGNAME']||_0x395240['USER']||_0x395240[_0x1c5532(0x22b)]||_0x395240[_0x1c5532(0x1f0)];if(_0x2d2c3b[_0x1c5532(0x1f9)](process[_0x1c5532(0x213)],_0x2d2c3b[_0x1c5532(0x226)]))return _0x395240['USERPROFILE']||_0x2d2c3b[_0x1c5532(0x1f8)](_0x395240[_0x1c5532(0x202)],_0x395240[_0x1c5532(0x231)])||_0x492ea0||null;if(_0x2d2c3b[_0x1c5532(0x1f3)](process[_0x1c5532(0x213)],_0x2d2c3b['mEjQN']))return _0x492ea0||(_0x2788fb?_0x2d2c3b['KKxih'](_0x2d2c3b[_0x1c5532(0x1fe)],_0x2788fb):null);if(_0x2d2c3b['YPEqV'](process['platform'],_0x2d2c3b['LIicC']))return _0x492ea0||(_0x2d2c3b['tynGq'](process[_0x1c5532(0x209)](),0x0)?_0x2d2c3b[_0x1c5532(0x1e7)]:_0x2788fb?_0x2d2c3b[_0x1c5532(0x22c)](_0x2d2c3b[_0x1c5532(0x234)],_0x2788fb):null);return _0x2d2c3b[_0x1c5532(0x1eb)](_0x492ea0,null);}}module[a111_0x3cde2b(0x1fb)]=PercyBinary;
|
|
1
|
+
const a113_0x4fd43e=a113_0x227a;function a113_0x225e(){const _0xafc330=['Error\x20trying\x20to\x20download\x20percy\x20binary','statusCode','headers','proxyHost','HUkIJ','trWbP','--version','Saved\x20new\x20ETag\x20for\x20percy\x20binary','HjYQz','agent','pipe','tmpdir','BCqJa','NOwpW','knmDS','29318839QPPcDR','HOMEDRIVE','sOUZd','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20','4501QtfZTE','getBinaryPath','dnHCk','76800yiMsaL','ZuHCv','xHOLc','iJMWG','RsOeA','CBcdQ','Connection','.etag','accessSync','1601127HYjAXL','pPmyl','ybgxL','EadtU','Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20','KQWCJ','1536602MEVAoq','R_OK','end','pHoKu','LNAME','raWRI','catch','darwin','Rthhi','data','extractAndSaveBinary','https://github.com/percy/cli/releases/latest/download','env','KqKUy','2757411MEKrri','once','validateBinary','readEntry','percy','BNUoE','HOME','/percy-linux.zip','/root','/home/','proxyPort','JgWbM','qmXIr','warn','child_process','linux','LOGNAME','get','RtbdZ','platform','1416NLWrAc','openReadStream','/percy-win.zip','binaryPath','Failed\x20to\x20save\x20ETag\x20file:\x20','NZozF','/percy-osx.zip','30rXVGcS','then','path','entry','CCKJZ','readFileSync','percy.exe','GBqAu','GbEkI','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','close','fIbwl','WsjVF','undefined','sEUiv','Dhect','Failed\x20to\x20read\x20ETag\x20file:\x20','fileName','jJSqV','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','function','WEvVH','bTfjQ','mkdirSync','LRWgr','2MBaaUJ','ucHlr','416AoPpxh','24JoCsfr','etag','cwd','download','eEPty','useCaCertificate','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20','rtSvh','JPkef','tywux','.browserstack','writeFileSync','BQISf','USER','tEeUK','win32','vyAIp','KGkzp','0755','X_OK','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)','NYYHg','utf8','XGvcQ','9161696bdODXH','zpYPN','YMCHC','Vuaws','createWriteStream','UmfZf','waTlF','match','yauzl','homedir','error','IWxnY','/Users/','xcBqo','open','Zvfhk','zAWEx','test','join','parse'];a113_0x225e=function(){return _0xafc330;};return a113_0x225e();}function a113_0x227a(_0x2d9ac9,_0x1197bb){const _0x225e18=a113_0x225e();return a113_0x227a=function(_0x227a45,_0x31943b){_0x227a45=_0x227a45-0x192;let _0x6eed86=_0x225e18[_0x227a45];return _0x6eed86;},a113_0x227a(_0x2d9ac9,_0x1197bb);}(function(_0x12d180,_0x42fd32){const _0x483656=a113_0x227a,_0x4a9204=_0x12d180();while(!![]){try{const _0x578152=parseInt(_0x483656(0x20b))/0x1*(-parseInt(_0x483656(0x1c9))/0x2)+parseInt(_0x483656(0x1c3))/0x3+-parseInt(_0x483656(0x20d))/0x4*(parseInt(_0x483656(0x1ba))/0x5)+parseInt(_0x483656(0x1eb))/0x6*(parseInt(_0x483656(0x1b7))/0x7)+-parseInt(_0x483656(0x226))/0x8+parseInt(_0x483656(0x1d7))/0x9*(-parseInt(_0x483656(0x1f2))/0xa)+-parseInt(_0x483656(0x1b3))/0xb*(-parseInt(_0x483656(0x20e))/0xc);if(_0x578152===_0x42fd32)break;else _0x4a9204['push'](_0x4a9204['shift']());}catch(_0x7ba94d){_0x4a9204['push'](_0x4a9204['shift']());}}}(a113_0x225e,0xc7a64));const {https}=require('follow-redirects'),url=require('url'),yauzl=require(a113_0x4fd43e(0x198)),fs=require('fs'),path=require(a113_0x4fd43e(0x1f4)),os=require('os'),{spawn}=require(a113_0x4fd43e(0x1e5)),HttpsProxyAgent=require('https-proxy-agent'),logger=require('../logger')['winstonLogger'];class PercyBinary{#hostOS=process[a113_0x4fd43e(0x1ea)];#httpPath=null;#binaryName=a113_0x4fd43e(0x1db);#orderedPaths=[path[a113_0x4fd43e(0x1a2)](this.#homedir(),a113_0x4fd43e(0x218)),process[a113_0x4fd43e(0x210)](),os[a113_0x4fd43e(0x1af)]()];constructor(){const _0x57fdaf=a113_0x4fd43e,_0x4801fb={};_0x4801fb[_0x57fdaf(0x1bc)]=_0x57fdaf(0x1d4),_0x4801fb[_0x57fdaf(0x20c)]=function(_0x1507a5,_0x485b7d){return _0x1507a5+_0x485b7d;},_0x4801fb[_0x57fdaf(0x192)]=_0x57fdaf(0x1f1),_0x4801fb[_0x57fdaf(0x1dc)]=function(_0xeda65d,_0x59fd6c){return _0xeda65d+_0x59fd6c;},_0x4801fb['cjzAE']=_0x57fdaf(0x1ed),_0x4801fb[_0x57fdaf(0x1b1)]=_0x57fdaf(0x1f8),_0x4801fb[_0x57fdaf(0x1a9)]=_0x57fdaf(0x1de);const _0x1853c3=_0x4801fb,_0x5c990a=_0x1853c3[_0x57fdaf(0x1bc)];if(this.#hostOS[_0x57fdaf(0x197)](/darwin|mac os/i))this.#httpPath=_0x1853c3[_0x57fdaf(0x20c)](_0x5c990a,_0x1853c3[_0x57fdaf(0x192)]);else this.#hostOS[_0x57fdaf(0x197)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x1853c3[_0x57fdaf(0x1dc)](_0x5c990a,_0x1853c3['cjzAE']),this.#binaryName=_0x1853c3[_0x57fdaf(0x1b1)]):this.#httpPath=_0x1853c3['ucHlr'](_0x5c990a,_0x1853c3['trWbP']);}#getAvailableDirs(){const _0x5f4b49=a113_0x4fd43e,_0x2e1030={};_0x2e1030[_0x5f4b49(0x195)]=function(_0x3a1987,_0x3b7f31){return _0x3a1987<_0x3b7f31;},_0x2e1030[_0x5f4b49(0x225)]=_0x5f4b49(0x1a4);const _0x5d9dc5=_0x2e1030;for(var _0x28503f=0x0;_0x5d9dc5[_0x5f4b49(0x195)](_0x28503f,this.#orderedPaths['length']);_0x28503f++){var _0x51b31d=this.#orderedPaths[_0x28503f];if(this.#makePath(_0x51b31d))return _0x51b31d;}throw new Error(_0x5d9dc5[_0x5f4b49(0x225)]);}#makePath(_0x1f9b62){try{return _0x1f9b62&&!this.#checkPath(_0x1f9b62)&&fs['mkdirSync'](_0x1f9b62),!![];}catch{return![];}}#checkPath(_0x20d42e,_0xf30a99){const _0x1830e8=a113_0x4fd43e,_0x1f3e2a={};_0x1f3e2a['raWRI']=function(_0x3cdaf8,_0x1d3450){return _0x3cdaf8|_0x1d3450;},_0x1f3e2a[_0x1830e8(0x1d1)]=function(_0x4f16b9,_0x2dc275){return _0x4f16b9!==_0x2dc275;},_0x1f3e2a[_0x1830e8(0x1b0)]=_0x1830e8(0x1ff);const _0x5a8547=_0x1f3e2a;_0xf30a99=_0xf30a99||_0x5a8547[_0x1830e8(0x1ce)](fs[_0x1830e8(0x1ca)],fs['W_OK']);try{return fs['accessSync'](_0x20d42e,_0xf30a99),!![];}catch(_0x1d45a4){if(_0x5a8547[_0x1830e8(0x1d1)](typeof fs[_0x1830e8(0x1c2)],_0x5a8547[_0x1830e8(0x1b0)]))return![];try{return fs['statSync'](_0x20d42e),!![];}catch(_0x117628){return![];}}}#getETagPath(_0x712f18){const _0xa922c7=a113_0x4fd43e;return path[_0xa922c7(0x1a2)](_0x712f18,this.#binaryName+_0xa922c7(0x1c1));}#loadETag(_0x3dc369){const _0x51e202=a113_0x4fd43e,_0x2bb034={};_0x2bb034[_0x51e202(0x1c8)]=_0x51e202(0x224);const _0x3bbe6c=_0x2bb034,_0x1da57e=this.#getETagPath(_0x3dc369);if(this.#checkPath(_0x1da57e))try{return fs[_0x51e202(0x1f7)](_0x1da57e,_0x3bbe6c[_0x51e202(0x1c8)])['trim']();}catch(_0xc8b96f){logger['warn'](_0x51e202(0x202)+_0xc8b96f);}return null;}#saveETag(_0x1fd040,_0x2fc92a){const _0x1c500b=a113_0x4fd43e,_0x511916={};_0x511916['zpYPN']=_0x1c500b(0x1ab);const _0xa6a986=_0x511916;if(!_0x2fc92a)return;try{const _0x3233f2=this.#getETagPath(_0x1fd040);fs[_0x1c500b(0x219)](_0x3233f2,_0x2fc92a),logger['debug'](_0xa6a986[_0x1c500b(0x227)]);}catch(_0x5d3eca){logger[_0x1c500b(0x1e4)](_0x1c500b(0x1ef)+_0x5d3eca);}}async #handleBinaryDownload(_0x5cddb9,_0x131079,_0x25e306){const _0x275000=a113_0x4fd43e,_0x55a70b={};_0x55a70b[_0x275000(0x1bd)]=_0x275000(0x205);const _0x3bf6dc=_0x55a70b,_0x5951e4=await this[_0x275000(0x1d9)](_0x5cddb9[_0x275000(0x1ee)]);if(!_0x5951e4){logger['error'](_0x3bf6dc[_0x275000(0x1bd)]);const _0x4365c1=await this[_0x275000(0x211)](_0x131079,_0x25e306);return _0x4365c1[_0x275000(0x1ee)];}return _0x5cddb9[_0x275000(0x1ee)];}async[a113_0x4fd43e(0x1b8)](_0x351080){const _0x1083d4=a113_0x4fd43e,_0x4dc543={};_0x4dc543[_0x1083d4(0x1f6)]=_0x1083d4(0x222),_0x4dc543[_0x1083d4(0x21c)]='New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update';const _0x20250a=_0x4dc543,_0x2ad202=this.#getAvailableDirs(),_0x65ebba=path[_0x1083d4(0x1a2)](_0x2ad202,this.#binaryName);if(this.#checkPath(_0x65ebba,fs[_0x1083d4(0x221)])){const _0x31d99f=this.#loadETag(_0x2ad202);if(_0x31d99f)try{const _0x1d9255=await this['download'](_0x351080,_0x2ad202,_0x31d99f);if(!_0x1d9255['needsUpdate'])return logger['debug'](_0x20250a[_0x1083d4(0x1f6)]),_0x65ebba;return logger['debug'](_0x20250a[_0x1083d4(0x21c)]),await this.#handleBinaryDownload(_0x1d9255,_0x351080,_0x2ad202);}catch(_0x22d358){return logger[_0x1083d4(0x1e4)](_0x1083d4(0x1c7)+_0x22d358),_0x65ebba;}}const _0x571c60=await this[_0x1083d4(0x211)](_0x351080,_0x2ad202);return await this.#handleBinaryDownload(_0x571c60,_0x351080,_0x2ad202);}[a113_0x4fd43e(0x211)](_0x382c55,_0x1c19a2,_0x578be5=null){const _0x36c2c5=a113_0x4fd43e,_0x52c29a={'EadtU':function(_0xc38051,_0x1851e6){return _0xc38051(_0x1851e6);},'pXhbq':function(_0x192ef7,_0x3758c4){return _0x192ef7===_0x3758c4;},'RtbdZ':function(_0x19f727,_0x57742b){return _0x19f727(_0x57742b);},'waTlF':_0x36c2c5(0x19a),'IWxnY':_0x36c2c5(0x1fc),'zAWEx':function(_0x34bd04,_0x5b74a9){return _0x34bd04+_0x5b74a9;},'LsBPm':'.zip'};_0x1c19a2&&!this.#checkPath(_0x1c19a2)&&fs[_0x36c2c5(0x209)](_0x1c19a2);const _0x46b2ec=this.#binaryName,_0x5e2822=path[_0x36c2c5(0x1a2)](_0x1c19a2,_0x52c29a[_0x36c2c5(0x1a0)](_0x46b2ec,_0x52c29a['LsBPm'])),_0x270e7d=fs['createWriteStream'](_0x5e2822),_0x228629=url[_0x36c2c5(0x1a3)](this.#httpPath);if(_0x382c55['proxyHost']&&_0x382c55[_0x36c2c5(0x1e1)]){const _0x23bff3={};_0x23bff3['host']=_0x382c55[_0x36c2c5(0x1a7)],_0x23bff3['port']=_0x382c55['proxyPort'],_0x228629[_0x36c2c5(0x1ad)]=new HttpsProxyAgent(_0x23bff3);}if(_0x382c55[_0x36c2c5(0x213)])try{_0x228629['ca']=fs[_0x36c2c5(0x1f7)](_0x382c55[_0x36c2c5(0x213)]);}catch(_0x545583){logger[_0x36c2c5(0x19a)]('Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20'+_0x545583);}if(_0x578be5){const _0x9fe4c={};_0x9fe4c['If-None-Match']=_0x578be5,_0x9fe4c[_0x36c2c5(0x1c0)]=_0x52c29a[_0x36c2c5(0x19b)],_0x228629[_0x36c2c5(0x1a6)]=_0x9fe4c;}else{const _0x1ea185={};_0x1ea185[_0x36c2c5(0x1c0)]=_0x52c29a[_0x36c2c5(0x19b)],_0x228629[_0x36c2c5(0x1a6)]=_0x1ea185;}return new Promise((_0x508fce,_0x45a214)=>{const _0x558299=_0x36c2c5;https[_0x558299(0x1e8)](_0x228629,_0x1dfd2d=>{const _0x548164=_0x558299,_0x48ec4a={'eEPty':function(_0x467925,_0x1e7d9b){const _0x49c225=a113_0x227a;return _0x52c29a[_0x49c225(0x1c6)](_0x467925,_0x1e7d9b);}};if(_0x578be5&&_0x52c29a['pXhbq'](_0x1dfd2d[_0x548164(0x1a5)],0x130)){_0x270e7d['destroy']();const _0x31b69f={};_0x31b69f['needsUpdate']=![],_0x52c29a[_0x548164(0x1e9)](_0x508fce,_0x31b69f);return;}const _0x333fcf=_0x1dfd2d[_0x548164(0x1a6)][_0x548164(0x20f)];_0x333fcf&&this.#saveETag(_0x1c19a2,_0x333fcf),_0x1dfd2d[_0x548164(0x1ae)](_0x270e7d),_0x1dfd2d['on'](_0x52c29a['waTlF'],function(_0x26df2d){const _0x5caef9=_0x548164;logger[_0x5caef9(0x19a)](_0x5caef9(0x1fb)+_0x26df2d),_0x48ec4a['eEPty'](_0x45a214,_0x26df2d);}),_0x270e7d['on'](_0x52c29a[_0x548164(0x196)],function(_0x29a198){const _0x56da88=_0x548164;logger['error'](_0x56da88(0x214)+_0x29a198),_0x48ec4a[_0x56da88(0x212)](_0x45a214,_0x29a198);}),_0x270e7d['on'](_0x52c29a['IWxnY'],()=>{const _0x1f883a=_0x548164;this[_0x1f883a(0x1d3)](_0x5e2822,_0x1c19a2)[_0x1f883a(0x1f3)](_0x2e8874=>_0x508fce({'needsUpdate':!![],'binaryPath':_0x2e8874}))[_0x1f883a(0x1cf)](_0x45a214);});})['on'](_0x52c29a[_0x558299(0x196)],function(_0x40153b){const _0x3ee3a7=_0x558299;logger['error'](_0x3ee3a7(0x1b6)+_0x40153b),_0x52c29a[_0x3ee3a7(0x1c6)](_0x45a214,_0x40153b);});});}[a113_0x4fd43e(0x1d3)](_0x577d49,_0x318bb9){const _0x29bc53=a113_0x4fd43e,_0x371076={'sEUiv':function(_0x17cb7a,_0x23450d){return _0x17cb7a===_0x23450d;},'HjYQz':function(_0x515a22,_0x4d4b7b){return _0x515a22(_0x4d4b7b);},'HUkIJ':function(_0x256133,_0x3fde60){return _0x256133(_0x3fde60);},'UJPyF':_0x29bc53(0x1cb),'tywux':_0x29bc53(0x220),'jJSqV':function(_0x13cbc3,_0x469eac){return _0x13cbc3(_0x469eac);},'vyAIp':_0x29bc53(0x1f5),'CBcdQ':_0x29bc53(0x19a)},_0x8fe186=this.#binaryName,_0x7d0d40=path['join'](_0x318bb9,_0x8fe186);return new Promise((_0x4995c0,_0xdfeba8)=>{const _0x855cd=_0x29bc53,_0x54efa7={'PKwDf':function(_0x12f410,_0x53611e){const _0x5c3b91=a113_0x227a;return _0x371076[_0x5c3b91(0x200)](_0x12f410,_0x53611e);},'ybgxL':function(_0x418450,_0x43d509){const _0x2fa9d3=a113_0x227a;return _0x371076[_0x2fa9d3(0x1ac)](_0x418450,_0x43d509);},'Zvfhk':function(_0x25f0fa,_0x1226e1){const _0x58a4f4=a113_0x227a;return _0x371076[_0x58a4f4(0x1a8)](_0x25f0fa,_0x1226e1);},'WEvVH':_0x371076['UJPyF'],'knmDS':_0x371076[_0x855cd(0x217)],'OlcDx':function(_0x192b7f,_0x1f7fe6){const _0x432b91=_0x855cd;return _0x371076[_0x432b91(0x204)](_0x192b7f,_0x1f7fe6);},'WsjVF':_0x371076[_0x855cd(0x21e)],'kgiuA':_0x371076[_0x855cd(0x1bf)]},_0x48bd15={};_0x48bd15['lazyEntries']=!![],yauzl[_0x855cd(0x19e)](_0x577d49,_0x48bd15,function(_0x3eb7a0,_0x265c21){const _0x56dfaf=_0x855cd,_0x166b69={'Vuaws':function(_0x57629a,_0x51b26d){const _0x3f3a20=a113_0x227a;return _0x54efa7[_0x3f3a20(0x19f)](_0x57629a,_0x51b26d);},'pPmyl':_0x54efa7[_0x56dfaf(0x207)],'sOUZd':_0x54efa7[_0x56dfaf(0x1b2)]};_0x3eb7a0&&_0x54efa7['OlcDx'](_0xdfeba8,_0x3eb7a0),_0x265c21[_0x56dfaf(0x1da)](),_0x265c21['on'](_0x54efa7[_0x56dfaf(0x1fe)],_0x560ba1=>{const _0x3f85e7=_0x56dfaf;if(/\/$/[_0x3f85e7(0x1a1)](_0x560ba1[_0x3f85e7(0x203)]))_0x265c21['readEntry']();else{const _0x407725=fs[_0x3f85e7(0x194)](path[_0x3f85e7(0x1a2)](_0x318bb9,_0x560ba1[_0x3f85e7(0x203)]));_0x265c21[_0x3f85e7(0x1ec)](_0x560ba1,function(_0x530cc2,_0x7f7735){const _0x3a842c=_0x3f85e7;_0x530cc2&&_0x166b69['Vuaws'](_0xdfeba8,_0x3eb7a0),_0x7f7735['on'](_0x166b69[_0x3a842c(0x1c4)],function(){const _0x4e2c68=_0x3a842c;_0x407725['close'](),_0x265c21[_0x4e2c68(0x1da)]();}),_0x7f7735[_0x3a842c(0x1ae)](_0x407725);}),_0x54efa7['PKwDf'](_0x560ba1[_0x3f85e7(0x203)],_0x8fe186)&&_0x265c21[_0x3f85e7(0x1fc)]();}}),_0x265c21['on'](_0x54efa7['kgiuA'],_0x32f601=>{const _0xa62b83=_0x56dfaf;_0x54efa7[_0xa62b83(0x1c5)](_0xdfeba8,_0x32f601);}),_0x265c21[_0x56dfaf(0x1d8)](_0x54efa7['WEvVH'],()=>{const _0x2feab1=_0x56dfaf,_0x403f48={'JPkef':function(_0x5cd6e0,_0x23893f){const _0x27508d=a113_0x227a;return _0x166b69[_0x27508d(0x193)](_0x5cd6e0,_0x23893f);},'pHoKu':function(_0x424d0d,_0x3c7971){const _0x41f4a3=a113_0x227a;return _0x166b69[_0x41f4a3(0x193)](_0x424d0d,_0x3c7971);}};fs['chmod'](_0x7d0d40,_0x166b69[_0x2feab1(0x1b5)],function(_0x13163d){const _0x2c2c47=_0x2feab1;_0x13163d&&_0x403f48[_0x2c2c47(0x216)](_0xdfeba8,_0x13163d),_0x403f48[_0x2c2c47(0x1cc)](_0x4995c0,_0x7d0d40);}),_0x265c21[_0x2feab1(0x1fc)]();});});});}async[a113_0x4fd43e(0x1d9)](_0x2b4bc9){const _0x1a6a99=a113_0x4fd43e,_0x24922a={'BQISf':function(_0x5d6d83,_0x12ec25){return _0x5d6d83(_0x12ec25);},'NYYHg':function(_0x58fd64,_0x22881d,_0x52e188,_0x320a10){return _0x58fd64(_0x22881d,_0x52e188,_0x320a10);},'bTfjQ':_0x1a6a99(0x1aa),'Dhect':_0x1a6a99(0x1d2),'SizHW':_0x1a6a99(0x1fc)},_0x4a8f2c=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x14e2f5,_0x338385)=>{const _0x107e88=_0x1a6a99,_0x4e2eb4={'dnHCk':function(_0xb8e057,_0x226b0d){const _0x933368=a113_0x227a;return _0x24922a[_0x933368(0x21a)](_0xb8e057,_0x226b0d);}},_0xdf25b0={};_0xdf25b0[_0x107e88(0x1d5)]=process[_0x107e88(0x1d5)];const _0x5bc8f8=_0x24922a[_0x107e88(0x223)](spawn,_0x2b4bc9,[_0x24922a[_0x107e88(0x208)]],_0xdf25b0);_0x5bc8f8['stdout']['on'](_0x24922a[_0x107e88(0x201)],_0x4545e8=>{const _0x5dfbea=_0x107e88;_0x4a8f2c['test'](_0x4545e8)&&_0x4e2eb4[_0x5dfbea(0x1b9)](_0x14e2f5,!![]);}),_0x5bc8f8['on'](_0x24922a['SizHW'],()=>{const _0x158541=_0x107e88;_0x24922a[_0x158541(0x21a)](_0x14e2f5,![]);});});}#homedir(){const _0x12b5ef=a113_0x4fd43e,_0x37640e={};_0x37640e[_0x12b5ef(0x1e2)]=function(_0x40e74a,_0x41f1a4){return _0x40e74a===_0x41f1a4;},_0x37640e[_0x12b5ef(0x215)]=_0x12b5ef(0x206),_0x37640e[_0x12b5ef(0x1fa)]=_0x12b5ef(0x21d),_0x37640e[_0x12b5ef(0x1d6)]=function(_0x3d62f5,_0x328070){return _0x3d62f5+_0x328070;},_0x37640e[_0x12b5ef(0x1e3)]=function(_0x1f7d60,_0x39ec0c){return _0x1f7d60===_0x39ec0c;},_0x37640e[_0x12b5ef(0x1f0)]=_0x12b5ef(0x1d0),_0x37640e[_0x12b5ef(0x1bb)]=function(_0x5e547a,_0xd58718){return _0x5e547a+_0xd58718;},_0x37640e[_0x12b5ef(0x19d)]=_0x12b5ef(0x19c),_0x37640e[_0x12b5ef(0x20a)]=_0x12b5ef(0x1e6),_0x37640e[_0x12b5ef(0x1be)]=function(_0x14c40b,_0x1ba8ac){return _0x14c40b===_0x1ba8ac;},_0x37640e[_0x12b5ef(0x21f)]=_0x12b5ef(0x1df),_0x37640e[_0x12b5ef(0x1fd)]=_0x12b5ef(0x1e0),_0x37640e[_0x12b5ef(0x1f9)]=function(_0x3862e5,_0xed3351){return _0x3862e5||_0xed3351;};const _0x5b4257=_0x37640e;if(_0x5b4257[_0x12b5ef(0x1e2)](typeof os[_0x12b5ef(0x199)],_0x5b4257[_0x12b5ef(0x215)]))return os[_0x12b5ef(0x199)]();const _0x8ae373=process[_0x12b5ef(0x1d5)],_0x467545=_0x8ae373[_0x12b5ef(0x1dd)],_0x39277b=_0x8ae373[_0x12b5ef(0x1e7)]||_0x8ae373[_0x12b5ef(0x21b)]||_0x8ae373[_0x12b5ef(0x1cd)]||_0x8ae373['USERNAME'];if(_0x5b4257[_0x12b5ef(0x1e2)](process[_0x12b5ef(0x1ea)],_0x5b4257[_0x12b5ef(0x1fa)]))return _0x8ae373['USERPROFILE']||_0x5b4257['KqKUy'](_0x8ae373[_0x12b5ef(0x1b4)],_0x8ae373['HOMEPATH'])||_0x467545||null;if(_0x5b4257[_0x12b5ef(0x1e3)](process[_0x12b5ef(0x1ea)],_0x5b4257[_0x12b5ef(0x1f0)]))return _0x467545||(_0x39277b?_0x5b4257[_0x12b5ef(0x1bb)](_0x5b4257['xcBqo'],_0x39277b):null);if(_0x5b4257[_0x12b5ef(0x1e3)](process[_0x12b5ef(0x1ea)],_0x5b4257[_0x12b5ef(0x20a)]))return _0x467545||(_0x5b4257[_0x12b5ef(0x1be)](process['getuid'](),0x0)?_0x5b4257[_0x12b5ef(0x21f)]:_0x39277b?_0x5b4257['KqKUy'](_0x5b4257[_0x12b5ef(0x1fd)],_0x39277b):null);return _0x5b4257[_0x12b5ef(0x1f9)](_0x467545,null);}}module['exports']=PercyBinary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a114_0x3d0fff=a114_0x1c8e;(function(_0x40d170,_0x4322a6){var _0x35c083=a114_0x1c8e,_0x5266ba=_0x40d170();while(!![]){try{var _0x4b1413=parseInt(_0x35c083(0x175))/0x1+-parseInt(_0x35c083(0x173))/0x2+parseInt(_0x35c083(0x177))/0x3*(parseInt(_0x35c083(0x17a))/0x4)+-parseInt(_0x35c083(0x178))/0x5*(parseInt(_0x35c083(0x17b))/0x6)+parseInt(_0x35c083(0x174))/0x7+parseInt(_0x35c083(0x17c))/0x8+-parseInt(_0x35c083(0x179))/0x9*(-parseInt(_0x35c083(0x180))/0xa);if(_0x4b1413===_0x4322a6)break;else _0x5266ba['push'](_0x5266ba['shift']());}catch(_0xec6e92){_0x5266ba['push'](_0x5266ba['shift']());}}}(a114_0x15d8,0x6e3cc));function a114_0x1c8e(_0x27aa44,_0x5d1bbf){var _0x15d85d=a114_0x15d8();return a114_0x1c8e=function(_0x1c8e4a,_0x1e0846){_0x1c8e4a=_0x1c8e4a-0x173;var _0x1b00b4=_0x15d85d[_0x1c8e4a];return _0x1b00b4;},a114_0x1c8e(_0x27aa44,_0x5d1bbf);}class PercyCaptureMap{#map={};[a114_0x3d0fff(0x17e)](_0x432cb4,_0x43fd3b){!this.#map[_0x432cb4]&&(this.#map[_0x432cb4]={}),!this.#map[_0x432cb4][_0x43fd3b]&&(this.#map[_0x432cb4][_0x43fd3b]=0x0),this.#map[_0x432cb4][_0x43fd3b]++;}[a114_0x3d0fff(0x17f)](_0x2d4826,_0x4bfc41){var _0xbbd439=a114_0x3d0fff;return _0x2d4826+'-'+_0x4bfc41+'-'+this[_0xbbd439(0x176)](_0x2d4826,_0x4bfc41);}['get'](_0xd1f120,_0xbbc82a){if(!this.#map[_0xd1f120])return 0x0;if(!this.#map[_0xd1f120][_0xbbc82a])return 0x0;return this.#map[_0xd1f120][_0xbbc82a];}}module[a114_0x3d0fff(0x17d)]=PercyCaptureMap;function a114_0x15d8(){var _0x4875b8=['8375PVwRzN','34461AMgIaJ','292SOAUub','2640nYXqTu','4762112UttZDK','exports','increment','getName','1370PymXOH','1385480UJNCpB','3260474GxNgWw','102641PKgEBg','get','7932LcuSZH'];a114_0x15d8=function(){return _0x4875b8;};return a114_0x15d8();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a115_0x56056b=a115_0x1082;(function(_0x1072af,_0x3b7e71){var _0x23b487=a115_0x1082,_0x39af33=_0x1072af();while(!![]){try{var _0x4f5f38=-parseInt(_0x23b487(0xe0))/0x1*(parseInt(_0x23b487(0xe5))/0x2)+parseInt(_0x23b487(0xdc))/0x3*(-parseInt(_0x23b487(0xe1))/0x4)+-parseInt(_0x23b487(0xd7))/0x5+parseInt(_0x23b487(0xda))/0x6+-parseInt(_0x23b487(0xd9))/0x7+-parseInt(_0x23b487(0xdb))/0x8+parseInt(_0x23b487(0xe7))/0x9;if(_0x4f5f38===_0x3b7e71)break;else _0x39af33['push'](_0x39af33['shift']());}catch(_0x335ccd){_0x39af33['push'](_0x39af33['shift']());}}}(a115_0x36fe,0xdd16f));function a115_0x1082(_0x2552cd,_0x4a0be5){var _0x36fedb=a115_0x36fe();return a115_0x1082=function(_0x108277,_0x26a346){_0x108277=_0x108277-0xd7;var _0x1ce217=_0x36fedb[_0x108277];return _0x1ce217;},a115_0x1082(_0x2552cd,_0x4a0be5);}var a115_0xa2bc1b={};a115_0xa2bc1b['driver']=[a115_0x56056b(0xdf)],a115_0xa2bc1b[a115_0x56056b(0xe4)]=[a115_0x56056b(0xdd),a115_0x56056b(0xd8)];var a115_0xb6c833={};a115_0xb6c833['driver']=[a115_0x56056b(0xdf)];function a115_0x36fe(){var _0x18f805=['click','auto','takeScreenshot','99894iNpdBh','228IboPhA','screenshot','exports','element','26ivYteh','testcase','39291858qPGMth','2366185BZoAHp','sendKeys','4300142vtmfyM','3989052ioGTul','5941336GlxqVm','52431TZjbHP'];a115_0x36fe=function(){return _0x18f805;};return a115_0x36fe();}var a115_0xb9139b={};a115_0xb9139b[a115_0x56056b(0xe4)]=[a115_0x56056b(0xdd)];var a115_0x3ed791={};a115_0x3ed791[a115_0x56056b(0xde)]=a115_0xa2bc1b,a115_0x3ed791[a115_0x56056b(0xe2)]=a115_0xb6c833,a115_0x3ed791[a115_0x56056b(0xdd)]=a115_0xb9139b,a115_0x3ed791[a115_0x56056b(0xe6)]={},a115_0x3ed791['manual']={},module[a115_0x56056b(0xe3)]=a115_0x3ed791;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a116_0x37dc(_0x546c0d,_0x229d30){const _0x2a5984=a116_0x2a59();return a116_0x37dc=function(_0x37dcd8,_0x3e978e){_0x37dcd8=_0x37dcd8-0x153;let _0x110840=_0x2a5984[_0x37dcd8];return _0x110840;},a116_0x37dc(_0x546c0d,_0x229d30);}const a116_0x534e00=a116_0x37dc;function a116_0x2a59(){const _0x1b5838=['testCase','browserstackPercyBestPlatform','@percy/appium-app','2323550yjdSdi','9yrzczP','Unsupported\x20driver\x20for\x20percy','name','screenshot','winstonLogger','hfbOW','SCREENSHOT','xrPoF','IvpOh','10bTUoJG','browserstackPlatformIndex','3666160phZUXk','1RTyswA','uuid','@percy/selenium-webdriver','platformIndex','snapshot','6NfWrri','hClCu','10963491POykEf','thTestCaseExecutionId','3052480PTNVlj','SCREENSHOT_APP','error','SNAPSHOT','../performance/constants','nlBEW','864564FfQHXW','measure','TXbdu','9144776ilFgZx','43336236FphChM','screenshotApp','11TJHYOr','apply','length'];a116_0x2a59=function(){return _0x1b5838;};return a116_0x2a59();}(function(_0x55a629,_0x3f2d5e){const _0x45a4eb=a116_0x37dc,_0x5883a4=_0x55a629();while(!![]){try{const _0x3c2707=-parseInt(_0x45a4eb(0x158))/0x1*(parseInt(_0x45a4eb(0x173))/0x2)+parseInt(_0x45a4eb(0x15d))/0x3*(parseInt(_0x45a4eb(0x157))/0x4)+-parseInt(_0x45a4eb(0x155))/0x5*(parseInt(_0x45a4eb(0x167))/0x6)+-parseInt(_0x45a4eb(0x15f))/0x7+-parseInt(_0x45a4eb(0x16a))/0x8+parseInt(_0x45a4eb(0x174))/0x9*(-parseInt(_0x45a4eb(0x161))/0xa)+parseInt(_0x45a4eb(0x16d))/0xb*(parseInt(_0x45a4eb(0x16b))/0xc);if(_0x3c2707===_0x3f2d5e)break;else _0x5883a4['push'](_0x5883a4['shift']());}catch(_0x55c462){_0x5883a4['push'](_0x5883a4['shift']());}}}(a116_0x2a59,0xef3c8));const tryRequire=function(_0x2f36c6,_0x13b33e){const _0x12023b={'TZUUn':function(_0x152795,_0x4395b8){return _0x152795(_0x4395b8);}};try{return _0x12023b['TZUUn'](require,_0x2f36c6);}catch{return _0x13b33e;}},percySnapshot=tryRequire(a116_0x534e00(0x15a),null),{percyScreenshot}=tryRequire(a116_0x534e00(0x15a),{}),percyAppScreenshot=require(a116_0x534e00(0x172)),{getCurrentTestData}=require('../../helpers/testhub/utils'),PerformanceTester=require('../performance/performance-tester'),{PERCY_EVENTS:PerformanceEvents}=require(a116_0x534e00(0x165)),logger=require('../logger')[a116_0x534e00(0x178)];percySnapshot&&(exports[a116_0x534e00(0x15c)]=async function(){const _0x1e7da8=a116_0x534e00,_0x573fd0={'hClCu':function(_0x2c302a,_0x2eecb6){return _0x2c302a!==_0x2eecb6;},'XnjwK':function(_0x24f5e6,_0x3411d6){return _0x24f5e6>=_0x3411d6;},'xrPoF':function(_0x2d8e17){return _0x2d8e17();}};if(global[_0x1e7da8(0x156)]&&_0x573fd0[_0x1e7da8(0x15e)](global[_0x1e7da8(0x156)],global[_0x1e7da8(0x171)]))return;const _0x33d38e=_0x573fd0['XnjwK'](arguments[_0x1e7da8(0x16f)],0x2)?arguments[0x1]:'',_0x3e857f=_0x573fd0[_0x1e7da8(0x153)](getCurrentTestData),_0x350c20={};return _0x350c20[_0x1e7da8(0x176)]=_0x33d38e,_0x350c20[_0x1e7da8(0x170)]=_0x3e857f['name']||'',_0x350c20[_0x1e7da8(0x160)]=_0x3e857f[_0x1e7da8(0x159)]||'',_0x350c20['platformIndex']=global[_0x1e7da8(0x156)],await PerformanceTester[_0x1e7da8(0x168)](PerformanceEvents[_0x1e7da8(0x164)],()=>percySnapshot['apply'](null,arguments),_0x350c20);});percyScreenshot?exports[a116_0x534e00(0x177)]=async function(){const _0x2eb3af=a116_0x534e00,_0x202f94={'nlBEW':function(_0x5d9e6e,_0x55c71a){return _0x5d9e6e>=_0x55c71a;},'pEoSd':function(_0x131bea){return _0x131bea();}},_0x110462=_0x202f94[_0x2eb3af(0x166)](arguments[_0x2eb3af(0x16f)],0x2)?arguments[0x1]:'',_0x34cefc=_0x202f94['pEoSd'](getCurrentTestData),_0x1854a0={};return _0x1854a0['name']=_0x110462,_0x1854a0[_0x2eb3af(0x170)]=_0x34cefc[_0x2eb3af(0x176)]||'',_0x1854a0[_0x2eb3af(0x160)]=_0x34cefc[_0x2eb3af(0x159)]||'',_0x1854a0[_0x2eb3af(0x15b)]=global[_0x2eb3af(0x156)],await PerformanceTester[_0x2eb3af(0x168)](PerformanceEvents[_0x2eb3af(0x17a)],()=>percyScreenshot[_0x2eb3af(0x16e)](null,arguments),_0x1854a0);}:exports[a116_0x534e00(0x177)]=()=>{const _0x5ce352=a116_0x534e00,_0x6a9e4e={};_0x6a9e4e[_0x5ce352(0x169)]=_0x5ce352(0x175);const _0x161611=_0x6a9e4e;logger[_0x5ce352(0x163)](_0x161611['TXbdu']);};exports[a116_0x534e00(0x16c)]=async function(){const _0x78f0c0=a116_0x534e00,_0x33150d={'IvpOh':function(_0x3776e1,_0xd4199a){return _0x3776e1>=_0xd4199a;},'hfbOW':function(_0x1b4ed4){return _0x1b4ed4();}},_0x12ad6c=_0x33150d[_0x78f0c0(0x154)](arguments[_0x78f0c0(0x16f)],0x2)?arguments[0x1]:'',_0x39d49b=_0x33150d[_0x78f0c0(0x179)](getCurrentTestData),_0x9b6a31={};return _0x9b6a31[_0x78f0c0(0x176)]=_0x12ad6c,_0x9b6a31['testCase']=_0x39d49b[_0x78f0c0(0x176)]||'',_0x9b6a31[_0x78f0c0(0x160)]=_0x39d49b['uuid']||'',_0x9b6a31[_0x78f0c0(0x15b)]=global[_0x78f0c0(0x156)],await PerformanceTester[_0x78f0c0(0x168)](PerformanceEvents[_0x78f0c0(0x162)],()=>percyAppScreenshot[_0x78f0c0(0x16e)](null,arguments),_0x9b6a31);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a117_0x1973(_0x29b6ad,_0xd588c9){var _0x2504ab=a117_0x2504();return a117_0x1973=function(_0x19730b,_0x168524){_0x19730b=_0x19730b-0xb7;var _0xf77b12=_0x2504ab[_0x19730b];return _0xf77b12;},a117_0x1973(_0x29b6ad,_0xd588c9);}var a117_0x4c087f=a117_0x1973;(function(_0x1d44bc,_0x283cb0){var _0x17a6c3=a117_0x1973,_0x34a6f9=_0x1d44bc();while(!![]){try{var _0x56a687=-parseInt(_0x17a6c3(0xb9))/0x1*(-parseInt(_0x17a6c3(0xbf))/0x2)+-parseInt(_0x17a6c3(0xc1))/0x3*(parseInt(_0x17a6c3(0xb8))/0x4)+-parseInt(_0x17a6c3(0xbb))/0x5*(-parseInt(_0x17a6c3(0xbe))/0x6)+parseInt(_0x17a6c3(0xc2))/0x7*(-parseInt(_0x17a6c3(0xc3))/0x8)+-parseInt(_0x17a6c3(0xb7))/0x9+parseInt(_0x17a6c3(0xc0))/0xa+-parseInt(_0x17a6c3(0xba))/0xb;if(_0x56a687===_0x283cb0)break;else _0x34a6f9['push'](_0x34a6f9['shift']());}catch(_0x3d6c74){_0x34a6f9['push'](_0x34a6f9['shift']());}}}(a117_0x2504,0x5006e),module[a117_0x4c087f(0xbd)]=require(a117_0x4c087f(0xbc)));function a117_0x2504(){var _0x213ee4=['708957EpRglq','669156dNhmyH','849pDWHCJ','2697948iFxtPl','2373145hDxMjO','./Percy','exports','6jdhiOL','956dpDKNO','2560910yeriVm','3wXGHmH','686FaCtSi','25912uKtRbm'];a117_0x2504=function(){return _0x213ee4;};return a117_0x2504();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a118_0x58ca82=a118_0x1e8f;(function(_0x1dae61,_0x50228f){const _0x48e6b4=a118_0x1e8f,_0x21ece3=_0x1dae61();while(!![]){try{const _0x42a06b=-parseInt(_0x48e6b4(0x20f))/0x1+-parseInt(_0x48e6b4(0x1d5))/0x2*(parseInt(_0x48e6b4(0x1f2))/0x3)+-parseInt(_0x48e6b4(0x1da))/0x4*(-parseInt(_0x48e6b4(0x210))/0x5)+-parseInt(_0x48e6b4(0x1d7))/0x6+parseInt(_0x48e6b4(0x20a))/0x7+parseInt(_0x48e6b4(0x201))/0x8*(-parseInt(_0x48e6b4(0x219))/0x9)+parseInt(_0x48e6b4(0x20e))/0xa;if(_0x42a06b===_0x50228f)break;else _0x21ece3['push'](_0x21ece3['shift']());}catch(_0x5d82b7){_0x21ece3['push'](_0x21ece3['shift']());}}}(a118_0x5c67,0x912d1));function a118_0x1e8f(_0x483c7b,_0x1312bd){const _0x5c6792=a118_0x5c67();return a118_0x1e8f=function(_0x1e8fa2,_0x1c4b14){_0x1e8fa2=_0x1e8fa2-0x1d4;let _0x1aaff2=_0x5c6792[_0x1e8fa2];return _0x1aaff2;},a118_0x1e8f(_0x483c7b,_0x1312bd);}const Percy=require(a118_0x58ca82(0x211)),PercySDK=require(a118_0x58ca82(0x204)),PercyCaptureModes=require(a118_0x58ca82(0x1fb)),PercyCaptureMap=require('./PercyCaptureMap'),logger=require(a118_0x58ca82(0x215))[a118_0x58ca82(0x1e2)],helper=require(a118_0x58ca82(0x1e1)),PerformanceTester=require('../performance/performance-tester'),{PERCY_EVENTS:PerformanceEvents}=require(a118_0x58ca82(0x220));function a118_0x5c67(){const _0x13f3c7=['dDsQe','getName','deviceName','manual','screenshotApp','../performance/constants','percyCaptureMode','6AgvfWT','reduce','4927932IsqzjY','browser','auto','4LzHEJF','AUTO_CAPTURE','element','\x20for\x20percy\x20','then','nestedKeyValue','safari','../helper','winstonLogger','overrideXforPercy','getPercyOptions','startPercy','browserStackPercyOptions','NQLqG','app','AOzHz','yqUBD','uWUHQ','toLowerCase','init','error','aDiUW','firefox','JlTIb','1076454iNZZLE','HbXSK','measureWrapper','browserstackSessionName','percy','sFHJh','screenshot','percyAutoCapture','browserstackPercyBestPlatform','./PercyCaptureModes','chrome','apply','prototype','stopPercy','driver','1256KQMlbk','AITBY','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','./PercySDK','forEach','patchDriverPercy','patch','Error\x20patching\x20','debug','8318436dsXHxW','WpgSg','browserstackPercyMap','START','26007680oOxyeO','414748mtqugn','337140WcsZYn','./Percy','edge','lADmY','browserName','../logger','Stopping\x20percy','isUndefined','ZxoQo','54423qsluHQ','STOP'];a118_0x5c67=function(){return _0x13f3c7;};return a118_0x5c67();}exports[a118_0x58ca82(0x1e5)]=PerformanceTester[a118_0x58ca82(0x1f4)](PerformanceEvents[a118_0x58ca82(0x20d)],async _0x331a58=>{const _0x207bbf=a118_0x58ca82,_0xb8e90f={};_0xb8e90f[_0x207bbf(0x1f3)]='Starting\x20percy';const _0x239193=_0xb8e90f;logger[_0x207bbf(0x209)](_0x239193[_0x207bbf(0x1f3)]);const _0x1400a5=new Percy(_0x331a58),_0x370ff9=await _0x1400a5['start']();if(_0x370ff9)return _0x1400a5;return null;}),exports[a118_0x58ca82(0x1ff)]=PerformanceTester['measureWrapper'](PerformanceEvents[a118_0x58ca82(0x21a)],async _0x368aaf=>{const _0x5ef6f5=a118_0x58ca82,_0x44286b={};_0x44286b[_0x5ef6f5(0x1eb)]=_0x5ef6f5(0x216);const _0x27346b=_0x44286b;return logger[_0x5ef6f5(0x209)](_0x27346b[_0x5ef6f5(0x1eb)]),_0x368aaf['stop']();}),exports['getBestPlatformForPercySnapshot']=_0x1d2c80=>{const _0x4449a0=a118_0x58ca82,_0x393928={};_0x393928[_0x4449a0(0x1ef)]=function(_0x355e48,_0x48258b){return _0x355e48<_0x48258b;};const _0x3565a9=_0x393928,_0x419fa3={};_0x419fa3[_0x4449a0(0x1fc)]=0x0,_0x419fa3[_0x4449a0(0x1f0)]=0x1,_0x419fa3[_0x4449a0(0x212)]=0x2,_0x419fa3[_0x4449a0(0x1e0)]=0x3;const _0x45eecc=_0x419fa3;return _0x1d2c80[_0x4449a0(0x1d6)]((_0x31e239,_0x33ec48,_0xd97ac7)=>{const _0x2255c2=_0x4449a0,_0x3270d0=_0x1d2c80[_0x31e239];if(_0x33ec48[_0x2255c2(0x21d)])return _0x31e239;if(_0x3270d0[_0x2255c2(0x21d)])return _0xd97ac7;const _0x244084=_0x33ec48[_0x2255c2(0x1d8)]?_0x33ec48['browser']:_0x33ec48[_0x2255c2(0x214)];if(_0x244084&&_0x3565a9[_0x2255c2(0x1ef)](_0x45eecc[_0x244084[_0x2255c2(0x1ec)]()],_0x45eecc[_0x244084[_0x2255c2(0x1ec)]()]))return _0xd97ac7;return _0x31e239;},0x0);},exports['percyAutoCapture']=PerformanceTester[a118_0x58ca82(0x1f4)](PerformanceEvents[a118_0x58ca82(0x1db)],async(_0x3ef998,_0x23cc63,_0x2fa4f1)=>{const _0x5a6119=a118_0x58ca82,_0x501958={};_0x501958[_0x5a6119(0x213)]=_0x5a6119(0x203);const _0x3e2fb3=_0x501958,_0x4e42e4=_0x3ef998[_0x5a6119(0x20c)];if(helper[_0x5a6119(0x217)](_0x3ef998[_0x5a6119(0x1f5)])){logger[_0x5a6119(0x209)](_0x3e2fb3[_0x5a6119(0x213)]);return;}const _0x17c0c3=_0x4e42e4[_0x5a6119(0x21c)](_0x3ef998['browserstackSessionName'],_0x23cc63);_0x2fa4f1[_0x5a6119(0x1e8)]?await PercySDK[_0x5a6119(0x21f)](_0x3ef998,_0x17c0c3):await PercySDK[_0x5a6119(0x1f8)](_0x3ef998,_0x17c0c3),_0x4e42e4['increment'](_0x3ef998['browserstackSessionName'],_0x23cc63);}),exports[a118_0x58ca82(0x206)]=(_0xbc3de7,_0x41814,_0x469012)=>{const _0x2ec0fa=a118_0x58ca82,_0xb1c212={};_0xb1c212[_0x2ec0fa(0x1e7)]=_0x2ec0fa(0x1e6),_0xb1c212['sFHJh']=_0x2ec0fa(0x1f6),_0xb1c212[_0x2ec0fa(0x1e9)]=function(_0x19af37,_0xddb15d){return _0x19af37!==_0xddb15d;},_0xb1c212['yqUBD']=_0x2ec0fa(0x21e);const _0x10f1d9=_0xb1c212;if(!helper[_0x2ec0fa(0x1df)](_0x469012,[_0x10f1d9[_0x2ec0fa(0x1e7)],_0x10f1d9[_0x2ec0fa(0x1f7)]]))return;if(_0x469012[_0x2ec0fa(0x1e6)]['percy']&&_0x469012[_0x2ec0fa(0x1e6)]['percyCaptureMode']&&_0x10f1d9[_0x2ec0fa(0x1e9)](_0x469012[_0x2ec0fa(0x1e6)][_0x2ec0fa(0x1d4)],_0x10f1d9[_0x2ec0fa(0x1ea)])&&!_0xbc3de7[_0x2ec0fa(0x20c)]){global[_0x2ec0fa(0x1f5)]&&(_0xbc3de7[_0x2ec0fa(0x1f5)]=global[_0x2ec0fa(0x1f5)]),_0xbc3de7['browserstackPercyMap']=new PercyCaptureMap();const _0xa09f87=PercyCaptureModes[_0x469012[_0x2ec0fa(0x1e6)][_0x2ec0fa(0x1d4)]];_0xa09f87[_0x2ec0fa(0x200)]&&_0xa09f87[_0x2ec0fa(0x200)][_0x2ec0fa(0x205)](_0x4a4d54=>this[_0x2ec0fa(0x1e3)](_0xbc3de7,_0x4a4d54,_0x469012)),_0xa09f87['element']&&_0xa09f87[_0x2ec0fa(0x1dc)][_0x2ec0fa(0x205)](_0x245b02=>{const _0x1a7c97=_0x2ec0fa;if(_0x41814['prototype'][_0x1a7c97(0x207)+_0x245b02])return;_0x41814[_0x1a7c97(0x1fe)][_0x1a7c97(0x207)+_0x245b02]=!![];const _0x301d4f=_0x41814[_0x1a7c97(0x1fe)][_0x245b02];_0x41814['prototype'][_0x245b02]=async function(){const _0x1ea5a4=_0x1a7c97;let _0x170329=_0x301d4f['apply'](this,arguments);_0x170329&&_0x170329[_0x1ea5a4(0x1de)]&&(_0x170329=await _0x170329);try{const _0x4d0739=this['getDriver']();await exports[_0x1ea5a4(0x1f9)](_0x4d0739,_0x245b02,_0x469012);}catch(_0xeb66a8){logger[_0x1ea5a4(0x1ee)](_0x1ea5a4(0x208)+_0x245b02+'\x20for\x20percy\x20'+_0xeb66a8);}return _0x170329;};});}},exports[a118_0x58ca82(0x1e3)]=function(_0x1d4bd1,_0x46d02a,_0x364531){const _0x202983=a118_0x58ca82,_0x1d4e13={};_0x1d4e13['WpgSg']=function(_0x10cd50,_0x52d0a2){return _0x10cd50+_0x52d0a2;},_0x1d4e13[_0x202983(0x21b)]=_0x202983(0x207),_0x1d4e13[_0x202983(0x218)]=function(_0x2cfe8c,_0x1937e7){return _0x2cfe8c+_0x1937e7;},_0x1d4e13[_0x202983(0x202)]=_0x202983(0x1ed);const _0x549d1b=_0x1d4e13,_0x27b5f8=_0x549d1b[_0x202983(0x20b)](_0x549d1b[_0x202983(0x21b)],_0x46d02a),_0x54c597=_0x549d1b[_0x202983(0x218)](_0x549d1b[_0x202983(0x202)],_0x46d02a),_0x4c1831=this;if(_0x1d4bd1[_0x27b5f8]||!_0x1d4bd1[_0x46d02a])return;_0x1d4bd1[_0x27b5f8]=!![],_0x1d4bd1[_0x54c597]=_0x1d4bd1[_0x46d02a],_0x1d4bd1[_0x46d02a]=async()=>{const _0x2e5c67=_0x202983;try{await _0x4c1831[_0x2e5c67(0x1f9)](_0x1d4bd1,_0x46d02a,_0x364531);}catch(_0x2261bb){logger[_0x2e5c67(0x1ee)](_0x2e5c67(0x208)+_0x46d02a+_0x2e5c67(0x1dd)+_0x2261bb);}return await _0x1d4bd1[_0x54c597][_0x2e5c67(0x1fd)](_0x1d4bd1,arguments);};},exports[a118_0x58ca82(0x1e4)]=_0x1e052b=>{const _0x33d98b=a118_0x58ca82,_0x34938c={};_0x34938c[_0x33d98b(0x1f1)]=_0x33d98b(0x1d9);const _0x17e053=_0x34938c,_0x45ab11={};_0x45ab11[_0x33d98b(0x1f6)]=_0x1e052b[_0x33d98b(0x1f6)],_0x45ab11[_0x33d98b(0x1d4)]=_0x1e052b['percyCaptureMode']||_0x17e053[_0x33d98b(0x1f1)];const _0x2cb281=_0x45ab11;_0x1e052b[_0x33d98b(0x1f6)]&&(_0x2cb281[_0x33d98b(0x1fa)]=exports['getBestPlatformForPercySnapshot'](_0x1e052b['platforms']));;return _0x2cb281;};
|