browserstack-node-sdk 1.34.12 → 1.34.14
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 +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/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 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/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 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
package/src/helpers/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a66_0x1d153f=a66_0x1780;(function(_0x24e868,_0x5c63d5){const _0x42a9eb=a66_0x1780,_0x219178=_0x24e868();while(!![]){try{const _0xe1bf45=parseInt(_0x42a9eb(0x125))/0x1*(-parseInt(_0x42a9eb(0x13a))/0x2)+-parseInt(_0x42a9eb(0x11d))/0x3+parseInt(_0x42a9eb(0x13f))/0x4+parseInt(_0x42a9eb(0x123))/0x5*(-parseInt(_0x42a9eb(0x13c))/0x6)+parseInt(_0x42a9eb(0x126))/0x7+-parseInt(_0x42a9eb(0x11f))/0x8+parseInt(_0x42a9eb(0x120))/0x9;if(_0xe1bf45===_0x5c63d5)break;else _0x219178['push'](_0x219178['shift']());}catch(_0x12d3b4){_0x219178['push'](_0x219178['shift']());}}}(a66_0x11c6,0x96379));const winston=require('winston'),os=require('os'),fs=require('fs'),path=require(a66_0x1d153f(0x121)),logDir=a66_0x1d153f(0x12b);!fs[a66_0x1d153f(0x141)](logDir)&&fs[a66_0x1d153f(0x132)](logDir);function a66_0x1780(_0x1e9f93,_0x17df73){const _0x11c623=a66_0x11c6();return a66_0x1780=function(_0x178037,_0x7b3358){_0x178037=_0x178037-0x11d;let _0x1e1f02=_0x11c623[_0x178037];return _0x1e1f02;},a66_0x1780(_0x1e9f93,_0x17df73);}const a66_0x529fcb={};a66_0x529fcb[a66_0x1d153f(0x12c)]=a66_0x1d153f(0x13d);const transports={'loggerConsole':new winston[(a66_0x1d153f(0x134))][(a66_0x1d153f(0x13e))](a66_0x529fcb),'loggerFile':new winston['transports'][(a66_0x1d153f(0x138))]({'filename':path[a66_0x1d153f(0x12f)](logDir,a66_0x1d153f(0x128))}),'debugLoggerFile':new winston[(a66_0x1d153f(0x134))][(a66_0x1d153f(0x138))]({'filename':path[a66_0x1d153f(0x12f)](logDir,a66_0x1d153f(0x130)),'level':a66_0x1d153f(0x12a)})},a66_0x4dd8e6={};a66_0x4dd8e6[a66_0x1d153f(0x12d)]=a66_0x1d153f(0x127);const a66_0x343dbf={};a66_0x343dbf[a66_0x1d153f(0x140)]=!![];const winstonLoggerParams={'format':winston[a66_0x1d153f(0x12d)][a66_0x1d153f(0x11e)](winston[a66_0x1d153f(0x12d)]['timestamp'](a66_0x4dd8e6),winston[a66_0x1d153f(0x12d)]['colorize'](a66_0x343dbf),winston[a66_0x1d153f(0x12d)][a66_0x1d153f(0x139)](_0x49dbfc=>_0x49dbfc[a66_0x1d153f(0x13b)]+a66_0x1d153f(0x131)+_0x49dbfc[a66_0x1d153f(0x140)]+':\x20'+_0x49dbfc[a66_0x1d153f(0x12e)])),'transports':[transports['loggerConsole'],transports[a66_0x1d153f(0x135)],transports[a66_0x1d153f(0x122)]]},a66_0x3044e3={};a66_0x3044e3[a66_0x1d153f(0x12d)]='YYYY-MM-DD\x20HH:mm:ss';const a66_0x2e66ee={};function a66_0x11c6(){const _0x2cf517=['727227UrCMNG','combine','8099568Fsualy','28939896VTCoiy','path','debugLoggerFile','35AQEPTO','winstonLogger','2tcLfxY','5861100QtYYQo','YYYY-MM-DD\x20HH:mm:ss','/usage.log','colorize','silly','log','name','format','message','join','/usage-debug.log','\x20-\x20','mkdirSync','fileLogger','transports','loggerFile','createLogger','logDir','File','printf','1116278SrTNhD','timestamp','923214KOqoux','console.info','Console','42644GSHRVq','level','existsSync'];a66_0x11c6=function(){return _0x2cf517;};return a66_0x11c6();}a66_0x2e66ee[a66_0x1d153f(0x140)]=!![];const winstonFileLoggerParams={'format':winston[a66_0x1d153f(0x12d)][a66_0x1d153f(0x11e)](winston[a66_0x1d153f(0x12d)][a66_0x1d153f(0x13b)](a66_0x3044e3),winston['format'][a66_0x1d153f(0x129)](a66_0x2e66ee),winston[a66_0x1d153f(0x12d)][a66_0x1d153f(0x139)](_0x35440f=>_0x35440f[a66_0x1d153f(0x140)]+':\x20'+_0x35440f[a66_0x1d153f(0x12e)])),'transports':[transports[a66_0x1d153f(0x135)],transports[a66_0x1d153f(0x122)]]};exports[a66_0x1d153f(0x124)]=new winston[(a66_0x1d153f(0x136))](winstonLoggerParams),exports[a66_0x1d153f(0x133)]=new winston['createLogger'](winstonFileLoggerParams),exports[a66_0x1d153f(0x137)]=logDir,exports[a66_0x1d153f(0x134)]=transports;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a67_0x34c3(_0xf3b522,_0x562d29){var _0x5ea59f=a67_0x5ea5();return a67_0x34c3=function(_0x34c3b9,_0x5b5dc1){_0x34c3b9=_0x34c3b9-0x1a6;var _0x5f5126=_0x5ea59f[_0x34c3b9];return _0x5f5126;},a67_0x34c3(_0xf3b522,_0x562d29);}function a67_0x5ea5(){var _0x5416d6=['patchScreenshot','21YYAvNu','emit','128lNKuGj','overrideTakeScreenshot','eXEZp','41740RFFqtF','quitCount_','BS_TESTOPS_ALLOW_SCREENSHOTS','initQuit','ektuE','env','0|1|2|4|3|5','cpoCg','bs:addLog:','TEST_SCREENSHOT','yKaHX','3pczALS','132722EwkAbO','NzZpz','ZfWRU','6147SKFPzw','843380ukDVcW','split','pid','752490ComPKL','wTUyI','tQwge','quit','iyVGt','takeScreenshot','2|1|0|4|3','ImdaU','mLOuo','patchQuit','Lqzzc','290052bZUSXu','RbOZC','167310Melvcy'];a67_0x5ea5=function(){return _0x5416d6;};return a67_0x5ea5();}var a67_0x5b9204=a67_0x34c3;(function(_0x1be2a6,_0x2383be){var _0x4372d2=a67_0x34c3,_0x41e57d=_0x1be2a6();while(!![]){try{var _0x141a3a=-parseInt(_0x4372d2(0x1ad))/0x1+-parseInt(_0x4372d2(0x1b9))/0x2*(parseInt(_0x4372d2(0x1b8))/0x3)+parseInt(_0x4372d2(0x1cb))/0x4+parseInt(_0x4372d2(0x1c0))/0x5+parseInt(_0x4372d2(0x1a6))/0x6*(-parseInt(_0x4372d2(0x1a8))/0x7)+-parseInt(_0x4372d2(0x1aa))/0x8*(parseInt(_0x4372d2(0x1bc))/0x9)+parseInt(_0x4372d2(0x1bd))/0xa;if(_0x141a3a===_0x2383be)break;else _0x41e57d['push'](_0x41e57d['shift']());}catch(_0x2cfab2){_0x41e57d['push'](_0x41e57d['shift']());}}}(a67_0x5ea5,0x198d9),exports[a67_0x5b9204(0x1ab)]=_0x8c069b=>{var _0x1a7f26=a67_0x5b9204,_0x50c43c={'ImdaU':_0x1a7f26(0x1b3),'mLOuo':_0x1a7f26(0x1b6),'AROkv':function(_0x4c8b10,_0x3fb15d){return _0x4c8b10(_0x3fb15d);},'aviaf':function(_0x254250,_0x3627f5){return _0x254250!==_0x3627f5;},'gDgjA':'true'},_0x2aab23=_0x50c43c[_0x1a7f26(0x1c7)]['split']('|'),_0x29e4d9=0x0;while(!![]){switch(_0x2aab23[_0x29e4d9++]){case'0':var _0x18c838={'NzZpz':_0x50c43c[_0x1a7f26(0x1c8)],'cpoCg':function(_0xfe0c2c,_0x11ccb2){return _0x50c43c['AROkv'](_0xfe0c2c,_0x11ccb2);}};continue;case'1':if(_0x50c43c['aviaf'](process[_0x1a7f26(0x1b2)][_0x1a7f26(0x1af)],_0x50c43c['gDgjA']))return;continue;case'2':if(_0x8c069b[_0x1a7f26(0x1a7)])return;continue;case'3':_0x8c069b['initScreenshot']=_0x8c069b[_0x1a7f26(0x1c5)];continue;case'4':_0x8c069b[_0x1a7f26(0x1a7)]=!![];continue;case'5':_0x8c069b[_0x1a7f26(0x1c5)]=()=>{var _0x143c2b=_0x1a7f26,_0x2bf15d={'yKaHX':_0x18c838[_0x143c2b(0x1ba)],'ektuE':function(_0x71bac6,_0x230f3b){var _0x420f61=_0x143c2b;return _0x18c838[_0x420f61(0x1b4)](_0x71bac6,_0x230f3b);}};return new Promise(function(_0x47ec12,_0x327cc2){var _0x962a6d=_0x143c2b,_0x1ae0aa={'eXEZp':_0x2bf15d[_0x962a6d(0x1b7)],'tQwge':function(_0x48f525,_0x159211){var _0xed9af=_0x962a6d;return _0x2bf15d[_0xed9af(0x1b1)](_0x48f525,_0x159211);}};_0x8c069b['initScreenshot']()['then'](_0x161512=>{var _0x8097af=_0x962a6d;process[_0x8097af(0x1a9)](_0x8097af(0x1b5)+process[_0x8097af(0x1bf)],{'timestamp':new Date()['toISOString'](),'message':_0x161512,'kind':_0x1ae0aa[_0x8097af(0x1ac)]}),_0x1ae0aa[_0x8097af(0x1c2)](_0x47ec12,_0x161512);});});};continue;}break;}},exports['overrideQuit']=(_0x177f64,_0x1cf6e9=null)=>{var _0x2bcfb8=a67_0x5b9204,_0x40d17a={'JkFGV':_0x2bcfb8(0x1c6),'wTUyI':function(_0x330493){return _0x330493();},'iyVGt':function(_0x28f103,_0x3d959a){return _0x28f103>_0x3d959a;}},_0x57f885=_0x40d17a['JkFGV'][_0x2bcfb8(0x1be)]('|'),_0xea857f=0x0;while(!![]){switch(_0x57f885[_0xea857f++]){case'0':_0x177f64[_0x2bcfb8(0x1c9)]=!![];continue;case'1':if(_0x177f64[_0x2bcfb8(0x1c9)])return;continue;case'2':var _0x585373={'ZfWRU':function(_0x3f79a4){var _0x50bad8=_0x2bcfb8;return _0x40d17a[_0x50bad8(0x1c1)](_0x3f79a4);},'THDUO':function(_0x1b556d,_0x415d4d){var _0x3e7e75=_0x2bcfb8;return _0x40d17a[_0x3e7e75(0x1c4)](_0x1b556d,_0x415d4d);},'Lqzzc':function(_0x5d85de,_0x450355){return _0x40d17a['iyVGt'](_0x5d85de,_0x450355);}};continue;case'3':_0x177f64['quit']=()=>{var _0x57f393=_0x2bcfb8,_0x58ed4e={'RbOZC':function(_0x57887f){var _0x1edab8=a67_0x34c3;return _0x585373[_0x1edab8(0x1bb)](_0x57887f);}};if(_0x1cf6e9){_0x1cf6e9[_0x57f393(0x1ae)]+=0x1;if(_0x585373['THDUO'](_0x1cf6e9[_0x57f393(0x1ae)],0x1))return _0x177f64[_0x57f393(0x1b0)]();}else{_0x177f64['quitCount_']+=0x1;if(_0x585373[_0x57f393(0x1ca)](_0x177f64[_0x57f393(0x1ae)],0x1))return _0x177f64['initQuit']();}return new Promise(function(_0x40d8c0){var _0x4e91d2=_0x57f393;_0x58ed4e[_0x4e91d2(0x1cc)](_0x40d8c0);});};continue;case'4':_0x177f64[_0x2bcfb8(0x1b0)]=_0x177f64[_0x2bcfb8(0x1c3)];continue;}break;}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a68_0x14d6(_0x31c5a9,_0x2531a0){const _0x1b52d9=a68_0x1b52();return a68_0x14d6=function(_0x14d66e,_0x1eb2f5){_0x14d66e=_0x14d66e-0x130;let _0xca252f=_0x1b52d9[_0x14d66e];return _0xca252f;},a68_0x14d6(_0x31c5a9,_0x2531a0);}const a68_0x4730d8=a68_0x14d6;(function(_0x35f549,_0x243b32){const _0x2964f8=a68_0x14d6,_0x295efe=_0x35f549();while(!![]){try{const _0x363dd9=parseInt(_0x2964f8(0x16c))/0x1*(parseInt(_0x2964f8(0x165))/0x2)+parseInt(_0x2964f8(0x154))/0x3+parseInt(_0x2964f8(0x171))/0x4*(parseInt(_0x2964f8(0x139))/0x5)+-parseInt(_0x2964f8(0x160))/0x6*(parseInt(_0x2964f8(0x16f))/0x7)+parseInt(_0x2964f8(0x173))/0x8*(parseInt(_0x2964f8(0x13c))/0x9)+parseInt(_0x2964f8(0x161))/0xa*(-parseInt(_0x2964f8(0x15b))/0xb)+-parseInt(_0x2964f8(0x16a))/0xc;if(_0x363dd9===_0x243b32)break;else _0x295efe['push'](_0x295efe['shift']());}catch(_0x491f31){_0x295efe['push'](_0x295efe['shift']());}}}(a68_0x1b52,0x361e5));const fs=require('fs'),path=require(a68_0x4730d8(0x167)),os=require('os'),{spawn}=require(a68_0x4730d8(0x15e)),helper=require(a68_0x4730d8(0x13b)),logger=require(a68_0x4730d8(0x133))[a68_0x4730d8(0x141)],{logDir}=require(a68_0x4730d8(0x133)),testHubConstants=require('../../helpers/testhub/constants'),PercyBinary=require(a68_0x4730d8(0x159));class Percy{#logfile=path[a68_0x4730d8(0x150)](logDir,'percy.log');#address=process[a68_0x4730d8(0x136)][a68_0x4730d8(0x16e)]||'http://localhost:5338';#binaryPath=null;#config=null;#proc=null;#isApp=![];['isProcessRunning']=![];constructor(_0x55619a){this.#config=_0x55619a,!!_0x55619a['app']&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x57ef3b=a68_0x4730d8;if(!this.#binaryPath){const _0x3e7c7c=new PercyBinary();this.#binaryPath=await _0x3e7c7c[_0x57ef3b(0x157)](this.#config);}return this.#binaryPath;}async #sleep(_0xf9708){return new Promise(_0x1f0284=>setTimeout(_0x1f0284,_0xf9708));}async[a68_0x4730d8(0x14c)](){const _0x156969=a68_0x4730d8,_0x12f6e8={};_0x12f6e8['yQqhK']=_0x156969(0x147),_0x12f6e8[_0x156969(0x13a)]=_0x156969(0x15c);const _0x56be88=_0x12f6e8;try{const _0xa53721=await helper['nodeRequest'](_0x56be88[_0x156969(0x174)],_0x56be88[_0x156969(0x13a)],null,null,this.#address);if(_0xa53721)return!![];}catch(_0x2e2afe){return![];}}async[a68_0x4730d8(0x177)](){const _0x333720=a68_0x4730d8,_0x12106d={'TPQoG':'app:exec','BSODz':'exec','LqBnT':function(_0x2df606,_0x4a21b8,_0x2011b3,_0xcc26f1){return _0x2df606(_0x4a21b8,_0x2011b3,_0xcc26f1);},'bYweN':_0x333720(0x140),'poVXn':_0x333720(0x135)},_0x3bccbf=await this.#getBinaryPath(),_0x58b9f2={};_0x58b9f2['flags']='a';const _0x401973=fs[_0x333720(0x153)](this.#logfile,_0x58b9f2),_0x10a453=await this[_0x333720(0x175)](),_0x6f77f9=await this[_0x333720(0x166)]();if(!_0x10a453)return![];const _0x804ad7=[(this.#isApp?_0x12106d['TPQoG']:_0x12106d['BSODz'])+':start'];_0x6f77f9&&_0x804ad7[_0x333720(0x13d)]('-c',_0x6f77f9);this.#proc=_0x12106d['LqBnT'](spawn,_0x3bccbf,_0x804ad7,{'env':Object[_0x333720(0x155)](process['env'],{'PERCY_TOKEN':_0x10a453,'TH_BUILD_UUID':process['env'][testHubConstants[_0x333720(0x149)]['BROWSERSTACK_TESTHUB_UUID']]})}),this.#proc['stdout'][_0x333720(0x142)](_0x401973),this.#proc[_0x333720(0x163)]['pipe'](_0x401973),this[_0x333720(0x14d)]=!![];var _0x1e8512=this;this.#proc['on'](_0x12106d['bYweN'],function(_0x4f7e9e){_0x1e8512['isProcessRunning']=![];});do{const _0x1f530e=await this[_0x333720(0x14c)]();if(_0x1f530e)return logger[_0x333720(0x14f)](_0x12106d[_0x333720(0x16d)]),!![];await this.#sleep(0x3e8);}while(this[_0x333720(0x14d)]);return![];}async[a68_0x4730d8(0x132)](){const _0x53aa3c=a68_0x4730d8,_0x2e4493={'FzVjW':function(_0x5e94bd,_0x31c888){return _0x5e94bd(_0x31c888);},'TGYze':function(_0x4810e3,_0x33ef1b,_0x4a6ce4){return _0x4810e3(_0x33ef1b,_0x4a6ce4);},'ijukr':_0x53aa3c(0x130),'JHSrD':_0x53aa3c(0x140)},_0x58dc02=await this.#getBinaryPath();return new Promise((_0x5c6517,_0x1c788d)=>{const _0x3aad48=_0x53aa3c,_0x158d99={'XFryf':function(_0xfc50f1,_0x4f45b2){const _0x877016=a68_0x14d6;return _0x2e4493[_0x877016(0x148)](_0xfc50f1,_0x4f45b2);}},_0x50cabe=_0x2e4493[_0x3aad48(0x13e)](spawn,_0x58dc02,[_0x2e4493[_0x3aad48(0x138)]]);_0x50cabe['on'](_0x2e4493[_0x3aad48(0x14b)],_0x5b534a=>{const _0x5861f7=_0x3aad48;this[_0x5861f7(0x14d)]=![],_0x158d99[_0x5861f7(0x16b)](_0x5c6517,_0x5b534a);});});}[a68_0x4730d8(0x170)](){const _0x1bfbb0=a68_0x4730d8;return this[_0x1bfbb0(0x14d)];}async[a68_0x4730d8(0x175)](){const _0x31b75c=a68_0x4730d8,_0x5a31e3={};_0x5a31e3[_0x31b75c(0x158)]='app',_0x5a31e3['wZpJr']=_0x31b75c(0x15f),_0x5a31e3[_0x31b75c(0x146)]='GET',_0x5a31e3[_0x31b75c(0x143)]=_0x31b75c(0x137);const _0x2a4f9e=_0x5a31e3,_0x3aa821=this.#config['projectName'];try{const _0x431cdd=this.#isApp?_0x2a4f9e[_0x31b75c(0x158)]:_0x2a4f9e[_0x31b75c(0x15d)],_0x44fc7d=await helper[_0x31b75c(0x169)](_0x2a4f9e[_0x31b75c(0x146)],'api/app_percy/get_project_token?name='+_0x3aa821+'&type='+_0x431cdd,{},this.#config),_0x173595=_0x44fc7d[_0x31b75c(0x15a)];return logger['debug'](_0x2a4f9e[_0x31b75c(0x143)]),_0x173595[_0x31b75c(0x13f)];}catch(_0x40f77d){return logger[_0x31b75c(0x144)](_0x31b75c(0x14a)+_0x40f77d),null;}}async[a68_0x4730d8(0x166)](){const _0x58f02a=a68_0x4730d8,_0x2f2b36={'aZiFm':function(_0x1ee686,_0x11eddf){return _0x1ee686(_0x11eddf);},'ygduQ':function(_0x444b17,_0x1a7f1b){return _0x444b17+_0x1a7f1b;},'lBqQw':'Percy\x20config\x20created\x20at\x20','ANToy':_0x58f02a(0x162)};if(!this.#config[_0x58f02a(0x134)])return null;const _0x1e25b4=path[_0x58f02a(0x150)](os[_0x58f02a(0x152)](),_0x2f2b36[_0x58f02a(0x131)]),_0x8d313c=this.#config[_0x58f02a(0x134)];return!_0x8d313c[_0x58f02a(0x14e)]&&(_0x8d313c[_0x58f02a(0x14e)]='2'),new Promise((_0x3e02e7,_0x40d5bc)=>{const _0x1b7b6c=_0x58f02a,_0x13bb09={'tNIKR':function(_0xfe6043,_0xf1ec5f){const _0xc50f97=a68_0x14d6;return _0x2f2b36[_0xc50f97(0x168)](_0xfe6043,_0xf1ec5f);},'yqdXJ':function(_0x4e314d,_0x2b09b3){return _0x2f2b36['ygduQ'](_0x4e314d,_0x2b09b3);},'fZFsr':_0x2f2b36['lBqQw']};fs[_0x1b7b6c(0x145)](_0x1e25b4,JSON['stringify'](_0x8d313c),_0x59fbc3=>{const _0xa4b9f7=_0x1b7b6c;_0x59fbc3&&(logger[_0xa4b9f7(0x144)](_0xa4b9f7(0x176)+_0x59fbc3),_0x13bb09[_0xa4b9f7(0x164)](_0x3e02e7,null)),logger[_0xa4b9f7(0x14f)](_0x13bb09[_0xa4b9f7(0x151)](_0x13bb09[_0xa4b9f7(0x156)],_0x1e25b4)),_0x13bb09['tNIKR'](_0x3e02e7,_0x1e25b4);});});}}function a68_0x1b52(){const _0x210b11=['join','yqdXJ','tmpdir','createWriteStream','889050WSHjOf','assign','fZFsr','getBinaryPath','ONygD','./PercyBinary','data','1317767TYdbvM','percy/healthcheck','wZpJr','child_process','automate','9732NWDlwR','10OEpNMD','percy.json','stderr','tNIKR','8VmkKQI','createPercyConfig','path','aZiFm','nodeRequest','6812880JveCTF','XFryf','28579imQEFQ','poVXn','PERCY_SERVER_ADDRESS','469HCmHCl','isRunning','28CbVANm','exports','8whIJmb','yQqhK','fetchPercyToken','Error\x20creating\x20percy\x20config:\x20','start','exec:stop','ANToy','stop','../logger','percyOptions','Percy\x20healthcheck\x20successful','env','Percy\x20fetch\x20token\x20success','ijukr','210365iEhVKQ','lgEQY','../helper','2814327VzWygs','push','TGYze','token','close','winstonLogger','pipe','OeftZ','error','writeFile','eHuOB','GET','FzVjW','ENV_VAR','Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20','JHSrD','healthcheck','isProcessRunning','version','debug'];a68_0x1b52=function(){return _0x210b11;};return a68_0x1b52();}module[a68_0x4730d8(0x172)]=Percy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a69_0x739b1c=a69_0x1f15;(function(_0x3af8b3,_0x3bd7b0){const _0x4d8e07=a69_0x1f15,_0x20713f=_0x3af8b3();while(!![]){try{const _0x1b66d8=-parseInt(_0x4d8e07(0x1f9))/0x1*(-parseInt(_0x4d8e07(0x240))/0x2)+-parseInt(_0x4d8e07(0x23b))/0x3+-parseInt(_0x4d8e07(0x211))/0x4+parseInt(_0x4d8e07(0x24f))/0x5*(-parseInt(_0x4d8e07(0x1f8))/0x6)+-parseInt(_0x4d8e07(0x218))/0x7+-parseInt(_0x4d8e07(0x253))/0x8+-parseInt(_0x4d8e07(0x24e))/0x9*(-parseInt(_0x4d8e07(0x254))/0xa);if(_0x1b66d8===_0x3bd7b0)break;else _0x20713f['push'](_0x20713f['shift']());}catch(_0x2b5a08){_0x20713f['push'](_0x20713f['shift']());}}}(a69_0x9888,0x634f1));const {https}=require(a69_0x739b1c(0x23c)),url=require(a69_0x739b1c(0x242)),yauzl=require(a69_0x739b1c(0x210)),fs=require('fs'),path=require(a69_0x739b1c(0x255)),os=require('os'),{spawn}=require('child_process'),HttpsProxyAgent=require(a69_0x739b1c(0x1dd)),logger=require(a69_0x739b1c(0x243))[a69_0x739b1c(0x1e5)];class PercyBinary{#hostOS=process[a69_0x739b1c(0x1db)];#httpPath=null;#binaryName='percy';#orderedPaths=[path[a69_0x739b1c(0x20c)](this.#homedir(),a69_0x739b1c(0x1ef)),process[a69_0x739b1c(0x21a)](),os[a69_0x739b1c(0x21e)]()];constructor(){const _0x51172f=a69_0x739b1c,_0x372593={};_0x372593[_0x51172f(0x234)]=_0x51172f(0x206),_0x372593[_0x51172f(0x202)]=function(_0x41f2fc,_0x17f7c1){return _0x41f2fc+_0x17f7c1;},_0x372593['kdsLc']='/percy-osx.zip',_0x372593[_0x51172f(0x1f1)]=_0x51172f(0x22e),_0x372593[_0x51172f(0x246)]=_0x51172f(0x1ff),_0x372593['BVuYj']=_0x51172f(0x205);const _0x215217=_0x372593,_0x2bc7fc=_0x215217[_0x51172f(0x234)];if(this.#hostOS[_0x51172f(0x20b)](/darwin|mac os/i))this.#httpPath=_0x215217[_0x51172f(0x202)](_0x2bc7fc,_0x215217['kdsLc']);else this.#hostOS[_0x51172f(0x20b)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x215217[_0x51172f(0x202)](_0x2bc7fc,_0x215217[_0x51172f(0x1f1)]),this.#binaryName=_0x215217[_0x51172f(0x246)]):this.#httpPath=_0x215217['JcByK'](_0x2bc7fc,_0x215217[_0x51172f(0x227)]);}#getAvailableDirs(){const _0x2fa1b0=a69_0x739b1c,_0x20bf63={};_0x20bf63[_0x2fa1b0(0x1fc)]=function(_0x42b5df,_0x5a9e01){return _0x42b5df<_0x5a9e01;},_0x20bf63[_0x2fa1b0(0x1e3)]=_0x2fa1b0(0x22c);const _0x13a869=_0x20bf63;for(var _0xb83fbc=0x0;_0x13a869[_0x2fa1b0(0x1fc)](_0xb83fbc,this.#orderedPaths['length']);_0xb83fbc++){var _0x5d95db=this.#orderedPaths[_0xb83fbc];if(this.#makePath(_0x5d95db))return _0x5d95db;}throw new Error(_0x13a869[_0x2fa1b0(0x1e3)]);}#makePath(_0x3d8f06){const _0x301bbd=a69_0x739b1c;try{return!this.#checkPath(_0x3d8f06)&&fs[_0x301bbd(0x1eb)](_0x3d8f06),!![];}catch{return![];}}#checkPath(_0xaf429b,_0x3830c2){const _0x2b8b7f=a69_0x739b1c,_0x7fb9c8={};_0x7fb9c8[_0x2b8b7f(0x236)]=function(_0x30d2aa,_0x5a9662){return _0x30d2aa|_0x5a9662;},_0x7fb9c8[_0x2b8b7f(0x1da)]=function(_0x25338b,_0x51d44e){return _0x25338b!==_0x51d44e;},_0x7fb9c8[_0x2b8b7f(0x249)]=_0x2b8b7f(0x214);const _0x350545=_0x7fb9c8;_0x3830c2=_0x3830c2||_0x350545[_0x2b8b7f(0x236)](fs[_0x2b8b7f(0x22a)],fs['W_OK']);try{return fs['accessSync'](_0xaf429b,_0x3830c2),!![];}catch(_0x4a7171){if(_0x350545[_0x2b8b7f(0x1da)](typeof fs[_0x2b8b7f(0x201)],_0x350545[_0x2b8b7f(0x249)]))return![];try{return fs[_0x2b8b7f(0x1e6)](_0xaf429b),!![];}catch(_0x1a8b31){return![];}}}async[a69_0x739b1c(0x239)](_0x26d1bf){const _0x4655ff=a69_0x739b1c,_0x5ae0a9={};_0x5ae0a9[_0x4655ff(0x203)]=_0x4655ff(0x1fb);const _0x123c70=_0x5ae0a9;var _0x55449a=this.#getAvailableDirs(),_0x3b22b1=path['join'](_0x55449a,this.#binaryName);if(this.#checkPath(_0x3b22b1,fs[_0x4655ff(0x219)]))return _0x3b22b1;const _0x1c1f3a=await this[_0x4655ff(0x200)](_0x26d1bf,_0x55449a),_0x5910eb=await this['validateBinary'](_0x1c1f3a);if(!_0x5910eb)return logger['error'](_0x123c70[_0x4655ff(0x203)]),await this[_0x4655ff(0x200)](_0x26d1bf,_0x55449a);return _0x1c1f3a;}async[a69_0x739b1c(0x20e)](_0x1bfda8){const _0x532453=a69_0x739b1c,_0x8c563e={'XSPEP':function(_0x1d1bc6,_0x26ee57){return _0x1d1bc6(_0x26ee57);},'uXiiH':function(_0x12c5a8,_0x4ef9c9,_0x4c2d5e){return _0x12c5a8(_0x4ef9c9,_0x4c2d5e);},'DJHwZ':_0x532453(0x21c),'sktws':_0x532453(0x226),'hRhbG':_0x532453(0x1fa)},_0x2b6c34=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x8fb4ba,_0x4eec70)=>{const _0x31df81=_0x532453,_0x436560={'xKjZH':function(_0x5f1320,_0x517fbb){const _0x3d0209=a69_0x1f15;return _0x8c563e[_0x3d0209(0x225)](_0x5f1320,_0x517fbb);}},_0x5648b2=_0x8c563e['uXiiH'](spawn,_0x1bfda8,[_0x8c563e[_0x31df81(0x20f)]]);_0x5648b2[_0x31df81(0x22b)]['on'](_0x8c563e['sktws'],_0x969f21=>{const _0x13f6ec=_0x31df81;_0x2b6c34[_0x13f6ec(0x1e4)](_0x969f21)&&_0x8c563e[_0x13f6ec(0x225)](_0x8fb4ba,!![]);}),_0x5648b2['on'](_0x8c563e['hRhbG'],()=>{_0x436560['xKjZH'](_0x8fb4ba,![]);});});}[a69_0x739b1c(0x200)](_0x48c3e2,_0x337e8c){const _0x21f9ee=a69_0x739b1c,_0x12138b={'VtZJn':'Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file','BMUzf':function(_0x50ecef,_0x1297d5){return _0x50ecef(_0x1297d5);},'Caozl':_0x21f9ee(0x238),'xmgXI':_0x21f9ee(0x1fa),'SXxfa':_0x21f9ee(0x1dc),'xVVbH':_0x21f9ee(0x1e8),'FagPe':function(_0x3bd3cf,_0x260fda){return _0x3bd3cf(_0x260fda);},'eHGxp':function(_0x4c3035,_0x28c93f){return _0x4c3035(_0x28c93f);},'KxssO':function(_0x693a71,_0x5a98f6){return _0x693a71(_0x5a98f6);},'CAyMN':'end','DzWXR':function(_0x2acbf4,_0x26bac7){return _0x2acbf4===_0x26bac7;},'JACSk':_0x21f9ee(0x1ed),'PcXjL':_0x21f9ee(0x20d),'NZFOA':function(_0x185e29,_0x12497b){return _0x185e29+_0x12497b;},'DHhBD':'.zip','wCVti':_0x21f9ee(0x247)};!this.#checkPath(_0x337e8c)&&fs[_0x21f9ee(0x1eb)](_0x337e8c);const _0x1217c5=this.#binaryName,_0x40825c=path[_0x21f9ee(0x20c)](_0x337e8c,_0x12138b[_0x21f9ee(0x229)](_0x1217c5,_0x12138b[_0x21f9ee(0x251)])),_0x255137=path[_0x21f9ee(0x20c)](_0x337e8c,_0x1217c5),_0x1e6301=fs[_0x21f9ee(0x21b)](_0x40825c),_0x5c649f=url[_0x21f9ee(0x241)](this.#httpPath);if(_0x48c3e2[_0x21f9ee(0x22d)]&&_0x48c3e2[_0x21f9ee(0x256)]){const _0x46c843={};_0x46c843['host']=_0x48c3e2['proxyHost'],_0x46c843['port']=_0x48c3e2['proxyPort'],_0x5c649f[_0x21f9ee(0x235)]=new HttpsProxyAgent(_0x46c843);}if(_0x48c3e2[_0x21f9ee(0x21d)])try{_0x5c649f['ca']=fs['readFileSync'](_0x48c3e2[_0x21f9ee(0x21d)]);}catch(_0x1c9485){logger[_0x21f9ee(0x238)](_0x12138b['wCVti'],_0x1c9485);}return new Promise((_0x4e67d4,_0x484c71)=>{const _0x4c3516=_0x21f9ee,_0x20aafa={'ptPoW':_0x12138b[_0x4c3516(0x22f)],'lOZsF':function(_0x101027,_0x435b85){const _0x3c5855=_0x4c3516;return _0x12138b[_0x3c5855(0x24d)](_0x101027,_0x435b85);},'OflbC':function(_0x445394,_0x8fe8e7){return _0x12138b['eHGxp'](_0x445394,_0x8fe8e7);},'kOmwj':function(_0x5e95c5,_0x12d6ab){const _0x2a4d7a=_0x4c3516;return _0x12138b[_0x2a4d7a(0x1f0)](_0x5e95c5,_0x12d6ab);},'MHuVP':_0x12138b['CAyMN'],'NjlNH':function(_0x3f322b,_0x1f3149){const _0x3128b6=_0x4c3516;return _0x12138b[_0x3128b6(0x1f5)](_0x3f322b,_0x1f3149);},'ZkWwL':_0x12138b[_0x4c3516(0x231)],'ejQfz':_0x12138b[_0x4c3516(0x23e)],'LSsOC':_0x12138b[_0x4c3516(0x208)]};https[_0x4c3516(0x204)](_0x5c649f,function(_0x9cc044){const _0x866b49=_0x4c3516,_0x34c117={'DPcbQ':_0x12138b[_0x866b49(0x1d7)],'ijHeh':function(_0x2b09be,_0x3fbd3b){return _0x12138b['BMUzf'](_0x2b09be,_0x3fbd3b);}};_0x9cc044[_0x866b49(0x209)](_0x1e6301),_0x9cc044['on'](_0x12138b['Caozl'],function(_0xd8fdce){const _0x108119=_0x866b49;logger['error'](_0x20aafa[_0x108119(0x20a)],_0xd8fdce),_0x20aafa[_0x108119(0x250)](_0x484c71,_0xd8fdce);}),_0x1e6301['on'](_0x12138b[_0x866b49(0x208)],function(_0x2ca289){const _0x975b01=_0x866b49;logger['error'](_0x34c117[_0x975b01(0x1de)],_0x2ca289),_0x34c117[_0x975b01(0x23d)](_0x484c71,_0x2ca289);}),_0x1e6301['on'](_0x12138b['xmgXI'],function(){const _0x538a82=_0x866b49,_0x1a07f5={'YulqM':function(_0x3491e8,_0x38aca3){return _0x20aafa['OflbC'](_0x3491e8,_0x38aca3);},'IPCOO':function(_0x122579,_0x24ad4e){const _0x4b2229=a69_0x1f15;return _0x20aafa[_0x4b2229(0x217)](_0x122579,_0x24ad4e);},'VsmQc':_0x20aafa['MHuVP'],'Bnjhn':function(_0x3d694f,_0x247f9f){return _0x20aafa['NjlNH'](_0x3d694f,_0x247f9f);},'hQHlK':_0x20aafa[_0x538a82(0x1d9)],'TJHLj':_0x20aafa[_0x538a82(0x224)],'ZxQTV':_0x20aafa[_0x538a82(0x1f7)]},_0xd9c7aa={};_0xd9c7aa[_0x538a82(0x1df)]=!![],yauzl['open'](_0x40825c,_0xd9c7aa,function(_0x209941,_0xe42b7c){const _0x1c9b25=_0x538a82,_0x342ea4={'AJmBx':function(_0x1f6bfa,_0x2b976e){return _0x1a07f5['IPCOO'](_0x1f6bfa,_0x2b976e);},'TNDvT':_0x1a07f5[_0x1c9b25(0x230)],'xIoPg':function(_0x4079a4,_0x103e3a){return _0x1a07f5['Bnjhn'](_0x4079a4,_0x103e3a);},'mWrTB':function(_0x49a00f,_0x1e192b){const _0x38d71d=_0x1c9b25;return _0x1a07f5[_0x38d71d(0x1ee)](_0x49a00f,_0x1e192b);},'NxlxH':_0x1a07f5[_0x1c9b25(0x24a)]};_0x209941&&_0x1a07f5[_0x1c9b25(0x1ee)](_0x484c71,_0x209941),_0xe42b7c['readEntry'](),_0xe42b7c['on'](_0x1a07f5[_0x1c9b25(0x1e9)],_0x5d04b7=>{const _0x74fa44=_0x1c9b25;if(/\/$/[_0x74fa44(0x1e4)](_0x5d04b7[_0x74fa44(0x216)]))_0xe42b7c[_0x74fa44(0x248)]();else{const _0x33d086=fs[_0x74fa44(0x21b)](path[_0x74fa44(0x20c)](_0x337e8c,_0x5d04b7[_0x74fa44(0x216)]));_0xe42b7c['openReadStream'](_0x5d04b7,function(_0x214fa4,_0x157612){const _0x5987d9=_0x74fa44;_0x214fa4&&_0x342ea4[_0x5987d9(0x1ec)](_0x484c71,_0x209941),_0x157612['on'](_0x342ea4['TNDvT'],function(){const _0x4c9d22=_0x5987d9;_0x33d086['close'](),_0xe42b7c[_0x4c9d22(0x248)]();}),_0x157612[_0x5987d9(0x209)](_0x33d086);}),_0x342ea4[_0x74fa44(0x21f)](_0x5d04b7['fileName'],_0x1217c5)&&_0xe42b7c[_0x74fa44(0x1fa)]();}}),_0xe42b7c['on'](_0x1a07f5[_0x1c9b25(0x1e2)],_0x26a6ee=>{_0x1a07f5['YulqM'](_0x484c71,_0x26a6ee);}),_0xe42b7c['once'](_0x1a07f5['VsmQc'],()=>{const _0x190af5=_0x1c9b25,_0x2483ec={'MeoBG':function(_0x107fb0,_0x46aa0d){return _0x342ea4['mWrTB'](_0x107fb0,_0x46aa0d);}};fs[_0x190af5(0x207)](_0x255137,_0x342ea4[_0x190af5(0x223)],function(_0x1379bc){const _0x2701ed=_0x190af5;_0x1379bc&&_0x2483ec[_0x2701ed(0x1fd)](_0x484c71,_0x1379bc),_0x2483ec[_0x2701ed(0x1fd)](_0x4e67d4,_0x255137);}),_0xe42b7c['close']();});});});})['on'](_0x12138b[_0x4c3516(0x208)],function(_0x463548){const _0x327d35=_0x4c3516;logger[_0x327d35(0x238)](_0x12138b['SXxfa'],_0x463548),_0x12138b['BMUzf'](_0x484c71,_0x463548);});});}#homedir(){const _0xcf3415=a69_0x739b1c,_0x50e0e1={};_0x50e0e1[_0xcf3415(0x24c)]=function(_0x26b16b,_0x298444){return _0x26b16b===_0x298444;},_0x50e0e1[_0xcf3415(0x244)]=_0xcf3415(0x1f4),_0x50e0e1[_0xcf3415(0x233)]=function(_0x1f2b67,_0x23223d){return _0x1f2b67===_0x23223d;},_0x50e0e1[_0xcf3415(0x1e1)]=_0xcf3415(0x1ea),_0x50e0e1[_0xcf3415(0x221)]=function(_0x7aa107,_0x27d2bd){return _0x7aa107+_0x27d2bd;},_0x50e0e1[_0xcf3415(0x213)]=_0xcf3415(0x24b),_0x50e0e1[_0xcf3415(0x252)]=_0xcf3415(0x1e7),_0x50e0e1[_0xcf3415(0x1e0)]=function(_0x33017e,_0xe39aeb){return _0x33017e===_0xe39aeb;},_0x50e0e1['CCque']=_0xcf3415(0x1fe),_0x50e0e1['wywFe']=function(_0x57669b,_0x52aa57){return _0x57669b===_0x52aa57;},_0x50e0e1['CepYp']=_0xcf3415(0x237),_0x50e0e1[_0xcf3415(0x1f3)]=_0xcf3415(0x1f2),_0x50e0e1[_0xcf3415(0x228)]=function(_0x1c9be6,_0x52b81f){return _0x1c9be6||_0x52b81f;};const _0xa9f525=_0x50e0e1;if(_0xa9f525['GWaPw'](typeof os[_0xcf3415(0x232)],_0xa9f525[_0xcf3415(0x244)]))return os[_0xcf3415(0x232)]();const _0x13edc6=process[_0xcf3415(0x245)],_0x19236d=_0x13edc6[_0xcf3415(0x23f)],_0x25222d=_0x13edc6['LOGNAME']||_0x13edc6[_0xcf3415(0x220)]||_0x13edc6[_0xcf3415(0x1f6)]||_0x13edc6[_0xcf3415(0x215)];if(_0xa9f525[_0xcf3415(0x233)](process[_0xcf3415(0x1db)],_0xa9f525[_0xcf3415(0x1e1)]))return _0x13edc6['USERPROFILE']||_0xa9f525[_0xcf3415(0x221)](_0x13edc6[_0xcf3415(0x212)],_0x13edc6['HOMEPATH'])||_0x19236d||null;if(_0xa9f525[_0xcf3415(0x233)](process[_0xcf3415(0x1db)],_0xa9f525[_0xcf3415(0x213)]))return _0x19236d||(_0x25222d?_0xa9f525[_0xcf3415(0x221)](_0xa9f525[_0xcf3415(0x252)],_0x25222d):null);if(_0xa9f525[_0xcf3415(0x1e0)](process['platform'],_0xa9f525[_0xcf3415(0x23a)]))return _0x19236d||(_0xa9f525['wywFe'](process['getuid'](),0x0)?_0xa9f525[_0xcf3415(0x1d8)]:_0x25222d?_0xa9f525['nmWux'](_0xa9f525[_0xcf3415(0x1f3)],_0x25222d):null);return _0xa9f525[_0xcf3415(0x228)](_0x19236d,null);}}function a69_0x1f15(_0x2af0a6,_0x197c18){const _0x988816=a69_0x9888();return a69_0x1f15=function(_0x1f1527,_0x47c36c){_0x1f1527=_0x1f1527-0x1d7;let _0x5a469d=_0x988816[_0x1f1527];return _0x5a469d;},a69_0x1f15(_0x2af0a6,_0x197c18);}function a69_0x9888(){const _0x49f4aa=['rRgDS','get','/percy-linux.zip','https://github.com/percy/cli/releases/latest/download','chmod','Caozl','pipe','ptPoW','match','join','entry','validateBinary','DJHwZ','yauzl','2696108akzENF','HOMEDRIVE','uCPyf','undefined','USERNAME','fileName','kOmwj','1705529QFIVbn','X_OK','cwd','createWriteStream','--version','useCaCertificate','tmpdir','xIoPg','USER','nmWux','exports','NxlxH','ejQfz','XSPEP','data','BVuYj','vwaeD','NZFOA','R_OK','stdout','Error\x20trying\x20to\x20download\x20percy\x20binary','proxyHost','/percy-win.zip','xVVbH','VsmQc','JACSk','homedir','HOqcY','maaet','agent','xlLxO','/root','error','getBinaryPath','CCque','2214855YLvAqB','follow-redirects','ijHeh','PcXjL','HOME','27026hZZsCp','parse','url','../logger','AiUHw','env','gIRZA','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file','readEntry','lWRqc','hQHlK','darwin','GWaPw','FagPe','671877loaaEO','3140vJVkcD','lOZsF','DHhBD','ebGeB','3457000oPBdBM','400uZbuoU','path','proxyPort','VtZJn','CepYp','ZkWwL','WNBaU','platform','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request','https-proxy-agent','DPcbQ','lazyEntries','WKwMf','meUpk','ZxQTV','fYfSb','test','winstonLogger','statSync','/Users/','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response','TJHLj','win32','mkdirSync','AJmBx','0755','YulqM','.browserstack','KxssO','haKdu','/home/','OdnQA','function','DzWXR','LNAME','LSsOC','6372ovWtUY','13GBJhzi','close','Corrupt\x20percy\x20binary,\x20retrying','JXZFQ','MeoBG','linux','percy.exe','download','accessSync','JcByK'];a69_0x9888=function(){return _0x49f4aa;};return a69_0x9888();}module[a69_0x739b1c(0x222)]=PercyBinary;
|
|
1
|
+
const a69_0x24420b=a69_0x53cc;(function(_0x1909f7,_0x2f6955){const _0x2cfea8=a69_0x53cc,_0x559f4f=_0x1909f7();while(!![]){try{const _0x300ed1=parseInt(_0x2cfea8(0x13e))/0x1+-parseInt(_0x2cfea8(0x14b))/0x2+-parseInt(_0x2cfea8(0x121))/0x3+-parseInt(_0x2cfea8(0x148))/0x4+-parseInt(_0x2cfea8(0x10e))/0x5+parseInt(_0x2cfea8(0x132))/0x6+parseInt(_0x2cfea8(0x16b))/0x7;if(_0x300ed1===_0x2f6955)break;else _0x559f4f['push'](_0x559f4f['shift']());}catch(_0x134649){_0x559f4f['push'](_0x559f4f['shift']());}}}(a69_0x4652,0xdf7e9));function a69_0x4652(){const _0x5dee56=['nuTuL','length','entry','4255180uJCQxz','W_OK','percy.exe','accessSync','winstonLogger','oNsNA','0755','error','iqSpV','.zip','NZOYI','yauzl','IbYOq','download','faZXl','/percy-linux.zip','join','port','LZVKD','1330986EErBbM','/home/','X_OK','host','cMQtn','mkdirSync','parse','GTsXz','JZThd','eezKy','USERPROFILE','test','pAoQr','XWRPp','aXUdp','ombkM','darwin','7259958RamHtI','proxyHost','path','createWriteStream','get','xelks','tPOHE','YzYFZ','readEntry','lazyEntries','HOMEPATH','NjdrZ','1703733MYwROi','R_OK','FPRcn','HvYlX','once','cwd','exports','qVlLo','/percy-osx.zip','jNmzX','1796608pPomQE','yHvuQ','/root','1099586QJFknA','LNAME','cvxSF','yNDRo','lYxzM','dBNTb','kZCJB','/percy-win.zip','dwLNe','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response','Corrupt\x20percy\x20binary,\x20retrying','chmod','pipe','SupWN','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request','Komwi','follow-redirects','QrTET','bcHfL','child_process','uQCAW','flTPT','aPZXU','msOWw','agent','readFileSync','dEmlB','validateBinary','end','../logger','sQvhM','klsmY','2067450vHQqVk','openReadStream','QQaEU','alDmE','linux','WxNnr','percy','kpPAB','GUYZK','OgcdP','XnQdw','function','lSCSd','open','USERNAME','lUXpj','useCaCertificate','https-proxy-agent','HOME','homedir','https://github.com/percy/cli/releases/latest/download','--version','bvdgZ','GiVxe','platform','vMHqH','getuid','fileName','proxyPort','close','data','YEIFt'];a69_0x4652=function(){return _0x5dee56;};return a69_0x4652();}const {https}=require(a69_0x24420b(0x15b)),url=require('url'),yauzl=require(a69_0x24420b(0x119)),fs=require('fs'),path=require(a69_0x24420b(0x134)),os=require('os'),{spawn}=require(a69_0x24420b(0x15e)),HttpsProxyAgent=require(a69_0x24420b(0xfc)),logger=require(a69_0x24420b(0x168))[a69_0x24420b(0x112)];function a69_0x53cc(_0x429fb6,_0x168aa6){const _0x465228=a69_0x4652();return a69_0x53cc=function(_0x53cce4,_0x13ebce){_0x53cce4=_0x53cce4-0xfc;let _0x54c183=_0x465228[_0x53cce4];return _0x54c183;},a69_0x53cc(_0x429fb6,_0x168aa6);}class PercyBinary{#hostOS=process['platform'];#httpPath=null;#binaryName=a69_0x24420b(0x171);#orderedPaths=[path['join'](this.#homedir(),'.browserstack'),process[a69_0x24420b(0x143)](),os['tmpdir']()];constructor(){const _0x455137=a69_0x24420b,_0x935d06={};_0x935d06['GUYZK']=_0x455137(0xff),_0x935d06[_0x455137(0x15f)]=function(_0x1ce0df,_0xe7f07f){return _0x1ce0df+_0xe7f07f;},_0x935d06['eezKy']=_0x455137(0x146),_0x935d06[_0x455137(0x11a)]=_0x455137(0x152),_0x935d06[_0x455137(0x120)]=_0x455137(0x110),_0x935d06[_0x455137(0x15d)]=function(_0x1348cb,_0x542176){return _0x1348cb+_0x542176;},_0x935d06[_0x455137(0x151)]=_0x455137(0x11d);const _0x5ebe23=_0x935d06,_0x41644c=_0x5ebe23[_0x455137(0x173)];if(this.#hostOS['match'](/darwin|mac os/i))this.#httpPath=_0x5ebe23[_0x455137(0x15f)](_0x41644c,_0x5ebe23[_0x455137(0x12a)]);else this.#hostOS['match'](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x5ebe23[_0x455137(0x15f)](_0x41644c,_0x5ebe23[_0x455137(0x11a)]),this.#binaryName=_0x5ebe23[_0x455137(0x120)]):this.#httpPath=_0x5ebe23[_0x455137(0x15d)](_0x41644c,_0x5ebe23[_0x455137(0x151)]);}#getAvailableDirs(){const _0x58aec7=a69_0x24420b,_0x2fca1a={};_0x2fca1a['NjdrZ']=function(_0x3519cf,_0x4e6411){return _0x3519cf<_0x4e6411;},_0x2fca1a[_0x58aec7(0x170)]='Error\x20trying\x20to\x20download\x20percy\x20binary';const _0x3dbec7=_0x2fca1a;for(var _0x461d24=0x0;_0x3dbec7[_0x58aec7(0x13d)](_0x461d24,this.#orderedPaths[_0x58aec7(0x10c)]);_0x461d24++){var _0x1970f2=this.#orderedPaths[_0x461d24];if(this.#makePath(_0x1970f2))return _0x1970f2;}throw new Error(_0x3dbec7[_0x58aec7(0x170)]);}#makePath(_0x17761b){const _0x12925b=a69_0x24420b;try{return!this.#checkPath(_0x17761b)&&fs[_0x12925b(0x126)](_0x17761b),!![];}catch{return![];}}#checkPath(_0x35bd56,_0x1b0fad){const _0x433968=a69_0x24420b,_0x18caec={};_0x18caec['iqSpV']=function(_0x1b8ac9,_0x2e5a0c){return _0x1b8ac9|_0x2e5a0c;},_0x18caec[_0x433968(0x17a)]=function(_0x163fa1,_0x4e4cdc){return _0x163fa1!==_0x4e4cdc;},_0x18caec[_0x433968(0x139)]='undefined';const _0x143a74=_0x18caec;_0x1b0fad=_0x1b0fad||_0x143a74[_0x433968(0x116)](fs[_0x433968(0x13f)],fs[_0x433968(0x10f)]);try{return fs[_0x433968(0x111)](_0x35bd56,_0x1b0fad),!![];}catch(_0x15abf3){if(_0x143a74['lUXpj'](typeof fs[_0x433968(0x111)],_0x143a74[_0x433968(0x139)]))return![];try{return fs['statSync'](_0x35bd56),!![];}catch(_0x482a02){return![];}}}async['getBinaryPath'](_0xcb80ad){const _0x3a854d=a69_0x24420b,_0x15bf86={};_0x15bf86[_0x3a854d(0x11c)]=_0x3a854d(0x155);const _0x5e7e61=_0x15bf86;var _0xfb5c13=this.#getAvailableDirs(),_0x3d96d2=path[_0x3a854d(0x11e)](_0xfb5c13,this.#binaryName);if(this.#checkPath(_0x3d96d2,fs[_0x3a854d(0x123)]))return _0x3d96d2;const _0x131b67=await this[_0x3a854d(0x11b)](_0xcb80ad,_0xfb5c13),_0x3330ca=await this[_0x3a854d(0x166)](_0x131b67);if(!_0x3330ca)return logger[_0x3a854d(0x115)](_0x5e7e61['faZXl']),await this[_0x3a854d(0x11b)](_0xcb80ad,_0xfb5c13);return _0x131b67;}async['validateBinary'](_0x265a93){const _0x378f1b=a69_0x24420b,_0x472162={'jNmzX':function(_0x1c75a5,_0xf4f11f){return _0x1c75a5(_0xf4f11f);},'QrTET':function(_0x4d780e,_0x5561ec,_0x386372){return _0x4d780e(_0x5561ec,_0x386372);},'ifYdv':_0x378f1b(0x100),'vMHqH':_0x378f1b(0x109),'qVlLo':_0x378f1b(0x108)},_0x1c20a7=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x420cab,_0x532ddb)=>{const _0xe2cbae=_0x378f1b,_0x1ecdec={'dwLNe':function(_0x186d16,_0x17fa6b){const _0x294ba1=a69_0x53cc;return _0x472162[_0x294ba1(0x147)](_0x186d16,_0x17fa6b);}},_0x5729d4=_0x472162[_0xe2cbae(0x15c)](spawn,_0x265a93,[_0x472162['ifYdv']]);_0x5729d4['stdout']['on'](_0x472162[_0xe2cbae(0x104)],_0x45b9c0=>{const _0x3151d5=_0xe2cbae;_0x1c20a7[_0x3151d5(0x12c)](_0x45b9c0)&&_0x1ecdec[_0x3151d5(0x153)](_0x420cab,!![]);}),_0x5729d4['on'](_0x472162[_0xe2cbae(0x145)],()=>{const _0xfce14e=_0xe2cbae;_0x472162[_0xfce14e(0x147)](_0x420cab,![]);});});}[a69_0x24420b(0x11b)](_0x26cb8d,_0x41e6ac){const _0x20f021=a69_0x24420b,_0x259d51={'cMQtn':_0x20f021(0x154),'ombkM':function(_0x4ade6d,_0x2f8252){return _0x4ade6d(_0x2f8252);},'flTPT':'Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file','pAoQr':function(_0x1786cf,_0x576a7a){return _0x1786cf(_0x576a7a);},'FdCHr':_0x20f021(0x167),'SupWN':function(_0x3e6455,_0xaa3c48){return _0x3e6455===_0xaa3c48;},'sQvhM':_0x20f021(0x10d),'dBNTb':_0x20f021(0x115),'oNsNA':_0x20f021(0x108),'alDmE':_0x20f021(0x159),'iFRoD':function(_0x2f3ea3,_0x2c3ff5){return _0x2f3ea3(_0x2c3ff5);},'QQaEU':_0x20f021(0x114),'ivwEv':function(_0xf71e7a,_0x35dd36){return _0xf71e7a+_0x35dd36;},'lYxzM':_0x20f021(0x117),'OVPuF':'Percy\x20download\x20failed\x20to\x20read\x20cert\x20file'};!this.#checkPath(_0x41e6ac)&&fs[_0x20f021(0x126)](_0x41e6ac);const _0x188777=this.#binaryName,_0x54da10=path['join'](_0x41e6ac,_0x259d51['ivwEv'](_0x188777,_0x259d51[_0x20f021(0x14f)])),_0x192baa=path['join'](_0x41e6ac,_0x188777),_0x4b8b4b=fs[_0x20f021(0x135)](_0x54da10),_0x3a5025=url[_0x20f021(0x127)](this.#httpPath);if(_0x26cb8d[_0x20f021(0x133)]&&_0x26cb8d[_0x20f021(0x107)]){const _0x9e4e1e={};_0x9e4e1e[_0x20f021(0x124)]=_0x26cb8d[_0x20f021(0x133)],_0x9e4e1e[_0x20f021(0x11f)]=_0x26cb8d[_0x20f021(0x107)],_0x3a5025[_0x20f021(0x163)]=new HttpsProxyAgent(_0x9e4e1e);}if(_0x26cb8d[_0x20f021(0x17b)])try{_0x3a5025['ca']=fs[_0x20f021(0x164)](_0x26cb8d['useCaCertificate']);}catch(_0x15d68b){logger[_0x20f021(0x115)](_0x259d51['OVPuF'],_0x15d68b);}return new Promise((_0x4dfa1d,_0x3283bf)=>{const _0x532157=_0x20f021,_0x5e1b3f={'XWRPp':function(_0x28976c,_0x76f4c3){const _0x2ec77d=a69_0x53cc;return _0x259d51[_0x2ec77d(0x130)](_0x28976c,_0x76f4c3);},'kpPAB':_0x259d51[_0x532157(0x16d)]};https[_0x532157(0x136)](_0x3a5025,function(_0x5c4781){const _0x319809=_0x532157,_0x423c97={'klsmY':_0x259d51[_0x319809(0x125)],'msOWw':function(_0x152b24,_0x30015e){const _0x46d9f3=_0x319809;return _0x259d51[_0x46d9f3(0x130)](_0x152b24,_0x30015e);},'yHvuQ':_0x259d51[_0x319809(0x160)],'KjXes':function(_0x30624f,_0xf3f744){const _0x478e21=_0x319809;return _0x259d51[_0x478e21(0x12d)](_0x30624f,_0xf3f744);},'JZThd':_0x259d51['FdCHr'],'IHwrp':function(_0x3eec68,_0x31505d){const _0x4b0925=_0x319809;return _0x259d51[_0x4b0925(0x158)](_0x3eec68,_0x31505d);},'GTsXz':function(_0x169b20,_0x123538){const _0x176e76=_0x319809;return _0x259d51[_0x176e76(0x130)](_0x169b20,_0x123538);},'HvYlX':_0x259d51[_0x319809(0x169)],'etPJb':_0x259d51[_0x319809(0x150)]};_0x5c4781[_0x319809(0x157)](_0x4b8b4b),_0x5c4781['on'](_0x259d51['dBNTb'],function(_0x5ef142){const _0x188a5c=_0x319809;logger['error'](_0x423c97[_0x188a5c(0x16a)],_0x5ef142),_0x423c97[_0x188a5c(0x162)](_0x3283bf,_0x5ef142);}),_0x4b8b4b['on'](_0x259d51[_0x319809(0x150)],function(_0x8c76af){const _0xa6b00b=_0x319809;logger['error'](_0x423c97[_0xa6b00b(0x149)],_0x8c76af),_0x423c97['msOWw'](_0x3283bf,_0x8c76af);}),_0x4b8b4b['on'](_0x259d51[_0x319809(0x113)],function(){const _0x317c58=_0x319809,_0xa09599={'dEmlB':function(_0x111878,_0x109cd1){const _0xa24f89=a69_0x53cc;return _0x5e1b3f[_0xa24f89(0x12e)](_0x111878,_0x109cd1);},'yNDRo':_0x5e1b3f[_0x317c58(0x172)]},_0x4fbbde={};_0x4fbbde[_0x317c58(0x13b)]=!![],yauzl[_0x317c58(0x178)](_0x54da10,_0x4fbbde,function(_0x2cce8c,_0x753670){const _0x4fd338=_0x317c58,_0x81d766={'XnQdw':function(_0x1f3200,_0x215cc4){return _0x423c97['KjXes'](_0x1f3200,_0x215cc4);},'tPOHE':_0x423c97[_0x4fd338(0x129)],'FPRcn':function(_0x3dcdde,_0x37d602){return _0x423c97['IHwrp'](_0x3dcdde,_0x37d602);}};_0x2cce8c&&_0x423c97[_0x4fd338(0x128)](_0x3283bf,_0x2cce8c),_0x753670[_0x4fd338(0x13a)](),_0x753670['on'](_0x423c97[_0x4fd338(0x141)],_0x58b734=>{const _0x3609f8=_0x4fd338;if(/\/$/[_0x3609f8(0x12c)](_0x58b734[_0x3609f8(0x106)]))_0x753670[_0x3609f8(0x13a)]();else{const _0x126069=fs['createWriteStream'](path[_0x3609f8(0x11e)](_0x41e6ac,_0x58b734['fileName']));_0x753670[_0x3609f8(0x16c)](_0x58b734,function(_0x16ec0e,_0x19f91a){const _0x2e51d5=_0x3609f8;_0x16ec0e&&_0x81d766[_0x2e51d5(0x175)](_0x3283bf,_0x2cce8c),_0x19f91a['on'](_0x81d766[_0x2e51d5(0x138)],function(){const _0x2a381b=_0x2e51d5;_0x126069['close'](),_0x753670[_0x2a381b(0x13a)]();}),_0x19f91a[_0x2e51d5(0x157)](_0x126069);}),_0x81d766[_0x3609f8(0x140)](_0x58b734['fileName'],_0x188777)&&_0x753670[_0x3609f8(0x108)]();}}),_0x753670['on'](_0x423c97['etPJb'],_0x529146=>{const _0xa65ba6=_0x4fd338;_0xa09599[_0xa65ba6(0x165)](_0x3283bf,_0x529146);}),_0x753670[_0x4fd338(0x142)](_0x423c97['JZThd'],()=>{const _0x3cd61d=_0x4fd338,_0x183e0b={'aXUdp':function(_0x34ab91,_0x3c7d6b){const _0x329e38=a69_0x53cc;return _0xa09599[_0x329e38(0x165)](_0x34ab91,_0x3c7d6b);}};fs[_0x3cd61d(0x156)](_0x192baa,_0xa09599[_0x3cd61d(0x14e)],function(_0x36d66f){const _0x3d1712=_0x3cd61d;_0x36d66f&&_0x183e0b[_0x3d1712(0x12f)](_0x3283bf,_0x36d66f),_0x183e0b['aXUdp'](_0x4dfa1d,_0x192baa);}),_0x753670[_0x3cd61d(0x108)]();});});});})['on'](_0x259d51['dBNTb'],function(_0x323fea){const _0x2451cd=_0x532157;logger['error'](_0x259d51[_0x2451cd(0x16e)],_0x323fea),_0x259d51['iFRoD'](_0x3283bf,_0x323fea);});});}#homedir(){const _0x36eb58=a69_0x24420b,_0x520d50={};_0x520d50['cvxSF']=function(_0xed6150,_0x4896db){return _0xed6150===_0x4896db;},_0x520d50[_0x36eb58(0x118)]=_0x36eb58(0x176),_0x520d50['lOkkY']='win32',_0x520d50[_0x36eb58(0x15a)]=function(_0x3acd77,_0x2137d1){return _0x3acd77+_0x2137d1;},_0x520d50['OgcdP']=_0x36eb58(0x131),_0x520d50[_0x36eb58(0x102)]=function(_0x59dc12,_0x166dac){return _0x59dc12+_0x166dac;},_0x520d50[_0x36eb58(0x10a)]='/Users/',_0x520d50['xelks']=_0x36eb58(0x16f),_0x520d50[_0x36eb58(0x177)]=_0x36eb58(0x14a),_0x520d50[_0x36eb58(0x10b)]=function(_0x1324ca,_0x1e6cf1){return _0x1324ca+_0x1e6cf1;},_0x520d50[_0x36eb58(0x161)]=_0x36eb58(0x122),_0x520d50[_0x36eb58(0x101)]=function(_0x833c24,_0x18851b){return _0x833c24||_0x18851b;};const _0x5b57e4=_0x520d50;if(_0x5b57e4[_0x36eb58(0x14d)](typeof os[_0x36eb58(0xfe)],_0x5b57e4[_0x36eb58(0x118)]))return os[_0x36eb58(0xfe)]();const _0x14dbb9=process['env'],_0x49408f=_0x14dbb9[_0x36eb58(0xfd)],_0x1e6683=_0x14dbb9['LOGNAME']||_0x14dbb9['USER']||_0x14dbb9[_0x36eb58(0x14c)]||_0x14dbb9[_0x36eb58(0x179)];if(_0x5b57e4[_0x36eb58(0x14d)](process[_0x36eb58(0x103)],_0x5b57e4['lOkkY']))return _0x14dbb9[_0x36eb58(0x12b)]||_0x5b57e4[_0x36eb58(0x15a)](_0x14dbb9['HOMEDRIVE'],_0x14dbb9[_0x36eb58(0x13c)])||_0x49408f||null;if(_0x5b57e4[_0x36eb58(0x14d)](process[_0x36eb58(0x103)],_0x5b57e4[_0x36eb58(0x174)]))return _0x49408f||(_0x1e6683?_0x5b57e4['GiVxe'](_0x5b57e4[_0x36eb58(0x10a)],_0x1e6683):null);if(_0x5b57e4[_0x36eb58(0x14d)](process[_0x36eb58(0x103)],_0x5b57e4[_0x36eb58(0x137)]))return _0x49408f||(_0x5b57e4['cvxSF'](process[_0x36eb58(0x105)](),0x0)?_0x5b57e4[_0x36eb58(0x177)]:_0x1e6683?_0x5b57e4['nuTuL'](_0x5b57e4[_0x36eb58(0x161)],_0x1e6683):null);return _0x5b57e4[_0x36eb58(0x101)](_0x49408f,null);}}module[a69_0x24420b(0x144)]=PercyBinary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a70_0x49b2(_0x1d18fa,_0x483b9e){var _0x4e7930=a70_0x4e79();return a70_0x49b2=function(_0x49b271,_0x13bf9c){_0x49b271=_0x49b271-0xa8;var _0xc61740=_0x4e7930[_0x49b271];return _0xc61740;},a70_0x49b2(_0x1d18fa,_0x483b9e);}var a70_0x114dc8=a70_0x49b2;(function(_0x3ceeb9,_0x52a211){var _0x3b671f=a70_0x49b2,_0x2f879b=_0x3ceeb9();while(!![]){try{var _0x142a0=parseInt(_0x3b671f(0xb4))/0x1*(-parseInt(_0x3b671f(0xb0))/0x2)+-parseInt(_0x3b671f(0xad))/0x3*(-parseInt(_0x3b671f(0xa8))/0x4)+parseInt(_0x3b671f(0xb6))/0x5*(parseInt(_0x3b671f(0xb7))/0x6)+-parseInt(_0x3b671f(0xa9))/0x7+-parseInt(_0x3b671f(0xaa))/0x8*(-parseInt(_0x3b671f(0xab))/0x9)+-parseInt(_0x3b671f(0xb3))/0xa+-parseInt(_0x3b671f(0xb5))/0xb*(-parseInt(_0x3b671f(0xaf))/0xc);if(_0x142a0===_0x52a211)break;else _0x2f879b['push'](_0x2f879b['shift']());}catch(_0x2057db){_0x2f879b['push'](_0x2f879b['shift']());}}}(a70_0x4e79,0x5d70e));function a70_0x4e79(){var _0x261baa=['9QGZLRL','385PkcLRu','155uQfQNO','51378jKNAuu','14848jWBTxu','4500832auZfCH','144cNwjgX','155682HYpEiY','getName','363bzNxLj','increment','208404sZbNxp','81878PYfWRb','exports','get','2396530RnFwGZ'];a70_0x4e79=function(){return _0x261baa;};return a70_0x4e79();}class PercyCaptureMap{#map={};[a70_0x114dc8(0xae)](_0x571ade,_0x3275f5){!this.#map[_0x571ade]&&(this.#map[_0x571ade]={}),!this.#map[_0x571ade][_0x3275f5]&&(this.#map[_0x571ade][_0x3275f5]=0x0),this.#map[_0x571ade][_0x3275f5]++;}[a70_0x114dc8(0xac)](_0x339bcc,_0x505cb6){var _0x57dfd7=a70_0x114dc8;return _0x339bcc+'-'+_0x505cb6+'-'+this[_0x57dfd7(0xb2)](_0x339bcc,_0x505cb6);}[a70_0x114dc8(0xb2)](_0x41eec6,_0x494a53){if(!this.#map[_0x41eec6])return 0x0;if(!this.#map[_0x41eec6][_0x494a53])return 0x0;return this.#map[_0x41eec6][_0x494a53];}}module[a70_0x114dc8(0xb1)]=PercyCaptureMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a71_0x24878f=a71_0x2b88;(function(_0x1d53aa,_0x53f31e){var _0x34edf7=a71_0x2b88,_0x253ac2=_0x1d53aa();while(!![]){try{var _0x467e5e=parseInt(_0x34edf7(0xad))/0x1+-parseInt(_0x34edf7(0xb8))/0x2+parseInt(_0x34edf7(0xb3))/0x3+parseInt(_0x34edf7(0xb9))/0x4+parseInt(_0x34edf7(0xaf))/0x5*(parseInt(_0x34edf7(0xb1))/0x6)+-parseInt(_0x34edf7(0xb0))/0x7*(parseInt(_0x34edf7(0xb5))/0x8)+parseInt(_0x34edf7(0xbc))/0x9*(-parseInt(_0x34edf7(0xa9))/0xa);if(_0x467e5e===_0x53f31e)break;else _0x253ac2['push'](_0x253ac2['shift']());}catch(_0x35bd51){_0x253ac2['push'](_0x253ac2['shift']());}}}(a71_0x1e90,0xa464e));var a71_0xc6a680={};function a71_0x1e90(){var _0x2b3348=['851347lyIAWA','6vANfxE','element','812703waOvVe','driver','32SSLGac','takeScreenshot','auto','1501906gUAsRB','4592388PnFltJ','exports','screenshot','9rIRQkM','3310130CsxixX','sendKeys','testcase','click','148237VqGXQD','manual','3372865ayoGfw'];a71_0x1e90=function(){return _0x2b3348;};return a71_0x1e90();}a71_0xc6a680[a71_0x24878f(0xb4)]=[a71_0x24878f(0xb6)],a71_0xc6a680['element']=[a71_0x24878f(0xac),a71_0x24878f(0xaa)];var a71_0x15ac4d={};a71_0x15ac4d['driver']=[a71_0x24878f(0xb6)];function a71_0x2b88(_0x46e25c,_0x1fed37){var _0x1e9002=a71_0x1e90();return a71_0x2b88=function(_0x2b8812,_0x30da24){_0x2b8812=_0x2b8812-0xa9;var _0x32e5fc=_0x1e9002[_0x2b8812];return _0x32e5fc;},a71_0x2b88(_0x46e25c,_0x1fed37);}var a71_0x2f27e5={};a71_0x2f27e5[a71_0x24878f(0xb2)]=[a71_0x24878f(0xac)];var a71_0x2bc7fd={};a71_0x2bc7fd[a71_0x24878f(0xb7)]=a71_0xc6a680,a71_0x2bc7fd[a71_0x24878f(0xbb)]=a71_0x15ac4d,a71_0x2bc7fd['click']=a71_0x2f27e5,a71_0x2bc7fd[a71_0x24878f(0xab)]={},a71_0x2bc7fd[a71_0x24878f(0xae)]={},module[a71_0x24878f(0xba)]=a71_0x2bc7fd;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a72_0x3e1a10=a72_0x83b6;(function(_0x5a5041,_0x368045){const _0x4a7607=a72_0x83b6,_0x1039dc=_0x5a5041();while(!![]){try{const _0x56ad0b=-parseInt(_0x4a7607(0x127))/0x1*(-parseInt(_0x4a7607(0x12e))/0x2)+-parseInt(_0x4a7607(0x129))/0x3+parseInt(_0x4a7607(0x11b))/0x4*(parseInt(_0x4a7607(0x111))/0x5)+-parseInt(_0x4a7607(0x11e))/0x6*(-parseInt(_0x4a7607(0x135))/0x7)+parseInt(_0x4a7607(0x131))/0x8*(parseInt(_0x4a7607(0x10f))/0x9)+-parseInt(_0x4a7607(0x12c))/0xa*(parseInt(_0x4a7607(0x122))/0xb)+parseInt(_0x4a7607(0x115))/0xc*(-parseInt(_0x4a7607(0x11a))/0xd);if(_0x56ad0b===_0x368045)break;else _0x1039dc['push'](_0x1039dc['shift']());}catch(_0x2da549){_0x1039dc['push'](_0x1039dc['shift']());}}}(a72_0x19f3,0x5b32b));const tryRequire=function(_0x23c6e9,_0x232b48){const _0xb3ce1e={'yZgEM':function(_0x205e9e,_0x4b855a){return _0x205e9e(_0x4b855a);}};try{return _0xb3ce1e['yZgEM'](require,_0x23c6e9);}catch{return _0x232b48;}},percySnapshot=tryRequire(a72_0x3e1a10(0x126),null),{percyScreenshot}=tryRequire(a72_0x3e1a10(0x126),{}),percyAppScreenshot=require(a72_0x3e1a10(0x113)),{getCurrentTestData}=require(a72_0x3e1a10(0x121)),PerformanceTester=require('../performance-tester'),logger=require(a72_0x3e1a10(0x132))[a72_0x3e1a10(0x117)];percySnapshot&&(exports[a72_0x3e1a10(0x119)]=async function(){const _0x4b39b8=a72_0x3e1a10,_0xaf2aca={'PSPrY':function(_0x324a15,_0x4d8946){return _0x324a15!==_0x4d8946;},'ucsBI':function(_0x489416,_0x53c6ef){return _0x489416>=_0x53c6ef;},'pKAoG':function(_0x3d76ff){return _0x3d76ff();},'eLHBO':_0x4b39b8(0x11d)};if(global['browserstackPlatformIndex']&&_0xaf2aca[_0x4b39b8(0x10d)](global[_0x4b39b8(0x114)],global[_0x4b39b8(0x12d)]))return;const _0x7a9305=_0xaf2aca['ucsBI'](arguments[_0x4b39b8(0x120)],0x2)?arguments[0x1]:'',_0x2bad44=_0xaf2aca['pKAoG'](getCurrentTestData),_0xe2356a={};return _0xe2356a[_0x4b39b8(0x116)]=_0x7a9305,_0xe2356a['testCase']=_0x2bad44[_0x4b39b8(0x116)]||'',_0xe2356a[_0x4b39b8(0x125)]=_0x2bad44[_0x4b39b8(0x112)]||'',_0xe2356a[_0x4b39b8(0x110)]=global[_0x4b39b8(0x114)],await PerformanceTester['measure'](_0xaf2aca[_0x4b39b8(0x12a)],()=>percySnapshot[_0x4b39b8(0x12f)](null,arguments),_0xe2356a);});function a72_0x19f3(){const _0x398a3d=['8839dYNehv','oRnvA','187815nQniMO','eLHBO','percy:screenshot','6830yqzPyi','browserstackPercyBestPlatform','62IEvoFM','apply','screenshot','41584mFpqsG','../logger','snMtN','error','87437VAodRx','PSPrY','qqrMP','1035WWBcxD','platformIndex','5RVJQYP','uuid','@percy/appium-app','browserstackPlatformIndex','31704duTuGn','name','winstonLogger','CQJcv','snapshot','3094mNrkDR','1752468GWhUaH','tmnGA','percy:snapshot','174wQksSE','Unsupported\x20driver\x20for\x20percy','length','../../helpers/testhub/utils','9779XGpYtU','percy:screenshot-app','testCase','thTestCaseExecutionId','@percy/selenium-webdriver'];a72_0x19f3=function(){return _0x398a3d;};return a72_0x19f3();}function a72_0x83b6(_0x1ebbfe,_0x1b2645){const _0x19f3bd=a72_0x19f3();return a72_0x83b6=function(_0x83b68,_0x5d7ef8){_0x83b68=_0x83b68-0x10d;let _0x44c7e2=_0x19f3bd[_0x83b68];return _0x44c7e2;},a72_0x83b6(_0x1ebbfe,_0x1b2645);}percyScreenshot?exports['screenshot']=async function(){const _0x49fd0b=a72_0x3e1a10,_0x4f592d={'qqrMP':function(_0x3dc285,_0x141523){return _0x3dc285>=_0x141523;},'tmnGA':function(_0x2e391f){return _0x2e391f();},'CQJcv':_0x49fd0b(0x12b)},_0x44d83c=_0x4f592d[_0x49fd0b(0x10e)](arguments['length'],0x2)?arguments[0x1]:'',_0x1e0d19=_0x4f592d[_0x49fd0b(0x11c)](getCurrentTestData),_0x398ccc={};return _0x398ccc[_0x49fd0b(0x116)]=_0x44d83c,_0x398ccc[_0x49fd0b(0x124)]=_0x1e0d19['name']||'',_0x398ccc[_0x49fd0b(0x125)]=_0x1e0d19[_0x49fd0b(0x112)]||'',_0x398ccc[_0x49fd0b(0x110)]=global[_0x49fd0b(0x114)],await PerformanceTester['measure'](_0x4f592d[_0x49fd0b(0x118)],()=>percyScreenshot['apply'](null,arguments),_0x398ccc);}:exports[a72_0x3e1a10(0x130)]=()=>{const _0x59a75e=a72_0x3e1a10,_0x2823ed={};_0x2823ed[_0x59a75e(0x133)]=_0x59a75e(0x11f);const _0x4c55eb=_0x2823ed;logger[_0x59a75e(0x134)](_0x4c55eb['snMtN']);};exports['screenshotApp']=async function(){const _0x1eecd9=a72_0x3e1a10,_0x5d3ef3={'NHrRE':function(_0x88d0e8,_0xacd59d){return _0x88d0e8>=_0xacd59d;},'oRnvA':function(_0x17313a){return _0x17313a();},'emqPo':_0x1eecd9(0x123)},_0x3004a2=_0x5d3ef3['NHrRE'](arguments[_0x1eecd9(0x120)],0x2)?arguments[0x1]:'',_0x581d86=_0x5d3ef3[_0x1eecd9(0x128)](getCurrentTestData),_0x22fb0b={};return _0x22fb0b[_0x1eecd9(0x116)]=_0x3004a2,_0x22fb0b['testCase']=_0x581d86[_0x1eecd9(0x116)]||'',_0x22fb0b[_0x1eecd9(0x125)]=_0x581d86[_0x1eecd9(0x112)]||'',_0x22fb0b[_0x1eecd9(0x110)]=global[_0x1eecd9(0x114)],await PerformanceTester['measure'](_0x5d3ef3['emqPo'],()=>percyAppScreenshot[_0x1eecd9(0x12f)](null,arguments),_0x22fb0b);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a73_0x432b(_0x203230,_0x4f0907){var _0x121b34=a73_0x121b();return a73_0x432b=function(_0x432b91,_0x38da26){_0x432b91=_0x432b91-0x17f;var _0x536390=_0x121b34[_0x432b91];return _0x536390;},a73_0x432b(_0x203230,_0x4f0907);}var a73_0x21a008=a73_0x432b;function a73_0x121b(){var _0x3919c3=['4439365kKUfoW','11tcHHgL','268956KXJNow','265882kMcLHU','./Percy','4yepmdG','6SbTLjS','6575200wsCLlX','560480oiDbtB','40BCkRLj','6mWTlWz','110197JEGOMs','8817108mCMACE'];a73_0x121b=function(){return _0x3919c3;};return a73_0x121b();}(function(_0x49b18c,_0xf9b63){var _0x2563ae=a73_0x432b,_0x303795=_0x49b18c();while(!![]){try{var _0x21e799=-parseInt(_0x2563ae(0x185))/0x1+-parseInt(_0x2563ae(0x18a))/0x2*(parseInt(_0x2563ae(0x180))/0x3)+-parseInt(_0x2563ae(0x17f))/0x4*(parseInt(_0x2563ae(0x182))/0x5)+parseInt(_0x2563ae(0x184))/0x6*(parseInt(_0x2563ae(0x187))/0x7)+-parseInt(_0x2563ae(0x183))/0x8*(-parseInt(_0x2563ae(0x189))/0x9)+-parseInt(_0x2563ae(0x181))/0xa+-parseInt(_0x2563ae(0x188))/0xb*(-parseInt(_0x2563ae(0x186))/0xc);if(_0x21e799===_0xf9b63)break;else _0x303795['push'](_0x303795['shift']());}catch(_0x377979){_0x303795['push'](_0x303795['shift']());}}}(a73_0x121b,0x5afc7),module['exports']=require(a73_0x21a008(0x18b)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a74_0x3610(_0x24929f,_0xbed85){const _0x7c39e3=a74_0x7c39();return a74_0x3610=function(_0x361026,_0x5505c3){_0x361026=_0x361026-0x9c;let _0x6626e3=_0x7c39e3[_0x361026];return _0x6626e3;},a74_0x3610(_0x24929f,_0xbed85);}function a74_0x7c39(){const _0x46e073=['init','overrideXforPercy','145295WnkmHl','../logger','7426568rVYdIW','pelaZ','safari','browserstackPercyMap','screenshotApp','percy:stop','apply','151284pCStiy','1bfhkHY','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','TLAdl','jNysY','forEach','./PercyCaptureModes','stop','chrome','1180729ZRziQW','132kmmjVZ','error','percy','cLgzS','39hjKgLv','browserName','element','Starting\x20percy','./PercySDK','getName','getDriver','browserStackPercyOptions','ViOPN','dJZIz','start','70beuHBY','YpoBk','startPercy','percyAutoCapture','7GYhJOs','lJecy','12xLcjmr','nestedKeyValue','ORVeA','then','5518593hEFpCQ','patchDriverPercy','22844OEmKPq','edge','gHHGo','./Percy','getPercyOptions','./PercyCaptureMap','deviceName','debug','getBestPlatformForPercySnapshot','manual','Error\x20patching\x20','patch','browserstackPercyBestPlatform','browser','../performance-tester','tgtva','driver','hEkCZ','increment','prototype','isUndefined','percyCaptureMode','platforms','568188WlDnpn','winstonLogger','browserstackSessionName'];a74_0x7c39=function(){return _0x46e073;};return a74_0x7c39();}const a74_0x4582f7=a74_0x3610;(function(_0x4c87e8,_0x71fe49){const _0x475828=a74_0x3610,_0x5622ba=_0x4c87e8();while(!![]){try{const _0x4829e8=-parseInt(_0x475828(0xd8))/0x1*(parseInt(_0x475828(0xd7))/0x2)+-parseInt(_0x475828(0xac))/0x3*(parseInt(_0x475828(0xb2))/0x4)+parseInt(_0x475828(0xce))/0x5*(-parseInt(_0x475828(0xe1))/0x6)+parseInt(_0x475828(0xaa))/0x7*(parseInt(_0x475828(0xd0))/0x8)+-parseInt(_0x475828(0xb0))/0x9+parseInt(_0x475828(0xa6))/0xa*(parseInt(_0x475828(0xe0))/0xb)+-parseInt(_0x475828(0xc9))/0xc*(-parseInt(_0x475828(0xe5))/0xd);if(_0x4829e8===_0x71fe49)break;else _0x5622ba['push'](_0x5622ba['shift']());}catch(_0x509d09){_0x5622ba['push'](_0x5622ba['shift']());}}}(a74_0x7c39,0x72efc));const Percy=require(a74_0x4582f7(0xb5)),PercySDK=require(a74_0x4582f7(0x9f)),PercyCaptureModes=require(a74_0x4582f7(0xdd)),PercyCaptureMap=require(a74_0x4582f7(0xb7)),logger=require(a74_0x4582f7(0xcf))[a74_0x4582f7(0xca)],helper=require('../helper'),PerformanceTester=require(a74_0x4582f7(0xc0));exports[a74_0x4582f7(0xa8)]=PerformanceTester['measureWrapper']('percy:start',async _0x3b6f93=>{const _0x25b5d3=a74_0x4582f7,_0x1b858b={};_0x1b858b[_0x25b5d3(0xc3)]=_0x25b5d3(0x9e);const _0xff3433=_0x1b858b;logger[_0x25b5d3(0xb9)](_0xff3433[_0x25b5d3(0xc3)]);const _0x557da8=new Percy(_0x3b6f93),_0x55985c=await _0x557da8[_0x25b5d3(0xa5)]();if(_0x55985c)return _0x557da8;return null;}),exports['stopPercy']=PerformanceTester['measureWrapper'](a74_0x4582f7(0xd5),async _0x30b6f3=>{const _0x9e0854=a74_0x4582f7,_0x393524={};_0x393524[_0x9e0854(0xb4)]='Stopping\x20percy';const _0x2418a1=_0x393524;return logger[_0x9e0854(0xb9)](_0x2418a1['gHHGo']),_0x30b6f3[_0x9e0854(0xde)]();}),exports[a74_0x4582f7(0xba)]=_0x28422f=>{const _0x176255=a74_0x4582f7,_0x1a5093={};_0x1a5093[_0x176255(0xa4)]=function(_0x1018ce,_0x37429a){return _0x1018ce<_0x37429a;};const _0x563bb7=_0x1a5093,_0x3a777c={};_0x3a777c[_0x176255(0xdf)]=0x0,_0x3a777c['firefox']=0x1,_0x3a777c[_0x176255(0xb3)]=0x2,_0x3a777c[_0x176255(0xd2)]=0x3;const _0x525296=_0x3a777c;return _0x28422f['reduce']((_0x181149,_0xc38258,_0x5bd0f6)=>{const _0x31460d=_0x176255,_0x346c8e=_0x28422f[_0x181149];if(_0xc38258[_0x31460d(0xb8)])return _0x181149;if(_0x346c8e[_0x31460d(0xb8)])return _0x5bd0f6;const _0x307688=_0xc38258[_0x31460d(0xbf)]?_0xc38258[_0x31460d(0xbf)]:_0xc38258[_0x31460d(0x9c)];if(_0x307688&&_0x563bb7['dJZIz'](_0x525296[_0x307688['toLowerCase']()],_0x525296[_0x307688['toLowerCase']()]))return _0x5bd0f6;return _0x181149;},0x0);},exports[a74_0x4582f7(0xa9)]=async(_0x3e0a39,_0x5769ab,_0x19a53d)=>{const _0x1eaa3b=a74_0x4582f7,_0x4b20a7={};_0x4b20a7[_0x1eaa3b(0xa7)]=_0x1eaa3b(0xd9);const _0x4bfb8b=_0x4b20a7,_0x3751dc=_0x3e0a39[_0x1eaa3b(0xd3)];if(helper[_0x1eaa3b(0xc6)](_0x3e0a39[_0x1eaa3b(0xcb)])){logger[_0x1eaa3b(0xb9)](_0x4bfb8b[_0x1eaa3b(0xa7)]);return;}const _0x43486e=_0x3751dc[_0x1eaa3b(0xa0)](_0x3e0a39['browserstackSessionName'],_0x5769ab);_0x19a53d['app']?await PercySDK[_0x1eaa3b(0xd4)](_0x3e0a39,_0x43486e):await PercySDK['screenshot'](_0x3e0a39,_0x43486e),_0x3751dc[_0x1eaa3b(0xc4)](_0x3e0a39['browserstackSessionName'],_0x5769ab);},exports[a74_0x4582f7(0xb1)]=(_0x404b1a,_0x108b81,_0x590503)=>{const _0x319983=a74_0x4582f7,_0x2d0ad9={};_0x2d0ad9[_0x319983(0xd1)]=_0x319983(0xa2),_0x2d0ad9['cLgzS']=_0x319983(0xe3),_0x2d0ad9[_0x319983(0xdb)]=function(_0x20352d,_0x56e5ac){return _0x20352d!==_0x56e5ac;},_0x2d0ad9[_0x319983(0xae)]=_0x319983(0xbb);const _0x5a9d67=_0x2d0ad9;if(!helper[_0x319983(0xad)](_0x590503,[_0x5a9d67[_0x319983(0xd1)],_0x5a9d67[_0x319983(0xe4)]]))return;if(_0x590503['browserStackPercyOptions'][_0x319983(0xe3)]&&_0x590503[_0x319983(0xa2)]['percyCaptureMode']&&_0x5a9d67[_0x319983(0xdb)](_0x590503[_0x319983(0xa2)][_0x319983(0xc7)],_0x5a9d67[_0x319983(0xae)])&&!_0x404b1a['browserstackPercyMap']){global[_0x319983(0xcb)]&&(_0x404b1a['browserstackSessionName']=global[_0x319983(0xcb)]),_0x404b1a['browserstackPercyMap']=new PercyCaptureMap();const _0x467195=PercyCaptureModes[_0x590503[_0x319983(0xa2)][_0x319983(0xc7)]];_0x467195[_0x319983(0xc2)]&&_0x467195['driver'][_0x319983(0xdc)](_0x22b1bf=>this[_0x319983(0xcd)](_0x404b1a,_0x22b1bf,_0x590503)),_0x467195[_0x319983(0x9d)]&&_0x467195[_0x319983(0x9d)][_0x319983(0xdc)](_0x24db98=>{const _0x70caec=_0x319983;if(_0x108b81['prototype'][_0x70caec(0xbd)+_0x24db98])return;_0x108b81[_0x70caec(0xc5)][_0x70caec(0xbd)+_0x24db98]=!![];const _0x1d89d4=_0x108b81['prototype'][_0x24db98];_0x108b81[_0x70caec(0xc5)][_0x24db98]=async function(){const _0x27d887=_0x70caec;let _0x1312b9=_0x1d89d4[_0x27d887(0xd6)](this,arguments);_0x1312b9&&_0x1312b9[_0x27d887(0xaf)]&&(_0x1312b9=await _0x1312b9);try{const _0x13db73=this[_0x27d887(0xa1)]();await exports['percyAutoCapture'](_0x13db73,_0x24db98,_0x590503);}catch(_0x2b05d6){logger[_0x27d887(0xe2)](_0x27d887(0xbc)+_0x24db98+'\x20for\x20percy\x20'+_0x2b05d6);}return _0x1312b9;};});}},exports[a74_0x4582f7(0xcd)]=function(_0x1f731c,_0x5bf9e7,_0xf43d47){const _0x432b49=a74_0x4582f7,_0x38f345={};_0x38f345[_0x432b49(0xab)]=function(_0x54d05f,_0x4b0250){return _0x54d05f+_0x4b0250;},_0x38f345['ViOPN']=_0x432b49(0xbd),_0x38f345[_0x432b49(0xda)]=function(_0x5c277a,_0x2900c0){return _0x5c277a+_0x2900c0;},_0x38f345[_0x432b49(0xc1)]=_0x432b49(0xcc);const _0x12fd6a=_0x38f345,_0x304c05=_0x12fd6a[_0x432b49(0xab)](_0x12fd6a[_0x432b49(0xa3)],_0x5bf9e7),_0x497b7a=_0x12fd6a['TLAdl'](_0x12fd6a['tgtva'],_0x5bf9e7),_0x199007=this;if(_0x1f731c[_0x304c05]||!_0x1f731c[_0x5bf9e7])return;_0x1f731c[_0x304c05]=!![],_0x1f731c[_0x497b7a]=_0x1f731c[_0x5bf9e7],_0x1f731c[_0x5bf9e7]=async()=>{const _0x471c15=_0x432b49;try{await _0x199007[_0x471c15(0xa9)](_0x1f731c,_0x5bf9e7,_0xf43d47);}catch(_0x29142b){logger[_0x471c15(0xe2)](_0x471c15(0xbc)+_0x5bf9e7+'\x20for\x20percy\x20'+_0x29142b);}return await _0x1f731c[_0x497b7a][_0x471c15(0xd6)](_0x1f731c,arguments);};},exports[a74_0x4582f7(0xb6)]=_0x209c1c=>{const _0x5aa4bf=a74_0x4582f7,_0x393da4={};_0x393da4[_0x5aa4bf(0xe3)]=_0x209c1c['percy'],_0x393da4[_0x5aa4bf(0xc7)]=_0x209c1c[_0x5aa4bf(0xc7)];const _0x5f25b8=_0x393da4;_0x209c1c[_0x5aa4bf(0xe3)]&&(_0x5f25b8[_0x5aa4bf(0xbe)]=exports[_0x5aa4bf(0xba)](_0x209c1c[_0x5aa4bf(0xc8)]));;return _0x5f25b8;};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a75_0x2da3a4=a75_0x3f09;function a75_0x3f09(_0x51d6fe,_0x1d7d53){const _0x2bc448=a75_0x2bc4();return a75_0x3f09=function(_0x3f09b1,_0x3639de){_0x3f09b1=_0x3f09b1-0x81;let _0x4ff392=_0x2bc448[_0x3f09b1];return _0x4ff392;},a75_0x3f09(_0x51d6fe,_0x1d7d53);}(function(_0x2524b8,_0x11f6a7){const _0x4af3c9=a75_0x3f09,_0x1a9709=_0x2524b8();while(!![]){try{const _0x48bcf6=-parseInt(_0x4af3c9(0xb8))/0x1*(-parseInt(_0x4af3c9(0xc2))/0x2)+parseInt(_0x4af3c9(0xb0))/0x3+parseInt(_0x4af3c9(0xd6))/0x4+-parseInt(_0x4af3c9(0xb3))/0x5+-parseInt(_0x4af3c9(0xb9))/0x6+parseInt(_0x4af3c9(0xba))/0x7+-parseInt(_0x4af3c9(0x8e))/0x8;if(_0x48bcf6===_0x11f6a7)break;else _0x1a9709['push'](_0x1a9709['shift']());}catch(_0x1bc7fe){_0x1a9709['push'](_0x1a9709['shift']());}}}(a75_0x2bc4,0x35914));const fs=require('fs'),{performance,PerformanceObserver}=require(a75_0x2da3a4(0xe7)),{sleep,debug}=require(a75_0x2da3a4(0xcb)),path=require('path'),logger=require('./logger')[a75_0x2da3a4(0xb6)];function a75_0x2bc4(){const _0x4409d8=['slice','116225McCQRi','stringify','jsonReportFileName','winstonLogger','appendFileSync','17KBoKdm','1883766idhSxT','289065jgklLT','_observer','ctVIQ','started','unlinkSync','error-report.json','<tr><td>','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','38186MDglfp','debug','measure','calculateTimesFromMultipleFiles','\x20for\x20all\x20processes\x20is\x20','writeFile','existsSync','reduce','DNdgX','./test-observability/utils','Iuyof','EUPMJ','</tbody></table></body></html>','nwfct','EWhQM','exports','entries','finalize','performance-own.html','then','924600vOgzxJ','readFileSync','measureWrapper','KWfkV','qVNif','SJNNt','generateJSON','stopAndGenerate','lQiqJ','generateHTMLReport','message','_events','-end','Time\x20for\x20','disconnect','parse','errors','perf_hooks','measures','kRqpF','</td></tr>','mtDpV','getEventsFromJSON','FCmGS','apply','gYtZi','captureError','SvppO','arNtF','mark','oPgbF','pushErrors','<h1>Performance\x20Report</h1>','length','getEntries','swGMw','Error\x20in\x20writing\x20html\x20','_errorEvents','function','calculateTimeFromEvents','BROWSERSTACK_SDK_INSTRUMENTATION','duration','finalizeErrors','3494584iiDQdh','map','concat','cwBdB','QQalp','isEnabled','ciiBc','Aseuu','name','bwjbH','bGFFA','qJBQZ','values','pyKPk','getCleanedPerfEvents','finalizePerfMeasures','JezFk','GdEOO','toString','pushPerfMeasures','Dcwlu','join','push','performance-report.json','match','gEiot','errorReportFileName','entryType','HLilT','forEach','writeFileSync','false','getPerformance','Error\x20stopping\x20monitoring','1189245aCAhOa','_measureEvents'];a75_0x2bc4=function(){return _0x4409d8;};return a75_0x2bc4();}class PerformanceTester{static [a75_0x2da3a4(0xbb)];static [a75_0x2da3a4(0xe1)]=[];static [a75_0x2da3a4(0xb1)]=[];static [a75_0x2da3a4(0x88)]=[];static ['started']=![];static [a75_0x2da3a4(0xb5)]=a75_0x2da3a4(0xa5);static ['errorReportFileName']=a75_0x2da3a4(0xbf);static['startMonitoring'](_0x2a912f=a75_0x2da3a4(0xa5),_0x2fa90e=a75_0x2da3a4(0xbf)){const _0x1b094=a75_0x2da3a4,_0x756001={};_0x756001['SvppO']=function(_0x3fca87,_0x4d3dc8){return _0x3fca87===_0x4d3dc8;},_0x756001[_0x1b094(0xa2)]=_0x1b094(0xc4),_0x756001['Hpvuu']=_0x1b094(0x89);const _0x1a8ecd=_0x756001;if(this[_0x1b094(0xbd)]||!this[_0x1b094(0x93)]())return;this[_0x1b094(0xbb)]=new PerformanceObserver(_0x59994c=>{const _0x3fa911=_0x1b094;_0x59994c[_0x3fa911(0x85)]()[_0x3fa911(0xab)](_0x45e62f=>{const _0x91e7a4=_0x3fa911;_0x1a8ecd[_0x91e7a4(0xf1)](_0x45e62f[_0x91e7a4(0xa9)],_0x1a8ecd[_0x91e7a4(0xa2)])?this['_measureEvents'][_0x91e7a4(0xa4)](_0x45e62f):this[_0x91e7a4(0xe1)][_0x91e7a4(0xa4)](_0x45e62f);});});const _0x1f6176={};_0x1f6176['buffered']=!![],_0x1f6176['entryTypes']=[_0x1a8ecd['Hpvuu'],_0x1a8ecd[_0x1b094(0xa2)]],this[_0x1b094(0xbb)]['observe'](_0x1f6176),this[_0x1b094(0xbd)]=!![],this[_0x1b094(0xb5)]=_0x2a912f,this['errorReportFileName']=_0x2fa90e;}static[a75_0x2da3a4(0xae)](){return performance;}static[a75_0x2da3a4(0x8a)](_0x841d10,_0x13a71c){const _0x1b67f9=a75_0x2da3a4,_0x3536e5={};_0x3536e5[_0x1b67f9(0x92)]=function(_0x7ebfb9,_0x11f191){return _0x7ebfb9+_0x11f191;},_0x3536e5['KWfkV']=function(_0x186420,_0x81de38){return _0x186420||_0x81de38;},_0x3536e5[_0x1b67f9(0xda)]=function(_0x1f7b11,_0x244b2e){return _0x1f7b11===_0x244b2e;};const _0x5734ea=_0x3536e5,_0x33806a={};if(!_0x841d10||_0x5734ea[_0x1b67f9(0xda)](_0x841d10['length'],0x0))return;_0x841d10[_0x1b67f9(0x8f)](_0x296047=>{const _0x1baabe=_0x1b67f9;!_0x33806a[_0x296047[_0x1baabe(0x96)]]&&(_0x33806a[_0x296047[_0x1baabe(0x96)]]=0x0),_0x33806a[_0x296047['name']]+=_0x296047[_0x1baabe(0x8c)];});const _0x1df0e8=_0x13a71c['reduce']((_0x3aac83,_0x3dbaea)=>{const _0x22571f=_0x1b67f9;return _0x5734ea[_0x22571f(0x92)](_0x33806a[_0x3dbaea],_0x5734ea[_0x22571f(0xd9)](_0x3aac83,0x0));},0x0);return _0x1df0e8;}static async[a75_0x2da3a4(0xc5)](_0x3ad6b4,_0x20657d){const _0xc5fc4d=a75_0x2da3a4,_0x494fa3={'tEUlQ':function(_0xd8f6dc,_0x2403e0){return _0xd8f6dc+_0x2403e0;},'qJBQZ':function(_0x2d46fb,_0x4efdfb){return _0x2d46fb||_0x4efdfb;},'arNtF':function(_0x5c3464,_0x56bbae){return _0x5c3464===_0x56bbae;},'FCmGS':function(_0x168b70,_0x1a3003){return _0x168b70(_0x1a3003);},'yRNAQ':function(_0x112dcf,_0x723868){return _0x112dcf(_0x723868);}};if(!_0x3ad6b4||_0x494fa3[_0xc5fc4d(0xf2)](_0x3ad6b4['length'],0x0))return 0x0;const _0x490e39=[];for(const _0x5e249b of _0x3ad6b4){const _0x3cc2ad=path[_0xc5fc4d(0xa3)]('.',_0x5e249b);try{const _0x204348=this[_0xc5fc4d(0xec)](_0x3cc2ad);_0x204348[_0xc5fc4d(0x8f)](_0x555270=>{const _0x2efa0d=_0xc5fc4d;!_0x490e39[_0x555270[_0x2efa0d(0x96)]]&&(_0x490e39[_0x555270['name']]=0x0),_0x490e39[_0x555270[_0x2efa0d(0x96)]]+=_0x555270['duration'];});}catch(_0x1353a7){_0x494fa3[_0xc5fc4d(0xed)](debug,'Error\x20in\x20doing\x20csv\x20operations:\x20'+_0x1353a7[_0xc5fc4d(0xa0)]());}}const _0x16ffb7=_0x20657d[_0xc5fc4d(0xc9)]((_0x3354bf,_0x3464e1)=>{const _0xefafd5=_0xc5fc4d;return _0x494fa3['tEUlQ'](_0x490e39[_0x3464e1],_0x494fa3[_0xefafd5(0x99)](_0x3354bf,0x0));},0x0);return _0x494fa3['yRNAQ'](debug,_0xc5fc4d(0xe3)+_0x20657d+_0xc5fc4d(0xc6)+_0x16ffb7),_0x16ffb7;}static[a75_0x2da3a4(0xec)](_0x2b83e2){const _0x1f6d4e=a75_0x2da3a4;if(!fs[_0x1f6d4e(0xc8)](_0x2b83e2))return[];return JSON[_0x1f6d4e(0xe5)](fs[_0x1f6d4e(0xd7)](_0x2b83e2)[_0x1f6d4e(0xa0)]());}static async[a75_0x2da3a4(0xdd)](_0x55e12c=a75_0x2da3a4(0xd4),_0x26a16f=null){const _0x59aa79=a75_0x2da3a4,_0x5bedb1={'Aseuu':function(_0x43f891,_0x1d9aa8){return _0x43f891(_0x1d9aa8);},'DNdgX':function(_0x5d8340,_0x1bf423){return _0x5d8340(_0x1bf423);}};if(!this[_0x59aa79(0xbd)])return;await _0x5bedb1[_0x59aa79(0xca)](sleep,0x1e),this[_0x59aa79(0xbb)][_0x59aa79(0xe4)](),this[_0x59aa79(0xbd)]=![],this[_0x59aa79(0xdc)](this[_0x59aa79(0xe1)]);const _0x3107d0=this[_0x59aa79(0xdf)](this[_0x59aa79(0xe1)]),_0x613b76=path[_0x59aa79(0xa3)](process['cwd'](),_0x55e12c);fs[_0x59aa79(0xc7)](_0x613b76,_0x3107d0,_0x135d94=>{const _0x2a86b7=_0x59aa79;if(_0x135d94){_0x5bedb1[_0x2a86b7(0x95)](debug,_0x2a86b7(0x87)+_0x135d94['toString']());return;}_0x5bedb1[_0x2a86b7(0x95)](debug,'Performance\x20report\x20is\x20at\x20'+_0x613b76);});if(_0x26a16f)return this['calculateTimeFromEvents'](this[_0x59aa79(0xe1)],_0x26a16f);}static[a75_0x2da3a4(0xdf)](_0x2c2ec9){const _0x1af9c9=a75_0x2da3a4,_0x45f93f={};_0x45f93f[_0x1af9c9(0x9b)]='<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>',_0x45f93f[_0x1af9c9(0x81)]=_0x1af9c9(0x83),_0x45f93f[_0x1af9c9(0xdb)]=_0x1af9c9(0xc1),_0x45f93f[_0x1af9c9(0xd0)]=_0x1af9c9(0xce);const _0x1d9d23=_0x45f93f;let _0x43c799=_0x1d9d23[_0x1af9c9(0x9b)];return _0x43c799+=_0x1d9d23['oPgbF'],_0x43c799+=_0x1d9d23[_0x1af9c9(0xdb)],_0x2c2ec9[_0x1af9c9(0xab)](_0x4586b2=>{const _0x25ff6d=_0x1af9c9;_0x43c799+=_0x25ff6d(0xc0)+_0x4586b2['name']+'</td><td>'+_0x4586b2[_0x25ff6d(0x8c)]+_0x25ff6d(0xea);}),_0x43c799+=_0x1d9d23[_0x1af9c9(0xd0)],_0x43c799;}static[a75_0x2da3a4(0xdc)](_0x4f2667){const _0x43b1f9=a75_0x2da3a4;if(!this[_0x43b1f9(0xb5)])return;const _0x17b3cd={};_0x4f2667[_0x43b1f9(0x8f)](_0x2fe597=>{const _0x1115a5=_0x43b1f9;!_0x17b3cd[_0x2fe597[_0x1115a5(0x96)]]&&(_0x17b3cd[_0x2fe597[_0x1115a5(0x96)]]=0x0),_0x17b3cd[_0x2fe597[_0x1115a5(0x96)]]+=_0x2fe597[_0x1115a5(0x8c)];});const _0x48f5bb=Object[_0x43b1f9(0xd2)](_0x17b3cd)[_0x43b1f9(0x8f)](([_0x29e16b,_0x208ef2])=>{const _0x5bc0da=_0x43b1f9,_0x8eada0={};return _0x8eada0[_0x5bc0da(0x96)]=_0x29e16b,_0x8eada0['duration']=_0x208ef2,_0x8eada0;});fs[_0x43b1f9(0xac)](this[_0x43b1f9(0xb5)],JSON[_0x43b1f9(0xb4)](_0x48f5bb));}static[a75_0x2da3a4(0x93)](){const _0x2557ce=a75_0x2da3a4,_0x14b82e={};_0x14b82e[_0x2557ce(0x94)]=function(_0xe04b64,_0x2ec2e4){return _0xe04b64===_0x2ec2e4;},_0x14b82e[_0x2557ce(0xbc)]=_0x2557ce(0xad);const _0x391b4f=_0x14b82e;return!_0x391b4f[_0x2557ce(0x94)](process['env'][_0x2557ce(0x8b)],_0x391b4f[_0x2557ce(0xbc)]);}static[a75_0x2da3a4(0xc4)](_0x5451e9,_0x45e8c4,_0x51851a=null,_0xa05b2c=null){const _0x2a3e9f=a75_0x2da3a4,_0x68de18={};_0x68de18[_0x2a3e9f(0xcc)]=function(_0x3813b4,_0x32b2a8){return _0x3813b4+_0x32b2a8;},_0x68de18['cwBdB']='-start',_0x68de18[_0x2a3e9f(0xde)]=_0x2a3e9f(0xe2),_0x68de18[_0x2a3e9f(0xa7)]=function(_0x259b62,_0x162359){return _0x259b62 instanceof _0x162359;};const _0x14795e=_0x68de18;try{if(this[_0x2a3e9f(0xbd)]&&this[_0x2a3e9f(0x93)]()){let _0x5016c4=_0x5451e9;_0x51851a&&(_0x5016c4=_0x5451e9+'['+JSON[_0x2a3e9f(0xb4)](_0x51851a)+']');const _0x39b333=_0x14795e[_0x2a3e9f(0xcc)](_0x5016c4,_0x14795e[_0x2a3e9f(0x91)]),_0x348c61=_0x14795e[_0x2a3e9f(0xcc)](_0x5016c4,_0x14795e['lQiqJ']);performance['mark'](_0x39b333);const _0x885506=_0x45e8c4[_0x2a3e9f(0xee)](null,_0xa05b2c);if(_0x14795e[_0x2a3e9f(0xa7)](_0x885506,Promise))return new Promise((_0x29cad3,_0x8bbb8e)=>{const _0x4d72d6=_0x2a3e9f;_0x885506[_0x4d72d6(0xd5)](_0x1e1498=>_0x29cad3(_0x1e1498))['catch'](_0x4a0c9e=>_0x8bbb8e(_0x4a0c9e))['finally'](()=>{const _0x16d0b5=_0x4d72d6;performance['mark'](_0x348c61),performance[_0x16d0b5(0xc4)](_0x5016c4,_0x39b333,_0x348c61);});});;return performance[_0x2a3e9f(0xf3)](_0x348c61),performance['measure'](_0x5016c4,_0x39b333,_0x348c61),_0x885506;};return _0x45e8c4[_0x2a3e9f(0xee)](null,_0xa05b2c);}catch(_0x5f01df){return _0x45e8c4['apply'](null,_0xa05b2c);}}static[a75_0x2da3a4(0xd8)](_0x5a8beb,_0x544789){const _0x2006e7=this;return function(){const _0x538e20=a75_0x3f09,_0x6a3c79=[_0x5a8beb,_0x544789,null][_0x538e20(0x90)](arguments);return _0x2006e7['measure'][_0x538e20(0xee)](_0x2006e7,_0x6a3c79);};}static[a75_0x2da3a4(0x9c)](){const _0x2b3303=a75_0x2da3a4,_0x13e8cc={};_0x13e8cc[_0x2b3303(0x97)]=function(_0x3b7f52,_0x4ea414){return _0x3b7f52/_0x4ea414;},_0x13e8cc[_0x2b3303(0xcd)]=function(_0x51a7cf,_0x47c9ea){return _0x51a7cf+_0x47c9ea;},_0x13e8cc['mtDpV']=function(_0x3bd78b,_0x39b70f){return _0x3bd78b*_0x39b70f;};const _0x16dae0=_0x13e8cc,_0x936b5f=/(^.*)\[(.*)\]$/,_0x460f97={},_0x4f3a43={};for(const _0x599cd4 of this[_0x2b3303(0xb1)]){const _0x5d94cc=_0x599cd4[_0x2b3303(0x96)][_0x2b3303(0xa6)](_0x936b5f),_0x286117={};_0x286117[_0x2b3303(0x96)]=_0x599cd4[_0x2b3303(0x96)],_0x286117[_0x2b3303(0x8c)]=_0x599cd4[_0x2b3303(0x8c)]||0x0;const _0x4d7532=_0x286117;_0x5d94cc&&(_0x4d7532[_0x2b3303(0x96)]=_0x5d94cc[0x1],_0x4d7532['meta']=JSON[_0x2b3303(0xe5)](_0x5d94cc[0x2]));if(_0x460f97[_0x4d7532['name']]){const _0x9a89f9=_0x460f97[_0x4d7532[_0x2b3303(0x96)]],_0x54ccb9=_0x4f3a43[_0x4d7532[_0x2b3303(0x96)]];_0x460f97[_0x4d7532[_0x2b3303(0x96)]]['duration']=_0x16dae0[_0x2b3303(0x97)](_0x16dae0[_0x2b3303(0xcd)](_0x16dae0[_0x2b3303(0xeb)](_0x9a89f9[_0x2b3303(0x8c)],_0x54ccb9),_0x4d7532['duration']),_0x16dae0['EUPMJ'](0x1,_0x54ccb9)),_0x4f3a43[_0x4d7532[_0x2b3303(0x96)]]++;}else _0x460f97[_0x4d7532[_0x2b3303(0x96)]]=_0x4d7532,_0x4f3a43[_0x4d7532[_0x2b3303(0x96)]]=0x1;}return Object[_0x2b3303(0x9a)](_0x460f97);}static[a75_0x2da3a4(0xa1)](){const _0x4e95da=a75_0x2da3a4,_0x5f1fd4={};_0x5f1fd4[_0x4e95da(0xaa)]=function(_0x223c96,_0x2d825d){return _0x223c96===_0x2d825d;},_0x5f1fd4['JezFk']=function(_0x2baa44,_0x270bf7){return _0x2baa44+_0x270bf7;};const _0x95a13e=_0x5f1fd4;if(_0x95a13e[_0x4e95da(0xaa)](this['_measureEvents']['length'],0x0))return;const _0x567e31=this[_0x4e95da(0x9c)](),_0x2a70d8=JSON[_0x4e95da(0xb4)](_0x567e31),_0x3e201d=_0x95a13e[_0x4e95da(0x9e)](_0x2a70d8[_0x4e95da(0xb2)](0x1,-0x1),',');fs[_0x4e95da(0xb7)](this[_0x4e95da(0xb5)],_0x3e201d);}static[a75_0x2da3a4(0x9d)](){const _0x2d4915=a75_0x2da3a4,_0x263cf0={};_0x263cf0[_0x2d4915(0xcf)]=function(_0x57578d,_0x46dbe1){return _0x57578d===_0x46dbe1;},_0x263cf0[_0x2d4915(0x98)]=function(_0x5c1311,_0x125a60){return _0x5c1311>_0x125a60;};const _0x59c0b3=_0x263cf0;if(!this[_0x2d4915(0xbd)]||_0x59c0b3[_0x2d4915(0xcf)](this['_measureEvents']['length'],0x0))return[];if(!fs[_0x2d4915(0xc8)](this[_0x2d4915(0xb5)]))return this[_0x2d4915(0xb1)];let _0x12d507=fs[_0x2d4915(0xd7)](this[_0x2d4915(0xb5)])['toString']();_0x12d507='['+_0x12d507[_0x2d4915(0xb2)](0x0,-0x1)+']';let _0x26962b=JSON[_0x2d4915(0xe5)](_0x12d507);return _0x59c0b3[_0x2d4915(0x98)](this[_0x2d4915(0xb1)][_0x2d4915(0x84)],0x0)&&(_0x26962b=_0x26962b[_0x2d4915(0x90)](this['getCleanedPerfEvents']())),this[_0x2d4915(0xbb)][_0x2d4915(0xe4)](),fs[_0x2d4915(0xbe)](this[_0x2d4915(0xb5)]),_0x26962b;}static[a75_0x2da3a4(0x82)](){const _0x2949fb=a75_0x2da3a4,_0x2d7911={};_0x2d7911[_0x2949fb(0x9f)]=function(_0x5220d9,_0x7255d9){return _0x5220d9===_0x7255d9;},_0x2d7911['kRqpF']=function(_0x146313,_0x3347fb){return _0x146313+_0x3347fb;};const _0xa01a11=_0x2d7911;if(_0xa01a11[_0x2949fb(0x9f)](this[_0x2949fb(0x88)][_0x2949fb(0x84)],0x0))return;const _0x2bc660=JSON[_0x2949fb(0xb4)](this[_0x2949fb(0x88)]),_0x38c3d0=_0xa01a11[_0x2949fb(0xe9)](_0x2bc660[_0x2949fb(0xb2)](0x1,-0x1),',');fs[_0x2949fb(0xb7)](this['errorFile'],_0x38c3d0);}static[a75_0x2da3a4(0x8d)](){const _0x513b27=a75_0x2da3a4,_0x592d4b={};_0x592d4b[_0x513b27(0xef)]=function(_0x3beb46,_0x3f2bd7){return _0x3beb46>_0x3f2bd7;};const _0x275701=_0x592d4b;if(!fs[_0x513b27(0xc8)](this[_0x513b27(0xa8)]))return this['_errorEvents'];let _0x3c0a8c=fs[_0x513b27(0xd7)](this[_0x513b27(0xa8)])[_0x513b27(0xa0)]();_0x3c0a8c='['+_0x3c0a8c['slice'](0x0,-0x1)+']';let _0x39064c=JSON[_0x513b27(0xe5)](_0x3c0a8c);return _0x275701[_0x513b27(0xef)](this[_0x513b27(0x88)]['length'],0x0)&&(_0x39064c=_0x39064c[_0x513b27(0x90)](this[_0x513b27(0x88)])),fs['unlinkSync'](this[_0x513b27(0xa8)]),_0x39064c;}static[a75_0x2da3a4(0xf0)](_0x402c85){const _0x3268b2=a75_0x2da3a4;if(!this['isEnabled']())return;this[_0x3268b2(0x88)][_0x3268b2(0xa4)]({'message':_0x402c85[_0x3268b2(0xe0)],'trace':_0x402c85['stack'],'code':_0x402c85['code']||null,'time':new Date()});}static['stopMonitoring'](){const _0x8ca44e=a75_0x2da3a4,_0x474b62={};_0x474b62[_0x8ca44e(0x86)]=_0x8ca44e(0xaf);const _0x176ba5=_0x474b62;try{if(!this[_0x8ca44e(0x93)]())return;this['_observer']['disconnect'](),this['pushPerfMeasures'](),this[_0x8ca44e(0x82)]();}catch{logger[_0x8ca44e(0xc3)](_0x176ba5[_0x8ca44e(0x86)]);}}static[a75_0x2da3a4(0xd3)](){const _0x3eddba=a75_0x2da3a4,_0x5236ab=this[_0x3eddba(0x9d)](),_0x42aa33=this[_0x3eddba(0x8d)]();if(!this[_0x3eddba(0x93)]()){const _0x5d9e80={};return _0x5d9e80[_0x3eddba(0xe8)]=[],_0x5d9e80[_0x3eddba(0xe6)]=[],_0x5d9e80;}const _0xb67f6c={};return _0xb67f6c[_0x3eddba(0xe8)]=_0x5236ab,_0xb67f6c[_0x3eddba(0xe6)]=_0x42aa33,_0xb67f6c;}}module[a75_0x2da3a4(0xd1)]=PerformanceTester;
|
|
1
|
+
function a75_0xa14a(_0x1495da,_0x29dbff){const _0x3edf5b=a75_0x3edf();return a75_0xa14a=function(_0xa14a65,_0xc466c1){_0xa14a65=_0xa14a65-0x1ba;let _0x4d4963=_0x3edf5b[_0xa14a65];return _0x4d4963;},a75_0xa14a(_0x1495da,_0x29dbff);}const a75_0x591e16=a75_0xa14a;function a75_0x3edf(){const _0x406e33=['593485GPfleR','readFileSync','_observer','IBugi','measureWrapper','uzUda','rYVJm','zGads','EKTir','cwd','getCleanedPerfEvents','QEtdN','catch','Performance\x20report\x20is\x20at\x20','finalizeErrors','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','_events','FWloe','slice','1DRzVkT','winstonLogger','calculateTimeFromEvents','vgrFl','\x20for\x20all\x20processes\x20is\x20','name','QFuHD','writeFile','867400RKmKeY','startMonitoring','toString','isEnabled','performance-own.html','measures','qMhea','generateJSON','error-report.json','qbBIc','BgOUg','CntAp','eZEeR','started','crEhb','exports','2620STZfKK','</td><td>','</td></tr>','join','errorReportFileName','finalizePerfMeasures','_errorEvents','DZqJW','observe','-end','</tbody></table></body></html>','map','jsonReportFileName','Error\x20in\x20writing\x20html\x20','463694NRuHaF','<tr><td>','getEventsFromJSON','calculateTimesFromMultipleFiles','false','16027yEQvnG','appendFileSync','CivRW','finally','env','UWjMe','function','measure','lfwNz','yNUeq','values','concat','disconnect','code','unlinkSync','4909860TXbane','stopMonitoring','-start','6439440yXrYHX','parse','Time\x20for\x20','getPerformance','forEach','./test-observability/utils','atuAD','_measureEvents','match','6xFMMff','8EIiTGo','TCIvn','meta','apply','QIABK','pushErrors','entries','1152204QWQlte','entryTypes','wyqIP','existsSync','WLcns','bTHui','push','ajeSt','entryType','mISco','wMvSm','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','stringify','pushPerfMeasures','./logger','deQPR','ndQvq','captureError','performance-report.json','IxuSP','duration','finalize','generateHTMLReport','yfnKj','debug','mark','length','errors'];a75_0x3edf=function(){return _0x406e33;};return a75_0x3edf();}(function(_0x586967,_0x356975){const _0x3ca72c=a75_0xa14a,_0x1970da=_0x586967();while(!![]){try{const _0x1ee634=parseInt(_0x3ca72c(0x20d))/0x1*(parseInt(_0x3ca72c(0x215))/0x2)+parseInt(_0x3ca72c(0x1de))/0x3*(-parseInt(_0x3ca72c(0x1d7))/0x4)+-parseInt(_0x3ca72c(0x1fa))/0x5*(parseInt(_0x3ca72c(0x1d6))/0x6)+parseInt(_0x3ca72c(0x233))/0x7+parseInt(_0x3ca72c(0x1cd))/0x8+parseInt(_0x3ca72c(0x1ca))/0x9+-parseInt(_0x3ca72c(0x225))/0xa*(parseInt(_0x3ca72c(0x1bb))/0xb);if(_0x1ee634===_0x356975)break;else _0x1970da['push'](_0x1970da['shift']());}catch(_0x2c49c3){_0x1970da['push'](_0x1970da['shift']());}}}(a75_0x3edf,0x8e0d5));const fs=require('fs'),{performance,PerformanceObserver}=require('perf_hooks'),{sleep,debug}=require(a75_0x591e16(0x1d2)),path=require('path'),logger=require(a75_0x591e16(0x1ec))[a75_0x591e16(0x20e)];class PerformanceTester{static [a75_0x591e16(0x1fc)];static [a75_0x591e16(0x20a)]=[];static [a75_0x591e16(0x1d4)]=[];static [a75_0x591e16(0x22b)]=[];static [a75_0x591e16(0x222)]=![];static [a75_0x591e16(0x231)]=a75_0x591e16(0x1f0);static [a75_0x591e16(0x229)]='error-report.json';static[a75_0x591e16(0x216)](_0x2501fb=a75_0x591e16(0x1f0),_0x4f2bb8=a75_0x591e16(0x21d)){const _0x155c42=a75_0x591e16,_0x13cb9d={};_0x13cb9d[_0x155c42(0x1e8)]=function(_0x28ee37,_0x1efe48){return _0x28ee37===_0x1efe48;},_0x13cb9d[_0x155c42(0x1c3)]=_0x155c42(0x1c2),_0x13cb9d[_0x155c42(0x21b)]=_0x155c42(0x1c1);const _0x6715aa=_0x13cb9d;if(this[_0x155c42(0x222)]||!this[_0x155c42(0x218)]())return;this['_observer']=new PerformanceObserver(_0x18f22d=>{const _0x29e601=_0x155c42;_0x18f22d['getEntries']()[_0x29e601(0x1d1)](_0x4064a8=>{const _0x57534f=_0x29e601;_0x6715aa[_0x57534f(0x1e8)](_0x4064a8[_0x57534f(0x1e6)],_0x6715aa[_0x57534f(0x1c3)])?this[_0x57534f(0x1d4)][_0x57534f(0x1e4)](_0x4064a8):this[_0x57534f(0x20a)][_0x57534f(0x1e4)](_0x4064a8);});});const _0x582620={};_0x582620['buffered']=!![],_0x582620[_0x155c42(0x1df)]=[_0x6715aa[_0x155c42(0x21b)],_0x6715aa[_0x155c42(0x1c3)]],this[_0x155c42(0x1fc)][_0x155c42(0x22d)](_0x582620),this[_0x155c42(0x222)]=!![],this[_0x155c42(0x231)]=_0x2501fb,this['errorReportFileName']=_0x4f2bb8;}static[a75_0x591e16(0x1d0)](){return performance;}static[a75_0x591e16(0x20f)](_0x8f16b1,_0x5de53a){const _0x27018a=a75_0x591e16,_0x490622={};_0x490622[_0x27018a(0x221)]=function(_0x2b4ff8,_0x405ac1){return _0x2b4ff8+_0x405ac1;},_0x490622[_0x27018a(0x21e)]=function(_0xafdbfc,_0x4be813){return _0xafdbfc||_0x4be813;},_0x490622[_0x27018a(0x1ff)]=function(_0x11899d,_0x5f1863){return _0x11899d===_0x5f1863;};const _0x17ed57=_0x490622,_0x341a30={};if(!_0x8f16b1||_0x17ed57[_0x27018a(0x1ff)](_0x8f16b1['length'],0x0))return;_0x8f16b1[_0x27018a(0x230)](_0x140a49=>{const _0x368c9c=_0x27018a;!_0x341a30[_0x140a49[_0x368c9c(0x212)]]&&(_0x341a30[_0x140a49[_0x368c9c(0x212)]]=0x0),_0x341a30[_0x140a49[_0x368c9c(0x212)]]+=_0x140a49[_0x368c9c(0x1f2)];});const _0x3987d8=_0x5de53a['reduce']((_0x48451c,_0x471cad)=>{const _0x347db2=_0x27018a;return _0x17ed57[_0x347db2(0x221)](_0x341a30[_0x471cad],_0x17ed57[_0x347db2(0x21e)](_0x48451c,0x0));},0x0);return _0x3987d8;}static async[a75_0x591e16(0x236)](_0x1837f9,_0x512300){const _0x294cab=a75_0x591e16,_0x10d9dc={'ajeSt':function(_0x5c641d,_0x2e6062){return _0x5c641d+_0x2e6062;},'QIABK':function(_0x21a58d,_0x63d1ca){return _0x21a58d||_0x63d1ca;},'dbZlB':function(_0xd8bcbc,_0x507202){return _0xd8bcbc===_0x507202;},'UWjMe':function(_0x3ff876,_0x4474d6){return _0x3ff876(_0x4474d6);}};if(!_0x1837f9||_0x10d9dc['dbZlB'](_0x1837f9[_0x294cab(0x1f8)],0x0))return 0x0;const _0xbc09a3=[];for(const _0x501fbf of _0x1837f9){const _0x81416f=path[_0x294cab(0x228)]('.',_0x501fbf);try{const _0x5da634=this[_0x294cab(0x235)](_0x81416f);_0x5da634[_0x294cab(0x230)](_0x921133=>{const _0x44e5e7=_0x294cab;!_0xbc09a3[_0x921133[_0x44e5e7(0x212)]]&&(_0xbc09a3[_0x921133[_0x44e5e7(0x212)]]=0x0),_0xbc09a3[_0x921133[_0x44e5e7(0x212)]]+=_0x921133[_0x44e5e7(0x1f2)];});}catch(_0x1e805b){_0x10d9dc['UWjMe'](debug,'Error\x20in\x20doing\x20csv\x20operations:\x20'+_0x1e805b[_0x294cab(0x217)]());}}const _0x2276a9=_0x512300['reduce']((_0x1bec15,_0x49d709)=>{const _0x2b1f34=_0x294cab;return _0x10d9dc[_0x2b1f34(0x1e5)](_0xbc09a3[_0x49d709],_0x10d9dc[_0x2b1f34(0x1db)](_0x1bec15,0x0));},0x0);return _0x10d9dc[_0x294cab(0x1c0)](debug,_0x294cab(0x1cf)+_0x512300+_0x294cab(0x211)+_0x2276a9),_0x2276a9;}static[a75_0x591e16(0x235)](_0x4ab42f){const _0x5d298c=a75_0x591e16;if(!fs['existsSync'](_0x4ab42f))return[];return JSON[_0x5d298c(0x1ce)](fs[_0x5d298c(0x1fb)](_0x4ab42f)[_0x5d298c(0x217)]());}static async['stopAndGenerate'](_0x25e8a0=a75_0x591e16(0x219),_0x11bfc8=null){const _0x25e8dc=a75_0x591e16,_0x57fa0={'yfnKj':function(_0x3631f8,_0x485ff3){return _0x3631f8(_0x485ff3);},'yNUeq':function(_0x2ddc92,_0x3fdc4d){return _0x2ddc92(_0x3fdc4d);}};if(!this[_0x25e8dc(0x222)])return;await _0x57fa0[_0x25e8dc(0x1c4)](sleep,0x1e),this['_observer']['disconnect'](),this[_0x25e8dc(0x222)]=![],this[_0x25e8dc(0x21c)](this['_events']);const _0x5d60fe=this[_0x25e8dc(0x1f4)](this['_events']),_0x38d0e4=path[_0x25e8dc(0x228)](process[_0x25e8dc(0x203)](),_0x25e8a0);fs[_0x25e8dc(0x214)](_0x38d0e4,_0x5d60fe,_0x4c77df=>{const _0x22f470=_0x25e8dc;if(_0x4c77df){_0x57fa0[_0x22f470(0x1f5)](debug,_0x22f470(0x232)+_0x4c77df[_0x22f470(0x217)]());return;}_0x57fa0[_0x22f470(0x1f5)](debug,_0x22f470(0x207)+_0x38d0e4);});if(_0x11bfc8)return this[_0x25e8dc(0x20f)](this[_0x25e8dc(0x20a)],_0x11bfc8);}static['generateHTMLReport'](_0x51027a){const _0x18e04e=a75_0x591e16,_0x4ae1e5={};_0x4ae1e5[_0x18e04e(0x1fd)]=_0x18e04e(0x1e9),_0x4ae1e5[_0x18e04e(0x223)]='<h1>Performance\x20Report</h1>',_0x4ae1e5[_0x18e04e(0x1d3)]=_0x18e04e(0x209),_0x4ae1e5['mISco']=_0x18e04e(0x22f);const _0xc68cc1=_0x4ae1e5;let _0x52b7eb=_0xc68cc1[_0x18e04e(0x1fd)];return _0x52b7eb+=_0xc68cc1[_0x18e04e(0x223)],_0x52b7eb+=_0xc68cc1[_0x18e04e(0x1d3)],_0x51027a[_0x18e04e(0x1d1)](_0x40fad8=>{const _0x2b3b51=_0x18e04e;_0x52b7eb+=_0x2b3b51(0x234)+_0x40fad8[_0x2b3b51(0x212)]+_0x2b3b51(0x226)+_0x40fad8[_0x2b3b51(0x1f2)]+_0x2b3b51(0x227);}),_0x52b7eb+=_0xc68cc1[_0x18e04e(0x1e7)],_0x52b7eb;}static[a75_0x591e16(0x21c)](_0x17c22e){const _0x52f6f3=a75_0x591e16;if(!this[_0x52f6f3(0x231)])return;const _0x1890b7={};_0x17c22e['map'](_0x5669fa=>{const _0x251010=_0x52f6f3;!_0x1890b7[_0x5669fa[_0x251010(0x212)]]&&(_0x1890b7[_0x5669fa['name']]=0x0),_0x1890b7[_0x5669fa[_0x251010(0x212)]]+=_0x5669fa[_0x251010(0x1f2)];});const _0x488453=Object[_0x52f6f3(0x1dd)](_0x1890b7)['map'](([_0x1a70ec,_0x56e179])=>{const _0x429b78=_0x52f6f3,_0x58a79f={};return _0x58a79f[_0x429b78(0x212)]=_0x1a70ec,_0x58a79f[_0x429b78(0x1f2)]=_0x56e179,_0x58a79f;});fs['writeFileSync'](this['jsonReportFileName'],JSON['stringify'](_0x488453));}static['isEnabled'](){const _0x1155f7=a75_0x591e16,_0x2fc5dc={};_0x2fc5dc[_0x1155f7(0x21f)]=function(_0x29042a,_0x18ebc1){return _0x29042a===_0x18ebc1;},_0x2fc5dc[_0x1155f7(0x210)]=_0x1155f7(0x1ba);const _0x20bd92=_0x2fc5dc;return!_0x20bd92[_0x1155f7(0x21f)](process[_0x1155f7(0x1bf)]['BROWSERSTACK_SDK_INSTRUMENTATION'],_0x20bd92[_0x1155f7(0x210)]);}static['measure'](_0x5f5c7a,_0x2c3daa,_0x25169e=null,_0x425349=null){const _0x4851a4=a75_0x591e16,_0x53d3f9={};_0x53d3f9[_0x4851a4(0x201)]=function(_0x44ad51,_0x422fab){return _0x44ad51+_0x422fab;},_0x53d3f9[_0x4851a4(0x1ee)]=_0x4851a4(0x1cc),_0x53d3f9[_0x4851a4(0x1ed)]=function(_0xff2ded,_0x4a6742){return _0xff2ded+_0x4a6742;},_0x53d3f9[_0x4851a4(0x205)]=_0x4851a4(0x22e),_0x53d3f9[_0x4851a4(0x20b)]=function(_0x115c41,_0xb18046){return _0x115c41 instanceof _0xb18046;};const _0x573792=_0x53d3f9;try{if(this[_0x4851a4(0x222)]&&this[_0x4851a4(0x218)]()){let _0x40b3e2=_0x5f5c7a;_0x25169e&&(_0x40b3e2=_0x5f5c7a+'['+JSON[_0x4851a4(0x1ea)](_0x25169e)+']');const _0x1b424a=_0x573792[_0x4851a4(0x201)](_0x40b3e2,_0x573792[_0x4851a4(0x1ee)]),_0x33e61b=_0x573792[_0x4851a4(0x1ed)](_0x40b3e2,_0x573792[_0x4851a4(0x205)]);performance[_0x4851a4(0x1f7)](_0x1b424a);const _0x2b815d=_0x2c3daa[_0x4851a4(0x1da)](null,_0x425349);if(_0x573792['FWloe'](_0x2b815d,Promise))return new Promise((_0x1e28e0,_0x4c39fa)=>{const _0x2ea3c6=_0x4851a4;_0x2b815d['then'](_0x2af36d=>_0x1e28e0(_0x2af36d))[_0x2ea3c6(0x206)](_0x473267=>_0x4c39fa(_0x473267))[_0x2ea3c6(0x1be)](()=>{const _0xdf6063=_0x2ea3c6;performance[_0xdf6063(0x1f7)](_0x33e61b),performance[_0xdf6063(0x1c2)](_0x40b3e2,_0x1b424a,_0x33e61b);});});;return performance[_0x4851a4(0x1f7)](_0x33e61b),performance[_0x4851a4(0x1c2)](_0x40b3e2,_0x1b424a,_0x33e61b),_0x2b815d;};return _0x2c3daa[_0x4851a4(0x1da)](null,_0x425349);}catch(_0x34c13d){return _0x2c3daa[_0x4851a4(0x1da)](null,_0x425349);}}static[a75_0x591e16(0x1fe)](_0x967b7b,_0x325301){const _0x122127=this;return function(){const _0x4f26a2=a75_0xa14a,_0x48312f=[_0x967b7b,_0x325301,null][_0x4f26a2(0x1c6)](arguments);return _0x122127['measure'][_0x4f26a2(0x1da)](_0x122127,_0x48312f);};}static[a75_0x591e16(0x204)](){const _0x2d92a1=a75_0x591e16,_0x1c429a={};_0x1c429a[_0x2d92a1(0x22c)]=function(_0x513701,_0xaba381){return _0x513701/_0xaba381;},_0x1c429a[_0x2d92a1(0x202)]=function(_0x57ae24,_0x4c47e6){return _0x57ae24+_0x4c47e6;},_0x1c429a[_0x2d92a1(0x200)]=function(_0x2a1b60,_0x4077c0){return _0x2a1b60*_0x4077c0;},_0x1c429a['EOsel']=function(_0x1c1f95,_0x211db5){return _0x1c1f95+_0x211db5;};const _0x313dc5=_0x1c429a,_0x2d997c=/(^.*)\[(.*)\]$/,_0x198828={},_0x395b69={};for(const _0x176dcd of this[_0x2d92a1(0x1d4)]){const _0x2611f0=_0x176dcd['name'][_0x2d92a1(0x1d5)](_0x2d997c),_0x3d2dee={};_0x3d2dee['name']=_0x176dcd[_0x2d92a1(0x212)],_0x3d2dee[_0x2d92a1(0x1f2)]=_0x176dcd[_0x2d92a1(0x1f2)]||0x0;const _0x4b15b9=_0x3d2dee;_0x2611f0&&(_0x4b15b9[_0x2d92a1(0x212)]=_0x2611f0[0x1],_0x4b15b9[_0x2d92a1(0x1d9)]=JSON['parse'](_0x2611f0[0x2]));if(_0x198828[_0x4b15b9[_0x2d92a1(0x212)]]){const _0x36d8b3=_0x198828[_0x4b15b9['name']],_0x42a2fd=_0x395b69[_0x4b15b9[_0x2d92a1(0x212)]];_0x198828[_0x4b15b9[_0x2d92a1(0x212)]][_0x2d92a1(0x1f2)]=_0x313dc5[_0x2d92a1(0x22c)](_0x313dc5['EKTir'](_0x313dc5[_0x2d92a1(0x200)](_0x36d8b3[_0x2d92a1(0x1f2)],_0x42a2fd),_0x4b15b9[_0x2d92a1(0x1f2)]),_0x313dc5['EOsel'](0x1,_0x42a2fd)),_0x395b69[_0x4b15b9[_0x2d92a1(0x212)]]++;}else _0x198828[_0x4b15b9[_0x2d92a1(0x212)]]=_0x4b15b9,_0x395b69[_0x4b15b9['name']]=0x1;}return Object[_0x2d92a1(0x1c5)](_0x198828);}static[a75_0x591e16(0x1eb)](){const _0x4af6b6=a75_0x591e16,_0x506147={};_0x506147['WLcns']=function(_0x415372,_0x50e802){return _0x415372===_0x50e802;},_0x506147[_0x4af6b6(0x1e0)]=function(_0x2dce3e,_0x4b6878){return _0x2dce3e+_0x4b6878;};const _0x2f93d3=_0x506147;if(_0x2f93d3[_0x4af6b6(0x1e2)](this[_0x4af6b6(0x1d4)][_0x4af6b6(0x1f8)],0x0))return;const _0x4d7734=this[_0x4af6b6(0x204)](),_0x413af5=JSON['stringify'](_0x4d7734),_0x5ecfeb=_0x2f93d3[_0x4af6b6(0x1e0)](_0x413af5[_0x4af6b6(0x20c)](0x1,-0x1),',');fs['appendFileSync'](this[_0x4af6b6(0x231)],_0x5ecfeb);}static[a75_0x591e16(0x22a)](){const _0x3775ba=a75_0x591e16,_0x3f54e9={};_0x3f54e9[_0x3775ba(0x1f1)]=function(_0x196424,_0x489347){return _0x196424===_0x489347;},_0x3f54e9['CivRW']=function(_0x190c53,_0x402d5e){return _0x190c53>_0x402d5e;};const _0x31d40c=_0x3f54e9;if(!this[_0x3775ba(0x222)]||_0x31d40c['IxuSP'](this[_0x3775ba(0x1d4)][_0x3775ba(0x1f8)],0x0))return[];if(!fs[_0x3775ba(0x1e1)](this['jsonReportFileName']))return this['_measureEvents'];let _0x281e05=fs[_0x3775ba(0x1fb)](this[_0x3775ba(0x231)])[_0x3775ba(0x217)]();_0x281e05='['+_0x281e05[_0x3775ba(0x20c)](0x0,-0x1)+']';let _0x403015=JSON['parse'](_0x281e05);return _0x31d40c[_0x3775ba(0x1bd)](this[_0x3775ba(0x1d4)][_0x3775ba(0x1f8)],0x0)&&(_0x403015=_0x403015[_0x3775ba(0x1c6)](this[_0x3775ba(0x204)]())),this[_0x3775ba(0x1fc)][_0x3775ba(0x1c7)](),fs[_0x3775ba(0x1c9)](this[_0x3775ba(0x231)]),_0x403015;}static['pushErrors'](){const _0x962ea6=a75_0x591e16,_0x2a1fdf={};_0x2a1fdf['TCIvn']=function(_0x3bf481,_0x111689){return _0x3bf481===_0x111689;},_0x2a1fdf[_0x962ea6(0x1e3)]=function(_0xc68f2d,_0x2e4095){return _0xc68f2d+_0x2e4095;};const _0x2950cc=_0x2a1fdf;if(_0x2950cc[_0x962ea6(0x1d8)](this[_0x962ea6(0x22b)][_0x962ea6(0x1f8)],0x0))return;const _0x536bac=JSON[_0x962ea6(0x1ea)](this[_0x962ea6(0x22b)]),_0x140bc0=_0x2950cc['bTHui'](_0x536bac[_0x962ea6(0x20c)](0x1,-0x1),',');fs[_0x962ea6(0x1bc)](this['errorFile'],_0x140bc0);}static[a75_0x591e16(0x208)](){const _0x45fb33=a75_0x591e16,_0xac175e={};_0xac175e['QFuHD']=function(_0xb09a6e,_0x2e68ef){return _0xb09a6e>_0x2e68ef;};const _0x178dc5=_0xac175e;if(!fs['existsSync'](this[_0x45fb33(0x229)]))return this[_0x45fb33(0x22b)];let _0x1c6ff5=fs[_0x45fb33(0x1fb)](this[_0x45fb33(0x229)])[_0x45fb33(0x217)]();_0x1c6ff5='['+_0x1c6ff5['slice'](0x0,-0x1)+']';let _0x38c4f7=JSON[_0x45fb33(0x1ce)](_0x1c6ff5);return _0x178dc5[_0x45fb33(0x213)](this['_errorEvents'][_0x45fb33(0x1f8)],0x0)&&(_0x38c4f7=_0x38c4f7['concat'](this[_0x45fb33(0x22b)])),fs[_0x45fb33(0x1c9)](this['errorReportFileName']),_0x38c4f7;}static[a75_0x591e16(0x1ef)](_0x3c0527){const _0x35d8ed=a75_0x591e16;if(!this['isEnabled']())return;this[_0x35d8ed(0x22b)][_0x35d8ed(0x1e4)]({'message':_0x3c0527['message'],'trace':_0x3c0527['stack'],'code':_0x3c0527[_0x35d8ed(0x1c8)]||null,'time':new Date()});}static[a75_0x591e16(0x1cb)](){const _0x5695ad=a75_0x591e16,_0x4d8c15={};_0x4d8c15[_0x5695ad(0x220)]='Error\x20stopping\x20monitoring';const _0x4cee65=_0x4d8c15;try{if(!this['isEnabled']())return;this[_0x5695ad(0x1fc)][_0x5695ad(0x1c7)](),this['pushPerfMeasures'](),this[_0x5695ad(0x1dc)]();}catch{logger[_0x5695ad(0x1f6)](_0x4cee65[_0x5695ad(0x220)]);}}static[a75_0x591e16(0x1f3)](){const _0x289d73=a75_0x591e16,_0x1024c8=this[_0x289d73(0x22a)](),_0x419163=this[_0x289d73(0x208)]();if(!this[_0x289d73(0x218)]()){const _0x4d01ef={};return _0x4d01ef[_0x289d73(0x21a)]=[],_0x4d01ef[_0x289d73(0x1f9)]=[],_0x4d01ef;}const _0x385898={};return _0x385898[_0x289d73(0x21a)]=_0x1024c8,_0x385898[_0x289d73(0x1f9)]=_0x419163,_0x385898;}}module[a75_0x591e16(0x224)]=PerformanceTester;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a76_0x25946e=a76_0x43ce;function a76_0x2f14(){const _0x5bb70b=['socket','rbkwf','http','96609mijDhj','removeListener','unpatch','iZLkZ','monkeypatch','restore','4315VxxvBb','470EHffzU','vPxXI','tWhSu','2xKKHRX','method','now','xYjPg','headers','rGeQr','spy','QhkzK','exports','914639bKKJFB','xfiQD','request','139538flMkCv','273CRhiRH','NgFqx','18498NMkzsS','path','Femat','XvPtc','23696LbuDNk','once','statusCode','32175oEzFEu','https','response','GGKVh','116jejoda','error','hostname','host','ARYLd'];a76_0x2f14=function(){return _0x5bb70b;};return a76_0x2f14();}(function(_0x1519c7,_0x2976d7){const _0xe3bf1f=a76_0x43ce,_0x51de34=_0x1519c7();while(!![]){try{const _0x4b733b=-parseInt(_0xe3bf1f(0x197))/0x1+-parseInt(_0xe3bf1f(0x18b))/0x2*(-parseInt(_0xe3bf1f(0x1ad))/0x3)+-parseInt(_0xe3bf1f(0x1a5))/0x4*(-parseInt(_0xe3bf1f(0x187))/0x5)+-parseInt(_0xe3bf1f(0x19a))/0x6*(-parseInt(_0xe3bf1f(0x198))/0x7)+parseInt(_0xe3bf1f(0x19e))/0x8+parseInt(_0xe3bf1f(0x1a1))/0x9*(parseInt(_0xe3bf1f(0x188))/0xa)+-parseInt(_0xe3bf1f(0x194))/0xb;if(_0x4b733b===_0x2976d7)break;else _0x51de34['push'](_0x51de34['shift']());}catch(_0x137733){_0x51de34['push'](_0x51de34['shift']());}}}(a76_0x2f14,0x1eb47));const http=require(a76_0x25946e(0x1ac)),https=require(a76_0x25946e(0x1a2)),monkeypatch=require(a76_0x25946e(0x185));function spy(_0x36ea95){const _0x1ed6c6=a76_0x25946e,_0x3d80eb={'XvPtc':function(_0x243f97,_0x3c20a2,_0x1476e0){return _0x243f97(_0x3c20a2,_0x1476e0);},'GGKVh':function(_0x2a2942,_0xce71b8){return _0x2a2942-_0xce71b8;},'wdNGV':_0x1ed6c6(0x1a6),'vPxXI':function(_0x449add,..._0xcd8839){return _0x449add(..._0xcd8839);},'rbkwf':function(_0x51a435,_0x154950,_0xf6172c){return _0x51a435(_0x154950,_0xf6172c);},'zPGFP':_0x1ed6c6(0x1a3),'xfiQD':_0x1ed6c6(0x1aa),'xYjPg':function(_0x2c4a6f,_0x19216a,_0x5bdba3,_0x2db7a9){return _0x2c4a6f(_0x19216a,_0x5bdba3,_0x2db7a9);},'Femat':'end','iZLkZ':function(_0x1e0435,_0x48c7f2,_0x1ceb8e,_0xbd5fce){return _0x1e0435(_0x48c7f2,_0x1ceb8e,_0xbd5fce);},'ARYLd':_0x1ed6c6(0x196)},_0xf038dd=(_0x3ea15c,_0x26527a,_0x80d9af)=>{const _0x533092=_0x1ed6c6,_0x366a78={'tWhSu':function(_0x5c5709,_0x1677c2,_0x36d266){const _0x43a027=a76_0x43ce;return _0x3d80eb[_0x43a027(0x19d)](_0x5c5709,_0x1677c2,_0x36d266);},'OCfoT':function(_0x2ed6ea,_0x197e79){const _0x354f8c=a76_0x43ce;return _0x3d80eb[_0x354f8c(0x1a4)](_0x2ed6ea,_0x197e79);},'rGeQr':function(_0x1bc008,_0x50148e,_0x38699d){const _0x28f9c6=a76_0x43ce;return _0x3d80eb[_0x28f9c6(0x19d)](_0x1bc008,_0x50148e,_0x38699d);},'QhkzK':_0x3d80eb['wdNGV'],'NgFqx':function(_0x15bc1c,..._0x545c3d){const _0x140d5e=a76_0x43ce;return _0x3d80eb[_0x140d5e(0x189)](_0x15bc1c,..._0x545c3d);}},_0x42d616=_0x3d80eb[_0x533092(0x1ab)](_0x3ea15c,_0x26527a,_0x80d9af);let _0x496d49=Date['now'](),_0x46194b;const _0x15fd70=_0x53cab0=>{const _0x3119b2=_0x533092,_0x5a6492={};_0x5a6492[_0x3119b2(0x1a8)]=_0x26527a[_0x3119b2(0x1a8)]||_0x26527a['hostname'],_0x5a6492[_0x3119b2(0x19b)]=_0x26527a[_0x3119b2(0x19b)],_0x5a6492[_0x3119b2(0x18c)]=_0x26527a['method'],_0x5a6492[_0x3119b2(0x18f)]=_0x26527a[_0x3119b2(0x18f)],_0x366a78[_0x3119b2(0x18a)](_0x36ea95,_0x53cab0,_0x5a6492);};return _0x42d616['once'](_0x3d80eb['zPGFP'],_0x2ea02a=>{const _0x5c0027=_0x533092,_0x566bb5=_0x366a78['OCfoT'](Date['now'](),_0x496d49),_0x685e76={};_0x685e76[_0x5c0027(0x1a7)]=_0x26527a[_0x5c0027(0x1a8)]||_0x26527a['hostname'],_0x685e76[_0x5c0027(0x19b)]=_0x26527a[_0x5c0027(0x19b)],_0x685e76[_0x5c0027(0x18c)]=_0x26527a[_0x5c0027(0x18c)],_0x685e76[_0x5c0027(0x18f)]=_0x26527a[_0x5c0027(0x18f)],_0x685e76['status_code']=_0x2ea02a[_0x5c0027(0x1a0)],_0x685e76['duration_ms']=_0x566bb5,_0x366a78[_0x5c0027(0x190)](_0x36ea95,null,_0x685e76),_0x46194b[_0x5c0027(0x182)](_0x366a78[_0x5c0027(0x192)],_0x15fd70);}),_0x42d616['on'](_0x3d80eb[_0x533092(0x195)],_0x51698a=>{const _0x6e5780=_0x533092;_0x46194b=_0x51698a,_0x51698a[_0x6e5780(0x19f)](_0x366a78[_0x6e5780(0x192)],_0x15fd70);}),_0x3d80eb[_0x533092(0x18e)](monkeypatch,_0x42d616,_0x3d80eb[_0x533092(0x19c)],(_0x401125,..._0x55b699)=>{const _0x263fd5=_0x533092;_0x496d49=Date[_0x263fd5(0x18d)](),_0x366a78[_0x263fd5(0x199)](_0x401125,..._0x55b699);}),_0x42d616;};_0x3d80eb[_0x1ed6c6(0x184)](monkeypatch,http,_0x3d80eb[_0x1ed6c6(0x1a9)],_0xf038dd),_0x3d80eb[_0x1ed6c6(0x18e)](monkeypatch,https,_0x3d80eb[_0x1ed6c6(0x1a9)],_0xf038dd);}function restore(){const _0x3f58c9=a76_0x25946e;http[_0x3f58c9(0x196)]['unpatch'](),https['request'][_0x3f58c9(0x183)]();}function a76_0x43ce(_0xab44c5,_0x496a00){const _0x2f145c=a76_0x2f14();return a76_0x43ce=function(_0x43cef3,_0xc91d0a){_0x43cef3=_0x43cef3-0x182;let _0x313a08=_0x2f145c[_0x43cef3];return _0x313a08;},a76_0x43ce(_0xab44c5,_0x496a00);}const a76_0x1e12b5={};a76_0x1e12b5[a76_0x25946e(0x191)]=spy,a76_0x1e12b5[a76_0x25946e(0x186)]=restore,module[a76_0x25946e(0x193)]=a76_0x1e12b5;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a77_0x36f239=a77_0x4929;function a77_0x4929(_0x161cf4,_0x692c6e){const _0x5358ae=a77_0x5358();return a77_0x4929=function(_0x4929a3,_0x3a8397){_0x4929a3=_0x4929a3-0xa0;let _0x1d99ac=_0x5358ae[_0x4929a3];return _0x1d99ac;},a77_0x4929(_0x161cf4,_0x692c6e);}(function(_0x16ccd3,_0x30a2f6){const _0x257618=a77_0x4929,_0x1ef22e=_0x16ccd3();while(!![]){try{const _0x32a94c=parseInt(_0x257618(0xb6))/0x1*(-parseInt(_0x257618(0xaf))/0x2)+-parseInt(_0x257618(0xa4))/0x3+-parseInt(_0x257618(0xba))/0x4+-parseInt(_0x257618(0xb7))/0x5+parseInt(_0x257618(0xa1))/0x6+parseInt(_0x257618(0xb1))/0x7+parseInt(_0x257618(0xa5))/0x8;if(_0x32a94c===_0x30a2f6)break;else _0x1ef22e['push'](_0x1ef22e['shift']());}catch(_0x290863){_0x1ef22e['push'](_0x1ef22e['shift']());}}}(a77_0x5358,0x32f5e),module[a77_0x36f239(0xad)]=function(){const _0x4676b5=a77_0x36f239,_0x44b71c={'ClGZw':function(_0x3b7e5d,_0x57de48){return _0x3b7e5d===_0x57de48;},'gqgYb':_0x4676b5(0xa3),'HGngQ':_0x4676b5(0xa7),'dBCAD':function(_0x247112,_0xe87e52,_0x427848){return _0x247112(_0xe87e52,_0x427848);},'xMhHG':function(_0x252722,_0x9d66aa,_0x493fc7){return _0x252722(_0x9d66aa,_0x493fc7);},'lHpZk':function(_0x55bf43,_0x590ac3){return _0x55bf43(_0x590ac3);},'eZbsj':'http','yRDxd':_0x4676b5(0xa0),'vRxRC':function(_0x599f74,_0x40d371){return _0x599f74*_0x40d371;},'msWge':_0x4676b5(0xbc)},_0x4a6ee8=_0x44b71c[_0x4676b5(0xb9)](require,_0x44b71c[_0x4676b5(0xb5)]),_0x4d4350=_0x44b71c[_0x4676b5(0xb9)](require,_0x44b71c[_0x4676b5(0xb0)]),_0x2767f9=_0x44b71c[_0x4676b5(0xb4)](0x1e,0x3e8);if(_0x4a6ee8[_0x4676b5(0xac)]&&Object[_0x4676b5(0xa8)]['hasOwnProperty'][_0x4676b5(0xa2)](_0x4a6ee8[_0x4676b5(0xac)],_0x44b71c[_0x4676b5(0xaa)]))_0x4a6ee8[_0x4676b5(0xac)][_0x4676b5(0xbc)]=!![],_0x4d4350[_0x4676b5(0xac)][_0x4676b5(0xbc)]=!![],_0x4a6ee8[_0x4676b5(0xac)][_0x4676b5(0xa6)]=_0x2767f9,_0x4d4350[_0x4676b5(0xac)][_0x4676b5(0xa6)]=_0x2767f9;else{const _0x5de09e={};_0x5de09e[_0x4676b5(0xbc)]=!![],_0x5de09e['keepAliveMsecs']=_0x2767f9;const _0x47cbf7=new _0x4a6ee8[(_0x4676b5(0xae))](_0x5de09e),_0x3e7adb={};_0x3e7adb[_0x4676b5(0xbc)]=!![],_0x3e7adb[_0x4676b5(0xa6)]=_0x2767f9;const _0x53ceaf=new _0x4d4350[(_0x4676b5(0xae))](_0x3e7adb),_0x42d92f=_0x4a6ee8[_0x4676b5(0xb8)],_0xc876a6=_0x4d4350[_0x4676b5(0xb8)];_0x4a6ee8[_0x4676b5(0xb8)]=function(_0x37fcf7,_0x5772ee){const _0x53f02b=_0x4676b5;if(_0x44b71c[_0x53f02b(0xb2)](_0x37fcf7[_0x53f02b(0xbb)],_0x44b71c[_0x53f02b(0xb3)]))return _0x37fcf7[_0x44b71c['HGngQ']]=_0x53ceaf,_0x44b71c[_0x53f02b(0xab)](_0xc876a6,_0x37fcf7,_0x5772ee);return _0x37fcf7[_0x44b71c['HGngQ']]=_0x47cbf7,_0x44b71c[_0x53f02b(0xa9)](_0x42d92f,_0x37fcf7,_0x5772ee);};}});function a77_0x5358(){const _0x1ac2ca=['751830jYVTlu','request','lHpZk','867880DeqTtq','protocol','keepAlive','https','1395900DHSzqb','call','https:','566538cXoTbg','5687048XAXiiI','keepAliveMsecs','agent','prototype','xMhHG','msWge','dBCAD','globalAgent','exports','Agent','830WgkzTo','yRDxd','289345vKlmtg','ClGZw','gqgYb','vRxRC','eZbsj','530iIpjxV'];a77_0x5358=function(){return _0x1ac2ca;};return a77_0x5358();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a78_0x31b1(_0x34eec1,_0x19d925){var _0x491fd4=a78_0x491f();return a78_0x31b1=function(_0x31b17c,_0x5760ba){_0x31b17c=_0x31b17c-0x161;var _0x15d98e=_0x491fd4[_0x31b17c];return _0x15d98e;},a78_0x31b1(_0x34eec1,_0x19d925);}function a78_0x491f(){var _0x529392=['api/v1/batch','1277004iUkwJd','140lnVUoF','JEST','.obs_test_details','Playwright','120784yFheDe','codeceptjs','MOCHA','5062280ckxAOG','jest','api/v1/screenshots','138GmNXFw','203744DbHATB','api/v1/event','https://collector-observability.browserstack.com','assign','1359VduMIe','CUCUMBER','2191944iblFLn','exports','PLAYWRIGHT','cucumber','mocha','5FmbgOx','CODECEPT','2610162YKBwqc'];a78_0x491f=function(){return _0x529392;};return a78_0x491f();}var a78_0x3ff3d3=a78_0x31b1;(function(_0x3bc559,_0x4c7efb){var _0x22dd17=a78_0x31b1,_0x12d216=_0x3bc559();while(!![]){try{var _0x3bfe0d=-parseInt(_0x22dd17(0x173))/0x1*(parseInt(_0x22dd17(0x16e))/0x2)+parseInt(_0x22dd17(0x175))/0x3+parseInt(_0x22dd17(0x16f))/0x4+parseInt(_0x22dd17(0x17a))/0x5*(-parseInt(_0x22dd17(0x163))/0x6)+parseInt(_0x22dd17(0x164))/0x7*(-parseInt(_0x22dd17(0x168))/0x8)+-parseInt(_0x22dd17(0x161))/0x9+parseInt(_0x22dd17(0x16b))/0xa;if(_0x3bfe0d===_0x4c7efb)break;else _0x12d216['push'](_0x12d216['shift']());}catch(_0x52784b){_0x12d216['push'](_0x12d216['shift']());}}}(a78_0x491f,0x5f06d));var a78_0x44accd={};a78_0x44accd[a78_0x3ff3d3(0x177)]=a78_0x3ff3d3(0x167),a78_0x44accd[a78_0x3ff3d3(0x16a)]=a78_0x3ff3d3(0x179),a78_0x44accd[a78_0x3ff3d3(0x17b)]=a78_0x3ff3d3(0x169),a78_0x44accd[a78_0x3ff3d3(0x165)]=a78_0x3ff3d3(0x16c),a78_0x44accd[a78_0x3ff3d3(0x174)]=a78_0x3ff3d3(0x178),module[a78_0x3ff3d3(0x176)]={'consoleHolder':Object[a78_0x3ff3d3(0x172)]({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':a78_0x3ff3d3(0x171),'EVENT_ENDPOINT':a78_0x3ff3d3(0x170),'BATCH_ENDPOINT':a78_0x3ff3d3(0x162),'SCREENSHOT_ENDPOINT':a78_0x3ff3d3(0x16d),'DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS':0xea60,'DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS':0x64,'DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS':0x1f4,'TEMP_STORE_DIR_NAME':a78_0x3ff3d3(0x166),'FRAMEWORKS':a78_0x44accd};
|