@unotest/protocol 0.31.0 → 0.32.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.32.0] - 2026-09-05
4
+
5
+ ### Minor Changes
6
+
7
+ - 8aa0f30: Protocol contract for reading a box's run results with a personal read token: `UNOTEST_BOX_READ_TOKEN` (distinct from the project's `UNOTEST_BOX_TOKEN`, which stays a write credential for bundles and environment values), the `X-Unotest-Environment: <project>/<environment>` header every bearer request names its own environment with, the `/_guard/api/envs` listing and its `BoxReadEnvironment` entry, and typed refusals (`unauthorized`, `forbidden`, `unknown-environment`, `not-found`, `rate-limited`, `run-in-progress`, `unavailable`, `malformed`) with parsers that reject anything that is not a box answering. Throttling gets a code of its own rather than an `unauthorized` carrying `Retry-After`: a rejected token means mint a new one, a throttled one means wait and resend the same one. The viewer's `ViewerEnvOption` is now that same protocol type rather than a second copy of it. An environment whose viewer is still starting — the common state right after a bundle push — answers `unavailable` rather than looking like an unreachable box, so the advice is to wait rather than to check the address.
8
+
3
9
  ## [0.31.0] - 2026-09-04
4
10
 
5
11
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -1208,7 +1208,11 @@ declare const BUNDLE_MANIFEST_FILE = "bundle.json";
1208
1208
  declare const BUNDLE_UPLOAD_PATH = "/api/box/bundles";
1209
1209
  /** Box origin (`https://box.example.com`) and the upload token, for
1210
1210
  * people and CI jobs that would rather not repeat them on every command
1211
- * line. Flags win over both. */
1211
+ * line. Flags win over both.
1212
+ *
1213
+ * This token is the PROJECT's, and it writes: bundles and environment
1214
+ * values. Reading results back is a named person's act with its own
1215
+ * credential — `BOX_READ_TOKEN_ENV` in `box-read.ts`. */
1212
1216
  declare const BOX_URL_ENV = "UNOTEST_BOX_URL";
1213
1217
  declare const BOX_TOKEN_ENV = "UNOTEST_BOX_TOKEN";
1214
1218
  /** Set by a box on every run it starts: which bundle the sources came
@@ -1558,6 +1562,109 @@ interface BoxEnvValuesView {
1558
1562
  secrets: string[];
1559
1563
  }
1560
1564
 
1565
+ /** The personal read token, for people and agents that would rather not
1566
+ * repeat it on every command line. Deliberately NOT `UNOTEST_BOX_TOKEN`
1567
+ * (see {@link BOX_TOKEN_ENV}): one is the project's push credential, the
1568
+ * other is a named human's read credential, and a box tells them apart.
1569
+ * Sent as `Authorization: Bearer <token>`. */
1570
+ declare const BOX_READ_TOKEN_ENV = "UNOTEST_BOX_READ_TOKEN";
1571
+ /** Read tokens carry a fixed prefix so a leaked one is greppable — in a
1572
+ * repository, a CI log, a paste. Both halves rely on it: the guard mints
1573
+ * it, the client refuses to send a value that lacks it rather than
1574
+ * spending a round-trip on a 401. */
1575
+ declare const BOX_READ_TOKEN_PREFIX = "ubr_";
1576
+ /** Which environment the request is about, as `<project>/<environment>`
1577
+ * — the same string the viewer's environment switcher sends back (see
1578
+ * {@link BoxReadEnvironment.name}).
1579
+ *
1580
+ * A bearer request has no session, and a session is where the guard
1581
+ * normally keeps "the environment this browser is looking at". So every
1582
+ * request names its own; there is no server-side selection to drift out
1583
+ * of step with what the caller believes. ONE header rather than a
1584
+ * project/environment pair: the pair is never meaningful apart, and two
1585
+ * headers make "project set, environment missing" a state to answer for.
1586
+ *
1587
+ * Lower-case because Node hands incoming headers over lower-cased and
1588
+ * `fetch` matches names case-insensitively on the way out — one spelling
1589
+ * works on both sides. Prose spells it `X-Unotest-Environment`. */
1590
+ declare const BOX_READ_ENVIRONMENT_HEADER = "x-unotest-environment";
1591
+ /** Where the environments a caller may read are listed, on the guard
1592
+ * itself rather than behind it — the answer is what the
1593
+ * {@link BOX_READ_ENVIRONMENT_HEADER} of every other request has to
1594
+ * say. Same route, same payload as the viewer's switcher reads. */
1595
+ declare const BOX_READ_ENVIRONMENTS_PATH = "/_guard/api/envs";
1596
+ /** One environment a caller may be routed to.
1597
+ *
1598
+ * Display fields are for grouping and labelling only: `name` is the
1599
+ * single thing sent back, never rebuilt out of `project` +
1600
+ * `environment` — a proxy without projects has no `project` at all. */
1601
+ interface BoxReadEnvironment {
1602
+ /** What {@link BOX_READ_ENVIRONMENT_HEADER} accepts, e.g. `acme/test`. */
1603
+ readonly name: string;
1604
+ /** Grouping axis. Absent when the proxy has no such notion. */
1605
+ readonly project?: string;
1606
+ readonly environment: string;
1607
+ /** What that environment serves right now (a bundle label). */
1608
+ readonly note?: string;
1609
+ }
1610
+ /** Why a read was refused. A code rather than a message, because the
1611
+ * status alone does not separate the two 404s a caller must act on
1612
+ * differently: an environment this box does not serve (fix the header,
1613
+ * or the token's box) and a run that environment has never heard of
1614
+ * (fix the run id). */
1615
+ type BoxReadErrorCode =
1616
+ /** Missing, malformed, unknown or revoked token; or its owner lost
1617
+ * their seat. */
1618
+ "unauthorized"
1619
+ /** A valid token on something read tokens never reach: a write, the
1620
+ * terminal, the guard's admin pages. */
1621
+ | "forbidden"
1622
+ /** No {@link BOX_READ_ENVIRONMENT_HEADER}, or one naming an
1623
+ * environment this box does not serve. */
1624
+ | "unknown-environment"
1625
+ /** The environment is real; what was asked for inside it is not. */
1626
+ | "not-found"
1627
+ /** Too many attempts too fast — the box is throttling, and the answer
1628
+ * carries a `Retry-After` header saying for how long.
1629
+ *
1630
+ * Its own code rather than an `unauthorized` with a header, because
1631
+ * the two ask for opposite things: a rejected token means mint a new
1632
+ * one, a throttled one means wait and send the SAME one again. A
1633
+ * caller that cannot tell them apart burns its token on every burst. */
1634
+ | "rate-limited"
1635
+ /** The run exists but is still going, and what was asked for only
1636
+ * makes sense once it has stopped — the export, whose journal would
1637
+ * otherwise be copied mid-write. Live runs are read through the
1638
+ * runtime route instead. Answered by the viewer behind the box, not by
1639
+ * the guard: the code union describes what a READER can meet, not who
1640
+ * emitted it. */
1641
+ | "run-in-progress"
1642
+ /** The box is there and the request was fine, but the environment
1643
+ * cannot answer yet: its viewer is still coming up, or the bundle it
1644
+ * was given failed to install. Common right after `bundle push --run`,
1645
+ * and the right response is to wait — which is why it is not folded
1646
+ * into "could not reach the box", whose advice is to check the URL. */
1647
+ | "unavailable"
1648
+ /** Not a readable request. */
1649
+ | "malformed";
1650
+ /** The body of a refusal. Named `…Body` because the CLIENT's exception
1651
+ * class is `BoxReadError` — this is the JSON it was built from. */
1652
+ interface BoxReadErrorBody {
1653
+ error: {
1654
+ code: BoxReadErrorCode;
1655
+ message: string;
1656
+ };
1657
+ }
1658
+ /** Parse a refusal. Null when the body is not one of ours — an HTML
1659
+ * error page from a proxy in front of the box, a captive portal, an
1660
+ * empty 502 — which the caller reports as "that URL is not a box"
1661
+ * instead of inventing a code for it. */
1662
+ declare function parseBoxReadError(value: unknown): BoxReadErrorBody | null;
1663
+ /** Parse the environment list. Null on anything that is not an array of
1664
+ * entries — same contract as {@link parseBoxReadError}: a shape we do
1665
+ * not recognise is not a box answering. */
1666
+ declare function parseBoxReadEnvironments(value: unknown): BoxReadEnvironment[] | null;
1667
+
1561
1668
  declare const WORKSPACE_SCHEMA_VERSION = 1;
1562
1669
  /** Written by the host beside the artifacts it manages:
1563
1670
  * `<artifactsRoot>/unotest/.workspace.json`. In the artifact tree and
@@ -2787,4 +2894,4 @@ declare const JUDGE_ENV: {
2787
2894
  readonly skipPreflight: "UNOTEST_JUDGE_SKIP_PREFLIGHT";
2788
2895
  };
2789
2896
 
2790
- export { ARTIFACTS_ROOT_ENV, type AddVariablePlan, type AddVariablePlanInput, type AppPathPickerSpec, type AppServerEvent, type AuthoringRunRequest, BLOBS_DIR, BOX_ENV_VALUES_SEGMENT, BOX_REVEAL_SEGMENT, BOX_SECRET_NAMES_ENV, BOX_TOKEN_ENV, BOX_URL_ENV, BOX_VALUES_PATH, BOX_VARIABLE_NAMES_ENV, BROWSER_CHANNEL_ENV, BROWSER_ENV, BUNDLED_BROWSER_CHANNEL, BUNDLE_ID_ENV, BUNDLE_MANIFEST_FILE, BUNDLE_SCHEMA_VERSION, BUNDLE_UPLOAD_PATH, type BoxEnvValuesReplaceRequest, type BoxEnvValuesView, type BoxSecretRevealResponse, type BoxSecretsRevealResponse, type BoxValueChanged, type BoxValueKind, type BoxValueSetRequest, type BoxValuesError, type BoxValuesErrorCode, type BoxValuesReplaceRequest, type BoxValuesReplaced, type BoxValuesResponse, type BreakpointEntry, type BreakpointsFile, type BundleGitInfo, type BundleManifest, type BundleUploadError, type BundleUploadErrorCode, type BundleUploadOk, type BundleUploadResponse, type BundleUploadStatus, type BundleVariableGap, CI_RUN_PATH, COLLECTIONS_SUBDIR, COLLECTION_NAME_FORBIDDEN_RE, COMMANDS_FILE, type CheckSeverity, type CiProviderId, type CiQueuedRun, type CiRunAccepted, type CiRunError, type CiRunErrorCode, type CiRunRequest, type CiRunResponse, type CollectionMeta, type CollectionRunArtifact, type CollectionRunFinishedEvent, type CollectionRunRequest, type CollectionRunStartedEvent, type CollectionRunTab, type CollectionScenarioFinishedEvent, type CollectionScenarioStartedEvent, type CollectionScheduleEntry, type CollectionTab, DAY_INDEX_FILE, DAY_SHORT, type DbgCommand, type DbgCommandAbort, type DbgCommandClearBp, type DbgCommandContinue, type DbgCommandKind, type DbgCommandPause, type DbgCommandPickerStart, type DbgCommandPickerStop, type DbgCommandProbe, type DbgCommandRecord, type DbgCommandSetBp, type DbgCommandSnapshot, type DbgCommandStep, type DbgCommandWheel, type DebugCapabilities, type DoctorCheck, type DoctorContext, type DslDiagnostic, type DslValidateContext, type DslVocabArg, type DslVocabCategory, type DslVocabEntry, E2E_SUBDIR, ENV_FILE, EXPECT_FAIL_ANNOTATION, type EnqueueRunInput, type EnvChangedMessage, type EnvFile, type EnvUpdate, type EnvVar, type ErrorMessage, FREQ_FIELDS, type FailureBundleWrittenEvent, type FsBreakpointsChangedMessage, type FsCollectionRunStepMessage, type FsCollectionsChangedMessage, type FsHelpersChangedMessage, type FsRunFinishedMessage, type FsRunStartedMessage, type FsRunStepMessage, type FsScenariosChangedMessage, HEARTBEAT_FILE, HELPERS_SUBDIR, type HelperMeta, type HelperTab, type HostRequirement, type IDslLanguageService, type ILaunchedProcess, type IProcessLauncher, type IRunQueue, type IRunnerAdapter, InvalidBlobHashError, JUDGE_ENV, JUDGE_ROUTES, type JudgeErrorResponse, type JudgeHealthResponse, type JudgeRequest, type JudgeVerdict, type JudgeVerdictEvent, LOCK_FILE, LOG_FILE, type LaunchSpec, type LocatorPickedEvent, type LockFile, type LogEvent, type LogLineMessage, type LoopIterationEvent, type Matcher, type NoteEvent, type OverviewTab, PICKER_SNAPSHOT_FILE, type ParsedTicketName, type PausedEvent, type PickerMode, type ProbeMatch, type ProbePinned, type ProbeResult, type ProbeResultEvent, QUEUE_DISABLED_ENV, QUEUE_GLOBAL_DIR_ENV, QUEUE_GLOBAL_SLOTS_ENV, QUEUE_LEASE_ENV, QUEUE_MUTEX_FILE, QUEUE_PRIORITIES, QUEUE_RUNNING_DIR, QUEUE_SCHEMA_VERSION, QUEUE_SLOTS_DIR, QUEUE_SUBDIR, QUEUE_TICKETS_DIR, type QueueChangedMessage, type QueueEntry, type QueuePoolState, type QueuePriority, type QueueProducer, type QueueProducerKind, type QueueSnapshot, type QueueTicket, type QueueTicketCi, type QueueTicketKind, type QueueTicketSource, RUNNER_CONFIG_KEYS, RUNNER_SETTING_PREFIX, RUNS_SUBDIR, RUNTIME_FILE, RUN_INDEX_SCHEMA_VERSION, RUN_MANIFEST_FILE, RUN_SOURCES_FILE, type RecordedActionKind, type RegexLiteral, type ResumedEvent, type RunArtifact, type RunFinishedEvent, type RunId, type RunIndexEntry, type RunIndexHeader, type RunKind, type RunManifest, type RunMeta, type RunOutcome, type RunQueueLease, type RunQueueTicketHandle, type RunRequest, type RunSources, type RunStartedEvent, type RunStatus, RunnerAdapterNotFoundError, RunnerNotConfiguredError, type RuntimeState, type RuntimeStateFile, SCENARIOS_INDEX_DIR, SCENARIOS_LATEST_FILE, SCENARIO_RECENT_WINDOW, SCHEDULES_FILE, SCHEDULES_FINGERPRINT_ENV, SECRETS_FILE, SEGMENT_NAME_FORBIDDEN_RE, SNAPSHOTS_SUBDIR, STDERR_FILE, STDOUT_FILE, STEPS_FILE, type ScenarioAnnotations, type ScenarioLatestEntry, type ScenarioMeta, type ScenarioRunRequest, type ScenarioRunTab, type ScenarioScheduleEntry, type ScenarioTab, type ScenariosLatest, type ScenariosPayload, type ScheduleEntry, type ScheduleFreq, type ScheduleSpec, type ScreenshotEvent, type SnapshotTab, type SoftFailureRecord, type StepBlockFinishedEvent, type StepBlockStartedEvent, type StepFailEvent, type StepOkEvent, type StepPosition, type StepStartedEvent, TARGET_ENV_VAR, TERMINAL_RUNTIME_STATES, TERMINAL_WS_EVENT, type TabKind, type TabKindName, type TerminalClientMessage, type TerminalCloseMessage, type TerminalDataMessage, type TerminalErrorMessage, type TerminalExitMessage, type TerminalKind, type TerminalOutputMessage, type TerminalResizeMessage, type TerminalServerMessage, type TerminalSpawnMessage, type ToolCallEvent, type ToolResultEvent, UNOTEST_DIR, UnplaceableRunIdError, UnsupportedRunKindError, type VariableCategory, type VariableKind, type VariablePlanError, WEEK_CHIP_ORDER, WORKSPACE_FILE, WORKSPACE_SCHEMA_VERSION, type WheelChangedEvent, type WorkspaceBundle, type WorkspaceFile, type WsMessage, type WsMessageKind, activeEnvName, artifactsRootFrom, blobPathFor, blobRelPathFor, blobRelSegmentsFor, blobsRootFor, boxEnvSecretRevealPath, boxEnvSecretsRevealPath, boxEnvValuePath, boxEnvValuesPath, boxValueKindOfSegment, boxValuePath, boxValuesPath, canonicalScheduleSet, categorizeVariable, compareQueueTicketNames, cronFromSpec, debugDirFor, debuggerFileFor, declaredEnvKeys, decodeNameList, deleteShadowWarning, describeBundle, describeCron, describeSpec, describeTicketCi, encodeNameList, envFileFor, envKeys, envLayerFilesFor, envNamesFromDirListing, foldScenarioRun, formatNextTick, insertEnvVar, isAnnotationLine, isEnvVarName, isExternalVarName, isFailingStatus, isQueueDirName, isRecord, isRegexLiteral, isRunnerConfigKey, isRunnerSetting, isRunsDirName, isTerminalRuntimeState, makeQueueTicketName, makeRunId, mergeSchedules, nextTickFromSpec, parseAppServerEvent, parseBoxEnvValuesReplaceRequest, parseBoxSecretRevealResponse, parseBoxSecretsRevealResponse, parseBoxValueSetRequest, parseBoxValuesReplaceRequest, parseBoxValuesResponse, parseBundleManifest, parseBundleUploadResponse, parseCiProvider, parseCiRunRequest, parseCiRunResponse, parseEnvContent, parseQueueTicket, parseQueueTicketName, parseScenarioAnnotations, parseScheduleEntry, parseSchedulesDoc, parseSchedulesJson, parseWorkspaceFile, planAddVariable, projectQueueRoot, projectRunDirFor, projectRunsRoot, queueDirFor, queuePriorityFromRank, queuePriorityRank, regexLiteral, removeEnvVar, requireRunDirFor, reservedBoxValueNames, runDirFor, runIdStartedAt, runsDirFor, sanitizeRunIdSegment, scenarioIndexFileName, scenarioRefFromFileName, scheduleTarget, secretsFileFor, secretsLayerFilesFor, serializeEnvValue, shardDaysDescending, shardDirFor, shardPathForRunId, shardPathForTimestamp, specFromCron, testDirFor, validateCollectionName, validateSegmentName };
2897
+ export { ARTIFACTS_ROOT_ENV, type AddVariablePlan, type AddVariablePlanInput, type AppPathPickerSpec, type AppServerEvent, type AuthoringRunRequest, BLOBS_DIR, BOX_ENV_VALUES_SEGMENT, BOX_READ_ENVIRONMENTS_PATH, BOX_READ_ENVIRONMENT_HEADER, BOX_READ_TOKEN_ENV, BOX_READ_TOKEN_PREFIX, BOX_REVEAL_SEGMENT, BOX_SECRET_NAMES_ENV, BOX_TOKEN_ENV, BOX_URL_ENV, BOX_VALUES_PATH, BOX_VARIABLE_NAMES_ENV, BROWSER_CHANNEL_ENV, BROWSER_ENV, BUNDLED_BROWSER_CHANNEL, BUNDLE_ID_ENV, BUNDLE_MANIFEST_FILE, BUNDLE_SCHEMA_VERSION, BUNDLE_UPLOAD_PATH, type BoxEnvValuesReplaceRequest, type BoxEnvValuesView, type BoxReadEnvironment, type BoxReadErrorBody, type BoxReadErrorCode, type BoxSecretRevealResponse, type BoxSecretsRevealResponse, type BoxValueChanged, type BoxValueKind, type BoxValueSetRequest, type BoxValuesError, type BoxValuesErrorCode, type BoxValuesReplaceRequest, type BoxValuesReplaced, type BoxValuesResponse, type BreakpointEntry, type BreakpointsFile, type BundleGitInfo, type BundleManifest, type BundleUploadError, type BundleUploadErrorCode, type BundleUploadOk, type BundleUploadResponse, type BundleUploadStatus, type BundleVariableGap, CI_RUN_PATH, COLLECTIONS_SUBDIR, COLLECTION_NAME_FORBIDDEN_RE, COMMANDS_FILE, type CheckSeverity, type CiProviderId, type CiQueuedRun, type CiRunAccepted, type CiRunError, type CiRunErrorCode, type CiRunRequest, type CiRunResponse, type CollectionMeta, type CollectionRunArtifact, type CollectionRunFinishedEvent, type CollectionRunRequest, type CollectionRunStartedEvent, type CollectionRunTab, type CollectionScenarioFinishedEvent, type CollectionScenarioStartedEvent, type CollectionScheduleEntry, type CollectionTab, DAY_INDEX_FILE, DAY_SHORT, type DbgCommand, type DbgCommandAbort, type DbgCommandClearBp, type DbgCommandContinue, type DbgCommandKind, type DbgCommandPause, type DbgCommandPickerStart, type DbgCommandPickerStop, type DbgCommandProbe, type DbgCommandRecord, type DbgCommandSetBp, type DbgCommandSnapshot, type DbgCommandStep, type DbgCommandWheel, type DebugCapabilities, type DoctorCheck, type DoctorContext, type DslDiagnostic, type DslValidateContext, type DslVocabArg, type DslVocabCategory, type DslVocabEntry, E2E_SUBDIR, ENV_FILE, EXPECT_FAIL_ANNOTATION, type EnqueueRunInput, type EnvChangedMessage, type EnvFile, type EnvUpdate, type EnvVar, type ErrorMessage, FREQ_FIELDS, type FailureBundleWrittenEvent, type FsBreakpointsChangedMessage, type FsCollectionRunStepMessage, type FsCollectionsChangedMessage, type FsHelpersChangedMessage, type FsRunFinishedMessage, type FsRunStartedMessage, type FsRunStepMessage, type FsScenariosChangedMessage, HEARTBEAT_FILE, HELPERS_SUBDIR, type HelperMeta, type HelperTab, type HostRequirement, type IDslLanguageService, type ILaunchedProcess, type IProcessLauncher, type IRunQueue, type IRunnerAdapter, InvalidBlobHashError, JUDGE_ENV, JUDGE_ROUTES, type JudgeErrorResponse, type JudgeHealthResponse, type JudgeRequest, type JudgeVerdict, type JudgeVerdictEvent, LOCK_FILE, LOG_FILE, type LaunchSpec, type LocatorPickedEvent, type LockFile, type LogEvent, type LogLineMessage, type LoopIterationEvent, type Matcher, type NoteEvent, type OverviewTab, PICKER_SNAPSHOT_FILE, type ParsedTicketName, type PausedEvent, type PickerMode, type ProbeMatch, type ProbePinned, type ProbeResult, type ProbeResultEvent, QUEUE_DISABLED_ENV, QUEUE_GLOBAL_DIR_ENV, QUEUE_GLOBAL_SLOTS_ENV, QUEUE_LEASE_ENV, QUEUE_MUTEX_FILE, QUEUE_PRIORITIES, QUEUE_RUNNING_DIR, QUEUE_SCHEMA_VERSION, QUEUE_SLOTS_DIR, QUEUE_SUBDIR, QUEUE_TICKETS_DIR, type QueueChangedMessage, type QueueEntry, type QueuePoolState, type QueuePriority, type QueueProducer, type QueueProducerKind, type QueueSnapshot, type QueueTicket, type QueueTicketCi, type QueueTicketKind, type QueueTicketSource, RUNNER_CONFIG_KEYS, RUNNER_SETTING_PREFIX, RUNS_SUBDIR, RUNTIME_FILE, RUN_INDEX_SCHEMA_VERSION, RUN_MANIFEST_FILE, RUN_SOURCES_FILE, type RecordedActionKind, type RegexLiteral, type ResumedEvent, type RunArtifact, type RunFinishedEvent, type RunId, type RunIndexEntry, type RunIndexHeader, type RunKind, type RunManifest, type RunMeta, type RunOutcome, type RunQueueLease, type RunQueueTicketHandle, type RunRequest, type RunSources, type RunStartedEvent, type RunStatus, RunnerAdapterNotFoundError, RunnerNotConfiguredError, type RuntimeState, type RuntimeStateFile, SCENARIOS_INDEX_DIR, SCENARIOS_LATEST_FILE, SCENARIO_RECENT_WINDOW, SCHEDULES_FILE, SCHEDULES_FINGERPRINT_ENV, SECRETS_FILE, SEGMENT_NAME_FORBIDDEN_RE, SNAPSHOTS_SUBDIR, STDERR_FILE, STDOUT_FILE, STEPS_FILE, type ScenarioAnnotations, type ScenarioLatestEntry, type ScenarioMeta, type ScenarioRunRequest, type ScenarioRunTab, type ScenarioScheduleEntry, type ScenarioTab, type ScenariosLatest, type ScenariosPayload, type ScheduleEntry, type ScheduleFreq, type ScheduleSpec, type ScreenshotEvent, type SnapshotTab, type SoftFailureRecord, type StepBlockFinishedEvent, type StepBlockStartedEvent, type StepFailEvent, type StepOkEvent, type StepPosition, type StepStartedEvent, TARGET_ENV_VAR, TERMINAL_RUNTIME_STATES, TERMINAL_WS_EVENT, type TabKind, type TabKindName, type TerminalClientMessage, type TerminalCloseMessage, type TerminalDataMessage, type TerminalErrorMessage, type TerminalExitMessage, type TerminalKind, type TerminalOutputMessage, type TerminalResizeMessage, type TerminalServerMessage, type TerminalSpawnMessage, type ToolCallEvent, type ToolResultEvent, UNOTEST_DIR, UnplaceableRunIdError, UnsupportedRunKindError, type VariableCategory, type VariableKind, type VariablePlanError, WEEK_CHIP_ORDER, WORKSPACE_FILE, WORKSPACE_SCHEMA_VERSION, type WheelChangedEvent, type WorkspaceBundle, type WorkspaceFile, type WsMessage, type WsMessageKind, activeEnvName, artifactsRootFrom, blobPathFor, blobRelPathFor, blobRelSegmentsFor, blobsRootFor, boxEnvSecretRevealPath, boxEnvSecretsRevealPath, boxEnvValuePath, boxEnvValuesPath, boxValueKindOfSegment, boxValuePath, boxValuesPath, canonicalScheduleSet, categorizeVariable, compareQueueTicketNames, cronFromSpec, debugDirFor, debuggerFileFor, declaredEnvKeys, decodeNameList, deleteShadowWarning, describeBundle, describeCron, describeSpec, describeTicketCi, encodeNameList, envFileFor, envKeys, envLayerFilesFor, envNamesFromDirListing, foldScenarioRun, formatNextTick, insertEnvVar, isAnnotationLine, isEnvVarName, isExternalVarName, isFailingStatus, isQueueDirName, isRecord, isRegexLiteral, isRunnerConfigKey, isRunnerSetting, isRunsDirName, isTerminalRuntimeState, makeQueueTicketName, makeRunId, mergeSchedules, nextTickFromSpec, parseAppServerEvent, parseBoxEnvValuesReplaceRequest, parseBoxReadEnvironments, parseBoxReadError, parseBoxSecretRevealResponse, parseBoxSecretsRevealResponse, parseBoxValueSetRequest, parseBoxValuesReplaceRequest, parseBoxValuesResponse, parseBundleManifest, parseBundleUploadResponse, parseCiProvider, parseCiRunRequest, parseCiRunResponse, parseEnvContent, parseQueueTicket, parseQueueTicketName, parseScenarioAnnotations, parseScheduleEntry, parseSchedulesDoc, parseSchedulesJson, parseWorkspaceFile, planAddVariable, projectQueueRoot, projectRunDirFor, projectRunsRoot, queueDirFor, queuePriorityFromRank, queuePriorityRank, regexLiteral, removeEnvVar, requireRunDirFor, reservedBoxValueNames, runDirFor, runIdStartedAt, runsDirFor, sanitizeRunIdSegment, scenarioIndexFileName, scenarioRefFromFileName, scheduleTarget, secretsFileFor, secretsLayerFilesFor, serializeEnvValue, shardDaysDescending, shardDirFor, shardPathForRunId, shardPathForTimestamp, specFromCron, testDirFor, validateCollectionName, validateSegmentName };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- const _0x43a59c=_0x23ab;(function(_0x1230ef,_0x564212){const _0x1302c3={_0x479dad:0x217,_0x46e9bd:0x1e9,_0x416329:0x1e8,_0x20ea66:0x197,_0x5ac64f:0x1f4},_0x47874a=_0x23ab,_0x573962=_0x1230ef();while(!![]){try{const _0x49ece5=parseInt(_0x47874a(_0x1302c3._0x479dad))/0x1+parseInt(_0x47874a(0x1ef))/0x2+parseInt(_0x47874a(0x274))/0x3+-parseInt(_0x47874a(_0x1302c3._0x46e9bd))/0x4+-parseInt(_0x47874a(_0x1302c3._0x416329))/0x5+-parseInt(_0x47874a(_0x1302c3._0x20ea66))/0x6+parseInt(_0x47874a(_0x1302c3._0x5ac64f))/0x7;if(_0x49ece5===_0x564212)break;else _0x573962['push'](_0x573962['shift']());}catch(_0x57e982){_0x573962['push'](_0x573962['shift']());}}}(_0x2e87,0x449f6));var __defProp=Object['defineProperty'],__name=(_0x2c6b49,_0xf0c11a)=>__defProp(_0x2c6b49,_0x43a59c(0x24b),{'value':_0xf0c11a,'configurable':!![]});function parseAppServerEvent(_0x1d34d1){const _0x33f651={_0x413e04:0x19a,_0x35c38a:0x1c0,_0x14a80f:0x279},_0x1d0a43=_0x43a59c,_0x5099c8=_0x1d34d1[_0x1d0a43(_0x33f651._0x413e04)]();if(!_0x5099c8['startsWith']('{'))return null;try{const _0x2050a6=JSON[_0x1d0a43(0x189)](_0x5099c8);if(_0x2050a6[_0x1d0a43(_0x33f651._0x35c38a)]===_0x1d0a43(0x1a1)||_0x2050a6[_0x1d0a43(0x1c0)]===_0x1d0a43(0x1ab)||_0x2050a6['kind']===_0x1d0a43(_0x33f651._0x14a80f))return _0x2050a6;return null;}catch{return null;}}__name(parseAppServerEvent,'parseAppServerEvent');function isRecord(_0x4fd7a4){const _0x49361f={_0x3d60bf:0x2c4},_0x54c882=_0x43a59c;return typeof _0x4fd7a4===_0x54c882(_0x49361f._0x3d60bf)&&_0x4fd7a4!==null&&!Array[_0x54c882(0x2ca)](_0x4fd7a4);}__name(isRecord,_0x43a59c(0x26e));var UNOTEST_DIR=_0x43a59c(0x1aa),E2E_SUBDIR='e2e',HELPERS_SUBDIR=_0x43a59c(0x23b),COLLECTIONS_SUBDIR='_collections',RUNS_SUBDIR=_0x43a59c(0x2bf),SNAPSHOTS_SUBDIR=_0x43a59c(0x240);function testDirFor(_0xd042e4){return''+E2E_SUBDIR+_0xd042e4;}__name(testDirFor,_0x43a59c(0x267));function runsDirFor(_0x4c11bb,_0x29071b){return''+RUNS_SUBDIR+_0x4c11bb+(_0x29071b?'.'+_0x29071b:'');}__name(runsDirFor,'runsDirFor');function isRunsDirName(_0x5bddef){const _0x2b7428={_0x2748a0:0x214},_0x1caaad=_0x43a59c;return _0x5bddef===RUNS_SUBDIR||_0x5bddef[_0x1caaad(_0x2b7428._0x2748a0)](RUNS_SUBDIR+'-')||_0x5bddef['startsWith'](RUNS_SUBDIR+'.');}__name(isRunsDirName,_0x43a59c(0x2b7));function debugDirFor(_0x68c23e){const _0x307158={_0x21c5d0:0x2c0},_0xe8638b=_0x43a59c;return _0xe8638b(_0x307158._0x21c5d0)+_0x68c23e;}__name(debugDirFor,'debugDirFor');function debuggerFileFor(_0x3ab8ab){const _0x1fffb3={_0x2fbc75:0x1b4},_0x31ba9a=_0x43a59c;return UNOTEST_DIR+_0x31ba9a(_0x1fffb3._0x2fbc75)+_0x3ab8ab+_0x31ba9a(0x2c6);}__name(debuggerFileFor,_0x43a59c(0x299));var LOCK_FILE=_0x43a59c(0x2bb),LOG_FILE='.viewer.log',STEPS_FILE=_0x43a59c(0x1ca),HEARTBEAT_FILE=_0x43a59c(0x1ea),DAY_INDEX_FILE='_day.jsonl',SCENARIOS_INDEX_DIR=_0x43a59c(0x286),SCENARIOS_LATEST_FILE=_0x43a59c(0x1ac),STDOUT_FILE=_0x43a59c(0x284),STDERR_FILE=_0x43a59c(0x239),COMMANDS_FILE=_0x43a59c(0x206),RUNTIME_FILE='runtime.json',PICKER_SNAPSHOT_FILE=_0x43a59c(0x26a),ENV_FILE=_0x43a59c(0x27d),SECRETS_FILE='unotest/.secrets',SCHEDULES_FILE=_0x43a59c(0x247);function envFileFor(_0xf9908,_0x5f740){return''+ENV_FILE+_0xf9908+(_0x5f740?'.'+_0x5f740:'');}__name(envFileFor,'envFileFor');function secretsFileFor(_0x55a817,_0x582188){return''+SECRETS_FILE+_0x55a817+(_0x582188?'.'+_0x582188:'');}__name(secretsFileFor,_0x43a59c(0x1f0));function envLayerFilesFor(_0x296d29,_0x46d0be){return layersFor(ENV_FILE,_0x296d29,_0x46d0be);}__name(envLayerFilesFor,_0x43a59c(0x22b));function secretsLayerFilesFor(_0x7b7b93,_0x1f9f86){return layersFor(SECRETS_FILE,_0x7b7b93,_0x1f9f86);}__name(secretsLayerFilesFor,_0x43a59c(0x28e));function layersFor(_0x4ccdf3,_0x331c23,_0x5bb304){const _0x3e35bd={_0x5e8e9b:0x190},_0x25d30f=_0x43a59c,_0x25e125=[_0x4ccdf3];if(_0x331c23)_0x25e125[_0x25d30f(0x190)](''+_0x4ccdf3+_0x331c23);if(_0x5bb304){_0x25e125[_0x25d30f(_0x3e35bd._0x5e8e9b)](_0x4ccdf3+'.'+_0x5bb304);if(_0x331c23)_0x25e125['push'](''+_0x4ccdf3+_0x331c23+'.'+_0x5bb304);}return _0x25e125;}__name(layersFor,'layersFor');var ARTIFACTS_ROOT_ENV=_0x43a59c(0x27c);function artifactsRootFrom(_0x1987ba,_0x4e1d8c){const _0x11f069={_0x288599:0x19a},_0x2214bd=_0x43a59c,_0x17b3c2=_0x1987ba[ARTIFACTS_ROOT_ENV]?.[_0x2214bd(_0x11f069._0x288599)]();return _0x17b3c2?_0x17b3c2:_0x4e1d8c;}__name(artifactsRootFrom,_0x43a59c(0x2cf));function activeEnvName(_0x5bf5e0){const _0x4fbc9e={_0x3c79d3:0x19a},_0x9367a2=_0x43a59c,_0x3ac103=_0x5bf5e0[_0x9367a2(0x1a3)]?.[_0x9367a2(_0x4fbc9e._0x3c79d3)]();return _0x3ac103?_0x3ac103:void 0x0;}__name(activeEnvName,_0x43a59c(0x19f));var RESERVED_ENV_NAMES=new Set([_0x43a59c(0x2b3),_0x43a59c(0x18b),_0x43a59c(0x2d4)]);function envNamesFromDirListing(_0x177f8f,_0x455536){const _0x247f53={_0x562756:0x2db,_0x2cd0ae:0x23a,_0x189400:0x2b6,_0x22b0ed:0x1ed},_0x1eb387=_0x43a59c,_0x371ae4=[_0x1eb387(_0x247f53._0x562756),'.secrets']['flatMap'](_0x127ba8=>_0x455536?[_0x127ba8,''+_0x127ba8+_0x455536]:[_0x127ba8]),_0x12c162=new Set();for(const _0x8af67e of _0x177f8f){for(const _0x4846ba of _0x371ae4){const _0x432ab6=_0x4846ba+'.';if(!_0x8af67e[_0x1eb387(0x214)](_0x432ab6))continue;const _0x406242=_0x8af67e[_0x1eb387(_0x247f53._0x2cd0ae)](_0x432ab6[_0x1eb387(_0x247f53._0x189400)]);if(!_0x406242||_0x406242['includes']('/'))continue;if(RESERVED_ENV_NAMES['has'](_0x406242))continue;_0x12c162[_0x1eb387(_0x247f53._0x22b0ed)](_0x406242);}}return[..._0x12c162][_0x1eb387(0x1c2)]();}__name(envNamesFromDirListing,_0x43a59c(0x2a2));function isRegexLiteral(_0x5419c4){const _0x10af93={_0x1b5e1b:0x229,_0x3b66fc:0x1c6,_0x4f3b8d:0x2ab},_0x2f4eca=_0x43a59c;return typeof _0x5419c4===_0x2f4eca(0x2c4)&&_0x5419c4!==null&&_0x5419c4[_0x2f4eca(0x1c0)]===_0x2f4eca(0x26c)&&typeof _0x5419c4[_0x2f4eca(_0x10af93._0x1b5e1b)]==='string'&&typeof _0x5419c4[_0x2f4eca(_0x10af93._0x3b66fc)]===_0x2f4eca(_0x10af93._0x4f3b8d);}__name(isRegexLiteral,_0x43a59c(0x1eb));function regexLiteral(_0x39e77a,_0x30cd44=''){const _0x2b0c6a=_0x43a59c;return{'kind':_0x2b0c6a(0x26c),'source':_0x39e77a,'flags':_0x30cd44};}__name(regexLiteral,_0x43a59c(0x2a9));var RAND_BYTES=0x6;function makeRunId(_0x441519){const _0xfd688f={_0x5b8f33:0x219,_0x590718:0x264,_0x1ddfd3:0x2b4},_0x538057=_0x43a59c,_0x7110da=sanitizeRunIdSegment(_0x441519),_0x276766=Date[_0x538057(0x22e)]()[_0x538057(_0xfd688f._0x5b8f33)](0x24),_0x4543fa=new Uint8Array(RAND_BYTES);globalThis['crypto'][_0x538057(_0xfd688f._0x590718)](_0x4543fa);let _0x56bc2d='';for(let _0x5ce942=0x0;_0x5ce942<_0x4543fa[_0x538057(0x2b6)];_0x5ce942++){_0x56bc2d+=_0x4543fa[_0x5ce942][_0x538057(0x219)](0x10)[_0x538057(_0xfd688f._0x1ddfd3)](0x2,'0');}return _0x7110da+'-'+_0x276766+'-'+_0x56bc2d;}__name(makeRunId,_0x43a59c(0x209));function sanitizeRunIdSegment(_0x1fa9ce){const _0x3ded2a={_0x55f61d:0x253,_0x415f84:0x253},_0x353096=_0x43a59c,_0x1f83b5=_0x1fa9ce[_0x353096(_0x3ded2a._0x55f61d)](/[^a-zA-Z0-9_-]+/g,'-')[_0x353096(_0x3ded2a._0x415f84)](/-+/g,'-')[_0x353096(_0x3ded2a._0x415f84)](/^-|-$/g,'');return _0x1f83b5[_0x353096(0x2b6)]>0x0?_0x1f83b5:'run';}__name(sanitizeRunIdSegment,'sanitizeRunIdSegment');var RANDOM_SUFFIX_RE=/^[0-9a-f]{6,}$/,MIN_PLAUSIBLE_MS=Date[_0x43a59c(0x24c)](0x7e4,0x0,0x1),MAX_PLAUSIBLE_MS=Date[_0x43a59c(0x24c)](0x834,0x0,0x1);function runIdStartedAt(_0x52f506){const _0x3dc107={_0x4ae9a8:0x2b6,_0x3cdc45:0x2b6,_0x1d5549:0x1b8,_0x3d5374:0x1b5},_0x36f98a=_0x43a59c,_0x1eeb56=_0x52f506['split']('-');if(_0x1eeb56[_0x36f98a(_0x3dc107._0x4ae9a8)]<0x3)return null;const _0x243380=_0x1eeb56[_0x1eeb56[_0x36f98a(_0x3dc107._0x3cdc45)]-0x1];if(!RANDOM_SUFFIX_RE[_0x36f98a(_0x3dc107._0x1d5549)](_0x243380))return null;const _0x321108=_0x1eeb56[_0x1eeb56[_0x36f98a(_0x3dc107._0x3cdc45)]-0x2];if(!/^[0-9a-z]+$/[_0x36f98a(0x1b8)](_0x321108))return null;const _0x59acc5=parseInt(_0x321108,0x24);if(!Number[_0x36f98a(_0x3dc107._0x3d5374)](_0x59acc5))return null;if(_0x59acc5<MIN_PLAUSIBLE_MS||_0x59acc5>=MAX_PLAUSIBLE_MS)return null;return _0x59acc5;}__name(runIdStartedAt,_0x43a59c(0x2b2));function shardPathForTimestamp(_0x5d96f3){const _0x456aec={_0xb87ece:0x2b4,_0x375d36:0x1f3,_0x29a85a:0x2b4},_0x2d1fc6=_0x43a59c,_0xcb3bb3=new Date(_0x5d96f3),_0x294751=String(_0xcb3bb3[_0x2d1fc6(0x207)]())[_0x2d1fc6(0x2b4)](0x4,'0'),_0xe33c34=String(_0xcb3bb3['getUTCMonth']()+0x1)[_0x2d1fc6(_0x456aec._0xb87ece)](0x2,'0'),_0x571f37=String(_0xcb3bb3[_0x2d1fc6(_0x456aec._0x375d36)]())[_0x2d1fc6(_0x456aec._0x29a85a)](0x2,'0');return _0x294751+'/'+_0xe33c34+'/'+_0x571f37;}__name(shardPathForTimestamp,_0x43a59c(0x2ee));function shardPathForRunId(_0x1d6020){const _0x414d91=runIdStartedAt(_0x1d6020);return _0x414d91===null?null:shardPathForTimestamp(_0x414d91);}__name(shardPathForRunId,_0x43a59c(0x297));function runDirFor(_0x2ee6db,_0x375eca){const _0x4d3e93=shardPathForRunId(_0x375eca);return _0x4d3e93===null?null:_0x2ee6db+'/'+_0x4d3e93+'/'+_0x375eca;}__name(runDirFor,_0x43a59c(0x23e));var UnplaceableRunIdError=class extends Error{static{__name(this,_0x43a59c(0x21b));}constructor(_0x1aabbe){const _0x39597b={_0x42c591:0x21b},_0x4c4b27=_0x43a59c;super(_0x4c4b27(0x20f)+_0x1aabbe),this[_0x4c4b27(0x24b)]=_0x4c4b27(_0x39597b._0x42c591);}};function requireRunDirFor(_0x3e3a40,_0x52256c){const _0x5e9e68=runDirFor(_0x3e3a40,_0x52256c);if(_0x5e9e68===null)throw new UnplaceableRunIdError(_0x52256c);return _0x5e9e68;}__name(requireRunDirFor,'requireRunDirFor');function projectRunsRoot(_0x2badf6='',_0x126ca1){return UNOTEST_DIR+'/'+runsDirFor(_0x2badf6,_0x126ca1);}__name(projectRunsRoot,_0x43a59c(0x1f2));function projectRunDirFor(_0x40c570,_0x5bcfb6='',_0x38c4f7){return requireRunDirFor(projectRunsRoot(_0x5bcfb6,_0x38c4f7),_0x40c570);}__name(projectRunDirFor,'projectRunDirFor');function shardDirFor(_0x1f1f06,_0x4ba280){return _0x1f1f06+'/'+shardPathForTimestamp(_0x4ba280);}__name(shardDirFor,'shardDirFor');function*shardDaysDescending(_0xc16f46,_0x2fe7dc,_0xaa446e){const _0x520287={_0x3b96ec:0x2a3},_0x2646aa=_0x43a59c,_0x16ba3c=0x5265c00;let _0x19acf0=Math[_0x2646aa(_0x520287._0x3b96ec)](_0x2fe7dc/_0x16ba3c)*_0x16ba3c;for(let _0x552b03=0x0;_0x552b03<_0xaa446e;_0x552b03++){yield shardDirFor(_0xc16f46,_0x19acf0),_0x19acf0-=_0x16ba3c;}}__name(shardDaysDescending,_0x43a59c(0x243));var RUN_INDEX_SCHEMA_VERSION=0x2,SCENARIO_RECENT_WINDOW=0xc;function isFailingStatus(_0x27dda0){const _0x5ecba5={_0x2855a2:0x2ef},_0x50de96=_0x43a59c;return _0x27dda0===_0x50de96(_0x5ecba5._0x2855a2)||_0x27dda0==='interrupted';}__name(isFailingStatus,_0x43a59c(0x1b2));function foldScenarioRun(_0x53680d,_0x557903){const _0x97fd07={_0x541132:0x251,_0x3b1c18:0x262,_0x461e5b:0x251,_0x19b43d:0x23a,_0x1fcef4:0x1cf,_0x21aff4:0x285},_0x53470b=_0x43a59c,_0x2da32={'lastRunId':_0x557903[_0x53470b(0x1cb)],'lastStatus':_0x557903[_0x53470b(_0x97fd07._0x541132)],'lastAt':_0x557903[_0x53470b(0x285)],'lastDurationMs':_0x557903[_0x53470b(0x28c)],'recent':[..._0x53680d?.[_0x53470b(_0x97fd07._0x3b1c18)]??[],_0x557903[_0x53470b(_0x97fd07._0x461e5b)]][_0x53470b(_0x97fd07._0x19b43d)](-SCENARIO_RECENT_WINDOW)};if(!isFailingStatus(_0x557903['status']))return{..._0x2da32,'failStreak':0x0,'failingSince':null};const _0x117734=(_0x53680d?.[_0x53470b(_0x97fd07._0x1fcef4)]??0x0)+0x1;return{..._0x2da32,'failStreak':_0x117734,'failingSince':_0x117734===0x1?_0x557903[_0x53470b(_0x97fd07._0x21aff4)]:_0x53680d?.['failingSince']??_0x557903[_0x53470b(0x285)]};}__name(foldScenarioRun,_0x43a59c(0x1bf));function scenarioIndexFileName(_0x2184da){const _0x39871d=_0x43a59c;return encodeURIComponent(_0x2184da)+_0x39871d(0x2e1);}__name(scenarioIndexFileName,'scenarioIndexFileName');function scenarioRefFromFileName(_0x1b70a0){const _0x4a633f={_0x11e98a:0x2d9,_0x14ebcd:0x2b6},_0x1b24ab=_0x43a59c;if(!_0x1b70a0[_0x1b24ab(_0x4a633f._0x11e98a)]('.jsonl'))return null;try{return decodeURIComponent(_0x1b70a0[_0x1b24ab(0x23a)](0x0,-_0x1b24ab(0x2e1)[_0x1b24ab(_0x4a633f._0x14ebcd)]));}catch{return null;}}__name(scenarioRefFromFileName,'scenarioRefFromFileName');var CI_RUN_PATH=_0x43a59c(0x19b),PROVIDER_IDS=[_0x43a59c(0x231),_0x43a59c(0x1fb),'api'],RUN_ERROR_CODES=['unauthorized',_0x43a59c(0x2eb),_0x43a59c(0x2e8),_0x43a59c(0x292),'no-collections',_0x43a59c(0x25b),_0x43a59c(0x282)];function parseCiRunRequest(_0x3849f3){const _0x2afff5={_0x4812fe:0x2ab,_0x1be253:0x2ab},_0x4835e8=_0x43a59c;if(!isRecord(_0x3849f3))return null;const {bundleId:_0x5afa88,environment:_0x3ee39d,collections:_0x1113b5,pr:_0x58f7cc,branch:_0x4df46b,sha:_0x4a590d}=_0x3849f3;if(typeof _0x5afa88!=='string'||_0x5afa88[_0x4835e8(0x2b6)]===0x0)return null;if(typeof _0x3ee39d!==_0x4835e8(_0x2afff5._0x4812fe)||_0x3ee39d[_0x4835e8(0x2b6)]===0x0)return null;let _0x5dc8ea=null;if(_0x1113b5!==void 0x0){if(!Array['isArray'](_0x1113b5))return null;if(_0x1113b5[_0x4835e8(0x1c4)](_0x3860d7=>typeof _0x3860d7!=='string'||_0x3860d7[_0x4835e8(0x2b6)]===0x0))return null;_0x5dc8ea=_0x1113b5;}if(_0x58f7cc!==void 0x0&&(typeof _0x58f7cc!==_0x4835e8(0x2ae)||!Number[_0x4835e8(0x29a)](_0x58f7cc)))return null;for(const _0xe246a7 of[_0x4df46b,_0x4a590d]){if(_0xe246a7!==void 0x0&&typeof _0xe246a7!==_0x4835e8(_0x2afff5._0x1be253))return null;}return{'bundleId':_0x5afa88,'environment':_0x3ee39d,..._0x5dc8ea?{'collections':_0x5dc8ea}:{},...typeof _0x58f7cc==='number'?{'pr':_0x58f7cc}:{},...typeof _0x4df46b==='string'?{'branch':_0x4df46b}:{},...typeof _0x4a590d===_0x4835e8(0x2ab)?{'sha':_0x4a590d}:{}};}__name(parseCiRunRequest,'parseCiRunRequest');function parseCiRunResponse(_0x1e4c71){const _0x470fd0={_0x28fe54:0x2ab,_0x3fcd4d:0x1b0,_0xcab095:0x2ca,_0x3331eb:0x2ae,_0x9ca46b:0x2ae},_0x532288=_0x43a59c;if(!isRecord(_0x1e4c71))return null;if(isRecord(_0x1e4c71['error'])){const {code:_0x493089,message:_0x5d1a1e}=_0x1e4c71[_0x532288(0x1a6)];if(!RUN_ERROR_CODES[_0x532288(0x241)](_0x493089))return null;if(typeof _0x5d1a1e!==_0x532288(_0x470fd0._0x28fe54))return null;return{'error':{'code':_0x493089,'message':_0x5d1a1e}};}const {status:_0x45be13,bundleId:_0x4cfcfd,environment:_0x347d95,runs:_0xc96754,superseded:_0x5f387d}=_0x1e4c71;if(_0x45be13!==_0x532288(_0x470fd0._0x3fcd4d))return null;if(typeof _0x4cfcfd!==_0x532288(0x2ab)||typeof _0x347d95!=='string')return null;if(!Array[_0x532288(_0x470fd0._0xcab095)](_0xc96754))return null;const _0x36365e=[];for(const _0x4855a9 of _0xc96754){if(!isRecord(_0x4855a9))return null;const {runId:_0x6090da,collection:_0x48f941}=_0x4855a9;if(typeof _0x6090da!=='string'||typeof _0x48f941!=='string')return null;_0x36365e[_0x532288(0x190)]({'runId':_0x6090da,'collection':_0x48f941});}if(_0x5f387d!==void 0x0&&typeof _0x5f387d!==_0x532288(_0x470fd0._0x3331eb))return null;return{'status':_0x532288(0x1b0),'bundleId':_0x4cfcfd,'environment':_0x347d95,'runs':_0x36365e,...typeof _0x5f387d===_0x532288(_0x470fd0._0x9ca46b)?{'superseded':_0x5f387d}:{}};}__name(parseCiRunResponse,_0x43a59c(0x215));function parseCiProvider(_0x254999){const _0x40c4e7={_0x3b2a3a:0x241},_0x52f7cf=_0x43a59c;return PROVIDER_IDS[_0x52f7cf(_0x40c4e7._0x3b2a3a)](_0x254999)?_0x254999:null;}__name(parseCiProvider,_0x43a59c(0x291));var QUEUE_SUBDIR=_0x43a59c(0x18c),QUEUE_TICKETS_DIR=_0x43a59c(0x1b1),QUEUE_RUNNING_DIR=_0x43a59c(0x1b9),QUEUE_SLOTS_DIR=_0x43a59c(0x22a),QUEUE_MUTEX_FILE=_0x43a59c(0x212),QUEUE_LEASE_ENV=_0x43a59c(0x25f),QUEUE_DISABLED_ENV=_0x43a59c(0x1b3),QUEUE_GLOBAL_DIR_ENV=_0x43a59c(0x278),QUEUE_GLOBAL_SLOTS_ENV=_0x43a59c(0x1af),QUEUE_SCHEMA_VERSION=0x1;function queueDirFor(_0x5d12c6,_0x1cd2d3){return''+QUEUE_SUBDIR+_0x5d12c6+(_0x1cd2d3?'.'+_0x1cd2d3:'');}__name(queueDirFor,_0x43a59c(0x25c));function isQueueDirName(_0x294511){return _0x294511===QUEUE_SUBDIR||_0x294511['startsWith'](QUEUE_SUBDIR+'-')||_0x294511['startsWith'](QUEUE_SUBDIR+'.');}__name(isQueueDirName,_0x43a59c(0x235));function projectQueueRoot(_0x3faf5c='',_0x2f7c28){return UNOTEST_DIR+'/'+queueDirFor(_0x3faf5c,_0x2f7c28);}__name(projectQueueRoot,_0x43a59c(0x2be));var PRIORITY_RANKS=Object['freeze']({'maintenance':0x0,'interactive':0x1,'ci':0x2,'schedule':0x3}),RANK_PRIORITIES=[_0x43a59c(0x2e4),'interactive','ci',_0x43a59c(0x237)],QUEUE_PRIORITIES=RANK_PRIORITIES;function queuePriorityRank(_0x9f0fc6){return PRIORITY_RANKS[_0x9f0fc6];}__name(queuePriorityRank,_0x43a59c(0x200));function queuePriorityFromRank(_0x4f12ff){return RANK_PRIORITIES[_0x4f12ff]??null;}__name(queuePriorityFromRank,_0x43a59c(0x196));function describeTicketCi(_0x368d50){const _0x283cf2={_0x20b31e:0x263,_0xa588d0:0x1f8,_0x1d2416:0x1ee,_0x94f5d5:0x2b6,_0x94eda6:0x23a},_0x3e9c5a=_0x43a59c,_0x35f1d3=_0x368d50[_0x3e9c5a(0x263)]?'@'+_0x368d50[_0x3e9c5a(_0x283cf2._0x20b31e)][_0x3e9c5a(0x23a)](0x0,0x7):'';if(_0x368d50['pr']!==void 0x0)return _0x3e9c5a(_0x283cf2._0xa588d0)+_0x368d50['pr']+_0x35f1d3;if(_0x368d50[_0x3e9c5a(0x1ee)]!==void 0x0)return''+_0x368d50[_0x3e9c5a(_0x283cf2._0x1d2416)]+_0x35f1d3;return _0x35f1d3[_0x3e9c5a(_0x283cf2._0x94f5d5)]>0x0?_0x35f1d3[_0x3e9c5a(_0x283cf2._0x94eda6)](0x1):_0x368d50[_0x3e9c5a(0x18e)];}__name(describeTicketCi,_0x43a59c(0x199));function makeQueueTicketName(_0x402118,_0x3e1f50,_0x1fa4bb){const _0x37ba1e={_0x366e62:0x219},_0x5e14b9=_0x43a59c;return queuePriorityRank(_0x402118)+'-'+_0x3e1f50[_0x5e14b9(_0x37ba1e._0x366e62)](0x24)+'-'+_0x1fa4bb+'.json';}__name(makeQueueTicketName,_0x43a59c(0x2d0));var TICKET_NAME_RE=/^([0-3])-([0-9a-z]+)-([0-9a-f]+)\.json$/;function parseQueueTicketName(_0x312073){const _0x4c66d2={_0xb0f900:0x194,_0x2ba378:0x1b5},_0x8161b9=_0x43a59c,_0x33071=TICKET_NAME_RE[_0x8161b9(_0x4c66d2._0xb0f900)](_0x312073);if(!_0x33071)return null;const _0x285b8f=Number(_0x33071[0x1]),_0x2d38cc=queuePriorityFromRank(_0x285b8f);if(_0x2d38cc===null)return null;const _0x19e7a6=parseInt(_0x33071[0x2],0x24);if(!Number[_0x8161b9(_0x4c66d2._0x2ba378)](_0x19e7a6))return null;return{'rank':_0x285b8f,'priority':_0x2d38cc,'createdAt':_0x19e7a6,'random':_0x33071[0x3]};}__name(parseQueueTicketName,_0x43a59c(0x244));function compareQueueTicketNames(_0x1fca82,_0x34994c){const _0x4a1852={_0x4d77c7:0x18f},_0x39c3bd=_0x43a59c,_0xdeecaa=parseQueueTicketName(_0x1fca82),_0x178e4a=parseQueueTicketName(_0x34994c);if(!_0xdeecaa||!_0x178e4a)return _0x1fca82<_0x34994c?-0x1:_0x1fca82>_0x34994c?0x1:0x0;if(_0xdeecaa[_0x39c3bd(_0x4a1852._0x4d77c7)]!==_0x178e4a['rank'])return _0xdeecaa[_0x39c3bd(0x18f)]-_0x178e4a['rank'];if(_0xdeecaa['createdAt']!==_0x178e4a[_0x39c3bd(0x1bc)])return _0xdeecaa['createdAt']-_0x178e4a['createdAt'];return _0xdeecaa[_0x39c3bd(0x28d)]<_0x178e4a[_0x39c3bd(0x28d)]?-0x1:_0xdeecaa['random']>_0x178e4a[_0x39c3bd(0x28d)]?0x1:0x0;}__name(compareQueueTicketNames,_0x43a59c(0x256));var TICKET_KINDS=['scenario',_0x43a59c(0x29f),_0x43a59c(0x2ed),_0x43a59c(0x2e4)],PRODUCER_KINDS=[_0x43a59c(0x218),_0x43a59c(0x20a),_0x43a59c(0x2f0),'schedule','ci'];function parseQueueTicket(_0xd7afb6){const _0x3e1ce3={_0x25736f:0x2ab,_0x76475e:0x2ab,_0x3143cd:0x241,_0x20fb74:0x1b5,_0x3d9fe9:0x241,_0xbaee04:0x2ab,_0x3dbc15:0x20e},_0x2a3f94=_0x43a59c;if(!isRecord(_0xd7afb6))return null;const {schemaVersion:_0x2f5a08,runId:_0x25b51e,kind:_0x502259,ref:_0x4c4e4b,env:_0x267489,priority:_0x4aa93b,weight:_0x4d7b6b,producer:_0x1bf28c,source:_0x2bec05,ci:_0x3d8016,createdAt:_0x355701}=_0xd7afb6;if(_0x2f5a08!==QUEUE_SCHEMA_VERSION)return null;if(typeof _0x25b51e!==_0x2a3f94(_0x3e1ce3._0x25736f)||_0x25b51e[_0x2a3f94(0x2b6)]===0x0)return null;if(typeof _0x4c4e4b!==_0x2a3f94(_0x3e1ce3._0x76475e))return null;if(!TICKET_KINDS[_0x2a3f94(_0x3e1ce3._0x3143cd)](_0x502259))return null;if(!QUEUE_PRIORITIES['includes'](_0x4aa93b))return null;if(typeof _0x4d7b6b!=='number'||!Number[_0x2a3f94(_0x3e1ce3._0x20fb74)](_0x4d7b6b)||_0x4d7b6b<0x1)return null;if(typeof _0x355701!==_0x2a3f94(0x2ae)||!Number[_0x2a3f94(0x1b5)](_0x355701))return null;if(!isRecord(_0x1bf28c))return null;if(!PRODUCER_KINDS[_0x2a3f94(_0x3e1ce3._0x3d9fe9)](_0x1bf28c['kind']))return null;if(typeof _0x1bf28c[_0x2a3f94(0x27f)]!=='number'||typeof _0x1bf28c[_0x2a3f94(0x213)]!==_0x2a3f94(0x2ab))return null;if(_0x267489!==void 0x0&&typeof _0x267489!==_0x2a3f94(_0x3e1ce3._0x76475e))return null;let _0x264db8=null;if(_0x2bec05!==void 0x0){if(!isRecord(_0x2bec05)||typeof _0x2bec05[_0x2a3f94(0x20e)]!==_0x2a3f94(_0x3e1ce3._0xbaee04)||_0x2bec05[_0x2a3f94(_0x3e1ce3._0x3dbc15)][_0x2a3f94(0x2b6)]===0x0)return null;_0x264db8={'bundleId':_0x2bec05['bundleId']};}let _0x1c54da=null;if(_0x3d8016!==void 0x0){_0x1c54da=parseTicketCi(_0x3d8016);if(_0x1c54da===null)return null;}return{'schemaVersion':QUEUE_SCHEMA_VERSION,'runId':_0x25b51e,'kind':_0x502259,'ref':_0x4c4e4b,'priority':_0x4aa93b,'weight':_0x4d7b6b,'producer':{'kind':_0x1bf28c['kind'],'pid':_0x1bf28c[_0x2a3f94(0x27f)],'host':_0x1bf28c[_0x2a3f94(0x213)]},'createdAt':_0x355701,...typeof _0x267489===_0x2a3f94(_0x3e1ce3._0x25736f)?{'env':_0x267489}:{},..._0x264db8?{'source':_0x264db8}:{},..._0x1c54da?{'ci':_0x1c54da}:{}};}__name(parseQueueTicket,_0x43a59c(0x288));function parseTicketCi(_0x44477d){const _0x25a3ae={_0x2992ad:0x2ab},_0x373194=_0x43a59c;if(!isRecord(_0x44477d))return null;const _0x34aae1=parseCiProvider(_0x44477d[_0x373194(0x18e)]);if(_0x34aae1===null)return null;const {repo:_0x3da3a2,branch:_0x4fdc5c,sha:_0x3ce905,pr:_0x4ecba6,checkId:_0x57a122}=_0x44477d;for(const _0x2b2a66 of[_0x3da3a2,_0x4fdc5c,_0x3ce905,_0x57a122]){if(_0x2b2a66!==void 0x0&&typeof _0x2b2a66!=='string')return null;}if(_0x4ecba6!==void 0x0&&(typeof _0x4ecba6!==_0x373194(0x2ae)||!Number[_0x373194(0x29a)](_0x4ecba6)))return null;return{'provider':_0x34aae1,...typeof _0x3da3a2===_0x373194(0x2ab)?{'repo':_0x3da3a2}:{},...typeof _0x4fdc5c===_0x373194(_0x25a3ae._0x2992ad)?{'branch':_0x4fdc5c}:{},...typeof _0x3ce905===_0x373194(0x2ab)?{'sha':_0x3ce905}:{},...typeof _0x4ecba6==='number'?{'pr':_0x4ecba6}:{},...typeof _0x57a122===_0x373194(0x2ab)?{'checkId':_0x57a122}:{}};}__name(parseTicketCi,_0x43a59c(0x272));var BUNDLE_SCHEMA_VERSION=0x1,BUNDLE_MANIFEST_FILE=_0x43a59c(0x25d),BUNDLE_UPLOAD_PATH=_0x43a59c(0x201),BOX_URL_ENV='UNOTEST_BOX_URL',BOX_TOKEN_ENV=_0x43a59c(0x203),BUNDLE_ID_ENV=_0x43a59c(0x295),SCHEDULES_FINGERPRINT_ENV=_0x43a59c(0x29b);function parseGitInfo(_0x4b9923){const _0x4be0af={_0x3491d1:0x2ab,_0x52d46a:0x2ab},_0x16a3e6=_0x43a59c;if(!isRecord(_0x4b9923))return null;const {repo:_0x308580,branch:_0x39ba30,sha:_0x1b3303,dirty:_0x43be33}=_0x4b9923;if(typeof _0x43be33!=='boolean')return null;for(const _0x4ad84a of[_0x308580,_0x39ba30,_0x1b3303]){if(_0x4ad84a!==void 0x0&&typeof _0x4ad84a!=='string')return null;}return{'dirty':_0x43be33,...typeof _0x308580===_0x16a3e6(0x2ab)?{'repo':_0x308580}:{},...typeof _0x39ba30===_0x16a3e6(_0x4be0af._0x3491d1)?{'branch':_0x39ba30}:{},...typeof _0x1b3303===_0x16a3e6(_0x4be0af._0x52d46a)?{'sha':_0x1b3303}:{}};}__name(parseGitInfo,_0x43a59c(0x1d4));function parseBundleManifest(_0x26743e){const _0x3bcf15={_0x2d6aec:0x1b8,_0x2ef3b2:0x2ab,_0x3ee077:0x29a,_0x41631e:0x2ab,_0x3b59e5:0x1e4,_0x214718:0x1b8},_0x257d99=_0x43a59c;if(!isRecord(_0x26743e))return null;const {schemaVersion:_0x4aaec1,bundleId:_0x5eb364,sha256:_0x11b87b,createdAt:_0x37bcb3,webVersion:_0x525541,author:_0x417853,git:_0x200865,fileCount:_0x1de452,byteSize:_0x415dfe,declaredVariables:_0x97126,schedulesFingerprint:_0x33637b}=_0x26743e;if(_0x4aaec1!==BUNDLE_SCHEMA_VERSION)return null;if(typeof _0x5eb364!==_0x257d99(0x2ab)||_0x5eb364[_0x257d99(0x2b6)]===0x0)return null;if(_0x11b87b!==void 0x0&&!/^[0-9a-f]{64}$/[_0x257d99(_0x3bcf15._0x2d6aec)](String(_0x11b87b)))return null;if(typeof _0x525541!==_0x257d99(_0x3bcf15._0x2ef3b2)||_0x525541[_0x257d99(0x2b6)]===0x0)return null;if(typeof _0x37bcb3!==_0x257d99(0x2ae)||!Number['isFinite'](_0x37bcb3))return null;if(typeof _0x1de452!==_0x257d99(0x2ae)||!Number[_0x257d99(_0x3bcf15._0x3ee077)](_0x1de452))return null;if(typeof _0x415dfe!==_0x257d99(0x2ae)||!Number[_0x257d99(_0x3bcf15._0x3ee077)](_0x415dfe))return null;if(_0x417853!==void 0x0&&typeof _0x417853!==_0x257d99(_0x3bcf15._0x41631e))return null;let _0x3bbee5=null;if(_0x200865!==void 0x0){_0x3bbee5=parseGitInfo(_0x200865);if(_0x3bbee5===null)return null;}const _0x22144d=Array['isArray'](_0x97126)?_0x97126[_0x257d99(_0x3bcf15._0x3b59e5)](_0x11d3ac=>typeof _0x11d3ac===_0x257d99(0x2ab)):[],_0x87eda3=typeof _0x33637b===_0x257d99(_0x3bcf15._0x41631e)&&/^[0-9a-f]{64}$/[_0x257d99(_0x3bcf15._0x214718)](_0x33637b)?_0x33637b:void 0x0;return{'schemaVersion':BUNDLE_SCHEMA_VERSION,'bundleId':_0x5eb364,...typeof _0x11b87b===_0x257d99(0x2ab)?{'sha256':_0x11b87b}:{},'createdAt':_0x37bcb3,'webVersion':_0x525541,'fileCount':_0x1de452,'byteSize':_0x415dfe,...typeof _0x417853===_0x257d99(0x2ab)?{'author':_0x417853}:{},..._0x3bbee5?{'git':_0x3bbee5}:{},..._0x22144d['length']>0x0?{'declaredVariables':_0x22144d}:{},..._0x87eda3!==void 0x0?{'schedulesFingerprint':_0x87eda3}:{}};}__name(parseBundleManifest,_0x43a59c(0x1a7));function describeBundle(_0x2efe55){const _0x24ee6e={_0x59a329:0x27a,_0x40b31b:0x263,_0x43ff10:0x263,_0x5143d7:0x23a,_0x54f6a9:0x1ee,_0x36ed60:0x1cd},_0x2a290a=_0x43a59c,_0x4ccc78=_0x2efe55[_0x2a290a(_0x24ee6e._0x59a329)];if(!_0x4ccc78||_0x4ccc78[_0x2a290a(0x1ee)]===void 0x0&&_0x4ccc78[_0x2a290a(_0x24ee6e._0x40b31b)]===void 0x0)return _0x2efe55['bundleId'];const _0x5547b2=_0x4ccc78['sha']?_0x4ccc78[_0x2a290a(_0x24ee6e._0x43ff10)][_0x2a290a(_0x24ee6e._0x5143d7)](0x0,0x7):'?',_0xe56b48=_0x4ccc78[_0x2a290a(_0x24ee6e._0x54f6a9)]??'?';return _0xe56b48+'@'+_0x5547b2+(_0x4ccc78[_0x2a290a(_0x24ee6e._0x36ed60)]?_0x2a290a(0x1e7):'');}__name(describeBundle,_0x43a59c(0x28b));var UPLOAD_ERROR_CODES=[_0x43a59c(0x21e),_0x43a59c(0x2bd),_0x43a59c(0x25b),_0x43a59c(0x226),_0x43a59c(0x29c),'scope-mismatch',_0x43a59c(0x282)];function parseBundleUploadResponse(_0x22eb7e){const _0x284537={_0x212b9f:0x1a6,_0x5633cf:0x2ab,_0xe2cb35:0x2dc,_0x5adb0b:0x2ab},_0x521fd5=_0x43a59c;if(!isRecord(_0x22eb7e))return null;if(isRecord(_0x22eb7e['error'])){const {code:_0x1e6635,message:_0x23b6c9}=_0x22eb7e[_0x521fd5(_0x284537._0x212b9f)];if(!UPLOAD_ERROR_CODES[_0x521fd5(0x241)](_0x1e6635))return null;if(typeof _0x23b6c9!==_0x521fd5(_0x284537._0x5633cf))return null;return{'error':{'code':_0x1e6635,'message':_0x23b6c9}};}const {status:_0x1e6f64,bundleId:_0x1f138f}=_0x22eb7e;if(_0x1e6f64!=='created'&&_0x1e6f64!==_0x521fd5(_0x284537._0xe2cb35))return null;if(typeof _0x1f138f!==_0x521fd5(_0x284537._0x5adb0b)||_0x1f138f[_0x521fd5(0x2b6)]===0x0)return null;const _0xa6bb99=parseVariableGaps(_0x22eb7e['variableGaps']);return _0xa6bb99===null?{'status':_0x1e6f64,'bundleId':_0x1f138f}:{'status':_0x1e6f64,'bundleId':_0x1f138f,'variableGaps':_0xa6bb99};}__name(parseBundleUploadResponse,_0x43a59c(0x1c7));function parseVariableGaps(_0x3bcacc){const _0x2f0739={_0x186e6e:0x2ca,_0xc04c4c:0x2ab,_0x12e192:0x190,_0x36fda9:0x2b6},_0x12c8be=_0x43a59c;if(!Array[_0x12c8be(_0x2f0739._0x186e6e)](_0x3bcacc))return null;const _0x3a1f76=[];for(const _0x2ab3b6 of _0x3bcacc){if(!isRecord(_0x2ab3b6))continue;const {project:_0x441dfd,environment:_0x43fc93,missing:_0x2c5979}=_0x2ab3b6;if(typeof _0x441dfd!==_0x12c8be(_0x2f0739._0xc04c4c)||typeof _0x43fc93!==_0x12c8be(0x2ab))continue;if(!Array[_0x12c8be(0x2ca)](_0x2c5979))continue;const _0x554a42=_0x2c5979['filter'](_0x1f16ba=>typeof _0x1f16ba===_0x12c8be(0x2ab));if(_0x554a42[_0x12c8be(0x2b6)]>0x0)_0x3a1f76[_0x12c8be(_0x2f0739._0x12e192)]({'project':_0x441dfd,'environment':_0x43fc93,'missing':_0x554a42});}return _0x3a1f76[_0x12c8be(_0x2f0739._0x36fda9)]>0x0?_0x3a1f76:null;}__name(parseVariableGaps,'parseVariableGaps');var BROWSER_ENV='UNOTEST_BROWSER',BROWSER_CHANNEL_ENV=_0x43a59c(0x1ec),BUNDLED_BROWSER_CHANNEL=_0x43a59c(0x2cd),BOX_VARIABLE_NAMES_ENV=_0x43a59c(0x198),BOX_SECRET_NAMES_ENV=_0x43a59c(0x257);function encodeNameList(_0x4d56de){const _0x4e74a2={_0x1ebda1:0x270},_0x4a9a8e=_0x43a59c;return _0x4d56de[_0x4a9a8e(_0x4e74a2._0x1ebda1)](',');}__name(encodeNameList,_0x43a59c(0x2ba));function decodeNameList(_0x49384c){const _0x2018d2={_0x45c88c:0x1e4},_0x490af5=_0x43a59c;if(_0x49384c===void 0x0)return[];return _0x49384c[_0x490af5(0x23d)](',')[_0x490af5(0x1fa)](_0x585afd=>_0x585afd[_0x490af5(0x19a)]())[_0x490af5(_0x2018d2._0x45c88c)](_0x420802=>_0x420802!=='');}__name(decodeNameList,_0x43a59c(0x2a1));var ENV_KEY_RE=/^[A-Za-z_][A-Za-z0-9_]*$/,UNHOLDABLE_NAME=_0x43a59c(0x1a4);function isEnvVarName(_0x442a64){const _0x3a5cb6={_0x577357:0x1b8},_0x459d2f=_0x43a59c;return ENV_KEY_RE[_0x459d2f(_0x3a5cb6._0x577357)](_0x442a64)&&_0x442a64!==UNHOLDABLE_NAME;}__name(isEnvVarName,_0x43a59c(0x230));function*assignmentEntries(_0x4d1e93){const _0x593b65={_0x478fb4:0x23d,_0x2012a0:0x19a,_0x4929fd:0x1ce,_0x10253a:0x19a},_0xe1c265=_0x43a59c;for(const _0x5df36c of _0x4d1e93[_0xe1c265(_0x593b65._0x478fb4)](/\r?\n/)){const _0x22ad43=_0x5df36c[_0xe1c265(_0x593b65._0x2012a0)]();if(_0x22ad43===''||_0x22ad43[_0xe1c265(0x214)]('#'))continue;const _0x25ced8=_0x22ad43[_0xe1c265(_0x593b65._0x4929fd)]('=');if(_0x25ced8<=0x0)continue;const _0x42f10f=_0x22ad43[_0xe1c265(0x23a)](0x0,_0x25ced8)[_0xe1c265(_0x593b65._0x10253a)]();if(!isEnvVarName(_0x42f10f))continue;yield[_0x42f10f,_0x22ad43[_0xe1c265(0x23a)](_0x25ced8+0x1)[_0xe1c265(0x19a)]()];}}__name(assignmentEntries,_0x43a59c(0x233));function parseEnvContent(_0x5b8346){const _0xca1fa2={_0x4ff71d:0x2b6,_0x35253e:0x23a},_0x3144a8=_0x43a59c,_0x567b51={};for(const [_0x2c8665,_0x4fa564]of assignmentEntries(_0x5b8346)){let _0x4abcb9=_0x4fa564;if(_0x4abcb9[_0x3144a8(_0xca1fa2._0x4ff71d)]>=0x2){const _0x48e2fe=_0x4abcb9[0x0],_0x39ea35=_0x4abcb9[_0x4abcb9[_0x3144a8(_0xca1fa2._0x4ff71d)]-0x1];(_0x48e2fe==='\x22'||_0x48e2fe==='\x27')&&_0x48e2fe===_0x39ea35&&(_0x4abcb9=_0x4abcb9[_0x3144a8(_0xca1fa2._0x35253e)](0x1,-0x1));}_0x567b51[_0x2c8665]=_0x4abcb9;}return _0x567b51;}__name(parseEnvContent,'parseEnvContent');function serializeEnvValue(_0x25b9e0){const _0x299771={_0x3d4558:0x253},_0x3df2a3=_0x43a59c;if(_0x25b9e0==='')return'';if(/[\s#"'=\\]|^[`]/[_0x3df2a3(0x1b8)](_0x25b9e0)||/[\n\r]/[_0x3df2a3(0x1b8)](_0x25b9e0)){const _0x159942=_0x25b9e0[_0x3df2a3(_0x299771._0x3d4558)](/\\/g,'\x5c\x5c')[_0x3df2a3(_0x299771._0x3d4558)](/"/g,'\x5c\x22')[_0x3df2a3(0x253)](/\n/g,'\x5cn')[_0x3df2a3(0x253)](/\r/g,'\x5cr');return'\x22'+_0x159942+'\x22';}return _0x25b9e0;}__name(serializeEnvValue,_0x43a59c(0x27b));function envKeys(_0x58ba61){const _0x37b313={_0xb9f3c3:0x1ed},_0x2fbda8=_0x43a59c,_0x528d2d=new Set();for(const [_0x35c5b2]of assignmentEntries(_0x58ba61))_0x528d2d[_0x2fbda8(_0x37b313._0xb9f3c3)](_0x35c5b2);return _0x528d2d;}__name(envKeys,_0x43a59c(0x2f1));function declaredEnvKeys(_0x450fa9){const _0x5d661a={_0x3c8016:0x23d,_0x16c8f2:0x194},_0x40bf6d=_0x43a59c,_0x19495a=new Set();for(const _0x5e2dbd of _0x450fa9[_0x40bf6d(_0x5d661a._0x3c8016)](/\r?\n/)){const _0x3f66d3=/^\s*(?:#\s*)?([A-Za-z_][A-Za-z0-9_]*)\s*=/[_0x40bf6d(_0x5d661a._0x16c8f2)](_0x5e2dbd);if(_0x3f66d3)_0x19495a[_0x40bf6d(0x1ed)](_0x3f66d3[0x1]);}return _0x19495a;}__name(declaredEnvKeys,'declaredEnvKeys');function isSectionDivider(_0x4238e2){const _0x1c0082={_0x4e90fc:0x19a},_0x58281f=_0x43a59c,_0x5deec4=_0x4238e2[_0x58281f(_0x1c0082._0x4e90fc)]();return _0x5deec4['startsWith']('#')&&/---/['test'](_0x5deec4);}__name(isSectionDivider,'isSectionDivider');function isAssignmentLine(_0x52290d){const _0x49e2cb={_0x58be05:0x214,_0x365a4f:0x1ce},_0x118170=_0x43a59c,_0x57a575=_0x52290d[_0x118170(0x19a)]();if(_0x57a575===''||_0x57a575[_0x118170(_0x49e2cb._0x58be05)]('#'))return![];const _0x384c19=_0x57a575[_0x118170(_0x49e2cb._0x365a4f)]('=');return _0x384c19>0x0&&ENV_KEY_RE['test'](_0x57a575[_0x118170(0x23a)](0x0,_0x384c19)['trim']());}__name(isAssignmentLine,_0x43a59c(0x1d7));function isAssignmentOf(_0x1cf859,_0x516aa5){const _0x84e0a0={_0x532682:0x23a},_0x464c12=_0x43a59c,_0x5b9ccd=_0x1cf859['trim']();if(_0x5b9ccd===''||_0x5b9ccd['startsWith']('#'))return![];const _0x4aa18a=_0x5b9ccd['indexOf']('=');if(_0x4aa18a<=0x0)return![];return _0x5b9ccd[_0x464c12(_0x84e0a0._0x532682)](0x0,_0x4aa18a)[_0x464c12(0x19a)]()===_0x516aa5;}__name(isAssignmentOf,'isAssignmentOf');function splitLines(_0x253db0){const _0xe841ac=_0x43a59c,_0x2a90f6=_0x253db0['endsWith']('\x0a'),_0x2d619b=_0x2a90f6?_0x253db0['slice'](0x0,-0x1):_0x253db0;return{'lines':_0x2d619b===''?[]:_0x2d619b[_0xe841ac(0x23d)]('\x0a'),'trailingNewline':_0x2a90f6};}__name(splitLines,'splitLines');function joinLines(_0x3f8ab3,_0x27f424){const _0x199d22=_0x3f8ab3['join']('\x0a');return _0x27f424||_0x199d22===''?_0x199d22+'\x0a':_0x199d22;}__name(joinLines,_0x43a59c(0x18a));function insertEnvVar(_0x548252,_0x45497f,_0x42f561,_0x5e59f2){const _0x1403aa={_0x1eac81:0x2ce,_0x340cc0:0x2b6,_0x48abb4:0x2b6,_0x2922af:0x19a,_0x43b84a:0x1d1,_0x1d31a3:0x2b6,_0x44b60e:0x190,_0x453235:0x29e,_0x5dfd06:0x190},_0x484a61=_0x43a59c,_0x48ca81=_0x45497f+'='+serializeEnvValue(_0x42f561),{lines:_0x53f46e,trailingNewline:_0x505c76}=splitLines(_0x548252);if(_0x5e59f2){const _0x2ca055=new RegExp('\x5cb'+_0x5e59f2[_0x484a61(0x1fd)]()+'\x5cb'),_0x52b2ce=_0x53f46e[_0x484a61(_0x1403aa._0x1eac81)](_0x2daf72=>isSectionDivider(_0x2daf72)&&_0x2ca055[_0x484a61(0x1b8)](_0x2daf72[_0x484a61(0x1fd)]()));if(_0x52b2ce!==-0x1){let _0x142e7e=_0x53f46e[_0x484a61(_0x1403aa._0x340cc0)];for(let _0x20d351=_0x52b2ce+0x1;_0x20d351<_0x53f46e[_0x484a61(_0x1403aa._0x48abb4)];_0x20d351++){if(isSectionDivider(_0x53f46e[_0x20d351])){_0x142e7e=_0x20d351;break;}}let _0x4edb30=-0x1,_0xe40f3a=-0x1;for(let _0xa807b4=_0x52b2ce+0x1;_0xa807b4<_0x142e7e;_0xa807b4++){if(_0x53f46e[_0xa807b4][_0x484a61(_0x1403aa._0x2922af)]()!=='')_0xe40f3a=_0xa807b4;if(isAssignmentLine(_0x53f46e[_0xa807b4]))_0x4edb30=_0xa807b4;}const _0x25ccba=_0x4edb30>=0x0?_0x4edb30:_0xe40f3a,_0x593acb=_0x25ccba>=0x0?_0x25ccba+0x1:_0x52b2ce+0x1;return _0x53f46e[_0x484a61(_0x1403aa._0x43b84a)](_0x593acb,0x0,_0x48ca81),joinLines(_0x53f46e,_0x505c76||_0x53f46e[_0x484a61(_0x1403aa._0x1d31a3)]>0x0);}if(_0x53f46e[_0x484a61(0x2b6)]>0x0)_0x53f46e[_0x484a61(_0x1403aa._0x44b60e)]('');return _0x53f46e[_0x484a61(0x190)](_0x484a61(_0x1403aa._0x453235)+_0x5e59f2+'\x20---',_0x48ca81),joinLines(_0x53f46e,!![]);}return _0x53f46e[_0x484a61(_0x1403aa._0x5dfd06)](_0x48ca81),joinLines(_0x53f46e,!![]);}__name(insertEnvVar,_0x43a59c(0x2dd));function removeEnvVar(_0x429925,_0x2e3fe5){const _0x1df026={_0x4cd5bc:0x1e4,_0x739f05:0x2b6},_0x206ac7=_0x43a59c,{lines:_0x48511a,trailingNewline:_0xa7299f}=splitLines(_0x429925),_0x28e917=_0x48511a[_0x206ac7(_0x1df026._0x4cd5bc)](_0x1b82d7=>!isAssignmentOf(_0x1b82d7,_0x2e3fe5)),_0x1557e2=_0x28e917[_0x206ac7(0x2b6)]!==_0x48511a[_0x206ac7(_0x1df026._0x739f05)];return{'content':joinLines(_0x28e917,_0xa7299f),'removed':_0x1557e2};}__name(removeEnvVar,_0x43a59c(0x21a));var TARGET_ENV_VAR=_0x43a59c(0x250),RUNNER_SETTING_PREFIX=_0x43a59c(0x1d5);function isRunnerSetting(_0x5ef66f){const _0x50654e={_0x21a3f8:0x214},_0x1e2b32=_0x43a59c;return _0x5ef66f[_0x1e2b32(_0x50654e._0x21a3f8)](RUNNER_SETTING_PREFIX);}__name(isRunnerSetting,_0x43a59c(0x289));var BOX_VALUES_PATH=_0x43a59c(0x2da),BOX_ENV_VALUES_SEGMENT=_0x43a59c(0x2a7),BOX_REVEAL_SEGMENT='reveal',KIND_SEGMENTS={'variable':_0x43a59c(0x2a5),'secret':'secrets'};function boxValueKindOfSegment(_0x25831b){const _0x1e8ea4=_0x43a59c;for(const [_0x9d4eac,_0x1aac06]of Object[_0x1e8ea4(0x2e7)](KIND_SEGMENTS)){if(_0x1aac06===_0x25831b)return _0x9d4eac;}return null;}__name(boxValueKindOfSegment,_0x43a59c(0x220));function boxValuesPath(_0xf7ded){return BOX_VALUES_PATH+'/'+encodeURIComponent(_0xf7ded);}__name(boxValuesPath,'boxValuesPath');function boxValuePath(_0x447eb7,_0x17b44a,_0x220fd5){return boxValuesPath(_0x447eb7)+'/'+valueSuffix(_0x17b44a,_0x220fd5);}__name(boxValuePath,_0x43a59c(0x280));function boxEnvValuesPath(_0x203db9,_0xd6f680){const _0x55633c={_0x4d6374:0x258},_0x156c53=_0x43a59c;return _0x156c53(_0x55633c._0x4d6374)+encodeURIComponent(_0x203db9)+'/'+encodeURIComponent(_0xd6f680)+'/'+BOX_ENV_VALUES_SEGMENT;}__name(boxEnvValuesPath,_0x43a59c(0x2b5));function boxEnvValuePath(_0x1d9acc,_0x3e2b66,_0x5b59e4,_0x67162c){return boxEnvValuesPath(_0x1d9acc,_0x3e2b66)+'/'+valueSuffix(_0x5b59e4,_0x67162c);}__name(boxEnvValuePath,_0x43a59c(0x2b1));function boxEnvSecretRevealPath(_0xed0c9b,_0x2ab8f1,_0x1549cc){const _0x168db6=_0x43a59c;return boxEnvValuePath(_0xed0c9b,_0x2ab8f1,_0x168db6(0x2c2),_0x1549cc)+'/'+BOX_REVEAL_SEGMENT;}__name(boxEnvSecretRevealPath,_0x43a59c(0x2e9));function boxEnvSecretsRevealPath(_0x214281,_0x53d42b){return boxEnvValuesPath(_0x214281,_0x53d42b)+'/'+BOX_REVEAL_SEGMENT;}__name(boxEnvSecretsRevealPath,_0x43a59c(0x276));function valueSuffix(_0x36e523,_0x49d119){const _0x38fdb6={_0xc65c10:0x208},_0x1adcd1=_0x43a59c;if(_0x36e523==='target')return _0x1adcd1(_0x38fdb6._0xc65c10);if(_0x49d119===void 0x0)throw new Error('a\x20'+_0x36e523+_0x1adcd1(0x2a0));return KIND_SEGMENTS[_0x36e523]+'/'+encodeURIComponent(_0x49d119);}__name(valueSuffix,_0x43a59c(0x2d5));function parseBoxValuesReplaceRequest(_0x11472b){return parseReplaceRequest(_0x11472b,parseStringRecord);}__name(parseBoxValuesReplaceRequest,_0x43a59c(0x23c));function parseBoxEnvValuesReplaceRequest(_0x1ef3a4){return parseReplaceRequest(_0x1ef3a4,parseKeepRecord);}__name(parseBoxEnvValuesReplaceRequest,'parseBoxEnvValuesReplaceRequest');function parseBoxValueSetRequest(_0x3bff8b){return parseValueEnvelope(_0x3bff8b);}__name(parseBoxValueSetRequest,_0x43a59c(0x2ad));function reservedBoxValueNames(_0x27036f){const _0x254b5e={_0x2b4dd9:0x2a5},_0x4f2f0f=_0x43a59c;return[...Object[_0x4f2f0f(0x20d)](_0x27036f[_0x4f2f0f(_0x254b5e._0x2b4dd9)]),...Object[_0x4f2f0f(0x20d)](_0x27036f['secrets'])][_0x4f2f0f(0x1e4)](_0x5be201=>_0x5be201===TARGET_ENV_VAR);}__name(reservedBoxValueNames,'reservedBoxValueNames');function parseReplaceRequest(_0x2256a6,_0x3fa4e0){const _0x196398=_0x43a59c;if(!isRecord(_0x2256a6))return null;const {target:_0x18da17,variables:_0x1b2771,secrets:_0x31355f}=_0x2256a6;if(_0x18da17!==void 0x0&&typeof _0x18da17!==_0x196398(0x2ab))return null;const _0x52f9ae=parseStringRecord(_0x1b2771),_0x5bfc41=_0x3fa4e0(_0x31355f);if(_0x52f9ae===null||_0x5bfc41===null)return null;return{...typeof _0x18da17===_0x196398(0x2ab)?{'target':_0x18da17}:{},'variables':_0x52f9ae,'secrets':_0x5bfc41};}__name(parseReplaceRequest,_0x43a59c(0x205));function parseValueEnvelope(_0x5c6704){const _0x3bf6a6={_0x124a47:0x273,_0x42de85:0x2ab},_0x52d288=_0x43a59c;if(!isRecord(_0x5c6704))return null;return typeof _0x5c6704[_0x52d288(_0x3bf6a6._0x124a47)]===_0x52d288(_0x3bf6a6._0x42de85)?{'value':_0x5c6704[_0x52d288(0x273)]}:null;}__name(parseValueEnvelope,_0x43a59c(0x192));function parseStringRecord(_0x305d9e){return parseNamedRecord(_0x305d9e,isString);}__name(parseStringRecord,_0x43a59c(0x298));function parseKeepRecord(_0x206326){return parseNamedRecord(_0x206326,_0x5edf42=>_0x5edf42===null||isString(_0x5edf42));}__name(parseKeepRecord,_0x43a59c(0x1db));function parseNamedRecord(_0x2efb6b,_0x118b3c){const _0x42b80b={_0x3d760d:0x2e7},_0x384473=_0x43a59c;if(!isRecord(_0x2efb6b))return null;const _0x130c0c={};for(const [_0x57de27,_0x4d65f7]of Object[_0x384473(_0x42b80b._0x3d760d)](_0x2efb6b)){if(!isEnvVarName(_0x57de27)||!_0x118b3c(_0x4d65f7))return null;_0x130c0c[_0x57de27]=_0x4d65f7;}return _0x130c0c;}__name(parseNamedRecord,_0x43a59c(0x19e));function isString(_0x4b6ff7){const _0x51a9c4={_0x4995d2:0x2ab},_0x1002c7=_0x43a59c;return typeof _0x4b6ff7===_0x1002c7(_0x51a9c4._0x4995d2);}__name(isString,'isString');var VALUES_ERROR_CODES=['unauthorized','forbidden',_0x43a59c(0x2eb),_0x43a59c(0x2e8),'unknown-secret',_0x43a59c(0x1c3),_0x43a59c(0x25b),_0x43a59c(0x282)],VALUE_KINDS=['target',_0x43a59c(0x283),'secret'];function parseBoxValuesResponse(_0x1d9ab3){const _0x538f67={_0x31cf12:0x1a6,_0x2c13b0:0x1a6,_0x300bd4:0x2e2,_0x20eb2a:0x2a5,_0x4d2818:0x191,_0x259ec5:0x22d,_0x4a8bac:0x20b},_0x13a5e4=_0x43a59c;if(!isRecord(_0x1d9ab3))return null;if(isRecord(_0x1d9ab3[_0x13a5e4(_0x538f67._0x31cf12)])){const {code:_0x893ec4,message:_0x308b26}=_0x1d9ab3[_0x13a5e4(_0x538f67._0x2c13b0)];if(!VALUES_ERROR_CODES['includes'](_0x893ec4))return null;if(typeof _0x308b26!=='string')return null;return{'error':{'code':_0x893ec4,'message':_0x308b26}};}const {status:_0xdc68b1,environment:_0x2655bc}=_0x1d9ab3;if(typeof _0x2655bc!=='string')return null;if(_0xdc68b1===_0x13a5e4(0x2d8)){const {target:_0x5e00c9,variables:_0x2900cd,secrets:_0x39d145,removed:_0xa86851}=_0x1d9ab3;if(typeof _0x5e00c9!==_0x13a5e4(_0x538f67._0x300bd4))return null;const _0x4e85a9=parseNameList(_0x2900cd),_0x48b6d0=parseNameList(_0x39d145);if(_0x4e85a9===null||_0x48b6d0===null||!isRecord(_0xa86851))return null;const _0x389808=parseNameList(_0xa86851[_0x13a5e4(_0x538f67._0x20eb2a)]),_0x1e2ba8=parseNameList(_0xa86851[_0x13a5e4(_0x538f67._0x4d2818)]);if(typeof _0xa86851[_0x13a5e4(0x208)]!==_0x13a5e4(_0x538f67._0x300bd4)||_0x389808===null||_0x1e2ba8===null)return null;return{'status':_0xdc68b1,'environment':_0x2655bc,'target':_0x5e00c9,'variables':_0x4e85a9,'secrets':_0x48b6d0,'removed':{'target':_0xa86851['target'],'variables':_0x389808,'secrets':_0x1e2ba8}};}if(_0xdc68b1===_0x13a5e4(_0x538f67._0x259ec5)||_0xdc68b1===_0x13a5e4(_0x538f67._0x4a8bac)){const {kind:_0x51fed7,name:_0x2d2c1e}=_0x1d9ab3;if(!VALUE_KINDS['includes'](_0x51fed7))return null;if(_0x2d2c1e!==void 0x0&&typeof _0x2d2c1e!==_0x13a5e4(0x2ab))return null;return{'status':_0xdc68b1,'environment':_0x2655bc,'kind':_0x51fed7,...typeof _0x2d2c1e===_0x13a5e4(0x2ab)?{'name':_0x2d2c1e}:{}};}return null;}__name(parseBoxValuesResponse,_0x43a59c(0x193));function parseNameList(_0x30c048){const _0x222455={_0x132092:0x2ca,_0x818084:0x1a2},_0x4de589=_0x43a59c;if(!Array[_0x4de589(_0x222455._0x132092)](_0x30c048))return null;return _0x30c048[_0x4de589(_0x222455._0x818084)](_0x231b0d=>typeof _0x231b0d===_0x4de589(0x2ab))?_0x30c048:null;}__name(parseNameList,'parseNameList');function parseBoxSecretRevealResponse(_0x1ff188){return parseValueEnvelope(_0x1ff188);}__name(parseBoxSecretRevealResponse,_0x43a59c(0x216));function parseBoxSecretsRevealResponse(_0x141b06){return parseStringRecord(_0x141b06);}__name(parseBoxSecretsRevealResponse,_0x43a59c(0x246));function _0x23ab(_0x13406a,_0xad0e4d){_0x13406a=_0x13406a-0x187;const _0x2e8782=_0x2e87();let _0x23abb1=_0x2e8782[_0x13406a];if(_0x23ab['twtRho']===undefined){var _0x2dee3d=function(_0xff00a0){const _0x2100bf='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2c6b49='',_0xf0c11a='';for(let _0x1d34d1=0x0,_0x5099c8,_0x2050a6,_0x4fd7a4=0x0;_0x2050a6=_0xff00a0['charAt'](_0x4fd7a4++);~_0x2050a6&&(_0x5099c8=_0x1d34d1%0x4?_0x5099c8*0x40+_0x2050a6:_0x2050a6,_0x1d34d1++%0x4)?_0x2c6b49+=String['fromCharCode'](0xff&_0x5099c8>>(-0x2*_0x1d34d1&0x6)):0x0){_0x2050a6=_0x2100bf['indexOf'](_0x2050a6);}for(let _0xd042e4=0x0,_0x4c11bb=_0x2c6b49['length'];_0xd042e4<_0x4c11bb;_0xd042e4++){_0xf0c11a+='%'+('00'+_0x2c6b49['charCodeAt'](_0xd042e4)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xf0c11a);};_0x23ab['aLPhKI']=_0x2dee3d,_0x23ab['RtxRnV']={},_0x23ab['twtRho']=!![];}const _0x26e68c=_0x2e8782[0x0],_0x2c8d17=_0x13406a+_0x26e68c,_0x5aa8b3=_0x23ab['RtxRnV'][_0x2c8d17];return!_0x5aa8b3?(_0x23abb1=_0x23ab['aLPhKI'](_0x23abb1),_0x23ab['RtxRnV'][_0x2c8d17]=_0x23abb1):_0x23abb1=_0x5aa8b3,_0x23abb1;}var WORKSPACE_SCHEMA_VERSION=0x1,WORKSPACE_FILE='.workspace.json';function stringList(_0xe9cff6){const _0x23407a={_0x32dda1:0x2ca,_0x19ab3c:0x1c4},_0x1626fa=_0x43a59c;if(!Array[_0x1626fa(_0x23407a._0x32dda1)](_0xe9cff6))return null;if(_0xe9cff6[_0x1626fa(_0x23407a._0x19ab3c)](_0x4884c4=>typeof _0x4884c4!==_0x1626fa(0x2ab)))return null;return _0xe9cff6;}__name(stringList,_0x43a59c(0x254));function parseBundle(_0x279814){const _0x5a071b={_0x2dc77d:0x2b6,_0x194b3b:0x2e2,_0x5622ae:0x2ae,_0x43a1d2:0x1b5,_0x54e28c:0x2ab},_0x2f41a4=_0x43a59c;if(!isRecord(_0x279814))return null;const {bundleId:_0x2f1df8,label:_0x447ad7,branch:_0x12b7ed,sha:_0xf8353c,dirty:_0x4d3211,author:_0x3c625e,createdAt:_0x4cf757,webVersion:_0x289e75}=_0x279814;if(typeof _0x2f1df8!==_0x2f41a4(0x2ab)||_0x2f1df8[_0x2f41a4(_0x5a071b._0x2dc77d)]===0x0)return null;if(typeof _0x447ad7!==_0x2f41a4(0x2ab)||typeof _0x289e75!=='string')return null;if(typeof _0x4d3211!==_0x2f41a4(_0x5a071b._0x194b3b))return null;if(typeof _0x4cf757!==_0x2f41a4(_0x5a071b._0x5622ae)||!Number[_0x2f41a4(_0x5a071b._0x43a1d2)](_0x4cf757))return null;for(const _0xb9fae7 of[_0x12b7ed,_0xf8353c,_0x3c625e]){if(_0xb9fae7!==void 0x0&&typeof _0xb9fae7!==_0x2f41a4(_0x5a071b._0x54e28c))return null;}return{'bundleId':_0x2f1df8,'label':_0x447ad7,'dirty':_0x4d3211,'createdAt':_0x4cf757,'webVersion':_0x289e75,...typeof _0x12b7ed===_0x2f41a4(0x2ab)?{'branch':_0x12b7ed}:{},...typeof _0xf8353c===_0x2f41a4(0x2ab)?{'sha':_0xf8353c}:{},...typeof _0x3c625e==='string'?{'author':_0x3c625e}:{}};}__name(parseBundle,_0x43a59c(0x2bc));function parseWorkspaceFile(_0x542f03){const _0x1e5f07={_0x48bf78:0x1f5,_0x591019:0x2ab,_0x7f77cf:0x2ca,_0x14fcb8:0x190},_0x3b4895=_0x43a59c;if(!isRecord(_0x542f03))return null;if(_0x542f03[_0x3b4895(_0x1e5f07._0x48bf78)]!==WORKSPACE_SCHEMA_VERSION)return null;const {workspace:_0x39c365,environment:_0x529ee7,allowSwitch:_0x4daf51,currentBundleId:_0x13d475,switchedBy:_0x4afdfd,switchedAt:_0x5464ad,bundles:_0x3e0ba9,variables:_0x520eeb,secrets:_0x38d901,switchPath:_0x4a7c80}=_0x542f03;if(typeof _0x39c365!==_0x3b4895(0x2ab)||typeof _0x529ee7!==_0x3b4895(_0x1e5f07._0x591019))return null;if(typeof _0x4daf51!=='boolean')return null;if(!Array[_0x3b4895(_0x1e5f07._0x7f77cf)](_0x3e0ba9))return null;const _0x302c11=[];for(const _0x325183 of _0x3e0ba9){const _0x1be5e3=parseBundle(_0x325183);if(!_0x1be5e3)return null;_0x302c11[_0x3b4895(_0x1e5f07._0x14fcb8)](_0x1be5e3);}const _0x587047=stringList(_0x520eeb),_0x4281eb=stringList(_0x38d901);if(!_0x587047||!_0x4281eb)return null;for(const _0x505071 of[_0x13d475,_0x4afdfd,_0x4a7c80]){if(_0x505071!==void 0x0&&typeof _0x505071!=='string')return null;}if(_0x5464ad!==void 0x0&&typeof _0x5464ad!=='number')return null;return{'schemaVersion':WORKSPACE_SCHEMA_VERSION,'workspace':_0x39c365,'environment':_0x529ee7,'allowSwitch':_0x4daf51,'bundles':_0x302c11,'variables':_0x587047,'secrets':_0x4281eb,...typeof _0x13d475==='string'?{'currentBundleId':_0x13d475}:{},...typeof _0x4afdfd===_0x3b4895(_0x1e5f07._0x591019)?{'switchedBy':_0x4afdfd}:{},...typeof _0x5464ad==='number'?{'switchedAt':_0x5464ad}:{},...typeof _0x4a7c80===_0x3b4895(0x2ab)?{'switchPath':_0x4a7c80}:{}};}__name(parseWorkspaceFile,'parseWorkspaceFile');function scheduleTarget(_0x263c78){const _0x19b1c0={_0xed88d6:0x29f,_0xb794b3:0x1be},_0x4bec5e=_0x43a59c;return _0x263c78[_0x4bec5e(0x29f)]!==void 0x0?{'kind':_0x4bec5e(_0x19b1c0._0xed88d6),'name':_0x263c78[_0x4bec5e(0x29f)]}:{'kind':'scenario','name':_0x263c78[_0x4bec5e(_0x19b1c0._0xb794b3)]};}__name(scheduleTarget,_0x43a59c(0x2e3));function parseScheduleEntry(_0x24b0bd){const _0x14c644={_0x3641cf:0x2ab,_0x3253cc:0x2ab,_0x206c5f:0x2ae,_0x405c6d:0x29a,_0x5bbfe1:0x1a8,_0x4644f5:0x234},_0x25e349=_0x43a59c;if(!isRecord(_0x24b0bd))return null;const {collection:_0x5e9709,scenario:_0x192225,cron:_0x2c2fec,env:_0x589d59,prepare:_0x1364d8,workers:_0x3e0d00,source:_0x25f32e}=_0x24b0bd,_0x1dc677=typeof _0x5e9709===_0x25e349(_0x14c644._0x3641cf)&&_0x5e9709[_0x25e349(0x2b6)]>0x0?_0x192225===void 0x0?{'collection':_0x5e9709}:null:typeof _0x192225===_0x25e349(_0x14c644._0x3641cf)&&_0x192225[_0x25e349(0x2b6)]>0x0&&_0x5e9709===void 0x0?{'scenario':_0x192225}:null;if(_0x1dc677===null)return null;if(typeof _0x2c2fec!==_0x25e349(0x2ab)||_0x2c2fec['trim']()[_0x25e349(0x2b6)]===0x0)return null;if(_0x589d59!==void 0x0&&typeof _0x589d59!==_0x25e349(_0x14c644._0x3253cc))return null;if(_0x1364d8!==void 0x0&&typeof _0x1364d8!==_0x25e349(0x2ab))return null;const _0x7b645b=_0x25e349(0x29f)in _0x1dc677&&typeof _0x3e0d00===_0x25e349(_0x14c644._0x206c5f)&&Number[_0x25e349(_0x14c644._0x405c6d)](_0x3e0d00)&&_0x3e0d00>=0x1?_0x3e0d00:void 0x0,_0x4c2676=_0x25f32e===_0x25e349(_0x14c644._0x5bbfe1)||_0x25f32e===_0x25e349(_0x14c644._0x4644f5)?_0x25f32e:void 0x0;return{..._0x1dc677,'cron':_0x2c2fec,..._0x589d59!==void 0x0?{'env':_0x589d59}:{},..._0x1364d8!==void 0x0?{'prepare':_0x1364d8}:{},..._0x7b645b!==void 0x0?{'workers':_0x7b645b}:{},..._0x4c2676!==void 0x0?{'source':_0x4c2676}:{}};}__name(parseScheduleEntry,_0x43a59c(0x1f6));function parseSchedulesDoc(_0x51fb2d){const _0x29af02={_0x326b10:0x2ca,_0x58f955:0x266,_0x2547ff:0x1ad,_0x58882f:0x1e1,_0x567509:0x1dc,_0x1d42ba:0x190},_0x4148ba=_0x43a59c;if(_0x51fb2d===null||_0x51fb2d===void 0x0)return{'entries':[]};if(!isRecord(_0x51fb2d))return{'error':_0x4148ba(0x24a)};const _0x531e40=_0x51fb2d['schedules']??[];if(!Array[_0x4148ba(_0x29af02._0x326b10)](_0x531e40))return{'error':_0x4148ba(0x2a8)};const _0x1f1f62=[],_0x3bfea3=new Set();for(const [_0xebad6a,_0xfe6a20]of _0x531e40[_0x4148ba(0x2e7)]()){const _0x3e0329=parseScheduleEntry(_0xfe6a20);if(!_0x3e0329)return{'error':_0x4148ba(0x1ad)+_0xebad6a+_0x4148ba(_0x29af02._0x58f955)};const _0x57e5ff=scheduleTarget(_0x3e0329),_0x52dfd0=_0x57e5ff[_0x4148ba(0x1c0)]+':'+_0x57e5ff[_0x4148ba(0x24b)];if(_0x3bfea3[_0x4148ba(0x1c5)](_0x52dfd0))return{'error':_0x4148ba(_0x29af02._0x2547ff)+_0xebad6a+_0x4148ba(_0x29af02._0x58882f)+_0x57e5ff['kind']+'\x20\x22'+_0x57e5ff[_0x4148ba(0x24b)]+_0x4148ba(_0x29af02._0x567509)};_0x3bfea3[_0x4148ba(0x1ed)](_0x52dfd0),_0x1f1f62[_0x4148ba(_0x29af02._0x1d42ba)](_0x3e0329);}return{'entries':_0x1f1f62};}__name(parseSchedulesDoc,_0x43a59c(0x28a));function mergeSchedules(_0x12b0b3,_0x27daed){const _0x5e7108={_0x42756d:0x1fa},_0x170bed=_0x43a59c,_0x456ce7=new Set(_0x27daed[_0x170bed(0x1fa)](_0x4357dc=>{const _0x3fd59e=scheduleTarget(_0x4357dc);return _0x3fd59e['kind']+':'+_0x3fd59e['name'];})),_0x277c61=_0x12b0b3[_0x170bed(0x1e4)](_0x52db91=>{const _0x417a37=scheduleTarget(_0x52db91);return!_0x456ce7['has'](_0x417a37['kind']+':'+_0x417a37['name']);});return[..._0x277c61[_0x170bed(_0x5e7108._0x42756d)](_0x132ad7=>({..._0x132ad7,'source':_0x170bed(0x1a8)})),..._0x27daed[_0x170bed(_0x5e7108._0x42756d)](_0x4a6f99=>({..._0x4a6f99,'source':'file'}))];}__name(mergeSchedules,'mergeSchedules');function canonicalScheduleSet(_0x3ef5a0){const _0x1ef8b2={_0x2e254a:0x1c0,_0x4fa663:0x24b},_0x5e92b6={_0x347ac7:0x1c0,_0x529aea:0x24b,_0x1becda:0x21c,_0x1f3555:0x1c8},_0x177846=_0x43a59c,_0x216400=_0x3ef5a0[_0x177846(0x1fa)](_0x1a982f=>{const _0x1351d7=_0x177846,_0x560018=scheduleTarget(_0x1a982f);return{'kind':_0x560018[_0x1351d7(_0x5e92b6._0x347ac7)],'name':_0x560018[_0x1351d7(_0x5e92b6._0x529aea)],'cron':_0x1a982f[_0x1351d7(0x225)],..._0x1a982f['env']!==void 0x0?{'env':_0x1a982f[_0x1351d7(0x27e)]}:{},..._0x1a982f[_0x1351d7(_0x5e92b6._0x1becda)]!==void 0x0?{'prepare':_0x1a982f['prepare']}:{},..._0x1a982f[_0x1351d7(0x1c8)]!==void 0x0?{'workers':_0x1a982f[_0x1351d7(_0x5e92b6._0x1f3555)]}:{}};})[_0x177846(0x1c2)]((_0x139517,_0x99413d)=>{const _0x435cdc=_0x177846,_0x5d1be6=_0x139517[_0x435cdc(_0x1ef8b2._0x2e254a)]+':'+_0x139517[_0x435cdc(_0x1ef8b2._0x4fa663)],_0x455dc4=_0x99413d[_0x435cdc(_0x1ef8b2._0x2e254a)]+':'+_0x99413d[_0x435cdc(0x24b)];return _0x5d1be6<_0x455dc4?-0x1:_0x5d1be6>_0x455dc4?0x1:0x0;});return JSON[_0x177846(0x2e0)](_0x216400);}__name(canonicalScheduleSet,_0x43a59c(0x1f9));function parseSchedulesJson(_0x2dddba){const _0x5d17e8={_0x25edb8:0x2ca},_0x360341=_0x43a59c;let _0x142a2f;try{_0x142a2f=JSON[_0x360341(0x189)](_0x2dddba);}catch{return null;}if(!Array[_0x360341(_0x5d17e8._0x25edb8)](_0x142a2f))return null;const _0x4cf336=[];for(const _0x438ea6 of _0x142a2f){const _0x3879f4=parseScheduleEntry(_0x438ea6);if(_0x3879f4)_0x4cf336[_0x360341(0x190)](_0x3879f4);}return _0x4cf336;}__name(parseSchedulesJson,'parseSchedulesJson');var FREQ_FIELDS={'m5':{'minutes':![],'hours':![],'days':![]},'m15':{'minutes':![],'hours':![],'days':![]},'h1':{'minutes':!![],'hours':![],'days':![]},'h2':{'minutes':!![],'hours':![],'days':![]},'h4':{'minutes':!![],'hours':![],'days':![]},'h6':{'minutes':!![],'hours':![],'days':![]},'h12':{'minutes':!![],'hours':![],'days':![]},'daily':{'minutes':!![],'hours':!![],'days':![]},'weekly':{'minutes':!![],'hours':!![],'days':!![]}},HOUR_STEP={'h2':0x2,'h4':0x4,'h6':0x6,'h12':0xc};function cronFromSpec(_0x5004bc){const _0x39d26f={_0x10c63f:0x281,_0x16b9f3:0x268,_0x3998a1:0x2b8,_0x1529e2:0x294,_0x6c13d6:0x2cc,_0x362f59:0x2d2,_0x2706b0:0x1c9},_0x4f282f=_0x43a59c,_0x19368c=list(_0x5004bc[_0x4f282f(0x252)]);switch(_0x5004bc[_0x4f282f(0x2cc)]){case'm5':return _0x4f282f(_0x39d26f._0x10c63f);case _0x4f282f(0x2a4):return _0x4f282f(0x2c3);case'h1':return _0x19368c+_0x4f282f(_0x39d26f._0x16b9f3);case'h2':case'h4':case'h6':case _0x4f282f(_0x39d26f._0x3998a1):return _0x19368c+_0x4f282f(_0x39d26f._0x1529e2)+HOUR_STEP[_0x5004bc[_0x4f282f(_0x39d26f._0x6c13d6)]]+_0x4f282f(0x2d2);case _0x4f282f(0x2af):return _0x19368c+'\x20'+list(_0x5004bc[_0x4f282f(0x2d3)])+_0x4f282f(_0x39d26f._0x362f59);case _0x4f282f(0x1da):return _0x19368c+'\x20'+list(_0x5004bc['hours'])+_0x4f282f(_0x39d26f._0x2706b0)+list(_0x5004bc[_0x4f282f(0x2de)]);}}__name(cronFromSpec,_0x43a59c(0x1b7));function specFromCron(_0x57b468){const _0x2c6a6f={_0x340508:0x23d,_0x5d772e:0x2b6,_0x254722:0x1d6,_0x27a62b:0x194,_0x1f6f2c:0x2d7,_0xd8e955:0x2af},_0x10980b=_0x43a59c,_0xbacad=_0x57b468['trim']()[_0x10980b(_0x2c6a6f._0x340508)](/\s+/);if(_0xbacad[_0x10980b(_0x2c6a6f._0x5d772e)]!==0x5)return null;const [_0x4a3be2,_0x476665,_0x1daf92,_0x1e7e7c,_0x3582ed]=_0xbacad;if(_0x1daf92!=='*'||_0x1e7e7c!=='*')return null;if(_0x476665==='*'&&_0x3582ed==='*'){if(_0x4a3be2===_0x10980b(_0x2c6a6f._0x254722))return spec('m5');if(_0x4a3be2==='*/15')return spec(_0x10980b(0x2a4));const _0x6cba70=numbers(_0x4a3be2);return _0x6cba70&&spec('h1',_0x6cba70);}const _0x17cd4c=numbers(_0x4a3be2);if(!_0x17cd4c)return null;const _0x19e185=/^\*\/(\d+)$/[_0x10980b(_0x2c6a6f._0x27a62b)](_0x476665);if(_0x19e185&&_0x3582ed==='*'){const _0x58b035=Object[_0x10980b(0x20d)](HOUR_STEP)[_0x10980b(_0x2c6a6f._0x1f6f2c)](_0x4ebcc1=>HOUR_STEP[_0x4ebcc1]===Number(_0x19e185[0x1]));return _0x58b035?spec(_0x58b035,_0x17cd4c):null;}const _0x309cfa=numbers(_0x476665);if(!_0x309cfa)return null;if(_0x3582ed==='*')return spec(_0x10980b(_0x2c6a6f._0xd8e955),_0x17cd4c,_0x309cfa);const _0x29ab35=numbers(_0x3582ed);return _0x29ab35&&spec('weekly',_0x17cd4c,_0x309cfa,_0x29ab35);}__name(specFromCron,_0x43a59c(0x204));function describeCron(_0x806ef4){const _0x1bcf24=specFromCron(_0x806ef4);return _0x1bcf24?describeSpec(_0x1bcf24):_0x806ef4;}__name(describeCron,_0x43a59c(0x277));function describeSpec(_0x2ac1ee){const _0x1fb23e={_0x3d328f:0x252,_0x3b51ac:0x1da,_0x2ae704:0x1fa},_0x403843=_0x43a59c;switch(_0x2ac1ee[_0x403843(0x2cc)]){case'm5':return'every\x205\x20min';case'm15':return _0x403843(0x28f);case'h1':return'hourly'+atMinutes(_0x2ac1ee['minutes']);case'h2':case'h4':case'h6':case _0x403843(0x2b8):return'every\x20'+HOUR_STEP[_0x2ac1ee['freq']]+'h'+atMinutes(_0x2ac1ee[_0x403843(_0x1fb23e._0x3d328f)]);case _0x403843(0x2af):return _0x403843(0x1a5)+times(_0x2ac1ee);case _0x403843(_0x1fb23e._0x3b51ac):return _0x2ac1ee[_0x403843(0x2de)][_0x403843(_0x1fb23e._0x2ae704)](_0x1cf4b4=>DAY_SHORT[_0x1cf4b4]??String(_0x1cf4b4))[_0x403843(0x270)](',\x20')+'\x20at\x20'+times(_0x2ac1ee);}}__name(describeSpec,_0x43a59c(0x2ec));function nextTickFromSpec(_0x381efe,_0x56f5c9){const _0x37da63={_0x300405:0x248},_0x572244=_0x43a59c,_0x266cb2=new Date(_0x56f5c9);_0x266cb2[_0x572244(0x2a6)](0x0,0x0);for(let _0x5ee86d=0x0;_0x5ee86d<0x8*0x18*0x3c;_0x5ee86d++){_0x266cb2[_0x572244(_0x37da63._0x300405)](_0x266cb2[_0x572244(0x242)]()+0x1);if(specMatches(_0x381efe,_0x266cb2))return _0x266cb2['getTime']();}return _0x266cb2['getTime']();}__name(nextTickFromSpec,_0x43a59c(0x26b));function specMatches(_0x554710,_0x515894){const _0x19d768={_0x591023:0x242,_0x5b1042:0x2cc,_0x2365d8:0x2a4,_0x3fdcc0:0x241,_0x57cab2:0x252,_0x1ec6e9:0x241,_0x425ca3:0x2d3},_0x2ad8d8=_0x43a59c,_0x35445f=_0x515894[_0x2ad8d8(_0x19d768._0x591023)](),_0x1da106=_0x515894[_0x2ad8d8(0x24e)]();switch(_0x554710[_0x2ad8d8(_0x19d768._0x5b1042)]){case'm5':return _0x35445f%0x5===0x0;case _0x2ad8d8(_0x19d768._0x2365d8):return _0x35445f%0xf===0x0;case'h1':return _0x554710[_0x2ad8d8(0x252)][_0x2ad8d8(0x241)](_0x35445f);case'h2':case'h4':case'h6':case _0x2ad8d8(0x2b8):return _0x554710[_0x2ad8d8(0x252)][_0x2ad8d8(_0x19d768._0x3fdcc0)](_0x35445f)&&_0x1da106%(HOUR_STEP[_0x554710['freq']]??0x1)===0x0;case'daily':return _0x554710[_0x2ad8d8(_0x19d768._0x57cab2)]['includes'](_0x35445f)&&_0x554710[_0x2ad8d8(0x2d3)][_0x2ad8d8(_0x19d768._0x1ec6e9)](_0x1da106);case _0x2ad8d8(0x1da):return _0x554710[_0x2ad8d8(0x252)]['includes'](_0x35445f)&&_0x554710[_0x2ad8d8(_0x19d768._0x425ca3)][_0x2ad8d8(0x241)](_0x1da106)&&_0x554710[_0x2ad8d8(0x2de)][_0x2ad8d8(0x241)](_0x515894[_0x2ad8d8(0x1a9)]());}}__name(specMatches,'specMatches');function formatNextTick(_0x5c66f9,_0x11acca){const _0x58a584={_0x46a9c5:0x242},_0x52a39e=_0x43a59c,_0x4e87b1=new Date(_0x5c66f9),_0x1afe7c=new Date(_0x11acca),_0x5f47e6=pad(_0x4e87b1['getHours']())+':'+pad(_0x4e87b1[_0x52a39e(_0x58a584._0x46a9c5)]()),_0x1184ce=Math['round']((startOfDay(_0x4e87b1)-startOfDay(_0x1afe7c))/(0x18*0x3c*0x3c*0x3e8));if(_0x1184ce===0x0)return _0x52a39e(0x1e2)+_0x5f47e6;if(_0x1184ce===0x1)return'tomorrow\x20'+_0x5f47e6;return DAY_SHORT[_0x4e87b1[_0x52a39e(0x1a9)]()]+'\x20'+_0x5f47e6;}__name(formatNextTick,_0x43a59c(0x1c1));function startOfDay(_0x26e86b){const _0x5b6fdb={_0x13276c:0x22c},_0x26f9e0=_0x43a59c,_0x158c44=new Date(_0x26e86b);return _0x158c44[_0x26f9e0(_0x5b6fdb._0x13276c)](0x0,0x0,0x0,0x0),_0x158c44[_0x26f9e0(0x23f)]();}__name(startOfDay,'startOfDay');var DAY_SHORT=[_0x43a59c(0x2ea),_0x43a59c(0x26f),_0x43a59c(0x236),_0x43a59c(0x223),_0x43a59c(0x1e5),'Fri','Sat'],WEEK_CHIP_ORDER=[0x1,0x2,0x3,0x4,0x5,0x6,0x0];function spec(_0x4d915d,_0x4a7a01=[0x0],_0x25354f=[0x3],_0x564d0d=[0x1]){return{'freq':_0x4d915d,'minutes':_0x4a7a01,'hours':_0x25354f,'days':_0x564d0d};}__name(spec,_0x43a59c(0x188));function list(_0xa6571c){const _0x4e0c43=_0x43a59c;return[..._0xa6571c][_0x4e0c43(0x1c2)]((_0x55101d,_0x5f373f)=>_0x55101d-_0x5f373f)['join'](',');}__name(list,_0x43a59c(0x1f1));function numbers(_0x59a88d){const _0x177c82={_0x222f37:0x1b8,_0x3e82c4:0x1fa},_0x5299ed=_0x43a59c;if(!/^\d+(,\d+)*$/[_0x5299ed(_0x177c82._0x222f37)](_0x59a88d))return null;return _0x59a88d[_0x5299ed(0x23d)](',')[_0x5299ed(_0x177c82._0x3e82c4)](Number);}function _0x2e87(){const _0x36df84=['Dg9mB3DLCKnHC2u','C2vJCMv0C0nVBNrLBNq','l2P1zgDL','CxvLDwvqCMLVCML0EvjHBMS','l2fWAs9IB3GVyNvUzgXLCW','BxvZDcbUB3qGC3rHCNqGD2L0AcaNxYCGkhjLC2vYDMvKkq','vu5pvevtvf9ct1HFve9lru4','C3bLy0zYB21dCM9U','CgfYC2vszxbSywnLuMvXDwvZDa','y29TBwfUzhmUANnVBMW','z2v0vvrdrNvSBfLLyxi','DgfYz2v0','BwfRzvj1BKLK','DMLLD2vY','CMvTB3zLza','DgLTzxm','A2v5CW','yNvUzgXLswq','CNvUswqGy2fYCMLLCYbUBYb0Aw1LC3rHBxaSignHBM5VDcbWBgfJzsbPDcbPBIbHihnOyxjKoIa','vu5pvevtvf9tte9xx01p','vu5pvevtvf9tvevqx1nduKvftLnit1rt','lM11Dgv4','Ag9ZDa','C3rHCNrZv2L0Aa','CgfYC2vdAvj1BLjLC3bVBNnL','CgfYC2vcB3HtzwnYzxrszxzLywXszxnWB25Zzq','mJa1ndC5A2vSugLU','y2XP','Dg9tDhjPBMC','CMvTB3zLrw52vMfY','vw5WBgfJzwfIBgvsDw5jzevYCM9Y','ChjLCgfYzq','BxvZDcbIzsbHihn0CMLUzW','Dw5HDxrOB3jPEMvK','yMXVyLjLBfbHDgHgB3i','yM94vMfSDwvlAw5Kt2ztzwDTzw50','vu5pvevtvf9erujvr19esvi','vu5pvevtvf9kvurhrv9usu1ft1vux01t','v2vK','vu5pvevtvf9kvurhrv9ut0TftG','y3jVBG','AwqTBwLZBwf0y2G','AxnfEhrLCM5HBfzHCK5HBwu','vw5ZDxbWB3j0zwrsDw5lAw5KrxjYB3i','C291CMnL','C2XVDhm','zw52tgf5zxjgAwXLC0zVCG','C2v0sg91CNm','C2v0','BM93','vu5pvevtvf9kvurhrv9mt0DFtevwruW','AxnfBNzwyxjoyw1L','z2L0AhvI','uNvUBMvYtM90q29UzMLNDxjLzevYCM9Y','yxnZAwDUBwvUDevUDhjPzxm','zMLSzq','AxnrDwv1zurPCK5HBwu','vhvL','C2nOzwr1Bgu','yMXVyNnsB290rM9Y','C3rKzxjYlMXVzW','C2XPy2u','x2HLBhbLCNm','CgfYC2vcB3HwywX1zxnszxbSywnLuMvXDwvZDa','C3bSAxq','CNvUrgLYrM9Y','z2v0vgLTzq','lNnUyxbZAg90CW','Aw5JBhvKzxm','z2v0twLUDxrLCW','C2HHCMreyxLZrgvZy2vUzgLUzW','CgfYC2vrDwv1zvrPy2TLDe5HBwu','vu5pvevtvf9kvurhrv9wt1rf','CgfYC2vcB3HtzwnYzxrZuMv2zwfSuMvZCg9UC2u','Dw5VDgvZDc9Zy2HLzhvSzxmUEwfTBa','C2v0twLUDxrLCW','uNvUBMvYqwrHChrLCK5VDezVDw5KrxjYB3i','zxHWzwn0zwqGysbTyxbWAw5NihDPDgGGysbGC2nOzwr1BgvZoMaGyxjYyxK','BMfTzq','vvrd','vu5pvevtvf9kvurhrv9dtefvrevFqKLo','z2v0sg91CNm','tK9Fq09mt1i','qvbqx0jbu0vFvvjm','C3rHDhvZ','BwLUDxrLCW','CMvWBgfJzq','C3rYAw5NtgLZDa','refuqujbu0vFvvjm','y29TCgfYzvf1zxvLvgLJA2v0tMfTzxm','vu5pvevtvf9ct1HFu0vduKvux05btuvt','l2fWAs9IB3GVzw52CY8','vu5pvevtvf9kvurhrv9quK9wsurfuG','igLZigfSC28GC2v0igLUihvUB3rLC3qVlMvUDIdIGjqGDgHLihnLy3jLDcb2ywX1zsbUB3CGC2HHzg93CYbPDc4','BwfSzM9YBwvK','CxvLDwveAxjgB3i','yNvUzgXLlMPZB24','iI4G','vu5pvevtvf9rvuvvrv9mruftrq','BxvZDcbUB3qGyMuGzw1WDhK','yMXVyLbHDgHgB3i','CMvJzw50','C2HH','z2v0uMfUzg9TvMfSDwvZ','vu5pvevtvf9kvurhrv9vuKW','xsbPCYbUB3qGysb2ywXPzcbLBNrYEsdIGjqGAxqGBMvLzhmGzxHHy3rSEsbVBMuGB2yGygnVBgXLy3rPB246ycaVigbZy2vUyxjPBZPGihbSDxmGysbGy3jVBJPGihn0CMLUzW','DgvZDerPCKzVCG','icOGkIaQicO','qxbW','CgLJA2vYlxnUyxbZAg90lNr4Da','BMv4DfrPy2TgCM9Tu3bLyW','CMvNzxG','vu5pvevtvf9usu1fwK9orq','AxnszwnVCMq','tw9U','AM9PBG','AxnuzxjTAw5HBfj1BNrPBwvtDgf0zq','CgfYC2vuAwnRzxrdAq','DMfSDwu','mtu1nZmYnejcC2zMyG','igfSCMvHzhKGzxHPC3rZigLUia','yM94rw52u2vJCMv0C1jLDMvHBfbHDgG','zgvZy3jPyMvdCM9U','vu5pvevtvf9rvuvvrv9hte9cquXFreLs','yxbWlxnLCNzLCJPLCNjVCG','z2L0','C2vYAwfSAxPLrw52vMfSDwu','vu5pvevtvf9buLrjrKfdvfnFuK9pva','Dw5VDgvZDc8Uzw52','zw52','CgLK','yM94vMfSDwvqyxrO','kI81icOGkIaQicO','C3rVCMfNzq','DMfYAwfIBgu','C3rKB3v0lMXVzW','C3rHCNrLzef0','x3nJzw5HCMLVCW','l2HLywX0Aa','CgfYC2vrDwv1zvrPy2TLDa','AxnsDw5Uzxjtzxr0Aw5N','CgfYC2vty2HLzhvSzxneB2m','zgvZy3jPyMvcDw5KBgu','zhvYyxrPB25nCW','CMfUzg9T','C2vJCMv0C0XHEwvYrMLSzxngB3i','zxzLCNKGmtuGBwLU','BNvTyMvYCW','CgfYC2vdAvbYB3zPzgvY','Dw5RBM93BI1IDw5KBgu','vu5pvevtvf9mt0nbteu','icOV','vu5pvevtvf9cvu5etevFsuq','igf0ia','C2HHCMrqyxrOrM9YuNvUswq','CgfYC2vtDhjPBMDszwnVCMq','zgvIDwDNzxjgAwXLrM9Y','AxnjBNrLz2vY','vu5pvevtvf9tq0HfrfvmrvnFrKLor0vsufjjtLq','BwLUlxzLCNnPB24','vu5pvevtvf9eruzbvuXux1rjtuvpvvrFtvm','iYaTls0G','y29SBgvJDgLVBG','ig5LzwrZigeGBMfTzq','zgvJB2rLtMfTzuXPC3q','zw52tMfTzxngCM9TrgLYtgLZDgLUzW','zMXVB3i','Bte1','DMfYAwfIBgvZ','C2v0u2vJB25KCW','DMfSDwvZ','yhnJAgvKDwXLCZPGig11C3qGyMuGyw4GyxjYyxK','CMvNzxHmAxrLCMfS','vu5pvevtvf9erujvr19ive1mx01bwf9cwvrfuW','C3rYAw5N','iIbKB2vZig5VDcbZDxbWB3j0ihj1BIbRAw5Kici','CgfYC2vcB3HwywX1zvnLDfjLCxvLC3q','BNvTyMvY','zgfPBhK','C291CMnLCY5QC29U','yM94rw52vMfSDwvqyxrO','CNvUswrtDgfYDgvKqxq','zxHHBxbSzq','CgfKu3rHCNq','yM94rw52vMfSDwvZugf0Aa','BgvUz3rO','AxnsDw5ZrgLYtMfTzq','AdeY','yxbW','zw5JB2rLtMfTzuXPC3q','lNzPzxDLCI5SB2nR','CgfYC2vcDw5KBgu','Dg9VlwXHCMDL','ChjVAMvJDff1zxvLuM9VDa','lNj1BNm','lMrLyNvN','DMfSAwrHDgvgC1nHzMvoyw1L','C2vJCMv0','kI8XnsaQicOGkIaQ','B2jQzwn0','vu5pvevtvf9kvurhrv9it1nu','lMPZB24','BxvZDcbUB3qGC3rHCNqGD2L0AcaNlIC','igLZigfSC28GC2v0igLUihLVDxiGC2HLBgWGzw52AxjVBM1LBNqG4OcuigL0ihDPBgWGA2vLCcbYzxnVBhzPBMCGzNjVBsb0AgvYzsaODgHLigvUDMLYB25Tzw50ihDPBNmGB3zLCIb0AguGzMLSzsKU','Bwf0y2G','AxnbCNjHEq','Dw5RBM93BI1YDw5UzxiTA2v5','zNjLCq','yNvUzgXLza','zMLUzeLUzgv4','yxj0AwzHy3rZuM9VDezYB20','BwfRzvf1zxvLvgLJA2v0tMfTzq','iokaLcbWAwnRigeGzgLMzMvYzw50ig5HBwuGB3iGzwrPDcb0AguGzxHPC3rPBMCGDMfSDwuU','icOGkIaQ','Ag91CNm','DgvTCgXHDgu','DMfSDwvtDwzMAxG','yMXVyLjLBfnLz21LBNrZrM9Y','zMLUza','CMvWBgfJzwq','zw5KC1DPDgG','l2fWAs9IB3GVDMfSDwvZ','lMvUDG','zxHPC3rZ','Aw5Zzxj0rw52vMfY','zgf5CW','vu5pvevtvf9qt1bvuf9huKfdrv9nuW','C3rYAw5NAwz5','lMPZB25S','yM9VBgvHBG','C2nOzwr1BgvuyxjNzxq','BwfPBNrLBMfUy2u','vu5pvevtvf9erujvr19nqvHFqLLurvm','CgfYC2vty2vUyxjPB0fUBM90yxrPB25Z','zw50CMLLCW','Dw5RBM93BI1LBNzPCM9UBwvUDa','yM94rw52u2vJCMv0uMv2zwfSugf0Aa','u3vU','C2nVCguTBwLZBwf0y2G','zgvZy3jPyMvtCgvJ','yxv0Ag9YAw5N','C2HHCMrqyxrOrM9YvgLTzxn0yw1W','zMfPBgvK','BwnW','zw52s2v5CW','vu5pvevtvf9iruferuq','C3bLyW','CgfYC2u','AM9PBKXPBMvZ','C2fTCgXL','lNf1zxvL','DgvYBwLUywW','ChjVDMLKzxi','CMfUAW','ChvZAa','C2vJCMv0CW','CgfYC2vwywX1zuvUDMvSB3bL','CgfYC2vcB3HwywX1zxnszxnWB25Zzq','zxHLyW','yMXVyIbOyxnOig11C3qGyMuGBg93zxjJyxnLigHLEcWGz290oIa','CxvLDwvqCMLVCML0EuzYB21syw5R','mJu0otq3ofzwC0rbzW','vu5pvevtvf9ct1HFvKfssufctevFtKfnrvm','zgvZy3jPyMvuAwnRzxrdAq','DhjPBq','l2fWAs9IB3GVy2KVCNvU','yxrnAw51DgvZ','ig11C3qGyMuGvvbqrvjFu05bs0uGkguUzY4Gqvbqx0jbu0vFvvjmksbZBYbHihnJzw5HCMLVignHBIbYzwzLCMvUy2uGAxqGyNKGBMfTzs4','CgfYC2voyw1LzfjLy29Yza','ywn0AxzLrw52tMfTzq','sw52ywXPzejSB2jiyxnOrxjYB3i','yxbWlxnLCNzLCJPYzwfKEq','zxzLCNK','vu5pvevtvf9ftLy','x19WCM90B19F','zgfPBhKGyxqG','zxjYB3i','CgfYC2vcDw5KBgvnyw5PzMvZDa','y29UzMLN','z2v0rgf5','Dw5VDgvZDa','yxbWlxnLCNzLCJPYzxvZzwq','x2XHDgvZDc5QC29U','C2nOzwr1BgvZwW','y29TCgXLDgvK','vu5pvevtvf9rvuvvrv9hte9cquXFu0Xpvfm','CxvLDwvK','DgLJA2v0CW','AxngywLSAw5Nu3rHDhvZ','vu5pvevtvf9ot19rvuvvrq','lY5Kzwj1z2DLCG','AxngAw5PDgu','igLZig5VDcbHigTUB3DUihj1BM5LCIbZzxr0Aw5NiokaLcbJAg9VC2uGB25LigzYB20GDgHLihj1BM5LCI1JB25MAwCGBgLZDc4','y3jVBKzYB21tCgvJ','DgvZDa','CNvUBMLUzW','CNvUBMvYici','vu5pvevtvf9kvurhrv9nt0rf','y3jLyxrLzef0','vu5pvevtvf9kvurhrv9dquXmx1rjtuvpvvrFtvm','C2nLBMfYAw8','zM9SzfnJzw5HCMLVuNvU','A2LUza','zM9YBwf0tMv4DfrPy2S','C29YDa','CMvZzxj2zwq','C29Tzq','AgfZ','zMXHz3m','CgfYC2vcDw5KBgvvCgXVywrszxnWB25Zzq','D29YA2vYCW','icOGkIa','C3rLChmUANnVBMW','CNvUswq','vu5pvevtvf9kvurhrv9qt1ju','zgLYDhK','Aw5KzxHpzG','zMfPBfn0CMvHAW','vu5pvevtvf9kvurhrv9nt0rfta','C3bSAwnL','vu5pvevtvf9kvurhrv9bq0nfu1nFve9lru4','vu5pvevtvf9kvurhrv9ts0Lqx1bsruzmsuDiva','CgfYC2vhAxrjBMzV','vu5pvevtvf8','kI81','AxnbC3nPz25Tzw50tgLUzq','zw52q29UDgvUDa','vu5pvevtvf9erujvr19lruvqx0nbteXt','D2vLA2X5','CgfYC2vlzwvWuMvJB3jK','iIdIGjqGB25LihnJAgvKDwXLihbLCIb0yxjNzxq','CMvZzxj2zwrvBMrLCNnJB3jL','DMfSAwrHDgvtzwDTzw50tMfTzq','vu5pvevtvf9cuK9xu0vs','vu5pvevtvf9erujvr19quKvwsuvxx0jzvevt','xsbYzxbLyxrZia','Dg9KyxKG','DMfSAwrHDgvdB2XSzwn0Aw9UtMfTzq','zMLSDgvY','vgH1','vu5pvevtvf9dt05tt0Xf','icH3AxaP','mZyZndC1AKnIC3bj','mJiWmJy0ngfIvfz1rq','AgvHCNrIzwf0','AxnszwDLEeXPDgvYywW','vu5pvevtvf9cuK9xu0vsx0niqu5oruW','ywrK','yNjHBMnO','nJyYndyYzg9ZrxfY','C2vJCMv0C0zPBgvgB3i','BgLZDa','ChjVAMvJDfj1BNnsB290','z2v0vvrdrgf0zq','mtKXndCWm09MEeD1Eq','C2nOzw1HvMvYC2LVBG','CgfYC2vty2HLzhvSzuvUDhj5','vu5pvevtvf9dqunirv9esvi','ufiGiW','y2fUB25Py2fSu2nOzwr1Bgvtzxq','BwfW','z2L0BgfI','Aw52ywXPzc1Uyw1L'];_0x2e87=function(){return _0x36df84;};return _0x2e87();}__name(numbers,_0x43a59c(0x290));var pad=__name(_0x5f5299=>String(_0x5f5299)[_0x43a59c(0x2b4)](0x2,'0'),'pad');function atMinutes(_0x447795){const _0x2bd688={_0x3e3d08:0x2b6,_0x442526:0x296},_0xe97dd=_0x43a59c;if(_0x447795[_0xe97dd(_0x2bd688._0x3e3d08)]===0x1&&_0x447795[0x0]===0x0)return'';return _0xe97dd(_0x2bd688._0x442526)+[..._0x447795][_0xe97dd(0x1c2)]((_0x419281,_0x18150f)=>_0x419281-_0x18150f)[_0xe97dd(0x1fa)](_0x37b6e8=>':'+pad(_0x37b6e8))['join'](',\x20');}__name(atMinutes,_0x43a59c(0x19c));function times(_0x411eb3){const _0x201ac1={_0x37b066:0x2d3,_0x530dcb:0x2b6},_0x3364b1=_0x43a59c,_0x2431a8=[..._0x411eb3[_0x3364b1(_0x201ac1._0x37b066)]][_0x3364b1(0x1c2)]((_0x18fde8,_0x38c5b8)=>_0x18fde8-_0x38c5b8)['flatMap'](_0x2993bd=>[..._0x411eb3[_0x3364b1(0x252)]][_0x3364b1(0x1c2)]((_0x1af66e,_0x21bfc6)=>_0x1af66e-_0x21bfc6)[_0x3364b1(0x1fa)](_0x5da68c=>pad(_0x2993bd)+':'+pad(_0x5da68c))),_0x2607e9=_0x2431a8['slice'](0x0,0x4),_0x23f94a=_0x2431a8[_0x3364b1(0x2b6)]-_0x2607e9[_0x3364b1(_0x201ac1._0x530dcb)];return _0x2607e9['join'](',\x20')+(_0x23f94a>0x0?'\x20+'+_0x23f94a:'');}__name(times,_0x43a59c(0x20c));var BLOBS_DIR='_blobs',GENERATION_SEP='~',HASH_RE=/^[0-9a-f]{8,}$/,InvalidBlobHashError=class extends Error{static{__name(this,_0x43a59c(0x1a0));}constructor(_0xfe8526){const _0x122123={_0x39fd2b:0x195},_0x3c38f9=_0x43a59c;super(_0x3c38f9(_0x122123._0x39fd2b)+_0xfe8526),this[_0x3c38f9(0x24b)]=_0x3c38f9(0x1a0);}};function blobPathFor(_0x2658e7,_0x342f8a,_0x4d29cd,_0x586095=0x0){return _0x2658e7+'/'+blobRelPathFor(_0x342f8a,_0x4d29cd,_0x586095);}__name(blobPathFor,_0x43a59c(0x261));function blobRelSegmentsFor(_0x1db330,_0x1c9835,_0xc777a8=0x0){const _0x66ad55={_0x1aa306:0x1b8,_0x4a247e:0x23a,_0xde1056:0x23a},_0x2ea901=_0x43a59c;if(!HASH_RE[_0x2ea901(_0x66ad55._0x1aa306)](_0x1db330))throw new InvalidBlobHashError(_0x1db330);const _0x1f8a4f=_0xc777a8>0x0?''+GENERATION_SEP+_0xc777a8:'';return[BLOBS_DIR,_0x1db330[_0x2ea901(_0x66ad55._0x4a247e)](0x0,0x2),_0x1db330[_0x2ea901(_0x66ad55._0xde1056)](0x2,0x4),''+_0x1db330+_0x1f8a4f+'.'+_0x1c9835];}__name(blobRelSegmentsFor,_0x43a59c(0x2d6));function blobRelPathFor(_0x4c7e92,_0x190de2,_0x123092=0x0){const _0x3c4024=_0x43a59c;return blobRelSegmentsFor(_0x4c7e92,_0x190de2,_0x123092)[_0x3c4024(0x270)]('/');}__name(blobRelPathFor,_0x43a59c(0x21f));function blobsRootFor(_0x4267ed){return _0x4267ed+'/'+BLOBS_DIR;}__name(blobsRootFor,_0x43a59c(0x238));var FS_UNSAFE_NAME_RE=/[\\/:*?"<>|\x00-\x1f]/;function validateFsSafeName(_0x1a5171,_0x3dc32c){const _0x7c1e48={_0x32dded:0x2ab,_0x3833c4:0x21d,_0x59dde3:0x260,_0x499712:0x2c7,_0x2969f6:0x202},_0x5eff2f=_0x43a59c;if(typeof _0x1a5171!==_0x5eff2f(_0x7c1e48._0x32dded))return _0x5eff2f(_0x7c1e48._0x3833c4);const _0x272e99=_0x1a5171[_0x5eff2f(0x19a)]();if(_0x272e99['length']===0x0)return _0x5eff2f(_0x7c1e48._0x59dde3);if(_0x272e99==='.'||_0x272e99==='..')return'must\x20not\x20be\x20\x22.\x22\x20or\x20\x22..\x22';if(_0x272e99['startsWith']('.'))return _0x5eff2f(_0x7c1e48._0x499712);if(_0x3dc32c?.[_0x5eff2f(0x1dd)]&&_0x272e99['startsWith']('_'))return _0x5eff2f(_0x7c1e48._0x2969f6);if(FS_UNSAFE_NAME_RE[_0x5eff2f(0x1b8)](_0x272e99))return'must\x20not\x20contain\x20\x5c\x20/\x20:\x20*\x20?\x20\x22\x20<\x20>\x20|\x20or\x20control\x20characters';return null;}__name(validateFsSafeName,_0x43a59c(0x2c1));var COLLECTION_NAME_FORBIDDEN_RE=FS_UNSAFE_NAME_RE;function validateCollectionName(_0x499a42){return validateFsSafeName(_0x499a42);}__name(validateCollectionName,_0x43a59c(0x1e3));var RUN_MANIFEST_FILE='manifest.json',RUN_SOURCES_FILE=_0x43a59c(0x2b0),UnsupportedRunKindError=class extends Error{static{__name(this,_0x43a59c(0x228));}constructor(_0x5b9cb9,_0x5ee390){const _0x27db20=_0x43a59c;super(_0x27db20(0x1ba)+_0x5ee390+_0x27db20(0x2ac)+_0x5b9cb9+'\x22'),this['name']=_0x27db20(0x228);}},RunnerAdapterNotFoundError=class extends Error{static{__name(this,_0x43a59c(0x249));}constructor(_0x9a1d63,_0x3a9426){const _0x44a83d={_0x4e0382:0x25e,_0x536f91:0x249},_0x2f8c72=_0x43a59c;super('cannot\x20load\x20runner\x20adapter\x20\x22'+_0x9a1d63+_0x2f8c72(_0x44a83d._0x4e0382)+_0x3a9426),this[_0x2f8c72(0x24b)]=_0x2f8c72(_0x44a83d._0x536f91);}},RunnerNotConfiguredError=class extends Error{static{__name(this,_0x43a59c(0x232));}constructor(_0x2645b1){const _0x2d127a=_0x43a59c;super(_0x2645b1),this['name']=_0x2d127a(0x232);}},EXPECT_FAIL_ANNOTATION='expect-fail',ANNOTATION_RE=/^\s*\/\/\s*@([a-z0-9-]+)\s*$/;function isAnnotationLine(_0x1986b6){const _0x3dbc22=_0x43a59c;return ANNOTATION_RE[_0x3dbc22(0x1b8)](_0x1986b6);}__name(isAnnotationLine,'isAnnotationLine');function parseScenarioAnnotations(_0x4a80fa){const _0x3ae421={_0x71ba5a:0x2c9},_0x5207a1=_0x43a59c,_0x3693b1=new Set();for(const _0x49c294 of _0x4a80fa['split'](/\r?\n/)){const _0x6f1b54=_0x49c294['trim']();if(_0x6f1b54==='')continue;if(!_0x6f1b54[_0x5207a1(0x214)]('//'))break;const _0x3f7ea0=_0x6f1b54[_0x5207a1(_0x3ae421._0x71ba5a)](ANNOTATION_RE);if(_0x3f7ea0)_0x3693b1[_0x5207a1(0x1ed)](_0x3f7ea0[0x1]);}return{'expectFail':_0x3693b1[_0x5207a1(0x1c5)](EXPECT_FAIL_ANNOTATION)};}__name(parseScenarioAnnotations,_0x43a59c(0x2e6));var SEGMENT_NAME_FORBIDDEN_RE=FS_UNSAFE_NAME_RE;function validateSegmentName(_0x311814){return validateFsSafeName(_0x311814,{'reservedUnderscore':!![]});}__name(validateSegmentName,_0x43a59c(0x1de));var TERMINAL_WS_EVENT=_0x43a59c(0x18d),RUNNER_CONFIG_KEYS=new Set([_0x43a59c(0x1df),'UNOTEST_BROWSER_CHANNEL',_0x43a59c(0x187),_0x43a59c(0x210),_0x43a59c(0x29d),'UNOTEST_DEFAULT_NAVIGATION_TIMEOUT_MS',_0x43a59c(0x2df),_0x43a59c(0x293),_0x43a59c(0x26d),'UNOTEST_LOG_LEVEL','UNOTEST_DEBUG',_0x43a59c(0x221),_0x43a59c(0x2e5),_0x43a59c(0x1e0),_0x43a59c(0x2aa),_0x43a59c(0x1d9),'UNOTEST_NETWORK',_0x43a59c(0x1e6),_0x43a59c(0x211),_0x43a59c(0x1f7),_0x43a59c(0x24f),'FORCE_COLOR',_0x43a59c(0x255)]);function isRunnerConfigKey(_0x4710f4){const _0x17da3f={_0x2995af:0x1c5},_0xc0e462=_0x43a59c;return RUNNER_CONFIG_KEYS[_0xc0e462(_0x17da3f._0x2995af)](_0x4710f4);}__name(isRunnerConfigKey,'isRunnerConfigKey');function categorizeVariable(_0x956029){const _0x4fbeb2={_0x1ee356:0x191,_0x3340bc:0x24b,_0x4da108:0x2b9},_0x53150a=_0x43a59c;if(_0x956029[_0x53150a(0x229)]===_0x53150a(_0x4fbeb2._0x1ee356))return _0x53150a(0x2c2);return isRunnerConfigKey(_0x956029[_0x53150a(_0x4fbeb2._0x3340bc)])?'runner':_0x53150a(_0x4fbeb2._0x4da108);}__name(categorizeVariable,'categorizeVariable');function isExternalVarName(_0x51dc9f){const _0x319fe4=_0x43a59c;return/^[A-Z][A-Z0-9_]*$/[_0x319fe4(0x1b8)](_0x51dc9f);}__name(isExternalVarName,_0x43a59c(0x227));var SECTION_BY_KIND={'app':_0x43a59c(0x269),'runner':'Runner','secret':void 0x0};function planAddVariable(_0x540873){const _0x5b8ae1={_0x2a97b4:0x1fc,_0x5692ba:0x19d,_0x1dc42d:0x1d8,_0xf55350:0x1fe,_0x5aa245:0x191,_0x52830e:0x27e,_0x314a0d:0x275,_0x3fee5d:0x2d1,_0x73bab7:0x190},_0x2afcc7=_0x43a59c,{name:_0x5611d7,kind:_0x36a8cc}=_0x540873;if(_0x36a8cc==='runner'){if(!isRunnerConfigKey(_0x5611d7))return{'ok':![],'code':_0x2afcc7(0x2cb),'message':_0x5611d7+_0x2afcc7(0x1b6)};}else{if(!isExternalVarName(_0x5611d7))return{'ok':![],'code':_0x2afcc7(_0x5b8ae1._0x2a97b4),'message':_0x5611d7+_0x2afcc7(_0x5b8ae1._0x5692ba)};}const _0x18534d=envKeys(_0x540873[_0x2afcc7(_0x5b8ae1._0x1dc42d)])[_0x2afcc7(0x1c5)](_0x5611d7),_0x14f2d3=envKeys(_0x540873[_0x2afcc7(_0x5b8ae1._0xf55350)])['has'](_0x5611d7),_0x59e300=_0x36a8cc===_0x2afcc7(0x2c2)?_0x2afcc7(_0x5b8ae1._0x5aa245):_0x2afcc7(_0x5b8ae1._0x52830e),_0x480f00=_0x59e300===_0x2afcc7(0x191)?_0x14f2d3:_0x18534d,_0x5a1e19=_0x59e300==='secrets'?'unotest/.secrets':_0x2afcc7(0x27d);if(_0x480f00)return{'ok':![],'code':'duplicate','message':_0x5611d7+_0x2afcc7(_0x5b8ae1._0x314a0d)+_0x5a1e19+_0x2afcc7(_0x5b8ae1._0x3fee5d)};const _0xc1b552=[];return _0x36a8cc==='secret'&&_0x18534d&&_0xc1b552['push'](_0x5611d7+_0x2afcc7(0x25a)),_0x36a8cc!=='secret'&&_0x14f2d3&&_0xc1b552[_0x2afcc7(_0x5b8ae1._0x73bab7)](_0x5611d7+'\x20is\x20also\x20set\x20in\x20unotest/.secrets\x20—\x20the\x20secret\x20value\x20shadows\x20this\x20one.'),{'ok':!![],'target':_0x59e300,'sectionLabel':SECTION_BY_KIND[_0x36a8cc],'warnings':_0xc1b552};}__name(planAddVariable,'planAddVariable');function deleteShadowWarning(_0x4c5750,_0x482af4,_0x3f721f){const _0x5f02f4={_0xf5434f:0x2c8},_0x39aacb=_0x43a59c;if(_0x3f721f!==void 0x0&&_0x3f721f!==_0x482af4)return[_0x4c5750+_0x39aacb(_0x5f02f4._0xf5434f)];return[];}__name(deleteShadowWarning,'deleteShadowWarning');var TERMINAL_RUNTIME_STATES=[_0x43a59c(0x1ae),_0x43a59c(0x2ef),'aborted'];function isTerminalRuntimeState(_0x5ae610){return TERMINAL_RUNTIME_STATES['includes'](_0x5ae610);}__name(isTerminalRuntimeState,_0x43a59c(0x271));var JUDGE_ROUTES={'judge':_0x43a59c(0x1ff),'health':_0x43a59c(0x287)},JUDGE_ENV={'mode':_0x43a59c(0x1bb),'url':_0x43a59c(0x265),'token':_0x43a59c(0x224),'requestTimeoutMs':_0x43a59c(0x222),'preamble':'UNOTEST_JUDGE_PREAMBLE','provider':_0x43a59c(0x259),'model':_0x43a59c(0x1d0),'callTimeoutMs':_0x43a59c(0x1bd),'retries':'UNOTEST_JUDGE_RETRIES','vote':_0x43a59c(0x245),'accessToken':_0x43a59c(0x1d2),'claudeBin':_0x43a59c(0x24d),'host':_0x43a59c(0x2c5),'port':_0x43a59c(0x1cc),'logLevel':_0x43a59c(0x22f),'skipPreflight':_0x43a59c(0x1d3)};export{ARTIFACTS_ROOT_ENV,BLOBS_DIR,BOX_ENV_VALUES_SEGMENT,BOX_REVEAL_SEGMENT,BOX_SECRET_NAMES_ENV,BOX_TOKEN_ENV,BOX_URL_ENV,BOX_VALUES_PATH,BOX_VARIABLE_NAMES_ENV,BROWSER_CHANNEL_ENV,BROWSER_ENV,BUNDLED_BROWSER_CHANNEL,BUNDLE_ID_ENV,BUNDLE_MANIFEST_FILE,BUNDLE_SCHEMA_VERSION,BUNDLE_UPLOAD_PATH,CI_RUN_PATH,COLLECTIONS_SUBDIR,COLLECTION_NAME_FORBIDDEN_RE,COMMANDS_FILE,DAY_INDEX_FILE,DAY_SHORT,E2E_SUBDIR,ENV_FILE,EXPECT_FAIL_ANNOTATION,FREQ_FIELDS,HEARTBEAT_FILE,HELPERS_SUBDIR,InvalidBlobHashError,JUDGE_ENV,JUDGE_ROUTES,LOCK_FILE,LOG_FILE,PICKER_SNAPSHOT_FILE,QUEUE_DISABLED_ENV,QUEUE_GLOBAL_DIR_ENV,QUEUE_GLOBAL_SLOTS_ENV,QUEUE_LEASE_ENV,QUEUE_MUTEX_FILE,QUEUE_PRIORITIES,QUEUE_RUNNING_DIR,QUEUE_SCHEMA_VERSION,QUEUE_SLOTS_DIR,QUEUE_SUBDIR,QUEUE_TICKETS_DIR,RUNNER_CONFIG_KEYS,RUNNER_SETTING_PREFIX,RUNS_SUBDIR,RUNTIME_FILE,RUN_INDEX_SCHEMA_VERSION,RUN_MANIFEST_FILE,RUN_SOURCES_FILE,RunnerAdapterNotFoundError,RunnerNotConfiguredError,SCENARIOS_INDEX_DIR,SCENARIOS_LATEST_FILE,SCENARIO_RECENT_WINDOW,SCHEDULES_FILE,SCHEDULES_FINGERPRINT_ENV,SECRETS_FILE,SEGMENT_NAME_FORBIDDEN_RE,SNAPSHOTS_SUBDIR,STDERR_FILE,STDOUT_FILE,STEPS_FILE,TARGET_ENV_VAR,TERMINAL_RUNTIME_STATES,TERMINAL_WS_EVENT,UNOTEST_DIR,UnplaceableRunIdError,UnsupportedRunKindError,WEEK_CHIP_ORDER,WORKSPACE_FILE,WORKSPACE_SCHEMA_VERSION,activeEnvName,artifactsRootFrom,blobPathFor,blobRelPathFor,blobRelSegmentsFor,blobsRootFor,boxEnvSecretRevealPath,boxEnvSecretsRevealPath,boxEnvValuePath,boxEnvValuesPath,boxValueKindOfSegment,boxValuePath,boxValuesPath,canonicalScheduleSet,categorizeVariable,compareQueueTicketNames,cronFromSpec,debugDirFor,debuggerFileFor,declaredEnvKeys,decodeNameList,deleteShadowWarning,describeBundle,describeCron,describeSpec,describeTicketCi,encodeNameList,envFileFor,envKeys,envLayerFilesFor,envNamesFromDirListing,foldScenarioRun,formatNextTick,insertEnvVar,isAnnotationLine,isEnvVarName,isExternalVarName,isFailingStatus,isQueueDirName,isRecord,isRegexLiteral,isRunnerConfigKey,isRunnerSetting,isRunsDirName,isTerminalRuntimeState,makeQueueTicketName,makeRunId,mergeSchedules,nextTickFromSpec,parseAppServerEvent,parseBoxEnvValuesReplaceRequest,parseBoxSecretRevealResponse,parseBoxSecretsRevealResponse,parseBoxValueSetRequest,parseBoxValuesReplaceRequest,parseBoxValuesResponse,parseBundleManifest,parseBundleUploadResponse,parseCiProvider,parseCiRunRequest,parseCiRunResponse,parseEnvContent,parseQueueTicket,parseQueueTicketName,parseScenarioAnnotations,parseScheduleEntry,parseSchedulesDoc,parseSchedulesJson,parseWorkspaceFile,planAddVariable,projectQueueRoot,projectRunDirFor,projectRunsRoot,queueDirFor,queuePriorityFromRank,queuePriorityRank,regexLiteral,removeEnvVar,requireRunDirFor,reservedBoxValueNames,runDirFor,runIdStartedAt,runsDirFor,sanitizeRunIdSegment,scenarioIndexFileName,scenarioRefFromFileName,scheduleTarget,secretsFileFor,secretsLayerFilesFor,serializeEnvValue,shardDaysDescending,shardDirFor,shardPathForRunId,shardPathForTimestamp,specFromCron,testDirFor,validateCollectionName,validateSegmentName};
1
+ const _0xbaf479=_0x117a;(function(_0x310793,_0x5e06a8){const _0x5c7f1c={_0x2db562:0x31e,_0x3219b5:0x301,_0x59236c:0x339,_0x1ecd92:0x222,_0x4ebac4:0x22c,_0xf4e268:0x1fb,_0x31eb5b:0x25d},_0x521c00=_0x117a,_0x1b62a5=_0x310793();while(!![]){try{const _0x5aba0e=-parseInt(_0x521c00(_0x5c7f1c._0x2db562))/0x1*(-parseInt(_0x521c00(_0x5c7f1c._0x3219b5))/0x2)+parseInt(_0x521c00(_0x5c7f1c._0x59236c))/0x3*(parseInt(_0x521c00(0x300))/0x4)+parseInt(_0x521c00(_0x5c7f1c._0x1ecd92))/0x5+-parseInt(_0x521c00(0x2c7))/0x6+-parseInt(_0x521c00(_0x5c7f1c._0x4ebac4))/0x7*(parseInt(_0x521c00(_0x5c7f1c._0xf4e268))/0x8)+-parseInt(_0x521c00(0x308))/0x9+-parseInt(_0x521c00(_0x5c7f1c._0x31eb5b))/0xa*(-parseInt(_0x521c00(0x278))/0xb);if(_0x5aba0e===_0x5e06a8)break;else _0x1b62a5['push'](_0x1b62a5['shift']());}catch(_0x23e7d5){_0x1b62a5['push'](_0x1b62a5['shift']());}}}(_0x250a,0x9de20));var __defProp=Object['defineProperty'],__name=(_0x555ddf,_0x55c839)=>__defProp(_0x555ddf,'name',{'value':_0x55c839,'configurable':!![]});function parseAppServerEvent(_0x358e61){const _0x85e574={_0x4b9071:0x249,_0x4e9270:0x270},_0x196a08=_0x117a,_0x10abbc=_0x358e61[_0x196a08(0x28f)]();if(!_0x10abbc[_0x196a08(0x232)]('{'))return null;try{const _0x2d29a4=JSON[_0x196a08(0x332)](_0x10abbc);if(_0x2d29a4[_0x196a08(0x24d)]===_0x196a08(_0x85e574._0x4b9071)||_0x2d29a4['kind']==='app-server:reused'||_0x2d29a4[_0x196a08(0x24d)]===_0x196a08(_0x85e574._0x4e9270))return _0x2d29a4;return null;}catch{return null;}}__name(parseAppServerEvent,_0xbaf479(0x2c1));function isRecord(_0x557d4a){const _0xf5fcd9=_0xbaf479;return typeof _0x557d4a===_0xf5fcd9(0x27b)&&_0x557d4a!==null&&!Array['isArray'](_0x557d4a);}__name(isRecord,_0xbaf479(0x2ea));var UNOTEST_DIR='unotest',E2E_SUBDIR=_0xbaf479(0x299),HELPERS_SUBDIR='_helpers',COLLECTIONS_SUBDIR=_0xbaf479(0x320),RUNS_SUBDIR='.runs',SNAPSHOTS_SUBDIR='.snapshots';function testDirFor(_0x56f1fd){return''+E2E_SUBDIR+_0x56f1fd;}__name(testDirFor,_0xbaf479(0x2a9));function runsDirFor(_0x30acc7,_0x14fdc7){return''+RUNS_SUBDIR+_0x30acc7+(_0x14fdc7?'.'+_0x14fdc7:'');}__name(runsDirFor,_0xbaf479(0x25a));function isRunsDirName(_0x34e9e4){const _0x57cc92={_0x141105:0x232},_0x4b2f87=_0xbaf479;return _0x34e9e4===RUNS_SUBDIR||_0x34e9e4[_0x4b2f87(_0x57cc92._0x141105)](RUNS_SUBDIR+'-')||_0x34e9e4[_0x4b2f87(0x232)](RUNS_SUBDIR+'.');}__name(isRunsDirName,_0xbaf479(0x1e7));function debugDirFor(_0x497c04){return'.debug'+_0x497c04;}__name(debugDirFor,'debugDirFor');function debuggerFileFor(_0x2ca818){return UNOTEST_DIR+'/.debugger'+_0x2ca818+'.json';}__name(debuggerFileFor,'debuggerFileFor');var LOCK_FILE=_0xbaf479(0x265),LOG_FILE=_0xbaf479(0x251),STEPS_FILE=_0xbaf479(0x23b),HEARTBEAT_FILE=_0xbaf479(0x2dd),DAY_INDEX_FILE=_0xbaf479(0x25b),SCENARIOS_INDEX_DIR=_0xbaf479(0x33a),SCENARIOS_LATEST_FILE='_latest.json',STDOUT_FILE=_0xbaf479(0x2dc),STDERR_FILE=_0xbaf479(0x2cf),COMMANDS_FILE=_0xbaf479(0x280),RUNTIME_FILE=_0xbaf479(0x207),PICKER_SNAPSHOT_FILE=_0xbaf479(0x2d7),ENV_FILE=_0xbaf479(0x32b),SECRETS_FILE='unotest/.secrets',SCHEDULES_FILE=_0xbaf479(0x2a2);function envFileFor(_0x3e3ea3,_0x1cc1f1){return''+ENV_FILE+_0x3e3ea3+(_0x1cc1f1?'.'+_0x1cc1f1:'');}__name(envFileFor,_0xbaf479(0x322));function secretsFileFor(_0xa49d56,_0x299092){return''+SECRETS_FILE+_0xa49d56+(_0x299092?'.'+_0x299092:'');}__name(secretsFileFor,'secretsFileFor');function envLayerFilesFor(_0x5b0d2e,_0xe4b03e){return layersFor(ENV_FILE,_0x5b0d2e,_0xe4b03e);}__name(envLayerFilesFor,_0xbaf479(0x28a));function secretsLayerFilesFor(_0x59d4ae,_0x4978a0){return layersFor(SECRETS_FILE,_0x59d4ae,_0x4978a0);}__name(secretsLayerFilesFor,_0xbaf479(0x242));function layersFor(_0x5f254c,_0x516b9e,_0x50dc80){const _0x5c6be7={_0x4484a8:0x2d4},_0xa67e6d=_0xbaf479,_0x3ddab0=[_0x5f254c];if(_0x516b9e)_0x3ddab0['push'](''+_0x5f254c+_0x516b9e);if(_0x50dc80){_0x3ddab0[_0xa67e6d(_0x5c6be7._0x4484a8)](_0x5f254c+'.'+_0x50dc80);if(_0x516b9e)_0x3ddab0['push'](''+_0x5f254c+_0x516b9e+'.'+_0x50dc80);}return _0x3ddab0;}__name(layersFor,_0xbaf479(0x1f4));var ARTIFACTS_ROOT_ENV='UNOTEST_ARTIFACTS_ROOT';function artifactsRootFrom(_0x3e64b8,_0x443526){const _0x470187=_0x3e64b8[ARTIFACTS_ROOT_ENV]?.['trim']();return _0x470187?_0x470187:_0x443526;}__name(artifactsRootFrom,_0xbaf479(0x23a));function activeEnvName(_0xf2e45){const _0x551e86={_0x2e3d49:0x2ad},_0x254525=_0xbaf479,_0x31f3de=_0xf2e45[_0x254525(_0x551e86._0x2e3d49)]?.['trim']();return _0x31f3de?_0x31f3de:void 0x0;}__name(activeEnvName,_0xbaf479(0x323));var RESERVED_ENV_NAMES=new Set(['example',_0xbaf479(0x2c8),_0xbaf479(0x1f3)]);function envNamesFromDirListing(_0x5cf598,_0x5a40e7){const _0x525b6c={_0x399cbd:0x297,_0x2234d6:0x2b0,_0x29d3e1:0x24c,_0x2f66e5:0x209,_0x366920:0x210},_0x4a8056=_0xbaf479,_0x53f679=['.env',_0x4a8056(0x2de)][_0x4a8056(_0x525b6c._0x399cbd)](_0x40fdbe=>_0x5a40e7?[_0x40fdbe,''+_0x40fdbe+_0x5a40e7]:[_0x40fdbe]),_0x48d1fb=new Set();for(const _0xaf1f23 of _0x5cf598){for(const _0x423af2 of _0x53f679){const _0xf83fdf=_0x423af2+'.';if(!_0xaf1f23['startsWith'](_0xf83fdf))continue;const _0x33ffc5=_0xaf1f23[_0x4a8056(_0x525b6c._0x2234d6)](_0xf83fdf['length']);if(!_0x33ffc5||_0x33ffc5[_0x4a8056(0x293)]('/'))continue;if(RESERVED_ENV_NAMES[_0x4a8056(_0x525b6c._0x29d3e1)](_0x33ffc5))continue;_0x48d1fb[_0x4a8056(_0x525b6c._0x2f66e5)](_0x33ffc5);}}return[..._0x48d1fb][_0x4a8056(_0x525b6c._0x366920)]();}__name(envNamesFromDirListing,_0xbaf479(0x2f8));function isRegexLiteral(_0x525a41){const _0x207e9a={_0x273e24:0x27b,_0x5d9623:0x24d,_0x2e0b33:0x2da,_0x48d646:0x29b},_0x568c2a=_0xbaf479;return typeof _0x525a41===_0x568c2a(_0x207e9a._0x273e24)&&_0x525a41!==null&&_0x525a41[_0x568c2a(_0x207e9a._0x5d9623)]==='regex'&&typeof _0x525a41[_0x568c2a(_0x207e9a._0x2e0b33)]===_0x568c2a(_0x207e9a._0x48d646)&&typeof _0x525a41[_0x568c2a(0x315)]===_0x568c2a(0x29b);}__name(isRegexLiteral,'isRegexLiteral');function regexLiteral(_0x3b8321,_0x36334c=''){const _0x1150b5={_0x3b139b:0x1ea},_0x31497e=_0xbaf479;return{'kind':_0x31497e(_0x1150b5._0x3b139b),'source':_0x3b8321,'flags':_0x36334c};}__name(regexLiteral,_0xbaf479(0x342));var RAND_BYTES=0x6;function makeRunId(_0x44a3e8){const _0x524128={_0x2e647b:0x2aa,_0x298632:0x21a,_0x4c57f0:0x31c},_0x482778=_0xbaf479,_0x12c43c=sanitizeRunIdSegment(_0x44a3e8),_0xe5d3ff=Date['now']()[_0x482778(0x248)](0x24),_0x395f18=new Uint8Array(RAND_BYTES);globalThis[_0x482778(_0x524128._0x2e647b)][_0x482778(_0x524128._0x298632)](_0x395f18);let _0x5c767b='';for(let _0x1dd4e7=0x0;_0x1dd4e7<_0x395f18['length'];_0x1dd4e7++){_0x5c767b+=_0x395f18[_0x1dd4e7][_0x482778(0x248)](0x10)[_0x482778(_0x524128._0x4c57f0)](0x2,'0');}return _0x12c43c+'-'+_0xe5d3ff+'-'+_0x5c767b;}__name(makeRunId,'makeRunId');function sanitizeRunIdSegment(_0x4476c2){const _0x54a9a7={_0x2af88b:0x310,_0x398912:0x310,_0x24ac67:0x254},_0x336ca3=_0xbaf479,_0x10c6c2=_0x4476c2[_0x336ca3(_0x54a9a7._0x2af88b)](/[^a-zA-Z0-9_-]+/g,'-')[_0x336ca3(_0x54a9a7._0x398912)](/-+/g,'-')[_0x336ca3(0x310)](/^-|-$/g,'');return _0x10c6c2[_0x336ca3(0x324)]>0x0?_0x10c6c2:_0x336ca3(_0x54a9a7._0x24ac67);}__name(sanitizeRunIdSegment,_0xbaf479(0x23f));var RANDOM_SUFFIX_RE=/^[0-9a-f]{6,}$/,MIN_PLAUSIBLE_MS=Date['UTC'](0x7e4,0x0,0x1),MAX_PLAUSIBLE_MS=Date[_0xbaf479(0x2e5)](0x834,0x0,0x1);function runIdStartedAt(_0x35e9ce){const _0x476dbf={_0x1b1ddc:0x324,_0x1a7e1b:0x324,_0x5c06f0:0x29a,_0x463146:0x25c},_0x8f9801=_0xbaf479,_0x29ec28=_0x35e9ce['split']('-');if(_0x29ec28['length']<0x3)return null;const _0x62d095=_0x29ec28[_0x29ec28[_0x8f9801(_0x476dbf._0x1b1ddc)]-0x1];if(!RANDOM_SUFFIX_RE[_0x8f9801(0x29a)](_0x62d095))return null;const _0x37a173=_0x29ec28[_0x29ec28[_0x8f9801(_0x476dbf._0x1a7e1b)]-0x2];if(!/^[0-9a-z]+$/[_0x8f9801(_0x476dbf._0x5c06f0)](_0x37a173))return null;const _0x18c35a=parseInt(_0x37a173,0x24);if(!Number[_0x8f9801(_0x476dbf._0x463146)](_0x18c35a))return null;if(_0x18c35a<MIN_PLAUSIBLE_MS||_0x18c35a>=MAX_PLAUSIBLE_MS)return null;return _0x18c35a;}__name(runIdStartedAt,'runIdStartedAt');function shardPathForTimestamp(_0xf71b17){const _0x2fa6ac={_0x2bf48e:0x215,_0x1f77d9:0x31c,_0x5deafe:0x30b},_0x5435ed=_0xbaf479,_0x4a8a0c=new Date(_0xf71b17),_0x1796ce=String(_0x4a8a0c[_0x5435ed(_0x2fa6ac._0x2bf48e)]())[_0x5435ed(_0x2fa6ac._0x1f77d9)](0x4,'0'),_0x6c50df=String(_0x4a8a0c[_0x5435ed(0x204)]()+0x1)[_0x5435ed(0x31c)](0x2,'0'),_0x70f0ec=String(_0x4a8a0c[_0x5435ed(_0x2fa6ac._0x5deafe)]())[_0x5435ed(0x31c)](0x2,'0');return _0x1796ce+'/'+_0x6c50df+'/'+_0x70f0ec;}__name(shardPathForTimestamp,_0xbaf479(0x334));function shardPathForRunId(_0x5aca64){const _0x46aabb=runIdStartedAt(_0x5aca64);return _0x46aabb===null?null:shardPathForTimestamp(_0x46aabb);}__name(shardPathForRunId,_0xbaf479(0x1d5));function runDirFor(_0x192ce8,_0x460f2c){const _0x519464=shardPathForRunId(_0x460f2c);return _0x519464===null?null:_0x192ce8+'/'+_0x519464+'/'+_0x460f2c;}__name(runDirFor,'runDirFor');var UnplaceableRunIdError=class extends Error{static{__name(this,'UnplaceableRunIdError');}constructor(_0x17a16e){const _0x271d97=_0xbaf479;super(_0x271d97(0x1d8)+_0x17a16e),this[_0x271d97(0x347)]='UnplaceableRunIdError';}};function requireRunDirFor(_0x44c991,_0x5eaeeb){const _0x10452c=runDirFor(_0x44c991,_0x5eaeeb);if(_0x10452c===null)throw new UnplaceableRunIdError(_0x5eaeeb);return _0x10452c;}__name(requireRunDirFor,'requireRunDirFor');function projectRunsRoot(_0x5c6e03='',_0x3d59a2){return UNOTEST_DIR+'/'+runsDirFor(_0x5c6e03,_0x3d59a2);}__name(projectRunsRoot,_0xbaf479(0x2a6));function projectRunDirFor(_0x4a2414,_0x3ed23c='',_0x21da35){return requireRunDirFor(projectRunsRoot(_0x3ed23c,_0x21da35),_0x4a2414);}__name(projectRunDirFor,_0xbaf479(0x2bb));function shardDirFor(_0x49d9e5,_0x4bc106){return _0x49d9e5+'/'+shardPathForTimestamp(_0x4bc106);}__name(shardDirFor,_0xbaf479(0x26f));function*shardDaysDescending(_0xf1839c,_0x15987e,_0x507700){const _0xeeeb71={_0x2e0886:0x26e},_0x89e9f1=_0xbaf479,_0x5312ab=0x5265c00;let _0x75ff2=Math[_0x89e9f1(_0xeeeb71._0x2e0886)](_0x15987e/_0x5312ab)*_0x5312ab;for(let _0x427b4e=0x0;_0x427b4e<_0x507700;_0x427b4e++){yield shardDirFor(_0xf1839c,_0x75ff2),_0x75ff2-=_0x5312ab;}}__name(shardDaysDescending,'shardDaysDescending');var RUN_INDEX_SCHEMA_VERSION=0x2,SCENARIO_RECENT_WINDOW=0xc;function isFailingStatus(_0x187216){const _0x3c0876={_0x52c2a5:0x33f,_0x1f5764:0x306},_0x5abeb6=_0xbaf479;return _0x187216===_0x5abeb6(_0x3c0876._0x52c2a5)||_0x187216===_0x5abeb6(_0x3c0876._0x1f5764);}__name(isFailingStatus,_0xbaf479(0x1ec));function foldScenarioRun(_0x3991f8,_0x248618){const _0x15bc15={_0x2a2f98:0x2e0,_0x3e18f8:0x26a,_0x1a8b4b:0x234,_0x3b4d73:0x257},_0x5dcfe8=_0xbaf479,_0x5766c3={'lastRunId':_0x248618['runId'],'lastStatus':_0x248618[_0x5dcfe8(_0x15bc15._0x2a2f98)],'lastAt':_0x248618[_0x5dcfe8(_0x15bc15._0x3e18f8)],'lastDurationMs':_0x248618['durationMs'],'recent':[..._0x3991f8?.[_0x5dcfe8(_0x15bc15._0x1a8b4b)]??[],_0x248618[_0x5dcfe8(0x2e0)]]['slice'](-SCENARIO_RECENT_WINDOW)};if(!isFailingStatus(_0x248618[_0x5dcfe8(0x2e0)]))return{..._0x5766c3,'failStreak':0x0,'failingSince':null};const _0x4eb5ff=(_0x3991f8?.[_0x5dcfe8(_0x15bc15._0x3b4d73)]??0x0)+0x1;return{..._0x5766c3,'failStreak':_0x4eb5ff,'failingSince':_0x4eb5ff===0x1?_0x248618[_0x5dcfe8(0x26a)]:_0x3991f8?.['failingSince']??_0x248618[_0x5dcfe8(0x26a)]};}__name(foldScenarioRun,_0xbaf479(0x2ce));function scenarioIndexFileName(_0x8b37a0){const _0x3b1bc0={_0x2fa138:0x321},_0x5d16ff=_0xbaf479;return encodeURIComponent(_0x8b37a0)+_0x5d16ff(_0x3b1bc0._0x2fa138);}__name(scenarioIndexFileName,_0xbaf479(0x1f2));function scenarioRefFromFileName(_0x3efdc7){const _0x94594={_0x3e97d2:0x321},_0x3a53dd=_0xbaf479;if(!_0x3efdc7[_0x3a53dd(0x304)](_0x3a53dd(_0x94594._0x3e97d2)))return null;try{return decodeURIComponent(_0x3efdc7[_0x3a53dd(0x2b0)](0x0,-'.jsonl'[_0x3a53dd(0x324)]));}catch{return null;}}__name(scenarioRefFromFileName,_0xbaf479(0x2ba));var CI_RUN_PATH=_0xbaf479(0x256),PROVIDER_IDS=['github',_0xbaf479(0x2e9),_0xbaf479(0x241)],RUN_ERROR_CODES=[_0xbaf479(0x274),_0xbaf479(0x2d5),_0xbaf479(0x233),_0xbaf479(0x268),_0xbaf479(0x2a1),_0xbaf479(0x28d),'storage'];function parseCiRunRequest(_0x20b1cc){const _0xae4ca3={_0x2ba2fd:0x324,_0x390cd1:0x29b,_0x2fe93a:0x29b},_0x5a912c=_0xbaf479;if(!isRecord(_0x20b1cc))return null;const {bundleId:_0x24bc4b,environment:_0x174d12,collections:_0xde679,pr:_0x2183d6,branch:_0x1bd61a,sha:_0x4dd8a6}=_0x20b1cc;if(typeof _0x24bc4b!=='string'||_0x24bc4b['length']===0x0)return null;if(typeof _0x174d12!==_0x5a912c(0x29b)||_0x174d12[_0x5a912c(_0xae4ca3._0x2ba2fd)]===0x0)return null;let _0x25dd6e=null;if(_0xde679!==void 0x0){if(!Array[_0x5a912c(0x2c2)](_0xde679))return null;if(_0xde679[_0x5a912c(0x2e6)](_0x9a4594=>typeof _0x9a4594!==_0x5a912c(0x29b)||_0x9a4594[_0x5a912c(0x324)]===0x0))return null;_0x25dd6e=_0xde679;}if(_0x2183d6!==void 0x0&&(typeof _0x2183d6!==_0x5a912c(0x309)||!Number[_0x5a912c(0x1e2)](_0x2183d6)))return null;for(const _0x3e594f of[_0x1bd61a,_0x4dd8a6]){if(_0x3e594f!==void 0x0&&typeof _0x3e594f!==_0x5a912c(0x29b))return null;}return{'bundleId':_0x24bc4b,'environment':_0x174d12,..._0x25dd6e?{'collections':_0x25dd6e}:{},...typeof _0x2183d6==='number'?{'pr':_0x2183d6}:{},...typeof _0x1bd61a===_0x5a912c(_0xae4ca3._0x390cd1)?{'branch':_0x1bd61a}:{},...typeof _0x4dd8a6===_0x5a912c(_0xae4ca3._0x2fe93a)?{'sha':_0x4dd8a6}:{}};}__name(parseCiRunRequest,'parseCiRunRequest');function _0x250a(){const _0x4387f9=['zxzLCNK','vu5pvevtvf8','zM9SzfnJzw5HCMLVuNvU','C3rKzxjYlMXVzW','Ag91CMX5','BwLUDxrLCW','CxvLDwvqCMLVCML0EvjHBMS','lNf1zxvL','ChvZAa','C2nVCguTBwLZBwf0y2G','yM94rw52u2vJCMv0uMv2zwfSugf0Aa','CgLJA2vYlxnUyxbZAg90lNr4Da','vu5pvevtvf9kvurhrv9quKvbtujmrq','iYaTls0G','C291CMnL','Aw5KzxHpzG','C3rKB3v0lMXVzW','AgvHCNrIzwf0','lNnLy3jLDhm','vhvL','C3rHDhvZ','C2vJCMv0C0nVBNrLBNq','vu5pvevtvf9cvu5etevFsuq','CM91BMq','kI81','vvrd','C29Tzq','BNvTyMvYCW','vu5pvevtvf9kvurhrv9dtefvrevFqKLo','z2L0BgfI','AxnszwnVCMq','C2nOzwr1BgvZwW','AxnbC3nPz25Tzw50tgLUzq','zMLUza','AxnfBNzwyxjoyw1L','icOGkIaQ','v2vK','rK9sq0vFq09mt1i','yM94vMfSDwvlAw5Kt2ztzwDTzw50','y3jLyxrLza','zM9YyMLKzgvU','ChjVAMvJDff1zxvLuM9VDa','CMvZzxj2zwrvBMrLCNnJB3jL','ufiGiW','zw52tMfTzxngCM9TrgLYtgLZDgLUzW','qvbqx0jbu0vFvvjm','vu5pvevtvf9ct1HFvvjm','BxvZDcbUB3qGC3rHCNqGD2L0AcaNlIC','icOV','C2HH','l2fWAs9IB3GVDMfSDwvZ','BwfPBNrLBMfUy2u','nhfYqMz1Ca','ne13quPbrW','Dw5RBM93BI1ZzwnYzxq','CgfYC2vcB3HtzwnYzxrszxzLywXszxnWB25Zzq','zw5KC1DPDgG','C3bSAxrmAw5LCW','Aw50zxjYDxb0zwq','zgf5CW','mZy4mdC1n1PPDgrKza','BNvTyMvY','CgfYC2vrDwv1zvrPy2TLDe5HBwu','z2v0vvrdrgf0zq','vu5pvevtvf9erujvr19quKvwsuvxx0jzvevt','DMfYAwfIBgvZ','z2v0twLUDxrLCW','C2nOzwr1BgvZ','CMvWBgfJzq','Dg9mB3DLCKnHC2u','vu5pvevtvf9kvurhrv9dquXmx1rjtuvpvvrFtvm','l2HLywX0Aa','CgfYC2vcB3HwywX1zxnszxnWB25Zzq','zMXHz3m','C2vJCMv0CW','C2v0twLUDxrLCW','yMXVyLbHDgHgB3i','y3jVBKzYB21tCgvJ','uNvUBMvYtM90q29UzMLNDxjLzevYCM9Y','C3rYAw5NAwz5','CgfKu3rHCNq','Bte1','mJG2odK4AfHuDKzR','tK9Fq09mt1i','x2nVBgXLy3rPB25Z','lMPZB25S','zw52rMLSzuzVCG','ywn0AxzLrw52tMfTzq','BgvUz3rO','CgXHBKfKzfzHCMLHyMXL','zM9YBwf0tMv4DfrPy2S','lM11Dgv4','C2nOzw1HvMvYC2LVBG','CMvTB3zLrw52vMfY','D2vLA2X5','Dw5VDgvZDc8Uzw52','DgvYBwLUywW','vu5pvevtvf9kvurhrv9quK9wsurfuG','BwvYz2vty2HLzhvSzxm','BwfW','vu5pvevtvf9rvuvvrv9mruftrq','BxvZDcbUB3qGC3rHCNqGD2L0AcaNxYCGkhjLC2vYDMvKkq','CgfYC2u','CgfYC2vcB3HtzwnYzxrZuMv2zwfSuMvZCg9UC2u','C2HHCMrqyxrOrM9YvgLTzxn0yw1W','DwjYxW','vu5pvevtvf9qt1bvuf9huKfdrv9nuW','ChjLCgfYzq','zgvJB2rLtMfTzuXPC3q','ntm0ody3ExvXC0HJ','x3nJzw5HCMLVCW','z2v0sg91CNm','CMfUAW','zMLUzeLUzgv4','CgfYC2vwywX1zuvUDMvSB3bL','zMfPBgvK','rNjP','C3bSAxq','CMvNzxHmAxrLCMfS','icOGkIa','DMfYAwfIBgu','yMXVyIbOyxnOig11C3qGyMuGBg93zxjJyxnLigHLEcWGz290oIa','vu5pvevtvf9erujvr19ive1mx01bwf9cwvrfuW','BMfTzq','Ag91CNm','C2HHCMrqyxrOrM9YuNvUswq','zgvZy3jPyMvtCgvJ','y2XP','CNvUswqGy2fYCMLLCYbUBYb0Aw1LC3rHBxaSignHBM5VDcbWBgfJzsbPDcbPBIbHihnOyxjKoIa','CgfYC2vlzwvWuMvJB3jK','yxbW','y29UzMLN','zw52','Dg9TB3jYB3CG','zgvZy3jPyMvdCM9U','icOGkIaQicO','yNjHBMnO','vu5pvevtvf9kvurhrv9bq0nfu1nFve9lru4','AxnjBNrLz2vY','vu5pvevtvf9ct1HFu0vduKvux05btuvt','yMXVyNnsB290rM9Y','yM94rw52vMfSDwvqyxrO','C3rVCMfNzq','AxnsDw5ZrgLYtMfTzq','y3jVBG','DMLLD2vY','CMvNzxG','iIdIGjqGB25LihnJAgvKDwXLihbLCIb0yxjNzxq','AxngywLSAw5Nu3rHDhvZ','yNvUzgXLswq','CgfYC2vty2HLzhvSzuvUDhj5','z2v0vgLTzq','zw50CMLLCW','C2vJCMv0','C2nLBMfYAw9jBMrLEezPBgvoyw1L','DgvTCgXHDgu','Bgf5zxjZrM9Y','vu5pvevtvf9kvurhrv9srvrssuvt','zxHPC3rZ','z2v0rgf5','vu5pvevtvf9erujvr19lruvqx0nbteXt','vu5pvevtvf9kvurhrv9it1nu','zxjYB3i','mJG3mNHSy0j1wG','vu5pvevtvf9ot19rvuvvrq','zxzLCNKGmtuGBwLU','DMfSAwrHDgvdB2XSzwn0Aw9UtMfTzq','CgfYC2vty2HLzhvSzxneB2m','zNjLCq','DMfSDwvZ','BwnW','zhvWBgLJyxrL','z2v0vvrdtw9UDgG','CxvLDwvqCMLVCML0EuzYB21syw5R','C3bSAwnL','CNvUDgLTzs5QC29U','z2L0','ywrK','y29TCgfYzvf1zxvLvgLJA2v0tMfTzxm','CMvTB3zLza','zxHWzwn0lwzHAwW','C3rHCNrpzKrHEq','DMfSDwu','AxnfEhrLCM5HBfzHCK5HBwu','C29YDa','vu5pvevtvf9kvurhrv9usu1ft1vux01t','DgfYz2v0','CgfYC2vdAvbYB3zPzgvY','ywjVCNrLza','z2v0vvrdrNvSBfLLyxi','y2fUB25Py2fSu2nOzwr1Bgvtzxq','yNvUzgXLlMPZB24','CgfK','DMfYAwfIBgvhyxbZ','z2v0uMfUzg9TvMfSDwvZ','CgfYC2vhAxrjBMzV','CgfYC2vcB3HszwfKrxjYB3i','y2fUBM90igXVywqGCNvUBMvYigfKyxb0zxiGiG','BMv4DfrPy2TgCM9Tu3bLyW','y3jLyxrLzef0','AxnuzxjTAw5HBfj1BNrPBwvtDgf0zq','C2nOzwr1BgvuyxjNzxq','ndy2odeWmfLcEMv1BW','CgfYC2vcB3HfBNzwywX1zxnszxbSywnLuMvXDwvZDa','vu5pvevtvf9cuK9xu0vs','vu5pvevtvf9kvurhrv9mt0DFtevwruW','vu5pvevtvf9erujvr19esvi','BxvZDcbUB3qGyMuGzw1WDhK','igLZig5VDcbHigTUB3DUihj1BM5LCIbZzxr0Aw5NiokaLcbJAg9VC2uGB25LigzYB20GDgHLihj1BM5LCI1JB25MAwCGBgLZDc4','uNvUBMvYqwrHChrLCK5VDezVDw5KrxjYB3i','ig5LzwrZigeGBMfTzq','C2v0u2vJB25KCW','mtG5n1jzwgr4sW','Dw5VDgvZDc8UC2vJCMv0CW','vu5pvevtvf9kvurhrv9ut0TftG','y29SBgvJDgLVBG','CgfYC2vfBNzdB250zw50','zxzLCNKGnsbTAw4','C3rHCNrZv2L0Aa','Dw5RBM93BI1LBNzPCM9UBwvUDa','CMvJzw50','zxHLyW','BxvZDcbIzsbHihn0CMLUzW','sw52ywXPzejSB2jiyxnOrxjYB3i','CMfUzg9T','vu5pvevtvf9ct1HFvKfssufctevFtKfnrvm','yxj0AwzHy3rZuM9VDezYB20','C3rLChmUANnVBMW','CgfYC2vtDhjPBMDszwnVCMq','C2nLBMfYAw8','CgfYC2vcDw5KBgvvCgXVywrszxnWB25Zzq','C2fUAxrPEMvsDw5jzfnLz21LBNq','vu5pvevtvf9kvurhrv9ts0Lqx1bsruzmsuDiva','yxbP','C2vJCMv0C0XHEwvYrMLSzxngB3i','CgfYC2vszxbSywnLuMvXDwvZDa','zgfPBhK','iI4G','iIbKB2vZig5VDcbZDxbWB3j0ihj1BIbRAw5Kici','CgfYC2voyw1LzfjLy29Yza','Dg9tDhjPBMC','yxbWlxnLCNzLCJPYzwfKEq','zMLSzq','zgvSzxrLu2HHzg93v2fYBMLUzW','AgfZ','A2LUza','CNvUBMLUzW','CgfYC2vcB3HwywX1zxnszxbSywnLuMvXDwvZDa','yxnZAwDUBwvUDevUDhjPzxm','lNzPzxDLCI5SB2C','AM9PBKXPBMvZ','uNvUBMvY','CNvU','Dg9KyxKG','l2fWAs9IB3GVy2KVCNvU','zMfPBfn0CMvHAW','AwqTBwLZBwf0y2G','D29YA2vYCW','CNvUC0rPCKzVCG','x2rHEs5QC29UBa','AxngAw5PDgu','ndaWmZbmCMn5suO','xsbYzxbLyxrZia','yM94rw52u2vJCMv0C1jLDMvHBfbHDgG','kI81icOGkIaQicO','BxvZDcbUB3qGy29UDgfPBIbCic8GoIaQid8GiIa8id4GFcbVCIbJB250CM9SignOyxjHy3rLCNm','u2f0','vu5pvevtvf9mt0DFtevwruW','C3bLy0zYB21dCM9U','lNzPzxDLCI5SB2nR','vu5pvevtvf9eruzbvuXux1rjtuvpvvrFtvm','CMvZzxj2zwq','Dw5RBM93BI1IDw5KBgu','x19WCM90B19F','C3rHCNrLzef0','yxv0Ag9YAw5N','l2P1zgDL','yM9VBgvHBG','zMXVB3i','C2HHCMreAxjgB3i','yxbWlxnLCNzLCJPLCNjVCG','zNjLzxPL','zw52s2v5CW','C291CMnLCY5QC29U','Dw5HDxrOB3jPEMvK','C2vYAwfSAxPLrw52vMfSDwu','ChjVDMLKzxi','vu5pvevtvf9mt0nbteu','nJq5BLzSBvbY','Ag9ZDa','lNDVCMTZCgfJzs5QC29U','B2jQzwn0','CgfYC2vty2vUyxjPB0fUBM90yxrPB25Z','Ec11BM90zxn0lwvUDMLYB25Tzw50','igLZigfSC28GC2v0igLUihvUB3rLC3qVlNnLy3jLDhmG4OcuihrOzsbZzwnYzxqGDMfSDwuGC2HHzg93CYb0AgLZig9Uzs4','vu5pvevtvf9rvuvvrv9hte9cquXFreLs','y29TBwfUzhmUANnVBMW','CgLK','CNvUlwLUlxbYB2DYzxnZ','A2v5CW','ic0Tlq','CxvLDwvK','CgfYC2voyw1LtgLZDa','vu5pvevtvf9kvurhrv9nt0rf','AM9PBG','AxnbBM5VDgf0Aw9UtgLUzq','zw52tgf5zxjgAwXLC0zVCG','AxntDhjPBMC','CNvUBMvYici','BwfSzM9YBwvK','C2nOzwr1Bgu','DhjPBq','zxzLCNKG','vu5pvevtvf9kvurhrv9nt0rfta','C3rYAw5NtgLZDa','Aw5JBhvKzxm','CMv2zwfS','CMvZzxj2zwrcB3HwywX1zu5HBwvZ','vu5pvevtvf9tte9xx01p','zMXHDe1HCa','vu5pvevtvf9kvurhrv9wt1rf','ztjL','DgvZDa','C3rYAw5N','vw5ZDxbWB3j0zwrsDw5lAw5KrxjYB3i','x2jSB2jZ','iokaLcbWAwnRigeGzgLMzMvYzw50ig5HBwuGB3iGzwrPDcb0AguGzxHPC3rPBMCGDMfSDwuU','vu5pvevtvf9cuK9xu0vsx0niqu5oruW','vu5pvevtvf9iruferuq','BM8Ty29SBgvJDgLVBNm','Dw5VDgvZDc9Zy2HLzhvSzxmUEwfTBa','C3bLyW','AdeY','CNvUBMvY','ChjVAMvJDfj1BNnsB290','CMf0zs1SAw1PDgvK','C2v0','DgvZDerPCKzVCG','y3j5ChrV','C2v0sg91CNm','zxHWzwn0zwqGysbTyxbWAw5NihDPDgGGysbGC2nOzwr1BgvZoMaGyxjYyxK','vu5pvevtvf9ftLy','xsbPCYbUB3qGysb2ywXPzcbLBNrYEsdIGjqGAxqGBMvLzhmGzxHHy3rSEsbVBMuGB2yGygnVBgXLy3rPB246ycaVigbZy2vUyxjPBZPGihbSDxmGysbGy3jVBJPGihn0CMLUzW','vu5pvevtvf9eruzbvuXux05bvKLhqvrjt05FveLnru9vvf9nuW','C2XPy2u','vu5pvevtvf9ct1HFuKvbrf9ut0TftG','BwfUAwzLC3qUANnVBG','Axntzwn0Aw9UrgL2AwrLCG','Dg9VlwXHCMDL','ig11C3qGyMuGvvbqrvjFu05bs0uGkguUzY4Gqvbqx0jbu0vFvvjmksbZBYbHihnJzw5HCMLVignHBIbYzwzLCMvUy2uGAxqGyNKGBMfTzs4','zw5JB2rLtMfTzuXPC3q','DgLJA2v0CW','zMLSDgvY','Dw5HDMfPBgfIBgu','C2nLBMfYAw9szwzgCM9TrMLSzu5HBwu','ChjVAMvJDfj1BKrPCKzVCG','igLZigfSC28GC2v0igLUihvUB3rLC3qVlMvUDIdIGjqGDgHLihnLy3jLDcb2ywX1zsbUB3CGC2HHzg93CYbPDc4','vu5pvevtvf9orvrxt1jl','CgfYC2vcB3HwywX1zvnLDfjLCxvLC3q','zgvJBgfYzwrfBNzlzxLZ','Aw50zxjHy3rPDMu','CgfYC2vbChbtzxj2zxjfDMvUDa','AxnbCNjHEq','y29TCgXLDgvK','zgLYDhK','CgfYC2vuAwnRzxrdAq','vu5pvevtvf9ct1HFve9lru4','ndyXmZu5mMHhzKrsDG','C2fTCgXL','AxnsDw5Uzxjtzxr0Aw5N','BwLUlxzLCNnPB24','AxnsDw5UzxjdB25MAwDlzxK'];_0x250a=function(){return _0x4387f9;};return _0x250a();}function parseCiRunResponse(_0x3da5ad){const _0x2ddf04={_0x1f4df4:0x1fa,_0x549393:0x29b,_0x3ed037:0x2c2,_0x47b8a3:0x29b},_0xda37cf=_0xbaf479;if(!isRecord(_0x3da5ad))return null;if(isRecord(_0x3da5ad['error'])){const {code:_0x5661f2,message:_0x26af90}=_0x3da5ad[_0xda37cf(_0x2ddf04._0x1f4df4)];if(!RUN_ERROR_CODES['includes'](_0x5661f2))return null;if(typeof _0x26af90!==_0xda37cf(0x29b))return null;return{'error':{'code':_0x5661f2,'message':_0x26af90}};}const {status:_0x2bff69,bundleId:_0x3db452,environment:_0x31108b,runs:_0x372273,superseded:_0x2e0db0}=_0x3da5ad;if(_0x2bff69!=='queued')return null;if(typeof _0x3db452!==_0xda37cf(_0x2ddf04._0x549393)||typeof _0x31108b!=='string')return null;if(!Array[_0xda37cf(_0x2ddf04._0x3ed037)](_0x372273))return null;const _0x221ed9=[];for(const _0x51b92f of _0x372273){if(!isRecord(_0x51b92f))return null;const {runId:_0x551c2a,collection:_0x3faaed}=_0x51b92f;if(typeof _0x551c2a!==_0xda37cf(_0x2ddf04._0x47b8a3)||typeof _0x3faaed!==_0xda37cf(0x29b))return null;_0x221ed9[_0xda37cf(0x2d4)]({'runId':_0x551c2a,'collection':_0x3faaed});}if(_0x2e0db0!==void 0x0&&typeof _0x2e0db0!==_0xda37cf(0x309))return null;return{'status':_0xda37cf(0x285),'bundleId':_0x3db452,'environment':_0x31108b,'runs':_0x221ed9,...typeof _0x2e0db0==='number'?{'superseded':_0x2e0db0}:{}};}__name(parseCiRunResponse,'parseCiRunResponse');function parseCiProvider(_0x136d63){const _0x44fb0d={_0x10b344:0x293},_0x2cf14b=_0xbaf479;return PROVIDER_IDS[_0x2cf14b(_0x44fb0d._0x10b344)](_0x136d63)?_0x136d63:null;}__name(parseCiProvider,_0xbaf479(0x213));var QUEUE_SUBDIR=_0xbaf479(0x2d3),QUEUE_TICKETS_DIR=_0xbaf479(0x2b7),QUEUE_RUNNING_DIR=_0xbaf479(0x24e),QUEUE_SLOTS_DIR='slots',QUEUE_MUTEX_FILE=_0xbaf479(0x327),QUEUE_LEASE_ENV=_0xbaf479(0x330),QUEUE_DISABLED_ENV=_0xbaf479(0x1fc),QUEUE_GLOBAL_DIR_ENV=_0xbaf479(0x27f),QUEUE_GLOBAL_SLOTS_ENV='UNOTEST_QUEUE_GLOBAL_SLOTS',QUEUE_SCHEMA_VERSION=0x1;function queueDirFor(_0x410767,_0xa339bf){return''+QUEUE_SUBDIR+_0x410767+(_0xa339bf?'.'+_0xa339bf:'');}__name(queueDirFor,'queueDirFor');function isQueueDirName(_0x1047fe){const _0x251ca9=_0xbaf479;return _0x1047fe===QUEUE_SUBDIR||_0x1047fe[_0x251ca9(0x232)](QUEUE_SUBDIR+'-')||_0x1047fe['startsWith'](QUEUE_SUBDIR+'.');}__name(isQueueDirName,'isQueueDirName');function projectQueueRoot(_0x7432e9='',_0x107f2a){return UNOTEST_DIR+'/'+queueDirFor(_0x7432e9,_0x107f2a);}__name(projectQueueRoot,_0xbaf479(0x2f5));var PRIORITY_RANKS=Object[_0xbaf479(0x271)]({'maintenance':0x0,'interactive':0x1,'ci':0x2,'schedule':0x3}),RANK_PRIORITIES=[_0xbaf479(0x2ff),_0xbaf479(0x2c0),'ci',_0xbaf479(0x28e)],QUEUE_PRIORITIES=RANK_PRIORITIES;function queuePriorityRank(_0x40e547){return PRIORITY_RANKS[_0x40e547];}__name(queuePriorityRank,_0xbaf479(0x2d2));function queuePriorityFromRank(_0x25a964){return RANK_PRIORITIES[_0x25a964]??null;}__name(queuePriorityFromRank,_0xbaf479(0x205));function describeTicketCi(_0x370c1b){const _0x31686b={_0x2659a7:0x2b0,_0x376fda:0x2f7,_0x7f56d6:0x1e0},_0x2faf8f=_0xbaf479,_0x23cdd9=_0x370c1b['sha']?'@'+_0x370c1b[_0x2faf8f(0x2fd)][_0x2faf8f(_0x31686b._0x2659a7)](0x0,0x7):'';if(_0x370c1b['pr']!==void 0x0)return _0x2faf8f(_0x31686b._0x376fda)+_0x370c1b['pr']+_0x23cdd9;if(_0x370c1b[_0x2faf8f(_0x31686b._0x7f56d6)]!==void 0x0)return''+_0x370c1b[_0x2faf8f(_0x31686b._0x7f56d6)]+_0x23cdd9;return _0x23cdd9[_0x2faf8f(0x324)]>0x0?_0x23cdd9[_0x2faf8f(0x2b0)](0x1):_0x370c1b[_0x2faf8f(0x276)];}__name(describeTicketCi,'describeTicketCi');function makeQueueTicketName(_0x378216,_0x8f8524,_0x58f8fc){return queuePriorityRank(_0x378216)+'-'+_0x8f8524['toString'](0x24)+'-'+_0x58f8fc+'.json';}__name(makeQueueTicketName,'makeQueueTicketName');var TICKET_NAME_RE=/^([0-3])-([0-9a-z]+)-([0-9a-f]+)\.json$/;function parseQueueTicketName(_0x479307){const _0x1a88b3={_0x104b99:0x25c},_0x544ea0=_0xbaf479,_0xe0785b=TICKET_NAME_RE[_0x544ea0(0x235)](_0x479307);if(!_0xe0785b)return null;const _0x58c72a=Number(_0xe0785b[0x1]),_0x502960=queuePriorityFromRank(_0x58c72a);if(_0x502960===null)return null;const _0x4c7576=parseInt(_0xe0785b[0x2],0x24);if(!Number[_0x544ea0(_0x1a88b3._0x104b99)](_0x4c7576))return null;return{'rank':_0x58c72a,'priority':_0x502960,'createdAt':_0x4c7576,'random':_0xe0785b[0x3]};}__name(parseQueueTicketName,_0xbaf479(0x30a));function compareQueueTicketNames(_0x3df8d6,_0x468966){const _0x3e5f34={_0x1137ab:0x33c,_0x57f693:0x21f,_0x1d87ca:0x21f,_0x1abf94:0x238},_0x4e7ae6=_0xbaf479,_0x389855=parseQueueTicketName(_0x3df8d6),_0x3e86ae=parseQueueTicketName(_0x468966);if(!_0x389855||!_0x3e86ae)return _0x3df8d6<_0x468966?-0x1:_0x3df8d6>_0x468966?0x1:0x0;if(_0x389855[_0x4e7ae6(0x33c)]!==_0x3e86ae['rank'])return _0x389855[_0x4e7ae6(_0x3e5f34._0x1137ab)]-_0x3e86ae['rank'];if(_0x389855[_0x4e7ae6(_0x3e5f34._0x57f693)]!==_0x3e86ae[_0x4e7ae6(_0x3e5f34._0x1d87ca)])return _0x389855['createdAt']-_0x3e86ae['createdAt'];return _0x389855['random']<_0x3e86ae[_0x4e7ae6(0x238)]?-0x1:_0x389855['random']>_0x3e86ae[_0x4e7ae6(_0x3e5f34._0x1abf94)]?0x1:0x0;}__name(compareQueueTicketNames,_0xbaf479(0x20a));var TICKET_KINDS=[_0xbaf479(0x23d),_0xbaf479(0x22f),_0xbaf479(0x26b),_0xbaf479(0x2ff)],PRODUCER_KINDS=[_0xbaf479(0x1d7),_0xbaf479(0x1e9),_0xbaf479(0x202),_0xbaf479(0x28e),'ci'];function parseQueueTicket(_0x1c3aed){const _0x157a45={_0x39b0d9:0x293,_0x44df88:0x309,_0x4f0403:0x25c,_0x38a456:0x281,_0x2f247e:0x1ed,_0x4f2020:0x29b,_0x72fe69:0x29b},_0x2e0347=_0xbaf479;if(!isRecord(_0x1c3aed))return null;const {schemaVersion:_0x580320,runId:_0x3dd54f,kind:_0x407ed3,ref:_0x2b69c4,env:_0x37d4c4,priority:_0x1893b5,weight:_0x5d85f8,producer:_0x402b16,source:_0x37e087,ci:_0x1b6ec4,createdAt:_0x53b4b0}=_0x1c3aed;if(_0x580320!==QUEUE_SCHEMA_VERSION)return null;if(typeof _0x3dd54f!==_0x2e0347(0x29b)||_0x3dd54f['length']===0x0)return null;if(typeof _0x2b69c4!=='string')return null;if(!TICKET_KINDS['includes'](_0x407ed3))return null;if(!QUEUE_PRIORITIES[_0x2e0347(_0x157a45._0x39b0d9)](_0x1893b5))return null;if(typeof _0x5d85f8!=='number'||!Number['isFinite'](_0x5d85f8)||_0x5d85f8<0x1)return null;if(typeof _0x53b4b0!==_0x2e0347(_0x157a45._0x44df88)||!Number[_0x2e0347(_0x157a45._0x4f0403)](_0x53b4b0))return null;if(!isRecord(_0x402b16))return null;if(!PRODUCER_KINDS['includes'](_0x402b16[_0x2e0347(0x24d)]))return null;if(typeof _0x402b16[_0x2e0347(_0x157a45._0x38a456)]!=='number'||typeof _0x402b16[_0x2e0347(0x279)]!=='string')return null;if(_0x37d4c4!==void 0x0&&typeof _0x37d4c4!==_0x2e0347(0x29b))return null;let _0x4d031e=null;if(_0x37e087!==void 0x0){if(!isRecord(_0x37e087)||typeof _0x37e087[_0x2e0347(_0x157a45._0x2f247e)]!==_0x2e0347(_0x157a45._0x4f2020)||_0x37e087['bundleId']['length']===0x0)return null;_0x4d031e={'bundleId':_0x37e087[_0x2e0347(0x1ed)]};}let _0x53f94c=null;if(_0x1b6ec4!==void 0x0){_0x53f94c=parseTicketCi(_0x1b6ec4);if(_0x53f94c===null)return null;}return{'schemaVersion':QUEUE_SCHEMA_VERSION,'runId':_0x3dd54f,'kind':_0x407ed3,'ref':_0x2b69c4,'priority':_0x1893b5,'weight':_0x5d85f8,'producer':{'kind':_0x402b16[_0x2e0347(0x24d)],'pid':_0x402b16['pid'],'host':_0x402b16[_0x2e0347(0x279)]},'createdAt':_0x53b4b0,...typeof _0x37d4c4===_0x2e0347(_0x157a45._0x72fe69)?{'env':_0x37d4c4}:{},..._0x4d031e?{'source':_0x4d031e}:{},..._0x53f94c?{'ci':_0x53f94c}:{}};}__name(parseQueueTicket,'parseQueueTicket');function parseTicketCi(_0x27159a){const _0x31d514={_0x33100b:0x276,_0x26cbe2:0x309,_0x511a08:0x29b,_0x5487be:0x309},_0x148f08=_0xbaf479;if(!isRecord(_0x27159a))return null;const _0x4242ba=parseCiProvider(_0x27159a[_0x148f08(_0x31d514._0x33100b)]);if(_0x4242ba===null)return null;const {repo:_0x28980f,branch:_0x57ae1a,sha:_0x186e2b,pr:_0x31e59d,checkId:_0x532e36}=_0x27159a;for(const _0x2f3e10 of[_0x28980f,_0x57ae1a,_0x186e2b,_0x532e36]){if(_0x2f3e10!==void 0x0&&typeof _0x2f3e10!==_0x148f08(0x29b))return null;}if(_0x31e59d!==void 0x0&&(typeof _0x31e59d!==_0x148f08(_0x31d514._0x26cbe2)||!Number[_0x148f08(0x1e2)](_0x31e59d)))return null;return{'provider':_0x4242ba,...typeof _0x28980f===_0x148f08(0x29b)?{'repo':_0x28980f}:{},...typeof _0x57ae1a===_0x148f08(_0x31d514._0x511a08)?{'branch':_0x57ae1a}:{},...typeof _0x186e2b===_0x148f08(_0x31d514._0x511a08)?{'sha':_0x186e2b}:{},...typeof _0x31e59d===_0x148f08(_0x31d514._0x5487be)?{'pr':_0x31e59d}:{},...typeof _0x532e36===_0x148f08(0x29b)?{'checkId':_0x532e36}:{}};}__name(parseTicketCi,_0xbaf479(0x2c5));var BUNDLE_SCHEMA_VERSION=0x1,BUNDLE_MANIFEST_FILE=_0xbaf479(0x217),BUNDLE_UPLOAD_PATH='/api/box/bundles',BOX_URL_ENV=_0xbaf479(0x2fa),BOX_TOKEN_ENV=_0xbaf479(0x2c6),BUNDLE_ID_ENV=_0xbaf479(0x2e2),SCHEDULES_FINGERPRINT_ENV='UNOTEST_SCHEDULES_FINGERPRINT';function parseGitInfo(_0x5c5228){const _0x194f58={_0xffc7ea:0x29b,_0x308322:0x29b},_0x9751eb=_0xbaf479;if(!isRecord(_0x5c5228))return null;const {repo:_0xe71b18,branch:_0x57257e,sha:_0x689f6b,dirty:_0x647a92}=_0x5c5228;if(typeof _0x647a92!==_0x9751eb(0x26d))return null;for(const _0x78faad of[_0xe71b18,_0x57257e,_0x689f6b]){if(_0x78faad!==void 0x0&&typeof _0x78faad!==_0x9751eb(_0x194f58._0xffc7ea))return null;}return{'dirty':_0x647a92,...typeof _0xe71b18===_0x9751eb(_0x194f58._0xffc7ea)?{'repo':_0xe71b18}:{},...typeof _0x57257e===_0x9751eb(0x29b)?{'branch':_0x57257e}:{},...typeof _0x689f6b===_0x9751eb(_0x194f58._0x308322)?{'sha':_0x689f6b}:{}};}__name(parseGitInfo,_0xbaf479(0x21b));function parseBundleManifest(_0x5ee82c){const _0x34bbf9={_0x2af96d:0x29b,_0x790c5:0x324,_0x522418:0x29a,_0x2f5749:0x309,_0x56074b:0x1e2,_0x533f2a:0x2b8,_0x316b40:0x29a},_0xab0056=_0xbaf479;if(!isRecord(_0x5ee82c))return null;const {schemaVersion:_0x4b23dd,bundleId:_0x3f1430,sha256:_0x1580fb,createdAt:_0x415d1e,webVersion:_0x5c5467,author:_0x5b412e,git:_0x57fb54,fileCount:_0x18efdd,byteSize:_0x396b7c,declaredVariables:_0x40a1f8,schedulesFingerprint:_0x1aaddc}=_0x5ee82c;if(_0x4b23dd!==BUNDLE_SCHEMA_VERSION)return null;if(typeof _0x3f1430!==_0xab0056(_0x34bbf9._0x2af96d)||_0x3f1430[_0xab0056(_0x34bbf9._0x790c5)]===0x0)return null;if(_0x1580fb!==void 0x0&&!/^[0-9a-f]{64}$/[_0xab0056(_0x34bbf9._0x522418)](String(_0x1580fb)))return null;if(typeof _0x5c5467!==_0xab0056(_0x34bbf9._0x2af96d)||_0x5c5467['length']===0x0)return null;if(typeof _0x415d1e!==_0xab0056(0x309)||!Number[_0xab0056(0x25c)](_0x415d1e))return null;if(typeof _0x18efdd!==_0xab0056(_0x34bbf9._0x2f5749)||!Number[_0xab0056(0x1e2)](_0x18efdd))return null;if(typeof _0x396b7c!==_0xab0056(0x309)||!Number[_0xab0056(_0x34bbf9._0x56074b)](_0x396b7c))return null;if(_0x5b412e!==void 0x0&&typeof _0x5b412e!==_0xab0056(0x29b))return null;let _0x184d6b=null;if(_0x57fb54!==void 0x0){_0x184d6b=parseGitInfo(_0x57fb54);if(_0x184d6b===null)return null;}const _0x129bb0=Array[_0xab0056(0x2c2)](_0x40a1f8)?_0x40a1f8[_0xab0056(_0x34bbf9._0x533f2a)](_0x5cac6d=>typeof _0x5cac6d==='string'):[],_0xd7d6e9=typeof _0x1aaddc===_0xab0056(0x29b)&&/^[0-9a-f]{64}$/[_0xab0056(_0x34bbf9._0x316b40)](_0x1aaddc)?_0x1aaddc:void 0x0;return{'schemaVersion':BUNDLE_SCHEMA_VERSION,'bundleId':_0x3f1430,...typeof _0x1580fb===_0xab0056(0x29b)?{'sha256':_0x1580fb}:{},'createdAt':_0x415d1e,'webVersion':_0x5c5467,'fileCount':_0x18efdd,'byteSize':_0x396b7c,...typeof _0x5b412e==='string'?{'author':_0x5b412e}:{},..._0x184d6b?{'git':_0x184d6b}:{},..._0x129bb0[_0xab0056(0x324)]>0x0?{'declaredVariables':_0x129bb0}:{},..._0xd7d6e9!==void 0x0?{'schedulesFingerprint':_0xd7d6e9}:{}};}__name(parseBundleManifest,'parseBundleManifest');function describeBundle(_0x27d8f4){const _0x311cc6={_0x27d72a:0x2fd,_0x382003:0x2c4},_0x55b8bf=_0xbaf479,_0x28ca7a=_0x27d8f4[_0x55b8bf(0x208)];if(!_0x28ca7a||_0x28ca7a[_0x55b8bf(0x1e0)]===void 0x0&&_0x28ca7a[_0x55b8bf(0x2fd)]===void 0x0)return _0x27d8f4[_0x55b8bf(0x1ed)];const _0x5e870c=_0x28ca7a[_0x55b8bf(_0x311cc6._0x27d72a)]?_0x28ca7a['sha']['slice'](0x0,0x7):'?',_0x59bcca=_0x28ca7a[_0x55b8bf(0x1e0)]??'?';return _0x59bcca+'@'+_0x5e870c+(_0x28ca7a[_0x55b8bf(_0x311cc6._0x382003)]?'\x20(wip)':'');}__name(describeBundle,'describeBundle');var UPLOAD_ERROR_CODES=['unauthorized',_0xbaf479(0x2b4),_0xbaf479(0x28d),_0xbaf479(0x258),_0xbaf479(0x2ca),_0xbaf479(0x2d5),_0xbaf479(0x1e6)];function parseBundleUploadResponse(_0x203fb9){const _0x407883={_0x569cdc:0x1fa,_0x5ae3af:0x2f3,_0x57c2b6:0x1f6,_0x51a106:0x324,_0x5b76e6:0x219},_0x59b20c=_0xbaf479;if(!isRecord(_0x203fb9))return null;if(isRecord(_0x203fb9[_0x59b20c(_0x407883._0x569cdc)])){const {code:_0x565083,message:_0x162782}=_0x203fb9[_0x59b20c(0x1fa)];if(!UPLOAD_ERROR_CODES['includes'](_0x565083))return null;if(typeof _0x162782!==_0x59b20c(0x29b))return null;return{'error':{'code':_0x565083,'message':_0x162782}};}const {status:_0x494e76,bundleId:_0x1e1f0f}=_0x203fb9;if(_0x494e76!==_0x59b20c(_0x407883._0x5ae3af)&&_0x494e76!==_0x59b20c(_0x407883._0x57c2b6))return null;if(typeof _0x1e1f0f!==_0x59b20c(0x29b)||_0x1e1f0f[_0x59b20c(_0x407883._0x51a106)]===0x0)return null;const _0x2c41dd=parseVariableGaps(_0x203fb9[_0x59b20c(_0x407883._0x5b76e6)]);return _0x2c41dd===null?{'status':_0x494e76,'bundleId':_0x1e1f0f}:{'status':_0x494e76,'bundleId':_0x1e1f0f,'variableGaps':_0x2c41dd};}__name(parseBundleUploadResponse,_0xbaf479(0x23e));function parseVariableGaps(_0x4ba3e3){const _0x3e1f32={_0x46cbe3:0x2c2,_0x33db1a:0x324,_0x4cda20:0x2d4},_0x2f369c=_0xbaf479;if(!Array[_0x2f369c(_0x3e1f32._0x46cbe3)](_0x4ba3e3))return null;const _0x9e2395=[];for(const _0x1140f3 of _0x4ba3e3){if(!isRecord(_0x1140f3))continue;const {project:_0x205bae,environment:_0x31bd9e,missing:_0x414ef1}=_0x1140f3;if(typeof _0x205bae!==_0x2f369c(0x29b)||typeof _0x31bd9e!=='string')continue;if(!Array[_0x2f369c(0x2c2)](_0x414ef1))continue;const _0x2af6fe=_0x414ef1[_0x2f369c(0x2b8)](_0x7ed29e=>typeof _0x7ed29e===_0x2f369c(0x29b));if(_0x2af6fe[_0x2f369c(_0x3e1f32._0x33db1a)]>0x0)_0x9e2395[_0x2f369c(_0x3e1f32._0x4cda20)]({'project':_0x205bae,'environment':_0x31bd9e,'missing':_0x2af6fe});}return _0x9e2395[_0x2f369c(0x324)]>0x0?_0x9e2395:null;}__name(parseVariableGaps,'parseVariableGaps');var BROWSER_ENV=_0xbaf479(0x224),BROWSER_CHANNEL_ENV='UNOTEST_BROWSER_CHANNEL',BUNDLED_BROWSER_CHANNEL='bundled',BOX_VARIABLE_NAMES_ENV=_0xbaf479(0x239),BOX_SECRET_NAMES_ENV=_0xbaf479(0x1e3);function encodeNameList(_0x155e6b){const _0x1114fa={_0x5a34e9:0x288},_0x57dbe4=_0xbaf479;return _0x155e6b[_0x57dbe4(_0x1114fa._0x5a34e9)](',');}__name(encodeNameList,_0xbaf479(0x2b6));function decodeNameList(_0x27da03){const _0x14daa6={_0x115b22:0x341},_0x574117=_0xbaf479;if(_0x27da03===void 0x0)return[];return _0x27da03[_0x574117(_0x14daa6._0x115b22)](',')[_0x574117(0x32f)](_0xcfcbdf=>_0xcfcbdf[_0x574117(0x28f)]())['filter'](_0x43de9e=>_0x43de9e!=='');}__name(decodeNameList,_0xbaf479(0x338));var ENV_KEY_RE=/^[A-Za-z_][A-Za-z0-9_]*$/,UNHOLDABLE_NAME=_0xbaf479(0x269);function isEnvVarName(_0x37727a){const _0x228653=_0xbaf479;return ENV_KEY_RE[_0x228653(0x29a)](_0x37727a)&&_0x37727a!==UNHOLDABLE_NAME;}__name(isEnvVarName,_0xbaf479(0x2ee));function*assignmentEntries(_0x1da616){const _0x5e6779={_0x281774:0x341,_0x3a0a1d:0x2b0,_0x4b4f3c:0x28f},_0x30da3d=_0xbaf479;for(const _0x289865 of _0x1da616[_0x30da3d(_0x5e6779._0x281774)](/\r?\n/)){const _0x10a4a6=_0x289865[_0x30da3d(0x28f)]();if(_0x10a4a6===''||_0x10a4a6[_0x30da3d(0x232)]('#'))continue;const _0x3a3b4e=_0x10a4a6[_0x30da3d(0x2db)]('=');if(_0x3a3b4e<=0x0)continue;const _0x53742d=_0x10a4a6[_0x30da3d(_0x5e6779._0x3a0a1d)](0x0,_0x3a3b4e)['trim']();if(!isEnvVarName(_0x53742d))continue;yield[_0x53742d,_0x10a4a6[_0x30da3d(0x2b0)](_0x3a3b4e+0x1)[_0x30da3d(_0x5e6779._0x4b4f3c)]()];}}__name(assignmentEntries,_0xbaf479(0x250));function parseEnvContent(_0x6b8bbc){const _0x4bc557={_0x5cdb80:0x324},_0x69fcdf=_0xbaf479,_0xbbd937={};for(const [_0x18cfd1,_0x376512]of assignmentEntries(_0x6b8bbc)){let _0x1b3347=_0x376512;if(_0x1b3347[_0x69fcdf(0x324)]>=0x2){const _0x3932f3=_0x1b3347[0x0],_0x56252a=_0x1b3347[_0x1b3347[_0x69fcdf(_0x4bc557._0x5cdb80)]-0x1];(_0x3932f3==='\x22'||_0x3932f3==='\x27')&&_0x3932f3===_0x56252a&&(_0x1b3347=_0x1b3347[_0x69fcdf(0x2b0)](0x1,-0x1));}_0xbbd937[_0x18cfd1]=_0x1b3347;}return _0xbbd937;}__name(parseEnvContent,_0xbaf479(0x230));function serializeEnvValue(_0x4305b9){const _0x1e16d5={_0x2d48b3:0x29a,_0x2d2bb5:0x29a,_0x17196c:0x310},_0x59031c=_0xbaf479;if(_0x4305b9==='')return'';if(/[\s#"'=\\]|^[`]/[_0x59031c(_0x1e16d5._0x2d48b3)](_0x4305b9)||/[\n\r]/[_0x59031c(_0x1e16d5._0x2d2bb5)](_0x4305b9)){const _0x5a11a4=_0x4305b9['replace'](/\\/g,'\x5c\x5c')['replace'](/"/g,'\x5c\x22')[_0x59031c(0x310)](/\n/g,'\x5cn')[_0x59031c(_0x1e16d5._0x17196c)](/\r/g,'\x5cr');return'\x22'+_0x5a11a4+'\x22';}return _0x4305b9;}__name(serializeEnvValue,_0xbaf479(0x275));function envKeys(_0x471437){const _0x54f3ce=_0xbaf479,_0x145952=new Set();for(const [_0x54793b]of assignmentEntries(_0x471437))_0x145952[_0x54f3ce(0x209)](_0x54793b);return _0x145952;}__name(envKeys,_0xbaf479(0x272));function declaredEnvKeys(_0x1f3e1c){const _0x4c8d5b={_0x18e3bc:0x209},_0x55c3b3=_0xbaf479,_0x1bda7a=new Set();for(const _0x4a0b79 of _0x1f3e1c[_0x55c3b3(0x341)](/\r?\n/)){const _0x2ed779=/^\s*(?:#\s*)?([A-Za-z_][A-Za-z0-9_]*)\s*=/[_0x55c3b3(0x235)](_0x4a0b79);if(_0x2ed779)_0x1bda7a[_0x55c3b3(_0x4c8d5b._0x18e3bc)](_0x2ed779[0x1]);}return _0x1bda7a;}__name(declaredEnvKeys,_0xbaf479(0x2bf));function isSectionDivider(_0xc3ab2b){const _0x578a8d={_0x371dce:0x28f},_0x5963c2=_0xbaf479,_0x5563b7=_0xc3ab2b[_0x5963c2(_0x578a8d._0x371dce)]();return _0x5563b7[_0x5963c2(0x232)]('#')&&/---/['test'](_0x5563b7);}__name(isSectionDivider,_0xbaf479(0x2b3));function isAssignmentLine(_0x3a5cc1){const _0x47de11={_0x3f7c59:0x28f},_0x319f3a=_0xbaf479,_0x5ac56a=_0x3a5cc1['trim']();if(_0x5ac56a===''||_0x5ac56a['startsWith']('#'))return![];const _0x539d92=_0x5ac56a[_0x319f3a(0x2db)]('=');return _0x539d92>0x0&&ENV_KEY_RE[_0x319f3a(0x29a)](_0x5ac56a['slice'](0x0,_0x539d92)[_0x319f3a(_0x47de11._0x3f7c59)]());}__name(isAssignmentLine,_0xbaf479(0x2ec));function isAssignmentOf(_0x519928,_0x2471f3){const _0x5bc50a={_0x154b54:0x28f,_0x14a6db:0x232,_0x32c3eb:0x2db,_0x3a90ba:0x2b0},_0x47f88d=_0xbaf479,_0x2cd23a=_0x519928[_0x47f88d(_0x5bc50a._0x154b54)]();if(_0x2cd23a===''||_0x2cd23a[_0x47f88d(_0x5bc50a._0x14a6db)]('#'))return![];const _0x3a0794=_0x2cd23a[_0x47f88d(_0x5bc50a._0x32c3eb)]('=');if(_0x3a0794<=0x0)return![];return _0x2cd23a[_0x47f88d(_0x5bc50a._0x3a90ba)](0x0,_0x3a0794)[_0x47f88d(0x28f)]()===_0x2471f3;}__name(isAssignmentOf,'isAssignmentOf');function splitLines(_0x4fa4a1){const _0x469c82={_0x2675a8:0x2b0},_0xfd3c29=_0xbaf479,_0x25567c=_0x4fa4a1['endsWith']('\x0a'),_0x2497d0=_0x25567c?_0x4fa4a1[_0xfd3c29(_0x469c82._0x2675a8)](0x0,-0x1):_0x4fa4a1;return{'lines':_0x2497d0===''?[]:_0x2497d0[_0xfd3c29(0x341)]('\x0a'),'trailingNewline':_0x25567c};}__name(splitLines,_0xbaf479(0x305));function joinLines(_0x3bc250,_0x69927d){const _0x3f092b=_0xbaf479,_0x412f83=_0x3bc250[_0x3f092b(0x288)]('\x0a');return _0x69927d||_0x412f83===''?_0x412f83+'\x0a':_0x412f83;}__name(joinLines,_0xbaf479(0x252));function insertEnvVar(_0x927724,_0x453023,_0x16a03d,_0x592a49){const _0x31961f={_0x2cde3d:0x311,_0x271993:0x324,_0x5a4737:0x2d9,_0x1f73fc:0x2d4},_0x2f00b0=_0xbaf479,_0xf7d10d=_0x453023+'='+serializeEnvValue(_0x16a03d),{lines:_0x444c17,trailingNewline:_0x38b5d6}=splitLines(_0x927724);if(_0x592a49){const _0x2225eb=new RegExp('\x5cb'+_0x592a49[_0x2f00b0(_0x31961f._0x2cde3d)]()+'\x5cb'),_0x5bae64=_0x444c17[_0x2f00b0(0x33d)](_0x40014a=>isSectionDivider(_0x40014a)&&_0x2225eb[_0x2f00b0(0x29a)](_0x40014a[_0x2f00b0(0x311)]()));if(_0x5bae64!==-0x1){let _0x3c55e0=_0x444c17[_0x2f00b0(_0x31961f._0x271993)];for(let _0x220227=_0x5bae64+0x1;_0x220227<_0x444c17[_0x2f00b0(0x324)];_0x220227++){if(isSectionDivider(_0x444c17[_0x220227])){_0x3c55e0=_0x220227;break;}}let _0xa38487=-0x1,_0x3c5ff0=-0x1;for(let _0x3f0435=_0x5bae64+0x1;_0x3f0435<_0x3c55e0;_0x3f0435++){if(_0x444c17[_0x3f0435][_0x2f00b0(0x28f)]()!=='')_0x3c5ff0=_0x3f0435;if(isAssignmentLine(_0x444c17[_0x3f0435]))_0xa38487=_0x3f0435;}const _0x283c17=_0xa38487>=0x0?_0xa38487:_0x3c5ff0,_0x2cd19a=_0x283c17>=0x0?_0x283c17+0x1:_0x5bae64+0x1;return _0x444c17[_0x2f00b0(0x206)](_0x2cd19a,0x0,_0xf7d10d),joinLines(_0x444c17,_0x38b5d6||_0x444c17[_0x2f00b0(0x324)]>0x0);}if(_0x444c17[_0x2f00b0(0x324)]>0x0)_0x444c17['push']('');return _0x444c17[_0x2f00b0(0x2d4)](_0x2f00b0(_0x31961f._0x5a4737)+_0x592a49+_0x2f00b0(0x284),_0xf7d10d),joinLines(_0x444c17,!![]);}return _0x444c17[_0x2f00b0(_0x31961f._0x1f73fc)](_0xf7d10d),joinLines(_0x444c17,!![]);}__name(insertEnvVar,'insertEnvVar');function removeEnvVar(_0x1f447e,_0x1fb61c){const _0x338ca4={_0x31e298:0x2b8,_0x25d780:0x324},_0x56ba90=_0xbaf479,{lines:_0x22bcb7,trailingNewline:_0x127b53}=splitLines(_0x1f447e),_0x2d611d=_0x22bcb7[_0x56ba90(_0x338ca4._0x31e298)](_0x3698e1=>!isAssignmentOf(_0x3698e1,_0x1fb61c)),_0x469931=_0x2d611d[_0x56ba90(0x324)]!==_0x22bcb7[_0x56ba90(_0x338ca4._0x25d780)];return{'content':joinLines(_0x2d611d,_0x127b53),'removed':_0x469931};}__name(removeEnvVar,_0xbaf479(0x329));var TARGET_ENV_VAR=_0xbaf479(0x2f9),RUNNER_SETTING_PREFIX=_0xbaf479(0x2cd);function isRunnerSetting(_0x2a6fdb){const _0x3dd724=_0xbaf479;return _0x2a6fdb[_0x3dd724(0x232)](RUNNER_SETTING_PREFIX);}__name(isRunnerSetting,_0xbaf479(0x2c9));var BOX_VALUES_PATH=_0xbaf479(0x2fe),BOX_ENV_VALUES_SEGMENT=_0xbaf479(0x201),BOX_REVEAL_SEGMENT=_0xbaf479(0x294),KIND_SEGMENTS={'variable':_0xbaf479(0x30d),'secret':_0xbaf479(0x316)};function boxValueKindOfSegment(_0x5cd8ef){const _0x1474b9={_0x2036c6:0x1f0},_0x2b1b43=_0xbaf479;for(const [_0x161f2a,_0x4fb983]of Object[_0x2b1b43(_0x1474b9._0x2036c6)](KIND_SEGMENTS)){if(_0x4fb983===_0x5cd8ef)return _0x161f2a;}return null;}__name(boxValueKindOfSegment,_0xbaf479(0x2f2));function boxValuesPath(_0x3511d8){return BOX_VALUES_PATH+'/'+encodeURIComponent(_0x3511d8);}__name(boxValuesPath,'boxValuesPath');function boxValuePath(_0x437e3d,_0x58c0a7,_0x20e546){return boxValuesPath(_0x437e3d)+'/'+valueSuffix(_0x58c0a7,_0x20e546);}__name(boxValuePath,'boxValuePath');function boxEnvValuesPath(_0x2bae56,_0x3c8e08){return'/api/box/envs/'+encodeURIComponent(_0x2bae56)+'/'+encodeURIComponent(_0x3c8e08)+'/'+BOX_ENV_VALUES_SEGMENT;}__name(boxEnvValuesPath,'boxEnvValuesPath');function boxEnvValuePath(_0x520b3e,_0x2b2ead,_0x42333c,_0x188052){return boxEnvValuesPath(_0x520b3e,_0x2b2ead)+'/'+valueSuffix(_0x42333c,_0x188052);}__name(boxEnvValuePath,_0xbaf479(0x1e5));function boxEnvSecretRevealPath(_0x40a1f1,_0x5db7c4,_0x5a8157){const _0x5aaa38={_0xf8723e:0x1f1},_0x1152a8=_0xbaf479;return boxEnvValuePath(_0x40a1f1,_0x5db7c4,_0x1152a8(_0x5aaa38._0xf8723e),_0x5a8157)+'/'+BOX_REVEAL_SEGMENT;}__name(boxEnvSecretRevealPath,_0xbaf479(0x2d6));function boxEnvSecretsRevealPath(_0x54632e,_0xa223a8){return boxEnvValuesPath(_0x54632e,_0xa223a8)+'/'+BOX_REVEAL_SEGMENT;}__name(boxEnvSecretsRevealPath,_0xbaf479(0x25f));function valueSuffix(_0x184da4,_0x2b949c){const _0xda388d={_0x50bbec:0x212,_0x1c3e02:0x22a},_0x425f24=_0xbaf479;if(_0x184da4===_0x425f24(_0xda388d._0x50bbec))return'target';if(_0x2b949c===void 0x0)throw new Error('a\x20'+_0x184da4+_0x425f24(_0xda388d._0x1c3e02));return KIND_SEGMENTS[_0x184da4]+'/'+encodeURIComponent(_0x2b949c);}__name(valueSuffix,'valueSuffix');function parseBoxValuesReplaceRequest(_0x3d0f4e){return parseReplaceRequest(_0x3d0f4e,parseStringRecord);}__name(parseBoxValuesReplaceRequest,_0xbaf479(0x24f));function parseBoxEnvValuesReplaceRequest(_0x7cd8e1){return parseReplaceRequest(_0x7cd8e1,parseKeepRecord);}__name(parseBoxEnvValuesReplaceRequest,_0xbaf479(0x223));function parseBoxValueSetRequest(_0x29c7d6){return parseValueEnvelope(_0x29c7d6);}__name(parseBoxValueSetRequest,_0xbaf479(0x2be));function reservedBoxValueNames(_0x11f848){const _0x3ceef3={_0x469822:0x283,_0x3a42f6:0x316},_0x104d27=_0xbaf479;return[...Object[_0x104d27(0x283)](_0x11f848[_0x104d27(0x30d)]),...Object[_0x104d27(_0x3ceef3._0x469822)](_0x11f848[_0x104d27(_0x3ceef3._0x3a42f6)])]['filter'](_0x456da7=>_0x456da7===TARGET_ENV_VAR);}__name(reservedBoxValueNames,_0xbaf479(0x295));function parseReplaceRequest(_0x260b8a,_0x487de9){if(!isRecord(_0x260b8a))return null;const {target:_0x5c918d,variables:_0x2d4be7,secrets:_0x2a5bdb}=_0x260b8a;if(_0x5c918d!==void 0x0&&typeof _0x5c918d!=='string')return null;const _0x206a76=parseStringRecord(_0x2d4be7),_0x209016=_0x487de9(_0x2a5bdb);if(_0x206a76===null||_0x209016===null)return null;return{...typeof _0x5c918d==='string'?{'target':_0x5c918d}:{},'variables':_0x206a76,'secrets':_0x209016};}__name(parseReplaceRequest,_0xbaf479(0x243));function parseValueEnvelope(_0x174085){const _0xf25862=_0xbaf479;if(!isRecord(_0x174085))return null;return typeof _0x174085['value']===_0xf25862(0x29b)?{'value':_0x174085[_0xf25862(0x20e)]}:null;}__name(parseValueEnvelope,_0xbaf479(0x33e));function parseStringRecord(_0x22df61){return parseNamedRecord(_0x22df61,isString);}__name(parseStringRecord,_0xbaf479(0x23c));function parseKeepRecord(_0x51d667){return parseNamedRecord(_0x51d667,_0x34f064=>_0x34f064===null||isString(_0x34f064));}__name(parseKeepRecord,_0xbaf479(0x1d9));function parseNamedRecord(_0x197ffb,_0x3089f6){const _0x102774=_0xbaf479;if(!isRecord(_0x197ffb))return null;const _0x17e720={};for(const [_0x9a4e36,_0x58e76f]of Object[_0x102774(0x1f0)](_0x197ffb)){if(!isEnvVarName(_0x9a4e36)||!_0x3089f6(_0x58e76f))return null;_0x17e720[_0x9a4e36]=_0x58e76f;}return _0x17e720;}__name(parseNamedRecord,_0xbaf479(0x247));function isString(_0x5ede33){const _0x2674ce={_0x781201:0x29b},_0x54b987=_0xbaf479;return typeof _0x5ede33===_0x54b987(_0x2674ce._0x781201);}__name(isString,_0xbaf479(0x28b));var VALUES_ERROR_CODES=[_0xbaf479(0x274),_0xbaf479(0x2f4),_0xbaf479(0x2d5),_0xbaf479(0x233),_0xbaf479(0x302),_0xbaf479(0x267),'malformed','storage'],VALUE_KINDS=[_0xbaf479(0x212),_0xbaf479(0x344),_0xbaf479(0x1f1)];function parseBoxValuesResponse(_0x3da9e1){const _0x29182c={_0x2c0393:0x30d,_0x577b82:0x212,_0x585e6b:0x2a8,_0x1d4187:0x20b,_0x392127:0x29b},_0x3c7ca6=_0xbaf479;if(!isRecord(_0x3da9e1))return null;if(isRecord(_0x3da9e1[_0x3c7ca6(0x1fa)])){const {code:_0x54a171,message:_0x52d6a2}=_0x3da9e1['error'];if(!VALUES_ERROR_CODES[_0x3c7ca6(0x293)](_0x54a171))return null;if(typeof _0x52d6a2!==_0x3c7ca6(0x29b))return null;return{'error':{'code':_0x54a171,'message':_0x52d6a2}};}const {status:_0x226456,environment:_0x235dd8}=_0x3da9e1;if(typeof _0x235dd8!=='string')return null;if(_0x226456==='replaced'){const {target:_0x3ca11d,variables:_0x1c1696,secrets:_0x319ba6,removed:_0x58825}=_0x3da9e1;if(typeof _0x3ca11d!==_0x3c7ca6(0x26d))return null;const _0x5e89b4=parseNameList(_0x1c1696),_0x29a048=parseNameList(_0x319ba6);if(_0x5e89b4===null||_0x29a048===null||!isRecord(_0x58825))return null;const _0x3e31ec=parseNameList(_0x58825[_0x3c7ca6(_0x29182c._0x2c0393)]),_0xc34e64=parseNameList(_0x58825[_0x3c7ca6(0x316)]);if(typeof _0x58825[_0x3c7ca6(_0x29182c._0x577b82)]!==_0x3c7ca6(0x26d)||_0x3e31ec===null||_0xc34e64===null)return null;return{'status':_0x226456,'environment':_0x235dd8,'target':_0x3ca11d,'variables':_0x5e89b4,'secrets':_0x29a048,'removed':{'target':_0x58825[_0x3c7ca6(0x212)],'variables':_0x3e31ec,'secrets':_0xc34e64}};}if(_0x226456===_0x3c7ca6(_0x29182c._0x585e6b)||_0x226456===_0x3c7ca6(_0x29182c._0x1d4187)){const {kind:_0x4f5bc6,name:_0x17ca2b}=_0x3da9e1;if(!VALUE_KINDS[_0x3c7ca6(0x293)](_0x4f5bc6))return null;if(_0x17ca2b!==void 0x0&&typeof _0x17ca2b!==_0x3c7ca6(0x29b))return null;return{'status':_0x226456,'environment':_0x235dd8,'kind':_0x4f5bc6,...typeof _0x17ca2b===_0x3c7ca6(_0x29182c._0x392127)?{'name':_0x17ca2b}:{}};}return null;}__name(parseBoxValuesResponse,_0xbaf479(0x314));function parseNameList(_0x176508){const _0x524b54=_0xbaf479;if(!Array[_0x524b54(0x2c2)](_0x176508))return null;return _0x176508[_0x524b54(0x2cc)](_0x2983b0=>typeof _0x2983b0===_0x524b54(0x29b))?_0x176508:null;}__name(parseNameList,_0xbaf479(0x286));function parseBoxSecretRevealResponse(_0x262224){return parseValueEnvelope(_0x262224);}__name(parseBoxSecretRevealResponse,_0xbaf479(0x303));function parseBoxSecretsRevealResponse(_0x2cf9ea){return parseStringRecord(_0x2cf9ea);}__name(parseBoxSecretsRevealResponse,_0xbaf479(0x333));var BOX_READ_TOKEN_ENV=_0xbaf479(0x2b1),BOX_READ_TOKEN_PREFIX=_0xbaf479(0x335),BOX_READ_ENVIRONMENT_HEADER=_0xbaf479(0x27d),BOX_READ_ENVIRONMENTS_PATH='/_guard/api/envs',READ_ERROR_CODES=[_0xbaf479(0x274),'forbidden',_0xbaf479(0x233),'not-found',_0xbaf479(0x2a7),_0xbaf479(0x282),_0xbaf479(0x2b9),_0xbaf479(0x28d)];function parseBoxReadError(_0xdab737){if(!isRecord(_0xdab737)||!isRecord(_0xdab737['error']))return null;const {code:_0xcaa561,message:_0x3270ba}=_0xdab737['error'];if(!READ_ERROR_CODES['includes'](_0xcaa561))return null;if(typeof _0x3270ba!=='string')return null;return{'error':{'code':_0xcaa561,'message':_0x3270ba}};}__name(parseBoxReadError,_0xbaf479(0x21c));function parseBoxReadEnvironments(_0x56107b){const _0x2f578f={_0x3cfcca:0x2d4},_0x1da72e=_0xbaf479;if(!Array[_0x1da72e(0x2c2)](_0x56107b))return null;const _0x353d2a=[];for(const _0x3e30a4 of _0x56107b){if(!isRecord(_0x3e30a4))return null;const {name:_0x540116,project:_0x7c3b00,environment:_0xa945ab,note:_0x440c19}=_0x3e30a4;if(typeof _0x540116!=='string'||typeof _0xa945ab!==_0x1da72e(0x29b))return null;if(_0x7c3b00!==void 0x0&&typeof _0x7c3b00!==_0x1da72e(0x29b))return null;if(_0x440c19!==void 0x0&&typeof _0x440c19!=='string')return null;_0x353d2a[_0x1da72e(_0x2f578f._0x3cfcca)]({'name':_0x540116,'environment':_0xa945ab,..._0x7c3b00!==void 0x0?{'project':_0x7c3b00}:{},..._0x440c19!==void 0x0?{'note':_0x440c19}:{}});}return _0x353d2a;}__name(parseBoxReadEnvironments,'parseBoxReadEnvironments');var WORKSPACE_SCHEMA_VERSION=0x1,WORKSPACE_FILE=_0xbaf479(0x27a);function stringList(_0x191413){const _0x5b08cc={_0x4435c7:0x2c2},_0xaf879c=_0xbaf479;if(!Array[_0xaf879c(_0x5b08cc._0x4435c7)](_0x191413))return null;if(_0x191413[_0xaf879c(0x2e6)](_0x4bd841=>typeof _0x4bd841!=='string'))return null;return _0x191413;}__name(stringList,_0xbaf479(0x292));function parseBundle(_0x1872a8){const _0x3b8270={_0x5c95af:0x324,_0x89cede:0x29b,_0x398495:0x26d,_0x13e0e4:0x29b,_0x29742d:0x29b},_0x32f352=_0xbaf479;if(!isRecord(_0x1872a8))return null;const {bundleId:_0x138720,label:_0x1e677e,branch:_0x45c229,sha:_0x174e2b,dirty:_0x543a85,author:_0x355d8,createdAt:_0x275904,webVersion:_0x10bae4}=_0x1872a8;if(typeof _0x138720!==_0x32f352(0x29b)||_0x138720[_0x32f352(_0x3b8270._0x5c95af)]===0x0)return null;if(typeof _0x1e677e!==_0x32f352(_0x3b8270._0x89cede)||typeof _0x10bae4!==_0x32f352(0x29b))return null;if(typeof _0x543a85!==_0x32f352(_0x3b8270._0x398495))return null;if(typeof _0x275904!==_0x32f352(0x309)||!Number['isFinite'](_0x275904))return null;for(const _0x422573 of[_0x45c229,_0x174e2b,_0x355d8]){if(_0x422573!==void 0x0&&typeof _0x422573!==_0x32f352(0x29b))return null;}return{'bundleId':_0x138720,'label':_0x1e677e,'dirty':_0x543a85,'createdAt':_0x275904,'webVersion':_0x10bae4,...typeof _0x45c229===_0x32f352(_0x3b8270._0x13e0e4)?{'branch':_0x45c229}:{},...typeof _0x174e2b===_0x32f352(_0x3b8270._0x29742d)?{'sha':_0x174e2b}:{},...typeof _0x355d8==='string'?{'author':_0x355d8}:{}};}__name(parseBundle,'parseBundle');function parseWorkspaceFile(_0x4aa94b){const _0x59e2d4={_0x3c5c6c:0x29b,_0x230297:0x26d,_0x10c224:0x2c2,_0x31798b:0x2d4},_0x2d66a4=_0xbaf479;if(!isRecord(_0x4aa94b))return null;if(_0x4aa94b[_0x2d66a4(0x328)]!==WORKSPACE_SCHEMA_VERSION)return null;const {workspace:_0x5ac69e,environment:_0x120c97,allowSwitch:_0x3f7aff,currentBundleId:_0x29bc93,switchedBy:_0xaa4f3b,switchedAt:_0x13ee1b,bundles:_0x52a38d,variables:_0xa543f2,secrets:_0x1ccb92,switchPath:_0x3d7d3b}=_0x4aa94b;if(typeof _0x5ac69e!==_0x2d66a4(_0x59e2d4._0x3c5c6c)||typeof _0x120c97!=='string')return null;if(typeof _0x3f7aff!==_0x2d66a4(_0x59e2d4._0x230297))return null;if(!Array[_0x2d66a4(_0x59e2d4._0x10c224)](_0x52a38d))return null;const _0x5c2c15=[];for(const _0x5bf753 of _0x52a38d){const _0x419814=parseBundle(_0x5bf753);if(!_0x419814)return null;_0x5c2c15[_0x2d66a4(_0x59e2d4._0x31798b)](_0x419814);}const _0x33b854=stringList(_0xa543f2),_0x4b67bd=stringList(_0x1ccb92);if(!_0x33b854||!_0x4b67bd)return null;for(const _0x1a2a09 of[_0x29bc93,_0xaa4f3b,_0x3d7d3b]){if(_0x1a2a09!==void 0x0&&typeof _0x1a2a09!==_0x2d66a4(0x29b))return null;}if(_0x13ee1b!==void 0x0&&typeof _0x13ee1b!==_0x2d66a4(0x309))return null;return{'schemaVersion':WORKSPACE_SCHEMA_VERSION,'workspace':_0x5ac69e,'environment':_0x120c97,'allowSwitch':_0x3f7aff,'bundles':_0x5c2c15,'variables':_0x33b854,'secrets':_0x4b67bd,...typeof _0x29bc93===_0x2d66a4(0x29b)?{'currentBundleId':_0x29bc93}:{},...typeof _0xaa4f3b===_0x2d66a4(0x29b)?{'switchedBy':_0xaa4f3b}:{},...typeof _0x13ee1b==='number'?{'switchedAt':_0x13ee1b}:{},...typeof _0x3d7d3b===_0x2d66a4(0x29b)?{'switchPath':_0x3d7d3b}:{}};}__name(parseWorkspaceFile,'parseWorkspaceFile');function scheduleTarget(_0x235d5b){const _0x1edb68={_0x2fda6c:0x22f,_0x3f7478:0x22f},_0x2f7071=_0xbaf479;return _0x235d5b[_0x2f7071(_0x1edb68._0x2fda6c)]!==void 0x0?{'kind':_0x2f7071(_0x1edb68._0x3f7478),'name':_0x235d5b[_0x2f7071(_0x1edb68._0x2fda6c)]}:{'kind':_0x2f7071(0x23d),'name':_0x235d5b['scenario']};}__name(scheduleTarget,_0xbaf479(0x221));function parseScheduleEntry(_0x49ffc1){const _0x52b7d0={_0x27e315:0x29b,_0x215e55:0x22f,_0x340774:0x1e2,_0x5a1462:0x1db,_0x23f1c3:0x24a},_0x3fd708=_0xbaf479;if(!isRecord(_0x49ffc1))return null;const {collection:_0x3e3127,scenario:_0x3525b7,cron:_0x4fa719,env:_0x3b7083,prepare:_0x1029fe,workers:_0x1c4870,source:_0x34e93f}=_0x49ffc1,_0x3eb9c6=typeof _0x3e3127===_0x3fd708(_0x52b7d0._0x27e315)&&_0x3e3127[_0x3fd708(0x324)]>0x0?_0x3525b7===void 0x0?{'collection':_0x3e3127}:null:typeof _0x3525b7===_0x3fd708(0x29b)&&_0x3525b7['length']>0x0&&_0x3e3127===void 0x0?{'scenario':_0x3525b7}:null;if(_0x3eb9c6===null)return null;if(typeof _0x4fa719!==_0x3fd708(0x29b)||_0x4fa719['trim']()['length']===0x0)return null;if(_0x3b7083!==void 0x0&&typeof _0x3b7083!==_0x3fd708(0x29b))return null;if(_0x1029fe!==void 0x0&&typeof _0x1029fe!==_0x3fd708(0x29b))return null;const _0x7a6189=_0x3fd708(_0x52b7d0._0x215e55)in _0x3eb9c6&&typeof _0x1c4870==='number'&&Number[_0x3fd708(_0x52b7d0._0x340774)](_0x1c4870)&&_0x1c4870>=0x1?_0x1c4870:void 0x0,_0x2c537b=_0x34e93f===_0x3fd708(_0x52b7d0._0x5a1462)||_0x34e93f===_0x3fd708(_0x52b7d0._0x23f1c3)?_0x34e93f:void 0x0;return{..._0x3eb9c6,'cron':_0x4fa719,..._0x3b7083!==void 0x0?{'env':_0x3b7083}:{},..._0x1029fe!==void 0x0?{'prepare':_0x1029fe}:{},..._0x7a6189!==void 0x0?{'workers':_0x7a6189}:{},..._0x2c537b!==void 0x0?{'source':_0x2c537b}:{}};}__name(parseScheduleEntry,_0xbaf479(0x1ee));function parseSchedulesDoc(_0x30e4f2){const _0x2dfe83={_0x2777bc:0x30f,_0x5af34b:0x1f0,_0x2d8194:0x2ae,_0x4cf4d6:0x347,_0x5680da:0x2eb,_0x17ccbd:0x209,_0x2a6318:0x2d4},_0x5b1507=_0xbaf479;if(_0x30e4f2===null||_0x30e4f2===void 0x0)return{'entries':[]};if(!isRecord(_0x30e4f2))return{'error':_0x5b1507(0x2ac)};const _0x522af2=_0x30e4f2[_0x5b1507(_0x2dfe83._0x2777bc)]??[];if(!Array[_0x5b1507(0x2c2)](_0x522af2))return{'error':'`schedules:`\x20must\x20be\x20an\x20array'};const _0x584a7d=[],_0x473644=new Set();for(const [_0x2f6b2b,_0x45a589]of _0x522af2[_0x5b1507(_0x2dfe83._0x5af34b)]()){const _0x1922da=parseScheduleEntry(_0x45a589);if(!_0x1922da)return{'error':'schedules['+_0x2f6b2b+_0x5b1507(_0x2dfe83._0x2d8194)};const _0x35e492=scheduleTarget(_0x1922da),_0x3dc455=_0x35e492[_0x5b1507(0x24d)]+':'+_0x35e492[_0x5b1507(_0x2dfe83._0x4cf4d6)];if(_0x473644[_0x5b1507(0x24c)](_0x3dc455))return{'error':_0x5b1507(_0x2dfe83._0x5680da)+_0x2f6b2b+_0x5b1507(0x25e)+_0x35e492['kind']+'\x20\x22'+_0x35e492[_0x5b1507(_0x2dfe83._0x4cf4d6)]+_0x5b1507(0x1eb)};_0x473644[_0x5b1507(_0x2dfe83._0x17ccbd)](_0x3dc455),_0x584a7d[_0x5b1507(_0x2dfe83._0x2a6318)](_0x1922da);}return{'entries':_0x584a7d};}__name(parseSchedulesDoc,_0xbaf479(0x1ff));function _0x117a(_0xe7bf2b,_0x5ea000){_0xe7bf2b=_0xe7bf2b-0x1d5;const _0x250aa0=_0x250a();let _0x117ab8=_0x250aa0[_0xe7bf2b];if(_0x117a['eNzxll']===undefined){var _0x555894=function(_0x4743f0){const _0x3ec922='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x555ddf='',_0x55c839='';for(let _0x358e61=0x0,_0x10abbc,_0x2d29a4,_0x557d4a=0x0;_0x2d29a4=_0x4743f0['charAt'](_0x557d4a++);~_0x2d29a4&&(_0x10abbc=_0x358e61%0x4?_0x10abbc*0x40+_0x2d29a4:_0x2d29a4,_0x358e61++%0x4)?_0x555ddf+=String['fromCharCode'](0xff&_0x10abbc>>(-0x2*_0x358e61&0x6)):0x0){_0x2d29a4=_0x3ec922['indexOf'](_0x2d29a4);}for(let _0x56f1fd=0x0,_0x30acc7=_0x555ddf['length'];_0x56f1fd<_0x30acc7;_0x56f1fd++){_0x55c839+='%'+('00'+_0x555ddf['charCodeAt'](_0x56f1fd)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x55c839);};_0x117a['WSJDwq']=_0x555894,_0x117a['AKKrsL']={},_0x117a['eNzxll']=!![];}const _0x36ec63=_0x250aa0[0x0],_0x4aa30a=_0xe7bf2b+_0x36ec63,_0x2a5db4=_0x117a['AKKrsL'][_0x4aa30a];return!_0x2a5db4?(_0x117ab8=_0x117a['WSJDwq'](_0x117ab8),_0x117a['AKKrsL'][_0x4aa30a]=_0x117ab8):_0x117ab8=_0x2a5db4,_0x117ab8;}function mergeSchedules(_0x332767,_0x451c81){const _0x4c1d0d={_0x36d2ba:0x32f},_0x1db953={_0x1d2db6:0x24d},_0xcbd9ab=_0xbaf479,_0x51d71b=new Set(_0x451c81[_0xcbd9ab(_0x4c1d0d._0x36d2ba)](_0x50bd5e=>{const _0x1d17dd=_0xcbd9ab,_0x51ed99=scheduleTarget(_0x50bd5e);return _0x51ed99[_0x1d17dd(_0x1db953._0x1d2db6)]+':'+_0x51ed99[_0x1d17dd(0x347)];})),_0xc6048a=_0x332767['filter'](_0x4a4799=>{const _0x2a1911=_0xcbd9ab,_0x807664=scheduleTarget(_0x4a4799);return!_0x51d71b['has'](_0x807664[_0x2a1911(0x24d)]+':'+_0x807664[_0x2a1911(0x347)]);});return[..._0xc6048a['map'](_0x4448cf=>({..._0x4448cf,'source':_0xcbd9ab(0x1db)})),..._0x451c81['map'](_0x5a224c=>({..._0x5a224c,'source':_0xcbd9ab(0x24a)}))];}__name(mergeSchedules,_0xbaf479(0x32e));function canonicalScheduleSet(_0x50b5e8){const _0x2a6925={_0x3d3829:0x32f,_0x186be0:0x31b},_0x2660dc={_0x2e7875:0x24d},_0x24dbab={_0x5e6ae3:0x1e8,_0x1680b1:0x1dc,_0x373a27:0x337,_0x107264:0x259},_0x376304=_0xbaf479,_0x4ec65a=_0x50b5e8[_0x376304(_0x2a6925._0x3d3829)](_0x59cd8c=>{const _0x53a402=_0x376304,_0x652855=scheduleTarget(_0x59cd8c);return{'kind':_0x652855[_0x53a402(0x24d)],'name':_0x652855[_0x53a402(0x347)],'cron':_0x59cd8c[_0x53a402(_0x24dbab._0x5e6ae3)],..._0x59cd8c[_0x53a402(_0x24dbab._0x1680b1)]!==void 0x0?{'env':_0x59cd8c[_0x53a402(0x1dc)]}:{},..._0x59cd8c[_0x53a402(_0x24dbab._0x373a27)]!==void 0x0?{'prepare':_0x59cd8c[_0x53a402(_0x24dbab._0x373a27)]}:{},..._0x59cd8c['workers']!==void 0x0?{'workers':_0x59cd8c[_0x53a402(_0x24dbab._0x107264)]}:{}};})[_0x376304(0x210)]((_0x3021af,_0x594977)=>{const _0x252d8b=_0x376304,_0x8e81fb=_0x3021af[_0x252d8b(0x24d)]+':'+_0x3021af[_0x252d8b(0x347)],_0x44d397=_0x594977[_0x252d8b(_0x2660dc._0x2e7875)]+':'+_0x594977[_0x252d8b(0x347)];return _0x8e81fb<_0x44d397?-0x1:_0x8e81fb>_0x44d397?0x1:0x0;});return JSON[_0x376304(_0x2a6925._0x186be0)](_0x4ec65a);}__name(canonicalScheduleSet,_0xbaf479(0x216));function parseSchedulesJson(_0x3bdf25){const _0x11d1ec={_0x43c12f:0x2d4},_0x12f5dd=_0xbaf479;let _0x3dc4bd;try{_0x3dc4bd=JSON[_0x12f5dd(0x332)](_0x3bdf25);}catch{return null;}if(!Array['isArray'](_0x3dc4bd))return null;const _0x2603f6=[];for(const _0x272404 of _0x3dc4bd){const _0x4cf906=parseScheduleEntry(_0x272404);if(_0x4cf906)_0x2603f6[_0x12f5dd(_0x11d1ec._0x43c12f)](_0x4cf906);}return _0x2603f6;}__name(parseSchedulesJson,'parseSchedulesJson');var FREQ_FIELDS={'m5':{'minutes':![],'hours':![],'days':![]},'m15':{'minutes':![],'hours':![],'days':![]},'h1':{'minutes':!![],'hours':![],'days':![]},'h2':{'minutes':!![],'hours':![],'days':![]},'h4':{'minutes':!![],'hours':![],'days':![]},'h6':{'minutes':!![],'hours':![],'days':![]},'h12':{'minutes':!![],'hours':![],'days':![]},'daily':{'minutes':!![],'hours':!![],'days':![]},'weekly':{'minutes':!![],'hours':!![],'days':!![]}},HOUR_STEP={'h2':0x2,'h4':0x4,'h6':0x6,'h12':0xc};function cronFromSpec(_0x25957d){const _0x219d69={_0x4dc52b:0x2d1,_0x1d7680:0x200,_0x387131:0x2a4,_0x18728e:0x2fc,_0x6cb377:0x2ef,_0x562d3c:0x348,_0x5359d7:0x32a},_0x516f88=_0xbaf479,_0x4b336c=list(_0x25957d[_0x516f88(_0x219d69._0x4dc52b)]);switch(_0x25957d[_0x516f88(_0x219d69._0x1d7680)]){case'm5':return _0x516f88(0x260);case _0x516f88(0x31d):return'*/15\x20*\x20*\x20*\x20*';case'h1':return _0x4b336c+_0x516f88(0x1df);case'h2':case'h4':case'h6':case _0x516f88(_0x219d69._0x387131):return _0x4b336c+_0x516f88(_0x219d69._0x18728e)+HOUR_STEP[_0x25957d['freq']]+_0x516f88(_0x219d69._0x6cb377);case _0x516f88(0x244):return _0x4b336c+'\x20'+list(_0x25957d[_0x516f88(_0x219d69._0x562d3c)])+_0x516f88(0x2ef);case _0x516f88(_0x219d69._0x5359d7):return _0x4b336c+'\x20'+list(_0x25957d[_0x516f88(0x348)])+_0x516f88(0x343)+list(_0x25957d['days']);}}__name(cronFromSpec,_0xbaf479(0x319));function specFromCron(_0x3fdac6){const _0x36ea3c={_0x24b320:0x28f,_0x37872b:0x341,_0x811c57:0x324,_0x3711eb:0x2e4,_0x5f4579:0x235,_0xf087f9:0x2ed,_0x5ba54c:0x244},_0x484b3c=_0xbaf479,_0x577d0a=_0x3fdac6[_0x484b3c(_0x36ea3c._0x24b320)]()[_0x484b3c(_0x36ea3c._0x37872b)](/\s+/);if(_0x577d0a[_0x484b3c(_0x36ea3c._0x811c57)]!==0x5)return null;const [_0x3542e6,_0x11f82d,_0x37b986,_0x46f57d,_0x1277b7]=_0x577d0a;if(_0x37b986!=='*'||_0x46f57d!=='*')return null;if(_0x11f82d==='*'&&_0x1277b7==='*'){if(_0x3542e6===_0x484b3c(_0x36ea3c._0x3711eb))return spec('m5');if(_0x3542e6==='*/15')return spec('m15');const _0x59d754=numbers(_0x3542e6);return _0x59d754&&spec('h1',_0x59d754);}const _0x36b921=numbers(_0x3542e6);if(!_0x36b921)return null;const _0x599065=/^\*\/(\d+)$/[_0x484b3c(_0x36ea3c._0x5f4579)](_0x11f82d);if(_0x599065&&_0x1277b7==='*'){const _0x26c8fa=Object['keys'](HOUR_STEP)[_0x484b3c(_0x36ea3c._0xf087f9)](_0x26cde2=>HOUR_STEP[_0x26cde2]===Number(_0x599065[0x1]));return _0x26c8fa?spec(_0x26c8fa,_0x36b921):null;}const _0x271894=numbers(_0x11f82d);if(!_0x271894)return null;if(_0x1277b7==='*')return spec(_0x484b3c(_0x36ea3c._0x5ba54c),_0x36b921,_0x271894);const _0x373b27=numbers(_0x1277b7);return _0x373b27&&spec('weekly',_0x36b921,_0x271894,_0x373b27);}__name(specFromCron,_0xbaf479(0x264));function describeCron(_0x104db7){const _0x40b746=specFromCron(_0x104db7);return _0x40b746?describeSpec(_0x40b746):_0x104db7;}__name(describeCron,_0xbaf479(0x1de));function describeSpec(_0x59129b){const _0x375836={_0x1ed8cb:0x2d0,_0x2abbc6:0x2d1,_0x1b55ff:0x2a4,_0x23dcda:0x200,_0x503bc5:0x32f},_0x23f35e=_0xbaf479;switch(_0x59129b['freq']){case'm5':return _0x23f35e(0x231);case _0x23f35e(0x31d):return _0x23f35e(0x1fd);case'h1':return _0x23f35e(_0x375836._0x1ed8cb)+atMinutes(_0x59129b[_0x23f35e(_0x375836._0x2abbc6)]);case'h2':case'h4':case'h6':case _0x23f35e(_0x375836._0x1b55ff):return _0x23f35e(0x290)+HOUR_STEP[_0x59129b[_0x23f35e(_0x375836._0x23dcda)]]+'h'+atMinutes(_0x59129b[_0x23f35e(_0x375836._0x2abbc6)]);case'daily':return'daily\x20at\x20'+times(_0x59129b);case _0x23f35e(0x32a):return _0x59129b[_0x23f35e(0x307)][_0x23f35e(_0x375836._0x503bc5)](_0x4d00bb=>DAY_SHORT[_0x4d00bb]??String(_0x4d00bb))[_0x23f35e(0x288)](',\x20')+'\x20at\x20'+times(_0x59129b);}}__name(describeSpec,_0xbaf479(0x1d6));function nextTickFromSpec(_0xaf1b39,_0x21df6c){const _0x52fe06={_0x4468c5:0x317,_0xed5654:0x1ef},_0x53ca85=_0xbaf479,_0x1cd7d7=new Date(_0x21df6c);_0x1cd7d7[_0x53ca85(0x22b)](0x0,0x0);for(let _0x2b0510=0x0;_0x2b0510<0x8*0x18*0x3c;_0x2b0510++){_0x1cd7d7[_0x53ca85(_0x52fe06._0x4468c5)](_0x1cd7d7[_0x53ca85(0x30e)]()+0x1);if(specMatches(_0xaf1b39,_0x1cd7d7))return _0x1cd7d7[_0x53ca85(_0x52fe06._0xed5654)]();}return _0x1cd7d7['getTime']();}__name(nextTickFromSpec,_0xbaf479(0x21e));function specMatches(_0x1791ca,_0x4d1da5){const _0x28cbf8={_0x3cd570:0x30e,_0x46f3f8:0x2d1,_0x416590:0x200,_0x315a9a:0x244,_0x57d0dd:0x348,_0xc44bc7:0x348,_0x27e14f:0x293,_0x357596:0x307},_0x6cf28=_0xbaf479,_0xe72cb5=_0x4d1da5[_0x6cf28(_0x28cbf8._0x3cd570)](),_0x34e32f=_0x4d1da5[_0x6cf28(0x33b)]();switch(_0x1791ca[_0x6cf28(0x200)]){case'm5':return _0xe72cb5%0x5===0x0;case'm15':return _0xe72cb5%0xf===0x0;case'h1':return _0x1791ca[_0x6cf28(0x2d1)]['includes'](_0xe72cb5);case'h2':case'h4':case'h6':case _0x6cf28(0x2a4):return _0x1791ca[_0x6cf28(_0x28cbf8._0x46f3f8)][_0x6cf28(0x293)](_0xe72cb5)&&_0x34e32f%(HOUR_STEP[_0x1791ca[_0x6cf28(_0x28cbf8._0x416590)]]??0x1)===0x0;case _0x6cf28(_0x28cbf8._0x315a9a):return _0x1791ca['minutes'][_0x6cf28(0x293)](_0xe72cb5)&&_0x1791ca[_0x6cf28(_0x28cbf8._0x57d0dd)][_0x6cf28(0x293)](_0x34e32f);case _0x6cf28(0x32a):return _0x1791ca[_0x6cf28(0x2d1)][_0x6cf28(0x293)](_0xe72cb5)&&_0x1791ca[_0x6cf28(_0x28cbf8._0xc44bc7)][_0x6cf28(_0x28cbf8._0x27e14f)](_0x34e32f)&&_0x1791ca[_0x6cf28(_0x28cbf8._0x357596)][_0x6cf28(0x293)](_0x4d1da5['getDay']());}}__name(specMatches,'specMatches');function formatNextTick(_0x21603d,_0x1c66f2){const _0xcafa97={_0x478776:0x2e3,_0x4a6810:0x1dd,_0x5b7aac:0x1f7},_0x57aba2=_0xbaf479,_0x329ab4=new Date(_0x21603d),_0xda10f5=new Date(_0x1c66f2),_0xaa359d=pad(_0x329ab4[_0x57aba2(0x33b)]())+':'+pad(_0x329ab4['getMinutes']()),_0x4018c7=Math[_0x57aba2(_0xcafa97._0x478776)]((startOfDay(_0x329ab4)-startOfDay(_0xda10f5))/(0x18*0x3c*0x3c*0x3e8));if(_0x4018c7===0x0)return _0x57aba2(0x255)+_0xaa359d;if(_0x4018c7===0x1)return _0x57aba2(_0xcafa97._0x4a6810)+_0xaa359d;return DAY_SHORT[_0x329ab4[_0x57aba2(_0xcafa97._0x5b7aac)]()]+'\x20'+_0xaa359d;}__name(formatNextTick,_0xbaf479(0x326));function startOfDay(_0x48e9a5){const _0xdc0211={_0x1d8c95:0x2ab,_0x26fa50:0x1ef},_0x7edf4b=_0xbaf479,_0x331976=new Date(_0x48e9a5);return _0x331976[_0x7edf4b(_0xdc0211._0x1d8c95)](0x0,0x0,0x0,0x0),_0x331976[_0x7edf4b(_0xdc0211._0x26fa50)]();}__name(startOfDay,_0xbaf479(0x20d));var DAY_SHORT=['Sun','Mon',_0xbaf479(0x2df),_0xbaf479(0x2f0),'Thu',_0xbaf479(0x340),_0xbaf479(0x262)],WEEK_CHIP_ORDER=[0x1,0x2,0x3,0x4,0x5,0x6,0x0];function spec(_0x372f32,_0x190a5b=[0x0],_0x5f4eac=[0x3],_0x4fe477=[0x1]){return{'freq':_0x372f32,'minutes':_0x190a5b,'hours':_0x5f4eac,'days':_0x4fe477};}__name(spec,_0xbaf479(0x2a3));function list(_0x306fc3){const _0x2c418c=_0xbaf479;return[..._0x306fc3]['sort']((_0x42ac01,_0x37f48a)=>_0x42ac01-_0x37f48a)[_0x2c418c(0x288)](',');}__name(list,'list');function numbers(_0x398379){const _0x2ee783={_0x169c74:0x29a,_0x17add7:0x341},_0x4f85e=_0xbaf479;if(!/^\d+(,\d+)*$/[_0x4f85e(_0x2ee783._0x169c74)](_0x398379))return null;return _0x398379[_0x4f85e(_0x2ee783._0x17add7)](',')[_0x4f85e(0x32f)](Number);}__name(numbers,_0xbaf479(0x2e7));var pad=__name(_0x1e964a=>String(_0x1e964a)[_0xbaf479(0x31c)](0x2,'0'),_0xbaf479(0x218));function atMinutes(_0x568db7){const _0x4e474e={_0x274a47:0x324,_0x1d3053:0x210},_0x339519=_0xbaf479;if(_0x568db7[_0x339519(_0x4e474e._0x274a47)]===0x1&&_0x568db7[0x0]===0x0)return'';return'\x20at\x20'+[..._0x568db7][_0x339519(_0x4e474e._0x1d3053)]((_0x547230,_0x4663a1)=>_0x547230-_0x4663a1)[_0x339519(0x32f)](_0x1fe3f6=>':'+pad(_0x1fe3f6))['join'](',\x20');}__name(atMinutes,'atMinutes');function times(_0xbd5284){const _0x50e116={_0xd086fd:0x2b0,_0x70ccb2:0x324},_0x81baab=_0xbaf479,_0x361103=[..._0xbd5284[_0x81baab(0x348)]]['sort']((_0x1a386e,_0x131249)=>_0x1a386e-_0x131249)[_0x81baab(0x297)](_0x2835d0=>[..._0xbd5284['minutes']]['sort']((_0x300ddd,_0x2e562f)=>_0x300ddd-_0x2e562f)['map'](_0x14a78c=>pad(_0x2835d0)+':'+pad(_0x14a78c))),_0x55ad81=_0x361103[_0x81baab(_0x50e116._0xd086fd)](0x0,0x4),_0x3279b6=_0x361103['length']-_0x55ad81[_0x81baab(_0x50e116._0x70ccb2)];return _0x55ad81[_0x81baab(0x288)](',\x20')+(_0x3279b6>0x0?'\x20+'+_0x3279b6:'');}__name(times,'times');var BLOBS_DIR=_0xbaf479(0x29d),GENERATION_SEP='~',HASH_RE=/^[0-9a-f]{8,}$/,InvalidBlobHashError=class extends Error{static{__name(this,_0xbaf479(0x237));}constructor(_0x46cebd){const _0x2074c8=_0xbaf479;super(_0x2074c8(0x345)+_0x46cebd),this[_0x2074c8(0x347)]='InvalidBlobHashError';}};function blobPathFor(_0x202514,_0x148149,_0x2c7148,_0x329770=0x0){return _0x202514+'/'+blobRelPathFor(_0x148149,_0x2c7148,_0x329770);}__name(blobPathFor,_0xbaf479(0x318));function blobRelSegmentsFor(_0x120509,_0x3356c2,_0x20258f=0x0){const _0x2e4852={_0x45e040:0x29a},_0x52425c=_0xbaf479;if(!HASH_RE[_0x52425c(_0x2e4852._0x45e040)](_0x120509))throw new InvalidBlobHashError(_0x120509);const _0x471f3d=_0x20258f>0x0?''+GENERATION_SEP+_0x20258f:'';return[BLOBS_DIR,_0x120509[_0x52425c(0x2b0)](0x0,0x2),_0x120509['slice'](0x2,0x4),''+_0x120509+_0x471f3d+'.'+_0x3356c2];}__name(blobRelSegmentsFor,'blobRelSegmentsFor');function blobRelPathFor(_0x4506b9,_0x43c573,_0x3ad0e4=0x0){const _0x14a8ec=_0xbaf479;return blobRelSegmentsFor(_0x4506b9,_0x43c573,_0x3ad0e4)[_0x14a8ec(0x288)]('/');}__name(blobRelPathFor,'blobRelPathFor');function blobsRootFor(_0x27c02c){return _0x27c02c+'/'+BLOBS_DIR;}__name(blobsRootFor,_0xbaf479(0x1e4));var FS_UNSAFE_NAME_RE=/[\\/:*?"<>|\x00-\x1f]/;function validateFsSafeName(_0x3f18d6,_0x585789){const _0x765e49={_0x4291aa:0x29b,_0x4561f9:0x2fb,_0x2d57fb:0x232,_0x546542:0x29a},_0x114887=_0xbaf479;if(typeof _0x3f18d6!==_0x114887(_0x765e49._0x4291aa))return _0x114887(0x236);const _0x362812=_0x3f18d6['trim']();if(_0x362812[_0x114887(0x324)]===0x0)return _0x114887(0x227);if(_0x362812==='.'||_0x362812==='..')return'must\x20not\x20be\x20\x22.\x22\x20or\x20\x22..\x22';if(_0x362812[_0x114887(0x232)]('.'))return _0x114887(_0x765e49._0x4561f9);if(_0x585789?.[_0x114887(0x2f6)]&&_0x362812[_0x114887(_0x765e49._0x2d57fb)]('_'))return _0x114887(0x331);if(FS_UNSAFE_NAME_RE[_0x114887(_0x765e49._0x546542)](_0x362812))return _0x114887(0x261);return null;}__name(validateFsSafeName,'validateFsSafeName');var COLLECTION_NAME_FORBIDDEN_RE=FS_UNSAFE_NAME_RE;function validateCollectionName(_0x32a342){return validateFsSafeName(_0x32a342);}__name(validateCollectionName,_0xbaf479(0x1fe));var RUN_MANIFEST_FILE=_0xbaf479(0x2b2),RUN_SOURCES_FILE=_0xbaf479(0x273),UnsupportedRunKindError=class extends Error{static{__name(this,_0xbaf479(0x29c));}constructor(_0x748c17,_0x5d6363){const _0x375624={_0x19ed63:0x28c,_0x47765c:0x246,_0x695eeb:0x347},_0x56f814=_0xbaf479;super(_0x56f814(_0x375624._0x19ed63)+_0x5d6363+_0x56f814(_0x375624._0x47765c)+_0x748c17+'\x22'),this[_0x56f814(_0x375624._0x695eeb)]=_0x56f814(0x29c);}},RunnerAdapterNotFoundError=class extends Error{static{__name(this,_0xbaf479(0x229));}constructor(_0x2cdbb4,_0x587031){const _0x24bcc5=_0xbaf479;super(_0x24bcc5(0x21d)+_0x2cdbb4+_0x24bcc5(0x245)+_0x587031),this['name']=_0x24bcc5(0x229);}},RunnerNotConfiguredError=class extends Error{static{__name(this,_0xbaf479(0x31a));}constructor(_0x3a5b92){super(_0x3a5b92),this['name']='RunnerNotConfiguredError';}},EXPECT_FAIL_ANNOTATION=_0xbaf479(0x20c),ANNOTATION_RE=/^\s*\/\/\s*@([a-z0-9-]+)\s*$/;function isAnnotationLine(_0x34e581){const _0x5f47a3={_0x4a1130:0x29a},_0x4004e2=_0xbaf479;return ANNOTATION_RE[_0x4004e2(_0x5f47a3._0x4a1130)](_0x34e581);}__name(isAnnotationLine,_0xbaf479(0x289));function parseScenarioAnnotations(_0x19b57e){const _0x5f37e6={_0x4b9ef0:0x28f,_0x414460:0x232,_0x4a25f3:0x209,_0x2cc88d:0x24c},_0xc63500=_0xbaf479,_0x307a87=new Set();for(const _0x54a87a of _0x19b57e[_0xc63500(0x341)](/\r?\n/)){const _0x2e2328=_0x54a87a[_0xc63500(_0x5f37e6._0x4b9ef0)]();if(_0x2e2328==='')continue;if(!_0x2e2328[_0xc63500(_0x5f37e6._0x414460)]('//'))break;const _0x3c7f36=_0x2e2328['match'](ANNOTATION_RE);if(_0x3c7f36)_0x307a87[_0xc63500(_0x5f37e6._0x4a25f3)](_0x3c7f36[0x1]);}return{'expectFail':_0x307a87[_0xc63500(_0x5f37e6._0x2cc88d)](EXPECT_FAIL_ANNOTATION)};}__name(parseScenarioAnnotations,_0xbaf479(0x27c));var SEGMENT_NAME_FORBIDDEN_RE=FS_UNSAFE_NAME_RE;function validateSegmentName(_0x1ca55b){return validateFsSafeName(_0x1ca55b,{'reservedUnderscore':!![]});}__name(validateSegmentName,'validateSegmentName');var TERMINAL_WS_EVENT=_0xbaf479(0x32c),RUNNER_CONFIG_KEYS=new Set([_0xbaf479(0x224),_0xbaf479(0x29f),_0xbaf479(0x2a0),_0xbaf479(0x296),_0xbaf479(0x266),_0xbaf479(0x2af),_0xbaf479(0x336),_0xbaf479(0x277),'UNOTEST_TIMEZONE',_0xbaf479(0x263),'UNOTEST_DEBUG',_0xbaf479(0x226),'UNOTEST_DEBUG_MAX_BYTES',_0xbaf479(0x30c),_0xbaf479(0x346),_0xbaf479(0x1f8),_0xbaf479(0x2bd),'UNOTEST_CONSOLE','UNOTEST_STEP_SCREENSHOTS','UNOTEST_CACHE_DIR',_0xbaf479(0x31f),_0xbaf479(0x2f1),'DATABASE_URL']);function isRunnerConfigKey(_0x5f24e7){const _0x3c63c2={_0x389090:0x24c},_0x9b3bb1=_0xbaf479;return RUNNER_CONFIG_KEYS[_0x9b3bb1(_0x3c63c2._0x389090)](_0x5f24e7);}__name(isRunnerConfigKey,_0xbaf479(0x2cb));function categorizeVariable(_0x370811){const _0x11e611={_0x40c50d:0x2da,_0x109a29:0x347,_0x2f3827:0x1da},_0x44df58=_0xbaf479;if(_0x370811[_0x44df58(_0x11e611._0x40c50d)]===_0x44df58(0x316))return _0x44df58(0x1f1);return isRunnerConfigKey(_0x370811[_0x44df58(_0x11e611._0x109a29)])?_0x44df58(0x2a5):_0x44df58(_0x11e611._0x2f3827);}__name(categorizeVariable,'categorizeVariable');function isExternalVarName(_0x267b1e){return/^[A-Z][A-Z0-9_]*$/['test'](_0x267b1e);}__name(isExternalVarName,_0xbaf479(0x20f));var SECTION_BY_KIND={'app':'App','runner':_0xbaf479(0x253),'secret':void 0x0};function planAddVariable(_0x1df70d){const _0x58d191={_0x2d969d:0x2a5,_0x32defd:0x228,_0x510737:0x2b5,_0x5f1f95:0x24c,_0x3d83b6:0x1f1,_0x54fb47:0x1dc,_0xd10230:0x316,_0x4649e4:0x316,_0x5d0090:0x22d,_0x19c4d7:0x32b,_0x13b1a2:0x29e},_0x1a5ac5=_0xbaf479,{name:_0x17af4a,kind:_0x4caecf}=_0x1df70d;if(_0x4caecf===_0x1a5ac5(_0x58d191._0x2d969d)){if(!isRunnerConfigKey(_0x17af4a))return{'ok':![],'code':'unknown-runner-key','message':_0x17af4a+_0x1a5ac5(_0x58d191._0x32defd)};}else{if(!isExternalVarName(_0x17af4a))return{'ok':![],'code':'invalid-name','message':_0x17af4a+_0x1a5ac5(_0x58d191._0x510737)};}const _0x4ac604=envKeys(_0x1df70d['envContent'])[_0x1a5ac5(0x24c)](_0x17af4a),_0xb14403=envKeys(_0x1df70d[_0x1a5ac5(0x2e1)])[_0x1a5ac5(_0x58d191._0x5f1f95)](_0x17af4a),_0x4098c8=_0x4caecf===_0x1a5ac5(_0x58d191._0x3d83b6)?'secrets':_0x1a5ac5(_0x58d191._0x54fb47),_0x3ce09e=_0x4098c8===_0x1a5ac5(_0x58d191._0xd10230)?_0xb14403:_0x4ac604,_0x55384b=_0x4098c8===_0x1a5ac5(_0x58d191._0x4649e4)?_0x1a5ac5(_0x58d191._0x5d0090):_0x1a5ac5(_0x58d191._0x19c4d7);if(_0x3ce09e)return{'ok':![],'code':_0x1a5ac5(0x203),'message':_0x17af4a+'\x20already\x20exists\x20in\x20'+_0x55384b+_0x1a5ac5(_0x58d191._0x13b1a2)};const _0x4276a5=[];return _0x4caecf===_0x1a5ac5(_0x58d191._0x3d83b6)&&_0x4ac604&&_0x4276a5['push'](_0x17af4a+_0x1a5ac5(0x2bc)),_0x4caecf!==_0x1a5ac5(_0x58d191._0x3d83b6)&&_0xb14403&&_0x4276a5[_0x1a5ac5(0x2d4)](_0x17af4a+_0x1a5ac5(0x27e)),{'ok':!![],'target':_0x4098c8,'sectionLabel':SECTION_BY_KIND[_0x4caecf],'warnings':_0x4276a5};}__name(planAddVariable,_0xbaf479(0x325));function deleteShadowWarning(_0x3854f8,_0xe0fa44,_0x433810){if(_0x433810!==void 0x0&&_0x433810!==_0xe0fa44)return[_0x3854f8+'\x20is\x20also\x20set\x20in\x20your\x20shell\x20environment\x20—\x20it\x20will\x20keep\x20resolving\x20from\x20there\x20(the\x20environment\x20wins\x20over\x20the\x20file).'];return[];}__name(deleteShadowWarning,_0xbaf479(0x24b));var TERMINAL_RUNTIME_STATES=[_0xbaf479(0x2c3),_0xbaf479(0x33f),_0xbaf479(0x214)];function isTerminalRuntimeState(_0x42d912){const _0x4138a8=_0xbaf479;return TERMINAL_RUNTIME_STATES[_0x4138a8(0x293)](_0x42d912);}__name(isTerminalRuntimeState,_0xbaf479(0x220));var JUDGE_ROUTES={'judge':_0xbaf479(0x26c),'health':_0xbaf479(0x313)},JUDGE_ENV={'mode':_0xbaf479(0x287),'url':'UNOTEST_JUDGE_URL','token':_0xbaf479(0x22e),'requestTimeoutMs':_0xbaf479(0x211),'preamble':_0xbaf479(0x2d8),'provider':_0xbaf479(0x32d),'model':_0xbaf479(0x291),'callTimeoutMs':_0xbaf479(0x312),'retries':_0xbaf479(0x1f5),'vote':_0xbaf479(0x298),'accessToken':_0xbaf479(0x1e1),'claudeBin':_0xbaf479(0x2e8),'host':_0xbaf479(0x1f9),'port':'UNOTEST_JUDGE_PORT','logLevel':_0xbaf479(0x225),'skipPreflight':_0xbaf479(0x240)};export{ARTIFACTS_ROOT_ENV,BLOBS_DIR,BOX_ENV_VALUES_SEGMENT,BOX_READ_ENVIRONMENTS_PATH,BOX_READ_ENVIRONMENT_HEADER,BOX_READ_TOKEN_ENV,BOX_READ_TOKEN_PREFIX,BOX_REVEAL_SEGMENT,BOX_SECRET_NAMES_ENV,BOX_TOKEN_ENV,BOX_URL_ENV,BOX_VALUES_PATH,BOX_VARIABLE_NAMES_ENV,BROWSER_CHANNEL_ENV,BROWSER_ENV,BUNDLED_BROWSER_CHANNEL,BUNDLE_ID_ENV,BUNDLE_MANIFEST_FILE,BUNDLE_SCHEMA_VERSION,BUNDLE_UPLOAD_PATH,CI_RUN_PATH,COLLECTIONS_SUBDIR,COLLECTION_NAME_FORBIDDEN_RE,COMMANDS_FILE,DAY_INDEX_FILE,DAY_SHORT,E2E_SUBDIR,ENV_FILE,EXPECT_FAIL_ANNOTATION,FREQ_FIELDS,HEARTBEAT_FILE,HELPERS_SUBDIR,InvalidBlobHashError,JUDGE_ENV,JUDGE_ROUTES,LOCK_FILE,LOG_FILE,PICKER_SNAPSHOT_FILE,QUEUE_DISABLED_ENV,QUEUE_GLOBAL_DIR_ENV,QUEUE_GLOBAL_SLOTS_ENV,QUEUE_LEASE_ENV,QUEUE_MUTEX_FILE,QUEUE_PRIORITIES,QUEUE_RUNNING_DIR,QUEUE_SCHEMA_VERSION,QUEUE_SLOTS_DIR,QUEUE_SUBDIR,QUEUE_TICKETS_DIR,RUNNER_CONFIG_KEYS,RUNNER_SETTING_PREFIX,RUNS_SUBDIR,RUNTIME_FILE,RUN_INDEX_SCHEMA_VERSION,RUN_MANIFEST_FILE,RUN_SOURCES_FILE,RunnerAdapterNotFoundError,RunnerNotConfiguredError,SCENARIOS_INDEX_DIR,SCENARIOS_LATEST_FILE,SCENARIO_RECENT_WINDOW,SCHEDULES_FILE,SCHEDULES_FINGERPRINT_ENV,SECRETS_FILE,SEGMENT_NAME_FORBIDDEN_RE,SNAPSHOTS_SUBDIR,STDERR_FILE,STDOUT_FILE,STEPS_FILE,TARGET_ENV_VAR,TERMINAL_RUNTIME_STATES,TERMINAL_WS_EVENT,UNOTEST_DIR,UnplaceableRunIdError,UnsupportedRunKindError,WEEK_CHIP_ORDER,WORKSPACE_FILE,WORKSPACE_SCHEMA_VERSION,activeEnvName,artifactsRootFrom,blobPathFor,blobRelPathFor,blobRelSegmentsFor,blobsRootFor,boxEnvSecretRevealPath,boxEnvSecretsRevealPath,boxEnvValuePath,boxEnvValuesPath,boxValueKindOfSegment,boxValuePath,boxValuesPath,canonicalScheduleSet,categorizeVariable,compareQueueTicketNames,cronFromSpec,debugDirFor,debuggerFileFor,declaredEnvKeys,decodeNameList,deleteShadowWarning,describeBundle,describeCron,describeSpec,describeTicketCi,encodeNameList,envFileFor,envKeys,envLayerFilesFor,envNamesFromDirListing,foldScenarioRun,formatNextTick,insertEnvVar,isAnnotationLine,isEnvVarName,isExternalVarName,isFailingStatus,isQueueDirName,isRecord,isRegexLiteral,isRunnerConfigKey,isRunnerSetting,isRunsDirName,isTerminalRuntimeState,makeQueueTicketName,makeRunId,mergeSchedules,nextTickFromSpec,parseAppServerEvent,parseBoxEnvValuesReplaceRequest,parseBoxReadEnvironments,parseBoxReadError,parseBoxSecretRevealResponse,parseBoxSecretsRevealResponse,parseBoxValueSetRequest,parseBoxValuesReplaceRequest,parseBoxValuesResponse,parseBundleManifest,parseBundleUploadResponse,parseCiProvider,parseCiRunRequest,parseCiRunResponse,parseEnvContent,parseQueueTicket,parseQueueTicketName,parseScenarioAnnotations,parseScheduleEntry,parseSchedulesDoc,parseSchedulesJson,parseWorkspaceFile,planAddVariable,projectQueueRoot,projectRunDirFor,projectRunsRoot,queueDirFor,queuePriorityFromRank,queuePriorityRank,regexLiteral,removeEnvVar,requireRunDirFor,reservedBoxValueNames,runDirFor,runIdStartedAt,runsDirFor,sanitizeRunIdSegment,scenarioIndexFileName,scenarioRefFromFileName,scheduleTarget,secretsFileFor,secretsLayerFilesFor,serializeEnvValue,shardDaysDescending,shardDirFor,shardPathForRunId,shardPathForTimestamp,specFromCron,testDirFor,validateCollectionName,validateSegmentName};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unotest/protocol",
3
- "version": "0.31.0",
3
+ "version": "0.32.0",
4
4
  "description": "Cross-runner protocol for the @unotest ecosystem: shared TypeScript types, path constants, the IRunnerAdapter contract that lets @unotest/viewer drive @unotest/web, @unotest/mobile (and future runners) through the same surface. Pure types + pure functions only — zero runtime deps, browser-safe.",
5
5
  "license": "MIT",
6
6
  "publishConfig": {