browserstack-node-sdk 1.54.1 → 1.54.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -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/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a49_0x28de(_0x3c679f,_0x1507b1){const _0x814c86=a49_0x814c();return a49_0x28de=function(_0x28deb8,_0x1f987){_0x28deb8=_0x28deb8-0x1a5;let _0x24c2c6=_0x814c86[_0x28deb8];return _0x24c2c6;},a49_0x28de(_0x3c679f,_0x1507b1);}const a49_0x1b9fe8=a49_0x28de;(function(_0x4afe80,_0x5c1975){const _0x26f2e2=a49_0x28de,_0x4a6052=_0x4afe80();while(!![]){try{const _0x4c8097=parseInt(_0x26f2e2(0x1fa))/0x1+-parseInt(_0x26f2e2(0x1aa))/0x2*(-parseInt(_0x26f2e2(0x1ac))/0x3)+parseInt(_0x26f2e2(0x1e4))/0x4+-parseInt(_0x26f2e2(0x1da))/0x5+parseInt(_0x26f2e2(0x1b7))/0x6*(parseInt(_0x26f2e2(0x1e3))/0x7)+parseInt(_0x26f2e2(0x1db))/0x8*(-parseInt(_0x26f2e2(0x1e9))/0x9)+parseInt(_0x26f2e2(0x200))/0xa*(-parseInt(_0x26f2e2(0x1e2))/0xb);if(_0x4c8097===_0x5c1975)break;else _0x4a6052['push'](_0x4a6052['shift']());}catch(_0x59ea8a){_0x4a6052['push'](_0x4a6052['shift']());}}}(a49_0x814c,0x79f42));function a49_0x814c(){const _0x397793=['gNRSK','browser_version','toString','3295630iPehLf','712gBpBxL','isRunning','BSTACK_ATS_URL','sessionError','getInstance','ubvHG','winstonLogger','561wHnkWW','14yUMagN','290024QdDhxc','automate','Error\x20in\x20setupBrowserDetails:\x20','function','jYfCe','46341XPQvvD','local_grid','../../helpers/helper','../../helpers/logger','patchConnection','[PuppeteerSessionDetails]\x20Connection\x20patched\x20for\x20session\x20capture','browser','bsParams','lXWBe','string','bStackParams','ISKHb','version','ATS_WSS_URL_REGEX','getDetails','zXKdz','caps','832352xePvwC','platform','format','unknown_grid','zbTCX','onmessage','192790PmmPNW','../v2/state/automationFrameworkState.js','includes','platformVersion','sessionId','apply','assign','chrome','1707528rOmXgd','SikfG','3PAFYLF','POST','turboscale','query','connection','tgnDv','capabilities','browserstack','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','_connection','bsSessionId','2524548rFAaSG','message','test','result','currentSessionDetails','platform_version','trackEvent','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','product','url','KWZDs','TgVsh','lsosb','FuKFQ','debug','sbhMe','params','BSTACK_URL','stringify','aMPhf','IXHzO','_bstackPatched','cloudProvider','fromEntries','parse','vQufy','PLAYWRIGHT_DISPATCH','ywAGF','platformDetails','browserName','Jospu','Error\x20in\x20patchConnection:\x20'];a49_0x814c=function(){return _0x397793;};return a49_0x814c();}const path=require('path'),url=require(a49_0x1b9fe8(0x1c0)),util=require('util'),{nestedKeyValue,isFalse}=require(a49_0x1b9fe8(0x1eb)),{debug,getPlatformDetails}=require('../../helpers/test-observability/utils'),logger=require(a49_0x1b9fe8(0x1ec))[a49_0x1b9fe8(0x1e1)],constants=require('../utils/constants'),BrowserstackCLI=require('../v2/browserstackCLI'),AutomationFrameworkState=require(a49_0x1b9fe8(0x201)),HookState=require('../v2/state/hookState.js'),getBrowserFromWSEndpoint=_0x48f5cc=>{const _0xf8e10=a49_0x1b9fe8,_0x1b2981={'TgVsh':_0xf8e10(0x1a9),'xXPdQ':function(_0x2e3d45,_0x49355a){return _0x2e3d45(_0x49355a);}};try{const _0x3b05ed=url[_0xf8e10(0x1cf)](_0x48f5cc),_0x4d5332=new URLSearchParams(_0x3b05ed[_0xf8e10(0x1af)]),_0x43bf20=Object[_0xf8e10(0x1ce)](_0x4d5332['entries']()),_0x59b05a=JSON['parse'](_0x43bf20[_0xf8e10(0x1f9)]);if(_0x59b05a&&(_0x59b05a[_0xf8e10(0x1ef)]||_0x59b05a[_0xf8e10(0x1d4)]))return _0x59b05a[_0xf8e10(0x1ef)]||_0x59b05a[_0xf8e10(0x1d4)];return _0x1b2981[_0xf8e10(0x1c2)];}catch(_0x11d9b6){_0x1b2981['xXPdQ'](debug,'Error\x20in\x20getting\x20browser\x20from\x20caps:\x20'+_0x11d9b6[_0xf8e10(0x1d9)]());}},getCloudProviderFromWsEndpoint=_0x13915a=>{const _0x1457dd=a49_0x1b9fe8,_0x54f753={};_0x54f753[_0x1457dd(0x1cb)]='browserstack',_0x54f753[_0x1457dd(0x1d7)]=_0x1457dd(0x1fd);const _0x41e408=_0x54f753;if(_0x13915a[_0x1457dd(0x202)](constants[_0x1457dd(0x1c8)])||_0x13915a[_0x1457dd(0x202)](constants[_0x1457dd(0x1dd)]))return _0x41e408[_0x1457dd(0x1cb)];return _0x41e408['gNRSK'];},a49_0x52c536={};a49_0x52c536[a49_0x1b9fe8(0x1cd)]=undefined,a49_0x52c536[a49_0x1b9fe8(0x1b6)]=undefined,a49_0x52c536[a49_0x1b9fe8(0x1ef)]=undefined,a49_0x52c536[a49_0x1b9fe8(0x1d8)]=undefined,a49_0x52c536['platform']=undefined,a49_0x52c536[a49_0x1b9fe8(0x1bc)]=undefined,a49_0x52c536[a49_0x1b9fe8(0x1bf)]=undefined,a49_0x52c536[a49_0x1b9fe8(0x1b2)]={};class PuppeteerSessionDetails{static ['currentSessionDetails']=a49_0x52c536;constructor(){const _0x8e7081=a49_0x1b9fe8,_0x29afcc={};_0x29afcc[_0x8e7081(0x1c3)]=_0x8e7081(0x1b4);const _0xd0f33f=_0x29afcc;throw new Error(_0xd0f33f[_0x8e7081(0x1c3)]);}static [a49_0x1b9fe8(0x1de)]=null;static async['setupBrowserDetails'](_0x689361,_0x149b9b){const _0x1e24cb=a49_0x1b9fe8,_0x11859c={'tgnDv':_0x1e24cb(0x1a9),'lXWBe':function(_0x307b10,_0x2d017a){return _0x307b10===_0x2d017a;},'vQufy':_0x1e24cb(0x1e7),'vWonA':_0x1e24cb(0x1ea),'FuKFQ':function(_0x252da9,_0x36abc4){return _0x252da9(_0x36abc4);},'dWKgZ':function(_0x18410e,_0x36687e){return _0x18410e===_0x36687e;},'jYfCe':_0x1e24cb(0x1b3),'ubvHG':_0x1e24cb(0x1ae),'KWZDs':_0x1e24cb(0x1e5),'sbhMe':function(_0x3fcd3d,_0x2d97ea){return _0x3fcd3d(_0x2d97ea);},'ywAGF':function(_0x4f68ba){return _0x4f68ba();}};try{let _0x402feb=_0x11859c[_0x1e24cb(0x1b1)],_0x3c49bb=null;_0x689361&&_0x11859c[_0x1e24cb(0x1f1)](typeof _0x689361[_0x1e24cb(0x1f5)],_0x11859c[_0x1e24cb(0x1d0)])&&(_0x3c49bb=await _0x689361[_0x1e24cb(0x1f5)]());let _0x1afb38=null,_0x445e13=null,_0x38a974=null,_0x16e1cb=_0x11859c['vWonA'];if(_0x149b9b){_0x16e1cb=_0x11859c[_0x1e24cb(0x1c4)](getCloudProviderFromWsEndpoint,_0x149b9b);if(_0x11859c['dWKgZ'](_0x16e1cb,_0x11859c[_0x1e24cb(0x1e8)]))_0x38a974=constants[_0x1e24cb(0x1f6)]?constants['ATS_WSS_URL_REGEX'][_0x1e24cb(0x1b9)](_0x149b9b)?_0x11859c[_0x1e24cb(0x1e0)]:_0x11859c[_0x1e24cb(0x1c1)]:_0x11859c['KWZDs'],_0x402feb=_0x11859c[_0x1e24cb(0x1c6)](getBrowserFromWSEndpoint,_0x149b9b)||_0x402feb,_0x1afb38=this['currentSessionDetails']['platform'],_0x445e13=this[_0x1e24cb(0x1bb)][_0x1e24cb(0x1bc)];else{const _0x12239b=await _0x11859c['ywAGF'](getPlatformDetails);_0x1afb38=_0x12239b['platformName'],_0x445e13=_0x12239b['platformVersion'];}}else{const _0x2fbab3=await _0x11859c[_0x1e24cb(0x1d2)](getPlatformDetails);_0x1afb38=_0x2fbab3['platformName'],_0x445e13=_0x2fbab3[_0x1e24cb(0x1a5)];}const _0x5ccb56={};_0x5ccb56[_0x1e24cb(0x1ef)]=_0x402feb,_0x5ccb56[_0x1e24cb(0x1d8)]=_0x3c49bb,_0x5ccb56['capabilities']={},_0x5ccb56[_0x1e24cb(0x1fb)]=_0x1afb38,_0x5ccb56[_0x1e24cb(0x1bc)]=_0x445e13,_0x5ccb56[_0x1e24cb(0x1bf)]=_0x38a974;const _0x6a1ced=_0x5ccb56,_0x19977b={};_0x19977b[_0x1e24cb(0x1cd)]=_0x16e1cb,this[_0x1e24cb(0x1bb)]=Object[_0x1e24cb(0x1a8)]({},this[_0x1e24cb(0x1bb)],_0x19977b,_0x6a1ced);}catch(_0x343b52){_0x11859c[_0x1e24cb(0x1c4)](debug,_0x1e24cb(0x1e6)+util[_0x1e24cb(0x1fc)](_0x343b52)),this['sessionError']=_0x343b52[_0x1e24cb(0x1d9)]();}}static[a49_0x1b9fe8(0x1ed)](_0x38305d){const _0x52ca40=a49_0x1b9fe8,_0x138565={'zXKdz':function(_0x1c76b3,_0x215dbb){return _0x1c76b3===_0x215dbb;},'Jospu':_0x52ca40(0x1f2),'TyiMx':function(_0x39f186,_0x480b69){return _0x39f186(_0x480b69);},'zbTCX':function(_0x4693b2,_0x4ece99){return _0x4693b2(_0x4ece99);},'ISKHb':function(_0xbe8a74,_0x99d359){return _0xbe8a74===_0x99d359;},'aMPhf':function(_0x153646,_0x571e6a){return _0x153646(_0x571e6a);},'SikfG':_0x52ca40(0x1ee)},_0xedfb3f=this;try{const _0x28078e=_0x38305d[_0x52ca40(0x1b5)]||_0x38305d[_0x52ca40(0x1b0)];if(!_0x28078e||_0x28078e['_bstackPatched'])return;const _0x29cb71=_0x28078e[_0x52ca40(0x1ff)];_0x28078e['onmessage']=function(_0x3c1c3f){const _0x5082c0=_0x52ca40;try{const _0x21a024=_0x138565[_0x5082c0(0x1f8)](typeof _0x3c1c3f,_0x138565[_0x5082c0(0x1d5)])?JSON[_0x5082c0(0x1cf)](_0x3c1c3f):_0x3c1c3f,_0x4df2cf=_0x21a024?.['bStackParams']||_0x21a024?.[_0x5082c0(0x1f0)]||_0x21a024?.[_0x5082c0(0x1c7)]?.['bsParams']||_0x21a024?.[_0x5082c0(0x1c7)]?.[_0x5082c0(0x1f3)]||_0x21a024?.['result']?.[_0x5082c0(0x1f0)]||_0x21a024?.[_0x5082c0(0x1ba)]?.[_0x5082c0(0x1f3)];if(_0x4df2cf){if(BrowserstackCLI[_0x5082c0(0x1df)]()[_0x5082c0(0x1dc)]()){const _0x49258c={};_0x49258c[_0x5082c0(0x1b8)]=_0x21a024,BrowserstackCLI[_0x5082c0(0x1df)]()['getAutomationFramework']()[_0x5082c0(0x1bd)](AutomationFrameworkState[_0x5082c0(0x1d1)],HookState[_0x5082c0(0x1ad)],_0x49258c);}else{const _0x477242=_0x4df2cf[_0x5082c0(0x1a6)],_0x37f6be=_0x4df2cf[_0x5082c0(0x1d3)];_0x37f6be&&(_0x138565['TyiMx'](debug,_0x5082c0(0x1be)+JSON[_0x5082c0(0x1c9)](_0x37f6be)),_0xedfb3f[_0x5082c0(0x1bb)]['platform']=_0x37f6be['platformName'],_0xedfb3f[_0x5082c0(0x1bb)][_0x5082c0(0x1bc)]=_0x37f6be['platformVersion']),_0x477242&&(_0x138565['zbTCX'](debug,'Setting\x20session\x20id\x20received\x20from\x20BS\x20'+_0x477242),_0xedfb3f[_0x5082c0(0x1bb)][_0x5082c0(0x1b6)]=_0x477242);}_0x138565[_0x5082c0(0x1f4)](typeof _0x3c1c3f,_0x138565[_0x5082c0(0x1d5)])&&(delete _0x21a024[_0x5082c0(0x1f3)],delete _0x21a024[_0x5082c0(0x1f0)],_0x21a024[_0x5082c0(0x1c7)]&&(delete _0x21a024[_0x5082c0(0x1c7)][_0x5082c0(0x1f0)],delete _0x21a024[_0x5082c0(0x1c7)]['bStackParams']),_0x21a024[_0x5082c0(0x1ba)]&&(delete _0x21a024[_0x5082c0(0x1ba)][_0x5082c0(0x1f0)],delete _0x21a024[_0x5082c0(0x1ba)][_0x5082c0(0x1f3)]));}}catch(_0x2586c4){_0x138565[_0x5082c0(0x1ca)](debug,'Error\x20extracting\x20bsParams\x20from\x20CDP\x20message:\x20'+_0x2586c4[_0x5082c0(0x1b8)]);}return _0x29cb71?.[_0x5082c0(0x1a7)](this,arguments);},_0x28078e[_0x52ca40(0x1cc)]=!![],logger[_0x52ca40(0x1c5)](_0x138565[_0x52ca40(0x1ab)]);}catch(_0x59162f){_0x138565[_0x52ca40(0x1fe)](debug,_0x52ca40(0x1d6)+util[_0x52ca40(0x1fc)](_0x59162f)),_0xedfb3f[_0x52ca40(0x1de)]=_0x59162f['toString']();}}static[a49_0x1b9fe8(0x1f7)](){const _0x5667a6=a49_0x1b9fe8;return this[_0x5667a6(0x1bb)];}}module['exports']=PuppeteerSessionDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a50_0xded7(_0x5a01a6,_0x296f10){const _0x5f3360=a50_0x5f33();return a50_0xded7=function(_0xded76,_0x244eef){_0xded76=_0xded76-0x11d;let _0x34dda0=_0x5f3360[_0xded76];return _0x34dda0;},a50_0xded7(_0x5a01a6,_0x296f10);}const a50_0xf8a9f8=a50_0xded7;(function(_0x3ad297,_0x5080c4){const _0x19858d=a50_0xded7,_0x2f1858=_0x3ad297();while(!![]){try{const _0xa09d39=parseInt(_0x19858d(0x121))/0x1*(-parseInt(_0x19858d(0x11d))/0x2)+-parseInt(_0x19858d(0x14d))/0x3+-parseInt(_0x19858d(0x149))/0x4*(parseInt(_0x19858d(0x145))/0x5)+parseInt(_0x19858d(0x12b))/0x6*(parseInt(_0x19858d(0x126))/0x7)+-parseInt(_0x19858d(0x133))/0x8+-parseInt(_0x19858d(0x132))/0x9*(parseInt(_0x19858d(0x14a))/0xa)+-parseInt(_0x19858d(0x141))/0xb*(-parseInt(_0x19858d(0x13b))/0xc);if(_0xa09d39===_0x5080c4)break;else _0x2f1858['push'](_0x2f1858['shift']());}catch(_0x2b77b5){_0x2f1858['push'](_0x2f1858['shift']());}}}(a50_0x5f33,0x792cc));const {isTrue,isBrowserstackInfra}=require(a50_0xf8a9f8(0x137)),setKeepAlive=require(a50_0xf8a9f8(0x13c)),util=require(a50_0xf8a9f8(0x138)),logger=require(a50_0xf8a9f8(0x122))[a50_0xf8a9f8(0x140)],{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),{addRequestSpy}=require(a50_0xf8a9f8(0x146)),a50_0x12dee7={};a50_0x12dee7[a50_0xf8a9f8(0x13e)]=undefined,a50_0x12dee7[a50_0xf8a9f8(0x11e)]={},a50_0x12dee7['o11ySyncDone']=![],a50_0x12dee7[a50_0xf8a9f8(0x12e)]=null,a50_0x12dee7['isPageFixture']=![],a50_0x12dee7[a50_0xf8a9f8(0x11e)]['id']=undefined,a50_0x12dee7[a50_0xf8a9f8(0x11e)][a50_0xf8a9f8(0x142)]=undefined;function a50_0x5f33(){const _0x5993b3=['[PuppeteerTestSetup]\x20Bootstrapping\x20BrowserstackCLI\x20for\x20Jest\x20worker','getPackageVersion','[PuppeteerTestSetup]\x20Jest-Puppeteer\x20test\x20setup\x20completed','12OJLPKa','../utils/constants','getInstance','pwPage','__skipSessionName','debug','[PuppeteerTestSetup]\x20Patching\x20Puppeteer\x20for\x20Jest','9rmNBHb','5271008ZGiUOD','jestConfig','setFrameworkDetail','puppeteer-core','../../helpers/helper','util','env','JEST','4139328pMtyyR','../../helpers/setKeepAlive','[PuppeteerTestSetup]\x20Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20','workerInfo','__skipSessionStatus','winstonLogger','99JykhLl','testInfo','skipSessionStatus','bootstrap','10bSpwop','../../helpers/test-observability/utils','BROWSERSTACK_PUPPETEER','format','1977468FWjRSm','5328530CrwhSL','../v2/cliUtils','true','317133oNoZfU','1102508gUkvil','currentTest','[PuppeteerTestSetup]\x20Puppeteer\x20patching\x20initialized','catch','1FUADyK','../../helpers/logger','initializePuppeteerPatching','../v2/browserstackCLI','PUPPETEER','802424lnBrgx','isCliEnabled'];a50_0x5f33=function(){return _0x5993b3;};return a50_0x5f33();}const workerDetails=a50_0x12dee7;global['__workerDetails']=workerDetails;let puppeteerPatcher=null;setKeepAlive();if(global['jestConfig'])try{isBrowserstackInfra()?(global[a50_0xf8a9f8(0x12f)]=isTrue(global['jestConfig']?.['skipSessionName']),global[a50_0xf8a9f8(0x13f)]=isTrue(global[a50_0xf8a9f8(0x134)]?.[a50_0xf8a9f8(0x143)])):(global[a50_0xf8a9f8(0x12f)]=!![],global[a50_0xf8a9f8(0x13f)]=!![]);const helper=require('../../helpers/helper'),puppeteerVersion=helper['getPackageVersion']('puppeteer')||helper[a50_0xf8a9f8(0x129)](a50_0xf8a9f8(0x136));if(puppeteerVersion)try{logger[a50_0xf8a9f8(0x130)](a50_0xf8a9f8(0x131)),puppeteerPatcher=require('../utils/puppeteer-patcher'),puppeteerPatcher[a50_0xf8a9f8(0x123)](global['jestConfig']),logger[a50_0xf8a9f8(0x130)](a50_0xf8a9f8(0x11f));}catch(a50_0x30715d){logger[a50_0xf8a9f8(0x130)]('[PuppeteerTestSetup]\x20Error\x20initializing\x20Puppeteer\x20patching:\x20'+util[a50_0xf8a9f8(0x148)](a50_0x30715d));}if(puppeteerPatcher)try{const BrowserstackCLI=require(a50_0xf8a9f8(0x124)),CLIUtils=require(a50_0xf8a9f8(0x14b)),{FRAMEWORKS}=require(a50_0xf8a9f8(0x12c));BrowserstackCLI[a50_0xf8a9f8(0x12d)]()[a50_0xf8a9f8(0x127)]()&&(logger['debug'](a50_0xf8a9f8(0x128)),process[a50_0xf8a9f8(0x139)][a50_0xf8a9f8(0x147)]=a50_0xf8a9f8(0x14c),CLIUtils[a50_0xf8a9f8(0x135)](FRAMEWORKS[a50_0xf8a9f8(0x13a)],FRAMEWORKS[a50_0xf8a9f8(0x125)]),BrowserstackCLI['getInstance']()[a50_0xf8a9f8(0x144)]()[a50_0xf8a9f8(0x120)](_0x21eee3=>{const _0xe4b9ad=a50_0xf8a9f8;logger[_0xe4b9ad(0x130)]('[PuppeteerTestSetup]\x20Error\x20bootstrapping\x20BrowserstackCLI:\x20'+util[_0xe4b9ad(0x148)](_0x21eee3));}));}catch(a50_0x1a94cb){logger['debug'](a50_0xf8a9f8(0x13d)+util['format'](a50_0x1a94cb));}shouldProcessEventForTesthub()&&addRequestSpy(![]);}catch(a50_0x521d05){logger[a50_0xf8a9f8(0x130)]('[PuppeteerTestSetup]\x20Error\x20reading\x20BrowserStack\x20config:\x20'+util[a50_0xf8a9f8(0x148)](a50_0x521d05));}logger[a50_0xf8a9f8(0x130)](a50_0xf8a9f8(0x12a));
|
package/src/bin/runner.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function a51_0x2bdc(_0x41e215,_0x10be6b){const _0x16943c=a51_0x1694();return a51_0x2bdc=function(_0x2bdc46,_0x2291e8){_0x2bdc46=_0x2bdc46-0xc1;let _0x2e28a5=_0x16943c[_0x2bdc46];return _0x2e28a5;},a51_0x2bdc(_0x41e215,_0x10be6b);}const a51_0x3fc1f9=a51_0x2bdc;(function(_0x541eee,_0x252eb3){const _0xdc7492=a51_0x2bdc,_0x111c59=_0x541eee();while(!![]){try{const _0x51d265=parseInt(_0xdc7492(0xe7))/0x1*(-parseInt(_0xdc7492(0xec))/0x2)+-parseInt(_0xdc7492(0x119))/0x3+parseInt(_0xdc7492(0x136))/0x4+-parseInt(_0xdc7492(0x12b))/0x5+-parseInt(_0xdc7492(0x155))/0x6+parseInt(_0xdc7492(0x14b))/0x7+parseInt(_0xdc7492(0x113))/0x8;if(_0x51d265===_0x252eb3)break;else _0x111c59['push'](_0x111c59['shift']());}catch(_0x19a01a){_0x111c59['push'](_0x111c59['shift']());}}}(a51_0x1694,0x9d1a6));const fs=require('fs'),path=require(a51_0x3fc1f9(0x148)),util=require(a51_0x3fc1f9(0x11c)),spawn=require(a51_0x3fc1f9(0x14a))['spawn'],{requireModule}=require(a51_0x3fc1f9(0xfb)),PerformanceTester=require('../helpers/performance/performance-tester'),PerformanceEvents=require(a51_0x3fc1f9(0x149))['EVENTS'],helper=require(a51_0x3fc1f9(0xfb)),utilities=require('../helpers/utilities'),{default:BrowserStackSetup}=require(a51_0x3fc1f9(0x120)),{FRAMEWORKS}=require(a51_0x3fc1f9(0x143)),runIntegrations=require('./integrations/command'),yargs=require(a51_0x3fc1f9(0xeb)),Constants=require(a51_0x3fc1f9(0xe4)),BrowserstackCLI=require('./v2/browserstackCLI'),logger=require(a51_0x3fc1f9(0x13d))[a51_0x3fc1f9(0x133)],origArgs=Object[a51_0x3fc1f9(0xe6)]([],process[a51_0x3fc1f9(0x123)]),captureError=async(_0x5cee38,_0x1a6c98,_0x19c0a3,_0x59ce7d=null,_0x1dc5e7=![])=>{const _0x17831c=a51_0x3fc1f9,_0x21906f={'XuRXR':function(_0x4ab7cb,_0x5e59bb,_0x580e9a,_0x2f1bad){return _0x4ab7cb(_0x5e59bb,_0x580e9a,_0x2f1bad);},'hYTjJ':'SDKTestSuccessful'};try{logger['info'](_0x17831c(0xd8)+origArgs['join']('\x20')),await _0x21906f[_0x17831c(0x11e)](_0x5cee38,_0x1a6c98,_0x59ce7d,_0x19c0a3);}catch(_0x1bc3c2){process['exitCode']=0x1,logger[_0x17831c(0x124)](util['format'](_0x1bc3c2));const _0x5d002b={'globalException':util['format']('%j',_0x1bc3c2)};PerformanceTester[_0x17831c(0x115)](PerformanceEvents[_0x17831c(0x101)],![],util[_0x17831c(0xf6)](_0x1bc3c2));if(helper[_0x17831c(0xf0)](global[_0x17831c(0x122)])&&helper[_0x17831c(0xf0)](global['framework']))return;try{utilities[_0x17831c(0x11b)](_0x21906f[_0x17831c(0xcc)],_0x5d002b,global['config'],global[_0x17831c(0xf9)]);}catch(_0x42773f){logger[_0x17831c(0x127)]('Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20'+_0x42773f[_0x17831c(0x150)]);}try{await helper[_0x17831c(0xc8)](global[_0x17831c(0x122)]);}catch(_0x19f84c){logger[_0x17831c(0x127)](_0x17831c(0x100)+_0x19f84c[_0x17831c(0x150)]);}PerformanceTester[_0x17831c(0x115)](PerformanceEvents[_0x17831c(0x101)],![],util['format'](_0x1bc3c2));}finally{!_0x1dc5e7&&await BrowserstackCLI[_0x17831c(0xcd)]()[_0x17831c(0x103)](),PerformanceTester[_0x17831c(0xd0)](PerformanceEvents[_0x17831c(0x156)]);}};try{const browserstackFolderPath=path[a51_0x3fc1f9(0x137)](helper[a51_0x3fc1f9(0xc2)](),a51_0x3fc1f9(0x135));if(fs[a51_0x3fc1f9(0xfe)](browserstackFolderPath)){const filePath=path[a51_0x3fc1f9(0x137)](browserstackFolderPath,a51_0x3fc1f9(0x125));fs['existsSync'](filePath)&&fs[a51_0x3fc1f9(0x152)](filePath);}}catch(a51_0x1bf0f7){logger[a51_0x3fc1f9(0x127)]('Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20'+a51_0x1bf0f7[a51_0x3fc1f9(0x10d)]);}process[a51_0x3fc1f9(0x123)][a51_0x3fc1f9(0x13c)]('mocha')&&(!process[a51_0x3fc1f9(0x123)][a51_0x3fc1f9(0x13c)]('--opts')&&process[a51_0x3fc1f9(0x123)][a51_0x3fc1f9(0x141)](a51_0x3fc1f9(0x114)),!process[a51_0x3fc1f9(0x123)][a51_0x3fc1f9(0xea)](_0x371a16=>_0x371a16[a51_0x3fc1f9(0x13c)](a51_0x3fc1f9(0xe2)))&&process['argv'][a51_0x3fc1f9(0x141)](a51_0x3fc1f9(0xfa)),!process['argv'][a51_0x3fc1f9(0x13c)](a51_0x3fc1f9(0xc7))&&process[a51_0x3fc1f9(0x123)][a51_0x3fc1f9(0x141)](a51_0x3fc1f9(0xd2)),helper['findAndReplace'](process['argv'],'--require',a51_0x3fc1f9(0xc4)));PerformanceTester['start'](PerformanceEvents[a51_0x3fc1f9(0x101)]);const a51_0x3786b2={};function a51_0x1694(){const _0x1f6c7f=['-pw:channel','3689868hwTszp','SDK_CLEANUP','TlYuV','homedir','fgOKk','--mochaRequire','ats','CmWVN','--package','sendLogs','filter','NIGHTWATCH','./nightwatch/command','hYTjJ','getInstance','BJUmU','bvWHV','start','setBrowserStackAutomationDisable','--no-package','jest','INFO','pw:channel\x20auto-capture\x20seed\x20failed:\x20','cucumber-js','strict','Running\x20SDK\x20with\x20args\x20','some','./load/index','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','JEST','mocha','HELP','HST','Parsing\x20command\x20line\x20arguments','getPwChannelLogPath','--config','ZtNuY','./utils/constants','boolean','assign','268HLeqgT','getConfigPath','map','find','yargs','344SwmcLc','zbwmn','./cucumber-js/command','ZZSDr','isUndefined','xtBCF','ftjto','YsCNo','DEBUG','XGlbu','format','env','CODECEPTJS','framework','--no-config','../helpers/helper','dCXyi','split','existsSync','irgEW','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','SDK_SETUP','-pw:*','stop','usage','node','version','Bwzkq','mocha/lib/cli/run.js','Show\x20help','help','CUCUMBER','NZhdZ','message','gdUFG','handler','alias','parserConfiguration','setTestObservabilityDisable','2760568hGVAfd','--no-opts','end','qmbWl','VwyCu','disableAutoCaptureLogs','287058JMWEbn','wIqcy','fireFunnelTestEvent','util','GdXgt','XuRXR','dnGLI','../helpers/BrowserStackSetup','fsDql','config','argv','error','.local-not-set.json','TpybQ','debug','trim','eBMKS','jSDEQ','1870120sardsR','integrations','VANILLA','INTEGRATIONS','XAVdR','SGNlu','describe','load\x20[subcommand]','winstonLogger','run','.browserstack','4393536cVKIYY','join','RDeTE','dot-notation','GTrwA','rmSPS','includes','../helpers/logger','mocha/lib/cli/cli.js','vanilla','AxWPV','push','VERSION','../helpers/test-observability/constants','command','codeceptjs','PLAYWRIGHT','wrap','path','../helpers/performance/constants','child_process','2315761Nalwxz','exitProcess','FDrNK','slice','showHelpOnFail','stack','QUYqM','unlinkSync','./mocha/command'];a51_0x1694=function(){return _0x1f6c7f;};return a51_0x1694();}a51_0x3786b2[a51_0x3fc1f9(0x139)]=![];const argv=yargs[a51_0x3fc1f9(0x111)](a51_0x3786b2)[a51_0x3fc1f9(0x104)]('usage:\x20$0\x20<command>\x20[args]')[a51_0x3fc1f9(0x110)]('v',a51_0x3fc1f9(0x106))[a51_0x3fc1f9(0x131)]('v')['alias']('h',a51_0x3fc1f9(0x10a))['help'](a51_0x3fc1f9(0x10a))[a51_0x3fc1f9(0x14f)](!![],Constants[a51_0x3fc1f9(0x142)][a51_0x3fc1f9(0xde)])[a51_0x3fc1f9(0x144)](a51_0x3fc1f9(0xd3),Constants[a51_0x3fc1f9(0xdc)][a51_0x3fc1f9(0xd4)],function(_0x1e576d){const _0x4dfd57=a51_0x3fc1f9,_0x44ea70={'JIzPf':'jest','FDrNK':function(_0x10961e,_0x5866b6,_0x139ee5,_0x1fdb18,_0x43e175,_0x1d990){return _0x10961e(_0x5866b6,_0x139ee5,_0x1fdb18,_0x43e175,_0x1d990);},'CmWVN':function(_0xa9ba6c,_0x312233){return _0xa9ba6c(_0x312233);},'axjoC':'./jest/command'},_0x5a7dc5=process[_0x4dfd57(0x123)][_0x4dfd57(0x14e)](0x2);helper['setTestObservabilityDisable'](),helper[_0x4dfd57(0xd1)](),_0x1e576d[_0x4dfd57(0xd7)](![]);const _0x1ffe07=new BrowserStackSetup(_0x1e576d['argv'],_0x44ea70['JIzPf']);return _0x44ea70[_0x4dfd57(0x14d)](captureError,_0x44ea70[_0x4dfd57(0xc6)](require,_0x44ea70['axjoC']),_0x1e576d[_0x4dfd57(0x123)],_0x1ffe07,_0x5a7dc5,!![]);})[a51_0x3fc1f9(0x144)](a51_0x3fc1f9(0xdd),Constants['MOCHA']['INFO'],_0x408f4e=>{const _0x317e24=a51_0x3fc1f9,_0x321ff3={'asXdr':function(_0xb8d03d,_0x7b763b,_0x331c10,_0x5651f3){return _0xb8d03d(_0x7b763b,_0x331c10,_0x5651f3);},'hRRKm':function(_0x1a3dd7,_0x23de53){return _0x1a3dd7(_0x23de53);},'XGlbu':_0x317e24(0x153),'BJUmU':_0x317e24(0xdd),'SGNlu':_0x317e24(0xe0),'jSDEQ':function(_0x267878,_0x49eeeb,_0x225d33){return _0x267878(_0x49eeeb,_0x225d33);},'zbwmn':_0x317e24(0x108),'wIqcy':'mocha/lib/cli/commands.js','TlYuV':_0x317e24(0x13e),'eBMKS':function(_0x94bdef){return _0x94bdef();}};process[_0x317e24(0x123)]=process[_0x317e24(0x123)][_0x317e24(0x14e)](0x1),helper[_0x317e24(0x112)](),helper[_0x317e24(0xd1)]();const _0x5f1a79=new BrowserStackSetup(_0x408f4e[_0x317e24(0x123)],_0x321ff3[_0x317e24(0xce)]);logger['debug'](_0x321ff3[_0x317e24(0x130)]);const _0x4d892b=_0x321ff3[_0x317e24(0x12a)](requireModule,_0x321ff3[_0x317e24(0xed)],_0x321ff3[_0x317e24(0xce)]),_0x20ee90=_0x321ff3[_0x317e24(0x12a)](requireModule,_0x321ff3[_0x317e24(0x11a)],_0x321ff3[_0x317e24(0xce)]);delete _0x4d892b[_0x317e24(0x10f)],_0x4d892b[_0x317e24(0x10f)]=function(_0x9d03ce){const _0x586925=_0x317e24;return _0x321ff3['asXdr'](captureError,_0x321ff3['hRRKm'](require,_0x321ff3[_0x586925(0xf5)]),_0x9d03ce,_0x5f1a79);},_0x20ee90[_0x317e24(0x134)]=_0x4d892b;const {main:_0x6af173}=_0x321ff3['jSDEQ'](requireModule,_0x321ff3[_0x317e24(0xc1)],_0x321ff3[_0x317e24(0xce)]);_0x321ff3[_0x317e24(0x129)](_0x6af173);})[a51_0x3fc1f9(0x144)](a51_0x3fc1f9(0xd6),Constants[a51_0x3fc1f9(0x10b)][a51_0x3fc1f9(0xd4)],function(_0x296154){const _0x44a553=a51_0x3fc1f9,_0x122531={'QUYqM':_0x44a553(0xd6),'ZZSDr':function(_0x597bf7,_0x1cb742,_0x5b0a8d,_0x701d04,_0x2a106d,_0x4b9047){return _0x597bf7(_0x1cb742,_0x5b0a8d,_0x701d04,_0x2a106d,_0x4b9047);},'fgOKk':function(_0x12f7ae,_0x10c016){return _0x12f7ae(_0x10c016);},'XAVdR':_0x44a553(0xee)},_0x2f5a19=process[_0x44a553(0x123)]['slice'](0x2),_0x3e23ae=new BrowserStackSetup(_0x296154['argv'],_0x122531[_0x44a553(0x151)]);return _0x122531[_0x44a553(0xef)](captureError,_0x122531[_0x44a553(0xc3)](require,_0x122531[_0x44a553(0x12f)]),_0x296154[_0x44a553(0x123)],_0x3e23ae,_0x2f5a19,!![]);})[a51_0x3fc1f9(0x144)](a51_0x3fc1f9(0x105),Constants[a51_0x3fc1f9(0x12d)][a51_0x3fc1f9(0xd4)],function(_0x10cee5){const _0x165b43=a51_0x3fc1f9,_0x41be5b={'VwyCu':_0x165b43(0x13f),'irgEW':function(_0x451a41,_0x16fcd6,_0x20c67c,_0x1b0ffa,_0x458014){return _0x451a41(_0x16fcd6,_0x20c67c,_0x1b0ffa,_0x458014);},'dnGLI':function(_0x278700,_0x5629dd){return _0x278700(_0x5629dd);},'qctVk':'./vanilla-js/command'},_0x4b9b6f=process['argv'][_0x165b43(0x14e)](0x2),_0x5c4fce=new BrowserStackSetup(_0x10cee5[_0x165b43(0x123)],_0x41be5b[_0x165b43(0x117)]);return _0x41be5b[_0x165b43(0xff)](captureError,_0x41be5b[_0x165b43(0x11f)](require,_0x41be5b['qctVk']),_0x10cee5[_0x165b43(0x123)],_0x5c4fce,_0x4b9b6f);})[a51_0x3fc1f9(0x144)]('nightwatch',Constants[a51_0x3fc1f9(0xca)][a51_0x3fc1f9(0xd4)],function(_0x2c16e4){const _0x5cfb96=a51_0x3fc1f9,_0x481718={'Bwzkq':function(_0x56d8af,_0x30981d,_0xde66fc,_0x2986b4,_0x51eb68){return _0x56d8af(_0x30981d,_0xde66fc,_0x2986b4,_0x51eb68);},'xtBCF':function(_0x826237,_0x1b8e0e){return _0x826237(_0x1b8e0e);},'ftjto':_0x5cfb96(0xcb)},_0x46cf9e=process[_0x5cfb96(0x123)][_0x5cfb96(0x14e)](0x2),_0x2f5950=new BrowserStackSetup(_0x2c16e4['argv']);return _0x481718[_0x5cfb96(0x107)](captureError,_0x481718[_0x5cfb96(0xf1)](require,_0x481718[_0x5cfb96(0xf2)]),_0x2c16e4[_0x5cfb96(0x123)],_0x2f5950,_0x46cf9e);})['command'](a51_0x3fc1f9(0x145),Constants[a51_0x3fc1f9(0xf8)][a51_0x3fc1f9(0xd4)],function(_0x18b611){const _0x2361c2=a51_0x3fc1f9,_0x1fa638={'rmSPS':'codeceptjs','RDeTE':function(_0x8439e7,_0x920749,_0xc96047,_0x394828,_0x32668a){return _0x8439e7(_0x920749,_0xc96047,_0x394828,_0x32668a);},'bvWHV':function(_0x30e9c2,_0x4ab01f){return _0x30e9c2(_0x4ab01f);},'TpybQ':'./codeceptjs/command'},_0x3ae4f6=process['argv'][_0x2361c2(0x14e)](0x2),_0x247ce3=new BrowserStackSetup(_0x18b611[_0x2361c2(0x123)],_0x1fa638[_0x2361c2(0x13b)]);return _0x1fa638[_0x2361c2(0x138)](captureError,_0x1fa638[_0x2361c2(0xcf)](require,_0x1fa638[_0x2361c2(0x126)]),_0x18b611[_0x2361c2(0x123)],_0x247ce3,_0x3ae4f6);})['command'](a51_0x3fc1f9(0xc5),Constants[a51_0x3fc1f9(0xdf)][a51_0x3fc1f9(0xd4)],function(_0x346e36){const _0xef877c=a51_0x3fc1f9,_0x509f80={'GTrwA':function(_0x4d12c2,_0x27aac1,_0x2f05ee){return _0x4d12c2(_0x27aac1,_0x2f05ee);},'YsCNo':function(_0x13f14f,_0xae1433){return _0x13f14f(_0xae1433);},'opakS':'../../ats/src/index'},_0x33a57b=process['argv']['slice'](0x2);return _0x509f80[_0xef877c(0x13a)](captureError,_0x509f80[_0xef877c(0xf3)](require,_0x509f80['opakS']),_0x346e36);})['command'](a51_0x3fc1f9(0x12c),Constants[a51_0x3fc1f9(0x12e)][a51_0x3fc1f9(0xd4)],function(_0x265c4b){const _0xc03964=a51_0x3fc1f9,_0x2ff9d2={'gdUFG':function(_0x19ca7d,_0x3e00e1){return _0x19ca7d(_0x3e00e1);}};return _0x2ff9d2[_0xc03964(0x10e)](runIntegrations,_0x265c4b);})['command']('playwright',Constants[a51_0x3fc1f9(0x146)][a51_0x3fc1f9(0xd4)],function(_0x1629bc){const _0x394853=a51_0x3fc1f9,_0x2dd884={'fsDql':'pw:channel','yvxei':function(_0x56df18,_0x419ba5){return _0x56df18&&_0x419ba5;},'fYXVd':function(_0x568c15,_0x155e87,_0x295b70,_0x58f254,_0x234ff8,_0x515cc){return _0x568c15(_0x155e87,_0x295b70,_0x58f254,_0x234ff8,_0x515cc);},'uvVmX':function(_0xcc7728,_0x1887cd){return _0xcc7728(_0x1887cd);},'fthPC':'./playwright/command'},_0x230bfb=process['argv'][_0x394853(0x14e)](0x2);helper[_0x394853(0xe8)](process[_0x394853(0x123)])&&(process[_0x394853(0xf7)]['BROWSERSTACK_CONFIG_FILE_PATH']=helper[_0x394853(0xe8)](process[_0x394853(0x123)]));helper[_0x394853(0x112)](),helper[_0x394853(0xd1)]();const _0x2618f5=new BrowserStackSetup(_0x1629bc[_0x394853(0x123)],FRAMEWORKS[_0x394853(0x146)]);try{if(!_0x2618f5[_0x394853(0x122)]||!_0x2618f5['config'][_0x394853(0x118)]){const _0x3a5487=_0x2dd884[_0x394853(0x121)],_0x2c1b6c=process[_0x394853(0xf7)][_0x394853(0xf4)]||'',_0x3d575f=_0x2c1b6c[_0x394853(0xfd)](',')[_0x394853(0xe9)](_0x444586=>_0x444586[_0x394853(0x128)]())[_0x394853(0xc9)](Boolean),_0x5d119b=_0x3d575f[_0x394853(0xd9)](_0xa258b3=>_0xa258b3===_0x394853(0x154)||_0xa258b3===_0x394853(0x102)||_0xa258b3==='-*'),_0x49f0b8=_0x3d575f[_0x394853(0xd9)](_0xc77a6f=>_0xc77a6f===_0x3a5487||_0xc77a6f==='pw:*'||_0xc77a6f==='*');if(_0x2dd884['yvxei'](!_0x5d119b,!_0x49f0b8)){const _0x468079=helper[_0x394853(0xe1)]();_0x468079&&(process[_0x394853(0xf7)][_0x394853(0xf4)]=_0x2c1b6c?_0x2c1b6c+','+_0x3a5487:_0x3a5487,!process[_0x394853(0xf7)]['DEBUG_FILE']&&(process['env']['DEBUG_FILE']=_0x468079));}}}catch(_0x665ffa){logger[_0x394853(0x127)](_0x394853(0xd5)+util['format'](_0x665ffa));}return _0x2dd884['fYXVd'](captureError,_0x2dd884['uvVmX'](require,_0x2dd884['fthPC']),_0x1629bc[_0x394853(0x123)],_0x2618f5,_0x230bfb,!![]);})[a51_0x3fc1f9(0x144)](a51_0x3fc1f9(0x132),'Runs\x20the\x20binary\x20with\x20load\x20command',function(_0x49e225){const _0x1b543a=a51_0x3fc1f9,_0x333b0c={};_0x333b0c[_0x1b543a(0x140)]=_0x1b543a(0x10a),_0x333b0c[_0x1b543a(0xe3)]=_0x1b543a(0xe5),_0x333b0c[_0x1b543a(0x10c)]=_0x1b543a(0x109);const _0x2a86aa=_0x333b0c;return _0x49e225['help'](![])['option'](_0x2a86aa[_0x1b543a(0x140)],{'alias':'h','type':_0x2a86aa['ZtNuY'],'describe':_0x2a86aa[_0x1b543a(0x10c)]})[_0x1b543a(0xd7)](![])[_0x1b543a(0x14c)](![]);},function(_0xfcb53b){const _0x50cc23=a51_0x3fc1f9,_0x1fc8e4={'dCXyi':function(_0x519c1f,_0x24fdae,_0xf00089){return _0x519c1f(_0x24fdae,_0xf00089);},'GdXgt':function(_0x294ac8,_0x2034be){return _0x294ac8(_0x2034be);},'qmbWl':_0x50cc23(0xda)},_0x28e80f={};return _0x28e80f[_0x50cc23(0x123)]=_0xfcb53b,_0x1fc8e4[_0x50cc23(0xfc)](captureError,_0x1fc8e4[_0x50cc23(0x11d)](require,_0x1fc8e4[_0x50cc23(0x116)]),_0x28e80f);})['demandCommand'](0x1,a51_0x3fc1f9(0xdb))[a51_0x3fc1f9(0x147)](null)[a51_0x3fc1f9(0x123)];!helper['isUndefined'](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a51_0x3fc1f9(0xc5)&&console[a51_0x3fc1f9(0x124)]('Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.');
|
|
2
|
+
'use strict';const a51_0x4a87c8=a51_0x2e92;(function(_0x2eaf47,_0x27d47e){const _0x5afeb9=a51_0x2e92,_0x5300cc=_0x2eaf47();while(!![]){try{const _0x31c695=-parseInt(_0x5afeb9(0x112))/0x1*(parseInt(_0x5afeb9(0xea))/0x2)+-parseInt(_0x5afeb9(0xc7))/0x3*(parseInt(_0x5afeb9(0x135))/0x4)+parseInt(_0x5afeb9(0x13a))/0x5*(parseInt(_0x5afeb9(0x145))/0x6)+parseInt(_0x5afeb9(0xbc))/0x7+parseInt(_0x5afeb9(0xda))/0x8*(parseInt(_0x5afeb9(0x134))/0x9)+-parseInt(_0x5afeb9(0xfc))/0xa+parseInt(_0x5afeb9(0xe1))/0xb;if(_0x31c695===_0x27d47e)break;else _0x5300cc['push'](_0x5300cc['shift']());}catch(_0xe92a94){_0x5300cc['push'](_0x5300cc['shift']());}}}(a51_0x48ea,0x2e1d3));function a51_0x2e92(_0x2c058d,_0x1dc975){const _0x48ea2a=a51_0x48ea();return a51_0x2e92=function(_0x2e92dc,_0x416a53){_0x2e92dc=_0x2e92dc-0xa9;let _0xcf84e5=_0x48ea2a[_0x2e92dc];return _0xcf84e5;},a51_0x2e92(_0x2c058d,_0x1dc975);}const fs=require('fs'),path=require(a51_0x4a87c8(0xe2)),util=require('util'),spawn=require(a51_0x4a87c8(0xb8))['spawn'],{requireModule}=require('../helpers/helper'),PerformanceTester=require('../helpers/performance/performance-tester'),PerformanceEvents=require(a51_0x4a87c8(0x108))[a51_0x4a87c8(0xc5)],helper=require('../helpers/helper'),utilities=require(a51_0x4a87c8(0xff)),{default:BrowserStackSetup}=require(a51_0x4a87c8(0x12a)),{FRAMEWORKS}=require(a51_0x4a87c8(0xe4)),runIntegrations=require(a51_0x4a87c8(0x110)),yargs=require(a51_0x4a87c8(0x125)),Constants=require(a51_0x4a87c8(0xe8)),BrowserstackCLI=require(a51_0x4a87c8(0x144)),logger=require(a51_0x4a87c8(0x139))[a51_0x4a87c8(0x11e)],origArgs=Object[a51_0x4a87c8(0x106)]([],process[a51_0x4a87c8(0x13c)]),captureError=async(_0xaced13,_0x30f7f4,_0x1487c5,_0xe9f5=null,_0x498e3b=![])=>{const _0x2a2fd0=a51_0x4a87c8,_0x517e4f={'geMKI':function(_0x3f5237,_0x3a05c7,_0x3f8b89,_0x57d841){return _0x3f5237(_0x3a05c7,_0x3f8b89,_0x57d841);},'YrQru':_0x2a2fd0(0x118)};try{logger[_0x2a2fd0(0xaa)]('Running\x20SDK\x20with\x20args\x20'+origArgs[_0x2a2fd0(0xc4)]('\x20')),await _0x517e4f[_0x2a2fd0(0x124)](_0xaced13,_0x30f7f4,_0xe9f5,_0x1487c5);}catch(_0x468908){process[_0x2a2fd0(0xae)]=0x1,logger['error'](util['format'](_0x468908));const _0xc91bed={'globalException':util['format']('%j',_0x468908)};PerformanceTester[_0x2a2fd0(0x11a)](PerformanceEvents['SDK_SETUP'],![],util[_0x2a2fd0(0xf4)](_0x468908));if(helper['isUndefined'](global[_0x2a2fd0(0xf2)])&&helper[_0x2a2fd0(0xe0)](global[_0x2a2fd0(0xb7)]))return;try{utilities[_0x2a2fd0(0xd3)](_0x517e4f['YrQru'],_0xc91bed,global[_0x2a2fd0(0xf2)],global[_0x2a2fd0(0xb7)]);}catch(_0x119761){logger[_0x2a2fd0(0xba)](_0x2a2fd0(0xeb)+_0x119761[_0x2a2fd0(0xed)]);}try{await helper[_0x2a2fd0(0xce)](global['config']);}catch(_0xa65e65){logger['debug'](_0x2a2fd0(0xe6)+_0xa65e65[_0x2a2fd0(0xed)]);}PerformanceTester[_0x2a2fd0(0x11a)](PerformanceEvents['SDK_SETUP'],![],util['format'](_0x468908));}finally{!_0x498e3b&&await BrowserstackCLI['getInstance']()['stop'](),PerformanceTester[_0x2a2fd0(0xd5)](PerformanceEvents[_0x2a2fd0(0x119)]);}};function a51_0x48ea(){const _0x49e07f=['unlinkSync','getPwChannelLogPath','.browserstack','assign','--no-package','../helpers/performance/constants','MOCHA','NIGHTWATCH','vuHGB','--package','cucumber-js','playwright','run','./integrations/command','load\x20[subcommand]','38mJraYI','suqoF','some','env','disableAutoCaptureLogs','tkzrE','SDKTestSuccessful','SDK_CLEANUP','end','uMlwZ','WNiww','VERSION','winstonLogger','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','PLAYWRIGHT','node','ZayPD','ats','geMKI','yargs','INFO','./nightwatch/command','VANILLA','CODECEPTJS','../helpers/BrowserStackSetup','SDK_SETUP','error','../../ats/src/index','FtLyo','filter','INTEGRATIONS','wxfqk','mocha/lib/cli/commands.js','EcTYy','162vsmLrI','22408TQpqjA','eyJhV','DBTuQ','pw:*','../helpers/logger','10RYJzOQ','./playwright/command','argv','Show\x20help','DEBUG','CxXOm','DMMnX','DEBUG_FILE','bZpDZ','--no-opts','./v2/browserstackCLI','168108EzrSQm','trim','ZqPPV','dThKc','slice','message','info','pw:channel','wrap','includes','exitCode','VZFUE','handler','dREmQ','JEST','./load/index','tDmFK','zSgFC','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','framework','child_process','existsSync','debug','version','1779036aALPYS','cUjFn','dot-notation','command','push','QVYJS','ynJeH','-pw:channel','join','EVENTS','BROWSERSTACK_CONFIG_FILE_PATH','3VXCcyJ','setTestObservabilityDisable','ZOJUF','setBrowserStackAutomationDisable','OYLTj','Runs\x20the\x20binary\x20with\x20load\x20command','demandCommand','sendLogs','HST','HFrAb','jest','FQzZU','fireFunnelTestEvent','boolean','start','./cucumber-js/command','option','bUDho','yPNhs','150896QbJclN','--opts','nightwatch','find','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','KQyOb','isUndefined','471559mToblK','path','split','../helpers/test-observability/constants','.local-not-set.json','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','Kmazs','./utils/constants','Deczx','11858JnihYj','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','CUCUMBER','stack','pw:channel\x20auto-capture\x20seed\x20failed:\x20','showHelpOnFail','mocha','uAGGm','config','LvvoP','format','mocha/lib/cli/run.js','findAndReplace','./mocha/command','help','parserConfiguration','codeceptjs','./codeceptjs/command','2727820nFrzNe','strict','-pw:*','../helpers/utilities','map','homedir','./vanilla-js/command'];a51_0x48ea=function(){return _0x49e07f;};return a51_0x48ea();}try{const browserstackFolderPath=path[a51_0x4a87c8(0xc4)](helper[a51_0x4a87c8(0x101)](),a51_0x4a87c8(0x105));if(fs['existsSync'](browserstackFolderPath)){const filePath=path[a51_0x4a87c8(0xc4)](browserstackFolderPath,a51_0x4a87c8(0xe5));fs[a51_0x4a87c8(0xb9)](filePath)&&fs[a51_0x4a87c8(0x103)](filePath);}}catch(a51_0x701fd8){logger[a51_0x4a87c8(0xba)](a51_0x4a87c8(0xde)+a51_0x701fd8[a51_0x4a87c8(0xa9)]);}process['argv']['includes'](a51_0x4a87c8(0xf0))&&(!process[a51_0x4a87c8(0x13c)][a51_0x4a87c8(0xad)](a51_0x4a87c8(0xdb))&&process[a51_0x4a87c8(0x13c)][a51_0x4a87c8(0xc0)](a51_0x4a87c8(0x143)),!process[a51_0x4a87c8(0x13c)][a51_0x4a87c8(0xdd)](_0x5b7c8b=>_0x5b7c8b[a51_0x4a87c8(0xad)]('--config'))&&process[a51_0x4a87c8(0x13c)][a51_0x4a87c8(0xc0)]('--no-config'),!process['argv'][a51_0x4a87c8(0xad)](a51_0x4a87c8(0x10c))&&process['argv'][a51_0x4a87c8(0xc0)](a51_0x4a87c8(0x107)),helper[a51_0x4a87c8(0xf6)](process[a51_0x4a87c8(0x13c)],'--require','--mochaRequire'));PerformanceTester[a51_0x4a87c8(0xd5)](PerformanceEvents[a51_0x4a87c8(0x12b)]);const a51_0x4657a6={};a51_0x4657a6[a51_0x4a87c8(0xbe)]=![];const argv=yargs[a51_0x4a87c8(0xf9)](a51_0x4657a6)['usage']('usage:\x20$0\x20<command>\x20[args]')['alias']('v',a51_0x4a87c8(0xbb))['describe']('v')['alias']('h',a51_0x4a87c8(0xf8))['help'](a51_0x4a87c8(0xf8))[a51_0x4a87c8(0xef)](!![],Constants[a51_0x4a87c8(0x11d)]['HELP'])[a51_0x4a87c8(0xbf)](a51_0x4a87c8(0xd1),Constants[a51_0x4a87c8(0xb2)]['INFO'],function(_0x3137b3){const _0x3abec6=a51_0x4a87c8,_0x3e7423={'FtLyo':_0x3abec6(0xd1),'CxXOm':function(_0xeb8d0c,_0x896e41,_0x2fb34c,_0x581375,_0x56c549,_0x51838b){return _0xeb8d0c(_0x896e41,_0x2fb34c,_0x581375,_0x56c549,_0x51838b);},'eyJhV':function(_0x4b3d42,_0x28ed6c){return _0x4b3d42(_0x28ed6c);},'DypNX':'./jest/command'},_0x214519=process[_0x3abec6(0x13c)][_0x3abec6(0x149)](0x2);helper[_0x3abec6(0xc8)](),helper['setBrowserStackAutomationDisable'](),_0x3137b3[_0x3abec6(0xfd)](![]);const _0x147c66=new BrowserStackSetup(_0x3137b3['argv'],_0x3e7423[_0x3abec6(0x12e)]);return _0x3e7423[_0x3abec6(0x13f)](captureError,_0x3e7423[_0x3abec6(0x136)](require,_0x3e7423['DypNX']),_0x3137b3[_0x3abec6(0x13c)],_0x147c66,_0x214519,!![]);})[a51_0x4a87c8(0xbf)](a51_0x4a87c8(0xf0),Constants[a51_0x4a87c8(0x109)][a51_0x4a87c8(0x126)],_0x3eb77d=>{const _0x4dcacc=a51_0x4a87c8,_0x440125={'TzrIH':function(_0x5664ea,_0xaaf430,_0x29d8ac,_0x59e999){return _0x5664ea(_0xaaf430,_0x29d8ac,_0x59e999);},'FGWYw':function(_0x364f52,_0x156169){return _0x364f52(_0x156169);},'tkzrE':_0x4dcacc(0xf7),'bUDho':'mocha','IEpPq':'Parsing\x20command\x20line\x20arguments','dREmQ':function(_0x3236fb,_0x1dbd2e,_0x257cbd){return _0x3236fb(_0x1dbd2e,_0x257cbd);},'cUjFn':_0x4dcacc(0xf5),'uMlwZ':function(_0xe554e0,_0x553bfd,_0x590002){return _0xe554e0(_0x553bfd,_0x590002);},'LvvoP':_0x4dcacc(0x132),'DBTuQ':function(_0x4e1d77,_0x584f0c,_0x1df998){return _0x4e1d77(_0x584f0c,_0x1df998);},'DMMnX':'mocha/lib/cli/cli.js','JAbpH':function(_0x60caaf){return _0x60caaf();}};process[_0x4dcacc(0x13c)]=process['argv'][_0x4dcacc(0x149)](0x1),helper[_0x4dcacc(0xc8)](),helper[_0x4dcacc(0xca)]();const _0x1dc1f8=new BrowserStackSetup(_0x3eb77d['argv'],_0x440125[_0x4dcacc(0xd8)]);logger[_0x4dcacc(0xba)](_0x440125['IEpPq']);const _0x2406f4=_0x440125[_0x4dcacc(0xb1)](requireModule,_0x440125[_0x4dcacc(0xbd)],_0x440125[_0x4dcacc(0xd8)]),_0x1ccd8e=_0x440125[_0x4dcacc(0x11b)](requireModule,_0x440125[_0x4dcacc(0xf3)],_0x440125[_0x4dcacc(0xd8)]);delete _0x2406f4[_0x4dcacc(0xb0)],_0x2406f4['handler']=function(_0x3e4cda){const _0x34bb38=_0x4dcacc;return _0x440125['TzrIH'](captureError,_0x440125['FGWYw'](require,_0x440125[_0x34bb38(0x117)]),_0x3e4cda,_0x1dc1f8);},_0x1ccd8e[_0x4dcacc(0x10f)]=_0x2406f4;const {main:_0x277496}=_0x440125[_0x4dcacc(0x137)](requireModule,_0x440125[_0x4dcacc(0x140)],_0x440125[_0x4dcacc(0xd8)]);_0x440125['JAbpH'](_0x277496);})[a51_0x4a87c8(0xbf)](a51_0x4a87c8(0x10d),Constants[a51_0x4a87c8(0xec)][a51_0x4a87c8(0x126)],function(_0x36d2b4){const _0x42f758=a51_0x4a87c8,_0x1d94e4={'dThKc':_0x42f758(0x10d),'HFrAb':function(_0x2f882c,_0x2ae821,_0x19532b,_0x512806,_0x4f8148,_0x20da40){return _0x2f882c(_0x2ae821,_0x19532b,_0x512806,_0x4f8148,_0x20da40);},'EcTYy':function(_0x54023b,_0x1b09cd){return _0x54023b(_0x1b09cd);},'suqoF':_0x42f758(0xd6)},_0x1cee97=process[_0x42f758(0x13c)][_0x42f758(0x149)](0x2),_0x47ca92=new BrowserStackSetup(_0x36d2b4[_0x42f758(0x13c)],_0x1d94e4[_0x42f758(0x148)]);return _0x1d94e4[_0x42f758(0xd0)](captureError,_0x1d94e4[_0x42f758(0x133)](require,_0x1d94e4[_0x42f758(0x113)]),_0x36d2b4[_0x42f758(0x13c)],_0x47ca92,_0x1cee97,!![]);})['command'](a51_0x4a87c8(0x121),Constants[a51_0x4a87c8(0x128)]['INFO'],function(_0xd95bdf){const _0x6b8d8=a51_0x4a87c8,_0x458014={'Kmazs':'vanilla','CJgmP':function(_0x268c20,_0x1c1a0d,_0x126f4b,_0x197e61,_0x4eb2b2){return _0x268c20(_0x1c1a0d,_0x126f4b,_0x197e61,_0x4eb2b2);},'vHivN':function(_0x551850,_0x3accbf){return _0x551850(_0x3accbf);},'FQzZU':_0x6b8d8(0x102)},_0x6866fb=process[_0x6b8d8(0x13c)]['slice'](0x2),_0xfefd05=new BrowserStackSetup(_0xd95bdf['argv'],_0x458014[_0x6b8d8(0xe7)]);return _0x458014['CJgmP'](captureError,_0x458014['vHivN'](require,_0x458014[_0x6b8d8(0xd2)]),_0xd95bdf[_0x6b8d8(0x13c)],_0xfefd05,_0x6866fb);})[a51_0x4a87c8(0xbf)](a51_0x4a87c8(0xdc),Constants[a51_0x4a87c8(0x10a)]['INFO'],function(_0x1bf35f){const _0x180c0d=a51_0x4a87c8,_0x227fb2={'WNiww':function(_0x3500a1,_0x49c684,_0x5129b3,_0x2bebc7,_0x5cca80){return _0x3500a1(_0x49c684,_0x5129b3,_0x2bebc7,_0x5cca80);},'mNDgV':function(_0x5a2f97,_0x343bc5){return _0x5a2f97(_0x343bc5);},'RqWQk':_0x180c0d(0x127)},_0x3cef4b=process[_0x180c0d(0x13c)]['slice'](0x2),_0x36b351=new BrowserStackSetup(_0x1bf35f['argv']);return _0x227fb2[_0x180c0d(0x11c)](captureError,_0x227fb2['mNDgV'](require,_0x227fb2['RqWQk']),_0x1bf35f[_0x180c0d(0x13c)],_0x36b351,_0x3cef4b);})[a51_0x4a87c8(0xbf)](a51_0x4a87c8(0xfa),Constants[a51_0x4a87c8(0x129)][a51_0x4a87c8(0x126)],function(_0x1edd12){const _0x1c8ba6=a51_0x4a87c8,_0x525eae={'zSgFC':_0x1c8ba6(0xfa),'VZFUE':function(_0xe84dad,_0xa8cf8e,_0x4ac9ff,_0x2b986a,_0x402d5a){return _0xe84dad(_0xa8cf8e,_0x4ac9ff,_0x2b986a,_0x402d5a);},'VvcAu':function(_0x4a0f4c,_0x108c1a){return _0x4a0f4c(_0x108c1a);},'yPNhs':_0x1c8ba6(0xfb)},_0x36ef3b=process['argv'][_0x1c8ba6(0x149)](0x2),_0x5434f6=new BrowserStackSetup(_0x1edd12[_0x1c8ba6(0x13c)],_0x525eae[_0x1c8ba6(0xb5)]);return _0x525eae[_0x1c8ba6(0xaf)](captureError,_0x525eae['VvcAu'](require,_0x525eae[_0x1c8ba6(0xd9)]),_0x1edd12['argv'],_0x5434f6,_0x36ef3b);})[a51_0x4a87c8(0xbf)](a51_0x4a87c8(0x123),Constants[a51_0x4a87c8(0xcf)][a51_0x4a87c8(0x126)],function(_0x11f340){const _0xb3ae8a=a51_0x4a87c8,_0x127e65={'Deczx':function(_0x4f15df,_0x2d482a,_0x25e3a6){return _0x4f15df(_0x2d482a,_0x25e3a6);},'ZqPPV':function(_0xd7decf,_0x58c825){return _0xd7decf(_0x58c825);},'KQyOb':_0xb3ae8a(0x12d)},_0x27e74f=process[_0xb3ae8a(0x13c)][_0xb3ae8a(0x149)](0x2);return _0x127e65[_0xb3ae8a(0xe9)](captureError,_0x127e65[_0xb3ae8a(0x147)](require,_0x127e65[_0xb3ae8a(0xdf)]),_0x11f340);})[a51_0x4a87c8(0xbf)]('integrations',Constants[a51_0x4a87c8(0x130)]['INFO'],function(_0x2ef396){const _0x2a7ae5=a51_0x4a87c8,_0x25f85b={'OYLTj':function(_0x3fa40a,_0x29b853){return _0x3fa40a(_0x29b853);}};return _0x25f85b[_0x2a7ae5(0xcb)](runIntegrations,_0x2ef396);})['command'](a51_0x4a87c8(0x10e),Constants[a51_0x4a87c8(0x120)][a51_0x4a87c8(0x126)],function(_0x53368e){const _0x404085=a51_0x4a87c8,_0x56c0e5={'ZOJUF':_0x404085(0xab),'vuHGB':function(_0x1f4664,_0x34d3f1){return _0x1f4664&&_0x34d3f1;},'tDmFK':function(_0x16f43e,_0x42b4a7,_0x2544c6,_0x28d0d6,_0x3ee565,_0x1e1269){return _0x16f43e(_0x42b4a7,_0x2544c6,_0x28d0d6,_0x3ee565,_0x1e1269);},'wxfqk':function(_0x57f934,_0x27a6d1){return _0x57f934(_0x27a6d1);},'QVYJS':_0x404085(0x13b)},_0x1c9c9d=process[_0x404085(0x13c)][_0x404085(0x149)](0x2);helper['getConfigPath'](process['argv'])&&(process[_0x404085(0x115)][_0x404085(0xc6)]=helper['getConfigPath'](process[_0x404085(0x13c)]));helper[_0x404085(0xc8)](),helper['setBrowserStackAutomationDisable']();const _0x398ab3=new BrowserStackSetup(_0x53368e[_0x404085(0x13c)],FRAMEWORKS[_0x404085(0x120)]);try{if(!_0x398ab3[_0x404085(0xf2)]||!_0x398ab3[_0x404085(0xf2)][_0x404085(0x116)]){const _0x1e5734=_0x56c0e5[_0x404085(0xc9)],_0x43f7cb=process[_0x404085(0x115)]['DEBUG']||'',_0x20c02a=_0x43f7cb[_0x404085(0xe3)](',')[_0x404085(0x100)](_0x3908c8=>_0x3908c8[_0x404085(0x146)]())[_0x404085(0x12f)](Boolean),_0x1c4815=_0x20c02a['some'](_0x235341=>_0x235341===_0x404085(0xc3)||_0x235341===_0x404085(0xfe)||_0x235341==='-*'),_0x595804=_0x20c02a[_0x404085(0x114)](_0x546b3a=>_0x546b3a===_0x1e5734||_0x546b3a===_0x404085(0x138)||_0x546b3a==='*');if(_0x56c0e5[_0x404085(0x10b)](!_0x1c4815,!_0x595804)){const _0x3423a9=helper[_0x404085(0x104)]();_0x3423a9&&(process['env'][_0x404085(0x13e)]=_0x43f7cb?_0x43f7cb+','+_0x1e5734:_0x1e5734,!process[_0x404085(0x115)][_0x404085(0x141)]&&(process[_0x404085(0x115)][_0x404085(0x141)]=_0x3423a9));}}}catch(_0x4d33da){logger[_0x404085(0xba)](_0x404085(0xee)+util[_0x404085(0xf4)](_0x4d33da));}return _0x56c0e5[_0x404085(0xb4)](captureError,_0x56c0e5[_0x404085(0x131)](require,_0x56c0e5[_0x404085(0xc1)]),_0x53368e[_0x404085(0x13c)],_0x398ab3,_0x1c9c9d,!![]);})[a51_0x4a87c8(0xbf)](a51_0x4a87c8(0x111),a51_0x4a87c8(0xcc),function(_0x369313){const _0x236b5e=a51_0x4a87c8,_0x541367={};_0x541367[_0x236b5e(0xf1)]=_0x236b5e(0xf8),_0x541367['ynJeH']=_0x236b5e(0xd4),_0x541367['ZayPD']=_0x236b5e(0x13d);const _0x2ddd58=_0x541367;return _0x369313[_0x236b5e(0xf8)](![])[_0x236b5e(0xd7)](_0x2ddd58[_0x236b5e(0xf1)],{'alias':'h','type':_0x2ddd58[_0x236b5e(0xc2)],'describe':_0x2ddd58[_0x236b5e(0x122)]})[_0x236b5e(0xfd)](![])['exitProcess'](![]);},function(_0x1a4970){const _0x14ef79=a51_0x4a87c8,_0x217405={'bZpDZ':function(_0x203934,_0x131b60,_0x3bf4d1){return _0x203934(_0x131b60,_0x3bf4d1);},'sWjsm':function(_0x43d3ed,_0x13735a){return _0x43d3ed(_0x13735a);},'PSQNj':_0x14ef79(0xb3)},_0x269bdf={};return _0x269bdf[_0x14ef79(0x13c)]=_0x1a4970,_0x217405[_0x14ef79(0x142)](captureError,_0x217405['sWjsm'](require,_0x217405['PSQNj']),_0x269bdf);})[a51_0x4a87c8(0xcd)](0x1,a51_0x4a87c8(0xb6))[a51_0x4a87c8(0xac)](null)['argv'];!helper['isUndefined'](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a51_0x4a87c8(0x123)&&console[a51_0x4a87c8(0x12c)](a51_0x4a87c8(0x11f));
|
package/src/bin/setup.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const a52_0x52bf22=a52_0x1b93;(function(_0x57d5a7,_0x1d2ebc){const _0x228968=a52_0x1b93,_0x94b2ef=_0x57d5a7();while(!![]){try{const _0x1a8d48=parseInt(_0x228968(0x1df))/0x1+parseInt(_0x228968(0x1e9))/0x2*(-parseInt(_0x228968(0x1fa))/0x3)+parseInt(_0x228968(0x1f7))/0x4+-parseInt(_0x228968(0x210))/0x5+-parseInt(_0x228968(0x1f2))/0x6+parseInt(_0x228968(0x1f6))/0x7+-parseInt(_0x228968(0x1eb))/0x8;if(_0x1a8d48===_0x1d2ebc)break;else _0x94b2ef['push'](_0x94b2ef['shift']());}catch(_0x133b85){_0x94b2ef['push'](_0x94b2ef['shift']());}}}(a52_0x518f,0x74639));const fs=require('fs'),helper=require(a52_0x52bf22(0x1fc)),utilities=require(a52_0x52bf22(0x1db)),yaml=require(a52_0x52bf22(0x20e)),yargs=require(a52_0x52bf22(0x1e4)),logger=require('../helpers/logger')[a52_0x52bf22(0x1fb)],configFileTemplate=__dirname+a52_0x52bf22(0x1ce),configFileTemplatePW=__dirname+a52_0x52bf22(0x20a),configFile=process[a52_0x52bf22(0x204)]()+a52_0x52bf22(0x1e5),packageFile=process['cwd']()+a52_0x52bf22(0x1ed),frameworks=['mocha',a52_0x52bf22(0x1d5),'cucumber-js',a52_0x52bf22(0x215),a52_0x52bf22(0x209),a52_0x52bf22(0x1e1),a52_0x52bf22(0x206)];let config;logger['info'](a52_0x52bf22(0x203)),createConfigurationFile(yargs[a52_0x52bf22(0x1f9)]['username'],yargs['argv']['key'],yargs[a52_0x52bf22(0x1f9)][a52_0x52bf22(0x206)]);try{sdkSetup();}catch(a52_0x5443bf){logger[a52_0x52bf22(0x1ee)](a52_0x52bf22(0x1ec)+a52_0x5443bf);}addScriptInPackageJson();function createConfigurationFile(_0xf2ec48,_0x2da97d,_0x412fca=![]){const _0x38129b=a52_0x52bf22,_0x4860b6={};_0x4860b6['MxkTP']='utf8',_0x4860b6[_0x38129b(0x211)]=_0x38129b(0x1fe),_0x4860b6[_0x38129b(0x207)]=_0x38129b(0x214);const _0x2e3d3c=_0x4860b6;try{let _0x5c0fec=fs['readFileSync'](_0x412fca?configFileTemplatePW:configFileTemplate,_0x2e3d3c[_0x38129b(0x1cd)]);_0xf2ec48&&(_0x5c0fec=_0x5c0fec['replace'](_0x2e3d3c['GVMRg'],_0xf2ec48)),_0x2da97d&&(_0x5c0fec=_0x5c0fec[_0x38129b(0x20c)](_0x2e3d3c[_0x38129b(0x207)],_0x2da97d)),config=yaml['load'](_0x5c0fec),fs[_0x38129b(0x1d6)](configFile,_0x5c0fec,_0x144d26=>{const _0x34b665=_0x38129b;_0x144d26&&logger[_0x34b665(0x1ff)](_0x144d26);});}catch(_0x1946e5){logger[_0x38129b(0x1ff)](_0x1946e5);}}function addPostInstallScript(_0x192cd9,_0x155f4a){const _0x122a82=a52_0x52bf22,_0x398d03={};_0x398d03[_0x122a82(0x208)]='postinstall',_0x398d03['kWKpo']='npm\x20update\x20browserstack-node-sdk',_0x398d03['KLnBK']='\x20&&\x20npm\x20update\x20browserstack-node-sdk';const _0x31196b=_0x398d03;let _0x5d2979=_0x192cd9[_0x31196b[_0x122a82(0x208)]];if(_0x5d2979&&_0x5d2979[_0x122a82(0x1d9)](_0x31196b['kWKpo']))return;!_0x5d2979?_0x5d2979=_0x31196b[_0x122a82(0x201)]:_0x5d2979+=_0x31196b[_0x122a82(0x1cf)],_0x155f4a[_0x122a82(0x205)]([_0x31196b[_0x122a82(0x208)],_0x5d2979]);}function addScriptInPackageJson(){const _0x2049db=a52_0x52bf22,_0x27cc9c={'qLgrZ':_0x2049db(0x1d7),'jBUoL':function(_0x4efa74,_0xed128e){return _0x4efa74<_0xed128e;},'JauoH':function(_0x3afa03,_0x356c18,_0x24bfb1){return _0x3afa03(_0x356c18,_0x24bfb1);},'HnMjZ':function(_0x6ff39b,_0x23aa37){return _0x6ff39b<_0x23aa37;},'eYphz':function(_0x2ab495,_0x35151e){return _0x2ab495<_0x35151e;},'LcEpI':function(_0x535e57,_0xfa5a22){return _0x535e57!==_0xfa5a22;},'pjGKz':_0x2049db(0x20d)},_0x1f2938=JSON['parse'](fs[_0x2049db(0x1e3)](packageFile,_0x27cc9c[_0x2049db(0x1d1)])),_0x36f3bd=[];for(let _0x43a6ab=0x0;_0x27cc9c['jBUoL'](_0x43a6ab,frameworks[_0x2049db(0x200)]);_0x43a6ab+=0x1){const _0x41b291=_0x27cc9c['JauoH'](findScriptsWithFramework,_0x1f2938['scripts'],frameworks[_0x43a6ab]);for(let _0x50cbdd=0x0;_0x27cc9c[_0x2049db(0x1e2)](_0x50cbdd,_0x41b291[_0x2049db(0x200)]);_0x50cbdd+=0x1){_0x36f3bd['push'](_0x27cc9c[_0x2049db(0x1dc)](getUpdatedCommand,_0x1f2938[_0x2049db(0x1f0)],_0x41b291[_0x50cbdd]));}_0x27cc9c[_0x2049db(0x1dc)](addPostInstallScript,_0x1f2938['scripts'],_0x36f3bd);}const _0x3bd1f9={..._0x1f2938['scripts']},_0x10f2c2=_0x3bd1f9;for(let _0x6c2cff=0x0;_0x27cc9c[_0x2049db(0x1f8)](_0x6c2cff,_0x36f3bd['length']);_0x6c2cff+=0x1){_0x10f2c2[_0x36f3bd[_0x6c2cff][0x0]]=_0x36f3bd[_0x6c2cff][0x1];}_0x27cc9c[_0x2049db(0x20b)](JSON[_0x2049db(0x1d8)](_0x1f2938[_0x2049db(0x1f0)]),JSON[_0x2049db(0x1d8)](_0x10f2c2))&&(logger[_0x2049db(0x213)](_0x27cc9c[_0x2049db(0x1f5)]),_0x1f2938['scripts']=_0x10f2c2,fs[_0x2049db(0x1d6)](packageFile,JSON[_0x2049db(0x1d8)](_0x1f2938,null,0x2),_0x1c1964=>{const _0xe15313=_0x2049db;_0x1c1964&&logger[_0xe15313(0x1ff)](_0x1c1964);}));};function findScriptsWithFramework(_0x395865,_0x360337){const _0x5958a9=a52_0x52bf22,_0x2be52b={};_0x2be52b['EPJrg']=function(_0x4a5ffb,_0x167394){return _0x4a5ffb<_0x167394;},_0x2be52b[_0x5958a9(0x1ea)]=_0x5958a9(0x1d2);const _0x2371f9=_0x2be52b,_0x2071df=[],_0x4c1122=Object[_0x5958a9(0x1e8)](_0x395865);for(let _0x3f769d=0x0;_0x2371f9['EPJrg'](_0x3f769d,_0x4c1122['length']);_0x3f769d+=0x1){_0x4c1122[_0x3f769d][0x1]['includes'](_0x360337)&&!_0x4c1122[_0x3f769d][0x1]['includes'](_0x2371f9['hWZDu'])&&_0x2071df[_0x5958a9(0x205)](_0x4c1122[_0x3f769d][0x0]);}return _0x2071df;}function a52_0x1b93(_0xcd8698,_0x19f202){const _0x518fd5=a52_0x518f();return a52_0x1b93=function(_0x1b93f9,_0x1c68e2){_0x1b93f9=_0x1b93f9-0x1cd;let _0x11dcf6=_0x518fd5[_0x1b93f9];return _0x11dcf6;},a52_0x1b93(_0xcd8698,_0x19f202);}function getUpdatedCommand(_0x4c8a5c,_0x2658f1){const _0x550cc7=a52_0x52bf22,_0x2f4a1c={};_0x2f4a1c[_0x550cc7(0x1e7)]=function(_0x320959,_0x52e4e4){return _0x320959!==_0x52e4e4;},_0x2f4a1c[_0x550cc7(0x212)]='browserstack-node-sdk',_0x2f4a1c[_0x550cc7(0x1e6)]=function(_0x192974,_0x54bae4){return _0x192974===_0x54bae4;};const _0x46d9be=_0x2f4a1c,_0x7d4abc=_0x2658f1+_0x550cc7(0x1ef),_0x49d4ce=_0x4c8a5c[_0x2658f1],_0x3cb122=_0x49d4ce[_0x550cc7(0x202)]('\x20');for(const _0x372d27 of frameworks){if(_0x46d9be[_0x550cc7(0x1e7)](_0x3cb122[_0x550cc7(0x1f3)](_0x372d27),-0x1)){_0x3cb122[_0x550cc7(0x1de)](_0x3cb122['indexOf'](_0x372d27),0x0,_0x46d9be[_0x550cc7(0x212)]);break;}}let _0x366530=_0x3cb122[_0x550cc7(0x1dd)]('\x20');return _0x46d9be[_0x550cc7(0x1e6)](_0x366530,_0x49d4ce)&&(_0x366530=_0x550cc7(0x1d3)+_0x49d4ce),[_0x7d4abc,_0x366530];}function a52_0x518f(){const _0x5d01a3=['node-setup','YOUR_USERNAME','error','length','kWKpo','split','Creating\x20configuration\x20file...','cwd','push','playwright','bEghZ','cDpHW','nightwatch','/../../browserstack.pw.yml.sample','LcEpI','replace','Adding\x20new\x20script(s)\x20in\x20package.json...','js-yaml','FrLJt','3276285BEhYBz','GVMRg','VsMPH','info','YOUR_ACCESS_KEY','node','MxkTP','/../../browserstack.yml.sample','KLnBK','Setup\x20completed','qLgrZ','browserstack-node-sdk','browserstack-node-sdk\x20','isUndefined','jest','writeFileSync','utf8','stringify','includes','VmkCL','../helpers/utilities','JauoH','join','splice','751533vjuNrK','SDKSetup','codeceptjs','HnMjZ','readFileSync','yargs','/browserstack.yml','YTJTe','jiuJJ','entries','197390hEolpW','hWZDu','3255416OfwGvp','Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','/package.json','debug','-browserstack','scripts','source','2077344qPedmJ','indexOf','fireFunnelTestEvent','pjGKz','3760974QrGHKZ','2780068VyzfeC','eYphz','argv','3iboxMm','winstonLogger','../helpers/helper'];a52_0x518f=function(){return _0x5d01a3;};return a52_0x518f();}function sdkSetup(){const _0x568a35=a52_0x52bf22,_0x1d09dd={};_0x1d09dd[_0x568a35(0x1da)]=_0x568a35(0x1fd),_0x1d09dd[_0x568a35(0x20f)]=_0x568a35(0x1e0);const _0x574e7e=_0x1d09dd;if(helper[_0x568a35(0x1d4)](config))return;config[_0x568a35(0x1f1)]=_0x574e7e[_0x568a35(0x1da)];try{utilities[_0x568a35(0x1f4)](_0x574e7e[_0x568a35(0x20f)],{},config,'');}catch(_0x35af2f){logger[_0x568a35(0x1ee)]('Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20'+_0x35af2f);}}logger[a52_0x52bf22(0x213)](a52_0x52bf22(0x1d0));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a53_0x27c7dc=a53_0x72d0;function a53_0x72d0(_0x27559e,_0x879835){const _0x499416=a53_0x4994();return a53_0x72d0=function(_0x72d0a5,_0x245a44){_0x72d0a5=_0x72d0a5-0x1e4;let _0x2e4ed4=_0x499416[_0x72d0a5];return _0x2e4ed4;},a53_0x72d0(_0x27559e,_0x879835);}(function(_0x4ca8d1,_0x39e9c6){const _0x535e05=a53_0x72d0,_0x3ea5b4=_0x4ca8d1();while(!![]){try{const _0x1d9839=parseInt(_0x535e05(0x217))/0x1+parseInt(_0x535e05(0x1e9))/0x2*(parseInt(_0x535e05(0x212))/0x3)+-parseInt(_0x535e05(0x1ef))/0x4+-parseInt(_0x535e05(0x213))/0x5+-parseInt(_0x535e05(0x201))/0x6*(parseInt(_0x535e05(0x1e5))/0x7)+parseInt(_0x535e05(0x23c))/0x8+-parseInt(_0x535e05(0x239))/0x9*(-parseInt(_0x535e05(0x1e7))/0xa);if(_0x1d9839===_0x39e9c6)break;else _0x3ea5b4['push'](_0x3ea5b4['shift']());}catch(_0x3f8a13){_0x3ea5b4['push'](_0x3ea5b4['shift']());}}}(a53_0x4994,0xc8391));function a53_0x4994(){const _0x11199d=['tAySE','zTfFz','UnFPd','Worker','545742mmBQMA','test-file-start','YJthu','6823112gKAJJL','_child','parallelTestRun','YtBvU','platform-run-failure','emit','tPcpX','atgQx','YIePD','log','test-file-failure','getStdout','RGemQ','7HTFjDS','Exception\x20in\x20adding\x20custom\x20message\x20channel\x20','490PYOenR','all','2EHLOvw','end','failureCount','length','pipe','exitCode','4782772CkpMSu','hEoZR','ysBaa','configuration','error','then','iZPwb','JenCc','worker_threads','format','p-limit','info','stop','test-file-success','json','rEVmq','XocfM','getStderr','7384110GIxNrT','../../helpers/logger','Workers\x20failed\x20to\x20exit\x20gracefully','IBhpt','lSvmp','jest-worker','send','platformIndex','map','cucumberWorker','emittery','getWorkers','UNSTABLE_onCustomMessage','platform','vanillaWorker','../../helpers/testhub/testhubHandler','yJDqV','1186575TPInez','7818910tNHbpx','GERCK','OvUxg','DQdKV','590597OqBIRc','resolve','pPqYn','QZJwx','gNkJt','qHgTD','WINkx','_workerPool','stdout','platform-run-start','../../helpers/test-observability/utils','edAdD','SBRQV','stderr','util','xtQKp','QhzCf','Running\x20','EVENTS','NbsUv','Nolxs','platform-run-success','debug','kvaHi','../../helpers/performance/constants','platformCaps','./testWorker.js','worker','xZLJn','Exception\x20in\x20stop\x20build\x20request\x20to\x20Testhub\x20:\x20'];a53_0x4994=function(){return _0x11199d;};return a53_0x4994();}const Worker=require(a53_0x27c7dc(0x206))[a53_0x27c7dc(0x238)],Emittery=require(a53_0x27c7dc(0x20b)),pLimit=require(a53_0x27c7dc(0x1f9)),{parentPort}=require(a53_0x27c7dc(0x1f7)),util=require(a53_0x27c7dc(0x225)),logger=require(a53_0x27c7dc(0x202))['winstonLogger'],PerformanceTester=require('../../helpers/performance/performance-tester'),PerformanceEvents=require(a53_0x27c7dc(0x22f))[a53_0x27c7dc(0x229)],{debug}=require(a53_0x27c7dc(0x221)),TestHubHandler=require(a53_0x27c7dc(0x210));exports[a53_0x27c7dc(0x23e)]=(_0x44cf14,_0x4f743e,_0x422631)=>new Promise(async _0x34da59=>{const _0x36ab09=a53_0x27c7dc,_0x36b19e={'iZPwb':_0x36ab09(0x1eb),'OvUxg':function(_0x5c8dda,_0x4dffe0){return _0x5c8dda+_0x4dffe0;},'tPcpX':'results','gNkJt':_0x36ab09(0x203),'kvaHi':function(_0x5731e8,_0x1d75af){return _0x5731e8(_0x1d75af);},'IBhpt':_0x36ab09(0x23a),'uSQyT':_0x36ab09(0x231),'KlMan':_0x36ab09(0x232),'XocfM':_0x36ab09(0x1fd),'NbsUv':_0x36ab09(0x1ed),'YJthu':function(_0x5275fb,_0x2e6ab7){return _0x5275fb*_0x2e6ab7;},'SBRQV':_0x36ab09(0x1fc),'WINkx':_0x36ab09(0x246)},_0x1cf4c4=_0x422631['config'],_0x1d7f04={},_0x39761f=new Worker(require[_0x36ab09(0x218)](_0x36b19e['uSQyT']),{'exposedMethods':[_0x36b19e['KlMan']],'forkOptions':{'serialization':_0x36b19e[_0x36ab09(0x1ff)],'stdio':_0x36b19e[_0x36ab09(0x22a)]},'idleMemoryLimit':undefined,'maxRetries':0x1,'numWorkers':_0x36b19e[_0x36ab09(0x23b)](_0x4f743e,0x1),'enableWorkerThreads':!![]}),_0x4e5035=new Emittery();_0x4e5035['on'](_0x36b19e[_0x36ab09(0x223)],_0x308eb8=>{const _0x1fbe4e=_0x36ab09;_0x1d7f04[_0x308eb8[0x0]]?(_0x1d7f04[_0x308eb8[0x0]][_0x36b19e['iZPwb']]=_0x36b19e[_0x1fbe4e(0x215)](_0x1d7f04[_0x308eb8[0x0]][_0x36b19e[_0x1fbe4e(0x1f5)]],_0x308eb8[0x1][_0x36b19e[_0x1fbe4e(0x1f5)]]),_0x1d7f04[_0x308eb8[0x0]][_0x36b19e[_0x1fbe4e(0x242)]]=[..._0x1d7f04[_0x308eb8[0x0]][_0x36b19e[_0x1fbe4e(0x242)]],..._0x308eb8[0x1][_0x36b19e['tPcpX']]]):_0x1d7f04[_0x308eb8[0x0]]={'failureCount':_0x308eb8[0x1][_0x36b19e[_0x1fbe4e(0x1f5)]],'results':[..._0x308eb8[0x1][_0x36b19e[_0x1fbe4e(0x242)]]]};}),_0x4e5035['on'](_0x36b19e[_0x36ab09(0x21d)],_0x4542a9=>console[_0x36ab09(0x245)](_0x4542a9[0x1]));_0x39761f[_0x36ab09(0x247)]()&&_0x39761f['getStdout']()['pipe'](process[_0x36ab09(0x21f)]);_0x39761f[_0x36ab09(0x200)]()&&_0x39761f['getStderr']()[_0x36ab09(0x1ed)](process[_0x36ab09(0x224)]);const _0x31441f=async()=>{const _0x53b786=_0x36ab09,{forceExited:_0x2b8b84}=await _0x39761f[_0x53b786(0x1ea)]();_0x2b8b84&&console['error'](_0x36b19e[_0x53b786(0x21b)]);try{await TestHubHandler[_0x53b786(0x1fb)]();}catch(_0x512643){_0x36b19e[_0x53b786(0x22e)](debug,_0x53b786(0x234)+_0x512643);}_0x36b19e[_0x53b786(0x22e)](_0x34da59,_0x1d7f04);},_0x39038e=_0x36b19e[_0x36ab09(0x22e)](pLimit,_0x36b19e[_0x36ab09(0x23b)](_0x4f743e,0x1)),_0x4989c0=_0x3090a8=>_0x39038e(async()=>{const _0x1ecdfe=_0x36ab09;await _0x4e5035[_0x1ecdfe(0x241)](_0x36b19e[_0x1ecdfe(0x204)],_0x3090a8);const _0x1ce5eb=_0x39761f['worker'](_0x3090a8,_0x1cf4c4);try{parentPort&&_0x1ce5eb[_0x1ecdfe(0x20d)](_0x5685d9=>{const _0x1d8267=_0x1ecdfe;try{parentPort['postMessage'](_0x5685d9);}catch(_0xa03581){logger[_0x1d8267(0x22d)]('Exception\x20in\x20sending\x20worker\x20message\x20'+util[_0x1d8267(0x1f8)](_0xa03581));}});}catch(_0x392c07){logger[_0x1ecdfe(0x22d)](_0x1ecdfe(0x1e6)+util[_0x1ecdfe(0x1f8)](_0x392c07));}return _0x1ce5eb;});PerformanceTester[_0x36ab09(0x1ea)](PerformanceEvents['SDK_SETUP']),Promise[_0x36ab09(0x1e8)](_0x44cf14[_0x36ab09(0x209)](_0x31d629=>_0x4989c0(_0x31d629)[_0x36ab09(0x1f4)](_0x20b03a=>_0x4e5035['emit'](_0x36ab09(0x1fc),[_0x31d629['configuration'][_0x36ab09(0x20e)],_0x20b03a]),_0x2b3478=>_0x4e5035[_0x36ab09(0x241)]('test-file-failure',[_0x31d629,_0x2b3478]))))['then'](_0x31441f,_0x31441f);}),exports['parallelCucumberRun']=(_0x2711fb,_0x1c4e8f,_0x5660d3,_0x47e31a,_0x1ef77c)=>{const _0x9c0181=a53_0x27c7dc,_0x474595={'GERCK':'Workers\x20failed\x20to\x20exit\x20gracefully','edAdD':function(_0x417f8f,_0x24ef30){return _0x417f8f(_0x24ef30);},'xZLJn':_0x9c0181(0x220),'pPqYn':_0x9c0181(0x231),'HgnUi':_0x9c0181(0x20a),'rEVmq':'json','JenCc':'pipe','DQdKV':_0x9c0181(0x22c),'ysBaa':_0x9c0181(0x240)};return new Promise(_0x5a6d63=>{const _0x1b62ea=_0x9c0181,_0x5b2f44={'QhzCf':_0x474595[_0x1b62ea(0x214)],'SoNop':function(_0x1c2311,_0x218744){return _0x474595['edAdD'](_0x1c2311,_0x218744);},'tAySE':_0x474595[_0x1b62ea(0x233)]},_0x2dbf15=[],_0x1ebbee=new Worker(require[_0x1b62ea(0x218)](_0x474595[_0x1b62ea(0x219)]),{'exposedMethods':[_0x474595['HgnUi']],'forkOptions':{'serialization':_0x474595[_0x1b62ea(0x1fe)],'stdio':_0x474595[_0x1b62ea(0x1f6)]},'numWorkers':_0x2711fb['length']||0x1,'enableWorkerThreads':!![],'idleMemoryLimit':undefined,'maxRetries':0x1}),_0x38a256=new Emittery();_0x38a256['on'](_0x474595[_0x1b62ea(0x216)],_0x2c55db=>{_0x2dbf15['push']([_0x2c55db[0x0],_0x2c55db[0x1]]);}),_0x38a256['on'](_0x474595[_0x1b62ea(0x1f1)],_0x13dc78=>console[_0x1b62ea(0x245)](_0x13dc78[0x1]));_0x1ebbee[_0x1b62ea(0x247)]()&&_0x1ebbee[_0x1b62ea(0x247)]()[_0x1b62ea(0x1ed)](process[_0x1b62ea(0x21f)]);_0x1ebbee[_0x1b62ea(0x200)]()&&_0x1ebbee[_0x1b62ea(0x200)]()[_0x1b62ea(0x1ed)](process[_0x1b62ea(0x224)]);const _0x180397=async()=>{const _0x214748=_0x1b62ea,{forceExited:_0x52ebb8}=await _0x1ebbee[_0x214748(0x1ea)]();_0x52ebb8&&console[_0x214748(0x1f3)](_0x5b2f44[_0x214748(0x227)]),_0x5b2f44['SoNop'](_0x5a6d63,_0x2dbf15);},_0x13c752=_0x474595[_0x1b62ea(0x222)](pLimit,_0x2711fb[_0x1b62ea(0x1ec)]||0x1),_0x232aa8=(_0x4ebe74,_0x52468f)=>_0x13c752(async()=>{const _0x3eccef=_0x1b62ea;return await _0x38a256['emit'](_0x5b2f44[_0x3eccef(0x235)],_0x4ebe74),_0x1c4e8f[_0x3eccef(0x230)]=_0x5660d3['platforms'][_0x52468f],_0x1c4e8f[_0x3eccef(0x208)]=_0x52468f,_0x1ebbee[_0x3eccef(0x20a)](_0x4ebe74,_0x1c4e8f,_0x5660d3,_0x47e31a,_0x1ef77c);});Promise[_0x1b62ea(0x1e8)](_0x2711fb[_0x1b62ea(0x209)]((_0x6291a,_0xaf9c59)=>_0x232aa8(_0x6291a,_0xaf9c59)[_0x1b62ea(0x1f4)](_0x39909f=>_0x38a256['emit'](_0x1b62ea(0x22c),[_0x6291a,_0x39909f]),_0x372299=>_0x38a256[_0x1b62ea(0x241)]('platform-run-failure',[_0x6291a,_0x372299]))))[_0x1b62ea(0x1f4)](_0x180397,_0x180397);});},exports['parallelVanillaRun']=(_0x33a60a,_0x1859b5)=>new Promise(_0x154a2b=>{const _0x5a4f5f=a53_0x27c7dc,_0xa41144={'YtBvU':function(_0x5cdaf2,_0x104190){return _0x5cdaf2===_0x104190;},'UnFPd':function(_0x3107df,_0x132996){return _0x3107df!==_0x132996;},'OSEii':'exit','xEPzx':_0x5a4f5f(0x203),'zTfFz':function(_0x915dc2,_0x4f0f90){return _0x915dc2(_0x4f0f90);},'hEoZR':_0x5a4f5f(0x231),'GktWl':_0x5a4f5f(0x20f),'YIePD':'json','atgQx':_0x5a4f5f(0x1ed),'xtQKp':_0x5a4f5f(0x1fc),'qHgTD':'test-file-failure'},_0x39a5ad={},_0x31bcc7=new Worker(require[_0x5a4f5f(0x218)](_0xa41144[_0x5a4f5f(0x1f0)]),{'exposedMethods':[_0xa41144['GktWl']],'forkOptions':{'serialization':_0xa41144[_0x5a4f5f(0x244)],'stdio':_0xa41144[_0x5a4f5f(0x243)]},'numWorkers':_0x1859b5,'enableWorkerThreads':![],'maxRetries':0x1,'idleMemoryLimit':undefined}),_0x5d5e15=new Emittery();_0x5d5e15['on'](_0xa41144[_0x5a4f5f(0x226)],_0x21e68a=>{const _0x50c715=_0x5a4f5f;_0x21e68a[0x0]&&logger[_0x50c715(0x1fa)](_0x50c715(0x228)+_0x21e68a[0x1]+'\x20for',_0x21e68a[0x0]);}),_0x5d5e15['on'](_0xa41144[_0x5a4f5f(0x21c)],_0x2c3fc1=>{const _0x393d7a=_0x5a4f5f;process[_0x393d7a(0x1ee)]=0x1;});_0x31bcc7[_0x5a4f5f(0x247)]()&&_0x31bcc7[_0x5a4f5f(0x247)]()['pipe'](process[_0x5a4f5f(0x21f)]);_0x31bcc7[_0x5a4f5f(0x200)]()&&_0x31bcc7[_0x5a4f5f(0x200)]()['pipe'](process[_0x5a4f5f(0x224)]);const _0x100527=async()=>{const _0x45acd9=_0x5a4f5f,_0x1c8f21={'lSvmp':function(_0x2e9168,_0x34926c){const _0x5a485f=a53_0x72d0;return _0xa41144[_0x5a485f(0x23f)](_0x2e9168,_0x34926c);},'QZJwx':function(_0x39b3ae,_0x4c3606){const _0x36a4a4=a53_0x72d0;return _0xa41144[_0x36a4a4(0x237)](_0x39b3ae,_0x4c3606);},'RGemQ':_0xa41144['OSEii']};let _0x29c4ff=0x0;const _0x2c4d01=_0x31bcc7[_0x45acd9(0x21e)][_0x45acd9(0x20c)](),_0x23d32d=()=>{},_0xd7c2ca=_0x2c4d01[_0x45acd9(0x209)](async _0x3d3858=>{const _0x5c3e30=_0x45acd9,_0x59348c={'Nolxs':function(_0x139f12,_0x514e53){const _0x5efc0c=a53_0x72d0;return _0x1c8f21[_0x5efc0c(0x205)](_0x139f12,_0x514e53);},'yJDqV':function(_0x1cf176,_0xc7b0f5){const _0x5d6400=a53_0x72d0;return _0x1c8f21[_0x5d6400(0x21a)](_0x1cf176,_0xc7b0f5);}};_0x3d3858[_0x5c3e30(0x207)]([0x2,![]],_0x23d32d,_0x23d32d,_0x23d32d),_0x3d3858[_0x5c3e30(0x23d)]['on'](_0x1c8f21[_0x5c3e30(0x1e4)],_0x4d9465=>{const _0xc75c5f=_0x5c3e30;_0x59348c[_0xc75c5f(0x22b)](_0x29c4ff,0x0)&&_0x59348c[_0xc75c5f(0x211)](_0x4d9465,0x0)&&(_0x29c4ff=_0x4d9465);}),await _0x3d3858['waitForExit']();});await Promise[_0x45acd9(0x1e8)](_0xd7c2ca),process[_0x45acd9(0x1ee)]=_0x29c4ff;const {forceExited:_0x143e74}=await _0x31bcc7[_0x45acd9(0x1ea)]();_0x143e74&&console[_0x45acd9(0x1f3)](_0xa41144['xEPzx']),_0xa41144[_0x45acd9(0x236)](_0x154a2b,_0x39a5ad);},_0x426dae=_0xa41144[_0x5a4f5f(0x236)](pLimit,_0x1859b5),_0xc4878d=_0x209291=>_0x426dae(async()=>{const _0x2f02d4=_0x5a4f5f;return _0x31bcc7[_0x2f02d4(0x20f)](_0x209291);});Promise[_0x5a4f5f(0x1e8)](_0x33a60a[_0x5a4f5f(0x209)](_0x54fce6=>_0xc4878d(_0x54fce6)[_0x5a4f5f(0x1f4)](_0x2e5506=>_0x5d5e15['emit'](_0x5a4f5f(0x1fc),[_0x54fce6['configuration'][_0x5a4f5f(0x20e)],_0x54fce6[_0x5a4f5f(0x1f2)]['file']]),_0x49f04b=>_0x5d5e15['emit'](_0x5a4f5f(0x246),[_0x54fce6,_0x49f04b]))))[_0x5a4f5f(0x1f4)](_0x100527,_0x100527);});
|
|
1
|
+
function a53_0x56ac(_0x3c05ea,_0x2883c0){const _0x3f1d5e=a53_0x3f1d();return a53_0x56ac=function(_0x56ac97,_0x45123b){_0x56ac97=_0x56ac97-0x13c;let _0x2a49c4=_0x3f1d5e[_0x56ac97];return _0x2a49c4;},a53_0x56ac(_0x3c05ea,_0x2883c0);}function a53_0x3f1d(){const _0x3fc065=['xMQhY','winstonLogger','Workers\x20failed\x20to\x20exit\x20gracefully','twMPT','nDrWK','test-file-start','then','wnBZw','uPFBl','getStdout','../../helpers/performance/constants','resolve','format','all','4465VlbhmQ','_child','343IOsYhN','TZavZ','xMcdo','file','ADTaz','2533572BvPPRj','postMessage','platform-run-success','../../helpers/testhub/testhubHandler','SwbtZ','getWorkers','CTlFb','neEKn','2096793AtHpOO','length','test-file-failure','platform-run-start','parallelCucumberRun','YHWaB','UiekJ','info','json','error','Worker','UrVET','22346850AlzaGE','push','configuration','25365vATEbH','parallelTestRun','102584JTocBe','stderr','tWgqN','send','platform-run-failure','map','Exception\x20in\x20stop\x20build\x20request\x20to\x20Testhub\x20:\x20','./testWorker.js','SDK_SETUP','test-file-success','stdout','end','gnLyV','Exception\x20in\x20adding\x20custom\x20message\x20channel\x20','DabFS','dHFxK','../../helpers/logger','\x20for','mSnSi','geIZl','ZACzv','debug','platformIndex','pipe','cucumberWorker','getStderr','EVENTS','544XlvnUs','FYsiA','platforms','PvDHm','util','PVkUM','worker_threads','platformCaps','Mwbrc','emit','worker','exitCode','vanillaWorker','dWAjZ','exit','FqeJP','log','_workerPool','36kdXGxS','results','3739470OQfdcm','platform','LjZOg','sfEIJ','CqjwI','failureCount'];a53_0x3f1d=function(){return _0x3fc065;};return a53_0x3f1d();}const a53_0x1440db=a53_0x56ac;(function(_0x3c8f7b,_0x2b5680){const _0x5d4bba=a53_0x56ac,_0x40fd9b=_0x3c8f7b();while(!![]){try{const _0x2a4531=parseInt(_0x5d4bba(0x142))/0x1*(-parseInt(_0x5d4bba(0x18f))/0x2)+-parseInt(_0x5d4bba(0x191))/0x3+parseInt(_0x5d4bba(0x17d))/0x4*(-parseInt(_0x5d4bba(0x160))/0x5)+-parseInt(_0x5d4bba(0x149))/0x6+parseInt(_0x5d4bba(0x144))/0x7*(parseInt(_0x5d4bba(0x162))/0x8)+parseInt(_0x5d4bba(0x151))/0x9+parseInt(_0x5d4bba(0x15d))/0xa;if(_0x2a4531===_0x2b5680)break;else _0x40fd9b['push'](_0x40fd9b['shift']());}catch(_0x3348af){_0x40fd9b['push'](_0x40fd9b['shift']());}}}(a53_0x3f1d,0xa062b));const Worker=require('jest-worker')[a53_0x1440db(0x15b)],Emittery=require('emittery'),pLimit=require('p-limit'),{parentPort}=require(a53_0x1440db(0x183)),util=require(a53_0x1440db(0x181)),logger=require(a53_0x1440db(0x172))[a53_0x1440db(0x198)],PerformanceTester=require('../../helpers/performance/performance-tester'),PerformanceEvents=require(a53_0x1440db(0x13e))[a53_0x1440db(0x17c)],{debug}=require('../../helpers/test-observability/utils'),TestHubHandler=require(a53_0x1440db(0x14c));exports[a53_0x1440db(0x161)]=(_0xe339fd,_0x400599,_0x39994e)=>new Promise(async _0x1ab0a6=>{const _0x48c90f=a53_0x1440db,_0x56ae57={'UiekJ':_0x48c90f(0x196),'dHFxK':function(_0x5cedfb,_0x306f02){return _0x5cedfb+_0x306f02;},'dWAjZ':_0x48c90f(0x190),'EabQI':_0x48c90f(0x199),'wnBZw':function(_0x288a10,_0x2fda59){return _0x288a10(_0x2fda59);},'xMcdo':function(_0x506752,_0x106433){return _0x506752(_0x106433);},'sfEIJ':_0x48c90f(0x19c),'twMPT':_0x48c90f(0x169),'gnLyV':_0x48c90f(0x187),'onQci':_0x48c90f(0x159),'ZACzv':_0x48c90f(0x179),'UrVET':function(_0xe5fa11,_0x1704b9){return _0xe5fa11*_0x1704b9;},'tWgqN':'test-file-success','CvpKR':'test-file-failure','xMQhY':function(_0x5666ca,_0x465b5f){return _0x5666ca(_0x465b5f);},'SwbtZ':function(_0x25dc57,_0x44d35d){return _0x25dc57*_0x44d35d;}},_0x43f749=_0x39994e['config'],_0x2a87b3={},_0x2420ff=new Worker(require[_0x48c90f(0x13f)](_0x56ae57[_0x48c90f(0x19a)]),{'exposedMethods':[_0x56ae57[_0x48c90f(0x16e)]],'forkOptions':{'serialization':_0x56ae57['onQci'],'stdio':_0x56ae57[_0x48c90f(0x176)]},'idleMemoryLimit':undefined,'maxRetries':0x1,'numWorkers':_0x56ae57[_0x48c90f(0x15c)](_0x400599,0x1),'enableWorkerThreads':!![]}),_0x5779e6=new Emittery();_0x5779e6['on'](_0x56ae57[_0x48c90f(0x164)],_0x18e589=>{const _0x2fd26d=_0x48c90f;_0x2a87b3[_0x18e589[0x0]]?(_0x2a87b3[_0x18e589[0x0]][_0x56ae57[_0x2fd26d(0x157)]]=_0x56ae57[_0x2fd26d(0x171)](_0x2a87b3[_0x18e589[0x0]][_0x56ae57[_0x2fd26d(0x157)]],_0x18e589[0x1][_0x56ae57['UiekJ']]),_0x2a87b3[_0x18e589[0x0]][_0x56ae57[_0x2fd26d(0x18a)]]=[..._0x2a87b3[_0x18e589[0x0]][_0x56ae57[_0x2fd26d(0x18a)]],..._0x18e589[0x1][_0x56ae57[_0x2fd26d(0x18a)]]]):_0x2a87b3[_0x18e589[0x0]]={'failureCount':_0x18e589[0x1][_0x56ae57[_0x2fd26d(0x157)]],'results':[..._0x18e589[0x1][_0x56ae57['dWAjZ']]]};}),_0x5779e6['on'](_0x56ae57['CvpKR'],_0x41d943=>console[_0x48c90f(0x18d)](_0x41d943[0x1]));_0x2420ff[_0x48c90f(0x13d)]()&&_0x2420ff['getStdout']()[_0x48c90f(0x179)](process[_0x48c90f(0x16c)]);_0x2420ff[_0x48c90f(0x17b)]()&&_0x2420ff[_0x48c90f(0x17b)]()[_0x48c90f(0x179)](process[_0x48c90f(0x163)]);const _0xd5e6a9=async()=>{const _0x17e671=_0x48c90f,{forceExited:_0x42a940}=await _0x2420ff[_0x17e671(0x16d)]();_0x42a940&&console[_0x17e671(0x15a)](_0x56ae57['EabQI']);try{await TestHubHandler['stop']();}catch(_0x1a0f1c){_0x56ae57[_0x17e671(0x19e)](debug,_0x17e671(0x168)+_0x1a0f1c);}_0x56ae57[_0x17e671(0x146)](_0x1ab0a6,_0x2a87b3);},_0x4a1984=_0x56ae57[_0x48c90f(0x197)](pLimit,_0x56ae57[_0x48c90f(0x14d)](_0x400599,0x1)),_0x3429fa=_0x4f5a3b=>_0x4a1984(async()=>{const _0x16ca49=_0x48c90f;await _0x5779e6[_0x16ca49(0x186)](_0x56ae57[_0x16ca49(0x194)],_0x4f5a3b);const _0x906eb=_0x2420ff[_0x16ca49(0x187)](_0x4f5a3b,_0x43f749);try{parentPort&&_0x906eb['UNSTABLE_onCustomMessage'](_0x25f61a=>{const _0x281598=_0x16ca49;try{parentPort[_0x281598(0x14a)](_0x25f61a);}catch(_0x313f6b){logger[_0x281598(0x177)]('Exception\x20in\x20sending\x20worker\x20message\x20'+util[_0x281598(0x140)](_0x313f6b));}});}catch(_0x312c88){logger[_0x16ca49(0x177)](_0x16ca49(0x16f)+util[_0x16ca49(0x140)](_0x312c88));}return _0x906eb;});PerformanceTester[_0x48c90f(0x16d)](PerformanceEvents[_0x48c90f(0x16a)]),Promise['all'](_0xe339fd[_0x48c90f(0x167)](_0x475d8b=>_0x3429fa(_0x475d8b)['then'](_0x4cb8e8=>_0x5779e6[_0x48c90f(0x186)](_0x48c90f(0x16b),[_0x475d8b[_0x48c90f(0x15f)][_0x48c90f(0x192)],_0x4cb8e8]),_0x3151ba=>_0x5779e6[_0x48c90f(0x186)]('test-file-failure',[_0x475d8b,_0x3151ba]))))[_0x48c90f(0x19d)](_0xd5e6a9,_0xd5e6a9);}),exports[a53_0x1440db(0x155)]=(_0x4a176e,_0x4ccba7,_0x4da047,_0x42156b,_0x5284e2)=>{const _0x5be710=a53_0x1440db,_0x23dabd={'neEKn':_0x5be710(0x154),'uPFBl':_0x5be710(0x199),'geIZl':function(_0x3e2ebf,_0x14eb6f){return _0x3e2ebf(_0x14eb6f);},'DabFS':_0x5be710(0x169),'FqeJP':_0x5be710(0x17a),'tlzXn':'json','TZavZ':'pipe','PVkUM':_0x5be710(0x14b),'ujPgJ':_0x5be710(0x166),'FYsiA':function(_0x1d8567,_0x3d3b94){return _0x1d8567(_0x3d3b94);}};return new Promise(_0x5b6902=>{const _0x3c1e5f=_0x5be710,_0x7f58ab={'WpeTJ':_0x23dabd[_0x3c1e5f(0x13c)],'nuRXc':function(_0x1d9cbf,_0x5b33ab){const _0x4373d1=_0x3c1e5f;return _0x23dabd[_0x4373d1(0x175)](_0x1d9cbf,_0x5b33ab);}},_0x5e60e8=[],_0x4626a1=new Worker(require[_0x3c1e5f(0x13f)](_0x23dabd[_0x3c1e5f(0x170)]),{'exposedMethods':[_0x23dabd[_0x3c1e5f(0x18c)]],'forkOptions':{'serialization':_0x23dabd['tlzXn'],'stdio':_0x23dabd[_0x3c1e5f(0x145)]},'numWorkers':_0x4a176e['length']||0x1,'enableWorkerThreads':!![],'idleMemoryLimit':undefined,'maxRetries':0x1}),_0x409160=new Emittery();_0x409160['on'](_0x23dabd[_0x3c1e5f(0x182)],_0x3cca5a=>{const _0x5cff51=_0x3c1e5f;_0x5e60e8[_0x5cff51(0x15e)]([_0x3cca5a[0x0],_0x3cca5a[0x1]]);}),_0x409160['on'](_0x23dabd['ujPgJ'],_0x1a6102=>console[_0x3c1e5f(0x18d)](_0x1a6102[0x1]));_0x4626a1[_0x3c1e5f(0x13d)]()&&_0x4626a1[_0x3c1e5f(0x13d)]()['pipe'](process[_0x3c1e5f(0x16c)]);_0x4626a1['getStderr']()&&_0x4626a1[_0x3c1e5f(0x17b)]()['pipe'](process[_0x3c1e5f(0x163)]);const _0x19133e=async()=>{const _0x26c54c=_0x3c1e5f,{forceExited:_0x412d30}=await _0x4626a1[_0x26c54c(0x16d)]();_0x412d30&&console['error'](_0x7f58ab['WpeTJ']),_0x7f58ab['nuRXc'](_0x5b6902,_0x5e60e8);},_0x209371=_0x23dabd[_0x3c1e5f(0x17e)](pLimit,_0x4a176e[_0x3c1e5f(0x152)]||0x1),_0x43de67=(_0x3e3f3c,_0x2bee18)=>_0x209371(async()=>{const _0x26fb09=_0x3c1e5f;return await _0x409160[_0x26fb09(0x186)](_0x23dabd[_0x26fb09(0x150)],_0x3e3f3c),_0x4ccba7[_0x26fb09(0x184)]=_0x4da047[_0x26fb09(0x17f)][_0x2bee18],_0x4ccba7[_0x26fb09(0x178)]=_0x2bee18,_0x4626a1[_0x26fb09(0x17a)](_0x3e3f3c,_0x4ccba7,_0x4da047,_0x42156b,_0x5284e2);});Promise[_0x3c1e5f(0x141)](_0x4a176e[_0x3c1e5f(0x167)]((_0x82c570,_0x4d184a)=>_0x43de67(_0x82c570,_0x4d184a)['then'](_0x287c67=>_0x409160['emit'](_0x3c1e5f(0x14b),[_0x82c570,_0x287c67]),_0x534407=>_0x409160[_0x3c1e5f(0x186)](_0x3c1e5f(0x166),[_0x82c570,_0x534407]))))[_0x3c1e5f(0x19d)](_0x19133e,_0x19133e);});},exports['parallelVanillaRun']=(_0x10158d,_0x521450)=>new Promise(_0x4675f4=>{const _0x4add88=a53_0x1440db,_0xcc2efe={'UCXSw':function(_0x3145db,_0x4628ea){return _0x3145db===_0x4628ea;},'nDrWK':function(_0xe452d2,_0x56dfe6){return _0xe452d2!==_0x56dfe6;},'CTlFb':_0x4add88(0x18b),'YHWaB':_0x4add88(0x199),'Mwbrc':function(_0xf06858,_0x59a1b2){return _0xf06858(_0x59a1b2);},'mSnSi':_0x4add88(0x169),'LjZOg':_0x4add88(0x189),'nlHae':'json','tiHiC':_0x4add88(0x179),'CqjwI':_0x4add88(0x16b),'tEZEe':'test-file-failure'},_0x2d930f={},_0x3015c7=new Worker(require['resolve'](_0xcc2efe[_0x4add88(0x174)]),{'exposedMethods':[_0xcc2efe[_0x4add88(0x193)]],'forkOptions':{'serialization':_0xcc2efe['nlHae'],'stdio':_0xcc2efe['tiHiC']},'numWorkers':_0x521450,'enableWorkerThreads':![],'maxRetries':0x1,'idleMemoryLimit':undefined}),_0x234130=new Emittery();_0x234130['on'](_0xcc2efe[_0x4add88(0x195)],_0xa8c3fe=>{const _0x23c19c=_0x4add88;_0xa8c3fe[0x0]&&logger[_0x23c19c(0x158)]('Running\x20'+_0xa8c3fe[0x1]+_0x23c19c(0x173),_0xa8c3fe[0x0]);}),_0x234130['on'](_0xcc2efe['tEZEe'],_0x17f729=>{process['exitCode']=0x1;});_0x3015c7[_0x4add88(0x13d)]()&&_0x3015c7[_0x4add88(0x13d)]()['pipe'](process[_0x4add88(0x16c)]);_0x3015c7['getStderr']()&&_0x3015c7[_0x4add88(0x17b)]()[_0x4add88(0x179)](process[_0x4add88(0x163)]);const _0x2c17ae=async()=>{const _0x2d7cd4=_0x4add88,_0x393ce0={'QIHYQ':function(_0x42afca,_0x2bc489){return _0xcc2efe['UCXSw'](_0x42afca,_0x2bc489);},'PvDHm':function(_0x215e77,_0x111b55){const _0x851ddb=a53_0x56ac;return _0xcc2efe[_0x851ddb(0x19b)](_0x215e77,_0x111b55);},'ADTaz':_0xcc2efe[_0x2d7cd4(0x14f)]};let _0x2c613b=0x0;const _0x1c1855=_0x3015c7[_0x2d7cd4(0x18e)][_0x2d7cd4(0x14e)](),_0x44da01=()=>{},_0x586314=_0x1c1855['map'](async _0x1b6250=>{const _0x4788ed=_0x2d7cd4;_0x1b6250[_0x4788ed(0x165)]([0x2,![]],_0x44da01,_0x44da01,_0x44da01),_0x1b6250[_0x4788ed(0x143)]['on'](_0x393ce0[_0x4788ed(0x148)],_0x1aafcf=>{const _0x1201bc=_0x4788ed;_0x393ce0['QIHYQ'](_0x2c613b,0x0)&&_0x393ce0[_0x1201bc(0x180)](_0x1aafcf,0x0)&&(_0x2c613b=_0x1aafcf);}),await _0x1b6250['waitForExit']();});await Promise[_0x2d7cd4(0x141)](_0x586314),process[_0x2d7cd4(0x188)]=_0x2c613b;const {forceExited:_0x3a4425}=await _0x3015c7[_0x2d7cd4(0x16d)]();_0x3a4425&&console[_0x2d7cd4(0x15a)](_0xcc2efe[_0x2d7cd4(0x156)]),_0xcc2efe['Mwbrc'](_0x4675f4,_0x2d930f);},_0x4f8733=_0xcc2efe[_0x4add88(0x185)](pLimit,_0x521450),_0x50e8dc=_0x47b61e=>_0x4f8733(async()=>{const _0x378109=_0x4add88;return _0x3015c7[_0x378109(0x189)](_0x47b61e);});Promise['all'](_0x10158d[_0x4add88(0x167)](_0x580034=>_0x50e8dc(_0x580034)[_0x4add88(0x19d)](_0x25447a=>_0x234130[_0x4add88(0x186)]('test-file-success',[_0x580034[_0x4add88(0x15f)][_0x4add88(0x192)],_0x580034[_0x4add88(0x15f)][_0x4add88(0x147)]]),_0x3b4a0b=>_0x234130[_0x4add88(0x186)](_0x4add88(0x153),[_0x580034,_0x3b4a0b]))))[_0x4add88(0x19d)](_0x2c17ae,_0x2c17ae);});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a54_0x5c54e6=a54_0x257a;(function(_0x11b783,_0x5d13b5){const _0x574bf8=a54_0x257a,_0x29d8cf=_0x11b783();while(!![]){try{const _0x57b4d0=parseInt(_0x574bf8(0xfc))/0x1*(-parseInt(_0x574bf8(0x102))/0x2)+parseInt(_0x574bf8(0x116))/0x3*(parseInt(_0x574bf8(0x117))/0x4)+-parseInt(_0x574bf8(0x108))/0x5*(-parseInt(_0x574bf8(0x10b))/0x6)+-parseInt(_0x574bf8(0xf7))/0x7+-parseInt(_0x574bf8(0x10e))/0x8*(-parseInt(_0x574bf8(0x113))/0x9)+-parseInt(_0x574bf8(0x107))/0xa+-parseInt(_0x574bf8(0xfe))/0xb;if(_0x57b4d0===_0x5d13b5)break;else _0x29d8cf['push'](_0x29d8cf['shift']());}catch(_0x4dcc8b){_0x29d8cf['push'](_0x29d8cf['shift']());}}}(a54_0xd3ab,0x4058f));function a54_0xd3ab(){const _0x21de14=['xaGRR','Izhke','HBifm','../../helpers/performance/constants','780160TKbcHm','5qOBJyg','runCucumberTest','../../helpers/performance/performance-tester','2819094KFxXJB','end','cucumber-js','128oDMrCb','BIvIc','configuration','mocha','formatter','248094DIKFFA','run','gQSke','192597lUlJez','28FprsQw','FpmJG','1007202fBeFkX','stopMonitoring','vanilla','xfUtL','../launcher/launcher','1232lIpQxF','EVENTS','8525407WktmTu','runVanillaTest','nHTlp','../../helpers/test-observability/utils','162iLnqcp'];a54_0xd3ab=function(){return _0x21de14;};return a54_0xd3ab();}const PerformanceEvents=require(a54_0x5c54e6(0x106))[a54_0x5c54e6(0xfd)],PerformanceTester=require(a54_0x5c54e6(0x10a)),{sleep}=require(a54_0x5c54e6(0x101));function a54_0x257a(_0x26cad4,_0x2e680a){const _0xd3abd2=a54_0xd3ab();return a54_0x257a=function(_0x257a5a,_0x471386){_0x257a5a=_0x257a5a-0xf7;let _0x4beb43=_0xd3abd2[_0x257a5a];return _0x4beb43;},a54_0x257a(_0x26cad4,_0x2e680a);}exports['runTest']=async(_0x36f806,_0x5bb75b)=>{const _0x5232ec=a54_0x5c54e6,_0x16931f={'BIvIc':function(_0x539c3a,_0x5ee829){return _0x539c3a(_0x5ee829);},'FpmJG':'../launcher/launcher','gQSke':_0x5232ec(0x111)};PerformanceTester['startMonitoring']();const _0x37b9ae=_0x16931f[_0x5232ec(0x10f)](require,_0x16931f[_0x5232ec(0x118)]),_0x476d23=new _0x37b9ae(_0x16931f[_0x5232ec(0x115)],_0x36f806,_0x5bb75b),_0x65c7fc=await _0x476d23['run']();return PerformanceTester[_0x5232ec(0x10c)](PerformanceEvents['SDK_POST_TEST']),await _0x16931f[_0x5232ec(0x10f)](sleep,0x3e8),PerformanceTester[_0x5232ec(0xf8)](),_0x65c7fc;},exports[a54_0x5c54e6(0x109)]=async(_0xbb01c2,_0x27f917,_0xd04e80,_0x493904,_0x35eb18)=>{const _0x15aa5a=a54_0x5c54e6,_0x5a1ee4={'Izhke':function(_0x3a53cd,_0x2d17a8){return _0x3a53cd(_0x2d17a8);},'jjINH':_0x15aa5a(0xfb),'xfUtL':_0x15aa5a(0x10d)},_0x2b0222={'capability':_0xbb01c2,..._0x27f917},_0xec8124={};_0xec8124[_0x15aa5a(0x110)]=_0x2b0222,_0xec8124[_0x15aa5a(0x112)]=_0x35eb18;const _0x5d71cd=_0xec8124,_0x3f8cbb=_0x5a1ee4[_0x15aa5a(0x104)](require,_0x5a1ee4['jjINH']),_0x566dc6=new _0x3f8cbb(_0x5a1ee4[_0x15aa5a(0xfa)],_0x5d71cd,_0xd04e80,_0x493904);return await _0x566dc6[_0x15aa5a(0x114)]();},exports[a54_0x5c54e6(0xff)]=async _0x33b1c5=>{const _0x256b82=a54_0x5c54e6,_0x9db6c2={'nHTlp':function(_0x5140f1,_0x34eb5d){return _0x5140f1(_0x34eb5d);},'HBifm':'../launcher/launcher','xaGRR':_0x256b82(0xf9)},_0x1b4143=_0x9db6c2[_0x256b82(0x100)](require,_0x9db6c2[_0x256b82(0x105)]),_0x5ce5a3=new _0x1b4143(_0x9db6c2[_0x256b82(0x103)],_0x33b1c5);return await _0x5ce5a3['run']();};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a55_0x4def(_0x5c8def,_0x3a7608){const _0x1349ad=a55_0x1349();return a55_0x4def=function(_0x4defc3,_0x1f1a1b){_0x4defc3=_0x4defc3-0x1b3;let _0x3556e9=_0x1349ad[_0x4defc3];return _0x3556e9;},a55_0x4def(_0x5c8def,_0x3a7608);}const a55_0x4cf1db=a55_0x4def;(function(_0xc4908a,_0x46e391){const _0x5d0ebc=a55_0x4def,_0x32a07f=_0xc4908a();while(!![]){try{const _0x2fdc81=parseInt(_0x5d0ebc(0x1b4))/0x1+-parseInt(_0x5d0ebc(0x1b7))/0x2+-parseInt(_0x5d0ebc(0x1be))/0x3*(-parseInt(_0x5d0ebc(0x1b3))/0x4)+parseInt(_0x5d0ebc(0x1c1))/0x5*(parseInt(_0x5d0ebc(0x1c0))/0x6)+parseInt(_0x5d0ebc(0x1b6))/0x7*(parseInt(_0x5d0ebc(0x1bd))/0x8)+-parseInt(_0x5d0ebc(0x1bc))/0x9*(-parseInt(_0x5d0ebc(0x1b9))/0xa)+parseInt(_0x5d0ebc(0x1c4))/0xb*(-parseInt(_0x5d0ebc(0x1bb))/0xc);if(_0x2fdc81===_0x46e391)break;else _0x32a07f['push'](_0x32a07f['shift']());}catch(_0x12b028){_0x32a07f['push'](_0x32a07f['shift']());}}}(a55_0x1349,0x584e1));const {runTest,runCucumberTest,runVanillaTest}=require(a55_0x4cf1db(0x1b8));exports[a55_0x4cf1db(0x1ba)]=async(_0x5eb67c,_0x54090a)=>{const _0x3707af=a55_0x4cf1db,_0x1771b1={'IRUrb':function(_0x170071,_0x110728,_0x4da2e4){return _0x170071(_0x110728,_0x4da2e4);}};return await _0x1771b1[_0x3707af(0x1bf)](runTest,_0x5eb67c,_0x54090a);},exports[a55_0x4cf1db(0x1c5)]=async(_0x58142d,_0x23cf50,_0x2fb675,_0xe3a5f9,_0x3aea00)=>{const _0x4d3e95=a55_0x4cf1db,_0x40e531={'OIabo':function(_0x3f109d,_0x2509da,_0x4a5199,_0x273f7e,_0x3f2910,_0x5d34ce){return _0x3f109d(_0x2509da,_0x4a5199,_0x273f7e,_0x3f2910,_0x5d34ce);}};return await _0x40e531[_0x4d3e95(0x1c2)](runCucumberTest,_0x58142d,_0x23cf50,_0x2fb675,_0xe3a5f9,_0x3aea00);},exports[a55_0x4cf1db(0x1c3)]=async _0x483bb7=>{const _0x3eb68b=a55_0x4cf1db,_0x35da0a={'WyiRV':function(_0x219da9,_0x17271a){return _0x219da9(_0x17271a);}};return await _0x35da0a[_0x3eb68b(0x1b5)](runVanillaTest,_0x483bb7);};function a55_0x1349(){const _0x1f2bc0=['1253RepQRY','1013040cHInrl','./runTest','353830nsqbwN','worker','12DRgndH','27lczFrL','29504XiFKiF','777531lhfoWU','IRUrb','1444734ruUPvs','15vXLflZ','OIabo','vanillaWorker','10705574KHkIUI','cucumberWorker','4RifFCF','93606Ynexvb','WyiRV'];a55_0x1349=function(){return _0x1f2bc0;};return a55_0x1349();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a56_0x14ba8f=a56_0x541b;(function(_0x5f0daa,_0x51f7b5){const _0x5e8800=a56_0x541b,_0x1d1c26=_0x5f0daa();while(!![]){try{const _0x27b174=parseInt(_0x5e8800(0x24c))/0x1+parseInt(_0x5e8800(0x209))/0x2*(parseInt(_0x5e8800(0x218))/0x3)+-parseInt(_0x5e8800(0x245))/0x4*(parseInt(_0x5e8800(0x1f2))/0x5)+-parseInt(_0x5e8800(0x232))/0x6+-parseInt(_0x5e8800(0x238))/0x7*(-parseInt(_0x5e8800(0x244))/0x8)+parseInt(_0x5e8800(0x20b))/0x9+parseInt(_0x5e8800(0x1e8))/0xa*(-parseInt(_0x5e8800(0x1ec))/0xb);if(_0x27b174===_0x51f7b5)break;else _0x1d1c26['push'](_0x1d1c26['shift']());}catch(_0x26e57d){_0x1d1c26['push'](_0x1d1c26['shift']());}}}(a56_0x4421,0x7142d));function a56_0x4421(){const _0x78cb8e=['YQXuq','xTiOY','micjA','AixgT','4559214yCUDNo','DIVji','rahBK','TPqVP','zSZRn','QXJua','24409UBlamj','uiGKK','MbtBc','fjlUr','edDpC','ozzCj','exports','XJzQO','sltao','lgIpu','PUPPETEER_HUB_URL','sIiVZ','1904ZpeEun','12lMNbFx','wWDbC','UilBg','SXVcX','DRWaR','/playwright?caps=','getInstance','887539UnEzDf','VrJnY','jQtxB','ZQVfO','wss:','OXrWf','getAutomateSessionStatusAPIUrl','HsrDI','edsInstrumentation','193200GfBgwN','KldcT','krhiT','OBSERVABILITY_UPLOAD_URL','517vMxVSs','getAppAutomateSessionsListAPIUrl','hDTzb','wCuVI','pcEVQ','BROWSERSTACK_API_URL','1505110Hsgiqz','apis','getPuppeteerHubUrl','tLaQL','mViND','EDS_URL','OOSyh','getBStackAPIUrl','api','hkYZa','getPlaywrightHubUrl','rzeRA','getAutoCaptureLogsAPIUrl','DhtOk','XpDjd','getEdsInstrumentationAPIUrl','hgJVv','toString','olnKP','ghLig','cdp','hqcZO','PLAYWRIGHT_HUB_URL','2aAANdd','endsWith','4129866acqQPS','getAutomateSessionsListAPIUrl','vSxvg','replace','OWgBu','fEMuM','observability','wzqDQ','eXFWB','OoBul','qvMsu','hFgVL','../v2/browserstackCLI','2575719kQLrxb','RgFwF','LdhEv','VpskD','TogOy','QsXLV','QBTko','KoduS','/puppeteer?caps=','LjLxP','BbwOz','getConfig','TCKCw','./constants','getAutomateSessionNameAPIUrl','automate','APP_UPLOAD_URL','iUjPZ','appAutomate','AqfAK','xNsdI','XeQgm'];a56_0x4421=function(){return _0x78cb8e;};return a56_0x4421();}const constants=require(a56_0x14ba8f(0x225)),{nestedKeyValue}=require('./sharedUtils'),getBrowserstackCLI=()=>{const _0x5cebc8=a56_0x14ba8f,_0x5b0b0e={'rKcmp':function(_0x5563b6,_0x27de84){return _0x5563b6(_0x27de84);},'iUjPZ':_0x5cebc8(0x217)};return _0x5b0b0e['rKcmp'](require,_0x5b0b0e[_0x5cebc8(0x229)]);};function a56_0x541b(_0x5a4610,_0x482813){const _0x44210c=a56_0x4421();return a56_0x541b=function(_0x541bde,_0x4da82a){_0x541bde=_0x541bde-0x1e0;let _0x30c9f4=_0x44210c[_0x541bde];return _0x30c9f4;},a56_0x541b(_0x5a4610,_0x482813);}class APIUtilityMethods{static[a56_0x14ba8f(0x1f9)](_0x49b3ab){const _0x1b54cf=a56_0x14ba8f,_0x1d2c20={'AixgT':function(_0x4013ae){return _0x4013ae();},'XeQgm':function(_0x7c60e8,_0x6cc5e3,_0x11a463){return _0x7c60e8(_0x6cc5e3,_0x11a463);},'KoduS':_0x1b54cf(0x1f3),'fjlUr':_0x1b54cf(0x227),'olnKP':_0x1b54cf(0x1fa),'ozzCj':function(_0x214585,_0x2a16a7){return _0x214585===_0x2a16a7;},'LyQAL':function(_0x2b7d3f,_0x4b08fa){return _0x2b7d3f+_0x4b08fa;}},_0x1def41=_0x1d2c20[_0x1b54cf(0x231)](getBrowserstackCLI),_0x1b5da4=_0x1d2c20[_0x1b54cf(0x22d)](nestedKeyValue,_0x1def41[_0x1b54cf(0x24b)]()[_0x1b54cf(0x223)](),[_0x1d2c20[_0x1b54cf(0x21f)],_0x1d2c20[_0x1b54cf(0x23b)],_0x1d2c20[_0x1b54cf(0x204)]])||constants['BROWSERSTACK_API_URL'];if(!_0x49b3ab||_0x1d2c20[_0x1b54cf(0x23d)](_0x49b3ab,''))return _0x1b5da4;const _0x482697=_0x1b5da4[_0x1b54cf(0x20a)]('/')?_0x1b5da4:_0x1d2c20['LyQAL'](_0x1b5da4,'/');return new URL(_0x49b3ab,_0x482697)[_0x1b54cf(0x203)]();}static[a56_0x14ba8f(0x201)](_0x364e7b){const _0x24dbb7=a56_0x14ba8f,_0x19f587={'edDpC':function(_0x52aceb){return _0x52aceb();},'ECUxg':function(_0x4d4e85,_0xacad88,_0xaca1ed){return _0x4d4e85(_0xacad88,_0xaca1ed);},'ZQVfO':'apis','wWDbC':_0x24dbb7(0x1e7),'GLaRR':_0x24dbb7(0x1fa),'zSZRn':function(_0x3d9fab,_0x2b6cf6){return _0x3d9fab===_0x2b6cf6;},'RgFwF':function(_0xd575a7,_0x34317d){return _0xd575a7+_0x34317d;}},_0x24862b=_0x19f587[_0x24dbb7(0x23c)](getBrowserstackCLI),_0x4462b5=_0x19f587['ECUxg'](nestedKeyValue,_0x24862b[_0x24dbb7(0x24b)]()['getConfig'](),[_0x19f587[_0x24dbb7(0x1e2)],_0x19f587[_0x24dbb7(0x246)],_0x19f587['GLaRR']])||constants[_0x24dbb7(0x1f7)];if(!_0x364e7b||_0x19f587[_0x24dbb7(0x236)](_0x364e7b,''))return _0x4462b5;const _0x1a8e17=_0x4462b5[_0x24dbb7(0x20a)]('/')?_0x4462b5:_0x19f587[_0x24dbb7(0x219)](_0x4462b5,'/');return new URL(_0x364e7b,_0x1a8e17)[_0x24dbb7(0x203)]();}static[a56_0x14ba8f(0x1e5)](_0x62c4c0){const _0x17b850=a56_0x14ba8f,_0x278f2d={'mViND':function(_0x400fec){return _0x400fec();},'TCKCw':function(_0x3d1f3d,_0xc44af1,_0x291c21){return _0x3d1f3d(_0xc44af1,_0x291c21);},'eXFWB':_0x17b850(0x1f3),'UilBg':_0x17b850(0x227),'XJzQO':_0x17b850(0x1fa),'vyIoH':function(_0x11367a,_0x49dde7){return _0x11367a===_0x49dde7;},'wzqDQ':function(_0x5b7b82,_0x3ffa09){return _0x5b7b82+_0x3ffa09;}},_0x435448=_0x278f2d[_0x17b850(0x1f6)](getBrowserstackCLI),_0x2d8ff4=_0x278f2d[_0x17b850(0x224)](nestedKeyValue,_0x435448[_0x17b850(0x24b)]()[_0x17b850(0x223)](),[_0x278f2d[_0x17b850(0x213)],_0x278f2d[_0x17b850(0x247)],_0x278f2d[_0x17b850(0x23f)]])||constants['BROWSERSTACK_API_URL'];if(!_0x62c4c0||_0x278f2d['vyIoH'](_0x62c4c0,''))return _0x2d8ff4;const _0x2cba4b=_0x2d8ff4[_0x17b850(0x20a)]('/')?_0x2d8ff4:_0x278f2d[_0x17b850(0x212)](_0x2d8ff4,'/');return new URL(_0x62c4c0,_0x2cba4b)[_0x17b850(0x203)]();}static['getAppAutomateSessionStatusAPIUrl'](_0x4a5b87){const _0x19aa27=a56_0x14ba8f,_0x2ab3b5={'hFgVL':function(_0x171a03){return _0x171a03();},'MbtBc':function(_0x4a2dfb,_0x201e1f,_0x564920){return _0x4a2dfb(_0x201e1f,_0x564920);},'hqcZO':_0x19aa27(0x1f3),'XpDjd':_0x19aa27(0x22a),'sltao':'api','fEMuM':function(_0x3fdf39,_0x302e73){return _0x3fdf39===_0x302e73;},'yvCQl':function(_0x3eb4c9,_0x4e1d8f){return _0x3eb4c9+_0x4e1d8f;}},_0xc4a942=_0x2ab3b5[_0x19aa27(0x216)](getBrowserstackCLI),_0x1be488=_0x2ab3b5[_0x19aa27(0x23a)](nestedKeyValue,_0xc4a942[_0x19aa27(0x24b)]()[_0x19aa27(0x223)](),[_0x2ab3b5[_0x19aa27(0x207)],_0x2ab3b5[_0x19aa27(0x200)],_0x2ab3b5[_0x19aa27(0x240)]])||constants['BROWSERSTACK_API_URL'];if(!_0x4a5b87||_0x2ab3b5[_0x19aa27(0x210)](_0x4a5b87,''))return _0x1be488;const _0x2699a4=_0x1be488[_0x19aa27(0x20a)]('/')?_0x1be488:_0x2ab3b5['yvCQl'](_0x1be488,'/');return new URL(_0x4a5b87,_0x2699a4)[_0x19aa27(0x203)]();}static[a56_0x14ba8f(0x226)](_0x928799){const _0x312a4b=a56_0x14ba8f,_0x356aa1={'PBHGY':function(_0x22be77){return _0x22be77();},'tLaQL':function(_0x3d6402,_0x26808b,_0x1b1efb){return _0x3d6402(_0x26808b,_0x1b1efb);},'VagNa':_0x312a4b(0x1f3),'pjQtw':_0x312a4b(0x227),'OOSyh':_0x312a4b(0x1fa),'lgIpu':function(_0x3ed0e8,_0x3e26fb){return _0x3ed0e8===_0x3e26fb;},'QBTko':function(_0x42107c,_0x42cd2d){return _0x42107c+_0x42cd2d;}},_0x3bc588=_0x356aa1['PBHGY'](getBrowserstackCLI),_0x5197ee=_0x356aa1[_0x312a4b(0x1f5)](nestedKeyValue,_0x3bc588[_0x312a4b(0x24b)]()[_0x312a4b(0x223)](),[_0x356aa1['VagNa'],_0x356aa1['pjQtw'],_0x356aa1[_0x312a4b(0x1f8)]])||constants[_0x312a4b(0x1f1)];if(!_0x928799||_0x356aa1[_0x312a4b(0x241)](_0x928799,''))return _0x5197ee;const _0x433da9=_0x5197ee[_0x312a4b(0x20a)]('/')?_0x5197ee:_0x356aa1[_0x312a4b(0x21e)](_0x5197ee,'/');return new URL(_0x928799,_0x433da9)['toString']();}static['getAppAutomateSessionNameAPIUrl'](_0x48bab8){const _0x4efbff=a56_0x14ba8f,_0x49d0f5={'LjLxP':function(_0x488ec6){return _0x488ec6();},'SXVcX':function(_0x26302e,_0x4f3ef6,_0x2c2fe4){return _0x26302e(_0x4f3ef6,_0x2c2fe4);},'NavtK':'apis','wCuVI':_0x4efbff(0x22a),'rzeRA':_0x4efbff(0x1fa),'DhtOk':function(_0x239f05,_0x146b26){return _0x239f05===_0x146b26;},'jQtxB':function(_0x4a6af7,_0xf7db37){return _0x4a6af7+_0xf7db37;}},_0x1499b1=_0x49d0f5[_0x4efbff(0x221)](getBrowserstackCLI),_0xdf361b=_0x49d0f5[_0x4efbff(0x248)](nestedKeyValue,_0x1499b1[_0x4efbff(0x24b)]()[_0x4efbff(0x223)](),[_0x49d0f5['NavtK'],_0x49d0f5[_0x4efbff(0x1ef)],_0x49d0f5[_0x4efbff(0x1fd)]])||constants[_0x4efbff(0x1f1)];if(!_0x48bab8||_0x49d0f5[_0x4efbff(0x1ff)](_0x48bab8,''))return _0xdf361b;const _0x239514=_0xdf361b[_0x4efbff(0x20a)]('/')?_0xdf361b:_0x49d0f5[_0x4efbff(0x1e1)](_0xdf361b,'/');return new URL(_0x48bab8,_0x239514)[_0x4efbff(0x203)]();}static[a56_0x14ba8f(0x20c)](_0x41a653){const _0x4c2f8b=a56_0x14ba8f,_0x47dc1c={'ghLig':function(_0x3a1380){return _0x3a1380();},'vSxvg':function(_0x47ace3,_0x1d8ddc,_0x2a1e41){return _0x47ace3(_0x1d8ddc,_0x2a1e41);},'BbwOz':_0x4c2f8b(0x1f3),'OXrWf':_0x4c2f8b(0x227),'pcEVQ':'api','DIVji':function(_0x5e314a,_0x4518d9){return _0x5e314a===_0x4518d9;},'iABoV':function(_0x865cc4,_0xea8a8e){return _0x865cc4+_0xea8a8e;}},_0xe2bef1=_0x47dc1c[_0x4c2f8b(0x205)](getBrowserstackCLI),_0x725fd6=_0x47dc1c[_0x4c2f8b(0x20d)](nestedKeyValue,_0xe2bef1['getInstance']()['getConfig'](),[_0x47dc1c[_0x4c2f8b(0x222)],_0x47dc1c[_0x4c2f8b(0x1e4)],_0x47dc1c[_0x4c2f8b(0x1f0)]])||constants[_0x4c2f8b(0x1f1)];if(!_0x41a653||_0x47dc1c[_0x4c2f8b(0x233)](_0x41a653,''))return _0x725fd6;const _0x2e01bf=_0x725fd6[_0x4c2f8b(0x20a)]('/')?_0x725fd6:_0x47dc1c['iABoV'](_0x725fd6,'/');return new URL(_0x41a653,_0x2e01bf)[_0x4c2f8b(0x203)]()[_0x4c2f8b(0x20e)](/^https?:\/\//,'');}static[a56_0x14ba8f(0x1ed)](_0x579f5f){const _0x4ccb0f=a56_0x14ba8f,_0x4ca626={'OoBul':function(_0xaf140f){return _0xaf140f();},'HsrDI':function(_0x44c14a,_0x30c359,_0x3bc8a9){return _0x44c14a(_0x30c359,_0x3bc8a9);},'VpskD':_0x4ccb0f(0x1f3),'xNsdI':_0x4ccb0f(0x22a),'hDTzb':_0x4ccb0f(0x1fa),'uiGKK':function(_0x423e0b,_0x1fea9e){return _0x423e0b===_0x1fea9e;},'OWgBu':function(_0x5622f4,_0x390d11){return _0x5622f4+_0x390d11;}},_0x36206b=_0x4ca626[_0x4ccb0f(0x214)](getBrowserstackCLI),_0x3504a0=_0x4ca626[_0x4ccb0f(0x1e6)](nestedKeyValue,_0x36206b['getInstance']()[_0x4ccb0f(0x223)](),[_0x4ca626[_0x4ccb0f(0x21b)],_0x4ca626[_0x4ccb0f(0x22c)],_0x4ca626[_0x4ccb0f(0x1ee)]])||constants[_0x4ccb0f(0x228)];if(!_0x579f5f||_0x4ca626[_0x4ccb0f(0x239)](_0x579f5f,''))return _0x3504a0;const _0x1d6962=_0x3504a0[_0x4ccb0f(0x20a)]('/')?_0x3504a0:_0x4ca626[_0x4ccb0f(0x20f)](_0x3504a0,'/');return new URL(_0x579f5f,_0x1d6962)[_0x4ccb0f(0x203)]()[_0x4ccb0f(0x20e)](/^https?:\/\//,'');}static[a56_0x14ba8f(0x1fe)](_0x3e6424){const _0x2a78ec=a56_0x14ba8f,_0x65ad37={'XuALn':function(_0x3bf40e){return _0x3bf40e();},'PxiDY':function(_0x4091a3,_0x263943,_0x40d388){return _0x4091a3(_0x263943,_0x40d388);},'VrJnY':_0x2a78ec(0x1f3),'xDZie':_0x2a78ec(0x211),'LdhEv':'upload','xTiOY':function(_0x57202e,_0x185f95){return _0x57202e===_0x185f95;},'txKtz':function(_0x2b6050,_0x33207b){return _0x2b6050+_0x33207b;}},_0x320158=_0x65ad37['XuALn'](getBrowserstackCLI),_0x5c5cca=_0x65ad37['PxiDY'](nestedKeyValue,_0x320158[_0x2a78ec(0x24b)]()[_0x2a78ec(0x223)](),[_0x65ad37[_0x2a78ec(0x1e0)],_0x65ad37['xDZie'],_0x65ad37[_0x2a78ec(0x21a)]])||constants[_0x2a78ec(0x1eb)];if(!_0x3e6424||_0x65ad37[_0x2a78ec(0x22f)](_0x3e6424,''))return _0x5c5cca;const _0x794b08=_0x5c5cca[_0x2a78ec(0x20a)]('/')?_0x5c5cca:_0x65ad37['txKtz'](_0x5c5cca,'/');return new URL(_0x3e6424,_0x794b08)['toString']();}static[a56_0x14ba8f(0x1fc)](_0x5d726f){const _0x9fb54b=a56_0x14ba8f,_0x5e058c={'AqfAK':function(_0x2b9d83){return _0x2b9d83();},'TogOy':function(_0x83d523,_0x587e5e,_0x50d91d){return _0x83d523(_0x587e5e,_0x50d91d);},'krhiT':_0x9fb54b(0x1f3),'RPvVZ':_0x9fb54b(0x227),'KldcT':'cdp','QXJua':_0x9fb54b(0x1e3),'hkYZa':function(_0x45fd4d,_0xf4995){return _0x45fd4d===_0xf4995;},'micjA':function(_0x422531,_0x9fac4d){return _0x422531+_0x9fac4d;},'sIiVZ':_0x9fb54b(0x24a)},_0x42a068=_0x5e058c[_0x9fb54b(0x22b)](getBrowserstackCLI),_0x2d5a65=_0x5e058c[_0x9fb54b(0x21c)](nestedKeyValue,_0x42a068[_0x9fb54b(0x24b)]()[_0x9fb54b(0x223)](),[_0x5e058c[_0x9fb54b(0x1ea)],_0x5e058c['RPvVZ'],_0x5e058c[_0x9fb54b(0x1e9)]]),_0x2c4fd7=(_0x2d5a65?_0x2d5a65['replace'](/^https:/,_0x5e058c[_0x9fb54b(0x237)]):null)||constants[_0x9fb54b(0x208)];let _0x190532;if(!_0x5d726f||_0x5e058c[_0x9fb54b(0x1fb)](_0x5d726f,''))_0x190532=_0x2c4fd7;else{const _0x32a6fe=_0x2c4fd7[_0x9fb54b(0x20a)]('/')?_0x2c4fd7:_0x5e058c[_0x9fb54b(0x230)](_0x2c4fd7,'/');_0x190532=new URL(_0x5d726f,_0x32a6fe)[_0x9fb54b(0x203)]();}return!_0x190532[_0x9fb54b(0x20a)](_0x5e058c[_0x9fb54b(0x243)])&&(_0x190532+=_0x5e058c[_0x9fb54b(0x243)]),_0x190532;}static[a56_0x14ba8f(0x1f4)](_0x4021dc){const _0x422a64=a56_0x14ba8f,_0x582fe3={'QsXLV':function(_0x66e808){return _0x66e808();},'qvMsu':function(_0x36abf0,_0x4046ee,_0x319374){return _0x36abf0(_0x4046ee,_0x319374);},'TPqVP':_0x422a64(0x1f3),'YQXuq':_0x422a64(0x227),'DRWaR':_0x422a64(0x206),'rahBK':'wss:','hgJVv':function(_0x2affac,_0x5422ba){return _0x2affac===_0x5422ba;},'LtrSZ':function(_0x4512de,_0x44cc41){return _0x4512de+_0x44cc41;},'egAsE':_0x422a64(0x220)},_0x3cc0c4=_0x582fe3[_0x422a64(0x21d)](getBrowserstackCLI),_0x51144e=_0x582fe3[_0x422a64(0x215)](nestedKeyValue,_0x3cc0c4[_0x422a64(0x24b)]()[_0x422a64(0x223)](),[_0x582fe3[_0x422a64(0x235)],_0x582fe3[_0x422a64(0x22e)],_0x582fe3[_0x422a64(0x249)]]),_0x238dc1=(_0x51144e?_0x51144e['replace'](/^https:/,_0x582fe3[_0x422a64(0x234)]):null)||constants[_0x422a64(0x242)];let _0x30b6a9;if(!_0x4021dc||_0x582fe3[_0x422a64(0x202)](_0x4021dc,''))_0x30b6a9=_0x238dc1;else{const _0x5712af=_0x238dc1[_0x422a64(0x20a)]('/')?_0x238dc1:_0x582fe3['LtrSZ'](_0x238dc1,'/');_0x30b6a9=new URL(_0x4021dc,_0x5712af)[_0x422a64(0x203)]();}return!_0x30b6a9[_0x422a64(0x20a)](_0x582fe3['egAsE'])&&(_0x30b6a9+=_0x582fe3['egAsE']),_0x30b6a9;}}module[a56_0x14ba8f(0x23e)]=APIUtilityMethods;
|
|
1
|
+
const a56_0x29e138=a56_0xa4c6;(function(_0x168697,_0x3909f2){const _0x5b85d4=a56_0xa4c6,_0x37fdb2=_0x168697();while(!![]){try{const _0x50ccc9=-parseInt(_0x5b85d4(0x18c))/0x1*(-parseInt(_0x5b85d4(0x15f))/0x2)+parseInt(_0x5b85d4(0x139))/0x3*(parseInt(_0x5b85d4(0x12e))/0x4)+-parseInt(_0x5b85d4(0x16f))/0x5*(-parseInt(_0x5b85d4(0x15c))/0x6)+-parseInt(_0x5b85d4(0x14e))/0x7+-parseInt(_0x5b85d4(0x16e))/0x8+parseInt(_0x5b85d4(0x15d))/0x9+-parseInt(_0x5b85d4(0x13e))/0xa*(parseInt(_0x5b85d4(0x156))/0xb);if(_0x50ccc9===_0x3909f2)break;else _0x37fdb2['push'](_0x37fdb2['shift']());}catch(_0x3c7168){_0x37fdb2['push'](_0x37fdb2['shift']());}}}(a56_0x2e2f,0x1cc6f));function a56_0xa4c6(_0x252713,_0xf0c601){const _0x2e2ff7=a56_0x2e2f();return a56_0xa4c6=function(_0xa4c61a,_0x3b7eaf){_0xa4c61a=_0xa4c61a-0x12d;let _0x342ce1=_0x2e2ff7[_0xa4c61a];return _0x342ce1;},a56_0xa4c6(_0x252713,_0xf0c601);}const constants=require(a56_0x29e138(0x159)),{nestedKeyValue}=require(a56_0x29e138(0x13b)),getBrowserstackCLI=()=>{const _0x2d4ef7=a56_0x29e138,_0x1c1faa={'ueLYt':function(_0x162ddb,_0xf24dfc){return _0x162ddb(_0xf24dfc);},'eLmju':_0x2d4ef7(0x17b)};return _0x1c1faa[_0x2d4ef7(0x14c)](require,_0x1c1faa['eLmju']);};class APIUtilityMethods{static[a56_0x29e138(0x178)](_0x15461a){const _0x35b2c8=a56_0x29e138,_0x331fe1={'AebMO':function(_0x4fff19){return _0x4fff19();},'tGwyE':function(_0xfc3e78,_0x4e50dd,_0x5bb303){return _0xfc3e78(_0x4e50dd,_0x5bb303);},'FRnGr':_0x35b2c8(0x17e),'UHisM':_0x35b2c8(0x16d),'ZczJx':_0x35b2c8(0x135),'vXJZy':function(_0x33e6ba,_0x26acc4){return _0x33e6ba===_0x26acc4;},'iFQKA':function(_0x2339ab,_0xd1b3d){return _0x2339ab+_0xd1b3d;}},_0x4fdd0e=_0x331fe1[_0x35b2c8(0x138)](getBrowserstackCLI),_0xdc17=_0x331fe1[_0x35b2c8(0x177)](nestedKeyValue,_0x4fdd0e[_0x35b2c8(0x173)]()[_0x35b2c8(0x130)](),[_0x331fe1[_0x35b2c8(0x167)],_0x331fe1['UHisM'],_0x331fe1[_0x35b2c8(0x175)]])||constants['BROWSERSTACK_API_URL'];if(!_0x15461a||_0x331fe1['vXJZy'](_0x15461a,''))return _0xdc17;const _0x36786b=_0xdc17['endsWith']('/')?_0xdc17:_0x331fe1[_0x35b2c8(0x163)](_0xdc17,'/');return new URL(_0x15461a,_0x36786b)[_0x35b2c8(0x150)]();}static[a56_0x29e138(0x172)](_0x4bfdb7){const _0x1f733f=a56_0x29e138,_0x25bfe7={'hhdQj':function(_0x1608ad){return _0x1608ad();},'ZWSeV':function(_0x10116f,_0x4a8c56,_0xfd1944){return _0x10116f(_0x4a8c56,_0xfd1944);},'vGQIW':_0x1f733f(0x17e),'kPmne':'edsInstrumentation','swBrt':_0x1f733f(0x135),'DosxD':function(_0x48ec9f,_0x41d099){return _0x48ec9f===_0x41d099;},'vROOx':function(_0x116691,_0x342803){return _0x116691+_0x342803;}},_0x531781=_0x25bfe7['hhdQj'](getBrowserstackCLI),_0x23b52a=_0x25bfe7[_0x1f733f(0x182)](nestedKeyValue,_0x531781[_0x1f733f(0x173)]()[_0x1f733f(0x130)](),[_0x25bfe7[_0x1f733f(0x16c)],_0x25bfe7[_0x1f733f(0x12d)],_0x25bfe7[_0x1f733f(0x153)]])||constants[_0x1f733f(0x157)];if(!_0x4bfdb7||_0x25bfe7[_0x1f733f(0x162)](_0x4bfdb7,''))return _0x23b52a;const _0x170cf2=_0x23b52a[_0x1f733f(0x134)]('/')?_0x23b52a:_0x25bfe7['vROOx'](_0x23b52a,'/');return new URL(_0x4bfdb7,_0x170cf2)[_0x1f733f(0x150)]();}static['getAutomateSessionStatusAPIUrl'](_0x14ab70){const _0xa76890=a56_0x29e138,_0x3a4623={'BugUb':function(_0x26e706){return _0x26e706();},'LcNne':function(_0x1e9a7e,_0x281ebd,_0x556af2){return _0x1e9a7e(_0x281ebd,_0x556af2);},'rRlIk':_0xa76890(0x17e),'vLcGK':'automate','hfXon':'api','KWPAv':function(_0x3e74cf,_0x36c9d2){return _0x3e74cf===_0x36c9d2;},'DQuKe':function(_0x3eaf90,_0xf8dfe7){return _0x3eaf90+_0xf8dfe7;}},_0x409b3c=_0x3a4623['BugUb'](getBrowserstackCLI),_0x520fb5=_0x3a4623[_0xa76890(0x18e)](nestedKeyValue,_0x409b3c[_0xa76890(0x173)]()[_0xa76890(0x130)](),[_0x3a4623[_0xa76890(0x188)],_0x3a4623[_0xa76890(0x136)],_0x3a4623[_0xa76890(0x151)]])||constants[_0xa76890(0x183)];if(!_0x14ab70||_0x3a4623[_0xa76890(0x186)](_0x14ab70,''))return _0x520fb5;const _0x2c09c2=_0x520fb5['endsWith']('/')?_0x520fb5:_0x3a4623[_0xa76890(0x12f)](_0x520fb5,'/');return new URL(_0x14ab70,_0x2c09c2)[_0xa76890(0x150)]();}static['getAppAutomateSessionStatusAPIUrl'](_0x3b5315){const _0x57c7ea=a56_0x29e138,_0x1d9b45={'gMoPw':function(_0x522dd8){return _0x522dd8();},'cJgOX':function(_0x203755,_0x344cc8,_0x55324a){return _0x203755(_0x344cc8,_0x55324a);},'BwUbr':_0x57c7ea(0x17e),'MtOcQ':_0x57c7ea(0x18a),'TaFGy':_0x57c7ea(0x135),'XSEqe':function(_0x27a939,_0x4b6064){return _0x27a939===_0x4b6064;},'BlbOO':function(_0x4df154,_0x140768){return _0x4df154+_0x140768;}},_0x137955=_0x1d9b45[_0x57c7ea(0x185)](getBrowserstackCLI),_0x16c1c6=_0x1d9b45[_0x57c7ea(0x179)](nestedKeyValue,_0x137955[_0x57c7ea(0x173)]()['getConfig'](),[_0x1d9b45[_0x57c7ea(0x149)],_0x1d9b45[_0x57c7ea(0x18b)],_0x1d9b45[_0x57c7ea(0x187)]])||constants[_0x57c7ea(0x183)];if(!_0x3b5315||_0x1d9b45[_0x57c7ea(0x184)](_0x3b5315,''))return _0x16c1c6;const _0x47406a=_0x16c1c6['endsWith']('/')?_0x16c1c6:_0x1d9b45['BlbOO'](_0x16c1c6,'/');return new URL(_0x3b5315,_0x47406a)[_0x57c7ea(0x150)]();}static[a56_0x29e138(0x154)](_0x472e47){const _0x2ac0e8=a56_0x29e138,_0x5a1193={'FnDEZ':function(_0xfbec5c){return _0xfbec5c();},'mJhxC':function(_0x3b0e57,_0x360f57,_0x5d236f){return _0x3b0e57(_0x360f57,_0x5d236f);},'cBaER':_0x2ac0e8(0x17e),'YHKpB':_0x2ac0e8(0x16d),'sOQND':_0x2ac0e8(0x135),'JDnYa':function(_0x2b582c,_0x39be15){return _0x2b582c===_0x39be15;},'AhQAU':function(_0x7f11a3,_0x53f756){return _0x7f11a3+_0x53f756;}},_0x5cb01a=_0x5a1193['FnDEZ'](getBrowserstackCLI),_0x23f411=_0x5a1193[_0x2ac0e8(0x15a)](nestedKeyValue,_0x5cb01a[_0x2ac0e8(0x173)]()['getConfig'](),[_0x5a1193[_0x2ac0e8(0x165)],_0x5a1193['YHKpB'],_0x5a1193[_0x2ac0e8(0x145)]])||constants['BROWSERSTACK_API_URL'];if(!_0x472e47||_0x5a1193['JDnYa'](_0x472e47,''))return _0x23f411;const _0x3ae2ed=_0x23f411[_0x2ac0e8(0x134)]('/')?_0x23f411:_0x5a1193['AhQAU'](_0x23f411,'/');return new URL(_0x472e47,_0x3ae2ed)[_0x2ac0e8(0x150)]();}static['getAppAutomateSessionNameAPIUrl'](_0x34d2c3){const _0x354eda=a56_0x29e138,_0x18b545={'zlRhZ':function(_0x28bd9a){return _0x28bd9a();},'RMcTW':function(_0x3f0b55,_0x2cc7b7,_0x362953){return _0x3f0b55(_0x2cc7b7,_0x362953);},'ChHUu':'apis','aQqRf':_0x354eda(0x18a),'hBdMj':_0x354eda(0x135),'jyxji':function(_0x56ec32,_0x222d08){return _0x56ec32===_0x222d08;},'gDVbT':function(_0x7233d,_0x389b7b){return _0x7233d+_0x389b7b;}},_0x52ccb1=_0x18b545[_0x354eda(0x158)](getBrowserstackCLI),_0x9c5886=_0x18b545[_0x354eda(0x16a)](nestedKeyValue,_0x52ccb1[_0x354eda(0x173)]()['getConfig'](),[_0x18b545[_0x354eda(0x13d)],_0x18b545['aQqRf'],_0x18b545[_0x354eda(0x17f)]])||constants[_0x354eda(0x183)];if(!_0x34d2c3||_0x18b545[_0x354eda(0x15b)](_0x34d2c3,''))return _0x9c5886;const _0x3aa133=_0x9c5886[_0x354eda(0x134)]('/')?_0x9c5886:_0x18b545[_0x354eda(0x18d)](_0x9c5886,'/');return new URL(_0x34d2c3,_0x3aa133)[_0x354eda(0x150)]();}static['getAutomateSessionsListAPIUrl'](_0x1398de){const _0x5964d0=a56_0x29e138,_0x196932={'POBek':function(_0xf4c38b){return _0xf4c38b();},'bxkKG':function(_0x58aaa7,_0x528901,_0x29acdb){return _0x58aaa7(_0x528901,_0x29acdb);},'brfBp':_0x5964d0(0x17e),'Qmlea':_0x5964d0(0x16d),'mMjHb':_0x5964d0(0x135),'KtSpi':function(_0x36d68e,_0x2fb008){return _0x36d68e===_0x2fb008;},'WIQtw':function(_0x58dfe9,_0x1bb769){return _0x58dfe9+_0x1bb769;}},_0x5edfb3=_0x196932[_0x5964d0(0x16b)](getBrowserstackCLI),_0x499076=_0x196932[_0x5964d0(0x152)](nestedKeyValue,_0x5edfb3[_0x5964d0(0x173)]()['getConfig'](),[_0x196932[_0x5964d0(0x181)],_0x196932[_0x5964d0(0x14f)],_0x196932[_0x5964d0(0x174)]])||constants['BROWSERSTACK_API_URL'];if(!_0x1398de||_0x196932[_0x5964d0(0x13c)](_0x1398de,''))return _0x499076;const _0x599adf=_0x499076[_0x5964d0(0x134)]('/')?_0x499076:_0x196932[_0x5964d0(0x13a)](_0x499076,'/');return new URL(_0x1398de,_0x599adf)[_0x5964d0(0x150)]()['replace'](/^https?:\/\//,'');}static['getAppAutomateSessionsListAPIUrl'](_0x10acf9){const _0x30b36f=a56_0x29e138,_0x475c6a={'rGWXZ':function(_0x1e03e5){return _0x1e03e5();},'atVJe':function(_0x5d6bce,_0x4ada42,_0x3a6698){return _0x5d6bce(_0x4ada42,_0x3a6698);},'fKTjE':_0x30b36f(0x17e),'RCEKO':_0x30b36f(0x18a),'iBeNP':_0x30b36f(0x135),'qWFJK':function(_0x5c1e48,_0x411693){return _0x5c1e48===_0x411693;},'eCoab':function(_0x9bcb3f,_0x1ec692){return _0x9bcb3f+_0x1ec692;}},_0xe12bb6=_0x475c6a[_0x30b36f(0x131)](getBrowserstackCLI),_0x336d56=_0x475c6a['atVJe'](nestedKeyValue,_0xe12bb6[_0x30b36f(0x173)]()[_0x30b36f(0x130)](),[_0x475c6a['fKTjE'],_0x475c6a[_0x30b36f(0x160)],_0x475c6a['iBeNP']])||constants['APP_UPLOAD_URL'];if(!_0x10acf9||_0x475c6a[_0x30b36f(0x144)](_0x10acf9,''))return _0x336d56;const _0x2d7701=_0x336d56[_0x30b36f(0x134)]('/')?_0x336d56:_0x475c6a[_0x30b36f(0x168)](_0x336d56,'/');return new URL(_0x10acf9,_0x2d7701)[_0x30b36f(0x150)]()[_0x30b36f(0x189)](/^https?:\/\//,'');}static[a56_0x29e138(0x190)](_0x4d5353){const _0x308680=a56_0x29e138,_0x1cd92c={'RdOpt':function(_0xba0980){return _0xba0980();},'WguRp':function(_0x14a7b2,_0x2fcec3,_0x41ac38){return _0x14a7b2(_0x2fcec3,_0x41ac38);},'rPHMt':_0x308680(0x17e),'QdvqW':_0x308680(0x17d),'zhiNe':_0x308680(0x147),'frVIA':function(_0x3f33e7,_0x17cfa6){return _0x3f33e7===_0x17cfa6;},'cATIc':function(_0x2daffc,_0x3a4ec2){return _0x2daffc+_0x3a4ec2;}},_0x24ff77=_0x1cd92c[_0x308680(0x13f)](getBrowserstackCLI),_0x1fe462=_0x1cd92c['WguRp'](nestedKeyValue,_0x24ff77['getInstance']()[_0x308680(0x130)](),[_0x1cd92c[_0x308680(0x142)],_0x1cd92c['QdvqW'],_0x1cd92c[_0x308680(0x170)]])||constants[_0x308680(0x176)];if(!_0x4d5353||_0x1cd92c['frVIA'](_0x4d5353,''))return _0x1fe462;const _0x59aef8=_0x1fe462[_0x308680(0x134)]('/')?_0x1fe462:_0x1cd92c['cATIc'](_0x1fe462,'/');return new URL(_0x4d5353,_0x59aef8)[_0x308680(0x150)]();}static[a56_0x29e138(0x18f)](_0x5f5030){const _0x5de12f=a56_0x29e138,_0x40ec1e={'XZbss':function(_0xda3a6b){return _0xda3a6b();},'rJUlN':function(_0x362773,_0x3e9e8b,_0x5bbf50){return _0x362773(_0x3e9e8b,_0x5bbf50);},'OEKub':_0x5de12f(0x17e),'ouPkL':_0x5de12f(0x16d),'irjtc':'cdp','WGcVP':'wss:','lQCMF':function(_0x20c343,_0x3c0d67){return _0x20c343===_0x3c0d67;},'XhFpD':function(_0x5170b2,_0x3f4607){return _0x5170b2+_0x3f4607;},'lnmpS':_0x5de12f(0x166)},_0x4293f1=_0x40ec1e[_0x5de12f(0x132)](getBrowserstackCLI),_0x4a6663=_0x40ec1e[_0x5de12f(0x180)](nestedKeyValue,_0x4293f1[_0x5de12f(0x173)]()[_0x5de12f(0x130)](),[_0x40ec1e['OEKub'],_0x40ec1e[_0x5de12f(0x143)],_0x40ec1e['irjtc']]),_0x1df9a8=(_0x4a6663?_0x4a6663['replace'](/^https:/,_0x40ec1e[_0x5de12f(0x141)]):null)||constants['PLAYWRIGHT_HUB_URL'];let _0x1bdb4e;if(!_0x5f5030||_0x40ec1e[_0x5de12f(0x148)](_0x5f5030,''))_0x1bdb4e=_0x1df9a8;else{const _0x5dc771=_0x1df9a8[_0x5de12f(0x134)]('/')?_0x1df9a8:_0x40ec1e[_0x5de12f(0x133)](_0x1df9a8,'/');_0x1bdb4e=new URL(_0x5f5030,_0x5dc771)[_0x5de12f(0x150)]();}return!_0x1bdb4e[_0x5de12f(0x134)](_0x40ec1e[_0x5de12f(0x140)])&&(_0x1bdb4e+=_0x40ec1e[_0x5de12f(0x140)]),_0x1bdb4e;}static['getPuppeteerHubUrl'](_0x35b6b3){const _0x9481d7=a56_0x29e138,_0x14e2f9={'yNrCS':function(_0x1341ef){return _0x1341ef();},'sEvDj':function(_0x3c6727,_0x2e46dc,_0x210664){return _0x3c6727(_0x2e46dc,_0x210664);},'LOKrW':'apis','BtEaS':_0x9481d7(0x16d),'KWWBw':'cdp','cxqhh':_0x9481d7(0x14b),'Kgryd':function(_0x3fcc9c,_0x3c1b47){return _0x3fcc9c===_0x3c1b47;},'ItmSB':function(_0x4db552,_0x2e5951){return _0x4db552+_0x2e5951;},'FUdar':_0x9481d7(0x155)},_0x303bc1=_0x14e2f9[_0x9481d7(0x161)](getBrowserstackCLI),_0x58d3de=_0x14e2f9[_0x9481d7(0x146)](nestedKeyValue,_0x303bc1['getInstance']()[_0x9481d7(0x130)](),[_0x14e2f9[_0x9481d7(0x14d)],_0x14e2f9[_0x9481d7(0x137)],_0x14e2f9[_0x9481d7(0x17a)]]),_0x278b5f=(_0x58d3de?_0x58d3de[_0x9481d7(0x189)](/^https:/,_0x14e2f9[_0x9481d7(0x14a)]):null)||constants[_0x9481d7(0x15e)];let _0x345e63;if(!_0x35b6b3||_0x14e2f9[_0x9481d7(0x171)](_0x35b6b3,''))_0x345e63=_0x278b5f;else{const _0x21d9b7=_0x278b5f[_0x9481d7(0x134)]('/')?_0x278b5f:_0x14e2f9[_0x9481d7(0x164)](_0x278b5f,'/');_0x345e63=new URL(_0x35b6b3,_0x21d9b7)[_0x9481d7(0x150)]();}return!_0x345e63[_0x9481d7(0x134)](_0x14e2f9['FUdar'])&&(_0x345e63+=_0x14e2f9[_0x9481d7(0x17c)]),_0x345e63;}}module[a56_0x29e138(0x169)]=APIUtilityMethods;function a56_0x2e2f(){const _0x27dea8=['tGwyE','getBStackAPIUrl','cJgOX','KWWBw','../v2/browserstackCLI','FUdar','observability','apis','hBdMj','rJUlN','brfBp','ZWSeV','BROWSERSTACK_API_URL','XSEqe','gMoPw','KWPAv','TaFGy','rRlIk','replace','appAutomate','MtOcQ','47rUgBjD','gDVbT','LcNne','getPlaywrightHubUrl','getAutoCaptureLogsAPIUrl','kPmne','36gEmnXq','DQuKe','getConfig','rGWXZ','XZbss','XhFpD','endsWith','api','vLcGK','BtEaS','AebMO','57rrFkiW','WIQtw','./sharedUtils','KtSpi','ChHUu','1010URYrQg','RdOpt','lnmpS','WGcVP','rPHMt','ouPkL','qWFJK','sOQND','sEvDj','upload','lQCMF','BwUbr','cxqhh','wss:','ueLYt','LOKrW','388640duBnNI','Qmlea','toString','hfXon','bxkKG','swBrt','getAutomateSessionNameAPIUrl','/puppeteer?caps=','18414JhvrIU','EDS_URL','zlRhZ','./constants','mJhxC','jyxji','429018yDXdTe','127197ZZaIPp','PUPPETEER_HUB_URL','8882LpAGGN','RCEKO','yNrCS','DosxD','iFQKA','ItmSB','cBaER','/playwright?caps=','FRnGr','eCoab','exports','RMcTW','POBek','vGQIW','automate','760600zxrWdG','15bVAWIH','zhiNe','Kgryd','getEdsInstrumentationAPIUrl','getInstance','mMjHb','ZczJx','OBSERVABILITY_UPLOAD_URL'];a56_0x2e2f=function(){return _0x27dea8;};return a56_0x2e2f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a57_0x2a5a(_0x1cd53b,_0x3fdca2){const _0x20a10f=a57_0x20a1();return a57_0x2a5a=function(_0x2a5a07,_0x214022){_0x2a5a07=_0x2a5a07-0x125;let _0x22fcb9=_0x20a10f[_0x2a5a07];return _0x22fcb9;},a57_0x2a5a(_0x1cd53b,_0x3fdca2);}const a57_0x1ad7f1=a57_0x2a5a;(function(_0x348516,_0x147862){const _0x1edf4c=a57_0x2a5a,_0x56554b=_0x348516();while(!![]){try{const _0x1b9822=-parseInt(_0x1edf4c(0x13b))/0x1+-parseInt(_0x1edf4c(0x136))/0x2+-parseInt(_0x1edf4c(0x128))/0x3*(parseInt(_0x1edf4c(0x133))/0x4)+parseInt(_0x1edf4c(0x13f))/0x5*(-parseInt(_0x1edf4c(0x166))/0x6)+-parseInt(_0x1edf4c(0x16f))/0x7*(-parseInt(_0x1edf4c(0x17c))/0x8)+parseInt(_0x1edf4c(0x132))/0x9*(parseInt(_0x1edf4c(0x171))/0xa)+parseInt(_0x1edf4c(0x146))/0xb*(parseInt(_0x1edf4c(0x135))/0xc);if(_0x1b9822===_0x147862)break;else _0x56554b['push'](_0x56554b['shift']());}catch(_0xa6b860){_0x56554b['push'](_0x56554b['shift']());}}}(a57_0x20a1,0xc9f74));const logger=require('../../helpers/logger')['winstonLogger'],BrowserstackCLI=require(a57_0x1ad7f1(0x17f)),GrpcClient=require(a57_0x1ad7f1(0x186)),constants=require(a57_0x1ad7f1(0x15b));function a57_0x20a1(){const _0x131b46=['getDocumentationLink','491449dwKnzI','SCIpy','73240MjXcDT','reportDotBrowserStackFolderNotAccessibleIssue','error','Process\x20Interruption','cFmpf','sDprS','getInstance','wZgTM','finalErrorMessage','errorCodes','XqTks','8iDWBOe','errorCodesOccurredInCLI','OJCAQ','../v2/browserstackCLI','reportSSLCertIssue','base64','errorCodesOccurredWhenCLINotRunning','NBNai','getCachedErrorCodes','Connectivity\x20Issue\x20details\x20not\x20found','../v2/grpcClient','Error\x20in\x20getting\x20error\x20details\x20for\x20','browserstack\x20cloud\x20not\x20reachable','getErrorCodes','wkTGp','Error\x20in\x20getting\x20aggregated\x20error\x20codes:','from','hkLrt','logError','checkForErrorsOccuredInCLI','51miPFmf','UBRAC','exports','reportConflictingEnvVarIssue','{SIGNAL}','errorCode','isRunning','KOClX','errorMessage','parse','405aecrdj','164316wJNTUS','CLIENT_TROUBLESHOOTING_HASH','256020uJWGDd','311746rEtMpm','logSituation','.browserstack\x20Folder\x20Not\x20Accessible\x20details\x20not\x20found','reportSessionLinkingIssue','cachedErrorCodes','538217IkXCBV','gvFvI','[ClientTroubleShootingService]\x20','getErrorMessage','105FsfjoO','Session\x20Linking\x20Issue\x20details\x20not\x20found','getErrorDetails','RFjCI','replace','join','JemSF','1199FykqjC','zabQN','getAggregatedErrorCodes','ocbDR','{ENV_VAR}','keys','getErrorCode','SHGVx','skEWU','ulTrm','lmJXY','stringify','getErrorCodesOccurredInCli','reportConnectivityIssue','SSL\x20Certificate\x20Issue\x20details\x20not\x20found','reportProcessInterruptionSituation','push','Conflicting\x20Env\x20Var\x20details\x20not\x20found','DFgSW','Process\x20Interruption\x20details\x20not\x20found:','HQtfn','./constants','rlxQx','getSuccess','WzKQc','size','EBcpR','ZgTwI','reportFinalDetectionState','uhDsI','HGpsk','add','144462kNHBPd','documentationLink','VJbMK','toString','pUeaB','length','UoCUJ','YfUtY'];a57_0x20a1=function(){return _0x131b46;};return a57_0x20a1();}class ClientTroubleShootingService{static [a57_0x1ad7f1(0x13a)]=null;static [a57_0x1ad7f1(0x182)]=new Set();static async['getErrorDetails'](_0x5966f5){const _0x532092=a57_0x1ad7f1,_0x461190={};_0x461190['KOClX']=function(_0x80ac87,_0x3fd13c){return _0x80ac87!==_0x3fd13c;};const _0x2195ef=_0x461190;try{if(BrowserstackCLI[_0x532092(0x177)]()['isRunning']()){const _0x563821=await GrpcClient['getInstance']()['reportClientTroubleshootingError'](_0x5966f5);if(_0x2195ef[_0x532092(0x12f)](_0x563821,null)&&_0x563821[_0x532092(0x15d)]())return{'errorCode':_0x563821[_0x532092(0x14c)](),'errorMessage':_0x563821[_0x532092(0x13e)]()};return{};}return{};}catch(_0x49635e){return this['logError'](_0x532092(0x187)+_0x5966f5+':',_0x49635e),{};}}static async[a57_0x1ad7f1(0x148)](){const _0x191a36=a57_0x1ad7f1,_0x8d4fcc={};_0x8d4fcc['wZgTM']=function(_0x3311a5,_0x440183){return _0x3311a5!==_0x440183;},_0x8d4fcc[_0x191a36(0x15c)]=_0x191a36(0x181),_0x8d4fcc[_0x191a36(0x163)]=_0x191a36(0x18b);const _0x381041=_0x8d4fcc;try{if(BrowserstackCLI[_0x191a36(0x177)]()[_0x191a36(0x12e)]()){const _0x324a3a=await GrpcClient[_0x191a36(0x177)]()['getAggregatedClientTroubleshootingErrors']();if(_0x381041[_0x191a36(0x178)](_0x324a3a,null)&&_0x324a3a['getSuccess']()){const _0x122cbd=Buffer[_0x191a36(0x18c)](_0x324a3a[_0x191a36(0x189)](),_0x381041[_0x191a36(0x15c)])[_0x191a36(0x169)](),_0x2db007=_0x122cbd?JSON[_0x191a36(0x131)](_0x122cbd):[],_0x3ff805=_0x324a3a[_0x191a36(0x16e)](),_0x10f559=_0x324a3a['getFinalErrorMessage'](),_0x3c8ae6=Buffer[_0x191a36(0x18c)](_0x324a3a[_0x191a36(0x152)](),_0x381041['rlxQx'])[_0x191a36(0x169)](),_0x45526b=_0x3c8ae6?JSON[_0x191a36(0x131)](_0x3c8ae6):[],_0x32aab5={};return _0x32aab5[_0x191a36(0x17a)]=_0x2db007,_0x32aab5[_0x191a36(0x167)]=_0x3ff805,_0x32aab5[_0x191a36(0x179)]=_0x10f559,_0x32aab5[_0x191a36(0x17d)]=_0x45526b,_0x32aab5;}const _0x19834b={};return _0x19834b[_0x191a36(0x17a)]=[],_0x19834b[_0x191a36(0x167)]='',_0x19834b['finalErrorMessage']='',_0x19834b['errorCodesOccurredInCLI']=[],_0x19834b;}const _0x20988d={};return _0x20988d[_0x191a36(0x17a)]=[],_0x20988d[_0x191a36(0x167)]='',_0x20988d['finalErrorMessage']='',_0x20988d[_0x191a36(0x17d)]=[],_0x20988d;}catch(_0x246dd4){this[_0x191a36(0x126)](_0x381041[_0x191a36(0x163)],_0x246dd4);const _0x2d663f={};return _0x2d663f[_0x191a36(0x17a)]=[],_0x2d663f[_0x191a36(0x167)]='',_0x2d663f[_0x191a36(0x179)]='',_0x2d663f[_0x191a36(0x17d)]=[],_0x2d663f;}}static['logSituation'](_0x390a8f,_0x2454ad){logger['warn'](_0x390a8f+':\x20'+_0x2454ad);}static['checkForErrorsOccuredInCLI'](_0x33e137){const _0x145606=a57_0x1ad7f1,_0x2d5352={};_0x2d5352[_0x145606(0x16c)]=function(_0x2df6da,_0x60f6c8){return _0x2df6da!=_0x60f6c8;},_0x2d5352[_0x145606(0x17b)]=function(_0x41cfd8,_0x3b25ab){return _0x41cfd8!=_0x3b25ab;},_0x2d5352[_0x145606(0x18a)]=function(_0x56d05f,_0x1240e5){return _0x56d05f>_0x1240e5;},_0x2d5352[_0x145606(0x150)]=function(_0x5089c9,_0x4b752d){return _0x5089c9!=_0x4b752d;},_0x2d5352[_0x145606(0x164)]=function(_0x501a2e,_0x4984e2){return _0x501a2e!=_0x4984e2;};const _0x54ff0b=_0x2d5352,_0x1924f8=[];if(_0x54ff0b[_0x145606(0x16c)](_0x33e137,null)&&_0x54ff0b[_0x145606(0x17b)](_0x33e137[_0x145606(0x17d)],null)&&_0x54ff0b[_0x145606(0x18a)](_0x33e137[_0x145606(0x17d)][_0x145606(0x16b)],0x0))for(const _0x16fc74 of _0x33e137[_0x145606(0x17d)]){_0x54ff0b['lmJXY'](_0x16fc74[_0x145606(0x12d)],null)&&_0x54ff0b['HGpsk'](_0x16fc74[_0x145606(0x130)],null)&&(_0x1924f8[_0x145606(0x156)](_0x16fc74[_0x145606(0x12d)]),this[_0x145606(0x137)](_0x16fc74[_0x145606(0x12d)],_0x16fc74[_0x145606(0x130)]));}return _0x1924f8;}static[a57_0x1ad7f1(0x184)](){const _0x39e94f=a57_0x1ad7f1;return this[_0x39e94f(0x13a)];}static[a57_0x1ad7f1(0x126)](_0x5b238e,_0x3a2741){const _0x50afdc=a57_0x1ad7f1,_0x3f9e07={};_0x3f9e07[_0x50afdc(0x15e)]=function(_0x5d6a31,_0x27a076){return _0x5d6a31===_0x27a076;},_0x3f9e07[_0x50afdc(0x170)]='object';const _0x5a0f0c=_0x3f9e07;if(_0x5a0f0c['WzKQc'](typeof _0x3a2741,_0x5a0f0c[_0x50afdc(0x170)]))try{logger['error'](_0x50afdc(0x13d)+_0x5b238e+'\x20'+JSON[_0x50afdc(0x151)](_0x3a2741));}catch(_0x2a6bd3){logger[_0x50afdc(0x173)](_0x50afdc(0x13d)+_0x5b238e+'\x20'+_0x3a2741);}else logger[_0x50afdc(0x173)](_0x50afdc(0x13d)+_0x5b238e+'\x20'+_0x3a2741);}static async[a57_0x1ad7f1(0x155)](_0x4af251){const _0x310c90=a57_0x1ad7f1,_0x35a07b={};_0x35a07b[_0x310c90(0x15a)]=_0x310c90(0x174),_0x35a07b[_0x310c90(0x158)]=function(_0x15df79,_0x10caf7){return _0x15df79===_0x10caf7;},_0x35a07b[_0x310c90(0x149)]=_0x310c90(0x159),_0x35a07b[_0x310c90(0x125)]=_0x310c90(0x12c);const _0x13ac2=_0x35a07b,_0xa0a372=await this[_0x310c90(0x141)](_0x13ac2[_0x310c90(0x15a)]);if(!_0xa0a372||_0x13ac2[_0x310c90(0x158)](Object[_0x310c90(0x14b)](_0xa0a372)[_0x310c90(0x16b)],0x0)){this['logError'](_0x13ac2[_0x310c90(0x149)],_0xa0a372);return;}this['logSituation'](_0xa0a372[_0x310c90(0x12d)],_0xa0a372['errorMessage']['replace'](_0x13ac2[_0x310c90(0x125)],_0x4af251));}static async[a57_0x1ad7f1(0x139)](){const _0x5a77bc=a57_0x1ad7f1,_0x2b807f={};_0x2b807f[_0x5a77bc(0x17e)]='Session\x20Linking\x20Issue',_0x2b807f['QMAjx']=function(_0x3b45e0,_0x59c32e){return _0x3b45e0===_0x59c32e;},_0x2b807f[_0x5a77bc(0x14d)]=_0x5a77bc(0x140);const _0x45655a=_0x2b807f,_0x4ff827=await this[_0x5a77bc(0x141)](_0x45655a[_0x5a77bc(0x17e)]);if(!_0x4ff827||_0x45655a['QMAjx'](Object[_0x5a77bc(0x14b)](_0x4ff827)[_0x5a77bc(0x16b)],0x0)){this[_0x5a77bc(0x126)](_0x45655a[_0x5a77bc(0x14d)],_0x4ff827);return;}this['logSituation'](_0x4ff827[_0x5a77bc(0x12d)],_0x4ff827[_0x5a77bc(0x130)]);}static async[a57_0x1ad7f1(0x153)](){const _0x19884c=a57_0x1ad7f1,_0x30f174={};_0x30f174[_0x19884c(0x14e)]=_0x19884c(0x188),_0x30f174['ZgTwI']=function(_0x315fb7,_0x502f22){return _0x315fb7===_0x502f22;},_0x30f174[_0x19884c(0x183)]=_0x19884c(0x185);const _0x505240=_0x30f174,_0x3a67b6=await this[_0x19884c(0x141)](_0x505240['skEWU']);if(!_0x3a67b6||_0x505240[_0x19884c(0x161)](Object[_0x19884c(0x14b)](_0x3a67b6)[_0x19884c(0x16b)],0x0)){this[_0x19884c(0x126)](_0x505240[_0x19884c(0x183)],_0x3a67b6);return;}this[_0x19884c(0x137)](_0x3a67b6[_0x19884c(0x12d)],_0x3a67b6['errorMessage']);}static async[a57_0x1ad7f1(0x180)](){const _0x309764=a57_0x1ad7f1,_0x48b02d={};_0x48b02d['RFjCI']='ssl\x20cert\x20issue',_0x48b02d['eeLNC']=function(_0x2b42b4,_0xc42234){return _0x2b42b4===_0xc42234;},_0x48b02d[_0x309764(0x13c)]=_0x309764(0x154);const _0x4a4f26=_0x48b02d,_0x213c87=await this[_0x309764(0x141)](_0x4a4f26[_0x309764(0x142)]);if(!_0x213c87||_0x4a4f26['eeLNC'](Object[_0x309764(0x14b)](_0x213c87)[_0x309764(0x16b)],0x0)){this[_0x309764(0x126)](_0x4a4f26['gvFvI'],_0x213c87);return;}this[_0x309764(0x137)](_0x213c87[_0x309764(0x12d)],_0x213c87['errorMessage']);}static[a57_0x1ad7f1(0x172)](){const _0x85bfd7=a57_0x1ad7f1,_0x59b981={};_0x59b981['EBcpR']='.browserstack\x20folder\x20not\x20accessible',_0x59b981[_0x85bfd7(0x16d)]=function(_0x44ff3b,_0x1cef6d){return _0x44ff3b===_0x1cef6d;},_0x59b981[_0x85bfd7(0x175)]=_0x85bfd7(0x138);const _0x4e28c5=_0x59b981,_0x9728c9=constants[_0x85bfd7(0x134)][_0x4e28c5[_0x85bfd7(0x160)]];if(!_0x9728c9||_0x4e28c5[_0x85bfd7(0x16d)](Object['keys'](_0x9728c9)['length'],0x0)){this[_0x85bfd7(0x126)](_0x4e28c5[_0x85bfd7(0x175)],_0x9728c9);return;}this['errorCodesOccurredWhenCLINotRunning'][_0x85bfd7(0x165)](_0x9728c9[0x0]),this[_0x85bfd7(0x137)](_0x9728c9[0x0],_0x9728c9[0x1]);}static async[a57_0x1ad7f1(0x12b)](_0x513cb0){const _0x3d6998=a57_0x1ad7f1,_0x4ded71={};_0x4ded71[_0x3d6998(0x176)]='conflicting\x20env\x20var\x20detected',_0x4ded71[_0x3d6998(0x129)]=function(_0x191c73,_0x5b08e0){return _0x191c73===_0x5b08e0;},_0x4ded71[_0x3d6998(0x145)]=_0x3d6998(0x157),_0x4ded71[_0x3d6998(0x168)]=_0x3d6998(0x14a);const _0x422058=_0x4ded71,_0x941e28=await this[_0x3d6998(0x141)](_0x422058[_0x3d6998(0x176)]);if(!_0x941e28||_0x422058[_0x3d6998(0x129)](Object[_0x3d6998(0x14b)](_0x941e28)[_0x3d6998(0x16b)],0x0)){this[_0x3d6998(0x126)](_0x422058[_0x3d6998(0x145)],_0x941e28);return;}const _0x33f7bc=_0x941e28['errorMessage'][_0x3d6998(0x143)](_0x422058['VJbMK'],_0x513cb0);this[_0x3d6998(0x137)](_0x941e28[_0x3d6998(0x12d)],_0x33f7bc);}static async[a57_0x1ad7f1(0x162)](){const _0x2fb8cd=a57_0x1ad7f1,_0x3a8881={};_0x3a8881[_0x2fb8cd(0x16a)]=function(_0x3c38bf,_0x90e7be){return _0x3c38bf>_0x90e7be;},_0x3a8881[_0x2fb8cd(0x14f)]='{ERROR_CODES}',_0x3a8881[_0x2fb8cd(0x147)]='{CLIENT_TROUBLESHOOTING_DOCUMENTATION}';const _0x218397=_0x3a8881,_0x139336=await this['getAggregatedErrorCodes'](),_0xfccca0=this[_0x2fb8cd(0x127)](_0x139336),_0x5a562b=Array['isArray'](_0x139336[_0x2fb8cd(0x17a)])?_0x139336['errorCodes']:[],_0x500bec=_0x218397[_0x2fb8cd(0x16a)](this['errorCodesOccurredWhenCLINotRunning'][_0x2fb8cd(0x15f)],0x0)?Array[_0x2fb8cd(0x18c)](this['errorCodesOccurredWhenCLINotRunning']):[],_0x551bdb=new Set([..._0x5a562b,..._0xfccca0,..._0x500bec]),_0x26a4f7=Array['from'](_0x551bdb);if(_0x218397['pUeaB'](_0x26a4f7[_0x2fb8cd(0x16b)],0x0)){const _0xe2ac13=_0x139336[_0x2fb8cd(0x179)][_0x2fb8cd(0x143)](_0x218397[_0x2fb8cd(0x14f)],_0x26a4f7[_0x2fb8cd(0x144)](',\x20'))[_0x2fb8cd(0x143)](_0x218397[_0x2fb8cd(0x147)],_0x139336[_0x2fb8cd(0x167)]);logger['warn'](_0xe2ac13),this[_0x2fb8cd(0x13a)]=_0x26a4f7;}}}module[a57_0x1ad7f1(0x12a)]=ClientTroubleShootingService;
|
|
1
|
+
const a57_0x15f3aa=a57_0x1629;(function(_0xab169,_0x19c593){const _0x5d1733=a57_0x1629,_0x1103e7=_0xab169();while(!![]){try{const _0x21fac6=-parseInt(_0x5d1733(0x198))/0x1*(-parseInt(_0x5d1733(0x18e))/0x2)+parseInt(_0x5d1733(0x17a))/0x3+-parseInt(_0x5d1733(0x165))/0x4+-parseInt(_0x5d1733(0x15a))/0x5*(-parseInt(_0x5d1733(0x181))/0x6)+-parseInt(_0x5d1733(0x16c))/0x7*(parseInt(_0x5d1733(0x15d))/0x8)+-parseInt(_0x5d1733(0x180))/0x9*(-parseInt(_0x5d1733(0x14c))/0xa)+-parseInt(_0x5d1733(0x19d))/0xb;if(_0x21fac6===_0x19c593)break;else _0x1103e7['push'](_0x1103e7['shift']());}catch(_0x5ca45e){_0x1103e7['push'](_0x1103e7['shift']());}}}(a57_0x34bd,0xd5c87));function a57_0x34bd(){const _0x3f675d=['object','Error\x20in\x20getting\x20error\x20details\x20for\x20','9sIGJEO','45558HejFLI','reportSessionLinkingIssue','getErrorDetails','[ClientTroubleShootingService]\x20','BMPmW','Session\x20Linking\x20Issue','from','CLIENT_TROUBLESHOOTING_HASH','join','Ahbee','getDocumentationLink','replace','reportClientTroubleshootingError','3028374TgCJux','finalErrorMessage','reportConnectivityIssue','stringify','errorCodes','XMTAr','getErrorCode','vBMAD','getAggregatedErrorCodes','errorCode','1ZkPrwk','WCpOc','getErrorCodesOccurredInCli','warn','Process\x20Interruption\x20details\x20not\x20found:','11718410zhGgKY','VVZLP','push','sSwfs','guWFx','add','WqatA','xYAlk','mtHOr','errorCodesOccurredWhenCLINotRunning','yPhtZ','errorMessage','conflicting\x20env\x20var\x20detected','../../helpers/logger','lvTrA','TmOMe','documentationLink','isRunning','Conflicting\x20Env\x20Var\x20details\x20not\x20found','SzqdK','ssl\x20cert\x20issue','error','peYCi','mBfGa','getSuccess','checkForErrorsOccuredInCLI','DMQkX','9174610uAgUQH','toString','exports','size','getCachedErrorCodes','FuDpN','keys','BdFvc','{CLIENT_TROUBLESHOOTING_DOCUMENTATION}','length','dscPF','parse','browserstack\x20cloud\x20not\x20reachable','logError','415tmPhWZ','{ENV_VAR}','bgVtc','8xJcGoW','reportProcessInterruptionSituation','{SIGNAL}','Error\x20in\x20getting\x20aggregated\x20error\x20codes:','base64','getErrorMessage','../v2/browserstackCLI','getInstance','6507264DnZmvR','daYRH','winstonLogger','cachedErrorCodes','Connectivity\x20Issue\x20details\x20not\x20found','vWqJZ','okpSi','7070021Nsdbno','QtjKw','errorCodesOccurredInCLI','ZXbOr','SSL\x20Certificate\x20Issue\x20details\x20not\x20found','yXHuW','reportDotBrowserStackFolderNotAccessibleIssue','QTCaY','reportFinalDetectionState','logSituation','../v2/grpcClient','reportSSLCertIssue','{ERROR_CODES}','.browserstack\x20Folder\x20Not\x20Accessible\x20details\x20not\x20found','4547751wwvmqy','mcmRt','./constants','rjflQ'];a57_0x34bd=function(){return _0x3f675d;};return a57_0x34bd();}const logger=require(a57_0x15f3aa(0x13e))[a57_0x15f3aa(0x167)],BrowserstackCLI=require(a57_0x15f3aa(0x163)),GrpcClient=require(a57_0x15f3aa(0x176)),constants=require(a57_0x15f3aa(0x17c));class ClientTroubleShootingService{static ['cachedErrorCodes']=null;static [a57_0x15f3aa(0x13a)]=new Set();static async[a57_0x15f3aa(0x183)](_0x13771a){const _0x191630=a57_0x15f3aa,_0xec252d={};_0xec252d[_0x191630(0x19e)]=function(_0x46487a,_0x496ae8){return _0x46487a!==_0x496ae8;};const _0x4944d7=_0xec252d;try{if(BrowserstackCLI[_0x191630(0x164)]()['isRunning']()){const _0x442567=await GrpcClient[_0x191630(0x164)]()[_0x191630(0x18d)](_0x13771a);if(_0x4944d7[_0x191630(0x19e)](_0x442567,null)&&_0x442567[_0x191630(0x149)]())return{'errorCode':_0x442567[_0x191630(0x194)](),'errorMessage':_0x442567[_0x191630(0x162)]()};return{};}return{};}catch(_0x92992){return this[_0x191630(0x159)](_0x191630(0x17f)+_0x13771a+':',_0x92992),{};}}static async[a57_0x15f3aa(0x196)](){const _0x169d80=a57_0x15f3aa,_0x558da4={};_0x558da4['beByO']=function(_0x4d577a,_0x1d260d){return _0x4d577a!==_0x1d260d;},_0x558da4[_0x169d80(0x173)]=_0x169d80(0x161),_0x558da4[_0x169d80(0x151)]=_0x169d80(0x160);const _0x3ef119=_0x558da4;try{if(BrowserstackCLI[_0x169d80(0x164)]()[_0x169d80(0x142)]()){const _0x39e941=await GrpcClient[_0x169d80(0x164)]()['getAggregatedClientTroubleshootingErrors']();if(_0x3ef119['beByO'](_0x39e941,null)&&_0x39e941[_0x169d80(0x149)]()){const _0x4aba91=Buffer[_0x169d80(0x187)](_0x39e941['getErrorCodes'](),_0x3ef119[_0x169d80(0x173)])[_0x169d80(0x14d)](),_0x5e5083=_0x4aba91?JSON[_0x169d80(0x157)](_0x4aba91):[],_0x5e9243=_0x39e941[_0x169d80(0x18b)](),_0x2cc8b0=_0x39e941['getFinalErrorMessage'](),_0x1baf05=Buffer[_0x169d80(0x187)](_0x39e941[_0x169d80(0x19a)](),_0x3ef119[_0x169d80(0x173)])['toString'](),_0x4d0ac0=_0x1baf05?JSON['parse'](_0x1baf05):[],_0x1b5692={};return _0x1b5692[_0x169d80(0x192)]=_0x5e5083,_0x1b5692[_0x169d80(0x141)]=_0x5e9243,_0x1b5692[_0x169d80(0x18f)]=_0x2cc8b0,_0x1b5692['errorCodesOccurredInCLI']=_0x4d0ac0,_0x1b5692;}const _0x19c6d6={};return _0x19c6d6[_0x169d80(0x192)]=[],_0x19c6d6[_0x169d80(0x141)]='',_0x19c6d6[_0x169d80(0x18f)]='',_0x19c6d6[_0x169d80(0x16e)]=[],_0x19c6d6;}const _0xa6188c={};return _0xa6188c[_0x169d80(0x192)]=[],_0xa6188c[_0x169d80(0x141)]='',_0xa6188c[_0x169d80(0x18f)]='',_0xa6188c[_0x169d80(0x16e)]=[],_0xa6188c;}catch(_0x3dd79d){this['logError'](_0x3ef119['FuDpN'],_0x3dd79d);const _0x21aa21={};return _0x21aa21[_0x169d80(0x192)]=[],_0x21aa21[_0x169d80(0x141)]='',_0x21aa21['finalErrorMessage']='',_0x21aa21['errorCodesOccurredInCLI']=[],_0x21aa21;}}static[a57_0x15f3aa(0x175)](_0x45fdd6,_0x21afbd){const _0x47c8a5=a57_0x15f3aa;logger[_0x47c8a5(0x19b)](_0x45fdd6+':\x20'+_0x21afbd);}static[a57_0x15f3aa(0x14a)](_0x141c17){const _0x267006=a57_0x15f3aa,_0x5b0b2b={};_0x5b0b2b['xYAlk']=function(_0x3cc5e4,_0x4a3609){return _0x3cc5e4!=_0x4a3609;},_0x5b0b2b[_0x267006(0x13f)]=function(_0x3aeead,_0x4a0268){return _0x3aeead!=_0x4a0268;},_0x5b0b2b[_0x267006(0x171)]=function(_0x4a5933,_0x3dfede){return _0x4a5933>_0x3dfede;};const _0x5cf6ea=_0x5b0b2b,_0xc1d95=[];if(_0x5cf6ea[_0x267006(0x138)](_0x141c17,null)&&_0x5cf6ea[_0x267006(0x13f)](_0x141c17[_0x267006(0x16e)],null)&&_0x5cf6ea[_0x267006(0x171)](_0x141c17['errorCodesOccurredInCLI']['length'],0x0))for(const _0x167c32 of _0x141c17[_0x267006(0x16e)]){_0x5cf6ea[_0x267006(0x13f)](_0x167c32['errorCode'],null)&&_0x5cf6ea[_0x267006(0x138)](_0x167c32[_0x267006(0x13c)],null)&&(_0xc1d95[_0x267006(0x19f)](_0x167c32['errorCode']),this[_0x267006(0x175)](_0x167c32[_0x267006(0x197)],_0x167c32[_0x267006(0x13c)]));}return _0xc1d95;}static[a57_0x15f3aa(0x150)](){return this['cachedErrorCodes'];}static[a57_0x15f3aa(0x159)](_0x3491a6,_0x220a6f){const _0x46495a=a57_0x15f3aa,_0x585b0f={};_0x585b0f[_0x46495a(0x199)]=function(_0x2a9616,_0x3c85cf){return _0x2a9616===_0x3c85cf;},_0x585b0f[_0x46495a(0x14b)]=_0x46495a(0x17e);const _0x278ba9=_0x585b0f;if(_0x278ba9[_0x46495a(0x199)](typeof _0x220a6f,_0x278ba9['DMQkX']))try{logger['error']('[ClientTroubleShootingService]\x20'+_0x3491a6+'\x20'+JSON[_0x46495a(0x191)](_0x220a6f));}catch(_0x15e683){logger[_0x46495a(0x146)](_0x46495a(0x184)+_0x3491a6+'\x20'+_0x220a6f);}else logger['error'](_0x46495a(0x184)+_0x3491a6+'\x20'+_0x220a6f);}static async[a57_0x15f3aa(0x15e)](_0x5c1bf1){const _0x4a975d=a57_0x15f3aa,_0x7456ac={};_0x7456ac[_0x4a975d(0x144)]='Process\x20Interruption',_0x7456ac[_0x4a975d(0x185)]=function(_0x5ed256,_0x1b1dfd){return _0x5ed256===_0x1b1dfd;},_0x7456ac[_0x4a975d(0x140)]=_0x4a975d(0x19c),_0x7456ac['bgVtc']=_0x4a975d(0x15f);const _0x3a170e=_0x7456ac,_0x5c397c=await this[_0x4a975d(0x183)](_0x3a170e['SzqdK']);if(!_0x5c397c||_0x3a170e[_0x4a975d(0x185)](Object[_0x4a975d(0x152)](_0x5c397c)['length'],0x0)){this['logError'](_0x3a170e[_0x4a975d(0x140)],_0x5c397c);return;}this['logSituation'](_0x5c397c[_0x4a975d(0x197)],_0x5c397c['errorMessage']['replace'](_0x3a170e[_0x4a975d(0x15c)],_0x5c1bf1));}static async[a57_0x15f3aa(0x182)](){const _0x5b3f5e=a57_0x15f3aa,_0x5ca0b4={};_0x5ca0b4[_0x5b3f5e(0x1a0)]=_0x5b3f5e(0x186),_0x5ca0b4[_0x5b3f5e(0x137)]=function(_0x3ba815,_0x5dcede){return _0x3ba815===_0x5dcede;},_0x5ca0b4[_0x5b3f5e(0x153)]='Session\x20Linking\x20Issue\x20details\x20not\x20found';const _0x56bf29=_0x5ca0b4,_0xe8b6d7=await this['getErrorDetails'](_0x56bf29['sSwfs']);if(!_0xe8b6d7||_0x56bf29[_0x5b3f5e(0x137)](Object[_0x5b3f5e(0x152)](_0xe8b6d7)[_0x5b3f5e(0x155)],0x0)){this['logError'](_0x56bf29[_0x5b3f5e(0x153)],_0xe8b6d7);return;}this['logSituation'](_0xe8b6d7[_0x5b3f5e(0x197)],_0xe8b6d7[_0x5b3f5e(0x13c)]);}static async[a57_0x15f3aa(0x190)](){const _0x2e0d8e=a57_0x15f3aa,_0x321792={};_0x321792[_0x2e0d8e(0x193)]=_0x2e0d8e(0x158),_0x321792[_0x2e0d8e(0x13b)]=function(_0x51b421,_0x8e4462){return _0x51b421===_0x8e4462;},_0x321792[_0x2e0d8e(0x147)]=_0x2e0d8e(0x169);const _0x32b2be=_0x321792,_0x17f213=await this['getErrorDetails'](_0x32b2be[_0x2e0d8e(0x193)]);if(!_0x17f213||_0x32b2be[_0x2e0d8e(0x13b)](Object[_0x2e0d8e(0x152)](_0x17f213)[_0x2e0d8e(0x155)],0x0)){this[_0x2e0d8e(0x159)](_0x32b2be[_0x2e0d8e(0x147)],_0x17f213);return;}this['logSituation'](_0x17f213[_0x2e0d8e(0x197)],_0x17f213[_0x2e0d8e(0x13c)]);}static async[a57_0x15f3aa(0x177)](){const _0x587004=a57_0x15f3aa,_0x342609={};_0x342609[_0x587004(0x148)]=_0x587004(0x145),_0x342609['kLnJV']=function(_0x55f4b1,_0x33512b){return _0x55f4b1===_0x33512b;},_0x342609[_0x587004(0x139)]=_0x587004(0x170);const _0x17b571=_0x342609,_0x565f4c=await this[_0x587004(0x183)](_0x17b571[_0x587004(0x148)]);if(!_0x565f4c||_0x17b571['kLnJV'](Object[_0x587004(0x152)](_0x565f4c)['length'],0x0)){this[_0x587004(0x159)](_0x17b571[_0x587004(0x139)],_0x565f4c);return;}this['logSituation'](_0x565f4c[_0x587004(0x197)],_0x565f4c['errorMessage']);}static[a57_0x15f3aa(0x172)](){const _0x50f256=a57_0x15f3aa,_0x25c17e={};_0x25c17e[_0x50f256(0x135)]='.browserstack\x20folder\x20not\x20accessible',_0x25c17e[_0x50f256(0x16f)]=function(_0x1aeadc,_0x1dcea2){return _0x1aeadc===_0x1dcea2;},_0x25c17e['dscPF']=_0x50f256(0x179);const _0x327923=_0x25c17e,_0x1db4bf=constants[_0x50f256(0x188)][_0x327923[_0x50f256(0x135)]];if(!_0x1db4bf||_0x327923['ZXbOr'](Object[_0x50f256(0x152)](_0x1db4bf)[_0x50f256(0x155)],0x0)){this[_0x50f256(0x159)](_0x327923[_0x50f256(0x156)],_0x1db4bf);return;}this[_0x50f256(0x13a)][_0x50f256(0x136)](_0x1db4bf[0x0]),this['logSituation'](_0x1db4bf[0x0],_0x1db4bf[0x1]);}static async['reportConflictingEnvVarIssue'](_0x293d02){const _0x15b195=a57_0x15f3aa,_0x2d358b={};_0x2d358b['daYRH']=_0x15b195(0x13d),_0x2d358b[_0x15b195(0x195)]=function(_0x3c20fa,_0x337a29){return _0x3c20fa===_0x337a29;},_0x2d358b['okpSi']=_0x15b195(0x143),_0x2d358b[_0x15b195(0x16a)]=_0x15b195(0x15b);const _0x3c5b42=_0x2d358b,_0x4403bd=await this[_0x15b195(0x183)](_0x3c5b42[_0x15b195(0x166)]);if(!_0x4403bd||_0x3c5b42['vBMAD'](Object[_0x15b195(0x152)](_0x4403bd)['length'],0x0)){this[_0x15b195(0x159)](_0x3c5b42[_0x15b195(0x16b)],_0x4403bd);return;}const _0x1c2f9a=_0x4403bd[_0x15b195(0x13c)][_0x15b195(0x18c)](_0x3c5b42['vWqJZ'],_0x293d02);this['logSituation'](_0x4403bd[_0x15b195(0x197)],_0x1c2f9a);}static async[a57_0x15f3aa(0x174)](){const _0x18bdc6=a57_0x15f3aa,_0xb477f6={};_0xb477f6[_0x18bdc6(0x17b)]=function(_0x354425,_0x4c1c40){return _0x354425>_0x4c1c40;},_0xb477f6[_0x18bdc6(0x16d)]=function(_0x59f547,_0x1e4cc6){return _0x59f547>_0x1e4cc6;},_0xb477f6[_0x18bdc6(0x17d)]=_0x18bdc6(0x178),_0xb477f6[_0x18bdc6(0x18a)]=_0x18bdc6(0x154);const _0x166e5a=_0xb477f6,_0x3cf6dc=await this['getAggregatedErrorCodes'](),_0x5795c6=this['checkForErrorsOccuredInCLI'](_0x3cf6dc),_0x454e9b=Array['isArray'](_0x3cf6dc[_0x18bdc6(0x192)])?_0x3cf6dc['errorCodes']:[],_0x305012=_0x166e5a[_0x18bdc6(0x17b)](this[_0x18bdc6(0x13a)][_0x18bdc6(0x14f)],0x0)?Array[_0x18bdc6(0x187)](this[_0x18bdc6(0x13a)]):[],_0x2f377f=new Set([..._0x454e9b,..._0x5795c6,..._0x305012]),_0x566858=Array[_0x18bdc6(0x187)](_0x2f377f);if(_0x166e5a[_0x18bdc6(0x16d)](_0x566858['length'],0x0)){const _0x34eab8=_0x3cf6dc['finalErrorMessage']['replace'](_0x166e5a[_0x18bdc6(0x17d)],_0x566858[_0x18bdc6(0x189)](',\x20'))[_0x18bdc6(0x18c)](_0x166e5a[_0x18bdc6(0x18a)],_0x3cf6dc[_0x18bdc6(0x141)]);logger['warn'](_0x34eab8),this[_0x18bdc6(0x168)]=_0x566858;}}}function a57_0x1629(_0x1a5c21,_0x23a4bd){const _0x34bdaf=a57_0x34bd();return a57_0x1629=function(_0x162903,_0x31fd74){_0x162903=_0x162903-0x135;let _0x442cd3=_0x34bdaf[_0x162903];return _0x442cd3;},a57_0x1629(_0x1a5c21,_0x23a4bd);}module[a57_0x15f3aa(0x14e)]=ClientTroubleShootingService;
|