browserstack-node-sdk 1.46.7 → 1.46.8
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_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
|
+
const a117_0x191b90=a117_0x2606;(function(_0x1ef0f3,_0xad9ab3){const _0x4817d8=a117_0x2606,_0x18d956=_0x1ef0f3();while(!![]){try{const _0x35963f=-parseInt(_0x4817d8(0x21f))/0x1+-parseInt(_0x4817d8(0x256))/0x2*(-parseInt(_0x4817d8(0x1ff))/0x3)+parseInt(_0x4817d8(0x201))/0x4*(-parseInt(_0x4817d8(0x1fa))/0x5)+parseInt(_0x4817d8(0x24b))/0x6+parseInt(_0x4817d8(0x1e3))/0x7+-parseInt(_0x4817d8(0x264))/0x8+parseInt(_0x4817d8(0x206))/0x9;if(_0x35963f===_0xad9ab3)break;else _0x18d956['push'](_0x18d956['shift']());}catch(_0x2702df){_0x18d956['push'](_0x18d956['shift']());}}}(a117_0x174c,0x9ab94));const a117_0xf0b250={};a117_0xf0b250[a117_0x191b90(0x20b)]=a117_0x191b90(0x229),a117_0xf0b250[a117_0x191b90(0x1ec)]='sdk:cleanup',a117_0xf0b250[a117_0x191b90(0x22e)]=a117_0x191b90(0x260),a117_0xf0b250[a117_0x191b90(0x22d)]='sdk:test',a117_0xf0b250[a117_0x191b90(0x252)]=a117_0x191b90(0x239),a117_0xf0b250[a117_0x191b90(0x224)]=a117_0x191b90(0x1e8),a117_0xf0b250[a117_0x191b90(0x222)]=a117_0x191b90(0x230),a117_0xf0b250[a117_0x191b90(0x259)]='sdk:a11y',a117_0xf0b250[a117_0x191b90(0x232)]='sdk:o11y',a117_0xf0b250[a117_0x191b90(0x20d)]=a117_0x191b90(0x1e9),a117_0xf0b250['SDK_PROXY_SETUP']=a117_0x191b90(0x231),a117_0xf0b250[a117_0x191b90(0x25c)]=a117_0x191b90(0x23f),a117_0xf0b250['SDK_AUTOMATE']=a117_0x191b90(0x233),a117_0xf0b250[a117_0x191b90(0x25e)]=a117_0x191b90(0x21b),a117_0xf0b250['SDK_TURBOSCALE']='sdk:turboscale',a117_0xf0b250[a117_0x191b90(0x212)]=a117_0x191b90(0x1f9),a117_0xf0b250['SDK_PRE_INITIALIZE']=a117_0x191b90(0x22f),a117_0xf0b250[a117_0x191b90(0x1e6)]='sdk:driver:post-initialization',a117_0xf0b250[a117_0x191b90(0x1f8)]=a117_0x191b90(0x246),a117_0xf0b250[a117_0x191b90(0x266)]=a117_0x191b90(0x1f4),a117_0xf0b250[a117_0x191b90(0x221)]=a117_0x191b90(0x215),a117_0xf0b250[a117_0x191b90(0x211)]=a117_0x191b90(0x243),a117_0xf0b250['SDK_CLI_ON_CONNECT']=a117_0x191b90(0x21c),a117_0xf0b250['SDK_CLI_ON_STOP']=a117_0x191b90(0x203),a117_0xf0b250[a117_0x191b90(0x25f)]='sdk:startBinSession',a117_0xf0b250[a117_0x191b90(0x253)]=a117_0x191b90(0x262),a117_0xf0b250[a117_0x191b90(0x23e)]=a117_0x191b90(0x1f6),a117_0xf0b250[a117_0x191b90(0x20f)]=a117_0x191b90(0x208),a117_0xf0b250['SDK_AUTOMATION_FRAMEWORK_INIT']=a117_0x191b90(0x1ed),a117_0xf0b250[a117_0x191b90(0x21a)]='sdk:automationFrameworkStart',a117_0xf0b250[a117_0x191b90(0x1e5)]=a117_0x191b90(0x254),a117_0xf0b250[a117_0x191b90(0x242)]=a117_0x191b90(0x25d),a117_0xf0b250[a117_0x191b90(0x24a)]=a117_0x191b90(0x209),a117_0xf0b250[a117_0x191b90(0x245)]=a117_0x191b90(0x204),a117_0xf0b250[a117_0x191b90(0x226)]=a117_0x191b90(0x1e1),a117_0xf0b250[a117_0x191b90(0x21d)]='sdk:testSessionEvent',a117_0xf0b250['SDK_CLI_LOG_CREATED_EVENT']='sdk:cli:logCreatedEvent',a117_0xf0b250[a117_0x191b90(0x24f)]='sdk:cli:enqueueTestEvent',a117_0xf0b250[a117_0x191b90(0x228)]=a117_0x191b90(0x25a),a117_0xf0b250[a117_0x191b90(0x235)]='sdk:onStop';function a117_0x2606(_0x27e7d3,_0x18725f){const _0x174cc6=a117_0x174c();return a117_0x2606=function(_0x260684,_0x4cfa9b){_0x260684=_0x260684-0x1e0;let _0x3ae553=_0x174cc6[_0x260684];return _0x3ae553;},a117_0x2606(_0x27e7d3,_0x18725f);}const SDK_EVENTS=a117_0xf0b250,a117_0x21c3b4={};a117_0x21c3b4[a117_0x191b90(0x238)]=SDK_EVENTS,a117_0x21c3b4[a117_0x191b90(0x205)]={},a117_0x21c3b4[a117_0x191b90(0x20c)]={},a117_0x21c3b4[a117_0x191b90(0x1fe)]={},a117_0x21c3b4[a117_0x191b90(0x1e4)]={},a117_0x21c3b4[a117_0x191b90(0x1e2)]={},a117_0x21c3b4[a117_0x191b90(0x249)]={},a117_0x21c3b4[a117_0x191b90(0x22c)]={},a117_0x21c3b4[a117_0x191b90(0x213)]={},a117_0x21c3b4[a117_0x191b90(0x21e)]={},a117_0x21c3b4[a117_0x191b90(0x205)][a117_0x191b90(0x265)]=SDK_EVENTS[a117_0x191b90(0x25c)]+a117_0x191b90(0x210),a117_0x21c3b4[a117_0x191b90(0x205)]['STOP']=SDK_EVENTS['SDK_TESTHUB']+a117_0x191b90(0x216),a117_0x21c3b4[a117_0x191b90(0x20c)][a117_0x191b90(0x237)]=SDK_EVENTS[a117_0x191b90(0x250)]+':keep-alive',a117_0x21c3b4[a117_0x191b90(0x20c)][a117_0x191b90(0x244)]=SDK_EVENTS[a117_0x191b90(0x250)]+':hub-management',a117_0x21c3b4[a117_0x191b90(0x20c)][a117_0x191b90(0x202)]=SDK_EVENTS[a117_0x191b90(0x250)]+':local-start',a117_0x21c3b4[a117_0x191b90(0x20c)][a117_0x191b90(0x23d)]=SDK_EVENTS['SDK_AUTOMATE']+a117_0x191b90(0x248),a117_0x21c3b4[a117_0x191b90(0x20c)]['DRIVER_MANAGE']=SDK_EVENTS[a117_0x191b90(0x250)]+a117_0x191b90(0x1fc),a117_0x21c3b4[a117_0x191b90(0x20c)]['SESSION_NAME']=SDK_EVENTS[a117_0x191b90(0x250)]+a117_0x191b90(0x1f7),a117_0x21c3b4[a117_0x191b90(0x20c)][a117_0x191b90(0x227)]=SDK_EVENTS['SDK_AUTOMATE']+':session-status',a117_0x21c3b4[a117_0x191b90(0x20c)]['SESSION_ANNOTATION']=SDK_EVENTS[a117_0x191b90(0x250)]+a117_0x191b90(0x20e),a117_0x21c3b4[a117_0x191b90(0x20c)][a117_0x191b90(0x1e0)]=SDK_EVENTS[a117_0x191b90(0x250)]+a117_0x191b90(0x23b),a117_0x21c3b4[a117_0x191b90(0x20c)][a117_0x191b90(0x214)]=SDK_EVENTS['SDK_AUTOMATE']+a117_0x191b90(0x1f3),a117_0x21c3b4[a117_0x191b90(0x20c)][a117_0x191b90(0x247)]=SDK_EVENTS[a117_0x191b90(0x250)]+':print-buildlink',a117_0x21c3b4[a117_0x191b90(0x1fe)][a117_0x191b90(0x24e)]=SDK_EVENTS[a117_0x191b90(0x259)]+a117_0x191b90(0x22b),a117_0x21c3b4[a117_0x191b90(0x1fe)]['SAVE_RESULTS']=SDK_EVENTS[a117_0x191b90(0x259)]+a117_0x191b90(0x261),a117_0x21c3b4[a117_0x191b90(0x1fe)][a117_0x191b90(0x24d)]=SDK_EVENTS[a117_0x191b90(0x259)]+a117_0x191b90(0x1eb),a117_0x21c3b4[a117_0x191b90(0x1fe)][a117_0x191b90(0x257)]=SDK_EVENTS[a117_0x191b90(0x259)]+a117_0x191b90(0x263),a117_0x21c3b4[a117_0x191b90(0x1e4)]['DOWNLOAD']=SDK_EVENTS[a117_0x191b90(0x212)]+':download',a117_0x21c3b4[a117_0x191b90(0x1e4)][a117_0x191b90(0x23a)]=SDK_EVENTS['SDK_PERCY']+':screenshot',a117_0x21c3b4[a117_0x191b90(0x1e4)]['START']=SDK_EVENTS['SDK_PERCY']+':start',a117_0x21c3b4[a117_0x191b90(0x1e4)][a117_0x191b90(0x234)]=SDK_EVENTS['SDK_PERCY']+':stop',a117_0x21c3b4[a117_0x191b90(0x1e4)]['AUTO_CAPTURE']=SDK_EVENTS['SDK_PERCY']+a117_0x191b90(0x1fd),a117_0x21c3b4[a117_0x191b90(0x1e4)]['SNAPSHOT']=SDK_EVENTS['SDK_PERCY']+':snapshot',a117_0x21c3b4[a117_0x191b90(0x1e4)][a117_0x191b90(0x241)]=SDK_EVENTS[a117_0x191b90(0x212)]+a117_0x191b90(0x267),a117_0x21c3b4[a117_0x191b90(0x1e2)]['SYNC']=SDK_EVENTS[a117_0x191b90(0x232)]+a117_0x191b90(0x218),a117_0x21c3b4[a117_0x191b90(0x1e2)][a117_0x191b90(0x1ea)]=SDK_EVENTS['SDK_O11Y']+a117_0x191b90(0x1f2),a117_0x21c3b4[a117_0x191b90(0x1e2)]['PRINT_BUILDLINK']=SDK_EVENTS[a117_0x191b90(0x232)]+':print-buildlink',a117_0x21c3b4[a117_0x191b90(0x249)][a117_0x191b90(0x240)]=SDK_EVENTS['SDK_HOOK']+a117_0x191b90(0x1f0),a117_0x21c3b4[a117_0x191b90(0x249)]['AFTER_EACH']=SDK_EVENTS[a117_0x191b90(0x224)]+':after-each',a117_0x21c3b4[a117_0x191b90(0x249)][a117_0x191b90(0x1ee)]=SDK_EVENTS[a117_0x191b90(0x224)]+a117_0x191b90(0x24c),a117_0x21c3b4[a117_0x191b90(0x249)][a117_0x191b90(0x223)]=SDK_EVENTS[a117_0x191b90(0x224)]+a117_0x191b90(0x1f5),a117_0x21c3b4[a117_0x191b90(0x249)][a117_0x191b90(0x200)]=SDK_EVENTS[a117_0x191b90(0x224)]+a117_0x191b90(0x1e7),a117_0x21c3b4[a117_0x191b90(0x249)][a117_0x191b90(0x255)]=SDK_EVENTS[a117_0x191b90(0x224)]+a117_0x191b90(0x219),a117_0x21c3b4[a117_0x191b90(0x22c)][a117_0x191b90(0x244)]=SDK_EVENTS[a117_0x191b90(0x20a)]+a117_0x191b90(0x22a),a117_0x21c3b4[a117_0x191b90(0x22c)][a117_0x191b90(0x247)]=SDK_EVENTS['SDK_TURBOSCALE']+a117_0x191b90(0x217),a117_0x21c3b4[a117_0x191b90(0x213)][a117_0x191b90(0x220)]=SDK_EVENTS[a117_0x191b90(0x25e)]+a117_0x191b90(0x1f1),a117_0x21c3b4[a117_0x191b90(0x21e)][a117_0x191b90(0x25b)]=SDK_EVENTS['SDK_DRIVER']+a117_0x191b90(0x258),a117_0x21c3b4[a117_0x191b90(0x21e)][a117_0x191b90(0x236)]=SDK_EVENTS[a117_0x191b90(0x222)]+a117_0x191b90(0x225),a117_0x21c3b4[a117_0x191b90(0x21e)][a117_0x191b90(0x207)]=SDK_EVENTS[a117_0x191b90(0x222)]+a117_0x191b90(0x1fb),a117_0x21c3b4[a117_0x191b90(0x21e)][a117_0x191b90(0x251)]=SDK_EVENTS[a117_0x191b90(0x222)]+a117_0x191b90(0x1ef),module[a117_0x191b90(0x23c)]=a117_0x21c3b4;function a117_0x174c(){const _0x37e537=['HOOK_EVENTS','SDK_AI_SELF_HEAL_STEP','3787332KNCsHg',':after-all','GET_RESULTS','PERFORM_SCAN','SDK_CLI_ENQUEUE_TEST_EVENT','SDK_AUTOMATE','POST_EXECUTE','SDK_POST_TEST','SDK_CONNECT_BIN_SESSION','sdk:accessibilityConfig','AFTER','559554dNHeIU','GET_RESULTS_SUMMARY',':quit','SDK_A11Y','sdk:automationFrameworkStop','QUIT','SDK_TESTHUB','sdk:observabilityConfig','SDK_APP_AUTOMATE','SDK_START_BIN_SESSION','sdk:pre-test',':save-results','sdk:connectBinSession',':get-accessibility-results-summary','5161704hacrTZ','START','SDK_CLI_DOWNLOAD',':screenshot-app','IDLE_TIMEOUT','sdk:testFrameworkEvent','O11y_EVENTS','7325787FBTNgC','PERCY_EVENTS','SDK_ACCESSIBILITY_CONFIG','SDK_POST_INITIALIZE',':before','sdk:hook','sdk:auto-capture','TAKE_SCREENSHOT',':get-accessibility-results','SDK_CLEANUP','sdk:automationFrameworkInit','AFTER_ALL',':post-execute',':before-each',':app-upload',':driver-takeScreenShot',':ci-artifacts','sdk:cli:download',':before-all','sdk:driverInit',':session-name','SDK_CLI_START','sdk:percy','60QCzoJI',':pre-execute',':driver-manage',':auto-capture','A11Y_EVENTS','3NGvjBg','BEFORE','214192VJKRGu','LOCAL_START','sdk:cli:on-stop','sdk:aiSelfHealGetResult','TESTHUB_EVENTS','1540557NiZFWD','PRE_EXECUTE','sdk:findNearestHub','sdk:aiSelfHealStep','SDK_TURBOSCALE','SDK_SETUP','AUTOMATE_EVENTS','SDK_AUTO_CAPTURE',':session-annotation','SDK_FIND_NEAREST_HUB',':start','SDK_CLI_ON_BOOTSTRAP','SDK_PERCY','APP_AUOTMATE_EVENTS','GENERATE_CI_ARTIFACT','sdk:cli:check-update',':stop',':print-buildlink',':sync',':after','SDK_AUTOMATION_FRAMEWORK_START','sdk:app-automate','sdk:cli:on-connect','SDK_TEST_SESSION_EVENT','DRIVER_EVENT','207176hchMAI','APP_UPLOAD','SDK_CLI_CHECK_UPDATE','SDK_DRIVER','BEFORE_ALL','SDK_HOOK',':get','SDK_TEST_FRAMEWORK_EVENT','SESSION_STATUS','SDK_AUTOMATION_FRAMEWORK_STOP','sdk:setup',':hub-management',':driver-performscan','TURBOSCALE_EVENTS','SDK_TEST','SDK_PRE_TEST','sdk:driver:pre-initialization','sdk:driver','sdk:proxy-setup','SDK_O11Y','sdk:automate','STOP','SDK_ON_STOP','GET','KEEP_ALIVE','EVENTS','sdk:post-test','SCREENSHOT',':idle-timeout','exports','LOCAL_STOP','SDK_DRIVER_INIT','sdk:testhub','BEFORE_EACH','SCREENSHOT_APP','SDK_OBSERVABILITY_CONFIG','sdk:cli:on-bootstrap','HUB_MANAGEMENT','SDK_AI_SELF_HEAL_GET_RESULT','sdk:cli:start','PRINT_BUILDLINK',':local-stop'];a117_0x174c=function(){return _0x37e537;};return a117_0x174c();}
|
|
@@ -1 +1 @@
|
|
|
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
|
+
const a118_0x5b48c3=a118_0x3a88;(function(_0x28fa7,_0x301495){const _0x20679a=a118_0x3a88,_0x46e7f8=_0x28fa7();while(!![]){try{const _0x4fd21f=-parseInt(_0x20679a(0x13f))/0x1*(-parseInt(_0x20679a(0xca))/0x2)+-parseInt(_0x20679a(0x162))/0x3*(parseInt(_0x20679a(0x147))/0x4)+parseInt(_0x20679a(0xc8))/0x5*(parseInt(_0x20679a(0xff))/0x6)+parseInt(_0x20679a(0xcc))/0x7+parseInt(_0x20679a(0xcd))/0x8+parseInt(_0x20679a(0xc5))/0x9+-parseInt(_0x20679a(0xc9))/0xa*(parseInt(_0x20679a(0x12c))/0xb);if(_0x4fd21f===_0x301495)break;else _0x46e7f8['push'](_0x46e7f8['shift']());}catch(_0xfb2ca3){_0x46e7f8['push'](_0x46e7f8['shift']());}}}(a118_0x157a,0x52664));function a118_0x3a88(_0x45392f,_0x5061d3){const _0x157a2c=a118_0x157a();return a118_0x3a88=function(_0x3a880e,_0x2739fb){_0x3a880e=_0x3a880e-0xbf;let _0xe25ee5=_0x157a2c[_0x3a880e];return _0xe25ee5;},a118_0x3a88(_0x45392f,_0x5061d3);}function a118_0x157a(){const _0xb07d9f=['29cluPdM','nWNHc','false','assign','__platformCaps','pushErrors','catch','key-metrics.json\x20file\x20not\x20found,\x20skipping\x20processing\x20for\x20event\x20for\x20cli.','4AQXCXm','Error\x20stopping\x20monitoring\x20','yPaLc','concat','.json','stack','Time\x20for\x20','_events','WyQFZ','/performance-report-','flat','reduce','forEach','perf_hooks','F_OK','calculateTimesFromMultipleFiles','map','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','calculateTimeFromEvents','measures','getCleanedPerfEvents','mkdirSync','SSeXy','stopMonitoring','length','info','unlink','1208004Xdicdq','then','eVhFC','GRDWb','index','toJSON','end','Performance\x20report\x20is\x20at\x20','Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','MnRkF','YIOPC','jsonReportDirName','modified-key-metrics.json','dApQF','<tr><td>','EXCXQ','Error\x20in\x20getting\x20key-metrics.json\x20file:\x20%s','constants','observe','finalizePerfMeasures','kdqtC','measure','253917FfirFh','isEnabled','debug','275EGsYNo','430PKAuRk','10628gNFweK','name','515340BjlSup','4521008pJYJrQ','pushPerfMeasures','performance-own.html','-start','parse','</tbody></table></body></html>','/error-report-','generateHTMLReport','qbSWl','Lnswo','disconnect','hvVer','jDXOQ','vDQjg','cITFq','error\x20in\x20measure\x20','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','UuZfS','splice','exports','YBqgU','\x20for\x20all\x20processes\x20is\x20','qkgMo','join','getPerformance','success','eveUI','started','focIU','qsMYX','entries','winstonLogger','getEventsFromJSON','isArray','existsSync','uwTfy','writeFileSync','xkVEa','qdVVN','failure','BROWSERSTACK_SDK_INSTRUMENTATION','OgzQf','errorReportDirName','meta','errorReportFileName','jsonReportDirPath','errorFile','Jzkft','DWmyQ','dirname','68754vcEcfG','buffered','env','readFileSync','resolve','lwvoD','ZZqik','vFJQD','</td></tr>','JrBQv','../processHelper','unlinkSync','<h1>Performance\x20Report</h1>','toString','../logger','duration','mark','message','details','Error\x20in\x20writing\x20html\x20','error-report','browserStackCwd','readFile','DGuyS','Error\x20in\x20doing\x20csv\x20operations:\x20','bhjdP','match','ZiyGn','writeFile','eventsMap','generateJSON','code','stringify','key-metrics.json','WVTQS','RfyDL','utf-8','all','finalize','jsonReportFileName','lBqQM','fs/promises','startMonitoring','iHWmn','format','181918wgQLSE','muQXv','wSLEF','_observer','push','finalizeErrors','KLVeT','OkXKt','slice','entryTypes','qobZs','tsvkA','_measureEvents','access','start','_errorEvents','apply','function','cwd'];a118_0x157a=function(){return _0xb07d9f;};return a118_0x157a();}const fs=require('fs'),fsPromise=require(a118_0x5b48c3(0x128)),{performance,PerformanceObserver}=require(a118_0x5b48c3(0x154)),path=require('path'),util=require('util'),logger=require(a118_0x5b48c3(0x10d))[a118_0x5b48c3(0xec)],{getLogDir}=require('../logger'),{getProcessId,sleep,debug,getTestName}=require(a118_0x5b48c3(0x109));class PerformanceTester{static [a118_0x5b48c3(0x12f)];static [a118_0x5b48c3(0x14e)]=[];static [a118_0x5b48c3(0x138)]=[];static [a118_0x5b48c3(0x13b)]=[];static [a118_0x5b48c3(0xe8)]=![];static ['jsonReportDirName']='performance-report';static [a118_0x5b48c3(0xf7)]=process['env'][a118_0x5b48c3(0x114)]?path['join'](process[a118_0x5b48c3(0x101)]['browserStackCwd'],a118_0x5b48c3(0x113)):path[a118_0x5b48c3(0xe4)](process[a118_0x5b48c3(0x13e)](),'error-report');static ['errorReportFileName']=this[a118_0x5b48c3(0xf7)]+'/error-report-'+getProcessId()+a118_0x5b48c3(0x14b);static [a118_0x5b48c3(0x111)]={};static [a118_0x5b48c3(0x11c)]={};static[a118_0x5b48c3(0x129)](_0x5a1a5d,_0x1890d7=this[a118_0x5b48c3(0xf7)]+a118_0x5b48c3(0xd3)+getProcessId()+a118_0x5b48c3(0x14b)){const _0x1ddd1e=a118_0x5b48c3,_0x3cdcde={'KLVeT':function(_0x123ab1,_0x9ca380){return _0x123ab1===_0x9ca380;},'vaePk':'measure','qbSWl':function(_0x1845b4){return _0x1845b4();},'qobZs':function(_0x9fbb92){return _0x9fbb92();},'uwTfy':function(_0xb1eea3,_0x2a5efa){return _0xb1eea3+_0x2a5efa;},'RfyDL':_0x1ddd1e(0x16a),'focIU':_0x1ddd1e(0x13d)};try{this[_0x1ddd1e(0xfa)]=path[_0x1ddd1e(0xe4)](_0x3cdcde[_0x1ddd1e(0xd5)](getLogDir),this[_0x1ddd1e(0x16d)]),!_0x5a1a5d&&(_0x5a1a5d=this[_0x1ddd1e(0xfa)]+_0x1ddd1e(0x150)+_0x3cdcde[_0x1ddd1e(0x136)](getProcessId)+'.json'),!fs[_0x1ddd1e(0xef)](this[_0x1ddd1e(0xfa)])&&fs[_0x1ddd1e(0x15c)](this['jsonReportDirPath']);}catch(_0x3596f0){logger[_0x1ddd1e(0xc7)](_0x3cdcde[_0x1ddd1e(0xf0)](_0x3cdcde[_0x1ddd1e(0x122)],_0x3596f0));}if(this[_0x1ddd1e(0xe8)]||!this[_0x1ddd1e(0xc6)]())return;this['_observer']=new PerformanceObserver(_0x2ba8e2=>{const _0x2cde5a=_0x1ddd1e,_0x3e9c8d={'MKATn':function(_0xc45631,_0x33123f){const _0x4c1714=a118_0x3a88;return _0x3cdcde[_0x4c1714(0x132)](_0xc45631,_0x33123f);},'lBqQM':_0x3cdcde['vaePk']};_0x2ba8e2['getEntries']()[_0x2cde5a(0x153)](_0xe29721=>{const _0xe6262c=_0x2cde5a;if(_0x3e9c8d['MKATn'](_0xe29721['entryType'],_0x3e9c8d[_0xe6262c(0x127)])){let _0x3b0704={};if(_0xe29721[_0xe6262c(0x167)])_0x3b0704=_0xe29721['toJSON']();else for(const _0x4e989b in _0xe29721){_0x3b0704[_0x4e989b]=_0xe29721[_0x4e989b];}this[_0xe6262c(0x111)][_0xe29721[_0xe6262c(0xcb)]]&&(_0x3b0704=Object[_0xe6262c(0x142)](_0x3b0704,this['details'][_0xe29721[_0xe6262c(0xcb)]])),delete this[_0xe6262c(0x111)][_0xe29721['name']],this['_measureEvents'][_0xe6262c(0x130)](_0x3b0704);}else this['_events'][_0xe6262c(0x130)](_0xe29721);});});const _0x5b58a2={};_0x5b58a2[_0x1ddd1e(0x100)]=!![],_0x5b58a2[_0x1ddd1e(0x135)]=[_0x3cdcde[_0x1ddd1e(0xe9)],_0x3cdcde['vaePk']],this['_observer'][_0x1ddd1e(0xc1)](_0x5b58a2),this[_0x1ddd1e(0xe8)]=!![],this[_0x1ddd1e(0x126)]=_0x5a1a5d,this[_0x1ddd1e(0xf9)]=_0x1890d7;}static[a118_0x5b48c3(0xe5)](){return performance;}static[a118_0x5b48c3(0x159)](_0x4f305d,_0x314c4c){const _0x34a493=a118_0x5b48c3,_0x3b36ad={};_0x3b36ad['muQXv']=function(_0x2c5699,_0x39e06a){return _0x2c5699+_0x39e06a;},_0x3b36ad[_0x34a493(0xd8)]=function(_0x51e83f,_0x1bb850){return _0x51e83f||_0x1bb850;},_0x3b36ad['ovKBS']=function(_0x37a6e4,_0x3c319b){return _0x37a6e4===_0x3c319b;};const _0x4d318d=_0x3b36ad,_0x454434={};if(!_0x4f305d||_0x4d318d['ovKBS'](_0x4f305d[_0x34a493(0x15f)],0x0))return;_0x4f305d[_0x34a493(0x157)](_0x5cf0e0=>{const _0x59d115=_0x34a493;!_0x454434[_0x5cf0e0[_0x59d115(0xcb)]]&&(_0x454434[_0x5cf0e0[_0x59d115(0xcb)]]=0x0),_0x454434[_0x5cf0e0['name']]+=_0x5cf0e0['duration'];});const _0xf67f71=_0x314c4c['reduce']((_0x19f243,_0x2ca3c7)=>{const _0x168242=_0x34a493;return _0x4d318d[_0x168242(0x12d)](_0x454434[_0x2ca3c7],_0x4d318d[_0x168242(0xd8)](_0x19f243,0x0));},0x0);return _0xf67f71;}static async[a118_0x5b48c3(0x156)](_0x49657d,_0x137833){const _0x1d9f40=a118_0x5b48c3,_0x2efc82={'fmsJQ':function(_0x3ad57,_0x26ede4){return _0x3ad57+_0x26ede4;},'JrBQv':function(_0x1b2f76,_0x628b0b){return _0x1b2f76||_0x628b0b;},'tsvkA':function(_0x25f424,_0x29327d){return _0x25f424===_0x29327d;},'lwvoD':function(_0x307ea1,_0x3c8afb){return _0x307ea1(_0x3c8afb);}};if(!_0x49657d||_0x2efc82[_0x1d9f40(0x137)](_0x49657d[_0x1d9f40(0x15f)],0x0))return 0x0;const _0x408c79=[];for(const _0xa10fed of _0x49657d){const _0x345a01=path[_0x1d9f40(0xe4)]('.',_0xa10fed);try{const _0x38ee9c=this[_0x1d9f40(0xed)](_0x345a01);_0x38ee9c[_0x1d9f40(0x157)](_0x234ebc=>{const _0x2ab67a=_0x1d9f40;!_0x408c79[_0x234ebc['name']]&&(_0x408c79[_0x234ebc[_0x2ab67a(0xcb)]]=0x0),_0x408c79[_0x234ebc[_0x2ab67a(0xcb)]]+=_0x234ebc[_0x2ab67a(0x10e)];});}catch(_0x53b3db){_0x2efc82[_0x1d9f40(0x104)](debug,_0x1d9f40(0x117)+_0x53b3db[_0x1d9f40(0x10c)]());}}const _0xb480ba=_0x137833[_0x1d9f40(0x152)]((_0x11b621,_0x331cc0)=>{const _0x5019c0=_0x1d9f40;return _0x2efc82['fmsJQ'](_0x408c79[_0x331cc0],_0x2efc82[_0x5019c0(0x108)](_0x11b621,0x0));},0x0);return _0x2efc82['lwvoD'](debug,_0x1d9f40(0x14d)+_0x137833+_0x1d9f40(0xe2)+_0xb480ba),_0xb480ba;}static[a118_0x5b48c3(0xed)](_0x19aa81){const _0x216c18=a118_0x5b48c3;if(_0x19aa81){if(!fs[_0x216c18(0xef)](_0x19aa81))return[];return JSON[_0x216c18(0xd1)](fs['readFileSync'](_0x19aa81)[_0x216c18(0x10c)]());}}static async['stopAndGenerate'](_0x5c7af7=a118_0x5b48c3(0xcf),_0x3ec94b=null){const _0x56973f=a118_0x5b48c3,_0x5cf776={'Lnswo':function(_0x20a186,_0x16faee){return _0x20a186(_0x16faee);},'Jzkft':function(_0x4f70a7,_0x433fda){return _0x4f70a7(_0x433fda);},'YBqgU':function(_0x102e71,_0xa8c7e6){return _0x102e71(_0xa8c7e6);}};if(!this[_0x56973f(0xe8)])return;await _0x5cf776[_0x56973f(0xe1)](sleep,0x1e),this['_observer'][_0x56973f(0xd7)](),this[_0x56973f(0xe8)]=![],this['generateJSON'](this['_events']);const _0x2e1f1d=this[_0x56973f(0xd4)](this['_events']),_0x3f920e=path[_0x56973f(0xe4)](process[_0x56973f(0x13e)](),_0x5c7af7);fs[_0x56973f(0x11b)](_0x3f920e,_0x2e1f1d,_0x2c08e6=>{const _0x20aca7=_0x56973f;if(_0x2c08e6){_0x5cf776[_0x20aca7(0xd6)](debug,_0x20aca7(0x112)+_0x2c08e6[_0x20aca7(0x10c)]());return;}_0x5cf776[_0x20aca7(0xfc)](debug,_0x20aca7(0x169)+_0x3f920e);});if(_0x3ec94b)return this['calculateTimeFromEvents'](this[_0x56973f(0x14e)],_0x3ec94b);}static[a118_0x5b48c3(0xd4)](_0x4bcf19){const _0x276bd6=a118_0x5b48c3,_0x7aa935={};_0x7aa935[_0x276bd6(0x149)]=_0x276bd6(0x158),_0x7aa935[_0x276bd6(0x14f)]=_0x276bd6(0x10b),_0x7aa935[_0x276bd6(0xdb)]=_0x276bd6(0xdd),_0x7aa935[_0x276bd6(0x105)]=_0x276bd6(0xd2);const _0x36bdd7=_0x7aa935;let _0x128056=_0x36bdd7[_0x276bd6(0x149)];return _0x128056+=_0x36bdd7[_0x276bd6(0x14f)],_0x128056+=_0x36bdd7[_0x276bd6(0xdb)],_0x4bcf19[_0x276bd6(0x153)](_0x3507e0=>{const _0x11cd9b=_0x276bd6;_0x128056+=_0x11cd9b(0x170)+_0x3507e0[_0x11cd9b(0xcb)]+'</td><td>'+_0x3507e0[_0x11cd9b(0x10e)]+_0x11cd9b(0x107);}),_0x128056+=_0x36bdd7[_0x276bd6(0x105)],_0x128056;}static[a118_0x5b48c3(0x11d)](_0x7a6951){const _0x3ebae2=a118_0x5b48c3;if(!this[_0x3ebae2(0x126)])return;const _0x167e9f={};_0x7a6951['map'](_0x10ee05=>{const _0x931dd1=_0x3ebae2;!_0x167e9f[_0x10ee05[_0x931dd1(0xcb)]]&&(_0x167e9f[_0x10ee05['name']]=0x0),_0x167e9f[_0x10ee05[_0x931dd1(0xcb)]]+=_0x10ee05[_0x931dd1(0x10e)];});const _0x43396f=Object[_0x3ebae2(0xeb)](_0x167e9f)[_0x3ebae2(0x157)](([_0x3805d2,_0x3585b7])=>{const _0x5f3755=_0x3ebae2,_0x2c2585={};return _0x2c2585[_0x5f3755(0xcb)]=_0x3805d2,_0x2c2585[_0x5f3755(0x10e)]=_0x3585b7,_0x2c2585;});fs[_0x3ebae2(0xf1)](this[_0x3ebae2(0x126)],JSON[_0x3ebae2(0x11f)](_0x43396f));}static[a118_0x5b48c3(0xc6)](){const _0x18cd0f=a118_0x5b48c3,_0x4d6660={};_0x4d6660[_0x18cd0f(0x15d)]=function(_0x1ec92e,_0x15296a){return _0x1ec92e===_0x15296a;},_0x4d6660[_0x18cd0f(0x121)]=_0x18cd0f(0x141);const _0x58ee6f=_0x4d6660;return!_0x58ee6f[_0x18cd0f(0x15d)](process[_0x18cd0f(0x101)][_0x18cd0f(0xf5)],_0x58ee6f[_0x18cd0f(0x121)]);}static[a118_0x5b48c3(0xc4)](_0x255dfc,_0x3c842c,_0x2a3e5d=null,_0xcc1dac={},_0x589628=null){const _0x41a11c=a118_0x5b48c3,_0x19cb71={'yhMiB':function(_0xdb79dc,_0x2fc323){return _0xdb79dc(_0x2fc323);},'bhjdP':function(_0x3d26eb,_0x28aab1){return _0x3d26eb instanceof _0x28aab1;}};try{if(this['started']&&this[_0x41a11c(0xc6)]()){let _0x43e1ef=_0x255dfc;_0x2a3e5d&&(_0x43e1ef=_0x255dfc+'['+JSON[_0x41a11c(0x11f)](_0x2a3e5d)+']');PerformanceTester[_0x41a11c(0x13a)](_0x43e1ef),this[_0x41a11c(0x111)]&&(this[_0x41a11c(0x111)][_0x43e1ef]=_0xcc1dac);try{const _0x2dcbd4=_0x3c842c[_0x41a11c(0x13c)](null,_0x589628);if(_0x19cb71[_0x41a11c(0x118)](_0x2dcbd4,Promise))return new Promise((_0x1156da,_0x46cf32)=>{const _0x3e5e5b=_0x41a11c;_0x2dcbd4[_0x3e5e5b(0x163)](_0x2bde31=>{PerformanceTester['end'](_0x43e1ef),_0x19cb71['yhMiB'](_0x1156da,_0x2bde31);})[_0x3e5e5b(0x145)](_0x328dec=>{const _0x4a45ba=_0x3e5e5b;PerformanceTester[_0x4a45ba(0x168)](_0x43e1ef,![],util[_0x4a45ba(0x12b)](_0x328dec)),_0x19cb71['yhMiB'](_0x46cf32,_0x328dec);});});;return PerformanceTester[_0x41a11c(0x168)](_0x43e1ef),_0x2dcbd4;}catch(_0x5ca023){PerformanceTester[_0x41a11c(0x168)](_0x43e1ef,![],util[_0x41a11c(0x12b)](_0x5ca023));throw _0x5ca023;}};return _0x3c842c[_0x41a11c(0x13c)](null,_0x589628);}catch(_0x936a01){return logger[_0x41a11c(0xc7)](_0x41a11c(0xdc)+(_0x936a01[_0x41a11c(0x14c)]||_0x936a01[_0x41a11c(0x110)]||_0x936a01)),_0x3c842c[_0x41a11c(0x13c)](null,_0x589628);}}static['measureWrapper'](_0xa0883e,_0x1752a0,_0x2d932d={}){const _0x6191e8=a118_0x5b48c3,_0x3a0916={'YIOPC':function(_0x12a043){return _0x12a043();}},_0x1bfd40=this;return _0x2d932d['worker']=_0x3a0916['YIOPC'](getProcessId),_0x2d932d['testName']=_0x3a0916[_0x6191e8(0x16c)](getTestName),_0x2d932d['platform']=global[_0x6191e8(0x143)]&&global[_0x6191e8(0x143)][_0x6191e8(0x166)],function(){const _0x1f884d=_0x6191e8,_0x584fa4=[_0xa0883e,_0x1752a0,null,_0x2d932d][_0x1f884d(0x14a)](arguments);return _0x1bfd40[_0x1f884d(0xc4)]['apply'](_0x1bfd40,_0x584fa4);};}static[a118_0x5b48c3(0x15b)](){const _0x262f5b=a118_0x5b48c3,_0xa21a4d=/(^.*)\[(.*)\]$/,_0x1d0f0c={},_0x247040={},_0x28ff07=[],_0xa15a58=this[_0x262f5b(0x138)][_0x262f5b(0xdf)](0x0,this[_0x262f5b(0x138)][_0x262f5b(0x15f)]);for(const _0xa60a24 of _0xa15a58){const _0x5d71c3=_0xa60a24[_0x262f5b(0xcb)][_0x262f5b(0x119)](_0xa21a4d),_0x187ceb=Object[_0x262f5b(0x142)]({},_0xa60a24);_0x5d71c3&&(_0x187ceb[_0x262f5b(0xcb)]=_0x5d71c3[0x1],_0x187ceb[_0x262f5b(0xf8)]=JSON[_0x262f5b(0xd1)](_0x5d71c3[0x2])),_0x28ff07[_0x262f5b(0x130)](_0x187ceb);}return _0x28ff07;}static['pushPerfMeasures'](){const _0x29ab55=a118_0x5b48c3,_0x3e908f={'ZiyGn':function(_0x1cef28){return _0x1cef28();},'wSLEF':function(_0x2a794c,_0x1e7805){return _0x2a794c+_0x1e7805;},'qkgMo':'Error\x20while\x20removing\x20files:\x20','qsMYX':function(_0x8f6556,_0x4b06d0){return _0x8f6556===_0x4b06d0;},'mmBNh':function(_0xb11b25,_0x2d6823){return _0xb11b25+_0x2d6823;}};try{this['jsonReportDirPath']=path[_0x29ab55(0xe4)](_0x3e908f[_0x29ab55(0x11a)](getLogDir),this[_0x29ab55(0x16d)]);if(fs['existsSync'](this[_0x29ab55(0xfa)])){const _0x98ede0=fs['readdirSync'](this[_0x29ab55(0xfa)]);for(const _0x5ecf06 of _0x98ede0){fs[_0x29ab55(0x10a)](path[_0x29ab55(0xe4)](this[_0x29ab55(0xfa)],_0x5ecf06));}}}catch(_0x20be8d){logger[_0x29ab55(0xc7)](_0x3e908f[_0x29ab55(0x12e)](_0x3e908f[_0x29ab55(0xe3)],_0x20be8d));}if(_0x3e908f[_0x29ab55(0xea)](this[_0x29ab55(0x138)][_0x29ab55(0x15f)],0x0))return;const _0x1bd595=this[_0x29ab55(0x15b)](),_0x5d5683=JSON[_0x29ab55(0x11f)](_0x1bd595),_0x4247b8=_0x3e908f['mmBNh'](_0x5d5683['slice'](0x1,-0x1),',');fs['appendFileSync'](this['jsonReportFileName'],_0x4247b8);}static async['finalizePerfMeasures'](){const _0x12c129=a118_0x5b48c3,_0x53ef7e={'VvhzB':function(_0xbbffb4){return _0xbbffb4();},'ziZFJ':function(_0x152c5a,_0xc225a7){return _0x152c5a===_0xc225a7;},'kdqtC':_0x12c129(0x120),'xiYPg':_0x12c129(0x123),'OgzQf':_0x12c129(0x16e),'qdVVN':function(_0x60f9b8,_0x4cd0da){return _0x60f9b8+_0x4cd0da;},'nWNHc':'Error\x20processing\x20key-metrics.json:\x20%s','OkXKt':_0x12c129(0x146),'vFJQD':_0x12c129(0xbf),'vDQjg':function(_0x223ff7,_0x4bdc5f){return _0x223ff7>_0x4bdc5f;}};this[_0x12c129(0xfa)]=path[_0x12c129(0xe4)](_0x53ef7e['VvhzB'](getLogDir),this[_0x12c129(0x16d)]);if(!this['started']||_0x53ef7e['ziZFJ'](this[_0x12c129(0x138)][_0x12c129(0x15f)],0x0))return[];if(!fs['existsSync'](this['jsonReportDirPath']))return this[_0x12c129(0x138)];const _0x5be479=(await fsPromise['readdir'](this['jsonReportDirPath']))[_0x12c129(0x157)](_0x1cff08=>path[_0x12c129(0x103)](this['jsonReportDirPath'],_0x1cff08));try{const _0x4cb468=path[_0x12c129(0xfe)](this[_0x12c129(0xfa)]),_0x112c95=path[_0x12c129(0xe4)](_0x4cb468,_0x53ef7e[_0x12c129(0xc3)]);if(fs['existsSync'](_0x112c95))try{await fsPromise[_0x12c129(0x139)](_0x112c95,fs[_0x12c129(0xc0)][_0x12c129(0x155)]);const _0xf19b4e=await fsPromise[_0x12c129(0x115)](_0x112c95,_0x53ef7e['xiYPg']),_0x109ded=JSON['parse'](_0xf19b4e),_0x13e6e2=path[_0x12c129(0xe4)](this[_0x12c129(0xfa)],_0x53ef7e[_0x12c129(0xf6)]);let _0x31bf90='';Array[_0x12c129(0xee)](_0x109ded)?_0x31bf90=_0x53ef7e[_0x12c129(0xf3)](_0x109ded[_0x12c129(0x157)](_0x3ef651=>JSON[_0x12c129(0x11f)](_0x3ef651))['join'](','),','):_0x31bf90=_0x53ef7e[_0x12c129(0xf3)](JSON[_0x12c129(0x11f)](_0x109ded),','),await fsPromise[_0x12c129(0x11b)](_0x13e6e2,_0x31bf90),_0x5be479[_0x12c129(0x130)](_0x13e6e2),await fsPromise[_0x12c129(0x161)](_0x112c95);}catch(_0x988816){logger[_0x12c129(0x160)](util[_0x12c129(0x12b)](_0x53ef7e[_0x12c129(0x140)],_0x988816[_0x12c129(0x14c)]||_0x988816[_0x12c129(0x110)]||_0x988816));}else logger[_0x12c129(0x160)](_0x53ef7e[_0x12c129(0x133)]);}catch(_0x5023c1){logger[_0x12c129(0x160)](util[_0x12c129(0x12b)](_0x53ef7e[_0x12c129(0x106)],_0x5023c1[_0x12c129(0x14c)]||_0x5023c1[_0x12c129(0x110)]||_0x5023c1));}let _0x1ee095=(await Promise[_0x12c129(0x124)](_0x5be479[_0x12c129(0x157)](_0x40f30a=>fsPromise[_0x12c129(0x115)](_0x40f30a,_0x12c129(0x123)))))[_0x12c129(0x157)](_0x2ed1cf=>'['+_0x2ed1cf['slice'](0x0,-0x1)+']')[_0x12c129(0x157)](_0x59a27f=>JSON[_0x12c129(0xd1)](_0x59a27f))[_0x12c129(0x151)]();return _0x53ef7e[_0x12c129(0xda)](this['_measureEvents']['length'],0x0)&&(_0x1ee095=_0x1ee095[_0x12c129(0x14a)](this[_0x12c129(0x15b)]())),this['_observer'][_0x12c129(0xd7)](),_0x1ee095;}static[a118_0x5b48c3(0x144)](){const _0x426a94=a118_0x5b48c3,_0x12d9d2={};_0x12d9d2[_0x426a94(0x16f)]=function(_0x4f5ef2,_0x4b469e){return _0x4f5ef2===_0x4b469e;},_0x12d9d2[_0x426a94(0x16b)]=function(_0x18ec90,_0x54d619){return _0x18ec90+_0x54d619;};const _0x475b89=_0x12d9d2;if(_0x475b89[_0x426a94(0x16f)](this['_errorEvents'][_0x426a94(0x15f)],0x0))return;const _0x242336=JSON['stringify'](this[_0x426a94(0x13b)]),_0x46e199=_0x475b89['MnRkF'](_0x242336[_0x426a94(0x134)](0x1,-0x1),',');fs['appendFileSync'](this[_0x426a94(0xfb)],_0x46e199);}static[a118_0x5b48c3(0x131)](){const _0x278d31=a118_0x5b48c3,_0x1d3c3c={};_0x1d3c3c[_0x278d31(0x164)]=function(_0x412ba6,_0x505ac1){return _0x412ba6>_0x505ac1;};const _0x3cdaba=_0x1d3c3c;if(this['errorReportFileName']){if(!fs['existsSync'](this[_0x278d31(0xf9)]))return this[_0x278d31(0x13b)];let _0x3e11bd=fs[_0x278d31(0x102)](this[_0x278d31(0xf9)])['toString']();_0x3e11bd='['+_0x3e11bd[_0x278d31(0x134)](0x0,-0x1)+']';let _0x263c7d=JSON[_0x278d31(0xd1)](_0x3e11bd);return _0x3cdaba[_0x278d31(0x164)](this['_errorEvents'][_0x278d31(0x15f)],0x0)&&(_0x263c7d=_0x263c7d[_0x278d31(0x14a)](this[_0x278d31(0x13b)])),fs[_0x278d31(0x10a)](this[_0x278d31(0xf9)]),_0x263c7d;}}static['captureError'](_0x1c40f9){const _0x4ba27b=a118_0x5b48c3;if(!this[_0x4ba27b(0xc6)]())return;this[_0x4ba27b(0x13b)][_0x4ba27b(0x130)]({'message':_0x1c40f9['message'],'trace':_0x1c40f9[_0x4ba27b(0x14c)],'code':_0x1c40f9[_0x4ba27b(0x11e)]||null,'time':new Date()});}static[a118_0x5b48c3(0x15e)](){const _0x18119d=a118_0x5b48c3;try{if(!this[_0x18119d(0xc6)]())return;this[_0x18119d(0x12f)][_0x18119d(0xd7)](),this[_0x18119d(0xce)](),this[_0x18119d(0x144)]();}catch(_0x29a45a){logger['debug'](_0x18119d(0x148)+util['format'](_0x29a45a));}}static async[a118_0x5b48c3(0x125)](){const _0x42e353=a118_0x5b48c3,_0x5ec595={'DWmyQ':function(_0x38f155,_0x547677){return _0x38f155(_0x547677);}};await _0x5ec595[_0x42e353(0xfd)](sleep,0x1e);const _0x303578=await this[_0x42e353(0xc2)](),_0x58ba90=this[_0x42e353(0x131)]();if(!this[_0x42e353(0xc6)]()){const _0xc022e0={};return _0xc022e0['measures']=[],_0xc022e0['errors']=[],_0xc022e0;}const _0xcd3d3e={};return _0xcd3d3e[_0x42e353(0x15a)]=_0x303578,_0xcd3d3e['errors']=_0x58ba90,_0xcd3d3e;}static[a118_0x5b48c3(0x13a)](_0x5b17d5){const _0x14d620=a118_0x5b48c3,_0x5441cc={};_0x5441cc[_0x14d620(0xe7)]=function(_0x21ca4e,_0x3888fb){return _0x21ca4e+_0x3888fb;},_0x5441cc[_0x14d620(0xf2)]=_0x14d620(0xd0);const _0x16a420=_0x5441cc,_0xe171b4=_0x16a420[_0x14d620(0xe7)](_0x5b17d5,_0x16a420[_0x14d620(0xf2)]);if(this[_0x14d620(0x11c)][_0xe171b4])return;performance[_0x14d620(0x10f)](_0xe171b4),this[_0x14d620(0x11c)][_0xe171b4]=0x1;}static[a118_0x5b48c3(0x168)](_0x322b49,_0xae7122=!![],_0x84672a=null,_0x557842={}){const _0x27c7d1=a118_0x5b48c3,_0xbb787b={'EXCXQ':function(_0x5bd97a,_0x309283){return _0x5bd97a+_0x309283;},'iHWmn':'-end','DGuyS':'-start','jDXOQ':function(_0x288ba5,_0x17f563){return _0x288ba5+_0x17f563;},'GRDWb':function(_0x288142){return _0x288142();},'UuZfS':function(_0x3ab5e7){return _0x3ab5e7();}};performance[_0x27c7d1(0x10f)](_0xbb787b[_0x27c7d1(0x171)](_0x322b49,_0xbb787b['iHWmn'])),performance['measure'](_0x322b49,_0xbb787b[_0x27c7d1(0x171)](_0x322b49,_0xbb787b[_0x27c7d1(0x116)]),_0xbb787b[_0x27c7d1(0xd9)](_0x322b49,_0xbb787b[_0x27c7d1(0x12a)]));const _0x11cdcd={};_0x11cdcd[_0x27c7d1(0xe6)]=_0xae7122,_0x11cdcd[_0x27c7d1(0xf4)]=_0x84672a,this['details'][_0x322b49]=Object['assign'](_0x11cdcd,Object[_0x27c7d1(0x142)](Object[_0x27c7d1(0x142)]({'worker':_0xbb787b[_0x27c7d1(0x165)](getProcessId),'platform':global['__platformCaps']&&global[_0x27c7d1(0x143)][_0x27c7d1(0x166)],'testName':_0xbb787b[_0x27c7d1(0xde)](getTestName)},_0x557842),this['details'][_0x322b49]||{}));}}module[a118_0x5b48c3(0xe0)]=PerformanceTester;
|
|
@@ -1 +1 @@
|
|
|
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
|
+
const a119_0x43e0eb=a119_0x1d7d;(function(_0x52ecf0,_0x5238fd){const _0x3eca51=a119_0x1d7d,_0x335f15=_0x52ecf0();while(!![]){try{const _0x450014=parseInt(_0x3eca51(0x112))/0x1*(parseInt(_0x3eca51(0x10f))/0x2)+parseInt(_0x3eca51(0x106))/0x3*(parseInt(_0x3eca51(0x122))/0x4)+parseInt(_0x3eca51(0x157))/0x5+parseInt(_0x3eca51(0x148))/0x6*(-parseInt(_0x3eca51(0x163))/0x7)+parseInt(_0x3eca51(0x14c))/0x8*(parseInt(_0x3eca51(0x11e))/0x9)+-parseInt(_0x3eca51(0xf9))/0xa*(parseInt(_0x3eca51(0xfb))/0xb)+-parseInt(_0x3eca51(0x141))/0xc;if(_0x450014===_0x5238fd)break;else _0x335f15['push'](_0x335f15['shift']());}catch(_0x2e53d8){_0x335f15['push'](_0x335f15['shift']());}}}(a119_0x104a,0xe7770));const path=require(a119_0x43e0eb(0x117)),util=require(a119_0x43e0eb(0x10e)),{importFileFromPWCore}=require(a119_0x43e0eb(0x109)),helper=require('./helper'),logger=require(a119_0x43e0eb(0xf7))[a119_0x43e0eb(0x152)],W3CMapping=require('./w3cMapping')[a119_0x43e0eb(0x100)](),constants=require(a119_0x43e0eb(0x166)),BrowserstackCLI=require('../bin/v2/browserstackCLI'),CLIUtils=require(a119_0x43e0eb(0x12c));let GrpcClient;function a119_0x104a(){const _0x2a3ca7=['browserstack.buildProductMap','Detected\x20Playwright\x20version\x20','BROWSERSTACK_TESTHUB_UUID','env','spyoj','Could\x20not\x20import\x20GrpcClient:\x20','36PBSOBZ','dMErO','mgiFJ','platformCaps','20LqPEjA','browserstack.accessibilityOptions.wcagVersion','BS_A11Y_JWT','debug','bootstrap','No\x20usable\x20capabilities\x20found\x20in\x20modified\x20config\x20response','iXjYb','checkPwandBootstrapCli','setFrameworkDetail','cEwKc','../bin/v2/cliUtils','cucumberjs-pw','convertW3CToJsonWire','XXLWL','PDlBF','client','qFepq','Lnavk','lib','Received\x20modified\x20config\x20from\x20gRPC:\x20','getPlaywrightConfig','chrome','browserType.js','exports','Error\x20getting\x20Playwright\x20BrowserType:\x20','bstack:options','use','browserstack.accessibilityOptions.authToken','jitWQ','niPdI','\x20for\x20','14213520puvZaF','DpmhS','OkTwW','message','kpWUQ','nmeiM','importFileFromPWCore','6IPudAf','stringify','entries','BrowserType','3083432Klqfvm','YcdUl','getPlaywrightModulePath\x20is\x20deprecated,\x20use\x20importFileFromPWCore\x20instead','TJLwe','iAlYC','projects','winstonLogger','ypJek','Error\x20getting\x20modified\x20config\x20from\x20gRPC:\x20','PToNC','parse','4517140AtooHl','ciJAT','./testhub/utils','format','hwaKu','pNGtg','setBrowserstackConfig','\x20flow','shCSJ','getPlaywrightModulePath','SOIwM','getInstance','4246564QlCHBI','config','OrLDV','../bin/utils/constants','framework','KrjjK','NIjov','cliConfig','./logger','getConfig','290JYcaWW','getBrowserFromCaps','422477totKvr','length','__launchCaps','Playwright\x20not\x20available:\x20','Hbvto','W3CMapping','browserstack.testhubBuildUuid','browser','isArray','generatePlaywrightUrl','Requesting\x20modified\x20Playwright\x20config\x20from\x20gRPC\x20for\x20cucumberjs-pw','239082GteZXm','error','MKRlB','./helper','TmFJl','No\x20modified\x20config\x20received\x20from\x20gRPC','foBTx','getPlaywrightUrl','util','2018762jheEPn','capabilities','EnWVl','1iNKFfU','isPlaywrightAvailable','browserstack.accessibilityOptions.scannerProcessingTimeout','PLAYWRIGHT','getBrowserTypePath\x20is\x20deprecated,\x20use\x20importFileFromPWCore\x20instead','path'];a119_0x104a=function(){return _0x2a3ca7;};return a119_0x104a();}function a119_0x1d7d(_0x542c37,_0x5e1fce){const _0x104a5d=a119_0x104a();return a119_0x1d7d=function(_0x1d7d9c,_0xf7555e){_0x1d7d9c=_0x1d7d9c-0xf4;let _0x551739=_0x104a5d[_0x1d7d9c];return _0x551739;},a119_0x1d7d(_0x542c37,_0x5e1fce);}try{GrpcClient=require('../bin/v2/grpcClient');}catch(a119_0x5b9354){logger[a119_0x43e0eb(0x125)](a119_0x43e0eb(0x11d)+a119_0x5b9354['message']),GrpcClient=null;}const convertW3CToJsonWire=_0x2317cf=>{const _0xe515f8=a119_0x43e0eb,_0x43e9cf={};_0x43e9cf[_0xe515f8(0x15c)]=function(_0x28f6a7,_0x27530e){return _0x28f6a7||_0x27530e;},_0x43e9cf['dMErO']=function(_0xb613c,_0x229852){return _0xb613c===_0x229852;},_0x43e9cf['OkTwW']=_0xe515f8(0x13b),_0x43e9cf[_0xe515f8(0x10a)]=function(_0x4423f6,_0x376aa6){return _0x4423f6===_0x376aa6;},_0x43e9cf[_0xe515f8(0x13e)]=function(_0x2568f8,_0x2a0792){return _0x2568f8 in _0x2a0792;};const _0x4fbbf3=_0x43e9cf,_0x2dd5c0={};for(const [_0x1977ef,_0x56caa8]of Object[_0xe515f8(0x14a)](_0x4fbbf3[_0xe515f8(0x15c)](_0x2317cf,{}))){if(_0x4fbbf3[_0xe515f8(0x11f)](_0x1977ef,_0x4fbbf3['OkTwW']))continue;let _0x574c41=![];for(const [_0x384c9d,_0x4957da]of Object[_0xe515f8(0x14a)](W3CMapping)){if(_0x4fbbf3[_0xe515f8(0x11f)](_0x1977ef,_0x4957da)){_0x2dd5c0[_0x384c9d]=_0x56caa8,_0x574c41=!![];break;}}!_0x574c41&&(_0x2dd5c0[_0x1977ef]=_0x56caa8);}const _0x3a8cec=_0x2317cf[_0x4fbbf3[_0xe515f8(0x143)]]||{};for(const [_0x592dd9,_0x19991b]of Object[_0xe515f8(0x14a)](_0x3a8cec)){let _0x3f0598=![];for(const [_0x114ab6,_0x39349a]of Object[_0xe515f8(0x14a)](W3CMapping)){if(_0x4fbbf3[_0xe515f8(0x10a)](_0x592dd9,_0x39349a)){_0x2dd5c0[_0x114ab6]=_0x19991b,_0x3f0598=!![];break;}}!_0x3f0598&&!_0x4fbbf3[_0xe515f8(0x13e)](_0x592dd9,_0x2dd5c0)&&(_0x2dd5c0[_0x592dd9]=_0x19991b);}return logger[_0xe515f8(0x125)]('Converted\x20W3C\x20caps\x20to\x20JSONWire:\x20'+JSON[_0xe515f8(0x149)](_0x2dd5c0)),_0x2dd5c0;},getModifiedConfigFromCLI=async _0x368a4=>{const _0x255278=a119_0x43e0eb,_0x510f64={};_0x510f64[_0x255278(0x14f)]='GrpcClient\x20not\x20available,\x20skipping\x20modified\x20config\x20request',_0x510f64['ahhLB']=_0x255278(0x12d),_0x510f64[_0x255278(0x165)]=_0x255278(0x105),_0x510f64['cEwKc']=_0x255278(0x10b),_0x510f64[_0x255278(0x108)]=function(_0x2f657f,_0x1915f0){return _0x2f657f>_0x1915f0;},_0x510f64[_0x255278(0x142)]=function(_0xa56f92,_0x53c47){return _0xa56f92>_0x53c47;},_0x510f64['Hbvto']=_0x255278(0x127);const _0x2d03c7=_0x510f64;try{if(!GrpcClient)return logger[_0x255278(0x125)](_0x2d03c7['TJLwe']),null;const _0xf34dce={};_0xf34dce[_0x255278(0x110)]=_0x368a4,_0xf34dce[_0x255278(0x167)]=_0x2d03c7['ahhLB'],_0xf34dce['workers']=0x1,_0xf34dce[_0x255278(0x151)]=[];const _0xf48eab=_0xf34dce;logger[_0x255278(0x125)](_0x2d03c7['OrLDV']);const _0x55f4b5={};_0x55f4b5['playwrightConfigObject']=_0xf48eab;const _0x49af29=await GrpcClient['getInstance']()[_0x255278(0x136)](_0x55f4b5);if(!_0x49af29[_0x255278(0xf8)]())return logger[_0x255278(0x125)](_0x2d03c7[_0x255278(0x12b)]),null;const _0x4559bb=JSON[_0x255278(0x156)](_0x49af29['getConfig']());logger[_0x255278(0x125)](_0x255278(0x135)+JSON[_0x255278(0x149)](_0x4559bb));if(_0x4559bb[_0x255278(0x110)]&&Array['isArray'](_0x4559bb[_0x255278(0x110)])&&_0x2d03c7[_0x255278(0x108)](_0x4559bb[_0x255278(0x110)]['length'],0x0))return _0x4559bb['capabilities'][0x0];else{if(_0x4559bb['projects']&&Array[_0x255278(0x103)](_0x4559bb[_0x255278(0x151)])&&_0x2d03c7[_0x255278(0x142)](_0x4559bb['projects'][_0x255278(0xfc)],0x0)){const _0x41a643=_0x4559bb[_0x255278(0x151)][0x0];if(_0x41a643[_0x255278(0x13c)]&&_0x41a643[_0x255278(0x13c)][_0x255278(0x121)])return _0x41a643[_0x255278(0x13c)][_0x255278(0x121)];}}return logger[_0x255278(0x125)](_0x2d03c7[_0x255278(0xff)]),null;}catch(_0x380ee6){logger[_0x255278(0x107)](_0x255278(0x154)+_0x380ee6[_0x255278(0x144)]);throw _0x380ee6;}},generatePlaywrightUrl=(_0x18939e,_0x6c7a9a)=>{const _0x275e47=a119_0x43e0eb,_0x3fbd5a={'kpWUQ':function(_0x1774b2,_0x5d8fa4){return _0x1774b2!==_0x5d8fa4;},'XXLWL':function(_0xd9cf24,_0x235f8c){return _0xd9cf24!==_0x235f8c;},'foBTx':function(_0x49c5e6,_0x425d06){return _0x49c5e6!==_0x425d06;},'PDlBF':function(_0x4ae024,_0x5b1bf7){return _0x4ae024!==_0x5b1bf7;},'iAlYC':function(_0x34e1d9,_0x32b88c){return _0x34e1d9(_0x32b88c);},'iXjYb':function(_0x1425e0,_0x907798){return _0x1425e0||_0x907798;},'hwaKu':function(_0x52f441,_0x19060a){return _0x52f441(_0x19060a);},'shCSJ':_0x275e47(0x13d),'qFepq':function(_0x5ebf4a,_0x44b21e){return _0x5ebf4a(_0x44b21e);},'SOIwM':_0x275e47(0x123),'tZprl':'browserstack.accessibilityOptions.scannerVersion','ewNaG':_0x275e47(0x114),'nmeiM':_0x275e47(0x101),'pUniF':_0x275e47(0x118),'PToNC':function(_0x21bd7e,_0x2d0311){return _0x21bd7e+_0x2d0311;}},_0x315f6c=helper[_0x275e47(0x10d)](_0x18939e),_0xa048=_0x3fbd5a[_0x275e47(0x150)](convertW3CToJsonWire,_0x6c7a9a);try{const _0x406e2d=[_0x3fbd5a[_0x275e47(0x128)](_0x6c7a9a,{}),global[_0x275e47(0xfd)]||{},global['__platformCaps']||{},global['__accessibilityOptions']||{}],_0x56fcda=_0x5285e8=>{const _0x103639=_0x275e47;if(_0x3fbd5a[_0x103639(0x145)](_0xa048[_0x5285e8],undefined)&&_0x3fbd5a['kpWUQ'](_0xa048[_0x5285e8],null)&&_0x3fbd5a[_0x103639(0x12f)](_0xa048[_0x5285e8],''))return;for(const _0x1ef55f of _0x406e2d){if(_0x1ef55f&&_0x3fbd5a[_0x103639(0x10c)](_0x1ef55f[_0x5285e8],undefined)&&_0x3fbd5a[_0x103639(0x130)](_0x1ef55f[_0x5285e8],null)&&_0x3fbd5a['XXLWL'](_0x1ef55f[_0x5285e8],'')){_0xa048[_0x5285e8]=_0x1ef55f[_0x5285e8];return;}}};_0x3fbd5a[_0x275e47(0x15b)](_0x56fcda,_0x3fbd5a[_0x275e47(0x15f)]),_0x3fbd5a[_0x275e47(0x132)](_0x56fcda,_0x3fbd5a[_0x275e47(0x161)]),_0x3fbd5a[_0x275e47(0x15b)](_0x56fcda,_0x3fbd5a['tZprl']),_0x3fbd5a['hwaKu'](_0x56fcda,_0x3fbd5a['ewNaG']),!_0xa048[_0x3fbd5a[_0x275e47(0x15f)]]&&process[_0x275e47(0x11b)][_0x275e47(0x124)]&&(_0xa048[_0x3fbd5a['shCSJ']]=process['env'][_0x275e47(0x124)]);}catch(_0x2409f5){logger[_0x275e47(0x125)]('Unable\x20to\x20merge\x20accessibility\x20capabilities\x20into\x20Playwright\x20URL\x20caps:\x20'+util['format'](_0x2409f5));}return _0xa048[_0x3fbd5a[_0x275e47(0x146)]]=process['env'][_0x275e47(0x11a)],_0xa048[_0x3fbd5a['pUniF']]=helper['getBuildProductMap'](),_0x3fbd5a[_0x275e47(0x155)](_0x315f6c,_0x3fbd5a['iAlYC'](encodeURIComponent,JSON['stringify'](_0xa048)));},getBrowserFromCaps=_0x43f1d9=>{const _0x4cd17b=a119_0x43e0eb,_0x241d1b={};_0x241d1b[_0x4cd17b(0x133)]=_0x4cd17b(0x137);const _0x24362d=_0x241d1b;return _0x43f1d9['browserName']||_0x43f1d9[_0x4cd17b(0x102)]||_0x24362d[_0x4cd17b(0x133)];},isPlaywrightAvailable=()=>{const _0x91bae0=a119_0x43e0eb,_0x76c3a5={'YcdUl':'lib','spyoj':_0x91bae0(0x131),'KrjjK':_0x91bae0(0x138),'zVJxS':function(_0x581aa8,_0x4d249a){return _0x581aa8(_0x4d249a);}};try{const _0x417a79=path['join'](_0x76c3a5[_0x91bae0(0x14d)],_0x76c3a5[_0x91bae0(0x11c)],_0x76c3a5[_0x91bae0(0xf4)]),_0x3b85a0=_0x76c3a5['zVJxS'](importFileFromPWCore,_0x417a79);return!!_0x3b85a0;}catch(_0x1c431e){return logger[_0x91bae0(0x125)](_0x91bae0(0xfe)+util[_0x91bae0(0x15a)](_0x1c431e)),![];}},getPlaywrightBrowserType=()=>{const _0x369747=a119_0x43e0eb,_0x3683b9={'EnWVl':_0x369747(0x134),'mgiFJ':'client','eTzGX':_0x369747(0x138),'ciJAT':function(_0x49bf65,_0x5cc9a9){return _0x49bf65(_0x5cc9a9);}};try{const _0x3d63e2=path['join'](_0x3683b9[_0x369747(0x111)],_0x3683b9[_0x369747(0x120)],_0x3683b9['eTzGX']),_0x25c201=_0x3683b9[_0x369747(0x158)](importFileFromPWCore,_0x3d63e2);return _0x25c201?_0x25c201[_0x369747(0x14b)]:null;}catch(_0x1c4183){return logger['debug'](_0x369747(0x13a)+util['format'](_0x1c4183)),null;}},getPlaywrightModulePath=()=>{const _0xde7725=a119_0x43e0eb,_0x2eed36={};_0x2eed36['NIjov']=_0xde7725(0x14e);const _0x41f9d9=_0x2eed36;return logger[_0xde7725(0x125)](_0x41f9d9[_0xde7725(0xf5)]),null;},getBrowserTypePath=()=>{const _0x1573c6=a119_0x43e0eb,_0x37c89c={};_0x37c89c['ypJek']=_0x1573c6(0x116);const _0x5c9b69=_0x37c89c;return logger['debug'](_0x5c9b69[_0x1573c6(0x153)]),null;},checkPwandBootstrapCli=async(_0x1dd381,_0x14da4e,_0x2df2b6)=>{const _0x2698db=a119_0x43e0eb,_0x149670={'cmztd':function(_0x1114b1,_0x5e4a36){return _0x1114b1(_0x5e4a36);},'niPdI':_0x2698db(0x159),'JpcWn':function(_0x1b0e59,_0x582636){return _0x1b0e59(_0x582636);}};if(_0x1dd381){const _0x2365ce=constants['FRAMEWORKS'][_0x2698db(0x115)];logger['debug'](_0x2698db(0x119)+_0x1dd381+_0x2698db(0x140)+_0x14da4e+_0x2698db(0x15e)),CLIUtils[_0x2698db(0x12a)](_0x14da4e,_0x2365ce);const {getProductMap:_0x385013}=_0x149670['cmztd'](require,_0x149670[_0x2698db(0x13f)]);process[_0x2698db(0x11b)]['BROWSERSTACK_PRODUCT_MAP']=JSON[_0x2698db(0x149)](_0x149670['JpcWn'](_0x385013,_0x2df2b6[_0x2698db(0x164)])),BrowserstackCLI[_0x2698db(0x162)]()[_0x2698db(0x15d)](_0x2df2b6[_0x2698db(0x164)],_0x2df2b6[_0x2698db(0xf6)]),await BrowserstackCLI[_0x2698db(0x162)]()[_0x2698db(0x126)]();}},a119_0x5a7739={};a119_0x5a7739[a119_0x43e0eb(0x12e)]=convertW3CToJsonWire,a119_0x5a7739['getModifiedConfigFromCLI']=getModifiedConfigFromCLI,a119_0x5a7739[a119_0x43e0eb(0x104)]=generatePlaywrightUrl,a119_0x5a7739[a119_0x43e0eb(0xfa)]=getBrowserFromCaps,a119_0x5a7739[a119_0x43e0eb(0x113)]=isPlaywrightAvailable,a119_0x5a7739['getPlaywrightBrowserType']=getPlaywrightBrowserType,a119_0x5a7739[a119_0x43e0eb(0x160)]=getPlaywrightModulePath,a119_0x5a7739['getBrowserTypePath']=getBrowserTypePath,a119_0x5a7739[a119_0x43e0eb(0x147)]=importFileFromPWCore,a119_0x5a7739[a119_0x43e0eb(0x129)]=checkPwandBootstrapCli,module[a119_0x43e0eb(0x139)]=a119_0x5a7739;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a120_0x151582=a120_0x307f;function a120_0x307f(_0x1a2d23,_0x5c232a){const _0x21934c=a120_0x2193();return a120_0x307f=function(_0x307fb9,_0x12566a){_0x307fb9=_0x307fb9-0x1b5;let _0x206bde=_0x21934c[_0x307fb9];return _0x206bde;},a120_0x307f(_0x1a2d23,_0x5c232a);}(function(_0x17b80d,_0x50c9b7){const _0x94db8c=a120_0x307f,_0x3c4bfd=_0x17b80d();while(!![]){try{const _0x6f6e09=-parseInt(_0x94db8c(0x1b7))/0x1*(-parseInt(_0x94db8c(0x1d8))/0x2)+-parseInt(_0x94db8c(0x1c9))/0x3*(parseInt(_0x94db8c(0x1d4))/0x4)+parseInt(_0x94db8c(0x1c7))/0x5+parseInt(_0x94db8c(0x1d7))/0x6*(parseInt(_0x94db8c(0x1d9))/0x7)+parseInt(_0x94db8c(0x1b8))/0x8*(-parseInt(_0x94db8c(0x1bb))/0x9)+parseInt(_0x94db8c(0x1d6))/0xa*(-parseInt(_0x94db8c(0x1b9))/0xb)+parseInt(_0x94db8c(0x1d1))/0xc*(parseInt(_0x94db8c(0x1c4))/0xd);if(_0x6f6e09===_0x50c9b7)break;else _0x3c4bfd['push'](_0x3c4bfd['shift']());}catch(_0x56319e){_0x3c4bfd['push'](_0x3c4bfd['shift']());}}}(a120_0x2193,0x754f3));const worker=require(a120_0x151582(0x1c3)),{fileLogger}=require('./logger'),{consoleHolder}=require(a120_0x151582(0x1cc)),globals=require('./globals'),constants=require(a120_0x151582(0x1c5));function a120_0x2193(){const _0x3fdbc2=['getTestName','getGlobal','UQdol','pid','log','worker_threads','2054cEZmeS','../bin/utils/constants','HbemD','4547510lBIRyh','true','3234jzpJhi','toISOString','threadId','./test-observability/constants','env','\x20]\x20','THYPq','okQAR','17124ufjSGz','agXUx','debug','640vgcUii','getProcessId','6373540vgRcCW','1609782PBEnud','3578zBundx','7szKWhc','TEST_REPORTING_ANALYTICS','sleep','229CntiXf','45944OQkVxZ','11HoWqdk','BROWSERSTACK_OBSERVABILITY_DEBUG','819bXkvXG','BROWSERSTACK_TEST_REPORTING_DEBUG','][\x20'];a120_0x2193=function(){return _0x3fdbc2;};return a120_0x2193();}exports[a120_0x151582(0x1d5)]=()=>{const _0x489239=a120_0x151582;return process[_0x489239(0x1c1)]+'-'+worker[_0x489239(0x1cb)];},exports[a120_0x151582(0x1be)]=()=>{const _0x483dac=a120_0x151582,_0x430298={};_0x430298[_0x483dac(0x1d2)]='browserstackTestName';const _0x169392=_0x430298;return globals[_0x483dac(0x1bf)](_0x169392[_0x483dac(0x1d2)]);},exports[a120_0x151582(0x1b6)]=(_0x259732=0x64)=>new Promise(_0x5c2b66=>setTimeout(_0x5c2b66,_0x259732)),exports['debug']=_0x32d68f=>{const _0x66d80f=a120_0x151582,_0xf1569f={};_0xf1569f['HbemD']=function(_0x2fc7a0,_0x2ee16f){return _0x2fc7a0===_0x2ee16f;},_0xf1569f[_0x66d80f(0x1cf)]=_0x66d80f(0x1c8),_0xf1569f[_0x66d80f(0x1d0)]=function(_0x4b3999,_0x1cdab8){return _0x4b3999===_0x1cdab8;},_0xf1569f[_0x66d80f(0x1c0)]=function(_0x57bae9,_0x2527e6){return _0x57bae9===_0x2527e6;};const _0x3efe60=_0xf1569f;fileLogger[_0x66d80f(0x1d3)]('['+new Date()[_0x66d80f(0x1ca)]()+_0x66d80f(0x1bd)+constants[_0x66d80f(0x1b5)]+_0x66d80f(0x1ce)+_0x32d68f),(_0x3efe60[_0x66d80f(0x1c6)](process[_0x66d80f(0x1cd)][_0x66d80f(0x1bc)],_0x3efe60['THYPq'])||_0x3efe60[_0x66d80f(0x1c6)](process['env']['BROWSERSTACK_TEST_REPORTING_DEBUG'],'1')||_0x3efe60[_0x66d80f(0x1d0)](process[_0x66d80f(0x1cd)][_0x66d80f(0x1ba)],_0x3efe60[_0x66d80f(0x1cf)])||_0x3efe60['UQdol'](process['env']['BROWSERSTACK_OBSERVABILITY_DEBUG'],'1'))&&consoleHolder[_0x66d80f(0x1c2)]('\x0a['+new Date()[_0x66d80f(0x1ca)]()+_0x66d80f(0x1bd)+constants[_0x66d80f(0x1b5)]+_0x66d80f(0x1ce)+_0x32d68f+'\x0a');};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a121_0x1b64(_0x12f782,_0x2615d7){const _0xf89a9c=a121_0xf89a();return a121_0x1b64=function(_0x1b64fc,_0x377ddc){_0x1b64fc=_0x1b64fc-0x109;let _0x4cfe2f=_0xf89a9c[_0x1b64fc];return _0x4cfe2f;},a121_0x1b64(_0x12f782,_0x2615d7);}const a121_0x1dd764=a121_0x1b64;(function(_0x21b3b2,_0x2f0e78){const _0x114035=a121_0x1b64,_0xb39e1=_0x21b3b2();while(!![]){try{const _0x4228a0=-parseInt(_0x114035(0x10d))/0x1+-parseInt(_0x114035(0x12d))/0x2+-parseInt(_0x114035(0x136))/0x3*(parseInt(_0x114035(0x110))/0x4)+-parseInt(_0x114035(0x135))/0x5+parseInt(_0x114035(0x109))/0x6*(-parseInt(_0x114035(0x11f))/0x7)+parseInt(_0x114035(0x13e))/0x8+parseInt(_0x114035(0x10b))/0x9*(parseInt(_0x114035(0x10f))/0xa);if(_0x4228a0===_0x2f0e78)break;else _0xb39e1['push'](_0xb39e1['shift']());}catch(_0x687c93){_0xb39e1['push'](_0xb39e1['shift']());}}}(a121_0xf89a,0x40bc5));const http=require(a121_0x1dd764(0x12f)),https=require(a121_0x1dd764(0x134)),monkeypatch=require(a121_0x1dd764(0x113));function spy(_0x25e58d){const _0x3bc74c=a121_0x1dd764,_0x381c7a={'LDAkc':function(_0x3a1e0d,_0x22f2f4){return _0x3a1e0d instanceof _0x22f2f4;},'ytAFY':function(_0x4d8b92,_0xdcb53c){return _0x4d8b92===_0xdcb53c;},'LjNte':_0x3bc74c(0x112),'NFQOW':function(_0x2be068,..._0x49d796){return _0x2be068(..._0x49d796);},'iwNQf':function(_0x33b1a5,_0x383e3c,_0x4cc840){return _0x33b1a5(_0x383e3c,_0x4cc840);},'ePYyc':function(_0x4c0fd1,_0x2308de){return _0x4c0fd1-_0x2308de;},'iyfIl':function(_0x26fa05,_0x4e1483,_0x6be6c5){return _0x26fa05(_0x4e1483,_0x6be6c5);},'PNlfs':_0x3bc74c(0x114),'oospc':_0x3bc74c(0x11e),'tcEfl':_0x3bc74c(0x123),'tLgaI':function(_0x4a90bf,_0x340985,_0x23a4dc,_0x3f2983){return _0x4a90bf(_0x340985,_0x23a4dc,_0x3f2983);},'dULLV':_0x3bc74c(0x116),'HccnP':_0x3bc74c(0x138)},_0x1ef38e=function(){const _0x1e2ec5=_0x3bc74c,_0x2f471f={'HpPGp':function(_0x22fc72,_0xf8f0de,_0x1a062c){const _0x4cc2d7=a121_0x1b64;return _0x381c7a[_0x4cc2d7(0x10a)](_0x22fc72,_0xf8f0de,_0x1a062c);},'NiYLF':function(_0x3f961b,_0x3e8951){const _0xb20bed=a121_0x1b64;return _0x381c7a[_0xb20bed(0x133)](_0x3f961b,_0x3e8951);},'WCdrM':function(_0x3803f5,_0x3c0c2d,_0x452943){const _0x449091=a121_0x1b64;return _0x381c7a[_0x449091(0x13a)](_0x3803f5,_0x3c0c2d,_0x452943);},'hkLVp':_0x381c7a[_0x1e2ec5(0x10c)]},_0x29b107=arguments[0x0],_0x7aa36=Array[_0x1e2ec5(0x13d)]['slice']['call'](arguments,0x1),_0x2dedf=_0x29b107[_0x1e2ec5(0x10e)](this,_0x7aa36);let _0x51124c=Date['now'](),_0x29f5c0;const _0x563137={};_0x7aa36[_0x1e2ec5(0x126)](_0x4b4bdd=>{const _0x23700c=_0x1e2ec5;if(_0x381c7a[_0x23700c(0x12e)](_0x4b4bdd,URL)){const _0x3f828d={};_0x3f828d[_0x23700c(0x12a)]=_0x4b4bdd,Object[_0x23700c(0x12c)](_0x563137,_0x3f828d);}else _0x381c7a[_0x23700c(0x139)](typeof _0x4b4bdd,_0x381c7a[_0x23700c(0x122)])&&Object[_0x23700c(0x12c)](_0x563137,_0x4b4bdd);});const _0x51e520=_0x5d11a3=>{const _0x11ddbd=_0x1e2ec5,_0x2dda72={};_0x2dda72['host']=_0x563137[_0x11ddbd(0x132)]||_0x563137[_0x11ddbd(0x121)]||_0x563137[_0x11ddbd(0x12a)]&&(_0x563137[_0x11ddbd(0x12a)][_0x11ddbd(0x132)]||_0x563137[_0x11ddbd(0x12a)][_0x11ddbd(0x121)]),_0x2dda72[_0x11ddbd(0x120)]=_0x563137[_0x11ddbd(0x120)]||_0x563137[_0x11ddbd(0x12a)]&&_0x563137[_0x11ddbd(0x12a)][_0x11ddbd(0x13b)],_0x2dda72[_0x11ddbd(0x119)]=_0x563137[_0x11ddbd(0x119)],_0x2dda72[_0x11ddbd(0x129)]=_0x563137[_0x11ddbd(0x129)],_0x2f471f[_0x11ddbd(0x127)](_0x25e58d,_0x5d11a3,_0x2dda72);};return _0x2dedf[_0x1e2ec5(0x137)](_0x381c7a[_0x1e2ec5(0x124)],_0x406f6f=>{const _0x108728=_0x1e2ec5,_0x4c14c2=_0x2f471f['NiYLF'](Date[_0x108728(0x11a)](),_0x51124c),_0x44d0bc={};_0x44d0bc[_0x108728(0x121)]=_0x563137['host']||_0x563137[_0x108728(0x121)]||_0x563137[_0x108728(0x12a)]&&(_0x563137[_0x108728(0x12a)][_0x108728(0x132)]||_0x563137[_0x108728(0x12a)][_0x108728(0x121)]),_0x44d0bc[_0x108728(0x120)]=_0x563137[_0x108728(0x120)]||_0x563137[_0x108728(0x12a)]&&_0x563137[_0x108728(0x12a)][_0x108728(0x13b)],_0x44d0bc[_0x108728(0x119)]=_0x563137[_0x108728(0x119)],_0x44d0bc[_0x108728(0x129)]=_0x563137['headers'],_0x44d0bc[_0x108728(0x111)]=_0x406f6f[_0x108728(0x11b)],_0x44d0bc['duration_ms']=_0x4c14c2,_0x2f471f[_0x108728(0x11c)](_0x25e58d,null,_0x44d0bc),_0x29f5c0[_0x108728(0x13c)](_0x2f471f[_0x108728(0x118)],_0x51e520);}),_0x2dedf['on'](_0x381c7a['tcEfl'],_0x11cd81=>{const _0x377ed0=_0x1e2ec5;_0x29f5c0=_0x11cd81,_0x11cd81['once'](_0x2f471f[_0x377ed0(0x118)],_0x51e520);}),_0x381c7a[_0x1e2ec5(0x11d)](monkeypatch,_0x2dedf,_0x381c7a[_0x1e2ec5(0x12b)],(_0x1115f3,..._0x641529)=>{const _0x180392=_0x1e2ec5;_0x51124c=Date[_0x180392(0x11a)](),_0x381c7a[_0x180392(0x131)](_0x1115f3,..._0x641529);}),_0x2dedf;};_0x381c7a['tLgaI'](monkeypatch,http,_0x381c7a[_0x3bc74c(0x125)],_0x1ef38e),_0x381c7a[_0x3bc74c(0x11d)](monkeypatch,https,_0x381c7a[_0x3bc74c(0x125)],_0x1ef38e);}function restore(){const _0x259087=a121_0x1dd764;http[_0x259087(0x138)]['unpatch'](),https[_0x259087(0x138)][_0x259087(0x128)]();}const a121_0x330866={};function a121_0xf89a(){const _0x3a812a=['LjNte','socket','oospc','HccnP','forEach','HpPGp','unpatch','headers','url','dULLV','assign','245474lyvZTf','LDAkc','http','spy','NFQOW','host','ePYyc','https','674235iXVJxm','48EpRdDm','once','request','ytAFY','iyfIl','pathname','removeListener','prototype','3883376TVZEub','1563486PKfAEP','iwNQf','16281TMzgOS','PNlfs','157579fHVMSX','apply','4870jLzWLC','106376tZvqfq','status_code','object','monkeypatch','error','restore','end','exports','hkLVp','method','now','statusCode','WCdrM','tLgaI','response','7qRdakv','path','hostname'];a121_0xf89a=function(){return _0x3a812a;};return a121_0xf89a();}a121_0x330866[a121_0x1dd764(0x130)]=spy,a121_0x330866[a121_0x1dd764(0x115)]=restore,module[a121_0x1dd764(0x117)]=a121_0x330866;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a122_0x12c791=a122_0x18dc;function a122_0x1751(){const _0x333603=['84918oTGzLm','request','measureWrapper','exports','24471lBoJHp','TDdRt','112llzYGv','5504352WHskPd','2776235FysOks','ZhQJd','GcKsl','https','prototype','zVbWt','http','669278pGsaRd','protocol','614754jybgmn','6210DwsAAU','gPuuc','agent','https:','./performance/constants','globalAgent','keepAliveMsecs','vqiIG','./performance/performance-tester','CiCoh','2340gCpDRA','2499qhChWT','keepAlive','Agent','call'];a122_0x1751=function(){return _0x333603;};return a122_0x1751();}(function(_0x404e3e,_0x4280b0){const _0x3be73d=a122_0x18dc,_0x5bcc33=_0x404e3e();while(!![]){try{const _0x9c4cbd=-parseInt(_0x3be73d(0x1fd))/0x1+parseInt(_0x3be73d(0x1ff))/0x2+-parseInt(_0x3be73d(0x1ea))/0x3*(-parseInt(_0x3be73d(0x1e9))/0x4)+-parseInt(_0x3be73d(0x1f6))/0x5+parseInt(_0x3be73d(0x1ee))/0x6*(-parseInt(_0x3be73d(0x1f4))/0x7)+-parseInt(_0x3be73d(0x1f5))/0x8+-parseInt(_0x3be73d(0x1f2))/0x9*(-parseInt(_0x3be73d(0x200))/0xa);if(_0x9c4cbd===_0x4280b0)break;else _0x5bcc33['push'](_0x5bcc33['shift']());}catch(_0xa0758e){_0x5bcc33['push'](_0x5bcc33['shift']());}}}(a122_0x1751,0x54064));const PerformanceTester=require(a122_0x12c791(0x1e7)),{AUTOMATE_EVENTS:PerformanceEvents}=require(a122_0x12c791(0x204));function a122_0x18dc(_0x4704cf,_0x1ded99){const _0x1751be=a122_0x1751();return a122_0x18dc=function(_0x18dc71,_0x33cdae){_0x18dc71=_0x18dc71-0x1e4;let _0x169abb=_0x1751be[_0x18dc71];return _0x169abb;},a122_0x18dc(_0x4704cf,_0x1ded99);}module[a122_0x12c791(0x1f1)]=PerformanceTester[a122_0x12c791(0x1f0)](PerformanceEvents['KEEP_ALIVE'],function(){const _0x4a4e2f=a122_0x12c791,_0x67dc59={'lxhAJ':function(_0x248c7f,_0x1720c2){return _0x248c7f===_0x1720c2;},'zVbWt':_0x4a4e2f(0x203),'rxyOq':_0x4a4e2f(0x202),'ZhQJd':function(_0x1643b3,_0x292b98,_0x7f973f){return _0x1643b3(_0x292b98,_0x7f973f);},'CiCoh':function(_0x561647,_0x23f6e7,_0x5337d0){return _0x561647(_0x23f6e7,_0x5337d0);},'TDdRt':function(_0x1954a3,_0x1781d5){return _0x1954a3(_0x1781d5);},'vqiIG':_0x4a4e2f(0x1fc),'GcKsl':_0x4a4e2f(0x1f9),'CZaml':function(_0x42ebbc,_0x5bf744){return _0x42ebbc*_0x5bf744;},'gPuuc':'keepAlive'},_0x110585=_0x67dc59[_0x4a4e2f(0x1f3)](require,_0x67dc59[_0x4a4e2f(0x1e6)]),_0x3488e7=_0x67dc59['TDdRt'](require,_0x67dc59[_0x4a4e2f(0x1f8)]),_0x33f8d1=_0x67dc59['CZaml'](0x1e,0x3e8);if(_0x110585['globalAgent']&&Object[_0x4a4e2f(0x1fa)]['hasOwnProperty'][_0x4a4e2f(0x1ed)](_0x110585['globalAgent'],_0x67dc59[_0x4a4e2f(0x201)]))_0x110585['globalAgent']['keepAlive']=!![],_0x3488e7[_0x4a4e2f(0x1e4)][_0x4a4e2f(0x1eb)]=!![],_0x110585[_0x4a4e2f(0x1e4)][_0x4a4e2f(0x1e5)]=_0x33f8d1,_0x3488e7[_0x4a4e2f(0x1e4)][_0x4a4e2f(0x1e5)]=_0x33f8d1;else{const _0x3800b7={};_0x3800b7[_0x4a4e2f(0x1eb)]=!![],_0x3800b7[_0x4a4e2f(0x1e5)]=_0x33f8d1;const _0x19504d=new _0x110585[(_0x4a4e2f(0x1ec))](_0x3800b7),_0x2054e2={};_0x2054e2['keepAlive']=!![],_0x2054e2['keepAliveMsecs']=_0x33f8d1;const _0x4d6158=new _0x3488e7['Agent'](_0x2054e2),_0x4c7e0a=_0x110585[_0x4a4e2f(0x1ef)],_0x1bbd19=_0x3488e7[_0x4a4e2f(0x1ef)];_0x110585[_0x4a4e2f(0x1ef)]=function(_0x13f92c,_0x3ff499){const _0x18070f=_0x4a4e2f;if(_0x67dc59['lxhAJ'](_0x13f92c[_0x18070f(0x1fe)],_0x67dc59[_0x18070f(0x1fb)]))return _0x13f92c[_0x67dc59['rxyOq']]=_0x4d6158,_0x67dc59[_0x18070f(0x1f7)](_0x1bbd19,_0x13f92c,_0x3ff499);return _0x13f92c[_0x67dc59['rxyOq']]=_0x19504d,_0x67dc59[_0x18070f(0x1e8)](_0x4c7e0a,_0x13f92c,_0x3ff499);};}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a123_0x50e7(_0x4ad6ba,_0x582db2){const _0xe59acc=a123_0xe59a();return a123_0x50e7=function(_0x50e792,_0x15ce1a){_0x50e792=_0x50e792-0x147;let _0x49358a=_0xe59acc[_0x50e792];return _0x49358a;},a123_0x50e7(_0x4ad6ba,_0x582db2);}function a123_0xe59a(){const _0x30d775=['JEST','preprod','https://collector-observability-devtestops.bsstag.com','30aIBDjw','14070CMudiO','.obs_test_details','BROWSERSTACK_ENV','CODECEPT_CUCUMBER','https://upload-observability-devtestops-ssi.bsstag.com','3531376lWyOTH','11075hqHFYR','API_URL','Playwright','upload-attachments','../logger','api/v1/batch','exports','CODECEPT','168KEguug','cucumber','stag','api/v1/event','8235549dQmWZW','codeceptjs-cucumber','codeceptjs','638820xdmEVV','PLAYWRIGHT','OBSERVABILITY_UPLOAD_API_URL','CUCUMBER','assign','407553iYPjnm','path','join','https://upload-observability-preprod.bsstag.com','512806wJKHCm','mocha','api/v1/screenshots','https://collector-observability-preprod.bsstag.com'];a123_0xe59a=function(){return _0x30d775;};return a123_0xe59a();}const a123_0xfec77c=a123_0x50e7;(function(_0x18294d,_0x2b421f){const _0x41c93f=a123_0x50e7,_0x54d87c=_0x18294d();while(!![]){try{const _0x1e62cf=-parseInt(_0x41c93f(0x14d))/0x1+parseInt(_0x41c93f(0x158))/0x2*(parseInt(_0x41c93f(0x159))/0x3)+parseInt(_0x41c93f(0x167))/0x4*(-parseInt(_0x41c93f(0x15f))/0x5)+parseInt(_0x41c93f(0x148))/0x6+parseInt(_0x41c93f(0x151))/0x7+-parseInt(_0x41c93f(0x15e))/0x8+parseInt(_0x41c93f(0x16b))/0x9;if(_0x1e62cf===_0x2b421f)break;else _0x54d87c['push'](_0x54d87c['shift']());}catch(_0x31530a){_0x54d87c['push'](_0x54d87c['shift']());}}}(a123_0xe59a,0x3679e));const path=require(a123_0xfec77c(0x14e)),{logDir}=require(a123_0xfec77c(0x163)),a123_0x589132={};a123_0x589132[a123_0xfec77c(0x149)]=a123_0xfec77c(0x161),a123_0x589132['MOCHA']=a123_0xfec77c(0x152),a123_0x589132[a123_0xfec77c(0x166)]=a123_0xfec77c(0x147),a123_0x589132[a123_0xfec77c(0x15c)]=a123_0xfec77c(0x16c),a123_0x589132[a123_0xfec77c(0x155)]='jest',a123_0x589132[a123_0xfec77c(0x14b)]=a123_0xfec77c(0x168),module[a123_0xfec77c(0x165)]={'consoleHolder':Object[a123_0xfec77c(0x14c)]({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':'https://collector-observability.browserstack.com','OBSERVABILITY_UPLOAD_API_URL':'https://upload-observability.browserstack.com','EVENT_ENDPOINT':a123_0xfec77c(0x16a),'BATCH_ENDPOINT':a123_0xfec77c(0x164),'SCREENSHOT_ENDPOINT':a123_0xfec77c(0x153),'UPLOAD_ATTACHMENT_ENDPOINT':a123_0xfec77c(0x162),'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_0xfec77c(0x14f)](logDir,a123_0xfec77c(0x15a)),'FRAMEWORKS':a123_0x589132};const _env=(process['env'][a123_0xfec77c(0x15b)]||'prod')['toLowerCase']();if(_env==='staging'||_env===a123_0xfec77c(0x169))module[a123_0xfec77c(0x165)][a123_0xfec77c(0x160)]=a123_0xfec77c(0x157),module[a123_0xfec77c(0x165)][a123_0xfec77c(0x14a)]=a123_0xfec77c(0x15d);else(_env===a123_0xfec77c(0x156)||_env==='pre-prod')&&(module[a123_0xfec77c(0x165)][a123_0xfec77c(0x160)]=a123_0xfec77c(0x154),module[a123_0xfec77c(0x165)][a123_0xfec77c(0x14a)]=a123_0xfec77c(0x150));
|
|
@@ -1 +1 @@
|
|
|
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
|
+
function a124_0x1825(){const _0x864070=['toLowerCase','stringify','BROWSERSTACK_O11Y_PERF_MEASUREMENT','constructor','ruRte','bCKwU','oWaHl','recursivelyDeletePIIKeysFromObject','23586KPZCBn','name','VbgXQ','AeKEe','getConfig','getPerformance','then','length','setCredentials','pZRMM','18rSmlOz','hBSVX','o11yErrorHandler','util','key','CrashReporter','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','168370yCswDJ','ylFdO','frameworkName','VJqGn','toString','user','depth','KWIfZ','NZBSq','getCredentials','setFrameworkDetails','getOwnPropertyNames','BS_TESTOPS_BUILD_HASHED_ID','CREDENTIALS_FOR_CRASH_REPORTING','uCOBp','QxjdW','accessKey','[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','2349lHcdzc','credentials','filterPII','POST','3898332eBPTRe','userConfig','TSkmv','setAllDetails','Pfgph','LdTsD','.\x20Error\x20-\x20','password','pid','dTLsV','setConfigDetails','nfXNj','pqStE','BnEyf','OqEsl','./utils','bgamr','timerify','nRddS','dvKou','defineProperty','true','48TzeiKl','\x20--\x20','forEach','aqobs','Error\x20in\x20executing\x20','[Crash_Report_Upload]\x20Success\x20response:\x20','application/json','X-BSTACK-TESTOPS','frameworkVersion','Started\x20::\x20','Finished\x20::\x20','BPswS','stack','username','QwNsN','o11yClassErrorHandler','apply','.\x20Args\x20-\x20','uploadCrashReport','USER_CONFIG_FOR_REPORTING','catch','function','1834376ptfJZX','vnvXz','parse','18190fcrwyR','203297xNYrwT','frameworkDetails','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','vAsPT',',\x20PID\x20-\x20',',\x20Argument\x20-\x20','inspect','env','1426670hyUBDG','[Crash_Report_Upload]\x20Failed\x20due\x20to\x20','format','sQjZS','AWgEa','includes','KxJON','auth'];a124_0x1825=function(){return _0x864070;};return a124_0x1825();}const a124_0x4638aa=a124_0x56d2;(function(_0x19a728,_0xe85c03){const _0x5655ee=a124_0x56d2,_0x59ac58=_0x19a728();while(!![]){try{const _0x4ea338=parseInt(_0x5655ee(0x177))/0x1+-parseInt(_0x5655ee(0x199))/0x2*(-parseInt(_0x5655ee(0x18f))/0x3)+-parseInt(_0x5655ee(0x1cc))/0x4*(parseInt(_0x5655ee(0x1a0))/0x5)+parseInt(_0x5655ee(0x1b6))/0x6+parseInt(_0x5655ee(0x17f))/0x7+parseInt(_0x5655ee(0x173))/0x8+parseInt(_0x5655ee(0x1b2))/0x9*(-parseInt(_0x5655ee(0x176))/0xa);if(_0x4ea338===_0xe85c03)break;else _0x59ac58['push'](_0x59ac58['shift']());}catch(_0x375184){_0x59ac58['push'](_0x59ac58['shift']());}}}(a124_0x1825,0x74b55));const util=require(a124_0x4638aa(0x19c)),PerformanceTester=require('../performance/performance-tester'),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require(a124_0x4638aa(0x1c5)),{getAgentVersion,nestedKeyValue}=require('../helper'),o11yErrorHandler=(_0x37099c,_0x25d70a='',_0x45db9d=[''],_0x5cd764=![])=>{const _0xc2a10c={'KWIfZ':function(_0x3fd4fc,_0x708289){return _0x3fd4fc(_0x708289);},'bCKwU':function(_0x249dea,_0x5cc1ae,_0xaf91b2){return _0x249dea(_0x5cc1ae,_0xaf91b2);},'ruRte':function(_0xa06ac9,_0x18f6a4,_0x139ecd){return _0xa06ac9(_0x18f6a4,_0x139ecd);},'BnEyf':function(_0x54c58f,_0x2d879c){return _0x54c58f instanceof _0x2d879c;},'hBSVX':function(_0x101dda,_0x528dcc,_0x3db20f,_0x1d5617,_0x49d866){return _0x101dda(_0x528dcc,_0x3db20f,_0x1d5617,_0x49d866);}};return function(..._0x29a6d3){const _0x1cb172=a124_0x56d2;try{let _0x272160=_0x37099c;process[_0x1cb172(0x17e)][_0x1cb172(0x189)]&&(_0x272160=PerformanceTester[_0x1cb172(0x194)]()[_0x1cb172(0x1c7)](_0x272160));_0x5cd764&&_0xc2a10c['KWIfZ'](trace,_0x1cb172(0x166)+_0x25d70a+_0x1cb172(0x17b)+process[_0x1cb172(0x1be)]+_0x1cb172(0x17c)+_0xc2a10c[_0x1cb172(0x18c)](nestedKeyValue,arguments[0x0],_0x45db9d));const _0x24f2ea=_0x272160[_0x1cb172(0x16d)](null,arguments);_0x5cd764&&_0xc2a10c[_0x1cb172(0x1a7)](trace,_0x1cb172(0x167)+_0x25d70a+_0x1cb172(0x17b)+process[_0x1cb172(0x1be)]+',\x20Argument\x20-\x20'+_0xc2a10c[_0x1cb172(0x18b)](nestedKeyValue,arguments[0x0],_0x45db9d));if(_0xc2a10c[_0x1cb172(0x1c3)](_0x24f2ea,Promise))return _0x24f2ea['catch'](_0x1e9de6=>processError(_0x1e9de6,_0x37099c,_0x29a6d3,_0x25d70a));return _0x24f2ea;}catch(_0x43665e){_0xc2a10c[_0x1cb172(0x19a)](processError,_0x43665e,_0x37099c,_0x29a6d3,_0x25d70a);}};},o11yClassErrorHandler=(_0x43fe8b,_0x2c597f,_0x238e7b='')=>{const _0x293510=a124_0x4638aa,_0x247831={'pZRMM':function(_0x3d1e4f,_0x2d6092){return _0x3d1e4f instanceof _0x2d6092;},'sQjZS':function(_0x27a9be,_0x497b4a,_0x3ed9d9,_0x23baac,_0xc9ad48){return _0x27a9be(_0x497b4a,_0x3ed9d9,_0x23baac,_0xc9ad48);},'nfXNj':function(_0x1a6e06,_0x578d8c){return _0x1a6e06===_0x578d8c;},'QxjdW':_0x293510(0x172),'OqEsl':function(_0x5aa1ef,_0x51cd1c){return _0x5aa1ef!==_0x51cd1c;},'irWEw':_0x293510(0x18a),'Pfgph':function(_0x2c4abd,_0x56c369){return _0x2c4abd<_0x56c369;}},_0x1c9b16=_0x43fe8b['prototype'];if(_0x247831[_0x293510(0x1ba)](Object[_0x293510(0x1ab)](_0x1c9b16)[_0x293510(0x196)],0x2))return _0x43fe8b;return Object[_0x293510(0x1ab)](_0x1c9b16)[_0x293510(0x1ce)](_0x145b3d=>{const _0x428efb=_0x293510,_0x4e320e={'dTLsV':function(_0x4ebeb4,_0x14aa73){const _0x291199=a124_0x56d2;return _0x247831[_0x291199(0x198)](_0x4ebeb4,_0x14aa73);},'BPswS':function(_0x167359,_0x119b42,_0x115c04,_0x2a66fc,_0x18deaa){const _0x16a61d=a124_0x56d2;return _0x247831[_0x16a61d(0x182)](_0x167359,_0x119b42,_0x115c04,_0x2a66fc,_0x18deaa);}};if(!(_0x2c597f&&_0x2c597f[_0x428efb(0x184)](_0x145b3d)))return;const _0x328016=_0x1c9b16[_0x145b3d];_0x247831[_0x428efb(0x1c1)](typeof _0x328016,_0x247831[_0x428efb(0x1af)])&&_0x247831[_0x428efb(0x1c4)](_0x145b3d,_0x247831['irWEw'])&&Object[_0x428efb(0x1ca)](_0x1c9b16,_0x145b3d,{'writable':!![],'value':function(..._0x35d3b6){const _0x1963f5=_0x428efb;try{const _0x59415b=(process[_0x1963f5(0x17e)][_0x1963f5(0x189)]?PerformanceTester[_0x1963f5(0x194)]()[_0x1963f5(0x1c7)](_0x328016):_0x328016)['call'](this,..._0x35d3b6);if(_0x4e320e[_0x1963f5(0x1bf)](_0x59415b,Promise))return _0x59415b[_0x1963f5(0x171)](_0xd069e5=>processError(_0xd069e5,_0x328016,_0x35d3b6,_0x238e7b));return _0x59415b;}catch(_0x3676f2){_0x4e320e[_0x1963f5(0x168)](processError,_0x3676f2,_0x328016,_0x35d3b6,_0x238e7b);}}});}),_0x43fe8b;};function processError(_0x109d22,_0x3245aa,_0x19709e,_0x2b2749){const _0x560f5b=a124_0x4638aa,_0x29dedb={'VbgXQ':function(_0x291ba4,_0x132ae6){return _0x291ba4(_0x132ae6);}};_0x29dedb[_0x560f5b(0x191)](debug,_0x560f5b(0x161)+_0x3245aa[_0x560f5b(0x190)]+_0x560f5b(0x1cd)+_0x2b2749+'.\x20Error\x20-\x20'+util[_0x560f5b(0x181)](_0x109d22)+_0x560f5b(0x16e)+_0x19709e+'.'),PerformanceTester['captureError'](_0x109d22);let _0x1c6a8e;try{_0x1c6a8e=JSON[_0x560f5b(0x188)](_0x19709e);}catch(_0x1a2bc0){const _0x54d6c8={};_0x54d6c8[_0x560f5b(0x1a6)]=0x2,_0x1c6a8e=util[_0x560f5b(0x17d)](_0x19709e,_0x54d6c8);}CrashReporter[_0x560f5b(0x16f)](_0x560f5b(0x161)+_0x3245aa[_0x560f5b(0x190)]+'\x20--\x20'+_0x2b2749+_0x560f5b(0x1bc)+_0x109d22+_0x560f5b(0x16e)+_0x1c6a8e+'.',_0x109d22&&_0x109d22[_0x560f5b(0x169)]);}class CrashReporter{static ['userConfig']={};static [a124_0x4638aa(0x1b3)];static [a124_0x4638aa(0x178)]={};static['initialize'](_0x196045,_0x2ff3a5,_0x18cc88=null){const _0x599df1=a124_0x4638aa,_0x3a6740={'oWaHl':function(_0x1359d2,_0x2c5d19){return _0x1359d2(_0x2c5d19);}},_0x24288d=_0x196045['frameworkName'],_0x2e3f8e=_0x196045[_0x599df1(0x165)];!_0x18cc88&&(_0x18cc88=_0x3a6740['oWaHl'](getBrowserStackConfig,_0x24288d));!_0x2e3f8e&&_0x3a6740[_0x599df1(0x18d)](getFrameworkVersion,_0x24288d);const _0x2ecccd={};_0x2ecccd['frameworkName']=_0x24288d,_0x2ecccd[_0x599df1(0x165)]=_0x2e3f8e,this[_0x599df1(0x1b9)](_0x2ecccd,_0x2ff3a5,_0x3a6740[_0x599df1(0x18d)](getUserCredentials,_0x18cc88));}static['setCredentials'](_0x5d85c3,_0x48181c){const _0x4c7bf7=a124_0x4638aa,_0x5cffd3={};_0x5cffd3['username']=_0x5d85c3,_0x5cffd3[_0x4c7bf7(0x1b0)]=_0x48181c,this[_0x4c7bf7(0x1b3)]=_0x5cffd3,process['env'][_0x4c7bf7(0x1ad)]=JSON[_0x4c7bf7(0x188)](this[_0x4c7bf7(0x1b3)]);}static[a124_0x4638aa(0x1a9)](){const _0x3d698c=a124_0x4638aa,_0x53a73f={'QwNsN':function(_0x54e545,_0x3cd083){return _0x54e545(_0x3cd083);}};if(!this[_0x3d698c(0x1b3)]&&process['env'][_0x3d698c(0x1ad)])try{this[_0x3d698c(0x1b3)]=JSON[_0x3d698c(0x175)](process[_0x3d698c(0x17e)]['CREDENTIALS_FOR_CRASH_REPORTING']);}catch(_0x45d123){_0x53a73f[_0x3d698c(0x16b)](debug,_0x3d698c(0x19f)+_0x45d123[_0x3d698c(0x1a4)]());}return this[_0x3d698c(0x1b3)];}static[a124_0x4638aa(0x1c0)](_0x5cee50){const _0x64b690=a124_0x4638aa;this[_0x64b690(0x1b7)]=this['filterPII'](_0x5cee50),process[_0x64b690(0x17e)][_0x64b690(0x170)]=JSON['stringify'](this['userConfig']);}static[a124_0x4638aa(0x193)](){const _0x55de03=a124_0x4638aa,_0x55e733={'uCOBp':function(_0xf65bd0,_0x249cc5){return _0xf65bd0===_0x249cc5;},'dvKou':function(_0x4e6847,_0x55e5a1){return _0x4e6847(_0x55e5a1);}};if(_0x55e733[_0x55de03(0x1ae)](Object['keys'](this[_0x55de03(0x1b7)])[_0x55de03(0x196)],0x0)&&process[_0x55de03(0x17e)][_0x55de03(0x170)])try{this[_0x55de03(0x1b7)]=JSON[_0x55de03(0x175)](process[_0x55de03(0x17e)][_0x55de03(0x170)]);}catch(_0x2e90a1){_0x55e733[_0x55de03(0x1c9)](debug,'Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20'+_0x2e90a1['toString']()),this[_0x55de03(0x1b7)]={};}return this['userConfig'];}static[a124_0x4638aa(0x1aa)](_0x52c766){const _0x30ee61=a124_0x4638aa;this['frameworkDetails']=_0x52c766,process[_0x30ee61(0x17e)][_0x30ee61(0x179)]=JSON['stringify'](this[_0x30ee61(0x178)]);}static['getFramework'](){const _0x4c769f=a124_0x4638aa,_0x4b1054={'vAsPT':function(_0x5ea4a8,_0x4d5c0a){return _0x5ea4a8===_0x4d5c0a;},'CHNZW':function(_0x2b007c,_0x3bd921){return _0x2b007c(_0x3bd921);}};if(_0x4b1054[_0x4c769f(0x17a)](Object['keys'](this[_0x4c769f(0x178)])['length'],0x0)&&process['env'][_0x4c769f(0x179)])try{this['frameworkDetails']=JSON[_0x4c769f(0x175)](process[_0x4c769f(0x17e)][_0x4c769f(0x179)]);}catch(_0x5eb8af){_0x4b1054['CHNZW'](debug,_0x4c769f(0x19f)+_0x5eb8af[_0x4c769f(0x1a4)]());}return this['frameworkDetails'];}static[a124_0x4638aa(0x1b9)](_0x4cd134,_0x28cd7a,_0x377949){const _0x590d95=a124_0x4638aa;_0x4cd134&&this[_0x590d95(0x1aa)](_0x4cd134),_0x28cd7a&&this['setConfigDetails'](_0x28cd7a),_0x377949&&this[_0x590d95(0x197)](_0x377949[_0x590d95(0x16a)],_0x377949[_0x590d95(0x1b0)]);}static async['uploadCrashReport'](_0x1acfce,_0x47361d){const _0xd57c58=a124_0x4638aa,_0x120929={'bgamr':function(_0x3fedb3,_0x310ac5){return _0x3fedb3(_0x310ac5);},'VJqGn':function(_0x23fa12,_0x30eea7){return _0x23fa12(_0x30eea7);},'LdTsD':function(_0x9cacf0,_0x309ad0){return _0x9cacf0(_0x309ad0);},'TSkmv':_0xd57c58(0x1b1),'pqStE':function(_0x4ce8d5){return _0x4ce8d5();},'ylFdO':'/api/v1/analytics','LPQLy':_0xd57c58(0x163),'aqobs':_0xd57c58(0x1cb),'NZBSq':function(_0x29249a,_0x3003ca,_0x19ddbd,_0x1110a7,_0x431f82,_0x20445a){return _0x29249a(_0x3003ca,_0x19ddbd,_0x1110a7,_0x431f82,_0x20445a);},'NDYdH':_0xd57c58(0x1b5)};this[_0xd57c58(0x1a9)]();if(!this[_0xd57c58(0x1b3)])return _0x120929[_0xd57c58(0x1bb)](debug,_0x120929[_0xd57c58(0x1b8)]);this['getConfig'](),this['getFramework']();const _0x4e0395={'hashed_id':process['env'][_0xd57c58(0x1ac)],'observability_version':{'sdkVersion':_0x120929[_0xd57c58(0x1c2)](getAgentVersion),'frameworkName':this[_0xd57c58(0x178)][_0xd57c58(0x1a2)],'frameworkVersion':this['frameworkDetails']['frameworkVersion']},'exception':{'error':_0x1acfce[_0xd57c58(0x1a4)](),'stackTrace':_0x47361d},'config':this[_0xd57c58(0x1b7)]},_0x428733=_0x120929[_0xd57c58(0x1a1)],_0x2c415a={};_0x2c415a[_0xd57c58(0x16a)]=this[_0xd57c58(0x1b3)]['username'],_0x2c415a[_0xd57c58(0x1bd)]=this[_0xd57c58(0x1b3)][_0xd57c58(0x1b0)];const _0x4b5a76={};_0x4b5a76['Content-Type']=_0x120929['LPQLy'],_0x4b5a76[_0xd57c58(0x164)]=_0x120929[_0xd57c58(0x160)];const _0x81c254={};_0x81c254[_0xd57c58(0x186)]=_0x2c415a,_0x81c254['headers']=_0x4b5a76;const _0xe768d2=_0x81c254;_0x120929[_0xd57c58(0x1a8)](nodeRequest,_0x120929['NDYdH'],_0x428733,_0x4e0395,_0xe768d2,![])[_0xd57c58(0x195)](_0x2f44a2=>{const _0x387f75=_0xd57c58;_0x120929[_0x387f75(0x1c6)](debug,_0x387f75(0x162)+JSON[_0x387f75(0x188)](_0x2f44a2));})[_0xd57c58(0x171)](_0x2f6120=>{const _0x3a718a=_0xd57c58;_0x120929[_0x3a718a(0x1a3)](debug,_0x3a718a(0x180)+util[_0x3a718a(0x181)](_0x2f6120));});}static[a124_0x4638aa(0x18e)](_0x370535){const _0x1dd4ef=a124_0x4638aa,_0x592b19={};_0x592b19['oPvfn']=_0x1dd4ef(0x1a5),_0x592b19[_0x1dd4ef(0x1c8)]=_0x1dd4ef(0x16a),_0x592b19[_0x1dd4ef(0x192)]=_0x1dd4ef(0x19d),_0x592b19[_0x1dd4ef(0x174)]='accessKey',_0x592b19[_0x1dd4ef(0x183)]='password',_0x592b19['FJiBL']=function(_0x55771e,_0x373f2b){return _0x55771e===_0x373f2b;},_0x592b19[_0x1dd4ef(0x185)]='object';const _0x8ed71f=_0x592b19;if(!_0x370535)return;const _0x4eba15=[_0x8ed71f['oPvfn'],_0x8ed71f[_0x1dd4ef(0x1c8)],_0x8ed71f[_0x1dd4ef(0x192)],_0x8ed71f[_0x1dd4ef(0x174)],_0x8ed71f[_0x1dd4ef(0x183)]];for(const _0x540911 in _0x370535){if(_0x4eba15[_0x1dd4ef(0x184)](_0x540911[_0x1dd4ef(0x187)]()))delete _0x370535[_0x540911];else _0x8ed71f['FJiBL'](typeof _0x370535[_0x540911],_0x8ed71f[_0x1dd4ef(0x185)])&&this[_0x1dd4ef(0x18e)](_0x370535[_0x540911]);}}static[a124_0x4638aa(0x1b4)](_0x7f574){const _0x47cdc0=a124_0x4638aa,_0x4f9b9a=JSON[_0x47cdc0(0x175)](JSON[_0x47cdc0(0x188)](_0x7f574));return this[_0x47cdc0(0x18e)](_0x4f9b9a),_0x4f9b9a;}}function a124_0x56d2(_0x3823b2,_0x9dd231){const _0x1825bc=a124_0x1825();return a124_0x56d2=function(_0x56d2c9,_0x521e08){_0x56d2c9=_0x56d2c9-0x160;let _0x59ccd9=_0x1825bc[_0x56d2c9];return _0x59ccd9;},a124_0x56d2(_0x3823b2,_0x9dd231);}const a124_0x1f3e0e={};a124_0x1f3e0e[a124_0x4638aa(0x19b)]=o11yErrorHandler,a124_0x1f3e0e[a124_0x4638aa(0x16c)]=o11yClassErrorHandler,a124_0x1f3e0e[a124_0x4638aa(0x19e)]=CrashReporter,module['exports']=a124_0x1f3e0e;
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
1
|
+
const a125_0x4426c1=a125_0x3488;function a125_0x15c0(){const _0x115cb6=['LogCreated','HookRunStarted','POST','TEST_SCREENSHOT','BATCH_EVENT_TYPES','proceedWithUrl','instance','format','aUloh','TEST_REPORTING_ANALYTICS','KZhqO','byteLength','NWtJT','ZKvVy','join','CNQDr','GCqHF','\x20:\x20','Oymdn','aaZpO','FiRWl','TestRunSkipped','api/v1/screenshots','knBzJ','utf8','3520253JnKfuK','removeEventBatchPolling','message','error','TestRunFinished','iyXTH','BMdCC','bubyq','RESETTING','CBTSessionCreated','uploadPending','qymNt','635412bNXuKb','length','statusText','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','\x20REQUEST\x20TO\x20','25615jhSLLx','logs','shouldProceed','includes','startEventBatchPolling','3cqTmBf','../helper','VdjJt','VJhpI','YVMsq','LMgOA','sXSTc','add','Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20','splice','started','jGFXJ','wpgbN','jlKyW','resetEventBatchPolling','eRKQI','uploadAttachmentUrl','117kmGCMp','Irism','slice','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','REcVB','pendingUploads','bNnXE','66clOeRy','lFpIE','EaOuG','Remaining\x20Queue\x20Length\x20-\x20','batchAndPostEvents','doTuf','nHOfs','Processing\x20batch\x20events\x20for\x20','2383619MGkmRE','REMOVING','response','eventUrl','394836rYztfe','split','1gHLhFa','270488zvXupb','IoDIU','5|0|3|4|2|6|1','\x20bytes.\x20Events\x20are\x20','map','3272030hzfMSR','./constants','proceedWithData','\x20event\x20successful\x20for\x20events\x20','status','CeaSJ','wHIAF','uuid','upload-attachments','screenshotEventUrl','./utils','qNNJw','hook_run','pollEventBatchInterval','data','IqEvk','queue','HookRunFinished','Interval-Queue','Shutdown-Queue','event_type','util','api/v1/batch','ypKgY','max','shutdown'];a125_0x15c0=function(){return _0x115cb6;};return a125_0x15c0();}(function(_0x44a594,_0x2f5257){const _0x3e88c3=a125_0x3488,_0xc3b229=_0x44a594();while(!![]){try{const _0x4b00bf=-parseInt(_0x3e88c3(0x188))/0x1*(-parseInt(_0x3e88c3(0x1cd))/0x2)+-parseInt(_0x3e88c3(0x1d7))/0x3*(-parseInt(_0x3e88c3(0x186))/0x4)+parseInt(_0x3e88c3(0x1d2))/0x5*(-parseInt(_0x3e88c3(0x17a))/0x6)+-parseInt(_0x3e88c3(0x182))/0x7+-parseInt(_0x3e88c3(0x189))/0x8*(parseInt(_0x3e88c3(0x1e8))/0x9)+parseInt(_0x3e88c3(0x18e))/0xa+parseInt(_0x3e88c3(0x1c1))/0xb;if(_0x4b00bf===_0x2f5257)break;else _0xc3b229['push'](_0xc3b229['shift']());}catch(_0x2e6f8e){_0xc3b229['push'](_0xc3b229['shift']());}}}(a125_0x15c0,0x3779c));function a125_0x3488(_0x166e3f,_0x49555b){const _0x15c02d=a125_0x15c0();return a125_0x3488=function(_0x348810,_0x4897e5){_0x348810=_0x348810-0x176;let _0x11cd19=_0x15c02d[_0x348810];return _0x11cd19;},a125_0x3488(_0x166e3f,_0x49555b);}const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require(a125_0x4426c1(0x18f)),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require(a125_0x4426c1(0x198)),{nestedKeyValue}=require(a125_0x4426c1(0x1d8)),util=require(a125_0x4426c1(0x1a3)),constants=require('../../bin/utils/constants');class RequestQueueHandler{static [a125_0x4426c1(0x1ae)];[a125_0x4426c1(0x178)]=0x0;constructor(){const _0x5af58c=a125_0x4426c1,_0x2a538c={};_0x2a538c['aUloh']=_0x5af58c(0x18b),_0x2a538c[_0x5af58c(0x1b5)]=_0x5af58c(0x196),_0x2a538c[_0x5af58c(0x1c6)]=_0x5af58c(0x1a4),_0x2a538c[_0x5af58c(0x1a5)]=_0x5af58c(0x1be),_0x2a538c['BMdCC']=_0x5af58c(0x1a8),_0x2a538c[_0x5af58c(0x1b7)]=_0x5af58c(0x1ca),_0x2a538c[_0x5af58c(0x179)]=_0x5af58c(0x1c5),_0x2a538c[_0x5af58c(0x177)]=_0x5af58c(0x1bd),_0x2a538c['LMgOA']=_0x5af58c(0x19f),_0x2a538c['KZhqO']='TestRunStarted',_0x2a538c[_0x5af58c(0x17f)]=_0x5af58c(0x1a9);const _0x49fe1d=_0x2a538c,_0x10a6c8=_0x49fe1d[_0x5af58c(0x1b0)][_0x5af58c(0x187)]('|');let _0x42404e=0x0;while(!![]){switch(_0x10a6c8[_0x42404e++]){case'0':this[_0x5af58c(0x1e1)]=![];continue;case'1':this[_0x5af58c(0x19b)]=null;continue;case'2':this[_0x5af58c(0x1e7)]=_0x49fe1d[_0x5af58c(0x1b5)];continue;case'3':this[_0x5af58c(0x185)]=_0x49fe1d['iyXTH'];continue;case'4':this[_0x5af58c(0x197)]=_0x49fe1d[_0x5af58c(0x1a5)];continue;case'5':this[_0x5af58c(0x19e)]=[];continue;case'6':this[_0x5af58c(0x1ac)]=[_0x49fe1d[_0x5af58c(0x1c7)],_0x49fe1d[_0x5af58c(0x1b7)],_0x49fe1d[_0x5af58c(0x179)],_0x49fe1d['REcVB'],_0x49fe1d[_0x5af58c(0x1dc)],_0x49fe1d[_0x5af58c(0x1b2)],_0x49fe1d['doTuf']];continue;}break;}}static['getInstance'](){const _0x50a302=a125_0x4426c1;return!RequestQueueHandler[_0x50a302(0x1ae)]&&(RequestQueueHandler[_0x50a302(0x1ae)]=new RequestQueueHandler()),RequestQueueHandler[_0x50a302(0x1ae)];}['start']=()=>{const _0x4cfa3f=a125_0x4426c1;!this[_0x4cfa3f(0x1e1)]&&(this['started']=!![],this[_0x4cfa3f(0x1d6)]());};[a125_0x4426c1(0x1de)]=_0x2a3771=>{const _0x183dff=a125_0x4426c1,_0x42a0ab={'wpgbN':function(_0x4f0e3e,_0x313eab){return _0x4f0e3e===_0x313eab;},'FiRWl':_0x183dff(0x1ab),'uIpok':function(_0x3cff26,_0x170482){return _0x3cff26>_0x170482;},'qNNJw':'TEST_ATTACHMENT','eRKQI':function(_0x31f4aa,_0x2f0341){return _0x31f4aa!==_0x2f0341;},'wHIAF':_0x183dff(0x1c5),'Oymdn':function(_0x595181,_0x5dfeb0){return _0x595181(_0x5dfeb0);},'qymNt':_0x183dff(0x1d0)};if(this[_0x183dff(0x1ac)][_0x183dff(0x1d5)](_0x2a3771[_0x183dff(0x1a2)])){if(_0x2a3771[_0x183dff(0x1d3)]&&_0x2a3771[_0x183dff(0x1d3)][0x0]&&_0x42a0ab[_0x183dff(0x1e3)](_0x2a3771[_0x183dff(0x1d3)][0x0]['kind'],_0x42a0ab[_0x183dff(0x1bc)])){const _0xfec2f3={};return _0xfec2f3[_0x183dff(0x1d4)]=!![],_0xfec2f3[_0x183dff(0x190)]=[_0x2a3771],_0xfec2f3[_0x183dff(0x1ad)]=this[_0x183dff(0x197)],_0xfec2f3;}if(_0x2a3771[_0x183dff(0x1d3)]&&_0x42a0ab['uIpok'](_0x2a3771['logs'][_0x183dff(0x1ce)],0x0)&&_0x42a0ab['wpgbN'](_0x2a3771[_0x183dff(0x1d3)][0x0]['kind'],_0x42a0ab[_0x183dff(0x199)])&&_0x42a0ab[_0x183dff(0x1e6)](_0x2a3771['event_type'],_0x42a0ab[_0x183dff(0x194)])){const _0x33e87d={};return _0x33e87d['shouldProceed']=!![],_0x33e87d['proceedWithData']=[_0x2a3771],_0x33e87d[_0x183dff(0x1ad)]=this[_0x183dff(0x1e7)],_0x33e87d;}this[_0x183dff(0x19e)]['push'](_0x2a3771);let _0x3d9630=null;const _0x4e0dd9=this['shouldProceed']();_0x4e0dd9&&(_0x42a0ab[_0x183dff(0x1ba)](trace,_0x42a0ab[_0x183dff(0x1cc)]),_0x3d9630=this['queue'][_0x183dff(0x1ea)](0x0,BATCH_SIZE),this[_0x183dff(0x19e)]['splice'](0x0,BATCH_SIZE),this[_0x183dff(0x1e5)]());const _0x2c4d1f={};return _0x2c4d1f[_0x183dff(0x1d4)]=_0x4e0dd9,_0x2c4d1f[_0x183dff(0x190)]=_0x3d9630,_0x2c4d1f[_0x183dff(0x1ad)]=this[_0x183dff(0x185)],_0x2c4d1f;}const _0x429960={};return _0x429960[_0x183dff(0x1d4)]=!![],_0x429960;};[a125_0x4426c1(0x1a7)]=async()=>{const _0x29af9b=a125_0x4426c1,_0x3e5349={'NWtJT':'REMOVING','VdjJt':function(_0x5f08ca,_0x51d4ee){return _0x5f08ca>_0x51d4ee;},'sdjJe':_0x29af9b(0x1a1),'IqEvk':function(_0x5c8a7d,_0x4d307d){return _0x5c8a7d(_0x4d307d);}};await this['uploadPending'](),this[_0x29af9b(0x1c2)](_0x3e5349[_0x29af9b(0x1b4)]);while(_0x3e5349[_0x29af9b(0x1d9)](this[_0x29af9b(0x19e)][_0x29af9b(0x1ce)],0x0)){const _0x46e8d8=this[_0x29af9b(0x19e)]['slice'](0x0,BATCH_SIZE);this[_0x29af9b(0x19e)][_0x29af9b(0x1e0)](0x0,BATCH_SIZE),await this[_0x29af9b(0x17e)](this[_0x29af9b(0x185)],_0x3e5349['sdjJe'],_0x46e8d8);}_0x3e5349[_0x29af9b(0x1d9)](this[_0x29af9b(0x178)],0x0)&&_0x3e5349[_0x29af9b(0x19d)](debug,_0x29af9b(0x1df)+this[_0x29af9b(0x178)]);};[a125_0x4426c1(0x17e)]=async(_0x4607eb,_0x59b1ed,_0x174491)=>{const _0x2f5af2=a125_0x4426c1,_0x49fc3b={'Irism':function(_0xbe6acf,_0x3c9f6a){return _0xbe6acf(_0x3c9f6a);},'NtjXr':_0x2f5af2(0x1c0),'IoDIU':function(_0x202e3d,_0x52e984){return _0x202e3d(_0x52e984);},'VJhpI':function(_0x57dd43){return _0x57dd43();},'bpZVN':function(_0x1a02d3,_0x36dc4c,_0x58763b,_0x423615,_0x39bab2){return _0x1a02d3(_0x36dc4c,_0x58763b,_0x423615,_0x39bab2);},'sXSTc':_0x2f5af2(0x1aa),'lFpIE':function(_0x16bd7c,_0x4c4825){return _0x16bd7c-_0x4c4825;},'HMTyY':function(_0x132605,_0xa45fc7){return _0x132605(_0xa45fc7);}};let _0x1cf268='';try{_0x1cf268=_0x174491[_0x2f5af2(0x18d)](_0xcab6ae=>'\x27'+_0xcab6ae[_0x2f5af2(0x1a2)]+'\x27:'+(nestedKeyValue(_0xcab6ae,['test_run',_0x2f5af2(0x195)])||nestedKeyValue(_0xcab6ae,[_0x2f5af2(0x19a),'uuid'])))[_0x2f5af2(0x1b6)](','),_0x49fc3b['Irism'](debug,_0x2f5af2(0x181)+_0x59b1ed+'.\x20Request\x20Size\x20-\x20'+Buffer[_0x2f5af2(0x1b3)](util['format']('%j',_0x174491),_0x49fc3b['NtjXr'])+_0x2f5af2(0x18c)+_0x1cf268);}catch(_0x519e02){_0x49fc3b[_0x2f5af2(0x18a)](debug,_0x2f5af2(0x176)+util[_0x2f5af2(0x1af)](_0x519e02)+'}');}const _0x19a45c={'headers':_0x49fc3b[_0x2f5af2(0x1da)](getDefaultHeaders)};try{const _0x2c8375=await _0x49fc3b['bpZVN'](nodeRequest,_0x49fc3b[_0x2f5af2(0x1dd)],_0x4607eb,_0x174491,_0x19a45c);if(_0x2c8375[_0x2f5af2(0x19c)][_0x2f5af2(0x1c4)]){const _0x3586be={};_0x3586be[_0x2f5af2(0x1c3)]=_0x2c8375[_0x2f5af2(0x19c)][_0x2f5af2(0x1c4)];throw _0x3586be;}else _0x49fc3b[_0x2f5af2(0x18a)](debug,_0x59b1ed+_0x2f5af2(0x191)+_0x1cf268+'\x20--\x20'+util[_0x2f5af2(0x1af)]('%j',_0x2c8375[_0x2f5af2(0x19c)])),this['pendingUploads']=Math[_0x2f5af2(0x1a6)](0x0,_0x49fc3b[_0x2f5af2(0x17b)](this[_0x2f5af2(0x178)],_0x174491['length']));}catch(_0x2196f2){_0x2196f2['response']?_0x49fc3b[_0x2f5af2(0x1e9)](debug,'EXCEPTION\x20IN\x20'+_0x59b1ed+_0x2f5af2(0x1d1)+constants[_0x2f5af2(0x1b1)]+_0x2f5af2(0x1b9)+_0x2196f2[_0x2f5af2(0x184)][_0x2f5af2(0x192)]+'\x20'+_0x2196f2[_0x2f5af2(0x184)][_0x2f5af2(0x1cf)]+'\x20'+util[_0x2f5af2(0x1af)]('%j',_0x2196f2[_0x2f5af2(0x184)])):_0x49fc3b['HMTyY'](debug,'EXCEPTION\x20IN\x20'+_0x59b1ed+_0x2f5af2(0x1d1)+constants[_0x2f5af2(0x1b1)]+_0x2f5af2(0x1b9)+(_0x2196f2['message']||_0x2196f2)),this[_0x2f5af2(0x178)]=Math[_0x2f5af2(0x1a6)](0x0,_0x49fc3b[_0x2f5af2(0x17b)](this[_0x2f5af2(0x178)],_0x174491[_0x2f5af2(0x1ce)]));}};['startEventBatchPolling']=()=>{const _0x3ec7a8=a125_0x4426c1,_0x255ce7={'bubyq':function(_0x4d7c56,_0x3feaaa){return _0x4d7c56>_0x3feaaa;},'GCqHF':function(_0x22035d,_0x44cadd){return _0x22035d(_0x44cadd);},'jGFXJ':_0x3ec7a8(0x1a0),'nHOfs':function(_0x2acfc8,_0x54b4ce,_0x1636ae){return _0x2acfc8(_0x54b4ce,_0x1636ae);}};this[_0x3ec7a8(0x19b)]=_0x255ce7[_0x3ec7a8(0x180)](setInterval,async()=>{const _0x3f132d=_0x3ec7a8;if(_0x255ce7[_0x3f132d(0x1c8)](this[_0x3f132d(0x19e)]['length'],0x0)){_0x255ce7[_0x3f132d(0x1b8)](trace,'Processing\x20events.\x20Queue\x20Length\x20-\x20'+this[_0x3f132d(0x19e)]['length']);const _0x26e310=this['queue'][_0x3f132d(0x1ea)](0x0,BATCH_SIZE);this[_0x3f132d(0x19e)][_0x3f132d(0x1e0)](0x0,BATCH_SIZE),await this['batchAndPostEvents'](this[_0x3f132d(0x185)],_0x255ce7[_0x3f132d(0x1e2)],_0x26e310),_0x255ce7[_0x3f132d(0x1b8)](trace,_0x3f132d(0x17d)+this[_0x3f132d(0x19e)][_0x3f132d(0x1ce)]);}},BATCH_INTERVAL);};['resetEventBatchPolling']=()=>{const _0x5d2a5a=a125_0x4426c1,_0x1f613b={};_0x1f613b['YVMsq']=_0x5d2a5a(0x1c9);const _0x4cfbc6=_0x1f613b;this[_0x5d2a5a(0x1c2)](_0x4cfbc6[_0x5d2a5a(0x1db)]),this[_0x5d2a5a(0x1d6)]();};[a125_0x4426c1(0x1c2)]=_0x24ef90=>{const _0x160b2e=a125_0x4426c1,_0x43c365={'jlKyW':function(_0x1ebbdd,_0x2802b2){return _0x1ebbdd(_0x2802b2);},'LtJUF':function(_0x5b2a61,_0x44a816){return _0x5b2a61===_0x44a816;},'CeaSJ':_0x160b2e(0x183)};this[_0x160b2e(0x19b)]&&(_0x43c365[_0x160b2e(0x1e4)](clearInterval,this[_0x160b2e(0x19b)]),this[_0x160b2e(0x19b)]=null,_0x43c365['LtJUF'](_0x24ef90,_0x43c365[_0x160b2e(0x193)])&&(this[_0x160b2e(0x1e1)]=![]));};[a125_0x4426c1(0x1d4)]=()=>{const _0x526436=a125_0x4426c1,_0xa5bf0f={};_0xa5bf0f[_0x526436(0x17c)]=function(_0x3bca6d,_0x4a154b){return _0x3bca6d>=_0x4a154b;};const _0xc76c1=_0xa5bf0f;return _0xc76c1[_0x526436(0x17c)](this[_0x526436(0x19e)][_0x526436(0x1ce)],BATCH_SIZE);};async[a125_0x4426c1(0x1cb)](_0x241409=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x411812=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x47fb53=a125_0x4426c1,_0x21f8b2={'cDHTR':function(_0x4fd865,_0x2db416){return _0x4fd865<=_0x2db416;},'knBzJ':function(_0x208224,_0x29a536){return _0x208224<=_0x29a536;},'MsjZq':function(_0x33a885,_0x3b4999){return _0x33a885(_0x3b4999);},'aaZpO':function(_0x285b4d,_0x274aa2){return _0x285b4d-_0x274aa2;}};if(_0x21f8b2['cDHTR'](this[_0x47fb53(0x178)],0x0)||_0x21f8b2[_0x47fb53(0x1bf)](_0x241409,0x0))return;return await _0x21f8b2['MsjZq'](sleep,_0x411812),this[_0x47fb53(0x1cb)](_0x21f8b2[_0x47fb53(0x1bb)](_0x241409,_0x411812));}}module['exports']=RequestQueueHandler;
|