@unotest/web 0.35.2 → 0.37.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 +136 -0
- package/dist/config/schema.d.ts +18 -18
- package/dist/config/schema.js +1 -1
- package/dist/driver/index.js +1 -1
- package/dist/dsl/index.js +1 -1
- package/dist/dsl/web-dsl-language-service.js +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/runner/cli.js +1 -1
- package/dist/runner/init/chrome-probe.js +1 -1
- package/dist/runner/init.js +1 -1
- package/dist/runner/install-chromium.js +1 -1
- package/dist/runner/prepare-fix.js +1 -1
- package/dist/runner/scaffold-workspace.js +1 -1
- package/dist/runner/serve-fixture.js +1 -1
- package/dist/runner/web-runner-adapter.js +1 -1
- package/guides/agent-integration.md +18 -0
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,141 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.37.0] - 2026-09-17
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 01fdbcb: `box picker` tells you to restart your editor
|
|
8
|
+
|
|
9
|
+
The grounder's keys are read when the MCP server starts, so turning the
|
|
10
|
+
Picker on under a running editor changed nothing until that editor
|
|
11
|
+
reconnected — and from where you stand that is indistinguishable from a
|
|
12
|
+
Picker that does not work. Either way the agent has nothing to ground an
|
|
13
|
+
intent with, and the only difference is a restart nobody mentioned.
|
|
14
|
+
|
|
15
|
+
`box picker on` now says it in a line of its own, and `box picker off` says
|
|
16
|
+
it too when it removed the keys: a server still running offers grounding
|
|
17
|
+
that the cloud has already withdrawn. The line appears only when the command
|
|
18
|
+
actually wrote or removed those keys — a box already in the state you asked
|
|
19
|
+
for, or a grounder of somebody else's that was left untouched, changes
|
|
20
|
+
nothing and so says nothing.
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- d80cf16: A box that only half came up is no longer called healthy.
|
|
25
|
+
|
|
26
|
+
After an update the box waits for its stack to settle before recording the release as applied. That wait only ever saw the containers docker was running, so a service that never started was not waited for at all — it could not be called unsettled, because it was not in the list. A box whose guard was stuck at `created` reported two services out of four settling, recorded the release, and served nothing; the same shape as a freshly rented box answering 502 to everything.
|
|
27
|
+
|
|
28
|
+
The wait now asks docker about every container rather than only the running ones, and counts what came back against what the project actually declares — a service the daemon never created is absent from any listing, so it can only be found by what is missing from the answer. What the project declares is asked of compose itself rather than read off a file: compose is what merges the override files and applies the profiles, so a service held back by a profile is not waited for, and the same answer says which services are one-shots — the ones another service waits on to complete. A finished one-shot still counts as settled; treating `box-init` as a service that fell over would have sent every box into a rollback on every tick.
|
|
29
|
+
|
|
30
|
+
- 3c634b6: The Picker's token is read from `unotest/.secrets`, where the command put it
|
|
31
|
+
|
|
32
|
+
`box picker on` writes the grounder's mode and address to `unotest/.env` and
|
|
33
|
+
its token to `unotest/.secrets` — and the values in `.secrets` are
|
|
34
|
+
deliberately kept out of the environment, so subprocesses and `shell()` do
|
|
35
|
+
not inherit them. The MCP server, however, looked for the token in the
|
|
36
|
+
environment alone. The command reported success, the `ground_element` tool
|
|
37
|
+
appeared, and the first intent was refused with a demand to set a variable
|
|
38
|
+
that the command had already set. The only workaround anyone could find was
|
|
39
|
+
to paste the token into the editor's MCP configuration, which commits a
|
|
40
|
+
credential to a file that is tracked.
|
|
41
|
+
|
|
42
|
+
Credentials our own commands write are now read back the way they were
|
|
43
|
+
written: the environment first (an `export`, a CI secret), then
|
|
44
|
+
`unotest/.secrets`, then `unotest/.env`. The box tokens already worked this
|
|
45
|
+
way and now share the one implementation with the Picker's.
|
|
46
|
+
|
|
47
|
+
When the token is missing everywhere, the refusal names every place that
|
|
48
|
+
was searched, the command that writes it, and the editor restart that makes
|
|
49
|
+
a running server pick it up.
|
|
50
|
+
|
|
51
|
+
The boot health check no longer disappears in that state either. Remote mode
|
|
52
|
+
with no token used to switch the check off entirely, which reads as "nothing
|
|
53
|
+
to report" — a Picker that could not ground looked exactly like a healthy
|
|
54
|
+
one until an agent called it. It now reports itself as not ok and says why.
|
|
55
|
+
|
|
56
|
+
- 51e47c6: Push tokens are scoped to the project your box actually serves
|
|
57
|
+
|
|
58
|
+
A box rented from the cabinet serves the projects you typed into the form —
|
|
59
|
+
`shop/prod`, say. The CLI, asking for a pair, used to send the BOX's name as
|
|
60
|
+
the project, because that is the only name it has. On a box created with
|
|
61
|
+
`box create` the two happen to match; on a box created in the cabinet they do
|
|
62
|
+
not, and every `bundle push` was refused with "this token is for a project
|
|
63
|
+
this box does not have" — a refusal with no command behind it, since nothing
|
|
64
|
+
told you which projects the box has.
|
|
65
|
+
|
|
66
|
+
The cloud now decides the scope, because it is the only side that knows what
|
|
67
|
+
a box serves. `box create`, `box access` and `box picker on` send no project
|
|
68
|
+
at all and get a pair scoped to the box's own. A box serving several projects
|
|
69
|
+
has no single right answer, so it refuses to invent one and names them
|
|
70
|
+
instead: `box access --project <name>` (new, and also on `box picker on`)
|
|
71
|
+
says which one the pair is for. Tokens minted before this release keep the
|
|
72
|
+
old scope until you run `box access` again — which is what the refusal now
|
|
73
|
+
tells you to do.
|
|
74
|
+
|
|
75
|
+
Two things say the names out loud, so a mismatch is yours to fix:
|
|
76
|
+
|
|
77
|
+
- `box status` lists the projects the box serves.
|
|
78
|
+
- A refused push names the project in your token, the projects on the box,
|
|
79
|
+
and the command that mints a matching pair. It no longer tells you your
|
|
80
|
+
repository maps to another project when your repository maps to nothing —
|
|
81
|
+
the two cases now print different advice, and the box says which is which.
|
|
82
|
+
|
|
83
|
+
- 4c2c744: A revoked box token is really revoked
|
|
84
|
+
|
|
85
|
+
Revoking a box's tokens — `box picker off`, `box destroy`, or a revocation
|
|
86
|
+
an operator issues — writes the cloud's revocation list first and applies it
|
|
87
|
+
in memory second. The list lived in the service's configuration directory,
|
|
88
|
+
which a hardened service mounts read-only, so the write failed, the list in
|
|
89
|
+
memory was never updated, and the signed document that boxes and the
|
|
90
|
+
grounder read never changed. The token went on working across the fleet
|
|
91
|
+
while the command reported success.
|
|
92
|
+
|
|
93
|
+
The list now lives beside the service's databases, in a directory the
|
|
94
|
+
service owns and may write to. It is state the service signs and rewrites
|
|
95
|
+
itself rather than operator configuration — the operator still signs and
|
|
96
|
+
places the first one.
|
|
97
|
+
|
|
98
|
+
- Updated dependencies [51e47c6]
|
|
99
|
+
- @unotest/protocol@0.37.0
|
|
100
|
+
- @unotest/viewer@0.37.0
|
|
101
|
+
- @unotest/core@0.37.0
|
|
102
|
+
- @unotest/dsl@0.37.0
|
|
103
|
+
- @unotest/grounder-client@0.37.0
|
|
104
|
+
|
|
105
|
+
## [0.36.0] - 2026-09-16
|
|
106
|
+
|
|
107
|
+
### Minor Changes
|
|
108
|
+
|
|
109
|
+
- 2ebdeba: A rented box now brings itself up, and a failed first update no longer takes it apart.
|
|
110
|
+
|
|
111
|
+
Two things a box could not do for itself:
|
|
112
|
+
|
|
113
|
+
- **Its `.env` was written where the box was ordered, not where it runs.** Two of the values the compose template needs belong to the machine — the path the docker daemon resolves the projects volume to, and the group that owns its socket — and neither exists when a box is ordered. They were left out, compose substituted empty strings, the run sidecar exited and every container that depends on it stayed created but never started. The box now fills both in itself, after docker is installed and before its stack is first brought up, and the project name compose runs under is written down rather than guessed from a directory name. What the template requires without a default is one list, checked against the template itself, and every writer of a box's `.env` is refused by name if it hands over an incomplete one.
|
|
114
|
+
- **A rollback could delete a box's only deployment.** Undoing an update removes the files that update introduced — correct when there is an earlier deployment behind it, destructive on a box that has never run one: the first failed update took the whole stack with it, leaving a machine with no configuration to bring up. A rollback with nothing to return to now leaves the files where they are. Either way, a box a rollback could not put back stops applying releases and says it needs an operator, instead of fetching, failing and rolling back the same release every hour.
|
|
115
|
+
|
|
116
|
+
- 3a0639a: `box status` answers for a box that never came up
|
|
117
|
+
|
|
118
|
+
A box the fleet could not build has no address, and the cloud said so by
|
|
119
|
+
sending `url: null`. The CLI reads that field as one that may be missing,
|
|
120
|
+
not as one that may be null, so the whole answer failed to parse: `box
|
|
121
|
+
status` showed neither the state of the box nor the reason it failed — in
|
|
122
|
+
the one case the command exists for.
|
|
123
|
+
|
|
124
|
+
The cloud now leaves out what it has no value for, by a single rule for the
|
|
125
|
+
whole answer rather than field by field. The CLI accepts `null` as well and
|
|
126
|
+
reads it as "no address", because it is published and meets clouds older
|
|
127
|
+
than itself. A box that failed now prints its state, the reason the fleet
|
|
128
|
+
gave, and what it is paid up to, with `--json` staying readable in the same
|
|
129
|
+
case.
|
|
130
|
+
|
|
131
|
+
### Patch Changes
|
|
132
|
+
|
|
133
|
+
- @unotest/viewer@0.36.0
|
|
134
|
+
- @unotest/core@0.36.0
|
|
135
|
+
- @unotest/dsl@0.36.0
|
|
136
|
+
- @unotest/grounder-client@0.36.0
|
|
137
|
+
- @unotest/protocol@0.36.0
|
|
138
|
+
|
|
3
139
|
## [0.35.2] - 2026-09-16
|
|
4
140
|
|
|
5
141
|
### Patch Changes
|
package/dist/config/schema.d.ts
CHANGED
|
@@ -30,10 +30,10 @@ declare const RetryConfigSchema: z.ZodObject<{
|
|
|
30
30
|
on: z.ZodArray<z.ZodEnum<["transient", "network", "crash"]>, "many">;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
32
|
count: number;
|
|
33
|
-
on: ("
|
|
33
|
+
on: ("transient" | "network" | "crash")[];
|
|
34
34
|
}, {
|
|
35
35
|
count: number;
|
|
36
|
-
on: ("
|
|
36
|
+
on: ("transient" | "network" | "crash")[];
|
|
37
37
|
}>;
|
|
38
38
|
type RetryConfig = z.infer<typeof RetryConfigSchema>;
|
|
39
39
|
declare const FailureBundleConfigSchema: z.ZodObject<{
|
|
@@ -215,15 +215,15 @@ declare const WebServerConfigSchema: z.ZodObject<{
|
|
|
215
215
|
/** How long to wait for the URL to come up after spawning. */
|
|
216
216
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
217
217
|
}, "strip", z.ZodTypeAny, {
|
|
218
|
-
url: string;
|
|
219
|
-
timeoutMs: number;
|
|
220
218
|
command: string;
|
|
219
|
+
url: string;
|
|
221
220
|
reuseExistingServer: boolean;
|
|
221
|
+
timeoutMs: number;
|
|
222
222
|
}, {
|
|
223
|
-
url: string;
|
|
224
223
|
command: string;
|
|
225
|
-
|
|
224
|
+
url: string;
|
|
226
225
|
reuseExistingServer?: boolean | undefined;
|
|
226
|
+
timeoutMs?: number | undefined;
|
|
227
227
|
}>;
|
|
228
228
|
type WebServerConfig = z.infer<typeof WebServerConfigSchema>;
|
|
229
229
|
declare const UnotestConfigSchema: z.ZodObject<{
|
|
@@ -249,15 +249,15 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
249
249
|
/** How long to wait for the URL to come up after spawning. */
|
|
250
250
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
251
251
|
}, "strip", z.ZodTypeAny, {
|
|
252
|
-
url: string;
|
|
253
|
-
timeoutMs: number;
|
|
254
252
|
command: string;
|
|
253
|
+
url: string;
|
|
255
254
|
reuseExistingServer: boolean;
|
|
255
|
+
timeoutMs: number;
|
|
256
256
|
}, {
|
|
257
|
-
url: string;
|
|
258
257
|
command: string;
|
|
259
|
-
|
|
258
|
+
url: string;
|
|
260
259
|
reuseExistingServer?: boolean | undefined;
|
|
260
|
+
timeoutMs?: number | undefined;
|
|
261
261
|
}>>;
|
|
262
262
|
browsers: z.ZodArray<z.ZodEnum<["chromium", "firefox", "webkit"]>, "many">;
|
|
263
263
|
channel: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"chrome">, z.ZodLiteral<"msedge">, z.ZodLiteral<"chrome-beta">, z.ZodNull]>>;
|
|
@@ -276,10 +276,10 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
276
276
|
on: z.ZodArray<z.ZodEnum<["transient", "network", "crash"]>, "many">;
|
|
277
277
|
}, "strip", z.ZodTypeAny, {
|
|
278
278
|
count: number;
|
|
279
|
-
on: ("
|
|
279
|
+
on: ("transient" | "network" | "crash")[];
|
|
280
280
|
}, {
|
|
281
281
|
count: number;
|
|
282
|
-
on: ("
|
|
282
|
+
on: ("transient" | "network" | "crash")[];
|
|
283
283
|
}>;
|
|
284
284
|
failureBundle: z.ZodObject<{
|
|
285
285
|
/** Tier 1 is always on by D-16. Schema lock — not user-toggleable. */
|
|
@@ -461,7 +461,7 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
461
461
|
};
|
|
462
462
|
retry: {
|
|
463
463
|
count: number;
|
|
464
|
-
on: ("
|
|
464
|
+
on: ("transient" | "network" | "crash")[];
|
|
465
465
|
};
|
|
466
466
|
failureBundle: {
|
|
467
467
|
tier1: true;
|
|
@@ -508,10 +508,10 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
508
508
|
};
|
|
509
509
|
baseUrl?: string | undefined;
|
|
510
510
|
webServer?: {
|
|
511
|
-
url: string;
|
|
512
|
-
timeoutMs: number;
|
|
513
511
|
command: string;
|
|
512
|
+
url: string;
|
|
514
513
|
reuseExistingServer: boolean;
|
|
514
|
+
timeoutMs: number;
|
|
515
515
|
} | undefined;
|
|
516
516
|
channel?: "chrome" | "msedge" | "chrome-beta" | null | undefined;
|
|
517
517
|
storageState?: string | undefined;
|
|
@@ -523,7 +523,7 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
523
523
|
};
|
|
524
524
|
retry: {
|
|
525
525
|
count: number;
|
|
526
|
-
on: ("
|
|
526
|
+
on: ("transient" | "network" | "crash")[];
|
|
527
527
|
};
|
|
528
528
|
failureBundle: {
|
|
529
529
|
tier2: boolean;
|
|
@@ -564,10 +564,10 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
564
564
|
};
|
|
565
565
|
baseUrl?: string | undefined;
|
|
566
566
|
webServer?: {
|
|
567
|
-
url: string;
|
|
568
567
|
command: string;
|
|
569
|
-
|
|
568
|
+
url: string;
|
|
570
569
|
reuseExistingServer?: boolean | undefined;
|
|
570
|
+
timeoutMs?: number | undefined;
|
|
571
571
|
} | undefined;
|
|
572
572
|
channel?: "chrome" | "msedge" | "chrome-beta" | null | undefined;
|
|
573
573
|
storageState?: string | undefined;
|
package/dist/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function _0x4201(){var _0xe19169=['B2zM','nta4mhr6tKnAtW','ywnJzxb0','BgLUDdPLDMfSDwf0zs1KAxnJB3vYywDLza','zgLZBwLZCW','BwfUDwfS','BgLUDdPZy2vUyxjPBY1PBI1YB290','BgLUDdPVBMuTDgvZDc1WzxiTzMLSzq','B2jQzwn0','DMfSAwrHDg9YoNzHCI1ZAgfWzq','DMfSAwrHDg9YoMfYzY1RAw5K','zw51Bq','DMfSAwrHDg9YoNn0CMLUzY1JB25Jyxq','DMfSAwrHDg9YoMLMlxnOyxbL','DMfSAwrHDg9YoNn0zxaTC2HHCgu','lNvUB3rLC3qVzMfPBhvYzxm','DMfSAwrHDg9YoNn0zxaTy292zxjHz2u','mZH2yxHiuKS','BgLUDdPWyxvZzs1LEhbSAwnPDa','y2HYB21LlwjLDge','zgvMyxvSDa','DxjS','ndKWmJG5oeztDK9LuG','BgLUDdP4Cgf0Aa','BgLUDdPNB3rVlwnVBMnHDa','y2HYB21L','BgL0zxjHBa','zxjYB3i','C3rYAw5N','DMfSAwrHDg9YoNvUA25VD24TzNvUy3rPB24','yxjYyxK','BNvTyMvY','BgLUDdPLy2HVlwfZC2vYDa','BgLUDdPSAw50lw9Rlw1PC3nPBMCTCMvHC29U','Dw5VDgvZDc9LmMu','BgLUDdPKAxnHBwjPzY1IEs1PBMrLEa','Aw50','nte4ndHmsKLnuu0','Cg9ZAxrPDMu','mtq2oe14zvvkuW','mtm2mde2mhz0yNjXtG','BgLUDdPMBg93lxjLDhvYBNmTDMfSDwu','DMfSAwrHDg9YoM1LDgeTC2HHCgu','B3b0Aw9UywW','DMfSAwrHDg9YoNnLBwfUDgLJlwXVC3m','y3jHC2G','mtfXswnbCNm','Bwf4','DMfSAwrHDg9YoMXPC3qTyxjN','BgLUDdPSzwDHy3KTBgf5B3v0','BwLU','CMvJB3jK','DhjHBNnPzw50','C3rKAw8','D2fYBG','mZaYmJCYmLrowNDtta','y2HYB21PDw0','zMLYzwzVEa','yM9VBgvHBG','BgLUDdPLEhrLCM5HBc12yxjPywjSzs11BMrLy2XHCMvK','mti3odaYn3DUBuX4tG','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlxn0yxrLBwvUDa','mZeYndLXtLjxDvC','nJiXt21wvLzO'];_0x4201=function(){return _0xe19169;};return _0x4201();}var _0x181bcf=_0x2567;(function(_0x56bff3,_0x2e70b0){var _0x1a1215={_0x10ecb3:0x20a,_0x55d20d:0x21d,_0x5505bc:0x203},_0xefd31f=_0x2567,_0xdbca4=_0x56bff3();while(!![]){try{var _0x2ccc39=parseInt(_0xefd31f(_0x1a1215._0x10ecb3))/0x1*(-parseInt(_0xefd31f(_0x1a1215._0x55d20d))/0x2)+parseInt(_0xefd31f(0x208))/0x3+-parseInt(_0xefd31f(0x1f3))/0x4*(parseInt(_0xefd31f(0x20d))/0x5)+parseInt(_0xefd31f(_0x1a1215._0x5505bc))/0x6+parseInt(_0xefd31f(0x1e2))/0x7+-parseInt(_0xefd31f(0x1f1))/0x8*(parseInt(_0xefd31f(0x20b))/0x9)+parseInt(_0xefd31f(0x1f4))/0xa*(parseInt(_0xefd31f(0x1fa))/0xb);if(_0x2ccc39===_0x2e70b0)break;else _0xdbca4['push'](_0xdbca4['shift']());}catch(_0x5d0c70){_0xdbca4['push'](_0xdbca4['shift']());}}}(_0x4201,0x560b2));import{z}from'zod';function _0x2567(_0x3633a1,_0x5903de){_0x3633a1=_0x3633a1-0x1e1;var _0x4201f0=_0x4201();var _0x256750=_0x4201f0[_0x3633a1];if(_0x2567['LBTmYU']===undefined){var _0x5cc0ea=function(_0x555164){var _0x4c8b11='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x1ac178='',_0x786f27='';for(var _0x4c8135=0x0,_0x16776f,_0x51c40b,_0x5f10eb=0x0;_0x51c40b=_0x555164['charAt'](_0x5f10eb++);~_0x51c40b&&(_0x16776f=_0x4c8135%0x4?_0x16776f*0x40+_0x51c40b:_0x51c40b,_0x4c8135++%0x4)?_0x1ac178+=String['fromCharCode'](0xff&_0x16776f>>(-0x2*_0x4c8135&0x6)):0x0){_0x51c40b=_0x4c8b11['indexOf'](_0x51c40b);}for(var _0x117088=0x0,_0x525c2c=_0x1ac178['length'];_0x117088<_0x525c2c;_0x117088++){_0x786f27+='%'+('00'+_0x1ac178['charCodeAt'](_0x117088)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x786f27);};_0x2567['tauWFy']=_0x5cc0ea,_0x2567['ExHfDb']={},_0x2567['LBTmYU']=!![];}var _0xb45f2b=_0x4201f0[0x0],_0x8209fa=_0x3633a1+_0xb45f2b,_0x248d51=_0x2567['ExHfDb'][_0x8209fa];return!_0x248d51?(_0x256750=_0x2567['tauWFy'](_0x256750),_0x2567['ExHfDb'][_0x8209fa]=_0x256750):_0x256750=_0x248d51,_0x256750;}var BrowserSchema=z[_0x181bcf(0x217)]([_0x181bcf(0x204),_0x181bcf(0x205),'webkit']),BrowserChannelSchema=z['union']([z[_0x181bcf(0x1e6)](_0x181bcf(0x1e5)),z[_0x181bcf(0x1e6)]('msedge'),z[_0x181bcf(0x1e6)](_0x181bcf(0x21f)),z['null']()])[_0x181bcf(0x1f7)](),ViewportSchema=z[_0x181bcf(0x214)]({'width':z[_0x181bcf(0x1eb)]()['int']()[_0x181bcf(0x1f2)](),'height':z[_0x181bcf(0x1eb)]()[_0x181bcf(0x1f0)]()[_0x181bcf(0x1f2)]()}),RetryReasonSchema=z[_0x181bcf(0x217)]([_0x181bcf(0x200),'network',_0x181bcf(0x1f9)]),RetryConfigSchema=z[_0x181bcf(0x214)]({'count':z[_0x181bcf(0x1eb)]()[_0x181bcf(0x1f0)]()['min'](0x0)[_0x181bcf(0x1fb)](0xa),'on':z[_0x181bcf(0x1ea)](RetryReasonSchema)}),FailureBundleConfigSchema=z[_0x181bcf(0x214)]({'tier1':z[_0x181bcf(0x1e6)](!![])[_0x181bcf(0x220)](!![]),'tier2':z[_0x181bcf(0x206)](),'tier3':z['object']({'network':z['boolean'](),'video':z[_0x181bcf(0x206)]()}),'retention':z['object']({'runs':z[_0x181bcf(0x1eb)]()[_0x181bcf(0x1f0)]()['positive'](),'days':z[_0x181bcf(0x1eb)]()[_0x181bcf(0x1f0)]()[_0x181bcf(0x1f2)]()}),'storageDir':z[_0x181bcf(0x1e8)]()['min'](0x1)}),DialogPolicySchema=z[_0x181bcf(0x217)](['accept',_0x181bcf(0x210),_0x181bcf(0x211)]),LinterRuleIdSchema=z['enum'](['lint:deep-css',_0x181bcf(0x1e3),'lint:obfuscated-class',_0x181bcf(0x21e),_0x181bcf(0x1ef),_0x181bcf(0x20f),_0x181bcf(0x212),'lint:mustache-in-dsl',_0x181bcf(0x1e4),'lint:regex-invalid',_0x181bcf(0x1ec),'lint:api-call-file-body',_0x181bcf(0x1ed),_0x181bcf(0x1f5),_0x181bcf(0x1fd),_0x181bcf(0x207),_0x181bcf(0x213),_0x181bcf(0x1e9),'validator:arity',_0x181bcf(0x216),_0x181bcf(0x21c),_0x181bcf(0x21a),_0x181bcf(0x1f6),'validator:function-shape','validator:for-shape',_0x181bcf(0x219),_0x181bcf(0x215),_0x181bcf(0x209),'validator:unsupported-expression',_0x181bcf(0x218),_0x181bcf(0x1f8),_0x181bcf(0x1fc),'validator:wrapped-format']),LinterSeveritySchema=z[_0x181bcf(0x217)](['off',_0x181bcf(0x202),_0x181bcf(0x1e7)]),LinterConfigSchema=z[_0x181bcf(0x214)]({'enabled':z[_0x181bcf(0x206)](),'rules':z[_0x181bcf(0x1ff)](LinterRuleIdSchema,LinterSeveritySchema)}),QueueConfigSchema=z['object']({'enabled':z[_0x181bcf(0x206)]()[_0x181bcf(0x220)](!![]),'concurrency':z[_0x181bcf(0x1eb)]()[_0x181bcf(0x1f0)]()['positive']()['default'](0x1)}),ScheduleSchema=z['object']({'collection':z[_0x181bcf(0x1e8)]()[_0x181bcf(0x1fe)](0x1),'cron':z[_0x181bcf(0x1e8)]()[_0x181bcf(0x1fe)](0x1),'env':z[_0x181bcf(0x1e8)]()[_0x181bcf(0x1fe)](0x1)[_0x181bcf(0x1f7)](),'prepare':z[_0x181bcf(0x1e8)]()[_0x181bcf(0x1fe)](0x1)['optional']()}),McpConfigSchema=z[_0x181bcf(0x214)]({'transport':z[_0x181bcf(0x1e6)]('stdio')}),SandboxConfigSchema=z[_0x181bcf(0x214)]({'shellCwd':z['string']()[_0x181bcf(0x1f7)](),'shellTimeoutMs':z['number']()[_0x181bcf(0x1f0)]()[_0x181bcf(0x1f2)]()['optional'](),'exportSecrets':z[_0x181bcf(0x1ea)](z[_0x181bcf(0x1e8)]())[_0x181bcf(0x1f7)](),'database':z['string']()['optional'](),'apiBaseUrl':z['string']()[_0x181bcf(0x1e1)]()[_0x181bcf(0x1f7)](),'uploadDir':z[_0x181bcf(0x1e8)]()[_0x181bcf(0x1f7)]()}),WebServerConfigSchema=z[_0x181bcf(0x214)]({'command':z[_0x181bcf(0x1e8)]()[_0x181bcf(0x1fe)](0x1),'url':z[_0x181bcf(0x1e8)]()[_0x181bcf(0x1e1)](),'reuseExistingServer':z[_0x181bcf(0x206)]()[_0x181bcf(0x220)](!![]),'timeoutMs':z[_0x181bcf(0x1eb)]()[_0x181bcf(0x1f0)]()[_0x181bcf(0x1f2)]()[_0x181bcf(0x220)](0xea60)}),UnotestConfigSchema=z[_0x181bcf(0x214)]({'baseUrl':z['string']()[_0x181bcf(0x1e1)]()[_0x181bcf(0x1f7)](),'webServer':WebServerConfigSchema[_0x181bcf(0x1f7)](),'browsers':z[_0x181bcf(0x1ea)](BrowserSchema)[_0x181bcf(0x1fe)](0x1),'channel':BrowserChannelSchema,'viewport':ViewportSchema,'retry':RetryConfigSchema,'failureBundle':FailureBundleConfigSchema,'dialogPolicy':DialogPolicySchema,'storageState':z[_0x181bcf(0x1e8)]()[_0x181bcf(0x1f7)](),'testDir':z[_0x181bcf(0x1e8)]()['min'](0x1),'helpersDir':z[_0x181bcf(0x1e8)]()[_0x181bcf(0x1fe)](0x1),'defaultTimeoutMs':z[_0x181bcf(0x1eb)]()[_0x181bcf(0x1f0)]()[_0x181bcf(0x1f2)](),'defaultNavigationTimeoutMs':z['number']()[_0x181bcf(0x1f0)]()[_0x181bcf(0x1f2)](),'linter':LinterConfigSchema,'mcp':McpConfigSchema,'queue':QueueConfigSchema,'schedules':z[_0x181bcf(0x1ea)](ScheduleSchema)[_0x181bcf(0x220)]([]),'sandbox':SandboxConfigSchema}),DEFAULT_CONFIG={'browsers':[_0x181bcf(0x204)],'viewport':{'width':0x500,'height':0x2d0},'retry':{'count':0x0,'on':[_0x181bcf(0x200)]},'failureBundle':{'tier1':!![],'tier2':!![],'tier3':{'network':![],'video':![]},'retention':{'runs':0x14,'days':0x7},'storageDir':_0x181bcf(0x21b)},'dialogPolicy':_0x181bcf(0x20e),'testDir':_0x181bcf(0x1ee),'helpersDir':'unotest/e2e/_helpers','defaultTimeoutMs':0xbb8,'defaultNavigationTimeoutMs':0x7530,'linter':{'enabled':!![],'rules':{'lint:deep-css':_0x181bcf(0x202),'lint:xpath':_0x181bcf(0x202),'lint:obfuscated-class':_0x181bcf(0x202),'lint:pause-explicit':_0x181bcf(0x202),'lint:disambig-by-index':_0x181bcf(0x20c),'lint:evaluate-discouraged':_0x181bcf(0x202),'lint:scenario-in-root':'error','lint:mustache-in-dsl':_0x181bcf(0x1e7),'lint:goto-concat':'warn','lint:regex-invalid':'error','lint:echo-assert':_0x181bcf(0x202),'lint:lint-ok-missing-reason':'warn','lint:flow-returns-value':_0x181bcf(0x202),'lint:legacy-layout':_0x181bcf(0x202),'lint:external-variable-undeclared':'error','lint:one-test-per-file':'warn','validator:unknown-function':'error'}},'mcp':{'transport':_0x181bcf(0x201)},'queue':{'enabled':!![],'concurrency':0x1},'schedules':[],'sandbox':{}};export{BrowserChannelSchema,BrowserSchema,DEFAULT_CONFIG,DialogPolicySchema,FailureBundleConfigSchema,LinterConfigSchema,LinterRuleIdSchema,LinterSeveritySchema,McpConfigSchema,QueueConfigSchema,RetryConfigSchema,RetryReasonSchema,SandboxConfigSchema,ScheduleSchema,UnotestConfigSchema,ViewportSchema,WebServerConfigSchema};
|
package/dist/driver/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x46b388=_0x1c30;(function(_0x3b60d9,_0x216fe3){const _0x13fae3={_0x203667:0x163,_0x34753f:0x150,_0x1a9df6:0x15d,_0x2f1e32:0x147,_0x3fd904:0x151,_0x35da79:0x135,_0x35c7c9:0x152,_0x1db706:0x13c},_0x417fe4=_0x1c30,_0x279bd8=_0x3b60d9();while(!![]){try{const _0x32fa07=-parseInt(_0x417fe4(_0x13fae3._0x203667))/0x1*(parseInt(_0x417fe4(_0x13fae3._0x34753f))/0x2)+parseInt(_0x417fe4(_0x13fae3._0x1a9df6))/0x3*(-parseInt(_0x417fe4(_0x13fae3._0x2f1e32))/0x4)+parseInt(_0x417fe4(0x141))/0x5+parseInt(_0x417fe4(0x16e))/0x6*(parseInt(_0x417fe4(0x12f))/0x7)+parseInt(_0x417fe4(_0x13fae3._0x3fd904))/0x8*(parseInt(_0x417fe4(_0x13fae3._0x35da79))/0x9)+parseInt(_0x417fe4(_0x13fae3._0x35c7c9))/0xa+-parseInt(_0x417fe4(_0x13fae3._0x1db706))/0xb*(parseInt(_0x417fe4(0x10b))/0xc);if(_0x32fa07===_0x216fe3)break;else _0x279bd8['push'](_0x279bd8['shift']());}catch(_0x22f153){_0x279bd8['push'](_0x279bd8['shift']());}}}(_0x52a6,0x54e29));var __defProp=Object[_0x46b388(0xfd)],__name=(_0x44198d,_0x40229f)=>__defProp(_0x44198d,_0x46b388(0xf7),{'value':_0x40229f,'configurable':!![]});function subscribe(_0x3915cd,_0x2ed959){const _0x3eab77=_0x46b388;return _0x3915cd[_0x3eab77(0x10f)](_0x2ed959),()=>{const _0x584422=_0x3eab77;_0x3915cd[_0x584422(0x104)](_0x2ed959);};}__name(subscribe,_0x46b388(0x11e));import{UnotestError}from'@unotest/core';function _0x52a6(){const _0x2e0aa3=['ywrK','rMfRzvDLyKrYAxzLCG','Aw5UzxjuzxH0','C2nYB2XSsw50B1zPzxC','z290BW','Aw5ZCgvJDevSzw1LBNq','zMLSBa','AxneAxnHyMXLza','y29UBMvJDfnOyxjLzcbUB3qGC3vWCg9YDgvKigj5iezHA2vxzwjeCML2zxi','y291BNq','B3v0zxjive1m','y2HLy2TLzfn0yxrLqNLezwzHDwX0','AxnwAxnPyMXLqNLezwzHDwX0','yxr0ywnOrxHPC3rPBMC','D2fPDezVCLrLEhq','C3vIC2nYAwjL','B25bzNrLCKnSAwnR','CgfNzxm','Bgf1BMnOzwq','zw1PDezHA2vqB3b1Ca','Ag92zxi','y2fSBhngB3i','B3v0zxjiDg1SqNLszwy','Bg9JywXtDg9YywDLu3rHDgu','pgrPDJ48l2rPDJ4','zMfRzsb0AxrSzq','z29gB3j3yxjK','ywjVDxq6yMXHBMS','CgfNzsbPBMrLEcbVDxqGB2yGCMfUz2u','BgvUz3rO','C2f2zvn0B3jHz2vtDgf0zq','zxjYB3jpBK5LEhrby3rPB24','ntyYmuzrs2vdsq','BMv0D29YA0vUDhjPzxm','y2HLy2TLzfn0yxrL','yMvOyxzPB3i','DxjS','Aw5WDxrwywX1zuj5rgvMyxvSDa','mZzQELrkCxi','z2v0qxr0CMLIDxrL','Bgf1BMnO','D2fPDezVCLvYBa','pgrPDIbKyxrHlxvUB3rLC3qTCMvMpsi','AxneAxnHyMXLzej5rgvMyxvSDa','tg9JyxrVCKvYCM9Y','mta2otC3mNbVwMnlva','zNjHBwvtDgfJAW','DxbSB2fKrMLSzq','Dw5JAgvJAW','C3bSAwnL','mJa1nta1nuPdsxLlra','C2nVCgu','Bwf5yMvuAhjVDW','Dgv4DenVBNrLBNq','zNjVBq','iJ48l2rPDJ4','mJC1mtyWoe9ozLLYDW','C2v0qwn0AxzLugfNzq','zhjHz0fUzerYB3a','Aw5WDxrwywX1zq','y2XPCgjVyxjKugfZDgu','z2v0q29VA2LL','Cg9W','AxnwAxnPyMXL','BMv3q29UDgv4Da','mtqWmZHHuNjrEeO','mteYmtK2oeLuzwHAqG','ndGXmty5meruy1PPvG','zw50zxjgCMfTzq','BM8Gywn0AxzLihbHz2uGAw4Gy29UDgv4Da','DhLWzq','rMfRzvbHz2u','ChvZAa','y2XVC2vgywTLugfNzq','y2HLy2S','zNvUy3rPB24','CMvJB3jKzxi','zMfRzs1WBMC','m2zsswfHAW','C2nYzwvUC2HVDevSzw1LBNq','y291BNrcEurLzMf1Bhq','Bwv0Ag9K','y29UDgv4Dhm','y3r4','nZvZBen1C1K','CgfNzuXPC3q','y29UBMvJDfnOyxjLza','y29UC29SzuvUDhjPzxm','CMvSB2fK','Cg9WDxbpBKnSAwnR','A2LUza','C2nYzwvUC2HVDej5DgvZ','BMv3ugfNzuXPC3rLBMvYCW','zxzHBhvHDgvszxn1Bhq','CMvM','mZCYmeP0A1LjrG','BMv3q29UDgv4DcbJywXSzwqGyMvMB3jLigXHDw5JAcGP','CMvJB3jK','zwXLBwvUDeHPBNrcEvjLzG','BMfTzq','zxzHBhvHDgu','lNbHz2u','z29cywnR','ChjLC3m','y3jLyxrLuMvJB3jKzxi','zgvMAw5LuhjVCgvYDhK','C3rLChm','zhjPDMvY','zxHPDezYyw1L','Dgv4DenVBNrLBNrcEurLzMf1Bhq','z2v0tg9JywXtDg9YywDL','C2v0q29VA2LL','zgvSzxrL','y2XVC2u','zMLSDgvY','y29VA2LLu3rHDgu','Bg9JywXtDg9YywDL','y2fSBhm','C2v0tg9JywXtDg9YywDL','ndHXsNDrt3i','C2nYzwvUC2HVDa','y3vYCMvUDfvYBa','ywn0AxzLswr4'];_0x52a6=function(){return _0x2e0aa3;};return _0x52a6();}var DriverError=class extends UnotestError{static{__name(this,'DriverError');}},LocatorError=class extends UnotestError{static{__name(this,_0x46b388(0x13b));}};function createRecorder(){const _0xe5eae7=_0x46b388,_0x351f00=[];let _0x35631f=0x0;return{'push':__name(_0x60f7c7=>_0x351f00[_0xe5eae7(0x157)]({..._0x60f7c7,'seq':_0x35631f++}),_0xe5eae7(0x157)),'calls':__name(()=>_0x351f00,_0xe5eae7(0x109))};}__name(createRecorder,_0x46b388(0xfc));function _0x1c30(_0x230f9e,_0x423dfe){_0x230f9e=_0x230f9e-0xf6;const _0x52a6df=_0x52a6();let _0x1c30b2=_0x52a6df[_0x230f9e];if(_0x1c30['pIYUPk']===undefined){var _0x317ee6=function(_0x2a0bde){const _0x657e3f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x44198d='',_0x40229f='';for(let _0x3915cd=0x0,_0x2ed959,_0x351f00,_0x35631f=0x0;_0x351f00=_0x2a0bde['charAt'](_0x35631f++);~_0x351f00&&(_0x2ed959=_0x3915cd%0x4?_0x2ed959*0x40+_0x351f00:_0x351f00,_0x3915cd++%0x4)?_0x44198d+=String['fromCharCode'](0xff&_0x2ed959>>(-0x2*_0x3915cd&0x6)):0x0){_0x351f00=_0x657e3f['indexOf'](_0x351f00);}for(let _0x60f7c7=0x0,_0x157a3a=_0x44198d['length'];_0x60f7c7<_0x157a3a;_0x60f7c7++){_0x40229f+='%'+('00'+_0x44198d['charCodeAt'](_0x60f7c7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x40229f);};_0x1c30['lyAKJG']=_0x317ee6,_0x1c30['WgGVVd']={},_0x1c30['pIYUPk']=!![];}const _0x33a985=_0x52a6df[0x0],_0x1b7bf9=_0x230f9e+_0x33a985,_0x2f8117=_0x1c30['WgGVVd'][_0x1b7bf9];return!_0x2f8117?(_0x1c30b2=_0x1c30['lyAKJG'](_0x1c30b2),_0x1c30['WgGVVd'][_0x1b7bf9]=_0x1c30b2):_0x1c30b2=_0x2f8117,_0x1c30b2;}var FakePage=class{constructor(_0x157a3a,_0x42814a,_0xcff8d2,_0xad7aa2){const _0x592386={_0x3140b4:0x15b,_0x9178dd:0x142,_0x562cff:0x10d},_0xfe9217=_0x46b388;this[_0xfe9217(_0x592386._0x3140b4)]=_0x157a3a,this['behavior']=_0x42814a,this[_0xfe9217(_0x592386._0x9178dd)]=_0xcff8d2,this[_0xfe9217(_0x592386._0x562cff)]=_0xad7aa2;}[_0x46b388(0x15b)];['behavior'];['scope'];static{__name(this,_0x46b388(0x156));}[_0x46b388(0x10d)];[_0x46b388(0x11f)];[_0x46b388(0x170)](_0x51d3f0,_0x10812d){const _0x455a3f={_0x37215c:0x15b,_0x300fab:0x142},_0x709499=_0x46b388;this[_0x709499(_0x455a3f._0x37215c)]['push']({'scope':this[_0x709499(_0x455a3f._0x300fab)],'method':_0x51d3f0,'args':_0x10812d});}[_0x46b388(0x143)](){const _0x1bf21a={_0x595a00:0x132,_0x3c7665:0x132},_0x19725c=_0x46b388;if(this[_0x19725c(_0x1bf21a._0x595a00)][_0x19725c(0x12e)]){const _0x471c37=this[_0x19725c(_0x1bf21a._0x3c7665)]['errorOnNextAction'];this['behavior']['errorOnNextAction']=void 0x0;throw _0x471c37;}}[_0x46b388(0x133)](){return this['currentUrl'];}async['title'](){const _0x90277a={_0x5d2bd0:0x128},_0x52fcd8=_0x46b388;return this['record']('title',[]),_0x52fcd8(_0x90277a._0x5d2bd0);}async['click'](_0x258408,_0x4ea1a9){const _0x26bbec=_0x46b388;this[_0x26bbec(0x170)]('click',[_0x258408,_0x4ea1a9]),this[_0x26bbec(0x143)](),this[_0x26bbec(0x11f)]?.();}async['doubleClick'](_0x112962,_0x3cee2c){const _0x498052=_0x46b388;this[_0x498052(0x170)]('doubleClick',[_0x112962,_0x3cee2c]),this['maybeThrow']();}async[_0x46b388(0x115)](_0x72db8a,_0xd05842,_0x3253a5){const _0x4a97bf={_0x3b401f:0x115,_0x1776ab:0x143},_0x253ce8=_0x46b388;this['record'](_0x253ce8(_0x4a97bf._0x3b401f),[_0x72db8a,_0xd05842,_0x3253a5]),this[_0x253ce8(_0x4a97bf._0x1776ab)]();}async[_0x46b388(0xfb)](_0x2296e7,_0xdf536b,_0x1c3ab5){const _0x3eeb0a={_0x5d9c86:0x143},_0x386d86=_0x46b388;this[_0x386d86(0x170)](_0x386d86(0xfb),[_0x2296e7,_0xdf536b,_0x1c3ab5]),this[_0x386d86(_0x3eeb0a._0x5d9c86)]();}async[_0x46b388(0x159)](_0x75709c,_0x26c3e2){const _0x16d365={_0x4992b1:0x170,_0x5cb437:0x159,_0x12d180:0x143},_0x458fc5=_0x46b388;this[_0x458fc5(_0x16d365._0x4992b1)](_0x458fc5(_0x16d365._0x5cb437),[_0x75709c,_0x26c3e2]),this[_0x458fc5(_0x16d365._0x12d180)]();}async[_0x46b388(0x13f)](_0x100d55,_0x17e9c9){const _0x3090a5={_0x1891ce:0x143},_0x35f49d=_0x46b388;this[_0x35f49d(0x170)]('uncheck',[_0x100d55,_0x17e9c9]),this[_0x35f49d(_0x3090a5._0x1891ce)]();}async['selectOption'](_0x3969e2,_0x4449b8,_0x491a7e){const _0x505cdb={_0x5038c9:0x143},_0x4d168b=_0x46b388;this[_0x4d168b(0x170)]('selectOption',[_0x3969e2,_0x4449b8,_0x491a7e]),this[_0x4d168b(_0x505cdb._0x5038c9)]();}async[_0x46b388(0x123)](_0x3f84bb,_0x93a8c5){const _0x1e3edd=_0x46b388;this[_0x1e3edd(0x170)](_0x1e3edd(0x123),[_0x3f84bb,_0x93a8c5]),this['maybeThrow']();}async[_0x46b388(0x112)](_0x5d4359){const _0x4a2b35=_0x46b388;this['record'](_0x4a2b35(0x112),[_0x5d4359]),this[_0x4a2b35(0x143)]();}async['dragAndDrop'](_0x27d03b,_0x253526,_0x36ca30){const _0x4a0ffc={_0xcb59a4:0x143},_0x5ec085=_0x46b388;this[_0x5ec085(0x170)](_0x5ec085(0x149),[_0x27d03b,_0x253526,_0x36ca30]),this[_0x5ec085(_0x4a0ffc._0xcb59a4)]();}async[_0x46b388(0x13e)](_0x935011,_0x3e1def){const _0x195937={_0x38c0ca:0x170},_0x2e1933=_0x46b388;this[_0x2e1933(_0x195937._0x38c0ca)]('uploadFile',[_0x935011,_0x3e1def]),this['maybeThrow']();}async[_0x46b388(0x14b)](_0x3853b3,_0x1eea64){const _0x1944e6={_0x3d8ef7:0x143},_0x249b12=_0x46b388;this['record'](_0x249b12(0x14b),[_0x3853b3,_0x1eea64]),this[_0x249b12(_0x1944e6._0x3d8ef7)]();}async[_0x46b388(0x118)](_0xc025ee){const _0x309c9c={_0x4752bb:0x132,_0x2fbdf3:0x15f},_0x81b9d4=_0x46b388;return this['record'](_0x81b9d4(0x118),[_0xc025ee]),this[_0x81b9d4(_0x309c9c._0x4752bb)][_0x81b9d4(_0x309c9c._0x2fbdf3)]??0x1;}async[_0x46b388(0x144)](_0x352238){const _0x347748={_0x24d624:0x170,_0x8f6140:0x132},_0x64377c=_0x46b388;return this[_0x64377c(_0x347748._0x24d624)]('textContent',[_0x352238]),this[_0x64377c(_0x347748._0x8f6140)][_0x64377c(0x101)]??'';}async[_0x46b388(0x111)](_0xeb7b4e){const _0x125060={_0x5bc9d9:0x111,_0x4f2099:0x132,_0x974b27:0x101},_0x46a45a=_0x46b388;return this[_0x46a45a(0x170)](_0x46a45a(_0x125060._0x5bc9d9),[_0xeb7b4e]),this['behavior']['innerTextByDefault']??this[_0x46a45a(_0x125060._0x4f2099)][_0x46a45a(_0x125060._0x974b27)]??'';}async[_0x46b388(0x14a)](_0x1eea00){const _0x321cbc={_0x2da79a:0x134},_0x5598c3=_0x46b388;return this[_0x5598c3(0x170)]('inputValue',[_0x1eea00]),this[_0x5598c3(0x132)][_0x5598c3(_0x321cbc._0x2da79a)]??'';}async['checkedState'](_0x39a9b7){const _0x4a9032={_0x4d7eec:0x170,_0xf140b4:0x132,_0x224e38:0x11a},_0x39c57d=_0x46b388;return this[_0x39c57d(_0x4a9032._0x4d7eec)](_0x39c57d(0x131),[_0x39a9b7]),this[_0x39c57d(_0x4a9032._0xf140b4)][_0x39c57d(_0x4a9032._0x224e38)]??null;}async[_0x46b388(0x14e)](_0x116ffe){const _0x5b7e8c={_0x4d79a9:0x170},_0x19291d=_0x46b388;return this[_0x19291d(_0x5b7e8c._0x4d79a9)](_0x19291d(0x14e),[_0x116ffe]),this['behavior'][_0x19291d(0x11b)]??!![];}async[_0x46b388(0x116)](_0x190efc){const _0x508255={_0xd6901b:0x170,_0x25f74f:0x116,_0x1e8eb0:0x132},_0x426a5a=_0x46b388;return this[_0x426a5a(_0x508255._0xd6901b)](_0x426a5a(_0x508255._0x25f74f),[_0x190efc]),this[_0x426a5a(_0x508255._0x1e8eb0)][_0x426a5a(0x13a)]??![];}async[_0x46b388(0x136)](_0x18b32c,_0x33f9e1){const _0xd2f741={_0x4feb31:0x136},_0x2a5958=_0x46b388;return this[_0x2a5958(0x170)](_0x2a5958(_0xd2f741._0x4feb31),[_0x18b32c,_0x33f9e1]),this[_0x2a5958(0x132)]['attributesByDefault']?.[_0x33f9e1]??null;}async['waitFor'](_0x35652e,_0x5e5b0f){const _0x283ba4={_0x355deb:0x170},_0x4f8bd8=_0x46b388;this[_0x4f8bd8(_0x283ba4._0x355deb)]('waitFor',[_0x35652e,_0x5e5b0f]);}async[_0x46b388(0x138)](_0x33e3ec,_0x30b739){const _0x5a947e=_0x46b388;this[_0x5a947e(0x170)](_0x5a947e(0x138),[_0x33e3ec,_0x30b739]);}async['waitForText'](_0x529311,_0x2211e0){const _0x1fd571=_0x46b388;this[_0x1fd571(0x170)](_0x1fd571(0x11d),[_0x529311,_0x2211e0]);}async['waitForNavigation'](_0x153975){const _0x44db09=_0x46b388;this[_0x44db09(0x170)]('waitForNavigation',[_0x153975]);}async['waitForLoadState'](_0x337240,_0x41a934){const _0x18afe2={_0x402426:0x170},_0x417367=_0x46b388;this[_0x417367(_0x18afe2._0x402426)]('waitForLoadState',[_0x337240,_0x41a934]);}async[_0x46b388(0x113)](_0x521bb1,_0xc6072b){const _0xbdb8d5={_0x30a6fd:0x113},_0x4e4603=_0x46b388;this[_0x4e4603(0x170)](_0x4e4603(_0xbdb8d5._0x30a6fd),[_0x521bb1,_0xc6072b]),this['currentUrl']=_0x521bb1;}async[_0x46b388(0x167)](_0x5e34dc){const _0x157a4d={_0x3ed6ad:0x170},_0x272d17=_0x46b388;this[_0x272d17(_0x157a4d._0x3ed6ad)]('reload',[_0x5e34dc]);}async[_0x46b388(0xfa)](_0x226b5e){const _0x1e8e0a=_0x46b388;this[_0x1e8e0a(0x170)](_0x1e8e0a(0xfa),[_0x226b5e]);}async[_0x46b388(0x129)](_0x2a02fe){const _0x21ba06={_0x33519b:0x170},_0x2acd60=_0x46b388;this[_0x2acd60(_0x21ba06._0x33519b)](_0x2acd60(0x129),[_0x2a02fe]);}async[_0x46b388(0xf8)](_0x10214d){const _0x7ec2eb={_0x355cbd:0x16c},_0x5a220e=_0x46b388;return this['record'](_0x5a220e(0xf8),[_0x10214d]),this[_0x5a220e(0x132)][_0x5a220e(_0x7ec2eb._0x355cbd)];}async['evaluateOnLocator'](_0xc3c391,_0xba97e4){return this['record']('evaluateOnLocator',[_0xc3c391,_0xba97e4]),void 0x0;}async['inspectElement'](_0x157b8d){const _0x3402a1={_0x1ff0db:0x170,_0x24c3ad:0xfe,_0x3c25af:0x16d,_0x2f4f9e:0xf6},_0x4403e6=_0x46b388;this[_0x4403e6(_0x3402a1._0x1ff0db)](_0x4403e6(0x114),[_0x157b8d]);if(_0x157b8d[_0x4403e6(0xfe)]['length']!==0x1||_0x157b8d[_0x4403e6(_0x3402a1._0x24c3ad)][0x0][_0x4403e6(0x169)]!==_0x4403e6(_0x3402a1._0x3c25af))return null;const _0x4da694=_0x157b8d[_0x4403e6(0xfe)][0x0][_0x4403e6(0x16d)],_0x4fe2b8=this[_0x4403e6(0x132)][_0x4403e6(_0x3402a1._0x2f4f9e)]?.[_0x4da694];return _0x4fe2b8??null;}async[_0x46b388(0x10c)](_0x20d448){const _0x332183={_0x500ef3:0x10c,_0x26d459:0x16a},_0x31ff77=_0x46b388;return this[_0x31ff77(0x170)](_0x31ff77(_0x332183._0x500ef3),[_0x20d448]),this[_0x31ff77(_0x332183._0x26d459)](_0x20d448?.['type']);}async[_0x46b388(0x15e)](_0x20bc7a,_0x58fff4){const _0x4f21ad={_0x4c3687:0x16a},_0x4e63c6=_0x46b388;return this['record'](_0x4e63c6(0x15e),[_0x20bc7a,_0x58fff4]),this[_0x4e63c6(_0x4f21ad._0x4c3687)](_0x58fff4?.[_0x4e63c6(0x155)]);}[_0x46b388(0x16a)](_0x6073c2){const _0x1726f5={_0x218569:0x132,_0x1b9580:0x145,_0xd73d2f:0x15a},_0x2d815a=_0x46b388,_0x42d12c=this[_0x2d815a(_0x1726f5._0x218569)]['screenshotBytes'];if(_0x42d12c===void 0x0)return Buffer[_0x2d815a(_0x1726f5._0x1b9580)](_0x2d815a(0x15c));return typeof _0x42d12c===_0x2d815a(_0x1726f5._0xd73d2f)?_0x42d12c(_0x6073c2):_0x42d12c;}async['outerHTML'](_0x5228fe){const _0x2ccec3={_0xbe9aed:0x119,_0x20af85:0xfe,_0x42b5ed:0x16d,_0x1a0b88:0x125,_0x35910c:0x139,_0x3fddcc:0x146,_0x584096:0x127},_0x315952=_0x46b388;this[_0x315952(0x170)](_0x315952(_0x2ccec3._0xbe9aed),[_0x5228fe]);if(_0x5228fe[_0x315952(_0x2ccec3._0x20af85)]['length']===0x1&&_0x5228fe['steps'][0x0][_0x315952(0x169)]===_0x315952(_0x2ccec3._0x42b5ed)){const _0x5dcf3e=_0x5228fe[_0x315952(0xfe)][0x0][_0x315952(_0x2ccec3._0x42b5ed)];return this['behavior'][_0x315952(_0x2ccec3._0x1a0b88)]?.[_0x5dcf3e]??_0x315952(_0x2ccec3._0x35910c)+_0x5dcf3e+_0x315952(_0x2ccec3._0x3fddcc);}return _0x315952(_0x2ccec3._0x584096);}},FakeContext=class{constructor(_0x1b7813,_0x49bafa,_0x3fc97a){const _0x16cce2={_0x5d33d9:0x15b,_0x123f7b:0x142,_0x1ff43d:0x164,_0x3f2283:0x126,_0x5d9345:0x108},_0x59ad99={_0x323dcf:0x122},_0x483f40=_0x46b388;this[_0x483f40(_0x16cce2._0x5d33d9)]=_0x1b7813,this['behavior']=_0x49bafa,this[_0x483f40(_0x16cce2._0x123f7b)]=_0x3fc97a;const _0x5f09c7=new FakePage(_0x1b7813,_0x49bafa,_0x3fc97a+'.page0',_0x49bafa['initialUrl']??_0x483f40(0x12a));_0x49bafa[_0x483f40(0x168)]&&(_0x5f09c7[_0x483f40(0x11f)]=()=>{const _0x44bfb9=_0x483f40;this[_0x44bfb9(_0x59ad99._0x323dcf)](_0x49bafa['popupOnClick']);}),this[_0x483f40(_0x16cce2._0x1ff43d)]=[_0x5f09c7],this[_0x483f40(_0x16cce2._0x3f2283)]={..._0x49bafa[_0x483f40(_0x16cce2._0x5d9345)]??{}},this['cookieState']={..._0x49bafa['cookies']??{}};}['recorder'];['behavior'];[_0x46b388(0x142)];static{__name(this,'FakeContext');}[_0x46b388(0x164)];[_0x46b388(0x10e)]=0x0;[_0x46b388(0x13d)]=[];['localStorageState'];[_0x46b388(0x107)];[_0x46b388(0x16b)]=new Set();[_0x46b388(0x170)](_0x2ed94b,_0x2ce587){const _0x8c3370={_0x1ca895:0x15b,_0x2bde07:0x142},_0x74a83a=_0x46b388;this[_0x74a83a(_0x8c3370._0x1ca895)][_0x74a83a(0x157)]({'scope':this[_0x74a83a(_0x8c3370._0x2bde07)],'method':_0x2ed94b,'args':_0x2ce587});}[_0x46b388(0x120)](){const _0x59dcfc=_0x46b388;return this[_0x59dcfc(0x164)];}['activePage'](){const _0x393ae3={_0xda6ae0:0x10e,_0x4b3b85:0x10e},_0x2c2000=_0x46b388,_0x5c373f=this[_0x2c2000(0x164)][this[_0x2c2000(_0x393ae3._0xda6ae0)]];if(!_0x5c373f)throw new DriverError(_0x2c2000(0x154),{'activeIdx':this[_0x2c2000(_0x393ae3._0x4b3b85)]});return _0x5c373f;}['consoleEntries'](){const _0x1185ca={_0x5776fb:0x132,_0x5436ca:0x166},_0x478c21=_0x46b388;return this[_0x478c21(_0x1185ca._0x5776fb)][_0x478c21(_0x1185ca._0x5436ca)]??[];}[_0x46b388(0x130)](){const _0x518a1b={_0x3fa7cd:0x130},_0x36fa14=_0x46b388;return this[_0x36fa14(0x132)][_0x36fa14(_0x518a1b._0x3fa7cd)]??[];}async[_0x46b388(0x148)](_0x510b91){const _0x4e93a6={_0x259440:0x170,_0x2602d5:0x148,_0x3f8b6f:0x12b},_0xab73f2=_0x46b388;this[_0xab73f2(_0x4e93a6._0x259440)](_0xab73f2(_0x4e93a6._0x2602d5),[_0x510b91]);if(_0x510b91<0x0||_0x510b91>=this[_0xab73f2(0x164)]['length'])throw new DriverError(_0xab73f2(_0x4e93a6._0x3f8b6f),{'index':_0x510b91,'available':this['pageList']['length']});this[_0xab73f2(0x10e)]=_0x510b91,this[_0xab73f2(0x13d)]['length']=0x0;}['onNewPage'](_0x40c4ed){const _0x263117=_0x46b388;return subscribe(this[_0x263117(0x16b)],_0x40c4ed);}[_0x46b388(0x122)](_0x4c391c){const _0x28d0bf={_0x5f4018:0x142,_0x47b171:0xf9,_0x40e6a7:0x12c,_0xa435f8:0x15b,_0xf52e43:0x157},_0x615e61=_0x46b388,_0x51ff04=this[_0x615e61(_0x28d0bf._0x5f4018)]+_0x615e61(_0x28d0bf._0x47b171)+this['pageList'][_0x615e61(_0x28d0bf._0x40e6a7)],_0x33111a=new FakePage(this[_0x615e61(_0x28d0bf._0xa435f8)],this[_0x615e61(0x132)],_0x51ff04,_0x4c391c);this[_0x615e61(0x164)][_0x615e61(_0x28d0bf._0xf52e43)](_0x33111a);const _0x366d85=this[_0x615e61(0x164)][_0x615e61(0x12c)]-0x1;for(const _0x5caf51 of this[_0x615e61(0x16b)]){try{_0x5caf51({'index':_0x366d85,'url':_0x4c391c});}catch{}}return _0x366d85;}[_0x46b388(0x158)](_0x4d7635){const _0x24ad54={_0xbe472c:0x164,_0x1caf0f:0x12c},_0x35fc9b=_0x46b388;if(_0x4d7635<0x0||_0x4d7635>=this[_0x35fc9b(_0x24ad54._0xbe472c)][_0x35fc9b(_0x24ad54._0x1caf0f)])throw new DriverError(_0x35fc9b(0x12b),{'index':_0x4d7635,'available':this[_0x35fc9b(_0x24ad54._0xbe472c)][_0x35fc9b(0x12c)]});this[_0x35fc9b(0x164)][_0x35fc9b(0x140)](_0x4d7635,0x1);}async[_0x46b388(0x153)](_0x39f4b4){const _0x5eb83a={_0x452cf7:0x153,_0x3ed154:0xfe},_0x1026d3=_0x46b388;this['record'](_0x1026d3(_0x5eb83a._0x452cf7),[_0x39f4b4]);if(!_0x39f4b4[_0x1026d3(_0x5eb83a._0x3ed154)]['length'])throw new LocatorError('enterFrame\x20called\x20with\x20empty\x20locator',{'locator':_0x39f4b4});this['frameStack'][_0x1026d3(0x157)](_0x39f4b4);}async['exitFrame'](){const _0x36d96b={_0x54752a:0x100,_0x36aaae:0x13d},_0x39b16c=_0x46b388;this[_0x39b16c(0x170)](_0x39b16c(_0x36d96b._0x54752a),[]);if(this[_0x39b16c(0x13d)]['length']===0x0)throw new DriverError('exitFrame\x20called\x20with\x20no\x20frame\x20on\x20the\x20stack',{});this[_0x39b16c(_0x36d96b._0x36aaae)][_0x39b16c(0x14d)]();}async[_0x46b388(0x10a)](_0x59057c,_0x156647){const _0x124a0e=_0x46b388;this[_0x124a0e(0x170)]('setLocalStorage',[_0x59057c,_0x156647]),this[_0x124a0e(0x126)][_0x59057c]=_0x156647;}async['getLocalStorage'](_0x222a65){const _0x1945d5={_0x31da6e:0x126},_0x33b51a=_0x46b388;return this['record'](_0x33b51a(0x102),[_0x222a65]),this[_0x33b51a(_0x1945d5._0x31da6e)][_0x222a65]??null;}async[_0x46b388(0x103)](_0x3d497e,_0x59281d,_0x335302){const _0xffd692={_0x3e2728:0x103},_0x4f60e6=_0x46b388;this[_0x4f60e6(0x170)](_0x4f60e6(_0xffd692._0x3e2728),[_0x3d497e,_0x59281d,_0x335302]),this[_0x4f60e6(0x107)][_0x3d497e]=_0x59281d;}async[_0x46b388(0x14c)](_0x53ea6d){const _0xe2e1f0={_0x437b9a:0x107},_0x356815=_0x46b388;return this[_0x356815(0x170)]('getCookie',[_0x53ea6d]),this[_0x356815(_0xe2e1f0._0x437b9a)][_0x53ea6d]??null;}async['saveStorageState'](_0x3176be){const _0x2b50a0={_0x1baed8:0x12d},_0x25503e=_0x46b388;this[_0x25503e(0x170)](_0x25503e(_0x2b50a0._0x1baed8),[_0x3176be]);}async[_0x46b388(0xf8)](_0x24f6f4){const _0x1da5d6={_0x6d96b2:0x170,_0x3b5f8e:0xf8},_0x54108e=_0x46b388;return this[_0x54108e(_0x1da5d6._0x6d96b2)](_0x54108e(_0x1da5d6._0x3b5f8e),[_0x24f6f4]),void 0x0;}async[_0x46b388(0x105)](){const _0x4fd6e4=_0x46b388;this[_0x4fd6e4(0x170)]('close',[]);}['frameDepth'](){const _0x43db74={_0x312194:0x12c},_0x425909=_0x46b388;return this[_0x425909(0x13d)][_0x425909(_0x43db74._0x312194)];}},FakeWebDriver=class{constructor(_0x5cf2e3={}){const _0x48def5={_0x1f022f:0x15b},_0x310e41=_0x46b388;this[_0x310e41(0x132)]=_0x5cf2e3,this[_0x310e41(_0x48def5._0x1f022f)]=createRecorder();}['behavior'];static{__name(this,_0x46b388(0x110));}[_0x46b388(0x121)]=![];[_0x46b388(0x15b)];[_0x46b388(0x161)]=[];async[_0x46b388(0x137)](_0x1d6eaa){const _0x5bee0f={_0x380271:0x15b,_0x3b177d:0x157,_0x20ebe7:0xff},_0x12f900=_0x46b388;this[_0x12f900(_0x5bee0f._0x380271)][_0x12f900(_0x5bee0f._0x3b177d)]({'scope':_0x12f900(_0x5bee0f._0x20ebe7),'method':'launch','args':[_0x1d6eaa]}),this['launched']=!![];}async[_0x46b388(0x14f)](_0xa248f9){const _0xd2f275={_0x1848f4:0x14f,_0x14a146:0x16f,_0x299c51:0x162,_0x5ab702:0x161},_0x1664a1=_0x46b388;this[_0x1664a1(0x15b)][_0x1664a1(0x157)]({'scope':_0x1664a1(0xff),'method':_0x1664a1(_0xd2f275._0x1848f4),'args':[_0xa248f9]});if(!this[_0x1664a1(0x121)])throw new DriverError(_0x1664a1(_0xd2f275._0x14a146),{});const _0x200772=new FakeContext(this[_0x1664a1(0x15b)],this[_0x1664a1(0x132)],_0x1664a1(_0xd2f275._0x299c51)+this[_0x1664a1(_0xd2f275._0x5ab702)][_0x1664a1(0x12c)]);return this[_0x1664a1(_0xd2f275._0x5ab702)][_0x1664a1(0x157)](_0x200772),_0x200772;}async[_0x46b388(0x105)](){const _0x5a6c8b={_0x38c232:0x15b,_0x83487b:0x105},_0x1b3e49=_0x46b388;this[_0x1b3e49(_0x5a6c8b._0x38c232)]['push']({'scope':'driver','method':_0x1b3e49(_0x5a6c8b._0x83487b),'args':[]}),this[_0x1b3e49(0x121)]=![];}['wsEndpoint'](){return void 0x0;}async[_0x46b388(0x165)](){const _0x5c88a9=_0x46b388;throw new DriverError(_0x5c88a9(0x117),{});}[_0x46b388(0x11c)](_0x3e263f){throw new DriverError('attachExisting\x20not\x20supported\x20by\x20FakeWebDriver',{});}[_0x46b388(0x109)](){return this['recorder']['calls']();}[_0x46b388(0x124)](_0x5a0361){const _0x12a49f={_0x377218:0x109},_0x1ae154=_0x46b388;return this[_0x1ae154(0x15b)][_0x1ae154(_0x12a49f._0x377218)]()[_0x1ae154(0x106)](_0x26b38d=>_0x26b38d[_0x1ae154(0x160)]===_0x5a0361);}};export{FakeWebDriver};
|
|
1
|
+
const _0x426ece=_0x1de0;(function(_0x33b7fd,_0x29f38f){const _0xfff5bb={_0x52fbd1:0x9f,_0x273e77:0xe0,_0x498f7f:0xdc,_0x439fcc:0x8d},_0x2259e6=_0x1de0,_0x463081=_0x33b7fd();while(!![]){try{const _0x30a4d2=-parseInt(_0x2259e6(_0xfff5bb._0x52fbd1))/0x1+-parseInt(_0x2259e6(0xc8))/0x2+parseInt(_0x2259e6(0xe3))/0x3*(parseInt(_0x2259e6(_0xfff5bb._0x273e77))/0x4)+-parseInt(_0x2259e6(_0xfff5bb._0x498f7f))/0x5+-parseInt(_0x2259e6(0x102))/0x6*(-parseInt(_0x2259e6(0x98))/0x7)+parseInt(_0x2259e6(0x109))/0x8+-parseInt(_0x2259e6(_0xfff5bb._0x439fcc))/0x9*(parseInt(_0x2259e6(0xb1))/0xa);if(_0x30a4d2===_0x29f38f)break;else _0x463081['push'](_0x463081['shift']());}catch(_0x1d6452){_0x463081['push'](_0x463081['shift']());}}}(_0x2b0f,0x33933));var __defProp=Object[_0x426ece(0x103)],__name=(_0x1e11d5,_0x58ba65)=>__defProp(_0x1e11d5,'name',{'value':_0x58ba65,'configurable':!![]});function _0x2b0f(){const _0x2ac1b6=['Aw5WDxrwywX1zq','C2f2zvn0B3jHz2vtDgf0zq','CMvJB3jKzxi','mZeXmJH0zvrUsKm','zgvMAw5LuhjVCgvYDhK','tg9JyxrVCKvYCM9Y','C3bSAwnL','DxjS','z2v0q29VA2LL','Aw5WDxrwywX1zuj5rgvMyxvSDa','mteYmdG3mKPfBgvWAG','yxr0CMLIDxrLC0j5rgvMyxvSDa','mtKXndKZouzJDKnKBa','zhjHz0fUzerYB3a','z29cywnR','zw50zxjgCMfTzsbJywXSzwqGD2L0AcbLBxb0EsbSB2nHDg9Y','Bg9JywXtDg9YywDLu3rHDgu','B25bzNrLCKnSAwnR','rMfRzvDLyKrYAxzLCG','D2fPDezVCLvYBa','CgfNzuXPC3q','ywn0AxzLswr4','Cg9WDxbpBKnSAwnR','mZCXrMnqEKvz','BMv3ugfNzuXPC3rLBMvYCW','zNvUy3rPB24','zhjPDMvY','y2HLy2TLzfn0yxrL','ywn0AxzLugfNzq','CgfNzxm','mte5mZmWBxDJAwrk','Dgv4DenVBNrLBNrcEurLzMf1Bhq','BgvUz3rO','AxnwAxnPyMXL','zMfRzsb0AxrSzq','CgfNzsbPBMrLEcbVDxqGB2yGCMfUz2u','pgrPDJ48l2rPDJ4','C2nYzwvUC2HVDa','DhLWzq','y3vYCMvUDfvYBa','y29UBMvJDfnOyxjLzcbUB3qGC3vWCg9YDgvKigj5iezHA2vxzwjeCML2zxi','zg91yMXLq2XPy2S','CMvSB2fK','C3rLChm','C2nVCgu','Bgf1BMnO','zxzHBhvHDgu','z2v0qxr0CMLIDxrL','mtbcvgvtEg4','BMv3q29UDgv4DcbJywXSzwqGyMvMB3jLigXHDw5JAcGP','D2fPDezVCKXVywrtDgf0zq','CMvJB3jK','y291BNrcEurLzMf1Bhq','CMvM','y2XPy2S','y29VA2LLCW','zgvSzxrL','yxr0ywnOrxHPC3rPBMC','y291BNq','C2v0q29VA2LL','zxjYB3jpBK5LEhrby3rPB24','z2v0tg9JywXtDg9YywDL','B3v0zxjive1m','C2nYzwvUC2HVDevSzw1LBNq','rhjPDMvYrxjYB3i','zMLSDgvY','C2nYzwvUC2HVDej5DgvZ','BMv3q29UDgv4Da','zw1PDezHA2vqB3b1Ca','z29gB3j3yxjK','C2v0qwn0AxzLugfNzq','otmYodzHy2TtvvK','y2XVC2u','Bgf1BMnOzwq','Bwv0Ag9K','AxneAxnHyMXLza','Aw5PDgLHBfvYBa','y2fSBhm','Dgv4DenVBNrLBNq','AxnwAxnPyMXLqNLezwzHDwX0','D3nfBMrWB2LUDa','zxzHBhvHDgvpBKXVy2f0B3i','Ag92zxi','lNbHz2u','BM8Gywn0AxzLihbHz2uGAw4Gy29UDgv4Da','zMfRzs1WBMC','y29UDgv4Dhm','z290BW','ChjLC3m','Aw5ZCgvJDevSzw1LBNq','A2LUza','mte1ndG1A1nXDevN','y29UC29SzuvUDhjPzxm','B25ozxDqywDL','yMvOyxzPB3i','nZKYmdC2ve5nB2nP','y2fSBhngB3i','zxzHBhvHDgvszxn1Bhq','m1j1uKzLqG','zxHPDezYyw1LignHBgXLzcb3AxrOig5VigzYyw1Lig9UihrOzsbZDgfJAW','ywrK','y2HLy2TLzfn0yxrLqNLezwzHDwX0','lNbHz2uW','zNjHBwvtDgfJAW','DxbSB2fKrMLSzq','C2nYB2XSsw50B1zPzxC','y3jLyxrLuMvJB3jKzxi','C2v0tg9JywXtDg9YywDL','Aw5UzxjuzxH0qNLezwzHDwX0','y29VA2LLu3rHDgu','D2fPDezVCG','y3r4','C3vIC2nYAwjL','C2vSzwn0t3b0Aw9U','D2fPDezVCK5HDMLNyxrPB24','ChvZAa','Bwf5yMvuAhjVDW','Dw5JAgvJAW','ywjVDxq6yMXHBMS','rMfRzunVBNrLEhq','zxHPDezYyw1L','D2fPDezVCLrLEhq','y2XPCgjVyxjKugfZDgu','y2HLy2S','BMv0D29YA0vUDhjPzxm','iJ48l2rPDJ4'];_0x2b0f=function(){return _0x2ac1b6;};return _0x2b0f();}function _0x1de0(_0xcf1065,_0x5da570){_0xcf1065=_0xcf1065-0x8d;const _0x2b0f7a=_0x2b0f();let _0x1de07b=_0x2b0f7a[_0xcf1065];if(_0x1de0['KLSyLY']===undefined){var _0x5d5144=function(_0x4c43e2){const _0x168379='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1e11d5='',_0x58ba65='';for(let _0x35e6d7=0x0,_0x5d279f,_0x26b6b9,_0x31213c=0x0;_0x26b6b9=_0x4c43e2['charAt'](_0x31213c++);~_0x26b6b9&&(_0x5d279f=_0x35e6d7%0x4?_0x5d279f*0x40+_0x26b6b9:_0x26b6b9,_0x35e6d7++%0x4)?_0x1e11d5+=String['fromCharCode'](0xff&_0x5d279f>>(-0x2*_0x35e6d7&0x6)):0x0){_0x26b6b9=_0x168379['indexOf'](_0x26b6b9);}for(let _0x22c5d0=0x0,_0x167954=_0x1e11d5['length'];_0x22c5d0<_0x167954;_0x22c5d0++){_0x58ba65+='%'+('00'+_0x1e11d5['charCodeAt'](_0x22c5d0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x58ba65);};_0x1de0['uJMHeI']=_0x5d5144,_0x1de0['BobIjF']={},_0x1de0['KLSyLY']=!![];}const _0x3cb3d8=_0x2b0f7a[0x0],_0x156c1e=_0xcf1065+_0x3cb3d8,_0xf6932f=_0x1de0['BobIjF'][_0x156c1e];return!_0xf6932f?(_0x1de07b=_0x1de0['uJMHeI'](_0x1de07b),_0x1de0['BobIjF'][_0x156c1e]=_0x1de07b):_0x1de07b=_0xf6932f,_0x1de07b;}function subscribe(_0x35e6d7,_0x5d279f){const _0x3be862={_0x5e3d4d:0xe5},_0x256a67={_0x446cdc:0xb9},_0x229f58=_0x426ece;return _0x35e6d7[_0x229f58(_0x3be862._0x5e3d4d)](_0x5d279f),()=>{const _0x25d04f=_0x229f58;_0x35e6d7[_0x25d04f(_0x256a67._0x446cdc)](_0x5d279f);};}__name(subscribe,_0x426ece(0xf1));import{UnotestError}from'@unotest/core';var DriverError=class extends UnotestError{static{__name(this,_0x426ece(0xc1));}},LocatorError=class extends UnotestError{static{__name(this,_0x426ece(0x104));}};function createRecorder(){const _0x2d88d9={_0x217bb3:0xf4},_0x96242c=_0x426ece,_0x26b6b9=[];let _0x31213c=0x0;return{'push':__name(_0x22c5d0=>_0x26b6b9[_0x96242c(0xf4)]({..._0x22c5d0,'seq':_0x31213c++}),_0x96242c(_0x2d88d9._0x217bb3)),'calls':__name(()=>_0x26b6b9,'calls')};}__name(createRecorder,_0x426ece(0xeb));var FakePage=class{constructor(_0x167954,_0x1d6a29,_0x163c12,_0x10e7d2){const _0x29265b={_0x1c102a:0xa8},_0x142129=_0x426ece;this['recorder']=_0x167954,this[_0x142129(0xdf)]=_0x1d6a29,this['scope']=_0x163c12,this[_0x142129(_0x29265b._0x1c102a)]=_0x10e7d2;}[_0x426ece(0x101)];['behavior'];[_0x426ece(0xad)];static{__name(this,'FakePage');}['currentUrl'];['onAfterClick'];['record'](_0x69fd1a,_0x131fbd){const _0x5ce597=_0x426ece;this['recorder']['push']({'scope':this[_0x5ce597(0xad)],'method':_0x69fd1a,'args':_0x131fbd});}['maybeThrow'](){const _0x35af42={_0x2a9ad8:0xbd,_0x178e31:0xdf},_0x2b98c6=_0x426ece;if(this[_0x2b98c6(0xdf)][_0x2b98c6(_0x35af42._0x2a9ad8)]){const _0x3f84ef=this[_0x2b98c6(0xdf)][_0x2b98c6(0xbd)];this[_0x2b98c6(_0x35af42._0x178e31)][_0x2b98c6(0xbd)]=void 0x0;throw _0x3f84ef;}}[_0x426ece(0x106)](){return this['currentUrl'];}async['title'](){const _0x378911={_0x2d198c:0xb4,_0x3184eb:0xa3},_0x335070=_0x426ece;return this[_0x335070(_0x378911._0x2d198c)]('title',[]),_0x335070(_0x378911._0x3184eb);}async[_0x426ece(0xb7)](_0x515d3f,_0x134e22){const _0x364326={_0x482a76:0xb7,_0x314cd5:0x92},_0x26464a=_0x426ece;this[_0x26464a(0xb4)](_0x26464a(_0x364326._0x482a76),[_0x515d3f,_0x134e22]),this['maybeThrow'](),this[_0x26464a(_0x364326._0x314cd5)]?.();}async[_0x426ece(0xaa)](_0x4a7647,_0x8661ea){const _0x5f16dd={_0x170634:0xaa},_0x430fab=_0x426ece;this[_0x430fab(0xb4)](_0x430fab(_0x5f16dd._0x170634),[_0x4a7647,_0x8661ea]),this['maybeThrow']();}async['fill'](_0x43a183,_0x286ee6,_0x815deb){const _0x157eaf=_0x426ece;this['record']('fill',[_0x43a183,_0x286ee6,_0x815deb]),this[_0x157eaf(0xf5)]();}async[_0x426ece(0xd9)](_0x28db79,_0x1de0f7,_0x4bb4ba){const _0x2f6f2c={_0x593a17:0xb4,_0x2148e0:0xf5},_0x1929dd=_0x426ece;this[_0x1929dd(_0x2f6f2c._0x593a17)]('press',[_0x28db79,_0x1de0f7,_0x4bb4ba]),this[_0x1929dd(_0x2f6f2c._0x2148e0)]();}async[_0x426ece(0xfc)](_0x2c6a12,_0x30521d){const _0x3608fc=_0x426ece;this['record']('check',[_0x2c6a12,_0x30521d]),this[_0x3608fc(0xf5)]();}async['uncheck'](_0x37f27b,_0x55900f){const _0x75774={_0x1233b6:0xf5},_0x2e7cf2=_0x426ece;this['record'](_0x2e7cf2(0xf6),[_0x37f27b,_0x55900f]),this[_0x2e7cf2(_0x75774._0x1233b6)]();}async[_0x426ece(0xf2)](_0xd48f0c,_0x3fb18a,_0x15d70e){const _0x5ac3b7={_0x428053:0xb4,_0xa39844:0xf2},_0x36f498=_0x426ece;this[_0x36f498(_0x5ac3b7._0x428053)](_0x36f498(_0x5ac3b7._0xa39844),[_0xd48f0c,_0x3fb18a,_0x15d70e]),this[_0x36f498(0xf5)]();}async['hover'](_0x4fd446,_0x39758c){const _0x2d2b24=_0x426ece;this[_0x2d2b24(0xb4)](_0x2d2b24(0xd3),[_0x4fd446,_0x39758c]),this['maybeThrow']();}async[_0x426ece(0xea)](_0x33dd81){const _0x5add60={_0x3b0df9:0xb4,_0x43e672:0xf5},_0x4d90c6=_0x426ece;this[_0x4d90c6(_0x5add60._0x3b0df9)]('scrollIntoView',[_0x33dd81]),this[_0x4d90c6(_0x5add60._0x43e672)]();}async[_0x426ece(0x8e)](_0x3feff0,_0x4129aa,_0x51b136){const _0x17307a={_0xd28473:0xf5},_0x11f1e6=_0x426ece;this['record'](_0x11f1e6(0x8e),[_0x3feff0,_0x4129aa,_0x51b136]),this[_0x11f1e6(_0x17307a._0xd28473)]();}async['uploadFile'](_0x2dc0ca,_0x47ab6d){const _0x5ca301={_0xed1a11:0xe9},_0x326b0c=_0x426ece;this[_0x326b0c(0xb4)](_0x326b0c(_0x5ca301._0xed1a11),[_0x2dc0ca,_0x47ab6d]),this['maybeThrow']();}async[_0x426ece(0xfb)](_0x54d74c,_0x27d233){const _0x56eca9={_0x3566bf:0xf5},_0x2f3b82=_0x426ece;this[_0x2f3b82(0xb4)]('clipboardPaste',[_0x54d74c,_0x27d233]),this[_0x2f3b82(_0x56eca9._0x3566bf)]();}async['count'](_0x21f934){const _0x5a7d3f={_0x154662:0xb4,_0x1d9c22:0xbb,_0x592e30:0xdf},_0x525b23=_0x426ece;return this[_0x525b23(_0x5a7d3f._0x154662)](_0x525b23(_0x5a7d3f._0x1d9c22),[_0x21f934]),this[_0x525b23(_0x5a7d3f._0x592e30)][_0x525b23(0xb5)]??0x1;}async[_0x426ece(0xcf)](_0x475872){const _0x60cfad={_0x3a7082:0xcf,_0x10c5a3:0xdf},_0x904da3=_0x426ece;return this[_0x904da3(0xb4)](_0x904da3(_0x60cfad._0x3a7082),[_0x475872]),this[_0x904da3(_0x60cfad._0x10c5a3)]['textContentByDefault']??'';}async['innerText'](_0x1cf3d5){const _0x2a11bf={_0x1a2309:0xed},_0x515675=_0x426ece;return this['record']('innerText',[_0x1cf3d5]),this[_0x515675(0xdf)][_0x515675(_0x2a11bf._0x1a2309)]??this['behavior'][_0x515675(0xa0)]??'';}async[_0x426ece(0xff)](_0x2cfe76){const _0x53f504={_0x4b48eb:0xdf,_0x4bed98:0x108},_0x1c7da8=_0x426ece;return this[_0x1c7da8(0xb4)](_0x1c7da8(0xff),[_0x2cfe76]),this[_0x1c7da8(_0x53f504._0x4b48eb)][_0x1c7da8(_0x53f504._0x4bed98)]??'';}async[_0x426ece(0x9c)](_0x196ca9){const _0x23ab84={_0x404f53:0x9c,_0x121539:0xdf,_0x530e16:0xe6},_0x15b785=_0x426ece;return this['record'](_0x15b785(_0x23ab84._0x404f53),[_0x196ca9]),this[_0x15b785(_0x23ab84._0x121539)][_0x15b785(_0x23ab84._0x530e16)]??null;}async[_0x426ece(0xa2)](_0x190b45){const _0x77744f=_0x426ece;return this[_0x77744f(0xb4)](_0x77744f(0xa2),[_0x190b45]),this[_0x77744f(0xdf)][_0x77744f(0xd0)]??!![];}async[_0x426ece(0xcc)](_0x291bee){const _0x3761af={_0x3c87af:0xb4},_0x10b1b5=_0x426ece;return this[_0x10b1b5(_0x3761af._0x3c87af)](_0x10b1b5(0xcc),[_0x291bee]),this[_0x10b1b5(0xdf)]['isDisabledByDefault']??![];}async[_0x426ece(0xb0)](_0x497fe9,_0x10cca3){const _0x3a0eff={_0x33f670:0x10a},_0x334b5f=_0x426ece;return this['record'](_0x334b5f(0xb0),[_0x497fe9,_0x10cca3]),this['behavior'][_0x334b5f(_0x3a0eff._0x33f670)]?.[_0x10cca3]??null;}async['waitFor'](_0x126465,_0x2d47df){const _0x172674={_0x3d7f33:0xb4,_0x503849:0xef},_0x205368=_0x426ece;this[_0x205368(_0x172674._0x3d7f33)](_0x205368(_0x172674._0x503849),[_0x126465,_0x2d47df]);}async[_0x426ece(0x94)](_0x506a4f,_0x68951){const _0x2bd1ee={_0xfa21dd:0x94},_0x484995=_0x426ece;this[_0x484995(0xb4)](_0x484995(_0x2bd1ee._0xfa21dd),[_0x506a4f,_0x68951]);}async[_0x426ece(0xfa)](_0x40866c,_0x5084c3){const _0x44d621=_0x426ece;this['record'](_0x44d621(0xfa),[_0x40866c,_0x5084c3]);}async[_0x426ece(0xf3)](_0x55a7b9){const _0x47a671=_0x426ece;this[_0x47a671(0xb4)](_0x47a671(0xf3),[_0x55a7b9]);}async[_0x426ece(0xb3)](_0x3ab04e,_0x4667bd){const _0x1d0f02={_0xa171d5:0xb4},_0x2cb8cb=_0x426ece;this[_0x2cb8cb(_0x1d0f02._0xa171d5)](_0x2cb8cb(0xb3),[_0x3ab04e,_0x4667bd]);}async[_0x426ece(0xd8)](_0x4d34f3,_0x140879){const _0x557bf5={_0x1a6d55:0xd8},_0x1fcd9c=_0x426ece;this['record'](_0x1fcd9c(_0x557bf5._0x1a6d55),[_0x4d34f3,_0x140879]),this[_0x1fcd9c(0xa8)]=_0x4d34f3;}async['reload'](_0x2c9306){const _0x4fd053={_0x4786bb:0xb4,_0x5dae18:0xab},_0x43169b=_0x426ece;this[_0x43169b(_0x4fd053._0x4786bb)](_0x43169b(_0x4fd053._0x5dae18),[_0x2c9306]);}async[_0x426ece(0x8f)](_0x397000){const _0x5a52c6=_0x426ece;this[_0x5a52c6(0xb4)](_0x5a52c6(0x8f),[_0x397000]);}async[_0x426ece(0xc6)](_0x3209ef){const _0x4205aa={_0x164761:0xb4,_0x295598:0xc6},_0x3da038=_0x426ece;this[_0x3da038(_0x4205aa._0x164761)](_0x3da038(_0x4205aa._0x295598),[_0x3209ef]);}async['evaluate'](_0x25a2c2){const _0x17a545={_0x1b2d06:0xaf,_0x12a48a:0xe2},_0x51d25c=_0x426ece;return this[_0x51d25c(0xb4)](_0x51d25c(_0x17a545._0x1b2d06),[_0x25a2c2]),this[_0x51d25c(0xdf)][_0x51d25c(_0x17a545._0x12a48a)];}async[_0x426ece(0xd2)](_0x48ce32,_0x55cbc7){const _0xcafb68={_0x14fc42:0xb4,_0x3ee9a2:0xd2},_0x4ff186=_0x426ece;return this[_0x4ff186(_0xcafb68._0x14fc42)](_0x4ff186(_0xcafb68._0x3ee9a2),[_0x48ce32,_0x55cbc7]),void 0x0;}async[_0x426ece(0xda)](_0x30195c){const _0x1602a6={_0x5d8089:0xac,_0x5477c7:0xa1,_0x288b43:0xb6},_0x2e4103=_0x426ece;this[_0x2e4103(0xb4)](_0x2e4103(0xda),[_0x30195c]);if(_0x30195c[_0x2e4103(_0x1602a6._0x5d8089)][_0x2e4103(_0x1602a6._0x5477c7)]!==0x1||_0x30195c['steps'][0x0]['kind']!==_0x2e4103(_0x1602a6._0x288b43))return null;const _0xf8034e=_0x30195c[_0x2e4103(0xac)][0x0]['ref'],_0x478cbb=this['behavior']['elementHintByRef']?.[_0xf8034e];return _0x478cbb??null;}async['screenshot'](_0x126bd4){const _0x2d5162=_0x426ece;return this['record'](_0x2d5162(0xa6),[_0x126bd4]),this['screenshotBytes'](_0x126bd4?.['type']);}async[_0x426ece(0xc0)](_0x4001cc,_0x1bf989){const _0x343fc8={_0x4102b5:0xb4,_0x138cf9:0xc0,_0x1dcdcb:0xa7},_0x45fb7a=_0x426ece;return this[_0x45fb7a(_0x343fc8._0x4102b5)](_0x45fb7a(_0x343fc8._0x138cf9),[_0x4001cc,_0x1bf989]),this[_0x45fb7a(0xc3)](_0x1bf989?.[_0x45fb7a(_0x343fc8._0x1dcdcb)]);}[_0x426ece(0xc3)](_0x10825c){const _0x415802={_0x4b1f2e:0xc3},_0x219883=_0x426ece,_0xaee301=this[_0x219883(0xdf)][_0x219883(_0x415802._0x4b1f2e)];if(_0xaee301===void 0x0)return Buffer['from'](_0x219883(0xd6));return typeof _0xaee301===_0x219883(0x9a)?_0xaee301(_0x10825c):_0xaee301;}async[_0x426ece(0xbf)](_0x6ea1e6){const _0x1b89db={_0x444cdc:0xbf,_0x683d44:0xa1,_0x4f899e:0xac,_0x53b23d:0xfe,_0x42b9bd:0xa5},_0x426b1c=_0x426ece;this['record'](_0x426b1c(_0x1b89db._0x444cdc),[_0x6ea1e6]);if(_0x6ea1e6['steps'][_0x426b1c(_0x1b89db._0x683d44)]===0x1&&_0x6ea1e6[_0x426b1c(0xac)][0x0][_0x426b1c(0xdb)]==='ref'){const _0x3d04c2=_0x6ea1e6[_0x426b1c(_0x1b89db._0x4f899e)][0x0][_0x426b1c(0xb6)];return this['behavior']['outerHtmlByRef']?.[_0x3d04c2]??'<div\x20data-unotest-ref=\x22'+_0x3d04c2+_0x426b1c(_0x1b89db._0x53b23d);}return _0x426b1c(_0x1b89db._0x42b9bd);}},FakeContext=class{constructor(_0x35001c,_0x3f50ba,_0x467e0f){const _0x475579={_0x3d7c4f:0xdf,_0x394863:0xad,_0x4e9c10:0xf7},_0x4d7fbf={_0x510551:0x97},_0x4aab17=_0x426ece;this[_0x4aab17(0x101)]=_0x35001c,this[_0x4aab17(_0x475579._0x3d7c4f)]=_0x3f50ba,this[_0x4aab17(_0x475579._0x394863)]=_0x467e0f;const _0x307ace=new FakePage(_0x35001c,_0x3f50ba,_0x467e0f+_0x4aab17(0xe7),_0x3f50ba[_0x4aab17(0xcd)]??_0x4aab17(_0x475579._0x4e9c10));_0x3f50ba[_0x4aab17(0x97)]&&(_0x307ace['onAfterClick']=()=>{const _0x55493e=_0x4aab17;this['emitFakePopup'](_0x3f50ba[_0x55493e(_0x4d7fbf._0x510551)]);}),this[_0x4aab17(0x95)]=[_0x307ace],this[_0x4aab17(0x91)]={..._0x3f50ba['localStorage']??{}},this['cookieState']={..._0x3f50ba[_0x4aab17(0xb8)]??{}};}[_0x426ece(0x101)];[_0x426ece(0xdf)];[_0x426ece(0xad)];static{__name(this,_0x426ece(0xf8));}['pageList'];[_0x426ece(0x96)]=0x0;[_0x426ece(0xe8)]=[];['localStorageState'];[_0x426ece(0xee)];[_0x426ece(0x99)]=new Set();[_0x426ece(0xb4)](_0x19ccf8,_0x5cf96b){const _0x163f58={_0x4ed95a:0xad},_0x51d924=_0x426ece;this[_0x51d924(0x101)]['push']({'scope':this[_0x51d924(_0x163f58._0x4ed95a)],'method':_0x19ccf8,'args':_0x5cf96b});}[_0x426ece(0x9e)](){const _0x4caa6e={_0x5d1c7b:0x95},_0xb89844=_0x426ece;return this[_0xb89844(_0x4caa6e._0x5d1c7b)];}[_0x426ece(0x9d)](){const _0x4e196b={_0x10b817:0x95},_0x46c4a6=_0x426ece,_0x2103e7=this[_0x46c4a6(_0x4e196b._0x10b817)][this['activeIdx']];if(!_0x2103e7)throw new DriverError(_0x46c4a6(0xd5),{'activeIdx':this[_0x46c4a6(0x96)]});return _0x2103e7;}[_0x426ece(0xdd)](){const _0x3c517a={_0x413e27:0xdd},_0x1fb29a=_0x426ece;return this[_0x1fb29a(0xdf)][_0x1fb29a(_0x3c517a._0x413e27)]??[];}[_0x426ece(0xfd)](){const _0xa75d36=_0x426ece;return this['behavior'][_0xa75d36(0xfd)]??[];}async[_0x426ece(0xc7)](_0x3fa7a2){const _0x1cf4ea={_0x1d8cdc:0x95,_0x12337e:0x96},_0x4d7e5a=_0x426ece;this['record']('setActivePage',[_0x3fa7a2]);if(_0x3fa7a2<0x0||_0x3fa7a2>=this[_0x4d7e5a(_0x1cf4ea._0x1d8cdc)][_0x4d7e5a(0xa1)])throw new DriverError(_0x4d7e5a(0xa4),{'index':_0x3fa7a2,'available':this[_0x4d7e5a(0x95)][_0x4d7e5a(0xa1)]});this[_0x4d7e5a(_0x1cf4ea._0x12337e)]=_0x3fa7a2,this[_0x4d7e5a(0xe8)]['length']=0x0;}[_0x426ece(0xde)](_0x485a51){return subscribe(this['newPageListeners'],_0x485a51);}[_0x426ece(0xc5)](_0x377a99){const _0x327b14={_0x3e8cfe:0x101,_0x434d97:0xdf,_0x317292:0x95},_0x7eba5e=_0x426ece,_0x9ad6b6=this[_0x7eba5e(0xad)]+_0x7eba5e(0xd4)+this['pageList']['length'],_0x1f8b60=new FakePage(this[_0x7eba5e(_0x327b14._0x3e8cfe)],this[_0x7eba5e(_0x327b14._0x434d97)],_0x9ad6b6,_0x377a99);this[_0x7eba5e(_0x327b14._0x317292)][_0x7eba5e(0xf4)](_0x1f8b60);const _0x20f685=this[_0x7eba5e(_0x327b14._0x317292)][_0x7eba5e(0xa1)]-0x1;for(const _0x48ef11 of this['newPageListeners']){try{_0x48ef11({'index':_0x20f685,'url':_0x377a99});}catch{}}return _0x20f685;}['closeFakePage'](_0xd9e4b1){const _0x450831={_0xaa281c:0x95,_0x1b279a:0xa4,_0x304fa9:0xa1},_0x2db312=_0x426ece;if(_0xd9e4b1<0x0||_0xd9e4b1>=this[_0x2db312(_0x450831._0xaa281c)][_0x2db312(0xa1)])throw new DriverError(_0x2db312(_0x450831._0x1b279a),{'index':_0xd9e4b1,'available':this['pageList'][_0x2db312(_0x450831._0x304fa9)]});this[_0x2db312(0x95)][_0x2db312(0x105)](_0xd9e4b1,0x1);}async['enterFrame'](_0x481cce){const _0x4e4045=_0x426ece;this[_0x4e4045(0xb4)]('enterFrame',[_0x481cce]);if(!_0x481cce['steps'][_0x4e4045(0xa1)])throw new LocatorError(_0x4e4045(0x90),{'locator':_0x481cce});this[_0x4e4045(0xe8)][_0x4e4045(0xf4)](_0x481cce);}async[_0x426ece(0xf9)](){const _0x5e94af={_0x91f292:0xf9,_0x297db0:0xe8},_0x4345af=_0x426ece;this[_0x4345af(0xb4)](_0x4345af(_0x5e94af._0x91f292),[]);if(this[_0x4345af(_0x5e94af._0x297db0)][_0x4345af(0xa1)]===0x0)throw new DriverError(_0x4345af(0xe4),{});this['frameStack']['pop']();}async[_0x426ece(0xec)](_0x55978c,_0x5aa38a){const _0x161371={_0x31a52a:0xec},_0x237f70=_0x426ece;this[_0x237f70(0xb4)](_0x237f70(_0x161371._0x31a52a),[_0x55978c,_0x5aa38a]),this['localStorageState'][_0x55978c]=_0x5aa38a;}async[_0x426ece(0xbe)](_0x46d754){const _0x22f740={_0x4ca0be:0x91},_0x32615f=_0x426ece;return this[_0x32615f(0xb4)]('getLocalStorage',[_0x46d754]),this[_0x32615f(_0x22f740._0x4ca0be)][_0x46d754]??null;}async[_0x426ece(0xbc)](_0x373d94,_0x30858f,_0x1e950e){const _0x4948de={_0x93d5b4:0xbc,_0x590584:0xee},_0x488719=_0x426ece;this['record'](_0x488719(_0x4948de._0x93d5b4),[_0x373d94,_0x30858f,_0x1e950e]),this[_0x488719(_0x4948de._0x590584)][_0x373d94]=_0x30858f;}async['getCookie'](_0x2ead88){const _0x2be80f={_0x3cbcec:0xee},_0x10fc10=_0x426ece;return this[_0x10fc10(0xb4)](_0x10fc10(0x107),[_0x2ead88]),this[_0x10fc10(_0x2be80f._0x3cbcec)][_0x2ead88]??null;}async[_0x426ece(0x100)](_0x277dc9){const _0x1e3188={_0x4bdc4e:0xb4},_0xed3040=_0x426ece;this[_0xed3040(_0x1e3188._0x4bdc4e)](_0xed3040(0x100),[_0x277dc9]);}async[_0x426ece(0xaf)](_0x5ac683){const _0xd02c77={_0x5d94c4:0xaf},_0x475dc1=_0x426ece;return this[_0x475dc1(0xb4)](_0x475dc1(_0xd02c77._0x5d94c4),[_0x5ac683]),void 0x0;}async[_0x426ece(0xc9)](){const _0x2910ae={_0x1b680d:0xb4},_0x596eeb=_0x426ece;this[_0x596eeb(_0x2910ae._0x1b680d)](_0x596eeb(0xc9),[]);}['frameDepth'](){return this['frameStack']['length'];}},FakeWebDriver=class{constructor(_0xfe3a41={}){const _0x59797e={_0x256ebb:0xdf,_0xb7512d:0x101},_0x4e4fa1=_0x426ece;this[_0x4e4fa1(_0x59797e._0x256ebb)]=_0xfe3a41,this[_0x4e4fa1(_0x59797e._0xb7512d)]=createRecorder();}[_0x426ece(0xdf)];static{__name(this,_0x426ece(0x93));}[_0x426ece(0xca)]=![];[_0x426ece(0x101)];[_0x426ece(0xd7)]=[];async[_0x426ece(0xae)](_0x2e35af){const _0x2e483c={_0x535e83:0x101,_0x234b8c:0xae},_0xb0f031=_0x426ece;this[_0xb0f031(_0x2e483c._0x535e83)]['push']({'scope':_0xb0f031(0x9b),'method':_0xb0f031(_0x2e483c._0x234b8c),'args':[_0x2e35af]}),this[_0xb0f031(0xca)]=!![];}async['newContext'](_0x417f12){const _0x3c786f={_0x3d1e54:0x101,_0x317663:0xf4,_0x41f833:0xb2,_0x2cd109:0xdf,_0x4eeb0e:0xf0},_0xe288dc=_0x426ece;this[_0xe288dc(_0x3c786f._0x3d1e54)][_0xe288dc(_0x3c786f._0x317663)]({'scope':'driver','method':_0xe288dc(0xc4),'args':[_0x417f12]});if(!this[_0xe288dc(0xca)])throw new DriverError(_0xe288dc(_0x3c786f._0x41f833),{});const _0x2d7de5=new FakeContext(this[_0xe288dc(0x101)],this[_0xe288dc(_0x3c786f._0x2cd109)],_0xe288dc(_0x3c786f._0x4eeb0e)+this['contexts']['length']);return this[_0xe288dc(0xd7)][_0xe288dc(0xf4)](_0x2d7de5),_0x2d7de5;}async[_0x426ece(0xc9)](){const _0x10e4a8={_0x2f117f:0xf4,_0x4f550d:0xc9,_0x3138c1:0xca},_0x40181a=_0x426ece;this[_0x40181a(0x101)][_0x40181a(_0x10e4a8._0x2f117f)]({'scope':'driver','method':_0x40181a(_0x10e4a8._0x4f550d),'args':[]}),this[_0x40181a(_0x10e4a8._0x3138c1)]=![];}[_0x426ece(0xd1)](){return void 0x0;}async['connectShared'](){const _0x4e1183={_0x9a4466:0xa9},_0x369bb3=_0x426ece;throw new DriverError(_0x369bb3(_0x4e1183._0x9a4466),{});}[_0x426ece(0xba)](_0x47f101){throw new DriverError('attachExisting\x20not\x20supported\x20by\x20FakeWebDriver',{});}[_0x426ece(0xce)](){const _0xf4bff3={_0x3cf766:0x101,_0x457b47:0xce},_0x8e2315=_0x426ece;return this[_0x8e2315(_0xf4bff3._0x3cf766)][_0x8e2315(_0xf4bff3._0x457b47)]();}[_0x426ece(0xe1)](_0x29a3d6){const _0x237c9e=_0x426ece;return this['recorder'][_0x237c9e(0xce)]()[_0x237c9e(0xc2)](_0x3a94b3=>_0x3a94b3[_0x237c9e(0xcb)]===_0x29a3d6);}};export{FakeWebDriver};
|