browserstack-node-sdk 1.34.18 → 1.34.20
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/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-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_0x25d0f3=a66_0x4df3;(function(_0x334836,_0xb8c514){const _0x472ec8=a66_0x4df3,_0x396200=_0x334836();while(!![]){try{const _0x1a91bb=parseInt(_0x472ec8(0x1b0))/0x1+parseInt(_0x472ec8(0x1ac))/0x2+parseInt(_0x472ec8(0x1c9))/0x3+parseInt(_0x472ec8(0x1b5))/0x4*(-parseInt(_0x472ec8(0x1ad))/0x5)+-parseInt(_0x472ec8(0x1c2))/0x6+parseInt(_0x472ec8(0x1c7))/0x7+-parseInt(_0x472ec8(0x1c8))/0x8;if(_0x1a91bb===_0xb8c514)break;else _0x396200['push'](_0x396200['shift']());}catch(_0x53b40c){_0x396200['push'](_0x396200['shift']());}}}(a66_0x20ff,0x74651));const winston=require(a66_0x25d0f3(0x1c0)),os=require('os'),fs=require('fs'),path=require('path'),logDir=a66_0x25d0f3(0x1b2);!fs[a66_0x25d0f3(0x1ca)](logDir)&&fs[a66_0x25d0f3(0x1b1)](logDir);function a66_0x20ff(){const _0x46826e=['2202732nwblvm','loggerFile','createLogger','debugLoggerFile','colorize','3853857aLmpku','7493744xkFsua','2685975LeRVlD','existsSync','join','printf','combine','49862wuqFfz','5oLaDxt','silly','YYYY-MM-DD\x20HH:mm:ss','930175uXdFIK','mkdirSync','log','fileLogger','console.info','2481556FUhtkz','transports','format','name','timestamp','message','File','loggerConsole','\x20-\x20','/usage.log','winstonLogger','winston','level'];a66_0x20ff=function(){return _0x46826e;};return a66_0x20ff();}const a66_0x23c73b={};function a66_0x4df3(_0x1cc296,_0x3c60aa){const _0x20ff10=a66_0x20ff();return a66_0x4df3=function(_0x4df3bc,_0x57c8ca){_0x4df3bc=_0x4df3bc-0x1ac;let _0xd00ce7=_0x20ff10[_0x4df3bc];return _0xd00ce7;},a66_0x4df3(_0x1cc296,_0x3c60aa);}a66_0x23c73b[a66_0x25d0f3(0x1b8)]=a66_0x25d0f3(0x1b4);const transports={'loggerConsole':new winston[(a66_0x25d0f3(0x1b6))]['Console'](a66_0x23c73b),'loggerFile':new winston[(a66_0x25d0f3(0x1b6))][(a66_0x25d0f3(0x1bb))]({'filename':path[a66_0x25d0f3(0x1cb)](logDir,a66_0x25d0f3(0x1be))}),'debugLoggerFile':new winston[(a66_0x25d0f3(0x1b6))][(a66_0x25d0f3(0x1bb))]({'filename':path['join'](logDir,'/usage-debug.log'),'level':a66_0x25d0f3(0x1ae)})},a66_0x8f2c61={};a66_0x8f2c61[a66_0x25d0f3(0x1b7)]=a66_0x25d0f3(0x1af);const a66_0x9cbd6f={};a66_0x9cbd6f[a66_0x25d0f3(0x1c1)]=!![];const winstonLoggerParams={'format':winston[a66_0x25d0f3(0x1b7)][a66_0x25d0f3(0x1cd)](winston['format'][a66_0x25d0f3(0x1b9)](a66_0x8f2c61),winston[a66_0x25d0f3(0x1b7)][a66_0x25d0f3(0x1c6)](a66_0x9cbd6f),winston['format'][a66_0x25d0f3(0x1cc)](_0x21094d=>_0x21094d['timestamp']+a66_0x25d0f3(0x1bd)+_0x21094d[a66_0x25d0f3(0x1c1)]+':\x20'+_0x21094d['message'])),'transports':[transports[a66_0x25d0f3(0x1bc)],transports['loggerFile'],transports['debugLoggerFile']]},a66_0x1186b9={};a66_0x1186b9['format']=a66_0x25d0f3(0x1af);const a66_0x584668={};a66_0x584668['level']=!![];const winstonFileLoggerParams={'format':winston['format'][a66_0x25d0f3(0x1cd)](winston[a66_0x25d0f3(0x1b7)][a66_0x25d0f3(0x1b9)](a66_0x1186b9),winston[a66_0x25d0f3(0x1b7)][a66_0x25d0f3(0x1c6)](a66_0x584668),winston[a66_0x25d0f3(0x1b7)]['printf'](_0x7ac42c=>_0x7ac42c[a66_0x25d0f3(0x1c1)]+':\x20'+_0x7ac42c[a66_0x25d0f3(0x1ba)])),'transports':[transports[a66_0x25d0f3(0x1c3)],transports[a66_0x25d0f3(0x1c5)]]};exports[a66_0x25d0f3(0x1bf)]=new winston[(a66_0x25d0f3(0x1c4))](winstonLoggerParams),exports[a66_0x25d0f3(0x1b3)]=new winston[(a66_0x25d0f3(0x1c4))](winstonFileLoggerParams),exports['logDir']=logDir,exports[a66_0x25d0f3(0x1b6)]=transports;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a67_0x3c08(_0x5938e1,_0x1721a9){const _0x4d2914=a67_0x4d29();return a67_0x3c08=function(_0x3c0869,_0x4d85c6){_0x3c0869=_0x3c0869-0x72;let _0x30f133=_0x4d2914[_0x3c0869];return _0x30f133;},a67_0x3c08(_0x5938e1,_0x1721a9);}const a67_0x2b6926=a67_0x3c08;(function(_0x1a50b8,_0x15ef46){const _0x278752=a67_0x3c08,_0xe824f7=_0x1a50b8();while(!![]){try{const _0x47e88c=parseInt(_0x278752(0xc8))/0x1+parseInt(_0x278752(0x90))/0x2+parseInt(_0x278752(0x8a))/0x3*(parseInt(_0x278752(0xb3))/0x4)+parseInt(_0x278752(0x8b))/0x5*(parseInt(_0x278752(0x9c))/0x6)+-parseInt(_0x278752(0x95))/0x7*(parseInt(_0x278752(0x76))/0x8)+parseInt(_0x278752(0xbf))/0x9+-parseInt(_0x278752(0xbb))/0xa;if(_0x47e88c===_0x15ef46)break;else _0xe824f7['push'](_0xe824f7['shift']());}catch(_0x29a7f1){_0xe824f7['push'](_0xe824f7['shift']());}}}(a67_0x4d29,0x3e394));const {aiSdkWrapper}=require('./ai-sdk/aiSdkWrapper'),{commandRepository}=require(a67_0x2b6926(0xa9)),PerformanceTester=require('./performance-tester'),globals=require(a67_0x2b6926(0xb1)),logger=require(a67_0x2b6926(0x7b))[a67_0x2b6926(0xb2)],helper=require(a67_0x2b6926(0xa8)),constants=require('../bin/utils/constants');function a67_0x4d29(){const _0x48594a=['yFtiR','patchExecute','info','name_','11669NaOUXE','isBrowserstackInfra','XYpOO','GZFZU','getTcgTokenStatus','name','Healing\x20failed\x20for\x20command\x20using\x20','33798uCXdkB','bstack:options','OlCvr','toString','execute','getNudgeLocalNotSetError','UlVbq','epZNn','findElement\x20command\x20failed\x20with\x20','overrideExecute','aiHeal_isHealingEnabled','NoSuchElementError','./helper','./ai-sdk/autoHealHelper','dxOTH','IynXf','debug','NltgS','mjHHZ','qRDrn','aiSdk_defaultLogDataEnabled','./globals','winstonLogger','29548zFRHnR','initExecute','getSession','find','nestedKeyValue','browserstack.local','aiHeal:findElementFailure','xBXvQ','3718040atpkRc','measureWrapper','iKalf','OMVdW','440028oPFdbw','value','css\x20selector','using','setTcgToken','sUSim','SCOCs','rRgdq','XbVKK','11838ikVPgF','AvYUG','local','handleSuccess','NUDGE_LOCAL_ERRORS','Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','aiHeal:setToken','getId','includes','ijDeX','findElement','1320NLNKEu','Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','fqsTJ','getGlobal','url','./logger','WBdSW','zhJLy','uwUgi','HJYEb','hISIW','dbXhN','Successfully\x20healed\x20command\x20using\x20new\x20','isSelfHealEnabled','parameters_','xMNCC','Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','QuJLH','zHBDg','setTcgTokenStatus','135RcYHsm','305qOamdB','Error\x20in\x20handling\x20TCG\x20Auth:\x20','FhaSG','XDLfW','findElement\x20command\x20failed\x20with\x20cssPath:\x20','329938ajSvKy'];a67_0x4d29=function(){return _0x48594a;};return a67_0x4d29();}exports[a67_0x2b6926(0xa5)]=(_0x513c73,_0x420acb)=>{const _0x1e7034=a67_0x2b6926,_0x329e91={'QuJLH':'aiHeal_isAuthenticated','mjHHZ':_0x1e7034(0xce),'hISIW':function(_0x299992){return _0x299992();},'sUSim':_0x1e7034(0xb0),'zhJLy':function(_0x338108,_0x488087){return _0x338108===_0x488087;},'pZdxS':_0x1e7034(0x75),'HJYEb':_0x1e7034(0xa6),'JzFrb':'aiHeal:findElementSuccess','QBuUy':'Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','SCOCs':function(_0x1af1f8,_0x2e599b){return _0x1af1f8===_0x2e599b;},'AZjKW':_0x1e7034(0xa7),'xBXvQ':'JavascriptError','OlCvr':function(_0x123289,_0x590844){return _0x123289===_0x590844;},'zHBDg':_0x1e7034(0xc1),'UlVbq':function(_0x1603a9,_0x48aec5){return _0x1603a9+_0x48aec5;},'qRDrn':_0x1e7034(0x8f),'xMNCC':';\x20Trying\x20to\x20heal','dxOTH':function(_0x2f082c,_0x1c89a7){return _0x2f082c+_0x1c89a7;},'GZFZU':function(_0x4e85a3,_0x45dac6){return _0x4e85a3+_0x45dac6;},'XYpOO':_0x1e7034(0xa4),'yFtiR':_0x1e7034(0xb9),'dbXhN':function(_0xf5847d){return _0xf5847d();},'fqsTJ':function(_0x36d945,_0x57f2fd){return _0x36d945&&_0x57f2fd;},'iKalf':function(_0x1b8082,_0x5f3d38){return _0x1b8082+_0x5f3d38;},'uwUgi':_0x1e7034(0x77),'AvYUG':function(_0x5a8624,_0x20292d){return _0x5a8624+_0x20292d;},'XbVKK':_0x1e7034(0x82),'NltgS':function(_0x390830,_0x16bdb8){return _0x390830===_0x16bdb8;},'WBdSW':_0x1e7034(0xcd),'IQjAL':function(_0x309d79,_0x2c066b){return _0x309d79+_0x2c066b;},'epZNn':function(_0x5b6297,_0x3330b7){return _0x5b6297+_0x3330b7;},'xvrYm':_0x1e7034(0x9b),'ijDeX':'get','OMVdW':_0x1e7034(0x84),'IynXf':_0x1e7034(0x7a),'FhaSG':_0x1e7034(0x86),'XDLfW':'capability','VvuXs':_0x1e7034(0xb8),'WdnfK':_0x1e7034(0x9d),'rRgdq':_0x1e7034(0xca)},_0x595d26=_0x513c73[_0x1e7034(0x92)]||(helper['nestedKeyValue'](_0x420acb,[_0x329e91[_0x1e7034(0x8e)],_0x329e91['VvuXs']])||helper['nestedKeyValue'](_0x420acb,[_0x329e91[_0x1e7034(0x8e)],_0x329e91['WdnfK'],_0x329e91[_0x1e7034(0xc6)]]));if(!globals[_0x1e7034(0x79)](_0x329e91[_0x1e7034(0x87)])&&!globals[_0x1e7034(0x79)](_0x329e91[_0x1e7034(0x7f)])&&_0x595d26)return;_0x513c73['patchExecute']=!![],_0x513c73[_0x1e7034(0xb4)]=_0x513c73[_0x1e7034(0xa0)],_0x513c73['execute']=async _0x46e048=>{const _0x1cca94=_0x1e7034;try{if(!commandRepository[_0x1cca94(0x99)]()&&globals[_0x1cca94(0x79)](_0x329e91[_0x1cca94(0x87)])){const _0x462cb1=PerformanceTester[_0x1cca94(0xbc)](_0x329e91[_0x1cca94(0xae)],async()=>{const _0x10a362=_0x1cca94;try{commandRepository[_0x10a362(0x89)](!![]),await aiSdkWrapper[_0x10a362(0xc3)]((await _0x513c73[_0x10a362(0xb5)]())[_0x10a362(0x72)]());const _0x43eec0=globals[_0x10a362(0x79)](_0x329e91['QuJLH']);_0x43eec0&&commandRepository['setAiSessionTimeStamp']((await _0x513c73['getSession']())[_0x10a362(0x72)]());}catch(_0x225928){logger['error'](_0x10a362(0x8c)+_0x225928);}});await _0x329e91[_0x1cca94(0x80)](_0x462cb1);}const _0x14360a=await _0x513c73[_0x1cca94(0xb4)](_0x46e048);if(!helper['isBrowserstackInfra']()&&(commandRepository['isSelfHealEnabled']()||globals[_0x1cca94(0x79)](_0x329e91[_0x1cca94(0xc4)]))&&_0x329e91[_0x1cca94(0x7d)](_0x46e048['name_'],_0x329e91['pZdxS'])&&!_0x46e048['skipHealingSuccess']&&globals['getGlobal'](_0x329e91[_0x1cca94(0x87)])&&globals[_0x1cca94(0x79)](_0x329e91[_0x1cca94(0x7f)])){const _0xc49eb4=new Date(),_0xb77903=PerformanceTester[_0x1cca94(0xbc)](_0x329e91['JzFrb'],async()=>{const _0x4b6f5c=_0x1cca94;return await aiSdkWrapper[_0x4b6f5c(0xcb)](_0x420acb,_0x513c73,_0x46e048);});await _0x329e91[_0x1cca94(0x80)](_0xb77903);}return _0x14360a;}catch(_0x1b7066){logger[_0x1cca94(0xac)](_0x329e91['QBuUy']);try{if(!helper[_0x1cca94(0x96)]()&&(_0x329e91[_0x1cca94(0xc5)](_0x1b7066[_0x1cca94(0x9a)],_0x329e91['AZjKW'])||_0x329e91[_0x1cca94(0xc5)](_0x1b7066[_0x1cca94(0x9a)],_0x329e91[_0x1cca94(0xba)]))&&_0x329e91['SCOCs'](_0x46e048[_0x1cca94(0x94)],_0x329e91['pZdxS'])&&commandRepository[_0x1cca94(0x83)]()&&globals[_0x1cca94(0x79)](_0x329e91[_0x1cca94(0x87)])&&globals[_0x1cca94(0x79)](_0x329e91[_0x1cca94(0x7f)])){_0x329e91[_0x1cca94(0x9e)](_0x46e048[_0x1cca94(0x84)]['using'],_0x329e91[_0x1cca94(0x88)])?logger[_0x1cca94(0x93)](_0x329e91[_0x1cca94(0xa2)](_0x329e91[_0x1cca94(0xa2)](_0x329e91[_0x1cca94(0xaf)],_0x46e048[_0x1cca94(0x84)]['value']),_0x329e91[_0x1cca94(0x85)])):logger['info'](_0x329e91[_0x1cca94(0xa2)](_0x329e91[_0x1cca94(0xaa)](_0x329e91[_0x1cca94(0xa2)](_0x329e91[_0x1cca94(0x98)](_0x329e91[_0x1cca94(0x97)],_0x46e048[_0x1cca94(0x84)][_0x1cca94(0xc2)]),':\x20'),_0x46e048[_0x1cca94(0x84)]['value']),_0x329e91[_0x1cca94(0x85)]));const _0x413e61=PerformanceTester[_0x1cca94(0xbc)](_0x329e91[_0x1cca94(0x91)],async()=>{return await aiSdkWrapper['handleFailure'](_0x420acb,_0x513c73,_0x46e048);}),_0x2cc5a0=new Date(),{locatorType:_0x18c97a,locatorValue:_0x34baf6,commandHealed:_0x5dd64f}=await _0x329e91[_0x1cca94(0x81)](_0x413e61);if(_0x329e91[_0x1cca94(0x78)](_0x18c97a,_0x34baf6)){_0x46e048[_0x1cca94(0x84)][_0x1cca94(0xc2)]=_0x18c97a,_0x46e048[_0x1cca94(0x84)][_0x1cca94(0xc0)]=_0x34baf6,_0x46e048['skipHealingSuccess']=!![];const _0x29d750=_0x513c73['execute'](_0x46e048);return _0x329e91[_0x1cca94(0x7d)](_0x18c97a,_0x329e91[_0x1cca94(0x88)])?logger['info'](_0x329e91[_0x1cca94(0xbd)](_0x329e91[_0x1cca94(0x7e)],_0x34baf6)):logger['info'](_0x329e91['dxOTH'](_0x329e91[_0x1cca94(0xbd)](_0x329e91['AvYUG'](_0x329e91[_0x1cca94(0xc7)],_0x18c97a),':\x20'),_0x34baf6)),_0x29d750;}else!_0x5dd64f&&(_0x329e91[_0x1cca94(0xad)](_0x18c97a,_0x329e91['zHBDg'])?logger[_0x1cca94(0x93)](_0x329e91['UlVbq'](_0x329e91[_0x1cca94(0x7c)],_0x46e048[_0x1cca94(0x84)][_0x1cca94(0xc0)])):logger[_0x1cca94(0x93)](_0x329e91['IQjAL'](_0x329e91[_0x1cca94(0xa3)](_0x329e91[_0x1cca94(0xc9)](_0x329e91['xvrYm'],_0x46e048['parameters_'][_0x1cca94(0xc2)]),':\x20'),_0x46e048[_0x1cca94(0x84)][_0x1cca94(0xc0)])));}!_0x595d26&&_0x329e91[_0x1cca94(0x9e)](_0x46e048[_0x1cca94(0x94)],_0x329e91[_0x1cca94(0x74)])&&helper[_0x1cca94(0xb7)](_0x46e048,[_0x329e91[_0x1cca94(0xbe)],_0x329e91[_0x1cca94(0xab)]])&&!!constants[_0x1cca94(0xcc)][_0x1cca94(0xb6)](_0x2d0435=>{const _0xe9a7cc=_0x1cca94;return _0x1b7066[_0xe9a7cc(0x9f)]()[_0xe9a7cc(0x73)](_0x2d0435);})&&helper[_0x1cca94(0xa1)](_0x46e048[_0x1cca94(0x84)]['url'],!![]);}catch(_0xaaa5ed){logger[_0x1cca94(0xac)](_0x329e91[_0x1cca94(0x8d)],_0xaaa5ed);}throw _0x1b7066;}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a68_0x29d8(){var _0x162d0c=['1|3|0|4|2','33izuGUM','overrideQuit','11039DpJxSq','toISOString','TEST_SCREENSHOT','760688fWyFcE','quit','true','split','initScreenshot','508904bnCukg','quitCount_','VsmQA','SUHNr','env','takeScreenshot','4183700ixEHyP','6179832uSojBz','1668XpMkGr','gUoyH','gPFIr','50XZZpwS','2204127hhToOw','initQuit','ZfwVt','88030NZubJU','bDCJs','rfZES','patchScreenshot','vhwfa','ffwFZ','rIMIu'];a68_0x29d8=function(){return _0x162d0c;};return a68_0x29d8();}function a68_0x1d02(_0x3e1049,_0x138e11){var _0x29d8c4=a68_0x29d8();return a68_0x1d02=function(_0x1d02be,_0x4faa97){_0x1d02be=_0x1d02be-0x1ec;var _0x258a1c=_0x29d8c4[_0x1d02be];return _0x258a1c;},a68_0x1d02(_0x3e1049,_0x138e11);}var a68_0x45336c=a68_0x1d02;(function(_0x5bee9c,_0x336d7c){var _0x2ec68c=a68_0x1d02,_0xf0449e=_0x5bee9c();while(!![]){try{var _0x1e938a=-parseInt(_0x2ec68c(0x1f0))/0x1+parseInt(_0x2ec68c(0x1ff))/0x2*(parseInt(_0x2ec68c(0x207))/0x3)+-parseInt(_0x2ec68c(0x20c))/0x4+-parseInt(_0x2ec68c(0x1f6))/0x5+parseInt(_0x2ec68c(0x1f8))/0x6*(-parseInt(_0x2ec68c(0x209))/0x7)+parseInt(_0x2ec68c(0x1f7))/0x8+-parseInt(_0x2ec68c(0x1fc))/0x9*(-parseInt(_0x2ec68c(0x1fb))/0xa);if(_0x1e938a===_0x336d7c)break;else _0xf0449e['push'](_0xf0449e['shift']());}catch(_0x16a285){_0xf0449e['push'](_0xf0449e['shift']());}}}(a68_0x29d8,0x7bc39),exports['overrideTakeScreenshot']=_0x3abebb=>{var _0x4efcdb=a68_0x1d02,_0x42244f={'gPFIr':'4|3|2|0|5|1','tUAiw':function(_0x56ce28,_0x39c663){return _0x56ce28!==_0x39c663;},'ffwFZ':_0x4efcdb(0x1ed),'fRaLV':_0x4efcdb(0x20b),'edzIB':function(_0x235943,_0xe5778f){return _0x235943(_0xe5778f);}},_0x51b18d=_0x42244f[_0x4efcdb(0x1fa)][_0x4efcdb(0x1ee)]('|'),_0x334ee8=0x0;while(!![]){switch(_0x51b18d[_0x334ee8++]){case'0':_0x3abebb['patchScreenshot']=!![];continue;case'1':_0x3abebb[_0x4efcdb(0x1f5)]=()=>{return new Promise(function(_0x21f975,_0x449d6c){var _0x3d1d08=a68_0x1d02,_0x18293b={'BCcee':_0x3040d5[_0x3d1d08(0x1f2)],'rIMIu':function(_0x2774a6,_0xad251){var _0x4ad353=_0x3d1d08;return _0x3040d5[_0x4ad353(0x1fe)](_0x2774a6,_0xad251);}};_0x3abebb[_0x3d1d08(0x1ef)]()['then'](_0x28677f=>{var _0x1b46f5=_0x3d1d08;process['emit']('bs:addLog:'+process['pid'],{'timestamp':new Date()[_0x1b46f5(0x20a)](),'message':_0x28677f,'kind':_0x18293b['BCcee']}),_0x18293b[_0x1b46f5(0x205)](_0x21f975,_0x28677f);});});};continue;case'2':if(_0x3abebb[_0x4efcdb(0x202)])return;continue;case'3':if(_0x42244f['tUAiw'](process[_0x4efcdb(0x1f4)]['BS_TESTOPS_ALLOW_SCREENSHOTS'],_0x42244f[_0x4efcdb(0x204)]))return;continue;case'4':var _0x3040d5={'VsmQA':_0x42244f['fRaLV'],'ZfwVt':function(_0x3378ee,_0xe2963d){return _0x42244f['edzIB'](_0x3378ee,_0xe2963d);}};continue;case'5':_0x3abebb[_0x4efcdb(0x1ef)]=_0x3abebb[_0x4efcdb(0x1f5)];continue;}break;}},exports[a68_0x45336c(0x208)]=(_0x322262,_0x23f692=null)=>{var _0x54c362=a68_0x45336c,_0x4d99d3={'bDCJs':_0x54c362(0x206),'gUoyH':function(_0x43392f){return _0x43392f();},'vhwfa':function(_0x8d51eb,_0x2e62){return _0x8d51eb>_0x2e62;}},_0x168743=_0x4d99d3[_0x54c362(0x200)][_0x54c362(0x1ee)]('|'),_0x3d5786=0x0;while(!![]){switch(_0x168743[_0x3d5786++]){case'0':_0x322262['patchQuit']=!![];continue;case'1':var _0x2d9d31={'SUHNr':function(_0x2c9cbb){var _0x4660c5=_0x54c362;return _0x4d99d3[_0x4660c5(0x1f9)](_0x2c9cbb);},'rfZES':function(_0x2bb109,_0x3a2292){var _0x508161=_0x54c362;return _0x4d99d3[_0x508161(0x203)](_0x2bb109,_0x3a2292);}};continue;case'2':_0x322262[_0x54c362(0x1ec)]=()=>{var _0x391437=_0x54c362;if(_0x23f692){_0x23f692[_0x391437(0x1f1)]+=0x1;if(_0x2d9d31[_0x391437(0x201)](_0x23f692[_0x391437(0x1f1)],0x1))return _0x322262[_0x391437(0x1fd)]();}else{_0x322262[_0x391437(0x1f1)]+=0x1;if(_0x2d9d31[_0x391437(0x201)](_0x322262[_0x391437(0x1f1)],0x1))return _0x322262[_0x391437(0x1fd)]();}return new Promise(function(_0x21ec6c){var _0x2dc498=_0x391437;_0x2d9d31[_0x2dc498(0x1f3)](_0x21ec6c);});};continue;case'3':if(_0x322262['patchQuit'])return;continue;case'4':_0x322262[_0x54c362(0x1fd)]=_0x322262[_0x54c362(0x1ec)];continue;}break;}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a69_0x5821(){const _0x92bd5f=['app','stdout','AntVr','../logger','api/app_percy/get_project_token?name=','NdZnl','Error\x20creating\x20percy\x20config:\x20','version','2064170aGVLkg','6915156VyJvNE','Percy\x20healthcheck\x20successful','exec:stop','NMmcC','child_process','close','skBah','NSVeN','projectName','exports','QTqJn','427GLFomc','fQeHW','push','debug','token','GET','Percy\x20fetch\x20token\x20success','&type=','percy.log','env','182388iyshci','1517394xGdelT','join','tmWkU','writeFile','ALVzQ','kUKPb','Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20','fetchPercyToken','createPercyConfig','exec','percy/healthcheck','isRunning','error','JeqSW','cnylN','healthcheck','PERCY_SERVER_ADDRESS','percyOptions','automate','ukkWT','tmpdir','assign','6655788jWYShi','start','./PercyBinary','aUyIT','winstonLogger','423556cGLiPy','pipe','ENV_VAR','getBinaryPath','path','../../helpers/testhub/constants','stringify','stop','isProcessRunning','http://localhost:5338','nodeRequest','9790040ADRiZG','flags','8QhUeyn'];a69_0x5821=function(){return _0x92bd5f;};return a69_0x5821();}const a69_0x1f4961=a69_0xfa91;function a69_0xfa91(_0x17d9a7,_0x4dcd61){const _0x582158=a69_0x5821();return a69_0xfa91=function(_0xfa913d,_0x23c3da){_0xfa913d=_0xfa913d-0xb3;let _0x398c8b=_0x582158[_0xfa913d];return _0x398c8b;},a69_0xfa91(_0x17d9a7,_0x4dcd61);}(function(_0x50f857,_0x2f0cc4){const _0xf093bd=a69_0xfa91,_0x508ca8=_0x50f857();while(!![]){try{const _0x11eba6=parseInt(_0xf093bd(0xd3))/0x1+-parseInt(_0xf093bd(0xe9))/0x2+parseInt(_0xf093bd(0xb8))/0x3+parseInt(_0xf093bd(0xea))/0x4+parseInt(_0xf093bd(0xde))/0x5+parseInt(_0xf093bd(0xb7))/0x6*(-parseInt(_0xf093bd(0xf5))/0x7)+-parseInt(_0xf093bd(0xe0))/0x8*(parseInt(_0xf093bd(0xce))/0x9);if(_0x11eba6===_0x2f0cc4)break;else _0x508ca8['push'](_0x508ca8['shift']());}catch(_0x5e19de){_0x508ca8['push'](_0x508ca8['shift']());}}}(a69_0x5821,0xf1c30));const fs=require('fs'),path=require(a69_0x1f4961(0xd7)),os=require('os'),{spawn}=require(a69_0x1f4961(0xee)),helper=require('../helper'),logger=require(a69_0x1f4961(0xe4))[a69_0x1f4961(0xd2)],{logDir}=require('../logger'),testHubConstants=require(a69_0x1f4961(0xd8)),PercyBinary=require(a69_0x1f4961(0xd0));class Percy{#logfile=path[a69_0x1f4961(0xb9)](logDir,a69_0x1f4961(0xb5));#address=process[a69_0x1f4961(0xb6)][a69_0x1f4961(0xc8)]||a69_0x1f4961(0xdc);#binaryPath=null;#config=null;#proc=null;#isApp=![];[a69_0x1f4961(0xdb)]=![];constructor(_0x1ff53b){const _0x1332a2=a69_0x1f4961;this.#config=_0x1ff53b,!!_0x1ff53b[_0x1332a2(0xe1)]&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x3dd751=a69_0x1f4961;if(!this.#binaryPath){const _0x240a35=new PercyBinary();this.#binaryPath=await _0x240a35[_0x3dd751(0xd6)](this.#config);}return this.#binaryPath;}async #sleep(_0x59d5e3){return new Promise(_0x49db15=>setTimeout(_0x49db15,_0x59d5e3));}async[a69_0x1f4961(0xc7)](){const _0x50ea51=a69_0x1f4961,_0x3b73b0={};_0x3b73b0[_0x50ea51(0xf1)]=_0x50ea51(0xfa),_0x3b73b0[_0x50ea51(0xf0)]=_0x50ea51(0xc2);const _0x42050a=_0x3b73b0;try{const _0x596cb6=await helper[_0x50ea51(0xdd)](_0x42050a['NSVeN'],_0x42050a['skBah'],null,null,this.#address);if(_0x596cb6)return!![];}catch(_0x8b76d0){return![];}}async[a69_0x1f4961(0xcf)](){const _0x1e643c=a69_0x1f4961,_0x46c239={'fQeHW':'app:exec','MycKA':_0x1e643c(0xc1),'ktxgv':function(_0x4fd55a,_0x1848f6,_0x524bb0,_0x1098e0){return _0x4fd55a(_0x1848f6,_0x524bb0,_0x1098e0);},'NdZnl':_0x1e643c(0xef),'NMmcC':_0x1e643c(0xeb)},_0x29abc6=await this.#getBinaryPath(),_0x41be23={};_0x41be23[_0x1e643c(0xdf)]='a';const _0x1b2db9=fs['createWriteStream'](this.#logfile,_0x41be23),_0x4bf0b0=await this[_0x1e643c(0xbf)](),_0x240f23=await this['createPercyConfig']();if(!_0x4bf0b0)return![];const _0x57cfeb=[(this.#isApp?_0x46c239[_0x1e643c(0xf6)]:_0x46c239['MycKA'])+':start'];_0x240f23&&_0x57cfeb[_0x1e643c(0xf7)]('-c',_0x240f23);this.#proc=_0x46c239['ktxgv'](spawn,_0x29abc6,_0x57cfeb,{'env':Object[_0x1e643c(0xcd)](process['env'],{'PERCY_TOKEN':_0x4bf0b0,'TH_BUILD_UUID':process[_0x1e643c(0xb6)][testHubConstants[_0x1e643c(0xd5)]['BROWSERSTACK_TESTHUB_UUID']]})}),this.#proc[_0x1e643c(0xe2)]['pipe'](_0x1b2db9),this.#proc['stderr'][_0x1e643c(0xd4)](_0x1b2db9),this[_0x1e643c(0xdb)]=!![];var _0x568224=this;this.#proc['on'](_0x46c239[_0x1e643c(0xe6)],function(_0x5e3152){const _0x12aac1=_0x1e643c;_0x568224[_0x12aac1(0xdb)]=![];});do{const _0x2536db=await this[_0x1e643c(0xc7)]();if(_0x2536db)return logger[_0x1e643c(0xf8)](_0x46c239[_0x1e643c(0xed)]),!![];await this.#sleep(0x3e8);}while(this[_0x1e643c(0xdb)]);return![];}async[a69_0x1f4961(0xda)](){const _0x4e3e51=a69_0x1f4961,_0x273c43={'iGeyS':function(_0xeb48a,_0x13f461){return _0xeb48a(_0x13f461);},'ALVzQ':function(_0x55501b,_0x14ae15,_0x126178){return _0x55501b(_0x14ae15,_0x126178);},'ZmLTK':_0x4e3e51(0xec),'HDEIW':_0x4e3e51(0xef)},_0x3ffe9e=await this.#getBinaryPath();return new Promise((_0x828bf0,_0x26c381)=>{const _0x1caacb=_0x4e3e51,_0x449fcc={'tmWkU':function(_0x573c47,_0x52fbc1){return _0x273c43['iGeyS'](_0x573c47,_0x52fbc1);}},_0x46b602=_0x273c43[_0x1caacb(0xbc)](spawn,_0x3ffe9e,[_0x273c43['ZmLTK']]);_0x46b602['on'](_0x273c43['HDEIW'],_0x5a6a55=>{const _0x44b05c=_0x1caacb;this[_0x44b05c(0xdb)]=![],_0x449fcc[_0x44b05c(0xba)](_0x828bf0,_0x5a6a55);});});}[a69_0x1f4961(0xc3)](){const _0x21a196=a69_0x1f4961;return this[_0x21a196(0xdb)];}async['fetchPercyToken'](){const _0x45f4f4=a69_0x1f4961,_0x42b482={};_0x42b482[_0x45f4f4(0xbd)]='app',_0x42b482[_0x45f4f4(0xe3)]=_0x45f4f4(0xca),_0x42b482['cnylN']=_0x45f4f4(0xfa),_0x42b482[_0x45f4f4(0xd1)]=_0x45f4f4(0xb3);const _0x2aec61=_0x42b482,_0x48e35c=this.#config[_0x45f4f4(0xf2)];try{const _0x13a7ff=this.#isApp?_0x2aec61[_0x45f4f4(0xbd)]:_0x2aec61[_0x45f4f4(0xe3)],_0x2bdbff=await helper[_0x45f4f4(0xdd)](_0x2aec61[_0x45f4f4(0xc6)],_0x45f4f4(0xe5)+_0x48e35c+_0x45f4f4(0xb4)+_0x13a7ff,{},this.#config),_0x2a49ec=_0x2bdbff['data'];return logger['debug'](_0x2aec61[_0x45f4f4(0xd1)]),_0x2a49ec[_0x45f4f4(0xf9)];}catch(_0x1a4da7){return logger[_0x45f4f4(0xc4)](_0x45f4f4(0xbe)+_0x1a4da7),null;}}async[a69_0x1f4961(0xc0)](){const _0x26790c=a69_0x1f4961,_0x555489={'ukkWT':function(_0x240d3b,_0xfc67cd){return _0x240d3b(_0xfc67cd);},'QTqJn':function(_0x565ed4,_0x92ecd2){return _0x565ed4+_0x92ecd2;},'vlfEB':'Percy\x20config\x20created\x20at\x20','JeqSW':'percy.json'};if(!this.#config[_0x26790c(0xc9)])return null;const _0x456449=path['join'](os[_0x26790c(0xcc)](),_0x555489[_0x26790c(0xc5)]),_0x356532=this.#config[_0x26790c(0xc9)];return!_0x356532[_0x26790c(0xe8)]&&(_0x356532[_0x26790c(0xe8)]='2'),new Promise((_0x276902,_0x667534)=>{const _0x460432=_0x26790c;fs[_0x460432(0xbb)](_0x456449,JSON[_0x460432(0xd9)](_0x356532),_0x2a3a9d=>{const _0x590ba9=_0x460432;_0x2a3a9d&&(logger[_0x590ba9(0xc4)](_0x590ba9(0xe7)+_0x2a3a9d),_0x555489[_0x590ba9(0xcb)](_0x276902,null)),logger[_0x590ba9(0xf8)](_0x555489[_0x590ba9(0xf4)](_0x555489['vlfEB'],_0x456449)),_0x555489[_0x590ba9(0xcb)](_0x276902,_0x456449);});});}}module[a69_0x1f4961(0xf3)]=Percy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a70_0x1b9a68=a70_0x2c83;(function(_0xe42a5f,_0x3781b4){const _0x25a0a4=a70_0x2c83,_0x32b04d=_0xe42a5f();while(!![]){try{const _0x2eb0ba=-parseInt(_0x25a0a4(0xec))/0x1*(parseInt(_0x25a0a4(0xe9))/0x2)+-parseInt(_0x25a0a4(0x113))/0x3*(-parseInt(_0x25a0a4(0xd8))/0x4)+-parseInt(_0x25a0a4(0x104))/0x5+-parseInt(_0x25a0a4(0xf1))/0x6*(-parseInt(_0x25a0a4(0xe5))/0x7)+-parseInt(_0x25a0a4(0x136))/0x8*(-parseInt(_0x25a0a4(0xd6))/0x9)+parseInt(_0x25a0a4(0xdb))/0xa+parseInt(_0x25a0a4(0xe2))/0xb*(-parseInt(_0x25a0a4(0xe6))/0xc);if(_0x2eb0ba===_0x3781b4)break;else _0x32b04d['push'](_0x32b04d['shift']());}catch(_0x2a2bbe){_0x32b04d['push'](_0x32b04d['shift']());}}}(a70_0x2e38,0x7b60c));const {https}=require(a70_0x1b9a68(0x120)),url=require(a70_0x1b9a68(0xe1)),yauzl=require(a70_0x1b9a68(0xb7)),fs=require('fs'),path=require('path'),os=require('os'),{spawn}=require(a70_0x1b9a68(0xf4)),HttpsProxyAgent=require('https-proxy-agent'),logger=require('../logger')[a70_0x1b9a68(0xc1)];function a70_0x2e38(){const _0x1602dd=['Error\x20trying\x20to\x20download\x20percy\x20binary','QvHNJ','168SBzBSa','898176iDOzez','SwPeq','AYPSV','52SlpqJI','CoMMr','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response','22168bGyVNy','HnZXi','download','parse','USERNAME','32388eXhyvu','ThSVp','linux','child_process','get','/percy-osx.zip','open','bKxTd','gFTke','GpKXq','chmod','proxyHost','homedir','GpYtn','dCqUR','test','W_OK','iDbyF','/Users/','1757260LdKKkJ','getuid','/percy-win.zip','join','readFileSync','agent','jnaSi','.zip','R_OK','tmpdir','percy.exe','cwd','host','exports','X_OK','21531xJAJNb','/home/','scbUh','--version','ckJfD','0755','/root','MaKjd','proxyPort','kxmhG','SYqxk','percy','darwin','follow-redirects','DikSU','Yonqv','stdout','BiodI','usDPn','hFRat','bzIkG','platform','match','LYzBC','pipe','USER','QMYFQ','Corrupt\x20percy\x20binary,\x20retrying','yuMbv','fileName','function','NdLkR','LNAME','JyDTc','wlvxM','3539640KbaJvb','error','TrjbX','entry','useCaCertificate','data','https://github.com/percy/cli/releases/latest/download','aucIy','TtjnP','yauzl','close','HhJXk','mxTvp','NRzbI','TctKN','XlLmI','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file','jOCWV','validateBinary','winstonLogger','end','USERPROFILE','/percy-linux.zip','CjQmW','NRqCH','lazyEntries','gqaqb','zScCH','TQlvX','TNsAq','accessSync','nNemd','hdLND','openReadStream','LfqUC','QFuSj','oSbiG','readEntry','win32','createWriteStream','9Dsltex','HOMEPATH','244wXEfqD','ASsoV','Ngnqh','7227640tFYxBL','GsViA','ZgYqA','JKMHb','XZBcG','.browserstack','url','44vFWYZO'];a70_0x2e38=function(){return _0x1602dd;};return a70_0x2e38();}class PercyBinary{#hostOS=process[a70_0x1b9a68(0x128)];#httpPath=null;#binaryName=a70_0x1b9a68(0x11e);#orderedPaths=[path[a70_0x1b9a68(0x107)](this.#homedir(),a70_0x1b9a68(0xe0)),process[a70_0x1b9a68(0x10f)](),os[a70_0x1b9a68(0x10d)]()];constructor(){const _0x1ba5c6=a70_0x1b9a68,_0x461b55={};_0x461b55[_0x1ba5c6(0xba)]=_0x1ba5c6(0xb4),_0x461b55[_0x1ba5c6(0xce)]=function(_0x134869,_0x54b974){return _0x134869+_0x54b974;},_0x461b55[_0x1ba5c6(0xb6)]=_0x1ba5c6(0xf6),_0x461b55['GpKXq']=function(_0xfbc816,_0x41565e){return _0xfbc816+_0x41565e;},_0x461b55[_0x1ba5c6(0x12a)]=_0x1ba5c6(0x106),_0x461b55[_0x1ba5c6(0x117)]=_0x1ba5c6(0x10e),_0x461b55['JyDTc']=_0x1ba5c6(0xc4);const _0x5cafaf=_0x461b55,_0x3d795f=_0x5cafaf[_0x1ba5c6(0xba)];if(this.#hostOS[_0x1ba5c6(0x129)](/darwin|mac os/i))this.#httpPath=_0x5cafaf[_0x1ba5c6(0xce)](_0x3d795f,_0x5cafaf[_0x1ba5c6(0xb6)]);else this.#hostOS[_0x1ba5c6(0x129)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x5cafaf[_0x1ba5c6(0xfa)](_0x3d795f,_0x5cafaf[_0x1ba5c6(0x12a)]),this.#binaryName=_0x5cafaf[_0x1ba5c6(0x117)]):this.#httpPath=_0x5cafaf[_0x1ba5c6(0xce)](_0x3d795f,_0x5cafaf[_0x1ba5c6(0x134)]);}#getAvailableDirs(){const _0x4f21c4=a70_0x1b9a68,_0x26da4a={};_0x26da4a[_0x4f21c4(0xf9)]=function(_0x4af332,_0x437b0f){return _0x4af332<_0x437b0f;},_0x26da4a[_0x4f21c4(0xff)]=_0x4f21c4(0xe3);const _0xa03c92=_0x26da4a;for(var _0xbbbc38=0x0;_0xa03c92[_0x4f21c4(0xf9)](_0xbbbc38,this.#orderedPaths['length']);_0xbbbc38++){var _0x4c7751=this.#orderedPaths[_0xbbbc38];if(this.#makePath(_0x4c7751))return _0x4c7751;}throw new Error(_0xa03c92[_0x4f21c4(0xff)]);}#makePath(_0x1954f9){try{return!this.#checkPath(_0x1954f9)&&fs['mkdirSync'](_0x1954f9),!![];}catch{return![];}}#checkPath(_0x2c68cc,_0x482535){const _0x218d31=a70_0x1b9a68,_0x429704={};_0x429704[_0x218d31(0xfe)]=function(_0x460da2,_0xf03b9e){return _0x460da2|_0xf03b9e;},_0x429704[_0x218d31(0xd1)]=function(_0xa771ce,_0x3eba18){return _0xa771ce!==_0x3eba18;},_0x429704[_0x218d31(0xbd)]='undefined';const _0x2723f0=_0x429704;_0x482535=_0x482535||_0x2723f0[_0x218d31(0xfe)](fs[_0x218d31(0x10c)],fs[_0x218d31(0x101)]);try{return fs[_0x218d31(0xcc)](_0x2c68cc,_0x482535),!![];}catch(_0x410543){if(_0x2723f0['QFuSj'](typeof fs[_0x218d31(0xcc)],_0x2723f0['XlLmI']))return![];try{return fs['statSync'](_0x2c68cc),!![];}catch(_0x3f05e8){return![];}}}async['getBinaryPath'](_0xc154a){const _0x4fbc88=a70_0x1b9a68,_0x70b853={};_0x70b853[_0x4fbc88(0xc6)]=_0x4fbc88(0x12e);const _0x13d423=_0x70b853;var _0x4edb68=this.#getAvailableDirs(),_0xc2b03c=path[_0x4fbc88(0x107)](_0x4edb68,this.#binaryName);if(this.#checkPath(_0xc2b03c,fs[_0x4fbc88(0x112)]))return _0xc2b03c;const _0x56a52f=await this[_0x4fbc88(0xee)](_0xc154a,_0x4edb68),_0x41bb9f=await this[_0x4fbc88(0xc0)](_0x56a52f);if(!_0x41bb9f)return logger[_0x4fbc88(0x137)](_0x13d423[_0x4fbc88(0xc6)]),await this[_0x4fbc88(0xee)](_0xc154a,_0x4edb68);return _0x56a52f;}async['validateBinary'](_0x5a32d5){const _0x57170e=a70_0x1b9a68,_0x4d754f={'ESrjE':function(_0x37e292,_0xf2279){return _0x37e292(_0xf2279);},'kxmhG':function(_0x95f692,_0x18015a,_0x3534ac){return _0x95f692(_0x18015a,_0x3534ac);},'LfqUC':_0x57170e(0x116),'ThSVp':_0x57170e(0x13b),'chYRy':_0x57170e(0xb8)},_0xfe0618=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x208223,_0x2fb329)=>{const _0x3b6bff=_0x57170e,_0x589c9c=_0x4d754f[_0x3b6bff(0x11c)](spawn,_0x5a32d5,[_0x4d754f[_0x3b6bff(0xd0)]]);_0x589c9c[_0x3b6bff(0x123)]['on'](_0x4d754f[_0x3b6bff(0xf2)],_0x4b6529=>{const _0x13a3eb=_0x3b6bff;_0xfe0618[_0x13a3eb(0x100)](_0x4b6529)&&_0x4d754f['ESrjE'](_0x208223,!![]);}),_0x589c9c['on'](_0x4d754f['chYRy'],()=>{_0x4d754f['ESrjE'](_0x208223,![]);});});}['download'](_0x35440d,_0x55e4ea){const _0x138ac9=a70_0x1b9a68,_0xc86175={'HhJXk':'Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request','oSbiG':function(_0xe48ce1,_0xbb7c6e){return _0xe48ce1(_0xbb7c6e);},'TNsAq':_0x138ac9(0xbe),'QvHNJ':function(_0x2b97a1,_0x354650){return _0x2b97a1(_0x354650);},'TrjbX':_0x138ac9(0xeb),'hFRat':_0x138ac9(0x118),'TQlvX':_0x138ac9(0x139),'GsViA':_0x138ac9(0x137),'XZBcG':_0x138ac9(0xc2),'lsGKH':function(_0x3a1c93,_0x5e1d47){return _0x3a1c93===_0x5e1d47;},'wlvxM':_0x138ac9(0xb8),'JItmT':function(_0x2e85b0,_0x3a70e3){return _0x2e85b0+_0x3a70e3;},'NRzbI':_0x138ac9(0x10b),'QMYFQ':'Percy\x20download\x20failed\x20to\x20read\x20cert\x20file'};!this.#checkPath(_0x55e4ea)&&fs['mkdirSync'](_0x55e4ea);const _0x4f3189=this.#binaryName,_0x12c4c4=path['join'](_0x55e4ea,_0xc86175['JItmT'](_0x4f3189,_0xc86175[_0x138ac9(0xbb)])),_0x292a31=path[_0x138ac9(0x107)](_0x55e4ea,_0x4f3189),_0x44e67f=fs[_0x138ac9(0xd5)](_0x12c4c4),_0x4ce72c=url[_0x138ac9(0xef)](this.#httpPath);if(_0x35440d[_0x138ac9(0xfc)]&&_0x35440d[_0x138ac9(0x11b)]){const _0x3780ab={};_0x3780ab[_0x138ac9(0x110)]=_0x35440d[_0x138ac9(0xfc)],_0x3780ab['port']=_0x35440d[_0x138ac9(0x11b)],_0x4ce72c[_0x138ac9(0x109)]=new HttpsProxyAgent(_0x3780ab);}if(_0x35440d[_0x138ac9(0x13a)])try{_0x4ce72c['ca']=fs[_0x138ac9(0x108)](_0x35440d[_0x138ac9(0x13a)]);}catch(_0x4ab5f6){logger[_0x138ac9(0x137)](_0xc86175[_0x138ac9(0x12d)],_0x4ab5f6);}return new Promise((_0x14c4e3,_0x5df32e)=>{const _0x5e2e47=_0x138ac9,_0x4d300b={'BlBhS':_0xc86175[_0x5e2e47(0xcb)],'bzIkG':function(_0x38f534,_0x37d447){const _0x23c955=_0x5e2e47;return _0xc86175[_0x23c955(0xe4)](_0x38f534,_0x37d447);},'iDbyF':_0xc86175[_0x5e2e47(0x138)],'akPjw':_0xc86175[_0x5e2e47(0x126)],'gqaqb':_0xc86175[_0x5e2e47(0xca)],'nNemd':_0xc86175[_0x5e2e47(0xdc)],'jOCWV':_0xc86175[_0x5e2e47(0xdf)],'Ngnqh':function(_0x57efbc,_0x40a6b5){return _0xc86175['lsGKH'](_0x57efbc,_0x40a6b5);},'NmfGC':_0xc86175[_0x5e2e47(0x135)]};https[_0x5e2e47(0xf5)](_0x4ce72c,function(_0x510826){const _0x3fee14=_0x5e2e47,_0x504391={'nUfWB':_0x4d300b[_0x3fee14(0x102)],'SYqxk':function(_0x53bb35,_0xa89123){const _0x5614b9=_0x3fee14;return _0x4d300b[_0x5614b9(0x127)](_0x53bb35,_0xa89123);},'yuMbv':_0x4d300b['akPjw'],'usDPn':_0x4d300b[_0x3fee14(0xc8)],'ASsoV':_0x4d300b[_0x3fee14(0xcd)],'CoMMr':_0x4d300b[_0x3fee14(0xbf)],'DikSU':function(_0x546886,_0x1c31c0){const _0xee189a=_0x3fee14;return _0x4d300b[_0xee189a(0x127)](_0x546886,_0x1c31c0);},'BiodI':function(_0x48a90a,_0x597b5f){const _0x9d55f1=_0x3fee14;return _0x4d300b[_0x9d55f1(0xda)](_0x48a90a,_0x597b5f);}};_0x510826['pipe'](_0x44e67f),_0x510826['on'](_0x4d300b['nNemd'],function(_0x1889e9){const _0x315025=_0x3fee14;logger[_0x315025(0x137)](_0x504391['nUfWB'],_0x1889e9),_0x504391[_0x315025(0x11d)](_0x5df32e,_0x1889e9);}),_0x44e67f['on'](_0x4d300b['nNemd'],function(_0x48e78e){const _0x2db30b=_0x3fee14;logger[_0x2db30b(0x137)](_0x4d300b['BlBhS'],_0x48e78e),_0x4d300b['bzIkG'](_0x5df32e,_0x48e78e);}),_0x44e67f['on'](_0x4d300b['NmfGC'],function(){const _0x3143a9=_0x3fee14,_0x181860={'HyuzW':function(_0x2a0d45,_0x1f7b19){const _0x5f4184=a70_0x2c83;return _0x504391[_0x5f4184(0x121)](_0x2a0d45,_0x1f7b19);},'aqfuT':_0x504391['CoMMr'],'NdLkR':function(_0x620f0d,_0x1f2385){const _0x112e3c=a70_0x2c83;return _0x504391[_0x112e3c(0x124)](_0x620f0d,_0x1f2385);}},_0x11c099={};_0x11c099[_0x3143a9(0xc7)]=!![],yauzl[_0x3143a9(0xf7)](_0x12c4c4,_0x11c099,function(_0x45550b,_0x5582c8){const _0x2f5d42=_0x3143a9,_0x3db2a6={'jnaSi':function(_0xb3ce30,_0xdfb9fa){const _0x5358b5=a70_0x2c83;return _0x504391[_0x5358b5(0x11d)](_0xb3ce30,_0xdfb9fa);},'MaKjd':_0x504391[_0x2f5d42(0x12f)]};_0x45550b&&_0x504391[_0x2f5d42(0x11d)](_0x5df32e,_0x45550b),_0x5582c8[_0x2f5d42(0xd3)](),_0x5582c8['on'](_0x504391[_0x2f5d42(0x125)],_0x49b1ff=>{const _0x41de59=_0x2f5d42,_0x1a5742={'syktd':function(_0x2167a7,_0x29b254){return _0x181860['HyuzW'](_0x2167a7,_0x29b254);},'RvHZa':_0x181860['aqfuT']};if(/\/$/[_0x41de59(0x100)](_0x49b1ff['fileName']))_0x5582c8[_0x41de59(0xd3)]();else{const _0x18395d=fs['createWriteStream'](path[_0x41de59(0x107)](_0x55e4ea,_0x49b1ff[_0x41de59(0x130)]));_0x5582c8[_0x41de59(0xcf)](_0x49b1ff,function(_0x38bd29,_0x5c621a){const _0x12442e=_0x41de59;_0x38bd29&&_0x1a5742['syktd'](_0x5df32e,_0x45550b),_0x5c621a['on'](_0x1a5742['RvHZa'],function(){const _0x2e31ec=a70_0x2c83;_0x18395d[_0x2e31ec(0xb8)](),_0x5582c8[_0x2e31ec(0xd3)]();}),_0x5c621a[_0x12442e(0x12b)](_0x18395d);}),_0x181860[_0x41de59(0x132)](_0x49b1ff[_0x41de59(0x130)],_0x4f3189)&&_0x5582c8[_0x41de59(0xb8)]();}}),_0x5582c8['on'](_0x504391[_0x2f5d42(0xd9)],_0x24a8a4=>{const _0xe82fa5=_0x2f5d42;_0x3db2a6[_0xe82fa5(0x10a)](_0x5df32e,_0x24a8a4);}),_0x5582c8['once'](_0x504391[_0x2f5d42(0xea)],()=>{const _0x59b3ad=_0x2f5d42,_0x19ed9c={'oEeaH':function(_0x30a483,_0x512224){return _0x3db2a6['jnaSi'](_0x30a483,_0x512224);}};fs[_0x59b3ad(0xfb)](_0x292a31,_0x3db2a6[_0x59b3ad(0x11a)],function(_0x286b3b){_0x286b3b&&_0x19ed9c['oEeaH'](_0x5df32e,_0x286b3b),_0x19ed9c['oEeaH'](_0x14c4e3,_0x292a31);}),_0x5582c8['close']();});});});})['on'](_0xc86175[_0x5e2e47(0xdc)],function(_0x48e686){const _0x41b9fc=_0x5e2e47;logger[_0x41b9fc(0x137)](_0xc86175[_0x41b9fc(0xb9)],_0x48e686),_0xc86175[_0x41b9fc(0xd2)](_0x5df32e,_0x48e686);});});}#homedir(){const _0x25ee64=a70_0x1b9a68,_0x2eb41f={};_0x2eb41f[_0x25ee64(0xf8)]=function(_0x574bc4,_0x13a98b){return _0x574bc4===_0x13a98b;},_0x2eb41f[_0x25ee64(0xdd)]=_0x25ee64(0x131),_0x2eb41f[_0x25ee64(0xc5)]=function(_0x1d4e35,_0x55108b){return _0x1d4e35===_0x55108b;},_0x2eb41f[_0x25ee64(0xe8)]=_0x25ee64(0xd4),_0x2eb41f[_0x25ee64(0xbc)]=function(_0x1df823,_0x22912d){return _0x1df823+_0x22912d;},_0x2eb41f[_0x25ee64(0xc9)]=_0x25ee64(0x11f),_0x2eb41f['JKMHb']=function(_0x53f6ae,_0x3e0ad9){return _0x53f6ae+_0x3e0ad9;},_0x2eb41f['YLPyh']=_0x25ee64(0x103),_0x2eb41f[_0x25ee64(0xed)]=function(_0x4d01ef,_0x199836){return _0x4d01ef===_0x199836;},_0x2eb41f[_0x25ee64(0x122)]=_0x25ee64(0xf3),_0x2eb41f[_0x25ee64(0x115)]=_0x25ee64(0x119),_0x2eb41f['aucIy']=_0x25ee64(0x114),_0x2eb41f[_0x25ee64(0xe7)]=function(_0x89a8e0,_0x4641dc){return _0x89a8e0||_0x4641dc;};const _0x2cce28=_0x2eb41f;if(_0x2cce28[_0x25ee64(0xf8)](typeof os[_0x25ee64(0xfd)],_0x2cce28[_0x25ee64(0xdd)]))return os[_0x25ee64(0xfd)]();const _0x4ee858=process['env'],_0x4a218e=_0x4ee858['HOME'],_0x8c53e2=_0x4ee858['LOGNAME']||_0x4ee858[_0x25ee64(0x12c)]||_0x4ee858[_0x25ee64(0x133)]||_0x4ee858[_0x25ee64(0xf0)];if(_0x2cce28[_0x25ee64(0xc5)](process[_0x25ee64(0x128)],_0x2cce28[_0x25ee64(0xe8)]))return _0x4ee858[_0x25ee64(0xc3)]||_0x2cce28[_0x25ee64(0xbc)](_0x4ee858['HOMEDRIVE'],_0x4ee858[_0x25ee64(0xd7)])||_0x4a218e||null;if(_0x2cce28[_0x25ee64(0xf8)](process[_0x25ee64(0x128)],_0x2cce28[_0x25ee64(0xc9)]))return _0x4a218e||(_0x8c53e2?_0x2cce28[_0x25ee64(0xde)](_0x2cce28['YLPyh'],_0x8c53e2):null);if(_0x2cce28['HnZXi'](process[_0x25ee64(0x128)],_0x2cce28[_0x25ee64(0x122)]))return _0x4a218e||(_0x2cce28[_0x25ee64(0xed)](process[_0x25ee64(0x105)](),0x0)?_0x2cce28[_0x25ee64(0x115)]:_0x8c53e2?_0x2cce28[_0x25ee64(0xbc)](_0x2cce28[_0x25ee64(0xb5)],_0x8c53e2):null);return _0x2cce28['SwPeq'](_0x4a218e,null);}}function a70_0x2c83(_0x33eb77,_0xc4c64e){const _0x2e38b2=a70_0x2e38();return a70_0x2c83=function(_0x2c8375,_0xd962f4){_0x2c8375=_0x2c8375-0xb4;let _0x230368=_0x2e38b2[_0x2c8375];return _0x230368;},a70_0x2c83(_0x33eb77,_0xc4c64e);}module[a70_0x1b9a68(0x111)]=PercyBinary;
|
|
1
|
+
const a70_0x34047a=a70_0x5410;function a70_0x39a3(){const _0x439e83=['KglJh','14kYHzUH','mCNjA','exports','DexSr','XkkgC','homedir','https-proxy-agent','0755','mkdirSync','cwd','DMEmB','join','readFileSync','port','close','.browserstack','url','entry','KTMon','chmod','path','JRgiJ','11BguPne','/percy-osx.zip','getBinaryPath','proxyPort','download','TlwTU','ZyHek','Error\x20trying\x20to\x20download\x20percy\x20binary','AeikZ','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response','vTCow','UfDwe','67296crnQEQ','niCyr','validateBinary','jmnWa','ZPDkv','VBkhw','open','proxyHost','/percy-win.zip','zlRXq','dmoIc','../logger','percy.exe','undefined','vXotA','OwjUH','wepFq','ihNXa','end','match','env','KLhHg','useCaCertificate','ecjmy','parse','iAtob','ESwLM','darwin','AOEfj','get','LOGNAME','statSync','VrOsd','696qNRiil','VCsqB','test','beYQb','40465gCCLIe','SsFTa','USER','length','YPCjA','zzXmm','DwNUn','69WTtzAd','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file','uIHDz','wHcVE','host','stdout','vAsHa','child_process','tmpdir','X_OK','xwlof','97738RXDLzW','dnFMg','byMYq','1137450thdTFZ','mpUHe','64602oOWXPW','error','HOMEPATH','AhyRA','uDEpJ','NEtlX','linux','yOQUr','6102440eJHQTZ','nLFNx','FWBTM','LNAME','--version','LOsqd','https://github.com/percy/cli/releases/latest/download','createWriteStream','dcAfa','PhKTG','29991036PuptpG','readEntry','vDQCs','lazyEntries','HsXDi','YPjwg','/Users/','platform','mVMBe','1576RPEtTh','win32','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file','mnISw','iqiTa','vsnZv','fileName','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request','HOME','rHCXz','rgKfJ','OfdBk','EdCuC','pipe','W_OK','percy'];a70_0x39a3=function(){return _0x439e83;};return a70_0x39a3();}(function(_0x927037,_0x23de0b){const _0x2ec84b=a70_0x5410,_0x41e822=_0x927037();while(!![]){try{const _0x1946eb=parseInt(_0x2ec84b(0x16e))/0x1+-parseInt(_0x2ec84b(0x16b))/0x2*(parseInt(_0x2ec84b(0x160))/0x3)+-parseInt(_0x2ec84b(0x155))/0x4*(-parseInt(_0x2ec84b(0x159))/0x5)+parseInt(_0x2ec84b(0x134))/0x6*(-parseInt(_0x2ec84b(0x112))/0x7)+parseInt(_0x2ec84b(0x101))/0x8*(parseInt(_0x2ec84b(0x170))/0x9)+parseInt(_0x2ec84b(0x178))/0xa+-parseInt(_0x2ec84b(0x128))/0xb*(parseInt(_0x2ec84b(0xf8))/0xc);if(_0x1946eb===_0x23de0b)break;else _0x41e822['push'](_0x41e822['shift']());}catch(_0x596aa4){_0x41e822['push'](_0x41e822['shift']());}}}(a70_0x39a3,0xe1a6e));const {https}=require('follow-redirects'),url=require(a70_0x34047a(0x122)),yauzl=require('yauzl'),fs=require('fs'),path=require(a70_0x34047a(0x126)),os=require('os'),{spawn}=require(a70_0x34047a(0x167)),HttpsProxyAgent=require(a70_0x34047a(0x118)),logger=require(a70_0x34047a(0x13f))['winstonLogger'];class PercyBinary{#hostOS=process[a70_0x34047a(0xff)];#httpPath=null;#binaryName=a70_0x34047a(0x110);#orderedPaths=[path[a70_0x34047a(0x11d)](this.#homedir(),a70_0x34047a(0x121)),process[a70_0x34047a(0x11b)](),os[a70_0x34047a(0x168)]()];constructor(){const _0x116e66=a70_0x34047a,_0xbfa409={};_0xbfa409[_0x116e66(0xfc)]=_0x116e66(0x17e),_0xbfa409['JRgiJ']=function(_0xfdfeba,_0xdc8b96){return _0xfdfeba+_0xdc8b96;},_0xbfa409[_0x116e66(0x11c)]=_0x116e66(0x129),_0xbfa409[_0x116e66(0x16a)]=_0x116e66(0x13c),_0xbfa409['OwjUH']=_0x116e66(0x140),_0xbfa409[_0x116e66(0x135)]=function(_0x3b95c1,_0x28b250){return _0x3b95c1+_0x28b250;},_0xbfa409[_0x116e66(0x111)]='/percy-linux.zip';const _0x39c2a6=_0xbfa409,_0x26e1f1=_0x39c2a6['HsXDi'];if(this.#hostOS[_0x116e66(0x147)](/darwin|mac os/i))this.#httpPath=_0x39c2a6[_0x116e66(0x127)](_0x26e1f1,_0x39c2a6[_0x116e66(0x11c)]);else this.#hostOS['match'](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x39c2a6[_0x116e66(0x127)](_0x26e1f1,_0x39c2a6[_0x116e66(0x16a)]),this.#binaryName=_0x39c2a6[_0x116e66(0x143)]):this.#httpPath=_0x39c2a6[_0x116e66(0x135)](_0x26e1f1,_0x39c2a6[_0x116e66(0x111)]);}#getAvailableDirs(){const _0x3c2d5a=a70_0x34047a,_0x489e20={};_0x489e20[_0x3c2d5a(0x145)]=function(_0x40d5f5,_0x290878){return _0x40d5f5<_0x290878;},_0x489e20['rHCXz']=_0x3c2d5a(0x12f);const _0x350394=_0x489e20;for(var _0x3278d9=0x0;_0x350394[_0x3c2d5a(0x145)](_0x3278d9,this.#orderedPaths[_0x3c2d5a(0x15c)]);_0x3278d9++){var _0x15cf43=this.#orderedPaths[_0x3278d9];if(this.#makePath(_0x15cf43))return _0x15cf43;}throw new Error(_0x350394[_0x3c2d5a(0x10a)]);}#makePath(_0x303bdb){try{return!this.#checkPath(_0x303bdb)&&fs['mkdirSync'](_0x303bdb),!![];}catch{return![];}}#checkPath(_0x3f685a,_0x2b66a8){const _0x3cfa84=a70_0x34047a,_0x3cf0b9={};_0x3cf0b9[_0x3cfa84(0xf6)]=function(_0x49ffca,_0x85b9c3){return _0x49ffca|_0x85b9c3;},_0x3cf0b9[_0x3cfa84(0x138)]=function(_0x5a493d,_0x44c5c4){return _0x5a493d!==_0x44c5c4;},_0x3cf0b9['EdCuC']=_0x3cfa84(0x141);const _0x1d864d=_0x3cf0b9;_0x2b66a8=_0x2b66a8||_0x1d864d[_0x3cfa84(0xf6)](fs['R_OK'],fs[_0x3cfa84(0x10f)]);try{return fs['accessSync'](_0x3f685a,_0x2b66a8),!![];}catch(_0x2da5da){if(_0x1d864d[_0x3cfa84(0x138)](typeof fs['accessSync'],_0x1d864d[_0x3cfa84(0x10d)]))return![];try{return fs[_0x3cfa84(0x153)](_0x3f685a),!![];}catch(_0x1824a2){return![];}}}async[a70_0x34047a(0x12a)](_0x55c3f1){const _0x4f0c1d=a70_0x34047a,_0x12f287={};_0x12f287[_0x4f0c1d(0x16d)]='Corrupt\x20percy\x20binary,\x20retrying';const _0x175ccb=_0x12f287;var _0x2e0f59=this.#getAvailableDirs(),_0x5b6210=path[_0x4f0c1d(0x11d)](_0x2e0f59,this.#binaryName);if(this.#checkPath(_0x5b6210,fs[_0x4f0c1d(0x169)]))return _0x5b6210;const _0xd81d92=await this[_0x4f0c1d(0x12c)](_0x55c3f1,_0x2e0f59),_0x44d486=await this['validateBinary'](_0xd81d92);if(!_0x44d486)return logger['error'](_0x175ccb['byMYq']),await this[_0x4f0c1d(0x12c)](_0x55c3f1,_0x2e0f59);return _0xd81d92;}async[a70_0x34047a(0x136)](_0x382b20){const _0xa56057=a70_0x34047a,_0x45e8fa={'FWBTM':function(_0x3b4854,_0x2a5c98){return _0x3b4854(_0x2a5c98);},'ecjmy':function(_0x427d77,_0x4d653e){return _0x427d77(_0x4d653e);},'PhKTG':function(_0x77ef1d,_0x597e68,_0x251a9c){return _0x77ef1d(_0x597e68,_0x251a9c);},'zzXmm':_0xa56057(0x17c),'wepFq':'data','iAtob':_0xa56057(0x120)},_0x5c883b=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x5a246b,_0x1afb22)=>{const _0x4774d6=_0xa56057,_0x2362f4={'vAsHa':function(_0x519e2d,_0x551f63){const _0x18e1b6=a70_0x5410;return _0x45e8fa[_0x18e1b6(0x14b)](_0x519e2d,_0x551f63);}},_0x3b699f=_0x45e8fa[_0x4774d6(0xf7)](spawn,_0x382b20,[_0x45e8fa[_0x4774d6(0x15e)]]);_0x3b699f[_0x4774d6(0x165)]['on'](_0x45e8fa[_0x4774d6(0x144)],_0x3c15b9=>{const _0x1ccc60=_0x4774d6;_0x5c883b['test'](_0x3c15b9)&&_0x45e8fa[_0x1ccc60(0x17a)](_0x5a246b,!![]);}),_0x3b699f['on'](_0x45e8fa[_0x4774d6(0x14d)],()=>{const _0x4a7196=_0x4774d6;_0x2362f4[_0x4a7196(0x166)](_0x5a246b,![]);});});}[a70_0x34047a(0x12c)](_0x5e44e2,_0x31978e){const _0x1ac69b=a70_0x34047a,_0x3b7463={'eplRx':_0x1ac69b(0x131),'iqiTa':function(_0x134fd8,_0x31ed7a){return _0x134fd8(_0x31ed7a);},'VhKFm':_0x1ac69b(0x161),'VrOsd':_0x1ac69b(0x119),'CWdVm':_0x1ac69b(0x146),'VBkhw':function(_0x224e35,_0x4bf49f){return _0x224e35===_0x4bf49f;},'epyTN':_0x1ac69b(0x123),'XkkgC':_0x1ac69b(0x171),'UVefD':_0x1ac69b(0x120),'vsnZv':_0x1ac69b(0x108),'uIHDz':function(_0x8a0ac0,_0x5490fa){return _0x8a0ac0+_0x5490fa;},'uZgcB':'.zip','KTMon':_0x1ac69b(0x103)};!this.#checkPath(_0x31978e)&&fs[_0x1ac69b(0x11a)](_0x31978e);const _0x1ef19d=this.#binaryName,_0x4d69a4=path[_0x1ac69b(0x11d)](_0x31978e,_0x3b7463[_0x1ac69b(0x162)](_0x1ef19d,_0x3b7463['uZgcB'])),_0x857241=path[_0x1ac69b(0x11d)](_0x31978e,_0x1ef19d),_0x234eae=fs[_0x1ac69b(0xf5)](_0x4d69a4),_0x591a50=url[_0x1ac69b(0x14c)](this.#httpPath);if(_0x5e44e2['proxyHost']&&_0x5e44e2[_0x1ac69b(0x12b)]){const _0xdf3214={};_0xdf3214[_0x1ac69b(0x164)]=_0x5e44e2[_0x1ac69b(0x13b)],_0xdf3214[_0x1ac69b(0x11f)]=_0x5e44e2[_0x1ac69b(0x12b)],_0x591a50['agent']=new HttpsProxyAgent(_0xdf3214);}if(_0x5e44e2[_0x1ac69b(0x14a)])try{_0x591a50['ca']=fs[_0x1ac69b(0x11e)](_0x5e44e2['useCaCertificate']);}catch(_0x229d56){logger['error'](_0x3b7463[_0x1ac69b(0x124)],_0x229d56);}return new Promise((_0x3049e0,_0x2aaf39)=>{const _0x56600f=_0x1ac69b,_0x220551={'LOsqd':_0x3b7463['eplRx'],'YPjwg':function(_0x407e74,_0x3faefc){const _0xd03ed=a70_0x5410;return _0x3b7463[_0xd03ed(0x105)](_0x407e74,_0x3faefc);},'TlwTU':_0x3b7463['VhKFm'],'AOEfj':function(_0x4e58fe,_0x1de6e6){const _0x4a9ba4=a70_0x5410;return _0x3b7463[_0x4a9ba4(0x105)](_0x4e58fe,_0x1de6e6);},'wHcVE':_0x3b7463[_0x56600f(0x154)],'zlRXq':_0x3b7463['CWdVm'],'YPCjA':function(_0x382118,_0x41331a){const _0x28654e=_0x56600f;return _0x3b7463[_0x28654e(0x139)](_0x382118,_0x41331a);},'VCsqB':function(_0x3f425d,_0x415a55){const _0x52570c=_0x56600f;return _0x3b7463[_0x52570c(0x105)](_0x3f425d,_0x415a55);},'mVMBe':_0x3b7463['epyTN'],'DwNUn':_0x3b7463['XkkgC'],'nLFNx':_0x3b7463['UVefD'],'AhyRA':_0x3b7463[_0x56600f(0x106)]};https[_0x56600f(0x151)](_0x591a50,function(_0x17edbb){const _0x504d5c=_0x56600f;_0x17edbb[_0x504d5c(0x10e)](_0x234eae),_0x17edbb['on'](_0x220551[_0x504d5c(0x15f)],function(_0x54e3d7){const _0x34f929=_0x504d5c;logger[_0x34f929(0x171)](_0x220551[_0x34f929(0x17d)],_0x54e3d7),_0x220551[_0x34f929(0xfd)](_0x2aaf39,_0x54e3d7);}),_0x234eae['on'](_0x220551[_0x504d5c(0x15f)],function(_0x172774){const _0x54c3fd=_0x504d5c;logger[_0x54c3fd(0x171)](_0x220551[_0x54c3fd(0x12d)],_0x172774),_0x220551[_0x54c3fd(0x150)](_0x2aaf39,_0x172774);}),_0x234eae['on'](_0x220551[_0x504d5c(0x179)],function(){const _0x55b4df=_0x504d5c,_0x2e2b2a={'pOzjd':_0x220551[_0x55b4df(0x163)],'mpUHe':function(_0xf822a5,_0x242dbf){const _0x7bd4ba=_0x55b4df;return _0x220551[_0x7bd4ba(0xfd)](_0xf822a5,_0x242dbf);},'yOQUr':_0x220551[_0x55b4df(0x13d)],'ZyHek':function(_0x174113,_0x586fb5){const _0x46b0d6=_0x55b4df;return _0x220551[_0x46b0d6(0x15d)](_0x174113,_0x586fb5);},'dnFMg':function(_0x4896e9,_0xb207ca){const _0x793df2=_0x55b4df;return _0x220551[_0x793df2(0x156)](_0x4896e9,_0xb207ca);},'mnISw':_0x220551[_0x55b4df(0x100)],'CYNZg':_0x220551['DwNUn']},_0x3f227c={};_0x3f227c[_0x55b4df(0xfb)]=!![],yauzl[_0x55b4df(0x13a)](_0x4d69a4,_0x3f227c,function(_0x2a0f1f,_0x375039){const _0x3ce20b=_0x55b4df,_0x9667b9={'jmnWa':function(_0x282787,_0x3b7340){const _0x5a18eb=a70_0x5410;return _0x2e2b2a[_0x5a18eb(0x16f)](_0x282787,_0x3b7340);},'UfDwe':_0x2e2b2a['yOQUr'],'xNMNx':function(_0x14dc1c,_0x2dade3){const _0x48e399=a70_0x5410;return _0x2e2b2a[_0x48e399(0x12e)](_0x14dc1c,_0x2dade3);},'NEtlX':function(_0x3b4e8f,_0x13b075){const _0x107c83=a70_0x5410;return _0x2e2b2a[_0x107c83(0x16f)](_0x3b4e8f,_0x13b075);}};_0x2a0f1f&&_0x2e2b2a[_0x3ce20b(0x16c)](_0x2aaf39,_0x2a0f1f),_0x375039['readEntry'](),_0x375039['on'](_0x2e2b2a[_0x3ce20b(0x104)],_0x4a20c8=>{const _0xa9fc57=_0x3ce20b,_0x197c33={'ESwLM':function(_0x56fb65,_0x2e48a3){return _0x9667b9['jmnWa'](_0x56fb65,_0x2e48a3);},'vDQCs':_0x9667b9[_0xa9fc57(0x133)]};if(/\/$/[_0xa9fc57(0x157)](_0x4a20c8['fileName']))_0x375039[_0xa9fc57(0xf9)]();else{const _0x118b26=fs['createWriteStream'](path[_0xa9fc57(0x11d)](_0x31978e,_0x4a20c8[_0xa9fc57(0x107)]));_0x375039['openReadStream'](_0x4a20c8,function(_0x4969f5,_0x122082){const _0x9e1497=_0xa9fc57;_0x4969f5&&_0x197c33[_0x9e1497(0x14e)](_0x2aaf39,_0x2a0f1f),_0x122082['on'](_0x197c33[_0x9e1497(0xfa)],function(){const _0x1c821e=_0x9e1497;_0x118b26[_0x1c821e(0x120)](),_0x375039[_0x1c821e(0xf9)]();}),_0x122082[_0x9e1497(0x10e)](_0x118b26);}),_0x9667b9['xNMNx'](_0x4a20c8[_0xa9fc57(0x107)],_0x1ef19d)&&_0x375039[_0xa9fc57(0x120)]();}}),_0x375039['on'](_0x2e2b2a['CYNZg'],_0x2cb1b4=>{const _0x1cb91b=_0x3ce20b;_0x9667b9[_0x1cb91b(0x175)](_0x2aaf39,_0x2cb1b4);}),_0x375039['once'](_0x2e2b2a[_0x3ce20b(0x177)],()=>{const _0x228dc3=_0x3ce20b;fs[_0x228dc3(0x125)](_0x857241,_0x2e2b2a['pOzjd'],function(_0x51b556){const _0x320eb6=_0x228dc3;_0x51b556&&_0x9667b9[_0x320eb6(0x137)](_0x2aaf39,_0x51b556),_0x9667b9[_0x320eb6(0x137)](_0x3049e0,_0x857241);}),_0x375039[_0x228dc3(0x120)]();});});});})['on'](_0x3b7463[_0x56600f(0x116)],function(_0x34d6c0){const _0x1272d1=_0x56600f;logger['error'](_0x220551[_0x1272d1(0x173)],_0x34d6c0),_0x220551[_0x1272d1(0x150)](_0x2aaf39,_0x34d6c0);});});}#homedir(){const _0xe5267a=a70_0x34047a,_0xf82722={};_0xf82722[_0xe5267a(0x15a)]=function(_0x4dd971,_0x1df415){return _0x4dd971===_0x1df415;},_0xf82722[_0xe5267a(0x142)]='function',_0xf82722[_0xe5267a(0x130)]=_0xe5267a(0x102),_0xf82722['ANfHQ']=function(_0x4d06a7,_0x2b77a2){return _0x4d06a7+_0x2b77a2;},_0xf82722[_0xe5267a(0x115)]=function(_0x2bb981,_0x2ac710){return _0x2bb981===_0x2ac710;},_0xf82722['vTCow']=_0xe5267a(0x14f),_0xf82722[_0xe5267a(0x13e)]=function(_0x515247,_0x32edc1){return _0x515247+_0x32edc1;},_0xf82722[_0xe5267a(0x113)]=_0xe5267a(0xfe),_0xf82722[_0xe5267a(0x10c)]=function(_0x4f9f31,_0x19875c){return _0x4f9f31===_0x19875c;},_0xf82722['uDEpJ']=_0xe5267a(0x176),_0xf82722[_0xe5267a(0x158)]='/root',_0xf82722['rgKfJ']='/home/',_0xf82722[_0xe5267a(0x149)]=function(_0x233fd9,_0x1c8b86){return _0x233fd9||_0x1c8b86;};const _0x3996ae=_0xf82722;if(_0x3996ae['SsFTa'](typeof os['homedir'],_0x3996ae[_0xe5267a(0x142)]))return os[_0xe5267a(0x117)]();const _0x24cae6=process[_0xe5267a(0x148)],_0x1b0ca9=_0x24cae6[_0xe5267a(0x109)],_0x4517c1=_0x24cae6[_0xe5267a(0x152)]||_0x24cae6[_0xe5267a(0x15b)]||_0x24cae6[_0xe5267a(0x17b)]||_0x24cae6['USERNAME'];if(_0x3996ae[_0xe5267a(0x15a)](process[_0xe5267a(0xff)],_0x3996ae[_0xe5267a(0x130)]))return _0x24cae6['USERPROFILE']||_0x3996ae['ANfHQ'](_0x24cae6['HOMEDRIVE'],_0x24cae6[_0xe5267a(0x172)])||_0x1b0ca9||null;if(_0x3996ae[_0xe5267a(0x115)](process[_0xe5267a(0xff)],_0x3996ae[_0xe5267a(0x132)]))return _0x1b0ca9||(_0x4517c1?_0x3996ae[_0xe5267a(0x13e)](_0x3996ae[_0xe5267a(0x113)],_0x4517c1):null);if(_0x3996ae[_0xe5267a(0x10c)](process[_0xe5267a(0xff)],_0x3996ae[_0xe5267a(0x174)]))return _0x1b0ca9||(_0x3996ae['DexSr'](process['getuid'](),0x0)?_0x3996ae[_0xe5267a(0x158)]:_0x4517c1?_0x3996ae['dmoIc'](_0x3996ae[_0xe5267a(0x10b)],_0x4517c1):null);return _0x3996ae[_0xe5267a(0x149)](_0x1b0ca9,null);}}function a70_0x5410(_0x30c75f,_0x1c476a){const _0x39a339=a70_0x39a3();return a70_0x5410=function(_0x541056,_0x4ef962){_0x541056=_0x541056-0xf5;let _0x38f574=_0x39a339[_0x541056];return _0x38f574;},a70_0x5410(_0x30c75f,_0x1c476a);}module[a70_0x34047a(0x114)]=PercyBinary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a71_0x1cb007=a71_0x221b;(function(_0x4dc1f1,_0x372143){var _0xf1cd4e=a71_0x221b,_0x2e6895=_0x4dc1f1();while(!![]){try{var _0x5ac90e=parseInt(_0xf1cd4e(0x8a))/0x1*(-parseInt(_0xf1cd4e(0x84))/0x2)+parseInt(_0xf1cd4e(0x8d))/0x3*(-parseInt(_0xf1cd4e(0x8b))/0x4)+-parseInt(_0xf1cd4e(0x85))/0x5*(-parseInt(_0xf1cd4e(0x8f))/0x6)+parseInt(_0xf1cd4e(0x8e))/0x7*(-parseInt(_0xf1cd4e(0x89))/0x8)+parseInt(_0xf1cd4e(0x87))/0x9*(-parseInt(_0xf1cd4e(0x88))/0xa)+-parseInt(_0xf1cd4e(0x83))/0xb*(-parseInt(_0xf1cd4e(0x8c))/0xc)+parseInt(_0xf1cd4e(0x91))/0xd*(parseInt(_0xf1cd4e(0x93))/0xe);if(_0x5ac90e===_0x372143)break;else _0x2e6895['push'](_0x2e6895['shift']());}catch(_0x5bfcc1){_0x2e6895['push'](_0x2e6895['shift']());}}}(a71_0xf86c,0xb88e6));function a71_0x221b(_0x53ea49,_0x204532){var _0xf86c59=a71_0xf86c();return a71_0x221b=function(_0x221b7f,_0x1ed5a0){_0x221b7f=_0x221b7f-0x83;var _0xa6d908=_0xf86c59[_0x221b7f];return _0xa6d908;},a71_0x221b(_0x53ea49,_0x204532);}function a71_0xf86c(){var _0x40a03f=['60mOrWMo','1704onwCGS','12227DjOqlZ','43212JvceFF','48sumDXF','183nwcugV','5439wNkLkr','6766212RrQMaU','getName','247kLfvpO','get','433818yquosC','1581811VWwpak','74YQoljW','5AzaVpu','increment','388251qAcgFb'];a71_0xf86c=function(){return _0x40a03f;};return a71_0xf86c();}class PercyCaptureMap{#map={};[a71_0x1cb007(0x86)](_0x16f13b,_0x5b9a2b){!this.#map[_0x16f13b]&&(this.#map[_0x16f13b]={}),!this.#map[_0x16f13b][_0x5b9a2b]&&(this.#map[_0x16f13b][_0x5b9a2b]=0x0),this.#map[_0x16f13b][_0x5b9a2b]++;}[a71_0x1cb007(0x90)](_0x2724f9,_0x370940){var _0x2af19a=a71_0x1cb007;return _0x2724f9+'-'+_0x370940+'-'+this[_0x2af19a(0x92)](_0x2724f9,_0x370940);}[a71_0x1cb007(0x92)](_0x2a51bb,_0x181f75){if(!this.#map[_0x2a51bb])return 0x0;if(!this.#map[_0x2a51bb][_0x181f75])return 0x0;return this.#map[_0x2a51bb][_0x181f75];}}module['exports']=PercyCaptureMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a72_0x51ef42=a72_0x593b;(function(_0x228f23,_0x2c8350){var _0xf81b75=a72_0x593b,_0x5b95ba=_0x228f23();while(!![]){try{var _0x33d083=-parseInt(_0xf81b75(0x16d))/0x1+parseInt(_0xf81b75(0x166))/0x2+parseInt(_0xf81b75(0x16c))/0x3*(-parseInt(_0xf81b75(0x170))/0x4)+-parseInt(_0xf81b75(0x16b))/0x5+parseInt(_0xf81b75(0x165))/0x6+-parseInt(_0xf81b75(0x164))/0x7+parseInt(_0xf81b75(0x16e))/0x8*(parseInt(_0xf81b75(0x169))/0x9);if(_0x33d083===_0x2c8350)break;else _0x5b95ba['push'](_0x5b95ba['shift']());}catch(_0x273704){_0x5b95ba['push'](_0x5b95ba['shift']());}}}(a72_0x43a9,0x1fe6b));var a72_0xb6097f={};a72_0xb6097f[a72_0x51ef42(0x16a)]=[a72_0x51ef42(0x167)],a72_0xb6097f['element']=[a72_0x51ef42(0x162),a72_0x51ef42(0x163)];var a72_0x2b2b6a={};a72_0x2b2b6a[a72_0x51ef42(0x16a)]=[a72_0x51ef42(0x167)];var a72_0x5aa71a={};a72_0x5aa71a['element']=['click'];function a72_0x593b(_0x2ee9d4,_0x38d3f9){var _0x43a9da=a72_0x43a9();return a72_0x593b=function(_0x593b69,_0x3c0158){_0x593b69=_0x593b69-0x161;var _0x554ad4=_0x43a9da[_0x593b69];return _0x554ad4;},a72_0x593b(_0x2ee9d4,_0x38d3f9);}function a72_0x43a9(){var _0x285a19=['3692ShTewt','exports','click','sendKeys','1239938eeiBDI','900012TGHbAB','269322VcGolT','takeScreenshot','screenshot','541953WAhkjn','driver','375825GLzLdb','699ZXUwVM','47940MRWIBq','48LGdEUb','auto'];a72_0x43a9=function(){return _0x285a19;};return a72_0x43a9();}var a72_0x63ec7b={};a72_0x63ec7b[a72_0x51ef42(0x16f)]=a72_0xb6097f,a72_0x63ec7b[a72_0x51ef42(0x168)]=a72_0x2b2b6a,a72_0x63ec7b[a72_0x51ef42(0x162)]=a72_0x5aa71a,a72_0x63ec7b['testcase']={},a72_0x63ec7b['manual']={},module[a72_0x51ef42(0x161)]=a72_0x63ec7b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a73_0x3d7b02=a73_0x9645;function a73_0x9645(_0x1c62cf,_0x50c890){const _0x4e23af=a73_0x4e23();return a73_0x9645=function(_0x96456d,_0x1118e9){_0x96456d=_0x96456d-0x13c;let _0x34d976=_0x4e23af[_0x96456d];return _0x34d976;},a73_0x9645(_0x1c62cf,_0x50c890);}(function(_0x1e1210,_0x3049f5){const _0x3f0077=a73_0x9645,_0x2fe7f7=_0x1e1210();while(!![]){try{const _0x49e68c=parseInt(_0x3f0077(0x151))/0x1+parseInt(_0x3f0077(0x145))/0x2*(-parseInt(_0x3f0077(0x158))/0x3)+-parseInt(_0x3f0077(0x14b))/0x4*(parseInt(_0x3f0077(0x14f))/0x5)+-parseInt(_0x3f0077(0x14d))/0x6+parseInt(_0x3f0077(0x159))/0x7*(parseInt(_0x3f0077(0x13c))/0x8)+-parseInt(_0x3f0077(0x15d))/0x9+parseInt(_0x3f0077(0x140))/0xa*(parseInt(_0x3f0077(0x144))/0xb);if(_0x49e68c===_0x3049f5)break;else _0x2fe7f7['push'](_0x2fe7f7['shift']());}catch(_0x18a7d2){_0x2fe7f7['push'](_0x2fe7f7['shift']());}}}(a73_0x4e23,0x79049));const tryRequire=function(_0x4087a6,_0x3ee773){const _0x29376d=a73_0x9645,_0x1d513e={'fEMdf':function(_0x534b8a,_0x303b26){return _0x534b8a(_0x303b26);}};try{return _0x1d513e[_0x29376d(0x14e)](require,_0x4087a6);}catch{return _0x3ee773;}},percySnapshot=tryRequire(a73_0x3d7b02(0x13e),null),{percyScreenshot}=tryRequire(a73_0x3d7b02(0x13e),{}),percyAppScreenshot=require(a73_0x3d7b02(0x15f)),{getCurrentTestData}=require('../../helpers/testhub/utils'),PerformanceTester=require(a73_0x3d7b02(0x146)),logger=require(a73_0x3d7b02(0x15e))['winstonLogger'];percySnapshot&&(exports[a73_0x3d7b02(0x156)]=async function(){const _0xa01f29=a73_0x3d7b02,_0x1156af={'oDbqS':function(_0x7cf72a,_0x411d77){return _0x7cf72a!==_0x411d77;},'IURlQ':function(_0x43bace,_0x4ad46f){return _0x43bace>=_0x4ad46f;},'yCLsN':function(_0x3559d2){return _0x3559d2();},'zMXBV':'percy:snapshot'};if(global['browserstackPlatformIndex']&&_0x1156af[_0xa01f29(0x14c)](global['browserstackPlatformIndex'],global[_0xa01f29(0x13f)]))return;const _0x55a218=_0x1156af[_0xa01f29(0x15b)](arguments[_0xa01f29(0x13d)],0x2)?arguments[0x1]:'',_0x7bf59f=_0x1156af['yCLsN'](getCurrentTestData),_0x5946d2={};return _0x5946d2[_0xa01f29(0x150)]=_0x55a218,_0x5946d2[_0xa01f29(0x14a)]=_0x7bf59f[_0xa01f29(0x150)]||'',_0x5946d2['thTestCaseExecutionId']=_0x7bf59f['uuid']||'',_0x5946d2[_0xa01f29(0x15a)]=global[_0xa01f29(0x153)],await PerformanceTester[_0xa01f29(0x149)](_0x1156af[_0xa01f29(0x147)],()=>percySnapshot['apply'](null,arguments),_0x5946d2);});percyScreenshot?exports[a73_0x3d7b02(0x161)]=async function(){const _0x192426=a73_0x3d7b02,_0x32a644={'zJQDq':function(_0xb9dd7,_0x373218){return _0xb9dd7>=_0x373218;},'Jzmyr':function(_0x140c06){return _0x140c06();},'OoRYn':'percy:screenshot'},_0x52bf12=_0x32a644[_0x192426(0x15c)](arguments[_0x192426(0x13d)],0x2)?arguments[0x1]:'',_0x173948=_0x32a644[_0x192426(0x157)](getCurrentTestData),_0xe75d14={};return _0xe75d14[_0x192426(0x150)]=_0x52bf12,_0xe75d14[_0x192426(0x14a)]=_0x173948[_0x192426(0x150)]||'',_0xe75d14[_0x192426(0x142)]=_0x173948['uuid']||'',_0xe75d14[_0x192426(0x15a)]=global[_0x192426(0x153)],await PerformanceTester[_0x192426(0x149)](_0x32a644['OoRYn'],()=>percyScreenshot[_0x192426(0x154)](null,arguments),_0xe75d14);}:exports[a73_0x3d7b02(0x161)]=()=>{const _0x62ead1=a73_0x3d7b02,_0x5b1d30={};_0x5b1d30[_0x62ead1(0x141)]=_0x62ead1(0x160);const _0x5cad3b=_0x5b1d30;logger['error'](_0x5cad3b[_0x62ead1(0x141)]);};exports[a73_0x3d7b02(0x155)]=async function(){const _0x531337=a73_0x3d7b02,_0x1a0da2={'qePZq':function(_0x6152dc,_0xff90d4){return _0x6152dc>=_0xff90d4;},'qgFNm':function(_0x219dc4){return _0x219dc4();},'IYeSF':'percy:screenshot-app'},_0x5b28f1=_0x1a0da2[_0x531337(0x143)](arguments[_0x531337(0x13d)],0x2)?arguments[0x1]:'',_0x516661=_0x1a0da2[_0x531337(0x148)](getCurrentTestData),_0x4f1e92={};return _0x4f1e92[_0x531337(0x150)]=_0x5b28f1,_0x4f1e92[_0x531337(0x14a)]=_0x516661[_0x531337(0x150)]||'',_0x4f1e92[_0x531337(0x142)]=_0x516661[_0x531337(0x152)]||'',_0x4f1e92[_0x531337(0x15a)]=global[_0x531337(0x153)],await PerformanceTester[_0x531337(0x149)](_0x1a0da2['IYeSF'],()=>percyAppScreenshot[_0x531337(0x154)](null,arguments),_0x4f1e92);};function a73_0x4e23(){const _0x4ba06e=['1008zrahcT','3551100YtwRQj','platformIndex','IURlQ','zJQDq','8918937vwpRAO','../logger','@percy/appium-app','Unsupported\x20driver\x20for\x20percy','screenshot','8mcYKed','length','@percy/selenium-webdriver','browserstackPercyBestPlatform','110zhgtNO','QxdLz','thTestCaseExecutionId','qePZq','1541859dxvqWe','4358lbrJUb','../performance-tester','zMXBV','qgFNm','measure','testCase','647984tBWkXk','oDbqS','2177922tqpYAA','fEMdf','10XPJEYw','name','856646GdUMlh','uuid','browserstackPlatformIndex','apply','screenshotApp','snapshot','Jzmyr'];a73_0x4e23=function(){return _0x4ba06e;};return a73_0x4e23();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a74_0x3f4187=a74_0x4548;function a74_0x4548(_0xc97472,_0x3b1ee7){var _0x38cf71=a74_0x38cf();return a74_0x4548=function(_0x454866,_0x399071){_0x454866=_0x454866-0xc5;var _0x25a08e=_0x38cf71[_0x454866];return _0x25a08e;},a74_0x4548(_0xc97472,_0x3b1ee7);}function a74_0x38cf(){var _0x132004=['5720715uaUHPt','1237411mYYWfs','exports','554408HcPDZn','150IDmggY','62010IkGJie','1906392CrVoMJ','1196944XWYJqB','./Percy','28294GVgqRe'];a74_0x38cf=function(){return _0x132004;};return a74_0x38cf();}(function(_0x17f28d,_0x3f9860){var _0x3f84ba=a74_0x4548,_0x310a42=_0x17f28d();while(!![]){try{var _0x38a3fd=parseInt(_0x3f84ba(0xcc))/0x1+-parseInt(_0x3f84ba(0xc5))/0x2*(parseInt(_0x3f84ba(0xc6))/0x3)+parseInt(_0x3f84ba(0xc8))/0x4+parseInt(_0x3f84ba(0xcb))/0x5+-parseInt(_0x3f84ba(0xc7))/0x6+-parseInt(_0x3f84ba(0xca))/0x7+parseInt(_0x3f84ba(0xce))/0x8;if(_0x38a3fd===_0x3f9860)break;else _0x310a42['push'](_0x310a42['shift']());}catch(_0x49bb54){_0x310a42['push'](_0x310a42['shift']());}}}(a74_0x38cf,0xd65f3),module[a74_0x3f4187(0xcd)]=require(a74_0x3f4187(0xc9)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a75_0x180463=a75_0x57ad;(function(_0x5c2b04,_0xa49b2d){const _0x2dfecb=a75_0x57ad,_0x40ccf7=_0x5c2b04();while(!![]){try{const _0x33ff1d=parseInt(_0x2dfecb(0x1f8))/0x1+parseInt(_0x2dfecb(0x1cf))/0x2+-parseInt(_0x2dfecb(0x1ca))/0x3+-parseInt(_0x2dfecb(0x1e7))/0x4*(parseInt(_0x2dfecb(0x1e2))/0x5)+parseInt(_0x2dfecb(0x206))/0x6+-parseInt(_0x2dfecb(0x1e9))/0x7+-parseInt(_0x2dfecb(0x1fc))/0x8;if(_0x33ff1d===_0xa49b2d)break;else _0x40ccf7['push'](_0x40ccf7['shift']());}catch(_0x46b03d){_0x40ccf7['push'](_0x40ccf7['shift']());}}}(a75_0x789c,0x61a4c));const Percy=require(a75_0x180463(0x1d4)),PercySDK=require(a75_0x180463(0x1fa)),PercyCaptureModes=require('./PercyCaptureModes'),PercyCaptureMap=require(a75_0x180463(0x1c9)),logger=require('../logger')[a75_0x180463(0x1e6)],helper=require(a75_0x180463(0x1c8)),PerformanceTester=require(a75_0x180463(0x1fb));function a75_0x789c(){const _0x2509c9=['./PercyCaptureMap','123897SszLbW','getBestPlatformForPercySnapshot','screenshot','Starting\x20percy','GVuZi','1125522hJfMJa','browserstackPercyMap','icnKp','stopPercy','nestedKeyValue','./Percy','gtoFc','error','VAWoy','debug','ejqKL','getPercyOptions','Error\x20patching\x20','driver','browser','init','patch','percy','percyCaptureMode','15atNIxt','SsZsg','EAycz','screenshotApp','winstonLogger','41268LOQpDi','overrideXforPercy','778211GpyzFY','firefox','\x20for\x20percy\x20','then','uLTTR','percyAutoCapture','percy:stop','getDriver','Stopping\x20percy','apply','element','getName','browserStackPercyOptions','SdHYa','prototype','609013nqKXel','Lmuwv','./PercySDK','../performance-tester','9679176vjAFNu','startPercy','reduce','toLowerCase','tjVSL','platforms','browserstackPercyBestPlatform','forEach','start','increment','3728964ndeJwl','stop','browserstackSessionName','../helper'];a75_0x789c=function(){return _0x2509c9;};return a75_0x789c();}function a75_0x57ad(_0x1304e2,_0x21b30d){const _0x789cb8=a75_0x789c();return a75_0x57ad=function(_0x57addd,_0x51d20e){_0x57addd=_0x57addd-0x1c6;let _0x1e9dec=_0x789cb8[_0x57addd];return _0x1e9dec;},a75_0x57ad(_0x1304e2,_0x21b30d);}exports[a75_0x180463(0x1fd)]=PerformanceTester['measureWrapper']('percy:start',async _0x17d352=>{const _0x5af498=a75_0x180463,_0x446818={};_0x446818[_0x5af498(0x1f6)]=_0x5af498(0x1cd);const _0xe62ab2=_0x446818;logger['debug'](_0xe62ab2[_0x5af498(0x1f6)]);const _0x321e87=new Percy(_0x17d352),_0xa66206=await _0x321e87[_0x5af498(0x204)]();if(_0xa66206)return _0x321e87;return null;}),exports[a75_0x180463(0x1d2)]=PerformanceTester['measureWrapper'](a75_0x180463(0x1ef),async _0x31f836=>{const _0x463072=a75_0x180463,_0x1d5670={};_0x1d5670['SsZsg']=_0x463072(0x1f1);const _0x159205=_0x1d5670;return logger[_0x463072(0x1d8)](_0x159205[_0x463072(0x1e3)]),_0x31f836[_0x463072(0x1c6)]();}),exports[a75_0x180463(0x1cb)]=_0x5a61bf=>{const _0x32b38d=a75_0x180463,_0x209533={};_0x209533[_0x32b38d(0x1d7)]=function(_0x16ac18,_0x17d6a2){return _0x16ac18<_0x17d6a2;};const _0x18b931=_0x209533,_0x275da2={};_0x275da2['chrome']=0x0,_0x275da2[_0x32b38d(0x1ea)]=0x1,_0x275da2['edge']=0x2,_0x275da2['safari']=0x3;const _0x1b31ed=_0x275da2;return _0x5a61bf[_0x32b38d(0x1fe)]((_0x12c688,_0x3c3efb,_0x498175)=>{const _0x5ce147=_0x32b38d,_0x359673=_0x5a61bf[_0x12c688];if(_0x3c3efb['deviceName'])return _0x12c688;if(_0x359673['deviceName'])return _0x498175;const _0x580065=_0x3c3efb[_0x5ce147(0x1dd)]?_0x3c3efb[_0x5ce147(0x1dd)]:_0x3c3efb['browserName'];if(_0x580065&&_0x18b931[_0x5ce147(0x1d7)](_0x1b31ed[_0x580065[_0x5ce147(0x1ff)]()],_0x1b31ed[_0x580065[_0x5ce147(0x1ff)]()]))return _0x498175;return _0x12c688;},0x0);},exports[a75_0x180463(0x1ee)]=async(_0x30e636,_0x169751,_0x3e58ab)=>{const _0x38b45d=a75_0x180463,_0x5b77cb={};_0x5b77cb[_0x38b45d(0x1ed)]='Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present';const _0xb307bc=_0x5b77cb,_0x46eb6e=_0x30e636[_0x38b45d(0x1d0)];if(helper['isUndefined'](_0x30e636[_0x38b45d(0x1c7)])){logger[_0x38b45d(0x1d8)](_0xb307bc[_0x38b45d(0x1ed)]);return;}const _0x425e6b=_0x46eb6e[_0x38b45d(0x1f4)](_0x30e636[_0x38b45d(0x1c7)],_0x169751);_0x3e58ab['app']?await PercySDK[_0x38b45d(0x1e5)](_0x30e636,_0x425e6b):await PercySDK[_0x38b45d(0x1cc)](_0x30e636,_0x425e6b),_0x46eb6e[_0x38b45d(0x205)](_0x30e636['browserstackSessionName'],_0x169751);},exports['patchDriverPercy']=(_0x565337,_0x2c5acd,_0xbeddc9)=>{const _0x18d801=a75_0x180463,_0x151bb8={};_0x151bb8['GVuZi']=_0x18d801(0x1f5),_0x151bb8[_0x18d801(0x1d9)]=_0x18d801(0x1e0),_0x151bb8[_0x18d801(0x1d1)]=function(_0x4bc199,_0x4a94cc){return _0x4bc199!==_0x4a94cc;},_0x151bb8['tjVSL']='manual';const _0x39cf4b=_0x151bb8;if(!helper[_0x18d801(0x1d3)](_0xbeddc9,[_0x39cf4b[_0x18d801(0x1ce)],_0x39cf4b[_0x18d801(0x1d9)]]))return;if(_0xbeddc9['browserStackPercyOptions'][_0x18d801(0x1e0)]&&_0xbeddc9[_0x18d801(0x1f5)]['percyCaptureMode']&&_0x39cf4b[_0x18d801(0x1d1)](_0xbeddc9[_0x18d801(0x1f5)][_0x18d801(0x1e1)],_0x39cf4b[_0x18d801(0x200)])&&!_0x565337[_0x18d801(0x1d0)]){global[_0x18d801(0x1c7)]&&(_0x565337[_0x18d801(0x1c7)]=global[_0x18d801(0x1c7)]),_0x565337[_0x18d801(0x1d0)]=new PercyCaptureMap();const _0x411ae6=PercyCaptureModes[_0xbeddc9[_0x18d801(0x1f5)][_0x18d801(0x1e1)]];_0x411ae6[_0x18d801(0x1dc)]&&_0x411ae6[_0x18d801(0x1dc)][_0x18d801(0x203)](_0x26b95e=>this['overrideXforPercy'](_0x565337,_0x26b95e,_0xbeddc9)),_0x411ae6['element']&&_0x411ae6[_0x18d801(0x1f3)][_0x18d801(0x203)](_0x4d714f=>{const _0x59e763=_0x18d801;if(_0x2c5acd[_0x59e763(0x1f7)][_0x59e763(0x1df)+_0x4d714f])return;_0x2c5acd['prototype'][_0x59e763(0x1df)+_0x4d714f]=!![];const _0x25d15f=_0x2c5acd[_0x59e763(0x1f7)][_0x4d714f];_0x2c5acd[_0x59e763(0x1f7)][_0x4d714f]=async function(){const _0x5d0034=_0x59e763;let _0xb74de8=_0x25d15f[_0x5d0034(0x1f2)](this,arguments);_0xb74de8&&_0xb74de8[_0x5d0034(0x1ec)]&&(_0xb74de8=await _0xb74de8);try{const _0x45613=this[_0x5d0034(0x1f0)]();await exports[_0x5d0034(0x1ee)](_0x45613,_0x4d714f,_0xbeddc9);}catch(_0x36b43a){logger[_0x5d0034(0x1d6)]('Error\x20patching\x20'+_0x4d714f+_0x5d0034(0x1eb)+_0x36b43a);}return _0xb74de8;};});}},exports[a75_0x180463(0x1e8)]=function(_0xb61eff,_0x190afa,_0x5d95ab){const _0x13b157=a75_0x180463,_0x315841={};_0x315841[_0x13b157(0x1f9)]=function(_0x203846,_0x2a64f3){return _0x203846+_0x2a64f3;},_0x315841[_0x13b157(0x1d5)]='patch',_0x315841['EAycz']=_0x13b157(0x1de);const _0x2ba303=_0x315841,_0x63da75=_0x2ba303[_0x13b157(0x1f9)](_0x2ba303[_0x13b157(0x1d5)],_0x190afa),_0xf7c494=_0x2ba303[_0x13b157(0x1f9)](_0x2ba303[_0x13b157(0x1e4)],_0x190afa),_0x928070=this;if(_0xb61eff[_0x63da75]||!_0xb61eff[_0x190afa])return;_0xb61eff[_0x63da75]=!![],_0xb61eff[_0xf7c494]=_0xb61eff[_0x190afa],_0xb61eff[_0x190afa]=async()=>{const _0x1e20dd=_0x13b157;try{await _0x928070[_0x1e20dd(0x1ee)](_0xb61eff,_0x190afa,_0x5d95ab);}catch(_0x5e18e7){logger[_0x1e20dd(0x1d6)](_0x1e20dd(0x1db)+_0x190afa+_0x1e20dd(0x1eb)+_0x5e18e7);}return await _0xb61eff[_0xf7c494][_0x1e20dd(0x1f2)](_0xb61eff,arguments);};},exports[a75_0x180463(0x1da)]=_0x1ec0fc=>{const _0xc95ed=a75_0x180463,_0x2469ec={};_0x2469ec['percy']=_0x1ec0fc[_0xc95ed(0x1e0)],_0x2469ec['percyCaptureMode']=_0x1ec0fc[_0xc95ed(0x1e1)];const _0x432dbb=_0x2469ec;_0x1ec0fc[_0xc95ed(0x1e0)]&&(_0x432dbb[_0xc95ed(0x202)]=exports[_0xc95ed(0x1cb)](_0x1ec0fc[_0xc95ed(0x201)]));;return _0x432dbb;};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a76_0x2cda(_0x554924,_0x6c559b){const _0x3ba37d=a76_0x3ba3();return a76_0x2cda=function(_0x2cda73,_0x12c01d){_0x2cda73=_0x2cda73-0x19b;let _0x1e3890=_0x3ba37d[_0x2cda73];return _0x1e3890;},a76_0x2cda(_0x554924,_0x6c559b);}const a76_0x15d51c=a76_0x2cda;(function(_0x49212f,_0x15f9cf){const _0x50e446=a76_0x2cda,_0x2b0884=_0x49212f();while(!![]){try{const _0x31386c=parseInt(_0x50e446(0x1e2))/0x1+parseInt(_0x50e446(0x1a0))/0x2*(parseInt(_0x50e446(0x1f9))/0x3)+-parseInt(_0x50e446(0x1dd))/0x4+parseInt(_0x50e446(0x1c1))/0x5+-parseInt(_0x50e446(0x1e1))/0x6*(parseInt(_0x50e446(0x1c3))/0x7)+-parseInt(_0x50e446(0x1d0))/0x8*(parseInt(_0x50e446(0x1a5))/0x9)+-parseInt(_0x50e446(0x1d3))/0xa*(-parseInt(_0x50e446(0x1cd))/0xb);if(_0x31386c===_0x15f9cf)break;else _0x2b0884['push'](_0x2b0884['shift']());}catch(_0x277f1e){_0x2b0884['push'](_0x2b0884['shift']());}}}(a76_0x3ba3,0x29886));const fs=require('fs'),{performance,PerformanceObserver}=require(a76_0x15d51c(0x1a4)),{sleep,debug}=require('./test-observability/utils'),path=require(a76_0x15d51c(0x211)),logger=require('./logger')[a76_0x15d51c(0x1da)];class PerformanceTester{static [a76_0x15d51c(0x20e)];static [a76_0x15d51c(0x1cc)]=[];static [a76_0x15d51c(0x1fd)]=[];static ['_errorEvents']=[];static [a76_0x15d51c(0x1f8)]=![];static [a76_0x15d51c(0x1e9)]=a76_0x15d51c(0x1c9);static [a76_0x15d51c(0x1b3)]=a76_0x15d51c(0x1c0);static[a76_0x15d51c(0x212)](_0x2de7a2=a76_0x15d51c(0x1c9),_0x255c23=a76_0x15d51c(0x1c0)){const _0x3e5e9d=a76_0x15d51c,_0x7480d={};_0x7480d['uJmkD']=function(_0x5187f2,_0x37bb72){return _0x5187f2===_0x37bb72;},_0x7480d[_0x3e5e9d(0x1d6)]=_0x3e5e9d(0x210),_0x7480d[_0x3e5e9d(0x1a6)]=_0x3e5e9d(0x1c6);const _0x11c3e8=_0x7480d;if(this[_0x3e5e9d(0x1f8)]||!this['isEnabled']())return;this[_0x3e5e9d(0x20e)]=new PerformanceObserver(_0x5e851e=>{const _0x4b20ca=_0x3e5e9d,_0x37d779={'hEyBb':function(_0x5a0a4d,_0x4df980){const _0xaf6d23=a76_0x2cda;return _0x11c3e8[_0xaf6d23(0x1cb)](_0x5a0a4d,_0x4df980);},'ZzqBL':_0x11c3e8[_0x4b20ca(0x1d6)]};_0x5e851e[_0x4b20ca(0x1b4)]()['forEach'](_0x4e3678=>{const _0x5720dd=_0x4b20ca;_0x37d779[_0x5720dd(0x1bc)](_0x4e3678['entryType'],_0x37d779['ZzqBL'])?this['_measureEvents'][_0x5720dd(0x1a7)](_0x4e3678):this[_0x5720dd(0x1cc)][_0x5720dd(0x1a7)](_0x4e3678);});});const _0x380f3b={};_0x380f3b[_0x3e5e9d(0x1e5)]=!![],_0x380f3b['entryTypes']=[_0x11c3e8[_0x3e5e9d(0x1a6)],_0x11c3e8[_0x3e5e9d(0x1d6)]],this[_0x3e5e9d(0x20e)][_0x3e5e9d(0x213)](_0x380f3b),this[_0x3e5e9d(0x1f8)]=!![],this[_0x3e5e9d(0x1e9)]=_0x2de7a2,this[_0x3e5e9d(0x1b3)]=_0x255c23;}static[a76_0x15d51c(0x1f7)](){return performance;}static[a76_0x15d51c(0x1df)](_0x55da77,_0x194ac3){const _0x3ab1d1=a76_0x15d51c,_0x5e931d={};_0x5e931d['WUDti']=function(_0x4ae1d6,_0x98e39b){return _0x4ae1d6+_0x98e39b;},_0x5e931d[_0x3ab1d1(0x200)]=function(_0x1ba6be,_0x9ccb1b){return _0x1ba6be||_0x9ccb1b;},_0x5e931d['mlDQp']=function(_0x5cfd0d,_0x23fdd7){return _0x5cfd0d===_0x23fdd7;};const _0x1eb3d3=_0x5e931d,_0x2bbfe2={};if(!_0x55da77||_0x1eb3d3[_0x3ab1d1(0x204)](_0x55da77['length'],0x0))return;_0x55da77[_0x3ab1d1(0x1cf)](_0x497ad1=>{const _0x142571=_0x3ab1d1;!_0x2bbfe2[_0x497ad1[_0x142571(0x1b6)]]&&(_0x2bbfe2[_0x497ad1['name']]=0x0),_0x2bbfe2[_0x497ad1[_0x142571(0x1b6)]]+=_0x497ad1['duration'];});const _0x47b6ec=_0x194ac3['reduce']((_0x5948ee,_0x50351d)=>{const _0x474bcd=_0x3ab1d1;return _0x1eb3d3[_0x474bcd(0x1ce)](_0x2bbfe2[_0x50351d],_0x1eb3d3['VprUr'](_0x5948ee,0x0));},0x0);return _0x47b6ec;}static async[a76_0x15d51c(0x20c)](_0x4c2dae,_0x30f01d){const _0x485f80=a76_0x15d51c,_0xdbd1db={'uoTJW':function(_0x59920a,_0x40d94a){return _0x59920a+_0x40d94a;},'pJMJQ':function(_0x569573,_0x395cea){return _0x569573||_0x395cea;},'ALQAD':function(_0x357e3e,_0x490977){return _0x357e3e===_0x490977;},'juaYr':function(_0x3eccf3,_0x41a4ab){return _0x3eccf3(_0x41a4ab);},'pByQc':function(_0xb51f0f,_0x468957){return _0xb51f0f(_0x468957);}};if(!_0x4c2dae||_0xdbd1db[_0x485f80(0x20f)](_0x4c2dae[_0x485f80(0x1ea)],0x0))return 0x0;const _0x575de0=[];for(const _0x195eac of _0x4c2dae){const _0x5caa2e=path[_0x485f80(0x1d9)]('.',_0x195eac);try{const _0x4d6447=this['getEventsFromJSON'](_0x5caa2e);_0x4d6447[_0x485f80(0x1cf)](_0x46752f=>{const _0x57ea23=_0x485f80;!_0x575de0[_0x46752f[_0x57ea23(0x1b6)]]&&(_0x575de0[_0x46752f[_0x57ea23(0x1b6)]]=0x0),_0x575de0[_0x46752f[_0x57ea23(0x1b6)]]+=_0x46752f[_0x57ea23(0x1b2)];});}catch(_0x38f2e8){_0xdbd1db[_0x485f80(0x207)](debug,_0x485f80(0x1eb)+_0x38f2e8[_0x485f80(0x1c4)]());}}const _0x24307d=_0x30f01d[_0x485f80(0x1b0)]((_0x33ba46,_0x416553)=>{const _0x577410=_0x485f80;return _0xdbd1db[_0x577410(0x1d5)](_0x575de0[_0x416553],_0xdbd1db['pJMJQ'](_0x33ba46,0x0));},0x0);return _0xdbd1db['pByQc'](debug,'Time\x20for\x20'+_0x30f01d+_0x485f80(0x1ee)+_0x24307d),_0x24307d;}static[a76_0x15d51c(0x1b1)](_0x5f3bfe){const _0x50a89b=a76_0x15d51c;if(!fs['existsSync'](_0x5f3bfe))return[];return JSON['parse'](fs[_0x50a89b(0x1be)](_0x5f3bfe)[_0x50a89b(0x1c4)]());}static async[a76_0x15d51c(0x202)](_0x2cf0ec=a76_0x15d51c(0x1ca),_0x537581=null){const _0x45e4b3=a76_0x15d51c,_0x1e251d={'iLdHB':function(_0x4224d2,_0x14712b){return _0x4224d2(_0x14712b);},'gShqo':function(_0x53ea57,_0x46c23e){return _0x53ea57(_0x46c23e);}};if(!this[_0x45e4b3(0x1f8)])return;await _0x1e251d[_0x45e4b3(0x1b8)](sleep,0x1e),this[_0x45e4b3(0x20e)][_0x45e4b3(0x1a2)](),this[_0x45e4b3(0x1f8)]=![],this[_0x45e4b3(0x206)](this[_0x45e4b3(0x1cc)]);const _0x5e9bbe=this[_0x45e4b3(0x1c2)](this[_0x45e4b3(0x1cc)]),_0x5ee50d=path['join'](process[_0x45e4b3(0x1aa)](),_0x2cf0ec);fs[_0x45e4b3(0x1fe)](_0x5ee50d,_0x5e9bbe,_0x134da0=>{const _0x1dfc01=_0x45e4b3;if(_0x134da0){_0x1e251d['iLdHB'](debug,_0x1dfc01(0x1a8)+_0x134da0[_0x1dfc01(0x1c4)]());return;}_0x1e251d[_0x1dfc01(0x1fa)](debug,_0x1dfc01(0x214)+_0x5ee50d);});if(_0x537581)return this['calculateTimeFromEvents'](this[_0x45e4b3(0x1cc)],_0x537581);}static[a76_0x15d51c(0x1c2)](_0x366a10){const _0x5c5ca0=a76_0x15d51c,_0x1a61a7={};_0x1a61a7[_0x5c5ca0(0x1e6)]='<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>',_0x1a61a7['QCXCs']='<h1>Performance\x20Report</h1>',_0x1a61a7[_0x5c5ca0(0x1ec)]=_0x5c5ca0(0x1e8),_0x1a61a7[_0x5c5ca0(0x1ed)]='</tbody></table></body></html>';const _0x53e97a=_0x1a61a7;let _0x3560ec=_0x53e97a[_0x5c5ca0(0x1e6)];return _0x3560ec+=_0x53e97a[_0x5c5ca0(0x1e7)],_0x3560ec+=_0x53e97a[_0x5c5ca0(0x1ec)],_0x366a10['forEach'](_0x181bd0=>{const _0x364366=_0x5c5ca0;_0x3560ec+=_0x364366(0x215)+_0x181bd0[_0x364366(0x1b6)]+'</td><td>'+_0x181bd0['duration']+'</td></tr>';}),_0x3560ec+=_0x53e97a['JjlJB'],_0x3560ec;}static['generateJSON'](_0x315fc7){const _0x2c9f53=a76_0x15d51c;if(!this[_0x2c9f53(0x1e9)])return;const _0xaba86b={};_0x315fc7['map'](_0x134d5a=>{const _0x18891=_0x2c9f53;!_0xaba86b[_0x134d5a[_0x18891(0x1b6)]]&&(_0xaba86b[_0x134d5a[_0x18891(0x1b6)]]=0x0),_0xaba86b[_0x134d5a[_0x18891(0x1b6)]]+=_0x134d5a[_0x18891(0x1b2)];});const _0x484069=Object['entries'](_0xaba86b)[_0x2c9f53(0x1cf)](([_0x38c451,_0x16bdba])=>{const _0x4a0514=_0x2c9f53,_0x4922bf={};return _0x4922bf['name']=_0x38c451,_0x4922bf[_0x4a0514(0x1b2)]=_0x16bdba,_0x4922bf;});fs['writeFileSync'](this[_0x2c9f53(0x1e9)],JSON[_0x2c9f53(0x19b)](_0x484069));}static[a76_0x15d51c(0x1f5)](){const _0x120836=a76_0x15d51c,_0x1660fd={};_0x1660fd[_0x120836(0x205)]=function(_0x30f362,_0x76737d){return _0x30f362===_0x76737d;},_0x1660fd[_0x120836(0x1f3)]='false';const _0x13c169=_0x1660fd;return!_0x13c169['eeywE'](process[_0x120836(0x1f2)][_0x120836(0x19e)],_0x13c169[_0x120836(0x1f3)]);}static[a76_0x15d51c(0x210)](_0x545e92,_0x60f6ee,_0x554764=null,_0x1129b5=null){const _0x52926e=a76_0x15d51c,_0x42892f={};_0x42892f[_0x52926e(0x1d1)]=function(_0x18e803,_0x38f729){return _0x18e803+_0x38f729;},_0x42892f['sWCyN']=_0x52926e(0x1b5),_0x42892f[_0x52926e(0x1a3)]=_0x52926e(0x1f4),_0x42892f[_0x52926e(0x1f6)]=function(_0x4ee6e4,_0x56ab52){return _0x4ee6e4 instanceof _0x56ab52;};const _0xd885f9=_0x42892f;try{if(this[_0x52926e(0x1f8)]&&this['isEnabled']()){let _0x230dbf=_0x545e92;_0x554764&&(_0x230dbf=_0x545e92+'['+JSON[_0x52926e(0x19b)](_0x554764)+']');const _0x137200=_0xd885f9[_0x52926e(0x1d1)](_0x230dbf,_0xd885f9[_0x52926e(0x1bb)]),_0x1d0dc6=_0xd885f9['CIcTy'](_0x230dbf,_0xd885f9[_0x52926e(0x1a3)]);performance[_0x52926e(0x216)](_0x137200);const _0x2fbca9=_0x60f6ee[_0x52926e(0x1bf)](null,_0x1129b5);if(_0xd885f9[_0x52926e(0x1f6)](_0x2fbca9,Promise))return new Promise((_0x5289f3,_0x5cf77d)=>{const _0x80ac93=_0x52926e;_0x2fbca9[_0x80ac93(0x1db)](_0x59c1f9=>_0x5289f3(_0x59c1f9))[_0x80ac93(0x1d7)](_0x32999e=>_0x5cf77d(_0x32999e))[_0x80ac93(0x1d2)](()=>{const _0x51d052=_0x80ac93;performance[_0x51d052(0x216)](_0x1d0dc6),performance[_0x51d052(0x210)](_0x230dbf,_0x137200,_0x1d0dc6);});});;return performance[_0x52926e(0x216)](_0x1d0dc6),performance[_0x52926e(0x210)](_0x230dbf,_0x137200,_0x1d0dc6),_0x2fbca9;};return _0x60f6ee['apply'](null,_0x1129b5);}catch(_0x44a722){return _0x60f6ee[_0x52926e(0x1bf)](null,_0x1129b5);}}static['measureWrapper'](_0x14928c,_0x4d682a){const _0x4a5d67=this;return function(){const _0x5a9c8d=a76_0x2cda,_0x40c3fe=[_0x14928c,_0x4d682a,null][_0x5a9c8d(0x1f0)](arguments);return _0x4a5d67[_0x5a9c8d(0x210)][_0x5a9c8d(0x1bf)](_0x4a5d67,_0x40c3fe);};}static[a76_0x15d51c(0x1e0)](){const _0x4259ee=a76_0x15d51c,_0x4fdccf={};_0x4fdccf[_0x4259ee(0x1c8)]=function(_0xcf7116,_0x11e02d){return _0xcf7116/_0x11e02d;},_0x4fdccf[_0x4259ee(0x20b)]=function(_0x158aa3,_0x3b1a12){return _0x158aa3+_0x3b1a12;},_0x4fdccf[_0x4259ee(0x1ae)]=function(_0x3310b3,_0x1f18f8){return _0x3310b3*_0x1f18f8;},_0x4fdccf[_0x4259ee(0x1de)]=function(_0x4721dd,_0x589553){return _0x4721dd+_0x589553;};const _0x3e33a0=_0x4fdccf,_0x46725c=/(^.*)\[(.*)\]$/,_0x2969da={},_0x2e2d47={};for(const _0x365c9f of this['_measureEvents']){const _0x460e41=_0x365c9f[_0x4259ee(0x1b6)][_0x4259ee(0x1f1)](_0x46725c),_0x111a4f={};_0x111a4f[_0x4259ee(0x1b6)]=_0x365c9f[_0x4259ee(0x1b6)],_0x111a4f[_0x4259ee(0x1b2)]=_0x365c9f[_0x4259ee(0x1b2)]||0x0;const _0x2df90b=_0x111a4f;_0x460e41&&(_0x2df90b['name']=_0x460e41[0x1],_0x2df90b[_0x4259ee(0x1c7)]=JSON[_0x4259ee(0x19f)](_0x460e41[0x2]));if(_0x2969da[_0x2df90b['name']]){const _0x2d05c1=_0x2969da[_0x2df90b['name']],_0x65c0ca=_0x2e2d47[_0x2df90b[_0x4259ee(0x1b6)]];_0x2969da[_0x2df90b[_0x4259ee(0x1b6)]][_0x4259ee(0x1b2)]=_0x3e33a0['rikiG'](_0x3e33a0[_0x4259ee(0x20b)](_0x3e33a0[_0x4259ee(0x1ae)](_0x2d05c1[_0x4259ee(0x1b2)],_0x65c0ca),_0x2df90b[_0x4259ee(0x1b2)]),_0x3e33a0['fRFNr'](0x1,_0x65c0ca)),_0x2e2d47[_0x2df90b[_0x4259ee(0x1b6)]]++;}else _0x2969da[_0x2df90b[_0x4259ee(0x1b6)]]=_0x2df90b,_0x2e2d47[_0x2df90b['name']]=0x1;}return Object[_0x4259ee(0x1b9)](_0x2969da);}static[a76_0x15d51c(0x209)](){const _0x2402f5=a76_0x15d51c,_0x6ba91b={};_0x6ba91b[_0x2402f5(0x1a9)]=function(_0x239907,_0x44df91){return _0x239907===_0x44df91;},_0x6ba91b[_0x2402f5(0x1d8)]=function(_0x56807f,_0x4b078b){return _0x56807f+_0x4b078b;};const _0x419b71=_0x6ba91b;if(_0x419b71[_0x2402f5(0x1a9)](this[_0x2402f5(0x1fd)][_0x2402f5(0x1ea)],0x0))return;const _0x5db014=this[_0x2402f5(0x1e0)](),_0x4a505e=JSON[_0x2402f5(0x19b)](_0x5db014),_0x4bf10a=_0x419b71['sugff'](_0x4a505e[_0x2402f5(0x20a)](0x1,-0x1),',');fs[_0x2402f5(0x201)](this[_0x2402f5(0x1e9)],_0x4bf10a);}static['finalizePerfMeasures'](){const _0x2d9b8e=a76_0x15d51c,_0x1498b8={};_0x1498b8[_0x2d9b8e(0x19c)]=function(_0x4b204b,_0x42608f){return _0x4b204b===_0x42608f;},_0x1498b8[_0x2d9b8e(0x1ab)]=function(_0x1d248e,_0x1c1661){return _0x1d248e>_0x1c1661;};const _0x4efe33=_0x1498b8;if(!this[_0x2d9b8e(0x1f8)]||_0x4efe33[_0x2d9b8e(0x19c)](this[_0x2d9b8e(0x1fd)][_0x2d9b8e(0x1ea)],0x0))return[];if(!fs[_0x2d9b8e(0x1fb)](this[_0x2d9b8e(0x1e9)]))return this[_0x2d9b8e(0x1fd)];let _0xc09023=fs['readFileSync'](this['jsonReportFileName'])[_0x2d9b8e(0x1c4)]();_0xc09023='['+_0xc09023[_0x2d9b8e(0x20a)](0x0,-0x1)+']';let _0xf5af68=JSON['parse'](_0xc09023);return _0x4efe33['nJqFl'](this[_0x2d9b8e(0x1fd)][_0x2d9b8e(0x1ea)],0x0)&&(_0xf5af68=_0xf5af68[_0x2d9b8e(0x1f0)](this[_0x2d9b8e(0x1e0)]())),this[_0x2d9b8e(0x20e)]['disconnect'](),fs[_0x2d9b8e(0x208)](this[_0x2d9b8e(0x1e9)]),_0xf5af68;}static[a76_0x15d51c(0x1ad)](){const _0x4a4e30=a76_0x15d51c,_0x445267={};_0x445267[_0x4a4e30(0x1ff)]=function(_0x496296,_0x2ac354){return _0x496296===_0x2ac354;},_0x445267['uLQni']=function(_0x4b2432,_0x1e228a){return _0x4b2432+_0x1e228a;};const _0x3c90ee=_0x445267;if(_0x3c90ee[_0x4a4e30(0x1ff)](this[_0x4a4e30(0x1ac)]['length'],0x0))return;const _0x3314d7=JSON['stringify'](this[_0x4a4e30(0x1ac)]),_0xb21af4=_0x3c90ee[_0x4a4e30(0x203)](_0x3314d7[_0x4a4e30(0x20a)](0x1,-0x1),',');fs[_0x4a4e30(0x201)](this[_0x4a4e30(0x1ba)],_0xb21af4);}static[a76_0x15d51c(0x1a1)](){const _0x1bfbbd=a76_0x15d51c,_0x5941a4={};_0x5941a4[_0x1bfbbd(0x1b7)]=function(_0x3a2721,_0xa5e7b1){return _0x3a2721>_0xa5e7b1;};const _0x55c1e7=_0x5941a4;if(!fs[_0x1bfbbd(0x1fb)](this[_0x1bfbbd(0x1b3)]))return this['_errorEvents'];let _0x2de99a=fs[_0x1bfbbd(0x1be)](this['errorReportFileName'])[_0x1bfbbd(0x1c4)]();_0x2de99a='['+_0x2de99a[_0x1bfbbd(0x20a)](0x0,-0x1)+']';let _0x273c90=JSON[_0x1bfbbd(0x19f)](_0x2de99a);return _0x55c1e7['wahXA'](this['_errorEvents'][_0x1bfbbd(0x1ea)],0x0)&&(_0x273c90=_0x273c90['concat'](this[_0x1bfbbd(0x1ac)])),fs['unlinkSync'](this[_0x1bfbbd(0x1b3)]),_0x273c90;}static[a76_0x15d51c(0x1af)](_0x345aeb){const _0x5a1b15=a76_0x15d51c;if(!this[_0x5a1b15(0x1f5)]())return;this['_errorEvents'][_0x5a1b15(0x1a7)]({'message':_0x345aeb[_0x5a1b15(0x1dc)],'trace':_0x345aeb[_0x5a1b15(0x1ef)],'code':_0x345aeb[_0x5a1b15(0x20d)]||null,'time':new Date()});}static['stopMonitoring'](){const _0x4d1dbe=a76_0x15d51c,_0x401c49={};_0x401c49[_0x4d1dbe(0x1e4)]=_0x4d1dbe(0x1fc);const _0x22ff0a=_0x401c49;try{if(!this[_0x4d1dbe(0x1f5)]())return;this['_observer'][_0x4d1dbe(0x1a2)](),this[_0x4d1dbe(0x209)](),this[_0x4d1dbe(0x1ad)]();}catch{logger[_0x4d1dbe(0x19d)](_0x22ff0a['NMVRo']);}}static[a76_0x15d51c(0x1bd)](){const _0x106e31=a76_0x15d51c,_0x4deed3=this[_0x106e31(0x1d4)](),_0x1734cf=this[_0x106e31(0x1a1)]();if(!this[_0x106e31(0x1f5)]()){const _0x203133={};return _0x203133['measures']=[],_0x203133[_0x106e31(0x1e3)]=[],_0x203133;}const _0x35d58e={};return _0x35d58e['measures']=_0x4deed3,_0x35d58e[_0x106e31(0x1e3)]=_0x1734cf,_0x35d58e;}}module[a76_0x15d51c(0x1c5)]=PerformanceTester;function a76_0x3ba3(){const _0x45201a=['performance-report.json','performance-own.html','uJmkD','_events','33gavVgV','WUDti','map','8IMHoGv','CIcTy','finally','186730SuyUHu','finalizePerfMeasures','uoTJW','zOsIn','catch','sugff','join','winstonLogger','then','message','946536BHZFiZ','fRFNr','calculateTimeFromEvents','getCleanedPerfEvents','828DVrBtB','222812qQkObZ','errors','NMVRo','buffered','akAQr','QCXCs','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','jsonReportFileName','length','Error\x20in\x20doing\x20csv\x20operations:\x20','GYoFT','JjlJB','\x20for\x20all\x20processes\x20is\x20','stack','concat','match','env','ybPCV','-end','isEnabled','tWaNa','getPerformance','started','15zyrXMZ','iLdHB','existsSync','Error\x20stopping\x20monitoring','_measureEvents','writeFile','qQMRK','VprUr','appendFileSync','stopAndGenerate','uLQni','mlDQp','eeywE','generateJSON','juaYr','unlinkSync','pushPerfMeasures','slice','NgaQL','calculateTimesFromMultipleFiles','code','_observer','ALQAD','measure','path','startMonitoring','observe','Performance\x20report\x20is\x20at\x20','<tr><td>','mark','stringify','WYAcF','debug','BROWSERSTACK_SDK_INSTRUMENTATION','parse','108578zHTUFM','finalizeErrors','disconnect','pAVzm','perf_hooks','1358019YdJThh','LPJes','push','Error\x20in\x20writing\x20html\x20','nCaLl','cwd','nJqFl','_errorEvents','pushErrors','dIfMB','captureError','reduce','getEventsFromJSON','duration','errorReportFileName','getEntries','-start','name','wahXA','gShqo','values','errorFile','sWCyN','hEyBb','finalize','readFileSync','apply','error-report.json','1363015fiaggJ','generateHTMLReport','13454kGPpKe','toString','exports','function','meta','rikiG'];a76_0x3ba3=function(){return _0x45201a;};return a76_0x3ba3();}
|
|
1
|
+
function a76_0x26c6(_0x19741f,_0x589140){const _0x46e6c3=a76_0x46e6();return a76_0x26c6=function(_0x26c67f,_0x14529a){_0x26c67f=_0x26c67f-0x128;let _0xa2c048=_0x46e6c3[_0x26c67f];return _0xa2c048;},a76_0x26c6(_0x19741f,_0x589140);}const a76_0x25090f=a76_0x26c6;function a76_0x46e6(){const _0x172052=['stopMonitoring','forEach','env','measureWrapper','nKSBs','code','writeFile','measures','cwd','16qZJJNQ','DXwIN','finally','tXLQJ','bMGCO','push','qkeXO','vNiDO','pkHPt','existsSync','_measureEvents','measure','miAkk','geAvi','FxwcB','./logger','1323872ZWKtiR','BaRuL','errorReportFileName','generateHTMLReport','bmPOz','mfhBZ','eJHYG','map','7qIEAKt','eXNsP','_errorEvents','hiOGj','exports','readFileSync','length','4meCOHB','XzDTK','64606UvfuzO','_events','catch','./test-observability/utils','generateJSON','</td></tr>','rLZmT','performance-report.json','mark','maJFs','concat','nuxjk','winstonLogger','meta','jTobE','pushErrors','join','<tr><td>','finalizeErrors','25NngDXa','jkIgL','jWLVG','buffered','oGREZ','function','startMonitoring','691704LxfRKY','_observer','gtaek','finalizePerfMeasures','-start','uJGCV','stringify','jsonReportFileName','values','started','Error\x20in\x20doing\x20csv\x20operations:\x20','stack','Error\x20in\x20writing\x20html\x20','errors','1640646AuDuNS','name','unlinkSync','parse','observe','entryTypes','slice','Time\x20for\x20','pushPerfMeasures','calculateTimeFromEvents','9588RdfzQd','duration','ukyHo','debug','writeFileSync','apply','isEnabled','toString','3826660xYUQRV','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','1600806fNfeED','stopAndGenerate','getEntries','reduce','getEventsFromJSON','message','RYMXu','path','Yhgsn','errorFile','<h1>Performance\x20Report</h1>','Performance\x20report\x20is\x20at\x20','getCleanedPerfEvents','</tbody></table></body></html>','error-report.json','finalize'];a76_0x46e6=function(){return _0x172052;};return a76_0x46e6();}(function(_0x4c0ad1,_0x5caf14){const _0x376e67=a76_0x26c6,_0x108ecf=_0x4c0ad1();while(!![]){try{const _0x2472c7=parseInt(_0x376e67(0x14a))/0x1*(-parseInt(_0x376e67(0x14c))/0x2)+parseInt(_0x376e67(0x166))/0x3+parseInt(_0x376e67(0x17e))/0x4*(-parseInt(_0x376e67(0x15f))/0x5)+parseInt(_0x376e67(0x188))/0x6*(parseInt(_0x376e67(0x143))/0x7)+parseInt(_0x376e67(0x12b))/0x8*(parseInt(_0x376e67(0x174))/0x9)+-parseInt(_0x376e67(0x186))/0xa+-parseInt(_0x376e67(0x13b))/0xb;if(_0x2472c7===_0x5caf14)break;else _0x108ecf['push'](_0x108ecf['shift']());}catch(_0x5143fa){_0x108ecf['push'](_0x108ecf['shift']());}}}(a76_0x46e6,0x3528e));const fs=require('fs'),{performance,PerformanceObserver}=require('perf_hooks'),{sleep,debug}=require(a76_0x25090f(0x14f)),path=require(a76_0x25090f(0x18f)),logger=require(a76_0x25090f(0x13a))[a76_0x25090f(0x158)];class PerformanceTester{static [a76_0x25090f(0x167)];static [a76_0x25090f(0x14d)]=[];static [a76_0x25090f(0x135)]=[];static [a76_0x25090f(0x145)]=[];static ['started']=![];static [a76_0x25090f(0x16d)]=a76_0x25090f(0x153);static [a76_0x25090f(0x13d)]='error-report.json';static[a76_0x25090f(0x165)](_0x258955=a76_0x25090f(0x153),_0xa1b3e=a76_0x25090f(0x196)){const _0x50f943=a76_0x25090f,_0x2c8b2a={};_0x2c8b2a['AjrOA']=function(_0x5665ca,_0x30c056){return _0x5665ca===_0x30c056;},_0x2c8b2a[_0x50f943(0x152)]=_0x50f943(0x136),_0x2c8b2a[_0x50f943(0x13c)]=_0x50f943(0x164);const _0x24f937=_0x2c8b2a;if(this[_0x50f943(0x16f)]||!this[_0x50f943(0x184)]())return;this[_0x50f943(0x167)]=new PerformanceObserver(_0x34b8d9=>{const _0x31fa3b=_0x50f943,_0x377043={'RxhHY':function(_0x3aee63,_0x4667d9){return _0x24f937['AjrOA'](_0x3aee63,_0x4667d9);},'vNiDO':_0x24f937[_0x31fa3b(0x152)]};_0x34b8d9[_0x31fa3b(0x18a)]()[_0x31fa3b(0x199)](_0x97c49a=>{const _0x1c45ea=_0x31fa3b;_0x377043['RxhHY'](_0x97c49a['entryType'],_0x377043[_0x1c45ea(0x132)])?this['_measureEvents'][_0x1c45ea(0x130)](_0x97c49a):this['_events'][_0x1c45ea(0x130)](_0x97c49a);});});const _0x193ea7={};_0x193ea7[_0x50f943(0x162)]=!![],_0x193ea7[_0x50f943(0x179)]=[_0x24f937[_0x50f943(0x13c)],_0x24f937[_0x50f943(0x152)]],this[_0x50f943(0x167)][_0x50f943(0x178)](_0x193ea7),this[_0x50f943(0x16f)]=!![],this['jsonReportFileName']=_0x258955,this[_0x50f943(0x13d)]=_0xa1b3e;}static['getPerformance'](){return performance;}static[a76_0x25090f(0x17d)](_0x36de3f,_0xbb6663){const _0x351042=a76_0x25090f,_0x56cccb={};_0x56cccb['JUYhY']=function(_0x2fb487,_0x4a63f){return _0x2fb487+_0x4a63f;},_0x56cccb[_0x351042(0x19c)]=function(_0x4209cb,_0x56158a){return _0x4209cb||_0x56158a;},_0x56cccb[_0x351042(0x141)]=function(_0x4119b0,_0x4a305d){return _0x4119b0===_0x4a305d;};const _0x44a809=_0x56cccb,_0x12efbb={};if(!_0x36de3f||_0x44a809[_0x351042(0x141)](_0x36de3f[_0x351042(0x149)],0x0))return;_0x36de3f[_0x351042(0x142)](_0x21bd83=>{const _0x179fa9=_0x351042;!_0x12efbb[_0x21bd83['name']]&&(_0x12efbb[_0x21bd83[_0x179fa9(0x175)]]=0x0),_0x12efbb[_0x21bd83[_0x179fa9(0x175)]]+=_0x21bd83[_0x179fa9(0x17f)];});const _0x5b5868=_0xbb6663[_0x351042(0x18b)]((_0x352a34,_0x1707d7)=>{const _0x3a3a3f=_0x351042;return _0x44a809['JUYhY'](_0x12efbb[_0x1707d7],_0x44a809[_0x3a3a3f(0x19c)](_0x352a34,0x0));},0x0);return _0x5b5868;}static async['calculateTimesFromMultipleFiles'](_0x2ea8fa,_0x11146b){const _0x559ab0=a76_0x25090f,_0x31a3f0={'ukyHo':function(_0xc3a6fc,_0xd7d98b){return _0xc3a6fc+_0xd7d98b;},'xRxPv':function(_0x386247,_0x4305c0){return _0x386247||_0x4305c0;},'jWLVG':function(_0x3320ca,_0x1a5d37){return _0x3320ca===_0x1a5d37;},'eXNsP':function(_0x100007,_0x47cef9){return _0x100007(_0x47cef9);}};if(!_0x2ea8fa||_0x31a3f0[_0x559ab0(0x161)](_0x2ea8fa[_0x559ab0(0x149)],0x0))return 0x0;const _0x56d1a8=[];for(const _0x265f2c of _0x2ea8fa){const _0x5384f8=path[_0x559ab0(0x15c)]('.',_0x265f2c);try{const _0x44c19c=this[_0x559ab0(0x18c)](_0x5384f8);_0x44c19c[_0x559ab0(0x142)](_0xb465c3=>{const _0x1699e2=_0x559ab0;!_0x56d1a8[_0xb465c3[_0x1699e2(0x175)]]&&(_0x56d1a8[_0xb465c3[_0x1699e2(0x175)]]=0x0),_0x56d1a8[_0xb465c3[_0x1699e2(0x175)]]+=_0xb465c3[_0x1699e2(0x17f)];});}catch(_0x5c9af2){_0x31a3f0[_0x559ab0(0x144)](debug,_0x559ab0(0x170)+_0x5c9af2['toString']());}}const _0x5ac5bb=_0x11146b['reduce']((_0x2ff5a5,_0x276819)=>{const _0x46a765=_0x559ab0;return _0x31a3f0[_0x46a765(0x180)](_0x56d1a8[_0x276819],_0x31a3f0['xRxPv'](_0x2ff5a5,0x0));},0x0);return _0x31a3f0[_0x559ab0(0x144)](debug,_0x559ab0(0x17b)+_0x11146b+'\x20for\x20all\x20processes\x20is\x20'+_0x5ac5bb),_0x5ac5bb;}static['getEventsFromJSON'](_0x18ae95){const _0x2b7ff0=a76_0x25090f;if(!fs['existsSync'](_0x18ae95))return[];return JSON[_0x2b7ff0(0x177)](fs[_0x2b7ff0(0x148)](_0x18ae95)['toString']());}static async[a76_0x25090f(0x189)](_0x3cc34c='performance-own.html',_0x4564f1=null){const _0x52a873=a76_0x25090f,_0x57fb3c={'bMGCO':function(_0x3c27ef,_0x3ecc2f){return _0x3c27ef(_0x3ecc2f);},'taNjn':function(_0x3ca124,_0x3648e1){return _0x3ca124(_0x3648e1);}};if(!this[_0x52a873(0x16f)])return;await _0x57fb3c['taNjn'](sleep,0x1e),this[_0x52a873(0x167)]['disconnect'](),this[_0x52a873(0x16f)]=![],this[_0x52a873(0x150)](this['_events']);const _0x502475=this[_0x52a873(0x13e)](this[_0x52a873(0x14d)]),_0x5a21f1=path[_0x52a873(0x15c)](process[_0x52a873(0x12a)](),_0x3cc34c);fs[_0x52a873(0x128)](_0x5a21f1,_0x502475,_0x12a3af=>{const _0x12691d=_0x52a873;if(_0x12a3af){_0x57fb3c[_0x12691d(0x12f)](debug,_0x12691d(0x172)+_0x12a3af['toString']());return;}_0x57fb3c['bMGCO'](debug,_0x12691d(0x193)+_0x5a21f1);});if(_0x4564f1)return this[_0x52a873(0x17d)](this['_events'],_0x4564f1);}static['generateHTMLReport'](_0x5d80c2){const _0x44e071=a76_0x25090f,_0x328851={};_0x328851[_0x44e071(0x160)]=_0x44e071(0x187),_0x328851[_0x44e071(0x163)]=_0x44e071(0x192),_0x328851[_0x44e071(0x12c)]='<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>',_0x328851['bmPOz']=_0x44e071(0x195);const _0x1a28fc=_0x328851;let _0xc32b16=_0x1a28fc[_0x44e071(0x160)];return _0xc32b16+=_0x1a28fc[_0x44e071(0x163)],_0xc32b16+=_0x1a28fc[_0x44e071(0x12c)],_0x5d80c2['forEach'](_0x27dd1a=>{const _0x377605=_0x44e071;_0xc32b16+=_0x377605(0x15d)+_0x27dd1a[_0x377605(0x175)]+'</td><td>'+_0x27dd1a[_0x377605(0x17f)]+_0x377605(0x151);}),_0xc32b16+=_0x1a28fc[_0x44e071(0x13f)],_0xc32b16;}static[a76_0x25090f(0x150)](_0x185403){const _0x41c4ff=a76_0x25090f;if(!this['jsonReportFileName'])return;const _0x5247df={};_0x185403[_0x41c4ff(0x142)](_0xe2249c=>{const _0xb8de97=_0x41c4ff;!_0x5247df[_0xe2249c[_0xb8de97(0x175)]]&&(_0x5247df[_0xe2249c['name']]=0x0),_0x5247df[_0xe2249c['name']]+=_0xe2249c[_0xb8de97(0x17f)];});const _0x53cd19=Object['entries'](_0x5247df)[_0x41c4ff(0x142)](([_0x654357,_0x455766])=>{const _0x3ba3cc=_0x41c4ff,_0x43cf32={};return _0x43cf32[_0x3ba3cc(0x175)]=_0x654357,_0x43cf32['duration']=_0x455766,_0x43cf32;});fs[_0x41c4ff(0x182)](this[_0x41c4ff(0x16d)],JSON[_0x41c4ff(0x16c)](_0x53cd19));}static[a76_0x25090f(0x184)](){const _0x3d7765=a76_0x25090f,_0x580b5f={};_0x580b5f[_0x3d7765(0x190)]=function(_0x2abd4b,_0x3148c8){return _0x2abd4b===_0x3148c8;},_0x580b5f[_0x3d7765(0x14b)]='false';const _0x191254=_0x580b5f;return!_0x191254[_0x3d7765(0x190)](process[_0x3d7765(0x19a)]['BROWSERSTACK_SDK_INSTRUMENTATION'],_0x191254[_0x3d7765(0x14b)]);}static[a76_0x25090f(0x136)](_0x2f8719,_0x5de770,_0x472c29=null,_0x4fd1ed=null){const _0x36bf83=a76_0x25090f,_0x3772e1={};_0x3772e1[_0x36bf83(0x140)]=function(_0x24d589,_0x4ac107){return _0x24d589+_0x4ac107;},_0x3772e1[_0x36bf83(0x155)]=_0x36bf83(0x16a),_0x3772e1[_0x36bf83(0x12e)]='-end',_0x3772e1['mLrHt']=function(_0x5c2ca1,_0x9c1310){return _0x5c2ca1 instanceof _0x9c1310;};const _0x3e856b=_0x3772e1;try{if(this[_0x36bf83(0x16f)]&&this[_0x36bf83(0x184)]()){let _0x1fab6c=_0x2f8719;_0x472c29&&(_0x1fab6c=_0x2f8719+'['+JSON[_0x36bf83(0x16c)](_0x472c29)+']');const _0x5b72c9=_0x3e856b[_0x36bf83(0x140)](_0x1fab6c,_0x3e856b['maJFs']),_0x23a0e1=_0x3e856b[_0x36bf83(0x140)](_0x1fab6c,_0x3e856b[_0x36bf83(0x12e)]);performance[_0x36bf83(0x154)](_0x5b72c9);const _0x5075fd=_0x5de770[_0x36bf83(0x183)](null,_0x4fd1ed);if(_0x3e856b['mLrHt'](_0x5075fd,Promise))return new Promise((_0x2589e0,_0x22b183)=>{const _0x50d1dc=_0x36bf83;_0x5075fd['then'](_0x5d4ac6=>_0x2589e0(_0x5d4ac6))[_0x50d1dc(0x14e)](_0x2cb777=>_0x22b183(_0x2cb777))[_0x50d1dc(0x12d)](()=>{const _0x3d1557=_0x50d1dc;performance[_0x3d1557(0x154)](_0x23a0e1),performance[_0x3d1557(0x136)](_0x1fab6c,_0x5b72c9,_0x23a0e1);});});;return performance[_0x36bf83(0x154)](_0x23a0e1),performance[_0x36bf83(0x136)](_0x1fab6c,_0x5b72c9,_0x23a0e1),_0x5075fd;};return _0x5de770[_0x36bf83(0x183)](null,_0x4fd1ed);}catch(_0x244a9f){return _0x5de770['apply'](null,_0x4fd1ed);}}static[a76_0x25090f(0x19b)](_0x190424,_0x4062e7){const _0x22970e=this;return function(){const _0x5e4ba7=a76_0x26c6,_0x51d77b=[_0x190424,_0x4062e7,null][_0x5e4ba7(0x156)](arguments);return _0x22970e[_0x5e4ba7(0x136)][_0x5e4ba7(0x183)](_0x22970e,_0x51d77b);};}static['getCleanedPerfEvents'](){const _0x8e7cd2=a76_0x25090f,_0x59e401={};_0x59e401[_0x8e7cd2(0x131)]=function(_0x36a25f,_0x75a13a){return _0x36a25f/_0x75a13a;},_0x59e401[_0x8e7cd2(0x168)]=function(_0x278cc6,_0x2fdba6){return _0x278cc6+_0x2fdba6;},_0x59e401[_0x8e7cd2(0x157)]=function(_0x22d93f,_0x5212a1){return _0x22d93f*_0x5212a1;};const _0x52ab8a=_0x59e401,_0xc2606b=/(^.*)\[(.*)\]$/,_0x4c818c={},_0x19be9b={};for(const _0x50e684 of this[_0x8e7cd2(0x135)]){const _0x216ccb=_0x50e684['name']['match'](_0xc2606b),_0x4592ad={};_0x4592ad[_0x8e7cd2(0x175)]=_0x50e684[_0x8e7cd2(0x175)],_0x4592ad[_0x8e7cd2(0x17f)]=_0x50e684['duration']||0x0;const _0x28b4f5=_0x4592ad;_0x216ccb&&(_0x28b4f5['name']=_0x216ccb[0x1],_0x28b4f5[_0x8e7cd2(0x159)]=JSON[_0x8e7cd2(0x177)](_0x216ccb[0x2]));if(_0x4c818c[_0x28b4f5[_0x8e7cd2(0x175)]]){const _0x2bc01a=_0x4c818c[_0x28b4f5[_0x8e7cd2(0x175)]],_0xa51bd4=_0x19be9b[_0x28b4f5[_0x8e7cd2(0x175)]];_0x4c818c[_0x28b4f5[_0x8e7cd2(0x175)]][_0x8e7cd2(0x17f)]=_0x52ab8a[_0x8e7cd2(0x131)](_0x52ab8a[_0x8e7cd2(0x168)](_0x52ab8a[_0x8e7cd2(0x157)](_0x2bc01a['duration'],_0xa51bd4),_0x28b4f5['duration']),_0x52ab8a[_0x8e7cd2(0x168)](0x1,_0xa51bd4)),_0x19be9b[_0x28b4f5['name']]++;}else _0x4c818c[_0x28b4f5[_0x8e7cd2(0x175)]]=_0x28b4f5,_0x19be9b[_0x28b4f5[_0x8e7cd2(0x175)]]=0x1;}return Object[_0x8e7cd2(0x16e)](_0x4c818c);}static[a76_0x25090f(0x17c)](){const _0x149745=a76_0x25090f,_0x3d741c={};_0x3d741c[_0x149745(0x137)]=function(_0x1ffad8,_0x412fe6){return _0x1ffad8===_0x412fe6;},_0x3d741c[_0x149745(0x18e)]=function(_0x91a3c,_0x3e742c){return _0x91a3c+_0x3e742c;};const _0x5d4eb7=_0x3d741c;if(_0x5d4eb7['miAkk'](this[_0x149745(0x135)][_0x149745(0x149)],0x0))return;const _0x3c2dbe=this[_0x149745(0x194)](),_0x295409=JSON[_0x149745(0x16c)](_0x3c2dbe),_0x256486=_0x5d4eb7[_0x149745(0x18e)](_0x295409[_0x149745(0x17a)](0x1,-0x1),',');fs['appendFileSync'](this['jsonReportFileName'],_0x256486);}static[a76_0x25090f(0x169)](){const _0x165c15=a76_0x25090f,_0x5bd988={};_0x5bd988['pkHPt']=function(_0x1e11c7,_0x3c723d){return _0x1e11c7===_0x3c723d;},_0x5bd988[_0x165c15(0x15a)]=function(_0x40c4e6,_0x1403d2){return _0x40c4e6>_0x1403d2;};const _0x5779f6=_0x5bd988;if(!this['started']||_0x5779f6[_0x165c15(0x133)](this[_0x165c15(0x135)][_0x165c15(0x149)],0x0))return[];if(!fs['existsSync'](this[_0x165c15(0x16d)]))return this[_0x165c15(0x135)];let _0x4627af=fs[_0x165c15(0x148)](this['jsonReportFileName'])[_0x165c15(0x185)]();_0x4627af='['+_0x4627af[_0x165c15(0x17a)](0x0,-0x1)+']';let _0xf2ca0f=JSON['parse'](_0x4627af);return _0x5779f6[_0x165c15(0x15a)](this['_measureEvents'][_0x165c15(0x149)],0x0)&&(_0xf2ca0f=_0xf2ca0f[_0x165c15(0x156)](this[_0x165c15(0x194)]())),this['_observer']['disconnect'](),fs[_0x165c15(0x176)](this['jsonReportFileName']),_0xf2ca0f;}static[a76_0x25090f(0x15b)](){const _0x2fdbbb=a76_0x25090f,_0x4c33d5={};_0x4c33d5[_0x2fdbbb(0x16b)]=function(_0x4713ce,_0x5bfc6c){return _0x4713ce===_0x5bfc6c;},_0x4c33d5['FxwcB']=function(_0x914bb9,_0x3d822e){return _0x914bb9+_0x3d822e;};const _0x391004=_0x4c33d5;if(_0x391004[_0x2fdbbb(0x16b)](this[_0x2fdbbb(0x145)][_0x2fdbbb(0x149)],0x0))return;const _0x569962=JSON['stringify'](this['_errorEvents']),_0x32c936=_0x391004[_0x2fdbbb(0x139)](_0x569962['slice'](0x1,-0x1),',');fs['appendFileSync'](this[_0x2fdbbb(0x191)],_0x32c936);}static[a76_0x25090f(0x15e)](){const _0x2bdbd7=a76_0x25090f,_0x3da15c={};_0x3da15c[_0x2bdbd7(0x146)]=function(_0x34964b,_0x5803a7){return _0x34964b>_0x5803a7;};const _0x3f7225=_0x3da15c;if(!fs[_0x2bdbd7(0x134)](this['errorReportFileName']))return this['_errorEvents'];let _0x922020=fs[_0x2bdbd7(0x148)](this['errorReportFileName'])[_0x2bdbd7(0x185)]();_0x922020='['+_0x922020[_0x2bdbd7(0x17a)](0x0,-0x1)+']';let _0x1afa56=JSON[_0x2bdbd7(0x177)](_0x922020);return _0x3f7225[_0x2bdbd7(0x146)](this[_0x2bdbd7(0x145)]['length'],0x0)&&(_0x1afa56=_0x1afa56[_0x2bdbd7(0x156)](this[_0x2bdbd7(0x145)])),fs['unlinkSync'](this[_0x2bdbd7(0x13d)]),_0x1afa56;}static['captureError'](_0x29b211){const _0x35ef2d=a76_0x25090f;if(!this[_0x35ef2d(0x184)]())return;this['_errorEvents']['push']({'message':_0x29b211[_0x35ef2d(0x18d)],'trace':_0x29b211[_0x35ef2d(0x171)],'code':_0x29b211[_0x35ef2d(0x19d)]||null,'time':new Date()});}static[a76_0x25090f(0x198)](){const _0x109ac4=a76_0x25090f,_0x40ad12={};_0x40ad12[_0x109ac4(0x138)]='Error\x20stopping\x20monitoring';const _0x23fc93=_0x40ad12;try{if(!this[_0x109ac4(0x184)]())return;this[_0x109ac4(0x167)]['disconnect'](),this[_0x109ac4(0x17c)](),this[_0x109ac4(0x15b)]();}catch{logger[_0x109ac4(0x181)](_0x23fc93[_0x109ac4(0x138)]);}}static[a76_0x25090f(0x197)](){const _0x4371bd=a76_0x25090f,_0x24e510=this[_0x4371bd(0x169)](),_0xb31ed5=this['finalizeErrors']();if(!this[_0x4371bd(0x184)]()){const _0x2bc218={};return _0x2bc218[_0x4371bd(0x129)]=[],_0x2bc218[_0x4371bd(0x173)]=[],_0x2bc218;}const _0x2a2455={};return _0x2a2455['measures']=_0x24e510,_0x2a2455[_0x4371bd(0x173)]=_0xb31ed5,_0x2a2455;}}module[a76_0x25090f(0x147)]=PerformanceTester;
|