browserstack-node-sdk 1.34.1 → 1.34.2
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/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/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +2 -2
- package/src/ai-sdk-node/bundle.js +1 -0
- package/src/ai-sdk-node/extensions/chrome_extension.crx +0 -0
- 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/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -0
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -0
- 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/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.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-tester.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/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 -0
- 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 a66_0x596319=a66_0x4c99;(function(_0x528304,_0x2bcf19){const _0x55aaeb=a66_0x4c99,_0x2e0f28=_0x528304();while(!![]){try{const _0x55e507=-parseInt(_0x55aaeb(0x1c9))/0x1*(-parseInt(_0x55aaeb(0x1dd))/0x2)+-parseInt(_0x55aaeb(0x1c7))/0x3+-parseInt(_0x55aaeb(0x1c8))/0x4+parseInt(_0x55aaeb(0x1e4))/0x5*(parseInt(_0x55aaeb(0x1d0))/0x6)+-parseInt(_0x55aaeb(0x1da))/0x7+-parseInt(_0x55aaeb(0x1d4))/0x8*(-parseInt(_0x55aaeb(0x1db))/0x9)+-parseInt(_0x55aaeb(0x1d9))/0xa;if(_0x55e507===_0x2bcf19)break;else _0x2e0f28['push'](_0x2e0f28['shift']());}catch(_0x272a26){_0x2e0f28['push'](_0x2e0f28['shift']());}}}(a66_0x20fc,0x44245));function a66_0x4c99(_0x466cfd,_0x9c29c2){const _0x20fcfb=a66_0x20fc();return a66_0x4c99=function(_0x4c9946,_0x1e08ad){_0x4c9946=_0x4c9946-0x1c2;let _0x4ad7fb=_0x20fcfb[_0x4c9946];return _0x4ad7fb;},a66_0x4c99(_0x466cfd,_0x9c29c2);}const winston=require(a66_0x596319(0x1c4)),os=require('os'),fs=require('fs'),path=require(a66_0x596319(0x1cc)),logDir=a66_0x596319(0x1d3);!fs[a66_0x596319(0x1d8)](logDir)&&fs[a66_0x596319(0x1e0)](logDir);const a66_0x5a5459={};a66_0x5a5459['name']=a66_0x596319(0x1ca);const transports={'loggerConsole':new winston[(a66_0x596319(0x1d1))]['Console'](a66_0x5a5459),'loggerFile':new winston[(a66_0x596319(0x1d1))][(a66_0x596319(0x1c6))]({'filename':path[a66_0x596319(0x1df)](logDir,a66_0x596319(0x1e3))}),'debugLoggerFile':new winston[(a66_0x596319(0x1d1))][(a66_0x596319(0x1c6))]({'filename':path[a66_0x596319(0x1df)](logDir,a66_0x596319(0x1e1)),'level':a66_0x596319(0x1d7)})},a66_0x190c02={};a66_0x190c02[a66_0x596319(0x1e5)]='YYYY-MM-DD\x20HH:mm:ss';function a66_0x20fc(){const _0x5a82a3=['winston','winstonLogger','File','672753dZLWNa','949996aKvUHC','7bqqAKQ','console.info','combine','path','loggerFile','debugLoggerFile','level','6978nXLgAl','transports','\x20-\x20','log','471176EhriIv','timestamp','createLogger','silly','existsSync','2150860EuUquA','2102198KvigCE','81gucgXl','loggerConsole','124078AiYuGD','YYYY-MM-DD\x20HH:mm:ss','join','mkdirSync','/usage-debug.log','message','/usage.log','1255dEXrxG','format','colorize','printf','fileLogger'];a66_0x20fc=function(){return _0x5a82a3;};return a66_0x20fc();}const a66_0x4132b0={};a66_0x4132b0[a66_0x596319(0x1cf)]=!![];const winstonLoggerParams={'format':winston[a66_0x596319(0x1e5)][a66_0x596319(0x1cb)](winston['format'][a66_0x596319(0x1d5)](a66_0x190c02),winston[a66_0x596319(0x1e5)][a66_0x596319(0x1e6)](a66_0x4132b0),winston[a66_0x596319(0x1e5)]['printf'](_0x5e9859=>_0x5e9859[a66_0x596319(0x1d5)]+a66_0x596319(0x1d2)+_0x5e9859[a66_0x596319(0x1cf)]+':\x20'+_0x5e9859[a66_0x596319(0x1e2)])),'transports':[transports[a66_0x596319(0x1dc)],transports[a66_0x596319(0x1cd)],transports[a66_0x596319(0x1ce)]]},a66_0x516998={};a66_0x516998[a66_0x596319(0x1e5)]=a66_0x596319(0x1de);const a66_0x1b730b={};a66_0x1b730b[a66_0x596319(0x1cf)]=!![];const winstonFileLoggerParams={'format':winston[a66_0x596319(0x1e5)][a66_0x596319(0x1cb)](winston[a66_0x596319(0x1e5)][a66_0x596319(0x1d5)](a66_0x516998),winston[a66_0x596319(0x1e5)][a66_0x596319(0x1e6)](a66_0x1b730b),winston[a66_0x596319(0x1e5)][a66_0x596319(0x1c2)](_0x342b59=>_0x342b59[a66_0x596319(0x1cf)]+':\x20'+_0x342b59['message'])),'transports':[transports['loggerFile'],transports[a66_0x596319(0x1ce)]]};exports[a66_0x596319(0x1c5)]=new winston['createLogger'](winstonLoggerParams),exports[a66_0x596319(0x1c3)]=new winston[(a66_0x596319(0x1d6))](winstonFileLoggerParams),exports['logDir']=logDir,exports['transports']=transports;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a67_0x4e27(){var _0x511a5c=['env','XWNTO','uKHXj','171640TLILtp','DXdml','TEST_SCREENSHOT','BS_TESTOPS_ALLOW_SCREENSHOTS','initScreenshot','split','EVkyt','EmGYd','0|3|2|1|4|5','357082NrBDWG','1325GCzEQw','takeScreenshot','1|2|3|4|0','patchScreenshot','mUGns','1993077SihJGs','bs:addLog:','266dnIquO','1184265MneROD','quitCount_','overrideQuit','ONbXA','70juAUfP','fsUcG','then','quit','ckaED','toISOString','pid','11847wwHiNf','BfzkD','232HBDGXF','wAncV','initQuit','10JjiVJo','patchQuit','1732872QuMoWf','overrideTakeScreenshot','XQnrc'];a67_0x4e27=function(){return _0x511a5c;};return a67_0x4e27();}var a67_0x3e1b24=a67_0x3bbf;function a67_0x3bbf(_0x190d9c,_0x4a8279){var _0x4e27b1=a67_0x4e27();return a67_0x3bbf=function(_0x3bbf05,_0x4d896d){_0x3bbf05=_0x3bbf05-0x83;var _0x20b780=_0x4e27b1[_0x3bbf05];return _0x20b780;},a67_0x3bbf(_0x190d9c,_0x4a8279);}(function(_0x5a69bf,_0x177c3c){var _0x3d9be6=a67_0x3bbf,_0x28bfa5=_0x5a69bf();while(!![]){try{var _0x5044c7=-parseInt(_0x3d9be6(0x91))/0x1*(parseInt(_0x3d9be6(0x98))/0x2)+parseInt(_0x3d9be6(0xa4))/0x3*(-parseInt(_0x3d9be6(0xa6))/0x4)+parseInt(_0x3d9be6(0x99))/0x5+parseInt(_0x3d9be6(0xab))/0x6+-parseInt(_0x3d9be6(0x9d))/0x7*(-parseInt(_0x3d9be6(0x87))/0x8)+-parseInt(_0x3d9be6(0x96))/0x9*(parseInt(_0x3d9be6(0xa9))/0xa)+parseInt(_0x3d9be6(0x90))/0xb;if(_0x5044c7===_0x177c3c)break;else _0x28bfa5['push'](_0x28bfa5['shift']());}catch(_0x444874){_0x28bfa5['push'](_0x28bfa5['shift']());}}}(a67_0x4e27,0x23a25),exports[a67_0x3e1b24(0xac)]=_0x5afa25=>{var _0x5087c4=a67_0x3e1b24,_0x48f8d2={'wAncV':_0x5087c4(0x8f),'GCADP':_0x5087c4(0x89),'fuXpK':function(_0x164e50,_0x4372a7){return _0x164e50(_0x4372a7);},'uKHXj':function(_0x459415,_0x13f6a5){return _0x459415!==_0x13f6a5;},'PyCiv':'true'},_0x307b40=_0x48f8d2[_0x5087c4(0xa7)][_0x5087c4(0x8c)]('|'),_0xe098f0=0x0;while(!![]){switch(_0x307b40[_0xe098f0++]){case'0':var _0x109c56={'XWNTO':_0x48f8d2['GCADP'],'mUGns':function(_0x4dd7f5,_0x43e972){return _0x48f8d2['fuXpK'](_0x4dd7f5,_0x43e972);}};continue;case'1':_0x5afa25[_0x5087c4(0x94)]=!![];continue;case'2':if(_0x5afa25[_0x5087c4(0x94)])return;continue;case'3':if(_0x48f8d2[_0x5087c4(0x86)](process[_0x5087c4(0x84)][_0x5087c4(0x8a)],_0x48f8d2['PyCiv']))return;continue;case'4':_0x5afa25[_0x5087c4(0x8b)]=_0x5afa25['takeScreenshot'];continue;case'5':_0x5afa25[_0x5087c4(0x92)]=()=>{var _0x5c2cb3=_0x5087c4,_0x3256b1={'fsUcG':_0x109c56[_0x5c2cb3(0x85)],'EVkyt':function(_0x3f5f22,_0x246294){var _0x157eea=_0x5c2cb3;return _0x109c56[_0x157eea(0x95)](_0x3f5f22,_0x246294);}};return new Promise(function(_0x24e7c8,_0x15ea88){var _0x479e34=_0x5c2cb3;_0x5afa25['initScreenshot']()[_0x479e34(0x9f)](_0x3263fd=>{var _0x38f5e3=_0x479e34;process['emit'](_0x38f5e3(0x97)+process[_0x38f5e3(0xa3)],{'timestamp':new Date()[_0x38f5e3(0xa2)](),'message':_0x3263fd,'kind':_0x3256b1[_0x38f5e3(0x9e)]}),_0x3256b1[_0x38f5e3(0x8d)](_0x24e7c8,_0x3263fd);});});};continue;}break;}},exports[a67_0x3e1b24(0x9b)]=(_0x27c7e7,_0x1c44d2=null)=>{var _0x4e08eb=a67_0x3e1b24,_0x20277b={'ONbXA':_0x4e08eb(0x93),'EmGYd':function(_0x43ff40){return _0x43ff40();},'ckaED':function(_0x112cf4,_0x515e6e){return _0x112cf4>_0x515e6e;}},_0x35c7ce=_0x20277b[_0x4e08eb(0x9c)][_0x4e08eb(0x8c)]('|'),_0x58699a=0x0;while(!![]){switch(_0x35c7ce[_0x58699a++]){case'0':_0x27c7e7[_0x4e08eb(0xa0)]=()=>{var _0x326e41=_0x4e08eb,_0x4f8c8b={'boBEe':function(_0x167187){var _0x306a25=a67_0x3bbf;return _0x5d03a5[_0x306a25(0xa5)](_0x167187);}};if(_0x1c44d2){_0x1c44d2[_0x326e41(0x9a)]+=0x1;if(_0x5d03a5[_0x326e41(0x83)](_0x1c44d2['quitCount_'],0x1))return _0x27c7e7[_0x326e41(0xa8)]();}else{_0x27c7e7[_0x326e41(0x9a)]+=0x1;if(_0x5d03a5[_0x326e41(0x88)](_0x27c7e7['quitCount_'],0x1))return _0x27c7e7['initQuit']();}return new Promise(function(_0x504bf9){_0x4f8c8b['boBEe'](_0x504bf9);});};continue;case'1':var _0x5d03a5={'BfzkD':function(_0x22e4e2){var _0x2d4463=_0x4e08eb;return _0x20277b[_0x2d4463(0x8e)](_0x22e4e2);},'XQnrc':function(_0x3fb4b6,_0x4aa2d6){var _0x46feb4=_0x4e08eb;return _0x20277b[_0x46feb4(0xa1)](_0x3fb4b6,_0x4aa2d6);},'DXdml':function(_0x552f9f,_0x24e20d){var _0x3a0882=_0x4e08eb;return _0x20277b[_0x3a0882(0xa1)](_0x552f9f,_0x24e20d);}};continue;case'2':if(_0x27c7e7['patchQuit'])return;continue;case'3':_0x27c7e7[_0x4e08eb(0xaa)]=!![];continue;case'4':_0x27c7e7[_0x4e08eb(0xa8)]=_0x27c7e7[_0x4e08eb(0xa0)];continue;}break;}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x27aaf2=a68_0x50d0;(function(_0x23d1f6,_0x71990c){const _0x5b269f=a68_0x50d0,_0x43b6e5=_0x23d1f6();while(!![]){try{const _0x183b4f=parseInt(_0x5b269f(0xec))/0x1+parseInt(_0x5b269f(0xed))/0x2*(parseInt(_0x5b269f(0xd5))/0x3)+-parseInt(_0x5b269f(0xcb))/0x4*(parseInt(_0x5b269f(0xdc))/0x5)+-parseInt(_0x5b269f(0xe4))/0x6*(parseInt(_0x5b269f(0xc9))/0x7)+-parseInt(_0x5b269f(0xc3))/0x8*(parseInt(_0x5b269f(0xa9))/0x9)+-parseInt(_0x5b269f(0xc5))/0xa*(-parseInt(_0x5b269f(0xb9))/0xb)+parseInt(_0x5b269f(0xaf))/0xc;if(_0x183b4f===_0x71990c)break;else _0x43b6e5['push'](_0x43b6e5['shift']());}catch(_0x5d270d){_0x43b6e5['push'](_0x43b6e5['shift']());}}}(a68_0x226b,0x6cc8c));const fs=require('fs'),path=require(a68_0x27aaf2(0xd9)),os=require('os'),{spawn}=require(a68_0x27aaf2(0xdf)),helper=require(a68_0x27aaf2(0xa8)),logger=require(a68_0x27aaf2(0xae))['winstonLogger'],{logDir}=require(a68_0x27aaf2(0xae)),testHubConstants=require(a68_0x27aaf2(0xdb)),PercyBinary=require('./PercyBinary');function a68_0x50d0(_0x1063be,_0x59d9ec){const _0x226b96=a68_0x226b();return a68_0x50d0=function(_0x50d0e7,_0x2a2add){_0x50d0e7=_0x50d0e7-0xa8;let _0x3b714c=_0x226b96[_0x50d0e7];return _0x3b714c;},a68_0x50d0(_0x1063be,_0x59d9ec);}class Percy{#logfile=path[a68_0x27aaf2(0xba)](logDir,a68_0x27aaf2(0xc0));#address=process[a68_0x27aaf2(0xbb)][a68_0x27aaf2(0xb1)]||a68_0x27aaf2(0xe0);#binaryPath=null;#config=null;#proc=null;#isApp=![];[a68_0x27aaf2(0xda)]=![];constructor(_0x1f05a0){this.#config=_0x1f05a0,!!_0x1f05a0['app']&&(this.#isApp=!![]);}async #getBinaryPath(){if(!this.#binaryPath){const _0x53c9e0=new PercyBinary();this.#binaryPath=await _0x53c9e0['getBinaryPath'](this.#config);}return this.#binaryPath;}async #sleep(_0x535ce9){return new Promise(_0x13c951=>setTimeout(_0x13c951,_0x535ce9));}async['healthcheck'](){const _0x2af3cf=a68_0x27aaf2,_0x1128f6={};_0x1128f6[_0x2af3cf(0xf2)]=_0x2af3cf(0xc7),_0x1128f6[_0x2af3cf(0xbd)]='percy/healthcheck';const _0x391bf3=_0x1128f6;try{const _0x4b98e5=await helper[_0x2af3cf(0xc6)](_0x391bf3['AKyYD'],_0x391bf3[_0x2af3cf(0xbd)],null,null,this.#address);if(_0x4b98e5)return!![];}catch(_0x15edd1){return![];}}async['start'](){const _0x1ef914=a68_0x27aaf2,_0x1a98d0={'WPeFM':'app:exec','fmyFT':_0x1ef914(0xb5),'RcazZ':function(_0x68ec79,_0x2b92b9,_0x30c7e0,_0x370398){return _0x68ec79(_0x2b92b9,_0x30c7e0,_0x370398);},'HxdaE':_0x1ef914(0xb3),'SkzNh':_0x1ef914(0xcf)},_0x46c17d=await this.#getBinaryPath(),_0x2c64c4={};_0x2c64c4[_0x1ef914(0xb8)]='a';const _0x20f316=fs[_0x1ef914(0xea)](this.#logfile,_0x2c64c4),_0x4f2172=await this[_0x1ef914(0xee)](),_0x23c165=await this[_0x1ef914(0xcc)]();if(!_0x4f2172)return![];const _0x3c5aa2=[(this.#isApp?_0x1a98d0[_0x1ef914(0xce)]:_0x1a98d0[_0x1ef914(0xd7)])+':start'];_0x23c165&&_0x3c5aa2[_0x1ef914(0xbe)]('-c',_0x23c165);this.#proc=_0x1a98d0[_0x1ef914(0xd1)](spawn,_0x46c17d,_0x3c5aa2,{'env':Object[_0x1ef914(0xb7)](process[_0x1ef914(0xbb)],{'PERCY_TOKEN':_0x4f2172,'TH_BUILD_UUID':process[_0x1ef914(0xbb)][testHubConstants[_0x1ef914(0xe7)][_0x1ef914(0xb0)]]})}),this.#proc['stdout'][_0x1ef914(0xe2)](_0x20f316),this.#proc[_0x1ef914(0xef)][_0x1ef914(0xe2)](_0x20f316),this[_0x1ef914(0xda)]=!![];var _0x4dd369=this;this.#proc['on'](_0x1a98d0[_0x1ef914(0xb2)],function(_0x3505eb){_0x4dd369['isProcessRunning']=![];});do{const _0x450c95=await this[_0x1ef914(0xde)]();if(_0x450c95)return logger['debug'](_0x1a98d0[_0x1ef914(0xb4)]),!![];await this.#sleep(0x3e8);}while(this[_0x1ef914(0xda)]);return![];}async[a68_0x27aaf2(0xe9)](){const _0x50366e=a68_0x27aaf2,_0x4e81b6={'SbWpu':function(_0x2f742a,_0x5ab7da){return _0x2f742a(_0x5ab7da);},'FRjjf':function(_0x1d9b28,_0x1fb28d,_0x3d23af){return _0x1d9b28(_0x1fb28d,_0x3d23af);},'cgcyJ':_0x50366e(0xab),'gGVkq':_0x50366e(0xb3)},_0x26514d=await this.#getBinaryPath();return new Promise((_0x590677,_0x1f305b)=>{const _0x200ea7=_0x50366e,_0x3f5353=_0x4e81b6['FRjjf'](spawn,_0x26514d,[_0x4e81b6[_0x200ea7(0xc8)]]);_0x3f5353['on'](_0x4e81b6['gGVkq'],_0x92ebca=>{const _0x5dc2bc=_0x200ea7;this[_0x5dc2bc(0xda)]=![],_0x4e81b6[_0x5dc2bc(0xd2)](_0x590677,_0x92ebca);});});}['isRunning'](){return this['isProcessRunning'];}async[a68_0x27aaf2(0xee)](){const _0x4b44b0=a68_0x27aaf2,_0x3521a3={};_0x3521a3[_0x4b44b0(0xd8)]=_0x4b44b0(0xd4),_0x3521a3[_0x4b44b0(0xc2)]=_0x4b44b0(0xf0),_0x3521a3['xScQb']='GET',_0x3521a3[_0x4b44b0(0xd0)]=_0x4b44b0(0xbf);const _0x241ffd=_0x3521a3,_0x52b1f0=this.#config[_0x4b44b0(0xf1)];try{const _0x3bb6e1=this.#isApp?_0x241ffd['bTSqK']:_0x241ffd[_0x4b44b0(0xc2)],_0x304da9=await helper[_0x4b44b0(0xc6)](_0x241ffd[_0x4b44b0(0xe8)],_0x4b44b0(0xe6)+_0x52b1f0+_0x4b44b0(0xca)+_0x3bb6e1,{},this.#config),_0x2edf12=_0x304da9[_0x4b44b0(0xad)];return logger[_0x4b44b0(0xcd)](_0x241ffd[_0x4b44b0(0xd0)]),_0x2edf12[_0x4b44b0(0xac)];}catch(_0x46447b){return logger[_0x4b44b0(0xf3)](_0x4b44b0(0xeb)+_0x46447b),null;}}async[a68_0x27aaf2(0xcc)](){const _0x4dd7ce=a68_0x27aaf2,_0x2225e8={'NtWwL':function(_0x403c34,_0x12052e){return _0x403c34(_0x12052e);},'MCnxz':function(_0x1e3e71,_0x3ead9d){return _0x1e3e71+_0x3ead9d;},'QZmHG':'Percy\x20config\x20created\x20at\x20','DYmSu':'percy.json'};if(!this.#config[_0x4dd7ce(0xb6)])return null;const _0x164793=path[_0x4dd7ce(0xba)](os[_0x4dd7ce(0xe1)](),_0x2225e8[_0x4dd7ce(0xc1)]),_0x5152c1=this.#config[_0x4dd7ce(0xb6)];return!_0x5152c1[_0x4dd7ce(0xe3)]&&(_0x5152c1[_0x4dd7ce(0xe3)]='2'),new Promise((_0x578297,_0x4d76ac)=>{const _0x25e582=_0x4dd7ce,_0x311185={'aWIJI':function(_0x3742ec,_0x2b4f57){const _0x5eebc3=a68_0x50d0;return _0x2225e8[_0x5eebc3(0xdd)](_0x3742ec,_0x2b4f57);},'WaWmk':function(_0x4c8f8a,_0x46624f){return _0x2225e8['MCnxz'](_0x4c8f8a,_0x46624f);},'sEHvx':_0x2225e8[_0x25e582(0xd6)]};fs['writeFile'](_0x164793,JSON[_0x25e582(0xe5)](_0x5152c1),_0x3c6dc5=>{const _0x32e7b9=_0x25e582;_0x3c6dc5&&(logger[_0x32e7b9(0xf3)]('Error\x20creating\x20percy\x20config:\x20'+_0x3c6dc5),_0x311185[_0x32e7b9(0xaa)](_0x578297,null)),logger['debug'](_0x311185[_0x32e7b9(0xc4)](_0x311185[_0x32e7b9(0xbc)],_0x164793)),_0x311185[_0x32e7b9(0xaa)](_0x578297,_0x164793);});});}}module[a68_0x27aaf2(0xd3)]=Percy;function a68_0x226b(){const _0x35e786=['path','isProcessRunning','../../helpers/testhub/constants','1236965BCyzDh','NtWwL','healthcheck','child_process','http://localhost:5338','tmpdir','pipe','version','135228PbOPtA','stringify','api/app_percy/get_project_token?name=','ENV_VAR','xScQb','stop','createWriteStream','Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20','24184ZPRLOZ','188626KHjKLU','fetchPercyToken','stderr','automate','projectName','AKyYD','error','../helper','1161QXlPAL','aWIJI','exec:stop','token','data','../logger','21925032hGJyxR','BROWSERSTACK_TESTHUB_UUID','PERCY_SERVER_ADDRESS','HxdaE','close','SkzNh','exec','percyOptions','assign','flags','33ZvaGgS','join','env','sEHvx','zeaRe','push','Percy\x20fetch\x20token\x20success','percy.log','DYmSu','eGfAQ','50152Pbmefm','WaWmk','173090YWXPLC','nodeRequest','GET','cgcyJ','154NAEuUX','&type=','4NSRVdc','createPercyConfig','debug','WPeFM','Percy\x20healthcheck\x20successful','ESUKv','RcazZ','SbWpu','exports','app','3RjzyWf','QZmHG','fmyFT','bTSqK'];a68_0x226b=function(){return _0x35e786;};return a68_0x226b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a66_0x11c5(_0x2c8a62,_0x1d0da9){const _0x404b2d=a66_0x404b();return a66_0x11c5=function(_0x11c5e7,_0x445463){_0x11c5e7=_0x11c5e7-0xbe;let _0x1807e3=_0x404b2d[_0x11c5e7];return _0x1807e3;},a66_0x11c5(_0x2c8a62,_0x1d0da9);}const a66_0x57292d=a66_0x11c5;(function(_0x2e6b84,_0x5996f3){const _0x5958ae=a66_0x11c5,_0xc007d8=_0x2e6b84();while(!![]){try{const _0x9bede4=-parseInt(_0x5958ae(0x137))/0x1+parseInt(_0x5958ae(0xbe))/0x2*(parseInt(_0x5958ae(0x135))/0x3)+parseInt(_0x5958ae(0xff))/0x4*(parseInt(_0x5958ae(0x113))/0x5)+-parseInt(_0x5958ae(0xfd))/0x6+-parseInt(_0x5958ae(0xd5))/0x7*(-parseInt(_0x5958ae(0x11b))/0x8)+parseInt(_0x5958ae(0xbf))/0x9+parseInt(_0x5958ae(0x11a))/0xa*(parseInt(_0x5958ae(0x132))/0xb);if(_0x9bede4===_0x5996f3)break;else _0xc007d8['push'](_0xc007d8['shift']());}catch(_0x2e1756){_0xc007d8['push'](_0xc007d8['shift']());}}}(a66_0x404b,0x78673));const {https}=require(a66_0x57292d(0xd8)),url=require(a66_0x57292d(0x102)),yauzl=require(a66_0x57292d(0x121)),fs=require('fs'),path=require(a66_0x57292d(0x130)),os=require('os'),{spawn}=require('child_process'),HttpsProxyAgent=require('https-proxy-agent'),logger=require(a66_0x57292d(0xd2))[a66_0x57292d(0xed)];class PercyBinary{#hostOS=process['platform'];#httpPath=null;#binaryName='percy';#orderedPaths=[path[a66_0x57292d(0x114)](this.#homedir(),a66_0x57292d(0x11e)),process[a66_0x57292d(0x12a)](),os[a66_0x57292d(0xdf)]()];constructor(){const _0x565ef8=a66_0x57292d,_0x527760={};_0x527760[_0x565ef8(0x115)]=_0x565ef8(0xc1),_0x527760[_0x565ef8(0x116)]=function(_0x3b2a13,_0x2327d5){return _0x3b2a13+_0x2327d5;},_0x527760[_0x565ef8(0xca)]='/percy-osx.zip',_0x527760[_0x565ef8(0x100)]=_0x565ef8(0x138),_0x527760[_0x565ef8(0xce)]=_0x565ef8(0xfb),_0x527760['AgjGT']=function(_0x46442a,_0x4ca1b){return _0x46442a+_0x4ca1b;},_0x527760[_0x565ef8(0x10b)]=_0x565ef8(0x12d);const _0x2ae938=_0x527760,_0x4f0579=_0x2ae938[_0x565ef8(0x115)];if(this.#hostOS['match'](/darwin|mac os/i))this.#httpPath=_0x2ae938[_0x565ef8(0x116)](_0x4f0579,_0x2ae938[_0x565ef8(0xca)]);else this.#hostOS[_0x565ef8(0xe3)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x2ae938[_0x565ef8(0x116)](_0x4f0579,_0x2ae938['nGyQU']),this.#binaryName=_0x2ae938[_0x565ef8(0xce)]):this.#httpPath=_0x2ae938[_0x565ef8(0x13e)](_0x4f0579,_0x2ae938[_0x565ef8(0x10b)]);}#getAvailableDirs(){const _0x429782=a66_0x57292d,_0x2ea26d={};_0x2ea26d[_0x429782(0xc2)]=function(_0x47c1ee,_0x107477){return _0x47c1ee<_0x107477;},_0x2ea26d[_0x429782(0xe1)]=_0x429782(0xf5);const _0x58c952=_0x2ea26d;for(var _0x2cffa3=0x0;_0x58c952[_0x429782(0xc2)](_0x2cffa3,this.#orderedPaths[_0x429782(0x144)]);_0x2cffa3++){var _0x1d3cef=this.#orderedPaths[_0x2cffa3];if(this.#makePath(_0x1d3cef))return _0x1d3cef;}throw new Error(_0x58c952[_0x429782(0xe1)]);}#makePath(_0x2d1b8e){try{return!this.#checkPath(_0x2d1b8e)&&fs['mkdirSync'](_0x2d1b8e),!![];}catch{return![];}}#checkPath(_0x4aadf0,_0xcbf679){const _0x373f94=a66_0x57292d,_0x44515b={};_0x44515b['DAZBg']=function(_0x4bc679,_0x1740cb){return _0x4bc679|_0x1740cb;},_0x44515b[_0x373f94(0xf4)]=function(_0x28d5f8,_0x15fd94){return _0x28d5f8!==_0x15fd94;},_0x44515b[_0x373f94(0x143)]='undefined';const _0x429de1=_0x44515b;_0xcbf679=_0xcbf679||_0x429de1['DAZBg'](fs['R_OK'],fs[_0x373f94(0x13b)]);try{return fs[_0x373f94(0x125)](_0x4aadf0,_0xcbf679),!![];}catch(_0x2ac277){if(_0x429de1['IFDAc'](typeof fs['accessSync'],_0x429de1[_0x373f94(0x143)]))return![];try{return fs[_0x373f94(0x128)](_0x4aadf0),!![];}catch(_0x2bb338){return![];}}}async['getBinaryPath'](_0x4fbdba){const _0x1576fc=a66_0x57292d,_0x257107={};_0x257107[_0x1576fc(0x146)]=_0x1576fc(0x104);const _0x582fd0=_0x257107;var _0x5d7ec1=this.#getAvailableDirs(),_0x4a2e37=path[_0x1576fc(0x114)](_0x5d7ec1,this.#binaryName);if(this.#checkPath(_0x4a2e37,fs[_0x1576fc(0x10d)]))return _0x4a2e37;const _0x1c76ac=await this[_0x1576fc(0xfc)](_0x4fbdba,_0x5d7ec1),_0xf62d6d=await this[_0x1576fc(0x10a)](_0x1c76ac);if(!_0xf62d6d)return logger[_0x1576fc(0xc6)](_0x582fd0[_0x1576fc(0x146)]),await this['download'](_0x4fbdba,_0x5d7ec1);return _0x1c76ac;}async[a66_0x57292d(0x10a)](_0x33f55f){const _0x47f9b3=a66_0x57292d,_0x25a1f2={'QZLYD':function(_0x1d8e00,_0x2e81eb){return _0x1d8e00(_0x2e81eb);},'rzBfy':function(_0x1a645f,_0x40cdb5,_0x437821){return _0x1a645f(_0x40cdb5,_0x437821);},'hYcaB':_0x47f9b3(0x107),'ahwdQ':_0x47f9b3(0x145),'fiYqB':_0x47f9b3(0xf8)},_0x2d6adf=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x4c4fa0,_0xd120de)=>{const _0x212e62=_0x47f9b3,_0x212de1={'kPBZo':function(_0x38bc89,_0x38904d){const _0x5077ba=a66_0x11c5;return _0x25a1f2[_0x5077ba(0x108)](_0x38bc89,_0x38904d);}},_0x2a5e98=_0x25a1f2['rzBfy'](spawn,_0x33f55f,[_0x25a1f2[_0x212e62(0x10c)]]);_0x2a5e98[_0x212e62(0xe8)]['on'](_0x25a1f2[_0x212e62(0x13f)],_0x4d2c72=>{const _0x5aef66=_0x212e62;_0x2d6adf[_0x5aef66(0xc0)](_0x4d2c72)&&_0x25a1f2[_0x5aef66(0x108)](_0x4c4fa0,!![]);}),_0x2a5e98['on'](_0x25a1f2[_0x212e62(0xf9)],()=>{const _0x57788c=_0x212e62;_0x212de1[_0x57788c(0x119)](_0x4c4fa0,![]);});});}['download'](_0x3c4737,_0x4f1901){const _0x2822a3=a66_0x57292d,_0x2d3e82={'eXxOH':_0x2822a3(0xf2),'tKKEZ':function(_0x45a517,_0xf991f2){return _0x45a517(_0xf991f2);},'wQXjE':function(_0x488760,_0x1decb1){return _0x488760(_0x1decb1);},'QSQCd':_0x2822a3(0xd0),'uEWjA':function(_0x377bb8,_0x215aa5){return _0x377bb8===_0x215aa5;},'HZltp':_0x2822a3(0x123),'ScJiO':_0x2822a3(0xc3),'TASPA':_0x2822a3(0xc6),'KVEqs':'close','vvjXe':_0x2822a3(0x10e),'vFgQu':function(_0x3a9f5e,_0x9fcc4f){return _0x3a9f5e(_0x9fcc4f);},'XmBfi':_0x2822a3(0x13a),'NhYdO':function(_0x2b5bb1,_0xcff285){return _0x2b5bb1+_0xcff285;},'aoTXx':_0x2822a3(0x133),'oLMaU':_0x2822a3(0xfe)};!this.#checkPath(_0x4f1901)&&fs[_0x2822a3(0xd7)](_0x4f1901);const _0x2eeb6a=this.#binaryName,_0x2966df=path[_0x2822a3(0x114)](_0x4f1901,_0x2d3e82[_0x2822a3(0xdc)](_0x2eeb6a,_0x2d3e82[_0x2822a3(0x11c)])),_0x4874c1=path[_0x2822a3(0x114)](_0x4f1901,_0x2eeb6a),_0x37028a=fs['createWriteStream'](_0x2966df),_0x34a174=url[_0x2822a3(0x110)](this.#httpPath);if(_0x3c4737[_0x2822a3(0xd1)]&&_0x3c4737['proxyPort']){const _0x48e9b5={};_0x48e9b5[_0x2822a3(0x12b)]=_0x3c4737[_0x2822a3(0xd1)],_0x48e9b5[_0x2822a3(0x129)]=_0x3c4737[_0x2822a3(0xc5)],_0x34a174[_0x2822a3(0xe4)]=new HttpsProxyAgent(_0x48e9b5);}if(_0x3c4737[_0x2822a3(0xcd)])try{_0x34a174['ca']=fs[_0x2822a3(0xf7)](_0x3c4737[_0x2822a3(0xcd)]);}catch(_0x66e639){logger['error'](_0x2d3e82[_0x2822a3(0xd9)],_0x66e639);}return new Promise((_0x165742,_0xb2b2df)=>{const _0x1968c9=_0x2822a3,_0x52ce57={'bxMsY':_0x2d3e82[_0x1968c9(0xd4)],'OAWnV':function(_0x35c86a,_0x45a8c8){return _0x2d3e82['wQXjE'](_0x35c86a,_0x45a8c8);}};https[_0x1968c9(0xc8)](_0x34a174,function(_0x7ee6aa){const _0x1e60f3=_0x1968c9,_0xe51136={'zOJSy':_0x2d3e82[_0x1e60f3(0x124)],'hOMqq':function(_0x3bedd5,_0x3959b8){const _0xc66a11=_0x1e60f3;return _0x2d3e82[_0xc66a11(0x120)](_0x3bedd5,_0x3959b8);},'Bcrxl':function(_0x42b038,_0x49c35d){const _0x55be86=_0x1e60f3;return _0x2d3e82[_0x55be86(0x141)](_0x42b038,_0x49c35d);},'oqmQR':_0x2d3e82[_0x1e60f3(0xde)],'aNmgI':function(_0x282354,_0x2eceaa){return _0x2d3e82['uEWjA'](_0x282354,_0x2eceaa);},'GIQYf':_0x2d3e82[_0x1e60f3(0x111)],'auDFt':_0x2d3e82['ScJiO'],'aCkbJ':_0x2d3e82['TASPA']};_0x7ee6aa[_0x1e60f3(0xc9)](_0x37028a),_0x7ee6aa['on'](_0x2d3e82[_0x1e60f3(0x106)],function(_0x7e4c91){const _0x594e58=_0x1e60f3;logger[_0x594e58(0xc6)](_0xe51136[_0x594e58(0x117)],_0x7e4c91),_0xe51136['hOMqq'](_0xb2b2df,_0x7e4c91);}),_0x37028a['on'](_0x2d3e82[_0x1e60f3(0x106)],function(_0x4c47ce){const _0x310427=_0x1e60f3;logger[_0x310427(0xc6)](_0x52ce57['bxMsY'],_0x4c47ce),_0x52ce57[_0x310427(0xe0)](_0xb2b2df,_0x4c47ce);}),_0x37028a['on'](_0x2d3e82[_0x1e60f3(0xeb)],function(){const _0x24ee3e=_0x1e60f3,_0xc1bf8d={};_0xc1bf8d[_0x24ee3e(0xe5)]=!![],yauzl[_0x24ee3e(0x142)](_0x2966df,_0xc1bf8d,function(_0x27d0a8,_0x3cd954){const _0x460a81=_0x24ee3e,_0x1c817e={'RkAzZ':function(_0x587fe1,_0x24f97d){const _0x4f9c9f=a66_0x11c5;return _0xe51136[_0x4f9c9f(0xf0)](_0x587fe1,_0x24f97d);},'TohtB':_0xe51136[_0x460a81(0xcb)],'bzQds':function(_0x1d63cc,_0x575fcc){return _0xe51136['aNmgI'](_0x1d63cc,_0x575fcc);},'AqfXI':function(_0x2c3931,_0x22e413){const _0x162303=_0x460a81;return _0xe51136[_0x162303(0xf1)](_0x2c3931,_0x22e413);},'UigGq':_0xe51136[_0x460a81(0x101)]};_0x27d0a8&&_0xe51136[_0x460a81(0xf0)](_0xb2b2df,_0x27d0a8),_0x3cd954[_0x460a81(0x140)](),_0x3cd954['on'](_0xe51136['auDFt'],_0x57f1de=>{const _0x231393=_0x460a81,_0x330720={'hQbYY':function(_0x2fed2e,_0x3feb00){return _0x1c817e['RkAzZ'](_0x2fed2e,_0x3feb00);},'vNXay':_0x1c817e[_0x231393(0xc4)]};if(/\/$/[_0x231393(0xc0)](_0x57f1de[_0x231393(0xe6)]))_0x3cd954[_0x231393(0x140)]();else{const _0x34043c=fs[_0x231393(0x105)](path[_0x231393(0x114)](_0x4f1901,_0x57f1de['fileName']));_0x3cd954[_0x231393(0xcf)](_0x57f1de,function(_0x22e814,_0x58a751){const _0x4d732c=_0x231393;_0x22e814&&_0x330720[_0x4d732c(0x11f)](_0xb2b2df,_0x27d0a8),_0x58a751['on'](_0x330720[_0x4d732c(0x122)],function(){const _0xeabc95=_0x4d732c;_0x34043c[_0xeabc95(0xf8)](),_0x3cd954[_0xeabc95(0x140)]();}),_0x58a751['pipe'](_0x34043c);}),_0x1c817e['bzQds'](_0x57f1de[_0x231393(0xe6)],_0x2eeb6a)&&_0x3cd954[_0x231393(0xf8)]();}}),_0x3cd954['on'](_0xe51136['aCkbJ'],_0x402a6d=>{const _0x60bc59=_0x460a81;_0x1c817e[_0x60bc59(0xe2)](_0xb2b2df,_0x402a6d);}),_0x3cd954['once'](_0xe51136[_0x460a81(0xcb)],()=>{const _0x404d60=_0x460a81;fs[_0x404d60(0x12e)](_0x4874c1,_0x1c817e[_0x404d60(0x11d)],function(_0x32e86f){const _0x15173c=_0x404d60;_0x32e86f&&_0x1c817e[_0x15173c(0xda)](_0xb2b2df,_0x32e86f),_0x1c817e[_0x15173c(0xda)](_0x165742,_0x4874c1);}),_0x3cd954[_0x404d60(0xf8)]();});});});})['on'](_0x2d3e82['TASPA'],function(_0x1422a4){const _0x1a860b=_0x1968c9;logger[_0x1a860b(0xc6)](_0x2d3e82[_0x1a860b(0x109)],_0x1422a4),_0x2d3e82[_0x1a860b(0xdb)](_0xb2b2df,_0x1422a4);});});}#homedir(){const _0x1b976b=a66_0x57292d,_0x8c7313={};_0x8c7313[_0x1b976b(0xf6)]=function(_0x594c97,_0x38b4d4){return _0x594c97===_0x38b4d4;},_0x8c7313['WInKd']='function',_0x8c7313[_0x1b976b(0x112)]=function(_0x2ec5f5,_0x2335ab){return _0x2ec5f5===_0x2335ab;},_0x8c7313['RubvK']=_0x1b976b(0x134),_0x8c7313[_0x1b976b(0xd6)]=function(_0x47d082,_0x53b6dc){return _0x47d082+_0x53b6dc;},_0x8c7313[_0x1b976b(0x139)]=_0x1b976b(0x12f),_0x8c7313['Wpmnm']=_0x1b976b(0x13d),_0x8c7313[_0x1b976b(0xee)]=function(_0x15eb10,_0x322b46){return _0x15eb10===_0x322b46;},_0x8c7313[_0x1b976b(0xd3)]='linux',_0x8c7313[_0x1b976b(0xf3)]=function(_0x45eecc,_0x48947b){return _0x45eecc===_0x48947b;},_0x8c7313[_0x1b976b(0x131)]=_0x1b976b(0x127),_0x8c7313['gFvni']=function(_0xc3fdf1,_0x4346ef){return _0xc3fdf1+_0x4346ef;},_0x8c7313['VKrFh']=_0x1b976b(0x126),_0x8c7313[_0x1b976b(0x10f)]=function(_0x2d0f8b,_0x51ce02){return _0x2d0f8b||_0x51ce02;};const _0x5a12d8=_0x8c7313;if(_0x5a12d8[_0x1b976b(0xf6)](typeof os['homedir'],_0x5a12d8[_0x1b976b(0x118)]))return os[_0x1b976b(0x12c)]();const _0x262ad3=process['env'],_0xe3da03=_0x262ad3[_0x1b976b(0xfa)],_0x2a06e8=_0x262ad3[_0x1b976b(0x103)]||_0x262ad3[_0x1b976b(0xec)]||_0x262ad3[_0x1b976b(0xc7)]||_0x262ad3[_0x1b976b(0x13c)];if(_0x5a12d8[_0x1b976b(0x112)](process['platform'],_0x5a12d8[_0x1b976b(0xdd)]))return _0x262ad3[_0x1b976b(0x136)]||_0x5a12d8[_0x1b976b(0xd6)](_0x262ad3['HOMEDRIVE'],_0x262ad3[_0x1b976b(0xea)])||_0xe3da03||null;if(_0x5a12d8[_0x1b976b(0xf6)](process[_0x1b976b(0xe9)],_0x5a12d8[_0x1b976b(0x139)]))return _0xe3da03||(_0x2a06e8?_0x5a12d8[_0x1b976b(0xd6)](_0x5a12d8['Wpmnm'],_0x2a06e8):null);if(_0x5a12d8[_0x1b976b(0xee)](process[_0x1b976b(0xe9)],_0x5a12d8[_0x1b976b(0xd3)]))return _0xe3da03||(_0x5a12d8[_0x1b976b(0xf3)](process[_0x1b976b(0xef)](),0x0)?_0x5a12d8['FOidn']:_0x2a06e8?_0x5a12d8[_0x1b976b(0xcc)](_0x5a12d8[_0x1b976b(0xe7)],_0x2a06e8):null);return _0x5a12d8['SJeOb'](_0xe3da03,null);}}function a66_0x404b(){const _0x8f0edc=['RubvK','QSQCd','tmpdir','OAWnV','BwFjF','RkAzZ','match','agent','lazyEntries','fileName','VKrFh','stdout','platform','HOMEPATH','KVEqs','USER','winstonLogger','TmdUd','getuid','Bcrxl','hOMqq','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response','XYkIl','IFDAc','Error\x20trying\x20to\x20download\x20percy\x20binary','ZFmsw','readFileSync','close','fiYqB','HOME','percy.exe','download','5444166LzamWy','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file','52NuHLrg','nGyQU','GIQYf','url','LOGNAME','Corrupt\x20percy\x20binary,\x20retrying','createWriteStream','TASPA','--version','QZLYD','vvjXe','validateBinary','ZUwBx','hYcaB','X_OK','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request','SJeOb','parse','HZltp','YAdCp','66835OTfnhb','join','nUPsU','trXUb','zOJSy','WInKd','kPBZo','10420eArHsX','5288iZrukD','aoTXx','UigGq','.browserstack','hQbYY','tKKEZ','yauzl','vNXay','0755','eXxOH','accessSync','/home/','/root','statSync','port','cwd','host','homedir','/percy-linux.zip','chmod','darwin','path','FOidn','12265OlmUSB','.zip','win32','76335tIzkij','USERPROFILE','759908vtrJfW','/percy-win.zip','nsypp','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file','W_OK','USERNAME','/Users/','AgjGT','ahwdQ','readEntry','wQXjE','open','SHDTc','length','data','OAMYi','36IZzvHu','2302029WovnRe','test','https://github.com/percy/cli/releases/latest/download','uKVWz','entry','TohtB','proxyPort','error','LNAME','get','pipe','PGHDA','oqmQR','gFvni','useCaCertificate','OeENb','openReadStream','end','proxyHost','../logger','aPmbo','XmBfi','1176xDktNg','oFaYg','mkdirSync','follow-redirects','oLMaU','AqfXI','vFgQu','NhYdO'];a66_0x404b=function(){return _0x8f0edc;};return a66_0x404b();}module['exports']=PercyBinary;
|
|
1
|
+
const a69_0x5d5334=a69_0x2859;(function(_0x2d22c6,_0x2969b7){const _0x200787=a69_0x2859,_0x509a96=_0x2d22c6();while(!![]){try{const _0x405f05=parseInt(_0x200787(0x14f))/0x1+parseInt(_0x200787(0x1b3))/0x2+parseInt(_0x200787(0x132))/0x3*(parseInt(_0x200787(0x150))/0x4)+parseInt(_0x200787(0x12d))/0x5*(parseInt(_0x200787(0x173))/0x6)+parseInt(_0x200787(0x153))/0x7+-parseInt(_0x200787(0x1ad))/0x8*(parseInt(_0x200787(0x136))/0x9)+parseInt(_0x200787(0x1af))/0xa*(-parseInt(_0x200787(0x18f))/0xb);if(_0x405f05===_0x2969b7)break;else _0x509a96['push'](_0x509a96['shift']());}catch(_0x4bf6af){_0x509a96['push'](_0x509a96['shift']());}}}(a69_0x4d51,0xe69d0));const {https}=require(a69_0x5d5334(0x1a8)),url=require(a69_0x5d5334(0x174)),yauzl=require('yauzl'),fs=require('fs'),path=require('path'),os=require('os'),{spawn}=require(a69_0x5d5334(0x15d)),HttpsProxyAgent=require(a69_0x5d5334(0x189)),logger=require(a69_0x5d5334(0x133))[a69_0x5d5334(0x151)];class PercyBinary{#hostOS=process[a69_0x5d5334(0x1b2)];#httpPath=null;#binaryName=a69_0x5d5334(0x16a);#orderedPaths=[path['join'](this.#homedir(),a69_0x5d5334(0x1ac)),process[a69_0x5d5334(0x14b)](),os[a69_0x5d5334(0x1ab)]()];constructor(){const _0x434f73=a69_0x5d5334,_0x327e74={};_0x327e74[_0x434f73(0x1a2)]=_0x434f73(0x165),_0x327e74['mTrFk']=function(_0x2b9483,_0x57afeb){return _0x2b9483+_0x57afeb;},_0x327e74['kJGWv']=_0x434f73(0x135),_0x327e74['jmNHh']=_0x434f73(0x1a4),_0x327e74['wbQed']='percy.exe',_0x327e74[_0x434f73(0x13b)]=function(_0x100217,_0x214ac3){return _0x100217+_0x214ac3;},_0x327e74[_0x434f73(0x162)]=_0x434f73(0x176);const _0x276a80=_0x327e74,_0x1b1bf7=_0x276a80[_0x434f73(0x1a2)];if(this.#hostOS[_0x434f73(0x17f)](/darwin|mac os/i))this.#httpPath=_0x276a80[_0x434f73(0x175)](_0x1b1bf7,_0x276a80[_0x434f73(0x147)]);else this.#hostOS['match'](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x276a80[_0x434f73(0x175)](_0x1b1bf7,_0x276a80['jmNHh']),this.#binaryName=_0x276a80[_0x434f73(0x130)]):this.#httpPath=_0x276a80[_0x434f73(0x13b)](_0x1b1bf7,_0x276a80[_0x434f73(0x162)]);}#getAvailableDirs(){const _0x281bab=a69_0x5d5334,_0x173263={};_0x173263[_0x281bab(0x19d)]=function(_0x2d9826,_0x1abf39){return _0x2d9826<_0x1abf39;},_0x173263[_0x281bab(0x184)]='Error\x20trying\x20to\x20download\x20percy\x20binary';const _0x21a1e0=_0x173263;for(var _0x1c44f8=0x0;_0x21a1e0[_0x281bab(0x19d)](_0x1c44f8,this.#orderedPaths[_0x281bab(0x1a1)]);_0x1c44f8++){var _0x5b1aab=this.#orderedPaths[_0x1c44f8];if(this.#makePath(_0x5b1aab))return _0x5b1aab;}throw new Error(_0x21a1e0[_0x281bab(0x184)]);}#makePath(_0x553145){const _0x5f0b34=a69_0x5d5334;try{return!this.#checkPath(_0x553145)&&fs[_0x5f0b34(0x19e)](_0x553145),!![];}catch{return![];}}#checkPath(_0x39c97f,_0xe0a540){const _0x1073bd=a69_0x5d5334,_0x2b81d8={};_0x2b81d8[_0x1073bd(0x142)]=function(_0xe1df9f,_0x54b4b6){return _0xe1df9f|_0x54b4b6;},_0x2b81d8[_0x1073bd(0x198)]=function(_0x339277,_0x5e2206){return _0x339277!==_0x5e2206;},_0x2b81d8[_0x1073bd(0x170)]=_0x1073bd(0x178);const _0x5cb811=_0x2b81d8;_0xe0a540=_0xe0a540||_0x5cb811[_0x1073bd(0x142)](fs[_0x1073bd(0x156)],fs[_0x1073bd(0x1a6)]);try{return fs[_0x1073bd(0x163)](_0x39c97f,_0xe0a540),!![];}catch(_0x5e1d26){if(_0x5cb811['XdNRs'](typeof fs[_0x1073bd(0x163)],_0x5cb811['gVntF']))return![];try{return fs[_0x1073bd(0x1b4)](_0x39c97f),!![];}catch(_0x1439a4){return![];}}}async[a69_0x5d5334(0x13f)](_0x34a0fd){const _0x268e6b=a69_0x5d5334,_0x1d2d69={};_0x1d2d69['jZwQu']='Corrupt\x20percy\x20binary,\x20retrying';const _0x3db5ed=_0x1d2d69;var _0x58cd79=this.#getAvailableDirs(),_0x37c69c=path[_0x268e6b(0x19c)](_0x58cd79,this.#binaryName);if(this.#checkPath(_0x37c69c,fs[_0x268e6b(0x180)]))return _0x37c69c;const _0x42c041=await this[_0x268e6b(0x141)](_0x34a0fd,_0x58cd79),_0x49d576=await this[_0x268e6b(0x155)](_0x42c041);if(!_0x49d576)return logger[_0x268e6b(0x171)](_0x3db5ed['jZwQu']),await this[_0x268e6b(0x141)](_0x34a0fd,_0x58cd79);return _0x42c041;}async[a69_0x5d5334(0x155)](_0x102225){const _0x1b11fb=a69_0x5d5334,_0x54eec1={'qCVgT':function(_0x18cae3,_0x3267cf){return _0x18cae3(_0x3267cf);},'QWmYq':function(_0x3e6ee9,_0x379138,_0x39e5ce){return _0x3e6ee9(_0x379138,_0x39e5ce);},'JlOtN':'--version','Fxpwo':_0x1b11fb(0x196),'lnkNV':_0x1b11fb(0x1b0)},_0x57a347=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x1acf98,_0x61e6b6)=>{const _0x2f71a7=_0x1b11fb,_0x4b0360={'mKupU':function(_0x39ce15,_0x375be1){const _0x41f589=a69_0x2859;return _0x54eec1[_0x41f589(0x1aa)](_0x39ce15,_0x375be1);},'BvTdt':function(_0x4f2bd5,_0xd841a5){return _0x54eec1['qCVgT'](_0x4f2bd5,_0xd841a5);}},_0x401d9f=_0x54eec1[_0x2f71a7(0x14d)](spawn,_0x102225,[_0x54eec1[_0x2f71a7(0x179)]]);_0x401d9f['stdout']['on'](_0x54eec1[_0x2f71a7(0x14a)],_0x487112=>{const _0x746ec3=_0x2f71a7;_0x57a347['test'](_0x487112)&&_0x4b0360[_0x746ec3(0x16e)](_0x1acf98,!![]);}),_0x401d9f['on'](_0x54eec1[_0x2f71a7(0x15a)],()=>{const _0x394250=_0x2f71a7;_0x4b0360[_0x394250(0x145)](_0x1acf98,![]);});});}['download'](_0xa621c8,_0xf60994){const _0x693f26=a69_0x5d5334,_0x434d2c={'rMflT':_0x693f26(0x138),'vZWdN':function(_0x11151d,_0x47f8b1){return _0x11151d(_0x47f8b1);},'bVLBj':_0x693f26(0x160),'APISw':_0x693f26(0x1a5),'XuYex':function(_0x393b6b,_0x4918ba){return _0x393b6b===_0x4918ba;},'BygLH':'0755','SpJXF':_0x693f26(0x192),'qCQyY':'error','ICmAF':_0x693f26(0x1b0),'JCanD':_0x693f26(0x193),'jvWQa':function(_0xe1be7,_0x2abdef){return _0xe1be7+_0x2abdef;},'fGbHf':_0x693f26(0x161),'Xusqz':_0x693f26(0x15b)};!this.#checkPath(_0xf60994)&&fs[_0x693f26(0x19e)](_0xf60994);const _0x2317ed=this.#binaryName,_0x10ad92=path[_0x693f26(0x19c)](_0xf60994,_0x434d2c[_0x693f26(0x17d)](_0x2317ed,_0x434d2c[_0x693f26(0x1b1)])),_0x4aba4e=path[_0x693f26(0x19c)](_0xf60994,_0x2317ed),_0x315c9a=fs['createWriteStream'](_0x10ad92),_0x471751=url['parse'](this.#httpPath);if(_0xa621c8[_0x693f26(0x164)]&&_0xa621c8['proxyPort']){const _0x55b848={};_0x55b848['host']=_0xa621c8[_0x693f26(0x164)],_0x55b848[_0x693f26(0x181)]=_0xa621c8[_0x693f26(0x19a)],_0x471751['agent']=new HttpsProxyAgent(_0x55b848);}if(_0xa621c8[_0x693f26(0x16c)])try{_0x471751['ca']=fs[_0x693f26(0x148)](_0xa621c8['useCaCertificate']);}catch(_0x50ae8c){logger[_0x693f26(0x171)](_0x434d2c[_0x693f26(0x1a0)],_0x50ae8c);}return new Promise((_0x28eac5,_0x47ff83)=>{const _0x106fbc=_0x693f26;https[_0x106fbc(0x140)](_0x471751,function(_0x313bf4){const _0x3f4e37=_0x106fbc,_0x4da80e={'YWujq':_0x434d2c[_0x3f4e37(0x139)],'FTflk':function(_0x5abb97,_0x5e6736){const _0x271de6=_0x3f4e37;return _0x434d2c[_0x271de6(0x1a9)](_0x5abb97,_0x5e6736);},'wIxAM':_0x434d2c[_0x3f4e37(0x177)],'zWsrf':function(_0x3dd090,_0x28e15f){const _0x5b081e=_0x3f4e37;return _0x434d2c[_0x5b081e(0x1a9)](_0x3dd090,_0x28e15f);},'puwZN':_0x434d2c[_0x3f4e37(0x13c)],'sEERf':function(_0x347816,_0x310869){const _0x56e5d8=_0x3f4e37;return _0x434d2c[_0x56e5d8(0x15e)](_0x347816,_0x310869);},'sRwzj':_0x434d2c['BygLH'],'ZSlvp':_0x434d2c[_0x3f4e37(0x1a7)],'KAUpZ':_0x434d2c[_0x3f4e37(0x137)]};_0x313bf4[_0x3f4e37(0x15c)](_0x315c9a),_0x313bf4['on'](_0x434d2c[_0x3f4e37(0x137)],function(_0x4a03df){const _0xde98f5=_0x3f4e37;logger['error'](_0x4da80e['YWujq'],_0x4a03df),_0x4da80e[_0xde98f5(0x182)](_0x47ff83,_0x4a03df);}),_0x315c9a['on'](_0x434d2c[_0x3f4e37(0x137)],function(_0x22597e){const _0x130cd0=_0x3f4e37;logger[_0x130cd0(0x171)](_0x4da80e[_0x130cd0(0x18a)],_0x22597e),_0x4da80e[_0x130cd0(0x182)](_0x47ff83,_0x22597e);}),_0x315c9a['on'](_0x434d2c[_0x3f4e37(0x168)],function(){const _0x31ee5a=_0x3f4e37,_0x13971c={'YPsjY':function(_0x3ff2ba,_0x3af1e3){const _0x46bbe8=a69_0x2859;return _0x4da80e[_0x46bbe8(0x182)](_0x3ff2ba,_0x3af1e3);}},_0xe06b61={};_0xe06b61[_0x31ee5a(0x131)]=!![],yauzl[_0x31ee5a(0x18e)](_0x10ad92,_0xe06b61,function(_0x526896,_0x3542d3){const _0x236841=_0x31ee5a,_0x5257a9={'ypcut':function(_0x1db67d,_0x2884e2){const _0x51b755=a69_0x2859;return _0x4da80e[_0x51b755(0x14e)](_0x1db67d,_0x2884e2);},'GZdXl':_0x4da80e[_0x236841(0x159)],'lkwNY':function(_0x2c81f5,_0xdd7bb8){return _0x4da80e['sEERf'](_0x2c81f5,_0xdd7bb8);},'rMjCa':function(_0x51d780,_0x190ae2){const _0x3e2521=_0x236841;return _0x4da80e[_0x3e2521(0x182)](_0x51d780,_0x190ae2);},'qrMfK':function(_0x12d2a6,_0x120b7b){return _0x4da80e['zWsrf'](_0x12d2a6,_0x120b7b);},'uxtZS':_0x4da80e[_0x236841(0x190)]};_0x526896&&_0x4da80e['FTflk'](_0x47ff83,_0x526896),_0x3542d3[_0x236841(0x172)](),_0x3542d3['on'](_0x4da80e['ZSlvp'],_0x43c5b3=>{const _0x4b5e67=_0x236841,_0x1b4e59={'FPFPz':function(_0x1dc18b,_0x56b9aa){const _0x3544ee=a69_0x2859;return _0x5257a9[_0x3544ee(0x17b)](_0x1dc18b,_0x56b9aa);},'ZVFeR':_0x5257a9[_0x4b5e67(0x152)]};if(/\/$/['test'](_0x43c5b3[_0x4b5e67(0x143)]))_0x3542d3[_0x4b5e67(0x172)]();else{const _0x409004=fs[_0x4b5e67(0x194)](path[_0x4b5e67(0x19c)](_0xf60994,_0x43c5b3[_0x4b5e67(0x143)]));_0x3542d3[_0x4b5e67(0x19b)](_0x43c5b3,function(_0x4bda7a,_0x8a7e21){const _0x5ef8af=_0x4b5e67;_0x4bda7a&&_0x1b4e59['FPFPz'](_0x47ff83,_0x526896),_0x8a7e21['on'](_0x1b4e59[_0x5ef8af(0x1a3)],function(){const _0x1dc74d=_0x5ef8af;_0x409004['close'](),_0x3542d3[_0x1dc74d(0x172)]();}),_0x8a7e21[_0x5ef8af(0x15c)](_0x409004);}),_0x5257a9['lkwNY'](_0x43c5b3[_0x4b5e67(0x143)],_0x2317ed)&&_0x3542d3['close']();}}),_0x3542d3['on'](_0x4da80e[_0x236841(0x146)],_0x4489a8=>{const _0x5bff63=_0x236841;_0x13971c[_0x5bff63(0x169)](_0x47ff83,_0x4489a8);}),_0x3542d3[_0x236841(0x157)](_0x4da80e['puwZN'],()=>{const _0x35868c=_0x236841,_0xda62c5={'NesCn':function(_0x3bc3cf,_0x2b9ff9){const _0x87f600=a69_0x2859;return _0x5257a9[_0x87f600(0x191)](_0x3bc3cf,_0x2b9ff9);},'kRhBI':function(_0x24fe95,_0x516180){const _0x346236=a69_0x2859;return _0x5257a9[_0x346236(0x199)](_0x24fe95,_0x516180);}};fs[_0x35868c(0x197)](_0x4aba4e,_0x5257a9['uxtZS'],function(_0x35eee6){const _0x4468bf=_0x35868c;_0x35eee6&&_0xda62c5[_0x4468bf(0x1ae)](_0x47ff83,_0x35eee6),_0xda62c5[_0x4468bf(0x16d)](_0x28eac5,_0x4aba4e);}),_0x3542d3[_0x35868c(0x1b0)]();});});});})['on'](_0x434d2c['qCQyY'],function(_0x338d8d){const _0x49107e=_0x106fbc;logger[_0x49107e(0x171)](_0x434d2c[_0x49107e(0x13d)],_0x338d8d),_0x434d2c[_0x49107e(0x1a9)](_0x47ff83,_0x338d8d);});});}#homedir(){const _0x4a82f7=a69_0x5d5334,_0x4e3c89={};_0x4e3c89[_0x4a82f7(0x16b)]=function(_0x33e69f,_0x372ea3){return _0x33e69f===_0x372ea3;},_0x4e3c89['zSgRt']=_0x4a82f7(0x166),_0x4e3c89[_0x4a82f7(0x183)]=function(_0x3c3dc9,_0x203342){return _0x3c3dc9===_0x203342;},_0x4e3c89[_0x4a82f7(0x187)]=_0x4a82f7(0x17c),_0x4e3c89[_0x4a82f7(0x13e)]=function(_0x6f7225,_0x256a92){return _0x6f7225+_0x256a92;},_0x4e3c89[_0x4a82f7(0x13a)]=function(_0x237749,_0x4beeed){return _0x237749===_0x4beeed;},_0x4e3c89[_0x4a82f7(0x186)]=_0x4a82f7(0x149),_0x4e3c89[_0x4a82f7(0x17a)]=function(_0x7c261e,_0x4d36b1){return _0x7c261e+_0x4d36b1;},_0x4e3c89[_0x4a82f7(0x185)]=_0x4a82f7(0x144),_0x4e3c89[_0x4a82f7(0x12f)]=function(_0x1aa9da,_0x4dc27d){return _0x1aa9da===_0x4dc27d;},_0x4e3c89[_0x4a82f7(0x154)]=_0x4a82f7(0x16f),_0x4e3c89['TwspA']='/root',_0x4e3c89['KcnWb']=_0x4a82f7(0x158),_0x4e3c89['VjUUC']=function(_0x3b6b96,_0x4756a8){return _0x3b6b96||_0x4756a8;};const _0x49ec62=_0x4e3c89;if(_0x49ec62['azlUh'](typeof os['homedir'],_0x49ec62[_0x4a82f7(0x17e)]))return os[_0x4a82f7(0x167)]();const _0x354be3=process[_0x4a82f7(0x195)],_0x199df4=_0x354be3[_0x4a82f7(0x188)],_0x608538=_0x354be3[_0x4a82f7(0x18c)]||_0x354be3[_0x4a82f7(0x18b)]||_0x354be3['LNAME']||_0x354be3[_0x4a82f7(0x15f)];if(_0x49ec62[_0x4a82f7(0x183)](process['platform'],_0x49ec62[_0x4a82f7(0x187)]))return _0x354be3[_0x4a82f7(0x19f)]||_0x49ec62[_0x4a82f7(0x13e)](_0x354be3[_0x4a82f7(0x18d)],_0x354be3[_0x4a82f7(0x12e)])||_0x199df4||null;if(_0x49ec62[_0x4a82f7(0x13a)](process['platform'],_0x49ec62[_0x4a82f7(0x186)]))return _0x199df4||(_0x608538?_0x49ec62[_0x4a82f7(0x17a)](_0x49ec62[_0x4a82f7(0x185)],_0x608538):null);if(_0x49ec62[_0x4a82f7(0x12f)](process[_0x4a82f7(0x1b2)],_0x49ec62[_0x4a82f7(0x154)]))return _0x199df4||(_0x49ec62[_0x4a82f7(0x12f)](process['getuid'](),0x0)?_0x49ec62[_0x4a82f7(0x134)]:_0x608538?_0x49ec62['XtJOq'](_0x49ec62[_0x4a82f7(0x14c)],_0x608538):null);return _0x49ec62['VjUUC'](_0x199df4,null);}}function a69_0x2859(_0x2c1dfb,_0x2385d8){const _0x4d51a7=a69_0x4d51();return a69_0x2859=function(_0x285908,_0x1d8173){_0x285908=_0x285908-0x12d;let _0x279a45=_0x4d51a7[_0x285908];return _0x279a45;},a69_0x2859(_0x2c1dfb,_0x2385d8);}module[a69_0x5d5334(0x1b5)]=PercyBinary;function a69_0x4d51(){const _0x1fb648=['FTflk','sHHah','pBGKD','VOoDg','AaYRL','CTtSs','HOME','https-proxy-agent','wIxAM','USER','LOGNAME','HOMEDRIVE','open','18581893xEvjtr','sRwzj','rMjCa','entry','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request','createWriteStream','env','data','chmod','XdNRs','qrMfK','proxyPort','openReadStream','join','JAUlk','mkdirSync','USERPROFILE','Xusqz','length','TMsVI','ZVFeR','/percy-win.zip','end','W_OK','SpJXF','follow-redirects','vZWdN','qCVgT','tmpdir','.browserstack','680824lJnIFZ','NesCn','10skdZYx','close','fGbHf','platform','2305070jLuKgx','statSync','exports','5oImscD','HOMEPATH','rgRXd','wbQed','lazyEntries','9CaAgdz','../logger','TwspA','/percy-osx.zip','162bPPAyc','qCQyY','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response','rMflT','vjtZQ','HjWGf','APISw','JCanD','XtJOq','getBinaryPath','get','download','pREle','fileName','/Users/','BvTdt','KAUpZ','kJGWv','readFileSync','darwin','Fxpwo','cwd','KcnWb','QWmYq','zWsrf','1003771jomCUM','618312oLmNMN','winstonLogger','GZdXl','10443790uUWSGw','DJMhL','validateBinary','R_OK','once','/home/','puwZN','lnkNV','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file','pipe','child_process','XuYex','USERNAME','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file','.zip','jgZLb','accessSync','proxyHost','https://github.com/percy/cli/releases/latest/download','function','homedir','ICmAF','YPsjY','percy','azlUh','useCaCertificate','kRhBI','mKupU','linux','gVntF','error','readEntry','322194Qgjggz','url','mTrFk','/percy-linux.zip','bVLBj','undefined','JlOtN','XlLfY','ypcut','win32','jvWQa','zSgRt','match','X_OK','port'];a69_0x4d51=function(){return _0x1fb648;};return a69_0x4d51();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a70_0x303665=a70_0x3f08;function a70_0x3f08(_0x4cd749,_0x1d08dc){var _0x2024d1=a70_0x2024();return a70_0x3f08=function(_0x3f08d3,_0x2f93c4){_0x3f08d3=_0x3f08d3-0xf0;var _0x2043a2=_0x2024d1[_0x3f08d3];return _0x2043a2;},a70_0x3f08(_0x4cd749,_0x1d08dc);}(function(_0x23d2db,_0x319ed8){var _0x3843c8=a70_0x3f08,_0x1735ce=_0x23d2db();while(!![]){try{var _0x466a29=-parseInt(_0x3843c8(0xfc))/0x1*(parseInt(_0x3843c8(0xf9))/0x2)+-parseInt(_0x3843c8(0xf8))/0x3+parseInt(_0x3843c8(0xfb))/0x4+-parseInt(_0x3843c8(0xf4))/0x5*(parseInt(_0x3843c8(0xf6))/0x6)+parseInt(_0x3843c8(0xf1))/0x7*(parseInt(_0x3843c8(0xf7))/0x8)+parseInt(_0x3843c8(0xf3))/0x9+-parseInt(_0x3843c8(0xf2))/0xa;if(_0x466a29===_0x319ed8)break;else _0x1735ce['push'](_0x1735ce['shift']());}catch(_0x31b35e){_0x1735ce['push'](_0x1735ce['shift']());}}}(a70_0x2024,0x4769e));class PercyCaptureMap{#map={};[a70_0x303665(0xfa)](_0x1c21b8,_0x3ea97f){!this.#map[_0x1c21b8]&&(this.#map[_0x1c21b8]={}),!this.#map[_0x1c21b8][_0x3ea97f]&&(this.#map[_0x1c21b8][_0x3ea97f]=0x0),this.#map[_0x1c21b8][_0x3ea97f]++;}[a70_0x303665(0xf0)](_0x3519b1,_0x1e6227){return _0x3519b1+'-'+_0x1e6227+'-'+this['get'](_0x3519b1,_0x1e6227);}[a70_0x303665(0xf5)](_0x2e1bb7,_0x35ed1e){if(!this.#map[_0x2e1bb7])return 0x0;if(!this.#map[_0x2e1bb7][_0x35ed1e])return 0x0;return this.#map[_0x2e1bb7][_0x35ed1e];}}module['exports']=PercyCaptureMap;function a70_0x2024(){var _0x2cc19d=['7lfzMNu','823420bVRcXt','138474NFmDlB','613615iufhhN','get','18OIMKlw','4425304ajrndA','267240rgUttE','2KteWYJ','increment','1710792zDYKLf','164146vENxOe','getName'];a70_0x2024=function(){return _0x2cc19d;};return a70_0x2024();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a71_0x49b723=a71_0x24bb;(function(_0x40c571,_0x4076d0){var _0x1ed222=a71_0x24bb,_0x3007d6=_0x40c571();while(!![]){try{var _0x56c351=parseInt(_0x1ed222(0x1c8))/0x1*(parseInt(_0x1ed222(0x1c3))/0x2)+parseInt(_0x1ed222(0x1c4))/0x3+parseInt(_0x1ed222(0x1ce))/0x4*(-parseInt(_0x1ed222(0x1cc))/0x5)+-parseInt(_0x1ed222(0x1cd))/0x6+-parseInt(_0x1ed222(0x1cf))/0x7*(parseInt(_0x1ed222(0x1cb))/0x8)+-parseInt(_0x1ed222(0x1d1))/0x9*(-parseInt(_0x1ed222(0x1c1))/0xa)+parseInt(_0x1ed222(0x1d3))/0xb;if(_0x56c351===_0x4076d0)break;else _0x3007d6['push'](_0x3007d6['shift']());}catch(_0x5a7da6){_0x3007d6['push'](_0x3007d6['shift']());}}}(a71_0x51c5,0xc8b5d));var a71_0x1903c2={};a71_0x1903c2[a71_0x49b723(0x1ca)]=[a71_0x49b723(0x1c9)],a71_0x1903c2['element']=[a71_0x49b723(0x1c6),'sendKeys'];var a71_0x53d730={};a71_0x53d730['driver']=[a71_0x49b723(0x1c9)];function a71_0x51c5(){var _0xbfc061=['screenshot','344362DCgJdW','takeScreenshot','driver','438176OvmJat','295iLEHyc','7444974uOHbkD','81132vqKyPz','133ZKvExX','manual','270567rHasoK','element','25956227cjNBxJ','exports','30noNBcA','auto','4DFRjRn','3485199MoQmKl','testcase','click'];a71_0x51c5=function(){return _0xbfc061;};return a71_0x51c5();}var a71_0x30010f={};a71_0x30010f[a71_0x49b723(0x1d2)]=[a71_0x49b723(0x1c6)];var a71_0x1243a4={};function a71_0x24bb(_0x3db1f0,_0x51a9de){var _0x51c5e0=a71_0x51c5();return a71_0x24bb=function(_0x24bbbc,_0x582536){_0x24bbbc=_0x24bbbc-0x1c0;var _0x27b04e=_0x51c5e0[_0x24bbbc];return _0x27b04e;},a71_0x24bb(_0x3db1f0,_0x51a9de);}a71_0x1243a4[a71_0x49b723(0x1c2)]=a71_0x1903c2,a71_0x1243a4[a71_0x49b723(0x1c7)]=a71_0x53d730,a71_0x1243a4[a71_0x49b723(0x1c6)]=a71_0x30010f,a71_0x1243a4[a71_0x49b723(0x1c5)]={},a71_0x1243a4[a71_0x49b723(0x1d0)]={},module[a71_0x49b723(0x1c0)]=a71_0x1243a4;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a72_0xdb6d7f=a72_0x3758;(function(_0x595111,_0x546ad6){const _0x32d048=a72_0x3758,_0x45bdde=_0x595111();while(!![]){try{const _0x365ea1=parseInt(_0x32d048(0x14e))/0x1+parseInt(_0x32d048(0x154))/0x2+-parseInt(_0x32d048(0x149))/0x3*(parseInt(_0x32d048(0x150))/0x4)+parseInt(_0x32d048(0x156))/0x5*(-parseInt(_0x32d048(0x146))/0x6)+parseInt(_0x32d048(0x165))/0x7+-parseInt(_0x32d048(0x145))/0x8*(parseInt(_0x32d048(0x147))/0x9)+parseInt(_0x32d048(0x158))/0xa*(parseInt(_0x32d048(0x14d))/0xb);if(_0x365ea1===_0x546ad6)break;else _0x45bdde['push'](_0x45bdde['shift']());}catch(_0x73d400){_0x45bdde['push'](_0x45bdde['shift']());}}}(a72_0x300f,0x65089));const tryRequire=function(_0x5c5c4c,_0x5d7443){const _0x38e158={'mAorx':function(_0x11ea17,_0x3fa5c9){return _0x11ea17(_0x3fa5c9);}};try{return _0x38e158['mAorx'](require,_0x5c5c4c);}catch{return _0x5d7443;}},percySnapshot=tryRequire(a72_0xdb6d7f(0x160),null),{percyScreenshot}=tryRequire(a72_0xdb6d7f(0x160),{}),percyAppScreenshot=require(a72_0xdb6d7f(0x164)),{getCurrentTestData}=require(a72_0xdb6d7f(0x153)),PerformanceTester=require(a72_0xdb6d7f(0x14a)),logger=require(a72_0xdb6d7f(0x169))[a72_0xdb6d7f(0x166)];function a72_0x3758(_0x28453a,_0x53a0be){const _0x300fad=a72_0x300f();return a72_0x3758=function(_0x37581a,_0x3d71c7){_0x37581a=_0x37581a-0x142;let _0x40e150=_0x300fad[_0x37581a];return _0x40e150;},a72_0x3758(_0x28453a,_0x53a0be);}percySnapshot&&(exports['snapshot']=async function(){const _0x33b8ea=a72_0xdb6d7f,_0x1a282c={'zJqhh':function(_0x2f97a0,_0x1a07c9){return _0x2f97a0!==_0x1a07c9;},'TjkCW':function(_0x1e2448,_0x49a9ac){return _0x1e2448>=_0x49a9ac;},'mZHpg':function(_0x1f9941){return _0x1f9941();},'VrbJz':_0x33b8ea(0x14f)};if(global[_0x33b8ea(0x155)]&&_0x1a282c[_0x33b8ea(0x144)](global['browserstackPlatformIndex'],global[_0x33b8ea(0x16a)]))return;const _0x13526b=_0x1a282c[_0x33b8ea(0x168)](arguments[_0x33b8ea(0x15c)],0x2)?arguments[0x1]:'',_0xa4144e=_0x1a282c[_0x33b8ea(0x15b)](getCurrentTestData),_0xb5ab0b={};return _0xb5ab0b[_0x33b8ea(0x161)]=_0x13526b,_0xb5ab0b[_0x33b8ea(0x15d)]=_0xa4144e['name']||'',_0xb5ab0b[_0x33b8ea(0x159)]=_0xa4144e[_0x33b8ea(0x14b)]||'',_0xb5ab0b['platformIndex']=global['browserstackPlatformIndex'],await PerformanceTester['measure'](_0x1a282c[_0x33b8ea(0x162)],()=>percySnapshot[_0x33b8ea(0x152)](null,arguments),_0xb5ab0b);});function a72_0x300f(){const _0x4bacee=['Dxaxo','@percy/selenium-webdriver','name','VrbJz','percy:screenshot-app','@percy/appium-app','2632301OHLjIW','winstonLogger','percy:screenshot','TjkCW','../logger','browserstackPercyBestPlatform','measure','screenshot','zJqhh','8WtBCyY','6OGbXFn','3285702HPtmnX','mjWNZ','2281962lCPYDe','../performance-tester','uuid','uKIvV','1464694HfBdiV','669714COPLRJ','percy:snapshot','4EHnCZu','FGppj','apply','../../helpers/testhub/utils','647550ayQbzQ','browserstackPlatformIndex','2478685enSqOT','screenshotApp','50qEKGPU','thTestCaseExecutionId','zwGqJ','mZHpg','length','testCase','hnBRY'];a72_0x300f=function(){return _0x4bacee;};return a72_0x300f();}percyScreenshot?exports[a72_0xdb6d7f(0x143)]=async function(){const _0x1de7a9=a72_0xdb6d7f,_0x540639={'zwGqJ':function(_0x4cd23b,_0x4a8b83){return _0x4cd23b>=_0x4a8b83;},'Dxaxo':function(_0x18a684){return _0x18a684();},'mjWNZ':_0x1de7a9(0x167)},_0x26c292=_0x540639[_0x1de7a9(0x15a)](arguments[_0x1de7a9(0x15c)],0x2)?arguments[0x1]:'',_0x12f17b=_0x540639[_0x1de7a9(0x15f)](getCurrentTestData),_0x8f7c17={};return _0x8f7c17[_0x1de7a9(0x161)]=_0x26c292,_0x8f7c17[_0x1de7a9(0x15d)]=_0x12f17b[_0x1de7a9(0x161)]||'',_0x8f7c17[_0x1de7a9(0x159)]=_0x12f17b['uuid']||'',_0x8f7c17['platformIndex']=global['browserstackPlatformIndex'],await PerformanceTester['measure'](_0x540639[_0x1de7a9(0x148)],()=>percyScreenshot['apply'](null,arguments),_0x8f7c17);}:exports['screenshot']=()=>{const _0x3f7385=a72_0xdb6d7f,_0x79b1e4={};_0x79b1e4['uKIvV']='Unsupported\x20driver\x20for\x20percy';const _0x4a58f0=_0x79b1e4;logger['error'](_0x4a58f0[_0x3f7385(0x14c)]);};exports[a72_0xdb6d7f(0x157)]=async function(){const _0x29570b=a72_0xdb6d7f,_0xbc98fb={'FGppj':function(_0x1c71c4,_0x42c792){return _0x1c71c4>=_0x42c792;},'GVCxG':function(_0x123513){return _0x123513();},'hnBRY':_0x29570b(0x163)},_0x33c8e4=_0xbc98fb[_0x29570b(0x151)](arguments['length'],0x2)?arguments[0x1]:'',_0x57d608=_0xbc98fb['GVCxG'](getCurrentTestData),_0x124637={};return _0x124637[_0x29570b(0x161)]=_0x33c8e4,_0x124637[_0x29570b(0x15d)]=_0x57d608[_0x29570b(0x161)]||'',_0x124637['thTestCaseExecutionId']=_0x57d608['uuid']||'',_0x124637['platformIndex']=global['browserstackPlatformIndex'],await PerformanceTester[_0x29570b(0x142)](_0xbc98fb[_0x29570b(0x15e)],()=>percyAppScreenshot['apply'](null,arguments),_0x124637);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a73_0xdc7c(_0x2b482f,_0x54f5f7){var _0x57a219=a73_0x57a2();return a73_0xdc7c=function(_0xdc7c7b,_0x48765d){_0xdc7c7b=_0xdc7c7b-0xaf;var _0x2d6be6=_0x57a219[_0xdc7c7b];return _0x2d6be6;},a73_0xdc7c(_0x2b482f,_0x54f5f7);}var a73_0x1fa80c=a73_0xdc7c;function a73_0x57a2(){var _0x1bff7b=['./Percy','406184UXaceB','130603lJLDiy','523527ykEDgV','288378WyTrDi','287819QoqYqo','5dUovyi','2882808VifCcN','6hLlTqG','1306112UtwNvZ'];a73_0x57a2=function(){return _0x1bff7b;};return a73_0x57a2();}(function(_0x21750b,_0x35ec75){var _0x45ff55=a73_0xdc7c,_0x1a26bb=_0x21750b();while(!![]){try{var _0x4b0732=parseInt(_0x45ff55(0xb1))/0x1+parseInt(_0x45ff55(0xb3))/0x2+parseInt(_0x45ff55(0xb2))/0x3+parseInt(_0x45ff55(0xb0))/0x4*(parseInt(_0x45ff55(0xb5))/0x5)+parseInt(_0x45ff55(0xb7))/0x6*(parseInt(_0x45ff55(0xb4))/0x7)+-parseInt(_0x45ff55(0xb8))/0x8+-parseInt(_0x45ff55(0xb6))/0x9;if(_0x4b0732===_0x35ec75)break;else _0x1a26bb['push'](_0x1a26bb['shift']());}catch(_0x390587){_0x1a26bb['push'](_0x1a26bb['shift']());}}}(a73_0x57a2,0x1a764),module['exports']=require(a73_0x1fa80c(0xaf)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a74_0x2ba265=a74_0x390d;function a74_0x27b1(){const _0x1f174a=['getName','10TQIbMv','183009Nwljhg','../helper','patch','nestedKeyValue','then','error','Error\x20patching\x20','vEBdo','680IPanNl','getDriver','startPercy','winstonLogger','getBestPlatformForPercySnapshot','browser','measureWrapper','reduce','percy:start','UAoxO','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','\x20for\x20percy\x20','./Percy','stopPercy','isUndefined','overrideXforPercy','start','browserStackPercyOptions','safari','6QJbBpP','dfqLi','percyAutoCapture','stop','AlwPN','hMMFM','toLowerCase','debug','./PercyCaptureModes','UhACB','3232560FUXJbv','forEach','browserstackPercyMap','prototype','../logger','percyCaptureMode','SQGbv','browserstackPercyBestPlatform','browserName','percy','1043316QXwHtQ','browserstackSessionName','chrome','deviceName','./PercySDK','platforms','7PLQPmG','driver','firefox','init','1029768WFRxCU','192567GOXVRL','patchDriverPercy','apply','rkwGG','element','5969227PsyVje','screenshotApp','mjGWs','ExpxO','Starting\x20percy','jqEfK','94995EWUnjs'];a74_0x27b1=function(){return _0x1f174a;};return a74_0x27b1();}function a74_0x390d(_0x5880f4,_0x299eac){const _0x27b183=a74_0x27b1();return a74_0x390d=function(_0x390d3e,_0x14763f){_0x390d3e=_0x390d3e-0x1ba;let _0x29d06f=_0x27b183[_0x390d3e];return _0x29d06f;},a74_0x390d(_0x5880f4,_0x299eac);}(function(_0xce3637,_0xa12be3){const _0x28be9=a74_0x390d,_0x294018=_0xce3637();while(!![]){try{const _0x21c409=-parseInt(_0x28be9(0x1fe))/0x1*(-parseInt(_0x28be9(0x1df))/0x2)+parseInt(_0x28be9(0x1c4))/0x3+-parseInt(_0x28be9(0x1f3))/0x4+parseInt(_0x28be9(0x1e9))/0x5+-parseInt(_0x28be9(0x1fd))/0x6*(parseInt(_0x28be9(0x1f9))/0x7)+parseInt(_0x28be9(0x1cc))/0x8*(-parseInt(_0x28be9(0x1c1))/0x9)+parseInt(_0x28be9(0x1c3))/0xa*(parseInt(_0x28be9(0x1bb))/0xb);if(_0x21c409===_0xa12be3)break;else _0x294018['push'](_0x294018['shift']());}catch(_0x270c78){_0x294018['push'](_0x294018['shift']());}}}(a74_0x27b1,0x79a41));const Percy=require(a74_0x2ba265(0x1d8)),PercySDK=require(a74_0x2ba265(0x1f7)),PercyCaptureModes=require(a74_0x2ba265(0x1e7)),PercyCaptureMap=require('./PercyCaptureMap'),logger=require(a74_0x2ba265(0x1ed))[a74_0x2ba265(0x1cf)],helper=require(a74_0x2ba265(0x1c5)),PerformanceTester=require('../performance-tester');exports[a74_0x2ba265(0x1ce)]=PerformanceTester[a74_0x2ba265(0x1d2)](a74_0x2ba265(0x1d4),async _0x14c9f2=>{const _0x17fcf1=a74_0x2ba265,_0x7a4885={};_0x7a4885[_0x17fcf1(0x1e4)]=_0x17fcf1(0x1bf);const _0x2fd01f=_0x7a4885;logger['debug'](_0x2fd01f[_0x17fcf1(0x1e4)]);const _0x51e7ad=new Percy(_0x14c9f2),_0x3a6b83=await _0x51e7ad[_0x17fcf1(0x1dc)]();if(_0x3a6b83)return _0x51e7ad;return null;}),exports[a74_0x2ba265(0x1d9)]=PerformanceTester[a74_0x2ba265(0x1d2)]('percy:stop',async _0x314e89=>{const _0x12d3ad=a74_0x2ba265,_0x92cd32={};_0x92cd32[_0x12d3ad(0x1ef)]='Stopping\x20percy';const _0x1af2d2=_0x92cd32;return logger[_0x12d3ad(0x1e6)](_0x1af2d2[_0x12d3ad(0x1ef)]),_0x314e89[_0x12d3ad(0x1e2)]();}),exports['getBestPlatformForPercySnapshot']=_0x1f7049=>{const _0xfecb66=a74_0x2ba265,_0x2a9274={};_0x2a9274[_0xfecb66(0x1e0)]=function(_0x287a2e,_0x40b988){return _0x287a2e<_0x40b988;};const _0xd83f20=_0x2a9274,_0x615bc0={};_0x615bc0[_0xfecb66(0x1f5)]=0x0,_0x615bc0[_0xfecb66(0x1fb)]=0x1,_0x615bc0['edge']=0x2,_0x615bc0[_0xfecb66(0x1de)]=0x3;const _0xd8b5a0=_0x615bc0;return _0x1f7049[_0xfecb66(0x1d3)]((_0x28844f,_0x4072a1,_0x13de5c)=>{const _0x359bb7=_0xfecb66,_0x11ebe5=_0x1f7049[_0x28844f];if(_0x4072a1[_0x359bb7(0x1f6)])return _0x28844f;if(_0x11ebe5[_0x359bb7(0x1f6)])return _0x13de5c;const _0x1c99e1=_0x4072a1[_0x359bb7(0x1d1)]?_0x4072a1[_0x359bb7(0x1d1)]:_0x4072a1[_0x359bb7(0x1f1)];if(_0x1c99e1&&_0xd83f20[_0x359bb7(0x1e0)](_0xd8b5a0[_0x1c99e1['toLowerCase']()],_0xd8b5a0[_0x1c99e1[_0x359bb7(0x1e5)]()]))return _0x13de5c;return _0x28844f;},0x0);},exports[a74_0x2ba265(0x1e1)]=async(_0x468e10,_0x1bdbad,_0x3005e8)=>{const _0x3f660b=a74_0x2ba265,_0x464227={};_0x464227[_0x3f660b(0x1be)]=_0x3f660b(0x1d6);const _0x477c82=_0x464227,_0x1a6b51=_0x468e10[_0x3f660b(0x1eb)];if(helper[_0x3f660b(0x1da)](_0x468e10['browserstackSessionName'])){logger[_0x3f660b(0x1e6)](_0x477c82['ExpxO']);return;}const _0x405902=_0x1a6b51[_0x3f660b(0x1c2)](_0x468e10[_0x3f660b(0x1f4)],_0x1bdbad);_0x3005e8['app']?await PercySDK[_0x3f660b(0x1bc)](_0x468e10,_0x405902):await PercySDK['screenshot'](_0x468e10,_0x405902),_0x1a6b51['increment'](_0x468e10[_0x3f660b(0x1f4)],_0x1bdbad);},exports[a74_0x2ba265(0x1ff)]=(_0x1e26a7,_0x365959,_0x3446b2)=>{const _0x33c618=a74_0x2ba265,_0x403e68={};_0x403e68[_0x33c618(0x1e8)]=_0x33c618(0x1dd),_0x403e68['jqEfK']=_0x33c618(0x1f2),_0x403e68[_0x33c618(0x1cb)]=function(_0x4feea6,_0x2079b5){return _0x4feea6!==_0x2079b5;},_0x403e68['rkwGG']='manual';const _0x4ac347=_0x403e68;if(!helper[_0x33c618(0x1c7)](_0x3446b2,[_0x4ac347[_0x33c618(0x1e8)],_0x4ac347[_0x33c618(0x1c0)]]))return;if(_0x3446b2[_0x33c618(0x1dd)][_0x33c618(0x1f2)]&&_0x3446b2['browserStackPercyOptions']['percyCaptureMode']&&_0x4ac347['vEBdo'](_0x3446b2[_0x33c618(0x1dd)][_0x33c618(0x1ee)],_0x4ac347[_0x33c618(0x201)])&&!_0x1e26a7[_0x33c618(0x1eb)]){global[_0x33c618(0x1f4)]&&(_0x1e26a7[_0x33c618(0x1f4)]=global['browserstackSessionName']),_0x1e26a7[_0x33c618(0x1eb)]=new PercyCaptureMap();const _0x517447=PercyCaptureModes[_0x3446b2[_0x33c618(0x1dd)][_0x33c618(0x1ee)]];_0x517447[_0x33c618(0x1fa)]&&_0x517447[_0x33c618(0x1fa)][_0x33c618(0x1ea)](_0x4df53c=>this['overrideXforPercy'](_0x1e26a7,_0x4df53c,_0x3446b2)),_0x517447['element']&&_0x517447[_0x33c618(0x1ba)][_0x33c618(0x1ea)](_0x573a74=>{const _0x3350ba=_0x33c618;if(_0x365959[_0x3350ba(0x1ec)][_0x3350ba(0x1c6)+_0x573a74])return;_0x365959[_0x3350ba(0x1ec)]['patch'+_0x573a74]=!![];const _0x12ee70=_0x365959[_0x3350ba(0x1ec)][_0x573a74];_0x365959['prototype'][_0x573a74]=async function(){const _0x364082=_0x3350ba;let _0x17246a=_0x12ee70[_0x364082(0x200)](this,arguments);_0x17246a&&_0x17246a[_0x364082(0x1c8)]&&(_0x17246a=await _0x17246a);try{const _0x3aa1ce=this[_0x364082(0x1cd)]();await exports['percyAutoCapture'](_0x3aa1ce,_0x573a74,_0x3446b2);}catch(_0x112220){logger[_0x364082(0x1c9)](_0x364082(0x1ca)+_0x573a74+'\x20for\x20percy\x20'+_0x112220);}return _0x17246a;};});}},exports[a74_0x2ba265(0x1db)]=function(_0x425057,_0x47bd71,_0x3e558b){const _0x40e903=a74_0x2ba265,_0x10ad3e={};_0x10ad3e['UAoxO']=function(_0x5db4ad,_0xc108d7){return _0x5db4ad+_0xc108d7;},_0x10ad3e[_0x40e903(0x1e3)]=_0x40e903(0x1c6),_0x10ad3e[_0x40e903(0x1bd)]=_0x40e903(0x1fc);const _0x334740=_0x10ad3e,_0x2271ad=_0x334740[_0x40e903(0x1d5)](_0x334740[_0x40e903(0x1e3)],_0x47bd71),_0x206641=_0x334740[_0x40e903(0x1d5)](_0x334740[_0x40e903(0x1bd)],_0x47bd71),_0x37cbdf=this;if(_0x425057[_0x2271ad]||!_0x425057[_0x47bd71])return;_0x425057[_0x2271ad]=!![],_0x425057[_0x206641]=_0x425057[_0x47bd71],_0x425057[_0x47bd71]=async()=>{const _0xf453f6=_0x40e903;try{await _0x37cbdf[_0xf453f6(0x1e1)](_0x425057,_0x47bd71,_0x3e558b);}catch(_0x4a5727){logger[_0xf453f6(0x1c9)](_0xf453f6(0x1ca)+_0x47bd71+_0xf453f6(0x1d7)+_0x4a5727);}return await _0x425057[_0x206641][_0xf453f6(0x200)](_0x425057,arguments);};},exports['getPercyOptions']=_0x335a4f=>{const _0x4fbe3a=a74_0x2ba265,_0x1f050e={};_0x1f050e[_0x4fbe3a(0x1f2)]=_0x335a4f['percy'],_0x1f050e['percyCaptureMode']=_0x335a4f[_0x4fbe3a(0x1ee)];const _0x347f53=_0x1f050e;_0x335a4f[_0x4fbe3a(0x1f2)]&&(_0x347f53[_0x4fbe3a(0x1f0)]=exports[_0x4fbe3a(0x1d0)](_0x335a4f[_0x4fbe3a(0x1f8)]));;return _0x347f53;};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a72_0xb27e77=a72_0x5149;function a72_0x5149(_0x6e1d31,_0x7d35b4){const _0x3b22da=a72_0x3b22();return a72_0x5149=function(_0x5149be,_0x4590b5){_0x5149be=_0x5149be-0x19d;let _0x98f611=_0x3b22da[_0x5149be];return _0x98f611;},a72_0x5149(_0x6e1d31,_0x7d35b4);}(function(_0x15ddca,_0x1f6abf){const _0x231611=a72_0x5149,_0x40f873=_0x15ddca();while(!![]){try{const _0xb52c0d=-parseInt(_0x231611(0x1fe))/0x1+parseInt(_0x231611(0x1c3))/0x2+parseInt(_0x231611(0x1f4))/0x3*(parseInt(_0x231611(0x1bd))/0x4)+-parseInt(_0x231611(0x202))/0x5*(-parseInt(_0x231611(0x211))/0x6)+-parseInt(_0x231611(0x1e7))/0x7+parseInt(_0x231611(0x1f5))/0x8*(parseInt(_0x231611(0x1e6))/0x9)+-parseInt(_0x231611(0x21a))/0xa*(parseInt(_0x231611(0x1fd))/0xb);if(_0xb52c0d===_0x1f6abf)break;else _0x40f873['push'](_0x40f873['shift']());}catch(_0x2303bc){_0x40f873['push'](_0x40f873['shift']());}}}(a72_0x3b22,0x23dd9));const fs=require('fs'),{performance,PerformanceObserver}=require(a72_0xb27e77(0x1ba)),{sleep,debug}=require(a72_0xb27e77(0x1b9)),path=require(a72_0xb27e77(0x1e4)),logger=require(a72_0xb27e77(0x1b7))[a72_0xb27e77(0x20c)];function a72_0x3b22(){const _0x1a8bca=['335950ipNMZM','eOTzd','_events','debug','getEntries','disconnect','apYNq','MchHs','parse','errorReportFileName','xBsav','error-report.json','stopAndGenerate','ebfHj','performance-report.json','appendFileSync','errorFile','stopMonitoring','finalize','_errorEvents','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','performance-own.html','ruHyG','reduce','pushPerfMeasures','started','measureWrapper','code','readFileSync','entries','generateJSON','BaXeO','./logger','Performance\x20report\x20is\x20at\x20','./test-observability/utils','perf_hooks','existsSync','entryType','27596gaNwsM','oJZhh','VURiP','unlinkSync','BSaMD','getPerformance','233274jtRjSl','_measureEvents','getEventsFromJSON','finalizeErrors','bklCH','join','MIZix','length','</td><td>','measure','pGRaU','wmXiZ','XOdPl','</tbody></table></body></html>','generateHTMLReport','getCleanedPerfEvents','Error\x20in\x20doing\x20csv\x20operations:\x20','slice','finally','Error\x20stopping\x20monitoring','ByMJD','concat','mlKlO','EIUKH','uCckD','apply','writeFileSync','isEnabled','lJbls','entryTypes','measures','toString','CjoQY','path','umEZw','45UQXDDh','631988crYMjQ','forEach','meta','</td></tr>','false','XDQCa','\x20for\x20all\x20processes\x20is\x20','JdAEv','then','-start','env','stack','_observer','21PbPmZe','161432xSfesy','finalizePerfMeasures','errors','<h1>Performance\x20Report</h1>','name','push','TTNzQ','stringify','44AxKMka','100543wpIkQp','mark','cwd','map','1031435nJfLRV','HuFGS','match','SFaZw','fbndF','exports','writeFile','IZIDK','jsonReportFileName','duration','winstonLogger','vvwCF','Error\x20in\x20writing\x20html\x20','BROWSERSTACK_SDK_INSTRUMENTATION','DaTDo','6QBCwSw','catch','calculateTimeFromEvents','FwlpS','fGpoC','pushErrors','calculateTimesFromMultipleFiles','ipENC','dxIgk'];a72_0x3b22=function(){return _0x1a8bca;};return a72_0x3b22();}class PerformanceTester{static [a72_0xb27e77(0x1f3)];static ['_events']=[];static [a72_0xb27e77(0x1c4)]=[];static [a72_0xb27e77(0x1aa)]=[];static [a72_0xb27e77(0x1b0)]=![];static ['jsonReportFileName']=a72_0xb27e77(0x1a5);static [a72_0xb27e77(0x1a0)]=a72_0xb27e77(0x1a2);static['startMonitoring'](_0x489f67=a72_0xb27e77(0x1a5),_0x46aaec=a72_0xb27e77(0x1a2)){const _0x7a2100=a72_0xb27e77,_0x1842e1={};_0x1842e1[_0x7a2100(0x21b)]=function(_0x2c7561,_0x9c77ee){return _0x2c7561===_0x9c77ee;},_0x1842e1[_0x7a2100(0x1ec)]='measure',_0x1842e1[_0x7a2100(0x1ee)]='function';const _0x5c6b15=_0x1842e1;if(this[_0x7a2100(0x1b0)]||!this['isEnabled']())return;this[_0x7a2100(0x1f3)]=new PerformanceObserver(_0x296f13=>{const _0x4e8b8a=_0x7a2100,_0x45b112={'FwlpS':function(_0x29e574,_0x1a2b0d){const _0x4c92fa=a72_0x5149;return _0x5c6b15[_0x4c92fa(0x21b)](_0x29e574,_0x1a2b0d);},'BSaMD':_0x5c6b15[_0x4e8b8a(0x1ec)]};_0x296f13[_0x4e8b8a(0x21e)]()[_0x4e8b8a(0x1e8)](_0x2e56c8=>{const _0x250383=_0x4e8b8a;_0x45b112[_0x250383(0x214)](_0x2e56c8[_0x250383(0x1bc)],_0x45b112[_0x250383(0x1c1)])?this['_measureEvents'][_0x250383(0x1fa)](_0x2e56c8):this[_0x250383(0x21c)][_0x250383(0x1fa)](_0x2e56c8);});});const _0x77cceb={};_0x77cceb['buffered']=!![],_0x77cceb[_0x7a2100(0x1e0)]=[_0x5c6b15[_0x7a2100(0x1ee)],_0x5c6b15[_0x7a2100(0x1ec)]],this['_observer']['observe'](_0x77cceb),this[_0x7a2100(0x1b0)]=!![],this[_0x7a2100(0x20a)]=_0x489f67,this[_0x7a2100(0x1a0)]=_0x46aaec;}static[a72_0xb27e77(0x1c2)](){return performance;}static[a72_0xb27e77(0x213)](_0x143227,_0x397336){const _0xfa50ee=a72_0xb27e77,_0x45bdaf={};_0x45bdaf['UfTVL']=function(_0x4aca10,_0x2be23e){return _0x4aca10+_0x2be23e;},_0x45bdaf['umEZw']=function(_0x535565,_0x391828){return _0x535565||_0x391828;},_0x45bdaf['CjoQY']=function(_0x941c8f,_0x427235){return _0x941c8f===_0x427235;};const _0x4e9316=_0x45bdaf,_0x10ec7d={};if(!_0x143227||_0x4e9316[_0xfa50ee(0x1e3)](_0x143227[_0xfa50ee(0x1ca)],0x0))return;_0x143227[_0xfa50ee(0x201)](_0x17fffb=>{const _0x4e5d3e=_0xfa50ee;!_0x10ec7d[_0x17fffb[_0x4e5d3e(0x1f9)]]&&(_0x10ec7d[_0x17fffb[_0x4e5d3e(0x1f9)]]=0x0),_0x10ec7d[_0x17fffb[_0x4e5d3e(0x1f9)]]+=_0x17fffb[_0x4e5d3e(0x20b)];});const _0xbb73f3=_0x397336[_0xfa50ee(0x1ae)]((_0x163c87,_0x591a31)=>{const _0x2aad29=_0xfa50ee;return _0x4e9316['UfTVL'](_0x10ec7d[_0x591a31],_0x4e9316[_0x2aad29(0x1e5)](_0x163c87,0x0));},0x0);return _0xbb73f3;}static async[a72_0xb27e77(0x217)](_0xa18db8,_0x4cc7a9){const _0x148646=a72_0xb27e77,_0x2d713a={'ipENC':function(_0x528370,_0x49a700){return _0x528370+_0x49a700;},'ruHyG':function(_0x3c3c6e,_0x36beeb){return _0x3c3c6e||_0x36beeb;},'DaTDo':function(_0x168f58,_0xd072cf){return _0x168f58===_0xd072cf;},'lJbls':function(_0x146319,_0x357728){return _0x146319(_0x357728);},'MchHs':function(_0x5eca37,_0x3d2160){return _0x5eca37(_0x3d2160);}};if(!_0xa18db8||_0x2d713a[_0x148646(0x210)](_0xa18db8['length'],0x0))return 0x0;const _0xc54ca9=[];for(const _0x21b687 of _0xa18db8){const _0x4afba7=path[_0x148646(0x1c8)]('.',_0x21b687);try{const _0x5316fe=this[_0x148646(0x1c5)](_0x4afba7);_0x5316fe[_0x148646(0x201)](_0x300dfd=>{const _0x475ccf=_0x148646;!_0xc54ca9[_0x300dfd[_0x475ccf(0x1f9)]]&&(_0xc54ca9[_0x300dfd[_0x475ccf(0x1f9)]]=0x0),_0xc54ca9[_0x300dfd[_0x475ccf(0x1f9)]]+=_0x300dfd[_0x475ccf(0x20b)];});}catch(_0x3869c4){_0x2d713a[_0x148646(0x1df)](debug,_0x148646(0x1d3)+_0x3869c4[_0x148646(0x1e2)]());}}const _0x2bff34=_0x4cc7a9[_0x148646(0x1ae)]((_0x1b042e,_0xaa4f51)=>{const _0x3a1cba=_0x148646;return _0x2d713a[_0x3a1cba(0x218)](_0xc54ca9[_0xaa4f51],_0x2d713a[_0x3a1cba(0x1ad)](_0x1b042e,0x0));},0x0);return _0x2d713a[_0x148646(0x19e)](debug,'Time\x20for\x20'+_0x4cc7a9+_0x148646(0x1ed)+_0x2bff34),_0x2bff34;}static[a72_0xb27e77(0x1c5)](_0x2ffc5c){const _0x377574=a72_0xb27e77;if(!fs[_0x377574(0x1bb)](_0x2ffc5c))return[];return JSON['parse'](fs[_0x377574(0x1b3)](_0x2ffc5c)['toString']());}static async[a72_0xb27e77(0x1a3)](_0x18517f=a72_0xb27e77(0x1ac),_0x5db831=null){const _0x58d22f=a72_0xb27e77,_0x295323={'uCckD':function(_0x3f00f4,_0x36ef03){return _0x3f00f4(_0x36ef03);},'XOdPl':function(_0x2240d4,_0x11953a){return _0x2240d4(_0x11953a);},'aoDuG':function(_0x45ae25,_0x338219){return _0x45ae25(_0x338219);}};if(!this[_0x58d22f(0x1b0)])return;await _0x295323['aoDuG'](sleep,0x1e),this[_0x58d22f(0x1f3)][_0x58d22f(0x21f)](),this[_0x58d22f(0x1b0)]=![],this[_0x58d22f(0x1b5)](this['_events']);const _0x486d5a=this['generateHTMLReport'](this[_0x58d22f(0x21c)]),_0xbf2dd0=path[_0x58d22f(0x1c8)](process[_0x58d22f(0x200)](),_0x18517f);fs[_0x58d22f(0x208)](_0xbf2dd0,_0x486d5a,_0x11f9ea=>{const _0x4afb8e=_0x58d22f;if(_0x11f9ea){_0x295323[_0x4afb8e(0x1db)](debug,_0x4afb8e(0x20e)+_0x11f9ea[_0x4afb8e(0x1e2)]());return;}_0x295323[_0x4afb8e(0x1cf)](debug,_0x4afb8e(0x1b8)+_0xbf2dd0);});if(_0x5db831)return this[_0x58d22f(0x213)](this[_0x58d22f(0x21c)],_0x5db831);}static[a72_0xb27e77(0x1d1)](_0x13e071){const _0x1e8faf=a72_0xb27e77,_0x51f488={};_0x51f488[_0x1e8faf(0x1ce)]=_0x1e8faf(0x1ab),_0x51f488['BaXeO']=_0x1e8faf(0x1f8),_0x51f488[_0x1e8faf(0x20d)]='<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>',_0x51f488['bklCH']=_0x1e8faf(0x1d0);const _0x57ba6d=_0x51f488;let _0x38ccfd=_0x57ba6d['wmXiZ'];return _0x38ccfd+=_0x57ba6d[_0x1e8faf(0x1b6)],_0x38ccfd+=_0x57ba6d[_0x1e8faf(0x20d)],_0x13e071[_0x1e8faf(0x1e8)](_0x281d66=>{const _0x547243=_0x1e8faf;_0x38ccfd+='<tr><td>'+_0x281d66['name']+_0x547243(0x1cb)+_0x281d66[_0x547243(0x20b)]+_0x547243(0x1ea);}),_0x38ccfd+=_0x57ba6d[_0x1e8faf(0x1c7)],_0x38ccfd;}static[a72_0xb27e77(0x1b5)](_0x47cd05){const _0x484cbf=a72_0xb27e77;if(!this[_0x484cbf(0x20a)])return;const _0x16b2b9={};_0x47cd05['map'](_0x3e12b9=>{const _0xda7aad=_0x484cbf;!_0x16b2b9[_0x3e12b9['name']]&&(_0x16b2b9[_0x3e12b9[_0xda7aad(0x1f9)]]=0x0),_0x16b2b9[_0x3e12b9['name']]+=_0x3e12b9[_0xda7aad(0x20b)];});const _0x25b5d0=Object[_0x484cbf(0x1b4)](_0x16b2b9)[_0x484cbf(0x201)](([_0x13dab1,_0x3e6ccf])=>{const _0x433e96=_0x484cbf,_0x56ebcb={};return _0x56ebcb[_0x433e96(0x1f9)]=_0x13dab1,_0x56ebcb[_0x433e96(0x20b)]=_0x3e6ccf,_0x56ebcb;});fs[_0x484cbf(0x1dd)](this[_0x484cbf(0x20a)],JSON[_0x484cbf(0x1fc)](_0x25b5d0));}static[a72_0xb27e77(0x1de)](){const _0x5b8141=a72_0xb27e77,_0x1f793b={};_0x1f793b[_0x5b8141(0x215)]=function(_0x1e634a,_0x264b1e){return _0x1e634a===_0x264b1e;},_0x1f793b[_0x5b8141(0x205)]=_0x5b8141(0x1eb);const _0x95f584=_0x1f793b;return!_0x95f584['fGpoC'](process[_0x5b8141(0x1f1)][_0x5b8141(0x20f)],_0x95f584[_0x5b8141(0x205)]);}static[a72_0xb27e77(0x1cc)](_0x4560ee,_0x4414d0,_0x4a0a3a=null,_0x407eb4=null){const _0x3ed0d8=a72_0xb27e77,_0x53a1f7={};_0x53a1f7[_0x3ed0d8(0x1cd)]=function(_0x4f2b0e,_0x319d15){return _0x4f2b0e+_0x319d15;},_0x53a1f7['dxIgk']=_0x3ed0d8(0x1f0),_0x53a1f7['YxqCz']=function(_0x21b867,_0x2113ae){return _0x21b867+_0x2113ae;},_0x53a1f7[_0x3ed0d8(0x1fb)]='-end',_0x53a1f7[_0x3ed0d8(0x1a4)]=function(_0x2c1cb2,_0x316031){return _0x2c1cb2 instanceof _0x316031;};const _0x23a839=_0x53a1f7;try{if(this[_0x3ed0d8(0x1b0)]&&this[_0x3ed0d8(0x1de)]()){let _0x1e9e1c=_0x4560ee;_0x4a0a3a&&(_0x1e9e1c=_0x4560ee+'['+JSON[_0x3ed0d8(0x1fc)](_0x4a0a3a)+']');const _0x283958=_0x23a839[_0x3ed0d8(0x1cd)](_0x1e9e1c,_0x23a839[_0x3ed0d8(0x219)]),_0x3f986b=_0x23a839['YxqCz'](_0x1e9e1c,_0x23a839[_0x3ed0d8(0x1fb)]);performance[_0x3ed0d8(0x1ff)](_0x283958);const _0x6f8708=_0x4414d0['apply'](null,_0x407eb4);if(_0x23a839['ebfHj'](_0x6f8708,Promise))return new Promise((_0x1c4449,_0x470c1b)=>{const _0x5e8a23=_0x3ed0d8;_0x6f8708[_0x5e8a23(0x1ef)](_0x36e06e=>_0x1c4449(_0x36e06e))[_0x5e8a23(0x212)](_0x149018=>_0x470c1b(_0x149018))[_0x5e8a23(0x1d5)](()=>{const _0x47129f=_0x5e8a23;performance['mark'](_0x3f986b),performance[_0x47129f(0x1cc)](_0x1e9e1c,_0x283958,_0x3f986b);});});;return performance[_0x3ed0d8(0x1ff)](_0x3f986b),performance['measure'](_0x1e9e1c,_0x283958,_0x3f986b),_0x6f8708;};return _0x4414d0[_0x3ed0d8(0x1dc)](null,_0x407eb4);}catch(_0x2b28e8){return _0x4414d0[_0x3ed0d8(0x1dc)](null,_0x407eb4);}}static[a72_0xb27e77(0x1b1)](_0x188ed2,_0xed640c){const _0x852a5f=this;return function(){const _0x404da3=a72_0x5149,_0x3fbd51=[_0x188ed2,_0xed640c,null][_0x404da3(0x1d8)](arguments);return _0x852a5f['measure'][_0x404da3(0x1dc)](_0x852a5f,_0x3fbd51);};}static[a72_0xb27e77(0x1d2)](){const _0x5d3408=a72_0xb27e77,_0x1f8ba3={};_0x1f8ba3[_0x5d3408(0x209)]=function(_0x3dbd99,_0x3a8d14){return _0x3dbd99/_0x3a8d14;},_0x1f8ba3[_0x5d3408(0x1d7)]=function(_0x510c28,_0xdb2490){return _0x510c28+_0xdb2490;},_0x1f8ba3[_0x5d3408(0x1a1)]=function(_0x143ce6,_0x1806ce){return _0x143ce6*_0x1806ce;};const _0x47e7d9=_0x1f8ba3,_0x374a2c=/(^.*)\[(.*)\]$/,_0x5e09ba={},_0xff3511={};for(const _0x46339e of this['_measureEvents']){const _0x271426=_0x46339e[_0x5d3408(0x1f9)][_0x5d3408(0x204)](_0x374a2c),_0x5e7c71={};_0x5e7c71[_0x5d3408(0x1f9)]=_0x46339e[_0x5d3408(0x1f9)],_0x5e7c71['duration']=_0x46339e[_0x5d3408(0x20b)]||0x0;const _0x155abd=_0x5e7c71;_0x271426&&(_0x155abd[_0x5d3408(0x1f9)]=_0x271426[0x1],_0x155abd[_0x5d3408(0x1e9)]=JSON['parse'](_0x271426[0x2]));if(_0x5e09ba[_0x155abd[_0x5d3408(0x1f9)]]){const _0x508b0b=_0x5e09ba[_0x155abd[_0x5d3408(0x1f9)]],_0x5c1dc3=_0xff3511[_0x155abd[_0x5d3408(0x1f9)]];_0x5e09ba[_0x155abd[_0x5d3408(0x1f9)]][_0x5d3408(0x20b)]=_0x47e7d9[_0x5d3408(0x209)](_0x47e7d9[_0x5d3408(0x1d7)](_0x47e7d9[_0x5d3408(0x1a1)](_0x508b0b[_0x5d3408(0x20b)],_0x5c1dc3),_0x155abd[_0x5d3408(0x20b)]),_0x47e7d9['ByMJD'](0x1,_0x5c1dc3)),_0xff3511[_0x155abd[_0x5d3408(0x1f9)]]++;}else _0x5e09ba[_0x155abd[_0x5d3408(0x1f9)]]=_0x155abd,_0xff3511[_0x155abd[_0x5d3408(0x1f9)]]=0x1;}return Object['values'](_0x5e09ba);}static['pushPerfMeasures'](){const _0x12642e=a72_0xb27e77,_0x22087e={};_0x22087e['mlKlO']=function(_0x4a55cd,_0x1bc9aa){return _0x4a55cd===_0x1bc9aa;},_0x22087e[_0x12642e(0x206)]=function(_0x13c56c,_0x4a3300){return _0x13c56c+_0x4a3300;};const _0x185ada=_0x22087e;if(_0x185ada[_0x12642e(0x1d9)](this[_0x12642e(0x1c4)][_0x12642e(0x1ca)],0x0))return;const _0xb7d043=this[_0x12642e(0x1d2)](),_0x3e757e=JSON[_0x12642e(0x1fc)](_0xb7d043),_0x23d59c=_0x185ada[_0x12642e(0x206)](_0x3e757e[_0x12642e(0x1d4)](0x1,-0x1),',');fs[_0x12642e(0x1a6)](this[_0x12642e(0x20a)],_0x23d59c);}static[a72_0xb27e77(0x1f6)](){const _0x4042e8=a72_0xb27e77,_0x5a626f={};_0x5a626f[_0x4042e8(0x1be)]=function(_0xe43c8f,_0xebf152){return _0xe43c8f===_0xebf152;},_0x5a626f[_0x4042e8(0x19d)]=function(_0x5b8475,_0x3ba73c){return _0x5b8475>_0x3ba73c;};const _0xcbc983=_0x5a626f;if(!this[_0x4042e8(0x1b0)]||_0xcbc983[_0x4042e8(0x1be)](this['_measureEvents'][_0x4042e8(0x1ca)],0x0))return[];if(!fs['existsSync'](this[_0x4042e8(0x20a)]))return this['_measureEvents'];let _0x54aba0=fs[_0x4042e8(0x1b3)](this[_0x4042e8(0x20a)])['toString']();_0x54aba0='['+_0x54aba0[_0x4042e8(0x1d4)](0x0,-0x1)+']';let _0x5a78bb=JSON[_0x4042e8(0x19f)](_0x54aba0);return _0xcbc983[_0x4042e8(0x19d)](this[_0x4042e8(0x1c4)][_0x4042e8(0x1ca)],0x0)&&(_0x5a78bb=_0x5a78bb[_0x4042e8(0x1d8)](this[_0x4042e8(0x1d2)]())),this[_0x4042e8(0x1f3)][_0x4042e8(0x21f)](),fs[_0x4042e8(0x1c0)](this[_0x4042e8(0x20a)]),_0x5a78bb;}static[a72_0xb27e77(0x216)](){const _0xd22ad3=a72_0xb27e77,_0x5970d9={};_0x5970d9[_0xd22ad3(0x1c9)]=function(_0x1a7139,_0xc67819){return _0x1a7139===_0xc67819;},_0x5970d9['HuFGS']=function(_0x1326c0,_0x48070d){return _0x1326c0+_0x48070d;};const _0x350a37=_0x5970d9;if(_0x350a37['MIZix'](this[_0xd22ad3(0x1aa)][_0xd22ad3(0x1ca)],0x0))return;const _0x376c8f=JSON[_0xd22ad3(0x1fc)](this[_0xd22ad3(0x1aa)]),_0x641567=_0x350a37[_0xd22ad3(0x203)](_0x376c8f[_0xd22ad3(0x1d4)](0x1,-0x1),',');fs[_0xd22ad3(0x1a6)](this[_0xd22ad3(0x1a7)],_0x641567);}static[a72_0xb27e77(0x1c6)](){const _0x23e778=a72_0xb27e77,_0x470864={};_0x470864['VURiP']=function(_0x2e3bc3,_0x3bf8d1){return _0x2e3bc3>_0x3bf8d1;};const _0x3d0977=_0x470864;if(!fs[_0x23e778(0x1bb)](this[_0x23e778(0x1a0)]))return this[_0x23e778(0x1aa)];let _0xa0341c=fs[_0x23e778(0x1b3)](this['errorReportFileName'])[_0x23e778(0x1e2)]();_0xa0341c='['+_0xa0341c[_0x23e778(0x1d4)](0x0,-0x1)+']';let _0x238567=JSON[_0x23e778(0x19f)](_0xa0341c);return _0x3d0977[_0x23e778(0x1bf)](this[_0x23e778(0x1aa)][_0x23e778(0x1ca)],0x0)&&(_0x238567=_0x238567[_0x23e778(0x1d8)](this[_0x23e778(0x1aa)])),fs[_0x23e778(0x1c0)](this[_0x23e778(0x1a0)]),_0x238567;}static['captureError'](_0x19fe40){const _0x264411=a72_0xb27e77;if(!this[_0x264411(0x1de)]())return;this[_0x264411(0x1aa)][_0x264411(0x1fa)]({'message':_0x19fe40['message'],'trace':_0x19fe40[_0x264411(0x1f2)],'code':_0x19fe40[_0x264411(0x1b2)]||null,'time':new Date()});}static[a72_0xb27e77(0x1a8)](){const _0x4e6c32=a72_0xb27e77,_0x3d7a60={};_0x3d7a60['EIUKH']=_0x4e6c32(0x1d6);const _0xb9f5ec=_0x3d7a60;try{if(!this[_0x4e6c32(0x1de)]())return;this[_0x4e6c32(0x1f3)][_0x4e6c32(0x21f)](),this[_0x4e6c32(0x1af)](),this['pushErrors']();}catch{logger[_0x4e6c32(0x21d)](_0xb9f5ec[_0x4e6c32(0x1da)]);}}static[a72_0xb27e77(0x1a9)](){const _0x3104ba=a72_0xb27e77,_0x5a5904=this[_0x3104ba(0x1f6)](),_0x3975a7=this[_0x3104ba(0x1c6)]();if(!this[_0x3104ba(0x1de)]()){const _0x242d1={};return _0x242d1[_0x3104ba(0x1e1)]=[],_0x242d1[_0x3104ba(0x1f7)]=[],_0x242d1;}const _0x3535e1={};return _0x3535e1[_0x3104ba(0x1e1)]=_0x5a5904,_0x3535e1['errors']=_0x3975a7,_0x3535e1;}}module[a72_0xb27e77(0x207)]=PerformanceTester;
|
|
1
|
+
const a75_0x57eb49=a75_0x2083;function a75_0x2083(_0x311166,_0x435e99){const _0x4bc7a3=a75_0x4bc7();return a75_0x2083=function(_0x208356,_0x116bfb){_0x208356=_0x208356-0x10b;let _0x5d26ca=_0x4bc7a3[_0x208356];return _0x5d26ca;},a75_0x2083(_0x311166,_0x435e99);}(function(_0x24ffd8,_0x1fe982){const _0x4443b2=a75_0x2083,_0x468eed=_0x24ffd8();while(!![]){try{const _0x47f4b8=-parseInt(_0x4443b2(0x10e))/0x1*(parseInt(_0x4443b2(0x11d))/0x2)+parseInt(_0x4443b2(0x160))/0x3+-parseInt(_0x4443b2(0x178))/0x4+parseInt(_0x4443b2(0x140))/0x5+-parseInt(_0x4443b2(0x16c))/0x6+-parseInt(_0x4443b2(0x170))/0x7+parseInt(_0x4443b2(0x127))/0x8;if(_0x47f4b8===_0x1fe982)break;else _0x468eed['push'](_0x468eed['shift']());}catch(_0x1e2cab){_0x468eed['push'](_0x468eed['shift']());}}}(a75_0x4bc7,0xe9bf9));const fs=require('fs'),{performance,PerformanceObserver}=require(a75_0x57eb49(0x176)),{sleep,debug}=require('./test-observability/utils'),path=require(a75_0x57eb49(0x16a)),logger=require(a75_0x57eb49(0x142))[a75_0x57eb49(0x158)];class PerformanceTester{static [a75_0x57eb49(0x139)];static [a75_0x57eb49(0x174)]=[];static ['_measureEvents']=[];static ['_errorEvents']=[];static [a75_0x57eb49(0x130)]=![];static [a75_0x57eb49(0x167)]='performance-report.json';static [a75_0x57eb49(0x13f)]=a75_0x57eb49(0x10b);static[a75_0x57eb49(0x180)](_0x23e98c=a75_0x57eb49(0x14f),_0x214d42=a75_0x57eb49(0x10b)){const _0x5d622c=a75_0x57eb49,_0x54c9fc={};_0x54c9fc['gMomA']=function(_0x50ab5e,_0xa2213d){return _0x50ab5e===_0xa2213d;},_0x54c9fc[_0x5d622c(0x117)]='measure',_0x54c9fc[_0x5d622c(0x14a)]='function';const _0x875978=_0x54c9fc;if(this[_0x5d622c(0x130)]||!this[_0x5d622c(0x177)]())return;this[_0x5d622c(0x139)]=new PerformanceObserver(_0x5e84f6=>{const _0xe9724=_0x5d622c;_0x5e84f6[_0xe9724(0x150)]()[_0xe9724(0x15b)](_0x25a2b1=>{const _0x3bd2c6=_0xe9724;_0x875978['gMomA'](_0x25a2b1['entryType'],_0x875978[_0x3bd2c6(0x117)])?this['_measureEvents'][_0x3bd2c6(0x13b)](_0x25a2b1):this[_0x3bd2c6(0x174)]['push'](_0x25a2b1);});});const _0x5a9a93={};_0x5a9a93[_0x5d622c(0x13a)]=!![],_0x5a9a93[_0x5d622c(0x16d)]=[_0x875978['lViyD'],_0x875978['QxpiQ']],this[_0x5d622c(0x139)][_0x5d622c(0x12f)](_0x5a9a93),this[_0x5d622c(0x130)]=!![],this[_0x5d622c(0x167)]=_0x23e98c,this[_0x5d622c(0x13f)]=_0x214d42;}static[a75_0x57eb49(0x123)](){return performance;}static[a75_0x57eb49(0x125)](_0xaa9736,_0x3b44af){const _0x44ddeb=a75_0x57eb49,_0x2db6f5={};_0x2db6f5['pYGgl']=function(_0x584bbc,_0x5ac212){return _0x584bbc+_0x5ac212;},_0x2db6f5[_0x44ddeb(0x168)]=function(_0x7ae696,_0x1901f0){return _0x7ae696||_0x1901f0;},_0x2db6f5[_0x44ddeb(0x118)]=function(_0x4ba04a,_0x4c8391){return _0x4ba04a===_0x4c8391;};const _0x233ce0=_0x2db6f5,_0x2c4c33={};if(!_0xaa9736||_0x233ce0['XWuwL'](_0xaa9736[_0x44ddeb(0x134)],0x0))return;_0xaa9736[_0x44ddeb(0x12a)](_0x554726=>{const _0x31e007=_0x44ddeb;!_0x2c4c33[_0x554726['name']]&&(_0x2c4c33[_0x554726[_0x31e007(0x153)]]=0x0),_0x2c4c33[_0x554726[_0x31e007(0x153)]]+=_0x554726[_0x31e007(0x16b)];});const _0x51c16f=_0x3b44af['reduce']((_0x246da6,_0x4fa04a)=>{const _0x5d486c=_0x44ddeb;return _0x233ce0[_0x5d486c(0x17b)](_0x2c4c33[_0x4fa04a],_0x233ce0[_0x5d486c(0x168)](_0x246da6,0x0));},0x0);return _0x51c16f;}static async['calculateTimesFromMultipleFiles'](_0x2b06f1,_0x2a8baa){const _0x1c7335=a75_0x57eb49,_0x1a9a83={'KBouF':function(_0xe566be,_0x2c5c26){return _0xe566be+_0x2c5c26;},'zojDi':function(_0x9e8a9f,_0x1eba9b){return _0x9e8a9f||_0x1eba9b;},'sBeLs':function(_0x3949bc,_0x555a41){return _0x3949bc===_0x555a41;},'IbVxo':function(_0x49272a,_0xd2350f){return _0x49272a(_0xd2350f);},'IdAMa':function(_0x33f1b0,_0x128bb7){return _0x33f1b0(_0x128bb7);}};if(!_0x2b06f1||_0x1a9a83[_0x1c7335(0x112)](_0x2b06f1['length'],0x0))return 0x0;const _0x2aa7e3=[];for(const _0xdae256 of _0x2b06f1){const _0x5014a9=path[_0x1c7335(0x147)]('.',_0xdae256);try{const _0x4857f3=this[_0x1c7335(0x14b)](_0x5014a9);_0x4857f3[_0x1c7335(0x12a)](_0x2b92e9=>{const _0x5b7440=_0x1c7335;!_0x2aa7e3[_0x2b92e9[_0x5b7440(0x153)]]&&(_0x2aa7e3[_0x2b92e9[_0x5b7440(0x153)]]=0x0),_0x2aa7e3[_0x2b92e9[_0x5b7440(0x153)]]+=_0x2b92e9[_0x5b7440(0x16b)];});}catch(_0x542b98){_0x1a9a83[_0x1c7335(0x164)](debug,_0x1c7335(0x11f)+_0x542b98[_0x1c7335(0x15f)]());}}const _0x4e6cd0=_0x2a8baa[_0x1c7335(0x157)]((_0x280354,_0x6df158)=>{const _0x284f74=_0x1c7335;return _0x1a9a83[_0x284f74(0x162)](_0x2aa7e3[_0x6df158],_0x1a9a83['zojDi'](_0x280354,0x0));},0x0);return _0x1a9a83['IdAMa'](debug,_0x1c7335(0x156)+_0x2a8baa+_0x1c7335(0x11e)+_0x4e6cd0),_0x4e6cd0;}static['getEventsFromJSON'](_0x3ac2a3){const _0x1cadb0=a75_0x57eb49;if(!fs[_0x1cadb0(0x137)](_0x3ac2a3))return[];return JSON[_0x1cadb0(0x161)](fs[_0x1cadb0(0x143)](_0x3ac2a3)['toString']());}static async[a75_0x57eb49(0x128)](_0x3f0a25=a75_0x57eb49(0x119),_0x93f5a7=null){const _0x3af701=a75_0x57eb49,_0x2b1806={'vMMlx':function(_0x3479b8,_0x6927f0){return _0x3479b8(_0x6927f0);},'isFvc':function(_0x3c3d38,_0x528662){return _0x3c3d38(_0x528662);}};if(!this[_0x3af701(0x130)])return;await _0x2b1806['vMMlx'](sleep,0x1e),this[_0x3af701(0x139)][_0x3af701(0x138)](),this['started']=![],this[_0x3af701(0x122)](this[_0x3af701(0x174)]);const _0x157c13=this[_0x3af701(0x169)](this[_0x3af701(0x174)]),_0x1e6f8a=path[_0x3af701(0x147)](process['cwd'](),_0x3f0a25);fs[_0x3af701(0x124)](_0x1e6f8a,_0x157c13,_0xd36813=>{const _0x5b5406=_0x3af701;if(_0xd36813){_0x2b1806[_0x5b5406(0x135)](debug,_0x5b5406(0x12d)+_0xd36813[_0x5b5406(0x15f)]());return;}_0x2b1806[_0x5b5406(0x132)](debug,_0x5b5406(0x179)+_0x1e6f8a);});if(_0x93f5a7)return this[_0x3af701(0x125)](this[_0x3af701(0x174)],_0x93f5a7);}static[a75_0x57eb49(0x169)](_0x8b3a4e){const _0x15ad9b=a75_0x57eb49,_0xbdbac9={};_0xbdbac9['KhrWc']='<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>',_0xbdbac9['SAHKy']=_0x15ad9b(0x17c),_0xbdbac9[_0x15ad9b(0x154)]=_0x15ad9b(0x131),_0xbdbac9['sCVfI']=_0x15ad9b(0x12e);const _0x1fe1ec=_0xbdbac9;let _0x35768d=_0x1fe1ec['KhrWc'];return _0x35768d+=_0x1fe1ec['SAHKy'],_0x35768d+=_0x1fe1ec[_0x15ad9b(0x154)],_0x8b3a4e[_0x15ad9b(0x15b)](_0x5835b9=>{const _0x14bac7=_0x15ad9b;_0x35768d+=_0x14bac7(0x17f)+_0x5835b9[_0x14bac7(0x153)]+_0x14bac7(0x115)+_0x5835b9[_0x14bac7(0x16b)]+_0x14bac7(0x172);}),_0x35768d+=_0x1fe1ec[_0x15ad9b(0x121)],_0x35768d;}static[a75_0x57eb49(0x122)](_0x453d92){const _0x248c1e=a75_0x57eb49;if(!this['jsonReportFileName'])return;const _0x13e251={};_0x453d92['map'](_0x3a46b2=>{const _0xa027c=a75_0x2083;!_0x13e251[_0x3a46b2[_0xa027c(0x153)]]&&(_0x13e251[_0x3a46b2[_0xa027c(0x153)]]=0x0),_0x13e251[_0x3a46b2[_0xa027c(0x153)]]+=_0x3a46b2[_0xa027c(0x16b)];});const _0x51d1c7=Object[_0x248c1e(0x110)](_0x13e251)[_0x248c1e(0x12a)](([_0x2f26f0,_0x435dd7])=>{const _0x48833e={};return _0x48833e['name']=_0x2f26f0,_0x48833e['duration']=_0x435dd7,_0x48833e;});fs[_0x248c1e(0x129)](this[_0x248c1e(0x167)],JSON[_0x248c1e(0x120)](_0x51d1c7));}static[a75_0x57eb49(0x177)](){const _0x5f28a5=a75_0x57eb49,_0x2f72e6={};_0x2f72e6[_0x5f28a5(0x13d)]=function(_0x1506f1,_0x519dc3){return _0x1506f1===_0x519dc3;},_0x2f72e6['BUQqW']=_0x5f28a5(0x166);const _0x4588b2=_0x2f72e6;return!_0x4588b2[_0x5f28a5(0x13d)](process[_0x5f28a5(0x165)][_0x5f28a5(0x13e)],_0x4588b2[_0x5f28a5(0x146)]);}static[a75_0x57eb49(0x17a)](_0x4e5639,_0x123e4f,_0xfa9e1d=null,_0x1bd9c4=null){const _0x726c9a=a75_0x57eb49,_0x21d489={};_0x21d489['XrXKL']=function(_0x238be7,_0x3418e1){return _0x238be7+_0x3418e1;},_0x21d489[_0x726c9a(0x16e)]=_0x726c9a(0x15d),_0x21d489['sIzBx']=_0x726c9a(0x155),_0x21d489[_0x726c9a(0x114)]=function(_0x205428,_0x5430e8){return _0x205428 instanceof _0x5430e8;};const _0x26158a=_0x21d489;try{if(this[_0x726c9a(0x130)]&&this[_0x726c9a(0x177)]()){let _0xde1142=_0x4e5639;_0xfa9e1d&&(_0xde1142=_0x4e5639+'['+JSON[_0x726c9a(0x120)](_0xfa9e1d)+']');const _0x8db141=_0x26158a[_0x726c9a(0x15c)](_0xde1142,_0x26158a['NKjCw']),_0x13c6a3=_0x26158a[_0x726c9a(0x15c)](_0xde1142,_0x26158a[_0x726c9a(0x148)]);performance[_0x726c9a(0x144)](_0x8db141);const _0x28c8aa=_0x123e4f[_0x726c9a(0x13c)](null,_0x1bd9c4);if(_0x26158a[_0x726c9a(0x114)](_0x28c8aa,Promise))return new Promise((_0x598093,_0x170ba3)=>{const _0x40b7f7=_0x726c9a;_0x28c8aa[_0x40b7f7(0x15e)](_0x4ef7a7=>_0x598093(_0x4ef7a7))['catch'](_0x43bfcf=>_0x170ba3(_0x43bfcf))[_0x40b7f7(0x149)](()=>{const _0x2bac97=_0x40b7f7;performance[_0x2bac97(0x144)](_0x13c6a3),performance[_0x2bac97(0x17a)](_0xde1142,_0x8db141,_0x13c6a3);});});;return performance[_0x726c9a(0x144)](_0x13c6a3),performance[_0x726c9a(0x17a)](_0xde1142,_0x8db141,_0x13c6a3),_0x28c8aa;};return _0x123e4f[_0x726c9a(0x13c)](null,_0x1bd9c4);}catch(_0x1442c9){return _0x123e4f[_0x726c9a(0x13c)](null,_0x1bd9c4);}}static['measureWrapper'](_0x1b7e9,_0x190949){const _0x33b56a=this;return function(){const _0x558d93=a75_0x2083,_0x594618=[_0x1b7e9,_0x190949,null][_0x558d93(0x17e)](arguments);return _0x33b56a[_0x558d93(0x17a)][_0x558d93(0x13c)](_0x33b56a,_0x594618);};}static['getCleanedPerfEvents'](){const _0x2800db=a75_0x57eb49,_0x247dbb={};_0x247dbb[_0x2800db(0x14d)]=function(_0x3ae73f,_0x3a443d){return _0x3ae73f/_0x3a443d;},_0x247dbb[_0x2800db(0x133)]=function(_0x1d81db,_0x28242e){return _0x1d81db+_0x28242e;},_0x247dbb[_0x2800db(0x173)]=function(_0x88d752,_0x54a7a7){return _0x88d752*_0x54a7a7;};const _0x14753f=_0x247dbb,_0x53ce37=/(^.*)\[(.*)\]$/,_0x231c1d={},_0x42b144={};for(const _0x123d48 of this['_measureEvents']){const _0x6eb4fa=_0x123d48[_0x2800db(0x153)]['match'](_0x53ce37),_0x11b6ac={};_0x11b6ac[_0x2800db(0x153)]=_0x123d48['name'],_0x11b6ac[_0x2800db(0x16b)]=_0x123d48[_0x2800db(0x16b)]||0x0;const _0x3b8365=_0x11b6ac;_0x6eb4fa&&(_0x3b8365[_0x2800db(0x153)]=_0x6eb4fa[0x1],_0x3b8365[_0x2800db(0x14e)]=JSON['parse'](_0x6eb4fa[0x2]));if(_0x231c1d[_0x3b8365[_0x2800db(0x153)]]){const _0x1f12b7=_0x231c1d[_0x3b8365[_0x2800db(0x153)]],_0x1f956b=_0x42b144[_0x3b8365['name']];_0x231c1d[_0x3b8365[_0x2800db(0x153)]][_0x2800db(0x16b)]=_0x14753f['LDikj'](_0x14753f[_0x2800db(0x133)](_0x14753f[_0x2800db(0x173)](_0x1f12b7[_0x2800db(0x16b)],_0x1f956b),_0x3b8365[_0x2800db(0x16b)]),_0x14753f[_0x2800db(0x133)](0x1,_0x1f956b)),_0x42b144[_0x3b8365[_0x2800db(0x153)]]++;}else _0x231c1d[_0x3b8365['name']]=_0x3b8365,_0x42b144[_0x3b8365['name']]=0x1;}return Object['values'](_0x231c1d);}static[a75_0x57eb49(0x141)](){const _0x56e94f=a75_0x57eb49,_0x3e0386={};_0x3e0386[_0x56e94f(0x181)]=function(_0x494562,_0x25db83){return _0x494562===_0x25db83;},_0x3e0386[_0x56e94f(0x136)]=function(_0x3413f4,_0x4800e6){return _0x3413f4+_0x4800e6;};const _0x27f167=_0x3e0386;if(_0x27f167[_0x56e94f(0x181)](this[_0x56e94f(0x116)][_0x56e94f(0x134)],0x0))return;const _0x1a598b=this[_0x56e94f(0x10c)](),_0x6d676f=JSON[_0x56e94f(0x120)](_0x1a598b),_0x4c99db=_0x27f167[_0x56e94f(0x136)](_0x6d676f[_0x56e94f(0x16f)](0x1,-0x1),',');fs[_0x56e94f(0x11c)](this['jsonReportFileName'],_0x4c99db);}static['finalizePerfMeasures'](){const _0x539e84=a75_0x57eb49,_0x57047e={};_0x57047e[_0x539e84(0x171)]=function(_0x260daf,_0x351396){return _0x260daf===_0x351396;},_0x57047e[_0x539e84(0x159)]=function(_0x3ec350,_0x663371){return _0x3ec350>_0x663371;};const _0x35f8d6=_0x57047e;if(!this[_0x539e84(0x130)]||_0x35f8d6[_0x539e84(0x171)](this[_0x539e84(0x116)][_0x539e84(0x134)],0x0))return[];if(!fs[_0x539e84(0x137)](this[_0x539e84(0x167)]))return this[_0x539e84(0x116)];let _0x2dd435=fs[_0x539e84(0x143)](this[_0x539e84(0x167)])['toString']();_0x2dd435='['+_0x2dd435[_0x539e84(0x16f)](0x0,-0x1)+']';let _0x521df1=JSON[_0x539e84(0x161)](_0x2dd435);return _0x35f8d6[_0x539e84(0x159)](this[_0x539e84(0x116)][_0x539e84(0x134)],0x0)&&(_0x521df1=_0x521df1[_0x539e84(0x17e)](this[_0x539e84(0x10c)]())),this['_observer'][_0x539e84(0x138)](),fs['unlinkSync'](this['jsonReportFileName']),_0x521df1;}static[a75_0x57eb49(0x113)](){const _0x37ddf2=a75_0x57eb49,_0x1e30b8={};_0x1e30b8['oHmwq']=function(_0x238e01,_0x474acf){return _0x238e01===_0x474acf;},_0x1e30b8['AWzlc']=function(_0xb477a1,_0xdb722b){return _0xb477a1+_0xdb722b;};const _0x388d9b=_0x1e30b8;if(_0x388d9b[_0x37ddf2(0x175)](this[_0x37ddf2(0x11b)][_0x37ddf2(0x134)],0x0))return;const _0x318fbc=JSON['stringify'](this[_0x37ddf2(0x11b)]),_0x3cbeb5=_0x388d9b['AWzlc'](_0x318fbc[_0x37ddf2(0x16f)](0x1,-0x1),',');fs[_0x37ddf2(0x11c)](this['errorFile'],_0x3cbeb5);}static[a75_0x57eb49(0x12c)](){const _0x5fefa5=a75_0x57eb49,_0x1d6112={};_0x1d6112[_0x5fefa5(0x15a)]=function(_0x3e1aed,_0x370f04){return _0x3e1aed>_0x370f04;};const _0xdd065d=_0x1d6112;if(!fs[_0x5fefa5(0x137)](this['errorReportFileName']))return this[_0x5fefa5(0x11b)];let _0xf5b394=fs['readFileSync'](this[_0x5fefa5(0x13f)])[_0x5fefa5(0x15f)]();_0xf5b394='['+_0xf5b394[_0x5fefa5(0x16f)](0x0,-0x1)+']';let _0x1ac905=JSON[_0x5fefa5(0x161)](_0xf5b394);return _0xdd065d[_0x5fefa5(0x15a)](this[_0x5fefa5(0x11b)]['length'],0x0)&&(_0x1ac905=_0x1ac905['concat'](this[_0x5fefa5(0x11b)])),fs[_0x5fefa5(0x11a)](this[_0x5fefa5(0x13f)]),_0x1ac905;}static[a75_0x57eb49(0x126)](_0x1043f4){const _0x24fa89=a75_0x57eb49;if(!this[_0x24fa89(0x177)]())return;this['_errorEvents'][_0x24fa89(0x13b)]({'message':_0x1043f4[_0x24fa89(0x152)],'trace':_0x1043f4[_0x24fa89(0x12b)],'code':_0x1043f4[_0x24fa89(0x14c)]||null,'time':new Date()});}static[a75_0x57eb49(0x145)](){const _0x2bbf0b=a75_0x57eb49,_0xd79753={};_0xd79753['lBRdb']=_0x2bbf0b(0x151);const _0x3bd9eb=_0xd79753;try{if(!this[_0x2bbf0b(0x177)]())return;this['_observer'][_0x2bbf0b(0x138)](),this[_0x2bbf0b(0x141)](),this[_0x2bbf0b(0x113)]();}catch{logger['debug'](_0x3bd9eb[_0x2bbf0b(0x10d)]);}}static[a75_0x57eb49(0x163)](){const _0x597e96=a75_0x57eb49,_0x50f648=this['finalizePerfMeasures'](),_0x5e0ddd=this[_0x597e96(0x12c)]();if(!this['isEnabled']()){const _0x505757={};return _0x505757[_0x597e96(0x10f)]=[],_0x505757[_0x597e96(0x17d)]=[],_0x505757;}const _0x2fcddf={};return _0x2fcddf['measures']=_0x50f648,_0x2fcddf[_0x597e96(0x17d)]=_0x5e0ddd,_0x2fcddf;}}function a75_0x4bc7(){const _0x55f684=['buffered','push','apply','UAMhr','BROWSERSTACK_SDK_INSTRUMENTATION','errorReportFileName','9096850OXpeQa','pushPerfMeasures','./logger','readFileSync','mark','stopMonitoring','BUQqW','join','sIzBx','finally','lViyD','getEventsFromJSON','code','LDikj','meta','performance-report.json','getEntries','Error\x20stopping\x20monitoring','message','name','mTMDD','-end','Time\x20for\x20','reduce','winstonLogger','kaDTa','Ggjur','forEach','XrXKL','-start','then','toString','4820679FHGoNv','parse','KBouF','finalize','IbVxo','env','false','jsonReportFileName','EOKIp','generateHTMLReport','path','duration','4860606bzesWN','entryTypes','NKjCw','slice','6265350UWyvpJ','zRrGx','</td></tr>','EYyjH','_events','oHmwq','perf_hooks','isEnabled','2665076siSlPV','Performance\x20report\x20is\x20at\x20','measure','pYGgl','<h1>Performance\x20Report</h1>','errors','concat','<tr><td>','startMonitoring','tzIuc','error-report.json','getCleanedPerfEvents','lBRdb','62531OBDiYn','measures','entries','exports','sBeLs','pushErrors','XKSBC','</td><td>','_measureEvents','QxpiQ','XWuwL','performance-own.html','unlinkSync','_errorEvents','appendFileSync','14LooxON','\x20for\x20all\x20processes\x20is\x20','Error\x20in\x20doing\x20csv\x20operations:\x20','stringify','sCVfI','generateJSON','getPerformance','writeFile','calculateTimeFromEvents','captureError','2722456cnMdYD','stopAndGenerate','writeFileSync','map','stack','finalizeErrors','Error\x20in\x20writing\x20html\x20','</tbody></table></body></html>','observe','started','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','isFvc','mRaPm','length','vMMlx','xYfKz','existsSync','disconnect','_observer'];a75_0x4bc7=function(){return _0x55f684;};return a75_0x4bc7();}module[a75_0x57eb49(0x111)]=PerformanceTester;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a76_0x5ab55c=a76_0xd64c;(function(_0x1737ce,_0x1898a7){const _0x378302=a76_0xd64c,_0xb0a789=_0x1737ce();while(!![]){try{const _0x500b5a=-parseInt(_0x378302(0xcc))/0x1+parseInt(_0x378302(0xbc))/0x2*(parseInt(_0x378302(0xd5))/0x3)+parseInt(_0x378302(0xc3))/0x4+parseInt(_0x378302(0xbf))/0x5+-parseInt(_0x378302(0xdb))/0x6*(-parseInt(_0x378302(0xcb))/0x7)+parseInt(_0x378302(0xd9))/0x8+-parseInt(_0x378302(0xbe))/0x9*(parseInt(_0x378302(0xdd))/0xa);if(_0x500b5a===_0x1898a7)break;else _0xb0a789['push'](_0xb0a789['shift']());}catch(_0x1f9ba6){_0xb0a789['push'](_0xb0a789['shift']());}}}(a76_0x3c2a,0xd6446));const http=require('http'),https=require(a76_0x5ab55c(0xc2)),monkeypatch=require(a76_0x5ab55c(0xb9));function spy(_0x1c039f){const _0x5b5b0a=a76_0x5ab55c,_0x126401={'jhAns':_0x5b5b0a(0xd3),'RNARh':function(_0x43c114,_0x4ffc5d,_0x3cb9f2){return _0x43c114(_0x4ffc5d,_0x3cb9f2);},'imYzn':function(_0x57d0c7,_0xc0c2f5){return _0x57d0c7-_0xc0c2f5;},'qFPhr':function(_0x44b200,_0xba239d,_0x419dee){return _0x44b200(_0xba239d,_0x419dee);},'CDyXh':function(_0x1ceb64,..._0x49f987){return _0x1ceb64(..._0x49f987);},'SWzZk':_0x5b5b0a(0xc7),'lYbWq':'socket','iQkHO':function(_0x291dd3,_0x45b4a6,_0x11908b,_0x195141){return _0x291dd3(_0x45b4a6,_0x11908b,_0x195141);},'CodYV':_0x5b5b0a(0xde),'iqKIj':_0x5b5b0a(0xd2)},_0x35d973=(_0x41ada8,_0xfcbd36,_0x4e8d11)=>{const _0x1ca873=_0x5b5b0a,_0x595bd6={'kUGgi':function(_0x1f9d06,_0x3dc83a,_0x288a87){const _0x4b1fbb=a76_0xd64c;return _0x126401[_0x4b1fbb(0xce)](_0x1f9d06,_0x3dc83a,_0x288a87);},'fLmVV':function(_0x5b727d,_0x429ffb){return _0x126401['imYzn'](_0x5b727d,_0x429ffb);},'bYUWU':function(_0x186e6c,_0x208831,_0x39ee59){const _0x406724=a76_0xd64c;return _0x126401[_0x406724(0xba)](_0x186e6c,_0x208831,_0x39ee59);},'FJDhP':_0x126401[_0x1ca873(0xbb)],'BICgc':function(_0x5caf7e,..._0x2d4219){const _0x301e73=_0x1ca873;return _0x126401[_0x301e73(0xc5)](_0x5caf7e,..._0x2d4219);}},_0x2ef5ea=_0x126401[_0x1ca873(0xba)](_0x41ada8,_0xfcbd36,_0x4e8d11);let _0x38c33c=Date[_0x1ca873(0xc1)](),_0x22132c;const _0x521f04=_0x2dd013=>{const _0x39786e=_0x1ca873,_0x216d00={};_0x216d00['host']=_0xfcbd36['host']||_0xfcbd36[_0x39786e(0xc8)],_0x216d00['path']=_0xfcbd36[_0x39786e(0xc4)],_0x216d00[_0x39786e(0xb7)]=_0xfcbd36[_0x39786e(0xb7)],_0x216d00['headers']=_0xfcbd36[_0x39786e(0xd1)],_0x595bd6['kUGgi'](_0x1c039f,_0x2dd013,_0x216d00);};return _0x2ef5ea[_0x1ca873(0xd6)](_0x126401['SWzZk'],_0x31199a=>{const _0x599581=_0x1ca873,_0x47026f=_0x595bd6[_0x599581(0xd8)](Date[_0x599581(0xc1)](),_0x38c33c),_0x1d69e5={};_0x1d69e5[_0x599581(0xc8)]=_0xfcbd36['host']||_0xfcbd36['hostname'],_0x1d69e5[_0x599581(0xc4)]=_0xfcbd36[_0x599581(0xc4)],_0x1d69e5[_0x599581(0xb7)]=_0xfcbd36[_0x599581(0xb7)],_0x1d69e5['headers']=_0xfcbd36[_0x599581(0xd1)],_0x1d69e5[_0x599581(0xd0)]=_0x31199a[_0x599581(0xc0)],_0x1d69e5['duration_ms']=_0x47026f,_0x595bd6[_0x599581(0xcf)](_0x1c039f,null,_0x1d69e5),_0x22132c[_0x599581(0xc6)](_0x595bd6[_0x599581(0xca)],_0x521f04);}),_0x2ef5ea['on'](_0x126401[_0x1ca873(0xbd)],_0x47bc7e=>{const _0x29ebad=_0x1ca873;_0x22132c=_0x47bc7e,_0x47bc7e[_0x29ebad(0xd6)](_0x126401[_0x29ebad(0xbb)],_0x521f04);}),_0x126401[_0x1ca873(0xda)](monkeypatch,_0x2ef5ea,_0x126401[_0x1ca873(0xcd)],(_0x4d874e,..._0x58d65f)=>{const _0x1a081c=_0x1ca873;_0x38c33c=Date['now'](),_0x595bd6[_0x1a081c(0xdc)](_0x4d874e,..._0x58d65f);}),_0x2ef5ea;};_0x126401[_0x5b5b0a(0xda)](monkeypatch,http,_0x126401[_0x5b5b0a(0xd4)],_0x35d973),_0x126401[_0x5b5b0a(0xda)](monkeypatch,https,_0x126401[_0x5b5b0a(0xd4)],_0x35d973);}function restore(){const _0x460c8a=a76_0x5ab55c;http['request'][_0x460c8a(0xd7)](),https['request'][_0x460c8a(0xd7)]();}function a76_0xd64c(_0x3a2f35,_0x18fbcb){const _0x3c2a1b=a76_0x3c2a();return a76_0xd64c=function(_0xd64cc6,_0x1d5fd8){_0xd64cc6=_0xd64cc6-0xb7;let _0x49e9ec=_0x3c2a1b[_0xd64cc6];return _0x49e9ec;},a76_0xd64c(_0x3a2f35,_0x18fbcb);}const a76_0x5844c3={};function a76_0x3c2a(){const _0x205205=['headers','request','error','iqKIj','879wVjGDj','once','unpatch','fLmVV','9617344GVzaPr','iQkHO','24876HgDIJw','BICgc','50180AQTtMY','end','method','exports','monkeypatch','qFPhr','jhAns','8500zFSgBT','lYbWq','6147CpSQay','8074060iWRPTY','statusCode','now','https','5128556ugYubc','path','CDyXh','removeListener','response','hostname','spy','FJDhP','644CQEgXS','1420869NmQCps','CodYV','RNARh','bYUWU','status_code'];a76_0x3c2a=function(){return _0x205205;};return a76_0x3c2a();}a76_0x5844c3[a76_0x5ab55c(0xc9)]=spy,a76_0x5844c3['restore']=restore,module[a76_0x5ab55c(0xb8)]=a76_0x5844c3;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a77_0x389c(){const _0x31034e=['jnyfP','1243HHtnrv','yWObT','call','keepAlive','agent','496236hOWqWl','keepAliveMsecs','LBTHo','107693COIAiK','8330976mDwqmo','36wuMgdm','request','7652722tZOLYJ','globalAgent','153WpGJOe','330900KJvbdz','TIsuk','135205pgYxVh','https','20OithvD','http','protocol','60UtgtpI','igOmZ','XgIUl','exports','dJHpW','PMFVb','https:','717160TVDFmp','Agent'];a77_0x389c=function(){return _0x31034e;};return a77_0x389c();}function a77_0x4449(_0x26a864,_0x16f97f){const _0x389c48=a77_0x389c();return a77_0x4449=function(_0x444946,_0x4bdda0){_0x444946=_0x444946-0x1a4;let _0x3a6dba=_0x389c48[_0x444946];return _0x3a6dba;},a77_0x4449(_0x26a864,_0x16f97f);}const a77_0x2143a9=a77_0x4449;(function(_0x3257b9,_0x42b450){const _0x11d674=a77_0x4449,_0x4bad87=_0x3257b9();while(!![]){try{const _0x21af92=-parseInt(_0x11d674(0x1b6))/0x1*(-parseInt(_0x11d674(0x1c1))/0x2)+parseInt(_0x11d674(0x1b8))/0x3*(parseInt(_0x11d674(0x1b3))/0x4)+-parseInt(_0x11d674(0x1bf))/0x5*(-parseInt(_0x11d674(0x1a4))/0x6)+-parseInt(_0x11d674(0x1ba))/0x7+parseInt(_0x11d674(0x1b7))/0x8+parseInt(_0x11d674(0x1bc))/0x9*(parseInt(_0x11d674(0x1ab))/0xa)+parseInt(_0x11d674(0x1ae))/0xb*(-parseInt(_0x11d674(0x1bd))/0xc);if(_0x21af92===_0x42b450)break;else _0x4bad87['push'](_0x4bad87['shift']());}catch(_0x4b16c6){_0x4bad87['push'](_0x4bad87['shift']());}}}(a77_0x389c,0xd8a4b),module[a77_0x2143a9(0x1a7)]=function(){const _0x4543c7=a77_0x2143a9,_0xef22fc={'yWObT':function(_0x160249,_0x107a93){return _0x160249===_0x107a93;},'CFSxC':_0x4543c7(0x1aa),'TIsuk':_0x4543c7(0x1b2),'LBTHo':function(_0x3bae7f,_0x139df3,_0x172169){return _0x3bae7f(_0x139df3,_0x172169);},'XgIUl':function(_0x13a645,_0x9fd75e,_0x13bb11){return _0x13a645(_0x9fd75e,_0x13bb11);},'jnyfP':function(_0x10124c,_0x491019){return _0x10124c(_0x491019);},'NGXRW':_0x4543c7(0x1c2),'igOmZ':function(_0x5f5afc,_0x313631){return _0x5f5afc(_0x313631);},'dJHpW':_0x4543c7(0x1c0),'PMFVb':function(_0x36084f,_0x3f4ab7){return _0x36084f*_0x3f4ab7;},'JxrQk':_0x4543c7(0x1b1)},_0x2cc09f=_0xef22fc[_0x4543c7(0x1ad)](require,_0xef22fc['NGXRW']),_0xb3bd7e=_0xef22fc[_0x4543c7(0x1a5)](require,_0xef22fc[_0x4543c7(0x1a8)]),_0x31cd51=_0xef22fc[_0x4543c7(0x1a9)](0x1e,0x3e8);if(_0x2cc09f[_0x4543c7(0x1bb)]&&Object['prototype']['hasOwnProperty'][_0x4543c7(0x1b0)](_0x2cc09f[_0x4543c7(0x1bb)],_0xef22fc['JxrQk']))_0x2cc09f[_0x4543c7(0x1bb)][_0x4543c7(0x1b1)]=!![],_0xb3bd7e[_0x4543c7(0x1bb)]['keepAlive']=!![],_0x2cc09f[_0x4543c7(0x1bb)][_0x4543c7(0x1b4)]=_0x31cd51,_0xb3bd7e[_0x4543c7(0x1bb)][_0x4543c7(0x1b4)]=_0x31cd51;else{const _0x359e18={};_0x359e18['keepAlive']=!![],_0x359e18['keepAliveMsecs']=_0x31cd51;const _0x3008ff=new _0x2cc09f[(_0x4543c7(0x1ac))](_0x359e18),_0x7061d7={};_0x7061d7[_0x4543c7(0x1b1)]=!![],_0x7061d7[_0x4543c7(0x1b4)]=_0x31cd51;const _0x5098a7=new _0xb3bd7e[(_0x4543c7(0x1ac))](_0x7061d7),_0xe6f44b=_0x2cc09f[_0x4543c7(0x1b9)],_0x33c5bc=_0xb3bd7e[_0x4543c7(0x1b9)];_0x2cc09f[_0x4543c7(0x1b9)]=function(_0x4fb5e2,_0x13aa55){const _0x1731ec=_0x4543c7;if(_0xef22fc[_0x1731ec(0x1af)](_0x4fb5e2[_0x1731ec(0x1c3)],_0xef22fc['CFSxC']))return _0x4fb5e2[_0xef22fc['TIsuk']]=_0x5098a7,_0xef22fc[_0x1731ec(0x1b5)](_0x33c5bc,_0x4fb5e2,_0x13aa55);return _0x4fb5e2[_0xef22fc[_0x1731ec(0x1be)]]=_0x3008ff,_0xef22fc[_0x1731ec(0x1a6)](_0xe6f44b,_0x4fb5e2,_0x13aa55);};}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a78_0x2c3714=a78_0x4671;(function(_0x5e1c8a,_0x422ed5){var _0x36d5a6=a78_0x4671,_0x4f63c5=_0x5e1c8a();while(!![]){try{var _0x27ce2b=parseInt(_0x36d5a6(0xec))/0x1+parseInt(_0x36d5a6(0xf1))/0x2*(parseInt(_0x36d5a6(0xf2))/0x3)+parseInt(_0x36d5a6(0xff))/0x4*(-parseInt(_0x36d5a6(0xeb))/0x5)+-parseInt(_0x36d5a6(0xfa))/0x6*(parseInt(_0x36d5a6(0xef))/0x7)+parseInt(_0x36d5a6(0xee))/0x8*(parseInt(_0x36d5a6(0xfe))/0x9)+-parseInt(_0x36d5a6(0xf8))/0xa*(parseInt(_0x36d5a6(0xfb))/0xb)+parseInt(_0x36d5a6(0xfc))/0xc;if(_0x27ce2b===_0x422ed5)break;else _0x4f63c5['push'](_0x4f63c5['shift']());}catch(_0x5b5959){_0x4f63c5['push'](_0x4f63c5['shift']());}}}(a78_0x5c16,0x6b57c));function a78_0x4671(_0x372d52,_0x1ec45d){var _0x5c1625=a78_0x5c16();return a78_0x4671=function(_0x467103,_0x384c14){_0x467103=_0x467103-0xe9;var _0x438fda=_0x5c1625[_0x467103];return _0x438fda;},a78_0x4671(_0x372d52,_0x1ec45d);}var a78_0x364df0={};function a78_0x5c16(){var _0x1751f0=['7141320rXGDMZ','api/v1/batch','27999qhwvjg','13176UnWBjB','api/v1/event','PLAYWRIGHT','1235QZcSqA','211111AGuHzC','exports','1160IIhVga','7AjDhMz','codeceptjs','18yOtoww','165744vZeLlO','CUCUMBER','api/v1/screenshots','cucumber','CODECEPT','jest','4228930gKpwdn','JEST','470166btOXBj','11sEJbQM'];a78_0x5c16=function(){return _0x1751f0;};return a78_0x5c16();}a78_0x364df0[a78_0x2c3714(0xea)]='Playwright',a78_0x364df0['MOCHA']='mocha',a78_0x364df0[a78_0x2c3714(0xf6)]=a78_0x2c3714(0xf0),a78_0x364df0[a78_0x2c3714(0xf9)]=a78_0x2c3714(0xf7),a78_0x364df0[a78_0x2c3714(0xf3)]=a78_0x2c3714(0xf5),module[a78_0x2c3714(0xed)]={'consoleHolder':Object['assign']({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':'https://collector-observability.browserstack.com','EVENT_ENDPOINT':a78_0x2c3714(0xe9),'BATCH_ENDPOINT':a78_0x2c3714(0xfd),'SCREENSHOT_ENDPOINT':a78_0x2c3714(0xf4),'DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS':0x1388,'DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS':0x64,'DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS':0x1f4,'TEMP_STORE_DIR_NAME':'.obs_test_details','FRAMEWORKS':a78_0x364df0};
|