@unotest/web 0.49.2 → 0.51.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.
@@ -19,6 +19,10 @@ declare const SYSTEM_BROWSER_CHANNELS: readonly ["chrome", "msedge", "chrome-bet
19
19
  declare const BROWSER_CHANNEL_WORDS: readonly ["chrome", "msedge", "chrome-beta", "chromium", "bundled"];
20
20
  declare const BrowserChannelSchema: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["chrome", "msedge", "chrome-beta", "chromium"]>, z.ZodEffects<z.ZodLiteral<"bundled">, null, "bundled">, z.ZodNull]>>;
21
21
  type BrowserChannel = z.infer<typeof BrowserChannelSchema>;
22
+ /** How the app was launched, as `(display-mode: …)` names it: `standalone`
23
+ * for one added to the home screen. */
24
+ declare const DisplayModeSchema: z.ZodEnum<["browser", "standalone", "minimal-ui", "fullscreen"]>;
25
+ type DisplayMode = z.infer<typeof DisplayModeSchema>;
22
26
  declare const ViewportSchema: z.ZodObject<{
23
27
  width: z.ZodOptional<z.ZodNumber>;
24
28
  height: z.ZodOptional<z.ZodNumber>;
@@ -116,19 +120,19 @@ declare const FailureBundleConfigSchema: z.ZodObject<{
116
120
  type FailureBundleConfig = z.infer<typeof FailureBundleConfigSchema>;
117
121
  declare const DialogPolicySchema: z.ZodEnum<["accept", "dismiss", "manual"]>;
118
122
  type DialogPolicy = z.infer<typeof DialogPolicySchema>;
119
- declare const LinterRuleIdSchema: z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:api-call-file-body", "lint:lint-ok-missing-reason", "lint:flow-returns-value", "lint:legacy-layout", "lint:external-variable-undeclared", "lint:env-host-from-base", "lint:one-test-per-file", "lint:shadows-dsl-function", "lint:skip-outside-test", "lint:set-test-timeout-outside-test", "lint:filter-unknown-option", "lint:role-unknown-option", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:unsupported-statement", "validator:unsupported-expression", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format"]>;
123
+ declare const LinterRuleIdSchema: z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:api-call-file-body", "lint:lint-ok-missing-reason", "lint:flow-returns-value", "lint:legacy-layout", "lint:external-variable-undeclared", "lint:external-variable-no-value", "lint:env-host-from-base", "lint:one-test-per-file", "lint:shadows-dsl-function", "lint:skip-outside-test", "lint:set-test-timeout-outside-test", "lint:filter-unknown-option", "lint:role-unknown-option", "lint:typed-step-available", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:unsupported-statement", "validator:unsupported-expression", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format", "validator:const-assign", "validator:teardown-shape", "validator:teardown-name-conflict", "validator:wait-until-shape", "validator:assert-never-shape", "validator:locator-index-access", "validator:chain-receiver", "validator:top-level-const", "validator:string-member-receiver", "validator:unsupported-string-member", "validator:array-member-receiver", "validator:options", "validator:out-of-language", "validator:implicit-declaration", "validator:evaluate-interpolation", "validator:page-code-closure", "validator:page-code-syntax", "validator:page-code-string", "validator:template-escape-changed", "validator:library-member", "validator:unknown-member"]>;
120
124
  type LinterRuleId = z.infer<typeof LinterRuleIdSchema>;
121
125
  declare const LinterSeveritySchema: z.ZodEnum<["off", "warn", "error"]>;
122
126
  type LinterSeverity = z.infer<typeof LinterSeveritySchema>;
123
127
  declare const LinterConfigSchema: z.ZodObject<{
124
128
  enabled: z.ZodBoolean;
125
- rules: z.ZodRecord<z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:api-call-file-body", "lint:lint-ok-missing-reason", "lint:flow-returns-value", "lint:legacy-layout", "lint:external-variable-undeclared", "lint:env-host-from-base", "lint:one-test-per-file", "lint:shadows-dsl-function", "lint:skip-outside-test", "lint:set-test-timeout-outside-test", "lint:filter-unknown-option", "lint:role-unknown-option", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:unsupported-statement", "validator:unsupported-expression", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format"]>, z.ZodEnum<["off", "warn", "error"]>>;
129
+ rules: z.ZodRecord<z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:api-call-file-body", "lint:lint-ok-missing-reason", "lint:flow-returns-value", "lint:legacy-layout", "lint:external-variable-undeclared", "lint:external-variable-no-value", "lint:env-host-from-base", "lint:one-test-per-file", "lint:shadows-dsl-function", "lint:skip-outside-test", "lint:set-test-timeout-outside-test", "lint:filter-unknown-option", "lint:role-unknown-option", "lint:typed-step-available", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:unsupported-statement", "validator:unsupported-expression", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format", "validator:const-assign", "validator:teardown-shape", "validator:teardown-name-conflict", "validator:wait-until-shape", "validator:assert-never-shape", "validator:locator-index-access", "validator:chain-receiver", "validator:top-level-const", "validator:string-member-receiver", "validator:unsupported-string-member", "validator:array-member-receiver", "validator:options", "validator:out-of-language", "validator:implicit-declaration", "validator:evaluate-interpolation", "validator:page-code-closure", "validator:page-code-syntax", "validator:page-code-string", "validator:template-escape-changed", "validator:library-member", "validator:unknown-member"]>, z.ZodEnum<["off", "warn", "error"]>>;
126
130
  }, "strict", z.ZodTypeAny, {
127
131
  enabled: boolean;
128
- rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format", "off" | "warn" | "error">>;
132
+ rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:unsupported-string-member" | "validator:array-member-receiver" | "validator:options" | "validator:out-of-language" | "validator:implicit-declaration" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:library-member" | "validator:unknown-member", "off" | "warn" | "error">>;
129
133
  }, {
130
134
  enabled: boolean;
131
- rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format", "off" | "warn" | "error">>;
135
+ rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:unsupported-string-member" | "validator:array-member-receiver" | "validator:options" | "validator:out-of-language" | "validator:implicit-declaration" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:library-member" | "validator:unknown-member", "off" | "warn" | "error">>;
132
136
  }>;
133
137
  type LinterConfig = z.infer<typeof LinterConfigSchema>;
134
138
  declare const QueueConfigSchema: z.ZodObject<{
@@ -479,6 +483,16 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
479
483
  * driver when a context opens — the list is Playwright's, and this
480
484
  * schema is imported where Playwright is not installed. */
481
485
  device: z.ZodOptional<z.ZodString>;
486
+ /** Browser, device and launch mode in one line (`"ios"`: WebKit, an
487
+ * iPhone preset, standalone). Written out by the loader before the
488
+ * defaults (`config/profile.ts`); `browsers` or `device` next to it is
489
+ * refused. */
490
+ profile: z.ZodOptional<z.ZodEnum<["ios", ..."ios"[]]>>;
491
+ /** What the page's scripts see as the launch mode: `matchMedia` on
492
+ * `(display-mode: …)` and, in WebKit, `navigator.standalone`. CSS
493
+ * `@media (display-mode)` is not emulated by any engine. Unset → the
494
+ * browser's own (`browser`). */
495
+ displayMode: z.ZodOptional<z.ZodEnum<["browser", "standalone", "minimal-ui", "fullscreen"]>>;
482
496
  /** IANA time zone of every page (`"Europe/Madrid"`): `Date#toString`,
483
497
  * `Intl` and `getTimezoneOffset` answer in it. Unset → the machine's.
484
498
  * `UNOTEST_TIMEZONE` overrides it. */
@@ -499,12 +513,12 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
499
513
  profile: z.ZodOptional<z.ZodLiteral<"per-test">>;
500
514
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
501
515
  }, "strict", z.ZodTypeAny, {
502
- userDataDir?: string | undefined;
503
516
  profile?: "per-test" | undefined;
517
+ userDataDir?: string | undefined;
504
518
  args?: string[] | undefined;
505
519
  }, {
506
- userDataDir?: string | undefined;
507
520
  profile?: "per-test" | undefined;
521
+ userDataDir?: string | undefined;
508
522
  args?: string[] | undefined;
509
523
  }>>;
510
524
  retry: z.ZodObject<{
@@ -620,13 +634,13 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
620
634
  }>;
621
635
  linter: z.ZodObject<{
622
636
  enabled: z.ZodBoolean;
623
- rules: z.ZodRecord<z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:api-call-file-body", "lint:lint-ok-missing-reason", "lint:flow-returns-value", "lint:legacy-layout", "lint:external-variable-undeclared", "lint:env-host-from-base", "lint:one-test-per-file", "lint:shadows-dsl-function", "lint:skip-outside-test", "lint:set-test-timeout-outside-test", "lint:filter-unknown-option", "lint:role-unknown-option", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:unsupported-statement", "validator:unsupported-expression", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format"]>, z.ZodEnum<["off", "warn", "error"]>>;
637
+ rules: z.ZodRecord<z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:api-call-file-body", "lint:lint-ok-missing-reason", "lint:flow-returns-value", "lint:legacy-layout", "lint:external-variable-undeclared", "lint:external-variable-no-value", "lint:env-host-from-base", "lint:one-test-per-file", "lint:shadows-dsl-function", "lint:skip-outside-test", "lint:set-test-timeout-outside-test", "lint:filter-unknown-option", "lint:role-unknown-option", "lint:typed-step-available", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:unsupported-statement", "validator:unsupported-expression", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format", "validator:const-assign", "validator:teardown-shape", "validator:teardown-name-conflict", "validator:wait-until-shape", "validator:assert-never-shape", "validator:locator-index-access", "validator:chain-receiver", "validator:top-level-const", "validator:string-member-receiver", "validator:unsupported-string-member", "validator:array-member-receiver", "validator:options", "validator:out-of-language", "validator:implicit-declaration", "validator:evaluate-interpolation", "validator:page-code-closure", "validator:page-code-syntax", "validator:page-code-string", "validator:template-escape-changed", "validator:library-member", "validator:unknown-member"]>, z.ZodEnum<["off", "warn", "error"]>>;
624
638
  }, "strict", z.ZodTypeAny, {
625
639
  enabled: boolean;
626
- rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format", "off" | "warn" | "error">>;
640
+ rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:unsupported-string-member" | "validator:array-member-receiver" | "validator:options" | "validator:out-of-language" | "validator:implicit-declaration" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:library-member" | "validator:unknown-member", "off" | "warn" | "error">>;
627
641
  }, {
628
642
  enabled: boolean;
629
- rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format", "off" | "warn" | "error">>;
643
+ rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:unsupported-string-member" | "validator:array-member-receiver" | "validator:options" | "validator:out-of-language" | "validator:implicit-declaration" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:library-member" | "validator:unknown-member", "off" | "warn" | "error">>;
630
644
  }>;
631
645
  mcp: z.ZodObject<{
632
646
  transport: z.ZodLiteral<"stdio">;
@@ -755,7 +769,7 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
755
769
  defaultNavigationTimeoutMs: number;
756
770
  linter: {
757
771
  enabled: boolean;
758
- rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format", "off" | "warn" | "error">>;
772
+ rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:unsupported-string-member" | "validator:array-member-receiver" | "validator:options" | "validator:out-of-language" | "validator:implicit-declaration" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:library-member" | "validator:unknown-member", "off" | "warn" | "error">>;
759
773
  };
760
774
  mcp: {
761
775
  transport: "stdio";
@@ -794,12 +808,14 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
794
808
  deviceScaleFactor?: number | undefined;
795
809
  } | null | undefined;
796
810
  device?: string | undefined;
811
+ profile?: "ios" | undefined;
812
+ displayMode?: "browser" | "standalone" | "minimal-ui" | "fullscreen" | undefined;
797
813
  timezone?: string | undefined;
798
814
  locale?: string | undefined;
799
815
  maxContexts?: number | undefined;
800
816
  launch?: {
801
- userDataDir?: string | undefined;
802
817
  profile?: "per-test" | undefined;
818
+ userDataDir?: string | undefined;
803
819
  args?: string[] | undefined;
804
820
  } | undefined;
805
821
  storageState?: string | undefined;
@@ -835,7 +851,7 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
835
851
  defaultNavigationTimeoutMs: number;
836
852
  linter: {
837
853
  enabled: boolean;
838
- rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format", "off" | "warn" | "error">>;
854
+ rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:unsupported-string-member" | "validator:array-member-receiver" | "validator:options" | "validator:out-of-language" | "validator:implicit-declaration" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:library-member" | "validator:unknown-member", "off" | "warn" | "error">>;
839
855
  };
840
856
  mcp: {
841
857
  transport: "stdio";
@@ -873,12 +889,14 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
873
889
  deviceScaleFactor?: number | undefined;
874
890
  } | null | undefined;
875
891
  device?: string | undefined;
892
+ profile?: "ios" | undefined;
893
+ displayMode?: "browser" | "standalone" | "minimal-ui" | "fullscreen" | undefined;
876
894
  timezone?: string | undefined;
877
895
  locale?: string | undefined;
878
896
  maxContexts?: number | undefined;
879
897
  launch?: {
880
- userDataDir?: string | undefined;
881
898
  profile?: "per-test" | undefined;
899
+ userDataDir?: string | undefined;
882
900
  args?: string[] | undefined;
883
901
  } | undefined;
884
902
  storageState?: string | undefined;
@@ -920,7 +938,7 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
920
938
  defaultNavigationTimeoutMs: number;
921
939
  linter: {
922
940
  enabled: boolean;
923
- rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format", "off" | "warn" | "error">>;
941
+ rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:unsupported-string-member" | "validator:array-member-receiver" | "validator:options" | "validator:out-of-language" | "validator:implicit-declaration" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:library-member" | "validator:unknown-member", "off" | "warn" | "error">>;
924
942
  };
925
943
  mcp: {
926
944
  transport: "stdio";
@@ -959,12 +977,14 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
959
977
  deviceScaleFactor?: number | undefined;
960
978
  } | null | undefined;
961
979
  device?: string | undefined;
980
+ profile?: "ios" | undefined;
981
+ displayMode?: "browser" | "standalone" | "minimal-ui" | "fullscreen" | undefined;
962
982
  timezone?: string | undefined;
963
983
  locale?: string | undefined;
964
984
  maxContexts?: number | undefined;
965
985
  launch?: {
966
- userDataDir?: string | undefined;
967
986
  profile?: "per-test" | undefined;
987
+ userDataDir?: string | undefined;
968
988
  args?: string[] | undefined;
969
989
  } | undefined;
970
990
  storageState?: string | undefined;
@@ -1000,7 +1020,7 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
1000
1020
  defaultNavigationTimeoutMs: number;
1001
1021
  linter: {
1002
1022
  enabled: boolean;
1003
- rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format", "off" | "warn" | "error">>;
1023
+ rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:unsupported-string-member" | "validator:array-member-receiver" | "validator:options" | "validator:out-of-language" | "validator:implicit-declaration" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:library-member" | "validator:unknown-member", "off" | "warn" | "error">>;
1004
1024
  };
1005
1025
  mcp: {
1006
1026
  transport: "stdio";
@@ -1038,12 +1058,14 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
1038
1058
  deviceScaleFactor?: number | undefined;
1039
1059
  } | null | undefined;
1040
1060
  device?: string | undefined;
1061
+ profile?: "ios" | undefined;
1062
+ displayMode?: "browser" | "standalone" | "minimal-ui" | "fullscreen" | undefined;
1041
1063
  timezone?: string | undefined;
1042
1064
  locale?: string | undefined;
1043
1065
  maxContexts?: number | undefined;
1044
1066
  launch?: {
1045
- userDataDir?: string | undefined;
1046
1067
  profile?: "per-test" | undefined;
1068
+ userDataDir?: string | undefined;
1047
1069
  args?: string[] | undefined;
1048
1070
  } | undefined;
1049
1071
  storageState?: string | undefined;
@@ -1060,4 +1082,4 @@ type UnotestConfig = z.infer<typeof UnotestConfigSchema>;
1060
1082
  type UnotestConfigInput = z.input<typeof UnotestConfigSchema>;
1061
1083
  declare const DEFAULT_CONFIG: UnotestConfig;
1062
1084
 
1063
- export { BROWSER_CHANNEL_WORDS, type Browser, type BrowserChannel, BrowserChannelSchema, BrowserSchema, DEFAULT_CONFIG, type DialogPolicy, DialogPolicySchema, type EnvConfig, EnvConfigSchema, type FailureBundleConfig, FailureBundleConfigSchema, type LinterConfig, LinterConfigSchema, type LinterRuleId, LinterRuleIdSchema, type LinterSeverity, LinterSeveritySchema, type McpConfig, McpConfigSchema, type QueueConfig, QueueConfigSchema, type RetryConfig, RetryConfigSchema, type RetryReason, RetryReasonSchema, SYSTEM_BROWSER_CHANNELS, type SandboxConfig, SandboxConfigSchema, type ScheduleConfig, ScheduleSchema, type UnotestConfig, type UnotestConfigInput, UnotestConfigSchema, type Viewport, ViewportSchema, type WebServerConfig, WebServerConfigSchema, WebServersConfigSchema, viewportDeviceConflict };
1085
+ export { BROWSER_CHANNEL_WORDS, type Browser, type BrowserChannel, BrowserChannelSchema, BrowserSchema, DEFAULT_CONFIG, type DialogPolicy, DialogPolicySchema, type DisplayMode, DisplayModeSchema, type EnvConfig, EnvConfigSchema, type FailureBundleConfig, FailureBundleConfigSchema, type LinterConfig, LinterConfigSchema, type LinterRuleId, LinterRuleIdSchema, type LinterSeverity, LinterSeveritySchema, type McpConfig, McpConfigSchema, type QueueConfig, QueueConfigSchema, type RetryConfig, RetryConfigSchema, type RetryReason, RetryReasonSchema, SYSTEM_BROWSER_CHANNELS, type SandboxConfig, SandboxConfigSchema, type ScheduleConfig, ScheduleSchema, type UnotestConfig, type UnotestConfigInput, UnotestConfigSchema, type Viewport, ViewportSchema, type WebServerConfig, WebServerConfigSchema, WebServersConfigSchema, viewportDeviceConflict };
@@ -1 +1 @@
1
- var _0x4b2829=_0x181a;(function(_0x282d14,_0x3fe266){var _0x3e1421={_0x80dd09:0x133,_0x4cddfe:0x130,_0x752b99:0x121,_0x468bea:0x134,_0x4a3353:0x150},_0x2eaac5=_0x181a,_0x41e487=_0x282d14();while(!![]){try{var _0x1c02ac=parseInt(_0x2eaac5(_0x3e1421._0x80dd09))/0x1*(-parseInt(_0x2eaac5(0x13b))/0x2)+parseInt(_0x2eaac5(0x11e))/0x3+parseInt(_0x2eaac5(_0x3e1421._0x4cddfe))/0x4*(-parseInt(_0x2eaac5(0x14c))/0x5)+-parseInt(_0x2eaac5(0x117))/0x6*(parseInt(_0x2eaac5(_0x3e1421._0x752b99))/0x7)+-parseInt(_0x2eaac5(0x143))/0x8+parseInt(_0x2eaac5(_0x3e1421._0x468bea))/0x9+parseInt(_0x2eaac5(_0x3e1421._0x4a3353))/0xa;if(_0x1c02ac===_0x3fe266)break;else _0x41e487['push'](_0x41e487['shift']());}catch(_0x59f838){_0x41e487['push'](_0x41e487['shift']());}}}(_0x1737,0x7cdd8));var __defProp=Object[_0x4b2829(0x16b)],__name=(_0x3b52db,_0x46ae7d)=>__defProp(_0x3b52db,_0x4b2829(0x12a),{'value':_0x46ae7d,'configurable':!![]});import{z as _0x3a0701}from'zod';import{z}from'zod';import{levenshteinDistance}from'@unotest/core';var MAX_EDITS=0x2;function closestKey(_0x353e51,_0x1d3c5a){var _0x4b920e={_0x1f8338:0x124,_0x4ddd9c:0x14b},_0x1f2edf=_0x4b2829;let _0x46dc63;for(const _0x2a4370 of _0x1d3c5a){const _0x5c9ba1=levenshteinDistance(_0x353e51['toLowerCase'](),_0x2a4370['toLowerCase']());if(_0x5c9ba1>MAX_EDITS)continue;if(_0x46dc63===void 0x0||_0x5c9ba1<_0x46dc63[_0x1f2edf(_0x4b920e._0x1f8338)])_0x46dc63={'key':_0x2a4370,'distance':_0x5c9ba1};}return _0x46dc63?.[_0x1f2edf(_0x4b920e._0x4ddd9c)];}__name(closestKey,_0x4b2829(0x12b));function unknownKeyMessage(_0xa27254,_0x594b9a){var _0x77a463={_0x175e3f:0x120},_0x51c03f={_0x4de527:0x10c},_0x3f9221=_0x4b2829;return _0xa27254[_0x3f9221(0x11d)](_0x3d10b8=>{var _0x71c61=_0x3f9221;const _0x20e06e=closestKey(_0x3d10b8,_0x594b9a);return _0x20e06e===void 0x0?'unknown\x20key\x20\x22'+_0x3d10b8+_0x71c61(0x15f):_0x71c61(_0x51c03f._0x4de527)+_0x3d10b8+_0x71c61(0x168)+_0x20e06e+'\x22?';})[_0x3f9221(_0x77a463._0x175e3f)](';\x20');}__name(unknownKeyMessage,_0x4b2829(0x160));function strictObject(_0x57437e){var _0x59ca41={_0x14114c:0x11c},_0x24637b=_0x4b2829;const _0x1ddfac=Object[_0x24637b(0x127)](_0x57437e);return z['object'](_0x57437e,{'errorMap':__name((_0x482870,_0x3171b3)=>_0x482870['code']===z[_0x24637b(0x13f)][_0x24637b(0x166)]?{'message':unknownKeyMessage(_0x482870['keys'],_0x1ddfac)}:{'message':_0x3171b3[_0x24637b(0x162)]},'errorMap')})[_0x24637b(_0x59ca41._0x14114c)]();}__name(strictObject,_0x4b2829(0xfe));import{BUNDLED_BROWSER_CHANNEL}from'@unotest/protocol';function _0x181a(_0x601664,_0x1d53ae){_0x601664=_0x601664-0xfe;var _0x17374e=_0x1737();var _0x181acd=_0x17374e[_0x601664];if(_0x181a['hSriEP']===undefined){var _0x21db07=function(_0x4788fc){var _0x32150a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x3a0701='',_0x30fe35='';for(var _0x3b52db=0x0,_0x46ae7d,_0x353e51,_0x1d3c5a=0x0;_0x353e51=_0x4788fc['charAt'](_0x1d3c5a++);~_0x353e51&&(_0x46ae7d=_0x3b52db%0x4?_0x46ae7d*0x40+_0x353e51:_0x353e51,_0x3b52db++%0x4)?_0x3a0701+=String['fromCharCode'](0xff&_0x46ae7d>>(-0x2*_0x3b52db&0x6)):0x0){_0x353e51=_0x32150a['indexOf'](_0x353e51);}for(var _0x46dc63=0x0,_0x2a4370=_0x3a0701['length'];_0x46dc63<_0x2a4370;_0x46dc63++){_0x30fe35+='%'+('00'+_0x3a0701['charCodeAt'](_0x46dc63)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x30fe35);};_0x181a['TkzsMM']=_0x21db07,_0x181a['dXnifj']={},_0x181a['hSriEP']=!![];}var _0x2d2957=_0x17374e[0x0],_0x2cd111=_0x601664+_0x2d2957,_0x1ad96d=_0x181a['dXnifj'][_0x2cd111];return!_0x1ad96d?(_0x181acd=_0x181a['TkzsMM'](_0x181acd),_0x181a['dXnifj'][_0x2cd111]=_0x181acd):_0x181acd=_0x1ad96d,_0x181acd;}import{z as _0x30fe35}from'zod';function _0x1737(){var _0x31a7f0=['igLZigfSCMvHzhKGyw5VDgHLCIbZzxj2zxiNCYdIGjqGzwfJAcbZzxj2zxiGBMvLzhmGAxrZig93BIbYzwfKAw5LC3mGvvjmlG','BgLUDdPSzwDHy3KTBgf5B3v0','C3rYAw5N','zM9YrwfJAa','Dw5RBM93BIbRzxKGiG','BgLUDdPZy2vUyxjPBY1PBI1YB290','CMvKywn0zwq','DxjS','C3rKAw8','Cg9ZAxrPDMu','BgLUDdPVyMz1C2nHDgvKlwnSyxnZ','yxjYyxK','BgLUDdPNB3rVlwnVBMnHDa','BNvSBa','BgLUDdPZzxqTDgvZDc10Aw1LB3v0lw91DhnPzguTDgvZDa','ntiYndm4ELjly1nn','DMfSAwrHDg9YoM1LDgeTC2HHCgu','BNvTyMvY','BgLUDdPYzwDLEc1PBNzHBgLK','y2HYB21L','C3rYAwn0','BwfW','mtqZnZKWowPjDufcra','zgLZBwLZCW','AM9PBG','nZDxvvv4sxq','yM9VBgvHBG','DMfSAwrHDg9YoMLMlxnOyxbL','zgLZDgfUy2u','DMfSAwrHDg9YoNnLBwfUDgLJlwXVC3m','zMLYzwzVEa','A2v5CW','lNvUB3rLC3qVzMfPBhvYzxm','D2fYBG','BMfTzq','y2XVC2vZDeTLEq','BgLUDdPLBNyTAg9ZDc1MCM9TlwjHC2u','D2vIu2vYDMvYwW','zw4Tvvm','DhjHBNnPzw50','mZK3ntCYD2PQCNPr','Dw5VDgvZDc9LmMu','DMfSAwrHDg9YoNn0zxaTC2HHCgu','ody3ndnJwhjWwLm','nZi5mdm2qvHuywLL','CgvYlxrLC3q','ywrK','y3jHC2G','DMfSAwrHDg9YoNn0CMLUzY1JB25Jyxq','zxjYB3i','y2HYB21LlwjLDge','mtrTq2XbrNC','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlwv4ChjLC3nPB24','BgLUDdP4Cgf0Aa','zw51Bq','wM9KsxnZDwvdB2rL','B3b0Aw9UywW','Bwf4','DhjHBNnMB3jT','mtK3mJmYmg5Tq2Drva','zgvMyxvSDa','BwfUDwfS','AxnbCNjHEq','DMLLD3bVCNq','Dw5RBM93BIb0Aw1LihPVBMuGiG','CMvJB3jK','DMfSAwrHDg9YoNDYyxbWzwqTzM9YBwf0','A2v5','nuz2yNDotG','BgLUDdPTDxn0ywnOzs1PBI1KC2W','y2HYB21PDw0','BgLUDdPWyxvZzs1LEhbSAwnPDa','mtG2mJa3odblyxzcwfe','BgLUDdPSAw50lw9Rlw1PC3nPBMCTCMvHC29U','BgLUDdPKAxnHBwjPzY1IEs1PBMrLEa','y3vZDg9T','BgvUz3rO','zNvSBa','BgLUDdPYB2XLlxvUA25VD24TB3b0Aw9U','DMfSAwrHDg9YoMfYzY1RAw5K','C3vWzxjszwzPBMu','DMfSAwrHDg9YoMzVCI1ZAgfWzq','AxnuAw1LwM9Uzq','z2v0q2fUB25Py2fStg9JywXLCW','ywnJzxb0','rgf0zvrPBwvgB3jTyxq','BMv0D29YAW','iIdIGjqGBM90igeGy29UzMLNigTLEtSGy2HLy2SGEw91CIbaDw5VDgvZDc93zwiGDMvYC2LVBIbPzIbPDcbJB21LCYbMCM9TigeGBMv3zxiGCMvSzwfZzq','Dw5RBM93BKTLEu1LC3nHz2u','AgfZ','zgvMyxvSDevYCM9Y','BgLUDdPKzwvWlwnZCW','BgL0zxjHBa','BxnLzgDL','Dw5YzwnVz25PEMvKx2TLExm','igTLzxbZihrOzsbYzwfSigjYB3DZzxiGD2LUzg93lcbHBMqGzgv2AwnLici','iIdIGjqGzgLKihLVDsbTzwfUici','BgLUDdPMBg93lxjLDhvYBNmTDMfSDwu','DMfSAwrHDg9YoMXPC3qTyxjN','zgvMAw5LuhjVCgvYDhK','BNvSBgfIBgu','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlxn0yxrLBwvUDa','Aw50','BgLUDdPZA2LWlw91DhnPzguTDgvZDa','B2zM','DMLLD3bVCNq6ig51BgW','BwLU','Dw5PB24','C3rYAwn0t2jQzwn0','DMfSAwrHDg9YoMfYAxr5','zgv2AwnL','DMfSAwrHDg9YoMz1BMn0Aw9UlxnOyxbL','D2vIA2L0','iIbZzxrZigL0CYbVD24GC2L6zsbHBMqGC2nHBguG4OcuigrYB3aGB25Lig9MihrOzw0U','AxnmB2nHBgu','CMvMAw5L','DMfSAwrHDg9YoNn0zxaTy292zxjHz2u','BgLUDdPHCgKTy2fSBc1MAwXLlwjVzhK'];_0x1737=function(){return _0x31a7f0;};return _0x1737();}import{UnotestError}from'@unotest/core';var LaunchConfigSchema=_0x30fe35['object']({'userDataDir':_0x30fe35[_0x4b2829(0x10a)]()[_0x4b2829(0x172)](0x1)['optional'](),'profile':_0x30fe35[_0x4b2829(0x164)](_0x4b2829(0x135))[_0x4b2829(0x140)](),'args':_0x30fe35[_0x4b2829(0x113)](_0x30fe35[_0x4b2829(0x10a)]()[_0x4b2829(0x172)](0x1))[_0x4b2829(0x140)]()})['strict'](),BrowserSchema=_0x3a0701[_0x4b2829(0x13e)]([_0x4b2829(0x14e),_0x4b2829(0x126),_0x4b2829(0x102)]),SYSTEM_BROWSER_CHANNELS=[_0x4b2829(0x11b),_0x4b2829(0x165),_0x4b2829(0x13a),'chromium'],BROWSER_CHANNEL_WORDS=[...SYSTEM_BROWSER_CHANNELS,BUNDLED_BROWSER_CHANNEL],BrowserChannelSchema=_0x3a0701['union']([_0x3a0701['enum'](SYSTEM_BROWSER_CHANNELS),_0x3a0701[_0x4b2829(0x164)](BUNDLED_BROWSER_CHANNEL)['transform'](()=>null),_0x3a0701[_0x4b2829(0x115)]()])['optional'](),ViewportSchema=strictObject({'width':_0x3a0701['number']()['int']()[_0x4b2829(0x111)]()[_0x4b2829(0x140)](),'height':_0x3a0701[_0x4b2829(0x119)]()['int']()['positive']()[_0x4b2829(0x140)](),'deviceScaleFactor':_0x3a0701['number']()[_0x4b2829(0x111)]()[_0x4b2829(0x140)]()}),ConfigViewportSchema=ViewportSchema[_0x4b2829(0x16c)]();function viewportDeviceConflict(_0x2539dd,_0x2ed50c,_0x476cdc=_0x4b2829(0x171)){var _0x31661f={_0x1688b0:0x167,_0x331759:0x103},_0x2ae083=_0x4b2829;if(_0x2539dd!==null||_0x2ed50c===void 0x0)return void 0x0;return _0x476cdc+_0x2ae083(_0x31661f._0x1688b0)+_0x2ed50c+_0x2ae083(_0x31661f._0x331759);}__name(viewportDeviceConflict,'viewportDeviceConflict');var RetryReasonSchema=_0x3a0701[_0x4b2829(0x13e)]([_0x4b2829(0x12f),_0x4b2829(0x15e),_0x4b2829(0x137)]),RetryConfigSchema=strictObject({'count':_0x3a0701[_0x4b2829(0x119)]()[_0x4b2829(0x16e)]()['min'](0x0)[_0x4b2829(0x141)](0xa),'on':_0x3a0701[_0x4b2829(0x113)](RetryReasonSchema)}),FailureBundleConfigSchema=strictObject({'tier1':_0x3a0701[_0x4b2829(0x164)](!![])[_0x4b2829(0x144)](!![]),'tier2':_0x3a0701['boolean'](),'tier3':strictObject({'network':_0x3a0701['boolean'](),'video':_0x3a0701[_0x4b2829(0x122)]()}),'retention':strictObject({'runs':_0x3a0701['number']()[_0x4b2829(0x16e)]()[_0x4b2829(0x111)](),'days':_0x3a0701['number']()[_0x4b2829(0x16e)]()[_0x4b2829(0x111)]()}),'storageDir':_0x3a0701['string']()[_0x4b2829(0x172)](0x1),'pageHtml':_0x3a0701[_0x4b2829(0x13e)]([_0x4b2829(0x10e),_0x4b2829(0x155)])}),DialogPolicySchema=_0x3a0701[_0x4b2829(0x13e)]([_0x4b2829(0x15c),_0x4b2829(0x11f),_0x4b2829(0x145)]),LinterRuleIdSchema=_0x3a0701[_0x4b2829(0x13e)]([_0x4b2829(0x163),_0x4b2829(0x13d),_0x4b2829(0x112),_0x4b2829(0x14f),_0x4b2829(0x152),'lint:evaluate-discouraged',_0x4b2829(0x10d),_0x4b2829(0x14d),_0x4b2829(0x114),_0x4b2829(0x11a),'lint:echo-assert',_0x4b2829(0x107),_0x4b2829(0x151),_0x4b2829(0x169),_0x4b2829(0x109),'lint:external-variable-undeclared',_0x4b2829(0x12c),'lint:one-test-per-file','lint:shadows-dsl-function',_0x4b2829(0x16f),_0x4b2829(0x116),'lint:filter-unknown-option',_0x4b2829(0x156),'validator:unknown-function',_0x4b2829(0xff),_0x4b2829(0x157),_0x4b2829(0x106),_0x4b2829(0x132),_0x4b2829(0x118),_0x4b2829(0x101),_0x4b2829(0x159),_0x4b2829(0x123),'validator:var-shape',_0x4b2829(0x16d),_0x4b2829(0x13c),_0x4b2829(0x138),_0x4b2829(0x125),_0x4b2829(0x16a),_0x4b2829(0x14a)]),LinterSeveritySchema=_0x3a0701[_0x4b2829(0x13e)](['off',_0x4b2829(0x129),_0x4b2829(0x139)]),LinterConfigSchema=strictObject({'enabled':_0x3a0701['boolean'](),'rules':_0x3a0701[_0x4b2829(0x149)](LinterRuleIdSchema,LinterSeveritySchema)}),QueueConfigSchema=strictObject({'enabled':_0x3a0701[_0x4b2829(0x122)]()[_0x4b2829(0x144)](!![]),'concurrency':_0x3a0701['number']()[_0x4b2829(0x16e)]()[_0x4b2829(0x111)]()[_0x4b2829(0x144)](0x1)}),ScheduleSchema=strictObject({'collection':_0x3a0701[_0x4b2829(0x10a)]()['min'](0x1),'cron':_0x3a0701[_0x4b2829(0x10a)]()[_0x4b2829(0x172)](0x1),'env':_0x3a0701['string']()[_0x4b2829(0x172)](0x1)['optional'](),'prepare':_0x3a0701[_0x4b2829(0x10a)]()[_0x4b2829(0x172)](0x1)[_0x4b2829(0x140)]()}),McpConfigSchema=strictObject({'transport':_0x3a0701['literal'](_0x4b2829(0x110))}),SandboxConfigSchema=strictObject({'shellCwd':_0x3a0701['string']()['optional'](),'shellTimeoutMs':_0x3a0701['number']()['int']()[_0x4b2829(0x111)]()['optional'](),'exportSecrets':_0x3a0701['array'](_0x3a0701['string']())['optional'](),'database':_0x3a0701['string']()[_0x4b2829(0x140)](),'apiBaseUrl':_0x3a0701['string']()[_0x4b2829(0x10f)]()[_0x4b2829(0x140)](),'uploadDir':_0x3a0701['string']()[_0x4b2829(0x140)](),'readRoots':_0x3a0701[_0x4b2829(0x113)](_0x3a0701[_0x4b2829(0x10a)]()[_0x4b2829(0x172)](0x1))[_0x4b2829(0x140)]()}),WebServerConfigSchema=strictObject({'command':_0x3a0701[_0x4b2829(0x10a)]()[_0x4b2829(0x172)](0x1),'url':_0x3a0701[_0x4b2829(0x10a)]()[_0x4b2829(0x10f)](),'reuseExistingServer':_0x3a0701[_0x4b2829(0x122)]()[_0x4b2829(0x144)](!![]),'timeoutMs':_0x3a0701['number']()[_0x4b2829(0x16e)]()[_0x4b2829(0x111)]()[_0x4b2829(0x144)](0xea60)}),WebServersConfigSchema=_0x3a0701[_0x4b2829(0x173)]([WebServerConfigSchema,_0x3a0701[_0x4b2829(0x113)](WebServerConfigSchema)[_0x4b2829(0x172)](0x1)])[_0x4b2829(0x142)](_0x260f05=>Array[_0x4b2829(0x146)](_0x260f05)?_0x260f05:[_0x260f05])['superRefine']((_0x2c84b2,_0x263d55)=>{var _0x2449d5={_0x19ea64:0x10b},_0x2f1afb={_0x50f79c:0x161,_0x430889:0x13f,_0xf2de18:0x10f,_0x17b590:0x10f},_0x380746=_0x4b2829;const _0x42cf7f=new Set();_0x2c84b2[_0x380746(_0x2449d5._0x19ea64)]((_0x35af51,_0x4fdecf)=>{var _0x50cacc=_0x380746;_0x42cf7f[_0x50cacc(_0x2f1afb._0x50f79c)](_0x35af51[_0x50cacc(0x10f)])&&_0x263d55['addIssue']({'code':_0x3a0701[_0x50cacc(_0x2f1afb._0x430889)][_0x50cacc(0x153)],'path':[_0x4fdecf,_0x50cacc(_0x2f1afb._0xf2de18)],'message':_0x50cacc(0x12d)+_0x4fdecf+'].url\x20'+_0x35af51[_0x50cacc(_0x2f1afb._0x17b590)]+_0x50cacc(0x108)}),_0x42cf7f[_0x50cacc(0x136)](_0x35af51[_0x50cacc(0x10f)]);});}),EnvConfigSchema=strictObject({'shared':_0x3a0701[_0x4b2829(0x113)](_0x3a0701['string']())[_0x4b2829(0x144)]([])}),UnotestConfigSchema=strictObject({'baseUrl':_0x3a0701['string']()['url']()[_0x4b2829(0x140)](),'webServer':WebServersConfigSchema[_0x4b2829(0x140)](),'generate':_0x3a0701[_0x4b2829(0x10a)]()[_0x4b2829(0x172)](0x1)[_0x4b2829(0x140)](),'browsers':_0x3a0701[_0x4b2829(0x113)](BrowserSchema)['min'](0x1),'channel':BrowserChannelSchema,'viewport':ConfigViewportSchema[_0x4b2829(0x140)](),'device':_0x3a0701[_0x4b2829(0x10a)]()[_0x4b2829(0x172)](0x1)[_0x4b2829(0x140)](),'timezone':_0x3a0701[_0x4b2829(0x10a)]()[_0x4b2829(0x105)](isTimeZone,_0x33e6e2=>({'message':_0x4b2829(0x148)+_0x33e6e2+'\x22\x20—\x20expected\x20an\x20IANA\x20name\x20such\x20as\x20\x22Europe/Madrid\x22'}))[_0x4b2829(0x140)](),'locale':_0x3a0701[_0x4b2829(0x10a)]()[_0x4b2829(0x105)](isLocale,_0x5dfb28=>({'message':'invalid\x20locale\x20\x22'+_0x5dfb28+'\x22\x20—\x20expected\x20a\x20BCP\x2047\x20tag\x20such\x20as\x20\x22es-ES\x22'}))[_0x4b2829(0x140)](),'maxContexts':_0x3a0701[_0x4b2829(0x119)]()[_0x4b2829(0x16e)]()['positive']()['optional'](),'launch':LaunchConfigSchema[_0x4b2829(0x140)](),'retry':RetryConfigSchema,'failureBundle':FailureBundleConfigSchema,'dialogPolicy':DialogPolicySchema,'storageState':_0x3a0701[_0x4b2829(0x10a)]()[_0x4b2829(0x140)](),'testDir':_0x3a0701['string']()[_0x4b2829(0x172)](0x1),'helpersDir':_0x3a0701[_0x4b2829(0x10a)]()[_0x4b2829(0x172)](0x1),'defaultTimeoutMs':_0x3a0701['number']()[_0x4b2829(0x16e)]()[_0x4b2829(0x111)](),'defaultNavigationTimeoutMs':_0x3a0701[_0x4b2829(0x119)]()['int']()[_0x4b2829(0x111)](),'teardownTimeoutMs':_0x3a0701[_0x4b2829(0x119)]()[_0x4b2829(0x16e)]()[_0x4b2829(0x111)]()['optional'](),'testTimeoutMs':_0x3a0701['number']()[_0x4b2829(0x16e)]()['positive']()['optional'](),'env':EnvConfigSchema,'linter':LinterConfigSchema,'mcp':McpConfigSchema,'queue':QueueConfigSchema,'schedules':_0x3a0701[_0x4b2829(0x113)](ScheduleSchema)[_0x4b2829(0x144)]([]),'sandbox':SandboxConfigSchema})[_0x4b2829(0x158)]((_0x20a25a,_0x53f946)=>{var _0x2700ff={_0x2d94b0:0x147,_0x320ebd:0x100,_0x37c6ed:0x13f,_0x549a0d:0x147},_0x577dc0=_0x4b2829;const _0x5b8163=viewportDeviceConflict(_0x20a25a[_0x577dc0(_0x2700ff._0x2d94b0)],_0x20a25a[_0x577dc0(_0x2700ff._0x320ebd)]);_0x5b8163!==void 0x0&&_0x53f946['addIssue']({'code':_0x3a0701[_0x577dc0(_0x2700ff._0x37c6ed)][_0x577dc0(0x153)],'path':[_0x577dc0(_0x2700ff._0x549a0d)],'message':_0x5b8163});});function isTimeZone(_0x450fd3){var _0x2b787c={_0x57e30e:0x154},_0x4a35f4=_0x4b2829;try{return new Intl[(_0x4a35f4(0x15d))](_0x4a35f4(0x12e),{'timeZone':_0x450fd3}),_0x450fd3[_0x4a35f4(_0x2b787c._0x57e30e)]>0x0;}catch{return![];}}__name(isTimeZone,_0x4b2829(0x15a));function isLocale(_0x4b4fa0){var _0x3e9517={_0x4b48a9:0x15b},_0x133045=_0x4b2829;try{return Intl[_0x133045(_0x3e9517._0x4b48a9)](_0x4b4fa0)[_0x133045(0x154)]===0x1;}catch{return![];}}__name(isLocale,_0x4b2829(0x104));var DEFAULT_CONFIG={'browsers':[_0x4b2829(0x14e)],'retry':{'count':0x0,'on':[_0x4b2829(0x12f)]},'failureBundle':{'tier1':!![],'tier2':!![],'tier3':{'network':![],'video':![]},'retention':{'runs':0x14,'days':0x7},'storageDir':_0x4b2829(0x128),'pageHtml':'redacted'},'dialogPolicy':_0x4b2829(0x15c),'testDir':_0x4b2829(0x131),'helpersDir':'unotest/e2e/_helpers','defaultTimeoutMs':0xbb8,'defaultNavigationTimeoutMs':0x7530,'linter':{'enabled':!![],'rules':{'lint:deep-css':_0x4b2829(0x129),'lint:xpath':_0x4b2829(0x129),'lint:obfuscated-class':'warn','lint:pause-explicit':'warn','lint:disambig-by-index':_0x4b2829(0x170),'lint:evaluate-discouraged':_0x4b2829(0x129),'lint:scenario-in-root':_0x4b2829(0x139),'lint:mustache-in-dsl':_0x4b2829(0x139),'lint:goto-concat':'warn','lint:regex-invalid':_0x4b2829(0x139),'lint:echo-assert':'warn','lint:lint-ok-missing-reason':_0x4b2829(0x129),'lint:flow-returns-value':_0x4b2829(0x129),'lint:legacy-layout':_0x4b2829(0x129),'lint:external-variable-undeclared':_0x4b2829(0x139),'lint:env-host-from-base':_0x4b2829(0x139),'lint:one-test-per-file':_0x4b2829(0x129),'lint:shadows-dsl-function':_0x4b2829(0x129),'lint:skip-outside-test':_0x4b2829(0x139),'lint:set-test-timeout-outside-test':'error','lint:filter-unknown-option':'error','lint:role-unknown-option':'error','validator:unknown-function':_0x4b2829(0x139)}},'env':{'shared':[]},'mcp':{'transport':'stdio'},'queue':{'enabled':!![],'concurrency':0x1},'schedules':[],'sandbox':{}};export{BROWSER_CHANNEL_WORDS,BrowserChannelSchema,BrowserSchema,DEFAULT_CONFIG,DialogPolicySchema,EnvConfigSchema,FailureBundleConfigSchema,LinterConfigSchema,LinterRuleIdSchema,LinterSeveritySchema,McpConfigSchema,QueueConfigSchema,RetryConfigSchema,RetryReasonSchema,SYSTEM_BROWSER_CHANNELS,SandboxConfigSchema,ScheduleSchema,UnotestConfigSchema,ViewportSchema,WebServerConfigSchema,WebServersConfigSchema,viewportDeviceConflict};
1
+ var _0x4a59ba=_0x22e4;(function(_0x380e73,_0x53d37d){var _0x14390d={_0x2741fd:0x1a3,_0x46eb96:0x1d1,_0x3f8632:0x1d3,_0x55a817:0x18e,_0x3c9882:0x1b9,_0x274aed:0x1e3},_0x35a80a=_0x22e4,_0x437c9b=_0x380e73();while(!![]){try{var _0x1dedce=-parseInt(_0x35a80a(_0x14390d._0x2741fd))/0x1*(parseInt(_0x35a80a(0x1a8))/0x2)+-parseInt(_0x35a80a(0x1b7))/0x3+-parseInt(_0x35a80a(_0x14390d._0x46eb96))/0x4+-parseInt(_0x35a80a(_0x14390d._0x3f8632))/0x5+parseInt(_0x35a80a(_0x14390d._0x55a817))/0x6+parseInt(_0x35a80a(0x200))/0x7*(-parseInt(_0x35a80a(_0x14390d._0x3c9882))/0x8)+parseInt(_0x35a80a(_0x14390d._0x274aed))/0x9;if(_0x1dedce===_0x53d37d)break;else _0x437c9b['push'](_0x437c9b['shift']());}catch(_0x30e74f){_0x437c9b['push'](_0x437c9b['shift']());}}}(_0x284d,0x2f3eb));var __defProp=Object['defineProperty'],__name=(_0x5154a0,_0x58d327)=>__defProp(_0x5154a0,_0x4a59ba(0x1bb),{'value':_0x58d327,'configurable':!![]});import{z as _0x1fe3aa}from'zod';import{z}from'zod';import{levenshteinDistance}from'@unotest/core';var MAX_EDITS=0x2;function closestKey(_0x1ba2e2,_0x20ddc1){var _0x52c04c={_0x1bcad9:0x1d8},_0x34fa72=_0x4a59ba;let _0x5aed4c;for(const _0x39252a of _0x20ddc1){const _0xdab434=levenshteinDistance(_0x1ba2e2[_0x34fa72(_0x52c04c._0x1bcad9)](),_0x39252a[_0x34fa72(_0x52c04c._0x1bcad9)]());if(_0xdab434>MAX_EDITS)continue;if(_0x5aed4c===void 0x0||_0xdab434<_0x5aed4c['distance'])_0x5aed4c={'key':_0x39252a,'distance':_0xdab434};}return _0x5aed4c?.['key'];}__name(closestKey,_0x4a59ba(0x1ad));function unknownKeyMessage(_0x5d0d12,_0x42ba05){var _0x3c5f7c={_0x3aee3c:0x1ea,_0x34ad35:0x1cf};return _0x5d0d12['map'](_0x562205=>{var _0x1940cb=_0x22e4;const _0x12dd88=closestKey(_0x562205,_0x42ba05);return _0x12dd88===void 0x0?_0x1940cb(_0x3c5f7c._0x3aee3c)+_0x562205+_0x1940cb(_0x3c5f7c._0x34ad35):_0x1940cb(0x1ea)+_0x562205+_0x1940cb(0x1d7)+_0x12dd88+'\x22?';})['join'](';\x20');}__name(unknownKeyMessage,_0x4a59ba(0x1be));function strictObject(_0x15c59d){var _0xe19253={_0x548076:0x1ec},_0x5a0b32=_0x4a59ba;const _0x1fca03=Object['keys'](_0x15c59d);return z[_0x5a0b32(_0xe19253._0x548076)](_0x15c59d,{'errorMap':__name((_0x50414d,_0x1eea77)=>_0x50414d[_0x5a0b32(0x1ba)]===z[_0x5a0b32(0x1e4)][_0x5a0b32(0x1f0)]?{'message':unknownKeyMessage(_0x50414d['keys'],_0x1fca03)}:{'message':_0x1eea77[_0x5a0b32(0x1a0)]},'errorMap')})[_0x5a0b32(0x1f4)]();}__name(strictObject,_0x4a59ba(0x196));import{BUNDLED_BROWSER_CHANNEL}from'@unotest/protocol';import{z as _0xa5eed0}from'zod';import{UnotestError}from'@unotest/core';var LaunchConfigSchema=_0xa5eed0[_0x4a59ba(0x1ec)]({'userDataDir':_0xa5eed0[_0x4a59ba(0x1c8)]()[_0x4a59ba(0x1c5)](0x1)['optional'](),'profile':_0xa5eed0[_0x4a59ba(0x204)]('per-test')[_0x4a59ba(0x1e0)](),'args':_0xa5eed0[_0x4a59ba(0x1d6)](_0xa5eed0[_0x4a59ba(0x1c8)]()[_0x4a59ba(0x1c5)](0x1))['optional']()})['strict'](),PROFILES={'ios':{'browsers':[_0x4a59ba(0x1a6)],'device':_0x4a59ba(0x1f1),'displayMode':_0x4a59ba(0x1cd)}},PROFILE_NAMES=Object[_0x4a59ba(0x18b)](PROFILES);function profileConflict(_0x455ac9,_0x5e5c54){var _0x548a79={_0x1e939f:0x1f9},_0x42745e=_0x4a59ba;return'profile\x20\x22'+_0x455ac9+'\x22\x20sets\x20'+_0x5e5c54[_0x42745e(0x1f8)](_0x324525=>'`'+_0x324525+'`')[_0x42745e(_0x548a79._0x1e939f)](_0x42745e(0x198))+'\x20itself\x20—\x20drop\x20'+(_0x5e5c54[_0x42745e(0x1ff)]===0x1?'it':_0x42745e(0x1bf))+'\x20from\x20the\x20config,\x20or\x20drop\x20the\x20profile.';}__name(profileConflict,_0x4a59ba(0x190));var BrowserSchema=_0x1fe3aa[_0x4a59ba(0x1eb)]([_0x4a59ba(0x199),_0x4a59ba(0x1a2),'webkit']),SYSTEM_BROWSER_CHANNELS=[_0x4a59ba(0x1d4),_0x4a59ba(0x1a1),_0x4a59ba(0x1a4),_0x4a59ba(0x199)],BROWSER_CHANNEL_WORDS=[...SYSTEM_BROWSER_CHANNELS,BUNDLED_BROWSER_CHANNEL],BrowserChannelSchema=_0x1fe3aa['union']([_0x1fe3aa['enum'](SYSTEM_BROWSER_CHANNELS),_0x1fe3aa[_0x4a59ba(0x204)](BUNDLED_BROWSER_CHANNEL)[_0x4a59ba(0x1cc)](()=>null),_0x1fe3aa['null']()])['optional'](),DisplayModeSchema=_0x1fe3aa[_0x4a59ba(0x1eb)]([_0x4a59ba(0x1cb),_0x4a59ba(0x1cd),_0x4a59ba(0x1d2),_0x4a59ba(0x1a9)]),ViewportSchema=strictObject({'width':_0x1fe3aa[_0x4a59ba(0x1ac)]()['int']()['positive']()['optional'](),'height':_0x1fe3aa['number']()[_0x4a59ba(0x1ef)]()['positive']()[_0x4a59ba(0x1e0)](),'deviceScaleFactor':_0x1fe3aa['number']()[_0x4a59ba(0x1e1)]()[_0x4a59ba(0x1e0)]()}),ConfigViewportSchema=ViewportSchema[_0x4a59ba(0x1c1)]();function viewportDeviceConflict(_0x5824e9,_0x49020b,_0x1cc1a9='viewport:\x20null'){var _0x18be22={_0x27ef17:0x1c6},_0x5272db=_0x4a59ba;if(_0x5824e9!==null||_0x49020b===void 0x0)return void 0x0;return _0x1cc1a9+'\x20keeps\x20the\x20real\x20browser\x20window,\x20and\x20device\x20\x22'+_0x49020b+_0x5272db(_0x18be22._0x27ef17);}__name(viewportDeviceConflict,_0x4a59ba(0x206));var RetryReasonSchema=_0x1fe3aa[_0x4a59ba(0x1eb)](['transient','network','crash']),RetryConfigSchema=strictObject({'count':_0x1fe3aa['number']()[_0x4a59ba(0x1ef)]()[_0x4a59ba(0x1c5)](0x0)[_0x4a59ba(0x1a5)](0xa),'on':_0x1fe3aa['array'](RetryReasonSchema)}),FailureBundleConfigSchema=strictObject({'tier1':_0x1fe3aa[_0x4a59ba(0x204)](!![])['default'](!![]),'tier2':_0x1fe3aa[_0x4a59ba(0x1b0)](),'tier3':strictObject({'network':_0x1fe3aa[_0x4a59ba(0x1b0)](),'video':_0x1fe3aa[_0x4a59ba(0x1b0)]()}),'retention':strictObject({'runs':_0x1fe3aa['number']()['int']()[_0x4a59ba(0x1e1)](),'days':_0x1fe3aa['number']()[_0x4a59ba(0x1ef)]()[_0x4a59ba(0x1e1)]()}),'storageDir':_0x1fe3aa[_0x4a59ba(0x1c8)]()[_0x4a59ba(0x1c5)](0x1),'pageHtml':_0x1fe3aa['enum']([_0x4a59ba(0x1fa),_0x4a59ba(0x1af)])}),DialogPolicySchema=_0x1fe3aa[_0x4a59ba(0x1eb)]([_0x4a59ba(0x1d0),_0x4a59ba(0x18f),_0x4a59ba(0x1c0)]),LinterRuleIdSchema=_0x1fe3aa[_0x4a59ba(0x1eb)]([_0x4a59ba(0x1ca),_0x4a59ba(0x1b1),_0x4a59ba(0x18a),'lint:pause-explicit',_0x4a59ba(0x1d9),'lint:evaluate-discouraged',_0x4a59ba(0x18c),_0x4a59ba(0x193),_0x4a59ba(0x202),_0x4a59ba(0x195),'lint:echo-assert','lint:api-call-file-body',_0x4a59ba(0x1f6),_0x4a59ba(0x197),'lint:legacy-layout',_0x4a59ba(0x1bd),_0x4a59ba(0x1b8),'lint:env-host-from-base',_0x4a59ba(0x1b5),'lint:shadows-dsl-function','lint:skip-outside-test','lint:set-test-timeout-outside-test','lint:filter-unknown-option',_0x4a59ba(0x1ae),_0x4a59ba(0x1ee),_0x4a59ba(0x1f5),_0x4a59ba(0x1f3),_0x4a59ba(0x1dc),_0x4a59ba(0x194),_0x4a59ba(0x1db),_0x4a59ba(0x19e),_0x4a59ba(0x1f2),_0x4a59ba(0x19f),'validator:if-shape',_0x4a59ba(0x1a7),'validator:unsupported-statement','validator:unsupported-expression',_0x4a59ba(0x1ed),_0x4a59ba(0x1aa),'validator:list-arg',_0x4a59ba(0x189),_0x4a59ba(0x1b2),_0x4a59ba(0x1c3),'validator:teardown-name-conflict',_0x4a59ba(0x1e2),_0x4a59ba(0x192),_0x4a59ba(0x1d5),_0x4a59ba(0x1bc),_0x4a59ba(0x1fc),_0x4a59ba(0x19b),_0x4a59ba(0x1f7),_0x4a59ba(0x207),'validator:options',_0x4a59ba(0x1fe),'validator:implicit-declaration',_0x4a59ba(0x18d),'validator:page-code-closure',_0x4a59ba(0x1df),'validator:page-code-string',_0x4a59ba(0x1ce),_0x4a59ba(0x1dd),_0x4a59ba(0x20b)]),LinterSeveritySchema=_0x1fe3aa[_0x4a59ba(0x1eb)]([_0x4a59ba(0x19a),_0x4a59ba(0x1da),_0x4a59ba(0x1ab)]),LinterConfigSchema=strictObject({'enabled':_0x1fe3aa[_0x4a59ba(0x1b0)](),'rules':_0x1fe3aa['record'](LinterRuleIdSchema,LinterSeveritySchema)}),QueueConfigSchema=strictObject({'enabled':_0x1fe3aa['boolean']()['default'](!![]),'concurrency':_0x1fe3aa['number']()[_0x4a59ba(0x1ef)]()[_0x4a59ba(0x1e1)]()[_0x4a59ba(0x1de)](0x1)}),ScheduleSchema=strictObject({'collection':_0x1fe3aa['string']()['min'](0x1),'cron':_0x1fe3aa[_0x4a59ba(0x1c8)]()[_0x4a59ba(0x1c5)](0x1),'env':_0x1fe3aa[_0x4a59ba(0x1c8)]()[_0x4a59ba(0x1c5)](0x1)[_0x4a59ba(0x1e0)](),'prepare':_0x1fe3aa[_0x4a59ba(0x1c8)]()[_0x4a59ba(0x1c5)](0x1)[_0x4a59ba(0x1e0)]()}),McpConfigSchema=strictObject({'transport':_0x1fe3aa[_0x4a59ba(0x204)](_0x4a59ba(0x201))}),SandboxConfigSchema=strictObject({'shellCwd':_0x1fe3aa[_0x4a59ba(0x1c8)]()[_0x4a59ba(0x1e0)](),'shellTimeoutMs':_0x1fe3aa[_0x4a59ba(0x1ac)]()[_0x4a59ba(0x1ef)]()[_0x4a59ba(0x1e1)]()[_0x4a59ba(0x1e0)](),'exportSecrets':_0x1fe3aa[_0x4a59ba(0x1d6)](_0x1fe3aa[_0x4a59ba(0x1c8)]())[_0x4a59ba(0x1e0)](),'database':_0x1fe3aa[_0x4a59ba(0x1c8)]()[_0x4a59ba(0x1e0)](),'apiBaseUrl':_0x1fe3aa[_0x4a59ba(0x1c8)]()[_0x4a59ba(0x20a)]()[_0x4a59ba(0x1e0)](),'uploadDir':_0x1fe3aa[_0x4a59ba(0x1c8)]()[_0x4a59ba(0x1e0)](),'readRoots':_0x1fe3aa[_0x4a59ba(0x1d6)](_0x1fe3aa[_0x4a59ba(0x1c8)]()[_0x4a59ba(0x1c5)](0x1))[_0x4a59ba(0x1e0)]()}),WebServerConfigSchema=strictObject({'command':_0x1fe3aa[_0x4a59ba(0x1c8)]()['min'](0x1),'url':_0x1fe3aa[_0x4a59ba(0x1c8)]()['url'](),'reuseExistingServer':_0x1fe3aa[_0x4a59ba(0x1b0)]()[_0x4a59ba(0x1de)](!![]),'timeoutMs':_0x1fe3aa['number']()[_0x4a59ba(0x1ef)]()[_0x4a59ba(0x1e1)]()[_0x4a59ba(0x1de)](0xea60)}),WebServersConfigSchema=_0x1fe3aa['union']([WebServerConfigSchema,_0x1fe3aa['array'](WebServerConfigSchema)[_0x4a59ba(0x1c5)](0x1)])[_0x4a59ba(0x1cc)](_0x25ff32=>Array[_0x4a59ba(0x1e8)](_0x25ff32)?_0x25ff32:[_0x25ff32])[_0x4a59ba(0x1c7)]((_0x309d01,_0x48d7cb)=>{var _0xc0e4ab={_0x21c5a5:0x20a,_0x285d7c:0x209,_0x1ff3bd:0x1e4,_0x2586ad:0x1b6},_0x3a2957=_0x4a59ba;const _0x75fdd7=new Set();_0x309d01[_0x3a2957(0x191)]((_0xc6131f,_0x1b3dcf)=>{var _0x63f2a0=_0x3a2957;_0x75fdd7[_0x63f2a0(0x1c9)](_0xc6131f[_0x63f2a0(_0xc0e4ab._0x21c5a5)])&&_0x48d7cb[_0x63f2a0(_0xc0e4ab._0x285d7c)]({'code':_0x1fe3aa[_0x63f2a0(_0xc0e4ab._0x1ff3bd)]['custom'],'path':[_0x1b3dcf,_0x63f2a0(_0xc0e4ab._0x21c5a5)],'message':_0x63f2a0(0x1e9)+_0x1b3dcf+_0x63f2a0(_0xc0e4ab._0x2586ad)+_0xc6131f[_0x63f2a0(0x20a)]+_0x63f2a0(0x19d)}),_0x75fdd7[_0x63f2a0(0x1c4)](_0xc6131f[_0x63f2a0(0x20a)]);});}),EnvConfigSchema=strictObject({'shared':_0x1fe3aa['array'](_0x1fe3aa[_0x4a59ba(0x1c8)]())[_0x4a59ba(0x1de)]([])}),UnotestConfigSchema=strictObject({'baseUrl':_0x1fe3aa[_0x4a59ba(0x1c8)]()[_0x4a59ba(0x20a)]()[_0x4a59ba(0x1e0)](),'webServer':WebServersConfigSchema[_0x4a59ba(0x1e0)](),'generate':_0x1fe3aa[_0x4a59ba(0x1c8)]()[_0x4a59ba(0x1c5)](0x1)[_0x4a59ba(0x1e0)](),'browsers':_0x1fe3aa[_0x4a59ba(0x1d6)](BrowserSchema)['min'](0x1),'channel':BrowserChannelSchema,'viewport':ConfigViewportSchema[_0x4a59ba(0x1e0)](),'device':_0x1fe3aa[_0x4a59ba(0x1c8)]()[_0x4a59ba(0x1c5)](0x1)[_0x4a59ba(0x1e0)](),'profile':_0x1fe3aa[_0x4a59ba(0x1eb)](PROFILE_NAMES)['optional'](),'displayMode':DisplayModeSchema['optional'](),'timezone':_0x1fe3aa[_0x4a59ba(0x1c8)]()[_0x4a59ba(0x1c2)](isTimeZone,_0x5a8f23=>({'message':'unknown\x20time\x20zone\x20\x22'+_0x5a8f23+'\x22\x20—\x20expected\x20an\x20IANA\x20name\x20such\x20as\x20\x22Europe/Madrid\x22'}))[_0x4a59ba(0x1e0)](),'locale':_0x1fe3aa[_0x4a59ba(0x1c8)]()[_0x4a59ba(0x1c2)](isLocale,_0x8afdaf=>({'message':_0x4a59ba(0x1b3)+_0x8afdaf+_0x4a59ba(0x1e6)}))[_0x4a59ba(0x1e0)](),'maxContexts':_0x1fe3aa[_0x4a59ba(0x1ac)]()['int']()[_0x4a59ba(0x1e1)]()[_0x4a59ba(0x1e0)](),'launch':LaunchConfigSchema[_0x4a59ba(0x1e0)](),'retry':RetryConfigSchema,'failureBundle':FailureBundleConfigSchema,'dialogPolicy':DialogPolicySchema,'storageState':_0x1fe3aa['string']()[_0x4a59ba(0x1e0)](),'testDir':_0x1fe3aa[_0x4a59ba(0x1c8)]()[_0x4a59ba(0x1c5)](0x1),'helpersDir':_0x1fe3aa[_0x4a59ba(0x1c8)]()[_0x4a59ba(0x1c5)](0x1),'defaultTimeoutMs':_0x1fe3aa[_0x4a59ba(0x1ac)]()[_0x4a59ba(0x1ef)]()[_0x4a59ba(0x1e1)](),'defaultNavigationTimeoutMs':_0x1fe3aa['number']()[_0x4a59ba(0x1ef)]()[_0x4a59ba(0x1e1)](),'teardownTimeoutMs':_0x1fe3aa[_0x4a59ba(0x1ac)]()[_0x4a59ba(0x1ef)]()[_0x4a59ba(0x1e1)]()['optional'](),'testTimeoutMs':_0x1fe3aa[_0x4a59ba(0x1ac)]()['int']()[_0x4a59ba(0x1e1)]()['optional'](),'env':EnvConfigSchema,'linter':LinterConfigSchema,'mcp':McpConfigSchema,'queue':QueueConfigSchema,'schedules':_0x1fe3aa[_0x4a59ba(0x1d6)](ScheduleSchema)[_0x4a59ba(0x1de)]([]),'sandbox':SandboxConfigSchema})[_0x4a59ba(0x1c7)]((_0x1663d0,_0xc29648)=>{var _0x4de46d={_0x491f29:0x19c,_0x2d3706:0x1f9,_0x45d830:0x203,_0xcf0bee:0x1ff},_0x2ae329=_0x4a59ba;const _0x5bf322=viewportDeviceConflict(_0x1663d0['viewport'],_0x1663d0['device']);_0x5bf322!==void 0x0&&_0xc29648['addIssue']({'code':_0x1fe3aa[_0x2ae329(0x1e4)][_0x2ae329(0x205)],'path':[_0x2ae329(0x1b4)],'message':_0x5bf322});if(_0x1663d0[_0x2ae329(0x19c)]!==void 0x0){const _0x3d6356=PROFILES[_0x1663d0[_0x2ae329(_0x4de46d._0x491f29)]],_0x4abffb=[..._0x1663d0[_0x2ae329(0x1fd)]['join']()!==_0x3d6356[_0x2ae329(0x1fd)][_0x2ae329(_0x4de46d._0x2d3706)]()?[_0x2ae329(0x1fd)]:[],..._0x1663d0['device']!==_0x3d6356[_0x2ae329(0x203)]?[_0x2ae329(_0x4de46d._0x45d830)]:[]];_0x4abffb[_0x2ae329(_0x4de46d._0xcf0bee)]>0x0&&_0xc29648['addIssue']({'code':_0x1fe3aa[_0x2ae329(0x1e4)][_0x2ae329(0x205)],'path':[_0x2ae329(_0x4de46d._0x491f29)],'message':profileConflict(_0x1663d0['profile'],_0x4abffb)});}});function isTimeZone(_0x566e2c){var _0x2ea178={_0x194c99:0x1ff},_0x396f1f=_0x4a59ba;try{return new Intl['DateTimeFormat']('en-US',{'timeZone':_0x566e2c}),_0x566e2c[_0x396f1f(_0x2ea178._0x194c99)]>0x0;}catch{return![];}}__name(isTimeZone,_0x4a59ba(0x1e5));function isLocale(_0x3dfb10){try{return Intl['getCanonicalLocales'](_0x3dfb10)['length']===0x1;}catch{return![];}}function _0x284d(){var _0x74549=['iIdIGjqGzxHWzwn0zwqGysbcq1aGndCGDgfNihn1y2GGyxmGiMvZluvtiG','lNvUB3rLC3qVzMfPBhvYzxm','AxnbCNjHEq','D2vIu2vYDMvYwW','Dw5RBM93BIbRzxKGiG','zw51Bq','B2jQzwn0','DMfSAwrHDg9YoNn0CMLUzY1JB25Jyxq','BgLUDdP0ExbLzc1ZDgvWlwf2ywLSywjSzq','Aw50','Dw5YzwnVz25PEMvKx2TLExm','AvbOB25Lide1','DMfSAwrHDg9YoMz1BMn0Aw9UlxnOyxbL','DMfSAwrHDg9YoMfYAxr5','C3rYAwn0','DMfSAwrHDg9YoNvUA25VD24TzNvUy3rPB24','BgLUDdPSAw50lw9Rlw1PC3nPBMCTCMvHC29U','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlxn0CMLUzY1Tzw1Izxi','BwfW','AM9PBG','CMvKywn0zwq','AxnmB2nHBgu','DMfSAwrHDg9YoNrVCc1SzxzLBc1JB25ZDa','yNjVD3nLCNm','DMfSAwrHDg9YoM91Dc1VzI1Syw5NDwfNzq','BgvUz3rO','mta1wvHqA3vU','C3rKAw8','BgLUDdPNB3rVlwnVBMnHDa','zgv2AwnL','BgL0zxjHBa','y3vZDg9T','DMLLD3bVCNrezxzPy2vdB25MBgLJDa','DMfSAwrHDg9YoMfYCMf5lw1LBwjLCI1YzwnLAxzLCG','Dw5VDgvZDc9LmMu','ywrKsxnZDwu','DxjS','DMfSAwrHDg9YoNvUA25VD24TBwvTyMvY','DMfSAwrHDg9YoNDYyxbWzwqTzM9YBwf0','BgLUDdPVyMz1C2nHDgvKlwnSyxnZ','A2v5CW','BgLUDdPZy2vUyxjPBY1PBI1YB290','DMfSAwrHDg9YoMv2ywX1yxrLlwLUDgvYCg9SyxrPB24','mta2mJy5nKfUDwLRwa','zgLZBwLZCW','ChjVzMLSzunVBMzSAwn0','zM9YrwfJAa','DMfSAwrHDg9YoMfZC2vYDc1UzxzLCI1ZAgfWzq','BgLUDdPTDxn0ywnOzs1PBI1KC2W','DMfSAwrHDg9YoNn0zxaTy292zxjHz2u','BgLUDdPYzwDLEc1PBNzHBgLK','C3rYAwn0t2jQzwn0','BgLUDdPMBg93lxjLDhvYBNmTDMfSDwu','igfUzca','y2HYB21PDw0','B2zM','DMfSAwrHDg9YoNn0CMLUzY1Tzw1IzxiTCMvJzwL2zxi','ChjVzMLSzq','igLZigfSCMvHzhKGyw5VDgHLCIbZzxj2zxiNCYdIGjqGzwfJAcbZzxj2zxiGBMvLzhmGAxrZig93BIbYzwfKAw5LC3mGvvjmlG','DMfSAwrHDg9YoM1LDgeTC2HHCgu','DMfSAwrHDg9YoMzVCI1ZAgfWzq','zgvMyxvSDevYCM9Y','BxnLzgDL','zMLYzwzVEa','nw1HBLPqEa','y2HYB21LlwjLDge','Bwf4','D2vIA2L0','DMfSAwrHDg9YoNzHCI1ZAgfWzq','nZi1nJHhD1zvwNu','zNvSBhnJCMvLBG','DMfSAwrHDg9YoNnLBwfUDgLJlwXVC3m','zxjYB3i','BNvTyMvY','y2XVC2vZDeTLEq','BgLUDdPYB2XLlxvUA25VD24TB3b0Aw9U','zNvSBa','yM9VBgvHBG','BgLUDdP4Cgf0Aa','DMfSAwrHDg9YoMnVBNn0lwfZC2LNBG','Aw52ywXPzcbSB2nHBguGiG','DMLLD3bVCNq','BgLUDdPVBMuTDgvZDc1WzxiTzMLSzq','xs51CMWG','mZmZode5AKToy09s','BgLUDdPLEhrLCM5HBc12yxjPywjSzs1UBY12ywX1zq','mtmXmde2vwr2sxzu','y29Kzq','BMfTzq','DMfSAwrHDg9YoMnOywLUlxjLy2vPDMvY','BgLUDdPLEhrLCM5HBc12yxjPywjSzs11BMrLy2XHCMvK','Dw5RBM93BKTLEu1LC3nHz2u','DgHLBq','BwfUDwfS','BNvSBgfIBgu','CMvMAw5L','DMfSAwrHDg9YoNrLyxjKB3DUlxnOyxbL','ywrK','BwLU','iIbZzxrZigL0CYbVD24GC2L6zsbHBMqGC2nHBguG4OcuigrYB3aGB25Lig9MihrOzw0U','C3vWzxjszwzPBMu','C3rYAw5N','AgfZ','BgLUDdPKzwvWlwnZCW','yNjVD3nLCG','DhjHBNnMB3jT','C3rHBMrHBg9Uzq','DMfSAwrHDg9YoNrLBxbSyxrLlwvZy2fWzs1JAgfUz2vK','iIdIGjqGBM90igeGy29UzMLNigTLEtSGy2HLy2SGEw91CIbaDw5VDgvZDc93zwiGDMvYC2LVBIbPzIbPDcbJB21LCYbMCM9TigeGBMv3zxiGCMvSzwfZzq','ywnJzxb0','otm2ntCYswTHAu1T','BwLUAw1HBc11Aq','mtu4ntK1AuXbAffW','y2HYB21L','DMfSAwrHDg9YoMXVy2f0B3iTAw5KzxGTywnJzxnZ','yxjYyxK','iIdIGjqGzgLKihLVDsbTzwfUici','Dg9mB3DLCKnHC2u','BgLUDdPKAxnHBwjPzY1IEs1PBMrLEa','D2fYBG','DMfSAwrHDg9YoNn0zxaTC2HHCgu','DMfSAwrHDg9YoMfYzY1RAw5K','DMfSAwrHDg9YoMXPyNjHCNKTBwvTyMvY','zgvMyxvSDa','DMfSAwrHDg9YoNbHz2uTy29Kzs1ZEw50yxG','B3b0Aw9UywW','Cg9ZAxrPDMu','DMfSAwrHDg9YoNDHAxqTDw50AwWTC2HHCgu','nZm4ntq4muX3yxn5uq','wM9KsxnZDwvdB2rL','AxnuAw1LwM9Uzq'];_0x284d=function(){return _0x74549;};return _0x284d();}__name(isLocale,_0x4a59ba(0x1fb));function _0x22e4(_0x4cbd9e,_0x2c89b4){_0x4cbd9e=_0x4cbd9e-0x189;var _0x284d21=_0x284d();var _0x22e425=_0x284d21[_0x4cbd9e];if(_0x22e4['sLPXsJ']===undefined){var _0x4ad10a=function(_0x233ea4){var _0x1fabf5='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x1fe3aa='',_0xa5eed0='';for(var _0x5154a0=0x0,_0x58d327,_0x1ba2e2,_0x20ddc1=0x0;_0x1ba2e2=_0x233ea4['charAt'](_0x20ddc1++);~_0x1ba2e2&&(_0x58d327=_0x5154a0%0x4?_0x58d327*0x40+_0x1ba2e2:_0x1ba2e2,_0x5154a0++%0x4)?_0x1fe3aa+=String['fromCharCode'](0xff&_0x58d327>>(-0x2*_0x5154a0&0x6)):0x0){_0x1ba2e2=_0x1fabf5['indexOf'](_0x1ba2e2);}for(var _0x5aed4c=0x0,_0x39252a=_0x1fe3aa['length'];_0x5aed4c<_0x39252a;_0x5aed4c++){_0xa5eed0+='%'+('00'+_0x1fe3aa['charCodeAt'](_0x5aed4c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xa5eed0);};_0x22e4['gMKZxK']=_0x4ad10a,_0x22e4['evyCbe']={},_0x22e4['sLPXsJ']=!![];}var _0x12ae93=_0x284d21[0x0],_0x456b92=_0x4cbd9e+_0x12ae93,_0x62ccad=_0x22e4['evyCbe'][_0x456b92];return!_0x62ccad?(_0x22e425=_0x22e4['gMKZxK'](_0x22e425),_0x22e4['evyCbe'][_0x456b92]=_0x22e425):_0x22e425=_0x62ccad,_0x22e425;}var DEFAULT_CONFIG={'browsers':[_0x4a59ba(0x199)],'retry':{'count':0x0,'on':['transient']},'failureBundle':{'tier1':!![],'tier2':!![],'tier3':{'network':![],'video':![]},'retention':{'runs':0x14,'days':0x7},'storageDir':_0x4a59ba(0x1e7),'pageHtml':_0x4a59ba(0x1fa)},'dialogPolicy':_0x4a59ba(0x1d0),'testDir':_0x4a59ba(0x208),'helpersDir':'unotest/e2e/_helpers','defaultTimeoutMs':0xbb8,'defaultNavigationTimeoutMs':0x7530,'linter':{'enabled':!![],'rules':{'lint:deep-css':_0x4a59ba(0x1da),'lint:xpath':_0x4a59ba(0x1da),'lint:obfuscated-class':_0x4a59ba(0x1da),'lint:pause-explicit':_0x4a59ba(0x1da),'lint:disambig-by-index':_0x4a59ba(0x19a),'lint:evaluate-discouraged':_0x4a59ba(0x1da),'lint:scenario-in-root':_0x4a59ba(0x1ab),'lint:mustache-in-dsl':'error','lint:goto-concat':'warn','lint:regex-invalid':_0x4a59ba(0x1ab),'lint:echo-assert':_0x4a59ba(0x1da),'lint:lint-ok-missing-reason':_0x4a59ba(0x1da),'lint:flow-returns-value':_0x4a59ba(0x1da),'lint:legacy-layout':_0x4a59ba(0x1da),'lint:external-variable-undeclared':_0x4a59ba(0x1ab),'lint:external-variable-no-value':_0x4a59ba(0x1ab),'lint:env-host-from-base':'error','lint:one-test-per-file':'warn','lint:shadows-dsl-function':'warn','lint:skip-outside-test':'error','lint:set-test-timeout-outside-test':_0x4a59ba(0x1ab),'lint:filter-unknown-option':_0x4a59ba(0x1ab),'lint:role-unknown-option':_0x4a59ba(0x1ab),'validator:unknown-function':_0x4a59ba(0x1ab)}},'env':{'shared':[]},'mcp':{'transport':_0x4a59ba(0x201)},'queue':{'enabled':!![],'concurrency':0x1},'schedules':[],'sandbox':{}};export{BROWSER_CHANNEL_WORDS,BrowserChannelSchema,BrowserSchema,DEFAULT_CONFIG,DialogPolicySchema,DisplayModeSchema,EnvConfigSchema,FailureBundleConfigSchema,LinterConfigSchema,LinterRuleIdSchema,LinterSeveritySchema,McpConfigSchema,QueueConfigSchema,RetryConfigSchema,RetryReasonSchema,SYSTEM_BROWSER_CHANNELS,SandboxConfigSchema,ScheduleSchema,UnotestConfigSchema,ViewportSchema,WebServerConfigSchema,WebServersConfigSchema,viewportDeviceConflict};
@@ -1,5 +1,5 @@
1
- import { B as BoundingBox, I as ImageSize, E as ElementHint, S as ScreenshotOptions, L as LocatorValue, C as CaptureFrame, a as CaptureRect, P as PageConsole, N as NetworkEntry, W as WebDriver, b as LaunchOptions, c as ContextOptions, D as DriverContext, A as AttachOptions } from '../interfaces-mlRtu8mL.js';
2
- export { d as ActionTimeout, e as CheckOptions, f as ClickOptions, g as CookieOptions, h as DriverPage, F as FillOptions, G as GotoOptions, H as HoverOptions, i as NavigationOptions, j as PressOptions, R as ReloadOptions, k as SelectOptions, V as Viewport, l as ViewportSize, m as WaitOptions, n as WaitState } from '../interfaces-mlRtu8mL.js';
1
+ import { V as VirtualCredential, B as BoundingBox, I as ImageSize, A as AnimationInfo, E as ElementHint, S as ScreenshotOptions, L as LocatorValue, C as CaptureFrame, a as CaptureRect, P as PageConsole, N as NetworkEntry, W as WebDriver, b as LaunchOptions, c as ContextOptions, D as DriverContext, d as AttachOptions } from '../interfaces-BSGmF_Tv.js';
2
+ export { e as ActionTimeout, f as CheckOptions, g as ClickOptions, h as CookieOptions, i as DriverPage, F as FillOptions, G as GotoOptions, H as HoverOptions, j as NavigationOptions, k as PressOptions, R as ReloadOptions, l as SelectOptions, m as Viewport, n as ViewportSize, o as WaitOptions, p as WaitState } from '../interfaces-BSGmF_Tv.js';
3
3
  import '@unotest/protocol';
4
4
  import '../config/schema.js';
5
5
  import 'zod';
@@ -26,6 +26,13 @@ interface FakeBehavior {
26
26
  /** Default innerText() response. Falls back to textContentByDefault when
27
27
  * unset — most tests don't care about the rendered/raw distinction. */
28
28
  innerTextByDefault?: string;
29
+ /** What clipboardRead() returns, asked on every read. Default: "". */
30
+ clipboardText?: () => string;
31
+ /** What webAuthn().credentials() returns. Default: none. */
32
+ virtualCredentials?: VirtualCredential[];
33
+ /** Permission names grantPermissions refuses, as an engine that does not
34
+ * know them would. */
35
+ refusedPermissions?: readonly string[];
29
36
  /** Default inputValue() response. Default: ''. */
30
37
  inputValueByDefault?: string;
31
38
  /** Default isVisible() response. Default: true. */
@@ -39,6 +46,8 @@ interface FakeBehavior {
39
46
  imageSizeByDefault?: ImageSize | null;
40
47
  /** Per-property computedStyle(loc, property) response. Default: "". */
41
48
  computedStyleByProperty?: Record<string, string>;
49
+ /** Default animations(loc) response. Default: none. */
50
+ animationsByDefault?: AnimationInfo[];
42
51
  /** runningAnimations(loc) response, one per call in order; the last
43
52
  * repeats. Default: 0. */
44
53
  runningAnimationsSequence?: number[];
@@ -105,6 +114,8 @@ declare class FakeWebDriver implements WebDriver {
105
114
  launch(opts: LaunchOptions): Promise<void>;
106
115
  newContext(opts?: ContextOptions): Promise<DriverContext>;
107
116
  close(): Promise<void>;
117
+ /** The fake throws our own classes already. */
118
+ translateError(e: unknown): unknown;
108
119
  wsEndpoint(): string | undefined;
109
120
  connectShared(): Promise<void>;
110
121
  attachExisting(_opts?: AttachOptions): Promise<DriverContext>;