@unotest/protocol 0.32.0 → 0.33.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 +166 -0
- package/dist/index.d.ts +359 -50
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,171 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.33.0] - 2026-09-06
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 2abfd4d: Box: every run is announced — Slack, Telegram, or a webhook of your own — and the channels are managed from the guard.
|
|
8
|
+
|
|
9
|
+
A box now tells people how its runs went, whoever started them: the
|
|
10
|
+
schedule's ticks, a pull request's check, somebody pressing Run in the
|
|
11
|
+
viewer, a terminal inside the container. The daemon reads each run's own
|
|
12
|
+
journal, so the three producers are one source; the run's manifest says
|
|
13
|
+
what set it off — `trigger: { kind: "schedule" | "ci" | "manual" | "cli",
|
|
14
|
+
by? }`, written by the runner from `UNOTEST_RUN_TRIGGER` /
|
|
15
|
+
`UNOTEST_RUN_ACTOR` (a box sets them for its scheduled and CI runs, the
|
|
16
|
+
viewer for a run ordered from its UI; a terminal sets nothing and reads as
|
|
17
|
+
`cli`).
|
|
18
|
+
|
|
19
|
+
A scheduled series is announced on a **change of state**: `failed` after
|
|
20
|
+
`afterFailures` red ticks in a row, `recovered`, `still-failing` at a rule's
|
|
21
|
+
`repeatEvery`, `not-run` when the suite could not run at all (no bundle, a
|
|
22
|
+
bundle that does not install) — daily by default. A run somebody ordered is
|
|
23
|
+
announced on its own, `failed` or `passed`, every time. A withdrawn or
|
|
24
|
+
aborted run says nothing; a run whose journal stops and whose heartbeat goes
|
|
25
|
+
cold is `interrupted`.
|
|
26
|
+
|
|
27
|
+
Channels, rules, mutes and quiet hours live on the box and are managed from
|
|
28
|
+
the guard's `/_guard/notifications` page (or `boxd notify …`): a channel's
|
|
29
|
+
secret is set once and never shown again, a rule picks environments,
|
|
30
|
+
triggers, events and channels, a series or the whole project can be muted
|
|
31
|
+
until a time, and quiet hours hold reminders and `passed` back until the
|
|
32
|
+
morning. A generic webhook receives the event as JSON (`version: 1`, the
|
|
33
|
+
box named, the `trigger`) with `X-Unotest-Event` and, when the channel has
|
|
34
|
+
a secret, `X-Unotest-Signature: sha256=<hex>` — HMAC-SHA256 over the raw
|
|
35
|
+
body, the scheme GitHub uses — plus any headers the channel declares.
|
|
36
|
+
|
|
37
|
+
`@unotest/protocol`: `RunManifest.trigger` and the trigger helpers
|
|
38
|
+
(`runTriggerFromEnv`, `runTriggerEnv`, `manifestTrigger`); the session-door
|
|
39
|
+
paths, views and parsers of the notifications API (`boxNotifyProjectPath`,
|
|
40
|
+
`boxNotifyChannelPath`, `boxNotifyRulePath`, `boxNotifySeriesPath`,
|
|
41
|
+
`boxNotifyMutePath`, `boxNotifyQuietHoursPath`, `boxNotifyPreviewPath`,
|
|
42
|
+
`BoxNotifyProjectView`, …). The first draft of this feature (channels
|
|
43
|
+
declared in the box config, secrets by field) never shipped; this replaces
|
|
44
|
+
it whole.
|
|
45
|
+
|
|
46
|
+
- 5d1bde3: Run isolation, stage 1: a box no longer executes a test bundle inside its
|
|
47
|
+
own daemon.
|
|
48
|
+
|
|
49
|
+
box-runner (new, private): the run sidecar — the only service on a box
|
|
50
|
+
holding the docker socket, and the only one that starts a container. Three
|
|
51
|
+
authenticated routes on the `box` network (`POST /runs`, `GET
|
|
52
|
+
/runs/:id/stream` NDJSON, `DELETE /runs/:id`), a shared secret compared in
|
|
53
|
+
constant time, and an API that cannot be told anything about how a
|
|
54
|
+
container is built: no path, image, network, user, mount or flag. A request
|
|
55
|
+
names a project, an environment, a bundle, a scenario and the environment's
|
|
56
|
+
values; the bind sources are derived from the first three, resolved with
|
|
57
|
+
`realpath` and re-checked against the projects root, and must already
|
|
58
|
+
exist. The container is created over the Docker Engine API (pinned
|
|
59
|
+
`v1.43`) straight over the socket — no `docker` binary in the image and no
|
|
60
|
+
client dependency, and a container that is a JSON document has no place
|
|
61
|
+
for a value to become a flag. A daemon that refuses or is not there comes
|
|
62
|
+
back as `502 {reason}` before the run is accepted, or as an `error` event
|
|
63
|
+
on the stream after — never as a run that "exited with code null". An
|
|
64
|
+
environment variable the box does not forward is named in the sidecar's
|
|
65
|
+
log rather than dropped silently. A run gets the bundle tree read-only as its working directory, the
|
|
66
|
+
environment's `unotest/.runs.<env>` read-write, a `noexec` tmpfs `/tmp`,
|
|
67
|
+
a read-only rootfs, all capabilities dropped, `no-new-privileges`, its own
|
|
68
|
+
uid in boxd's group, memory/pids/cpu limits clamped to both the operator's ceilings and the
|
|
69
|
+
host's own size (docker refuses a container bigger than the machine
|
|
70
|
+
instead of clamping it), a 512 MB `/dev/shm`
|
|
71
|
+
(docker's default 64 MB kills Chromium mid-page; the host's IPC namespace
|
|
72
|
+
is deliberately not borrowed), and the `runs` network only. The container engine is an interface, so every rule is asserted on
|
|
73
|
+
the container that would have reached docker — including the cases where
|
|
74
|
+
the answer is no container at all.
|
|
75
|
+
|
|
76
|
+
boxd: running the SUITE is its own contract (`IScenarioRunner`), separate
|
|
77
|
+
from running a command (`ICommandRunner`, still the daemon's own `npm ci`
|
|
78
|
+
and viewers). `ContainerScenarioRunner` talks to the sidecar,
|
|
79
|
+
`ProcessScenarioRunner` keeps the old child-process shape for a box without
|
|
80
|
+
docker; `BOXD_RUNNER_KIND=container|process` chooses, and half a container
|
|
81
|
+
configuration refuses to start. Reading a bundle's schedules
|
|
82
|
+
(`unotest-web schedules --json`) executes the project's config module, so it
|
|
83
|
+
goes the same way. A run's environment is built from named parts
|
|
84
|
+
(`run-environment.ts`) instead of inheriting `process.env`, and its debug
|
|
85
|
+
tree is pointed at the run's own directory rather than the read-only
|
|
86
|
+
sources. New metrics
|
|
87
|
+
`boxd_run_container_total{outcome}` and `boxd_run_container_start_seconds`.
|
|
88
|
+
An environment's runs directory is created by the daemon with `2775`, so
|
|
89
|
+
the run's uid may write into it and the daemon's group may read it back.
|
|
90
|
+
|
|
91
|
+
box-kit: `secretsMatch` (constant-time secret comparison, moved out of
|
|
92
|
+
dist-service), `splitLines`, and `envNumber` / `envPositiveNumber` — the
|
|
93
|
+
env-reading rule the box-side services share.
|
|
94
|
+
|
|
95
|
+
`npm ci` of a bundle is a container of its own (`kind: "install"`): the
|
|
96
|
+
bundle tree is its only mount and it is writable, there is no environment
|
|
97
|
+
and no artifacts directory in reach, and a dependency's install scripts
|
|
98
|
+
RUN — a native module builds or fetches its binary as usual. That is what
|
|
99
|
+
running them inside the daemon could never allow. The container's last
|
|
100
|
+
steps, only on success, check the tree against the box's size cap, set
|
|
101
|
+
the final modes on what the install created and write the install marker
|
|
102
|
+
— each with an exit code of its own, so the daemon's log names the step
|
|
103
|
+
that failed — so a killed or oversized
|
|
104
|
+
install leaves a tree the box will not mount; a failed install takes the
|
|
105
|
+
tree with it. The daemon no longer passes `--ignore-scripts` and no
|
|
106
|
+
longer walks the tree afterwards.
|
|
107
|
+
|
|
108
|
+
The daemon runs with `umask 002` and clears `node_modules` before each
|
|
109
|
+
install, so a tree it created is one the install container (another uid
|
|
110
|
+
in its group) can actually write.
|
|
111
|
+
|
|
112
|
+
An install that fails KEEPS the tree, unmarked: nothing mounts it and the
|
|
113
|
+
next attempt reinstalls in place (`npm ci` wipes `node_modules` itself).
|
|
114
|
+
And a bundle directory holding a manifest with neither an archive nor a
|
|
115
|
+
tree behind it no longer counts as "this box has it" — a push of the same
|
|
116
|
+
content brings it back instead of being answered `already had this exact
|
|
117
|
+
bundle`.
|
|
118
|
+
|
|
119
|
+
web: `bundle push` and the docs say that a dependency's install scripts
|
|
120
|
+
run on a box, in isolation — the earlier advice to vendor them is gone.
|
|
121
|
+
|
|
122
|
+
A run ordered in the viewer now goes through the daemon's queue instead
|
|
123
|
+
of being spawned by the viewer.
|
|
124
|
+
|
|
125
|
+
`POST/GET/DELETE /api/box/envs/<project>/<env>/runs[/<runId>]` (paths and
|
|
126
|
+
wire types in `@unotest/protocol`) takes a `manual` ticket like every
|
|
127
|
+
other producer. Two callers may use it, and neither is taken on its word:
|
|
128
|
+
the guard, proving it is the guard with a shared secret from `box-init`
|
|
129
|
+
(the actor header is read only next to it — a viewer container could
|
|
130
|
+
otherwise claim to be any admin), and a viewer, with a per-environment
|
|
131
|
+
token the daemon minted when it started that viewer plus a short-lived
|
|
132
|
+
single-use ticket the guard signed over WHO clicked. The guard gates the
|
|
133
|
+
route under `admin` and requires an `Origin` on a mutation; the daemon
|
|
134
|
+
checks the token's environment, the ticket's environment and its `jti`
|
|
135
|
+
against the path.
|
|
136
|
+
|
|
137
|
+
`@unotest/viewer` gets `BoxdRunner`: on a box the Run button orders and
|
|
138
|
+
the Stop button asks the daemon, and the progress still comes from the
|
|
139
|
+
run's journal on disk. A local viewer spawns as it always did — the
|
|
140
|
+
composition root picks by whether a box handed it credentials.
|
|
141
|
+
|
|
142
|
+
### Patch Changes
|
|
143
|
+
|
|
144
|
+
- b3e1220: Box notifications: a webhook channel's header values are credentials.
|
|
145
|
+
|
|
146
|
+
The notifications API and the guard's page now see a webhook's headers
|
|
147
|
+
as names with `{ set: true }` — the values (the receiver's
|
|
148
|
+
`Authorization`, most of the time) are never read back, like the signing
|
|
149
|
+
secret. The edit form lists the names; typing a value after one replaces
|
|
150
|
+
the set, names alone keep it. `/api/box/notify` is the guard's own route:
|
|
151
|
+
it is no longer reachable through the session proxy for any role — a
|
|
152
|
+
readonly session could previously list every project's channels with
|
|
153
|
+
their headers.
|
|
154
|
+
|
|
155
|
+
- b3e1220: Box notifications: the webhook signature now covers a timestamp.
|
|
156
|
+
|
|
157
|
+
Every webhook delivery carries `X-Unotest-Timestamp` (Unix milliseconds,
|
|
158
|
+
when it was sent), and `X-Unotest-Signature` is HMAC-SHA256 over
|
|
159
|
+
`<timestamp>.<raw body>` rather than the body alone — GitHub's scheme
|
|
160
|
+
with a timestamp in front, so a delivery captured on the wire cannot be
|
|
161
|
+
replayed to the receiver once its window (five minutes, documented) has
|
|
162
|
+
passed. The GitHub webhook the box receives is unchanged: that is
|
|
163
|
+
GitHub's contract.
|
|
164
|
+
|
|
165
|
+
The `by` of a CI-triggered run (`push a1b2c3d (branch)`) is cut at 200
|
|
166
|
+
characters — a branch name is the pusher's input, and it must not balloon
|
|
167
|
+
the run's manifest and every notification the run produces.
|
|
168
|
+
|
|
3
169
|
## [0.32.0] - 2026-09-05
|
|
4
170
|
|
|
5
171
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -1562,6 +1562,315 @@ interface BoxEnvValuesView {
|
|
|
1562
1562
|
secrets: string[];
|
|
1563
1563
|
}
|
|
1564
1564
|
|
|
1565
|
+
declare const RUN_MANIFEST_FILE = "manifest.json";
|
|
1566
|
+
interface RunManifest {
|
|
1567
|
+
/** Format-version of this manifest. Bump only on breaking schema
|
|
1568
|
+
* changes — additive optional fields don't require it. Starts at 1. */
|
|
1569
|
+
schemaVersion: 1;
|
|
1570
|
+
/** Identifies which RunRequest variant produced this run. */
|
|
1571
|
+
kind: RunKind;
|
|
1572
|
+
/** Original (un-sanitized) `ref` from the request — scenario `name`
|
|
1573
|
+
* for `kind:"scenario"`, collection `name` for `kind:"collection"`.
|
|
1574
|
+
* The `runId` directory uses a sanitized form; this carries the
|
|
1575
|
+
* human-readable original. */
|
|
1576
|
+
ref: string;
|
|
1577
|
+
/** Run-id of the parent collection-run when this is a child scenario
|
|
1578
|
+
* spawned inside a collection. Absent for top-level scenario-runs
|
|
1579
|
+
* and for collection-runs themselves. */
|
|
1580
|
+
parentRunId?: string;
|
|
1581
|
+
/** Adapter `name` that produced this run (`"@unotest/web"`,
|
|
1582
|
+
* `"@unotest/mobile"`). Lets the viewer pick rendering details for
|
|
1583
|
+
* runner-specific bundle contents without runner branches in core
|
|
1584
|
+
* logic. */
|
|
1585
|
+
adapter: string;
|
|
1586
|
+
/** Wallclock at runner start. Distinct from the first event's `t`
|
|
1587
|
+
* (which may have leading delay for adapter setup). */
|
|
1588
|
+
startedAt: number;
|
|
1589
|
+
/** Environment name the run resolved (`UNOTEST_ENV` / `--env`), absent
|
|
1590
|
+
* for base. Self-description only — placement already encodes it (the
|
|
1591
|
+
* run lives under `.runs<suffix>.<env>`), so nothing filters on this. */
|
|
1592
|
+
env?: string;
|
|
1593
|
+
/** Opt-in artifact-capture flags as resolved from the runner's env at
|
|
1594
|
+
* start (`UNOTEST_CONSOLE` / `UNOTEST_NETWORK`). Recorded here so the
|
|
1595
|
+
* viewer can tell "capture was disabled" apart from "capture was on but
|
|
1596
|
+
* the run aborted before writing console.json / network.json" — a
|
|
1597
|
+
* distinction the mere presence of those files can't make. Optional: runs
|
|
1598
|
+
* produced before this field existed simply omit it, and the viewer falls
|
|
1599
|
+
* back to a file-presence heuristic. */
|
|
1600
|
+
capture?: {
|
|
1601
|
+
console: boolean;
|
|
1602
|
+
network: boolean;
|
|
1603
|
+
};
|
|
1604
|
+
/** Which test bundle produced this run, when the sources came from one
|
|
1605
|
+
* (`UNOTEST_BUNDLE_ID`, set by a box). Absent for every local run,
|
|
1606
|
+
* where the sources are simply the working directory.
|
|
1607
|
+
*
|
|
1608
|
+
* Recorded so history stays readable after the fact: a box runs many
|
|
1609
|
+
* bundles into one environment, and "which code produced this red
|
|
1610
|
+
* run" is otherwise unanswerable once the environment moved on. */
|
|
1611
|
+
bundleId?: string;
|
|
1612
|
+
/** What set the run off. Absent on a manifest written before the field
|
|
1613
|
+
* existed, and on every run nobody described — both read as `cli`
|
|
1614
|
+
* (see {@link manifestTrigger}). */
|
|
1615
|
+
trigger?: RunTrigger;
|
|
1616
|
+
}
|
|
1617
|
+
/** Who or what started a run. `schedule` — a box's own timer; `ci` — a
|
|
1618
|
+
* provider's push or pull request through the box; `manual` — a person
|
|
1619
|
+
* (or their agent) pressing Run in the viewer; `cli` — a terminal, which
|
|
1620
|
+
* is also the answer for a run that said nothing. */
|
|
1621
|
+
type RunTriggerKind = "schedule" | "ci" | "manual" | "cli";
|
|
1622
|
+
interface RunTrigger {
|
|
1623
|
+
kind: RunTriggerKind;
|
|
1624
|
+
/** Who, or which change: a login, `push a1b2c3d (feature/x)`. Absent when
|
|
1625
|
+
* the trigger has nobody to name (a schedule). */
|
|
1626
|
+
by?: string;
|
|
1627
|
+
}
|
|
1628
|
+
/** `UNOTEST_RUN_TRIGGER` — a {@link RunTriggerKind}, set by whoever spawns
|
|
1629
|
+
* the runner: a box for its scheduled and CI runs, the viewer for a run
|
|
1630
|
+
* ordered from its UI. A terminal sets nothing. */
|
|
1631
|
+
declare const RUN_TRIGGER_ENV = "UNOTEST_RUN_TRIGGER";
|
|
1632
|
+
/** `UNOTEST_RUN_ACTOR` — the trigger's `by`, optional. */
|
|
1633
|
+
declare const RUN_ACTOR_ENV = "UNOTEST_RUN_ACTOR";
|
|
1634
|
+
/** The trigger the environment describes, or undefined when it describes
|
|
1635
|
+
* none — a value that is not a trigger kind is a caller's mistake and is
|
|
1636
|
+
* treated as silence rather than guessed at. */
|
|
1637
|
+
declare function runTriggerFromEnv(env: Readonly<Record<string, string | undefined>>): RunTrigger | undefined;
|
|
1638
|
+
/** The variables that hand a trigger to a runner — the inverse of
|
|
1639
|
+
* {@link runTriggerFromEnv}, so a box and the viewer spell them the same
|
|
1640
|
+
* way. */
|
|
1641
|
+
declare function runTriggerEnv(trigger: RunTrigger): Record<string, string>;
|
|
1642
|
+
/** A manifest's trigger, with the default spelled out: no field = `cli`. */
|
|
1643
|
+
declare function manifestTrigger(manifest: Pick<RunManifest, "trigger">): RunTrigger;
|
|
1644
|
+
|
|
1645
|
+
/** Session-door root:
|
|
1646
|
+
*
|
|
1647
|
+
* GET /api/box/notify every project
|
|
1648
|
+
* GET /api/box/notify/<project> one project, secrets as set:true
|
|
1649
|
+
* PUT /api/box/notify/<project>/channels/<id> create or update
|
|
1650
|
+
* PATCH /api/box/notify/<project>/channels/<id> {"enabled": …}
|
|
1651
|
+
* DELETE /api/box/notify/<project>/channels/<id>
|
|
1652
|
+
* POST /api/box/notify/<project>/channels/<id>/test
|
|
1653
|
+
* PUT/PATCH/DELETE /api/box/notify/<project>/rules/<id>
|
|
1654
|
+
* PUT/DELETE /api/box/notify/<project>/quiet-hours
|
|
1655
|
+
* GET /api/box/notify/<project>/series the ledger
|
|
1656
|
+
* POST /api/box/notify/<project>/series/<key>/reset
|
|
1657
|
+
* PUT/DELETE /api/box/notify/<project>/mutes/<id>
|
|
1658
|
+
* GET /api/box/notify/<project>/preview?rule=<id>&state=<state>
|
|
1659
|
+
*/
|
|
1660
|
+
declare const BOX_NOTIFY_PATH = "/api/box/notify";
|
|
1661
|
+
declare function boxNotifyProjectPath(project: string): string;
|
|
1662
|
+
declare function boxNotifyChannelPath(project: string, channelId: string): string;
|
|
1663
|
+
declare function boxNotifyTestPath(project: string, channelId: string): string;
|
|
1664
|
+
declare function boxNotifyRulePath(project: string, ruleId: string): string;
|
|
1665
|
+
declare function boxNotifyQuietHoursPath(project: string): string;
|
|
1666
|
+
declare function boxNotifySeriesPath(project: string): string;
|
|
1667
|
+
/** The key (`project/env/kind:name`) travels as ONE segment. */
|
|
1668
|
+
declare function boxNotifySeriesResetPath(project: string, seriesKey: string): string;
|
|
1669
|
+
declare function boxNotifyMutePath(project: string, muteId: string): string;
|
|
1670
|
+
declare function boxNotifyPreviewPath(project: string, ruleId: string, state: BoxNotifyState): string;
|
|
1671
|
+
type BoxNotifyChannelKind = "slack" | "telegram" | "webhook";
|
|
1672
|
+
declare const BOX_NOTIFY_CHANNEL_KINDS: readonly BoxNotifyChannelKind[];
|
|
1673
|
+
type BoxNotifyTriggerKind = RunTriggerKind;
|
|
1674
|
+
declare const BOX_NOTIFY_TRIGGER_KINDS: readonly BoxNotifyTriggerKind[];
|
|
1675
|
+
/** What a rule subscribes to. `passed` is said only about runs that are
|
|
1676
|
+
* not scheduled ticks; a schedule says `recovered`. */
|
|
1677
|
+
type BoxNotifyEvent = "failed" | "recovered" | "not-run" | "passed";
|
|
1678
|
+
declare const BOX_NOTIFY_EVENTS: readonly BoxNotifyEvent[];
|
|
1679
|
+
/** What a message can be about — the events plus the reminder. */
|
|
1680
|
+
type BoxNotifyState = BoxNotifyEvent | "still-failing";
|
|
1681
|
+
declare const BOX_NOTIFY_STATES: readonly BoxNotifyState[];
|
|
1682
|
+
/** A credential as a page sees it: whether there is one. */
|
|
1683
|
+
interface BoxNotifySecret {
|
|
1684
|
+
set: boolean;
|
|
1685
|
+
}
|
|
1686
|
+
interface BoxNotifyLastDelivery {
|
|
1687
|
+
at: number;
|
|
1688
|
+
outcome: "sent" | "failed";
|
|
1689
|
+
error?: string;
|
|
1690
|
+
}
|
|
1691
|
+
interface BoxNotifyChannelCommon {
|
|
1692
|
+
id: string;
|
|
1693
|
+
name: string;
|
|
1694
|
+
enabled: boolean;
|
|
1695
|
+
lastDelivery?: BoxNotifyLastDelivery;
|
|
1696
|
+
}
|
|
1697
|
+
type BoxNotifyChannelView = BoxNotifyChannelCommon & ({
|
|
1698
|
+
kind: "slack";
|
|
1699
|
+
webhookUrl: BoxNotifySecret;
|
|
1700
|
+
} | {
|
|
1701
|
+
kind: "telegram";
|
|
1702
|
+
botToken: BoxNotifySecret;
|
|
1703
|
+
chatId: string;
|
|
1704
|
+
threadId?: string;
|
|
1705
|
+
}
|
|
1706
|
+
/** Header VALUES are credentials (the receiver's `Authorization`,
|
|
1707
|
+
* most of the time): the view keeps the names and says `{ set }`. */
|
|
1708
|
+
| {
|
|
1709
|
+
kind: "webhook";
|
|
1710
|
+
url: string;
|
|
1711
|
+
secret: BoxNotifySecret;
|
|
1712
|
+
headers?: Record<string, BoxNotifySecret>;
|
|
1713
|
+
});
|
|
1714
|
+
interface BoxNotifyRule {
|
|
1715
|
+
id: string;
|
|
1716
|
+
name?: string;
|
|
1717
|
+
enabled: boolean;
|
|
1718
|
+
/** Absent = every environment of the project. */
|
|
1719
|
+
environments?: string[];
|
|
1720
|
+
triggers: BoxNotifyTriggerKind[];
|
|
1721
|
+
events: BoxNotifyEvent[];
|
|
1722
|
+
/** Channel ids. */
|
|
1723
|
+
channels: string[];
|
|
1724
|
+
afterFailures: number;
|
|
1725
|
+
/** Milliseconds. */
|
|
1726
|
+
repeatEvery?: number;
|
|
1727
|
+
}
|
|
1728
|
+
type BoxNotifyMuteScope = {
|
|
1729
|
+
series: string;
|
|
1730
|
+
} | {
|
|
1731
|
+
project: true;
|
|
1732
|
+
};
|
|
1733
|
+
interface BoxNotifyMute {
|
|
1734
|
+
id: string;
|
|
1735
|
+
scope: BoxNotifyMuteScope;
|
|
1736
|
+
/** Unix milliseconds; absent = until unmuted. */
|
|
1737
|
+
until?: number;
|
|
1738
|
+
by: string;
|
|
1739
|
+
reason?: string;
|
|
1740
|
+
at: number;
|
|
1741
|
+
}
|
|
1742
|
+
interface BoxNotifyQuietHours {
|
|
1743
|
+
from: string;
|
|
1744
|
+
to: string;
|
|
1745
|
+
/** IANA zone. */
|
|
1746
|
+
tz: string;
|
|
1747
|
+
}
|
|
1748
|
+
interface BoxNotifyProjectView {
|
|
1749
|
+
project: string;
|
|
1750
|
+
channels: BoxNotifyChannelView[];
|
|
1751
|
+
rules: BoxNotifyRule[];
|
|
1752
|
+
mutes: BoxNotifyMute[];
|
|
1753
|
+
quietHours?: BoxNotifyQuietHours;
|
|
1754
|
+
}
|
|
1755
|
+
interface BoxNotifyView {
|
|
1756
|
+
projects: BoxNotifyProjectView[];
|
|
1757
|
+
}
|
|
1758
|
+
/** One series of the ledger, as the page's table shows it. */
|
|
1759
|
+
interface BoxNotifySeriesEntry {
|
|
1760
|
+
/** `<project>/<environment>/<kind>:<name>`. */
|
|
1761
|
+
key: string;
|
|
1762
|
+
environment: string;
|
|
1763
|
+
target: {
|
|
1764
|
+
kind: "collection" | "scenario";
|
|
1765
|
+
name: string;
|
|
1766
|
+
};
|
|
1767
|
+
state: "ok" | "failed";
|
|
1768
|
+
/** The daemon's word for why (`tests-failed`, `not-arrived`, …). */
|
|
1769
|
+
reason: string;
|
|
1770
|
+
since: number;
|
|
1771
|
+
failures: number;
|
|
1772
|
+
lastNotifiedAt?: number;
|
|
1773
|
+
/** The mute covering it now, if any. */
|
|
1774
|
+
mute?: BoxNotifyMute;
|
|
1775
|
+
}
|
|
1776
|
+
interface BoxNotifySeriesView {
|
|
1777
|
+
project: string;
|
|
1778
|
+
series: BoxNotifySeriesEntry[];
|
|
1779
|
+
}
|
|
1780
|
+
/** The text a rule would send for one state — the daemon renders it from
|
|
1781
|
+
* a made-up run so the page can show it next to the rule. */
|
|
1782
|
+
interface BoxNotifyPreview {
|
|
1783
|
+
state: BoxNotifyState;
|
|
1784
|
+
title: string;
|
|
1785
|
+
lines: string[];
|
|
1786
|
+
url?: string;
|
|
1787
|
+
}
|
|
1788
|
+
/** `POST …/test` — what happened to the test event. */
|
|
1789
|
+
type BoxNotifyTestResult =
|
|
1790
|
+
/** `note` — a caveat on a delivery that went through: the channel is
|
|
1791
|
+
* switched off, so real events will not follow yet. */
|
|
1792
|
+
{
|
|
1793
|
+
status: "sent";
|
|
1794
|
+
channel: string;
|
|
1795
|
+
note?: string;
|
|
1796
|
+
} | {
|
|
1797
|
+
status: "failed";
|
|
1798
|
+
channel: string;
|
|
1799
|
+
message: string;
|
|
1800
|
+
};
|
|
1801
|
+
/** What a write answers with: which record, and what became of it. */
|
|
1802
|
+
interface BoxNotifyChanged {
|
|
1803
|
+
status: "created" | "updated" | "removed";
|
|
1804
|
+
id: string;
|
|
1805
|
+
}
|
|
1806
|
+
/** `PUT …/channels/<id>`. On an update a secret left out is KEPT — the
|
|
1807
|
+
* page never has the value to send back; on a create it is required. */
|
|
1808
|
+
type BoxNotifyChannelWrite = {
|
|
1809
|
+
name: string;
|
|
1810
|
+
enabled?: boolean;
|
|
1811
|
+
} & ({
|
|
1812
|
+
kind: "slack";
|
|
1813
|
+
webhookUrl?: string;
|
|
1814
|
+
} | {
|
|
1815
|
+
kind: "telegram";
|
|
1816
|
+
botToken?: string;
|
|
1817
|
+
chatId: string;
|
|
1818
|
+
threadId?: string;
|
|
1819
|
+
} | {
|
|
1820
|
+
kind: "webhook";
|
|
1821
|
+
url: string;
|
|
1822
|
+
secret?: string;
|
|
1823
|
+
headers?: Record<string, string>;
|
|
1824
|
+
});
|
|
1825
|
+
interface BoxNotifyEnabledPatch {
|
|
1826
|
+
enabled: boolean;
|
|
1827
|
+
}
|
|
1828
|
+
/** `PUT …/rules/<id>`. `enabled` absent keeps the rule's switch as it is
|
|
1829
|
+
* (a new rule is on). */
|
|
1830
|
+
interface BoxNotifyRuleWrite {
|
|
1831
|
+
name?: string;
|
|
1832
|
+
enabled?: boolean;
|
|
1833
|
+
environments?: string[];
|
|
1834
|
+
triggers?: BoxNotifyTriggerKind[];
|
|
1835
|
+
events?: BoxNotifyEvent[];
|
|
1836
|
+
channels: string[];
|
|
1837
|
+
afterFailures?: number;
|
|
1838
|
+
repeatEvery?: number;
|
|
1839
|
+
}
|
|
1840
|
+
interface BoxNotifyMuteWrite {
|
|
1841
|
+
scope: BoxNotifyMuteScope;
|
|
1842
|
+
until?: number;
|
|
1843
|
+
reason?: string;
|
|
1844
|
+
}
|
|
1845
|
+
type BoxNotifyQuietHoursWrite = BoxNotifyQuietHours;
|
|
1846
|
+
/** Why a notify request was refused. A code, not a message — the CLI and
|
|
1847
|
+
* the page turn each into their own advice. */
|
|
1848
|
+
type BoxNotifyErrorCode =
|
|
1849
|
+
/** No actor on the session door. */
|
|
1850
|
+
"unauthorized" | "unknown-project" | "unknown-channel" | "unknown-rule" | "unknown-mute" | "unknown-series"
|
|
1851
|
+
/** The body is not what the route takes, or the daemon's schema refused
|
|
1852
|
+
* it (a rule naming no channel, a duplicate name, a bad zone). */
|
|
1853
|
+
| "malformed" | "storage";
|
|
1854
|
+
interface BoxNotifyError {
|
|
1855
|
+
error: {
|
|
1856
|
+
code: BoxNotifyErrorCode;
|
|
1857
|
+
message: string;
|
|
1858
|
+
};
|
|
1859
|
+
}
|
|
1860
|
+
declare function parseBoxNotifyView(value: unknown): BoxNotifyView | null;
|
|
1861
|
+
declare function parseBoxNotifyProjectView(value: unknown): BoxNotifyProjectView | null;
|
|
1862
|
+
declare function parseBoxNotifySeriesView(value: unknown): BoxNotifySeriesView | null;
|
|
1863
|
+
declare function parseBoxNotifyPreview(value: unknown): BoxNotifyPreview | null;
|
|
1864
|
+
declare function parseBoxNotifyTestResult(value: unknown): BoxNotifyTestResult | null;
|
|
1865
|
+
declare function parseBoxNotifyChanged(value: unknown): BoxNotifyChanged | null;
|
|
1866
|
+
/** The daemon's refusal, or null when the body is not one of ours. */
|
|
1867
|
+
declare function parseBoxNotifyError(value: unknown): BoxNotifyError | null;
|
|
1868
|
+
declare function isBoxNotifyState(value: unknown): value is BoxNotifyState;
|
|
1869
|
+
/** The trigger a preview is rendered with, from a rule's first trigger —
|
|
1870
|
+
* kept here so the daemon and the page name the same sample actor. */
|
|
1871
|
+
declare function boxNotifyPreviewTrigger(kind: BoxNotifyTriggerKind): RunTrigger;
|
|
1872
|
+
declare function parseBoxNotifyMuteScope(value: unknown): BoxNotifyMuteScope | null;
|
|
1873
|
+
|
|
1565
1874
|
/** The personal read token, for people and agents that would rather not
|
|
1566
1875
|
* repeat it on every command line. Deliberately NOT `UNOTEST_BOX_TOKEN`
|
|
1567
1876
|
* (see {@link BOX_TOKEN_ENV}): one is the project's push credential, the
|
|
@@ -1665,6 +1974,55 @@ declare function parseBoxReadError(value: unknown): BoxReadErrorBody | null;
|
|
|
1665
1974
|
* not recognise is not a box answering. */
|
|
1666
1975
|
declare function parseBoxReadEnvironments(value: unknown): BoxReadEnvironment[] | null;
|
|
1667
1976
|
|
|
1977
|
+
declare const BOX_RUNS_SEGMENT = "runs";
|
|
1978
|
+
/** Set by the guard, forwarded by the viewer verbatim, verified by the
|
|
1979
|
+
* daemon: WHO clicked, in a form the thing in between cannot write.
|
|
1980
|
+
* Named here because three packages have to spell it identically and
|
|
1981
|
+
* this is the one they all already depend on — the signing and the
|
|
1982
|
+
* verification live on the box side (`@unotest/box-kit`), which is
|
|
1983
|
+
* where the secret is. */
|
|
1984
|
+
declare const ACTOR_TICKET_HEADER = "x-unotest-actor-ticket";
|
|
1985
|
+
/** Set by the guard on its own requests to the daemon. The daemon reads
|
|
1986
|
+
* the actor label only next to a valid one. */
|
|
1987
|
+
declare const GUARD_SECRET_HEADER = "x-unotest-guard-secret";
|
|
1988
|
+
/** `/api/box/envs/<project>/<env>/runs`. */
|
|
1989
|
+
declare function boxRunsPath(project: string, environment: string): string;
|
|
1990
|
+
/** `/api/box/envs/<project>/<env>/runs/<runId>`. */
|
|
1991
|
+
declare function boxRunPath(project: string, environment: string, runId: string): string;
|
|
1992
|
+
/** What the viewer asks for. Deliberately not the viewer's own
|
|
1993
|
+
* `RunRequest`: that one carries local concerns (worker counts, debug
|
|
1994
|
+
* flags) the box decides for itself, and a box route that accepted them
|
|
1995
|
+
* would be a second way to configure a run. */
|
|
1996
|
+
interface BoxRunRequest {
|
|
1997
|
+
kind: "collection" | "scenario";
|
|
1998
|
+
/** Collection name, or a scenario ref (`folder/test`). */
|
|
1999
|
+
ref: string;
|
|
2000
|
+
}
|
|
2001
|
+
/** The daemon accepted the ticket. The run has NOT started — on a busy
|
|
2002
|
+
* box it may wait behind a suite for a while, which is the whole point
|
|
2003
|
+
* of there being one queue.
|
|
2004
|
+
*
|
|
2005
|
+
* No ticket name: the queue's file names are the box's own business,
|
|
2006
|
+
* and stopping a run goes back through `DELETE …/runs/<runId>` rather
|
|
2007
|
+
* than through the queue directly. The run id is the only handle a
|
|
2008
|
+
* caller needs, and the only one it is given. */
|
|
2009
|
+
interface BoxRunAccepted {
|
|
2010
|
+
runId: string;
|
|
2011
|
+
acceptedAt: number;
|
|
2012
|
+
}
|
|
2013
|
+
type BoxRunState = "queued" | "running" | "finished";
|
|
2014
|
+
interface BoxRunStatus {
|
|
2015
|
+
runId: string;
|
|
2016
|
+
state: BoxRunState;
|
|
2017
|
+
/** Present once the run ended. `null` when it died on a signal. */
|
|
2018
|
+
exitCode?: number | null;
|
|
2019
|
+
startedAt?: number;
|
|
2020
|
+
finishedAt?: number;
|
|
2021
|
+
}
|
|
2022
|
+
declare function parseBoxRunRequest(value: unknown): BoxRunRequest | null;
|
|
2023
|
+
declare function parseBoxRunAccepted(value: unknown): BoxRunAccepted | null;
|
|
2024
|
+
declare function parseBoxRunStatus(value: unknown): BoxRunStatus | null;
|
|
2025
|
+
|
|
1668
2026
|
declare const WORKSPACE_SCHEMA_VERSION = 1;
|
|
1669
2027
|
/** Written by the host beside the artifacts it manages:
|
|
1670
2028
|
* `<artifactsRoot>/unotest/.workspace.json`. In the artifact tree and
|
|
@@ -1927,55 +2285,6 @@ interface CollectionMeta {
|
|
|
1927
2285
|
prepare: string | null;
|
|
1928
2286
|
}
|
|
1929
2287
|
|
|
1930
|
-
declare const RUN_MANIFEST_FILE = "manifest.json";
|
|
1931
|
-
interface RunManifest {
|
|
1932
|
-
/** Format-version of this manifest. Bump only on breaking schema
|
|
1933
|
-
* changes — additive optional fields don't require it. Starts at 1. */
|
|
1934
|
-
schemaVersion: 1;
|
|
1935
|
-
/** Identifies which RunRequest variant produced this run. */
|
|
1936
|
-
kind: RunKind;
|
|
1937
|
-
/** Original (un-sanitized) `ref` from the request — scenario `name`
|
|
1938
|
-
* for `kind:"scenario"`, collection `name` for `kind:"collection"`.
|
|
1939
|
-
* The `runId` directory uses a sanitized form; this carries the
|
|
1940
|
-
* human-readable original. */
|
|
1941
|
-
ref: string;
|
|
1942
|
-
/** Run-id of the parent collection-run when this is a child scenario
|
|
1943
|
-
* spawned inside a collection. Absent for top-level scenario-runs
|
|
1944
|
-
* and for collection-runs themselves. */
|
|
1945
|
-
parentRunId?: string;
|
|
1946
|
-
/** Adapter `name` that produced this run (`"@unotest/web"`,
|
|
1947
|
-
* `"@unotest/mobile"`). Lets the viewer pick rendering details for
|
|
1948
|
-
* runner-specific bundle contents without runner branches in core
|
|
1949
|
-
* logic. */
|
|
1950
|
-
adapter: string;
|
|
1951
|
-
/** Wallclock at runner start. Distinct from the first event's `t`
|
|
1952
|
-
* (which may have leading delay for adapter setup). */
|
|
1953
|
-
startedAt: number;
|
|
1954
|
-
/** Environment name the run resolved (`UNOTEST_ENV` / `--env`), absent
|
|
1955
|
-
* for base. Self-description only — placement already encodes it (the
|
|
1956
|
-
* run lives under `.runs<suffix>.<env>`), so nothing filters on this. */
|
|
1957
|
-
env?: string;
|
|
1958
|
-
/** Opt-in artifact-capture flags as resolved from the runner's env at
|
|
1959
|
-
* start (`UNOTEST_CONSOLE` / `UNOTEST_NETWORK`). Recorded here so the
|
|
1960
|
-
* viewer can tell "capture was disabled" apart from "capture was on but
|
|
1961
|
-
* the run aborted before writing console.json / network.json" — a
|
|
1962
|
-
* distinction the mere presence of those files can't make. Optional: runs
|
|
1963
|
-
* produced before this field existed simply omit it, and the viewer falls
|
|
1964
|
-
* back to a file-presence heuristic. */
|
|
1965
|
-
capture?: {
|
|
1966
|
-
console: boolean;
|
|
1967
|
-
network: boolean;
|
|
1968
|
-
};
|
|
1969
|
-
/** Which test bundle produced this run, when the sources came from one
|
|
1970
|
-
* (`UNOTEST_BUNDLE_ID`, set by a box). Absent for every local run,
|
|
1971
|
-
* where the sources are simply the working directory.
|
|
1972
|
-
*
|
|
1973
|
-
* Recorded so history stays readable after the fact: a box runs many
|
|
1974
|
-
* bundles into one environment, and "which code produced this red
|
|
1975
|
-
* run" is otherwise unanswerable once the environment moved on. */
|
|
1976
|
-
bundleId?: string;
|
|
1977
|
-
}
|
|
1978
|
-
|
|
1979
2288
|
/** Snapshot file holding entry + every helper source that was loaded. */
|
|
1980
2289
|
declare const RUN_SOURCES_FILE = "sources.json";
|
|
1981
2290
|
interface RunSources {
|
|
@@ -2894,4 +3203,4 @@ declare const JUDGE_ENV: {
|
|
|
2894
3203
|
readonly skipPreflight: "UNOTEST_JUDGE_SKIP_PREFLIGHT";
|
|
2895
3204
|
};
|
|
2896
3205
|
|
|
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 };
|
|
3206
|
+
export { ACTOR_TICKET_HEADER, ARTIFACTS_ROOT_ENV, type AddVariablePlan, type AddVariablePlanInput, type AppPathPickerSpec, type AppServerEvent, type AuthoringRunRequest, BLOBS_DIR, BOX_ENV_VALUES_SEGMENT, BOX_NOTIFY_CHANNEL_KINDS, BOX_NOTIFY_EVENTS, BOX_NOTIFY_PATH, BOX_NOTIFY_STATES, BOX_NOTIFY_TRIGGER_KINDS, BOX_READ_ENVIRONMENTS_PATH, BOX_READ_ENVIRONMENT_HEADER, BOX_READ_TOKEN_ENV, BOX_READ_TOKEN_PREFIX, BOX_REVEAL_SEGMENT, BOX_RUNS_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 BoxNotifyChanged, type BoxNotifyChannelKind, type BoxNotifyChannelView, type BoxNotifyChannelWrite, type BoxNotifyEnabledPatch, type BoxNotifyError, type BoxNotifyErrorCode, type BoxNotifyEvent, type BoxNotifyLastDelivery, type BoxNotifyMute, type BoxNotifyMuteScope, type BoxNotifyMuteWrite, type BoxNotifyPreview, type BoxNotifyProjectView, type BoxNotifyQuietHours, type BoxNotifyQuietHoursWrite, type BoxNotifyRule, type BoxNotifyRuleWrite, type BoxNotifySecret, type BoxNotifySeriesEntry, type BoxNotifySeriesView, type BoxNotifyState, type BoxNotifyTestResult, type BoxNotifyTriggerKind, type BoxNotifyView, type BoxReadEnvironment, type BoxReadErrorBody, type BoxReadErrorCode, type BoxRunAccepted, type BoxRunRequest, type BoxRunState, type BoxRunStatus, 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, GUARD_SECRET_HEADER, 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_ACTOR_ENV, RUN_INDEX_SCHEMA_VERSION, RUN_MANIFEST_FILE, RUN_SOURCES_FILE, RUN_TRIGGER_ENV, 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, type RunTrigger, type RunTriggerKind, 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, boxNotifyChannelPath, boxNotifyMutePath, boxNotifyPreviewPath, boxNotifyPreviewTrigger, boxNotifyProjectPath, boxNotifyQuietHoursPath, boxNotifyRulePath, boxNotifySeriesPath, boxNotifySeriesResetPath, boxNotifyTestPath, boxRunPath, boxRunsPath, 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, isBoxNotifyState, isEnvVarName, isExternalVarName, isFailingStatus, isQueueDirName, isRecord, isRegexLiteral, isRunnerConfigKey, isRunnerSetting, isRunsDirName, isTerminalRuntimeState, makeQueueTicketName, makeRunId, manifestTrigger, mergeSchedules, nextTickFromSpec, parseAppServerEvent, parseBoxEnvValuesReplaceRequest, parseBoxNotifyChanged, parseBoxNotifyError, parseBoxNotifyMuteScope, parseBoxNotifyPreview, parseBoxNotifyProjectView, parseBoxNotifySeriesView, parseBoxNotifyTestResult, parseBoxNotifyView, parseBoxReadEnvironments, parseBoxReadError, parseBoxRunAccepted, parseBoxRunRequest, parseBoxRunStatus, 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, runTriggerEnv, runTriggerFromEnv, 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 _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};
|
|
1
|
+
const _0xef7a9b=_0xed3b;(function(_0x1e0a0e,_0x44d913){const _0x4f3fef={_0x61f0c:0x1eb,_0x48267e:0x1a6},_0x32ca75=_0xed3b,_0x2ba8b5=_0x1e0a0e();while(!![]){try{const _0x2d81f0=-parseInt(_0x32ca75(0x276))/0x1+parseInt(_0x32ca75(0x2c0))/0x2*(-parseInt(_0x32ca75(0x193))/0x3)+-parseInt(_0x32ca75(0x264))/0x4+-parseInt(_0x32ca75(0x1cd))/0x5*(parseInt(_0x32ca75(_0x4f3fef._0x61f0c))/0x6)+parseInt(_0x32ca75(0x1bf))/0x7+parseInt(_0x32ca75(0x314))/0x8*(-parseInt(_0x32ca75(0x28c))/0x9)+parseInt(_0x32ca75(_0x4f3fef._0x48267e))/0xa*(parseInt(_0x32ca75(0x1b1))/0xb);if(_0x2d81f0===_0x44d913)break;else _0x2ba8b5['push'](_0x2ba8b5['shift']());}catch(_0x5d1ae1){_0x2ba8b5['push'](_0x2ba8b5['shift']());}}}(_0x39d6,0x7aa72));var __defProp=Object[_0xef7a9b(0x2f2)],__name=(_0xb163f1,_0x26ac10)=>__defProp(_0xb163f1,_0xef7a9b(0x2ba),{'value':_0x26ac10,'configurable':!![]});function parseAppServerEvent(_0xd6c1d){const _0x57d04a={_0x18c473:0x251,_0x432138:0x19a,_0x143eaa:0x277,_0x4ba450:0x280},_0x2b7716=_0xef7a9b,_0x3e5e3e=_0xd6c1d[_0x2b7716(0x2a0)]();if(!_0x3e5e3e[_0x2b7716(_0x57d04a._0x18c473)]('{'))return null;try{const _0x3428bc=JSON['parse'](_0x3e5e3e);if(_0x3428bc['kind']===_0x2b7716(_0x57d04a._0x432138)||_0x3428bc[_0x2b7716(_0x57d04a._0x143eaa)]===_0x2b7716(_0x57d04a._0x4ba450)||_0x3428bc[_0x2b7716(0x277)]==='app-server:error')return _0x3428bc;return null;}catch{return null;}}__name(parseAppServerEvent,_0xef7a9b(0x271));function isRecord(_0xc090cb){const _0x26f137={_0x1ea326:0x204},_0x59aaee=_0xef7a9b;return typeof _0xc090cb===_0x59aaee(0x285)&&_0xc090cb!==null&&!Array[_0x59aaee(_0x26f137._0x1ea326)](_0xc090cb);}__name(isRecord,_0xef7a9b(0x2dd));var UNOTEST_DIR='unotest',E2E_SUBDIR=_0xef7a9b(0x300),HELPERS_SUBDIR='_helpers',COLLECTIONS_SUBDIR='_collections',RUNS_SUBDIR=_0xef7a9b(0x222),SNAPSHOTS_SUBDIR=_0xef7a9b(0x177);function testDirFor(_0x4cb2d2){return''+E2E_SUBDIR+_0x4cb2d2;}__name(testDirFor,'testDirFor');function runsDirFor(_0x3fd9d5,_0x599753){return''+RUNS_SUBDIR+_0x3fd9d5+(_0x599753?'.'+_0x599753:'');}__name(runsDirFor,'runsDirFor');function isRunsDirName(_0x1a5271){const _0x551962={_0x59c81b:0x251},_0x31d182=_0xef7a9b;return _0x1a5271===RUNS_SUBDIR||_0x1a5271[_0x31d182(_0x551962._0x59c81b)](RUNS_SUBDIR+'-')||_0x1a5271[_0x31d182(0x251)](RUNS_SUBDIR+'.');}__name(isRunsDirName,_0xef7a9b(0x303));function debugDirFor(_0x5e770c){return'.debug'+_0x5e770c;}__name(debugDirFor,_0xef7a9b(0x2c3));function debuggerFileFor(_0x237643){const _0x48710c={_0x4a9c06:0x287},_0x597d2b=_0xef7a9b;return UNOTEST_DIR+_0x597d2b(_0x48710c._0x4a9c06)+_0x237643+_0x597d2b(0x167);}__name(debuggerFileFor,_0xef7a9b(0x2de));var LOCK_FILE=_0xef7a9b(0x1b4),LOG_FILE=_0xef7a9b(0x21c),STEPS_FILE=_0xef7a9b(0x23b),HEARTBEAT_FILE='heartbeat',DAY_INDEX_FILE=_0xef7a9b(0x233),SCENARIOS_INDEX_DIR=_0xef7a9b(0x20f),SCENARIOS_LATEST_FILE=_0xef7a9b(0x22d),STDOUT_FILE=_0xef7a9b(0x1c9),STDERR_FILE='stderr.log',COMMANDS_FILE=_0xef7a9b(0x180),RUNTIME_FILE=_0xef7a9b(0x28d),PICKER_SNAPSHOT_FILE=_0xef7a9b(0x302),ENV_FILE=_0xef7a9b(0x23f),SECRETS_FILE=_0xef7a9b(0x1c4),SCHEDULES_FILE=_0xef7a9b(0x1d8);function envFileFor(_0x222781,_0x1f7e6f){return''+ENV_FILE+_0x222781+(_0x1f7e6f?'.'+_0x1f7e6f:'');}__name(envFileFor,_0xef7a9b(0x1e8));function secretsFileFor(_0x5b32c8,_0x5969e5){return''+SECRETS_FILE+_0x5b32c8+(_0x5969e5?'.'+_0x5969e5:'');}__name(secretsFileFor,_0xef7a9b(0x30b));function envLayerFilesFor(_0x39785e,_0x5d31ee){return layersFor(ENV_FILE,_0x39785e,_0x5d31ee);}__name(envLayerFilesFor,'envLayerFilesFor');function secretsLayerFilesFor(_0x27414e,_0x1ae691){return layersFor(SECRETS_FILE,_0x27414e,_0x1ae691);}__name(secretsLayerFilesFor,_0xef7a9b(0x27b));function layersFor(_0x422594,_0x538a7b,_0x3aecf0){const _0x2f238a=_0xef7a9b,_0x27a646=[_0x422594];if(_0x538a7b)_0x27a646[_0x2f238a(0x2d6)](''+_0x422594+_0x538a7b);if(_0x3aecf0){_0x27a646[_0x2f238a(0x2d6)](_0x422594+'.'+_0x3aecf0);if(_0x538a7b)_0x27a646[_0x2f238a(0x2d6)](''+_0x422594+_0x538a7b+'.'+_0x3aecf0);}return _0x27a646;}__name(layersFor,_0xef7a9b(0x263));var ARTIFACTS_ROOT_ENV=_0xef7a9b(0x2b3);function artifactsRootFrom(_0x470003,_0x368033){const _0x4a7b44=_0xef7a9b,_0x5dcb39=_0x470003[ARTIFACTS_ROOT_ENV]?.[_0x4a7b44(0x2a0)]();return _0x5dcb39?_0x5dcb39:_0x368033;}__name(artifactsRootFrom,_0xef7a9b(0x260));function activeEnvName(_0x43c325){const _0x4b245a=_0xef7a9b,_0x13ff15=_0x43c325[_0x4b245a(0x310)]?.['trim']();return _0x13ff15?_0x13ff15:void 0x0;}__name(activeEnvName,_0xef7a9b(0x2fb));var RESERVED_ENV_NAMES=new Set([_0xef7a9b(0x155),_0xef7a9b(0x1da),'template']);function envNamesFromDirListing(_0x21dea7,_0x4cc670){const _0x1b1d30={_0x2a9b95:0x230,_0x2aa971:0x22f},_0x2bf390=_0xef7a9b,_0x1ea852=['.env','.secrets'][_0x2bf390(_0x1b1d30._0x2a9b95)](_0x523868=>_0x4cc670?[_0x523868,''+_0x523868+_0x4cc670]:[_0x523868]),_0x4ec592=new Set();for(const _0x2d4fb2 of _0x21dea7){for(const _0x4b6e0a of _0x1ea852){const _0x27fe87=_0x4b6e0a+'.';if(!_0x2d4fb2['startsWith'](_0x27fe87))continue;const _0x4e3274=_0x2d4fb2[_0x2bf390(0x29a)](_0x27fe87[_0x2bf390(_0x1b1d30._0x2aa971)]);if(!_0x4e3274||_0x4e3274[_0x2bf390(0x201)]('/'))continue;if(RESERVED_ENV_NAMES['has'](_0x4e3274))continue;_0x4ec592['add'](_0x4e3274);}}return[..._0x4ec592][_0x2bf390(0x1d9)]();}__name(envNamesFromDirListing,_0xef7a9b(0x14e));function isRegexLiteral(_0x29ffac){const _0x3b795f={_0x7cdf58:0x277,_0x217c08:0x1e1,_0x19634e:0x2d7,_0x2a5fd4:0x1b6},_0x2c2d08=_0xef7a9b;return typeof _0x29ffac===_0x2c2d08(0x285)&&_0x29ffac!==null&&_0x29ffac[_0x2c2d08(_0x3b795f._0x7cdf58)]===_0x2c2d08(_0x3b795f._0x217c08)&&typeof _0x29ffac[_0x2c2d08(_0x3b795f._0x19634e)]===_0x2c2d08(_0x3b795f._0x2a5fd4)&&typeof _0x29ffac['flags']===_0x2c2d08(_0x3b795f._0x2a5fd4);}__name(isRegexLiteral,_0xef7a9b(0x227));function regexLiteral(_0x2e6b71,_0x10bacb=''){const _0x231291=_0xef7a9b;return{'kind':_0x231291(0x1e1),'source':_0x2e6b71,'flags':_0x10bacb};}__name(regexLiteral,_0xef7a9b(0x17a));var RAND_BYTES=0x6;function makeRunId(_0x49f9eb){const _0x3e8715={_0x32070d:0x1bd,_0x12a9ce:0x15c,_0x283fb9:0x213},_0x174180=_0xef7a9b,_0x2d4132=sanitizeRunIdSegment(_0x49f9eb),_0x5b798a=Date['now']()[_0x174180(0x2dc)](0x24),_0x4fee2b=new Uint8Array(RAND_BYTES);globalThis[_0x174180(_0x3e8715._0x32070d)][_0x174180(_0x3e8715._0x12a9ce)](_0x4fee2b);let _0x2015fa='';for(let _0x4e49d3=0x0;_0x4e49d3<_0x4fee2b['length'];_0x4e49d3++){_0x2015fa+=_0x4fee2b[_0x4e49d3][_0x174180(0x2dc)](0x10)[_0x174180(_0x3e8715._0x283fb9)](0x2,'0');}return _0x2d4132+'-'+_0x5b798a+'-'+_0x2015fa;}__name(makeRunId,_0xef7a9b(0x295));function sanitizeRunIdSegment(_0x1eb9c7){const _0x507c30={_0x41d4e5:0x1a9,_0x337852:0x22f,_0x34a98d:0x2f3},_0x688e22=_0xef7a9b,_0x5a6869=_0x1eb9c7[_0x688e22(_0x507c30._0x41d4e5)](/[^a-zA-Z0-9_-]+/g,'-')['replace'](/-+/g,'-')['replace'](/^-|-$/g,'');return _0x5a6869[_0x688e22(_0x507c30._0x337852)]>0x0?_0x5a6869:_0x688e22(_0x507c30._0x34a98d);}__name(sanitizeRunIdSegment,'sanitizeRunIdSegment');var RANDOM_SUFFIX_RE=/^[0-9a-f]{6,}$/,MIN_PLAUSIBLE_MS=Date[_0xef7a9b(0x2a7)](0x7e4,0x0,0x1),MAX_PLAUSIBLE_MS=Date[_0xef7a9b(0x2a7)](0x834,0x0,0x1);function runIdStartedAt(_0x1a2d4d){const _0x3bd92e={_0x2bcd7f:0x22f,_0x1b96c7:0x234},_0x14db18=_0xef7a9b,_0x3c3763=_0x1a2d4d['split']('-');if(_0x3c3763['length']<0x3)return null;const _0xcf5fae=_0x3c3763[_0x3c3763[_0x14db18(_0x3bd92e._0x2bcd7f)]-0x1];if(!RANDOM_SUFFIX_RE['test'](_0xcf5fae))return null;const _0x3b45b3=_0x3c3763[_0x3c3763['length']-0x2];if(!/^[0-9a-z]+$/[_0x14db18(_0x3bd92e._0x1b96c7)](_0x3b45b3))return null;const _0x562d8e=parseInt(_0x3b45b3,0x24);if(!Number[_0x14db18(0x1aa)](_0x562d8e))return null;if(_0x562d8e<MIN_PLAUSIBLE_MS||_0x562d8e>=MAX_PLAUSIBLE_MS)return null;return _0x562d8e;}__name(runIdStartedAt,_0xef7a9b(0x1a3));function shardPathForTimestamp(_0x4b034d){const _0xdb1443={_0x36df00:0x213,_0x2452c5:0x1f0,_0x4da582:0x22b,_0x213957:0x213},_0x41a3d9=_0xef7a9b,_0x4a269c=new Date(_0x4b034d),_0x57d3d7=String(_0x4a269c[_0x41a3d9(0x24f)]())[_0x41a3d9(_0xdb1443._0x36df00)](0x4,'0'),_0x5f4f8b=String(_0x4a269c[_0x41a3d9(_0xdb1443._0x2452c5)]()+0x1)[_0x41a3d9(0x213)](0x2,'0'),_0x2e4b15=String(_0x4a269c[_0x41a3d9(_0xdb1443._0x4da582)]())[_0x41a3d9(_0xdb1443._0x213957)](0x2,'0');return _0x57d3d7+'/'+_0x5f4f8b+'/'+_0x2e4b15;}__name(shardPathForTimestamp,_0xef7a9b(0x2f8));function shardPathForRunId(_0xaf1c5e){const _0x3f0428=runIdStartedAt(_0xaf1c5e);return _0x3f0428===null?null:shardPathForTimestamp(_0x3f0428);}__name(shardPathForRunId,_0xef7a9b(0x151));function runDirFor(_0x23be35,_0x1ccf9b){const _0x19ab78=shardPathForRunId(_0x1ccf9b);return _0x19ab78===null?null:_0x23be35+'/'+_0x19ab78+'/'+_0x1ccf9b;}__name(runDirFor,_0xef7a9b(0x26a));var UnplaceableRunIdError=class extends Error{static{__name(this,'UnplaceableRunIdError');}constructor(_0x344976){const _0x6fcfac={_0x22a100:0x211,_0x39d373:0x2ba},_0xe0f0b5=_0xef7a9b;super(_0xe0f0b5(_0x6fcfac._0x22a100)+_0x344976),this[_0xe0f0b5(_0x6fcfac._0x39d373)]=_0xe0f0b5(0x24c);}};function requireRunDirFor(_0x5ef8d5,_0x386512){const _0x145afc=runDirFor(_0x5ef8d5,_0x386512);if(_0x145afc===null)throw new UnplaceableRunIdError(_0x386512);return _0x145afc;}__name(requireRunDirFor,'requireRunDirFor');function projectRunsRoot(_0x28507b='',_0xcae4cd){return UNOTEST_DIR+'/'+runsDirFor(_0x28507b,_0xcae4cd);}__name(projectRunsRoot,_0xef7a9b(0x19d));function projectRunDirFor(_0x384b1c,_0x6c498d='',_0x5362e3){return requireRunDirFor(projectRunsRoot(_0x6c498d,_0x5362e3),_0x384b1c);}__name(projectRunDirFor,_0xef7a9b(0x1ac));function shardDirFor(_0x2dee87,_0x2d7252){return _0x2dee87+'/'+shardPathForTimestamp(_0x2d7252);}__name(shardDirFor,_0xef7a9b(0x1b0));function*shardDaysDescending(_0x43dd61,_0xa6f360,_0x4ec446){const _0x4913dd=0x5265c00;let _0x1ef47c=Math['floor'](_0xa6f360/_0x4913dd)*_0x4913dd;for(let _0x2aefe6=0x0;_0x2aefe6<_0x4ec446;_0x2aefe6++){yield shardDirFor(_0x43dd61,_0x1ef47c),_0x1ef47c-=_0x4913dd;}}function _0x39d6(){const _0xa0a09a=['zxHPC3rZ','nJKYodmXmKvwqMHiwG','vu5pvevtvf9kvurhrv9wt1rf','CMf0zs1SAw1PDgvK','zw5HyMXLza','vu5pvevtvf9tq0HfrfvmrvnFrKLor0vsufjjtLq','C2nVCguTBwLZBwf0y2G','C2XHy2S','zw52tMfTzxngCM9TrgLYtgLZDgLUzW','lMPZB25S','iYaTls0G','C2HHCMrqyxrOrM9YuNvUswq','CgfYC2vcDw5KBgu','zw52s2v5CW','BgfZDe5VDgLMAwvKqxq','zxHHBxbSzq','Dg9KyxKG','C2v0u2vJB25KCW','zxjYB3i','yNvUzgXLlMPZB24','yM94vMfSDwvqyxrO','zgvZy3jPyMvtCgvJ','z2v0uMfUzg9TvMfSDwvZ','CgfYC2vsDwXL','CMvJB3zLCMvK','CgfZC2vK','l2fWAs9IB3GVy2KVCNvU','zgvJBgfYzwrfBNzlzxLZ','CgfYC2vcB3HsDw5tDgf0Dxm','zMfPBgLUz1nPBMnL','CMvTB3zLza','zhvYyxrPB25nCW','yM94tM90Awz5vgvZDfbHDgG','lMPZB24','BwfPBNrLBMfUy2u','CxvLDwvqCMLVCML0EuzYB21syw5R','zw52','igLZigfSC28GC2v0igLUihLVDxiGC2HLBgWGzw52AxjVBM1LBNqG4OcuigL0ihDPBgWGA2vLCcbYzxnVBhzPBMCGzNjVBsb0AgvYzsaODgHLigvUDMLYB25Tzw50ihDPBNmGB3zLCIb0AguGzMLSzsKU','refuqujbu0vFvvjm','BgfZDerLBgL2zxj5','vu5pvevtvf9kvurhrv9quK9wsurfuG','lNDVCMTZCgfJzs5QC29U','l2P1zgDL','AxntDhjPBMC','Bwf0y2G','Aw5KzxHpzG','CgfYC2vty2HLzhvSzuvUDhj5','yM94tM90Awz5q2HHBM5LBfbHDgG','CgfYC2vcB3HfBNzwywX1zxnszxbSywnLuMvXDwvZDa','lNnUyxbZAg90CW','CMvHC29U','CgfYC2vwyxjPywjSzuDHChm','CMvNzxHmAxrLCMfS','z2L0BgfI','C2vYAwfSAxPLrw52vMfSDwu','C2nOzw1HvMvYC2LVBG','C2vJCMv0C0nVBNrLBNq','BMv4DfrPy2TgCM9Tu3bLyW','y29TBwfUzhmUANnVBMW','BwfUAwzLC3qUANnVBG','zgfPBhKGyxqG','yM94uNvUC1bHDgG','vu5pvevtvf9cuK9xu0vsx0niqu5oruW','yNvUzgXLswq','DMfSDwu','BM90zq','CMfUAW','yMXVyLjLBfbHDgHgB3i','vu5pvevtvf9ct1HFvKfssufctevFtKfnrvm','y2XP','yM94tM90Awz5uNvSzvbHDgG','icOV','qvbqx0jbu0vFvvjm','igfSCMvHzhKGzxHPC3rZigLUia','vu5pvevtvf9kvurhrv9nt0rfta','CgfYC2vcB3HoB3rPzNLqCMv2Awv3','BwLUlxzLCNnPB24','mtm0mJq1nwjlz1jJza','AwqTBwLZBwf0y2G','CgXHBKfKzfzHCMLHyMXL','vu5pvevtvf9cvu5etevFsuq','zxHWzwn0lwzHAwW','igLZigfSC28GC2v0igLUihvUB3rLC3qVlMvUDIdIGjqGDgHLihnLy3jLDcb2ywX1zsbUB3CGC2HHzg93CYbPDc4','DgLJA2v0CW','yxbWlxnLCNzLCJPYzwfKEq','ChjVAMvJDff1zxvLuM9VDa','CNvUvhjPz2DLCKzYB21fBNy','ChjVAMvJDfj1BNnsB290','y3jLyxrLza','uNvUBMvYqwrHChrLCK5VDezVDw5KrxjYB3i','Ag91CNm','vu5pvevtvf9kvurhrv9srvrssuvt','zgfPBhK','CNvUswrtDgfYDgvKqxq','CgfYC2vuAwnRzxrdAq','lM11Dgv4','mtGZodqWA1PuwMnM','C2HH','vu5pvevtvf9ot19rvuvvrq','CMvWBgfJzq','AxngAw5PDgu','CxvLDwvqCMLVCML0EvjHBMS','ChjVAMvJDfj1BKrPCKzVCG','l3nLCMLLCW','C2vJCMv0','vu5pvevtvf9qt1bvuf9huKfdrv9nuW','C2HHCMreAxjgB3i','mtm3nvf4DwLKtG','ChjVAMvJDa','DhjPz2DLCNm','lNzPzxDLCI5SB2nR','CgfYC2vwywX1zuvUDMvSB3bL','C3rYAw5N','C2vJCMv0CW','u2f0','AdeY','CgfYC2vbBgW','l3f1Awv0lwHVDxjZ','yM94vMfSDwvZugf0Aa','y3j5ChrV','D29YA2vYCW','ndmXmZeZnfnevhbTAW','BwfUDwfS','CgfYC2vty2HLzhvSzxnkC29U','kI8Xnq','CgLK','Dw5VDgvZDc8UC2vJCMv0CW','CMvJzw50','l3rLC3q','z2v0sg91CNm','zM9YBwf0tMv4DfrPy2S','C3rKB3v0lMXVzW','l211DgvZlW','zw5JB2rLtMfTzuXPC3q','zMLUzeLUzgv4','ndqYodvNsuDJswG','Dw50AwW','yM94tM90Awz5uhjLDMLLD1rYAwDNzxi','yMXVyNnsB290rM9Y','zxzLCNKGmtuGBwLU','C2nVCgu','iIbKB2vZig5VDcbZDxbWB3j0ihj1BIbRAw5Kici','vu5pvevtvf8','vu5pvevtvf9svu5Fqunut1i','yMXVyIbOyxnOig11C3qGyMuGBg93zxjJyxnLigHLEcWGz290oIa','CgfYC2vdAvbYB3zPzgvY','Dw5VDgvZDc9Zy2HLzhvSzxmUEwfTBa','C29YDa','C2fTCgXL','vu5pvevtvf9tte9xx01p','AgfZ','C29Tzq','uNvUBMvY','BM8Ty29SBgvJDgLVBNm','igLZig5VDcbHigTUB3DUihj1BM5LCIbZzxr0Aw5NiokaLcbJAg9VC2uGB25LigzYB20GDgHLihj1BM5LCI1JB25MAwCGBgLZDc4','CMvNzxG','sw52ywXPzejSB2jiyxnOrxjYB3i','ChvZAcbHmwiYyZnKicHTywLUkq','yM94tM90Awz5uxvPzxriB3vYC1bHDgG','DgfYz2v0','vhvL','BwvYz2vty2HLzhvSzxm','zw52rMLSzuzVCG','AxntDhjPBMDbCNjHEq','zMLSzq','nJzbtxnAAxK','xsbYzxbLyxrZia','vw5ZDxbWB3j0zwrsDw5lAw5KrxjYB3i','C2LUy2u','iI4G','z2v0vvrdtw9UDgG','AxnfEhrLCM5HBfzHCK5HBwu','C3rHDgu','zw5KC1DPDgG','BwvZC2fNzq','vu5pvevtvf9kvurhrv9bq0nfu1nFve9lru4','zxzLCNKGnsbTAw4','vu5pvevtvf9kvurhrv9dquXmx1rjtuvpvvrFtvm','vu5pvevtvf9kvurhrv9vuKW','ufiGiW','DxjS','yxv0Ag9YAw5N','zNjLCq','vu5pvevtvf9dqunirv9esvi','CxvLDwveAxjgB3i','C3bSAxq','Dw5RBM93BI1YDwXL','Aw5JBhvKzxm','uNvUBMvYtM90q29UzMLNDxjLzevYCM9Y','CgfYC2vdAgfUBMvS','AxnbCNjHEq','jNn0yxrLpq','A2v5CW','y29UzMLN','vu5pvevtvf9cuK9xu0vs','Dw5RBM93BI1LBNzPCM9UBwvUDa','vu5pvevtvf9rvuvvrv9mruftrq','CgfYC2vtzxjPzxnfBNrYEq','CgfYC2vty2HLzhvSzxneB2m','CNvSzxm','xsbPCYbUB3qGysb2ywXPzcbLBNrYEsdIGjqGAxqGBMvLzhmGzxHHy3rSEsbVBMuGB2yGygnVBgXLy3rPB246ycaVigbZy2vUyxjPBZPGihbSDxmGysbGy3jVBJPGihn0CMLUzW','x3nJzw5HCMLVCW','BwfRzvf1zxvLvgLJA2v0tMfTzq','CNvUswqGy2fYCMLLCYbUBYb0Aw1LC3rHBxaSignHBM5VDcbWBgfJzsbPDcbPBIbHihnOyxjKoIa','zgLYDhK','CgfKu3rHCNq','C2nOzwr1BgvZ','CgfYC2vcB3HwywX1zvnLDfjLCxvLC3q','Bte1','icOGkIaQicO','CMvZzxj2zwq','zhvWBgLJyxrL','Bxv0zxm','CM91BMq','lNzPzxDLCI5SB2C','Axntzwn0Aw9UrgL2AwrLCG','C2nOzwr1Bgu','iIdIGjqGB25LihnJAgvKDwXLihbLCIb0yxjNzxq','yNjHBMnO','BxvZDcbUB3qGyMuGiI4Iig9YiciUlIi','lNj1BNm','CgfYC2vcB3HoB3rPzNLtzxjPzxnwAwv3','y3jLyxrLzef0','AxnbC3nPz25Tzw50t2y','ywrK','AxnszwDLEeXPDgvYywW','DxbKyxrLza','y2HHBM5LBhm','BwLUDxrLCW','z2v0vvrdrgf0zq','DwjYxW','x2XHDgvZDc5QC29U','vu5pvevtvf9iruferuq','BgvUz3rO','zMXHDe1HCa','AM9PBG','CgfYC2vcDw5KBgvvCgXVywrszxnWB25Zzq','x2rHEs5QC29UBa','DgvZDa','ChjVAMvJDhm','D2vIAg9VAW','y3jVBKzYB21tCgvJ','CgfYC2vfBNzdB250zw50','C2v0twLUDxrLCW','BxvZDcbUB3qGy29UDgfPBIbCic8GoIaQid8GiIa8id4GFcbVCIbJB250CM9SignOyxjHy3rLCNm','C3rLChmUANnVBMW','ChjLCgfYzq','icH3AxaP','tK9Fq09mt1i','Dw5VDgvZDc8Uzw52','l2fWAs9IB3GVyNvUzgXLCW','DMLLD2vY','zMfPBgvK','zxzLCNKG','ywjVCNrLza','C3bLy01HDgnOzxm','y2f0zwDVCML6zvzHCMLHyMXL','DhjPz2DLCG','zxzLCNK','vu5pvevtvf9kvurhrv9it1nu','zMLUAxnOzwq','ChjVDMLKzxi','vw5WBgfJzwfIBgvsDw5jzevYCM9Y','C3rHDhvZ','C3rYAw5NtgLZDa','z2v0vvrdrNvSBfLLyxi','CgfYC2vdAvj1BLjLCxvLC3q','C3rHCNrZv2L0Aa','zgf5CW','vu5pvevtvf9kvurhrv9qt1ju','zgvZy3jPyMvdCM9U','yxrnAw51DgvZ','CxvPzxriB3vYCW','C2vYAwvZ','l3bYzxzPzxC/CNvSzt0','vu5pvevtvf9dt05tt0Xf','qxbW','CxvLDwvK','tw9U','Ag9ZDa','vu5pvevtvf9eruzbvuXux1rjtuvpvvrFtvm','C3rVCMfNzq','yxj0AwzHy3rZuM9VDezYB20','CMvZzxj2zwrcB3HwywX1zu5HBwvZ','BM90lxj1BG','Bgf5zxjZrM9Y','nZe4mZGWq3zHuNrk','CNvUBMLUzW','CNvUBMvY','CgfYC2voyw1LzfjLy29Yza','A2v5','vu5pvevtvf9svu5Fvfjjr0DfuG','CNvUrgLYrM9Y','C3rHCNrLzef0','zM9YyMLKzgvU','l2fWAs9IB3GVzw52CY8','zw52AxjVBM1LBNq','vu5pvevtvf9erujvr19esvi','CgfYC2vtzwnYzxq','CgfYC2vbChbtzxj2zxjfDMvUDa','DgLTzxm','kI8XnsaQicOGkIaQ','CgfK','ig5LzwrZigeGBMfTzq','odiXmJmWywLMrgHM','A2LUza','DMfSAwrHDgvdB2XSzwn0Aw9UtMfTzq','zgvZy3jPyMvuAwnRzxrdAq','BxvZDcbUB3qGC3rHCNqGD2L0AcaNlIC','C2vJCMv0C0XHEwvYrMLSzxngB3i','CgfYC2vnDxrL','vu5pvevtvf9erujvrW','C3rHCNrpzKrHEq','zMLUza','yxbWlxnLCNzLCJPYzxvZzwq','zw52AxjVBM1LBNrZ','y2HHBM5LBa','l3j1BgvZlW','Dw5HDMfPBgfIBgu','B2jQzwn0','zw52q29UDgvUDa','lY5Kzwj1z2DLCG','C3bSAwnL','z2v0vgLTzq','CgfYC2vcB3HoB3rPzNLwAwv3','iokaLcbWAwnRigeGzgLMzMvYzw50ig5HBwuGB3iGzwrPDcb0AguGzxHPC3rPBMCGDMfSDwuU','ouHhEhrwAG','CNvUDgLTzs5QC29U','C2nLBMfYAw9szwzgCM9TrMLSzu5HBwu','C2nLBMfYAw8','z2v0twLUDxrLCW','CgfYC2vcB3HtzwnYzxrszxzLywXszxnWB25Zzq','C3bLy0zYB21dCM9U','DgHYzwfKswq','AxnfDMvUDa','BwfRzvj1BKLK','l2HLywX0Aa','CgfYC2vrDwLLDeHVDxjZ','C2nOzwr1BgvZwW','vu5pvevtvf9kvurhrv9nt0rf','C2XPy2u','CgfYC2vcB3HsDw5by2nLChrLza','Aw52ywXPzc1Uyw1L','vu5pvevtvf9erujvr19quKvwsuvxx0jzvevt','AM9PBKXPBMvZ','CgfYC2vcB3HszwfKrw52AxjVBM1LBNrZ','DhjPBq','yhnJAgvKDwXLCZPGig11C3qGyMuGyw4GyxjYyxK','yM94tM90Awz5u2vYAwvZugf0Aa','vu5pvevtvf9kvurhrv9ts0Lqx1bsruzmsuDiva','zMLSDgvY','icOGkIaQ','AxnsDw5Uzxjtzxr0Aw5N','vvrd','C2nLBMfYAw9jBMrLEezPBgvoyw1L','Dw5RBM93BI1WCM9Qzwn0','D2vIAg9VA1vYBa','CgfYC2vcB3HszwfKrxjYB3i','yM90vg9Rzw4','CMfUzg9T','Ec11BM90zxn0lwvUDMLYB25Tzw50','CgfYC2vmyxn0rgvSAxzLCNK','CMvWzwf0rxzLCNK','vu5pvevtvf9eruzbvuXux05bvKLhqvrjt05FveLnru9vvf9nuW','ywz0zxjgywLSDxjLCW','vu5pvevtvf9buLrjrKfdvfnFuK9pva','Aw50zxjHy3rPDMu','BNvTyMvYCW','CgfYC2vcB3HwywX1zxnszxnWB25Zzq','CMvTB3zLrw52vMfY','CgfYC2vcB3HoB3rPzNLdAgfUz2vK','yM94tM90Awz5u2vYAwvZuMvZzxrqyxrO','BMfTzq','BxvZDcbIzsbHihn0CMLUzW','y2HHDeLK','BwfSzM9YBwvK','yM94tM90Awz5uhjLDMLLD1bHDgG','igf0ia','mMLpzuntua','z2L0','CgfYC2vhAxrjBMzV','zgvIDwDeAxjgB3i','vu5pvevtvf9ct1HFvvjm','DMfYAwfIBgvZ','AxnsDw5UzxjdB25MAwDlzxK','vu5pvevtvf9erujvr19ive1mx01bwf9cwvrfuW','AgvHzgvYCW','y29TCgfYzvf1zxvLvgLJA2v0tMfTzxm','Dg9mB3DLCKnHC2u','yM94rw52vMfSDwvqyxrO','AxzHBG','u3vU','D2vLA2X5','igLZigfSC28GC2v0igLUihvUB3rLC3qVlNnLy3jLDhmG4OcuihrOzsbZzwnYzxqGDMfSDwuGC2HHzg93CYb0AgLZig9Uzs4','CMv2zwfS','zxHWzwn0zwqGysbTyxbWAw5NihDPDgGGysbGC2nOzwr1BgvZoMaGyxjYyxK','yM94vMfSDwvlAw5Kt2ztzwDTzw50','vu5pvevtvf9mt0nbteu','C3rYAw5NAwz5','yM94tM90Awz5txv0zvbHDgG','ChvZAa','C291CMnL','l2nOyw5UzwXZlW','CgfYC2vdAvj1BLjLC3bVBNnL','CNvUswq','CgfYC2vszxbSywnLuMvXDwvZDa','Dg9tDhjPBMC','AxnszwnVCMq','zgvIDwDNzxjgAwXLrM9Y','CNvUlwLUlxbYB2DYzxnZ','BgLUzxm','zw50CMLLCW','AxnfBNzwyxjoyw1L','B3v0y29Tzq','yM9VBgvHBG','rK9sq0vFq09mt1i','Dw5RBM93BI1JAgfUBMvS','vu5pvevtvf9usu1fwK9orq','CgfYC2vcB3HoB3rPzNLfCNjVCG','zxzLBNrZ','yM94uNvUugf0Aa','Ec11BM90zxn0lwD1yxjKlxnLy3jLDa','Dw5HDxrOB3jPEMvK','BNvTyMvY','zgvSzxrLu2HHzg93v2fYBMLUzW','yM94rw52u2vJCMv0C1jLDMvHBfbHDgG','C2vUDa','x2jSB2jZ','zgvMAw5LuhjVCgvYDhK','CNvU','BwfW','DgvYBwLUywW','vu5pvevtvf9tvevqx1nduKvftLnit1rt','yxbW','C2HHCMrqyxrOrM9YvgLTzxn0yw1W','vgH1','zxHLyW','ywn0AxzLrw52tMfTzq','vu5pvevtvf9kvurhrv9mt0DFtevwruW','AxnjBNrLz2vY','CgfYC2vrDwv1zvrPy2TLDe5HBwu','CgfYC2vtDhjPBMDszwnVCMq','ztjL','vu5pvevtvf9rvuvvrv9hte9cquXFreLs','CgLJA2vYlxnUyxbZAg90lNr4Da','AxnsDw5ZrgLYtMfTzq','AxnbC3nPz25Tzw50tgLUzq','C2v0','vu5pvevtvf9mt0DFtevwruW','CMvZzxj2zwrvBMrLCNnJB3jL','Ec11BM90zxn0lwfJDg9YlxrPy2TLDa','Dg9TB3jYB3CG','y29SBgvJDgLVBG','C2vJCMv0C0zPBgvgB3i','Dw5RBM93BI1ZzwnYzxq','CgfYC2vizwfKzxjgBgfNCW','vu5pvevtvf9kvurhrv9ut0TftG','AxnbBM5VDgf0Aw9UtgLUzq','vu5pvevtvf9ftLy','z2v0rgf5','CNvUCW'];_0x39d6=function(){return _0xa0a09a;};return _0x39d6();}__name(shardDaysDescending,'shardDaysDescending');var RUN_INDEX_SCHEMA_VERSION=0x2,SCENARIO_RECENT_WINDOW=0xc;function isFailingStatus(_0x128d46){const _0x4529ab={_0x32bcc8:0x242},_0x391e97=_0xef7a9b;return _0x128d46===_0x391e97(_0x4529ab._0x32bcc8)||_0x128d46==='interrupted';}__name(isFailingStatus,'isFailingStatus');function foldScenarioRun(_0x39aa12,_0x3db153){const _0x377d8e={_0x949ce6:0x26b,_0x28a8ca:0x29a,_0x590be3:0x163},_0x4b6753=_0xef7a9b,_0x201420={'lastRunId':_0x3db153[_0x4b6753(0x2da)],'lastStatus':_0x3db153['status'],'lastAt':_0x3db153[_0x4b6753(_0x377d8e._0x949ce6)],'lastDurationMs':_0x3db153[_0x4b6753(0x165)],'recent':[..._0x39aa12?.[_0x4b6753(0x1c5)]??[],_0x3db153[_0x4b6753(0x24d)]][_0x4b6753(_0x377d8e._0x28a8ca)](-SCENARIO_RECENT_WINDOW)};if(!isFailingStatus(_0x3db153[_0x4b6753(0x24d)]))return{..._0x201420,'failStreak':0x0,'failingSince':null};const _0x3fe8b3=(_0x39aa12?.['failStreak']??0x0)+0x1;return{..._0x201420,'failStreak':_0x3fe8b3,'failingSince':_0x3fe8b3===0x1?_0x3db153[_0x4b6753(0x26b)]:_0x39aa12?.[_0x4b6753(_0x377d8e._0x590be3)]??_0x3db153[_0x4b6753(0x26b)]};}__name(foldScenarioRun,'foldScenarioRun');function scenarioIndexFileName(_0x5cf59b){const _0x59525e={_0x10242f:0x14f},_0x38358a=_0xef7a9b;return encodeURIComponent(_0x5cf59b)+_0x38358a(_0x59525e._0x10242f);}__name(scenarioIndexFileName,_0xef7a9b(0x2a8));function scenarioRefFromFileName(_0x31b9f6){const _0x5037af={_0x5d8421:0x1f3,_0x171167:0x29a,_0x5b0e14:0x14f,_0x1946d2:0x22f},_0x28f29f=_0xef7a9b;if(!_0x31b9f6[_0x28f29f(_0x5037af._0x5d8421)](_0x28f29f(0x14f)))return null;try{return decodeURIComponent(_0x31b9f6[_0x28f29f(_0x5037af._0x171167)](0x0,-_0x28f29f(_0x5037af._0x5b0e14)[_0x28f29f(_0x5037af._0x1946d2)]));}catch{return null;}}__name(scenarioRefFromFileName,_0xef7a9b(0x28e));var CI_RUN_PATH=_0xef7a9b(0x160),PROVIDER_IDS=['github',_0xef7a9b(0x17b),'api'],RUN_ERROR_CODES=[_0xef7a9b(0x2ec),'scope-mismatch',_0xef7a9b(0x209),'unknown-bundle',_0xef7a9b(0x1df),'malformed',_0xef7a9b(0x25f)];function parseCiRunRequest(_0x46ac0f){const _0x410ebc={_0x2e3170:0x1b6,_0x29749f:0x22f,_0x511270:0x2ed,_0x4a2389:0x2fd},_0x24dff6=_0xef7a9b;if(!isRecord(_0x46ac0f))return null;const {bundleId:_0x16fb90,environment:_0x23debd,collections:_0x103c71,pr:_0x5e3492,branch:_0x1f91de,sha:_0x5ba4b7}=_0x46ac0f;if(typeof _0x16fb90!==_0x24dff6(_0x410ebc._0x2e3170)||_0x16fb90[_0x24dff6(_0x410ebc._0x29749f)]===0x0)return null;if(typeof _0x23debd!==_0x24dff6(0x1b6)||_0x23debd['length']===0x0)return null;let _0x59f921=null;if(_0x103c71!==void 0x0){if(!Array[_0x24dff6(0x204)](_0x103c71))return null;if(_0x103c71['some'](_0x5d9ce0=>typeof _0x5d9ce0!==_0x24dff6(0x1b6)||_0x5d9ce0[_0x24dff6(0x22f)]===0x0))return null;_0x59f921=_0x103c71;}if(_0x5e3492!==void 0x0&&(typeof _0x5e3492!==_0x24dff6(_0x410ebc._0x511270)||!Number[_0x24dff6(_0x410ebc._0x4a2389)](_0x5e3492)))return null;for(const _0x1a1367 of[_0x1f91de,_0x5ba4b7]){if(_0x1a1367!==void 0x0&&typeof _0x1a1367!==_0x24dff6(0x1b6))return null;}return{'bundleId':_0x16fb90,'environment':_0x23debd,..._0x59f921?{'collections':_0x59f921}:{},...typeof _0x5e3492===_0x24dff6(0x2ed)?{'pr':_0x5e3492}:{},...typeof _0x1f91de===_0x24dff6(0x1b6)?{'branch':_0x1f91de}:{},...typeof _0x5ba4b7===_0x24dff6(0x1b6)?{'sha':_0x5ba4b7}:{}};}__name(parseCiRunRequest,_0xef7a9b(0x250));function parseCiRunResponse(_0xa1c28a){const _0x139a4a={_0x5c1bd1:0x158,_0x2ba7f2:0x1b6,_0x301ce2:0x25b,_0xca92ed:0x1b6,_0x11cbd8:0x204,_0x4e1d1a:0x2ed},_0x1109f6=_0xef7a9b;if(!isRecord(_0xa1c28a))return null;if(isRecord(_0xa1c28a['error'])){const {code:_0x148228,message:_0x46b7c2}=_0xa1c28a[_0x1109f6(_0x139a4a._0x5c1bd1)];if(!RUN_ERROR_CODES['includes'](_0x148228))return null;if(typeof _0x46b7c2!==_0x1109f6(_0x139a4a._0x2ba7f2))return null;return{'error':{'code':_0x148228,'message':_0x46b7c2}};}const {status:_0x185eae,bundleId:_0x3cf065,environment:_0x2e1d80,runs:_0x48ca23,superseded:_0x4488cc}=_0xa1c28a;if(_0x185eae!==_0x1109f6(_0x139a4a._0x301ce2))return null;if(typeof _0x3cf065!=='string'||typeof _0x2e1d80!==_0x1109f6(_0x139a4a._0xca92ed))return null;if(!Array[_0x1109f6(_0x139a4a._0x11cbd8)](_0x48ca23))return null;const _0x50aa96=[];for(const _0x1afe0d of _0x48ca23){if(!isRecord(_0x1afe0d))return null;const {runId:_0x411dc6,collection:_0x51b28a}=_0x1afe0d;if(typeof _0x411dc6!==_0x1109f6(0x1b6)||typeof _0x51b28a!==_0x1109f6(0x1b6))return null;_0x50aa96['push']({'runId':_0x411dc6,'collection':_0x51b28a});}if(_0x4488cc!==void 0x0&&typeof _0x4488cc!=='number')return null;return{'status':'queued','bundleId':_0x3cf065,'environment':_0x2e1d80,'runs':_0x50aa96,...typeof _0x4488cc===_0x1109f6(_0x139a4a._0x4e1d1a)?{'superseded':_0x4488cc}:{}};}__name(parseCiRunResponse,_0xef7a9b(0x2d9));function parseCiProvider(_0x53485d){return PROVIDER_IDS['includes'](_0x53485d)?_0x53485d:null;}__name(parseCiProvider,_0xef7a9b(0x1d7));var QUEUE_SUBDIR='.queue',QUEUE_TICKETS_DIR=_0xef7a9b(0x199),QUEUE_RUNNING_DIR=_0xef7a9b(0x265),QUEUE_SLOTS_DIR='slots',QUEUE_MUTEX_FILE=_0xef7a9b(0x1a5),QUEUE_LEASE_ENV=_0xef7a9b(0x20a),QUEUE_DISABLED_ENV=_0xef7a9b(0x1a8),QUEUE_GLOBAL_DIR_ENV=_0xef7a9b(0x301),QUEUE_GLOBAL_SLOTS_ENV='UNOTEST_QUEUE_GLOBAL_SLOTS',QUEUE_SCHEMA_VERSION=0x1;function queueDirFor(_0x32ce98,_0x3843d1){return''+QUEUE_SUBDIR+_0x32ce98+(_0x3843d1?'.'+_0x3843d1:'');}__name(queueDirFor,_0xef7a9b(0x1fe));function isQueueDirName(_0x3d4ca8){const _0x16acc7={_0xaa8f7c:0x251},_0x25da2e=_0xef7a9b;return _0x3d4ca8===QUEUE_SUBDIR||_0x3d4ca8[_0x25da2e(_0x16acc7._0xaa8f7c)](QUEUE_SUBDIR+'-')||_0x3d4ca8['startsWith'](QUEUE_SUBDIR+'.');}__name(isQueueDirName,'isQueueDirName');function projectQueueRoot(_0x767914='',_0x558ed4){return UNOTEST_DIR+'/'+queueDirFor(_0x767914,_0x558ed4);}__name(projectQueueRoot,_0xef7a9b(0x19b));var PRIORITY_RANKS=Object['freeze']({'maintenance':0x0,'interactive':0x1,'ci':0x2,'schedule':0x3}),RANK_PRIORITIES=[_0xef7a9b(0x168),_0xef7a9b(0x2b4),'ci','schedule'],QUEUE_PRIORITIES=RANK_PRIORITIES;function queuePriorityRank(_0x209b42){return PRIORITY_RANKS[_0x209b42];}__name(queuePriorityRank,_0xef7a9b(0x1ab));function queuePriorityFromRank(_0x4adc42){return RANK_PRIORITIES[_0x4adc42]??null;}__name(queuePriorityFromRank,_0xef7a9b(0x169));function describeTicketCi(_0xecc5c9){const _0x458fa9={_0x4b421d:0x1f9,_0x585237:0x24b},_0x27e4d9=_0xef7a9b,_0x29636e=_0xecc5c9['sha']?'@'+_0xecc5c9[_0x27e4d9(0x1a7)][_0x27e4d9(0x29a)](0x0,0x7):'';if(_0xecc5c9['pr']!==void 0x0)return _0x27e4d9(_0x458fa9._0x4b421d)+_0xecc5c9['pr']+_0x29636e;if(_0xecc5c9['branch']!==void 0x0)return''+_0xecc5c9[_0x27e4d9(0x220)]+_0x29636e;return _0x29636e[_0x27e4d9(0x22f)]>0x0?_0x29636e[_0x27e4d9(0x29a)](0x1):_0xecc5c9[_0x27e4d9(_0x458fa9._0x585237)];}__name(describeTicketCi,_0xef7a9b(0x279));function makeQueueTicketName(_0x12e8c1,_0x284356,_0x2e43b4){const _0x34a00f={_0x529b97:0x2dc,_0x17213d:0x167},_0x285866=_0xef7a9b;return queuePriorityRank(_0x12e8c1)+'-'+_0x284356[_0x285866(_0x34a00f._0x529b97)](0x24)+'-'+_0x2e43b4+_0x285866(_0x34a00f._0x17213d);}__name(makeQueueTicketName,_0xef7a9b(0x210));var TICKET_NAME_RE=/^([0-3])-([0-9a-z]+)-([0-9a-f]+)\.json$/;function parseQueueTicketName(_0x236be7){const _0x182e6c=_0xef7a9b,_0x4bfeac=TICKET_NAME_RE['exec'](_0x236be7);if(!_0x4bfeac)return null;const _0x2a7e63=Number(_0x4bfeac[0x1]),_0x37b183=queuePriorityFromRank(_0x2a7e63);if(_0x37b183===null)return null;const _0x3f882c=parseInt(_0x4bfeac[0x2],0x24);if(!Number[_0x182e6c(0x1aa)](_0x3f882c))return null;return{'rank':_0x2a7e63,'priority':_0x37b183,'createdAt':_0x3f882c,'random':_0x4bfeac[0x3]};}__name(parseQueueTicketName,_0xef7a9b(0x2fe));function compareQueueTicketNames(_0x1ccf8e,_0x52c0d9){const _0x41187a={_0x2381f9:0x224,_0x4479dc:0x2ad,_0x764527:0x2ad},_0x4acea9=_0xef7a9b,_0x203657=parseQueueTicketName(_0x1ccf8e),_0x128827=parseQueueTicketName(_0x52c0d9);if(!_0x203657||!_0x128827)return _0x1ccf8e<_0x52c0d9?-0x1:_0x1ccf8e>_0x52c0d9?0x1:0x0;if(_0x203657[_0x4acea9(0x188)]!==_0x128827[_0x4acea9(0x188)])return _0x203657['rank']-_0x128827[_0x4acea9(0x188)];if(_0x203657['createdAt']!==_0x128827['createdAt'])return _0x203657['createdAt']-_0x128827[_0x4acea9(_0x41187a._0x2381f9)];return _0x203657[_0x4acea9(_0x41187a._0x4479dc)]<_0x128827[_0x4acea9(0x2ad)]?-0x1:_0x203657['random']>_0x128827[_0x4acea9(_0x41187a._0x764527)]?0x1:0x0;}__name(compareQueueTicketNames,_0xef7a9b(0x2c9));var TICKET_KINDS=[_0xef7a9b(0x28f),'collection',_0xef7a9b(0x1fb),_0xef7a9b(0x168)],PRODUCER_KINDS=[_0xef7a9b(0x18b),_0xef7a9b(0x241),'mcp','schedule','ci'];function parseQueueTicket(_0x4bb53c){const _0x242a83={_0x5362e7:0x22f,_0x52a548:0x201,_0x3dcf82:0x1aa,_0x258f18:0x277,_0x19a65f:0x25d,_0x5e2b99:0x1b6,_0x5aeb78:0x185},_0x5772c2=_0xef7a9b;if(!isRecord(_0x4bb53c))return null;const {schemaVersion:_0x491c3e,runId:_0x379860,kind:_0x54c82f,ref:_0x372009,env:_0x6359e4,priority:_0x887271,weight:_0x3eb0af,producer:_0x11ef13,source:_0x375d58,ci:_0x24ccba,createdAt:_0x47abd8}=_0x4bb53c;if(_0x491c3e!==QUEUE_SCHEMA_VERSION)return null;if(typeof _0x379860!==_0x5772c2(0x1b6)||_0x379860[_0x5772c2(_0x242a83._0x5362e7)]===0x0)return null;if(typeof _0x372009!=='string')return null;if(!TICKET_KINDS[_0x5772c2(0x201)](_0x54c82f))return null;if(!QUEUE_PRIORITIES[_0x5772c2(_0x242a83._0x52a548)](_0x887271))return null;if(typeof _0x3eb0af!==_0x5772c2(0x2ed)||!Number[_0x5772c2(_0x242a83._0x3dcf82)](_0x3eb0af)||_0x3eb0af<0x1)return null;if(typeof _0x47abd8!==_0x5772c2(0x2ed)||!Number[_0x5772c2(_0x242a83._0x3dcf82)](_0x47abd8))return null;if(!isRecord(_0x11ef13))return null;if(!PRODUCER_KINDS[_0x5772c2(_0x242a83._0x52a548)](_0x11ef13[_0x5772c2(_0x242a83._0x258f18)]))return null;if(typeof _0x11ef13[_0x5772c2(0x1c3)]!==_0x5772c2(0x2ed)||typeof _0x11ef13[_0x5772c2(_0x242a83._0x19a65f)]!==_0x5772c2(0x1b6))return null;if(_0x6359e4!==void 0x0&&typeof _0x6359e4!==_0x5772c2(_0x242a83._0x5e2b99))return null;let _0x4354f4=null;if(_0x375d58!==void 0x0){if(!isRecord(_0x375d58)||typeof _0x375d58[_0x5772c2(_0x242a83._0x5aeb78)]!==_0x5772c2(0x1b6)||_0x375d58[_0x5772c2(0x185)][_0x5772c2(0x22f)]===0x0)return null;_0x4354f4={'bundleId':_0x375d58[_0x5772c2(_0x242a83._0x5aeb78)]};}let _0x3de06e=null;if(_0x24ccba!==void 0x0){_0x3de06e=parseTicketCi(_0x24ccba);if(_0x3de06e===null)return null;}return{'schemaVersion':QUEUE_SCHEMA_VERSION,'runId':_0x379860,'kind':_0x54c82f,'ref':_0x372009,'priority':_0x887271,'weight':_0x3eb0af,'producer':{'kind':_0x11ef13['kind'],'pid':_0x11ef13['pid'],'host':_0x11ef13[_0x5772c2(0x25d)]},'createdAt':_0x47abd8,...typeof _0x6359e4===_0x5772c2(0x1b6)?{'env':_0x6359e4}:{},..._0x4354f4?{'source':_0x4354f4}:{},..._0x3de06e?{'ci':_0x3de06e}:{}};}__name(parseQueueTicket,'parseQueueTicket');function parseTicketCi(_0x4f7a08){const _0x306926={_0x4e4a27:0x1b6,_0x150c3c:0x2fd},_0x413abc=_0xef7a9b;if(!isRecord(_0x4f7a08))return null;const _0x400106=parseCiProvider(_0x4f7a08['provider']);if(_0x400106===null)return null;const {repo:_0x2bd33e,branch:_0x25bbab,sha:_0x4a8d38,pr:_0x5a1f20,checkId:_0x31d1e5}=_0x4f7a08;for(const _0x3a4154 of[_0x2bd33e,_0x25bbab,_0x4a8d38,_0x31d1e5]){if(_0x3a4154!==void 0x0&&typeof _0x3a4154!==_0x413abc(_0x306926._0x4e4a27))return null;}if(_0x5a1f20!==void 0x0&&(typeof _0x5a1f20!==_0x413abc(0x2ed)||!Number[_0x413abc(_0x306926._0x150c3c)](_0x5a1f20)))return null;return{'provider':_0x400106,...typeof _0x2bd33e==='string'?{'repo':_0x2bd33e}:{},...typeof _0x25bbab===_0x413abc(0x1b6)?{'branch':_0x25bbab}:{},...typeof _0x4a8d38==='string'?{'sha':_0x4a8d38}:{},...typeof _0x5a1f20==='number'?{'pr':_0x5a1f20}:{},...typeof _0x31d1e5==='string'?{'checkId':_0x31d1e5}:{}};}__name(parseTicketCi,_0xef7a9b(0x1a4));var BUNDLE_SCHEMA_VERSION=0x1,BUNDLE_MANIFEST_FILE=_0xef7a9b(0x159),BUNDLE_UPLOAD_PATH=_0xef7a9b(0x240),BOX_URL_ENV=_0xef7a9b(0x2c4),BOX_TOKEN_ENV='UNOTEST_BOX_TOKEN',BUNDLE_ID_ENV=_0xef7a9b(0x196),SCHEDULES_FINGERPRINT_ENV=_0xef7a9b(0x14b);function parseGitInfo(_0x1e0d8b){const _0x3e7e77={_0xf67004:0x1b6},_0x166d3f=_0xef7a9b;if(!isRecord(_0x1e0d8b))return null;const {repo:_0x3eb907,branch:_0x771b5e,sha:_0x158d25,dirty:_0x129ab5}=_0x1e0d8b;if(typeof _0x129ab5!==_0x166d3f(0x2e4))return null;for(const _0x56fd96 of[_0x3eb907,_0x771b5e,_0x158d25]){if(_0x56fd96!==void 0x0&&typeof _0x56fd96!==_0x166d3f(_0x3e7e77._0xf67004))return null;}return{'dirty':_0x129ab5,...typeof _0x3eb907===_0x166d3f(_0x3e7e77._0xf67004)?{'repo':_0x3eb907}:{},...typeof _0x771b5e==='string'?{'branch':_0x771b5e}:{},...typeof _0x158d25==='string'?{'sha':_0x158d25}:{}};}__name(parseGitInfo,_0xef7a9b(0x2c2));function parseBundleManifest(_0x3688a3){const _0x11d7e0={_0x5986e6:0x1b6,_0x53ffa8:0x1b6,_0x2991db:0x2ed,_0x5087ba:0x204,_0x186cd2:0x1b6,_0x1debe0:0x1b6},_0x3bdbf2=_0xef7a9b;if(!isRecord(_0x3688a3))return null;const {schemaVersion:_0x4730dc,bundleId:_0x1001d5,sha256:_0x1d6ae1,createdAt:_0x5ea292,webVersion:_0x29d1e2,author:_0x415f36,git:_0x109622,fileCount:_0x50ac1b,byteSize:_0x10b7dd,declaredVariables:_0x2f64e2,schedulesFingerprint:_0x183dd1}=_0x3688a3;if(_0x4730dc!==BUNDLE_SCHEMA_VERSION)return null;if(typeof _0x1001d5!==_0x3bdbf2(_0x11d7e0._0x5986e6)||_0x1001d5[_0x3bdbf2(0x22f)]===0x0)return null;if(_0x1d6ae1!==void 0x0&&!/^[0-9a-f]{64}$/['test'](String(_0x1d6ae1)))return null;if(typeof _0x29d1e2!==_0x3bdbf2(_0x11d7e0._0x53ffa8)||_0x29d1e2[_0x3bdbf2(0x22f)]===0x0)return null;if(typeof _0x5ea292!==_0x3bdbf2(_0x11d7e0._0x2991db)||!Number['isFinite'](_0x5ea292))return null;if(typeof _0x50ac1b!==_0x3bdbf2(_0x11d7e0._0x2991db)||!Number[_0x3bdbf2(0x2fd)](_0x50ac1b))return null;if(typeof _0x10b7dd!==_0x3bdbf2(0x2ed)||!Number[_0x3bdbf2(0x2fd)](_0x10b7dd))return null;if(_0x415f36!==void 0x0&&typeof _0x415f36!==_0x3bdbf2(_0x11d7e0._0x53ffa8))return null;let _0x1351c4=null;if(_0x109622!==void 0x0){_0x1351c4=parseGitInfo(_0x109622);if(_0x1351c4===null)return null;}const _0x255e4f=Array[_0x3bdbf2(_0x11d7e0._0x5087ba)](_0x2f64e2)?_0x2f64e2['filter'](_0x41931c=>typeof _0x41931c===_0x3bdbf2(0x1b6)):[],_0x2c5298=typeof _0x183dd1==='string'&&/^[0-9a-f]{64}$/['test'](_0x183dd1)?_0x183dd1:void 0x0;return{'schemaVersion':BUNDLE_SCHEMA_VERSION,'bundleId':_0x1001d5,...typeof _0x1d6ae1===_0x3bdbf2(_0x11d7e0._0x186cd2)?{'sha256':_0x1d6ae1}:{},'createdAt':_0x5ea292,'webVersion':_0x29d1e2,'fileCount':_0x50ac1b,'byteSize':_0x10b7dd,...typeof _0x415f36===_0x3bdbf2(_0x11d7e0._0x1debe0)?{'author':_0x415f36}:{},..._0x1351c4?{'git':_0x1351c4}:{},..._0x255e4f[_0x3bdbf2(0x22f)]>0x0?{'declaredVariables':_0x255e4f}:{},..._0x2c5298!==void 0x0?{'schedulesFingerprint':_0x2c5298}:{}};}__name(parseBundleManifest,'parseBundleManifest');function describeBundle(_0x233161){const _0x2eb22f={_0x530fdb:0x1a7,_0x44abe9:0x220,_0x316df7:0x212,_0x463b39:0x23d},_0x4397b6=_0xef7a9b,_0xe32ddc=_0x233161[_0x4397b6(0x2c1)];if(!_0xe32ddc||_0xe32ddc['branch']===void 0x0&&_0xe32ddc[_0x4397b6(_0x2eb22f._0x530fdb)]===void 0x0)return _0x233161[_0x4397b6(0x185)];const _0x4bc4e4=_0xe32ddc[_0x4397b6(0x1a7)]?_0xe32ddc['sha']['slice'](0x0,0x7):'?',_0x10770d=_0xe32ddc[_0x4397b6(_0x2eb22f._0x44abe9)]??'?';return _0x10770d+'@'+_0x4bc4e4+(_0xe32ddc[_0x4397b6(_0x2eb22f._0x316df7)]?_0x4397b6(_0x2eb22f._0x463b39):'');}__name(describeBundle,'describeBundle');var UPLOAD_ERROR_CODES=[_0xef7a9b(0x2ec),'too-large',_0xef7a9b(0x2bd),_0xef7a9b(0x194),_0xef7a9b(0x192),_0xef7a9b(0x14c),_0xef7a9b(0x25f)];function parseBundleUploadResponse(_0x551459){const _0xef2590={_0x4a39c1:0x158,_0x48fa86:0x201},_0x5ee746=_0xef7a9b;if(!isRecord(_0x551459))return null;if(isRecord(_0x551459[_0x5ee746(_0xef2590._0x4a39c1)])){const {code:_0x2df1c5,message:_0x5dfc07}=_0x551459['error'];if(!UPLOAD_ERROR_CODES[_0x5ee746(_0xef2590._0x48fa86)](_0x2df1c5))return null;if(typeof _0x5dfc07!==_0x5ee746(0x1b6))return null;return{'error':{'code':_0x2df1c5,'message':_0x5dfc07}};}const {status:_0x39c0be,bundleId:_0x5cbb4f}=_0x551459;if(_0x39c0be!=='created'&&_0x39c0be!==_0x5ee746(0x313))return null;if(typeof _0x5cbb4f!=='string'||_0x5cbb4f[_0x5ee746(0x22f)]===0x0)return null;const _0x291c1d=parseVariableGaps(_0x551459['variableGaps']);return _0x291c1d===null?{'status':_0x39c0be,'bundleId':_0x5cbb4f}:{'status':_0x39c0be,'bundleId':_0x5cbb4f,'variableGaps':_0x291c1d};}__name(parseBundleUploadResponse,_0xef7a9b(0x232));function parseVariableGaps(_0x5e5d7a){const _0x30a380={_0x5af21b:0x1b6,_0x1c61c7:0x204,_0x5afb3c:0x22f,_0x2d8ebc:0x2d6,_0x5f1781:0x22f},_0x442bfc=_0xef7a9b;if(!Array['isArray'](_0x5e5d7a))return null;const _0x50c77a=[];for(const _0x1bec9c of _0x5e5d7a){if(!isRecord(_0x1bec9c))continue;const {project:_0x31364d,environment:_0x421734,missing:_0x420bb6}=_0x1bec9c;if(typeof _0x31364d!==_0x442bfc(_0x30a380._0x5af21b)||typeof _0x421734!==_0x442bfc(0x1b6))continue;if(!Array[_0x442bfc(_0x30a380._0x1c61c7)](_0x420bb6))continue;const _0x115619=_0x420bb6['filter'](_0x2665ae=>typeof _0x2665ae===_0x442bfc(0x1b6));if(_0x115619[_0x442bfc(_0x30a380._0x5afb3c)]>0x0)_0x50c77a[_0x442bfc(_0x30a380._0x2d8ebc)]({'project':_0x31364d,'environment':_0x421734,'missing':_0x115619});}return _0x50c77a[_0x442bfc(_0x30a380._0x5f1781)]>0x0?_0x50c77a:null;}__name(parseVariableGaps,_0xef7a9b(0x179));var BROWSER_ENV=_0xef7a9b(0x208),BROWSER_CHANNEL_ENV=_0xef7a9b(0x184),BUNDLED_BROWSER_CHANNEL='bundled',BOX_VARIABLE_NAMES_ENV=_0xef7a9b(0x18a),BOX_SECRET_NAMES_ENV='UNOTEST_BOX_SECRET_NAMES';function encodeNameList(_0x310dc0){const _0x4123c0={_0x337987:0x231},_0xe55c8b=_0xef7a9b;return _0x310dc0[_0xe55c8b(_0x4123c0._0x337987)](',');}__name(encodeNameList,_0xef7a9b(0x1cb));function decodeNameList(_0x3271d5){const _0x3007c4={_0x18c062:0x1ff,_0x432257:0x2f4},_0x33d832=_0xef7a9b;if(_0x3271d5===void 0x0)return[];return _0x3271d5[_0x33d832(_0x3007c4._0x18c062)](',')[_0x33d832(_0x3007c4._0x432257)](_0x468b05=>_0x468b05[_0x33d832(0x2a0)]())[_0x33d832(0x2a4)](_0x2182b8=>_0x2182b8!=='');}__name(decodeNameList,'decodeNameList');var ENV_KEY_RE=/^[A-Za-z_][A-Za-z0-9_]*$/,UNHOLDABLE_NAME='__proto__';function isEnvVarName(_0x4d4bb0){const _0x391079=_0xef7a9b;return ENV_KEY_RE[_0x391079(0x234)](_0x4d4bb0)&&_0x4d4bb0!==UNHOLDABLE_NAME;}__name(isEnvVarName,_0xef7a9b(0x2e2));function*assignmentEntries(_0x5541cb){const _0x1a97e7={_0x50b9ae:0x2a0},_0x13b73c=_0xef7a9b;for(const _0x2ef2f6 of _0x5541cb['split'](/\r?\n/)){const _0xc8f8b3=_0x2ef2f6[_0x13b73c(_0x1a97e7._0x50b9ae)]();if(_0xc8f8b3===''||_0xc8f8b3[_0x13b73c(0x251)]('#'))continue;const _0x2b373a=_0xc8f8b3[_0x13b73c(0x173)]('=');if(_0x2b373a<=0x0)continue;const _0x344ca8=_0xc8f8b3[_0x13b73c(0x29a)](0x0,_0x2b373a)['trim']();if(!isEnvVarName(_0x344ca8))continue;yield[_0x344ca8,_0xc8f8b3['slice'](_0x2b373a+0x1)[_0x13b73c(0x2a0)]()];}}__name(assignmentEntries,'assignmentEntries');function parseEnvContent(_0x1a788b){const _0x7f171b={_0x528cef:0x22f},_0x5a0215=_0xef7a9b,_0x2052ef={};for(const [_0x5d875c,_0x5ac37e]of assignmentEntries(_0x1a788b)){let _0x39eb61=_0x5ac37e;if(_0x39eb61['length']>=0x2){const _0x1670d=_0x39eb61[0x0],_0x5aded5=_0x39eb61[_0x39eb61[_0x5a0215(_0x7f171b._0x528cef)]-0x1];(_0x1670d==='\x22'||_0x1670d==='\x27')&&_0x1670d===_0x5aded5&&(_0x39eb61=_0x39eb61[_0x5a0215(0x29a)](0x1,-0x1));}_0x2052ef[_0x5d875c]=_0x39eb61;}return _0x2052ef;}__name(parseEnvContent,_0xef7a9b(0x238));function serializeEnvValue(_0x14f79d){const _0x332f45={_0x5b0030:0x234,_0x3ce31a:0x1a9},_0x415f7f=_0xef7a9b;if(_0x14f79d==='')return'';if(/[\s#"'=\\]|^[`]/[_0x415f7f(_0x332f45._0x5b0030)](_0x14f79d)||/[\n\r]/['test'](_0x14f79d)){const _0x5bde24=_0x14f79d[_0x415f7f(_0x332f45._0x3ce31a)](/\\/g,'\x5c\x5c')[_0x415f7f(0x1a9)](/"/g,'\x5c\x22')['replace'](/\n/g,'\x5cn')[_0x415f7f(0x1a9)](/\r/g,'\x5cr');return'\x22'+_0x5bde24+'\x22';}return _0x14f79d;}__name(serializeEnvValue,_0xef7a9b(0x17c));function envKeys(_0x4a0c1b){const _0x2c5dde={_0x54a5cb:0x226},_0x44c0e0=_0xef7a9b,_0x54a088=new Set();for(const [_0x3b8b29]of assignmentEntries(_0x4a0c1b))_0x54a088[_0x44c0e0(_0x2c5dde._0x54a5cb)](_0x3b8b29);return _0x54a088;}__name(envKeys,_0xef7a9b(0x153));function declaredEnvKeys(_0x2f7f0f){const _0x70a0e0={_0xa853dc:0x2fa},_0xf60ebb=_0xef7a9b,_0x334242=new Set();for(const _0x4943bd of _0x2f7f0f[_0xf60ebb(0x1ff)](/\r?\n/)){const _0x275524=/^\s*(?:#\s*)?([A-Za-z_][A-Za-z0-9_]*)\s*=/[_0xf60ebb(_0x70a0e0._0xa853dc)](_0x4943bd);if(_0x275524)_0x334242['add'](_0x275524[0x1]);}return _0x334242;}__name(declaredEnvKeys,_0xef7a9b(0x161));function isSectionDivider(_0x22e548){const _0x53aab6={_0x159084:0x2a0,_0x50ac5b:0x251,_0x3570c3:0x234},_0x45276a=_0xef7a9b,_0x471978=_0x22e548[_0x45276a(_0x53aab6._0x159084)]();return _0x471978[_0x45276a(_0x53aab6._0x50ac5b)]('#')&&/---/[_0x45276a(_0x53aab6._0x3570c3)](_0x471978);}__name(isSectionDivider,_0xef7a9b(0x21d));function isAssignmentLine(_0x3521fa){const _0x3fca08={_0x54a9ad:0x234,_0x5515ad:0x29a},_0x23cd1f=_0xef7a9b,_0x1f4c05=_0x3521fa[_0x23cd1f(0x2a0)]();if(_0x1f4c05===''||_0x1f4c05[_0x23cd1f(0x251)]('#'))return![];const _0x1b0837=_0x1f4c05[_0x23cd1f(0x173)]('=');return _0x1b0837>0x0&&ENV_KEY_RE[_0x23cd1f(_0x3fca08._0x54a9ad)](_0x1f4c05[_0x23cd1f(_0x3fca08._0x5515ad)](0x0,_0x1b0837)['trim']());}__name(isAssignmentLine,_0xef7a9b(0x304));function isAssignmentOf(_0x30ea35,_0x22d386){const _0x516542={_0x4b8d8f:0x2a0,_0x51b672:0x29a},_0x5cf649=_0xef7a9b,_0x94ca4c=_0x30ea35[_0x5cf649(_0x516542._0x4b8d8f)]();if(_0x94ca4c===''||_0x94ca4c[_0x5cf649(0x251)]('#'))return![];const _0x42b226=_0x94ca4c[_0x5cf649(0x173)]('=');if(_0x42b226<=0x0)return![];return _0x94ca4c[_0x5cf649(_0x516542._0x51b672)](0x0,_0x42b226)[_0x5cf649(_0x516542._0x4b8d8f)]()===_0x22d386;}__name(isAssignmentOf,_0xef7a9b(0x225));function splitLines(_0xe0adf){const _0x3cc3f9={_0x5620c4:0x29a},_0x460056=_0xef7a9b,_0x378f22=_0xe0adf[_0x460056(0x1f3)]('\x0a'),_0x6d53c0=_0x378f22?_0xe0adf[_0x460056(_0x3cc3f9._0x5620c4)](0x0,-0x1):_0xe0adf;return{'lines':_0x6d53c0===''?[]:_0x6d53c0['split']('\x0a'),'trailingNewline':_0x378f22};}__name(splitLines,'splitLines');function joinLines(_0x214c05,_0x212872){const _0x211f95=_0xef7a9b,_0xaad516=_0x214c05[_0x211f95(0x231)]('\x0a');return _0x212872||_0xaad516===''?_0xaad516+'\x0a':_0xaad516;}__name(joinLines,_0xef7a9b(0x29e));function insertEnvVar(_0x1a740b,_0x23b4ea,_0x1f7f64,_0x487354){const _0x20e7c2={_0x27944b:0x1cc,_0x1ac4cd:0x22f,_0x5babf9:0x2a0,_0x31eaa7:0x2d6},_0x242a21=_0xef7a9b,_0x3b85d6=_0x23b4ea+'='+serializeEnvValue(_0x1f7f64),{lines:_0x1366ae,trailingNewline:_0x4a7cc5}=splitLines(_0x1a740b);if(_0x487354){const _0x26af8f=new RegExp('\x5cb'+_0x487354[_0x242a21(0x2ca)]()+'\x5cb'),_0x1b45fc=_0x1366ae[_0x242a21(_0x20e7c2._0x27944b)](_0x21054f=>isSectionDivider(_0x21054f)&&_0x26af8f[_0x242a21(0x234)](_0x21054f[_0x242a21(0x2ca)]()));if(_0x1b45fc!==-0x1){let _0x33df7f=_0x1366ae[_0x242a21(0x22f)];for(let _0x24b993=_0x1b45fc+0x1;_0x24b993<_0x1366ae[_0x242a21(_0x20e7c2._0x1ac4cd)];_0x24b993++){if(isSectionDivider(_0x1366ae[_0x24b993])){_0x33df7f=_0x24b993;break;}}let _0x12a77b=-0x1,_0x5bf181=-0x1;for(let _0x47833c=_0x1b45fc+0x1;_0x47833c<_0x33df7f;_0x47833c++){if(_0x1366ae[_0x47833c][_0x242a21(_0x20e7c2._0x5babf9)]()!=='')_0x5bf181=_0x47833c;if(isAssignmentLine(_0x1366ae[_0x47833c]))_0x12a77b=_0x47833c;}const _0x5d7225=_0x12a77b>=0x0?_0x12a77b:_0x5bf181,_0x1f5abf=_0x5d7225>=0x0?_0x5d7225+0x1:_0x1b45fc+0x1;return _0x1366ae[_0x242a21(0x288)](_0x1f5abf,0x0,_0x3b85d6),joinLines(_0x1366ae,_0x4a7cc5||_0x1366ae['length']>0x0);}if(_0x1366ae['length']>0x0)_0x1366ae[_0x242a21(_0x20e7c2._0x31eaa7)]('');return _0x1366ae[_0x242a21(_0x20e7c2._0x31eaa7)](_0x242a21(0x150)+_0x487354+'\x20---',_0x3b85d6),joinLines(_0x1366ae,!![]);}return _0x1366ae['push'](_0x3b85d6),joinLines(_0x1366ae,!![]);}__name(insertEnvVar,'insertEnvVar');function removeEnvVar(_0x24fa38,_0x5954b5){const _0x44628b={_0x77e583:0x22f},_0x334a41=_0xef7a9b,{lines:_0x1a0dc6,trailingNewline:_0x3fbc04}=splitLines(_0x24fa38),_0x12ee8f=_0x1a0dc6['filter'](_0x1601b4=>!isAssignmentOf(_0x1601b4,_0x5954b5)),_0x534652=_0x12ee8f[_0x334a41(_0x44628b._0x77e583)]!==_0x1a0dc6['length'];return{'content':joinLines(_0x12ee8f,_0x3fbc04),'removed':_0x534652};}__name(removeEnvVar,_0xef7a9b(0x2b7));var TARGET_ENV_VAR=_0xef7a9b(0x18e),RUNNER_SETTING_PREFIX=_0xef7a9b(0x1d4);function isRunnerSetting(_0x3ee212){return _0x3ee212['startsWith'](RUNNER_SETTING_PREFIX);}__name(isRunnerSetting,_0xef7a9b(0x2a6));var BOX_VALUES_PATH='/api/box/values',BOX_ENV_VALUES_SEGMENT='values',BOX_REVEAL_SEGMENT=_0xef7a9b(0x2d0),KIND_SEGMENTS={'variable':_0xef7a9b(0x2c5),'secret':_0xef7a9b(0x1b7)};function boxValueKindOfSegment(_0x328e87){const _0x3a447d={_0x3343e3:0x2e1},_0x298dd8=_0xef7a9b;for(const [_0x4b50f4,_0x133d08]of Object[_0x298dd8(_0x3a447d._0x3343e3)](KIND_SEGMENTS)){if(_0x133d08===_0x328e87)return _0x4b50f4;}return null;}__name(boxValueKindOfSegment,_0xef7a9b(0x2d2));function boxValuesPath(_0x5bf65c){return BOX_VALUES_PATH+'/'+encodeURIComponent(_0x5bf65c);}__name(boxValuesPath,_0xef7a9b(0x1bc));function boxValuePath(_0x8fcf1e,_0x47ec65,_0x1bd977){return boxValuesPath(_0x8fcf1e)+'/'+valueSuffix(_0x47ec65,_0x1bd977);}__name(boxValuePath,_0xef7a9b(0x15a));function boxEnvValuesPath(_0x8ad445,_0x373962){const _0x33e574={_0x457e84:0x26d},_0x38872b=_0xef7a9b;return _0x38872b(_0x33e574._0x457e84)+encodeURIComponent(_0x8ad445)+'/'+encodeURIComponent(_0x373962)+'/'+BOX_ENV_VALUES_SEGMENT;}__name(boxEnvValuesPath,'boxEnvValuesPath');function boxEnvValuePath(_0x4fb470,_0x245fbc,_0x1afb78,_0x2d938c){return boxEnvValuesPath(_0x4fb470,_0x245fbc)+'/'+valueSuffix(_0x1afb78,_0x2d938c);}__name(boxEnvValuePath,_0xef7a9b(0x2cb));function boxEnvSecretRevealPath(_0x30e8e9,_0x433fcf,_0x4ddc1b){const _0x266fb2={_0x205d59:0x1ae},_0x5c92e0=_0xef7a9b;return boxEnvValuePath(_0x30e8e9,_0x433fcf,_0x5c92e0(_0x266fb2._0x205d59),_0x4ddc1b)+'/'+BOX_REVEAL_SEGMENT;}__name(boxEnvSecretRevealPath,'boxEnvSecretRevealPath');function boxEnvSecretsRevealPath(_0x2f023b,_0x4e72c3){return boxEnvValuesPath(_0x2f023b,_0x4e72c3)+'/'+BOX_REVEAL_SEGMENT;}__name(boxEnvSecretsRevealPath,_0xef7a9b(0x2ef));function valueSuffix(_0x4827be,_0x426d31){const _0x38f808={_0x165bd0:0x275},_0x26dd95=_0xef7a9b;if(_0x4827be===_0x26dd95(0x1e5))return'target';if(_0x426d31===void 0x0)throw new Error('a\x20'+_0x4827be+_0x26dd95(_0x38f808._0x165bd0));return KIND_SEGMENTS[_0x4827be]+'/'+encodeURIComponent(_0x426d31);}__name(valueSuffix,'valueSuffix');function parseBoxValuesReplaceRequest(_0x285d61){return parseReplaceRequest(_0x285d61,parseStringRecord);}__name(parseBoxValuesReplaceRequest,'parseBoxValuesReplaceRequest');function parseBoxEnvValuesReplaceRequest(_0x50c60b){return parseReplaceRequest(_0x50c60b,parseKeepRecord);}__name(parseBoxEnvValuesReplaceRequest,_0xef7a9b(0x176));function parseBoxValueSetRequest(_0x5c6214){return parseValueEnvelope(_0x5c6214);}__name(parseBoxValueSetRequest,_0xef7a9b(0x215));function reservedBoxValueNames(_0x594855){const _0x37fd94={_0x319e50:0x2c5,_0x315105:0x2a4},_0x4d913c=_0xef7a9b;return[...Object[_0x4d913c(0x206)](_0x594855[_0x4d913c(_0x37fd94._0x319e50)]),...Object[_0x4d913c(0x206)](_0x594855['secrets'])][_0x4d913c(_0x37fd94._0x315105)](_0x27f0c1=>_0x27f0c1===TARGET_ENV_VAR);}__name(reservedBoxValueNames,_0xef7a9b(0x261));function parseReplaceRequest(_0x108945,_0x4970da){const _0x5a7deb={_0x4fef7c:0x1b6},_0x2c68d4=_0xef7a9b;if(!isRecord(_0x108945))return null;const {target:_0x52eee7,variables:_0x3e9d7a,secrets:_0x4d060e}=_0x108945;if(_0x52eee7!==void 0x0&&typeof _0x52eee7!==_0x2c68d4(0x1b6))return null;const _0x383e8c=parseStringRecord(_0x3e9d7a),_0xab78a9=_0x4970da(_0x4d060e);if(_0x383e8c===null||_0xab78a9===null)return null;return{...typeof _0x52eee7===_0x2c68d4(_0x5a7deb._0x4fef7c)?{'target':_0x52eee7}:{},'variables':_0x383e8c,'secrets':_0xab78a9};}__name(parseReplaceRequest,_0xef7a9b(0x2db));function parseValueEnvelope(_0x516bda){const _0x52f547={_0x157001:0x186},_0x21083b=_0xef7a9b;if(!isRecord(_0x516bda))return null;return typeof _0x516bda[_0x21083b(_0x52f547._0x157001)]===_0x21083b(0x1b6)?{'value':_0x516bda['value']}:null;}__name(parseValueEnvelope,_0xef7a9b(0x1b5));function parseStringRecord(_0x340b9a){return parseNamedRecord(_0x340b9a,isString);}__name(parseStringRecord,_0xef7a9b(0x2ff));function parseKeepRecord(_0x4edb17){return parseNamedRecord(_0x4edb17,_0x273d90=>_0x273d90===null||isString(_0x273d90));}__name(parseKeepRecord,'parseKeepRecord');function parseNamedRecord(_0x351fd2,_0x49a81d){const _0x5ddb26=_0xef7a9b;if(!isRecord(_0x351fd2))return null;const _0x20be69={};for(const [_0x3a8bf6,_0x3f5d32]of Object[_0x5ddb26(0x2e1)](_0x351fd2)){if(!isEnvVarName(_0x3a8bf6)||!_0x49a81d(_0x3f5d32))return null;_0x20be69[_0x3a8bf6]=_0x3f5d32;}return _0x20be69;}__name(parseNamedRecord,_0xef7a9b(0x267));function isString(_0x29261c){const _0xa0490d={_0x22d063:0x1b6},_0x16b442=_0xef7a9b;return typeof _0x29261c===_0x16b442(_0xa0490d._0x22d063);}__name(isString,_0xef7a9b(0x171));var VALUES_ERROR_CODES=[_0xef7a9b(0x2ec),_0xef7a9b(0x26c),_0xef7a9b(0x14c),_0xef7a9b(0x209),_0xef7a9b(0x30c),_0xef7a9b(0x218),'malformed',_0xef7a9b(0x25f)],VALUE_KINDS=[_0xef7a9b(0x1e5),'variable',_0xef7a9b(0x1ae)];function parseBoxValuesResponse(_0x1885b0){const _0x283557={_0x4bdf37:0x1e5,_0x4c9ee9:0x305,_0x37d610:0x201,_0x56ba51:0x1b6},_0x56e537=_0xef7a9b;if(!isRecord(_0x1885b0))return null;if(isRecord(_0x1885b0[_0x56e537(0x158)])){const {code:_0x3b0818,message:_0x1335bb}=_0x1885b0['error'];if(!VALUES_ERROR_CODES[_0x56e537(0x201)](_0x3b0818))return null;if(typeof _0x1335bb!==_0x56e537(0x1b6))return null;return{'error':{'code':_0x3b0818,'message':_0x1335bb}};}const {status:_0x302537,environment:_0x594b0a}=_0x1885b0;if(typeof _0x594b0a!==_0x56e537(0x1b6))return null;if(_0x302537==='replaced'){const {target:_0x530dfd,variables:_0x2b63f0,secrets:_0x5f2a6e,removed:_0x149aff}=_0x1885b0;if(typeof _0x530dfd!=='boolean')return null;const _0x13cf36=parseNameList(_0x2b63f0),_0xa8bb27=parseNameList(_0x5f2a6e);if(_0x13cf36===null||_0xa8bb27===null||!isRecord(_0x149aff))return null;const _0x40f0b3=parseNameList(_0x149aff[_0x56e537(0x2c5)]),_0x33115f=parseNameList(_0x149aff['secrets']);if(typeof _0x149aff[_0x56e537(_0x283557._0x4bdf37)]!==_0x56e537(0x2e4)||_0x40f0b3===null||_0x33115f===null)return null;return{'status':_0x302537,'environment':_0x594b0a,'target':_0x530dfd,'variables':_0x13cf36,'secrets':_0xa8bb27,'removed':{'target':_0x149aff['target'],'variables':_0x40f0b3,'secrets':_0x33115f}};}if(_0x302537===_0x56e537(_0x283557._0x4c9ee9)||_0x302537===_0x56e537(0x164)){const {kind:_0x3186f6,name:_0x7a9a97}=_0x1885b0;if(!VALUE_KINDS[_0x56e537(_0x283557._0x37d610)](_0x3186f6))return null;if(_0x7a9a97!==void 0x0&&typeof _0x7a9a97!==_0x56e537(_0x283557._0x56ba51))return null;return{'status':_0x302537,'environment':_0x594b0a,'kind':_0x3186f6,...typeof _0x7a9a97==='string'?{'name':_0x7a9a97}:{}};}return null;}__name(parseBoxValuesResponse,_0xef7a9b(0x2b6));function parseNameList(_0xbc1ffc){const _0x21dead=_0xef7a9b;if(!Array[_0x21dead(0x204)](_0xbc1ffc))return null;return _0xbc1ffc[_0x21dead(0x248)](_0x94d353=>typeof _0x94d353===_0x21dead(0x1b6))?_0xbc1ffc:null;}__name(parseNameList,'parseNameList');function parseBoxSecretRevealResponse(_0x423722){return parseValueEnvelope(_0x423722);}__name(parseBoxSecretRevealResponse,_0xef7a9b(0x291));function parseBoxSecretsRevealResponse(_0x7cda7a){return parseStringRecord(_0x7cda7a);}__name(parseBoxSecretsRevealResponse,'parseBoxSecretsRevealResponse');var BOX_NOTIFY_PATH='/api/box/notify';function boxNotifyProjectPath(_0x259b95){return BOX_NOTIFY_PATH+'/'+encodeURIComponent(_0x259b95);}__name(boxNotifyProjectPath,'boxNotifyProjectPath');function boxNotifyChannelPath(_0x5d4a49,_0x4deade){const _0x42c646=_0xef7a9b;return boxNotifyProjectPath(_0x5d4a49)+_0x42c646(0x2d8)+encodeURIComponent(_0x4deade);}__name(boxNotifyChannelPath,_0xef7a9b(0x175));function boxNotifyTestPath(_0x3c0f75,_0x412bd4){const _0x3ca0e9=_0xef7a9b;return boxNotifyChannelPath(_0x3c0f75,_0x412bd4)+_0x3ca0e9(0x1c6);}__name(boxNotifyTestPath,_0xef7a9b(0x166));function boxNotifyRulePath(_0x55cb58,_0x2c8677){const _0x5eb818={_0x5d4e4d:0x283},_0x353f87=_0xef7a9b;return boxNotifyProjectPath(_0x55cb58)+_0x353f87(_0x5eb818._0x5d4e4d)+encodeURIComponent(_0x2c8677);}__name(boxNotifyRulePath,_0xef7a9b(0x18c));function boxNotifyQuietHoursPath(_0x330b96){const _0x519d4b={_0x23b3f2:0x1bb},_0xc58803=_0xef7a9b;return boxNotifyProjectPath(_0x330b96)+_0xc58803(_0x519d4b._0x23b3f2);}__name(boxNotifyQuietHoursPath,_0xef7a9b(0x1e4));function boxNotifySeriesPath(_0x5024d8){const _0x3e7ca6={_0x3735e3:0x1ad},_0x2f21c7=_0xef7a9b;return boxNotifyProjectPath(_0x5024d8)+_0x2f21c7(_0x3e7ca6._0x3735e3);}__name(boxNotifySeriesPath,_0xef7a9b(0x2a2));function boxNotifySeriesResetPath(_0x961233,_0x34f8b4){return boxNotifySeriesPath(_0x961233)+'/'+encodeURIComponent(_0x34f8b4)+'/reset';}__name(boxNotifySeriesResetPath,_0xef7a9b(0x2b9));function boxNotifyMutePath(_0x4699cd,_0x1018b0){const _0x3b3f63={_0x54d531:0x1ca},_0x1b759a=_0xef7a9b;return boxNotifyProjectPath(_0x4699cd)+_0x1b759a(_0x3b3f63._0x54d531)+encodeURIComponent(_0x1018b0);}__name(boxNotifyMutePath,_0xef7a9b(0x2d5));function boxNotifyPreviewPath(_0x3c52ac,_0x45c5a5,_0x449c06){const _0x1186ca=_0xef7a9b;return boxNotifyProjectPath(_0x3c52ac)+_0x1186ca(0x258)+encodeURIComponent(_0x45c5a5)+_0x1186ca(0x205)+_0x449c06;}__name(boxNotifyPreviewPath,_0xef7a9b(0x2be));var BOX_NOTIFY_CHANNEL_KINDS=[_0xef7a9b(0x14d),'telegram',_0xef7a9b(0x236)],BOX_NOTIFY_TRIGGER_KINDS=[_0xef7a9b(0x21e),'ci',_0xef7a9b(0x1c0),_0xef7a9b(0x18b)],BOX_NOTIFY_EVENTS=[_0xef7a9b(0x242),'recovered',_0xef7a9b(0x262),_0xef7a9b(0x15f)],BOX_NOTIFY_STATES=[_0xef7a9b(0x242),_0xef7a9b(0x15e),'still-failing',_0xef7a9b(0x262),'passed'],ERROR_CODES=[_0xef7a9b(0x2ec),_0xef7a9b(0x2a9),_0xef7a9b(0x2e6),_0xef7a9b(0x200),'unknown-mute','unknown-series',_0xef7a9b(0x2bd),_0xef7a9b(0x25f)];function parseBoxNotifyView(_0x1122bd){const _0x509c86={_0x4c22de:0x204,_0x4483cf:0x235},_0x161adf=_0xef7a9b;if(!isRecord(_0x1122bd)||!Array[_0x161adf(_0x509c86._0x4c22de)](_0x1122bd['projects']))return null;const _0x1a9196=_0x1122bd[_0x161adf(_0x509c86._0x4483cf)]['map'](parseBoxNotifyProjectView);return _0x1a9196[_0x161adf(0x248)](_0x4531e0=>_0x4531e0!==null)?{'projects':_0x1a9196}:null;}__name(parseBoxNotifyView,_0xef7a9b(0x28a));function parseBoxNotifyProjectView(_0x3f1f39){const _0x52377c={_0x365999:0x20d},_0x678252=_0xef7a9b;if(!isRecord(_0x3f1f39)||typeof _0x3f1f39['project']!=='string')return null;const _0x7ad19c=parseAll(_0x3f1f39[_0x678252(0x229)],parseChannel),_0xf03fe=parseAll(_0x3f1f39[_0x678252(_0x52377c._0x365999)],parseRule),_0x3e3925=parseAll(_0x3f1f39[_0x678252(0x21a)],parseMute);if(_0x7ad19c===null||_0xf03fe===null||_0x3e3925===null)return null;const _0x38887a=_0x3f1f39[_0x678252(0x256)]===void 0x0?void 0x0:parseQuietHours(_0x3f1f39['quietHours']);if(_0x38887a===null)return null;return{'project':_0x3f1f39[_0x678252(0x1b2)],'channels':_0x7ad19c,'rules':_0xf03fe,'mutes':_0x3e3925,..._0x38887a!==void 0x0?{'quietHours':_0x38887a}:{}};}__name(parseBoxNotifyProjectView,'parseBoxNotifyProjectView');function parseBoxNotifySeriesView(_0x1b045c){const _0x245233={_0x502a9f:0x1b2,_0x44e81c:0x1b6},_0x1fec7f=_0xef7a9b;if(!isRecord(_0x1b045c)||typeof _0x1b045c[_0x1fec7f(_0x245233._0x502a9f)]!==_0x1fec7f(_0x245233._0x44e81c))return null;const _0x1e64fb=parseAll(_0x1b045c[_0x1fec7f(0x257)],parseSeriesEntry);return _0x1e64fb===null?null:{'project':_0x1b045c[_0x1fec7f(0x1b2)],'series':_0x1e64fb};}__name(parseBoxNotifySeriesView,_0xef7a9b(0x223));function parseBoxNotifyPreview(_0x428a2f){const _0x287f8e={_0x3f3e04:0x1f2,_0x18edcb:0x1f2,_0x31d0bd:0x2e0,_0x33ee42:0x1fa},_0x4341f3=_0xef7a9b;if(!isRecord(_0x428a2f)||!isState(_0x428a2f[_0x4341f3(_0x287f8e._0x3f3e04)])||typeof _0x428a2f['title']!==_0x4341f3(0x1b6))return null;if(!isStringArray(_0x428a2f['lines']))return null;if(_0x428a2f['url']!==void 0x0&&typeof _0x428a2f['url']!=='string')return null;return{'state':_0x428a2f[_0x4341f3(_0x287f8e._0x18edcb)],'title':_0x428a2f['title'],'lines':_0x428a2f[_0x4341f3(_0x287f8e._0x31d0bd)],..._0x428a2f[_0x4341f3(_0x287f8e._0x33ee42)]!==void 0x0?{'url':_0x428a2f['url']}:{}};}__name(parseBoxNotifyPreview,_0xef7a9b(0x191));function parseBoxNotifyTestResult(_0x54fef9){const _0x29bf62={_0x8aeaff:0x282,_0x45c973:0x187,_0x5da7aa:0x1b6,_0x170fed:0x2f0,_0x1a1992:0x187,_0x52e958:0x24d,_0x3c3e4e:0x1f4},_0x2b4e7c=_0xef7a9b;if(!isRecord(_0x54fef9)||typeof _0x54fef9[_0x2b4e7c(_0x29bf62._0x8aeaff)]!==_0x2b4e7c(0x1b6))return null;if(_0x54fef9['status']==='sent'){if(_0x54fef9[_0x2b4e7c(_0x29bf62._0x45c973)]!==void 0x0&&typeof _0x54fef9[_0x2b4e7c(0x187)]!==_0x2b4e7c(_0x29bf62._0x5da7aa))return null;return{'status':_0x2b4e7c(_0x29bf62._0x170fed),'channel':_0x54fef9[_0x2b4e7c(0x282)],..._0x54fef9[_0x2b4e7c(0x187)]!==void 0x0?{'note':_0x54fef9[_0x2b4e7c(_0x29bf62._0x1a1992)]}:{}};}if(_0x54fef9[_0x2b4e7c(_0x29bf62._0x52e958)]===_0x2b4e7c(0x242)&&typeof _0x54fef9['message']==='string')return{'status':_0x2b4e7c(0x242),'channel':_0x54fef9['channel'],'message':_0x54fef9[_0x2b4e7c(_0x29bf62._0x3c3e4e)]};return null;}__name(parseBoxNotifyTestResult,'parseBoxNotifyTestResult');function parseBoxNotifyChanged(_0x23f361){const _0x2a7cfd=_0xef7a9b;if(!isRecord(_0x23f361)||typeof _0x23f361['id']!=='string')return null;const {status:_0x1916eb}=_0x23f361;if(_0x1916eb!==_0x2a7cfd(0x19e)&&_0x1916eb!==_0x2a7cfd(0x228)&&_0x1916eb!=='removed')return null;return{'status':_0x1916eb,'id':_0x23f361['id']};}__name(parseBoxNotifyChanged,_0xef7a9b(0x2b8));function parseBoxNotifyError(_0x261747){const _0x59c865=_0xef7a9b;if(!isRecord(_0x261747)||!isRecord(_0x261747['error']))return null;const {code:_0x3a6c0b,message:_0x3f9af2}=_0x261747[_0x59c865(0x158)];if(!ERROR_CODES[_0x59c865(0x201)](_0x3a6c0b)||typeof _0x3f9af2!=='string')return null;return{'error':{'code':_0x3a6c0b,'message':_0x3f9af2}};}__name(parseBoxNotifyError,_0xef7a9b(0x2e8));function isBoxNotifyState(_0x5243ad){return isState(_0x5243ad);}__name(isBoxNotifyState,'isBoxNotifyState');function boxNotifyPreviewTrigger(_0x1c0d67){const _0x4eae13={_0x1d5ca0:0x21e},_0x1f990e=_0xef7a9b;switch(_0x1c0d67){case _0x1f990e(_0x4eae13._0x1d5ca0):return{'kind':_0x1c0d67};case'ci':return{'kind':_0x1c0d67,'by':_0x1f990e(0x1e3)};case _0x1f990e(0x1c0):return{'kind':_0x1c0d67,'by':_0x1f990e(0x2cc)};case'cli':return{'kind':_0x1c0d67};}}__name(boxNotifyPreviewTrigger,_0xef7a9b(0x1cf));function parseAll(_0x1c5e9c,_0x216dac){const _0x2065a0={_0x225187:0x204},_0xde62d3=_0xef7a9b;if(!Array[_0xde62d3(_0x2065a0._0x225187)](_0x1c5e9c))return null;const _0x3d7b81=[];for(const _0x2f7e69 of _0x1c5e9c){const _0x33695f=_0x216dac(_0x2f7e69);if(_0x33695f===null)return null;_0x3d7b81['push'](_0x33695f);}return _0x3d7b81;}__name(parseAll,_0xef7a9b(0x1ba));function parseSecret(_0x3d1218){const _0x3bf0d5={_0x1865f9:0x305},_0xaa35f7=_0xef7a9b;return isRecord(_0x3d1218)&&typeof _0x3d1218[_0xaa35f7(_0x3bf0d5._0x1865f9)]===_0xaa35f7(0x2e4)?{'set':_0x3d1218[_0xaa35f7(0x305)]}:null;}__name(parseSecret,_0xef7a9b(0x270));function parseLastDelivery(_0x246258){const _0x85b312={_0x5132b3:0x2e3,_0xa41e25:0x158,_0x527416:0x1b6,_0x115533:0x2e3},_0x46536c=_0xef7a9b;if(!isRecord(_0x246258)||typeof _0x246258['at']!=='number')return null;if(_0x246258['outcome']!==_0x46536c(0x2f0)&&_0x246258[_0x46536c(_0x85b312._0x5132b3)]!==_0x46536c(0x242))return null;if(_0x246258[_0x46536c(_0x85b312._0xa41e25)]!==void 0x0&&typeof _0x246258[_0x46536c(0x158)]!==_0x46536c(_0x85b312._0x527416))return null;return{'at':_0x246258['at'],'outcome':_0x246258[_0x46536c(_0x85b312._0x115533)],..._0x246258[_0x46536c(_0x85b312._0xa41e25)]!==void 0x0?{'error':_0x246258[_0x46536c(0x158)]}:{}};}__name(parseLastDelivery,_0xef7a9b(0x2af));function parseChannel(_0x288256){const _0x390150={_0x207e71:0x1b6,_0x52ccb3:0x14d,_0x5eedeb:0x293,_0x343074:0x236,_0x44b0f9:0x1fa,_0x1e62ef:0x2c8,_0x29c40c:0x2c8,_0x2c2548:0x1fa},_0x37f49c=_0xef7a9b;if(!isRecord(_0x288256))return null;const {id:_0x3c5ec1,name:_0x389b91,enabled:_0x71c5c6,kind:_0x4fe74c}=_0x288256;if(typeof _0x3c5ec1!==_0x37f49c(_0x390150._0x207e71)||typeof _0x389b91!==_0x37f49c(0x1b6)||typeof _0x71c5c6!==_0x37f49c(0x2e4))return null;const _0x4649ec=_0x288256[_0x37f49c(0x16d)]===void 0x0?void 0x0:parseLastDelivery(_0x288256[_0x37f49c(0x16d)]);if(_0x4649ec===null)return null;const _0x3d8a18={'id':_0x3c5ec1,'name':_0x389b91,'enabled':_0x71c5c6,..._0x4649ec!==void 0x0?{'lastDelivery':_0x4649ec}:{}};switch(_0x4fe74c){case _0x37f49c(_0x390150._0x52ccb3):{const _0x348934=parseSecret(_0x288256[_0x37f49c(0x2aa)]);return _0x348934===null?null:{..._0x3d8a18,'kind':_0x4fe74c,'webhookUrl':_0x348934};}case'telegram':{const _0x38f515=parseSecret(_0x288256[_0x37f49c(0x2ac)]);if(_0x38f515===null||typeof _0x288256[_0x37f49c(0x2bc)]!==_0x37f49c(0x1b6))return null;if(_0x288256[_0x37f49c(0x293)]!==void 0x0&&typeof _0x288256[_0x37f49c(_0x390150._0x5eedeb)]!==_0x37f49c(_0x390150._0x207e71))return null;return{..._0x3d8a18,'kind':_0x4fe74c,'botToken':_0x38f515,'chatId':_0x288256[_0x37f49c(0x2bc)],..._0x288256[_0x37f49c(0x293)]!==void 0x0?{'threadId':_0x288256['threadId']}:{}};}case _0x37f49c(_0x390150._0x343074):{const _0x549dba=parseSecret(_0x288256[_0x37f49c(0x1ae)]);if(_0x549dba===null||typeof _0x288256[_0x37f49c(_0x390150._0x44b0f9)]!==_0x37f49c(_0x390150._0x207e71))return null;const _0x26d309=_0x288256[_0x37f49c(_0x390150._0x1e62ef)]===void 0x0?void 0x0:parseHeaderFlags(_0x288256[_0x37f49c(_0x390150._0x29c40c)]);if(_0x26d309===null)return null;return{..._0x3d8a18,'kind':_0x4fe74c,'url':_0x288256[_0x37f49c(_0x390150._0x2c2548)],'secret':_0x549dba,..._0x26d309!==void 0x0?{'headers':_0x26d309}:{}};}default:return null;}}__name(parseChannel,_0xef7a9b(0x203));function parseHeaderFlags(_0x301535){const _0x5acfa7=_0xef7a9b;if(!isRecord(_0x301535))return null;const _0x1149ab={};for(const [_0x2f67cb,_0x1ad3bd]of Object[_0x5acfa7(0x2e1)](_0x301535)){const _0x5db88f=parseSecret(_0x1ad3bd);if(_0x5db88f===null)return null;_0x1149ab[_0x2f67cb]=_0x5db88f;}return _0x1149ab;}__name(parseHeaderFlags,_0xef7a9b(0x30d));function parseRule(_0xad28f6){const _0xe06e11={_0x35cb8d:0x2e4,_0xdeb3d1:0x2ba,_0x48f4fe:0x1b6,_0x5bbfdc:0x1b3,_0x35ff75:0x2e9,_0x5baf4e:0x2ed,_0x2332c5:0x2b0,_0x4af96a:0x281},_0x462ea3=_0xef7a9b;if(!isRecord(_0xad28f6)||typeof _0xad28f6['id']!==_0x462ea3(0x1b6)||typeof _0xad28f6[_0x462ea3(0x14a)]!==_0x462ea3(_0xe06e11._0x35cb8d))return null;if(_0xad28f6['name']!==void 0x0&&typeof _0xad28f6[_0x462ea3(_0xe06e11._0xdeb3d1)]!==_0x462ea3(_0xe06e11._0x48f4fe))return null;if(_0xad28f6[_0x462ea3(0x281)]!==void 0x0&&!isStringArray(_0xad28f6[_0x462ea3(0x281)]))return null;if(!isStringArray(_0xad28f6[_0x462ea3(_0xe06e11._0x5bbfdc)])||!_0xad28f6['triggers'][_0x462ea3(0x248)](isTriggerKind))return null;if(!isStringArray(_0xad28f6[_0x462ea3(0x2e9)])||!_0xad28f6[_0x462ea3(_0xe06e11._0x35ff75)][_0x462ea3(0x248)](isEvent))return null;if(!isStringArray(_0xad28f6[_0x462ea3(0x229)])||typeof _0xad28f6[_0x462ea3(0x2b2)]!==_0x462ea3(_0xe06e11._0x5baf4e))return null;if(_0xad28f6[_0x462ea3(_0xe06e11._0x2332c5)]!==void 0x0&&typeof _0xad28f6['repeatEvery']!==_0x462ea3(0x2ed))return null;return{'id':_0xad28f6['id'],..._0xad28f6[_0x462ea3(0x2ba)]!==void 0x0?{'name':_0xad28f6[_0x462ea3(0x2ba)]}:{},'enabled':_0xad28f6[_0x462ea3(0x14a)],..._0xad28f6[_0x462ea3(0x281)]!==void 0x0?{'environments':_0xad28f6[_0x462ea3(_0xe06e11._0x4af96a)]}:{},'triggers':_0xad28f6['triggers'],'events':_0xad28f6[_0x462ea3(_0xe06e11._0x35ff75)],'channels':_0xad28f6['channels'],'afterFailures':_0xad28f6[_0x462ea3(0x2b2)],..._0xad28f6[_0x462ea3(0x2b0)]!==void 0x0?{'repeatEvery':_0xad28f6['repeatEvery']}:{}};}__name(parseRule,_0xef7a9b(0x15d));function parseBoxNotifyMuteScope(_0x248a82){const _0x4f13af={_0x2e07b7:0x1b6,_0x4bef85:0x22f},_0x1679bb=_0xef7a9b;if(!isRecord(_0x248a82))return null;if(_0x248a82[_0x1679bb(0x1b2)]===!![])return{'project':!![]};if(typeof _0x248a82[_0x1679bb(0x257)]===_0x1679bb(_0x4f13af._0x2e07b7)&&_0x248a82[_0x1679bb(0x257)][_0x1679bb(_0x4f13af._0x4bef85)]>0x0)return{'series':_0x248a82[_0x1679bb(0x257)]};return null;}__name(parseBoxNotifyMuteScope,'parseBoxNotifyMuteScope');function parseMute(_0x4e2613){const _0x2ed1b3={_0x29da56:0x1b6,_0x5c1e1f:0x1d2,_0x371f3d:0x2ed,_0x27be2f:0x1ce,_0x152ab4:0x2ed,_0x86a947:0x178,_0xb52d85:0x178},_0x2ae01a=_0xef7a9b;if(!isRecord(_0x4e2613)||typeof _0x4e2613['id']!==_0x2ae01a(_0x2ed1b3._0x29da56)||typeof _0x4e2613['by']!=='string')return null;const _0x2a42be=parseBoxNotifyMuteScope(_0x4e2613[_0x2ae01a(_0x2ed1b3._0x5c1e1f)]);if(_0x2a42be===null||typeof _0x4e2613['at']!==_0x2ae01a(_0x2ed1b3._0x371f3d))return null;if(_0x4e2613[_0x2ae01a(_0x2ed1b3._0x27be2f)]!==void 0x0&&typeof _0x4e2613[_0x2ae01a(0x1ce)]!==_0x2ae01a(_0x2ed1b3._0x152ab4))return null;if(_0x4e2613[_0x2ae01a(0x178)]!==void 0x0&&typeof _0x4e2613[_0x2ae01a(_0x2ed1b3._0x86a947)]!=='string')return null;return{'id':_0x4e2613['id'],'scope':_0x2a42be,..._0x4e2613['until']!==void 0x0?{'until':_0x4e2613[_0x2ae01a(0x1ce)]}:{},'by':_0x4e2613['by'],..._0x4e2613[_0x2ae01a(_0x2ed1b3._0xb52d85)]!==void 0x0?{'reason':_0x4e2613[_0x2ae01a(0x178)]}:{},'at':_0x4e2613['at']};}__name(parseMute,_0xef7a9b(0x27c));function parseQuietHours(_0x345e1e){const _0x19395d={_0x40832f:0x1b6},_0x6b8b41=_0xef7a9b;if(!isRecord(_0x345e1e))return null;const {from:_0x4d4ec9,to:_0x346379,tz:_0x199b0f}=_0x345e1e;if(typeof _0x4d4ec9!==_0x6b8b41(0x1b6)||typeof _0x346379!==_0x6b8b41(0x1b6)||typeof _0x199b0f!==_0x6b8b41(_0x19395d._0x40832f))return null;return{'from':_0x4d4ec9,'to':_0x346379,'tz':_0x199b0f};}__name(parseQuietHours,_0xef7a9b(0x297));function parseSeriesEntry(_0x28970f){const _0x19cbfe={_0x2ae0ef:0x26e,_0x2ca5db:0x1b6,_0x118b7b:0x30a,_0x33306c:0x277,_0x2797fc:0x1f2,_0x392d90:0x1f2,_0x5c4b03:0x154,_0x45535a:0x268,_0x4ee469:0x1e5,_0xdb05dd:0x1f2},_0x1389f7=_0xef7a9b;if(!isRecord(_0x28970f)||typeof _0x28970f[_0x1389f7(0x268)]!==_0x1389f7(0x1b6)||typeof _0x28970f[_0x1389f7(_0x19cbfe._0x2ae0ef)]!==_0x1389f7(_0x19cbfe._0x2ca5db))return null;if(!isRecord(_0x28970f[_0x1389f7(0x1e5)])||typeof _0x28970f[_0x1389f7(0x1e5)][_0x1389f7(0x2ba)]!==_0x1389f7(0x1b6))return null;if(_0x28970f['target'][_0x1389f7(0x277)]!==_0x1389f7(_0x19cbfe._0x118b7b)&&_0x28970f[_0x1389f7(0x1e5)][_0x1389f7(_0x19cbfe._0x33306c)]!==_0x1389f7(0x28f))return null;if(_0x28970f[_0x1389f7(_0x19cbfe._0x2797fc)]!=='ok'&&_0x28970f[_0x1389f7(_0x19cbfe._0x392d90)]!=='failed')return null;if(typeof _0x28970f[_0x1389f7(0x178)]!==_0x1389f7(0x1b6)||typeof _0x28970f['since']!==_0x1389f7(0x2ed)||typeof _0x28970f['failures']!==_0x1389f7(0x2ed))return null;if(_0x28970f[_0x1389f7(_0x19cbfe._0x5c4b03)]!==void 0x0&&typeof _0x28970f[_0x1389f7(_0x19cbfe._0x5c4b03)]!=='number')return null;const _0x418694=_0x28970f['mute']===void 0x0?void 0x0:parseMute(_0x28970f['mute']);if(_0x418694===null)return null;return{'key':_0x28970f[_0x1389f7(_0x19cbfe._0x45535a)],'environment':_0x28970f[_0x1389f7(0x26e)],'target':{'kind':_0x28970f[_0x1389f7(_0x19cbfe._0x4ee469)][_0x1389f7(0x277)],'name':_0x28970f['target']['name']},'state':_0x28970f[_0x1389f7(_0x19cbfe._0xdb05dd)],'reason':_0x28970f['reason'],'since':_0x28970f[_0x1389f7(0x1ee)],'failures':_0x28970f['failures'],..._0x28970f['lastNotifiedAt']!==void 0x0?{'lastNotifiedAt':_0x28970f[_0x1389f7(_0x19cbfe._0x5c4b03)]}:{},..._0x418694!==void 0x0?{'mute':_0x418694}:{}};}__name(parseSeriesEntry,_0xef7a9b(0x20b));function isStringArray(_0x1c062f){const _0x13843b={_0x2da938:0x204},_0x54884e=_0xef7a9b;return Array[_0x54884e(_0x13843b._0x2da938)](_0x1c062f)&&_0x1c062f[_0x54884e(0x248)](_0x1b0b27=>typeof _0x1b0b27===_0x54884e(0x1b6));}__name(isStringArray,_0xef7a9b(0x1e9));function isTriggerKind(_0x2677a4){const _0x4e160b=_0xef7a9b;return BOX_NOTIFY_TRIGGER_KINDS[_0x4e160b(0x201)](_0x2677a4);}__name(isTriggerKind,'isTriggerKind');function isEvent(_0x1686f2){const _0x14f6b9=_0xef7a9b;return BOX_NOTIFY_EVENTS[_0x14f6b9(0x201)](_0x1686f2);}__name(isEvent,_0xef7a9b(0x294));function isState(_0x46218c){const _0x3c31bc=_0xef7a9b;return typeof _0x46218c==='string'&&BOX_NOTIFY_STATES[_0x3c31bc(0x201)](_0x46218c);}__name(isState,'isState');var BOX_READ_TOKEN_ENV='UNOTEST_BOX_READ_TOKEN',BOX_READ_TOKEN_PREFIX=_0xef7a9b(0x22c),BOX_READ_ENVIRONMENT_HEADER=_0xef7a9b(0x2ae),BOX_READ_ENVIRONMENTS_PATH='/_guard/api/envs',READ_ERROR_CODES=[_0xef7a9b(0x2ec),_0xef7a9b(0x26c),_0xef7a9b(0x209),'not-found',_0xef7a9b(0x149),_0xef7a9b(0x2df),_0xef7a9b(0x284),'malformed'];function parseBoxReadError(_0x2df18b){const _0x2f6ff6={_0x39e7b1:0x158},_0x234f64=_0xef7a9b;if(!isRecord(_0x2df18b)||!isRecord(_0x2df18b[_0x234f64(_0x2f6ff6._0x39e7b1)]))return null;const {code:_0x291f7d,message:_0x284018}=_0x2df18b[_0x234f64(_0x2f6ff6._0x39e7b1)];if(!READ_ERROR_CODES['includes'](_0x291f7d))return null;if(typeof _0x284018!==_0x234f64(0x1b6))return null;return{'error':{'code':_0x291f7d,'message':_0x284018}};}__name(parseBoxReadError,_0xef7a9b(0x2ab));function parseBoxReadEnvironments(_0x141e58){const _0x44bc57={_0x43357a:0x204,_0x360a95:0x1b6},_0x47545b=_0xef7a9b;if(!Array[_0x47545b(_0x44bc57._0x43357a)](_0x141e58))return null;const _0x1cba43=[];for(const _0x41eab3 of _0x141e58){if(!isRecord(_0x41eab3))return null;const {name:_0x56c537,project:_0x31d98c,environment:_0x5c27c7,note:_0x2e1472}=_0x41eab3;if(typeof _0x56c537!==_0x47545b(_0x44bc57._0x360a95)||typeof _0x5c27c7!==_0x47545b(0x1b6))return null;if(_0x31d98c!==void 0x0&&typeof _0x31d98c!==_0x47545b(0x1b6))return null;if(_0x2e1472!==void 0x0&&typeof _0x2e1472!==_0x47545b(_0x44bc57._0x360a95))return null;_0x1cba43[_0x47545b(0x2d6)]({'name':_0x56c537,'environment':_0x5c27c7,..._0x31d98c!==void 0x0?{'project':_0x31d98c}:{},..._0x2e1472!==void 0x0?{'note':_0x2e1472}:{}});}return _0x1cba43;}__name(parseBoxReadEnvironments,_0xef7a9b(0x29f));var BOX_RUNS_SEGMENT=_0xef7a9b(0x312),ACTOR_TICKET_HEADER=_0xef7a9b(0x308),GUARD_SECRET_HEADER=_0xef7a9b(0x2eb);function boxRunsPath(_0xb410f,_0x1c3e07){return'/api/box/envs/'+encodeURIComponent(_0xb410f)+'/'+encodeURIComponent(_0x1c3e07)+'/'+BOX_RUNS_SEGMENT;}__name(boxRunsPath,_0xef7a9b(0x183));function boxRunPath(_0x2f5b41,_0x25c3cc,_0xb6d39e){return boxRunsPath(_0x2f5b41,_0x25c3cc)+'/'+encodeURIComponent(_0xb6d39e);}__name(boxRunPath,_0xef7a9b(0x2ea));function parseBoxRunRequest(_0x86f46f){const _0x30dbec={_0x12c7f5:0x30a,_0x512222:0x1b6},_0xfcd514=_0xef7a9b;if(!isRecord(_0x86f46f))return null;const {kind:_0x458e6f,ref:_0x45f989}=_0x86f46f;if(_0x458e6f!==_0xfcd514(_0x30dbec._0x12c7f5)&&_0x458e6f!==_0xfcd514(0x28f))return null;if(typeof _0x45f989!==_0xfcd514(_0x30dbec._0x512222)||_0x45f989[_0xfcd514(0x22f)]===0x0)return null;return{'kind':_0x458e6f,'ref':_0x45f989};}__name(parseBoxRunRequest,'parseBoxRunRequest');function parseBoxRunAccepted(_0x91906a){const _0x2b6c7e={_0x5d8a9b:0x1b6,_0x4dd771:0x22f},_0x39fa6e=_0xef7a9b;if(!isRecord(_0x91906a))return null;const {runId:_0x4b7ad0,acceptedAt:_0x526793}=_0x91906a;if(typeof _0x4b7ad0!==_0x39fa6e(_0x2b6c7e._0x5d8a9b)||_0x4b7ad0[_0x39fa6e(_0x2b6c7e._0x4dd771)]===0x0)return null;if(typeof _0x526793!==_0x39fa6e(0x2ed))return null;return{'runId':_0x4b7ad0,'acceptedAt':_0x526793};}__name(parseBoxRunAccepted,_0xef7a9b(0x29b));function parseBoxRunStatus(_0x152043){const _0x96d180={_0x1a3d8d:0x22f,_0x14ff27:0x24a,_0x53027b:0x2ed,_0x3f11e7:0x2ed},_0x23c13a=_0xef7a9b;if(!isRecord(_0x152043))return null;const {runId:_0x2fd16b,state:_0x556b6,exitCode:_0x357027,startedAt:_0x263877,finishedAt:_0x3cd38d}=_0x152043;if(typeof _0x2fd16b!=='string'||_0x2fd16b[_0x23c13a(_0x96d180._0x1a3d8d)]===0x0)return null;if(_0x556b6!=='queued'&&_0x556b6!==_0x23c13a(0x265)&&_0x556b6!==_0x23c13a(_0x96d180._0x14ff27))return null;if(_0x357027!==void 0x0&&_0x357027!==null&&typeof _0x357027!==_0x23c13a(_0x96d180._0x53027b))return null;if(_0x263877!==void 0x0&&typeof _0x263877!==_0x23c13a(0x2ed))return null;if(_0x3cd38d!==void 0x0&&typeof _0x3cd38d!==_0x23c13a(_0x96d180._0x3f11e7))return null;return{'runId':_0x2fd16b,'state':_0x556b6,..._0x357027!==void 0x0?{'exitCode':_0x357027}:{},..._0x263877!==void 0x0?{'startedAt':_0x263877}:{},..._0x3cd38d!==void 0x0?{'finishedAt':_0x3cd38d}:{}};}__name(parseBoxRunStatus,_0xef7a9b(0x162));var WORKSPACE_SCHEMA_VERSION=0x1,WORKSPACE_FILE=_0xef7a9b(0x16f);function stringList(_0x51abdb){const _0x42e379={_0x53bf80:0x1dd},_0x178988=_0xef7a9b;if(!Array[_0x178988(0x204)](_0x51abdb))return null;if(_0x51abdb[_0x178988(_0x42e379._0x53bf80)](_0x1be8a1=>typeof _0x1be8a1!==_0x178988(0x1b6)))return null;return _0x51abdb;}__name(stringList,_0xef7a9b(0x24e));function parseBundle(_0x22262e){const _0x32b38e={_0x3cf167:0x1b6},_0x492275=_0xef7a9b;if(!isRecord(_0x22262e))return null;const {bundleId:_0x34912b,label:_0x7005cc,branch:_0x3f95f3,sha:_0x43da6e,dirty:_0x3282c3,author:_0x2b843a,createdAt:_0x1bae2a,webVersion:_0xaa7cf2}=_0x22262e;if(typeof _0x34912b!=='string'||_0x34912b[_0x492275(0x22f)]===0x0)return null;if(typeof _0x7005cc!=='string'||typeof _0xaa7cf2!==_0x492275(0x1b6))return null;if(typeof _0x3282c3!==_0x492275(0x2e4))return null;if(typeof _0x1bae2a!==_0x492275(0x2ed)||!Number[_0x492275(0x1aa)](_0x1bae2a))return null;for(const _0x337ee2 of[_0x3f95f3,_0x43da6e,_0x2b843a]){if(_0x337ee2!==void 0x0&&typeof _0x337ee2!==_0x492275(0x1b6))return null;}return{'bundleId':_0x34912b,'label':_0x7005cc,'dirty':_0x3282c3,'createdAt':_0x1bae2a,'webVersion':_0xaa7cf2,...typeof _0x3f95f3===_0x492275(0x1b6)?{'branch':_0x3f95f3}:{},...typeof _0x43da6e===_0x492275(_0x32b38e._0x3cf167)?{'sha':_0x43da6e}:{},...typeof _0x2b843a==='string'?{'author':_0x2b843a}:{}};}__name(parseBundle,_0xef7a9b(0x152));function parseWorkspaceFile(_0x3ae8fe){const _0x4602ae={_0x121f21:0x1b6,_0x2aaeab:0x2ed,_0x2f9b19:0x1b6,_0x5ee370:0x2ed},_0xa7c43c=_0xef7a9b;if(!isRecord(_0x3ae8fe))return null;if(_0x3ae8fe[_0xa7c43c(0x17d)]!==WORKSPACE_SCHEMA_VERSION)return null;const {workspace:_0xc7b614,environment:_0x36a447,allowSwitch:_0x26d78d,currentBundleId:_0x312beb,switchedBy:_0x15f2f5,switchedAt:_0x30505f,bundles:_0x5393cb,variables:_0x22cb67,secrets:_0xa03bee,switchPath:_0x572d9e}=_0x3ae8fe;if(typeof _0xc7b614!==_0xa7c43c(_0x4602ae._0x121f21)||typeof _0x36a447!=='string')return null;if(typeof _0x26d78d!==_0xa7c43c(0x2e4))return null;if(!Array['isArray'](_0x5393cb))return null;const _0xb3c891=[];for(const _0x12169d of _0x5393cb){const _0x2f7fea=parseBundle(_0x12169d);if(!_0x2f7fea)return null;_0xb3c891[_0xa7c43c(0x2d6)](_0x2f7fea);}const _0x59370=stringList(_0x22cb67),_0xbc7256=stringList(_0xa03bee);if(!_0x59370||!_0xbc7256)return null;for(const _0x3fb9f0 of[_0x312beb,_0x15f2f5,_0x572d9e]){if(_0x3fb9f0!==void 0x0&&typeof _0x3fb9f0!==_0xa7c43c(0x1b6))return null;}if(_0x30505f!==void 0x0&&typeof _0x30505f!==_0xa7c43c(_0x4602ae._0x2aaeab))return null;return{'schemaVersion':WORKSPACE_SCHEMA_VERSION,'workspace':_0xc7b614,'environment':_0x36a447,'allowSwitch':_0x26d78d,'bundles':_0xb3c891,'variables':_0x59370,'secrets':_0xbc7256,...typeof _0x312beb===_0xa7c43c(_0x4602ae._0x2f9b19)?{'currentBundleId':_0x312beb}:{},...typeof _0x15f2f5===_0xa7c43c(_0x4602ae._0x2f9b19)?{'switchedBy':_0x15f2f5}:{},...typeof _0x30505f===_0xa7c43c(_0x4602ae._0x5ee370)?{'switchedAt':_0x30505f}:{},...typeof _0x572d9e===_0xa7c43c(0x1b6)?{'switchPath':_0x572d9e}:{}};}__name(parseWorkspaceFile,'parseWorkspaceFile');function scheduleTarget(_0x3f2f15){const _0x35bd21=_0xef7a9b;return _0x3f2f15['collection']!==void 0x0?{'kind':_0x35bd21(0x30a),'name':_0x3f2f15['collection']}:{'kind':_0x35bd21(0x28f),'name':_0x3f2f15[_0x35bd21(0x28f)]};}__name(scheduleTarget,'scheduleTarget');function parseScheduleEntry(_0x51fdda){const _0x40e732={_0x23c0c2:0x1b6,_0x39eb82:0x30a,_0x2fdf48:0x2fd},_0x4735b1=_0xef7a9b;if(!isRecord(_0x51fdda))return null;const {collection:_0x3d2804,scenario:_0x5b9246,cron:_0x15534e,env:_0x182b44,prepare:_0x6e0a7d,workers:_0x442f26,source:_0x5f0872}=_0x51fdda,_0x29437a=typeof _0x3d2804===_0x4735b1(_0x40e732._0x23c0c2)&&_0x3d2804[_0x4735b1(0x22f)]>0x0?_0x5b9246===void 0x0?{'collection':_0x3d2804}:null:typeof _0x5b9246===_0x4735b1(_0x40e732._0x23c0c2)&&_0x5b9246[_0x4735b1(0x22f)]>0x0&&_0x3d2804===void 0x0?{'scenario':_0x5b9246}:null;if(_0x29437a===null)return null;if(typeof _0x15534e!==_0x4735b1(0x1b6)||_0x15534e['trim']()[_0x4735b1(0x22f)]===0x0)return null;if(_0x182b44!==void 0x0&&typeof _0x182b44!==_0x4735b1(_0x40e732._0x23c0c2))return null;if(_0x6e0a7d!==void 0x0&&typeof _0x6e0a7d!=='string')return null;const _0x5ebca2=_0x4735b1(_0x40e732._0x39eb82)in _0x29437a&&typeof _0x442f26===_0x4735b1(0x2ed)&&Number[_0x4735b1(_0x40e732._0x2fdf48)](_0x442f26)&&_0x442f26>=0x1?_0x442f26:void 0x0,_0x6d06a3=_0x5f0872==='config'||_0x5f0872===_0x4735b1(0x1ea)?_0x5f0872:void 0x0;return{..._0x29437a,'cron':_0x15534e,..._0x182b44!==void 0x0?{'env':_0x182b44}:{},..._0x6e0a7d!==void 0x0?{'prepare':_0x6e0a7d}:{},..._0x5ebca2!==void 0x0?{'workers':_0x5ebca2}:{},..._0x6d06a3!==void 0x0?{'source':_0x6d06a3}:{}};}__name(parseScheduleEntry,_0xef7a9b(0x174));function parseSchedulesDoc(_0x435f48){const _0x280b8c={_0x1875f8:0x298,_0x330240:0x20e,_0x5b0108:0x1ec,_0x358c95:0x277,_0xaf04d9:0x2ba,_0x33b1eb:0x2d6},_0x1dacc=_0xef7a9b;if(_0x435f48===null||_0x435f48===void 0x0)return{'entries':[]};if(!isRecord(_0x435f48))return{'error':_0x1dacc(0x2d1)};const _0x4fa971=_0x435f48[_0x1dacc(0x214)]??[];if(!Array[_0x1dacc(0x204)](_0x4fa971))return{'error':_0x1dacc(0x2a1)};const _0x5967b8=[],_0x17f79b=new Set();for(const [_0x9b8653,_0x14c314]of _0x4fa971['entries']()){const _0x12897a=parseScheduleEntry(_0x14c314);if(!_0x12897a)return{'error':_0x1dacc(_0x280b8c._0x1875f8)+_0x9b8653+_0x1dacc(_0x280b8c._0x330240)};const _0x47d5c2=scheduleTarget(_0x12897a),_0x3da26a=_0x47d5c2[_0x1dacc(0x277)]+':'+_0x47d5c2['name'];if(_0x17f79b['has'](_0x3da26a))return{'error':'schedules['+_0x9b8653+_0x1dacc(_0x280b8c._0x5b0108)+_0x47d5c2[_0x1dacc(_0x280b8c._0x358c95)]+'\x20\x22'+_0x47d5c2[_0x1dacc(_0x280b8c._0xaf04d9)]+_0x1dacc(0x21f)};_0x17f79b[_0x1dacc(0x226)](_0x3da26a),_0x5967b8[_0x1dacc(_0x280b8c._0x33b1eb)](_0x12897a);}return{'entries':_0x5967b8};}__name(parseSchedulesDoc,_0xef7a9b(0x20c));function mergeSchedules(_0x2dd57e,_0xa311d1){const _0x736b80={_0xf98924:0x2f4,_0x2656eb:0x2f4},_0x2b8c90={_0x3d35c2:0x2ba},_0x2b5f13=_0xef7a9b,_0x5cb768=new Set(_0xa311d1[_0x2b5f13(_0x736b80._0xf98924)](_0x23f966=>{const _0x11c152=_0x2b5f13,_0x46e7ab=scheduleTarget(_0x23f966);return _0x46e7ab[_0x11c152(0x277)]+':'+_0x46e7ab[_0x11c152(0x2ba)];})),_0xe4b211=_0x2dd57e['filter'](_0x561de8=>{const _0x47a4f8=_0x2b5f13,_0x43750d=scheduleTarget(_0x561de8);return!_0x5cb768['has'](_0x43750d['kind']+':'+_0x43750d[_0x47a4f8(_0x2b8c90._0x3d35c2)]);});return[..._0xe4b211[_0x2b5f13(_0x736b80._0xf98924)](_0x4f0990=>({..._0x4f0990,'source':_0x2b5f13(0x207)})),..._0xa311d1[_0x2b5f13(_0x736b80._0x2656eb)](_0x5ab3a1=>({..._0x5ab3a1,'source':_0x2b5f13(0x1ea)}))];}__name(mergeSchedules,_0xef7a9b(0x1e7));function canonicalScheduleSet(_0x4df92a){const _0x3607d2={_0x4600e4:0x1d9},_0x180cc={_0x231daf:0x277,_0x22d505:0x2ba},_0x16ad5c={_0x365ef5:0x277,_0x41d1f9:0x16a},_0x27e4a5=_0xef7a9b,_0xa1cb37=_0x4df92a['map'](_0x1e4fad=>{const _0x58fb4f=_0xed3b,_0x444b9a=scheduleTarget(_0x1e4fad);return{'kind':_0x444b9a[_0x58fb4f(_0x16ad5c._0x365ef5)],'name':_0x444b9a[_0x58fb4f(0x2ba)],'cron':_0x1e4fad['cron'],..._0x1e4fad[_0x58fb4f(_0x16ad5c._0x41d1f9)]!==void 0x0?{'env':_0x1e4fad[_0x58fb4f(_0x16ad5c._0x41d1f9)]}:{},..._0x1e4fad['prepare']!==void 0x0?{'prepare':_0x1e4fad[_0x58fb4f(0x23c)]}:{},..._0x1e4fad[_0x58fb4f(0x1be)]!==void 0x0?{'workers':_0x1e4fad[_0x58fb4f(0x1be)]}:{}};})[_0x27e4a5(_0x3607d2._0x4600e4)]((_0x1424db,_0x5214ed)=>{const _0x4aadfb=_0x27e4a5,_0x352fee=_0x1424db[_0x4aadfb(_0x180cc._0x231daf)]+':'+_0x1424db[_0x4aadfb(0x2ba)],_0x527558=_0x5214ed[_0x4aadfb(_0x180cc._0x231daf)]+':'+_0x5214ed[_0x4aadfb(_0x180cc._0x22d505)];return _0x352fee<_0x527558?-0x1:_0x352fee>_0x527558?0x1:0x0;});return JSON[_0x27e4a5(0x2d4)](_0xa1cb37);}__name(canonicalScheduleSet,'canonicalScheduleSet');function parseSchedulesJson(_0x2fca11){const _0x4c3749={_0x4c184d:0x204,_0x37765c:0x2d6},_0x4174df=_0xef7a9b;let _0x3243f4;try{_0x3243f4=JSON['parse'](_0x2fca11);}catch{return null;}if(!Array[_0x4174df(_0x4c3749._0x4c184d)](_0x3243f4))return null;const _0x28a7a3=[];for(const _0x20d96f of _0x3243f4){const _0x6f3fba=parseScheduleEntry(_0x20d96f);if(_0x6f3fba)_0x28a7a3[_0x4174df(_0x4c3749._0x37765c)](_0x6f3fba);}return _0x28a7a3;}__name(parseSchedulesJson,_0xef7a9b(0x1c1));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(_0x464448){const _0xc1cbb7={_0x50a771:0x216,_0x4b2de9:0x273,_0x44fbf3:0x2a5,_0x52a4b9:0x1a0},_0x554713=_0xef7a9b,_0xada888=list(_0x464448[_0x554713(0x22a)]);switch(_0x464448[_0x554713(0x1fc)]){case'm5':return'*/5\x20*\x20*\x20*\x20*';case _0x554713(_0xc1cbb7._0x50a771):return _0x554713(_0xc1cbb7._0x4b2de9);case'h1':return _0xada888+_0x554713(0x217);case'h2':case'h4':case'h6':case'h12':return _0xada888+_0x554713(0x18d)+HOUR_STEP[_0x464448['freq']]+_0x554713(_0xc1cbb7._0x44fbf3);case'daily':return _0xada888+'\x20'+list(_0x464448[_0x554713(0x1a0)])+'\x20*\x20*\x20*';case'weekly':return _0xada888+'\x20'+list(_0x464448[_0x554713(_0xc1cbb7._0x52a4b9)])+'\x20*\x20*\x20'+list(_0x464448['days']);}}__name(cronFromSpec,_0xef7a9b(0x237));function specFromCron(_0x40e3f9){const _0x41cb55={_0x30658f:0x2a0,_0x59e0cd:0x216,_0x4648f0:0x1a2},_0x1671e4=_0xef7a9b,_0x651c52=_0x40e3f9[_0x1671e4(_0x41cb55._0x30658f)]()[_0x1671e4(0x1ff)](/\s+/);if(_0x651c52[_0x1671e4(0x22f)]!==0x5)return null;const [_0x3a4a92,_0x1dd1b7,_0x524d7d,_0x53beef,_0x14f925]=_0x651c52;if(_0x524d7d!=='*'||_0x53beef!=='*')return null;if(_0x1dd1b7==='*'&&_0x14f925==='*'){if(_0x3a4a92==='*/5')return spec('m5');if(_0x3a4a92===_0x1671e4(0x1c2))return spec(_0x1671e4(_0x41cb55._0x59e0cd));const _0x4a894b=numbers(_0x3a4a92);return _0x4a894b&&spec('h1',_0x4a894b);}const _0x36aee2=numbers(_0x3a4a92);if(!_0x36aee2)return null;const _0x397d98=/^\*\/(\d+)$/[_0x1671e4(0x2fa)](_0x1dd1b7);if(_0x397d98&&_0x14f925==='*'){const _0x41ba82=Object[_0x1671e4(0x206)](HOUR_STEP)[_0x1671e4(0x27f)](_0x496409=>HOUR_STEP[_0x496409]===Number(_0x397d98[0x1]));return _0x41ba82?spec(_0x41ba82,_0x36aee2):null;}const _0x151b06=numbers(_0x1dd1b7);if(!_0x151b06)return null;if(_0x14f925==='*')return spec(_0x1671e4(_0x41cb55._0x4648f0),_0x36aee2,_0x151b06);const _0x109f20=numbers(_0x14f925);return _0x109f20&&spec(_0x1671e4(0x2ce),_0x36aee2,_0x151b06,_0x109f20);}__name(specFromCron,_0xef7a9b(0x292));function describeCron(_0x504279){const _0x4a7147=specFromCron(_0x504279);return _0x4a7147?describeSpec(_0x4a7147):_0x504279;}__name(describeCron,_0xef7a9b(0x254));function describeSpec(_0x14ee87){const _0x256c5f={_0x5ed187:0x1fc,_0xcd437f:0x1d1,_0x11fdcd:0x1b9,_0x179620:0x243,_0x39f03c:0x1a2,_0x5b1bf1:0x2ce,_0x14e98b:0x231},_0x585c3a=_0xef7a9b;switch(_0x14ee87[_0x585c3a(_0x256c5f._0x5ed187)]){case'm5':return _0x585c3a(0x1f6);case _0x585c3a(0x216):return _0x585c3a(_0x256c5f._0xcd437f);case'h1':return'hourly'+atMinutes(_0x14ee87[_0x585c3a(0x22a)]);case'h2':case'h4':case'h6':case _0x585c3a(_0x256c5f._0x11fdcd):return _0x585c3a(_0x256c5f._0x179620)+HOUR_STEP[_0x14ee87[_0x585c3a(0x1fc)]]+'h'+atMinutes(_0x14ee87[_0x585c3a(0x22a)]);case _0x585c3a(_0x256c5f._0x39f03c):return _0x585c3a(0x182)+times(_0x14ee87);case _0x585c3a(_0x256c5f._0x5b1bf1):return _0x14ee87['days'][_0x585c3a(0x2f4)](_0xa95831=>DAY_SHORT[_0xa95831]??String(_0xa95831))[_0x585c3a(_0x256c5f._0x14e98b)](',\x20')+_0x585c3a(0x2bf)+times(_0x14ee87);}}__name(describeSpec,_0xef7a9b(0x15b));function nextTickFromSpec(_0x18226b,_0x57418c){const _0x4fdda9={_0x4b6b76:0x157,_0x55a546:0x239},_0x1b8de2=_0xef7a9b,_0x3afffe=new Date(_0x57418c);_0x3afffe[_0x1b8de2(_0x4fdda9._0x4b6b76)](0x0,0x0);for(let _0x29b4cd=0x0;_0x29b4cd<0x8*0x18*0x3c;_0x29b4cd++){_0x3afffe[_0x1b8de2(_0x4fdda9._0x55a546)](_0x3afffe[_0x1b8de2(0x290)]()+0x1);if(specMatches(_0x18226b,_0x3afffe))return _0x3afffe[_0x1b8de2(0x289)]();}return _0x3afffe[_0x1b8de2(0x289)]();}__name(nextTickFromSpec,_0xef7a9b(0x17f));function specMatches(_0x16a93,_0x4d89cd){const _0x3e5abd={_0x333898:0x290,_0x29f1ba:0x1c7,_0x35f0ab:0x1fc,_0x2061cf:0x216,_0x284a15:0x201,_0x2548fa:0x1a2,_0x161aec:0x201,_0x39c93d:0x1a0,_0x4a9172:0x201,_0x286b25:0x1a0,_0x35767f:0x201,_0x152d5e:0x311},_0x4b02ba=_0xef7a9b,_0xacc5fd=_0x4d89cd[_0x4b02ba(_0x3e5abd._0x333898)](),_0x5b985e=_0x4d89cd[_0x4b02ba(_0x3e5abd._0x29f1ba)]();switch(_0x16a93[_0x4b02ba(_0x3e5abd._0x35f0ab)]){case'm5':return _0xacc5fd%0x5===0x0;case _0x4b02ba(_0x3e5abd._0x2061cf):return _0xacc5fd%0xf===0x0;case'h1':return _0x16a93['minutes'][_0x4b02ba(_0x3e5abd._0x284a15)](_0xacc5fd);case'h2':case'h4':case'h6':case'h12':return _0x16a93[_0x4b02ba(0x22a)]['includes'](_0xacc5fd)&&_0x5b985e%(HOUR_STEP[_0x16a93[_0x4b02ba(0x1fc)]]??0x1)===0x0;case _0x4b02ba(_0x3e5abd._0x2548fa):return _0x16a93['minutes'][_0x4b02ba(_0x3e5abd._0x161aec)](_0xacc5fd)&&_0x16a93[_0x4b02ba(_0x3e5abd._0x39c93d)]['includes'](_0x5b985e);case _0x4b02ba(0x2ce):return _0x16a93[_0x4b02ba(0x22a)][_0x4b02ba(_0x3e5abd._0x4a9172)](_0xacc5fd)&&_0x16a93[_0x4b02ba(_0x3e5abd._0x286b25)]['includes'](_0x5b985e)&&_0x16a93[_0x4b02ba(0x252)][_0x4b02ba(_0x3e5abd._0x35767f)](_0x4d89cd[_0x4b02ba(_0x3e5abd._0x152d5e)]());}}__name(specMatches,_0xef7a9b(0x245));function formatNextTick(_0x48d018,_0x4b7c03){const _0x168e1f={_0x2e12aa:0x21b,_0xb1b0a4:0x156},_0x1bc6ea=_0xef7a9b,_0x1d07ba=new Date(_0x48d018),_0x29ba5a=new Date(_0x4b7c03),_0x57078c=pad(_0x1d07ba['getHours']())+':'+pad(_0x1d07ba[_0x1bc6ea(0x290)]()),_0x352fd4=Math[_0x1bc6ea(_0x168e1f._0x2e12aa)]((startOfDay(_0x1d07ba)-startOfDay(_0x29ba5a))/(0x18*0x3c*0x3c*0x3e8));if(_0x352fd4===0x0)return _0x1bc6ea(_0x168e1f._0xb1b0a4)+_0x57078c;if(_0x352fd4===0x1)return _0x1bc6ea(0x309)+_0x57078c;return DAY_SHORT[_0x1d07ba[_0x1bc6ea(0x311)]()]+'\x20'+_0x57078c;}__name(formatNextTick,_0xef7a9b(0x1c8));function startOfDay(_0x53adfa){const _0x5b18d8=_0xef7a9b,_0x212062=new Date(_0x53adfa);return _0x212062['setHours'](0x0,0x0,0x0,0x0),_0x212062[_0x5b18d8(0x289)]();}__name(startOfDay,_0xef7a9b(0x27e));var DAY_SHORT=[_0xef7a9b(0x2cd),_0xef7a9b(0x25c),_0xef7a9b(0x1e6),'Wed',_0xef7a9b(0x2f9),'Fri',_0xef7a9b(0x1b8)],WEEK_CHIP_ORDER=[0x1,0x2,0x3,0x4,0x5,0x6,0x0];function spec(_0x497012,_0x54d6b9=[0x0],_0xb60412=[0x3],_0x3d18ce=[0x1]){return{'freq':_0x497012,'minutes':_0x54d6b9,'hours':_0xb60412,'days':_0x3d18ce};}__name(spec,'spec');function list(_0x3fa927){const _0x2940ff=_0xef7a9b;return[..._0x3fa927][_0x2940ff(0x1d9)]((_0x5e7aef,_0x258a7f)=>_0x5e7aef-_0x258a7f)[_0x2940ff(0x231)](',');}__name(list,'list');function numbers(_0x10fe0b){const _0x6dc635=_0xef7a9b;if(!/^\d+(,\d+)*$/['test'](_0x10fe0b))return null;return _0x10fe0b[_0x6dc635(0x1ff)](',')[_0x6dc635(0x2f4)](Number);}__name(numbers,_0xef7a9b(0x2b5));var pad=__name(_0x20dc90=>String(_0x20dc90)[_0xef7a9b(0x213)](0x2,'0'),_0xef7a9b(0x274));function atMinutes(_0x383a26){const _0x2c3de5={_0x53811e:0x22f,_0x3fa16c:0x1d9},_0xd28cc5=_0xef7a9b;if(_0x383a26[_0xd28cc5(_0x2c3de5._0x53811e)]===0x1&&_0x383a26[0x0]===0x0)return'';return'\x20at\x20'+[..._0x383a26][_0xd28cc5(_0x2c3de5._0x3fa16c)]((_0x564119,_0x2a03de)=>_0x564119-_0x2a03de)['map'](_0x1e080a=>':'+pad(_0x1e080a))['join'](',\x20');}function _0xed3b(_0x1af890,_0x2f9081){_0x1af890=_0x1af890-0x148;const _0x39d6d4=_0x39d6();let _0xed3bc2=_0x39d6d4[_0x1af890];if(_0xed3b['mIiHCo']===undefined){var _0x3aba4d=function(_0x45dba7){const _0x29d22c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xb163f1='',_0x26ac10='';for(let _0xd6c1d=0x0,_0x3e5e3e,_0x3428bc,_0xc090cb=0x0;_0x3428bc=_0x45dba7['charAt'](_0xc090cb++);~_0x3428bc&&(_0x3e5e3e=_0xd6c1d%0x4?_0x3e5e3e*0x40+_0x3428bc:_0x3428bc,_0xd6c1d++%0x4)?_0xb163f1+=String['fromCharCode'](0xff&_0x3e5e3e>>(-0x2*_0xd6c1d&0x6)):0x0){_0x3428bc=_0x29d22c['indexOf'](_0x3428bc);}for(let _0x4cb2d2=0x0,_0x3fd9d5=_0xb163f1['length'];_0x4cb2d2<_0x3fd9d5;_0x4cb2d2++){_0x26ac10+='%'+('00'+_0xb163f1['charCodeAt'](_0x4cb2d2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x26ac10);};_0xed3b['JJrBnm']=_0x3aba4d,_0xed3b['TxGPKD']={},_0xed3b['mIiHCo']=!![];}const _0x142031=_0x39d6d4[0x0],_0x3757de=_0x1af890+_0x142031,_0x453141=_0xed3b['TxGPKD'][_0x3757de];return!_0x453141?(_0xed3bc2=_0xed3b['JJrBnm'](_0xed3bc2),_0xed3b['TxGPKD'][_0x3757de]=_0xed3bc2):_0xed3bc2=_0x453141,_0xed3bc2;}__name(atMinutes,_0xef7a9b(0x255));function times(_0x3b0c01){const _0x3fa3c8={_0x3acc96:0x1a0,_0x33e4a4:0x1d9,_0x2dcadc:0x230,_0x1dffec:0x22f,_0xe793b:0x231},_0x26e8fb=_0xef7a9b,_0x1748b8=[..._0x3b0c01[_0x26e8fb(_0x3fa3c8._0x3acc96)]][_0x26e8fb(_0x3fa3c8._0x33e4a4)]((_0x1127ff,_0xe1c1e1)=>_0x1127ff-_0xe1c1e1)[_0x26e8fb(_0x3fa3c8._0x2dcadc)](_0x4c8643=>[..._0x3b0c01['minutes']][_0x26e8fb(0x1d9)]((_0x103b02,_0x14c089)=>_0x103b02-_0x14c089)['map'](_0xa5b965=>pad(_0x4c8643)+':'+pad(_0xa5b965))),_0x112854=_0x1748b8[_0x26e8fb(0x29a)](0x0,0x4),_0x589b6a=_0x1748b8[_0x26e8fb(_0x3fa3c8._0x1dffec)]-_0x112854['length'];return _0x112854[_0x26e8fb(_0x3fa3c8._0xe793b)](',\x20')+(_0x589b6a>0x0?'\x20+'+_0x589b6a:'');}__name(times,_0xef7a9b(0x272));var BLOBS_DIR=_0xef7a9b(0x2f1),GENERATION_SEP='~',HASH_RE=/^[0-9a-f]{8,}$/,InvalidBlobHashError=class extends Error{static{__name(this,_0xef7a9b(0x1e2));}constructor(_0x35ff10){const _0x5e7cb7={_0x233039:0x1d6,_0x218b68:0x1e2},_0x1aa6ae=_0xef7a9b;super(_0x1aa6ae(_0x5e7cb7._0x233039)+_0x35ff10),this['name']=_0x1aa6ae(_0x5e7cb7._0x218b68);}};function blobPathFor(_0x2c25dc,_0x4683ff,_0x1a8a16,_0x28d03d=0x0){return _0x2c25dc+'/'+blobRelPathFor(_0x4683ff,_0x1a8a16,_0x28d03d);}__name(blobPathFor,'blobPathFor');function blobRelSegmentsFor(_0x43cf98,_0x58e170,_0x51ff2f=0x0){const _0x5f2ceb=_0xef7a9b;if(!HASH_RE[_0x5f2ceb(0x234)](_0x43cf98))throw new InvalidBlobHashError(_0x43cf98);const _0x513853=_0x51ff2f>0x0?''+GENERATION_SEP+_0x51ff2f:'';return[BLOBS_DIR,_0x43cf98[_0x5f2ceb(0x29a)](0x0,0x2),_0x43cf98[_0x5f2ceb(0x29a)](0x2,0x4),''+_0x43cf98+_0x513853+'.'+_0x58e170];}__name(blobRelSegmentsFor,'blobRelSegmentsFor');function blobRelPathFor(_0x590ec2,_0x2c4c2b,_0x462566=0x0){const _0x3dc190={_0xa865ea:0x231},_0x2d1bcd=_0xef7a9b;return blobRelSegmentsFor(_0x590ec2,_0x2c4c2b,_0x462566)[_0x2d1bcd(_0x3dc190._0xa865ea)]('/');}__name(blobRelPathFor,_0xef7a9b(0x189));function blobsRootFor(_0x204491){return _0x204491+'/'+BLOBS_DIR;}__name(blobsRootFor,_0xef7a9b(0x1d0));var FS_UNSAFE_NAME_RE=/[\\/:*?"<>|\x00-\x1f]/;function validateFsSafeName(_0x24e4ea,_0x5d327d){const _0x31a183={_0x20c945:0x1b6,_0x48dddb:0x22f,_0x2fc769:0x27a,_0x43a31a:0x307,_0x3ca645:0x234,_0x3fc7c7:0x23a},_0x2a3b9f=_0xef7a9b;if(typeof _0x24e4ea!==_0x2a3b9f(_0x31a183._0x20c945))return _0x2a3b9f(0x2bb);const _0xc542e6=_0x24e4ea[_0x2a3b9f(0x2a0)]();if(_0xc542e6[_0x2a3b9f(_0x31a183._0x48dddb)]===0x0)return'must\x20not\x20be\x20empty';if(_0xc542e6==='.'||_0xc542e6==='..')return _0x2a3b9f(0x221);if(_0xc542e6[_0x2a3b9f(0x251)]('.'))return _0x2a3b9f(_0x31a183._0x2fc769);if(_0x5d327d?.[_0x2a3b9f(_0x31a183._0x43a31a)]&&_0xc542e6['startsWith']('_'))return'must\x20not\x20start\x20with\x20\x27_\x27\x20(reserved)';if(FS_UNSAFE_NAME_RE[_0x2a3b9f(_0x31a183._0x3ca645)](_0xc542e6))return _0x2a3b9f(_0x31a183._0x3fc7c7);return null;}__name(validateFsSafeName,'validateFsSafeName');var COLLECTION_NAME_FORBIDDEN_RE=FS_UNSAFE_NAME_RE;function validateCollectionName(_0x2075b3){return validateFsSafeName(_0x2075b3);}__name(validateCollectionName,_0xef7a9b(0x278));var RUN_MANIFEST_FILE=_0xef7a9b(0x181),RUN_TRIGGER_ENV=_0xef7a9b(0x269),RUN_ACTOR_ENV=_0xef7a9b(0x1d5),TRIGGER_KINDS=['schedule','ci',_0xef7a9b(0x1c0),_0xef7a9b(0x18b)];function runTriggerFromEnv(_0x36de02){const _0x1c1a54=_0xef7a9b,_0x483f0a=_0x36de02[RUN_TRIGGER_ENV]?.[_0x1c1a54(0x2a0)]();if(!_0x483f0a||!TRIGGER_KINDS['includes'](_0x483f0a))return void 0x0;const _0xefafb5=_0x36de02[RUN_ACTOR_ENV]?.[_0x1c1a54(0x2a0)]();return{'kind':_0x483f0a,..._0xefafb5?{'by':_0xefafb5}:{}};}__name(runTriggerFromEnv,_0xef7a9b(0x19c));function runTriggerEnv(_0x398163){const _0x5f2f25={_0x1d8266:0x277},_0x590a77=_0xef7a9b;return{[RUN_TRIGGER_ENV]:_0x398163[_0x590a77(_0x5f2f25._0x1d8266)],..._0x398163['by']!==void 0x0?{[RUN_ACTOR_ENV]:_0x398163['by']}:{}};}__name(runTriggerEnv,'runTriggerEnv');function manifestTrigger(_0x550031){const _0x3dca0d={_0x26a7d1:0x247},_0x3201d5=_0xef7a9b;return _0x550031[_0x3201d5(_0x3dca0d._0x26a7d1)]??{'kind':_0x3201d5(0x18b)};}__name(manifestTrigger,'manifestTrigger');var RUN_SOURCES_FILE='sources.json',UnsupportedRunKindError=class extends Error{static{__name(this,_0xef7a9b(0x1ed));}constructor(_0x15e432,_0x170700){const _0x32df89={_0xbb16a1:0x1d3,_0x2ae507:0x2ba},_0x3b3b8b=_0xef7a9b;super('runner\x20\x22'+_0x170700+_0x3b3b8b(_0x32df89._0xbb16a1)+_0x15e432+'\x22'),this[_0x3b3b8b(_0x32df89._0x2ae507)]=_0x3b3b8b(0x1ed);}},RunnerAdapterNotFoundError=class extends Error{static{__name(this,_0xef7a9b(0x19f));}constructor(_0x292d52,_0x271867){const _0x26ddd2={_0xe7bf30:0x2ba,_0xff72ec:0x19f},_0x54a019=_0xef7a9b;super('cannot\x20load\x20runner\x20adapter\x20\x22'+_0x292d52+_0x54a019(0x1ef)+_0x271867),this[_0x54a019(_0x26ddd2._0xe7bf30)]=_0x54a019(_0x26ddd2._0xff72ec);}},RunnerNotConfiguredError=class extends Error{static{__name(this,_0xef7a9b(0x202));}constructor(_0x2c99d5){const _0x50afe3=_0xef7a9b;super(_0x2c99d5),this['name']=_0x50afe3(0x202);}},EXPECT_FAIL_ANNOTATION=_0xef7a9b(0x197),ANNOTATION_RE=/^\s*\/\/\s*@([a-z0-9-]+)\s*$/;function isAnnotationLine(_0x2330f0){const _0x346709=_0xef7a9b;return ANNOTATION_RE[_0x346709(0x234)](_0x2330f0);}__name(isAnnotationLine,_0xef7a9b(0x30f));function parseScenarioAnnotations(_0x1ae333){const _0x2aa76e={_0x4050f4:0x2a0,_0x2b6aea:0x251,_0x1395e7:0x172},_0x47840d=_0xef7a9b,_0x4626ae=new Set();for(const _0x34b409 of _0x1ae333['split'](/\r?\n/)){const _0x1eeb40=_0x34b409[_0x47840d(_0x2aa76e._0x4050f4)]();if(_0x1eeb40==='')continue;if(!_0x1eeb40[_0x47840d(_0x2aa76e._0x2b6aea)]('//'))break;const _0x2ce49c=_0x1eeb40[_0x47840d(_0x2aa76e._0x1395e7)](ANNOTATION_RE);if(_0x2ce49c)_0x4626ae[_0x47840d(0x226)](_0x2ce49c[0x1]);}return{'expectFail':_0x4626ae['has'](EXPECT_FAIL_ANNOTATION)};}__name(parseScenarioAnnotations,'parseScenarioAnnotations');var SEGMENT_NAME_FORBIDDEN_RE=FS_UNSAFE_NAME_RE;function validateSegmentName(_0x3293a8){return validateFsSafeName(_0x3293a8,{'reservedUnderscore':!![]});}__name(validateSegmentName,'validateSegmentName');var TERMINAL_WS_EVENT=_0xef7a9b(0x2f5),RUNNER_CONFIG_KEYS=new Set([_0xef7a9b(0x208),_0xef7a9b(0x184),_0xef7a9b(0x22e),_0xef7a9b(0x1db),_0xef7a9b(0x25e),_0xef7a9b(0x2b1),_0xef7a9b(0x1af),_0xef7a9b(0x2d3),_0xef7a9b(0x2e7),_0xef7a9b(0x306),_0xef7a9b(0x27d),_0xef7a9b(0x26f),'UNOTEST_DEBUG_MAX_BYTES',_0xef7a9b(0x29d),_0xef7a9b(0x2c7),'UNOTEST_DEBUG_KEEP_CALLS','UNOTEST_NETWORK',_0xef7a9b(0x259),_0xef7a9b(0x2f6),_0xef7a9b(0x1fd),_0xef7a9b(0x23e),_0xef7a9b(0x2e5),_0xef7a9b(0x16c)]);function isRunnerConfigKey(_0x3665ae){const _0x17a0fe=_0xef7a9b;return RUNNER_CONFIG_KEYS[_0x17a0fe(0x1dc)](_0x3665ae);}__name(isRunnerConfigKey,_0xef7a9b(0x2c6));function categorizeVariable(_0x1c452c){const _0x2e4589={_0x958bc8:0x2d7,_0x31bafb:0x1ae,_0x9eaab4:0x2f7},_0x559577=_0xef7a9b;if(_0x1c452c[_0x559577(_0x2e4589._0x958bc8)]===_0x559577(0x1b7))return _0x559577(_0x2e4589._0x31bafb);return isRunnerConfigKey(_0x1c452c[_0x559577(0x2ba)])?_0x559577(0x266):_0x559577(_0x2e4589._0x9eaab4);}__name(categorizeVariable,_0xef7a9b(0x246));function isExternalVarName(_0x2b246f){const _0x378b2d={_0x5f26ae:0x234},_0x274a9a=_0xef7a9b;return/^[A-Z][A-Z0-9_]*$/[_0x274a9a(_0x378b2d._0x5f26ae)](_0x2b246f);}__name(isExternalVarName,_0xef7a9b(0x1f1));var SECTION_BY_KIND={'app':_0xef7a9b(0x25a),'runner':_0xef7a9b(0x1de),'secret':void 0x0};function planAddVariable(_0x544a51){const _0x1f5fe9={_0x5bc178:0x29c,_0x1d8b75:0x1dc,_0x299eef:0x1ae,_0x2dce01:0x1b7,_0x410228:0x16a,_0x26a134:0x219,_0x1c1d21:0x28b,_0x100311:0x2d6,_0x4c057b:0x2cf},_0x5240a9=_0xef7a9b,{name:_0x6a87a6,kind:_0x2e3283}=_0x544a51;if(_0x2e3283===_0x5240a9(0x266)){if(!isRunnerConfigKey(_0x6a87a6))return{'ok':![],'code':'unknown-runner-key','message':_0x6a87a6+_0x5240a9(0x1e0)};}else{if(!isExternalVarName(_0x6a87a6))return{'ok':![],'code':_0x5240a9(_0x1f5fe9._0x5bc178),'message':_0x6a87a6+'\x20must\x20be\x20UPPER_SNAKE\x20(e.g.\x20APP_BASE_URL)\x20so\x20a\x20scenario\x20can\x20reference\x20it\x20by\x20name.'};}const _0x51834b=envKeys(_0x544a51[_0x5240a9(0x286)])[_0x5240a9(_0x1f5fe9._0x1d8b75)](_0x6a87a6),_0x321b61=envKeys(_0x544a51[_0x5240a9(0x17e)])[_0x5240a9(0x1dc)](_0x6a87a6),_0x110d41=_0x2e3283===_0x5240a9(_0x1f5fe9._0x299eef)?_0x5240a9(_0x1f5fe9._0x2dce01):_0x5240a9(_0x1f5fe9._0x410228),_0x1876ec=_0x110d41==='secrets'?_0x321b61:_0x51834b,_0x566846=_0x110d41===_0x5240a9(0x1b7)?_0x5240a9(0x1c4):'unotest/.env';if(_0x1876ec)return{'ok':![],'code':_0x5240a9(_0x1f5fe9._0x26a134),'message':_0x6a87a6+_0x5240a9(0x18f)+_0x566846+_0x5240a9(_0x1f5fe9._0x1c1d21)};const _0x817db=[];return _0x2e3283===_0x5240a9(0x1ae)&&_0x51834b&&_0x817db[_0x5240a9(0x2d6)](_0x6a87a6+_0x5240a9(0x198)),_0x2e3283!==_0x5240a9(0x1ae)&&_0x321b61&&_0x817db[_0x5240a9(_0x1f5fe9._0x100311)](_0x6a87a6+_0x5240a9(_0x1f5fe9._0x4c057b)),{'ok':!![],'target':_0x110d41,'sectionLabel':SECTION_BY_KIND[_0x2e3283],'warnings':_0x817db};}__name(planAddVariable,_0xef7a9b(0x195));function deleteShadowWarning(_0xe72bfa,_0x863f1e,_0x5c3627){const _0x21678d={_0x47a7ec:0x16b},_0x333a63=_0xef7a9b;if(_0x5c3627!==void 0x0&&_0x5c3627!==_0x863f1e)return[_0xe72bfa+_0x333a63(_0x21678d._0x47a7ec)];return[];}__name(deleteShadowWarning,_0xef7a9b(0x2ee));var TERMINAL_RUNTIME_STATES=['completed',_0xef7a9b(0x242),_0xef7a9b(0x244)];function isTerminalRuntimeState(_0x555711){const _0x2b3743={_0x251a8a:0x201},_0x18ad55=_0xef7a9b;return TERMINAL_RUNTIME_STATES[_0x18ad55(_0x2b3743._0x251a8a)](_0x555711);}__name(isTerminalRuntimeState,'isTerminalRuntimeState');var JUDGE_ROUTES={'judge':_0xef7a9b(0x170),'health':_0xef7a9b(0x296)},JUDGE_ENV={'mode':_0xef7a9b(0x299),'url':_0xef7a9b(0x1f8),'token':_0xef7a9b(0x30e),'requestTimeoutMs':'UNOTEST_JUDGE_TIMEOUT_MS','preamble':'UNOTEST_JUDGE_PREAMBLE','provider':_0xef7a9b(0x16e),'model':_0xef7a9b(0x190),'callTimeoutMs':_0xef7a9b(0x1f7),'retries':_0xef7a9b(0x1a1),'vote':_0xef7a9b(0x148),'accessToken':_0xef7a9b(0x1f5),'claudeBin':'UNOTEST_JUDGE_CLAUDE_BIN','host':_0xef7a9b(0x249),'port':_0xef7a9b(0x253),'logLevel':_0xef7a9b(0x2fc),'skipPreflight':_0xef7a9b(0x2a3)};export{ACTOR_TICKET_HEADER,ARTIFACTS_ROOT_ENV,BLOBS_DIR,BOX_ENV_VALUES_SEGMENT,BOX_NOTIFY_CHANNEL_KINDS,BOX_NOTIFY_EVENTS,BOX_NOTIFY_PATH,BOX_NOTIFY_STATES,BOX_NOTIFY_TRIGGER_KINDS,BOX_READ_ENVIRONMENTS_PATH,BOX_READ_ENVIRONMENT_HEADER,BOX_READ_TOKEN_ENV,BOX_READ_TOKEN_PREFIX,BOX_REVEAL_SEGMENT,BOX_RUNS_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,GUARD_SECRET_HEADER,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_ACTOR_ENV,RUN_INDEX_SCHEMA_VERSION,RUN_MANIFEST_FILE,RUN_SOURCES_FILE,RUN_TRIGGER_ENV,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,boxNotifyChannelPath,boxNotifyMutePath,boxNotifyPreviewPath,boxNotifyPreviewTrigger,boxNotifyProjectPath,boxNotifyQuietHoursPath,boxNotifyRulePath,boxNotifySeriesPath,boxNotifySeriesResetPath,boxNotifyTestPath,boxRunPath,boxRunsPath,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,isBoxNotifyState,isEnvVarName,isExternalVarName,isFailingStatus,isQueueDirName,isRecord,isRegexLiteral,isRunnerConfigKey,isRunnerSetting,isRunsDirName,isTerminalRuntimeState,makeQueueTicketName,makeRunId,manifestTrigger,mergeSchedules,nextTickFromSpec,parseAppServerEvent,parseBoxEnvValuesReplaceRequest,parseBoxNotifyChanged,parseBoxNotifyError,parseBoxNotifyMuteScope,parseBoxNotifyPreview,parseBoxNotifyProjectView,parseBoxNotifySeriesView,parseBoxNotifyTestResult,parseBoxNotifyView,parseBoxReadEnvironments,parseBoxReadError,parseBoxRunAccepted,parseBoxRunRequest,parseBoxRunStatus,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,runTriggerEnv,runTriggerFromEnv,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.
|
|
3
|
+
"version": "0.33.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": {
|