@unotest/web 0.28.0 → 0.29.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 +67 -0
- package/README.md +14 -0
- package/dist/config/schema.js +1 -1
- package/dist/driver/index.js +1 -1
- package/dist/dsl/index.d.ts +0 -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/dsl-reference.md +12 -0
- package/package.json +8 -8
- package/types/unotest-dsl.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,72 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.29.0] - 2026-09-02
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- ab296ff: New `env push`, `env set` and `env rm` commands send an environment's
|
|
8
|
+
values to a box — the target, the variables and the secrets a suite runs
|
|
9
|
+
with there — from the same files a local run reads (`unotest/.env`,
|
|
10
|
+
`.env.<env>`, `.secrets`, `.secrets.<env>`), or from files named with
|
|
11
|
+
`--env-file` / `--secrets-file`. `.env*` become the box environment's
|
|
12
|
+
variables, `.secrets*` its secrets and `APP_BASE_URL` its target;
|
|
13
|
+
`UNOTEST_*` and empty values stay home and are listed as skipped. A push
|
|
14
|
+
replaces the box's layers and reports what it removed; `env set` reads
|
|
15
|
+
one value from stdin, never from the command line. Values never print.
|
|
16
|
+
The commands use the project token of `bundle push`, minted on the box
|
|
17
|
+
with the new `--values` scope — a token without it is refused, so a CI
|
|
18
|
+
token that pushes suites cannot rewrite an environment's credentials.
|
|
19
|
+
`@unotest/protocol` carries the wire (`box-values.ts`) and `TARGET_ENV_VAR`.
|
|
20
|
+
The viewer's messages about box-held variables now point at these
|
|
21
|
+
commands instead of the box's shell.
|
|
22
|
+
- 64108b8: The Variables panel of a viewer on a box now lists what the box injects
|
|
23
|
+
into every run of the environment — the target URL, the operator's
|
|
24
|
+
variables and the names of the environment's secrets — as read-only rows
|
|
25
|
+
with a `box` badge. It used to read `unotest/.env*`, which never travel
|
|
26
|
+
in a bundle, and show an empty panel next to a full run history; a
|
|
27
|
+
secret's value is still never sent, only its name. The box passes the
|
|
28
|
+
names through `UNOTEST_BOX_VARIABLE_NAMES` / `UNOTEST_BOX_SECRET_NAMES`
|
|
29
|
+
(constants in `@unotest/protocol`); writes to such a key are refused
|
|
30
|
+
with 409 and point at `boxd.config.mjs` / `boxd.mjs secret set`.
|
|
31
|
+
- 64108b8: `UNOTEST_BROWSER` and `UNOTEST_BROWSER_CHANNEL` now exist as per-run
|
|
32
|
+
overrides of `browsers[0]` and `channel` in `unotest.config.*`.
|
|
33
|
+
`UNOTEST_BROWSER` was shown in the CI manual and the `.env.example`
|
|
34
|
+
template, but nothing read it — a browser matrix ran Chromium three
|
|
35
|
+
times. A value outside `chromium | firefox | webkit` (or `chrome |
|
|
36
|
+
msedge | chrome-beta | bundled`) is an error, not a silent default. The
|
|
37
|
+
config travels with the suite in a bundle, so a `channel: "chrome"`
|
|
38
|
+
written on a laptop used to ask a box for a Google Chrome it does not
|
|
39
|
+
have; a box now sets `UNOTEST_BROWSER_CHANNEL=bundled` for every run and
|
|
40
|
+
the run log names each override. Constants: `BROWSER_ENV`,
|
|
41
|
+
`BROWSER_CHANNEL_ENV`, `BUNDLED_BROWSER_CHANNEL` in `@unotest/protocol`.
|
|
42
|
+
|
|
43
|
+
### Patch Changes
|
|
44
|
+
|
|
45
|
+
- 64108b8: `init` without `--force` still leaves an existing `unotest/.env.example`
|
|
46
|
+
alone, but the skip now names the keys the current template declares
|
|
47
|
+
that the file does not — a project seeded on an older version never
|
|
48
|
+
learnt about `UNOTEST_STEP_SCREENSHOTS`, because nothing compared its
|
|
49
|
+
file with the template. The file is not touched.
|
|
50
|
+
`declaredEnvKeys()` in `@unotest/protocol` reads active and
|
|
51
|
+
commented-out keys alike. The DSL reference now documents
|
|
52
|
+
`UNOTEST_STEP_SCREENSHOTS` next to `screenshot()`: readers of that page
|
|
53
|
+
concluded the every-step mode did not exist.
|
|
54
|
+
- 64108b8: `shell()` tells a missing working directory apart from a missing
|
|
55
|
+
binary. Node reports both as `ENOENT`, and the old message sent people
|
|
56
|
+
looking for a tool that was there all along while the real cause was a
|
|
57
|
+
`sandbox.shellCwd` that exists on the laptop and not in CI or on a box.
|
|
58
|
+
The directory is checked before the spawn and the new
|
|
59
|
+
`ShellCwdMissingError` names it and where it came from.
|
|
60
|
+
- Updated dependencies [ab296ff]
|
|
61
|
+
- Updated dependencies [64108b8]
|
|
62
|
+
- Updated dependencies [64108b8]
|
|
63
|
+
- Updated dependencies [64108b8]
|
|
64
|
+
- @unotest/protocol@0.29.0
|
|
65
|
+
- @unotest/viewer@0.29.0
|
|
66
|
+
- @unotest/core@0.29.0
|
|
67
|
+
- @unotest/dsl@0.29.0
|
|
68
|
+
- @unotest/grounder-client@0.29.0
|
|
69
|
+
|
|
3
70
|
## [0.28.0] - 2026-09-01
|
|
4
71
|
|
|
5
72
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -172,6 +172,20 @@ back to GitHub. `--pr` makes a newer push withdraw the older runs of the
|
|
|
172
172
|
same pull request that are still waiting, so three pushes in five minutes
|
|
173
173
|
cost one suite. Recipe: `guides/manuals/ci-setup.md`.
|
|
174
174
|
|
|
175
|
+
The values a suite runs with on the box — `APP_BASE_URL`, its `.env`
|
|
176
|
+
settings, its secrets — are sent separately, from the same files a local
|
|
177
|
+
run reads:
|
|
178
|
+
|
|
179
|
+
```sh
|
|
180
|
+
npx @unotest/web env push dev # .env + .env.dev + .secrets + .secrets.dev
|
|
181
|
+
printf '%s' "$KEY" | npx @unotest/web env set dev API_KEY --secret
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
`.env*` become the environment's variables, `.secrets*` its secrets,
|
|
185
|
+
`APP_BASE_URL` its target; `UNOTEST_*` stay home. A value never prints.
|
|
186
|
+
The token must be minted with `--values` on the box. Admins also see and
|
|
187
|
+
change them on the box's admin page. Manual: `guides/manuals/box-values.md`.
|
|
188
|
+
|
|
175
189
|
## 5. Watch it run — the viewer
|
|
176
190
|
|
|
177
191
|
`npx @unotest/web viewer` opens a local UI (no cloud, no account):
|
package/dist/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x4a6152=_0x5995;function _0x1341(){var _0x209fe8=['y3jHC2G','ywnJzxb0','y2HYB21PDw0','mZG1nwneBfrcEq','y2HYB21L','zgvMyxvSDa','odyXrvLwDhfd','DMfSAwrHDg9YoMLMlxnOyxbL','D2vIA2L0','DMfSAwrHDg9YoMXPC3qTyxjN','zw51Bq','yM9VBgvHBG','mZe2mtu4mfPjr2DVtW','BgLUDdPKAxnHBwjPzY1IEs1PBMrLEa','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlwv4ChjLC3nPB24','Dw5PB24','CMvJB3jK','mJK1ntjkzuvvu2m','DMfSAwrHDg9YoNn0zxaTC2HHCgu','Cg9ZAxrPDMu','B2jQzwn0','DMfSAwrHDg9YoNn0zxaTy292zxjHz2u','DMfSAwrHDg9YoNn0CMLUzY1JB25Jyxq','lNvUB3rLC3qVzMfPBhvYzxm','DMfSAwrHDg9YoMfYAxr5','BNvTyMvY','C3rYAw5N','DMfSAwrHDg9YoNDYyxbWzwqTzM9YBwf0','Aw50','mJe2mJC3ohL2uLnqzq','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlxn0yxrLBwvUDa','Dw5VDgvZDc9LmMu','BgLUDdPNB3rVlwnVBMnHDa','DMfSAwrHDg9YoNnLBwfUDgLJlwXVC3m','nZiYnZCYmejXwxDlqG','BgLUDdPLDMfSDwf0zs1KAxnJB3vYywDLza','y2HYB21LlwjLDge','DhjHBNnPzw50','BxnLzgDL','BgLUDdPSAw50lw9Rlw1PC3nPBMCTCMvHC29U','yxjYyxK','BgLUDdPHCgKTy2fSBc1MAwXLlwjVzhK','zMLYzwzVEa','D2fYBG','B3b0Aw9UywW','BgLUDdP4Cgf0Aa','BwfUDwfS','mZy0neL5uLL1za','mteXmZa1nvHhreHAzW','BgL0zxjHBa','BgLUDdPWyxvZzs1LEhbSAwnPDa','C3rKAw8','DxjS','DMfSAwrHDg9YoM1LDgeTC2HHCgu','mtu5otKWDhHbt1fH','DMfSAwrHDg9YoMz1BMn0Aw9UlxnOyxbL','DMfSAwrHDg9YoNzHCI1ZAgfWzq','BNvSBa','B2zM','BwLU','BgLUDdPZy2vUyxjPBY1PBI1YB290','Bwf4','zxjYB3i'];_0x1341=function(){return _0x209fe8;};return _0x1341();}(function(_0x168c9e,_0x24fb0d){var _0x1ed447={_0x31b43a:0xa8,_0x2c65b2:0x95,_0x37f246:0x7b,_0x5095a9:0x84,_0x498d3c:0x6f,_0x292e09:0x7e},_0x746667=_0x5995,_0x42ac26=_0x168c9e();while(!![]){try{var _0x109fcf=parseInt(_0x746667(_0x1ed447._0x31b43a))/0x1+-parseInt(_0x746667(_0x1ed447._0x2c65b2))/0x2+-parseInt(_0x746667(_0x1ed447._0x37f246))/0x3*(-parseInt(_0x746667(0xa7))/0x4)+parseInt(_0x746667(_0x1ed447._0x5095a9))/0x5+parseInt(_0x746667(_0x1ed447._0x498d3c))/0x6+parseInt(_0x746667(_0x1ed447._0x292e09))/0x7*(-parseInt(_0x746667(0x89))/0x8)+-parseInt(_0x746667(0x9a))/0x9;if(_0x109fcf===_0x24fb0d)break;else _0x42ac26['push'](_0x42ac26['shift']());}catch(_0x22c62f){_0x42ac26['push'](_0x42ac26['shift']());}}}(_0x1341,0x936c0));import{z}from'zod';function _0x5995(_0x59be4b,_0x230267){_0x59be4b=_0x59be4b-0x6b;var _0x134156=_0x1341();var _0x59957a=_0x134156[_0x59be4b];if(_0x5995['NMVKkd']===undefined){var _0x78a2b9=function(_0x2ded07){var _0x1d1d48='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x35649c='',_0x5ba1b2='';for(var _0x4fed8b=0x0,_0x5de7a5,_0x48a6f4,_0x30bdc0=0x0;_0x48a6f4=_0x2ded07['charAt'](_0x30bdc0++);~_0x48a6f4&&(_0x5de7a5=_0x4fed8b%0x4?_0x5de7a5*0x40+_0x48a6f4:_0x48a6f4,_0x4fed8b++%0x4)?_0x35649c+=String['fromCharCode'](0xff&_0x5de7a5>>(-0x2*_0x4fed8b&0x6)):0x0){_0x48a6f4=_0x1d1d48['indexOf'](_0x48a6f4);}for(var _0x1dc017=0x0,_0x249991=_0x35649c['length'];_0x1dc017<_0x249991;_0x1dc017++){_0x5ba1b2+='%'+('00'+_0x35649c['charCodeAt'](_0x1dc017)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5ba1b2);};_0x5995['zNDKId']=_0x78a2b9,_0x5995['DRcWjo']={},_0x5995['NMVKkd']=!![];}var _0x181910=_0x134156[0x0],_0x502fa8=_0x59be4b+_0x181910,_0x420fae=_0x5995['DRcWjo'][_0x502fa8];return!_0x420fae?(_0x59957a=_0x5995['zNDKId'](_0x59957a),_0x5995['DRcWjo'][_0x502fa8]=_0x59957a):_0x59957a=_0x420fae,_0x59957a;}var BrowserSchema=z[_0x4a6152(0x82)]([_0x4a6152(0x7a),_0x4a6152(0xa2),_0x4a6152(0x80)]),BrowserChannelSchema=z[_0x4a6152(0x87)]([z['literal'](_0x4a6152(0x7c)),z[_0x4a6152(0xa9)](_0x4a6152(0x9e)),z['literal'](_0x4a6152(0x9c)),z[_0x4a6152(0x72)]()])['optional'](),ViewportSchema=z[_0x4a6152(0x8c)]({'width':z[_0x4a6152(0x91)]()['int']()[_0x4a6152(0x8b)](),'height':z[_0x4a6152(0x91)]()[_0x4a6152(0x94)]()[_0x4a6152(0x8b)]()}),RetryReasonSchema=z[_0x4a6152(0x82)]([_0x4a6152(0x9d),'network',_0x4a6152(0x78)]),RetryConfigSchema=z[_0x4a6152(0x8c)]({'count':z['number']()['int']()[_0x4a6152(0x74)](0x0)[_0x4a6152(0x76)](0xa),'on':z[_0x4a6152(0xa0)](RetryReasonSchema)}),FailureBundleConfigSchema=z[_0x4a6152(0x8c)]({'tier1':z['literal'](!![])[_0x4a6152(0x7d)](!![]),'tier2':z[_0x4a6152(0x83)](),'tier3':z[_0x4a6152(0x8c)]({'network':z[_0x4a6152(0x83)](),'video':z[_0x4a6152(0x83)]()}),'retention':z[_0x4a6152(0x8c)]({'runs':z[_0x4a6152(0x91)]()[_0x4a6152(0x94)]()[_0x4a6152(0x8b)](),'days':z[_0x4a6152(0x91)]()[_0x4a6152(0x94)]()['positive']()}),'storageDir':z[_0x4a6152(0x92)]()[_0x4a6152(0x74)](0x1)}),DialogPolicySchema=z[_0x4a6152(0x82)]([_0x4a6152(0x79),'dismiss',_0x4a6152(0xa6)]),LinterRuleIdSchema=z[_0x4a6152(0x82)](['lint:deep-css',_0x4a6152(0xa5),'lint:obfuscated-class',_0x4a6152(0x6b),_0x4a6152(0x85),_0x4a6152(0x9b),_0x4a6152(0x75),'lint:mustache-in-dsl',_0x4a6152(0x98),'lint:regex-invalid','lint:echo-assert',_0x4a6152(0xa1),_0x4a6152(0x9f),'lint:flow-returns-value','validator:unknown-function',_0x4a6152(0x90),'validator:arg-kind',_0x4a6152(0x8d),_0x4a6152(0x8a),_0x4a6152(0x6e),_0x4a6152(0x70),'validator:for-shape',_0x4a6152(0x7f),_0x4a6152(0x71),_0x4a6152(0x96),_0x4a6152(0x86),_0x4a6152(0x8e),_0x4a6152(0x99),_0x4a6152(0x81),_0x4a6152(0x93)]),LinterSeveritySchema=z[_0x4a6152(0x82)]([_0x4a6152(0x73),_0x4a6152(0xa3),_0x4a6152(0x77)]),LinterConfigSchema=z[_0x4a6152(0x8c)]({'enabled':z[_0x4a6152(0x83)](),'rules':z[_0x4a6152(0x88)](LinterRuleIdSchema,LinterSeveritySchema)}),QueueConfigSchema=z[_0x4a6152(0x8c)]({'enabled':z[_0x4a6152(0x83)]()[_0x4a6152(0x7d)](!![]),'concurrency':z[_0x4a6152(0x91)]()[_0x4a6152(0x94)]()[_0x4a6152(0x8b)]()[_0x4a6152(0x7d)](0x1)}),ScheduleSchema=z[_0x4a6152(0x8c)]({'collection':z[_0x4a6152(0x92)]()[_0x4a6152(0x74)](0x1),'cron':z['string']()['min'](0x1),'env':z[_0x4a6152(0x92)]()[_0x4a6152(0x74)](0x1)[_0x4a6152(0xa4)](),'prepare':z[_0x4a6152(0x92)]()['min'](0x1)[_0x4a6152(0xa4)]()}),McpConfigSchema=z['object']({'transport':z[_0x4a6152(0xa9)](_0x4a6152(0x6c))}),SandboxConfigSchema=z[_0x4a6152(0x8c)]({'shellCwd':z[_0x4a6152(0x92)]()[_0x4a6152(0xa4)](),'shellTimeoutMs':z[_0x4a6152(0x91)]()[_0x4a6152(0x94)]()[_0x4a6152(0x8b)]()[_0x4a6152(0xa4)](),'exportSecrets':z['array'](z[_0x4a6152(0x92)]())[_0x4a6152(0xa4)](),'database':z[_0x4a6152(0x92)]()['optional'](),'apiBaseUrl':z[_0x4a6152(0x92)]()[_0x4a6152(0x6d)]()[_0x4a6152(0xa4)](),'uploadDir':z[_0x4a6152(0x92)]()[_0x4a6152(0xa4)]()}),WebServerConfigSchema=z[_0x4a6152(0x8c)]({'command':z['string']()[_0x4a6152(0x74)](0x1),'url':z[_0x4a6152(0x92)]()[_0x4a6152(0x6d)](),'reuseExistingServer':z[_0x4a6152(0x83)]()[_0x4a6152(0x7d)](!![]),'timeoutMs':z['number']()['int']()[_0x4a6152(0x8b)]()['default'](0xea60)}),UnotestConfigSchema=z['object']({'baseUrl':z[_0x4a6152(0x92)]()['url']()[_0x4a6152(0xa4)](),'webServer':WebServerConfigSchema['optional'](),'browsers':z[_0x4a6152(0xa0)](BrowserSchema)[_0x4a6152(0x74)](0x1),'channel':BrowserChannelSchema,'viewport':ViewportSchema,'retry':RetryConfigSchema,'failureBundle':FailureBundleConfigSchema,'dialogPolicy':DialogPolicySchema,'storageState':z[_0x4a6152(0x92)]()[_0x4a6152(0xa4)](),'testDir':z[_0x4a6152(0x92)]()[_0x4a6152(0x74)](0x1),'helpersDir':z[_0x4a6152(0x92)]()['min'](0x1),'defaultTimeoutMs':z[_0x4a6152(0x91)]()['int']()[_0x4a6152(0x8b)](),'defaultNavigationTimeoutMs':z[_0x4a6152(0x91)]()[_0x4a6152(0x94)]()[_0x4a6152(0x8b)](),'linter':LinterConfigSchema,'mcp':McpConfigSchema,'queue':QueueConfigSchema,'schedules':z['array'](ScheduleSchema)[_0x4a6152(0x7d)]([]),'sandbox':SandboxConfigSchema}),DEFAULT_CONFIG={'browsers':[_0x4a6152(0x7a)],'viewport':{'width':0x500,'height':0x2d0},'retry':{'count':0x0,'on':[_0x4a6152(0x9d)]},'failureBundle':{'tier1':!![],'tier2':!![],'tier3':{'network':![],'video':![]},'retention':{'runs':0x14,'days':0x7},'storageDir':_0x4a6152(0x8f)},'dialogPolicy':_0x4a6152(0x79),'testDir':_0x4a6152(0x97),'helpersDir':'unotest/e2e/_helpers','defaultTimeoutMs':0xbb8,'defaultNavigationTimeoutMs':0x7530,'linter':{'enabled':!![],'rules':{'lint:deep-css':'warn','lint:xpath':_0x4a6152(0xa3),'lint:obfuscated-class':'warn','lint:pause-explicit':'warn','lint:disambig-by-index':_0x4a6152(0x73),'lint:evaluate-discouraged':_0x4a6152(0xa3),'lint:scenario-in-root':'error','lint:mustache-in-dsl':'error','lint:goto-concat':'warn','lint:regex-invalid':_0x4a6152(0x77),'lint:echo-assert':_0x4a6152(0xa3),'lint:lint-ok-missing-reason':'warn','lint:flow-returns-value':_0x4a6152(0xa3),'validator:unknown-function':'error'}},'mcp':{'transport':'stdio'},'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 _0x559004=_0x10f0;(function(_0xeb1dab,_0x512977){const _0x48d42f={_0x2ee5ab:0xdb,_0x5b01ec:0x12e,_0x3c9507:0x100,_0x1557ab:0x10f},_0x570eac=_0x10f0,_0x5dd061=_0xeb1dab();while(!![]){try{const _0x36a370=parseInt(_0x570eac(_0x48d42f._0x2ee5ab))/0x1+parseInt(_0x570eac(0xdc))/0x2*(parseInt(_0x570eac(0x134))/0x3)+parseInt(_0x570eac(_0x48d42f._0x5b01ec))/0x4+-parseInt(_0x570eac(0xd2))/0x5*(-parseInt(_0x570eac(0x131))/0x6)+-parseInt(_0x570eac(0x11f))/0x7+parseInt(_0x570eac(0x135))/0x8*(-parseInt(_0x570eac(_0x48d42f._0x3c9507))/0x9)+-parseInt(_0x570eac(_0x48d42f._0x1557ab))/0xa*(parseInt(_0x570eac(0xda))/0xb);if(_0x36a370===_0x512977)break;else _0x5dd061['push'](_0x5dd061['shift']());}catch(_0x48b054){_0x5dd061['push'](_0x5dd061['shift']());}}}(_0x13c4,0xcd760));var __defProp=Object['defineProperty'],__name=(_0x13ceb9,_0x86752c)=>__defProp(_0x13ceb9,_0x559004(0x106),{'value':_0x86752c,'configurable':!![]});function _0x10f0(_0x1aed2d,_0x173598){_0x1aed2d=_0x1aed2d-0xcd;const _0x13c43c=_0x13c4();let _0x10f07a=_0x13c43c[_0x1aed2d];if(_0x10f0['Lbhrww']===undefined){var _0x1df32e=function(_0x30deb1){const _0x3a0621='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x13ceb9='',_0x86752c='';for(let _0x422282=0x0,_0x187f6d,_0x11dfe5,_0x22f118=0x0;_0x11dfe5=_0x30deb1['charAt'](_0x22f118++);~_0x11dfe5&&(_0x187f6d=_0x422282%0x4?_0x187f6d*0x40+_0x11dfe5:_0x11dfe5,_0x422282++%0x4)?_0x13ceb9+=String['fromCharCode'](0xff&_0x187f6d>>(-0x2*_0x422282&0x6)):0x0){_0x11dfe5=_0x3a0621['indexOf'](_0x11dfe5);}for(let _0x2d40ff=0x0,_0x1d04d6=_0x13ceb9['length'];_0x2d40ff<_0x1d04d6;_0x2d40ff++){_0x86752c+='%'+('00'+_0x13ceb9['charCodeAt'](_0x2d40ff)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x86752c);};_0x10f0['cjJBpo']=_0x1df32e,_0x10f0['dfAgtM']={},_0x10f0['Lbhrww']=!![];}const _0x49a606=_0x13c43c[0x0],_0x32ec82=_0x1aed2d+_0x49a606,_0xa31309=_0x10f0['dfAgtM'][_0x32ec82];return!_0xa31309?(_0x10f07a=_0x10f0['cjJBpo'](_0x10f07a),_0x10f0['dfAgtM'][_0x32ec82]=_0x10f07a):_0x10f07a=_0xa31309,_0x10f07a;}function subscribe(_0x422282,_0x187f6d){return _0x422282['add'](_0x187f6d),()=>{const _0x5ac964=_0x10f0;_0x422282[_0x5ac964(0xe6)](_0x187f6d);};}function _0x13c4(){const _0x1ff6a0=['y2XVC2u','Bgf1BMnOzwq','Bgf1BMnO','zw1PDezHA2vqB3b1Ca','Ag92zxi','AxnwAxnPyMXL','D2fPDezVCG','tg9JyxrVCKvYCM9Y','nunXAxjysG','z290BW','y3jLyxrLuMvJB3jKzxi','CgfNzsbPBMrLEcbVDxqGB2yGCMfUz2u','ywn0AxzLugfNzq','C3rLChm','BgvUz3rO','zMLSBa','otq4mZi4n2LssKjKzW','nZe1mdi2ve1bvwD4','ndq0nKfKwvLlva','iJ48l2rPDJ4','C2nVCgu','Cg9W','C2f2zvn0B3jHz2vtDgf0zq','Dgv4DenVBNrLBNrcEurLzMf1Bhq','Bg9JywXtDg9YywDL','rMfRzvbHz2u','A2LUza','B25bzNrLCKnSAwnR','zgvSzxrL','y29UDgv4Dhm','zxzHBhvHDgvpBKXVy2f0B3i','BMv0D29YA0vUDhjPzxm','zNjHBwvtDgfJAW','y2XPy2S','pgrPDIbKyxrHlxvUB3rLC3qTCMvMpsi','BMv3ugfNzuXPC3rLBMvYCW','pgrPDJ48l2rPDJ4','zhjHz0fUzerYB3a','ChvZAa','CMvJB3jK','BMv3q29UDgv4Da','Aw5ZCgvJDevSzw1LBNq','lNbHz2u','y29UC29SzuvUDhjPzxm','y2HLy2S','zMLSDgvY','D2fPDezVCK5HDMLNyxrPB24','y291BNq','z2v0tg9JywXtDg9YywDL','zxHPDezYyw1L','D3nfBMrWB2LUDa','C2v0q29VA2LL','D2fPDezVCLvYBa','DgL0Bgu','mZy5rxDTDgXX','DxbSB2fKrMLSzq','CMvJB3jKzxi','ywn0AxzLswr4','y2fSBhm','z2v0q29VA2LL','BMfTzq','C3bSAwnL','AxneAxnHyMXLzej5rgvMyxvSDa','zg91yMXLq2XPy2S','y2fSBhngB3i','zxHPDezYyw1LignHBgXLzcb3AxrOig5VigzYyw1Lig9UihrOzsbZDgfJAW','yMvOyxzPB3i','rMfRzvDLyKrYAxzLCG','C3vIC2nYAwjL','mJbPueLfC2m','yxr0ywnOrxHPC3rPBMC','y291BNrcEurLzMf1Bhq','zNjHBwvezxb0Aa','D2fPDezVCKXVywrtDgf0zq','yxr0ywnOrxHPC3rPBMCGBM90ihn1ChbVCNrLzcbIEsbgywTLv2vIrhjPDMvY','Bg9JywXtDg9YywDLu3rHDgu','Cg9WDxbpBKnSAwnR','y29UBMvJDfnOyxjLza','rhjPDMvYrxjYB3i','y29VA2LLu3rHDgu','CMvM','B3v0zxjive1m','zhjPDMvY','CgfNzuXPC3q','z29gB3j3yxjK','mZe0mZm2ngLlEu91wa','CMvSB2fK','B3v0zxjiDg1SqNLszwy','y2XPCgjVyxjKugfZDgu','lNbHz2uW','y29UBMvJDfnOyxjLzcbUB3qGC3vWCg9YDgvKigj5iezHA2vxzwjeCML2zxi','y2HLy2TLzfn0yxrL','Aw5UzxjuzxH0qNLezwzHDwX0','zw50zxjgCMfTzq','C2nYB2XSsw50B1zPzxC','Aw5WDxrwywX1zq','Dw5JAgvJAW','y3vYCMvUDfvYBa','y3r4','Bwf5yMvuAhjVDW','mtyWmtyWC2zMuxjX','D2fPDezVCLrLEhq','zxjYB3jpBK5LEhrby3rPB24','nZmYmJqXogfcvgfQra','C2v0qwn0AxzLugfNzq','C2v0tg9JywXtDg9YywDL','mtyZoeDjC0zArq','mZqWmJryAwPKu2y','Aw5UzxjuzxH0','zxzHBhvHDgu','y2XVC2vgywTLugfNzq','Dgv4DenVBNrLBNq','AxneAxnHyMXLza','C2nYzwvUC2HVDa','zMfRzsb0AxrSzq','zw50zxjgCMfTzsbJywXSzwqGD2L0AcbLBxb0EsbSB2nHDg9Y','C2vSzwn0t3b0Aw9U'];_0x13c4=function(){return _0x1ff6a0;};return _0x13c4();}__name(subscribe,_0x559004(0x10e));import{UnotestError}from'@unotest/core';var DriverError=class extends UnotestError{static{__name(this,_0x559004(0x118));}},LocatorError=class extends UnotestError{static{__name(this,_0x559004(0xd1));}};function createRecorder(){const _0x489f7f=_0x559004,_0x11dfe5=[];let _0x22f118=0x0;return{'push':__name(_0x2d40ff=>_0x11dfe5[_0x489f7f(0xf0)]({..._0x2d40ff,'seq':_0x22f118++}),_0x489f7f(0xf0)),'calls':__name(()=>_0x11dfe5,'calls')};}__name(createRecorder,_0x559004(0xd4));var FakePage=class{constructor(_0x1d04d6,_0x560eeb,_0x36f39b,_0x11e62d){const _0x3585ec={_0x3977c5:0x10c,_0x2253ed:0x12b},_0x5a0a71=_0x559004;this[_0x5a0a71(0x102)]=_0x1d04d6,this[_0x5a0a71(_0x3585ec._0x3977c5)]=_0x560eeb,this['scope']=_0x36f39b,this[_0x5a0a71(_0x3585ec._0x2253ed)]=_0x11e62d;}['recorder'];[_0x559004(0x10c)];[_0x559004(0xde)];static{__name(this,_0x559004(0xe3));}[_0x559004(0x12b)];[_0x559004(0xe5)];[_0x559004(0xf1)](_0x13d4f8,_0x1b49b7){const _0x386d11={_0x527d9b:0xf0},_0x926a22=_0x559004;this['recorder'][_0x926a22(_0x386d11._0x527d9b)]({'scope':this['scope'],'method':_0x13d4f8,'args':_0x1b49b7});}['maybeThrow'](){const _0x5f4e3f={_0x16bda6:0x130},_0x10dd10=_0x559004;if(this[_0x10dd10(0x10c)][_0x10dd10(0x130)]){const _0x52d33c=this['behavior'][_0x10dd10(_0x5f4e3f._0x16bda6)];this['behavior']['errorOnNextAction']=void 0x0;throw _0x52d33c;}}['url'](){return this['currentUrl'];}async[_0x559004(0xff)](){const _0x5316ab={_0x5455d2:0xf1,_0x500594:0xff},_0x45ce55=_0x559004;return this[_0x45ce55(_0x5316ab._0x5455d2)](_0x45ce55(_0x5316ab._0x500594),[]),_0x45ce55(0x13c);}async['click'](_0x4fd2d8,_0x531a6d){const _0x4cef8c={_0x1cf7d2:0xeb,_0x5bd00d:0x12d,_0x2b0c05:0xe5},_0x40a766=_0x559004;this['record'](_0x40a766(_0x4cef8c._0x1cf7d2),[_0x4fd2d8,_0x531a6d]),this[_0x40a766(_0x4cef8c._0x5bd00d)](),this[_0x40a766(_0x4cef8c._0x2b0c05)]?.();}async[_0x559004(0x109)](_0x4c3b8b,_0x442426){const _0x407fc8={_0x43b20d:0x109},_0x16fc1f=_0x559004;this['record'](_0x16fc1f(_0x407fc8._0x43b20d),[_0x4c3b8b,_0x442426]),this[_0x16fc1f(0x12d)]();}async[_0x559004(0xd9)](_0x10804b,_0xb5c453,_0x288582){const _0x149edb={_0x351181:0xf1,_0x470342:0xd9},_0x335f3c=_0x559004;this[_0x335f3c(_0x149edb._0x351181)](_0x335f3c(_0x149edb._0x470342),[_0x10804b,_0xb5c453,_0x288582]),this['maybeThrow']();}async['press'](_0x1a367a,_0x34a38b,_0x26a4a9){this['record']('press',[_0x1a367a,_0x34a38b,_0x26a4a9]),this['maybeThrow']();}async[_0x559004(0xf6)](_0x102a91,_0x548c4c){const _0x272505={_0x108053:0xf6},_0x31dcb0=_0x559004;this['record'](_0x31dcb0(_0x272505._0x108053),[_0x102a91,_0x548c4c]),this[_0x31dcb0(0x12d)]();}async[_0x559004(0x12a)](_0x1026f4,_0x297497){const _0x2cf1de={_0x102a43:0xf1},_0x4064fb=_0x559004;this[_0x4064fb(_0x2cf1de._0x102a43)](_0x4064fb(0x12a),[_0x1026f4,_0x297497]),this[_0x4064fb(0x12d)]();}async[_0x559004(0x13e)](_0x3a12fd,_0x92d1bc,_0x13f1e6){const _0x8f1b74={_0x246840:0xf1},_0x387a02=_0x559004;this[_0x387a02(_0x8f1b74._0x246840)](_0x387a02(0x13e),[_0x3a12fd,_0x92d1bc,_0x13f1e6]),this[_0x387a02(0x12d)]();}async[_0x559004(0xce)](_0x2e8baf,_0x52a6d3){const _0x546267={_0x347cff:0x12d},_0x4d6cb1=_0x559004;this[_0x4d6cb1(0xf1)]('hover',[_0x2e8baf,_0x52a6d3]),this[_0x4d6cb1(_0x546267._0x347cff)]();}async[_0x559004(0x128)](_0x1a62d2){const _0x26c68f={_0x220d7f:0xf1,_0x5c8d2d:0x128},_0x3a8912=_0x559004;this[_0x3a8912(_0x26c68f._0x220d7f)](_0x3a8912(_0x26c68f._0x5c8d2d),[_0x1a62d2]),this[_0x3a8912(0x12d)]();}async[_0x559004(0xef)](_0x31f121,_0x4bfac1,_0x15c95e){const _0x185330={_0x1333f2:0xf1,_0x184a5d:0x12d},_0x3b7bd2=_0x559004;this[_0x3b7bd2(_0x185330._0x1333f2)]('dragAndDrop',[_0x31f121,_0x4bfac1,_0x15c95e]),this[_0x3b7bd2(_0x185330._0x184a5d)]();}async[_0x559004(0x101)](_0x4d47bd,_0x348d1d){const _0x4360be={_0x43982e:0x101},_0x405044=_0x559004;this[_0x405044(0xf1)](_0x405044(_0x4360be._0x43982e),[_0x4d47bd,_0x348d1d]),this[_0x405044(0x12d)]();}async['clipboardPaste'](_0x2eb8d5,_0x16c68b){const _0x3ad16e={_0x47e6df:0x12d},_0x1d9778=_0x559004;this[_0x1d9778(0xf1)](_0x1d9778(0x122),[_0x2eb8d5,_0x16c68b]),this[_0x1d9778(_0x3ad16e._0x47e6df)]();}async['count'](_0x3c7ece){const _0x50c5af={_0x31e8c2:0xf9,_0x5b09ee:0x111},_0x593996=_0x559004;return this[_0x593996(0xf1)](_0x593996(_0x50c5af._0x31e8c2),[_0x3c7ece]),this[_0x593996(0x10c)][_0x593996(_0x50c5af._0x5b09ee)]??0x1;}async[_0x559004(0x139)](_0x3308c2){const _0x1cf875={_0x2d79dd:0xe1},_0x2177ea=_0x559004;return this['record'](_0x2177ea(0x139),[_0x3308c2]),this['behavior'][_0x2177ea(_0x1cf875._0x2d79dd)]??'';}async[_0x559004(0x136)](_0x490cdb){const _0x943641={_0xa3a256:0x126,_0xd01b9c:0xe1},_0x285e2e=_0x559004;return this[_0x285e2e(0xf1)]('innerText',[_0x490cdb]),this[_0x285e2e(0x10c)][_0x285e2e(_0x943641._0xa3a256)]??this[_0x285e2e(0x10c)][_0x285e2e(_0x943641._0xd01b9c)]??'';}async['inputValue'](_0x1e7a1a){const _0xc4050d={_0x25b521:0xf1,_0x2df9d0:0x129,_0x520bc8:0x10c},_0x4c8980=_0x559004;return this[_0x4c8980(_0xc4050d._0x25b521)](_0x4c8980(_0xc4050d._0x2df9d0),[_0x1e7a1a]),this[_0x4c8980(_0xc4050d._0x520bc8)]['inputValueByDefault']??'';}async[_0x559004(0x125)](_0x499237){const _0x43f94f={_0x38c98e:0xf1,_0x4afce9:0x125},_0x37343d=_0x559004;return this[_0x37343d(_0x43f94f._0x38c98e)](_0x37343d(_0x43f94f._0x4afce9),[_0x499237]),this['behavior']['checkedStateByDefault']??null;}async[_0x559004(0xcf)](_0x4c1fb5){const _0x2ecbcc={_0x27e710:0x10c},_0x477034=_0x559004;return this['record'](_0x477034(0xcf),[_0x4c1fb5]),this[_0x477034(_0x2ecbcc._0x27e710)]['isVisibleByDefault']??!![];}async['isDisabled'](_0x3c4226){const _0x132fd2={_0x19bd1a:0x13a},_0x1c6383=_0x559004;return this[_0x1c6383(0xf1)](_0x1c6383(_0x132fd2._0x19bd1a),[_0x3c4226]),this[_0x1c6383(0x10c)][_0x1c6383(0x108)]??![];}async['getAttribute'](_0x552ca1,_0x5b22dc){const _0x2f8590={_0x4735f6:0x10c},_0x4c1137=_0x559004;return this['record']('getAttribute',[_0x552ca1,_0x5b22dc]),this[_0x4c1137(_0x2f8590._0x4735f6)]['attributesByDefault']?.[_0x5b22dc]??null;}async[_0x559004(0xd0)](_0x2d88c3,_0x1f6b51){const _0x44453c={_0xd0cb0c:0xf1,_0x2f5305:0xd0},_0x1422b9=_0x559004;this[_0x1422b9(_0x44453c._0xd0cb0c)](_0x1422b9(_0x44453c._0x2f5305),[_0x2d88c3,_0x1f6b51]);}async[_0x559004(0xfe)](_0x9eb910,_0x10bbe4){const _0x98c0fa=_0x559004;this[_0x98c0fa(0xf1)](_0x98c0fa(0xfe),[_0x9eb910,_0x10bbe4]);}async[_0x559004(0x12f)](_0x3ca1a1,_0x3a3c32){const _0x462deb={_0x5b81e3:0x12f},_0x4b2c8a=_0x559004;this[_0x4b2c8a(0xf1)](_0x4b2c8a(_0x462deb._0x5b81e3),[_0x3ca1a1,_0x3a3c32]);}async[_0x559004(0xf8)](_0x1a7482){const _0x5873f6={_0x1419d3:0xf1},_0xde941a=_0x559004;this[_0xde941a(_0x5873f6._0x1419d3)](_0xde941a(0xf8),[_0x1a7482]);}async[_0x559004(0x113)](_0x5bd0d7,_0x2f131b){const _0x1d4ce4={_0x15ea92:0x113},_0x243da7=_0x559004;this[_0x243da7(0xf1)](_0x243da7(_0x1d4ce4._0x15ea92),[_0x5bd0d7,_0x2f131b]);}async[_0x559004(0xd3)](_0xc37dbb,_0x3529c4){const _0x4ce740={_0x5925d8:0xd3},_0x152d69=_0x559004;this[_0x152d69(0xf1)](_0x152d69(_0x4ce740._0x5925d8),[_0xc37dbb,_0x3529c4]),this[_0x152d69(0x12b)]=_0xc37dbb;}async['reload'](_0x33aa8d){const _0x2d9fb7={_0x95c95b:0xf1},_0x291b5e=_0x559004;this[_0x291b5e(_0x2d9fb7._0x95c95b)](_0x291b5e(0x120),[_0x33aa8d]);}async['goBack'](_0x2975f9){this['record']('goBack',[_0x2975f9]);}async[_0x559004(0x11e)](_0x43cabc){const _0x3e1d07=_0x559004;this[_0x3e1d07(0xf1)]('goForward',[_0x43cabc]);}async[_0x559004(0x137)](_0x2ee9ce){const _0x39d12a={_0x4ee3ca:0xf1,_0x44c43a:0x137},_0x5b4fab=_0x559004;return this[_0x5b4fab(_0x39d12a._0x4ee3ca)](_0x5b4fab(_0x39d12a._0x44c43a),[_0x2ee9ce]),void 0x0;}async['evaluateOnLocator'](_0x2040f5,_0x5e0a65){const _0x54970c=_0x559004;return this[_0x54970c(0xf1)](_0x54970c(0xe8),[_0x2040f5,_0x5e0a65]),void 0x0;}async[_0x559004(0xf3)](_0xea46ad){const _0x1ed8df={_0x55f1e6:0xf3,_0x236633:0xd7,_0x514d11:0x11a},_0x558d09=_0x559004;this[_0x558d09(0xf1)](_0x558d09(_0x1ed8df._0x55f1e6),[_0xea46ad]);if(_0xea46ad[_0x558d09(_0x1ed8df._0x236633)]['length']!==0x1||_0xea46ad['steps'][0x0]['kind']!==_0x558d09(_0x1ed8df._0x514d11))return null;const _0x399ec4=_0xea46ad['steps'][0x0][_0x558d09(_0x1ed8df._0x514d11)],_0xbdbb04=this['behavior']['elementHintByRef']?.[_0x399ec4];return _0xbdbb04??null;}async['screenshot'](_0x326330){const _0x3c609f=_0x559004;return this['record'](_0x3c609f(0x13b),[_0x326330]),Buffer['from']('fake-png');}async[_0x559004(0x11b)](_0x156a5d){const _0x2634cf={_0x4fa28e:0x11b,_0x714b2:0xd7,_0x5c103e:0xe4,_0x3e4e48:0x10c,_0xb01d22:0xec,_0x1c12b3:0xee},_0x413f1d=_0x559004;this[_0x413f1d(0xf1)](_0x413f1d(_0x2634cf._0x4fa28e),[_0x156a5d]);if(_0x156a5d[_0x413f1d(0xd7)][_0x413f1d(0xd8)]===0x1&&_0x156a5d[_0x413f1d(_0x2634cf._0x714b2)][0x0][_0x413f1d(_0x2634cf._0x5c103e)]==='ref'){const _0x2c6c04=_0x156a5d[_0x413f1d(_0x2634cf._0x714b2)][0x0]['ref'];return this[_0x413f1d(_0x2634cf._0x3e4e48)][_0x413f1d(0x121)]?.[_0x2c6c04]??_0x413f1d(_0x2634cf._0xb01d22)+_0x2c6c04+_0x413f1d(0xdd);}return _0x413f1d(_0x2634cf._0x1c12b3);}},FakeContext=class{constructor(_0x38dfd0,_0x5a5272,_0x3ea3fa){const _0x28dd26={_0x5098b9:0x115},_0x212a61=_0x559004;this[_0x212a61(0x102)]=_0x38dfd0,this['behavior']=_0x5a5272,this[_0x212a61(0xde)]=_0x3ea3fa;const _0x42903f=new FakePage(_0x38dfd0,_0x5a5272,_0x3ea3fa+_0x212a61(0x123),_0x5a5272['initialUrl']??'about:blank');_0x5a5272[_0x212a61(0x116)]&&(_0x42903f['onAfterClick']=()=>{const _0x5b9032=_0x212a61;this['emitFakePopup'](_0x5a5272[_0x5b9032(0x116)]);}),this[_0x212a61(0x11d)]=[_0x42903f],this[_0x212a61(_0x28dd26._0x5098b9)]={..._0x5a5272[_0x212a61(0xe2)]??{}},this[_0x212a61(0x119)]={..._0x5a5272['cookies']??{}};}[_0x559004(0x102)];['behavior'];['scope'];static{__name(this,'FakeContext');}['pageList'];['activeIdx']=0x0;[_0x559004(0xea)]=[];[_0x559004(0x115)];['cookieState'];['newPageListeners']=new Set();['record'](_0x1e67cd,_0x240c63){const _0x351f98={_0x3a7b50:0xde},_0xe25913=_0x559004;this[_0xe25913(0x102)][_0xe25913(0xf0)]({'scope':this[_0xe25913(_0x351f98._0x3a7b50)],'method':_0x1e67cd,'args':_0x240c63});}['pages'](){const _0x4916f5=_0x559004;return this[_0x4916f5(0x11d)];}[_0x559004(0xd6)](){const _0x59cb36={_0x18e69e:0x103},_0x3c9e44=_0x559004,_0x129f51=this[_0x3c9e44(0x11d)][this[_0x3c9e44(_0x59cb36._0x18e69e)]];if(!_0x129f51)throw new DriverError('no\x20active\x20page\x20in\x20context',{'activeIdx':this[_0x3c9e44(0x103)]});return _0x129f51;}[_0x559004(0xf5)](){const _0x1d4def=_0x559004;return this[_0x1d4def(0x10c)][_0x1d4def(0xf5)]??[];}[_0x559004(0xe9)](){const _0x5e9a85={_0x2928ee:0xe9},_0x2dae62=_0x559004;return this['behavior'][_0x2dae62(_0x5e9a85._0x2928ee)]??[];}async['setActivePage'](_0x3607ae){const _0x20ccb9={_0x4c75fc:0xf1,_0x1fdb96:0x132,_0x295843:0xd8,_0x230aaa:0x103,_0x3501a1:0xd8},_0x350bb1=_0x559004;this[_0x350bb1(_0x20ccb9._0x4c75fc)](_0x350bb1(_0x20ccb9._0x1fdb96),[_0x3607ae]);if(_0x3607ae<0x0||_0x3607ae>=this['pageList'][_0x350bb1(_0x20ccb9._0x295843)])throw new DriverError(_0x350bb1(0xd5),{'index':_0x3607ae,'available':this['pageList'][_0x350bb1(0xd8)]});this[_0x350bb1(_0x20ccb9._0x230aaa)]=_0x3607ae,this[_0x350bb1(0xea)][_0x350bb1(_0x20ccb9._0x3501a1)]=0x0;}['onNewPage'](_0x3f1c1d){const _0x16a767=_0x559004;return subscribe(this[_0x16a767(0xed)],_0x3f1c1d);}[_0x559004(0xcd)](_0x5e3da9){const _0x1b2af1={_0x583935:0xde,_0x4fd683:0x11d,_0x222996:0xd8},_0x133e17=_0x559004,_0x166797=this[_0x133e17(_0x1b2af1._0x583935)]+_0x133e17(0xf4)+this[_0x133e17(_0x1b2af1._0x4fd683)][_0x133e17(_0x1b2af1._0x222996)],_0x428770=new FakePage(this['recorder'],this[_0x133e17(0x10c)],_0x166797,_0x5e3da9);this[_0x133e17(_0x1b2af1._0x4fd683)]['push'](_0x428770);const _0x235828=this[_0x133e17(_0x1b2af1._0x4fd683)][_0x133e17(_0x1b2af1._0x222996)]-0x1;for(const _0x710d99 of this['newPageListeners']){try{_0x710d99({'index':_0x235828,'url':_0x5e3da9});}catch{}}return _0x235828;}[_0x559004(0x138)](_0x418a15){const _0x435219={_0x105027:0xd8,_0x582130:0x11d,_0x5b27fc:0x107},_0x33eed1=_0x559004;if(_0x418a15<0x0||_0x418a15>=this[_0x33eed1(0x11d)][_0x33eed1(_0x435219._0x105027)])throw new DriverError(_0x33eed1(0xd5),{'index':_0x418a15,'available':this[_0x33eed1(0x11d)][_0x33eed1(_0x435219._0x105027)]});this[_0x33eed1(_0x435219._0x582130)][_0x33eed1(_0x435219._0x5b27fc)](_0x418a15,0x1);}async[_0x559004(0x127)](_0x3aefaf){const _0x44dcfb={_0x500d75:0x127,_0x28ecae:0xea},_0x39cf81=_0x559004;this['record'](_0x39cf81(_0x44dcfb._0x500d75),[_0x3aefaf]);if(!_0x3aefaf[_0x39cf81(0xd7)][_0x39cf81(0xd8)])throw new LocatorError(_0x39cf81(0x13d),{'locator':_0x3aefaf});this[_0x39cf81(_0x44dcfb._0x28ecae)][_0x39cf81(0xf0)](_0x3aefaf);}async[_0x559004(0xfb)](){const _0x1d5032={_0x150289:0xea,_0x47b206:0x10b,_0x2d28d1:0xdf},_0x1eebe7=_0x559004;this[_0x1eebe7(0xf1)](_0x1eebe7(0xfb),[]);if(this[_0x1eebe7(_0x1d5032._0x150289)][_0x1eebe7(0xd8)]===0x0)throw new DriverError(_0x1eebe7(_0x1d5032._0x47b206),{});this[_0x1eebe7(0xea)][_0x1eebe7(_0x1d5032._0x2d28d1)]();}async[_0x559004(0x133)](_0x43322c,_0x3de97d){const _0x5e28b1={_0x349c1d:0x133,_0x274094:0x115},_0x257584=_0x559004;this[_0x257584(0xf1)](_0x257584(_0x5e28b1._0x349c1d),[_0x43322c,_0x3de97d]),this[_0x257584(_0x5e28b1._0x274094)][_0x43322c]=_0x3de97d;}async['getLocalStorage'](_0x308c1e){const _0x25eb47={_0x52b6ce:0xfa},_0x473e48=_0x559004;return this['record'](_0x473e48(_0x25eb47._0x52b6ce),[_0x308c1e]),this['localStorageState'][_0x308c1e]??null;}async[_0x559004(0xfd)](_0x48b3db,_0x2a1a11,_0x1ec29a){const _0x362ece={_0x424d69:0xf1,_0x24d1b4:0xfd},_0x239757=_0x559004;this[_0x239757(_0x362ece._0x424d69)](_0x239757(_0x362ece._0x24d1b4),[_0x48b3db,_0x2a1a11,_0x1ec29a]),this[_0x239757(0x119)][_0x48b3db]=_0x2a1a11;}async[_0x559004(0x105)](_0x871ec5){const _0x5233ae=_0x559004;return this[_0x5233ae(0xf1)]('getCookie',[_0x871ec5]),this['cookieState'][_0x871ec5]??null;}async[_0x559004(0xe0)](_0x48f1ce){const _0x3cc6a1={_0x22b3b9:0xf1},_0x12e197=_0x559004;this[_0x12e197(_0x3cc6a1._0x22b3b9)]('saveStorageState',[_0x48f1ce]);}async[_0x559004(0x137)](_0x51c300){const _0x202acc={_0x872c8c:0xf1},_0xc5a6c0=_0x559004;return this[_0xc5a6c0(_0x202acc._0x872c8c)]('evaluate',[_0x51c300]),void 0x0;}async['close'](){const _0xf4fb1={_0x5a059b:0x13f},_0x47b8cb=_0x559004;this[_0x47b8cb(0xf1)](_0x47b8cb(_0xf4fb1._0x5a059b),[]);}[_0x559004(0x112)](){const _0x560641={_0x377289:0xea},_0x1f5157=_0x559004;return this[_0x1f5157(_0x560641._0x377289)][_0x1f5157(0xd8)];}},FakeWebDriver=class{constructor(_0x40d9cf={}){this['behavior']=_0x40d9cf,this['recorder']=createRecorder();}[_0x559004(0x10c)];static{__name(this,_0x559004(0x10d));}['launched']=![];['recorder'];[_0x559004(0xe7)]=[];async[_0x559004(0x141)](_0x181b3b){const _0x343a1a={_0x575cd9:0x11c,_0x4817f3:0x141,_0x37dd8a:0x140},_0x518279=_0x559004;this['recorder'][_0x518279(0xf0)]({'scope':_0x518279(_0x343a1a._0x575cd9),'method':_0x518279(_0x343a1a._0x4817f3),'args':[_0x181b3b]}),this[_0x518279(_0x343a1a._0x37dd8a)]=!![];}async['newContext'](_0x482f50){const _0x576237={_0x414235:0x102,_0x49bb55:0xf0,_0x396f1d:0x140,_0x2f3756:0x102,_0x36278f:0x10c,_0x401f15:0x12c},_0x39c733=_0x559004;this[_0x39c733(_0x576237._0x414235)][_0x39c733(_0x576237._0x49bb55)]({'scope':_0x39c733(0x11c),'method':_0x39c733(0xf2),'args':[_0x482f50]});if(!this[_0x39c733(_0x576237._0x396f1d)])throw new DriverError('newContext\x20called\x20before\x20launch()',{});const _0x15e22f=new FakeContext(this[_0x39c733(_0x576237._0x2f3756)],this[_0x39c733(_0x576237._0x36278f)],_0x39c733(_0x576237._0x401f15)+this['contexts']['length']);return this[_0x39c733(0xe7)][_0x39c733(0xf0)](_0x15e22f),_0x15e22f;}async[_0x559004(0x13f)](){const _0x2f9eac={_0x279c7c:0x11c,_0x263f27:0x13f},_0x11115f=_0x559004;this['recorder']['push']({'scope':_0x11115f(_0x2f9eac._0x279c7c),'method':_0x11115f(_0x2f9eac._0x263f27),'args':[]}),this['launched']=![];}[_0x559004(0xfc)](){return void 0x0;}async[_0x559004(0x117)](){const _0x130200=_0x559004;throw new DriverError(_0x130200(0x124),{});}[_0x559004(0x110)](){const _0x484f13={_0x519db8:0x114},_0x3d1fb0=_0x559004;throw new DriverError(_0x3d1fb0(_0x484f13._0x519db8),{});}[_0x559004(0x104)](){const _0x51f2b5={_0x250f0d:0x102},_0x524be1=_0x559004;return this[_0x524be1(_0x51f2b5._0x250f0d)][_0x524be1(0x104)]();}[_0x559004(0x10a)](_0x5472b1){const _0x546eb0={_0x35f31e:0x102,_0x91a9ce:0xf7},_0x5cd86d=_0x559004;return this[_0x5cd86d(_0x546eb0._0x35f31e)][_0x5cd86d(0x104)]()[_0x5cd86d(_0x546eb0._0x91a9ce)](_0x32925c=>_0x32925c['method']===_0x5472b1);}};export{FakeWebDriver};
|
|
1
|
+
const _0x5a369=_0x3aa3;(function(_0x36dbe9,_0x3f8e55){const _0x1e902c={_0x17ee67:0x126,_0xe36d61:0x168,_0x1f1463:0x172,_0x528a48:0x127,_0x426eb5:0x12c,_0x321306:0x140,_0x1026aa:0x122},_0x267bc3=_0x3aa3,_0x56827c=_0x36dbe9();while(!![]){try{const _0x205872=parseInt(_0x267bc3(_0x1e902c._0x17ee67))/0x1+parseInt(_0x267bc3(0x147))/0x2+parseInt(_0x267bc3(0x152))/0x3*(parseInt(_0x267bc3(_0x1e902c._0xe36d61))/0x4)+parseInt(_0x267bc3(0x130))/0x5*(-parseInt(_0x267bc3(0x169))/0x6)+-parseInt(_0x267bc3(_0x1e902c._0x1f1463))/0x7*(parseInt(_0x267bc3(0x109))/0x8)+parseInt(_0x267bc3(_0x1e902c._0x528a48))/0x9*(parseInt(_0x267bc3(_0x1e902c._0x426eb5))/0xa)+parseInt(_0x267bc3(_0x1e902c._0x321306))/0xb*(-parseInt(_0x267bc3(_0x1e902c._0x1026aa))/0xc);if(_0x205872===_0x3f8e55)break;else _0x56827c['push'](_0x56827c['shift']());}catch(_0x506b5a){_0x56827c['push'](_0x56827c['shift']());}}}(_0x48fc,0xe9b62));var __defProp=Object['defineProperty'],__name=(_0x17acf2,_0x42037d)=>__defProp(_0x17acf2,_0x5a369(0x114),{'value':_0x42037d,'configurable':!![]});function subscribe(_0x1cda37,_0xa08015){const _0x1ca022=_0x5a369;return _0x1cda37[_0x1ca022(0x13e)](_0xa08015),()=>{const _0x57c92e=_0x1ca022;_0x1cda37[_0x57c92e(0x131)](_0xa08015);};}__name(subscribe,_0x5a369(0x166));import{UnotestError}from'@unotest/core';function _0x48fc(){const _0x3a09a5=['iJ48l2rPDJ4','DxbSB2fKrMLSzq','zMLSBa','ndLfCvHev2y','y291BNq','zxjYB3jpBK5LEhrby3rPB24','y3r4','y2XPy2S','AxnwAxnPyMXL','z2v0qxr0CMLIDxrL','D2fPDezVCLrLEhq','zw1PDezHA2vqB3b1Ca','C3rLChm','y2XVC2vgywTLugfNzq','BMv0D29YA0vUDhjPzxm','z2v0tg9JywXtDg9YywDL','BgvUz3rO','B25ozxDqywDL','pgrPDIbKyxrHlxvUB3rLC3qTCMvMpsi','Aw5PDgLHBfvYBa','rhjPDMvYrxjYB3i','nti4mZKYrgLYvK9X','D3nfBMrWB2LUDa','Aw5ZCgvJDevSzw1LBNq','Bg9JywXtDg9YywDL','zhjPDMvY','zw50zxjgCMfTzsbJywXSzwqGD2L0AcbLBxb0EsbSB2nHDg9Y','yMvOyxzPB3i','C2nYzwvUC2HVDa','yxr0CMLIDxrLC0j5rgvMyxvSDa','zMfRzsb0AxrSzq','C2v0qwn0AxzLugfNzq','BMfTzq','C2v0tg9JywXtDg9YywDL','DgL0Bgu','C2nVCgu','Dgv4DenVBNrLBNrcEurLzMf1Bhq','B3v0zxjive1m','zNjHBwvezxb0Aa','CMvSB2fK','z29cywnR','yxr0ywnOrxHPC3rPBMC','D2fPDezVCG','y2XPCgjVyxjKugfZDgu','ChvZAa','C2nYB2XSsw50B1zPzxC','mtm2mJm3odbUqvDWvxu','y29VA2LLCW','y2XVC2u','Ag92zxi','mtC1mdi3meXTsK9xzG','mtyYmZi3mJrJyxPMzw8','Bgf1BMnO','tg9JyxrVCKvYCM9Y','AxneAxnHyMXLzej5rgvMyxvSDa','y29UBMvJDfnOyxjLzcbUB3qGC3vWCg9YDgvKigj5iezHA2vxzwjeCML2zxi','mtbwBw1gCxm','Bg9JywXtDg9YywDLu3rHDgu','y3vYCMvUDfvYBa','zxzHBhvHDgvpBKXVy2f0B3i','nuPdu093DG','zgvSzxrL','AxnwAxnPyMXLqNLezwzHDwX0','z290BW','y29UDgv4Dhm','Dgv4DenVBNrLBNq','zxzHBhvHDgu','B25bzNrLCKnSAwnR','D2fPDezVCKXVywrtDgf0zq','y291BNrcEurLzMf1Bhq','Aw5UzxjuzxH0qNLezwzHDwX0','z2v0q29VA2LL','ChjLC3m','y2HLy2TLzfn0yxrL','ywrK','zg91yMXLq2XPy2S','mJjqy0jzz1C','pgrPDJ48l2rPDJ4','z29gB3j3yxjK','CMvJB3jK','Cg9WDxbpBKnSAwnR','ywn0AxzLugfNzq','zwXLBwvUDeHPBNrcEvjLzG','mJCZntu2ogL6v2TNEq','C2f2zvn0B3jHz2vtDgf0zq','C3bSAwnL','y29UC29SzuvUDhjPzxm','BMv3q29UDgv4DcbJywXSzwqGyMvMB3jLigXHDw5JAcGP','zhjHz0fUzerYB3a','D2fPDezVCK5HDMLNyxrPB24','zMfRzs1WBMC','rMfRzvDLyKrYAxzLCG','CgfNzuXPC3q','Aw5WDxrwywX1zuj5rgvMyxvSDa','ntKYnZDxs3rMELe','Aw5UzxjuzxH0','y2HLy2S','y29UBMvJDfnOyxjLza','y29VA2LLu3rHDgu','ywn0AxzLswr4','y2fSBhm','D2fPDezVCLvYBa','AxneAxnHyMXLza','Bgf1BMnOzwq','Dw5JAgvJAW','A2LUza','BMv3ugfNzuXPC3rLBMvYCW','Bwf5yMvuAhjVDW','C2vSzwn0t3b0Aw9U','zNjHBwvtDgfJAW','rMfRzvbHz2u','lNbHz2u','CgfNzsbPBMrLEcbVDxqGB2yGCMfUz2u','zxHPDezYyw1L','C3vIC2nYAwjL','zw50zxjgCMfTzq','mJr6ELr5Ae0','oda5otKZngrnB2HQsq','CMvM','zNjVBq','ywjVDxq6yMXHBMS','CMvJB3jKzxi','BMv3q29UDgv4Da'];_0x48fc=function(){return _0x3a09a5;};return _0x48fc();}function _0x3aa3(_0x61b84d,_0x424f45){_0x61b84d=_0x61b84d-0x107;const _0x48fc90=_0x48fc();let _0x3aa33a=_0x48fc90[_0x61b84d];if(_0x3aa3['nwPpdS']===undefined){var _0x1cba9e=function(_0x37ec17){const _0x7b4db9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x17acf2='',_0x42037d='';for(let _0x1cda37=0x0,_0xa08015,_0x57ce4f,_0x39a505=0x0;_0x57ce4f=_0x37ec17['charAt'](_0x39a505++);~_0x57ce4f&&(_0xa08015=_0x1cda37%0x4?_0xa08015*0x40+_0x57ce4f:_0x57ce4f,_0x1cda37++%0x4)?_0x17acf2+=String['fromCharCode'](0xff&_0xa08015>>(-0x2*_0x1cda37&0x6)):0x0){_0x57ce4f=_0x7b4db9['indexOf'](_0x57ce4f);}for(let _0xe0c171=0x0,_0x47e2d4=_0x17acf2['length'];_0xe0c171<_0x47e2d4;_0xe0c171++){_0x42037d+='%'+('00'+_0x17acf2['charCodeAt'](_0xe0c171)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x42037d);};_0x3aa3['eYbgwr']=_0x1cba9e,_0x3aa3['JDHFlk']={},_0x3aa3['nwPpdS']=!![];}const _0x3a672c=_0x48fc90[0x0],_0x5fa0ec=_0x61b84d+_0x3a672c,_0x2ce9a8=_0x3aa3['JDHFlk'][_0x5fa0ec];return!_0x2ce9a8?(_0x3aa33a=_0x3aa3['eYbgwr'](_0x3aa33a),_0x3aa3['JDHFlk'][_0x5fa0ec]=_0x3aa33a):_0x3aa33a=_0x2ce9a8,_0x3aa33a;}var DriverError=class extends UnotestError{static{__name(this,_0x5a369(0x108));}},LocatorError=class extends UnotestError{static{__name(this,_0x5a369(0x129));}};function createRecorder(){const _0x52feec=_0x5a369,_0x57ce4f=[];let _0x39a505=0x0;return{'push':__name(_0xe0c171=>_0x57ce4f[_0x52feec(0x120)]({..._0xe0c171,'seq':_0x39a505++}),'push'),'calls':__name(()=>_0x57ce4f,'calls')};}__name(createRecorder,'createRecorder');var FakePage=class{constructor(_0x47e2d4,_0x3d3e42,_0x3597f5,_0x1ca4f2){const _0x11c7cf=_0x5a369;this[_0x11c7cf(0x16d)]=_0x47e2d4,this['behavior']=_0x3d3e42,this[_0x11c7cf(0x117)]=_0x3597f5,this[_0x11c7cf(0x12e)]=_0x1ca4f2;}[_0x5a369(0x16d)];[_0x5a369(0x10f)];['scope'];static{__name(this,_0x5a369(0x162));}[_0x5a369(0x12e)];[_0x5a369(0x137)];[_0x5a369(0x143)](_0x5e89b4,_0x25e13b){const _0x592a5a={_0x3b2510:0x16d},_0x3e36e1=_0x5a369;this[_0x3e36e1(_0x592a5a._0x3b2510)]['push']({'scope':this[_0x3e36e1(0x117)],'method':_0x5e89b4,'args':_0x25e13b});}[_0x5a369(0x15f)](){const _0x7f3eb9={_0x8bf76d:0x174},_0x8b5fff=_0x5a369;if(this[_0x8b5fff(0x10f)]['errorOnNextAction']){const _0x3c2c6c=this[_0x8b5fff(0x10f)]['errorOnNextAction'];this[_0x8b5fff(0x10f)][_0x8b5fff(_0x7f3eb9._0x8bf76d)]=void 0x0;throw _0x3c2c6c;}}['url'](){const _0x2431a8=_0x5a369;return this[_0x2431a8(0x12e)];}async[_0x5a369(0x116)](){const _0x45dd43={_0x81c83a:0x116,_0x49b090:0x112},_0x47727b=_0x5a369;return this['record'](_0x47727b(_0x45dd43._0x81c83a),[]),_0x47727b(_0x45dd43._0x49b090);}async[_0x5a369(0x176)](_0x516679,_0xa2b8f1){const _0x23f0ec={_0x13fdec:0x176,_0x42cb01:0x137},_0x194e18=_0x5a369;this['record'](_0x194e18(_0x23f0ec._0x13fdec),[_0x516679,_0xa2b8f1]),this['maybeThrow'](),this[_0x194e18(_0x23f0ec._0x42cb01)]?.();}async[_0x5a369(0x13f)](_0x2bf403,_0xa3d319){const _0x50523b={_0x4c8592:0x13f},_0x4608a1=_0x5a369;this[_0x4608a1(0x143)](_0x4608a1(_0x50523b._0x4c8592),[_0x2bf403,_0xa3d319]),this['maybeThrow']();}async[_0x5a369(0x171)](_0x45f1bf,_0xd53ae6,_0x5a20f4){const _0x45048b={_0x46010e:0x143},_0x2994e8=_0x5a369;this[_0x2994e8(_0x45048b._0x46010e)](_0x2994e8(0x171),[_0x45f1bf,_0xd53ae6,_0x5a20f4]),this['maybeThrow']();}async[_0x5a369(0x13c)](_0x564094,_0x2235bc,_0x561425){const _0x2c26e5=_0x5a369;this[_0x2c26e5(0x143)]('press',[_0x564094,_0x2235bc,_0x561425]),this['maybeThrow']();}async[_0x5a369(0x154)](_0xebcde4,_0x56a1a5){const _0x1e3bac={_0x58d318:0x154,_0x4e60bd:0x15f},_0x143869=_0x5a369;this['record'](_0x143869(_0x1e3bac._0x58d318),[_0xebcde4,_0x56a1a5]),this[_0x143869(_0x1e3bac._0x4e60bd)]();}async[_0x5a369(0x15c)](_0x26ca2f,_0x583d24){const _0x3f84f8={_0x20205c:0x15f},_0x1a6df3=_0x5a369;this['record']('uncheck',[_0x26ca2f,_0x583d24]),this[_0x1a6df3(_0x3f84f8._0x20205c)]();}async[_0x5a369(0x160)](_0x2bf8de,_0x430b79,_0x3bf106){const _0x169b63={_0x34d5fb:0x143},_0x52baaf=_0x5a369;this[_0x52baaf(_0x169b63._0x34d5fb)](_0x52baaf(0x160),[_0x2bf8de,_0x430b79,_0x3bf106]),this['maybeThrow']();}async[_0x5a369(0x125)](_0x554d14,_0x27fae7){const _0x347b7e=_0x5a369;this[_0x347b7e(0x143)](_0x347b7e(0x125),[_0x554d14,_0x27fae7]),this[_0x347b7e(0x15f)]();}async[_0x5a369(0x121)](_0x4b1543){const _0x352de3={_0x3b0502:0x15f},_0x33d422=_0x5a369;this['record'](_0x33d422(0x121),[_0x4b1543]),this[_0x33d422(_0x352de3._0x3b0502)]();}async[_0x5a369(0x14c)](_0x5efe3d,_0x14ea2f,_0x314a97){const _0x14652d={_0x1b2078:0x15f},_0x4a4b43=_0x5a369;this[_0x4a4b43(0x143)]('dragAndDrop',[_0x5efe3d,_0x14ea2f,_0x314a97]),this[_0x4a4b43(_0x14652d._0x1b2078)]();}async[_0x5a369(0x170)](_0x23995d,_0x40e00d){const _0x560f7f=_0x5a369;this['record'](_0x560f7f(0x170),[_0x23995d,_0x40e00d]),this[_0x560f7f(0x15f)]();}async[_0x5a369(0x11f)](_0x54d5dd,_0xc9729c){const _0x3bdf27={_0x44f060:0x11f},_0x4fcdf2=_0x5a369;this['record'](_0x4fcdf2(_0x3bdf27._0x44f060),[_0x54d5dd,_0xc9729c]),this[_0x4fcdf2(0x15f)]();}async[_0x5a369(0x173)](_0x1d8164){const _0x1d8294={_0x29dd4a:0x139},_0x3c57e3=_0x5a369;return this['record'](_0x3c57e3(0x173),[_0x1d8164]),this[_0x3c57e3(0x10f)][_0x3c57e3(_0x1d8294._0x29dd4a)]??0x1;}async[_0x5a369(0x135)](_0x11a4df){const _0x2cc503={_0x2dd39d:0x135,_0xfa5fc8:0x10f,_0x52cda5:0x118},_0x262681=_0x5a369;return this['record'](_0x262681(_0x2cc503._0x2dd39d),[_0x11a4df]),this[_0x262681(_0x2cc503._0xfa5fc8)][_0x262681(_0x2cc503._0x52cda5)]??'';}async[_0x5a369(0x153)](_0x2bd429){const _0x1bb13e={_0x7a4062:0x10f},_0x299977=_0x5a369;return this[_0x299977(0x143)]('innerText',[_0x2bd429]),this[_0x299977(_0x1bb13e._0x7a4062)][_0x299977(0x13a)]??this['behavior']['textContentByDefault']??'';}async['inputValue'](_0x337824){const _0x5dd9a3=_0x5a369;return this[_0x5dd9a3(0x143)]('inputValue',[_0x337824]),this[_0x5dd9a3(0x10f)][_0x5dd9a3(0x151)]??'';}async[_0x5a369(0x13d)](_0x49f90e){const _0x7aa1e1={_0x1e74c1:0x143},_0xb2246b=_0x5a369;return this[_0xb2246b(_0x7aa1e1._0x1e74c1)](_0xb2246b(0x13d),[_0x49f90e]),this['behavior']['checkedStateByDefault']??null;}async[_0x5a369(0x177)](_0x37b641){const _0x3e01c4={_0x49f071:0x10f,_0x598ec7:0x132},_0x543fe7=_0x5a369;return this[_0x543fe7(0x143)](_0x543fe7(0x177),[_0x37b641]),this[_0x543fe7(_0x3e01c4._0x49f071)][_0x543fe7(_0x3e01c4._0x598ec7)]??!![];}async['isDisabled'](_0x4e8876){const _0xf0a058={_0x5e22a5:0x15a},_0x262d72=_0x5a369;return this['record'](_0x262d72(_0xf0a058._0x5e22a5),[_0x4e8876]),this[_0x262d72(0x10f)][_0x262d72(0x12a)]??![];}async[_0x5a369(0x178)](_0x26c567,_0x5baed4){const _0x101dd5={_0x36cdd9:0x178,_0x1b19dc:0x10f,_0x243415:0x111},_0x3c04d2=_0x5a369;return this[_0x3c04d2(0x143)](_0x3c04d2(_0x101dd5._0x36cdd9),[_0x26c567,_0x5baed4]),this[_0x3c04d2(_0x101dd5._0x1b19dc)][_0x3c04d2(_0x101dd5._0x243415)]?.[_0x5baed4]??null;}async[_0x5a369(0x11e)](_0x358dcf,_0x505a65){const _0x4cfd24={_0x440145:0x11e},_0x9bdc3e=_0x5a369;this[_0x9bdc3e(0x143)](_0x9bdc3e(_0x4cfd24._0x440145),[_0x358dcf,_0x505a65]);}async[_0x5a369(0x159)](_0x271d20,_0x598168){const _0x2e9941=_0x5a369;this[_0x2e9941(0x143)](_0x2e9941(0x159),[_0x271d20,_0x598168]);}async[_0x5a369(0x179)](_0xc63544,_0x2ddcbc){const _0x39253a={_0x11ae61:0x143,_0x5ba372:0x179},_0x565308=_0x5a369;this[_0x565308(_0x39253a._0x11ae61)](_0x565308(_0x39253a._0x5ba372),[_0xc63544,_0x2ddcbc]);}async[_0x5a369(0x14d)](_0x2d1b3e){const _0x4031dd=_0x5a369;this['record'](_0x4031dd(0x14d),[_0x2d1b3e]);}async[_0x5a369(0x138)](_0x1bf247,_0x18d779){const _0x9ae71e=_0x5a369;this[_0x9ae71e(0x143)](_0x9ae71e(0x138),[_0x1bf247,_0x18d779]);}async[_0x5a369(0x133)](_0x4ed72e,_0x589f1c){const _0x27eee3={_0x26c0c0:0x143},_0x58497e=_0x5a369;this[_0x58497e(_0x27eee3._0x26c0c0)]('goto',[_0x4ed72e,_0x589f1c]),this[_0x58497e(0x12e)]=_0x4ed72e;}async['reload'](_0x1c50e8){const _0x5c0c27={_0x2e4ee3:0x11b},_0x586d97=_0x5a369;this[_0x586d97(0x143)](_0x586d97(_0x5c0c27._0x2e4ee3),[_0x1c50e8]);}async['goBack'](_0x372d59){const _0x40a595={_0x3dfa3c:0x143},_0xeffa01=_0x5a369;this[_0xeffa01(_0x40a595._0x3dfa3c)](_0xeffa01(0x11c),[_0x372d59]);}async[_0x5a369(0x142)](_0x25bd92){const _0x44ac22={_0x3a5174:0x143},_0x19daf2=_0x5a369;this[_0x19daf2(_0x44ac22._0x3a5174)](_0x19daf2(0x142),[_0x25bd92]);}async['evaluate'](_0x43b6cc){const _0x492773=_0x5a369;return this[_0x492773(0x143)](_0x492773(0x136),[_0x43b6cc]),void 0x0;}async[_0x5a369(0x12f)](_0x548ace,_0x4c7916){const _0xad5522=_0x5a369;return this[_0xad5522(0x143)]('evaluateOnLocator',[_0x548ace,_0x4c7916]),void 0x0;}async[_0x5a369(0x10b)](_0x341ba9){const _0x4a087d={_0x3449eb:0x17b,_0x472aae:0x16a,_0x30583e:0x146},_0x1dfcef=_0x5a369;this['record'](_0x1dfcef(0x10b),[_0x341ba9]);if(_0x341ba9[_0x1dfcef(_0x4a087d._0x3449eb)][_0x1dfcef(0x17f)]!==0x1||_0x341ba9[_0x1dfcef(0x17b)][0x0]['kind']!==_0x1dfcef(_0x4a087d._0x472aae))return null;const _0x2d4ea7=_0x341ba9[_0x1dfcef(0x17b)][0x0][_0x1dfcef(0x16a)],_0x284e96=this[_0x1dfcef(0x10f)][_0x1dfcef(_0x4a087d._0x30583e)]?.[_0x2d4ea7];return _0x284e96??null;}async[_0x5a369(0x110)](_0x5ae291){const _0x8705b8={_0x6c5713:0x143,_0x7f8d88:0x110},_0x2aa399=_0x5a369;return this[_0x2aa399(_0x8705b8._0x6c5713)](_0x2aa399(_0x8705b8._0x7f8d88),[_0x5ae291]),Buffer[_0x2aa399(0x16b)](_0x2aa399(0x14e));}async['outerHTML'](_0x195b19){const _0x57657={_0x2de6c1:0x17f,_0x25c133:0x17b,_0x4d8adf:0x10f,_0xc69ac6:0x16f,_0x6c5a33:0x141},_0x34cf02=_0x5a369;this[_0x34cf02(0x143)](_0x34cf02(0x119),[_0x195b19]);if(_0x195b19[_0x34cf02(0x17b)][_0x34cf02(_0x57657._0x2de6c1)]===0x1&&_0x195b19[_0x34cf02(0x17b)][0x0][_0x34cf02(0x15d)]==='ref'){const _0x9d7ec3=_0x195b19[_0x34cf02(_0x57657._0x25c133)][0x0]['ref'];return this[_0x34cf02(_0x57657._0x4d8adf)]['outerHtmlByRef']?.[_0x9d7ec3]??_0x34cf02(0x181)+_0x9d7ec3+_0x34cf02(_0x57657._0xc69ac6);}return _0x34cf02(_0x57657._0x6c5a33);}},FakeContext=class{constructor(_0x33c4ea,_0x11832b,_0x376d37){const _0x7df6df={_0x3f223d:0x10f,_0xb329c7:0x117,_0xa93f8a:0x16c,_0x2f2dbf:0x150,_0x1a0bca:0x10c,_0x13a5de:0x123},_0x30cbeb={_0x15d2f1:0x17a},_0x3fe581=_0x5a369;this['recorder']=_0x33c4ea,this[_0x3fe581(_0x7df6df._0x3f223d)]=_0x11832b,this[_0x3fe581(_0x7df6df._0xb329c7)]=_0x376d37;const _0x3acb97=new FakePage(_0x33c4ea,_0x11832b,_0x376d37+'.page0',_0x11832b[_0x3fe581(0x107)]??_0x3fe581(_0x7df6df._0xa93f8a));_0x11832b['popupOnClick']&&(_0x3acb97['onAfterClick']=()=>{const _0x56b7db=_0x3fe581;this[_0x56b7db(_0x30cbeb._0x15d2f1)](_0x11832b[_0x56b7db(0x144)]);}),this[_0x3fe581(_0x7df6df._0x2f2dbf)]=[_0x3acb97],this['localStorageState']={..._0x11832b[_0x3fe581(_0x7df6df._0x1a0bca)]??{}},this['cookieState']={..._0x11832b[_0x3fe581(_0x7df6df._0x13a5de)]??{}};}[_0x5a369(0x16d)];['behavior'];['scope'];static{__name(this,'FakeContext');}[_0x5a369(0x150)];[_0x5a369(0x157)]=0x0;[_0x5a369(0x161)]=[];[_0x5a369(0x12d)];[_0x5a369(0x156)];[_0x5a369(0x15e)]=new Set();['record'](_0x5e7215,_0x40ab23){const _0x3f2d7b={_0x2612ec:0x120},_0x2f3f58=_0x5a369;this['recorder'][_0x2f3f58(_0x3f2d7b._0x2612ec)]({'scope':this['scope'],'method':_0x5e7215,'args':_0x40ab23});}['pages'](){const _0x2f0a58={_0x233be5:0x150},_0x5c68af=_0x5a369;return this[_0x5c68af(_0x2f0a58._0x233be5)];}[_0x5a369(0x145)](){const _0x20f76c=_0x5a369,_0x2a8aca=this[_0x20f76c(0x150)][this['activeIdx']];if(!_0x2a8aca)throw new DriverError('no\x20active\x20page\x20in\x20context',{'activeIdx':this['activeIdx']});return _0x2a8aca;}[_0x5a369(0x14a)](){const _0x3debd3={_0x12aa1d:0x14a},_0x3fa175=_0x5a369;return this['behavior'][_0x3fa175(_0x3debd3._0x12aa1d)]??[];}[_0x5a369(0x17d)](){const _0x13b6d5={_0x992d60:0x10f,_0x28da61:0x17d},_0x4a8ccd=_0x5a369;return this[_0x4a8ccd(_0x13b6d5._0x992d60)][_0x4a8ccd(_0x13b6d5._0x28da61)]??[];}async[_0x5a369(0x113)](_0x4173fd){const _0x1f243d={_0x43c15c:0x143,_0x39df75:0x164,_0x50cc0c:0x157},_0x11f1f6=_0x5a369;this[_0x11f1f6(_0x1f243d._0x43c15c)](_0x11f1f6(0x113),[_0x4173fd]);if(_0x4173fd<0x0||_0x4173fd>=this[_0x11f1f6(0x150)]['length'])throw new DriverError(_0x11f1f6(_0x1f243d._0x39df75),{'index':_0x4173fd,'available':this[_0x11f1f6(0x150)]['length']});this[_0x11f1f6(_0x1f243d._0x50cc0c)]=_0x4173fd,this[_0x11f1f6(0x161)]['length']=0x0;}[_0x5a369(0x180)](_0x33fc58){const _0x416d01=_0x5a369;return subscribe(this[_0x416d01(0x15e)],_0x33fc58);}['emitFakePopup'](_0x4c3e82){const _0x1b676f={_0x435c7a:0x117,_0x27716b:0x163,_0x2cec86:0x17f,_0x424355:0x150,_0x30e489:0x120,_0x6de9a3:0x15e},_0x48532c=_0x5a369,_0x234582=this[_0x48532c(_0x1b676f._0x435c7a)]+_0x48532c(_0x1b676f._0x27716b)+this['pageList'][_0x48532c(_0x1b676f._0x2cec86)],_0x757945=new FakePage(this[_0x48532c(0x16d)],this[_0x48532c(0x10f)],_0x234582,_0x4c3e82);this[_0x48532c(_0x1b676f._0x424355)][_0x48532c(_0x1b676f._0x30e489)](_0x757945);const _0x2c1a8e=this[_0x48532c(0x150)][_0x48532c(_0x1b676f._0x2cec86)]-0x1;for(const _0xb30b03 of this[_0x48532c(_0x1b676f._0x6de9a3)]){try{_0xb30b03({'index':_0x2c1a8e,'url':_0x4c3e82});}catch{}}return _0x2c1a8e;}[_0x5a369(0x17c)](_0x8c8ffc){const _0x67a09f={_0x14e5f7:0x17f,_0x2c6444:0x149},_0x2affdb=_0x5a369;if(_0x8c8ffc<0x0||_0x8c8ffc>=this[_0x2affdb(0x150)][_0x2affdb(_0x67a09f._0x14e5f7)])throw new DriverError('page\x20index\x20out\x20of\x20range',{'index':_0x8c8ffc,'available':this['pageList']['length']});this[_0x2affdb(0x150)][_0x2affdb(_0x67a09f._0x2c6444)](_0x8c8ffc,0x1);}async[_0x5a369(0x167)](_0x5e5287){const _0x40a702={_0x39962d:0x10e},_0x15f7f7=_0x5a369;this[_0x15f7f7(0x143)](_0x15f7f7(0x167),[_0x5e5287]);if(!_0x5e5287[_0x15f7f7(0x17b)][_0x15f7f7(0x17f)])throw new LocatorError(_0x15f7f7(_0x40a702._0x39962d),{'locator':_0x5e5287});this['frameStack']['push'](_0x5e5287);}async[_0x5a369(0x165)](){const _0x4fb9f8={_0x40a7a3:0x143,_0x338a2c:0x161,_0x2c9352:0x17f},_0x677d6b=_0x5a369;this[_0x677d6b(_0x4fb9f8._0x40a7a3)](_0x677d6b(0x165),[]);if(this[_0x677d6b(_0x4fb9f8._0x338a2c)][_0x677d6b(_0x4fb9f8._0x2c9352)]===0x0)throw new DriverError('exitFrame\x20called\x20with\x20no\x20frame\x20on\x20the\x20stack',{});this[_0x677d6b(_0x4fb9f8._0x338a2c)]['pop']();}async['setLocalStorage'](_0x46a76d,_0x2de9b4){const _0x10b9be={_0x411eb3:0x143,_0x1ec3fe:0x12d},_0x505995=_0x5a369;this[_0x505995(_0x10b9be._0x411eb3)](_0x505995(0x115),[_0x46a76d,_0x2de9b4]),this[_0x505995(_0x10b9be._0x1ec3fe)][_0x46a76d]=_0x2de9b4;}async[_0x5a369(0x17e)](_0x4e455f){const _0x35bde2={_0x40b5fe:0x12d},_0x25a145=_0x5a369;return this[_0x25a145(0x143)](_0x25a145(0x17e),[_0x4e455f]),this[_0x25a145(_0x35bde2._0x40b5fe)][_0x4e455f]??null;}async['setCookie'](_0x3559ff,_0x1e7baa,_0x2f7ab3){const _0x508f84=_0x5a369;this[_0x508f84(0x143)]('setCookie',[_0x3559ff,_0x1e7baa,_0x2f7ab3]),this['cookieState'][_0x3559ff]=_0x1e7baa;}async[_0x5a369(0x13b)](_0x404262){const _0x33d899=_0x5a369;return this[_0x33d899(0x143)]('getCookie',[_0x404262]),this['cookieState'][_0x404262]??null;}async[_0x5a369(0x148)](_0x23049a){const _0x252b7a={_0x1bd851:0x143},_0x2bcdb5=_0x5a369;this[_0x2bcdb5(_0x252b7a._0x1bd851)]('saveStorageState',[_0x23049a]);}async[_0x5a369(0x136)](_0x2a3bb3){const _0x1fe91f={_0x3ff783:0x143,_0x291b8d:0x136},_0x4e3169=_0x5a369;return this[_0x4e3169(_0x1fe91f._0x3ff783)](_0x4e3169(_0x1fe91f._0x291b8d),[_0x2a3bb3]),void 0x0;}async[_0x5a369(0x124)](){const _0x4a2cc7={_0x1002ee:0x124},_0x5f3024=_0x5a369;this[_0x5f3024(0x143)](_0x5f3024(_0x4a2cc7._0x1002ee),[]);}[_0x5a369(0x11a)](){const _0x3c88d2={_0x2ebd46:0x161,_0x3beb99:0x17f},_0x1dbfc1=_0x5a369;return this[_0x1dbfc1(_0x3c88d2._0x2ebd46)][_0x1dbfc1(_0x3c88d2._0x3beb99)];}},FakeWebDriver=class{constructor(_0x1565d2={}){const _0x44d7a5={_0xb830b:0x10f,_0x178af4:0x16d},_0x3f3772=_0x5a369;this[_0x3f3772(_0x44d7a5._0xb830b)]=_0x1565d2,this[_0x3f3772(_0x44d7a5._0x178af4)]=createRecorder();}[_0x5a369(0x10f)];static{__name(this,_0x5a369(0x14f));}['launched']=![];[_0x5a369(0x16d)];[_0x5a369(0x134)]=[];async[_0x5a369(0x128)](_0x6b7a79){const _0x2260f3={_0xc2aafe:0x10d},_0x106e74=_0x5a369;this[_0x106e74(0x16d)]['push']({'scope':_0x106e74(_0x2260f3._0xc2aafe),'method':'launch','args':[_0x6b7a79]}),this['launched']=!![];}async[_0x5a369(0x16e)](_0x588916){const _0x1219b5={_0x5d07f8:0x10f,_0x1fa957:0x134,_0x48cbcf:0x120},_0x5c1472=_0x5a369;this[_0x5c1472(0x16d)][_0x5c1472(0x120)]({'scope':_0x5c1472(0x10d),'method':'newContext','args':[_0x588916]});if(!this['launched'])throw new DriverError(_0x5c1472(0x14b),{});const _0x494835=new FakeContext(this[_0x5c1472(0x16d)],this[_0x5c1472(_0x1219b5._0x5d07f8)],_0x5c1472(0x175)+this[_0x5c1472(_0x1219b5._0x1fa957)][_0x5c1472(0x17f)]);return this['contexts'][_0x5c1472(_0x1219b5._0x48cbcf)](_0x494835),_0x494835;}async[_0x5a369(0x124)](){const _0x3336f4={_0x331124:0x16d,_0x3aef86:0x10d,_0x4f119d:0x124,_0x584520:0x15b},_0x2e5cac=_0x5a369;this[_0x2e5cac(_0x3336f4._0x331124)][_0x2e5cac(0x120)]({'scope':_0x2e5cac(_0x3336f4._0x3aef86),'method':_0x2e5cac(_0x3336f4._0x4f119d),'args':[]}),this[_0x2e5cac(_0x3336f4._0x584520)]=![];}[_0x5a369(0x10a)](){return void 0x0;}async[_0x5a369(0x155)](){const _0x4fc479=_0x5a369;throw new DriverError(_0x4fc479(0x12b),{});}[_0x5a369(0x11d)](){throw new DriverError('attachExisting\x20not\x20supported\x20by\x20FakeWebDriver',{});}[_0x5a369(0x158)](){const _0xa49c69={_0xcb4bc4:0x16d,_0x14b7f0:0x158},_0x34c64a=_0x5a369;return this[_0x34c64a(_0xa49c69._0xcb4bc4)][_0x34c64a(_0xa49c69._0x14b7f0)]();}['callsFor'](_0x2ac3fe){const _0x1033e4={_0x50844c:0x16d},_0x2d8347=_0x5a369;return this[_0x2d8347(_0x1033e4._0x50844c)][_0x2d8347(0x158)]()['filter'](_0x46b0dd=>_0x46b0dd['method']===_0x2ac3fe);}};export{FakeWebDriver};
|
package/dist/dsl/index.d.ts
CHANGED
|
@@ -322,7 +322,6 @@ declare class TestRuntimeManager {
|
|
|
322
322
|
private requireActive;
|
|
323
323
|
}
|
|
324
324
|
|
|
325
|
-
/** Build a fully-populated FunctionRegistry. */
|
|
326
325
|
declare function buildDefaultRegistry(): FunctionRegistry;
|
|
327
326
|
|
|
328
327
|
export { AstExecutor, type DslArg, type DslArray, type DslFunction, type DslObject, type DslValue, FunctionRegistry, LocatorValue, TestRuntime, TestRuntimeManager, buildDefaultRegistry, chainGetByAltText, chainGetByLabel, chainGetByPlaceholder, chainGetByRole, chainGetByTestId, chainGetByText, chainGetByTitle, contentFrame, filter, first, getByAltText, getByLabel, getByPlaceholder, getByRole, getByTestId, getByText, getByTitle, last, locator, nth, randomNth, re };
|