browserstack-node-sdk 1.46.5 → 1.46.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/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/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a117_0x2d6f73=a117_0x7d01;(function(_0x493fa8,_0x22e9d9){const _0x31874c=a117_0x7d01,_0x3ce9cb=_0x493fa8();while(!![]){try{const _0xc630ea=parseInt(_0x31874c(0xd9))/0x1*(parseInt(_0x31874c(0x127))/0x2)+parseInt(_0x31874c(0xe1))/0x3*(parseInt(_0x31874c(0xd7))/0x4)+-parseInt(_0x31874c(0xc2))/0x5+-parseInt(_0x31874c(0x121))/0x6*(-parseInt(_0x31874c(0x114))/0x7)+-parseInt(_0x31874c(0x113))/0x8+parseInt(_0x31874c(0xf1))/0x9*(parseInt(_0x31874c(0x130))/0xa)+parseInt(_0x31874c(0xe7))/0xb*(-parseInt(_0x31874c(0xea))/0xc);if(_0xc630ea===_0x22e9d9)break;else _0x3ce9cb['push'](_0x3ce9cb['shift']());}catch(_0x4e62a3){_0x3ce9cb['push'](_0x3ce9cb['shift']());}}}(a117_0x1693,0x9d0b6));const a117_0x11310b={};a117_0x11310b[a117_0x2d6f73(0x119)]='sdk:setup',a117_0x11310b[a117_0x2d6f73(0x11d)]=a117_0x2d6f73(0x10a),a117_0x11310b['SDK_PRE_TEST']=a117_0x2d6f73(0xb9),a117_0x11310b[a117_0x2d6f73(0x10d)]=a117_0x2d6f73(0x12a),a117_0x11310b[a117_0x2d6f73(0xdb)]=a117_0x2d6f73(0x120),a117_0x11310b[a117_0x2d6f73(0xd2)]=a117_0x2d6f73(0xe6),a117_0x11310b['SDK_DRIVER']=a117_0x2d6f73(0xed),a117_0x11310b[a117_0x2d6f73(0x106)]=a117_0x2d6f73(0x124),a117_0x11310b['SDK_O11Y']=a117_0x2d6f73(0xb5),a117_0x11310b['SDK_AUTO_CAPTURE']=a117_0x2d6f73(0xe0),a117_0x11310b['SDK_PROXY_SETUP']=a117_0x2d6f73(0xd1),a117_0x11310b[a117_0x2d6f73(0xb8)]=a117_0x2d6f73(0xc0),a117_0x11310b[a117_0x2d6f73(0xd8)]=a117_0x2d6f73(0x107),a117_0x11310b[a117_0x2d6f73(0x112)]=a117_0x2d6f73(0x10f),a117_0x11310b[a117_0x2d6f73(0x138)]=a117_0x2d6f73(0xf2),a117_0x11310b[a117_0x2d6f73(0xec)]=a117_0x2d6f73(0xbf),a117_0x11310b[a117_0x2d6f73(0xca)]=a117_0x2d6f73(0xe8),a117_0x11310b[a117_0x2d6f73(0x139)]=a117_0x2d6f73(0xfd),a117_0x11310b[a117_0x2d6f73(0x108)]=a117_0x2d6f73(0x11c),a117_0x11310b[a117_0x2d6f73(0xbd)]='sdk:cli:download',a117_0x11310b[a117_0x2d6f73(0x134)]='sdk:cli:check-update',a117_0x11310b['SDK_CLI_ON_BOOTSTRAP']=a117_0x2d6f73(0xc8),a117_0x11310b[a117_0x2d6f73(0x122)]=a117_0x2d6f73(0x126),a117_0x11310b[a117_0x2d6f73(0xef)]='sdk:cli:on-stop',a117_0x11310b[a117_0x2d6f73(0xfb)]=a117_0x2d6f73(0xd3),a117_0x11310b['SDK_CONNECT_BIN_SESSION']=a117_0x2d6f73(0xc5),a117_0x11310b['SDK_DRIVER_INIT']=a117_0x2d6f73(0x116),a117_0x11310b[a117_0x2d6f73(0x117)]=a117_0x2d6f73(0xb6),a117_0x11310b[a117_0x2d6f73(0x123)]=a117_0x2d6f73(0x131),a117_0x11310b['SDK_AUTOMATION_FRAMEWORK_START']=a117_0x2d6f73(0xdd),a117_0x11310b[a117_0x2d6f73(0x137)]='sdk:accessibilityConfig',a117_0x11310b[a117_0x2d6f73(0x100)]=a117_0x2d6f73(0xf8),a117_0x11310b[a117_0x2d6f73(0xe2)]=a117_0x2d6f73(0xfc),a117_0x11310b['SDK_AI_SELF_HEAL_GET_RESULT']=a117_0x2d6f73(0xee),a117_0x11310b[a117_0x2d6f73(0x13a)]=a117_0x2d6f73(0xf5),a117_0x11310b['SDK_TEST_SESSION_EVENT']=a117_0x2d6f73(0x109),a117_0x11310b[a117_0x2d6f73(0xd6)]=a117_0x2d6f73(0x101),a117_0x11310b[a117_0x2d6f73(0xff)]='sdk:cli:enqueueTestEvent',a117_0x11310b[a117_0x2d6f73(0x103)]='sdk:automationFrameworkStop',a117_0x11310b[a117_0x2d6f73(0xf6)]=a117_0x2d6f73(0xd0);const SDK_EVENTS=a117_0x11310b,a117_0xd865d4={};function a117_0x7d01(_0x4a3b3d,_0x4c3a4a){const _0x1693b5=a117_0x1693();return a117_0x7d01=function(_0x7d0148,_0x55489c){_0x7d0148=_0x7d0148-0xb4;let _0x3e4f6e=_0x1693b5[_0x7d0148];return _0x3e4f6e;},a117_0x7d01(_0x4a3b3d,_0x4c3a4a);}function a117_0x1693(){const _0x143d1d=['HOOK_EVENTS','sdk:test','APP_AUOTMATE_EVENTS','KEEP_ALIVE',':after','APP_UPLOAD',':download','3290070NQfcGi','sdk:automationFrameworkInit','PRE_EXECUTE','TURBOSCALE_EVENTS','SDK_CLI_CHECK_UPDATE','DOWNLOAD',':stop','SDK_ACCESSIBILITY_CONFIG','SDK_TURBOSCALE','SDK_POST_INITIALIZE','SDK_TEST_FRAMEWORK_EVENT',':get','sdk:o11y','sdk:findNearestHub',':start','SDK_TESTHUB','sdk:pre-test',':driver-manage','exports',':session-annotation','SDK_CLI_DOWNLOAD',':before-each','sdk:percy','sdk:testhub','AUTOMATE_EVENTS','1134375ktzelJ','SESSION_ANNOTATION','DRIVER_EVENT','sdk:connectBinSession','TAKE_SCREENSHOT','PRINT_BUILDLINK','sdk:cli:on-bootstrap',':get-accessibility-results-summary','SDK_PRE_INITIALIZE','SDK_DRIVER','O11y_EVENTS',':pre-execute',':auto-capture',':screenshot-app','sdk:onStop','sdk:proxy-setup','SDK_HOOK','sdk:startBinSession','BEFORE_EACH',':snapshot','SDK_CLI_LOG_CREATED_EVENT','1116836bkUtFX','SDK_AUTOMATE','1wpDIeF','A11Y_EVENTS','SDK_POST_TEST',':idle-timeout','sdk:automationFrameworkStart','SDK_O11Y',':before','sdk:auto-capture','9qoLeRH','SDK_AI_SELF_HEAL_STEP','GENERATE_CI_ARTIFACT','TESTHUB_EVENTS','PERCY_EVENTS','sdk:hook','44pxcKQY','sdk:driver:pre-initialization','IDLE_TIMEOUT','4629516phUtvV','SESSION_NAME','SDK_PERCY','sdk:driver','sdk:aiSelfHealGetResult','SDK_CLI_ON_STOP',':before-all','9CXvLTa','sdk:turboscale',':after-all',':print-buildlink','sdk:testFrameworkEvent','SDK_ON_STOP','LOCAL_START','sdk:observabilityConfig','HUB_MANAGEMENT',':local-start','SDK_START_BIN_SESSION','sdk:aiSelfHealStep','sdk:driver:post-initialization','GET_RESULTS','SDK_CLI_ENQUEUE_TEST_EVENT','SDK_OBSERVABILITY_CONFIG','sdk:cli:logCreatedEvent',':hub-management','SDK_AUTOMATION_FRAMEWORK_STOP',':after-each',':session-status','SDK_A11Y','sdk:automate','SDK_CLI_START','sdk:testSessionEvent','sdk:cleanup',':screenshot','QUIT','SDK_TEST',':session-name','sdk:app-automate',':sync',':driver-takeScreenShot','SDK_APP_AUTOMATE','445656pRkHcx','413ENtbJk','EVENTS','sdk:driverInit','SDK_FIND_NEAREST_HUB',':driver-performscan','SDK_SETUP',':get-accessibility-results','BEFORE','sdk:cli:start','SDK_CLEANUP','AFTER_ALL','START','sdk:post-test','70116ZsKoSw','SDK_CLI_ON_CONNECT','SDK_AUTOMATION_FRAMEWORK_INIT','sdk:a11y','AFTER_EACH','sdk:cli:on-connect','1225800XRNiqs','LOCAL_STOP'];a117_0x1693=function(){return _0x143d1d;};return a117_0x1693();}a117_0xd865d4[a117_0x2d6f73(0x115)]=SDK_EVENTS,a117_0xd865d4[a117_0x2d6f73(0xe4)]={},a117_0xd865d4[a117_0x2d6f73(0xc1)]={},a117_0xd865d4[a117_0x2d6f73(0xda)]={},a117_0xd865d4[a117_0x2d6f73(0xe5)]={},a117_0xd865d4[a117_0x2d6f73(0xcc)]={},a117_0xd865d4[a117_0x2d6f73(0x129)]={},a117_0xd865d4[a117_0x2d6f73(0x133)]={},a117_0xd865d4[a117_0x2d6f73(0x12b)]={},a117_0xd865d4[a117_0x2d6f73(0xc4)]={},a117_0xd865d4[a117_0x2d6f73(0xe4)][a117_0x2d6f73(0x11f)]=SDK_EVENTS[a117_0x2d6f73(0xb8)]+a117_0x2d6f73(0xb7),a117_0xd865d4[a117_0x2d6f73(0xe4)]['STOP']=SDK_EVENTS[a117_0x2d6f73(0xb8)]+a117_0x2d6f73(0x136),a117_0xd865d4[a117_0x2d6f73(0xc1)][a117_0x2d6f73(0x12c)]=SDK_EVENTS[a117_0x2d6f73(0xd8)]+':keep-alive',a117_0xd865d4[a117_0x2d6f73(0xc1)][a117_0x2d6f73(0xf9)]=SDK_EVENTS[a117_0x2d6f73(0xd8)]+':hub-management',a117_0xd865d4[a117_0x2d6f73(0xc1)][a117_0x2d6f73(0xf7)]=SDK_EVENTS[a117_0x2d6f73(0xd8)]+a117_0x2d6f73(0xfa),a117_0xd865d4[a117_0x2d6f73(0xc1)][a117_0x2d6f73(0x128)]=SDK_EVENTS[a117_0x2d6f73(0xd8)]+':local-stop',a117_0xd865d4[a117_0x2d6f73(0xc1)]['DRIVER_MANAGE']=SDK_EVENTS[a117_0x2d6f73(0xd8)]+a117_0x2d6f73(0xba),a117_0xd865d4[a117_0x2d6f73(0xc1)][a117_0x2d6f73(0xeb)]=SDK_EVENTS[a117_0x2d6f73(0xd8)]+a117_0x2d6f73(0x10e),a117_0xd865d4[a117_0x2d6f73(0xc1)]['SESSION_STATUS']=SDK_EVENTS[a117_0x2d6f73(0xd8)]+a117_0x2d6f73(0x105),a117_0xd865d4[a117_0x2d6f73(0xc1)][a117_0x2d6f73(0xc3)]=SDK_EVENTS['SDK_AUTOMATE']+a117_0x2d6f73(0xbc),a117_0xd865d4[a117_0x2d6f73(0xc1)][a117_0x2d6f73(0xe9)]=SDK_EVENTS[a117_0x2d6f73(0xd8)]+a117_0x2d6f73(0xdc),a117_0xd865d4[a117_0x2d6f73(0xc1)][a117_0x2d6f73(0xe3)]=SDK_EVENTS[a117_0x2d6f73(0xd8)]+':ci-artifacts',a117_0xd865d4[a117_0x2d6f73(0xc1)]['PRINT_BUILDLINK']=SDK_EVENTS[a117_0x2d6f73(0xd8)]+':print-buildlink',a117_0xd865d4[a117_0x2d6f73(0xda)]['PERFORM_SCAN']=SDK_EVENTS[a117_0x2d6f73(0x106)]+a117_0x2d6f73(0x118),a117_0xd865d4[a117_0x2d6f73(0xda)]['SAVE_RESULTS']=SDK_EVENTS['SDK_A11Y']+':save-results',a117_0xd865d4[a117_0x2d6f73(0xda)][a117_0x2d6f73(0xfe)]=SDK_EVENTS[a117_0x2d6f73(0x106)]+a117_0x2d6f73(0x11a),a117_0xd865d4[a117_0x2d6f73(0xda)]['GET_RESULTS_SUMMARY']=SDK_EVENTS['SDK_A11Y']+a117_0x2d6f73(0xc9),a117_0xd865d4[a117_0x2d6f73(0xe5)][a117_0x2d6f73(0x135)]=SDK_EVENTS[a117_0x2d6f73(0xec)]+a117_0x2d6f73(0x12f),a117_0xd865d4[a117_0x2d6f73(0xe5)]['SCREENSHOT']=SDK_EVENTS[a117_0x2d6f73(0xec)]+a117_0x2d6f73(0x10b),a117_0xd865d4[a117_0x2d6f73(0xe5)][a117_0x2d6f73(0x11f)]=SDK_EVENTS[a117_0x2d6f73(0xec)]+a117_0x2d6f73(0xb7),a117_0xd865d4[a117_0x2d6f73(0xe5)]['STOP']=SDK_EVENTS[a117_0x2d6f73(0xec)]+a117_0x2d6f73(0x136),a117_0xd865d4[a117_0x2d6f73(0xe5)]['AUTO_CAPTURE']=SDK_EVENTS['SDK_PERCY']+a117_0x2d6f73(0xce),a117_0xd865d4[a117_0x2d6f73(0xe5)]['SNAPSHOT']=SDK_EVENTS['SDK_PERCY']+a117_0x2d6f73(0xd5),a117_0xd865d4[a117_0x2d6f73(0xe5)]['SCREENSHOT_APP']=SDK_EVENTS[a117_0x2d6f73(0xec)]+a117_0x2d6f73(0xcf),a117_0xd865d4[a117_0x2d6f73(0xcc)]['SYNC']=SDK_EVENTS['SDK_O11Y']+a117_0x2d6f73(0x110),a117_0xd865d4[a117_0x2d6f73(0xcc)][a117_0x2d6f73(0xc6)]=SDK_EVENTS[a117_0x2d6f73(0xde)]+a117_0x2d6f73(0x111),a117_0xd865d4[a117_0x2d6f73(0xcc)][a117_0x2d6f73(0xc7)]=SDK_EVENTS[a117_0x2d6f73(0xde)]+':print-buildlink',a117_0xd865d4[a117_0x2d6f73(0x129)][a117_0x2d6f73(0xd4)]=SDK_EVENTS[a117_0x2d6f73(0xd2)]+a117_0x2d6f73(0xbe),a117_0xd865d4[a117_0x2d6f73(0x129)][a117_0x2d6f73(0x125)]=SDK_EVENTS[a117_0x2d6f73(0xd2)]+a117_0x2d6f73(0x104),a117_0xd865d4[a117_0x2d6f73(0x129)][a117_0x2d6f73(0x11e)]=SDK_EVENTS['SDK_HOOK']+a117_0x2d6f73(0xf3),a117_0xd865d4[a117_0x2d6f73(0x129)]['BEFORE_ALL']=SDK_EVENTS[a117_0x2d6f73(0xd2)]+a117_0x2d6f73(0xf0),a117_0xd865d4[a117_0x2d6f73(0x129)][a117_0x2d6f73(0x11b)]=SDK_EVENTS['SDK_HOOK']+a117_0x2d6f73(0xdf),a117_0xd865d4[a117_0x2d6f73(0x129)]['AFTER']=SDK_EVENTS['SDK_HOOK']+a117_0x2d6f73(0x12d),a117_0xd865d4[a117_0x2d6f73(0x133)]['HUB_MANAGEMENT']=SDK_EVENTS['SDK_TURBOSCALE']+a117_0x2d6f73(0x102),a117_0xd865d4[a117_0x2d6f73(0x133)][a117_0x2d6f73(0xc7)]=SDK_EVENTS[a117_0x2d6f73(0x138)]+a117_0x2d6f73(0xf4),a117_0xd865d4[a117_0x2d6f73(0x12b)][a117_0x2d6f73(0x12e)]=SDK_EVENTS['SDK_APP_AUTOMATE']+':app-upload',a117_0xd865d4[a117_0x2d6f73(0xc4)][a117_0x2d6f73(0x10c)]=SDK_EVENTS[a117_0x2d6f73(0xcb)]+':quit',a117_0xd865d4[a117_0x2d6f73(0xc4)]['GET']=SDK_EVENTS[a117_0x2d6f73(0xcb)]+a117_0x2d6f73(0xb4),a117_0xd865d4[a117_0x2d6f73(0xc4)][a117_0x2d6f73(0x132)]=SDK_EVENTS['SDK_DRIVER']+a117_0x2d6f73(0xcd),a117_0xd865d4[a117_0x2d6f73(0xc4)]['POST_EXECUTE']=SDK_EVENTS[a117_0x2d6f73(0xcb)]+':post-execute',module[a117_0x2d6f73(0xbb)]=a117_0xd865d4;
|
|
1
|
+
const a117_0x21f050=a117_0x4951;(function(_0x112d28,_0x3d09df){const _0x3ec7d2=a117_0x4951,_0x2d3223=_0x112d28();while(!![]){try{const _0x243543=-parseInt(_0x3ec7d2(0xb5))/0x1+-parseInt(_0x3ec7d2(0xd4))/0x2*(parseInt(_0x3ec7d2(0xc0))/0x3)+parseInt(_0x3ec7d2(0xb6))/0x4*(-parseInt(_0x3ec7d2(0x8e))/0x5)+parseInt(_0x3ec7d2(0x100))/0x6+parseInt(_0x3ec7d2(0xa0))/0x7*(parseInt(_0x3ec7d2(0x103))/0x8)+-parseInt(_0x3ec7d2(0x9c))/0x9*(parseInt(_0x3ec7d2(0x8f))/0xa)+parseInt(_0x3ec7d2(0x95))/0xb;if(_0x243543===_0x3d09df)break;else _0x2d3223['push'](_0x2d3223['shift']());}catch(_0x65377d){_0x2d3223['push'](_0x2d3223['shift']());}}}(a117_0x15b0,0xadd90));const a117_0xe4259c={};a117_0xe4259c['SDK_SETUP']=a117_0x21f050(0xd7),a117_0xe4259c[a117_0x21f050(0x90)]=a117_0x21f050(0xf2),a117_0xe4259c[a117_0x21f050(0xd6)]=a117_0x21f050(0x91),a117_0xe4259c['SDK_TEST']='sdk:test',a117_0xe4259c['SDK_POST_TEST']=a117_0x21f050(0xbe),a117_0xe4259c[a117_0x21f050(0xd9)]='sdk:hook',a117_0xe4259c[a117_0x21f050(0xd5)]='sdk:driver',a117_0xe4259c[a117_0x21f050(0xac)]=a117_0x21f050(0xe5),a117_0xe4259c[a117_0x21f050(0x83)]=a117_0x21f050(0x84),a117_0xe4259c['SDK_AUTO_CAPTURE']='sdk:auto-capture',a117_0xe4259c['SDK_PROXY_SETUP']=a117_0x21f050(0xae),a117_0xe4259c[a117_0x21f050(0xb2)]=a117_0x21f050(0xbc),a117_0xe4259c[a117_0x21f050(0xec)]='sdk:automate',a117_0xe4259c['SDK_APP_AUTOMATE']=a117_0x21f050(0x8c),a117_0xe4259c[a117_0x21f050(0xed)]=a117_0x21f050(0xfc),a117_0xe4259c['SDK_PERCY']=a117_0x21f050(0xc3),a117_0xe4259c[a117_0x21f050(0xb8)]=a117_0x21f050(0xb1),a117_0xe4259c[a117_0x21f050(0x8d)]=a117_0x21f050(0xc7),a117_0xe4259c[a117_0x21f050(0xfd)]=a117_0x21f050(0x94),a117_0xe4259c[a117_0x21f050(0xca)]=a117_0x21f050(0xe3),a117_0xe4259c[a117_0x21f050(0xef)]=a117_0x21f050(0x9a),a117_0xe4259c['SDK_CLI_ON_BOOTSTRAP']=a117_0x21f050(0x93),a117_0xe4259c[a117_0x21f050(0x85)]=a117_0x21f050(0xe7),a117_0xe4259c['SDK_CLI_ON_STOP']=a117_0x21f050(0xcd),a117_0xe4259c[a117_0x21f050(0xdf)]=a117_0x21f050(0xb3),a117_0xe4259c[a117_0x21f050(0xba)]=a117_0x21f050(0xe4),a117_0xe4259c['SDK_DRIVER_INIT']=a117_0x21f050(0xe9),a117_0xe4259c[a117_0x21f050(0xcf)]='sdk:findNearestHub',a117_0xe4259c['SDK_AUTOMATION_FRAMEWORK_INIT']='sdk:automationFrameworkInit',a117_0xe4259c[a117_0x21f050(0xa6)]=a117_0x21f050(0xbf),a117_0xe4259c[a117_0x21f050(0x92)]=a117_0x21f050(0x89),a117_0xe4259c[a117_0x21f050(0xbd)]='sdk:observabilityConfig',a117_0xe4259c['SDK_AI_SELF_HEAL_STEP']='sdk:aiSelfHealStep',a117_0xe4259c['SDK_AI_SELF_HEAL_GET_RESULT']=a117_0x21f050(0x9f),a117_0xe4259c[a117_0x21f050(0x98)]=a117_0x21f050(0x99),a117_0xe4259c[a117_0x21f050(0xe0)]=a117_0x21f050(0xc8),a117_0xe4259c[a117_0x21f050(0x102)]=a117_0x21f050(0xf3),a117_0xe4259c['SDK_CLI_ENQUEUE_TEST_EVENT']='sdk:cli:enqueueTestEvent',a117_0xe4259c[a117_0x21f050(0xa4)]=a117_0x21f050(0xf0),a117_0xe4259c['SDK_ON_STOP']=a117_0x21f050(0x88);const SDK_EVENTS=a117_0xe4259c,a117_0x519208={};function a117_0x15b0(){const _0x3abc70=[':sync','PRE_EXECUTE','SDK_AUTOMATE','SDK_TURBOSCALE','AFTER_ALL','SDK_CLI_CHECK_UPDATE','sdk:automationFrameworkStop',':get-accessibility-results-summary','sdk:cleanup','sdk:cli:logCreatedEvent',':driver-takeScreenShot',':screenshot-app','A11Y_EVENTS','SCREENSHOT_APP',':get-accessibility-results','PERCY_EVENTS','SDK_PERCY',':get','sdk:turboscale','SDK_CLI_START','SDK_APP_AUTOMATE','HUB_MANAGEMENT','5424180TYSsKl','SAVE_RESULTS','SDK_CLI_LOG_CREATED_EVENT','152FqKcZa','APP_AUOTMATE_EVENTS',':print-buildlink','SDK_O11Y','sdk:o11y','SDK_CLI_ON_CONNECT','TAKE_SCREENSHOT','AFTER_EACH','sdk:onStop','sdk:accessibilityConfig',':local-stop','BEFORE','sdk:app-automate','SDK_POST_INITIALIZE','13990ORAsRq','50eStcuV','SDK_CLEANUP','sdk:pre-test','SDK_ACCESSIBILITY_CONFIG','sdk:cli:on-bootstrap','sdk:cli:start','30931769Tksfnk',':session-annotation','KEEP_ALIVE','SDK_TEST_FRAMEWORK_EVENT','sdk:testFrameworkEvent','sdk:cli:check-update','TESTHUB_EVENTS','1904895iaazYR',':before-each',':download','sdk:aiSelfHealGetResult','18207nElpZR','SESSION_STATUS','GET','DRIVER_MANAGE','SDK_AUTOMATION_FRAMEWORK_STOP','SESSION_ANNOTATION','SDK_AUTOMATION_FRAMEWORK_START',':start',':idle-timeout','BEFORE_ALL','IDLE_TIMEOUT',':before-all','SDK_A11Y',':screenshot','sdk:proxy-setup','HOOK_EVENTS',':stop','sdk:driver:pre-initialization','SDK_TESTHUB','sdk:startBinSession','SNAPSHOT','331584sKSMIA','708HtPEYg','APP_UPLOAD','SDK_PRE_INITIALIZE','AUTO_CAPTURE','SDK_CONNECT_BIN_SESSION','TURBOSCALE_EVENTS','sdk:testhub','SDK_OBSERVABILITY_CONFIG','sdk:post-test','sdk:automationFrameworkStart','3504729WnMYFZ','exports',':hub-management','sdk:percy','DRIVER_EVENT','PERFORM_SCAN','PRINT_BUILDLINK','sdk:driver:post-initialization','sdk:testSessionEvent','QUIT','SDK_CLI_DOWNLOAD','START','SYNC','sdk:cli:on-stop','LOCAL_START','SDK_FIND_NEAREST_HUB','STOP','SCREENSHOT',':post-execute','AFTER','2DNHkAV','SDK_DRIVER','SDK_PRE_TEST','sdk:setup','POST_EXECUTE','SDK_HOOK',':driver-manage',':session-name','GET_RESULTS',':after-each',':ci-artifacts','SDK_START_BIN_SESSION','SDK_TEST_SESSION_EVENT','AUTOMATE_EVENTS',':local-start','sdk:cli:download','sdk:connectBinSession','sdk:a11y','O11y_EVENTS','sdk:cli:on-connect',':save-results','sdk:driverInit'];a117_0x15b0=function(){return _0x3abc70;};return a117_0x15b0();}function a117_0x4951(_0x3916a9,_0x31af2e){const _0x15b088=a117_0x15b0();return a117_0x4951=function(_0x49519d,_0x30fd15){_0x49519d=_0x49519d-0x83;let _0x103eca=_0x15b088[_0x49519d];return _0x103eca;},a117_0x4951(_0x3916a9,_0x31af2e);}a117_0x519208['EVENTS']=SDK_EVENTS,a117_0x519208[a117_0x21f050(0x9b)]={},a117_0x519208[a117_0x21f050(0xe1)]={},a117_0x519208[a117_0x21f050(0xf6)]={},a117_0x519208[a117_0x21f050(0xf9)]={},a117_0x519208[a117_0x21f050(0xe6)]={},a117_0x519208[a117_0x21f050(0xaf)]={},a117_0x519208[a117_0x21f050(0xbb)]={},a117_0x519208[a117_0x21f050(0x104)]={},a117_0x519208[a117_0x21f050(0xc4)]={},a117_0x519208[a117_0x21f050(0x9b)][a117_0x21f050(0xcb)]=SDK_EVENTS[a117_0x21f050(0xb2)]+a117_0x21f050(0xa7),a117_0x519208[a117_0x21f050(0x9b)]['STOP']=SDK_EVENTS['SDK_TESTHUB']+':stop',a117_0x519208[a117_0x21f050(0xe1)][a117_0x21f050(0x97)]=SDK_EVENTS[a117_0x21f050(0xec)]+':keep-alive',a117_0x519208[a117_0x21f050(0xe1)][a117_0x21f050(0xff)]=SDK_EVENTS['SDK_AUTOMATE']+a117_0x21f050(0xc2),a117_0x519208[a117_0x21f050(0xe1)][a117_0x21f050(0xce)]=SDK_EVENTS[a117_0x21f050(0xec)]+a117_0x21f050(0xe2),a117_0x519208[a117_0x21f050(0xe1)]['LOCAL_STOP']=SDK_EVENTS[a117_0x21f050(0xec)]+a117_0x21f050(0x8a),a117_0x519208[a117_0x21f050(0xe1)][a117_0x21f050(0xa3)]=SDK_EVENTS[a117_0x21f050(0xec)]+a117_0x21f050(0xda),a117_0x519208[a117_0x21f050(0xe1)]['SESSION_NAME']=SDK_EVENTS['SDK_AUTOMATE']+a117_0x21f050(0xdb),a117_0x519208[a117_0x21f050(0xe1)][a117_0x21f050(0xa1)]=SDK_EVENTS['SDK_AUTOMATE']+':session-status',a117_0x519208[a117_0x21f050(0xe1)][a117_0x21f050(0xa5)]=SDK_EVENTS['SDK_AUTOMATE']+a117_0x21f050(0x96),a117_0x519208[a117_0x21f050(0xe1)][a117_0x21f050(0xaa)]=SDK_EVENTS[a117_0x21f050(0xec)]+a117_0x21f050(0xa8),a117_0x519208[a117_0x21f050(0xe1)]['GENERATE_CI_ARTIFACT']=SDK_EVENTS['SDK_AUTOMATE']+a117_0x21f050(0xde),a117_0x519208[a117_0x21f050(0xe1)]['PRINT_BUILDLINK']=SDK_EVENTS[a117_0x21f050(0xec)]+a117_0x21f050(0x105),a117_0x519208[a117_0x21f050(0xf6)][a117_0x21f050(0xc5)]=SDK_EVENTS['SDK_A11Y']+':driver-performscan',a117_0x519208[a117_0x21f050(0xf6)][a117_0x21f050(0x101)]=SDK_EVENTS[a117_0x21f050(0xac)]+a117_0x21f050(0xe8),a117_0x519208[a117_0x21f050(0xf6)][a117_0x21f050(0xdc)]=SDK_EVENTS[a117_0x21f050(0xac)]+a117_0x21f050(0xf8),a117_0x519208[a117_0x21f050(0xf6)]['GET_RESULTS_SUMMARY']=SDK_EVENTS[a117_0x21f050(0xac)]+a117_0x21f050(0xf1),a117_0x519208[a117_0x21f050(0xf9)]['DOWNLOAD']=SDK_EVENTS[a117_0x21f050(0xfa)]+a117_0x21f050(0x9e),a117_0x519208[a117_0x21f050(0xf9)][a117_0x21f050(0xd1)]=SDK_EVENTS[a117_0x21f050(0xfa)]+a117_0x21f050(0xad),a117_0x519208[a117_0x21f050(0xf9)][a117_0x21f050(0xcb)]=SDK_EVENTS['SDK_PERCY']+a117_0x21f050(0xa7),a117_0x519208[a117_0x21f050(0xf9)][a117_0x21f050(0xd0)]=SDK_EVENTS[a117_0x21f050(0xfa)]+a117_0x21f050(0xb0),a117_0x519208[a117_0x21f050(0xf9)][a117_0x21f050(0xb9)]=SDK_EVENTS['SDK_PERCY']+':auto-capture',a117_0x519208[a117_0x21f050(0xf9)][a117_0x21f050(0xb4)]=SDK_EVENTS[a117_0x21f050(0xfa)]+':snapshot',a117_0x519208[a117_0x21f050(0xf9)][a117_0x21f050(0xf7)]=SDK_EVENTS[a117_0x21f050(0xfa)]+a117_0x21f050(0xf5),a117_0x519208[a117_0x21f050(0xe6)][a117_0x21f050(0xcc)]=SDK_EVENTS['SDK_O11Y']+a117_0x21f050(0xea),a117_0x519208[a117_0x21f050(0xe6)][a117_0x21f050(0x86)]=SDK_EVENTS[a117_0x21f050(0x83)]+a117_0x21f050(0xf4),a117_0x519208[a117_0x21f050(0xe6)][a117_0x21f050(0xc6)]=SDK_EVENTS[a117_0x21f050(0x83)]+a117_0x21f050(0x105),a117_0x519208[a117_0x21f050(0xaf)]['BEFORE_EACH']=SDK_EVENTS[a117_0x21f050(0xd9)]+a117_0x21f050(0x9d),a117_0x519208[a117_0x21f050(0xaf)][a117_0x21f050(0x87)]=SDK_EVENTS[a117_0x21f050(0xd9)]+a117_0x21f050(0xdd),a117_0x519208[a117_0x21f050(0xaf)][a117_0x21f050(0xee)]=SDK_EVENTS['SDK_HOOK']+':after-all',a117_0x519208[a117_0x21f050(0xaf)][a117_0x21f050(0xa9)]=SDK_EVENTS[a117_0x21f050(0xd9)]+a117_0x21f050(0xab),a117_0x519208[a117_0x21f050(0xaf)][a117_0x21f050(0x8b)]=SDK_EVENTS[a117_0x21f050(0xd9)]+':before',a117_0x519208[a117_0x21f050(0xaf)][a117_0x21f050(0xd3)]=SDK_EVENTS['SDK_HOOK']+':after',a117_0x519208[a117_0x21f050(0xbb)][a117_0x21f050(0xff)]=SDK_EVENTS[a117_0x21f050(0xed)]+a117_0x21f050(0xc2),a117_0x519208[a117_0x21f050(0xbb)][a117_0x21f050(0xc6)]=SDK_EVENTS['SDK_TURBOSCALE']+':print-buildlink',a117_0x519208[a117_0x21f050(0x104)][a117_0x21f050(0xb7)]=SDK_EVENTS[a117_0x21f050(0xfe)]+':app-upload',a117_0x519208[a117_0x21f050(0xc4)][a117_0x21f050(0xc9)]=SDK_EVENTS[a117_0x21f050(0xd5)]+':quit',a117_0x519208[a117_0x21f050(0xc4)][a117_0x21f050(0xa2)]=SDK_EVENTS[a117_0x21f050(0xd5)]+a117_0x21f050(0xfb),a117_0x519208[a117_0x21f050(0xc4)][a117_0x21f050(0xeb)]=SDK_EVENTS['SDK_DRIVER']+':pre-execute',a117_0x519208[a117_0x21f050(0xc4)][a117_0x21f050(0xd8)]=SDK_EVENTS[a117_0x21f050(0xd5)]+a117_0x21f050(0xd2),module[a117_0x21f050(0xc1)]=a117_0x519208;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a118_0x330a(){const _0x33f2bf=['generateJSON','190506FlLFQR','_events','getEventsFromJSON','-end','index','readFileSync','388894dcJJSQ','548788DPjoHs','/error-report-','.json','2754992oDUksJ','match','length','</tbody></table></body></html>','iKLBt','failure','map','/performance-report-','measures','JzVti','writeFileSync','jsonReportDirPath','dyICx','captureError','rTzcb','ciOai','</td></tr>','slice','DpWYu','entryType','constants','DjwPT','details','HjjHm','sLJRT','info','82796vFpeoe','duration','startMonitoring','Error\x20in\x20getting\x20key-metrics.json\x20file:\x20%s','zXbQp','mkdirSync','flat','utf-8','resolve','AhZhz','OlHpM','browserStackCwd','toString','errorFile','entryTypes','amBsx','uaSip','measureWrapper','vsSJn','Error\x20processing\x20key-metrics.json:\x20%s','winstonLogger','access','_observer','success','platform','forEach','performance-own.html','sXdSp','eventsMap','error-report','\x20for\x20all\x20processes\x20is\x20','getCleanedPerfEvents','name','then','parse','fs/promises','nTynt','util','Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','pushPerfMeasures','finalize','finalizeErrors','dirname','IeOVH','calculateTimeFromEvents','iGdzI','isEnabled','writeFile','env','key-metrics.json','concat','2435286wrKhwK','errorReportFileName','mEkoo','lxtKt','Time\x20for\x20','error\x20in\x20measure\x20','YYmPz','NIhAq','jsonReportFileName','message','../processHelper','errorReportDirName','getPerformance','sxPqH','odGEb','Error\x20in\x20writing\x20html\x20','rhYbT','errors','spFAT','toJSON','modified-key-metrics.json','yizWt','join','HWGRn','entries','ePNTu','unlinkSync','pushErrors','format','Error\x20while\x20removing\x20files:\x20','cwd','KxWOU','zYeDF','stringify','BROWSERSTACK_SDK_INSTRUMENTATION','GdVGG','buffered','false','KvqKF','getEntries','VzznH','</td><td>','<tr><td>','stack','MmHyx','meta','F_OK','XJsXs','_measureEvents','FTnsh','ozusL','__platformCaps','perf_hooks','Error\x20stopping\x20monitoring\x20','jsonReportDirName','bYYqm','rKlyr','key-metrics.json\x20file\x20not\x20found,\x20skipping\x20processing\x20for\x20event\x20for\x20cli.','push','LDohk','debug','Error\x20in\x20doing\x20csv\x20operations:\x20','1321698GvBbpL','AdxkK','appendFileSync','assign','unlink','existsSync','../logger','catch','end','HfURx','apply','splice','measure','generateHTMLReport','disconnect','_errorEvents','-start','started','readFile','mark','AzaFD','95thujgL','<h1>Performance\x20Report</h1>','reduce','start'];a118_0x330a=function(){return _0x33f2bf;};return a118_0x330a();}const a118_0x553949=a118_0x24e0;function a118_0x24e0(_0x3b95d4,_0x5ddc70){const _0x330a0c=a118_0x330a();return a118_0x24e0=function(_0x24e01c,_0x4a1a57){_0x24e01c=_0x24e01c-0x1e4;let _0x47f9a8=_0x330a0c[_0x24e01c];return _0x47f9a8;},a118_0x24e0(_0x3b95d4,_0x5ddc70);}(function(_0x2ef9aa,_0x30e965){const _0x22ac6f=a118_0x24e0,_0x4d7ace=_0x2ef9aa();while(!![]){try{const _0x2ba85b=parseInt(_0x22ac6f(0x215))/0x1+parseInt(_0x22ac6f(0x214))/0x2+parseInt(_0x22ac6f(0x20e))/0x3+-parseInt(_0x22ac6f(0x232))/0x4*(-parseInt(_0x22ac6f(0x209))/0x5)+-parseInt(_0x22ac6f(0x1f4))/0x6+-parseInt(_0x22ac6f(0x265))/0x7+-parseInt(_0x22ac6f(0x218))/0x8;if(_0x2ba85b===_0x30e965)break;else _0x4d7ace['push'](_0x4d7ace['shift']());}catch(_0x40989){_0x4d7ace['push'](_0x4d7ace['shift']());}}}(a118_0x330a,0x462e7));const fs=require('fs'),fsPromise=require(a118_0x553949(0x255)),{performance,PerformanceObserver}=require(a118_0x553949(0x1ea)),path=require('path'),util=require(a118_0x553949(0x257)),logger=require(a118_0x553949(0x1fa))[a118_0x553949(0x246)],{getLogDir}=require(a118_0x553949(0x1fa)),{getProcessId,sleep,debug,getTestName}=require(a118_0x553949(0x26f));class PerformanceTester{static ['_observer'];static ['_events']=[];static ['_measureEvents']=[];static ['_errorEvents']=[];static ['started']=![];static [a118_0x553949(0x1ec)]='performance-report';static ['errorReportDirName']=process[a118_0x553949(0x262)][a118_0x553949(0x23d)]?path[a118_0x553949(0x27b)](process[a118_0x553949(0x262)][a118_0x553949(0x23d)],a118_0x553949(0x24f)):path['join'](process[a118_0x553949(0x283)](),a118_0x553949(0x24f));static [a118_0x553949(0x266)]=this[a118_0x553949(0x270)]+a118_0x553949(0x216)+getProcessId()+a118_0x553949(0x217);static [a118_0x553949(0x22e)]={};static ['eventsMap']={};static[a118_0x553949(0x234)](_0x26d440,_0x3d48d9=this[a118_0x553949(0x270)]+'/error-report-'+getProcessId()+a118_0x553949(0x217)){const _0x2d1e59=a118_0x553949,_0x1a3c0c={'wcScK':function(_0x1772f7,_0x3a332f){return _0x1772f7===_0x3a332f;},'rhYbT':'measure','HjjHm':function(_0x33f095){return _0x33f095();},'odGEb':function(_0x4de93c){return _0x4de93c();},'xfevW':function(_0x4460e7,_0xc1abd6){return _0x4460e7+_0xc1abd6;},'YYmPz':_0x2d1e59(0x258),'HfURx':'function'};try{this[_0x2d1e59(0x223)]=path[_0x2d1e59(0x27b)](_0x1a3c0c[_0x2d1e59(0x22f)](getLogDir),this[_0x2d1e59(0x1ec)]),!_0x26d440&&(_0x26d440=this[_0x2d1e59(0x223)]+_0x2d1e59(0x21f)+_0x1a3c0c[_0x2d1e59(0x273)](getProcessId)+_0x2d1e59(0x217)),!fs['existsSync'](this[_0x2d1e59(0x223)])&&fs[_0x2d1e59(0x237)](this['jsonReportDirPath']);}catch(_0x4b4639){logger[_0x2d1e59(0x1f2)](_0x1a3c0c['xfevW'](_0x1a3c0c[_0x2d1e59(0x26b)],_0x4b4639));}if(this['started']||!this['isEnabled']())return;this[_0x2d1e59(0x248)]=new PerformanceObserver(_0xad1d1=>{const _0x3b2b24=_0x2d1e59;_0xad1d1[_0x3b2b24(0x28c)]()[_0x3b2b24(0x24b)](_0x186d44=>{const _0x184441=_0x3b2b24;if(_0x1a3c0c['wcScK'](_0x186d44[_0x184441(0x22b)],_0x1a3c0c[_0x184441(0x275)])){let _0x16ff87={};if(_0x186d44[_0x184441(0x278)])_0x16ff87=_0x186d44[_0x184441(0x278)]();else for(const _0x2e9c5f in _0x186d44){_0x16ff87[_0x2e9c5f]=_0x186d44[_0x2e9c5f];}this[_0x184441(0x22e)][_0x186d44[_0x184441(0x252)]]&&(_0x16ff87=Object[_0x184441(0x1f7)](_0x16ff87,this['details'][_0x186d44['name']])),delete this[_0x184441(0x22e)][_0x186d44[_0x184441(0x252)]],this[_0x184441(0x1e6)][_0x184441(0x1f0)](_0x16ff87);}else this['_events'][_0x184441(0x1f0)](_0x186d44);});});const _0x780439={};_0x780439[_0x2d1e59(0x289)]=!![],_0x780439[_0x2d1e59(0x240)]=[_0x1a3c0c[_0x2d1e59(0x1fd)],_0x1a3c0c[_0x2d1e59(0x275)]],this[_0x2d1e59(0x248)]['observe'](_0x780439),this[_0x2d1e59(0x205)]=!![],this[_0x2d1e59(0x26d)]=_0x26d440,this[_0x2d1e59(0x266)]=_0x3d48d9;}static[a118_0x553949(0x271)](){return performance;}static[a118_0x553949(0x25e)](_0x51e4ac,_0x4651ed){const _0xfec59=a118_0x553949,_0x30f91a={};_0x30f91a[_0xfec59(0x268)]=function(_0x2828d8,_0x1b18ab){return _0x2828d8+_0x1b18ab;},_0x30f91a['sxPqH']=function(_0x2ae8ca,_0x1dc58c){return _0x2ae8ca||_0x1dc58c;},_0x30f91a[_0xfec59(0x285)]=function(_0x21eb03,_0x5edfae){return _0x21eb03===_0x5edfae;};const _0x42a4d7=_0x30f91a,_0x2327c8={};if(!_0x51e4ac||_0x42a4d7['zYeDF'](_0x51e4ac[_0xfec59(0x21a)],0x0))return;_0x51e4ac[_0xfec59(0x21e)](_0x10895b=>{const _0x5ede3c=_0xfec59;!_0x2327c8[_0x10895b['name']]&&(_0x2327c8[_0x10895b['name']]=0x0),_0x2327c8[_0x10895b[_0x5ede3c(0x252)]]+=_0x10895b[_0x5ede3c(0x233)];});const _0x31a4ac=_0x4651ed['reduce']((_0x53dbe6,_0x4cbe09)=>{const _0x18f5c1=_0xfec59;return _0x42a4d7['lxtKt'](_0x2327c8[_0x4cbe09],_0x42a4d7[_0x18f5c1(0x272)](_0x53dbe6,0x0));},0x0);return _0x31a4ac;}static async['calculateTimesFromMultipleFiles'](_0x537df7,_0x4df5bc){const _0xeeb6f8=a118_0x553949,_0x3ba298={'AdxkK':function(_0x4fe856,_0x59b382){return _0x4fe856+_0x59b382;},'iUARr':function(_0x19dd16,_0x222f8b){return _0x19dd16||_0x222f8b;},'JzVti':function(_0x125a58,_0x3bd672){return _0x125a58===_0x3bd672;},'pUyAR':function(_0x3b11a5,_0x398320){return _0x3b11a5(_0x398320);},'DjwPT':function(_0x43aed6,_0x1eeb56){return _0x43aed6(_0x1eeb56);}};if(!_0x537df7||_0x3ba298[_0xeeb6f8(0x221)](_0x537df7['length'],0x0))return 0x0;const _0x6ebad2=[];for(const _0x2cd29c of _0x537df7){const _0x4f8ac7=path['join']('.',_0x2cd29c);try{const _0x365502=this[_0xeeb6f8(0x210)](_0x4f8ac7);_0x365502[_0xeeb6f8(0x21e)](_0x4e7038=>{const _0x4ececf=_0xeeb6f8;!_0x6ebad2[_0x4e7038[_0x4ececf(0x252)]]&&(_0x6ebad2[_0x4e7038['name']]=0x0),_0x6ebad2[_0x4e7038['name']]+=_0x4e7038['duration'];});}catch(_0x4922f9){_0x3ba298['pUyAR'](debug,_0xeeb6f8(0x1f3)+_0x4922f9[_0xeeb6f8(0x23e)]());}}const _0xad6f22=_0x4df5bc[_0xeeb6f8(0x20b)]((_0x44689f,_0x239bd7)=>{const _0x42b455=_0xeeb6f8;return _0x3ba298[_0x42b455(0x1f5)](_0x6ebad2[_0x239bd7],_0x3ba298['iUARr'](_0x44689f,0x0));},0x0);return _0x3ba298[_0xeeb6f8(0x22d)](debug,_0xeeb6f8(0x269)+_0x4df5bc+_0xeeb6f8(0x250)+_0xad6f22),_0xad6f22;}static['getEventsFromJSON'](_0x41339d){const _0x58c084=a118_0x553949;if(_0x41339d){if(!fs['existsSync'](_0x41339d))return[];return JSON[_0x58c084(0x254)](fs[_0x58c084(0x213)](_0x41339d)[_0x58c084(0x23e)]());}}static async['stopAndGenerate'](_0x24250b=a118_0x553949(0x24c),_0x29a618=null){const _0x158e62=a118_0x553949,_0x1809b7={'iKLBt':function(_0x46eb79,_0x2b8768){return _0x46eb79(_0x2b8768);},'iGdzI':function(_0x173e5e,_0x37a5b0){return _0x173e5e(_0x37a5b0);}};if(!this['started'])return;await _0x1809b7[_0x158e62(0x25f)](sleep,0x1e),this['_observer']['disconnect'](),this[_0x158e62(0x205)]=![],this[_0x158e62(0x20d)](this[_0x158e62(0x20f)]);const _0x2913e=this[_0x158e62(0x201)](this[_0x158e62(0x20f)]),_0x4c5a7f=path[_0x158e62(0x27b)](process[_0x158e62(0x283)](),_0x24250b);fs[_0x158e62(0x261)](_0x4c5a7f,_0x2913e,_0x428b22=>{const _0x25e78b=_0x158e62;if(_0x428b22){_0x1809b7[_0x25e78b(0x21c)](debug,_0x25e78b(0x274)+_0x428b22[_0x25e78b(0x23e)]());return;}_0x1809b7[_0x25e78b(0x25f)](debug,'Performance\x20report\x20is\x20at\x20'+_0x4c5a7f);});if(_0x29a618)return this['calculateTimeFromEvents'](this[_0x158e62(0x20f)],_0x29a618);}static[a118_0x553949(0x201)](_0x1f76d3){const _0x4cb9f6=a118_0x553949,_0x171dc8={};_0x171dc8[_0x4cb9f6(0x27c)]='<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>',_0x171dc8[_0x4cb9f6(0x28b)]=_0x4cb9f6(0x20a),_0x171dc8[_0x4cb9f6(0x1ee)]='<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>',_0x171dc8[_0x4cb9f6(0x236)]=_0x4cb9f6(0x21b);const _0x50a413=_0x171dc8;let _0x58d116=_0x50a413[_0x4cb9f6(0x27c)];return _0x58d116+=_0x50a413['KvqKF'],_0x58d116+=_0x50a413['rKlyr'],_0x1f76d3[_0x4cb9f6(0x24b)](_0x4a0b79=>{const _0x569d74=_0x4cb9f6;_0x58d116+=_0x569d74(0x28f)+_0x4a0b79[_0x569d74(0x252)]+_0x569d74(0x28e)+_0x4a0b79[_0x569d74(0x233)]+_0x569d74(0x228);}),_0x58d116+=_0x50a413['zXbQp'],_0x58d116;}static[a118_0x553949(0x20d)](_0x36f55b){const _0x1fe217=a118_0x553949;if(!this[_0x1fe217(0x26d)])return;const _0xe6b23c={};_0x36f55b[_0x1fe217(0x21e)](_0x30fe6a=>{const _0x1d70dc=_0x1fe217;!_0xe6b23c[_0x30fe6a[_0x1d70dc(0x252)]]&&(_0xe6b23c[_0x30fe6a[_0x1d70dc(0x252)]]=0x0),_0xe6b23c[_0x30fe6a[_0x1d70dc(0x252)]]+=_0x30fe6a['duration'];});const _0x5b63d4=Object[_0x1fe217(0x27d)](_0xe6b23c)[_0x1fe217(0x21e)](([_0x9d3e0e,_0x4e6e97])=>{const _0x462f6a=_0x1fe217,_0x54d7c0={};return _0x54d7c0[_0x462f6a(0x252)]=_0x9d3e0e,_0x54d7c0[_0x462f6a(0x233)]=_0x4e6e97,_0x54d7c0;});fs[_0x1fe217(0x222)](this[_0x1fe217(0x26d)],JSON[_0x1fe217(0x286)](_0x5b63d4));}static[a118_0x553949(0x260)](){const _0x5cb294=a118_0x553949,_0x287ce0={};_0x287ce0[_0x5cb294(0x1f1)]=function(_0x191151,_0x428fd4){return _0x191151===_0x428fd4;},_0x287ce0[_0x5cb294(0x1e5)]=_0x5cb294(0x28a);const _0xb46330=_0x287ce0;return!_0xb46330[_0x5cb294(0x1f1)](process[_0x5cb294(0x262)][_0x5cb294(0x287)],_0xb46330[_0x5cb294(0x1e5)]);}static[a118_0x553949(0x200)](_0x145531,_0x573c40,_0x4b8076=null,_0x1d430c={},_0x169573=null){const _0x3323aa=a118_0x553949,_0xb4b974={'AzaFD':function(_0x296672,_0x1c1dc1){return _0x296672(_0x1c1dc1);},'mEkoo':function(_0x2c06ab,_0x317935){return _0x2c06ab instanceof _0x317935;}};try{if(this[_0x3323aa(0x205)]&&this[_0x3323aa(0x260)]()){let _0xe856af=_0x145531;_0x4b8076&&(_0xe856af=_0x145531+'['+JSON[_0x3323aa(0x286)](_0x4b8076)+']');PerformanceTester[_0x3323aa(0x20c)](_0xe856af),this[_0x3323aa(0x22e)]&&(this[_0x3323aa(0x22e)][_0xe856af]=_0x1d430c);try{const _0x18d2ea=_0x573c40[_0x3323aa(0x1fe)](null,_0x169573);if(_0xb4b974[_0x3323aa(0x267)](_0x18d2ea,Promise))return new Promise((_0x38cb9d,_0x5eb75e)=>{const _0x370ffa=_0x3323aa;_0x18d2ea[_0x370ffa(0x253)](_0x431f63=>{const _0x28640e=_0x370ffa;PerformanceTester[_0x28640e(0x1fc)](_0xe856af),_0xb4b974[_0x28640e(0x208)](_0x38cb9d,_0x431f63);})[_0x370ffa(0x1fb)](_0x5279cd=>{const _0x34b819=_0x370ffa;PerformanceTester[_0x34b819(0x1fc)](_0xe856af,![],util[_0x34b819(0x281)](_0x5279cd)),_0xb4b974[_0x34b819(0x208)](_0x5eb75e,_0x5279cd);});});;return PerformanceTester[_0x3323aa(0x1fc)](_0xe856af),_0x18d2ea;}catch(_0x521cbf){PerformanceTester['end'](_0xe856af,![],util[_0x3323aa(0x281)](_0x521cbf));throw _0x521cbf;}};return _0x573c40[_0x3323aa(0x1fe)](null,_0x169573);}catch(_0x3856c9){return logger[_0x3323aa(0x1f2)](_0x3323aa(0x26a)+(_0x3856c9[_0x3323aa(0x290)]||_0x3856c9['message']||_0x3856c9)),_0x573c40[_0x3323aa(0x1fe)](null,_0x169573);}}static[a118_0x553949(0x243)](_0x5d54a0,_0x42ad6d,_0x23065e={}){const _0x20db97=a118_0x553949,_0x1c3446={'DpWYu':function(_0x4e6c40){return _0x4e6c40();},'FTnsh':function(_0x2e67fb){return _0x2e67fb();}},_0x51df85=this;return _0x23065e['worker']=_0x1c3446[_0x20db97(0x22a)](getProcessId),_0x23065e['testName']=_0x1c3446[_0x20db97(0x1e7)](getTestName),_0x23065e[_0x20db97(0x24a)]=global[_0x20db97(0x1e9)]&&global[_0x20db97(0x1e9)]['index'],function(){const _0x59795a=_0x20db97,_0x57aa24=[_0x5d54a0,_0x42ad6d,null,_0x23065e]['concat'](arguments);return _0x51df85[_0x59795a(0x200)][_0x59795a(0x1fe)](_0x51df85,_0x57aa24);};}static[a118_0x553949(0x251)](){const _0x53493a=a118_0x553949,_0x2b4d19=/(^.*)\[(.*)\]$/,_0x37fa5e={},_0x1595d0={},_0x4a1855=[],_0xe6e355=this[_0x53493a(0x1e6)][_0x53493a(0x1ff)](0x0,this[_0x53493a(0x1e6)][_0x53493a(0x21a)]);for(const _0x34e2fc of _0xe6e355){const _0x2a9f8a=_0x34e2fc['name'][_0x53493a(0x219)](_0x2b4d19),_0x4c24a5=Object[_0x53493a(0x1f7)]({},_0x34e2fc);_0x2a9f8a&&(_0x4c24a5['name']=_0x2a9f8a[0x1],_0x4c24a5[_0x53493a(0x292)]=JSON[_0x53493a(0x254)](_0x2a9f8a[0x2])),_0x4a1855[_0x53493a(0x1f0)](_0x4c24a5);}return _0x4a1855;}static[a118_0x553949(0x259)](){const _0x721b17=a118_0x553949,_0x3f4ace={'ozusL':function(_0x3e518c){return _0x3e518c();},'MmHyx':function(_0x36e5ef,_0x1264c3){return _0x36e5ef+_0x1264c3;},'nTynt':_0x721b17(0x282),'bYYqm':function(_0x3f483c,_0x3d040d){return _0x3f483c===_0x3d040d;}};try{this[_0x721b17(0x223)]=path[_0x721b17(0x27b)](_0x3f4ace[_0x721b17(0x1e8)](getLogDir),this['jsonReportDirName']);if(fs['existsSync'](this['jsonReportDirPath'])){const _0x2b6363=fs['readdirSync'](this[_0x721b17(0x223)]);for(const _0x5ec4ae of _0x2b6363){fs[_0x721b17(0x27f)](path['join'](this[_0x721b17(0x223)],_0x5ec4ae));}}}catch(_0x308427){logger['debug'](_0x3f4ace[_0x721b17(0x291)](_0x3f4ace[_0x721b17(0x256)],_0x308427));}if(_0x3f4ace[_0x721b17(0x1ed)](this['_measureEvents'][_0x721b17(0x21a)],0x0))return;const _0x4a0cda=this['getCleanedPerfEvents'](),_0x2770f5=JSON[_0x721b17(0x286)](_0x4a0cda),_0x3b6327=_0x3f4ace[_0x721b17(0x291)](_0x2770f5[_0x721b17(0x229)](0x1,-0x1),',');fs['appendFileSync'](this[_0x721b17(0x26d)],_0x3b6327);}static async['finalizePerfMeasures'](){const _0x5a37ad=a118_0x553949,_0x47a0c3={'NIhAq':function(_0x3f24f5){return _0x3f24f5();},'uaSip':function(_0xb8aa6c,_0x1974ae){return _0xb8aa6c===_0x1974ae;},'vZsXy':_0x5a37ad(0x263),'sLJRT':_0x5a37ad(0x239),'WetGt':_0x5a37ad(0x279),'GdVGG':function(_0x2e5a43,_0x390708){return _0x2e5a43+_0x390708;},'yizWt':_0x5a37ad(0x245),'vsSJn':_0x5a37ad(0x1ef),'amBsx':_0x5a37ad(0x235),'ciOai':function(_0x29e75a,_0x145f05){return _0x29e75a>_0x145f05;}};this[_0x5a37ad(0x223)]=path[_0x5a37ad(0x27b)](_0x47a0c3[_0x5a37ad(0x26c)](getLogDir),this[_0x5a37ad(0x1ec)]);if(!this[_0x5a37ad(0x205)]||_0x47a0c3[_0x5a37ad(0x242)](this['_measureEvents']['length'],0x0))return[];if(!fs[_0x5a37ad(0x1f9)](this[_0x5a37ad(0x223)]))return this['_measureEvents'];const _0x582d35=(await fsPromise['readdir'](this['jsonReportDirPath']))[_0x5a37ad(0x21e)](_0x275c73=>path[_0x5a37ad(0x23a)](this['jsonReportDirPath'],_0x275c73));try{const _0x5c12aa=path[_0x5a37ad(0x25c)](this[_0x5a37ad(0x223)]),_0x5f35f0=path['join'](_0x5c12aa,_0x47a0c3['vZsXy']);if(fs[_0x5a37ad(0x1f9)](_0x5f35f0))try{await fsPromise[_0x5a37ad(0x247)](_0x5f35f0,fs[_0x5a37ad(0x22c)][_0x5a37ad(0x1e4)]);const _0x5d51b5=await fsPromise[_0x5a37ad(0x206)](_0x5f35f0,_0x47a0c3[_0x5a37ad(0x230)]),_0x3ebef2=JSON[_0x5a37ad(0x254)](_0x5d51b5),_0x1c75aa=path['join'](this[_0x5a37ad(0x223)],_0x47a0c3['WetGt']);let _0x21565c='';Array['isArray'](_0x3ebef2)?_0x21565c=_0x47a0c3['GdVGG'](_0x3ebef2[_0x5a37ad(0x21e)](_0x268481=>JSON[_0x5a37ad(0x286)](_0x268481))['join'](','),','):_0x21565c=_0x47a0c3[_0x5a37ad(0x288)](JSON[_0x5a37ad(0x286)](_0x3ebef2),','),await fsPromise[_0x5a37ad(0x261)](_0x1c75aa,_0x21565c),_0x582d35['push'](_0x1c75aa),await fsPromise[_0x5a37ad(0x1f8)](_0x5f35f0);}catch(_0x3c062a){logger[_0x5a37ad(0x231)](util[_0x5a37ad(0x281)](_0x47a0c3[_0x5a37ad(0x27a)],_0x3c062a['stack']||_0x3c062a[_0x5a37ad(0x26e)]||_0x3c062a));}else logger[_0x5a37ad(0x231)](_0x47a0c3[_0x5a37ad(0x244)]);}catch(_0xa15c43){logger[_0x5a37ad(0x231)](util[_0x5a37ad(0x281)](_0x47a0c3[_0x5a37ad(0x241)],_0xa15c43['stack']||_0xa15c43['message']||_0xa15c43));}let _0x5cc356=(await Promise['all'](_0x582d35[_0x5a37ad(0x21e)](_0x4d76ae=>fsPromise[_0x5a37ad(0x206)](_0x4d76ae,_0x5a37ad(0x239)))))[_0x5a37ad(0x21e)](_0x468c82=>'['+_0x468c82[_0x5a37ad(0x229)](0x0,-0x1)+']')[_0x5a37ad(0x21e)](_0x44a8c0=>JSON[_0x5a37ad(0x254)](_0x44a8c0))[_0x5a37ad(0x238)]();return _0x47a0c3[_0x5a37ad(0x227)](this[_0x5a37ad(0x1e6)][_0x5a37ad(0x21a)],0x0)&&(_0x5cc356=_0x5cc356[_0x5a37ad(0x264)](this[_0x5a37ad(0x251)]())),this[_0x5a37ad(0x248)][_0x5a37ad(0x202)](),_0x5cc356;}static[a118_0x553949(0x280)](){const _0x1032a8=a118_0x553949,_0x46ff13={};_0x46ff13['sXdSp']=function(_0x3a197c,_0x459c47){return _0x3a197c===_0x459c47;},_0x46ff13[_0x1032a8(0x224)]=function(_0x10271b,_0x20a955){return _0x10271b+_0x20a955;};const _0x4eda33=_0x46ff13;if(_0x4eda33[_0x1032a8(0x24d)](this[_0x1032a8(0x203)][_0x1032a8(0x21a)],0x0))return;const _0x4c2dc2=JSON['stringify'](this[_0x1032a8(0x203)]),_0x3235e2=_0x4eda33['dyICx'](_0x4c2dc2[_0x1032a8(0x229)](0x1,-0x1),',');fs[_0x1032a8(0x1f6)](this[_0x1032a8(0x23f)],_0x3235e2);}static[a118_0x553949(0x25b)](){const _0x49c2ae=a118_0x553949,_0x1c1519={};_0x1c1519[_0x49c2ae(0x23b)]=function(_0x3d568b,_0x153cae){return _0x3d568b>_0x153cae;};const _0x3363eb=_0x1c1519;if(this[_0x49c2ae(0x266)]){if(!fs[_0x49c2ae(0x1f9)](this[_0x49c2ae(0x266)]))return this['_errorEvents'];let _0x10c811=fs['readFileSync'](this[_0x49c2ae(0x266)])[_0x49c2ae(0x23e)]();_0x10c811='['+_0x10c811[_0x49c2ae(0x229)](0x0,-0x1)+']';let _0x1bb859=JSON[_0x49c2ae(0x254)](_0x10c811);return _0x3363eb[_0x49c2ae(0x23b)](this[_0x49c2ae(0x203)][_0x49c2ae(0x21a)],0x0)&&(_0x1bb859=_0x1bb859[_0x49c2ae(0x264)](this[_0x49c2ae(0x203)])),fs[_0x49c2ae(0x27f)](this[_0x49c2ae(0x266)]),_0x1bb859;}}static[a118_0x553949(0x225)](_0x20d8ad){const _0x4e64a2=a118_0x553949;if(!this[_0x4e64a2(0x260)]())return;this[_0x4e64a2(0x203)][_0x4e64a2(0x1f0)]({'message':_0x20d8ad['message'],'trace':_0x20d8ad[_0x4e64a2(0x290)],'code':_0x20d8ad['code']||null,'time':new Date()});}static['stopMonitoring'](){const _0x3b919c=a118_0x553949;try{if(!this[_0x3b919c(0x260)]())return;this['_observer']['disconnect'](),this[_0x3b919c(0x259)](),this[_0x3b919c(0x280)]();}catch(_0x5be09f){logger[_0x3b919c(0x1f2)](_0x3b919c(0x1eb)+util['format'](_0x5be09f));}}static async[a118_0x553949(0x25a)](){const _0x192d0e=a118_0x553949,_0x6f7c4a={'UmUAH':function(_0x21694e,_0x246ba6){return _0x21694e(_0x246ba6);}};await _0x6f7c4a['UmUAH'](sleep,0x1e);const _0x5e8529=await this['finalizePerfMeasures'](),_0x47df6b=this[_0x192d0e(0x25b)]();if(!this[_0x192d0e(0x260)]()){const _0x350b22={};return _0x350b22[_0x192d0e(0x220)]=[],_0x350b22[_0x192d0e(0x276)]=[],_0x350b22;}const _0x132761={};return _0x132761[_0x192d0e(0x220)]=_0x5e8529,_0x132761[_0x192d0e(0x276)]=_0x47df6b,_0x132761;}static[a118_0x553949(0x20c)](_0x275caf){const _0x3d232e=a118_0x553949,_0x4edbe6={};_0x4edbe6[_0x3d232e(0x284)]=function(_0x29afb1,_0x141466){return _0x29afb1+_0x141466;},_0x4edbe6[_0x3d232e(0x277)]=_0x3d232e(0x204);const _0x326043=_0x4edbe6,_0x4860da=_0x326043[_0x3d232e(0x284)](_0x275caf,_0x326043[_0x3d232e(0x277)]);if(this[_0x3d232e(0x24e)][_0x4860da])return;performance['mark'](_0x4860da),this['eventsMap'][_0x4860da]=0x1;}static['end'](_0x18656b,_0x1ab7cf=!![],_0x4e5797=null,_0x4073e9={}){const _0x1a7372=a118_0x553949,_0x643472={'OlHpM':function(_0x384fd2,_0x44dcde){return _0x384fd2+_0x44dcde;},'ePNTu':_0x1a7372(0x211),'VzznH':_0x1a7372(0x204),'rTzcb':function(_0x1667d0){return _0x1667d0();},'IeOVH':function(_0x5d2116){return _0x5d2116();}};performance[_0x1a7372(0x207)](_0x643472[_0x1a7372(0x23c)](_0x18656b,_0x643472[_0x1a7372(0x27e)])),performance[_0x1a7372(0x200)](_0x18656b,_0x643472[_0x1a7372(0x23c)](_0x18656b,_0x643472[_0x1a7372(0x28d)]),_0x643472[_0x1a7372(0x23c)](_0x18656b,_0x643472[_0x1a7372(0x27e)]));const _0x454b5d={};_0x454b5d[_0x1a7372(0x249)]=_0x1ab7cf,_0x454b5d[_0x1a7372(0x21d)]=_0x4e5797,this[_0x1a7372(0x22e)][_0x18656b]=Object[_0x1a7372(0x1f7)](_0x454b5d,Object[_0x1a7372(0x1f7)](Object[_0x1a7372(0x1f7)]({'worker':_0x643472[_0x1a7372(0x226)](getProcessId),'platform':global['__platformCaps']&&global[_0x1a7372(0x1e9)][_0x1a7372(0x212)],'testName':_0x643472[_0x1a7372(0x25d)](getTestName)},_0x4073e9),this['details'][_0x18656b]||{}));}}module['exports']=PerformanceTester;
|
|
1
|
+
const a118_0x55288b=a118_0x18f3;function a118_0x18f3(_0x17f845,_0x297a1a){const _0xb1f72d=a118_0xb1f7();return a118_0x18f3=function(_0x18f352,_0x25a057){_0x18f352=_0x18f352-0x106;let _0x154906=_0xb1f72d[_0x18f352];return _0x154906;},a118_0x18f3(_0x17f845,_0x297a1a);}(function(_0x4da1f1,_0x211ed6){const _0x2baa02=a118_0x18f3,_0x5ed29e=_0x4da1f1();while(!![]){try{const _0x591583=parseInt(_0x2baa02(0x169))/0x1*(parseInt(_0x2baa02(0x16b))/0x2)+parseInt(_0x2baa02(0x11f))/0x3+-parseInt(_0x2baa02(0x161))/0x4*(parseInt(_0x2baa02(0x15e))/0x5)+parseInt(_0x2baa02(0x175))/0x6*(parseInt(_0x2baa02(0x11b))/0x7)+-parseInt(_0x2baa02(0x115))/0x8+parseInt(_0x2baa02(0x111))/0x9*(parseInt(_0x2baa02(0x124))/0xa)+-parseInt(_0x2baa02(0x1a9))/0xb*(parseInt(_0x2baa02(0x151))/0xc);if(_0x591583===_0x211ed6)break;else _0x5ed29e['push'](_0x5ed29e['shift']());}catch(_0x5e576e){_0x5ed29e['push'](_0x5ed29e['shift']());}}}(a118_0xb1f7,0x3e011));function a118_0xb1f7(){const _0x2ef506=['ubhOq','catch','_measureEvents','stopMonitoring','browserStackCwd','readFileSync','generateJSON','iNUFR','oJGAk','exports','QAOeG','observe','entryTypes','MWTqt','toString','writeFile','zrYDy','map','Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','yHFwx','TZEpp','kHhfP','Frtiq','BROWSERSTACK_SDK_INSTRUMENTATION','33KDpHcF','match','getCleanedPerfEvents','eFFbq','existsSync','util','PHdts','__platformCaps','</td></tr>','</tbody></table></body></html>','\x20for\x20all\x20processes\x20is\x20','concat','fs/promises','parse','constants','env','uPPdS','key-metrics.json','error\x20in\x20measure\x20','platform','performance-report','slice','qzTWx','modified-key-metrics.json','9nNpDcb','WfXpD','stringify','error-report','3436528yrZIXC','DckwZ','measureWrapper','jsonReportDirPath','-start','started','1871373Rfsgvh','hbcHZ','stack','details','1026012LYWMUu','wEKXt','DAIuv','IlCEx','</td><td>','4189690YQysuz','.json','apply','_events','yPaan','errorReportFileName','mkdirSync','duration','YfsUK','join','finalize','fUcIQ','start','uYXHa','errorReportDirName','OODFh','unlink','Error\x20in\x20getting\x20key-metrics.json\x20file:\x20%s','ZEwOU','Time\x20for\x20','length','leCYH','perf_hooks','ZgEHR','forEach','getEventsFromJSON','errorFile','IfHwG','_errorEvents','ILOLW','DfxkG','readFile','assign','BUegh','calculateTimesFromMultipleFiles','failure','RkLlY','jsonReportFileName','index','readdirSync','reduce','measures','../logger','<tr><td>','lPUhv','2592684aPvQEg','errors','all','rvSjN','stopAndGenerate','message','winstonLogger','Error\x20stopping\x20monitoring\x20','CEppE','info','measure','meta','unlinkSync','5nudYeL','finalizeErrors','false','37116dGdpVH','worker','pushPerfMeasures','mark','generateHTMLReport','isEnabled','WdmUq','_observer','312673ZQrdXb','success','2YtPyvF','disconnect','Error\x20in\x20writing\x20html\x20','buffered','utf-8','cwd','format','/error-report-','captureError','performance-own.html','6DhQJeE','calculateTimeFromEvents','Error\x20in\x20doing\x20csv\x20operations:\x20','BSeyl','then','Hylsr','Error\x20while\x20removing\x20files:\x20','name','testName','readdir','function','PpigD','cuHCw','qyEQS','debug','ktEYf','push','writeFileSync','finalizePerfMeasures','Performance\x20report\x20is\x20at\x20','EftAW','-end','jsonReportDirName','quiuZ','end','tVMsP','/performance-report-','<h1>Performance\x20Report</h1>'];a118_0xb1f7=function(){return _0x2ef506;};return a118_0xb1f7();}const fs=require('fs'),fsPromise=require(a118_0x55288b(0x1b5)),{performance,PerformanceObserver}=require(a118_0x55288b(0x13a)),path=require('path'),util=require(a118_0x55288b(0x1ae)),logger=require(a118_0x55288b(0x14e))[a118_0x55288b(0x157)],{getLogDir}=require(a118_0x55288b(0x14e)),{getProcessId,sleep,debug,getTestName}=require('../processHelper');class PerformanceTester{static [a118_0x55288b(0x168)];static ['_events']=[];static [a118_0x55288b(0x193)]=[];static [a118_0x55288b(0x140)]=[];static ['started']=![];static ['jsonReportDirName']=a118_0x55288b(0x10d);static ['errorReportDirName']=process[a118_0x55288b(0x108)]['browserStackCwd']?path[a118_0x55288b(0x12d)](process[a118_0x55288b(0x108)][a118_0x55288b(0x195)],a118_0x55288b(0x114)):path[a118_0x55288b(0x12d)](process[a118_0x55288b(0x170)](),a118_0x55288b(0x114));static [a118_0x55288b(0x129)]=this[a118_0x55288b(0x132)]+'/error-report-'+getProcessId()+a118_0x55288b(0x125);static ['details']={};static ['eventsMap']={};static['startMonitoring'](_0x39c450,_0x4ab9dc=this['errorReportDirName']+a118_0x55288b(0x172)+getProcessId()+a118_0x55288b(0x125)){const _0x477123=a118_0x55288b,_0x58039e={'uYXHa':function(_0x7b0a37,_0x41df2a){return _0x7b0a37===_0x41df2a;},'ILOLW':_0x477123(0x15b),'EpPUN':function(_0x478481){return _0x478481();},'ZEwOU':function(_0xe924b1){return _0xe924b1();},'eFFbq':function(_0x404bbd,_0x41f65e){return _0x404bbd+_0x41f65e;},'BUegh':_0x477123(0x1a3),'uPPdS':_0x477123(0x17f)};try{this[_0x477123(0x118)]=path['join'](_0x58039e['EpPUN'](getLogDir),this[_0x477123(0x18b)]),!_0x39c450&&(_0x39c450=this['jsonReportDirPath']+_0x477123(0x18f)+_0x58039e[_0x477123(0x136)](getProcessId)+_0x477123(0x125)),!fs['existsSync'](this[_0x477123(0x118)])&&fs[_0x477123(0x12a)](this[_0x477123(0x118)]);}catch(_0x176957){logger[_0x477123(0x183)](_0x58039e[_0x477123(0x1ac)](_0x58039e[_0x477123(0x145)],_0x176957));}if(this[_0x477123(0x11a)]||!this[_0x477123(0x166)]())return;this[_0x477123(0x168)]=new PerformanceObserver(_0x273acf=>{const _0x93222f=_0x477123,_0x549726={'BSxjp':function(_0x56a1fc,_0x361a83){const _0x533483=a118_0x18f3;return _0x58039e[_0x533483(0x131)](_0x56a1fc,_0x361a83);},'cuHCw':_0x58039e[_0x93222f(0x141)]};_0x273acf['getEntries']()[_0x93222f(0x13c)](_0x292d57=>{const _0x83376=_0x93222f;if(_0x549726['BSxjp'](_0x292d57['entryType'],_0x549726[_0x83376(0x181)])){let _0x1584ee={};if(_0x292d57['toJSON'])_0x1584ee=_0x292d57['toJSON']();else for(const _0x58bf15 in _0x292d57){_0x1584ee[_0x58bf15]=_0x292d57[_0x58bf15];}this['details'][_0x292d57[_0x83376(0x17c)]]&&(_0x1584ee=Object['assign'](_0x1584ee,this[_0x83376(0x11e)][_0x292d57[_0x83376(0x17c)]])),delete this[_0x83376(0x11e)][_0x292d57[_0x83376(0x17c)]],this[_0x83376(0x193)][_0x83376(0x185)](_0x1584ee);}else this['_events']['push'](_0x292d57);});});const _0x576403={};_0x576403[_0x477123(0x16e)]=!![],_0x576403[_0x477123(0x19d)]=[_0x58039e[_0x477123(0x109)],_0x58039e['ILOLW']],this[_0x477123(0x168)][_0x477123(0x19c)](_0x576403),this[_0x477123(0x11a)]=!![],this['jsonReportFileName']=_0x39c450,this[_0x477123(0x129)]=_0x4ab9dc;}static['getPerformance'](){return performance;}static[a118_0x55288b(0x176)](_0x36ad4b,_0x389725){const _0x52ce31=a118_0x55288b,_0x378ff2={};_0x378ff2['QAOeG']=function(_0xb44eec,_0x1f68b6){return _0xb44eec+_0x1f68b6;},_0x378ff2[_0x52ce31(0x1a4)]=function(_0x9f75bb,_0xa10463){return _0x9f75bb||_0xa10463;},_0x378ff2[_0x52ce31(0x154)]=function(_0xb8aebf,_0x2fefa8){return _0xb8aebf===_0x2fefa8;};const _0x5f4062=_0x378ff2,_0x49b5bd={};if(!_0x36ad4b||_0x5f4062[_0x52ce31(0x154)](_0x36ad4b['length'],0x0))return;_0x36ad4b[_0x52ce31(0x1a2)](_0x2ce4d2=>{const _0x41ee64=_0x52ce31;!_0x49b5bd[_0x2ce4d2[_0x41ee64(0x17c)]]&&(_0x49b5bd[_0x2ce4d2[_0x41ee64(0x17c)]]=0x0),_0x49b5bd[_0x2ce4d2[_0x41ee64(0x17c)]]+=_0x2ce4d2[_0x41ee64(0x12b)];});const _0x3686e4=_0x389725[_0x52ce31(0x14c)]((_0x29ac5d,_0x528e60)=>{const _0x34bbb7=_0x52ce31;return _0x5f4062[_0x34bbb7(0x19b)](_0x49b5bd[_0x528e60],_0x5f4062['yHFwx'](_0x29ac5d,0x0));},0x0);return _0x3686e4;}static async[a118_0x55288b(0x146)](_0x5f55f2,_0x342206){const _0x56b177=a118_0x55288b,_0x10bbf1={'lPUhv':function(_0x5bf6bf,_0x4dd922){return _0x5bf6bf+_0x4dd922;},'WdmUq':function(_0x472015,_0x14ae58){return _0x472015||_0x14ae58;},'LOpzs':function(_0x412809,_0x59f51a){return _0x412809===_0x59f51a;},'MWTqt':function(_0xae24ad,_0x3185e9){return _0xae24ad(_0x3185e9);}};if(!_0x5f55f2||_0x10bbf1['LOpzs'](_0x5f55f2[_0x56b177(0x138)],0x0))return 0x0;const _0x32df5c=[];for(const _0x764e55 of _0x5f55f2){const _0x48ed32=path[_0x56b177(0x12d)]('.',_0x764e55);try{const _0x3e37a0=this['getEventsFromJSON'](_0x48ed32);_0x3e37a0[_0x56b177(0x1a2)](_0x948765=>{const _0x23362c=_0x56b177;!_0x32df5c[_0x948765[_0x23362c(0x17c)]]&&(_0x32df5c[_0x948765[_0x23362c(0x17c)]]=0x0),_0x32df5c[_0x948765['name']]+=_0x948765[_0x23362c(0x12b)];});}catch(_0x21fa15){_0x10bbf1[_0x56b177(0x19e)](debug,_0x56b177(0x177)+_0x21fa15[_0x56b177(0x19f)]());}}const _0x57defa=_0x342206['reduce']((_0x1afea8,_0x3edd01)=>{const _0x5e4ddb=_0x56b177;return _0x10bbf1[_0x5e4ddb(0x150)](_0x32df5c[_0x3edd01],_0x10bbf1[_0x5e4ddb(0x167)](_0x1afea8,0x0));},0x0);return _0x10bbf1[_0x56b177(0x19e)](debug,_0x56b177(0x137)+_0x342206+_0x56b177(0x1b3)+_0x57defa),_0x57defa;}static[a118_0x55288b(0x13d)](_0x126883){const _0x8ca4bc=a118_0x55288b;if(_0x126883){if(!fs[_0x8ca4bc(0x1ad)](_0x126883))return[];return JSON[_0x8ca4bc(0x106)](fs[_0x8ca4bc(0x196)](_0x126883)[_0x8ca4bc(0x19f)]());}}static async[a118_0x55288b(0x155)](_0x3af9fb=a118_0x55288b(0x174),_0x13fe76=null){const _0x31ac9d=a118_0x55288b,_0x620d48={'DAIuv':function(_0x53dfc3,_0x4931a3){return _0x53dfc3(_0x4931a3);}};if(!this['started'])return;await _0x620d48[_0x31ac9d(0x121)](sleep,0x1e),this[_0x31ac9d(0x168)][_0x31ac9d(0x16c)](),this['started']=![],this[_0x31ac9d(0x197)](this[_0x31ac9d(0x127)]);const _0x3e55c0=this[_0x31ac9d(0x165)](this[_0x31ac9d(0x127)]),_0x23086b=path[_0x31ac9d(0x12d)](process['cwd'](),_0x3af9fb);fs[_0x31ac9d(0x1a0)](_0x23086b,_0x3e55c0,_0x3e387c=>{const _0x66a0ca=_0x31ac9d;if(_0x3e387c){_0x620d48[_0x66a0ca(0x121)](debug,_0x66a0ca(0x16d)+_0x3e387c[_0x66a0ca(0x19f)]());return;}_0x620d48[_0x66a0ca(0x121)](debug,_0x66a0ca(0x188)+_0x23086b);});if(_0x13fe76)return this[_0x31ac9d(0x176)](this[_0x31ac9d(0x127)],_0x13fe76);}static[a118_0x55288b(0x165)](_0x3ca0da){const _0x2146a3=a118_0x55288b,_0x2183fc={};_0x2183fc[_0x2146a3(0x189)]='<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>',_0x2183fc[_0x2146a3(0x1a7)]=_0x2146a3(0x190),_0x2183fc[_0x2146a3(0x178)]='<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>',_0x2183fc[_0x2146a3(0x198)]=_0x2146a3(0x1b2);const _0x70804b=_0x2183fc;let _0x2982ac=_0x70804b[_0x2146a3(0x189)];return _0x2982ac+=_0x70804b[_0x2146a3(0x1a7)],_0x2982ac+=_0x70804b['BSeyl'],_0x3ca0da[_0x2146a3(0x13c)](_0x333bf4=>{const _0x45e5b7=_0x2146a3;_0x2982ac+=_0x45e5b7(0x14f)+_0x333bf4[_0x45e5b7(0x17c)]+_0x45e5b7(0x123)+_0x333bf4['duration']+_0x45e5b7(0x1b1);}),_0x2982ac+=_0x70804b[_0x2146a3(0x198)],_0x2982ac;}static['generateJSON'](_0x22bd68){const _0x20a291=a118_0x55288b;if(!this[_0x20a291(0x149)])return;const _0x483c15={};_0x22bd68[_0x20a291(0x1a2)](_0x3d6fc6=>{const _0x29fc83=_0x20a291;!_0x483c15[_0x3d6fc6[_0x29fc83(0x17c)]]&&(_0x483c15[_0x3d6fc6[_0x29fc83(0x17c)]]=0x0),_0x483c15[_0x3d6fc6[_0x29fc83(0x17c)]]+=_0x3d6fc6[_0x29fc83(0x12b)];});const _0x33da74=Object['entries'](_0x483c15)[_0x20a291(0x1a2)](([_0x5e9e19,_0x3af7fa])=>{const _0x40c4ed=_0x20a291,_0x4c5b10={};return _0x4c5b10['name']=_0x5e9e19,_0x4c5b10[_0x40c4ed(0x12b)]=_0x3af7fa,_0x4c5b10;});fs[_0x20a291(0x186)](this[_0x20a291(0x149)],JSON['stringify'](_0x33da74));}static[a118_0x55288b(0x166)](){const _0x405022=a118_0x55288b,_0x3ac090={};_0x3ac090[_0x405022(0x139)]=function(_0x31ac9b,_0x3e60c1){return _0x31ac9b===_0x3e60c1;},_0x3ac090[_0x405022(0x18c)]=_0x405022(0x160);const _0xef90ac=_0x3ac090;return!_0xef90ac['leCYH'](process[_0x405022(0x108)][_0x405022(0x1a8)],_0xef90ac[_0x405022(0x18c)]);}static['measure'](_0x490c66,_0x17be79,_0x17e26c=null,_0x195bca={},_0x2ac939=null){const _0x506d57=a118_0x55288b,_0x32673c={'kHhfP':function(_0x3cc169,_0x11c94c){return _0x3cc169(_0x11c94c);},'tUfLR':function(_0x22f24f,_0x43a83e){return _0x22f24f instanceof _0x43a83e;}};try{if(this[_0x506d57(0x11a)]&&this[_0x506d57(0x166)]()){let _0x43d57b=_0x490c66;_0x17e26c&&(_0x43d57b=_0x490c66+'['+JSON[_0x506d57(0x113)](_0x17e26c)+']');PerformanceTester['start'](_0x43d57b),this['details']&&(this['details'][_0x43d57b]=_0x195bca);try{const _0x1b46b8=_0x17be79['apply'](null,_0x2ac939);if(_0x32673c['tUfLR'](_0x1b46b8,Promise))return new Promise((_0x2684e3,_0x461251)=>{const _0x2cb1d1=_0x506d57;_0x1b46b8[_0x2cb1d1(0x179)](_0x3779a=>{const _0x292610=_0x2cb1d1;PerformanceTester[_0x292610(0x18d)](_0x43d57b),_0x32673c[_0x292610(0x1a6)](_0x2684e3,_0x3779a);})[_0x2cb1d1(0x192)](_0x47b3e5=>{const _0x22e4b0=_0x2cb1d1;PerformanceTester['end'](_0x43d57b,![],util[_0x22e4b0(0x171)](_0x47b3e5)),_0x32673c[_0x22e4b0(0x1a6)](_0x461251,_0x47b3e5);});});;return PerformanceTester[_0x506d57(0x18d)](_0x43d57b),_0x1b46b8;}catch(_0x7075c){PerformanceTester['end'](_0x43d57b,![],util[_0x506d57(0x171)](_0x7075c));throw _0x7075c;}};return _0x17be79[_0x506d57(0x126)](null,_0x2ac939);}catch(_0x536a4d){return logger[_0x506d57(0x183)](_0x506d57(0x10b)+(_0x536a4d[_0x506d57(0x11d)]||_0x536a4d['message']||_0x536a4d)),_0x17be79[_0x506d57(0x126)](null,_0x2ac939);}}static[a118_0x55288b(0x117)](_0x42103a,_0x547b70,_0x224d7f={}){const _0x3edf5f=a118_0x55288b,_0x29c5f6={'lJCVA':function(_0x15ad13){return _0x15ad13();},'APhrF':function(_0x5692e1){return _0x5692e1();}},_0x50b53b=this;return _0x224d7f[_0x3edf5f(0x162)]=_0x29c5f6['lJCVA'](getProcessId),_0x224d7f[_0x3edf5f(0x17d)]=_0x29c5f6['APhrF'](getTestName),_0x224d7f[_0x3edf5f(0x10c)]=global[_0x3edf5f(0x1b0)]&&global[_0x3edf5f(0x1b0)][_0x3edf5f(0x14a)],function(){const _0x4cc481=_0x3edf5f,_0x30b79c=[_0x42103a,_0x547b70,null,_0x224d7f][_0x4cc481(0x1b4)](arguments);return _0x50b53b[_0x4cc481(0x15b)][_0x4cc481(0x126)](_0x50b53b,_0x30b79c);};}static['getCleanedPerfEvents'](){const _0x4a8c76=a118_0x55288b,_0x55d4c9=/(^.*)\[(.*)\]$/,_0x61e53a={},_0x2110bd={},_0x10f006=[],_0xd34e47=this[_0x4a8c76(0x193)]['splice'](0x0,this[_0x4a8c76(0x193)][_0x4a8c76(0x138)]);for(const _0x4f7e8c of _0xd34e47){const _0x2d0a38=_0x4f7e8c[_0x4a8c76(0x17c)][_0x4a8c76(0x1aa)](_0x55d4c9),_0x3e0d65=Object[_0x4a8c76(0x144)]({},_0x4f7e8c);_0x2d0a38&&(_0x3e0d65['name']=_0x2d0a38[0x1],_0x3e0d65[_0x4a8c76(0x15c)]=JSON['parse'](_0x2d0a38[0x2])),_0x10f006[_0x4a8c76(0x185)](_0x3e0d65);}return _0x10f006;}static[a118_0x55288b(0x163)](){const _0x28fbac=a118_0x55288b,_0x118a1a={'qyEQS':function(_0x5a59bc){return _0x5a59bc();},'YfsUK':function(_0x441371,_0x14a1da){return _0x441371+_0x14a1da;},'IlCEx':_0x28fbac(0x17b),'CEppE':function(_0xa7bd59,_0x5c8e68){return _0xa7bd59===_0x5c8e68;},'oJGAk':function(_0x16d06d,_0xf64881){return _0x16d06d+_0xf64881;}};try{this[_0x28fbac(0x118)]=path['join'](_0x118a1a[_0x28fbac(0x182)](getLogDir),this[_0x28fbac(0x18b)]);if(fs[_0x28fbac(0x1ad)](this[_0x28fbac(0x118)])){const _0x27a90a=fs[_0x28fbac(0x14b)](this[_0x28fbac(0x118)]);for(const _0xe3e6fe of _0x27a90a){fs[_0x28fbac(0x15d)](path[_0x28fbac(0x12d)](this[_0x28fbac(0x118)],_0xe3e6fe));}}}catch(_0x24c09a){logger['debug'](_0x118a1a[_0x28fbac(0x12c)](_0x118a1a[_0x28fbac(0x122)],_0x24c09a));}if(_0x118a1a[_0x28fbac(0x159)](this[_0x28fbac(0x193)][_0x28fbac(0x138)],0x0))return;const _0x572c1b=this[_0x28fbac(0x1ab)](),_0xd966e6=JSON['stringify'](_0x572c1b),_0x597b0a=_0x118a1a[_0x28fbac(0x199)](_0xd966e6['slice'](0x1,-0x1),',');fs['appendFileSync'](this['jsonReportFileName'],_0x597b0a);}static async[a118_0x55288b(0x187)](){const _0x18e579=a118_0x55288b,_0x25413c={'qzTWx':function(_0x15b5b3){return _0x15b5b3();},'DfxkG':function(_0x1bbf81,_0x58a900){return _0x1bbf81===_0x58a900;},'ktEYf':_0x18e579(0x10a),'PpigD':_0x18e579(0x16f),'TZEpp':_0x18e579(0x110),'OODFh':function(_0x49959c,_0x3446ce){return _0x49959c+_0x3446ce;},'WfXpD':'Error\x20processing\x20key-metrics.json:\x20%s','aHSBP':'key-metrics.json\x20file\x20not\x20found,\x20skipping\x20processing\x20for\x20event\x20for\x20cli.','PHdts':_0x18e579(0x135),'ubhOq':function(_0x485364,_0x1b43a4){return _0x485364>_0x1b43a4;}};this[_0x18e579(0x118)]=path[_0x18e579(0x12d)](_0x25413c[_0x18e579(0x10f)](getLogDir),this[_0x18e579(0x18b)]);if(!this[_0x18e579(0x11a)]||_0x25413c[_0x18e579(0x142)](this[_0x18e579(0x193)]['length'],0x0))return[];if(!fs[_0x18e579(0x1ad)](this[_0x18e579(0x118)]))return this['_measureEvents'];const _0x32f6cd=(await fsPromise[_0x18e579(0x17e)](this[_0x18e579(0x118)]))[_0x18e579(0x1a2)](_0x16cd17=>path['resolve'](this[_0x18e579(0x118)],_0x16cd17));try{const _0xd3e7da=path['dirname'](this[_0x18e579(0x118)]),_0x4c804f=path[_0x18e579(0x12d)](_0xd3e7da,_0x25413c[_0x18e579(0x184)]);if(fs[_0x18e579(0x1ad)](_0x4c804f))try{await fsPromise['access'](_0x4c804f,fs[_0x18e579(0x107)]['F_OK']);const _0x582dc9=await fsPromise[_0x18e579(0x143)](_0x4c804f,_0x25413c[_0x18e579(0x180)]),_0x316745=JSON[_0x18e579(0x106)](_0x582dc9),_0x3ef689=path['join'](this[_0x18e579(0x118)],_0x25413c[_0x18e579(0x1a5)]);let _0x2a52ee='';Array['isArray'](_0x316745)?_0x2a52ee=_0x25413c[_0x18e579(0x133)](_0x316745['map'](_0x37a364=>JSON[_0x18e579(0x113)](_0x37a364))[_0x18e579(0x12d)](','),','):_0x2a52ee=_0x25413c[_0x18e579(0x133)](JSON[_0x18e579(0x113)](_0x316745),','),await fsPromise['writeFile'](_0x3ef689,_0x2a52ee),_0x32f6cd[_0x18e579(0x185)](_0x3ef689),await fsPromise[_0x18e579(0x134)](_0x4c804f);}catch(_0x422471){logger[_0x18e579(0x15a)](util[_0x18e579(0x171)](_0x25413c[_0x18e579(0x112)],_0x422471[_0x18e579(0x11d)]||_0x422471[_0x18e579(0x156)]||_0x422471));}else logger[_0x18e579(0x15a)](_0x25413c['aHSBP']);}catch(_0x2f103a){logger[_0x18e579(0x15a)](util[_0x18e579(0x171)](_0x25413c[_0x18e579(0x1af)],_0x2f103a[_0x18e579(0x11d)]||_0x2f103a['message']||_0x2f103a));}let _0x11ab33=(await Promise[_0x18e579(0x153)](_0x32f6cd['map'](_0x4d712d=>fsPromise[_0x18e579(0x143)](_0x4d712d,_0x18e579(0x16f)))))['map'](_0x5806c2=>'['+_0x5806c2[_0x18e579(0x10e)](0x0,-0x1)+']')[_0x18e579(0x1a2)](_0x47b976=>JSON['parse'](_0x47b976))['flat']();return _0x25413c[_0x18e579(0x191)](this['_measureEvents'][_0x18e579(0x138)],0x0)&&(_0x11ab33=_0x11ab33[_0x18e579(0x1b4)](this[_0x18e579(0x1ab)]())),this[_0x18e579(0x168)][_0x18e579(0x16c)](),_0x11ab33;}static['pushErrors'](){const _0x38b775=a118_0x55288b,_0x5b15ea={};_0x5b15ea[_0x38b775(0x116)]=function(_0x3c274a,_0x53e624){return _0x3c274a===_0x53e624;},_0x5b15ea[_0x38b775(0x11c)]=function(_0x42f2c6,_0x3cb72a){return _0x42f2c6+_0x3cb72a;};const _0x26f64b=_0x5b15ea;if(_0x26f64b['DckwZ'](this[_0x38b775(0x140)][_0x38b775(0x138)],0x0))return;const _0x28d4f7=JSON['stringify'](this[_0x38b775(0x140)]),_0x5289f4=_0x26f64b[_0x38b775(0x11c)](_0x28d4f7[_0x38b775(0x10e)](0x1,-0x1),',');fs['appendFileSync'](this[_0x38b775(0x13e)],_0x5289f4);}static[a118_0x55288b(0x15f)](){const _0x13520a=a118_0x55288b,_0x22477f={};_0x22477f[_0x13520a(0x17a)]=function(_0x4dc8fb,_0x20cebd){return _0x4dc8fb>_0x20cebd;};const _0xbaa899=_0x22477f;if(this[_0x13520a(0x129)]){if(!fs[_0x13520a(0x1ad)](this[_0x13520a(0x129)]))return this['_errorEvents'];let _0x270421=fs['readFileSync'](this[_0x13520a(0x129)])[_0x13520a(0x19f)]();_0x270421='['+_0x270421[_0x13520a(0x10e)](0x0,-0x1)+']';let _0x5021ed=JSON[_0x13520a(0x106)](_0x270421);return _0xbaa899[_0x13520a(0x17a)](this[_0x13520a(0x140)]['length'],0x0)&&(_0x5021ed=_0x5021ed[_0x13520a(0x1b4)](this['_errorEvents'])),fs[_0x13520a(0x15d)](this[_0x13520a(0x129)]),_0x5021ed;}}static[a118_0x55288b(0x173)](_0x198cdc){const _0x5dd9fb=a118_0x55288b;if(!this[_0x5dd9fb(0x166)]())return;this[_0x5dd9fb(0x140)][_0x5dd9fb(0x185)]({'message':_0x198cdc[_0x5dd9fb(0x156)],'trace':_0x198cdc[_0x5dd9fb(0x11d)],'code':_0x198cdc['code']||null,'time':new Date()});}static[a118_0x55288b(0x194)](){const _0x26a0e8=a118_0x55288b;try{if(!this['isEnabled']())return;this[_0x26a0e8(0x168)][_0x26a0e8(0x16c)](),this[_0x26a0e8(0x163)](),this['pushErrors']();}catch(_0x4e9c3c){logger[_0x26a0e8(0x183)](_0x26a0e8(0x158)+util[_0x26a0e8(0x171)](_0x4e9c3c));}}static async[a118_0x55288b(0x12e)](){const _0x182b14=a118_0x55288b,_0xc3835f={'wEKXt':function(_0x1e84ce,_0x597113){return _0x1e84ce(_0x597113);}};await _0xc3835f[_0x182b14(0x120)](sleep,0x1e);const _0x2a22a6=await this[_0x182b14(0x187)](),_0x33eecf=this[_0x182b14(0x15f)]();if(!this[_0x182b14(0x166)]()){const _0x204daa={};return _0x204daa[_0x182b14(0x14d)]=[],_0x204daa[_0x182b14(0x152)]=[],_0x204daa;}const _0x355131={};return _0x355131[_0x182b14(0x14d)]=_0x2a22a6,_0x355131['errors']=_0x33eecf,_0x355131;}static[a118_0x55288b(0x130)](_0x5fd58c){const _0x24a629=a118_0x55288b,_0x439de6={};_0x439de6['ZgEHR']=function(_0x2fb5f5,_0x38fd7c){return _0x2fb5f5+_0x38fd7c;},_0x439de6[_0x24a629(0x13f)]='-start';const _0x2d15aa=_0x439de6,_0x4ddbf8=_0x2d15aa[_0x24a629(0x13b)](_0x5fd58c,_0x2d15aa['IfHwG']);if(this['eventsMap'][_0x4ddbf8])return;performance[_0x24a629(0x164)](_0x4ddbf8),this['eventsMap'][_0x4ddbf8]=0x1;}static['end'](_0xdb67a0,_0x3d2836=!![],_0x201b0b=null,_0x2b5d80={}){const _0x5345d0=a118_0x55288b,_0x1803ac={'zrYDy':function(_0x11a236,_0x26adbc){return _0x11a236+_0x26adbc;},'yPaan':_0x5345d0(0x18a),'RkLlY':_0x5345d0(0x119),'SFHlm':function(_0x28bdee,_0x3d930e){return _0x28bdee+_0x3d930e;},'fUcIQ':function(_0x56f80e){return _0x56f80e();},'tVMsP':function(_0x43b65f){return _0x43b65f();}};performance[_0x5345d0(0x164)](_0x1803ac[_0x5345d0(0x1a1)](_0xdb67a0,_0x1803ac[_0x5345d0(0x128)])),performance['measure'](_0xdb67a0,_0x1803ac[_0x5345d0(0x1a1)](_0xdb67a0,_0x1803ac[_0x5345d0(0x148)]),_0x1803ac['SFHlm'](_0xdb67a0,_0x1803ac[_0x5345d0(0x128)]));const _0x11d0d6={};_0x11d0d6[_0x5345d0(0x16a)]=_0x3d2836,_0x11d0d6[_0x5345d0(0x147)]=_0x201b0b,this['details'][_0xdb67a0]=Object['assign'](_0x11d0d6,Object[_0x5345d0(0x144)](Object[_0x5345d0(0x144)]({'worker':_0x1803ac[_0x5345d0(0x12f)](getProcessId),'platform':global['__platformCaps']&&global[_0x5345d0(0x1b0)]['index'],'testName':_0x1803ac[_0x5345d0(0x18e)](getTestName)},_0x2b5d80),this['details'][_0xdb67a0]||{}));}}module[a118_0x55288b(0x19a)]=PerformanceTester;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a119_0x59587d=a119_0x4dfb;(function(_0x44bc5a,_0x17a8be){const _0x16b01f=a119_0x4dfb,_0x376942=_0x44bc5a();while(!![]){try{const _0x113d2f=parseInt(_0x16b01f(0x1dd))/0x1+-parseInt(_0x16b01f(0x1e8))/0x2*(-parseInt(_0x16b01f(0x222))/0x3)+-parseInt(_0x16b01f(0x1da))/0x4+parseInt(_0x16b01f(0x20c))/0x5+-parseInt(_0x16b01f(0x218))/0x6+parseInt(_0x16b01f(0x20b))/0x7+-parseInt(_0x16b01f(0x217))/0x8*(parseInt(_0x16b01f(0x215))/0x9);if(_0x113d2f===_0x17a8be)break;else _0x376942['push'](_0x376942['shift']());}catch(_0x2517ce){_0x376942['push'](_0x376942['shift']());}}}(a119_0xbb33,0x542fd));const path=require(a119_0x59587d(0x1ff)),util=require(a119_0x59587d(0x234)),{importFileFromPWCore}=require(a119_0x59587d(0x221)),helper=require(a119_0x59587d(0x221)),logger=require('./logger')['winstonLogger'],W3CMapping=require(a119_0x59587d(0x1e1))[a119_0x59587d(0x1e0)](),constants=require('../bin/utils/constants'),BrowserstackCLI=require(a119_0x59587d(0x1d9)),CLIUtils=require(a119_0x59587d(0x200));let GrpcClient;function a119_0xbb33(){const _0x386c75=['416511twseXo','setBrowserstackConfig','getBrowserTypePath\x20is\x20deprecated,\x20use\x20importFileFromPWCore\x20instead','W3CMapping','./w3cMapping','client','Error\x20getting\x20modified\x20config\x20from\x20gRPC:\x20','parse','browserName','FRAMEWORKS','browserstack.testhubBuildUuid','74aDVyHa','cucumberjs-pw','getPlaywrightModulePath','uVzIH','config','browserstack.accessibilityOptions.authToken','getBuildProductMap','No\x20usable\x20capabilities\x20found\x20in\x20modified\x20config\x20response','bstack:options','length','BNllr','GPsso','join','bootstrap','__platformCaps','BS_A11Y_JWT','../bin/v2/grpcClient','platformCaps','__accessibilityOptions','isPlaywrightAvailable','hxscd','Unable\x20to\x20merge\x20accessibility\x20capabilities\x20into\x20Playwright\x20URL\x20caps:\x20','browserstack.accessibilityOptions.wcagVersion','path','../bin/v2/cliUtils','AAeKl','NkxKr','GrpcClient\x20not\x20available,\x20skipping\x20modified\x20config\x20request','gAAdC','WGDFH','Error\x20getting\x20Playwright\x20BrowserType:\x20','browserstack.buildProductMap','format','LMMDa','generatePlaywrightUrl','3609067xLXdCk','1980985eWWqBy','error','ccPmU','browserType.js','env','Received\x20modified\x20config\x20from\x20gRPC:\x20','ehWbs','__launchCaps','XsCQc','126YLCFkO','cmtbt','227384hskTSO','2246112PssYqE','Detected\x20Playwright\x20version\x20','RLUiJ','mrPYI','browserstack.accessibilityOptions.scannerVersion','isArray','browser','chrome','mWAsI','./helper','4821sNXXUM','yZXzd','getConfig','use','workers','cQspw','framework','importFileFromPWCore','debug','No\x20modified\x20config\x20received\x20from\x20gRPC','PLAYWRIGHT','rRClK','getPlaywrightBrowserType','pGmLv','convertW3CToJsonWire','setFrameworkDetail','yVeAC','pcKsX','util','capabilities','ZDMsp','getPlaywrightConfig','entries','./testhub/utils','Playwright\x20not\x20available:\x20','Converted\x20W3C\x20caps\x20to\x20JSONWire:\x20','lib','RKHCI','getPlaywrightUrl','RJfXX','IumoI','getInstance','stringify','projects','aQMOe','\x20flow','PdqnA','../bin/v2/browserstackCLI','1082580kzjVFz','CTqdJ','BROWSERSTACK_TESTHUB_UUID'];a119_0xbb33=function(){return _0x386c75;};return a119_0xbb33();}function a119_0x4dfb(_0x342f68,_0x27417){const _0xbb33e4=a119_0xbb33();return a119_0x4dfb=function(_0x4dfbe0,_0x32fb37){_0x4dfbe0=_0x4dfbe0-0x1c8;let _0x4ec598=_0xbb33e4[_0x4dfbe0];return _0x4ec598;},a119_0x4dfb(_0x342f68,_0x27417);}try{GrpcClient=require(a119_0x59587d(0x1f8));}catch(a119_0xb58772){logger['debug']('Could\x20not\x20import\x20GrpcClient:\x20'+a119_0xb58772['message']),GrpcClient=null;}const convertW3CToJsonWire=_0x2e5e75=>{const _0x3195a7=a119_0x59587d,_0x5e143e={};_0x5e143e[_0x3195a7(0x205)]=function(_0x4b5673,_0x3ec69a){return _0x4b5673||_0x3ec69a;},_0x5e143e[_0x3195a7(0x223)]=function(_0x169304,_0x13d826){return _0x169304===_0x13d826;},_0x5e143e[_0x3195a7(0x1d6)]=_0x3195a7(0x1f0),_0x5e143e[_0x3195a7(0x1fc)]=function(_0x5226d7,_0x145d4d){return _0x5226d7===_0x145d4d;},_0x5e143e['lJzwq']=function(_0x5751d,_0x6cc246){return _0x5751d in _0x6cc246;};const _0x13c658=_0x5e143e,_0xb293cb={};for(const [_0x2ab61e,_0x579c21]of Object[_0x3195a7(0x1ca)](_0x13c658[_0x3195a7(0x205)](_0x2e5e75,{}))){if(_0x13c658[_0x3195a7(0x223)](_0x2ab61e,_0x13c658[_0x3195a7(0x1d6)]))continue;let _0x5821cc=![];for(const [_0x248f32,_0x41c1e2]of Object[_0x3195a7(0x1ca)](W3CMapping)){if(_0x13c658['yZXzd'](_0x2ab61e,_0x41c1e2)){_0xb293cb[_0x248f32]=_0x579c21,_0x5821cc=!![];break;}}!_0x5821cc&&(_0xb293cb[_0x2ab61e]=_0x579c21);}const _0x236dd6=_0x2e5e75[_0x13c658[_0x3195a7(0x1d6)]]||{};for(const [_0xe991f3,_0x4d1efc]of Object[_0x3195a7(0x1ca)](_0x236dd6)){let _0x6f80e=![];for(const [_0x2ca6e9,_0x4a1163]of Object[_0x3195a7(0x1ca)](W3CMapping)){if(_0x13c658[_0x3195a7(0x1fc)](_0xe991f3,_0x4a1163)){_0xb293cb[_0x2ca6e9]=_0x4d1efc,_0x6f80e=!![];break;}}!_0x6f80e&&!_0x13c658['lJzwq'](_0xe991f3,_0xb293cb)&&(_0xb293cb[_0xe991f3]=_0x4d1efc);}return logger[_0x3195a7(0x22a)](_0x3195a7(0x1cd)+JSON[_0x3195a7(0x1d4)](_0xb293cb)),_0xb293cb;},getModifiedConfigFromCLI=async _0x3f12fe=>{const _0x428144=a119_0x59587d,_0x2efa33={};_0x2efa33[_0x428144(0x1db)]=_0x428144(0x203),_0x2efa33['mqikE']=_0x428144(0x1e9),_0x2efa33[_0x428144(0x1cf)]='Requesting\x20modified\x20Playwright\x20config\x20from\x20gRPC\x20for\x20cucumberjs-pw',_0x2efa33[_0x428144(0x1f3)]=_0x428144(0x22b),_0x2efa33[_0x428144(0x22f)]=function(_0xd8aa1d,_0x4b89aa){return _0xd8aa1d>_0x4b89aa;},_0x2efa33[_0x428144(0x227)]=_0x428144(0x1ef);const _0x33da36=_0x2efa33;try{if(!GrpcClient)return logger['debug'](_0x33da36[_0x428144(0x1db)]),null;const _0x5a1581={};_0x5a1581[_0x428144(0x235)]=_0x3f12fe,_0x5a1581[_0x428144(0x228)]=_0x33da36['mqikE'],_0x5a1581[_0x428144(0x226)]=0x1,_0x5a1581[_0x428144(0x1d5)]=[];const _0x1e7c3b=_0x5a1581;logger['debug'](_0x33da36[_0x428144(0x1cf)]);const _0x466822={};_0x466822['playwrightConfigObject']=_0x1e7c3b;const _0xa3aef4=await GrpcClient[_0x428144(0x1d3)]()[_0x428144(0x1c9)](_0x466822);if(!_0xa3aef4[_0x428144(0x224)]())return logger[_0x428144(0x22a)](_0x33da36[_0x428144(0x1f3)]),null;const _0x517756=JSON[_0x428144(0x1e4)](_0xa3aef4['getConfig']());logger[_0x428144(0x22a)](_0x428144(0x211)+JSON[_0x428144(0x1d4)](_0x517756));if(_0x517756[_0x428144(0x235)]&&Array[_0x428144(0x21d)](_0x517756[_0x428144(0x235)])&&_0x33da36['pGmLv'](_0x517756['capabilities'][_0x428144(0x1f1)],0x0))return _0x517756[_0x428144(0x235)][0x0];else{if(_0x517756[_0x428144(0x1d5)]&&Array[_0x428144(0x21d)](_0x517756['projects'])&&_0x33da36[_0x428144(0x22f)](_0x517756['projects']['length'],0x0)){const _0x264cf3=_0x517756[_0x428144(0x1d5)][0x0];if(_0x264cf3[_0x428144(0x225)]&&_0x264cf3[_0x428144(0x225)][_0x428144(0x1f9)])return _0x264cf3[_0x428144(0x225)][_0x428144(0x1f9)];}}return logger[_0x428144(0x22a)](_0x33da36[_0x428144(0x227)]),null;}catch(_0xb0348c){logger[_0x428144(0x20d)](_0x428144(0x1e3)+_0xb0348c['message']);throw _0xb0348c;}},generatePlaywrightUrl=(_0x52902b,_0x538063)=>{const _0x3fb805=a119_0x59587d,_0x12a461={'JhKVe':function(_0x4af91f,_0x1e103c){return _0x4af91f!==_0x1e103c;},'gAAdC':function(_0x2f40c7,_0x2a321f){return _0x2f40c7!==_0x2a321f;},'BNllr':function(_0x1bc724,_0x79fa18){return _0x1bc724!==_0x79fa18;},'PdqnA':function(_0x24bc33,_0x44f123){return _0x24bc33!==_0x44f123;},'cpcKt':function(_0x19c74e,_0x186bc1){return _0x19c74e!==_0x186bc1;},'pcKsX':function(_0xc3c19c,_0x4bcc49){return _0xc3c19c(_0x4bcc49);},'XsCQc':function(_0x37d634,_0x116dd8){return _0x37d634||_0x116dd8;},'ccPmU':_0x3fb805(0x1ed),'mWAsI':_0x3fb805(0x1fe),'ZhvXB':_0x3fb805(0x21c),'yeFCj':'browserstack.accessibilityOptions.scannerProcessingTimeout','ehWbs':_0x3fb805(0x1e7),'rRClK':_0x3fb805(0x207),'LMMDa':function(_0xb8ec33,_0x32fe6f){return _0xb8ec33+_0x32fe6f;}},_0xcde051=helper[_0x3fb805(0x1d0)](_0x52902b),_0x4cd882=_0x12a461[_0x3fb805(0x233)](convertW3CToJsonWire,_0x538063);try{const _0x25fb22=[_0x12a461[_0x3fb805(0x214)](_0x538063,{}),global[_0x3fb805(0x213)]||{},global[_0x3fb805(0x1f6)]||{},global[_0x3fb805(0x1fa)]||{}],_0x1ef172=_0x1603f2=>{const _0x54322f=_0x3fb805;if(_0x12a461['JhKVe'](_0x4cd882[_0x1603f2],undefined)&&_0x12a461[_0x54322f(0x204)](_0x4cd882[_0x1603f2],null)&&_0x12a461[_0x54322f(0x1f2)](_0x4cd882[_0x1603f2],''))return;for(const _0x362083 of _0x25fb22){if(_0x362083&&_0x12a461[_0x54322f(0x1d8)](_0x362083[_0x1603f2],undefined)&&_0x12a461['PdqnA'](_0x362083[_0x1603f2],null)&&_0x12a461['cpcKt'](_0x362083[_0x1603f2],'')){_0x4cd882[_0x1603f2]=_0x362083[_0x1603f2];return;}}};_0x12a461['pcKsX'](_0x1ef172,_0x12a461[_0x3fb805(0x20e)]),_0x12a461[_0x3fb805(0x233)](_0x1ef172,_0x12a461[_0x3fb805(0x220)]),_0x12a461[_0x3fb805(0x233)](_0x1ef172,_0x12a461['ZhvXB']),_0x12a461['pcKsX'](_0x1ef172,_0x12a461['yeFCj']),!_0x4cd882[_0x12a461[_0x3fb805(0x20e)]]&&process[_0x3fb805(0x210)][_0x3fb805(0x1f7)]&&(_0x4cd882[_0x12a461[_0x3fb805(0x20e)]]=process[_0x3fb805(0x210)][_0x3fb805(0x1f7)]);}catch(_0x3ab291){logger[_0x3fb805(0x22a)](_0x3fb805(0x1fd)+util[_0x3fb805(0x208)](_0x3ab291));}return _0x4cd882[_0x12a461[_0x3fb805(0x212)]]=process[_0x3fb805(0x210)][_0x3fb805(0x1dc)],_0x4cd882[_0x12a461[_0x3fb805(0x22d)]]=helper[_0x3fb805(0x1ee)](),_0x12a461[_0x3fb805(0x209)](_0xcde051,_0x12a461[_0x3fb805(0x233)](encodeURIComponent,JSON['stringify'](_0x4cd882)));},getBrowserFromCaps=_0x2c7e14=>{const _0x101d8a=a119_0x59587d,_0x3c11a6={};_0x3c11a6[_0x101d8a(0x1eb)]=_0x101d8a(0x21f);const _0x2e72e1=_0x3c11a6;return _0x2c7e14[_0x101d8a(0x1e5)]||_0x2c7e14[_0x101d8a(0x21e)]||_0x2e72e1['uVzIH'];},isPlaywrightAvailable=()=>{const _0x2a889f=a119_0x59587d,_0x35f702={'tfsNM':_0x2a889f(0x1ce),'mrPYI':_0x2a889f(0x1e2),'ZDMsp':_0x2a889f(0x20f),'IumoI':function(_0x591d1d,_0x1a9627){return _0x591d1d(_0x1a9627);}};try{const _0x593e30=path[_0x2a889f(0x1f4)](_0x35f702['tfsNM'],_0x35f702[_0x2a889f(0x21b)],_0x35f702[_0x2a889f(0x1c8)]),_0x821272=_0x35f702[_0x2a889f(0x1d2)](importFileFromPWCore,_0x593e30);return!!_0x821272;}catch(_0x16f7f1){return logger[_0x2a889f(0x22a)](_0x2a889f(0x1cc)+util[_0x2a889f(0x208)](_0x16f7f1)),![];}},getPlaywrightBrowserType=()=>{const _0x43cf27=a119_0x59587d,_0xe61035={'Znhnr':_0x43cf27(0x1ce),'AAeKl':_0x43cf27(0x1e2),'RLUiJ':'browserType.js','NkxKr':function(_0x35522f,_0x173fb6){return _0x35522f(_0x173fb6);}};try{const _0x166091=path['join'](_0xe61035['Znhnr'],_0xe61035[_0x43cf27(0x201)],_0xe61035[_0x43cf27(0x21a)]),_0x327d4f=_0xe61035[_0x43cf27(0x202)](importFileFromPWCore,_0x166091);return _0x327d4f?_0x327d4f['BrowserType']:null;}catch(_0x36e065){return logger[_0x43cf27(0x22a)](_0x43cf27(0x206)+util['format'](_0x36e065)),null;}},getPlaywrightModulePath=()=>{const _0x5bfbff=a119_0x59587d,_0x325a31={};_0x325a31['cmtbt']='getPlaywrightModulePath\x20is\x20deprecated,\x20use\x20importFileFromPWCore\x20instead';const _0x409392=_0x325a31;return logger['debug'](_0x409392[_0x5bfbff(0x216)]),null;},getBrowserTypePath=()=>{const _0x3a0b58=a119_0x59587d,_0x2f81c5={};_0x2f81c5[_0x3a0b58(0x1d1)]=_0x3a0b58(0x1df);const _0x6ca73a=_0x2f81c5;return logger[_0x3a0b58(0x22a)](_0x6ca73a[_0x3a0b58(0x1d1)]),null;},checkPwandBootstrapCli=async(_0x59d067,_0x18739,_0x427ad0)=>{const _0x3b9cec=a119_0x59587d,_0x1570bf={'XdsZu':function(_0x57b753,_0x1f1cb8){return _0x57b753(_0x1f1cb8);},'TzOjs':_0x3b9cec(0x1cb),'yVeAC':function(_0x38b12e,_0x1433de){return _0x38b12e(_0x1433de);}};if(_0x59d067){const _0x4d74a5=constants[_0x3b9cec(0x1e6)][_0x3b9cec(0x22c)];logger[_0x3b9cec(0x22a)](_0x3b9cec(0x219)+_0x59d067+'\x20for\x20'+_0x18739+_0x3b9cec(0x1d7)),CLIUtils[_0x3b9cec(0x231)](_0x18739,_0x4d74a5);const {getProductMap:_0xe87ec}=_0x1570bf['XdsZu'](require,_0x1570bf['TzOjs']);process[_0x3b9cec(0x210)]['BROWSERSTACK_PRODUCT_MAP']=JSON[_0x3b9cec(0x1d4)](_0x1570bf[_0x3b9cec(0x232)](_0xe87ec,_0x427ad0[_0x3b9cec(0x1ec)])),BrowserstackCLI[_0x3b9cec(0x1d3)]()[_0x3b9cec(0x1de)](_0x427ad0[_0x3b9cec(0x1ec)],_0x427ad0['cliConfig']),await BrowserstackCLI['getInstance']()[_0x3b9cec(0x1f5)]();}},a119_0x1472b7={};a119_0x1472b7[a119_0x59587d(0x230)]=convertW3CToJsonWire,a119_0x1472b7['getModifiedConfigFromCLI']=getModifiedConfigFromCLI,a119_0x1472b7[a119_0x59587d(0x20a)]=generatePlaywrightUrl,a119_0x1472b7['getBrowserFromCaps']=getBrowserFromCaps,a119_0x1472b7[a119_0x59587d(0x1fb)]=isPlaywrightAvailable,a119_0x1472b7[a119_0x59587d(0x22e)]=getPlaywrightBrowserType,a119_0x1472b7[a119_0x59587d(0x1ea)]=getPlaywrightModulePath,a119_0x1472b7['getBrowserTypePath']=getBrowserTypePath,a119_0x1472b7[a119_0x59587d(0x229)]=importFileFromPWCore,a119_0x1472b7['checkPwandBootstrapCli']=checkPwandBootstrapCli,module['exports']=a119_0x1472b7;
|
|
1
|
+
function a119_0x44e0(_0x5d3cc3,_0x3c8ddf){const _0x1d192b=a119_0x1d19();return a119_0x44e0=function(_0x44e041,_0x1bc65e){_0x44e041=_0x44e041-0x18f;let _0x4d5de3=_0x1d192b[_0x44e041];return _0x4d5de3;},a119_0x44e0(_0x5d3cc3,_0x3c8ddf);}const a119_0x1149e9=a119_0x44e0;(function(_0x4a10d7,_0x70af60){const _0x3cb2dd=a119_0x44e0,_0x364f96=_0x4a10d7();while(!![]){try{const _0x5b5784=-parseInt(_0x3cb2dd(0x1e3))/0x1*(-parseInt(_0x3cb2dd(0x1d3))/0x2)+-parseInt(_0x3cb2dd(0x1e8))/0x3*(parseInt(_0x3cb2dd(0x201))/0x4)+parseInt(_0x3cb2dd(0x1e4))/0x5+parseInt(_0x3cb2dd(0x1a0))/0x6+parseInt(_0x3cb2dd(0x1bd))/0x7+-parseInt(_0x3cb2dd(0x198))/0x8+-parseInt(_0x3cb2dd(0x1fd))/0x9*(parseInt(_0x3cb2dd(0x1f6))/0xa);if(_0x5b5784===_0x70af60)break;else _0x364f96['push'](_0x364f96['shift']());}catch(_0x415595){_0x364f96['push'](_0x364f96['shift']());}}}(a119_0x1d19,0xd33a8));function a119_0x1d19(){const _0x184ebc=['747KpkvWg','bootstrap','platformCaps','./helper','70316IopwOX','getBrowserTypePath\x20is\x20deprecated,\x20use\x20importFileFromPWCore\x20instead','convertW3CToJsonWire','capabilities','mBPWa','path','iKffZ','getPlaywrightModulePath\x20is\x20deprecated,\x20use\x20importFileFromPWCore\x20instead','checkPwandBootstrapCli','BPCpB','workers','7647000OVoTjS','\x20flow','browserstack.accessibilityOptions.authToken','CtGzD','getPlaywrightUrl','EoIUk','FMLQl','EUTGX','4981974grGRmg','importFileFromPWCore','\x20for\x20','projects','cucumberjs-pw','join','Playwright\x20not\x20available:\x20','isArray','mSrDY','setFrameworkDetail','getInstance','debug','getPlaywrightBrowserType','BBaaQ','BrowserType','ZEtFH','pZAnL','client','lDtti','../bin/v2/browserstackCLI','bstack:options','__platformCaps','rmtpY','Error\x20getting\x20Playwright\x20BrowserType:\x20','vnMXE','./testhub/utils','env','chrome','avnDb','7309519CVLFap','./logger','FxDJa','rtONA','getBrowserFromCaps','getPlaywrightModulePath','entries','getBuildProductMap','getPlaywrightConfig','RYLSd','framework','W3CMapping','./w3cMapping','EoBAJ','lOcgA','ZOWbu','jYbHl','browserstack.accessibilityOptions.wcagVersion','Unable\x20to\x20merge\x20accessibility\x20capabilities\x20into\x20Playwright\x20URL\x20caps:\x20','jRAAU','exports','browserstack.accessibilityOptions.scannerProcessingTimeout','41134TBKHuD','use','Detected\x20Playwright\x20version\x20','getConfig','cliConfig','playwrightConfigObject','djBFL','__accessibilityOptions','browserType.js','ldUlf','length','browser','RgALE','../bin/v2/cliUtils','stringify','NnlpH','7bgaoVp','6426555DzmHAU','browserstack.accessibilityOptions.scannerVersion','BedjW','Error\x20getting\x20modified\x20config\x20from\x20gRPC:\x20','21mxxUgU','Could\x20not\x20import\x20GrpcClient:\x20','format','config','message','browserstack.buildProductMap','browserName','lkTli','ULMfX','FJxBO','FRAMEWORKS','parse','HGccH','getModifiedConfigFromCLI','163820BaLgkl','isPlaywrightAvailable','FWqtu','winstonLogger','../bin/utils/constants','No\x20modified\x20config\x20received\x20from\x20gRPC','Converted\x20W3C\x20caps\x20to\x20JSONWire:\x20'];a119_0x1d19=function(){return _0x184ebc;};return a119_0x1d19();}const path=require(a119_0x1149e9(0x192)),util=require('util'),{importFileFromPWCore}=require(a119_0x1149e9(0x200)),helper=require(a119_0x1149e9(0x200)),logger=require(a119_0x1149e9(0x1be))[a119_0x1149e9(0x1f9)],W3CMapping=require(a119_0x1149e9(0x1c9))[a119_0x1149e9(0x1c8)](),constants=require(a119_0x1149e9(0x1fa)),BrowserstackCLI=require(a119_0x1149e9(0x1b3)),CLIUtils=require(a119_0x1149e9(0x1e0));let GrpcClient;try{GrpcClient=require('../bin/v2/grpcClient');}catch(a119_0x431bfc){logger[a119_0x1149e9(0x1ab)](a119_0x1149e9(0x1e9)+a119_0x431bfc[a119_0x1149e9(0x1ec)]),GrpcClient=null;}const convertW3CToJsonWire=_0x3f719f=>{const _0x12e3d0=a119_0x1149e9,_0x22dd77={};_0x22dd77[_0x12e3d0(0x1b0)]=function(_0x1da30f,_0x252311){return _0x1da30f||_0x252311;},_0x22dd77[_0x12e3d0(0x193)]=function(_0x37115f,_0x353770){return _0x37115f===_0x353770;},_0x22dd77[_0x12e3d0(0x1cb)]=_0x12e3d0(0x1b4),_0x22dd77[_0x12e3d0(0x1e2)]=function(_0x42674d,_0xaf09b3){return _0x42674d===_0xaf09b3;},_0x22dd77['fiQCW']=function(_0x83aa36,_0x1e5ef9){return _0x83aa36 in _0x1e5ef9;};const _0x2162b6=_0x22dd77,_0x55050c={};for(const [_0x266ada,_0x12cac7]of Object[_0x12e3d0(0x1c3)](_0x2162b6[_0x12e3d0(0x1b0)](_0x3f719f,{}))){if(_0x2162b6['iKffZ'](_0x266ada,_0x2162b6[_0x12e3d0(0x1cb)]))continue;let _0xe71c6e=![];for(const [_0x49bdd9,_0x3bf683]of Object[_0x12e3d0(0x1c3)](W3CMapping)){if(_0x2162b6['NnlpH'](_0x266ada,_0x3bf683)){_0x55050c[_0x49bdd9]=_0x12cac7,_0xe71c6e=!![];break;}}!_0xe71c6e&&(_0x55050c[_0x266ada]=_0x12cac7);}const _0x4b4676=_0x3f719f[_0x2162b6['lOcgA']]||{};for(const [_0x4c4e68,_0x163a7d]of Object[_0x12e3d0(0x1c3)](_0x4b4676)){let _0x3b24d8=![];for(const [_0x4a6a61,_0x4e7aee]of Object[_0x12e3d0(0x1c3)](W3CMapping)){if(_0x2162b6['iKffZ'](_0x4c4e68,_0x4e7aee)){_0x55050c[_0x4a6a61]=_0x163a7d,_0x3b24d8=!![];break;}}!_0x3b24d8&&!_0x2162b6['fiQCW'](_0x4c4e68,_0x55050c)&&(_0x55050c[_0x4c4e68]=_0x163a7d);}return logger[_0x12e3d0(0x1ab)](_0x12e3d0(0x1fc)+JSON[_0x12e3d0(0x1e1)](_0x55050c)),_0x55050c;},getModifiedConfigFromCLI=async _0x4d5d3c=>{const _0xde9538=a119_0x1149e9,_0x10f6c8={};_0x10f6c8['lDtti']='GrpcClient\x20not\x20available,\x20skipping\x20modified\x20config\x20request',_0x10f6c8[_0xde9538(0x1d0)]=_0xde9538(0x1a4),_0x10f6c8[_0xde9538(0x19d)]='Requesting\x20modified\x20Playwright\x20config\x20from\x20gRPC\x20for\x20cucumberjs-pw',_0x10f6c8['YeuIW']=_0xde9538(0x1fb),_0x10f6c8[_0xde9538(0x1e6)]=function(_0x4c84e5,_0x40f44b){return _0x4c84e5>_0x40f44b;},_0x10f6c8[_0xde9538(0x1f0)]=function(_0x2d403c,_0x6d64c){return _0x2d403c>_0x6d64c;},_0x10f6c8[_0xde9538(0x1d9)]='No\x20usable\x20capabilities\x20found\x20in\x20modified\x20config\x20response';const _0x1f4687=_0x10f6c8;try{if(!GrpcClient)return logger[_0xde9538(0x1ab)](_0x1f4687[_0xde9538(0x1b2)]),null;const _0x3aaf4f={};_0x3aaf4f[_0xde9538(0x190)]=_0x4d5d3c,_0x3aaf4f[_0xde9538(0x1c7)]=_0x1f4687[_0xde9538(0x1d0)],_0x3aaf4f[_0xde9538(0x197)]=0x1,_0x3aaf4f[_0xde9538(0x1a3)]=[];const _0x350f30=_0x3aaf4f;logger[_0xde9538(0x1ab)](_0x1f4687[_0xde9538(0x19d)]);const _0x5588ac={};_0x5588ac[_0xde9538(0x1d8)]=_0x350f30;const _0x3ff9ba=await GrpcClient['getInstance']()[_0xde9538(0x1c5)](_0x5588ac);if(!_0x3ff9ba[_0xde9538(0x1d6)]())return logger[_0xde9538(0x1ab)](_0x1f4687['YeuIW']),null;const _0x30f572=JSON[_0xde9538(0x1f3)](_0x3ff9ba[_0xde9538(0x1d6)]());logger[_0xde9538(0x1ab)]('Received\x20modified\x20config\x20from\x20gRPC:\x20'+JSON[_0xde9538(0x1e1)](_0x30f572));if(_0x30f572[_0xde9538(0x190)]&&Array['isArray'](_0x30f572['capabilities'])&&_0x1f4687[_0xde9538(0x1e6)](_0x30f572[_0xde9538(0x190)][_0xde9538(0x1dd)],0x0))return _0x30f572[_0xde9538(0x190)][0x0];else{if(_0x30f572[_0xde9538(0x1a3)]&&Array[_0xde9538(0x1a7)](_0x30f572[_0xde9538(0x1a3)])&&_0x1f4687[_0xde9538(0x1f0)](_0x30f572['projects'][_0xde9538(0x1dd)],0x0)){const _0x2aba35=_0x30f572[_0xde9538(0x1a3)][0x0];if(_0x2aba35[_0xde9538(0x1d4)]&&_0x2aba35[_0xde9538(0x1d4)][_0xde9538(0x1ff)])return _0x2aba35[_0xde9538(0x1d4)]['platformCaps'];}}return logger['debug'](_0x1f4687['djBFL']),null;}catch(_0x1d8c48){logger['error'](_0xde9538(0x1e7)+_0x1d8c48[_0xde9538(0x1ec)]);throw _0x1d8c48;}},generatePlaywrightUrl=(_0x2e4aba,_0x25c710)=>{const _0x55c332=a119_0x1149e9,_0x5e8448={'jYbHl':function(_0x1e576d,_0x59100f){return _0x1e576d!==_0x59100f;},'FJxBO':function(_0x366ba3,_0x5e5e06){return _0x366ba3!==_0x5e5e06;},'CtGzD':function(_0x52da48,_0x174ca9){return _0x52da48!==_0x174ca9;},'ldUlf':function(_0x2b278a,_0x16a3d1){return _0x2b278a(_0x16a3d1);},'ZOWbu':function(_0x523268,_0x472c8f){return _0x523268||_0x472c8f;},'mSrDY':_0x55c332(0x19a),'BBaaQ':_0x55c332(0x1ce),'FWqtu':function(_0x4abbda,_0x1f75bd){return _0x4abbda(_0x1f75bd);},'FxDJa':_0x55c332(0x1e5),'SClYh':_0x55c332(0x1d2),'HGccH':'browserstack.testhubBuildUuid','RgALE':_0x55c332(0x1ed),'rtONA':function(_0x2b37d3,_0xfaed68){return _0x2b37d3+_0xfaed68;},'FMLQl':function(_0x35ab27,_0x4e331c){return _0x35ab27(_0x4e331c);}},_0x23d6bd=helper[_0x55c332(0x19c)](_0x2e4aba),_0x712cb2=_0x5e8448['ldUlf'](convertW3CToJsonWire,_0x25c710);try{const _0x5dfff8=[_0x5e8448[_0x55c332(0x1cc)](_0x25c710,{}),global['__launchCaps']||{},global[_0x55c332(0x1b5)]||{},global[_0x55c332(0x1da)]||{}],_0x264924=_0xc106ad=>{const _0x475c16=_0x55c332;if(_0x5e8448[_0x475c16(0x1cd)](_0x712cb2[_0xc106ad],undefined)&&_0x5e8448[_0x475c16(0x1cd)](_0x712cb2[_0xc106ad],null)&&_0x5e8448[_0x475c16(0x1cd)](_0x712cb2[_0xc106ad],''))return;for(const _0x3543cd of _0x5dfff8){if(_0x3543cd&&_0x5e8448['jYbHl'](_0x3543cd[_0xc106ad],undefined)&&_0x5e8448[_0x475c16(0x1f1)](_0x3543cd[_0xc106ad],null)&&_0x5e8448[_0x475c16(0x19b)](_0x3543cd[_0xc106ad],'')){_0x712cb2[_0xc106ad]=_0x3543cd[_0xc106ad];return;}}};_0x5e8448[_0x55c332(0x1dc)](_0x264924,_0x5e8448[_0x55c332(0x1a8)]),_0x5e8448[_0x55c332(0x1dc)](_0x264924,_0x5e8448[_0x55c332(0x1ad)]),_0x5e8448[_0x55c332(0x1f8)](_0x264924,_0x5e8448[_0x55c332(0x1bf)]),_0x5e8448[_0x55c332(0x1dc)](_0x264924,_0x5e8448['SClYh']),!_0x712cb2[_0x5e8448[_0x55c332(0x1a8)]]&&process[_0x55c332(0x1ba)]['BS_A11Y_JWT']&&(_0x712cb2[_0x5e8448[_0x55c332(0x1a8)]]=process['env']['BS_A11Y_JWT']);}catch(_0x478de3){logger[_0x55c332(0x1ab)](_0x55c332(0x1cf)+util[_0x55c332(0x1ea)](_0x478de3));}return _0x712cb2[_0x5e8448[_0x55c332(0x1f4)]]=process[_0x55c332(0x1ba)]['BROWSERSTACK_TESTHUB_UUID'],_0x712cb2[_0x5e8448[_0x55c332(0x1df)]]=helper[_0x55c332(0x1c4)](),_0x5e8448[_0x55c332(0x1c0)](_0x23d6bd,_0x5e8448[_0x55c332(0x19e)](encodeURIComponent,JSON['stringify'](_0x712cb2)));},getBrowserFromCaps=_0x915eea=>{const _0x225635=a119_0x1149e9,_0x5bb5dd={};_0x5bb5dd[_0x225635(0x19f)]=_0x225635(0x1bb);const _0x3d45c6=_0x5bb5dd;return _0x915eea[_0x225635(0x1ee)]||_0x915eea[_0x225635(0x1de)]||_0x3d45c6['EUTGX'];},isPlaywrightAvailable=()=>{const _0x43d68d=a119_0x1149e9,_0x11f076={'jSkCe':'lib','avnDb':'client','GEkeQ':_0x43d68d(0x1db),'RYLSd':function(_0x4f66d0,_0x1b2e79){return _0x4f66d0(_0x1b2e79);}};try{const _0xa9cc50=path[_0x43d68d(0x1a5)](_0x11f076['jSkCe'],_0x11f076[_0x43d68d(0x1bc)],_0x11f076['GEkeQ']),_0xf57eba=_0x11f076[_0x43d68d(0x1c6)](importFileFromPWCore,_0xa9cc50);return!!_0xf57eba;}catch(_0x359035){return logger[_0x43d68d(0x1ab)](_0x43d68d(0x1a6)+util['format'](_0x359035)),![];}},getPlaywrightBrowserType=()=>{const _0x4bc7d5=a119_0x1149e9,_0x347844={'ZEtFH':'lib','mBPWa':_0x4bc7d5(0x1b1),'NKbGS':_0x4bc7d5(0x1db),'rmtpY':function(_0x32fcda,_0x30207d){return _0x32fcda(_0x30207d);}};try{const _0x4c6817=path[_0x4bc7d5(0x1a5)](_0x347844[_0x4bc7d5(0x1af)],_0x347844[_0x4bc7d5(0x191)],_0x347844['NKbGS']),_0x1c2969=_0x347844[_0x4bc7d5(0x1b6)](importFileFromPWCore,_0x4c6817);return _0x1c2969?_0x1c2969[_0x4bc7d5(0x1ae)]:null;}catch(_0x2b1053){return logger['debug'](_0x4bc7d5(0x1b7)+util['format'](_0x2b1053)),null;}},getPlaywrightModulePath=()=>{const _0x9d56d5=a119_0x1149e9,_0xebca55={};_0xebca55[_0x9d56d5(0x1b8)]=_0x9d56d5(0x194);const _0x16a83a=_0xebca55;return logger[_0x9d56d5(0x1ab)](_0x16a83a[_0x9d56d5(0x1b8)]),null;},getBrowserTypePath=()=>{const _0xb67992=a119_0x1149e9,_0x75a014={};_0x75a014[_0xb67992(0x1ef)]=_0xb67992(0x202);const _0x3f5b97=_0x75a014;return logger[_0xb67992(0x1ab)](_0x3f5b97[_0xb67992(0x1ef)]),null;},checkPwandBootstrapCli=async(_0x1abaf4,_0x572474,_0x495e89)=>{const _0x11b86b=a119_0x1149e9,_0x20dd11={'BPCpB':function(_0x4e4995,_0x2ca05c){return _0x4e4995(_0x2ca05c);},'EoBAJ':_0x11b86b(0x1b9)};if(_0x1abaf4){const _0x45fbf6=constants[_0x11b86b(0x1f2)]['PLAYWRIGHT'];logger[_0x11b86b(0x1ab)](_0x11b86b(0x1d5)+_0x1abaf4+_0x11b86b(0x1a2)+_0x572474+_0x11b86b(0x199)),CLIUtils[_0x11b86b(0x1a9)](_0x572474,_0x45fbf6);const {getProductMap:_0x3fdd0f}=_0x20dd11[_0x11b86b(0x196)](require,_0x20dd11[_0x11b86b(0x1ca)]);process[_0x11b86b(0x1ba)]['BROWSERSTACK_PRODUCT_MAP']=JSON['stringify'](_0x20dd11[_0x11b86b(0x196)](_0x3fdd0f,_0x495e89[_0x11b86b(0x1eb)])),BrowserstackCLI['getInstance']()['setBrowserstackConfig'](_0x495e89[_0x11b86b(0x1eb)],_0x495e89[_0x11b86b(0x1d7)]),await BrowserstackCLI[_0x11b86b(0x1aa)]()[_0x11b86b(0x1fe)]();}},a119_0x345022={};a119_0x345022[a119_0x1149e9(0x18f)]=convertW3CToJsonWire,a119_0x345022[a119_0x1149e9(0x1f5)]=getModifiedConfigFromCLI,a119_0x345022['generatePlaywrightUrl']=generatePlaywrightUrl,a119_0x345022[a119_0x1149e9(0x1c1)]=getBrowserFromCaps,a119_0x345022[a119_0x1149e9(0x1f7)]=isPlaywrightAvailable,a119_0x345022[a119_0x1149e9(0x1ac)]=getPlaywrightBrowserType,a119_0x345022[a119_0x1149e9(0x1c2)]=getPlaywrightModulePath,a119_0x345022['getBrowserTypePath']=getBrowserTypePath,a119_0x345022[a119_0x1149e9(0x1a1)]=importFileFromPWCore,a119_0x345022[a119_0x1149e9(0x195)]=checkPwandBootstrapCli,module[a119_0x1149e9(0x1d1)]=a119_0x345022;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a120_0x40a9(_0x5a1040,_0x54ce5d){const _0x299726=a120_0x2997();return a120_0x40a9=function(_0x40a9c8,_0x205088){_0x40a9c8=_0x40a9c8-0x14b;let _0xf7570=_0x299726[_0x40a9c8];return _0xf7570;},a120_0x40a9(_0x5a1040,_0x54ce5d);}const a120_0x37f868=a120_0x40a9;function a120_0x2997(){const _0x55bf74=['worker_threads','15913485nDbFtP','BROWSERSTACK_TEST_REPORTING_DEBUG','1279910hrfOib','145492dzmZdz','UYXtm','getProcessId','259CCoLqw','336138KgNGSD','vbtHx','\x20]\x20','852mNlMmc','GhwqV','4326006UBhCNZ','./test-observability/constants','10HTbGUY','env','][\x20','TEST_REPORTING_ANALYTICS','getGlobal','browserstackTestName','Fndlc','194qKWYNK','264232aMWrGp','dMfAL','14386XCQekr','threadId','75QKfQGz','toISOString','sleep','BROWSERSTACK_OBSERVABILITY_DEBUG','../bin/utils/constants','./globals'];a120_0x2997=function(){return _0x55bf74;};return a120_0x2997();}(function(_0x1c8d35,_0x5c1748){const _0x3f9c27=a120_0x40a9,_0xc78d1a=_0x1c8d35();while(!![]){try{const _0x3e6b45=parseInt(_0x3f9c27(0x162))/0x1*(parseInt(_0x3f9c27(0x165))/0x2)+-parseInt(_0x3f9c27(0x167))/0x3*(-parseInt(_0x3f9c27(0x150))/0x4)+parseInt(_0x3f9c27(0x15b))/0x5*(parseInt(_0x3f9c27(0x159))/0x6)+parseInt(_0x3f9c27(0x153))/0x7*(parseInt(_0x3f9c27(0x163))/0x8)+-parseInt(_0x3f9c27(0x14d))/0x9+-parseInt(_0x3f9c27(0x14f))/0xa+-parseInt(_0x3f9c27(0x154))/0xb*(parseInt(_0x3f9c27(0x157))/0xc);if(_0x3e6b45===_0x5c1748)break;else _0xc78d1a['push'](_0xc78d1a['shift']());}catch(_0x2c761d){_0xc78d1a['push'](_0xc78d1a['shift']());}}}(a120_0x2997,0xdc79c));const worker=require(a120_0x37f868(0x14c)),{fileLogger}=require('./logger'),{consoleHolder}=require(a120_0x37f868(0x15a)),globals=require(a120_0x37f868(0x14b)),constants=require(a120_0x37f868(0x16b));exports[a120_0x37f868(0x152)]=()=>{const _0x36125a=a120_0x37f868;return process['pid']+'-'+worker[_0x36125a(0x166)];},exports['getTestName']=()=>{const _0x1bfd20=a120_0x37f868,_0xf791f6={};_0xf791f6[_0x1bfd20(0x158)]=_0x1bfd20(0x160);const _0x344052=_0xf791f6;return globals[_0x1bfd20(0x15f)](_0x344052[_0x1bfd20(0x158)]);},exports[a120_0x37f868(0x169)]=(_0x4eeeac=0x64)=>new Promise(_0xece523=>setTimeout(_0xece523,_0x4eeeac)),exports['debug']=_0xbfd0d2=>{const _0x15b80c=a120_0x37f868,_0x3b2bed={};_0x3b2bed[_0x15b80c(0x164)]=function(_0x408b76,_0x22377a){return _0x408b76===_0x22377a;},_0x3b2bed['vbtHx']='true',_0x3b2bed['UYXtm']=function(_0x2d324c,_0x5e58fc){return _0x2d324c===_0x5e58fc;},_0x3b2bed[_0x15b80c(0x161)]=function(_0x17d26e,_0x50dcd8){return _0x17d26e===_0x50dcd8;};const _0x3f6466=_0x3b2bed;fileLogger['debug']('['+new Date()['toISOString']()+_0x15b80c(0x15d)+constants[_0x15b80c(0x15e)]+_0x15b80c(0x156)+_0xbfd0d2),(_0x3f6466[_0x15b80c(0x164)](process[_0x15b80c(0x15c)][_0x15b80c(0x14e)],_0x3f6466['vbtHx'])||_0x3f6466[_0x15b80c(0x151)](process['env'][_0x15b80c(0x14e)],'1')||_0x3f6466['Fndlc'](process['env']['BROWSERSTACK_OBSERVABILITY_DEBUG'],_0x3f6466[_0x15b80c(0x155)])||_0x3f6466['dMfAL'](process[_0x15b80c(0x15c)][_0x15b80c(0x16a)],'1'))&&consoleHolder['log']('\x0a['+new Date()[_0x15b80c(0x168)]()+_0x15b80c(0x15d)+constants['TEST_REPORTING_ANALYTICS']+'\x20]\x20'+_0xbfd0d2+'\x0a');};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a121_0x559ef2=a121_0x2f69;(function(_0x1a9a25,_0x404e3b){const _0x48dce0=a121_0x2f69,_0x3539f2=_0x1a9a25();while(!![]){try{const _0x4cc979=parseInt(_0x48dce0(0xaf))/0x1+-parseInt(_0x48dce0(0xb2))/0x2+parseInt(_0x48dce0(0xc8))/0x3*(parseInt(_0x48dce0(0xb0))/0x4)+-parseInt(_0x48dce0(0xc7))/0x5*(parseInt(_0x48dce0(0xa5))/0x6)+-parseInt(_0x48dce0(0xcf))/0x7+parseInt(_0x48dce0(0xbe))/0x8*(parseInt(_0x48dce0(0xb6))/0x9)+parseInt(_0x48dce0(0xa7))/0xa;if(_0x4cc979===_0x404e3b)break;else _0x3539f2['push'](_0x3539f2['shift']());}catch(_0x57073d){_0x3539f2['push'](_0x3539f2['shift']());}}}(a121_0x5b86,0xad899));const http=require(a121_0x559ef2(0xbf)),https=require(a121_0x559ef2(0xaa)),monkeypatch=require('monkeypatch');function spy(_0x25bcec){const _0x14d1b4=a121_0x559ef2,_0xf0b564={'vUVWd':function(_0x207bc2,_0x5f292f,_0x39081e){return _0x207bc2(_0x5f292f,_0x39081e);},'LKdgo':function(_0x411089,_0x1ed0f6){return _0x411089-_0x1ed0f6;},'NoaaF':_0x14d1b4(0xb3),'lLZSL':function(_0x2aa000,..._0x36473a){return _0x2aa000(..._0x36473a);},'jPQfN':function(_0x5a41cb,_0x12506e){return _0x5a41cb instanceof _0x12506e;},'oyLwv':function(_0x5d53c5,_0x353310){return _0x5d53c5===_0x353310;},'sDfwk':'object','AJRhr':'response','UkqEN':_0x14d1b4(0xc3),'DwAsQ':function(_0x521bb3,_0x5afac6,_0x187083,_0x4bb245){return _0x521bb3(_0x5afac6,_0x187083,_0x4bb245);},'NlqnR':_0x14d1b4(0xad),'ZdvCY':'request','QcTVJ':function(_0x578c42,_0x2b938a,_0x2276b6,_0x34c9ee){return _0x578c42(_0x2b938a,_0x2276b6,_0x34c9ee);}},_0x1f0b73=function(){const _0x503916=_0x14d1b4,_0x3172ff={'csdXd':function(_0x51eac0,_0x104f9d){const _0xf0b601=a121_0x2f69;return _0xf0b564[_0xf0b601(0xc9)](_0x51eac0,_0x104f9d);},'sBsDE':function(_0x44d61b,_0x362093){const _0x10783a=a121_0x2f69;return _0xf0b564[_0x10783a(0xa4)](_0x44d61b,_0x362093);},'WMlPX':_0xf0b564['sDfwk'],'zZuaB':_0xf0b564[_0x503916(0xac)]},_0x147be3=arguments[0x0],_0x80db9c=Array[_0x503916(0xa0)]['slice'][_0x503916(0xcb)](arguments,0x1),_0x416156=_0x147be3[_0x503916(0xcd)](this,_0x80db9c);let _0x5038d2=Date['now'](),_0x2ab88f;const _0x34a835={};_0x80db9c[_0x503916(0xc4)](_0x123b6c=>{const _0x27ecfc=_0x503916;if(_0x3172ff['csdXd'](_0x123b6c,URL)){const _0x193b18={};_0x193b18[_0x27ecfc(0xa6)]=_0x123b6c,Object['assign'](_0x34a835,_0x193b18);}else _0x3172ff[_0x27ecfc(0xa8)](typeof _0x123b6c,_0x3172ff[_0x27ecfc(0xbc)])&&Object[_0x27ecfc(0xab)](_0x34a835,_0x123b6c);});const _0x58e85b=_0x57e5a8=>{const _0x32bf8a=_0x503916,_0x49b2c9={};_0x49b2c9[_0x32bf8a(0xbb)]=_0x34a835[_0x32bf8a(0xbb)]||_0x34a835['hostname']||_0x34a835[_0x32bf8a(0xa6)]&&(_0x34a835['url']['host']||_0x34a835[_0x32bf8a(0xa6)][_0x32bf8a(0xba)]),_0x49b2c9[_0x32bf8a(0xb9)]=_0x34a835[_0x32bf8a(0xb9)]||_0x34a835[_0x32bf8a(0xa6)]&&_0x34a835[_0x32bf8a(0xa6)][_0x32bf8a(0xb1)],_0x49b2c9['method']=_0x34a835[_0x32bf8a(0xcc)],_0x49b2c9[_0x32bf8a(0xbd)]=_0x34a835[_0x32bf8a(0xbd)],_0xf0b564[_0x32bf8a(0xc0)](_0x25bcec,_0x57e5a8,_0x49b2c9);};return _0x416156[_0x503916(0xce)](_0xf0b564[_0x503916(0xa2)],_0x42916f=>{const _0xf4a58b=_0x503916,_0x5031c1=_0xf0b564[_0xf4a58b(0xa9)](Date['now'](),_0x5038d2),_0x1876d7={};_0x1876d7[_0xf4a58b(0xba)]=_0x34a835[_0xf4a58b(0xbb)]||_0x34a835['hostname']||_0x34a835['url']&&(_0x34a835[_0xf4a58b(0xa6)]['host']||_0x34a835[_0xf4a58b(0xa6)][_0xf4a58b(0xba)]),_0x1876d7[_0xf4a58b(0xb9)]=_0x34a835[_0xf4a58b(0xb9)]||_0x34a835['url']&&_0x34a835[_0xf4a58b(0xa6)][_0xf4a58b(0xb1)],_0x1876d7[_0xf4a58b(0xcc)]=_0x34a835[_0xf4a58b(0xcc)],_0x1876d7[_0xf4a58b(0xbd)]=_0x34a835[_0xf4a58b(0xbd)],_0x1876d7[_0xf4a58b(0xb8)]=_0x42916f[_0xf4a58b(0xae)],_0x1876d7['duration_ms']=_0x5031c1,_0xf0b564[_0xf4a58b(0xc0)](_0x25bcec,null,_0x1876d7),_0x2ab88f[_0xf4a58b(0xca)](_0xf0b564[_0xf4a58b(0xac)],_0x58e85b);}),_0x416156['on'](_0xf0b564['UkqEN'],_0x3df28f=>{const _0x56c62c=_0x503916;_0x2ab88f=_0x3df28f,_0x3df28f['once'](_0x3172ff[_0x56c62c(0xc6)],_0x58e85b);}),_0xf0b564[_0x503916(0xb5)](monkeypatch,_0x416156,_0xf0b564[_0x503916(0xb4)],(_0x1aa615,..._0x542be2)=>{const _0x3ea666=_0x503916;_0x5038d2=Date[_0x3ea666(0xa3)](),_0xf0b564[_0x3ea666(0xc1)](_0x1aa615,..._0x542be2);}),_0x416156;};_0xf0b564[_0x14d1b4(0xb5)](monkeypatch,http,_0xf0b564['ZdvCY'],_0x1f0b73),_0xf0b564['QcTVJ'](monkeypatch,https,_0xf0b564[_0x14d1b4(0xc2)],_0x1f0b73);}function restore(){const _0x25bbba=a121_0x559ef2;http[_0x25bbba(0xb7)][_0x25bbba(0xa1)](),https[_0x25bbba(0xb7)][_0x25bbba(0xa1)]();}function a121_0x2f69(_0x24fb8f,_0x3f68b5){const _0x5b8647=a121_0x5b86();return a121_0x2f69=function(_0x2f69c5,_0x19ac09){_0x2f69c5=_0x2f69c5-0xa0;let _0x5f5101=_0x5b8647[_0x2f69c5];return _0x5f5101;},a121_0x2f69(_0x24fb8f,_0x3f68b5);}const a121_0x3ad3ac={};a121_0x3ad3ac['spy']=spy,a121_0x3ad3ac[a121_0x559ef2(0xc5)]=restore,module['exports']=a121_0x3ad3ac;function a121_0x5b86(){const _0x99b344=['call','method','apply','once','4913013hgzbvk','prototype','unpatch','AJRhr','now','oyLwv','1639452SvLDoU','url','18260040cgoqDY','sBsDE','LKdgo','https','assign','NoaaF','end','statusCode','175641QJARJU','3242412femARE','pathname','1635924ppqJDB','error','NlqnR','DwAsQ','2169qKOwlm','request','status_code','path','hostname','host','WMlPX','headers','7904HbCcYJ','http','vUVWd','lLZSL','ZdvCY','socket','forEach','restore','zZuaB','15MzTVZJ','3WDIoYU','jPQfN','removeListener'];a121_0x5b86=function(){return _0x99b344;};return a121_0x5b86();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a122_0x2202(){const _0x577e1a=['2361612ykWueX','Agent','2740062szIAVZ','call','keepAliveMsecs','agent','BRsnX','WnSBm','1138510NCNAuf','measureWrapper','hasOwnProperty','keepAlive','1400970AqKUNx','dlWRh','https:','globalAgent','obmMr','./performance/constants','9416488rCBQWH','protocol','request','wgHJF','245668AwJcom','1423401vdeDuy','5zYGJir','aSoEP','KEEP_ALIVE','https'];a122_0x2202=function(){return _0x577e1a;};return a122_0x2202();}function a122_0x2ee2(_0x490814,_0x4119eb){const _0x2202e4=a122_0x2202();return a122_0x2ee2=function(_0x2ee2f8,_0x35d265){_0x2ee2f8=_0x2ee2f8-0x1aa;let _0x462737=_0x2202e4[_0x2ee2f8];return _0x462737;},a122_0x2ee2(_0x490814,_0x4119eb);}const a122_0x578b13=a122_0x2ee2;(function(_0x132f81,_0x2c7b96){const _0xe2c237=a122_0x2ee2,_0x4ef74c=_0x132f81();while(!![]){try{const _0xb374d7=-parseInt(_0xe2c237(0x1b5))/0x1*(-parseInt(_0xe2c237(0x1b3))/0x2)+parseInt(_0xe2c237(0x1c5))/0x3+parseInt(_0xe2c237(0x1b9))/0x4+-parseInt(_0xe2c237(0x1c1))/0x5+parseInt(_0xe2c237(0x1bb))/0x6+-parseInt(_0xe2c237(0x1b4))/0x7+-parseInt(_0xe2c237(0x1af))/0x8;if(_0xb374d7===_0x2c7b96)break;else _0x4ef74c['push'](_0x4ef74c['shift']());}catch(_0x29a643){_0x4ef74c['push'](_0x4ef74c['shift']());}}}(a122_0x2202,0x7efc6));const PerformanceTester=require('./performance/performance-tester'),{AUTOMATE_EVENTS:PerformanceEvents}=require(a122_0x578b13(0x1ae));module['exports']=PerformanceTester[a122_0x578b13(0x1c2)](PerformanceEvents[a122_0x578b13(0x1b7)],function(){const _0x3c6c1b=a122_0x578b13,_0x40e69d={'BhNJe':function(_0x4b71b1,_0x415cd8){return _0x4b71b1===_0x415cd8;},'aSoEP':_0x3c6c1b(0x1ab),'obmMr':_0x3c6c1b(0x1be),'WnSBm':function(_0x25c2bf,_0x3cc1a9,_0xbe9adf){return _0x25c2bf(_0x3cc1a9,_0xbe9adf);},'wgHJF':function(_0x2ab120,_0x6b7081){return _0x2ab120(_0x6b7081);},'dlWRh':'http','gthtx':_0x3c6c1b(0x1b8),'wgBEq':function(_0x3fe611,_0x51b1af){return _0x3fe611*_0x51b1af;},'BRsnX':_0x3c6c1b(0x1c4)},_0x59b73d=_0x40e69d[_0x3c6c1b(0x1b2)](require,_0x40e69d[_0x3c6c1b(0x1aa)]),_0x25a28b=_0x40e69d[_0x3c6c1b(0x1b2)](require,_0x40e69d['gthtx']),_0x139411=_0x40e69d['wgBEq'](0x1e,0x3e8);if(_0x59b73d[_0x3c6c1b(0x1ac)]&&Object['prototype'][_0x3c6c1b(0x1c3)][_0x3c6c1b(0x1bc)](_0x59b73d['globalAgent'],_0x40e69d[_0x3c6c1b(0x1bf)]))_0x59b73d['globalAgent'][_0x3c6c1b(0x1c4)]=!![],_0x25a28b[_0x3c6c1b(0x1ac)][_0x3c6c1b(0x1c4)]=!![],_0x59b73d[_0x3c6c1b(0x1ac)]['keepAliveMsecs']=_0x139411,_0x25a28b[_0x3c6c1b(0x1ac)][_0x3c6c1b(0x1bd)]=_0x139411;else{const _0x52a762={};_0x52a762[_0x3c6c1b(0x1c4)]=!![],_0x52a762[_0x3c6c1b(0x1bd)]=_0x139411;const _0x3c853c=new _0x59b73d['Agent'](_0x52a762),_0x4823e6={};_0x4823e6[_0x3c6c1b(0x1c4)]=!![],_0x4823e6[_0x3c6c1b(0x1bd)]=_0x139411;const _0x4488e9=new _0x25a28b[(_0x3c6c1b(0x1ba))](_0x4823e6),_0x173ed5=_0x59b73d[_0x3c6c1b(0x1b1)],_0x2a5e2=_0x25a28b[_0x3c6c1b(0x1b1)];_0x59b73d[_0x3c6c1b(0x1b1)]=function(_0x4d2364,_0x4ce92c){const _0x2c9030=_0x3c6c1b;if(_0x40e69d['BhNJe'](_0x4d2364[_0x2c9030(0x1b0)],_0x40e69d[_0x2c9030(0x1b6)]))return _0x4d2364[_0x40e69d['obmMr']]=_0x4488e9,_0x40e69d[_0x2c9030(0x1c0)](_0x2a5e2,_0x4d2364,_0x4ce92c);return _0x4d2364[_0x40e69d[_0x2c9030(0x1ad)]]=_0x3c853c,_0x40e69d[_0x2c9030(0x1c0)](_0x173ed5,_0x4d2364,_0x4ce92c);};}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a123_0x5078bc=a123_0x8a47;(function(_0x435b36,_0x5c5532){const _0x1061ab=a123_0x8a47,_0x3e6931=_0x435b36();while(!![]){try{const _0x2cf5a2=-parseInt(_0x1061ab(0xbc))/0x1*(parseInt(_0x1061ab(0xb0))/0x2)+-parseInt(_0x1061ab(0x98))/0x3+-parseInt(_0x1061ab(0xba))/0x4*(-parseInt(_0x1061ab(0xad))/0x5)+-parseInt(_0x1061ab(0xb1))/0x6*(-parseInt(_0x1061ab(0xb6))/0x7)+-parseInt(_0x1061ab(0xaf))/0x8+-parseInt(_0x1061ab(0x93))/0x9*(-parseInt(_0x1061ab(0xa3))/0xa)+parseInt(_0x1061ab(0x97))/0xb;if(_0x2cf5a2===_0x5c5532)break;else _0x3e6931['push'](_0x3e6931['shift']());}catch(_0x15a2d8){_0x3e6931['push'](_0x3e6931['shift']());}}}(a123_0xc79c,0x57a95));const path=require(a123_0x5078bc(0xa8)),{logDir}=require(a123_0x5078bc(0x96)),a123_0x5950b0={};function a123_0xc79c(){const _0x3b3b6a=['2RaMkGk','jest','1008GjyFzy','CODECEPT_CUCUMBER','mocha','../logger','1527449XqLInL','519528wQIMAW','api/v1/screenshots','cucumber','API_URL','codeceptjs-cucumber','Playwright','exports','codeceptjs','env','https://collector-observability-devtestops.bsstag.com','join','24530ChGsVR','CUCUMBER','BROWSERSTACK_ENV','assign','JEST','path','upload-attachments','.obs_test_details','https://collector-observability.browserstack.com','https://upload-observability.browserstack.com','2021885ngepTA','https://upload-observability-devtestops-ssi.bsstag.com','2919688fPqqOz','200086PCZoSs','24wFLmMk','prod','OBSERVABILITY_UPLOAD_API_URL','api/v1/batch','preprod','488796NBGCyw','MOCHA','api/v1/event','pre-prod','4ahftxY','PLAYWRIGHT'];a123_0xc79c=function(){return _0x3b3b6a;};return a123_0xc79c();}a123_0x5950b0[a123_0x5078bc(0xbb)]=a123_0x5078bc(0x9d),a123_0x5950b0[a123_0x5078bc(0xb7)]=a123_0x5078bc(0x95),a123_0x5950b0['CODECEPT']=a123_0x5078bc(0x9f),a123_0x5950b0[a123_0x5078bc(0x94)]=a123_0x5078bc(0x9c),a123_0x5950b0[a123_0x5078bc(0xa7)]=a123_0x5078bc(0x92),a123_0x5950b0[a123_0x5078bc(0xa4)]=a123_0x5078bc(0x9a),module['exports']={'consoleHolder':Object[a123_0x5078bc(0xa6)]({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':a123_0x5078bc(0xab),'OBSERVABILITY_UPLOAD_API_URL':a123_0x5078bc(0xac),'EVENT_ENDPOINT':a123_0x5078bc(0xb8),'BATCH_ENDPOINT':a123_0x5078bc(0xb4),'SCREENSHOT_ENDPOINT':a123_0x5078bc(0x99),'UPLOAD_ATTACHMENT_ENDPOINT':a123_0x5078bc(0xa9),'DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS':0xea60,'MAX_ALLOWED_PLAYWRIGHT_TRACE_SIZE':0x64*0x400*0x400,'DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS':0x64,'DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS':0x1f4,'TEMP_STORE_DIR_NAME':path[a123_0x5078bc(0xa2)](logDir,a123_0x5078bc(0xaa)),'FRAMEWORKS':a123_0x5950b0};const _env=(process[a123_0x5078bc(0xa0)][a123_0x5078bc(0xa5)]||a123_0x5078bc(0xb2))['toLowerCase']();function a123_0x8a47(_0x42d839,_0x3feda7){const _0xc79c5c=a123_0xc79c();return a123_0x8a47=function(_0x8a4701,_0xa190aa){_0x8a4701=_0x8a4701-0x92;let _0x41ebdc=_0xc79c5c[_0x8a4701];return _0x41ebdc;},a123_0x8a47(_0x42d839,_0x3feda7);}if(_env==='staging'||_env==='stag')module[a123_0x5078bc(0x9e)]['API_URL']=a123_0x5078bc(0xa1),module[a123_0x5078bc(0x9e)][a123_0x5078bc(0xb3)]=a123_0x5078bc(0xae);else(_env===a123_0x5078bc(0xb5)||_env===a123_0x5078bc(0xb9))&&(module['exports'][a123_0x5078bc(0x9b)]='https://collector-observability-preprod.bsstag.com',module[a123_0x5078bc(0x9e)][a123_0x5078bc(0xb3)]='https://upload-observability-preprod.bsstag.com');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a124_0x3f8aaf=a124_0x21d9;(function(_0x3b1c36,_0xff77cb){const _0x355452=a124_0x21d9,_0x2f52ff=_0x3b1c36();while(!![]){try{const _0x4d41b3=-parseInt(_0x355452(0x180))/0x1+parseInt(_0x355452(0x1a4))/0x2*(parseInt(_0x355452(0x17c))/0x3)+-parseInt(_0x355452(0x1d7))/0x4+-parseInt(_0x355452(0x188))/0x5+-parseInt(_0x355452(0x1d2))/0x6*(-parseInt(_0x355452(0x1cd))/0x7)+-parseInt(_0x355452(0x1c2))/0x8*(parseInt(_0x355452(0x1d3))/0x9)+-parseInt(_0x355452(0x175))/0xa*(-parseInt(_0x355452(0x1cc))/0xb);if(_0x4d41b3===_0xff77cb)break;else _0x2f52ff['push'](_0x2f52ff['shift']());}catch(_0x50e74d){_0x2f52ff['push'](_0x2f52ff['shift']());}}}(a124_0x44a0,0x46862));const util=require(a124_0x3f8aaf(0x1c1)),PerformanceTester=require(a124_0x3f8aaf(0x19b)),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require(a124_0x3f8aaf(0x1a8)),{getAgentVersion,nestedKeyValue}=require(a124_0x3f8aaf(0x1a5)),o11yErrorHandler=(_0x510cd0,_0x25018e='',_0x923f7a=[''],_0x4ed3c4=![])=>{const _0x58cfa3={'lUGVB':function(_0x395d27,_0x4aeebf){return _0x395d27(_0x4aeebf);},'CgKbz':function(_0x469e9b,_0x582efe,_0x41bae1){return _0x469e9b(_0x582efe,_0x41bae1);},'nBxzz':function(_0x4d3430,_0x4ab1d1){return _0x4d3430(_0x4ab1d1);},'CDnpo':function(_0x1a1d94,_0x46566c,_0x286e4f){return _0x1a1d94(_0x46566c,_0x286e4f);},'xLGCJ':function(_0x2390a5,_0x1a281e){return _0x2390a5 instanceof _0x1a281e;},'qlHJx':function(_0xba6bbf,_0x5f031b,_0x253473,_0x12bcec,_0x47eb6a){return _0xba6bbf(_0x5f031b,_0x253473,_0x12bcec,_0x47eb6a);}};return function(..._0xed13a5){const _0x303b96=a124_0x21d9;try{let _0x524052=_0x510cd0;process[_0x303b96(0x1eb)][_0x303b96(0x1ee)]&&(_0x524052=PerformanceTester[_0x303b96(0x1c9)]()['timerify'](_0x524052));_0x4ed3c4&&_0x58cfa3[_0x303b96(0x1d9)](trace,_0x303b96(0x1ce)+_0x25018e+_0x303b96(0x1b5)+process[_0x303b96(0x1d1)]+_0x303b96(0x1c3)+_0x58cfa3['CgKbz'](nestedKeyValue,arguments[0x0],_0x923f7a));const _0x20e040=_0x524052[_0x303b96(0x1dd)](null,arguments);_0x4ed3c4&&_0x58cfa3[_0x303b96(0x1b6)](trace,_0x303b96(0x1c7)+_0x25018e+_0x303b96(0x1b5)+process[_0x303b96(0x1d1)]+_0x303b96(0x1c3)+_0x58cfa3[_0x303b96(0x1e7)](nestedKeyValue,arguments[0x0],_0x923f7a));if(_0x58cfa3[_0x303b96(0x1de)](_0x20e040,Promise))return _0x20e040[_0x303b96(0x1e3)](_0x5ed9c8=>processError(_0x5ed9c8,_0x510cd0,_0xed13a5,_0x25018e));return _0x20e040;}catch(_0x36be8b){_0x58cfa3[_0x303b96(0x174)](processError,_0x36be8b,_0x510cd0,_0xed13a5,_0x25018e);}};},o11yClassErrorHandler=(_0x58d2f9,_0x4f0dd8,_0x190536='')=>{const _0x5b652d=a124_0x3f8aaf,_0x142188={'dQigM':function(_0x5427b3,_0x26ca2b){return _0x5427b3 instanceof _0x26ca2b;},'GCPgK':function(_0x23cf70,_0x5dddb0,_0x16a113,_0x488824,_0x477c93){return _0x23cf70(_0x5dddb0,_0x16a113,_0x488824,_0x477c93);},'nPKGp':function(_0x381504,_0x193def){return _0x381504===_0x193def;},'CBnTW':_0x5b652d(0x1bd),'EjCvi':function(_0x32a7ba,_0x4d4985){return _0x32a7ba!==_0x4d4985;},'XiLNR':_0x5b652d(0x18d),'ImoOf':function(_0x4540e0,_0x45a900){return _0x4540e0<_0x45a900;}},_0x214bb1=_0x58d2f9[_0x5b652d(0x1a1)];if(_0x142188[_0x5b652d(0x1ad)](Object[_0x5b652d(0x18e)](_0x214bb1)['length'],0x2))return _0x58d2f9;return Object[_0x5b652d(0x18e)](_0x214bb1)[_0x5b652d(0x18b)](_0x5cfaac=>{const _0x41b7c6=_0x5b652d,_0x5899a5={'aVRzh':function(_0x26cd9e,_0x1f137f){return _0x142188['dQigM'](_0x26cd9e,_0x1f137f);},'TuAWu':function(_0x32d93b,_0x588573,_0xd781c3,_0x4d64d2,_0x3aa08e){const _0x434cc7=a124_0x21d9;return _0x142188[_0x434cc7(0x186)](_0x32d93b,_0x588573,_0xd781c3,_0x4d64d2,_0x3aa08e);}};if(!(_0x4f0dd8&&_0x4f0dd8['includes'](_0x5cfaac)))return;const _0x4c7751=_0x214bb1[_0x5cfaac];_0x142188[_0x41b7c6(0x1a2)](typeof _0x4c7751,_0x142188[_0x41b7c6(0x1bb)])&&_0x142188[_0x41b7c6(0x19a)](_0x5cfaac,_0x142188[_0x41b7c6(0x190)])&&Object[_0x41b7c6(0x182)](_0x214bb1,_0x5cfaac,{'writable':!![],'value':function(..._0xbe442e){const _0x47ad75=_0x41b7c6;try{const _0x112477=(process[_0x47ad75(0x1eb)][_0x47ad75(0x1ee)]?PerformanceTester['getPerformance']()[_0x47ad75(0x1e0)](_0x4c7751):_0x4c7751)[_0x47ad75(0x185)](this,..._0xbe442e);if(_0x5899a5[_0x47ad75(0x1b4)](_0x112477,Promise))return _0x112477[_0x47ad75(0x1e3)](_0x563ac2=>processError(_0x563ac2,_0x4c7751,_0xbe442e,_0x190536));return _0x112477;}catch(_0x558fdb){_0x5899a5[_0x47ad75(0x18c)](processError,_0x558fdb,_0x4c7751,_0xbe442e,_0x190536);}}});}),_0x58d2f9;};function processError(_0x480207,_0x1cf1b7,_0x52a572,_0x3c35ef){const _0x501225=a124_0x3f8aaf,_0x41e18e={'KziNo':function(_0x1c1ac1,_0x2cc47a){return _0x1c1ac1(_0x2cc47a);}};_0x41e18e[_0x501225(0x1c0)](debug,_0x501225(0x1d6)+_0x1cf1b7[_0x501225(0x1e8)]+_0x501225(0x1a3)+_0x3c35ef+_0x501225(0x1ac)+util[_0x501225(0x1ea)](_0x480207)+_0x501225(0x1d8)+_0x52a572+'.'),PerformanceTester['captureError'](_0x480207);let _0x2ff373;try{_0x2ff373=JSON[_0x501225(0x1b1)](_0x52a572);}catch(_0x405e3a){const _0x3b4181={};_0x3b4181[_0x501225(0x1a0)]=0x2,_0x2ff373=util[_0x501225(0x196)](_0x52a572,_0x3b4181);}CrashReporter[_0x501225(0x1e4)](_0x501225(0x1d6)+_0x1cf1b7[_0x501225(0x1e8)]+'\x20--\x20'+_0x3c35ef+_0x501225(0x1ac)+_0x480207+_0x501225(0x1d8)+_0x2ff373+'.',_0x480207&&_0x480207[_0x501225(0x1c4)]);}function a124_0x21d9(_0x37e0ac,_0x3a4ddd){const _0x44a086=a124_0x44a0();return a124_0x21d9=function(_0x21d9f0,_0x1e3457){_0x21d9f0=_0x21d9f0-0x174;let _0x32db6d=_0x44a086[_0x21d9f0];return _0x32db6d;},a124_0x21d9(_0x37e0ac,_0x3a4ddd);}function a124_0x44a0(){const _0x950961=['toString','ICTMr','srICr','.\x20Error\x20-\x20','ImoOf','setAllDetails','initialize','XuUhs','stringify','CrashReporter','setFrameworkDetails','aVRzh',',\x20PID\x20-\x20','nBxzz','keys','USER_CONFIG_FOR_REPORTING','NbTfY','headers','CBnTW','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','function','setCredentials','wykMI','KziNo','util','1498840KekZGE',',\x20Argument\x20-\x20','stack','BmdLt','toLowerCase','Finished\x20::\x20','getFramework','getPerformance','BlCSn','qOdsB','3663BpbAuG','476oykgKQ','Started\x20::\x20','MuqiI','ubiZu','pid','25620gLVMWU','27IdAeyd','user','Hhbxs','Error\x20in\x20executing\x20','2196392QTVARY','.\x20Args\x20-\x20','lUGVB','userConfig','recursivelyDeletePIIKeysFromObject','accessKey','apply','xLGCJ','CREDENTIALS_FOR_CRASH_REPORTING','timerify','setConfigDetails','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','catch','uploadCrashReport','vDTrG','Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20','CDnpo','name','length','format','env','QtbgK','auth','BROWSERSTACK_O11Y_PERF_MEASUREMENT','qlHJx','30410LodqAq','filterPII','POST','[Crash_Report_Upload]\x20Failed\x20due\x20to\x20','vPIaL','parse','key','1511967BLcWQt','getCredentials','getConfig','frameworkVersion','393592GmGaDj','object','defineProperty','username','vXmfj','call','GCPgK','credentials','66905uUQABn','[Crash_Report_Upload]\x20Success\x20response:\x20','exports','forEach','TuAWu','constructor','getOwnPropertyNames','uRKzK','XiLNR','then','X-BSTACK-TESTOPS','[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','BHztE','zNGbo','inspect','frameworkDetails','COCWB','o11yErrorHandler','EjCvi','../performance/performance-tester','kYneq','frameworkName','application/json','o11yClassErrorHandler','depth','prototype','nPKGp','\x20--\x20','2aVGaUu','../helper','password','includes','./utils'];a124_0x44a0=function(){return _0x950961;};return a124_0x44a0();}class CrashReporter{static [a124_0x3f8aaf(0x1da)]={};static [a124_0x3f8aaf(0x187)];static ['frameworkDetails']={};static[a124_0x3f8aaf(0x1af)](_0x87129d,_0x264b39,_0x233eb9=null){const _0x16937d=a124_0x3f8aaf,_0x19cfef={'srICr':function(_0x49a997,_0x4a8cb7){return _0x49a997(_0x4a8cb7);},'vXmfj':function(_0x5a4a08,_0x46433f){return _0x5a4a08(_0x46433f);},'XuUhs':function(_0x35c962,_0x2aae50){return _0x35c962(_0x2aae50);}},_0x108d3e=_0x87129d[_0x16937d(0x19d)],_0x212de4=_0x87129d['frameworkVersion'];!_0x233eb9&&(_0x233eb9=_0x19cfef[_0x16937d(0x1ab)](getBrowserStackConfig,_0x108d3e));!_0x212de4&&_0x19cfef[_0x16937d(0x184)](getFrameworkVersion,_0x108d3e);const _0x466c02={};_0x466c02[_0x16937d(0x19d)]=_0x108d3e,_0x466c02[_0x16937d(0x17f)]=_0x212de4,this[_0x16937d(0x1ae)](_0x466c02,_0x264b39,_0x19cfef[_0x16937d(0x1b0)](getUserCredentials,_0x233eb9));}static['setCredentials'](_0x562cd7,_0x2e568c){const _0x3fa6c7=a124_0x3f8aaf,_0x3cda4d={};_0x3cda4d[_0x3fa6c7(0x183)]=_0x562cd7,_0x3cda4d[_0x3fa6c7(0x1dc)]=_0x2e568c,this[_0x3fa6c7(0x187)]=_0x3cda4d,process['env'][_0x3fa6c7(0x1df)]=JSON[_0x3fa6c7(0x1b1)](this[_0x3fa6c7(0x187)]);}static[a124_0x3f8aaf(0x17d)](){const _0x2f9991=a124_0x3f8aaf,_0x325c53={'abxNE':function(_0x2830c7,_0x5616cf){return _0x2830c7(_0x5616cf);}};if(!this[_0x2f9991(0x187)]&&process[_0x2f9991(0x1eb)][_0x2f9991(0x1df)])try{this[_0x2f9991(0x187)]=JSON[_0x2f9991(0x17a)](process[_0x2f9991(0x1eb)][_0x2f9991(0x1df)]);}catch(_0x44a48d){_0x325c53['abxNE'](debug,_0x2f9991(0x1e2)+_0x44a48d[_0x2f9991(0x1a9)]());}return this[_0x2f9991(0x187)];}static[a124_0x3f8aaf(0x1e1)](_0x41c226){const _0x15929c=a124_0x3f8aaf;this['userConfig']=this[_0x15929c(0x176)](_0x41c226),process[_0x15929c(0x1eb)][_0x15929c(0x1b8)]=JSON[_0x15929c(0x1b1)](this['userConfig']);}static[a124_0x3f8aaf(0x17e)](){const _0x485ca4=a124_0x3f8aaf,_0x504f59={'NbTfY':function(_0x56e26d,_0x50f3eb){return _0x56e26d===_0x50f3eb;},'wykMI':function(_0x37ae10,_0x59d4c2){return _0x37ae10(_0x59d4c2);}};if(_0x504f59[_0x485ca4(0x1b9)](Object[_0x485ca4(0x1b7)](this[_0x485ca4(0x1da)])[_0x485ca4(0x1e9)],0x0)&&process[_0x485ca4(0x1eb)][_0x485ca4(0x1b8)])try{this[_0x485ca4(0x1da)]=JSON[_0x485ca4(0x17a)](process[_0x485ca4(0x1eb)][_0x485ca4(0x1b8)]);}catch(_0x28f5fc){_0x504f59[_0x485ca4(0x1bf)](debug,_0x485ca4(0x1e6)+_0x28f5fc[_0x485ca4(0x1a9)]()),this[_0x485ca4(0x1da)]={};}return this[_0x485ca4(0x1da)];}static[a124_0x3f8aaf(0x1b3)](_0x148921){const _0x468c71=a124_0x3f8aaf;this['frameworkDetails']=_0x148921,process['env'][_0x468c71(0x1bc)]=JSON[_0x468c71(0x1b1)](this['frameworkDetails']);}static[a124_0x3f8aaf(0x1c8)](){const _0x1a37bd=a124_0x3f8aaf,_0x1b46ec={'kYneq':function(_0x23adb6,_0x5451f5){return _0x23adb6===_0x5451f5;},'ICTMr':function(_0x3ccb35,_0x4dd701){return _0x3ccb35(_0x4dd701);}};if(_0x1b46ec[_0x1a37bd(0x19c)](Object['keys'](this[_0x1a37bd(0x197)])[_0x1a37bd(0x1e9)],0x0)&&process[_0x1a37bd(0x1eb)][_0x1a37bd(0x1bc)])try{this['frameworkDetails']=JSON[_0x1a37bd(0x17a)](process['env'][_0x1a37bd(0x1bc)]);}catch(_0x350a83){_0x1b46ec[_0x1a37bd(0x1aa)](debug,'Error\x20in\x20parsing\x20credentials\x20from\x20env\x20'+_0x350a83[_0x1a37bd(0x1a9)]());}return this[_0x1a37bd(0x197)];}static[a124_0x3f8aaf(0x1ae)](_0x19057f,_0xcc90d9,_0x4577d2){const _0x2a2f52=a124_0x3f8aaf;_0x19057f&&this[_0x2a2f52(0x1b3)](_0x19057f),_0xcc90d9&&this['setConfigDetails'](_0xcc90d9),_0x4577d2&&this[_0x2a2f52(0x1be)](_0x4577d2[_0x2a2f52(0x183)],_0x4577d2['accessKey']);}static async[a124_0x3f8aaf(0x1e4)](_0x449f42,_0x3ec88e){const _0x1f1c40=a124_0x3f8aaf,_0x3e5371={'uRKzK':function(_0x4d01fc,_0x58fdbb){return _0x4d01fc(_0x58fdbb);},'wpvkH':function(_0x25d941,_0x32b045){return _0x25d941(_0x32b045);},'VjGMn':function(_0x1b5248,_0x2f315d){return _0x1b5248(_0x2f315d);},'POFGP':_0x1f1c40(0x193),'ubiZu':function(_0x6ff6c){return _0x6ff6c();},'BlCSn':'/api/v1/analytics','COCWB':_0x1f1c40(0x19e),'BHztE':'true','qOdsB':function(_0x1ab04b,_0x16c343,_0x4b51df,_0x911a34,_0x531c1e,_0x2d969b){return _0x1ab04b(_0x16c343,_0x4b51df,_0x911a34,_0x531c1e,_0x2d969b);},'MuqiI':_0x1f1c40(0x177)};this[_0x1f1c40(0x17d)]();if(!this[_0x1f1c40(0x187)])return _0x3e5371['VjGMn'](debug,_0x3e5371['POFGP']);this[_0x1f1c40(0x17e)](),this[_0x1f1c40(0x1c8)]();const _0x1f8dcd={'hashed_id':process[_0x1f1c40(0x1eb)]['BS_TESTOPS_BUILD_HASHED_ID'],'observability_version':{'sdkVersion':_0x3e5371[_0x1f1c40(0x1d0)](getAgentVersion),'frameworkName':this[_0x1f1c40(0x197)][_0x1f1c40(0x19d)],'frameworkVersion':this[_0x1f1c40(0x197)][_0x1f1c40(0x17f)]},'exception':{'error':_0x449f42[_0x1f1c40(0x1a9)](),'stackTrace':_0x3ec88e},'config':this['userConfig']},_0x52cb60=_0x3e5371[_0x1f1c40(0x1ca)],_0x264e0f={};_0x264e0f['username']=this[_0x1f1c40(0x187)][_0x1f1c40(0x183)],_0x264e0f[_0x1f1c40(0x1a6)]=this[_0x1f1c40(0x187)][_0x1f1c40(0x1dc)];const _0x14d9d0={};_0x14d9d0['Content-Type']=_0x3e5371[_0x1f1c40(0x198)],_0x14d9d0[_0x1f1c40(0x192)]=_0x3e5371[_0x1f1c40(0x194)];const _0x55453e={};_0x55453e[_0x1f1c40(0x1ed)]=_0x264e0f,_0x55453e[_0x1f1c40(0x1ba)]=_0x14d9d0;const _0x52dc46=_0x55453e;_0x3e5371[_0x1f1c40(0x1cb)](nodeRequest,_0x3e5371[_0x1f1c40(0x1cf)],_0x52cb60,_0x1f8dcd,_0x52dc46,![])[_0x1f1c40(0x191)](_0x5d7261=>{const _0x27e592=_0x1f1c40;_0x3e5371[_0x27e592(0x18f)](debug,_0x27e592(0x189)+JSON[_0x27e592(0x1b1)](_0x5d7261));})[_0x1f1c40(0x1e3)](_0xee8877=>{const _0x1d40c3=_0x1f1c40;_0x3e5371['wpvkH'](debug,_0x1d40c3(0x178)+util[_0x1d40c3(0x1ea)](_0xee8877));});}static[a124_0x3f8aaf(0x1db)](_0x308cee){const _0xca278=a124_0x3f8aaf,_0x20dca4={};_0x20dca4['Hhbxs']=_0xca278(0x1d4),_0x20dca4[_0xca278(0x1c5)]=_0xca278(0x183),_0x20dca4[_0xca278(0x1ec)]=_0xca278(0x17b),_0x20dca4[_0xca278(0x1e5)]=_0xca278(0x1dc),_0x20dca4['vPIaL']=_0xca278(0x1a6),_0x20dca4['zNGbo']=function(_0x3748cb,_0x155981){return _0x3748cb===_0x155981;},_0x20dca4['FEfjP']=_0xca278(0x181);const _0x2d6ead=_0x20dca4;if(!_0x308cee)return;const _0x3b982a=[_0x2d6ead[_0xca278(0x1d5)],_0x2d6ead[_0xca278(0x1c5)],_0x2d6ead[_0xca278(0x1ec)],_0x2d6ead[_0xca278(0x1e5)],_0x2d6ead[_0xca278(0x179)]];for(const _0x1fb25d in _0x308cee){if(_0x3b982a[_0xca278(0x1a7)](_0x1fb25d[_0xca278(0x1c6)]()))delete _0x308cee[_0x1fb25d];else _0x2d6ead[_0xca278(0x195)](typeof _0x308cee[_0x1fb25d],_0x2d6ead['FEfjP'])&&this[_0xca278(0x1db)](_0x308cee[_0x1fb25d]);}}static[a124_0x3f8aaf(0x176)](_0x26e4db){const _0x45abb4=a124_0x3f8aaf,_0x36421f=JSON[_0x45abb4(0x17a)](JSON[_0x45abb4(0x1b1)](_0x26e4db));return this['recursivelyDeletePIIKeysFromObject'](_0x36421f),_0x36421f;}}const a124_0x365868={};a124_0x365868[a124_0x3f8aaf(0x199)]=o11yErrorHandler,a124_0x365868[a124_0x3f8aaf(0x19f)]=o11yClassErrorHandler,a124_0x365868[a124_0x3f8aaf(0x1b2)]=CrashReporter,module[a124_0x3f8aaf(0x18a)]=a124_0x365868;
|
|
1
|
+
function a124_0x263a(){const _0x4290ac=['getConfig','CrashReporter','Started\x20::\x20','VksDl','CREDENTIALS_FOR_CRASH_REPORTING','X-BSTACK-TESTOPS','.\x20Error\x20-\x20','223584dyJRhN','BROWSERSTACK_O11Y_PERF_MEASUREMENT','BS_TESTOPS_BUILD_HASHED_ID','zmBCD','SITHM','iesSo','catch','UXFle','ivAvc','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','format','bNsTt','NStYU','accessKey','[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','mfhsJ','auth','constructor','frameworkDetails','ZmLnj','prototype',',\x20PID\x20-\x20','BnlDv','length','call','env','ostyF','vXxYO','cKHOp','dOpNh','stringify','setAllDetails','name','exports','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','OfMWe',',\x20Argument\x20-\x20','getFramework','dCzmx','kmdke','parse','defineProperty','filterPII','28ssASmK','OfNHh','2348286yCaKkz','frameworkName','IelCj','getOwnPropertyNames','keys','6978968IIFNVq','application/json','../performance/performance-tester','stack','\x20--\x20','setCredentials','key','pid','iPqNY','rTSBD','setConfigDetails','o11yClassErrorHandler','headers','Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20','USER_CONFIG_FOR_REPORTING','user','timerify','username','credentials','AkSVF','recursivelyDeletePIIKeysFromObject','getPerformance','3lWODMl','depth','UULRI','password','frameworkVersion','apply','Finished\x20::\x20','userConfig','/api/v1/analytics','dWCcg','5018172xxilRy','zWwsm','forEach','setFrameworkDetails','.\x20Args\x20-\x20','util','object','30431331KRoCzf','TRfag','wjuod','1276206MCVrdw','o11yErrorHandler','1851460BqiAUV','toLowerCase','MRXNQ','toString','jbUrd','true','uploadCrashReport','Content-Type','includes','[Crash_Report_Upload]\x20Failed\x20due\x20to\x20','function','getCredentials','then','inspect','Error\x20in\x20executing\x20'];a124_0x263a=function(){return _0x4290ac;};return a124_0x263a();}const a124_0x55297e=a124_0x3a7b;(function(_0x291294,_0xb6985c){const _0x29038c=a124_0x3a7b,_0x110dad=_0x291294();while(!![]){try{const _0xedeb66=-parseInt(_0x29038c(0x247))/0x1+-parseInt(_0x29038c(0x218))/0x2+parseInt(_0x29038c(0x233))/0x3*(-parseInt(_0x29038c(0x23d))/0x4)+parseInt(_0x29038c(0x249))/0x5+parseInt(_0x29038c(0x1eb))/0x6*(-parseInt(_0x29038c(0x216))/0x7)+parseInt(_0x29038c(0x21d))/0x8+parseInt(_0x29038c(0x244))/0x9;if(_0xedeb66===_0xb6985c)break;else _0x110dad['push'](_0x110dad['shift']());}catch(_0x48c9e4){_0x110dad['push'](_0x110dad['shift']());}}}(a124_0x263a,0xbbfb6));const util=require(a124_0x55297e(0x242)),PerformanceTester=require(a124_0x55297e(0x21f)),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require('./utils'),{getAgentVersion,nestedKeyValue}=require('../helper'),o11yErrorHandler=(_0x57df72,_0x25828e='',_0x1b9fa7=[''],_0x289ffa=![])=>{const _0x2b8f86={'iPqNY':function(_0x4b19df,_0x23a8a8){return _0x4b19df(_0x23a8a8);},'jbUrd':function(_0x41159b,_0x255d1a,_0x36e321){return _0x41159b(_0x255d1a,_0x36e321);},'wjuod':function(_0x3cf9c3,_0x10745d){return _0x3cf9c3(_0x10745d);},'IelCj':function(_0x117ce3,_0x52a37b,_0x654a4c){return _0x117ce3(_0x52a37b,_0x654a4c);},'mfhsJ':function(_0x5a89bb,_0x5c0f65){return _0x5a89bb instanceof _0x5c0f65;},'zWwsm':function(_0x2ac26d,_0x370b32,_0x28b2f0,_0x2204a1,_0x1a91cd){return _0x2ac26d(_0x370b32,_0x28b2f0,_0x2204a1,_0x1a91cd);}};return function(..._0x3e5247){const _0x5bc1f7=a124_0x3a7b;try{let _0x376b65=_0x57df72;process['env'][_0x5bc1f7(0x1ec)]&&(_0x376b65=PerformanceTester[_0x5bc1f7(0x232)]()[_0x5bc1f7(0x22d)](_0x376b65));_0x289ffa&&_0x2b8f86[_0x5bc1f7(0x225)](trace,_0x5bc1f7(0x1e6)+_0x25828e+_0x5bc1f7(0x200)+process[_0x5bc1f7(0x224)]+_0x5bc1f7(0x20f)+_0x2b8f86[_0x5bc1f7(0x24d)](nestedKeyValue,arguments[0x0],_0x1b9fa7));const _0x4efff2=_0x376b65[_0x5bc1f7(0x238)](null,arguments);_0x289ffa&&_0x2b8f86[_0x5bc1f7(0x246)](trace,_0x5bc1f7(0x239)+_0x25828e+',\x20PID\x20-\x20'+process[_0x5bc1f7(0x224)]+_0x5bc1f7(0x20f)+_0x2b8f86[_0x5bc1f7(0x21a)](nestedKeyValue,arguments[0x0],_0x1b9fa7));if(_0x2b8f86[_0x5bc1f7(0x1fa)](_0x4efff2,Promise))return _0x4efff2['catch'](_0x41a6d4=>processError(_0x41a6d4,_0x57df72,_0x3e5247,_0x25828e));return _0x4efff2;}catch(_0x118d16){_0x2b8f86[_0x5bc1f7(0x23e)](processError,_0x118d16,_0x57df72,_0x3e5247,_0x25828e);}};},o11yClassErrorHandler=(_0x481fde,_0x44f4b2,_0x39fdd4='')=>{const _0x243168=a124_0x55297e,_0x365b02={'dWCcg':function(_0x4508bf,_0x583fef){return _0x4508bf instanceof _0x583fef;},'ivAvc':function(_0x25cb1c,_0x37c3ba,_0x528306,_0x15095e,_0x2da3a3){return _0x25cb1c(_0x37c3ba,_0x528306,_0x15095e,_0x2da3a3);},'zmBCD':function(_0x3a7062,_0xe5a42){return _0x3a7062===_0xe5a42;},'bNsTt':_0x243168(0x1df),'pgNaa':function(_0x42181b,_0x4cf48e){return _0x42181b!==_0x4cf48e;},'RJsei':_0x243168(0x1fc),'AkSVF':function(_0xf5b0b,_0xe371da){return _0xf5b0b<_0xe371da;}},_0x1fffe3=_0x481fde[_0x243168(0x1ff)];if(_0x365b02[_0x243168(0x230)](Object[_0x243168(0x21b)](_0x1fffe3)[_0x243168(0x202)],0x2))return _0x481fde;return Object[_0x243168(0x21b)](_0x1fffe3)[_0x243168(0x23f)](_0x4f69c9=>{const _0x229a31=_0x243168,_0x11c53e={'VksDl':function(_0x26f3bb,_0x32b6b6){const _0x3b1d87=a124_0x3a7b;return _0x365b02[_0x3b1d87(0x23c)](_0x26f3bb,_0x32b6b6);},'xnkUb':function(_0x55a04d,_0x1242e2,_0xc8f657,_0x46226d,_0x81e983){const _0x4c5467=a124_0x3a7b;return _0x365b02[_0x4c5467(0x1f3)](_0x55a04d,_0x1242e2,_0xc8f657,_0x46226d,_0x81e983);}};if(!(_0x44f4b2&&_0x44f4b2[_0x229a31(0x1dd)](_0x4f69c9)))return;const _0x9b92ed=_0x1fffe3[_0x4f69c9];_0x365b02[_0x229a31(0x1ee)](typeof _0x9b92ed,_0x365b02[_0x229a31(0x1f6)])&&_0x365b02['pgNaa'](_0x4f69c9,_0x365b02['RJsei'])&&Object[_0x229a31(0x214)](_0x1fffe3,_0x4f69c9,{'writable':!![],'value':function(..._0x1bfc51){const _0x16f460=_0x229a31;try{const _0x3bd0ca=(process[_0x16f460(0x204)]['BROWSERSTACK_O11Y_PERF_MEASUREMENT']?PerformanceTester[_0x16f460(0x232)]()[_0x16f460(0x22d)](_0x9b92ed):_0x9b92ed)[_0x16f460(0x203)](this,..._0x1bfc51);if(_0x11c53e[_0x16f460(0x1e7)](_0x3bd0ca,Promise))return _0x3bd0ca['catch'](_0x56ddf2=>processError(_0x56ddf2,_0x9b92ed,_0x1bfc51,_0x39fdd4));return _0x3bd0ca;}catch(_0x38fb27){_0x11c53e['xnkUb'](processError,_0x38fb27,_0x9b92ed,_0x1bfc51,_0x39fdd4);}}});}),_0x481fde;};function a124_0x3a7b(_0xeaeab,_0x124276){const _0x263a6c=a124_0x263a();return a124_0x3a7b=function(_0x3a7bb7,_0x551422){_0x3a7bb7=_0x3a7bb7-0x1db;let _0xef0ba4=_0x263a6c[_0x3a7bb7];return _0xef0ba4;},a124_0x3a7b(_0xeaeab,_0x124276);}function processError(_0xf5bc0c,_0x24b5e9,_0x1cbbf0,_0x37293f){const _0x3fae0f=a124_0x55297e,_0x30c44b={'sUhws':function(_0x187dcd,_0x421ab3){return _0x187dcd(_0x421ab3);}};_0x30c44b['sUhws'](debug,_0x3fae0f(0x1e3)+_0x24b5e9[_0x3fae0f(0x20b)]+_0x3fae0f(0x221)+_0x37293f+_0x3fae0f(0x1ea)+util[_0x3fae0f(0x1f5)](_0xf5bc0c)+_0x3fae0f(0x241)+_0x1cbbf0+'.'),PerformanceTester['captureError'](_0xf5bc0c);let _0x39a9db;try{_0x39a9db=JSON[_0x3fae0f(0x209)](_0x1cbbf0);}catch(_0x49be48){const _0x3eec57={};_0x3eec57[_0x3fae0f(0x234)]=0x2,_0x39a9db=util[_0x3fae0f(0x1e2)](_0x1cbbf0,_0x3eec57);}CrashReporter[_0x3fae0f(0x1db)](_0x3fae0f(0x1e3)+_0x24b5e9[_0x3fae0f(0x20b)]+'\x20--\x20'+_0x37293f+_0x3fae0f(0x1ea)+_0xf5bc0c+_0x3fae0f(0x241)+_0x39a9db+'.',_0xf5bc0c&&_0xf5bc0c[_0x3fae0f(0x220)]);}class CrashReporter{static ['userConfig']={};static [a124_0x55297e(0x22f)];static [a124_0x55297e(0x1fd)]={};static['initialize'](_0x5a8584,_0x1c2bdb,_0x1427f6=null){const _0x2f8390=a124_0x55297e,_0x4ae5f8={'NStYU':function(_0x215ab9,_0x54bd5f){return _0x215ab9(_0x54bd5f);},'dCzmx':function(_0xe02228,_0x40deab){return _0xe02228(_0x40deab);},'ZmLnj':function(_0x4ed98e,_0x1ae819){return _0x4ed98e(_0x1ae819);}},_0x2489c5=_0x5a8584[_0x2f8390(0x219)],_0x52b688=_0x5a8584[_0x2f8390(0x237)];!_0x1427f6&&(_0x1427f6=_0x4ae5f8[_0x2f8390(0x1f7)](getBrowserStackConfig,_0x2489c5));!_0x52b688&&_0x4ae5f8[_0x2f8390(0x211)](getFrameworkVersion,_0x2489c5);const _0x3b3ed9={};_0x3b3ed9[_0x2f8390(0x219)]=_0x2489c5,_0x3b3ed9[_0x2f8390(0x237)]=_0x52b688,this[_0x2f8390(0x20a)](_0x3b3ed9,_0x1c2bdb,_0x4ae5f8[_0x2f8390(0x1fe)](getUserCredentials,_0x1427f6));}static['setCredentials'](_0xe6b84c,_0x1fec55){const _0x5baa00=a124_0x55297e,_0x3c91de={};_0x3c91de[_0x5baa00(0x22e)]=_0xe6b84c,_0x3c91de[_0x5baa00(0x1f8)]=_0x1fec55,this[_0x5baa00(0x22f)]=_0x3c91de,process[_0x5baa00(0x204)][_0x5baa00(0x1e8)]=JSON[_0x5baa00(0x209)](this[_0x5baa00(0x22f)]);}static[a124_0x55297e(0x1e0)](){const _0x2bcd94=a124_0x55297e,_0x4f8fa7={'kmdke':function(_0x26d217,_0x591d63){return _0x26d217(_0x591d63);}};if(!this[_0x2bcd94(0x22f)]&&process[_0x2bcd94(0x204)]['CREDENTIALS_FOR_CRASH_REPORTING'])try{this[_0x2bcd94(0x22f)]=JSON[_0x2bcd94(0x213)](process['env'][_0x2bcd94(0x1e8)]);}catch(_0x3cf02b){_0x4f8fa7[_0x2bcd94(0x212)](debug,_0x2bcd94(0x1f4)+_0x3cf02b['toString']());}return this[_0x2bcd94(0x22f)];}static[a124_0x55297e(0x227)](_0x195b73){const _0x1885e0=a124_0x55297e;this['userConfig']=this['filterPII'](_0x195b73),process[_0x1885e0(0x204)][_0x1885e0(0x22b)]=JSON['stringify'](this[_0x1885e0(0x23a)]);}static[a124_0x55297e(0x1e4)](){const _0x3cb80f=a124_0x55297e,_0x144299={'IFcRv':function(_0x143835,_0x2f74f3){return _0x143835===_0x2f74f3;},'hphNB':function(_0x584b23,_0x440c6a){return _0x584b23(_0x440c6a);}};if(_0x144299['IFcRv'](Object[_0x3cb80f(0x21c)](this[_0x3cb80f(0x23a)])[_0x3cb80f(0x202)],0x0)&&process['env'][_0x3cb80f(0x22b)])try{this[_0x3cb80f(0x23a)]=JSON[_0x3cb80f(0x213)](process[_0x3cb80f(0x204)]['USER_CONFIG_FOR_REPORTING']);}catch(_0x51f4b6){_0x144299['hphNB'](debug,_0x3cb80f(0x22a)+_0x51f4b6[_0x3cb80f(0x24c)]()),this['userConfig']={};}return this[_0x3cb80f(0x23a)];}static[a124_0x55297e(0x240)](_0x33c4f7){const _0x2aa7c4=a124_0x55297e;this[_0x2aa7c4(0x1fd)]=_0x33c4f7,process[_0x2aa7c4(0x204)][_0x2aa7c4(0x20d)]=JSON['stringify'](this[_0x2aa7c4(0x1fd)]);}static['getFramework'](){const _0x2ae9f7=a124_0x55297e,_0x4c3a91={'OfMWe':function(_0x4227e8,_0x2cd894){return _0x4227e8===_0x2cd894;},'ostyF':function(_0x123615,_0x1d97c2){return _0x123615(_0x1d97c2);}};if(_0x4c3a91[_0x2ae9f7(0x20e)](Object[_0x2ae9f7(0x21c)](this['frameworkDetails'])['length'],0x0)&&process['env'][_0x2ae9f7(0x20d)])try{this[_0x2ae9f7(0x1fd)]=JSON[_0x2ae9f7(0x213)](process[_0x2ae9f7(0x204)][_0x2ae9f7(0x20d)]);}catch(_0x4a3d3a){_0x4c3a91[_0x2ae9f7(0x205)](debug,_0x2ae9f7(0x1f4)+_0x4a3d3a[_0x2ae9f7(0x24c)]());}return this[_0x2ae9f7(0x1fd)];}static['setAllDetails'](_0x1bc888,_0x5d38ce,_0x47d51e){const _0x666ea6=a124_0x55297e;_0x1bc888&&this[_0x666ea6(0x240)](_0x1bc888),_0x5d38ce&&this[_0x666ea6(0x227)](_0x5d38ce),_0x47d51e&&this[_0x666ea6(0x222)](_0x47d51e[_0x666ea6(0x22e)],_0x47d51e[_0x666ea6(0x1f8)]);}static async[a124_0x55297e(0x1db)](_0x4c6b8b,_0x3f0811){const _0x1fc2a8=a124_0x55297e,_0x18b4d7={'iesSo':function(_0x346e67,_0x3d845c){return _0x346e67(_0x3d845c);},'UULRI':function(_0x4e3383,_0x4a8f8c){return _0x4e3383(_0x4a8f8c);},'MRXNQ':function(_0x2614b8,_0x210e35){return _0x2614b8(_0x210e35);},'TRfag':_0x1fc2a8(0x1f9),'vXxYO':function(_0x1c06fe){return _0x1c06fe();},'uhRID':_0x1fc2a8(0x23b),'dOpNh':_0x1fc2a8(0x21e),'eVlek':_0x1fc2a8(0x24e),'JUHmr':function(_0x28a026,_0x2225b2,_0x1d7446,_0xce4e02,_0x5c1797,_0x1eb9bc){return _0x28a026(_0x2225b2,_0x1d7446,_0xce4e02,_0x5c1797,_0x1eb9bc);},'UXFle':'POST'};this[_0x1fc2a8(0x1e0)]();if(!this[_0x1fc2a8(0x22f)])return _0x18b4d7[_0x1fc2a8(0x24b)](debug,_0x18b4d7[_0x1fc2a8(0x245)]);this[_0x1fc2a8(0x1e4)](),this[_0x1fc2a8(0x210)]();const _0x2a5def={'hashed_id':process[_0x1fc2a8(0x204)][_0x1fc2a8(0x1ed)],'observability_version':{'sdkVersion':_0x18b4d7[_0x1fc2a8(0x206)](getAgentVersion),'frameworkName':this[_0x1fc2a8(0x1fd)][_0x1fc2a8(0x219)],'frameworkVersion':this[_0x1fc2a8(0x1fd)][_0x1fc2a8(0x237)]},'exception':{'error':_0x4c6b8b[_0x1fc2a8(0x24c)](),'stackTrace':_0x3f0811},'config':this[_0x1fc2a8(0x23a)]},_0x36e993=_0x18b4d7['uhRID'],_0x1f0a5a={};_0x1f0a5a[_0x1fc2a8(0x22e)]=this['credentials'][_0x1fc2a8(0x22e)],_0x1f0a5a[_0x1fc2a8(0x236)]=this['credentials'][_0x1fc2a8(0x1f8)];const _0x4e6475={};_0x4e6475[_0x1fc2a8(0x1dc)]=_0x18b4d7[_0x1fc2a8(0x208)],_0x4e6475[_0x1fc2a8(0x1e9)]=_0x18b4d7['eVlek'];const _0x53e070={};_0x53e070[_0x1fc2a8(0x1fb)]=_0x1f0a5a,_0x53e070[_0x1fc2a8(0x229)]=_0x4e6475;const _0x4c656d=_0x53e070;_0x18b4d7['JUHmr'](nodeRequest,_0x18b4d7[_0x1fc2a8(0x1f2)],_0x36e993,_0x2a5def,_0x4c656d,![])[_0x1fc2a8(0x1e1)](_0x5bebec=>{const _0x374a7c=_0x1fc2a8;_0x18b4d7[_0x374a7c(0x1f0)](debug,'[Crash_Report_Upload]\x20Success\x20response:\x20'+JSON[_0x374a7c(0x209)](_0x5bebec));})[_0x1fc2a8(0x1f1)](_0x4e6162=>{const _0x2ad71a=_0x1fc2a8;_0x18b4d7[_0x2ad71a(0x235)](debug,_0x2ad71a(0x1de)+util[_0x2ad71a(0x1f5)](_0x4e6162));});}static[a124_0x55297e(0x231)](_0x52e9c0){const _0xc70fa1=a124_0x55297e,_0x4c7e14={};_0x4c7e14[_0xc70fa1(0x207)]=_0xc70fa1(0x22c),_0x4c7e14['rTSBD']=_0xc70fa1(0x22e),_0x4c7e14[_0xc70fa1(0x1ef)]=_0xc70fa1(0x223),_0x4c7e14[_0xc70fa1(0x201)]=_0xc70fa1(0x1f8),_0x4c7e14['YNOng']=_0xc70fa1(0x236),_0x4c7e14['OfNHh']=function(_0x4bf677,_0x20b3e6){return _0x4bf677===_0x20b3e6;},_0x4c7e14['WVDLA']=_0xc70fa1(0x243);const _0x1a495f=_0x4c7e14;if(!_0x52e9c0)return;const _0x135d5f=[_0x1a495f[_0xc70fa1(0x207)],_0x1a495f[_0xc70fa1(0x226)],_0x1a495f[_0xc70fa1(0x1ef)],_0x1a495f[_0xc70fa1(0x201)],_0x1a495f['YNOng']];for(const _0x5a70bf in _0x52e9c0){if(_0x135d5f[_0xc70fa1(0x1dd)](_0x5a70bf[_0xc70fa1(0x24a)]()))delete _0x52e9c0[_0x5a70bf];else _0x1a495f[_0xc70fa1(0x217)](typeof _0x52e9c0[_0x5a70bf],_0x1a495f['WVDLA'])&&this[_0xc70fa1(0x231)](_0x52e9c0[_0x5a70bf]);}}static[a124_0x55297e(0x215)](_0x299807){const _0x602ba4=a124_0x55297e,_0xdeffa5=JSON[_0x602ba4(0x213)](JSON['stringify'](_0x299807));return this[_0x602ba4(0x231)](_0xdeffa5),_0xdeffa5;}}const a124_0x3af12b={};a124_0x3af12b[a124_0x55297e(0x248)]=o11yErrorHandler,a124_0x3af12b[a124_0x55297e(0x228)]=o11yClassErrorHandler,a124_0x3af12b[a124_0x55297e(0x1e5)]=CrashReporter,module[a124_0x55297e(0x20c)]=a124_0x3af12b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a125_0x589050=a125_0x5bef;function a125_0x5bef(_0x5c918d,_0x58cd2c){const _0x4b22b7=a125_0x4b22();return a125_0x5bef=function(_0x5bef20,_0x28e418){_0x5bef20=_0x5bef20-0x1cc;let _0x497000=_0x4b22b7[_0x5bef20];return _0x497000;},a125_0x5bef(_0x5c918d,_0x58cd2c);}(function(_0x3b310f,_0x328191){const _0x665dd0=a125_0x5bef,_0x3604ff=_0x3b310f();while(!![]){try{const _0x54f0ad=-parseInt(_0x665dd0(0x1cc))/0x1*(parseInt(_0x665dd0(0x21e))/0x2)+-parseInt(_0x665dd0(0x205))/0x3*(parseInt(_0x665dd0(0x1d5))/0x4)+parseInt(_0x665dd0(0x202))/0x5*(parseInt(_0x665dd0(0x1f6))/0x6)+-parseInt(_0x665dd0(0x219))/0x7*(parseInt(_0x665dd0(0x204))/0x8)+-parseInt(_0x665dd0(0x1e4))/0x9*(-parseInt(_0x665dd0(0x1fa))/0xa)+-parseInt(_0x665dd0(0x1f0))/0xb*(parseInt(_0x665dd0(0x1eb))/0xc)+parseInt(_0x665dd0(0x231))/0xd;if(_0x54f0ad===_0x328191)break;else _0x3604ff['push'](_0x3604ff['shift']());}catch(_0x18edc7){_0x3604ff['push'](_0x3604ff['shift']());}}}(a125_0x4b22,0x5ab13));const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require(a125_0x589050(0x1df)),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require(a125_0x589050(0x1d9)),{nestedKeyValue}=require(a125_0x589050(0x232)),util=require(a125_0x589050(0x1f5)),constants=require(a125_0x589050(0x23c));class RequestQueueHandler{static [a125_0x589050(0x1d2)];[a125_0x589050(0x1e1)]=0x0;constructor(){const _0x5ca085=a125_0x589050,_0x15e8e0={};_0x15e8e0[_0x5ca085(0x1f8)]=_0x5ca085(0x21f),_0x15e8e0[_0x5ca085(0x214)]=_0x5ca085(0x203),_0x15e8e0[_0x5ca085(0x1f4)]=_0x5ca085(0x1f1),_0x15e8e0[_0x5ca085(0x216)]='LogCreated',_0x15e8e0['uCFHI']='CBTSessionCreated',_0x15e8e0[_0x5ca085(0x207)]='TestRunFinished',_0x15e8e0[_0x5ca085(0x208)]=_0x5ca085(0x1e7),_0x15e8e0[_0x5ca085(0x218)]='HookRunFinished',_0x15e8e0[_0x5ca085(0x1e5)]=_0x5ca085(0x241),_0x15e8e0[_0x5ca085(0x1f9)]=_0x5ca085(0x20b),_0x15e8e0[_0x5ca085(0x210)]=_0x5ca085(0x239);const _0x1bfb73=_0x15e8e0,_0x3490e7=_0x1bfb73[_0x5ca085(0x1f8)]['split']('|');let _0x3ec275=0x0;while(!![]){switch(_0x3490e7[_0x3ec275++]){case'0':this[_0x5ca085(0x1e9)]=![];continue;case'1':this['screenshotEventUrl']=_0x1bfb73[_0x5ca085(0x214)];continue;case'2':this[_0x5ca085(0x1fe)]=_0x1bfb73[_0x5ca085(0x1f4)];continue;case'3':this[_0x5ca085(0x1e0)]=[_0x1bfb73[_0x5ca085(0x216)],_0x1bfb73[_0x5ca085(0x1da)],_0x1bfb73[_0x5ca085(0x207)],_0x1bfb73[_0x5ca085(0x208)],_0x1bfb73[_0x5ca085(0x218)],_0x1bfb73['Mzfco'],_0x1bfb73[_0x5ca085(0x1f9)]];continue;case'4':this[_0x5ca085(0x1cf)]=_0x1bfb73['jwJHL'];continue;case'5':this[_0x5ca085(0x21b)]=[];continue;case'6':this[_0x5ca085(0x20c)]=null;continue;}break;}}static['getInstance'](){const _0x478f7a=a125_0x589050;return!RequestQueueHandler['instance']&&(RequestQueueHandler[_0x478f7a(0x1d2)]=new RequestQueueHandler()),RequestQueueHandler[_0x478f7a(0x1d2)];}['start']=()=>{const _0x1208db=a125_0x589050;!this[_0x1208db(0x1e9)]&&(this[_0x1208db(0x1e9)]=!![],this[_0x1208db(0x23b)]());};[a125_0x589050(0x1ed)]=_0x51f636=>{const _0x4d005e=a125_0x589050,_0xffac31={'bYaOm':function(_0x5ab52e,_0x39b684){return _0x5ab52e===_0x39b684;},'zVeXe':'TEST_SCREENSHOT','obJdl':function(_0x8a8483,_0x25a2e0){return _0x8a8483>_0x25a2e0;},'iMwpG':function(_0x4c046f,_0x347cbe){return _0x4c046f===_0x347cbe;},'nAnhU':'TEST_ATTACHMENT','NAdQa':function(_0x5a5d2a,_0x13f7ed){return _0x5a5d2a!==_0x13f7ed;},'PiHHE':_0x4d005e(0x229),'oDYPU':function(_0x58bf1e,_0x2f6044){return _0x58bf1e(_0x2f6044);},'CAYko':_0x4d005e(0x221)};if(this[_0x4d005e(0x1e0)]['includes'](_0x51f636[_0x4d005e(0x1e6)])){if(_0x51f636[_0x4d005e(0x22c)]&&_0x51f636['logs'][0x0]&&_0xffac31[_0x4d005e(0x215)](_0x51f636['logs'][0x0][_0x4d005e(0x227)],_0xffac31['zVeXe'])){const _0x25aef9={};return _0x25aef9[_0x4d005e(0x1fd)]=!![],_0x25aef9[_0x4d005e(0x20e)]=[_0x51f636],_0x25aef9[_0x4d005e(0x22b)]=this['screenshotEventUrl'],_0x25aef9;}if(_0x51f636[_0x4d005e(0x22c)]&&_0xffac31['obJdl'](_0x51f636['logs']['length'],0x0)&&_0xffac31[_0x4d005e(0x21a)](_0x51f636[_0x4d005e(0x22c)][0x0][_0x4d005e(0x227)],_0xffac31[_0x4d005e(0x230)])&&_0xffac31[_0x4d005e(0x238)](_0x51f636[_0x4d005e(0x1e6)],_0xffac31['PiHHE'])){const _0x108a5c={};return _0x108a5c[_0x4d005e(0x1fd)]=!![],_0x108a5c[_0x4d005e(0x20e)]=[_0x51f636],_0x108a5c[_0x4d005e(0x22b)]=this[_0x4d005e(0x1cf)],_0x108a5c;}this[_0x4d005e(0x21b)][_0x4d005e(0x21c)](_0x51f636);let _0x1c6472=null;const _0x6f096c=this[_0x4d005e(0x1fd)]();_0x6f096c&&(_0xffac31[_0x4d005e(0x1ef)](trace,_0xffac31['CAYko']),_0x1c6472=this[_0x4d005e(0x21b)][_0x4d005e(0x23e)](0x0,BATCH_SIZE),this[_0x4d005e(0x21b)]['splice'](0x0,BATCH_SIZE),this[_0x4d005e(0x23d)]());const _0x12eaab={};return _0x12eaab[_0x4d005e(0x1fd)]=_0x6f096c,_0x12eaab[_0x4d005e(0x20e)]=_0x1c6472,_0x12eaab[_0x4d005e(0x22b)]=this[_0x4d005e(0x1fe)],_0x12eaab;}const _0x3a491e={};return _0x3a491e[_0x4d005e(0x1fd)]=!![],_0x3a491e;};[a125_0x589050(0x1d8)]=async()=>{const _0x1bfbc0=a125_0x589050,_0x561cee={'bIiij':_0x1bfbc0(0x224),'vFKdA':function(_0x2070fb,_0x237534){return _0x2070fb>_0x237534;},'iFkWS':_0x1bfbc0(0x209),'FYdRc':function(_0x1e507a,_0x5e5a51){return _0x1e507a(_0x5e5a51);}};await this['uploadPending'](),this[_0x1bfbc0(0x1f3)](_0x561cee[_0x1bfbc0(0x22d)]);while(_0x561cee[_0x1bfbc0(0x20a)](this[_0x1bfbc0(0x21b)]['length'],0x0)){const _0x28dcd4=this[_0x1bfbc0(0x21b)][_0x1bfbc0(0x23e)](0x0,BATCH_SIZE);this[_0x1bfbc0(0x21b)][_0x1bfbc0(0x22f)](0x0,BATCH_SIZE),await this[_0x1bfbc0(0x1ea)](this[_0x1bfbc0(0x1fe)],_0x561cee['iFkWS'],_0x28dcd4);}_0x561cee[_0x1bfbc0(0x20a)](this[_0x1bfbc0(0x1e1)],0x0)&&_0x561cee[_0x1bfbc0(0x225)](debug,'Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20'+this['pendingUploads']);};[a125_0x589050(0x1ea)]=async(_0x124ed8,_0x166135,_0x30e16f)=>{const _0x237886=a125_0x589050,_0x1be018={'XLScF':function(_0x4a2a93,_0x321ea9){return _0x4a2a93(_0x321ea9);},'udUvm':_0x237886(0x206),'bJKby':function(_0x5a9a4d){return _0x5a9a4d();},'Hxirb':function(_0x5efcc8,_0x5e16db,_0x398557,_0x5dc952,_0x2e1a06){return _0x5efcc8(_0x5e16db,_0x398557,_0x5dc952,_0x2e1a06);},'auIZj':_0x237886(0x233),'ZfvNN':function(_0x290525,_0x2cff3d){return _0x290525(_0x2cff3d);},'WOgPg':function(_0x58a41d,_0x2fcbc5){return _0x58a41d-_0x2fcbc5;},'aIFNx':function(_0x13cfb0,_0x510fe4){return _0x13cfb0(_0x510fe4);},'BgKCB':function(_0x2afc98,_0x2b5619){return _0x2afc98-_0x2b5619;}};let _0x305b90='';try{_0x305b90=_0x30e16f[_0x237886(0x1d0)](_0x5535eb=>'\x27'+_0x5535eb[_0x237886(0x1e6)]+'\x27:'+(nestedKeyValue(_0x5535eb,['test_run','uuid'])||nestedKeyValue(_0x5535eb,['hook_run',_0x237886(0x1de)])))[_0x237886(0x1d6)](','),_0x1be018[_0x237886(0x22a)](debug,_0x237886(0x1fc)+_0x166135+'.\x20Request\x20Size\x20-\x20'+Buffer[_0x237886(0x1e2)](util['format']('%j',_0x30e16f),_0x1be018['udUvm'])+_0x237886(0x1e8)+_0x305b90);}catch(_0x4514b6){_0x1be018[_0x237886(0x22a)](debug,_0x237886(0x1cd)+util['format'](_0x4514b6)+'}');}const _0x32c545={'headers':_0x1be018[_0x237886(0x22e)](getDefaultHeaders)};try{const _0x814c51=await _0x1be018[_0x237886(0x1dc)](nodeRequest,_0x1be018[_0x237886(0x234)],_0x124ed8,_0x30e16f,_0x32c545);if(_0x814c51[_0x237886(0x21d)][_0x237886(0x1f7)]){const _0x5e5ac3={};_0x5e5ac3[_0x237886(0x240)]=_0x814c51[_0x237886(0x21d)]['error'];throw _0x5e5ac3;}else _0x1be018[_0x237886(0x211)](debug,_0x166135+_0x237886(0x226)+_0x305b90+_0x237886(0x1d4)+util[_0x237886(0x23f)]('%j',_0x814c51['data'])),this['pendingUploads']=Math['max'](0x0,_0x1be018[_0x237886(0x1d1)](this[_0x237886(0x1e1)],_0x30e16f[_0x237886(0x237)]));}catch(_0x443f9c){_0x443f9c[_0x237886(0x222)]?_0x1be018[_0x237886(0x213)](debug,'EXCEPTION\x20IN\x20'+_0x166135+_0x237886(0x223)+constants[_0x237886(0x200)]+_0x237886(0x1ce)+_0x443f9c[_0x237886(0x222)][_0x237886(0x20d)]+'\x20'+_0x443f9c[_0x237886(0x222)][_0x237886(0x1d7)]+'\x20'+util[_0x237886(0x23f)]('%j',_0x443f9c[_0x237886(0x222)])):_0x1be018['aIFNx'](debug,_0x237886(0x1ec)+_0x166135+'\x20REQUEST\x20TO\x20'+constants[_0x237886(0x200)]+'\x20:\x20'+(_0x443f9c[_0x237886(0x240)]||_0x443f9c)),this[_0x237886(0x1e1)]=Math[_0x237886(0x1d3)](0x0,_0x1be018[_0x237886(0x217)](this[_0x237886(0x1e1)],_0x30e16f['length']));}};[a125_0x589050(0x23b)]=()=>{const _0x2312db=a125_0x589050,_0x341394={'BGFTF':function(_0x590922,_0x28e6a2){return _0x590922>_0x28e6a2;},'pvwbq':function(_0xe9b1c6,_0x28922c){return _0xe9b1c6(_0x28922c);},'PDBjC':_0x2312db(0x228),'ZUrMW':function(_0x16f791,_0x23f3a3,_0x234ba2){return _0x16f791(_0x23f3a3,_0x234ba2);}};this[_0x2312db(0x20c)]=_0x341394[_0x2312db(0x1db)](setInterval,async()=>{const _0x15d15e=_0x2312db;if(_0x341394[_0x15d15e(0x201)](this[_0x15d15e(0x21b)][_0x15d15e(0x237)],0x0)){_0x341394['pvwbq'](trace,'Processing\x20events.\x20Queue\x20Length\x20-\x20'+this[_0x15d15e(0x21b)][_0x15d15e(0x237)]);const _0x27bed9=this['queue'][_0x15d15e(0x23e)](0x0,BATCH_SIZE);this[_0x15d15e(0x21b)][_0x15d15e(0x22f)](0x0,BATCH_SIZE),await this[_0x15d15e(0x1ea)](this[_0x15d15e(0x1fe)],_0x341394['PDBjC'],_0x27bed9),_0x341394[_0x15d15e(0x220)](trace,_0x15d15e(0x235)+this[_0x15d15e(0x21b)]['length']);}},BATCH_INTERVAL);};[a125_0x589050(0x23d)]=()=>{const _0x46744d=a125_0x589050,_0xc6a3fc={};_0xc6a3fc['andfg']=_0x46744d(0x1ff);const _0x179ab7=_0xc6a3fc;this['removeEventBatchPolling'](_0x179ab7[_0x46744d(0x20f)]),this[_0x46744d(0x23b)]();};[a125_0x589050(0x1f3)]=_0x3ff5c2=>{const _0x5d5762=a125_0x589050,_0x4e54f5={'BEkMX':function(_0x521ef0,_0x531648){return _0x521ef0(_0x531648);},'sfifp':function(_0x3a8b35,_0x429590){return _0x3a8b35===_0x429590;},'bnTjB':_0x5d5762(0x224)};this[_0x5d5762(0x20c)]&&(_0x4e54f5['BEkMX'](clearInterval,this[_0x5d5762(0x20c)]),this[_0x5d5762(0x20c)]=null,_0x4e54f5[_0x5d5762(0x1ee)](_0x3ff5c2,_0x4e54f5[_0x5d5762(0x236)])&&(this['started']=![]));};['shouldProceed']=()=>{const _0x22debd=a125_0x589050,_0x2f65db={};_0x2f65db[_0x22debd(0x1dd)]=function(_0xa007e,_0x45b1e0){return _0xa007e>=_0x45b1e0;};const _0x22843f=_0x2f65db;return _0x22843f[_0x22debd(0x1dd)](this[_0x22debd(0x21b)][_0x22debd(0x237)],BATCH_SIZE);};async[a125_0x589050(0x212)](_0x7db62a=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x4ad393=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x595dfc=a125_0x589050,_0x3d88ab={'udaKF':function(_0x1f37bb,_0x31421b){return _0x1f37bb<=_0x31421b;},'KIxbn':function(_0x58ec0a,_0x14ece5){return _0x58ec0a(_0x14ece5);},'rsEYQ':function(_0x522333,_0x1d845c){return _0x522333-_0x1d845c;}};if(_0x3d88ab[_0x595dfc(0x1f2)](this['pendingUploads'],0x0)||_0x3d88ab['udaKF'](_0x7db62a,0x0))return;return await _0x3d88ab[_0x595dfc(0x1fb)](sleep,_0x4ad393),this[_0x595dfc(0x212)](_0x3d88ab[_0x595dfc(0x1e3)](_0x7db62a,_0x4ad393));}}module[a125_0x589050(0x23a)]=RequestQueueHandler;function a125_0x4b22(){const _0x17d5b3=['proceedWithData','andfg','jwJHL','ZfvNN','uploadPending','aIFNx','VrFrS','bYaOm','GNOYl','BgKCB','LzQfM','1499029DzaGus','iMwpG','queue','push','data','4748hJvkHX','5|0|2|1|4|3|6','pvwbq','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','response','\x20REQUEST\x20TO\x20','REMOVING','FYdRc','\x20event\x20successful\x20for\x20events\x20','kind','Interval-Queue','TestRunFinished','XLScF','proceedWithUrl','logs','bIiij','bJKby','splice','nAnhU','13272168txUffT','../helper','POST','auIZj','Remaining\x20Queue\x20Length\x20-\x20','bnTjB','length','NAdQa','upload-attachments','exports','startEventBatchPolling','../../bin/utils/constants','resetEventBatchPolling','slice','format','message','TestRunStarted','159GHOvds','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','\x20:\x20','uploadAttachmentUrl','map','WOgPg','instance','max','\x20--\x20','212vjsZpZ','join','statusText','shutdown','./utils','uCFHI','ZUrMW','Hxirb','UjnRq','uuid','./constants','BATCH_EVENT_TYPES','pendingUploads','byteLength','rsEYQ','54jyFUxK','Mzfco','event_type','TestRunSkipped','\x20bytes.\x20Events\x20are\x20','started','batchAndPostEvents','12scMZEg','EXCEPTION\x20IN\x20','add','sfifp','oDYPU','5525465QYyKmk','api/v1/batch','udaKF','removeEventBatchPolling','nOTSV','util','18NsUYTp','error','bSWlq','JxIZS','199150KQxzcG','KIxbn','Processing\x20batch\x20events\x20for\x20','shouldProceed','eventUrl','RESETTING','TEST_REPORTING_ANALYTICS','BGFTF','954675gQsLYY','api/v1/screenshots','8yuIury','14028aSspxQ','utf8','GrgJs','LLGYS','Shutdown-Queue','vFKdA','HookRunStarted','pollEventBatchInterval','status'];a125_0x4b22=function(){return _0x17d5b3;};return a125_0x4b22();}
|
|
1
|
+
const a125_0x32f33c=a125_0x1fe0;(function(_0x59cb6c,_0x3163c4){const _0x406257=a125_0x1fe0,_0x30248c=_0x59cb6c();while(!![]){try{const _0x4b460b=-parseInt(_0x406257(0xc4))/0x1*(-parseInt(_0x406257(0xc8))/0x2)+-parseInt(_0x406257(0x9d))/0x3*(parseInt(_0x406257(0x7d))/0x4)+-parseInt(_0x406257(0x9c))/0x5*(-parseInt(_0x406257(0xc0))/0x6)+-parseInt(_0x406257(0xd4))/0x7+parseInt(_0x406257(0xac))/0x8+-parseInt(_0x406257(0xb8))/0x9+-parseInt(_0x406257(0x81))/0xa*(-parseInt(_0x406257(0xa2))/0xb);if(_0x4b460b===_0x3163c4)break;else _0x30248c['push'](_0x30248c['shift']());}catch(_0x364386){_0x30248c['push'](_0x30248c['shift']());}}}(a125_0x1c10,0xe13d7));function a125_0x1c10(){const _0x50a886=['46122YNBOFE','RqQxw','jBJuS','data','125mQldMU','AUKKl','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','max','13310PDpafR','util','qUwCC','instance','VljPt','Processing\x20batch\x20events\x20for\x20','../../bin/utils/constants','started','CBTSessionCreated','DQWvn','HookRunStarted','response','9079028chkRqn','TestRunFinished','YQlhk','rjCxX','Interval-Queue','Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20','rOqhn','removeEventBatchPolling','proceedWithData','pendingUploads','./constants','jSWPO','Zuhdo','\x20:\x20','iDsBd','.\x20Request\x20Size\x20-\x20','vmrFS','wdgxR','\x20--\x20','nKkmY','vJbtS','HiONu','dBlqA','slice','format','mvBIR','eQvSB','CnCiQ','cJtRL','uuid','status','0|2|6|3|5|1|4','error','logs','32716GblZNr','uploadAttachmentUrl','getInstance','ceZNZ','820eoEypT','DxLog','yxHgJ','hook_run','jHKSq','startEventBatchPolling','ZDiqV','proceedWithUrl','TestRunStarted','Remaining\x20Queue\x20Length\x20-\x20','ntEWz','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','start','IVgDq','REMOVING','uyyBL','TestRunSkipped','Processing\x20events.\x20Queue\x20Length\x20-\x20','XKyLK','message','queue','uploadPending','kind','test_run','utf8','\x20event\x20successful\x20for\x20events\x20','includes','815NezefE','522XdkoeY','add','statusText','Shutdown-Queue','pollEventBatchInterval','342243vzLLfr','batchAndPostEvents','LLYOm','ITYpC','RESETTING','shouldProceed','eventUrl','EXCEPTION\x20IN\x20','nyiMw','\x20REQUEST\x20TO\x20','3941224FDrnDG','resetEventBatchPolling','MjGkb','map','event_type','length','exports','splice','UDcio','screenshotEventUrl','IfJwZ','CjvjU','13374378CSwHWX','tiPFQ','TEST_REPORTING_ANALYTICS','NWCnV','split','BATCH_EVENT_TYPES','HookRunFinished','HFIoO'];a125_0x1c10=function(){return _0x50a886;};return a125_0x1c10();}function a125_0x1fe0(_0x432046,_0x373d00){const _0x1c10fd=a125_0x1c10();return a125_0x1fe0=function(_0x1fe050,_0x28442b){_0x1fe050=_0x1fe050-0x67;let _0xf24710=_0x1c10fd[_0x1fe050];return _0xf24710;},a125_0x1fe0(_0x432046,_0x373d00);}const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require(a125_0x32f33c(0xde)),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require('./utils'),{nestedKeyValue}=require('../helper'),util=require(a125_0x32f33c(0xc9)),constants=require(a125_0x32f33c(0xce));class RequestQueueHandler{static [a125_0x32f33c(0xcb)];[a125_0x32f33c(0xdd)]=0x0;constructor(){const _0xe34d8f=a125_0x32f33c,_0xd9357e={};_0xd9357e[_0xe34d8f(0xb7)]=_0xe34d8f(0x7a),_0xd9357e[_0xe34d8f(0x71)]='LogCreated',_0xd9357e[_0xe34d8f(0xc1)]=_0xe34d8f(0xd0),_0xd9357e[_0xe34d8f(0xb4)]=_0xe34d8f(0xd5),_0xd9357e[_0xe34d8f(0x85)]=_0xe34d8f(0x91),_0xd9357e[_0xe34d8f(0x93)]=_0xe34d8f(0xbe),_0xd9357e[_0xe34d8f(0x76)]=_0xe34d8f(0x89),_0xd9357e['wdgxR']=_0xe34d8f(0xd2),_0xd9357e[_0xe34d8f(0x90)]='api/v1/screenshots',_0xd9357e[_0xe34d8f(0xb9)]='upload-attachments',_0xd9357e['kFwFX']='api/v1/batch';const _0x146fa6=_0xd9357e,_0x1f6583=_0x146fa6['CjvjU'][_0xe34d8f(0xbc)]('|');let _0xb13e23=0x0;while(!![]){switch(_0x1f6583[_0xb13e23++]){case'0':this[_0xe34d8f(0x95)]=[];continue;case'1':this[_0xe34d8f(0xbd)]=[_0x146fa6[_0xe34d8f(0x71)],_0x146fa6[_0xe34d8f(0xc1)],_0x146fa6[_0xe34d8f(0xb4)],_0x146fa6[_0xe34d8f(0x85)],_0x146fa6[_0xe34d8f(0x93)],_0x146fa6[_0xe34d8f(0x76)],_0x146fa6[_0xe34d8f(0x6c)]];continue;case'2':this['started']=![];continue;case'3':this[_0xe34d8f(0xb5)]=_0x146fa6['uyyBL'];continue;case'4':this[_0xe34d8f(0xa1)]=null;continue;case'5':this[_0xe34d8f(0x7e)]=_0x146fa6[_0xe34d8f(0xb9)];continue;case'6':this[_0xe34d8f(0xa8)]=_0x146fa6['kFwFX'];continue;}break;}}static[a125_0x32f33c(0x7f)](){const _0x4712a8=a125_0x32f33c;return!RequestQueueHandler[_0x4712a8(0xcb)]&&(RequestQueueHandler[_0x4712a8(0xcb)]=new RequestQueueHandler()),RequestQueueHandler[_0x4712a8(0xcb)];}[a125_0x32f33c(0x8d)]=()=>{const _0x51aae4=a125_0x32f33c;!this['started']&&(this[_0x51aae4(0xcf)]=!![],this[_0x51aae4(0x86)]());};[a125_0x32f33c(0x9e)]=_0x57f7df=>{const _0xd59c16=a125_0x32f33c,_0x4b7f26={'VljPt':function(_0x13e6fe,_0x2f716b){return _0x13e6fe===_0x2f716b;},'vmrFS':'TEST_SCREENSHOT','ITYpC':function(_0x36abb4,_0x108cf5){return _0x36abb4>_0x108cf5;},'YrPqJ':function(_0x5500f1,_0xe5b8d6){return _0x5500f1===_0xe5b8d6;},'nKkmY':'TEST_ATTACHMENT','SbDhR':function(_0x4cf34a,_0x3b926a){return _0x4cf34a!==_0x3b926a;},'ceZNZ':_0xd59c16(0xd5),'vJbtS':function(_0x29890b,_0x1cdfdb){return _0x29890b(_0x1cdfdb);},'yxHgJ':_0xd59c16(0x8c)};if(this[_0xd59c16(0xbd)][_0xd59c16(0x9b)](_0x57f7df[_0xd59c16(0xb0)])){if(_0x57f7df[_0xd59c16(0x7c)]&&_0x57f7df[_0xd59c16(0x7c)][0x0]&&_0x4b7f26[_0xd59c16(0xcc)](_0x57f7df[_0xd59c16(0x7c)][0x0][_0xd59c16(0x97)],_0x4b7f26[_0xd59c16(0x6b)])){const _0x5d8593={};return _0x5d8593[_0xd59c16(0xa7)]=!![],_0x5d8593[_0xd59c16(0xdc)]=[_0x57f7df],_0x5d8593[_0xd59c16(0x88)]=this[_0xd59c16(0xb5)],_0x5d8593;}if(_0x57f7df[_0xd59c16(0x7c)]&&_0x4b7f26[_0xd59c16(0xa5)](_0x57f7df[_0xd59c16(0x7c)][_0xd59c16(0xb1)],0x0)&&_0x4b7f26['YrPqJ'](_0x57f7df['logs'][0x0][_0xd59c16(0x97)],_0x4b7f26[_0xd59c16(0x6e)])&&_0x4b7f26['SbDhR'](_0x57f7df[_0xd59c16(0xb0)],_0x4b7f26[_0xd59c16(0x80)])){const _0x4ad0a4={};return _0x4ad0a4['shouldProceed']=!![],_0x4ad0a4[_0xd59c16(0xdc)]=[_0x57f7df],_0x4ad0a4['proceedWithUrl']=this[_0xd59c16(0x7e)],_0x4ad0a4;}this[_0xd59c16(0x95)]['push'](_0x57f7df);let _0x5cada7=null;const _0x15f0e1=this[_0xd59c16(0xa7)]();_0x15f0e1&&(_0x4b7f26[_0xd59c16(0x6f)](trace,_0x4b7f26[_0xd59c16(0x83)]),_0x5cada7=this['queue']['slice'](0x0,BATCH_SIZE),this[_0xd59c16(0x95)][_0xd59c16(0xb3)](0x0,BATCH_SIZE),this[_0xd59c16(0xad)]());const _0x20cb37={};return _0x20cb37[_0xd59c16(0xa7)]=_0x15f0e1,_0x20cb37[_0xd59c16(0xdc)]=_0x5cada7,_0x20cb37[_0xd59c16(0x88)]=this[_0xd59c16(0xa8)],_0x20cb37;}const _0x31dc7c={};return _0x31dc7c[_0xd59c16(0xa7)]=!![],_0x31dc7c;};['shutdown']=async()=>{const _0x5ef048=a125_0x32f33c,_0xb9641f={'eQvSB':_0x5ef048(0x8f),'ZDiqV':function(_0x41cd17,_0x276afd){return _0x41cd17>_0x276afd;},'YQlhk':_0x5ef048(0xa0),'MjGkb':function(_0x4c0394,_0x335fc7){return _0x4c0394>_0x335fc7;},'LLYOm':function(_0x4b5343,_0x391181){return _0x4b5343(_0x391181);}};await this[_0x5ef048(0x96)](),this['removeEventBatchPolling'](_0xb9641f[_0x5ef048(0x75)]);while(_0xb9641f[_0x5ef048(0x87)](this[_0x5ef048(0x95)][_0x5ef048(0xb1)],0x0)){const _0x5729eb=this[_0x5ef048(0x95)][_0x5ef048(0x72)](0x0,BATCH_SIZE);this[_0x5ef048(0x95)][_0x5ef048(0xb3)](0x0,BATCH_SIZE),await this['batchAndPostEvents'](this['eventUrl'],_0xb9641f[_0x5ef048(0xd6)],_0x5729eb);}_0xb9641f[_0x5ef048(0xae)](this[_0x5ef048(0xdd)],0x0)&&_0xb9641f[_0x5ef048(0xa4)](debug,_0x5ef048(0xd9)+this[_0x5ef048(0xdd)]);};['batchAndPostEvents']=async(_0x3b9c59,_0x326f87,_0x1af098)=>{const _0x1d03f0=a125_0x32f33c,_0x421203={'PsZTZ':function(_0x2c8e6b,_0x3d0b4d){return _0x2c8e6b(_0x3d0b4d);},'NWCnV':_0x1d03f0(0x99),'qUwCC':function(_0x14b118,_0x4cdbc9){return _0x14b118(_0x4cdbc9);},'Zuhdo':function(_0x34d579){return _0x34d579();},'iDsBd':function(_0x5830e7,_0x5c5b2b,_0x3f9a0a,_0x302f41,_0x4e0fdc){return _0x5830e7(_0x5c5b2b,_0x3f9a0a,_0x302f41,_0x4e0fdc);},'IVgDq':'POST','jBJuS':function(_0x21a26a,_0x360d5b){return _0x21a26a-_0x360d5b;},'ntEWz':function(_0x15d4e8,_0x5f083f){return _0x15d4e8(_0x5f083f);},'jSWPO':function(_0x5eea5f,_0x3c54fa){return _0x5eea5f(_0x3c54fa);},'OFVpx':function(_0x2170ec,_0x291a63){return _0x2170ec-_0x291a63;}};let _0x1020eb='';try{_0x1020eb=_0x1af098[_0x1d03f0(0xaf)](_0x4a3478=>'\x27'+_0x4a3478[_0x1d03f0(0xb0)]+'\x27:'+(nestedKeyValue(_0x4a3478,[_0x1d03f0(0x98),_0x1d03f0(0x78)])||nestedKeyValue(_0x4a3478,[_0x1d03f0(0x84),_0x1d03f0(0x78)])))['join'](','),_0x421203['PsZTZ'](debug,_0x1d03f0(0xcd)+_0x326f87+_0x1d03f0(0x6a)+Buffer['byteLength'](util[_0x1d03f0(0x73)]('%j',_0x1af098),_0x421203[_0x1d03f0(0xbb)])+'\x20bytes.\x20Events\x20are\x20'+_0x1020eb);}catch(_0x430734){_0x421203[_0x1d03f0(0xca)](debug,_0x1d03f0(0xc6)+util[_0x1d03f0(0x73)](_0x430734)+'}');}const _0x2983cc={'headers':_0x421203[_0x1d03f0(0x67)](getDefaultHeaders)};try{const _0x4dabd1=await _0x421203[_0x1d03f0(0x69)](nodeRequest,_0x421203[_0x1d03f0(0x8e)],_0x3b9c59,_0x1af098,_0x2983cc);if(_0x4dabd1[_0x1d03f0(0xc3)][_0x1d03f0(0x7b)]){const _0x50bc18={};_0x50bc18[_0x1d03f0(0x94)]=_0x4dabd1['data'][_0x1d03f0(0x7b)];throw _0x50bc18;}else _0x421203[_0x1d03f0(0xca)](debug,_0x326f87+_0x1d03f0(0x9a)+_0x1020eb+_0x1d03f0(0x6d)+util['format']('%j',_0x4dabd1[_0x1d03f0(0xc3)])),this[_0x1d03f0(0xdd)]=Math[_0x1d03f0(0xc7)](0x0,_0x421203[_0x1d03f0(0xc2)](this[_0x1d03f0(0xdd)],_0x1af098[_0x1d03f0(0xb1)]));}catch(_0x5e9652){_0x5e9652[_0x1d03f0(0xd3)]?_0x421203[_0x1d03f0(0x8b)](debug,_0x1d03f0(0xa9)+_0x326f87+_0x1d03f0(0xab)+constants['TEST_REPORTING_ANALYTICS']+_0x1d03f0(0x68)+_0x5e9652[_0x1d03f0(0xd3)][_0x1d03f0(0x79)]+'\x20'+_0x5e9652[_0x1d03f0(0xd3)][_0x1d03f0(0x9f)]+'\x20'+util[_0x1d03f0(0x73)]('%j',_0x5e9652[_0x1d03f0(0xd3)])):_0x421203[_0x1d03f0(0xdf)](debug,_0x1d03f0(0xa9)+_0x326f87+_0x1d03f0(0xab)+constants[_0x1d03f0(0xba)]+'\x20:\x20'+(_0x5e9652[_0x1d03f0(0x94)]||_0x5e9652)),this['pendingUploads']=Math[_0x1d03f0(0xc7)](0x0,_0x421203['OFVpx'](this[_0x1d03f0(0xdd)],_0x1af098[_0x1d03f0(0xb1)]));}};[a125_0x32f33c(0x86)]=()=>{const _0x165e1d=a125_0x32f33c,_0x14130d={'nyiMw':function(_0x1bf777,_0x1ba061){return _0x1bf777>_0x1ba061;},'kKNny':function(_0x42bb36,_0x53a5f0){return _0x42bb36(_0x53a5f0);},'HFIoO':_0x165e1d(0xd8),'DQWvn':function(_0x3234c4,_0x50b3bd){return _0x3234c4(_0x50b3bd);},'tlloj':function(_0x57d684,_0xb89dd2,_0x493e6f){return _0x57d684(_0xb89dd2,_0x493e6f);}};this['pollEventBatchInterval']=_0x14130d['tlloj'](setInterval,async()=>{const _0x2d3c78=_0x165e1d;if(_0x14130d[_0x2d3c78(0xaa)](this[_0x2d3c78(0x95)][_0x2d3c78(0xb1)],0x0)){_0x14130d['kKNny'](trace,_0x2d3c78(0x92)+this[_0x2d3c78(0x95)][_0x2d3c78(0xb1)]);const _0x3ee99d=this['queue'][_0x2d3c78(0x72)](0x0,BATCH_SIZE);this[_0x2d3c78(0x95)][_0x2d3c78(0xb3)](0x0,BATCH_SIZE),await this[_0x2d3c78(0xa3)](this[_0x2d3c78(0xa8)],_0x14130d[_0x2d3c78(0xbf)],_0x3ee99d),_0x14130d[_0x2d3c78(0xd1)](trace,_0x2d3c78(0x8a)+this[_0x2d3c78(0x95)][_0x2d3c78(0xb1)]);}},BATCH_INTERVAL);};['resetEventBatchPolling']=()=>{const _0x46e222=a125_0x32f33c,_0x4c931c={};_0x4c931c[_0x46e222(0xb6)]=_0x46e222(0xa6);const _0x461566=_0x4c931c;this[_0x46e222(0xdb)](_0x461566[_0x46e222(0xb6)]),this[_0x46e222(0x86)]();};[a125_0x32f33c(0xdb)]=_0x5724a1=>{const _0x319699=a125_0x32f33c,_0x3e62f5={'HZHSY':function(_0x6912dd,_0x1938aa){return _0x6912dd(_0x1938aa);},'rOqhn':function(_0x4317e0,_0x309ff2){return _0x4317e0===_0x309ff2;},'rjCxX':'REMOVING'};this[_0x319699(0xa1)]&&(_0x3e62f5['HZHSY'](clearInterval,this['pollEventBatchInterval']),this[_0x319699(0xa1)]=null,_0x3e62f5[_0x319699(0xda)](_0x5724a1,_0x3e62f5[_0x319699(0xd7)])&&(this[_0x319699(0xcf)]=![]));};[a125_0x32f33c(0xa7)]=()=>{const _0x4539c7=a125_0x32f33c,_0x2fe578={};_0x2fe578[_0x4539c7(0x70)]=function(_0x27deaa,_0x5a3345){return _0x27deaa>=_0x5a3345;};const _0x3fc228=_0x2fe578;return _0x3fc228[_0x4539c7(0x70)](this[_0x4539c7(0x95)][_0x4539c7(0xb1)],BATCH_SIZE);};async[a125_0x32f33c(0x96)](_0x3b101b=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x44a8b4=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x49fba5=a125_0x32f33c,_0x20219a={'AUKKl':function(_0x405e8d,_0x2a796e){return _0x405e8d<=_0x2a796e;},'DxLog':function(_0x336670,_0x34a1dc){return _0x336670<=_0x34a1dc;},'cJtRL':function(_0x5deb69,_0x5453f5){return _0x5deb69(_0x5453f5);},'mvBIR':function(_0x95f59e,_0x5900d8){return _0x95f59e-_0x5900d8;}};if(_0x20219a[_0x49fba5(0xc5)](this[_0x49fba5(0xdd)],0x0)||_0x20219a[_0x49fba5(0x82)](_0x3b101b,0x0))return;return await _0x20219a[_0x49fba5(0x77)](sleep,_0x44a8b4),this[_0x49fba5(0x96)](_0x20219a[_0x49fba5(0x74)](_0x3b101b,_0x44a8b4));}}module[a125_0x32f33c(0xb2)]=RequestQueueHandler;
|