diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 96da95e..5deed84 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,9 @@ env: jobs: build: runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write steps: - uses: actions/checkout@v3 @@ -21,15 +24,77 @@ jobs: with: node-version: 22.x - - run: npm install - - run: npx playwright install - - run: npm run type-check - - run: npm run build - - run: npm run lint - - run: npm run format - - name: "Run tests" + - name: Install dependencies + run: npm install + + - name: Install Playwright browsers + run: npx playwright install + + - name: Type check + run: npm run type-check + + - name: Build + run: npm run build + + - name: Lint + run: npm run lint + + - name: Format check + run: npm run format + + - name: Run tests run: npm run test - - name: "Check for unstaged changes" + + - name: Check for unstaged changes + run: | + git status --porcelain + git diff-index --quiet HEAD -- || exit 1 + + playwright-tools: + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + steps: + - uses: actions/checkout@v3 + + - name: Use Node.js 22 + uses: actions/setup-node@v3 + with: + node-version: 22.x + + - name: Install root dependencies + run: npm install + + - name: Install dependencies + working-directory: tools/playwright + run: npm install + + - name: Install Playwright browsers + working-directory: tools/playwright + run: npx playwright install --with-deps chromium + + - name: Type check + working-directory: tools/playwright + run: npm run type-check + + - name: Build + working-directory: tools/playwright + run: npm run build + + - name: Lint + working-directory: tools/playwright + run: npm run lint + + - name: Format check + working-directory: tools/playwright + run: npm run format + + - name: Run tests + working-directory: tools/playwright + run: npm run test + + - name: Check for unstaged changes run: | git status --porcelain git diff-index --quiet HEAD -- || exit 1 diff --git a/.prettierignore b/.prettierignore index 1d3f64a..1cf114e 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,4 +1,6 @@ # Ignore artifacts: dist node_modules +test-results +.test-output *.yml \ No newline at end of file diff --git a/src/core.ts b/src/core.ts index 481058a..8c4bc67 100644 --- a/src/core.ts +++ b/src/core.ts @@ -68,6 +68,27 @@ export class AbleDOM { constructor(win: Window, props: AbleDOMProps = {}) { this._win = win; + + // Check if testing mode is requested via window flag + // 1 = headed (force headless=false), 2 = headless (force headless=true), 3 = exact (no override) + const testingMode = ( + win as Window & { ableDOMInstanceForTestingNeeded?: number } + ).ableDOMInstanceForTestingNeeded; + if (testingMode === 1 || testingMode === 2 || testingMode === 3) { + // Expose the instance for testing + ( + win as Window & { ableDOMInstanceForTesting?: AbleDOM } + ).ableDOMInstanceForTesting = this; + + // Override headless prop based on mode + if (testingMode === 1) { + props = { ...props, headless: false }; + } else if (testingMode === 2) { + props = { ...props, headless: true }; + } + // testingMode === 3: use props as-is + } + this._props = props; const _elementsToValidate: Set = new Set(); diff --git a/tests/testingMode/testingMode-exact.html b/tests/testingMode/testingMode-exact.html new file mode 100644 index 0000000..7e45e1c --- /dev/null +++ b/tests/testingMode/testingMode-exact.html @@ -0,0 +1,17 @@ + + + + + + Testing Mode - Exact (3) + + + + +

Testing Mode - Exact

+ + + diff --git a/tests/testingMode/testingMode-exact.ts b/tests/testingMode/testingMode-exact.ts new file mode 100644 index 0000000..c8ca498 --- /dev/null +++ b/tests/testingMode/testingMode-exact.ts @@ -0,0 +1,16 @@ +/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */ + +import { AbleDOM, FocusableElementLabelRule } from "abledom"; +import { initIdleProp, getAbleDOMCallbacks } from "../utils"; + +// Create AbleDOM with headless: false (should stay false with mode 3) +const ableDOM = new AbleDOM(window, { + headless: false, + callbacks: getAbleDOMCallbacks(), +}); +initIdleProp(ableDOM); +ableDOM.addRule(new FocusableElementLabelRule()); +ableDOM.start(); diff --git a/tests/testingMode/testingMode-headed.html b/tests/testingMode/testingMode-headed.html new file mode 100644 index 0000000..87c17f7 --- /dev/null +++ b/tests/testingMode/testingMode-headed.html @@ -0,0 +1,17 @@ + + + + + + Testing Mode - Headed (1) + + + + +

Testing Mode - Headed

+ + + diff --git a/tests/testingMode/testingMode-headed.ts b/tests/testingMode/testingMode-headed.ts new file mode 100644 index 0000000..81f5be6 --- /dev/null +++ b/tests/testingMode/testingMode-headed.ts @@ -0,0 +1,16 @@ +/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */ + +import { AbleDOM, FocusableElementLabelRule } from "abledom"; +import { initIdleProp, getAbleDOMCallbacks } from "../utils"; + +// Create AbleDOM with headless: true (should be overridden to false by mode 1) +const ableDOM = new AbleDOM(window, { + headless: true, + callbacks: getAbleDOMCallbacks(), +}); +initIdleProp(ableDOM); +ableDOM.addRule(new FocusableElementLabelRule()); +ableDOM.start(); diff --git a/tests/testingMode/testingMode-headless.html b/tests/testingMode/testingMode-headless.html new file mode 100644 index 0000000..1ba8081 --- /dev/null +++ b/tests/testingMode/testingMode-headless.html @@ -0,0 +1,17 @@ + + + + + + Testing Mode - Headless (2) + + + + +

Testing Mode - Headless

+ + + diff --git a/tests/testingMode/testingMode-headless.ts b/tests/testingMode/testingMode-headless.ts new file mode 100644 index 0000000..2870c23 --- /dev/null +++ b/tests/testingMode/testingMode-headless.ts @@ -0,0 +1,16 @@ +/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */ + +import { AbleDOM, FocusableElementLabelRule } from "abledom"; +import { initIdleProp, getAbleDOMCallbacks } from "../utils"; + +// Create AbleDOM with headless: false (should be overridden to true by mode 2) +const ableDOM = new AbleDOM(window, { + headless: false, + callbacks: getAbleDOMCallbacks(), +}); +initIdleProp(ableDOM); +ableDOM.addRule(new FocusableElementLabelRule()); +ableDOM.start(); diff --git a/tests/testingMode/testingMode-none.html b/tests/testingMode/testingMode-none.html new file mode 100644 index 0000000..4f5f27a --- /dev/null +++ b/tests/testingMode/testingMode-none.html @@ -0,0 +1,14 @@ + + + + + + Testing Mode - None (no flag) + + + + +

Testing Mode - None

+ + + diff --git a/tests/testingMode/testingMode-none.ts b/tests/testingMode/testingMode-none.ts new file mode 100644 index 0000000..26e8685 --- /dev/null +++ b/tests/testingMode/testingMode-none.ts @@ -0,0 +1,16 @@ +/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */ + +import { AbleDOM, FocusableElementLabelRule } from "abledom"; +import { initIdleProp, getAbleDOMCallbacks } from "../utils"; + +// Create AbleDOM without any testing mode flag +const ableDOM = new AbleDOM(window, { + headless: true, + callbacks: getAbleDOMCallbacks(), +}); +initIdleProp(ableDOM); +ableDOM.addRule(new FocusableElementLabelRule()); +ableDOM.start(); diff --git a/tests/testingMode/testingMode.test.ts b/tests/testingMode/testingMode.test.ts new file mode 100644 index 0000000..e92ef6c --- /dev/null +++ b/tests/testingMode/testingMode.test.ts @@ -0,0 +1,188 @@ +/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */ +import { test, expect } from "@playwright/test"; +import { loadTestPage, issueSelector } from "../utils"; + +interface WindowWithAbleDOMInstance extends Window { + ableDOMInstanceForTestingNeeded?: number; + ableDOMInstanceForTesting?: { + idle: () => Promise; + highlightElement: (element: HTMLElement, scrollIntoView: boolean) => void; + }; +} + +test.describe("Testing Mode Flag", () => { + test("mode 1 (headed) should expose instance and override headless to false", async ({ + page, + }) => { + await loadTestPage(page, "tests/testingMode/testingMode-headed.html"); + + // Check that the instance is exposed + const hasInstance = await page.evaluate(() => { + return ( + typeof (window as WindowWithAbleDOMInstance) + .ableDOMInstanceForTesting !== "undefined" + ); + }); + expect(hasInstance).toBe(true); + + // Check that the instance has the expected methods + const hasIdleMethod = await page.evaluate(() => { + return ( + typeof (window as WindowWithAbleDOMInstance).ableDOMInstanceForTesting + ?.idle === "function" + ); + }); + expect(hasIdleMethod).toBe(true); + + // Mode 1 should show UI (headless: false), so we should see the AbleDOM UI elements + // when there are issues. Let's create an issue by removing the button text. + await page.evaluate(() => { + const btn = document.getElementById("button-1"); + if (btn) { + btn.innerText = ""; + } + }); + + // Wait for AbleDOM to process + await page.evaluate(async () => { + await ( + window as WindowWithAbleDOMInstance + ).ableDOMInstanceForTesting?.idle(); + }); + + // In headed mode (headless: false), the UI should be visible + const issueCount = await page.$$(issueSelector); + expect(issueCount.length).toBeGreaterThan(0); + }); + + test("mode 2 (headless) should expose instance and override headless to true", async ({ + page, + }) => { + await loadTestPage(page, "tests/testingMode/testingMode-headless.html"); + + // Check that the instance is exposed + const hasInstance = await page.evaluate(() => { + return ( + typeof (window as WindowWithAbleDOMInstance) + .ableDOMInstanceForTesting !== "undefined" + ); + }); + expect(hasInstance).toBe(true); + + // Check that the instance has the expected methods + const hasIdleMethod = await page.evaluate(() => { + return ( + typeof (window as WindowWithAbleDOMInstance).ableDOMInstanceForTesting + ?.idle === "function" + ); + }); + expect(hasIdleMethod).toBe(true); + + // Mode 2 should hide UI (headless: true), so we should NOT see UI elements + // even when there are issues. + await page.evaluate(() => { + const btn = document.getElementById("button-1"); + if (btn) { + btn.innerText = ""; + } + }); + + // Wait for AbleDOM to process + await page.evaluate(async () => { + await ( + window as WindowWithAbleDOMInstance + ).ableDOMInstanceForTesting?.idle(); + }); + + // In headless mode (headless: true), the UI should NOT be visible + const issueCount = await page.$$(issueSelector); + expect(issueCount.length).toBe(0); + }); + + test("mode 3 (exact) should expose instance and preserve original headless prop", async ({ + page, + }) => { + await loadTestPage(page, "tests/testingMode/testingMode-exact.html"); + + // Check that the instance is exposed + const hasInstance = await page.evaluate(() => { + return ( + typeof (window as WindowWithAbleDOMInstance) + .ableDOMInstanceForTesting !== "undefined" + ); + }); + expect(hasInstance).toBe(true); + + // Check that the instance has the expected methods + const hasIdleMethod = await page.evaluate(() => { + return ( + typeof (window as WindowWithAbleDOMInstance).ableDOMInstanceForTesting + ?.idle === "function" + ); + }); + expect(hasIdleMethod).toBe(true); + + // Mode 3 should preserve the original headless prop (false in this test) + // So UI should be visible when there are issues. + await page.evaluate(() => { + const btn = document.getElementById("button-1"); + if (btn) { + btn.innerText = ""; + } + }); + + // Wait for AbleDOM to process + await page.evaluate(async () => { + await ( + window as WindowWithAbleDOMInstance + ).ableDOMInstanceForTesting?.idle(); + }); + + // With headless: false preserved, UI should be visible + const issueCount = await page.$$(issueSelector); + expect(issueCount.length).toBeGreaterThan(0); + }); + + test("no flag should NOT expose instance", async ({ page }) => { + await loadTestPage(page, "tests/testingMode/testingMode-none.html"); + + // Check that the instance is NOT exposed when no flag is set + const hasInstance = await page.evaluate(() => { + return ( + typeof (window as WindowWithAbleDOMInstance) + .ableDOMInstanceForTesting !== "undefined" + ); + }); + expect(hasInstance).toBe(false); + }); + + test("exposed instance idle() should return issues", async ({ page }) => { + await loadTestPage(page, "tests/testingMode/testingMode-headless.html"); + + // Create an issue + await page.evaluate(() => { + const btn = document.getElementById("button-1"); + if (btn) { + btn.innerText = ""; + } + }); + + // Use the exposed instance to get issues + const issues = await page.evaluate(async () => { + const instance = (window as WindowWithAbleDOMInstance) + .ableDOMInstanceForTesting; + const result = await instance?.idle(); + return result?.map((issue) => ({ + id: (issue as { id?: string }).id, + message: (issue as { message?: string }).message, + })); + }); + + expect(issues).toBeDefined(); + expect(issues!.length).toBe(1); + expect(issues![0].id).toBe("focusable-element-label"); + }); +}); diff --git a/tests/utils.ts b/tests/utils.ts index 1a6db6c..9e20d21 100644 --- a/tests/utils.ts +++ b/tests/utils.ts @@ -20,8 +20,10 @@ interface WindowWithAbleDOMData extends Window { >; } -export interface ValidationIssueForTestsIdle - extends Omit { +export interface ValidationIssueForTestsIdle extends Omit< + ValidationIssue, + "element" +> { element?: string; } diff --git a/tools/playwright/.gitignore b/tools/playwright/.gitignore new file mode 100644 index 0000000..ab3173f --- /dev/null +++ b/tools/playwright/.gitignore @@ -0,0 +1,5 @@ +node_modules/ +dist/ +*.tsbuildinfo +.test-output/ +test-results/ diff --git a/tools/playwright/README.md b/tools/playwright/README.md new file mode 100644 index 0000000..45a3104 --- /dev/null +++ b/tools/playwright/README.md @@ -0,0 +1,139 @@ +# abledom-playwright + +Playwright integration for AbleDOM accessibility testing. This package provides fixtures and a custom reporter that automatically check for accessibility issues during Playwright tests. + +## Installation + +```bash +npm install abledom-playwright +``` + +## Quick Start + +### 1. Configure the Reporter + +In your `playwright.config.ts`: + +```typescript +import { defineConfig } from "@playwright/test"; +import { AbleDOMReporter } from "abledom-playwright"; + +export default defineConfig({ + reporter: [ + ["list"], + [AbleDOMReporter, { outputFile: "accessibility-report.json" }], + ], +}); +``` + +### 2. Use the Fixture + +#### Option A: Automatic Page Attachment (Recommended) + +For automatic attachment to the built-in `page` fixture: + +```typescript +// fixtures.ts +import { test as base } from "@playwright/test"; +import { createAbleDOMPageFixture } from "abledom-playwright"; + +export const test = base.extend({ + page: createAbleDOMPageFixture(), +}); + +// my-test.spec.ts +import { test } from "./fixtures"; + +test("accessibility test", async ({ page }) => { + await page.goto("https://example.com"); + // AbleDOM is automatically attached + await page.locator("button").click(); +}); +``` + +#### Option B: Manual Attachment with `attachAbleDOM` + +For tests that create pages manually (e.g., via `context.newPage()`): + +```typescript +// fixtures.ts +import { test as base, mergeTests } from "@playwright/test"; +import { createAbleDOMTest } from "abledom-playwright"; + +export const test = mergeTests(base, createAbleDOMTest()); + +// my-test.spec.ts +import { test } from "./fixtures"; + +test("accessibility test", async ({ attachAbleDOM, browser }) => { + const context = await browser.newContext(); + const page = await context.newPage(); + await attachAbleDOM(page); // Must await before navigation! + await page.goto("https://example.com"); + await page.locator("button").click(); +}); +``` + +## API Reference + +### `createAbleDOMPageFixture()` + +Creates a Playwright fixture that automatically attaches AbleDOM to the built-in `page` fixture. + +### `createAbleDOMTest()` + +Creates a test fixture that provides an `attachAbleDOM` function for manual attachment. Use with `mergeTests()` to combine with other fixtures. + +### `attachAbleDOMMethodsToPage(page, testInfo?, mode?)` + +Directly attaches AbleDOM accessibility checking to a Playwright page. + +**Parameters:** + +- `page: Page` - The Playwright Page object +- `testInfo?: TestInfo` - Optional TestInfo for reporting +- `mode?: AbleDOMTestingMode` - Testing mode (1=headed, 2=headless, 3=exact). Defaults to 2. + +**Important:** This is an async function and MUST be awaited before navigating the page. + +### `AbleDOMReporter` + +The custom Playwright reporter class: + +```typescript +import { AbleDOMReporter } from "abledom-playwright"; + +export default defineConfig({ + reporter: [["list"], [AbleDOMReporter, { outputFile: "report.json" }]], +}); +``` + +## How It Works + +1. **Locator Injection**: The package monkey-patches Playwright's `Locator` prototype to intercept all user actions (`click`, `fill`, `type`, etc.) + +2. **Accessibility Checks**: Before each action executes, AbleDOM's `idle()` method is called to check for accessibility issues + +3. **Issue Reporting**: Found issues are attached to the test and collected by the custom reporter + +4. **Report Generation**: At the end of the test run, all issues are written to the specified report file with: + - Test name and location + - Exact line number where the action was called + - Full issue details including element HTML + +## Checked Actions + +The following Playwright actions trigger accessibility checks: + +- `click`, `dblclick` +- `fill`, `type`, `press` +- `check`, `uncheck` +- `selectOption` +- `hover`, `tap` +- `focus`, `blur` +- `clear` +- `setInputFiles` + +## License + +MIT diff --git a/tools/playwright/eslint.config.mjs b/tools/playwright/eslint.config.mjs new file mode 100644 index 0000000..290c77a --- /dev/null +++ b/tools/playwright/eslint.config.mjs @@ -0,0 +1,18 @@ +import rootConfig from "../../eslint.config.mjs"; + +// Override parserOptions.project to use local tsconfig.eslint.json +export default rootConfig.map((config) => { + if (config.languageOptions?.parserOptions?.project) { + return { + ...config, + languageOptions: { + ...config.languageOptions, + parserOptions: { + ...config.languageOptions.parserOptions, + project: "tsconfig.eslint.json", + }, + }, + }; + } + return config; +}); diff --git a/tools/playwright/package-lock.json b/tools/playwright/package-lock.json new file mode 100644 index 0000000..7c95fc0 --- /dev/null +++ b/tools/playwright/package-lock.json @@ -0,0 +1,3694 @@ +{ + "name": "abledom-playwright", + "version": "0.0.7", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "abledom-playwright", + "version": "0.0.7", + "license": "MIT", + "devDependencies": { + "@eslint/js": "^9.39.2", + "@playwright/test": "^1.58.1", + "@types/node": "^25.2.0", + "@typescript-eslint/eslint-plugin": "^8.54.0", + "@typescript-eslint/parser": "^8.54.0", + "eslint": "^9.39.2", + "eslint-config-prettier": "^10.1.8", + "eslint-plugin-import": "^2.32.0", + "globals": "^17.3.0", + "prettier": "^3.8.1", + "rimraf": "^6.1.2", + "typescript": "^5.9.3" + }, + "peerDependencies": { + "@playwright/test": ">=1.40.0" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.9.1", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz", + "integrity": "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz", + "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/config-array": { + "version": "0.21.1", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.1.tgz", + "integrity": "sha512-aw1gNayWpdI/jSYVgzN5pL0cfzU02GT3NBpeT/DXbx1/1x7ZKxFPd9bwrzygx/qiwIQiJ1sw/zD8qY/kRvlGHA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/object-schema": "^2.1.7", + "debug": "^4.3.1", + "minimatch": "^3.1.2" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/config-array/node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/@eslint/config-array/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/@eslint/config-helpers": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.4.2.tgz", + "integrity": "sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^0.17.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/core": { + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.17.0.tgz", + "integrity": "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@types/json-schema": "^7.0.15" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.3.tgz", + "integrity": "sha512-Kr+LPIUVKz2qkx1HAMH8q1q6azbqBAsXJUxBl/ODDuVPX45Z9DfwB8tPjTi6nNZ8BuM3nbJxC5zCAg5elnBUTQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^10.0.1", + "globals": "^14.0.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.1", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@eslint/eslintrc/node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/@eslint/eslintrc/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/@eslint/js": { + "version": "9.39.2", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.2.tgz", + "integrity": "sha512-q1mjIoW1VX4IvSocvM/vbTiveKC4k9eLrajNEuSsmjymSDEbpGddtpfOoN7YGAqBK3NG+uqo8ia4PDTt8buCYA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + } + }, + "node_modules/@eslint/object-schema": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.7.tgz", + "integrity": "sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/plugin-kit": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.4.1.tgz", + "integrity": "sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^0.17.0", + "levn": "^0.4.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@humanfs/core": { + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", + "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node": { + "version": "0.16.7", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.7.tgz", + "integrity": "sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanfs/core": "^0.19.1", + "@humanwhocodes/retry": "^0.4.0" + }, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/retry": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", + "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@isaacs/balanced-match": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@isaacs/balanced-match/-/balanced-match-4.0.1.tgz", + "integrity": "sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/@isaacs/brace-expansion": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@isaacs/brace-expansion/-/brace-expansion-5.0.1.tgz", + "integrity": "sha512-WMz71T1JS624nWj2n2fnYAuPovhv7EUhk69R6i9dsVyzxt5eM3bjwvgk9L+APE1TRscGysAVMANkB0jh0LQZrQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@isaacs/balanced-match": "^4.0.1" + }, + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/@playwright/test": { + "version": "1.58.1", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.58.1.tgz", + "integrity": "sha512-6LdVIUERWxQMmUSSQi0I53GgCBYgM2RpGngCPY7hSeju+VrKjq3lvs7HpJoPbDiY5QM5EYRtRX5fvrinnMAz3w==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "playwright": "1.58.1" + }, + "bin": { + "playwright": "cli.js" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@rtsao/scc": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@rtsao/scc/-/scc-1.1.0.tgz", + "integrity": "sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/estree": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", + "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/json5": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "25.2.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-25.2.0.tgz", + "integrity": "sha512-DZ8VwRFUNzuqJ5khrvwMXHmvPe+zGayJhr2CDNiKB1WBE1ST8Djl00D0IC4vvNmHMdj6DlbYRIaFE7WHjlDl5w==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~7.16.0" + } + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "8.54.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.54.0.tgz", + "integrity": "sha512-hAAP5io/7csFStuOmR782YmTthKBJ9ND3WVL60hcOjvtGFb+HJxH4O5huAcmcZ9v9G8P+JETiZ/G1B8MALnWZQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/regexpp": "^4.12.2", + "@typescript-eslint/scope-manager": "8.54.0", + "@typescript-eslint/type-utils": "8.54.0", + "@typescript-eslint/utils": "8.54.0", + "@typescript-eslint/visitor-keys": "8.54.0", + "ignore": "^7.0.5", + "natural-compare": "^1.4.0", + "ts-api-utils": "^2.4.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^8.54.0", + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "8.54.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.54.0.tgz", + "integrity": "sha512-BtE0k6cjwjLZoZixN0t5AKP0kSzlGu7FctRXYuPAm//aaiZhmfq1JwdYpYr1brzEspYyFeF+8XF5j2VK6oalrA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/scope-manager": "8.54.0", + "@typescript-eslint/types": "8.54.0", + "@typescript-eslint/typescript-estree": "8.54.0", + "@typescript-eslint/visitor-keys": "8.54.0", + "debug": "^4.4.3" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/project-service": { + "version": "8.54.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.54.0.tgz", + "integrity": "sha512-YPf+rvJ1s7MyiWM4uTRhE4DvBXrEV+d8oC3P9Y2eT7S+HBS0clybdMIPnhiATi9vZOYDc7OQ1L/i6ga6NFYK/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/tsconfig-utils": "^8.54.0", + "@typescript-eslint/types": "^8.54.0", + "debug": "^4.4.3" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "8.54.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.54.0.tgz", + "integrity": "sha512-27rYVQku26j/PbHYcVfRPonmOlVI6gihHtXFbTdB5sb6qA0wdAQAbyXFVarQ5t4HRojIz64IV90YtsjQSSGlQg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.54.0", + "@typescript-eslint/visitor-keys": "8.54.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/tsconfig-utils": { + "version": "8.54.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.54.0.tgz", + "integrity": "sha512-dRgOyT2hPk/JwxNMZDsIXDgyl9axdJI3ogZ2XWhBPsnZUv+hPesa5iuhdYt2gzwA9t8RE5ytOJ6xB0moV0Ujvw==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "8.54.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.54.0.tgz", + "integrity": "sha512-hiLguxJWHjjwL6xMBwD903ciAwd7DmK30Y9Axs/etOkftC3ZNN9K44IuRD/EB08amu+Zw6W37x9RecLkOo3pMA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.54.0", + "@typescript-eslint/typescript-estree": "8.54.0", + "@typescript-eslint/utils": "8.54.0", + "debug": "^4.4.3", + "ts-api-utils": "^2.4.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/types": { + "version": "8.54.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.54.0.tgz", + "integrity": "sha512-PDUI9R1BVjqu7AUDsRBbKMtwmjWcn4J3le+5LpcFgWULN3LvHC5rkc9gCVxbrsrGmO1jfPybN5s6h4Jy+OnkAA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "8.54.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.54.0.tgz", + "integrity": "sha512-BUwcskRaPvTk6fzVWgDPdUndLjB87KYDrN5EYGetnktoeAvPtO4ONHlAZDnj5VFnUANg0Sjm7j4usBlnoVMHwA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/project-service": "8.54.0", + "@typescript-eslint/tsconfig-utils": "8.54.0", + "@typescript-eslint/types": "8.54.0", + "@typescript-eslint/visitor-keys": "8.54.0", + "debug": "^4.4.3", + "minimatch": "^9.0.5", + "semver": "^7.7.3", + "tinyglobby": "^0.2.15", + "ts-api-utils": "^2.4.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "8.54.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.54.0.tgz", + "integrity": "sha512-9Cnda8GS57AQakvRyG0PTejJNlA2xhvyNtEVIMlDWOOeEyBkYWhGPnfrIAnqxLMTSTo6q8g12XVjjev5l1NvMA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.9.1", + "@typescript-eslint/scope-manager": "8.54.0", + "@typescript-eslint/types": "8.54.0", + "@typescript-eslint/typescript-estree": "8.54.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "8.54.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.54.0.tgz", + "integrity": "sha512-VFlhGSl4opC0bprJiItPQ1RfUhGDIBokcPwaFH4yiBCaNPeld/9VeXbiPO1cLyorQi1G1vL+ecBk1x8o1axORA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.54.0", + "eslint-visitor-keys": "^4.2.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/acorn": { + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", + "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true, + "license": "Python-2.0" + }, + "node_modules/array-buffer-byte-length": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.2.tgz", + "integrity": "sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "is-array-buffer": "^3.0.5" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-includes": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.9.tgz", + "integrity": "sha512-FmeCCAenzH0KH381SPT5FZmiA/TmpndpcaShhfgEN9eCVjnFBqq3l1xrI42y8+PPLI6hypzou4GXw00WHmPBLQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "define-properties": "^1.2.1", + "es-abstract": "^1.24.0", + "es-object-atoms": "^1.1.1", + "get-intrinsic": "^1.3.0", + "is-string": "^1.1.1", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.findlastindex": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.6.tgz", + "integrity": "sha512-F/TKATkzseUExPlfvmwQKGITM3DGTK+vkAsCZoDc5daVygbJBnjEUCbgkAvVFsgfXfX4YIqZ/27G3k3tdXrTxQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.9", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "es-shim-unscopables": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flat": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.3.tgz", + "integrity": "sha512-rwG/ja1neyLqCuGZ5YYrznA62D4mZXg0i1cIskIUKSiqF3Cje9/wXAls9B9s1Wa2fomMsIv8czB8jZcPmxCXFg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-shim-unscopables": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flatmap": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.3.tgz", + "integrity": "sha512-Y7Wt51eKJSyi80hFrJCePGGNo5ktJCslFuboqJsbf57CCPcm5zztluPlc4/aD8sWsKvlwatezpV4U1efk8kpjg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-shim-unscopables": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/arraybuffer.prototype.slice": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.4.tgz", + "integrity": "sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "array-buffer-byte-length": "^1.0.1", + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "is-array-buffer": "^3.0.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/async-function": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/async-function/-/async-function-1.0.0.tgz", + "integrity": "sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/available-typed-arrays": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", + "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "possible-typed-array-names": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/brace-expansion": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/call-bind": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz", + "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.0", + "es-define-property": "^1.0.0", + "get-intrinsic": "^1.2.4", + "set-function-length": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true, + "license": "MIT" + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true, + "license": "MIT" + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/data-view-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.2.tgz", + "integrity": "sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/data-view-byte-length": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/data-view-byte-length/-/data-view-byte-length-1.0.2.tgz", + "integrity": "sha512-tuhGbE6CfTM9+5ANGf+oQb72Ky/0+s3xKUpHvShfiz2RxMFgFPjsXuRLBVMtvMs15awe45SRb83D6wH4ew6wlQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/inspect-js" + } + }, + "node_modules/data-view-byte-offset": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/data-view-byte-offset/-/data-view-byte-offset-1.0.1.tgz", + "integrity": "sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/define-data-property": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", + "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/define-properties": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", + "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-data-property": "^1.0.1", + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-abstract": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.24.1.tgz", + "integrity": "sha512-zHXBLhP+QehSSbsS9Pt23Gg964240DPd6QCf8WpkqEXxQ7fhdZzYsocOr5u7apWonsS5EjZDmTF+/slGMyasvw==", + "dev": true, + "license": "MIT", + "dependencies": { + "array-buffer-byte-length": "^1.0.2", + "arraybuffer.prototype.slice": "^1.0.4", + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "data-view-buffer": "^1.0.2", + "data-view-byte-length": "^1.0.2", + "data-view-byte-offset": "^1.0.1", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "es-set-tostringtag": "^2.1.0", + "es-to-primitive": "^1.3.0", + "function.prototype.name": "^1.1.8", + "get-intrinsic": "^1.3.0", + "get-proto": "^1.0.1", + "get-symbol-description": "^1.1.0", + "globalthis": "^1.0.4", + "gopd": "^1.2.0", + "has-property-descriptors": "^1.0.2", + "has-proto": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "internal-slot": "^1.1.0", + "is-array-buffer": "^3.0.5", + "is-callable": "^1.2.7", + "is-data-view": "^1.0.2", + "is-negative-zero": "^2.0.3", + "is-regex": "^1.2.1", + "is-set": "^2.0.3", + "is-shared-array-buffer": "^1.0.4", + "is-string": "^1.1.1", + "is-typed-array": "^1.1.15", + "is-weakref": "^1.1.1", + "math-intrinsics": "^1.1.0", + "object-inspect": "^1.13.4", + "object-keys": "^1.1.1", + "object.assign": "^4.1.7", + "own-keys": "^1.0.1", + "regexp.prototype.flags": "^1.5.4", + "safe-array-concat": "^1.1.3", + "safe-push-apply": "^1.0.0", + "safe-regex-test": "^1.1.0", + "set-proto": "^1.0.0", + "stop-iteration-iterator": "^1.1.0", + "string.prototype.trim": "^1.2.10", + "string.prototype.trimend": "^1.0.9", + "string.prototype.trimstart": "^1.0.8", + "typed-array-buffer": "^1.0.3", + "typed-array-byte-length": "^1.0.3", + "typed-array-byte-offset": "^1.0.4", + "typed-array-length": "^1.0.7", + "unbox-primitive": "^1.1.0", + "which-typed-array": "^1.1.19" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-shim-unscopables": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.1.0.tgz", + "integrity": "sha512-d9T8ucsEhh8Bi1woXCf+TIKDIROLG5WCkxg8geBCbvk22kzwC5G2OnXVMO6FUsvQlgUUXQ2itephWDLqDzbeCw==", + "dev": true, + "license": "MIT", + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-to-primitive": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.3.0.tgz", + "integrity": "sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-callable": "^1.2.7", + "is-date-object": "^1.0.5", + "is-symbol": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "9.39.2", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.2.tgz", + "integrity": "sha512-LEyamqS7W5HB3ujJyvi0HQK/dtVINZvd5mAAp9eT5S/ujByGjiZLCzPcHVzuXbpJDJF/cxwHlfceVUDZ2lnSTw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.8.0", + "@eslint-community/regexpp": "^4.12.1", + "@eslint/config-array": "^0.21.1", + "@eslint/config-helpers": "^0.4.2", + "@eslint/core": "^0.17.0", + "@eslint/eslintrc": "^3.3.1", + "@eslint/js": "9.39.2", + "@eslint/plugin-kit": "^0.4.1", + "@humanfs/node": "^0.16.6", + "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.4.2", + "@types/estree": "^1.0.6", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.6", + "debug": "^4.3.2", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^8.4.0", + "eslint-visitor-keys": "^4.2.1", + "espree": "^10.4.0", + "esquery": "^1.5.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^8.0.0", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } + } + }, + "node_modules/eslint-config-prettier": { + "version": "10.1.8", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-10.1.8.tgz", + "integrity": "sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w==", + "dev": true, + "license": "MIT", + "bin": { + "eslint-config-prettier": "bin/cli.js" + }, + "funding": { + "url": "https://opencollective.com/eslint-config-prettier" + }, + "peerDependencies": { + "eslint": ">=7.0.0" + } + }, + "node_modules/eslint-import-resolver-node": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", + "integrity": "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^3.2.7", + "is-core-module": "^2.13.0", + "resolve": "^1.22.4" + } + }, + "node_modules/eslint-import-resolver-node/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-module-utils": { + "version": "2.12.1", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.12.1.tgz", + "integrity": "sha512-L8jSWTze7K2mTg0vos/RuLRS5soomksDPoJLXIslC7c8Wmut3bx7CPpJijDcBZtxQ5lrbUdM+s0OlNbz0DCDNw==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^3.2.7" + }, + "engines": { + "node": ">=4" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } + } + }, + "node_modules/eslint-module-utils/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-import": { + "version": "2.32.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.32.0.tgz", + "integrity": "sha512-whOE1HFo/qJDyX4SnXzP4N6zOWn79WhnCUY/iDR0mPfQZO8wcYE4JClzI2oZrhBnnMUCBCHZhO6VQyoBU95mZA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rtsao/scc": "^1.1.0", + "array-includes": "^3.1.9", + "array.prototype.findlastindex": "^1.2.6", + "array.prototype.flat": "^1.3.3", + "array.prototype.flatmap": "^1.3.3", + "debug": "^3.2.7", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.9", + "eslint-module-utils": "^2.12.1", + "hasown": "^2.0.2", + "is-core-module": "^2.16.1", + "is-glob": "^4.0.3", + "minimatch": "^3.1.2", + "object.fromentries": "^2.0.8", + "object.groupby": "^1.0.3", + "object.values": "^1.2.1", + "semver": "^6.3.1", + "string.prototype.trimend": "^1.0.9", + "tsconfig-paths": "^3.15.0" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 || ^9" + } + }, + "node_modules/eslint-plugin-import/node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/eslint-plugin-import/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-import/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/eslint-plugin-import/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/eslint-scope": { + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz", + "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/eslint/node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/eslint/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/espree": { + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", + "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.15.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^4.2.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree/node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz", + "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/file-entry-cache": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", + "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "flat-cache": "^4.0.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", + "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", + "dev": true, + "license": "MIT", + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.4" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/flatted": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", + "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", + "dev": true, + "license": "ISC" + }, + "node_modules/for-each": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", + "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-callable": "^1.2.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/function.prototype.name": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.8.tgz", + "integrity": "sha512-e5iwyodOHhbMr/yNrc7fDYG4qlbIvI5gajyzPnb5TCwyhjApznQh1BMFou9b30SevY43gCJKXycoCBjMbsuW0Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "functions-have-names": "^1.2.3", + "hasown": "^2.0.2", + "is-callable": "^1.2.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/generator-function": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/generator-function/-/generator-function-2.0.1.tgz", + "integrity": "sha512-SFdFmIJi+ybC0vjlHN0ZGVGHc3lgE0DxPAT0djjVg+kjOnSqclqmj0KQ7ykTOLP6YxoqOvuAODGdcHJn+43q3g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/get-symbol-description": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.1.0.tgz", + "integrity": "sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/glob": { + "version": "13.0.1", + "resolved": "https://registry.npmjs.org/glob/-/glob-13.0.1.tgz", + "integrity": "sha512-B7U/vJpE3DkJ5WXTgTpTRN63uV42DseiXXKMwG14LQBXmsdeIoHAPbU/MEo6II0k5ED74uc2ZGTC6MwHFQhF6w==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "minimatch": "^10.1.2", + "minipass": "^7.1.2", + "path-scurry": "^2.0.0" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/glob/node_modules/minimatch": { + "version": "10.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.1.2.tgz", + "integrity": "sha512-fu656aJ0n2kcXwsnwnv9g24tkU5uSmOlTjd6WyyaKm2Z+h1qmY6bAjrcaIxF/BslFqbZ8UBtbJi7KgQOZD2PTw==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/brace-expansion": "^5.0.1" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/globals": { + "version": "17.3.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-17.3.0.tgz", + "integrity": "sha512-yMqGUQVVCkD4tqjOJf3TnrvaaHDMYp4VlUSObbkIiuCPe/ofdMBFIAcBbCSRFWOnos6qRiTVStDwqPLUclaxIw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globalthis": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", + "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-properties": "^1.2.1", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-bigints": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.1.0.tgz", + "integrity": "sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", + "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-define-property": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-proto": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.2.0.tgz", + "integrity": "sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/ignore": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", + "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", + "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/internal-slot": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.1.0.tgz", + "integrity": "sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "hasown": "^2.0.2", + "side-channel": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/is-array-buffer": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.5.tgz", + "integrity": "sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "get-intrinsic": "^1.2.6" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-async-function": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.1.1.tgz", + "integrity": "sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "async-function": "^1.0.0", + "call-bound": "^1.0.3", + "get-proto": "^1.0.1", + "has-tostringtag": "^1.0.2", + "safe-regex-test": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-bigint": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.1.0.tgz", + "integrity": "sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-bigints": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-boolean-object": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.2.2.tgz", + "integrity": "sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-core-module": { + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", + "dev": true, + "license": "MIT", + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-data-view": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.2.tgz", + "integrity": "sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "get-intrinsic": "^1.2.6", + "is-typed-array": "^1.1.13" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-date-object": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.1.0.tgz", + "integrity": "sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-finalizationregistry": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.1.1.tgz", + "integrity": "sha512-1pC6N8qWJbWoPtEjgcL2xyhQOP491EQjeUo3qTKcmV8YSDDJrOepfG8pcC7h/QgnQHYSv0mJ3Z/ZWxmatVrysg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-generator-function": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.2.tgz", + "integrity": "sha512-upqt1SkGkODW9tsGNG5mtXTXtECizwtS2kA161M+gJPc1xdb/Ax629af6YrTwcOeQHbewrPNlE5Dx7kzvXTizA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.4", + "generator-function": "^2.0.0", + "get-proto": "^1.0.1", + "has-tostringtag": "^1.0.2", + "safe-regex-test": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-map": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz", + "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-negative-zero": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.3.tgz", + "integrity": "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-number-object": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.1.1.tgz", + "integrity": "sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-regex": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", + "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-set": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz", + "integrity": "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-shared-array-buffer": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.4.tgz", + "integrity": "sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-string": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.1.1.tgz", + "integrity": "sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-symbol": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.1.1.tgz", + "integrity": "sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "has-symbols": "^1.1.0", + "safe-regex-test": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-typed-array": { + "version": "1.1.15", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz", + "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "which-typed-array": "^1.1.16" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakmap": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz", + "integrity": "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakref": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.1.1.tgz", + "integrity": "sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakset": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.4.tgz", + "integrity": "sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "get-intrinsic": "^1.2.6" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true, + "license": "MIT" + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, + "node_modules/js-yaml": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", + "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", + "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/json5": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "dev": true, + "license": "MIT", + "dependencies": { + "minimist": "^1.2.0" + }, + "bin": { + "json5": "lib/cli.js" + } + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "license": "MIT", + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/lru-cache": { + "version": "11.2.5", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.2.5.tgz", + "integrity": "sha512-vFrFJkWtJvJnD5hg+hJvVE8Lh/TcMzKnTgCWmtBipwI5yLX/iX+5UB2tfuyODF5E7k9xEzMdYgGqaSb1c0c5Yw==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true, + "license": "MIT" + }, + "node_modules/object-inspect": { + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", + "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.assign": { + "version": "4.1.7", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.7.tgz", + "integrity": "sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0", + "has-symbols": "^1.1.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.fromentries": { + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.8.tgz", + "integrity": "sha512-k6E21FzySsSK5a21KRADBd/NGneRegFO5pLHfdQLpRDETUNJueLXs3WCzyQ3tFRDYgbq3KHGXfTbi2bs8WQ6rQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.groupby": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.3.tgz", + "integrity": "sha512-+Lhy3TQTuzXI5hevh8sBGqbmurHbbIjAi0Z4S63nthVLmLxfbj4T54a4CfZrXIrt9iP4mVAPYMo/v99taj3wjQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.values": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.2.1.tgz", + "integrity": "sha512-gXah6aZrcUxjWg2zR2MwouP2eHlCBzdV4pygudehaKXSGW4v2AsRQUK+lwwXhii6KFZcunEnmSUoYp5CXibxtA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/own-keys": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/own-keys/-/own-keys-1.0.1.tgz", + "integrity": "sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg==", + "dev": true, + "license": "MIT", + "dependencies": { + "get-intrinsic": "^1.2.6", + "object-keys": "^1.1.1", + "safe-push-apply": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/package-json-from-dist": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", + "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", + "dev": true, + "license": "BlueOak-1.0.0" + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "license": "MIT", + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true, + "license": "MIT" + }, + "node_modules/path-scurry": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.1.tgz", + "integrity": "sha512-oWyT4gICAu+kaA7QWk/jvCHWarMKNs6pXOGWKDTr7cw4IGcUbW+PeTfbaQiLGheFRpjo6O9J0PmyMfQPjH71oA==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^11.0.0", + "minipass": "^7.1.2" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/picomatch": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/playwright": { + "version": "1.58.1", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.58.1.tgz", + "integrity": "sha512-+2uTZHxSCcxjvGc5C891LrS1/NlxglGxzrC4seZiVjcYVQfUa87wBL6rTDqzGjuoWNjnBzRqKmF6zRYGMvQUaQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "playwright-core": "1.58.1" + }, + "bin": { + "playwright": "cli.js" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "fsevents": "2.3.2" + } + }, + "node_modules/playwright-core": { + "version": "1.58.1", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.58.1.tgz", + "integrity": "sha512-bcWzOaTxcW+VOOGBCQgnaKToLJ65d6AqfLVKEWvexyS3AS6rbXl+xdpYRMGSRBClPvyj44njOWoxjNdL/H9UNg==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "playwright-core": "cli.js" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/possible-typed-array-names": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz", + "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prettier": { + "version": "3.8.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.8.1.tgz", + "integrity": "sha512-UOnG6LftzbdaHZcKoPFtOcCKztrQ57WkHDeRD9t/PTQtmT0NHSeWWepj6pS0z/N7+08BHFDQVUrfmfMRcZwbMg==", + "dev": true, + "license": "MIT", + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/reflect.getprototypeof": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.10.tgz", + "integrity": "sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.9", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "get-intrinsic": "^1.2.7", + "get-proto": "^1.0.1", + "which-builtin-type": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/regexp.prototype.flags": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.4.tgz", + "integrity": "sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-errors": "^1.3.0", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "set-function-name": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve": { + "version": "1.22.11", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.11.tgz", + "integrity": "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-core-module": "^2.16.1", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/rimraf": { + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-6.1.2.tgz", + "integrity": "sha512-cFCkPslJv7BAXJsYlK1dZsbP8/ZNLkCAQ0bi1hf5EKX2QHegmDFEFA6QhuYJlk7UDdc+02JjO80YSOrWPpw06g==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "glob": "^13.0.0", + "package-json-from-dist": "^1.0.1" + }, + "bin": { + "rimraf": "dist/esm/bin.mjs" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/safe-array-concat": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.3.tgz", + "integrity": "sha512-AURm5f0jYEOydBj7VQlVvDrjeFgthDdEF5H1dP+6mNpoXOMo1quQqJ4wvJDyRZ9+pO3kGWoOdmV08cSv2aJV6Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "get-intrinsic": "^1.2.6", + "has-symbols": "^1.1.0", + "isarray": "^2.0.5" + }, + "engines": { + "node": ">=0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safe-push-apply": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-push-apply/-/safe-push-apply-1.0.0.tgz", + "integrity": "sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "isarray": "^2.0.5" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safe-regex-test": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz", + "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "is-regex": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/semver": { + "version": "7.7.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", + "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/set-function-length": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", + "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/set-function-name": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz", + "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "functions-have-names": "^1.2.3", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/set-proto": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/set-proto/-/set-proto-1.0.0.tgz", + "integrity": "sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==", + "dev": true, + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/side-channel": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", + "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-list": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", + "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/stop-iteration-iterator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.1.0.tgz", + "integrity": "sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "internal-slot": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/string.prototype.trim": { + "version": "1.2.10", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.10.tgz", + "integrity": "sha512-Rs66F0P/1kedk5lyYyH9uBzuiI/kNRmwJAR9quK6VOtIpZ2G+hMZd+HQbbv25MgCA6gEffoMZYxlTod4WcdrKA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "define-data-property": "^1.1.4", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-object-atoms": "^1.0.0", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimend": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.9.tgz", + "integrity": "sha512-G7Ok5C6E/j4SGfyLCloXTrngQIQU3PWtXGst3yM7Bea9FRURf1S42ZHlZZtsNque2FN2PoUhfZXYLNWwEr4dLQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimstart": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz", + "integrity": "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.15", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", + "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.3" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/ts-api-utils": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.4.0.tgz", + "integrity": "sha512-3TaVTaAv2gTiMB35i3FiGJaRfwb3Pyn/j3m/bfAvGe8FB7CF6u+LMYqYlDh7reQf7UNvoTvdfAqHGmPGOSsPmA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.12" + }, + "peerDependencies": { + "typescript": ">=4.8.4" + } + }, + "node_modules/tsconfig-paths": { + "version": "3.15.0", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz", + "integrity": "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/json5": "^0.0.29", + "json5": "^1.0.2", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + } + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/typed-array-buffer": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz", + "integrity": "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "is-typed-array": "^1.1.14" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/typed-array-byte-length": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.3.tgz", + "integrity": "sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "for-each": "^0.3.3", + "gopd": "^1.2.0", + "has-proto": "^1.2.0", + "is-typed-array": "^1.1.14" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-byte-offset": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.4.tgz", + "integrity": "sha512-bTlAFB/FBYMcuX81gbL4OcpH5PmlFHqlCCpAl8AlEzMz5k53oNDvN8p1PNOWLEmI2x4orp3raOFB51tv9X+MFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.8", + "for-each": "^0.3.3", + "gopd": "^1.2.0", + "has-proto": "^1.2.0", + "is-typed-array": "^1.1.15", + "reflect.getprototypeof": "^1.0.9" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-length": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.7.tgz", + "integrity": "sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "is-typed-array": "^1.1.13", + "possible-typed-array-names": "^1.0.0", + "reflect.getprototypeof": "^1.0.6" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/unbox-primitive": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.1.0.tgz", + "integrity": "sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "has-bigints": "^1.0.2", + "has-symbols": "^1.1.0", + "which-boxed-primitive": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/undici-types": { + "version": "7.16.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz", + "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==", + "dev": true, + "license": "MIT" + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/which-boxed-primitive": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.1.1.tgz", + "integrity": "sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-bigint": "^1.1.0", + "is-boolean-object": "^1.2.1", + "is-number-object": "^1.1.1", + "is-string": "^1.1.1", + "is-symbol": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-builtin-type": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.2.1.tgz", + "integrity": "sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "function.prototype.name": "^1.1.6", + "has-tostringtag": "^1.0.2", + "is-async-function": "^2.0.0", + "is-date-object": "^1.1.0", + "is-finalizationregistry": "^1.1.0", + "is-generator-function": "^1.0.10", + "is-regex": "^1.2.1", + "is-weakref": "^1.0.2", + "isarray": "^2.0.5", + "which-boxed-primitive": "^1.1.0", + "which-collection": "^1.0.2", + "which-typed-array": "^1.1.16" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-collection": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz", + "integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-map": "^2.0.3", + "is-set": "^2.0.3", + "is-weakmap": "^2.0.2", + "is-weakset": "^2.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-typed-array": { + "version": "1.1.20", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.20.tgz", + "integrity": "sha512-LYfpUkmqwl0h9A2HL09Mms427Q1RZWuOHsukfVcKRq9q95iQxdw0ix1JQrqbcDR9PH1QDwf5Qo8OZb5lksZ8Xg==", + "dev": true, + "license": "MIT", + "dependencies": { + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "for-each": "^0.3.5", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/tools/playwright/package.json b/tools/playwright/package.json new file mode 100644 index 0000000..8dc9e36 --- /dev/null +++ b/tools/playwright/package.json @@ -0,0 +1,70 @@ +{ + "name": "abledom-playwright", + "version": "0.0.7", + "description": "AbleDOM tools for Playwright", + "author": "Marat Abdullin ", + "license": "MIT", + "type": "module", + "main": "./dist/index.js", + "module": "./dist/index.js", + "types": "./dist/index.d.ts", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.js", + "default": "./dist/index.js" + }, + "./reporter": { + "types": "./dist/reporter.d.ts", + "import": "./dist/reporter.js", + "default": "./dist/reporter.js" + } + }, + "files": [ + "dist" + ], + "scripts": { + "build": "tsc", + "clean": "rimraf dist .test-output test-results", + "format": "prettier --check .", + "format:fix": "prettier --write .", + "lint": "eslint src/ tests/", + "lint:fix": "npm run lint -- --fix", + "test": "playwright test --config=tests/playwright.config.ts", + "type-check": "tsc --noEmit", + "prepublishOnly": "npm run lint && npm run format && npm run build" + }, + "peerDependencies": { + "@playwright/test": ">=1.40.0" + }, + "devDependencies": { + "@eslint/js": "^9.39.2", + "@playwright/test": "^1.58.1", + "@types/node": "^25.2.0", + "@typescript-eslint/eslint-plugin": "^8.54.0", + "@typescript-eslint/parser": "^8.54.0", + "eslint": "^9.39.2", + "eslint-config-prettier": "^10.1.8", + "eslint-plugin-import": "^2.32.0", + "globals": "^17.3.0", + "prettier": "^3.8.1", + "rimraf": "^6.1.2", + "typescript": "^5.9.3" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/microsoft/abledom.git", + "directory": "tools/playwright" + }, + "bugs": { + "url": "https://github.com/microsoft/abledom/issues" + }, + "homepage": "https://github.com/microsoft/abledom/tree/main/tools/playwright#readme", + "keywords": [ + "playwright", + "accessibility", + "a11y", + "testing", + "abledom" + ] +} diff --git a/tools/playwright/src/fixtures.ts b/tools/playwright/src/fixtures.ts new file mode 100644 index 0000000..b5b5da3 --- /dev/null +++ b/tools/playwright/src/fixtures.ts @@ -0,0 +1,143 @@ +/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */ + +import { + test as base, + Page, + PlaywrightTestArgs, + PlaywrightTestOptions, + PlaywrightWorkerArgs, + PlaywrightWorkerOptions, + TestType, + TestInfo, +} from "@playwright/test"; +import { attachAbleDOMMethodsToPage } from "./page-injector.js"; + +/** + * Fixtures provided by the AbleDOM test integration. + */ +export interface AbleDOMFixtures { + /** + * Attaches AbleDOM accessibility checking to a page. + * Call this after creating a page to enable automatic a11y checks on locator actions. + * IMPORTANT: This function is async and MUST be awaited before navigating the page. + * + * @param page - The Playwright Page object to attach AbleDOM to + * + * @example + * ```typescript + * const page = await context.newPage(); + * await attachAbleDOM(page); // Must await before navigation! + * await page.goto('https://example.com'); + * // Now all locator actions on this page will trigger AbleDOM checks + * ``` + */ + attachAbleDOM: (page: Page) => Promise; +} + +/** + * Creates an AbleDOM test fixture that can be merged with other Playwright test fixtures. + * + * This fixture provides an `attachAbleDOM` function that can be called after creating + * a page to enable automatic accessibility checks on all locator actions. + * + * @returns A TestType that can be merged with other tests using `mergeTests` + * + * @example + * ```typescript + * // In your fixtures file + * import { test as base, mergeTests } from '@playwright/test'; + * import { createAbleDOMTest } from 'abledom-playwright'; + * + * // Merge with base test + * const test = mergeTests(base, createAbleDOMTest()); + * + * // Or merge with existing custom fixtures + * const baseTestWithAbleDOM = mergeTests(existingTest, createAbleDOMTest()); + * export const myTest = baseTestWithAbleDOM.extend({ + * myPage: async ({ attachAbleDOM, browser }, use) => { + * const context = await browser.newContext(); + * const page = await context.newPage(); + * attachAbleDOM(page); // Enable AbleDOM on this page + * await use(page); + * await context.close(); + * }, + * }); + * ``` + * + * @example + * ```typescript + * // In a test file + * import { test } from './fixtures'; + * + * test('accessibility test', async ({ attachAbleDOM, browser }) => { + * const context = await browser.newContext(); + * const page = await context.newPage(); + * attachAbleDOM(page); + * + * await page.goto('https://example.com'); + * // All locator actions now trigger AbleDOM checks + * await page.locator('button').click(); + * }); + * ``` + */ +export function createAbleDOMTest(): TestType< + PlaywrightTestArgs & PlaywrightTestOptions & AbleDOMFixtures, + PlaywrightWorkerArgs & PlaywrightWorkerOptions +> { + return base.extend({ + attachAbleDOM: async ({}, use, testInfo) => { + const attach = async (page: Page): Promise => { + try { + await attachAbleDOMMethodsToPage(page, testInfo); + console.log("[AbleDOM] Attached to page."); + } catch (error) { + console.warn(`[AbleDOM] Failed to attach to page: ${error}`); + } + }; + await use(attach); + }, + }); +} + +/** + * Creates an AbleDOM page fixture for use with Playwright's test.extend(). + * + * This provides an alternative way to integrate AbleDOM that automatically + * attaches to pages without manual setup in each test. Use this when you + * want to override Playwright's built-in `page` fixture. + * + * @returns A fixture definition that can be used with test.extend() + * + * @example + * ```typescript + * // fixtures.ts + * import { test as base } from '@playwright/test'; + * import { createAbleDOMPageFixture } from 'abledom-playwright'; + * + * export const test = base.extend({ + * page: createAbleDOMPageFixture(), + * }); + * + * // my-test.spec.ts + * import { test } from './fixtures'; + * + * test('accessibility test', async ({ page }) => { + * await page.goto('https://example.com'); + * // AbleDOM is automatically attached + * await page.locator('button').click(); + * }); + * ``` + */ +export function createAbleDOMPageFixture() { + return async ( + { page }: { page: Page }, + use: (page: Page) => Promise, + testInfo: TestInfo, + ): Promise => { + await attachAbleDOMMethodsToPage(page, testInfo); + await use(page); + }; +} diff --git a/tools/playwright/src/index.ts b/tools/playwright/src/index.ts new file mode 100644 index 0000000..2371917 --- /dev/null +++ b/tools/playwright/src/index.ts @@ -0,0 +1,17 @@ +/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */ + +export { attachAbleDOMMethodsToPage } from "./page-injector.js"; +export type { AbleDOMTestingMode, WindowWithAbleDOMInstance } from "./types.js"; +export { + AbleDOMReporter, + type AbleDOMReporterOptions, + type ReportEntry, +} from "./reporter.js"; +export { + createAbleDOMTest, + createAbleDOMPageFixture, + type AbleDOMFixtures, +} from "./fixtures.js"; diff --git a/tools/playwright/src/page-injector.ts b/tools/playwright/src/page-injector.ts new file mode 100644 index 0000000..b1c3985 --- /dev/null +++ b/tools/playwright/src/page-injector.ts @@ -0,0 +1,273 @@ +/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */ + +import type { Page, Locator, TestInfo } from "@playwright/test"; +import type { AbleDOMTestingMode, WindowWithAbleDOMInstance } from "./types.js"; + +interface LocatorMonkeyPatchedWithAbleDOM extends Locator { + __locatorIsMonkeyPatchedWithAbleDOM?: boolean; +} + +type FunctionWithCachedLocatorProto = ((page: Page) => void) & { + __cachedLocatorProto?: LocatorMonkeyPatchedWithAbleDOM; +}; + +/** + * Helper function to extract caller location from stack trace. + * Finds the first stack frame that's in a test file (.spec.ts or .test.ts). + */ +function getCallerLocation( + stack?: string, +): { file: string; line: number; column: number } | null { + if (!stack) { + return null; + } + + const lines = stack.split("\n"); + + // Find the first line that's NOT from page-injector.js/ts (the library) or internal playwright files + for (const line of lines) { + // Skip if it's from page-injector.js/.ts (the library file) or node_modules + // But don't skip test files that happen to have "page-injector" in their name + if ( + (line.includes("page-injector.js") || + line.includes("page-injector.ts")) && + !line.includes(".test.") && + !line.includes(".spec.") + ) { + continue; + } + if (line.includes("node_modules")) { + continue; + } + + // Match patterns like: + // at Context. (/path/to/file.spec.ts:25:30) + // at /path/to/file.spec.ts:25:30 + const match = line.match(/\((.+):(\d+):(\d+)\)|at\s+(.+):(\d+):(\d+)/); + if (match) { + const file = match[1] || match[4]; + const lineNum = parseInt(match[2] || match[5], 10); + const column = parseInt(match[3] || match[6], 10); + + // Make sure it's a test file + if (file && (file.includes(".spec.") || file.includes(".test."))) { + return { file, line: lineNum, column }; + } + } + } + + return null; +} + +/** + * Attaches AbleDOM accessibility checking methods to a Playwright Page. + * + * This function monkey-patches Playwright's Locator prototype to automatically + * run AbleDOM accessibility checks before each user action (click, fill, etc.). + * + * @param page - The Playwright Page object to attach methods to + * @param testInfo - Optional TestInfo object for reporting issues to the custom reporter + * @param mode - Testing mode: 1=headed (show UI), 2=headless (hide UI), 3=exact (use props as-is). Defaults to 2. + * + * @example + * ```typescript + * import { test } from '@playwright/test'; + * import { attachAbleDOMMethodsToPage } from 'abledom-playwright'; + * + * test('my test', async ({ page }, testInfo) => { + * await page.goto('https://example.com'); + * await attachAbleDOMMethodsToPage(page, testInfo); + * + * // All subsequent locator actions will trigger AbleDOM checks + * await page.locator('button').click(); + * }); + * ``` + */ +export async function attachAbleDOMMethodsToPage( + page: Page, + testInfo?: TestInfo, + mode: AbleDOMTestingMode = 2, +): Promise { + const attachAbleDOMMethodsToPageWithCachedLocatorProto: FunctionWithCachedLocatorProto = + attachAbleDOMMethodsToPage; + + // Store testInfo on the page object so each page has its own testInfo + (page as unknown as Record).__abledomTestInfo = testInfo; + + // Add an init script to set the flag before any page scripts run on navigations + // This MUST be awaited to ensure it's registered before any navigation happens + await page.addInitScript((modeValue) => { + ( + window as { ableDOMInstanceForTestingNeeded?: number } + ).ableDOMInstanceForTestingNeeded = modeValue; + }, mode); + + // Also set the flag immediately on the current page context (in case the app is already loaded) + // Errors are caught silently since the page may be on about:blank or context may be invalid + await page + .evaluate((modeValue) => { + ( + window as unknown as WindowWithAbleDOMInstance + ).ableDOMInstanceForTestingNeeded = modeValue; + }, mode) + .catch(() => { + /* ignore - addInitScript will set flag after navigation */ + }); + + let locatorProto: LocatorMonkeyPatchedWithAbleDOM | undefined = + attachAbleDOMMethodsToPageWithCachedLocatorProto.__cachedLocatorProto; + + if (!locatorProto) { + // Playwright doesn't expose Locator prototype, so we get it from an instance. + locatorProto = + attachAbleDOMMethodsToPageWithCachedLocatorProto.__cachedLocatorProto = + Object.getPrototypeOf(page.locator("head")); + } + + if (!locatorProto) { + return; + } + + // It is more efficient to monkey-patch the prototype once, comparing to patching + // every instance. + if (!locatorProto.__locatorIsMonkeyPatchedWithAbleDOM) { + locatorProto.__locatorIsMonkeyPatchedWithAbleDOM = true; + + const origWaitFor = locatorProto.waitFor; + + locatorProto.waitFor = async function waitFor( + this: Locator, + ...args: Parameters + ) { + const ret = await origWaitFor.apply(this, args); + const currentPage = this.page(); + + const result = await currentPage.evaluate(async () => { + const win = window as unknown as WindowWithAbleDOMInstance; + const hasInstance = !!win.ableDOMInstanceForTesting; + const issues = await win.ableDOMInstanceForTesting?.idle(); + const el = issues?.[0]?.element; + + if (el) { + // TODO: Make highlighting flag-dependent. + // win.ableDOMInstanceForTesting?.highlightElement(el, true); + } + + return { + hasInstance, + issues: issues?.map((issue) => ({ + id: issue.id, + message: issue.message, + element: issue.element?.outerHTML, + parentParent: + issue.element?.parentElement?.parentElement?.outerHTML, + })), + }; + }); + + const { hasInstance, issues } = result; + + // Get testInfo from the page object (stored by attachAbleDOMMethodsToPage) + const pageTestInfo = (currentPage as unknown as Record) + .__abledomTestInfo as TestInfo | undefined; + + // Report assertion count to the reporter + if (pageTestInfo) { + await pageTestInfo.attach("abledom-assertion", { + body: JSON.stringify({ + type: hasInstance ? "good" : "bad", + }), + contentType: "application/json", + }); + } + + if (issues && issues.length) { + const issuesText = issues.map( + (issue) => ` + message: ${issue.message} + element: ${issue.element} + parentParent: ${issue.parentParent}`, + ); + + const errorMessage = `AbleDOM found ${issues.length > 1 ? `${issues.length} ` : ""}issue${ + issues.length > 1 ? "s" : "" + }:\n${issuesText.join("\n\n")}`; + + // Capture stack trace to find the actual caller location + const error = new Error(); + const callerLocation = getCallerLocation(error.stack); + + // Report to custom reporter if testInfo is available + if (pageTestInfo && callerLocation) { + await pageTestInfo.attach("abledom-test-data", { + body: JSON.stringify({ + type: "AbleDOM Issue", + callerFile: callerLocation.file, + callerLine: callerLocation.line, + callerColumn: callerLocation.column, + issueCount: issues.length, + issues: issues.map((issue) => ({ + id: issue.id, + message: issue.message, + element: issue.element, + parentParent: issue.parentParent, + })), + fullMessage: errorMessage, + }), + contentType: "application/json", + }); + } + + // Note: We don't throw an error here - just report the issues + // This allows tests to continue and report all issues found + } + + return ret; + }; + + // Patch action methods to call our patched waitFor() before executing + // This ensures all actions trigger AbleDOM checks + const actionsToPath = [ + "click", + "dblclick", + "fill", + "type", + "press", + "check", + "uncheck", + "selectOption", + "hover", + "tap", + "focus", + "blur", + "clear", + "setInputFiles", + ] as const; + + for (const action of actionsToPath) { + const originalAction = ( + locatorProto as unknown as Record< + string, + (...args: unknown[]) => Promise + > + )[action]; + if (originalAction) { + ( + locatorProto as unknown as Record< + string, + (...args: unknown[]) => Promise + > + )[action] = async function (this: Locator, ...args: unknown[]) { + // Call our patched waitFor first to trigger AbleDOM checks + // This will check accessibility before performing the action + await this.waitFor({ state: "attached" }); + // Then perform the original action + return originalAction.apply(this, args); + }; + } + } + } +} diff --git a/tools/playwright/src/reporter.ts b/tools/playwright/src/reporter.ts new file mode 100644 index 0000000..57a5091 --- /dev/null +++ b/tools/playwright/src/reporter.ts @@ -0,0 +1,157 @@ +/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */ + +import * as fs from "fs"; +import * as path from "path"; +import type { + Reporter, + TestCase, + TestResult, + FullResult, +} from "@playwright/test/reporter"; + +/** + * A single entry in the accessibility report. + */ +export interface ReportEntry { + testTitle: string; + testFile: string; + testLine: number; + testColumn: number; + data: unknown; + timestamp: string; +} + +/** + * Options for configuring the AbleDOM reporter. + */ +export interface AbleDOMReporterOptions { + /** + * Output file path for the report. Defaults to './test-results/abledom.json'. + */ + outputFile?: string; +} + +/** + * Playwright Reporter that collects AbleDOM accessibility issues and writes them to a file. + * + * @example + * ```typescript + * // playwright.config.ts + * import { AbleDOMReporter } from 'abledom-playwright/reporter'; + * + * export default defineConfig({ + * reporter: [ + * ['list'], + * [AbleDOMReporter, { outputFile: 'accessibility-report.json' }], + * ], + * }); + * ``` + */ +export class AbleDOMReporter implements Reporter { + private collectedData: ReportEntry[] = []; + private outputPath: string; + private goodAssertionCount = 0; + private badAssertionCount = 0; + + constructor(options: AbleDOMReporterOptions = {}) { + this.outputPath = options.outputFile || "./test-results/abledom.json"; + } + + onBegin(): void { + // Clear any existing data when test run begins + this.collectedData = []; + this.goodAssertionCount = 0; + this.badAssertionCount = 0; + } + + /** + * Manually add data to the report. + * This can be called from tests to add custom accessibility data. + */ + addData( + testTitle: string, + testFile: string, + testLine: number, + testColumn: number, + data: unknown, + ): void { + this.collectedData.push({ + testTitle, + testFile, + testLine, + testColumn, + data, + timestamp: new Date().toISOString(), + }); + } + + onTestEnd(test: TestCase, result: TestResult): void { + // Collect data from test attachments + result.attachments.forEach((attachment) => { + if (attachment.name === "abledom-assertion" && attachment.body) { + try { + const data = JSON.parse(attachment.body.toString()) as { + type: "good" | "bad"; + }; + if (data.type === "good") { + this.goodAssertionCount++; + } else if (data.type === "bad") { + this.badAssertionCount++; + } + } catch { + // Ignore malformed assertion data + } + } else if (attachment.name === "abledom-test-data" && attachment.body) { + try { + const data = JSON.parse(attachment.body.toString()); + this.addData( + test.title, + test.location.file, + test.location.line, + test.location.column, + data, + ); + } catch { + // Not JSON data, store as-is + this.addData( + test.title, + test.location.file, + test.location.line, + test.location.column, + attachment.body.toString(), + ); + } + } + }); + } + + // eslint-disable-next-line @typescript-eslint/no-unused-vars + onEnd(_result: FullResult): void { + // Write all collected data to a file + const outputFilePath = path.resolve(process.cwd(), this.outputPath); + + const report = { + date: new Date().toISOString(), + goodAssertionCount: this.goodAssertionCount, + badAssertionCount: this.badAssertionCount, + records: this.collectedData, + }; + + const content = JSON.stringify(report, null, 2); + + // Ensure directory exists + const dir = path.dirname(outputFilePath); + if (!fs.existsSync(dir)) { + fs.mkdirSync(dir, { recursive: true }); + } + + fs.writeFileSync(outputFilePath, content, "utf-8"); + console.log(`AbleDOM report written to: ${outputFilePath}`); + } +} + +// Export the class as default for Playwright config +export default AbleDOMReporter; diff --git a/tools/playwright/src/types.ts b/tools/playwright/src/types.ts new file mode 100644 index 0000000..3993947 --- /dev/null +++ b/tools/playwright/src/types.ts @@ -0,0 +1,25 @@ +/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */ + +/** + * Testing mode values for ableDOMInstanceForTestingNeeded: + * - 1 (headed): Force headless=false, show UI + * - 2 (headless): Force headless=true, hide UI + * - 3 (exact): Use props as-is, no override + */ +export type AbleDOMTestingMode = 1 | 2 | 3; + +/** + * Window interface with AbleDOM testing properties. + */ +export interface WindowWithAbleDOMInstance extends Window { + ableDOMInstanceForTestingNeeded?: AbleDOMTestingMode; + ableDOMInstanceForTesting?: { + idle: () => Promise< + { id: string; message: string; element: HTMLElement | null }[] + >; + highlightElement: (element: HTMLElement, scrollIntoView: boolean) => void; + }; +} diff --git a/tools/playwright/tests/create-abledom-test.test.spec.ts b/tools/playwright/tests/create-abledom-test.test.spec.ts new file mode 100644 index 0000000..65cb661 --- /dev/null +++ b/tools/playwright/tests/create-abledom-test.test.spec.ts @@ -0,0 +1,239 @@ +/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */ +import type { WindowWithAbleDOMInstance } from "../src/types.js"; +import { testWithAttachAbleDOM as test, expect } from "./fixtures.js"; + +test.describe("createAbleDOMTest fixture", () => { + test("should provide attachAbleDOM function", async ({ + attachAbleDOM, + browser, + }) => { + expect(typeof attachAbleDOM).toBe("function"); + + const context = await browser.newContext(); + const page = await context.newPage(); + + // Navigate first to have a valid page context + await page.goto("data:text/html,Test"); + + // Should not throw when attaching + await attachAbleDOM(page); + + await context.close(); + }); + + test("should set ableDOMInstanceForTestingNeeded flag after navigation", async ({ + attachAbleDOM, + browser, + }) => { + const context = await browser.newContext(); + const page = await context.newPage(); + + // Navigate first to have a valid page context + await page.goto( + "data:text/html,", + ); + + // Now attach AbleDOM to the page + await attachAbleDOM(page); + + // Set up mock + await page.evaluate(() => { + const win = window as WindowWithAbleDOMInstance; + win.ableDOMInstanceForTesting = { + idle: async () => [], + highlightElement: () => { + /* noop */ + }, + }; + }); + + // Trigger an action - this will also set the flag via the patched waitFor + await page.locator("button").waitFor(); + + // Check that the flag was set + const flagValue = await page.evaluate(() => { + return (window as WindowWithAbleDOMInstance) + .ableDOMInstanceForTestingNeeded; + }); + + expect(flagValue).toBe(2); + + await context.close(); + }); + + test("should report issues when AbleDOM finds problems", async ({ + attachAbleDOM, + browser, + }, testInfo) => { + const context = await browser.newContext(); + const page = await context.newPage(); + + // Attach AbleDOM to the page (must await before navigation!) + await attachAbleDOM(page); + + // Navigate to a page + await page.goto( + 'data:text/html,', + ); + + // Set up mock that returns an issue + await page.evaluate(() => { + const win = window as WindowWithAbleDOMInstance; + win.ableDOMInstanceForTesting = { + idle: async () => [ + { + id: "test-issue-1", + message: "Test accessibility issue", + element: document.querySelector("#btn"), + }, + ], + highlightElement: () => { + /* noop */ + }, + }; + }); + + // Trigger an action that will check AbleDOM + await page.locator("#btn").click(); + + // Check that an attachment was created + const attachments = testInfo.attachments.filter( + (a) => a.name === "abledom-test-data", + ); + expect(attachments.length).toBe(1); + + // Verify the attachment content + const data = JSON.parse(attachments[0].body!.toString()); + expect(data.type).toBe("AbleDOM Issue"); + expect(data.issueCount).toBe(1); + expect(data.issues[0].id).toBe("test-issue-1"); + expect(data.issues[0].message).toBe("Test accessibility issue"); + + await context.close(); + }); + + test("should work with multiple pages in the same context", async ({ + attachAbleDOM, + browser, + }) => { + const context = await browser.newContext(); + + // Create and attach to first page + const page1 = await context.newPage(); + await attachAbleDOM(page1); + + // Create and attach to second page + const page2 = await context.newPage(); + await attachAbleDOM(page2); + + // Navigate both pages + await page1.goto( + 'data:text/html,
Page 1
', + ); + await page2.goto( + 'data:text/html,
Page 2
', + ); + + // Set up mocks on both pages + for (const page of [page1, page2]) { + await page.evaluate(() => { + const win = window as WindowWithAbleDOMInstance; + win.ableDOMInstanceForTesting = { + idle: async () => [], + highlightElement: () => { + /* noop */ + }, + }; + }); + } + + // Trigger actions on both pages + await page1.locator("#page1").waitFor(); + await page2.locator("#page2").waitFor(); + + // Both should have the flag set + const flag1 = await page1.evaluate( + () => + (window as WindowWithAbleDOMInstance).ableDOMInstanceForTestingNeeded, + ); + const flag2 = await page2.evaluate( + () => + (window as WindowWithAbleDOMInstance).ableDOMInstanceForTestingNeeded, + ); + + expect(flag1).toBe(2); + expect(flag2).toBe(2); + + await context.close(); + }); + + test("should persist flag across navigations via addInitScript", async ({ + attachAbleDOM, + browser, + }) => { + const context = await browser.newContext(); + const page = await context.newPage(); + + // First navigation to establish page context + await page.goto( + 'data:text/html,
Page 1
', + ); + + // Attach AbleDOM - this will set flag immediately and add init script for future navigations + await attachAbleDOM(page); + + await page.evaluate(() => { + const win = window as WindowWithAbleDOMInstance; + win.ableDOMInstanceForTesting = { + idle: async () => [], + highlightElement: () => { + /* noop */ + }, + }; + }); + + await page.locator("#page1").waitFor(); + + const flag1 = await page.evaluate( + () => + (window as WindowWithAbleDOMInstance).ableDOMInstanceForTestingNeeded, + ); + expect(flag1).toBe(2); + + // Second navigation - flag should be set by addInitScript before page scripts run + await page.goto( + 'data:text/html,
Page 2
', + ); + + // Check flag immediately after navigation (before setting up mock) + // The addInitScript should have already set it + const flag2BeforeMock = await page.evaluate( + () => + (window as WindowWithAbleDOMInstance).ableDOMInstanceForTestingNeeded, + ); + expect(flag2BeforeMock).toBe(2); + + await page.evaluate(() => { + const win = window as WindowWithAbleDOMInstance; + win.ableDOMInstanceForTesting = { + idle: async () => [], + highlightElement: () => { + /* noop */ + }, + }; + }); + + await page.locator("#page2").waitFor(); + + const flag2 = await page.evaluate( + () => + (window as WindowWithAbleDOMInstance).ableDOMInstanceForTestingNeeded, + ); + expect(flag2).toBe(2); + + await context.close(); + }); +}); diff --git a/tools/playwright/tests/fixture-flag.test.spec.ts b/tools/playwright/tests/fixture-flag.test.spec.ts new file mode 100644 index 0000000..ee1a782 --- /dev/null +++ b/tools/playwright/tests/fixture-flag.test.spec.ts @@ -0,0 +1,98 @@ +/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */ +import type { WindowWithAbleDOMInstance } from "../src/types.js"; +import { test, expect } from "./fixtures.js"; + +test.describe("fixture flag setting", () => { + test("should set ableDOMInstanceForTestingNeeded flag on the page", async ({ + page, + }) => { + // Navigate to a page + await page.goto( + "data:text/html,", + ); + + // Set up a mock that tracks if idle() was called + await page.evaluate(() => { + const win = window as WindowWithAbleDOMInstance; + win.ableDOMInstanceForTesting = { + idle: async () => [], + highlightElement: () => { + /* noop */ + }, + }; + }); + + // Trigger an action that should set the flag + await page.locator("button").waitFor(); + + // Check that the flag was set + const flagValue = await page.evaluate(() => { + return (window as WindowWithAbleDOMInstance) + .ableDOMInstanceForTestingNeeded; + }); + + expect(flagValue).toBe(2); + }); + + test("should set flag even when using fixture before navigation", async ({ + page, + }) => { + // This test specifically tests the fixture pattern where attachAbleDOMMethodsToPage + // is called before any navigation happens + + // Navigate to first page + await page.goto( + 'data:text/html,
Page 1
', + ); + + // Set up mock + await page.evaluate(() => { + const win = window as WindowWithAbleDOMInstance; + win.ableDOMInstanceForTesting = { + idle: async () => [], + highlightElement: () => { + /* noop */ + }, + }; + }); + + // Trigger action + await page.locator("#page1").waitFor(); + + // Check flag on first page + const flag1 = await page.evaluate( + () => + (window as WindowWithAbleDOMInstance).ableDOMInstanceForTestingNeeded, + ); + expect(flag1).toBe(2); + + // Navigate to second page + await page.goto( + 'data:text/html,
Page 2
', + ); + + // Set up mock on second page + await page.evaluate(() => { + const win = window as WindowWithAbleDOMInstance; + win.ableDOMInstanceForTesting = { + idle: async () => [], + highlightElement: () => { + /* noop */ + }, + }; + }); + + // Trigger action on second page + await page.locator("#page2").waitFor(); + + // Check flag on second page - this should also be true + const flag2 = await page.evaluate( + () => + (window as WindowWithAbleDOMInstance).ableDOMInstanceForTestingNeeded, + ); + expect(flag2).toBe(2); + }); +}); diff --git a/tools/playwright/tests/fixtures.ts b/tools/playwright/tests/fixtures.ts new file mode 100644 index 0000000..6c09f0d --- /dev/null +++ b/tools/playwright/tests/fixtures.ts @@ -0,0 +1,24 @@ +/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */ +import { test as base, mergeTests } from "@playwright/test"; +import { createAbleDOMPageFixture, createAbleDOMTest } from "../src/index"; + +/** + * Extended test with AbleDOM page fixture. + * The page automatically has AbleDOM methods attached. + * Use this when you want to override Playwright's built-in page fixture. + */ +export const test = base.extend({ + page: createAbleDOMPageFixture(), +}); + +/** + * Extended test with AbleDOM test fixture using mergeTests. + * Provides attachAbleDOM function to manually attach to pages. + * Use this when you create pages manually (e.g., via context.newPage()). + */ +export const testWithAttachAbleDOM = mergeTests(base, createAbleDOMTest()); + +export { expect } from "@playwright/test"; diff --git a/tools/playwright/tests/integration.test.spec.ts b/tools/playwright/tests/integration.test.spec.ts new file mode 100644 index 0000000..f6bc4cb --- /dev/null +++ b/tools/playwright/tests/integration.test.spec.ts @@ -0,0 +1,123 @@ +/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */ +import { execSync } from "child_process"; +import * as fs from "fs"; +import * as path from "path"; +import { fileURLToPath } from "url"; +import { test as baseTest, expect } from "@playwright/test"; + +const __filename = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__filename); +const INTEGRATION_DIR = path.join(__dirname, "integration"); +const TEST_OUTPUT_DIR = path.join(__dirname, "..", ".test-output"); +const REPORT_FILE = path.join(TEST_OUTPUT_DIR, "integration-report.json"); + +// Store report for all tests to use +let report: { + date: string; + records: Array<{ + testTitle: string; + testFile: string; + testLine: number; + testColumn: number; + data: Record; + timestamp: string; + }>; +} = { date: "", records: [] }; + +baseTest.describe.serial("fixture and reporter integration", () => { + baseTest("run integration test suite and generate report", () => { + // Clean up any existing report + if (fs.existsSync(REPORT_FILE)) { + fs.unlinkSync(REPORT_FILE); + } + + // Run the integration test suite as a subprocess + execSync("npx playwright test --config=playwright.config.ts", { + cwd: INTEGRATION_DIR, + stdio: "pipe", + env: { ...process.env, CI: "" }, + }); + + // Verify file was created + expect(fs.existsSync(REPORT_FILE)).toBe(true); + + // Read and parse JSON for subsequent tests + const content = fs.readFileSync(REPORT_FILE, "utf-8"); + report = JSON.parse(content); + expect(report.records.length).toBeGreaterThan(0); + }); + + baseTest("should contain report date", () => { + expect(report.date).toBeDefined(); + expect(new Date(report.date).getTime()).not.toBeNaN(); + }); + + baseTest("should contain issues from fixture-based tests", () => { + // Should have 2 records (one test has 1 issue, another has 2 issues bundled) + expect(report.records.length).toBe(2); + + const allIssues = report.records.flatMap( + (r) => (r.data.issues as Array<{ id: string; message: string }>) || [], + ); + + // Issue from first test + expect( + allIssues.some((i) => i.message === "Integration test issue one"), + ).toBe(true); + expect(allIssues.some((i) => i.id === "integration-issue-1")).toBe(true); + + // Issues from second test (bundled together) + expect( + allIssues.some((i) => i.message === "Integration test issue two"), + ).toBe(true); + expect( + allIssues.some((i) => i.message === "Integration test issue three"), + ).toBe(true); + expect(allIssues.some((i) => i.id === "integration-issue-2")).toBe(true); + expect(allIssues.some((i) => i.id === "integration-issue-3")).toBe(true); + }); + + baseTest("should contain correct test names", () => { + const testTitles = report.records.map((r) => r.testTitle); + expect(testTitles).toContain("integration test with single issue"); + expect(testTitles).toContain("integration test with multiple issues"); + // The test with no issues should NOT appear in the report + expect(testTitles).not.toContain("integration test with no issues"); + }); + + baseTest("should contain caller locations", () => { + for (const record of report.records) { + expect(record.data.callerFile).toBeDefined(); + expect(record.data.callerLine).toBeDefined(); + expect(record.data.callerColumn).toBeDefined(); + expect(String(record.data.callerFile)).toContain("sample.spec.ts"); + } + }); + + baseTest("should contain proper data structure", () => { + for (const record of report.records) { + expect(record.data.type).toBe("AbleDOM Issue"); + expect(record.data.issueCount).toBeDefined(); + expect(record.data.issues).toBeDefined(); + expect(record.data.fullMessage).toBeDefined(); + } + }); + + baseTest("should contain element HTML in report", () => { + const content = JSON.stringify(report); + // Elements should be serialized with their HTML + expect(content).toContain(" { + // Clean up test-results directory but keep the report file for inspection + const testResultsDir = path.join(INTEGRATION_DIR, "test-results"); + if (fs.existsSync(testResultsDir)) { + fs.rmSync(testResultsDir, { recursive: true }); + } + }); +}); diff --git a/tools/playwright/tests/integration/playwright.config.ts b/tools/playwright/tests/integration/playwright.config.ts new file mode 100644 index 0000000..d76b036 --- /dev/null +++ b/tools/playwright/tests/integration/playwright.config.ts @@ -0,0 +1,27 @@ +/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */ +import { defineConfig, devices } from "@playwright/test"; + +export default defineConfig({ + testDir: "./", + testMatch: "sample.spec.ts", + fullyParallel: false, + workers: 1, + reporter: [ + [ + "../../src/reporter", + { outputFile: "../../.test-output/integration-report.json" }, + ], + ], + use: { + trace: "off", + }, + projects: [ + { + name: "chromium", + use: { ...devices["Desktop Chrome"] }, + }, + ], +}); diff --git a/tools/playwright/tests/integration/sample.spec.ts b/tools/playwright/tests/integration/sample.spec.ts new file mode 100644 index 0000000..d10e64a --- /dev/null +++ b/tools/playwright/tests/integration/sample.spec.ts @@ -0,0 +1,95 @@ +/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */ +import { test, expect } from "../fixtures.js"; +import type { WindowWithAbleDOMInstance } from "../../src/types.js"; + +test("integration test with single issue", async ({ page }, testInfo) => { + await page.goto( + 'data:text/html,', + ); + + await page.evaluate(() => { + const win = window as WindowWithAbleDOMInstance; + win.ableDOMInstanceForTesting = { + idle: async () => [ + { + id: "integration-issue-1", + message: "Integration test issue one", + element: document.querySelector("#btn1"), + }, + ], + highlightElement: (el: HTMLElement) => { + el.style.outline = "2px solid red"; + }, + }; + }); + + await page.locator("#btn1").click(); + + const attachments = testInfo.attachments.filter( + (a) => a.name === "abledom-test-data", + ); + expect(attachments.length).toBe(1); +}); + +test("integration test with multiple issues", async ({ page }, testInfo) => { + await page.goto( + 'data:text/html,', + ); + + await page.evaluate(() => { + const win = window as WindowWithAbleDOMInstance; + win.ableDOMInstanceForTesting = { + idle: async () => [ + { + id: "integration-issue-2", + message: "Integration test issue two", + element: document.querySelector("#input1"), + }, + { + id: "integration-issue-3", + message: "Integration test issue three", + element: document.querySelector("#btn2"), + }, + ], + highlightElement: (el: HTMLElement) => { + el.style.outline = "2px solid red"; + }, + }; + }); + + await page.locator("#input1").fill("test"); + + const attachments = testInfo.attachments.filter( + (a) => a.name === "abledom-test-data", + ); + expect(attachments.length).toBe(1); + + const data = JSON.parse(attachments[0].body!.toString()); + expect(data.issueCount).toBe(2); +}); + +test("integration test with no issues", async ({ page }, testInfo) => { + await page.goto( + 'data:text/html,
Accessible content
', + ); + + await page.evaluate(() => { + const win = window as WindowWithAbleDOMInstance; + win.ableDOMInstanceForTesting = { + idle: async () => [], + highlightElement: () => { + /* no-op for testing */ + }, + }; + }); + + await page.locator("#accessible").waitFor(); + + const attachments = testInfo.attachments.filter( + (a) => a.name === "abledom-test-data", + ); + expect(attachments.length).toBe(0); +}); diff --git a/tools/playwright/tests/page-injector.test.spec.ts b/tools/playwright/tests/page-injector.test.spec.ts new file mode 100644 index 0000000..c5a44e1 --- /dev/null +++ b/tools/playwright/tests/page-injector.test.spec.ts @@ -0,0 +1,299 @@ +/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */ +import { test as baseTest } from "@playwright/test"; +import { attachAbleDOMMethodsToPage } from "../src/index"; +import type { WindowWithAbleDOMInstance } from "../src/types.js"; +import { test, expect } from "./fixtures.js"; + +test.describe("page-injector with mocked AbleDOM", () => { + test("should report AbleDOM issues with correct caller location", async ({ + page, + }, testInfo) => { + // Navigate to a simple page + await page.goto( + 'data:text/html,

Test

Content
', + ); + + // Mock the AbleDOM instance with issues + await page.evaluate(() => { + const win = window as WindowWithAbleDOMInstance; + win.ableDOMInstanceForTesting = { + idle: async () => { + // Return mock accessibility issues + return [ + { + id: "missing-label", + message: "Button is missing an accessible label", + element: document.querySelector("button"), + }, + ]; + }, + highlightElement: (el: HTMLElement) => { + // Mock highlight - just add a style + el.style.outline = "2px solid red"; + }, + }; + }); + + // This waitFor should trigger the AbleDOM check and report the issue + await page.locator("button").waitFor(); + + // Check that the issue was reported to testInfo attachments + const customDataAttachments = testInfo.attachments.filter( + (att) => att.name === "abledom-test-data", + ); + + expect(customDataAttachments.length).toBe(1); + + const reportData = JSON.parse(customDataAttachments[0].body!.toString()); + expect(reportData.type).toBe("AbleDOM Issue"); + expect(reportData.issueCount).toBe(1); + expect(reportData.callerFile).toContain("page-injector.test.spec.ts"); + expect(reportData.callerLine).toBeGreaterThan(25); + expect(reportData.issues[0].message).toBe( + "Button is missing an accessible label", + ); + }); + + test("should not report when no issues are found", async ({ + page, + }, testInfo) => { + await page.goto( + 'data:text/html,

Test

', + ); + + // Mock AbleDOM with NO issues + await page.evaluate(() => { + const win = window as WindowWithAbleDOMInstance; + win.ableDOMInstanceForTesting = { + idle: async () => { + // Return empty array - no issues + return []; + }, + highlightElement: (el: HTMLElement) => { + el.style.outline = "2px solid red"; + }, + }; + }); + + // This should not report anything since there are no issues + await page.locator("button").waitFor(); + await page.locator("h1").waitFor(); + + // Verify no abledom-test-data attachments were added + const customDataAttachments = testInfo.attachments.filter( + (att) => att.name === "abledom-test-data", + ); + expect(customDataAttachments.length).toBe(0); + }); + + test("should report multiple issues from different locators", async ({ + page, + }, testInfo) => { + await page.goto( + 'data:text/html,

Test

', + ); + + // Mock AbleDOM to return different issues on each call + await page.evaluate(() => { + const win = window as WindowWithAbleDOMInstance; + let callCount = 0; + + win.ableDOMInstanceForTesting = { + idle: async () => { + callCount++; + + if (callCount === 1) { + // First call - issue with button + return [ + { + id: "missing-label-button", + message: "Button is missing an accessible label", + element: document.querySelector("button"), + }, + ]; + } else if (callCount === 2) { + // Second call - issue with input + return [ + { + id: "missing-label-input", + message: "Input field is missing a label", + element: document.querySelector("input"), + }, + ]; + } + + // No issues for other calls + return []; + }, + highlightElement: (el: HTMLElement) => { + el.style.outline = "2px solid red"; + }, + }; + }); + + // First waitFor - should report button issue + await page.locator("button").first().waitFor(); + + // Second waitFor - should report input issue + await page.locator("input").waitFor(); + + // Third waitFor - no issues + await page.locator("h1").waitFor(); + + // Verify we got 2 issues reported + const customDataAttachments = testInfo.attachments.filter( + (att) => att.name === "abledom-test-data", + ); + + expect(customDataAttachments.length).toBe(2); + + // Check first issue + const firstReport = JSON.parse(customDataAttachments[0].body!.toString()); + expect(firstReport.issues[0].message).toBe( + "Button is missing an accessible label", + ); + + // Check second issue + const secondReport = JSON.parse(customDataAttachments[1].body!.toString()); + expect(secondReport.issues[0].message).toBe( + "Input field is missing a label", + ); + }); + + test("should handle multiple issues in a single check", async ({ + page, + }, testInfo) => { + await page.goto( + "data:text/html,", + ); + + // Mock AbleDOM to return multiple issues at once + await page.evaluate(() => { + const win = window as WindowWithAbleDOMInstance; + win.ableDOMInstanceForTesting = { + idle: async () => { + return [ + { + id: "issue-1", + message: "First button missing label", + element: document.querySelectorAll("button")[0], + }, + { + id: "issue-2", + message: "Second button missing label", + element: document.querySelectorAll("button")[1], + }, + { + id: "issue-3", + message: "Input missing label", + element: document.querySelector("input"), + }, + ]; + }, + highlightElement: (el: HTMLElement) => { + el.style.outline = "2px solid red"; + }, + }; + }); + + // This waitFor should report all 3 issues + await page.locator("body").waitFor(); + + const customDataAttachments = testInfo.attachments.filter( + (att) => att.name === "abledom-test-data", + ); + + expect(customDataAttachments.length).toBe(1); + + const reportData = JSON.parse(customDataAttachments[0].body!.toString()); + expect(reportData.issueCount).toBe(3); + expect(reportData.issues).toHaveLength(3); + expect(reportData.fullMessage).toContain("AbleDOM found 3 issues"); + expect(reportData.fullMessage).toContain("First button missing label"); + expect(reportData.fullMessage).toContain("Second button missing label"); + expect(reportData.fullMessage).toContain("Input missing label"); + }); + + test("should report correct caller location when using click()", async ({ + page, + }, testInfo) => { + await page.goto( + "data:text/html,

Test

", + ); + + // Mock AbleDOM to return an issue + await page.evaluate(() => { + const win = window as WindowWithAbleDOMInstance; + win.ableDOMInstanceForTesting = { + idle: async () => { + return [ + { + id: "button-missing-label", + message: "Button is missing an accessible label", + element: document.querySelector("button"), + }, + ]; + }, + highlightElement: (el: HTMLElement) => { + el.style.outline = "2px solid red"; + }, + }; + }); + + // Use click() - this should trigger AbleDOM check via our patched waitFor() + await page.locator("button").click(); + + // Verify the issue was reported with correct caller location + const customDataAttachments = testInfo.attachments.filter( + (att) => att.name === "abledom-test-data", + ); + + expect(customDataAttachments.length).toBe(1); + + const reportData = JSON.parse(customDataAttachments[0].body!.toString()); + expect(reportData.type).toBe("AbleDOM Issue"); + expect(reportData.issueCount).toBe(1); + expect(reportData.callerFile).toContain("page-injector.test.spec.ts"); + expect(reportData.issues[0].message).toBe( + "Button is missing an accessible label", + ); + }); +}); + +// This test uses baseTest (without fixture) to test the case where testInfo is not provided +baseTest("should work without testInfo parameter", async ({ page }) => { + await page.goto( + "data:text/html,", + ); + + // Mock AbleDOM with issues + await page.evaluate(() => { + const win = window as WindowWithAbleDOMInstance; + win.ableDOMInstanceForTesting = { + idle: async () => { + return [ + { + id: "test-issue", + message: "Test accessibility issue", + element: document.querySelector("button"), + }, + ]; + }, + highlightElement: (el: HTMLElement) => { + el.style.outline = "2px solid red"; + }, + }; + }); + + // Call without testInfo - should not report anything but should not error + await attachAbleDOMMethodsToPage(page); + + // Should complete without errors + await page.locator("button").waitFor(); + + // Test passes - no errors thrown + baseTest.expect(true).toBe(true); +}); diff --git a/tools/playwright/tests/playwright.config.ts b/tools/playwright/tests/playwright.config.ts new file mode 100644 index 0000000..9e69d7e --- /dev/null +++ b/tools/playwright/tests/playwright.config.ts @@ -0,0 +1,33 @@ +/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */ +import { defineConfig, devices } from "@playwright/test"; +import { attachAbleDOMMethodsToPage } from "../src/index"; + +export default defineConfig({ + testDir: "./", + testIgnore: ["**/integration/**"], + fullyParallel: true, + forbidOnly: !!process.env.CI, + retries: process.env.CI ? 2 : 0, + workers: process.env.CI ? 1 : undefined, + + reporter: [ + ["list"], + ["../src/reporter", { outputFile: ".test-output/test-report.json" }], + ], + + use: { + trace: "on-first-retry", + }, + + projects: [ + { + name: "chromium", + use: { ...devices["Desktop Chrome"] }, + }, + ], +}); + +export { attachAbleDOMMethodsToPage }; diff --git a/tools/playwright/tests/reporter.test.spec.ts b/tools/playwright/tests/reporter.test.spec.ts new file mode 100644 index 0000000..3acddd4 --- /dev/null +++ b/tools/playwright/tests/reporter.test.spec.ts @@ -0,0 +1,315 @@ +/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */ +import * as fs from "fs"; +import * as path from "path"; +import { fileURLToPath } from "url"; +import { test as baseTest, expect } from "@playwright/test"; +import type { + TestCase, + TestResult, + FullResult, +} from "@playwright/test/reporter"; +import { AbleDOMReporter } from "../src/reporter"; + +const __filename = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__filename); +const TEST_OUTPUT_DIR = path.join(__dirname, "..", ".test-output"); + +// Partial mock types for testing - only includes fields used by the reporter +type MockTestCase = Pick; +type MockTestResult = Pick; +type MockFullResult = Pick; + +// Ensure test output directory exists +if (!fs.existsSync(TEST_OUTPUT_DIR)) { + fs.mkdirSync(TEST_OUTPUT_DIR, { recursive: true }); +} + +const TEST_REPORT_FILE = path.join( + TEST_OUTPUT_DIR, + "reporter-test-output.json", +); + +baseTest.describe("AbleDOMReporter", () => { + baseTest.afterAll(() => { + // Clean up test report file + if (fs.existsSync(TEST_REPORT_FILE)) { + fs.unlinkSync(TEST_REPORT_FILE); + } + }); + + baseTest("should write report file with correct format", async () => { + const reporter = new AbleDOMReporter({ outputFile: TEST_REPORT_FILE }); + + // Simulate test run + reporter.onBegin(); + + // Simulate test end with attachment + const mockTest: MockTestCase = { + title: "test accessibility check", + location: { + file: "/path/to/test.spec.ts", + line: 10, + column: 5, + }, + }; + + const mockResult: MockTestResult = { + attachments: [ + { + name: "abledom-test-data", + body: Buffer.from( + JSON.stringify({ + type: "AbleDOM Issue", + callerFile: "/path/to/test.spec.ts", + callerLine: 25, + callerColumn: 10, + issueCount: 1, + issues: [ + { + id: "missing-label", + message: "Button is missing an accessible label", + element: "", + }, + ], + fullMessage: + "AbleDOM found issue: Button is missing an accessible label", + }), + ), + contentType: "application/json", + }, + ], + }; + + reporter.onTestEnd(mockTest as TestCase, mockResult as TestResult); + + // Simulate end of test run + reporter.onEnd({ status: "passed" } as MockFullResult as FullResult); + + // Verify file was created + expect(fs.existsSync(TEST_REPORT_FILE)).toBe(true); + + // Read and verify content + const content = fs.readFileSync(TEST_REPORT_FILE, "utf-8"); + const report = JSON.parse(content); + + // Verify structure + expect(report.date).toBeDefined(); + expect(report.goodAssertionCount).toBe(0); + expect(report.badAssertionCount).toBe(0); + expect(report.records).toBeInstanceOf(Array); + expect(report.records.length).toBe(1); + + // Verify record data + const record = report.records[0]; + expect(record.testTitle).toBe("test accessibility check"); + expect(record.testFile).toBe("/path/to/test.spec.ts"); + expect(record.testLine).toBe(10); + expect(record.testColumn).toBe(5); + expect(record.data.type).toBe("AbleDOM Issue"); + expect(record.data.callerFile).toBe("/path/to/test.spec.ts"); + expect(record.data.callerLine).toBe(25); + expect(record.data.issues[0].id).toBe("missing-label"); + expect(record.data.issues[0].message).toBe( + "Button is missing an accessible label", + ); + }); + + baseTest("should handle multiple issues in report", async () => { + const reportFile = path.join(TEST_OUTPUT_DIR, "test-multiple-issues.json"); + const reporter = new AbleDOMReporter({ outputFile: reportFile }); + + reporter.onBegin(); + + // First test with issue + reporter.onTestEnd( + { + title: "first test", + location: { file: "test1.ts", line: 1, column: 1 }, + } as MockTestCase as TestCase, + { + attachments: [ + { + name: "abledom-test-data", + body: Buffer.from( + JSON.stringify({ + type: "AbleDOM Issue", + callerFile: "test1.ts", + callerLine: 10, + callerColumn: 5, + issues: [{ id: "issue-1", message: "First issue" }], + }), + ), + contentType: "application/json", + }, + ], + } as MockTestResult as TestResult, + ); + + // Second test with issue + reporter.onTestEnd( + { + title: "second test", + location: { file: "test2.ts", line: 1, column: 1 }, + } as MockTestCase as TestCase, + { + attachments: [ + { + name: "abledom-test-data", + body: Buffer.from( + JSON.stringify({ + type: "AbleDOM Issue", + callerFile: "test2.ts", + callerLine: 20, + callerColumn: 3, + issues: [{ id: "issue-2", message: "Second issue" }], + }), + ), + contentType: "application/json", + }, + ], + } as MockTestResult as TestResult, + ); + + reporter.onEnd({ status: "passed" } as MockFullResult as FullResult); + + const content = fs.readFileSync(reportFile, "utf-8"); + const report = JSON.parse(content); + + expect(report.records.length).toBe(2); + expect(report.records[0].testTitle).toBe("first test"); + expect(report.records[1].testTitle).toBe("second test"); + expect(report.records[0].data.issues[0].message).toBe("First issue"); + expect(report.records[1].data.issues[0].message).toBe("Second issue"); + + // Clean up + fs.unlinkSync(reportFile); + }); + + baseTest("should handle no issues gracefully", async () => { + const reportFile = path.join(TEST_OUTPUT_DIR, "test-no-issues.json"); + const reporter = new AbleDOMReporter({ outputFile: reportFile }); + + reporter.onBegin(); + + // Test with no abledom-test-data attachment + reporter.onTestEnd( + { + title: "passing test", + location: { file: "test.ts", line: 1, column: 1 }, + } as MockTestCase as TestCase, + { attachments: [] } as MockTestResult as TestResult, + ); + + reporter.onEnd({ status: "passed" } as MockFullResult as FullResult); + + const content = fs.readFileSync(reportFile, "utf-8"); + const report = JSON.parse(content); + + expect(report.date).toBeDefined(); + expect(report.goodAssertionCount).toBe(0); + expect(report.badAssertionCount).toBe(0); + expect(report.records).toBeInstanceOf(Array); + expect(report.records.length).toBe(0); + + // Clean up + fs.unlinkSync(reportFile); + }); + + baseTest("should count good and bad assertions correctly", async () => { + const reportFile = path.join(TEST_OUTPUT_DIR, "test-assertion-counts.json"); + const reporter = new AbleDOMReporter({ outputFile: reportFile }); + + reporter.onBegin(); + + // Test with good assertion (ableDOMInstanceForTesting was available) + reporter.onTestEnd( + { + title: "test with good assertion", + location: { file: "test1.ts", line: 1, column: 1 }, + } as MockTestCase as TestCase, + { + attachments: [ + { + name: "abledom-assertion", + body: Buffer.from(JSON.stringify({ type: "good" })), + contentType: "application/json", + }, + ], + } as MockTestResult as TestResult, + ); + + // Test with bad assertion (ableDOMInstanceForTesting was not available) + reporter.onTestEnd( + { + title: "test with bad assertion", + location: { file: "test2.ts", line: 1, column: 1 }, + } as MockTestCase as TestCase, + { + attachments: [ + { + name: "abledom-assertion", + body: Buffer.from(JSON.stringify({ type: "bad" })), + contentType: "application/json", + }, + ], + } as MockTestResult as TestResult, + ); + + // Test with multiple assertions in same test + reporter.onTestEnd( + { + title: "test with multiple assertions", + location: { file: "test3.ts", line: 1, column: 1 }, + } as MockTestCase as TestCase, + { + attachments: [ + { + name: "abledom-assertion", + body: Buffer.from(JSON.stringify({ type: "good" })), + contentType: "application/json", + }, + { + name: "abledom-assertion", + body: Buffer.from(JSON.stringify({ type: "good" })), + contentType: "application/json", + }, + { + name: "abledom-assertion", + body: Buffer.from(JSON.stringify({ type: "bad" })), + contentType: "application/json", + }, + ], + } as MockTestResult as TestResult, + ); + + reporter.onEnd({ status: "passed" } as MockFullResult as FullResult); + + const content = fs.readFileSync(reportFile, "utf-8"); + const report = JSON.parse(content); + + expect(report.goodAssertionCount).toBe(3); + expect(report.badAssertionCount).toBe(2); + expect(report.records.length).toBe(0); // No abledom-test-data attachments + + // Clean up + fs.unlinkSync(reportFile); + }); + + baseTest("should use default filename when not specified", async () => { + const reporter = new AbleDOMReporter(); + reporter.onBegin(); + reporter.onEnd({ status: "passed" } as MockFullResult as FullResult); + + const defaultPath = path.resolve( + process.cwd(), + "./test-results/abledom.json", + ); + expect(fs.existsSync(defaultPath)).toBe(true); + + // Clean up + fs.unlinkSync(defaultPath); + }); +}); diff --git a/tools/playwright/tsconfig.eslint.json b/tools/playwright/tsconfig.eslint.json new file mode 100644 index 0000000..3004a28 --- /dev/null +++ b/tools/playwright/tsconfig.eslint.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "rootDir": ".", + "noEmit": true + }, + "include": ["src", "tests"] +} diff --git a/tools/playwright/tsconfig.json b/tools/playwright/tsconfig.json new file mode 100644 index 0000000..f1b5bc2 --- /dev/null +++ b/tools/playwright/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "target": "ES2020", + "lib": ["ES2020", "DOM"], + "module": "ESNext", + "moduleResolution": "bundler", + "declaration": true, + "declarationMap": true, + "outDir": "./dist", + "rootDir": "./src", + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true, + "noImplicitAny": true, + "noImplicitReturns": true, + "strictNullChecks": true, + "skipLibCheck": true, + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true + }, + "include": ["src"], + "exclude": ["dist", "node_modules"] +}