browserstack-node-sdk 1.65.3 → 1.65.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/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/jasmine/bstack-reporter/customReporter.js +1 -1
- package/src/bin/jasmine/command.js +1 -1
- package/src/bin/jasmine/test.setup.js +1 -1
- package/src/bin/jasmine/testRunMap.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/loadErrors.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/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/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/node-generic/client.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/reporterArgs.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/testcafe/a11y-runner.js +1 -1
- package/src/bin/testcafe/command.js +1 -1
- package/src/bin/testcafe/reporter/index.js +1 -1
- package/src/bin/testcafe/reporter/tcUtils.js +1 -1
- package/src/bin/testcafe/session-registry.js +1 -1
- package/src/bin/testcafe/stdout-interceptor.js +1 -1
- package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
- package/src/bin/testcafe/w3c-driver.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/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/nodeGenericTestFramework.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/framework/testcafeAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testcafeTestFramework.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/testcafeDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/sdkErrorHandler.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/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/caCertHelper.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/driverInitErrorReporter.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/stackFrameUtils.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/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
package/src/bin/v2/cliUtils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a85_0x1134b4=a85_0x1523;(function(_0x4a33d2,_0x86f759){const _0x6ba619=a85_0x1523,_0x4e11bc=_0x4a33d2();while(!![]){try{const _0x509bcc=parseInt(_0x6ba619(0x140))/0x1+-parseInt(_0x6ba619(0x1d4))/0x2*(-parseInt(_0x6ba619(0x122))/0x3)+-parseInt(_0x6ba619(0x18f))/0x4*(-parseInt(_0x6ba619(0x157))/0x5)+parseInt(_0x6ba619(0x1cd))/0x6+-parseInt(_0x6ba619(0x1bf))/0x7+parseInt(_0x6ba619(0x1a1))/0x8*(parseInt(_0x6ba619(0x1dd))/0x9)+-parseInt(_0x6ba619(0x1b7))/0xa;if(_0x509bcc===_0x86f759)break;else _0x4e11bc['push'](_0x4e11bc['shift']());}catch(_0x4e7275){_0x4e11bc['push'](_0x4e11bc['shift']());}}}(a85_0x30ad,0x656b9));const fs=require('fs'),os=require('os'),url=require(a85_0x1134b4(0x188)),path=require('path'),{exec}=require('child_process'),{https}=require('follow-redirects'),yauzl=require('yauzl'),util=require(a85_0x1134b4(0x11a)),{getFrameworkVersion}=require(a85_0x1134b4(0x144)),{threadId}=require(a85_0x1134b4(0x1f2)),PerformanceTester=require('../../helpers/performance/performance-tester.js'),{EVENTS:PerformanceEvents}=require(a85_0x1134b4(0x17e)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a85_0x1134b4(0x181)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require('../../helpers/helper'),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a85_0x1134b4(0x120)),{createClassLogger}=require(a85_0x1134b4(0x17f)),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require('./state/hookState.js'),TestFrameworkState=require('./state/testFrameworkState.js'),AutomationFrameworkState=require('./state/automationFrameworkState.js'),TestFrameworkConstants=require(a85_0x1134b4(0x13d)),logger=createClassLogger(a85_0x1134b4(0x1f5)),{getBStackAPIUrl}=require(a85_0x1134b4(0x127));function a85_0x1523(_0x1e93f5,_0x3b2b41){const _0x30add6=a85_0x30ad();return a85_0x1523=function(_0x1523e9,_0x1338a8){_0x1523e9=_0x1523e9-0x119;let _0x6b5f78=_0x30add6[_0x1523e9];return _0x6b5f78;},a85_0x1523(_0x1e93f5,_0x3b2b41);}function a85_0x30ad(){const _0x30ed76=['oqzrU','readEntry','data','SDK_CLI_DOWNLOAD','getTestFrameworkDetail','2|4|1|0|3','zRHUI','19615ajZawY','WzpEr','pipe','testContextOptions','basename','isDevelopmentEnv','Folder\x20does\x20not\x20exist:\x20','checkAndUpdateCli','TvMBv',',\x20automationFramework=','qabwm','isDirectory','stringify','info','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','existsSync','listen','getHookRegistryKey','BROWSERSTACK_CLI_ENV','timeout','mtime','Binary\x20is\x20busy:\x20','BROWSERSTACK_FILES_DIR','LHFIT','ewdHC','mQqwI','DjXtU','CdxlX','Development\x20Cli\x20Path:\x20','xMQzv','destroy','HTTP\x20','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','getSdkVersion','ANMAH','parse','message','hiRbf','gbrGU','../../helpers/performance/constants','../../helpers/classLogger.js','Failed\x20to\x20delete\x20zip\x20file:\x20','../../helpers/utilities','itjaG','Yddve','chmod','entries','PtHhT','includes','url','test','CLI\x20version\x20found\x20despite\x20error:\x20\x22','vLlVG','code','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','arch','356iGAJhx','sPLgM','tlgAw','gbVbk','.tmp.','Failed\x20to\x20download\x20SDK\x20binary:\x20%s','DOWNLOAD_HTTP','resume','IPGQR','.browserstack','nSDcI','0755','zybtU','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','PIKJv','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','downloadLatestBinary','72nnOMJj','pdGNj','start','trim','copyFileSync','statusCode','oYZku','../../../package.json','actft','tmpdir','eORjq','env','downloaded_file_','rDTqM','readdirSync','jQEkf','Setting\x20required\x20permissions\x20to\x20','yxkCG','setFrameworkDetail','skipSessionName','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','6113240GMhWCc','isBinaryBusy','pOBfV','tUtpb','Error\x20while\x20reading\x20CLI\x20path:\x20','downloadFileStream','WkFeE','yCgTV','2841895FrtAvi','.sock','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','runShellCommand','HLaJN','oSDCW','zpCVi','map','zKjEe','OLJeT','startsWith','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','statSync','TlxQZ','1540056DorhIX','EXDEV','CnTQA','XKnGo','JfVeD','platform','error','2XdILnm','format','createWriteStream','split','entry','bzPwe','XUVcQ','isArray','exports','472284KCOMjQ','FhYzh','QkIjK','fileName','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','node','HOOK_REGEX','end','SbZzS','lazyEntries','bKwUT','filePath','SHELL_EXECUTE_ERROR','UyouV','dNjsq','OPOVq','close','HFdHN','Vrgzu','debug','warn','worker_threads','idWTk','getSdkLanguage','CLIUtils','zsQMr','LUkZq','SDK_CLI_BIN_PATH','testFrameworkDetail','shouldSkipSessionStatus','\x20from\x20','getCliDir','version','rename','unlink','NvakZ','oVFpo','xUDCy','util','Folder\x20','CyiBU','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','getCLIParamsForDevEnv','mergeObject','../utils/constants','BROWSERSTACK_BINARY_URL','829191EuNKrj','SGtRs','UTBJh','Downloading\x20SDK\x20binary\x20from:\x20','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','../utils/apiUtilityMethods.js','isFile','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','.zip','shouldSkipSessionName','scdTn','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','cli','getExistingCliPath','cIBDN','BrfkV','automationFrameworkDetail','cli_version','join','SDK_CLI_CHECK_UPDATE','object','getWritableDir','bjaPC','YGxiV','OeBQb','LxgBm','./framework/constants/testFrameworkConstants.js','\x20already\x20exists','Resolving\x20with\x20stdout:\x20\x22','78222LHTOqA','vfYHW','qkIHu','openReadStream','../../helpers/test-observability/utils.js','nbXTp','homedir','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','matchHookRegex','ilSjw','OEqfj','pid','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','GET','getAutomationFrameworkDetail','skipSessionStatus'];a85_0x30ad=function(){return _0x30ed76;};return a85_0x30ad();}class CLIUtils{[a85_0x1134b4(0x133)]={};['testFrameworkDetail']={};static[a85_0x1134b4(0x15c)](){const _0x4ec645=a85_0x1134b4,_0x29a5e3={};_0x29a5e3[_0x4ec645(0x183)]=function(_0x1e8527,_0x3ae576){return _0x1e8527===_0x3ae576;},_0x29a5e3['ewdHC']='development';const _0x4d3cf6=_0x29a5e3;return _0x4d3cf6[_0x4ec645(0x183)](process[_0x4ec645(0x1ac)][_0x4ec645(0x169)],_0x4d3cf6[_0x4ec645(0x16f)]);}static[a85_0x1134b4(0x11e)](){const _0x40a4bf=a85_0x1134b4,_0x4e82b3={};return _0x4e82b3['id']=process[_0x40a4bf(0x1ac)][_0x40a4bf(0x169)],_0x4e82b3[_0x40a4bf(0x167)]='unix:/tmp/sdk-platform-'+process['env']['BROWSERSTACK_CLI_ENV']+_0x40a4bf(0x1c0),_0x4e82b3;}static['getSdkVersion'](){const _0x1f55db=a85_0x1134b4,_0x3026dc={'nbXTp':function(_0x28d0f1,_0x531aa7){return _0x28d0f1(_0x531aa7);},'KtDBN':_0x1f55db(0x1a8)};return _0x3026dc[_0x1f55db(0x145)](require,_0x3026dc['KtDBN'])[_0x1f55db(0x1fd)];}static['getSdkLanguage'](){const _0x58d6f4=a85_0x1134b4,_0x382ca6={};_0x382ca6[_0x58d6f4(0x1ea)]=_0x58d6f4(0x1e2);const _0x2e1d6e=_0x382ca6;return _0x2e1d6e[_0x58d6f4(0x1ea)];}static async['setupCliPath'](_0x2f3cce){const _0xf3bc2c=a85_0x1134b4,_0x4eef44={'nvDvm':'Configuring\x20Cli\x20path.','itjaG':function(_0x46b89c,_0x4b69a3){return _0x46b89c(_0x4b69a3);},'pvdMk':_0xf3bc2c(0x12e)};logger['debug'](_0x4eef44['nvDvm']);const _0x5ae2a5=process[_0xf3bc2c(0x1ac)][_0xf3bc2c(0x1f8)];if(!_0x4eef44[_0xf3bc2c(0x182)](isNullOrEmpty,_0x5ae2a5))return logger['debug'](_0xf3bc2c(0x173)+_0x5ae2a5),_0x5ae2a5;try{const _0x4aa3d5=this[_0xf3bc2c(0x1fc)]();if(_0x4eef44[_0xf3bc2c(0x182)](isNullOrEmpty,_0x4aa3d5))throw new Error(_0x4eef44['pvdMk']);const _0x360654=this[_0xf3bc2c(0x130)](_0x4aa3d5),_0x560178=await this[_0xf3bc2c(0x15e)](_0x360654,_0x4aa3d5,_0x2f3cce);return logger[_0xf3bc2c(0x1f0)]('Resolved\x20binary\x20path:\x20'+_0x560178),_0x560178;}catch(_0x41604f){logger[_0xf3bc2c(0x1f0)](_0xf3bc2c(0x18d)+util['format'](_0x41604f));}return null;}static async['checkAndUpdateCli'](_0x4d291d,_0x449fc5,_0x4375eb){const _0x77b612=a85_0x1134b4,_0x4fcb88={'xLEGO':function(_0x4ed871){return _0x4ed871();},'qkIHu':function(_0x4c4c6c,_0x21c7f1){return _0x4c4c6c(_0x21c7f1);},'vxRza':function(_0x46f096,_0x38590e,_0x272cc3){return _0x46f096(_0x38590e,_0x272cc3);},'scdTn':_0x77b612(0x152),'rDTqM':'url','GrsZI':function(_0x293918,_0x1b2a14){return _0x293918(_0x1b2a14);},'QkIjK':function(_0xd54389,_0x238624,_0x3ca225){return _0xd54389(_0x238624,_0x3ca225);}};PerformanceTester[_0x77b612(0x1a3)](PerformanceEvents[_0x77b612(0x136)]);try{logger[_0x77b612(0x164)]('Current\x20CLI\x20Path\x20Found:\x20'+_0x4d291d);const _0x49da04=_0x4fcb88['xLEGO'](getHostInfo),_0x4dab30={'sdk_version':CLIUtils[_0x77b612(0x178)](),'os':_0x49da04[_0x77b612(0x1d2)],'os_arch':_0x49da04[_0x77b612(0x18e)],'cli_version':'0','sdk_language':this[_0x77b612(0x1f4)]()};!_0x4fcb88[_0x77b612(0x142)](isNullOrEmpty,_0x4d291d)&&(_0x4dab30[_0x77b612(0x134)]=await this[_0x77b612(0x1c2)](_0x4d291d+'\x20version'));const _0x32af7e=await this['requestToUpdateCLI'](_0x4dab30,_0x4375eb);process[_0x77b612(0x1ac)][_0x77b612(0x121)]&&(logger['info'](_0x77b612(0x165)+process[_0x77b612(0x1ac)][_0x77b612(0x121)]),_0x32af7e[_0x77b612(0x152)][_0x77b612(0x188)]=process[_0x77b612(0x1ac)][_0x77b612(0x121)]);if(_0x4fcb88['vxRza'](nestedKeyValue,_0x32af7e,[_0x4fcb88[_0x77b612(0x12c)],_0x4fcb88[_0x77b612(0x1ae)]])){logger[_0x77b612(0x1f0)](_0x77b612(0x12d)+_0x4dab30[_0x77b612(0x134)]);if(!_0x4fcb88['GrsZI'](isNullOrEmpty,_0x4d291d)&&this[_0x77b612(0x1b8)](_0x4d291d))return logger[_0x77b612(0x1f1)](_0x77b612(0x1ca)+_0x4d291d),_0x4d291d;return await this[_0x77b612(0x1a0)](_0x4fcb88[_0x77b612(0x1df)](nestedKeyValue,_0x32af7e,[_0x4fcb88[_0x77b612(0x12c)],_0x4fcb88['rDTqM']]),_0x449fc5);}return _0x4d291d;}finally{PerformanceTester[_0x77b612(0x1e4)](PerformanceEvents[_0x77b612(0x136)]);}}static['getCliDir'](){const _0x28f27e=a85_0x1134b4,_0x43fa39={'YGxiV':function(_0x526e60,_0x1b152d){return _0x526e60(_0x1b152d);},'xknXm':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','hiRbf':_0x28f27e(0x12f),'YhFiu':function(_0x1a25e2,_0x4ad101){return _0x1a25e2(_0x4ad101);}},_0x3b45fc=this[_0x28f27e(0x138)]();try{if(_0x43fa39[_0x28f27e(0x13a)](isNullOrEmpty,_0x3b45fc))throw new Error(_0x43fa39['xknXm']);const _0x4fac3b=path[_0x28f27e(0x135)](_0x3b45fc,_0x43fa39[_0x28f27e(0x17c)]);return!fs[_0x28f27e(0x166)](_0x4fac3b)&&_0x43fa39['YhFiu'](createDir,_0x4fac3b),_0x4fac3b;}catch(_0x5316cb){logger[_0x28f27e(0x1f0)](_0x28f27e(0x19f)+util['format'](_0x5316cb));}}static[a85_0x1134b4(0x138)](){const _0x20b766=a85_0x1134b4,_0x805160={'HFdHN':_0x20b766(0x198),'zRHUI':function(_0x3f3198,_0xa0928c){return _0x3f3198(_0xa0928c);},'JfVeD':function(_0x7133d9,_0x396d66){return _0x7133d9(_0x396d66);},'WzpEr':function(_0x1a5359,_0x5f2ccf){return _0x1a5359(_0x5f2ccf);},'pOBfV':function(_0x3d4e35,_0x2f1787){return _0x3d4e35(_0x2f1787);},'CdxlX':function(_0x485f2f,_0x491261){return _0x485f2f(_0x491261);},'ucJzQ':function(_0x55e7ee,_0x57513c){return _0x55e7ee(_0x57513c);}},_0x574ebe=[process[_0x20b766(0x1ac)][_0x20b766(0x16d)],path[_0x20b766(0x135)](os[_0x20b766(0x146)](),_0x805160[_0x20b766(0x1ee)]),path[_0x20b766(0x135)](os[_0x20b766(0x1aa)](),_0x805160[_0x20b766(0x1ee)])];for(const _0x1850d7 of _0x574ebe){if(_0x805160[_0x20b766(0x156)](isNullOrEmpty,_0x1850d7))continue;try{if(fs[_0x20b766(0x166)](_0x1850d7)){logger[_0x20b766(0x1f0)](_0x20b766(0x11b)+_0x1850d7+_0x20b766(0x13e));if(!_0x805160[_0x20b766(0x1d1)](isModifiable,_0x1850d7)){logger[_0x20b766(0x1f0)](_0x20b766(0x1b1)+_0x1850d7);const _0x209dbf=_0x805160[_0x20b766(0x158)](setReadWriteExecuteAccess,_0x1850d7);if(!_0x805160[_0x20b766(0x1b9)](isTrue,_0x209dbf)){logger[_0x20b766(0x1f1)]('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x1850d7);continue;}}}else{logger[_0x20b766(0x1f0)](_0x20b766(0x15d)+_0x1850d7),_0x805160[_0x20b766(0x1b9)](createDir,_0x1850d7),logger[_0x20b766(0x1f0)]('Setting\x20required\x20permissions\x20to\x20'+_0x1850d7);const _0xb887d1=_0x805160[_0x20b766(0x172)](setReadWriteExecuteAccess,_0x1850d7);!_0x805160['ucJzQ'](isTrue,_0xb887d1)&&logger[_0x20b766(0x1f1)]('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x1850d7);}return _0x1850d7;}catch(_0x2600c0){logger[_0x20b766(0x1d3)](_0x20b766(0x19c)+util['format'](_0x2600c0));}}return null;}static[a85_0x1134b4(0x130)](_0x4c3cbe){const _0x5ca2d8=a85_0x1134b4,_0x522990={};_0x522990[_0x5ca2d8(0x150)]=function(_0x4bd24d,_0x2bdc71){return _0x4bd24d>_0x2bdc71;};const _0x1b06d5=_0x522990;try{if(!fs[_0x5ca2d8(0x166)](_0x4c3cbe)||!fs[_0x5ca2d8(0x1cb)](_0x4c3cbe)[_0x5ca2d8(0x162)]())return'';const _0x4475e4=fs[_0x5ca2d8(0x1af)](_0x4c3cbe)[_0x5ca2d8(0x1c6)](_0x577d0a=>path['join'](_0x4c3cbe,_0x577d0a))['filter'](_0x3a8245=>fs['statSync'](_0x3a8245)[_0x5ca2d8(0x128)]()&&path[_0x5ca2d8(0x15b)](_0x3a8245)[_0x5ca2d8(0x1c9)]('binary-'));if(_0x1b06d5[_0x5ca2d8(0x150)](_0x4475e4['length'],0x0)){const _0x333b03=_0x4475e4[_0x5ca2d8(0x1c6)](_0x428bbf=>({'filePath':_0x428bbf,'mtime':fs['statSync'](_0x428bbf)[_0x5ca2d8(0x16b)]}))['reduce']((_0x539953,_0x50179d)=>{const _0x1fc88e=_0x5ca2d8;if(!_0x539953||!_0x539953[_0x1fc88e(0x16b)])return _0x50179d;if(_0x1b06d5[_0x1fc88e(0x150)](_0x50179d[_0x1fc88e(0x16b)],_0x539953['mtime']))return _0x50179d;return _0x539953;},{});return _0x333b03?_0x333b03[_0x5ca2d8(0x1e8)]:'';}return'';}catch(_0x353f53){return logger[_0x5ca2d8(0x1d3)](_0x5ca2d8(0x1bb)+util['format'](_0x353f53)),'';}}static ['requestToUpdateCLI']=async(_0x30b4c2,_0x4bd7ef)=>{const _0x32f02e=a85_0x1134b4,_0x1c6c0f={'bjaPC':function(_0x1e726c,_0x5377c9,_0x32dc6a,_0x39797b,_0x243c53){return _0x1e726c(_0x5377c9,_0x32dc6a,_0x39797b,_0x243c53);},'LxgBm':_0x32f02e(0x14d)},_0x25115a={};_0x25115a['qs']=_0x30b4c2,_0x25115a['preserveStatusCodeOnError']=!![];const _0x1ccee1=await _0x1c6c0f[_0x32f02e(0x139)](nodeRequest,_0x1c6c0f[_0x32f02e(0x13c)],UPDATED_CLI_ENDPOINT,_0x25115a,_0x4bd7ef);return logger['debug']('response\x20'+JSON['stringify'](_0x1ccee1)),_0x1ccee1;};static[a85_0x1134b4(0x1b8)](_0x2372e8){const _0x2232ec=a85_0x1134b4;try{const _0x3efff0=fs['openSync'](_0x2372e8,'r+');return fs['closeSync'](_0x3efff0),![];}catch(_0x22b44c){if(BINARY_BUSY_ERROR_CODES[_0x2232ec(0x187)](_0x22b44c[_0x2232ec(0x18c)]))return logger[_0x2232ec(0x1f0)](_0x2232ec(0x16c)+_0x2372e8),!![];return logger[_0x2232ec(0x1f0)]('Error\x20checking\x20if\x20binary\x20is\x20busy:\x20'+_0x22b44c[_0x2232ec(0x17b)]),![];}}static[a85_0x1134b4(0x1c2)](_0x3b1215,_0x1d9ff4=''){const _0x53e8fc=a85_0x1134b4,_0x45126a={'bzPwe':_0x53e8fc(0x1fd),'vLlVG':function(_0x5491fa,_0x331205){return _0x5491fa(_0x331205);},'BZJOr':_0x53e8fc(0x1e9),'WkFeE':function(_0xb6cc5,_0x5a1eb1,_0x46f748,_0x3a732e){return _0xb6cc5(_0x5a1eb1,_0x46f748,_0x3a732e);},'QuhlW':_0x53e8fc(0x1d3)};return new Promise((_0x35d906,_0x66a6f3)=>{const _0xc0f977=_0x53e8fc,_0x2dcbbc={'kqqaW':_0x45126a[_0xc0f977(0x1d9)],'sPLgM':function(_0x3cae46,_0x24eec7){const _0x41b44e=_0xc0f977;return _0x45126a[_0x41b44e(0x18b)](_0x3cae46,_0x24eec7);},'cIBDN':_0x45126a['BZJOr']},_0x3318cc={};_0x3318cc['cwd']=_0x1d9ff4,_0x3318cc[_0xc0f977(0x16a)]=0x1388;const _0x505c3e=_0x45126a[_0xc0f977(0x1bd)](exec,_0x3b1215,_0x3318cc,(_0x2a40bf,_0x1274a4,_0x47dfd3)=>{const _0x139f80=_0xc0f977;if(_0x2a40bf){if(_0x3b1215[_0x139f80(0x187)](_0x2dcbbc['kqqaW'])&&(_0x1274a4[_0x139f80(0x1a4)]()||_0x47dfd3[_0x139f80(0x1a4)]())){const _0x2b6d2b=_0x1274a4[_0x139f80(0x1a4)]()||_0x47dfd3[_0x139f80(0x1a4)]();logger[_0x139f80(0x1f0)](_0x139f80(0x18a)+_0x2b6d2b+'\x22'),_0x2dcbbc['sPLgM'](_0x35d906,_0x2b6d2b);}else _0x2dcbbc[_0x139f80(0x190)](_0x35d906,_0x47dfd3['trim']()||_0x2dcbbc[_0x139f80(0x131)]);}else logger[_0x139f80(0x1f0)](_0x139f80(0x13f)+_0x1274a4['trim']()+'\x22'),_0x2dcbbc[_0x139f80(0x190)](_0x35d906,_0x1274a4[_0x139f80(0x1a4)]());});_0x505c3e['on'](_0x45126a['QuhlW'],()=>{_0x2dcbbc['sPLgM'](_0x35d906,_0x2dcbbc['cIBDN']);});});}static ['downloadLatestBinary']=async(_0x2e7643,_0xb7757e)=>{const _0xda3805=a85_0x1134b4,_0x610839={'yCgTV':function(_0x440a6e,_0x2d4d26){return _0x440a6e>=_0x2d4d26;},'tlgAw':_0xda3805(0x195),'tUtpb':'SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','gbrGU':function(_0x395647,_0x4be2ae){return _0x395647(_0x4be2ae);},'CyiBU':'error','LHFIT':_0xda3805(0x147),'yxkCG':_0xda3805(0x129),'bKwUT':function(_0x1c0e3f,_0x2ea9d6){return _0x1c0e3f(_0x2ea9d6);},'lHiXZ':_0xda3805(0x194)};PerformanceTester['start'](PerformanceEvents['SDK_CLI_DOWNLOAD']),logger['debug'](_0xda3805(0x125)+_0x2e7643);try{const _0x26a7ff=url[_0xda3805(0x17a)](_0x2e7643),_0x3a9ea7=path['join'](_0xb7757e,_0xda3805(0x1ad)+process['pid']+_0xda3805(0x12a)),_0x544f64=fs[_0xda3805(0x1d6)](_0x3a9ea7);return new Promise((_0x253c5a,_0x32216e)=>{const _0x302fdf=_0xda3805,_0x2f3017={'BrfkV':_0x610839[_0x302fdf(0x16e)],'vfYHW':function(_0x3acc5f,_0x5177f2){const _0x1dd385=_0x302fdf;return _0x610839[_0x1dd385(0x17d)](_0x3acc5f,_0x5177f2);},'zpCVi':_0x610839[_0x302fdf(0x1b2)],'OPOVq':function(_0x85d8bf,_0x27f734){const _0x469ca8=_0x302fdf;return _0x610839[_0x469ca8(0x1e7)](_0x85d8bf,_0x27f734);},'Fmepj':function(_0x3a20c6,_0x2d85c){const _0x1cd4db=_0x302fdf;return _0x610839[_0x1cd4db(0x1e7)](_0x3a20c6,_0x2d85c);}};https['get'](_0x26a7ff,function(_0x38b045){const _0x111c92=_0x302fdf,_0x3cf40d=null;if(_0x38b045[_0x111c92(0x1a6)]&&_0x610839[_0x111c92(0x1be)](_0x38b045[_0x111c92(0x1a6)],0x190)){const _0x59c443=new Error('SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20'+_0x38b045[_0x111c92(0x1a6)]+_0x111c92(0x1fb)+_0x2e7643);_0x59c443[_0x111c92(0x18c)]=_0x610839[_0x111c92(0x191)],_0x59c443[_0x111c92(0x1a6)]=_0x38b045[_0x111c92(0x1a6)],logger[_0x111c92(0x1d3)](util[_0x111c92(0x1d5)](_0x610839[_0x111c92(0x1ba)],_0x38b045[_0x111c92(0x1a6)])),PerformanceTester[_0x111c92(0x1e4)](PerformanceEvents[_0x111c92(0x153)],![],_0x111c92(0x176)+_0x38b045[_0x111c92(0x1a6)]),_0x38b045[_0x111c92(0x196)](),_0x544f64[_0x111c92(0x175)](),fs[_0x111c92(0x1ff)](_0x3a9ea7,()=>{}),_0x610839['gbrGU'](_0x32216e,_0x59c443);return;}_0x38b045[_0x111c92(0x159)](_0x544f64),_0x38b045['on'](_0x610839[_0x111c92(0x11c)],function(_0x1d6fc6){const _0x1974f9=_0x111c92;logger[_0x1974f9(0x1d3)](util['format'](_0x2f3017[_0x1974f9(0x132)],_0x1d6fc6)),PerformanceTester[_0x1974f9(0x1e4)](PerformanceEvents[_0x1974f9(0x153)],![],util[_0x1974f9(0x1d5)](_0x1d6fc6)),_0x2f3017[_0x1974f9(0x141)](_0x32216e,_0x1d6fc6);}),_0x544f64['on'](_0x610839[_0x111c92(0x11c)],function(_0x424e1f){const _0xd54038=_0x111c92;logger['error'](util['format'](_0x2f3017[_0xd54038(0x1c5)],_0x424e1f)),PerformanceTester[_0xd54038(0x1e4)](PerformanceEvents[_0xd54038(0x153)],![],util['format'](_0x424e1f)),_0x2f3017[_0xd54038(0x1ec)](_0x32216e,_0x424e1f);}),CLIUtils[_0x111c92(0x1bc)](_0x544f64,_0x3cf40d,_0x3a9ea7,_0xb7757e,_0x29efe0=>{const _0x2b4d56=_0x111c92;PerformanceTester[_0x2b4d56(0x1e4)](PerformanceEvents['SDK_CLI_DOWNLOAD']),_0x2f3017[_0x2b4d56(0x1ec)](_0x253c5a,_0x29efe0);},_0x2329b1=>{const _0x338b86=_0x111c92;PerformanceTester[_0x338b86(0x1e4)](PerformanceEvents[_0x338b86(0x153)],![],util[_0x338b86(0x1d5)](_0x2329b1)),_0x2f3017['Fmepj'](_0x32216e,_0x2329b1);});})['on'](_0x610839[_0x302fdf(0x11c)],function(_0x445162){const _0x385f11=_0x302fdf;logger[_0x385f11(0x1d3)]('Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20'+util['format'](_0x445162)),PerformanceTester['end'](PerformanceEvents[_0x385f11(0x153)],![],util[_0x385f11(0x1d5)](_0x445162)),_0x610839[_0x385f11(0x17d)](_0x32216e,_0x445162);});});}catch(_0x5443f3){PerformanceTester[_0xda3805(0x1e4)](PerformanceEvents[_0xda3805(0x153)],![],util[_0xda3805(0x1d5)](_0x5443f3)),logger[_0xda3805(0x1d3)](util['format'](_0x610839['lHiXZ'],_0x5443f3));throw _0x5443f3;}};static['downloadFileStream'](_0x2babdc,_0x34047f,_0x19d2d0,_0x43751f,_0x1a775e,_0x425bc1){const _0x1136e0=a85_0x1134b4,_0x293199={'SbZzS':function(_0x16f5be,_0x5b9bed){return _0x16f5be(_0x5b9bed);},'PwHFa':_0x1136e0(0x1ed),'eORjq':_0x1136e0(0x1e4),'oHgsz':function(_0x4c70f8,_0x3c5195){return _0x4c70f8!==_0x3c5195;},'xMQzv':_0x1136e0(0x1d3),'SGtRs':_0x1136e0(0x1ce),'actft':_0x1136e0(0x19a),'LUkZq':function(_0x22082c,_0x128c44){return _0x22082c(_0x128c44);},'VTtja':_0x1136e0(0x1d8)};_0x2babdc['on'](_0x293199['PwHFa'],function(){const _0x49fc4d=_0x1136e0,_0x3c1650={'oSDCW':function(_0xe0ddd7,_0x331454){const _0x1b8b7e=a85_0x1523;return _0x293199[_0x1b8b7e(0x1e5)](_0xe0ddd7,_0x331454);},'mQqwI':_0x293199['PwHFa'],'faqRM':function(_0x45f5ae,_0xb10132){const _0x3f0a03=a85_0x1523;return _0x293199[_0x3f0a03(0x1e5)](_0x45f5ae,_0xb10132);},'ANMAH':_0x293199[_0x49fc4d(0x1ab)],'nSDcI':function(_0x5803ce,_0x2ea062){return _0x293199['oHgsz'](_0x5803ce,_0x2ea062);},'gbVbk':function(_0x5409c3,_0x3637cf){return _0x293199['SbZzS'](_0x5409c3,_0x3637cf);},'TlxQZ':_0x293199[_0x49fc4d(0x174)],'jQEkf':function(_0x19aa43,_0x5b3d17){const _0x3513d8=_0x49fc4d;return _0x293199[_0x3513d8(0x1e5)](_0x19aa43,_0x5b3d17);},'qabwm':_0x293199[_0x49fc4d(0x123)],'xUDCy':_0x293199[_0x49fc4d(0x1a9)],'idWTk':function(_0x115db0,_0x34f8b2){const _0x16673c=_0x49fc4d;return _0x293199[_0x16673c(0x1f7)](_0x115db0,_0x34f8b2);},'Vrgzu':_0x293199['VTtja']},_0x140ac7={};_0x140ac7[_0x49fc4d(0x1e6)]=!![],yauzl['open'](_0x19d2d0,_0x140ac7,function(_0x2901d5,_0x277cbf){const _0x145816=_0x49fc4d,_0x3f45ec={'OLJeT':function(_0x5bd17d,_0x26530c){const _0x150f80=a85_0x1523;return _0x3c1650[_0x150f80(0x1c4)](_0x5bd17d,_0x26530c);},'OEqfj':_0x3c1650[_0x145816(0x170)],'zybtU':function(_0x29e04a,_0x4d3a81){return _0x3c1650['faqRM'](_0x29e04a,_0x4d3a81);},'qFIAt':_0x3c1650['ANMAH'],'HoflY':function(_0x2a5f7d,_0xbbb04d){const _0x3d6655=_0x145816;return _0x3c1650[_0x3d6655(0x199)](_0x2a5f7d,_0xbbb04d);},'UTBJh':function(_0x20f1d2,_0x202c68){return _0x3c1650['gbVbk'](_0x20f1d2,_0x202c68);},'oYZku':_0x3c1650[_0x145816(0x1cc)],'zsQMr':function(_0x51a587,_0x3aab6c){const _0x1919e8=_0x145816;return _0x3c1650[_0x1919e8(0x1b0)](_0x51a587,_0x3aab6c);},'Ertnc':function(_0x38823f,_0x2417d7){return _0x3c1650['nSDcI'](_0x38823f,_0x2417d7);},'azvhr':_0x3c1650[_0x145816(0x161)],'cMqmj':function(_0x4a506c,_0x4e192b){const _0x22f0e0=_0x145816;return _0x3c1650[_0x22f0e0(0x192)](_0x4a506c,_0x4e192b);},'XUVcQ':function(_0x58f40b,_0x1a5e77){return _0x3c1650['jQEkf'](_0x58f40b,_0x1a5e77);},'HLaJN':_0x3c1650[_0x145816(0x119)]};if(_0x2901d5){_0x3c1650[_0x145816(0x1f3)](_0x425bc1,_0x2901d5);return;}_0x277cbf[_0x145816(0x151)](),_0x277cbf['on'](_0x3c1650[_0x145816(0x1ef)],_0x25d2ab=>{const _0x2821a4=_0x145816,_0x4268ad={'IPGQR':_0x3f45ec[_0x2821a4(0x14a)],'CnTQA':function(_0x13598d,_0x1bf3dc){const _0x1d15bf=_0x2821a4;return _0x3f45ec[_0x1d15bf(0x19b)](_0x13598d,_0x1bf3dc);},'ilSjw':_0x3f45ec['qFIAt']};if(/\/$/[_0x2821a4(0x189)](_0x25d2ab[_0x2821a4(0x1e0)])){_0x277cbf[_0x2821a4(0x151)]();return;}!_0x34047f&&(_0x34047f=_0x25d2ab[_0x2821a4(0x1e0)]);if(_0x3f45ec['HoflY'](_0x25d2ab['fileName'],_0x34047f))_0x277cbf['readEntry']();else{const _0x28e9de=_0x25d2ab['fileName'],_0x52ac17=path[_0x2821a4(0x135)](_0x43751f,_0x28e9de+'.tmp.'+process[_0x2821a4(0x14b)]);let _0x3193f8;try{_0x3193f8=fs[_0x2821a4(0x1d6)](_0x52ac17);}catch(_0x3977be){if(BINARY_BUSY_ERROR_CODES['includes'](_0x3977be[_0x2821a4(0x18c)])){const _0x89c4ed=path[_0x2821a4(0x135)](_0x43751f,_0x28e9de);if(fs[_0x2821a4(0x166)](_0x89c4ed)){logger[_0x2821a4(0x1f1)](_0x2821a4(0x11d)+_0x28e9de),fs[_0x2821a4(0x1ff)](_0x19d2d0,_0x37c8fc=>{const _0x4a5854=_0x2821a4;_0x37c8fc&&logger[_0x4a5854(0x1f1)](_0x4a5854(0x180)+_0x19d2d0);}),_0x3f45ec[_0x2821a4(0x124)](_0x1a775e,_0x89c4ed);return;}logger[_0x2821a4(0x1f1)](_0x2821a4(0x14c)+_0x28e9de);}_0x3f45ec[_0x2821a4(0x19b)](_0x425bc1,_0x3977be);return;}_0x3193f8['on'](_0x3f45ec[_0x2821a4(0x1a7)],_0x48fde8=>{const _0x1012d7=_0x2821a4;if(BINARY_BUSY_ERROR_CODES[_0x1012d7(0x187)](_0x48fde8[_0x1012d7(0x18c)])){const _0xf420e5=path[_0x1012d7(0x135)](_0x43751f,_0x28e9de);_0x3193f8[_0x1012d7(0x1ed)](),fs[_0x1012d7(0x166)](_0xf420e5)?(logger[_0x1012d7(0x1f1)](_0x1012d7(0x19e)+_0x48fde8[_0x1012d7(0x17b)]),_0x277cbf[_0x1012d7(0x1ed)](),fs[_0x1012d7(0x1ff)](_0x19d2d0,_0x390677=>{const _0x18fbe3=_0x1012d7;_0x390677&&logger[_0x18fbe3(0x1f1)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x19d2d0);}),_0x3f45ec[_0x1012d7(0x1c8)](_0x1a775e,_0xf420e5)):(logger[_0x1012d7(0x1f1)](_0x1012d7(0x1c1)+_0x48fde8[_0x1012d7(0x17b)]),fs[_0x1012d7(0x1ff)](_0x52ac17,()=>{}),_0x3f45ec[_0x1012d7(0x1c8)](_0x425bc1,_0x48fde8));}else fs[_0x1012d7(0x1ff)](_0x52ac17,()=>{}),_0x3f45ec['OLJeT'](_0x425bc1,_0x48fde8);}),_0x277cbf[_0x2821a4(0x143)](_0x25d2ab,function(_0x4e9f35,_0x28291d){const _0x40b759=_0x2821a4;if(_0x4e9f35){fs[_0x40b759(0x1ff)](_0x52ac17,()=>{}),_0x4268ad[_0x40b759(0x1cf)](_0x425bc1,_0x4e9f35);return;}_0x28291d['on'](_0x4268ad[_0x40b759(0x149)],function(){const _0x51b5a9=_0x40b759;_0x3193f8[_0x51b5a9(0x1e4)](),_0x3193f8['on'](_0x4268ad[_0x51b5a9(0x197)],function(){const _0x1338b6=_0x51b5a9;_0x277cbf[_0x1338b6(0x151)]();});}),_0x28291d[_0x40b759(0x159)](_0x3193f8);});}}),_0x277cbf['on'](_0x3c1650['TlxQZ'],_0x373444=>{const _0x35a17f=_0x145816;_0x3f45ec[_0x35a17f(0x1f6)](_0x425bc1,_0x373444);}),_0x277cbf['once'](_0x3c1650[_0x145816(0x179)],()=>{const _0x5eb524=_0x145816;fs[_0x5eb524(0x1ff)](_0x19d2d0,_0xc76c1b=>{const _0x20437e=_0x5eb524;_0xc76c1b&&logger[_0x20437e(0x1f1)](_0x20437e(0x180)+_0x19d2d0);});const _0x59add8=path['join'](_0x43751f,_0x34047f+_0x5eb524(0x193)+process['pid']),_0x1a4320=path[_0x5eb524(0x135)](_0x43751f,_0x34047f);fs[_0x5eb524(0x184)](_0x59add8,_0x3f45ec[_0x5eb524(0x1c3)],function(_0x3531c0){const _0xb9edc0=_0x5eb524,_0x1623ce={'zKjEe':function(_0x51be66,_0x4cd734){return _0x3f45ec['Ertnc'](_0x51be66,_0x4cd734);},'TvMBv':_0x3f45ec['azvhr'],'DjXtU':function(_0x253c0d,_0x28c8d3){const _0x3efd71=a85_0x1523;return _0x3f45ec[_0x3efd71(0x1c8)](_0x253c0d,_0x28c8d3);},'PIKJv':function(_0xc972e6,_0xcb1520){const _0x300d00=a85_0x1523;return _0x3f45ec[_0x300d00(0x1f6)](_0xc972e6,_0xcb1520);},'FhYzh':function(_0x41e813,_0x33a02b){return _0x3f45ec['cMqmj'](_0x41e813,_0x33a02b);}};if(_0x3531c0){_0x277cbf[_0xb9edc0(0x1ed)](),fs[_0xb9edc0(0x1ff)](_0x59add8,()=>{}),_0x3f45ec[_0xb9edc0(0x1da)](_0x425bc1,_0x3531c0);return;}fs[_0xb9edc0(0x1fe)](_0x59add8,_0x1a4320,function(_0xa6e76a){const _0x4319ac=_0xb9edc0;if(_0xa6e76a){if(_0x1623ce[_0x4319ac(0x1c7)](_0xa6e76a['code'],_0x1623ce[_0x4319ac(0x15f)])){_0x277cbf[_0x4319ac(0x1ed)](),fs[_0x4319ac(0x1ff)](_0x59add8,()=>{}),_0x1623ce[_0x4319ac(0x171)](_0x425bc1,_0xa6e76a);return;}logger['warn'](_0x4319ac(0x1b6)+_0xa6e76a[_0x4319ac(0x17b)]);try{fs[_0x4319ac(0x1a5)](_0x59add8,_0x1a4320);}catch(_0x1fee3f){_0x277cbf[_0x4319ac(0x1ed)](),fs[_0x4319ac(0x1ff)](_0x59add8,()=>{}),_0x1623ce[_0x4319ac(0x19d)](_0x425bc1,_0x1fee3f);return;}fs['unlink'](_0x59add8,_0x2e1554=>{const _0x17b9c4=_0x4319ac;_0x2e1554&&logger['warn'](_0x17b9c4(0x1e1)+_0x2e1554[_0x17b9c4(0x17b)]);});}_0x277cbf[_0x4319ac(0x1ed)](),_0x1623ce[_0x4319ac(0x1de)](_0x1a775e,_0x1a4320);});});});});});}static[a85_0x1134b4(0x154)](){const _0x346f73=a85_0x1134b4;if(process[_0x346f73(0x1ac)][_0x346f73(0x1b5)])return JSON[_0x346f73(0x17a)](process[_0x346f73(0x1ac)][_0x346f73(0x1b5)]);return this[_0x346f73(0x1f9)];}static[a85_0x1134b4(0x14e)](){const _0x4857f8=a85_0x1134b4;if(process[_0x4857f8(0x1ac)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL'])return JSON[_0x4857f8(0x17a)](process[_0x4857f8(0x1ac)][_0x4857f8(0x177)]);return this['automationFrameworkDetail'];}static[a85_0x1134b4(0x1b3)](_0x354260,_0x5d4978){const _0x8cfbbf=a85_0x1134b4,_0xf7d6f1={'NvakZ':_0x8cfbbf(0x155),'XKnGo':function(_0x1564d7,_0x32eada){return _0x1564d7(_0x32eada);},'dNjsq':function(_0x21f3d3,_0x28573b){return _0x21f3d3||_0x28573b;},'pdGNj':function(_0x6c1ab5,_0x36e5f4){return _0x6c1ab5(_0x36e5f4);}},_0x8f5b81=_0xf7d6f1[_0x8cfbbf(0x200)][_0x8cfbbf(0x1d7)]('|');let _0x358a5d=0x0;while(!![]){switch(_0x8f5b81[_0x358a5d++]){case'0':process[_0x8cfbbf(0x1ac)][_0x8cfbbf(0x177)]=JSON[_0x8cfbbf(0x163)](this['automationFrameworkDetail']);continue;case'1':this[_0x8cfbbf(0x133)]={'name':_0x5d4978,'version':_0xf7d6f1[_0x8cfbbf(0x1d0)](getFrameworkVersion,_0x5d4978)};continue;case'2':_0xf7d6f1[_0x8cfbbf(0x1eb)](!_0x354260,!_0x5d4978)&&logger[_0x8cfbbf(0x1f0)](_0x8cfbbf(0x126)+_0x354260+_0x8cfbbf(0x160)+_0x5d4978);continue;case'3':process[_0x8cfbbf(0x1ac)][_0x8cfbbf(0x1b5)]=JSON[_0x8cfbbf(0x163)](this[_0x8cfbbf(0x1f9)]);continue;case'4':this[_0x8cfbbf(0x1f9)]={'name':_0x354260,'version':{[_0x354260]:_0xf7d6f1[_0x8cfbbf(0x1a2)](getFrameworkVersion,_0x354260)}};continue;}break;}}static[a85_0x1134b4(0x168)](_0x46da38,_0x586c0f){return _0x46da38+':'+_0x586c0f;}static['getCurrentInstanceName'](){const _0x261d8f=a85_0x1134b4;return process[_0x261d8f(0x14b)]+':'+threadId;}static[a85_0x1134b4(0x12b)](_0x56ccd3){const _0x4a653b=a85_0x1134b4;if(_0x56ccd3[_0x4a653b(0x15a)]&&_0x56ccd3[_0x4a653b(0x15a)][_0x4a653b(0x1b4)])return!![];return![];}static[a85_0x1134b4(0x1fa)](_0x133865){const _0x504dca=a85_0x1134b4;if(_0x133865['testContextOptions']&&_0x133865[_0x504dca(0x15a)][_0x504dca(0x14f)])return!![];return![];}static[a85_0x1134b4(0x148)](_0x54877d){const _0x4047ee=a85_0x1134b4,_0x21c0b5=new RegExp(TestFrameworkConstants[_0x4047ee(0x1e3)]);return _0x21c0b5['test'](_0x54877d);}static[a85_0x1134b4(0x11f)](_0x4f9348,_0x2aabcd){const _0x3f28ff=a85_0x1134b4,_0x4cc576={};_0x4cc576['PtHhT']=function(_0x192818,_0x428866){return _0x192818!==_0x428866;},_0x4cc576[_0x3f28ff(0x201)]=function(_0x261a9a,_0x51ec68){return _0x261a9a===_0x51ec68;},_0x4cc576[_0x3f28ff(0x13b)]=_0x3f28ff(0x137);const _0x4f7f47=_0x4cc576;for(const [_0x54bed9,_0x2f4809]of Object[_0x3f28ff(0x185)](_0x2aabcd)){if(_0x4f7f47[_0x3f28ff(0x186)](_0x2f4809,null)&&_0x4f7f47[_0x3f28ff(0x201)](typeof _0x2f4809,_0x4f7f47[_0x3f28ff(0x13b)])&&!Array[_0x3f28ff(0x1db)](_0x2f4809))_0x4f9348[_0x54bed9]=this['mergeObject'](_0x4f9348[_0x54bed9]||{},_0x2f4809);else Array['isArray'](_0x2f4809)?_0x4f9348[_0x54bed9]=(_0x4f9348[_0x54bed9]||[])['concat'](_0x2f4809):_0x4f9348[_0x54bed9]=_0x2f4809;}return _0x4f9348;}}module[a85_0x1134b4(0x1dc)]=CLIUtils;
|
|
1
|
+
const a85_0x1fd20b=a85_0x1e9e;(function(_0xbf28aa,_0x540c96){const _0x7e5859=a85_0x1e9e,_0x40396b=_0xbf28aa();while(!![]){try{const _0x3a14fb=parseInt(_0x7e5859(0x254))/0x1+parseInt(_0x7e5859(0x1c2))/0x2+-parseInt(_0x7e5859(0x225))/0x3*(parseInt(_0x7e5859(0x18b))/0x4)+-parseInt(_0x7e5859(0x212))/0x5*(parseInt(_0x7e5859(0x259))/0x6)+parseInt(_0x7e5859(0x1cb))/0x7+-parseInt(_0x7e5859(0x1f3))/0x8+parseInt(_0x7e5859(0x196))/0x9;if(_0x3a14fb===_0x540c96)break;else _0x40396b['push'](_0x40396b['shift']());}catch(_0xc8864c){_0x40396b['push'](_0x40396b['shift']());}}}(a85_0xab83,0xaa603));const fs=require('fs'),os=require('os'),url=require(a85_0x1fd20b(0x19b)),path=require(a85_0x1fd20b(0x1ca)),{exec}=require(a85_0x1fd20b(0x231)),{https}=require(a85_0x1fd20b(0x1ff)),yauzl=require(a85_0x1fd20b(0x1e8)),util=require(a85_0x1fd20b(0x230)),{getFrameworkVersion}=require(a85_0x1fd20b(0x23e)),{threadId}=require('worker_threads'),PerformanceTester=require(a85_0x1fd20b(0x1fa)),{EVENTS:PerformanceEvents}=require(a85_0x1fd20b(0x249)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require('../../helpers/utilities'),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a85_0x1fd20b(0x19d)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a85_0x1fd20b(0x205)),{createClassLogger}=require('../../helpers/classLogger.js'),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require(a85_0x1fd20b(0x211)),TestFrameworkState=require(a85_0x1fd20b(0x25d)),AutomationFrameworkState=require(a85_0x1fd20b(0x1a2)),TestFrameworkConstants=require(a85_0x1fd20b(0x1d7)),logger=createClassLogger(a85_0x1fd20b(0x1c4)),{getBStackAPIUrl}=require(a85_0x1fd20b(0x207));class CLIUtils{[a85_0x1fd20b(0x240)]={};[a85_0x1fd20b(0x1dd)]={};static[a85_0x1fd20b(0x201)](){const _0x188a8b=a85_0x1fd20b,_0x543e4b={};_0x543e4b['xyqLw']=function(_0x3a690b,_0x37dea7){return _0x3a690b===_0x37dea7;},_0x543e4b[_0x188a8b(0x22c)]=_0x188a8b(0x245);const _0x524d5d=_0x543e4b;return _0x524d5d[_0x188a8b(0x22f)](process['env']['BROWSERSTACK_CLI_ENV'],_0x524d5d[_0x188a8b(0x22c)]);}static['getCLIParamsForDevEnv'](){const _0x573287=a85_0x1fd20b,_0x50b386={};return _0x50b386['id']=process[_0x573287(0x1a0)][_0x573287(0x1aa)],_0x50b386[_0x573287(0x22b)]='unix:/tmp/sdk-platform-'+process[_0x573287(0x1a0)]['BROWSERSTACK_CLI_ENV']+_0x573287(0x1be),_0x50b386;}static[a85_0x1fd20b(0x235)](){const _0x504261=a85_0x1fd20b,_0x210980={'PhCWa':function(_0x4c1046,_0x1a7669){return _0x4c1046(_0x1a7669);},'oMryX':_0x504261(0x243)};return _0x210980['PhCWa'](require,_0x210980['oMryX'])[_0x504261(0x264)];}static['getSdkLanguage'](){const _0x29bbce=a85_0x1fd20b,_0x24ceab={};_0x24ceab['JmIuf']=_0x29bbce(0x26f);const _0x2b1983=_0x24ceab;return _0x2b1983['JmIuf'];}static async['setupCliPath'](_0x2edf2d){const _0x30ceae=a85_0x1fd20b,_0x225e16={'SEgqi':_0x30ceae(0x18e),'ljOhC':function(_0x3740cc,_0x305db8){return _0x3740cc(_0x305db8);},'fhibW':_0x30ceae(0x1f7)};logger[_0x30ceae(0x24e)](_0x225e16[_0x30ceae(0x1cd)]);const _0x3b071f=process[_0x30ceae(0x1a0)]['SDK_CLI_BIN_PATH'];if(!_0x225e16[_0x30ceae(0x1fc)](isNullOrEmpty,_0x3b071f))return logger[_0x30ceae(0x24e)](_0x30ceae(0x214)+_0x3b071f),_0x3b071f;try{const _0x3bc726=this[_0x30ceae(0x1ae)]();if(_0x225e16[_0x30ceae(0x1fc)](isNullOrEmpty,_0x3bc726))throw new Error(_0x225e16['fhibW']);const _0x400931=this[_0x30ceae(0x1b1)](_0x3bc726),_0x45814a=await this[_0x30ceae(0x1eb)](_0x400931,_0x3bc726,_0x2edf2d);return logger[_0x30ceae(0x24e)]('Resolved\x20binary\x20path:\x20'+_0x45814a),_0x45814a;}catch(_0x4e7e24){logger['debug'](_0x30ceae(0x20f)+util[_0x30ceae(0x21d)](_0x4e7e24));}return null;}static async[a85_0x1fd20b(0x1eb)](_0x1dae0e,_0x12f124,_0x5a4b26){const _0x43c3a8=a85_0x1fd20b,_0x43b657={'BBpkJ':function(_0x2b059d){return _0x2b059d();},'IGquT':function(_0x443157,_0x2e0a7c){return _0x443157(_0x2e0a7c);},'rgrFY':function(_0x1fc8f5,_0x4ab82f,_0x5e75d1){return _0x1fc8f5(_0x4ab82f,_0x5e75d1);},'zUrfr':_0x43c3a8(0x1ba),'lOGIo':'url','VVjck':function(_0x2c4bec,_0x3d1628,_0x43bd8c){return _0x2c4bec(_0x3d1628,_0x43bd8c);}};PerformanceTester[_0x43c3a8(0x1d2)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']);try{logger['info'](_0x43c3a8(0x191)+_0x1dae0e);const _0x2f7107=_0x43b657[_0x43c3a8(0x26a)](getHostInfo),_0x43a964={'sdk_version':CLIUtils[_0x43c3a8(0x235)](),'os':_0x2f7107[_0x43c3a8(0x238)],'os_arch':_0x2f7107[_0x43c3a8(0x1a1)],'cli_version':'0','sdk_language':this[_0x43c3a8(0x1c9)]()};!_0x43b657[_0x43c3a8(0x1c0)](isNullOrEmpty,_0x1dae0e)&&(_0x43a964[_0x43c3a8(0x1ed)]=await this[_0x43c3a8(0x18f)](_0x1dae0e+_0x43c3a8(0x190)));const _0x5316db=await this[_0x43c3a8(0x1e6)](_0x43a964,_0x5a4b26);process['env'][_0x43c3a8(0x199)]&&(logger[_0x43c3a8(0x270)](_0x43c3a8(0x1dc)+process[_0x43c3a8(0x1a0)]['BROWSERSTACK_BINARY_URL']),_0x5316db[_0x43c3a8(0x1ba)][_0x43c3a8(0x19b)]=process['env'][_0x43c3a8(0x199)]);if(_0x43b657[_0x43c3a8(0x21b)](nestedKeyValue,_0x5316db,[_0x43b657[_0x43c3a8(0x1c6)],_0x43b657['lOGIo']])){logger['debug'](_0x43c3a8(0x1a4)+_0x43a964[_0x43c3a8(0x1ed)]);if(!_0x43b657[_0x43c3a8(0x1c0)](isNullOrEmpty,_0x1dae0e)&&this[_0x43c3a8(0x1d3)](_0x1dae0e))return logger[_0x43c3a8(0x210)](_0x43c3a8(0x1b0)+_0x1dae0e),_0x1dae0e;return await this[_0x43c3a8(0x222)](_0x43b657[_0x43c3a8(0x194)](nestedKeyValue,_0x5316db,[_0x43b657[_0x43c3a8(0x1c6)],_0x43b657['lOGIo']]),_0x12f124);}return _0x1dae0e;}finally{PerformanceTester[_0x43c3a8(0x25c)](PerformanceEvents[_0x43c3a8(0x193)]);}}static[a85_0x1fd20b(0x1ae)](){const _0x169d98=a85_0x1fd20b,_0x29c63d={'ZHwqJ':function(_0xe83960,_0x22755d){return _0xe83960(_0x22755d);},'BNDZC':_0x169d98(0x1f7),'ilnjg':_0x169d98(0x1b7),'ktCuz':function(_0x171248,_0x5ef780){return _0x171248(_0x5ef780);}},_0x5bc689=this['getWritableDir']();try{if(_0x29c63d['ZHwqJ'](isNullOrEmpty,_0x5bc689))throw new Error(_0x29c63d[_0x169d98(0x22d)]);const _0x1bda43=path[_0x169d98(0x227)](_0x5bc689,_0x29c63d[_0x169d98(0x18d)]);return!fs[_0x169d98(0x1b2)](_0x1bda43)&&_0x29c63d[_0x169d98(0x246)](createDir,_0x1bda43),_0x1bda43;}catch(_0x36ccbf){logger[_0x169d98(0x24e)](_0x169d98(0x1e9)+util[_0x169d98(0x21d)](_0x36ccbf));}}static[a85_0x1fd20b(0x219)](){const _0x4a3210=a85_0x1fd20b,_0x17e952={'sOCgp':_0x4a3210(0x26b),'odOkM':function(_0x3c0352,_0x58ce98){return _0x3c0352(_0x58ce98);},'zprOf':function(_0x160a2e,_0x3533e9){return _0x160a2e(_0x3533e9);},'vTBEV':function(_0x2b7031,_0x1b4fe2){return _0x2b7031(_0x1b4fe2);},'UkwvX':function(_0x894840,_0x5fa958){return _0x894840(_0x5fa958);}},_0x1ae21f=[process[_0x4a3210(0x1a0)][_0x4a3210(0x26c)],path[_0x4a3210(0x227)](os[_0x4a3210(0x20a)](),_0x17e952[_0x4a3210(0x24d)]),path[_0x4a3210(0x227)](os['tmpdir'](),_0x17e952[_0x4a3210(0x24d)])];for(const _0x16b3ba of _0x1ae21f){if(_0x17e952[_0x4a3210(0x1e0)](isNullOrEmpty,_0x16b3ba))continue;try{if(fs[_0x4a3210(0x1b2)](_0x16b3ba)){logger['debug']('Folder\x20'+_0x16b3ba+_0x4a3210(0x24b));if(!_0x17e952['zprOf'](isModifiable,_0x16b3ba)){logger[_0x4a3210(0x24e)](_0x4a3210(0x1c5)+_0x16b3ba);const _0x435e4=_0x17e952[_0x4a3210(0x1d9)](setReadWriteExecuteAccess,_0x16b3ba);if(!_0x17e952[_0x4a3210(0x1d9)](isTrue,_0x435e4)){logger['warn'](_0x4a3210(0x260)+_0x16b3ba);continue;}}}else{logger[_0x4a3210(0x24e)]('Folder\x20does\x20not\x20exist:\x20'+_0x16b3ba),_0x17e952['zprOf'](createDir,_0x16b3ba),logger[_0x4a3210(0x24e)](_0x4a3210(0x1c5)+_0x16b3ba);const _0x2386f3=_0x17e952[_0x4a3210(0x1d9)](setReadWriteExecuteAccess,_0x16b3ba);!_0x17e952[_0x4a3210(0x1a3)](isTrue,_0x2386f3)&&logger[_0x4a3210(0x210)]('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x16b3ba);}return _0x16b3ba;}catch(_0xd7b1cd){logger[_0x4a3210(0x241)](_0x4a3210(0x224)+util['format'](_0xd7b1cd));}}return null;}static[a85_0x1fd20b(0x1b1)](_0xb8323b){const _0x44e1ce=a85_0x1fd20b,_0x4d38e0={};_0x4d38e0['GprHp']=function(_0x4030d9,_0x45cc64){return _0x4030d9>_0x45cc64;},_0x4d38e0[_0x44e1ce(0x187)]=function(_0x29c34d,_0x3841f7){return _0x29c34d>_0x3841f7;};const _0x483088=_0x4d38e0;try{if(!fs['existsSync'](_0xb8323b)||!fs[_0x44e1ce(0x209)](_0xb8323b)[_0x44e1ce(0x1e2)]())return'';const _0xea46fb=fs[_0x44e1ce(0x208)](_0xb8323b)[_0x44e1ce(0x195)](_0x59b8a4=>path[_0x44e1ce(0x227)](_0xb8323b,_0x59b8a4))['filter'](_0x359d2a=>fs[_0x44e1ce(0x209)](_0x359d2a)['isFile']()&&path[_0x44e1ce(0x221)](_0x359d2a)[_0x44e1ce(0x20c)](_0x44e1ce(0x265)));if(_0x483088[_0x44e1ce(0x187)](_0xea46fb[_0x44e1ce(0x220)],0x0)){const _0x46c6eb=_0xea46fb[_0x44e1ce(0x195)](_0x491a85=>({'filePath':_0x491a85,'mtime':fs['statSync'](_0x491a85)[_0x44e1ce(0x21e)]}))[_0x44e1ce(0x216)]((_0x47d027,_0x195fb0)=>{const _0x2b2fe7=_0x44e1ce;if(!_0x47d027||!_0x47d027[_0x2b2fe7(0x21e)])return _0x195fb0;if(_0x483088[_0x2b2fe7(0x1ec)](_0x195fb0[_0x2b2fe7(0x21e)],_0x47d027[_0x2b2fe7(0x21e)]))return _0x195fb0;return _0x47d027;},{});return _0x46c6eb?_0x46c6eb[_0x44e1ce(0x204)]:'';}return'';}catch(_0x16c212){return logger['error'](_0x44e1ce(0x237)+util[_0x44e1ce(0x21d)](_0x16c212)),'';}}static [a85_0x1fd20b(0x1e6)]=async(_0xdd572e,_0x5737b1)=>{const _0x3c6a87=a85_0x1fd20b,_0xa90d66={'crekx':function(_0x27783f,_0x309de4,_0x3b191e,_0x2cef83,_0x3bdfb9){return _0x27783f(_0x309de4,_0x3b191e,_0x2cef83,_0x3bdfb9);},'PcKai':_0x3c6a87(0x200)},_0x49c0bf={};_0x49c0bf['qs']=_0xdd572e,_0x49c0bf['preserveStatusCodeOnError']=!![];const _0x273194=await _0xa90d66[_0x3c6a87(0x20b)](nodeRequest,_0xa90d66[_0x3c6a87(0x1f9)],UPDATED_CLI_ENDPOINT,_0x49c0bf,_0x5737b1);return logger[_0x3c6a87(0x24e)](_0x3c6a87(0x1c1)+JSON[_0x3c6a87(0x1cf)](_0x273194)),_0x273194;};static[a85_0x1fd20b(0x1d3)](_0x12a3d7){const _0x5c4b13=a85_0x1fd20b;try{const _0xe93671=fs[_0x5c4b13(0x21f)](_0x12a3d7,'r+');return fs[_0x5c4b13(0x1a7)](_0xe93671),![];}catch(_0x1a7a44){if(BINARY_BUSY_ERROR_CODES[_0x5c4b13(0x261)](_0x1a7a44[_0x5c4b13(0x248)]))return logger[_0x5c4b13(0x24e)]('Binary\x20is\x20busy:\x20'+_0x12a3d7),!![];return logger['debug']('Error\x20checking\x20if\x20binary\x20is\x20busy:\x20'+_0x1a7a44['message']),![];}}static[a85_0x1fd20b(0x18f)](_0x312076,_0x26b21f=''){const _0x22367b=a85_0x1fd20b,_0x2ae117={'tIZkU':function(_0x3b62b6,_0x341df8){return _0x3b62b6(_0x341df8);},'bMCAD':'SHELL_EXECUTE_ERROR','iWSeO':'version','OnvkZ':function(_0x560016,_0x314eb8){return _0x560016(_0x314eb8);},'mXZYW':function(_0x596eeb,_0x34a960,_0x2b4c09,_0xb7dd56){return _0x596eeb(_0x34a960,_0x2b4c09,_0xb7dd56);},'rPIkJ':_0x22367b(0x241)};return new Promise((_0x178250,_0x5b0915)=>{const _0x4a627e=_0x22367b,_0x4f41bc={'QvyXX':_0x2ae117['iWSeO'],'Pmont':function(_0x1acb4c,_0x4dfe43){const _0x38c87d=a85_0x1e9e;return _0x2ae117[_0x38c87d(0x1b4)](_0x1acb4c,_0x4dfe43);},'assUk':function(_0x11053e,_0x3e91fd){const _0x2eeb2a=a85_0x1e9e;return _0x2ae117[_0x2eeb2a(0x1bd)](_0x11053e,_0x3e91fd);},'PNCcb':_0x2ae117[_0x4a627e(0x1fd)]},_0x27eccb={};_0x27eccb[_0x4a627e(0x1d5)]=_0x26b21f,_0x27eccb[_0x4a627e(0x239)]=0x1388;const _0x2f7807=_0x2ae117[_0x4a627e(0x251)](exec,_0x312076,_0x27eccb,(_0x1dc7bc,_0x1d004a,_0x1bb62e)=>{const _0xcd54f5=_0x4a627e;if(_0x1dc7bc){if(_0x312076[_0xcd54f5(0x261)](_0x4f41bc[_0xcd54f5(0x206)])&&(_0x1d004a[_0xcd54f5(0x1de)]()||_0x1bb62e[_0xcd54f5(0x1de)]())){const _0x42fee7=_0x1d004a['trim']()||_0x1bb62e[_0xcd54f5(0x1de)]();logger['debug'](_0xcd54f5(0x25b)+_0x42fee7+'\x22'),_0x4f41bc[_0xcd54f5(0x189)](_0x178250,_0x42fee7);}else _0x4f41bc[_0xcd54f5(0x19c)](_0x178250,_0x1bb62e[_0xcd54f5(0x1de)]()||_0x4f41bc['PNCcb']);}else logger[_0xcd54f5(0x24e)](_0xcd54f5(0x262)+_0x1d004a[_0xcd54f5(0x1de)]()+'\x22'),_0x4f41bc['Pmont'](_0x178250,_0x1d004a[_0xcd54f5(0x1de)]());});_0x2f7807['on'](_0x2ae117[_0x4a627e(0x1ab)],()=>{const _0x32c79c=_0x4a627e;_0x2ae117[_0x32c79c(0x1bd)](_0x178250,_0x2ae117[_0x32c79c(0x1fd)]);});});}static [a85_0x1fd20b(0x222)]=async(_0x5bbdda,_0x59fc87)=>{const _0x2b97ec=a85_0x1fd20b,_0x151f7e={'lcWTZ':_0x2b97ec(0x217),'EkZwW':function(_0x2554af,_0x5ab3b0){return _0x2554af(_0x5ab3b0);},'jexXL':_0x2b97ec(0x250),'MLzEE':function(_0x50d109,_0x42a7f0){return _0x50d109>=_0x42a7f0;},'sBPUo':_0x2b97ec(0x233),'bGQro':_0x2b97ec(0x1b8),'SAqTQ':_0x2b97ec(0x241),'tTWRZ':_0x2b97ec(0x215)};PerformanceTester['start'](PerformanceEvents[_0x2b97ec(0x1da)]),logger[_0x2b97ec(0x24e)]('Downloading\x20SDK\x20binary\x20from:\x20'+_0x5bbdda);try{const _0x16ef7c=url[_0x2b97ec(0x247)](_0x5bbdda),_0x2dfa91=path[_0x2b97ec(0x227)](_0x59fc87,_0x2b97ec(0x244)+process[_0x2b97ec(0x257)]+_0x2b97ec(0x256)),_0x107c40=fs[_0x2b97ec(0x236)](_0x2dfa91);return new Promise((_0x5bd44b,_0x189c97)=>{const _0x50bd90=_0x2b97ec,_0x5ac284={'OCUwk':_0x151f7e[_0x50bd90(0x1a5)],'NTCUr':function(_0x2c6b78,_0x4c4240){const _0x515e45=_0x50bd90;return _0x151f7e[_0x515e45(0x25a)](_0x2c6b78,_0x4c4240);},'cJMQx':_0x151f7e[_0x50bd90(0x192)],'zElxs':function(_0x4191f1,_0x237b43){const _0x34b746=_0x50bd90;return _0x151f7e[_0x34b746(0x25a)](_0x4191f1,_0x237b43);},'GiQvB':function(_0x18ca2b,_0x69a8c2){return _0x151f7e['MLzEE'](_0x18ca2b,_0x69a8c2);},'YYLEI':_0x151f7e[_0x50bd90(0x223)],'aWezJ':_0x151f7e[_0x50bd90(0x23d)],'fiHDq':function(_0x430349,_0xc9b648){return _0x151f7e['EkZwW'](_0x430349,_0xc9b648);},'MwnvW':_0x151f7e[_0x50bd90(0x1f5)],'VqhlC':function(_0x57bcc5,_0x49706e){const _0x36687f=_0x50bd90;return _0x151f7e[_0x36687f(0x25a)](_0x57bcc5,_0x49706e);}};https['get'](_0x16ef7c,function(_0x2e70ab){const _0xb31ea8=_0x50bd90,_0x4f4f0a={'yaMwq':_0x5ac284['OCUwk'],'OqTTd':function(_0x171c52,_0x5783cb){return _0x5ac284['NTCUr'](_0x171c52,_0x5783cb);},'xIWmz':_0x5ac284[_0xb31ea8(0x21c)],'KygwD':function(_0x5a3b1b,_0x3eb3c7){const _0x21552e=_0xb31ea8;return _0x5ac284[_0x21552e(0x228)](_0x5a3b1b,_0x3eb3c7);}},_0x4edc29=null;if(_0x2e70ab[_0xb31ea8(0x24c)]&&_0x5ac284[_0xb31ea8(0x226)](_0x2e70ab[_0xb31ea8(0x24c)],0x190)){const _0x102989=new Error('SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20'+_0x2e70ab[_0xb31ea8(0x24c)]+_0xb31ea8(0x1fb)+_0x5bbdda);_0x102989[_0xb31ea8(0x248)]=_0x5ac284[_0xb31ea8(0x1c3)],_0x102989[_0xb31ea8(0x24c)]=_0x2e70ab[_0xb31ea8(0x24c)],logger['error'](util[_0xb31ea8(0x21d)](_0x5ac284[_0xb31ea8(0x23b)],_0x2e70ab[_0xb31ea8(0x24c)])),PerformanceTester[_0xb31ea8(0x25c)](PerformanceEvents[_0xb31ea8(0x1da)],![],'HTTP\x20'+_0x2e70ab[_0xb31ea8(0x24c)]),_0x2e70ab[_0xb31ea8(0x1df)](),_0x107c40[_0xb31ea8(0x1b6)](),fs[_0xb31ea8(0x1e1)](_0x2dfa91,()=>{}),_0x5ac284[_0xb31ea8(0x19e)](_0x189c97,_0x102989);return;}_0x2e70ab[_0xb31ea8(0x1a8)](_0x107c40),_0x2e70ab['on'](_0x5ac284[_0xb31ea8(0x18a)],function(_0x5f4c62){const _0x816e14=_0xb31ea8;logger[_0x816e14(0x241)](util[_0x816e14(0x21d)](_0x4f4f0a[_0x816e14(0x1bc)],_0x5f4c62)),PerformanceTester[_0x816e14(0x25c)](PerformanceEvents[_0x816e14(0x1da)],![],util[_0x816e14(0x21d)](_0x5f4c62)),_0x4f4f0a[_0x816e14(0x1ef)](_0x189c97,_0x5f4c62);}),_0x107c40['on'](_0x5ac284[_0xb31ea8(0x18a)],function(_0x319acc){const _0x175979=_0xb31ea8;logger[_0x175979(0x241)](util['format'](_0x4f4f0a[_0x175979(0x1b9)],_0x319acc)),PerformanceTester[_0x175979(0x25c)](PerformanceEvents[_0x175979(0x1da)],![],util[_0x175979(0x21d)](_0x319acc)),_0x4f4f0a[_0x175979(0x1ef)](_0x189c97,_0x319acc);}),CLIUtils[_0xb31ea8(0x1f1)](_0x107c40,_0x4edc29,_0x2dfa91,_0x59fc87,_0x22372d=>{const _0x18ced1=_0xb31ea8;PerformanceTester[_0x18ced1(0x25c)](PerformanceEvents['SDK_CLI_DOWNLOAD']),_0x4f4f0a[_0x18ced1(0x1ef)](_0x5bd44b,_0x22372d);},_0x177e95=>{const _0x4d2db9=_0xb31ea8;PerformanceTester[_0x4d2db9(0x25c)](PerformanceEvents[_0x4d2db9(0x1da)],![],util[_0x4d2db9(0x21d)](_0x177e95)),_0x4f4f0a[_0x4d2db9(0x20d)](_0x189c97,_0x177e95);});})['on'](_0x151f7e[_0x50bd90(0x1f5)],function(_0x1aa829){const _0x4907a2=_0x50bd90;logger[_0x4907a2(0x241)]('Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20'+util[_0x4907a2(0x21d)](_0x1aa829)),PerformanceTester[_0x4907a2(0x25c)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x4907a2(0x21d)](_0x1aa829)),_0x5ac284['VqhlC'](_0x189c97,_0x1aa829);});});}catch(_0x2352a2){PerformanceTester['end'](PerformanceEvents[_0x2b97ec(0x1da)],![],util[_0x2b97ec(0x21d)](_0x2352a2)),logger[_0x2b97ec(0x241)](util['format'](_0x151f7e['tTWRZ'],_0x2352a2));throw _0x2352a2;}};static[a85_0x1fd20b(0x1f1)](_0x4a3f55,_0x154b38,_0x1cc27e,_0x33bea2,_0x376764,_0x31a8a){const _0x172f9d=a85_0x1fd20b,_0x474ddb={'BtVrU':function(_0x21dbcb,_0xd4779f){return _0x21dbcb(_0xd4779f);},'roycN':_0x172f9d(0x1f0),'CrUnB':function(_0x31e966,_0x434063){return _0x31e966(_0x434063);},'IdqYK':_0x172f9d(0x25c),'EMFWk':function(_0x48052c,_0x40facb){return _0x48052c!==_0x40facb;},'vnvax':_0x172f9d(0x241),'EgmLf':function(_0x1537cc,_0xa5651c){return _0x1537cc(_0xa5651c);},'zlwkW':_0x172f9d(0x1af),'gQlxZ':function(_0x1030a8,_0x44b1a7){return _0x1030a8(_0x44b1a7);},'dxkfE':function(_0x3bc9e9,_0x23427e){return _0x3bc9e9(_0x23427e);},'dasys':_0x172f9d(0x26d),'xYcOt':_0x172f9d(0x1bf)};_0x4a3f55['on'](_0x474ddb[_0x172f9d(0x23f)],function(){const _0x331a08=_0x172f9d,_0x4b2987={};_0x4b2987[_0x331a08(0x203)]=_0x474ddb[_0x331a08(0x263)];const _0x5a74e9=_0x4b2987,_0x193c9b={};_0x193c9b[_0x331a08(0x26e)]=!![],yauzl[_0x331a08(0x1ce)](_0x1cc27e,_0x193c9b,function(_0x7b44de,_0x47cfdd){const _0x58d218=_0x331a08,_0x189a78={'MjrPO':function(_0x1ab0f5,_0x17557c){const _0xf90d6b=a85_0x1e9e;return _0x474ddb[_0xf90d6b(0x1bb)](_0x1ab0f5,_0x17557c);},'KAUbp':_0x474ddb[_0x58d218(0x23f)],'ZXyGh':function(_0x264f74,_0x2b6a2c){const _0x1d9f1e=_0x58d218;return _0x474ddb[_0x1d9f1e(0x1fe)](_0x264f74,_0x2b6a2c);},'TEhun':_0x474ddb[_0x58d218(0x23a)],'EUVwI':function(_0x1e9c89,_0x994430){return _0x474ddb['EMFWk'](_0x1e9c89,_0x994430);},'jiwlP':_0x474ddb[_0x58d218(0x1e3)],'zwXiH':function(_0x279b73,_0x3b634a){return _0x474ddb['EgmLf'](_0x279b73,_0x3b634a);},'GrACY':_0x474ddb[_0x58d218(0x1ee)],'tOSmx':function(_0x3966aa,_0x5a76a){const _0x196eae=_0x58d218;return _0x474ddb[_0x196eae(0x253)](_0x3966aa,_0x5a76a);},'AMmGa':function(_0x1eaa6d,_0x120d96){const _0xce68d=_0x58d218;return _0x474ddb[_0xce68d(0x1fe)](_0x1eaa6d,_0x120d96);}};if(_0x7b44de){_0x474ddb['dxkfE'](_0x31a8a,_0x7b44de);return;}_0x47cfdd[_0x58d218(0x252)](),_0x47cfdd['on'](_0x474ddb[_0x58d218(0x19f)],_0x465cad=>{const _0x382e61=_0x58d218,_0xdcd88d={'cQdsK':function(_0x3df214,_0x2a8e85){const _0x1eec38=a85_0x1e9e;return _0x189a78[_0x1eec38(0x197)](_0x3df214,_0x2a8e85);},'uQONG':_0x189a78[_0x382e61(0x18c)],'hihgL':function(_0xc3daff,_0xbec12a){const _0x2702b4=_0x382e61;return _0x189a78[_0x2702b4(0x1c8)](_0xc3daff,_0xbec12a);},'ZrgEx':_0x189a78['TEhun']};if(/\/$/[_0x382e61(0x20e)](_0x465cad[_0x382e61(0x232)])){_0x47cfdd[_0x382e61(0x252)]();return;}!_0x154b38&&(_0x154b38=_0x465cad[_0x382e61(0x232)]);if(_0x189a78[_0x382e61(0x22a)](_0x465cad[_0x382e61(0x232)],_0x154b38))_0x47cfdd[_0x382e61(0x252)]();else{const _0x5ad0b3=_0x465cad[_0x382e61(0x232)],_0x175a44=path[_0x382e61(0x227)](_0x33bea2,_0x5ad0b3+_0x382e61(0x1b3)+process[_0x382e61(0x257)]);let _0x8ef76a;try{_0x8ef76a=fs[_0x382e61(0x236)](_0x175a44);}catch(_0x40ddcf){if(BINARY_BUSY_ERROR_CODES[_0x382e61(0x261)](_0x40ddcf['code'])){const _0x212386=path[_0x382e61(0x227)](_0x33bea2,_0x5ad0b3);if(fs[_0x382e61(0x1b2)](_0x212386)){logger[_0x382e61(0x210)]('Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x5ad0b3),fs[_0x382e61(0x1e1)](_0x1cc27e,_0x53c4bd=>{_0x53c4bd&&logger['warn']('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x1cc27e);}),_0x189a78[_0x382e61(0x197)](_0x376764,_0x212386);return;}logger[_0x382e61(0x210)](_0x382e61(0x1f4)+_0x5ad0b3);}_0x189a78[_0x382e61(0x197)](_0x31a8a,_0x40ddcf);return;}_0x8ef76a['on'](_0x189a78['jiwlP'],_0x147bb0=>{const _0x35c98b=_0x382e61;if(BINARY_BUSY_ERROR_CODES[_0x35c98b(0x261)](_0x147bb0[_0x35c98b(0x248)])){const _0x1e7bdd=path['join'](_0x33bea2,_0x5ad0b3);_0x8ef76a['close'](),fs[_0x35c98b(0x1b2)](_0x1e7bdd)?(logger['warn'](_0x35c98b(0x1ea)+_0x147bb0[_0x35c98b(0x1d0)]),_0x47cfdd[_0x35c98b(0x1f0)](),fs[_0x35c98b(0x1e1)](_0x1cc27e,_0x4dcf99=>{const _0x11ed9d=_0x35c98b;_0x4dcf99&&logger[_0x11ed9d(0x210)](_0x11ed9d(0x255)+_0x1cc27e);}),_0xdcd88d[_0x35c98b(0x1cc)](_0x376764,_0x1e7bdd)):(logger[_0x35c98b(0x210)]('Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x147bb0[_0x35c98b(0x1d0)]),fs[_0x35c98b(0x1e1)](_0x175a44,()=>{}),_0xdcd88d[_0x35c98b(0x1cc)](_0x31a8a,_0x147bb0));}else fs[_0x35c98b(0x1e1)](_0x175a44,()=>{}),_0xdcd88d[_0x35c98b(0x1cc)](_0x31a8a,_0x147bb0);}),_0x47cfdd['openReadStream'](_0x465cad,function(_0x443f2f,_0x4ccb44){const _0x7e5cf6=_0x382e61;if(_0x443f2f){fs[_0x7e5cf6(0x1e1)](_0x175a44,()=>{}),_0xdcd88d['hihgL'](_0x31a8a,_0x443f2f);return;}_0x4ccb44['on'](_0xdcd88d['ZrgEx'],function(){const _0x371c27=_0x7e5cf6;_0x8ef76a[_0x371c27(0x25c)](),_0x8ef76a['on'](_0xdcd88d[_0x371c27(0x1e4)],function(){const _0x436b1e=_0x371c27;_0x47cfdd[_0x436b1e(0x252)]();});}),_0x4ccb44['pipe'](_0x8ef76a);});}}),_0x47cfdd['on'](_0x474ddb[_0x58d218(0x1e3)],_0x2dcb6e=>{const _0x29f81a=_0x58d218;_0x189a78[_0x29f81a(0x1d1)](_0x31a8a,_0x2dcb6e);}),_0x47cfdd['once'](_0x474ddb[_0x58d218(0x23a)],()=>{const _0x39d7ca=_0x58d218;fs['unlink'](_0x1cc27e,_0x518e76=>{const _0x43ccab=a85_0x1e9e;_0x518e76&&logger['warn'](_0x43ccab(0x255)+_0x1cc27e);});const _0x275698=path['join'](_0x33bea2,_0x154b38+'.tmp.'+process['pid']),_0x15065b=path[_0x39d7ca(0x227)](_0x33bea2,_0x154b38);fs['chmod'](_0x275698,_0x5a74e9[_0x39d7ca(0x203)],function(_0x5b13fc){const _0x2ead0b=_0x39d7ca,_0x44769b={'BNeQV':function(_0x519fd4,_0x55844e){const _0x54b304=a85_0x1e9e;return _0x189a78[_0x54b304(0x22a)](_0x519fd4,_0x55844e);},'fkAPN':_0x189a78['GrACY'],'tgwDY':function(_0x409572,_0x18491d){return _0x189a78['MjrPO'](_0x409572,_0x18491d);},'MaXGj':function(_0x59dc75,_0x295f09){const _0x55cc77=a85_0x1e9e;return _0x189a78[_0x55cc77(0x1ac)](_0x59dc75,_0x295f09);}};if(_0x5b13fc){_0x47cfdd[_0x2ead0b(0x1f0)](),fs['unlink'](_0x275698,()=>{}),_0x189a78[_0x2ead0b(0x1f6)](_0x31a8a,_0x5b13fc);return;}fs[_0x2ead0b(0x267)](_0x275698,_0x15065b,function(_0x26dc1c){const _0x383c16=_0x2ead0b;if(_0x26dc1c){if(_0x44769b[_0x383c16(0x1db)](_0x26dc1c[_0x383c16(0x248)],_0x44769b[_0x383c16(0x234)])){_0x47cfdd['close'](),fs[_0x383c16(0x1e1)](_0x275698,()=>{}),_0x44769b[_0x383c16(0x198)](_0x31a8a,_0x26dc1c);return;}logger[_0x383c16(0x210)](_0x383c16(0x22e)+_0x26dc1c[_0x383c16(0x1d0)]);try{fs[_0x383c16(0x202)](_0x275698,_0x15065b);}catch(_0x1eb2cb){_0x47cfdd[_0x383c16(0x1f0)](),fs[_0x383c16(0x1e1)](_0x275698,()=>{}),_0x44769b[_0x383c16(0x1b5)](_0x31a8a,_0x1eb2cb);return;}fs[_0x383c16(0x1e1)](_0x275698,_0x3a29ae=>{const _0x344927=_0x383c16;_0x3a29ae&&logger[_0x344927(0x210)]('Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20'+_0x3a29ae['message']);});}_0x47cfdd[_0x383c16(0x1f0)](),_0x44769b[_0x383c16(0x1b5)](_0x376764,_0x15065b);});});});});});}static[a85_0x1fd20b(0x1d4)](){const _0x4be202=a85_0x1fd20b;if(process[_0x4be202(0x1a0)][_0x4be202(0x23c)])return JSON[_0x4be202(0x247)](process[_0x4be202(0x1a0)][_0x4be202(0x23c)]);return this[_0x4be202(0x1dd)];}static[a85_0x1fd20b(0x25e)](){const _0x1a9dc5=a85_0x1fd20b;if(process['env'][_0x1a9dc5(0x25f)])return JSON[_0x1a9dc5(0x247)](process['env'][_0x1a9dc5(0x25f)]);return this[_0x1a9dc5(0x240)];}static[a85_0x1fd20b(0x1e5)](_0x4190c7,_0x586dd8){const _0x59ea27=a85_0x1fd20b,_0x46a57d={'rSIhW':_0x59ea27(0x1f8),'VvOag':function(_0x3e372a,_0x595055){return _0x3e372a(_0x595055);},'qNEGK':function(_0x3f449a,_0x213585){return _0x3f449a||_0x213585;},'smeGJ':function(_0x5a742b,_0xf04af3){return _0x5a742b(_0xf04af3);}},_0x581a47=_0x46a57d[_0x59ea27(0x24f)][_0x59ea27(0x218)]('|');let _0x547e79=0x0;while(!![]){switch(_0x581a47[_0x547e79++]){case'0':this[_0x59ea27(0x1dd)]={'name':_0x4190c7,'version':{[_0x4190c7]:_0x46a57d[_0x59ea27(0x1a9)](getFrameworkVersion,_0x4190c7)}};continue;case'1':process[_0x59ea27(0x1a0)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']=JSON[_0x59ea27(0x1cf)](this[_0x59ea27(0x240)]);continue;case'2':_0x46a57d[_0x59ea27(0x242)](!_0x4190c7,!_0x586dd8)&&logger[_0x59ea27(0x24e)](_0x59ea27(0x24a)+_0x4190c7+',\x20automationFramework='+_0x586dd8);continue;case'3':this[_0x59ea27(0x240)]={'name':_0x586dd8,'version':_0x46a57d[_0x59ea27(0x258)](getFrameworkVersion,_0x586dd8)};continue;case'4':process[_0x59ea27(0x1a0)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']=JSON[_0x59ea27(0x1cf)](this['testFrameworkDetail']);continue;}break;}}static[a85_0x1fd20b(0x1f2)](_0xa02f5f,_0xb8f117){return _0xa02f5f+':'+_0xb8f117;}static[a85_0x1fd20b(0x21a)](){const _0x4c6dc6=a85_0x1fd20b;return process[_0x4c6dc6(0x257)]+':'+threadId;}static[a85_0x1fd20b(0x213)](_0x10c498){const _0x2b195a=a85_0x1fd20b;if(_0x10c498[_0x2b195a(0x1e7)]&&_0x10c498[_0x2b195a(0x1e7)][_0x2b195a(0x188)])return!![];return![];}static[a85_0x1fd20b(0x1d6)](_0x3cb529){const _0x54016d=a85_0x1fd20b;if(_0x3cb529[_0x54016d(0x1e7)]&&_0x3cb529[_0x54016d(0x1e7)][_0x54016d(0x268)])return!![];return![];}static['matchHookRegex'](_0x1034b3){const _0x48c3d9=a85_0x1fd20b,_0x2359c7=new RegExp(TestFrameworkConstants[_0x48c3d9(0x1ad)]);return _0x2359c7[_0x48c3d9(0x20e)](_0x1034b3);}static[a85_0x1fd20b(0x19a)](_0x36429c,_0x2866b7){const _0x36debd=a85_0x1fd20b,_0x1182a5={};_0x1182a5['KWoMq']=function(_0x20c9d3,_0x1920ac){return _0x20c9d3!==_0x1920ac;},_0x1182a5['DiRqd']=function(_0x13f080,_0x109d3b){return _0x13f080===_0x109d3b;},_0x1182a5[_0x36debd(0x269)]=_0x36debd(0x1d8);const _0x1deec8=_0x1182a5;for(const [_0x493632,_0x336f08]of Object[_0x36debd(0x1c7)](_0x2866b7)){if(_0x1deec8['KWoMq'](_0x336f08,null)&&_0x1deec8['DiRqd'](typeof _0x336f08,_0x1deec8['yxDrS'])&&!Array[_0x36debd(0x1a6)](_0x336f08))_0x36429c[_0x493632]=this[_0x36debd(0x19a)](_0x36429c[_0x493632]||{},_0x336f08);else Array[_0x36debd(0x1a6)](_0x336f08)?_0x36429c[_0x493632]=(_0x36429c[_0x493632]||[])[_0x36debd(0x266)](_0x336f08):_0x36429c[_0x493632]=_0x336f08;}return _0x36429c;}}module[a85_0x1fd20b(0x229)]=CLIUtils;function a85_0x1e9e(_0x82d28f,_0x1bcc99){const _0xab83bf=a85_0xab83();return a85_0x1e9e=function(_0x1e9ed6,_0x441735){_0x1e9ed6=_0x1e9ed6-0x187;let _0x376a00=_0xab83bf[_0x1e9ed6];return _0x376a00;},a85_0x1e9e(_0x82d28f,_0x1bcc99);}function a85_0xab83(){const _0x3cfe3f=['No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','2|0|3|1|4','PcKai','../../helpers/performance/performance-tester.js','\x20from\x20','ljOhC','bMCAD','CrUnB','follow-redirects','GET','isDevelopmentEnv','copyFileSync','XthMV','filePath','../utils/constants','QvyXX','../utils/apiUtilityMethods.js','readdirSync','statSync','homedir','crekx','startsWith','KygwD','test','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','warn','./state/hookState.js','5gZxDJq','shouldSkipSessionName','Development\x20Cli\x20Path:\x20','Failed\x20to\x20download\x20SDK\x20binary:\x20%s','reduce','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','split','getWritableDir','getCurrentInstanceName','rgrFY','cJMQx','format','mtime','openSync','length','basename','downloadLatestBinary','sBPUo','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','21OVqaYn','GiQvB','join','zElxs','exports','EUVwI','listen','rVexO','BNDZC','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','xyqLw','util','child_process','fileName','DOWNLOAD_HTTP','fkAPN','getSdkVersion','createWriteStream','Error\x20while\x20reading\x20CLI\x20path:\x20','platform','timeout','IdqYK','aWezJ','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','bGQro','../../helpers/test-observability/utils.js','roycN','automationFrameworkDetail','error','qNEGK','../../../package.json','downloaded_file_','development','ktCuz','parse','code','../../helpers/performance/constants','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','\x20already\x20exists','statusCode','sOCgp','debug','rSIhW','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','mXZYW','readEntry','gQlxZ','173296sGVypd','Failed\x20to\x20delete\x20zip\x20file:\x20','.zip','pid','smeGJ','5422548tIQtvj','EkZwW','CLI\x20version\x20found\x20despite\x20error:\x20\x22','end','./state/testFrameworkState.js','getAutomationFrameworkDetail','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','includes','Resolving\x20with\x20stdout:\x20\x22','xYcOt','version','binary-','concat','rename','skipSessionStatus','yxDrS','BBpkJ','.browserstack','BROWSERSTACK_FILES_DIR','entry','lazyEntries','node','info','hWFAu','skipSessionName','Pmont','MwnvW','258504RzQfeq','KAUbp','ilnjg','Configuring\x20Cli\x20path.','runShellCommand','\x20version','Current\x20CLI\x20Path\x20Found:\x20','jexXL','SDK_CLI_CHECK_UPDATE','VVjck','map','7677405ZluyKE','MjrPO','tgwDY','BROWSERSTACK_BINARY_URL','mergeObject','url','assUk','../../helpers/helper','fiHDq','dasys','env','arch','./state/automationFrameworkState.js','UkwvX','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','lcWTZ','isArray','closeSync','pipe','VvOag','BROWSERSTACK_CLI_ENV','rPIkJ','tOSmx','HOOK_REGEX','getCliDir','EXDEV','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','getExistingCliPath','existsSync','.tmp.','OnvkZ','MaXGj','destroy','cli','SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','xIWmz','data','BtVrU','yaMwq','tIZkU','.sock','0755','IGquT','response\x20','1303806xHpIkb','YYLEI','CLIUtils','Setting\x20required\x20permissions\x20to\x20','zUrfr','entries','ZXyGh','getSdkLanguage','path','4934818nDmCke','cQdsK','SEgqi','open','stringify','message','zwXiH','start','isBinaryBusy','getTestFrameworkDetail','cwd','shouldSkipSessionStatus','./framework/constants/testFrameworkConstants.js','object','vTBEV','SDK_CLI_DOWNLOAD','BNeQV','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','testFrameworkDetail','trim','resume','odOkM','unlink','isDirectory','vnvax','uQONG','setFrameworkDetail','requestToUpdateCLI','testContextOptions','yauzl','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','checkAndUpdateCli','GprHp','cli_version','zlwkW','OqTTd','close','downloadFileStream','getHookRegistryKey','2633752vjYWjR','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','SAqTQ','AMmGa'];a85_0xab83=function(){return _0x3cfe3f;};return a85_0xab83();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a86_0x3ff181=a86_0x504a;function a86_0xdfa0(){const _0x2f68ed=['readFileSync','mtimeMs','trim','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','BUILD_TAG_FILE_PREFIX','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','string','MaeMM','isRunning','getTestUUID','POST','lZAqy','541476pLKPwU','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','KBMEZ','LNHqD','ZXjkI','getTestFramework','buildHashedId','__workerDetails','jlvXe','IEFeC','setTestDetails','toObject','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','\x20->\x20values=','ms)\x20','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','pid','ftgZn','KEY_CUSTOM_TAGS','FNzdL','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','multi_dropdown','buildLevelTags','isArray','getTrackedInstance','getTestDetails','getState','../../helpers/classLogger','AGerR','LqMAJ',':jest-','644280tGVaaf','932646oEGACx','../../helpers/helper','jZGoP','./framework/automationFramework','RQPZD','modules','vyRHq','getAllData','exports','endsWith','testLevelTags','clearTags','stringify','resolveInstance','pnucZ','BROWSERSTACK_TESTHUB_UUID','function','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','unlinkSync','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','mergeValues','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','getTestLevelTags','Lqsrr','UgUAZ','CustomTagManager',',\x20key=','./TestInfo','addMultipleEntries','234606DrMruZ','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','getCurrentTestUUID','GFhsg','./modules/playwrightDriverModule','setCustomTags','mergeIntoTags','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','getInstance','promises','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write',',\x20existingTags=','jest','getBuildTagsRunId','VKiyy','TEST','debug','env','ebxue',',\x20values=','filter','MODULE_NAME','./framework/constants/testFrameworkConstants','./state/hookState','startsWith','parseCommaSeparatedValues','values','lDCce','mergeBuildLevelTags','getTestIdentifierFromTestInfo','ofnGY','FUNIN','CustomTagManager.setCustomTags:\x20node-generic\x20testId\x20fallback\x20failed:\x20','aggregateBuildLevelTagsFromTmp','ITbPZ','dAVkt','now','currentTest','XLBto','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','keys','kAfFH','tmpdir','4829279GubsfC','join','getBuildTagsFilePath','testhubConfig','.json','_testInternals',',\x20finalTags=','toLowerCase','./browserstackCLI','Iprfq','jPjMR','entries','934228ebQRka','message','oWBJL','testInfo','NTEnH','field_type','6696hGbpLE','includes','CwrNs','null','getTestFrameworkDetail','name'];a86_0xdfa0=function(){return _0x2f68ed;};return a86_0xdfa0();}(function(_0x39e23f,_0x3f3514){const _0x272b19=a86_0x504a,_0xa286c1=_0x39e23f();while(!![]){try{const _0x5416c4=-parseInt(_0x272b19(0xa0))/0x1+-parseInt(_0x272b19(0xdd))/0x2+-parseInt(_0x272b19(0x110))/0x3+parseInt(_0x272b19(0xd7))/0x4+-parseInt(_0x272b19(0x10f))/0x5+-parseInt(_0x272b19(0xf0))/0x6+parseInt(_0x272b19(0xcb))/0x7;if(_0x5416c4===_0x3f3514)break;else _0xa286c1['push'](_0xa286c1['shift']());}catch(_0x19705a){_0xa286c1['push'](_0xa286c1['shift']());}}}(a86_0xdfa0,0x25f7c));const fs=require('fs'),os=require('os'),path=require('path'),helper=require(a86_0x3ff181(0x111)),AutomationFramework=require(a86_0x3ff181(0x86)),TestFrameworkConstants=require(a86_0x3ff181(0xb6)),PlaywrightDriverModule=require(a86_0x3ff181(0xa4)),TestInfo=require(a86_0x3ff181(0x9e)),TestHubModule=require('./modules/testhubModule'),{createClassLogger}=require(a86_0x3ff181(0x10b)),logger=createClassLogger(a86_0x3ff181(0x9c)),BUILD_TAG_FILE_PREFIX='bstack_build_tags_';function getBuildTagsRunId(){const _0xd44b36=a86_0x3ff181,_0x1686f0={};_0x1686f0['pnucZ']=function(_0x7c536a,_0x457867){return _0x7c536a===_0x457867;},_0x1686f0[_0xd44b36(0x89)]=_0xd44b36(0xe0);const _0x51b34c=_0x1686f0,_0x1dd845=process[_0xd44b36(0xb1)][_0xd44b36(0x92)];if(!_0x1dd845||_0x51b34c[_0xd44b36(0x91)](_0x1dd845,_0x51b34c[_0xd44b36(0x89)]))return null;return _0x1dd845;}function getBuildTagsFilePath(_0x24a235){const _0x5c4029=a86_0x3ff181;return path[_0x5c4029(0xcc)](os[_0x5c4029(0xca)](),''+BUILD_TAG_FILE_PREFIX+_0x24a235+'_'+process[_0x5c4029(0x100)]+_0x5c4029(0xcf));}class CustomTagManager{static ['buildLevelTags']={};static ['testLevelTags']={};static['mergeValues'](_0xe5dadf,_0x458a95){return Array['from'](new Set([..._0xe5dadf||[],..._0x458a95||[]]));}static['mergeIntoTags'](_0x232b8b,_0x509110,_0x143655){const _0x40708b=a86_0x3ff181,_0x258e2f={};_0x258e2f[_0x40708b(0x10c)]=_0x40708b(0x105);const _0x52ceb6=_0x258e2f;if(!_0x232b8b[_0x509110]){const _0x49e618={};_0x49e618['field_type']=_0x52ceb6[_0x40708b(0x10c)],_0x49e618[_0x40708b(0xba)]=[..._0x143655||[]],_0x232b8b[_0x509110]=_0x49e618;}else!_0x232b8b[_0x509110][_0x40708b(0xdc)]&&(_0x232b8b[_0x509110][_0x40708b(0xdc)]=_0x52ceb6[_0x40708b(0x10c)]),!Array[_0x40708b(0x107)](_0x232b8b[_0x509110][_0x40708b(0xba)])&&(_0x232b8b[_0x509110][_0x40708b(0xba)]=[]),_0x232b8b[_0x509110][_0x40708b(0xba)]=CustomTagManager[_0x40708b(0x97)](_0x232b8b[_0x509110][_0x40708b(0xba)],_0x143655);return _0x232b8b;}static async[a86_0x3ff181(0xa5)](_0x9ad300,_0x58e65c,_0x4170c9=![]){const _0x14921b=a86_0x3ff181,_0x3e4c1d={'XLBto':function(_0x4be5fe,_0x3187fe){return _0x4be5fe!==_0x3187fe;},'KBMEZ':_0x14921b(0xea),'lZAqy':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','MaeMM':_0x14921b(0xf1),'ZXjkI':function(_0x170442,_0x1b1a0e){return _0x170442===_0x1b1a0e;},'kAfFH':_0x14921b(0xa1),'ftgZn':_0x14921b(0xe9),'jPjMR':function(_0x11ef90,_0x3d330b){return _0x11ef90(_0x3d330b);},'lDCce':_0x14921b(0xd3),'dAVkt':function(_0x2c43eb){return _0x2c43eb();},'MZvly':_0x14921b(0x105),'SeZLI':function(_0x237e85,_0xb9aec1){return _0x237e85>_0xb9aec1;},'wRpvM':_0x14921b(0xaa),'IEFeC':_0x14921b(0x10e),'ujWPT':'./cliUtils','Iprfq':function(_0x51e40e,_0x53c2b7){return _0x51e40e===_0x53c2b7;},'LNHqD':_0x14921b(0xac),'ITbPZ':'CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','FUNIN':function(_0x44d919,_0x1df46b){return _0x44d919(_0x1df46b);},'CwrNs':_0x14921b(0x94),'NTEnH':function(_0x3501ca,_0x16fd2f){return _0x3501ca(_0x16fd2f);},'RQPZD':'./state/testFrameworkState','VKiyy':function(_0x52e260,_0x5ddabd){return _0x52e260(_0x5ddabd);},'kGPHB':_0x14921b(0xb7),'FNzdL':_0x14921b(0xfc),'Lqsrr':function(_0x5d7c92,_0x1812eb){return _0x5d7c92(_0x1812eb);},'zmJjj':function(_0x1efea5,_0x285e62){return _0x1efea5===_0x285e62;},'LqMAJ':_0x14921b(0x93)};if(_0x3e4c1d[_0x14921b(0xc6)](typeof _0x9ad300,_0x3e4c1d[_0x14921b(0xf2)])){logger[_0x14921b(0xb0)](_0x3e4c1d[_0x14921b(0xef)]);return;}if(_0x3e4c1d[_0x14921b(0xc6)](typeof _0x58e65c,_0x3e4c1d[_0x14921b(0xf2)])){logger[_0x14921b(0xb0)](_0x3e4c1d[_0x14921b(0xeb)]);return;}if(_0x3e4c1d[_0x14921b(0xf4)](_0x9ad300[_0x14921b(0xe5)](),'')){logger[_0x14921b(0xb0)](_0x3e4c1d[_0x14921b(0xc9)]);return;}if(_0x3e4c1d[_0x14921b(0xf4)](_0x58e65c[_0x14921b(0xe5)](),'')){logger[_0x14921b(0xb0)](_0x3e4c1d[_0x14921b(0x101)]);return;}const _0xd62878=helper[_0x14921b(0xb9)](_0x58e65c);if(_0x4170c9){const _0x17ff64=_0x3e4c1d[_0x14921b(0xd5)](require,_0x3e4c1d[_0x14921b(0xbb)]),_0x1ca7e9=_0x17ff64[_0x14921b(0xa8)](),_0x458012=_0x1ca7e9&&_0x1ca7e9[_0x14921b(0x88)][TestHubModule[_0x14921b(0xb5)]];if(_0x458012){const _0x1fec75=_0x458012?.[_0x14921b(0xce)]?.[_0x14921b(0xfb)]()?.[_0x14921b(0xf6)];TestInfo[_0x14921b(0xed)](_0x1fec75);const _0x5b9fbd=TestInfo[_0x14921b(0x109)](_0x1fec75),_0x3240c1=_0x5b9fbd[TestFrameworkConstants[_0x14921b(0x102)]]||{};CustomTagManager[_0x14921b(0xa6)](_0x3240c1,_0x9ad300,_0xd62878),_0x5b9fbd[TestFrameworkConstants[_0x14921b(0x102)]]=_0x3240c1,TestInfo[_0x14921b(0xfa)](_0x1fec75,_0x5b9fbd);!this[_0x14921b(0x106)][_0x1fec75]&&(this[_0x14921b(0x106)][_0x1fec75]={});this[_0x14921b(0x106)][_0x1fec75][_0x9ad300]=CustomTagManager[_0x14921b(0x97)](this[_0x14921b(0x106)][_0x1fec75][_0x9ad300],_0xd62878);try{const _0x36e2fa=_0x3e4c1d[_0x14921b(0xc3)](getBuildTagsRunId);if(_0x36e2fa){const _0x1511fa={};for(const [_0x2ab982,_0x34129a]of Object[_0x14921b(0xd6)](this[_0x14921b(0x106)][_0x1fec75]||{})){_0x1511fa[_0x2ab982]={'field_type':_0x3e4c1d['MZvly'],'values':Array['isArray'](_0x34129a)?[..._0x34129a]:[]};}_0x3e4c1d['SeZLI'](Object[_0x14921b(0xc8)](_0x1511fa)['length'],0x0)&&await fs[_0x14921b(0xa9)]['writeFile'](_0x3e4c1d[_0x14921b(0xd5)](getBuildTagsFilePath,_0x36e2fa),JSON[_0x14921b(0x8f)](_0x1511fa));}else logger[_0x14921b(0xb0)](_0x3e4c1d['wRpvM']);}catch(_0x92c89a){logger[_0x14921b(0xb0)](_0x14921b(0xc7)+(_0x92c89a&&_0x92c89a[_0x14921b(0xd8)]?_0x92c89a[_0x14921b(0xd8)]:_0x92c89a));}}}else{let _0x4512d8;const _0x39ce28=global['__jestCurrentTestIdentifier'];let _0x48f40b=![];if(_0x39ce28&&_0x39ce28[_0x14921b(0xde)](_0x3e4c1d[_0x14921b(0xf9)]))_0x48f40b=!![],_0x4512d8=_0x39ce28;else try{const _0xa55d0a=_0x3e4c1d[_0x14921b(0xd5)](require,_0x3e4c1d['ujWPT']),_0xcbc4c6=_0x3e4c1d[_0x14921b(0xd5)](require,_0x3e4c1d['lDCce']);if(_0xcbc4c6[_0x14921b(0xa8)]()[_0x14921b(0xec)]()){const _0xd52b7e=_0xa55d0a[_0x14921b(0xe1)]();if(_0x3e4c1d[_0x14921b(0xd4)](_0xd52b7e?.[_0x14921b(0xe2)]?.[_0x14921b(0xd2)](),_0x3e4c1d[_0x14921b(0xf3)])){const _0x59d951=AutomationFramework[_0x14921b(0x108)]();_0x4512d8=AutomationFramework[_0x14921b(0x10a)](_0x59d951,PlaywrightDriverModule['KEY_TEST_ID'],''),_0x4512d8&&_0x4512d8['includes'](_0x3e4c1d[_0x14921b(0xf9)])&&(_0x48f40b=!![]);}}}catch(_0x23049a){logger['debug']('CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20'+_0x23049a);}if(_0x48f40b){if(!_0x4512d8)throw new Error(_0x3e4c1d[_0x14921b(0xc2)]);const _0x165990=_0x3e4c1d[_0x14921b(0xbf)](require,_0x3e4c1d[_0x14921b(0xbb)]),_0x3bece4=_0x165990['getInstance']()[_0x14921b(0xf5)]();if(!_0x3bece4)throw new Error(_0x3e4c1d[_0x14921b(0xdf)]);const _0x3a670b=_0x3e4c1d[_0x14921b(0xdb)](require,_0x3e4c1d[_0x14921b(0x87)]),_0x25c0a7=_0x3e4c1d[_0x14921b(0xae)](require,_0x3e4c1d['kGPHB']),_0x361e83=_0x3bece4[_0x14921b(0x90)](_0x3a670b[_0x14921b(0xaf)],_0x25c0a7[_0x14921b(0xee)]);if(!_0x361e83)throw new Error(_0x3e4c1d[_0x14921b(0x103)]);const _0x305eff=_0x361e83[_0x14921b(0x8a)]()['get'](_0x4512d8)||{},_0x601937=_0x305eff[TestFrameworkConstants[_0x14921b(0x102)]]||{};logger[_0x14921b(0xb0)](_0x14921b(0x96)+_0x4512d8+_0x14921b(0x9d)+_0x9ad300+_0x14921b(0xb3)+JSON[_0x14921b(0x8f)](_0xd62878)+_0x14921b(0xab)+JSON[_0x14921b(0x8f)](_0x601937)),CustomTagManager['mergeIntoTags'](_0x601937,_0x9ad300,_0xd62878),logger[_0x14921b(0xb0)]('[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key='+_0x9ad300+_0x14921b(0xfd)+JSON['stringify'](_0x601937[_0x9ad300][_0x14921b(0xba)]));const _0x454cfa={[TestFrameworkConstants[_0x14921b(0x102)]]:_0x601937},_0x26363b={};_0x26363b[_0x4512d8]=_0x454cfa,_0x361e83[_0x14921b(0x9f)](_0x26363b),logger[_0x14921b(0xb0)](_0x14921b(0xe7)+_0x4512d8+_0x14921b(0xd1)+JSON['stringify'](_0x601937)),!this[_0x14921b(0x8d)][_0x4512d8]&&(this[_0x14921b(0x8d)][_0x4512d8]={}),this[_0x14921b(0x8d)][_0x4512d8][_0x9ad300]=CustomTagManager[_0x14921b(0x97)](this[_0x14921b(0x8d)][_0x4512d8][_0x9ad300],_0xd62878);}else{const _0x4b5e11=global[_0x14921b(0xf7)]?.[_0x14921b(0xc5)]?.[_0x14921b(0xda)];if(!_0x4b5e11){const _0x4cbca4=AutomationFramework['getTrackedInstance']();_0x4512d8=AutomationFramework['getState'](_0x4cbca4,PlaywrightDriverModule['KEY_TEST_ID'],'');if(!_0x4512d8)try{const _0x39003f=_0x3e4c1d[_0x14921b(0x9a)](require,_0x3e4c1d[_0x14921b(0xbb)]),_0x33d318=_0x39003f[_0x14921b(0xa8)](),_0x2ce7cc=_0x33d318&&_0x33d318[_0x14921b(0xf5)]();_0x4512d8=_0x2ce7cc&&_0x3e4c1d['zmJjj'](typeof _0x2ce7cc[_0x14921b(0xa2)],_0x3e4c1d[_0x14921b(0x10d)])&&_0x2ce7cc['getCurrentTestUUID']()||_0x4512d8;}catch(_0x498724){logger[_0x14921b(0xb0)](_0x14921b(0xc0)+(_0x498724&&_0x498724[_0x14921b(0xd8)]));}}else _0x4512d8=TestInfo[_0x14921b(0xbd)](_0x4b5e11,_0x4b5e11['retry']);const _0x4328bb=TestInfo[_0x14921b(0x109)](_0x4512d8),_0x563a89=_0x4328bb[TestFrameworkConstants[_0x14921b(0x102)]]||{};CustomTagManager[_0x14921b(0xa6)](_0x563a89,_0x9ad300,_0xd62878),_0x4328bb[TestFrameworkConstants[_0x14921b(0x102)]]=_0x563a89,TestInfo[_0x14921b(0xfa)](_0x4512d8,_0x4328bb),!this['testLevelTags'][_0x4512d8]&&(this[_0x14921b(0x8d)][_0x4512d8]={}),this[_0x14921b(0x8d)][_0x4512d8][_0x9ad300]=CustomTagManager['mergeValues'](this[_0x14921b(0x8d)][_0x4512d8][_0x9ad300],_0xd62878);}}}static['getBuildLevelTags'](){const _0x1fe212={...this['buildLevelTags']};return _0x1fe212;}static[a86_0x3ff181(0x99)](){const _0x4922f3=a86_0x3ff181,_0x443493={...this[_0x4922f3(0x8d)]};return _0x443493;}static[a86_0x3ff181(0x8e)](){this['buildLevelTags']={},this['testLevelTags']={};}static[a86_0x3ff181(0xbc)](_0x256ccb,_0x3ddf4c){const _0xbfeb75=a86_0x3ff181,_0xe3f763={};_0xe3f763['GFhsg']=function(_0x964d02,_0x165382){return _0x964d02||_0x165382;};const _0xf4cc81=_0xe3f763;if(!_0x256ccb)return;!this['buildLevelTags'][_0x256ccb]&&(this['buildLevelTags'][_0x256ccb]={});for(const [_0x1ca3e7,_0x5aab5a]of Object[_0xbfeb75(0xd6)](_0xf4cc81[_0xbfeb75(0xa3)](_0x3ddf4c,{}))){if(!_0x5aab5a||!Array[_0xbfeb75(0x107)](_0x5aab5a[_0xbfeb75(0xba)]))continue;this[_0xbfeb75(0x106)][_0x256ccb][_0x1ca3e7]=CustomTagManager['mergeValues'](this[_0xbfeb75(0x106)][_0x256ccb][_0x1ca3e7],_0x5aab5a[_0xbfeb75(0xba)]);}}static[a86_0x3ff181(0xc1)](_0x49ddb7,_0x6c7230){const _0x2cf14d=a86_0x3ff181,_0xa8003e={};_0xa8003e[_0x2cf14d(0xd9)]=_0x2cf14d(0xe6),_0xa8003e[_0x2cf14d(0xbe)]=function(_0x6324ae,_0x274fee){return _0x6324ae*_0x274fee;},_0xa8003e['ebxue']=function(_0x3904c2,_0x13b1ff){return _0x3904c2*_0x13b1ff;},_0xa8003e['UgUAZ']=function(_0x31d7e0,_0x4a160b){return _0x31d7e0>_0x4a160b;},_0xa8003e[_0x2cf14d(0xf8)]=function(_0x1c7270,_0x2fa573){return _0x1c7270-_0x2fa573;},_0xa8003e[_0x2cf14d(0x112)]='utf8';const _0x46d6a2=_0xa8003e;if(!_0x49ddb7)return logger[_0x2cf14d(0xb0)](_0x46d6a2[_0x2cf14d(0xd9)]),0x0;let _0x44a247;try{_0x44a247=os[_0x2cf14d(0xca)]();}catch(_0x1ba58b){return logger[_0x2cf14d(0xb0)](_0x2cf14d(0xa7)+_0x1ba58b),0x0;}let _0x1917e4;try{_0x1917e4=fs['readdirSync'](_0x44a247);}catch(_0x5cc271){return logger[_0x2cf14d(0xb0)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20'+_0x5cc271),0x0;}const _0x4b88fd=''+BUILD_TAG_FILE_PREFIX+_0x49ddb7+'_',_0x102c20=_0x1917e4[_0x2cf14d(0xb4)](_0x4ec6a6=>_0x4ec6a6[_0x2cf14d(0xb8)](_0x4b88fd)&&_0x4ec6a6[_0x2cf14d(0x8c)]('.json')),_0x361527=_0x46d6a2[_0x2cf14d(0xbe)](_0x46d6a2[_0x2cf14d(0xb2)](_0x46d6a2[_0x2cf14d(0xb2)](0x2,0x3c),0x3c),0x3e8);let _0x18581d=0x0;for(const _0x3782b3 of _0x102c20){const _0x55dca3=path[_0x2cf14d(0xcc)](_0x44a247,_0x3782b3);try{const _0x4f3396=fs['statSync'](_0x55dca3);if(_0x46d6a2[_0x2cf14d(0x9b)](_0x46d6a2[_0x2cf14d(0xf8)](Date[_0x2cf14d(0xc4)](),_0x4f3396[_0x2cf14d(0xe4)]),_0x361527)){logger['debug'](_0x2cf14d(0xff)+_0x361527+_0x2cf14d(0xfe)+_0x3782b3);try{fs[_0x2cf14d(0x95)](_0x55dca3);}catch(_0x20669f){logger[_0x2cf14d(0xb0)](_0x2cf14d(0x104)+_0x3782b3+':\x20'+(_0x20669f&&_0x20669f['message']?_0x20669f[_0x2cf14d(0xd8)]:_0x20669f));}continue;}const _0x4fa9d9=fs[_0x2cf14d(0xe3)](_0x55dca3,_0x46d6a2[_0x2cf14d(0x112)]),_0x43e1f4=JSON['parse'](_0x4fa9d9);this[_0x2cf14d(0xbc)](_0x6c7230,_0x43e1f4),_0x18581d+=0x1;}catch(_0x27a4e7){logger[_0x2cf14d(0xb0)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20'+_0x3782b3+':\x20'+(_0x27a4e7&&_0x27a4e7[_0x2cf14d(0xd8)]?_0x27a4e7[_0x2cf14d(0xd8)]:_0x27a4e7));}try{fs[_0x2cf14d(0x95)](_0x55dca3);}catch(_0x2fdede){logger[_0x2cf14d(0xb0)](_0x2cf14d(0x98)+_0x3782b3+':\x20'+(_0x2fdede&&_0x2fdede['message']?_0x2fdede[_0x2cf14d(0xd8)]:_0x2fdede));}}return _0x18581d;}}function a86_0x504a(_0xb5ae0,_0xf262c3){const _0xdfa066=a86_0xdfa0();return a86_0x504a=function(_0x504a6c,_0x4e8bb3){_0x504a6c=_0x504a6c-0x86;let _0x5ecfdd=_0xdfa066[_0x504a6c];return _0x5ecfdd;},a86_0x504a(_0xb5ae0,_0xf262c3);}const a86_0x4e3834={};a86_0x4e3834[a86_0x3ff181(0xad)]=getBuildTagsRunId,a86_0x4e3834[a86_0x3ff181(0xcd)]=getBuildTagsFilePath,a86_0x4e3834[a86_0x3ff181(0xe8)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a86_0x3ff181(0xd0)]=a86_0x4e3834,module[a86_0x3ff181(0x8b)]=CustomTagManager;
|
|
1
|
+
'use strict';const a86_0x378f48=a86_0xf474;(function(_0x243972,_0x2d48de){const _0xcb4edd=a86_0xf474,_0x1fecb0=_0x243972();while(!![]){try{const _0x3cbb15=-parseInt(_0xcb4edd(0x15f))/0x1+-parseInt(_0xcb4edd(0x14f))/0x2+-parseInt(_0xcb4edd(0x1a7))/0x3+-parseInt(_0xcb4edd(0x1bf))/0x4+-parseInt(_0xcb4edd(0x1ba))/0x5+parseInt(_0xcb4edd(0x1d6))/0x6*(parseInt(_0xcb4edd(0x1a3))/0x7)+parseInt(_0xcb4edd(0x15b))/0x8;if(_0x3cbb15===_0x2d48de)break;else _0x1fecb0['push'](_0x1fecb0['shift']());}catch(_0x53d377){_0x1fecb0['push'](_0x1fecb0['shift']());}}}(a86_0x2749,0x47938));function a86_0x2749(){const _0x28b96f=['__workerDetails','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','vlFXm','./modules/testhubModule','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','7624128rHuMIA','getBuildLevelTags','readdirSync','./state/hookState','23912hcpZGG','QZEMK','mergeValues','trim','resolveInstance','readFileSync','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','DIUeN','entries','../../helpers/classLogger','promises','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','unlinkSync','jTBvy','dVcZq','toObject','LkAwE','mtimeMs','endsWith','gJQCl','env','ms)\x20','./state/testFrameworkState','buildHashedId','mergeBuildLevelTags','now','mergeIntoTags','zwzeE','tmpdir','from','testhubConfig','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','zvnhC','getState','function','debug','PTSQJ','KwHbG','stringify','_testInternals','KEY_TEST_ID','null','BROWSERSTACK_TESTHUB_UUID','./framework/automationFramework','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','RrcgA','getTestFramework','multi_dropdown','bstack_build_tags_','modules','parse','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','MODULE_NAME','includes','aLeRp','./browserstackCLI','parseCommaSeparatedValues','clearTags','getTrackedInstance','getCurrentTestUUID','field_type','utf8','bHSGG','WXSVS','pid','getInstance','testLevelTags','isRunning','1699817ZjBsuM','getTestLevelTags','message','getBuildTagsFilePath','722607QdzcUS','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','uoDFC','sfFGh','oZEtA','retry','./framework/constants/testFrameworkConstants','./cliUtils','./TestInfo','AIENV','values','TEST','getTestFrameworkDetail','statSync','string','fozmt','__jestCurrentTestIdentifier','getTestDetails','path','1480340mIXKCS','BUILD_TAG_FILE_PREFIX',',\x20key=','.json',',\x20finalTags=','374208GfpPzU','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','mYaKU','aggregateBuildLevelTagsFromTmp','trlED','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','JlURc','getBuildTagsRunId','writeFile','fyFTN',',\x20existingTags=','buildLevelTags','xnLJh','isArray','getAllData','POST','\x20->\x20values=','toLowerCase','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','QtTbU','CustomTagManager','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','RBYsU','6BnThwc','setTestDetails','cgsNv','join','name','getTestIdentifierFromTestInfo','496540TGUjuu','jest','currentTest','KEY_CUSTOM_TAGS','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','./modules/playwrightDriverModule','exports'];a86_0x2749=function(){return _0x28b96f;};return a86_0x2749();}const fs=require('fs'),os=require('os'),path=require(a86_0x378f48(0x1b9)),helper=require('../../helpers/helper'),AutomationFramework=require(a86_0x378f48(0x18a)),TestFrameworkConstants=require(a86_0x378f48(0x1ad)),PlaywrightDriverModule=require(a86_0x378f48(0x154)),TestInfo=require(a86_0x378f48(0x1af)),TestHubModule=require(a86_0x378f48(0x159)),{createClassLogger}=require(a86_0x378f48(0x168)),logger=createClassLogger(a86_0x378f48(0x1d3)),BUILD_TAG_FILE_PREFIX=a86_0x378f48(0x18f);function a86_0xf474(_0x231347,_0x28b1fc){const _0x2749c2=a86_0x2749();return a86_0xf474=function(_0xf474fa,_0x2956a4){_0xf474fa=_0xf474fa-0x14f;let _0x310d76=_0x2749c2[_0xf474fa];return _0x310d76;},a86_0xf474(_0x231347,_0x28b1fc);}function getBuildTagsRunId(){const _0x3dcadf=a86_0x378f48,_0x2dda68={};_0x2dda68[_0x3dcadf(0x1c1)]=function(_0x23daf2,_0x48adce){return _0x23daf2===_0x48adce;},_0x2dda68[_0x3dcadf(0x16c)]=_0x3dcadf(0x188);const _0x2b043b=_0x2dda68,_0x3e90f2=process[_0x3dcadf(0x173)][_0x3dcadf(0x189)];if(!_0x3e90f2||_0x2b043b[_0x3dcadf(0x1c1)](_0x3e90f2,_0x2b043b[_0x3dcadf(0x16c)]))return null;return _0x3e90f2;}function getBuildTagsFilePath(_0x304b9f){const _0x3803b6=a86_0x378f48;return path[_0x3803b6(0x1d9)](os['tmpdir'](),''+BUILD_TAG_FILE_PREFIX+_0x304b9f+'_'+process[_0x3803b6(0x19f)]+'.json');}class CustomTagManager{static [a86_0x378f48(0x1ca)]={};static ['testLevelTags']={};static[a86_0x378f48(0x161)](_0x2ff695,_0x53d2e7){const _0x35c1a9=a86_0x378f48;return Array[_0x35c1a9(0x17c)](new Set([..._0x2ff695||[],..._0x53d2e7||[]]));}static[a86_0x378f48(0x179)](_0x32cd74,_0x1d5401,_0x1c2afb){const _0x4b560e=a86_0x378f48,_0x29ac27={};_0x29ac27[_0x4b560e(0x1d5)]=_0x4b560e(0x18e);const _0x10caab=_0x29ac27;if(!_0x32cd74[_0x1d5401]){const _0x3d0dcb={};_0x3d0dcb[_0x4b560e(0x19b)]=_0x10caab[_0x4b560e(0x1d5)],_0x3d0dcb[_0x4b560e(0x1b1)]=[..._0x1c2afb||[]],_0x32cd74[_0x1d5401]=_0x3d0dcb;}else!_0x32cd74[_0x1d5401][_0x4b560e(0x19b)]&&(_0x32cd74[_0x1d5401]['field_type']=_0x10caab[_0x4b560e(0x1d5)]),!Array[_0x4b560e(0x1cc)](_0x32cd74[_0x1d5401][_0x4b560e(0x1b1)])&&(_0x32cd74[_0x1d5401][_0x4b560e(0x1b1)]=[]),_0x32cd74[_0x1d5401][_0x4b560e(0x1b1)]=CustomTagManager[_0x4b560e(0x161)](_0x32cd74[_0x1d5401]['values'],_0x1c2afb);return _0x32cd74;}static async['setCustomTags'](_0x19a42e,_0x4e2c51,_0x27ef2d=![]){const _0x4db0a5=a86_0x378f48,_0x2a9c69={'LkAwE':function(_0x58ca0b,_0x40b322){return _0x58ca0b!==_0x40b322;},'dVcZq':_0x4db0a5(0x1b5),'pLwQs':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','ctqDE':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','xnLJh':function(_0xd17c52,_0x4c4b31){return _0xd17c52===_0x4c4b31;},'yrkjK':_0x4db0a5(0x16a),'bHSGG':function(_0x11e972,_0x5874cb){return _0x11e972===_0x5874cb;},'trlED':_0x4db0a5(0x1d1),'zwzeE':function(_0x26cde9,_0x20ea2a){return _0x26cde9(_0x20ea2a);},'uoDFC':_0x4db0a5(0x196),'aLeRp':function(_0x291077){return _0x291077();},'rLQCk':_0x4db0a5(0x18e),'PTSQJ':function(_0x199d3d,_0x28c400){return _0x199d3d>_0x28c400;},'JlURc':function(_0x1d01bb,_0x2a8065){return _0x1d01bb(_0x2a8065);},'AIENV':'CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','KGrdm':':jest-','fyFTN':function(_0x245313,_0x5dcade){return _0x245313(_0x5dcade);},'fozmt':_0x4db0a5(0x1ae),'QZEMK':_0x4db0a5(0x150),'oZEtA':'CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','jovuV':_0x4db0a5(0x1c0),'yCqmp':_0x4db0a5(0x175),'WHkym':function(_0x371b7c,_0x49ee7a){return _0x371b7c(_0x49ee7a);},'gJQCl':_0x4db0a5(0x15e),'KwHbG':_0x4db0a5(0x1d4),'Jjmgw':function(_0x26c138,_0x47c0d8){return _0x26c138(_0x47c0d8);},'cgsNv':function(_0xdcc00f,_0x1cf0c9){return _0xdcc00f===_0x1cf0c9;},'GSkvk':_0x4db0a5(0x181)};if(_0x2a9c69[_0x4db0a5(0x16f)](typeof _0x19a42e,_0x2a9c69[_0x4db0a5(0x16d)])){logger['debug'](_0x2a9c69['pLwQs']);return;}if(_0x2a9c69[_0x4db0a5(0x16f)](typeof _0x4e2c51,_0x2a9c69[_0x4db0a5(0x16d)])){logger['debug'](_0x2a9c69['ctqDE']);return;}if(_0x2a9c69[_0x4db0a5(0x1cb)](_0x19a42e[_0x4db0a5(0x162)](),'')){logger[_0x4db0a5(0x182)](_0x2a9c69['yrkjK']);return;}if(_0x2a9c69[_0x4db0a5(0x19d)](_0x4e2c51['trim'](),'')){logger['debug'](_0x2a9c69[_0x4db0a5(0x1c3)]);return;}const _0x516b26=helper[_0x4db0a5(0x197)](_0x4e2c51);if(_0x27ef2d){const _0x2fd725=_0x2a9c69[_0x4db0a5(0x17a)](require,_0x2a9c69['uoDFC']),_0x32bcf4=_0x2fd725['getInstance'](),_0x295d44=_0x32bcf4&&_0x32bcf4[_0x4db0a5(0x190)][TestHubModule[_0x4db0a5(0x193)]];if(_0x295d44){const _0x161a07=_0x295d44?.[_0x4db0a5(0x17d)]?.[_0x4db0a5(0x16e)]()?.[_0x4db0a5(0x176)];TestInfo['getTestUUID'](_0x161a07);const _0x4e4559=TestInfo[_0x4db0a5(0x1b8)](_0x161a07),_0x11ae95=_0x4e4559[TestFrameworkConstants[_0x4db0a5(0x152)]]||{};CustomTagManager[_0x4db0a5(0x179)](_0x11ae95,_0x19a42e,_0x516b26),_0x4e4559[TestFrameworkConstants[_0x4db0a5(0x152)]]=_0x11ae95,TestInfo[_0x4db0a5(0x1d7)](_0x161a07,_0x4e4559);!this[_0x4db0a5(0x1ca)][_0x161a07]&&(this[_0x4db0a5(0x1ca)][_0x161a07]={});this[_0x4db0a5(0x1ca)][_0x161a07][_0x19a42e]=CustomTagManager[_0x4db0a5(0x161)](this[_0x4db0a5(0x1ca)][_0x161a07][_0x19a42e],_0x516b26);try{const _0x12aaff=_0x2a9c69[_0x4db0a5(0x195)](getBuildTagsRunId);if(_0x12aaff){const _0x18f74e={};for(const [_0x29a080,_0x4d1d7a]of Object[_0x4db0a5(0x167)](this[_0x4db0a5(0x1ca)][_0x161a07]||{})){_0x18f74e[_0x29a080]={'field_type':_0x2a9c69['rLQCk'],'values':Array[_0x4db0a5(0x1cc)](_0x4d1d7a)?[..._0x4d1d7a]:[]};}_0x2a9c69[_0x4db0a5(0x183)](Object['keys'](_0x18f74e)['length'],0x0)&&await fs[_0x4db0a5(0x169)][_0x4db0a5(0x1c7)](_0x2a9c69[_0x4db0a5(0x1c5)](getBuildTagsFilePath,_0x12aaff),JSON[_0x4db0a5(0x185)](_0x18f74e));}else logger[_0x4db0a5(0x182)](_0x2a9c69[_0x4db0a5(0x1b0)]);}catch(_0xe32192){logger[_0x4db0a5(0x182)]('CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20'+(_0xe32192&&_0xe32192['message']?_0xe32192['message']:_0xe32192));}}}else{let _0x200806;const _0x5d94a7=global[_0x4db0a5(0x1b7)];let _0x2f9a6c=![];if(_0x5d94a7&&_0x5d94a7[_0x4db0a5(0x194)](_0x2a9c69['KGrdm']))_0x2f9a6c=!![],_0x200806=_0x5d94a7;else try{const _0x3b9e69=_0x2a9c69[_0x4db0a5(0x1c8)](require,_0x2a9c69[_0x4db0a5(0x1b6)]),_0x59449c=_0x2a9c69['fyFTN'](require,_0x2a9c69[_0x4db0a5(0x1a9)]);if(_0x59449c[_0x4db0a5(0x1a0)]()[_0x4db0a5(0x1a2)]()){const _0x470652=_0x3b9e69[_0x4db0a5(0x1b3)]();if(_0x2a9c69['bHSGG'](_0x470652?.[_0x4db0a5(0x1da)]?.[_0x4db0a5(0x1d0)](),_0x2a9c69[_0x4db0a5(0x160)])){const _0x1f3b5a=AutomationFramework['getTrackedInstance']();_0x200806=AutomationFramework['getState'](_0x1f3b5a,PlaywrightDriverModule[_0x4db0a5(0x187)],''),_0x200806&&_0x200806[_0x4db0a5(0x194)](_0x2a9c69['KGrdm'])&&(_0x2f9a6c=!![]);}}}catch(_0x123945){logger[_0x4db0a5(0x182)](_0x4db0a5(0x18b)+_0x123945);}if(_0x2f9a6c){if(!_0x200806)throw new Error(_0x2a9c69[_0x4db0a5(0x1ab)]);const _0x53e808=_0x2a9c69[_0x4db0a5(0x1c5)](require,_0x2a9c69[_0x4db0a5(0x1a9)]),_0x117d10=_0x53e808[_0x4db0a5(0x1a0)]()[_0x4db0a5(0x18d)]();if(!_0x117d10)throw new Error(_0x2a9c69['jovuV']);const _0x2069f0=_0x2a9c69[_0x4db0a5(0x1c5)](require,_0x2a9c69['yCqmp']),_0x1cc938=_0x2a9c69['WHkym'](require,_0x2a9c69[_0x4db0a5(0x172)]),_0x17c0f2=_0x117d10[_0x4db0a5(0x163)](_0x2069f0[_0x4db0a5(0x1b2)],_0x1cc938[_0x4db0a5(0x1ce)]);if(!_0x17c0f2)throw new Error(_0x2a9c69[_0x4db0a5(0x184)]);const _0x5098a2=_0x17c0f2[_0x4db0a5(0x1cd)]()['get'](_0x200806)||{},_0x53e0c1=_0x5098a2[TestFrameworkConstants[_0x4db0a5(0x152)]]||{};logger[_0x4db0a5(0x182)](_0x4db0a5(0x192)+_0x200806+_0x4db0a5(0x1bc)+_0x19a42e+',\x20values='+JSON[_0x4db0a5(0x185)](_0x516b26)+_0x4db0a5(0x1c9)+JSON[_0x4db0a5(0x185)](_0x53e0c1)),CustomTagManager[_0x4db0a5(0x179)](_0x53e0c1,_0x19a42e,_0x516b26),logger[_0x4db0a5(0x182)](_0x4db0a5(0x157)+_0x19a42e+_0x4db0a5(0x1cf)+JSON[_0x4db0a5(0x185)](_0x53e0c1[_0x19a42e][_0x4db0a5(0x1b1)]));const _0x3d0437={[TestFrameworkConstants[_0x4db0a5(0x152)]]:_0x53e0c1},_0x4460f3={};_0x4460f3[_0x200806]=_0x3d0437,_0x17c0f2['addMultipleEntries'](_0x4460f3),logger[_0x4db0a5(0x182)]('[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier='+_0x200806+_0x4db0a5(0x1be)+JSON[_0x4db0a5(0x185)](_0x53e0c1)),!this[_0x4db0a5(0x1a1)][_0x200806]&&(this[_0x4db0a5(0x1a1)][_0x200806]={}),this['testLevelTags'][_0x200806][_0x19a42e]=CustomTagManager[_0x4db0a5(0x161)](this[_0x4db0a5(0x1a1)][_0x200806][_0x19a42e],_0x516b26);}else{const _0x21dd6d=global[_0x4db0a5(0x156)]?.[_0x4db0a5(0x151)]?.['testInfo'];if(!_0x21dd6d){const _0x37d71d=AutomationFramework[_0x4db0a5(0x199)]();_0x200806=AutomationFramework[_0x4db0a5(0x180)](_0x37d71d,PlaywrightDriverModule['KEY_TEST_ID'],'');if(!_0x200806)try{const _0x2424c8=_0x2a9c69['Jjmgw'](require,_0x2a9c69[_0x4db0a5(0x1a9)]),_0x31cc20=_0x2424c8['getInstance'](),_0x13e807=_0x31cc20&&_0x31cc20[_0x4db0a5(0x18d)]();_0x200806=_0x13e807&&_0x2a9c69[_0x4db0a5(0x1d8)](typeof _0x13e807[_0x4db0a5(0x19a)],_0x2a9c69['GSkvk'])&&_0x13e807[_0x4db0a5(0x19a)]()||_0x200806;}catch(_0xc009ea){logger[_0x4db0a5(0x182)]('CustomTagManager.setCustomTags:\x20node-generic\x20testId\x20fallback\x20failed:\x20'+(_0xc009ea&&_0xc009ea[_0x4db0a5(0x1a5)]));}}else _0x200806=TestInfo[_0x4db0a5(0x1db)](_0x21dd6d,_0x21dd6d[_0x4db0a5(0x1ac)]);const _0x231230=TestInfo[_0x4db0a5(0x1b8)](_0x200806),_0x28ac43=_0x231230[TestFrameworkConstants[_0x4db0a5(0x152)]]||{};CustomTagManager[_0x4db0a5(0x179)](_0x28ac43,_0x19a42e,_0x516b26),_0x231230[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x28ac43,TestInfo[_0x4db0a5(0x1d7)](_0x200806,_0x231230),!this[_0x4db0a5(0x1a1)][_0x200806]&&(this[_0x4db0a5(0x1a1)][_0x200806]={}),this[_0x4db0a5(0x1a1)][_0x200806][_0x19a42e]=CustomTagManager[_0x4db0a5(0x161)](this['testLevelTags'][_0x200806][_0x19a42e],_0x516b26);}}}static[a86_0x378f48(0x15c)](){const _0xb7e198=a86_0x378f48,_0x4d366a={...this[_0xb7e198(0x1ca)]};return _0x4d366a;}static[a86_0x378f48(0x1a4)](){const _0x17012a=a86_0x378f48,_0x3364d0={...this[_0x17012a(0x1a1)]};return _0x3364d0;}static[a86_0x378f48(0x198)](){const _0x1cb3f2=a86_0x378f48;this[_0x1cb3f2(0x1ca)]={},this[_0x1cb3f2(0x1a1)]={};}static['mergeBuildLevelTags'](_0x5ccd51,_0x54285b){const _0x382a95=a86_0x378f48,_0x22d76b={};_0x22d76b['zvnhC']=function(_0x5ba9fc,_0x589c99){return _0x5ba9fc||_0x589c99;};const _0x273827=_0x22d76b;if(!_0x5ccd51)return;!this[_0x382a95(0x1ca)][_0x5ccd51]&&(this[_0x382a95(0x1ca)][_0x5ccd51]={});for(const [_0x472c4e,_0x21ca8e]of Object[_0x382a95(0x167)](_0x273827[_0x382a95(0x17f)](_0x54285b,{}))){if(!_0x21ca8e||!Array[_0x382a95(0x1cc)](_0x21ca8e[_0x382a95(0x1b1)]))continue;this[_0x382a95(0x1ca)][_0x5ccd51][_0x472c4e]=CustomTagManager[_0x382a95(0x161)](this[_0x382a95(0x1ca)][_0x5ccd51][_0x472c4e],_0x21ca8e[_0x382a95(0x1b1)]);}}static[a86_0x378f48(0x1c2)](_0x1b75bb,_0x478d8e){const _0x42216d=a86_0x378f48,_0x25c8b8={};_0x25c8b8['QtTbU']=_0x42216d(0x153),_0x25c8b8[_0x42216d(0x1aa)]=function(_0x18c3af,_0x14d71d){return _0x18c3af*_0x14d71d;},_0x25c8b8[_0x42216d(0x19e)]=function(_0x27df8f,_0x51dfd6){return _0x27df8f*_0x51dfd6;},_0x25c8b8[_0x42216d(0x166)]=function(_0x37223a,_0x33d66a){return _0x37223a>_0x33d66a;},_0x25c8b8[_0x42216d(0x158)]=function(_0x5a9282,_0x37be13){return _0x5a9282-_0x37be13;},_0x25c8b8[_0x42216d(0x18c)]=_0x42216d(0x19c);const _0x44bac6=_0x25c8b8;if(!_0x1b75bb)return logger['debug'](_0x44bac6[_0x42216d(0x1d2)]),0x0;let _0xea299f;try{_0xea299f=os[_0x42216d(0x17b)]();}catch(_0x280fbd){return logger[_0x42216d(0x182)](_0x42216d(0x165)+_0x280fbd),0x0;}let _0x49658b;try{_0x49658b=fs[_0x42216d(0x15d)](_0xea299f);}catch(_0x3b042b){return logger[_0x42216d(0x182)](_0x42216d(0x1c4)+_0x3b042b),0x0;}const _0x19a015=''+BUILD_TAG_FILE_PREFIX+_0x1b75bb+'_',_0x604c93=_0x49658b['filter'](_0x2fe3f7=>_0x2fe3f7['startsWith'](_0x19a015)&&_0x2fe3f7[_0x42216d(0x171)](_0x42216d(0x1bd))),_0x258253=_0x44bac6['sfFGh'](_0x44bac6[_0x42216d(0x1aa)](_0x44bac6[_0x42216d(0x19e)](0x2,0x3c),0x3c),0x3e8);let _0x47c584=0x0;for(const _0x40632d of _0x604c93){const _0x526140=path[_0x42216d(0x1d9)](_0xea299f,_0x40632d);try{const _0x2f5a95=fs[_0x42216d(0x1b4)](_0x526140);if(_0x44bac6['DIUeN'](_0x44bac6[_0x42216d(0x158)](Date[_0x42216d(0x178)](),_0x2f5a95[_0x42216d(0x170)]),_0x258253)){logger[_0x42216d(0x182)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>'+_0x258253+_0x42216d(0x174)+_0x40632d);try{fs[_0x42216d(0x16b)](_0x526140);}catch(_0xb752bb){logger[_0x42216d(0x182)](_0x42216d(0x1a8)+_0x40632d+':\x20'+(_0xb752bb&&_0xb752bb['message']?_0xb752bb[_0x42216d(0x1a5)]:_0xb752bb));}continue;}const _0x3c3ac3=fs[_0x42216d(0x164)](_0x526140,_0x44bac6[_0x42216d(0x18c)]),_0x32870b=JSON[_0x42216d(0x191)](_0x3c3ac3);this[_0x42216d(0x177)](_0x478d8e,_0x32870b),_0x47c584+=0x1;}catch(_0x4fc1d8){logger[_0x42216d(0x182)](_0x42216d(0x15a)+_0x40632d+':\x20'+(_0x4fc1d8&&_0x4fc1d8[_0x42216d(0x1a5)]?_0x4fc1d8[_0x42216d(0x1a5)]:_0x4fc1d8));}try{fs[_0x42216d(0x16b)](_0x526140);}catch(_0x350734){logger[_0x42216d(0x182)](_0x42216d(0x17e)+_0x40632d+':\x20'+(_0x350734&&_0x350734[_0x42216d(0x1a5)]?_0x350734[_0x42216d(0x1a5)]:_0x350734));}}return _0x47c584;}}const a86_0xaf1cb5={};a86_0xaf1cb5[a86_0x378f48(0x1c6)]=getBuildTagsRunId,a86_0xaf1cb5[a86_0x378f48(0x1a6)]=getBuildTagsFilePath,a86_0xaf1cb5[a86_0x378f48(0x1bb)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a86_0x378f48(0x186)]=a86_0xaf1cb5,module[a86_0x378f48(0x155)]=CustomTagManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a87_0x49c233=a87_0x432e;function a87_0x1ae7(){const _0x3cdb08=['11lHuBQg','28sSuSoh','178vwLMqX','freeze','5717510DffrRZ','observers','5mYxqLY','458178rKyJur','3557rChHnS','exports','25266LcbfTG','129784fJGGRb','getInstance','notifyObserver','lHiSY','../../helpers/classLogger.js','687032vnqclU','832041QNMLGh'];a87_0x1ae7=function(){return _0x3cdb08;};return a87_0x1ae7();}(function(_0x4982cd,_0x5625ad){const _0xc4a5fd=a87_0x432e,_0x127a99=_0x4982cd();while(!![]){try{const _0x150684=parseInt(_0xc4a5fd(0x1a1))/0x1*(parseInt(_0xc4a5fd(0x19b))/0x2)+parseInt(_0xc4a5fd(0x191))/0x3+parseInt(_0xc4a5fd(0x192))/0x4+-parseInt(_0xc4a5fd(0x19f))/0x5*(-parseInt(_0xc4a5fd(0x1a0))/0x6)+parseInt(_0xc4a5fd(0x19a))/0x7*(parseInt(_0xc4a5fd(0x197))/0x8)+parseInt(_0xc4a5fd(0x198))/0x9+parseInt(_0xc4a5fd(0x19d))/0xa*(-parseInt(_0xc4a5fd(0x199))/0xb);if(_0x150684===_0x5625ad)break;else _0x127a99['push'](_0x127a99['shift']());}catch(_0x5c6ce6){_0x127a99['push'](_0x127a99['shift']());}}}(a87_0x1ae7,0x48c22));function a87_0x432e(_0x132afb,_0x486e74){const _0x1ae7d5=a87_0x1ae7();return a87_0x432e=function(_0x432e44,_0x337530){_0x432e44=_0x432e44-0x191;let _0x207515=_0x1ae7d5[_0x432e44];return _0x207515;},a87_0x432e(_0x132afb,_0x486e74);}const {createClassLogger}=require(a87_0x49c233(0x196));class EventDispatcher{static #instance=null;constructor(){const _0xdb653b=a87_0x49c233;this[_0xdb653b(0x19e)]={};}static[a87_0x49c233(0x193)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}['registerObserver'](_0x3e6068,_0x1d31c1){const _0x15f713=a87_0x49c233;!this[_0x15f713(0x19e)][_0x3e6068]&&(this[_0x15f713(0x19e)][_0x3e6068]=[]),this[_0x15f713(0x19e)][_0x3e6068]['push'](_0x1d31c1);}async[a87_0x49c233(0x194)](_0x11e197,_0x497bcc){const _0x4c8ac2=a87_0x49c233,_0x19b3e1={'lHiSY':function(_0x160d38,_0x5119b8){return _0x160d38(_0x5119b8);}};if(this[_0x4c8ac2(0x19e)][_0x11e197]){for(const _0x31182c of this['observers'][_0x11e197]){await _0x19b3e1[_0x4c8ac2(0x195)](_0x31182c,_0x497bcc);}return;}}}const eventDispatcher=EventDispatcher[a87_0x49c233(0x193)]();Object[a87_0x49c233(0x19c)](eventDispatcher),module[a87_0x49c233(0x1a2)]=eventDispatcher;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a88_0x4a10(_0x426226,_0xa33fe3){const _0x4e303e=a88_0x4e30();return a88_0x4a10=function(_0x4a103a,_0x521d6d){_0x4a103a=_0x4a103a-0x141;let _0x4fc6b4=_0x4e303e[_0x4a103a];return _0x4fc6b4;},a88_0x4a10(_0x426226,_0xa33fe3);}const a88_0x27c0a3=a88_0x4a10;(function(_0x428f77,_0x3d7b9c){const _0x1f86ad=a88_0x4a10,_0x4ed7b8=_0x428f77();while(!![]){try{const _0x62210=-parseInt(_0x1f86ad(0x158))/0x1+parseInt(_0x1f86ad(0x145))/0x2*(parseInt(_0x1f86ad(0x159))/0x3)+-parseInt(_0x1f86ad(0x15d))/0x4+-parseInt(_0x1f86ad(0x146))/0x5+-parseInt(_0x1f86ad(0x14a))/0x6*(-parseInt(_0x1f86ad(0x154))/0x7)+parseInt(_0x1f86ad(0x15e))/0x8*(-parseInt(_0x1f86ad(0x15f))/0x9)+parseInt(_0x1f86ad(0x14e))/0xa;if(_0x62210===_0x3d7b9c)break;else _0x4ed7b8['push'](_0x4ed7b8['shift']());}catch(_0x1f1e64){_0x4ed7b8['push'](_0x4ed7b8['shift']());}}}(a88_0x4e30,0x8e4a9));const {createClassLogger}=require(a88_0x27c0a3(0x14b)),util=require('util'),eventDispatcher=require(a88_0x27c0a3(0x14d)),CLIUtils=require(a88_0x27c0a3(0x150)),TrackedInstance=require('../instances/trackedInstance.js'),logger=createClassLogger(a88_0x27c0a3(0x14f));class AutomationFramework{static [a88_0x27c0a3(0x157)]=new Map();static [a88_0x27c0a3(0x142)]=a88_0x27c0a3(0x148);static [a88_0x27c0a3(0x15b)]='non_browserstack_automation_sessions';constructor(_0x581787,_0x141742){const _0x6020d2=a88_0x27c0a3;this['automationFrameworkName']=_0x581787,this[_0x6020d2(0x165)]=_0x141742;}[a88_0x27c0a3(0x144)](){const _0x553920=a88_0x27c0a3;return this[_0x553920(0x15a)];}[a88_0x27c0a3(0x153)](){return this['automationFrameworkVersion'];}async['trackEvent'](_0x42bf38,_0x151192,_0x16b641={}){const _0x1dd4a6=a88_0x27c0a3;logger[_0x1dd4a6(0x167)](_0x1dd4a6(0x151)+_0x42bf38+'\x20hookState='+_0x151192);}async[a88_0x27c0a3(0x160)](_0x3939d8,_0x1d863c,_0x5aeca5,_0x56581f={}){const _0x20ed90=a88_0x27c0a3,_0x357e79=CLIUtils[_0x20ed90(0x149)](_0x1d863c,_0x5aeca5);_0x3939d8&&_0x3939d8['setState'](_0x1d863c),await eventDispatcher[_0x20ed90(0x168)](_0x357e79,_0x56581f);}static['registerObserver'](_0x4f4740,_0x5224c4,_0x369b4f){const _0x582ec8=a88_0x27c0a3;eventDispatcher[_0x582ec8(0x141)](CLIUtils[_0x582ec8(0x149)](_0x4f4740,_0x5224c4),_0x369b4f);}static['setTrackedInstance'](_0x56cb63,_0x21c988){const _0xdcee9e=a88_0x27c0a3;AutomationFramework['instances'][_0xdcee9e(0x143)](_0x56cb63[_0xdcee9e(0x166)](),_0x21c988);}static[a88_0x27c0a3(0x15c)](){const _0x427a47=a88_0x27c0a3,_0x3c30fe=TrackedInstance[_0x427a47(0x163)](CLIUtils['getCurrentInstanceName']());return AutomationFramework[_0x427a47(0x157)][_0x427a47(0x164)](_0x3c30fe[_0x427a47(0x166)]());}static[a88_0x27c0a3(0x162)](_0x4a8580,_0x12d4db,_0xe0800c){const _0x1a3b4f=a88_0x27c0a3;_0x4a8580['getAllData']()[_0x1a3b4f(0x143)](_0x12d4db,_0xe0800c);}static[a88_0x27c0a3(0x156)](_0x23c20a,_0x4a8274,_0x4d8818=undefined){const _0x3600ed=a88_0x27c0a3,_0x158369={};_0x158369[_0x3600ed(0x169)]=function(_0x1895dc,_0x83df84){return _0x1895dc!==_0x83df84;},_0x158369[_0x3600ed(0x155)]=_0x3600ed(0x161),_0x158369['gORIK']=function(_0x1d12dc,_0x2f51d9){return _0x1d12dc===_0x2f51d9;};const _0xf982e8=_0x158369;if(!_0x23c20a||_0xf982e8['qQIMq'](typeof _0x23c20a[_0x3600ed(0x14c)],_0xf982e8[_0x3600ed(0x155)]))return _0x4d8818;const _0x3d23ed=_0x23c20a['getAllData']()[_0x3600ed(0x164)](_0x4a8274);return _0xf982e8[_0x3600ed(0x152)](_0x3d23ed,undefined)?_0x4d8818:_0x3d23ed;}}module[a88_0x27c0a3(0x147)]=AutomationFramework;function a88_0x4e30(){const _0x340f46=['registerObserver','KEY_AUTOMATION_SESSIONS','set','getAutomationFrameworkName','2FJjYdB','19355adKLtF','exports','automation_sessions','getHookRegistryKey','194214UsQPSG','../../../helpers/classLogger.js','getAllData','../eventDispatcher.js','8822200zctart','AutomationFramework','../cliUtils.js','trackEvent:\x20automationFrameworkState=','gORIK','getAutomationFrameworkVersion','77hPaQZy','HfgXz','getState','instances','429103fAYczX','3435882JVkOEa','automationFrameworkName','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','getTrackedInstance','3801716RjxQXn','667752yMoLWM','45uSFebO','runHooks','function','setState','createContext','get','automationFrameworkVersion','getId','debug','notifyObserver','qQIMq'];a88_0x4e30=function(){return _0x340f46;};return a88_0x4e30();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a89_0x420feb=a89_0x3962;function a89_0x5044(){const _0x1f35d5=['50MmztbB','COMMAND_QUIT','37EFAFsi','BROWSERSTACK_PLATFORM_INDEX','COMMAND_NEW_SESSION','249325lVCBVi','94365SDWSGQ','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','quit','KEY_HUB_URL','hub_url','exports','KEY_FRAMEWORK_SESSION_ID','12osjATK','COMMAND_SCREENSHOT','COMMAND_W3C_EXECUTE_SCRIPT','started_at','w3cexecutescript','platform_index','w3cexecutescriptasync','KEY_PLATFORM_INDEX','KEY_CAPABILITIES','capabilities','COMMAND_GET','KEY_STARTED_AT','is_browserstack_hub','KEY_INPUT_CAPABILITIES','ENV_BROWSERSTACK_PLATFORM_INDEX','18346hkHxVn','newsession','KEY_ENDED_AT','501457GxXbfV','KEY_IS_BROWSERSTACK_HUB','98224FxLuxc','ended_at','3742674ZprRwL','screenshot','140rxqbpg','624808DDcCEX'];a89_0x5044=function(){return _0x1f35d5;};return a89_0x5044();}(function(_0x222105,_0xe14bae){const _0x6b18f8=a89_0x3962,_0x3234e9=_0x222105();while(!![]){try{const _0x2d1554=-parseInt(_0x6b18f8(0x18b))/0x1*(-parseInt(_0x6b18f8(0x1a5))/0x2)+-parseInt(_0x6b18f8(0x196))/0x3*(-parseInt(_0x6b18f8(0x188))/0x4)+-parseInt(_0x6b18f8(0x18e))/0x5+-parseInt(_0x6b18f8(0x185))/0x6+parseInt(_0x6b18f8(0x187))/0x7*(parseInt(_0x6b18f8(0x183))/0x8)+parseInt(_0x6b18f8(0x18f))/0x9+-parseInt(_0x6b18f8(0x189))/0xa*(parseInt(_0x6b18f8(0x181))/0xb);if(_0x2d1554===_0xe14bae)break;else _0x3234e9['push'](_0x3234e9['shift']());}catch(_0x20d747){_0x3234e9['push'](_0x3234e9['shift']());}}}(a89_0x5044,0x4dcd3));const a89_0xb8c742={};function a89_0x3962(_0x26a587,_0x1a7973){const _0x5044be=a89_0x5044();return a89_0x3962=function(_0x3962d6,_0x45ad82){_0x3962d6=_0x3962d6-0x180;let _0xf99d82=_0x5044be[_0x3962d6];return _0xf99d82;},a89_0x3962(_0x26a587,_0x1a7973);}a89_0xb8c742[a89_0x420feb(0x1a4)]=a89_0x420feb(0x18c),a89_0xb8c742[a89_0x420feb(0x192)]=a89_0x420feb(0x193),a89_0xb8c742[a89_0x420feb(0x195)]='framework_session_id',a89_0xb8c742[a89_0x420feb(0x1a3)]='input_capabilities',a89_0xb8c742[a89_0x420feb(0x19e)]=a89_0x420feb(0x19f),a89_0xb8c742[a89_0x420feb(0x182)]=a89_0x420feb(0x1a2),a89_0xb8c742[a89_0x420feb(0x1a1)]=a89_0x420feb(0x199),a89_0xb8c742[a89_0x420feb(0x180)]=a89_0x420feb(0x184),a89_0xb8c742[a89_0x420feb(0x19d)]=a89_0x420feb(0x19b),a89_0xb8c742[a89_0x420feb(0x18d)]=a89_0x420feb(0x1a6),a89_0xb8c742[a89_0x420feb(0x1a0)]='get',a89_0xb8c742[a89_0x420feb(0x197)]=a89_0x420feb(0x186),a89_0xb8c742[a89_0x420feb(0x198)]=a89_0x420feb(0x19a),a89_0xb8c742[a89_0x420feb(0x190)]=a89_0x420feb(0x19c),a89_0xb8c742[a89_0x420feb(0x18a)]=a89_0x420feb(0x191);const AutomationFrameworkConstants=a89_0xb8c742;module[a89_0x420feb(0x194)]=AutomationFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a90_0x416148=a90_0x2ec9;function a90_0x2ec9(_0x2615ad,_0x5770c4){const _0x27d6a9=a90_0x27d6();return a90_0x2ec9=function(_0x2ec92d,_0x330fb4){_0x2ec92d=_0x2ec92d-0x12d;let _0x4c06b1=_0x27d6a9[_0x2ec92d];return _0x4c06b1;},a90_0x2ec9(_0x2615ad,_0x5770c4);}(function(_0x170881,_0x57ee1e){const _0x5420dc=a90_0x2ec9,_0x46b694=_0x170881();while(!![]){try{const _0x45be16=parseInt(_0x5420dc(0x142))/0x1*(-parseInt(_0x5420dc(0x187))/0x2)+-parseInt(_0x5420dc(0x14b))/0x3+-parseInt(_0x5420dc(0x17d))/0x4+-parseInt(_0x5420dc(0x150))/0x5+-parseInt(_0x5420dc(0x157))/0x6+parseInt(_0x5420dc(0x176))/0x7*(-parseInt(_0x5420dc(0x131))/0x8)+parseInt(_0x5420dc(0x181))/0x9*(parseInt(_0x5420dc(0x141))/0xa);if(_0x45be16===_0x57ee1e)break;else _0x46b694['push'](_0x46b694['shift']());}catch(_0x48eb9f){_0x46b694['push'](_0x46b694['shift']());}}}(a90_0x27d6,0x7600f));const a90_0x495a97={};a90_0x495a97[a90_0x416148(0x185)]=a90_0x416148(0x138),a90_0x495a97['KEY_TEST_ID']=a90_0x416148(0x177),a90_0x495a97[a90_0x416148(0x164)]='test_name',a90_0x495a97[a90_0x416148(0x16c)]=a90_0x416148(0x17b),a90_0x495a97[a90_0x416148(0x166)]=a90_0x416148(0x169),a90_0x495a97[a90_0x416148(0x13e)]=a90_0x416148(0x13a),a90_0x495a97[a90_0x416148(0x17a)]='test_result_at',a90_0x495a97['KEY_TEST_STARTED_AT']=a90_0x416148(0x168),a90_0x495a97[a90_0x416148(0x143)]=a90_0x416148(0x16f),a90_0x495a97[a90_0x416148(0x12f)]='test_location',a90_0x495a97[a90_0x416148(0x160)]=a90_0x416148(0x15d),a90_0x495a97[a90_0x416148(0x17c)]=a90_0x416148(0x186),a90_0x495a97[a90_0x416148(0x15a)]=a90_0x416148(0x163),a90_0x495a97['KEY_TEST_FRAMEWORK_NAME']=a90_0x416148(0x180),a90_0x495a97[a90_0x416148(0x13d)]=a90_0x416148(0x13f),a90_0x495a97[a90_0x416148(0x140)]='test_code',a90_0x495a97['KEY_TEST_RERUN_NAME']=a90_0x416148(0x16a),a90_0x495a97['KEY_TEST_RETRY_OF']=a90_0x416148(0x14d),a90_0x495a97[a90_0x416148(0x15c)]='platform_index',a90_0x495a97[a90_0x416148(0x14a)]='test_failure',a90_0x495a97[a90_0x416148(0x12d)]='test_failure_type',a90_0x495a97[a90_0x416148(0x171)]=a90_0x416148(0x146),a90_0x495a97[a90_0x416148(0x147)]=a90_0x416148(0x136),a90_0x495a97['KEY_TEST_META']='test_meta',a90_0x495a97[a90_0x416148(0x14f)]=a90_0x416148(0x135),a90_0x495a97[a90_0x416148(0x15f)]=a90_0x416148(0x158),a90_0x495a97['KEY_AUTOMATE_SESSION_STATUS']=a90_0x416148(0x173),a90_0x495a97[a90_0x416148(0x178)]=a90_0x416148(0x172),a90_0x495a97[a90_0x416148(0x133)]=a90_0x416148(0x144),a90_0x495a97[a90_0x416148(0x139)]=a90_0x416148(0x15e),a90_0x495a97['KEY_HOOK_ID']=a90_0x416148(0x184),a90_0x495a97['KEY_HOOK_RESULT']=a90_0x416148(0x159),a90_0x495a97[a90_0x416148(0x165)]=a90_0x416148(0x149),a90_0x495a97[a90_0x416148(0x156)]='hook_failure_reason',a90_0x495a97[a90_0x416148(0x179)]=a90_0x416148(0x13c),a90_0x495a97['KEY_HOOK_LOGS']=a90_0x416148(0x14c),a90_0x495a97[a90_0x416148(0x14e)]=a90_0x416148(0x189),a90_0x495a97[a90_0x416148(0x183)]=a90_0x416148(0x137),a90_0x495a97['DEFAULT_HOOK_RESULT']='pending',a90_0x495a97[a90_0x416148(0x154)]=a90_0x416148(0x161),a90_0x495a97[a90_0x416148(0x175)]=a90_0x416148(0x12e),a90_0x495a97[a90_0x416148(0x16d)]=a90_0x416148(0x13b),a90_0x495a97[a90_0x416148(0x167)]='test_hooks_started',a90_0x495a97[a90_0x416148(0x151)]=a90_0x416148(0x17f),a90_0x495a97['KEY_HOOK_LAST_STARTED']='test_hook_last_started',a90_0x495a97[a90_0x416148(0x132)]=a90_0x416148(0x188),a90_0x495a97[a90_0x416148(0x153)]=a90_0x416148(0x162),a90_0x495a97[a90_0x416148(0x16e)]=a90_0x416148(0x155),a90_0x495a97[a90_0x416148(0x16b)]='test_attachments',a90_0x495a97[a90_0x416148(0x174)]='file_size',a90_0x495a97[a90_0x416148(0x17e)]=a90_0x416148(0x148),a90_0x495a97[a90_0x416148(0x152)]=a90_0x416148(0x170),a90_0x495a97[a90_0x416148(0x145)]='file_level',a90_0x495a97['KEY_TEST_SCREENSHOTS']=a90_0x416148(0x130),a90_0x495a97[a90_0x416148(0x15b)]=0xa,a90_0x495a97[a90_0x416148(0x182)]=0x2;const TestFrameworkConstants=a90_0x495a97;module[a90_0x416148(0x134)]=TestFrameworkConstants;function a90_0x27d6(){const _0x49413b=['test_framework_version','KEY_TEST_CODE','2099180wlVYua','8BCadSx','KEY_TEST_ENDED_AT','event_started_at','KEY_FILE_LEVEL','test_failure_reason','KEY_TEST_LOGS','file_name','hook_failure_type','KEY_TEST_FAILURE','566502uSiumg','hook_logs','retry_of','KEY_HOOK_NAME','KEY_SESSION_NAME','1937000eTPeIz','KEY_HOOKS_FINISHED','KEY_FILE_PATH','KEY_LOGS','KIND_SCREENSHOT','custom_metadata','KEY_HOOK_FAILURE_REASON','2538942ubOrVF','automate_session_name','hook_result','KEY_TEST_SCOPES','MAX_TOP_LEVEL_STEPS','KEY_PLATFORM_INDEX','test_duration','event_ended_at','KEY_AUTOMATE_SESSION_NAME','KEY_TEST_DURATION','TEST_SCREENSHOT','logs','test_scopes','KEY_TEST_NAME','KEY_HOOK_FAILURE_TYPE','KEY_TEST_TAGS','KEY_HOOKS_STARTED','test_started_at','test_tags','test_rerun_name','KEY_TEST_ATTACHMENTS','KEY_TEST_FILE_PATH','HOOK_REGEX','KEY_CUSTOM_TAGS','test_ended_at','file_path','KEY_TEST_FAILURE_REASON','automate_session_reason','automate_session_status','KEY_FILE_SIZE','KIND_LOG','7EvtMhy','test_id','KEY_AUTOMATE_SESSION_REASON','KEY_HOOK_FAILURE','KEY_TEST_RESULT_AT','test_file_path','KEY_TEST_SCOPE','3067204buVeSK','KEY_FILE_NAME','test_hooks_finished','test_framework_name','144RTZWiC','MAX_NESTED_STEP_DEPTH','DEFAULT_TEST_RESULT','hook_id','KEY_TEST_UUID','test_scope','201864asuUTy','test_hook_last_finished','hook_name','KEY_TEST_FAILURE_TYPE','TEST_LOG','KEY_TEST_LOCATION','test_screenshots','2413576WdSspt','KEY_HOOK_LAST_FINISHED','KEY_EVENT_STARTED_AT','exports','test_session_name','test_logs','pending','test_uuid','KEY_EVENT_ENDED_AT','test_result','^(BEFORE_|AFTER_)','hook_failure','KEY_TEST_FRAMEWORK_VERSION','KEY_TEST_RESULT'];a90_0x27d6=function(){return _0x49413b;};return a90_0x27d6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a91_0x3412(_0x33a4ee,_0x59c81f){const _0x14e880=a91_0x14e8();return a91_0x3412=function(_0x341225,_0x3dac2f){_0x341225=_0x341225-0xb3;let _0x28a570=_0x14e880[_0x341225];return _0x28a570;},a91_0x3412(_0x33a4ee,_0x59c81f);}const a91_0x3eed0e=a91_0x3412;function a91_0x14e8(){const _0xb3471f=['CucumberTestFramework','Cucumber\x20log\x20created\x20event','./constants/testFrameworkConstants.js','WIWkm','util','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','NONE','VpLUd','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','LNwgQ','tags','failure','testFrameworkVersion',',\x20state:\x20','KEY_CUSTOM_TAGS','XDVkx','../../../helpers/classLogger.js','parseCucumberTestResult','DEFAULT_TEST_RESULT','UYcto','4613044dzwgHn','KEY_EVENT_ENDED_AT','../cliUtils.js','../instances/trackedInstance.js','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','storePendingHook','\x20for\x20test:\x20','KEY_TEST_FAILURE_TYPE','finished_at','eventJson','failure_type','KEY_TEST_RESULT','ohhXv','debug','nRLpA','YMXTM','body','removePendingHooks','KEY_TEST_UUID','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','17334aCBSmP','ggZan','parseCucumberTest','failed','msBHb','pop','get','16hygywm','KEY_TEST_FRAMEWORK_VERSION','KEY_EVENT_STARTED_AT','failure_reason','uuid','KEY_TEST_ATTACHMENTS',',\x20hookState:\x20','EQwhl','KEY_TEST_FRAMEWORK_NAME','getProcessId','jqrEa','format','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','\x20and\x20args\x20=\x20','263zpgvij','\x20with\x20result:\x20','hook_type','KEY_TEST_FILE_PATH','KEY_HOOK_FAILURE_REASON','location','concat','runHooks','getAllData','kylwh','KEY_HOOK_LOGS','Tracked\x20cucumber\x20hook\x20event:\x20','KEY_TEST_FAILURE','addMultipleEntries','KEY_HOOK_LAST_FINISHED','KEY_TEST_TAGS','5026257JTDyGJ','uSTxc','KEY_TEST_NAME','addPendingHook','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','meta','result','startedAt','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','Stored\x20pending\x20hook\x20for\x20testId:\x20','testData','KEY_LOGS','6305375iyVHWj','readLogObjects','CEZke','KEY_HOOK_ID','../grpcClient','instance','KEY_TEST_META','setTestDetails','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping',',\x20state=','exports','KEY_TEST_SCOPE','kxFym','mQMkT','KEY_HOOK_LAST_STARTED','KEY_TEST_FAILURE_REASON','customRerunParam','from','hookState','endedAt','KcAKW','trackCucumberInstance','trackCucumberInstance:\x20saved\x20instance\x20contextId=','KEY_TEST_SCOPES','WJjyW','getId','KEY_HOOK_RESULT','getCurrentInstanceName','testUUID','NQTzL','split','\x20&\x20hook\x20=\x20','name','platformIndex','slice','\x20&\x20hookState=','\x20\x20and\x20args\x20=\x20','INIT_TEST','file_name','UYlug','OrAVS','key','inspect','trackHookEvent','testFrameworkState',',\x20storing\x20as\x20pending\x20hook','KEY_HOOK_NAME','UnhandledError','Processing\x20','getCurrentTestState','KEY_TEST_ENDED_AT','getTestDetails',',\x20error:\x20','OJRxS','code','stringify','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','yRBxs','toString','3482556sGbaqx','getTestUUID','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','KEY_HOOK_FAILURE_TYPE','cndgF','test_run_id','PRE','sendLogCreatedEvent','../../../helpers/helper.js','push','5930KNpURr','keys','browserstackPlatformIndex','KEY_AUTOMATE_SESSION_NAME','getTrackedInstance','KEY_TEST_LOGS','length','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','passed','createTestFrameworkEventPayload','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','KEY_HOOKS_FINISHED','failure_data','rerun_name','hooks','4468380XeWTzS','getTestFrameworksVersions','KEY_HOOKS_STARTED','toISOString','resolveInstance','Updated\x20cucumber\x20test\x20result:\x20','TEST','oToyf','processPendingHooks','error','12182XRmmXP','../TestInfo.js','pKSek','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','DEFAULT_HOOK_RESULT','unknown','Ivkdd','getThreadId','\x20hookState:\x20','KEY_TEST_LOCATION','getCurrentHookState','KEY_HOOK_FAILURE','hasPendingHooks','PoZBz','testFrameworkName','test','KEY_TEST_STARTED_AT','trackEvent','laBMv','../state/hookState.js','args','\x20payload=','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20'];a91_0x14e8=function(){return _0xb3471f;};return a91_0x14e8();}(function(_0x384a5d,_0x213beb){const _0x19f58f=a91_0x3412,_0x3e8a6d=_0x384a5d();while(!![]){try{const _0xc3449a=parseInt(_0x19f58f(0x16b))/0x1*(parseInt(_0x19f58f(0x117))/0x2)+-parseInt(_0x19f58f(0x17b))/0x3+-parseInt(_0x19f58f(0x142))/0x4+parseInt(_0x19f58f(0xb9))/0x5+parseInt(_0x19f58f(0x10d))/0x6+parseInt(_0x19f58f(0xf4))/0x7*(-parseInt(_0x19f58f(0x15d))/0x8)+-parseInt(_0x19f58f(0x156))/0x9*(-parseInt(_0x19f58f(0xfe))/0xa);if(_0xc3449a===_0x213beb)break;else _0x3e8a6d['push'](_0x3e8a6d['shift']());}catch(_0x4feb8a){_0x3e8a6d['push'](_0x3e8a6d['shift']());}}}(a91_0x14e8,0xe21d0));const TestFramework=require('./testFramework'),TestFrameworkState=require('../state/testFrameworkState.js'),HookState=require(a91_0x3eed0e(0x12a)),{createClassLogger}=require(a91_0x3eed0e(0x13e)),TestFrameworkInstance=require('../instances/testFrameworkInstance.js'),CLIUtils=require(a91_0x3eed0e(0x144)),TrackedInstance=require(a91_0x3eed0e(0x145)),TestFrameworkConstants=require(a91_0x3eed0e(0x130)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a91_0x3eed0e(0xfc)),logger=createClassLogger(a91_0x3eed0e(0x12e)),{v4:uuidv4}=require(a91_0x3eed0e(0x161)),util=require(a91_0x3eed0e(0x132)),TestInfo=require(a91_0x3eed0e(0x118)),GrpcClient=require(a91_0x3eed0e(0xbd));class CucumberTestFramework extends TestFramework{constructor(_0x2a7504,_0x3d3f32,_0x5a3065){super(_0x2a7504,_0x3d3f32,_0x5a3065);}async[a91_0x3eed0e(0x128)](_0x307c6f,_0x55c9f3,_0xdb1d89={}){const _0x310014=a91_0x3eed0e,_0x2c454b={};_0x2c454b[_0x310014(0x167)]=_0x310014(0x105),_0x2c454b[_0x310014(0xc6)]=function(_0x4b7566,_0x44e1d9){return _0x4b7566===_0x44e1d9;},_0x2c454b[_0x310014(0x17c)]=function(_0x43794b,_0x48b0f3){return _0x43794b===_0x48b0f3;},_0x2c454b[_0x310014(0x157)]=_0x310014(0x11a);const _0x4e5c3e=_0x2c454b;await super['trackEvent'](_0x307c6f,_0x55c9f3,_0xdb1d89);const _0x4e2da4=this[_0x310014(0x111)](_0x307c6f,_0x55c9f3,_0xdb1d89);if(!_0x4e2da4){logger[_0x310014(0x14f)](_0x4e5c3e[_0x310014(0x167)]);return;}try{let _0x3f37bf,_0x234b16;switch(_0x307c6f){case TestFrameworkState['TEST']:_0x3f37bf=_0xdb1d89[_0x310014(0x126)],_0x234b16=TestInfo[_0x310014(0xf5)](_0x3f37bf['id']);if(_0x4e5c3e[_0x310014(0xc6)](_0x55c9f3,HookState['PRE'])){logger[_0x310014(0x14f)](_0x310014(0xf6)+_0x3f37bf['id']);const _0x3a0a2a={};_0x3a0a2a['testUUID']=_0x234b16,_0x3a0a2a[_0x310014(0xb7)]=_0x3f37bf,_0x4e2da4[_0x310014(0x178)](this['parseCucumberTest'](_0x3a0a2a)),logger[_0x310014(0x14f)](_0x310014(0x146)+_0x3f37bf['id']),await this[_0x310014(0x115)](_0x4e2da4,_0x3f37bf['id']);}else{if(_0x4e5c3e['mQMkT'](_0x55c9f3,HookState['POST'])){const _0x263b2f={};_0x263b2f['testUUID']=_0x234b16,_0x263b2f['testData']=_0x3f37bf,_0x4e2da4['addMultipleEntries'](this[_0x310014(0x13f)](_0x263b2f)),await this['processPendingHooks'](_0x4e2da4,_0x3f37bf['id']);}}break;case TestFrameworkState['LOG_REPORT']:_0x4e5c3e[_0x310014(0x17c)](_0x55c9f3,HookState['POST'])&&await this[_0x310014(0xfb)](_0x4e2da4,_0x307c6f,_0xdb1d89);break;default:if(CLIUtils['matchHookRegex'](_0x307c6f['toString']()['split']('.')[0x1])){const _0x5cea59=await this[_0x310014(0xe4)](_0x4e2da4,_0x307c6f,_0x55c9f3,_0xdb1d89);_0x4e2da4[_0x310014(0x178)](_0x5cea59);}else logger[_0x310014(0x14f)]('trackEvent:\x20unsupported\x20testFrameworkState='+_0x307c6f+_0x310014(0xdc)+_0x55c9f3);break;}}catch(_0x1b34b5){logger[_0x310014(0x116)](util[_0x310014(0x168)](_0x4e5c3e['ggZan'],_0x307c6f,_0x55c9f3,_0xdb1d89[_0x310014(0x104)],_0x1b34b5));}_0xdb1d89[_0x310014(0xbe)]=_0x4e2da4,await this[_0x310014(0x172)](_0x4e2da4,_0x307c6f,_0x55c9f3,_0xdb1d89);}[a91_0x3eed0e(0x111)](_0x1a67d0,_0xc59138,_0x1fd543={}){const _0x13a6db=a91_0x3eed0e,_0x18c792={};_0x18c792[_0x13a6db(0xe0)]=function(_0x42cb17,_0x1e64bb){return _0x42cb17===_0x1e64bb;},_0x18c792[_0x13a6db(0xf2)]=function(_0x2de094,_0x5c6790){return _0x2de094===_0x5c6790;};const _0x29f1b1=_0x18c792;let _0x40bda2=null;return(_0x29f1b1[_0x13a6db(0xe0)](_0x1a67d0,TestFrameworkState[_0x13a6db(0xde)])||_0x29f1b1['yRBxs'](_0x1a67d0,TestFrameworkState[_0x13a6db(0x134)]))&&this[_0x13a6db(0xce)](_0x1a67d0,_0x1fd543),_0x40bda2=TestFramework[_0x13a6db(0x102)](),_0x40bda2;}['trackCucumberInstance'](_0x23373c,_0x447950){const _0x278d8a=a91_0x3eed0e,_0x222e8e=CLIUtils[_0x278d8a(0xd4)](),_0x39d6ba=TrackedInstance['createContext'](_0x222e8e);let _0x1188cb=null;logger[_0x278d8a(0x14f)](_0x278d8a(0x133)+_0x222e8e+_0x278d8a(0xc2)+_0x23373c),_0x1188cb=new TestFrameworkInstance(_0x39d6ba,this['getTestFrameworks'](),this['getTestFrameworksVersions'](),_0x23373c,HookState[_0x278d8a(0x134)]),TestFramework['setTrackedInstance'](_0x39d6ba,_0x1188cb),logger[_0x278d8a(0x14f)](_0x278d8a(0xcf)+_0x39d6ba[_0x278d8a(0xd2)]()+'\x20target='+_0x222e8e);}[a91_0x3eed0e(0x158)](_0x504275){const _0x36c529=a91_0x3eed0e,_0x26c118={};_0x26c118['EQwhl']='No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test';const _0x21b5d6=_0x26c118,{testUUID:_0x304c85,testData:_0xca1245}=_0x504275;if(!_0xca1245||!_0xca1245['uuid'])return logger[_0x36c529(0x14f)](_0x21b5d6[_0x36c529(0x164)]),{};const _0x531883=_0x304c85,_0x2b384c=_0xca1245[_0x36c529(0x161)],_0x29e107=this['getTestFrameworks']()[0x0],_0x45978e=this[_0x36c529(0x10e)](),_0x20c47d={[TestFrameworkConstants[_0x36c529(0x165)]]:_0x29e107,[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x45978e[_0x29e107],[TestFrameworkConstants[_0x36c529(0x103)]]:[],[TestFrameworkConstants[_0x36c529(0x109)]]:{},[TestFrameworkConstants['KEY_HOOKS_STARTED']]:{},[TestFrameworkConstants[_0x36c529(0x154)]]:_0x531883,[TestFrameworkConstants[_0x36c529(0x14d)]]:TestFrameworkConstants[_0x36c529(0x140)],[TestFrameworkConstants[_0x36c529(0x101)]]:_0xca1245[_0x36c529(0xd9)]||'',[TestFrameworkConstants[_0x36c529(0x16e)]]:_0xca1245[_0x36c529(0xdf)]||'',[TestFrameworkConstants['KEY_TEST_ID']]:_0x2b384c,[TestFrameworkConstants[_0x36c529(0x17d)]]:_0xca1245[_0x36c529(0xd9)]||'',[TestFrameworkConstants[_0x36c529(0x120)]]:_0xca1245[_0x36c529(0x170)]||'',[TestFrameworkConstants['KEY_TEST_CODE']]:_0xca1245[_0x36c529(0x152)]?.[_0x36c529(0xef)]||null,[TestFrameworkConstants[_0x36c529(0x17a)]]:_0xca1245[_0x36c529(0x138)]||[],[TestFrameworkConstants[_0x36c529(0x127)]]:_0xca1245[_0x36c529(0xb4)]||new Date()[_0x36c529(0x110)](),[TestFrameworkConstants[_0x36c529(0xc4)]]:_0xca1245['scopes']?.[0x0]||'',[TestFrameworkConstants[_0x36c529(0xd0)]]:_0xca1245['scopes']||[],[TestFrameworkConstants['KEY_TEST_RERUN_NAME']]:_0xca1245[_0x36c529(0xc9)]?.[_0x36c529(0x10b)]||_0xca1245[_0x36c529(0xd9)]||'',[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:{},[TestFrameworkConstants[_0x36c529(0xbf)]]:_0xca1245[_0x36c529(0x180)]||{}};TestInfo[_0x36c529(0xc0)](_0x2b384c,_0x20c47d),logger[_0x36c529(0x14f)]('Parsed\x20cucumber\x20test:\x20'+_0xca1245[_0x36c529(0xd9)]+'\x20with\x20UUID:\x20'+_0x531883);const _0x2be2db={};return _0x2be2db[_0x2b384c]=_0x20c47d,_0x2be2db;}[a91_0x3eed0e(0x13f)](_0x7f8483){const _0x5c97ff=a91_0x3eed0e,_0x50bd82={'xKkjB':_0x5c97ff(0x155),'WJjyW':_0x5c97ff(0x11c),'OJRxS':function(_0x55a28a,_0x271b34){return _0x55a28a===_0x271b34;},'NQTzL':_0x5c97ff(0x159),'kylwh':_0x5c97ff(0xe8),'ZjFNl':function(_0x302a24,_0x21fcef,_0x477045){return _0x302a24(_0x21fcef,_0x477045);},'Ivkdd':function(_0x219414,_0x137144){return _0x219414>_0x137144;},'YMXTM':function(_0x27a5c3,_0x1cd6e1){return _0x27a5c3>_0x1cd6e1;}},{testUUID:_0x3d31ad,testData:_0x13a6e3}=_0x7f8483;if(!_0x13a6e3||!_0x13a6e3['uuid'])return logger[_0x5c97ff(0x14f)](_0x50bd82['xKkjB']),{};const _0x8b6494=this[_0x5c97ff(0x111)](TestFrameworkState[_0x5c97ff(0x113)],HookState['POST']),_0xcf6ecd=_0x13a6e3[_0x5c97ff(0x161)],_0x43c18e=TestInfo[_0x5c97ff(0xec)](_0xcf6ecd)||{},_0x5f4bd2=_0x43c18e?_0x43c18e[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{}:{},_0x221022={..._0x43c18e,[TestFrameworkConstants[_0x5c97ff(0x14d)]]:_0x13a6e3[_0x5c97ff(0xb3)]||_0x50bd82[_0x5c97ff(0xd1)],[TestFrameworkConstants[_0x5c97ff(0xeb)]]:_0x13a6e3['finishedAt']||new Date()[_0x5c97ff(0x110)](),[TestFrameworkConstants['KEY_TEST_RESULT_AT']]:new Date()[_0x5c97ff(0x110)](),[TestFrameworkConstants[_0x5c97ff(0x13c)]]:_0x5f4bd2,[TestFrameworkConstants['KEY_LOGS']]:[],[TestFrameworkConstants['KEY_TEST_META']]:_0x13a6e3[_0x5c97ff(0x180)]||{}};_0x50bd82[_0x5c97ff(0xee)](_0x13a6e3[_0x5c97ff(0xb3)],_0x50bd82[_0x5c97ff(0xd6)])&&_0x13a6e3[_0x5c97ff(0x139)]&&(_0x221022[TestFrameworkConstants[_0x5c97ff(0x149)]]=_0x13a6e3[_0x5c97ff(0x14c)]||_0x50bd82[_0x5c97ff(0x174)],_0x221022[TestFrameworkConstants[_0x5c97ff(0xc8)]]=_0x13a6e3[_0x5c97ff(0x160)]||'',_0x221022[TestFrameworkConstants[_0x5c97ff(0x177)]]=_0x13a6e3['failure']);const _0x1f9fcf=TestInfo[_0x5c97ff(0xec)](_0xcf6ecd)[TestFrameworkConstants[_0x5c97ff(0x162)]]||{},_0x2e388a=_0x50bd82['ZjFNl'](getManualUploadLogs,_0x1f9fcf,_0x8b6494[_0x5c97ff(0x173)]()['get'](_0xcf6ecd)[TestFrameworkConstants['KEY_TEST_UUID']]);if(_0x50bd82[_0x5c97ff(0x11d)](_0x2e388a['length'],0x0)){const _0x48d1b6=_0x221022[TestFrameworkConstants[_0x5c97ff(0xb8)]]||[];_0x221022[TestFrameworkConstants[_0x5c97ff(0xb8)]]=[..._0x48d1b6,..._0x2e388a];}_0x13a6e3[_0x5c97ff(0x10c)]&&_0x50bd82[_0x5c97ff(0x151)](_0x13a6e3['hooks']['length'],0x0)&&(_0x221022[TestFrameworkConstants[_0x5c97ff(0x109)]]=_0x13a6e3['hooks']);TestInfo[_0x5c97ff(0xc0)](_0xcf6ecd,_0x221022),logger['debug'](_0x5c97ff(0x112)+_0x13a6e3[_0x5c97ff(0xd9)]+_0x5c97ff(0x16c)+_0x13a6e3[_0x5c97ff(0xb3)]);const _0x47013a={};return _0x47013a[_0xcf6ecd]=_0x221022,_0x47013a;}async[a91_0x3eed0e(0xe4)](_0x332a2b,_0xd28816,_0x36434b,_0x1a60ff){const _0xf3ff91=a91_0x3eed0e,_0x590bf4={'xADGb':_0xf3ff91(0xb5),'pKSek':function(_0x170681){return _0x170681();},'KcAKW':function(_0x49216b,_0x53366f){return _0x49216b in _0x53366f;},'UYcto':function(_0x3dcfdc,_0x2c3bfe){return _0x3dcfdc in _0x2c3bfe;},'laBMv':function(_0x210bb8,_0x2e63ae){return _0x210bb8===_0x2e63ae;},'exJVv':function(_0x1fb55c,_0xb647be){return _0x1fb55c>_0xb647be;},'XDVkx':_0xf3ff91(0x159),'wMZDo':_0xf3ff91(0xe8),'kxFym':_0xf3ff91(0x106),'PoZBz':function(_0x14906f,_0x349617){return _0x14906f!==_0x349617;}},{hookData:_0x417f1c}=_0x1a60ff;if(!_0x417f1c)return logger[_0xf3ff91(0x14f)](_0x590bf4['xADGb']),{};const _0x1b7e0f=_0x417f1c[_0xf3ff91(0x161)]||_0x590bf4[_0xf3ff91(0x119)](uuidv4),_0x377910=_0x417f1c[_0xf3ff91(0xf9)],_0x227a95=_0xd28816[_0xf3ff91(0xf3)]()['split']('.')[0x1],_0x4bf01a=TestInfo[_0xf3ff91(0xec)](_0x377910)[TestFrameworkConstants[_0xf3ff91(0x13c)]]||{},_0x5b2fda=_0x332a2b[_0xf3ff91(0x173)]()[_0xf3ff91(0x15c)](_0x377910);if(!_0x5b2fda)return logger[_0xf3ff91(0x14f)](_0xf3ff91(0xf1)+_0x377910+_0xf3ff91(0xe6)),this[_0xf3ff91(0x147)](_0x332a2b,_0x377910,_0xd28816,_0x36434b,_0x1a60ff),{};let _0x5bfd08=_0x5b2fda[TestFrameworkConstants[_0xf3ff91(0x10f)]];!_0x5bfd08&&(_0x5bfd08={});!_0x590bf4[_0xf3ff91(0xcd)](_0x227a95,_0x5bfd08)&&(_0x5bfd08[_0x227a95]=[]);let _0x572b61=_0x5b2fda[TestFrameworkConstants[_0xf3ff91(0x109)]];!_0x572b61&&(_0x572b61={});!_0x590bf4[_0xf3ff91(0x141)](_0x227a95,_0x572b61)&&(_0x572b61[_0x227a95]=[]);const _0x512654={[TestFrameworkConstants[_0xf3ff91(0x10f)]]:_0x5bfd08,[TestFrameworkConstants[_0xf3ff91(0x109)]]:_0x572b61},_0x2779ae={};_0x2779ae[_0x377910]=_0x512654;const _0x107567=_0x2779ae;if(_0x590bf4['laBMv'](_0x36434b,HookState[_0xf3ff91(0xfa)])){const _0x39dc61={[TestFrameworkConstants[_0xf3ff91(0xbc)]]:_0x1b7e0f,[TestFrameworkConstants[_0xf3ff91(0xd3)]]:TestFrameworkConstants[_0xf3ff91(0x11b)],[TestFrameworkConstants[_0xf3ff91(0x15f)]]:_0x417f1c['started_at'],[TestFrameworkConstants[_0xf3ff91(0x175)]]:[],[TestFrameworkConstants[_0xf3ff91(0xe7)]]:_0x417f1c[_0xf3ff91(0x16d)],[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x4bf01a};_0x39dc61[_0xf3ff91(0xe2)]=_0x227a95;const _0x358f70=_0x39dc61;_0x5bfd08[_0x227a95]['push'](_0x358f70),_0x107567[_0x377910][TestFrameworkConstants[_0xf3ff91(0xc7)]]=_0x227a95,logger['debug']('trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20'+_0x227a95+_0xf3ff91(0xd8)+_0x358f70+_0xf3ff91(0xdd)+_0x1a60ff);}else{if(_0x590bf4['laBMv'](_0x36434b,HookState['POST'])){const _0x2dfc06=_0x417f1c[_0xf3ff91(0xb3)],_0x35a2ce=_0x5bfd08[_0x227a95]||[];logger[_0xf3ff91(0x14f)](_0xf3ff91(0x17f)+_0x35a2ce+_0xf3ff91(0x16a)+_0x1a60ff);if(_0x590bf4['exJVv'](_0x35a2ce['length'],0x0)){const _0x535e44=_0x35a2ce[_0xf3ff91(0x15b)]();_0x590bf4[_0xf3ff91(0x129)](_0x417f1c['result'],_0x590bf4[_0xf3ff91(0x13d)])&&_0x417f1c['failure_data']?(_0x535e44[TestFrameworkConstants[_0xf3ff91(0xf7)]]=_0x417f1c['failure_type']||_0x590bf4['wMZDo'],_0x535e44[TestFrameworkConstants[_0xf3ff91(0x16f)]]=_0x417f1c[_0xf3ff91(0x160)]||'',_0x535e44[TestFrameworkConstants[_0xf3ff91(0x122)]]=_0x417f1c[_0xf3ff91(0x10a)]):_0x535e44[TestFrameworkConstants[_0xf3ff91(0xd3)]]=_0x590bf4[_0xf3ff91(0xc5)];_0x590bf4[_0xf3ff91(0x124)](_0x2dfc06,TestFrameworkConstants['DEFAULT_HOOK_RESULT'])&&(_0x535e44[TestFrameworkConstants[_0xf3ff91(0xd3)]]=_0x2dfc06);_0x535e44[TestFrameworkConstants[_0xf3ff91(0x143)]]=_0x417f1c[_0xf3ff91(0x14a)]||new Date()[_0xf3ff91(0x110)](),_0x535e44[TestFrameworkConstants[_0xf3ff91(0x13c)]]=_0x4bf01a;const _0x318df1=_0x535e44[TestFrameworkConstants[_0xf3ff91(0xbc)]];!_0x572b61[_0x227a95]&&(_0x572b61[_0x227a95]=[]),_0x572b61[_0x227a95][_0xf3ff91(0xfd)](_0x535e44),_0x107567[_0x377910][TestFrameworkConstants[_0xf3ff91(0x179)]]=_0x227a95;}}}return logger[_0xf3ff91(0x14f)](_0xf3ff91(0x176)+_0x417f1c[_0xf3ff91(0x16d)]+'\x20with\x20id\x20'+_0x1b7e0f+_0xf3ff91(0x148)+_0x377910),_0x107567;}[a91_0x3eed0e(0x107)](_0x24203d){const _0x5de1e7=a91_0x3eed0e,_0x46f4ec={};_0x46f4ec[_0x5de1e7(0x135)]='base64';const _0x3acaa7=_0x46f4ec;try{const _0x3b615c=_0x24203d[_0x5de1e7(0x126)]?_0x24203d[_0x5de1e7(0x126)]['id']:_0x24203d['hookData']['test_run_id'],_0x3b6a3d=_0x24203d['instance'],_0x185478=_0x3b6a3d['getContext'](),_0x596eea=_0x3b6a3d['getAllData']()[_0x5de1e7(0x15c)](_0x3b615c);if(!_0x596eea)return logger[_0x5de1e7(0x14f)](_0x5de1e7(0x108)+_0x3b615c),{};logger[_0x5de1e7(0x14f)]('createTestFrameworkEventPayload\x20testId:\x20'+_0x3b615c);const {[TestFrameworkConstants[_0x5de1e7(0x165)]]:_0x22e26='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x1f0638='',[TestFrameworkConstants[_0x5de1e7(0x127)]]:_0x2633da='',[TestFrameworkConstants[_0x5de1e7(0xeb)]]:_0x2df11f=''}=_0x596eea,_0x1d811d=_0x3b6a3d[_0x5de1e7(0xea)]()[_0x5de1e7(0xf3)]()[_0x5de1e7(0xd7)]('.')[0x1],_0x278f25=_0x3b6a3d[_0x5de1e7(0x121)]()['toString']()['split']('.')[0x1],_0x27fad1=global?.[_0x5de1e7(0x100)]??0x0,_0x143419=_0x3b6a3d['getRef'](),_0x3df42b=Buffer[_0x5de1e7(0xca)](JSON[_0x5de1e7(0xf0)](_0x596eea))[_0x5de1e7(0xf3)](_0x3acaa7['VpLUd']),_0x1b0f03={'hash':_0x185478[_0x5de1e7(0xd2)](),'threadId':_0x185478[_0x5de1e7(0x11e)]()[_0x5de1e7(0xf3)](),'processId':_0x185478[_0x5de1e7(0x166)]()[_0x5de1e7(0xf3)]()},_0x2a77e2={};_0x2a77e2[_0x5de1e7(0xda)]=_0x27fad1,_0x2a77e2[_0x5de1e7(0x125)]=_0x22e26,_0x2a77e2[_0x5de1e7(0x13a)]=_0x1f0638,_0x2a77e2[_0x5de1e7(0xe5)]=_0x1d811d,_0x2a77e2[_0x5de1e7(0xcb)]=_0x278f25,_0x2a77e2[_0x5de1e7(0xb4)]=_0x2633da,_0x2a77e2[_0x5de1e7(0xcc)]=_0x2df11f,_0x2a77e2[_0x5de1e7(0x161)]=_0x143419,_0x2a77e2[_0x5de1e7(0x14b)]=_0x3df42b,_0x2a77e2['executionContext']=_0x1b0f03;const _0xb9c797=_0x2a77e2;return logger['debug']('createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20'+_0x3b615c+'\x20testState:\x20'+_0x1d811d+_0x5de1e7(0x11f)+_0x278f25),_0xb9c797;}catch(_0x4dff18){return logger[_0x5de1e7(0x116)]('Error\x20in\x20createTestFrameworkEventPayload:\x20'+util[_0x5de1e7(0x168)](_0x4dff18)),{};}}async['sendLogCreatedEvent'](_0x106c11,_0x181361,_0x3b490d){const _0x57870a=a91_0x3eed0e,_0x33552c={'CEZke':function(_0x4e9b82,_0x1e8b76,_0xec532f){return _0x4e9b82(_0x1e8b76,_0xec532f);},'LNwgQ':function(_0x56faad,_0x5e8886){return _0x56faad===_0x5e8886;},'ohhXv':_0x57870a(0xc1),'msBHb':function(_0x32c02b,_0xa9df78){return _0x32c02b/_0xa9df78;},'pVwwH':function(_0xdf289c,_0x2edff4){return _0xdf289c<_0x2edff4;},'WIWkm':function(_0x2c542d,_0x1848b1){return _0x2c542d*_0x1848b1;},'OrAVS':function(_0x4a2ea7,_0x47c33a){return _0x4a2ea7+_0x47c33a;},'cndgF':function(_0x200f72,_0x728efa){return _0x200f72+_0x728efa;},'oToyf':function(_0x2ddfe6,_0xef1afd){return _0x2ddfe6+_0xef1afd;},'Mssug':_0x57870a(0x12f)};try{const _0x436553=_0x3b490d[_0x57870a(0xd5)],_0x2f31c6=_0x106c11[_0x57870a(0x173)]()[_0x57870a(0x15c)](_0x436553),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x8e7f7d='',[TestFrameworkConstants[_0x57870a(0x15e)]]:_0x43f663=''}=_0x2f31c6,_0x12110e=TestInfo[_0x57870a(0xba)](_0x436553),_0xd084f4=TestInfo[_0x57870a(0xec)](_0x436553)[TestFrameworkConstants[_0x57870a(0x162)]]||{},_0x315685=_0x33552c[_0x57870a(0xbb)](getMediaArtifactsLogs,_0xd084f4,_0x106c11[_0x57870a(0x173)]()['get'](_0x436553)[TestFrameworkConstants['KEY_TEST_UUID']]),_0x5414a4=(_0x12110e||[])[_0x57870a(0x171)](_0x315685||[]);if(!_0x5414a4||_0x33552c[_0x57870a(0x137)](_0x5414a4[_0x57870a(0x104)],0x0)){logger['debug'](_0x33552c[_0x57870a(0x14e)]);return;}const _0x3e0dba=0x28,_0x2c9a55=Math['ceil'](_0x33552c[_0x57870a(0x15a)](_0x5414a4[_0x57870a(0x104)],_0x3e0dba));for(let _0x1c7eaa=0x0;_0x33552c['pVwwH'](_0x1c7eaa,_0x2c9a55);_0x1c7eaa++){const _0x37df15=_0x33552c[_0x57870a(0x131)](_0x1c7eaa,_0x3e0dba),_0x318db7=_0x33552c[_0x57870a(0xe1)](_0x37df15,_0x3e0dba),_0x52e4d2=_0x5414a4[_0x57870a(0xdb)](_0x37df15,_0x318db7),_0x1fec4d={'platformIndex':global?.[_0x57870a(0x100)]??0x0,'logs':_0x52e4d2,'testFrameworkName':_0x8e7f7d,'testFrameworkVersion':_0x43f663,'testFrameworkState':_0x181361[_0x57870a(0xf3)]()['split']('.')[0x1]};logger['debug']('sendLogCreatedEvent:\x20for\x20testId:\x20'+_0x436553+'\x20batch\x20'+_0x33552c[_0x57870a(0xf8)](_0x1c7eaa,0x1)+'/'+_0x2c9a55+_0x57870a(0x12c)+util[_0x57870a(0xe3)](_0x1fec4d));const _0x42c92c=await GrpcClient['getInstance']()['logCreatedEvent'](_0x1fec4d);logger[_0x57870a(0x14f)]('sendLogCreatedEvent:\x20for\x20testId:\x20'+_0x436553+'\x20batch\x20'+_0x33552c[_0x57870a(0x114)](_0x1c7eaa,0x1)+'/'+_0x2c9a55+'\x20response='+util[_0x57870a(0xe3)](_0x42c92c));}}catch(_0x386634){logger[_0x57870a(0x116)](_0x57870a(0x12d)+util[_0x57870a(0x168)](_0x386634));}logger[_0x57870a(0x14f)](_0x33552c['Mssug']);}[a91_0x3eed0e(0x147)](_0x3440e1,_0x237591,_0x43d053,_0x3305de,_0x34535c){const _0x598e9a=a91_0x3eed0e,_0x4a8fdb={'testId':_0x237591,'testFrameworkState':_0x43d053,'hookState':_0x3305de,'args':_0x34535c,'timestamp':new Date()['toISOString']()};_0x3440e1[_0x598e9a(0x17e)](_0x237591,_0x4a8fdb),logger['debug'](_0x598e9a(0xb6)+_0x237591+_0x598e9a(0x13b)+_0x43d053+_0x598e9a(0x163)+_0x3305de);}async['processPendingHooks'](_0x33bcd4,_0x493fd4){const _0x2548a5=a91_0x3eed0e,_0x339726={};_0x339726[_0x2548a5(0x150)]=function(_0x48bf61,_0x54483f){return _0x48bf61>_0x54483f;};const _0x37dcd5=_0x339726;if(!_0x33bcd4[_0x2548a5(0x123)](_0x493fd4))return;const _0x2dd7ff=_0x33bcd4['getPendingHooks'](_0x493fd4);logger[_0x2548a5(0x14f)](_0x2548a5(0xe9)+_0x2dd7ff[_0x2548a5(0x104)]+'\x20pending\x20hooks\x20for\x20testId:\x20'+_0x493fd4);for(const _0x394ecc of _0x2dd7ff){try{const _0x403cff=await this[_0x2548a5(0xe4)](_0x33bcd4,_0x394ecc['testFrameworkState'],_0x394ecc[_0x2548a5(0xcb)],_0x394ecc[_0x2548a5(0x12b)]);_0x403cff&&_0x37dcd5[_0x2548a5(0x150)](Object[_0x2548a5(0xff)](_0x403cff)[_0x2548a5(0x104)],0x0)&&_0x33bcd4[_0x2548a5(0x178)](_0x403cff),await this[_0x2548a5(0x172)](_0x33bcd4,_0x394ecc['testFrameworkState'],_0x394ecc[_0x2548a5(0xcb)],_0x394ecc[_0x2548a5(0x12b)]);}catch(_0x16e65a){logger[_0x2548a5(0x116)](_0x2548a5(0x169)+_0x493fd4+_0x2548a5(0xed)+_0x16e65a);}}_0x33bcd4[_0x2548a5(0x153)](_0x493fd4),logger[_0x2548a5(0x14f)](_0x2548a5(0x136)+_0x493fd4);}}module[a91_0x3eed0e(0xc3)]=CucumberTestFramework;
|
|
1
|
+
const a91_0x3b7bea=a91_0x3943;function a91_0x3943(_0xa1e314,_0xc5d950){const _0x3b1a7f=a91_0x3b1a();return a91_0x3943=function(_0x3943a7,_0x2fd50c){_0x3943a7=_0x3943a7-0x11a;let _0x47901d=_0x3b1a7f[_0x3943a7];return _0x47901d;},a91_0x3943(_0xa1e314,_0xc5d950);}(function(_0x41470f,_0x4c1071){const _0x5445b3=a91_0x3943,_0x4fe849=_0x41470f();while(!![]){try{const _0x2f91f2=parseInt(_0x5445b3(0x12c))/0x1+-parseInt(_0x5445b3(0x1be))/0x2*(parseInt(_0x5445b3(0x13c))/0x3)+-parseInt(_0x5445b3(0x1ca))/0x4+parseInt(_0x5445b3(0x126))/0x5*(-parseInt(_0x5445b3(0x186))/0x6)+parseInt(_0x5445b3(0x157))/0x7+parseInt(_0x5445b3(0x155))/0x8+parseInt(_0x5445b3(0x151))/0x9;if(_0x2f91f2===_0x4c1071)break;else _0x4fe849['push'](_0x4fe849['shift']());}catch(_0xcf0ac8){_0x4fe849['push'](_0x4fe849['shift']());}}}(a91_0x3b1a,0xd7066));const TestFramework=require('./testFramework'),TestFrameworkState=require('../state/testFrameworkState.js'),HookState=require('../state/hookState.js'),{createClassLogger}=require('../../../helpers/classLogger.js'),TestFrameworkInstance=require(a91_0x3b7bea(0x12e)),CLIUtils=require(a91_0x3b7bea(0x1ae)),TrackedInstance=require(a91_0x3b7bea(0x17d)),TestFrameworkConstants=require(a91_0x3b7bea(0x11d)),{getManualUploadLogs,getMediaArtifactsLogs}=require('../../../helpers/helper.js'),logger=createClassLogger(a91_0x3b7bea(0x1b0)),{v4:uuidv4}=require(a91_0x3b7bea(0x161)),util=require('util'),TestInfo=require(a91_0x3b7bea(0x149)),GrpcClient=require(a91_0x3b7bea(0x131));class CucumberTestFramework extends TestFramework{constructor(_0x14c6cd,_0xd224e3,_0x6ca156){super(_0x14c6cd,_0xd224e3,_0x6ca156);}async[a91_0x3b7bea(0x134)](_0x452245,_0x12ca9e,_0x221433={}){const _0x371853=a91_0x3b7bea,_0x250b99={};_0x250b99[_0x371853(0x137)]=_0x371853(0x150),_0x250b99[_0x371853(0x122)]=function(_0x21901f,_0x1a32d2){return _0x21901f===_0x1a32d2;},_0x250b99['nMGFt']=function(_0x3f72be,_0x519617){return _0x3f72be===_0x519617;},_0x250b99['oTpGC']=_0x371853(0x18e);const _0x5f22be=_0x250b99;await super['trackEvent'](_0x452245,_0x12ca9e,_0x221433);const _0x1a81af=this['resolveInstance'](_0x452245,_0x12ca9e,_0x221433);if(!_0x1a81af){logger[_0x371853(0x1c0)](_0x5f22be[_0x371853(0x137)]);return;}try{let _0x4cc440,_0x1ce315;switch(_0x452245){case TestFrameworkState[_0x371853(0x144)]:_0x4cc440=_0x221433[_0x371853(0x19d)],_0x1ce315=TestInfo[_0x371853(0x1c5)](_0x4cc440['id']);if(_0x5f22be['SYleB'](_0x12ca9e,HookState[_0x371853(0x1b4)])){logger['debug'](_0x371853(0x148)+_0x4cc440['id']);const _0x2a737b={};_0x2a737b['testUUID']=_0x1ce315,_0x2a737b[_0x371853(0x1b5)]=_0x4cc440,_0x1a81af[_0x371853(0x132)](this['parseCucumberTest'](_0x2a737b)),logger['debug'](_0x371853(0x147)+_0x4cc440['id']),await this[_0x371853(0x176)](_0x1a81af,_0x4cc440['id']);}else{if(_0x5f22be[_0x371853(0x1a2)](_0x12ca9e,HookState['POST'])){const _0x55270d={};_0x55270d[_0x371853(0x16e)]=_0x1ce315,_0x55270d[_0x371853(0x1b5)]=_0x4cc440,_0x1a81af[_0x371853(0x132)](this[_0x371853(0x1c9)](_0x55270d)),await this[_0x371853(0x176)](_0x1a81af,_0x4cc440['id']);}}break;case TestFrameworkState[_0x371853(0x187)]:_0x5f22be[_0x371853(0x1a2)](_0x12ca9e,HookState['POST'])&&await this[_0x371853(0x13e)](_0x1a81af,_0x452245,_0x221433);break;default:if(CLIUtils['matchHookRegex'](_0x452245[_0x371853(0x138)]()[_0x371853(0x158)]('.')[0x1])){const _0x369c96=await this[_0x371853(0x145)](_0x1a81af,_0x452245,_0x12ca9e,_0x221433);_0x1a81af['addMultipleEntries'](_0x369c96);}else logger[_0x371853(0x1c0)]('trackEvent:\x20unsupported\x20testFrameworkState='+_0x452245+_0x371853(0x188)+_0x12ca9e);break;}}catch(_0x3f785f){logger[_0x371853(0x17e)](util[_0x371853(0x1d8)](_0x5f22be['oTpGC'],_0x452245,_0x12ca9e,_0x221433[_0x371853(0x14c)],_0x3f785f));}_0x221433[_0x371853(0x168)]=_0x1a81af,await this['runHooks'](_0x1a81af,_0x452245,_0x12ca9e,_0x221433);}[a91_0x3b7bea(0x1aa)](_0x807b6e,_0x4261e2,_0x322741={}){const _0x75193f=a91_0x3b7bea,_0x28d474={};_0x28d474[_0x75193f(0x159)]=function(_0xa09031,_0x2caa30){return _0xa09031===_0x2caa30;};const _0x5bf508=_0x28d474;let _0x343ac1=null;return(_0x5bf508[_0x75193f(0x159)](_0x807b6e,TestFrameworkState[_0x75193f(0x177)])||_0x5bf508[_0x75193f(0x159)](_0x807b6e,TestFrameworkState['NONE']))&&this[_0x75193f(0x1d2)](_0x807b6e,_0x322741),_0x343ac1=TestFramework['getTrackedInstance'](),_0x343ac1;}[a91_0x3b7bea(0x1d2)](_0x505c36,_0x1856c1){const _0x4a9517=a91_0x3b7bea,_0x2fb516=CLIUtils[_0x4a9517(0x183)](),_0x48e2fc=TrackedInstance['createContext'](_0x2fb516);let _0x3e58ff=null;logger['debug'](_0x4a9517(0x1bd)+_0x2fb516+',\x20state='+_0x505c36),_0x3e58ff=new TestFrameworkInstance(_0x48e2fc,this[_0x4a9517(0x162)](),this[_0x4a9517(0x127)](),_0x505c36,HookState['NONE']),TestFramework[_0x4a9517(0x18f)](_0x48e2fc,_0x3e58ff),logger[_0x4a9517(0x1c0)](_0x4a9517(0x189)+_0x48e2fc['getId']()+'\x20target='+_0x2fb516);}['parseCucumberTest'](_0x3d02e3){const _0x46a379=a91_0x3b7bea,_0x15d712={};_0x15d712['XcyRU']=_0x46a379(0x17b);const _0x119f90=_0x15d712,{testUUID:_0x1c2bd9,testData:_0x581689}=_0x3d02e3;if(!_0x581689||!_0x581689['uuid'])return logger[_0x46a379(0x1c0)](_0x119f90['XcyRU']),{};const _0x43ed73=_0x1c2bd9,_0xea50e0=_0x581689[_0x46a379(0x161)],_0x9f412=this['getTestFrameworks']()[0x0],_0x2873e4=this[_0x46a379(0x127)](),_0x5ba115={[TestFrameworkConstants[_0x46a379(0x12f)]]:_0x9f412,[TestFrameworkConstants[_0x46a379(0x1ab)]]:_0x2873e4[_0x9f412],[TestFrameworkConstants[_0x46a379(0x172)]]:[],[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:{},[TestFrameworkConstants[_0x46a379(0x1c2)]]:{},[TestFrameworkConstants[_0x46a379(0x1a0)]]:_0x43ed73,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants['DEFAULT_TEST_RESULT'],[TestFrameworkConstants['KEY_AUTOMATE_SESSION_NAME']]:_0x581689[_0x46a379(0x1af)]||'',[TestFrameworkConstants[_0x46a379(0x180)]]:_0x581689[_0x46a379(0x1a7)]||'',[TestFrameworkConstants[_0x46a379(0x128)]]:_0xea50e0,[TestFrameworkConstants[_0x46a379(0x154)]]:_0x581689[_0x46a379(0x1af)]||'',[TestFrameworkConstants[_0x46a379(0x11b)]]:_0x581689['location']||'',[TestFrameworkConstants['KEY_TEST_CODE']]:_0x581689['body']?.[_0x46a379(0x1b9)]||null,[TestFrameworkConstants['KEY_TEST_TAGS']]:_0x581689[_0x46a379(0x174)]||[],[TestFrameworkConstants[_0x46a379(0x156)]]:_0x581689[_0x46a379(0x182)]||new Date()[_0x46a379(0x1bc)](),[TestFrameworkConstants[_0x46a379(0x1d7)]]:_0x581689[_0x46a379(0x1d0)]?.[0x0]||'',[TestFrameworkConstants[_0x46a379(0x146)]]:_0x581689[_0x46a379(0x1d0)]||[],[TestFrameworkConstants[_0x46a379(0x197)]]:_0x581689[_0x46a379(0x1a1)]?.[_0x46a379(0x139)]||_0x581689['name']||'',[TestFrameworkConstants[_0x46a379(0x164)]]:{},[TestFrameworkConstants['KEY_TEST_META']]:_0x581689[_0x46a379(0x14e)]||{}};TestInfo[_0x46a379(0x153)](_0xea50e0,_0x5ba115),logger[_0x46a379(0x1c0)](_0x46a379(0x184)+_0x581689[_0x46a379(0x1af)]+_0x46a379(0x13b)+_0x43ed73);const _0x1eb8f5={};return _0x1eb8f5[_0xea50e0]=_0x5ba115,_0x1eb8f5;}[a91_0x3b7bea(0x1c9)](_0x15a965){const _0x23e7b5=a91_0x3b7bea,_0x466380={'iboOh':_0x23e7b5(0x1a4),'iPipG':_0x23e7b5(0x196),'PbcqK':function(_0x5c16fc,_0x5a7337){return _0x5c16fc===_0x5a7337;},'aBlWt':_0x23e7b5(0x120),'bGiPE':'UnhandledError','AlIwm':function(_0x40bbe5,_0x58ea0a,_0x25ddce){return _0x40bbe5(_0x58ea0a,_0x25ddce);},'wbVgr':function(_0x532120,_0x94261a){return _0x532120>_0x94261a;},'aqkMQ':function(_0x1f75aa,_0x51fcd7){return _0x1f75aa>_0x51fcd7;}},{testUUID:_0x56e716,testData:_0x4c531e}=_0x15a965;if(!_0x4c531e||!_0x4c531e[_0x23e7b5(0x161)])return logger[_0x23e7b5(0x1c0)](_0x466380[_0x23e7b5(0x1a5)]),{};const _0x53ff47=this[_0x23e7b5(0x1aa)](TestFrameworkState[_0x23e7b5(0x144)],HookState[_0x23e7b5(0x130)]),_0x2bb04d=_0x4c531e['uuid'],_0x2872de=TestInfo[_0x23e7b5(0x15a)](_0x2bb04d)||{},_0xcdca1f=_0x2872de?_0x2872de[TestFrameworkConstants[_0x23e7b5(0x164)]]||{}:{},_0x36ead9={..._0x2872de,[TestFrameworkConstants[_0x23e7b5(0x18c)]]:_0x4c531e[_0x23e7b5(0x16d)]||_0x466380[_0x23e7b5(0x1c6)],[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x4c531e[_0x23e7b5(0x198)]||new Date()['toISOString'](),[TestFrameworkConstants[_0x23e7b5(0x140)]]:new Date()['toISOString'](),[TestFrameworkConstants[_0x23e7b5(0x164)]]:_0xcdca1f,[TestFrameworkConstants[_0x23e7b5(0x16c)]]:[],[TestFrameworkConstants[_0x23e7b5(0x12b)]]:_0x4c531e[_0x23e7b5(0x14e)]||{}};_0x466380[_0x23e7b5(0x19e)](_0x4c531e[_0x23e7b5(0x16d)],_0x466380['aBlWt'])&&_0x4c531e['failure']&&(_0x36ead9[TestFrameworkConstants[_0x23e7b5(0x13d)]]=_0x4c531e[_0x23e7b5(0x1d3)]||_0x466380['bGiPE'],_0x36ead9[TestFrameworkConstants['KEY_TEST_FAILURE_REASON']]=_0x4c531e[_0x23e7b5(0x1d9)]||'',_0x36ead9[TestFrameworkConstants[_0x23e7b5(0x15f)]]=_0x4c531e[_0x23e7b5(0x14a)]);const _0x8e8af7=TestInfo[_0x23e7b5(0x15a)](_0x2bb04d)[TestFrameworkConstants[_0x23e7b5(0x192)]]||{},_0x4cf4bd=_0x466380[_0x23e7b5(0x15b)](getManualUploadLogs,_0x8e8af7,_0x53ff47[_0x23e7b5(0x1ad)]()[_0x23e7b5(0x135)](_0x2bb04d)[TestFrameworkConstants[_0x23e7b5(0x1a0)]]);if(_0x466380['wbVgr'](_0x4cf4bd[_0x23e7b5(0x14c)],0x0)){const _0x1bbf9c=_0x36ead9[TestFrameworkConstants['KEY_LOGS']]||[];_0x36ead9[TestFrameworkConstants[_0x23e7b5(0x16c)]]=[..._0x1bbf9c,..._0x4cf4bd];}_0x4c531e[_0x23e7b5(0x1b1)]&&_0x466380[_0x23e7b5(0x11c)](_0x4c531e['hooks']['length'],0x0)&&(_0x36ead9[TestFrameworkConstants[_0x23e7b5(0x1a9)]]=_0x4c531e[_0x23e7b5(0x1b1)]);TestInfo[_0x23e7b5(0x153)](_0x2bb04d,_0x36ead9),logger[_0x23e7b5(0x1c0)]('Updated\x20cucumber\x20test\x20result:\x20'+_0x4c531e['name']+_0x23e7b5(0x16a)+_0x4c531e[_0x23e7b5(0x16d)]);const _0x42afb1={};return _0x42afb1[_0x2bb04d]=_0x36ead9,_0x42afb1;}async['trackHookEvent'](_0x105c6b,_0x408b0b,_0x472f69,_0x419536){const _0x2487b5=a91_0x3b7bea,_0x745a70={'EJEbu':_0x2487b5(0x12a),'ohNfX':function(_0x2c370a){return _0x2c370a();},'hurjy':function(_0x17f36c,_0x3c7fc6){return _0x17f36c in _0x3c7fc6;},'DVlqT':function(_0x4660c3,_0x2d6ea0){return _0x4660c3 in _0x2d6ea0;},'BZeDG':function(_0x3e25f9,_0x1d8947){return _0x3e25f9===_0x1d8947;},'YUqDd':function(_0x409cab,_0x43418e){return _0x409cab===_0x43418e;},'RElgh':function(_0x1d396e,_0x458c7d){return _0x1d396e>_0x458c7d;},'mJPXX':function(_0x2541d9,_0x335585){return _0x2541d9===_0x335585;},'tyfgS':_0x2487b5(0x120),'qlbfY':_0x2487b5(0x15d),'GPPgb':'passed','LBLxU':function(_0x2eacdf,_0xb4b744){return _0x2eacdf!==_0xb4b744;}},{hookData:_0x2a24cc}=_0x419536;if(!_0x2a24cc)return logger[_0x2487b5(0x1c0)](_0x745a70[_0x2487b5(0x11e)]),{};const _0x3912ac=_0x2a24cc['uuid']||_0x745a70[_0x2487b5(0x1a6)](uuidv4),_0x4102f0=_0x2a24cc[_0x2487b5(0x1c7)],_0xbe4ea3=_0x408b0b[_0x2487b5(0x138)]()['split']('.')[0x1],_0x500f99=TestInfo[_0x2487b5(0x15a)](_0x4102f0)[TestFrameworkConstants[_0x2487b5(0x164)]]||{},_0x5231e8=_0x105c6b[_0x2487b5(0x1ad)]()['get'](_0x4102f0);if(!_0x5231e8)return logger[_0x2487b5(0x1c0)](_0x2487b5(0x179)+_0x4102f0+',\x20storing\x20as\x20pending\x20hook'),this['storePendingHook'](_0x105c6b,_0x4102f0,_0x408b0b,_0x472f69,_0x419536),{};let _0x11c408=_0x5231e8[TestFrameworkConstants[_0x2487b5(0x1c2)]];!_0x11c408&&(_0x11c408={});!_0x745a70[_0x2487b5(0x1b7)](_0xbe4ea3,_0x11c408)&&(_0x11c408[_0xbe4ea3]=[]);let _0x23e574=_0x5231e8[TestFrameworkConstants[_0x2487b5(0x1a9)]];!_0x23e574&&(_0x23e574={});!_0x745a70[_0x2487b5(0x1b8)](_0xbe4ea3,_0x23e574)&&(_0x23e574[_0xbe4ea3]=[]);const _0x228699={[TestFrameworkConstants[_0x2487b5(0x1c2)]]:_0x11c408,[TestFrameworkConstants[_0x2487b5(0x1a9)]]:_0x23e574},_0x5df687={};_0x5df687[_0x4102f0]=_0x228699;const _0x1af288=_0x5df687;if(_0x745a70[_0x2487b5(0x125)](_0x472f69,HookState[_0x2487b5(0x1b4)])){const _0x5527ab={[TestFrameworkConstants[_0x2487b5(0x181)]]:_0x3912ac,[TestFrameworkConstants['KEY_HOOK_RESULT']]:TestFrameworkConstants['DEFAULT_HOOK_RESULT'],[TestFrameworkConstants[_0x2487b5(0x17f)]]:_0x2a24cc[_0x2487b5(0x191)],[TestFrameworkConstants[_0x2487b5(0x19b)]]:[],[TestFrameworkConstants['KEY_HOOK_NAME']]:_0x2a24cc['hook_type'],[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x500f99};_0x5527ab[_0x2487b5(0x14b)]=_0xbe4ea3;const _0x1bbf11=_0x5527ab;_0x11c408[_0xbe4ea3][_0x2487b5(0x15c)](_0x1bbf11),_0x1af288[_0x4102f0][TestFrameworkConstants['KEY_HOOK_LAST_STARTED']]=_0xbe4ea3,logger[_0x2487b5(0x1c0)]('trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20'+_0xbe4ea3+_0x2487b5(0x17c)+_0x1bbf11+'\x20\x20and\x20args\x20=\x20'+_0x419536);}else{if(_0x745a70[_0x2487b5(0x14f)](_0x472f69,HookState[_0x2487b5(0x130)])){const _0x2dd0db=_0x2a24cc[_0x2487b5(0x16d)],_0x5407b2=_0x11c408[_0xbe4ea3]||[];logger['debug'](_0x2487b5(0x18d)+_0x5407b2+'\x20and\x20args\x20=\x20'+_0x419536);if(_0x745a70['RElgh'](_0x5407b2['length'],0x0)){const _0x2072cb=_0x5407b2[_0x2487b5(0x1c8)]();_0x745a70[_0x2487b5(0x16b)](_0x2a24cc[_0x2487b5(0x16d)],_0x745a70[_0x2487b5(0x1b3)])&&_0x2a24cc['failure_data']?(_0x2072cb[TestFrameworkConstants[_0x2487b5(0x17a)]]=_0x2a24cc[_0x2487b5(0x1d3)]||_0x745a70[_0x2487b5(0x195)],_0x2072cb[TestFrameworkConstants['KEY_HOOK_FAILURE_REASON']]=_0x2a24cc[_0x2487b5(0x1d9)]||'',_0x2072cb[TestFrameworkConstants['KEY_HOOK_FAILURE']]=_0x2a24cc[_0x2487b5(0x194)]):_0x2072cb[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x745a70['GPPgb'];_0x745a70['LBLxU'](_0x2dd0db,TestFrameworkConstants[_0x2487b5(0x133)])&&(_0x2072cb[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x2dd0db);_0x2072cb[TestFrameworkConstants[_0x2487b5(0x169)]]=_0x2a24cc['finished_at']||new Date()[_0x2487b5(0x1bc)](),_0x2072cb[TestFrameworkConstants[_0x2487b5(0x164)]]=_0x500f99;const _0x2db18=_0x2072cb[TestFrameworkConstants[_0x2487b5(0x181)]];!_0x23e574[_0xbe4ea3]&&(_0x23e574[_0xbe4ea3]=[]),_0x23e574[_0xbe4ea3][_0x2487b5(0x15c)](_0x2072cb),_0x1af288[_0x4102f0][TestFrameworkConstants[_0x2487b5(0x1bf)]]=_0xbe4ea3;}}}return logger[_0x2487b5(0x1c0)](_0x2487b5(0x185)+_0x2a24cc[_0x2487b5(0x160)]+_0x2487b5(0x19a)+_0x3912ac+_0x2487b5(0x1ba)+_0x4102f0),_0x1af288;}[a91_0x3b7bea(0x11a)](_0x32c24c){const _0x59004e=a91_0x3b7bea,_0x5ec535={};_0x5ec535[_0x59004e(0x178)]=_0x59004e(0x12d);const _0xaffc09=_0x5ec535;try{const _0x47b428=_0x32c24c['test']?_0x32c24c[_0x59004e(0x19d)]['id']:_0x32c24c[_0x59004e(0x165)][_0x59004e(0x1c7)],_0x2118b3=_0x32c24c[_0x59004e(0x168)],_0x37e226=_0x2118b3[_0x59004e(0x190)](),_0x23badf=_0x2118b3['getAllData']()['get'](_0x47b428);if(!_0x23badf)return logger[_0x59004e(0x1c0)](_0x59004e(0x15e)+_0x47b428),{};logger[_0x59004e(0x1c0)](_0x59004e(0x1d4)+_0x47b428);const {[TestFrameworkConstants[_0x59004e(0x12f)]]:_0x572e40='',[TestFrameworkConstants[_0x59004e(0x1ab)]]:_0x4dd289='',[TestFrameworkConstants[_0x59004e(0x156)]]:_0x203a8e='',[TestFrameworkConstants[_0x59004e(0x1b2)]]:_0x10f3d7=''}=_0x23badf,_0x4b35da=_0x2118b3[_0x59004e(0x1c3)]()[_0x59004e(0x138)]()[_0x59004e(0x158)]('.')[0x1],_0x211e7f=_0x2118b3[_0x59004e(0x167)]()[_0x59004e(0x138)]()[_0x59004e(0x158)]('.')[0x1],_0x367dc9=global?.['browserstackPlatformIndex']??0x0,_0x2be744=_0x2118b3[_0x59004e(0x121)](),_0x462e89=Buffer[_0x59004e(0x13a)](JSON['stringify'](_0x23badf))[_0x59004e(0x138)](_0xaffc09[_0x59004e(0x178)]),_0x4615ac={'hash':_0x37e226['getId'](),'threadId':_0x37e226['getThreadId']()['toString'](),'processId':_0x37e226[_0x59004e(0x1ce)]()['toString']()},_0x386453={};_0x386453[_0x59004e(0x14d)]=_0x367dc9,_0x386453[_0x59004e(0x193)]=_0x572e40,_0x386453[_0x59004e(0x152)]=_0x4dd289,_0x386453[_0x59004e(0x18a)]=_0x4b35da,_0x386453[_0x59004e(0x136)]=_0x211e7f,_0x386453['startedAt']=_0x203a8e,_0x386453['endedAt']=_0x10f3d7,_0x386453['uuid']=_0x2be744,_0x386453[_0x59004e(0x1c4)]=_0x462e89,_0x386453['executionContext']=_0x4615ac;const _0x38c5c9=_0x386453;return logger[_0x59004e(0x1c0)](_0x59004e(0x1b6)+_0x47b428+'\x20testState:\x20'+_0x4b35da+_0x59004e(0x143)+_0x211e7f),_0x38c5c9;}catch(_0x4114d8){return logger[_0x59004e(0x17e)](_0x59004e(0x19c)+util[_0x59004e(0x1d8)](_0x4114d8)),{};}}async[a91_0x3b7bea(0x13e)](_0x47299a,_0x304719,_0x11b386){const _0x34a97d=a91_0x3b7bea,_0x2bfa55={'JTkPN':function(_0x41b40b,_0x409a20,_0x4e8ac6){return _0x41b40b(_0x409a20,_0x4e8ac6);},'YPIXM':function(_0x5f5961,_0x24d6c1){return _0x5f5961===_0x24d6c1;},'vzfWe':'sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','LAfGe':function(_0x9418f8,_0x209f30){return _0x9418f8/_0x209f30;},'kmeaj':function(_0x48a0b1,_0x2c0e03){return _0x48a0b1<_0x2c0e03;},'jKjpS':function(_0x379359,_0x650e8f){return _0x379359*_0x650e8f;},'TtjvF':function(_0x379728,_0x58e7db){return _0x379728+_0x58e7db;},'FrAkt':function(_0x3b35c4,_0x5645c2){return _0x3b35c4+_0x5645c2;},'KPKhk':function(_0x38c0b1,_0x140f8e){return _0x38c0b1+_0x140f8e;},'DCbsC':'Cucumber\x20log\x20created\x20event'};try{const _0x4f5159=_0x11b386[_0x34a97d(0x16e)],_0x46e980=_0x47299a['getAllData']()[_0x34a97d(0x135)](_0x4f5159),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x5372c2='',[TestFrameworkConstants[_0x34a97d(0x1ab)]]:_0x1cec76=''}=_0x46e980,_0x5c9c9e=TestInfo[_0x34a97d(0x1cd)](_0x4f5159),_0x3d1e80=TestInfo[_0x34a97d(0x15a)](_0x4f5159)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x56511f=_0x2bfa55['JTkPN'](getMediaArtifactsLogs,_0x3d1e80,_0x47299a[_0x34a97d(0x1ad)]()['get'](_0x4f5159)[TestFrameworkConstants['KEY_TEST_UUID']]),_0x350520=(_0x5c9c9e||[])[_0x34a97d(0x199)](_0x56511f||[]);if(!_0x350520||_0x2bfa55[_0x34a97d(0x163)](_0x350520[_0x34a97d(0x14c)],0x0)){logger[_0x34a97d(0x1c0)](_0x2bfa55[_0x34a97d(0x1cf)]);return;}const _0x448893=0x28,_0x4841fc=Math[_0x34a97d(0x129)](_0x2bfa55['LAfGe'](_0x350520[_0x34a97d(0x14c)],_0x448893));for(let _0x37f79b=0x0;_0x2bfa55[_0x34a97d(0x170)](_0x37f79b,_0x4841fc);_0x37f79b++){const _0x38515c=_0x2bfa55[_0x34a97d(0x1a8)](_0x37f79b,_0x448893),_0x498d75=_0x2bfa55[_0x34a97d(0x173)](_0x38515c,_0x448893),_0x52214e=_0x350520['slice'](_0x38515c,_0x498d75),_0x1c6d34={'platformIndex':global?.[_0x34a97d(0x171)]??0x0,'logs':_0x52214e,'testFrameworkName':_0x5372c2,'testFrameworkVersion':_0x1cec76,'testFrameworkState':_0x304719[_0x34a97d(0x138)]()[_0x34a97d(0x158)]('.')[0x1]};logger[_0x34a97d(0x1c0)]('sendLogCreatedEvent:\x20for\x20testId:\x20'+_0x4f5159+_0x34a97d(0x141)+_0x2bfa55[_0x34a97d(0x142)](_0x37f79b,0x1)+'/'+_0x4841fc+_0x34a97d(0x175)+util['inspect'](_0x1c6d34));const _0x3efa54=await GrpcClient[_0x34a97d(0x16f)]()[_0x34a97d(0x13f)](_0x1c6d34);logger[_0x34a97d(0x1c0)]('sendLogCreatedEvent:\x20for\x20testId:\x20'+_0x4f5159+'\x20batch\x20'+_0x2bfa55[_0x34a97d(0x18b)](_0x37f79b,0x1)+'/'+_0x4841fc+_0x34a97d(0x1a3)+util['inspect'](_0x3efa54));}}catch(_0x3c34ed){logger['error'](_0x34a97d(0x1bb)+util['format'](_0x3c34ed));}logger[_0x34a97d(0x1c0)](_0x2bfa55[_0x34a97d(0x1c1)]);}[a91_0x3b7bea(0x1d5)](_0x583301,_0x378292,_0x42d555,_0x3ee61a,_0x567d23){const _0x26584f=a91_0x3b7bea,_0x327a05={'testId':_0x378292,'testFrameworkState':_0x42d555,'hookState':_0x3ee61a,'args':_0x567d23,'timestamp':new Date()['toISOString']()};_0x583301['addPendingHook'](_0x378292,_0x327a05),logger[_0x26584f(0x1c0)](_0x26584f(0x19f)+_0x378292+',\x20state:\x20'+_0x42d555+_0x26584f(0x11f)+_0x3ee61a);}async['processPendingHooks'](_0x558ffb,_0x1e3630){const _0x1d5e73=a91_0x3b7bea,_0x5f1dbe={};_0x5f1dbe[_0x1d5e73(0x166)]=function(_0x348f97,_0x5e1cd2){return _0x348f97>_0x5e1cd2;};const _0x4faf51=_0x5f1dbe;if(!_0x558ffb['hasPendingHooks'](_0x1e3630))return;const _0x5a4f1c=_0x558ffb['getPendingHooks'](_0x1e3630);logger['debug'](_0x1d5e73(0x123)+_0x5a4f1c['length']+_0x1d5e73(0x1ac)+_0x1e3630);for(const _0x40e154 of _0x5a4f1c){try{const _0x4703d2=await this[_0x1d5e73(0x145)](_0x558ffb,_0x40e154[_0x1d5e73(0x18a)],_0x40e154[_0x1d5e73(0x136)],_0x40e154[_0x1d5e73(0x1d6)]);_0x4703d2&&_0x4faf51['laPPw'](Object['keys'](_0x4703d2)[_0x1d5e73(0x14c)],0x0)&&_0x558ffb['addMultipleEntries'](_0x4703d2),await this['runHooks'](_0x558ffb,_0x40e154['testFrameworkState'],_0x40e154[_0x1d5e73(0x136)],_0x40e154[_0x1d5e73(0x1d6)]);}catch(_0x57e95b){logger['error'](_0x1d5e73(0x1cb)+_0x1e3630+_0x1d5e73(0x124)+_0x57e95b);}}_0x558ffb['removePendingHooks'](_0x1e3630),logger['debug'](_0x1d5e73(0x1d1)+_0x1e3630);}}module[a91_0x3b7bea(0x1cc)]=CucumberTestFramework;function a91_0x3b1a(){const _0x13e69a=['BZeDG','375ABtnrD','getTestFrameworksVersions','KEY_TEST_ID','ceil','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','KEY_TEST_META','583772XsdJVc','base64','../instances/testFrameworkInstance.js','KEY_TEST_FRAMEWORK_NAME','POST','../grpcClient','addMultipleEntries','DEFAULT_HOOK_RESULT','trackEvent','get','hookState','NjWBW','toString','rerun_name','from','\x20with\x20UUID:\x20','93XfiZEX','KEY_TEST_FAILURE_TYPE','sendLogCreatedEvent','logCreatedEvent','KEY_TEST_RESULT_AT','\x20batch\x20','FrAkt','\x20hookState:\x20','TEST','trackHookEvent','KEY_TEST_SCOPES','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','../TestInfo.js','failure','key','length','platformIndex','meta','YUqDd','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','7518339hrQoWJ','testFrameworkVersion','setTestDetails','KEY_TEST_NAME','12865112jsLqrY','KEY_TEST_STARTED_AT','10531759LsnhUz','split','RBOrY','getTestDetails','AlIwm','push','UnhandledError','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','KEY_TEST_FAILURE','hook_type','uuid','getTestFrameworks','YPIXM','KEY_CUSTOM_TAGS','hookData','laPPw','getCurrentHookState','instance','KEY_EVENT_ENDED_AT','\x20with\x20result:\x20','mJPXX','KEY_LOGS','result','testUUID','getInstance','kmeaj','browserstackPlatformIndex','KEY_TEST_LOGS','TtjvF','tags','\x20payload=','processPendingHooks','INIT_TEST','cOoGj','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','KEY_HOOK_FAILURE_TYPE','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','\x20&\x20hook\x20=\x20','../instances/trackedInstance.js','error','KEY_EVENT_STARTED_AT','KEY_TEST_FILE_PATH','KEY_HOOK_ID','startedAt','getCurrentInstanceName','Parsed\x20cucumber\x20test:\x20','Tracked\x20cucumber\x20hook\x20event:\x20','84126NWLbSx','LOG_REPORT','\x20&\x20hookState=','trackCucumberInstance:\x20saved\x20instance\x20contextId=','testFrameworkState','KPKhk','KEY_TEST_RESULT','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','setTrackedInstance','getContext','started_at','KEY_TEST_ATTACHMENTS','testFrameworkName','failure_data','qlbfY','unknown','KEY_TEST_RERUN_NAME','finishedAt','concat','\x20with\x20id\x20','KEY_HOOK_LOGS','Error\x20in\x20createTestFrameworkEventPayload:\x20','test','PbcqK','Stored\x20pending\x20hook\x20for\x20testId:\x20','KEY_TEST_UUID','customRerunParam','nMGFt','\x20response=','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','iboOh','ohNfX','file_name','jKjpS','KEY_HOOKS_FINISHED','resolveInstance','KEY_TEST_FRAMEWORK_VERSION','\x20pending\x20hooks\x20for\x20testId:\x20','getAllData','../cliUtils.js','name','CucumberTestFramework','hooks','KEY_TEST_ENDED_AT','tyfgS','PRE','testData','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','hurjy','DVlqT','code','\x20for\x20test:\x20','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','toISOString','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','104990AimxML','KEY_HOOK_LAST_FINISHED','debug','DCbsC','KEY_HOOKS_STARTED','getCurrentTestState','eventJson','getTestUUID','iPipG','test_run_id','pop','parseCucumberTestResult','3888628dEWPJr','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','exports','readLogObjects','getProcessId','vzfWe','scopes','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','trackCucumberInstance','failure_type','createTestFrameworkEventPayload\x20testId:\x20','storePendingHook','args','KEY_TEST_SCOPE','format','failure_reason','createTestFrameworkEventPayload','KEY_TEST_LOCATION','aqkMQ','./constants/testFrameworkConstants.js','EJEbu',',\x20hookState:\x20','failed','getRef','SYleB','Processing\x20',',\x20error:\x20'];a91_0x3b1a=function(){return _0x13e69a;};return a91_0x3b1a();}
|