browserstack-node-sdk 1.54.0 → 1.54.1
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 +7 -7
- 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
|
-
function
|
|
1
|
+
const a49_0x179144=a49_0x272b;function a49_0x272b(_0x5c5d7b,_0x2a592d){const _0x2d0162=a49_0x2d01();return a49_0x272b=function(_0x272bea,_0x3aa125){_0x272bea=_0x272bea-0x18d;let _0x513520=_0x2d0162[_0x272bea];return _0x513520;},a49_0x272b(_0x5c5d7b,_0x2a592d);}(function(_0x7b6179,_0x12272b){const _0x486e3e=a49_0x272b,_0x4213a2=_0x7b6179();while(!![]){try{const _0x3d24c7=parseInt(_0x486e3e(0x1b3))/0x1+parseInt(_0x486e3e(0x199))/0x2*(-parseInt(_0x486e3e(0x18f))/0x3)+parseInt(_0x486e3e(0x1c8))/0x4+-parseInt(_0x486e3e(0x1a3))/0x5*(-parseInt(_0x486e3e(0x1c5))/0x6)+parseInt(_0x486e3e(0x1cf))/0x7+-parseInt(_0x486e3e(0x1cc))/0x8*(parseInt(_0x486e3e(0x1e0))/0x9)+-parseInt(_0x486e3e(0x1e2))/0xa*(-parseInt(_0x486e3e(0x1d9))/0xb);if(_0x3d24c7===_0x12272b)break;else _0x4213a2['push'](_0x4213a2['shift']());}catch(_0x39f161){_0x4213a2['push'](_0x4213a2['shift']());}}}(a49_0x2d01,0x838b8));const path=require(a49_0x179144(0x1e7)),url=require('url'),util=require(a49_0x179144(0x197)),{nestedKeyValue,isFalse}=require(a49_0x179144(0x19b)),{debug,getPlatformDetails}=require(a49_0x179144(0x1ee)),logger=require('../../helpers/logger')[a49_0x179144(0x1ef)],constants=require(a49_0x179144(0x1a9)),BrowserstackCLI=require(a49_0x179144(0x192)),AutomationFrameworkState=require(a49_0x179144(0x1a4)),HookState=require(a49_0x179144(0x1e1)),getBrowserFromWSEndpoint=_0x2070af=>{const _0x56cdf5=a49_0x179144,_0x668dfb={'baDYt':_0x56cdf5(0x195),'sHEJM':function(_0x184e20,_0x3c8243){return _0x184e20(_0x3c8243);}};try{const _0x310fbc=url[_0x56cdf5(0x1bf)](_0x2070af),_0xf74633=new URLSearchParams(_0x310fbc[_0x56cdf5(0x19d)]),_0x2ff80d=Object[_0x56cdf5(0x1f0)](_0xf74633[_0x56cdf5(0x1de)]()),_0x291771=JSON['parse'](_0x2ff80d[_0x56cdf5(0x1bb)]);if(_0x291771&&(_0x291771[_0x56cdf5(0x19a)]||_0x291771[_0x56cdf5(0x1d3)]))return _0x291771['browser']||_0x291771[_0x56cdf5(0x1d3)];return _0x668dfb[_0x56cdf5(0x1c1)];}catch(_0x5e8cf6){_0x668dfb[_0x56cdf5(0x19f)](debug,_0x56cdf5(0x1c4)+_0x5e8cf6[_0x56cdf5(0x1ad)]());}},getCloudProviderFromWsEndpoint=_0x1d23f3=>{const _0xc8ed70=a49_0x179144,_0x33772d={};_0x33772d[_0xc8ed70(0x1c0)]=_0xc8ed70(0x1b1),_0x33772d[_0xc8ed70(0x1ca)]=_0xc8ed70(0x1eb);const _0x300955=_0x33772d;if(_0x1d23f3[_0xc8ed70(0x1c9)](constants[_0xc8ed70(0x1ed)])||_0x1d23f3[_0xc8ed70(0x1c9)](constants['BSTACK_ATS_URL']))return _0x300955['hxWIF'];return _0x300955[_0xc8ed70(0x1ca)];},a49_0x5dfc0f={};a49_0x5dfc0f[a49_0x179144(0x1dd)]=undefined,a49_0x5dfc0f[a49_0x179144(0x1e5)]=undefined,a49_0x5dfc0f[a49_0x179144(0x19a)]=undefined,a49_0x5dfc0f[a49_0x179144(0x1b2)]=undefined,a49_0x5dfc0f[a49_0x179144(0x1d8)]=undefined,a49_0x5dfc0f[a49_0x179144(0x1b6)]=undefined,a49_0x5dfc0f[a49_0x179144(0x1b7)]=undefined,a49_0x5dfc0f[a49_0x179144(0x1db)]={};function a49_0x2d01(){const _0x955226=['Error\x20in\x20patchConnection:\x20','576RFiHRd','exports','hklCM','1867243OwwmZj','platformName','gGQLJ','platformDetails','browserName','PKxcv','getDetails','LiWJW','EMyhE','platform','2123vfycgn','message','capabilities','trackEvent','cloudProvider','entries','POST','77229kvaCVn','../v2/state/hookState.js','46510zNVdiq','apply','local_grid','bsSessionId','gEqtM','path','string','platformVersion','params','unknown_grid','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','BSTACK_URL','../../helpers/test-observability/utils','winstonLogger','fromEntries','bStackParams','currentSessionDetails','getInstance','78FMPvAu','bsParams','sessionError','../v2/browserstackCLI','Error\x20extracting\x20bsParams\x20from\x20CDP\x20message:\x20','ebiEQ','chrome','hzdSc','util','patchConnection','52006qyYhJO','browser','../../helpers/helper','lOLLy','query','connection','sHEJM','TijQY','UbnuI','setupBrowserDetails','5kgakUj','../v2/state/automationFrameworkState.js','PLAYWRIGHT_DISPATCH','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','Error\x20in\x20setupBrowserDetails:\x20','sessionId','../utils/constants','ATS_WSS_URL_REGEX','_bstackPatched','zlpsp','toString','onmessage','HzlwY','getAutomationFramework','browserstack','browser_version','322698fgZVZt','automate','qFdEC','platform_version','product','isRunning','YNVdm','wjzjy','caps','result','version','turboscale','parse','hxWIF','baDYt','DYQQJ','stringify','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','964188rOwfDo','Setting\x20session\x20id\x20received\x20from\x20BS\x20','PQrzu','739720ZMYwKl','includes','DKpmi'];a49_0x2d01=function(){return _0x955226;};return a49_0x2d01();}class PuppeteerSessionDetails{static ['currentSessionDetails']=a49_0x5dfc0f;constructor(){const _0x5bb36c=a49_0x179144,_0x102c79={};_0x102c79[_0x5bb36c(0x1af)]=_0x5bb36c(0x1ec);const _0x1e9a2d=_0x102c79;throw new Error(_0x1e9a2d[_0x5bb36c(0x1af)]);}static [a49_0x179144(0x191)]=null;static async[a49_0x179144(0x1a2)](_0x5e4d3e,_0x2c9127){const _0x6afa05=a49_0x179144,_0xf1a691={'PKxcv':_0x6afa05(0x195),'lOLLy':function(_0x5ea874,_0x4a8f50){return _0x5ea874===_0x4a8f50;},'hzdSc':'function','gEqtM':_0x6afa05(0x1e4),'zlpsp':function(_0x5e4249,_0xf9bfce){return _0x5e4249(_0xf9bfce);},'DYQQJ':function(_0x1df07a,_0x3eceb3){return _0x1df07a===_0x3eceb3;},'LiWJW':_0x6afa05(0x1b1),'UbnuI':_0x6afa05(0x1be),'TijQY':_0x6afa05(0x1b4),'qFdEC':function(_0x29a0d3,_0x34a6a6){return _0x29a0d3(_0x34a6a6);},'YNVdm':function(_0x4bcd31){return _0x4bcd31();},'PQrzu':function(_0x18750d,_0x240ef8){return _0x18750d(_0x240ef8);}};try{let _0x1c7f5a=_0xf1a691[_0x6afa05(0x1d4)],_0x54eaec=null;_0x5e4d3e&&_0xf1a691[_0x6afa05(0x19c)](typeof _0x5e4d3e[_0x6afa05(0x1bd)],_0xf1a691[_0x6afa05(0x196)])&&(_0x54eaec=await _0x5e4d3e[_0x6afa05(0x1bd)]());let _0x572ba3=null,_0x4c04c4=null,_0x19c12e=null,_0x5937ee=_0xf1a691[_0x6afa05(0x1e6)];if(_0x2c9127){_0x5937ee=_0xf1a691[_0x6afa05(0x1ac)](getCloudProviderFromWsEndpoint,_0x2c9127);if(_0xf1a691[_0x6afa05(0x1c2)](_0x5937ee,_0xf1a691[_0x6afa05(0x1d6)]))_0x19c12e=constants['ATS_WSS_URL_REGEX']?constants[_0x6afa05(0x1aa)]['test'](_0x2c9127)?_0xf1a691[_0x6afa05(0x1a1)]:_0xf1a691[_0x6afa05(0x1a0)]:_0xf1a691[_0x6afa05(0x1a0)],_0x1c7f5a=_0xf1a691[_0x6afa05(0x1b5)](getBrowserFromWSEndpoint,_0x2c9127)||_0x1c7f5a,_0x572ba3=this[_0x6afa05(0x18d)][_0x6afa05(0x1d8)],_0x4c04c4=this[_0x6afa05(0x18d)]['platform_version'];else{const _0xd0ff34=await _0xf1a691['YNVdm'](getPlatformDetails);_0x572ba3=_0xd0ff34[_0x6afa05(0x1d0)],_0x4c04c4=_0xd0ff34[_0x6afa05(0x1e9)];}}else{const _0x5dd7e7=await _0xf1a691[_0x6afa05(0x1b9)](getPlatformDetails);_0x572ba3=_0x5dd7e7[_0x6afa05(0x1d0)],_0x4c04c4=_0x5dd7e7[_0x6afa05(0x1e9)];}const _0x3762e2={};_0x3762e2['browser']=_0x1c7f5a,_0x3762e2['browser_version']=_0x54eaec,_0x3762e2[_0x6afa05(0x1db)]={},_0x3762e2['platform']=_0x572ba3,_0x3762e2['platform_version']=_0x4c04c4,_0x3762e2['product']=_0x19c12e;const _0x6b560e=_0x3762e2,_0x3eef04={};_0x3eef04[_0x6afa05(0x1dd)]=_0x5937ee,this['currentSessionDetails']=Object['assign']({},this[_0x6afa05(0x18d)],_0x3eef04,_0x6b560e);}catch(_0x809d72){_0xf1a691[_0x6afa05(0x1c7)](debug,_0x6afa05(0x1a7)+util['format'](_0x809d72)),this[_0x6afa05(0x191)]=_0x809d72[_0x6afa05(0x1ad)]();}}static[a49_0x179144(0x198)](_0x182e67){const _0xe959bb=a49_0x179144,_0x47c2ba={'EMyhE':function(_0x3c4ee2,_0x4da13b){return _0x3c4ee2===_0x4da13b;},'wjzjy':_0xe959bb(0x1e8),'gGQLJ':function(_0x1824ba,_0x2f882e){return _0x1824ba(_0x2f882e);},'ebiEQ':function(_0x3aa5ba,_0x337b0b){return _0x3aa5ba(_0x337b0b);},'ljBPw':function(_0x2ea011,_0x578228){return _0x2ea011===_0x578228;},'hklCM':'[PuppeteerSessionDetails]\x20Connection\x20patched\x20for\x20session\x20capture'},_0x58b3c3=this;try{const _0x4d6207=_0x182e67['_connection']||_0x182e67[_0xe959bb(0x19e)];if(!_0x4d6207||_0x4d6207[_0xe959bb(0x1ab)])return;const _0xacbea0=_0x4d6207[_0xe959bb(0x1ae)];_0x4d6207[_0xe959bb(0x1ae)]=function(_0x42c709){const _0x5759fd=_0xe959bb;try{const _0x4667aa=_0x47c2ba[_0x5759fd(0x1d7)](typeof _0x42c709,_0x47c2ba[_0x5759fd(0x1ba)])?JSON[_0x5759fd(0x1bf)](_0x42c709):_0x42c709,_0xe6932c=_0x4667aa?.[_0x5759fd(0x1f1)]||_0x4667aa?.[_0x5759fd(0x190)]||_0x4667aa?.[_0x5759fd(0x1ea)]?.['bsParams']||_0x4667aa?.['params']?.[_0x5759fd(0x1f1)]||_0x4667aa?.[_0x5759fd(0x1bc)]?.[_0x5759fd(0x190)]||_0x4667aa?.[_0x5759fd(0x1bc)]?.[_0x5759fd(0x1f1)];if(_0xe6932c){if(BrowserstackCLI[_0x5759fd(0x18e)]()[_0x5759fd(0x1b8)]()){const _0x5f5dd6={};_0x5f5dd6['message']=_0x4667aa,BrowserstackCLI[_0x5759fd(0x18e)]()[_0x5759fd(0x1b0)]()[_0x5759fd(0x1dc)](AutomationFrameworkState[_0x5759fd(0x1a5)],HookState[_0x5759fd(0x1df)],_0x5f5dd6);}else{const _0x542c32=_0xe6932c[_0x5759fd(0x1a8)],_0x1fb421=_0xe6932c[_0x5759fd(0x1d2)];_0x1fb421&&(_0x47c2ba[_0x5759fd(0x1d1)](debug,_0x5759fd(0x1a6)+JSON[_0x5759fd(0x1c3)](_0x1fb421)),_0x58b3c3['currentSessionDetails']['platform']=_0x1fb421[_0x5759fd(0x1d0)],_0x58b3c3[_0x5759fd(0x18d)][_0x5759fd(0x1b6)]=_0x1fb421['platformVersion']),_0x542c32&&(_0x47c2ba[_0x5759fd(0x194)](debug,_0x5759fd(0x1c6)+_0x542c32),_0x58b3c3[_0x5759fd(0x18d)][_0x5759fd(0x1e5)]=_0x542c32);}_0x47c2ba['ljBPw'](typeof _0x42c709,_0x47c2ba[_0x5759fd(0x1ba)])&&(delete _0x4667aa[_0x5759fd(0x1f1)],delete _0x4667aa[_0x5759fd(0x190)],_0x4667aa[_0x5759fd(0x1ea)]&&(delete _0x4667aa[_0x5759fd(0x1ea)][_0x5759fd(0x190)],delete _0x4667aa[_0x5759fd(0x1ea)][_0x5759fd(0x1f1)]),_0x4667aa['result']&&(delete _0x4667aa[_0x5759fd(0x1bc)]['bsParams'],delete _0x4667aa[_0x5759fd(0x1bc)][_0x5759fd(0x1f1)]));}}catch(_0x5613bf){_0x47c2ba['gGQLJ'](debug,_0x5759fd(0x193)+_0x5613bf[_0x5759fd(0x1da)]);}return _0xacbea0?.[_0x5759fd(0x1e3)](this,arguments);},_0x4d6207[_0xe959bb(0x1ab)]=!![],logger['debug'](_0x47c2ba[_0xe959bb(0x1ce)]);}catch(_0x2dab38){_0x47c2ba['gGQLJ'](debug,_0xe959bb(0x1cb)+util['format'](_0x2dab38)),_0x58b3c3[_0xe959bb(0x191)]=_0x2dab38[_0xe959bb(0x1ad)]();}}static[a49_0x179144(0x1d5)](){const _0xc8cf57=a49_0x179144;return this[_0xc8cf57(0x18d)];}}module[a49_0x179144(0x1cd)]=PuppeteerSessionDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a50_0x38b52b=a50_0x3d84;(function(_0x100f2e,_0x419ab4){const _0x74da45=a50_0x3d84,_0x4ea596=_0x100f2e();while(!![]){try{const _0x2aa04b=-parseInt(_0x74da45(0x8b))/0x1*(-parseInt(_0x74da45(0x91))/0x2)+parseInt(_0x74da45(0x8f))/0x3+parseInt(_0x74da45(0x86))/0x4*(parseInt(_0x74da45(0x9b))/0x5)+-parseInt(_0x74da45(0x95))/0x6*(-parseInt(_0x74da45(0xab))/0x7)+-parseInt(_0x74da45(0x85))/0x8*(-parseInt(_0x74da45(0x7f))/0x9)+-parseInt(_0x74da45(0x96))/0xa+-parseInt(_0x74da45(0xad))/0xb;if(_0x2aa04b===_0x419ab4)break;else _0x4ea596['push'](_0x4ea596['shift']());}catch(_0x90b7e6){_0x4ea596['push'](_0x4ea596['shift']());}}}(a50_0x4397,0x6ecb0));const {isTrue,isBrowserstackInfra}=require(a50_0x38b52b(0xaa)),setKeepAlive=require('../../helpers/setKeepAlive'),util=require(a50_0x38b52b(0x88)),logger=require('../../helpers/logger')[a50_0x38b52b(0x98)],{shouldProcessEventForTesthub}=require(a50_0x38b52b(0xa0)),{addRequestSpy}=require(a50_0x38b52b(0x92)),a50_0x4ff994={};function a50_0x4397(){const _0x4211be=['[PuppeteerTestSetup]\x20Jest-Puppeteer\x20test\x20setup\x20completed','60988SDvDCl','../../helpers/test-observability/utils','[PuppeteerTestSetup]\x20Error\x20bootstrapping\x20BrowserstackCLI:\x20','../utils/puppeteer-patcher','6MtcyYu','6237140MIMhWZ','currentTest','winstonLogger','initializePuppeteerPatching','setFrameworkDetail','31945vYUUaN','__skipSessionStatus','getInstance','[PuppeteerTestSetup]\x20Error\x20initializing\x20Puppeteer\x20patching:\x20','../utils/constants','../../helpers/testhub/utils','pwPage','__workerDetails','true','../v2/browserstackCLI','workerInfo','__skipSessionName','jestConfig','[PuppeteerTestSetup]\x20Puppeteer\x20patching\x20initialized','puppeteer-core','../../helpers/helper','4553437DzdQwe','bootstrap','11434181imYTnk','skipSessionStatus','getPackageVersion','isPageFixture','43812DVqaFL','env','debug','format','[PuppeteerTestSetup]\x20Error\x20reading\x20BrowserStack\x20config:\x20','[PuppeteerTestSetup]\x20Bootstrapping\x20BrowserstackCLI\x20for\x20Jest\x20worker','928BCQcSe','348phUHhZ','[PuppeteerTestSetup]\x20Patching\x20Puppeteer\x20for\x20Jest','util','[PuppeteerTestSetup]\x20Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20','../v2/cliUtils','10EHCeiY','catch','puppeteer','isCliEnabled','123093IChXnP'];a50_0x4397=function(){return _0x4211be;};return a50_0x4397();}a50_0x4ff994[a50_0x38b52b(0xa5)]=undefined,a50_0x4ff994[a50_0x38b52b(0x97)]={},a50_0x4ff994['o11ySyncDone']=![],a50_0x4ff994[a50_0x38b52b(0xa1)]=null,a50_0x4ff994[a50_0x38b52b(0x7e)]=![],a50_0x4ff994[a50_0x38b52b(0x97)]['id']=undefined,a50_0x4ff994[a50_0x38b52b(0x97)]['testInfo']=undefined;const workerDetails=a50_0x4ff994;global[a50_0x38b52b(0xa2)]=workerDetails;let puppeteerPatcher=null;function a50_0x3d84(_0x2498ec,_0x9c735b){const _0x4397ee=a50_0x4397();return a50_0x3d84=function(_0x3d84a2,_0x48056a){_0x3d84a2=_0x3d84a2-0x7e;let _0x723301=_0x4397ee[_0x3d84a2];return _0x723301;},a50_0x3d84(_0x2498ec,_0x9c735b);}setKeepAlive();if(global[a50_0x38b52b(0xa7)])try{isBrowserstackInfra()?(global[a50_0x38b52b(0xa6)]=isTrue(global['jestConfig']?.['skipSessionName']),global[a50_0x38b52b(0x9c)]=isTrue(global[a50_0x38b52b(0xa7)]?.[a50_0x38b52b(0xae)])):(global[a50_0x38b52b(0xa6)]=!![],global[a50_0x38b52b(0x9c)]=!![]);const helper=require(a50_0x38b52b(0xaa)),puppeteerVersion=helper[a50_0x38b52b(0xaf)](a50_0x38b52b(0x8d))||helper[a50_0x38b52b(0xaf)](a50_0x38b52b(0xa9));if(puppeteerVersion)try{logger[a50_0x38b52b(0x81)](a50_0x38b52b(0x87)),puppeteerPatcher=require(a50_0x38b52b(0x94)),puppeteerPatcher[a50_0x38b52b(0x99)](global[a50_0x38b52b(0xa7)]),logger[a50_0x38b52b(0x81)](a50_0x38b52b(0xa8));}catch(a50_0x2eaa20){logger[a50_0x38b52b(0x81)](a50_0x38b52b(0x9e)+util[a50_0x38b52b(0x82)](a50_0x2eaa20));}if(puppeteerPatcher)try{const BrowserstackCLI=require(a50_0x38b52b(0xa4)),CLIUtils=require(a50_0x38b52b(0x8a)),{FRAMEWORKS}=require(a50_0x38b52b(0x9f));BrowserstackCLI[a50_0x38b52b(0x9d)]()[a50_0x38b52b(0x8e)]()&&(logger[a50_0x38b52b(0x81)](a50_0x38b52b(0x84)),process[a50_0x38b52b(0x80)]['BROWSERSTACK_PUPPETEER']=a50_0x38b52b(0xa3),CLIUtils[a50_0x38b52b(0x9a)](FRAMEWORKS['JEST'],FRAMEWORKS['PUPPETEER']),BrowserstackCLI[a50_0x38b52b(0x9d)]()[a50_0x38b52b(0xac)]()[a50_0x38b52b(0x8c)](_0x284348=>{const _0xef3b52=a50_0x38b52b;logger[_0xef3b52(0x81)](_0xef3b52(0x93)+util[_0xef3b52(0x82)](_0x284348));}));}catch(a50_0x47a2c4){logger[a50_0x38b52b(0x81)](a50_0x38b52b(0x89)+util[a50_0x38b52b(0x82)](a50_0x47a2c4));}shouldProcessEventForTesthub()&&addRequestSpy(![]);}catch(a50_0x12c5fb){logger[a50_0x38b52b(0x81)](a50_0x38b52b(0x83)+util[a50_0x38b52b(0x82)](a50_0x12c5fb));}logger['debug'](a50_0x38b52b(0x90));
|
package/src/bin/runner.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function a51_0x4e33(_0x374a01,_0x16f361){const _0x4ff62c=a51_0x4ff6();return a51_0x4e33=function(_0x4e337c,_0x1c7357){_0x4e337c=_0x4e337c-0x1ec;let _0x288a8a=_0x4ff62c[_0x4e337c];return _0x288a8a;},a51_0x4e33(_0x374a01,_0x16f361);}const a51_0x2142c6=a51_0x4e33;(function(_0x3acdb8,_0x5ee870){const _0x173c47=a51_0x4e33,_0x2cb6af=_0x3acdb8();while(!![]){try{const _0xaf5d14=-parseInt(_0x173c47(0x202))/0x1*(parseInt(_0x173c47(0x226))/0x2)+parseInt(_0x173c47(0x234))/0x3*(parseInt(_0x173c47(0x27a))/0x4)+parseInt(_0x173c47(0x26d))/0x5*(-parseInt(_0x173c47(0x274))/0x6)+-parseInt(_0x173c47(0x266))/0x7+-parseInt(_0x173c47(0x216))/0x8+-parseInt(_0x173c47(0x262))/0x9+parseInt(_0x173c47(0x27e))/0xa;if(_0xaf5d14===_0x5ee870)break;else _0x2cb6af['push'](_0x2cb6af['shift']());}catch(_0x188f54){_0x2cb6af['push'](_0x2cb6af['shift']());}}}(a51_0x4ff6,0x3c329));const fs=require('fs'),path=require(a51_0x2142c6(0x209)),util=require(a51_0x2142c6(0x264)),spawn=require('child_process')[a51_0x2142c6(0x215)],{requireModule}=require(a51_0x2142c6(0x255)),PerformanceTester=require(a51_0x2142c6(0x25d)),PerformanceEvents=require('../helpers/performance/constants')[a51_0x2142c6(0x22c)],helper=require(a51_0x2142c6(0x255)),utilities=require(a51_0x2142c6(0x273)),{default:BrowserStackSetup}=require('../helpers/BrowserStackSetup'),{FRAMEWORKS}=require(a51_0x2142c6(0x237)),runIntegrations=require(a51_0x2142c6(0x206)),yargs=require(a51_0x2142c6(0x20f)),Constants=require(a51_0x2142c6(0x252)),BrowserstackCLI=require(a51_0x2142c6(0x203)),logger=require(a51_0x2142c6(0x229))['winstonLogger'],origArgs=Object['assign']([],process[a51_0x2142c6(0x245)]),captureError=async(_0x2dfc37,_0x5309aa,_0x1307ef,_0x10c56a=null,_0x63b984=![])=>{const _0x4e5e88=a51_0x2142c6,_0x3bcc3d={'mWKZk':function(_0x535044,_0x59584f,_0x5211e1,_0x50eb6c){return _0x535044(_0x59584f,_0x5211e1,_0x50eb6c);},'vgpIT':_0x4e5e88(0x272)};try{logger[_0x4e5e88(0x27f)](_0x4e5e88(0x24e)+origArgs[_0x4e5e88(0x238)]('\x20')),await _0x3bcc3d[_0x4e5e88(0x270)](_0x2dfc37,_0x5309aa,_0x10c56a,_0x1307ef);}catch(_0x40b3ad){process[_0x4e5e88(0x268)]=0x1,logger[_0x4e5e88(0x27d)](util[_0x4e5e88(0x248)](_0x40b3ad));const _0x2d95a3={'globalException':util['format']('%j',_0x40b3ad)};PerformanceTester[_0x4e5e88(0x25f)](PerformanceEvents['SDK_SETUP'],![],util[_0x4e5e88(0x248)](_0x40b3ad));if(helper['isUndefined'](global[_0x4e5e88(0x235)])&&helper[_0x4e5e88(0x232)](global[_0x4e5e88(0x222)]))return;try{utilities[_0x4e5e88(0x20a)](_0x3bcc3d[_0x4e5e88(0x1ec)],_0x2d95a3,global['config'],global['framework']);}catch(_0x3c6fdb){logger['debug'](_0x4e5e88(0x231)+_0x3c6fdb[_0x4e5e88(0x20b)]);}try{await helper[_0x4e5e88(0x25e)](global['config']);}catch(_0x190518){logger['debug']('Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20'+_0x190518[_0x4e5e88(0x20b)]);}PerformanceTester['end'](PerformanceEvents['SDK_SETUP'],![],util[_0x4e5e88(0x248)](_0x40b3ad));}finally{!_0x63b984&&await BrowserstackCLI['getInstance']()['stop'](),PerformanceTester[_0x4e5e88(0x25b)](PerformanceEvents['SDK_CLEANUP']);}};try{const browserstackFolderPath=path[a51_0x2142c6(0x238)](helper[a51_0x2142c6(0x1fc)](),a51_0x2142c6(0x256));if(fs[a51_0x2142c6(0x275)](browserstackFolderPath)){const filePath=path[a51_0x2142c6(0x238)](browserstackFolderPath,'.local-not-set.json');fs[a51_0x2142c6(0x275)](filePath)&&fs[a51_0x2142c6(0x23c)](filePath);}}catch(a51_0x23623a){logger[a51_0x2142c6(0x214)](a51_0x2142c6(0x239)+a51_0x23623a[a51_0x2142c6(0x240)]);}process['argv']['includes'](a51_0x2142c6(0x223))&&(!process[a51_0x2142c6(0x245)][a51_0x2142c6(0x279)]('--opts')&&process[a51_0x2142c6(0x245)][a51_0x2142c6(0x26f)](a51_0x2142c6(0x260)),!process['argv'][a51_0x2142c6(0x211)](_0x3787cd=>_0x3787cd[a51_0x2142c6(0x279)](a51_0x2142c6(0x21f)))&&process[a51_0x2142c6(0x245)][a51_0x2142c6(0x26f)]('--no-config'),!process[a51_0x2142c6(0x245)][a51_0x2142c6(0x279)](a51_0x2142c6(0x1fe))&&process['argv'][a51_0x2142c6(0x26f)](a51_0x2142c6(0x22f)),helper[a51_0x2142c6(0x1f7)](process[a51_0x2142c6(0x245)],'--require',a51_0x2142c6(0x220)));PerformanceTester[a51_0x2142c6(0x25b)](PerformanceEvents['SDK_SETUP']);function a51_0x4ff6(){const _0x242ed3=['156Uarlon','existsSync','some','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','kBemd','includes','20PAhJgc','handler','jggbO','error','10354420AQGjrg','info','Runs\x20the\x20binary\x20with\x20load\x20command','dgXSa','vgpIT','INFO','aFUyX','HELP','pw:channel','env','PLAYWRIGHT','bzkwz','./codeceptjs/command','command','usage:\x20$0\x20<command>\x20[args]','findAndReplace','./vanilla-js/command','DEBUG_FILE','pw:*','node','homedir','mocha/lib/cli/commands.js','--package','jest','split','PyrDV','56597TJpUGy','./v2/browserstackCLI','./load/index','EaQCN','./integrations/command','trim','ats','path','fireFunnelTestEvent','stack','Vtkrf','LtwEJ','codeceptjs','yargs','YbPjK','find','tNJWc','slice','debug','spawn','317304fBqKdc','./playwright/command','MOCHA','usage','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','uhhcG','TSdQX','vanilla','sTmal','--config','--mochaRequire','VKFLW','framework','mocha','setTestObservabilityDisable','CODECEPTJS','4HKbzKO','vjBaG','setBrowserStackAutomationDisable','../helpers/logger','describe','DiBPL','EVENTS','option','DEBUG','--no-package','nightwatch','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','isUndefined','qCalL','88674WmeWcb','config','dot-notation','../helpers/test-observability/constants','join','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','vnQRp','CzDNF','unlinkSync','FrXau','mocha/lib/cli/cli.js','HWdZc','message','CBJmn','BLQdV','filter','OFdvj','argv','strict','cucumber-js','format','alias','TUhjb','load\x20[subcommand]','mGqPY','./cucumber-js/command','Running\x20SDK\x20with\x20args\x20','-pw:channel','help','etRTR','./utils/constants','-pw:*','ULbsw','../helpers/helper','.browserstack','mPCpj','./nightwatch/command','integrations','uNUEd','start','VFYVZ','../helpers/performance/performance-tester','sendLogs','end','--no-opts','parserConfiguration','3858327YJBcOv','run','util','map','1255401ylHhmC','CUCUMBER','exitCode','playwright','MneCD','./jest/command','getConfigPath','33800EHDvOy','getPwChannelLogPath','push','mWKZk','NpqVw','SDKTestSuccessful','../helpers/utilities'];a51_0x4ff6=function(){return _0x242ed3;};return a51_0x4ff6();}const a51_0x4a9d73={};a51_0x4a9d73[a51_0x2142c6(0x236)]=![];const argv=yargs[a51_0x2142c6(0x261)](a51_0x4a9d73)[a51_0x2142c6(0x219)](a51_0x2142c6(0x1f6))[a51_0x2142c6(0x249)]('v','version')[a51_0x2142c6(0x22a)]('v')[a51_0x2142c6(0x249)]('h','help')[a51_0x2142c6(0x250)](a51_0x2142c6(0x250))['showHelpOnFail'](!![],Constants['VERSION'][a51_0x2142c6(0x1ef)])['command'](a51_0x2142c6(0x1ff),Constants['JEST'][a51_0x2142c6(0x1ed)],function(_0x3ff40b){const _0x18eb5b=a51_0x2142c6,_0x355b1d={'wLpBG':'jest','TSdQX':function(_0x3798a1,_0x178169,_0xbd23ad,_0x2c5765,_0x1e1b5f,_0x4d5103){return _0x3798a1(_0x178169,_0xbd23ad,_0x2c5765,_0x1e1b5f,_0x4d5103);},'CBJmn':function(_0x13d5c7,_0x4a4a04){return _0x13d5c7(_0x4a4a04);},'AKlgx':_0x18eb5b(0x26b)},_0xba423=process[_0x18eb5b(0x245)][_0x18eb5b(0x213)](0x2);helper[_0x18eb5b(0x224)](),helper[_0x18eb5b(0x228)](),_0x3ff40b[_0x18eb5b(0x246)](![]);const _0x328a1d=new BrowserStackSetup(_0x3ff40b[_0x18eb5b(0x245)],_0x355b1d['wLpBG']);return _0x355b1d[_0x18eb5b(0x21c)](captureError,_0x355b1d[_0x18eb5b(0x241)](require,_0x355b1d['AKlgx']),_0x3ff40b['argv'],_0x328a1d,_0xba423,!![]);})[a51_0x2142c6(0x1f5)](a51_0x2142c6(0x223),Constants[a51_0x2142c6(0x218)][a51_0x2142c6(0x1ed)],_0x57e368=>{const _0x2efd9d=a51_0x2142c6,_0x1b55dd={'vnQRp':function(_0x3769c8,_0x4ae9e8,_0x20cbff,_0xc935c5){return _0x3769c8(_0x4ae9e8,_0x20cbff,_0xc935c5);},'amXcK':function(_0x196a71,_0x311e17){return _0x196a71(_0x311e17);},'dgXSa':'./mocha/command','NpqVw':_0x2efd9d(0x223),'iKEHZ':'Parsing\x20command\x20line\x20arguments','EaQCN':function(_0xf16a9f,_0x5c1375,_0x5260cb){return _0xf16a9f(_0x5c1375,_0x5260cb);},'ULbsw':'mocha/lib/cli/run.js','uhhcG':function(_0x39b1ca,_0x447a6e,_0x4d189){return _0x39b1ca(_0x447a6e,_0x4d189);},'aFUyX':_0x2efd9d(0x1fd),'yNBJm':function(_0x49b334,_0x4be34f,_0x4208e1){return _0x49b334(_0x4be34f,_0x4208e1);},'TUhjb':_0x2efd9d(0x23e),'YbPjK':function(_0x139069){return _0x139069();}};process[_0x2efd9d(0x245)]=process[_0x2efd9d(0x245)]['slice'](0x1),helper[_0x2efd9d(0x224)](),helper[_0x2efd9d(0x228)]();const _0x3b9d5b=new BrowserStackSetup(_0x57e368[_0x2efd9d(0x245)],_0x1b55dd[_0x2efd9d(0x271)]);logger[_0x2efd9d(0x214)](_0x1b55dd['iKEHZ']);const _0x32be4b=_0x1b55dd[_0x2efd9d(0x205)](requireModule,_0x1b55dd[_0x2efd9d(0x254)],_0x1b55dd[_0x2efd9d(0x271)]),_0xf8662=_0x1b55dd[_0x2efd9d(0x21b)](requireModule,_0x1b55dd[_0x2efd9d(0x1ee)],_0x1b55dd[_0x2efd9d(0x271)]);delete _0x32be4b[_0x2efd9d(0x27b)],_0x32be4b[_0x2efd9d(0x27b)]=function(_0x15f412){const _0x37457d=_0x2efd9d;return _0x1b55dd[_0x37457d(0x23a)](captureError,_0x1b55dd['amXcK'](require,_0x1b55dd[_0x37457d(0x281)]),_0x15f412,_0x3b9d5b);},_0xf8662[_0x2efd9d(0x263)]=_0x32be4b;const {main:_0xd74e6}=_0x1b55dd['yNBJm'](requireModule,_0x1b55dd[_0x2efd9d(0x24a)],_0x1b55dd[_0x2efd9d(0x271)]);_0x1b55dd[_0x2efd9d(0x210)](_0xd74e6);})['command']('cucumber-js',Constants[a51_0x2142c6(0x267)]['INFO'],function(_0x4fbf52){const _0x21e5a6=a51_0x2142c6,_0x37c9fc={'bzkwz':_0x21e5a6(0x247),'uNUEd':function(_0x34a076,_0x1e2759,_0xe8258c,_0x1ba792,_0x3dc031,_0x24627a){return _0x34a076(_0x1e2759,_0xe8258c,_0x1ba792,_0x3dc031,_0x24627a);},'SzgKl':function(_0x5558a5,_0x550fc7){return _0x5558a5(_0x550fc7);},'mFbAr':_0x21e5a6(0x24d)},_0x198630=process[_0x21e5a6(0x245)][_0x21e5a6(0x213)](0x2),_0x3bfed9=new BrowserStackSetup(_0x4fbf52[_0x21e5a6(0x245)],_0x37c9fc[_0x21e5a6(0x1f3)]);return _0x37c9fc[_0x21e5a6(0x25a)](captureError,_0x37c9fc['SzgKl'](require,_0x37c9fc['mFbAr']),_0x4fbf52[_0x21e5a6(0x245)],_0x3bfed9,_0x198630,!![]);})[a51_0x2142c6(0x1f5)](a51_0x2142c6(0x1fb),Constants['VANILLA'][a51_0x2142c6(0x1ed)],function(_0x24e629){const _0x16f3d1=a51_0x2142c6,_0xf201a0={'MneCD':_0x16f3d1(0x21d),'kBemd':function(_0xb85743,_0x54891f,_0x60a27f,_0x5b7aa4,_0x1515e8){return _0xb85743(_0x54891f,_0x60a27f,_0x5b7aa4,_0x1515e8);},'vjBaG':function(_0x11ee34,_0x56e9d1){return _0x11ee34(_0x56e9d1);},'OFdvj':_0x16f3d1(0x1f8)},_0x215619=process[_0x16f3d1(0x245)][_0x16f3d1(0x213)](0x2),_0x506089=new BrowserStackSetup(_0x24e629[_0x16f3d1(0x245)],_0xf201a0[_0x16f3d1(0x26a)]);return _0xf201a0[_0x16f3d1(0x278)](captureError,_0xf201a0[_0x16f3d1(0x227)](require,_0xf201a0[_0x16f3d1(0x244)]),_0x24e629[_0x16f3d1(0x245)],_0x506089,_0x215619);})['command'](a51_0x2142c6(0x230),Constants['NIGHTWATCH'][a51_0x2142c6(0x1ed)],function(_0x3fe602){const _0x14da6a=a51_0x2142c6,_0x35fddc={'vQSxT':function(_0x2b65da,_0x3bc3d8,_0x57c595,_0x166361,_0x1d240f){return _0x2b65da(_0x3bc3d8,_0x57c595,_0x166361,_0x1d240f);},'mGqPY':function(_0x93e49f,_0x4a964d){return _0x93e49f(_0x4a964d);},'yylzQ':_0x14da6a(0x258)},_0x18c9da=process['argv'][_0x14da6a(0x213)](0x2),_0x297f8d=new BrowserStackSetup(_0x3fe602[_0x14da6a(0x245)]);return _0x35fddc['vQSxT'](captureError,_0x35fddc[_0x14da6a(0x24c)](require,_0x35fddc['yylzQ']),_0x3fe602[_0x14da6a(0x245)],_0x297f8d,_0x18c9da);})[a51_0x2142c6(0x1f5)](a51_0x2142c6(0x20e),Constants[a51_0x2142c6(0x225)][a51_0x2142c6(0x1ed)],function(_0x59a3fb){const _0x44c1be=a51_0x2142c6,_0x4b9f2b={'CzDNF':_0x44c1be(0x20e),'etRTR':function(_0x5ce284,_0x1055af,_0x308173,_0x144ed1,_0x1893d2){return _0x5ce284(_0x1055af,_0x308173,_0x144ed1,_0x1893d2);},'ZGurV':function(_0x11db7a,_0x159e3f){return _0x11db7a(_0x159e3f);},'VKFLW':_0x44c1be(0x1f4)},_0x5b8abd=process[_0x44c1be(0x245)]['slice'](0x2),_0x46d60b=new BrowserStackSetup(_0x59a3fb['argv'],_0x4b9f2b[_0x44c1be(0x23b)]);return _0x4b9f2b[_0x44c1be(0x251)](captureError,_0x4b9f2b['ZGurV'](require,_0x4b9f2b[_0x44c1be(0x221)]),_0x59a3fb[_0x44c1be(0x245)],_0x46d60b,_0x5b8abd);})['command'](a51_0x2142c6(0x208),Constants['HST']['INFO'],function(_0x48cf3d){const _0x4103a6=a51_0x2142c6,_0x43e507={'PyrDV':function(_0x97ae9,_0x513538,_0x540aaf){return _0x97ae9(_0x513538,_0x540aaf);},'uJCJd':function(_0x3872b2,_0x32139f){return _0x3872b2(_0x32139f);},'BLQdV':'../../ats/src/index'},_0x34d296=process['argv'][_0x4103a6(0x213)](0x2);return _0x43e507[_0x4103a6(0x201)](captureError,_0x43e507['uJCJd'](require,_0x43e507[_0x4103a6(0x242)]),_0x48cf3d);})[a51_0x2142c6(0x1f5)](a51_0x2142c6(0x259),Constants['INTEGRATIONS'][a51_0x2142c6(0x1ed)],function(_0x4a62bd){const _0x174369=a51_0x2142c6,_0x5e4a9b={'Vtkrf':function(_0x223dc2,_0x2c8391){return _0x223dc2(_0x2c8391);}};return _0x5e4a9b[_0x174369(0x20c)](runIntegrations,_0x4a62bd);})[a51_0x2142c6(0x1f5)](a51_0x2142c6(0x269),Constants[a51_0x2142c6(0x1f2)][a51_0x2142c6(0x1ed)],function(_0x5a752c){const _0x302ca3=a51_0x2142c6,_0x45b632={'sTmal':_0x302ca3(0x1f0),'tNJWc':function(_0x1f79b2,_0x247d33){return _0x1f79b2&&_0x247d33;},'VFYVZ':function(_0x4a51ca,_0x2f48c1,_0x9ea503,_0xe4f434,_0x42f194,_0x59cbdc){return _0x4a51ca(_0x2f48c1,_0x9ea503,_0xe4f434,_0x42f194,_0x59cbdc);},'HWdZc':function(_0x199ff6,_0x8b30f7){return _0x199ff6(_0x8b30f7);},'jggbO':_0x302ca3(0x217)},_0x3f6530=process['argv']['slice'](0x2);helper[_0x302ca3(0x26c)](process['argv'])&&(process[_0x302ca3(0x1f1)]['BROWSERSTACK_CONFIG_FILE_PATH']=helper[_0x302ca3(0x26c)](process[_0x302ca3(0x245)]));helper[_0x302ca3(0x224)](),helper[_0x302ca3(0x228)]();const _0x4bcfe6=new BrowserStackSetup(_0x5a752c[_0x302ca3(0x245)],FRAMEWORKS[_0x302ca3(0x1f2)]);try{if(!_0x4bcfe6[_0x302ca3(0x235)]||!_0x4bcfe6[_0x302ca3(0x235)]['disableAutoCaptureLogs']){const _0x1e6475=_0x45b632[_0x302ca3(0x21e)],_0x3e04e9=process[_0x302ca3(0x1f1)][_0x302ca3(0x22e)]||'',_0x35bf32=_0x3e04e9[_0x302ca3(0x200)](',')[_0x302ca3(0x265)](_0x5c6339=>_0x5c6339[_0x302ca3(0x207)]())[_0x302ca3(0x243)](Boolean),_0x2d0929=_0x35bf32[_0x302ca3(0x276)](_0x515168=>_0x515168===_0x302ca3(0x24f)||_0x515168===_0x302ca3(0x253)||_0x515168==='-*'),_0x4d1fe0=_0x35bf32[_0x302ca3(0x276)](_0x31516e=>_0x31516e===_0x1e6475||_0x31516e===_0x302ca3(0x1fa)||_0x31516e==='*');if(_0x45b632[_0x302ca3(0x212)](!_0x2d0929,!_0x4d1fe0)){const _0x27a5df=helper[_0x302ca3(0x26e)]();_0x27a5df&&(process['env']['DEBUG']=_0x3e04e9?_0x3e04e9+','+_0x1e6475:_0x1e6475,!process[_0x302ca3(0x1f1)][_0x302ca3(0x1f9)]&&(process[_0x302ca3(0x1f1)][_0x302ca3(0x1f9)]=_0x27a5df));}}}catch(_0xfb5146){logger[_0x302ca3(0x214)]('pw:channel\x20auto-capture\x20seed\x20failed:\x20'+util[_0x302ca3(0x248)](_0xfb5146));}return _0x45b632[_0x302ca3(0x25c)](captureError,_0x45b632[_0x302ca3(0x23f)](require,_0x45b632[_0x302ca3(0x27c)]),_0x5a752c['argv'],_0x4bcfe6,_0x3f6530,!![]);})[a51_0x2142c6(0x1f5)](a51_0x2142c6(0x24b),a51_0x2142c6(0x280),function(_0x3a66a4){const _0x191590=a51_0x2142c6,_0x21a0cc={};_0x21a0cc['tmysB']='help',_0x21a0cc[_0x191590(0x20d)]='boolean',_0x21a0cc['FrXau']='Show\x20help';const _0x1e0519=_0x21a0cc;return _0x3a66a4[_0x191590(0x250)](![])[_0x191590(0x22d)](_0x1e0519['tmysB'],{'alias':'h','type':_0x1e0519['LtwEJ'],'describe':_0x1e0519[_0x191590(0x23d)]})[_0x191590(0x246)](![])['exitProcess'](![]);},function(_0x1a21b9){const _0xd49375=a51_0x2142c6,_0x1ec779={'DiBPL':function(_0x2ac2db,_0x39c225,_0x4a8e4a){return _0x2ac2db(_0x39c225,_0x4a8e4a);},'mPCpj':function(_0x3ccbc1,_0x4f1ed0){return _0x3ccbc1(_0x4f1ed0);},'qCalL':_0xd49375(0x204)},_0x830215={};return _0x830215['argv']=_0x1a21b9,_0x1ec779[_0xd49375(0x22b)](captureError,_0x1ec779[_0xd49375(0x257)](require,_0x1ec779[_0xd49375(0x233)]),_0x830215);})['demandCommand'](0x1,a51_0x2142c6(0x277))['wrap'](null)[a51_0x2142c6(0x245)];!helper[a51_0x2142c6(0x232)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a51_0x2142c6(0x208)&&console[a51_0x2142c6(0x27d)](a51_0x2142c6(0x21a));
|
|
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.');
|
package/src/bin/setup.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const a52_0x4bf9ba=a52_0x3957;(function(_0x936925,_0x4d1860){const _0x4fe62d=a52_0x3957,_0x25b8cd=_0x936925();while(!![]){try{const _0x4ffd46=-parseInt(_0x4fe62d(0xd2))/0x1*(parseInt(_0x4fe62d(0xc5))/0x2)+-parseInt(_0x4fe62d(0xd4))/0x3*(parseInt(_0x4fe62d(0xe7))/0x4)+-parseInt(_0x4fe62d(0xe6))/0x5*(-parseInt(_0x4fe62d(0xeb))/0x6)+parseInt(_0x4fe62d(0xf2))/0x7*(parseInt(_0x4fe62d(0xcc))/0x8)+-parseInt(_0x4fe62d(0xc2))/0x9*(-parseInt(_0x4fe62d(0xa9))/0xa)+-parseInt(_0x4fe62d(0xdf))/0xb*(-parseInt(_0x4fe62d(0xb4))/0xc)+parseInt(_0x4fe62d(0xb3))/0xd*(-parseInt(_0x4fe62d(0xd3))/0xe);if(_0x4ffd46===_0x4d1860)break;else _0x25b8cd['push'](_0x25b8cd['shift']());}catch(_0x4afb93){_0x25b8cd['push'](_0x25b8cd['shift']());}}}(a52_0xd63b,0x6810b));const fs=require('fs'),helper=require(a52_0x4bf9ba(0xb2)),utilities=require(a52_0x4bf9ba(0xc0)),yaml=require('js-yaml'),yargs=require(a52_0x4bf9ba(0xaa)),logger=require('../helpers/logger')[a52_0x4bf9ba(0xcf)],configFileTemplate=__dirname+a52_0x4bf9ba(0xa6),configFileTemplatePW=__dirname+a52_0x4bf9ba(0xbf),configFile=process[a52_0x4bf9ba(0xee)]()+a52_0x4bf9ba(0xbd),packageFile=process[a52_0x4bf9ba(0xee)]()+a52_0x4bf9ba(0xd5),frameworks=['mocha',a52_0x4bf9ba(0xd0),a52_0x4bf9ba(0xc9),'node','nightwatch',a52_0x4bf9ba(0xda),a52_0x4bf9ba(0xb8)];let config;logger['info'](a52_0x4bf9ba(0xc1)),createConfigurationFile(yargs[a52_0x4bf9ba(0xb0)][a52_0x4bf9ba(0xad)],yargs[a52_0x4bf9ba(0xb0)][a52_0x4bf9ba(0xd7)],yargs['argv'][a52_0x4bf9ba(0xb8)]);try{sdkSetup();}catch(a52_0x2e70d5){logger[a52_0x4bf9ba(0xaf)](a52_0x4bf9ba(0xe3)+a52_0x2e70d5);}function a52_0xd63b(){const _0x213a31=['/package.json','MmfCa','key','splice','includes','codeceptjs','NlsVH','Setup\x20completed','browserstack-node-sdk\x20','utf8','11kxQGGp','split','ZZbRA','qtvtD','Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','TxqXW','\x20&&\x20npm\x20update\x20browserstack-node-sdk','11690SxLRIt','89636HEvuuO','source','-browserstack','writeFileSync','1068KRLsNY','yIlzg','push','cwd','YfZVP','rtCFe','YOUR_USERNAME','20573VaKbix','/../../browserstack.yml.sample','xacQY','error','230DZnKWR','yargs','browserstack-node-sdk','postinstall','username','YXwUL','debug','argv','load','../helpers/helper','15910492BJdDUb','7274928OTOlUF','isUndefined','heAPP','info','playwright','AQNZJ','YWlbo','indexOf','stringify','/browserstack.yml','Adding\x20new\x20script(s)\x20in\x20package.json...','/../../browserstack.pw.yml.sample','../helpers/utilities','Creating\x20configuration\x20file...','217359RGKotX','scripts','replace','54ovurjF','HBWck','length','YDVHk','cucumber-js','SDKSetup','uJctG','592YQCCcZ','node-setup','Ywaas','winstonLogger','jest','fireFunnelTestEvent','4549jjciUu','14cLqlJj','3DnhyFd'];a52_0xd63b=function(){return _0x213a31;};return a52_0xd63b();}addScriptInPackageJson();function createConfigurationFile(_0x29353d,_0x2c33ed,_0x578001=![]){const _0x1a9e22=a52_0x4bf9ba,_0x45ffd8={};_0x45ffd8[_0x1a9e22(0xe4)]=_0x1a9e22(0xde),_0x45ffd8[_0x1a9e22(0xae)]=_0x1a9e22(0xf1),_0x45ffd8[_0x1a9e22(0xa7)]='YOUR_ACCESS_KEY';const _0x1d70a9=_0x45ffd8;try{let _0xc0d3c9=fs['readFileSync'](_0x578001?configFileTemplatePW:configFileTemplate,_0x1d70a9['TxqXW']);_0x29353d&&(_0xc0d3c9=_0xc0d3c9[_0x1a9e22(0xc4)](_0x1d70a9['YXwUL'],_0x29353d)),_0x2c33ed&&(_0xc0d3c9=_0xc0d3c9[_0x1a9e22(0xc4)](_0x1d70a9[_0x1a9e22(0xa7)],_0x2c33ed)),config=yaml[_0x1a9e22(0xb1)](_0xc0d3c9),fs['writeFileSync'](configFile,_0xc0d3c9,_0x4f099e=>{const _0x3cffe4=_0x1a9e22;_0x4f099e&&logger[_0x3cffe4(0xa8)](_0x4f099e);});}catch(_0x2af82b){logger[_0x1a9e22(0xa8)](_0x2af82b);}}function addPostInstallScript(_0x497ce0,_0x7c410b){const _0x2b410b=a52_0x4bf9ba,_0x42684b={};_0x42684b[_0x2b410b(0xd6)]=_0x2b410b(0xac),_0x42684b['NlsVH']='npm\x20update\x20browserstack-node-sdk',_0x42684b[_0x2b410b(0xef)]=_0x2b410b(0xe5);const _0x3d98d2=_0x42684b;let _0x178982=_0x497ce0[_0x3d98d2['MmfCa']];if(_0x178982&&_0x178982['includes'](_0x3d98d2[_0x2b410b(0xdb)]))return;!_0x178982?_0x178982=_0x3d98d2[_0x2b410b(0xdb)]:_0x178982+=_0x3d98d2[_0x2b410b(0xef)],_0x7c410b[_0x2b410b(0xed)]([_0x3d98d2[_0x2b410b(0xd6)],_0x178982]);}function a52_0x3957(_0x57ca1c,_0x45433f){const _0xd63b24=a52_0xd63b();return a52_0x3957=function(_0x39578a,_0x5ceaf3){_0x39578a=_0x39578a-0xa6;let _0x3395bf=_0xd63b24[_0x39578a];return _0x3395bf;},a52_0x3957(_0x57ca1c,_0x45433f);}function addScriptInPackageJson(){const _0x40c676=a52_0x4bf9ba,_0x16c73b={'YDVHk':'utf8','heAPP':function(_0x17021c,_0x3f38d3){return _0x17021c<_0x3f38d3;},'ymCVx':function(_0x55e111,_0x3206bb,_0x143c6f){return _0x55e111(_0x3206bb,_0x143c6f);},'YWlbo':function(_0x52f5e2,_0x3112bb,_0x19b8b7){return _0x52f5e2(_0x3112bb,_0x19b8b7);},'ZZbRA':function(_0x54398a,_0x3ef440){return _0x54398a<_0x3ef440;},'TQEeE':function(_0xf6cd2d,_0x490862){return _0xf6cd2d!==_0x490862;},'Ywaas':_0x40c676(0xbe)},_0x3fbecc=JSON['parse'](fs['readFileSync'](packageFile,_0x16c73b[_0x40c676(0xc8)])),_0x30e1dc=[];for(let _0x2f1868=0x0;_0x16c73b[_0x40c676(0xb6)](_0x2f1868,frameworks[_0x40c676(0xc7)]);_0x2f1868+=0x1){const _0x39d7e5=_0x16c73b['ymCVx'](findScriptsWithFramework,_0x3fbecc['scripts'],frameworks[_0x2f1868]);for(let _0x11bfbc=0x0;_0x16c73b[_0x40c676(0xb6)](_0x11bfbc,_0x39d7e5[_0x40c676(0xc7)]);_0x11bfbc+=0x1){_0x30e1dc['push'](_0x16c73b[_0x40c676(0xba)](getUpdatedCommand,_0x3fbecc['scripts'],_0x39d7e5[_0x11bfbc]));}_0x16c73b['YWlbo'](addPostInstallScript,_0x3fbecc[_0x40c676(0xc3)],_0x30e1dc);}const _0x299e90={..._0x3fbecc[_0x40c676(0xc3)]},_0x5870d8=_0x299e90;for(let _0xfeccbc=0x0;_0x16c73b[_0x40c676(0xe1)](_0xfeccbc,_0x30e1dc['length']);_0xfeccbc+=0x1){_0x5870d8[_0x30e1dc[_0xfeccbc][0x0]]=_0x30e1dc[_0xfeccbc][0x1];}_0x16c73b['TQEeE'](JSON[_0x40c676(0xbc)](_0x3fbecc[_0x40c676(0xc3)]),JSON[_0x40c676(0xbc)](_0x5870d8))&&(logger[_0x40c676(0xb7)](_0x16c73b[_0x40c676(0xce)]),_0x3fbecc['scripts']=_0x5870d8,fs[_0x40c676(0xea)](packageFile,JSON[_0x40c676(0xbc)](_0x3fbecc,null,0x2),_0x41ac78=>{const _0x4939b5=_0x40c676;_0x41ac78&&logger[_0x4939b5(0xa8)](_0x41ac78);}));};function findScriptsWithFramework(_0x282d2f,_0x33a3be){const _0x3c70d4=a52_0x4bf9ba,_0x310894={};_0x310894['uJctG']=function(_0xf4da32,_0x49fd09){return _0xf4da32<_0x49fd09;},_0x310894['rtCFe']=_0x3c70d4(0xab);const _0x1b88e4=_0x310894,_0x3371ce=[],_0x539644=Object['entries'](_0x282d2f);for(let _0x576466=0x0;_0x1b88e4[_0x3c70d4(0xcb)](_0x576466,_0x539644[_0x3c70d4(0xc7)]);_0x576466+=0x1){_0x539644[_0x576466][0x1][_0x3c70d4(0xd9)](_0x33a3be)&&!_0x539644[_0x576466][0x1]['includes'](_0x1b88e4[_0x3c70d4(0xf0)])&&_0x3371ce[_0x3c70d4(0xed)](_0x539644[_0x576466][0x0]);}return _0x3371ce;}function getUpdatedCommand(_0x3d7c46,_0x25d0fb){const _0x5c62af=a52_0x4bf9ba,_0x394ea6={};_0x394ea6[_0x5c62af(0xb9)]=function(_0x13f846,_0x572e78){return _0x13f846!==_0x572e78;},_0x394ea6['OsUsD']='browserstack-node-sdk',_0x394ea6[_0x5c62af(0xe2)]=function(_0x5a1715,_0x39b6e0){return _0x5a1715===_0x39b6e0;};const _0x918300=_0x394ea6,_0x257bc6=_0x25d0fb+_0x5c62af(0xe9),_0x17c0ae=_0x3d7c46[_0x25d0fb],_0x1d0af9=_0x17c0ae[_0x5c62af(0xe0)]('\x20');for(const _0x299c09 of frameworks){if(_0x918300['AQNZJ'](_0x1d0af9['indexOf'](_0x299c09),-0x1)){_0x1d0af9[_0x5c62af(0xd8)](_0x1d0af9[_0x5c62af(0xbb)](_0x299c09),0x0,_0x918300['OsUsD']);break;}}let _0x335454=_0x1d0af9['join']('\x20');return _0x918300['qtvtD'](_0x335454,_0x17c0ae)&&(_0x335454=_0x5c62af(0xdd)+_0x17c0ae),[_0x257bc6,_0x335454];}function sdkSetup(){const _0x29ccd2=a52_0x4bf9ba,_0x3436c5={};_0x3436c5[_0x29ccd2(0xc6)]=_0x29ccd2(0xcd),_0x3436c5[_0x29ccd2(0xec)]=_0x29ccd2(0xca);const _0x2e48a0=_0x3436c5;if(helper[_0x29ccd2(0xb5)](config))return;config[_0x29ccd2(0xe8)]=_0x2e48a0[_0x29ccd2(0xc6)];try{utilities[_0x29ccd2(0xd1)](_0x2e48a0[_0x29ccd2(0xec)],{},config,'');}catch(_0x305126){logger[_0x29ccd2(0xaf)](_0x29ccd2(0xe3)+_0x305126);}}logger[a52_0x4bf9ba(0xb7)](a52_0x4bf9ba(0xdc));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a53_0x5e7e(){const _0x2a76ee=['platform-run-success','util','20YwIrrX','LVFrh','results','cxfPF','platform-run-failure','error','parallelCucumberRun','platform-run-start','postMessage','OrlnI','test-file-success','mmIfk','945789ymTcit','exitCode','102chlulb','all','35885BKtcIA','kPZRm','push','wXJxW','emit','VRuUm','waitForExit','stderr','8351oGhifR','SDK_SETUP','getStderr','vanillaWorker','\x20for','then','XkBWl','platform','jteFV','getStdout','platformIndex','HadVQ','../../helpers/performance/constants','WGTDw','resolve','521432dKqsJK','./testWorker.js','info','p-limit','length','parallelVanillaRun','test-file-failure','jxZWx','log','ZMdXl','stdout','EVENTS','file','8231729PBsoZS','platforms','config','nTSgA','wnUTN','Workers\x20failed\x20to\x20exit\x20gracefully','Running\x20','debug','Exception\x20in\x20sending\x20worker\x20message\x20','504MmvLBD','101538AGMuTO','json','../../helpers/performance/performance-tester','QSlFH','ZDHxG','worker_threads','../../helpers/test-observability/utils','configuration','worker','NfTHN','map','KBvOQ','../../helpers/testhub/testhubHandler','QAQpl','test-file-start','platformCaps','exit','end','859FYeoMP','_workerPool','failureCount','JPYha','../../helpers/logger','parallelTestRun','gZgLs','FzyZn','220GdPRjo','yGKOw','taoJn','pipe','ZfHqg','Worker','Exception\x20in\x20adding\x20custom\x20message\x20channel\x20','GHUqX','format','ZiRkE','kyYYT','zlcZE'];a53_0x5e7e=function(){return _0x2a76ee;};return a53_0x5e7e();}function a53_0x5b97(_0x5f347f,_0xcb2c6a){const _0x5e7e68=a53_0x5e7e();return a53_0x5b97=function(_0x5b9713,_0x47deff){_0x5b9713=_0x5b9713-0xb2;let _0x1350ed=_0x5e7e68[_0x5b9713];return _0x1350ed;},a53_0x5b97(_0x5f347f,_0xcb2c6a);}const a53_0x2ad2ae=a53_0x5b97;(function(_0x28555b,_0x99a025){const _0x302a4d=a53_0x5b97,_0x5589c9=_0x28555b();while(!![]){try{const _0x336d88=-parseInt(_0x302a4d(0xfb))/0x1*(-parseInt(_0x302a4d(0xb9))/0x2)+-parseInt(_0x302a4d(0xb7))/0x3+parseInt(_0x302a4d(0x111))/0x4*(-parseInt(_0x302a4d(0xbb))/0x5)+parseInt(_0x302a4d(0xe8))/0x6*(-parseInt(_0x302a4d(0xc3))/0x7)+parseInt(_0x302a4d(0xd2))/0x8+parseInt(_0x302a4d(0xe9))/0x9*(-parseInt(_0x302a4d(0x103))/0xa)+parseInt(_0x302a4d(0xdf))/0xb;if(_0x336d88===_0x99a025)break;else _0x5589c9['push'](_0x5589c9['shift']());}catch(_0x1e4831){_0x5589c9['push'](_0x5589c9['shift']());}}}(a53_0x5e7e,0x26843));const Worker=require('jest-worker')[a53_0x2ad2ae(0x108)],Emittery=require('emittery'),pLimit=require(a53_0x2ad2ae(0xd5)),{parentPort}=require(a53_0x2ad2ae(0xee)),util=require(a53_0x2ad2ae(0x110)),logger=require(a53_0x2ad2ae(0xff))['winstonLogger'],PerformanceTester=require(a53_0x2ad2ae(0xeb)),PerformanceEvents=require(a53_0x2ad2ae(0xcf))[a53_0x2ad2ae(0xdd)],{debug}=require(a53_0x2ad2ae(0xef)),TestHubHandler=require(a53_0x2ad2ae(0xf5));exports[a53_0x2ad2ae(0x100)]=(_0x5022da,_0x5a1275,_0x5226b8)=>new Promise(async _0x48527a=>{const _0x326289=a53_0x2ad2ae,_0xb8c77f={'nTSgA':_0x326289(0xfd),'jAzVD':function(_0x3d2120,_0xe5c656){return _0x3d2120+_0xe5c656;},'NfTHN':_0x326289(0x113),'wnUTN':_0x326289(0xe4),'ZMdXl':function(_0x1aac4c,_0x58a173){return _0x1aac4c(_0x58a173);},'HadVQ':_0x326289(0xf7),'taoJn':_0x326289(0xd3),'XkBWl':_0x326289(0xf1),'yGKOw':_0x326289(0xea),'WGTDw':_0x326289(0x106),'UAGGR':function(_0x1fcd96,_0x2508eb){return _0x1fcd96*_0x2508eb;},'LVFrh':_0x326289(0xb5),'zlcZE':_0x326289(0xd8),'KBvOQ':function(_0x2f3c61,_0x1b58e7){return _0x2f3c61*_0x1b58e7;}},_0x180d18=_0x5226b8[_0x326289(0xe1)],_0x252ea8={},_0x546c7a=new Worker(require[_0x326289(0xd1)](_0xb8c77f[_0x326289(0x105)]),{'exposedMethods':[_0xb8c77f[_0x326289(0xc9)]],'forkOptions':{'serialization':_0xb8c77f[_0x326289(0x104)],'stdio':_0xb8c77f[_0x326289(0xd0)]},'idleMemoryLimit':undefined,'maxRetries':0x1,'numWorkers':_0xb8c77f['UAGGR'](_0x5a1275,0x1),'enableWorkerThreads':!![]}),_0x209be0=new Emittery();_0x209be0['on'](_0xb8c77f[_0x326289(0x112)],_0x56ea9c=>{const _0xf3d958=_0x326289;_0x252ea8[_0x56ea9c[0x0]]?(_0x252ea8[_0x56ea9c[0x0]][_0xb8c77f[_0xf3d958(0xe2)]]=_0xb8c77f['jAzVD'](_0x252ea8[_0x56ea9c[0x0]][_0xb8c77f['nTSgA']],_0x56ea9c[0x1][_0xb8c77f[_0xf3d958(0xe2)]]),_0x252ea8[_0x56ea9c[0x0]][_0xb8c77f[_0xf3d958(0xf2)]]=[..._0x252ea8[_0x56ea9c[0x0]][_0xb8c77f[_0xf3d958(0xf2)]],..._0x56ea9c[0x1][_0xb8c77f[_0xf3d958(0xf2)]]]):_0x252ea8[_0x56ea9c[0x0]]={'failureCount':_0x56ea9c[0x1][_0xb8c77f[_0xf3d958(0xe2)]],'results':[..._0x56ea9c[0x1][_0xb8c77f['NfTHN']]]};}),_0x209be0['on'](_0xb8c77f[_0x326289(0x10e)],_0x366560=>console[_0x326289(0xda)](_0x366560[0x1]));_0x546c7a['getStdout']()&&_0x546c7a['getStdout']()[_0x326289(0x106)](process[_0x326289(0xdc)]);_0x546c7a[_0x326289(0xc5)]()&&_0x546c7a[_0x326289(0xc5)]()[_0x326289(0x106)](process[_0x326289(0xc2)]);const _0x483dc8=async()=>{const _0x2fabaa=_0x326289,{forceExited:_0x502fe3}=await _0x546c7a['end']();_0x502fe3&&console[_0x2fabaa(0x116)](_0xb8c77f[_0x2fabaa(0xe3)]);try{await TestHubHandler['stop']();}catch(_0x3d6e42){_0xb8c77f[_0x2fabaa(0xdb)](debug,'Exception\x20in\x20stop\x20build\x20request\x20to\x20Testhub\x20:\x20'+_0x3d6e42);}_0xb8c77f[_0x2fabaa(0xdb)](_0x48527a,_0x252ea8);},_0x3c520f=_0xb8c77f['ZMdXl'](pLimit,_0xb8c77f[_0x326289(0xf4)](_0x5a1275,0x1)),_0x3d13a8=_0x29a172=>_0x3c520f(async()=>{const _0xba1149=_0x326289;await _0x209be0[_0xba1149(0xbf)](_0xb8c77f[_0xba1149(0xce)],_0x29a172);const _0x4741c1=_0x546c7a[_0xba1149(0xf1)](_0x29a172,_0x180d18);try{parentPort&&_0x4741c1['UNSTABLE_onCustomMessage'](_0x526422=>{const _0x17a68e=_0xba1149;try{parentPort[_0x17a68e(0xb3)](_0x526422);}catch(_0x996d4f){logger[_0x17a68e(0xe6)](_0x17a68e(0xe7)+util[_0x17a68e(0x10b)](_0x996d4f));}});}catch(_0xd2636e){logger[_0xba1149(0xe6)](_0xba1149(0x109)+util[_0xba1149(0x10b)](_0xd2636e));}return _0x4741c1;});PerformanceTester[_0x326289(0xfa)](PerformanceEvents[_0x326289(0xc4)]),Promise[_0x326289(0xba)](_0x5022da[_0x326289(0xf3)](_0x1fde92=>_0x3d13a8(_0x1fde92)[_0x326289(0xc8)](_0x20ccc5=>_0x209be0[_0x326289(0xbf)](_0x326289(0xb5),[_0x1fde92[_0x326289(0xf0)][_0x326289(0xca)],_0x20ccc5]),_0x4a406f=>_0x209be0['emit'](_0x326289(0xd8),[_0x1fde92,_0x4a406f]))))[_0x326289(0xc8)](_0x483dc8,_0x483dc8);}),exports[a53_0x2ad2ae(0x117)]=(_0x35d082,_0xf10b56,_0x16ddaf,_0xf7da3b,_0x209908)=>{const _0x52d5c0=a53_0x2ad2ae,_0x380b98={'PBuhb':_0x52d5c0(0xb2),'EYwyI':_0x52d5c0(0xe4),'wXJxW':function(_0x5dba84,_0x631aa6){return _0x5dba84(_0x631aa6);},'IaOru':'./testWorker.js','gZgLs':'cucumberWorker','QSlFH':'json','yfTyy':_0x52d5c0(0x106),'cxfPF':'platform-run-success','ZfHqg':'platform-run-failure','kyYYT':function(_0x11ad8b,_0x2accba){return _0x11ad8b(_0x2accba);}};return new Promise(_0x2c5cbe=>{const _0x7b41b5=_0x52d5c0,_0x221bf8={'kPZRm':_0x380b98['EYwyI'],'OrlnI':function(_0x4169bb,_0x2ebaf2){const _0x464468=a53_0x5b97;return _0x380b98[_0x464468(0xbe)](_0x4169bb,_0x2ebaf2);}},_0x317d49=[],_0x218156=new Worker(require[_0x7b41b5(0xd1)](_0x380b98['IaOru']),{'exposedMethods':[_0x380b98[_0x7b41b5(0x101)]],'forkOptions':{'serialization':_0x380b98[_0x7b41b5(0xec)],'stdio':_0x380b98['yfTyy']},'numWorkers':_0x35d082[_0x7b41b5(0xd6)]||0x1,'enableWorkerThreads':!![],'idleMemoryLimit':undefined,'maxRetries':0x1}),_0x41250b=new Emittery();_0x41250b['on'](_0x380b98[_0x7b41b5(0x114)],_0x4406db=>{const _0x269c87=_0x7b41b5;_0x317d49[_0x269c87(0xbd)]([_0x4406db[0x0],_0x4406db[0x1]]);}),_0x41250b['on'](_0x380b98[_0x7b41b5(0x107)],_0x177d9b=>console['log'](_0x177d9b[0x1]));_0x218156[_0x7b41b5(0xcc)]()&&_0x218156[_0x7b41b5(0xcc)]()[_0x7b41b5(0x106)](process[_0x7b41b5(0xdc)]);_0x218156['getStderr']()&&_0x218156['getStderr']()[_0x7b41b5(0x106)](process[_0x7b41b5(0xc2)]);const _0x588ec6=async()=>{const _0xcb885d=_0x7b41b5,{forceExited:_0x528506}=await _0x218156[_0xcb885d(0xfa)]();_0x528506&&console['error'](_0x221bf8[_0xcb885d(0xbc)]),_0x221bf8[_0xcb885d(0xb4)](_0x2c5cbe,_0x317d49);},_0x40ae4f=_0x380b98[_0x7b41b5(0x10d)](pLimit,_0x35d082[_0x7b41b5(0xd6)]||0x1),_0x58fe19=(_0x3cb901,_0x146616)=>_0x40ae4f(async()=>{const _0x433f9b=_0x7b41b5;return await _0x41250b[_0x433f9b(0xbf)](_0x380b98['PBuhb'],_0x3cb901),_0xf10b56[_0x433f9b(0xf8)]=_0x16ddaf[_0x433f9b(0xe0)][_0x146616],_0xf10b56[_0x433f9b(0xcd)]=_0x146616,_0x218156['cucumberWorker'](_0x3cb901,_0xf10b56,_0x16ddaf,_0xf7da3b,_0x209908);});Promise['all'](_0x35d082['map']((_0x1d9ae1,_0x532718)=>_0x58fe19(_0x1d9ae1,_0x532718)['then'](_0x2f782f=>_0x41250b[_0x7b41b5(0xbf)](_0x7b41b5(0x10f),[_0x1d9ae1,_0x2f782f]),_0x4b2977=>_0x41250b['emit'](_0x7b41b5(0x115),[_0x1d9ae1,_0x4b2977]))))['then'](_0x588ec6,_0x588ec6);});},exports[a53_0x2ad2ae(0xd7)]=(_0x359bf6,_0x47a434)=>new Promise(_0x4cb177=>{const _0x13eacd=a53_0x2ad2ae,_0x3f9d6f={'ZiRkE':function(_0x1773f9,_0x5e23e6){return _0x1773f9===_0x5e23e6;},'kRgRp':function(_0x24f372,_0x3ff9c0){return _0x24f372!==_0x3ff9c0;},'MeUQG':_0x13eacd(0xf9),'JPYha':_0x13eacd(0xe4),'VRuUm':function(_0x3dee77,_0x4078b5){return _0x3dee77(_0x4078b5);},'mmIfk':_0x13eacd(0xd3),'qHrBA':_0x13eacd(0xc6),'jteFV':'json','EJCih':_0x13eacd(0x106),'QAQpl':_0x13eacd(0xb5),'FzyZn':_0x13eacd(0xd8)},_0x46bde8={},_0x2ad26e=new Worker(require[_0x13eacd(0xd1)](_0x3f9d6f[_0x13eacd(0xb6)]),{'exposedMethods':[_0x3f9d6f['qHrBA']],'forkOptions':{'serialization':_0x3f9d6f[_0x13eacd(0xcb)],'stdio':_0x3f9d6f['EJCih']},'numWorkers':_0x47a434,'enableWorkerThreads':![],'maxRetries':0x1,'idleMemoryLimit':undefined}),_0x2ca807=new Emittery();_0x2ca807['on'](_0x3f9d6f[_0x13eacd(0xf6)],_0x50906a=>{const _0x2c3b07=_0x13eacd;_0x50906a[0x0]&&logger[_0x2c3b07(0xd4)](_0x2c3b07(0xe5)+_0x50906a[0x1]+_0x2c3b07(0xc7),_0x50906a[0x0]);}),_0x2ca807['on'](_0x3f9d6f[_0x13eacd(0x102)],_0x215044=>{process['exitCode']=0x1;});_0x2ad26e[_0x13eacd(0xcc)]()&&_0x2ad26e[_0x13eacd(0xcc)]()[_0x13eacd(0x106)](process[_0x13eacd(0xdc)]);_0x2ad26e[_0x13eacd(0xc5)]()&&_0x2ad26e[_0x13eacd(0xc5)]()['pipe'](process['stderr']);const _0xa0eaa4=async()=>{const _0xec749a=_0x13eacd,_0x26509e={'ZDHxG':function(_0x168b33,_0x179344){const _0x5ccd40=a53_0x5b97;return _0x3f9d6f[_0x5ccd40(0x10c)](_0x168b33,_0x179344);},'jxZWx':function(_0x5b2d0b,_0x5cb979){return _0x3f9d6f['kRgRp'](_0x5b2d0b,_0x5cb979);},'GHUqX':_0x3f9d6f['MeUQG']};let _0x3b9e14=0x0;const _0x5035ef=_0x2ad26e[_0xec749a(0xfc)]['getWorkers'](),_0x2fbd67=()=>{},_0x13065c=_0x5035ef[_0xec749a(0xf3)](async _0x584ea7=>{const _0x3e9d0c=_0xec749a;_0x584ea7['send']([0x2,![]],_0x2fbd67,_0x2fbd67,_0x2fbd67),_0x584ea7['_child']['on'](_0x26509e[_0x3e9d0c(0x10a)],_0x136532=>{const _0x1cf80c=_0x3e9d0c;_0x26509e[_0x1cf80c(0xed)](_0x3b9e14,0x0)&&_0x26509e[_0x1cf80c(0xd9)](_0x136532,0x0)&&(_0x3b9e14=_0x136532);}),await _0x584ea7[_0x3e9d0c(0xc1)]();});await Promise['all'](_0x13065c),process[_0xec749a(0xb8)]=_0x3b9e14;const {forceExited:_0x4bba2e}=await _0x2ad26e[_0xec749a(0xfa)]();_0x4bba2e&&console[_0xec749a(0x116)](_0x3f9d6f[_0xec749a(0xfe)]),_0x3f9d6f[_0xec749a(0xc0)](_0x4cb177,_0x46bde8);},_0x4a7c12=_0x3f9d6f[_0x13eacd(0xc0)](pLimit,_0x47a434),_0x5bc7ba=_0x3e2863=>_0x4a7c12(async()=>{const _0x50c3df=_0x13eacd;return _0x2ad26e[_0x50c3df(0xc6)](_0x3e2863);});Promise[_0x13eacd(0xba)](_0x359bf6[_0x13eacd(0xf3)](_0x29b170=>_0x5bc7ba(_0x29b170)[_0x13eacd(0xc8)](_0x529e84=>_0x2ca807[_0x13eacd(0xbf)]('test-file-success',[_0x29b170['configuration']['platform'],_0x29b170[_0x13eacd(0xf0)][_0x13eacd(0xde)]]),_0x47ae1d=>_0x2ca807[_0x13eacd(0xbf)](_0x13eacd(0xd8),[_0x29b170,_0x47ae1d]))))[_0x13eacd(0xc8)](_0xa0eaa4,_0xa0eaa4);});
|
|
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 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a54_0x52f2(){const _0x2f6bc5=['1404525ETFEad','vanilla','runVanillaTest','dMLWX','iPDFu','1395165NtwBQx','SDK_POST_TEST','5507020lQwkPT','dQkrr','2922283UnQjRK','2NRchkr','fhWws','GvoOy','orvrQ','end','cucumber-js','../../helpers/test-observability/utils','runTest','UMHLG','zKgnc','run','255753JtlJIj','4728dvpfnZ','runCucumberTest','startMonitoring','6dhAMQX','../../helpers/performance/performance-tester','3510VMUGzA','stopMonitoring','214416DAmpxr','configuration','../launcher/launcher'];a54_0x52f2=function(){return _0x2f6bc5;};return a54_0x52f2();}const a54_0xda4c7=a54_0x1575;function a54_0x1575(_0x538a8c,_0x51551e){const _0x52f253=a54_0x52f2();return a54_0x1575=function(_0x157546,_0x33112c){_0x157546=_0x157546-0x77;let _0xd25e09=_0x52f253[_0x157546];return _0xd25e09;},a54_0x1575(_0x538a8c,_0x51551e);}(function(_0x57bf64,_0x431623){const _0x3bd128=a54_0x1575,_0x2a146c=_0x57bf64();while(!![]){try{const _0x1545cd=parseInt(_0x3bd128(0x8b))/0x1*(parseInt(_0x3bd128(0x80))/0x2)+-parseInt(_0x3bd128(0x96))/0x3+parseInt(_0x3bd128(0x93))/0x4+-parseInt(_0x3bd128(0x7b))/0x5+parseInt(_0x3bd128(0x8f))/0x6*(parseInt(_0x3bd128(0x7f))/0x7)+-parseInt(_0x3bd128(0x8c))/0x8*(parseInt(_0x3bd128(0x91))/0x9)+parseInt(_0x3bd128(0x7d))/0xa;if(_0x1545cd===_0x431623)break;else _0x2a146c['push'](_0x2a146c['shift']());}catch(_0xe0d202){_0x2a146c['push'](_0x2a146c['shift']());}}}(a54_0x52f2,0x49336));const PerformanceEvents=require('../../helpers/performance/constants')['EVENTS'],PerformanceTester=require(a54_0xda4c7(0x90)),{sleep}=require(a54_0xda4c7(0x86));exports[a54_0xda4c7(0x87)]=async(_0xe48a2b,_0x196ad8)=>{const _0x20f585=a54_0xda4c7,_0x29e6e2={'orvrQ':function(_0x3d9184,_0x3a5047){return _0x3d9184(_0x3a5047);},'dMLWX':_0x20f585(0x95),'GvoOy':'mocha','ZiDEx':function(_0x12490e,_0x1e95a3){return _0x12490e(_0x1e95a3);}};PerformanceTester[_0x20f585(0x8e)]();const _0x58d574=_0x29e6e2[_0x20f585(0x83)](require,_0x29e6e2[_0x20f585(0x79)]),_0x314abb=new _0x58d574(_0x29e6e2[_0x20f585(0x82)],_0xe48a2b,_0x196ad8),_0x299113=await _0x314abb['run']();return PerformanceTester[_0x20f585(0x84)](PerformanceEvents[_0x20f585(0x7c)]),await _0x29e6e2['ZiDEx'](sleep,0x3e8),PerformanceTester[_0x20f585(0x92)](),_0x299113;},exports[a54_0xda4c7(0x8d)]=async(_0x56b100,_0x13ced2,_0x46a1fa,_0x22bca9,_0x5e02c9)=>{const _0x219059=a54_0xda4c7,_0x3aa580={'fhWws':function(_0x3dcba3,_0x241ca7){return _0x3dcba3(_0x241ca7);},'dQkrr':_0x219059(0x95),'zKgnc':_0x219059(0x85)},_0xd31734={'capability':_0x56b100,..._0x13ced2},_0x320256={};_0x320256[_0x219059(0x94)]=_0xd31734,_0x320256['formatter']=_0x5e02c9;const _0xd11b20=_0x320256,_0x4c9d0e=_0x3aa580[_0x219059(0x81)](require,_0x3aa580[_0x219059(0x7e)]),_0x44ca41=new _0x4c9d0e(_0x3aa580[_0x219059(0x89)],_0xd11b20,_0x46a1fa,_0x22bca9);return await _0x44ca41[_0x219059(0x8a)]();},exports[a54_0xda4c7(0x78)]=async _0x2cb3e4=>{const _0x8fb093=a54_0xda4c7,_0x5898a7={'iPDFu':function(_0x764b3,_0x2d6fad){return _0x764b3(_0x2d6fad);},'UMHLG':_0x8fb093(0x95),'Llhez':_0x8fb093(0x77)},_0x146186=_0x5898a7[_0x8fb093(0x7a)](require,_0x5898a7[_0x8fb093(0x88)]),_0x4a4181=new _0x146186(_0x5898a7['Llhez'],_0x2cb3e4);return await _0x4a4181['run']();};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a55_0x39d0(){const _0x561b9d=['4433607THNVMw','1982433dGrPWD','5426757FgcsvD','738709NAapvd','UZlid','XgUyg','CQbod','vanillaWorker','2ZyHwUP','./runTest','3831184CZrJGJ','6Iztxvk','4002485JRLuAA','9687144eZOKxp','70tnSkvL','cucumberWorker'];a55_0x39d0=function(){return _0x561b9d;};return a55_0x39d0();}const a55_0x210684=a55_0x311e;(function(_0x21062f,_0x1b059a){const _0x3d2789=a55_0x311e,_0x229b7f=_0x21062f();while(!![]){try{const _0xca3b55=-parseInt(_0x3d2789(0x122))/0x1+parseInt(_0x3d2789(0x127))/0x2*(-parseInt(_0x3d2789(0x120))/0x3)+-parseInt(_0x3d2789(0x119))/0x4+parseInt(_0x3d2789(0x11b))/0x5*(-parseInt(_0x3d2789(0x11a))/0x6)+-parseInt(_0x3d2789(0x121))/0x7+parseInt(_0x3d2789(0x11c))/0x8+-parseInt(_0x3d2789(0x11f))/0x9*(-parseInt(_0x3d2789(0x11d))/0xa);if(_0xca3b55===_0x1b059a)break;else _0x229b7f['push'](_0x229b7f['shift']());}catch(_0x503cb6){_0x229b7f['push'](_0x229b7f['shift']());}}}(a55_0x39d0,0xb14ae));function a55_0x311e(_0x2b8f69,_0x3597ab){const _0x39d050=a55_0x39d0();return a55_0x311e=function(_0x311ed5,_0x2911d0){_0x311ed5=_0x311ed5-0x118;let _0x4949e6=_0x39d050[_0x311ed5];return _0x4949e6;},a55_0x311e(_0x2b8f69,_0x3597ab);}const {runTest,runCucumberTest,runVanillaTest}=require(a55_0x210684(0x118));exports['worker']=async(_0x219afd,_0x401362)=>{const _0x72ab4f=a55_0x210684,_0x2df91a={'UZlid':function(_0x47d2b1,_0x58866f,_0x42ed63){return _0x47d2b1(_0x58866f,_0x42ed63);}};return await _0x2df91a[_0x72ab4f(0x123)](runTest,_0x219afd,_0x401362);},exports[a55_0x210684(0x11e)]=async(_0x2e324b,_0x51d3cc,_0x594db4,_0x34dcf4,_0x34b839)=>{const _0x21a1b5=a55_0x210684,_0xee8e0a={'CQbod':function(_0x4c2e01,_0x177982,_0x34541d,_0x5a2b8e,_0xc8ebab,_0x1774c1){return _0x4c2e01(_0x177982,_0x34541d,_0x5a2b8e,_0xc8ebab,_0x1774c1);}};return await _0xee8e0a[_0x21a1b5(0x125)](runCucumberTest,_0x2e324b,_0x51d3cc,_0x594db4,_0x34dcf4,_0x34b839);},exports[a55_0x210684(0x126)]=async _0x428d14=>{const _0x63b662=a55_0x210684,_0x379696={'XgUyg':function(_0x4c53fa,_0x337115){return _0x4c53fa(_0x337115);}};return await _0x379696[_0x63b662(0x124)](runVanillaTest,_0x428d14);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a56_0x4a3460=a56_0x33af;(function(_0x31cc1e,_0x255cde){const _0x4514d3=a56_0x33af,_0x32d33b=_0x31cc1e();while(!![]){try{const _0x5d720d=-parseInt(_0x4514d3(0x18e))/0x1+-parseInt(_0x4514d3(0x1df))/0x2*(parseInt(_0x4514d3(0x19f))/0x3)+parseInt(_0x4514d3(0x1db))/0x4+-parseInt(_0x4514d3(0x1a8))/0x5+-parseInt(_0x4514d3(0x1be))/0x6*(-parseInt(_0x4514d3(0x1ed))/0x7)+-parseInt(_0x4514d3(0x1ad))/0x8*(parseInt(_0x4514d3(0x1e5))/0x9)+parseInt(_0x4514d3(0x1c9))/0xa;if(_0x5d720d===_0x255cde)break;else _0x32d33b['push'](_0x32d33b['shift']());}catch(_0x5a4fa9){_0x32d33b['push'](_0x32d33b['shift']());}}}(a56_0x4006,0x90b8c));const constants=require(a56_0x4a3460(0x1bc)),{nestedKeyValue}=require(a56_0x4a3460(0x1b6)),getBrowserstackCLI=()=>{const _0x35a3c4=a56_0x4a3460,_0x58a1e2={'tBOYD':function(_0x1d81ea,_0x345ec4){return _0x1d81ea(_0x345ec4);},'XCgho':_0x35a3c4(0x195)};return _0x58a1e2[_0x35a3c4(0x19b)](require,_0x58a1e2[_0x35a3c4(0x1ba)]);};class APIUtilityMethods{static[a56_0x4a3460(0x1e2)](_0x8396cc){const _0x58d270=a56_0x4a3460,_0x28bb77={'UnJxH':function(_0x46254e){return _0x46254e();},'pxdDs':function(_0x2d1183,_0x561a9b,_0x21b20e){return _0x2d1183(_0x561a9b,_0x21b20e);},'HBsRP':_0x58d270(0x1cb),'zUiMO':_0x58d270(0x1b0),'IWmTM':_0x58d270(0x194),'uNfaR':function(_0x419638,_0x3b1a26){return _0x419638===_0x3b1a26;},'sOIAA':function(_0x336507,_0x1fbd33){return _0x336507+_0x1fbd33;}},_0x3e6f23=_0x28bb77[_0x58d270(0x1d1)](getBrowserstackCLI),_0x316cbf=_0x28bb77[_0x58d270(0x1d7)](nestedKeyValue,_0x3e6f23['getInstance']()[_0x58d270(0x1bf)](),[_0x28bb77['HBsRP'],_0x28bb77[_0x58d270(0x192)],_0x28bb77[_0x58d270(0x1e4)]])||constants[_0x58d270(0x18a)];if(!_0x8396cc||_0x28bb77['uNfaR'](_0x8396cc,''))return _0x316cbf;const _0x1acb37=_0x316cbf['endsWith']('/')?_0x316cbf:_0x28bb77[_0x58d270(0x18f)](_0x316cbf,'/');return new URL(_0x8396cc,_0x1acb37)[_0x58d270(0x18d)]();}static['getEdsInstrumentationAPIUrl'](_0x2c31e0){const _0x5b1bc3=a56_0x4a3460,_0x57a0e2={'cZySf':function(_0x2d92b1){return _0x2d92b1();},'XchgL':function(_0x2a9f1d,_0x40924b,_0x50916c){return _0x2a9f1d(_0x40924b,_0x50916c);},'Ptvec':_0x5b1bc3(0x1cb),'hNesb':_0x5b1bc3(0x1c6),'DoFpl':_0x5b1bc3(0x194),'eUIqt':function(_0x5df111,_0x39320e){return _0x5df111===_0x39320e;},'FSZCh':function(_0x25848c,_0x298e80){return _0x25848c+_0x298e80;}},_0x4cd848=_0x57a0e2[_0x5b1bc3(0x19c)](getBrowserstackCLI),_0x3f2721=_0x57a0e2[_0x5b1bc3(0x1e9)](nestedKeyValue,_0x4cd848['getInstance']()['getConfig'](),[_0x57a0e2['Ptvec'],_0x57a0e2['hNesb'],_0x57a0e2[_0x5b1bc3(0x1a9)]])||constants[_0x5b1bc3(0x19e)];if(!_0x2c31e0||_0x57a0e2[_0x5b1bc3(0x1a2)](_0x2c31e0,''))return _0x3f2721;const _0x381506=_0x3f2721[_0x5b1bc3(0x1d5)]('/')?_0x3f2721:_0x57a0e2['FSZCh'](_0x3f2721,'/');return new URL(_0x2c31e0,_0x381506)[_0x5b1bc3(0x18d)]();}static['getAutomateSessionStatusAPIUrl'](_0x3792db){const _0x5502d5=a56_0x4a3460,_0x2e5717={'XcGFq':function(_0x21e653){return _0x21e653();},'FYyUx':function(_0x22d098,_0x14a696,_0xe31463){return _0x22d098(_0x14a696,_0xe31463);},'IhrDp':_0x5502d5(0x1cb),'BpNeq':_0x5502d5(0x1b0),'GyVNb':_0x5502d5(0x194),'ljXCJ':function(_0xf4f9bd,_0x1ebdc4){return _0xf4f9bd===_0x1ebdc4;},'VbjIz':function(_0x45e42e,_0x192cfa){return _0x45e42e+_0x192cfa;}},_0x315963=_0x2e5717[_0x5502d5(0x1e1)](getBrowserstackCLI),_0x5e9c92=_0x2e5717[_0x5502d5(0x1e7)](nestedKeyValue,_0x315963[_0x5502d5(0x1b2)]()[_0x5502d5(0x1bf)](),[_0x2e5717[_0x5502d5(0x1a3)],_0x2e5717[_0x5502d5(0x1e6)],_0x2e5717[_0x5502d5(0x1b8)]])||constants['BROWSERSTACK_API_URL'];if(!_0x3792db||_0x2e5717[_0x5502d5(0x1e3)](_0x3792db,''))return _0x5e9c92;const _0x2a7db1=_0x5e9c92['endsWith']('/')?_0x5e9c92:_0x2e5717[_0x5502d5(0x1b5)](_0x5e9c92,'/');return new URL(_0x3792db,_0x2a7db1)['toString']();}static[a56_0x4a3460(0x193)](_0x379316){const _0x42cd5e=a56_0x4a3460,_0x5eb50f={'wrQLr':function(_0x1ddc75){return _0x1ddc75();},'oSAhM':function(_0x261eca,_0x18ec66,_0x2f2890){return _0x261eca(_0x18ec66,_0x2f2890);},'CZZfl':'apis','CKhLN':'appAutomate','GZSCm':_0x42cd5e(0x194),'LneRD':function(_0x5de8b7,_0xa8341d){return _0x5de8b7===_0xa8341d;},'jLMXc':function(_0x1244bc,_0x33132a){return _0x1244bc+_0x33132a;}},_0x38435a=_0x5eb50f['wrQLr'](getBrowserstackCLI),_0x18cc1b=_0x5eb50f[_0x42cd5e(0x1a0)](nestedKeyValue,_0x38435a[_0x42cd5e(0x1b2)]()[_0x42cd5e(0x1bf)](),[_0x5eb50f['CZZfl'],_0x5eb50f[_0x42cd5e(0x1eb)],_0x5eb50f[_0x42cd5e(0x1bd)]])||constants[_0x42cd5e(0x18a)];if(!_0x379316||_0x5eb50f[_0x42cd5e(0x1da)](_0x379316,''))return _0x18cc1b;const _0x318a4f=_0x18cc1b[_0x42cd5e(0x1d5)]('/')?_0x18cc1b:_0x5eb50f[_0x42cd5e(0x1c2)](_0x18cc1b,'/');return new URL(_0x379316,_0x318a4f)['toString']();}static['getAutomateSessionNameAPIUrl'](_0x19875f){const _0x31204a=a56_0x4a3460,_0x41f1c5={'zgGkp':function(_0x538666){return _0x538666();},'EELMW':function(_0x1c03b5,_0x45672e,_0x507c24){return _0x1c03b5(_0x45672e,_0x507c24);},'LmMxz':_0x31204a(0x1cb),'ymbfw':_0x31204a(0x1b0),'CcuEd':_0x31204a(0x194),'NRMWV':function(_0x333532,_0x3b5b19){return _0x333532===_0x3b5b19;},'kphBo':function(_0x294806,_0x525002){return _0x294806+_0x525002;}},_0x347458=_0x41f1c5['zgGkp'](getBrowserstackCLI),_0x5b4298=_0x41f1c5['EELMW'](nestedKeyValue,_0x347458[_0x31204a(0x1b2)]()[_0x31204a(0x1bf)](),[_0x41f1c5[_0x31204a(0x197)],_0x41f1c5['ymbfw'],_0x41f1c5['CcuEd']])||constants[_0x31204a(0x18a)];if(!_0x19875f||_0x41f1c5[_0x31204a(0x1bb)](_0x19875f,''))return _0x5b4298;const _0x21acdd=_0x5b4298[_0x31204a(0x1d5)]('/')?_0x5b4298:_0x41f1c5[_0x31204a(0x1b4)](_0x5b4298,'/');return new URL(_0x19875f,_0x21acdd)['toString']();}static[a56_0x4a3460(0x1dc)](_0x546d05){const _0x39a06d=a56_0x4a3460,_0x420956={'zTSsF':function(_0x456276){return _0x456276();},'ygyry':function(_0x5db7b0,_0x127966,_0x30ae60){return _0x5db7b0(_0x127966,_0x30ae60);},'fGDgI':_0x39a06d(0x1cb),'Mvmzf':_0x39a06d(0x1dd),'nigqy':_0x39a06d(0x194),'OtkjB':function(_0x44ae10,_0xc3d330){return _0x44ae10===_0xc3d330;},'tfInn':function(_0x5194e3,_0x491c1f){return _0x5194e3+_0x491c1f;}},_0x21aced=_0x420956[_0x39a06d(0x1ec)](getBrowserstackCLI),_0x1df935=_0x420956[_0x39a06d(0x18c)](nestedKeyValue,_0x21aced[_0x39a06d(0x1b2)]()[_0x39a06d(0x1bf)](),[_0x420956[_0x39a06d(0x1ab)],_0x420956[_0x39a06d(0x19a)],_0x420956[_0x39a06d(0x186)]])||constants[_0x39a06d(0x18a)];if(!_0x546d05||_0x420956[_0x39a06d(0x1d9)](_0x546d05,''))return _0x1df935;const _0x4bb195=_0x1df935['endsWith']('/')?_0x1df935:_0x420956[_0x39a06d(0x189)](_0x1df935,'/');return new URL(_0x546d05,_0x4bb195)[_0x39a06d(0x18d)]();}static[a56_0x4a3460(0x188)](_0xfde463){const _0x28af2b=a56_0x4a3460,_0xa2ef28={'nozJA':function(_0x13360f){return _0x13360f();},'GResU':function(_0xdeae17,_0x453036,_0x12ba5f){return _0xdeae17(_0x453036,_0x12ba5f);},'iGDGa':'apis','xVlHo':_0x28af2b(0x1b0),'XwMtR':'api','IiBHU':function(_0x31b3a2,_0x31849f){return _0x31b3a2===_0x31849f;},'dmScI':function(_0x575906,_0x255e99){return _0x575906+_0x255e99;}},_0x396c74=_0xa2ef28[_0x28af2b(0x1c4)](getBrowserstackCLI),_0x4bb952=_0xa2ef28[_0x28af2b(0x1a1)](nestedKeyValue,_0x396c74['getInstance']()[_0x28af2b(0x1bf)](),[_0xa2ef28['iGDGa'],_0xa2ef28[_0x28af2b(0x187)],_0xa2ef28['XwMtR']])||constants[_0x28af2b(0x18a)];if(!_0xfde463||_0xa2ef28[_0x28af2b(0x1d6)](_0xfde463,''))return _0x4bb952;const _0x10760b=_0x4bb952[_0x28af2b(0x1d5)]('/')?_0x4bb952:_0xa2ef28[_0x28af2b(0x1c7)](_0x4bb952,'/');return new URL(_0xfde463,_0x10760b)['toString']()[_0x28af2b(0x1b3)](/^https?:\/\//,'');}static[a56_0x4a3460(0x18b)](_0x14eb46){const _0x3fdc04=a56_0x4a3460,_0x1c225b={'HPhcv':function(_0x5e21c8){return _0x5e21c8();},'weOin':function(_0x2e073c,_0x147642,_0x1d95cd){return _0x2e073c(_0x147642,_0x1d95cd);},'IJOQl':_0x3fdc04(0x1cb),'yBjaf':_0x3fdc04(0x1dd),'hWKmm':'api','harMR':function(_0x3092b8,_0x111077){return _0x3092b8===_0x111077;},'fVPDT':function(_0x592866,_0x3fd1eb){return _0x592866+_0x3fd1eb;}},_0x406ea5=_0x1c225b[_0x3fdc04(0x1b7)](getBrowserstackCLI),_0x4eb1f6=_0x1c225b[_0x3fdc04(0x1d0)](nestedKeyValue,_0x406ea5[_0x3fdc04(0x1b2)]()[_0x3fdc04(0x1bf)](),[_0x1c225b[_0x3fdc04(0x19d)],_0x1c225b[_0x3fdc04(0x1ea)],_0x1c225b[_0x3fdc04(0x1a4)]])||constants['APP_UPLOAD_URL'];if(!_0x14eb46||_0x1c225b[_0x3fdc04(0x1cc)](_0x14eb46,''))return _0x4eb1f6;const _0x4770a7=_0x4eb1f6['endsWith']('/')?_0x4eb1f6:_0x1c225b[_0x3fdc04(0x1a5)](_0x4eb1f6,'/');return new URL(_0x14eb46,_0x4770a7)['toString']()[_0x3fdc04(0x1b3)](/^https?:\/\//,'');}static['getAutoCaptureLogsAPIUrl'](_0x45cb71){const _0x270a16=a56_0x4a3460,_0x335b22={'lJWAo':function(_0x3eb42d){return _0x3eb42d();},'MlCpi':function(_0x454207,_0x4e051a,_0x4296c7){return _0x454207(_0x4e051a,_0x4296c7);},'LZKiy':_0x270a16(0x1cb),'fiobi':_0x270a16(0x1b1),'SsnCJ':_0x270a16(0x190),'jJtuD':function(_0x132d00,_0x4a16b){return _0x132d00===_0x4a16b;},'ycpQE':function(_0x254125,_0x158ffc){return _0x254125+_0x158ffc;}},_0x44b763=_0x335b22['lJWAo'](getBrowserstackCLI),_0x10dfc5=_0x335b22[_0x270a16(0x1a6)](nestedKeyValue,_0x44b763[_0x270a16(0x1b2)]()[_0x270a16(0x1bf)](),[_0x335b22['LZKiy'],_0x335b22[_0x270a16(0x1d4)],_0x335b22[_0x270a16(0x1ac)]])||constants[_0x270a16(0x199)];if(!_0x45cb71||_0x335b22[_0x270a16(0x1cd)](_0x45cb71,''))return _0x10dfc5;const _0x3b3af4=_0x10dfc5[_0x270a16(0x1d5)]('/')?_0x10dfc5:_0x335b22[_0x270a16(0x196)](_0x10dfc5,'/');return new URL(_0x45cb71,_0x3b3af4)[_0x270a16(0x18d)]();}static[a56_0x4a3460(0x1d8)](_0x44c052){const _0x2b1df8=a56_0x4a3460,_0x4ae86d={'SLoIq':function(_0x4ce5b8){return _0x4ce5b8();},'eyHHa':function(_0x2a9330,_0xded113,_0x27d5fc){return _0x2a9330(_0xded113,_0x27d5fc);},'ANZEd':'apis','zcfOM':_0x2b1df8(0x1b0),'PnjUL':_0x2b1df8(0x1d2),'GRRcC':'wss:','VOYkh':function(_0x302126,_0x32f0b0){return _0x302126===_0x32f0b0;},'KFqqV':function(_0x45369d,_0x2e27a9){return _0x45369d+_0x2e27a9;},'icWHT':_0x2b1df8(0x1d3)},_0x46de29=_0x4ae86d[_0x2b1df8(0x191)](getBrowserstackCLI),_0x229b29=_0x4ae86d[_0x2b1df8(0x1af)](nestedKeyValue,_0x46de29[_0x2b1df8(0x1b2)]()[_0x2b1df8(0x1bf)](),[_0x4ae86d['ANZEd'],_0x4ae86d['zcfOM'],_0x4ae86d[_0x2b1df8(0x1cf)]]),_0x46b80f=(_0x229b29?_0x229b29[_0x2b1df8(0x1b3)](/^https:/,_0x4ae86d[_0x2b1df8(0x1c1)]):null)||constants[_0x2b1df8(0x198)];let _0x5be9ee;if(!_0x44c052||_0x4ae86d[_0x2b1df8(0x1a7)](_0x44c052,''))_0x5be9ee=_0x46b80f;else{const _0x583c6f=_0x46b80f[_0x2b1df8(0x1d5)]('/')?_0x46b80f:_0x4ae86d[_0x2b1df8(0x1c8)](_0x46b80f,'/');_0x5be9ee=new URL(_0x44c052,_0x583c6f)[_0x2b1df8(0x18d)]();}return!_0x5be9ee[_0x2b1df8(0x1d5)](_0x4ae86d['icWHT'])&&(_0x5be9ee+=_0x4ae86d['icWHT']),_0x5be9ee;}static[a56_0x4a3460(0x1b9)](_0x720fcd){const _0x450d75=a56_0x4a3460,_0x20fbc6={'quJLA':function(_0xf1f314){return _0xf1f314();},'aAEwW':function(_0x4d1da7,_0x11adc9,_0xb38d11){return _0x4d1da7(_0x11adc9,_0xb38d11);},'Ajguk':_0x450d75(0x1cb),'mKROT':_0x450d75(0x1b0),'LIqZG':_0x450d75(0x1d2),'TKilz':_0x450d75(0x1ae),'zbEkg':function(_0xf087d1,_0x8a31f9){return _0xf087d1===_0x8a31f9;},'yzHWh':function(_0x14cb0a,_0x1edbe6){return _0x14cb0a+_0x1edbe6;},'bosfW':_0x450d75(0x1c0)},_0x307647=_0x20fbc6[_0x450d75(0x1de)](getBrowserstackCLI),_0x366a49=_0x20fbc6[_0x450d75(0x1e0)](nestedKeyValue,_0x307647[_0x450d75(0x1b2)]()[_0x450d75(0x1bf)](),[_0x20fbc6['Ajguk'],_0x20fbc6[_0x450d75(0x1ce)],_0x20fbc6['LIqZG']]),_0x16bc89=(_0x366a49?_0x366a49[_0x450d75(0x1b3)](/^https:/,_0x20fbc6['TKilz']):null)||constants[_0x450d75(0x1ca)];let _0x3b9f46;if(!_0x720fcd||_0x20fbc6[_0x450d75(0x1aa)](_0x720fcd,''))_0x3b9f46=_0x16bc89;else{const _0x5b5a45=_0x16bc89[_0x450d75(0x1d5)]('/')?_0x16bc89:_0x20fbc6[_0x450d75(0x1e8)](_0x16bc89,'/');_0x3b9f46=new URL(_0x720fcd,_0x5b5a45)[_0x450d75(0x18d)]();}return!_0x3b9f46[_0x450d75(0x1d5)](_0x20fbc6[_0x450d75(0x1c5)])&&(_0x3b9f46+=_0x20fbc6[_0x450d75(0x1c5)]),_0x3b9f46;}}function a56_0x33af(_0x38d5ee,_0x16437c){const _0x400662=a56_0x4006();return a56_0x33af=function(_0x33af68,_0x300c42){_0x33af68=_0x33af68-0x186;let _0x45ff3b=_0x400662[_0x33af68];return _0x45ff3b;},a56_0x33af(_0x38d5ee,_0x16437c);}module[a56_0x4a3460(0x1c3)]=APIUtilityMethods;function a56_0x4006(){const _0xe3022=['36150540yAJQih','PUPPETEER_HUB_URL','apis','harMR','jJtuD','mKROT','PnjUL','weOin','UnJxH','cdp','/playwright?caps=','fiobi','endsWith','IiBHU','pxdDs','getPlaywrightHubUrl','OtkjB','LneRD','989044BCATvA','getAppAutomateSessionNameAPIUrl','appAutomate','quJLA','6LuGwir','aAEwW','XcGFq','getBStackAPIUrl','ljXCJ','IWmTM','729XyiooS','BpNeq','FYyUx','yzHWh','XchgL','yBjaf','CKhLN','zTSsF','28TQKoAX','nigqy','xVlHo','getAutomateSessionsListAPIUrl','tfInn','BROWSERSTACK_API_URL','getAppAutomateSessionsListAPIUrl','ygyry','toString','1107655rzMqMa','sOIAA','upload','SLoIq','zUiMO','getAppAutomateSessionStatusAPIUrl','api','../v2/browserstackCLI','ycpQE','LmMxz','PLAYWRIGHT_HUB_URL','OBSERVABILITY_UPLOAD_URL','Mvmzf','tBOYD','cZySf','IJOQl','EDS_URL','596982WINaYG','oSAhM','GResU','eUIqt','IhrDp','hWKmm','fVPDT','MlCpi','VOYkh','5674965lCbOPO','DoFpl','zbEkg','fGDgI','SsnCJ','85736czamvI','wss:','eyHHa','automate','observability','getInstance','replace','kphBo','VbjIz','./sharedUtils','HPhcv','GyVNb','getPuppeteerHubUrl','XCgho','NRMWV','./constants','GZSCm','657258WWoUtI','getConfig','/puppeteer?caps=','GRRcC','jLMXc','exports','nozJA','bosfW','edsInstrumentation','dmScI','KFqqV'];a56_0x4006=function(){return _0xe3022;};return a56_0x4006();}
|
|
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 +1 @@
|
|
|
1
|
-
function a57_0x4a49(_0x3b5ed0,_0x575afa){const _0x5da81a=a57_0x5da8();return a57_0x4a49=function(_0x4a4929,_0x249901){_0x4a4929=_0x4a4929-0x127;let _0xc9af94=_0x5da81a[_0x4a4929];return _0xc9af94;},a57_0x4a49(_0x3b5ed0,_0x575afa);}const a57_0x370e3a=a57_0x4a49;(function(_0x3d64a3,_0x5d6582){const _0x4b1651=a57_0x4a49,_0x243afe=_0x3d64a3();while(!![]){try{const _0x2f44e1=parseInt(_0x4b1651(0x17c))/0x1*(parseInt(_0x4b1651(0x139))/0x2)+-parseInt(_0x4b1651(0x150))/0x3+-parseInt(_0x4b1651(0x131))/0x4+parseInt(_0x4b1651(0x16e))/0x5+parseInt(_0x4b1651(0x142))/0x6+-parseInt(_0x4b1651(0x13e))/0x7+parseInt(_0x4b1651(0x12b))/0x8;if(_0x2f44e1===_0x5d6582)break;else _0x243afe['push'](_0x243afe['shift']());}catch(_0x10db36){_0x243afe['push'](_0x243afe['shift']());}}}(a57_0x5da8,0x815ac));const logger=require(a57_0x370e3a(0x13c))[a57_0x370e3a(0x15f)],BrowserstackCLI=require(a57_0x370e3a(0x180)),GrpcClient=require(a57_0x370e3a(0x181)),constants=require(a57_0x370e3a(0x149));function a57_0x5da8(){const _0x59b5bd=['KBbaK','lVzgr','getErrorCodes','getErrorMessage','checkForErrorsOccuredInCLI','{CLIENT_TROUBLESHOOTING_DOCUMENTATION}','mXXNO','184mANphE','OIBAX','toString','../../helpers/logger','reportDotBrowserStackFolderNotAccessibleIssue','5866854ZUbOmy','VxQCo','errorCodesOccurredInCLI','errorCodesOccurredWhenCLINotRunning','5538534GtZJWD','errorCode','oLtgH','uawNy','jerqB','errorCodes','stringify','./constants','HEalX','reportConflictingEnvVarIssue','Error\x20in\x20getting\x20error\x20details\x20for\x20','[ClientTroubleShootingService]\x20','documentationLink','reportClientTroubleshootingError','2687805xYaeZU','IYKvp','lTJEq','reportSessionLinkingIssue','rZEjV','conflicting\x20env\x20var\x20detected','getErrorCode','{ENV_VAR}','zVzof','DlLin','cachedErrorCodes','cHvVr','Session\x20Linking\x20Issue\x20details\x20not\x20found','XBuDC','warn','winstonLogger','rsfPZ','WMdEM','CWQTE','Process\x20Interruption\x20details\x20not\x20found:','FjQDS','getErrorDetails','hhjWT','keys','isArray','exports','getSuccess','EKpog','length','getCachedErrorCodes','286845ruCHzR','replace','logSituation','getFinalErrorMessage','Process\x20Interruption','ssl\x20cert\x20issue','hHIWX','Fdkqa','finalErrorMessage','JMXSg','DBIYO','error','from','logError','8998kLQZVQ','object','StRBw','SSL\x20Certificate\x20Issue\x20details\x20not\x20found','../v2/browserstackCLI','../v2/grpcClient','isRunning','errorMessage','reportFinalDetectionState','HUGux','add','getAggregatedErrorCodes','push','parse','Error\x20in\x20getting\x20aggregated\x20error\x20codes:','Conflicting\x20Env\x20Var\x20details\x20not\x20found','join','.browserstack\x20Folder\x20Not\x20Accessible\x20details\x20not\x20found','6255336pXAqNJ','getInstance','UaolP','reportSSLCertIssue','ILbaY','DPyUU','1305192cIHygH'];a57_0x5da8=function(){return _0x59b5bd;};return a57_0x5da8();}class ClientTroubleShootingService{static [a57_0x370e3a(0x15a)]=null;static ['errorCodesOccurredWhenCLINotRunning']=new Set();static async[a57_0x370e3a(0x165)](_0x1a5f30){const _0x1c3ba6=a57_0x370e3a,_0x484bdb={};_0x484bdb['HUGux']=function(_0x3e2ee2,_0x3a1fb5){return _0x3e2ee2!==_0x3a1fb5;};const _0x3a6df7=_0x484bdb;try{if(BrowserstackCLI['getInstance']()[_0x1c3ba6(0x182)]()){const _0x497fd7=await GrpcClient[_0x1c3ba6(0x12c)]()[_0x1c3ba6(0x14f)](_0x1a5f30);if(_0x3a6df7[_0x1c3ba6(0x185)](_0x497fd7,null)&&_0x497fd7[_0x1c3ba6(0x16a)]())return{'errorCode':_0x497fd7[_0x1c3ba6(0x156)](),'errorMessage':_0x497fd7[_0x1c3ba6(0x135)]()};return{};}return{};}catch(_0x3202cf){return this[_0x1c3ba6(0x17b)](_0x1c3ba6(0x14c)+_0x1a5f30+':',_0x3202cf),{};}}static async[a57_0x370e3a(0x187)](){const _0x1bb994=a57_0x370e3a,_0x485d66={};_0x485d66[_0x1bb994(0x174)]=function(_0x54956c,_0x42ff44){return _0x54956c!==_0x42ff44;},_0x485d66[_0x1bb994(0x130)]='base64',_0x485d66[_0x1bb994(0x132)]=_0x1bb994(0x127);const _0x44b9bd=_0x485d66;try{if(BrowserstackCLI[_0x1bb994(0x12c)]()[_0x1bb994(0x182)]()){const _0x5152f0=await GrpcClient[_0x1bb994(0x12c)]()['getAggregatedClientTroubleshootingErrors']();if(_0x44b9bd['hHIWX'](_0x5152f0,null)&&_0x5152f0[_0x1bb994(0x16a)]()){const _0x5f03a3=Buffer[_0x1bb994(0x17a)](_0x5152f0[_0x1bb994(0x134)](),_0x44b9bd['DPyUU'])[_0x1bb994(0x13b)](),_0xbc53d=_0x5f03a3?JSON[_0x1bb994(0x189)](_0x5f03a3):[],_0x43c51a=_0x5152f0['getDocumentationLink'](),_0x31bac3=_0x5152f0[_0x1bb994(0x171)](),_0x2e457f=Buffer['from'](_0x5152f0['getErrorCodesOccurredInCli'](),_0x44b9bd['DPyUU'])[_0x1bb994(0x13b)](),_0xb33af6=_0x2e457f?JSON[_0x1bb994(0x189)](_0x2e457f):[],_0x29468d={};return _0x29468d[_0x1bb994(0x147)]=_0xbc53d,_0x29468d[_0x1bb994(0x14e)]=_0x43c51a,_0x29468d[_0x1bb994(0x176)]=_0x31bac3,_0x29468d[_0x1bb994(0x140)]=_0xb33af6,_0x29468d;}const _0x17817e={};return _0x17817e[_0x1bb994(0x147)]=[],_0x17817e[_0x1bb994(0x14e)]='',_0x17817e[_0x1bb994(0x176)]='',_0x17817e[_0x1bb994(0x140)]=[],_0x17817e;}const _0x531147={};return _0x531147[_0x1bb994(0x147)]=[],_0x531147[_0x1bb994(0x14e)]='',_0x531147['finalErrorMessage']='',_0x531147[_0x1bb994(0x140)]=[],_0x531147;}catch(_0x2e6bf3){this[_0x1bb994(0x17b)](_0x44b9bd['KBbaK'],_0x2e6bf3);const _0x3753f0={};return _0x3753f0['errorCodes']=[],_0x3753f0['documentationLink']='',_0x3753f0[_0x1bb994(0x176)]='',_0x3753f0[_0x1bb994(0x140)]=[],_0x3753f0;}}static[a57_0x370e3a(0x170)](_0x35e592,_0x2b9f8b){const _0x476708=a57_0x370e3a;logger[_0x476708(0x15e)](_0x35e592+':\x20'+_0x2b9f8b);}static[a57_0x370e3a(0x136)](_0x73a62d){const _0x4bded6=a57_0x370e3a,_0xe7678f={};_0xe7678f[_0x4bded6(0x160)]=function(_0x5e8c35,_0x415fbd){return _0x5e8c35!=_0x415fbd;},_0xe7678f[_0x4bded6(0x15d)]=function(_0x2b69cc,_0x4fdbf2){return _0x2b69cc>_0x4fdbf2;},_0xe7678f[_0x4bded6(0x12d)]=function(_0x1b9e06,_0x4ed5bf){return _0x1b9e06!=_0x4ed5bf;};const _0x44f1b9=_0xe7678f,_0x1385c2=[];if(_0x44f1b9[_0x4bded6(0x160)](_0x73a62d,null)&&_0x44f1b9[_0x4bded6(0x160)](_0x73a62d[_0x4bded6(0x140)],null)&&_0x44f1b9[_0x4bded6(0x15d)](_0x73a62d['errorCodesOccurredInCLI'][_0x4bded6(0x16c)],0x0))for(const _0xceb0c0 of _0x73a62d[_0x4bded6(0x140)]){_0x44f1b9[_0x4bded6(0x160)](_0xceb0c0[_0x4bded6(0x143)],null)&&_0x44f1b9[_0x4bded6(0x12d)](_0xceb0c0['errorMessage'],null)&&(_0x1385c2[_0x4bded6(0x188)](_0xceb0c0[_0x4bded6(0x143)]),this[_0x4bded6(0x170)](_0xceb0c0[_0x4bded6(0x143)],_0xceb0c0[_0x4bded6(0x183)]));}return _0x1385c2;}static[a57_0x370e3a(0x16d)](){return this['cachedErrorCodes'];}static[a57_0x370e3a(0x17b)](_0xd1e3c1,_0x5924d2){const _0x1cabca=a57_0x370e3a,_0x295e5a={};_0x295e5a[_0x1cabca(0x15b)]=function(_0x150058,_0x353b93){return _0x150058===_0x353b93;},_0x295e5a[_0x1cabca(0x13f)]=_0x1cabca(0x17d);const _0x48cd55=_0x295e5a;if(_0x48cd55[_0x1cabca(0x15b)](typeof _0x5924d2,_0x48cd55[_0x1cabca(0x13f)]))try{logger[_0x1cabca(0x179)](_0x1cabca(0x14d)+_0xd1e3c1+'\x20'+JSON[_0x1cabca(0x148)](_0x5924d2));}catch(_0x320487){logger[_0x1cabca(0x179)](_0x1cabca(0x14d)+_0xd1e3c1+'\x20'+_0x5924d2);}else logger[_0x1cabca(0x179)]('[ClientTroubleShootingService]\x20'+_0xd1e3c1+'\x20'+_0x5924d2);}static async['reportProcessInterruptionSituation'](_0x1b315d){const _0x2b1078=a57_0x370e3a,_0x3b0f98={};_0x3b0f98[_0x2b1078(0x178)]=_0x2b1078(0x172),_0x3b0f98[_0x2b1078(0x16b)]=function(_0xcc5a1b,_0x35e1e1){return _0xcc5a1b===_0x35e1e1;},_0x3b0f98[_0x2b1078(0x12f)]=_0x2b1078(0x163),_0x3b0f98[_0x2b1078(0x166)]='{SIGNAL}';const _0x3f6284=_0x3b0f98,_0x6da837=await this[_0x2b1078(0x165)](_0x3f6284[_0x2b1078(0x178)]);if(!_0x6da837||_0x3f6284[_0x2b1078(0x16b)](Object[_0x2b1078(0x167)](_0x6da837)['length'],0x0)){this[_0x2b1078(0x17b)](_0x3f6284['ILbaY'],_0x6da837);return;}this['logSituation'](_0x6da837[_0x2b1078(0x143)],_0x6da837['errorMessage'][_0x2b1078(0x16f)](_0x3f6284[_0x2b1078(0x166)],_0x1b315d));}static async[a57_0x370e3a(0x153)](){const _0x4d5286=a57_0x370e3a,_0x59ad65={};_0x59ad65[_0x4d5286(0x145)]='Session\x20Linking\x20Issue',_0x59ad65['uhHPn']=function(_0xf70173,_0x1f5f8a){return _0xf70173===_0x1f5f8a;},_0x59ad65[_0x4d5286(0x162)]=_0x4d5286(0x15c);const _0x3d81a0=_0x59ad65,_0x2027bf=await this[_0x4d5286(0x165)](_0x3d81a0['uawNy']);if(!_0x2027bf||_0x3d81a0['uhHPn'](Object[_0x4d5286(0x167)](_0x2027bf)[_0x4d5286(0x16c)],0x0)){this[_0x4d5286(0x17b)](_0x3d81a0['CWQTE'],_0x2027bf);return;}this[_0x4d5286(0x170)](_0x2027bf[_0x4d5286(0x143)],_0x2027bf['errorMessage']);}static async['reportConnectivityIssue'](){const _0x388f22=a57_0x370e3a,_0x273ffd={};_0x273ffd[_0x388f22(0x17e)]='browserstack\x20cloud\x20not\x20reachable',_0x273ffd[_0x388f22(0x14a)]=function(_0xc7beb0,_0x12c78a){return _0xc7beb0===_0x12c78a;},_0x273ffd[_0x388f22(0x144)]='Connectivity\x20Issue\x20details\x20not\x20found';const _0xb43da9=_0x273ffd,_0x552f91=await this['getErrorDetails'](_0xb43da9[_0x388f22(0x17e)]);if(!_0x552f91||_0xb43da9[_0x388f22(0x14a)](Object[_0x388f22(0x167)](_0x552f91)[_0x388f22(0x16c)],0x0)){this[_0x388f22(0x17b)](_0xb43da9[_0x388f22(0x144)],_0x552f91);return;}this[_0x388f22(0x170)](_0x552f91[_0x388f22(0x143)],_0x552f91[_0x388f22(0x183)]);}static async[a57_0x370e3a(0x12e)](){const _0x22533b=a57_0x370e3a,_0x5acd03={};_0x5acd03[_0x22533b(0x175)]=_0x22533b(0x173),_0x5acd03[_0x22533b(0x154)]=function(_0x2cf038,_0x2884ef){return _0x2cf038===_0x2884ef;},_0x5acd03[_0x22533b(0x13a)]=_0x22533b(0x17f);const _0x577519=_0x5acd03,_0x523b50=await this['getErrorDetails'](_0x577519[_0x22533b(0x175)]);if(!_0x523b50||_0x577519[_0x22533b(0x154)](Object[_0x22533b(0x167)](_0x523b50)[_0x22533b(0x16c)],0x0)){this['logError'](_0x577519[_0x22533b(0x13a)],_0x523b50);return;}this[_0x22533b(0x170)](_0x523b50['errorCode'],_0x523b50[_0x22533b(0x183)]);}static[a57_0x370e3a(0x13d)](){const _0x59c0d3=a57_0x370e3a,_0x32e456={};_0x32e456['DlLin']='.browserstack\x20folder\x20not\x20accessible',_0x32e456['lTJEq']=function(_0x2bec0e,_0x35770f){return _0x2bec0e===_0x35770f;},_0x32e456[_0x59c0d3(0x133)]=_0x59c0d3(0x12a);const _0x28905a=_0x32e456,_0x35e545=constants['CLIENT_TROUBLESHOOTING_HASH'][_0x28905a[_0x59c0d3(0x159)]];if(!_0x35e545||_0x28905a[_0x59c0d3(0x152)](Object[_0x59c0d3(0x167)](_0x35e545)[_0x59c0d3(0x16c)],0x0)){this[_0x59c0d3(0x17b)](_0x28905a[_0x59c0d3(0x133)],_0x35e545);return;}this[_0x59c0d3(0x141)][_0x59c0d3(0x186)](_0x35e545[0x0]),this['logSituation'](_0x35e545[0x0],_0x35e545[0x1]);}static async[a57_0x370e3a(0x14b)](_0x5bf195){const _0x5e1022=a57_0x370e3a,_0x587ffe={};_0x587ffe[_0x5e1022(0x161)]=_0x5e1022(0x155),_0x587ffe[_0x5e1022(0x146)]=function(_0x48ec44,_0x4e5836){return _0x48ec44===_0x4e5836;},_0x587ffe[_0x5e1022(0x151)]=_0x5e1022(0x128),_0x587ffe[_0x5e1022(0x177)]=_0x5e1022(0x157);const _0x1b41f0=_0x587ffe,_0x3faefd=await this['getErrorDetails'](_0x1b41f0[_0x5e1022(0x161)]);if(!_0x3faefd||_0x1b41f0[_0x5e1022(0x146)](Object[_0x5e1022(0x167)](_0x3faefd)[_0x5e1022(0x16c)],0x0)){this[_0x5e1022(0x17b)](_0x1b41f0[_0x5e1022(0x151)],_0x3faefd);return;}const _0xf0362f=_0x3faefd[_0x5e1022(0x183)][_0x5e1022(0x16f)](_0x1b41f0[_0x5e1022(0x177)],_0x5bf195);this[_0x5e1022(0x170)](_0x3faefd['errorCode'],_0xf0362f);}static async[a57_0x370e3a(0x184)](){const _0x439ae2=a57_0x370e3a,_0x8c976d={};_0x8c976d[_0x439ae2(0x138)]=function(_0x55803a,_0x5c2e9f){return _0x55803a>_0x5c2e9f;},_0x8c976d[_0x439ae2(0x164)]='{ERROR_CODES}',_0x8c976d[_0x439ae2(0x158)]=_0x439ae2(0x137);const _0x1fe354=_0x8c976d,_0x6113d4=await this[_0x439ae2(0x187)](),_0x44e008=this[_0x439ae2(0x136)](_0x6113d4),_0x59b364=Array[_0x439ae2(0x168)](_0x6113d4[_0x439ae2(0x147)])?_0x6113d4[_0x439ae2(0x147)]:[],_0x43b6bf=_0x1fe354[_0x439ae2(0x138)](this[_0x439ae2(0x141)]['size'],0x0)?Array['from'](this[_0x439ae2(0x141)]):[],_0x4a4fb8=new Set([..._0x59b364,..._0x44e008,..._0x43b6bf]),_0x3e5417=Array[_0x439ae2(0x17a)](_0x4a4fb8);if(_0x1fe354['mXXNO'](_0x3e5417[_0x439ae2(0x16c)],0x0)){const _0x593a88=_0x6113d4['finalErrorMessage'][_0x439ae2(0x16f)](_0x1fe354[_0x439ae2(0x164)],_0x3e5417[_0x439ae2(0x129)](',\x20'))[_0x439ae2(0x16f)](_0x1fe354[_0x439ae2(0x158)],_0x6113d4[_0x439ae2(0x14e)]);logger[_0x439ae2(0x15e)](_0x593a88),this[_0x439ae2(0x15a)]=_0x3e5417;}}}module[a57_0x370e3a(0x169)]=ClientTroubleShootingService;
|
|
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;
|